]>
Commit | Line | Data |
---|---|---|
10f2d63a VZ |
1 | #! /bin/sh |
2 | ||
698dcdb6 | 3 | # From configure.in Id: configure.in |
703e0a69 VZ |
4 | |
5 | ||
6 | ||
7 | ||
8 | ||
703e0a69 VZ |
9 | |
10 | ||
1e487827 | 11 | |
1e487827 | 12 | |
698dcdb6 VZ |
13 | |
14 | ||
15 | ||
16 | ||
17 | ||
18 | ||
19 | ||
20 | ||
21 | ||
22 | ||
23 | ||
24 | ||
25 | ||
26 | ||
27 | ||
28 | ||
29 | ||
30 | ||
31 | ||
32 | ||
33 | ||
34 | ||
35 | ||
36 | ||
37 | ||
8168de4c VZ |
38 | |
39 | # Configure paths for GTK+ | |
40 | # Owen Taylor 97-11-3 | |
698dcdb6 VZ |
41 | |
42 | ||
43 | ||
44 | ||
698dcdb6 VZ |
45 | |
46 | ||
47 | # Guess values for system-dependent variables and create Makefiles. | |
48 | # Generated automatically using autoconf version 2.13 | |
49 | # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc. | |
50 | # | |
51 | # This configure script is free software; the Free Software Foundation | |
52 | # gives unlimited permission to copy, distribute and modify it. | |
53 | ||
54 | # Defaults: | |
55 | ac_help= | |
56 | ac_default_prefix=/usr/local | |
57 | # Any additions from configure.in: | |
58 | ac_help="$ac_help | |
8168de4c | 59 | --enable-gui use GUI classes" |
1e6feb95 | 60 | ac_help="$ac_help |
8168de4c | 61 | --enable-universal use wxWindows GUI controls instead of native ones" |
698dcdb6 VZ |
62 | ac_help="$ac_help |
63 | --with-gtk use GTK+" | |
64 | ac_help="$ac_help | |
65 | --with-motif use Motif/Lesstif" | |
66 | ac_help="$ac_help | |
67 | --with-mac use Mac OS X" | |
68 | ac_help="$ac_help | |
69 | --with-wine use WINE" | |
70 | ac_help="$ac_help | |
71 | --with-cygwin use Cygwin for MS-Windows" | |
72 | ac_help="$ac_help | |
73 | --with-mingw use GCC Minimal MS-Windows" | |
74 | ac_help="$ac_help | |
75 | --with-pm use OS/2 Presentation Manager" | |
1e6feb95 | 76 | ac_help="$ac_help |
b3e8d00a | 77 | --with-mgl use SciTech MGL" |
698dcdb6 | 78 | ac_help="$ac_help |
8168de4c | 79 | --enable-gtk2 use GTK+ 2.0 if available (EXPERIMENTAL)" |
698dcdb6 | 80 | ac_help="$ac_help |
8168de4c | 81 | --with-libpng use libpng (PNG image format)" |
698dcdb6 | 82 | ac_help="$ac_help |
8168de4c | 83 | --with-libjpeg use libjpeg (JPEG file format)" |
698dcdb6 | 84 | ac_help="$ac_help |
8168de4c | 85 | --with-libtiff use libtiff (TIFF file format)" |
698dcdb6 | 86 | ac_help="$ac_help |
8168de4c | 87 | --with-freetype use freetype (font rasterizer)" |
698dcdb6 | 88 | ac_help="$ac_help |
8168de4c | 89 | --with-opengl use OpenGL (or Mesa)" |
698dcdb6 | 90 | ac_help="$ac_help |
8168de4c | 91 | --with-dmalloc use dmalloc library (www.letters.com/dmalloc)" |
3e44f09d VZ |
92 | ac_help="$ac_help |
93 | --with-regex enable support for wxRegEx class" | |
698dcdb6 | 94 | ac_help="$ac_help |
8168de4c | 95 | --with-zlib use zlib for LZW compression" |
698dcdb6 | 96 | ac_help="$ac_help |
8168de4c | 97 | --with-odbc use the IODBC and wxODBC classes" |
698dcdb6 | 98 | ac_help="$ac_help |
8168de4c | 99 | --enable-shared create shared library code" |
698dcdb6 | 100 | ac_help="$ac_help |
3a922bb4 | 101 | --enable-soname set the DT_SONAME field in ELF shared libraries" |
698dcdb6 | 102 | ac_help="$ac_help |
8168de4c | 103 | --enable-optimise create optimised code" |
698dcdb6 | 104 | ac_help="$ac_help |
8168de4c | 105 | --enable-debug same as debug_flag and debug_info" |
698dcdb6 | 106 | ac_help="$ac_help |
8168de4c | 107 | --enable-debug_flag set __WXDEBUG__ flag (recommended for developers!)" |
698dcdb6 | 108 | ac_help="$ac_help |
8168de4c | 109 | --enable-debug_info create code with debugging information" |
698dcdb6 | 110 | ac_help="$ac_help |
8168de4c | 111 | --enable-debug_gdb create code with extra GDB debugging information" |
698dcdb6 | 112 | ac_help="$ac_help |
8168de4c | 113 | --enable-debug_cntxt use wxDebugContext" |
698dcdb6 | 114 | ac_help="$ac_help |
8168de4c | 115 | --enable-mem_tracing create code with memory tracing" |
698dcdb6 | 116 | ac_help="$ac_help |
8168de4c | 117 | --enable-profile create code with profiling information" |
698dcdb6 | 118 | ac_help="$ac_help |
8168de4c | 119 | --enable-no_rtti create code without RTTI information" |
698dcdb6 | 120 | ac_help="$ac_help |
b3e8d00a | 121 | --enable-no_exceptions create code without C++ exceptions handling" |
698dcdb6 | 122 | ac_help="$ac_help |
8168de4c | 123 | --enable-permissive compile code disregarding strict ANSI" |
698dcdb6 | 124 | ac_help="$ac_help |
8168de4c | 125 | --enable-no_deps create code without dependency information" |
54276ccf | 126 | ac_help="$ac_help |
b3e8d00a | 127 | --enable-compat20 enable wxWindows 2.0 compatibility" |
54276ccf | 128 | ac_help="$ac_help |
b3e8d00a | 129 | --enable-compat22 enable wxWindows 2.2 compatibility" |
698dcdb6 | 130 | ac_help="$ac_help |
8168de4c | 131 | --enable-intl use internationalization system" |
698dcdb6 | 132 | ac_help="$ac_help |
8168de4c | 133 | --enable-config use wxConfig (and derived) classes" |
698dcdb6 | 134 | ac_help="$ac_help |
8168de4c | 135 | --enable-sockets use socket/network classes" |
698dcdb6 | 136 | ac_help="$ac_help |
8168de4c | 137 | --enable-ipc use interprocess communication (wxSocket etc.)" |
698dcdb6 | 138 | ac_help="$ac_help |
8168de4c | 139 | --enable-cmdline use wxCmdLineParser class" |
1e6feb95 | 140 | ac_help="$ac_help |
8168de4c | 141 | --enable-datetime use wxDateTime class" |
1e6feb95 | 142 | ac_help="$ac_help |
8168de4c | 143 | --enable-timedate use obsolete wxDate/wxTime classes" |
1e6feb95 | 144 | ac_help="$ac_help |
8168de4c | 145 | --enable-stopwatch use wxStopWatch class" |
1e6feb95 | 146 | ac_help="$ac_help |
8168de4c | 147 | --enable-dialupman use dialup network classes" |
698dcdb6 | 148 | ac_help="$ac_help |
8168de4c | 149 | --enable-apple_ieee use the Apple IEEE codec" |
698dcdb6 | 150 | ac_help="$ac_help |
8168de4c | 151 | --enable-timer use wxTimer class" |
698dcdb6 | 152 | ac_help="$ac_help |
8168de4c | 153 | --enable-wave use wxWave class" |
698dcdb6 | 154 | ac_help="$ac_help |
8168de4c | 155 | --enable-fraction use wxFraction class" |
698dcdb6 | 156 | ac_help="$ac_help |
8168de4c | 157 | --enable-dynlib use wxLibrary class for DLL loading" |
698dcdb6 | 158 | ac_help="$ac_help |
8168de4c | 159 | --enable-longlong use wxLongLong class" |
698dcdb6 | 160 | ac_help="$ac_help |
8168de4c | 161 | --enable-geometry use geometry class" |
698dcdb6 | 162 | ac_help="$ac_help |
8168de4c | 163 | --enable-log use logging system" |
698dcdb6 | 164 | ac_help="$ac_help |
8168de4c | 165 | --enable-streams use wxStream etc classes" |
698dcdb6 | 166 | ac_help="$ac_help |
8168de4c | 167 | --enable-file use wxFile classes" |
698dcdb6 | 168 | ac_help="$ac_help |
8168de4c | 169 | --enable-ffile use wxFFile classes" |
1e6feb95 | 170 | ac_help="$ac_help |
8168de4c | 171 | --enable-textfile use wxTextFile classes" |
698dcdb6 | 172 | ac_help="$ac_help |
8168de4c | 173 | --enable-fontmap use font encodings conversion classes" |
1e6feb95 | 174 | ac_help="$ac_help |
8168de4c | 175 | --enable-unicode compile wxString with Unicode support" |
698dcdb6 | 176 | ac_help="$ac_help |
8168de4c | 177 | --enable-wxprintfv use wxWindows implementation of vprintf()" |
698dcdb6 | 178 | ac_help="$ac_help |
8168de4c | 179 | --enable-std_iostreams use standard C++ stream classes" |
698dcdb6 | 180 | ac_help="$ac_help |
8168de4c | 181 | --enable-filesystem use virtual file systems classes" |
698dcdb6 | 182 | ac_help="$ac_help |
8168de4c | 183 | --enable-fs_inet use virtual HTTP/FTP filesystems" |
698dcdb6 | 184 | ac_help="$ac_help |
8168de4c | 185 | --enable-fs_zip use virtual ZIP filesystems" |
698dcdb6 | 186 | ac_help="$ac_help |
8168de4c | 187 | --enable-zipstream use wxZipInputStream" |
698dcdb6 | 188 | ac_help="$ac_help |
8168de4c | 189 | --enable-catch_segvs catch signals and pass them to wxApp::OnFatalException" |
698dcdb6 | 190 | ac_help="$ac_help |
8168de4c | 191 | --enable-snglinst use wxSingleInstanceChecker class" |
698dcdb6 | 192 | ac_help="$ac_help |
8168de4c | 193 | --enable-mimetypes use wxMimeTypesManager" |
3e44f09d | 194 | ac_help="$ac_help |
b3e8d00a | 195 | --enable-sysoptions use wxSystemOptions" |
1e6feb95 | 196 | ac_help="$ac_help |
8168de4c | 197 | --enable-threads use threads" |
698dcdb6 | 198 | ac_help="$ac_help |
8168de4c | 199 | --enable-serial use class serialization" |
698dcdb6 | 200 | ac_help="$ac_help |
8168de4c | 201 | --enable-docview use document view architecture" |
698dcdb6 | 202 | ac_help="$ac_help |
3379ed37 | 203 | --enable-help use help subsystem" |
29fd3c0c VS |
204 | ac_help="$ac_help |
205 | --enable-mshtmlhelp use MS HTML Help (win32)" | |
3379ed37 VZ |
206 | ac_help="$ac_help |
207 | --enable-html use wxHTML sub-library" | |
208 | ac_help="$ac_help | |
209 | --enable-htmlhelp use wxHTML-based help" | |
698dcdb6 | 210 | ac_help="$ac_help |
8168de4c | 211 | --enable-constraints use layout-constraints system" |
698dcdb6 | 212 | ac_help="$ac_help |
8168de4c | 213 | --enable-printarch use printing architecture" |
698dcdb6 | 214 | ac_help="$ac_help |
8168de4c | 215 | --enable-mdi use multiple document interface architecture" |
698dcdb6 | 216 | ac_help="$ac_help |
8168de4c | 217 | --enable-loggui use standard GUI logger" |
1e6feb95 | 218 | ac_help="$ac_help |
8168de4c | 219 | --enable-logwin use wxLogWindow" |
1e6feb95 | 220 | ac_help="$ac_help |
8168de4c | 221 | --enable-postscript use wxPostscriptDC device context (default for gtk+)" |
698dcdb6 | 222 | ac_help="$ac_help |
8168de4c | 223 | --enable-prologio use Prolog IO library" |
698dcdb6 | 224 | ac_help="$ac_help |
8168de4c | 225 | --enable-resources use wxWindows resources" |
698dcdb6 | 226 | ac_help="$ac_help |
8168de4c | 227 | --enable-xresources use X resources for save (default for gtk+)" |
698dcdb6 | 228 | ac_help="$ac_help |
8168de4c | 229 | --enable-clipboard use wxClipboard classes" |
698dcdb6 | 230 | ac_help="$ac_help |
8168de4c | 231 | --enable-dnd use Drag'n'Drop classes" |
698dcdb6 | 232 | ac_help="$ac_help |
8168de4c | 233 | --enable-metafile use win32 metafiles" |
698dcdb6 | 234 | ac_help="$ac_help |
24176f2c | 235 | --enable-treelayout use wxTreeLayout classes" |
698dcdb6 | 236 | ac_help="$ac_help |
8168de4c | 237 | --enable-controls use all usual controls" |
698dcdb6 | 238 | ac_help="$ac_help |
8168de4c | 239 | --enable-accel use accelerators" |
698dcdb6 | 240 | ac_help="$ac_help |
8168de4c | 241 | --enable-button use wxButton class" |
698dcdb6 | 242 | ac_help="$ac_help |
8168de4c | 243 | --enable-bmpbutton use wxBitmapButton class" |
698dcdb6 | 244 | ac_help="$ac_help |
8168de4c | 245 | --enable-calendar use wxCalendarCtrl class" |
1e6feb95 | 246 | ac_help="$ac_help |
8168de4c | 247 | --enable-caret use wxCaret class" |
1e6feb95 | 248 | ac_help="$ac_help |
8168de4c | 249 | --enable-checkbox use wxCheckBox class" |
698dcdb6 | 250 | ac_help="$ac_help |
8168de4c | 251 | --enable-checklst use wxCheckListBox (listbox with checkboxes) class" |
698dcdb6 | 252 | ac_help="$ac_help |
8168de4c | 253 | --enable-choice use wxChoice class" |
698dcdb6 | 254 | ac_help="$ac_help |
8168de4c | 255 | --enable-combobox use wxComboBox classes" |
698dcdb6 | 256 | ac_help="$ac_help |
8168de4c | 257 | --enable-gauge use wxGauge class" |
698dcdb6 | 258 | ac_help="$ac_help |
8168de4c | 259 | --enable-grid use wxGrid class" |
698dcdb6 | 260 | ac_help="$ac_help |
8168de4c | 261 | --enable-newgrid use new wxGrid class" |
698dcdb6 | 262 | ac_help="$ac_help |
8168de4c | 263 | --enable-imaglist use wxImageList class" |
698dcdb6 | 264 | ac_help="$ac_help |
8168de4c | 265 | --enable-listbox use wxListBox class" |
698dcdb6 | 266 | ac_help="$ac_help |
8168de4c | 267 | --enable-listctrl use wxListCtrl class" |
698dcdb6 | 268 | ac_help="$ac_help |
8168de4c | 269 | --enable-notebook use wxNotebook class" |
24176f2c GD |
270 | ac_help="$ac_help |
271 | --enable-propsheet use wxPropertySheet class" | |
698dcdb6 | 272 | ac_help="$ac_help |
8168de4c | 273 | --enable-radiobox use wxRadioBox class" |
698dcdb6 | 274 | ac_help="$ac_help |
8168de4c | 275 | --enable-radiobtn use wxRadioButton class" |
698dcdb6 | 276 | ac_help="$ac_help |
8168de4c | 277 | --enable-sash use wxSashWindow class" |
698dcdb6 | 278 | ac_help="$ac_help |
8168de4c | 279 | --enable-scrollbar use wxScrollBar class and scrollable windows" |
698dcdb6 | 280 | ac_help="$ac_help |
8168de4c | 281 | --enable-slider use wxSlider class" |
698dcdb6 | 282 | ac_help="$ac_help |
8168de4c | 283 | --enable-spinbtn use wxSpinButton class" |
698dcdb6 | 284 | ac_help="$ac_help |
8168de4c | 285 | --enable-spinctrl use wxSpinCtrl class" |
698dcdb6 | 286 | ac_help="$ac_help |
8168de4c | 287 | --enable-splitter use wxSplitterWindow class" |
698dcdb6 | 288 | ac_help="$ac_help |
8168de4c | 289 | --enable-statbmp use wxStaticBitmap class" |
698dcdb6 | 290 | ac_help="$ac_help |
8168de4c | 291 | --enable-statbox use wxStaticBox class" |
698dcdb6 | 292 | ac_help="$ac_help |
8168de4c | 293 | --enable-statline use wxStaticLine class" |
698dcdb6 | 294 | ac_help="$ac_help |
8168de4c | 295 | --enable-stattext use wxStaticText class" |
1e6feb95 | 296 | ac_help="$ac_help |
8168de4c | 297 | --enable-statusbar use wxStatusBar class" |
698dcdb6 | 298 | ac_help="$ac_help |
8168de4c | 299 | --enable-tabdialog use wxTabControl class" |
698dcdb6 | 300 | ac_help="$ac_help |
8168de4c | 301 | --enable-textctrl use wxTextCtrl class" |
1e6feb95 | 302 | ac_help="$ac_help |
8168de4c | 303 | --enable-togglebtn use wxToggleButton class" |
698dcdb6 | 304 | ac_help="$ac_help |
8168de4c | 305 | --enable-toolbar use wxToolBar class" |
698dcdb6 | 306 | ac_help="$ac_help |
8168de4c | 307 | --enable-tbarnative use native wxToolBar class" |
698dcdb6 | 308 | ac_help="$ac_help |
8168de4c | 309 | --enable-tbarsmpl use wxToolBarSimple class" |
698dcdb6 | 310 | ac_help="$ac_help |
8168de4c | 311 | --enable-treectrl use wxTreeCtrl class" |
9f41d601 RR |
312 | ac_help="$ac_help |
313 | --enable-popupwin use wxPopUpWindow class" | |
698dcdb6 | 314 | ac_help="$ac_help |
b3e8d00a | 315 | --enable-commondlg use all common dialogs" |
698dcdb6 | 316 | ac_help="$ac_help |
8168de4c | 317 | --enable-choicedlg use wxChoiceDialog" |
1e6feb95 | 318 | ac_help="$ac_help |
8168de4c | 319 | --enable-coldlg use wxColourDialog" |
1e6feb95 | 320 | ac_help="$ac_help |
8168de4c | 321 | --enable-filedlg use wxFileDialog" |
8db37e06 VZ |
322 | ac_help="$ac_help |
323 | --enable-finddlg use wxFindReplaceDialog" | |
1e6feb95 | 324 | ac_help="$ac_help |
8168de4c | 325 | --enable-fontdlg use wxFontDialog" |
1e6feb95 | 326 | ac_help="$ac_help |
8168de4c | 327 | --enable-dirdlg use wxDirDialog" |
698dcdb6 | 328 | ac_help="$ac_help |
8168de4c | 329 | --enable-msgdlg use wxMessageDialog" |
1e6feb95 | 330 | ac_help="$ac_help |
8168de4c | 331 | --enable-numberdlg use wxNumberEntryDialog" |
cbca9943 VZ |
332 | ac_help="$ac_help |
333 | --enable-splash use wxSplashScreen" | |
1e6feb95 | 334 | ac_help="$ac_help |
8168de4c | 335 | --enable-textdlg use wxTextDialog" |
698dcdb6 | 336 | ac_help="$ac_help |
8168de4c | 337 | --enable-tipdlg use startup tips" |
698dcdb6 | 338 | ac_help="$ac_help |
8168de4c | 339 | --enable-progressdlg use wxProgressDialog" |
b1f5d087 VZ |
340 | ac_help="$ac_help |
341 | --enable-wizarddlg use wxWizard" | |
698dcdb6 | 342 | ac_help="$ac_help |
8168de4c | 343 | --enable-menus use wxMenu/wxMenuBar/wxMenuItem classes" |
1e6feb95 | 344 | ac_help="$ac_help |
8168de4c | 345 | --enable-miniframe use wxMiniFrame class" |
698dcdb6 | 346 | ac_help="$ac_help |
8168de4c | 347 | --enable-tooltips use wxToolTip class" |
698dcdb6 | 348 | ac_help="$ac_help |
8168de4c | 349 | --enable-splines use spline drawing code" |
698dcdb6 | 350 | ac_help="$ac_help |
8168de4c | 351 | --enable-validators use wxValidator and derived classes" |
698dcdb6 | 352 | ac_help="$ac_help |
8168de4c | 353 | --enable-busyinfo use wxBusyInfo" |
698dcdb6 | 354 | ac_help="$ac_help |
b3e8d00a | 355 | --enable-joystick use wxJoystick (Linux only)" |
698dcdb6 | 356 | ac_help="$ac_help |
8168de4c | 357 | --enable-metafiles use wxMetaFile (Windows only)" |
24fd6d87 VZ |
358 | ac_help="$ac_help |
359 | --enable-dragimage use wxDragImage" | |
edae8572 VZ |
360 | ac_help="$ac_help |
361 | --enable-palette use wxPalette class" | |
1e6feb95 | 362 | ac_help="$ac_help |
8168de4c | 363 | --enable-image use wxImage class" |
698dcdb6 | 364 | ac_help="$ac_help |
8168de4c | 365 | --enable-gif use gif images (GIF file format)" |
698dcdb6 | 366 | ac_help="$ac_help |
8168de4c | 367 | --enable-pcx use pcx images (PCX file format)" |
698dcdb6 | 368 | ac_help="$ac_help |
8168de4c | 369 | --enable-pnm use pnm images (PNM file format)" |
698dcdb6 | 370 | ac_help="$ac_help |
8168de4c | 371 | --enable-xpm use xpm images (XPM file format)" |
698dcdb6 VZ |
372 | ac_help="$ac_help |
373 | --with-gtk-prefix=PFX Prefix where GTK is installed (optional)" | |
374 | ac_help="$ac_help | |
375 | --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)" | |
376 | ac_help="$ac_help | |
377 | --disable-gtktest Do not try to compile and run a test GTK program" | |
378 | ac_help="$ac_help | |
379 | --with-x use the X Window System" | |
10f2d63a VZ |
380 | |
381 | # Initialize some variables set by options. | |
382 | # The variables have the same names as the options, with | |
383 | # dashes changed to underlines. | |
698dcdb6 VZ |
384 | build=NONE |
385 | cache_file=./config.cache | |
10f2d63a | 386 | exec_prefix=NONE |
698dcdb6 | 387 | host=NONE |
10f2d63a | 388 | no_create= |
698dcdb6 | 389 | nonopt=NONE |
10f2d63a VZ |
390 | no_recursion= |
391 | prefix=NONE | |
392 | program_prefix=NONE | |
393 | program_suffix=NONE | |
394 | program_transform_name=s,x,x, | |
395 | silent= | |
396 | site= | |
397 | srcdir= | |
698dcdb6 | 398 | target=NONE |
10f2d63a VZ |
399 | verbose= |
400 | x_includes=NONE | |
401 | x_libraries=NONE | |
402 | bindir='${exec_prefix}/bin' | |
403 | sbindir='${exec_prefix}/sbin' | |
404 | libexecdir='${exec_prefix}/libexec' | |
405 | datadir='${prefix}/share' | |
406 | sysconfdir='${prefix}/etc' | |
407 | sharedstatedir='${prefix}/com' | |
408 | localstatedir='${prefix}/var' | |
409 | libdir='${exec_prefix}/lib' | |
410 | includedir='${prefix}/include' | |
411 | oldincludedir='/usr/include' | |
412 | infodir='${prefix}/info' | |
413 | mandir='${prefix}/man' | |
414 | ||
698dcdb6 VZ |
415 | # Initialize some other variables. |
416 | subdirs= | |
417 | MFLAGS= MAKEFLAGS= | |
418 | SHELL=${CONFIG_SHELL-/bin/sh} | |
419 | # Maximum number of lines to put in a shell here document. | |
420 | ac_max_here_lines=12 | |
10f2d63a VZ |
421 | |
422 | ac_prev= | |
423 | for ac_option | |
424 | do | |
698dcdb6 | 425 | |
10f2d63a VZ |
426 | # If the previous option needs an argument, assign it. |
427 | if test -n "$ac_prev"; then | |
428 | eval "$ac_prev=\$ac_option" | |
429 | ac_prev= | |
430 | continue | |
431 | fi | |
432 | ||
698dcdb6 VZ |
433 | case "$ac_option" in |
434 | -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;; | |
435 | *) ac_optarg= ;; | |
436 | esac | |
10f2d63a VZ |
437 | |
438 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
439 | ||
698dcdb6 | 440 | case "$ac_option" in |
10f2d63a VZ |
441 | |
442 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
443 | ac_prev=bindir ;; | |
444 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
698dcdb6 | 445 | bindir="$ac_optarg" ;; |
10f2d63a VZ |
446 | |
447 | -build | --build | --buil | --bui | --bu) | |
698dcdb6 | 448 | ac_prev=build ;; |
10f2d63a | 449 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
698dcdb6 | 450 | build="$ac_optarg" ;; |
10f2d63a VZ |
451 | |
452 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
453 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
454 | ac_prev=cache_file ;; | |
455 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
456 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
698dcdb6 | 457 | cache_file="$ac_optarg" ;; |
10f2d63a VZ |
458 | |
459 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da) | |
460 | ac_prev=datadir ;; | |
461 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ | |
462 | | --da=*) | |
698dcdb6 | 463 | datadir="$ac_optarg" ;; |
10f2d63a VZ |
464 | |
465 | -disable-* | --disable-*) | |
698dcdb6 | 466 | ac_feature=`echo $ac_option|sed -e 's/-*disable-//'` |
10f2d63a | 467 | # Reject names that are not valid shell variable names. |
698dcdb6 VZ |
468 | if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then |
469 | { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } | |
470 | fi | |
471 | ac_feature=`echo $ac_feature| sed 's/-/_/g'` | |
472 | eval "enable_${ac_feature}=no" ;; | |
10f2d63a VZ |
473 | |
474 | -enable-* | --enable-*) | |
698dcdb6 | 475 | ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'` |
10f2d63a | 476 | # Reject names that are not valid shell variable names. |
698dcdb6 VZ |
477 | if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then |
478 | { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } | |
479 | fi | |
480 | ac_feature=`echo $ac_feature| sed 's/-/_/g'` | |
481 | case "$ac_option" in | |
482 | *=*) ;; | |
10f2d63a VZ |
483 | *) ac_optarg=yes ;; |
484 | esac | |
698dcdb6 | 485 | eval "enable_${ac_feature}='$ac_optarg'" ;; |
10f2d63a VZ |
486 | |
487 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
488 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
489 | | --exec | --exe | --ex) | |
490 | ac_prev=exec_prefix ;; | |
491 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
492 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
493 | | --exec=* | --exe=* | --ex=*) | |
698dcdb6 | 494 | exec_prefix="$ac_optarg" ;; |
10f2d63a VZ |
495 | |
496 | -gas | --gas | --ga | --g) | |
497 | # Obsolete; use --with-gas. | |
498 | with_gas=yes ;; | |
499 | ||
698dcdb6 VZ |
500 | -help | --help | --hel | --he) |
501 | # Omit some internal or obsolete options to make the list less imposing. | |
502 | # This message is too long to be a string in the A/UX 3.1 sh. | |
503 | cat << EOF | |
504 | Usage: configure [options] [host] | |
505 | Options: [defaults in brackets after descriptions] | |
506 | Configuration: | |
507 | --cache-file=FILE cache test results in FILE | |
508 | --help print this message | |
509 | --no-create do not create output files | |
510 | --quiet, --silent do not print \`checking...' messages | |
511 | --version print the version of autoconf that created configure | |
512 | Directory and file names: | |
513 | --prefix=PREFIX install architecture-independent files in PREFIX | |
514 | [$ac_default_prefix] | |
515 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX | |
516 | [same as prefix] | |
517 | --bindir=DIR user executables in DIR [EPREFIX/bin] | |
518 | --sbindir=DIR system admin executables in DIR [EPREFIX/sbin] | |
519 | --libexecdir=DIR program executables in DIR [EPREFIX/libexec] | |
520 | --datadir=DIR read-only architecture-independent data in DIR | |
521 | [PREFIX/share] | |
522 | --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc] | |
523 | --sharedstatedir=DIR modifiable architecture-independent data in DIR | |
524 | [PREFIX/com] | |
525 | --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var] | |
526 | --libdir=DIR object code libraries in DIR [EPREFIX/lib] | |
527 | --includedir=DIR C header files in DIR [PREFIX/include] | |
528 | --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include] | |
529 | --infodir=DIR info documentation in DIR [PREFIX/info] | |
530 | --mandir=DIR man documentation in DIR [PREFIX/man] | |
531 | --srcdir=DIR find the sources in DIR [configure dir or ..] | |
532 | --program-prefix=PREFIX prepend PREFIX to installed program names | |
533 | --program-suffix=SUFFIX append SUFFIX to installed program names | |
534 | --program-transform-name=PROGRAM | |
535 | run sed PROGRAM on installed program names | |
536 | EOF | |
537 | cat << EOF | |
538 | Host type: | |
539 | --build=BUILD configure for building on BUILD [BUILD=HOST] | |
540 | --host=HOST configure for HOST [guessed] | |
541 | --target=TARGET configure for TARGET [TARGET=HOST] | |
542 | Features and packages: | |
543 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) | |
544 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
545 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
546 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
547 | --x-includes=DIR X include files are in DIR | |
548 | --x-libraries=DIR X library files are in DIR | |
549 | EOF | |
550 | if test -n "$ac_help"; then | |
551 | echo "--enable and --with options recognized:$ac_help" | |
552 | fi | |
553 | exit 0 ;; | |
10f2d63a VZ |
554 | |
555 | -host | --host | --hos | --ho) | |
698dcdb6 | 556 | ac_prev=host ;; |
10f2d63a | 557 | -host=* | --host=* | --hos=* | --ho=*) |
698dcdb6 | 558 | host="$ac_optarg" ;; |
10f2d63a VZ |
559 | |
560 | -includedir | --includedir | --includedi | --included | --include \ | |
561 | | --includ | --inclu | --incl | --inc) | |
562 | ac_prev=includedir ;; | |
563 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
564 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
698dcdb6 | 565 | includedir="$ac_optarg" ;; |
10f2d63a VZ |
566 | |
567 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
568 | ac_prev=infodir ;; | |
569 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
698dcdb6 | 570 | infodir="$ac_optarg" ;; |
10f2d63a VZ |
571 | |
572 | -libdir | --libdir | --libdi | --libd) | |
573 | ac_prev=libdir ;; | |
574 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
698dcdb6 | 575 | libdir="$ac_optarg" ;; |
10f2d63a VZ |
576 | |
577 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
578 | | --libexe | --libex | --libe) | |
579 | ac_prev=libexecdir ;; | |
580 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
581 | | --libexe=* | --libex=* | --libe=*) | |
698dcdb6 | 582 | libexecdir="$ac_optarg" ;; |
10f2d63a VZ |
583 | |
584 | -localstatedir | --localstatedir | --localstatedi | --localstated \ | |
585 | | --localstate | --localstat | --localsta | --localst \ | |
586 | | --locals | --local | --loca | --loc | --lo) | |
587 | ac_prev=localstatedir ;; | |
588 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
589 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \ | |
590 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) | |
698dcdb6 | 591 | localstatedir="$ac_optarg" ;; |
10f2d63a VZ |
592 | |
593 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
594 | ac_prev=mandir ;; | |
595 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
698dcdb6 | 596 | mandir="$ac_optarg" ;; |
10f2d63a VZ |
597 | |
598 | -nfp | --nfp | --nf) | |
599 | # Obsolete; use --without-fp. | |
600 | with_fp=no ;; | |
601 | ||
602 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
603 | | --no-cr | --no-c) | |
604 | no_create=yes ;; | |
605 | ||
606 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
607 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
608 | no_recursion=yes ;; | |
609 | ||
610 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
611 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
612 | | --oldin | --oldi | --old | --ol | --o) | |
613 | ac_prev=oldincludedir ;; | |
614 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
615 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
616 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
698dcdb6 | 617 | oldincludedir="$ac_optarg" ;; |
10f2d63a VZ |
618 | |
619 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
620 | ac_prev=prefix ;; | |
621 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
698dcdb6 | 622 | prefix="$ac_optarg" ;; |
10f2d63a VZ |
623 | |
624 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
625 | | --program-pre | --program-pr | --program-p) | |
626 | ac_prev=program_prefix ;; | |
627 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
628 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
698dcdb6 | 629 | program_prefix="$ac_optarg" ;; |
10f2d63a VZ |
630 | |
631 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
632 | | --program-suf | --program-su | --program-s) | |
633 | ac_prev=program_suffix ;; | |
634 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
635 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
698dcdb6 | 636 | program_suffix="$ac_optarg" ;; |
10f2d63a VZ |
637 | |
638 | -program-transform-name | --program-transform-name \ | |
639 | | --program-transform-nam | --program-transform-na \ | |
640 | | --program-transform-n | --program-transform- \ | |
641 | | --program-transform | --program-transfor \ | |
642 | | --program-transfo | --program-transf \ | |
643 | | --program-trans | --program-tran \ | |
644 | | --progr-tra | --program-tr | --program-t) | |
645 | ac_prev=program_transform_name ;; | |
646 | -program-transform-name=* | --program-transform-name=* \ | |
647 | | --program-transform-nam=* | --program-transform-na=* \ | |
648 | | --program-transform-n=* | --program-transform-=* \ | |
649 | | --program-transform=* | --program-transfor=* \ | |
650 | | --program-transfo=* | --program-transf=* \ | |
651 | | --program-trans=* | --program-tran=* \ | |
652 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
698dcdb6 | 653 | program_transform_name="$ac_optarg" ;; |
10f2d63a VZ |
654 | |
655 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
656 | | -silent | --silent | --silen | --sile | --sil) | |
657 | silent=yes ;; | |
658 | ||
659 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
660 | ac_prev=sbindir ;; | |
661 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
662 | | --sbi=* | --sb=*) | |
698dcdb6 | 663 | sbindir="$ac_optarg" ;; |
10f2d63a VZ |
664 | |
665 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
666 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
667 | | --sharedst | --shareds | --shared | --share | --shar \ | |
668 | | --sha | --sh) | |
669 | ac_prev=sharedstatedir ;; | |
670 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
671 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
672 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
673 | | --sha=* | --sh=*) | |
698dcdb6 | 674 | sharedstatedir="$ac_optarg" ;; |
10f2d63a VZ |
675 | |
676 | -site | --site | --sit) | |
677 | ac_prev=site ;; | |
678 | -site=* | --site=* | --sit=*) | |
698dcdb6 | 679 | site="$ac_optarg" ;; |
10f2d63a VZ |
680 | |
681 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
682 | ac_prev=srcdir ;; | |
683 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
698dcdb6 | 684 | srcdir="$ac_optarg" ;; |
10f2d63a VZ |
685 | |
686 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
687 | | --syscon | --sysco | --sysc | --sys | --sy) | |
688 | ac_prev=sysconfdir ;; | |
689 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
690 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
698dcdb6 | 691 | sysconfdir="$ac_optarg" ;; |
10f2d63a VZ |
692 | |
693 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
698dcdb6 | 694 | ac_prev=target ;; |
10f2d63a | 695 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
698dcdb6 | 696 | target="$ac_optarg" ;; |
10f2d63a VZ |
697 | |
698 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
699 | verbose=yes ;; | |
700 | ||
698dcdb6 VZ |
701 | -version | --version | --versio | --versi | --vers) |
702 | echo "configure generated by autoconf version 2.13" | |
703 | exit 0 ;; | |
10f2d63a VZ |
704 | |
705 | -with-* | --with-*) | |
698dcdb6 | 706 | ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'` |
10f2d63a | 707 | # Reject names that are not valid shell variable names. |
698dcdb6 VZ |
708 | if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then |
709 | { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } | |
710 | fi | |
10f2d63a | 711 | ac_package=`echo $ac_package| sed 's/-/_/g'` |
698dcdb6 VZ |
712 | case "$ac_option" in |
713 | *=*) ;; | |
10f2d63a VZ |
714 | *) ac_optarg=yes ;; |
715 | esac | |
698dcdb6 | 716 | eval "with_${ac_package}='$ac_optarg'" ;; |
10f2d63a VZ |
717 | |
718 | -without-* | --without-*) | |
698dcdb6 | 719 | ac_package=`echo $ac_option|sed -e 's/-*without-//'` |
10f2d63a | 720 | # Reject names that are not valid shell variable names. |
698dcdb6 VZ |
721 | if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then |
722 | { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } | |
723 | fi | |
724 | ac_package=`echo $ac_package| sed 's/-/_/g'` | |
725 | eval "with_${ac_package}=no" ;; | |
10f2d63a VZ |
726 | |
727 | --x) | |
728 | # Obsolete; use --with-x. | |
729 | with_x=yes ;; | |
730 | ||
731 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
732 | | --x-incl | --x-inc | --x-in | --x-i) | |
733 | ac_prev=x_includes ;; | |
734 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
735 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
698dcdb6 | 736 | x_includes="$ac_optarg" ;; |
10f2d63a VZ |
737 | |
738 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
739 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
740 | ac_prev=x_libraries ;; | |
741 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
742 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
698dcdb6 | 743 | x_libraries="$ac_optarg" ;; |
10f2d63a | 744 | |
698dcdb6 | 745 | -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; } |
10f2d63a VZ |
746 | ;; |
747 | ||
748 | *) | |
698dcdb6 VZ |
749 | if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then |
750 | echo "configure: warning: $ac_option: invalid host type" 1>&2 | |
751 | fi | |
752 | if test "x$nonopt" != xNONE; then | |
753 | { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } | |
754 | fi | |
755 | nonopt="$ac_option" | |
10f2d63a VZ |
756 | ;; |
757 | ||
758 | esac | |
759 | done | |
760 | ||
761 | if test -n "$ac_prev"; then | |
698dcdb6 VZ |
762 | { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; } |
763 | fi | |
764 | ||
765 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 | |
766 | ||
767 | # File descriptor usage: | |
768 | # 0 standard input | |
769 | # 1 file creation | |
770 | # 2 errors and warnings | |
771 | # 3 some systems may open it to /dev/tty | |
772 | # 4 used on the Kubota Titan | |
773 | # 6 checking for... messages and results | |
774 | # 5 compiler messages saved in config.log | |
775 | if test "$silent" = yes; then | |
776 | exec 6>/dev/null | |
777 | else | |
778 | exec 6>&1 | |
10f2d63a | 779 | fi |
698dcdb6 VZ |
780 | exec 5>./config.log |
781 | ||
782 | echo "\ | |
783 | This file contains any messages produced by compilers while | |
784 | running configure, to aid debugging if configure makes a mistake. | |
785 | " 1>&5 | |
10f2d63a | 786 | |
698dcdb6 VZ |
787 | # Strip out --no-create and --no-recursion so they do not pile up. |
788 | # Also quote any args containing shell metacharacters. | |
789 | ac_configure_args= | |
790 | for ac_arg | |
10f2d63a | 791 | do |
698dcdb6 VZ |
792 | case "$ac_arg" in |
793 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
794 | | --no-cr | --no-c) ;; | |
795 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
796 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;; | |
797 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*) | |
798 | ac_configure_args="$ac_configure_args '$ac_arg'" ;; | |
799 | *) ac_configure_args="$ac_configure_args $ac_arg" ;; | |
10f2d63a VZ |
800 | esac |
801 | done | |
802 | ||
698dcdb6 VZ |
803 | # NLS nuisances. |
804 | # Only set these to C if already set. These must not be set unconditionally | |
805 | # because not all systems understand e.g. LANG=C (notably SCO). | |
806 | # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'! | |
807 | # Non-C LC_CTYPE values break the ctype check. | |
808 | if test "${LANG+set}" = set; then LANG=C; export LANG; fi | |
809 | if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi | |
810 | if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi | |
811 | if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi | |
10f2d63a | 812 | |
698dcdb6 VZ |
813 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
814 | rm -rf conftest* confdefs.h | |
815 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. | |
816 | echo > confdefs.h | |
10f2d63a | 817 | |
698dcdb6 VZ |
818 | # A filename unique to this package, relative to the directory that |
819 | # configure is in, which we can look for to find out if srcdir is correct. | |
820 | ac_unique_file=wx-config.in | |
10f2d63a VZ |
821 | |
822 | # Find the source files, if location was not specified. | |
823 | if test -z "$srcdir"; then | |
824 | ac_srcdir_defaulted=yes | |
825 | # Try the directory containing this script, then its parent. | |
826 | ac_prog=$0 | |
698dcdb6 | 827 | ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'` |
10f2d63a VZ |
828 | test "x$ac_confdir" = "x$ac_prog" && ac_confdir=. |
829 | srcdir=$ac_confdir | |
830 | if test ! -r $srcdir/$ac_unique_file; then | |
831 | srcdir=.. | |
832 | fi | |
833 | else | |
834 | ac_srcdir_defaulted=no | |
835 | fi | |
836 | if test ! -r $srcdir/$ac_unique_file; then | |
837 | if test "$ac_srcdir_defaulted" = yes; then | |
698dcdb6 | 838 | { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; } |
10f2d63a | 839 | else |
698dcdb6 | 840 | { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; } |
10f2d63a VZ |
841 | fi |
842 | fi | |
698dcdb6 | 843 | srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'` |
10f2d63a VZ |
844 | |
845 | # Prefer explicitly selected file to automatically selected ones. | |
846 | if test -z "$CONFIG_SITE"; then | |
847 | if test "x$prefix" != xNONE; then | |
848 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" | |
849 | else | |
850 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" | |
851 | fi | |
852 | fi | |
853 | for ac_site_file in $CONFIG_SITE; do | |
854 | if test -r "$ac_site_file"; then | |
698dcdb6 | 855 | echo "loading site script $ac_site_file" |
10f2d63a VZ |
856 | . "$ac_site_file" |
857 | fi | |
858 | done | |
859 | ||
860 | if test -r "$cache_file"; then | |
698dcdb6 VZ |
861 | echo "loading cache $cache_file" |
862 | . $cache_file | |
10f2d63a | 863 | else |
698dcdb6 VZ |
864 | echo "creating cache $cache_file" |
865 | > $cache_file | |
10f2d63a VZ |
866 | fi |
867 | ||
868 | ac_ext=c | |
698dcdb6 | 869 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
10f2d63a | 870 | ac_cpp='$CPP $CPPFLAGS' |
698dcdb6 VZ |
871 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
872 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
873 | cross_compiling=$ac_cv_prog_cc_cross | |
874 | ||
875 | ac_exeext= | |
876 | ac_objext=o | |
877 | if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then | |
878 | # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu. | |
879 | if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then | |
880 | ac_n= ac_c=' | |
881 | ' ac_t=' ' | |
882 | else | |
883 | ac_n=-n ac_c= ac_t= | |
884 | fi | |
10f2d63a | 885 | else |
698dcdb6 | 886 | ac_n= ac_c='\c' ac_t= |
10f2d63a | 887 | fi |
698dcdb6 VZ |
888 | |
889 | ||
10f2d63a | 890 | |
7c66a493 VZ |
891 | ac_aux_dir= |
892 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do | |
893 | if test -f $ac_dir/install-sh; then | |
894 | ac_aux_dir=$ac_dir | |
895 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
896 | break | |
897 | elif test -f $ac_dir/install.sh; then | |
898 | ac_aux_dir=$ac_dir | |
899 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
900 | break | |
901 | fi | |
902 | done | |
903 | if test -z "$ac_aux_dir"; then | |
698dcdb6 | 904 | { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; } |
7c66a493 | 905 | fi |
698dcdb6 VZ |
906 | ac_config_guess=$ac_aux_dir/config.guess |
907 | ac_config_sub=$ac_aux_dir/config.sub | |
908 | ac_configure=$ac_aux_dir/configure # This should be Cygnus configure. | |
703e0a69 | 909 | |
698dcdb6 VZ |
910 | |
911 | # Do some error checking and defaulting for the host and target type. | |
912 | # The inputs are: | |
913 | # configure --host=HOST --target=TARGET --build=BUILD NONOPT | |
914 | # | |
915 | # The rules are: | |
916 | # 1. You are not allowed to specify --host, --target, and nonopt at the | |
917 | # same time. | |
918 | # 2. Host defaults to nonopt. | |
919 | # 3. If nonopt is not specified, then host defaults to the current host, | |
920 | # as determined by config.guess. | |
921 | # 4. Target and build default to nonopt. | |
922 | # 5. If nonopt is not specified, then target and build default to host. | |
7c66a493 VZ |
923 | |
924 | # The aliases save the names the user supplied, while $host etc. | |
925 | # will get canonicalized. | |
698dcdb6 VZ |
926 | case $host---$target---$nonopt in |
927 | NONE---*---* | *---NONE---* | *---*---NONE) ;; | |
928 | *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;; | |
929 | esac | |
930 | ||
931 | ||
932 | # Make sure we can run config.sub. | |
933 | if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then : | |
934 | else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; } | |
935 | fi | |
936 | ||
937 | echo $ac_n "checking host system type""... $ac_c" 1>&6 | |
edae8572 | 938 | echo "configure:939: checking host system type" >&5 |
698dcdb6 VZ |
939 | |
940 | host_alias=$host | |
941 | case "$host_alias" in | |
942 | NONE) | |
943 | case $nonopt in | |
944 | NONE) | |
945 | if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then : | |
946 | else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; } | |
947 | fi ;; | |
948 | *) host_alias=$nonopt ;; | |
949 | esac ;; | |
950 | esac | |
951 | ||
952 | host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias` | |
953 | host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
954 | host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
955 | host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
956 | echo "$ac_t""$host" 1>&6 | |
957 | ||
958 | echo $ac_n "checking target system type""... $ac_c" 1>&6 | |
edae8572 | 959 | echo "configure:960: checking target system type" >&5 |
698dcdb6 VZ |
960 | |
961 | target_alias=$target | |
962 | case "$target_alias" in | |
963 | NONE) | |
964 | case $nonopt in | |
965 | NONE) target_alias=$host_alias ;; | |
966 | *) target_alias=$nonopt ;; | |
967 | esac ;; | |
968 | esac | |
969 | ||
970 | target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias` | |
971 | target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
972 | target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
973 | target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
974 | echo "$ac_t""$target" 1>&6 | |
975 | ||
976 | echo $ac_n "checking build system type""... $ac_c" 1>&6 | |
edae8572 | 977 | echo "configure:978: checking build system type" >&5 |
698dcdb6 VZ |
978 | |
979 | build_alias=$build | |
980 | case "$build_alias" in | |
981 | NONE) | |
982 | case $nonopt in | |
983 | NONE) build_alias=$host_alias ;; | |
984 | *) build_alias=$nonopt ;; | |
985 | esac ;; | |
986 | esac | |
987 | ||
988 | build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias` | |
989 | build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
990 | build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
991 | build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
992 | echo "$ac_t""$build" 1>&6 | |
993 | ||
994 | test "$host_alias" != "$target_alias" && | |
7c66a493 VZ |
995 | test "$program_prefix$program_suffix$program_transform_name" = \ |
996 | NONENONEs,x,x, && | |
997 | program_prefix=${target_alias}- | |
998 | ||
698dcdb6 VZ |
999 | |
1000 | ||
10f2d63a | 1001 | WX_MAJOR_VERSION_NUMBER=2 |
37d403aa | 1002 | WX_MINOR_VERSION_NUMBER=3 |
6c01ec02 | 1003 | WX_RELEASE_NUMBER=2 |
10f2d63a | 1004 | |
10f2d63a | 1005 | WX_VERSION=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER.$WX_RELEASE_NUMBER |
10f2d63a | 1006 | WX_RELEASE=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER |
6426998c | 1007 | |
6c01ec02 | 1008 | WX_CURRENT=1 |
6426998c RL |
1009 | WX_REVISION=0 |
1010 | WX_AGE=0 | |
1011 | ||
698dcdb6 VZ |
1012 | |
1013 | ||
10f2d63a VZ |
1014 | USE_UNIX=1 |
1015 | USE_WIN32=0 | |
b12915c1 | 1016 | USE_BEOS=0 |
1216f52d | 1017 | USE_MAC=0 |
b12915c1 | 1018 | |
10f2d63a VZ |
1019 | USE_LINUX= |
1020 | USE_SGI= | |
1021 | USE_HPUX= | |
1022 | USE_SYSV= | |
1023 | USE_SVR4= | |
1024 | USE_AIX= | |
1025 | USE_SUN= | |
1026 | USE_SOLARIS= | |
1027 | USE_SUNOS= | |
1028 | USE_ALPHA= | |
1029 | USE_OSF= | |
1030 | USE_BSD= | |
f11bdd03 | 1031 | USE_DARWIN= |
10f2d63a | 1032 | USE_FREEBSD= |
95c8801c | 1033 | USE_OPENBSD= |
f6bcfd97 | 1034 | USE_NETBSD= |
10f2d63a VZ |
1035 | USE_VMS= |
1036 | USE_ULTRIX= | |
1037 | USE_CYGWIN= | |
1038 | USE_MINGW= | |
1039 | USE_DATA_GENERAL= | |
1040 | ||
ab9b9eab VZ |
1041 | NEEDS_D_REENTRANT_FOR_R_FUNCS=0 |
1042 | ||
1e6feb95 | 1043 | ALL_TOOLKITS="CYGWIN GTK MAC MGL MINGW MOTIF PM WINE" |
10f2d63a VZ |
1044 | |
1045 | DEFAULT_wxUSE_GTK=0 | |
1e6feb95 VZ |
1046 | DEFAULT_wxUSE_MAC=0 |
1047 | DEFAULT_wxUSE_MGL=0 | |
10f2d63a VZ |
1048 | DEFAULT_wxUSE_MOTIF=0 |
1049 | DEFAULT_wxUSE_MSW=0 | |
e07802fc | 1050 | DEFAULT_wxUSE_PM=0 |
1e6feb95 | 1051 | DEFAULT_wxUSE_WINE=0 |
10f2d63a VZ |
1052 | |
1053 | DEFAULT_DEFAULT_wxUSE_GTK=0 | |
1e6feb95 VZ |
1054 | DEFAULT_DEFAULT_wxUSE_MAC=0 |
1055 | DEFAULT_DEFAULT_wxUSE_MGL=0 | |
10f2d63a VZ |
1056 | DEFAULT_DEFAULT_wxUSE_MOTIF=0 |
1057 | DEFAULT_DEFAULT_wxUSE_MSW=0 | |
e07802fc | 1058 | DEFAULT_DEFAULT_wxUSE_PM=0 |
1e6feb95 | 1059 | DEFAULT_DEFAULT_wxUSE_WINE=0 |
10f2d63a | 1060 | |
d6a55c4b | 1061 | PROGRAM_EXT= |
3a922bb4 | 1062 | SO_SUFFIX=so |
d6a55c4b | 1063 | |
10f2d63a VZ |
1064 | case "${host}" in |
1065 | *-hp-hpux* ) | |
1066 | USE_HPUX=1 | |
1067 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
ab9b9eab | 1068 | NEEDS_D_REENTRANT_FOR_R_FUNCS=1 |
3a922bb4 | 1069 | SO_SUFFIX=sl |
698dcdb6 | 1070 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1071 | #define __HPUX__ 1 |
1072 | EOF | |
1073 | ||
1074 | ;; | |
1075 | *-*-linux* ) | |
1076 | USE_LINUX=1 | |
698dcdb6 | 1077 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1078 | #define __LINUX__ 1 |
1079 | EOF | |
1080 | ||
1081 | TMP=`uname -m` | |
1082 | if test "x$TMP" = "xalpha"; then | |
1083 | USE_ALPHA=1 | |
698dcdb6 | 1084 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1085 | #define __ALPHA__ 1 |
1086 | EOF | |
1087 | ||
1088 | fi | |
1089 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1090 | ;; | |
1091 | *-*-irix5* | *-*-irix6* ) | |
1092 | USE_SGI=1 | |
1093 | USE_SVR4=1 | |
698dcdb6 | 1094 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1095 | #define __SGI__ 1 |
1096 | EOF | |
1097 | ||
698dcdb6 | 1098 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1099 | #define __SVR4__ 1 |
1100 | EOF | |
1101 | ||
1102 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1103 | ;; | |
1104 | *-*-solaris2* ) | |
1105 | USE_SUN=1 | |
1106 | USE_SOLARIS=1 | |
1107 | USE_SVR4=1 | |
698dcdb6 | 1108 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1109 | #define __SUN__ 1 |
1110 | EOF | |
1111 | ||
698dcdb6 | 1112 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1113 | #define __SOLARIS__ 1 |
1114 | EOF | |
1115 | ||
698dcdb6 | 1116 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1117 | #define __SVR4__ 1 |
1118 | EOF | |
1119 | ||
1120 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
ab9b9eab | 1121 | NEEDS_D_REENTRANT_FOR_R_FUNCS=1 |
10f2d63a VZ |
1122 | ;; |
1123 | *-*-sunos4* ) | |
1124 | USE_SUN=1 | |
1125 | USE_SUNOS=1 | |
1126 | USE_BSD=1 | |
698dcdb6 | 1127 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1128 | #define __SUN__ 1 |
1129 | EOF | |
1130 | ||
698dcdb6 | 1131 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1132 | #define __SUNOS__ 1 |
1133 | EOF | |
1134 | ||
698dcdb6 | 1135 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1136 | #define __BSD__ 1 |
1137 | EOF | |
1138 | ||
1139 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1140 | ;; | |
f6bcfd97 | 1141 | *-*-freebsd*) |
10f2d63a VZ |
1142 | USE_BSD=1 |
1143 | USE_FREEBSD=1 | |
698dcdb6 | 1144 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1145 | #define __FREEBSD__ 1 |
1146 | EOF | |
1147 | ||
698dcdb6 | 1148 | cat >> confdefs.h <<\EOF |
10f2d63a | 1149 | #define __BSD__ 1 |
95c8801c VS |
1150 | EOF |
1151 | ||
1152 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1153 | ;; | |
1154 | *-*-openbsd*) | |
1155 | USE_BSD=1 | |
1156 | USE_OPENBSD=1 | |
698dcdb6 | 1157 | cat >> confdefs.h <<\EOF |
95c8801c VS |
1158 | #define __FREEBSD__ 1 |
1159 | EOF | |
1160 | ||
698dcdb6 | 1161 | cat >> confdefs.h <<\EOF |
95c8801c | 1162 | #define __OPENBSD__ 1 |
f6bcfd97 BP |
1163 | EOF |
1164 | ||
1165 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1166 | ;; | |
1167 | *-*-netbsd*) | |
1168 | USE_BSD=1 | |
1169 | USE_NETBSD=1 | |
698dcdb6 | 1170 | cat >> confdefs.h <<\EOF |
f6bcfd97 BP |
1171 | #define __FREEBSD__ 1 |
1172 | EOF | |
1173 | ||
698dcdb6 | 1174 | cat >> confdefs.h <<\EOF |
f6bcfd97 | 1175 | #define __NETBSD__ 1 |
10f2d63a VZ |
1176 | EOF |
1177 | ||
1178 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1179 | ;; | |
1180 | *-*-osf* ) | |
1181 | USE_ALPHA=1 | |
1182 | USE_OSF=1 | |
698dcdb6 | 1183 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1184 | #define __ALPHA__ 1 |
1185 | EOF | |
1186 | ||
698dcdb6 | 1187 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1188 | #define __OSF__ 1 |
1189 | EOF | |
1190 | ||
1191 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
f6bcfd97 | 1192 | NEEDS_D_REENTRANT_FOR_R_FUNCS=1 |
10f2d63a VZ |
1193 | ;; |
1194 | *-*-dgux5* ) | |
1195 | USE_ALPHA=1 | |
1196 | USE_SVR4=1 | |
698dcdb6 | 1197 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1198 | #define __ALPHA__ 1 |
1199 | EOF | |
1200 | ||
698dcdb6 | 1201 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1202 | #define __SVR4__ 1 |
1203 | EOF | |
1204 | ||
1205 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1206 | ;; | |
1207 | *-*-sysv5* ) | |
1208 | USE_SYSV=1 | |
1209 | USE_SVR4=1 | |
698dcdb6 | 1210 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1211 | #define __SYSV__ 1 |
1212 | EOF | |
1213 | ||
698dcdb6 | 1214 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1215 | #define __SVR4__ 1 |
1216 | EOF | |
1217 | ||
1218 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1219 | ;; | |
1220 | *-*-aix* ) | |
1221 | USE_AIX=1 | |
1222 | USE_SYSV=1 | |
1223 | USE_SVR4=1 | |
698dcdb6 | 1224 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1225 | #define __AIX__ 1 |
1226 | EOF | |
1227 | ||
698dcdb6 | 1228 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1229 | #define __SYSV__ 1 |
1230 | EOF | |
1231 | ||
698dcdb6 | 1232 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1233 | #define __SVR4__ 1 |
1234 | EOF | |
1235 | ||
1236 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1237 | ;; | |
1238 | ||
1c8183e2 | 1239 | *-*-cygwin* | *-*-mingw32* ) |
10f2d63a VZ |
1240 | USE_UNIX=0 |
1241 | USE_WIN32=1 | |
3a922bb4 | 1242 | SO_SUFFIX=dll |
698dcdb6 | 1243 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1244 | #define __WIN32__ 1 |
1245 | EOF | |
1246 | ||
698dcdb6 | 1247 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1248 | #define __WIN95__ 1 |
1249 | EOF | |
1250 | ||
698dcdb6 | 1251 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1252 | #define __WINDOWS__ 1 |
1253 | EOF | |
1254 | ||
698dcdb6 | 1255 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1256 | #define __GNUWIN32__ 1 |
1257 | EOF | |
1258 | ||
698dcdb6 | 1259 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1260 | #define STRICT 1 |
1261 | EOF | |
1262 | ||
698dcdb6 | 1263 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1264 | #define WINVER 0x0400 |
1265 | EOF | |
1266 | ||
cf27ef00 | 1267 | PROGRAM_EXT=".exe" |
10f2d63a VZ |
1268 | DEFAULT_DEFAULT_wxUSE_MSW=1 |
1269 | ;; | |
1270 | ||
1271 | *-pc-os2_emx ) | |
698dcdb6 | 1272 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1273 | #define __EMX__ 1 |
1274 | EOF | |
1275 | ||
cf27ef00 | 1276 | PROGRAM_EXT=".exe" |
e07802fc | 1277 | DEFAULT_DEFAULT_wxUSE_PM=1 |
10f2d63a VZ |
1278 | ;; |
1279 | ||
b4085ce6 GD |
1280 | *-*-darwin* ) |
1281 | USE_BSD=1 | |
f11bdd03 | 1282 | USE_DARWIN=1 |
3a922bb4 | 1283 | SO_SUFFIX=dylib |
698dcdb6 | 1284 | cat >> confdefs.h <<\EOF |
f11bdd03 | 1285 | #define __BSD__ 1 |
b4085ce6 GD |
1286 | EOF |
1287 | ||
698dcdb6 | 1288 | cat >> confdefs.h <<\EOF |
f11bdd03 | 1289 | #define __DARWIN__ 1 |
b4085ce6 GD |
1290 | EOF |
1291 | ||
1292 | DEFAULT_DEFAULT_wxUSE_MAC=1 | |
1293 | ;; | |
1294 | ||
b12915c1 VZ |
1295 | *-*-beos* ) |
1296 | USE_BEOS=1 | |
698dcdb6 | 1297 | cat >> confdefs.h <<\EOF |
b12915c1 VZ |
1298 | #define __BEOS__ 1 |
1299 | EOF | |
1300 | ||
1301 | ;; | |
1302 | ||
10f2d63a | 1303 | *) |
698dcdb6 | 1304 | { echo "configure: error: unknown system type ${host}." 1>&2; exit 1; } |
10f2d63a VZ |
1305 | esac |
1306 | ||
1307 | if test "$USE_UNIX" = 1 ; then | |
b12915c1 | 1308 | wxUSE_UNIX=yes |
698dcdb6 | 1309 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1310 | #define __UNIX__ 1 |
1311 | EOF | |
1312 | ||
10f2d63a VZ |
1313 | fi |
1314 | ||
2389f33b VZ |
1315 | if test "$USE_LINUX" = 1; then |
1316 | echo $ac_n "checking for glibc 2.1 or later""... $ac_c" 1>&6 | |
edae8572 | 1317 | echo "configure:1318: checking for glibc 2.1 or later" >&5 |
2389f33b VZ |
1318 | if eval "test \"`echo '$''{'wx_lib_glibc21'+set}'`\" = set"; then |
1319 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1320 | else | |
1321 | cat > conftest.$ac_ext <<EOF | |
edae8572 | 1322 | #line 1323 "configure" |
2389f33b VZ |
1323 | #include "confdefs.h" |
1324 | #include <features.h> | |
1325 | int main() { | |
1326 | ||
1327 | #if !__GLIBC_PREREQ(2, 1) | |
1328 | #error not glibc2.1 | |
1329 | #endif | |
1330 | ||
1331 | ; return 0; } | |
1332 | EOF | |
edae8572 | 1333 | if { (eval echo configure:1334: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
2389f33b VZ |
1334 | rm -rf conftest* |
1335 | ||
1336 | wx_lib_glibc21=yes | |
1337 | ||
1338 | else | |
1339 | echo "configure: failed program was:" >&5 | |
1340 | cat conftest.$ac_ext >&5 | |
1341 | rm -rf conftest* | |
1342 | ||
1343 | wx_lib_glibc21=no | |
1344 | ||
1345 | ||
1346 | fi | |
1347 | rm -f conftest* | |
1348 | ||
1349 | fi | |
1350 | ||
1351 | echo "$ac_t""$wx_lib_glibc21" 1>&6 | |
2389f33b VZ |
1352 | if test "$wx_lib_glibc21" = "yes"; then |
1353 | cat >> confdefs.h <<\EOF | |
1354 | #define wxHAVE_GLIBC2 1 | |
1355 | EOF | |
1356 | ||
1357 | fi | |
1358 | fi | |
10f2d63a | 1359 | |
1e487827 | 1360 | |
1e487827 | 1361 | |
6232543b | 1362 | |
10f2d63a VZ |
1363 | wx_arg_cache_file="configarg.cache" |
1364 | echo "loading argument cache $wx_arg_cache_file" | |
1365 | rm -f ${wx_arg_cache_file}.tmp | |
1366 | touch ${wx_arg_cache_file}.tmp | |
1367 | touch ${wx_arg_cache_file} | |
698dcdb6 | 1368 | |
10f2d63a VZ |
1369 | |
1370 | DEBUG_CONFIGURE=0 | |
1371 | if test $DEBUG_CONFIGURE = 1; then | |
1e6feb95 VZ |
1372 | DEFAULT_wxUSE_UNIVERSAL=no |
1373 | ||
10f2d63a VZ |
1374 | DEFAULT_wxUSE_THREADS=yes |
1375 | ||
1376 | DEFAULT_wxUSE_SHARED=yes | |
3a922bb4 | 1377 | DEFAULT_wxUSE_SONAME=no |
1e6feb95 | 1378 | DEFAULT_wxUSE_OPTIMISE=no |
10f2d63a VZ |
1379 | DEFAULT_wxUSE_PROFILE=no |
1380 | DEFAULT_wxUSE_NO_DEPS=no | |
1381 | DEFAULT_wxUSE_NO_RTTI=no | |
1382 | DEFAULT_wxUSE_NO_EXCEPTIONS=no | |
1383 | DEFAULT_wxUSE_PERMISSIVE=no | |
1384 | DEFAULT_wxUSE_DEBUG_FLAG=yes | |
1385 | DEFAULT_wxUSE_DEBUG_INFO=yes | |
1386 | DEFAULT_wxUSE_DEBUG_GDB=yes | |
1387 | DEFAULT_wxUSE_MEM_TRACING=no | |
1388 | DEFAULT_wxUSE_DEBUG_CONTEXT=no | |
1389 | DEFAULT_wxUSE_DMALLOC=no | |
1390 | DEFAULT_wxUSE_APPLE_IEEE=no | |
1391 | ||
1392 | DEFAULT_wxUSE_LOG=yes | |
1e6feb95 VZ |
1393 | DEFAULT_wxUSE_LOGWINDOW=no |
1394 | DEFAULT_wxUSE_LOGGUI=no | |
10f2d63a VZ |
1395 | |
1396 | DEFAULT_wxUSE_GUI=yes | |
1e6feb95 | 1397 | DEFAULT_wxUSE_CONTROLS=no |
10f2d63a | 1398 | |
3e44f09d | 1399 | DEFAULT_wxUSE_REGEX=no |
10f2d63a VZ |
1400 | DEFAULT_wxUSE_ZLIB=no |
1401 | DEFAULT_wxUSE_LIBPNG=no | |
1402 | DEFAULT_wxUSE_LIBJPEG=no | |
c7a2bf27 | 1403 | DEFAULT_wxUSE_LIBTIFF=no |
10f2d63a | 1404 | DEFAULT_wxUSE_ODBC=no |
3fed1840 | 1405 | DEFAULT_wxUSE_FREETYPE=no |
bdad4e7e | 1406 | DEFAULT_wxUSE_OPENGL=no |
10f2d63a | 1407 | |
eb4efbdc | 1408 | DEFAULT_wxUSE_ON_FATAL_EXCEPTION=no |
4f3c5f06 | 1409 | DEFAULT_wxUSE_SNGLINST_CHECKER=no |
10f2d63a | 1410 | DEFAULT_wxUSE_STD_IOSTREAM=no |
1e6feb95 VZ |
1411 | DEFAULT_wxUSE_CMDLINE_PARSER=no |
1412 | DEFAULT_wxUSE_DATETIME=no | |
1413 | DEFAULT_wxUSE_TIMEDATE=no | |
1414 | DEFAULT_wxUSE_TIMER=no | |
1415 | DEFAULT_wxUSE_STOPWATCH=no | |
10f2d63a | 1416 | DEFAULT_wxUSE_FILE=no |
1e6feb95 | 1417 | DEFAULT_wxUSE_FFILE=no |
10f2d63a | 1418 | DEFAULT_wxUSE_TEXTFILE=no |
10f2d63a VZ |
1419 | DEFAULT_wxUSE_WAVE=no |
1420 | DEFAULT_wxUSE_INTL=no | |
1421 | DEFAULT_wxUSE_CONFIG=no | |
1e6feb95 | 1422 | DEFAULT_wxUSE_FONTMAP=no |
10f2d63a VZ |
1423 | DEFAULT_wxUSE_STREAMS=no |
1424 | DEFAULT_wxUSE_SOCKETS=no | |
1425 | DEFAULT_wxUSE_DIALUP_MANAGER=no | |
1426 | DEFAULT_wxUSE_SERIAL=no | |
1427 | DEFAULT_wxUSE_JOYSTICK=no | |
1428 | DEFAULT_wxUSE_DYNLIB_CLASS=no | |
1429 | DEFAULT_wxUSE_LONGLONG=no | |
e8f65ba6 | 1430 | DEFAULT_wxUSE_GEOMETRY=no |
10f2d63a VZ |
1431 | |
1432 | DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no | |
1433 | DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no | |
1434 | DEFAULT_wxUSE_POSTSCRIPT=no | |
1435 | ||
1436 | DEFAULT_wxUSE_X_RESOURCES=no | |
1437 | DEFAULT_wxUSE_CLIPBOARD=no | |
1438 | DEFAULT_wxUSE_TOOLTIPS=no | |
1439 | DEFAULT_wxUSE_DRAG_AND_DROP=no | |
24fd6d87 | 1440 | DEFAULT_wxUSE_DRAGIMAGE=no |
10f2d63a VZ |
1441 | DEFAULT_wxUSE_SPLINES=no |
1442 | ||
1443 | DEFAULT_wxUSE_MDI_ARCHITECTURE=no | |
1444 | DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no | |
1445 | DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no | |
1446 | ||
1447 | DEFAULT_wxUSE_PROLOGIO=no | |
1448 | DEFAULT_wxUSE_RESOURCES=no | |
1449 | DEFAULT_wxUSE_CONSTRAINTS=no | |
1450 | DEFAULT_wxUSE_IPC=no | |
1451 | DEFAULT_wxUSE_HELP=no | |
29fd3c0c | 1452 | DEFAULT_wxUSE_MS_HTML_HELP=no |
3379ed37 | 1453 | DEFAULT_wxUSE_WXHTML_HELP=no |
24176f2c | 1454 | DEFAULT_wxUSE_TREELAYOUT=no |
10f2d63a | 1455 | DEFAULT_wxUSE_METAFILE=no |
1e6feb95 | 1456 | DEFAULT_wxUSE_MIMETYPE=no |
3e44f09d | 1457 | DEFAULT_wxUSE_SYSTEM_OPTIONS=yes |
10f2d63a VZ |
1458 | |
1459 | DEFAULT_wxUSE_COMMONDLGS=no | |
1e6feb95 VZ |
1460 | DEFAULT_wxUSE_CHOICEDLG=no |
1461 | DEFAULT_wxUSE_COLOURDLG=no | |
10f2d63a | 1462 | DEFAULT_wxUSE_DIRDLG=no |
1e6feb95 | 1463 | DEFAULT_wxUSE_FILEDLG=no |
8db37e06 | 1464 | DEFAULT_wxUSE_FINDREPLDLG=no |
1e6feb95 VZ |
1465 | DEFAULT_wxUSE_FONTDLG=no |
1466 | DEFAULT_wxUSE_MSGDLG=no | |
1467 | DEFAULT_wxUSE_NUMBERDLG=no | |
10f2d63a | 1468 | DEFAULT_wxUSE_TEXTDLG=no |
cbca9943 | 1469 | DEFAULT_wxUSE_SPLASH=no |
10f2d63a VZ |
1470 | DEFAULT_wxUSE_STARTUP_TIPS=no |
1471 | DEFAULT_wxUSE_PROGRESSDLG=no | |
b1f5d087 VZ |
1472 | DEFAULT_wxUSE_WIZARDDLG=no |
1473 | ||
1e6feb95 | 1474 | DEFAULT_wxUSE_MENUS=no |
10f2d63a VZ |
1475 | DEFAULT_wxUSE_MINIFRAME=no |
1476 | DEFAULT_wxUSE_HTML=no | |
24528b0c | 1477 | DEFAULT_wxUSE_FILESYSTEM=no |
10f2d63a VZ |
1478 | DEFAULT_wxUSE_FS_INET=no |
1479 | DEFAULT_wxUSE_FS_ZIP=no | |
1480 | DEFAULT_wxUSE_BUSYINFO=no | |
1481 | DEFAULT_wxUSE_ZIPSTREAM=no | |
1e6feb95 | 1482 | DEFAULT_wxUSE_VALIDATORS=no |
10f2d63a VZ |
1483 | |
1484 | DEFAULT_wxUSE_ACCEL=no | |
1e6feb95 | 1485 | DEFAULT_wxUSE_BUTTON=no |
10f2d63a | 1486 | DEFAULT_wxUSE_BMPBUTTON=no |
1e6feb95 VZ |
1487 | DEFAULT_wxUSE_CALCTRL=no |
1488 | DEFAULT_wxUSE_CARET=no | |
10f2d63a VZ |
1489 | DEFAULT_wxUSE_CHECKBOX=no |
1490 | DEFAULT_wxUSE_CHECKLST=no | |
1e6feb95 | 1491 | DEFAULT_wxUSE_CHOICE=no |
10f2d63a VZ |
1492 | DEFAULT_wxUSE_COMBOBOX=no |
1493 | DEFAULT_wxUSE_GAUGE=no | |
1494 | DEFAULT_wxUSE_GRID=no | |
1495 | DEFAULT_wxUSE_NEW_GRID=no | |
1496 | DEFAULT_wxUSE_IMAGLIST=no | |
1497 | DEFAULT_wxUSE_LISTBOX=no | |
1498 | DEFAULT_wxUSE_LISTCTRL=no | |
1499 | DEFAULT_wxUSE_NOTEBOOK=no | |
24176f2c | 1500 | DEFAULT_wxUSE_PROPSHEET=no |
10f2d63a VZ |
1501 | DEFAULT_wxUSE_RADIOBOX=no |
1502 | DEFAULT_wxUSE_RADIOBTN=no | |
1503 | DEFAULT_wxUSE_SASH=no | |
1504 | DEFAULT_wxUSE_SCROLLBAR=no | |
1505 | DEFAULT_wxUSE_SLIDER=no | |
1506 | DEFAULT_wxUSE_SPINBTN=no | |
56cfaa52 | 1507 | DEFAULT_wxUSE_SPINCTRL=no |
10f2d63a VZ |
1508 | DEFAULT_wxUSE_SPLITTER=no |
1509 | DEFAULT_wxUSE_STATBMP=no | |
1510 | DEFAULT_wxUSE_STATBOX=no | |
1511 | DEFAULT_wxUSE_STATLINE=no | |
1e6feb95 | 1512 | DEFAULT_wxUSE_STATTEXT=no |
10f2d63a VZ |
1513 | DEFAULT_wxUSE_STATUSBAR=yes |
1514 | DEFAULT_wxUSE_TABDIALOG=no | |
1e6feb95 | 1515 | DEFAULT_wxUSE_TEXTCTRL=no |
1db8dc4a | 1516 | DEFAULT_wxUSE_TOGGLEBTN=no |
10f2d63a | 1517 | DEFAULT_wxUSE_TOOLBAR=no |
360d6699 VZ |
1518 | DEFAULT_wxUSE_TOOLBAR_NATIVE=no |
1519 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=no | |
10f2d63a | 1520 | DEFAULT_wxUSE_TREECTRL=no |
9f41d601 | 1521 | DEFAULT_wxUSE_POPUPWIN=no |
10f2d63a VZ |
1522 | |
1523 | DEFAULT_wxUSE_UNICODE=no | |
1524 | DEFAULT_wxUSE_WCSRTOMBS=no | |
1525 | ||
edae8572 | 1526 | DEFAULT_wxUSE_PALETTE=no |
0046ff7c | 1527 | DEFAULT_wxUSE_IMAGE=no |
10f2d63a VZ |
1528 | DEFAULT_wxUSE_GIF=no |
1529 | DEFAULT_wxUSE_PCX=no | |
1530 | DEFAULT_wxUSE_PNM=no | |
0046ff7c | 1531 | DEFAULT_wxUSE_XPM=no |
10f2d63a | 1532 | else |
1e6feb95 VZ |
1533 | DEFAULT_wxUSE_UNIVERSAL=no |
1534 | ||
10f2d63a VZ |
1535 | DEFAULT_wxUSE_THREADS=yes |
1536 | ||
1537 | DEFAULT_wxUSE_SHARED=yes | |
3a922bb4 | 1538 | DEFAULT_wxUSE_SONAME=no |
10f2d63a VZ |
1539 | DEFAULT_wxUSE_OPTIMISE=yes |
1540 | DEFAULT_wxUSE_PROFILE=no | |
1541 | DEFAULT_wxUSE_NO_DEPS=no | |
1542 | DEFAULT_wxUSE_NO_RTTI=no | |
1543 | DEFAULT_wxUSE_NO_EXCEPTIONS=no | |
1544 | DEFAULT_wxUSE_PERMISSIVE=no | |
1545 | DEFAULT_wxUSE_DEBUG_FLAG=no | |
1546 | DEFAULT_wxUSE_DEBUG_INFO=no | |
1547 | DEFAULT_wxUSE_DEBUG_GDB=no | |
1548 | DEFAULT_wxUSE_MEM_TRACING=no | |
1549 | DEFAULT_wxUSE_DEBUG_CONTEXT=no | |
1550 | DEFAULT_wxUSE_DMALLOC=no | |
1551 | DEFAULT_wxUSE_APPLE_IEEE=yes | |
1552 | ||
1553 | DEFAULT_wxUSE_LOG=yes | |
d73be714 VZ |
1554 | DEFAULT_wxUSE_LOGWINDOW=yes |
1555 | DEFAULT_wxUSE_LOGGUI=yes | |
10f2d63a VZ |
1556 | |
1557 | DEFAULT_wxUSE_GUI=yes | |
1558 | ||
831b3152 | 1559 | DEFAULT_wxUSE_REGEX=yes |
10f2d63a VZ |
1560 | DEFAULT_wxUSE_ZLIB=yes |
1561 | DEFAULT_wxUSE_LIBPNG=yes | |
1562 | DEFAULT_wxUSE_LIBJPEG=yes | |
b47c832e | 1563 | DEFAULT_wxUSE_LIBTIFF=yes |
16b52fa1 | 1564 | DEFAULT_wxUSE_ODBC=no |
3fed1840 | 1565 | DEFAULT_wxUSE_FREETYPE=no |
bdad4e7e | 1566 | DEFAULT_wxUSE_OPENGL=no |
10f2d63a | 1567 | |
eb4efbdc | 1568 | DEFAULT_wxUSE_ON_FATAL_EXCEPTION=yes |
4f3c5f06 | 1569 | DEFAULT_wxUSE_SNGLINST_CHECKER=yes |
10f2d63a | 1570 | DEFAULT_wxUSE_STD_IOSTREAM=no |
1e6feb95 VZ |
1571 | DEFAULT_wxUSE_CMDLINE_PARSER=yes |
1572 | DEFAULT_wxUSE_DATETIME=yes | |
1573 | DEFAULT_wxUSE_TIMEDATE=no | |
1574 | DEFAULT_wxUSE_TIMER=yes | |
1575 | DEFAULT_wxUSE_STOPWATCH=yes | |
10f2d63a | 1576 | DEFAULT_wxUSE_FILE=yes |
1e6feb95 | 1577 | DEFAULT_wxUSE_FFILE=yes |
10f2d63a | 1578 | DEFAULT_wxUSE_TEXTFILE=yes |
10f2d63a VZ |
1579 | DEFAULT_wxUSE_WAVE=no |
1580 | DEFAULT_wxUSE_INTL=yes | |
1581 | DEFAULT_wxUSE_CONFIG=yes | |
1e6feb95 | 1582 | DEFAULT_wxUSE_FONTMAP=yes |
10f2d63a VZ |
1583 | DEFAULT_wxUSE_STREAMS=yes |
1584 | DEFAULT_wxUSE_SOCKETS=yes | |
1585 | DEFAULT_wxUSE_DIALUP_MANAGER=yes | |
1586 | DEFAULT_wxUSE_SERIAL=yes | |
1587 | DEFAULT_wxUSE_JOYSTICK=yes | |
1588 | DEFAULT_wxUSE_DYNLIB_CLASS=yes | |
b685cd9b | 1589 | DEFAULT_wxUSE_LONGLONG=yes |
e8f65ba6 | 1590 | DEFAULT_wxUSE_GEOMETRY=yes |
10f2d63a VZ |
1591 | |
1592 | DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes | |
1593 | DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes | |
1594 | DEFAULT_wxUSE_POSTSCRIPT=yes | |
1595 | ||
1596 | DEFAULT_wxUSE_X_RESOURCES=no | |
1597 | DEFAULT_wxUSE_CLIPBOARD=yes | |
1598 | DEFAULT_wxUSE_TOOLTIPS=yes | |
1599 | DEFAULT_wxUSE_DRAG_AND_DROP=yes | |
24fd6d87 | 1600 | DEFAULT_wxUSE_DRAGIMAGE=yes |
10f2d63a VZ |
1601 | DEFAULT_wxUSE_SPLINES=yes |
1602 | ||
1603 | DEFAULT_wxUSE_MDI_ARCHITECTURE=yes | |
1604 | DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes | |
1605 | DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes | |
1606 | ||
1607 | DEFAULT_wxUSE_PROLOGIO=yes | |
1608 | DEFAULT_wxUSE_RESOURCES=yes | |
1609 | DEFAULT_wxUSE_CONSTRAINTS=yes | |
1610 | DEFAULT_wxUSE_IPC=yes | |
1611 | DEFAULT_wxUSE_HELP=yes | |
29fd3c0c | 1612 | DEFAULT_wxUSE_MS_HTML_HELP=yes |
3379ed37 | 1613 | DEFAULT_wxUSE_WXHTML_HELP=yes |
24176f2c | 1614 | DEFAULT_wxUSE_TREELAYOUT=yes |
10f2d63a | 1615 | DEFAULT_wxUSE_METAFILE=yes |
1e6feb95 | 1616 | DEFAULT_wxUSE_MIMETYPE=yes |
3e44f09d | 1617 | DEFAULT_wxUSE_SYSTEM_OPTIONS=yes |
10f2d63a VZ |
1618 | |
1619 | DEFAULT_wxUSE_COMMONDLGS=yes | |
1e6feb95 VZ |
1620 | DEFAULT_wxUSE_CHOICEDLG=yes |
1621 | DEFAULT_wxUSE_COLOURDLG=yes | |
10f2d63a | 1622 | DEFAULT_wxUSE_DIRDLG=yes |
1e6feb95 | 1623 | DEFAULT_wxUSE_FILEDLG=yes |
8db37e06 | 1624 | DEFAULT_wxUSE_FINDREPLDLG=yes |
1e6feb95 VZ |
1625 | DEFAULT_wxUSE_FONTDLG=yes |
1626 | DEFAULT_wxUSE_MSGDLG=yes | |
1627 | DEFAULT_wxUSE_NUMBERDLG=yes | |
10f2d63a | 1628 | DEFAULT_wxUSE_TEXTDLG=yes |
cbca9943 | 1629 | DEFAULT_wxUSE_SPLASH=yes |
10f2d63a VZ |
1630 | DEFAULT_wxUSE_STARTUP_TIPS=yes |
1631 | DEFAULT_wxUSE_PROGRESSDLG=yes | |
f33f19dd VZ |
1632 | DEFAULT_wxUSE_WIZARDDLG=yes |
1633 | ||
1e6feb95 | 1634 | DEFAULT_wxUSE_MENUS=yes |
10f2d63a VZ |
1635 | DEFAULT_wxUSE_MINIFRAME=yes |
1636 | DEFAULT_wxUSE_HTML=yes | |
24528b0c | 1637 | DEFAULT_wxUSE_FILESYSTEM=yes |
10f2d63a VZ |
1638 | DEFAULT_wxUSE_FS_INET=yes |
1639 | DEFAULT_wxUSE_FS_ZIP=yes | |
1640 | DEFAULT_wxUSE_BUSYINFO=yes | |
1641 | DEFAULT_wxUSE_ZIPSTREAM=yes | |
1642 | DEFAULT_wxUSE_VALIDATORS=yes | |
1643 | ||
1644 | DEFAULT_wxUSE_ACCEL=yes | |
1e6feb95 | 1645 | DEFAULT_wxUSE_BUTTON=yes |
10f2d63a | 1646 | DEFAULT_wxUSE_BMPBUTTON=yes |
1e6feb95 VZ |
1647 | DEFAULT_wxUSE_CALCTRL=yes |
1648 | DEFAULT_wxUSE_CARET=yes | |
10f2d63a VZ |
1649 | DEFAULT_wxUSE_CHECKBOX=yes |
1650 | DEFAULT_wxUSE_CHECKLST=yes | |
1651 | DEFAULT_wxUSE_CHOICE=yes | |
1652 | DEFAULT_wxUSE_COMBOBOX=yes | |
1653 | DEFAULT_wxUSE_GAUGE=yes | |
1654 | DEFAULT_wxUSE_GRID=yes | |
cc977e5f | 1655 | DEFAULT_wxUSE_NEW_GRID=yes |
10f2d63a VZ |
1656 | DEFAULT_wxUSE_IMAGLIST=yes |
1657 | DEFAULT_wxUSE_LISTBOX=yes | |
1658 | DEFAULT_wxUSE_LISTCTRL=yes | |
1659 | DEFAULT_wxUSE_NOTEBOOK=yes | |
24176f2c | 1660 | DEFAULT_wxUSE_PROPSHEET=yes |
10f2d63a VZ |
1661 | DEFAULT_wxUSE_RADIOBOX=yes |
1662 | DEFAULT_wxUSE_RADIOBTN=yes | |
1663 | DEFAULT_wxUSE_SASH=yes | |
1664 | DEFAULT_wxUSE_SCROLLBAR=yes | |
1665 | DEFAULT_wxUSE_SLIDER=yes | |
1666 | DEFAULT_wxUSE_SPINBTN=yes | |
56cfaa52 | 1667 | DEFAULT_wxUSE_SPINCTRL=yes |
10f2d63a VZ |
1668 | DEFAULT_wxUSE_SPLITTER=yes |
1669 | DEFAULT_wxUSE_STATBMP=yes | |
1670 | DEFAULT_wxUSE_STATBOX=yes | |
1671 | DEFAULT_wxUSE_STATLINE=yes | |
1e6feb95 | 1672 | DEFAULT_wxUSE_STATTEXT=yes |
10f2d63a VZ |
1673 | DEFAULT_wxUSE_STATUSBAR=yes |
1674 | DEFAULT_wxUSE_TABDIALOG=no | |
1e6feb95 | 1675 | DEFAULT_wxUSE_TEXTCTRL=yes |
1db8dc4a | 1676 | DEFAULT_wxUSE_TOGGLEBTN=yes |
10f2d63a | 1677 | DEFAULT_wxUSE_TOOLBAR=yes |
360d6699 VZ |
1678 | DEFAULT_wxUSE_TOOLBAR_NATIVE=yes |
1679 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes | |
10f2d63a | 1680 | DEFAULT_wxUSE_TREECTRL=yes |
9f41d601 | 1681 | DEFAULT_wxUSE_POPUPWIN=yes |
10f2d63a VZ |
1682 | |
1683 | DEFAULT_wxUSE_UNICODE=no | |
1684 | DEFAULT_wxUSE_WCSRTOMBS=no | |
1685 | ||
edae8572 | 1686 | DEFAULT_wxUSE_PALETTE=yes |
0046ff7c | 1687 | DEFAULT_wxUSE_IMAGE=yes |
10f2d63a VZ |
1688 | DEFAULT_wxUSE_GIF=yes |
1689 | DEFAULT_wxUSE_PCX=yes | |
1690 | DEFAULT_wxUSE_PNM=yes | |
0046ff7c | 1691 | DEFAULT_wxUSE_XPM=yes |
10f2d63a VZ |
1692 | fi |
1693 | ||
698dcdb6 VZ |
1694 | |
1695 | ||
10f2d63a VZ |
1696 | for toolkit in `echo $ALL_TOOLKITS`; do |
1697 | LINE=`grep "wxUSE_$toolkit" ${wx_arg_cache_file}` | |
1698 | if test "x$LINE" != x ; then | |
1699 | has_toolkit_in_cache=1 | |
1700 | eval "DEFAULT_$LINE" | |
1701 | eval "CACHE_$toolkit=1" | |
1702 | fi | |
1703 | done | |
1704 | ||
698dcdb6 VZ |
1705 | |
1706 | ||
1707 | echo $ac_n "checking for --enable-gui""... $ac_c" 1>&6 | |
edae8572 | 1708 | echo "configure:1709: checking for --enable-gui" >&5 |
10f2d63a VZ |
1709 | no_cache=0 |
1710 | # Check whether --enable-gui or --disable-gui was given. | |
1711 | if test "${enable_gui+set}" = set; then | |
1712 | enableval="$enable_gui" | |
698dcdb6 | 1713 | |
10f2d63a VZ |
1714 | if test "$enableval" = yes; then |
1715 | ac_cv_use_gui='wxUSE_GUI=yes' | |
1716 | else | |
1717 | ac_cv_use_gui='wxUSE_GUI=no' | |
1718 | fi | |
698dcdb6 | 1719 | |
10f2d63a | 1720 | else |
698dcdb6 | 1721 | |
10f2d63a VZ |
1722 | LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}` |
1723 | if test "x$LINE" != x ; then | |
1724 | eval "DEFAULT_$LINE" | |
1725 | else | |
1726 | no_cache=1 | |
1727 | fi | |
1728 | ||
1729 | ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI | |
698dcdb6 VZ |
1730 | |
1731 | fi | |
10f2d63a VZ |
1732 | |
1733 | ||
1734 | eval "$ac_cv_use_gui" | |
1735 | if test "$no_cache" != 1; then | |
1736 | echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp | |
1737 | fi | |
1738 | ||
1739 | if test "$wxUSE_GUI" = yes; then | |
698dcdb6 | 1740 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 1741 | else |
698dcdb6 | 1742 | echo "$ac_t""no" 1>&6 |
10f2d63a | 1743 | fi |
698dcdb6 | 1744 | |
10f2d63a | 1745 | |
b12915c1 | 1746 | if test "$wxUSE_GUI" = "yes"; then |
10f2d63a | 1747 | |
1e6feb95 VZ |
1748 | |
1749 | echo $ac_n "checking for --enable-universal""... $ac_c" 1>&6 | |
edae8572 | 1750 | echo "configure:1751: checking for --enable-universal" >&5 |
1e6feb95 VZ |
1751 | no_cache=0 |
1752 | # Check whether --enable-universal or --disable-universal was given. | |
1753 | if test "${enable_universal+set}" = set; then | |
1754 | enableval="$enable_universal" | |
1755 | ||
1756 | if test "$enableval" = yes; then | |
1757 | ac_cv_use_universal='wxUSE_UNIVERSAL=yes' | |
1758 | else | |
1759 | ac_cv_use_universal='wxUSE_UNIVERSAL=no' | |
1760 | fi | |
1761 | ||
1762 | else | |
1763 | ||
1764 | LINE=`grep "wxUSE_UNIVERSAL" ${wx_arg_cache_file}` | |
1765 | if test "x$LINE" != x ; then | |
1766 | eval "DEFAULT_$LINE" | |
1767 | else | |
1768 | no_cache=1 | |
1769 | fi | |
1770 | ||
1771 | ac_cv_use_universal='wxUSE_UNIVERSAL='$DEFAULT_wxUSE_UNIVERSAL | |
1772 | ||
1773 | fi | |
1774 | ||
1775 | ||
1776 | eval "$ac_cv_use_universal" | |
1777 | if test "$no_cache" != 1; then | |
1778 | echo $ac_cv_use_universal >> ${wx_arg_cache_file}.tmp | |
1779 | fi | |
1780 | ||
1781 | if test "$wxUSE_UNIVERSAL" = yes; then | |
1782 | echo "$ac_t""yes" 1>&6 | |
1783 | else | |
1784 | echo "$ac_t""no" 1>&6 | |
1785 | fi | |
1786 | ||
10f2d63a VZ |
1787 | # Check whether --with-gtk or --without-gtk was given. |
1788 | if test "${with_gtk+set}" = set; then | |
1789 | withval="$with_gtk" | |
1790 | wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1 | |
698dcdb6 | 1791 | fi |
10f2d63a VZ |
1792 | |
1793 | # Check whether --with-motif or --without-motif was given. | |
1794 | if test "${with_motif+set}" = set; then | |
1795 | withval="$with_motif" | |
1796 | wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1 | |
698dcdb6 | 1797 | fi |
10f2d63a | 1798 | |
b4085ce6 GD |
1799 | # Check whether --with-mac or --without-mac was given. |
1800 | if test "${with_mac+set}" = set; then | |
1801 | withval="$with_mac" | |
1802 | wxUSE_MAC="$withval" TOOLKIT_GIVEN=1 | |
698dcdb6 | 1803 | fi |
b4085ce6 | 1804 | |
10f2d63a VZ |
1805 | # Check whether --with-wine or --without-wine was given. |
1806 | if test "${with_wine+set}" = set; then | |
1807 | withval="$with_wine" | |
1808 | wxUSE_WINE="$withval" CACHE_WINE=1 TOOLKIT_GIVEN=1 | |
698dcdb6 | 1809 | fi |
10f2d63a VZ |
1810 | |
1811 | # Check whether --with-cygwin or --without-cygwin was given. | |
1812 | if test "${with_cygwin+set}" = set; then | |
1813 | withval="$with_cygwin" | |
1814 | wxUSE_CYGWIN="$withval" CACHE_CYGWIN=1 TOOLKIT_GIVEN=1 | |
698dcdb6 | 1815 | fi |
10f2d63a VZ |
1816 | |
1817 | # Check whether --with-mingw or --without-mingw was given. | |
1818 | if test "${with_mingw+set}" = set; then | |
1819 | withval="$with_mingw" | |
1820 | wxUSE_MINGW="$withval" CACHE_MINGW=1 TOOLKIT_GIVEN=1 | |
698dcdb6 | 1821 | fi |
10f2d63a | 1822 | |
e07802fc VZ |
1823 | # Check whether --with-pm or --without-pm was given. |
1824 | if test "${with_pm+set}" = set; then | |
1825 | withval="$with_pm" | |
1826 | wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1 | |
698dcdb6 VZ |
1827 | fi |
1828 | ||
1e6feb95 VZ |
1829 | # Check whether --with-mgl or --without-mgl was given. |
1830 | if test "${with_mgl+set}" = set; then | |
1831 | withval="$with_mgl" | |
1832 | wxUSE_MGL="$withval" CACHE_MGL=1 TOOLKIT_GIVEN=1 | |
1833 | fi | |
1834 | ||
10f2d63a | 1835 | |
8168de4c VZ |
1836 | # Check whether --enable-gtk2 or --disable-gtk2 was given. |
1837 | if test "${enable_gtk2+set}" = set; then | |
1838 | enableval="$enable_gtk2" | |
1839 | wxUSE_GTK2=1 | |
10f2d63a | 1840 | else |
8168de4c | 1841 | wxUSE_GTK2=0 |
698dcdb6 VZ |
1842 | fi |
1843 | ||
703e0a69 | 1844 | |
1e487827 | 1845 | |
698dcdb6 | 1846 | echo $ac_n "checking for --with-libpng""... $ac_c" 1>&6 |
edae8572 | 1847 | echo "configure:1848: checking for --with-libpng" >&5 |
698dcdb6 VZ |
1848 | no_cache=0 |
1849 | # Check whether --with-libpng or --without-libpng was given. | |
b12915c1 VZ |
1850 | if test "${with_libpng+set}" = set; then |
1851 | withval="$with_libpng" | |
698dcdb6 | 1852 | |
10f2d63a | 1853 | if test "$withval" = yes; then |
b12915c1 | 1854 | ac_cv_use_libpng='wxUSE_LIBPNG=yes' |
422107f9 | 1855 | elif test "$withval" = no; then |
b12915c1 | 1856 | ac_cv_use_libpng='wxUSE_LIBPNG=no' |
422107f9 VZ |
1857 | elif test "$withval" = sys; then |
1858 | ac_cv_use_libpng='wxUSE_LIBPNG=sys' | |
1859 | else | |
698dcdb6 | 1860 | { echo "configure: error: Invalid value for --with-libpng: should be yes, no or sys" 1>&2; exit 1; } |
10f2d63a | 1861 | fi |
698dcdb6 | 1862 | |
10f2d63a | 1863 | else |
698dcdb6 | 1864 | |
b12915c1 | 1865 | LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}` |
10f2d63a VZ |
1866 | if test "x$LINE" != x ; then |
1867 | eval "DEFAULT_$LINE" | |
1868 | else | |
1869 | no_cache=1 | |
1870 | fi | |
1871 | ||
b12915c1 | 1872 | ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG |
698dcdb6 VZ |
1873 | |
1874 | fi | |
10f2d63a VZ |
1875 | |
1876 | ||
b12915c1 | 1877 | eval "$ac_cv_use_libpng" |
10f2d63a | 1878 | if test "$no_cache" != 1; then |
b12915c1 | 1879 | echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
1880 | fi |
1881 | ||
b12915c1 | 1882 | if test "$wxUSE_LIBPNG" = yes; then |
698dcdb6 | 1883 | echo "$ac_t""yes" 1>&6 |
422107f9 | 1884 | elif test "$wxUSE_LIBPNG" = no; then |
698dcdb6 | 1885 | echo "$ac_t""no" 1>&6 |
422107f9 | 1886 | elif test "$wxUSE_LIBPNG" = sys; then |
698dcdb6 | 1887 | echo "$ac_t""system version" 1>&6 |
422107f9 | 1888 | else |
698dcdb6 | 1889 | { echo "configure: error: Invalid value for --with-libpng: should be yes, no or sys" 1>&2; exit 1; } |
10f2d63a | 1890 | fi |
698dcdb6 | 1891 | |
10f2d63a | 1892 | |
698dcdb6 | 1893 | echo $ac_n "checking for --with-libjpeg""... $ac_c" 1>&6 |
edae8572 | 1894 | echo "configure:1895: checking for --with-libjpeg" >&5 |
10f2d63a | 1895 | no_cache=0 |
698dcdb6 | 1896 | # Check whether --with-libjpeg or --without-libjpeg was given. |
b12915c1 VZ |
1897 | if test "${with_libjpeg+set}" = set; then |
1898 | withval="$with_libjpeg" | |
698dcdb6 | 1899 | |
10f2d63a | 1900 | if test "$withval" = yes; then |
b12915c1 | 1901 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes' |
422107f9 | 1902 | elif test "$withval" = no; then |
b12915c1 | 1903 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=no' |
422107f9 VZ |
1904 | elif test "$withval" = sys; then |
1905 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=sys' | |
1906 | else | |
698dcdb6 | 1907 | { echo "configure: error: Invalid value for --with-libjpeg: should be yes, no or sys" 1>&2; exit 1; } |
10f2d63a | 1908 | fi |
698dcdb6 | 1909 | |
10f2d63a | 1910 | else |
698dcdb6 | 1911 | |
b12915c1 | 1912 | LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}` |
10f2d63a VZ |
1913 | if test "x$LINE" != x ; then |
1914 | eval "DEFAULT_$LINE" | |
1915 | else | |
1916 | no_cache=1 | |
1917 | fi | |
1918 | ||
b12915c1 | 1919 | ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG |
698dcdb6 VZ |
1920 | |
1921 | fi | |
10f2d63a VZ |
1922 | |
1923 | ||
b12915c1 | 1924 | eval "$ac_cv_use_libjpeg" |
10f2d63a | 1925 | if test "$no_cache" != 1; then |
b12915c1 | 1926 | echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
1927 | fi |
1928 | ||
b12915c1 | 1929 | if test "$wxUSE_LIBJPEG" = yes; then |
698dcdb6 | 1930 | echo "$ac_t""yes" 1>&6 |
422107f9 | 1931 | elif test "$wxUSE_LIBJPEG" = no; then |
698dcdb6 | 1932 | echo "$ac_t""no" 1>&6 |
422107f9 | 1933 | elif test "$wxUSE_LIBJPEG" = sys; then |
698dcdb6 | 1934 | echo "$ac_t""system version" 1>&6 |
422107f9 | 1935 | else |
698dcdb6 | 1936 | { echo "configure: error: Invalid value for --with-libjpeg: should be yes, no or sys" 1>&2; exit 1; } |
10f2d63a | 1937 | fi |
698dcdb6 | 1938 | |
10f2d63a | 1939 | |
698dcdb6 | 1940 | echo $ac_n "checking for --with-libtiff""... $ac_c" 1>&6 |
edae8572 | 1941 | echo "configure:1942: checking for --with-libtiff" >&5 |
10f2d63a | 1942 | no_cache=0 |
698dcdb6 | 1943 | # Check whether --with-libtiff or --without-libtiff was given. |
b12915c1 VZ |
1944 | if test "${with_libtiff+set}" = set; then |
1945 | withval="$with_libtiff" | |
698dcdb6 | 1946 | |
10f2d63a | 1947 | if test "$withval" = yes; then |
b12915c1 | 1948 | ac_cv_use_libtiff='wxUSE_LIBTIFF=yes' |
0dcf9893 | 1949 | elif test "$withval" = no; then |
b12915c1 | 1950 | ac_cv_use_libtiff='wxUSE_LIBTIFF=no' |
0dcf9893 VZ |
1951 | elif test "$withval" = sys; then |
1952 | ac_cv_use_libtiff='wxUSE_LIBTIFF=sys' | |
1953 | else | |
698dcdb6 | 1954 | { echo "configure: error: Invalid value for --with-libtiff: should be yes, no or sys" 1>&2; exit 1; } |
10f2d63a | 1955 | fi |
698dcdb6 | 1956 | |
10f2d63a | 1957 | else |
698dcdb6 | 1958 | |
b12915c1 | 1959 | LINE=`grep "wxUSE_LIBTIFF" ${wx_arg_cache_file}` |
10f2d63a VZ |
1960 | if test "x$LINE" != x ; then |
1961 | eval "DEFAULT_$LINE" | |
1962 | else | |
1963 | no_cache=1 | |
1964 | fi | |
1965 | ||
b12915c1 | 1966 | ac_cv_use_libtiff='wxUSE_LIBTIFF='$DEFAULT_wxUSE_LIBTIFF |
698dcdb6 VZ |
1967 | |
1968 | fi | |
10f2d63a VZ |
1969 | |
1970 | ||
b12915c1 | 1971 | eval "$ac_cv_use_libtiff" |
10f2d63a | 1972 | if test "$no_cache" != 1; then |
b12915c1 | 1973 | echo $ac_cv_use_libtiff >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
1974 | fi |
1975 | ||
b12915c1 | 1976 | if test "$wxUSE_LIBTIFF" = yes; then |
698dcdb6 | 1977 | echo "$ac_t""yes" 1>&6 |
0dcf9893 | 1978 | elif test "$wxUSE_LIBTIFF" = no; then |
698dcdb6 | 1979 | echo "$ac_t""no" 1>&6 |
0dcf9893 | 1980 | elif test "$wxUSE_LIBTIFF" = sys; then |
698dcdb6 | 1981 | echo "$ac_t""system version" 1>&6 |
0dcf9893 | 1982 | else |
698dcdb6 | 1983 | { echo "configure: error: Invalid value for --with-libtiff: should be yes, no or sys" 1>&2; exit 1; } |
10f2d63a | 1984 | fi |
698dcdb6 | 1985 | |
10f2d63a | 1986 | |
698dcdb6 | 1987 | echo $ac_n "checking for --with-freetype""... $ac_c" 1>&6 |
edae8572 | 1988 | echo "configure:1989: checking for --with-freetype" >&5 |
3fed1840 | 1989 | no_cache=0 |
698dcdb6 | 1990 | # Check whether --with-freetype or --without-freetype was given. |
3fed1840 RR |
1991 | if test "${with_freetype+set}" = set; then |
1992 | withval="$with_freetype" | |
698dcdb6 | 1993 | |
3fed1840 RR |
1994 | if test "$withval" = yes; then |
1995 | ac_cv_use_freetype='wxUSE_FREETYPE=yes' | |
1996 | elif test "$withval" = no; then | |
1997 | ac_cv_use_freetype='wxUSE_FREETYPE=no' | |
1998 | elif test "$withval" = sys; then | |
1999 | ac_cv_use_freetype='wxUSE_FREETYPE=sys' | |
2000 | else | |
698dcdb6 | 2001 | { echo "configure: error: Invalid value for --with-freetype: should be yes, no or sys" 1>&2; exit 1; } |
3fed1840 | 2002 | fi |
698dcdb6 | 2003 | |
3fed1840 | 2004 | else |
698dcdb6 | 2005 | |
3fed1840 RR |
2006 | LINE=`grep "wxUSE_FREETYPE" ${wx_arg_cache_file}` |
2007 | if test "x$LINE" != x ; then | |
2008 | eval "DEFAULT_$LINE" | |
2009 | else | |
2010 | no_cache=1 | |
2011 | fi | |
2012 | ||
2013 | ac_cv_use_freetype='wxUSE_FREETYPE='$DEFAULT_wxUSE_FREETYPE | |
698dcdb6 VZ |
2014 | |
2015 | fi | |
3fed1840 RR |
2016 | |
2017 | ||
2018 | eval "$ac_cv_use_freetype" | |
2019 | if test "$no_cache" != 1; then | |
2020 | echo $ac_cv_use_freetype >> ${wx_arg_cache_file}.tmp | |
2021 | fi | |
2022 | ||
2023 | if test "$wxUSE_FREETYPE" = yes; then | |
698dcdb6 | 2024 | echo "$ac_t""yes" 1>&6 |
3fed1840 | 2025 | elif test "$wxUSE_FREETYPE" = no; then |
698dcdb6 | 2026 | echo "$ac_t""no" 1>&6 |
3fed1840 | 2027 | elif test "$wxUSE_FREETYPE" = sys; then |
698dcdb6 | 2028 | echo "$ac_t""system version" 1>&6 |
3fed1840 | 2029 | else |
698dcdb6 | 2030 | { echo "configure: error: Invalid value for --with-freetype: should be yes, no or sys" 1>&2; exit 1; } |
3fed1840 | 2031 | fi |
698dcdb6 | 2032 | |
3fed1840 | 2033 | |
698dcdb6 | 2034 | echo $ac_n "checking for --with-opengl""... $ac_c" 1>&6 |
edae8572 | 2035 | echo "configure:2036: checking for --with-opengl" >&5 |
10f2d63a | 2036 | no_cache=0 |
698dcdb6 | 2037 | # Check whether --with-opengl or --without-opengl was given. |
b12915c1 VZ |
2038 | if test "${with_opengl+set}" = set; then |
2039 | withval="$with_opengl" | |
698dcdb6 | 2040 | |
10f2d63a | 2041 | if test "$withval" = yes; then |
b12915c1 | 2042 | ac_cv_use_opengl='wxUSE_OPENGL=yes' |
10f2d63a | 2043 | else |
b12915c1 | 2044 | ac_cv_use_opengl='wxUSE_OPENGL=no' |
10f2d63a | 2045 | fi |
698dcdb6 | 2046 | |
10f2d63a | 2047 | else |
698dcdb6 | 2048 | |
b12915c1 | 2049 | LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}` |
10f2d63a VZ |
2050 | if test "x$LINE" != x ; then |
2051 | eval "DEFAULT_$LINE" | |
2052 | else | |
2053 | no_cache=1 | |
2054 | fi | |
2055 | ||
b12915c1 | 2056 | ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL |
698dcdb6 VZ |
2057 | |
2058 | fi | |
10f2d63a VZ |
2059 | |
2060 | ||
b12915c1 | 2061 | eval "$ac_cv_use_opengl" |
10f2d63a | 2062 | if test "$no_cache" != 1; then |
b12915c1 | 2063 | echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
2064 | fi |
2065 | ||
b12915c1 | 2066 | if test "$wxUSE_OPENGL" = yes; then |
698dcdb6 | 2067 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2068 | else |
698dcdb6 | 2069 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2070 | fi |
698dcdb6 | 2071 | |
10f2d63a | 2072 | |
b12915c1 VZ |
2073 | fi |
2074 | ||
1e487827 | 2075 | |
698dcdb6 | 2076 | echo $ac_n "checking for --with-dmalloc""... $ac_c" 1>&6 |
edae8572 | 2077 | echo "configure:2078: checking for --with-dmalloc" >&5 |
698dcdb6 VZ |
2078 | no_cache=0 |
2079 | # Check whether --with-dmalloc or --without-dmalloc was given. | |
b12915c1 VZ |
2080 | if test "${with_dmalloc+set}" = set; then |
2081 | withval="$with_dmalloc" | |
698dcdb6 | 2082 | |
c7a2bf27 | 2083 | if test "$withval" = yes; then |
b12915c1 | 2084 | ac_cv_use_dmalloc='wxUSE_DMALLOC=yes' |
c7a2bf27 | 2085 | else |
b12915c1 | 2086 | ac_cv_use_dmalloc='wxUSE_DMALLOC=no' |
c7a2bf27 | 2087 | fi |
698dcdb6 | 2088 | |
c7a2bf27 | 2089 | else |
698dcdb6 | 2090 | |
b12915c1 | 2091 | LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}` |
c7a2bf27 RR |
2092 | if test "x$LINE" != x ; then |
2093 | eval "DEFAULT_$LINE" | |
2094 | else | |
2095 | no_cache=1 | |
2096 | fi | |
2097 | ||
b12915c1 | 2098 | ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC |
698dcdb6 VZ |
2099 | |
2100 | fi | |
c7a2bf27 RR |
2101 | |
2102 | ||
b12915c1 | 2103 | eval "$ac_cv_use_dmalloc" |
c7a2bf27 | 2104 | if test "$no_cache" != 1; then |
b12915c1 | 2105 | echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp |
c7a2bf27 RR |
2106 | fi |
2107 | ||
b12915c1 | 2108 | if test "$wxUSE_DMALLOC" = yes; then |
698dcdb6 | 2109 | echo "$ac_t""yes" 1>&6 |
c7a2bf27 | 2110 | else |
698dcdb6 | 2111 | echo "$ac_t""no" 1>&6 |
c7a2bf27 | 2112 | fi |
698dcdb6 | 2113 | |
c7a2bf27 | 2114 | |
3e44f09d | 2115 | echo $ac_n "checking for --with-regex""... $ac_c" 1>&6 |
edae8572 | 2116 | echo "configure:2117: checking for --with-regex" >&5 |
3e44f09d VZ |
2117 | no_cache=0 |
2118 | # Check whether --with-regex or --without-regex was given. | |
2119 | if test "${with_regex+set}" = set; then | |
2120 | withval="$with_regex" | |
2121 | ||
2122 | if test "$withval" = yes; then | |
2123 | ac_cv_use_regex='wxUSE_REGEX=yes' | |
2124 | elif test "$withval" = no; then | |
2125 | ac_cv_use_regex='wxUSE_REGEX=no' | |
2126 | elif test "$withval" = sys; then | |
2127 | ac_cv_use_regex='wxUSE_REGEX=sys' | |
2128 | else | |
2129 | { echo "configure: error: Invalid value for --with-regex: should be yes, no or sys" 1>&2; exit 1; } | |
2130 | fi | |
2131 | ||
2132 | else | |
2133 | ||
2134 | LINE=`grep "wxUSE_REGEX" ${wx_arg_cache_file}` | |
2135 | if test "x$LINE" != x ; then | |
2136 | eval "DEFAULT_$LINE" | |
2137 | else | |
2138 | no_cache=1 | |
2139 | fi | |
2140 | ||
2141 | ac_cv_use_regex='wxUSE_REGEX='$DEFAULT_wxUSE_REGEX | |
2142 | ||
2143 | fi | |
2144 | ||
2145 | ||
2146 | eval "$ac_cv_use_regex" | |
2147 | if test "$no_cache" != 1; then | |
2148 | echo $ac_cv_use_regex >> ${wx_arg_cache_file}.tmp | |
2149 | fi | |
2150 | ||
2151 | if test "$wxUSE_REGEX" = yes; then | |
2152 | echo "$ac_t""yes" 1>&6 | |
2153 | elif test "$wxUSE_REGEX" = no; then | |
2154 | echo "$ac_t""no" 1>&6 | |
2155 | elif test "$wxUSE_REGEX" = sys; then | |
2156 | echo "$ac_t""system version" 1>&6 | |
2157 | else | |
2158 | { echo "configure: error: Invalid value for --with-regex: should be yes, no or sys" 1>&2; exit 1; } | |
2159 | fi | |
2160 | ||
2161 | ||
698dcdb6 | 2162 | echo $ac_n "checking for --with-zlib""... $ac_c" 1>&6 |
edae8572 | 2163 | echo "configure:2164: checking for --with-zlib" >&5 |
10f2d63a | 2164 | no_cache=0 |
698dcdb6 | 2165 | # Check whether --with-zlib or --without-zlib was given. |
b12915c1 VZ |
2166 | if test "${with_zlib+set}" = set; then |
2167 | withval="$with_zlib" | |
698dcdb6 | 2168 | |
10f2d63a | 2169 | if test "$withval" = yes; then |
b12915c1 | 2170 | ac_cv_use_zlib='wxUSE_ZLIB=yes' |
422107f9 | 2171 | elif test "$withval" = no; then |
b12915c1 | 2172 | ac_cv_use_zlib='wxUSE_ZLIB=no' |
422107f9 VZ |
2173 | elif test "$withval" = sys; then |
2174 | ac_cv_use_zlib='wxUSE_ZLIB=sys' | |
2175 | else | |
698dcdb6 | 2176 | { echo "configure: error: Invalid value for --with-zlib: should be yes, no or sys" 1>&2; exit 1; } |
10f2d63a | 2177 | fi |
698dcdb6 | 2178 | |
10f2d63a | 2179 | else |
698dcdb6 | 2180 | |
b12915c1 | 2181 | LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}` |
10f2d63a VZ |
2182 | if test "x$LINE" != x ; then |
2183 | eval "DEFAULT_$LINE" | |
2184 | else | |
2185 | no_cache=1 | |
2186 | fi | |
2187 | ||
b12915c1 | 2188 | ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB |
698dcdb6 VZ |
2189 | |
2190 | fi | |
10f2d63a VZ |
2191 | |
2192 | ||
b12915c1 | 2193 | eval "$ac_cv_use_zlib" |
10f2d63a | 2194 | if test "$no_cache" != 1; then |
b12915c1 | 2195 | echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
2196 | fi |
2197 | ||
b12915c1 | 2198 | if test "$wxUSE_ZLIB" = yes; then |
698dcdb6 | 2199 | echo "$ac_t""yes" 1>&6 |
422107f9 | 2200 | elif test "$wxUSE_ZLIB" = no; then |
698dcdb6 | 2201 | echo "$ac_t""no" 1>&6 |
422107f9 | 2202 | elif test "$wxUSE_ZLIB" = sys; then |
698dcdb6 | 2203 | echo "$ac_t""system version" 1>&6 |
422107f9 | 2204 | else |
698dcdb6 | 2205 | { echo "configure: error: Invalid value for --with-zlib: should be yes, no or sys" 1>&2; exit 1; } |
10f2d63a | 2206 | fi |
698dcdb6 | 2207 | |
10f2d63a | 2208 | |
698dcdb6 | 2209 | echo $ac_n "checking for --with-odbc""... $ac_c" 1>&6 |
edae8572 | 2210 | echo "configure:2211: checking for --with-odbc" >&5 |
10f2d63a | 2211 | no_cache=0 |
698dcdb6 | 2212 | # Check whether --with-odbc or --without-odbc was given. |
10f2d63a VZ |
2213 | if test "${with_odbc+set}" = set; then |
2214 | withval="$with_odbc" | |
698dcdb6 | 2215 | |
10f2d63a VZ |
2216 | if test "$withval" = yes; then |
2217 | ac_cv_use_odbc='wxUSE_ODBC=yes' | |
2218 | else | |
2219 | ac_cv_use_odbc='wxUSE_ODBC=no' | |
2220 | fi | |
698dcdb6 | 2221 | |
10f2d63a | 2222 | else |
698dcdb6 | 2223 | |
10f2d63a VZ |
2224 | LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}` |
2225 | if test "x$LINE" != x ; then | |
2226 | eval "DEFAULT_$LINE" | |
2227 | else | |
2228 | no_cache=1 | |
2229 | fi | |
2230 | ||
2231 | ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC | |
698dcdb6 VZ |
2232 | |
2233 | fi | |
10f2d63a VZ |
2234 | |
2235 | ||
2236 | eval "$ac_cv_use_odbc" | |
2237 | if test "$no_cache" != 1; then | |
2238 | echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp | |
2239 | fi | |
2240 | ||
2241 | if test "$wxUSE_ODBC" = yes; then | |
698dcdb6 | 2242 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2243 | else |
698dcdb6 | 2244 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2245 | fi |
698dcdb6 VZ |
2246 | |
2247 | ||
10f2d63a | 2248 | |
698dcdb6 VZ |
2249 | |
2250 | ||
2251 | echo $ac_n "checking for --enable-shared""... $ac_c" 1>&6 | |
edae8572 | 2252 | echo "configure:2253: checking for --enable-shared" >&5 |
10f2d63a VZ |
2253 | no_cache=0 |
2254 | # Check whether --enable-shared or --disable-shared was given. | |
2255 | if test "${enable_shared+set}" = set; then | |
2256 | enableval="$enable_shared" | |
698dcdb6 | 2257 | |
10f2d63a VZ |
2258 | if test "$enableval" = yes; then |
2259 | ac_cv_use_shared='wxUSE_SHARED=yes' | |
2260 | else | |
2261 | ac_cv_use_shared='wxUSE_SHARED=no' | |
2262 | fi | |
698dcdb6 | 2263 | |
10f2d63a | 2264 | else |
698dcdb6 | 2265 | |
10f2d63a VZ |
2266 | LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}` |
2267 | if test "x$LINE" != x ; then | |
2268 | eval "DEFAULT_$LINE" | |
2269 | else | |
2270 | no_cache=1 | |
2271 | fi | |
2272 | ||
2273 | ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED | |
698dcdb6 VZ |
2274 | |
2275 | fi | |
10f2d63a VZ |
2276 | |
2277 | ||
2278 | eval "$ac_cv_use_shared" | |
2279 | if test "$no_cache" != 1; then | |
2280 | echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp | |
2281 | fi | |
2282 | ||
2283 | if test "$wxUSE_SHARED" = yes; then | |
698dcdb6 | 2284 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2285 | else |
698dcdb6 | 2286 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2287 | fi |
698dcdb6 | 2288 | |
10f2d63a | 2289 | |
3a922bb4 | 2290 | echo $ac_n "checking for --enable-soname""... $ac_c" 1>&6 |
edae8572 | 2291 | echo "configure:2292: checking for --enable-soname" >&5 |
00cf1208 | 2292 | no_cache=0 |
3a922bb4 RL |
2293 | # Check whether --enable-soname or --disable-soname was given. |
2294 | if test "${enable_soname+set}" = set; then | |
2295 | enableval="$enable_soname" | |
698dcdb6 | 2296 | |
00cf1208 | 2297 | if test "$enableval" = yes; then |
3a922bb4 | 2298 | ac_cv_use_soname='wxUSE_SONAME=yes' |
00cf1208 | 2299 | else |
3a922bb4 | 2300 | ac_cv_use_soname='wxUSE_SONAME=no' |
00cf1208 | 2301 | fi |
698dcdb6 | 2302 | |
00cf1208 | 2303 | else |
698dcdb6 | 2304 | |
3a922bb4 | 2305 | LINE=`grep "wxUSE_SONAME" ${wx_arg_cache_file}` |
00cf1208 RR |
2306 | if test "x$LINE" != x ; then |
2307 | eval "DEFAULT_$LINE" | |
2308 | else | |
2309 | no_cache=1 | |
2310 | fi | |
2311 | ||
3a922bb4 | 2312 | ac_cv_use_soname='wxUSE_SONAME='$DEFAULT_wxUSE_SONAME |
698dcdb6 VZ |
2313 | |
2314 | fi | |
00cf1208 RR |
2315 | |
2316 | ||
3a922bb4 | 2317 | eval "$ac_cv_use_soname" |
00cf1208 | 2318 | if test "$no_cache" != 1; then |
3a922bb4 | 2319 | echo $ac_cv_use_soname >> ${wx_arg_cache_file}.tmp |
00cf1208 RR |
2320 | fi |
2321 | ||
3a922bb4 | 2322 | if test "$wxUSE_SONAME" = yes; then |
698dcdb6 | 2323 | echo "$ac_t""yes" 1>&6 |
00cf1208 | 2324 | else |
698dcdb6 | 2325 | echo "$ac_t""no" 1>&6 |
00cf1208 | 2326 | fi |
698dcdb6 | 2327 | |
00cf1208 | 2328 | |
698dcdb6 | 2329 | echo $ac_n "checking for --enable-optimise""... $ac_c" 1>&6 |
edae8572 | 2330 | echo "configure:2331: checking for --enable-optimise" >&5 |
10f2d63a VZ |
2331 | no_cache=0 |
2332 | # Check whether --enable-optimise or --disable-optimise was given. | |
2333 | if test "${enable_optimise+set}" = set; then | |
2334 | enableval="$enable_optimise" | |
698dcdb6 | 2335 | |
10f2d63a VZ |
2336 | if test "$enableval" = yes; then |
2337 | ac_cv_use_optimise='wxUSE_OPTIMISE=yes' | |
2338 | else | |
2339 | ac_cv_use_optimise='wxUSE_OPTIMISE=no' | |
2340 | fi | |
698dcdb6 | 2341 | |
10f2d63a | 2342 | else |
698dcdb6 | 2343 | |
10f2d63a VZ |
2344 | LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}` |
2345 | if test "x$LINE" != x ; then | |
2346 | eval "DEFAULT_$LINE" | |
2347 | else | |
2348 | no_cache=1 | |
2349 | fi | |
2350 | ||
2351 | ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE | |
698dcdb6 VZ |
2352 | |
2353 | fi | |
10f2d63a VZ |
2354 | |
2355 | ||
2356 | eval "$ac_cv_use_optimise" | |
2357 | if test "$no_cache" != 1; then | |
2358 | echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp | |
2359 | fi | |
2360 | ||
2361 | if test "$wxUSE_OPTIMISE" = yes; then | |
698dcdb6 | 2362 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2363 | else |
698dcdb6 | 2364 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2365 | fi |
698dcdb6 | 2366 | |
10f2d63a | 2367 | |
698dcdb6 | 2368 | echo $ac_n "checking for --enable-debug""... $ac_c" 1>&6 |
edae8572 | 2369 | echo "configure:2370: checking for --enable-debug" >&5 |
10f2d63a VZ |
2370 | no_cache=0 |
2371 | # Check whether --enable-debug or --disable-debug was given. | |
2372 | if test "${enable_debug+set}" = set; then | |
2373 | enableval="$enable_debug" | |
698dcdb6 | 2374 | |
10f2d63a VZ |
2375 | if test "$enableval" = yes; then |
2376 | ac_cv_use_debug='wxUSE_DEBUG=yes' | |
2377 | else | |
2378 | ac_cv_use_debug='wxUSE_DEBUG=no' | |
2379 | fi | |
698dcdb6 | 2380 | |
10f2d63a | 2381 | else |
698dcdb6 | 2382 | |
10f2d63a VZ |
2383 | LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}` |
2384 | if test "x$LINE" != x ; then | |
2385 | eval "DEFAULT_$LINE" | |
2386 | else | |
2387 | no_cache=1 | |
2388 | fi | |
2389 | ||
2390 | ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG | |
698dcdb6 VZ |
2391 | |
2392 | fi | |
10f2d63a VZ |
2393 | |
2394 | ||
2395 | eval "$ac_cv_use_debug" | |
2396 | if test "$no_cache" != 1; then | |
2397 | echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp | |
2398 | fi | |
2399 | ||
2400 | if test "$wxUSE_DEBUG" = yes; then | |
698dcdb6 | 2401 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2402 | else |
698dcdb6 | 2403 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2404 | fi |
698dcdb6 | 2405 | |
10f2d63a VZ |
2406 | |
2407 | if test "$wxUSE_DEBUG" = "yes"; then | |
2408 | DEFAULT_wxUSE_DEBUG_FLAG=yes | |
2409 | DEFAULT_wxUSE_DEBUG_INFO=yes | |
2410 | elif test "$wxUSE_DEBUG" = "no"; then | |
2411 | DEFAULT_wxUSE_DEBUG_FLAG=no | |
2412 | DEFAULT_wxUSE_DEBUG_INFO=no | |
2413 | fi | |
2414 | ||
698dcdb6 VZ |
2415 | |
2416 | echo $ac_n "checking for --enable-debug_flag""... $ac_c" 1>&6 | |
edae8572 | 2417 | echo "configure:2418: checking for --enable-debug_flag" >&5 |
10f2d63a VZ |
2418 | no_cache=0 |
2419 | # Check whether --enable-debug_flag or --disable-debug_flag was given. | |
2420 | if test "${enable_debug_flag+set}" = set; then | |
2421 | enableval="$enable_debug_flag" | |
698dcdb6 | 2422 | |
10f2d63a VZ |
2423 | if test "$enableval" = yes; then |
2424 | ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes' | |
2425 | else | |
2426 | ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no' | |
2427 | fi | |
698dcdb6 | 2428 | |
10f2d63a | 2429 | else |
698dcdb6 | 2430 | |
10f2d63a VZ |
2431 | LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}` |
2432 | if test "x$LINE" != x ; then | |
2433 | eval "DEFAULT_$LINE" | |
2434 | else | |
2435 | no_cache=1 | |
2436 | fi | |
2437 | ||
2438 | ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG | |
698dcdb6 VZ |
2439 | |
2440 | fi | |
10f2d63a VZ |
2441 | |
2442 | ||
2443 | eval "$ac_cv_use_debug_flag" | |
2444 | if test "$no_cache" != 1; then | |
2445 | echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp | |
2446 | fi | |
2447 | ||
2448 | if test "$wxUSE_DEBUG_FLAG" = yes; then | |
698dcdb6 | 2449 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2450 | else |
698dcdb6 | 2451 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2452 | fi |
698dcdb6 | 2453 | |
10f2d63a | 2454 | |
698dcdb6 | 2455 | echo $ac_n "checking for --enable-debug_info""... $ac_c" 1>&6 |
edae8572 | 2456 | echo "configure:2457: checking for --enable-debug_info" >&5 |
10f2d63a VZ |
2457 | no_cache=0 |
2458 | # Check whether --enable-debug_info or --disable-debug_info was given. | |
2459 | if test "${enable_debug_info+set}" = set; then | |
2460 | enableval="$enable_debug_info" | |
698dcdb6 | 2461 | |
10f2d63a VZ |
2462 | if test "$enableval" = yes; then |
2463 | ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes' | |
2464 | else | |
2465 | ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no' | |
2466 | fi | |
698dcdb6 | 2467 | |
10f2d63a | 2468 | else |
698dcdb6 | 2469 | |
10f2d63a VZ |
2470 | LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}` |
2471 | if test "x$LINE" != x ; then | |
2472 | eval "DEFAULT_$LINE" | |
2473 | else | |
2474 | no_cache=1 | |
2475 | fi | |
2476 | ||
2477 | ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO | |
698dcdb6 VZ |
2478 | |
2479 | fi | |
10f2d63a VZ |
2480 | |
2481 | ||
2482 | eval "$ac_cv_use_debug_info" | |
2483 | if test "$no_cache" != 1; then | |
2484 | echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp | |
2485 | fi | |
2486 | ||
2487 | if test "$wxUSE_DEBUG_INFO" = yes; then | |
698dcdb6 | 2488 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2489 | else |
698dcdb6 | 2490 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2491 | fi |
698dcdb6 | 2492 | |
10f2d63a | 2493 | |
698dcdb6 | 2494 | echo $ac_n "checking for --enable-debug_gdb""... $ac_c" 1>&6 |
edae8572 | 2495 | echo "configure:2496: checking for --enable-debug_gdb" >&5 |
10f2d63a VZ |
2496 | no_cache=0 |
2497 | # Check whether --enable-debug_gdb or --disable-debug_gdb was given. | |
2498 | if test "${enable_debug_gdb+set}" = set; then | |
2499 | enableval="$enable_debug_gdb" | |
698dcdb6 | 2500 | |
10f2d63a VZ |
2501 | if test "$enableval" = yes; then |
2502 | ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes' | |
2503 | else | |
2504 | ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no' | |
2505 | fi | |
698dcdb6 | 2506 | |
10f2d63a | 2507 | else |
698dcdb6 | 2508 | |
10f2d63a VZ |
2509 | LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}` |
2510 | if test "x$LINE" != x ; then | |
2511 | eval "DEFAULT_$LINE" | |
2512 | else | |
2513 | no_cache=1 | |
2514 | fi | |
2515 | ||
2516 | ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB | |
698dcdb6 VZ |
2517 | |
2518 | fi | |
10f2d63a VZ |
2519 | |
2520 | ||
2521 | eval "$ac_cv_use_debug_gdb" | |
2522 | if test "$no_cache" != 1; then | |
2523 | echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp | |
2524 | fi | |
2525 | ||
2526 | if test "$wxUSE_DEBUG_GDB" = yes; then | |
698dcdb6 | 2527 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2528 | else |
698dcdb6 | 2529 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2530 | fi |
698dcdb6 | 2531 | |
10f2d63a | 2532 | |
698dcdb6 | 2533 | echo $ac_n "checking for --enable-debug_cntxt""... $ac_c" 1>&6 |
edae8572 | 2534 | echo "configure:2535: checking for --enable-debug_cntxt" >&5 |
10f2d63a VZ |
2535 | no_cache=0 |
2536 | # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given. | |
2537 | if test "${enable_debug_cntxt+set}" = set; then | |
2538 | enableval="$enable_debug_cntxt" | |
698dcdb6 | 2539 | |
10f2d63a VZ |
2540 | if test "$enableval" = yes; then |
2541 | ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes' | |
2542 | else | |
2543 | ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no' | |
2544 | fi | |
698dcdb6 | 2545 | |
10f2d63a | 2546 | else |
698dcdb6 | 2547 | |
10f2d63a VZ |
2548 | LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}` |
2549 | if test "x$LINE" != x ; then | |
2550 | eval "DEFAULT_$LINE" | |
2551 | else | |
2552 | no_cache=1 | |
2553 | fi | |
2554 | ||
2555 | ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT | |
698dcdb6 VZ |
2556 | |
2557 | fi | |
10f2d63a VZ |
2558 | |
2559 | ||
2560 | eval "$ac_cv_use_debug_cntxt" | |
2561 | if test "$no_cache" != 1; then | |
2562 | echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp | |
2563 | fi | |
2564 | ||
2565 | if test "$wxUSE_DEBUG_CONTEXT" = yes; then | |
698dcdb6 | 2566 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2567 | else |
698dcdb6 | 2568 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2569 | fi |
698dcdb6 | 2570 | |
10f2d63a | 2571 | |
698dcdb6 | 2572 | echo $ac_n "checking for --enable-mem_tracing""... $ac_c" 1>&6 |
edae8572 | 2573 | echo "configure:2574: checking for --enable-mem_tracing" >&5 |
10f2d63a VZ |
2574 | no_cache=0 |
2575 | # Check whether --enable-mem_tracing or --disable-mem_tracing was given. | |
2576 | if test "${enable_mem_tracing+set}" = set; then | |
2577 | enableval="$enable_mem_tracing" | |
698dcdb6 | 2578 | |
10f2d63a VZ |
2579 | if test "$enableval" = yes; then |
2580 | ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes' | |
2581 | else | |
2582 | ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no' | |
2583 | fi | |
698dcdb6 | 2584 | |
10f2d63a | 2585 | else |
698dcdb6 | 2586 | |
10f2d63a VZ |
2587 | LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}` |
2588 | if test "x$LINE" != x ; then | |
2589 | eval "DEFAULT_$LINE" | |
2590 | else | |
2591 | no_cache=1 | |
2592 | fi | |
2593 | ||
2594 | ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING | |
698dcdb6 VZ |
2595 | |
2596 | fi | |
10f2d63a VZ |
2597 | |
2598 | ||
2599 | eval "$ac_cv_use_mem_tracing" | |
2600 | if test "$no_cache" != 1; then | |
2601 | echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp | |
2602 | fi | |
2603 | ||
2604 | if test "$wxUSE_MEM_TRACING" = yes; then | |
698dcdb6 | 2605 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2606 | else |
698dcdb6 | 2607 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2608 | fi |
698dcdb6 | 2609 | |
10f2d63a | 2610 | |
698dcdb6 | 2611 | echo $ac_n "checking for --enable-profile""... $ac_c" 1>&6 |
edae8572 | 2612 | echo "configure:2613: checking for --enable-profile" >&5 |
10f2d63a VZ |
2613 | no_cache=0 |
2614 | # Check whether --enable-profile or --disable-profile was given. | |
2615 | if test "${enable_profile+set}" = set; then | |
2616 | enableval="$enable_profile" | |
698dcdb6 | 2617 | |
10f2d63a VZ |
2618 | if test "$enableval" = yes; then |
2619 | ac_cv_use_profile='wxUSE_PROFILE=yes' | |
2620 | else | |
2621 | ac_cv_use_profile='wxUSE_PROFILE=no' | |
2622 | fi | |
698dcdb6 | 2623 | |
10f2d63a | 2624 | else |
698dcdb6 | 2625 | |
10f2d63a VZ |
2626 | LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}` |
2627 | if test "x$LINE" != x ; then | |
2628 | eval "DEFAULT_$LINE" | |
2629 | else | |
2630 | no_cache=1 | |
2631 | fi | |
2632 | ||
2633 | ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE | |
698dcdb6 VZ |
2634 | |
2635 | fi | |
10f2d63a VZ |
2636 | |
2637 | ||
2638 | eval "$ac_cv_use_profile" | |
2639 | if test "$no_cache" != 1; then | |
2640 | echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp | |
2641 | fi | |
2642 | ||
2643 | if test "$wxUSE_PROFILE" = yes; then | |
698dcdb6 | 2644 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2645 | else |
698dcdb6 | 2646 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2647 | fi |
698dcdb6 | 2648 | |
10f2d63a | 2649 | |
698dcdb6 | 2650 | echo $ac_n "checking for --enable-no_rtti""... $ac_c" 1>&6 |
edae8572 | 2651 | echo "configure:2652: checking for --enable-no_rtti" >&5 |
10f2d63a VZ |
2652 | no_cache=0 |
2653 | # Check whether --enable-no_rtti or --disable-no_rtti was given. | |
2654 | if test "${enable_no_rtti+set}" = set; then | |
2655 | enableval="$enable_no_rtti" | |
698dcdb6 | 2656 | |
10f2d63a VZ |
2657 | if test "$enableval" = yes; then |
2658 | ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes' | |
2659 | else | |
2660 | ac_cv_use_no_rtti='wxUSE_NO_RTTI=no' | |
2661 | fi | |
698dcdb6 | 2662 | |
10f2d63a | 2663 | else |
698dcdb6 | 2664 | |
10f2d63a VZ |
2665 | LINE=`grep "wxUSE_NO_RTTI" ${wx_arg_cache_file}` |
2666 | if test "x$LINE" != x ; then | |
2667 | eval "DEFAULT_$LINE" | |
2668 | else | |
2669 | no_cache=1 | |
2670 | fi | |
2671 | ||
2672 | ac_cv_use_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI | |
698dcdb6 VZ |
2673 | |
2674 | fi | |
10f2d63a VZ |
2675 | |
2676 | ||
2677 | eval "$ac_cv_use_no_rtti" | |
2678 | if test "$no_cache" != 1; then | |
2679 | echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp | |
2680 | fi | |
2681 | ||
2682 | if test "$wxUSE_NO_RTTI" = yes; then | |
698dcdb6 | 2683 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2684 | else |
698dcdb6 | 2685 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2686 | fi |
698dcdb6 | 2687 | |
10f2d63a | 2688 | |
698dcdb6 | 2689 | echo $ac_n "checking for --enable-no_exceptions""... $ac_c" 1>&6 |
edae8572 | 2690 | echo "configure:2691: checking for --enable-no_exceptions" >&5 |
10f2d63a VZ |
2691 | no_cache=0 |
2692 | # Check whether --enable-no_exceptions or --disable-no_exceptions was given. | |
2693 | if test "${enable_no_exceptions+set}" = set; then | |
2694 | enableval="$enable_no_exceptions" | |
698dcdb6 | 2695 | |
10f2d63a VZ |
2696 | if test "$enableval" = yes; then |
2697 | ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes' | |
2698 | else | |
2699 | ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no' | |
2700 | fi | |
698dcdb6 | 2701 | |
10f2d63a | 2702 | else |
698dcdb6 | 2703 | |
10f2d63a VZ |
2704 | LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}` |
2705 | if test "x$LINE" != x ; then | |
2706 | eval "DEFAULT_$LINE" | |
2707 | else | |
2708 | no_cache=1 | |
2709 | fi | |
2710 | ||
2711 | ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS | |
698dcdb6 VZ |
2712 | |
2713 | fi | |
10f2d63a VZ |
2714 | |
2715 | ||
2716 | eval "$ac_cv_use_no_exceptions" | |
2717 | if test "$no_cache" != 1; then | |
2718 | echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp | |
2719 | fi | |
2720 | ||
2721 | if test "$wxUSE_NO_EXCEPTIONS" = yes; then | |
698dcdb6 | 2722 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2723 | else |
698dcdb6 | 2724 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2725 | fi |
698dcdb6 | 2726 | |
10f2d63a | 2727 | |
698dcdb6 | 2728 | echo $ac_n "checking for --enable-permissive""... $ac_c" 1>&6 |
edae8572 | 2729 | echo "configure:2730: checking for --enable-permissive" >&5 |
10f2d63a VZ |
2730 | no_cache=0 |
2731 | # Check whether --enable-permissive or --disable-permissive was given. | |
2732 | if test "${enable_permissive+set}" = set; then | |
2733 | enableval="$enable_permissive" | |
698dcdb6 | 2734 | |
10f2d63a VZ |
2735 | if test "$enableval" = yes; then |
2736 | ac_cv_use_permissive='wxUSE_PERMISSIVE=yes' | |
2737 | else | |
2738 | ac_cv_use_permissive='wxUSE_PERMISSIVE=no' | |
2739 | fi | |
698dcdb6 | 2740 | |
10f2d63a | 2741 | else |
698dcdb6 | 2742 | |
10f2d63a VZ |
2743 | LINE=`grep "wxUSE_PERMISSIVE" ${wx_arg_cache_file}` |
2744 | if test "x$LINE" != x ; then | |
2745 | eval "DEFAULT_$LINE" | |
2746 | else | |
2747 | no_cache=1 | |
2748 | fi | |
2749 | ||
2750 | ac_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE | |
698dcdb6 VZ |
2751 | |
2752 | fi | |
10f2d63a VZ |
2753 | |
2754 | ||
2755 | eval "$ac_cv_use_permissive" | |
2756 | if test "$no_cache" != 1; then | |
2757 | echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp | |
2758 | fi | |
2759 | ||
2760 | if test "$wxUSE_PERMISSIVE" = yes; then | |
698dcdb6 | 2761 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2762 | else |
698dcdb6 | 2763 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2764 | fi |
698dcdb6 | 2765 | |
10f2d63a | 2766 | |
698dcdb6 | 2767 | echo $ac_n "checking for --enable-no_deps""... $ac_c" 1>&6 |
edae8572 | 2768 | echo "configure:2769: checking for --enable-no_deps" >&5 |
10f2d63a VZ |
2769 | no_cache=0 |
2770 | # Check whether --enable-no_deps or --disable-no_deps was given. | |
2771 | if test "${enable_no_deps+set}" = set; then | |
2772 | enableval="$enable_no_deps" | |
698dcdb6 | 2773 | |
10f2d63a VZ |
2774 | if test "$enableval" = yes; then |
2775 | ac_cv_use_no_deps='wxUSE_NO_DEPS=yes' | |
2776 | else | |
2777 | ac_cv_use_no_deps='wxUSE_NO_DEPS=no' | |
2778 | fi | |
698dcdb6 | 2779 | |
10f2d63a | 2780 | else |
698dcdb6 | 2781 | |
10f2d63a VZ |
2782 | LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}` |
2783 | if test "x$LINE" != x ; then | |
2784 | eval "DEFAULT_$LINE" | |
2785 | else | |
2786 | no_cache=1 | |
2787 | fi | |
2788 | ||
2789 | ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS | |
698dcdb6 VZ |
2790 | |
2791 | fi | |
10f2d63a VZ |
2792 | |
2793 | ||
2794 | eval "$ac_cv_use_no_deps" | |
2795 | if test "$no_cache" != 1; then | |
2796 | echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp | |
2797 | fi | |
2798 | ||
2799 | if test "$wxUSE_NO_DEPS" = yes; then | |
698dcdb6 | 2800 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2801 | else |
698dcdb6 | 2802 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2803 | fi |
698dcdb6 VZ |
2804 | |
2805 | ||
10f2d63a | 2806 | |
54276ccf | 2807 | echo $ac_n "checking for --enable-compat20""... $ac_c" 1>&6 |
edae8572 | 2808 | echo "configure:2809: checking for --enable-compat20" >&5 |
54276ccf VZ |
2809 | no_cache=0 |
2810 | # Check whether --enable-compat20 or --disable-compat20 was given. | |
2811 | if test "${enable_compat20+set}" = set; then | |
2812 | enableval="$enable_compat20" | |
2813 | ||
2814 | if test "$enableval" = yes; then | |
2815 | ac_cv_use_compat20='WXWIN_COMPATIBILITY_2=yes' | |
2816 | else | |
2817 | ac_cv_use_compat20='WXWIN_COMPATIBILITY_2=no' | |
2818 | fi | |
2819 | ||
2820 | else | |
2821 | ||
2822 | LINE=`grep "WXWIN_COMPATIBILITY_2" ${wx_arg_cache_file}` | |
2823 | if test "x$LINE" != x ; then | |
2824 | eval "DEFAULT_$LINE" | |
2825 | else | |
2826 | no_cache=1 | |
2827 | fi | |
2828 | ||
2829 | ac_cv_use_compat20='WXWIN_COMPATIBILITY_2='$DEFAULT_WXWIN_COMPATIBILITY_2 | |
2830 | ||
2831 | fi | |
2832 | ||
2833 | ||
2834 | eval "$ac_cv_use_compat20" | |
2835 | if test "$no_cache" != 1; then | |
2836 | echo $ac_cv_use_compat20 >> ${wx_arg_cache_file}.tmp | |
2837 | fi | |
2838 | ||
2839 | if test "$WXWIN_COMPATIBILITY_2" = yes; then | |
2840 | echo "$ac_t""yes" 1>&6 | |
2841 | else | |
2842 | echo "$ac_t""no" 1>&6 | |
2843 | fi | |
2844 | ||
2845 | ||
2846 | echo $ac_n "checking for --enable-compat22""... $ac_c" 1>&6 | |
edae8572 | 2847 | echo "configure:2848: checking for --enable-compat22" >&5 |
54276ccf VZ |
2848 | no_cache=0 |
2849 | # Check whether --enable-compat22 or --disable-compat22 was given. | |
2850 | if test "${enable_compat22+set}" = set; then | |
2851 | enableval="$enable_compat22" | |
2852 | ||
2853 | if test "$enableval" = yes; then | |
2854 | ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=yes' | |
2855 | else | |
2856 | ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=no' | |
2857 | fi | |
2858 | ||
2859 | else | |
2860 | ||
2861 | LINE=`grep "WXWIN_COMPATIBILITY_2_2" ${wx_arg_cache_file}` | |
2862 | if test "x$LINE" != x ; then | |
2863 | eval "DEFAULT_$LINE" | |
2864 | else | |
2865 | no_cache=1 | |
2866 | fi | |
2867 | ||
2868 | ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2='$DEFAULT_WXWIN_COMPATIBILITY_2_2 | |
2869 | ||
2870 | fi | |
2871 | ||
2872 | ||
2873 | eval "$ac_cv_use_compat22" | |
2874 | if test "$no_cache" != 1; then | |
2875 | echo $ac_cv_use_compat22 >> ${wx_arg_cache_file}.tmp | |
2876 | fi | |
2877 | ||
2878 | if test "$WXWIN_COMPATIBILITY_2_2" = yes; then | |
2879 | echo "$ac_t""yes" 1>&6 | |
2880 | else | |
2881 | echo "$ac_t""no" 1>&6 | |
2882 | fi | |
2883 | ||
2884 | ||
2885 | ||
698dcdb6 VZ |
2886 | |
2887 | echo $ac_n "checking for --enable-intl""... $ac_c" 1>&6 | |
edae8572 | 2888 | echo "configure:2889: checking for --enable-intl" >&5 |
10f2d63a VZ |
2889 | no_cache=0 |
2890 | # Check whether --enable-intl or --disable-intl was given. | |
2891 | if test "${enable_intl+set}" = set; then | |
2892 | enableval="$enable_intl" | |
698dcdb6 | 2893 | |
10f2d63a VZ |
2894 | if test "$enableval" = yes; then |
2895 | ac_cv_use_intl='wxUSE_INTL=yes' | |
2896 | else | |
2897 | ac_cv_use_intl='wxUSE_INTL=no' | |
2898 | fi | |
698dcdb6 | 2899 | |
10f2d63a | 2900 | else |
698dcdb6 | 2901 | |
10f2d63a VZ |
2902 | LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}` |
2903 | if test "x$LINE" != x ; then | |
2904 | eval "DEFAULT_$LINE" | |
2905 | else | |
2906 | no_cache=1 | |
2907 | fi | |
2908 | ||
2909 | ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL | |
698dcdb6 VZ |
2910 | |
2911 | fi | |
10f2d63a VZ |
2912 | |
2913 | ||
2914 | eval "$ac_cv_use_intl" | |
2915 | if test "$no_cache" != 1; then | |
2916 | echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp | |
2917 | fi | |
2918 | ||
2919 | if test "$wxUSE_INTL" = yes; then | |
698dcdb6 | 2920 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2921 | else |
698dcdb6 | 2922 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2923 | fi |
698dcdb6 | 2924 | |
10f2d63a | 2925 | |
698dcdb6 | 2926 | echo $ac_n "checking for --enable-config""... $ac_c" 1>&6 |
edae8572 | 2927 | echo "configure:2928: checking for --enable-config" >&5 |
10f2d63a VZ |
2928 | no_cache=0 |
2929 | # Check whether --enable-config or --disable-config was given. | |
2930 | if test "${enable_config+set}" = set; then | |
2931 | enableval="$enable_config" | |
698dcdb6 | 2932 | |
10f2d63a VZ |
2933 | if test "$enableval" = yes; then |
2934 | ac_cv_use_config='wxUSE_CONFIG=yes' | |
2935 | else | |
2936 | ac_cv_use_config='wxUSE_CONFIG=no' | |
2937 | fi | |
698dcdb6 | 2938 | |
10f2d63a | 2939 | else |
698dcdb6 | 2940 | |
10f2d63a VZ |
2941 | LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}` |
2942 | if test "x$LINE" != x ; then | |
2943 | eval "DEFAULT_$LINE" | |
2944 | else | |
2945 | no_cache=1 | |
2946 | fi | |
2947 | ||
2948 | ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG | |
698dcdb6 VZ |
2949 | |
2950 | fi | |
10f2d63a VZ |
2951 | |
2952 | ||
2953 | eval "$ac_cv_use_config" | |
2954 | if test "$no_cache" != 1; then | |
2955 | echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp | |
2956 | fi | |
2957 | ||
2958 | if test "$wxUSE_CONFIG" = yes; then | |
698dcdb6 | 2959 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2960 | else |
698dcdb6 | 2961 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2962 | fi |
698dcdb6 VZ |
2963 | |
2964 | ||
b12915c1 | 2965 | |
698dcdb6 | 2966 | echo $ac_n "checking for --enable-sockets""... $ac_c" 1>&6 |
edae8572 | 2967 | echo "configure:2968: checking for --enable-sockets" >&5 |
10f2d63a VZ |
2968 | no_cache=0 |
2969 | # Check whether --enable-sockets or --disable-sockets was given. | |
2970 | if test "${enable_sockets+set}" = set; then | |
2971 | enableval="$enable_sockets" | |
698dcdb6 | 2972 | |
10f2d63a VZ |
2973 | if test "$enableval" = yes; then |
2974 | ac_cv_use_sockets='wxUSE_SOCKETS=yes' | |
2975 | else | |
2976 | ac_cv_use_sockets='wxUSE_SOCKETS=no' | |
2977 | fi | |
698dcdb6 | 2978 | |
10f2d63a | 2979 | else |
698dcdb6 | 2980 | |
10f2d63a VZ |
2981 | LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}` |
2982 | if test "x$LINE" != x ; then | |
2983 | eval "DEFAULT_$LINE" | |
2984 | else | |
2985 | no_cache=1 | |
2986 | fi | |
2987 | ||
2988 | ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS | |
698dcdb6 VZ |
2989 | |
2990 | fi | |
10f2d63a VZ |
2991 | |
2992 | ||
2993 | eval "$ac_cv_use_sockets" | |
2994 | if test "$no_cache" != 1; then | |
2995 | echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp | |
2996 | fi | |
2997 | ||
2998 | if test "$wxUSE_SOCKETS" = yes; then | |
698dcdb6 | 2999 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3000 | else |
698dcdb6 | 3001 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3002 | fi |
698dcdb6 | 3003 | |
b12915c1 | 3004 | |
698dcdb6 VZ |
3005 | |
3006 | echo $ac_n "checking for --enable-ipc""... $ac_c" 1>&6 | |
edae8572 | 3007 | echo "configure:3008: checking for --enable-ipc" >&5 |
10f2d63a | 3008 | no_cache=0 |
eb4efbdc VZ |
3009 | # Check whether --enable-ipc or --disable-ipc was given. |
3010 | if test "${enable_ipc+set}" = set; then | |
3011 | enableval="$enable_ipc" | |
698dcdb6 | 3012 | |
10f2d63a | 3013 | if test "$enableval" = yes; then |
eb4efbdc | 3014 | ac_cv_use_ipc='wxUSE_IPC=yes' |
10f2d63a | 3015 | else |
eb4efbdc | 3016 | ac_cv_use_ipc='wxUSE_IPC=no' |
10f2d63a | 3017 | fi |
698dcdb6 | 3018 | |
10f2d63a | 3019 | else |
698dcdb6 | 3020 | |
eb4efbdc | 3021 | LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}` |
10f2d63a VZ |
3022 | if test "x$LINE" != x ; then |
3023 | eval "DEFAULT_$LINE" | |
3024 | else | |
3025 | no_cache=1 | |
3026 | fi | |
3027 | ||
eb4efbdc | 3028 | ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC |
698dcdb6 VZ |
3029 | |
3030 | fi | |
10f2d63a VZ |
3031 | |
3032 | ||
eb4efbdc | 3033 | eval "$ac_cv_use_ipc" |
10f2d63a | 3034 | if test "$no_cache" != 1; then |
eb4efbdc | 3035 | echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
3036 | fi |
3037 | ||
eb4efbdc | 3038 | if test "$wxUSE_IPC" = yes; then |
698dcdb6 | 3039 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3040 | else |
698dcdb6 | 3041 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3042 | fi |
698dcdb6 VZ |
3043 | |
3044 | ||
eb4efbdc | 3045 | |
1e6feb95 | 3046 | echo $ac_n "checking for --enable-cmdline""... $ac_c" 1>&6 |
edae8572 | 3047 | echo "configure:3048: checking for --enable-cmdline" >&5 |
1e6feb95 VZ |
3048 | no_cache=0 |
3049 | # Check whether --enable-cmdline or --disable-cmdline was given. | |
3050 | if test "${enable_cmdline+set}" = set; then | |
3051 | enableval="$enable_cmdline" | |
3052 | ||
3053 | if test "$enableval" = yes; then | |
3054 | ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=yes' | |
3055 | else | |
3056 | ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=no' | |
3057 | fi | |
3058 | ||
3059 | else | |
3060 | ||
3061 | LINE=`grep "wxUSE_CMDLINE_PARSER" ${wx_arg_cache_file}` | |
3062 | if test "x$LINE" != x ; then | |
3063 | eval "DEFAULT_$LINE" | |
3064 | else | |
3065 | no_cache=1 | |
3066 | fi | |
3067 | ||
3068 | ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER='$DEFAULT_wxUSE_CMDLINE_PARSER | |
3069 | ||
3070 | fi | |
3071 | ||
3072 | ||
3073 | eval "$ac_cv_use_cmdline" | |
3074 | if test "$no_cache" != 1; then | |
3075 | echo $ac_cv_use_cmdline >> ${wx_arg_cache_file}.tmp | |
3076 | fi | |
3077 | ||
3078 | if test "$wxUSE_CMDLINE_PARSER" = yes; then | |
3079 | echo "$ac_t""yes" 1>&6 | |
3080 | else | |
3081 | echo "$ac_t""no" 1>&6 | |
3082 | fi | |
3083 | ||
3084 | ||
3085 | echo $ac_n "checking for --enable-datetime""... $ac_c" 1>&6 | |
edae8572 | 3086 | echo "configure:3087: checking for --enable-datetime" >&5 |
1e6feb95 VZ |
3087 | no_cache=0 |
3088 | # Check whether --enable-datetime or --disable-datetime was given. | |
3089 | if test "${enable_datetime+set}" = set; then | |
3090 | enableval="$enable_datetime" | |
3091 | ||
3092 | if test "$enableval" = yes; then | |
3093 | ac_cv_use_datetime='wxUSE_DATETIME=yes' | |
3094 | else | |
3095 | ac_cv_use_datetime='wxUSE_DATETIME=no' | |
3096 | fi | |
3097 | ||
3098 | else | |
3099 | ||
3100 | LINE=`grep "wxUSE_DATETIME" ${wx_arg_cache_file}` | |
3101 | if test "x$LINE" != x ; then | |
3102 | eval "DEFAULT_$LINE" | |
3103 | else | |
3104 | no_cache=1 | |
3105 | fi | |
3106 | ||
3107 | ac_cv_use_datetime='wxUSE_DATETIME='$DEFAULT_wxUSE_DATETIME | |
3108 | ||
3109 | fi | |
3110 | ||
3111 | ||
3112 | eval "$ac_cv_use_datetime" | |
3113 | if test "$no_cache" != 1; then | |
3114 | echo $ac_cv_use_datetime >> ${wx_arg_cache_file}.tmp | |
3115 | fi | |
3116 | ||
3117 | if test "$wxUSE_DATETIME" = yes; then | |
3118 | echo "$ac_t""yes" 1>&6 | |
3119 | else | |
3120 | echo "$ac_t""no" 1>&6 | |
3121 | fi | |
3122 | ||
3123 | ||
3124 | echo $ac_n "checking for --enable-timedate""... $ac_c" 1>&6 | |
edae8572 | 3125 | echo "configure:3126: checking for --enable-timedate" >&5 |
1e6feb95 VZ |
3126 | no_cache=0 |
3127 | # Check whether --enable-timedate or --disable-timedate was given. | |
3128 | if test "${enable_timedate+set}" = set; then | |
3129 | enableval="$enable_timedate" | |
3130 | ||
3131 | if test "$enableval" = yes; then | |
3132 | ac_cv_use_timedate='wxUSE_TIMEDATE=yes' | |
3133 | else | |
3134 | ac_cv_use_timedate='wxUSE_TIMEDATE=no' | |
3135 | fi | |
3136 | ||
3137 | else | |
3138 | ||
3139 | LINE=`grep "wxUSE_TIMEDATE" ${wx_arg_cache_file}` | |
3140 | if test "x$LINE" != x ; then | |
3141 | eval "DEFAULT_$LINE" | |
3142 | else | |
3143 | no_cache=1 | |
3144 | fi | |
3145 | ||
3146 | ac_cv_use_timedate='wxUSE_TIMEDATE='$DEFAULT_wxUSE_TIMEDATE | |
3147 | ||
3148 | fi | |
3149 | ||
3150 | ||
3151 | eval "$ac_cv_use_timedate" | |
3152 | if test "$no_cache" != 1; then | |
3153 | echo $ac_cv_use_timedate >> ${wx_arg_cache_file}.tmp | |
3154 | fi | |
3155 | ||
3156 | if test "$wxUSE_TIMEDATE" = yes; then | |
3157 | echo "$ac_t""yes" 1>&6 | |
3158 | else | |
3159 | echo "$ac_t""no" 1>&6 | |
3160 | fi | |
3161 | ||
3162 | ||
3163 | echo $ac_n "checking for --enable-stopwatch""... $ac_c" 1>&6 | |
edae8572 | 3164 | echo "configure:3165: checking for --enable-stopwatch" >&5 |
1e6feb95 VZ |
3165 | no_cache=0 |
3166 | # Check whether --enable-stopwatch or --disable-stopwatch was given. | |
3167 | if test "${enable_stopwatch+set}" = set; then | |
3168 | enableval="$enable_stopwatch" | |
3169 | ||
3170 | if test "$enableval" = yes; then | |
3171 | ac_cv_use_stopwatch='wxUSE_STOPWATCH=yes' | |
3172 | else | |
3173 | ac_cv_use_stopwatch='wxUSE_STOPWATCH=no' | |
3174 | fi | |
3175 | ||
3176 | else | |
3177 | ||
3178 | LINE=`grep "wxUSE_STOPWATCH" ${wx_arg_cache_file}` | |
3179 | if test "x$LINE" != x ; then | |
3180 | eval "DEFAULT_$LINE" | |
3181 | else | |
3182 | no_cache=1 | |
3183 | fi | |
3184 | ||
3185 | ac_cv_use_stopwatch='wxUSE_STOPWATCH='$DEFAULT_wxUSE_STOPWATCH | |
3186 | ||
3187 | fi | |
3188 | ||
3189 | ||
3190 | eval "$ac_cv_use_stopwatch" | |
3191 | if test "$no_cache" != 1; then | |
3192 | echo $ac_cv_use_stopwatch >> ${wx_arg_cache_file}.tmp | |
3193 | fi | |
3194 | ||
3195 | if test "$wxUSE_STOPWATCH" = yes; then | |
3196 | echo "$ac_t""yes" 1>&6 | |
3197 | else | |
3198 | echo "$ac_t""no" 1>&6 | |
3199 | fi | |
3200 | ||
3201 | ||
698dcdb6 | 3202 | echo $ac_n "checking for --enable-dialupman""... $ac_c" 1>&6 |
edae8572 | 3203 | echo "configure:3204: checking for --enable-dialupman" >&5 |
10f2d63a | 3204 | no_cache=0 |
eb4efbdc VZ |
3205 | # Check whether --enable-dialupman or --disable-dialupman was given. |
3206 | if test "${enable_dialupman+set}" = set; then | |
3207 | enableval="$enable_dialupman" | |
698dcdb6 | 3208 | |
10f2d63a | 3209 | if test "$enableval" = yes; then |
eb4efbdc | 3210 | ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes' |
10f2d63a | 3211 | else |
eb4efbdc | 3212 | ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no' |
10f2d63a | 3213 | fi |
698dcdb6 | 3214 | |
10f2d63a | 3215 | else |
698dcdb6 | 3216 | |
eb4efbdc | 3217 | LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}` |
10f2d63a VZ |
3218 | if test "x$LINE" != x ; then |
3219 | eval "DEFAULT_$LINE" | |
3220 | else | |
3221 | no_cache=1 | |
3222 | fi | |
3223 | ||
eb4efbdc | 3224 | ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER |
698dcdb6 VZ |
3225 | |
3226 | fi | |
10f2d63a VZ |
3227 | |
3228 | ||
eb4efbdc | 3229 | eval "$ac_cv_use_dialupman" |
10f2d63a | 3230 | if test "$no_cache" != 1; then |
eb4efbdc | 3231 | echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
3232 | fi |
3233 | ||
eb4efbdc | 3234 | if test "$wxUSE_DIALUP_MANAGER" = yes; then |
698dcdb6 | 3235 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3236 | else |
698dcdb6 | 3237 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3238 | fi |
698dcdb6 | 3239 | |
10f2d63a | 3240 | |
698dcdb6 | 3241 | echo $ac_n "checking for --enable-apple_ieee""... $ac_c" 1>&6 |
edae8572 | 3242 | echo "configure:3243: checking for --enable-apple_ieee" >&5 |
10f2d63a VZ |
3243 | no_cache=0 |
3244 | # Check whether --enable-apple_ieee or --disable-apple_ieee was given. | |
3245 | if test "${enable_apple_ieee+set}" = set; then | |
3246 | enableval="$enable_apple_ieee" | |
698dcdb6 | 3247 | |
10f2d63a VZ |
3248 | if test "$enableval" = yes; then |
3249 | ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes' | |
3250 | else | |
3251 | ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no' | |
3252 | fi | |
698dcdb6 | 3253 | |
10f2d63a | 3254 | else |
698dcdb6 | 3255 | |
10f2d63a VZ |
3256 | LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}` |
3257 | if test "x$LINE" != x ; then | |
3258 | eval "DEFAULT_$LINE" | |
3259 | else | |
3260 | no_cache=1 | |
3261 | fi | |
3262 | ||
3263 | ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE | |
698dcdb6 VZ |
3264 | |
3265 | fi | |
10f2d63a VZ |
3266 | |
3267 | ||
3268 | eval "$ac_cv_use_apple_ieee" | |
3269 | if test "$no_cache" != 1; then | |
3270 | echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp | |
3271 | fi | |
3272 | ||
3273 | if test "$wxUSE_APPLE_IEEE" = yes; then | |
698dcdb6 | 3274 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3275 | else |
698dcdb6 | 3276 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3277 | fi |
698dcdb6 | 3278 | |
10f2d63a | 3279 | |
1e6feb95 | 3280 | echo $ac_n "checking for --enable-timer""... $ac_c" 1>&6 |
edae8572 | 3281 | echo "configure:3282: checking for --enable-timer" >&5 |
10f2d63a | 3282 | no_cache=0 |
1e6feb95 VZ |
3283 | # Check whether --enable-timer or --disable-timer was given. |
3284 | if test "${enable_timer+set}" = set; then | |
3285 | enableval="$enable_timer" | |
698dcdb6 | 3286 | |
10f2d63a | 3287 | if test "$enableval" = yes; then |
1e6feb95 | 3288 | ac_cv_use_timer='wxUSE_TIMER=yes' |
10f2d63a | 3289 | else |
1e6feb95 | 3290 | ac_cv_use_timer='wxUSE_TIMER=no' |
10f2d63a | 3291 | fi |
698dcdb6 | 3292 | |
10f2d63a | 3293 | else |
698dcdb6 | 3294 | |
1e6feb95 | 3295 | LINE=`grep "wxUSE_TIMER" ${wx_arg_cache_file}` |
10f2d63a VZ |
3296 | if test "x$LINE" != x ; then |
3297 | eval "DEFAULT_$LINE" | |
3298 | else | |
3299 | no_cache=1 | |
3300 | fi | |
3301 | ||
1e6feb95 | 3302 | ac_cv_use_timer='wxUSE_TIMER='$DEFAULT_wxUSE_TIMER |
698dcdb6 VZ |
3303 | |
3304 | fi | |
10f2d63a VZ |
3305 | |
3306 | ||
1e6feb95 | 3307 | eval "$ac_cv_use_timer" |
10f2d63a | 3308 | if test "$no_cache" != 1; then |
1e6feb95 | 3309 | echo $ac_cv_use_timer >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
3310 | fi |
3311 | ||
1e6feb95 | 3312 | if test "$wxUSE_TIMER" = yes; then |
698dcdb6 | 3313 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3314 | else |
698dcdb6 | 3315 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3316 | fi |
698dcdb6 | 3317 | |
10f2d63a | 3318 | |
698dcdb6 | 3319 | echo $ac_n "checking for --enable-wave""... $ac_c" 1>&6 |
edae8572 | 3320 | echo "configure:3321: checking for --enable-wave" >&5 |
10f2d63a VZ |
3321 | no_cache=0 |
3322 | # Check whether --enable-wave or --disable-wave was given. | |
3323 | if test "${enable_wave+set}" = set; then | |
3324 | enableval="$enable_wave" | |
698dcdb6 | 3325 | |
10f2d63a VZ |
3326 | if test "$enableval" = yes; then |
3327 | ac_cv_use_wave='wxUSE_WAVE=yes' | |
3328 | else | |
3329 | ac_cv_use_wave='wxUSE_WAVE=no' | |
3330 | fi | |
698dcdb6 | 3331 | |
10f2d63a | 3332 | else |
698dcdb6 | 3333 | |
10f2d63a VZ |
3334 | LINE=`grep "wxUSE_WAVE" ${wx_arg_cache_file}` |
3335 | if test "x$LINE" != x ; then | |
3336 | eval "DEFAULT_$LINE" | |
3337 | else | |
3338 | no_cache=1 | |
3339 | fi | |
3340 | ||
3341 | ac_cv_use_wave='wxUSE_WAVE='$DEFAULT_wxUSE_WAVE | |
698dcdb6 VZ |
3342 | |
3343 | fi | |
10f2d63a VZ |
3344 | |
3345 | ||
3346 | eval "$ac_cv_use_wave" | |
3347 | if test "$no_cache" != 1; then | |
3348 | echo $ac_cv_use_wave >> ${wx_arg_cache_file}.tmp | |
3349 | fi | |
3350 | ||
3351 | if test "$wxUSE_WAVE" = yes; then | |
698dcdb6 | 3352 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3353 | else |
698dcdb6 | 3354 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3355 | fi |
698dcdb6 | 3356 | |
10f2d63a | 3357 | |
698dcdb6 | 3358 | echo $ac_n "checking for --enable-fraction""... $ac_c" 1>&6 |
edae8572 | 3359 | echo "configure:3360: checking for --enable-fraction" >&5 |
10f2d63a VZ |
3360 | no_cache=0 |
3361 | # Check whether --enable-fraction or --disable-fraction was given. | |
3362 | if test "${enable_fraction+set}" = set; then | |
3363 | enableval="$enable_fraction" | |
698dcdb6 | 3364 | |
10f2d63a VZ |
3365 | if test "$enableval" = yes; then |
3366 | ac_cv_use_fraction='wxUSE_FRACTION=yes' | |
3367 | else | |
3368 | ac_cv_use_fraction='wxUSE_FRACTION=no' | |
3369 | fi | |
698dcdb6 | 3370 | |
10f2d63a | 3371 | else |
698dcdb6 | 3372 | |
10f2d63a VZ |
3373 | LINE=`grep "wxUSE_FRACTION" ${wx_arg_cache_file}` |
3374 | if test "x$LINE" != x ; then | |
3375 | eval "DEFAULT_$LINE" | |
3376 | else | |
3377 | no_cache=1 | |
3378 | fi | |
3379 | ||
3380 | ac_cv_use_fraction='wxUSE_FRACTION='$DEFAULT_wxUSE_FRACTION | |
698dcdb6 VZ |
3381 | |
3382 | fi | |
10f2d63a VZ |
3383 | |
3384 | ||
3385 | eval "$ac_cv_use_fraction" | |
3386 | if test "$no_cache" != 1; then | |
3387 | echo $ac_cv_use_fraction >> ${wx_arg_cache_file}.tmp | |
3388 | fi | |
3389 | ||
3390 | if test "$wxUSE_FRACTION" = yes; then | |
698dcdb6 | 3391 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3392 | else |
698dcdb6 | 3393 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3394 | fi |
698dcdb6 | 3395 | |
10f2d63a | 3396 | |
698dcdb6 | 3397 | echo $ac_n "checking for --enable-dynlib""... $ac_c" 1>&6 |
edae8572 | 3398 | echo "configure:3399: checking for --enable-dynlib" >&5 |
10f2d63a VZ |
3399 | no_cache=0 |
3400 | # Check whether --enable-dynlib or --disable-dynlib was given. | |
3401 | if test "${enable_dynlib+set}" = set; then | |
3402 | enableval="$enable_dynlib" | |
698dcdb6 | 3403 | |
10f2d63a VZ |
3404 | if test "$enableval" = yes; then |
3405 | ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes' | |
3406 | else | |
3407 | ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no' | |
3408 | fi | |
698dcdb6 | 3409 | |
10f2d63a | 3410 | else |
698dcdb6 | 3411 | |
10f2d63a VZ |
3412 | LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}` |
3413 | if test "x$LINE" != x ; then | |
3414 | eval "DEFAULT_$LINE" | |
3415 | else | |
3416 | no_cache=1 | |
3417 | fi | |
3418 | ||
3419 | ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS | |
698dcdb6 VZ |
3420 | |
3421 | fi | |
10f2d63a VZ |
3422 | |
3423 | ||
3424 | eval "$ac_cv_use_dynlib" | |
3425 | if test "$no_cache" != 1; then | |
3426 | echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp | |
3427 | fi | |
3428 | ||
3429 | if test "$wxUSE_DYNLIB_CLASS" = yes; then | |
698dcdb6 | 3430 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3431 | else |
698dcdb6 | 3432 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3433 | fi |
698dcdb6 | 3434 | |
10f2d63a | 3435 | |
698dcdb6 | 3436 | echo $ac_n "checking for --enable-longlong""... $ac_c" 1>&6 |
edae8572 | 3437 | echo "configure:3438: checking for --enable-longlong" >&5 |
10f2d63a VZ |
3438 | no_cache=0 |
3439 | # Check whether --enable-longlong or --disable-longlong was given. | |
3440 | if test "${enable_longlong+set}" = set; then | |
3441 | enableval="$enable_longlong" | |
698dcdb6 | 3442 | |
10f2d63a VZ |
3443 | if test "$enableval" = yes; then |
3444 | ac_cv_use_longlong='wxUSE_LONGLONG=yes' | |
3445 | else | |
3446 | ac_cv_use_longlong='wxUSE_LONGLONG=no' | |
3447 | fi | |
698dcdb6 | 3448 | |
10f2d63a | 3449 | else |
698dcdb6 | 3450 | |
10f2d63a VZ |
3451 | LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}` |
3452 | if test "x$LINE" != x ; then | |
3453 | eval "DEFAULT_$LINE" | |
3454 | else | |
3455 | no_cache=1 | |
3456 | fi | |
3457 | ||
3458 | ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG | |
698dcdb6 VZ |
3459 | |
3460 | fi | |
10f2d63a VZ |
3461 | |
3462 | ||
3463 | eval "$ac_cv_use_longlong" | |
3464 | if test "$no_cache" != 1; then | |
3465 | echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp | |
3466 | fi | |
3467 | ||
3468 | if test "$wxUSE_LONGLONG" = yes; then | |
698dcdb6 | 3469 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3470 | else |
698dcdb6 | 3471 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3472 | fi |
698dcdb6 | 3473 | |
10f2d63a | 3474 | |
698dcdb6 | 3475 | echo $ac_n "checking for --enable-geometry""... $ac_c" 1>&6 |
edae8572 | 3476 | echo "configure:3477: checking for --enable-geometry" >&5 |
e8f65ba6 RR |
3477 | no_cache=0 |
3478 | # Check whether --enable-geometry or --disable-geometry was given. | |
3479 | if test "${enable_geometry+set}" = set; then | |
3480 | enableval="$enable_geometry" | |
698dcdb6 | 3481 | |
e8f65ba6 RR |
3482 | if test "$enableval" = yes; then |
3483 | ac_cv_use_geometry='wxUSE_GEOMETRY=yes' | |
3484 | else | |
3485 | ac_cv_use_geometry='wxUSE_GEOMETRY=no' | |
3486 | fi | |
698dcdb6 | 3487 | |
e8f65ba6 | 3488 | else |
698dcdb6 | 3489 | |
e8f65ba6 RR |
3490 | LINE=`grep "wxUSE_GEOMETRY" ${wx_arg_cache_file}` |
3491 | if test "x$LINE" != x ; then | |
3492 | eval "DEFAULT_$LINE" | |
3493 | else | |
3494 | no_cache=1 | |
3495 | fi | |
3496 | ||
3497 | ac_cv_use_geometry='wxUSE_GEOMETRY='$DEFAULT_wxUSE_GEOMETRY | |
698dcdb6 VZ |
3498 | |
3499 | fi | |
e8f65ba6 RR |
3500 | |
3501 | ||
3502 | eval "$ac_cv_use_geometry" | |
3503 | if test "$no_cache" != 1; then | |
3504 | echo $ac_cv_use_geometry >> ${wx_arg_cache_file}.tmp | |
3505 | fi | |
3506 | ||
3507 | if test "$wxUSE_GEOMETRY" = yes; then | |
698dcdb6 | 3508 | echo "$ac_t""yes" 1>&6 |
e8f65ba6 | 3509 | else |
698dcdb6 | 3510 | echo "$ac_t""no" 1>&6 |
e8f65ba6 | 3511 | fi |
698dcdb6 | 3512 | |
e8f65ba6 | 3513 | |
698dcdb6 | 3514 | echo $ac_n "checking for --enable-log""... $ac_c" 1>&6 |
edae8572 | 3515 | echo "configure:3516: checking for --enable-log" >&5 |
10f2d63a VZ |
3516 | no_cache=0 |
3517 | # Check whether --enable-log or --disable-log was given. | |
3518 | if test "${enable_log+set}" = set; then | |
3519 | enableval="$enable_log" | |
698dcdb6 | 3520 | |
10f2d63a VZ |
3521 | if test "$enableval" = yes; then |
3522 | ac_cv_use_log='wxUSE_LOG=yes' | |
3523 | else | |
3524 | ac_cv_use_log='wxUSE_LOG=no' | |
3525 | fi | |
698dcdb6 | 3526 | |
10f2d63a | 3527 | else |
698dcdb6 | 3528 | |
10f2d63a VZ |
3529 | LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}` |
3530 | if test "x$LINE" != x ; then | |
3531 | eval "DEFAULT_$LINE" | |
3532 | else | |
3533 | no_cache=1 | |
3534 | fi | |
3535 | ||
3536 | ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG | |
698dcdb6 VZ |
3537 | |
3538 | fi | |
10f2d63a VZ |
3539 | |
3540 | ||
3541 | eval "$ac_cv_use_log" | |
3542 | if test "$no_cache" != 1; then | |
3543 | echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp | |
3544 | fi | |
3545 | ||
3546 | if test "$wxUSE_LOG" = yes; then | |
698dcdb6 | 3547 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3548 | else |
698dcdb6 | 3549 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3550 | fi |
698dcdb6 | 3551 | |
10f2d63a | 3552 | |
698dcdb6 | 3553 | echo $ac_n "checking for --enable-streams""... $ac_c" 1>&6 |
edae8572 | 3554 | echo "configure:3555: checking for --enable-streams" >&5 |
10f2d63a VZ |
3555 | no_cache=0 |
3556 | # Check whether --enable-streams or --disable-streams was given. | |
3557 | if test "${enable_streams+set}" = set; then | |
3558 | enableval="$enable_streams" | |
698dcdb6 | 3559 | |
10f2d63a VZ |
3560 | if test "$enableval" = yes; then |
3561 | ac_cv_use_streams='wxUSE_STREAMS=yes' | |
3562 | else | |
3563 | ac_cv_use_streams='wxUSE_STREAMS=no' | |
3564 | fi | |
698dcdb6 | 3565 | |
10f2d63a | 3566 | else |
698dcdb6 | 3567 | |
10f2d63a VZ |
3568 | LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}` |
3569 | if test "x$LINE" != x ; then | |
3570 | eval "DEFAULT_$LINE" | |
3571 | else | |
3572 | no_cache=1 | |
3573 | fi | |
3574 | ||
3575 | ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS | |
698dcdb6 VZ |
3576 | |
3577 | fi | |
10f2d63a VZ |
3578 | |
3579 | ||
3580 | eval "$ac_cv_use_streams" | |
3581 | if test "$no_cache" != 1; then | |
3582 | echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp | |
3583 | fi | |
3584 | ||
3585 | if test "$wxUSE_STREAMS" = yes; then | |
698dcdb6 | 3586 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3587 | else |
698dcdb6 | 3588 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3589 | fi |
698dcdb6 | 3590 | |
10f2d63a | 3591 | |
698dcdb6 | 3592 | echo $ac_n "checking for --enable-file""... $ac_c" 1>&6 |
edae8572 | 3593 | echo "configure:3594: checking for --enable-file" >&5 |
10f2d63a VZ |
3594 | no_cache=0 |
3595 | # Check whether --enable-file or --disable-file was given. | |
3596 | if test "${enable_file+set}" = set; then | |
3597 | enableval="$enable_file" | |
698dcdb6 | 3598 | |
10f2d63a VZ |
3599 | if test "$enableval" = yes; then |
3600 | ac_cv_use_file='wxUSE_FILE=yes' | |
3601 | else | |
3602 | ac_cv_use_file='wxUSE_FILE=no' | |
3603 | fi | |
698dcdb6 | 3604 | |
10f2d63a | 3605 | else |
698dcdb6 | 3606 | |
10f2d63a VZ |
3607 | LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}` |
3608 | if test "x$LINE" != x ; then | |
3609 | eval "DEFAULT_$LINE" | |
3610 | else | |
3611 | no_cache=1 | |
3612 | fi | |
3613 | ||
3614 | ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE | |
698dcdb6 VZ |
3615 | |
3616 | fi | |
10f2d63a VZ |
3617 | |
3618 | ||
3619 | eval "$ac_cv_use_file" | |
3620 | if test "$no_cache" != 1; then | |
3621 | echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp | |
3622 | fi | |
3623 | ||
3624 | if test "$wxUSE_FILE" = yes; then | |
698dcdb6 | 3625 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3626 | else |
698dcdb6 | 3627 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3628 | fi |
698dcdb6 | 3629 | |
10f2d63a | 3630 | |
1e6feb95 | 3631 | echo $ac_n "checking for --enable-ffile""... $ac_c" 1>&6 |
edae8572 | 3632 | echo "configure:3633: checking for --enable-ffile" >&5 |
10f2d63a | 3633 | no_cache=0 |
1e6feb95 VZ |
3634 | # Check whether --enable-ffile or --disable-ffile was given. |
3635 | if test "${enable_ffile+set}" = set; then | |
3636 | enableval="$enable_ffile" | |
698dcdb6 | 3637 | |
10f2d63a | 3638 | if test "$enableval" = yes; then |
1e6feb95 | 3639 | ac_cv_use_ffile='wxUSE_FFILE=yes' |
10f2d63a | 3640 | else |
1e6feb95 | 3641 | ac_cv_use_ffile='wxUSE_FFILE=no' |
10f2d63a | 3642 | fi |
698dcdb6 | 3643 | |
10f2d63a | 3644 | else |
698dcdb6 | 3645 | |
1e6feb95 | 3646 | LINE=`grep "wxUSE_FFILE" ${wx_arg_cache_file}` |
10f2d63a VZ |
3647 | if test "x$LINE" != x ; then |
3648 | eval "DEFAULT_$LINE" | |
3649 | else | |
3650 | no_cache=1 | |
3651 | fi | |
3652 | ||
1e6feb95 | 3653 | ac_cv_use_ffile='wxUSE_FFILE='$DEFAULT_wxUSE_FFILE |
698dcdb6 VZ |
3654 | |
3655 | fi | |
10f2d63a VZ |
3656 | |
3657 | ||
1e6feb95 | 3658 | eval "$ac_cv_use_ffile" |
10f2d63a | 3659 | if test "$no_cache" != 1; then |
1e6feb95 | 3660 | echo $ac_cv_use_ffile >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
3661 | fi |
3662 | ||
1e6feb95 | 3663 | if test "$wxUSE_FFILE" = yes; then |
698dcdb6 | 3664 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3665 | else |
698dcdb6 | 3666 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3667 | fi |
698dcdb6 | 3668 | |
10f2d63a | 3669 | |
1e6feb95 | 3670 | echo $ac_n "checking for --enable-textfile""... $ac_c" 1>&6 |
edae8572 | 3671 | echo "configure:3672: checking for --enable-textfile" >&5 |
10f2d63a | 3672 | no_cache=0 |
1e6feb95 VZ |
3673 | # Check whether --enable-textfile or --disable-textfile was given. |
3674 | if test "${enable_textfile+set}" = set; then | |
3675 | enableval="$enable_textfile" | |
698dcdb6 | 3676 | |
10f2d63a | 3677 | if test "$enableval" = yes; then |
1e6feb95 | 3678 | ac_cv_use_textfile='wxUSE_TEXTFILE=yes' |
10f2d63a | 3679 | else |
1e6feb95 | 3680 | ac_cv_use_textfile='wxUSE_TEXTFILE=no' |
10f2d63a | 3681 | fi |
698dcdb6 | 3682 | |
10f2d63a | 3683 | else |
698dcdb6 | 3684 | |
1e6feb95 | 3685 | LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}` |
10f2d63a VZ |
3686 | if test "x$LINE" != x ; then |
3687 | eval "DEFAULT_$LINE" | |
3688 | else | |
3689 | no_cache=1 | |
3690 | fi | |
3691 | ||
1e6feb95 | 3692 | ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE |
698dcdb6 VZ |
3693 | |
3694 | fi | |
10f2d63a VZ |
3695 | |
3696 | ||
1e6feb95 | 3697 | eval "$ac_cv_use_textfile" |
10f2d63a | 3698 | if test "$no_cache" != 1; then |
1e6feb95 | 3699 | echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
3700 | fi |
3701 | ||
1e6feb95 | 3702 | if test "$wxUSE_TEXTFILE" = yes; then |
698dcdb6 | 3703 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3704 | else |
698dcdb6 | 3705 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3706 | fi |
698dcdb6 | 3707 | |
10f2d63a | 3708 | |
1e6feb95 | 3709 | echo $ac_n "checking for --enable-fontmap""... $ac_c" 1>&6 |
edae8572 | 3710 | echo "configure:3711: checking for --enable-fontmap" >&5 |
10f2d63a | 3711 | no_cache=0 |
1e6feb95 VZ |
3712 | # Check whether --enable-fontmap or --disable-fontmap was given. |
3713 | if test "${enable_fontmap+set}" = set; then | |
3714 | enableval="$enable_fontmap" | |
698dcdb6 | 3715 | |
10f2d63a | 3716 | if test "$enableval" = yes; then |
1e6feb95 | 3717 | ac_cv_use_fontmap='wxUSE_FONTMAP=yes' |
10f2d63a | 3718 | else |
1e6feb95 | 3719 | ac_cv_use_fontmap='wxUSE_FONTMAP=no' |
10f2d63a | 3720 | fi |
698dcdb6 | 3721 | |
10f2d63a | 3722 | else |
698dcdb6 | 3723 | |
1e6feb95 | 3724 | LINE=`grep "wxUSE_FONTMAP" ${wx_arg_cache_file}` |
10f2d63a VZ |
3725 | if test "x$LINE" != x ; then |
3726 | eval "DEFAULT_$LINE" | |
3727 | else | |
3728 | no_cache=1 | |
3729 | fi | |
3730 | ||
1e6feb95 | 3731 | ac_cv_use_fontmap='wxUSE_FONTMAP='$DEFAULT_wxUSE_FONTMAP |
698dcdb6 VZ |
3732 | |
3733 | fi | |
10f2d63a VZ |
3734 | |
3735 | ||
1e6feb95 | 3736 | eval "$ac_cv_use_fontmap" |
10f2d63a | 3737 | if test "$no_cache" != 1; then |
1e6feb95 | 3738 | echo $ac_cv_use_fontmap >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
3739 | fi |
3740 | ||
1e6feb95 | 3741 | if test "$wxUSE_FONTMAP" = yes; then |
698dcdb6 | 3742 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3743 | else |
698dcdb6 | 3744 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3745 | fi |
698dcdb6 | 3746 | |
10f2d63a | 3747 | |
1e6feb95 | 3748 | echo $ac_n "checking for --enable-unicode""... $ac_c" 1>&6 |
edae8572 | 3749 | echo "configure:3750: checking for --enable-unicode" >&5 |
10f2d63a | 3750 | no_cache=0 |
1e6feb95 VZ |
3751 | # Check whether --enable-unicode or --disable-unicode was given. |
3752 | if test "${enable_unicode+set}" = set; then | |
3753 | enableval="$enable_unicode" | |
3754 | ||
3755 | if test "$enableval" = yes; then | |
3756 | ac_cv_use_unicode='wxUSE_UNICODE=yes' | |
3757 | else | |
3758 | ac_cv_use_unicode='wxUSE_UNICODE=no' | |
3759 | fi | |
3760 | ||
3761 | else | |
3762 | ||
3763 | LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}` | |
3764 | if test "x$LINE" != x ; then | |
3765 | eval "DEFAULT_$LINE" | |
3766 | else | |
3767 | no_cache=1 | |
3768 | fi | |
3769 | ||
3770 | ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE | |
3771 | ||
3772 | fi | |
3773 | ||
3774 | ||
3775 | eval "$ac_cv_use_unicode" | |
3776 | if test "$no_cache" != 1; then | |
3777 | echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp | |
3778 | fi | |
3779 | ||
3780 | if test "$wxUSE_UNICODE" = yes; then | |
3781 | echo "$ac_t""yes" 1>&6 | |
3782 | else | |
3783 | echo "$ac_t""no" 1>&6 | |
3784 | fi | |
3785 | ||
3786 | ||
1e6feb95 | 3787 | echo $ac_n "checking for --enable-wxprintfv""... $ac_c" 1>&6 |
edae8572 | 3788 | echo "configure:3789: checking for --enable-wxprintfv" >&5 |
1e6feb95 VZ |
3789 | no_cache=0 |
3790 | # Check whether --enable-wxprintfv or --disable-wxprintfv was given. | |
3791 | if test "${enable_wxprintfv+set}" = set; then | |
3792 | enableval="$enable_wxprintfv" | |
3793 | ||
3794 | if test "$enableval" = yes; then | |
10f2d63a VZ |
3795 | ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=yes' |
3796 | else | |
3797 | ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=no' | |
3798 | fi | |
698dcdb6 | 3799 | |
10f2d63a | 3800 | else |
698dcdb6 | 3801 | |
10f2d63a VZ |
3802 | LINE=`grep "wxUSE_EXPERIMENTAL_PRINTF" ${wx_arg_cache_file}` |
3803 | if test "x$LINE" != x ; then | |
3804 | eval "DEFAULT_$LINE" | |
3805 | else | |
3806 | no_cache=1 | |
3807 | fi | |
3808 | ||
3809 | ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF='$DEFAULT_wxUSE_EXPERIMENTAL_PRINTF | |
698dcdb6 VZ |
3810 | |
3811 | fi | |
10f2d63a VZ |
3812 | |
3813 | ||
3814 | eval "$ac_cv_use_wxprintfv" | |
3815 | if test "$no_cache" != 1; then | |
3816 | echo $ac_cv_use_wxprintfv >> ${wx_arg_cache_file}.tmp | |
3817 | fi | |
3818 | ||
3819 | if test "$wxUSE_EXPERIMENTAL_PRINTF" = yes; then | |
698dcdb6 | 3820 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3821 | else |
698dcdb6 | 3822 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3823 | fi |
698dcdb6 | 3824 | |
10f2d63a | 3825 | |
698dcdb6 | 3826 | echo $ac_n "checking for --enable-std_iostreams""... $ac_c" 1>&6 |
edae8572 | 3827 | echo "configure:3828: checking for --enable-std_iostreams" >&5 |
10f2d63a VZ |
3828 | no_cache=0 |
3829 | # Check whether --enable-std_iostreams or --disable-std_iostreams was given. | |
3830 | if test "${enable_std_iostreams+set}" = set; then | |
3831 | enableval="$enable_std_iostreams" | |
698dcdb6 | 3832 | |
10f2d63a VZ |
3833 | if test "$enableval" = yes; then |
3834 | ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes' | |
3835 | else | |
3836 | ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no' | |
3837 | fi | |
698dcdb6 | 3838 | |
10f2d63a | 3839 | else |
698dcdb6 | 3840 | |
10f2d63a VZ |
3841 | LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}` |
3842 | if test "x$LINE" != x ; then | |
3843 | eval "DEFAULT_$LINE" | |
3844 | else | |
3845 | no_cache=1 | |
3846 | fi | |
3847 | ||
3848 | ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM | |
698dcdb6 VZ |
3849 | |
3850 | fi | |
10f2d63a VZ |
3851 | |
3852 | ||
3853 | eval "$ac_cv_use_std_iostreams" | |
3854 | if test "$no_cache" != 1; then | |
3855 | echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp | |
3856 | fi | |
3857 | ||
3858 | if test "$wxUSE_STD_IOSTREAM" = yes; then | |
698dcdb6 | 3859 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3860 | else |
698dcdb6 | 3861 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3862 | fi |
698dcdb6 | 3863 | |
10f2d63a | 3864 | |
698dcdb6 | 3865 | echo $ac_n "checking for --enable-filesystem""... $ac_c" 1>&6 |
edae8572 | 3866 | echo "configure:3867: checking for --enable-filesystem" >&5 |
24528b0c VS |
3867 | no_cache=0 |
3868 | # Check whether --enable-filesystem or --disable-filesystem was given. | |
3869 | if test "${enable_filesystem+set}" = set; then | |
3870 | enableval="$enable_filesystem" | |
698dcdb6 | 3871 | |
24528b0c VS |
3872 | if test "$enableval" = yes; then |
3873 | ac_cv_use_filesystem='wxUSE_FILESYSTEM=yes' | |
3874 | else | |
3875 | ac_cv_use_filesystem='wxUSE_FILESYSTEM=no' | |
3876 | fi | |
698dcdb6 | 3877 | |
24528b0c | 3878 | else |
698dcdb6 | 3879 | |
24528b0c VS |
3880 | LINE=`grep "wxUSE_FILESYSTEM" ${wx_arg_cache_file}` |
3881 | if test "x$LINE" != x ; then | |
3882 | eval "DEFAULT_$LINE" | |
3883 | else | |
3884 | no_cache=1 | |
3885 | fi | |
3886 | ||
3887 | ac_cv_use_filesystem='wxUSE_FILESYSTEM='$DEFAULT_wxUSE_FILESYSTEM | |
698dcdb6 VZ |
3888 | |
3889 | fi | |
24528b0c VS |
3890 | |
3891 | ||
3892 | eval "$ac_cv_use_filesystem" | |
3893 | if test "$no_cache" != 1; then | |
3894 | echo $ac_cv_use_filesystem >> ${wx_arg_cache_file}.tmp | |
3895 | fi | |
3896 | ||
3897 | if test "$wxUSE_FILESYSTEM" = yes; then | |
698dcdb6 | 3898 | echo "$ac_t""yes" 1>&6 |
24528b0c | 3899 | else |
698dcdb6 | 3900 | echo "$ac_t""no" 1>&6 |
24528b0c | 3901 | fi |
698dcdb6 | 3902 | |
24528b0c | 3903 | |
698dcdb6 | 3904 | echo $ac_n "checking for --enable-fs_inet""... $ac_c" 1>&6 |
edae8572 | 3905 | echo "configure:3906: checking for --enable-fs_inet" >&5 |
10f2d63a VZ |
3906 | no_cache=0 |
3907 | # Check whether --enable-fs_inet or --disable-fs_inet was given. | |
3908 | if test "${enable_fs_inet+set}" = set; then | |
3909 | enableval="$enable_fs_inet" | |
698dcdb6 | 3910 | |
10f2d63a VZ |
3911 | if test "$enableval" = yes; then |
3912 | ac_cv_use_fs_inet='wxUSE_FS_INET=yes' | |
3913 | else | |
3914 | ac_cv_use_fs_inet='wxUSE_FS_INET=no' | |
3915 | fi | |
698dcdb6 | 3916 | |
10f2d63a | 3917 | else |
698dcdb6 | 3918 | |
10f2d63a VZ |
3919 | LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}` |
3920 | if test "x$LINE" != x ; then | |
3921 | eval "DEFAULT_$LINE" | |
3922 | else | |
3923 | no_cache=1 | |
3924 | fi | |
3925 | ||
3926 | ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET | |
698dcdb6 VZ |
3927 | |
3928 | fi | |
10f2d63a VZ |
3929 | |
3930 | ||
3931 | eval "$ac_cv_use_fs_inet" | |
3932 | if test "$no_cache" != 1; then | |
3933 | echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp | |
3934 | fi | |
3935 | ||
3936 | if test "$wxUSE_FS_INET" = yes; then | |
698dcdb6 | 3937 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3938 | else |
698dcdb6 | 3939 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3940 | fi |
698dcdb6 | 3941 | |
10f2d63a | 3942 | |
698dcdb6 | 3943 | echo $ac_n "checking for --enable-fs_zip""... $ac_c" 1>&6 |
edae8572 | 3944 | echo "configure:3945: checking for --enable-fs_zip" >&5 |
10f2d63a VZ |
3945 | no_cache=0 |
3946 | # Check whether --enable-fs_zip or --disable-fs_zip was given. | |
3947 | if test "${enable_fs_zip+set}" = set; then | |
3948 | enableval="$enable_fs_zip" | |
698dcdb6 | 3949 | |
10f2d63a VZ |
3950 | if test "$enableval" = yes; then |
3951 | ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes' | |
3952 | else | |
3953 | ac_cv_use_fs_zip='wxUSE_FS_ZIP=no' | |
3954 | fi | |
698dcdb6 | 3955 | |
10f2d63a | 3956 | else |
698dcdb6 | 3957 | |
10f2d63a VZ |
3958 | LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}` |
3959 | if test "x$LINE" != x ; then | |
3960 | eval "DEFAULT_$LINE" | |
3961 | else | |
3962 | no_cache=1 | |
3963 | fi | |
3964 | ||
3965 | ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP | |
698dcdb6 VZ |
3966 | |
3967 | fi | |
10f2d63a VZ |
3968 | |
3969 | ||
3970 | eval "$ac_cv_use_fs_zip" | |
3971 | if test "$no_cache" != 1; then | |
3972 | echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp | |
3973 | fi | |
3974 | ||
3975 | if test "$wxUSE_FS_ZIP" = yes; then | |
698dcdb6 | 3976 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3977 | else |
698dcdb6 | 3978 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3979 | fi |
698dcdb6 | 3980 | |
10f2d63a | 3981 | |
698dcdb6 | 3982 | echo $ac_n "checking for --enable-zipstream""... $ac_c" 1>&6 |
edae8572 | 3983 | echo "configure:3984: checking for --enable-zipstream" >&5 |
10f2d63a VZ |
3984 | no_cache=0 |
3985 | # Check whether --enable-zipstream or --disable-zipstream was given. | |
3986 | if test "${enable_zipstream+set}" = set; then | |
3987 | enableval="$enable_zipstream" | |
698dcdb6 | 3988 | |
10f2d63a VZ |
3989 | if test "$enableval" = yes; then |
3990 | ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes' | |
3991 | else | |
3992 | ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no' | |
3993 | fi | |
698dcdb6 | 3994 | |
10f2d63a | 3995 | else |
698dcdb6 | 3996 | |
10f2d63a VZ |
3997 | LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}` |
3998 | if test "x$LINE" != x ; then | |
3999 | eval "DEFAULT_$LINE" | |
4000 | else | |
4001 | no_cache=1 | |
4002 | fi | |
4003 | ||
4004 | ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM | |
698dcdb6 VZ |
4005 | |
4006 | fi | |
10f2d63a VZ |
4007 | |
4008 | ||
4009 | eval "$ac_cv_use_zipstream" | |
4010 | if test "$no_cache" != 1; then | |
4011 | echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp | |
4012 | fi | |
4013 | ||
4014 | if test "$wxUSE_ZIPSTREAM" = yes; then | |
698dcdb6 | 4015 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4016 | else |
698dcdb6 | 4017 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4018 | fi |
698dcdb6 | 4019 | |
10f2d63a | 4020 | |
698dcdb6 VZ |
4021 | |
4022 | echo $ac_n "checking for --enable-catch_segvs""... $ac_c" 1>&6 | |
edae8572 | 4023 | echo "configure:4024: checking for --enable-catch_segvs" >&5 |
eb4efbdc VZ |
4024 | no_cache=0 |
4025 | # Check whether --enable-catch_segvs or --disable-catch_segvs was given. | |
4026 | if test "${enable_catch_segvs+set}" = set; then | |
4027 | enableval="$enable_catch_segvs" | |
698dcdb6 | 4028 | |
eb4efbdc VZ |
4029 | if test "$enableval" = yes; then |
4030 | ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes' | |
4031 | else | |
4032 | ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no' | |
4033 | fi | |
698dcdb6 | 4034 | |
eb4efbdc | 4035 | else |
698dcdb6 | 4036 | |
eb4efbdc VZ |
4037 | LINE=`grep "wxUSE_ON_FATAL_EXCEPTION" ${wx_arg_cache_file}` |
4038 | if test "x$LINE" != x ; then | |
4039 | eval "DEFAULT_$LINE" | |
4040 | else | |
4041 | no_cache=1 | |
4042 | fi | |
4043 | ||
4044 | ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION='$DEFAULT_wxUSE_ON_FATAL_EXCEPTION | |
698dcdb6 VZ |
4045 | |
4046 | fi | |
eb4efbdc VZ |
4047 | |
4048 | ||
4049 | eval "$ac_cv_use_catch_segvs" | |
4050 | if test "$no_cache" != 1; then | |
4051 | echo $ac_cv_use_catch_segvs >> ${wx_arg_cache_file}.tmp | |
4052 | fi | |
4053 | ||
4054 | if test "$wxUSE_ON_FATAL_EXCEPTION" = yes; then | |
698dcdb6 | 4055 | echo "$ac_t""yes" 1>&6 |
eb4efbdc | 4056 | else |
698dcdb6 | 4057 | echo "$ac_t""no" 1>&6 |
eb4efbdc | 4058 | fi |
698dcdb6 | 4059 | |
eb4efbdc | 4060 | |
698dcdb6 | 4061 | echo $ac_n "checking for --enable-snglinst""... $ac_c" 1>&6 |
edae8572 | 4062 | echo "configure:4063: checking for --enable-snglinst" >&5 |
4f3c5f06 VZ |
4063 | no_cache=0 |
4064 | # Check whether --enable-snglinst or --disable-snglinst was given. | |
4065 | if test "${enable_snglinst+set}" = set; then | |
4066 | enableval="$enable_snglinst" | |
698dcdb6 | 4067 | |
4f3c5f06 VZ |
4068 | if test "$enableval" = yes; then |
4069 | ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=yes' | |
4070 | else | |
4071 | ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=no' | |
4072 | fi | |
698dcdb6 | 4073 | |
4f3c5f06 | 4074 | else |
698dcdb6 | 4075 | |
4f3c5f06 VZ |
4076 | LINE=`grep "wxUSE_SNGLINST_CHECKER" ${wx_arg_cache_file}` |
4077 | if test "x$LINE" != x ; then | |
4078 | eval "DEFAULT_$LINE" | |
4079 | else | |
4080 | no_cache=1 | |
4081 | fi | |
4082 | ||
4083 | ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER='$DEFAULT_wxUSE_SNGLINST_CHECKER | |
698dcdb6 VZ |
4084 | |
4085 | fi | |
4f3c5f06 VZ |
4086 | |
4087 | ||
4088 | eval "$ac_cv_use_snglinst" | |
4089 | if test "$no_cache" != 1; then | |
4090 | echo $ac_cv_use_snglinst >> ${wx_arg_cache_file}.tmp | |
4091 | fi | |
4092 | ||
4093 | if test "$wxUSE_SNGLINST_CHECKER" = yes; then | |
698dcdb6 | 4094 | echo "$ac_t""yes" 1>&6 |
4f3c5f06 | 4095 | else |
698dcdb6 | 4096 | echo "$ac_t""no" 1>&6 |
4f3c5f06 | 4097 | fi |
698dcdb6 VZ |
4098 | |
4099 | ||
eb4efbdc | 4100 | |
1e6feb95 | 4101 | echo $ac_n "checking for --enable-mimetype""... $ac_c" 1>&6 |
edae8572 | 4102 | echo "configure:4103: checking for --enable-mimetype" >&5 |
1e6feb95 VZ |
4103 | no_cache=0 |
4104 | # Check whether --enable-mimetype or --disable-mimetype was given. | |
4105 | if test "${enable_mimetype+set}" = set; then | |
4106 | enableval="$enable_mimetype" | |
4107 | ||
4108 | if test "$enableval" = yes; then | |
4109 | ac_cv_use_mimetype='wxUSE_MIMETYPE=yes' | |
4110 | else | |
4111 | ac_cv_use_mimetype='wxUSE_MIMETYPE=no' | |
4112 | fi | |
4113 | ||
4114 | else | |
4115 | ||
4116 | LINE=`grep "wxUSE_MIMETYPE" ${wx_arg_cache_file}` | |
4117 | if test "x$LINE" != x ; then | |
4118 | eval "DEFAULT_$LINE" | |
4119 | else | |
4120 | no_cache=1 | |
4121 | fi | |
4122 | ||
4123 | ac_cv_use_mimetype='wxUSE_MIMETYPE='$DEFAULT_wxUSE_MIMETYPE | |
4124 | ||
4125 | fi | |
4126 | ||
4127 | ||
4128 | eval "$ac_cv_use_mimetype" | |
4129 | if test "$no_cache" != 1; then | |
4130 | echo $ac_cv_use_mimetype >> ${wx_arg_cache_file}.tmp | |
4131 | fi | |
4132 | ||
4133 | if test "$wxUSE_MIMETYPE" = yes; then | |
4134 | echo "$ac_t""yes" 1>&6 | |
4135 | else | |
4136 | echo "$ac_t""no" 1>&6 | |
4137 | fi | |
4138 | ||
4139 | ||
3e44f09d | 4140 | echo $ac_n "checking for --enable-system_options""... $ac_c" 1>&6 |
edae8572 | 4141 | echo "configure:4142: checking for --enable-system_options" >&5 |
3e44f09d VZ |
4142 | no_cache=0 |
4143 | # Check whether --enable-system_options or --disable-system_options was given. | |
4144 | if test "${enable_system_options+set}" = set; then | |
4145 | enableval="$enable_system_options" | |
4146 | ||
4147 | if test "$enableval" = yes; then | |
4148 | ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=yes' | |
4149 | else | |
4150 | ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=no' | |
4151 | fi | |
4152 | ||
4153 | else | |
4154 | ||
4155 | LINE=`grep "wxUSE_SYSTEM_OPTIONS" ${wx_arg_cache_file}` | |
4156 | if test "x$LINE" != x ; then | |
4157 | eval "DEFAULT_$LINE" | |
4158 | else | |
4159 | no_cache=1 | |
4160 | fi | |
4161 | ||
4162 | ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS='$DEFAULT_wxUSE_SYSTEM_OPTIONS | |
4163 | ||
4164 | fi | |
4165 | ||
4166 | ||
4167 | eval "$ac_cv_use_system_options" | |
4168 | if test "$no_cache" != 1; then | |
4169 | echo $ac_cv_use_system_options >> ${wx_arg_cache_file}.tmp | |
4170 | fi | |
4171 | ||
4172 | if test "$wxUSE_SYSTEM_OPTIONS" = yes; then | |
4173 | echo "$ac_t""yes" 1>&6 | |
4174 | else | |
4175 | echo "$ac_t""no" 1>&6 | |
4176 | fi | |
4177 | ||
4178 | ||
1e6feb95 | 4179 | |
698dcdb6 VZ |
4180 | |
4181 | echo $ac_n "checking for --enable-threads""... $ac_c" 1>&6 | |
edae8572 | 4182 | echo "configure:4183: checking for --enable-threads" >&5 |
10f2d63a VZ |
4183 | no_cache=0 |
4184 | # Check whether --enable-threads or --disable-threads was given. | |
4185 | if test "${enable_threads+set}" = set; then | |
4186 | enableval="$enable_threads" | |
698dcdb6 | 4187 | |
10f2d63a VZ |
4188 | if test "$enableval" = yes; then |
4189 | ac_cv_use_threads='wxUSE_THREADS=yes' | |
4190 | else | |
4191 | ac_cv_use_threads='wxUSE_THREADS=no' | |
4192 | fi | |
698dcdb6 | 4193 | |
10f2d63a | 4194 | else |
698dcdb6 | 4195 | |
10f2d63a VZ |
4196 | LINE=`grep "wxUSE_THREADS" ${wx_arg_cache_file}` |
4197 | if test "x$LINE" != x ; then | |
4198 | eval "DEFAULT_$LINE" | |
4199 | else | |
4200 | no_cache=1 | |
4201 | fi | |
4202 | ||
4203 | ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS | |
698dcdb6 VZ |
4204 | |
4205 | fi | |
10f2d63a VZ |
4206 | |
4207 | ||
4208 | eval "$ac_cv_use_threads" | |
4209 | if test "$no_cache" != 1; then | |
4210 | echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp | |
4211 | fi | |
4212 | ||
4213 | if test "$wxUSE_THREADS" = yes; then | |
698dcdb6 | 4214 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4215 | else |
698dcdb6 | 4216 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4217 | fi |
698dcdb6 | 4218 | |
10f2d63a | 4219 | |
698dcdb6 | 4220 | echo $ac_n "checking for --enable-serial""... $ac_c" 1>&6 |
edae8572 | 4221 | echo "configure:4222: checking for --enable-serial" >&5 |
10f2d63a VZ |
4222 | no_cache=0 |
4223 | # Check whether --enable-serial or --disable-serial was given. | |
4224 | if test "${enable_serial+set}" = set; then | |
4225 | enableval="$enable_serial" | |
698dcdb6 | 4226 | |
10f2d63a VZ |
4227 | if test "$enableval" = yes; then |
4228 | ac_cv_use_serial='wxUSE_SERIAL=yes' | |
4229 | else | |
4230 | ac_cv_use_serial='wxUSE_SERIAL=no' | |
4231 | fi | |
698dcdb6 | 4232 | |
10f2d63a | 4233 | else |
698dcdb6 | 4234 | |
10f2d63a VZ |
4235 | LINE=`grep "wxUSE_SERIAL" ${wx_arg_cache_file}` |
4236 | if test "x$LINE" != x ; then | |
4237 | eval "DEFAULT_$LINE" | |
4238 | else | |
4239 | no_cache=1 | |
4240 | fi | |
4241 | ||
4242 | ac_cv_use_serial='wxUSE_SERIAL='$DEFAULT_wxUSE_SERIAL | |
698dcdb6 VZ |
4243 | |
4244 | fi | |
10f2d63a VZ |
4245 | |
4246 | ||
4247 | eval "$ac_cv_use_serial" | |
4248 | if test "$no_cache" != 1; then | |
4249 | echo $ac_cv_use_serial >> ${wx_arg_cache_file}.tmp | |
4250 | fi | |
4251 | ||
4252 | if test "$wxUSE_SERIAL" = yes; then | |
698dcdb6 | 4253 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4254 | else |
698dcdb6 | 4255 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4256 | fi |
698dcdb6 | 4257 | |
10f2d63a | 4258 | |
b12915c1 VZ |
4259 | if test "$wxUSE_GUI" = "yes"; then |
4260 | ||
698dcdb6 VZ |
4261 | |
4262 | ||
4263 | echo $ac_n "checking for --enable-docview""... $ac_c" 1>&6 | |
edae8572 | 4264 | echo "configure:4265: checking for --enable-docview" >&5 |
10f2d63a VZ |
4265 | no_cache=0 |
4266 | # Check whether --enable-docview or --disable-docview was given. | |
4267 | if test "${enable_docview+set}" = set; then | |
4268 | enableval="$enable_docview" | |
698dcdb6 | 4269 | |
10f2d63a VZ |
4270 | if test "$enableval" = yes; then |
4271 | ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes' | |
4272 | else | |
4273 | ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no' | |
4274 | fi | |
698dcdb6 | 4275 | |
10f2d63a | 4276 | else |
698dcdb6 | 4277 | |
10f2d63a VZ |
4278 | LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}` |
4279 | if test "x$LINE" != x ; then | |
4280 | eval "DEFAULT_$LINE" | |
4281 | else | |
4282 | no_cache=1 | |
4283 | fi | |
4284 | ||
4285 | ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE | |
698dcdb6 VZ |
4286 | |
4287 | fi | |
10f2d63a VZ |
4288 | |
4289 | ||
4290 | eval "$ac_cv_use_docview" | |
4291 | if test "$no_cache" != 1; then | |
4292 | echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp | |
4293 | fi | |
4294 | ||
4295 | if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then | |
698dcdb6 | 4296 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4297 | else |
698dcdb6 | 4298 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4299 | fi |
698dcdb6 | 4300 | |
10f2d63a | 4301 | |
698dcdb6 | 4302 | echo $ac_n "checking for --enable-help""... $ac_c" 1>&6 |
edae8572 | 4303 | echo "configure:4304: checking for --enable-help" >&5 |
10f2d63a VZ |
4304 | no_cache=0 |
4305 | # Check whether --enable-help or --disable-help was given. | |
4306 | if test "${enable_help+set}" = set; then | |
4307 | enableval="$enable_help" | |
698dcdb6 | 4308 | |
10f2d63a VZ |
4309 | if test "$enableval" = yes; then |
4310 | ac_cv_use_help='wxUSE_HELP=yes' | |
4311 | else | |
4312 | ac_cv_use_help='wxUSE_HELP=no' | |
4313 | fi | |
698dcdb6 | 4314 | |
10f2d63a | 4315 | else |
698dcdb6 | 4316 | |
10f2d63a VZ |
4317 | LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}` |
4318 | if test "x$LINE" != x ; then | |
4319 | eval "DEFAULT_$LINE" | |
4320 | else | |
4321 | no_cache=1 | |
4322 | fi | |
4323 | ||
4324 | ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP | |
698dcdb6 VZ |
4325 | |
4326 | fi | |
10f2d63a VZ |
4327 | |
4328 | ||
4329 | eval "$ac_cv_use_help" | |
4330 | if test "$no_cache" != 1; then | |
4331 | echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp | |
4332 | fi | |
4333 | ||
4334 | if test "$wxUSE_HELP" = yes; then | |
698dcdb6 | 4335 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4336 | else |
698dcdb6 | 4337 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4338 | fi |
698dcdb6 | 4339 | |
10f2d63a | 4340 | |
29fd3c0c | 4341 | echo $ac_n "checking for --enable-mshtmlhelp""... $ac_c" 1>&6 |
edae8572 | 4342 | echo "configure:4343: checking for --enable-mshtmlhelp" >&5 |
29fd3c0c VS |
4343 | no_cache=0 |
4344 | # Check whether --enable-mshtmlhelp or --disable-mshtmlhelp was given. | |
4345 | if test "${enable_mshtmlhelp+set}" = set; then | |
4346 | enableval="$enable_mshtmlhelp" | |
4347 | ||
4348 | if test "$enableval" = yes; then | |
4349 | ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=yes' | |
4350 | else | |
4351 | ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=no' | |
4352 | fi | |
4353 | ||
4354 | else | |
4355 | ||
4356 | LINE=`grep "wxUSE_MS_HTML_HELP" ${wx_arg_cache_file}` | |
4357 | if test "x$LINE" != x ; then | |
4358 | eval "DEFAULT_$LINE" | |
4359 | else | |
4360 | no_cache=1 | |
4361 | fi | |
4362 | ||
4363 | ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP='$DEFAULT_wxUSE_MS_HTML_HELP | |
4364 | ||
4365 | fi | |
4366 | ||
4367 | ||
4368 | eval "$ac_cv_use_mshtmlhelp" | |
4369 | if test "$no_cache" != 1; then | |
4370 | echo $ac_cv_use_mshtmlhelp >> ${wx_arg_cache_file}.tmp | |
4371 | fi | |
4372 | ||
4373 | if test "$wxUSE_MS_HTML_HELP" = yes; then | |
4374 | echo "$ac_t""yes" 1>&6 | |
4375 | else | |
4376 | echo "$ac_t""no" 1>&6 | |
4377 | fi | |
4378 | ||
4379 | ||
3379ed37 | 4380 | echo $ac_n "checking for --enable-html""... $ac_c" 1>&6 |
edae8572 | 4381 | echo "configure:4382: checking for --enable-html" >&5 |
3379ed37 VZ |
4382 | no_cache=0 |
4383 | # Check whether --enable-html or --disable-html was given. | |
4384 | if test "${enable_html+set}" = set; then | |
4385 | enableval="$enable_html" | |
4386 | ||
4387 | if test "$enableval" = yes; then | |
4388 | ac_cv_use_html='wxUSE_HTML=yes' | |
4389 | else | |
4390 | ac_cv_use_html='wxUSE_HTML=no' | |
4391 | fi | |
4392 | ||
4393 | else | |
4394 | ||
4395 | LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}` | |
4396 | if test "x$LINE" != x ; then | |
4397 | eval "DEFAULT_$LINE" | |
4398 | else | |
4399 | no_cache=1 | |
4400 | fi | |
4401 | ||
4402 | ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML | |
4403 | ||
4404 | fi | |
4405 | ||
4406 | ||
4407 | eval "$ac_cv_use_html" | |
4408 | if test "$no_cache" != 1; then | |
4409 | echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp | |
4410 | fi | |
4411 | ||
4412 | if test "$wxUSE_HTML" = yes; then | |
4413 | echo "$ac_t""yes" 1>&6 | |
4414 | else | |
4415 | echo "$ac_t""no" 1>&6 | |
4416 | fi | |
4417 | ||
4418 | ||
4419 | echo $ac_n "checking for --enable-htmlhelp""... $ac_c" 1>&6 | |
edae8572 | 4420 | echo "configure:4421: checking for --enable-htmlhelp" >&5 |
3379ed37 VZ |
4421 | no_cache=0 |
4422 | # Check whether --enable-htmlhelp or --disable-htmlhelp was given. | |
4423 | if test "${enable_htmlhelp+set}" = set; then | |
4424 | enableval="$enable_htmlhelp" | |
4425 | ||
4426 | if test "$enableval" = yes; then | |
4427 | ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=yes' | |
4428 | else | |
4429 | ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=no' | |
4430 | fi | |
4431 | ||
4432 | else | |
4433 | ||
4434 | LINE=`grep "wxUSE_WXHTML_HELP" ${wx_arg_cache_file}` | |
4435 | if test "x$LINE" != x ; then | |
4436 | eval "DEFAULT_$LINE" | |
4437 | else | |
4438 | no_cache=1 | |
4439 | fi | |
4440 | ||
4441 | ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP='$DEFAULT_wxUSE_WXHTML_HELP | |
4442 | ||
4443 | fi | |
4444 | ||
4445 | ||
4446 | eval "$ac_cv_use_htmlhelp" | |
4447 | if test "$no_cache" != 1; then | |
4448 | echo $ac_cv_use_htmlhelp >> ${wx_arg_cache_file}.tmp | |
4449 | fi | |
4450 | ||
4451 | if test "$wxUSE_WXHTML_HELP" = yes; then | |
4452 | echo "$ac_t""yes" 1>&6 | |
4453 | else | |
4454 | echo "$ac_t""no" 1>&6 | |
4455 | fi | |
4456 | ||
4457 | ||
698dcdb6 | 4458 | echo $ac_n "checking for --enable-constraints""... $ac_c" 1>&6 |
edae8572 | 4459 | echo "configure:4460: checking for --enable-constraints" >&5 |
10f2d63a VZ |
4460 | no_cache=0 |
4461 | # Check whether --enable-constraints or --disable-constraints was given. | |
4462 | if test "${enable_constraints+set}" = set; then | |
4463 | enableval="$enable_constraints" | |
698dcdb6 | 4464 | |
10f2d63a VZ |
4465 | if test "$enableval" = yes; then |
4466 | ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes' | |
4467 | else | |
4468 | ac_cv_use_constraints='wxUSE_CONSTRAINTS=no' | |
4469 | fi | |
698dcdb6 | 4470 | |
10f2d63a | 4471 | else |
698dcdb6 | 4472 | |
10f2d63a VZ |
4473 | LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}` |
4474 | if test "x$LINE" != x ; then | |
4475 | eval "DEFAULT_$LINE" | |
4476 | else | |
4477 | no_cache=1 | |
4478 | fi | |
4479 | ||
4480 | ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS | |
698dcdb6 VZ |
4481 | |
4482 | fi | |
10f2d63a VZ |
4483 | |
4484 | ||
4485 | eval "$ac_cv_use_constraints" | |
4486 | if test "$no_cache" != 1; then | |
4487 | echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp | |
4488 | fi | |
4489 | ||
4490 | if test "$wxUSE_CONSTRAINTS" = yes; then | |
698dcdb6 | 4491 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4492 | else |
698dcdb6 | 4493 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4494 | fi |
698dcdb6 | 4495 | |
10f2d63a | 4496 | |
698dcdb6 | 4497 | echo $ac_n "checking for --enable-printarch""... $ac_c" 1>&6 |
edae8572 | 4498 | echo "configure:4499: checking for --enable-printarch" >&5 |
10f2d63a VZ |
4499 | no_cache=0 |
4500 | # Check whether --enable-printarch or --disable-printarch was given. | |
4501 | if test "${enable_printarch+set}" = set; then | |
4502 | enableval="$enable_printarch" | |
698dcdb6 | 4503 | |
10f2d63a VZ |
4504 | if test "$enableval" = yes; then |
4505 | ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes' | |
4506 | else | |
4507 | ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no' | |
4508 | fi | |
698dcdb6 | 4509 | |
10f2d63a | 4510 | else |
698dcdb6 | 4511 | |
10f2d63a VZ |
4512 | LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}` |
4513 | if test "x$LINE" != x ; then | |
4514 | eval "DEFAULT_$LINE" | |
4515 | else | |
4516 | no_cache=1 | |
4517 | fi | |
4518 | ||
4519 | ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE | |
698dcdb6 VZ |
4520 | |
4521 | fi | |
10f2d63a VZ |
4522 | |
4523 | ||
4524 | eval "$ac_cv_use_printarch" | |
4525 | if test "$no_cache" != 1; then | |
4526 | echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp | |
4527 | fi | |
4528 | ||
4529 | if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then | |
698dcdb6 | 4530 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4531 | else |
698dcdb6 | 4532 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4533 | fi |
698dcdb6 | 4534 | |
10f2d63a | 4535 | |
698dcdb6 | 4536 | echo $ac_n "checking for --enable-mdi""... $ac_c" 1>&6 |
edae8572 | 4537 | echo "configure:4538: checking for --enable-mdi" >&5 |
10f2d63a VZ |
4538 | no_cache=0 |
4539 | # Check whether --enable-mdi or --disable-mdi was given. | |
4540 | if test "${enable_mdi+set}" = set; then | |
4541 | enableval="$enable_mdi" | |
698dcdb6 | 4542 | |
10f2d63a VZ |
4543 | if test "$enableval" = yes; then |
4544 | ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=yes' | |
4545 | else | |
4546 | ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=no' | |
4547 | fi | |
698dcdb6 | 4548 | |
10f2d63a | 4549 | else |
698dcdb6 | 4550 | |
10f2d63a VZ |
4551 | LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}` |
4552 | if test "x$LINE" != x ; then | |
4553 | eval "DEFAULT_$LINE" | |
4554 | else | |
4555 | no_cache=1 | |
4556 | fi | |
4557 | ||
4558 | ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE | |
698dcdb6 VZ |
4559 | |
4560 | fi | |
10f2d63a VZ |
4561 | |
4562 | ||
4563 | eval "$ac_cv_use_mdi" | |
4564 | if test "$no_cache" != 1; then | |
4565 | echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp | |
4566 | fi | |
4567 | ||
4568 | if test "$wxUSE_MDI_ARCHITECTURE" = yes; then | |
698dcdb6 | 4569 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4570 | else |
698dcdb6 | 4571 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4572 | fi |
698dcdb6 VZ |
4573 | |
4574 | ||
1e6feb95 | 4575 | echo $ac_n "checking for --enable-loggui""... $ac_c" 1>&6 |
edae8572 | 4576 | echo "configure:4577: checking for --enable-loggui" >&5 |
1e6feb95 VZ |
4577 | no_cache=0 |
4578 | # Check whether --enable-loggui or --disable-loggui was given. | |
4579 | if test "${enable_loggui+set}" = set; then | |
4580 | enableval="$enable_loggui" | |
4581 | ||
4582 | if test "$enableval" = yes; then | |
4583 | ac_cv_use_loggui='wxUSE_LOGGUI=yes' | |
4584 | else | |
4585 | ac_cv_use_loggui='wxUSE_LOGGUI=no' | |
4586 | fi | |
4587 | ||
4588 | else | |
4589 | ||
4590 | LINE=`grep "wxUSE_LOGGUI" ${wx_arg_cache_file}` | |
4591 | if test "x$LINE" != x ; then | |
4592 | eval "DEFAULT_$LINE" | |
4593 | else | |
4594 | no_cache=1 | |
4595 | fi | |
4596 | ||
4597 | ac_cv_use_loggui='wxUSE_LOGGUI='$DEFAULT_wxUSE_LOGGUI | |
4598 | ||
4599 | fi | |
4600 | ||
4601 | ||
4602 | eval "$ac_cv_use_loggui" | |
4603 | if test "$no_cache" != 1; then | |
4604 | echo $ac_cv_use_loggui >> ${wx_arg_cache_file}.tmp | |
4605 | fi | |
4606 | ||
4607 | if test "$wxUSE_LOGGUI" = yes; then | |
4608 | echo "$ac_t""yes" 1>&6 | |
4609 | else | |
4610 | echo "$ac_t""no" 1>&6 | |
4611 | fi | |
4612 | ||
4613 | ||
4614 | echo $ac_n "checking for --enable-logwin""... $ac_c" 1>&6 | |
edae8572 | 4615 | echo "configure:4616: checking for --enable-logwin" >&5 |
1e6feb95 VZ |
4616 | no_cache=0 |
4617 | # Check whether --enable-logwin or --disable-logwin was given. | |
4618 | if test "${enable_logwin+set}" = set; then | |
4619 | enableval="$enable_logwin" | |
4620 | ||
4621 | if test "$enableval" = yes; then | |
4622 | ac_cv_use_logwin='wxUSE_LOGWINDOW=yes' | |
4623 | else | |
4624 | ac_cv_use_logwin='wxUSE_LOGWINDOW=no' | |
4625 | fi | |
4626 | ||
4627 | else | |
4628 | ||
4629 | LINE=`grep "wxUSE_LOGWINDOW" ${wx_arg_cache_file}` | |
4630 | if test "x$LINE" != x ; then | |
4631 | eval "DEFAULT_$LINE" | |
4632 | else | |
4633 | no_cache=1 | |
4634 | fi | |
4635 | ||
4636 | ac_cv_use_logwin='wxUSE_LOGWINDOW='$DEFAULT_wxUSE_LOGWINDOW | |
4637 | ||
4638 | fi | |
4639 | ||
4640 | ||
4641 | eval "$ac_cv_use_logwin" | |
4642 | if test "$no_cache" != 1; then | |
4643 | echo $ac_cv_use_logwin >> ${wx_arg_cache_file}.tmp | |
4644 | fi | |
4645 | ||
4646 | if test "$wxUSE_LOGWINDOW" = yes; then | |
4647 | echo "$ac_t""yes" 1>&6 | |
4648 | else | |
4649 | echo "$ac_t""no" 1>&6 | |
4650 | fi | |
4651 | ||
4652 | ||
10f2d63a | 4653 | |
698dcdb6 | 4654 | echo $ac_n "checking for --enable-postscript""... $ac_c" 1>&6 |
edae8572 | 4655 | echo "configure:4656: checking for --enable-postscript" >&5 |
10f2d63a VZ |
4656 | no_cache=0 |
4657 | # Check whether --enable-postscript or --disable-postscript was given. | |
4658 | if test "${enable_postscript+set}" = set; then | |
4659 | enableval="$enable_postscript" | |
698dcdb6 | 4660 | |
10f2d63a VZ |
4661 | if test "$enableval" = yes; then |
4662 | ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes' | |
4663 | else | |
4664 | ac_cv_use_postscript='wxUSE_POSTSCRIPT=no' | |
4665 | fi | |
698dcdb6 | 4666 | |
10f2d63a | 4667 | else |
698dcdb6 | 4668 | |
10f2d63a VZ |
4669 | LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}` |
4670 | if test "x$LINE" != x ; then | |
4671 | eval "DEFAULT_$LINE" | |
4672 | else | |
4673 | no_cache=1 | |
4674 | fi | |
4675 | ||
4676 | ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT | |
698dcdb6 VZ |
4677 | |
4678 | fi | |
10f2d63a VZ |
4679 | |
4680 | ||
4681 | eval "$ac_cv_use_postscript" | |
4682 | if test "$no_cache" != 1; then | |
4683 | echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp | |
4684 | fi | |
4685 | ||
4686 | if test "$wxUSE_POSTSCRIPT" = yes; then | |
698dcdb6 | 4687 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4688 | else |
698dcdb6 | 4689 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4690 | fi |
698dcdb6 VZ |
4691 | |
4692 | ||
4693 | ||
10f2d63a | 4694 | |
1e6feb95 | 4695 | |
698dcdb6 | 4696 | echo $ac_n "checking for --enable-prologio""... $ac_c" 1>&6 |
edae8572 | 4697 | echo "configure:4698: checking for --enable-prologio" >&5 |
10f2d63a VZ |
4698 | no_cache=0 |
4699 | # Check whether --enable-prologio or --disable-prologio was given. | |
4700 | if test "${enable_prologio+set}" = set; then | |
4701 | enableval="$enable_prologio" | |
698dcdb6 | 4702 | |
10f2d63a VZ |
4703 | if test "$enableval" = yes; then |
4704 | ac_cv_use_prologio='wxUSE_PROLOGIO=yes' | |
4705 | else | |
4706 | ac_cv_use_prologio='wxUSE_PROLOGIO=no' | |
4707 | fi | |
698dcdb6 | 4708 | |
10f2d63a | 4709 | else |
698dcdb6 | 4710 | |
10f2d63a VZ |
4711 | LINE=`grep "wxUSE_PROLOGIO" ${wx_arg_cache_file}` |
4712 | if test "x$LINE" != x ; then | |
4713 | eval "DEFAULT_$LINE" | |
4714 | else | |
4715 | no_cache=1 | |
4716 | fi | |
4717 | ||
4718 | ac_cv_use_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO | |
698dcdb6 VZ |
4719 | |
4720 | fi | |
10f2d63a VZ |
4721 | |
4722 | ||
4723 | eval "$ac_cv_use_prologio" | |
4724 | if test "$no_cache" != 1; then | |
4725 | echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp | |
4726 | fi | |
4727 | ||
4728 | if test "$wxUSE_PROLOGIO" = yes; then | |
698dcdb6 | 4729 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4730 | else |
698dcdb6 | 4731 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4732 | fi |
698dcdb6 | 4733 | |
10f2d63a | 4734 | |
698dcdb6 | 4735 | echo $ac_n "checking for --enable-resources""... $ac_c" 1>&6 |
edae8572 | 4736 | echo "configure:4737: checking for --enable-resources" >&5 |
10f2d63a VZ |
4737 | no_cache=0 |
4738 | # Check whether --enable-resources or --disable-resources was given. | |
4739 | if test "${enable_resources+set}" = set; then | |
4740 | enableval="$enable_resources" | |
698dcdb6 | 4741 | |
10f2d63a VZ |
4742 | if test "$enableval" = yes; then |
4743 | ac_cv_use_resources='wxUSE_RESOURCES=yes' | |
4744 | else | |
4745 | ac_cv_use_resources='wxUSE_RESOURCES=no' | |
4746 | fi | |
698dcdb6 | 4747 | |
10f2d63a | 4748 | else |
698dcdb6 | 4749 | |
10f2d63a VZ |
4750 | LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}` |
4751 | if test "x$LINE" != x ; then | |
4752 | eval "DEFAULT_$LINE" | |
4753 | else | |
4754 | no_cache=1 | |
4755 | fi | |
4756 | ||
4757 | ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES | |
698dcdb6 VZ |
4758 | |
4759 | fi | |
10f2d63a VZ |
4760 | |
4761 | ||
4762 | eval "$ac_cv_use_resources" | |
4763 | if test "$no_cache" != 1; then | |
4764 | echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp | |
4765 | fi | |
4766 | ||
4767 | if test "$wxUSE_RESOURCES" = yes; then | |
698dcdb6 | 4768 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4769 | else |
698dcdb6 | 4770 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4771 | fi |
698dcdb6 | 4772 | |
10f2d63a | 4773 | |
698dcdb6 VZ |
4774 | |
4775 | echo $ac_n "checking for --enable-xresources""... $ac_c" 1>&6 | |
edae8572 | 4776 | echo "configure:4777: checking for --enable-xresources" >&5 |
10f2d63a VZ |
4777 | no_cache=0 |
4778 | # Check whether --enable-xresources or --disable-xresources was given. | |
4779 | if test "${enable_xresources+set}" = set; then | |
4780 | enableval="$enable_xresources" | |
698dcdb6 | 4781 | |
10f2d63a VZ |
4782 | if test "$enableval" = yes; then |
4783 | ac_cv_use_xresources='wxUSE_X_RESOURCES=yes' | |
4784 | else | |
4785 | ac_cv_use_xresources='wxUSE_X_RESOURCES=no' | |
4786 | fi | |
698dcdb6 | 4787 | |
10f2d63a | 4788 | else |
698dcdb6 | 4789 | |
10f2d63a VZ |
4790 | LINE=`grep "wxUSE_X_RESOURCES" ${wx_arg_cache_file}` |
4791 | if test "x$LINE" != x ; then | |
4792 | eval "DEFAULT_$LINE" | |
4793 | else | |
4794 | no_cache=1 | |
4795 | fi | |
4796 | ||
4797 | ac_cv_use_xresources='wxUSE_X_RESOURCES='$DEFAULT_wxUSE_X_RESOURCES | |
698dcdb6 VZ |
4798 | |
4799 | fi | |
10f2d63a VZ |
4800 | |
4801 | ||
4802 | eval "$ac_cv_use_xresources" | |
4803 | if test "$no_cache" != 1; then | |
4804 | echo $ac_cv_use_xresources >> ${wx_arg_cache_file}.tmp | |
4805 | fi | |
4806 | ||
4807 | if test "$wxUSE_X_RESOURCES" = yes; then | |
698dcdb6 | 4808 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4809 | else |
698dcdb6 | 4810 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4811 | fi |
698dcdb6 VZ |
4812 | |
4813 | ||
10f2d63a | 4814 | |
698dcdb6 VZ |
4815 | |
4816 | echo $ac_n "checking for --enable-clipboard""... $ac_c" 1>&6 | |
edae8572 | 4817 | echo "configure:4818: checking for --enable-clipboard" >&5 |
10f2d63a VZ |
4818 | no_cache=0 |
4819 | # Check whether --enable-clipboard or --disable-clipboard was given. | |
4820 | if test "${enable_clipboard+set}" = set; then | |
4821 | enableval="$enable_clipboard" | |
698dcdb6 | 4822 | |
10f2d63a VZ |
4823 | if test "$enableval" = yes; then |
4824 | ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes' | |
4825 | else | |
4826 | ac_cv_use_clipboard='wxUSE_CLIPBOARD=no' | |
4827 | fi | |
698dcdb6 | 4828 | |
10f2d63a | 4829 | else |
698dcdb6 | 4830 | |
10f2d63a VZ |
4831 | LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}` |
4832 | if test "x$LINE" != x ; then | |
4833 | eval "DEFAULT_$LINE" | |
4834 | else | |
4835 | no_cache=1 | |
4836 | fi | |
4837 | ||
4838 | ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD | |
698dcdb6 VZ |
4839 | |
4840 | fi | |
10f2d63a VZ |
4841 | |
4842 | ||
4843 | eval "$ac_cv_use_clipboard" | |
4844 | if test "$no_cache" != 1; then | |
4845 | echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp | |
4846 | fi | |
4847 | ||
4848 | if test "$wxUSE_CLIPBOARD" = yes; then | |
698dcdb6 | 4849 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4850 | else |
698dcdb6 | 4851 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4852 | fi |
698dcdb6 | 4853 | |
10f2d63a | 4854 | |
698dcdb6 | 4855 | echo $ac_n "checking for --enable-dnd""... $ac_c" 1>&6 |
edae8572 | 4856 | echo "configure:4857: checking for --enable-dnd" >&5 |
10f2d63a VZ |
4857 | no_cache=0 |
4858 | # Check whether --enable-dnd or --disable-dnd was given. | |
4859 | if test "${enable_dnd+set}" = set; then | |
4860 | enableval="$enable_dnd" | |
698dcdb6 | 4861 | |
10f2d63a VZ |
4862 | if test "$enableval" = yes; then |
4863 | ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes' | |
4864 | else | |
4865 | ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no' | |
4866 | fi | |
698dcdb6 | 4867 | |
10f2d63a | 4868 | else |
698dcdb6 | 4869 | |
10f2d63a VZ |
4870 | LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}` |
4871 | if test "x$LINE" != x ; then | |
4872 | eval "DEFAULT_$LINE" | |
4873 | else | |
4874 | no_cache=1 | |
4875 | fi | |
4876 | ||
4877 | ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP | |
698dcdb6 VZ |
4878 | |
4879 | fi | |
10f2d63a VZ |
4880 | |
4881 | ||
4882 | eval "$ac_cv_use_dnd" | |
4883 | if test "$no_cache" != 1; then | |
4884 | echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp | |
4885 | fi | |
4886 | ||
4887 | if test "$wxUSE_DRAG_AND_DROP" = yes; then | |
698dcdb6 | 4888 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4889 | else |
698dcdb6 | 4890 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4891 | fi |
698dcdb6 | 4892 | |
10f2d63a | 4893 | |
698dcdb6 | 4894 | echo $ac_n "checking for --enable-metafile""... $ac_c" 1>&6 |
edae8572 | 4895 | echo "configure:4896: checking for --enable-metafile" >&5 |
b64f0a5f RL |
4896 | no_cache=0 |
4897 | # Check whether --enable-metafile or --disable-metafile was given. | |
4898 | if test "${enable_metafile+set}" = set; then | |
4899 | enableval="$enable_metafile" | |
698dcdb6 | 4900 | |
b64f0a5f RL |
4901 | if test "$enableval" = yes; then |
4902 | ac_cv_use_metafile='wxUSE_METAFILE=yes' | |
4903 | else | |
4904 | ac_cv_use_metafile='wxUSE_METAFILE=no' | |
4905 | fi | |
698dcdb6 | 4906 | |
b64f0a5f | 4907 | else |
698dcdb6 | 4908 | |
b64f0a5f RL |
4909 | LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}` |
4910 | if test "x$LINE" != x ; then | |
4911 | eval "DEFAULT_$LINE" | |
4912 | else | |
4913 | no_cache=1 | |
4914 | fi | |
4915 | ||
4916 | ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE | |
698dcdb6 VZ |
4917 | |
4918 | fi | |
b64f0a5f RL |
4919 | |
4920 | ||
4921 | eval "$ac_cv_use_metafile" | |
4922 | if test "$no_cache" != 1; then | |
4923 | echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp | |
4924 | fi | |
4925 | ||
4926 | if test "$wxUSE_METAFILE" = yes; then | |
698dcdb6 | 4927 | echo "$ac_t""yes" 1>&6 |
b64f0a5f | 4928 | else |
698dcdb6 | 4929 | echo "$ac_t""no" 1>&6 |
b64f0a5f | 4930 | fi |
698dcdb6 VZ |
4931 | |
4932 | ||
10f2d63a | 4933 | |
24176f2c | 4934 | echo $ac_n "checking for --enable-treelayout""... $ac_c" 1>&6 |
edae8572 | 4935 | echo "configure:4936: checking for --enable-treelayout" >&5 |
10f2d63a | 4936 | no_cache=0 |
24176f2c GD |
4937 | # Check whether --enable-treelayout or --disable-treelayout was given. |
4938 | if test "${enable_treelayout+set}" = set; then | |
4939 | enableval="$enable_treelayout" | |
698dcdb6 | 4940 | |
10f2d63a | 4941 | if test "$enableval" = yes; then |
24176f2c | 4942 | ac_cv_use_treelayout='wxUSE_TREELAYOUT=yes' |
10f2d63a | 4943 | else |
24176f2c | 4944 | ac_cv_use_treelayout='wxUSE_TREELAYOUT=no' |
10f2d63a | 4945 | fi |
698dcdb6 | 4946 | |
10f2d63a | 4947 | else |
698dcdb6 | 4948 | |
24176f2c | 4949 | LINE=`grep "wxUSE_TREELAYOUT" ${wx_arg_cache_file}` |
10f2d63a VZ |
4950 | if test "x$LINE" != x ; then |
4951 | eval "DEFAULT_$LINE" | |
4952 | else | |
4953 | no_cache=1 | |
4954 | fi | |
4955 | ||
24176f2c | 4956 | ac_cv_use_treelayout='wxUSE_TREELAYOUT='$DEFAULT_wxUSE_TREELAYOUT |
698dcdb6 VZ |
4957 | |
4958 | fi | |
10f2d63a VZ |
4959 | |
4960 | ||
24176f2c | 4961 | eval "$ac_cv_use_treelayout" |
10f2d63a | 4962 | if test "$no_cache" != 1; then |
24176f2c | 4963 | echo $ac_cv_use_treelayout >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
4964 | fi |
4965 | ||
24176f2c | 4966 | if test "$wxUSE_TREELAYOUT" = yes; then |
698dcdb6 | 4967 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4968 | else |
698dcdb6 | 4969 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4970 | fi |
698dcdb6 | 4971 | |
10f2d63a | 4972 | |
698dcdb6 VZ |
4973 | |
4974 | ||
4975 | echo $ac_n "checking for --enable-controls""... $ac_c" 1>&6 | |
edae8572 | 4976 | echo "configure:4977: checking for --enable-controls" >&5 |
10f2d63a VZ |
4977 | no_cache=0 |
4978 | # Check whether --enable-controls or --disable-controls was given. | |
4979 | if test "${enable_controls+set}" = set; then | |
4980 | enableval="$enable_controls" | |
698dcdb6 | 4981 | |
10f2d63a VZ |
4982 | if test "$enableval" = yes; then |
4983 | ac_cv_use_controls='wxUSE_CONTROLS=yes' | |
4984 | else | |
4985 | ac_cv_use_controls='wxUSE_CONTROLS=no' | |
4986 | fi | |
698dcdb6 | 4987 | |
10f2d63a | 4988 | else |
698dcdb6 | 4989 | |
10f2d63a VZ |
4990 | LINE=`grep "wxUSE_CONTROLS" ${wx_arg_cache_file}` |
4991 | if test "x$LINE" != x ; then | |
4992 | eval "DEFAULT_$LINE" | |
4993 | else | |
4994 | no_cache=1 | |
4995 | fi | |
4996 | ||
4997 | ac_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS | |
698dcdb6 VZ |
4998 | |
4999 | fi | |
10f2d63a VZ |
5000 | |
5001 | ||
5002 | eval "$ac_cv_use_controls" | |
5003 | if test "$no_cache" != 1; then | |
5004 | echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp | |
5005 | fi | |
5006 | ||
5007 | if test "$wxUSE_CONTROLS" = yes; then | |
698dcdb6 | 5008 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5009 | else |
698dcdb6 | 5010 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5011 | fi |
698dcdb6 | 5012 | |
10f2d63a VZ |
5013 | |
5014 | if test "$wxUSE_CONTROLS" = "yes"; then | |
5015 | DEFAULT_wxUSE_ACCEL=yes | |
1e6feb95 VZ |
5016 | DEFAULT_wxUSE_BMPBUTTON=yes |
5017 | DEFAULT_wxUSE_BUTTON=yes | |
5018 | DEFAULT_wxUSE_CALCTRL=no | |
10f2d63a VZ |
5019 | DEFAULT_wxUSE_CARET=yes |
5020 | DEFAULT_wxUSE_COMBOBOX=yes | |
10f2d63a VZ |
5021 | DEFAULT_wxUSE_CHECKBOX=yes |
5022 | DEFAULT_wxUSE_CHECKLISTBOX=yes | |
5023 | DEFAULT_wxUSE_CHOICE=yes | |
5024 | DEFAULT_wxUSE_GAUGE=yes | |
5025 | DEFAULT_wxUSE_GRID=yes | |
cc977e5f | 5026 | DEFAULT_wxUSE_NEW_GRID=yes |
10f2d63a VZ |
5027 | DEFAULT_wxUSE_IMAGLIST=yes |
5028 | DEFAULT_wxUSE_LISTBOX=yes | |
5029 | DEFAULT_wxUSE_LISTCTRL=yes | |
5030 | DEFAULT_wxUSE_NOTEBOOK=yes | |
24176f2c | 5031 | DEFAULT_wxUSE_PROPSHEET=yes |
10f2d63a VZ |
5032 | DEFAULT_wxUSE_RADIOBOX=yes |
5033 | DEFAULT_wxUSE_RADIOBTN=yes | |
5034 | DEFAULT_wxUSE_SASH=yes | |
5035 | DEFAULT_wxUSE_SCROLLBAR=yes | |
5036 | DEFAULT_wxUSE_SLIDER=yes | |
5037 | DEFAULT_wxUSE_SPINBTN=yes | |
56cfaa52 | 5038 | DEFAULT_wxUSE_SPINCTRL=yes |
10f2d63a VZ |
5039 | DEFAULT_wxUSE_SPLITTER=yes |
5040 | DEFAULT_wxUSE_STATBMP=yes | |
5041 | DEFAULT_wxUSE_STATBOX=yes | |
5042 | DEFAULT_wxUSE_STATLINE=yes | |
5043 | DEFAULT_wxUSE_STATUSBAR=yes | |
5044 | DEFAULT_wxUSE_TAB_DIALOG=yes | |
1db8dc4a | 5045 | DEFAULT_wxUSE_TOGGLEBTN=yes |
10f2d63a | 5046 | DEFAULT_wxUSE_TOOLBAR=yes |
360d6699 VZ |
5047 | DEFAULT_wxUSE_TOOLBAR_NATIVE=yes |
5048 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes | |
10f2d63a VZ |
5049 | DEFAULT_wxUSE_TOOLTIPS=yes |
5050 | DEFAULT_wxUSE_TREECTRL=yes | |
9f41d601 | 5051 | DEFAULT_wxUSE_POPUPWIN=yes |
10f2d63a VZ |
5052 | elif test "$wxUSE_CONTROLS" = "no"; then |
5053 | DEFAULT_wxUSE_ACCEL=no | |
1e6feb95 VZ |
5054 | DEFAULT_wxUSE_BMPBUTTON=no |
5055 | DEFAULT_wxUSE_BUTTON=no | |
5056 | DEFAULT_wxUSE_CALCTRL=no | |
10f2d63a VZ |
5057 | DEFAULT_wxUSE_CARET=no |
5058 | DEFAULT_wxUSE_COMBOBOX=no | |
10f2d63a VZ |
5059 | DEFAULT_wxUSE_CHECKBOX=no |
5060 | DEFAULT_wxUSE_CHECKLISTBOX=no | |
5061 | DEFAULT_wxUSE_CHOICE=no | |
5062 | DEFAULT_wxUSE_GAUGE=no | |
5063 | DEFAULT_wxUSE_GRID=no | |
5064 | DEFAULT_wxUSE_NEW_GRID=no | |
5065 | DEFAULT_wxUSE_IMAGLIST=no | |
5066 | DEFAULT_wxUSE_LISTBOX=no | |
5067 | DEFAULT_wxUSE_LISTCTRL=no | |
5068 | DEFAULT_wxUSE_NOTEBOOK=no | |
24176f2c | 5069 | DEFAULT_wxUSE_PROPSHEET=no |
10f2d63a VZ |
5070 | DEFAULT_wxUSE_RADIOBOX=no |
5071 | DEFAULT_wxUSE_RADIOBTN=no | |
5072 | DEFAULT_wxUSE_SASH=no | |
5073 | DEFAULT_wxUSE_SCROLLBAR=no | |
5074 | DEFAULT_wxUSE_SLIDER=no | |
5075 | DEFAULT_wxUSE_SPINBTN=no | |
56cfaa52 | 5076 | DEFAULT_wxUSE_SPINCTRL=no |
10f2d63a VZ |
5077 | DEFAULT_wxUSE_SPLITTER=no |
5078 | DEFAULT_wxUSE_STATBMP=no | |
5079 | DEFAULT_wxUSE_STATBOX=no | |
5080 | DEFAULT_wxUSE_STATLINE=no | |
5081 | DEFAULT_wxUSE_STATUSBAR=no | |
5082 | DEFAULT_wxUSE_TAB_DIALOG=no | |
1db8dc4a | 5083 | DEFAULT_wxUSE_TOGGLEBTN=no |
10f2d63a | 5084 | DEFAULT_wxUSE_TOOLBAR=no |
360d6699 VZ |
5085 | DEFAULT_wxUSE_TOOLBAR_NATIVE=no |
5086 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=no | |
10f2d63a VZ |
5087 | DEFAULT_wxUSE_TOOLTIPS=no |
5088 | DEFAULT_wxUSE_TREECTRL=no | |
9f41d601 | 5089 | DEFAULT_wxUSE_POPUPWIN=no |
10f2d63a VZ |
5090 | fi |
5091 | ||
698dcdb6 VZ |
5092 | |
5093 | echo $ac_n "checking for --enable-accel""... $ac_c" 1>&6 | |
edae8572 | 5094 | echo "configure:5095: checking for --enable-accel" >&5 |
10f2d63a VZ |
5095 | no_cache=0 |
5096 | # Check whether --enable-accel or --disable-accel was given. | |
5097 | if test "${enable_accel+set}" = set; then | |
5098 | enableval="$enable_accel" | |
698dcdb6 | 5099 | |
10f2d63a VZ |
5100 | if test "$enableval" = yes; then |
5101 | ac_cv_use_accel='wxUSE_ACCEL=yes' | |
5102 | else | |
5103 | ac_cv_use_accel='wxUSE_ACCEL=no' | |
5104 | fi | |
698dcdb6 | 5105 | |
10f2d63a | 5106 | else |
698dcdb6 | 5107 | |
10f2d63a VZ |
5108 | LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}` |
5109 | if test "x$LINE" != x ; then | |
5110 | eval "DEFAULT_$LINE" | |
5111 | else | |
5112 | no_cache=1 | |
5113 | fi | |
5114 | ||
5115 | ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL | |
698dcdb6 VZ |
5116 | |
5117 | fi | |
10f2d63a VZ |
5118 | |
5119 | ||
5120 | eval "$ac_cv_use_accel" | |
5121 | if test "$no_cache" != 1; then | |
5122 | echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp | |
5123 | fi | |
5124 | ||
5125 | if test "$wxUSE_ACCEL" = yes; then | |
698dcdb6 | 5126 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5127 | else |
698dcdb6 | 5128 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5129 | fi |
698dcdb6 | 5130 | |
10f2d63a | 5131 | |
1e6feb95 | 5132 | echo $ac_n "checking for --enable-button""... $ac_c" 1>&6 |
edae8572 | 5133 | echo "configure:5134: checking for --enable-button" >&5 |
10f2d63a | 5134 | no_cache=0 |
1e6feb95 VZ |
5135 | # Check whether --enable-button or --disable-button was given. |
5136 | if test "${enable_button+set}" = set; then | |
5137 | enableval="$enable_button" | |
698dcdb6 | 5138 | |
10f2d63a | 5139 | if test "$enableval" = yes; then |
1e6feb95 | 5140 | ac_cv_use_button='wxUSE_BUTTON=yes' |
10f2d63a | 5141 | else |
1e6feb95 | 5142 | ac_cv_use_button='wxUSE_BUTTON=no' |
10f2d63a | 5143 | fi |
698dcdb6 | 5144 | |
10f2d63a | 5145 | else |
698dcdb6 | 5146 | |
1e6feb95 | 5147 | LINE=`grep "wxUSE_BUTTON" ${wx_arg_cache_file}` |
10f2d63a VZ |
5148 | if test "x$LINE" != x ; then |
5149 | eval "DEFAULT_$LINE" | |
5150 | else | |
5151 | no_cache=1 | |
5152 | fi | |
5153 | ||
1e6feb95 | 5154 | ac_cv_use_button='wxUSE_BUTTON='$DEFAULT_wxUSE_BUTTON |
698dcdb6 VZ |
5155 | |
5156 | fi | |
10f2d63a VZ |
5157 | |
5158 | ||
1e6feb95 | 5159 | eval "$ac_cv_use_button" |
10f2d63a | 5160 | if test "$no_cache" != 1; then |
1e6feb95 | 5161 | echo $ac_cv_use_button >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
5162 | fi |
5163 | ||
1e6feb95 | 5164 | if test "$wxUSE_BUTTON" = yes; then |
698dcdb6 | 5165 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5166 | else |
698dcdb6 | 5167 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5168 | fi |
698dcdb6 | 5169 | |
10f2d63a | 5170 | |
698dcdb6 | 5171 | echo $ac_n "checking for --enable-bmpbutton""... $ac_c" 1>&6 |
edae8572 | 5172 | echo "configure:5173: checking for --enable-bmpbutton" >&5 |
10f2d63a VZ |
5173 | no_cache=0 |
5174 | # Check whether --enable-bmpbutton or --disable-bmpbutton was given. | |
5175 | if test "${enable_bmpbutton+set}" = set; then | |
5176 | enableval="$enable_bmpbutton" | |
698dcdb6 | 5177 | |
10f2d63a VZ |
5178 | if test "$enableval" = yes; then |
5179 | ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes' | |
5180 | else | |
5181 | ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no' | |
5182 | fi | |
698dcdb6 | 5183 | |
10f2d63a | 5184 | else |
698dcdb6 | 5185 | |
10f2d63a VZ |
5186 | LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}` |
5187 | if test "x$LINE" != x ; then | |
5188 | eval "DEFAULT_$LINE" | |
5189 | else | |
5190 | no_cache=1 | |
5191 | fi | |
5192 | ||
5193 | ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON | |
698dcdb6 VZ |
5194 | |
5195 | fi | |
10f2d63a VZ |
5196 | |
5197 | ||
5198 | eval "$ac_cv_use_bmpbutton" | |
5199 | if test "$no_cache" != 1; then | |
5200 | echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp | |
5201 | fi | |
5202 | ||
5203 | if test "$wxUSE_BMPBUTTON" = yes; then | |
698dcdb6 | 5204 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5205 | else |
698dcdb6 | 5206 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5207 | fi |
698dcdb6 | 5208 | |
10f2d63a | 5209 | |
1e6feb95 | 5210 | echo $ac_n "checking for --enable-calendar""... $ac_c" 1>&6 |
edae8572 | 5211 | echo "configure:5212: checking for --enable-calendar" >&5 |
1e6feb95 VZ |
5212 | no_cache=0 |
5213 | # Check whether --enable-calendar or --disable-calendar was given. | |
5214 | if test "${enable_calendar+set}" = set; then | |
5215 | enableval="$enable_calendar" | |
5216 | ||
5217 | if test "$enableval" = yes; then | |
5218 | ac_cv_use_calendar='wxUSE_CALCTRL=yes' | |
5219 | else | |
5220 | ac_cv_use_calendar='wxUSE_CALCTRL=no' | |
5221 | fi | |
5222 | ||
5223 | else | |
5224 | ||
5225 | LINE=`grep "wxUSE_CALCTRL" ${wx_arg_cache_file}` | |
5226 | if test "x$LINE" != x ; then | |
5227 | eval "DEFAULT_$LINE" | |
5228 | else | |
5229 | no_cache=1 | |
5230 | fi | |
5231 | ||
5232 | ac_cv_use_calendar='wxUSE_CALCTRL='$DEFAULT_wxUSE_CALCTRL | |
5233 | ||
5234 | fi | |
5235 | ||
5236 | ||
5237 | eval "$ac_cv_use_calendar" | |
5238 | if test "$no_cache" != 1; then | |
5239 | echo $ac_cv_use_calendar >> ${wx_arg_cache_file}.tmp | |
5240 | fi | |
5241 | ||
5242 | if test "$wxUSE_CALCTRL" = yes; then | |
5243 | echo "$ac_t""yes" 1>&6 | |
5244 | else | |
5245 | echo "$ac_t""no" 1>&6 | |
5246 | fi | |
5247 | ||
5248 | ||
5249 | echo $ac_n "checking for --enable-caret""... $ac_c" 1>&6 | |
edae8572 | 5250 | echo "configure:5251: checking for --enable-caret" >&5 |
1e6feb95 VZ |
5251 | no_cache=0 |
5252 | # Check whether --enable-caret or --disable-caret was given. | |
5253 | if test "${enable_caret+set}" = set; then | |
5254 | enableval="$enable_caret" | |
5255 | ||
5256 | if test "$enableval" = yes; then | |
5257 | ac_cv_use_caret='wxUSE_CARET=yes' | |
5258 | else | |
5259 | ac_cv_use_caret='wxUSE_CARET=no' | |
5260 | fi | |
5261 | ||
5262 | else | |
5263 | ||
5264 | LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}` | |
5265 | if test "x$LINE" != x ; then | |
5266 | eval "DEFAULT_$LINE" | |
5267 | else | |
5268 | no_cache=1 | |
5269 | fi | |
5270 | ||
5271 | ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET | |
5272 | ||
5273 | fi | |
5274 | ||
5275 | ||
5276 | eval "$ac_cv_use_caret" | |
5277 | if test "$no_cache" != 1; then | |
5278 | echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp | |
5279 | fi | |
5280 | ||
5281 | if test "$wxUSE_CARET" = yes; then | |
5282 | echo "$ac_t""yes" 1>&6 | |
5283 | else | |
5284 | echo "$ac_t""no" 1>&6 | |
5285 | fi | |
5286 | ||
5287 | ||
698dcdb6 | 5288 | echo $ac_n "checking for --enable-checkbox""... $ac_c" 1>&6 |
edae8572 | 5289 | echo "configure:5290: checking for --enable-checkbox" >&5 |
10f2d63a VZ |
5290 | no_cache=0 |
5291 | # Check whether --enable-checkbox or --disable-checkbox was given. | |
5292 | if test "${enable_checkbox+set}" = set; then | |
5293 | enableval="$enable_checkbox" | |
698dcdb6 | 5294 | |
10f2d63a VZ |
5295 | if test "$enableval" = yes; then |
5296 | ac_cv_use_checkbox='wxUSE_CHECKBOX=yes' | |
5297 | else | |
5298 | ac_cv_use_checkbox='wxUSE_CHECKBOX=no' | |
5299 | fi | |
698dcdb6 | 5300 | |
10f2d63a | 5301 | else |
698dcdb6 | 5302 | |
10f2d63a VZ |
5303 | LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}` |
5304 | if test "x$LINE" != x ; then | |
5305 | eval "DEFAULT_$LINE" | |
5306 | else | |
5307 | no_cache=1 | |
5308 | fi | |
5309 | ||
5310 | ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX | |
698dcdb6 VZ |
5311 | |
5312 | fi | |
10f2d63a VZ |
5313 | |
5314 | ||
5315 | eval "$ac_cv_use_checkbox" | |
5316 | if test "$no_cache" != 1; then | |
5317 | echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp | |
5318 | fi | |
5319 | ||
5320 | if test "$wxUSE_CHECKBOX" = yes; then | |
698dcdb6 | 5321 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5322 | else |
698dcdb6 | 5323 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5324 | fi |
698dcdb6 | 5325 | |
10f2d63a | 5326 | |
698dcdb6 | 5327 | echo $ac_n "checking for --enable-checklst""... $ac_c" 1>&6 |
edae8572 | 5328 | echo "configure:5329: checking for --enable-checklst" >&5 |
10f2d63a VZ |
5329 | no_cache=0 |
5330 | # Check whether --enable-checklst or --disable-checklst was given. | |
5331 | if test "${enable_checklst+set}" = set; then | |
5332 | enableval="$enable_checklst" | |
698dcdb6 | 5333 | |
10f2d63a VZ |
5334 | if test "$enableval" = yes; then |
5335 | ac_cv_use_checklst='wxUSE_CHECKLST=yes' | |
5336 | else | |
5337 | ac_cv_use_checklst='wxUSE_CHECKLST=no' | |
5338 | fi | |
698dcdb6 | 5339 | |
10f2d63a | 5340 | else |
698dcdb6 | 5341 | |
10f2d63a VZ |
5342 | LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}` |
5343 | if test "x$LINE" != x ; then | |
5344 | eval "DEFAULT_$LINE" | |
5345 | else | |
5346 | no_cache=1 | |
5347 | fi | |
5348 | ||
5349 | ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST | |
698dcdb6 VZ |
5350 | |
5351 | fi | |
10f2d63a VZ |
5352 | |
5353 | ||
5354 | eval "$ac_cv_use_checklst" | |
5355 | if test "$no_cache" != 1; then | |
5356 | echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp | |
5357 | fi | |
5358 | ||
5359 | if test "$wxUSE_CHECKLST" = yes; then | |
698dcdb6 | 5360 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5361 | else |
698dcdb6 | 5362 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5363 | fi |
698dcdb6 | 5364 | |
10f2d63a | 5365 | |
698dcdb6 | 5366 | echo $ac_n "checking for --enable-choice""... $ac_c" 1>&6 |
edae8572 | 5367 | echo "configure:5368: checking for --enable-choice" >&5 |
10f2d63a VZ |
5368 | no_cache=0 |
5369 | # Check whether --enable-choice or --disable-choice was given. | |
5370 | if test "${enable_choice+set}" = set; then | |
5371 | enableval="$enable_choice" | |
698dcdb6 | 5372 | |
10f2d63a VZ |
5373 | if test "$enableval" = yes; then |
5374 | ac_cv_use_choice='wxUSE_CHOICE=yes' | |
5375 | else | |
5376 | ac_cv_use_choice='wxUSE_CHOICE=no' | |
5377 | fi | |
698dcdb6 | 5378 | |
10f2d63a | 5379 | else |
698dcdb6 | 5380 | |
10f2d63a VZ |
5381 | LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}` |
5382 | if test "x$LINE" != x ; then | |
5383 | eval "DEFAULT_$LINE" | |
5384 | else | |
5385 | no_cache=1 | |
5386 | fi | |
5387 | ||
5388 | ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE | |
698dcdb6 VZ |
5389 | |
5390 | fi | |
10f2d63a VZ |
5391 | |
5392 | ||
5393 | eval "$ac_cv_use_choice" | |
5394 | if test "$no_cache" != 1; then | |
5395 | echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp | |
5396 | fi | |
5397 | ||
5398 | if test "$wxUSE_CHOICE" = yes; then | |
698dcdb6 | 5399 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5400 | else |
698dcdb6 | 5401 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5402 | fi |
698dcdb6 | 5403 | |
10f2d63a | 5404 | |
698dcdb6 | 5405 | echo $ac_n "checking for --enable-combobox""... $ac_c" 1>&6 |
edae8572 | 5406 | echo "configure:5407: checking for --enable-combobox" >&5 |
10f2d63a VZ |
5407 | no_cache=0 |
5408 | # Check whether --enable-combobox or --disable-combobox was given. | |
5409 | if test "${enable_combobox+set}" = set; then | |
5410 | enableval="$enable_combobox" | |
698dcdb6 | 5411 | |
10f2d63a VZ |
5412 | if test "$enableval" = yes; then |
5413 | ac_cv_use_combobox='wxUSE_COMBOBOX=yes' | |
5414 | else | |
5415 | ac_cv_use_combobox='wxUSE_COMBOBOX=no' | |
5416 | fi | |
698dcdb6 | 5417 | |
10f2d63a | 5418 | else |
698dcdb6 | 5419 | |
10f2d63a VZ |
5420 | LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}` |
5421 | if test "x$LINE" != x ; then | |
5422 | eval "DEFAULT_$LINE" | |
5423 | else | |
5424 | no_cache=1 | |
5425 | fi | |
5426 | ||
5427 | ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX | |
698dcdb6 VZ |
5428 | |
5429 | fi | |
10f2d63a VZ |
5430 | |
5431 | ||
5432 | eval "$ac_cv_use_combobox" | |
5433 | if test "$no_cache" != 1; then | |
5434 | echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp | |
5435 | fi | |
5436 | ||
5437 | if test "$wxUSE_COMBOBOX" = yes; then | |
698dcdb6 | 5438 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5439 | else |
698dcdb6 | 5440 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5441 | fi |
698dcdb6 | 5442 | |
10f2d63a | 5443 | |
698dcdb6 | 5444 | echo $ac_n "checking for --enable-gauge""... $ac_c" 1>&6 |
edae8572 | 5445 | echo "configure:5446: checking for --enable-gauge" >&5 |
10f2d63a VZ |
5446 | no_cache=0 |
5447 | # Check whether --enable-gauge or --disable-gauge was given. | |
5448 | if test "${enable_gauge+set}" = set; then | |
5449 | enableval="$enable_gauge" | |
698dcdb6 | 5450 | |
10f2d63a VZ |
5451 | if test "$enableval" = yes; then |
5452 | ac_cv_use_gauge='wxUSE_GAUGE=yes' | |
5453 | else | |
5454 | ac_cv_use_gauge='wxUSE_GAUGE=no' | |
5455 | fi | |
698dcdb6 | 5456 | |
10f2d63a | 5457 | else |
698dcdb6 | 5458 | |
10f2d63a VZ |
5459 | LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}` |
5460 | if test "x$LINE" != x ; then | |
5461 | eval "DEFAULT_$LINE" | |
5462 | else | |
5463 | no_cache=1 | |
5464 | fi | |
5465 | ||
5466 | ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE | |
698dcdb6 VZ |
5467 | |
5468 | fi | |
10f2d63a VZ |
5469 | |
5470 | ||
5471 | eval "$ac_cv_use_gauge" | |
5472 | if test "$no_cache" != 1; then | |
5473 | echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp | |
5474 | fi | |
5475 | ||
5476 | if test "$wxUSE_GAUGE" = yes; then | |
698dcdb6 | 5477 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5478 | else |
698dcdb6 | 5479 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5480 | fi |
698dcdb6 | 5481 | |
10f2d63a | 5482 | |
698dcdb6 | 5483 | echo $ac_n "checking for --enable-grid""... $ac_c" 1>&6 |
edae8572 | 5484 | echo "configure:5485: checking for --enable-grid" >&5 |
10f2d63a VZ |
5485 | no_cache=0 |
5486 | # Check whether --enable-grid or --disable-grid was given. | |
5487 | if test "${enable_grid+set}" = set; then | |
5488 | enableval="$enable_grid" | |
698dcdb6 | 5489 | |
10f2d63a VZ |
5490 | if test "$enableval" = yes; then |
5491 | ac_cv_use_grid='wxUSE_GRID=yes' | |
5492 | else | |
5493 | ac_cv_use_grid='wxUSE_GRID=no' | |
5494 | fi | |
698dcdb6 | 5495 | |
10f2d63a | 5496 | else |
698dcdb6 | 5497 | |
10f2d63a VZ |
5498 | LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}` |
5499 | if test "x$LINE" != x ; then | |
5500 | eval "DEFAULT_$LINE" | |
5501 | else | |
5502 | no_cache=1 | |
5503 | fi | |
5504 | ||
5505 | ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID | |
698dcdb6 VZ |
5506 | |
5507 | fi | |
10f2d63a VZ |
5508 | |
5509 | ||
5510 | eval "$ac_cv_use_grid" | |
5511 | if test "$no_cache" != 1; then | |
5512 | echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp | |
5513 | fi | |
5514 | ||
5515 | if test "$wxUSE_GRID" = yes; then | |
698dcdb6 | 5516 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5517 | else |
698dcdb6 | 5518 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5519 | fi |
698dcdb6 | 5520 | |
10f2d63a | 5521 | |
698dcdb6 | 5522 | echo $ac_n "checking for --enable-newgrid""... $ac_c" 1>&6 |
edae8572 | 5523 | echo "configure:5524: checking for --enable-newgrid" >&5 |
10f2d63a VZ |
5524 | no_cache=0 |
5525 | # Check whether --enable-newgrid or --disable-newgrid was given. | |
5526 | if test "${enable_newgrid+set}" = set; then | |
5527 | enableval="$enable_newgrid" | |
698dcdb6 | 5528 | |
10f2d63a VZ |
5529 | if test "$enableval" = yes; then |
5530 | ac_cv_use_newgrid='wxUSE_NEW_GRID=yes' | |
5531 | else | |
5532 | ac_cv_use_newgrid='wxUSE_NEW_GRID=no' | |
5533 | fi | |
698dcdb6 | 5534 | |
10f2d63a | 5535 | else |
698dcdb6 | 5536 | |
10f2d63a VZ |
5537 | LINE=`grep "wxUSE_NEW_GRID" ${wx_arg_cache_file}` |
5538 | if test "x$LINE" != x ; then | |
5539 | eval "DEFAULT_$LINE" | |
5540 | else | |
5541 | no_cache=1 | |
5542 | fi | |
5543 | ||
5544 | ac_cv_use_newgrid='wxUSE_NEW_GRID='$DEFAULT_wxUSE_NEW_GRID | |
698dcdb6 VZ |
5545 | |
5546 | fi | |
10f2d63a VZ |
5547 | |
5548 | ||
5549 | eval "$ac_cv_use_newgrid" | |
5550 | if test "$no_cache" != 1; then | |
5551 | echo $ac_cv_use_newgrid >> ${wx_arg_cache_file}.tmp | |
5552 | fi | |
5553 | ||
5554 | if test "$wxUSE_NEW_GRID" = yes; then | |
698dcdb6 | 5555 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5556 | else |
698dcdb6 | 5557 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5558 | fi |
698dcdb6 | 5559 | |
10f2d63a | 5560 | |
698dcdb6 | 5561 | echo $ac_n "checking for --enable-imaglist""... $ac_c" 1>&6 |
edae8572 | 5562 | echo "configure:5563: checking for --enable-imaglist" >&5 |
10f2d63a VZ |
5563 | no_cache=0 |
5564 | # Check whether --enable-imaglist or --disable-imaglist was given. | |
5565 | if test "${enable_imaglist+set}" = set; then | |
5566 | enableval="$enable_imaglist" | |
698dcdb6 | 5567 | |
10f2d63a VZ |
5568 | if test "$enableval" = yes; then |
5569 | ac_cv_use_imaglist='wxUSE_IMAGLIST=yes' | |
5570 | else | |
5571 | ac_cv_use_imaglist='wxUSE_IMAGLIST=no' | |
5572 | fi | |
698dcdb6 | 5573 | |
10f2d63a | 5574 | else |
698dcdb6 | 5575 | |
10f2d63a VZ |
5576 | LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}` |
5577 | if test "x$LINE" != x ; then | |
5578 | eval "DEFAULT_$LINE" | |
5579 | else | |
5580 | no_cache=1 | |
5581 | fi | |
5582 | ||
5583 | ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST | |
698dcdb6 VZ |
5584 | |
5585 | fi | |
10f2d63a VZ |
5586 | |
5587 | ||
5588 | eval "$ac_cv_use_imaglist" | |
5589 | if test "$no_cache" != 1; then | |
5590 | echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp | |
5591 | fi | |
5592 | ||
5593 | if test "$wxUSE_IMAGLIST" = yes; then | |
698dcdb6 | 5594 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5595 | else |
698dcdb6 | 5596 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5597 | fi |
698dcdb6 | 5598 | |
10f2d63a | 5599 | |
698dcdb6 | 5600 | echo $ac_n "checking for --enable-listbox""... $ac_c" 1>&6 |
edae8572 | 5601 | echo "configure:5602: checking for --enable-listbox" >&5 |
10f2d63a VZ |
5602 | no_cache=0 |
5603 | # Check whether --enable-listbox or --disable-listbox was given. | |
5604 | if test "${enable_listbox+set}" = set; then | |
5605 | enableval="$enable_listbox" | |
698dcdb6 | 5606 | |
10f2d63a VZ |
5607 | if test "$enableval" = yes; then |
5608 | ac_cv_use_listbox='wxUSE_LISTBOX=yes' | |
5609 | else | |
5610 | ac_cv_use_listbox='wxUSE_LISTBOX=no' | |
5611 | fi | |
698dcdb6 | 5612 | |
10f2d63a | 5613 | else |
698dcdb6 | 5614 | |
10f2d63a VZ |
5615 | LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}` |
5616 | if test "x$LINE" != x ; then | |
5617 | eval "DEFAULT_$LINE" | |
5618 | else | |
5619 | no_cache=1 | |
5620 | fi | |
5621 | ||
5622 | ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX | |
698dcdb6 VZ |
5623 | |
5624 | fi | |
10f2d63a VZ |
5625 | |
5626 | ||
5627 | eval "$ac_cv_use_listbox" | |
5628 | if test "$no_cache" != 1; then | |
5629 | echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp | |
5630 | fi | |
5631 | ||
5632 | if test "$wxUSE_LISTBOX" = yes; then | |
698dcdb6 | 5633 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5634 | else |
698dcdb6 | 5635 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5636 | fi |
698dcdb6 | 5637 | |
10f2d63a | 5638 | |
698dcdb6 | 5639 | echo $ac_n "checking for --enable-listctrl""... $ac_c" 1>&6 |
edae8572 | 5640 | echo "configure:5641: checking for --enable-listctrl" >&5 |
10f2d63a VZ |
5641 | no_cache=0 |
5642 | # Check whether --enable-listctrl or --disable-listctrl was given. | |
5643 | if test "${enable_listctrl+set}" = set; then | |
5644 | enableval="$enable_listctrl" | |
698dcdb6 | 5645 | |
10f2d63a VZ |
5646 | if test "$enableval" = yes; then |
5647 | ac_cv_use_listctrl='wxUSE_LISTCTRL=yes' | |
5648 | else | |
5649 | ac_cv_use_listctrl='wxUSE_LISTCTRL=no' | |
5650 | fi | |
698dcdb6 | 5651 | |
10f2d63a | 5652 | else |
698dcdb6 | 5653 | |
10f2d63a VZ |
5654 | LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}` |
5655 | if test "x$LINE" != x ; then | |
5656 | eval "DEFAULT_$LINE" | |
5657 | else | |
5658 | no_cache=1 | |
5659 | fi | |
5660 | ||
5661 | ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL | |
698dcdb6 VZ |
5662 | |
5663 | fi | |
10f2d63a VZ |
5664 | |
5665 | ||
5666 | eval "$ac_cv_use_listctrl" | |
5667 | if test "$no_cache" != 1; then | |
5668 | echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp | |
5669 | fi | |
5670 | ||
5671 | if test "$wxUSE_LISTCTRL" = yes; then | |
698dcdb6 | 5672 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5673 | else |
698dcdb6 | 5674 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5675 | fi |
698dcdb6 | 5676 | |
10f2d63a | 5677 | |
698dcdb6 | 5678 | echo $ac_n "checking for --enable-notebook""... $ac_c" 1>&6 |
edae8572 | 5679 | echo "configure:5680: checking for --enable-notebook" >&5 |
10f2d63a VZ |
5680 | no_cache=0 |
5681 | # Check whether --enable-notebook or --disable-notebook was given. | |
5682 | if test "${enable_notebook+set}" = set; then | |
5683 | enableval="$enable_notebook" | |
698dcdb6 | 5684 | |
10f2d63a VZ |
5685 | if test "$enableval" = yes; then |
5686 | ac_cv_use_notebook='wxUSE_NOTEBOOK=yes' | |
5687 | else | |
5688 | ac_cv_use_notebook='wxUSE_NOTEBOOK=no' | |
5689 | fi | |
698dcdb6 | 5690 | |
10f2d63a | 5691 | else |
698dcdb6 | 5692 | |
10f2d63a VZ |
5693 | LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}` |
5694 | if test "x$LINE" != x ; then | |
5695 | eval "DEFAULT_$LINE" | |
5696 | else | |
5697 | no_cache=1 | |
5698 | fi | |
5699 | ||
5700 | ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK | |
698dcdb6 VZ |
5701 | |
5702 | fi | |
10f2d63a VZ |
5703 | |
5704 | ||
5705 | eval "$ac_cv_use_notebook" | |
5706 | if test "$no_cache" != 1; then | |
5707 | echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp | |
5708 | fi | |
5709 | ||
5710 | if test "$wxUSE_NOTEBOOK" = yes; then | |
698dcdb6 | 5711 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5712 | else |
698dcdb6 | 5713 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5714 | fi |
698dcdb6 | 5715 | |
10f2d63a | 5716 | |
24176f2c | 5717 | echo $ac_n "checking for --enable-propsheet""... $ac_c" 1>&6 |
edae8572 | 5718 | echo "configure:5719: checking for --enable-propsheet" >&5 |
24176f2c GD |
5719 | no_cache=0 |
5720 | # Check whether --enable-propsheet or --disable-propsheet was given. | |
5721 | if test "${enable_propsheet+set}" = set; then | |
5722 | enableval="$enable_propsheet" | |
5723 | ||
5724 | if test "$enableval" = yes; then | |
5725 | ac_cv_use_propsheet='wxUSE_PROPSHEET=yes' | |
5726 | else | |
5727 | ac_cv_use_propsheet='wxUSE_PROPSHEET=no' | |
5728 | fi | |
5729 | ||
5730 | else | |
5731 | ||
5732 | LINE=`grep "wxUSE_PROPSHEET" ${wx_arg_cache_file}` | |
5733 | if test "x$LINE" != x ; then | |
5734 | eval "DEFAULT_$LINE" | |
5735 | else | |
5736 | no_cache=1 | |
5737 | fi | |
5738 | ||
5739 | ac_cv_use_propsheet='wxUSE_PROPSHEET='$DEFAULT_wxUSE_PROPSHEET | |
5740 | ||
5741 | fi | |
5742 | ||
5743 | ||
5744 | eval "$ac_cv_use_propsheet" | |
5745 | if test "$no_cache" != 1; then | |
5746 | echo $ac_cv_use_propsheet >> ${wx_arg_cache_file}.tmp | |
5747 | fi | |
5748 | ||
5749 | if test "$wxUSE_PROPSHEET" = yes; then | |
5750 | echo "$ac_t""yes" 1>&6 | |
5751 | else | |
5752 | echo "$ac_t""no" 1>&6 | |
5753 | fi | |
5754 | ||
5755 | ||
698dcdb6 | 5756 | echo $ac_n "checking for --enable-radiobox""... $ac_c" 1>&6 |
edae8572 | 5757 | echo "configure:5758: checking for --enable-radiobox" >&5 |
10f2d63a VZ |
5758 | no_cache=0 |
5759 | # Check whether --enable-radiobox or --disable-radiobox was given. | |
5760 | if test "${enable_radiobox+set}" = set; then | |
5761 | enableval="$enable_radiobox" | |
698dcdb6 | 5762 | |
10f2d63a VZ |
5763 | if test "$enableval" = yes; then |
5764 | ac_cv_use_radiobox='wxUSE_RADIOBOX=yes' | |
5765 | else | |
5766 | ac_cv_use_radiobox='wxUSE_RADIOBOX=no' | |
5767 | fi | |
698dcdb6 | 5768 | |
10f2d63a | 5769 | else |
698dcdb6 | 5770 | |
10f2d63a VZ |
5771 | LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}` |
5772 | if test "x$LINE" != x ; then | |
5773 | eval "DEFAULT_$LINE" | |
5774 | else | |
5775 | no_cache=1 | |
5776 | fi | |
5777 | ||
5778 | ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX | |
698dcdb6 VZ |
5779 | |
5780 | fi | |
10f2d63a VZ |
5781 | |
5782 | ||
5783 | eval "$ac_cv_use_radiobox" | |
5784 | if test "$no_cache" != 1; then | |
5785 | echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp | |
5786 | fi | |
5787 | ||
5788 | if test "$wxUSE_RADIOBOX" = yes; then | |
698dcdb6 | 5789 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5790 | else |
698dcdb6 | 5791 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5792 | fi |
698dcdb6 | 5793 | |
10f2d63a | 5794 | |
698dcdb6 | 5795 | echo $ac_n "checking for --enable-radiobtn""... $ac_c" 1>&6 |
edae8572 | 5796 | echo "configure:5797: checking for --enable-radiobtn" >&5 |
10f2d63a VZ |
5797 | no_cache=0 |
5798 | # Check whether --enable-radiobtn or --disable-radiobtn was given. | |
5799 | if test "${enable_radiobtn+set}" = set; then | |
5800 | enableval="$enable_radiobtn" | |
698dcdb6 | 5801 | |
10f2d63a VZ |
5802 | if test "$enableval" = yes; then |
5803 | ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes' | |
5804 | else | |
5805 | ac_cv_use_radiobtn='wxUSE_RADIOBTN=no' | |
5806 | fi | |
698dcdb6 | 5807 | |
10f2d63a | 5808 | else |
698dcdb6 | 5809 | |
10f2d63a VZ |
5810 | LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}` |
5811 | if test "x$LINE" != x ; then | |
5812 | eval "DEFAULT_$LINE" | |
5813 | else | |
5814 | no_cache=1 | |
5815 | fi | |
5816 | ||
5817 | ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN | |
698dcdb6 VZ |
5818 | |
5819 | fi | |
10f2d63a VZ |
5820 | |
5821 | ||
5822 | eval "$ac_cv_use_radiobtn" | |
5823 | if test "$no_cache" != 1; then | |
5824 | echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp | |
5825 | fi | |
5826 | ||
5827 | if test "$wxUSE_RADIOBTN" = yes; then | |
698dcdb6 | 5828 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5829 | else |
698dcdb6 | 5830 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5831 | fi |
698dcdb6 | 5832 | |
10f2d63a | 5833 | |
698dcdb6 | 5834 | echo $ac_n "checking for --enable-sash""... $ac_c" 1>&6 |
edae8572 | 5835 | echo "configure:5836: checking for --enable-sash" >&5 |
10f2d63a VZ |
5836 | no_cache=0 |
5837 | # Check whether --enable-sash or --disable-sash was given. | |
5838 | if test "${enable_sash+set}" = set; then | |
5839 | enableval="$enable_sash" | |
698dcdb6 | 5840 | |
10f2d63a VZ |
5841 | if test "$enableval" = yes; then |
5842 | ac_cv_use_sash='wxUSE_SASH=yes' | |
5843 | else | |
5844 | ac_cv_use_sash='wxUSE_SASH=no' | |
5845 | fi | |
698dcdb6 | 5846 | |
10f2d63a | 5847 | else |
698dcdb6 | 5848 | |
10f2d63a VZ |
5849 | LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}` |
5850 | if test "x$LINE" != x ; then | |
5851 | eval "DEFAULT_$LINE" | |
5852 | else | |
5853 | no_cache=1 | |
5854 | fi | |
5855 | ||
5856 | ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH | |
698dcdb6 VZ |
5857 | |
5858 | fi | |
10f2d63a VZ |
5859 | |
5860 | ||
5861 | eval "$ac_cv_use_sash" | |
5862 | if test "$no_cache" != 1; then | |
5863 | echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp | |
5864 | fi | |
5865 | ||
5866 | if test "$wxUSE_SASH" = yes; then | |
698dcdb6 | 5867 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5868 | else |
698dcdb6 | 5869 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5870 | fi |
698dcdb6 | 5871 | |
10f2d63a | 5872 | |
698dcdb6 | 5873 | echo $ac_n "checking for --enable-scrollbar""... $ac_c" 1>&6 |
edae8572 | 5874 | echo "configure:5875: checking for --enable-scrollbar" >&5 |
10f2d63a VZ |
5875 | no_cache=0 |
5876 | # Check whether --enable-scrollbar or --disable-scrollbar was given. | |
5877 | if test "${enable_scrollbar+set}" = set; then | |
5878 | enableval="$enable_scrollbar" | |
698dcdb6 | 5879 | |
10f2d63a VZ |
5880 | if test "$enableval" = yes; then |
5881 | ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes' | |
5882 | else | |
5883 | ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no' | |
5884 | fi | |
698dcdb6 | 5885 | |
10f2d63a | 5886 | else |
698dcdb6 | 5887 | |
10f2d63a VZ |
5888 | LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}` |
5889 | if test "x$LINE" != x ; then | |
5890 | eval "DEFAULT_$LINE" | |
5891 | else | |
5892 | no_cache=1 | |
5893 | fi | |
5894 | ||
5895 | ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR | |
698dcdb6 VZ |
5896 | |
5897 | fi | |
10f2d63a VZ |
5898 | |
5899 | ||
5900 | eval "$ac_cv_use_scrollbar" | |
5901 | if test "$no_cache" != 1; then | |
5902 | echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp | |
5903 | fi | |
5904 | ||
5905 | if test "$wxUSE_SCROLLBAR" = yes; then | |
698dcdb6 | 5906 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5907 | else |
698dcdb6 | 5908 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5909 | fi |
698dcdb6 | 5910 | |
10f2d63a | 5911 | |
698dcdb6 | 5912 | echo $ac_n "checking for --enable-slider""... $ac_c" 1>&6 |
edae8572 | 5913 | echo "configure:5914: checking for --enable-slider" >&5 |
10f2d63a VZ |
5914 | no_cache=0 |
5915 | # Check whether --enable-slider or --disable-slider was given. | |
5916 | if test "${enable_slider+set}" = set; then | |
5917 | enableval="$enable_slider" | |
698dcdb6 | 5918 | |
10f2d63a VZ |
5919 | if test "$enableval" = yes; then |
5920 | ac_cv_use_slider='wxUSE_SLIDER=yes' | |
5921 | else | |
5922 | ac_cv_use_slider='wxUSE_SLIDER=no' | |
5923 | fi | |
698dcdb6 | 5924 | |
10f2d63a | 5925 | else |
698dcdb6 | 5926 | |
10f2d63a VZ |
5927 | LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}` |
5928 | if test "x$LINE" != x ; then | |
5929 | eval "DEFAULT_$LINE" | |
5930 | else | |
5931 | no_cache=1 | |
5932 | fi | |
5933 | ||
5934 | ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER | |
698dcdb6 VZ |
5935 | |
5936 | fi | |
10f2d63a VZ |
5937 | |
5938 | ||
5939 | eval "$ac_cv_use_slider" | |
5940 | if test "$no_cache" != 1; then | |
5941 | echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp | |
5942 | fi | |
5943 | ||
5944 | if test "$wxUSE_SLIDER" = yes; then | |
698dcdb6 | 5945 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5946 | else |
698dcdb6 | 5947 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5948 | fi |
698dcdb6 | 5949 | |
10f2d63a | 5950 | |
698dcdb6 | 5951 | echo $ac_n "checking for --enable-spinbtn""... $ac_c" 1>&6 |
edae8572 | 5952 | echo "configure:5953: checking for --enable-spinbtn" >&5 |
10f2d63a VZ |
5953 | no_cache=0 |
5954 | # Check whether --enable-spinbtn or --disable-spinbtn was given. | |
5955 | if test "${enable_spinbtn+set}" = set; then | |
5956 | enableval="$enable_spinbtn" | |
698dcdb6 | 5957 | |
10f2d63a VZ |
5958 | if test "$enableval" = yes; then |
5959 | ac_cv_use_spinbtn='wxUSE_SPINBTN=yes' | |
5960 | else | |
5961 | ac_cv_use_spinbtn='wxUSE_SPINBTN=no' | |
5962 | fi | |
698dcdb6 | 5963 | |
10f2d63a | 5964 | else |
698dcdb6 | 5965 | |
10f2d63a VZ |
5966 | LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}` |
5967 | if test "x$LINE" != x ; then | |
5968 | eval "DEFAULT_$LINE" | |
5969 | else | |
5970 | no_cache=1 | |
5971 | fi | |
5972 | ||
5973 | ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN | |
698dcdb6 VZ |
5974 | |
5975 | fi | |
10f2d63a VZ |
5976 | |
5977 | ||
5978 | eval "$ac_cv_use_spinbtn" | |
5979 | if test "$no_cache" != 1; then | |
5980 | echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp | |
5981 | fi | |
5982 | ||
5983 | if test "$wxUSE_SPINBTN" = yes; then | |
698dcdb6 | 5984 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5985 | else |
698dcdb6 | 5986 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5987 | fi |
698dcdb6 | 5988 | |
10f2d63a | 5989 | |
698dcdb6 | 5990 | echo $ac_n "checking for --enable-spinctrl""... $ac_c" 1>&6 |
edae8572 | 5991 | echo "configure:5992: checking for --enable-spinctrl" >&5 |
56cfaa52 RR |
5992 | no_cache=0 |
5993 | # Check whether --enable-spinctrl or --disable-spinctrl was given. | |
5994 | if test "${enable_spinctrl+set}" = set; then | |
5995 | enableval="$enable_spinctrl" | |
698dcdb6 | 5996 | |
56cfaa52 RR |
5997 | if test "$enableval" = yes; then |
5998 | ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes' | |
5999 | else | |
6000 | ac_cv_use_spinctrl='wxUSE_SPINCTRL=no' | |
6001 | fi | |
698dcdb6 | 6002 | |
56cfaa52 | 6003 | else |
698dcdb6 | 6004 | |
56cfaa52 RR |
6005 | LINE=`grep "wxUSE_SPINCTRL" ${wx_arg_cache_file}` |
6006 | if test "x$LINE" != x ; then | |
6007 | eval "DEFAULT_$LINE" | |
6008 | else | |
6009 | no_cache=1 | |
6010 | fi | |
6011 | ||
6012 | ac_cv_use_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL | |
698dcdb6 VZ |
6013 | |
6014 | fi | |
56cfaa52 RR |
6015 | |
6016 | ||
6017 | eval "$ac_cv_use_spinctrl" | |
6018 | if test "$no_cache" != 1; then | |
6019 | echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp | |
6020 | fi | |
6021 | ||
6022 | if test "$wxUSE_SPINCTRL" = yes; then | |
698dcdb6 | 6023 | echo "$ac_t""yes" 1>&6 |
56cfaa52 | 6024 | else |
698dcdb6 | 6025 | echo "$ac_t""no" 1>&6 |
56cfaa52 | 6026 | fi |
698dcdb6 | 6027 | |
56cfaa52 | 6028 | |
698dcdb6 | 6029 | echo $ac_n "checking for --enable-splitter""... $ac_c" 1>&6 |
edae8572 | 6030 | echo "configure:6031: checking for --enable-splitter" >&5 |
10f2d63a VZ |
6031 | no_cache=0 |
6032 | # Check whether --enable-splitter or --disable-splitter was given. | |
6033 | if test "${enable_splitter+set}" = set; then | |
6034 | enableval="$enable_splitter" | |
698dcdb6 | 6035 | |
10f2d63a VZ |
6036 | if test "$enableval" = yes; then |
6037 | ac_cv_use_splitter='wxUSE_SPLITTER=yes' | |
6038 | else | |
6039 | ac_cv_use_splitter='wxUSE_SPLITTER=no' | |
6040 | fi | |
698dcdb6 | 6041 | |
10f2d63a | 6042 | else |
698dcdb6 | 6043 | |
10f2d63a VZ |
6044 | LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}` |
6045 | if test "x$LINE" != x ; then | |
6046 | eval "DEFAULT_$LINE" | |
6047 | else | |
6048 | no_cache=1 | |
6049 | fi | |
6050 | ||
6051 | ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER | |
698dcdb6 VZ |
6052 | |
6053 | fi | |
10f2d63a VZ |
6054 | |
6055 | ||
6056 | eval "$ac_cv_use_splitter" | |
6057 | if test "$no_cache" != 1; then | |
6058 | echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp | |
6059 | fi | |
6060 | ||
6061 | if test "$wxUSE_SPLITTER" = yes; then | |
698dcdb6 | 6062 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6063 | else |
698dcdb6 | 6064 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6065 | fi |
698dcdb6 | 6066 | |
10f2d63a | 6067 | |
698dcdb6 | 6068 | echo $ac_n "checking for --enable-statbmp""... $ac_c" 1>&6 |
edae8572 | 6069 | echo "configure:6070: checking for --enable-statbmp" >&5 |
10f2d63a VZ |
6070 | no_cache=0 |
6071 | # Check whether --enable-statbmp or --disable-statbmp was given. | |
6072 | if test "${enable_statbmp+set}" = set; then | |
6073 | enableval="$enable_statbmp" | |
698dcdb6 | 6074 | |
10f2d63a VZ |
6075 | if test "$enableval" = yes; then |
6076 | ac_cv_use_statbmp='wxUSE_STATBMP=yes' | |
6077 | else | |
6078 | ac_cv_use_statbmp='wxUSE_STATBMP=no' | |
6079 | fi | |
698dcdb6 | 6080 | |
10f2d63a | 6081 | else |
698dcdb6 | 6082 | |
10f2d63a VZ |
6083 | LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}` |
6084 | if test "x$LINE" != x ; then | |
6085 | eval "DEFAULT_$LINE" | |
6086 | else | |
6087 | no_cache=1 | |
6088 | fi | |
6089 | ||
6090 | ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP | |
698dcdb6 VZ |
6091 | |
6092 | fi | |
10f2d63a VZ |
6093 | |
6094 | ||
6095 | eval "$ac_cv_use_statbmp" | |
6096 | if test "$no_cache" != 1; then | |
6097 | echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp | |
6098 | fi | |
6099 | ||
6100 | if test "$wxUSE_STATBMP" = yes; then | |
698dcdb6 | 6101 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6102 | else |
698dcdb6 | 6103 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6104 | fi |
698dcdb6 | 6105 | |
10f2d63a | 6106 | |
698dcdb6 | 6107 | echo $ac_n "checking for --enable-statbox""... $ac_c" 1>&6 |
edae8572 | 6108 | echo "configure:6109: checking for --enable-statbox" >&5 |
10f2d63a VZ |
6109 | no_cache=0 |
6110 | # Check whether --enable-statbox or --disable-statbox was given. | |
6111 | if test "${enable_statbox+set}" = set; then | |
6112 | enableval="$enable_statbox" | |
698dcdb6 | 6113 | |
10f2d63a VZ |
6114 | if test "$enableval" = yes; then |
6115 | ac_cv_use_statbox='wxUSE_STATBOX=yes' | |
6116 | else | |
6117 | ac_cv_use_statbox='wxUSE_STATBOX=no' | |
6118 | fi | |
698dcdb6 | 6119 | |
10f2d63a | 6120 | else |
698dcdb6 | 6121 | |
10f2d63a VZ |
6122 | LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}` |
6123 | if test "x$LINE" != x ; then | |
6124 | eval "DEFAULT_$LINE" | |
6125 | else | |
6126 | no_cache=1 | |
6127 | fi | |
6128 | ||
6129 | ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX | |
698dcdb6 VZ |
6130 | |
6131 | fi | |
10f2d63a VZ |
6132 | |
6133 | ||
6134 | eval "$ac_cv_use_statbox" | |
6135 | if test "$no_cache" != 1; then | |
6136 | echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp | |
6137 | fi | |
6138 | ||
6139 | if test "$wxUSE_STATBOX" = yes; then | |
698dcdb6 | 6140 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6141 | else |
698dcdb6 | 6142 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6143 | fi |
698dcdb6 | 6144 | |
10f2d63a | 6145 | |
698dcdb6 | 6146 | echo $ac_n "checking for --enable-statline""... $ac_c" 1>&6 |
edae8572 | 6147 | echo "configure:6148: checking for --enable-statline" >&5 |
10f2d63a VZ |
6148 | no_cache=0 |
6149 | # Check whether --enable-statline or --disable-statline was given. | |
6150 | if test "${enable_statline+set}" = set; then | |
6151 | enableval="$enable_statline" | |
698dcdb6 | 6152 | |
10f2d63a VZ |
6153 | if test "$enableval" = yes; then |
6154 | ac_cv_use_statline='wxUSE_STATLINE=yes' | |
6155 | else | |
6156 | ac_cv_use_statline='wxUSE_STATLINE=no' | |
6157 | fi | |
698dcdb6 | 6158 | |
10f2d63a | 6159 | else |
698dcdb6 | 6160 | |
10f2d63a VZ |
6161 | LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}` |
6162 | if test "x$LINE" != x ; then | |
6163 | eval "DEFAULT_$LINE" | |
6164 | else | |
6165 | no_cache=1 | |
6166 | fi | |
6167 | ||
6168 | ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE | |
698dcdb6 VZ |
6169 | |
6170 | fi | |
10f2d63a VZ |
6171 | |
6172 | ||
6173 | eval "$ac_cv_use_statline" | |
6174 | if test "$no_cache" != 1; then | |
6175 | echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp | |
6176 | fi | |
6177 | ||
6178 | if test "$wxUSE_STATLINE" = yes; then | |
698dcdb6 | 6179 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6180 | else |
698dcdb6 | 6181 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6182 | fi |
698dcdb6 | 6183 | |
10f2d63a | 6184 | |
1e6feb95 | 6185 | echo $ac_n "checking for --enable-stattext""... $ac_c" 1>&6 |
edae8572 | 6186 | echo "configure:6187: checking for --enable-stattext" >&5 |
1e6feb95 VZ |
6187 | no_cache=0 |
6188 | # Check whether --enable-stattext or --disable-stattext was given. | |
6189 | if test "${enable_stattext+set}" = set; then | |
6190 | enableval="$enable_stattext" | |
6191 | ||
6192 | if test "$enableval" = yes; then | |
6193 | ac_cv_use_stattext='wxUSE_STATTEXT=yes' | |
6194 | else | |
6195 | ac_cv_use_stattext='wxUSE_STATTEXT=no' | |
6196 | fi | |
6197 | ||
6198 | else | |
6199 | ||
6200 | LINE=`grep "wxUSE_STATTEXT" ${wx_arg_cache_file}` | |
6201 | if test "x$LINE" != x ; then | |
6202 | eval "DEFAULT_$LINE" | |
6203 | else | |
6204 | no_cache=1 | |
6205 | fi | |
6206 | ||
6207 | ac_cv_use_stattext='wxUSE_STATTEXT='$DEFAULT_wxUSE_STATTEXT | |
6208 | ||
6209 | fi | |
6210 | ||
6211 | ||
6212 | eval "$ac_cv_use_stattext" | |
6213 | if test "$no_cache" != 1; then | |
6214 | echo $ac_cv_use_stattext >> ${wx_arg_cache_file}.tmp | |
6215 | fi | |
6216 | ||
6217 | if test "$wxUSE_STATTEXT" = yes; then | |
6218 | echo "$ac_t""yes" 1>&6 | |
6219 | else | |
6220 | echo "$ac_t""no" 1>&6 | |
6221 | fi | |
6222 | ||
6223 | ||
698dcdb6 | 6224 | echo $ac_n "checking for --enable-statusbar""... $ac_c" 1>&6 |
edae8572 | 6225 | echo "configure:6226: checking for --enable-statusbar" >&5 |
10f2d63a VZ |
6226 | no_cache=0 |
6227 | # Check whether --enable-statusbar or --disable-statusbar was given. | |
6228 | if test "${enable_statusbar+set}" = set; then | |
6229 | enableval="$enable_statusbar" | |
698dcdb6 | 6230 | |
10f2d63a VZ |
6231 | if test "$enableval" = yes; then |
6232 | ac_cv_use_statusbar='wxUSE_STATUSBAR=yes' | |
6233 | else | |
6234 | ac_cv_use_statusbar='wxUSE_STATUSBAR=no' | |
6235 | fi | |
698dcdb6 | 6236 | |
10f2d63a | 6237 | else |
698dcdb6 | 6238 | |
10f2d63a VZ |
6239 | LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}` |
6240 | if test "x$LINE" != x ; then | |
6241 | eval "DEFAULT_$LINE" | |
6242 | else | |
6243 | no_cache=1 | |
6244 | fi | |
6245 | ||
6246 | ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR | |
698dcdb6 VZ |
6247 | |
6248 | fi | |
10f2d63a VZ |
6249 | |
6250 | ||
6251 | eval "$ac_cv_use_statusbar" | |
6252 | if test "$no_cache" != 1; then | |
6253 | echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp | |
6254 | fi | |
6255 | ||
6256 | if test "$wxUSE_STATUSBAR" = yes; then | |
698dcdb6 | 6257 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6258 | else |
698dcdb6 | 6259 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6260 | fi |
698dcdb6 | 6261 | |
10f2d63a | 6262 | |
698dcdb6 | 6263 | echo $ac_n "checking for --enable-tabdialog""... $ac_c" 1>&6 |
edae8572 | 6264 | echo "configure:6265: checking for --enable-tabdialog" >&5 |
10f2d63a VZ |
6265 | no_cache=0 |
6266 | # Check whether --enable-tabdialog or --disable-tabdialog was given. | |
6267 | if test "${enable_tabdialog+set}" = set; then | |
6268 | enableval="$enable_tabdialog" | |
698dcdb6 | 6269 | |
10f2d63a VZ |
6270 | if test "$enableval" = yes; then |
6271 | ac_cv_use_tabdialog='wxUSE_TABDIALOG=yes' | |
6272 | else | |
6273 | ac_cv_use_tabdialog='wxUSE_TABDIALOG=no' | |
6274 | fi | |
698dcdb6 | 6275 | |
10f2d63a | 6276 | else |
698dcdb6 | 6277 | |
10f2d63a VZ |
6278 | LINE=`grep "wxUSE_TABDIALOG" ${wx_arg_cache_file}` |
6279 | if test "x$LINE" != x ; then | |
6280 | eval "DEFAULT_$LINE" | |
6281 | else | |
6282 | no_cache=1 | |
6283 | fi | |
6284 | ||
6285 | ac_cv_use_tabdialog='wxUSE_TABDIALOG='$DEFAULT_wxUSE_TABDIALOG | |
698dcdb6 VZ |
6286 | |
6287 | fi | |
10f2d63a VZ |
6288 | |
6289 | ||
6290 | eval "$ac_cv_use_tabdialog" | |
6291 | if test "$no_cache" != 1; then | |
6292 | echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp | |
6293 | fi | |
6294 | ||
6295 | if test "$wxUSE_TABDIALOG" = yes; then | |
698dcdb6 | 6296 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6297 | else |
698dcdb6 | 6298 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6299 | fi |
698dcdb6 | 6300 | |
10f2d63a | 6301 | |
1e6feb95 | 6302 | echo $ac_n "checking for --enable-textctrl""... $ac_c" 1>&6 |
edae8572 | 6303 | echo "configure:6304: checking for --enable-textctrl" >&5 |
1e6feb95 VZ |
6304 | no_cache=0 |
6305 | # Check whether --enable-textctrl or --disable-textctrl was given. | |
6306 | if test "${enable_textctrl+set}" = set; then | |
6307 | enableval="$enable_textctrl" | |
6308 | ||
6309 | if test "$enableval" = yes; then | |
6310 | ac_cv_use_textctrl='wxUSE_TEXTCTRL=yes' | |
6311 | else | |
6312 | ac_cv_use_textctrl='wxUSE_TEXTCTRL=no' | |
6313 | fi | |
6314 | ||
6315 | else | |
6316 | ||
6317 | LINE=`grep "wxUSE_TEXTCTRL" ${wx_arg_cache_file}` | |
6318 | if test "x$LINE" != x ; then | |
6319 | eval "DEFAULT_$LINE" | |
6320 | else | |
6321 | no_cache=1 | |
6322 | fi | |
6323 | ||
6324 | ac_cv_use_textctrl='wxUSE_TEXTCTRL='$DEFAULT_wxUSE_TEXTCTRL | |
6325 | ||
6326 | fi | |
6327 | ||
6328 | ||
6329 | eval "$ac_cv_use_textctrl" | |
6330 | if test "$no_cache" != 1; then | |
6331 | echo $ac_cv_use_textctrl >> ${wx_arg_cache_file}.tmp | |
6332 | fi | |
6333 | ||
6334 | if test "$wxUSE_TEXTCTRL" = yes; then | |
6335 | echo "$ac_t""yes" 1>&6 | |
6336 | else | |
6337 | echo "$ac_t""no" 1>&6 | |
6338 | fi | |
6339 | ||
6340 | ||
698dcdb6 | 6341 | echo $ac_n "checking for --enable-togglebtn""... $ac_c" 1>&6 |
edae8572 | 6342 | echo "configure:6343: checking for --enable-togglebtn" >&5 |
1db8dc4a VZ |
6343 | no_cache=0 |
6344 | # Check whether --enable-togglebtn or --disable-togglebtn was given. | |
6345 | if test "${enable_togglebtn+set}" = set; then | |
6346 | enableval="$enable_togglebtn" | |
698dcdb6 | 6347 | |
1db8dc4a VZ |
6348 | if test "$enableval" = yes; then |
6349 | ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes' | |
6350 | else | |
6351 | ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=no' | |
6352 | fi | |
698dcdb6 | 6353 | |
1db8dc4a | 6354 | else |
698dcdb6 | 6355 | |
1db8dc4a VZ |
6356 | LINE=`grep "wxUSE_TOGGLEBTN" ${wx_arg_cache_file}` |
6357 | if test "x$LINE" != x ; then | |
6358 | eval "DEFAULT_$LINE" | |
6359 | else | |
6360 | no_cache=1 | |
6361 | fi | |
6362 | ||
6363 | ac_cv_use_togglebtn='wxUSE_TOGGLEBTN='$DEFAULT_wxUSE_TOGGLEBTN | |
698dcdb6 VZ |
6364 | |
6365 | fi | |
1db8dc4a VZ |
6366 | |
6367 | ||
6368 | eval "$ac_cv_use_togglebtn" | |
6369 | if test "$no_cache" != 1; then | |
6370 | echo $ac_cv_use_togglebtn >> ${wx_arg_cache_file}.tmp | |
6371 | fi | |
6372 | ||
6373 | if test "$wxUSE_TOGGLEBTN" = yes; then | |
698dcdb6 | 6374 | echo "$ac_t""yes" 1>&6 |
1db8dc4a | 6375 | else |
698dcdb6 | 6376 | echo "$ac_t""no" 1>&6 |
1db8dc4a | 6377 | fi |
698dcdb6 | 6378 | |
1db8dc4a | 6379 | |
698dcdb6 | 6380 | echo $ac_n "checking for --enable-toolbar""... $ac_c" 1>&6 |
edae8572 | 6381 | echo "configure:6382: checking for --enable-toolbar" >&5 |
10f2d63a VZ |
6382 | no_cache=0 |
6383 | # Check whether --enable-toolbar or --disable-toolbar was given. | |
6384 | if test "${enable_toolbar+set}" = set; then | |
6385 | enableval="$enable_toolbar" | |
698dcdb6 | 6386 | |
10f2d63a VZ |
6387 | if test "$enableval" = yes; then |
6388 | ac_cv_use_toolbar='wxUSE_TOOLBAR=yes' | |
6389 | else | |
6390 | ac_cv_use_toolbar='wxUSE_TOOLBAR=no' | |
6391 | fi | |
698dcdb6 | 6392 | |
10f2d63a | 6393 | else |
698dcdb6 | 6394 | |
10f2d63a VZ |
6395 | LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}` |
6396 | if test "x$LINE" != x ; then | |
6397 | eval "DEFAULT_$LINE" | |
6398 | else | |
6399 | no_cache=1 | |
6400 | fi | |
6401 | ||
6402 | ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR | |
698dcdb6 VZ |
6403 | |
6404 | fi | |
10f2d63a VZ |
6405 | |
6406 | ||
6407 | eval "$ac_cv_use_toolbar" | |
6408 | if test "$no_cache" != 1; then | |
6409 | echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp | |
6410 | fi | |
6411 | ||
6412 | if test "$wxUSE_TOOLBAR" = yes; then | |
698dcdb6 | 6413 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6414 | else |
698dcdb6 | 6415 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6416 | fi |
698dcdb6 | 6417 | |
10f2d63a | 6418 | |
698dcdb6 | 6419 | echo $ac_n "checking for --enable-tbarnative""... $ac_c" 1>&6 |
edae8572 | 6420 | echo "configure:6421: checking for --enable-tbarnative" >&5 |
360d6699 VZ |
6421 | no_cache=0 |
6422 | # Check whether --enable-tbarnative or --disable-tbarnative was given. | |
6423 | if test "${enable_tbarnative+set}" = set; then | |
6424 | enableval="$enable_tbarnative" | |
698dcdb6 | 6425 | |
360d6699 VZ |
6426 | if test "$enableval" = yes; then |
6427 | ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes' | |
6428 | else | |
6429 | ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no' | |
6430 | fi | |
698dcdb6 | 6431 | |
360d6699 | 6432 | else |
698dcdb6 | 6433 | |
360d6699 VZ |
6434 | LINE=`grep "wxUSE_TOOLBAR_NATIVE" ${wx_arg_cache_file}` |
6435 | if test "x$LINE" != x ; then | |
6436 | eval "DEFAULT_$LINE" | |
6437 | else | |
6438 | no_cache=1 | |
6439 | fi | |
6440 | ||
6441 | ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE='$DEFAULT_wxUSE_TOOLBAR_NATIVE | |
698dcdb6 VZ |
6442 | |
6443 | fi | |
360d6699 VZ |
6444 | |
6445 | ||
6446 | eval "$ac_cv_use_tbarnative" | |
6447 | if test "$no_cache" != 1; then | |
6448 | echo $ac_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp | |
6449 | fi | |
6450 | ||
6451 | if test "$wxUSE_TOOLBAR_NATIVE" = yes; then | |
698dcdb6 | 6452 | echo "$ac_t""yes" 1>&6 |
360d6699 | 6453 | else |
698dcdb6 | 6454 | echo "$ac_t""no" 1>&6 |
360d6699 | 6455 | fi |
698dcdb6 | 6456 | |
360d6699 | 6457 | |
698dcdb6 | 6458 | echo $ac_n "checking for --enable-tbarsmpl""... $ac_c" 1>&6 |
edae8572 | 6459 | echo "configure:6460: checking for --enable-tbarsmpl" >&5 |
360d6699 VZ |
6460 | no_cache=0 |
6461 | # Check whether --enable-tbarsmpl or --disable-tbarsmpl was given. | |
6462 | if test "${enable_tbarsmpl+set}" = set; then | |
6463 | enableval="$enable_tbarsmpl" | |
698dcdb6 | 6464 | |
360d6699 VZ |
6465 | if test "$enableval" = yes; then |
6466 | ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=yes' | |
6467 | else | |
6468 | ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=no' | |
6469 | fi | |
698dcdb6 | 6470 | |
360d6699 | 6471 | else |
698dcdb6 | 6472 | |
360d6699 VZ |
6473 | LINE=`grep "wxUSE_TOOLBAR_SIMPLE" ${wx_arg_cache_file}` |
6474 | if test "x$LINE" != x ; then | |
6475 | eval "DEFAULT_$LINE" | |
6476 | else | |
6477 | no_cache=1 | |
6478 | fi | |
6479 | ||
6480 | ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE='$DEFAULT_wxUSE_TOOLBAR_SIMPLE | |
698dcdb6 VZ |
6481 | |
6482 | fi | |
360d6699 VZ |
6483 | |
6484 | ||
6485 | eval "$ac_cv_use_tbarsmpl" | |
6486 | if test "$no_cache" != 1; then | |
6487 | echo $ac_cv_use_tbarsmpl >> ${wx_arg_cache_file}.tmp | |
6488 | fi | |
6489 | ||
6490 | if test "$wxUSE_TOOLBAR_SIMPLE" = yes; then | |
698dcdb6 | 6491 | echo "$ac_t""yes" 1>&6 |
360d6699 | 6492 | else |
698dcdb6 | 6493 | echo "$ac_t""no" 1>&6 |
360d6699 | 6494 | fi |
698dcdb6 | 6495 | |
360d6699 | 6496 | |
698dcdb6 | 6497 | echo $ac_n "checking for --enable-treectrl""... $ac_c" 1>&6 |
edae8572 | 6498 | echo "configure:6499: checking for --enable-treectrl" >&5 |
10f2d63a VZ |
6499 | no_cache=0 |
6500 | # Check whether --enable-treectrl or --disable-treectrl was given. | |
6501 | if test "${enable_treectrl+set}" = set; then | |
6502 | enableval="$enable_treectrl" | |
698dcdb6 | 6503 | |
10f2d63a VZ |
6504 | if test "$enableval" = yes; then |
6505 | ac_cv_use_treectrl='wxUSE_TREECTRL=yes' | |
6506 | else | |
6507 | ac_cv_use_treectrl='wxUSE_TREECTRL=no' | |
6508 | fi | |
698dcdb6 | 6509 | |
10f2d63a | 6510 | else |
698dcdb6 | 6511 | |
10f2d63a VZ |
6512 | LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}` |
6513 | if test "x$LINE" != x ; then | |
6514 | eval "DEFAULT_$LINE" | |
6515 | else | |
6516 | no_cache=1 | |
6517 | fi | |
6518 | ||
6519 | ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL | |
698dcdb6 VZ |
6520 | |
6521 | fi | |
10f2d63a VZ |
6522 | |
6523 | ||
1e6feb95 VZ |
6524 | eval "$ac_cv_use_treectrl" |
6525 | if test "$no_cache" != 1; then | |
6526 | echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp | |
6527 | fi | |
6528 | ||
6529 | if test "$wxUSE_TREECTRL" = yes; then | |
6530 | echo "$ac_t""yes" 1>&6 | |
6531 | else | |
6532 | echo "$ac_t""no" 1>&6 | |
6533 | fi | |
6534 | ||
6535 | ||
9f41d601 | 6536 | echo $ac_n "checking for --enable-popupwin""... $ac_c" 1>&6 |
edae8572 | 6537 | echo "configure:6538: checking for --enable-popupwin" >&5 |
9f41d601 RR |
6538 | no_cache=0 |
6539 | # Check whether --enable-popupwin or --disable-popupwin was given. | |
6540 | if test "${enable_popupwin+set}" = set; then | |
6541 | enableval="$enable_popupwin" | |
6542 | ||
6543 | if test "$enableval" = yes; then | |
6544 | ac_cv_use_popupwin='wxUSE_POPUPWIN=yes' | |
6545 | else | |
6546 | ac_cv_use_popupwin='wxUSE_POPUPWIN=no' | |
6547 | fi | |
6548 | ||
6549 | else | |
6550 | ||
6551 | LINE=`grep "wxUSE_POPUPWIN" ${wx_arg_cache_file}` | |
6552 | if test "x$LINE" != x ; then | |
6553 | eval "DEFAULT_$LINE" | |
6554 | else | |
6555 | no_cache=1 | |
6556 | fi | |
6557 | ||
6558 | ac_cv_use_popupwin='wxUSE_POPUPWIN='$DEFAULT_wxUSE_POPUPWIN | |
6559 | ||
6560 | fi | |
6561 | ||
6562 | ||
6563 | eval "$ac_cv_use_popupwin" | |
6564 | if test "$no_cache" != 1; then | |
6565 | echo $ac_cv_use_popupwin >> ${wx_arg_cache_file}.tmp | |
6566 | fi | |
6567 | ||
6568 | if test "$wxUSE_POPUPWIN" = yes; then | |
6569 | echo "$ac_t""yes" 1>&6 | |
6570 | else | |
6571 | echo "$ac_t""no" 1>&6 | |
6572 | fi | |
6573 | ||
6574 | ||
1e6feb95 VZ |
6575 | |
6576 | ||
6577 | echo $ac_n "checking for --enable-commondlg""... $ac_c" 1>&6 | |
edae8572 | 6578 | echo "configure:6579: checking for --enable-commondlg" >&5 |
1e6feb95 VZ |
6579 | no_cache=0 |
6580 | # Check whether --enable-commondlg or --disable-commondlg was given. | |
6581 | if test "${enable_commondlg+set}" = set; then | |
6582 | enableval="$enable_commondlg" | |
6583 | ||
6584 | if test "$enableval" = yes; then | |
6585 | ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes' | |
6586 | else | |
6587 | ac_cv_use_commondlg='wxUSE_COMMONDLGS=no' | |
6588 | fi | |
6589 | ||
6590 | else | |
6591 | ||
6592 | LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}` | |
6593 | if test "x$LINE" != x ; then | |
6594 | eval "DEFAULT_$LINE" | |
6595 | else | |
6596 | no_cache=1 | |
6597 | fi | |
6598 | ||
6599 | ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS | |
6600 | ||
6601 | fi | |
6602 | ||
6603 | ||
6604 | eval "$ac_cv_use_commondlg" | |
6605 | if test "$no_cache" != 1; then | |
6606 | echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp | |
6607 | fi | |
6608 | ||
6609 | if test "$wxUSE_COMMONDLGS" = yes; then | |
6610 | echo "$ac_t""yes" 1>&6 | |
6611 | else | |
6612 | echo "$ac_t""no" 1>&6 | |
6613 | fi | |
6614 | ||
6615 | ||
6616 | echo $ac_n "checking for --enable-choicedlg""... $ac_c" 1>&6 | |
edae8572 | 6617 | echo "configure:6618: checking for --enable-choicedlg" >&5 |
1e6feb95 VZ |
6618 | no_cache=0 |
6619 | # Check whether --enable-choicedlg or --disable-choicedlg was given. | |
6620 | if test "${enable_choicedlg+set}" = set; then | |
6621 | enableval="$enable_choicedlg" | |
6622 | ||
6623 | if test "$enableval" = yes; then | |
6624 | ac_cv_use_choicedlg='wxUSE_CHOICEDLG=yes' | |
6625 | else | |
6626 | ac_cv_use_choicedlg='wxUSE_CHOICEDLG=no' | |
6627 | fi | |
6628 | ||
6629 | else | |
6630 | ||
6631 | LINE=`grep "wxUSE_CHOICEDLG" ${wx_arg_cache_file}` | |
6632 | if test "x$LINE" != x ; then | |
6633 | eval "DEFAULT_$LINE" | |
6634 | else | |
6635 | no_cache=1 | |
6636 | fi | |
6637 | ||
6638 | ac_cv_use_choicedlg='wxUSE_CHOICEDLG='$DEFAULT_wxUSE_CHOICEDLG | |
6639 | ||
6640 | fi | |
6641 | ||
6642 | ||
6643 | eval "$ac_cv_use_choicedlg" | |
6644 | if test "$no_cache" != 1; then | |
6645 | echo $ac_cv_use_choicedlg >> ${wx_arg_cache_file}.tmp | |
6646 | fi | |
6647 | ||
6648 | if test "$wxUSE_CHOICEDLG" = yes; then | |
6649 | echo "$ac_t""yes" 1>&6 | |
6650 | else | |
6651 | echo "$ac_t""no" 1>&6 | |
6652 | fi | |
6653 | ||
6654 | ||
6655 | echo $ac_n "checking for --enable-coldlg""... $ac_c" 1>&6 | |
edae8572 | 6656 | echo "configure:6657: checking for --enable-coldlg" >&5 |
1e6feb95 VZ |
6657 | no_cache=0 |
6658 | # Check whether --enable-coldlg or --disable-coldlg was given. | |
6659 | if test "${enable_coldlg+set}" = set; then | |
6660 | enableval="$enable_coldlg" | |
6661 | ||
6662 | if test "$enableval" = yes; then | |
6663 | ac_cv_use_coldlg='wxUSE_COLOURDLG=yes' | |
6664 | else | |
6665 | ac_cv_use_coldlg='wxUSE_COLOURDLG=no' | |
6666 | fi | |
6667 | ||
6668 | else | |
6669 | ||
6670 | LINE=`grep "wxUSE_COLOURDLG" ${wx_arg_cache_file}` | |
6671 | if test "x$LINE" != x ; then | |
6672 | eval "DEFAULT_$LINE" | |
6673 | else | |
6674 | no_cache=1 | |
6675 | fi | |
6676 | ||
6677 | ac_cv_use_coldlg='wxUSE_COLOURDLG='$DEFAULT_wxUSE_COLOURDLG | |
6678 | ||
6679 | fi | |
6680 | ||
6681 | ||
6682 | eval "$ac_cv_use_coldlg" | |
6683 | if test "$no_cache" != 1; then | |
6684 | echo $ac_cv_use_coldlg >> ${wx_arg_cache_file}.tmp | |
6685 | fi | |
6686 | ||
6687 | if test "$wxUSE_COLOURDLG" = yes; then | |
6688 | echo "$ac_t""yes" 1>&6 | |
6689 | else | |
6690 | echo "$ac_t""no" 1>&6 | |
6691 | fi | |
6692 | ||
6693 | ||
6694 | echo $ac_n "checking for --enable-filedlg""... $ac_c" 1>&6 | |
edae8572 | 6695 | echo "configure:6696: checking for --enable-filedlg" >&5 |
1e6feb95 VZ |
6696 | no_cache=0 |
6697 | # Check whether --enable-filedlg or --disable-filedlg was given. | |
6698 | if test "${enable_filedlg+set}" = set; then | |
6699 | enableval="$enable_filedlg" | |
6700 | ||
6701 | if test "$enableval" = yes; then | |
6702 | ac_cv_use_filedlg='wxUSE_FILEDLG=yes' | |
6703 | else | |
6704 | ac_cv_use_filedlg='wxUSE_FILEDLG=no' | |
6705 | fi | |
6706 | ||
6707 | else | |
6708 | ||
6709 | LINE=`grep "wxUSE_FILEDLG" ${wx_arg_cache_file}` | |
6710 | if test "x$LINE" != x ; then | |
6711 | eval "DEFAULT_$LINE" | |
6712 | else | |
6713 | no_cache=1 | |
6714 | fi | |
6715 | ||
6716 | ac_cv_use_filedlg='wxUSE_FILEDLG='$DEFAULT_wxUSE_FILEDLG | |
6717 | ||
6718 | fi | |
6719 | ||
6720 | ||
6721 | eval "$ac_cv_use_filedlg" | |
6722 | if test "$no_cache" != 1; then | |
6723 | echo $ac_cv_use_filedlg >> ${wx_arg_cache_file}.tmp | |
6724 | fi | |
6725 | ||
6726 | if test "$wxUSE_FILEDLG" = yes; then | |
6727 | echo "$ac_t""yes" 1>&6 | |
6728 | else | |
6729 | echo "$ac_t""no" 1>&6 | |
6730 | fi | |
6731 | ||
6732 | ||
8db37e06 | 6733 | echo $ac_n "checking for --enable-filedlg""... $ac_c" 1>&6 |
edae8572 | 6734 | echo "configure:6735: checking for --enable-filedlg" >&5 |
8db37e06 VZ |
6735 | no_cache=0 |
6736 | # Check whether --enable-filedlg or --disable-filedlg was given. | |
6737 | if test "${enable_filedlg+set}" = set; then | |
6738 | enableval="$enable_filedlg" | |
6739 | ||
6740 | if test "$enableval" = yes; then | |
6741 | ac_cv_use_filedlg='wxUSE_FINDREPLDLG=yes' | |
6742 | else | |
6743 | ac_cv_use_filedlg='wxUSE_FINDREPLDLG=no' | |
6744 | fi | |
6745 | ||
6746 | else | |
6747 | ||
6748 | LINE=`grep "wxUSE_FINDREPLDLG" ${wx_arg_cache_file}` | |
6749 | if test "x$LINE" != x ; then | |
6750 | eval "DEFAULT_$LINE" | |
6751 | else | |
6752 | no_cache=1 | |
6753 | fi | |
6754 | ||
6755 | ac_cv_use_filedlg='wxUSE_FINDREPLDLG='$DEFAULT_wxUSE_FINDREPLDLG | |
6756 | ||
6757 | fi | |
6758 | ||
6759 | ||
6760 | eval "$ac_cv_use_filedlg" | |
6761 | if test "$no_cache" != 1; then | |
6762 | echo $ac_cv_use_filedlg >> ${wx_arg_cache_file}.tmp | |
6763 | fi | |
6764 | ||
6765 | if test "$wxUSE_FINDREPLDLG" = yes; then | |
6766 | echo "$ac_t""yes" 1>&6 | |
6767 | else | |
6768 | echo "$ac_t""no" 1>&6 | |
6769 | fi | |
6770 | ||
6771 | ||
1e6feb95 | 6772 | echo $ac_n "checking for --enable-fontdlg""... $ac_c" 1>&6 |
edae8572 | 6773 | echo "configure:6774: checking for --enable-fontdlg" >&5 |
1e6feb95 VZ |
6774 | no_cache=0 |
6775 | # Check whether --enable-fontdlg or --disable-fontdlg was given. | |
6776 | if test "${enable_fontdlg+set}" = set; then | |
6777 | enableval="$enable_fontdlg" | |
6778 | ||
6779 | if test "$enableval" = yes; then | |
6780 | ac_cv_use_fontdlg='wxUSE_FONTDLG=yes' | |
6781 | else | |
6782 | ac_cv_use_fontdlg='wxUSE_FONTDLG=no' | |
6783 | fi | |
6784 | ||
6785 | else | |
6786 | ||
6787 | LINE=`grep "wxUSE_FONTDLG" ${wx_arg_cache_file}` | |
6788 | if test "x$LINE" != x ; then | |
6789 | eval "DEFAULT_$LINE" | |
6790 | else | |
6791 | no_cache=1 | |
6792 | fi | |
6793 | ||
6794 | ac_cv_use_fontdlg='wxUSE_FONTDLG='$DEFAULT_wxUSE_FONTDLG | |
6795 | ||
6796 | fi | |
6797 | ||
6798 | ||
6799 | eval "$ac_cv_use_fontdlg" | |
6800 | if test "$no_cache" != 1; then | |
6801 | echo $ac_cv_use_fontdlg >> ${wx_arg_cache_file}.tmp | |
6802 | fi | |
6803 | ||
6804 | if test "$wxUSE_FONTDLG" = yes; then | |
6805 | echo "$ac_t""yes" 1>&6 | |
6806 | else | |
6807 | echo "$ac_t""no" 1>&6 | |
6808 | fi | |
6809 | ||
6810 | ||
6811 | echo $ac_n "checking for --enable-dirdlg""... $ac_c" 1>&6 | |
edae8572 | 6812 | echo "configure:6813: checking for --enable-dirdlg" >&5 |
1e6feb95 VZ |
6813 | no_cache=0 |
6814 | # Check whether --enable-dirdlg or --disable-dirdlg was given. | |
6815 | if test "${enable_dirdlg+set}" = set; then | |
6816 | enableval="$enable_dirdlg" | |
6817 | ||
6818 | if test "$enableval" = yes; then | |
6819 | ac_cv_use_dirdlg='wxUSE_DIRDLG=yes' | |
6820 | else | |
6821 | ac_cv_use_dirdlg='wxUSE_DIRDLG=no' | |
6822 | fi | |
6823 | ||
6824 | else | |
6825 | ||
6826 | LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}` | |
6827 | if test "x$LINE" != x ; then | |
6828 | eval "DEFAULT_$LINE" | |
6829 | else | |
6830 | no_cache=1 | |
6831 | fi | |
6832 | ||
6833 | ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG | |
6834 | ||
6835 | fi | |
6836 | ||
6837 | ||
6838 | eval "$ac_cv_use_dirdlg" | |
10f2d63a | 6839 | if test "$no_cache" != 1; then |
1e6feb95 | 6840 | echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
6841 | fi |
6842 | ||
1e6feb95 | 6843 | if test "$wxUSE_DIRDLG" = yes; then |
698dcdb6 | 6844 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6845 | else |
698dcdb6 | 6846 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6847 | fi |
698dcdb6 VZ |
6848 | |
6849 | ||
1e6feb95 | 6850 | echo $ac_n "checking for --enable-msgdlg""... $ac_c" 1>&6 |
edae8572 | 6851 | echo "configure:6852: checking for --enable-msgdlg" >&5 |
10f2d63a | 6852 | no_cache=0 |
1e6feb95 VZ |
6853 | # Check whether --enable-msgdlg or --disable-msgdlg was given. |
6854 | if test "${enable_msgdlg+set}" = set; then | |
6855 | enableval="$enable_msgdlg" | |
698dcdb6 | 6856 | |
10f2d63a | 6857 | if test "$enableval" = yes; then |
1e6feb95 | 6858 | ac_cv_use_msgdlg='wxUSE_MSGDLG=yes' |
10f2d63a | 6859 | else |
1e6feb95 | 6860 | ac_cv_use_msgdlg='wxUSE_MSGDLG=no' |
10f2d63a | 6861 | fi |
698dcdb6 | 6862 | |
10f2d63a | 6863 | else |
698dcdb6 | 6864 | |
1e6feb95 | 6865 | LINE=`grep "wxUSE_MSGDLG" ${wx_arg_cache_file}` |
10f2d63a VZ |
6866 | if test "x$LINE" != x ; then |
6867 | eval "DEFAULT_$LINE" | |
6868 | else | |
6869 | no_cache=1 | |
6870 | fi | |
6871 | ||
1e6feb95 | 6872 | ac_cv_use_msgdlg='wxUSE_MSGDLG='$DEFAULT_wxUSE_MSGDLG |
698dcdb6 VZ |
6873 | |
6874 | fi | |
10f2d63a VZ |
6875 | |
6876 | ||
1e6feb95 | 6877 | eval "$ac_cv_use_msgdlg" |
10f2d63a | 6878 | if test "$no_cache" != 1; then |
1e6feb95 | 6879 | echo $ac_cv_use_msgdlg >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
6880 | fi |
6881 | ||
1e6feb95 | 6882 | if test "$wxUSE_MSGDLG" = yes; then |
698dcdb6 | 6883 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6884 | else |
698dcdb6 | 6885 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6886 | fi |
698dcdb6 | 6887 | |
10f2d63a | 6888 | |
1e6feb95 | 6889 | echo $ac_n "checking for --enable-numberdlg""... $ac_c" 1>&6 |
edae8572 | 6890 | echo "configure:6891: checking for --enable-numberdlg" >&5 |
10f2d63a | 6891 | no_cache=0 |
1e6feb95 VZ |
6892 | # Check whether --enable-numberdlg or --disable-numberdlg was given. |
6893 | if test "${enable_numberdlg+set}" = set; then | |
6894 | enableval="$enable_numberdlg" | |
698dcdb6 | 6895 | |
10f2d63a | 6896 | if test "$enableval" = yes; then |
1e6feb95 | 6897 | ac_cv_use_numberdlg='wxUSE_NUMBERDLG=yes' |
10f2d63a | 6898 | else |
1e6feb95 | 6899 | ac_cv_use_numberdlg='wxUSE_NUMBERDLG=no' |
10f2d63a | 6900 | fi |
698dcdb6 | 6901 | |
10f2d63a | 6902 | else |
698dcdb6 | 6903 | |
1e6feb95 | 6904 | LINE=`grep "wxUSE_NUMBERDLG" ${wx_arg_cache_file}` |
10f2d63a VZ |
6905 | if test "x$LINE" != x ; then |
6906 | eval "DEFAULT_$LINE" | |
6907 | else | |
6908 | no_cache=1 | |
6909 | fi | |
6910 | ||
1e6feb95 | 6911 | ac_cv_use_numberdlg='wxUSE_NUMBERDLG='$DEFAULT_wxUSE_NUMBERDLG |
698dcdb6 VZ |
6912 | |
6913 | fi | |
10f2d63a VZ |
6914 | |
6915 | ||
1e6feb95 | 6916 | eval "$ac_cv_use_numberdlg" |
10f2d63a | 6917 | if test "$no_cache" != 1; then |
1e6feb95 | 6918 | echo $ac_cv_use_numberdlg >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
6919 | fi |
6920 | ||
1e6feb95 | 6921 | if test "$wxUSE_NUMBERDLG" = yes; then |
698dcdb6 | 6922 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6923 | else |
698dcdb6 | 6924 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6925 | fi |
698dcdb6 | 6926 | |
10f2d63a | 6927 | |
cbca9943 | 6928 | echo $ac_n "checking for --enable-splash""... $ac_c" 1>&6 |
edae8572 | 6929 | echo "configure:6930: checking for --enable-splash" >&5 |
cbca9943 VZ |
6930 | no_cache=0 |
6931 | # Check whether --enable-splash or --disable-splash was given. | |
6932 | if test "${enable_splash+set}" = set; then | |
6933 | enableval="$enable_splash" | |
6934 | ||
6935 | if test "$enableval" = yes; then | |
6936 | ac_cv_use_splash='wxUSE_SPLASH=yes' | |
6937 | else | |
6938 | ac_cv_use_splash='wxUSE_SPLASH=no' | |
6939 | fi | |
6940 | ||
6941 | else | |
6942 | ||
6943 | LINE=`grep "wxUSE_SPLASH" ${wx_arg_cache_file}` | |
6944 | if test "x$LINE" != x ; then | |
6945 | eval "DEFAULT_$LINE" | |
6946 | else | |
6947 | no_cache=1 | |
6948 | fi | |
6949 | ||
6950 | ac_cv_use_splash='wxUSE_SPLASH='$DEFAULT_wxUSE_SPLASH | |
6951 | ||
6952 | fi | |
6953 | ||
6954 | ||
6955 | eval "$ac_cv_use_splash" | |
6956 | if test "$no_cache" != 1; then | |
6957 | echo $ac_cv_use_splash >> ${wx_arg_cache_file}.tmp | |
6958 | fi | |
6959 | ||
6960 | if test "$wxUSE_SPLASH" = yes; then | |
6961 | echo "$ac_t""yes" 1>&6 | |
6962 | else | |
6963 | echo "$ac_t""no" 1>&6 | |
6964 | fi | |
6965 | ||
6966 | ||
698dcdb6 | 6967 | echo $ac_n "checking for --enable-textdlg""... $ac_c" 1>&6 |
edae8572 | 6968 | echo "configure:6969: checking for --enable-textdlg" >&5 |
10f2d63a VZ |
6969 | no_cache=0 |
6970 | # Check whether --enable-textdlg or --disable-textdlg was given. | |
6971 | if test "${enable_textdlg+set}" = set; then | |
6972 | enableval="$enable_textdlg" | |
698dcdb6 | 6973 | |
10f2d63a VZ |
6974 | if test "$enableval" = yes; then |
6975 | ac_cv_use_textdlg='wxUSE_TEXTDLG=yes' | |
6976 | else | |
6977 | ac_cv_use_textdlg='wxUSE_TEXTDLG=no' | |
6978 | fi | |
698dcdb6 | 6979 | |
10f2d63a | 6980 | else |
698dcdb6 | 6981 | |
10f2d63a VZ |
6982 | LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}` |
6983 | if test "x$LINE" != x ; then | |
6984 | eval "DEFAULT_$LINE" | |
6985 | else | |
6986 | no_cache=1 | |
6987 | fi | |
6988 | ||
6989 | ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG | |
698dcdb6 VZ |
6990 | |
6991 | fi | |
10f2d63a VZ |
6992 | |
6993 | ||
6994 | eval "$ac_cv_use_textdlg" | |
6995 | if test "$no_cache" != 1; then | |
6996 | echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp | |
6997 | fi | |
6998 | ||
6999 | if test "$wxUSE_TEXTDLG" = yes; then | |
698dcdb6 | 7000 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7001 | else |
698dcdb6 | 7002 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7003 | fi |
698dcdb6 | 7004 | |
10f2d63a | 7005 | |
698dcdb6 | 7006 | echo $ac_n "checking for --enable-tipdlg""... $ac_c" 1>&6 |
edae8572 | 7007 | echo "configure:7008: checking for --enable-tipdlg" >&5 |
10f2d63a VZ |
7008 | no_cache=0 |
7009 | # Check whether --enable-tipdlg or --disable-tipdlg was given. | |
7010 | if test "${enable_tipdlg+set}" = set; then | |
7011 | enableval="$enable_tipdlg" | |
698dcdb6 | 7012 | |
10f2d63a VZ |
7013 | if test "$enableval" = yes; then |
7014 | ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes' | |
7015 | else | |
7016 | ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no' | |
7017 | fi | |
698dcdb6 | 7018 | |
10f2d63a | 7019 | else |
698dcdb6 | 7020 | |
10f2d63a VZ |
7021 | LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}` |
7022 | if test "x$LINE" != x ; then | |
7023 | eval "DEFAULT_$LINE" | |
7024 | else | |
7025 | no_cache=1 | |
7026 | fi | |
7027 | ||
7028 | ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS | |
698dcdb6 VZ |
7029 | |
7030 | fi | |
10f2d63a VZ |
7031 | |
7032 | ||
7033 | eval "$ac_cv_use_tipdlg" | |
7034 | if test "$no_cache" != 1; then | |
7035 | echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp | |
7036 | fi | |
7037 | ||
7038 | if test "$wxUSE_STARTUP_TIPS" = yes; then | |
698dcdb6 | 7039 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7040 | else |
698dcdb6 | 7041 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7042 | fi |
698dcdb6 | 7043 | |
10f2d63a | 7044 | |
698dcdb6 | 7045 | echo $ac_n "checking for --enable-progressdlg""... $ac_c" 1>&6 |
edae8572 | 7046 | echo "configure:7047: checking for --enable-progressdlg" >&5 |
10f2d63a VZ |
7047 | no_cache=0 |
7048 | # Check whether --enable-progressdlg or --disable-progressdlg was given. | |
7049 | if test "${enable_progressdlg+set}" = set; then | |
7050 | enableval="$enable_progressdlg" | |
698dcdb6 | 7051 | |
10f2d63a VZ |
7052 | if test "$enableval" = yes; then |
7053 | ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes' | |
7054 | else | |
7055 | ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no' | |
7056 | fi | |
698dcdb6 | 7057 | |
10f2d63a | 7058 | else |
698dcdb6 | 7059 | |
10f2d63a VZ |
7060 | LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}` |
7061 | if test "x$LINE" != x ; then | |
7062 | eval "DEFAULT_$LINE" | |
7063 | else | |
7064 | no_cache=1 | |
7065 | fi | |
7066 | ||
7067 | ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG | |
698dcdb6 VZ |
7068 | |
7069 | fi | |
10f2d63a VZ |
7070 | |
7071 | ||
7072 | eval "$ac_cv_use_progressdlg" | |
7073 | if test "$no_cache" != 1; then | |
7074 | echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp | |
7075 | fi | |
7076 | ||
7077 | if test "$wxUSE_PROGRESSDLG" = yes; then | |
698dcdb6 | 7078 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7079 | else |
698dcdb6 | 7080 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7081 | fi |
698dcdb6 | 7082 | |
10f2d63a | 7083 | |
b1f5d087 | 7084 | echo $ac_n "checking for --enable-wizarddlg""... $ac_c" 1>&6 |
edae8572 | 7085 | echo "configure:7086: checking for --enable-wizarddlg" >&5 |
b1f5d087 VZ |
7086 | no_cache=0 |
7087 | # Check whether --enable-wizarddlg or --disable-wizarddlg was given. | |
7088 | if test "${enable_wizarddlg+set}" = set; then | |
7089 | enableval="$enable_wizarddlg" | |
7090 | ||
7091 | if test "$enableval" = yes; then | |
7092 | ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=yes' | |
7093 | else | |
7094 | ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=no' | |
7095 | fi | |
7096 | ||
7097 | else | |
7098 | ||
7099 | LINE=`grep "wxUSE_WIZARDDLG" ${wx_arg_cache_file}` | |
7100 | if test "x$LINE" != x ; then | |
7101 | eval "DEFAULT_$LINE" | |
7102 | else | |
7103 | no_cache=1 | |
7104 | fi | |
7105 | ||
7106 | ac_cv_use_wizarddlg='wxUSE_WIZARDDLG='$DEFAULT_wxUSE_WIZARDDLG | |
7107 | ||
7108 | fi | |
7109 | ||
7110 | ||
7111 | eval "$ac_cv_use_wizarddlg" | |
7112 | if test "$no_cache" != 1; then | |
7113 | echo $ac_cv_use_wizarddlg >> ${wx_arg_cache_file}.tmp | |
7114 | fi | |
7115 | ||
7116 | if test "$wxUSE_WIZARDDLG" = yes; then | |
7117 | echo "$ac_t""yes" 1>&6 | |
7118 | else | |
7119 | echo "$ac_t""no" 1>&6 | |
7120 | fi | |
7121 | ||
7122 | ||
7123 | ||
7124 | ||
1e6feb95 | 7125 | echo $ac_n "checking for --enable-menus""... $ac_c" 1>&6 |
edae8572 | 7126 | echo "configure:7127: checking for --enable-menus" >&5 |
1e6feb95 VZ |
7127 | no_cache=0 |
7128 | # Check whether --enable-menus or --disable-menus was given. | |
7129 | if test "${enable_menus+set}" = set; then | |
7130 | enableval="$enable_menus" | |
7131 | ||
7132 | if test "$enableval" = yes; then | |
7133 | ac_cv_use_menus='wxUSE_MENUS=yes' | |
7134 | else | |
7135 | ac_cv_use_menus='wxUSE_MENUS=no' | |
7136 | fi | |
7137 | ||
7138 | else | |
7139 | ||
7140 | LINE=`grep "wxUSE_MENUS" ${wx_arg_cache_file}` | |
7141 | if test "x$LINE" != x ; then | |
7142 | eval "DEFAULT_$LINE" | |
7143 | else | |
7144 | no_cache=1 | |
7145 | fi | |
7146 | ||
7147 | ac_cv_use_menus='wxUSE_MENUS='$DEFAULT_wxUSE_MENUS | |
7148 | ||
7149 | fi | |
7150 | ||
7151 | ||
7152 | eval "$ac_cv_use_menus" | |
7153 | if test "$no_cache" != 1; then | |
7154 | echo $ac_cv_use_menus >> ${wx_arg_cache_file}.tmp | |
7155 | fi | |
7156 | ||
7157 | if test "$wxUSE_MENUS" = yes; then | |
7158 | echo "$ac_t""yes" 1>&6 | |
7159 | else | |
7160 | echo "$ac_t""no" 1>&6 | |
7161 | fi | |
7162 | ||
7163 | ||
698dcdb6 | 7164 | echo $ac_n "checking for --enable-miniframe""... $ac_c" 1>&6 |
edae8572 | 7165 | echo "configure:7166: checking for --enable-miniframe" >&5 |
10f2d63a VZ |
7166 | no_cache=0 |
7167 | # Check whether --enable-miniframe or --disable-miniframe was given. | |
7168 | if test "${enable_miniframe+set}" = set; then | |
7169 | enableval="$enable_miniframe" | |
698dcdb6 | 7170 | |
10f2d63a VZ |
7171 | if test "$enableval" = yes; then |
7172 | ac_cv_use_miniframe='wxUSE_MINIFRAME=yes' | |
7173 | else | |
7174 | ac_cv_use_miniframe='wxUSE_MINIFRAME=no' | |
7175 | fi | |
698dcdb6 | 7176 | |
10f2d63a | 7177 | else |
698dcdb6 | 7178 | |
10f2d63a VZ |
7179 | LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}` |
7180 | if test "x$LINE" != x ; then | |
7181 | eval "DEFAULT_$LINE" | |
7182 | else | |
7183 | no_cache=1 | |
7184 | fi | |
7185 | ||
7186 | ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME | |
698dcdb6 VZ |
7187 | |
7188 | fi | |
10f2d63a VZ |
7189 | |
7190 | ||
7191 | eval "$ac_cv_use_miniframe" | |
7192 | if test "$no_cache" != 1; then | |
7193 | echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp | |
7194 | fi | |
7195 | ||
7196 | if test "$wxUSE_MINIFRAME" = yes; then | |
698dcdb6 | 7197 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7198 | else |
698dcdb6 | 7199 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7200 | fi |
698dcdb6 | 7201 | |
10f2d63a | 7202 | |
698dcdb6 | 7203 | echo $ac_n "checking for --enable-tooltips""... $ac_c" 1>&6 |
edae8572 | 7204 | echo "configure:7205: checking for --enable-tooltips" >&5 |
10f2d63a VZ |
7205 | no_cache=0 |
7206 | # Check whether --enable-tooltips or --disable-tooltips was given. | |
7207 | if test "${enable_tooltips+set}" = set; then | |
7208 | enableval="$enable_tooltips" | |
698dcdb6 | 7209 | |
10f2d63a VZ |
7210 | if test "$enableval" = yes; then |
7211 | ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes' | |
7212 | else | |
7213 | ac_cv_use_tooltips='wxUSE_TOOLTIPS=no' | |
7214 | fi | |
698dcdb6 | 7215 | |
10f2d63a | 7216 | else |
698dcdb6 | 7217 | |
10f2d63a VZ |
7218 | LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}` |
7219 | if test "x$LINE" != x ; then | |
7220 | eval "DEFAULT_$LINE" | |
7221 | else | |
7222 | no_cache=1 | |
7223 | fi | |
7224 | ||
7225 | ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS | |
698dcdb6 VZ |
7226 | |
7227 | fi | |
10f2d63a VZ |
7228 | |
7229 | ||
7230 | eval "$ac_cv_use_tooltips" | |
7231 | if test "$no_cache" != 1; then | |
7232 | echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp | |
7233 | fi | |
7234 | ||
7235 | if test "$wxUSE_TOOLTIPS" = yes; then | |
698dcdb6 | 7236 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7237 | else |
698dcdb6 | 7238 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7239 | fi |
698dcdb6 | 7240 | |
10f2d63a | 7241 | |
698dcdb6 | 7242 | echo $ac_n "checking for --enable-splines""... $ac_c" 1>&6 |
edae8572 | 7243 | echo "configure:7244: checking for --enable-splines" >&5 |
10f2d63a VZ |
7244 | no_cache=0 |
7245 | # Check whether --enable-splines or --disable-splines was given. | |
7246 | if test "${enable_splines+set}" = set; then | |
7247 | enableval="$enable_splines" | |
698dcdb6 | 7248 | |
10f2d63a VZ |
7249 | if test "$enableval" = yes; then |
7250 | ac_cv_use_splines='wxUSE_SPLINES=yes' | |
7251 | else | |
7252 | ac_cv_use_splines='wxUSE_SPLINES=no' | |
7253 | fi | |
698dcdb6 | 7254 | |
10f2d63a | 7255 | else |
698dcdb6 | 7256 | |
10f2d63a VZ |
7257 | LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}` |
7258 | if test "x$LINE" != x ; then | |
7259 | eval "DEFAULT_$LINE" | |
7260 | else | |
7261 | no_cache=1 | |
7262 | fi | |
7263 | ||
7264 | ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES | |
698dcdb6 VZ |
7265 | |
7266 | fi | |
10f2d63a VZ |
7267 | |
7268 | ||
7269 | eval "$ac_cv_use_splines" | |
7270 | if test "$no_cache" != 1; then | |
7271 | echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp | |
7272 | fi | |
7273 | ||
7274 | if test "$wxUSE_SPLINES" = yes; then | |
698dcdb6 | 7275 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7276 | else |
698dcdb6 | 7277 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7278 | fi |
698dcdb6 | 7279 | |
10f2d63a | 7280 | |
698dcdb6 | 7281 | echo $ac_n "checking for --enable-validators""... $ac_c" 1>&6 |
edae8572 | 7282 | echo "configure:7283: checking for --enable-validators" >&5 |
10f2d63a VZ |
7283 | no_cache=0 |
7284 | # Check whether --enable-validators or --disable-validators was given. | |
7285 | if test "${enable_validators+set}" = set; then | |
7286 | enableval="$enable_validators" | |
698dcdb6 | 7287 | |
10f2d63a VZ |
7288 | if test "$enableval" = yes; then |
7289 | ac_cv_use_validators='wxUSE_VALIDATORS=yes' | |
7290 | else | |
7291 | ac_cv_use_validators='wxUSE_VALIDATORS=no' | |
7292 | fi | |
698dcdb6 | 7293 | |
10f2d63a | 7294 | else |
698dcdb6 | 7295 | |
10f2d63a VZ |
7296 | LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}` |
7297 | if test "x$LINE" != x ; then | |
7298 | eval "DEFAULT_$LINE" | |
7299 | else | |
7300 | no_cache=1 | |
7301 | fi | |
7302 | ||
7303 | ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS | |
698dcdb6 VZ |
7304 | |
7305 | fi | |
10f2d63a VZ |
7306 | |
7307 | ||
7308 | eval "$ac_cv_use_validators" | |
7309 | if test "$no_cache" != 1; then | |
7310 | echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp | |
7311 | fi | |
7312 | ||
7313 | if test "$wxUSE_VALIDATORS" = yes; then | |
698dcdb6 | 7314 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7315 | else |
698dcdb6 | 7316 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7317 | fi |
698dcdb6 | 7318 | |
10f2d63a | 7319 | |
698dcdb6 | 7320 | echo $ac_n "checking for --enable-busyinfo""... $ac_c" 1>&6 |
edae8572 | 7321 | echo "configure:7322: checking for --enable-busyinfo" >&5 |
10f2d63a VZ |
7322 | no_cache=0 |
7323 | # Check whether --enable-busyinfo or --disable-busyinfo was given. | |
7324 | if test "${enable_busyinfo+set}" = set; then | |
7325 | enableval="$enable_busyinfo" | |
698dcdb6 | 7326 | |
10f2d63a VZ |
7327 | if test "$enableval" = yes; then |
7328 | ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes' | |
7329 | else | |
7330 | ac_cv_use_busyinfo='wxUSE_BUSYINFO=no' | |
7331 | fi | |
698dcdb6 | 7332 | |
10f2d63a | 7333 | else |
698dcdb6 | 7334 | |
10f2d63a VZ |
7335 | LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}` |
7336 | if test "x$LINE" != x ; then | |
7337 | eval "DEFAULT_$LINE" | |
7338 | else | |
7339 | no_cache=1 | |
7340 | fi | |
7341 | ||
7342 | ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO | |
698dcdb6 VZ |
7343 | |
7344 | fi | |
10f2d63a VZ |
7345 | |
7346 | ||
7347 | eval "$ac_cv_use_busyinfo" | |
7348 | if test "$no_cache" != 1; then | |
7349 | echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp | |
7350 | fi | |
7351 | ||
7352 | if test "$wxUSE_BUSYINFO" = yes; then | |
698dcdb6 | 7353 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7354 | else |
698dcdb6 | 7355 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7356 | fi |
698dcdb6 | 7357 | |
10f2d63a | 7358 | |
698dcdb6 | 7359 | echo $ac_n "checking for --enable-joystick""... $ac_c" 1>&6 |
edae8572 | 7360 | echo "configure:7361: checking for --enable-joystick" >&5 |
f6bcfd97 BP |
7361 | no_cache=0 |
7362 | # Check whether --enable-joystick or --disable-joystick was given. | |
7363 | if test "${enable_joystick+set}" = set; then | |
7364 | enableval="$enable_joystick" | |
698dcdb6 | 7365 | |
f6bcfd97 BP |
7366 | if test "$enableval" = yes; then |
7367 | ac_cv_use_joystick='wxUSE_JOYSTICK=yes' | |
7368 | else | |
7369 | ac_cv_use_joystick='wxUSE_JOYSTICK=no' | |
7370 | fi | |
698dcdb6 | 7371 | |
f6bcfd97 | 7372 | else |
698dcdb6 | 7373 | |
f6bcfd97 BP |
7374 | LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}` |
7375 | if test "x$LINE" != x ; then | |
7376 | eval "DEFAULT_$LINE" | |
7377 | else | |
7378 | no_cache=1 | |
7379 | fi | |
7380 | ||
7381 | ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK | |
698dcdb6 VZ |
7382 | |
7383 | fi | |
f6bcfd97 BP |
7384 | |
7385 | ||
7386 | eval "$ac_cv_use_joystick" | |
7387 | if test "$no_cache" != 1; then | |
7388 | echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp | |
7389 | fi | |
7390 | ||
7391 | if test "$wxUSE_JOYSTICK" = yes; then | |
698dcdb6 | 7392 | echo "$ac_t""yes" 1>&6 |
f6bcfd97 | 7393 | else |
698dcdb6 | 7394 | echo "$ac_t""no" 1>&6 |
f6bcfd97 | 7395 | fi |
698dcdb6 VZ |
7396 | |
7397 | ||
1e6feb95 | 7398 | echo $ac_n "checking for --enable-metafile""... $ac_c" 1>&6 |
edae8572 | 7399 | echo "configure:7400: checking for --enable-metafile" >&5 |
1e6feb95 VZ |
7400 | no_cache=0 |
7401 | # Check whether --enable-metafile or --disable-metafile was given. | |
7402 | if test "${enable_metafile+set}" = set; then | |
7403 | enableval="$enable_metafile" | |
7404 | ||
7405 | if test "$enableval" = yes; then | |
7406 | ac_cv_use_metafile='wxUSE_METAFILE=yes' | |
7407 | else | |
7408 | ac_cv_use_metafile='wxUSE_METAFILE=no' | |
7409 | fi | |
7410 | ||
7411 | else | |
7412 | ||
7413 | LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}` | |
7414 | if test "x$LINE" != x ; then | |
7415 | eval "DEFAULT_$LINE" | |
7416 | else | |
7417 | no_cache=1 | |
7418 | fi | |
7419 | ||
7420 | ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE | |
7421 | ||
7422 | fi | |
7423 | ||
7424 | ||
7425 | eval "$ac_cv_use_metafile" | |
7426 | if test "$no_cache" != 1; then | |
7427 | echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp | |
7428 | fi | |
7429 | ||
7430 | if test "$wxUSE_METAFILE" = yes; then | |
7431 | echo "$ac_t""yes" 1>&6 | |
7432 | else | |
7433 | echo "$ac_t""no" 1>&6 | |
7434 | fi | |
7435 | ||
7436 | ||
24fd6d87 | 7437 | echo $ac_n "checking for --enable-dragimage""... $ac_c" 1>&6 |
edae8572 | 7438 | echo "configure:7439: checking for --enable-dragimage" >&5 |
24fd6d87 VZ |
7439 | no_cache=0 |
7440 | # Check whether --enable-dragimage or --disable-dragimage was given. | |
7441 | if test "${enable_dragimage+set}" = set; then | |
7442 | enableval="$enable_dragimage" | |
7443 | ||
7444 | if test "$enableval" = yes; then | |
7445 | ac_cv_use_dragimage='wxUSE_DRAGIMAGE=yes' | |
7446 | else | |
7447 | ac_cv_use_dragimage='wxUSE_DRAGIMAGE=no' | |
7448 | fi | |
7449 | ||
7450 | else | |
7451 | ||
7452 | LINE=`grep "wxUSE_DRAGIMAGE" ${wx_arg_cache_file}` | |
7453 | if test "x$LINE" != x ; then | |
7454 | eval "DEFAULT_$LINE" | |
7455 | else | |
7456 | no_cache=1 | |
7457 | fi | |
7458 | ||
7459 | ac_cv_use_dragimage='wxUSE_DRAGIMAGE='$DEFAULT_wxUSE_DRAGIMAGE | |
7460 | ||
7461 | fi | |
7462 | ||
7463 | ||
7464 | eval "$ac_cv_use_dragimage" | |
7465 | if test "$no_cache" != 1; then | |
7466 | echo $ac_cv_use_dragimage >> ${wx_arg_cache_file}.tmp | |
7467 | fi | |
7468 | ||
7469 | if test "$wxUSE_DRAGIMAGE" = yes; then | |
7470 | echo "$ac_t""yes" 1>&6 | |
7471 | else | |
7472 | echo "$ac_t""no" 1>&6 | |
7473 | fi | |
7474 | ||
7475 | ||
10f2d63a | 7476 | |
698dcdb6 | 7477 | |
edae8572 VZ |
7478 | echo $ac_n "checking for --enable-palette""... $ac_c" 1>&6 |
7479 | echo "configure:7480: checking for --enable-palette" >&5 | |
7480 | no_cache=0 | |
7481 | # Check whether --enable-palette or --disable-palette was given. | |
7482 | if test "${enable_palette+set}" = set; then | |
7483 | enableval="$enable_palette" | |
7484 | ||
7485 | if test "$enableval" = yes; then | |
7486 | ac_cv_use_palette='wxUSE_PALETTE=yes' | |
7487 | else | |
7488 | ac_cv_use_palette='wxUSE_PALETTE=no' | |
7489 | fi | |
7490 | ||
7491 | else | |
7492 | ||
7493 | LINE=`grep "wxUSE_PALETTE" ${wx_arg_cache_file}` | |
7494 | if test "x$LINE" != x ; then | |
7495 | eval "DEFAULT_$LINE" | |
7496 | else | |
7497 | no_cache=1 | |
7498 | fi | |
7499 | ||
7500 | ac_cv_use_palette='wxUSE_PALETTE='$DEFAULT_wxUSE_PALETTE | |
7501 | ||
7502 | fi | |
7503 | ||
7504 | ||
7505 | eval "$ac_cv_use_palette" | |
7506 | if test "$no_cache" != 1; then | |
7507 | echo $ac_cv_use_palette >> ${wx_arg_cache_file}.tmp | |
7508 | fi | |
7509 | ||
7510 | if test "$wxUSE_PALETTE" = yes; then | |
7511 | echo "$ac_t""yes" 1>&6 | |
7512 | else | |
7513 | echo "$ac_t""no" 1>&6 | |
7514 | fi | |
7515 | ||
7516 | ||
698dcdb6 | 7517 | echo $ac_n "checking for --enable-image""... $ac_c" 1>&6 |
edae8572 | 7518 | echo "configure:7519: checking for --enable-image" >&5 |
0046ff7c VS |
7519 | no_cache=0 |
7520 | # Check whether --enable-image or --disable-image was given. | |
7521 | if test "${enable_image+set}" = set; then | |
7522 | enableval="$enable_image" | |
698dcdb6 | 7523 | |
0046ff7c VS |
7524 | if test "$enableval" = yes; then |
7525 | ac_cv_use_image='wxUSE_IMAGE=yes' | |
7526 | else | |
7527 | ac_cv_use_image='wxUSE_IMAGE=no' | |
7528 | fi | |
698dcdb6 | 7529 | |
0046ff7c | 7530 | else |
698dcdb6 | 7531 | |
0046ff7c VS |
7532 | LINE=`grep "wxUSE_IMAGE" ${wx_arg_cache_file}` |
7533 | if test "x$LINE" != x ; then | |
7534 | eval "DEFAULT_$LINE" | |
7535 | else | |
7536 | no_cache=1 | |
7537 | fi | |
7538 | ||
7539 | ac_cv_use_image='wxUSE_IMAGE='$DEFAULT_wxUSE_IMAGE | |
698dcdb6 VZ |
7540 | |
7541 | fi | |
0046ff7c VS |
7542 | |
7543 | ||
7544 | eval "$ac_cv_use_image" | |
7545 | if test "$no_cache" != 1; then | |
7546 | echo $ac_cv_use_image >> ${wx_arg_cache_file}.tmp | |
7547 | fi | |
7548 | ||
7549 | if test "$wxUSE_IMAGE" = yes; then | |
698dcdb6 | 7550 | echo "$ac_t""yes" 1>&6 |
0046ff7c | 7551 | else |
698dcdb6 | 7552 | echo "$ac_t""no" 1>&6 |
0046ff7c | 7553 | fi |
698dcdb6 | 7554 | |
0046ff7c | 7555 | |
698dcdb6 | 7556 | echo $ac_n "checking for --enable-gif""... $ac_c" 1>&6 |
edae8572 | 7557 | echo "configure:7558: checking for --enable-gif" >&5 |
10f2d63a VZ |
7558 | no_cache=0 |
7559 | # Check whether --enable-gif or --disable-gif was given. | |
7560 | if test "${enable_gif+set}" = set; then | |
7561 | enableval="$enable_gif" | |
698dcdb6 | 7562 | |
10f2d63a VZ |
7563 | if test "$enableval" = yes; then |
7564 | ac_cv_use_gif='wxUSE_GIF=yes' | |
7565 | else | |
7566 | ac_cv_use_gif='wxUSE_GIF=no' | |
7567 | fi | |
698dcdb6 | 7568 | |
10f2d63a | 7569 | else |
698dcdb6 | 7570 | |
10f2d63a VZ |
7571 | LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}` |
7572 | if test "x$LINE" != x ; then | |
7573 | eval "DEFAULT_$LINE" | |
7574 | else | |
7575 | no_cache=1 | |
7576 | fi | |
7577 | ||
7578 | ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF | |
698dcdb6 VZ |
7579 | |
7580 | fi | |
10f2d63a VZ |
7581 | |
7582 | ||
7583 | eval "$ac_cv_use_gif" | |
7584 | if test "$no_cache" != 1; then | |
7585 | echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp | |
7586 | fi | |
7587 | ||
7588 | if test "$wxUSE_GIF" = yes; then | |
698dcdb6 | 7589 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7590 | else |
698dcdb6 | 7591 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7592 | fi |
698dcdb6 | 7593 | |
10f2d63a | 7594 | |
698dcdb6 | 7595 | echo $ac_n "checking for --enable-pcx""... $ac_c" 1>&6 |
edae8572 | 7596 | echo "configure:7597: checking for --enable-pcx" >&5 |
10f2d63a VZ |
7597 | no_cache=0 |
7598 | # Check whether --enable-pcx or --disable-pcx was given. | |
7599 | if test "${enable_pcx+set}" = set; then | |
7600 | enableval="$enable_pcx" | |
698dcdb6 | 7601 | |
10f2d63a VZ |
7602 | if test "$enableval" = yes; then |
7603 | ac_cv_use_pcx='wxUSE_PCX=yes' | |
7604 | else | |
7605 | ac_cv_use_pcx='wxUSE_PCX=no' | |
7606 | fi | |
698dcdb6 | 7607 | |
10f2d63a | 7608 | else |
698dcdb6 | 7609 | |
10f2d63a VZ |
7610 | LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}` |
7611 | if test "x$LINE" != x ; then | |
7612 | eval "DEFAULT_$LINE" | |
7613 | else | |
7614 | no_cache=1 | |
7615 | fi | |
7616 | ||
7617 | ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX | |
698dcdb6 VZ |
7618 | |
7619 | fi | |
10f2d63a VZ |
7620 | |
7621 | ||
7622 | eval "$ac_cv_use_pcx" | |
7623 | if test "$no_cache" != 1; then | |
7624 | echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp | |
7625 | fi | |
7626 | ||
7627 | if test "$wxUSE_PCX" = yes; then | |
698dcdb6 | 7628 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7629 | else |
698dcdb6 | 7630 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7631 | fi |
698dcdb6 | 7632 | |
10f2d63a | 7633 | |
698dcdb6 | 7634 | echo $ac_n "checking for --enable-pnm""... $ac_c" 1>&6 |
edae8572 | 7635 | echo "configure:7636: checking for --enable-pnm" >&5 |
10f2d63a VZ |
7636 | no_cache=0 |
7637 | # Check whether --enable-pnm or --disable-pnm was given. | |
7638 | if test "${enable_pnm+set}" = set; then | |
7639 | enableval="$enable_pnm" | |
698dcdb6 | 7640 | |
10f2d63a VZ |
7641 | if test "$enableval" = yes; then |
7642 | ac_cv_use_pnm='wxUSE_PNM=yes' | |
7643 | else | |
7644 | ac_cv_use_pnm='wxUSE_PNM=no' | |
7645 | fi | |
698dcdb6 | 7646 | |
10f2d63a | 7647 | else |
698dcdb6 | 7648 | |
10f2d63a VZ |
7649 | LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}` |
7650 | if test "x$LINE" != x ; then | |
7651 | eval "DEFAULT_$LINE" | |
7652 | else | |
7653 | no_cache=1 | |
7654 | fi | |
7655 | ||
7656 | ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM | |
698dcdb6 VZ |
7657 | |
7658 | fi | |
10f2d63a VZ |
7659 | |
7660 | ||
7661 | eval "$ac_cv_use_pnm" | |
7662 | if test "$no_cache" != 1; then | |
7663 | echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp | |
7664 | fi | |
7665 | ||
7666 | if test "$wxUSE_PNM" = yes; then | |
698dcdb6 | 7667 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7668 | else |
698dcdb6 | 7669 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7670 | fi |
698dcdb6 | 7671 | |
10f2d63a | 7672 | |
698dcdb6 | 7673 | echo $ac_n "checking for --enable-pnm""... $ac_c" 1>&6 |
edae8572 | 7674 | echo "configure:7675: checking for --enable-pnm" >&5 |
0046ff7c VS |
7675 | no_cache=0 |
7676 | # Check whether --enable-pnm or --disable-pnm was given. | |
7677 | if test "${enable_pnm+set}" = set; then | |
7678 | enableval="$enable_pnm" | |
698dcdb6 | 7679 | |
0046ff7c VS |
7680 | if test "$enableval" = yes; then |
7681 | ac_cv_use_pnm='wxUSE_XPM=yes' | |
7682 | else | |
7683 | ac_cv_use_pnm='wxUSE_XPM=no' | |
7684 | fi | |
698dcdb6 | 7685 | |
0046ff7c | 7686 | else |
698dcdb6 | 7687 | |
0046ff7c VS |
7688 | LINE=`grep "wxUSE_XPM" ${wx_arg_cache_file}` |
7689 | if test "x$LINE" != x ; then | |
7690 | eval "DEFAULT_$LINE" | |
7691 | else | |
7692 | no_cache=1 | |
7693 | fi | |
7694 | ||
7695 | ac_cv_use_pnm='wxUSE_XPM='$DEFAULT_wxUSE_XPM | |
698dcdb6 VZ |
7696 | |
7697 | fi | |
0046ff7c VS |
7698 | |
7699 | ||
7700 | eval "$ac_cv_use_pnm" | |
7701 | if test "$no_cache" != 1; then | |
7702 | echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp | |
7703 | fi | |
7704 | ||
7705 | if test "$wxUSE_XPM" = yes; then | |
698dcdb6 | 7706 | echo "$ac_t""yes" 1>&6 |
0046ff7c | 7707 | else |
698dcdb6 | 7708 | echo "$ac_t""no" 1>&6 |
0046ff7c | 7709 | fi |
698dcdb6 | 7710 | |
0046ff7c | 7711 | |
b12915c1 VZ |
7712 | fi |
7713 | ||
698dcdb6 | 7714 | |
10f2d63a VZ |
7715 | echo "saving argument cache $wx_arg_cache_file" |
7716 | mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file} | |
698dcdb6 | 7717 | |
10f2d63a | 7718 | |
698dcdb6 VZ |
7719 | |
7720 | echo $ac_n "checking for toolkit""... $ac_c" 1>&6 | |
edae8572 | 7721 | echo "configure:7722: checking for toolkit" >&5 |
10f2d63a VZ |
7722 | |
7723 | if test "$wxUSE_GUI" = "yes"; then | |
7724 | ||
3a922bb4 RL |
7725 | if test "$USE_BEOS" = 1; then |
7726 | { echo "configure: error: BeOS GUI is not supported yet, use --disable-gui" 1>&2; exit 1; } | |
7727 | fi | |
b12915c1 | 7728 | |
3a922bb4 RL |
7729 | if test "$TOOLKIT_GIVEN" = 1; then |
7730 | for toolkit in `echo $ALL_TOOLKITS`; do | |
7731 | var=wxUSE_$toolkit | |
7732 | eval "value=\$${var}" | |
7733 | eval "$var=`echo \$value | sed -e "s/yes/1/" -e "s/no/0/"`" | |
7734 | done | |
10f2d63a | 7735 | else |
3a922bb4 RL |
7736 | for toolkit in `echo $ALL_TOOLKITS`; do |
7737 | if test "$has_toolkit_in_cache" != 1; then | |
7738 | var=DEFAULT_DEFAULT_wxUSE_$toolkit | |
7739 | else | |
7740 | var=DEFAULT_wxUSE_$toolkit | |
7741 | fi | |
7742 | eval "wxUSE_$toolkit=\$${var}" | |
7743 | done | |
10f2d63a | 7744 | fi |
10f2d63a | 7745 | |
3a922bb4 RL |
7746 | NUM_TOOLKITS=`expr ${wxUSE_GTK:-0} + ${wxUSE_MOTIF:-0} + ${wxUSE_MAC:-0} \ |
7747 | + ${wxUSE_WINE:-0} + ${wxUSE_MINGW:-0} + ${wxUSE_CYGWIN:-0} \ | |
7748 | + ${wxUSE_MGL:-0}` | |
10f2d63a | 7749 | |
3a922bb4 RL |
7750 | case "${host}" in |
7751 | *-pc-os2_emx ) | |
7752 | # PATH_IFS is autodetected by OS/2's configure (usually ';') | |
7753 | NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}` | |
7754 | LEX_STEM="lexyy" | |
7755 | ;; | |
7756 | *) | |
7757 | PATH_IFS=':' | |
7758 | LEX_STEM="lex.yy" | |
7759 | ;; | |
7760 | esac | |
10f2d63a | 7761 | |
3a922bb4 RL |
7762 | case "$NUM_TOOLKITS" in |
7763 | 1) | |
7764 | ;; | |
7765 | 0) | |
7766 | { echo "configure: error: Please specify a toolkit - cannot determine the default for ${host}" 1>&2; exit 1; } | |
7767 | ;; | |
7768 | *) | |
7769 | { echo "configure: error: Please specify at most one toolkit (may be some are cached?)" 1>&2; exit 1; } | |
7770 | esac | |
10f2d63a | 7771 | |
3a922bb4 RL |
7772 | for toolkit in `echo $ALL_TOOLKITS`; do |
7773 | var=wxUSE_$toolkit | |
7774 | eval "value=\$${var}" | |
7775 | if test "x$value" != x; then | |
7776 | cache_var=CACHE_$toolkit | |
7777 | eval "cache=\$${cache_var}" | |
7778 | if test "$cache" = 1; then | |
7779 | echo "$var=$value" >> ${wx_arg_cache_file} | |
7780 | fi | |
7781 | if test "$value" = 1; then | |
7782 | toolkit_echo=`echo $toolkit | tr [A-Z] [a-z]` | |
7783 | echo "$ac_t""$toolkit_echo" 1>&6 | |
7784 | fi | |
7785 | fi | |
7786 | done | |
10f2d63a | 7787 | else |
cf27ef00 | 7788 | PATH_IFS=':' |
3a922bb4 | 7789 | echo "$ac_t""base ($host_alias hosted) only" 1>&6 |
10f2d63a VZ |
7790 | fi |
7791 | ||
698dcdb6 VZ |
7792 | |
7793 | cat > confcache <<\EOF | |
10f2d63a VZ |
7794 | # This file is a shell script that caches the results of configure |
7795 | # tests run on this system so they can be shared between configure | |
698dcdb6 VZ |
7796 | # scripts and configure runs. It is not useful on other systems. |
7797 | # If it contains results you don't want to keep, you may remove or edit it. | |
10f2d63a | 7798 | # |
698dcdb6 VZ |
7799 | # By default, configure uses ./config.cache as the cache file, |
7800 | # creating it if it does not exist already. You can give configure | |
7801 | # the --cache-file=FILE option to use a different cache file; that is | |
7802 | # what configure does when it calls configure scripts in | |
7803 | # subdirectories, so they share the cache. | |
7804 | # Giving --cache-file=/dev/null disables caching, for debugging configure. | |
7805 | # config.status only pays attention to the cache file if you give it the | |
7806 | # --recheck option to rerun configure. | |
10f2d63a | 7807 | # |
698dcdb6 | 7808 | EOF |
10f2d63a VZ |
7809 | # The following way of writing the cache mishandles newlines in values, |
7810 | # but we know of no workaround that is simple, portable, and efficient. | |
7811 | # So, don't put newlines in cache variables' values. | |
7812 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
7813 | # and sets the high bit in the cache file unless we assign to the vars. | |
698dcdb6 VZ |
7814 | (set) 2>&1 | |
7815 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
7816 | *ac_space=\ *) | |
7817 | # `set' does not quote correctly, so add quotes (double-quote substitution | |
7818 | # turns \\\\ into \\, and sed turns \\ into \). | |
7819 | sed -n \ | |
7820 | -e "s/'/'\\\\''/g" \ | |
7821 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" | |
7822 | ;; | |
7823 | *) | |
7824 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
7825 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' | |
7826 | ;; | |
7827 | esac >> confcache | |
7828 | if cmp -s $cache_file confcache; then | |
7829 | : | |
7830 | else | |
10f2d63a | 7831 | if test -w $cache_file; then |
698dcdb6 VZ |
7832 | echo "updating cache $cache_file" |
7833 | cat confcache > $cache_file | |
10f2d63a VZ |
7834 | else |
7835 | echo "not updating unwritable cache $cache_file" | |
7836 | fi | |
7837 | fi | |
7838 | rm -f confcache | |
7839 | ||
698dcdb6 | 7840 | |
e59890c3 | 7841 | if test "$build" != "$host" ; then |
3a922bb4 RL |
7842 | if test "$USE_WIN32" = 1 ; then |
7843 | CC=$host_alias-gcc | |
7844 | CXX=$host_alias-c++ | |
7845 | AR=$host_alias-ar | |
7846 | RANLIB=$host_alias-ranlib | |
7847 | DLLTOOL=$host_alias-dlltool | |
7848 | RESCOMP=$host_alias-windres | |
7849 | LD=$host_alias-ld | |
7850 | NM=$host_alias-nm | |
7851 | STRIP=$host_alias-strip | |
7852 | else | |
7853 | { echo "configure: error: $build_alias -> $host_alias cross compilation not supported yet." 1>&2; exit 1; } | |
7854 | fi | |
10f2d63a VZ |
7855 | fi |
7856 | ||
698dcdb6 | 7857 | # Extract the first word of "gcc", so it can be a program name with args. |
1e487827 | 7858 | set dummy gcc; ac_word=$2 |
698dcdb6 | 7859 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
edae8572 | 7860 | echo "configure:7861: checking for $ac_word" >&5 |
698dcdb6 VZ |
7861 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
7862 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6232543b VS |
7863 | else |
7864 | if test -n "$CC"; then | |
7865 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
10f2d63a | 7866 | else |
698dcdb6 VZ |
7867 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
7868 | ac_dummy="$PATH" | |
7869 | for ac_dir in $ac_dummy; do | |
7870 | test -z "$ac_dir" && ac_dir=. | |
7871 | if test -f $ac_dir/$ac_word; then | |
7872 | ac_cv_prog_CC="gcc" | |
7873 | break | |
7874 | fi | |
7875 | done | |
7876 | IFS="$ac_save_ifs" | |
10f2d63a | 7877 | fi |
6232543b | 7878 | fi |
698dcdb6 | 7879 | CC="$ac_cv_prog_CC" |
6232543b | 7880 | if test -n "$CC"; then |
698dcdb6 | 7881 | echo "$ac_t""$CC" 1>&6 |
1e487827 | 7882 | else |
698dcdb6 | 7883 | echo "$ac_t""no" 1>&6 |
1e487827 | 7884 | fi |
6232543b | 7885 | |
1e487827 VS |
7886 | if test -z "$CC"; then |
7887 | # Extract the first word of "cc", so it can be a program name with args. | |
7888 | set dummy cc; ac_word=$2 | |
698dcdb6 | 7889 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
edae8572 | 7890 | echo "configure:7891: checking for $ac_word" >&5 |
698dcdb6 VZ |
7891 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
7892 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1e487827 VS |
7893 | else |
7894 | if test -n "$CC"; then | |
7895 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
7896 | else | |
698dcdb6 | 7897 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
1e487827 | 7898 | ac_prog_rejected=no |
698dcdb6 VZ |
7899 | ac_dummy="$PATH" |
7900 | for ac_dir in $ac_dummy; do | |
7901 | test -z "$ac_dir" && ac_dir=. | |
7902 | if test -f $ac_dir/$ac_word; then | |
7903 | if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then | |
7904 | ac_prog_rejected=yes | |
7905 | continue | |
7906 | fi | |
7907 | ac_cv_prog_CC="cc" | |
7908 | break | |
7909 | fi | |
7910 | done | |
7911 | IFS="$ac_save_ifs" | |
1e487827 VS |
7912 | if test $ac_prog_rejected = yes; then |
7913 | # We found a bogon in the path, so make sure we never use it. | |
7914 | set dummy $ac_cv_prog_CC | |
7915 | shift | |
698dcdb6 | 7916 | if test $# -gt 0; then |
1e487827 VS |
7917 | # We chose a different compiler from the bogus one. |
7918 | # However, it has the same basename, so the bogon will be chosen | |
7919 | # first if we set CC to just the basename; use the full file name. | |
7920 | shift | |
698dcdb6 | 7921 | set dummy "$ac_dir/$ac_word" "$@" |
1e487827 VS |
7922 | shift |
7923 | ac_cv_prog_CC="$@" | |
703e0a69 | 7924 | fi |
1e487827 VS |
7925 | fi |
7926 | fi | |
7927 | fi | |
698dcdb6 | 7928 | CC="$ac_cv_prog_CC" |
1e487827 | 7929 | if test -n "$CC"; then |
698dcdb6 | 7930 | echo "$ac_t""$CC" 1>&6 |
703e0a69 | 7931 | else |
698dcdb6 | 7932 | echo "$ac_t""no" 1>&6 |
703e0a69 | 7933 | fi |
1e487827 | 7934 | |
698dcdb6 VZ |
7935 | if test -z "$CC"; then |
7936 | case "`uname -s`" in | |
7937 | *win32* | *WIN32*) | |
7938 | # Extract the first word of "cl", so it can be a program name with args. | |
7939 | set dummy cl; ac_word=$2 | |
7940 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
edae8572 | 7941 | echo "configure:7942: checking for $ac_word" >&5 |
698dcdb6 VZ |
7942 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
7943 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1e487827 VS |
7944 | else |
7945 | if test -n "$CC"; then | |
7946 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
703e0a69 | 7947 | else |
698dcdb6 VZ |
7948 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
7949 | ac_dummy="$PATH" | |
7950 | for ac_dir in $ac_dummy; do | |
7951 | test -z "$ac_dir" && ac_dir=. | |
7952 | if test -f $ac_dir/$ac_word; then | |
7953 | ac_cv_prog_CC="cl" | |
7954 | break | |
7955 | fi | |
7956 | done | |
7957 | IFS="$ac_save_ifs" | |
703e0a69 | 7958 | fi |
1e487827 | 7959 | fi |
698dcdb6 | 7960 | CC="$ac_cv_prog_CC" |
1e487827 | 7961 | if test -n "$CC"; then |
698dcdb6 | 7962 | echo "$ac_t""$CC" 1>&6 |
1e487827 | 7963 | else |
698dcdb6 | 7964 | echo "$ac_t""no" 1>&6 |
1e487827 | 7965 | fi |
698dcdb6 VZ |
7966 | ;; |
7967 | esac | |
7968 | fi | |
7969 | test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } | |
1e487827 VS |
7970 | fi |
7971 | ||
698dcdb6 | 7972 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 |
edae8572 | 7973 | echo "configure:7974: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 |
1e487827 | 7974 | |
698dcdb6 VZ |
7975 | ac_ext=c |
7976 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
7977 | ac_cpp='$CPP $CPPFLAGS' | |
7978 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
7979 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
7980 | cross_compiling=$ac_cv_prog_cc_cross | |
6232543b | 7981 | |
698dcdb6 | 7982 | cat > conftest.$ac_ext << EOF |
1e487827 | 7983 | |
edae8572 | 7984 | #line 7985 "configure" |
1e487827 VS |
7985 | #include "confdefs.h" |
7986 | ||
698dcdb6 VZ |
7987 | main(){return(0);} |
7988 | EOF | |
edae8572 | 7989 | if { (eval echo configure:7990: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
7990 | ac_cv_prog_cc_works=yes |
7991 | # If we can't run a trivial program, we are probably using a cross compiler. | |
7992 | if (./conftest; exit) 2>/dev/null; then | |
7993 | ac_cv_prog_cc_cross=no | |
7994 | else | |
7995 | ac_cv_prog_cc_cross=yes | |
7996 | fi | |
7997 | else | |
7998 | echo "configure: failed program was:" >&5 | |
7999 | cat conftest.$ac_ext >&5 | |
8000 | ac_cv_prog_cc_works=no | |
8001 | fi | |
8002 | rm -fr conftest* | |
8003 | ac_ext=c | |
8004 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
8005 | ac_cpp='$CPP $CPPFLAGS' | |
8006 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
8007 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
8008 | cross_compiling=$ac_cv_prog_cc_cross | |
8009 | ||
8010 | echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 | |
8011 | if test $ac_cv_prog_cc_works = no; then | |
8012 | { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } | |
8013 | fi | |
8014 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 | |
edae8572 | 8015 | echo "configure:8016: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 |
698dcdb6 VZ |
8016 | echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 |
8017 | cross_compiling=$ac_cv_prog_cc_cross | |
8018 | ||
8019 | echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 | |
edae8572 | 8020 | echo "configure:8021: checking whether we are using GNU C" >&5 |
698dcdb6 VZ |
8021 | if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then |
8022 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8023 | else | |
8024 | cat > conftest.c <<EOF | |
8025 | #ifdef __GNUC__ | |
8026 | yes; | |
1e487827 | 8027 | #endif |
698dcdb6 | 8028 | EOF |
edae8572 | 8029 | if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:8030: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then |
698dcdb6 VZ |
8030 | ac_cv_prog_gcc=yes |
8031 | else | |
8032 | ac_cv_prog_gcc=no | |
8033 | fi | |
8034 | fi | |
1e487827 | 8035 | |
698dcdb6 | 8036 | echo "$ac_t""$ac_cv_prog_gcc" 1>&6 |
1e487827 | 8037 | |
698dcdb6 VZ |
8038 | if test $ac_cv_prog_gcc = yes; then |
8039 | GCC=yes | |
8040 | else | |
8041 | GCC= | |
8042 | fi | |
1e487827 | 8043 | |
698dcdb6 VZ |
8044 | ac_test_CFLAGS="${CFLAGS+set}" |
8045 | ac_save_CFLAGS="$CFLAGS" | |
8046 | CFLAGS= | |
8047 | echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 | |
edae8572 | 8048 | echo "configure:8049: checking whether ${CC-cc} accepts -g" >&5 |
698dcdb6 VZ |
8049 | if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then |
8050 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8051 | else | |
8052 | echo 'void f(){}' > conftest.c | |
8053 | if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then | |
10f2d63a VZ |
8054 | ac_cv_prog_cc_g=yes |
8055 | else | |
698dcdb6 | 8056 | ac_cv_prog_cc_g=no |
10f2d63a | 8057 | fi |
698dcdb6 VZ |
8058 | rm -f conftest* |
8059 | ||
10f2d63a | 8060 | fi |
698dcdb6 VZ |
8061 | |
8062 | echo "$ac_t""$ac_cv_prog_cc_g" 1>&6 | |
10f2d63a | 8063 | if test "$ac_test_CFLAGS" = set; then |
698dcdb6 | 8064 | CFLAGS="$ac_save_CFLAGS" |
10f2d63a VZ |
8065 | elif test $ac_cv_prog_cc_g = yes; then |
8066 | if test "$GCC" = yes; then | |
8067 | CFLAGS="-g -O2" | |
8068 | else | |
8069 | CFLAGS="-g" | |
8070 | fi | |
8071 | else | |
8072 | if test "$GCC" = yes; then | |
8073 | CFLAGS="-O2" | |
8074 | else | |
8075 | CFLAGS= | |
8076 | fi | |
8077 | fi | |
8078 | ||
8079 | ||
8080 | CFLAGS=`echo "$CFLAGS" | sed 's/-g//g'` | |
8081 | ||
698dcdb6 | 8082 | echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 |
edae8572 | 8083 | echo "configure:8084: checking how to run the C preprocessor" >&5 |
10f2d63a VZ |
8084 | # On Suns, sometimes $CPP names a directory. |
8085 | if test -n "$CPP" && test -d "$CPP"; then | |
8086 | CPP= | |
8087 | fi | |
8088 | if test -z "$CPP"; then | |
698dcdb6 VZ |
8089 | if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then |
8090 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8091 | else | |
8092 | # This must be in double quotes, not single quotes, because CPP may get | |
8093 | # substituted into the Makefile and "${CC-cc}" will confuse make. | |
8094 | CPP="${CC-cc} -E" | |
10f2d63a | 8095 | # On the NeXT, cc -E runs the code through the compiler's parser, |
698dcdb6 VZ |
8096 | # not just through cpp. |
8097 | cat > conftest.$ac_ext <<EOF | |
edae8572 | 8098 | #line 8099 "configure" |
10f2d63a VZ |
8099 | #include "confdefs.h" |
8100 | #include <assert.h> | |
698dcdb6 VZ |
8101 | Syntax Error |
8102 | EOF | |
8103 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
edae8572 | 8104 | { (eval echo configure:8105: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
8105 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
8106 | if test -z "$ac_err"; then | |
10f2d63a VZ |
8107 | : |
8108 | else | |
698dcdb6 VZ |
8109 | echo "$ac_err" >&5 |
8110 | echo "configure: failed program was:" >&5 | |
10f2d63a | 8111 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
8112 | rm -rf conftest* |
8113 | CPP="${CC-cc} -E -traditional-cpp" | |
8114 | cat > conftest.$ac_ext <<EOF | |
edae8572 | 8115 | #line 8116 "configure" |
10f2d63a | 8116 | #include "confdefs.h" |
698dcdb6 VZ |
8117 | #include <assert.h> |
8118 | Syntax Error | |
8119 | EOF | |
8120 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
edae8572 | 8121 | { (eval echo configure:8122: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
8122 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
8123 | if test -z "$ac_err"; then | |
8124 | : | |
10f2d63a | 8125 | else |
698dcdb6 VZ |
8126 | echo "$ac_err" >&5 |
8127 | echo "configure: failed program was:" >&5 | |
10f2d63a | 8128 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
8129 | rm -rf conftest* |
8130 | CPP="${CC-cc} -nologo -E" | |
8131 | cat > conftest.$ac_ext <<EOF | |
edae8572 | 8132 | #line 8133 "configure" |
10f2d63a VZ |
8133 | #include "confdefs.h" |
8134 | #include <assert.h> | |
698dcdb6 VZ |
8135 | Syntax Error |
8136 | EOF | |
8137 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
edae8572 | 8138 | { (eval echo configure:8139: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
8139 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
8140 | if test -z "$ac_err"; then | |
10f2d63a VZ |
8141 | : |
8142 | else | |
698dcdb6 VZ |
8143 | echo "$ac_err" >&5 |
8144 | echo "configure: failed program was:" >&5 | |
10f2d63a | 8145 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
8146 | rm -rf conftest* |
8147 | CPP=/lib/cpp | |
10f2d63a | 8148 | fi |
698dcdb6 | 8149 | rm -f conftest* |
10f2d63a | 8150 | fi |
698dcdb6 | 8151 | rm -f conftest* |
703e0a69 | 8152 | fi |
698dcdb6 VZ |
8153 | rm -f conftest* |
8154 | ac_cv_prog_CPP="$CPP" | |
8155 | fi | |
8156 | CPP="$ac_cv_prog_CPP" | |
10f2d63a | 8157 | else |
698dcdb6 | 8158 | ac_cv_prog_CPP="$CPP" |
10f2d63a | 8159 | fi |
698dcdb6 | 8160 | echo "$ac_t""$CPP" 1>&6 |
10f2d63a | 8161 | |
698dcdb6 VZ |
8162 | if test $ac_cv_prog_gcc = yes; then |
8163 | echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6 | |
edae8572 | 8164 | echo "configure:8165: checking whether ${CC-cc} needs -traditional" >&5 |
698dcdb6 VZ |
8165 | if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then |
8166 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a VZ |
8167 | else |
8168 | ac_pattern="Autoconf.*'x'" | |
698dcdb6 | 8169 | cat > conftest.$ac_ext <<EOF |
edae8572 | 8170 | #line 8171 "configure" |
10f2d63a VZ |
8171 | #include "confdefs.h" |
8172 | #include <sgtty.h> | |
8173 | Autoconf TIOCGETP | |
698dcdb6 | 8174 | EOF |
10f2d63a VZ |
8175 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
8176 | egrep "$ac_pattern" >/dev/null 2>&1; then | |
698dcdb6 | 8177 | rm -rf conftest* |
10f2d63a VZ |
8178 | ac_cv_prog_gcc_traditional=yes |
8179 | else | |
698dcdb6 | 8180 | rm -rf conftest* |
10f2d63a VZ |
8181 | ac_cv_prog_gcc_traditional=no |
8182 | fi | |
8183 | rm -f conftest* | |
8184 | ||
698dcdb6 | 8185 | |
10f2d63a | 8186 | if test $ac_cv_prog_gcc_traditional = no; then |
698dcdb6 | 8187 | cat > conftest.$ac_ext <<EOF |
edae8572 | 8188 | #line 8189 "configure" |
10f2d63a VZ |
8189 | #include "confdefs.h" |
8190 | #include <termio.h> | |
8191 | Autoconf TCGETA | |
698dcdb6 | 8192 | EOF |
10f2d63a VZ |
8193 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
8194 | egrep "$ac_pattern" >/dev/null 2>&1; then | |
698dcdb6 | 8195 | rm -rf conftest* |
10f2d63a VZ |
8196 | ac_cv_prog_gcc_traditional=yes |
8197 | fi | |
8198 | rm -f conftest* | |
8199 | ||
8200 | fi | |
8201 | fi | |
698dcdb6 VZ |
8202 | |
8203 | echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6 | |
10f2d63a VZ |
8204 | if test $ac_cv_prog_gcc_traditional = yes; then |
8205 | CC="$CC -traditional" | |
8206 | fi | |
8207 | fi | |
8208 | ||
703e0a69 | 8209 | |
698dcdb6 VZ |
8210 | |
8211 | ac_ext=C | |
8212 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
1e487827 | 8213 | ac_cpp='$CXXCPP $CPPFLAGS' |
698dcdb6 VZ |
8214 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
8215 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
8216 | cross_compiling=$ac_cv_prog_cxx_cross | |
8217 | ||
8218 | ||
8219 | for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl | |
8220 | do | |
8221 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
8222 | set dummy $ac_prog; ac_word=$2 | |
8223 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
edae8572 | 8224 | echo "configure:8225: checking for $ac_word" >&5 |
698dcdb6 VZ |
8225 | if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then |
8226 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a VZ |
8227 | else |
8228 | if test -n "$CXX"; then | |
8229 | ac_cv_prog_CXX="$CXX" # Let the user override the test. | |
8230 | else | |
698dcdb6 VZ |
8231 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
8232 | ac_dummy="$PATH" | |
8233 | for ac_dir in $ac_dummy; do | |
8234 | test -z "$ac_dir" && ac_dir=. | |
8235 | if test -f $ac_dir/$ac_word; then | |
8236 | ac_cv_prog_CXX="$ac_prog" | |
8237 | break | |
8238 | fi | |
8239 | done | |
8240 | IFS="$ac_save_ifs" | |
10f2d63a VZ |
8241 | fi |
8242 | fi | |
698dcdb6 | 8243 | CXX="$ac_cv_prog_CXX" |
10f2d63a | 8244 | if test -n "$CXX"; then |
698dcdb6 | 8245 | echo "$ac_t""$CXX" 1>&6 |
10f2d63a | 8246 | else |
698dcdb6 | 8247 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
8248 | fi |
8249 | ||
698dcdb6 | 8250 | test -n "$CXX" && break |
10f2d63a | 8251 | done |
698dcdb6 | 8252 | test -n "$CXX" || CXX="gcc" |
10f2d63a VZ |
8253 | |
8254 | ||
698dcdb6 | 8255 | echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6 |
edae8572 | 8256 | echo "configure:8257: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5 |
10f2d63a | 8257 | |
698dcdb6 VZ |
8258 | ac_ext=C |
8259 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
8260 | ac_cpp='$CXXCPP $CPPFLAGS' | |
8261 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
8262 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
8263 | cross_compiling=$ac_cv_prog_cxx_cross | |
703e0a69 | 8264 | |
698dcdb6 VZ |
8265 | cat > conftest.$ac_ext << EOF |
8266 | ||
edae8572 | 8267 | #line 8268 "configure" |
10f2d63a VZ |
8268 | #include "confdefs.h" |
8269 | ||
698dcdb6 VZ |
8270 | int main(){return(0);} |
8271 | EOF | |
edae8572 | 8272 | if { (eval echo configure:8273: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
8273 | ac_cv_prog_cxx_works=yes |
8274 | # If we can't run a trivial program, we are probably using a cross compiler. | |
8275 | if (./conftest; exit) 2>/dev/null; then | |
8276 | ac_cv_prog_cxx_cross=no | |
8277 | else | |
8278 | ac_cv_prog_cxx_cross=yes | |
8279 | fi | |
8280 | else | |
8281 | echo "configure: failed program was:" >&5 | |
8282 | cat conftest.$ac_ext >&5 | |
8283 | ac_cv_prog_cxx_works=no | |
8284 | fi | |
8285 | rm -fr conftest* | |
8286 | ac_ext=C | |
8287 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
8288 | ac_cpp='$CXXCPP $CPPFLAGS' | |
8289 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
8290 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
8291 | cross_compiling=$ac_cv_prog_cxx_cross | |
8292 | ||
8293 | echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6 | |
8294 | if test $ac_cv_prog_cxx_works = no; then | |
8295 | { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; } | |
8296 | fi | |
8297 | echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 | |
edae8572 | 8298 | echo "configure:8299: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5 |
698dcdb6 VZ |
8299 | echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6 |
8300 | cross_compiling=$ac_cv_prog_cxx_cross | |
8301 | ||
8302 | echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6 | |
edae8572 | 8303 | echo "configure:8304: checking whether we are using GNU C++" >&5 |
698dcdb6 VZ |
8304 | if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then |
8305 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8306 | else | |
8307 | cat > conftest.C <<EOF | |
8308 | #ifdef __GNUC__ | |
8309 | yes; | |
10f2d63a | 8310 | #endif |
698dcdb6 | 8311 | EOF |
edae8572 | 8312 | if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:8313: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then |
698dcdb6 VZ |
8313 | ac_cv_prog_gxx=yes |
8314 | else | |
8315 | ac_cv_prog_gxx=no | |
8316 | fi | |
8317 | fi | |
10f2d63a | 8318 | |
698dcdb6 | 8319 | echo "$ac_t""$ac_cv_prog_gxx" 1>&6 |
10f2d63a | 8320 | |
698dcdb6 VZ |
8321 | if test $ac_cv_prog_gxx = yes; then |
8322 | GXX=yes | |
8323 | else | |
8324 | GXX= | |
8325 | fi | |
10f2d63a | 8326 | |
698dcdb6 VZ |
8327 | ac_test_CXXFLAGS="${CXXFLAGS+set}" |
8328 | ac_save_CXXFLAGS="$CXXFLAGS" | |
8329 | CXXFLAGS= | |
8330 | echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6 | |
edae8572 | 8331 | echo "configure:8332: checking whether ${CXX-g++} accepts -g" >&5 |
698dcdb6 VZ |
8332 | if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then |
8333 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8334 | else | |
8335 | echo 'void f(){}' > conftest.cc | |
8336 | if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then | |
10f2d63a VZ |
8337 | ac_cv_prog_cxx_g=yes |
8338 | else | |
698dcdb6 | 8339 | ac_cv_prog_cxx_g=no |
10f2d63a | 8340 | fi |
698dcdb6 VZ |
8341 | rm -f conftest* |
8342 | ||
10f2d63a | 8343 | fi |
698dcdb6 VZ |
8344 | |
8345 | echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6 | |
10f2d63a | 8346 | if test "$ac_test_CXXFLAGS" = set; then |
698dcdb6 | 8347 | CXXFLAGS="$ac_save_CXXFLAGS" |
10f2d63a VZ |
8348 | elif test $ac_cv_prog_cxx_g = yes; then |
8349 | if test "$GXX" = yes; then | |
8350 | CXXFLAGS="-g -O2" | |
8351 | else | |
8352 | CXXFLAGS="-g" | |
8353 | fi | |
8354 | else | |
8355 | if test "$GXX" = yes; then | |
8356 | CXXFLAGS="-O2" | |
8357 | else | |
8358 | CXXFLAGS= | |
8359 | fi | |
8360 | fi | |
8361 | ||
8362 | ||
10f2d63a VZ |
8363 | CXXFLAGS=`echo "$CXXFLAGS" | sed 's/-g//g'` |
8364 | ||
8365 | ac_ext=c | |
698dcdb6 | 8366 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
10f2d63a | 8367 | ac_cpp='$CPP $CPPFLAGS' |
698dcdb6 VZ |
8368 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
8369 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
8370 | cross_compiling=$ac_cv_prog_cc_cross | |
8371 | ||
8372 | ||
8373 | # Extract the first word of "ranlib", so it can be a program name with args. | |
8374 | set dummy ranlib; ac_word=$2 | |
8375 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
edae8572 | 8376 | echo "configure:8377: checking for $ac_word" >&5 |
698dcdb6 VZ |
8377 | if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then |
8378 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a VZ |
8379 | else |
8380 | if test -n "$RANLIB"; then | |
8381 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
8382 | else | |
698dcdb6 VZ |
8383 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
8384 | ac_dummy="$PATH" | |
8385 | for ac_dir in $ac_dummy; do | |
8386 | test -z "$ac_dir" && ac_dir=. | |
8387 | if test -f $ac_dir/$ac_word; then | |
8388 | ac_cv_prog_RANLIB="ranlib" | |
8389 | break | |
8390 | fi | |
8391 | done | |
8392 | IFS="$ac_save_ifs" | |
8393 | test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":" | |
10f2d63a VZ |
8394 | fi |
8395 | fi | |
698dcdb6 | 8396 | RANLIB="$ac_cv_prog_RANLIB" |
10f2d63a | 8397 | if test -n "$RANLIB"; then |
698dcdb6 | 8398 | echo "$ac_t""$RANLIB" 1>&6 |
10f2d63a | 8399 | else |
698dcdb6 | 8400 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
8401 | fi |
8402 | ||
8403 | ||
8404 | # Extract the first word of "ar", so it can be a program name with args. | |
8405 | set dummy ar; ac_word=$2 | |
698dcdb6 | 8406 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
edae8572 | 8407 | echo "configure:8408: checking for $ac_word" >&5 |
698dcdb6 VZ |
8408 | if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then |
8409 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a VZ |
8410 | else |
8411 | if test -n "$AR"; then | |
8412 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
8413 | else | |
698dcdb6 VZ |
8414 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
8415 | ac_dummy="$PATH" | |
8416 | for ac_dir in $ac_dummy; do | |
8417 | test -z "$ac_dir" && ac_dir=. | |
8418 | if test -f $ac_dir/$ac_word; then | |
8419 | ac_cv_prog_AR="ar" | |
8420 | break | |
8421 | fi | |
8422 | done | |
8423 | IFS="$ac_save_ifs" | |
10f2d63a VZ |
8424 | test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar" |
8425 | fi | |
8426 | fi | |
698dcdb6 | 8427 | AR="$ac_cv_prog_AR" |
10f2d63a | 8428 | if test -n "$AR"; then |
698dcdb6 | 8429 | echo "$ac_t""$AR" 1>&6 |
10f2d63a | 8430 | else |
698dcdb6 | 8431 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
8432 | fi |
8433 | ||
698dcdb6 | 8434 | |
10f2d63a VZ |
8435 | # Find a good install program. We prefer a C program (faster), |
8436 | # so one script is as good as another. But avoid the broken or | |
8437 | # incompatible versions: | |
8438 | # SysV /etc/install, /usr/sbin/install | |
8439 | # SunOS /usr/etc/install | |
8440 | # IRIX /sbin/install | |
8441 | # AIX /bin/install | |
8442 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
8443 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
8444 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
8445 | # ./install, which can be erroneously created by make from ./install.sh. | |
698dcdb6 | 8446 | echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 |
edae8572 | 8447 | echo "configure:8448: checking for a BSD compatible install" >&5 |
10f2d63a | 8448 | if test -z "$INSTALL"; then |
698dcdb6 VZ |
8449 | if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then |
8450 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 8451 | else |
698dcdb6 | 8452 | IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":" |
10f2d63a VZ |
8453 | for ac_dir in $PATH; do |
8454 | # Account for people who put trailing slashes in PATH elements. | |
698dcdb6 VZ |
8455 | case "$ac_dir/" in |
8456 | /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;; | |
10f2d63a VZ |
8457 | *) |
8458 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
8459 | # Don't use installbsd from OSF since it installs stuff as root | |
8460 | # by default. | |
8461 | for ac_prog in ginstall scoinst install; do | |
698dcdb6 | 8462 | if test -f $ac_dir/$ac_prog; then |
10f2d63a | 8463 | if test $ac_prog = install && |
698dcdb6 | 8464 | grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then |
10f2d63a VZ |
8465 | # AIX install. It has an incompatible calling convention. |
8466 | : | |
8467 | else | |
8468 | ac_cv_path_install="$ac_dir/$ac_prog -c" | |
8469 | break 2 | |
8470 | fi | |
8471 | fi | |
8472 | done | |
8473 | ;; | |
8474 | esac | |
8475 | done | |
698dcdb6 | 8476 | IFS="$ac_save_IFS" |
10f2d63a VZ |
8477 | |
8478 | fi | |
8479 | if test "${ac_cv_path_install+set}" = set; then | |
698dcdb6 | 8480 | INSTALL="$ac_cv_path_install" |
10f2d63a VZ |
8481 | else |
8482 | # As a last resort, use the slow shell script. We don't cache a | |
8483 | # path for INSTALL within a source directory, because that will | |
8484 | # break other packages using the cache if that directory is | |
8485 | # removed, or if the path is relative. | |
698dcdb6 | 8486 | INSTALL="$ac_install_sh" |
10f2d63a VZ |
8487 | fi |
8488 | fi | |
698dcdb6 | 8489 | echo "$ac_t""$INSTALL" 1>&6 |
10f2d63a VZ |
8490 | |
8491 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
8492 | # It thinks the first close brace ends the variable substitution. | |
8493 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
8494 | ||
698dcdb6 | 8495 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}' |
10f2d63a VZ |
8496 | |
8497 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
8498 | ||
698dcdb6 | 8499 | |
10f2d63a VZ |
8500 | # Extract the first word of "strip", so it can be a program name with args. |
8501 | set dummy strip; ac_word=$2 | |
698dcdb6 | 8502 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
edae8572 | 8503 | echo "configure:8504: checking for $ac_word" >&5 |
698dcdb6 VZ |
8504 | if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then |
8505 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a VZ |
8506 | else |
8507 | if test -n "$STRIP"; then | |
8508 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
8509 | else | |
698dcdb6 VZ |
8510 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
8511 | ac_dummy="$PATH" | |
8512 | for ac_dir in $ac_dummy; do | |
8513 | test -z "$ac_dir" && ac_dir=. | |
8514 | if test -f $ac_dir/$ac_word; then | |
8515 | ac_cv_prog_STRIP="strip" | |
8516 | break | |
8517 | fi | |
8518 | done | |
8519 | IFS="$ac_save_ifs" | |
10f2d63a VZ |
8520 | test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="true" |
8521 | fi | |
8522 | fi | |
698dcdb6 | 8523 | STRIP="$ac_cv_prog_STRIP" |
10f2d63a | 8524 | if test -n "$STRIP"; then |
698dcdb6 | 8525 | echo "$ac_t""$STRIP" 1>&6 |
10f2d63a | 8526 | else |
698dcdb6 | 8527 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
8528 | fi |
8529 | ||
698dcdb6 VZ |
8530 | |
8531 | echo $ac_n "checking make for VPATH support""... $ac_c" 1>&6 | |
edae8572 | 8532 | echo "configure:8533: checking make for VPATH support" >&5 |
10f2d63a VZ |
8533 | cat - << EOF > confMake |
8534 | check : file | |
8535 | cp \$? \$@ | |
8536 | cp \$? final_file | |
8537 | EOF | |
8538 | ||
8539 | if test ! -d sub ; then | |
8540 | mkdir sub | |
8541 | fi | |
8542 | echo dummy > sub/file | |
f6bcfd97 | 8543 | ${MAKE-make} -f confMake VPATH=sub 2>&5 > /dev/null |
10f2d63a VZ |
8544 | RESULT=$? |
8545 | rm -f sub/file check final_file confMake | |
8546 | rmdir sub | |
8547 | if test "$RESULT" = 0; then | |
698dcdb6 | 8548 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 8549 | else |
698dcdb6 VZ |
8550 | echo "$ac_t""no" 1>&6 |
8551 | { echo "configure: error: | |
1e487827 VS |
8552 | You need a make-utility that is able to use the variable |
8553 | VPATH correctly. | |
8554 | If your version of make does not support VPATH correctly, | |
8555 | please install GNU-make (possibly as gmake), and start | |
8556 | configure with the following command: | |
8557 | export MAKE=gmake; ./configure for sh-type shells | |
8558 | setenv MAKE gmake; ./configure for csh-type shells | |
8559 | Also please do remember to use gmake in this case every time | |
8560 | you are trying to compile. | |
698dcdb6 | 8561 | " 1>&2; exit 1; } |
10f2d63a VZ |
8562 | fi |
8563 | ||
8564 | for ac_prog in 'bison -y' byacc | |
8565 | do | |
698dcdb6 | 8566 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
10f2d63a | 8567 | set dummy $ac_prog; ac_word=$2 |
698dcdb6 | 8568 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
edae8572 | 8569 | echo "configure:8570: checking for $ac_word" >&5 |
698dcdb6 VZ |
8570 | if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then |
8571 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a VZ |
8572 | else |
8573 | if test -n "$YACC"; then | |
8574 | ac_cv_prog_YACC="$YACC" # Let the user override the test. | |
8575 | else | |
698dcdb6 VZ |
8576 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
8577 | ac_dummy="$PATH" | |
8578 | for ac_dir in $ac_dummy; do | |
8579 | test -z "$ac_dir" && ac_dir=. | |
8580 | if test -f $ac_dir/$ac_word; then | |
8581 | ac_cv_prog_YACC="$ac_prog" | |
8582 | break | |
8583 | fi | |
8584 | done | |
8585 | IFS="$ac_save_ifs" | |
10f2d63a VZ |
8586 | fi |
8587 | fi | |
698dcdb6 | 8588 | YACC="$ac_cv_prog_YACC" |
10f2d63a | 8589 | if test -n "$YACC"; then |
698dcdb6 | 8590 | echo "$ac_t""$YACC" 1>&6 |
10f2d63a | 8591 | else |
698dcdb6 | 8592 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
8593 | fi |
8594 | ||
698dcdb6 | 8595 | test -n "$YACC" && break |
10f2d63a VZ |
8596 | done |
8597 | test -n "$YACC" || YACC="yacc" | |
8598 | ||
698dcdb6 VZ |
8599 | |
8600 | # Extract the first word of "flex", so it can be a program name with args. | |
8601 | set dummy flex; ac_word=$2 | |
8602 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
edae8572 | 8603 | echo "configure:8604: checking for $ac_word" >&5 |
698dcdb6 VZ |
8604 | if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then |
8605 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a VZ |
8606 | else |
8607 | if test -n "$LEX"; then | |
8608 | ac_cv_prog_LEX="$LEX" # Let the user override the test. | |
8609 | else | |
698dcdb6 VZ |
8610 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
8611 | ac_dummy="$PATH" | |
8612 | for ac_dir in $ac_dummy; do | |
8613 | test -z "$ac_dir" && ac_dir=. | |
8614 | if test -f $ac_dir/$ac_word; then | |
8615 | ac_cv_prog_LEX="flex" | |
8616 | break | |
8617 | fi | |
8618 | done | |
8619 | IFS="$ac_save_ifs" | |
8620 | test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex" | |
10f2d63a VZ |
8621 | fi |
8622 | fi | |
698dcdb6 | 8623 | LEX="$ac_cv_prog_LEX" |
10f2d63a | 8624 | if test -n "$LEX"; then |
698dcdb6 | 8625 | echo "$ac_t""$LEX" 1>&6 |
10f2d63a | 8626 | else |
698dcdb6 | 8627 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
8628 | fi |
8629 | ||
8630 | if test -z "$LEXLIB" | |
8631 | then | |
698dcdb6 VZ |
8632 | case "$LEX" in |
8633 | flex*) ac_lib=fl ;; | |
8634 | *) ac_lib=l ;; | |
8635 | esac | |
8636 | echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6 | |
edae8572 | 8637 | echo "configure:8638: checking for yywrap in -l$ac_lib" >&5 |
698dcdb6 VZ |
8638 | ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'` |
8639 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
8640 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8641 | else | |
8642 | ac_save_LIBS="$LIBS" | |
8643 | LIBS="-l$ac_lib $LIBS" | |
8644 | cat > conftest.$ac_ext <<EOF | |
edae8572 | 8645 | #line 8646 "configure" |
10f2d63a VZ |
8646 | #include "confdefs.h" |
8647 | /* Override any gcc2 internal prototype to avoid an error. */ | |
8648 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
8649 | builtin and then its argument prototype would still apply. */ |
8650 | char yywrap(); | |
10f2d63a | 8651 | |
698dcdb6 VZ |
8652 | int main() { |
8653 | yywrap() | |
8654 | ; return 0; } | |
8655 | EOF | |
edae8572 | 8656 | if { (eval echo configure:8657: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
8657 | rm -rf conftest* |
8658 | eval "ac_cv_lib_$ac_lib_var=yes" | |
10f2d63a | 8659 | else |
698dcdb6 VZ |
8660 | echo "configure: failed program was:" >&5 |
8661 | cat conftest.$ac_ext >&5 | |
8662 | rm -rf conftest* | |
8663 | eval "ac_cv_lib_$ac_lib_var=no" | |
10f2d63a | 8664 | fi |
698dcdb6 VZ |
8665 | rm -f conftest* |
8666 | LIBS="$ac_save_LIBS" | |
8667 | ||
10f2d63a | 8668 | fi |
698dcdb6 VZ |
8669 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
8670 | echo "$ac_t""yes" 1>&6 | |
8671 | LEXLIB="-l$ac_lib" | |
8672 | else | |
8673 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
8674 | fi |
8675 | ||
8676 | fi | |
8677 | ||
8678 | ||
698dcdb6 | 8679 | echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6 |
edae8572 | 8680 | echo "configure:8681: checking whether ln -s works" >&5 |
698dcdb6 VZ |
8681 | if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then |
8682 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 8683 | else |
698dcdb6 VZ |
8684 | rm -f conftestdata |
8685 | if ln -s X conftestdata 2>/dev/null | |
8686 | then | |
8687 | rm -f conftestdata | |
8688 | ac_cv_prog_LN_S="ln -s" | |
10f2d63a | 8689 | else |
698dcdb6 | 8690 | ac_cv_prog_LN_S=ln |
10f2d63a VZ |
8691 | fi |
8692 | fi | |
698dcdb6 VZ |
8693 | LN_S="$ac_cv_prog_LN_S" |
8694 | if test "$ac_cv_prog_LN_S" = "ln -s"; then | |
8695 | echo "$ac_t""yes" 1>&6 | |
10f2d63a | 8696 | else |
698dcdb6 | 8697 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
8698 | fi |
8699 | ||
8700 | ||
8701 | ||
8702 | SEARCH_INCLUDE="\ | |
8703 | /usr/local/include \ | |
8704 | \ | |
8705 | /usr/Motif-1.2/include \ | |
8706 | /usr/Motif-2.1/include \ | |
8707 | \ | |
8708 | /usr/include/Motif1.2 \ | |
8709 | /opt/xpm/include/X11 \ | |
8710 | /opt/GBxpm/include/ \ | |
8711 | /opt/GBxpm/X11/include/ \ | |
8712 | \ | |
8713 | /usr/Motif1.2/include \ | |
8714 | /usr/dt/include \ | |
afc31813 VZ |
8715 | /usr/openwin/include \ |
8716 | \ | |
10f2d63a VZ |
8717 | /usr/include/Xm \ |
8718 | \ | |
8719 | /usr/X11R6/include \ | |
afc31813 | 8720 | /usr/X11R6.4/include \ |
10f2d63a VZ |
8721 | /usr/X11R5/include \ |
8722 | /usr/X11R4/include \ | |
8723 | \ | |
10f2d63a VZ |
8724 | /usr/include/X11R6 \ |
8725 | /usr/include/X11R5 \ | |
8726 | /usr/include/X11R4 \ | |
8727 | \ | |
8728 | /usr/local/X11R6/include \ | |
8729 | /usr/local/X11R5/include \ | |
8730 | /usr/local/X11R4/include \ | |
8731 | \ | |
8732 | /usr/local/include/X11R6 \ | |
8733 | /usr/local/include/X11R5 \ | |
8734 | /usr/local/include/X11R4 \ | |
8735 | \ | |
8736 | /usr/X11/include \ | |
8737 | /usr/include/X11 \ | |
8738 | /usr/local/X11/include \ | |
8739 | /usr/local/include/X11 \ | |
8740 | \ | |
8741 | /usr/X386/include \ | |
8742 | /usr/x386/include \ | |
8743 | /usr/XFree86/include/X11 \ | |
8744 | \ | |
cf27ef00 | 8745 | X:/XFree86/include \ |
ec14dd32 VZ |
8746 | X:/XFree86/include/X11 \ |
8747 | \ | |
10f2d63a VZ |
8748 | /usr/include/gtk \ |
8749 | /usr/local/include/gtk \ | |
8750 | /usr/include/glib \ | |
8751 | /usr/local/include/glib \ | |
8752 | \ | |
8753 | /usr/include/qt \ | |
8754 | /usr/local/include/qt \ | |
8755 | \ | |
8756 | /usr/include/windows \ | |
8757 | /usr/include/wine \ | |
8758 | /usr/local/include/wine \ | |
8759 | \ | |
8760 | /usr/unsupported/include \ | |
8761 | /usr/athena/include \ | |
8762 | /usr/local/x11r5/include \ | |
8763 | /usr/lpp/Xamples/include \ | |
8764 | \ | |
10f2d63a | 8765 | /usr/openwin/share/include \ |
928b5c08 VZ |
8766 | \ |
8767 | /usr/include" | |
10f2d63a VZ |
8768 | |
8769 | SEARCH_LIB="`echo "$SEARCH_INCLUDE" | sed s/include/lib/g` " | |
8770 | ||
698dcdb6 VZ |
8771 | |
8772 | cat > confcache <<\EOF | |
10f2d63a VZ |
8773 | # This file is a shell script that caches the results of configure |
8774 | # tests run on this system so they can be shared between configure | |
698dcdb6 VZ |
8775 | # scripts and configure runs. It is not useful on other systems. |
8776 | # If it contains results you don't want to keep, you may remove or edit it. | |
10f2d63a | 8777 | # |
698dcdb6 VZ |
8778 | # By default, configure uses ./config.cache as the cache file, |
8779 | # creating it if it does not exist already. You can give configure | |
8780 | # the --cache-file=FILE option to use a different cache file; that is | |
8781 | # what configure does when it calls configure scripts in | |
8782 | # subdirectories, so they share the cache. | |
8783 | # Giving --cache-file=/dev/null disables caching, for debugging configure. | |
8784 | # config.status only pays attention to the cache file if you give it the | |
8785 | # --recheck option to rerun configure. | |
10f2d63a | 8786 | # |
698dcdb6 | 8787 | EOF |
10f2d63a VZ |
8788 | # The following way of writing the cache mishandles newlines in values, |
8789 | # but we know of no workaround that is simple, portable, and efficient. | |
8790 | # So, don't put newlines in cache variables' values. | |
8791 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
8792 | # and sets the high bit in the cache file unless we assign to the vars. | |
698dcdb6 VZ |
8793 | (set) 2>&1 | |
8794 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
8795 | *ac_space=\ *) | |
8796 | # `set' does not quote correctly, so add quotes (double-quote substitution | |
8797 | # turns \\\\ into \\, and sed turns \\ into \). | |
8798 | sed -n \ | |
8799 | -e "s/'/'\\\\''/g" \ | |
8800 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" | |
8801 | ;; | |
8802 | *) | |
8803 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
8804 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' | |
8805 | ;; | |
8806 | esac >> confcache | |
8807 | if cmp -s $cache_file confcache; then | |
8808 | : | |
8809 | else | |
10f2d63a | 8810 | if test -w $cache_file; then |
698dcdb6 VZ |
8811 | echo "updating cache $cache_file" |
8812 | cat confcache > $cache_file | |
10f2d63a VZ |
8813 | else |
8814 | echo "not updating unwritable cache $cache_file" | |
8815 | fi | |
8816 | fi | |
8817 | rm -f confcache | |
8818 | ||
698dcdb6 VZ |
8819 | |
8820 | ||
18dbb1f6 VZ |
8821 | REGEX_INCLUDE= |
8822 | if test "$wxUSE_REGEX" != "no"; then | |
8823 | ac_safe=`echo "regex.h" | sed 'y%./+-%__p_%'` | |
8824 | echo $ac_n "checking for regex.h""... $ac_c" 1>&6 | |
edae8572 | 8825 | echo "configure:8826: checking for regex.h" >&5 |
18dbb1f6 VZ |
8826 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
8827 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8828 | else | |
8829 | cat > conftest.$ac_ext <<EOF | |
edae8572 | 8830 | #line 8831 "configure" |
18dbb1f6 VZ |
8831 | #include "confdefs.h" |
8832 | #include <regex.h> | |
8833 | EOF | |
8834 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
edae8572 | 8835 | { (eval echo configure:8836: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
18dbb1f6 VZ |
8836 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
8837 | if test -z "$ac_err"; then | |
8838 | rm -rf conftest* | |
8839 | eval "ac_cv_header_$ac_safe=yes" | |
8840 | else | |
8841 | echo "$ac_err" >&5 | |
8842 | echo "configure: failed program was:" >&5 | |
8843 | cat conftest.$ac_ext >&5 | |
8844 | rm -rf conftest* | |
8845 | eval "ac_cv_header_$ac_safe=no" | |
8846 | fi | |
8847 | rm -f conftest* | |
8848 | fi | |
8849 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
8850 | echo "$ac_t""yes" 1>&6 | |
8851 | for ac_func in regcomp | |
8852 | do | |
8853 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
edae8572 | 8854 | echo "configure:8855: checking for $ac_func" >&5 |
18dbb1f6 VZ |
8855 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
8856 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8857 | else | |
8858 | cat > conftest.$ac_ext <<EOF | |
edae8572 | 8859 | #line 8860 "configure" |
18dbb1f6 VZ |
8860 | #include "confdefs.h" |
8861 | /* System header to define __stub macros and hopefully few prototypes, | |
8862 | which can conflict with char $ac_func(); below. */ | |
8863 | #include <assert.h> | |
8864 | /* Override any gcc2 internal prototype to avoid an error. */ | |
8865 | /* We use char because int might match the return type of a gcc2 | |
8866 | builtin and then its argument prototype would still apply. */ | |
8867 | char $ac_func(); | |
8868 | ||
8869 | int main() { | |
8870 | ||
8871 | /* The GNU C library defines this for functions which it implements | |
8872 | to always fail with ENOSYS. Some functions are actually named | |
8873 | something starting with __ and the normal name is an alias. */ | |
8874 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
8875 | choke me | |
8876 | #else | |
8877 | $ac_func(); | |
8878 | #endif | |
8879 | ||
8880 | ; return 0; } | |
8881 | EOF | |
edae8572 | 8882 | if { (eval echo configure:8883: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
18dbb1f6 VZ |
8883 | rm -rf conftest* |
8884 | eval "ac_cv_func_$ac_func=yes" | |
8885 | else | |
8886 | echo "configure: failed program was:" >&5 | |
8887 | cat conftest.$ac_ext >&5 | |
8888 | rm -rf conftest* | |
8889 | eval "ac_cv_func_$ac_func=no" | |
8890 | fi | |
8891 | rm -f conftest* | |
8892 | fi | |
8893 | ||
8894 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
8895 | echo "$ac_t""yes" 1>&6 | |
8896 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
8897 | cat >> confdefs.h <<EOF | |
8898 | #define $ac_tr_func 1 | |
8899 | EOF | |
8900 | ||
8901 | else | |
8902 | echo "$ac_t""no" 1>&6 | |
8903 | fi | |
8904 | done | |
8905 | ||
8906 | else | |
8907 | echo "$ac_t""no" 1>&6 | |
8908 | fi | |
8909 | ||
8910 | ||
8911 | if test "x$ac_cv_func_regcomp" != "xyes"; then | |
8912 | if test "$wxUSE_REGEX" = "sys"; then | |
8913 | { echo "configure: error: system regex library not found! Use --with-regex to use the built-in regex library." 1>&2; exit 1; } | |
8914 | fi | |
8915 | ||
8916 | REGEX_INCLUDE="-I\${top_srcdir}/src/regex" | |
8917 | fi | |
8918 | ||
8919 | cat >> confdefs.h <<\EOF | |
8920 | #define wxUSE_REGEX 1 | |
8921 | EOF | |
8922 | ||
8923 | fi | |
8924 | ||
8925 | ||
dad6c0ea VZ |
8926 | AFMINSTALL= |
8927 | ||
3a922bb4 RL |
8928 | TOOLKIT= |
8929 | TOOLKIT_INCLUDE= | |
8930 | WIDGET_SET= | |
10f2d63a | 8931 | |
3a922bb4 RL |
8932 | if test "$USE_WIN32" = 1 ; then |
8933 | for ac_hdr in w32api.h | |
8934 | do | |
8935 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
8936 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
edae8572 | 8937 | echo "configure:8938: checking for $ac_hdr" >&5 |
3a922bb4 RL |
8938 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
8939 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8940 | else | |
8941 | cat > conftest.$ac_ext <<EOF | |
edae8572 | 8942 | #line 8943 "configure" |
3a922bb4 RL |
8943 | #include "confdefs.h" |
8944 | #include <$ac_hdr> | |
8945 | EOF | |
8946 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
edae8572 | 8947 | { (eval echo configure:8948: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
3a922bb4 RL |
8948 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
8949 | if test -z "$ac_err"; then | |
8950 | rm -rf conftest* | |
8951 | eval "ac_cv_header_$ac_safe=yes" | |
8952 | else | |
8953 | echo "$ac_err" >&5 | |
8954 | echo "configure: failed program was:" >&5 | |
8955 | cat conftest.$ac_ext >&5 | |
8956 | rm -rf conftest* | |
8957 | eval "ac_cv_header_$ac_safe=no" | |
8958 | fi | |
8959 | rm -f conftest* | |
8960 | fi | |
8961 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
8962 | echo "$ac_t""yes" 1>&6 | |
8963 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
8964 | cat >> confdefs.h <<EOF | |
8965 | #define $ac_tr_hdr 1 | |
8966 | EOF | |
8967 | ||
8968 | else | |
8969 | echo "$ac_t""no" 1>&6 | |
8970 | fi | |
8971 | done | |
10f2d63a | 8972 | |
3a922bb4 | 8973 | ac_safe=`echo "windows.h" | sed 'y%./+-%__p_%'` |
29fd3c0c | 8974 | echo $ac_n "checking for windows.h""... $ac_c" 1>&6 |
edae8572 | 8975 | echo "configure:8976: checking for windows.h" >&5 |
d4158b5d VS |
8976 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
8977 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8978 | else | |
8979 | cat > conftest.$ac_ext <<EOF | |
edae8572 | 8980 | #line 8981 "configure" |
d4158b5d | 8981 | #include "confdefs.h" |
29fd3c0c | 8982 | #include <windows.h> |
d4158b5d VS |
8983 | EOF |
8984 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
edae8572 | 8985 | { (eval echo configure:8986: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
d4158b5d VS |
8986 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
8987 | if test -z "$ac_err"; then | |
8988 | rm -rf conftest* | |
8989 | eval "ac_cv_header_$ac_safe=yes" | |
8990 | else | |
8991 | echo "$ac_err" >&5 | |
8992 | echo "configure: failed program was:" >&5 | |
8993 | cat conftest.$ac_ext >&5 | |
8994 | rm -rf conftest* | |
8995 | eval "ac_cv_header_$ac_safe=no" | |
8996 | fi | |
8997 | rm -f conftest* | |
8998 | fi | |
8999 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
9000 | echo "$ac_t""yes" 1>&6 | |
29fd3c0c | 9001 | : |
d4158b5d VS |
9002 | else |
9003 | echo "$ac_t""no" 1>&6 | |
d4158b5d | 9004 | |
3a922bb4 RL |
9005 | { echo "configure: error: please set CFLAGS to contain the location of windows.h" 1>&2; exit 1; } |
9006 | ||
29fd3c0c | 9007 | fi |
10f2d63a | 9008 | |
3f0f0161 | 9009 | |
3a922bb4 | 9010 | echo $ac_n "checking if w32api has good enough MSIE support""... $ac_c" 1>&6 |
edae8572 | 9011 | echo "configure:9012: checking if w32api has good enough MSIE support" >&5 |
3a922bb4 RL |
9012 | if eval "test \"`echo '$''{'wx_cv_w32api_win_ie'+set}'`\" = set"; then |
9013 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9014 | else | |
9015 | ||
9016 | cat > conftest.$ac_ext <<EOF | |
edae8572 | 9017 | #line 9018 "configure" |
3a922bb4 RL |
9018 | #include "confdefs.h" |
9019 | #include <w32api.h> | |
9020 | int main() { | |
3f0f0161 | 9021 | |
3a922bb4 RL |
9022 | #define wxCHECK_W32API_VERSION( major, minor ) \ |
9023 | ( defined( __W32API_MAJOR_VERSION ) && defined( __W32API_MINOR_VERSION ) \ | |
9024 | && ( ( __W32API_MAJOR_VERSION > (major) ) \ | |
9025 | || ( __W32API_MAJOR_VERSION == (major) && __W32API_MINOR_VERSION >= (minor)))) | |
f6bcfd97 | 9026 | |
3a922bb4 RL |
9027 | #if !wxCHECK_W32API_VERSION(1,1) |
9028 | #error You need w32api 1.1 or newer | |
9029 | #endif | |
9030 | ||
9031 | ; return 0; } | |
9032 | EOF | |
edae8572 | 9033 | if { (eval echo configure:9034: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
3a922bb4 RL |
9034 | rm -rf conftest* |
9035 | ||
9036 | wx_cv_w32api_win_ie=yes | |
9037 | CPPFLAGS="$CPPFLAGS -D_WIN_IE=0x400" | |
9038 | ||
9039 | else | |
9040 | echo "configure: failed program was:" >&5 | |
9041 | cat conftest.$ac_ext >&5 | |
9042 | rm -rf conftest* | |
9043 | ||
9044 | wx_cv_w32api_win_ie=no | |
9045 | ||
9046 | fi | |
9047 | rm -f conftest* | |
9048 | ||
9049 | fi | |
10f2d63a | 9050 | |
3a922bb4 | 9051 | echo "$ac_t""$wx_cv_w32api_win_ie" 1>&6 |
32832908 | 9052 | |
3a922bb4 RL |
9053 | LIBS="$LIBS -lwinspool -lwinmm -lshell32 -lcomctl32 -lctl3d32 -ladvapi32 -lwsock32" |
9054 | ||
9055 | if test "$wxUSE_ODBC" = "yes" ; then | |
9056 | LIBS="$LIBS -lodbc32 -lole32 -loleaut32" | |
9057 | fi | |
9058 | ||
9059 | if test "$wxUSE_MINGW" = 1; then | |
9060 | LDFLAGS="$LDFLAGS -mwindows" | |
9061 | fi | |
9062 | ||
9063 | RESFLAGS="--include-dir \$(top_srcdir)/include --include-dir \$(top_srcdir)/\$(program_dir) --define __WIN32__ --define __WIN95__ --define __GNUWIN32__" | |
9064 | RESPROGRAMOBJ="\$(PROGRAM)_resources.o" | |
9065 | fi | |
9066 | ||
9067 | if test "$wxUSE_GUI" = "yes"; then | |
9068 | USE_GUI=1 | |
32832908 | 9069 | |
3a922bb4 RL |
9070 | GUI_TK_LIBRARY= |
9071 | ||
9072 | WXGTK12= | |
9073 | WXGTK127= | |
9074 | WXGTK20= | |
32832908 | 9075 | |
3a922bb4 RL |
9076 | if test "$wxUSE_CYGWIN" = 1 || test "$wxUSE_MINGW" = 1 ; then |
9077 | TOOLKIT=MSW | |
9078 | GUIDIST=MSW_DIST | |
1e6feb95 | 9079 | fi |
10f2d63a | 9080 | |
1e6feb95 | 9081 | if test "$wxUSE_GTK" = 1; then |
8168de4c | 9082 | echo $ac_n "checking for GTK+ version""... $ac_c" 1>&6 |
edae8572 | 9083 | echo "configure:9084: checking for GTK+ version" >&5 |
8168de4c VZ |
9084 | |
9085 | gtk_version_cached=1 | |
9086 | if eval "test \"`echo '$''{'wx_cv_lib_gtk'+set}'`\" = set"; then | |
9087 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9088 | else | |
9089 | ||
9090 | gtk_version_cached=0 | |
9091 | echo "$ac_t""""" 1>&6 | |
9092 | ||
9093 | wx_cv_lib_gtk= | |
9094 | if test "x$wxUSE_GTK2" = "xyes"; then | |
9095 | # Check whether --with-gtk-prefix or --without-gtk-prefix was given. | |
6f72b082 OK |
9096 | if test "${with_gtk_prefix+set}" = set; then |
9097 | withval="$with_gtk_prefix" | |
9098 | gtk_config_prefix="$withval" | |
9099 | else | |
9100 | gtk_config_prefix="" | |
698dcdb6 | 9101 | fi |
6f72b082 OK |
9102 | |
9103 | # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given. | |
9104 | if test "${with_gtk_exec_prefix+set}" = set; then | |
9105 | withval="$with_gtk_exec_prefix" | |
9106 | gtk_config_exec_prefix="$withval" | |
9107 | else | |
9108 | gtk_config_exec_prefix="" | |
698dcdb6 VZ |
9109 | fi |
9110 | ||
6f72b082 OK |
9111 | # Check whether --enable-gtktest or --disable-gtktest was given. |
9112 | if test "${enable_gtktest+set}" = set; then | |
9113 | enableval="$enable_gtktest" | |
698dcdb6 | 9114 | : |
6f72b082 OK |
9115 | else |
9116 | enable_gtktest=yes | |
698dcdb6 VZ |
9117 | fi |
9118 | ||
6f72b082 | 9119 | |
8168de4c | 9120 | for module in . |
6f72b082 OK |
9121 | do |
9122 | case "$module" in | |
8168de4c | 9123 | gthread) |
6f72b082 OK |
9124 | gtk_config_args="$gtk_config_args gthread" |
9125 | ;; | |
9126 | esac | |
9127 | done | |
9128 | ||
9129 | if test x$gtk_config_exec_prefix != x ; then | |
9130 | gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix" | |
9131 | if test x${GTK_CONFIG_2_0+set} != xset ; then | |
9132 | GTK_CONFIG_2_0=$gtk_config_exec_prefix/bin/gtk-config-2.0 | |
9133 | fi | |
9134 | fi | |
9135 | if test x$gtk_config_prefix != x ; then | |
9136 | gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix" | |
9137 | if test x${GTK_CONFIG_2_0+set} != xset ; then | |
9138 | GTK_CONFIG_2_0=$gtk_config_prefix/bin/gtk-config-2.0 | |
9139 | fi | |
9140 | fi | |
9141 | ||
9142 | # Extract the first word of "gtk-config-2.0", so it can be a program name with args. | |
9143 | set dummy gtk-config-2.0; ac_word=$2 | |
698dcdb6 | 9144 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
edae8572 | 9145 | echo "configure:9146: checking for $ac_word" >&5 |
698dcdb6 VZ |
9146 | if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG_2_0'+set}'`\" = set"; then |
9147 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6f72b082 | 9148 | else |
698dcdb6 VZ |
9149 | case "$GTK_CONFIG_2_0" in |
9150 | /*) | |
6f72b082 OK |
9151 | ac_cv_path_GTK_CONFIG_2_0="$GTK_CONFIG_2_0" # Let the user override the test with a path. |
9152 | ;; | |
698dcdb6 VZ |
9153 | ?:/*) |
9154 | ac_cv_path_GTK_CONFIG_2_0="$GTK_CONFIG_2_0" # Let the user override the test with a dos path. | |
9155 | ;; | |
6f72b082 | 9156 | *) |
698dcdb6 VZ |
9157 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
9158 | ac_dummy="$PATH" | |
9159 | for ac_dir in $ac_dummy; do | |
9160 | test -z "$ac_dir" && ac_dir=. | |
9161 | if test -f $ac_dir/$ac_word; then | |
9162 | ac_cv_path_GTK_CONFIG_2_0="$ac_dir/$ac_word" | |
9163 | break | |
9164 | fi | |
9165 | done | |
9166 | IFS="$ac_save_ifs" | |
6f72b082 OK |
9167 | test -z "$ac_cv_path_GTK_CONFIG_2_0" && ac_cv_path_GTK_CONFIG_2_0="no" |
9168 | ;; | |
9169 | esac | |
9170 | fi | |
698dcdb6 | 9171 | GTK_CONFIG_2_0="$ac_cv_path_GTK_CONFIG_2_0" |
6f72b082 | 9172 | if test -n "$GTK_CONFIG_2_0"; then |
698dcdb6 | 9173 | echo "$ac_t""$GTK_CONFIG_2_0" 1>&6 |
6f72b082 | 9174 | else |
698dcdb6 | 9175 | echo "$ac_t""no" 1>&6 |
6f72b082 OK |
9176 | fi |
9177 | ||
9178 | min_gtk_version=1.3.1 | |
698dcdb6 | 9179 | echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6 |
edae8572 | 9180 | echo "configure:9181: checking for GTK - version >= $min_gtk_version" >&5 |
6f72b082 OK |
9181 | no_gtk="" |
9182 | if test "$GTK_CONFIG_2_0" = "no" ; then | |
9183 | no_gtk=yes | |
9184 | else | |
9185 | GTK_CFLAGS=`$GTK_CONFIG_2_0 $gtk_config_args --cflags` | |
9186 | GTK_LIBS=`$GTK_CONFIG_2_0 $gtk_config_args --libs` | |
9187 | gtk_config_major_version=`$GTK_CONFIG_2_0 $gtk_config_args --version | \ | |
9188 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` | |
9189 | gtk_config_minor_version=`$GTK_CONFIG_2_0 $gtk_config_args --version | \ | |
9190 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` | |
9191 | gtk_config_micro_version=`$GTK_CONFIG_2_0 $gtk_config_args --version | \ | |
9192 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` | |
9193 | if test "x$enable_gtktest" = "xyes" ; then | |
9194 | ac_save_CFLAGS="$CFLAGS" | |
9195 | ac_save_LIBS="$LIBS" | |
9196 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
9197 | LIBS="$GTK_LIBS $LIBS" | |
9198 | rm -f conf.gtktest | |
9199 | if test "$cross_compiling" = yes; then | |
9200 | echo $ac_n "cross compiling; assumed OK... $ac_c" | |
9201 | else | |
698dcdb6 | 9202 | cat > conftest.$ac_ext <<EOF |
edae8572 | 9203 | #line 9204 "configure" |
6f72b082 OK |
9204 | #include "confdefs.h" |
9205 | ||
9206 | #include <gtk/gtk.h> | |
9207 | #include <stdio.h> | |
9208 | #include <stdlib.h> | |
9209 | ||
8168de4c | 9210 | int |
6f72b082 OK |
9211 | main () |
9212 | { | |
9213 | int major, minor, micro; | |
9214 | char *tmp_version; | |
9215 | ||
9216 | system ("touch conf.gtktest"); | |
9217 | ||
9218 | /* HP/UX 9 (%@#!) writes to sscanf strings */ | |
9219 | tmp_version = g_strdup("$min_gtk_version"); | |
9220 | if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { | |
9221 | printf("%s, bad version string\n", "$min_gtk_version"); | |
9222 | exit(1); | |
9223 | } | |
9224 | ||
9225 | if ((gtk_major_version != $gtk_config_major_version) || | |
9226 | (gtk_minor_version != $gtk_config_minor_version) || | |
9227 | (gtk_micro_version != $gtk_config_micro_version)) | |
9228 | { | |
8168de4c | 9229 | printf("\n*** 'gtk-config-2.0 --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n", |
6f72b082 OK |
9230 | $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version, |
9231 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
9232 | printf ("*** was found! If gtk-config-2.0 was correct, then it is best\n"); | |
9233 | printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n"); | |
9234 | printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n"); | |
9235 | printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n"); | |
9236 | printf("*** required on your system.\n"); | |
9237 | printf("*** If gtk-config-2.0 was wrong, set the environment variable GTK_CONFIG_2_0\n"); | |
9238 | printf("*** to point to the correct copy of gtk-config-2.0, and remove the file config.cache\n"); | |
9239 | printf("*** before re-running configure\n"); | |
8168de4c | 9240 | } |
6f72b082 OK |
9241 | #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION) |
9242 | else if ((gtk_major_version != GTK_MAJOR_VERSION) || | |
8168de4c | 9243 | (gtk_minor_version != GTK_MINOR_VERSION) || |
6f72b082 OK |
9244 | (gtk_micro_version != GTK_MICRO_VERSION)) |
9245 | { | |
9246 | printf("*** GTK+ header files (version %d.%d.%d) do not match\n", | |
8168de4c | 9247 | GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION); |
6f72b082 | 9248 | printf("*** library (version %d.%d.%d)\n", |
8168de4c | 9249 | gtk_major_version, gtk_minor_version, gtk_micro_version); |
6f72b082 OK |
9250 | } |
9251 | #endif /* defined (GTK_MAJOR_VERSION) ... */ | |
9252 | else | |
9253 | { | |
9254 | if ((gtk_major_version > major) || | |
9255 | ((gtk_major_version == major) && (gtk_minor_version > minor)) || | |
9256 | ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro))) | |
9257 | { | |
9258 | return 0; | |
9259 | } | |
9260 | else | |
9261 | { | |
9262 | printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n", | |
9263 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
9264 | printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n", | |
8168de4c | 9265 | major, minor, micro); |
6f72b082 OK |
9266 | printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n"); |
9267 | printf("***\n"); | |
9268 | printf("*** If you have already installed a sufficiently new version, this error\n"); | |
9269 | printf("*** probably means that the wrong copy of the gtk-config-2.0 shell script is\n"); | |
9270 | printf("*** being found. The easiest way to fix this is to remove the old version\n"); | |
9271 | printf("*** of GTK+, but you can also set the GTK_CONFIG_2_0 environment to point to the\n"); | |
9272 | printf("*** correct copy of gtk-config-2.0. (In this case, you will have to\n"); | |
9273 | printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n"); | |
9274 | printf("*** so that the correct libraries are found at run-time))\n"); | |
9275 | } | |
9276 | } | |
9277 | return 1; | |
9278 | } | |
9279 | ||
698dcdb6 | 9280 | EOF |
edae8572 | 9281 | if { (eval echo configure:9282: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
698dcdb6 | 9282 | then |
6f72b082 OK |
9283 | : |
9284 | else | |
698dcdb6 VZ |
9285 | echo "configure: failed program was:" >&5 |
9286 | cat conftest.$ac_ext >&5 | |
9287 | rm -fr conftest* | |
9288 | no_gtk=yes | |
6f72b082 | 9289 | fi |
698dcdb6 | 9290 | rm -fr conftest* |
6f72b082 | 9291 | fi |
698dcdb6 | 9292 | |
6f72b082 OK |
9293 | CFLAGS="$ac_save_CFLAGS" |
9294 | LIBS="$ac_save_LIBS" | |
9295 | fi | |
9296 | fi | |
9297 | if test "x$no_gtk" = x ; then | |
698dcdb6 | 9298 | echo "$ac_t""yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" 1>&6 |
8168de4c | 9299 | wx_cv_lib_gtk=2.0 |
6f72b082 | 9300 | else |
698dcdb6 | 9301 | echo "$ac_t""no" 1>&6 |
6f72b082 OK |
9302 | if test "$GTK_CONFIG_2_0" = "no" ; then |
9303 | echo "*** The gtk-config-2.0 script installed by GTK could not be found" | |
9304 | echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in" | |
9305 | echo "*** your path, or set the GTK_CONFIG_2_0 environment variable to the" | |
9306 | echo "*** full path to gtk-config-2.0." | |
9307 | else | |
9308 | if test -f conf.gtktest ; then | |
9309 | : | |
9310 | else | |
9311 | echo "*** Could not run GTK test program, checking why..." | |
9312 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
9313 | LIBS="$LIBS $GTK_LIBS" | |
698dcdb6 | 9314 | cat > conftest.$ac_ext <<EOF |
edae8572 | 9315 | #line 9316 "configure" |
6f72b082 OK |
9316 | #include "confdefs.h" |
9317 | ||
9318 | #include <gtk/gtk.h> | |
9319 | #include <stdio.h> | |
9320 | ||
698dcdb6 VZ |
9321 | int main() { |
9322 | return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version)); | |
9323 | ; return 0; } | |
9324 | EOF | |
edae8572 | 9325 | if { (eval echo configure:9326: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 | 9326 | rm -rf conftest* |
6f72b082 OK |
9327 | echo "*** The test program compiled, but did not run. This usually means" |
9328 | echo "*** that the run-time linker is not finding GTK or finding the wrong" | |
9329 | echo "*** version of GTK. If it is not finding GTK, you'll need to set your" | |
9330 | echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" | |
9331 | echo "*** to the installed location Also, make sure you have run ldconfig if that" | |
9332 | echo "*** is required on your system" | |
8168de4c | 9333 | echo "***" |
6f72b082 OK |
9334 | echo "*** If you have an old version installed, it is best to remove it, although" |
9335 | echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" | |
9336 | echo "***" | |
9337 | echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that" | |
9338 | echo "*** came with the system with the command" | |
9339 | echo "***" | |
698dcdb6 | 9340 | echo "*** rpm --erase --nodeps gtk gtk-devel" |
6f72b082 | 9341 | else |
698dcdb6 VZ |
9342 | echo "configure: failed program was:" >&5 |
9343 | cat conftest.$ac_ext >&5 | |
9344 | rm -rf conftest* | |
9345 | echo "*** The test program failed to compile or link. See the file config.log for the" | |
6f72b082 OK |
9346 | echo "*** exact error that occured. This usually means GTK was incorrectly installed" |
9347 | echo "*** or that you have moved GTK since it was installed. In the latter case, you" | |
698dcdb6 | 9348 | echo "*** may want to edit the gtk-config-2.0 script: $GTK_CONFIG_2_0" |
6f72b082 | 9349 | fi |
698dcdb6 | 9350 | rm -f conftest* |
6f72b082 OK |
9351 | CFLAGS="$ac_save_CFLAGS" |
9352 | LIBS="$ac_save_LIBS" | |
9353 | fi | |
9354 | fi | |
9355 | GTK_CFLAGS="" | |
9356 | GTK_LIBS="" | |
8168de4c VZ |
9357 | gthread |
9358 | fi | |
9359 | ||
9360 | ||
9361 | rm -f conf.gtktest | |
9362 | ||
9363 | fi | |
9364 | ||
9365 | if test -z "$wx_cv_lib_gtk"; then | |
9366 | ||
10f2d63a VZ |
9367 | if test x$gtk_config_exec_prefix != x ; then |
9368 | gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix" | |
9369 | if test x${GTK_CONFIG+set} != xset ; then | |
9370 | GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config | |
9371 | fi | |
9372 | fi | |
9373 | if test x$gtk_config_prefix != x ; then | |
9374 | gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix" | |
9375 | if test x${GTK_CONFIG+set} != xset ; then | |
9376 | GTK_CONFIG=$gtk_config_prefix/bin/gtk-config | |
9377 | fi | |
9378 | fi | |
9379 | ||
9380 | # Extract the first word of "gtk-config", so it can be a program name with args. | |
9381 | set dummy gtk-config; ac_word=$2 | |
698dcdb6 | 9382 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
edae8572 | 9383 | echo "configure:9384: checking for $ac_word" >&5 |
698dcdb6 VZ |
9384 | if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then |
9385 | echo $ac_n "(cached) $ac_c" 1>&6 | |
f6bcfd97 | 9386 | else |
698dcdb6 VZ |
9387 | case "$GTK_CONFIG" in |
9388 | /*) | |
f6bcfd97 BP |
9389 | ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path. |
9390 | ;; | |
698dcdb6 VZ |
9391 | ?:/*) |
9392 | ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path. | |
9393 | ;; | |
f6bcfd97 | 9394 | *) |
698dcdb6 VZ |
9395 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
9396 | ac_dummy="$PATH" | |
9397 | for ac_dir in $ac_dummy; do | |
9398 | test -z "$ac_dir" && ac_dir=. | |
9399 | if test -f $ac_dir/$ac_word; then | |
9400 | ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word" | |
9401 | break | |
9402 | fi | |
9403 | done | |
9404 | IFS="$ac_save_ifs" | |
f6bcfd97 BP |
9405 | test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no" |
9406 | ;; | |
9407 | esac | |
9408 | fi | |
698dcdb6 | 9409 | GTK_CONFIG="$ac_cv_path_GTK_CONFIG" |
f6bcfd97 | 9410 | if test -n "$GTK_CONFIG"; then |
698dcdb6 | 9411 | echo "$ac_t""$GTK_CONFIG" 1>&6 |
f6bcfd97 | 9412 | else |
698dcdb6 | 9413 | echo "$ac_t""no" 1>&6 |
f6bcfd97 BP |
9414 | fi |
9415 | ||
9416 | min_gtk_version=1.2.7 | |
698dcdb6 | 9417 | echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6 |
edae8572 | 9418 | echo "configure:9419: checking for GTK - version >= $min_gtk_version" >&5 |
f6bcfd97 BP |
9419 | no_gtk="" |
9420 | if test "$GTK_CONFIG" != "no" ; then | |
9421 | GTK_CFLAGS=`$GTK_CONFIG --cflags` | |
9422 | GTK_LIBS=`$GTK_CONFIG --libs gthread` | |
9423 | ac_save_CFLAGS="$CFLAGS" | |
9424 | ac_save_LIBS="$LIBS" | |
9425 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
9426 | LIBS="$LIBS $GTK_LIBS" | |
9427 | if test "$cross_compiling" = yes; then | |
9428 | echo $ac_n "cross compiling; assumed OK... $ac_c" | |
9429 | else | |
698dcdb6 | 9430 | cat > conftest.$ac_ext <<EOF |
edae8572 | 9431 | #line 9432 "configure" |
f6bcfd97 BP |
9432 | #include "confdefs.h" |
9433 | ||
9434 | #include <gtk/gtk.h> | |
9435 | #include <gtk/gtkfeatures.h> | |
9436 | #include <stdio.h> | |
9437 | #include <stdlib.h> | |
9438 | ||
9439 | int | |
9440 | main () | |
9441 | { | |
9442 | int major, minor, micro; | |
9443 | ||
9444 | if (sscanf("$min_gtk_version", "%d.%d.%d", &major, &minor, µ) != 3) { | |
9445 | printf("%s, bad version string\n", "$min_gtk_version"); | |
9446 | exit(1); | |
9447 | } | |
9448 | ||
9449 | if ((GTK_MAJOR_VERSION != gtk_major_version) || | |
9450 | (GTK_MINOR_VERSION != gtk_minor_version) || | |
9451 | (GTK_MICRO_VERSION != gtk_micro_version)) { | |
9452 | printf("Headers vs. library version mismatch!\n"); | |
9453 | exit(1); | |
9454 | } | |
9455 | ||
9456 | if (gtk_minor_version == 1) return FALSE; | |
9457 | ||
9458 | return !((gtk_major_version > major) || | |
9459 | ((gtk_major_version == major) && (gtk_minor_version > minor)) || | |
9460 | ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro))); | |
9461 | } | |
9462 | ||
698dcdb6 | 9463 | EOF |
edae8572 | 9464 | if { (eval echo configure:9465: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
698dcdb6 | 9465 | then |
f6bcfd97 BP |
9466 | : |
9467 | else | |
698dcdb6 VZ |
9468 | echo "configure: failed program was:" >&5 |
9469 | cat conftest.$ac_ext >&5 | |
9470 | rm -fr conftest* | |
9471 | no_gtk=yes | |
f6bcfd97 | 9472 | fi |
698dcdb6 | 9473 | rm -fr conftest* |
f6bcfd97 | 9474 | fi |
698dcdb6 | 9475 | |
f6bcfd97 BP |
9476 | CFLAGS="$ac_save_CFLAGS" |
9477 | LIBS="$ac_save_LIBS" | |
9478 | else | |
9479 | no_gtk=yes | |
9480 | fi | |
9481 | if test "x$no_gtk" = x ; then | |
698dcdb6 | 9482 | echo "$ac_t""yes" 1>&6 |
8168de4c | 9483 | wx_cv_lib_gtk=1.2.7 |
f6bcfd97 | 9484 | else |
698dcdb6 | 9485 | echo "$ac_t""no" 1>&6 |
f6bcfd97 BP |
9486 | GTK_CFLAGS="" |
9487 | GTK_LIBS="" | |
9488 | : | |
9489 | fi | |
698dcdb6 VZ |
9490 | |
9491 | ||
f6bcfd97 | 9492 | |
8168de4c VZ |
9493 | fi |
9494 | ||
9495 | if test -z "$wx_cv_lib_gtk"; then | |
9496 | ||
f6bcfd97 BP |
9497 | if test x$gtk_config_exec_prefix != x ; then |
9498 | gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix" | |
9499 | if test x${GTK_CONFIG+set} != xset ; then | |
9500 | GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config | |
9501 | fi | |
9502 | fi | |
9503 | if test x$gtk_config_prefix != x ; then | |
9504 | gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix" | |
9505 | if test x${GTK_CONFIG+set} != xset ; then | |
9506 | GTK_CONFIG=$gtk_config_prefix/bin/gtk-config | |
9507 | fi | |
9508 | fi | |
9509 | ||
9510 | # Extract the first word of "gtk-config", so it can be a program name with args. | |
9511 | set dummy gtk-config; ac_word=$2 | |
698dcdb6 | 9512 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
edae8572 | 9513 | echo "configure:9514: checking for $ac_word" >&5 |
698dcdb6 VZ |
9514 | if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then |
9515 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 9516 | else |
698dcdb6 VZ |
9517 | case "$GTK_CONFIG" in |
9518 | /*) | |
10f2d63a VZ |
9519 | ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path. |
9520 | ;; | |
698dcdb6 VZ |
9521 | ?:/*) |
9522 | ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path. | |
9523 | ;; | |
10f2d63a | 9524 | *) |
698dcdb6 VZ |
9525 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
9526 | ac_dummy="$PATH" | |
9527 | for ac_dir in $ac_dummy; do | |
9528 | test -z "$ac_dir" && ac_dir=. | |
9529 | if test -f $ac_dir/$ac_word; then | |
9530 | ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word" | |
9531 | break | |
9532 | fi | |
9533 | done | |
9534 | IFS="$ac_save_ifs" | |
10f2d63a VZ |
9535 | test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no" |
9536 | ;; | |
9537 | esac | |
9538 | fi | |
698dcdb6 | 9539 | GTK_CONFIG="$ac_cv_path_GTK_CONFIG" |
10f2d63a | 9540 | if test -n "$GTK_CONFIG"; then |
698dcdb6 | 9541 | echo "$ac_t""$GTK_CONFIG" 1>&6 |
10f2d63a | 9542 | else |
698dcdb6 | 9543 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
9544 | fi |
9545 | ||
04165bec | 9546 | min_gtk_version=1.2.3 |
698dcdb6 | 9547 | echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6 |
edae8572 | 9548 | echo "configure:9549: checking for GTK - version >= $min_gtk_version" >&5 |
10f2d63a VZ |
9549 | no_gtk="" |
9550 | if test "$GTK_CONFIG" != "no" ; then | |
9551 | GTK_CFLAGS=`$GTK_CONFIG --cflags` | |
2224580a | 9552 | GTK_LIBS=`$GTK_CONFIG --libs gthread` |
10f2d63a VZ |
9553 | ac_save_CFLAGS="$CFLAGS" |
9554 | ac_save_LIBS="$LIBS" | |
9555 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
9556 | LIBS="$LIBS $GTK_LIBS" | |
9557 | if test "$cross_compiling" = yes; then | |
9558 | echo $ac_n "cross compiling; assumed OK... $ac_c" | |
9559 | else | |
698dcdb6 | 9560 | cat > conftest.$ac_ext <<EOF |
edae8572 | 9561 | #line 9562 "configure" |
10f2d63a VZ |
9562 | #include "confdefs.h" |
9563 | ||
9564 | #include <gtk/gtk.h> | |
f49f2b0c | 9565 | #include <gtk/gtkfeatures.h> |
10f2d63a | 9566 | #include <stdio.h> |
32832908 | 9567 | #include <stdlib.h> |
10f2d63a VZ |
9568 | |
9569 | int | |
9570 | main () | |
9571 | { | |
9572 | int major, minor, micro; | |
9573 | ||
9574 | if (sscanf("$min_gtk_version", "%d.%d.%d", &major, &minor, µ) != 3) { | |
9575 | printf("%s, bad version string\n", "$min_gtk_version"); | |
9576 | exit(1); | |
9577 | } | |
9578 | ||
f49f2b0c RR |
9579 | if ((GTK_MAJOR_VERSION != gtk_major_version) || |
9580 | (GTK_MINOR_VERSION != gtk_minor_version) || | |
9581 | (GTK_MICRO_VERSION != gtk_micro_version)) { | |
9582 | printf("Headers vs. library version mismatch!\n"); | |
9583 | exit(1); | |
9584 | } | |
9585 | ||
10f2d63a VZ |
9586 | if (gtk_minor_version == 1) return FALSE; |
9587 | ||
9588 | return !((gtk_major_version > major) || | |
9589 | ((gtk_major_version == major) && (gtk_minor_version > minor)) || | |
9590 | ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro))); | |
9591 | } | |
9592 | ||
698dcdb6 | 9593 | EOF |
edae8572 | 9594 | if { (eval echo configure:9595: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
698dcdb6 | 9595 | then |
10f2d63a VZ |
9596 | : |
9597 | else | |
698dcdb6 VZ |
9598 | echo "configure: failed program was:" >&5 |
9599 | cat conftest.$ac_ext >&5 | |
9600 | rm -fr conftest* | |
9601 | no_gtk=yes | |
10f2d63a | 9602 | fi |
698dcdb6 | 9603 | rm -fr conftest* |
10f2d63a | 9604 | fi |
698dcdb6 | 9605 | |
10f2d63a VZ |
9606 | CFLAGS="$ac_save_CFLAGS" |
9607 | LIBS="$ac_save_LIBS" | |
9608 | else | |
9609 | no_gtk=yes | |
9610 | fi | |
9611 | if test "x$no_gtk" = x ; then | |
698dcdb6 | 9612 | echo "$ac_t""yes" 1>&6 |
8168de4c | 9613 | wx_cv_lib_gtk=1.2.3 |
10f2d63a | 9614 | else |
698dcdb6 | 9615 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
9616 | GTK_CFLAGS="" |
9617 | GTK_LIBS="" | |
7e99ad86 | 9618 | : |
10f2d63a | 9619 | fi |
698dcdb6 VZ |
9620 | |
9621 | ||
10f2d63a | 9622 | |
8168de4c VZ |
9623 | fi |
9624 | ||
9625 | if test -z "$wx_cv_lib_gtk"; then | |
9626 | wx_cv_lib_gtk=none | |
138be253 VZ |
9627 | else |
9628 | wx_cv_cflags_gtk=$GTK_CFLAGS | |
9629 | wx_cv_libs_gtk=$GTK_LIBS | |
8168de4c VZ |
9630 | fi |
9631 | ||
1e6feb95 | 9632 | |
8168de4c | 9633 | fi |
703e0a69 | 9634 | |
698dcdb6 | 9635 | |
8168de4c VZ |
9636 | if test "$gtk_version_cached" = 1; then |
9637 | echo "$ac_t""$wx_cv_lib_gtk" 1>&6 | |
1e6feb95 | 9638 | fi |
698dcdb6 | 9639 | |
8168de4c VZ |
9640 | case "$wx_cv_lib_gtk" in |
9641 | 2.0) WXGTK20=1 | |
9642 | ;; | |
9643 | 1.2.7) WXGTK127=1 | |
d1a8d972 | 9644 | WXGTK12=1 |
8168de4c VZ |
9645 | ;; |
9646 | 1.2.3) WXGTK12=1 | |
9647 | ;; | |
9648 | *) { echo "configure: error: | |
9649 | Please check that gtk-config is in path, the directory | |
9650 | where GTK+ libraries are installed (returned by | |
9651 | 'gtk-config --libs' command) is in LD_LIBRARY_PATH or | |
9652 | equivalent variable and GTK+ is version 1.2.3 or above. | |
9653 | " 1>&2; exit 1; } | |
9654 | ;; | |
9655 | esac | |
2224580a | 9656 | |
138be253 | 9657 | TOOLKIT_INCLUDE="$wx_cv_cflags_gtk" |
11dfaa5f | 9658 | GUI_TK_LIBRARY="$wx_cv_libs_gtk" |
698dcdb6 | 9659 | |
1e6feb95 VZ |
9660 | AFMINSTALL=afminstall |
9661 | TOOLKIT=GTK | |
9662 | GUIDIST=GTK_DIST | |
7ec2881a | 9663 | |
1e6feb95 | 9664 | echo $ac_n "checking for gdk_im_open in -lgdk""... $ac_c" 1>&6 |
edae8572 | 9665 | echo "configure:9666: checking for gdk_im_open in -lgdk" >&5 |
698dcdb6 VZ |
9666 | ac_lib_var=`echo gdk'_'gdk_im_open | sed 'y%./+-%__p_%'` |
9667 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
9668 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7ec2881a | 9669 | else |
698dcdb6 | 9670 | ac_save_LIBS="$LIBS" |
7ec2881a | 9671 | LIBS="-lgdk $LIBS" |
698dcdb6 | 9672 | cat > conftest.$ac_ext <<EOF |
edae8572 | 9673 | #line 9674 "configure" |
7ec2881a RR |
9674 | #include "confdefs.h" |
9675 | /* Override any gcc2 internal prototype to avoid an error. */ | |
9676 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
9677 | builtin and then its argument prototype would still apply. */ |
9678 | char gdk_im_open(); | |
9679 | ||
9680 | int main() { | |
9681 | gdk_im_open() | |
9682 | ; return 0; } | |
9683 | EOF | |
edae8572 | 9684 | if { (eval echo configure:9685: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
9685 | rm -rf conftest* |
9686 | eval "ac_cv_lib_$ac_lib_var=yes" | |
9687 | else | |
9688 | echo "configure: failed program was:" >&5 | |
9689 | cat conftest.$ac_ext >&5 | |
9690 | rm -rf conftest* | |
9691 | eval "ac_cv_lib_$ac_lib_var=no" | |
9692 | fi | |
9693 | rm -f conftest* | |
9694 | LIBS="$ac_save_LIBS" | |
9695 | ||
9696 | fi | |
9697 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
9698 | echo "$ac_t""yes" 1>&6 | |
9699 | cat >> confdefs.h <<\EOF | |
7ec2881a RR |
9700 | #define HAVE_XIM 1 |
9701 | EOF | |
9702 | ||
698dcdb6 VZ |
9703 | else |
9704 | echo "$ac_t""no" 1>&6 | |
7ec2881a RR |
9705 | fi |
9706 | ||
1e6feb95 | 9707 | fi |
10f2d63a | 9708 | |
1e6feb95 VZ |
9709 | if test "$wxUSE_MGL" = 1; then |
9710 | ||
9711 | echo $ac_n "checking for SciTech MGL library""... $ac_c" 1>&6 | |
edae8572 | 9712 | echo "configure:9713: checking for SciTech MGL library" >&5 |
1e6feb95 VZ |
9713 | if test "x$MGL_ROOT" = x ; then |
9714 | echo "$ac_t""not found" 1>&6 | |
9715 | { echo "configure: error: Cannot find MGL library. Make sure MGL_ROOT is set." 1>&2; exit 1; } | |
9716 | else | |
9717 | echo "$ac_t""$MGL_ROOT" 1>&6 | |
9718 | fi | |
9719 | ||
3a922bb4 RL |
9720 | mgl_os=linux/gcc/glibc |
9721 | mgl_lib_type="" | |
1e6feb95 VZ |
9722 | |
9723 | if test "$wxUSE_DEBUG_FLAG" = yes ; then | |
3a922bb4 RL |
9724 | if test -f $MGL_ROOT/lib/debug/$mgl_os/libmgl.a ; then |
9725 | mgl_lib_type=debug | |
1e6feb95 VZ |
9726 | fi |
9727 | fi | |
3a922bb4 RL |
9728 | if test "x$mgl_lib_type" = x ; then |
9729 | if test -f $MGL_ROOT/lib/release/$mgl_os/libmgl.a ; then | |
9730 | mgl_lib_type=release | |
1e6feb95 VZ |
9731 | else |
9732 | { echo "configure: error: Cannot find MGL libraries, make sure they are compiled." 1>&2; exit 1; } | |
9733 | fi | |
9734 | fi | |
9735 | ||
9736 | TOOLKIT_INCLUDE="-I$MGL_ROOT/include" | |
3a922bb4 | 9737 | GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$mgl_lib_type/$mgl_os -lmgl -lmglcpp -lpm" |
1e6feb95 VZ |
9738 | |
9739 | AFMINSTALL=afminstall | |
9740 | TOOLKIT=MGL | |
9741 | GUIDIST=MGL_DIST | |
9742 | fi | |
9743 | ||
9744 | if test "$wxUSE_WINE" = 1; then | |
3a922bb4 RL |
9745 | ac_safe=`echo "windows.h" | sed 'y%./+-%__p_%'` |
9746 | echo $ac_n "checking for windows.h""... $ac_c" 1>&6 | |
edae8572 | 9747 | echo "configure:9748: checking for windows.h" >&5 |
3a922bb4 RL |
9748 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
9749 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9750 | else | |
9751 | cat > conftest.$ac_ext <<EOF | |
edae8572 | 9752 | #line 9753 "configure" |
3a922bb4 RL |
9753 | #include "confdefs.h" |
9754 | #include <windows.h> | |
9755 | EOF | |
9756 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
edae8572 | 9757 | { (eval echo configure:9758: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
3a922bb4 RL |
9758 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
9759 | if test -z "$ac_err"; then | |
9760 | rm -rf conftest* | |
9761 | eval "ac_cv_header_$ac_safe=yes" | |
9762 | else | |
9763 | echo "$ac_err" >&5 | |
9764 | echo "configure: failed program was:" >&5 | |
9765 | cat conftest.$ac_ext >&5 | |
9766 | rm -rf conftest* | |
9767 | eval "ac_cv_header_$ac_safe=no" | |
9768 | fi | |
9769 | rm -f conftest* | |
9770 | fi | |
9771 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
9772 | echo "$ac_t""yes" 1>&6 | |
9773 | : | |
9774 | else | |
9775 | echo "$ac_t""no" 1>&6 | |
10f2d63a | 9776 | |
1e6feb95 | 9777 | { echo "configure: error: please set CFLAGS to contain the location of windows.h" 1>&2; exit 1; } |
3a922bb4 RL |
9778 | |
9779 | fi | |
9780 | ||
10f2d63a | 9781 | |
3a922bb4 | 9782 | xpm_link="" |
1e6feb95 | 9783 | echo $ac_n "checking for Xpm library""... $ac_c" 1>&6 |
edae8572 | 9784 | echo "configure:9785: checking for Xpm library" >&5 |
1e6feb95 | 9785 | |
10f2d63a VZ |
9786 | ac_find_libraries= |
9787 | for ac_dir in $SEARCH_LIB; | |
9788 | do | |
f11bdd03 | 9789 | for ac_extension in a so sl dylib; do |
10f2d63a VZ |
9790 | if test -f "$ac_dir/libXpm.$ac_extension"; then |
9791 | ac_find_libraries=$ac_dir | |
9792 | break 2 | |
9793 | fi | |
9794 | done | |
9795 | done | |
9796 | ||
1e6feb95 VZ |
9797 | if test "$ac_find_libraries" != "" ; then |
9798 | GUI_TK_LIBRARY="-L$ac_find_libraries" | |
3a922bb4 | 9799 | xpm_link="-lXpm" |
1e6feb95 | 9800 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
9801 | #define wxHAVE_LIB_XPM 1 |
9802 | EOF | |
9803 | ||
1e6feb95 VZ |
9804 | echo "$ac_t""found at $ac_find_libraries" 1>&6 |
9805 | else | |
9806 | echo "$ac_t""no" 1>&6 | |
9807 | echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2 | |
9808 | fi | |
10f2d63a | 9809 | |
3a922bb4 | 9810 | mesa_link="" |
1e6feb95 | 9811 | echo $ac_n "checking for Mesa library""... $ac_c" 1>&6 |
edae8572 | 9812 | echo "configure:9813: checking for Mesa library" >&5 |
1e6feb95 | 9813 | |
10f2d63a VZ |
9814 | ac_find_libraries= |
9815 | for ac_dir in $SEARCH_LIB; | |
9816 | do | |
f11bdd03 | 9817 | for ac_extension in a so sl dylib; do |
10f2d63a VZ |
9818 | if test -f "$ac_dir/libMesaGL.$ac_extension"; then |
9819 | ac_find_libraries=$ac_dir | |
9820 | break 2 | |
9821 | fi | |
9822 | done | |
9823 | done | |
9824 | ||
1e6feb95 VZ |
9825 | if test "$ac_find_libraries" != "" ; then |
9826 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -L$ac_find_libraries" | |
3a922bb4 | 9827 | mesa_link="-lMesaGL" |
1e6feb95 VZ |
9828 | echo "$ac_t""found at $ac_find_libraries" 1>&6 |
9829 | else | |
9830 | { echo "configure: error: no" 1>&2; exit 1; } | |
9831 | fi | |
10f2d63a | 9832 | |
3a922bb4 | 9833 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lwine $mesa_link $xpm_link -lXxf86dga -lXxf86vm -lSM -lICE -lXext -lXmu -lX11 -lncurses" |
1e6feb95 VZ |
9834 | TOOLKIT=MSW |
9835 | GUIDIST=MSW_DIST | |
3a922bb4 | 9836 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXWINE__" |
1e6feb95 | 9837 | fi |
698dcdb6 | 9838 | |
1e6feb95 VZ |
9839 | |
9840 | # If we find X, set shell vars x_includes and x_libraries to the | |
698dcdb6 VZ |
9841 | # paths, otherwise set no_x=yes. |
9842 | # Uses ac_ vars as temps to allow command line to override cache and checks. | |
9843 | # --without-x overrides everything else, but does not touch the cache. | |
9844 | echo $ac_n "checking for X""... $ac_c" 1>&6 | |
edae8572 | 9845 | echo "configure:9846: checking for X" >&5 |
ab9b9eab VZ |
9846 | |
9847 | # Check whether --with-x or --without-x was given. | |
9848 | if test "${with_x+set}" = set; then | |
9849 | withval="$with_x" | |
698dcdb6 VZ |
9850 | : |
9851 | fi | |
ba337fe7 | 9852 | |
ab9b9eab VZ |
9853 | # $have_x is `yes', `no', `disabled', or empty when we do not yet know. |
9854 | if test "x$with_x" = xno; then | |
9855 | # The user explicitly disabled X. | |
9856 | have_x=disabled | |
9857 | else | |
9858 | if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then | |
9859 | # Both variables are already set. | |
9860 | have_x=yes | |
9861 | else | |
698dcdb6 VZ |
9862 | if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then |
9863 | echo $ac_n "(cached) $ac_c" 1>&6 | |
ab9b9eab VZ |
9864 | else |
9865 | # One or both of the vars are not set, and there is no cached value. | |
698dcdb6 VZ |
9866 | ac_x_includes=NO ac_x_libraries=NO |
9867 | rm -fr conftestdir | |
9868 | if mkdir conftestdir; then | |
9869 | cd conftestdir | |
ab9b9eab | 9870 | # Make sure to not put "make" in the Imakefile rules, since we grep it out. |
698dcdb6 | 9871 | cat > Imakefile <<'EOF' |
ab9b9eab VZ |
9872 | acfindx: |
9873 | @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"' | |
9874 | EOF | |
9875 | if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then | |
9876 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
9877 | eval `${MAKE-make} acfindx 2>/dev/null | grep -v make` | |
9878 | # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. | |
10f2d63a | 9879 | for ac_extension in a so sl; do |
ab9b9eab | 9880 | if test ! -f $ac_im_usrlibdir/libX11.$ac_extension && |
698dcdb6 | 9881 | test -f $ac_im_libdir/libX11.$ac_extension; then |
ab9b9eab | 9882 | ac_im_usrlibdir=$ac_im_libdir; break |
10f2d63a VZ |
9883 | fi |
9884 | done | |
ab9b9eab VZ |
9885 | # Screen out bogus values from the imake configuration. They are |
9886 | # bogus both because they are the default anyway, and because | |
9887 | # using them would break gcc on systems where it needs fixed includes. | |
698dcdb6 | 9888 | case "$ac_im_incroot" in |
ab9b9eab | 9889 | /usr/include) ;; |
698dcdb6 | 9890 | *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;; |
ab9b9eab | 9891 | esac |
698dcdb6 | 9892 | case "$ac_im_usrlibdir" in |
ab9b9eab | 9893 | /usr/lib | /lib) ;; |
698dcdb6 | 9894 | *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;; |
ab9b9eab | 9895 | esac |
ba337fe7 | 9896 | fi |
ab9b9eab | 9897 | cd .. |
698dcdb6 | 9898 | rm -fr conftestdir |
ab9b9eab | 9899 | fi |
10f2d63a | 9900 | |
698dcdb6 VZ |
9901 | if test "$ac_x_includes" = NO; then |
9902 | # Guess where to find include files, by looking for this one X11 .h file. | |
9903 | test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h | |
9904 | ||
ab9b9eab | 9905 | # First, try using that file with no special directory specified. |
698dcdb6 | 9906 | cat > conftest.$ac_ext <<EOF |
edae8572 | 9907 | #line 9908 "configure" |
ab9b9eab | 9908 | #include "confdefs.h" |
698dcdb6 VZ |
9909 | #include <$x_direct_test_include> |
9910 | EOF | |
9911 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
edae8572 | 9912 | { (eval echo configure:9913: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
9913 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
9914 | if test -z "$ac_err"; then | |
9915 | rm -rf conftest* | |
ab9b9eab VZ |
9916 | # We can compile using X headers with no special include directory. |
9917 | ac_x_includes= | |
9918 | else | |
698dcdb6 VZ |
9919 | echo "$ac_err" >&5 |
9920 | echo "configure: failed program was:" >&5 | |
ab9b9eab | 9921 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
9922 | rm -rf conftest* |
9923 | # Look for the header file in a standard set of common directories. | |
9924 | # Check X11 before X11Rn because it is often a symlink to the current release. | |
9925 | for ac_dir in \ | |
9926 | /usr/X11/include \ | |
9927 | /usr/X11R6/include \ | |
9928 | /usr/X11R5/include \ | |
9929 | /usr/X11R4/include \ | |
9930 | \ | |
9931 | /usr/include/X11 \ | |
9932 | /usr/include/X11R6 \ | |
9933 | /usr/include/X11R5 \ | |
9934 | /usr/include/X11R4 \ | |
9935 | \ | |
9936 | /usr/local/X11/include \ | |
9937 | /usr/local/X11R6/include \ | |
9938 | /usr/local/X11R5/include \ | |
9939 | /usr/local/X11R4/include \ | |
9940 | \ | |
9941 | /usr/local/include/X11 \ | |
9942 | /usr/local/include/X11R6 \ | |
9943 | /usr/local/include/X11R5 \ | |
9944 | /usr/local/include/X11R4 \ | |
9945 | \ | |
9946 | /usr/X386/include \ | |
9947 | /usr/x386/include \ | |
9948 | /usr/XFree86/include/X11 \ | |
9949 | \ | |
9950 | /usr/include \ | |
9951 | /usr/local/include \ | |
9952 | /usr/unsupported/include \ | |
9953 | /usr/athena/include \ | |
9954 | /usr/local/x11r5/include \ | |
9955 | /usr/lpp/Xamples/include \ | |
9956 | \ | |
9957 | /usr/openwin/include \ | |
9958 | /usr/openwin/share/include \ | |
9959 | ; \ | |
9960 | do | |
9961 | if test -r "$ac_dir/$x_direct_test_include"; then | |
9962 | ac_x_includes=$ac_dir | |
9963 | break | |
9964 | fi | |
9965 | done | |
ab9b9eab | 9966 | fi |
698dcdb6 VZ |
9967 | rm -f conftest* |
9968 | fi # $ac_x_includes = NO | |
10f2d63a | 9969 | |
698dcdb6 | 9970 | if test "$ac_x_libraries" = NO; then |
ab9b9eab | 9971 | # Check for the libraries. |
698dcdb6 VZ |
9972 | |
9973 | test -z "$x_direct_test_library" && x_direct_test_library=Xt | |
9974 | test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc | |
9975 | ||
ab9b9eab VZ |
9976 | # See if we find them without any special options. |
9977 | # Don't add to $LIBS permanently. | |
698dcdb6 VZ |
9978 | ac_save_LIBS="$LIBS" |
9979 | LIBS="-l$x_direct_test_library $LIBS" | |
9980 | cat > conftest.$ac_ext <<EOF | |
edae8572 | 9981 | #line 9982 "configure" |
ab9b9eab | 9982 | #include "confdefs.h" |
698dcdb6 VZ |
9983 | |
9984 | int main() { | |
9985 | ${x_direct_test_function}() | |
9986 | ; return 0; } | |
9987 | EOF | |
edae8572 | 9988 | if { (eval echo configure:9989: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
9989 | rm -rf conftest* |
9990 | LIBS="$ac_save_LIBS" | |
ab9b9eab VZ |
9991 | # We can link X programs with no special library path. |
9992 | ac_x_libraries= | |
9993 | else | |
698dcdb6 VZ |
9994 | echo "configure: failed program was:" >&5 |
9995 | cat conftest.$ac_ext >&5 | |
9996 | rm -rf conftest* | |
9997 | LIBS="$ac_save_LIBS" | |
9998 | # First see if replacing the include by lib works. | |
9999 | # Check X11 before X11Rn because it is often a symlink to the current release. | |
10000 | for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \ | |
10001 | /usr/X11/lib \ | |
10002 | /usr/X11R6/lib \ | |
10003 | /usr/X11R5/lib \ | |
10004 | /usr/X11R4/lib \ | |
10005 | \ | |
10006 | /usr/lib/X11 \ | |
10007 | /usr/lib/X11R6 \ | |
10008 | /usr/lib/X11R5 \ | |
10009 | /usr/lib/X11R4 \ | |
10010 | \ | |
10011 | /usr/local/X11/lib \ | |
10012 | /usr/local/X11R6/lib \ | |
10013 | /usr/local/X11R5/lib \ | |
10014 | /usr/local/X11R4/lib \ | |
10015 | \ | |
10016 | /usr/local/lib/X11 \ | |
10017 | /usr/local/lib/X11R6 \ | |
10018 | /usr/local/lib/X11R5 \ | |
10019 | /usr/local/lib/X11R4 \ | |
10020 | \ | |
10021 | /usr/X386/lib \ | |
10022 | /usr/x386/lib \ | |
10023 | /usr/XFree86/lib/X11 \ | |
10024 | \ | |
10025 | /usr/lib \ | |
10026 | /usr/local/lib \ | |
10027 | /usr/unsupported/lib \ | |
10028 | /usr/athena/lib \ | |
10029 | /usr/local/x11r5/lib \ | |
10030 | /usr/lpp/Xamples/lib \ | |
10031 | /lib/usr/lib/X11 \ | |
10032 | \ | |
10033 | /usr/openwin/lib \ | |
10034 | /usr/openwin/share/lib \ | |
10035 | ; \ | |
ab9b9eab VZ |
10036 | do |
10037 | for ac_extension in a so sl; do | |
698dcdb6 | 10038 | if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then |
ab9b9eab VZ |
10039 | ac_x_libraries=$ac_dir |
10040 | break 2 | |
10f2d63a | 10041 | fi |
10f2d63a | 10042 | done |
ab9b9eab VZ |
10043 | done |
10044 | fi | |
698dcdb6 VZ |
10045 | rm -f conftest* |
10046 | fi # $ac_x_libraries = NO | |
10f2d63a | 10047 | |
698dcdb6 | 10048 | if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then |
ab9b9eab VZ |
10049 | # Didn't find X anywhere. Cache the known absence of X. |
10050 | ac_cv_have_x="have_x=no" | |
10051 | else | |
10052 | # Record where we found X for the cache. | |
10053 | ac_cv_have_x="have_x=yes \ | |
10054 | ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries" | |
10055 | fi | |
10056 | fi | |
10f2d63a | 10057 | fi |
ab9b9eab VZ |
10058 | eval "$ac_cv_have_x" |
10059 | fi # $with_x != no | |
10f2d63a | 10060 | |
ab9b9eab | 10061 | if test "$have_x" != yes; then |
698dcdb6 | 10062 | echo "$ac_t""$have_x" 1>&6 |
ab9b9eab VZ |
10063 | no_x=yes |
10064 | else | |
10065 | # If each of the values was on the command line, it overrides each guess. | |
10066 | test "x$x_includes" = xNONE && x_includes=$ac_x_includes | |
10067 | test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries | |
10068 | # Update the cache value to reflect the command line values. | |
10069 | ac_cv_have_x="have_x=yes \ | |
10070 | ac_x_includes=$x_includes ac_x_libraries=$x_libraries" | |
698dcdb6 | 10071 | echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6 |
ab9b9eab | 10072 | fi |
10f2d63a | 10073 | |
ab9b9eab VZ |
10074 | if test "$no_x" = yes; then |
10075 | # Not all programs may use this symbol, but it does not hurt to define it. | |
698dcdb6 | 10076 | cat >> confdefs.h <<\EOF |
ab9b9eab VZ |
10077 | #define X_DISPLAY_MISSING 1 |
10078 | EOF | |
10f2d63a | 10079 | |
ab9b9eab VZ |
10080 | X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= |
10081 | else | |
10082 | if test -n "$x_includes"; then | |
10083 | X_CFLAGS="$X_CFLAGS -I$x_includes" | |
10f2d63a VZ |
10084 | fi |
10085 | ||
ab9b9eab VZ |
10086 | # It would also be nice to do this for all -L options, not just this one. |
10087 | if test -n "$x_libraries"; then | |
10088 | X_LIBS="$X_LIBS -L$x_libraries" | |
10089 | # For Solaris; some versions of Sun CC require a space after -R and | |
10090 | # others require no space. Words are not sufficient . . . . | |
698dcdb6 | 10091 | case "`(uname -sr) 2>/dev/null`" in |
ab9b9eab | 10092 | "SunOS 5"*) |
698dcdb6 | 10093 | echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6 |
edae8572 | 10094 | echo "configure:10095: checking whether -R must be followed by a space" >&5 |
698dcdb6 VZ |
10095 | ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries" |
10096 | cat > conftest.$ac_ext <<EOF | |
edae8572 | 10097 | #line 10098 "configure" |
ab9b9eab | 10098 | #include "confdefs.h" |
10f2d63a | 10099 | |
698dcdb6 | 10100 | int main() { |
788deba1 | 10101 | |
698dcdb6 VZ |
10102 | ; return 0; } |
10103 | EOF | |
edae8572 | 10104 | if { (eval echo configure:10105: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 | 10105 | rm -rf conftest* |
ab9b9eab VZ |
10106 | ac_R_nospace=yes |
10107 | else | |
698dcdb6 VZ |
10108 | echo "configure: failed program was:" >&5 |
10109 | cat conftest.$ac_ext >&5 | |
10110 | rm -rf conftest* | |
10111 | ac_R_nospace=no | |
ab9b9eab | 10112 | fi |
698dcdb6 | 10113 | rm -f conftest* |
ab9b9eab | 10114 | if test $ac_R_nospace = yes; then |
698dcdb6 | 10115 | echo "$ac_t""no" 1>&6 |
ab9b9eab VZ |
10116 | X_LIBS="$X_LIBS -R$x_libraries" |
10117 | else | |
10118 | LIBS="$ac_xsave_LIBS -R $x_libraries" | |
698dcdb6 | 10119 | cat > conftest.$ac_ext <<EOF |
edae8572 | 10120 | #line 10121 "configure" |
ab9b9eab | 10121 | #include "confdefs.h" |
788deba1 | 10122 | |
698dcdb6 | 10123 | int main() { |
ab9b9eab | 10124 | |
698dcdb6 VZ |
10125 | ; return 0; } |
10126 | EOF | |
edae8572 | 10127 | if { (eval echo configure:10128: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 | 10128 | rm -rf conftest* |
ab9b9eab VZ |
10129 | ac_R_space=yes |
10130 | else | |
698dcdb6 VZ |
10131 | echo "configure: failed program was:" >&5 |
10132 | cat conftest.$ac_ext >&5 | |
10133 | rm -rf conftest* | |
10134 | ac_R_space=no | |
ab9b9eab | 10135 | fi |
698dcdb6 | 10136 | rm -f conftest* |
ab9b9eab | 10137 | if test $ac_R_space = yes; then |
698dcdb6 | 10138 | echo "$ac_t""yes" 1>&6 |
ab9b9eab VZ |
10139 | X_LIBS="$X_LIBS -R $x_libraries" |
10140 | else | |
698dcdb6 | 10141 | echo "$ac_t""neither works" 1>&6 |
ab9b9eab VZ |
10142 | fi |
10143 | fi | |
698dcdb6 | 10144 | LIBS="$ac_xsave_LIBS" |
ab9b9eab VZ |
10145 | esac |
10146 | fi | |
10147 | ||
10148 | # Check for system-dependent libraries X programs must link with. | |
10149 | # Do this before checking for the system-independent R6 libraries | |
10150 | # (-lICE), since we may need -lsocket or whatever for X linking. | |
10151 | ||
10152 | if test "$ISC" = yes; then | |
10153 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" | |
10154 | else | |
698dcdb6 VZ |
10155 | # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X |
10156 | # libraries were built with DECnet support. And karl@cs.umb.edu says | |
ab9b9eab | 10157 | # the Alpha needs dnet_stub (dnet does not exist). |
698dcdb6 | 10158 | echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6 |
edae8572 | 10159 | echo "configure:10160: checking for dnet_ntoa in -ldnet" >&5 |
698dcdb6 VZ |
10160 | ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'` |
10161 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
10162 | echo $ac_n "(cached) $ac_c" 1>&6 | |
ab9b9eab | 10163 | else |
698dcdb6 | 10164 | ac_save_LIBS="$LIBS" |
ab9b9eab | 10165 | LIBS="-ldnet $LIBS" |
698dcdb6 | 10166 | cat > conftest.$ac_ext <<EOF |
edae8572 | 10167 | #line 10168 "configure" |
ab9b9eab VZ |
10168 | #include "confdefs.h" |
10169 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10170 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
10171 | builtin and then its argument prototype would still apply. */ |
10172 | char dnet_ntoa(); | |
10173 | ||
10174 | int main() { | |
10175 | dnet_ntoa() | |
10176 | ; return 0; } | |
10177 | EOF | |
edae8572 | 10178 | if { (eval echo configure:10179: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
10179 | rm -rf conftest* |
10180 | eval "ac_cv_lib_$ac_lib_var=yes" | |
10181 | else | |
10182 | echo "configure: failed program was:" >&5 | |
10183 | cat conftest.$ac_ext >&5 | |
10184 | rm -rf conftest* | |
10185 | eval "ac_cv_lib_$ac_lib_var=no" | |
10186 | fi | |
10187 | rm -f conftest* | |
10188 | LIBS="$ac_save_LIBS" | |
10189 | ||
10190 | fi | |
10191 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
10192 | echo "$ac_t""yes" 1>&6 | |
ab9b9eab | 10193 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" |
698dcdb6 VZ |
10194 | else |
10195 | echo "$ac_t""no" 1>&6 | |
ab9b9eab VZ |
10196 | fi |
10197 | ||
10198 | if test $ac_cv_lib_dnet_dnet_ntoa = no; then | |
698dcdb6 | 10199 | echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6 |
edae8572 | 10200 | echo "configure:10201: checking for dnet_ntoa in -ldnet_stub" >&5 |
698dcdb6 VZ |
10201 | ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'` |
10202 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
10203 | echo $ac_n "(cached) $ac_c" 1>&6 | |
ab9b9eab | 10204 | else |
698dcdb6 | 10205 | ac_save_LIBS="$LIBS" |
ab9b9eab | 10206 | LIBS="-ldnet_stub $LIBS" |
698dcdb6 | 10207 | cat > conftest.$ac_ext <<EOF |
edae8572 | 10208 | #line 10209 "configure" |
ab9b9eab VZ |
10209 | #include "confdefs.h" |
10210 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10211 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
10212 | builtin and then its argument prototype would still apply. */ |
10213 | char dnet_ntoa(); | |
10214 | ||
10215 | int main() { | |
10216 | dnet_ntoa() | |
10217 | ; return 0; } | |
10218 | EOF | |
edae8572 | 10219 | if { (eval echo configure:10220: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
10220 | rm -rf conftest* |
10221 | eval "ac_cv_lib_$ac_lib_var=yes" | |
10222 | else | |
10223 | echo "configure: failed program was:" >&5 | |
10224 | cat conftest.$ac_ext >&5 | |
10225 | rm -rf conftest* | |
10226 | eval "ac_cv_lib_$ac_lib_var=no" | |
10227 | fi | |
10228 | rm -f conftest* | |
10229 | LIBS="$ac_save_LIBS" | |
10230 | ||
10231 | fi | |
10232 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
10233 | echo "$ac_t""yes" 1>&6 | |
ab9b9eab | 10234 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" |
698dcdb6 VZ |
10235 | else |
10236 | echo "$ac_t""no" 1>&6 | |
ab9b9eab VZ |
10237 | fi |
10238 | ||
10239 | fi | |
10240 | ||
10241 | # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT, | |
10242 | # to get the SysV transport functions. | |
698dcdb6 | 10243 | # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4) |
ab9b9eab VZ |
10244 | # needs -lnsl. |
10245 | # The nsl library prevents programs from opening the X display | |
698dcdb6 VZ |
10246 | # on Irix 5.2, according to dickey@clark.net. |
10247 | echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6 | |
edae8572 | 10248 | echo "configure:10249: checking for gethostbyname" >&5 |
698dcdb6 VZ |
10249 | if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then |
10250 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10251 | else | |
10252 | cat > conftest.$ac_ext <<EOF | |
edae8572 | 10253 | #line 10254 "configure" |
ab9b9eab VZ |
10254 | #include "confdefs.h" |
10255 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 10256 | which can conflict with char gethostbyname(); below. */ |
ab9b9eab VZ |
10257 | #include <assert.h> |
10258 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10259 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
10260 | builtin and then its argument prototype would still apply. */ |
10261 | char gethostbyname(); | |
10262 | ||
10263 | int main() { | |
ab9b9eab VZ |
10264 | |
10265 | /* The GNU C library defines this for functions which it implements | |
10266 | to always fail with ENOSYS. Some functions are actually named | |
10267 | something starting with __ and the normal name is an alias. */ | |
10268 | #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname) | |
10269 | choke me | |
10270 | #else | |
698dcdb6 | 10271 | gethostbyname(); |
ab9b9eab VZ |
10272 | #endif |
10273 | ||
698dcdb6 VZ |
10274 | ; return 0; } |
10275 | EOF | |
edae8572 | 10276 | if { (eval echo configure:10277: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
10277 | rm -rf conftest* |
10278 | eval "ac_cv_func_gethostbyname=yes" | |
10279 | else | |
10280 | echo "configure: failed program was:" >&5 | |
10281 | cat conftest.$ac_ext >&5 | |
10282 | rm -rf conftest* | |
10283 | eval "ac_cv_func_gethostbyname=no" | |
10284 | fi | |
10285 | rm -f conftest* | |
10286 | fi | |
10287 | ||
10288 | if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then | |
10289 | echo "$ac_t""yes" 1>&6 | |
10290 | : | |
10291 | else | |
10292 | echo "$ac_t""no" 1>&6 | |
10293 | fi | |
ab9b9eab VZ |
10294 | |
10295 | if test $ac_cv_func_gethostbyname = no; then | |
698dcdb6 | 10296 | echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6 |
edae8572 | 10297 | echo "configure:10298: checking for gethostbyname in -lnsl" >&5 |
698dcdb6 VZ |
10298 | ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'` |
10299 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
10300 | echo $ac_n "(cached) $ac_c" 1>&6 | |
ab9b9eab | 10301 | else |
698dcdb6 | 10302 | ac_save_LIBS="$LIBS" |
ab9b9eab | 10303 | LIBS="-lnsl $LIBS" |
698dcdb6 | 10304 | cat > conftest.$ac_ext <<EOF |
edae8572 | 10305 | #line 10306 "configure" |
ab9b9eab VZ |
10306 | #include "confdefs.h" |
10307 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10308 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
10309 | builtin and then its argument prototype would still apply. */ |
10310 | char gethostbyname(); | |
6232543b | 10311 | |
698dcdb6 VZ |
10312 | int main() { |
10313 | gethostbyname() | |
10314 | ; return 0; } | |
10315 | EOF | |
edae8572 | 10316 | if { (eval echo configure:10317: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
10317 | rm -rf conftest* |
10318 | eval "ac_cv_lib_$ac_lib_var=yes" | |
703e0a69 | 10319 | else |
698dcdb6 VZ |
10320 | echo "configure: failed program was:" >&5 |
10321 | cat conftest.$ac_ext >&5 | |
10322 | rm -rf conftest* | |
10323 | eval "ac_cv_lib_$ac_lib_var=no" | |
10324 | fi | |
10325 | rm -f conftest* | |
10326 | LIBS="$ac_save_LIBS" | |
1e487827 | 10327 | |
698dcdb6 VZ |
10328 | fi |
10329 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
10330 | echo "$ac_t""yes" 1>&6 | |
10331 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" | |
10332 | else | |
10333 | echo "$ac_t""no" 1>&6 | |
ab9b9eab VZ |
10334 | fi |
10335 | ||
10336 | fi | |
10337 | ||
10338 | # lieder@skyler.mavd.honeywell.com says without -lsocket, | |
10339 | # socket/setsockopt and other routines are undefined under SCO ODT | |
10340 | # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary | |
698dcdb6 VZ |
10341 | # on later versions), says simon@lia.di.epfl.ch: it contains |
10342 | # gethostby* variants that don't use the nameserver (or something). | |
10343 | # -lsocket must be given before -lnsl if both are needed. | |
10344 | # We assume that if connect needs -lnsl, so does gethostbyname. | |
10345 | echo $ac_n "checking for connect""... $ac_c" 1>&6 | |
edae8572 | 10346 | echo "configure:10347: checking for connect" >&5 |
698dcdb6 VZ |
10347 | if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then |
10348 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10349 | else | |
10350 | cat > conftest.$ac_ext <<EOF | |
edae8572 | 10351 | #line 10352 "configure" |
ab9b9eab VZ |
10352 | #include "confdefs.h" |
10353 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 10354 | which can conflict with char connect(); below. */ |
ab9b9eab VZ |
10355 | #include <assert.h> |
10356 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10357 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
10358 | builtin and then its argument prototype would still apply. */ |
10359 | char connect(); | |
10360 | ||
10361 | int main() { | |
ab9b9eab VZ |
10362 | |
10363 | /* The GNU C library defines this for functions which it implements | |
10364 | to always fail with ENOSYS. Some functions are actually named | |
10365 | something starting with __ and the normal name is an alias. */ | |
10366 | #if defined (__stub_connect) || defined (__stub___connect) | |
10367 | choke me | |
10368 | #else | |
698dcdb6 | 10369 | connect(); |
ab9b9eab VZ |
10370 | #endif |
10371 | ||
698dcdb6 VZ |
10372 | ; return 0; } |
10373 | EOF | |
edae8572 | 10374 | if { (eval echo configure:10375: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
10375 | rm -rf conftest* |
10376 | eval "ac_cv_func_connect=yes" | |
10377 | else | |
10378 | echo "configure: failed program was:" >&5 | |
10379 | cat conftest.$ac_ext >&5 | |
10380 | rm -rf conftest* | |
10381 | eval "ac_cv_func_connect=no" | |
10382 | fi | |
10383 | rm -f conftest* | |
10384 | fi | |
10385 | ||
10386 | if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then | |
10387 | echo "$ac_t""yes" 1>&6 | |
10388 | : | |
10389 | else | |
10390 | echo "$ac_t""no" 1>&6 | |
10391 | fi | |
ab9b9eab VZ |
10392 | |
10393 | if test $ac_cv_func_connect = no; then | |
698dcdb6 | 10394 | echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6 |
edae8572 | 10395 | echo "configure:10396: checking for connect in -lsocket" >&5 |
698dcdb6 VZ |
10396 | ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'` |
10397 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
10398 | echo $ac_n "(cached) $ac_c" 1>&6 | |
ab9b9eab | 10399 | else |
698dcdb6 | 10400 | ac_save_LIBS="$LIBS" |
ab9b9eab | 10401 | LIBS="-lsocket $X_EXTRA_LIBS $LIBS" |
698dcdb6 | 10402 | cat > conftest.$ac_ext <<EOF |
edae8572 | 10403 | #line 10404 "configure" |
ab9b9eab VZ |
10404 | #include "confdefs.h" |
10405 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10406 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
10407 | builtin and then its argument prototype would still apply. */ |
10408 | char connect(); | |
10409 | ||
10410 | int main() { | |
10411 | connect() | |
10412 | ; return 0; } | |
10413 | EOF | |
edae8572 | 10414 | if { (eval echo configure:10415: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
10415 | rm -rf conftest* |
10416 | eval "ac_cv_lib_$ac_lib_var=yes" | |
10417 | else | |
10418 | echo "configure: failed program was:" >&5 | |
10419 | cat conftest.$ac_ext >&5 | |
10420 | rm -rf conftest* | |
10421 | eval "ac_cv_lib_$ac_lib_var=no" | |
10422 | fi | |
10423 | rm -f conftest* | |
10424 | LIBS="$ac_save_LIBS" | |
10425 | ||
10426 | fi | |
10427 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
10428 | echo "$ac_t""yes" 1>&6 | |
ab9b9eab | 10429 | X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" |
698dcdb6 VZ |
10430 | else |
10431 | echo "$ac_t""no" 1>&6 | |
ab9b9eab VZ |
10432 | fi |
10433 | ||
10434 | fi | |
10435 | ||
698dcdb6 VZ |
10436 | # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX. |
10437 | echo $ac_n "checking for remove""... $ac_c" 1>&6 | |
edae8572 | 10438 | echo "configure:10439: checking for remove" >&5 |
698dcdb6 VZ |
10439 | if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then |
10440 | echo $ac_n "(cached) $ac_c" 1>&6 | |
ab9b9eab | 10441 | else |
698dcdb6 | 10442 | cat > conftest.$ac_ext <<EOF |
edae8572 | 10443 | #line 10444 "configure" |
ab9b9eab VZ |
10444 | #include "confdefs.h" |
10445 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 10446 | which can conflict with char remove(); below. */ |
ab9b9eab VZ |
10447 | #include <assert.h> |
10448 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10449 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
10450 | builtin and then its argument prototype would still apply. */ |
10451 | char remove(); | |
10452 | ||
10453 | int main() { | |
ab9b9eab VZ |
10454 | |
10455 | /* The GNU C library defines this for functions which it implements | |
10456 | to always fail with ENOSYS. Some functions are actually named | |
10457 | something starting with __ and the normal name is an alias. */ | |
10458 | #if defined (__stub_remove) || defined (__stub___remove) | |
10459 | choke me | |
10460 | #else | |
698dcdb6 | 10461 | remove(); |
ab9b9eab VZ |
10462 | #endif |
10463 | ||
698dcdb6 VZ |
10464 | ; return 0; } |
10465 | EOF | |
edae8572 | 10466 | if { (eval echo configure:10467: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
10467 | rm -rf conftest* |
10468 | eval "ac_cv_func_remove=yes" | |
10469 | else | |
10470 | echo "configure: failed program was:" >&5 | |
10471 | cat conftest.$ac_ext >&5 | |
10472 | rm -rf conftest* | |
10473 | eval "ac_cv_func_remove=no" | |
10474 | fi | |
10475 | rm -f conftest* | |
10476 | fi | |
10477 | ||
10478 | if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then | |
10479 | echo "$ac_t""yes" 1>&6 | |
10480 | : | |
10481 | else | |
10482 | echo "$ac_t""no" 1>&6 | |
10483 | fi | |
ab9b9eab VZ |
10484 | |
10485 | if test $ac_cv_func_remove = no; then | |
698dcdb6 | 10486 | echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6 |
edae8572 | 10487 | echo "configure:10488: checking for remove in -lposix" >&5 |
698dcdb6 VZ |
10488 | ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'` |
10489 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
10490 | echo $ac_n "(cached) $ac_c" 1>&6 | |
ab9b9eab | 10491 | else |
698dcdb6 | 10492 | ac_save_LIBS="$LIBS" |
ab9b9eab | 10493 | LIBS="-lposix $LIBS" |
698dcdb6 | 10494 | cat > conftest.$ac_ext <<EOF |
edae8572 | 10495 | #line 10496 "configure" |
ab9b9eab VZ |
10496 | #include "confdefs.h" |
10497 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10498 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
10499 | builtin and then its argument prototype would still apply. */ |
10500 | char remove(); | |
10501 | ||
10502 | int main() { | |
10503 | remove() | |
10504 | ; return 0; } | |
10505 | EOF | |
edae8572 | 10506 | if { (eval echo configure:10507: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
10507 | rm -rf conftest* |
10508 | eval "ac_cv_lib_$ac_lib_var=yes" | |
10509 | else | |
10510 | echo "configure: failed program was:" >&5 | |
10511 | cat conftest.$ac_ext >&5 | |
10512 | rm -rf conftest* | |
10513 | eval "ac_cv_lib_$ac_lib_var=no" | |
10514 | fi | |
10515 | rm -f conftest* | |
10516 | LIBS="$ac_save_LIBS" | |
10517 | ||
10518 | fi | |
10519 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
10520 | echo "$ac_t""yes" 1>&6 | |
ab9b9eab | 10521 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" |
698dcdb6 VZ |
10522 | else |
10523 | echo "$ac_t""no" 1>&6 | |
ab9b9eab VZ |
10524 | fi |
10525 | ||
10526 | fi | |
10527 | ||
10528 | # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. | |
698dcdb6 | 10529 | echo $ac_n "checking for shmat""... $ac_c" 1>&6 |
edae8572 | 10530 | echo "configure:10531: checking for shmat" >&5 |
698dcdb6 VZ |
10531 | if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then |
10532 | echo $ac_n "(cached) $ac_c" 1>&6 | |
ab9b9eab | 10533 | else |
698dcdb6 | 10534 | cat > conftest.$ac_ext <<EOF |
edae8572 | 10535 | #line 10536 "configure" |
ab9b9eab VZ |
10536 | #include "confdefs.h" |
10537 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 10538 | which can conflict with char shmat(); below. */ |
ab9b9eab VZ |
10539 | #include <assert.h> |
10540 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10541 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
10542 | builtin and then its argument prototype would still apply. */ |
10543 | char shmat(); | |
10544 | ||
10545 | int main() { | |
ab9b9eab VZ |
10546 | |
10547 | /* The GNU C library defines this for functions which it implements | |
10548 | to always fail with ENOSYS. Some functions are actually named | |
10549 | something starting with __ and the normal name is an alias. */ | |
10550 | #if defined (__stub_shmat) || defined (__stub___shmat) | |
10551 | choke me | |
10552 | #else | |
698dcdb6 | 10553 | shmat(); |
ab9b9eab VZ |
10554 | #endif |
10555 | ||
698dcdb6 VZ |
10556 | ; return 0; } |
10557 | EOF | |
edae8572 | 10558 | if { (eval echo configure:10559: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
10559 | rm -rf conftest* |
10560 | eval "ac_cv_func_shmat=yes" | |
10561 | else | |
10562 | echo "configure: failed program was:" >&5 | |
10563 | cat conftest.$ac_ext >&5 | |
10564 | rm -rf conftest* | |
10565 | eval "ac_cv_func_shmat=no" | |
10566 | fi | |
10567 | rm -f conftest* | |
10568 | fi | |
10569 | ||
10570 | if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then | |
10571 | echo "$ac_t""yes" 1>&6 | |
10572 | : | |
10573 | else | |
10574 | echo "$ac_t""no" 1>&6 | |
10575 | fi | |
ab9b9eab VZ |
10576 | |
10577 | if test $ac_cv_func_shmat = no; then | |
698dcdb6 | 10578 | echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6 |
edae8572 | 10579 | echo "configure:10580: checking for shmat in -lipc" >&5 |
698dcdb6 VZ |
10580 | ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'` |
10581 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
10582 | echo $ac_n "(cached) $ac_c" 1>&6 | |
ab9b9eab | 10583 | else |
698dcdb6 | 10584 | ac_save_LIBS="$LIBS" |
ab9b9eab | 10585 | LIBS="-lipc $LIBS" |
698dcdb6 | 10586 | cat > conftest.$ac_ext <<EOF |
edae8572 | 10587 | #line 10588 "configure" |
ab9b9eab VZ |
10588 | #include "confdefs.h" |
10589 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10590 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
10591 | builtin and then its argument prototype would still apply. */ |
10592 | char shmat(); | |
10593 | ||
10594 | int main() { | |
10595 | shmat() | |
10596 | ; return 0; } | |
10597 | EOF | |
edae8572 | 10598 | if { (eval echo configure:10599: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
10599 | rm -rf conftest* |
10600 | eval "ac_cv_lib_$ac_lib_var=yes" | |
10601 | else | |
10602 | echo "configure: failed program was:" >&5 | |
10603 | cat conftest.$ac_ext >&5 | |
10604 | rm -rf conftest* | |
10605 | eval "ac_cv_lib_$ac_lib_var=no" | |
10606 | fi | |
10607 | rm -f conftest* | |
10608 | LIBS="$ac_save_LIBS" | |
10609 | ||
10610 | fi | |
10611 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
10612 | echo "$ac_t""yes" 1>&6 | |
ab9b9eab | 10613 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" |
698dcdb6 VZ |
10614 | else |
10615 | echo "$ac_t""no" 1>&6 | |
ab9b9eab VZ |
10616 | fi |
10617 | ||
10618 | fi | |
10619 | fi | |
10620 | ||
10621 | # Check for libraries that X11R6 Xt/Xaw programs need. | |
698dcdb6 | 10622 | ac_save_LDFLAGS="$LDFLAGS" |
ab9b9eab VZ |
10623 | test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" |
10624 | # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to | |
10625 | # check for ICE first), but we must link in the order -lSM -lICE or | |
10626 | # we get undefined symbols. So assume we have SM if we have ICE. | |
10627 | # These have to be linked with before -lX11, unlike the other | |
10628 | # libraries we check for below, so use a different variable. | |
698dcdb6 VZ |
10629 | # --interran@uluru.Stanford.EDU, kb@cs.umb.edu. |
10630 | echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6 | |
edae8572 | 10631 | echo "configure:10632: checking for IceConnectionNumber in -lICE" >&5 |
698dcdb6 VZ |
10632 | ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'` |
10633 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
10634 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10635 | else | |
10636 | ac_save_LIBS="$LIBS" | |
ab9b9eab | 10637 | LIBS="-lICE $X_EXTRA_LIBS $LIBS" |
698dcdb6 | 10638 | cat > conftest.$ac_ext <<EOF |
edae8572 | 10639 | #line 10640 "configure" |
ab9b9eab VZ |
10640 | #include "confdefs.h" |
10641 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10642 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
10643 | builtin and then its argument prototype would still apply. */ |
10644 | char IceConnectionNumber(); | |
10645 | ||
10646 | int main() { | |
10647 | IceConnectionNumber() | |
10648 | ; return 0; } | |
10649 | EOF | |
edae8572 | 10650 | if { (eval echo configure:10651: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
10651 | rm -rf conftest* |
10652 | eval "ac_cv_lib_$ac_lib_var=yes" | |
10653 | else | |
10654 | echo "configure: failed program was:" >&5 | |
10655 | cat conftest.$ac_ext >&5 | |
10656 | rm -rf conftest* | |
10657 | eval "ac_cv_lib_$ac_lib_var=no" | |
10658 | fi | |
10659 | rm -f conftest* | |
10660 | LIBS="$ac_save_LIBS" | |
10661 | ||
10662 | fi | |
10663 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
10664 | echo "$ac_t""yes" 1>&6 | |
ab9b9eab | 10665 | X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" |
698dcdb6 VZ |
10666 | else |
10667 | echo "$ac_t""no" 1>&6 | |
ab9b9eab VZ |
10668 | fi |
10669 | ||
698dcdb6 | 10670 | LDFLAGS="$ac_save_LDFLAGS" |
ab9b9eab VZ |
10671 | |
10672 | fi | |
10673 | ||
1e6feb95 VZ |
10674 | CPPFLAGS="$CPPFLAGS $X_CFLAGS" |
10675 | LDFLAGS="$LDFLAGS $X_LIBS" | |
ab9b9eab | 10676 | |
1e6feb95 VZ |
10677 | if test "$wxUSE_MOTIF" = 1; then |
10678 | if test "$no_x" = "yes"; then | |
10679 | { echo "configure: error: X11 not found" 1>&2; exit 1; } | |
10680 | fi | |
ab9b9eab | 10681 | |
1e6feb95 VZ |
10682 | GUI_TK_LIBRARY="$X_LIBS" |
10683 | TOOLKIT_INCLUDE="$X_CFLAGS" | |
1e6feb95 | 10684 | AFMINSTALL=afminstall |
1e6feb95 | 10685 | COMPILED_X_PROGRAM=0 |
cd6d6d5b | 10686 | |
1e6feb95 | 10687 | echo $ac_n "checking for Motif/Lesstif headers""... $ac_c" 1>&6 |
edae8572 | 10688 | echo "configure:10689: checking for Motif/Lesstif headers" >&5 |
1e6feb95 | 10689 | |
ab9b9eab VZ |
10690 | ac_find_includes= |
10691 | for ac_dir in $SEARCH_INCLUDE; | |
10692 | do | |
10693 | if test -f "$ac_dir/Xm/Xm.h"; then | |
10694 | ac_find_includes=$ac_dir | |
10695 | break | |
10696 | fi | |
10697 | done | |
10698 | ||
1e6feb95 VZ |
10699 | if test "$ac_find_includes" != "" ; then |
10700 | echo "$ac_t""found $ac_find_includes" 1>&6 | |
10701 | else | |
10702 | cat > conftest.$ac_ext <<EOF | |
edae8572 | 10703 | #line 10704 "configure" |
cd6d6d5b VZ |
10704 | #include "confdefs.h" |
10705 | ||
1e6feb95 VZ |
10706 | #include <Xm/Xm.h> |
10707 | ||
698dcdb6 | 10708 | int main() { |
cd6d6d5b | 10709 | |
1e6feb95 | 10710 | int version; |
1e6feb95 VZ |
10711 | version = xmUseVersion; |
10712 | ||
698dcdb6 VZ |
10713 | ; return 0; } |
10714 | EOF | |
edae8572 | 10715 | if { (eval echo configure:10716: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 VZ |
10716 | rm -rf conftest* |
10717 | ||
1e6feb95 VZ |
10718 | echo "$ac_t""found in default search path" 1>&6 |
10719 | COMPILED_X_PROGRAM=1 | |
10720 | ||
cd6d6d5b | 10721 | else |
698dcdb6 VZ |
10722 | echo "configure: failed program was:" >&5 |
10723 | cat conftest.$ac_ext >&5 | |
10724 | rm -rf conftest* | |
10725 | ||
1e6feb95 VZ |
10726 | echo "$ac_t""no" 1>&6 |
10727 | { echo "configure: error: please set CFLAGS to contain the location of Xm/Xm.h" 1>&2; exit 1; } | |
10728 | ||
698dcdb6 | 10729 | |
cd6d6d5b | 10730 | fi |
698dcdb6 | 10731 | rm -f conftest* |
1e6feb95 | 10732 | fi |
ab9b9eab | 10733 | |
1e6feb95 VZ |
10734 | if test "$COMPILED_X_PROGRAM" = 0; then |
10735 | echo $ac_n "checking for Motif/Lesstif library""... $ac_c" 1>&6 | |
edae8572 | 10736 | echo "configure:10737: checking for Motif/Lesstif library" >&5 |
1e6feb95 | 10737 | |
ab9b9eab VZ |
10738 | ac_find_libraries= |
10739 | for ac_dir in $SEARCH_LIB; | |
10740 | do | |
f11bdd03 | 10741 | for ac_extension in a so sl dylib; do |
ab9b9eab VZ |
10742 | if test -f "$ac_dir/libXm.$ac_extension"; then |
10743 | ac_find_libraries=$ac_dir | |
10744 | break 2 | |
10745 | fi | |
10746 | done | |
10747 | done | |
10748 | ||
1e6feb95 VZ |
10749 | if test "$ac_find_libraries" != "" ; then |
10750 | ||
ab9b9eab VZ |
10751 | ac_path_to_include=$ac_find_includes |
10752 | echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null | |
10753 | result=$? | |
10754 | if test $result = 0; then | |
10755 | ac_path_to_include="" | |
10756 | else | |
10757 | ac_path_to_include="-I$ac_find_includes" | |
10758 | fi | |
10759 | ||
1e6feb95 | 10760 | |
ab9b9eab VZ |
10761 | echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null |
10762 | result=$? | |
10763 | if test $result = 0; then | |
10764 | ac_path_to_link="" | |
10765 | else | |
10766 | ac_path_to_link="-L$ac_find_libraries" | |
10767 | fi | |
10768 | ||
698dcdb6 | 10769 | |
1e6feb95 VZ |
10770 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY $ac_path_to_link" |
10771 | TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE $ac_path_to_include" | |
10772 | echo "$ac_t""found at $ac_find_libraries" 1>&6 | |
10773 | else | |
10774 | cat > conftest.$ac_ext <<EOF | |
edae8572 | 10775 | #line 10776 "configure" |
cd6d6d5b | 10776 | #include "confdefs.h" |
ab9b9eab | 10777 | |
1e6feb95 VZ |
10778 | #include <Xm/Xm.h> |
10779 | ||
698dcdb6 | 10780 | int main() { |
ab9b9eab | 10781 | |
1e6feb95 | 10782 | int version; |
1e6feb95 VZ |
10783 | version = xmUseVersion; |
10784 | ||
698dcdb6 VZ |
10785 | ; return 0; } |
10786 | EOF | |
edae8572 | 10787 | if { (eval echo configure:10788: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 VZ |
10788 | rm -rf conftest* |
10789 | ||
1e6feb95 VZ |
10790 | echo "$ac_t""found in default search path" 1>&6 |
10791 | COMPILED_X_PROGRAM=1 | |
10792 | ||
cd6d6d5b | 10793 | else |
698dcdb6 VZ |
10794 | echo "configure: failed program was:" >&5 |
10795 | cat conftest.$ac_ext >&5 | |
10796 | rm -rf conftest* | |
10797 | ||
1e6feb95 VZ |
10798 | echo "$ac_t""no" 1>&6 |
10799 | { echo "configure: error: please set LDFLAGS to contain the location of libXm" 1>&2; exit 1; } | |
10800 | ||
698dcdb6 | 10801 | |
cd6d6d5b | 10802 | fi |
698dcdb6 | 10803 | rm -f conftest* |
1e6feb95 | 10804 | fi |
cd6d6d5b | 10805 | fi |
ab9b9eab | 10806 | |
3a922bb4 | 10807 | xpm_link="" |
1e6feb95 | 10808 | echo $ac_n "checking for Xpm library""... $ac_c" 1>&6 |
edae8572 | 10809 | echo "configure:10810: checking for Xpm library" >&5 |
1e6feb95 | 10810 | |
ab9b9eab VZ |
10811 | ac_find_libraries= |
10812 | for ac_dir in $SEARCH_LIB; | |
10813 | do | |
f11bdd03 | 10814 | for ac_extension in a so sl dylib; do |
ab9b9eab VZ |
10815 | if test -f "$ac_dir/libXpm.$ac_extension"; then |
10816 | ac_find_libraries=$ac_dir | |
10817 | break 2 | |
10818 | fi | |
10819 | done | |
10820 | done | |
10821 | ||
1e6feb95 VZ |
10822 | if test "$ac_find_libraries" != "" ; then |
10823 | ||
ab9b9eab VZ |
10824 | echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null |
10825 | result=$? | |
10826 | if test $result = 0; then | |
10827 | ac_path_to_link="" | |
10828 | else | |
10829 | ac_path_to_link="-L$ac_find_libraries" | |
10830 | fi | |
10831 | ||
1e6feb95 | 10832 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY $ac_path_to_link" |
3a922bb4 | 10833 | xpm_link="-lXpm " |
1e6feb95 | 10834 | cat >> confdefs.h <<\EOF |
ab9b9eab VZ |
10835 | #define wxHAVE_LIB_XPM 1 |
10836 | EOF | |
10837 | ||
1e6feb95 VZ |
10838 | echo "$ac_t""found at $ac_find_libraries" 1>&6 |
10839 | else | |
10840 | cat > conftest.$ac_ext <<EOF | |
edae8572 | 10841 | #line 10842 "configure" |
cd6d6d5b VZ |
10842 | #include "confdefs.h" |
10843 | ||
1e6feb95 VZ |
10844 | #include <X11/xpm.h> |
10845 | ||
698dcdb6 | 10846 | int main() { |
cd6d6d5b | 10847 | |
1e6feb95 | 10848 | int version; |
1e6feb95 VZ |
10849 | version = XpmLibraryVersion(); |
10850 | ||
698dcdb6 VZ |
10851 | ; return 0; } |
10852 | EOF | |
edae8572 | 10853 | if { (eval echo configure:10854: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 VZ |
10854 | rm -rf conftest* |
10855 | ||
3a922bb4 RL |
10856 | xpm_link="-lXpm " |
10857 | cat >> confdefs.h <<\EOF | |
3ace2e6d SN |
10858 | #define wxHAVE_LIB_XPM 1 |
10859 | EOF | |
10860 | ||
1e6feb95 VZ |
10861 | echo "$ac_t""found in default search path" 1>&6 |
10862 | COMPILED_X_PROGRAM=0 | |
10863 | ||
cd6d6d5b | 10864 | else |
698dcdb6 VZ |
10865 | echo "configure: failed program was:" >&5 |
10866 | cat conftest.$ac_ext >&5 | |
10867 | rm -rf conftest* | |
10868 | ||
1e6feb95 VZ |
10869 | echo "$ac_t""no" 1>&6 |
10870 | echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2 | |
10871 | ||
698dcdb6 | 10872 | |
cd6d6d5b | 10873 | fi |
698dcdb6 | 10874 | rm -f conftest* |
1e6feb95 VZ |
10875 | fi |
10876 | ||
3a922bb4 RL |
10877 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXm $xpm_link -lXmu -lXext -lXt -lX11" |
10878 | TOOLKIT_VPATH="\${top_srcdir}/src/${TOOLKIT_DIR}${PATH_IFS}\${top_srcdir}/src/motif/xmcombo" | |
1e6feb95 VZ |
10879 | TOOLKIT=MOTIF |
10880 | GUIDIST=MOTIF_DIST | |
ab9b9eab VZ |
10881 | fi |
10882 | ||
3a922bb4 | 10883 | if test "$wxUSE_MAC" = 1; then |
1e6feb95 | 10884 | TOOLKIT=MAC |
3a922bb4 | 10885 | GUIDIST=MACX_DIST |
1e6feb95 | 10886 | fi |
10f2d63a | 10887 | |
1e6feb95 VZ |
10888 | if test "$wxUSE_PM" = 1; then |
10889 | TOOLKIT=PM | |
10890 | GUIDIST=GTK_DIST | |
10891 | fi | |
b4085ce6 | 10892 | |
3a922bb4 | 10893 | if test "$TOOLKIT" = "PM" ; then |
1e6feb95 | 10894 | TOOLKIT_DIR="os2" |
3a922bb4 RL |
10895 | else |
10896 | TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"` | |
1e6feb95 | 10897 | fi |
e07802fc | 10898 | |
3a922bb4 | 10899 | PORT_FILES="\${top_srcdir}/src/\$(TOOLKITDIR)/files.lst" |
1e6feb95 | 10900 | |
3a922bb4 RL |
10901 | if test "$wxUSE_UNIVERSAL" = "yes"; then |
10902 | ALL_OBJECTS="\$(GUI_LOWLEVEL_OBJS) \${UNIVOBJS}" | |
10903 | PORT_FILES="${PORT_FILES} \${top_srcdir}/src/univ/files.lst" | |
10904 | TOOLKIT_VPATH="\${top_srcdir}/src/univ${PATH_IFS}\${top_srcdir}/src/univ/themes${PATH_IFS}\${top_srcdir}/src/${TOOLKIT_DIR}" | |
10905 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__" | |
10906 | WIDGET_SET=univ | |
f6bcfd97 | 10907 | else |
3a922bb4 | 10908 | ALL_OBJECTS="\$(GUIOBJS)" |
1e6feb95 VZ |
10909 | fi |
10910 | ||
10911 | ALL_OBJECTS="${ALL_OBJECTS} \$(COMMONOBJS) \$(GENERICOBJS)" | |
10912 | ||
10913 | if test "$TOOLKIT" != "MSW"; then | |
10914 | ALL_OBJECTS="${ALL_OBJECTS} \$(UNIXOBJS)" | |
10915 | fi | |
10916 | ||
10917 | if test "$wxUSE_HTML" = "yes"; then | |
10918 | ALL_OBJECTS="${ALL_OBJECTS} \$(HTMLOBJS)" | |
10919 | fi | |
3fcdd07b | 10920 | |
3a922bb4 RL |
10921 | if test "$TOOLKIT" != "MSW" -a "$wxUSE_ODBC" = "yes" ; then |
10922 | ALL_OBJECTS="${ALL_OBJECTS} \$(IODBCOBJS)" | |
831b3152 | 10923 | fi |
d9d8273d | 10924 | if test "$wxUSE_LIBJPEG" = "yes" ; then |
2224580a | 10925 | ALL_OBJECTS="${ALL_OBJECTS} \$(JPEGOBJS)" |
d9d8273d RR |
10926 | fi |
10927 | if test "$wxUSE_LIBTIFF" = "yes" ; then | |
10928 | ALL_OBJECTS="${ALL_OBJECTS} \$(TIFFOBJS)" | |
10929 | fi | |
10930 | if test "$wxUSE_LIBPNG" = "yes" ; then | |
10931 | ALL_OBJECTS="${ALL_OBJECTS} \$(PNGOBJS)" | |
10932 | fi | |
3fed1840 RR |
10933 | if test "$wxUSE_FREETYPE" = "yes" ; then |
10934 | ALL_OBJECTS="${ALL_OBJECTS} \$(FREETYPEOBJS)" | |
10935 | fi | |
2224580a | 10936 | |
2224580a VZ |
10937 | RPM_FILES="src/\$(TOOLKITDIR)/rpmfiles.lst" |
10938 | RPM_SPEC="wx\$(TOOLKIT).spec" | |
10939 | ||
10940 | GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST" | |
10941 | DISTDIR="wx\$(TOOLKIT)" | |
10f2d63a | 10942 | else |
dad6c0ea VZ |
10943 | USE_GUI=0 |
10944 | ||
3a922bb4 | 10945 | TOOLKIT_DIR="base" |
f6bcfd97 | 10946 | |
3a922bb4 RL |
10947 | if test "$USE_WIN32" = 1 ; then |
10948 | ALL_OBJECTS="\${BASE_OBJS} \${BASE_MSW_OBJS}" | |
10949 | TOOLKIT_VPATH="\${top_srcdir}/src/msw" | |
0b2effe9 | 10950 | |
3a922bb4 | 10951 | TOOLKIT="MSW" |
f6bcfd97 | 10952 | else |
3a922bb4 RL |
10953 | ALL_OBJECTS="\${BASE_OBJS} \${BASE_UNIX_OBJS}" |
10954 | TOOLKIT_VPATH="\${top_srcdir}/src/unix" | |
f6bcfd97 BP |
10955 | fi |
10956 | ||
831b3152 | 10957 | PORT_FILES="\${top_srcdir}/src/files.lst" |
2224580a VZ |
10958 | RPM_FILES="src/rpmfiles.lst" |
10959 | RPM_SPEC="wxBase.spec" | |
10960 | ||
10961 | GUIDIST="BASE_DIST" | |
10962 | DISTDIR="wxBase" | |
10f2d63a VZ |
10963 | fi |
10964 | ||
3a922bb4 RL |
10965 | if test "x$REGEX_INCLUDE" != "x" ; then |
10966 | ALL_OBJECTS="${ALL_OBJECTS} \$(REGEXOBJS)" | |
10967 | fi | |
10968 | if test "$wxUSE_ZLIB" = "yes" ; then | |
10969 | ALL_OBJECTS="${ALL_OBJECTS} \$(ZLIBOBJS)" | |
10970 | fi | |
10f2d63a | 10971 | |
3a922bb4 RL |
10972 | if test "$wxUSE_OPENGL" = "yes"; then |
10973 | if test "$wxUSE_MAC" = 1; then | |
10974 | cat >> confdefs.h <<\EOF | |
10975 | #define wxUSE_OPENGL 1 | |
10976 | EOF | |
10f2d63a | 10977 | |
3a922bb4 RL |
10978 | cat >> confdefs.h <<\EOF |
10979 | #define wxUSE_GLCANVAS 1 | |
10980 | EOF | |
10f2d63a | 10981 | |
3a922bb4 RL |
10982 | OPENGL_LIBS="-framework OpenGL -framework AGL" |
10983 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl" | |
10984 | else | |
10985 | ac_safe=`echo "GL/gl.h" | sed 'y%./+-%__p_%'` | |
10986 | echo $ac_n "checking for GL/gl.h""... $ac_c" 1>&6 | |
edae8572 | 10987 | echo "configure:10988: checking for GL/gl.h" >&5 |
3a922bb4 RL |
10988 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
10989 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10990 | else | |
10991 | cat > conftest.$ac_ext <<EOF | |
edae8572 | 10992 | #line 10993 "configure" |
3a922bb4 RL |
10993 | #include "confdefs.h" |
10994 | #include <GL/gl.h> | |
10995 | EOF | |
10996 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
edae8572 | 10997 | { (eval echo configure:10998: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
3a922bb4 RL |
10998 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
10999 | if test -z "$ac_err"; then | |
11000 | rm -rf conftest* | |
11001 | eval "ac_cv_header_$ac_safe=yes" | |
11002 | else | |
11003 | echo "$ac_err" >&5 | |
11004 | echo "configure: failed program was:" >&5 | |
11005 | cat conftest.$ac_ext >&5 | |
11006 | rm -rf conftest* | |
11007 | eval "ac_cv_header_$ac_safe=no" | |
11008 | fi | |
11009 | rm -f conftest* | |
11010 | fi | |
11011 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
11012 | echo "$ac_t""yes" 1>&6 | |
11013 | ||
11014 | cat >> confdefs.h <<\EOF | |
11015 | #define wxUSE_OPENGL 1 | |
11016 | EOF | |
10f2d63a | 11017 | |
3a922bb4 RL |
11018 | cat >> confdefs.h <<\EOF |
11019 | #define wxUSE_GLCANVAS 1 | |
11020 | EOF | |
10f2d63a | 11021 | |
3a922bb4 RL |
11022 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl" |
11023 | echo $ac_n "checking for glFlush in -lGL""... $ac_c" 1>&6 | |
edae8572 | 11024 | echo "configure:11025: checking for glFlush in -lGL" >&5 |
3a922bb4 RL |
11025 | ac_lib_var=`echo GL'_'glFlush | sed 'y%./+-%__p_%'` |
11026 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
11027 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11028 | else | |
11029 | ac_save_LIBS="$LIBS" | |
11030 | LIBS="-lGL $LIBS" | |
11031 | cat > conftest.$ac_ext <<EOF | |
edae8572 | 11032 | #line 11033 "configure" |
3a922bb4 RL |
11033 | #include "confdefs.h" |
11034 | /* Override any gcc2 internal prototype to avoid an error. */ | |
11035 | /* We use char because int might match the return type of a gcc2 | |
11036 | builtin and then its argument prototype would still apply. */ | |
11037 | char glFlush(); | |
55e80573 | 11038 | |
3a922bb4 RL |
11039 | int main() { |
11040 | glFlush() | |
11041 | ; return 0; } | |
11042 | EOF | |
edae8572 | 11043 | if { (eval echo configure:11044: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
3a922bb4 RL |
11044 | rm -rf conftest* |
11045 | eval "ac_cv_lib_$ac_lib_var=yes" | |
11046 | else | |
11047 | echo "configure: failed program was:" >&5 | |
11048 | cat conftest.$ac_ext >&5 | |
11049 | rm -rf conftest* | |
11050 | eval "ac_cv_lib_$ac_lib_var=no" | |
11051 | fi | |
11052 | rm -f conftest* | |
11053 | LIBS="$ac_save_LIBS" | |
55e80573 | 11054 | |
3a922bb4 RL |
11055 | fi |
11056 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
11057 | echo "$ac_t""yes" 1>&6 | |
11058 | ||
11059 | OPENGL_LIBS="-lGL -lGLU" | |
11060 | ||
11061 | else | |
11062 | echo "$ac_t""no" 1>&6 | |
11063 | ||
11064 | echo $ac_n "checking for glFlush in -lMesaGL""... $ac_c" 1>&6 | |
edae8572 | 11065 | echo "configure:11066: checking for glFlush in -lMesaGL" >&5 |
3a922bb4 RL |
11066 | ac_lib_var=`echo MesaGL'_'glFlush | sed 'y%./+-%__p_%'` |
11067 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
11068 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11069 | else | |
11070 | ac_save_LIBS="$LIBS" | |
11071 | LIBS="-lMesaGL $LIBS" | |
11072 | cat > conftest.$ac_ext <<EOF | |
edae8572 | 11073 | #line 11074 "configure" |
3a922bb4 RL |
11074 | #include "confdefs.h" |
11075 | /* Override any gcc2 internal prototype to avoid an error. */ | |
11076 | /* We use char because int might match the return type of a gcc2 | |
11077 | builtin and then its argument prototype would still apply. */ | |
11078 | char glFlush(); | |
11079 | ||
11080 | int main() { | |
11081 | glFlush() | |
11082 | ; return 0; } | |
11083 | EOF | |
edae8572 | 11084 | if { (eval echo configure:11085: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
3a922bb4 RL |
11085 | rm -rf conftest* |
11086 | eval "ac_cv_lib_$ac_lib_var=yes" | |
11087 | else | |
11088 | echo "configure: failed program was:" >&5 | |
11089 | cat conftest.$ac_ext >&5 | |
11090 | rm -rf conftest* | |
11091 | eval "ac_cv_lib_$ac_lib_var=no" | |
11092 | fi | |
11093 | rm -f conftest* | |
11094 | LIBS="$ac_save_LIBS" | |
11095 | ||
11096 | fi | |
11097 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
11098 | echo "$ac_t""yes" 1>&6 | |
11099 | ||
11100 | OPENGL_LIBS="-lMesaGL -lMesaGLU" | |
11101 | ||
11102 | else | |
11103 | echo "$ac_t""no" 1>&6 | |
11104 | fi | |
55e80573 | 11105 | |
3a922bb4 RL |
11106 | |
11107 | fi | |
11108 | ||
11109 | ||
11110 | else | |
11111 | echo "$ac_t""no" 1>&6 | |
11112 | wxUSE_OPENGL=0 | |
11113 | fi | |
11114 | ||
11115 | fi | |
11116 | fi | |
11117 | ||
11118 | if test -z "$TOOLKIT_VPATH" ; then | |
11119 | TOOLKIT_VPATH="\${top_srcdir}/src/${TOOLKIT_DIR}" | |
11120 | fi | |
11121 | ||
11122 | if test -n "$TOOLKIT" ; then | |
11123 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WX${TOOLKIT}__" | |
11124 | fi | |
11125 | ||
11126 | if test "$wxUSE_CYGWIN" = 1 ; then | |
11127 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WIN95__" | |
11128 | fi | |
11129 | ||
11130 | lib_debug_suffix= | |
11131 | if test "$wxUSE_DEBUG_FLAG" = "yes"; then | |
11132 | lib_debug_suffix=d | |
11133 | TOOLCHAIN_NAME="${TOOLCHAIN_NAME}d" | |
11134 | fi | |
11135 | ||
11136 | TOOLCHAIN_NAME="${TOOLKIT_DIR}${WIDGET_SET}${lib_debug_suffix}-${WX_RELEASE}" | |
11137 | TOOLCHAIN_NAME_GL="${TOOLKIT_DIR}${WIDGET_SET}${lib_debug_suffix}_gl-${WX_RELEASE}" | |
11138 | ||
11139 | if test "$cross_compiling" = "yes"; then | |
11140 | TOOLCHAIN_NAME="${TOOLCHAIN_NAME}-${host_alias}" | |
11141 | TOOLCHAIN_NAME_GL="${TOOLCHAIN_NAME_GL}-${host_alias}" | |
11142 | fi | |
11143 | ||
11144 | WX_LIBRARY="wx_${TOOLCHAIN_NAME}" | |
11145 | WX_LIBRARY_GL="wx_${TOOLCHAIN_NAME_GL}" | |
11146 | ||
11147 | WXCONFIG_LIBS="-l${WX_LIBRARY}" | |
11148 | ||
11149 | if test "$wxUSE_OPENGL" = "yes"; then | |
11150 | WXCONFIG_LIBS_GL="-l${WX_LIBRARY_GL} $OPENGL_LIBS" | |
11151 | fi | |
11152 | ||
11153 | WX_LIBRARY_NAME_STATIC="lib${WX_LIBRARY}.a" | |
11154 | WX_LIBRARY_NAME_STATIC_GL="lib${WX_LIBRARY_GL}.a" | |
11155 | ||
11156 | WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}" | |
11157 | WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}" | |
11158 | ||
11159 | WX_LIBRARY_LINK1="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}" | |
11160 | WX_LIBRARY_LINK2="lib${WX_LIBRARY}.${SO_SUFFIX}" | |
11161 | WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}" | |
11162 | WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}" | |
11163 | ||
11164 | WX_RESOURCES_DARWIN="lib${WX_LIBRARY}.rsrc" | |
11165 | ||
11166 | ||
11167 | ||
11168 | if test "$wxUSE_SHARED" = "yes"; then | |
55e80573 VZ |
11169 | |
11170 | if test "$wxUSE_OPENGL" = "yes"; then | |
11171 | WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL" | |
3a922bb4 | 11172 | WX_ALL="\$(build_libdir)/${WX_LIBRARY_LINK1} \$(build_libdir)/${WX_LIBRARY_LINK1_GL}" |
55e80573 VZ |
11173 | else |
11174 | WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS" | |
3a922bb4 | 11175 | WX_ALL="\$(build_libdir)/${WX_LIBRARY_LINK1}" |
55e80573 VZ |
11176 | fi |
11177 | ||
dd4f7467 | 11178 | if test "$GCC" = "yes"; then |
55e80573 | 11179 | PIC_FLAG="-fPIC" |
dd4f7467 | 11180 | fi |
55e80573 VZ |
11181 | |
11182 | SHARED_LD="${CXX} -shared -o" | |
698dcdb6 | 11183 | |
10f2d63a VZ |
11184 | case "${host}" in |
11185 | *-hp-hpux* ) | |
55e80573 | 11186 | if test "$GCC" != "yes"; then |
f6bcfd97 BP |
11187 | LDFLAGS="-L/usr/lib" |
11188 | ||
10f2d63a VZ |
11189 | SHARED_LD="${CXX} -b -o" |
11190 | PIC_FLAG="+Z" | |
11191 | fi | |
55e80573 | 11192 | |
10f2d63a | 11193 | ;; |
b12915c1 | 11194 | |
55e80573 VZ |
11195 | *-*-linux* ) |
11196 | if test "$GCC" != "yes"; then | |
11197 | echo $ac_n "checking for Intel compiler""... $ac_c" 1>&6 | |
edae8572 | 11198 | echo "configure:11199: checking for Intel compiler" >&5 |
55e80573 VZ |
11199 | if eval "test \"`echo '$''{'wx_cv_prog_icc'+set}'`\" = set"; then |
11200 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11201 | else | |
11202 | ||
11203 | cat > conftest.$ac_ext <<EOF | |
edae8572 | 11204 | #line 11205 "configure" |
55e80573 VZ |
11205 | #include "confdefs.h" |
11206 | ||
11207 | int main() { | |
11208 | ||
11209 | #ifndef __INTEL_COMPILER | |
dd4f7467 | 11210 | #error Not icc |
55e80573 VZ |
11211 | #endif |
11212 | ||
11213 | ; return 0; } | |
11214 | EOF | |
edae8572 | 11215 | if { (eval echo configure:11216: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
55e80573 VZ |
11216 | rm -rf conftest* |
11217 | wx_cv_prog_icc=yes | |
11218 | else | |
11219 | echo "configure: failed program was:" >&5 | |
11220 | cat conftest.$ac_ext >&5 | |
11221 | rm -rf conftest* | |
11222 | wx_cv_prog_icc=no | |
11223 | ||
11224 | fi | |
11225 | rm -f conftest* | |
11226 | ||
11227 | fi | |
11228 | ||
11229 | echo "$ac_t""$wx_cv_prog_icc" 1>&6 | |
55e80573 VZ |
11230 | if test "$wx_cv_prog_icc" = "yes"; then |
11231 | PIC_FLAG="-KPIC" | |
11232 | fi | |
11233 | fi | |
11234 | ||
3a922bb4 RL |
11235 | if test "$wxUSE_SONAME" = "yes" ; then |
11236 | SONAME_FLAGS="-Wl,-soname,${WX_LIBRARY_LINK1}" | |
11237 | SONAME_FLAGS_GL="-Wl,-soname,${WX_LIBRARY_LINK1_GL}" | |
f6bcfd97 | 11238 | WX_TARGET_LIBRARY_SONAME="-Wl,-soname,\$(TARGETLIB_LINK1)" |
00cf1208 | 11239 | fi |
10f2d63a | 11240 | ;; |
55e80573 | 11241 | |
10f2d63a VZ |
11242 | *-*-solaris2* ) |
11243 | if test "$GCC" = yes ; then | |
f6bcfd97 | 11244 | CPPFLAGS="$CPPFLAGS -isystem /usr/openwin/include" |
10f2d63a VZ |
11245 | else |
11246 | SHARED_LD="${CXX} -G -o" | |
11247 | PIC_FLAG="-KPIC" | |
11248 | fi | |
10f2d63a | 11249 | ;; |
55e80573 | 11250 | |
b4085ce6 | 11251 | *-*-darwin* ) |
3a922bb4 | 11252 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__UNIX__ -D__DARWIN__ -D__POWERPC__" |
a3cb1afc | 11253 | CPPFLAGS="${CPPFLAGS} -fno-common" |
ea5999b9 GD |
11254 | SHARED_LD="${CXX} -dynamiclib -o" |
11255 | PIC_FLAG="-dynamic -fPIC" | |
55e80573 | 11256 | |
a3cb1afc | 11257 | if test "$wxUSE_MAC" = 1 ; then |
3a922bb4 RL |
11258 | WX_ALL="${WX_ALL} lib${WX_LIBRARY}.r" |
11259 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -DTARGET_CARBON" | |
11260 | CPPFLAGS="${CPPFLAGS} -fpascal-strings" | |
11261 | CXXFLAGS="${CXXFLAGS} -cpp-precomp" | |
11262 | # Extract the first word of "Rez", so it can be a program name with args. | |
11263 | set dummy Rez; ac_word=$2 | |
11264 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
edae8572 | 11265 | echo "configure:11266: checking for $ac_word" >&5 |
3a922bb4 RL |
11266 | if eval "test \"`echo '$''{'ac_cv_prog_RESCOMP'+set}'`\" = set"; then |
11267 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11268 | else | |
11269 | if test -n "$RESCOMP"; then | |
11270 | ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test. | |
11271 | else | |
11272 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
11273 | ac_dummy="$PATH" | |
11274 | for ac_dir in $ac_dummy; do | |
11275 | test -z "$ac_dir" && ac_dir=. | |
11276 | if test -f $ac_dir/$ac_word; then | |
11277 | ac_cv_prog_RESCOMP="Rez" | |
11278 | break | |
11279 | fi | |
11280 | done | |
11281 | IFS="$ac_save_ifs" | |
11282 | test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez" | |
11283 | fi | |
11284 | fi | |
11285 | RESCOMP="$ac_cv_prog_RESCOMP" | |
11286 | if test -n "$RESCOMP"; then | |
11287 | echo "$ac_t""$RESCOMP" 1>&6 | |
11288 | else | |
11289 | echo "$ac_t""no" 1>&6 | |
11290 | fi | |
11291 | ||
11292 | # Extract the first word of "Derez", so it can be a program name with args. | |
11293 | set dummy Derez; ac_word=$2 | |
11294 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
edae8572 | 11295 | echo "configure:11296: checking for $ac_word" >&5 |
3a922bb4 RL |
11296 | if eval "test \"`echo '$''{'ac_cv_prog_DEREZ'+set}'`\" = set"; then |
11297 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11298 | else | |
11299 | if test -n "$DEREZ"; then | |
11300 | ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test. | |
11301 | else | |
11302 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
11303 | ac_dummy="$PATH" | |
11304 | for ac_dir in $ac_dummy; do | |
11305 | test -z "$ac_dir" && ac_dir=. | |
11306 | if test -f $ac_dir/$ac_word; then | |
11307 | ac_cv_prog_DEREZ="Derez" | |
11308 | break | |
11309 | fi | |
11310 | done | |
11311 | IFS="$ac_save_ifs" | |
11312 | test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/Derez" | |
11313 | fi | |
11314 | fi | |
11315 | DEREZ="$ac_cv_prog_DEREZ" | |
11316 | if test -n "$DEREZ"; then | |
11317 | echo "$ac_t""$DEREZ" 1>&6 | |
11318 | else | |
11319 | echo "$ac_t""no" 1>&6 | |
11320 | fi | |
11321 | ||
11322 | LIBWXMACRES="\$(top_builddir)/lib/lib${WX_LIBRARY}.r" | |
11323 | LIBWXMACRESCOMP="\$(RESCOMP) Carbon.r -t APPL ${LIBWXMACRES} -o \$(BIN_PROGRAM)" | |
a3cb1afc | 11324 | fi |
10f2d63a | 11325 | ;; |
55e80573 | 11326 | |
10f2d63a VZ |
11327 | *-*-aix* ) |
11328 | SHARED_LD="/usr/lpp/xlC/bin/makeC++SharedLib -p 0 -o" | |
10f2d63a | 11329 | ;; |
55e80573 | 11330 | |
1c8183e2 | 11331 | *-*-cygwin* ) |
3a922bb4 RL |
11332 | echo "configure: warning: Shared libs unsupported for $host_alias -- forcing static build." 1>&2 |
11333 | wxUSE_SHARED=no | |
10f2d63a | 11334 | ;; |
55e80573 | 11335 | |
b12915c1 | 11336 | *-*-mingw32* ) |
3a922bb4 RL |
11337 | SHARED_LD="${CXX} -shared -Wl,--out-implib,lib/${WX_LIBRARY_NAME_STATIC} -o" |
11338 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -DWXUSINGDLL=1" | |
18dbb1f6 VZ |
11339 | WXMSW_DLL_DEFINES="-UWXUSINGDLL -DWXMAKINGDLL=1 -D_DLL=1 -D_WINDLL=1" |
11340 | WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_SHARED}" | |
11341 | WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_SHARED_GL}" | |
f6bcfd97 BP |
11342 | if test "$wxUSE_OPENGL" = "yes"; then |
11343 | WX_ALL_INSTALLED="preinstall_gl" | |
3a922bb4 | 11344 | WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED} \$(build_libdir)/${WX_LIBRARY_NAME_SHARED_GL}" |
f6bcfd97 | 11345 | else |
3a922bb4 | 11346 | WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED}" |
f6bcfd97 | 11347 | fi |
10f2d63a | 11348 | ;; |
55e80573 | 11349 | |
10f2d63a | 11350 | *-pc-os2_emx ) |
e07802fc | 11351 | WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}" |
3a922bb4 | 11352 | WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC}" |
10f2d63a | 11353 | ;; |
55e80573 | 11354 | |
b12915c1 | 11355 | *-*-beos* ) |
e2b8b066 | 11356 | SHARED_LD="${LD} -shared -o" |
b12915c1 | 11357 | ;; |
55e80573 VZ |
11358 | |
11359 | *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | \ | |
11360 | *-*-sunos4* | \ | |
11361 | *-*-irix5* | *-*-irix6* | \ | |
11362 | *-*-osf* | \ | |
11363 | *-*-dgux5* | \ | |
11364 | *-*-sysv5* ) | |
11365 | ;; | |
11366 | ||
10f2d63a | 11367 | *) |
698dcdb6 | 11368 | { echo "configure: error: unknown system type ${host}." 1>&2; exit 1; } |
10f2d63a VZ |
11369 | esac |
11370 | ||
11371 | if test "x$WX_TARGET_LIBRARY" = "x"; then | |
11372 | WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_SHARED}" | |
bdad4e7e | 11373 | WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_SHARED_GL}" |
10f2d63a | 11374 | fi |
55e80573 | 11375 | |
3711412e | 11376 | WX_TARGET_LIBRARY_TYPE="so" |
3a922bb4 | 11377 | fi |
f6bcfd97 | 11378 | |
3a922bb4 | 11379 | if test "$wxUSE_SHARED" = "no"; then |
f6bcfd97 | 11380 | |
3a922bb4 | 11381 | if test "$wxUSE_GUI" = "no" -o "$USE_WIN32" = 1 ; then |
f6bcfd97 BP |
11382 | WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall" |
11383 | fi | |
11384 | ||
3a922bb4 RL |
11385 | if test "$wxUSE_OPENGL" = "yes"; then |
11386 | WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall_gl" | |
11387 | WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC} \$(build_libdir)/${WX_LIBRARY_NAME_STATIC_GL}" | |
11388 | else | |
11389 | WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC}" | |
11390 | fi | |
698dcdb6 | 11391 | |
3a922bb4 RL |
11392 | WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}" |
11393 | WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_STATIC_GL}" | |
11394 | ||
11395 | WX_TARGET_LIBRARY_TYPE="a" | |
10f2d63a | 11396 | fi |
10f2d63a | 11397 | |
3a922bb4 RL |
11398 | |
11399 | for ac_hdr in strings.h | |
9cfadba2 | 11400 | do |
698dcdb6 VZ |
11401 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
11402 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
edae8572 | 11403 | echo "configure:11404: checking for $ac_hdr" >&5 |
698dcdb6 VZ |
11404 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
11405 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11406 | else | |
11407 | cat > conftest.$ac_ext <<EOF | |
edae8572 | 11408 | #line 11409 "configure" |
9cfadba2 | 11409 | #include "confdefs.h" |
698dcdb6 VZ |
11410 | #include <$ac_hdr> |
11411 | EOF | |
11412 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
edae8572 | 11413 | { (eval echo configure:11414: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
11414 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
11415 | if test -z "$ac_err"; then | |
11416 | rm -rf conftest* | |
11417 | eval "ac_cv_header_$ac_safe=yes" | |
6232543b | 11418 | else |
698dcdb6 VZ |
11419 | echo "$ac_err" >&5 |
11420 | echo "configure: failed program was:" >&5 | |
9cfadba2 | 11421 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
11422 | rm -rf conftest* |
11423 | eval "ac_cv_header_$ac_safe=no" | |
9cfadba2 | 11424 | fi |
698dcdb6 | 11425 | rm -f conftest* |
9cfadba2 | 11426 | fi |
698dcdb6 VZ |
11427 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
11428 | echo "$ac_t""yes" 1>&6 | |
11429 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
11430 | cat >> confdefs.h <<EOF | |
11431 | #define $ac_tr_hdr 1 | |
9cfadba2 | 11432 | EOF |
698dcdb6 VZ |
11433 | |
11434 | else | |
11435 | echo "$ac_t""no" 1>&6 | |
9cfadba2 VZ |
11436 | fi |
11437 | done | |
10f2d63a | 11438 | |
3a922bb4 | 11439 | for ac_hdr in stdlib.h |
10f2d63a | 11440 | do |
698dcdb6 VZ |
11441 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
11442 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
edae8572 | 11443 | echo "configure:11444: checking for $ac_hdr" >&5 |
698dcdb6 VZ |
11444 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
11445 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11446 | else | |
11447 | cat > conftest.$ac_ext <<EOF | |
edae8572 | 11448 | #line 11449 "configure" |
10f2d63a | 11449 | #include "confdefs.h" |
698dcdb6 VZ |
11450 | #include <$ac_hdr> |
11451 | EOF | |
11452 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
edae8572 | 11453 | { (eval echo configure:11454: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
11454 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
11455 | if test -z "$ac_err"; then | |
11456 | rm -rf conftest* | |
11457 | eval "ac_cv_header_$ac_safe=yes" | |
6232543b | 11458 | else |
698dcdb6 VZ |
11459 | echo "$ac_err" >&5 |
11460 | echo "configure: failed program was:" >&5 | |
10f2d63a | 11461 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
11462 | rm -rf conftest* |
11463 | eval "ac_cv_header_$ac_safe=no" | |
10f2d63a | 11464 | fi |
698dcdb6 | 11465 | rm -f conftest* |
10f2d63a | 11466 | fi |
698dcdb6 VZ |
11467 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
11468 | echo "$ac_t""yes" 1>&6 | |
11469 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
11470 | cat >> confdefs.h <<EOF | |
11471 | #define $ac_tr_hdr 1 | |
10f2d63a | 11472 | EOF |
698dcdb6 VZ |
11473 | |
11474 | else | |
11475 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
11476 | fi |
11477 | done | |
11478 | ||
3a922bb4 | 11479 | for ac_hdr in unistd.h |
10f2d63a | 11480 | do |
698dcdb6 VZ |
11481 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
11482 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
edae8572 | 11483 | echo "configure:11484: checking for $ac_hdr" >&5 |
698dcdb6 VZ |
11484 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
11485 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11486 | else | |
11487 | cat > conftest.$ac_ext <<EOF | |
edae8572 | 11488 | #line 11489 "configure" |
10f2d63a | 11489 | #include "confdefs.h" |
698dcdb6 VZ |
11490 | #include <$ac_hdr> |
11491 | EOF | |
11492 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
edae8572 | 11493 | { (eval echo configure:11494: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
11494 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
11495 | if test -z "$ac_err"; then | |
11496 | rm -rf conftest* | |
11497 | eval "ac_cv_header_$ac_safe=yes" | |
6f72b082 | 11498 | else |
698dcdb6 VZ |
11499 | echo "$ac_err" >&5 |
11500 | echo "configure: failed program was:" >&5 | |
6f72b082 | 11501 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
11502 | rm -rf conftest* |
11503 | eval "ac_cv_header_$ac_safe=no" | |
6f72b082 | 11504 | fi |
698dcdb6 | 11505 | rm -f conftest* |
6f72b082 | 11506 | fi |
698dcdb6 VZ |
11507 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
11508 | echo "$ac_t""yes" 1>&6 | |
11509 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
11510 | cat >> confdefs.h <<EOF | |
11511 | #define $ac_tr_hdr 1 | |
6f72b082 | 11512 | EOF |
698dcdb6 VZ |
11513 | |
11514 | else | |
11515 | echo "$ac_t""no" 1>&6 | |
6f72b082 OK |
11516 | fi |
11517 | done | |
11518 | ||
3a922bb4 | 11519 | for ac_hdr in wchar.h |
6f72b082 | 11520 | do |
698dcdb6 VZ |
11521 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
11522 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
edae8572 | 11523 | echo "configure:11524: checking for $ac_hdr" >&5 |
698dcdb6 VZ |
11524 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
11525 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11526 | else | |
11527 | cat > conftest.$ac_ext <<EOF | |
edae8572 | 11528 | #line 11529 "configure" |
6f72b082 | 11529 | #include "confdefs.h" |
698dcdb6 VZ |
11530 | #include <$ac_hdr> |
11531 | EOF | |
11532 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
edae8572 | 11533 | { (eval echo configure:11534: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
11534 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
11535 | if test -z "$ac_err"; then | |
11536 | rm -rf conftest* | |
11537 | eval "ac_cv_header_$ac_safe=yes" | |
6f72b082 | 11538 | else |
698dcdb6 VZ |
11539 | echo "$ac_err" >&5 |
11540 | echo "configure: failed program was:" >&5 | |
6f72b082 | 11541 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
11542 | rm -rf conftest* |
11543 | eval "ac_cv_header_$ac_safe=no" | |
6f72b082 | 11544 | fi |
698dcdb6 | 11545 | rm -f conftest* |
6f72b082 | 11546 | fi |
698dcdb6 VZ |
11547 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
11548 | echo "$ac_t""yes" 1>&6 | |
11549 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
11550 | cat >> confdefs.h <<EOF | |
11551 | #define $ac_tr_hdr 1 | |
6f72b082 | 11552 | EOF |
698dcdb6 VZ |
11553 | |
11554 | else | |
11555 | echo "$ac_t""no" 1>&6 | |
6f72b082 OK |
11556 | fi |
11557 | done | |
11558 | ||
3a922bb4 | 11559 | for ac_hdr in wcstr.h |
6f72b082 | 11560 | do |
698dcdb6 VZ |
11561 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
11562 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
edae8572 | 11563 | echo "configure:11564: checking for $ac_hdr" >&5 |
698dcdb6 VZ |
11564 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
11565 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11566 | else | |
11567 | cat > conftest.$ac_ext <<EOF | |
edae8572 | 11568 | #line 11569 "configure" |
6f72b082 | 11569 | #include "confdefs.h" |
698dcdb6 VZ |
11570 | #include <$ac_hdr> |
11571 | EOF | |
11572 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
edae8572 | 11573 | { (eval echo configure:11574: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
11574 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
11575 | if test -z "$ac_err"; then | |
11576 | rm -rf conftest* | |
11577 | eval "ac_cv_header_$ac_safe=yes" | |
10f2d63a | 11578 | else |
698dcdb6 VZ |
11579 | echo "$ac_err" >&5 |
11580 | echo "configure: failed program was:" >&5 | |
10f2d63a | 11581 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
11582 | rm -rf conftest* |
11583 | eval "ac_cv_header_$ac_safe=no" | |
10f2d63a | 11584 | fi |
698dcdb6 | 11585 | rm -f conftest* |
10f2d63a | 11586 | fi |
698dcdb6 VZ |
11587 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
11588 | echo "$ac_t""yes" 1>&6 | |
11589 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
11590 | cat >> confdefs.h <<EOF | |
11591 | #define $ac_tr_hdr 1 | |
10f2d63a | 11592 | EOF |
698dcdb6 VZ |
11593 | |
11594 | else | |
11595 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
11596 | fi |
11597 | done | |
11598 | ||
3a922bb4 | 11599 | for ac_hdr in fnmatch.h |
0fb0dd83 | 11600 | do |
698dcdb6 VZ |
11601 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
11602 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
edae8572 | 11603 | echo "configure:11604: checking for $ac_hdr" >&5 |
698dcdb6 VZ |
11604 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
11605 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11606 | else | |
11607 | cat > conftest.$ac_ext <<EOF | |
edae8572 | 11608 | #line 11609 "configure" |
0fb0dd83 | 11609 | #include "confdefs.h" |
698dcdb6 VZ |
11610 | #include <$ac_hdr> |
11611 | EOF | |
11612 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
edae8572 | 11613 | { (eval echo configure:11614: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
11614 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
11615 | if test -z "$ac_err"; then | |
11616 | rm -rf conftest* | |
11617 | eval "ac_cv_header_$ac_safe=yes" | |
0fb0dd83 | 11618 | else |
698dcdb6 VZ |
11619 | echo "$ac_err" >&5 |
11620 | echo "configure: failed program was:" >&5 | |
0fb0dd83 | 11621 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
11622 | rm -rf conftest* |
11623 | eval "ac_cv_header_$ac_safe=no" | |
0fb0dd83 | 11624 | fi |
698dcdb6 | 11625 | rm -f conftest* |
0fb0dd83 | 11626 | fi |
698dcdb6 VZ |
11627 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
11628 | echo "$ac_t""yes" 1>&6 | |
11629 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
11630 | cat >> confdefs.h <<EOF | |
11631 | #define $ac_tr_hdr 1 | |
0fb0dd83 | 11632 | EOF |
698dcdb6 VZ |
11633 | |
11634 | else | |
11635 | echo "$ac_t""no" 1>&6 | |
0fb0dd83 RR |
11636 | fi |
11637 | done | |
11638 | ||
3a922bb4 | 11639 | for ac_hdr in iconv.h |
1f8ae82f | 11640 | do |
698dcdb6 VZ |
11641 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
11642 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
edae8572 | 11643 | echo "configure:11644: checking for $ac_hdr" >&5 |
698dcdb6 VZ |
11644 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
11645 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11646 | else | |
11647 | cat > conftest.$ac_ext <<EOF | |
edae8572 | 11648 | #line 11649 "configure" |
1f8ae82f | 11649 | #include "confdefs.h" |
698dcdb6 VZ |
11650 | #include <$ac_hdr> |
11651 | EOF | |
11652 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
edae8572 | 11653 | { (eval echo configure:11654: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
11654 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
11655 | if test -z "$ac_err"; then | |
11656 | rm -rf conftest* | |
11657 | eval "ac_cv_header_$ac_safe=yes" | |
1f8ae82f | 11658 | else |
698dcdb6 VZ |
11659 | echo "$ac_err" >&5 |
11660 | echo "configure: failed program was:" >&5 | |
1f8ae82f | 11661 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
11662 | rm -rf conftest* |
11663 | eval "ac_cv_header_$ac_safe=no" | |
1f8ae82f | 11664 | fi |
698dcdb6 | 11665 | rm -f conftest* |
1f8ae82f | 11666 | fi |
698dcdb6 VZ |
11667 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
11668 | echo "$ac_t""yes" 1>&6 | |
11669 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
11670 | cat >> confdefs.h <<EOF | |
11671 | #define $ac_tr_hdr 1 | |
1f8ae82f | 11672 | EOF |
698dcdb6 VZ |
11673 | |
11674 | else | |
11675 | echo "$ac_t""no" 1>&6 | |
1f8ae82f GD |
11676 | fi |
11677 | done | |
11678 | ||
3a922bb4 | 11679 | for ac_hdr in langinfo.h |
10f2d63a | 11680 | do |
698dcdb6 VZ |
11681 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
11682 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
edae8572 | 11683 | echo "configure:11684: checking for $ac_hdr" >&5 |
698dcdb6 VZ |
11684 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
11685 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11686 | else | |
11687 | cat > conftest.$ac_ext <<EOF | |
edae8572 | 11688 | #line 11689 "configure" |
10f2d63a | 11689 | #include "confdefs.h" |
698dcdb6 VZ |
11690 | #include <$ac_hdr> |
11691 | EOF | |
11692 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
edae8572 | 11693 | { (eval echo configure:11694: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
11694 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
11695 | if test -z "$ac_err"; then | |
11696 | rm -rf conftest* | |
11697 | eval "ac_cv_header_$ac_safe=yes" | |
10f2d63a | 11698 | else |
698dcdb6 VZ |
11699 | echo "$ac_err" >&5 |
11700 | echo "configure: failed program was:" >&5 | |
10f2d63a | 11701 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
11702 | rm -rf conftest* |
11703 | eval "ac_cv_header_$ac_safe=no" | |
10f2d63a | 11704 | fi |
698dcdb6 | 11705 | rm -f conftest* |
10f2d63a | 11706 | fi |
698dcdb6 VZ |
11707 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
11708 | echo "$ac_t""yes" 1>&6 | |
11709 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
11710 | cat >> confdefs.h <<EOF | |
11711 | #define $ac_tr_hdr 1 | |
10f2d63a | 11712 | EOF |
698dcdb6 VZ |
11713 | |
11714 | else | |
11715 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
11716 | fi |
11717 | done | |
11718 | ||
10f2d63a | 11719 | |
3a922bb4 RL |
11720 | if test "$wxUSE_GUI" = "yes"; then |
11721 | if test "$wxUSE_UNIX" = "yes"; then | |
11722 | for ac_hdr in X11/XKBlib.h | |
29fd3c0c VS |
11723 | do |
11724 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
11725 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
edae8572 | 11726 | echo "configure:11727: checking for $ac_hdr" >&5 |
29fd3c0c VS |
11727 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
11728 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11729 | else | |
11730 | cat > conftest.$ac_ext <<EOF | |
edae8572 | 11731 | #line 11732 "configure" |
29fd3c0c VS |
11732 | #include "confdefs.h" |
11733 | #include <$ac_hdr> | |
11734 | EOF | |
11735 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
edae8572 | 11736 | { (eval echo configure:11737: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
29fd3c0c VS |
11737 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
11738 | if test -z "$ac_err"; then | |
11739 | rm -rf conftest* | |
11740 | eval "ac_cv_header_$ac_safe=yes" | |
11741 | else | |
11742 | echo "$ac_err" >&5 | |
11743 | echo "configure: failed program was:" >&5 | |
11744 | cat conftest.$ac_ext >&5 | |
11745 | rm -rf conftest* | |
11746 | eval "ac_cv_header_$ac_safe=no" | |
11747 | fi | |
11748 | rm -f conftest* | |
11749 | fi | |
11750 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
11751 | echo "$ac_t""yes" 1>&6 | |
11752 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
11753 | cat >> confdefs.h <<EOF | |
11754 | #define $ac_tr_hdr 1 | |
11755 | EOF | |
11756 | ||
11757 | else | |
11758 | echo "$ac_t""no" 1>&6 | |
11759 | fi | |
11760 | done | |
11761 | ||
3a922bb4 | 11762 | fi |
29fd3c0c VS |
11763 | fi |
11764 | ||
698dcdb6 VZ |
11765 | |
11766 | echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6 | |
edae8572 | 11767 | echo "configure:11768: checking for ANSI C header files" >&5 |
698dcdb6 VZ |
11768 | if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then |
11769 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 11770 | else |
698dcdb6 | 11771 | cat > conftest.$ac_ext <<EOF |
edae8572 | 11772 | #line 11773 "configure" |
10f2d63a VZ |
11773 | #include "confdefs.h" |
11774 | #include <stdlib.h> | |
11775 | #include <stdarg.h> | |
11776 | #include <string.h> | |
11777 | #include <float.h> | |
698dcdb6 VZ |
11778 | EOF |
11779 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
edae8572 | 11780 | { (eval echo configure:11781: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
11781 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
11782 | if test -z "$ac_err"; then | |
11783 | rm -rf conftest* | |
10f2d63a VZ |
11784 | ac_cv_header_stdc=yes |
11785 | else | |
698dcdb6 VZ |
11786 | echo "$ac_err" >&5 |
11787 | echo "configure: failed program was:" >&5 | |
10f2d63a | 11788 | cat conftest.$ac_ext >&5 |
698dcdb6 | 11789 | rm -rf conftest* |
10f2d63a VZ |
11790 | ac_cv_header_stdc=no |
11791 | fi | |
698dcdb6 | 11792 | rm -f conftest* |
10f2d63a VZ |
11793 | |
11794 | if test $ac_cv_header_stdc = yes; then | |
11795 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
698dcdb6 | 11796 | cat > conftest.$ac_ext <<EOF |
edae8572 | 11797 | #line 11798 "configure" |
10f2d63a VZ |
11798 | #include "confdefs.h" |
11799 | #include <string.h> | |
698dcdb6 | 11800 | EOF |
10f2d63a VZ |
11801 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
11802 | egrep "memchr" >/dev/null 2>&1; then | |
11803 | : | |
11804 | else | |
698dcdb6 | 11805 | rm -rf conftest* |
10f2d63a VZ |
11806 | ac_cv_header_stdc=no |
11807 | fi | |
11808 | rm -f conftest* | |
11809 | ||
11810 | fi | |
11811 | ||
11812 | if test $ac_cv_header_stdc = yes; then | |
11813 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
698dcdb6 | 11814 | cat > conftest.$ac_ext <<EOF |
edae8572 | 11815 | #line 11816 "configure" |
10f2d63a VZ |
11816 | #include "confdefs.h" |
11817 | #include <stdlib.h> | |
698dcdb6 | 11818 | EOF |
10f2d63a VZ |
11819 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
11820 | egrep "free" >/dev/null 2>&1; then | |
11821 | : | |
11822 | else | |
698dcdb6 | 11823 | rm -rf conftest* |
10f2d63a VZ |
11824 | ac_cv_header_stdc=no |
11825 | fi | |
11826 | rm -f conftest* | |
11827 | ||
11828 | fi | |
11829 | ||
11830 | if test $ac_cv_header_stdc = yes; then | |
11831 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
698dcdb6 | 11832 | if test "$cross_compiling" = yes; then |
10f2d63a VZ |
11833 | : |
11834 | else | |
698dcdb6 | 11835 | cat > conftest.$ac_ext <<EOF |
edae8572 | 11836 | #line 11837 "configure" |
10f2d63a VZ |
11837 | #include "confdefs.h" |
11838 | #include <ctype.h> | |
698dcdb6 VZ |
11839 | #define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
11840 | #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
1e487827 | 11841 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
698dcdb6 VZ |
11842 | int main () { int i; for (i = 0; i < 256; i++) |
11843 | if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2); | |
11844 | exit (0); } | |
11845 | ||
11846 | EOF | |
edae8572 | 11847 | if { (eval echo configure:11848: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
698dcdb6 | 11848 | then |
10f2d63a VZ |
11849 | : |
11850 | else | |
698dcdb6 VZ |
11851 | echo "configure: failed program was:" >&5 |
11852 | cat conftest.$ac_ext >&5 | |
11853 | rm -fr conftest* | |
11854 | ac_cv_header_stdc=no | |
10f2d63a | 11855 | fi |
698dcdb6 | 11856 | rm -fr conftest* |
10f2d63a | 11857 | fi |
698dcdb6 | 11858 | |
10f2d63a VZ |
11859 | fi |
11860 | fi | |
1e487827 | 11861 | |
698dcdb6 VZ |
11862 | echo "$ac_t""$ac_cv_header_stdc" 1>&6 |
11863 | if test $ac_cv_header_stdc = yes; then | |
11864 | cat >> confdefs.h <<\EOF | |
10f2d63a VZ |
11865 | #define STDC_HEADERS 1 |
11866 | EOF | |
11867 | ||
11868 | fi | |
11869 | ||
698dcdb6 | 11870 | echo $ac_n "checking for mode_t""... $ac_c" 1>&6 |
edae8572 | 11871 | echo "configure:11872: checking for mode_t" >&5 |
698dcdb6 VZ |
11872 | if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then |
11873 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1e487827 | 11874 | else |
698dcdb6 | 11875 | cat > conftest.$ac_ext <<EOF |
edae8572 | 11876 | #line 11877 "configure" |
1e487827 | 11877 | #include "confdefs.h" |
698dcdb6 VZ |
11878 | #include <sys/types.h> |
11879 | #if STDC_HEADERS | |
11880 | #include <stdlib.h> | |
11881 | #include <stddef.h> | |
11882 | #endif | |
11883 | EOF | |
11884 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
11885 | egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then | |
11886 | rm -rf conftest* | |
10f2d63a VZ |
11887 | ac_cv_type_mode_t=yes |
11888 | else | |
698dcdb6 VZ |
11889 | rm -rf conftest* |
11890 | ac_cv_type_mode_t=no | |
703e0a69 | 11891 | fi |
698dcdb6 | 11892 | rm -f conftest* |
1e487827 | 11893 | |
698dcdb6 VZ |
11894 | fi |
11895 | echo "$ac_t""$ac_cv_type_mode_t" 1>&6 | |
11896 | if test $ac_cv_type_mode_t = no; then | |
11897 | cat >> confdefs.h <<\EOF | |
10f2d63a VZ |
11898 | #define mode_t int |
11899 | EOF | |
11900 | ||
11901 | fi | |
11902 | ||
698dcdb6 | 11903 | echo $ac_n "checking for off_t""... $ac_c" 1>&6 |
edae8572 | 11904 | echo "configure:11905: checking for off_t" >&5 |
698dcdb6 VZ |
11905 | if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then |
11906 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 11907 | else |
698dcdb6 | 11908 | cat > conftest.$ac_ext <<EOF |
edae8572 | 11909 | #line 11910 "configure" |
10f2d63a | 11910 | #include "confdefs.h" |
698dcdb6 VZ |
11911 | #include <sys/types.h> |
11912 | #if STDC_HEADERS | |
11913 | #include <stdlib.h> | |
11914 | #include <stddef.h> | |
11915 | #endif | |
11916 | EOF | |
11917 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
11918 | egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then | |
11919 | rm -rf conftest* | |
10f2d63a VZ |
11920 | ac_cv_type_off_t=yes |
11921 | else | |
698dcdb6 VZ |
11922 | rm -rf conftest* |
11923 | ac_cv_type_off_t=no | |
703e0a69 | 11924 | fi |
698dcdb6 | 11925 | rm -f conftest* |
1e487827 | 11926 | |
698dcdb6 VZ |
11927 | fi |
11928 | echo "$ac_t""$ac_cv_type_off_t" 1>&6 | |
11929 | if test $ac_cv_type_off_t = no; then | |
11930 | cat >> confdefs.h <<\EOF | |
10f2d63a VZ |
11931 | #define off_t long |
11932 | EOF | |
11933 | ||
11934 | fi | |
11935 | ||
698dcdb6 | 11936 | echo $ac_n "checking for pid_t""... $ac_c" 1>&6 |
edae8572 | 11937 | echo "configure:11938: checking for pid_t" >&5 |
698dcdb6 VZ |
11938 | if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then |
11939 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 11940 | else |
698dcdb6 | 11941 | cat > conftest.$ac_ext <<EOF |
edae8572 | 11942 | #line 11943 "configure" |
10f2d63a | 11943 | #include "confdefs.h" |
698dcdb6 VZ |
11944 | #include <sys/types.h> |
11945 | #if STDC_HEADERS | |
11946 | #include <stdlib.h> | |
11947 | #include <stddef.h> | |
11948 | #endif | |
11949 | EOF | |
11950 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
11951 | egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then | |
11952 | rm -rf conftest* | |
10f2d63a VZ |
11953 | ac_cv_type_pid_t=yes |
11954 | else | |
698dcdb6 VZ |
11955 | rm -rf conftest* |
11956 | ac_cv_type_pid_t=no | |
703e0a69 | 11957 | fi |
698dcdb6 | 11958 | rm -f conftest* |
1e487827 | 11959 | |
698dcdb6 VZ |
11960 | fi |
11961 | echo "$ac_t""$ac_cv_type_pid_t" 1>&6 | |
11962 | if test $ac_cv_type_pid_t = no; then | |
11963 | cat >> confdefs.h <<\EOF | |
10f2d63a VZ |
11964 | #define pid_t int |
11965 | EOF | |
11966 | ||
11967 | fi | |
11968 | ||
698dcdb6 | 11969 | echo $ac_n "checking for size_t""... $ac_c" 1>&6 |
edae8572 | 11970 | echo "configure:11971: checking for size_t" >&5 |
698dcdb6 VZ |
11971 | if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then |
11972 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 11973 | else |
698dcdb6 | 11974 | cat > conftest.$ac_ext <<EOF |
edae8572 | 11975 | #line 11976 "configure" |
10f2d63a | 11976 | #include "confdefs.h" |
698dcdb6 VZ |
11977 | #include <sys/types.h> |
11978 | #if STDC_HEADERS | |
11979 | #include <stdlib.h> | |
11980 | #include <stddef.h> | |
11981 | #endif | |
11982 | EOF | |
11983 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
11984 | egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then | |
11985 | rm -rf conftest* | |
10f2d63a VZ |
11986 | ac_cv_type_size_t=yes |
11987 | else | |
698dcdb6 VZ |
11988 | rm -rf conftest* |
11989 | ac_cv_type_size_t=no | |
703e0a69 | 11990 | fi |
698dcdb6 | 11991 | rm -f conftest* |
1e487827 | 11992 | |
698dcdb6 VZ |
11993 | fi |
11994 | echo "$ac_t""$ac_cv_type_size_t" 1>&6 | |
11995 | if test $ac_cv_type_size_t = no; then | |
11996 | cat >> confdefs.h <<\EOF | |
10f2d63a VZ |
11997 | #define size_t unsigned |
11998 | EOF | |
11999 | ||
12000 | fi | |
12001 | ||
698dcdb6 | 12002 | echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6 |
edae8572 | 12003 | echo "configure:12004: checking for uid_t in sys/types.h" >&5 |
698dcdb6 VZ |
12004 | if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then |
12005 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 12006 | else |
698dcdb6 | 12007 | cat > conftest.$ac_ext <<EOF |
edae8572 | 12008 | #line 12009 "configure" |
10f2d63a VZ |
12009 | #include "confdefs.h" |
12010 | #include <sys/types.h> | |
698dcdb6 | 12011 | EOF |
10f2d63a VZ |
12012 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
12013 | egrep "uid_t" >/dev/null 2>&1; then | |
698dcdb6 | 12014 | rm -rf conftest* |
10f2d63a VZ |
12015 | ac_cv_type_uid_t=yes |
12016 | else | |
698dcdb6 | 12017 | rm -rf conftest* |
10f2d63a VZ |
12018 | ac_cv_type_uid_t=no |
12019 | fi | |
12020 | rm -f conftest* | |
12021 | ||
12022 | fi | |
1e487827 | 12023 | |
698dcdb6 VZ |
12024 | echo "$ac_t""$ac_cv_type_uid_t" 1>&6 |
12025 | if test $ac_cv_type_uid_t = no; then | |
12026 | cat >> confdefs.h <<\EOF | |
10f2d63a VZ |
12027 | #define uid_t int |
12028 | EOF | |
12029 | ||
698dcdb6 | 12030 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
12031 | #define gid_t int |
12032 | EOF | |
12033 | ||
12034 | fi | |
12035 | ||
1e487827 | 12036 | |
698dcdb6 | 12037 | echo $ac_n "checking for wchar_t""... $ac_c" 1>&6 |
edae8572 | 12038 | echo "configure:12039: checking for wchar_t" >&5 |
698dcdb6 VZ |
12039 | if eval "test \"`echo '$''{'wx_cv_type_wchar_t'+set}'`\" = set"; then |
12040 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12041 | else | |
12042 | ||
12043 | cat > conftest.$ac_ext <<EOF | |
edae8572 | 12044 | #line 12045 "configure" |
0046ff7c VS |
12045 | #include "confdefs.h" |
12046 | #include <wchar.h> | |
698dcdb6 | 12047 | int main() { |
0046ff7c | 12048 | |
d836ee96 VZ |
12049 | wchar_t wc, *ws; |
12050 | wc = L'a'; | |
12051 | ws = L"Hello, world!"; | |
698dcdb6 VZ |
12052 | |
12053 | ; return 0; } | |
12054 | EOF | |
edae8572 | 12055 | if { (eval echo configure:12056: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 | 12056 | rm -rf conftest* |
1f8ae82f GD |
12057 | wx_cv_type_wchar_t=yes |
12058 | else | |
698dcdb6 VZ |
12059 | echo "configure: failed program was:" >&5 |
12060 | cat conftest.$ac_ext >&5 | |
12061 | rm -rf conftest* | |
12062 | cat > conftest.$ac_ext <<EOF | |
edae8572 | 12063 | #line 12064 "configure" |
1f8ae82f GD |
12064 | #include "confdefs.h" |
12065 | #include <stdlib.h> | |
698dcdb6 | 12066 | int main() { |
1f8ae82f | 12067 | |
d836ee96 VZ |
12068 | wchar_t wc, *ws; |
12069 | wc = L'a'; | |
12070 | ws = L"Hello, world!"; | |
698dcdb6 VZ |
12071 | |
12072 | ; return 0; } | |
12073 | EOF | |
edae8572 | 12074 | if { (eval echo configure:12075: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 | 12075 | rm -rf conftest* |
0046ff7c VS |
12076 | wx_cv_type_wchar_t=yes |
12077 | else | |
698dcdb6 VZ |
12078 | echo "configure: failed program was:" >&5 |
12079 | cat conftest.$ac_ext >&5 | |
12080 | rm -rf conftest* | |
12081 | wx_cv_type_wchar_t=no | |
0046ff7c | 12082 | fi |
698dcdb6 | 12083 | rm -f conftest* |
d836ee96 | 12084 | |
6232543b | 12085 | fi |
698dcdb6 | 12086 | rm -f conftest* |
703e0a69 | 12087 | |
1e487827 | 12088 | fi |
698dcdb6 VZ |
12089 | |
12090 | echo "$ac_t""$wx_cv_type_wchar_t" 1>&6 | |
d836ee96 VZ |
12091 | |
12092 | if test "$wx_cv_type_wchar_t" = "yes"; then | |
698dcdb6 | 12093 | cat >> confdefs.h <<\EOF |
0046ff7c VS |
12094 | #define wxUSE_WCHAR_T 1 |
12095 | EOF | |
12096 | ||
12097 | fi | |
12098 | ||
19af3b06 VZ |
12099 | |
12100 | ac_ext=C | |
12101 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
12102 | ac_cpp='$CXXCPP $CPPFLAGS' | |
12103 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
12104 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
12105 | cross_compiling=$ac_cv_prog_cxx_cross | |
12106 | ||
d836ee96 | 12107 | echo $ac_n "checking if size_t is unsigned int""... $ac_c" 1>&6 |
edae8572 | 12108 | echo "configure:12109: checking if size_t is unsigned int" >&5 |
d836ee96 VZ |
12109 | if eval "test \"`echo '$''{'wx_cv_size_t_is_uint'+set}'`\" = set"; then |
12110 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12111 | else | |
dd2c8b7c | 12112 | cat > conftest.$ac_ext <<EOF |
edae8572 | 12113 | #line 12114 "configure" |
d836ee96 VZ |
12114 | #include "confdefs.h" |
12115 | #include <stddef.h> | |
12116 | int main() { | |
12117 | ||
dd2c8b7c VZ |
12118 | return 0; } |
12119 | ||
d836ee96 | 12120 | struct Foo { void foo(size_t); void foo(unsigned int); }; |
dd2c8b7c VZ |
12121 | |
12122 | int bar() { | |
d836ee96 VZ |
12123 | |
12124 | ; return 0; } | |
12125 | EOF | |
edae8572 | 12126 | if { (eval echo configure:12127: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
d836ee96 VZ |
12127 | rm -rf conftest* |
12128 | wx_cv_size_t_is_uint=no | |
12129 | else | |
12130 | echo "configure: failed program was:" >&5 | |
12131 | cat conftest.$ac_ext >&5 | |
12132 | rm -rf conftest* | |
12133 | wx_cv_size_t_is_uint=yes | |
12134 | ||
12135 | fi | |
12136 | rm -f conftest* | |
12137 | ||
12138 | fi | |
12139 | ||
12140 | echo "$ac_t""$wx_cv_size_t_is_uint" 1>&6 | |
12141 | ||
12142 | if test "$wx_cv_size_t_is_uint" = "yes"; then | |
12143 | cat >> confdefs.h <<\EOF | |
12144 | #define wxSIZE_T_IS_UINT 1 | |
12145 | EOF | |
12146 | ||
12147 | else | |
12148 | echo $ac_n "checking if size_t is unsigned long""... $ac_c" 1>&6 | |
edae8572 | 12149 | echo "configure:12150: checking if size_t is unsigned long" >&5 |
d836ee96 VZ |
12150 | if eval "test \"`echo '$''{'wx_cv_size_t_is_ulong'+set}'`\" = set"; then |
12151 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12152 | else | |
12153 | cat > conftest.$ac_ext <<EOF | |
edae8572 | 12154 | #line 12155 "configure" |
d836ee96 VZ |
12155 | #include "confdefs.h" |
12156 | #include <stddef.h> | |
12157 | int main() { | |
12158 | ||
dd2c8b7c VZ |
12159 | return 0; } |
12160 | ||
d836ee96 | 12161 | struct Foo { void foo(size_t); void foo(unsigned long); }; |
dd2c8b7c VZ |
12162 | |
12163 | int bar() { | |
d836ee96 VZ |
12164 | |
12165 | ; return 0; } | |
12166 | EOF | |
edae8572 | 12167 | if { (eval echo configure:12168: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
d836ee96 VZ |
12168 | rm -rf conftest* |
12169 | wx_cv_size_t_is_ulong=no | |
12170 | else | |
12171 | echo "configure: failed program was:" >&5 | |
12172 | cat conftest.$ac_ext >&5 | |
12173 | rm -rf conftest* | |
12174 | wx_cv_size_t_is_ulong=yes | |
12175 | ||
12176 | fi | |
12177 | rm -f conftest* | |
12178 | ||
12179 | fi | |
12180 | ||
12181 | echo "$ac_t""$wx_cv_size_t_is_ulong" 1>&6 | |
12182 | ||
12183 | if test "$wx_cv_size_t_is_ulong" = "yes"; then | |
12184 | cat >> confdefs.h <<\EOF | |
12185 | #define wxSIZE_T_IS_ULONG 1 | |
12186 | EOF | |
12187 | ||
12188 | fi | |
12189 | fi | |
12190 | ||
19af3b06 VZ |
12191 | ac_ext=c |
12192 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
12193 | ac_cpp='$CPP $CPPFLAGS' | |
12194 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
12195 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
12196 | cross_compiling=$ac_cv_prog_cc_cross | |
12197 | ||
12198 | ||
1e487827 | 12199 | |
698dcdb6 | 12200 | echo $ac_n "checking for pw_gecos in struct passwd""... $ac_c" 1>&6 |
edae8572 | 12201 | echo "configure:12202: checking for pw_gecos in struct passwd" >&5 |
698dcdb6 VZ |
12202 | if eval "test \"`echo '$''{'wx_cv_struct_pw_gecos'+set}'`\" = set"; then |
12203 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12204 | else | |
12205 | ||
12206 | cat > conftest.$ac_ext <<EOF | |
edae8572 | 12207 | #line 12208 "configure" |
b12915c1 VZ |
12208 | #include "confdefs.h" |
12209 | #include <pwd.h> | |
698dcdb6 | 12210 | int main() { |
b12915c1 VZ |
12211 | |
12212 | char *p; | |
12213 | struct passwd *pw; | |
12214 | p = pw->pw_gecos; | |
698dcdb6 VZ |
12215 | |
12216 | ; return 0; } | |
12217 | EOF | |
edae8572 | 12218 | if { (eval echo configure:12219: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 VZ |
12219 | rm -rf conftest* |
12220 | ||
b12915c1 | 12221 | wx_cv_struct_pw_gecos=yes |
698dcdb6 | 12222 | |
b12915c1 | 12223 | else |
698dcdb6 VZ |
12224 | echo "configure: failed program was:" >&5 |
12225 | cat conftest.$ac_ext >&5 | |
12226 | rm -rf conftest* | |
12227 | ||
b12915c1 | 12228 | wx_cv_struct_pw_gecos=no |
698dcdb6 VZ |
12229 | |
12230 | ||
6232543b | 12231 | fi |
698dcdb6 VZ |
12232 | rm -f conftest* |
12233 | ||
703e0a69 | 12234 | |
1e487827 | 12235 | fi |
698dcdb6 VZ |
12236 | |
12237 | echo "$ac_t""$wx_cv_struct_pw_gecos" 1>&6 | |
b12915c1 | 12238 | |
bd3277fe | 12239 | if test "$wx_cv_struct_pw_gecos" = "yes"; then |
698dcdb6 | 12240 | cat >> confdefs.h <<\EOF |
bd3277fe VZ |
12241 | #define HAVE_PW_GECOS 1 |
12242 | EOF | |
12243 | ||
12244 | fi | |
12245 | ||
698dcdb6 VZ |
12246 | |
12247 | echo $ac_n "checking for working const""... $ac_c" 1>&6 | |
edae8572 | 12248 | echo "configure:12249: checking for working const" >&5 |
698dcdb6 VZ |
12249 | if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then |
12250 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 12251 | else |
698dcdb6 | 12252 | cat > conftest.$ac_ext <<EOF |
edae8572 | 12253 | #line 12254 "configure" |
10f2d63a | 12254 | #include "confdefs.h" |
698dcdb6 VZ |
12255 | |
12256 | int main() { | |
12257 | ||
12258 | /* Ultrix mips cc rejects this. */ | |
12259 | typedef int charset[2]; const charset x; | |
12260 | /* SunOS 4.1.1 cc rejects this. */ | |
12261 | char const *const *ccp; | |
12262 | char **p; | |
12263 | /* NEC SVR4.0.2 mips cc rejects this. */ | |
12264 | struct point {int x, y;}; | |
12265 | static struct point const zero = {0,0}; | |
12266 | /* AIX XL C 1.02.0.0 rejects this. | |
12267 | It does not let you subtract one const X* pointer from another in an arm | |
12268 | of an if-expression whose if-part is not a constant expression */ | |
12269 | const char *g = "string"; | |
12270 | ccp = &g + (g ? g-g : 0); | |
12271 | /* HPUX 7.0 cc rejects these. */ | |
12272 | ++ccp; | |
12273 | p = (char**) ccp; | |
12274 | ccp = (char const *const *) p; | |
12275 | { /* SCO 3.2v4 cc rejects this. */ | |
12276 | char *t; | |
12277 | char const *s = 0 ? (char *) 0 : (char const *) 0; | |
12278 | ||
12279 | *t++ = 0; | |
10f2d63a | 12280 | } |
698dcdb6 VZ |
12281 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ |
12282 | int x[] = {25, 17}; | |
12283 | const int *foo = &x[0]; | |
12284 | ++foo; | |
703e0a69 | 12285 | } |
698dcdb6 VZ |
12286 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ |
12287 | typedef const int *iptr; | |
12288 | iptr p = 0; | |
12289 | ++p; | |
6232543b | 12290 | } |
698dcdb6 VZ |
12291 | { /* AIX XL C 1.02.0.0 rejects this saying |
12292 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ | |
12293 | struct s { int j; const int *ap[3]; }; | |
12294 | struct s *b; b->j = 5; | |
1e487827 | 12295 | } |
698dcdb6 VZ |
12296 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ |
12297 | const int foo = 10; | |
12298 | } | |
12299 | ||
12300 | ; return 0; } | |
12301 | EOF | |
edae8572 | 12302 | if { (eval echo configure:12303: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 | 12303 | rm -rf conftest* |
10f2d63a VZ |
12304 | ac_cv_c_const=yes |
12305 | else | |
698dcdb6 VZ |
12306 | echo "configure: failed program was:" >&5 |
12307 | cat conftest.$ac_ext >&5 | |
12308 | rm -rf conftest* | |
12309 | ac_cv_c_const=no | |
10f2d63a | 12310 | fi |
698dcdb6 | 12311 | rm -f conftest* |
10f2d63a | 12312 | fi |
1e487827 | 12313 | |
698dcdb6 VZ |
12314 | echo "$ac_t""$ac_cv_c_const" 1>&6 |
12315 | if test $ac_cv_c_const = no; then | |
12316 | cat >> confdefs.h <<\EOF | |
12317 | #define const | |
10f2d63a VZ |
12318 | EOF |
12319 | ||
12320 | fi | |
12321 | ||
698dcdb6 | 12322 | echo $ac_n "checking for inline""... $ac_c" 1>&6 |
edae8572 | 12323 | echo "configure:12324: checking for inline" >&5 |
698dcdb6 VZ |
12324 | if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then |
12325 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a VZ |
12326 | else |
12327 | ac_cv_c_inline=no | |
12328 | for ac_kw in inline __inline__ __inline; do | |
698dcdb6 | 12329 | cat > conftest.$ac_ext <<EOF |
edae8572 | 12330 | #line 12331 "configure" |
10f2d63a VZ |
12331 | #include "confdefs.h" |
12332 | ||
698dcdb6 VZ |
12333 | int main() { |
12334 | } $ac_kw foo() { | |
12335 | ; return 0; } | |
12336 | EOF | |
edae8572 | 12337 | if { (eval echo configure:12338: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 | 12338 | rm -rf conftest* |
10f2d63a VZ |
12339 | ac_cv_c_inline=$ac_kw; break |
12340 | else | |
698dcdb6 VZ |
12341 | echo "configure: failed program was:" >&5 |
12342 | cat conftest.$ac_ext >&5 | |
10f2d63a | 12343 | fi |
698dcdb6 | 12344 | rm -f conftest* |
10f2d63a VZ |
12345 | done |
12346 | ||
12347 | fi | |
698dcdb6 VZ |
12348 | |
12349 | echo "$ac_t""$ac_cv_c_inline" 1>&6 | |
12350 | case "$ac_cv_c_inline" in | |
10f2d63a | 12351 | inline | yes) ;; |
698dcdb6 VZ |
12352 | no) cat >> confdefs.h <<\EOF |
12353 | #define inline | |
10f2d63a VZ |
12354 | EOF |
12355 | ;; | |
698dcdb6 | 12356 | *) cat >> confdefs.h <<EOF |
10f2d63a VZ |
12357 | #define inline $ac_cv_c_inline |
12358 | EOF | |
12359 | ;; | |
12360 | esac | |
12361 | ||
698dcdb6 VZ |
12362 | |
12363 | echo $ac_n "checking size of char""... $ac_c" 1>&6 | |
edae8572 | 12364 | echo "configure:12365: checking size of char" >&5 |
698dcdb6 VZ |
12365 | if eval "test \"`echo '$''{'ac_cv_sizeof_char'+set}'`\" = set"; then |
12366 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6232543b | 12367 | else |
1e487827 | 12368 | if test "$cross_compiling" = yes; then |
698dcdb6 | 12369 | ac_cv_sizeof_char=1 |
1e487827 | 12370 | else |
698dcdb6 | 12371 | cat > conftest.$ac_ext <<EOF |
edae8572 | 12372 | #line 12373 "configure" |
1e487827 | 12373 | #include "confdefs.h" |
698dcdb6 VZ |
12374 | #include <stdio.h> |
12375 | main() | |
1e487827 | 12376 | { |
698dcdb6 VZ |
12377 | FILE *f=fopen("conftestval", "w"); |
12378 | if (!f) exit(1); | |
12379 | fprintf(f, "%d\n", sizeof(char)); | |
12380 | exit(0); | |
1e487827 | 12381 | } |
698dcdb6 | 12382 | EOF |
edae8572 | 12383 | if { (eval echo configure:12384: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
698dcdb6 VZ |
12384 | then |
12385 | ac_cv_sizeof_char=`cat conftestval` | |
1e487827 | 12386 | else |
698dcdb6 VZ |
12387 | echo "configure: failed program was:" >&5 |
12388 | cat conftest.$ac_ext >&5 | |
12389 | rm -fr conftest* | |
1e487827 VS |
12390 | ac_cv_sizeof_char=0 |
12391 | fi | |
698dcdb6 | 12392 | rm -fr conftest* |
1e487827 | 12393 | fi |
10f2d63a | 12394 | |
1e487827 | 12395 | fi |
698dcdb6 VZ |
12396 | echo "$ac_t""$ac_cv_sizeof_char" 1>&6 |
12397 | cat >> confdefs.h <<EOF | |
12398 | #define SIZEOF_CHAR $ac_cv_sizeof_char | |
1e487827 | 12399 | EOF |
6232543b | 12400 | |
703e0a69 | 12401 | |
698dcdb6 | 12402 | echo $ac_n "checking size of short""... $ac_c" 1>&6 |
edae8572 | 12403 | echo "configure:12404: checking size of short" >&5 |
698dcdb6 VZ |
12404 | if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then |
12405 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1e487827 | 12406 | else |
1e487827 | 12407 | if test "$cross_compiling" = yes; then |
698dcdb6 | 12408 | ac_cv_sizeof_short=2 |
1e487827 | 12409 | else |
698dcdb6 | 12410 | cat > conftest.$ac_ext <<EOF |
edae8572 | 12411 | #line 12412 "configure" |
1e487827 | 12412 | #include "confdefs.h" |
698dcdb6 VZ |
12413 | #include <stdio.h> |
12414 | main() | |
1e487827 | 12415 | { |
698dcdb6 VZ |
12416 | FILE *f=fopen("conftestval", "w"); |
12417 | if (!f) exit(1); | |
12418 | fprintf(f, "%d\n", sizeof(short)); | |
12419 | exit(0); | |
1e487827 | 12420 | } |
698dcdb6 | 12421 | EOF |
edae8572 | 12422 | if { (eval echo configure:12423: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
698dcdb6 VZ |
12423 | then |
12424 | ac_cv_sizeof_short=`cat conftestval` | |
1e487827 | 12425 | else |
698dcdb6 VZ |
12426 | echo "configure: failed program was:" >&5 |
12427 | cat conftest.$ac_ext >&5 | |
12428 | rm -fr conftest* | |
12429 | ac_cv_sizeof_short=0 | |
1e487827 | 12430 | fi |
698dcdb6 | 12431 | rm -fr conftest* |
1e487827 | 12432 | fi |
698dcdb6 | 12433 | |
1e487827 | 12434 | fi |
698dcdb6 VZ |
12435 | echo "$ac_t""$ac_cv_sizeof_short" 1>&6 |
12436 | cat >> confdefs.h <<EOF | |
12437 | #define SIZEOF_SHORT $ac_cv_sizeof_short | |
12438 | EOF | |
12439 | ||
12440 | ||
12441 | echo $ac_n "checking size of int *""... $ac_c" 1>&6 | |
edae8572 | 12442 | echo "configure:12443: checking size of int *" >&5 |
698dcdb6 VZ |
12443 | if eval "test \"`echo '$''{'ac_cv_sizeof_int_p'+set}'`\" = set"; then |
12444 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a VZ |
12445 | else |
12446 | if test "$cross_compiling" = yes; then | |
698dcdb6 | 12447 | ac_cv_sizeof_int_p=4 |
10f2d63a | 12448 | else |
698dcdb6 | 12449 | cat > conftest.$ac_ext <<EOF |
edae8572 | 12450 | #line 12451 "configure" |
10f2d63a | 12451 | #include "confdefs.h" |
698dcdb6 VZ |
12452 | #include <stdio.h> |
12453 | main() | |
10f2d63a | 12454 | { |
698dcdb6 VZ |
12455 | FILE *f=fopen("conftestval", "w"); |
12456 | if (!f) exit(1); | |
12457 | fprintf(f, "%d\n", sizeof(int *)); | |
12458 | exit(0); | |
10f2d63a | 12459 | } |
698dcdb6 | 12460 | EOF |
edae8572 | 12461 | if { (eval echo configure:12462: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
698dcdb6 VZ |
12462 | then |
12463 | ac_cv_sizeof_int_p=`cat conftestval` | |
10f2d63a | 12464 | else |
698dcdb6 VZ |
12465 | echo "configure: failed program was:" >&5 |
12466 | cat conftest.$ac_ext >&5 | |
12467 | rm -fr conftest* | |
12468 | ac_cv_sizeof_int_p=0 | |
6232543b | 12469 | fi |
698dcdb6 | 12470 | rm -fr conftest* |
1e487827 | 12471 | fi |
698dcdb6 | 12472 | |
1e487827 | 12473 | fi |
698dcdb6 VZ |
12474 | echo "$ac_t""$ac_cv_sizeof_int_p" 1>&6 |
12475 | cat >> confdefs.h <<EOF | |
12476 | #define SIZEOF_INT_P $ac_cv_sizeof_int_p | |
10f2d63a VZ |
12477 | EOF |
12478 | ||
698dcdb6 VZ |
12479 | |
12480 | echo $ac_n "checking size of int""... $ac_c" 1>&6 | |
edae8572 | 12481 | echo "configure:12482: checking size of int" >&5 |
698dcdb6 VZ |
12482 | if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then |
12483 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a VZ |
12484 | else |
12485 | if test "$cross_compiling" = yes; then | |
698dcdb6 | 12486 | ac_cv_sizeof_int=4 |
703e0a69 | 12487 | else |
698dcdb6 | 12488 | cat > conftest.$ac_ext <<EOF |
edae8572 | 12489 | #line 12490 "configure" |
1e487827 | 12490 | #include "confdefs.h" |
698dcdb6 VZ |
12491 | #include <stdio.h> |
12492 | main() | |
1e487827 | 12493 | { |
698dcdb6 VZ |
12494 | FILE *f=fopen("conftestval", "w"); |
12495 | if (!f) exit(1); | |
12496 | fprintf(f, "%d\n", sizeof(int)); | |
12497 | exit(0); | |
1e487827 | 12498 | } |
698dcdb6 | 12499 | EOF |
edae8572 | 12500 | if { (eval echo configure:12501: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
698dcdb6 VZ |
12501 | then |
12502 | ac_cv_sizeof_int=`cat conftestval` | |
12503 | else | |
12504 | echo "configure: failed program was:" >&5 | |
12505 | cat conftest.$ac_ext >&5 | |
12506 | rm -fr conftest* | |
12507 | ac_cv_sizeof_int=0 | |
703e0a69 | 12508 | fi |
698dcdb6 VZ |
12509 | rm -fr conftest* |
12510 | fi | |
12511 | ||
12512 | fi | |
12513 | echo "$ac_t""$ac_cv_sizeof_int" 1>&6 | |
12514 | cat >> confdefs.h <<EOF | |
12515 | #define SIZEOF_INT $ac_cv_sizeof_int | |
12516 | EOF | |
12517 | ||
12518 | ||
12519 | echo $ac_n "checking size of long""... $ac_c" 1>&6 | |
edae8572 | 12520 | echo "configure:12521: checking size of long" >&5 |
698dcdb6 VZ |
12521 | if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then |
12522 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a VZ |
12523 | else |
12524 | if test "$cross_compiling" = yes; then | |
698dcdb6 | 12525 | ac_cv_sizeof_long=4 |
10f2d63a | 12526 | else |
698dcdb6 | 12527 | cat > conftest.$ac_ext <<EOF |
edae8572 | 12528 | #line 12529 "configure" |
10f2d63a | 12529 | #include "confdefs.h" |
698dcdb6 VZ |
12530 | #include <stdio.h> |
12531 | main() | |
10f2d63a | 12532 | { |
698dcdb6 VZ |
12533 | FILE *f=fopen("conftestval", "w"); |
12534 | if (!f) exit(1); | |
12535 | fprintf(f, "%d\n", sizeof(long)); | |
12536 | exit(0); | |
10f2d63a | 12537 | } |
698dcdb6 | 12538 | EOF |
edae8572 | 12539 | if { (eval echo configure:12540: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
698dcdb6 VZ |
12540 | then |
12541 | ac_cv_sizeof_long=`cat conftestval` | |
10f2d63a | 12542 | else |
698dcdb6 VZ |
12543 | echo "configure: failed program was:" >&5 |
12544 | cat conftest.$ac_ext >&5 | |
12545 | rm -fr conftest* | |
12546 | ac_cv_sizeof_long=0 | |
10f2d63a | 12547 | fi |
698dcdb6 | 12548 | rm -fr conftest* |
10f2d63a | 12549 | fi |
698dcdb6 | 12550 | |
10f2d63a | 12551 | fi |
698dcdb6 VZ |
12552 | echo "$ac_t""$ac_cv_sizeof_long" 1>&6 |
12553 | cat >> confdefs.h <<EOF | |
12554 | #define SIZEOF_LONG $ac_cv_sizeof_long | |
12555 | EOF | |
12556 | ||
12557 | ||
12558 | echo $ac_n "checking size of long long""... $ac_c" 1>&6 | |
edae8572 | 12559 | echo "configure:12560: checking size of long long" >&5 |
698dcdb6 VZ |
12560 | if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then |
12561 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12562 | else | |
12563 | if test "$cross_compiling" = yes; then | |
12564 | ac_cv_sizeof_long_long=0 | |
12565 | else | |
12566 | cat > conftest.$ac_ext <<EOF | |
edae8572 | 12567 | #line 12568 "configure" |
698dcdb6 VZ |
12568 | #include "confdefs.h" |
12569 | #include <stdio.h> | |
12570 | main() | |
12571 | { | |
12572 | FILE *f=fopen("conftestval", "w"); | |
12573 | if (!f) exit(1); | |
12574 | fprintf(f, "%d\n", sizeof(long long)); | |
12575 | exit(0); | |
12576 | } | |
12577 | EOF | |
edae8572 | 12578 | if { (eval echo configure:12579: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
698dcdb6 VZ |
12579 | then |
12580 | ac_cv_sizeof_long_long=`cat conftestval` | |
6232543b | 12581 | else |
698dcdb6 VZ |
12582 | echo "configure: failed program was:" >&5 |
12583 | cat conftest.$ac_ext >&5 | |
12584 | rm -fr conftest* | |
6232543b VS |
12585 | ac_cv_sizeof_long_long=0 |
12586 | fi | |
698dcdb6 VZ |
12587 | rm -fr conftest* |
12588 | fi | |
12589 | ||
703e0a69 | 12590 | fi |
698dcdb6 VZ |
12591 | echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6 |
12592 | cat >> confdefs.h <<EOF | |
10f2d63a VZ |
12593 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long |
12594 | EOF | |
12595 | ||
1e487827 | 12596 | |
698dcdb6 VZ |
12597 | |
12598 | echo $ac_n "checking size of wchar_t""... $ac_c" 1>&6 | |
edae8572 | 12599 | echo "configure:12600: checking size of wchar_t" >&5 |
698dcdb6 VZ |
12600 | if eval "test \"`echo '$''{'wx_cv_sizeof_wchar_t'+set}'`\" = set"; then |
12601 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12602 | else | |
12603 | ||
b93d0d08 VS |
12604 | if test "$cross_compiling" = yes; then |
12605 | wx_cv_sizeof_wchar_t=4 | |
1e6feb95 | 12606 | |
b93d0d08 | 12607 | else |
698dcdb6 | 12608 | cat > conftest.$ac_ext <<EOF |
edae8572 | 12609 | #line 12610 "configure" |
b93d0d08 VS |
12610 | #include "confdefs.h" |
12611 | ||
1e6feb95 VZ |
12612 | #ifdef HAVE_WCHAR_H |
12613 | # include <wchar.h> | |
12614 | #endif | |
12615 | #ifdef HAVE_STDLIB_H | |
12616 | # include <stdlib.h> | |
12617 | #endif | |
12618 | #include <stdio.h> | |
12619 | int main() | |
12620 | { | |
12621 | FILE *f=fopen("conftestval", "w"); | |
12622 | if (!f) exit(1); | |
12623 | fprintf(f, "%i", sizeof(wchar_t)); | |
12624 | exit(0); | |
12625 | } | |
698dcdb6 VZ |
12626 | |
12627 | EOF | |
edae8572 | 12628 | if { (eval echo configure:12629: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
698dcdb6 | 12629 | then |
b93d0d08 VS |
12630 | wx_cv_sizeof_wchar_t=`cat conftestval` |
12631 | else | |
698dcdb6 VZ |
12632 | echo "configure: failed program was:" >&5 |
12633 | cat conftest.$ac_ext >&5 | |
12634 | rm -fr conftest* | |
12635 | wx_cv_sizeof_wchar_t=0 | |
b93d0d08 | 12636 | fi |
698dcdb6 | 12637 | rm -fr conftest* |
b93d0d08 VS |
12638 | fi |
12639 | ||
698dcdb6 | 12640 | |
b93d0d08 VS |
12641 | fi |
12642 | ||
698dcdb6 VZ |
12643 | echo "$ac_t""$wx_cv_sizeof_wchar_t" 1>&6 |
12644 | ||
12645 | cat >> confdefs.h <<EOF | |
28c6addc | 12646 | #define SIZEOF_WCHAR_T $wx_cv_sizeof_wchar_t |
b93d0d08 VS |
12647 | EOF |
12648 | ||
698dcdb6 | 12649 | |
698dcdb6 | 12650 | echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6 |
edae8572 | 12651 | echo "configure:12652: checking whether byte ordering is bigendian" >&5 |
698dcdb6 VZ |
12652 | if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then |
12653 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a VZ |
12654 | else |
12655 | ac_cv_c_bigendian=unknown | |
12656 | # See if sys/param.h defines the BYTE_ORDER macro. | |
698dcdb6 | 12657 | cat > conftest.$ac_ext <<EOF |
edae8572 | 12658 | #line 12659 "configure" |
10f2d63a VZ |
12659 | #include "confdefs.h" |
12660 | #include <sys/types.h> | |
12661 | #include <sys/param.h> | |
698dcdb6 | 12662 | int main() { |
10f2d63a VZ |
12663 | |
12664 | #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN | |
12665 | bogus endian macros | |
12666 | #endif | |
698dcdb6 VZ |
12667 | ; return 0; } |
12668 | EOF | |
edae8572 | 12669 | if { (eval echo configure:12670: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 | 12670 | rm -rf conftest* |
10f2d63a | 12671 | # It does; now see whether it defined to BIG_ENDIAN or not. |
698dcdb6 | 12672 | cat > conftest.$ac_ext <<EOF |
edae8572 | 12673 | #line 12674 "configure" |
10f2d63a VZ |
12674 | #include "confdefs.h" |
12675 | #include <sys/types.h> | |
12676 | #include <sys/param.h> | |
698dcdb6 | 12677 | int main() { |
10f2d63a VZ |
12678 | |
12679 | #if BYTE_ORDER != BIG_ENDIAN | |
12680 | not big endian | |
12681 | #endif | |
698dcdb6 VZ |
12682 | ; return 0; } |
12683 | EOF | |
edae8572 | 12684 | if { (eval echo configure:12685: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 | 12685 | rm -rf conftest* |
10f2d63a VZ |
12686 | ac_cv_c_bigendian=yes |
12687 | else | |
698dcdb6 VZ |
12688 | echo "configure: failed program was:" >&5 |
12689 | cat conftest.$ac_ext >&5 | |
12690 | rm -rf conftest* | |
12691 | ac_cv_c_bigendian=no | |
10f2d63a | 12692 | fi |
698dcdb6 | 12693 | rm -f conftest* |
10f2d63a | 12694 | else |
698dcdb6 VZ |
12695 | echo "configure: failed program was:" >&5 |
12696 | cat conftest.$ac_ext >&5 | |
10f2d63a | 12697 | fi |
698dcdb6 | 12698 | rm -f conftest* |
10f2d63a VZ |
12699 | if test $ac_cv_c_bigendian = unknown; then |
12700 | if test "$cross_compiling" = yes; then | |
12701 | ac_cv_c_bigendian=unknown | |
12702 | else | |
698dcdb6 | 12703 | cat > conftest.$ac_ext <<EOF |
edae8572 | 12704 | #line 12705 "configure" |
10f2d63a VZ |
12705 | #include "confdefs.h" |
12706 | main () { | |
12707 | /* Are we little or big endian? From Harbison&Steele. */ | |
12708 | union | |
12709 | { | |
12710 | long l; | |
12711 | char c[sizeof (long)]; | |
12712 | } u; | |
12713 | u.l = 1; | |
12714 | exit (u.c[sizeof (long) - 1] == 1); | |
12715 | } | |
698dcdb6 | 12716 | EOF |
edae8572 | 12717 | if { (eval echo configure:12718: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
698dcdb6 | 12718 | then |
10f2d63a VZ |
12719 | ac_cv_c_bigendian=no |
12720 | else | |
698dcdb6 VZ |
12721 | echo "configure: failed program was:" >&5 |
12722 | cat conftest.$ac_ext >&5 | |
12723 | rm -fr conftest* | |
12724 | ac_cv_c_bigendian=yes | |
10f2d63a | 12725 | fi |
698dcdb6 | 12726 | rm -fr conftest* |
10f2d63a | 12727 | fi |
698dcdb6 | 12728 | |
10f2d63a VZ |
12729 | fi |
12730 | fi | |
698dcdb6 VZ |
12731 | |
12732 | echo "$ac_t""$ac_cv_c_bigendian" 1>&6 | |
10f2d63a | 12733 | if test $ac_cv_c_bigendian = unknown; then |
698dcdb6 | 12734 | 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 |
10f2d63a VZ |
12735 | fi |
12736 | if test $ac_cv_c_bigendian = yes; then | |
698dcdb6 | 12737 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
12738 | #define WORDS_BIGENDIAN 1 |
12739 | EOF | |
12740 | ||
12741 | fi | |
12742 | ||
698dcdb6 | 12743 | |
3a922bb4 | 12744 | echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6 |
edae8572 | 12745 | echo "configure:12746: checking how to run the C++ preprocessor" >&5 |
3a922bb4 RL |
12746 | if test -z "$CXXCPP"; then |
12747 | if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then | |
12748 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12749 | else | |
12750 | ac_ext=C | |
12751 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
12752 | ac_cpp='$CXXCPP $CPPFLAGS' | |
12753 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
12754 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
12755 | cross_compiling=$ac_cv_prog_cxx_cross | |
12756 | CXXCPP="${CXX-g++} -E" | |
12757 | cat > conftest.$ac_ext <<EOF | |
edae8572 | 12758 | #line 12759 "configure" |
3a922bb4 RL |
12759 | #include "confdefs.h" |
12760 | #include <stdlib.h> | |
12761 | EOF | |
12762 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
edae8572 | 12763 | { (eval echo configure:12764: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
3a922bb4 RL |
12764 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
12765 | if test -z "$ac_err"; then | |
12766 | : | |
12767 | else | |
12768 | echo "$ac_err" >&5 | |
12769 | echo "configure: failed program was:" >&5 | |
12770 | cat conftest.$ac_ext >&5 | |
12771 | rm -rf conftest* | |
12772 | CXXCPP=/lib/cpp | |
12773 | fi | |
12774 | rm -f conftest* | |
12775 | ac_cv_prog_CXXCPP="$CXXCPP" | |
12776 | ac_ext=C | |
12777 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
12778 | ac_cpp='$CXXCPP $CPPFLAGS' | |
12779 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
12780 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
12781 | cross_compiling=$ac_cv_prog_cxx_cross | |
12782 | fi | |
12783 | fi | |
12784 | CXXCPP="$ac_cv_prog_CXXCPP" | |
12785 | echo "$ac_t""$CXXCPP" 1>&6 | |
12786 | ||
698dcdb6 | 12787 | |
10f2d63a | 12788 | if test "$cross_compiling" = "yes"; then |
698dcdb6 | 12789 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
12790 | #define wxUSE_IOSTREAMH 1 |
12791 | EOF | |
12792 | ||
12793 | else | |
698dcdb6 VZ |
12794 | |
12795 | ac_ext=C | |
12796 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
1e487827 | 12797 | ac_cpp='$CXXCPP $CPPFLAGS' |
698dcdb6 VZ |
12798 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
12799 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
12800 | cross_compiling=$ac_cv_prog_cxx_cross | |
12801 | ||
703e0a69 | 12802 | |
698dcdb6 | 12803 | for ac_hdr in iostream |
10f2d63a | 12804 | do |
698dcdb6 VZ |
12805 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
12806 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
edae8572 | 12807 | echo "configure:12808: checking for $ac_hdr" >&5 |
698dcdb6 VZ |
12808 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
12809 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12810 | else | |
12811 | cat > conftest.$ac_ext <<EOF | |
edae8572 | 12812 | #line 12813 "configure" |
10f2d63a | 12813 | #include "confdefs.h" |
698dcdb6 VZ |
12814 | #include <$ac_hdr> |
12815 | EOF | |
12816 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
edae8572 | 12817 | { (eval echo configure:12818: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
12818 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
12819 | if test -z "$ac_err"; then | |
12820 | rm -rf conftest* | |
12821 | eval "ac_cv_header_$ac_safe=yes" | |
10f2d63a | 12822 | else |
698dcdb6 VZ |
12823 | echo "$ac_err" >&5 |
12824 | echo "configure: failed program was:" >&5 | |
10f2d63a | 12825 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
12826 | rm -rf conftest* |
12827 | eval "ac_cv_header_$ac_safe=no" | |
10f2d63a | 12828 | fi |
698dcdb6 | 12829 | rm -f conftest* |
10f2d63a | 12830 | fi |
698dcdb6 VZ |
12831 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
12832 | echo "$ac_t""yes" 1>&6 | |
12833 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
12834 | cat >> confdefs.h <<EOF | |
12835 | #define $ac_tr_hdr 1 | |
10f2d63a | 12836 | EOF |
698dcdb6 VZ |
12837 | |
12838 | else | |
12839 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
12840 | fi |
12841 | done | |
12842 | ||
698dcdb6 | 12843 | |
57fe5ed0 VZ |
12844 | if test "$ac_cv_header_iostream" = "yes" ; then |
12845 | : | |
12846 | else | |
698dcdb6 | 12847 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
12848 | #define wxUSE_IOSTREAMH 1 |
12849 | EOF | |
12850 | ||
10f2d63a VZ |
12851 | fi |
12852 | ||
12853 | ac_ext=c | |
698dcdb6 | 12854 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
10f2d63a | 12855 | ac_cpp='$CPP $CPPFLAGS' |
698dcdb6 VZ |
12856 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
12857 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
12858 | cross_compiling=$ac_cv_prog_cc_cross | |
10f2d63a VZ |
12859 | |
12860 | fi | |
12861 | ||
703e0a69 | 12862 | |
698dcdb6 VZ |
12863 | |
12864 | echo $ac_n "checking if C++ compiler supports bool""... $ac_c" 1>&6 | |
edae8572 | 12865 | echo "configure:12866: checking if C++ compiler supports bool" >&5 |
698dcdb6 VZ |
12866 | if eval "test \"`echo '$''{'wx_cv_cpp_bool'+set}'`\" = set"; then |
12867 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12868 | else | |
12869 | ||
12870 | ||
12871 | ac_ext=C | |
12872 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
1e487827 | 12873 | ac_cpp='$CXXCPP $CPPFLAGS' |
698dcdb6 VZ |
12874 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
12875 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
12876 | cross_compiling=$ac_cv_prog_cxx_cross | |
10f2d63a | 12877 | |
698dcdb6 VZ |
12878 | |
12879 | cat > conftest.$ac_ext <<EOF | |
edae8572 | 12880 | #line 12881 "configure" |
10f2d63a VZ |
12881 | #include "confdefs.h" |
12882 | ||
698dcdb6 VZ |
12883 | |
12884 | int main() { | |
10f2d63a VZ |
12885 | |
12886 | bool b = true; | |
12887 | ||
12888 | return 0; | |
698dcdb6 VZ |
12889 | |
12890 | ; return 0; } | |
12891 | EOF | |
edae8572 | 12892 | if { (eval echo configure:12893: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 VZ |
12893 | rm -rf conftest* |
12894 | ||
10f2d63a | 12895 | wx_cv_cpp_bool=yes |
698dcdb6 | 12896 | |
10f2d63a | 12897 | else |
698dcdb6 VZ |
12898 | echo "configure: failed program was:" >&5 |
12899 | cat conftest.$ac_ext >&5 | |
12900 | rm -rf conftest* | |
12901 | ||
10f2d63a | 12902 | wx_cv_cpp_bool=no |
698dcdb6 VZ |
12903 | |
12904 | ||
10f2d63a | 12905 | fi |
698dcdb6 | 12906 | rm -f conftest* |
10f2d63a VZ |
12907 | |
12908 | ac_ext=c | |
698dcdb6 | 12909 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
10f2d63a | 12910 | ac_cpp='$CPP $CPPFLAGS' |
698dcdb6 VZ |
12911 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
12912 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
12913 | cross_compiling=$ac_cv_prog_cc_cross | |
10f2d63a | 12914 | |
698dcdb6 | 12915 | |
10f2d63a | 12916 | fi |
698dcdb6 VZ |
12917 | |
12918 | echo "$ac_t""$wx_cv_cpp_bool" 1>&6 | |
10f2d63a VZ |
12919 | |
12920 | if test "$wx_cv_cpp_bool" = "yes"; then | |
698dcdb6 | 12921 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
12922 | #define HAVE_BOOL 1 |
12923 | EOF | |
12924 | ||
12925 | fi | |
12926 | ||
1e487827 | 12927 | |
698dcdb6 | 12928 | |
698dcdb6 | 12929 | echo $ac_n "checking for wcslen in -lc""... $ac_c" 1>&6 |
edae8572 | 12930 | echo "configure:12931: checking for wcslen in -lc" >&5 |
698dcdb6 VZ |
12931 | ac_lib_var=`echo c'_'wcslen | sed 'y%./+-%__p_%'` |
12932 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
12933 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 12934 | else |
698dcdb6 | 12935 | ac_save_LIBS="$LIBS" |
10f2d63a | 12936 | LIBS="-lc $LIBS" |
698dcdb6 | 12937 | cat > conftest.$ac_ext <<EOF |
edae8572 | 12938 | #line 12939 "configure" |
10f2d63a VZ |
12939 | #include "confdefs.h" |
12940 | /* Override any gcc2 internal prototype to avoid an error. */ | |
12941 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
12942 | builtin and then its argument prototype would still apply. */ |
12943 | char wcslen(); | |
12944 | ||
12945 | int main() { | |
12946 | wcslen() | |
12947 | ; return 0; } | |
12948 | EOF | |
edae8572 | 12949 | if { (eval echo configure:12950: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
12950 | rm -rf conftest* |
12951 | eval "ac_cv_lib_$ac_lib_var=yes" | |
12952 | else | |
12953 | echo "configure: failed program was:" >&5 | |
12954 | cat conftest.$ac_ext >&5 | |
12955 | rm -rf conftest* | |
12956 | eval "ac_cv_lib_$ac_lib_var=no" | |
12957 | fi | |
12958 | rm -f conftest* | |
12959 | LIBS="$ac_save_LIBS" | |
12960 | ||
12961 | fi | |
12962 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
12963 | echo "$ac_t""yes" 1>&6 | |
12964 | ||
12965 | cat >> confdefs.h <<\EOF | |
10f2d63a VZ |
12966 | #define HAVE_WCSLEN 1 |
12967 | EOF | |
12968 | ||
12969 | WCHAR_LINK="" | |
698dcdb6 | 12970 | |
10f2d63a | 12971 | else |
698dcdb6 | 12972 | echo "$ac_t""no" 1>&6 |
10f2d63a | 12973 | |
698dcdb6 | 12974 | echo $ac_n "checking for wcslen in -lw""... $ac_c" 1>&6 |
edae8572 | 12975 | echo "configure:12976: checking for wcslen in -lw" >&5 |
698dcdb6 VZ |
12976 | ac_lib_var=`echo w'_'wcslen | sed 'y%./+-%__p_%'` |
12977 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
12978 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 12979 | else |
698dcdb6 | 12980 | ac_save_LIBS="$LIBS" |
10f2d63a | 12981 | LIBS="-lw $LIBS" |
698dcdb6 | 12982 | cat > conftest.$ac_ext <<EOF |
edae8572 | 12983 | #line 12984 "configure" |
10f2d63a VZ |
12984 | #include "confdefs.h" |
12985 | /* Override any gcc2 internal prototype to avoid an error. */ | |
12986 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
12987 | builtin and then its argument prototype would still apply. */ |
12988 | char wcslen(); | |
12989 | ||
12990 | int main() { | |
12991 | wcslen() | |
12992 | ; return 0; } | |
12993 | EOF | |
edae8572 | 12994 | if { (eval echo configure:12995: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
12995 | rm -rf conftest* |
12996 | eval "ac_cv_lib_$ac_lib_var=yes" | |
12997 | else | |
12998 | echo "configure: failed program was:" >&5 | |
12999 | cat conftest.$ac_ext >&5 | |
13000 | rm -rf conftest* | |
13001 | eval "ac_cv_lib_$ac_lib_var=no" | |
13002 | fi | |
13003 | rm -f conftest* | |
13004 | LIBS="$ac_save_LIBS" | |
13005 | ||
13006 | fi | |
13007 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
13008 | echo "$ac_t""yes" 1>&6 | |
13009 | ||
13010 | cat >> confdefs.h <<\EOF | |
10f2d63a VZ |
13011 | #define HAVE_WCSLEN 1 |
13012 | EOF | |
13013 | ||
13014 | WCHAR_LINK="-lw" | |
698dcdb6 | 13015 | |
18dbb1f6 VZ |
13016 | else |
13017 | echo "$ac_t""no" 1>&6 | |
13018 | ||
13019 | echo $ac_n "checking for wcslen in -lmsvcrt""... $ac_c" 1>&6 | |
edae8572 | 13020 | echo "configure:13021: checking for wcslen in -lmsvcrt" >&5 |
18dbb1f6 VZ |
13021 | ac_lib_var=`echo msvcrt'_'wcslen | sed 'y%./+-%__p_%'` |
13022 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
13023 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13024 | else | |
13025 | ac_save_LIBS="$LIBS" | |
13026 | LIBS="-lmsvcrt $LIBS" | |
13027 | cat > conftest.$ac_ext <<EOF | |
edae8572 | 13028 | #line 13029 "configure" |
18dbb1f6 VZ |
13029 | #include "confdefs.h" |
13030 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13031 | /* We use char because int might match the return type of a gcc2 | |
13032 | builtin and then its argument prototype would still apply. */ | |
13033 | char wcslen(); | |
13034 | ||
13035 | int main() { | |
13036 | wcslen() | |
13037 | ; return 0; } | |
13038 | EOF | |
edae8572 | 13039 | if { (eval echo configure:13040: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
18dbb1f6 VZ |
13040 | rm -rf conftest* |
13041 | eval "ac_cv_lib_$ac_lib_var=yes" | |
13042 | else | |
13043 | echo "configure: failed program was:" >&5 | |
13044 | cat conftest.$ac_ext >&5 | |
13045 | rm -rf conftest* | |
13046 | eval "ac_cv_lib_$ac_lib_var=no" | |
13047 | fi | |
13048 | rm -f conftest* | |
13049 | LIBS="$ac_save_LIBS" | |
13050 | ||
13051 | fi | |
13052 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
13053 | echo "$ac_t""yes" 1>&6 | |
13054 | ||
13055 | cat >> confdefs.h <<\EOF | |
13056 | #define HAVE_WCSLEN 1 | |
13057 | EOF | |
13058 | ||
13059 | WCHAR_LINK="" | |
13060 | ||
698dcdb6 VZ |
13061 | else |
13062 | echo "$ac_t""no" 1>&6 | |
6232543b | 13063 | fi |
10f2d63a | 13064 | |
18dbb1f6 VZ |
13065 | |
13066 | fi | |
13067 | ||
698dcdb6 | 13068 | |
1e487827 | 13069 | fi |
703e0a69 | 13070 | |
698dcdb6 | 13071 | |
b3e8d00a VZ |
13072 | for ac_func in wcsrtombs |
13073 | do | |
13074 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
edae8572 | 13075 | echo "configure:13076: checking for $ac_func" >&5 |
b3e8d00a VZ |
13076 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
13077 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13078 | else | |
13079 | cat > conftest.$ac_ext <<EOF | |
edae8572 | 13080 | #line 13081 "configure" |
b3e8d00a VZ |
13081 | #include "confdefs.h" |
13082 | /* System header to define __stub macros and hopefully few prototypes, | |
13083 | which can conflict with char $ac_func(); below. */ | |
13084 | #include <assert.h> | |
13085 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13086 | /* We use char because int might match the return type of a gcc2 | |
13087 | builtin and then its argument prototype would still apply. */ | |
13088 | char $ac_func(); | |
13089 | ||
13090 | int main() { | |
13091 | ||
13092 | /* The GNU C library defines this for functions which it implements | |
13093 | to always fail with ENOSYS. Some functions are actually named | |
13094 | something starting with __ and the normal name is an alias. */ | |
13095 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
13096 | choke me | |
13097 | #else | |
13098 | $ac_func(); | |
13099 | #endif | |
13100 | ||
13101 | ; return 0; } | |
13102 | EOF | |
edae8572 | 13103 | if { (eval echo configure:13104: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
b3e8d00a VZ |
13104 | rm -rf conftest* |
13105 | eval "ac_cv_func_$ac_func=yes" | |
13106 | else | |
13107 | echo "configure: failed program was:" >&5 | |
13108 | cat conftest.$ac_ext >&5 | |
13109 | rm -rf conftest* | |
13110 | eval "ac_cv_func_$ac_func=no" | |
13111 | fi | |
13112 | rm -f conftest* | |
13113 | fi | |
13114 | ||
13115 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
13116 | echo "$ac_t""yes" 1>&6 | |
13117 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
13118 | cat >> confdefs.h <<EOF | |
13119 | #define $ac_tr_func 1 | |
13120 | EOF | |
13121 | ||
13122 | else | |
13123 | echo "$ac_t""no" 1>&6 | |
13124 | fi | |
13125 | done | |
13126 | ||
13127 | ||
698dcdb6 | 13128 | echo $ac_n "checking for vprintf""... $ac_c" 1>&6 |
edae8572 | 13129 | echo "configure:13130: checking for vprintf" >&5 |
698dcdb6 VZ |
13130 | if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then |
13131 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13132 | else | |
13133 | cat > conftest.$ac_ext <<EOF | |
edae8572 | 13134 | #line 13135 "configure" |
10f2d63a VZ |
13135 | #include "confdefs.h" |
13136 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 13137 | which can conflict with char vprintf(); below. */ |
10f2d63a VZ |
13138 | #include <assert.h> |
13139 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13140 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
13141 | builtin and then its argument prototype would still apply. */ |
13142 | char vprintf(); | |
13143 | ||
13144 | int main() { | |
10f2d63a VZ |
13145 | |
13146 | /* The GNU C library defines this for functions which it implements | |
13147 | to always fail with ENOSYS. Some functions are actually named | |
13148 | something starting with __ and the normal name is an alias. */ | |
698dcdb6 | 13149 | #if defined (__stub_vprintf) || defined (__stub___vprintf) |
10f2d63a VZ |
13150 | choke me |
13151 | #else | |
698dcdb6 | 13152 | vprintf(); |
10f2d63a VZ |
13153 | #endif |
13154 | ||
698dcdb6 VZ |
13155 | ; return 0; } |
13156 | EOF | |
edae8572 | 13157 | if { (eval echo configure:13158: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
13158 | rm -rf conftest* |
13159 | eval "ac_cv_func_vprintf=yes" | |
13160 | else | |
13161 | echo "configure: failed program was:" >&5 | |
13162 | cat conftest.$ac_ext >&5 | |
13163 | rm -rf conftest* | |
13164 | eval "ac_cv_func_vprintf=no" | |
13165 | fi | |
13166 | rm -f conftest* | |
13167 | fi | |
13168 | ||
13169 | if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then | |
13170 | echo "$ac_t""yes" 1>&6 | |
13171 | cat >> confdefs.h <<\EOF | |
13172 | #define HAVE_VPRINTF 1 | |
13173 | EOF | |
13174 | ||
13175 | else | |
13176 | echo "$ac_t""no" 1>&6 | |
13177 | fi | |
13178 | ||
13179 | if test "$ac_cv_func_vprintf" != yes; then | |
13180 | echo $ac_n "checking for _doprnt""... $ac_c" 1>&6 | |
edae8572 | 13181 | echo "configure:13182: checking for _doprnt" >&5 |
698dcdb6 VZ |
13182 | if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then |
13183 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13184 | else | |
13185 | cat > conftest.$ac_ext <<EOF | |
edae8572 | 13186 | #line 13187 "configure" |
10f2d63a VZ |
13187 | #include "confdefs.h" |
13188 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 13189 | which can conflict with char _doprnt(); below. */ |
10f2d63a VZ |
13190 | #include <assert.h> |
13191 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13192 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
13193 | builtin and then its argument prototype would still apply. */ |
13194 | char _doprnt(); | |
13195 | ||
13196 | int main() { | |
10f2d63a VZ |
13197 | |
13198 | /* The GNU C library defines this for functions which it implements | |
13199 | to always fail with ENOSYS. Some functions are actually named | |
13200 | something starting with __ and the normal name is an alias. */ | |
13201 | #if defined (__stub__doprnt) || defined (__stub____doprnt) | |
13202 | choke me | |
13203 | #else | |
698dcdb6 | 13204 | _doprnt(); |
10f2d63a VZ |
13205 | #endif |
13206 | ||
698dcdb6 VZ |
13207 | ; return 0; } |
13208 | EOF | |
edae8572 | 13209 | if { (eval echo configure:13210: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
13210 | rm -rf conftest* |
13211 | eval "ac_cv_func__doprnt=yes" | |
13212 | else | |
13213 | echo "configure: failed program was:" >&5 | |
13214 | cat conftest.$ac_ext >&5 | |
13215 | rm -rf conftest* | |
13216 | eval "ac_cv_func__doprnt=no" | |
13217 | fi | |
13218 | rm -f conftest* | |
13219 | fi | |
13220 | ||
13221 | if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then | |
13222 | echo "$ac_t""yes" 1>&6 | |
13223 | cat >> confdefs.h <<\EOF | |
10f2d63a VZ |
13224 | #define HAVE_DOPRNT 1 |
13225 | EOF | |
13226 | ||
698dcdb6 VZ |
13227 | else |
13228 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
13229 | fi |
13230 | ||
13231 | fi | |
13232 | ||
1e487827 | 13233 | |
698dcdb6 VZ |
13234 | |
13235 | ||
13236 | ||
13237 | ||
698dcdb6 | 13238 | echo $ac_n "checking for vsnprintf""... $ac_c" 1>&6 |
edae8572 | 13239 | echo "configure:13240: checking for vsnprintf" >&5 |
698dcdb6 VZ |
13240 | if eval "test \"`echo '$''{'wx_cv_func_vsnprintf'+set}'`\" = set"; then |
13241 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13242 | else | |
13243 | ||
13244 | cat > conftest.$ac_ext <<EOF | |
edae8572 | 13245 | #line 13246 "configure" |
f6bcfd97 BP |
13246 | #include "confdefs.h" |
13247 | ||
13248 | #include <stdio.h> | |
698dcdb6 VZ |
13249 | #include <stdarg.h> |
13250 | ||
13251 | int main() { | |
10f2d63a | 13252 | |
f6bcfd97 | 13253 | int wx_test_vsnprintf(const char *, ...); |
10f2d63a | 13254 | |
f6bcfd97 BP |
13255 | wx_test_vsnprintf("%s"); |
13256 | return 0; | |
13257 | } | |
13258 | ||
13259 | int wx_test_vsnprintf(const char *fmt, ...) | |
13260 | { | |
13261 | char *s; | |
13262 | ||
13263 | va_list argp; | |
13264 | va_start(argp, fmt); | |
13265 | vsnprintf(s, 42, fmt, argp); | |
13266 | va_end(argp); | |
698dcdb6 VZ |
13267 | |
13268 | ; return 0; } | |
13269 | EOF | |
edae8572 | 13270 | if { (eval echo configure:13271: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 VZ |
13271 | rm -rf conftest* |
13272 | ||
f6bcfd97 | 13273 | wx_cv_func_vsnprintf=yes |
698dcdb6 | 13274 | |
10f2d63a | 13275 | else |
698dcdb6 VZ |
13276 | echo "configure: failed program was:" >&5 |
13277 | cat conftest.$ac_ext >&5 | |
13278 | rm -rf conftest* | |
13279 | ||
13280 | cat > conftest.$ac_ext <<EOF | |
edae8572 | 13281 | #line 13282 "configure" |
c521c494 RL |
13282 | #include "confdefs.h" |
13283 | ||
13284 | #include <stdio.h> | |
13285 | #include <stdarg.h> | |
698dcdb6 VZ |
13286 | |
13287 | int main() { | |
c521c494 RL |
13288 | |
13289 | int wx_test_vsnprintf(const char *, ...); | |
13290 | ||
13291 | wx_test_vsnprintf("%s"); | |
13292 | return 0; | |
13293 | } | |
13294 | ||
13295 | int wx_test_vsnprintf(const char *fmt, ...) | |
13296 | { | |
13297 | char *s; | |
13298 | ||
13299 | va_list argp; | |
13300 | va_start(argp, fmt); | |
13301 | _vsnprintf(s, 42, fmt, argp); | |
13302 | va_end(argp); | |
698dcdb6 VZ |
13303 | |
13304 | ; return 0; } | |
13305 | EOF | |
edae8572 | 13306 | if { (eval echo configure:13307: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 VZ |
13307 | rm -rf conftest* |
13308 | ||
c521c494 | 13309 | wx_cv_func_vsnprintf=yes |
698dcdb6 | 13310 | |
c521c494 | 13311 | else |
698dcdb6 VZ |
13312 | echo "configure: failed program was:" >&5 |
13313 | cat conftest.$ac_ext >&5 | |
13314 | rm -rf conftest* | |
13315 | ||
c521c494 | 13316 | wx_cv_func_vsnprintf=no |
698dcdb6 | 13317 | |
10f2d63a | 13318 | fi |
698dcdb6 VZ |
13319 | rm -f conftest* |
13320 | ||
6232543b | 13321 | fi |
698dcdb6 | 13322 | rm -f conftest* |
703e0a69 | 13323 | |
1e487827 | 13324 | fi |
698dcdb6 VZ |
13325 | |
13326 | echo "$ac_t""$wx_cv_func_vsnprintf" 1>&6 | |
10f2d63a | 13327 | |
9d8deca0 | 13328 | if test "$wx_cv_func_vsnprintf" = yes; then |
698dcdb6 | 13329 | cat >> confdefs.h <<\EOF |
9d8deca0 VZ |
13330 | #define HAVE_VSNPRINTF 1 |
13331 | EOF | |
13332 | ||
13333 | else | |
698dcdb6 | 13334 | echo "configure: warning: unsafe function sprintf will be used instead of snprintf" 1>&2 |
9d8deca0 VZ |
13335 | fi |
13336 | ||
698dcdb6 | 13337 | echo $ac_n "checking for vsscanf""... $ac_c" 1>&6 |
edae8572 | 13338 | echo "configure:13339: checking for vsscanf" >&5 |
698dcdb6 VZ |
13339 | if eval "test \"`echo '$''{'wx_cv_func_vsscanf'+set}'`\" = set"; then |
13340 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 13341 | else |
698dcdb6 VZ |
13342 | |
13343 | cat > conftest.$ac_ext <<EOF | |
edae8572 | 13344 | #line 13345 "configure" |
10f2d63a | 13345 | #include "confdefs.h" |
10f2d63a | 13346 | |
f6bcfd97 BP |
13347 | #include <stdio.h> |
13348 | #include <stdarg.h> | |
698dcdb6 VZ |
13349 | |
13350 | int main() { | |
10f2d63a | 13351 | |
f6bcfd97 | 13352 | int wx_test_vsscanf(const char *, ...); |
10f2d63a | 13353 | |
f6bcfd97 BP |
13354 | wx_test_vsscanf("%d"); |
13355 | return 0; | |
10f2d63a VZ |
13356 | } |
13357 | ||
f6bcfd97 | 13358 | int wx_test_vsscanf(const char *fmt, ...) |
10f2d63a | 13359 | { |
f6bcfd97 BP |
13360 | va_list argp; |
13361 | va_start(argp, fmt); | |
13362 | vsscanf("42", fmt, argp); | |
13363 | va_end(argp); | |
698dcdb6 VZ |
13364 | |
13365 | ; return 0; } | |
13366 | EOF | |
edae8572 | 13367 | if { (eval echo configure:13368: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 VZ |
13368 | rm -rf conftest* |
13369 | ||
f6bcfd97 | 13370 | wx_cv_func_vsscanf=yes |
698dcdb6 | 13371 | |
10f2d63a | 13372 | else |
698dcdb6 VZ |
13373 | echo "configure: failed program was:" >&5 |
13374 | cat conftest.$ac_ext >&5 | |
13375 | rm -rf conftest* | |
13376 | ||
f6bcfd97 | 13377 | wx_cv_func_vsscanf=no |
698dcdb6 | 13378 | |
6232543b | 13379 | fi |
698dcdb6 | 13380 | rm -f conftest* |
703e0a69 | 13381 | |
1e487827 | 13382 | fi |
698dcdb6 VZ |
13383 | |
13384 | echo "$ac_t""$wx_cv_func_vsscanf" 1>&6 | |
10f2d63a | 13385 | |
9d8deca0 | 13386 | if test "$wx_cv_func_vsscanf" = yes; then |
698dcdb6 | 13387 | cat >> confdefs.h <<\EOF |
9d8deca0 VZ |
13388 | #define HAVE_VSSCANF 1 |
13389 | EOF | |
13390 | ||
13391 | fi | |
13392 | ||
95c8801c VS |
13393 | if test "$TOOLKIT" != "MSW"; then |
13394 | ||
13395 | ||
13396 | ||
698dcdb6 VZ |
13397 | ac_ext=C |
13398 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
13399 | ac_cpp='$CXXCPP $CPPFLAGS' | |
13400 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
13401 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
13402 | cross_compiling=$ac_cv_prog_cxx_cross | |
13403 | ||
13404 | echo $ac_n "checking if iconv() takes char**""... $ac_c" 1>&6 | |
edae8572 | 13405 | echo "configure:13406: checking if iconv() takes char**" >&5 |
698dcdb6 VZ |
13406 | if eval "test \"`echo '$''{'wx_cv_iconv_takes_char'+set}'`\" = set"; then |
13407 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13408 | else | |
13409 | ||
13410 | cat > conftest.$ac_ext <<EOF | |
edae8572 | 13411 | #line 13412 "configure" |
95c8801c VS |
13412 | #include "confdefs.h" |
13413 | #include <iconv.h> | |
698dcdb6 | 13414 | int main() { |
95c8801c VS |
13415 | |
13416 | char **inbuf, **outbuf; | |
19af3b06 VZ |
13417 | iconv_t cd; |
13418 | size_t insz, outsz; | |
13419 | iconv(cd, inbuf, &insz, outbuf, &outsz); | |
698dcdb6 VZ |
13420 | |
13421 | ; return 0; } | |
13422 | EOF | |
edae8572 | 13423 | if { (eval echo configure:13424: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 | 13424 | rm -rf conftest* |
95c8801c VS |
13425 | wx_cv_iconv_takes_char=yes |
13426 | else | |
698dcdb6 VZ |
13427 | echo "configure: failed program was:" >&5 |
13428 | cat conftest.$ac_ext >&5 | |
13429 | rm -rf conftest* | |
13430 | wx_cv_iconv_takes_char=no | |
95c8801c | 13431 | fi |
698dcdb6 | 13432 | rm -f conftest* |
95c8801c VS |
13433 | |
13434 | fi | |
698dcdb6 VZ |
13435 | |
13436 | echo "$ac_t""$wx_cv_iconv_takes_char" 1>&6 | |
10f2d63a | 13437 | ac_ext=c |
698dcdb6 | 13438 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
10f2d63a | 13439 | ac_cpp='$CPP $CPPFLAGS' |
698dcdb6 VZ |
13440 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
13441 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
13442 | cross_compiling=$ac_cv_prog_cc_cross | |
10f2d63a | 13443 | |
95c8801c | 13444 | if test "$wx_cv_iconv_takes_char" = yes ; then |
698dcdb6 | 13445 | cat >> confdefs.h <<\EOF |
95c8801c VS |
13446 | #define WX_ICONV_TAKES_CHAR 1 |
13447 | EOF | |
13448 | ||
13449 | fi | |
10f2d63a | 13450 | |
1e487827 | 13451 | |
698dcdb6 VZ |
13452 | if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then |
13453 | for ac_func in sigaction | |
eb4efbdc | 13454 | do |
698dcdb6 | 13455 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
edae8572 | 13456 | echo "configure:13457: checking for $ac_func" >&5 |
698dcdb6 VZ |
13457 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
13458 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13459 | else | |
13460 | cat > conftest.$ac_ext <<EOF | |
edae8572 | 13461 | #line 13462 "configure" |
eb4efbdc VZ |
13462 | #include "confdefs.h" |
13463 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 13464 | which can conflict with char $ac_func(); below. */ |
eb4efbdc VZ |
13465 | #include <assert.h> |
13466 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13467 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
13468 | builtin and then its argument prototype would still apply. */ |
13469 | char $ac_func(); | |
13470 | ||
13471 | int main() { | |
eb4efbdc VZ |
13472 | |
13473 | /* The GNU C library defines this for functions which it implements | |
13474 | to always fail with ENOSYS. Some functions are actually named | |
13475 | something starting with __ and the normal name is an alias. */ | |
13476 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
13477 | choke me | |
13478 | #else | |
698dcdb6 | 13479 | $ac_func(); |
eb4efbdc VZ |
13480 | #endif |
13481 | ||
698dcdb6 | 13482 | ; return 0; } |
eb4efbdc | 13483 | EOF |
edae8572 | 13484 | if { (eval echo configure:13485: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
13485 | rm -rf conftest* |
13486 | eval "ac_cv_func_$ac_func=yes" | |
13487 | else | |
13488 | echo "configure: failed program was:" >&5 | |
13489 | cat conftest.$ac_ext >&5 | |
13490 | rm -rf conftest* | |
13491 | eval "ac_cv_func_$ac_func=no" | |
13492 | fi | |
13493 | rm -f conftest* | |
13494 | fi | |
eb4efbdc | 13495 | |
698dcdb6 VZ |
13496 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
13497 | echo "$ac_t""yes" 1>&6 | |
13498 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
13499 | cat >> confdefs.h <<EOF | |
13500 | #define $ac_tr_func 1 | |
13501 | EOF | |
13502 | ||
13503 | else | |
13504 | echo "$ac_t""no" 1>&6 | |
eb4efbdc VZ |
13505 | fi |
13506 | done | |
13507 | ||
698dcdb6 | 13508 | |
eb4efbdc | 13509 | if test "$ac_cv_func_sigaction" = "no"; then |
698dcdb6 | 13510 | echo "configure: warning: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" 1>&2 |
eb4efbdc VZ |
13511 | wxUSE_ON_FATAL_EXCEPTION=no |
13512 | fi | |
f6bcfd97 BP |
13513 | |
13514 | if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then | |
698dcdb6 VZ |
13515 | |
13516 | ac_ext=C | |
13517 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
1e487827 | 13518 | ac_cpp='$CXXCPP $CPPFLAGS' |
698dcdb6 VZ |
13519 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
13520 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
13521 | cross_compiling=$ac_cv_prog_cxx_cross | |
6232543b | 13522 | |
1e487827 | 13523 | |
698dcdb6 | 13524 | echo $ac_n "checking for sa_handler type""... $ac_c" 1>&6 |
edae8572 | 13525 | echo "configure:13526: checking for sa_handler type" >&5 |
698dcdb6 VZ |
13526 | if eval "test \"`echo '$''{'wx_cv_type_sa_handler'+set}'`\" = set"; then |
13527 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13528 | else | |
13529 | ||
13530 | cat > conftest.$ac_ext <<EOF | |
edae8572 | 13531 | #line 13532 "configure" |
f6bcfd97 BP |
13532 | #include "confdefs.h" |
13533 | #include <signal.h> | |
698dcdb6 | 13534 | int main() { |
f6bcfd97 BP |
13535 | |
13536 | extern void testSigHandler(int); | |
13537 | ||
13538 | struct sigaction sa; | |
13539 | sa.sa_handler = testSigHandler; | |
698dcdb6 VZ |
13540 | |
13541 | ; return 0; } | |
13542 | EOF | |
edae8572 | 13543 | if { (eval echo configure:13544: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 VZ |
13544 | rm -rf conftest* |
13545 | ||
f6bcfd97 | 13546 | wx_cv_type_sa_handler=int |
698dcdb6 | 13547 | |
f6bcfd97 | 13548 | else |
698dcdb6 VZ |
13549 | echo "configure: failed program was:" >&5 |
13550 | cat conftest.$ac_ext >&5 | |
13551 | rm -rf conftest* | |
13552 | ||
f6bcfd97 | 13553 | wx_cv_type_sa_handler=void |
698dcdb6 | 13554 | |
6232543b | 13555 | fi |
698dcdb6 VZ |
13556 | rm -f conftest* |
13557 | ||
1e487827 | 13558 | fi |
698dcdb6 VZ |
13559 | |
13560 | echo "$ac_t""$wx_cv_type_sa_handler" 1>&6 | |
f6bcfd97 BP |
13561 | |
13562 | ac_ext=c | |
698dcdb6 | 13563 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
f6bcfd97 | 13564 | ac_cpp='$CPP $CPPFLAGS' |
698dcdb6 VZ |
13565 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
13566 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
13567 | cross_compiling=$ac_cv_prog_cc_cross | |
13568 | ||
703e0a69 | 13569 | |
698dcdb6 | 13570 | cat >> confdefs.h <<EOF |
f6bcfd97 BP |
13571 | #define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler |
13572 | EOF | |
13573 | ||
13574 | fi | |
eb4efbdc VZ |
13575 | fi |
13576 | ||
10f2d63a VZ |
13577 | for ac_func in vfork |
13578 | do | |
698dcdb6 | 13579 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
edae8572 | 13580 | echo "configure:13581: checking for $ac_func" >&5 |
698dcdb6 VZ |
13581 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
13582 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13583 | else | |
13584 | cat > conftest.$ac_ext <<EOF | |
edae8572 | 13585 | #line 13586 "configure" |
10f2d63a VZ |
13586 | #include "confdefs.h" |
13587 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 13588 | which can conflict with char $ac_func(); below. */ |
10f2d63a VZ |
13589 | #include <assert.h> |
13590 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13591 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
13592 | builtin and then its argument prototype would still apply. */ |
13593 | char $ac_func(); | |
13594 | ||
13595 | int main() { | |
10f2d63a VZ |
13596 | |
13597 | /* The GNU C library defines this for functions which it implements | |
13598 | to always fail with ENOSYS. Some functions are actually named | |
13599 | something starting with __ and the normal name is an alias. */ | |
13600 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
13601 | choke me | |
13602 | #else | |
698dcdb6 | 13603 | $ac_func(); |
10f2d63a VZ |
13604 | #endif |
13605 | ||
698dcdb6 | 13606 | ; return 0; } |
10f2d63a | 13607 | EOF |
edae8572 | 13608 | if { (eval echo configure:13609: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
13609 | rm -rf conftest* |
13610 | eval "ac_cv_func_$ac_func=yes" | |
13611 | else | |
13612 | echo "configure: failed program was:" >&5 | |
13613 | cat conftest.$ac_ext >&5 | |
13614 | rm -rf conftest* | |
13615 | eval "ac_cv_func_$ac_func=no" | |
13616 | fi | |
13617 | rm -f conftest* | |
13618 | fi | |
270a909e | 13619 | |
698dcdb6 VZ |
13620 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
13621 | echo "$ac_t""yes" 1>&6 | |
13622 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
13623 | cat >> confdefs.h <<EOF | |
13624 | #define $ac_tr_func 1 | |
13625 | EOF | |
13626 | ||
13627 | else | |
13628 | echo "$ac_t""no" 1>&6 | |
270a909e VZ |
13629 | fi |
13630 | done | |
13631 | ||
1e487827 | 13632 | |
52e8b690 | 13633 | echo $ac_n "checking for statfs""... $ac_c" 1>&6 |
edae8572 | 13634 | echo "configure:13635: checking for statfs" >&5 |
52e8b690 VZ |
13635 | if eval "test \"`echo '$''{'wx_cv_func_statfs'+set}'`\" = set"; then |
13636 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13637 | else | |
13638 | cat > conftest.$ac_ext <<EOF | |
edae8572 | 13639 | #line 13640 "configure" |
52e8b690 VZ |
13640 | #include "confdefs.h" |
13641 | ||
13642 | #include <sys/vfs.h> | |
13643 | ||
13644 | int main() { | |
13645 | ||
13646 | long l; | |
13647 | struct statfs fs; | |
13648 | statfs("/", &fs); | |
13649 | l = fs.f_bsize; | |
13650 | l += fs.f_blocks; | |
13651 | l += fs.f_bavail; | |
13652 | ||
13653 | ; return 0; } | |
13654 | EOF | |
edae8572 | 13655 | if { (eval echo configure:13656: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
52e8b690 VZ |
13656 | rm -rf conftest* |
13657 | ||
13658 | wx_cv_func_statfs=yes | |
13659 | ||
13660 | else | |
13661 | echo "configure: failed program was:" >&5 | |
13662 | cat conftest.$ac_ext >&5 | |
13663 | rm -rf conftest* | |
13664 | ||
13665 | wx_cv_func_statfs=no | |
13666 | ||
13667 | ||
13668 | fi | |
13669 | rm -f conftest* | |
13670 | ||
13671 | fi | |
13672 | ||
13673 | echo "$ac_t""$wx_cv_func_statfs" 1>&6 | |
13674 | ||
13675 | if test "$wx_cv_func_statfs" = "yes"; then | |
13676 | cat >> confdefs.h <<\EOF | |
13677 | #define HAVE_STATFS 1 | |
13678 | EOF | |
13679 | ||
13680 | else | |
13681 | echo "configure: warning: wxGetDiskSpace() function won't work without statfs()" 1>&2 | |
13682 | fi | |
13683 | ||
698dcdb6 VZ |
13684 | if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then |
13685 | for ac_func in fcntl flock | |
4f3c5f06 | 13686 | do |
698dcdb6 | 13687 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
edae8572 | 13688 | echo "configure:13689: checking for $ac_func" >&5 |
698dcdb6 VZ |
13689 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
13690 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13691 | else | |
13692 | cat > conftest.$ac_ext <<EOF | |
edae8572 | 13693 | #line 13694 "configure" |
4f3c5f06 VZ |
13694 | #include "confdefs.h" |
13695 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 13696 | which can conflict with char $ac_func(); below. */ |
4f3c5f06 VZ |
13697 | #include <assert.h> |
13698 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13699 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
13700 | builtin and then its argument prototype would still apply. */ |
13701 | char $ac_func(); | |
13702 | ||
13703 | int main() { | |
4f3c5f06 VZ |
13704 | |
13705 | /* The GNU C library defines this for functions which it implements | |
13706 | to always fail with ENOSYS. Some functions are actually named | |
13707 | something starting with __ and the normal name is an alias. */ | |
13708 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
13709 | choke me | |
13710 | #else | |
698dcdb6 | 13711 | $ac_func(); |
4f3c5f06 VZ |
13712 | #endif |
13713 | ||
698dcdb6 VZ |
13714 | ; return 0; } |
13715 | EOF | |
edae8572 | 13716 | if { (eval echo configure:13717: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
13717 | rm -rf conftest* |
13718 | eval "ac_cv_func_$ac_func=yes" | |
13719 | else | |
13720 | echo "configure: failed program was:" >&5 | |
13721 | cat conftest.$ac_ext >&5 | |
13722 | rm -rf conftest* | |
13723 | eval "ac_cv_func_$ac_func=no" | |
13724 | fi | |
13725 | rm -f conftest* | |
13726 | fi | |
13727 | ||
13728 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
13729 | echo "$ac_t""yes" 1>&6 | |
13730 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
13731 | cat >> confdefs.h <<EOF | |
13732 | #define $ac_tr_func 1 | |
4f3c5f06 VZ |
13733 | EOF |
13734 | break | |
698dcdb6 VZ |
13735 | else |
13736 | echo "$ac_t""no" 1>&6 | |
4f3c5f06 VZ |
13737 | fi |
13738 | done | |
13739 | ||
698dcdb6 | 13740 | |
4f3c5f06 | 13741 | if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then |
698dcdb6 | 13742 | echo "configure: warning: wxSingleInstanceChecker not available" 1>&2 |
4f3c5f06 VZ |
13743 | wxUSE_SNGLINST_CHECKER=no |
13744 | fi | |
13745 | fi | |
13746 | ||
270a909e VZ |
13747 | for ac_func in timegm |
13748 | do | |
698dcdb6 | 13749 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
edae8572 | 13750 | echo "configure:13751: checking for $ac_func" >&5 |
698dcdb6 VZ |
13751 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
13752 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13753 | else | |
13754 | cat > conftest.$ac_ext <<EOF | |
edae8572 | 13755 | #line 13756 "configure" |
270a909e VZ |
13756 | #include "confdefs.h" |
13757 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 13758 | which can conflict with char $ac_func(); below. */ |
270a909e VZ |
13759 | #include <assert.h> |
13760 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13761 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
13762 | builtin and then its argument prototype would still apply. */ |
13763 | char $ac_func(); | |
13764 | ||
13765 | int main() { | |
270a909e VZ |
13766 | |
13767 | /* The GNU C library defines this for functions which it implements | |
13768 | to always fail with ENOSYS. Some functions are actually named | |
13769 | something starting with __ and the normal name is an alias. */ | |
13770 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
13771 | choke me | |
13772 | #else | |
698dcdb6 | 13773 | $ac_func(); |
270a909e VZ |
13774 | #endif |
13775 | ||
698dcdb6 | 13776 | ; return 0; } |
270a909e | 13777 | EOF |
edae8572 | 13778 | if { (eval echo configure:13779: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
13779 | rm -rf conftest* |
13780 | eval "ac_cv_func_$ac_func=yes" | |
13781 | else | |
13782 | echo "configure: failed program was:" >&5 | |
13783 | cat conftest.$ac_ext >&5 | |
13784 | rm -rf conftest* | |
13785 | eval "ac_cv_func_$ac_func=no" | |
13786 | fi | |
13787 | rm -f conftest* | |
13788 | fi | |
10f2d63a | 13789 | |
698dcdb6 VZ |
13790 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
13791 | echo "$ac_t""yes" 1>&6 | |
13792 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
13793 | cat >> confdefs.h <<EOF | |
13794 | #define $ac_tr_func 1 | |
13795 | EOF | |
13796 | ||
13797 | else | |
13798 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
13799 | fi |
13800 | done | |
13801 | ||
698dcdb6 | 13802 | |
8fd0d89b VZ |
13803 | for ac_func in putenv setenv |
13804 | do | |
698dcdb6 | 13805 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
edae8572 | 13806 | echo "configure:13807: checking for $ac_func" >&5 |
698dcdb6 VZ |
13807 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
13808 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13809 | else | |
13810 | cat > conftest.$ac_ext <<EOF | |
edae8572 | 13811 | #line 13812 "configure" |
8fd0d89b VZ |
13812 | #include "confdefs.h" |
13813 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 13814 | which can conflict with char $ac_func(); below. */ |
8fd0d89b VZ |
13815 | #include <assert.h> |
13816 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13817 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
13818 | builtin and then its argument prototype would still apply. */ |
13819 | char $ac_func(); | |
13820 | ||
13821 | int main() { | |
8fd0d89b VZ |
13822 | |
13823 | /* The GNU C library defines this for functions which it implements | |
13824 | to always fail with ENOSYS. Some functions are actually named | |
13825 | something starting with __ and the normal name is an alias. */ | |
13826 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
13827 | choke me | |
13828 | #else | |
698dcdb6 | 13829 | $ac_func(); |
8fd0d89b VZ |
13830 | #endif |
13831 | ||
698dcdb6 VZ |
13832 | ; return 0; } |
13833 | EOF | |
edae8572 | 13834 | if { (eval echo configure:13835: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
13835 | rm -rf conftest* |
13836 | eval "ac_cv_func_$ac_func=yes" | |
13837 | else | |
13838 | echo "configure: failed program was:" >&5 | |
13839 | cat conftest.$ac_ext >&5 | |
13840 | rm -rf conftest* | |
13841 | eval "ac_cv_func_$ac_func=no" | |
13842 | fi | |
13843 | rm -f conftest* | |
13844 | fi | |
13845 | ||
13846 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
13847 | echo "$ac_t""yes" 1>&6 | |
13848 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
13849 | cat >> confdefs.h <<EOF | |
13850 | #define $ac_tr_func 1 | |
8fd0d89b VZ |
13851 | EOF |
13852 | break | |
698dcdb6 VZ |
13853 | else |
13854 | echo "$ac_t""no" 1>&6 | |
8fd0d89b VZ |
13855 | fi |
13856 | done | |
13857 | ||
698dcdb6 | 13858 | |
b12915c1 VZ |
13859 | HAVE_SOME_SLEEP_FUNC=0 |
13860 | if test "$USE_BEOS" = 1; then | |
698dcdb6 | 13861 | cat >> confdefs.h <<\EOF |
b12915c1 VZ |
13862 | #define HAVE_SLEEP 1 |
13863 | EOF | |
13864 | ||
13865 | HAVE_SOME_SLEEP_FUNC=1 | |
13866 | fi | |
13867 | ||
f11bdd03 | 13868 | if test "$USE_DARWIN" = 1; then |
698dcdb6 | 13869 | cat >> confdefs.h <<\EOF |
b4085ce6 GD |
13870 | #define HAVE_USLEEP 1 |
13871 | EOF | |
13872 | ||
13873 | HAVE_SOME_SLEEP_FUNC=1 | |
13874 | fi | |
13875 | ||
b12915c1 VZ |
13876 | if test "$HAVE_SOME_SLEEP_FUNC" != 1; then |
13877 | POSIX4_LINK= | |
698dcdb6 | 13878 | for ac_func in nanosleep |
10f2d63a | 13879 | do |
698dcdb6 | 13880 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
edae8572 | 13881 | echo "configure:13882: checking for $ac_func" >&5 |
698dcdb6 VZ |
13882 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
13883 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13884 | else | |
13885 | cat > conftest.$ac_ext <<EOF | |
edae8572 | 13886 | #line 13887 "configure" |
10f2d63a VZ |
13887 | #include "confdefs.h" |
13888 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 13889 | which can conflict with char $ac_func(); below. */ |
10f2d63a VZ |
13890 | #include <assert.h> |
13891 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13892 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
13893 | builtin and then its argument prototype would still apply. */ |
13894 | char $ac_func(); | |
13895 | ||
13896 | int main() { | |
10f2d63a VZ |
13897 | |
13898 | /* The GNU C library defines this for functions which it implements | |
13899 | to always fail with ENOSYS. Some functions are actually named | |
13900 | something starting with __ and the normal name is an alias. */ | |
13901 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
13902 | choke me | |
13903 | #else | |
698dcdb6 | 13904 | $ac_func(); |
10f2d63a VZ |
13905 | #endif |
13906 | ||
698dcdb6 VZ |
13907 | ; return 0; } |
13908 | EOF | |
edae8572 | 13909 | if { (eval echo configure:13910: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
13910 | rm -rf conftest* |
13911 | eval "ac_cv_func_$ac_func=yes" | |
13912 | else | |
13913 | echo "configure: failed program was:" >&5 | |
13914 | cat conftest.$ac_ext >&5 | |
13915 | rm -rf conftest* | |
13916 | eval "ac_cv_func_$ac_func=no" | |
13917 | fi | |
13918 | rm -f conftest* | |
13919 | fi | |
13920 | ||
13921 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
13922 | echo "$ac_t""yes" 1>&6 | |
13923 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
13924 | cat >> confdefs.h <<EOF | |
13925 | #define $ac_tr_func 1 | |
13926 | EOF | |
13927 | cat >> confdefs.h <<\EOF | |
10f2d63a VZ |
13928 | #define HAVE_NANOSLEEP 1 |
13929 | EOF | |
13930 | ||
13931 | else | |
698dcdb6 VZ |
13932 | echo "$ac_t""no" 1>&6 |
13933 | echo $ac_n "checking for nanosleep in -lposix4""... $ac_c" 1>&6 | |
edae8572 | 13934 | echo "configure:13935: checking for nanosleep in -lposix4" >&5 |
698dcdb6 VZ |
13935 | ac_lib_var=`echo posix4'_'nanosleep | sed 'y%./+-%__p_%'` |
13936 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
13937 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 13938 | else |
698dcdb6 | 13939 | ac_save_LIBS="$LIBS" |
10f2d63a | 13940 | LIBS="-lposix4 $LIBS" |
698dcdb6 | 13941 | cat > conftest.$ac_ext <<EOF |
edae8572 | 13942 | #line 13943 "configure" |
10f2d63a VZ |
13943 | #include "confdefs.h" |
13944 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13945 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
13946 | builtin and then its argument prototype would still apply. */ |
13947 | char nanosleep(); | |
13948 | ||
13949 | int main() { | |
13950 | nanosleep() | |
13951 | ; return 0; } | |
13952 | EOF | |
edae8572 | 13953 | if { (eval echo configure:13954: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
13954 | rm -rf conftest* |
13955 | eval "ac_cv_lib_$ac_lib_var=yes" | |
13956 | else | |
13957 | echo "configure: failed program was:" >&5 | |
13958 | cat conftest.$ac_ext >&5 | |
13959 | rm -rf conftest* | |
13960 | eval "ac_cv_lib_$ac_lib_var=no" | |
13961 | fi | |
13962 | rm -f conftest* | |
13963 | LIBS="$ac_save_LIBS" | |
13964 | ||
13965 | fi | |
13966 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
13967 | echo "$ac_t""yes" 1>&6 | |
13968 | ||
13969 | cat >> confdefs.h <<\EOF | |
10f2d63a VZ |
13970 | #define HAVE_NANOSLEEP 1 |
13971 | EOF | |
13972 | ||
b12915c1 | 13973 | POSIX4_LINK="-lposix4" |
698dcdb6 | 13974 | |
10f2d63a | 13975 | else |
698dcdb6 | 13976 | echo "$ac_t""no" 1>&6 |
10f2d63a | 13977 | |
698dcdb6 | 13978 | for ac_func in usleep |
10f2d63a | 13979 | do |
698dcdb6 | 13980 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
edae8572 | 13981 | echo "configure:13982: checking for $ac_func" >&5 |
698dcdb6 VZ |
13982 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
13983 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13984 | else | |
13985 | cat > conftest.$ac_ext <<EOF | |
edae8572 | 13986 | #line 13987 "configure" |
10f2d63a VZ |
13987 | #include "confdefs.h" |
13988 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 13989 | which can conflict with char $ac_func(); below. */ |
10f2d63a VZ |
13990 | #include <assert.h> |
13991 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13992 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
13993 | builtin and then its argument prototype would still apply. */ |
13994 | char $ac_func(); | |
13995 | ||
13996 | int main() { | |
10f2d63a VZ |
13997 | |
13998 | /* The GNU C library defines this for functions which it implements | |
13999 | to always fail with ENOSYS. Some functions are actually named | |
14000 | something starting with __ and the normal name is an alias. */ | |
14001 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
14002 | choke me | |
14003 | #else | |
698dcdb6 | 14004 | $ac_func(); |
10f2d63a VZ |
14005 | #endif |
14006 | ||
698dcdb6 VZ |
14007 | ; return 0; } |
14008 | EOF | |
edae8572 | 14009 | if { (eval echo configure:14010: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
14010 | rm -rf conftest* |
14011 | eval "ac_cv_func_$ac_func=yes" | |
14012 | else | |
14013 | echo "configure: failed program was:" >&5 | |
14014 | cat conftest.$ac_ext >&5 | |
14015 | rm -rf conftest* | |
14016 | eval "ac_cv_func_$ac_func=no" | |
14017 | fi | |
14018 | rm -f conftest* | |
14019 | fi | |
14020 | ||
14021 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
14022 | echo "$ac_t""yes" 1>&6 | |
14023 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
14024 | cat >> confdefs.h <<EOF | |
14025 | #define $ac_tr_func 1 | |
14026 | EOF | |
14027 | cat >> confdefs.h <<\EOF | |
b4085ce6 GD |
14028 | #define HAVE_USLEEP 1 |
14029 | EOF | |
14030 | ||
10f2d63a | 14031 | else |
698dcdb6 VZ |
14032 | echo "$ac_t""no" 1>&6 |
14033 | echo "configure: warning: wxSleep() function will not work" 1>&2 | |
14034 | ||
10f2d63a VZ |
14035 | fi |
14036 | done | |
14037 | ||
698dcdb6 VZ |
14038 | |
14039 | ||
10f2d63a VZ |
14040 | fi |
14041 | ||
698dcdb6 VZ |
14042 | |
14043 | ||
10f2d63a VZ |
14044 | fi |
14045 | done | |
14046 | ||
b12915c1 | 14047 | fi |
10f2d63a VZ |
14048 | |
14049 | for ac_func in uname gethostname | |
14050 | do | |
698dcdb6 | 14051 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
edae8572 | 14052 | echo "configure:14053: checking for $ac_func" >&5 |
698dcdb6 VZ |
14053 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
14054 | echo $ac_n "(cached) $ac_c" 1>&6 | |
14055 | else | |
14056 | cat > conftest.$ac_ext <<EOF | |
edae8572 | 14057 | #line 14058 "configure" |
10f2d63a VZ |
14058 | #include "confdefs.h" |
14059 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 14060 | which can conflict with char $ac_func(); below. */ |
10f2d63a VZ |
14061 | #include <assert.h> |
14062 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14063 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
14064 | builtin and then its argument prototype would still apply. */ |
14065 | char $ac_func(); | |
14066 | ||
14067 | int main() { | |
10f2d63a VZ |
14068 | |
14069 | /* The GNU C library defines this for functions which it implements | |
14070 | to always fail with ENOSYS. Some functions are actually named | |
14071 | something starting with __ and the normal name is an alias. */ | |
14072 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
14073 | choke me | |
14074 | #else | |
698dcdb6 | 14075 | $ac_func(); |
10f2d63a VZ |
14076 | #endif |
14077 | ||
698dcdb6 VZ |
14078 | ; return 0; } |
14079 | EOF | |
edae8572 | 14080 | if { (eval echo configure:14081: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
14081 | rm -rf conftest* |
14082 | eval "ac_cv_func_$ac_func=yes" | |
14083 | else | |
14084 | echo "configure: failed program was:" >&5 | |
14085 | cat conftest.$ac_ext >&5 | |
14086 | rm -rf conftest* | |
14087 | eval "ac_cv_func_$ac_func=no" | |
14088 | fi | |
14089 | rm -f conftest* | |
14090 | fi | |
14091 | ||
14092 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
14093 | echo "$ac_t""yes" 1>&6 | |
14094 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
14095 | cat >> confdefs.h <<EOF | |
14096 | #define $ac_tr_func 1 | |
10f2d63a VZ |
14097 | EOF |
14098 | break | |
698dcdb6 VZ |
14099 | else |
14100 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
14101 | fi |
14102 | done | |
14103 | ||
698dcdb6 VZ |
14104 | |
14105 | ||
14106 | ac_ext=C | |
14107 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
6098c7f9 | 14108 | ac_cpp='$CXXCPP $CPPFLAGS' |
698dcdb6 VZ |
14109 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
14110 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
14111 | cross_compiling=$ac_cv_prog_cxx_cross | |
14112 | ||
6098c7f9 | 14113 | |
10f2d63a VZ |
14114 | for ac_func in strtok_r |
14115 | do | |
698dcdb6 | 14116 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
edae8572 | 14117 | echo "configure:14118: checking for $ac_func" >&5 |
698dcdb6 VZ |
14118 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
14119 | echo $ac_n "(cached) $ac_c" 1>&6 | |
14120 | else | |
14121 | cat > conftest.$ac_ext <<EOF | |
edae8572 | 14122 | #line 14123 "configure" |
10f2d63a VZ |
14123 | #include "confdefs.h" |
14124 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 14125 | which can conflict with char $ac_func(); below. */ |
10f2d63a VZ |
14126 | #include <assert.h> |
14127 | /* Override any gcc2 internal prototype to avoid an error. */ | |
6098c7f9 VZ |
14128 | #ifdef __cplusplus |
14129 | extern "C" | |
14130 | #endif | |
10f2d63a | 14131 | /* We use char because int might match the return type of a gcc2 |
698dcdb6 VZ |
14132 | builtin and then its argument prototype would still apply. */ |
14133 | char $ac_func(); | |
14134 | ||
14135 | int main() { | |
10f2d63a VZ |
14136 | |
14137 | /* The GNU C library defines this for functions which it implements | |
14138 | to always fail with ENOSYS. Some functions are actually named | |
14139 | something starting with __ and the normal name is an alias. */ | |
14140 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
14141 | choke me | |
14142 | #else | |
698dcdb6 | 14143 | $ac_func(); |
10f2d63a VZ |
14144 | #endif |
14145 | ||
698dcdb6 | 14146 | ; return 0; } |
10f2d63a | 14147 | EOF |
edae8572 | 14148 | if { (eval echo configure:14149: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
14149 | rm -rf conftest* |
14150 | eval "ac_cv_func_$ac_func=yes" | |
14151 | else | |
14152 | echo "configure: failed program was:" >&5 | |
14153 | cat conftest.$ac_ext >&5 | |
14154 | rm -rf conftest* | |
14155 | eval "ac_cv_func_$ac_func=no" | |
14156 | fi | |
14157 | rm -f conftest* | |
14158 | fi | |
10f2d63a | 14159 | |
698dcdb6 VZ |
14160 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
14161 | echo "$ac_t""yes" 1>&6 | |
14162 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
14163 | cat >> confdefs.h <<EOF | |
14164 | #define $ac_tr_func 1 | |
14165 | EOF | |
14166 | ||
14167 | else | |
14168 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
14169 | fi |
14170 | done | |
14171 | ||
698dcdb6 | 14172 | |
6098c7f9 | 14173 | ac_ext=c |
698dcdb6 | 14174 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
6098c7f9 | 14175 | ac_cpp='$CPP $CPPFLAGS' |
698dcdb6 VZ |
14176 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
14177 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
14178 | cross_compiling=$ac_cv_prog_cc_cross | |
6232543b | 14179 | |
1e487827 | 14180 | |
698dcdb6 | 14181 | INET_LINK= |
10f2d63a VZ |
14182 | for ac_func in inet_addr |
14183 | do | |
698dcdb6 | 14184 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
edae8572 | 14185 | echo "configure:14186: checking for $ac_func" >&5 |
698dcdb6 VZ |
14186 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
14187 | echo $ac_n "(cached) $ac_c" 1>&6 | |
14188 | else | |
14189 | cat > conftest.$ac_ext <<EOF | |
edae8572 | 14190 | #line 14191 "configure" |
10f2d63a VZ |
14191 | #include "confdefs.h" |
14192 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 VZ |
14193 | which can conflict with char $ac_func(); below. */ |
14194 | #include <assert.h> | |
14195 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10f2d63a | 14196 | /* We use char because int might match the return type of a gcc2 |
698dcdb6 VZ |
14197 | builtin and then its argument prototype would still apply. */ |
14198 | char $ac_func(); | |
14199 | ||
14200 | int main() { | |
10f2d63a VZ |
14201 | |
14202 | /* The GNU C library defines this for functions which it implements | |
14203 | to always fail with ENOSYS. Some functions are actually named | |
1e487827 VS |
14204 | something starting with __ and the normal name is an alias. */ |
14205 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
14206 | choke me | |
14207 | #else | |
698dcdb6 | 14208 | $ac_func(); |
1e487827 | 14209 | #endif |
703e0a69 | 14210 | |
698dcdb6 VZ |
14211 | ; return 0; } |
14212 | EOF | |
edae8572 | 14213 | if { (eval echo configure:14214: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
14214 | rm -rf conftest* |
14215 | eval "ac_cv_func_$ac_func=yes" | |
14216 | else | |
14217 | echo "configure: failed program was:" >&5 | |
14218 | cat conftest.$ac_ext >&5 | |
14219 | rm -rf conftest* | |
14220 | eval "ac_cv_func_$ac_func=no" | |
14221 | fi | |
14222 | rm -f conftest* | |
14223 | fi | |
14224 | ||
14225 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
14226 | echo "$ac_t""yes" 1>&6 | |
14227 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
14228 | cat >> confdefs.h <<EOF | |
14229 | #define $ac_tr_func 1 | |
14230 | EOF | |
14231 | cat >> confdefs.h <<\EOF | |
c63c7106 VZ |
14232 | #define HAVE_INET_ADDR 1 |
14233 | EOF | |
14234 | ||
10f2d63a | 14235 | else |
698dcdb6 VZ |
14236 | echo "$ac_t""no" 1>&6 |
14237 | echo $ac_n "checking for inet_addr in -lnsl""... $ac_c" 1>&6 | |
edae8572 | 14238 | echo "configure:14239: checking for inet_addr in -lnsl" >&5 |
698dcdb6 VZ |
14239 | ac_lib_var=`echo nsl'_'inet_addr | sed 'y%./+-%__p_%'` |
14240 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
14241 | echo $ac_n "(cached) $ac_c" 1>&6 | |
c63c7106 | 14242 | else |
698dcdb6 | 14243 | ac_save_LIBS="$LIBS" |
c63c7106 | 14244 | LIBS="-lnsl $LIBS" |
698dcdb6 | 14245 | cat > conftest.$ac_ext <<EOF |
edae8572 | 14246 | #line 14247 "configure" |
c63c7106 VZ |
14247 | #include "confdefs.h" |
14248 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14249 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
14250 | builtin and then its argument prototype would still apply. */ |
14251 | char inet_addr(); | |
14252 | ||
14253 | int main() { | |
14254 | inet_addr() | |
14255 | ; return 0; } | |
14256 | EOF | |
edae8572 | 14257 | if { (eval echo configure:14258: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
14258 | rm -rf conftest* |
14259 | eval "ac_cv_lib_$ac_lib_var=yes" | |
14260 | else | |
14261 | echo "configure: failed program was:" >&5 | |
14262 | cat conftest.$ac_ext >&5 | |
14263 | rm -rf conftest* | |
14264 | eval "ac_cv_lib_$ac_lib_var=no" | |
14265 | fi | |
14266 | rm -f conftest* | |
14267 | LIBS="$ac_save_LIBS" | |
14268 | ||
14269 | fi | |
14270 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
14271 | echo "$ac_t""yes" 1>&6 | |
c63c7106 VZ |
14272 | INET_LINK="nsl" |
14273 | else | |
698dcdb6 VZ |
14274 | echo "$ac_t""no" 1>&6 |
14275 | echo $ac_n "checking for inet_addr in -lresolv""... $ac_c" 1>&6 | |
edae8572 | 14276 | echo "configure:14277: checking for inet_addr in -lresolv" >&5 |
698dcdb6 VZ |
14277 | ac_lib_var=`echo resolv'_'inet_addr | sed 'y%./+-%__p_%'` |
14278 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
14279 | echo $ac_n "(cached) $ac_c" 1>&6 | |
c63c7106 | 14280 | else |
698dcdb6 | 14281 | ac_save_LIBS="$LIBS" |
c63c7106 | 14282 | LIBS="-lresolv $LIBS" |
698dcdb6 | 14283 | cat > conftest.$ac_ext <<EOF |
edae8572 | 14284 | #line 14285 "configure" |
c63c7106 VZ |
14285 | #include "confdefs.h" |
14286 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14287 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
14288 | builtin and then its argument prototype would still apply. */ |
14289 | char inet_addr(); | |
14290 | ||
14291 | int main() { | |
14292 | inet_addr() | |
14293 | ; return 0; } | |
14294 | EOF | |
edae8572 | 14295 | if { (eval echo configure:14296: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
14296 | rm -rf conftest* |
14297 | eval "ac_cv_lib_$ac_lib_var=yes" | |
14298 | else | |
14299 | echo "configure: failed program was:" >&5 | |
14300 | cat conftest.$ac_ext >&5 | |
14301 | rm -rf conftest* | |
14302 | eval "ac_cv_lib_$ac_lib_var=no" | |
14303 | fi | |
14304 | rm -f conftest* | |
14305 | LIBS="$ac_save_LIBS" | |
c63c7106 | 14306 | |
6232543b | 14307 | fi |
698dcdb6 VZ |
14308 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
14309 | echo "$ac_t""yes" 1>&6 | |
14310 | INET_LINK="resolv" | |
14311 | ||
14312 | else | |
14313 | echo "$ac_t""no" 1>&6 | |
14314 | fi | |
c63c7106 | 14315 | |
698dcdb6 | 14316 | |
1e487827 | 14317 | fi |
703e0a69 | 14318 | |
698dcdb6 VZ |
14319 | |
14320 | ||
10f2d63a VZ |
14321 | fi |
14322 | done | |
14323 | ||
698dcdb6 | 14324 | |
10f2d63a VZ |
14325 | for ac_func in inet_aton |
14326 | do | |
698dcdb6 | 14327 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
edae8572 | 14328 | echo "configure:14329: checking for $ac_func" >&5 |
698dcdb6 VZ |
14329 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
14330 | echo $ac_n "(cached) $ac_c" 1>&6 | |
14331 | else | |
14332 | cat > conftest.$ac_ext <<EOF | |
edae8572 | 14333 | #line 14334 "configure" |
10f2d63a VZ |
14334 | #include "confdefs.h" |
14335 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 14336 | which can conflict with char $ac_func(); below. */ |
10f2d63a VZ |
14337 | #include <assert.h> |
14338 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14339 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
14340 | builtin and then its argument prototype would still apply. */ |
14341 | char $ac_func(); | |
14342 | ||
14343 | int main() { | |
10f2d63a VZ |
14344 | |
14345 | /* The GNU C library defines this for functions which it implements | |
14346 | to always fail with ENOSYS. Some functions are actually named | |
14347 | something starting with __ and the normal name is an alias. */ | |
14348 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
14349 | choke me | |
14350 | #else | |
698dcdb6 | 14351 | $ac_func(); |
10f2d63a VZ |
14352 | #endif |
14353 | ||
698dcdb6 VZ |
14354 | ; return 0; } |
14355 | EOF | |
edae8572 | 14356 | if { (eval echo configure:14357: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
14357 | rm -rf conftest* |
14358 | eval "ac_cv_func_$ac_func=yes" | |
14359 | else | |
14360 | echo "configure: failed program was:" >&5 | |
14361 | cat conftest.$ac_ext >&5 | |
14362 | rm -rf conftest* | |
14363 | eval "ac_cv_func_$ac_func=no" | |
14364 | fi | |
14365 | rm -f conftest* | |
14366 | fi | |
14367 | ||
14368 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
14369 | echo "$ac_t""yes" 1>&6 | |
14370 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
14371 | cat >> confdefs.h <<EOF | |
14372 | #define $ac_tr_func 1 | |
14373 | EOF | |
14374 | cat >> confdefs.h <<\EOF | |
c63c7106 VZ |
14375 | #define HAVE_INET_ATON 1 |
14376 | EOF | |
14377 | ||
10f2d63a | 14378 | else |
698dcdb6 VZ |
14379 | echo "$ac_t""no" 1>&6 |
14380 | echo $ac_n "checking for inet_aton in -l$INET_LINK""... $ac_c" 1>&6 | |
edae8572 | 14381 | echo "configure:14382: checking for inet_aton in -l$INET_LINK" >&5 |
698dcdb6 VZ |
14382 | ac_lib_var=`echo $INET_LINK'_'inet_aton | sed 'y%./+-%__p_%'` |
14383 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
14384 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 14385 | else |
698dcdb6 | 14386 | ac_save_LIBS="$LIBS" |
c63c7106 | 14387 | LIBS="-l$INET_LINK $LIBS" |
698dcdb6 | 14388 | cat > conftest.$ac_ext <<EOF |
edae8572 | 14389 | #line 14390 "configure" |
10f2d63a VZ |
14390 | #include "confdefs.h" |
14391 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14392 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
14393 | builtin and then its argument prototype would still apply. */ |
14394 | char inet_aton(); | |
14395 | ||
14396 | int main() { | |
14397 | inet_aton() | |
14398 | ; return 0; } | |
14399 | EOF | |
edae8572 | 14400 | if { (eval echo configure:14401: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
14401 | rm -rf conftest* |
14402 | eval "ac_cv_lib_$ac_lib_var=yes" | |
14403 | else | |
14404 | echo "configure: failed program was:" >&5 | |
14405 | cat conftest.$ac_ext >&5 | |
14406 | rm -rf conftest* | |
14407 | eval "ac_cv_lib_$ac_lib_var=no" | |
14408 | fi | |
14409 | rm -f conftest* | |
14410 | LIBS="$ac_save_LIBS" | |
14411 | ||
14412 | fi | |
14413 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
14414 | echo "$ac_t""yes" 1>&6 | |
14415 | cat >> confdefs.h <<\EOF | |
c63c7106 | 14416 | #define HAVE_INET_ATON 1 |
10f2d63a VZ |
14417 | EOF |
14418 | ||
698dcdb6 VZ |
14419 | else |
14420 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
14421 | fi |
14422 | ||
698dcdb6 | 14423 | |
c63c7106 VZ |
14424 | fi |
14425 | done | |
14426 | ||
698dcdb6 | 14427 | |
c63c7106 | 14428 | if test "x$INET_LINK" != "x"; then |
698dcdb6 | 14429 | cat >> confdefs.h <<\EOF |
c63c7106 VZ |
14430 | #define HAVE_INET_ADDR 1 |
14431 | EOF | |
14432 | ||
14433 | INET_LINK="-l$INET_LINK" | |
14434 | fi | |
10f2d63a VZ |
14435 | |
14436 | fi | |
14437 | ||
698dcdb6 VZ |
14438 | |
14439 | cat > confcache <<\EOF | |
10f2d63a VZ |
14440 | # This file is a shell script that caches the results of configure |
14441 | # tests run on this system so they can be shared between configure | |
698dcdb6 VZ |
14442 | # scripts and configure runs. It is not useful on other systems. |
14443 | # If it contains results you don't want to keep, you may remove or edit it. | |
10f2d63a | 14444 | # |
698dcdb6 VZ |
14445 | # By default, configure uses ./config.cache as the cache file, |
14446 | # creating it if it does not exist already. You can give configure | |
14447 | # the --cache-file=FILE option to use a different cache file; that is | |
14448 | # what configure does when it calls configure scripts in | |
14449 | # subdirectories, so they share the cache. | |
14450 | # Giving --cache-file=/dev/null disables caching, for debugging configure. | |
14451 | # config.status only pays attention to the cache file if you give it the | |
14452 | # --recheck option to rerun configure. | |
10f2d63a | 14453 | # |
698dcdb6 | 14454 | EOF |
10f2d63a VZ |
14455 | # The following way of writing the cache mishandles newlines in values, |
14456 | # but we know of no workaround that is simple, portable, and efficient. | |
14457 | # So, don't put newlines in cache variables' values. | |
14458 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
14459 | # and sets the high bit in the cache file unless we assign to the vars. | |
698dcdb6 VZ |
14460 | (set) 2>&1 | |
14461 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
14462 | *ac_space=\ *) | |
14463 | # `set' does not quote correctly, so add quotes (double-quote substitution | |
14464 | # turns \\\\ into \\, and sed turns \\ into \). | |
14465 | sed -n \ | |
14466 | -e "s/'/'\\\\''/g" \ | |
14467 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" | |
14468 | ;; | |
14469 | *) | |
14470 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
14471 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' | |
14472 | ;; | |
14473 | esac >> confcache | |
14474 | if cmp -s $cache_file confcache; then | |
14475 | : | |
14476 | else | |
10f2d63a | 14477 | if test -w $cache_file; then |
698dcdb6 VZ |
14478 | echo "updating cache $cache_file" |
14479 | cat confcache > $cache_file | |
10f2d63a VZ |
14480 | else |
14481 | echo "not updating unwritable cache $cache_file" | |
14482 | fi | |
14483 | fi | |
14484 | rm -f confcache | |
14485 | ||
698dcdb6 VZ |
14486 | |
14487 | ||
b089607b | 14488 | if test "$TOOLKIT" != "MSW"; then |
10f2d63a | 14489 | |
698dcdb6 | 14490 | |
3a922bb4 RL |
14491 | THREADS_LINK= |
14492 | THREADS_OBJ= | |
14493 | CODE_GEN_FLAGS= | |
14494 | CODE_GEN_FLAGS_CXX= | |
10f2d63a VZ |
14495 | |
14496 | if test "$wxUSE_THREADS" = "yes" ; then | |
14497 | if test "$wxUSE_WINE" = 1 ; then | |
698dcdb6 | 14498 | echo "configure: warning: Threads are not supported under WINE" 1>&2 |
10f2d63a | 14499 | wxUSE_THREADS="no" |
b12915c1 | 14500 | elif test "$USE_BEOS" = 1; then |
698dcdb6 | 14501 | echo "configure: warning: BeOS threads are not yet supported" 1>&2 |
b12915c1 | 14502 | wxUSE_THREADS="no" |
10f2d63a VZ |
14503 | fi |
14504 | fi | |
14505 | ||
14506 | if test "$wxUSE_THREADS" = "yes" ; then | |
698dcdb6 | 14507 | |
186837b0 | 14508 | if test "$USE_AIX" = 1; then |
f6bcfd97 BP |
14509 | THREADS_LIB=pthreads |
14510 | else | |
14511 | THREADS_LIB=pthread | |
14512 | fi | |
14513 | ||
698dcdb6 | 14514 | echo $ac_n "checking for pthread_create in -l$THREADS_LIB""... $ac_c" 1>&6 |
edae8572 | 14515 | echo "configure:14516: checking for pthread_create in -l$THREADS_LIB" >&5 |
698dcdb6 VZ |
14516 | ac_lib_var=`echo $THREADS_LIB'_'pthread_create | sed 'y%./+-%__p_%'` |
14517 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
14518 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 14519 | else |
698dcdb6 | 14520 | ac_save_LIBS="$LIBS" |
f6bcfd97 | 14521 | LIBS="-l$THREADS_LIB $LIBS" |
698dcdb6 | 14522 | cat > conftest.$ac_ext <<EOF |
edae8572 | 14523 | #line 14524 "configure" |
10f2d63a VZ |
14524 | #include "confdefs.h" |
14525 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14526 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
14527 | builtin and then its argument prototype would still apply. */ |
14528 | char pthread_create(); | |
14529 | ||
14530 | int main() { | |
14531 | pthread_create() | |
14532 | ; return 0; } | |
14533 | EOF | |
edae8572 | 14534 | if { (eval echo configure:14535: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
14535 | rm -rf conftest* |
14536 | eval "ac_cv_lib_$ac_lib_var=yes" | |
14537 | else | |
14538 | echo "configure: failed program was:" >&5 | |
14539 | cat conftest.$ac_ext >&5 | |
14540 | rm -rf conftest* | |
14541 | eval "ac_cv_lib_$ac_lib_var=no" | |
14542 | fi | |
14543 | rm -f conftest* | |
14544 | LIBS="$ac_save_LIBS" | |
10f2d63a | 14545 | |
698dcdb6 VZ |
14546 | fi |
14547 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
14548 | echo "$ac_t""yes" 1>&6 | |
14549 | ||
10f2d63a | 14550 | THREADS_OBJ="threadpsx.lo" |
f6bcfd97 | 14551 | THREADS_LINK=$THREADS_LIB |
698dcdb6 | 14552 | |
10f2d63a | 14553 | else |
698dcdb6 | 14554 | echo "$ac_t""no" 1>&6 |
10f2d63a | 14555 | |
698dcdb6 | 14556 | echo $ac_n "checking for pthread_create in -lc_r""... $ac_c" 1>&6 |
edae8572 | 14557 | echo "configure:14558: checking for pthread_create in -lc_r" >&5 |
698dcdb6 VZ |
14558 | ac_lib_var=`echo c_r'_'pthread_create | sed 'y%./+-%__p_%'` |
14559 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
14560 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 14561 | else |
698dcdb6 | 14562 | ac_save_LIBS="$LIBS" |
10f2d63a | 14563 | LIBS="-lc_r $LIBS" |
698dcdb6 | 14564 | cat > conftest.$ac_ext <<EOF |
edae8572 | 14565 | #line 14566 "configure" |
10f2d63a VZ |
14566 | #include "confdefs.h" |
14567 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14568 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
14569 | builtin and then its argument prototype would still apply. */ |
14570 | char pthread_create(); | |
14571 | ||
14572 | int main() { | |
14573 | pthread_create() | |
14574 | ; return 0; } | |
14575 | EOF | |
edae8572 | 14576 | if { (eval echo configure:14577: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
14577 | rm -rf conftest* |
14578 | eval "ac_cv_lib_$ac_lib_var=yes" | |
14579 | else | |
14580 | echo "configure: failed program was:" >&5 | |
14581 | cat conftest.$ac_ext >&5 | |
14582 | rm -rf conftest* | |
14583 | eval "ac_cv_lib_$ac_lib_var=no" | |
14584 | fi | |
14585 | rm -f conftest* | |
14586 | LIBS="$ac_save_LIBS" | |
10f2d63a | 14587 | |
698dcdb6 VZ |
14588 | fi |
14589 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
14590 | echo "$ac_t""yes" 1>&6 | |
14591 | ||
10f2d63a VZ |
14592 | THREADS_OBJ="threadpsx.lo" |
14593 | THREADS_LINK="c_r" | |
698dcdb6 | 14594 | |
10f2d63a | 14595 | else |
698dcdb6 | 14596 | echo "$ac_t""no" 1>&6 |
10f2d63a | 14597 | |
698dcdb6 VZ |
14598 | ac_safe=`echo "sys/prctl.h" | sed 'y%./+-%__p_%'` |
14599 | echo $ac_n "checking for sys/prctl.h""... $ac_c" 1>&6 | |
edae8572 | 14600 | echo "configure:14601: checking for sys/prctl.h" >&5 |
698dcdb6 VZ |
14601 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
14602 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 14603 | else |
698dcdb6 | 14604 | cat > conftest.$ac_ext <<EOF |
edae8572 | 14605 | #line 14606 "configure" |
10f2d63a VZ |
14606 | #include "confdefs.h" |
14607 | #include <sys/prctl.h> | |
698dcdb6 VZ |
14608 | EOF |
14609 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
edae8572 | 14610 | { (eval echo configure:14611: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
14611 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
14612 | if test -z "$ac_err"; then | |
14613 | rm -rf conftest* | |
14614 | eval "ac_cv_header_$ac_safe=yes" | |
1e487827 | 14615 | else |
698dcdb6 VZ |
14616 | echo "$ac_err" >&5 |
14617 | echo "configure: failed program was:" >&5 | |
10f2d63a | 14618 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
14619 | rm -rf conftest* |
14620 | eval "ac_cv_header_$ac_safe=no" | |
10f2d63a | 14621 | fi |
698dcdb6 | 14622 | rm -f conftest* |
10f2d63a | 14623 | fi |
698dcdb6 VZ |
14624 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
14625 | echo "$ac_t""yes" 1>&6 | |
14626 | ||
1f8ae82f | 14627 | THREADS_OBJ="threadsgi.lo" |
698dcdb6 VZ |
14628 | |
14629 | else | |
14630 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
14631 | fi |
14632 | ||
698dcdb6 | 14633 | |
6232543b | 14634 | fi |
10f2d63a | 14635 | |
698dcdb6 | 14636 | |
1e487827 | 14637 | fi |
703e0a69 | 14638 | |
698dcdb6 | 14639 | |
10f2d63a VZ |
14640 | if test -z "$THREADS_OBJ" ; then |
14641 | wxUSE_THREADS=no | |
698dcdb6 | 14642 | echo "configure: warning: No thread support on this system" 1>&2 |
10f2d63a VZ |
14643 | fi |
14644 | fi | |
14645 | ||
14646 | if test "$wxUSE_THREADS" = "yes" ; then | |
698dcdb6 | 14647 | for ac_func in thr_setconcurrency |
70846f0a | 14648 | do |
698dcdb6 | 14649 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
edae8572 | 14650 | echo "configure:14651: checking for $ac_func" >&5 |
698dcdb6 VZ |
14651 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
14652 | echo $ac_n "(cached) $ac_c" 1>&6 | |
14653 | else | |
14654 | cat > conftest.$ac_ext <<EOF | |
edae8572 | 14655 | #line 14656 "configure" |
70846f0a VZ |
14656 | #include "confdefs.h" |
14657 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 14658 | which can conflict with char $ac_func(); below. */ |
70846f0a VZ |
14659 | #include <assert.h> |
14660 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14661 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
14662 | builtin and then its argument prototype would still apply. */ |
14663 | char $ac_func(); | |
14664 | ||
14665 | int main() { | |
70846f0a VZ |
14666 | |
14667 | /* The GNU C library defines this for functions which it implements | |
14668 | to always fail with ENOSYS. Some functions are actually named | |
14669 | something starting with __ and the normal name is an alias. */ | |
14670 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
14671 | choke me | |
14672 | #else | |
698dcdb6 | 14673 | $ac_func(); |
70846f0a VZ |
14674 | #endif |
14675 | ||
698dcdb6 | 14676 | ; return 0; } |
70846f0a | 14677 | EOF |
edae8572 | 14678 | if { (eval echo configure:14679: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
14679 | rm -rf conftest* |
14680 | eval "ac_cv_func_$ac_func=yes" | |
14681 | else | |
14682 | echo "configure: failed program was:" >&5 | |
14683 | cat conftest.$ac_ext >&5 | |
14684 | rm -rf conftest* | |
14685 | eval "ac_cv_func_$ac_func=no" | |
14686 | fi | |
14687 | rm -f conftest* | |
14688 | fi | |
70846f0a | 14689 | |
698dcdb6 VZ |
14690 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
14691 | echo "$ac_t""yes" 1>&6 | |
14692 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
14693 | cat >> confdefs.h <<EOF | |
14694 | #define $ac_tr_func 1 | |
14695 | EOF | |
14696 | ||
14697 | else | |
14698 | echo "$ac_t""no" 1>&6 | |
70846f0a VZ |
14699 | fi |
14700 | done | |
14701 | ||
698dcdb6 VZ |
14702 | |
14703 | ||
14704 | for ac_hdr in sched.h | |
10f2d63a | 14705 | do |
698dcdb6 VZ |
14706 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
14707 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
edae8572 | 14708 | echo "configure:14709: checking for $ac_hdr" >&5 |
698dcdb6 VZ |
14709 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
14710 | echo $ac_n "(cached) $ac_c" 1>&6 | |
14711 | else | |
14712 | cat > conftest.$ac_ext <<EOF | |
edae8572 | 14713 | #line 14714 "configure" |
10f2d63a | 14714 | #include "confdefs.h" |
698dcdb6 VZ |
14715 | #include <$ac_hdr> |
14716 | EOF | |
14717 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
edae8572 | 14718 | { (eval echo configure:14719: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
14719 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
14720 | if test -z "$ac_err"; then | |
14721 | rm -rf conftest* | |
14722 | eval "ac_cv_header_$ac_safe=yes" | |
1e487827 | 14723 | else |
698dcdb6 VZ |
14724 | echo "$ac_err" >&5 |
14725 | echo "configure: failed program was:" >&5 | |
10f2d63a | 14726 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
14727 | rm -rf conftest* |
14728 | eval "ac_cv_header_$ac_safe=no" | |
10f2d63a | 14729 | fi |
698dcdb6 | 14730 | rm -f conftest* |
10f2d63a | 14731 | fi |
698dcdb6 VZ |
14732 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
14733 | echo "$ac_t""yes" 1>&6 | |
14734 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
14735 | cat >> confdefs.h <<EOF | |
14736 | #define $ac_tr_hdr 1 | |
10f2d63a | 14737 | EOF |
698dcdb6 VZ |
14738 | |
14739 | else | |
14740 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
14741 | fi |
14742 | done | |
14743 | ||
698dcdb6 VZ |
14744 | |
14745 | echo $ac_n "checking for sched_yield in -l$THREADS_LINK""... $ac_c" 1>&6 | |
edae8572 | 14746 | echo "configure:14747: checking for sched_yield in -l$THREADS_LINK" >&5 |
698dcdb6 VZ |
14747 | ac_lib_var=`echo $THREADS_LINK'_'sched_yield | sed 'y%./+-%__p_%'` |
14748 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
14749 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 14750 | else |
698dcdb6 | 14751 | ac_save_LIBS="$LIBS" |
10f2d63a | 14752 | LIBS="-l$THREADS_LINK $LIBS" |
698dcdb6 | 14753 | cat > conftest.$ac_ext <<EOF |
edae8572 | 14754 | #line 14755 "configure" |
10f2d63a VZ |
14755 | #include "confdefs.h" |
14756 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14757 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
14758 | builtin and then its argument prototype would still apply. */ |
14759 | char sched_yield(); | |
14760 | ||
14761 | int main() { | |
14762 | sched_yield() | |
14763 | ; return 0; } | |
14764 | EOF | |
edae8572 | 14765 | if { (eval echo configure:14766: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
14766 | rm -rf conftest* |
14767 | eval "ac_cv_lib_$ac_lib_var=yes" | |
14768 | else | |
14769 | echo "configure: failed program was:" >&5 | |
14770 | cat conftest.$ac_ext >&5 | |
14771 | rm -rf conftest* | |
14772 | eval "ac_cv_lib_$ac_lib_var=no" | |
14773 | fi | |
14774 | rm -f conftest* | |
14775 | LIBS="$ac_save_LIBS" | |
14776 | ||
14777 | fi | |
14778 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
14779 | echo "$ac_t""yes" 1>&6 | |
14780 | cat >> confdefs.h <<\EOF | |
10f2d63a VZ |
14781 | #define HAVE_SCHED_YIELD 1 |
14782 | EOF | |
14783 | ||
14784 | else | |
698dcdb6 VZ |
14785 | echo "$ac_t""no" 1>&6 |
14786 | echo $ac_n "checking for sched_yield in -lposix4""... $ac_c" 1>&6 | |
edae8572 | 14787 | echo "configure:14788: checking for sched_yield in -lposix4" >&5 |
698dcdb6 VZ |
14788 | ac_lib_var=`echo posix4'_'sched_yield | sed 'y%./+-%__p_%'` |
14789 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
14790 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 14791 | else |
698dcdb6 | 14792 | ac_save_LIBS="$LIBS" |
1e487827 | 14793 | LIBS="-lposix4 $LIBS" |
698dcdb6 | 14794 | cat > conftest.$ac_ext <<EOF |
edae8572 | 14795 | #line 14796 "configure" |
10f2d63a VZ |
14796 | #include "confdefs.h" |
14797 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14798 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
14799 | builtin and then its argument prototype would still apply. */ |
14800 | char sched_yield(); | |
14801 | ||
14802 | int main() { | |
14803 | sched_yield() | |
14804 | ; return 0; } | |
14805 | EOF | |
edae8572 | 14806 | if { (eval echo configure:14807: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
14807 | rm -rf conftest* |
14808 | eval "ac_cv_lib_$ac_lib_var=yes" | |
14809 | else | |
14810 | echo "configure: failed program was:" >&5 | |
14811 | cat conftest.$ac_ext >&5 | |
14812 | rm -rf conftest* | |
14813 | eval "ac_cv_lib_$ac_lib_var=no" | |
14814 | fi | |
14815 | rm -f conftest* | |
14816 | LIBS="$ac_save_LIBS" | |
14817 | ||
14818 | fi | |
14819 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
14820 | echo "$ac_t""yes" 1>&6 | |
14821 | cat >> confdefs.h <<\EOF | |
10f2d63a VZ |
14822 | #define HAVE_SCHED_YIELD 1 |
14823 | EOF | |
14824 | POSIX4_LINK="-lposix4" | |
14825 | else | |
698dcdb6 VZ |
14826 | echo "$ac_t""no" 1>&6 |
14827 | echo "configure: warning: wxThread::Yield will not work properly" 1>&2 | |
14828 | ||
6232543b | 14829 | fi |
10f2d63a | 14830 | |
698dcdb6 | 14831 | |
1e487827 | 14832 | fi |
703e0a69 | 14833 | |
698dcdb6 | 14834 | |
f6bcfd97 | 14835 | HAVE_PRIOR_FUNCS=0 |
698dcdb6 | 14836 | echo $ac_n "checking for pthread_attr_getschedpolicy in -l$THREADS_LINK""... $ac_c" 1>&6 |
edae8572 | 14837 | echo "configure:14838: checking for pthread_attr_getschedpolicy in -l$THREADS_LINK" >&5 |
698dcdb6 VZ |
14838 | ac_lib_var=`echo $THREADS_LINK'_'pthread_attr_getschedpolicy | sed 'y%./+-%__p_%'` |
14839 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
14840 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 14841 | else |
698dcdb6 | 14842 | ac_save_LIBS="$LIBS" |
10f2d63a | 14843 | LIBS="-l$THREADS_LINK $LIBS" |
698dcdb6 | 14844 | cat > conftest.$ac_ext <<EOF |
edae8572 | 14845 | #line 14846 "configure" |
10f2d63a VZ |
14846 | #include "confdefs.h" |
14847 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14848 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
14849 | builtin and then its argument prototype would still apply. */ |
14850 | char pthread_attr_getschedpolicy(); | |
14851 | ||
14852 | int main() { | |
14853 | pthread_attr_getschedpolicy() | |
14854 | ; return 0; } | |
14855 | EOF | |
edae8572 | 14856 | if { (eval echo configure:14857: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
14857 | rm -rf conftest* |
14858 | eval "ac_cv_lib_$ac_lib_var=yes" | |
14859 | else | |
14860 | echo "configure: failed program was:" >&5 | |
14861 | cat conftest.$ac_ext >&5 | |
14862 | rm -rf conftest* | |
14863 | eval "ac_cv_lib_$ac_lib_var=no" | |
14864 | fi | |
14865 | rm -f conftest* | |
14866 | LIBS="$ac_save_LIBS" | |
14867 | ||
14868 | fi | |
14869 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
14870 | echo "$ac_t""yes" 1>&6 | |
14871 | echo $ac_n "checking for pthread_attr_setschedparam in -l$THREADS_LINK""... $ac_c" 1>&6 | |
edae8572 | 14872 | echo "configure:14873: checking for pthread_attr_setschedparam in -l$THREADS_LINK" >&5 |
698dcdb6 VZ |
14873 | ac_lib_var=`echo $THREADS_LINK'_'pthread_attr_setschedparam | sed 'y%./+-%__p_%'` |
14874 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
14875 | echo $ac_n "(cached) $ac_c" 1>&6 | |
14876 | else | |
14877 | ac_save_LIBS="$LIBS" | |
f6bcfd97 | 14878 | LIBS="-l$THREADS_LINK $LIBS" |
698dcdb6 | 14879 | cat > conftest.$ac_ext <<EOF |
edae8572 | 14880 | #line 14881 "configure" |
f6bcfd97 BP |
14881 | #include "confdefs.h" |
14882 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14883 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
14884 | builtin and then its argument prototype would still apply. */ |
14885 | char pthread_attr_setschedparam(); | |
14886 | ||
14887 | int main() { | |
14888 | pthread_attr_setschedparam() | |
14889 | ; return 0; } | |
14890 | EOF | |
edae8572 | 14891 | if { (eval echo configure:14892: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
14892 | rm -rf conftest* |
14893 | eval "ac_cv_lib_$ac_lib_var=yes" | |
14894 | else | |
14895 | echo "configure: failed program was:" >&5 | |
14896 | cat conftest.$ac_ext >&5 | |
14897 | rm -rf conftest* | |
14898 | eval "ac_cv_lib_$ac_lib_var=no" | |
14899 | fi | |
14900 | rm -f conftest* | |
14901 | LIBS="$ac_save_LIBS" | |
14902 | ||
14903 | fi | |
14904 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
14905 | echo "$ac_t""yes" 1>&6 | |
14906 | echo $ac_n "checking for sched_get_priority_max in -l$THREADS_LINK""... $ac_c" 1>&6 | |
edae8572 | 14907 | echo "configure:14908: checking for sched_get_priority_max in -l$THREADS_LINK" >&5 |
698dcdb6 VZ |
14908 | ac_lib_var=`echo $THREADS_LINK'_'sched_get_priority_max | sed 'y%./+-%__p_%'` |
14909 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
14910 | echo $ac_n "(cached) $ac_c" 1>&6 | |
14911 | else | |
14912 | ac_save_LIBS="$LIBS" | |
f6bcfd97 | 14913 | LIBS="-l$THREADS_LINK $LIBS" |
698dcdb6 | 14914 | cat > conftest.$ac_ext <<EOF |
edae8572 | 14915 | #line 14916 "configure" |
f6bcfd97 BP |
14916 | #include "confdefs.h" |
14917 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14918 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
14919 | builtin and then its argument prototype would still apply. */ |
14920 | char sched_get_priority_max(); | |
14921 | ||
14922 | int main() { | |
14923 | sched_get_priority_max() | |
14924 | ; return 0; } | |
14925 | EOF | |
edae8572 | 14926 | if { (eval echo configure:14927: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
14927 | rm -rf conftest* |
14928 | eval "ac_cv_lib_$ac_lib_var=yes" | |
14929 | else | |
14930 | echo "configure: failed program was:" >&5 | |
14931 | cat conftest.$ac_ext >&5 | |
14932 | rm -rf conftest* | |
14933 | eval "ac_cv_lib_$ac_lib_var=no" | |
14934 | fi | |
14935 | rm -f conftest* | |
14936 | LIBS="$ac_save_LIBS" | |
14937 | ||
14938 | fi | |
14939 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
14940 | echo "$ac_t""yes" 1>&6 | |
f6bcfd97 | 14941 | HAVE_PRIOR_FUNCS=1 |
10f2d63a | 14942 | else |
698dcdb6 VZ |
14943 | echo "$ac_t""no" 1>&6 |
14944 | echo $ac_n "checking for sched_get_priority_max in -lposix4""... $ac_c" 1>&6 | |
edae8572 | 14945 | echo "configure:14946: checking for sched_get_priority_max in -lposix4" >&5 |
698dcdb6 VZ |
14946 | ac_lib_var=`echo posix4'_'sched_get_priority_max | sed 'y%./+-%__p_%'` |
14947 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
14948 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1e487827 | 14949 | else |
698dcdb6 | 14950 | ac_save_LIBS="$LIBS" |
1e487827 | 14951 | LIBS="-lposix4 $LIBS" |
698dcdb6 | 14952 | cat > conftest.$ac_ext <<EOF |
edae8572 | 14953 | #line 14954 "configure" |
10f2d63a | 14954 | #include "confdefs.h" |
6232543b | 14955 | /* Override any gcc2 internal prototype to avoid an error. */ |
6232543b | 14956 | /* We use char because int might match the return type of a gcc2 |
698dcdb6 VZ |
14957 | builtin and then its argument prototype would still apply. */ |
14958 | char sched_get_priority_max(); | |
14959 | ||
14960 | int main() { | |
14961 | sched_get_priority_max() | |
14962 | ; return 0; } | |
14963 | EOF | |
edae8572 | 14964 | if { (eval echo configure:14965: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
14965 | rm -rf conftest* |
14966 | eval "ac_cv_lib_$ac_lib_var=yes" | |
14967 | else | |
14968 | echo "configure: failed program was:" >&5 | |
14969 | cat conftest.$ac_ext >&5 | |
14970 | rm -rf conftest* | |
14971 | eval "ac_cv_lib_$ac_lib_var=no" | |
14972 | fi | |
14973 | rm -f conftest* | |
14974 | LIBS="$ac_save_LIBS" | |
10f2d63a | 14975 | |
698dcdb6 VZ |
14976 | fi |
14977 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
14978 | echo "$ac_t""yes" 1>&6 | |
14979 | ||
f6bcfd97 BP |
14980 | HAVE_PRIOR_FUNCS=1 |
14981 | POSIX4_LINK="-lposix4" | |
698dcdb6 VZ |
14982 | |
14983 | else | |
14984 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
14985 | fi |
14986 | ||
698dcdb6 | 14987 | |
10f2d63a VZ |
14988 | fi |
14989 | ||
698dcdb6 VZ |
14990 | |
14991 | else | |
14992 | echo "$ac_t""no" 1>&6 | |
6232543b | 14993 | fi |
10f2d63a | 14994 | |
698dcdb6 VZ |
14995 | |
14996 | else | |
14997 | echo "$ac_t""no" 1>&6 | |
1e487827 | 14998 | fi |
703e0a69 | 14999 | |
698dcdb6 | 15000 | |
f6bcfd97 | 15001 | if test "$HAVE_PRIOR_FUNCS" = 1; then |
698dcdb6 | 15002 | cat >> confdefs.h <<\EOF |
f6bcfd97 BP |
15003 | #define HAVE_THREAD_PRIORITY_FUNCTIONS 1 |
15004 | EOF | |
15005 | ||
15006 | else | |
698dcdb6 | 15007 | echo "configure: warning: Setting thread priority will not work" 1>&2 |
f6bcfd97 BP |
15008 | fi |
15009 | ||
698dcdb6 | 15010 | echo $ac_n "checking for pthread_cancel in -l$THREADS_LINK""... $ac_c" 1>&6 |
edae8572 | 15011 | echo "configure:15012: checking for pthread_cancel in -l$THREADS_LINK" >&5 |
698dcdb6 VZ |
15012 | ac_lib_var=`echo $THREADS_LINK'_'pthread_cancel | sed 'y%./+-%__p_%'` |
15013 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
15014 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 15015 | else |
698dcdb6 | 15016 | ac_save_LIBS="$LIBS" |
10f2d63a | 15017 | LIBS="-l$THREADS_LINK $LIBS" |
698dcdb6 | 15018 | cat > conftest.$ac_ext <<EOF |
edae8572 | 15019 | #line 15020 "configure" |
10f2d63a VZ |
15020 | #include "confdefs.h" |
15021 | /* Override any gcc2 internal prototype to avoid an error. */ | |
15022 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
15023 | builtin and then its argument prototype would still apply. */ |
15024 | char pthread_cancel(); | |
15025 | ||
15026 | int main() { | |
15027 | pthread_cancel() | |
15028 | ; return 0; } | |
15029 | EOF | |
edae8572 | 15030 | if { (eval echo configure:15031: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
15031 | rm -rf conftest* |
15032 | eval "ac_cv_lib_$ac_lib_var=yes" | |
15033 | else | |
15034 | echo "configure: failed program was:" >&5 | |
15035 | cat conftest.$ac_ext >&5 | |
15036 | rm -rf conftest* | |
15037 | eval "ac_cv_lib_$ac_lib_var=no" | |
15038 | fi | |
15039 | rm -f conftest* | |
15040 | LIBS="$ac_save_LIBS" | |
15041 | ||
15042 | fi | |
15043 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
15044 | echo "$ac_t""yes" 1>&6 | |
15045 | cat >> confdefs.h <<\EOF | |
10f2d63a VZ |
15046 | #define HAVE_PTHREAD_CANCEL 1 |
15047 | EOF | |
15048 | ||
15049 | else | |
698dcdb6 VZ |
15050 | echo "$ac_t""no" 1>&6 |
15051 | echo "configure: warning: wxThread::Kill() will not work properly" 1>&2 | |
10f2d63a VZ |
15052 | fi |
15053 | ||
1e487827 | 15054 | |
698dcdb6 | 15055 | echo $ac_n "checking for pthread_cleanup_push/pop""... $ac_c" 1>&6 |
edae8572 | 15056 | echo "configure:15057: checking for pthread_cleanup_push/pop" >&5 |
698dcdb6 VZ |
15057 | if eval "test \"`echo '$''{'wx_cv_func_pthread_cleanup_push'+set}'`\" = set"; then |
15058 | echo $ac_n "(cached) $ac_c" 1>&6 | |
15059 | else | |
15060 | ||
15061 | cat > conftest.$ac_ext <<EOF | |
edae8572 | 15062 | #line 15063 "configure" |
10f2d63a VZ |
15063 | #include "confdefs.h" |
15064 | #include <pthread.h> | |
698dcdb6 | 15065 | int main() { |
10f2d63a VZ |
15066 | |
15067 | pthread_cleanup_push(NULL, NULL); | |
15068 | pthread_cleanup_pop(0); | |
698dcdb6 VZ |
15069 | |
15070 | ; return 0; } | |
15071 | EOF | |
edae8572 | 15072 | if { (eval echo configure:15073: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 VZ |
15073 | rm -rf conftest* |
15074 | ||
10f2d63a | 15075 | wx_cv_func_pthread_cleanup_push=yes |
698dcdb6 | 15076 | |
10f2d63a | 15077 | else |
698dcdb6 VZ |
15078 | echo "configure: failed program was:" >&5 |
15079 | cat conftest.$ac_ext >&5 | |
15080 | rm -rf conftest* | |
15081 | ||
10f2d63a | 15082 | wx_cv_func_pthread_cleanup_push=no |
698dcdb6 | 15083 | |
6232543b | 15084 | fi |
698dcdb6 VZ |
15085 | rm -f conftest* |
15086 | ||
1e487827 | 15087 | fi |
698dcdb6 VZ |
15088 | |
15089 | echo "$ac_t""$wx_cv_func_pthread_cleanup_push" 1>&6 | |
10f2d63a | 15090 | |
d9b9876f | 15091 | if test "$wx_cv_func_pthread_cleanup_push" = "yes"; then |
698dcdb6 | 15092 | cat >> confdefs.h <<\EOF |
d9b9876f VZ |
15093 | #define HAVE_THREAD_CLEANUP_FUNCTIONS 1 |
15094 | EOF | |
15095 | ||
15096 | fi | |
15097 | ||
698dcdb6 | 15098 | |
b48da802 VZ |
15099 | if test "x$wx_lib_glibc21" = "xyes"; then |
15100 | CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE" | |
ab252f7b VZ |
15101 | fi |
15102 | ||
698dcdb6 | 15103 | echo $ac_n "checking for pthread_mutexattr_t""... $ac_c" 1>&6 |
edae8572 | 15104 | echo "configure:15105: checking for pthread_mutexattr_t" >&5 |
698dcdb6 VZ |
15105 | if eval "test \"`echo '$''{'wx_cv_type_pthread_mutexattr_t'+set}'`\" = set"; then |
15106 | echo $ac_n "(cached) $ac_c" 1>&6 | |
d9b9876f | 15107 | else |
698dcdb6 VZ |
15108 | |
15109 | cat > conftest.$ac_ext <<EOF | |
edae8572 | 15110 | #line 15111 "configure" |
d9b9876f VZ |
15111 | #include "confdefs.h" |
15112 | #include <pthread.h> | |
698dcdb6 | 15113 | int main() { |
d9b9876f VZ |
15114 | |
15115 | pthread_mutexattr_t attr; | |
15116 | pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE); | |
698dcdb6 VZ |
15117 | |
15118 | ; return 0; } | |
15119 | EOF | |
edae8572 | 15120 | if { (eval echo configure:15121: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 VZ |
15121 | rm -rf conftest* |
15122 | ||
d9b9876f | 15123 | wx_cv_type_pthread_mutexattr_t=yes |
698dcdb6 | 15124 | |
d9b9876f | 15125 | else |
698dcdb6 VZ |
15126 | echo "configure: failed program was:" >&5 |
15127 | cat conftest.$ac_ext >&5 | |
15128 | rm -rf conftest* | |
15129 | ||
d9b9876f | 15130 | wx_cv_type_pthread_mutexattr_t=no |
698dcdb6 VZ |
15131 | |
15132 | ||
6232543b | 15133 | fi |
698dcdb6 VZ |
15134 | rm -f conftest* |
15135 | ||
1e487827 | 15136 | fi |
698dcdb6 VZ |
15137 | |
15138 | echo "$ac_t""$wx_cv_type_pthread_mutexattr_t" 1>&6 | |
d9b9876f VZ |
15139 | |
15140 | if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then | |
698dcdb6 | 15141 | cat >> confdefs.h <<\EOF |
d9b9876f VZ |
15142 | #define HAVE_PTHREAD_MUTEXATTR_T 1 |
15143 | EOF | |
15144 | ||
15145 | else | |
698dcdb6 | 15146 | echo $ac_n "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER""... $ac_c" 1>&6 |
edae8572 | 15147 | echo "configure:15148: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5 |
698dcdb6 VZ |
15148 | if eval "test \"`echo '$''{'wx_cv_type_pthread_rec_mutex_init'+set}'`\" = set"; then |
15149 | echo $ac_n "(cached) $ac_c" 1>&6 | |
15150 | else | |
15151 | ||
15152 | cat > conftest.$ac_ext <<EOF | |
edae8572 | 15153 | #line 15154 "configure" |
d9b9876f VZ |
15154 | #include "confdefs.h" |
15155 | #include <pthread.h> | |
698dcdb6 | 15156 | int main() { |
d9b9876f VZ |
15157 | |
15158 | pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP; | |
698dcdb6 VZ |
15159 | |
15160 | ; return 0; } | |
15161 | EOF | |
edae8572 | 15162 | if { (eval echo configure:15163: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 VZ |
15163 | rm -rf conftest* |
15164 | ||
d9b9876f | 15165 | wx_cv_type_pthread_rec_mutex_init=yes |
698dcdb6 | 15166 | |
d9b9876f | 15167 | else |
698dcdb6 VZ |
15168 | echo "configure: failed program was:" >&5 |
15169 | cat conftest.$ac_ext >&5 | |
15170 | rm -rf conftest* | |
15171 | ||
d9b9876f | 15172 | wx_cv_type_pthread_rec_mutex_init=no |
698dcdb6 VZ |
15173 | |
15174 | ||
6232543b | 15175 | fi |
698dcdb6 VZ |
15176 | rm -f conftest* |
15177 | ||
1e487827 | 15178 | fi |
698dcdb6 VZ |
15179 | |
15180 | echo "$ac_t""$wx_cv_type_pthread_rec_mutex_init" 1>&6 | |
3765e936 | 15181 | if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then |
698dcdb6 | 15182 | cat >> confdefs.h <<\EOF |
d9b9876f VZ |
15183 | #define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1 |
15184 | EOF | |
15185 | ||
15186 | else | |
698dcdb6 | 15187 | echo "configure: warning: wxMutex won't be recursive on this platform" 1>&2 |
d9b9876f VZ |
15188 | fi |
15189 | fi | |
15190 | ||
10f2d63a | 15191 | THREADS_LINK="-l$THREADS_LINK" |
186837b0 VZ |
15192 | |
15193 | if test "$USE_SOLARIS" = "yes" -a "$GCC" != "yes"; then | |
a3cb1afc | 15194 | CPPFLAGS="${CFLAGS} -mt" |
186837b0 VZ |
15195 | CXXFLAGS="${CXXFLAGS} -mt" |
15196 | LDFLAGS="${LDFLAGS} -mt" | |
15197 | fi | |
10f2d63a VZ |
15198 | fi |
15199 | ||
15200 | fi | |
15201 | ||
15202 | if test "$wxUSE_THREADS" = "yes"; then | |
698dcdb6 | 15203 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
15204 | #define wxUSE_THREADS 1 |
15205 | EOF | |
15206 | ||
698dcdb6 | 15207 | |
7b6058cd | 15208 | if test "$USE_DARWIN" != 1; then |
3a922bb4 | 15209 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D_REENTRANT" |
2c6025bc | 15210 | fi |
10f2d63a VZ |
15211 | |
15212 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread" | |
15213 | else | |
15214 | if test "$ac_cv_func_strtok_r" = "yes"; then | |
698dcdb6 | 15215 | echo $ac_n "checking if -D_REENTRANT is needed""... $ac_c" 1>&6 |
edae8572 | 15216 | echo "configure:15217: checking if -D_REENTRANT is needed" >&5 |
ab9b9eab | 15217 | if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then |
3a922bb4 | 15218 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D_REENTRANT" |
698dcdb6 | 15219 | echo "$ac_t""yes" 1>&6 |
ab9b9eab | 15220 | else |
698dcdb6 | 15221 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
15222 | fi |
15223 | fi | |
15224 | fi | |
15225 | ||
6f72b082 | 15226 | if test "$WXGTK20" = 1 ; then |
698dcdb6 | 15227 | cat >> confdefs.h <<EOF |
6f72b082 | 15228 | #define __WXGTK20__ $WXGTK20 |
13111b2a VZ |
15229 | EOF |
15230 | ||
15231 | WXGTK12=1 | |
15232 | fi | |
15233 | ||
10f2d63a | 15234 | if test "$WXGTK12" = 1 ; then |
698dcdb6 | 15235 | cat >> confdefs.h <<EOF |
10f2d63a VZ |
15236 | #define __WXGTK12__ $WXGTK12 |
15237 | EOF | |
15238 | ||
15239 | fi | |
15240 | ||
f6bcfd97 | 15241 | if test "$WXGTK127" = 1 ; then |
698dcdb6 | 15242 | cat >> confdefs.h <<EOF |
f6bcfd97 BP |
15243 | #define __WXGTK127__ $WXGTK127 |
15244 | EOF | |
15245 | ||
15246 | fi | |
15247 | ||
10f2d63a VZ |
15248 | WXDEBUG= |
15249 | ||
15250 | if test "$wxUSE_DEBUG_INFO" = "yes" ; then | |
15251 | WXDEBUG="-g" | |
15252 | wxUSE_OPTIMISE=no | |
15253 | fi | |
15254 | ||
15255 | if test "$wxUSE_DEBUG_GDB" = "yes" ; then | |
15256 | wxUSE_DEBUG_INFO=yes | |
15257 | WXDEBUG="-ggdb" | |
15258 | fi | |
15259 | ||
15260 | if test "$wxUSE_DEBUG_FLAG" = "yes" ; then | |
698dcdb6 | 15261 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
15262 | #define WXDEBUG 1 |
15263 | EOF | |
15264 | ||
15265 | WXDEBUG_DEFINE="-D__WXDEBUG__" | |
15266 | else | |
15267 | if test "$wxUSE_GTK" = 1 ; then | |
15268 | WXDEBUG_DEFINE="-DGTK_NO_CHECK_CASTS" | |
15269 | fi | |
15270 | fi | |
15271 | ||
15272 | if test "$wxUSE_MEM_TRACING" = "yes" ; then | |
698dcdb6 | 15273 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
15274 | #define wxUSE_MEMORY_TRACING 1 |
15275 | EOF | |
15276 | ||
698dcdb6 | 15277 | cat >> confdefs.h <<\EOF |
10f2d63a | 15278 | #define wxUSE_GLOBAL_MEMORY_OPERATORS 1 |
47c13eb7 VS |
15279 | EOF |
15280 | ||
698dcdb6 | 15281 | cat >> confdefs.h <<\EOF |
47c13eb7 | 15282 | #define wxUSE_DEBUG_NEW_ALWAYS 1 |
10f2d63a VZ |
15283 | EOF |
15284 | ||
15285 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck" | |
15286 | fi | |
15287 | ||
15288 | if test "$wxUSE_DMALLOC" = "yes" ; then | |
15289 | DMALLOC_LINK="-ldmalloc" | |
15290 | fi | |
15291 | ||
15292 | PROFILE= | |
15293 | if test "$wxUSE_PROFILE" = "yes" ; then | |
15294 | PROFILE="-pg" | |
15295 | fi | |
15296 | ||
10f2d63a VZ |
15297 | if test "$GCC" = yes ; then |
15298 | if test "$wxUSE_NO_RTTI" = "yes" ; then | |
3a922bb4 | 15299 | CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-rtti" |
10f2d63a VZ |
15300 | fi |
15301 | if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then | |
3a922bb4 | 15302 | CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-exceptions" |
10f2d63a VZ |
15303 | fi |
15304 | if test "$wxUSE_PERMISSIVE" = "yes" ; then | |
caa2c79b | 15305 | CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fpermissive" |
10f2d63a VZ |
15306 | fi |
15307 | if test "$wxUSE_NO_DEPS" = "no" ; then | |
3a922bb4 RL |
15308 | CFLAGS="-MMD ${CFLAGS}" |
15309 | CXXFLAGS="-MMD ${CXXFLAGS}" | |
15310 | fi | |
15311 | if test "$USE_WIN32" = 1 ; then | |
15312 | # I'm not even really sure what this was ever added to solve, | |
15313 | # but someone added it for mingw native builds, so I guess | |
15314 | # they had a reason, right?? | |
15315 | CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fno-pcc-struct-return" | |
10f2d63a VZ |
15316 | fi |
15317 | fi | |
15318 | ||
698dcdb6 | 15319 | |
10f2d63a VZ |
15320 | CXXFLAGS=`echo "${CXXFLAGS}" | sed "s/\-O.//g" ` |
15321 | CFLAGS=`echo "${CFLAGS}" | sed "s/\-O.//g" ` | |
15322 | if test "$wxUSE_OPTIMISE" = "no" ; then | |
15323 | OPTIMISE= | |
15324 | else | |
15325 | if test "$GCC" = yes ; then | |
15326 | OPTIMISE="-O2" | |
15327 | case "${host}" in | |
15328 | i586-*-*|i686-*-* ) | |
15329 | OPTIMISE="${OPTIMISE} " | |
15330 | ;; | |
15331 | esac | |
15332 | else | |
15333 | OPTIMISE="-O" | |
15334 | fi | |
15335 | fi | |
15336 | ||
54276ccf VZ |
15337 | if test "$WXWIN_COMPATIBILITY_2" = "yes"; then |
15338 | cat >> confdefs.h <<\EOF | |
15339 | #define WXWIN_COMPATIBILITY_2 1 | |
15340 | EOF | |
15341 | ||
15342 | ||
15343 | WXWIN_COMPATIBILITY_2_2="yes" | |
15344 | fi | |
15345 | ||
15346 | if test "$WXWIN_COMPATIBILITY_2_2" = "yes"; then | |
15347 | cat >> confdefs.h <<\EOF | |
15348 | #define WXWIN_COMPATIBILITY_2_2 1 | |
15349 | EOF | |
15350 | ||
15351 | fi | |
15352 | ||
698dcdb6 | 15353 | |
10f2d63a | 15354 | ZLIB_INCLUDE= |
422107f9 | 15355 | if test "$wxUSE_ZLIB" = "yes" -o "$wxUSE_ZLIB" = "sys" ; then |
698dcdb6 | 15356 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
15357 | #define wxUSE_ZLIB 1 |
15358 | EOF | |
15359 | ||
422107f9 VZ |
15360 | if test "$wxUSE_ZLIB" = "yes" ; then |
15361 | ZLIB_INCLUDE="-I\${top_srcdir}/src/zlib" | |
15362 | else | |
15363 | ZLIB_LINK= | |
698dcdb6 VZ |
15364 | ac_safe=`echo "zlib.h" | sed 'y%./+-%__p_%'` |
15365 | echo $ac_n "checking for zlib.h""... $ac_c" 1>&6 | |
edae8572 | 15366 | echo "configure:15367: checking for zlib.h" >&5 |
698dcdb6 VZ |
15367 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
15368 | echo $ac_n "(cached) $ac_c" 1>&6 | |
15369 | else | |
15370 | cat > conftest.$ac_ext <<EOF | |
edae8572 | 15371 | #line 15372 "configure" |
422107f9 VZ |
15372 | #include "confdefs.h" |
15373 | #include <zlib.h> | |
698dcdb6 VZ |
15374 | EOF |
15375 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
edae8572 | 15376 | { (eval echo configure:15377: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
15377 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
15378 | if test -z "$ac_err"; then | |
15379 | rm -rf conftest* | |
15380 | eval "ac_cv_header_$ac_safe=yes" | |
422107f9 | 15381 | else |
698dcdb6 VZ |
15382 | echo "$ac_err" >&5 |
15383 | echo "configure: failed program was:" >&5 | |
422107f9 | 15384 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
15385 | rm -rf conftest* |
15386 | eval "ac_cv_header_$ac_safe=no" | |
422107f9 | 15387 | fi |
698dcdb6 | 15388 | rm -f conftest* |
422107f9 | 15389 | fi |
698dcdb6 VZ |
15390 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
15391 | echo "$ac_t""yes" 1>&6 | |
15392 | echo $ac_n "checking for deflate in -lz""... $ac_c" 1>&6 | |
edae8572 | 15393 | echo "configure:15394: checking for deflate in -lz" >&5 |
698dcdb6 VZ |
15394 | ac_lib_var=`echo z'_'deflate | sed 'y%./+-%__p_%'` |
15395 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
15396 | echo $ac_n "(cached) $ac_c" 1>&6 | |
422107f9 | 15397 | else |
698dcdb6 | 15398 | ac_save_LIBS="$LIBS" |
422107f9 | 15399 | LIBS="-lz $LIBS" |
698dcdb6 | 15400 | cat > conftest.$ac_ext <<EOF |
edae8572 | 15401 | #line 15402 "configure" |
422107f9 VZ |
15402 | #include "confdefs.h" |
15403 | /* Override any gcc2 internal prototype to avoid an error. */ | |
15404 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
15405 | builtin and then its argument prototype would still apply. */ |
15406 | char deflate(); | |
15407 | ||
15408 | int main() { | |
15409 | deflate() | |
15410 | ; return 0; } | |
15411 | EOF | |
edae8572 | 15412 | if { (eval echo configure:15413: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
15413 | rm -rf conftest* |
15414 | eval "ac_cv_lib_$ac_lib_var=yes" | |
15415 | else | |
15416 | echo "configure: failed program was:" >&5 | |
15417 | cat conftest.$ac_ext >&5 | |
15418 | rm -rf conftest* | |
15419 | eval "ac_cv_lib_$ac_lib_var=no" | |
15420 | fi | |
15421 | rm -f conftest* | |
15422 | LIBS="$ac_save_LIBS" | |
15423 | ||
15424 | fi | |
15425 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
15426 | echo "$ac_t""yes" 1>&6 | |
422107f9 | 15427 | ZLIB_LINK="-lz" |
698dcdb6 VZ |
15428 | else |
15429 | echo "$ac_t""no" 1>&6 | |
422107f9 VZ |
15430 | fi |
15431 | ||
698dcdb6 VZ |
15432 | else |
15433 | echo "$ac_t""no" 1>&6 | |
422107f9 VZ |
15434 | fi |
15435 | ||
15436 | if test "x$ZLIB_LINK" = "x" ; then | |
698dcdb6 | 15437 | { echo "configure: error: system zlib compression library not found! Use --with-zlib=yes to use built-in zlib" 1>&2; exit 1; } |
422107f9 VZ |
15438 | fi |
15439 | fi | |
10f2d63a VZ |
15440 | fi |
15441 | ||
15442 | PNG_INCLUDE= | |
422107f9 | 15443 | if test "$wxUSE_LIBPNG" = "yes" -o "$wxUSE_LIBPNG" = "sys" ; then |
698dcdb6 | 15444 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
15445 | #define wxUSE_LIBPNG 1 |
15446 | EOF | |
15447 | ||
41fd4136 | 15448 | if test "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then |
698dcdb6 | 15449 | echo "configure: warning: --with-libpng=sys doesn't work without --with-zlib=sys, will compile the built-in libpng instead" 1>&2 |
422107f9 VZ |
15450 | wxUSE_LIBPNG=yes |
15451 | fi | |
15452 | ||
15453 | if test "$wxUSE_LIBPNG" = "yes" ; then | |
15454 | PNG_INCLUDE="-I\${top_srcdir}/src/png" | |
15455 | else | |
15456 | PNG_LINK= | |
698dcdb6 VZ |
15457 | ac_safe=`echo "png.h" | sed 'y%./+-%__p_%'` |
15458 | echo $ac_n "checking for png.h""... $ac_c" 1>&6 | |
edae8572 | 15459 | echo "configure:15460: checking for png.h" >&5 |
698dcdb6 VZ |
15460 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
15461 | echo $ac_n "(cached) $ac_c" 1>&6 | |
15462 | else | |
15463 | cat > conftest.$ac_ext <<EOF | |
edae8572 | 15464 | #line 15465 "configure" |
422107f9 VZ |
15465 | #include "confdefs.h" |
15466 | #include <png.h> | |
698dcdb6 VZ |
15467 | EOF |
15468 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
edae8572 | 15469 | { (eval echo configure:15470: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
15470 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
15471 | if test -z "$ac_err"; then | |
15472 | rm -rf conftest* | |
15473 | eval "ac_cv_header_$ac_safe=yes" | |
422107f9 | 15474 | else |
698dcdb6 VZ |
15475 | echo "$ac_err" >&5 |
15476 | echo "configure: failed program was:" >&5 | |
422107f9 | 15477 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
15478 | rm -rf conftest* |
15479 | eval "ac_cv_header_$ac_safe=no" | |
422107f9 | 15480 | fi |
698dcdb6 | 15481 | rm -f conftest* |
422107f9 | 15482 | fi |
698dcdb6 VZ |
15483 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
15484 | echo "$ac_t""yes" 1>&6 | |
15485 | echo $ac_n "checking for png_check_sig in -lpng""... $ac_c" 1>&6 | |
edae8572 | 15486 | echo "configure:15487: checking for png_check_sig in -lpng" >&5 |
698dcdb6 VZ |
15487 | ac_lib_var=`echo png'_'png_check_sig | sed 'y%./+-%__p_%'` |
15488 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
15489 | echo $ac_n "(cached) $ac_c" 1>&6 | |
422107f9 | 15490 | else |
698dcdb6 | 15491 | ac_save_LIBS="$LIBS" |
422107f9 | 15492 | LIBS="-lpng -lz -lm $LIBS" |
698dcdb6 | 15493 | cat > conftest.$ac_ext <<EOF |
edae8572 | 15494 | #line 15495 "configure" |
422107f9 VZ |
15495 | #include "confdefs.h" |
15496 | /* Override any gcc2 internal prototype to avoid an error. */ | |
15497 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
15498 | builtin and then its argument prototype would still apply. */ |
15499 | char png_check_sig(); | |
15500 | ||
15501 | int main() { | |
15502 | png_check_sig() | |
15503 | ; return 0; } | |
15504 | EOF | |
edae8572 | 15505 | if { (eval echo configure:15506: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
15506 | rm -rf conftest* |
15507 | eval "ac_cv_lib_$ac_lib_var=yes" | |
15508 | else | |
15509 | echo "configure: failed program was:" >&5 | |
15510 | cat conftest.$ac_ext >&5 | |
15511 | rm -rf conftest* | |
15512 | eval "ac_cv_lib_$ac_lib_var=no" | |
15513 | fi | |
15514 | rm -f conftest* | |
15515 | LIBS="$ac_save_LIBS" | |
15516 | ||
15517 | fi | |
15518 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
15519 | echo "$ac_t""yes" 1>&6 | |
422107f9 | 15520 | PNG_LINK="-lpng" |
698dcdb6 VZ |
15521 | else |
15522 | echo "$ac_t""no" 1>&6 | |
422107f9 VZ |
15523 | fi |
15524 | ||
698dcdb6 VZ |
15525 | |
15526 | else | |
15527 | echo "$ac_t""no" 1>&6 | |
422107f9 VZ |
15528 | fi |
15529 | ||
15530 | if test "x$PNG_LINK" = "x" ; then | |
698dcdb6 | 15531 | { echo "configure: error: system png library not found! Use --with-libpng=yes to use the built-in libpng" 1>&2; exit 1; } |
422107f9 VZ |
15532 | fi |
15533 | fi | |
15534 | ||
10f2d63a VZ |
15535 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png" |
15536 | fi | |
15537 | ||
15538 | JPEG_INCLUDE= | |
422107f9 | 15539 | if test "$wxUSE_LIBJPEG" = "yes" -o "$wxUSE_LIBJPEG" = "sys" ; then |
698dcdb6 | 15540 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
15541 | #define wxUSE_LIBJPEG 1 |
15542 | EOF | |
15543 | ||
422107f9 VZ |
15544 | if test "$wxUSE_LIBJPEG" = "yes" ; then |
15545 | JPEG_INCLUDE="-I\${top_srcdir}/src/jpeg" | |
15546 | else | |
15547 | JPEG_LINK= | |
463abc64 | 15548 | echo $ac_n "checking for jpeglib.h""... $ac_c" 1>&6 |
edae8572 | 15549 | echo "configure:15550: checking for jpeglib.h" >&5 |
463abc64 | 15550 | if eval "test \"`echo '$''{'ac_cv_header_jpeglib_h'+set}'`\" = set"; then |
698dcdb6 VZ |
15551 | echo $ac_n "(cached) $ac_c" 1>&6 |
15552 | else | |
15553 | cat > conftest.$ac_ext <<EOF | |
edae8572 | 15554 | #line 15555 "configure" |
422107f9 | 15555 | #include "confdefs.h" |
463abc64 VZ |
15556 | |
15557 | #undef HAVE_STDLIB_H | |
15558 | #include <stdio.h> | |
15559 | #include <jpeglib.h> | |
15560 | ||
15561 | int main() { | |
15562 | ||
15563 | ||
15564 | ; return 0; } | |
698dcdb6 | 15565 | EOF |
edae8572 | 15566 | if { (eval echo configure:15567: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 | 15567 | rm -rf conftest* |
463abc64 | 15568 | ac_cv_header_jpeglib_h=yes |
6232543b | 15569 | else |
698dcdb6 | 15570 | echo "configure: failed program was:" >&5 |
422107f9 | 15571 | cat conftest.$ac_ext >&5 |
698dcdb6 | 15572 | rm -rf conftest* |
463abc64 VZ |
15573 | ac_cv_header_jpeglib_h=no |
15574 | ||
422107f9 | 15575 | fi |
698dcdb6 | 15576 | rm -f conftest* |
463abc64 | 15577 | |
422107f9 | 15578 | fi |
463abc64 VZ |
15579 | |
15580 | echo "$ac_t""$ac_cv_header_jpeglib_h" 1>&6 | |
15581 | ||
15582 | if test "$ac_cv_header_jpeglib_h" = "yes"; then | |
15583 | echo $ac_n "checking for jpeg_read_header in -ljpeg""... $ac_c" 1>&6 | |
edae8572 | 15584 | echo "configure:15585: checking for jpeg_read_header in -ljpeg" >&5 |
698dcdb6 VZ |
15585 | ac_lib_var=`echo jpeg'_'jpeg_read_header | sed 'y%./+-%__p_%'` |
15586 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
15587 | echo $ac_n "(cached) $ac_c" 1>&6 | |
422107f9 | 15588 | else |
698dcdb6 | 15589 | ac_save_LIBS="$LIBS" |
422107f9 | 15590 | LIBS="-ljpeg $LIBS" |
698dcdb6 | 15591 | cat > conftest.$ac_ext <<EOF |
edae8572 | 15592 | #line 15593 "configure" |
422107f9 VZ |
15593 | #include "confdefs.h" |
15594 | /* Override any gcc2 internal prototype to avoid an error. */ | |
15595 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
15596 | builtin and then its argument prototype would still apply. */ |
15597 | char jpeg_read_header(); | |
15598 | ||
15599 | int main() { | |
15600 | jpeg_read_header() | |
15601 | ; return 0; } | |
15602 | EOF | |
edae8572 | 15603 | if { (eval echo configure:15604: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
15604 | rm -rf conftest* |
15605 | eval "ac_cv_lib_$ac_lib_var=yes" | |
15606 | else | |
15607 | echo "configure: failed program was:" >&5 | |
15608 | cat conftest.$ac_ext >&5 | |
15609 | rm -rf conftest* | |
15610 | eval "ac_cv_lib_$ac_lib_var=no" | |
15611 | fi | |
15612 | rm -f conftest* | |
15613 | LIBS="$ac_save_LIBS" | |
15614 | ||
15615 | fi | |
15616 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
15617 | echo "$ac_t""yes" 1>&6 | |
422107f9 | 15618 | JPEG_LINK="-ljpeg" |
698dcdb6 VZ |
15619 | else |
15620 | echo "$ac_t""no" 1>&6 | |
422107f9 VZ |
15621 | fi |
15622 | ||
463abc64 | 15623 | fi |
422107f9 VZ |
15624 | |
15625 | if test "x$JPEG_LINK" = "x" ; then | |
698dcdb6 | 15626 | { echo "configure: error: system jpeg library not found! Use --with-libjpeg=yes to use the built-in one" 1>&2; exit 1; } |
422107f9 VZ |
15627 | fi |
15628 | fi | |
10f2d63a VZ |
15629 | fi |
15630 | ||
c7a2bf27 | 15631 | TIFF_INCLUDE= |
0dcf9893 | 15632 | if test "$wxUSE_LIBTIFF" = "yes" -o "$wxUSE_LIBTIFF" = "sys" ; then |
698dcdb6 | 15633 | cat >> confdefs.h <<\EOF |
c7a2bf27 RR |
15634 | #define wxUSE_LIBTIFF 1 |
15635 | EOF | |
15636 | ||
665bbe97 | 15637 | if test "$wxUSE_LIBTIFF" = "yes" ; then |
0dcf9893 VZ |
15638 | TIFF_INCLUDE="-I\${top_srcdir}/src/tiff" |
15639 | else | |
15640 | TIFF_LINK= | |
698dcdb6 VZ |
15641 | ac_safe=`echo "tiffio.h" | sed 'y%./+-%__p_%'` |
15642 | echo $ac_n "checking for tiffio.h""... $ac_c" 1>&6 | |
edae8572 | 15643 | echo "configure:15644: checking for tiffio.h" >&5 |
698dcdb6 VZ |
15644 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
15645 | echo $ac_n "(cached) $ac_c" 1>&6 | |
15646 | else | |
15647 | cat > conftest.$ac_ext <<EOF | |
edae8572 | 15648 | #line 15649 "configure" |
0dcf9893 VZ |
15649 | #include "confdefs.h" |
15650 | #include <tiffio.h> | |
698dcdb6 VZ |
15651 | EOF |
15652 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
edae8572 | 15653 | { (eval echo configure:15654: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
15654 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
15655 | if test -z "$ac_err"; then | |
15656 | rm -rf conftest* | |
15657 | eval "ac_cv_header_$ac_safe=yes" | |
3fed1840 | 15658 | else |
698dcdb6 VZ |
15659 | echo "$ac_err" >&5 |
15660 | echo "configure: failed program was:" >&5 | |
3fed1840 | 15661 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
15662 | rm -rf conftest* |
15663 | eval "ac_cv_header_$ac_safe=no" | |
3fed1840 | 15664 | fi |
698dcdb6 | 15665 | rm -f conftest* |
3fed1840 | 15666 | fi |
698dcdb6 VZ |
15667 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
15668 | echo "$ac_t""yes" 1>&6 | |
3a922bb4 | 15669 | echo $ac_n "checking for TIFFError in -ltiff""... $ac_c" 1>&6 |
edae8572 | 15670 | echo "configure:15671: checking for TIFFError in -ltiff" >&5 |
3a922bb4 | 15671 | ac_lib_var=`echo tiff'_'TIFFError | sed 'y%./+-%__p_%'` |
698dcdb6 VZ |
15672 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
15673 | echo $ac_n "(cached) $ac_c" 1>&6 | |
3fed1840 | 15674 | else |
698dcdb6 | 15675 | ac_save_LIBS="$LIBS" |
3a922bb4 | 15676 | LIBS="-ltiff -lm $LIBS" |
698dcdb6 | 15677 | cat > conftest.$ac_ext <<EOF |
edae8572 | 15678 | #line 15679 "configure" |
3fed1840 RR |
15679 | #include "confdefs.h" |
15680 | /* Override any gcc2 internal prototype to avoid an error. */ | |
15681 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 | 15682 | builtin and then its argument prototype would still apply. */ |
3a922bb4 | 15683 | char TIFFError(); |
698dcdb6 VZ |
15684 | |
15685 | int main() { | |
3a922bb4 | 15686 | TIFFError() |
698dcdb6 VZ |
15687 | ; return 0; } |
15688 | EOF | |
edae8572 | 15689 | if { (eval echo configure:15690: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
15690 | rm -rf conftest* |
15691 | eval "ac_cv_lib_$ac_lib_var=yes" | |
15692 | else | |
15693 | echo "configure: failed program was:" >&5 | |
15694 | cat conftest.$ac_ext >&5 | |
15695 | rm -rf conftest* | |
15696 | eval "ac_cv_lib_$ac_lib_var=no" | |
15697 | fi | |
15698 | rm -f conftest* | |
15699 | LIBS="$ac_save_LIBS" | |
15700 | ||
15701 | fi | |
15702 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
15703 | echo "$ac_t""yes" 1>&6 | |
3a922bb4 | 15704 | TIFF_LINK="-ltiff" |
698dcdb6 VZ |
15705 | else |
15706 | echo "$ac_t""no" 1>&6 | |
3fed1840 RR |
15707 | fi |
15708 | ||
698dcdb6 VZ |
15709 | else |
15710 | echo "$ac_t""no" 1>&6 | |
3fed1840 RR |
15711 | fi |
15712 | ||
3a922bb4 RL |
15713 | if test "x$TIFF_LINK" = "x" ; then |
15714 | { echo "configure: error: system tiff library not found! Use --with-libtiff=yes to use the built-in one" 1>&2; exit 1; } | |
3fed1840 RR |
15715 | fi |
15716 | fi | |
15717 | fi | |
15718 | ||
3a922bb4 RL |
15719 | FREETYPE_INCLUDE= |
15720 | if test "$wxUSE_FREETYPE" = "yes" -o "$wxUSE_FREETYPE" = "sys" ; then | |
15721 | cat >> confdefs.h <<\EOF | |
15722 | #define wxUSE_FREETYPE 1 | |
7b6058cd GD |
15723 | EOF |
15724 | ||
3a922bb4 RL |
15725 | if test "$wxUSE_FREETYPE" = "yes" ; then |
15726 | FREETYPE_INCLUDE="-I\${top_srcdir}/src/freetype" | |
7b6058cd | 15727 | else |
3a922bb4 RL |
15728 | FREETYPE_LINK= |
15729 | ac_safe=`echo "freetype.h" | sed 'y%./+-%__p_%'` | |
15730 | echo $ac_n "checking for freetype.h""... $ac_c" 1>&6 | |
edae8572 | 15731 | echo "configure:15732: checking for freetype.h" >&5 |
698dcdb6 VZ |
15732 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
15733 | echo $ac_n "(cached) $ac_c" 1>&6 | |
15734 | else | |
15735 | cat > conftest.$ac_ext <<EOF | |
edae8572 | 15736 | #line 15737 "configure" |
10f2d63a | 15737 | #include "confdefs.h" |
3a922bb4 | 15738 | #include <freetype.h> |
698dcdb6 VZ |
15739 | EOF |
15740 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
edae8572 | 15741 | { (eval echo configure:15742: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
15742 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
15743 | if test -z "$ac_err"; then | |
15744 | rm -rf conftest* | |
15745 | eval "ac_cv_header_$ac_safe=yes" | |
10f2d63a | 15746 | else |
698dcdb6 VZ |
15747 | echo "$ac_err" >&5 |
15748 | echo "configure: failed program was:" >&5 | |
10f2d63a | 15749 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
15750 | rm -rf conftest* |
15751 | eval "ac_cv_header_$ac_safe=no" | |
10f2d63a | 15752 | fi |
698dcdb6 | 15753 | rm -f conftest* |
10f2d63a | 15754 | fi |
698dcdb6 VZ |
15755 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
15756 | echo "$ac_t""yes" 1>&6 | |
3a922bb4 | 15757 | echo $ac_n "checking for FT_Render_Glyph in -lfreetype""... $ac_c" 1>&6 |
edae8572 | 15758 | echo "configure:15759: checking for FT_Render_Glyph in -lfreetype" >&5 |
3a922bb4 | 15759 | ac_lib_var=`echo freetype'_'FT_Render_Glyph | sed 'y%./+-%__p_%'` |
698dcdb6 VZ |
15760 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
15761 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 15762 | else |
698dcdb6 | 15763 | ac_save_LIBS="$LIBS" |
3a922bb4 | 15764 | LIBS="-lfreetype -lm $LIBS" |
698dcdb6 | 15765 | cat > conftest.$ac_ext <<EOF |
edae8572 | 15766 | #line 15767 "configure" |
10f2d63a VZ |
15767 | #include "confdefs.h" |
15768 | /* Override any gcc2 internal prototype to avoid an error. */ | |
15769 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 | 15770 | builtin and then its argument prototype would still apply. */ |
3a922bb4 | 15771 | char FT_Render_Glyph(); |
698dcdb6 VZ |
15772 | |
15773 | int main() { | |
3a922bb4 | 15774 | FT_Render_Glyph() |
698dcdb6 VZ |
15775 | ; return 0; } |
15776 | EOF | |
edae8572 | 15777 | if { (eval echo configure:15778: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
15778 | rm -rf conftest* |
15779 | eval "ac_cv_lib_$ac_lib_var=yes" | |
15780 | else | |
15781 | echo "configure: failed program was:" >&5 | |
15782 | cat conftest.$ac_ext >&5 | |
15783 | rm -rf conftest* | |
15784 | eval "ac_cv_lib_$ac_lib_var=no" | |
15785 | fi | |
15786 | rm -f conftest* | |
15787 | LIBS="$ac_save_LIBS" | |
10f2d63a | 15788 | |
698dcdb6 VZ |
15789 | fi |
15790 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
15791 | echo "$ac_t""yes" 1>&6 | |
3a922bb4 | 15792 | FREETYPE_LINK="-lfreetype" |
698dcdb6 VZ |
15793 | else |
15794 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
15795 | fi |
15796 | ||
3a922bb4 | 15797 | |
10f2d63a | 15798 | else |
698dcdb6 | 15799 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
15800 | fi |
15801 | ||
3a922bb4 RL |
15802 | if test "x$FREETYPE_LINK" = "x" ; then |
15803 | { echo "configure: error: system freetype library not found! Use --with-freetype=yes to use the built-in freetype" 1>&2; exit 1; } | |
15804 | fi | |
7b6058cd | 15805 | fi |
10f2d63a VZ |
15806 | fi |
15807 | ||
698dcdb6 | 15808 | |
10f2d63a | 15809 | if test "$wxUSE_GUI" = "yes"; then |
698dcdb6 | 15810 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
15811 | #define wxUSE_GUI 1 |
15812 | EOF | |
15813 | ||
698dcdb6 | 15814 | |
10f2d63a | 15815 | else |
698dcdb6 | 15816 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
15817 | #define wxUSE_NOGUI 1 |
15818 | EOF | |
15819 | ||
15820 | fi | |
15821 | ||
698dcdb6 | 15822 | |
10f2d63a | 15823 | if test "$wxUSE_UNIX" = "yes"; then |
698dcdb6 | 15824 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
15825 | #define wxUSE_UNIX 1 |
15826 | EOF | |
15827 | ||
15828 | fi | |
15829 | ||
698dcdb6 | 15830 | |
10f2d63a | 15831 | if test "$wxUSE_APPLE_IEEE" = "yes"; then |
698dcdb6 | 15832 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
15833 | #define wxUSE_APPLE_IEEE 1 |
15834 | EOF | |
15835 | ||
15836 | fi | |
15837 | ||
1e6feb95 VZ |
15838 | if test "$wxUSE_TIMER" = "yes"; then |
15839 | cat >> confdefs.h <<\EOF | |
15840 | #define wxUSE_TIMER 1 | |
15841 | EOF | |
15842 | ||
15843 | fi | |
15844 | ||
10f2d63a | 15845 | if test "$wxUSE_WAVE" = "yes"; then |
698dcdb6 | 15846 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
15847 | #define wxUSE_WAVE 1 |
15848 | EOF | |
15849 | ||
15850 | fi | |
15851 | ||
1e6feb95 VZ |
15852 | if test "$wxUSE_CMDLINE_PARSER" = "yes"; then |
15853 | cat >> confdefs.h <<\EOF | |
15854 | #define wxUSE_CMDLINE_PARSER 1 | |
15855 | EOF | |
15856 | ||
15857 | fi | |
15858 | ||
15859 | if test "$wxUSE_STOPWATCH" = "yes"; then | |
15860 | cat >> confdefs.h <<\EOF | |
15861 | #define wxUSE_STOPWATCH 1 | |
15862 | EOF | |
15863 | ||
15864 | fi | |
15865 | ||
15866 | if test "$wxUSE_DATETIME" = "yes"; then | |
15867 | cat >> confdefs.h <<\EOF | |
15868 | #define wxUSE_DATETIME 1 | |
15869 | EOF | |
15870 | ||
15871 | fi | |
15872 | ||
15873 | if test "$wxUSE_TIMEDATE" = "yes"; then | |
15874 | cat >> confdefs.h <<\EOF | |
15875 | #define wxUSE_TIMEDATE 1 | |
15876 | EOF | |
15877 | ||
15878 | fi | |
15879 | ||
10f2d63a | 15880 | if test "$wxUSE_FILE" = "yes"; then |
698dcdb6 | 15881 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
15882 | #define wxUSE_FILE 1 |
15883 | EOF | |
15884 | ||
15885 | fi | |
15886 | ||
1e6feb95 VZ |
15887 | if test "$wxUSE_FFILE" = "yes"; then |
15888 | cat >> confdefs.h <<\EOF | |
15889 | #define wxUSE_FFILE 1 | |
15890 | EOF | |
15891 | ||
15892 | fi | |
15893 | ||
24528b0c | 15894 | if test "$wxUSE_FILESYSTEM" = "yes"; then |
698dcdb6 | 15895 | cat >> confdefs.h <<\EOF |
24528b0c VS |
15896 | #define wxUSE_FILESYSTEM 1 |
15897 | EOF | |
15898 | ||
15899 | fi | |
15900 | ||
10f2d63a | 15901 | if test "$wxUSE_FS_INET" = "yes"; then |
698dcdb6 | 15902 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
15903 | #define wxUSE_FS_INET 1 |
15904 | EOF | |
15905 | ||
15906 | fi | |
15907 | ||
15908 | if test "$wxUSE_FS_ZIP" = "yes"; then | |
698dcdb6 | 15909 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
15910 | #define wxUSE_FS_ZIP 1 |
15911 | EOF | |
15912 | ||
15913 | fi | |
15914 | ||
15915 | if test "$wxUSE_ZIPSTREAM" = "yes"; then | |
698dcdb6 | 15916 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
15917 | #define wxUSE_ZIPSTREAM 1 |
15918 | EOF | |
15919 | ||
15920 | fi | |
15921 | ||
eb4efbdc | 15922 | if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then |
698dcdb6 | 15923 | cat >> confdefs.h <<\EOF |
eb4efbdc VZ |
15924 | #define wxUSE_ON_FATAL_EXCEPTION 1 |
15925 | EOF | |
15926 | ||
15927 | fi | |
15928 | ||
4f3c5f06 | 15929 | if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then |
698dcdb6 | 15930 | cat >> confdefs.h <<\EOF |
4f3c5f06 VZ |
15931 | #define wxUSE_SNGLINST_CHECKER 1 |
15932 | EOF | |
15933 | ||
15934 | fi | |
15935 | ||
10f2d63a | 15936 | if test "$wxUSE_BUSYINFO" = "yes"; then |
698dcdb6 | 15937 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
15938 | #define wxUSE_BUSYINFO 1 |
15939 | EOF | |
15940 | ||
15941 | fi | |
15942 | ||
15943 | if test "$wxUSE_STD_IOSTREAM" = "yes"; then | |
698dcdb6 | 15944 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
15945 | #define wxUSE_STD_IOSTREAM 1 |
15946 | EOF | |
15947 | ||
15948 | fi | |
15949 | ||
15950 | if test "$wxUSE_TEXTFILE" = "yes"; then | |
15951 | if test "$wxUSE_FILE" != "yes"; then | |
698dcdb6 | 15952 | echo "configure: warning: wxTextFile requires wxFile and it won't be compiled without it" 1>&2 |
10f2d63a | 15953 | else |
698dcdb6 | 15954 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
15955 | #define wxUSE_TEXTFILE 1 |
15956 | EOF | |
15957 | ||
15958 | fi | |
15959 | fi | |
15960 | ||
15961 | if test "$wxUSE_CONFIG" = "yes" ; then | |
15962 | if test "$wxUSE_TEXTFILE" != "yes"; then | |
698dcdb6 | 15963 | echo "configure: warning: wxConfig requires wxTextFile and it won't be compiled without it" 1>&2 |
10f2d63a | 15964 | else |
698dcdb6 | 15965 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
15966 | #define wxUSE_CONFIG 1 |
15967 | EOF | |
15968 | ||
15969 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config" | |
15970 | fi | |
15971 | fi | |
15972 | ||
15973 | if test "$wxUSE_INTL" = "yes" ; then | |
15974 | if test "$wxUSE_FILE" != "yes"; then | |
698dcdb6 | 15975 | echo "configure: warning: I18n code requires wxFile and it won't be compiled without it" 1>&2 |
10f2d63a | 15976 | else |
698dcdb6 | 15977 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
15978 | #define wxUSE_INTL 1 |
15979 | EOF | |
15980 | ||
15981 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat" | |
f6bcfd97 | 15982 | GUIDIST="$GUIDIST INTL_DIST" |
10f2d63a VZ |
15983 | fi |
15984 | fi | |
15985 | ||
15986 | if test "$wxUSE_LOG" = "yes"; then | |
698dcdb6 | 15987 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
15988 | #define wxUSE_LOG 1 |
15989 | EOF | |
15990 | ||
d73be714 VZ |
15991 | |
15992 | if test "$wxUSE_LOGGUI" = "yes"; then | |
15993 | cat >> confdefs.h <<\EOF | |
15994 | #define wxUSE_LOGGUI 1 | |
15995 | EOF | |
15996 | ||
15997 | fi | |
15998 | ||
15999 | if test "$wxUSE_LOGWINDOW" = "yes"; then | |
16000 | cat >> confdefs.h <<\EOF | |
16001 | #define wxUSE_LOGWINDOW 1 | |
16002 | EOF | |
16003 | ||
16004 | fi | |
10f2d63a VZ |
16005 | fi |
16006 | ||
16007 | if test "$wxUSE_LONGLONG" = "yes"; then | |
698dcdb6 | 16008 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16009 | #define wxUSE_LONGLONG 1 |
16010 | EOF | |
16011 | ||
16012 | fi | |
16013 | ||
e8f65ba6 | 16014 | if test "$wxUSE_GEOMETRY" = "yes"; then |
698dcdb6 | 16015 | cat >> confdefs.h <<\EOF |
e8f65ba6 RR |
16016 | #define wxUSE_GEOMETRY 1 |
16017 | EOF | |
16018 | ||
16019 | fi | |
16020 | ||
10f2d63a | 16021 | if test "$wxUSE_DIALUP_MANAGER" = "yes" ; then |
698dcdb6 | 16022 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16023 | #define wxUSE_DIALUP_MANAGER 1 |
16024 | EOF | |
16025 | ||
70f7a477 | 16026 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup" |
10f2d63a VZ |
16027 | fi |
16028 | ||
16029 | if test "$wxUSE_STREAMS" = "yes" ; then | |
698dcdb6 | 16030 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16031 | #define wxUSE_STREAMS 1 |
16032 | EOF | |
16033 | ||
16034 | fi | |
16035 | ||
1e487827 | 16036 | |
1e6feb95 | 16037 | if test "$wxUSE_DATETIME" = "yes"; then |
698dcdb6 | 16038 | for ac_func in strptime |
83307f33 | 16039 | do |
698dcdb6 | 16040 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
edae8572 | 16041 | echo "configure:16042: checking for $ac_func" >&5 |
698dcdb6 VZ |
16042 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
16043 | echo $ac_n "(cached) $ac_c" 1>&6 | |
16044 | else | |
16045 | cat > conftest.$ac_ext <<EOF | |
edae8572 | 16046 | #line 16047 "configure" |
83307f33 VZ |
16047 | #include "confdefs.h" |
16048 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 16049 | which can conflict with char $ac_func(); below. */ |
83307f33 VZ |
16050 | #include <assert.h> |
16051 | /* Override any gcc2 internal prototype to avoid an error. */ | |
16052 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
16053 | builtin and then its argument prototype would still apply. */ |
16054 | char $ac_func(); | |
16055 | ||
16056 | int main() { | |
83307f33 VZ |
16057 | |
16058 | /* The GNU C library defines this for functions which it implements | |
16059 | to always fail with ENOSYS. Some functions are actually named | |
16060 | something starting with __ and the normal name is an alias. */ | |
16061 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
16062 | choke me | |
16063 | #else | |
698dcdb6 | 16064 | $ac_func(); |
83307f33 VZ |
16065 | #endif |
16066 | ||
698dcdb6 | 16067 | ; return 0; } |
83307f33 | 16068 | EOF |
edae8572 | 16069 | if { (eval echo configure:16070: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
16070 | rm -rf conftest* |
16071 | eval "ac_cv_func_$ac_func=yes" | |
16072 | else | |
16073 | echo "configure: failed program was:" >&5 | |
16074 | cat conftest.$ac_ext >&5 | |
16075 | rm -rf conftest* | |
16076 | eval "ac_cv_func_$ac_func=no" | |
16077 | fi | |
16078 | rm -f conftest* | |
16079 | fi | |
83307f33 | 16080 | |
698dcdb6 VZ |
16081 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
16082 | echo "$ac_t""yes" 1>&6 | |
16083 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
16084 | cat >> confdefs.h <<EOF | |
16085 | #define $ac_tr_func 1 | |
16086 | EOF | |
16087 | ||
16088 | else | |
16089 | echo "$ac_t""no" 1>&6 | |
83307f33 VZ |
16090 | fi |
16091 | done | |
16092 | ||
1e487827 | 16093 | |
698dcdb6 | 16094 | echo $ac_n "checking for timezone variable in <time.h>""... $ac_c" 1>&6 |
edae8572 | 16095 | echo "configure:16096: checking for timezone variable in <time.h>" >&5 |
698dcdb6 VZ |
16096 | if eval "test \"`echo '$''{'wx_cv_var_timezone'+set}'`\" = set"; then |
16097 | echo $ac_n "(cached) $ac_c" 1>&6 | |
16098 | else | |
16099 | ||
16100 | cat > conftest.$ac_ext <<EOF | |
edae8572 | 16101 | #line 16102 "configure" |
360d6699 VZ |
16102 | #include "confdefs.h" |
16103 | ||
b4085ce6 | 16104 | #include <time.h> |
698dcdb6 VZ |
16105 | |
16106 | int main() { | |
360d6699 VZ |
16107 | |
16108 | int tz; | |
4f11a343 | 16109 | tz = timezone; |
698dcdb6 VZ |
16110 | |
16111 | ; return 0; } | |
16112 | EOF | |
edae8572 | 16113 | if { (eval echo configure:16114: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 VZ |
16114 | rm -rf conftest* |
16115 | ||
4f11a343 | 16116 | wx_cv_var_timezone=timezone |
698dcdb6 | 16117 | |
360d6699 | 16118 | else |
698dcdb6 VZ |
16119 | echo "configure: failed program was:" >&5 |
16120 | cat conftest.$ac_ext >&5 | |
16121 | rm -rf conftest* | |
16122 | ||
16123 | cat > conftest.$ac_ext <<EOF | |
edae8572 | 16124 | #line 16125 "configure" |
360d6699 VZ |
16125 | #include "confdefs.h" |
16126 | ||
b4085ce6 | 16127 | #include <time.h> |
698dcdb6 VZ |
16128 | |
16129 | int main() { | |
360d6699 VZ |
16130 | |
16131 | int tz; | |
16132 | tz = _timezone; | |
698dcdb6 VZ |
16133 | |
16134 | ; return 0; } | |
16135 | EOF | |
edae8572 | 16136 | if { (eval echo configure:16137: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 VZ |
16137 | rm -rf conftest* |
16138 | ||
360d6699 | 16139 | wx_cv_var_timezone=_timezone |
698dcdb6 | 16140 | |
5357c8e8 | 16141 | else |
698dcdb6 VZ |
16142 | echo "configure: failed program was:" >&5 |
16143 | cat conftest.$ac_ext >&5 | |
16144 | rm -rf conftest* | |
16145 | ||
16146 | cat > conftest.$ac_ext <<EOF | |
edae8572 | 16147 | #line 16148 "configure" |
5357c8e8 VZ |
16148 | #include "confdefs.h" |
16149 | ||
b4085ce6 | 16150 | #include <time.h> |
698dcdb6 VZ |
16151 | |
16152 | int main() { | |
5357c8e8 VZ |
16153 | |
16154 | int tz; | |
4f11a343 | 16155 | tz = __timezone; |
698dcdb6 VZ |
16156 | |
16157 | ; return 0; } | |
16158 | EOF | |
edae8572 | 16159 | if { (eval echo configure:16160: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 VZ |
16160 | rm -rf conftest* |
16161 | ||
4f11a343 | 16162 | wx_cv_var_timezone=__timezone |
698dcdb6 | 16163 | |
360d6699 | 16164 | else |
698dcdb6 VZ |
16165 | echo "configure: failed program was:" >&5 |
16166 | cat conftest.$ac_ext >&5 | |
16167 | rm -rf conftest* | |
16168 | { echo "configure: error: no timezone variable" 1>&2; exit 1; } | |
16169 | ||
360d6699 | 16170 | fi |
698dcdb6 VZ |
16171 | rm -f conftest* |
16172 | ||
16173 | ||
360d6699 | 16174 | fi |
698dcdb6 VZ |
16175 | rm -f conftest* |
16176 | ||
16177 | ||
6232543b | 16178 | fi |
698dcdb6 VZ |
16179 | rm -f conftest* |
16180 | ||
16181 | ||
1e487827 | 16182 | fi |
703e0a69 | 16183 | |
698dcdb6 VZ |
16184 | echo "$ac_t""$wx_cv_var_timezone" 1>&6 |
16185 | ||
16186 | cat >> confdefs.h <<EOF | |
360d6699 VZ |
16187 | #define WX_TIMEZONE $wx_cv_var_timezone |
16188 | EOF | |
16189 | ||
698dcdb6 VZ |
16190 | |
16191 | for ac_func in localtime | |
afc31813 | 16192 | do |
698dcdb6 | 16193 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
edae8572 | 16194 | echo "configure:16195: checking for $ac_func" >&5 |
698dcdb6 VZ |
16195 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
16196 | echo $ac_n "(cached) $ac_c" 1>&6 | |
16197 | else | |
16198 | cat > conftest.$ac_ext <<EOF | |
edae8572 | 16199 | #line 16200 "configure" |
10f2d63a | 16200 | #include "confdefs.h" |
afc31813 | 16201 | /* System header to define __stub macros and hopefully few prototypes, |
698dcdb6 | 16202 | which can conflict with char $ac_func(); below. */ |
afc31813 VZ |
16203 | #include <assert.h> |
16204 | /* Override any gcc2 internal prototype to avoid an error. */ | |
16205 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
16206 | builtin and then its argument prototype would still apply. */ |
16207 | char $ac_func(); | |
16208 | ||
16209 | int main() { | |
afc31813 VZ |
16210 | |
16211 | /* The GNU C library defines this for functions which it implements | |
16212 | to always fail with ENOSYS. Some functions are actually named | |
16213 | something starting with __ and the normal name is an alias. */ | |
16214 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
16215 | choke me | |
16216 | #else | |
698dcdb6 | 16217 | $ac_func(); |
afc31813 VZ |
16218 | #endif |
16219 | ||
698dcdb6 | 16220 | ; return 0; } |
10f2d63a | 16221 | EOF |
edae8572 | 16222 | if { (eval echo configure:16223: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
16223 | rm -rf conftest* |
16224 | eval "ac_cv_func_$ac_func=yes" | |
16225 | else | |
16226 | echo "configure: failed program was:" >&5 | |
16227 | cat conftest.$ac_ext >&5 | |
16228 | rm -rf conftest* | |
16229 | eval "ac_cv_func_$ac_func=no" | |
16230 | fi | |
16231 | rm -f conftest* | |
16232 | fi | |
afc31813 | 16233 | |
698dcdb6 VZ |
16234 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
16235 | echo "$ac_t""yes" 1>&6 | |
16236 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
16237 | cat >> confdefs.h <<EOF | |
16238 | #define $ac_tr_func 1 | |
16239 | EOF | |
16240 | ||
16241 | else | |
16242 | echo "$ac_t""no" 1>&6 | |
afc31813 VZ |
16243 | fi |
16244 | done | |
16245 | ||
1e487827 | 16246 | |
698dcdb6 VZ |
16247 | if test "$ac_cv_func_localtime" = "yes"; then |
16248 | echo $ac_n "checking for tm_gmtoff in struct tm""... $ac_c" 1>&6 | |
edae8572 | 16249 | echo "configure:16250: checking for tm_gmtoff in struct tm" >&5 |
698dcdb6 VZ |
16250 | if eval "test \"`echo '$''{'wx_cv_struct_tm_has_gmtoff'+set}'`\" = set"; then |
16251 | echo $ac_n "(cached) $ac_c" 1>&6 | |
16252 | else | |
16253 | ||
16254 | cat > conftest.$ac_ext <<EOF | |
edae8572 | 16255 | #line 16256 "configure" |
0470b1e6 VZ |
16256 | #include "confdefs.h" |
16257 | ||
b4085ce6 | 16258 | #include <time.h> |
698dcdb6 VZ |
16259 | |
16260 | int main() { | |
0470b1e6 VZ |
16261 | |
16262 | struct tm tm; | |
16263 | tm.tm_gmtoff++; | |
698dcdb6 VZ |
16264 | |
16265 | ; return 0; } | |
16266 | EOF | |
edae8572 | 16267 | if { (eval echo configure:16268: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 VZ |
16268 | rm -rf conftest* |
16269 | ||
f03a98d8 | 16270 | wx_cv_struct_tm_has_gmtoff=yes |
698dcdb6 | 16271 | |
0470b1e6 | 16272 | else |
698dcdb6 VZ |
16273 | echo "configure: failed program was:" >&5 |
16274 | cat conftest.$ac_ext >&5 | |
16275 | rm -rf conftest* | |
16276 | wx_cv_struct_tm_has_gmtoff=no | |
16277 | ||
0470b1e6 | 16278 | fi |
698dcdb6 VZ |
16279 | rm -f conftest* |
16280 | ||
1e487827 | 16281 | fi |
698dcdb6 VZ |
16282 | |
16283 | echo "$ac_t""$wx_cv_struct_tm_has_gmtoff" 1>&6 | |
6232543b VS |
16284 | fi |
16285 | ||
16286 | if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then | |
698dcdb6 | 16287 | cat >> confdefs.h <<\EOF |
6232543b VS |
16288 | #define WX_GMTOFF_IN_TM 1 |
16289 | EOF | |
0470b1e6 | 16290 | |
3fcdd07b VZ |
16291 | fi |
16292 | ||
698dcdb6 | 16293 | for ac_func in gettimeofday ftime |
3fcdd07b | 16294 | do |
698dcdb6 | 16295 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
edae8572 | 16296 | echo "configure:16297: checking for $ac_func" >&5 |
698dcdb6 VZ |
16297 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
16298 | echo $ac_n "(cached) $ac_c" 1>&6 | |
16299 | else | |
16300 | cat > conftest.$ac_ext <<EOF | |
edae8572 | 16301 | #line 16302 "configure" |
3fcdd07b VZ |
16302 | #include "confdefs.h" |
16303 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 16304 | which can conflict with char $ac_func(); below. */ |
3fcdd07b VZ |
16305 | #include <assert.h> |
16306 | /* Override any gcc2 internal prototype to avoid an error. */ | |
16307 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
16308 | builtin and then its argument prototype would still apply. */ |
16309 | char $ac_func(); | |
16310 | ||
16311 | int main() { | |
3fcdd07b VZ |
16312 | |
16313 | /* The GNU C library defines this for functions which it implements | |
16314 | to always fail with ENOSYS. Some functions are actually named | |
16315 | something starting with __ and the normal name is an alias. */ | |
16316 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
16317 | choke me | |
16318 | #else | |
698dcdb6 | 16319 | $ac_func(); |
3fcdd07b VZ |
16320 | #endif |
16321 | ||
698dcdb6 VZ |
16322 | ; return 0; } |
16323 | EOF | |
edae8572 | 16324 | if { (eval echo configure:16325: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
16325 | rm -rf conftest* |
16326 | eval "ac_cv_func_$ac_func=yes" | |
16327 | else | |
16328 | echo "configure: failed program was:" >&5 | |
16329 | cat conftest.$ac_ext >&5 | |
16330 | rm -rf conftest* | |
16331 | eval "ac_cv_func_$ac_func=no" | |
16332 | fi | |
16333 | rm -f conftest* | |
16334 | fi | |
16335 | ||
16336 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
16337 | echo "$ac_t""yes" 1>&6 | |
16338 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
16339 | cat >> confdefs.h <<EOF | |
16340 | #define $ac_tr_func 1 | |
3fcdd07b VZ |
16341 | EOF |
16342 | break | |
698dcdb6 VZ |
16343 | else |
16344 | echo "$ac_t""no" 1>&6 | |
3fcdd07b VZ |
16345 | fi |
16346 | done | |
16347 | ||
afc31813 | 16348 | |
698dcdb6 VZ |
16349 | if test "$ac_cv_func_gettimeofday" = "yes"; then |
16350 | echo $ac_n "checking whether gettimeofday takes two arguments""... $ac_c" 1>&6 | |
edae8572 | 16351 | echo "configure:16352: checking whether gettimeofday takes two arguments" >&5 |
698dcdb6 VZ |
16352 | if eval "test \"`echo '$''{'wx_cv_func_gettimeofday_has_2_args'+set}'`\" = set"; then |
16353 | echo $ac_n "(cached) $ac_c" 1>&6 | |
16354 | else | |
16355 | ||
16356 | ||
16357 | ac_ext=C | |
16358 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
1e487827 | 16359 | ac_cpp='$CXXCPP $CPPFLAGS' |
698dcdb6 VZ |
16360 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
16361 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
16362 | cross_compiling=$ac_cv_prog_cxx_cross | |
703e0a69 | 16363 | |
698dcdb6 VZ |
16364 | |
16365 | cat > conftest.$ac_ext <<EOF | |
edae8572 | 16366 | #line 16367 "configure" |
10f2d63a | 16367 | #include "confdefs.h" |
afc31813 VZ |
16368 | |
16369 | #include <sys/time.h> | |
16370 | #include <unistd.h> | |
698dcdb6 VZ |
16371 | |
16372 | int main() { | |
afc31813 VZ |
16373 | |
16374 | struct timeval tv; | |
776862b4 | 16375 | gettimeofday(&tv, NULL); |
698dcdb6 VZ |
16376 | |
16377 | ; return 0; } | |
16378 | EOF | |
edae8572 | 16379 | if { (eval echo configure:16380: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 | 16380 | rm -rf conftest* |
afc31813 | 16381 | wx_cv_func_gettimeofday_has_2_args=yes |
10f2d63a | 16382 | else |
698dcdb6 VZ |
16383 | echo "configure: failed program was:" >&5 |
16384 | cat conftest.$ac_ext >&5 | |
16385 | rm -rf conftest* | |
16386 | cat > conftest.$ac_ext <<EOF | |
edae8572 | 16387 | #line 16388 "configure" |
10f2d63a | 16388 | #include "confdefs.h" |
afc31813 VZ |
16389 | |
16390 | #include <sys/time.h> | |
16391 | #include <unistd.h> | |
698dcdb6 VZ |
16392 | |
16393 | int main() { | |
afc31813 VZ |
16394 | |
16395 | struct timeval tv; | |
16396 | gettimeofday(&tv); | |
698dcdb6 VZ |
16397 | |
16398 | ; return 0; } | |
16399 | EOF | |
edae8572 | 16400 | if { (eval echo configure:16401: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 | 16401 | rm -rf conftest* |
afc31813 | 16402 | wx_cv_func_gettimeofday_has_2_args=no |
10f2d63a | 16403 | else |
698dcdb6 VZ |
16404 | echo "configure: failed program was:" >&5 |
16405 | cat conftest.$ac_ext >&5 | |
16406 | rm -rf conftest* | |
776862b4 VZ |
16407 | |
16408 | echo "configure: warning: failed to determine number of gettimeofday() arguments" 1>&2 | |
16409 | wx_cv_func_gettimeofday_has_2_args=unknown | |
16410 | ||
698dcdb6 | 16411 | |
10f2d63a | 16412 | fi |
698dcdb6 VZ |
16413 | rm -f conftest* |
16414 | ||
10f2d63a | 16415 | fi |
698dcdb6 | 16416 | rm -f conftest* |
afc31813 | 16417 | ac_ext=c |
698dcdb6 | 16418 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
10f2d63a | 16419 | ac_cpp='$CPP $CPPFLAGS' |
698dcdb6 VZ |
16420 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
16421 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
16422 | cross_compiling=$ac_cv_prog_cc_cross | |
10f2d63a | 16423 | |
698dcdb6 | 16424 | |
afc31813 | 16425 | fi |
698dcdb6 VZ |
16426 | |
16427 | echo "$ac_t""$wx_cv_func_gettimeofday_has_2_args" 1>&6 | |
c63c7106 | 16428 | |
afc31813 | 16429 | if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then |
698dcdb6 | 16430 | cat >> confdefs.h <<\EOF |
afc31813 VZ |
16431 | #define WX_GETTIMEOFDAY_NO_TZ 1 |
16432 | EOF | |
16433 | ||
16434 | fi | |
16435 | fi | |
16436 | ||
698dcdb6 | 16437 | cat >> confdefs.h <<\EOF |
afc31813 VZ |
16438 | #define wxUSE_TIMEDATE 1 |
16439 | EOF | |
16440 | ||
16441 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest" | |
16442 | fi | |
16443 | ||
698dcdb6 | 16444 | |
b089607b VZ |
16445 | if test "$TOOLKIT" != "MSW"; then |
16446 | ||
3a922bb4 RL |
16447 | if test "$wxUSE_SOCKETS" = "yes"; then |
16448 | echo $ac_n "checking for socket""... $ac_c" 1>&6 | |
edae8572 | 16449 | echo "configure:16450: checking for socket" >&5 |
698dcdb6 VZ |
16450 | if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then |
16451 | echo $ac_n "(cached) $ac_c" 1>&6 | |
c63c7106 | 16452 | else |
698dcdb6 | 16453 | cat > conftest.$ac_ext <<EOF |
edae8572 | 16454 | #line 16455 "configure" |
c63c7106 VZ |
16455 | #include "confdefs.h" |
16456 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 16457 | which can conflict with char socket(); below. */ |
c63c7106 VZ |
16458 | #include <assert.h> |
16459 | /* Override any gcc2 internal prototype to avoid an error. */ | |
16460 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
16461 | builtin and then its argument prototype would still apply. */ |
16462 | char socket(); | |
16463 | ||
16464 | int main() { | |
c63c7106 VZ |
16465 | |
16466 | /* The GNU C library defines this for functions which it implements | |
16467 | to always fail with ENOSYS. Some functions are actually named | |
16468 | something starting with __ and the normal name is an alias. */ | |
16469 | #if defined (__stub_socket) || defined (__stub___socket) | |
16470 | choke me | |
16471 | #else | |
698dcdb6 | 16472 | socket(); |
c63c7106 VZ |
16473 | #endif |
16474 | ||
698dcdb6 VZ |
16475 | ; return 0; } |
16476 | EOF | |
edae8572 | 16477 | if { (eval echo configure:16478: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
16478 | rm -rf conftest* |
16479 | eval "ac_cv_func_socket=yes" | |
16480 | else | |
16481 | echo "configure: failed program was:" >&5 | |
16482 | cat conftest.$ac_ext >&5 | |
16483 | rm -rf conftest* | |
16484 | eval "ac_cv_func_socket=no" | |
16485 | fi | |
16486 | rm -f conftest* | |
16487 | fi | |
16488 | ||
16489 | if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then | |
16490 | echo "$ac_t""yes" 1>&6 | |
c63c7106 VZ |
16491 | : |
16492 | else | |
698dcdb6 VZ |
16493 | echo "$ac_t""no" 1>&6 |
16494 | echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6 | |
edae8572 | 16495 | echo "configure:16496: checking for socket in -lsocket" >&5 |
698dcdb6 VZ |
16496 | ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'` |
16497 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
16498 | echo $ac_n "(cached) $ac_c" 1>&6 | |
c63c7106 | 16499 | else |
698dcdb6 | 16500 | ac_save_LIBS="$LIBS" |
c63c7106 | 16501 | LIBS="-lsocket $LIBS" |
698dcdb6 | 16502 | cat > conftest.$ac_ext <<EOF |
edae8572 | 16503 | #line 16504 "configure" |
c63c7106 VZ |
16504 | #include "confdefs.h" |
16505 | /* Override any gcc2 internal prototype to avoid an error. */ | |
16506 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
16507 | builtin and then its argument prototype would still apply. */ |
16508 | char socket(); | |
16509 | ||
16510 | int main() { | |
16511 | socket() | |
16512 | ; return 0; } | |
16513 | EOF | |
edae8572 | 16514 | if { (eval echo configure:16515: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
16515 | rm -rf conftest* |
16516 | eval "ac_cv_lib_$ac_lib_var=yes" | |
16517 | else | |
16518 | echo "configure: failed program was:" >&5 | |
16519 | cat conftest.$ac_ext >&5 | |
16520 | rm -rf conftest* | |
16521 | eval "ac_cv_lib_$ac_lib_var=no" | |
16522 | fi | |
16523 | rm -f conftest* | |
16524 | LIBS="$ac_save_LIBS" | |
16525 | ||
16526 | fi | |
16527 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
16528 | echo "$ac_t""yes" 1>&6 | |
c63c7106 | 16529 | INET_LINK="$INET_LINK -lsocket" |
c63c7106 | 16530 | else |
698dcdb6 | 16531 | echo "$ac_t""no" 1>&6 |
afc31813 | 16532 | |
3a922bb4 RL |
16533 | echo "configure: warning: socket library not found - sockets will be disabled" 1>&2 |
16534 | wxUSE_SOCKETS=no | |
16535 | ||
698dcdb6 | 16536 | |
6232543b | 16537 | fi |
b089607b | 16538 | |
3a922bb4 | 16539 | |
1e487827 | 16540 | fi |
afc31813 | 16541 | |
3a922bb4 | 16542 | fi |
51a9faba | 16543 | |
3a922bb4 RL |
16544 | |
16545 | if test "$wxUSE_SOCKETS" = "yes" ; then | |
16546 | echo $ac_n "checking what is the type of the third argument of getsockname""... $ac_c" 1>&6 | |
edae8572 | 16547 | echo "configure:16548: checking what is the type of the third argument of getsockname" >&5 |
698dcdb6 VZ |
16548 | if eval "test \"`echo '$''{'wx_cv_type_getsockname3'+set}'`\" = set"; then |
16549 | echo $ac_n "(cached) $ac_c" 1>&6 | |
16550 | else | |
16551 | ||
3a922bb4 RL |
16552 | |
16553 | ac_ext=C | |
698dcdb6 | 16554 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
1e487827 | 16555 | ac_cpp='$CXXCPP $CPPFLAGS' |
698dcdb6 VZ |
16556 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
16557 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
16558 | cross_compiling=$ac_cv_prog_cxx_cross | |
703e0a69 | 16559 | |
698dcdb6 | 16560 | |
3a922bb4 | 16561 | cat > conftest.$ac_ext <<EOF |
edae8572 | 16562 | #line 16563 "configure" |
afc31813 | 16563 | #include "confdefs.h" |
51a9faba | 16564 | |
3a922bb4 RL |
16565 | #include <sys/types.h> |
16566 | #include <sys/socket.h> | |
16567 | ||
698dcdb6 | 16568 | int main() { |
51a9faba | 16569 | |
3a922bb4 RL |
16570 | socklen_t len; |
16571 | getsockname(0, 0, &len); | |
16572 | ||
698dcdb6 VZ |
16573 | ; return 0; } |
16574 | EOF | |
edae8572 | 16575 | if { (eval echo configure:16576: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 | 16576 | rm -rf conftest* |
51a9faba | 16577 | wx_cv_type_getsockname3=socklen_t |
afc31813 | 16578 | else |
698dcdb6 VZ |
16579 | echo "configure: failed program was:" >&5 |
16580 | cat conftest.$ac_ext >&5 | |
16581 | rm -rf conftest* | |
16582 | cat > conftest.$ac_ext <<EOF | |
edae8572 | 16583 | #line 16584 "configure" |
afc31813 | 16584 | #include "confdefs.h" |
51a9faba | 16585 | |
3a922bb4 RL |
16586 | #include <sys/types.h> |
16587 | #include <sys/socket.h> | |
16588 | ||
698dcdb6 | 16589 | int main() { |
51a9faba | 16590 | |
3a922bb4 RL |
16591 | size_t len; |
16592 | getsockname(0, 0, &len); | |
16593 | ||
698dcdb6 VZ |
16594 | ; return 0; } |
16595 | EOF | |
edae8572 | 16596 | if { (eval echo configure:16597: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 | 16597 | rm -rf conftest* |
51a9faba | 16598 | wx_cv_type_getsockname3=size_t |
afc31813 | 16599 | else |
698dcdb6 VZ |
16600 | echo "configure: failed program was:" >&5 |
16601 | cat conftest.$ac_ext >&5 | |
16602 | rm -rf conftest* | |
16603 | cat > conftest.$ac_ext <<EOF | |
edae8572 | 16604 | #line 16605 "configure" |
afc31813 | 16605 | #include "confdefs.h" |
51a9faba | 16606 | |
3a922bb4 RL |
16607 | #include <sys/types.h> |
16608 | #include <sys/socket.h> | |
16609 | ||
698dcdb6 | 16610 | int main() { |
51a9faba | 16611 | |
3a922bb4 RL |
16612 | int len; |
16613 | getsockname(0, 0, &len); | |
16614 | ||
698dcdb6 VZ |
16615 | ; return 0; } |
16616 | EOF | |
edae8572 | 16617 | if { (eval echo configure:16618: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 | 16618 | rm -rf conftest* |
51a9faba | 16619 | wx_cv_type_getsockname3=int |
afc31813 | 16620 | else |
698dcdb6 VZ |
16621 | echo "configure: failed program was:" >&5 |
16622 | cat conftest.$ac_ext >&5 | |
16623 | rm -rf conftest* | |
16624 | wx_cv_type_getsockname3=unknown | |
3a922bb4 | 16625 | |
afc31813 | 16626 | fi |
698dcdb6 | 16627 | rm -f conftest* |
3a922bb4 | 16628 | |
afc31813 | 16629 | fi |
698dcdb6 | 16630 | rm -f conftest* |
3a922bb4 | 16631 | |
afc31813 | 16632 | fi |
698dcdb6 | 16633 | rm -f conftest* |
51a9faba | 16634 | |
3a922bb4 | 16635 | ac_ext=c |
698dcdb6 | 16636 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
afc31813 | 16637 | ac_cpp='$CPP $CPPFLAGS' |
698dcdb6 VZ |
16638 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
16639 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
16640 | cross_compiling=$ac_cv_prog_cc_cross | |
afc31813 | 16641 | |
3a922bb4 | 16642 | |
51a9faba | 16643 | fi |
698dcdb6 VZ |
16644 | |
16645 | echo "$ac_t""$wx_cv_type_getsockname3" 1>&6 | |
51a9faba | 16646 | |
3a922bb4 RL |
16647 | if test "$wx_cv_type_getsockname3" = "unknown"; then |
16648 | wxUSE_SOCKETS=no | |
16649 | echo "configure: warning: Couldn't find socklen_t synonym for this system" 1>&2 | |
16650 | else | |
16651 | cat >> confdefs.h <<EOF | |
51a9faba VZ |
16652 | #define SOCKLEN_T $wx_cv_type_getsockname3 |
16653 | EOF | |
16654 | ||
3a922bb4 | 16655 | fi |
51a9faba VZ |
16656 | fi |
16657 | fi | |
afc31813 | 16658 | |
51a9faba | 16659 | if test "$wxUSE_SOCKETS" = "yes" ; then |
698dcdb6 | 16660 | cat >> confdefs.h <<\EOF |
afc31813 VZ |
16661 | #define wxUSE_SOCKETS 1 |
16662 | EOF | |
16663 | ||
70f7a477 | 16664 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets" |
afc31813 VZ |
16665 | fi |
16666 | ||
698dcdb6 | 16667 | |
dc3d889d VZ |
16668 | if test "$wxUSE_GUI" = "yes"; then |
16669 | ||
3a922bb4 RL |
16670 | if test "$TOOLKIT" != "MSW"; then |
16671 | if test "$wxUSE_JOYSTICK" = "yes"; then | |
16672 | for ac_hdr in linux/joystick.h | |
10f2d63a | 16673 | do |
698dcdb6 VZ |
16674 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
16675 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
edae8572 | 16676 | echo "configure:16677: checking for $ac_hdr" >&5 |
698dcdb6 VZ |
16677 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
16678 | echo $ac_n "(cached) $ac_c" 1>&6 | |
16679 | else | |
16680 | cat > conftest.$ac_ext <<EOF | |
edae8572 | 16681 | #line 16682 "configure" |
10f2d63a | 16682 | #include "confdefs.h" |
698dcdb6 VZ |
16683 | #include <$ac_hdr> |
16684 | EOF | |
16685 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
edae8572 | 16686 | { (eval echo configure:16687: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
16687 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
16688 | if test -z "$ac_err"; then | |
16689 | rm -rf conftest* | |
16690 | eval "ac_cv_header_$ac_safe=yes" | |
10f2d63a | 16691 | else |
698dcdb6 VZ |
16692 | echo "$ac_err" >&5 |
16693 | echo "configure: failed program was:" >&5 | |
10f2d63a | 16694 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
16695 | rm -rf conftest* |
16696 | eval "ac_cv_header_$ac_safe=no" | |
10f2d63a | 16697 | fi |
698dcdb6 | 16698 | rm -f conftest* |
10f2d63a | 16699 | fi |
698dcdb6 VZ |
16700 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
16701 | echo "$ac_t""yes" 1>&6 | |
16702 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
16703 | cat >> confdefs.h <<EOF | |
16704 | #define $ac_tr_hdr 1 | |
10f2d63a | 16705 | EOF |
698dcdb6 VZ |
16706 | |
16707 | else | |
16708 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
16709 | fi |
16710 | done | |
16711 | ||
3a922bb4 RL |
16712 | if test "$ac_cv_header_linux_joystick_h" != "yes"; then |
16713 | wxUSE_JOYSTICK=no | |
16714 | echo "configure: warning: Joystick not supported by this system" 1>&2 | |
16715 | fi | |
16716 | fi | |
16717 | fi | |
b089607b | 16718 | |
3a922bb4 RL |
16719 | if test "$wxUSE_JOYSTICK" = "yes"; then |
16720 | cat >> confdefs.h <<\EOF | |
10f2d63a VZ |
16721 | #define wxUSE_JOYSTICK 1 |
16722 | EOF | |
16723 | ||
3a922bb4 RL |
16724 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest" |
16725 | fi | |
dc3d889d VZ |
16726 | fi |
16727 | ||
698dcdb6 | 16728 | |
b089607b VZ |
16729 | if test "$TOOLKIT" != "MSW"; then |
16730 | ||
3a922bb4 RL |
16731 | HAVE_DL_FUNCS=0 |
16732 | HAVE_SHL_FUNCS=0 | |
16733 | if test "$wxUSE_DYNLIB_CLASS" = "yes"; then | |
16734 | if test "$USE_DARWIN" = 1; then | |
16735 | HAVE_DL_FUNCS=1 | |
16736 | else | |
16737 | for ac_func in dlopen | |
10f2d63a | 16738 | do |
698dcdb6 | 16739 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
edae8572 | 16740 | echo "configure:16741: checking for $ac_func" >&5 |
698dcdb6 VZ |
16741 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
16742 | echo $ac_n "(cached) $ac_c" 1>&6 | |
16743 | else | |
16744 | cat > conftest.$ac_ext <<EOF | |
edae8572 | 16745 | #line 16746 "configure" |
10f2d63a VZ |
16746 | #include "confdefs.h" |
16747 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 16748 | which can conflict with char $ac_func(); below. */ |
10f2d63a VZ |
16749 | #include <assert.h> |
16750 | /* Override any gcc2 internal prototype to avoid an error. */ | |
16751 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
16752 | builtin and then its argument prototype would still apply. */ |
16753 | char $ac_func(); | |
16754 | ||
16755 | int main() { | |
10f2d63a VZ |
16756 | |
16757 | /* The GNU C library defines this for functions which it implements | |
16758 | to always fail with ENOSYS. Some functions are actually named | |
16759 | something starting with __ and the normal name is an alias. */ | |
16760 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
16761 | choke me | |
16762 | #else | |
698dcdb6 | 16763 | $ac_func(); |
10f2d63a VZ |
16764 | #endif |
16765 | ||
698dcdb6 VZ |
16766 | ; return 0; } |
16767 | EOF | |
edae8572 | 16768 | if { (eval echo configure:16769: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
16769 | rm -rf conftest* |
16770 | eval "ac_cv_func_$ac_func=yes" | |
16771 | else | |
16772 | echo "configure: failed program was:" >&5 | |
16773 | cat conftest.$ac_ext >&5 | |
16774 | rm -rf conftest* | |
16775 | eval "ac_cv_func_$ac_func=no" | |
16776 | fi | |
16777 | rm -f conftest* | |
16778 | fi | |
16779 | ||
16780 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
16781 | echo "$ac_t""yes" 1>&6 | |
16782 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
16783 | cat >> confdefs.h <<EOF | |
16784 | #define $ac_tr_func 1 | |
16785 | EOF | |
16786 | ||
3a922bb4 | 16787 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16788 | #define HAVE_DLOPEN 1 |
16789 | EOF | |
16790 | ||
3a922bb4 RL |
16791 | HAVE_DL_FUNCS=1 |
16792 | ||
10f2d63a | 16793 | else |
698dcdb6 VZ |
16794 | echo "$ac_t""no" 1>&6 |
16795 | echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6 | |
edae8572 | 16796 | echo "configure:16797: checking for dlopen in -ldl" >&5 |
698dcdb6 VZ |
16797 | ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'` |
16798 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
16799 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 16800 | else |
698dcdb6 | 16801 | ac_save_LIBS="$LIBS" |
10f2d63a | 16802 | LIBS="-ldl $LIBS" |
698dcdb6 | 16803 | cat > conftest.$ac_ext <<EOF |
edae8572 | 16804 | #line 16805 "configure" |
10f2d63a VZ |
16805 | #include "confdefs.h" |
16806 | /* Override any gcc2 internal prototype to avoid an error. */ | |
16807 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
16808 | builtin and then its argument prototype would still apply. */ |
16809 | char dlopen(); | |
16810 | ||
16811 | int main() { | |
16812 | dlopen() | |
16813 | ; return 0; } | |
16814 | EOF | |
edae8572 | 16815 | if { (eval echo configure:16816: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
16816 | rm -rf conftest* |
16817 | eval "ac_cv_lib_$ac_lib_var=yes" | |
16818 | else | |
16819 | echo "configure: failed program was:" >&5 | |
16820 | cat conftest.$ac_ext >&5 | |
16821 | rm -rf conftest* | |
16822 | eval "ac_cv_lib_$ac_lib_var=no" | |
16823 | fi | |
16824 | rm -f conftest* | |
16825 | LIBS="$ac_save_LIBS" | |
16826 | ||
16827 | fi | |
16828 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
16829 | echo "$ac_t""yes" 1>&6 | |
16830 | ||
3a922bb4 | 16831 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16832 | #define HAVE_DLOPEN 1 |
16833 | EOF | |
16834 | ||
3a922bb4 RL |
16835 | HAVE_DL_FUNCS=1 |
16836 | LIBS="$LIBS -ldl" | |
16837 | ||
10f2d63a | 16838 | else |
698dcdb6 | 16839 | echo "$ac_t""no" 1>&6 |
10f2d63a | 16840 | |
3a922bb4 | 16841 | for ac_func in shl_load |
10f2d63a | 16842 | do |
698dcdb6 | 16843 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
edae8572 | 16844 | echo "configure:16845: checking for $ac_func" >&5 |
698dcdb6 VZ |
16845 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
16846 | echo $ac_n "(cached) $ac_c" 1>&6 | |
16847 | else | |
16848 | cat > conftest.$ac_ext <<EOF | |
edae8572 | 16849 | #line 16850 "configure" |
10f2d63a VZ |
16850 | #include "confdefs.h" |
16851 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 16852 | which can conflict with char $ac_func(); below. */ |
10f2d63a VZ |
16853 | #include <assert.h> |
16854 | /* Override any gcc2 internal prototype to avoid an error. */ | |
16855 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
16856 | builtin and then its argument prototype would still apply. */ |
16857 | char $ac_func(); | |
16858 | ||
16859 | int main() { | |
10f2d63a VZ |
16860 | |
16861 | /* The GNU C library defines this for functions which it implements | |
16862 | to always fail with ENOSYS. Some functions are actually named | |
16863 | something starting with __ and the normal name is an alias. */ | |
16864 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
16865 | choke me | |
16866 | #else | |
698dcdb6 | 16867 | $ac_func(); |
10f2d63a VZ |
16868 | #endif |
16869 | ||
698dcdb6 VZ |
16870 | ; return 0; } |
16871 | EOF | |
edae8572 | 16872 | if { (eval echo configure:16873: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
16873 | rm -rf conftest* |
16874 | eval "ac_cv_func_$ac_func=yes" | |
16875 | else | |
16876 | echo "configure: failed program was:" >&5 | |
16877 | cat conftest.$ac_ext >&5 | |
16878 | rm -rf conftest* | |
16879 | eval "ac_cv_func_$ac_func=no" | |
16880 | fi | |
16881 | rm -f conftest* | |
16882 | fi | |
16883 | ||
16884 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
16885 | echo "$ac_t""yes" 1>&6 | |
16886 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
16887 | cat >> confdefs.h <<EOF | |
16888 | #define $ac_tr_func 1 | |
16889 | EOF | |
16890 | ||
3a922bb4 | 16891 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16892 | #define HAVE_SHL_LOAD 1 |
16893 | EOF | |
16894 | ||
3a922bb4 RL |
16895 | HAVE_SHL_FUNCS=1 |
16896 | ||
10f2d63a | 16897 | else |
698dcdb6 VZ |
16898 | echo "$ac_t""no" 1>&6 |
16899 | echo $ac_n "checking for dld in -lshl_load""... $ac_c" 1>&6 | |
edae8572 | 16900 | echo "configure:16901: checking for dld in -lshl_load" >&5 |
698dcdb6 VZ |
16901 | ac_lib_var=`echo shl_load'_'dld | sed 'y%./+-%__p_%'` |
16902 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
16903 | echo $ac_n "(cached) $ac_c" 1>&6 | |
f6bcfd97 | 16904 | else |
698dcdb6 | 16905 | ac_save_LIBS="$LIBS" |
f6bcfd97 | 16906 | LIBS="-lshl_load $LIBS" |
698dcdb6 | 16907 | cat > conftest.$ac_ext <<EOF |
edae8572 | 16908 | #line 16909 "configure" |
f6bcfd97 BP |
16909 | #include "confdefs.h" |
16910 | /* Override any gcc2 internal prototype to avoid an error. */ | |
16911 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
16912 | builtin and then its argument prototype would still apply. */ |
16913 | char dld(); | |
16914 | ||
16915 | int main() { | |
16916 | dld() | |
16917 | ; return 0; } | |
16918 | EOF | |
edae8572 | 16919 | if { (eval echo configure:16920: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
16920 | rm -rf conftest* |
16921 | eval "ac_cv_lib_$ac_lib_var=yes" | |
16922 | else | |
16923 | echo "configure: failed program was:" >&5 | |
16924 | cat conftest.$ac_ext >&5 | |
16925 | rm -rf conftest* | |
16926 | eval "ac_cv_lib_$ac_lib_var=no" | |
16927 | fi | |
16928 | rm -f conftest* | |
16929 | LIBS="$ac_save_LIBS" | |
f6bcfd97 | 16930 | |
698dcdb6 VZ |
16931 | fi |
16932 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
16933 | echo "$ac_t""yes" 1>&6 | |
16934 | ||
3a922bb4 RL |
16935 | HAVE_SHL_FUNCS=1 |
16936 | LIBS="$LIBS -ldld" | |
16937 | ||
698dcdb6 VZ |
16938 | else |
16939 | echo "$ac_t""no" 1>&6 | |
f6bcfd97 BP |
16940 | fi |
16941 | ||
3a922bb4 | 16942 | |
10f2d63a VZ |
16943 | fi |
16944 | done | |
16945 | ||
3a922bb4 | 16946 | |
10f2d63a VZ |
16947 | fi |
16948 | ||
3a922bb4 | 16949 | |
10f2d63a VZ |
16950 | fi |
16951 | done | |
16952 | ||
1e487827 | 16953 | |
3a922bb4 RL |
16954 | if test "$HAVE_DL_FUNCS" = 1; then |
16955 | for ac_func in dlerror | |
f6bcfd97 | 16956 | do |
698dcdb6 | 16957 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
edae8572 | 16958 | echo "configure:16959: checking for $ac_func" >&5 |
698dcdb6 VZ |
16959 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
16960 | echo $ac_n "(cached) $ac_c" 1>&6 | |
16961 | else | |
16962 | cat > conftest.$ac_ext <<EOF | |
edae8572 | 16963 | #line 16964 "configure" |
f6bcfd97 BP |
16964 | #include "confdefs.h" |
16965 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 16966 | which can conflict with char $ac_func(); below. */ |
f6bcfd97 BP |
16967 | #include <assert.h> |
16968 | /* Override any gcc2 internal prototype to avoid an error. */ | |
16969 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
16970 | builtin and then its argument prototype would still apply. */ |
16971 | char $ac_func(); | |
16972 | ||
16973 | int main() { | |
f6bcfd97 BP |
16974 | |
16975 | /* The GNU C library defines this for functions which it implements | |
16976 | to always fail with ENOSYS. Some functions are actually named | |
16977 | something starting with __ and the normal name is an alias. */ | |
16978 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
16979 | choke me | |
16980 | #else | |
698dcdb6 | 16981 | $ac_func(); |
f6bcfd97 BP |
16982 | #endif |
16983 | ||
698dcdb6 VZ |
16984 | ; return 0; } |
16985 | EOF | |
edae8572 | 16986 | if { (eval echo configure:16987: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
16987 | rm -rf conftest* |
16988 | eval "ac_cv_func_$ac_func=yes" | |
16989 | else | |
16990 | echo "configure: failed program was:" >&5 | |
16991 | cat conftest.$ac_ext >&5 | |
16992 | rm -rf conftest* | |
16993 | eval "ac_cv_func_$ac_func=no" | |
16994 | fi | |
16995 | rm -f conftest* | |
16996 | fi | |
16997 | ||
16998 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
16999 | echo "$ac_t""yes" 1>&6 | |
17000 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
17001 | cat >> confdefs.h <<EOF | |
17002 | #define $ac_tr_func 1 | |
17003 | EOF | |
17004 | cat >> confdefs.h <<\EOF | |
f6bcfd97 BP |
17005 | #define HAVE_DLERROR 1 |
17006 | EOF | |
17007 | ||
17008 | else | |
698dcdb6 VZ |
17009 | echo "$ac_t""no" 1>&6 |
17010 | echo $ac_n "checking for dlerror in -ldl""... $ac_c" 1>&6 | |
edae8572 | 17011 | echo "configure:17012: checking for dlerror in -ldl" >&5 |
698dcdb6 VZ |
17012 | ac_lib_var=`echo dl'_'dlerror | sed 'y%./+-%__p_%'` |
17013 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
17014 | echo $ac_n "(cached) $ac_c" 1>&6 | |
f6bcfd97 | 17015 | else |
698dcdb6 | 17016 | ac_save_LIBS="$LIBS" |
f6bcfd97 | 17017 | LIBS="-ldl $LIBS" |
698dcdb6 | 17018 | cat > conftest.$ac_ext <<EOF |
edae8572 | 17019 | #line 17020 "configure" |
f6bcfd97 BP |
17020 | #include "confdefs.h" |
17021 | /* Override any gcc2 internal prototype to avoid an error. */ | |
17022 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
17023 | builtin and then its argument prototype would still apply. */ |
17024 | char dlerror(); | |
17025 | ||
17026 | int main() { | |
17027 | dlerror() | |
17028 | ; return 0; } | |
17029 | EOF | |
edae8572 | 17030 | if { (eval echo configure:17031: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
17031 | rm -rf conftest* |
17032 | eval "ac_cv_lib_$ac_lib_var=yes" | |
17033 | else | |
17034 | echo "configure: failed program was:" >&5 | |
17035 | cat conftest.$ac_ext >&5 | |
17036 | rm -rf conftest* | |
17037 | eval "ac_cv_lib_$ac_lib_var=no" | |
17038 | fi | |
17039 | rm -f conftest* | |
17040 | LIBS="$ac_save_LIBS" | |
17041 | ||
17042 | fi | |
17043 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
17044 | echo "$ac_t""yes" 1>&6 | |
17045 | cat >> confdefs.h <<\EOF | |
f6bcfd97 BP |
17046 | #define HAVE_DLERROR 1 |
17047 | EOF | |
17048 | ||
698dcdb6 VZ |
17049 | else |
17050 | echo "$ac_t""no" 1>&6 | |
f6bcfd97 BP |
17051 | fi |
17052 | ||
17053 | fi | |
17054 | done | |
17055 | ||
3a922bb4 RL |
17056 | fi |
17057 | fi | |
f6bcfd97 | 17058 | |
3a922bb4 RL |
17059 | if test "$HAVE_DL_FUNCS" = 0; then |
17060 | if test "$HAVE_SHL_FUNCS" = 0; then | |
17061 | if test "$USE_UNIX" = 1; then | |
17062 | echo "configure: warning: Missing dynamic loading support, several features will be disabled" 1>&2 | |
17063 | wxUSE_DYNLIB_CLASS=no | |
17064 | else | |
17065 | echo "configure: warning: Assuming wxLibrary class works on this platform" 1>&2 | |
17066 | fi | |
17067 | fi | |
10f2d63a VZ |
17068 | fi |
17069 | fi | |
17070 | fi | |
17071 | ||
17072 | if test "$wxUSE_DYNLIB_CLASS" = "yes" ; then | |
698dcdb6 | 17073 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17074 | #define wxUSE_DYNLIB_CLASS 1 |
17075 | EOF | |
17076 | ||
b12915c1 VZ |
17077 | else |
17078 | wxUSE_ODBC=no | |
17079 | wxUSE_SERIAL=no | |
10f2d63a VZ |
17080 | fi |
17081 | ||
698dcdb6 | 17082 | |
1e6feb95 VZ |
17083 | if test "$wxUSE_FONTMAP" = "yes" ; then |
17084 | cat >> confdefs.h <<\EOF | |
17085 | #define wxUSE_FONTMAP 1 | |
17086 | EOF | |
17087 | ||
17088 | fi | |
17089 | ||
10f2d63a | 17090 | if test "$wxUSE_UNICODE" = "yes" ; then |
698dcdb6 | 17091 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17092 | #define wxUSE_UNICODE 1 |
17093 | EOF | |
17094 | ||
17095 | fi | |
17096 | ||
10f2d63a | 17097 | if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then |
698dcdb6 | 17098 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17099 | #define wxUSE_EXPERIMENTAL_PRINTF 1 |
17100 | EOF | |
17101 | ||
17102 | fi | |
17103 | ||
698dcdb6 | 17104 | |
b12915c1 | 17105 | if test "$wxUSE_SERIAL" = "yes" ; then |
698dcdb6 | 17106 | cat >> confdefs.h <<\EOF |
b12915c1 VZ |
17107 | #define wxUSE_SERIAL 1 |
17108 | EOF | |
17109 | ||
17110 | fi | |
17111 | ||
698dcdb6 | 17112 | |
10f2d63a VZ |
17113 | IODBC_C_SRC="" |
17114 | if test "$wxUSE_ODBC" = "yes" ; then | |
698dcdb6 | 17115 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17116 | #define wxUSE_ODBC 1 |
17117 | EOF | |
17118 | ||
17119 | WXODBCFLAG="-D_IODBC_" | |
17120 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db" | |
10f2d63a VZ |
17121 | fi |
17122 | ||
698dcdb6 | 17123 | |
10f2d63a | 17124 | if test "$wxUSE_POSTSCRIPT" = "yes" ; then |
698dcdb6 | 17125 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17126 | #define wxUSE_POSTSCRIPT 1 |
17127 | EOF | |
17128 | ||
17129 | fi | |
17130 | ||
698dcdb6 | 17131 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17132 | #define wxUSE_AFM_FOR_POSTSCRIPT 1 |
17133 | EOF | |
17134 | ||
698dcdb6 VZ |
17135 | |
17136 | cat >> confdefs.h <<\EOF | |
10f2d63a VZ |
17137 | #define wxUSE_NORMALIZED_PS_FONTS 1 |
17138 | EOF | |
17139 | ||
698dcdb6 VZ |
17140 | |
17141 | ||
10f2d63a | 17142 | if test "$wxUSE_CONSTRAINTS" = "yes"; then |
698dcdb6 | 17143 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17144 | #define wxUSE_CONSTRAINTS 1 |
17145 | EOF | |
17146 | ||
17147 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout" | |
17148 | fi | |
17149 | ||
17150 | if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then | |
698dcdb6 | 17151 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17152 | #define wxUSE_MDI_ARCHITECTURE 1 |
17153 | EOF | |
17154 | ||
17155 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi" | |
17156 | fi | |
17157 | ||
17158 | if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then | |
698dcdb6 | 17159 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17160 | #define wxUSE_DOC_VIEW_ARCHITECTURE 1 |
17161 | EOF | |
17162 | ||
17163 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview" | |
17164 | if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then | |
17165 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi" | |
17166 | fi | |
17167 | fi | |
17168 | ||
17169 | if test "$wxUSE_HELP" = "yes"; then | |
698dcdb6 | 17170 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17171 | #define wxUSE_HELP 1 |
17172 | EOF | |
17173 | ||
17174 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help" | |
3379ed37 | 17175 | |
3e44f09d | 17176 | if test "$USE_WIN32" = 1; then |
031d8228 | 17177 | if test "$wxUSE_MS_HTML_HELP" = "yes"; then |
29fd3c0c VS |
17178 | ac_safe=`echo "htmlhelp.h" | sed 'y%./+-%__p_%'` |
17179 | echo $ac_n "checking for htmlhelp.h""... $ac_c" 1>&6 | |
edae8572 | 17180 | echo "configure:17181: checking for htmlhelp.h" >&5 |
29fd3c0c VS |
17181 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
17182 | echo $ac_n "(cached) $ac_c" 1>&6 | |
17183 | else | |
17184 | cat > conftest.$ac_ext <<EOF | |
edae8572 | 17185 | #line 17186 "configure" |
29fd3c0c VS |
17186 | #include "confdefs.h" |
17187 | #include <htmlhelp.h> | |
17188 | EOF | |
17189 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
edae8572 | 17190 | { (eval echo configure:17191: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
29fd3c0c VS |
17191 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
17192 | if test -z "$ac_err"; then | |
17193 | rm -rf conftest* | |
17194 | eval "ac_cv_header_$ac_safe=yes" | |
17195 | else | |
17196 | echo "$ac_err" >&5 | |
17197 | echo "configure: failed program was:" >&5 | |
17198 | cat conftest.$ac_ext >&5 | |
17199 | rm -rf conftest* | |
17200 | eval "ac_cv_header_$ac_safe=no" | |
17201 | fi | |
17202 | rm -f conftest* | |
17203 | fi | |
17204 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
17205 | echo "$ac_t""yes" 1>&6 | |
17206 | ||
17207 | cat >> confdefs.h <<\EOF | |
17208 | #define wxUSE_MS_HTML_HELP 1 | |
17209 | EOF | |
17210 | ||
17211 | ||
17212 | else | |
17213 | echo "$ac_t""no" 1>&6 | |
17214 | ||
2b9bdf71 | 17215 | echo "configure: warning: MS HTML Help cannot be used without htmlhelp.h, disabled" 1>&2 |
29fd3c0c VS |
17216 | wxUSE_MS_HTML_HELP=no |
17217 | ||
17218 | fi | |
17219 | ||
3e44f09d | 17220 | fi |
3379ed37 | 17221 | fi |
031d8228 VS |
17222 | |
17223 | if test "$wxUSE_WXHTML_HELP" = "yes"; then | |
17224 | if test "$wxUSE_HTML" = "yes"; then | |
17225 | cat >> confdefs.h <<\EOF | |
17226 | #define wxUSE_WXHTML_HELP 1 | |
17227 | EOF | |
17228 | ||
17229 | else | |
17230 | echo "configure: warning: Cannot use wxHTML-based help without wxHTML so it won't be compiled" 1>&2 | |
17231 | wxUSE_WXHTML_HELP=no | |
17232 | fi | |
17233 | fi | |
10f2d63a VZ |
17234 | fi |
17235 | ||
17236 | if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then | |
17237 | if test "$wxUSE_CONSTRAINTS" != "yes"; then | |
698dcdb6 | 17238 | echo "configure: warning: Printing support cannot be used without constraints so it won't be compiled without it" 1>&2 |
10f2d63a | 17239 | else |
698dcdb6 | 17240 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17241 | #define wxUSE_PRINTING_ARCHITECTURE 1 |
17242 | EOF | |
17243 | ||
17244 | fi | |
17245 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing" | |
17246 | fi | |
17247 | ||
17248 | if test "$wxUSE_PROLOGIO" = "yes" ; then | |
698dcdb6 | 17249 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17250 | #define wxUSE_PROLOGIO 1 |
17251 | EOF | |
17252 | ||
17253 | fi | |
17254 | ||
17255 | if test "$wxUSE_RESOURCES" = "yes" ; then | |
3379ed37 | 17256 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17257 | #define wxUSE_RESOURCES 1 |
17258 | EOF | |
17259 | ||
3379ed37 | 17260 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS resource" |
10f2d63a VZ |
17261 | fi |
17262 | ||
17263 | if test "$wxUSE_X_RESOURCES" = "yes"; then | |
698dcdb6 | 17264 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17265 | #define wxUSE_X_RESOURCES 1 |
17266 | EOF | |
17267 | ||
17268 | fi | |
17269 | ||
698dcdb6 | 17270 | |
3a922bb4 RL |
17271 | if test "$USE_WIN32" = 1 -a \( "$wxUSE_DATAOBJ" = "yes" \ |
17272 | -o "$wxUSE_CLIPBOARD" = "yes" \ | |
17273 | -o "$wxUSE_DRAG_AND_DROP" = "yes" \) ; then | |
2b9bdf71 | 17274 | for ac_hdr in ole2.h |
10f2d63a | 17275 | do |
698dcdb6 VZ |
17276 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
17277 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
edae8572 | 17278 | echo "configure:17279: checking for $ac_hdr" >&5 |
698dcdb6 VZ |
17279 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
17280 | echo $ac_n "(cached) $ac_c" 1>&6 | |
17281 | else | |
17282 | cat > conftest.$ac_ext <<EOF | |
edae8572 | 17283 | #line 17284 "configure" |
10f2d63a | 17284 | #include "confdefs.h" |
698dcdb6 VZ |
17285 | #include <$ac_hdr> |
17286 | EOF | |
17287 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
edae8572 | 17288 | { (eval echo configure:17289: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
17289 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
17290 | if test -z "$ac_err"; then | |
17291 | rm -rf conftest* | |
17292 | eval "ac_cv_header_$ac_safe=yes" | |
1e487827 | 17293 | else |
698dcdb6 VZ |
17294 | echo "$ac_err" >&5 |
17295 | echo "configure: failed program was:" >&5 | |
10f2d63a | 17296 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
17297 | rm -rf conftest* |
17298 | eval "ac_cv_header_$ac_safe=no" | |
10f2d63a | 17299 | fi |
698dcdb6 | 17300 | rm -f conftest* |
10f2d63a | 17301 | fi |
698dcdb6 VZ |
17302 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
17303 | echo "$ac_t""yes" 1>&6 | |
17304 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
17305 | cat >> confdefs.h <<EOF | |
17306 | #define $ac_tr_hdr 1 | |
10f2d63a | 17307 | EOF |
698dcdb6 VZ |
17308 | |
17309 | else | |
17310 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
17311 | fi |
17312 | done | |
17313 | ||
698dcdb6 | 17314 | |
2b9bdf71 VZ |
17315 | if test "$ac_cv_header_ole2_h" = "yes" ; then |
17316 | if test "$GCC" = yes ; then | |
17317 | ALL_OBJECTS="$ALL_OBJECTS \$(OLEOBJS)" | |
2b9bdf71 VZ |
17318 | CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fvtable-thunks" |
17319 | LIBS="$LIBS -lrpcrt4 -loleaut32 -lole32 -luuid" | |
17320 | cat >> confdefs.h <<\EOF | |
4f11a343 VS |
17321 | #define wxUSE_OLE 1 |
17322 | EOF | |
17323 | ||
b64f0a5f | 17324 | |
2b9bdf71 VZ |
17325 | fi |
17326 | ||
17327 | cat >> confdefs.h <<\EOF | |
17328 | #define wxUSE_DATAOBJ 1 | |
17329 | EOF | |
17330 | ||
17331 | else | |
17332 | echo "configure: warning: Some features disabled because OLE headers not found" 1>&2 | |
17333 | ||
17334 | wxUSE_CLIPBOARD=no | |
17335 | wxUSE_DRAG_AND_DROP=no | |
17336 | wxUSE_DATAOBJ=no | |
17337 | fi | |
17338 | ||
17339 | if test "$wxUSE_METAFILE" = "yes"; then | |
17340 | cat >> confdefs.h <<\EOF | |
b64f0a5f RL |
17341 | #define wxUSE_METAFILE 1 |
17342 | EOF | |
17343 | ||
2b9bdf71 VZ |
17344 | |
17345 | cat >> confdefs.h <<\EOF | |
b64f0a5f RL |
17346 | #define wxUSE_ENH_METAFILE 1 |
17347 | EOF | |
17348 | ||
2b9bdf71 VZ |
17349 | fi |
17350 | fi | |
17351 | ||
17352 | if test "$wxUSE_IPC" = "yes"; then | |
17353 | if test "$wxUSE_SOCKETS" != "yes"; then | |
17354 | echo "configure: warning: wxWindows IPC classes require sockets" 1>&2 | |
17355 | fi | |
17356 | ||
17357 | cat >> confdefs.h <<\EOF | |
17358 | #define wxUSE_IPC 1 | |
17359 | EOF | |
17360 | ||
17361 | fi | |
17362 | ||
17363 | if test "$wxUSE_CLIPBOARD" = "yes"; then | |
17364 | cat >> confdefs.h <<\EOF | |
17365 | #define wxUSE_CLIPBOARD 1 | |
17366 | EOF | |
17367 | ||
673f4220 | 17368 | |
e33ef661 | 17369 | cat >> confdefs.h <<\EOF |
673f4220 VZ |
17370 | #define wxUSE_DATAOBJ 1 |
17371 | EOF | |
17372 | ||
2b9bdf71 VZ |
17373 | fi |
17374 | ||
17375 | if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then | |
17376 | if test "$wxUSE_GTK" = 1; then | |
17377 | if test "$WXGTK12" != 1; then | |
17378 | echo "configure: warning: Drag and drop is only supported under GTK+ 1.2" 1>&2 | |
10f2d63a VZ |
17379 | wxUSE_DRAG_AND_DROP=no |
17380 | fi | |
17381 | fi | |
17382 | ||
2b9bdf71 VZ |
17383 | if test "$wxUSE_MOTIF" = 1; then |
17384 | echo "configure: warning: Drag and drop is not yet supported under Motif" 1>&2 | |
17385 | wxUSE_DRAG_AND_DROP=no | |
17386 | fi | |
17387 | ||
17388 | if test "$wxUSE_MAC" = 1; then | |
17389 | echo "configure: warning: Drag and drop is not yet supported under Mac OS X" 1>&2 | |
17390 | wxUSE_DRAG_AND_DROP=no | |
17391 | fi | |
17392 | ||
10f2d63a | 17393 | if test "$wxUSE_DRAG_AND_DROP" = "yes"; then |
698dcdb6 | 17394 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17395 | #define wxUSE_DRAG_AND_DROP 1 |
17396 | EOF | |
17397 | ||
17398 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd" | |
17399 | fi | |
17400 | ||
17401 | fi | |
17402 | ||
17403 | if test "$wxUSE_SPLINES" = "yes" ; then | |
698dcdb6 | 17404 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17405 | #define wxUSE_SPLINES 1 |
17406 | EOF | |
17407 | ||
17408 | fi | |
17409 | ||
698dcdb6 | 17410 | |
1e6feb95 VZ |
17411 | USES_CONTROLS=0 |
17412 | if test "$wxUSE_CONTROLS" = "yes"; then | |
17413 | USES_CONTROLS=1 | |
17414 | fi | |
17415 | ||
10f2d63a | 17416 | if test "$wxUSE_ACCEL" = "yes"; then |
698dcdb6 | 17417 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17418 | #define wxUSE_ACCEL 1 |
17419 | EOF | |
17420 | ||
1e6feb95 VZ |
17421 | USES_CONTROLS=1 |
17422 | fi | |
17423 | ||
17424 | if test "$wxUSE_BUTTON" = "yes"; then | |
17425 | cat >> confdefs.h <<\EOF | |
17426 | #define wxUSE_BUTTON 1 | |
17427 | EOF | |
17428 | ||
17429 | USES_CONTROLS=1 | |
17430 | fi | |
17431 | ||
17432 | if test "$wxUSE_BMPBUTTON" = "yes"; then | |
17433 | cat >> confdefs.h <<\EOF | |
17434 | #define wxUSE_BMPBUTTON 1 | |
17435 | EOF | |
17436 | ||
17437 | USES_CONTROLS=1 | |
17438 | fi | |
17439 | ||
17440 | if test "$wxUSE_CALCTRL" = "yes"; then | |
17441 | cat >> confdefs.h <<\EOF | |
17442 | #define wxUSE_CALENDARCTRL 1 | |
17443 | EOF | |
17444 | ||
17445 | USES_CONTROLS=1 | |
17446 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar" | |
10f2d63a VZ |
17447 | fi |
17448 | ||
17449 | if test "$wxUSE_CARET" = "yes"; then | |
698dcdb6 | 17450 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17451 | #define wxUSE_CARET 1 |
17452 | EOF | |
17453 | ||
1e6feb95 | 17454 | USES_CONTROLS=1 |
10f2d63a VZ |
17455 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret" |
17456 | fi | |
17457 | ||
17458 | if test "$wxUSE_COMBOBOX" = "yes"; then | |
698dcdb6 | 17459 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17460 | #define wxUSE_COMBOBOX 1 |
17461 | EOF | |
17462 | ||
1e6feb95 | 17463 | USES_CONTROLS=1 |
10f2d63a VZ |
17464 | fi |
17465 | ||
17466 | if test "$wxUSE_CHOICE" = "yes"; then | |
698dcdb6 | 17467 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17468 | #define wxUSE_CHOICE 1 |
17469 | EOF | |
17470 | ||
1e6feb95 | 17471 | USES_CONTROLS=1 |
10f2d63a VZ |
17472 | fi |
17473 | ||
17474 | if test "$wxUSE_CHECKBOX" = "yes"; then | |
698dcdb6 | 17475 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17476 | #define wxUSE_CHECKBOX 1 |
17477 | EOF | |
17478 | ||
1e6feb95 | 17479 | USES_CONTROLS=1 |
10f2d63a VZ |
17480 | fi |
17481 | ||
17482 | if test "$wxUSE_CHECKLST" = "yes"; then | |
698dcdb6 | 17483 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17484 | #define wxUSE_CHECKLISTBOX 1 |
17485 | EOF | |
17486 | ||
1e6feb95 | 17487 | USES_CONTROLS=1 |
10f2d63a VZ |
17488 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst" |
17489 | fi | |
17490 | ||
17491 | if test "$wxUSE_GAUGE" = "yes"; then | |
698dcdb6 | 17492 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17493 | #define wxUSE_GAUGE 1 |
17494 | EOF | |
17495 | ||
1e6feb95 | 17496 | USES_CONTROLS=1 |
10f2d63a VZ |
17497 | fi |
17498 | ||
d6a55c4b VZ |
17499 | if test "$wxUSE_NEW_GRID" = "yes"; then |
17500 | wxUSE_GRID="yes" | |
698dcdb6 | 17501 | cat >> confdefs.h <<\EOF |
d6a55c4b | 17502 | #define wxUSE_NEW_GRID 1 |
10f2d63a VZ |
17503 | EOF |
17504 | ||
1e6feb95 | 17505 | USES_CONTROLS=1 |
d6a55c4b | 17506 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS newgrid" |
10f2d63a VZ |
17507 | fi |
17508 | ||
d6a55c4b | 17509 | if test "$wxUSE_GRID" = "yes"; then |
698dcdb6 | 17510 | cat >> confdefs.h <<\EOF |
d6a55c4b | 17511 | #define wxUSE_GRID 1 |
10f2d63a VZ |
17512 | EOF |
17513 | ||
1e6feb95 | 17514 | USES_CONTROLS=1 |
d6a55c4b | 17515 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid" |
10f2d63a VZ |
17516 | fi |
17517 | ||
17518 | if test "$wxUSE_IMAGLIST" = "yes"; then | |
698dcdb6 | 17519 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17520 | #define wxUSE_IMAGLIST 1 |
17521 | EOF | |
17522 | ||
17523 | fi | |
17524 | ||
17525 | if test "$wxUSE_LISTBOX" = "yes"; then | |
698dcdb6 | 17526 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17527 | #define wxUSE_LISTBOX 1 |
17528 | EOF | |
17529 | ||
1e6feb95 | 17530 | USES_CONTROLS=1 |
10f2d63a VZ |
17531 | fi |
17532 | ||
17533 | if test "$wxUSE_LISTCTRL" = "yes"; then | |
17534 | if test "$wxUSE_IMAGLIST" = "yes"; then | |
698dcdb6 | 17535 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17536 | #define wxUSE_LISTCTRL 1 |
17537 | EOF | |
17538 | ||
1e6feb95 | 17539 | USES_CONTROLS=1 |
10f2d63a VZ |
17540 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl" |
17541 | else | |
698dcdb6 | 17542 | echo "configure: warning: wxListCtrl requires wxImageList and won't be compiled without it" 1>&2 |
10f2d63a VZ |
17543 | fi |
17544 | fi | |
17545 | ||
17546 | if test "$wxUSE_NOTEBOOK" = "yes"; then | |
698dcdb6 | 17547 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17548 | #define wxUSE_NOTEBOOK 1 |
17549 | EOF | |
17550 | ||
1e6feb95 | 17551 | USES_CONTROLS=1 |
10f2d63a VZ |
17552 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook" |
17553 | fi | |
17554 | ||
24176f2c GD |
17555 | if test "$wxUSE_PROPSHEET" = "yes"; then |
17556 | cat >> confdefs.h <<\EOF | |
17557 | #define wxUSE_PROPSHEET 1 | |
17558 | EOF | |
17559 | ||
17560 | USES_CONTROLS=1 | |
17561 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS proplist" | |
17562 | fi | |
17563 | ||
10f2d63a | 17564 | if test "$wxUSE_RADIOBOX" = "yes"; then |
698dcdb6 | 17565 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17566 | #define wxUSE_RADIOBOX 1 |
17567 | EOF | |
17568 | ||
1e6feb95 | 17569 | USES_CONTROLS=1 |
10f2d63a VZ |
17570 | fi |
17571 | ||
17572 | if test "$wxUSE_RADIOBTN" = "yes"; then | |
698dcdb6 | 17573 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17574 | #define wxUSE_RADIOBTN 1 |
17575 | EOF | |
17576 | ||
1e6feb95 | 17577 | USES_CONTROLS=1 |
10f2d63a VZ |
17578 | fi |
17579 | ||
17580 | if test "$wxUSE_SASH" = "yes"; then | |
698dcdb6 | 17581 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17582 | #define wxUSE_SASH 1 |
17583 | EOF | |
17584 | ||
17585 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest" | |
17586 | fi | |
17587 | ||
17588 | if test "$wxUSE_SCROLLBAR" = "yes"; then | |
698dcdb6 | 17589 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17590 | #define wxUSE_SCROLLBAR 1 |
17591 | EOF | |
17592 | ||
1e6feb95 | 17593 | USES_CONTROLS=1 |
741a9306 | 17594 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub" |
10f2d63a VZ |
17595 | fi |
17596 | ||
17597 | if test "$wxUSE_SLIDER" = "yes"; then | |
698dcdb6 | 17598 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17599 | #define wxUSE_SLIDER 1 |
17600 | EOF | |
17601 | ||
1e6feb95 | 17602 | USES_CONTROLS=1 |
10f2d63a VZ |
17603 | fi |
17604 | ||
17605 | if test "$wxUSE_SPINBTN" = "yes"; then | |
698dcdb6 | 17606 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17607 | #define wxUSE_SPINBTN 1 |
17608 | EOF | |
17609 | ||
1e6feb95 | 17610 | USES_CONTROLS=1 |
10f2d63a VZ |
17611 | fi |
17612 | ||
56cfaa52 | 17613 | if test "$wxUSE_SPINCTRL" = "yes"; then |
698dcdb6 | 17614 | cat >> confdefs.h <<\EOF |
56cfaa52 RR |
17615 | #define wxUSE_SPINCTRL 1 |
17616 | EOF | |
17617 | ||
1e6feb95 | 17618 | USES_CONTROLS=1 |
56cfaa52 RR |
17619 | fi |
17620 | ||
10f2d63a | 17621 | if test "$wxUSE_SPLITTER" = "yes"; then |
698dcdb6 | 17622 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17623 | #define wxUSE_SPLITTER 1 |
17624 | EOF | |
17625 | ||
17626 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter" | |
17627 | fi | |
17628 | ||
17629 | if test "$wxUSE_STATBMP" = "yes"; then | |
698dcdb6 | 17630 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17631 | #define wxUSE_STATBMP 1 |
17632 | EOF | |
17633 | ||
1e6feb95 | 17634 | USES_CONTROLS=1 |
10f2d63a VZ |
17635 | fi |
17636 | ||
17637 | if test "$wxUSE_STATBOX" = "yes"; then | |
698dcdb6 | 17638 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17639 | #define wxUSE_STATBOX 1 |
17640 | EOF | |
17641 | ||
1e6feb95 VZ |
17642 | USES_CONTROLS=1 |
17643 | fi | |
17644 | ||
17645 | if test "$wxUSE_STATTEXT" = "yes"; then | |
17646 | cat >> confdefs.h <<\EOF | |
17647 | #define wxUSE_STATTEXT 1 | |
17648 | EOF | |
17649 | ||
17650 | USES_CONTROLS=1 | |
10f2d63a VZ |
17651 | fi |
17652 | ||
17653 | if test "$wxUSE_STATLINE" = "yes"; then | |
17654 | if test "$wxUSE_WINE" = 1 ; then | |
698dcdb6 | 17655 | echo "configure: warning: wxStaticLine is not supported under WINE" 1>&2 |
10f2d63a | 17656 | else |
698dcdb6 | 17657 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17658 | #define wxUSE_STATLINE 1 |
17659 | EOF | |
17660 | ||
1e6feb95 | 17661 | USES_CONTROLS=1 |
10f2d63a VZ |
17662 | fi |
17663 | fi | |
17664 | ||
17665 | if test "$wxUSE_STATUSBAR" = "yes"; then | |
698dcdb6 | 17666 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17667 | #define wxUSE_STATUSBAR 1 |
17668 | EOF | |
17669 | ||
1e6feb95 | 17670 | USES_CONTROLS=1 |
698dcdb6 | 17671 | |
2286341c | 17672 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar" |
10f2d63a VZ |
17673 | fi |
17674 | ||
17675 | if test "$wxUSE_TABDIALOG" = "yes"; then | |
698dcdb6 | 17676 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17677 | #define wxUSE_TAB_DIALOG 1 |
17678 | EOF | |
17679 | ||
17680 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS tab" | |
17681 | fi | |
17682 | ||
1e6feb95 VZ |
17683 | if test "$wxUSE_TEXTCTRL" = "yes"; then |
17684 | cat >> confdefs.h <<\EOF | |
17685 | #define wxUSE_TEXTCTRL 1 | |
17686 | EOF | |
17687 | ||
17688 | USES_CONTROLS=1 | |
17689 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text" | |
17690 | fi | |
17691 | ||
1db8dc4a | 17692 | if test "$wxUSE_TOGGLEBTN" = "yes"; then |
a45d7ab7 GD |
17693 | if test "$wxUSE_MAC" = 1; then |
17694 | echo "configure: warning: Toggle button is not yet supported under Mac OS X" 1>&2 | |
17695 | wxUSE_TOGGLEBTN=no | |
17696 | fi | |
17697 | ||
17698 | if test "$wxUSE_TOGGLEBTN" = "yes"; then | |
17699 | cat >> confdefs.h <<\EOF | |
1db8dc4a VZ |
17700 | #define wxUSE_TOGGLEBTN 1 |
17701 | EOF | |
17702 | ||
1e6feb95 | 17703 | USES_CONTROLS=1 |
a45d7ab7 | 17704 | fi |
1db8dc4a VZ |
17705 | fi |
17706 | ||
360d6699 | 17707 | if test "$wxUSE_TOOLBAR_SIMPLE" = "yes"; then |
698dcdb6 | 17708 | cat >> confdefs.h <<\EOF |
360d6699 VZ |
17709 | #define wxUSE_TOOLBAR_SIMPLE 1 |
17710 | EOF | |
17711 | ||
17712 | wxUSE_TOOLBAR="yes" | |
1e6feb95 | 17713 | USES_CONTROLS=1 |
360d6699 VZ |
17714 | fi |
17715 | ||
10f2d63a | 17716 | if test "$wxUSE_TOOLBAR" = "yes"; then |
698dcdb6 | 17717 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17718 | #define wxUSE_TOOLBAR 1 |
17719 | EOF | |
17720 | ||
1e6feb95 | 17721 | USES_CONTROLS=1 |
698dcdb6 | 17722 | |
360d6699 VZ |
17723 | if test "$wxUSE_TOOLBAR_SIMPLE" != "yes"; then |
17724 | wxUSE_TOOLBAR_NATIVE="yes" | |
17725 | fi | |
17726 | ||
1e6feb95 VZ |
17727 | if test "$wxUSE_TOOLBAR_NATIVE" = "yes"; then |
17728 | cat >> confdefs.h <<\EOF | |
360d6699 VZ |
17729 | #define wxUSE_TOOLBAR_NATIVE 1 |
17730 | EOF | |
17731 | ||
1e6feb95 VZ |
17732 | USES_CONTROLS=1 |
17733 | fi | |
17734 | ||
17735 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar" | |
360d6699 VZ |
17736 | fi |
17737 | ||
10f2d63a VZ |
17738 | if test "$wxUSE_TOOLTIPS" = "yes"; then |
17739 | if test "$wxUSE_MOTIF" = 1; then | |
698dcdb6 | 17740 | echo "configure: warning: wxTooltip not supported yet under Motif" 1>&2 |
10f2d63a VZ |
17741 | else |
17742 | if test "$wxUSE_WINE" = 1; then | |
698dcdb6 | 17743 | echo "configure: warning: wxTooltip not supported under WINE" 1>&2 |
10f2d63a | 17744 | else |
698dcdb6 | 17745 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17746 | #define wxUSE_TOOLTIPS 1 |
17747 | EOF | |
17748 | ||
17749 | fi | |
17750 | fi | |
17751 | fi | |
17752 | ||
17753 | if test "$wxUSE_TREECTRL" = "yes"; then | |
17754 | if test "$wxUSE_IMAGLIST" = "yes"; then | |
698dcdb6 | 17755 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17756 | #define wxUSE_TREECTRL 1 |
17757 | EOF | |
17758 | ||
1e6feb95 | 17759 | USES_CONTROLS=1 |
10f2d63a VZ |
17760 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl" |
17761 | else | |
698dcdb6 | 17762 | echo "configure: warning: wxTreeCtrl requires wxImageList and won't be compiled without it" 1>&2 |
10f2d63a VZ |
17763 | fi |
17764 | fi | |
17765 | ||
9f41d601 | 17766 | if test "$wxUSE_POPUPWIN" = "yes"; then |
6abe4b65 GD |
17767 | if test "$wxUSE_MAC" = 1; then |
17768 | echo "configure: warning: Popup window is not yet supported under Mac OS" 1>&2 | |
17769 | else | |
17770 | cat >> confdefs.h <<\EOF | |
9f41d601 RR |
17771 | #define wxUSE_POPUPWIN 1 |
17772 | EOF | |
17773 | ||
6abe4b65 GD |
17774 | USES_CONTROLS=1 |
17775 | fi | |
9f41d601 RR |
17776 | fi |
17777 | ||
1e6feb95 VZ |
17778 | if test "$USES_CONTROLS" = 1; then |
17779 | cat >> confdefs.h <<\EOF | |
17780 | #define wxUSE_CONTROLS 1 | |
10f2d63a VZ |
17781 | EOF |
17782 | ||
10f2d63a VZ |
17783 | fi |
17784 | ||
1e6feb95 | 17785 | |
24176f2c GD |
17786 | if test "$wxUSE_TREELAYOUT" = "yes"; then |
17787 | cat >> confdefs.h <<\EOF | |
17788 | #define wxUSE_TREELAYOUT 1 | |
17789 | EOF | |
17790 | ||
17791 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treelay" | |
17792 | fi | |
1e6feb95 | 17793 | |
24fd6d87 VZ |
17794 | if test "$wxUSE_DRAGIMAGE" = "yes"; then |
17795 | cat >> confdefs.h <<\EOF | |
17796 | #define wxUSE_DRAGIMAGE 1 | |
17797 | EOF | |
17798 | ||
17799 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag" | |
17800 | fi | |
17801 | ||
1e6feb95 | 17802 | if test "$wxUSE_MENUS" = "yes"; then |
698dcdb6 | 17803 | cat >> confdefs.h <<\EOF |
1e6feb95 | 17804 | #define wxUSE_MENUS 1 |
10f2d63a VZ |
17805 | EOF |
17806 | ||
1e6feb95 | 17807 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu" |
10f2d63a VZ |
17808 | fi |
17809 | ||
1e6feb95 VZ |
17810 | if test "$wxUSE_METAFILE" = "yes"; then |
17811 | cat >> confdefs.h <<\EOF | |
17812 | #define wxUSE_METAFILE 1 | |
10f2d63a VZ |
17813 | EOF |
17814 | ||
10f2d63a VZ |
17815 | fi |
17816 | ||
1e6feb95 VZ |
17817 | if test "$wxUSE_MIMETYPE" = "yes"; then |
17818 | cat >> confdefs.h <<\EOF | |
17819 | #define wxUSE_MIMETYPE 1 | |
10f2d63a VZ |
17820 | EOF |
17821 | ||
10f2d63a VZ |
17822 | fi |
17823 | ||
3e44f09d VZ |
17824 | if test "$wxUSE_SYSTEM_OPTIONS" = "yes"; then |
17825 | cat >> confdefs.h <<\EOF | |
17826 | #define wxUSE_SYSTEM_OPTIONS 1 | |
17827 | EOF | |
17828 | ||
17829 | fi | |
17830 | ||
10f2d63a | 17831 | if test "$wxUSE_MINIFRAME" = "yes"; then |
698dcdb6 | 17832 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17833 | #define wxUSE_MINIFRAME 1 |
17834 | EOF | |
17835 | ||
17836 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram" | |
17837 | fi | |
17838 | ||
17839 | if test "$wxUSE_HTML" = "yes"; then | |
698dcdb6 | 17840 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17841 | #define wxUSE_HTML 1 |
17842 | EOF | |
17843 | ||
17844 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html" | |
10f2d63a VZ |
17845 | fi |
17846 | ||
17847 | if test "$wxUSE_VALIDATORS" = "yes"; then | |
698dcdb6 | 17848 | cat >> confdefs.h <<\EOF |
1e487827 VS |
17849 | #define wxUSE_VALIDATORS 1 |
17850 | EOF | |
703e0a69 | 17851 | |
698dcdb6 VZ |
17852 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate" |
17853 | fi | |
17854 | ||
edae8572 VZ |
17855 | if test "$wxUSE_PALETTE" = "yes" ; then |
17856 | cat >> confdefs.h <<\EOF | |
17857 | #define wxUSE_PALETTE 1 | |
17858 | EOF | |
17859 | ||
17860 | fi | |
17861 | ||
698dcdb6 VZ |
17862 | if test "$wxUSE_IMAGE" = "yes" ; then |
17863 | cat >> confdefs.h <<\EOF | |
17864 | #define wxUSE_IMAGE 1 | |
17865 | EOF | |
17866 | ||
17867 | fi | |
17868 | ||
17869 | if test "$wxUSE_GIF" = "yes" ; then | |
17870 | cat >> confdefs.h <<\EOF | |
17871 | #define wxUSE_GIF 1 | |
17872 | EOF | |
17873 | ||
17874 | fi | |
17875 | ||
17876 | if test "$wxUSE_PCX" = "yes" ; then | |
17877 | cat >> confdefs.h <<\EOF | |
17878 | #define wxUSE_PCX 1 | |
17879 | EOF | |
17880 | ||
17881 | fi | |
17882 | ||
17883 | if test "$wxUSE_PNM" = "yes" ; then | |
17884 | cat >> confdefs.h <<\EOF | |
17885 | #define wxUSE_PNM 1 | |
17886 | EOF | |
17887 | ||
17888 | fi | |
17889 | ||
17890 | if test "$wxUSE_XPM" = "yes" ; then | |
17891 | cat >> confdefs.h <<\EOF | |
17892 | #define wxUSE_XPM 1 | |
17893 | EOF | |
17894 | ||
17895 | fi | |
17896 | ||
17897 | ||
1e6feb95 VZ |
17898 | if test "$wxUSE_CHOICEDLG" = "yes"; then |
17899 | cat >> confdefs.h <<\EOF | |
17900 | #define wxUSE_CHOICEDLG 1 | |
17901 | EOF | |
17902 | ||
17903 | fi | |
17904 | ||
17905 | if test "$wxUSE_COLOURDLG" = "yes"; then | |
17906 | cat >> confdefs.h <<\EOF | |
17907 | #define wxUSE_COLOURDLG 1 | |
17908 | EOF | |
17909 | ||
17910 | fi | |
17911 | ||
17912 | if test "$wxUSE_FILEDLG" = "yes"; then | |
17913 | cat >> confdefs.h <<\EOF | |
17914 | #define wxUSE_FILEDLG 1 | |
17915 | EOF | |
17916 | ||
17917 | fi | |
17918 | ||
8db37e06 VZ |
17919 | if test "$wxUSE_FINDREPLDLG" = "yes"; then |
17920 | cat >> confdefs.h <<\EOF | |
17921 | #define wxUSE_FINDREPLDLG 1 | |
17922 | EOF | |
17923 | ||
17924 | fi | |
17925 | ||
1e6feb95 VZ |
17926 | if test "$wxUSE_FONTDLG" = "yes"; then |
17927 | cat >> confdefs.h <<\EOF | |
17928 | #define wxUSE_FONTDLG 1 | |
17929 | EOF | |
17930 | ||
17931 | fi | |
17932 | ||
17933 | if test "$wxUSE_DIRDLG" = "yes"; then | |
17934 | if test "$wxUSE_CONSTRAINTS" != "yes"; then | |
17935 | echo "configure: warning: wxDirDialog requires constraints so it won't be compiled without them" 1>&2 | |
17936 | else | |
17937 | if test "$wxUSE_TREECTRL" != "yes"; then | |
17938 | echo "configure: warning: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" 1>&2 | |
17939 | else | |
17940 | cat >> confdefs.h <<\EOF | |
17941 | #define wxUSE_DIRDLG 1 | |
17942 | EOF | |
17943 | ||
17944 | fi | |
17945 | fi | |
17946 | fi | |
17947 | ||
17948 | if test "$wxUSE_MSGDLG" = "yes"; then | |
17949 | cat >> confdefs.h <<\EOF | |
17950 | #define wxUSE_MSGDLG 1 | |
17951 | EOF | |
17952 | ||
17953 | fi | |
17954 | ||
17955 | if test "$wxUSE_NUMBERDLG" = "yes"; then | |
17956 | cat >> confdefs.h <<\EOF | |
17957 | #define wxUSE_NUMBERDLG 1 | |
17958 | EOF | |
17959 | ||
17960 | fi | |
17961 | ||
17962 | if test "$wxUSE_PROGRESSDLG" = "yes"; then | |
17963 | if test "$wxUSE_CONSTRAINTS" != "yes"; then | |
17964 | echo "configure: warning: wxProgressDialog requires constraints so it won't be compiled without them" 1>&2 | |
17965 | else | |
17966 | cat >> confdefs.h <<\EOF | |
17967 | #define wxUSE_PROGRESSDLG 1 | |
17968 | EOF | |
17969 | ||
17970 | fi | |
17971 | fi | |
17972 | ||
cbca9943 VZ |
17973 | if test "$wxUSE_SPLASH" = "yes"; then |
17974 | cat >> confdefs.h <<\EOF | |
17975 | #define wxUSE_SPLASH 1 | |
17976 | EOF | |
17977 | ||
17978 | fi | |
17979 | ||
1e6feb95 VZ |
17980 | if test "$wxUSE_STARTUP_TIPS" = "yes"; then |
17981 | if test "$wxUSE_CONSTRAINTS" != "yes"; then | |
17982 | echo "configure: warning: Startup tips requires constraints and won't be compiled without them" 1>&2 | |
17983 | else | |
17984 | cat >> confdefs.h <<\EOF | |
17985 | #define wxUSE_STARTUP_TIPS 1 | |
17986 | EOF | |
17987 | ||
17988 | fi | |
17989 | fi | |
17990 | ||
17991 | if test "$wxUSE_TEXTDLG" = "yes"; then | |
17992 | cat >> confdefs.h <<\EOF | |
17993 | #define wxUSE_TEXTDLG 1 | |
17994 | EOF | |
17995 | ||
17996 | fi | |
17997 | ||
b1f5d087 VZ |
17998 | if test "$wxUSE_WIZARDDLG" = "yes"; then |
17999 | cat >> confdefs.h <<\EOF | |
18000 | #define wxUSE_WIZARDDLG 1 | |
18001 | EOF | |
18002 | ||
18003 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wizard" | |
18004 | fi | |
18005 | ||
1e6feb95 | 18006 | |
698dcdb6 VZ |
18007 | if test "$cross_compiling" = "yes"; then |
18008 | OSINFO="\"$host\"" | |
18009 | else | |
18010 | OSINFO=`uname -s -r -m` | |
18011 | OSINFO="\"$OSINFO\"" | |
18012 | fi | |
18013 | ||
18014 | cat >> confdefs.h <<EOF | |
18015 | #define WXWIN_OS_DESCRIPTION $OSINFO | |
18016 | EOF | |
18017 | ||
18018 | ||
18019 | ||
06dda230 VZ |
18020 | if test "x$prefix" != "xNONE"; then |
18021 | wxPREFIX=$prefix | |
18022 | else | |
18023 | wxPREFIX=$ac_default_prefix | |
18024 | fi | |
18025 | ||
7e67ed0d | 18026 | cat >> confdefs.h <<EOF |
06dda230 | 18027 | #define wxINSTALL_PREFIX "$wxPREFIX" |
7e67ed0d VZ |
18028 | EOF |
18029 | ||
18030 | ||
18031 | ||
698dcdb6 | 18032 | GUILIBS="$GUI_TK_LIBRARY $TOOLKIT_LINK" |
698dcdb6 VZ |
18033 | |
18034 | EXTRA_LIBS="$LIBS $POSIX4_LINK $INET_LINK $WCHAR_LINK $THREADS_LINK $DMALLOC_LINK $DL_LINK $ZLIB_LINK -lm" | |
3a922bb4 | 18035 | |
f11bdd03 | 18036 | if test "$wxUSE_MAC" = 1 ; then |
698dcdb6 VZ |
18037 | EXTRA_LIBS="$EXTRA_LIBS -framework Carbon -framework System" |
18038 | fi | |
3a922bb4 | 18039 | |
698dcdb6 VZ |
18040 | if test "$wxUSE_GUI" = "yes"; then |
18041 | EXTRA_LIBS="$GUILIBS $PNG_LINK $JPEG_LINK $TIFF_LINK $FREETYPE_LINK $EXTRA_LIBS" | |
3a922bb4 RL |
18042 | |
18043 | ||
18044 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS controls dialogs \ | |
18045 | drawing dynamic erase event exec font image \ | |
18046 | minimal richedit rotate widgets" | |
18047 | ||
18048 | if test "$wxUSE_UNIVERSAL" = "yes" ; then | |
18049 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS univ" | |
18050 | fi | |
18051 | ||
18052 | CPPFLAGS="$CPPFLAGS \$(EXTRADEFS) \$(APPEXTRADEFS)" | |
18053 | else | |
18054 | SAMPLES_SUBDIRS="console" | |
698dcdb6 VZ |
18055 | fi |
18056 | ||
18057 | LD_LIBS="\${top_builddir}/lib/${WX_LIBRARY_NAME_STATIC} $EXTRA_LIBS" | |
18058 | ||
3a922bb4 | 18059 | INCLUDES="-I. -I\${top_builddir}/lib/wx/include/${TOOLCHAIN_NAME} -I\${top_srcdir}/include \ |
3e44f09d VZ |
18060 | $REGEX_INCLUDE $ZLIB_INCLUDE $PNG_INCLUDE $JPEG_INCLUDE $TIFF_INCLUDE \ |
18061 | $FREETYPE_INCLUDE $TOOLKIT_INCLUDE" | |
698dcdb6 VZ |
18062 | |
18063 | if test "$wxUSE_GTK" = 1; then | |
18064 | WXCONFIG_INCLUDE="" | |
18065 | else | |
18066 | WXCONFIG_INCLUDE="$TOOLKIT_INCLUDE" | |
18067 | fi | |
18068 | ||
18069 | if test "$GXX" = yes ; then | |
18070 | CXXWARNINGS="-Wall" | |
18071 | fi | |
18072 | EXTRA_CFLAGS="$WXDEBUG $WXODBCFLAG $PROFILE $OPTIMISE $INCLUDES" | |
18073 | ||
18074 | CFLAGS=`echo $CFLAGS $EXTRA_CFLAGS $CXXWARNINGS | sed 's/ \\+/ /g'` | |
18075 | CXXFLAGS=`echo $CXXFLAGS $EXTRA_CFLAGS $CXXWARNINGS | sed 's/ \+/ /g'` | |
18076 | ||
18077 | LDFLAGS="$LDFLAGS $PROFILE" | |
18078 | ||
698dcdb6 VZ |
18079 | SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`" |
18080 | ||
18081 | ||
18082 | ||
18083 | ||
18084 | ||
18085 | ||
18086 | ||
18087 | ||
18088 | ||
18089 | ||
18090 | ||
18091 | ||
18092 | ||
18093 | ||
18094 | ||
18095 | ||
18096 | ||
18097 | ||
18098 | ||
18099 | ||
18100 | ||
18101 | ||
18102 | ||
18103 | ||
18104 | ||
18105 | ||
18106 | ||
18107 | ||
18108 | ||
18109 | ||
18110 | ||
18111 | ||
18112 | ||
18113 | ||
18114 | ||
18115 | ||
18116 | ||
18117 | ||
18118 | ||
18119 | ||
18120 | ||
18121 | ||
18122 | ||
18123 | ||
18124 | ||
18125 | ||
18126 | ||
18127 | ||
18128 | ||
18129 | ||
18130 | ||
18131 | ||
18132 | ||
18133 | ||
18134 | ||
18135 | ||
18136 | ||
18137 | ||
18138 | ||
18139 | ||
18140 | ||
18141 | ||
18142 | ||
18143 | ||
18144 | ||
18145 | ||
18146 | ||
32832908 | 18147 | |
2f51a9ec GD |
18148 | |
18149 | ||
18150 | ||
18151 | ||
f6bcfd97 | 18152 | |
dad6c0ea | 18153 | |
caa2c79b | 18154 | |
3711412e | 18155 | |
1e6feb95 VZ |
18156 | |
18157 | ||
0f3f1cbc | 18158 | |
18dbb1f6 | 18159 | |
10f2d63a VZ |
18160 | |
18161 | ||
698dcdb6 | 18162 | echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6 |
edae8572 | 18163 | echo "configure:18164: checking whether ${MAKE-make} sets \${MAKE}" >&5 |
698dcdb6 VZ |
18164 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'` |
18165 | if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then | |
18166 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 18167 | else |
698dcdb6 | 18168 | cat > conftestmake <<\EOF |
10f2d63a VZ |
18169 | all: |
18170 | @echo 'ac_maketemp="${MAKE}"' | |
18171 | EOF | |
18172 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
698dcdb6 | 18173 | eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=` |
10f2d63a VZ |
18174 | if test -n "$ac_maketemp"; then |
18175 | eval ac_cv_prog_make_${ac_make}_set=yes | |
18176 | else | |
18177 | eval ac_cv_prog_make_${ac_make}_set=no | |
18178 | fi | |
698dcdb6 | 18179 | rm -f conftestmake |
10f2d63a VZ |
18180 | fi |
18181 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then | |
698dcdb6 | 18182 | echo "$ac_t""yes" 1>&6 |
10f2d63a VZ |
18183 | SET_MAKE= |
18184 | else | |
698dcdb6 | 18185 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
18186 | SET_MAKE="MAKE=${MAKE-make}" |
18187 | fi | |
18188 | ||
698dcdb6 | 18189 | |
3a922bb4 RL |
18190 | if test -f lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h; then |
18191 | mv -f lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h setup.h | |
00cf1208 | 18192 | fi |
665bbe97 | 18193 | |
698dcdb6 | 18194 | |
10f2d63a | 18195 | |
2224580a | 18196 | if test "$wxUSE_GUI" = "yes"; then |
ec90f5e5 | 18197 | wx_cv_path_samplesubdirs=$SAMPLES_SUBDIRS |
e8482f24 GL |
18198 | wx_cv_path_ifs=$PATH_IFS |
18199 | wx_cv_program_ext=$PROGRAM_EXT | |
18200 | wx_cv_target_library=$WX_TARGET_LIBRARY | |
7b6058cd | 18201 | wx_cv_target_library_gl=$WX_TARGET_LIBRARY_GL |
3711412e | 18202 | wx_cv_target_libtype=$WX_TARGET_LIBRARY_TYPE |
93a20a27 | 18203 | export wx_cv_path_samplesubdirs wx_cv_path_ifs wx_cv_program_ext \ |
7b6058cd | 18204 | wx_cv_target_library wx_cv_target_library_gl wx_cv_target_libtype |
698dcdb6 | 18205 | subdirs="demos samples utils contrib" |
2224580a VZ |
18206 | |
18207 | fi | |
10f2d63a | 18208 | |
698dcdb6 VZ |
18209 | trap '' 1 2 15 |
18210 | cat > confcache <<\EOF | |
10f2d63a VZ |
18211 | # This file is a shell script that caches the results of configure |
18212 | # tests run on this system so they can be shared between configure | |
698dcdb6 VZ |
18213 | # scripts and configure runs. It is not useful on other systems. |
18214 | # If it contains results you don't want to keep, you may remove or edit it. | |
10f2d63a | 18215 | # |
698dcdb6 VZ |
18216 | # By default, configure uses ./config.cache as the cache file, |
18217 | # creating it if it does not exist already. You can give configure | |
18218 | # the --cache-file=FILE option to use a different cache file; that is | |
18219 | # what configure does when it calls configure scripts in | |
18220 | # subdirectories, so they share the cache. | |
18221 | # Giving --cache-file=/dev/null disables caching, for debugging configure. | |
18222 | # config.status only pays attention to the cache file if you give it the | |
18223 | # --recheck option to rerun configure. | |
10f2d63a | 18224 | # |
698dcdb6 | 18225 | EOF |
10f2d63a VZ |
18226 | # The following way of writing the cache mishandles newlines in values, |
18227 | # but we know of no workaround that is simple, portable, and efficient. | |
18228 | # So, don't put newlines in cache variables' values. | |
18229 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
18230 | # and sets the high bit in the cache file unless we assign to the vars. | |
698dcdb6 VZ |
18231 | (set) 2>&1 | |
18232 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
18233 | *ac_space=\ *) | |
18234 | # `set' does not quote correctly, so add quotes (double-quote substitution | |
18235 | # turns \\\\ into \\, and sed turns \\ into \). | |
18236 | sed -n \ | |
18237 | -e "s/'/'\\\\''/g" \ | |
18238 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" | |
18239 | ;; | |
18240 | *) | |
18241 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
18242 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' | |
18243 | ;; | |
18244 | esac >> confcache | |
18245 | if cmp -s $cache_file confcache; then | |
18246 | : | |
18247 | else | |
10f2d63a | 18248 | if test -w $cache_file; then |
698dcdb6 VZ |
18249 | echo "updating cache $cache_file" |
18250 | cat confcache > $cache_file | |
10f2d63a VZ |
18251 | else |
18252 | echo "not updating unwritable cache $cache_file" | |
18253 | fi | |
18254 | fi | |
18255 | rm -f confcache | |
18256 | ||
698dcdb6 VZ |
18257 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 |
18258 | ||
10f2d63a VZ |
18259 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
18260 | # Let make expand exec_prefix. | |
18261 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
18262 | ||
698dcdb6 VZ |
18263 | # Any assignment to VPATH causes Sun make to only execute |
18264 | # the first set of double-colon rules, so remove it if not needed. | |
18265 | # If there is a colon in the path, we need to keep it. | |
10f2d63a | 18266 | if test "x$srcdir" = x.; then |
698dcdb6 | 18267 | ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d' |
10f2d63a VZ |
18268 | fi |
18269 | ||
698dcdb6 VZ |
18270 | trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15 |
18271 | ||
10f2d63a VZ |
18272 | DEFS=-DHAVE_CONFIG_H |
18273 | ||
698dcdb6 | 18274 | # Without the "./", some shells look in PATH for config.status. |
10f2d63a | 18275 | : ${CONFIG_STATUS=./config.status} |
698dcdb6 VZ |
18276 | |
18277 | echo creating $CONFIG_STATUS | |
18278 | rm -f $CONFIG_STATUS | |
18279 | cat > $CONFIG_STATUS <<EOF | |
18280 | #! /bin/sh | |
10f2d63a VZ |
18281 | # Generated automatically by configure. |
18282 | # Run this file to recreate the current configuration. | |
698dcdb6 VZ |
18283 | # This directory was configured as follows, |
18284 | # on host `(hostname || uname -n) 2>/dev/null | sed 1q`: | |
18285 | # | |
18286 | # $0 $ac_configure_args | |
18287 | # | |
10f2d63a | 18288 | # Compiler output produced by configure, useful for debugging |
698dcdb6 | 18289 | # configure, is in ./config.log if it exists. |
1e487827 | 18290 | |
698dcdb6 VZ |
18291 | ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]" |
18292 | for ac_option | |
10f2d63a | 18293 | do |
698dcdb6 | 18294 | case "\$ac_option" in |
10f2d63a | 18295 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
698dcdb6 VZ |
18296 | echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion" |
18297 | exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;; | |
18298 | -version | --version | --versio | --versi | --vers | --ver | --ve | --v) | |
18299 | echo "$CONFIG_STATUS generated by autoconf version 2.13" | |
18300 | exit 0 ;; | |
18301 | -help | --help | --hel | --he | --h) | |
18302 | echo "\$ac_cs_usage"; exit 0 ;; | |
18303 | *) echo "\$ac_cs_usage"; exit 1 ;; | |
10f2d63a VZ |
18304 | esac |
18305 | done | |
18306 | ||
698dcdb6 VZ |
18307 | ac_given_srcdir=$srcdir |
18308 | ac_given_INSTALL="$INSTALL" | |
703e0a69 | 18309 | |
698dcdb6 VZ |
18310 | trap 'rm -fr `echo " |
18311 | wx-config | |
18312 | src/make.env | |
18313 | src/makeprog.env | |
18314 | src/makelib.env | |
18315 | Makefile | |
18316 | setup.h:setup.h.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15 | |
1e487827 | 18317 | EOF |
698dcdb6 | 18318 | cat >> $CONFIG_STATUS <<EOF |
1e487827 | 18319 | |
698dcdb6 VZ |
18320 | # Protect against being on the right side of a sed subst in config.status. |
18321 | sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g; | |
18322 | s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF | |
18323 | $ac_vpsub | |
18324 | $extrasub | |
18325 | s%@SHELL@%$SHELL%g | |
18326 | s%@CFLAGS@%$CFLAGS%g | |
18327 | s%@CPPFLAGS@%$CPPFLAGS%g | |
18328 | s%@CXXFLAGS@%$CXXFLAGS%g | |
18329 | s%@FFLAGS@%$FFLAGS%g | |
18330 | s%@DEFS@%$DEFS%g | |
18331 | s%@LDFLAGS@%$LDFLAGS%g | |
18332 | s%@LIBS@%$LIBS%g | |
18333 | s%@exec_prefix@%$exec_prefix%g | |
18334 | s%@prefix@%$prefix%g | |
18335 | s%@program_transform_name@%$program_transform_name%g | |
18336 | s%@bindir@%$bindir%g | |
18337 | s%@sbindir@%$sbindir%g | |
18338 | s%@libexecdir@%$libexecdir%g | |
18339 | s%@datadir@%$datadir%g | |
18340 | s%@sysconfdir@%$sysconfdir%g | |
18341 | s%@sharedstatedir@%$sharedstatedir%g | |
18342 | s%@localstatedir@%$localstatedir%g | |
18343 | s%@libdir@%$libdir%g | |
18344 | s%@includedir@%$includedir%g | |
18345 | s%@oldincludedir@%$oldincludedir%g | |
18346 | s%@infodir@%$infodir%g | |
18347 | s%@mandir@%$mandir%g | |
18348 | s%@host@%$host%g | |
18349 | s%@host_alias@%$host_alias%g | |
18350 | s%@host_cpu@%$host_cpu%g | |
18351 | s%@host_vendor@%$host_vendor%g | |
18352 | s%@host_os@%$host_os%g | |
18353 | s%@target@%$target%g | |
18354 | s%@target_alias@%$target_alias%g | |
18355 | s%@target_cpu@%$target_cpu%g | |
18356 | s%@target_vendor@%$target_vendor%g | |
18357 | s%@target_os@%$target_os%g | |
18358 | s%@build@%$build%g | |
18359 | s%@build_alias@%$build_alias%g | |
18360 | s%@build_cpu@%$build_cpu%g | |
18361 | s%@build_vendor@%$build_vendor%g | |
18362 | s%@build_os@%$build_os%g | |
18363 | s%@CC@%$CC%g | |
18364 | s%@CPP@%$CPP%g | |
18365 | s%@CXX@%$CXX%g | |
698dcdb6 VZ |
18366 | s%@RANLIB@%$RANLIB%g |
18367 | s%@AR@%$AR%g | |
18368 | s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g | |
18369 | s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g | |
18370 | s%@INSTALL_DATA@%$INSTALL_DATA%g | |
18371 | s%@STRIP@%$STRIP%g | |
18372 | s%@YACC@%$YACC%g | |
18373 | s%@LEX@%$LEX%g | |
18374 | s%@LEXLIB@%$LEXLIB%g | |
18375 | s%@LN_S@%$LN_S%g | |
18376 | s%@GTK_CONFIG_2_0@%$GTK_CONFIG_2_0%g | |
698dcdb6 VZ |
18377 | s%@GTK_CFLAGS@%$GTK_CFLAGS%g |
18378 | s%@GTK_LIBS@%$GTK_LIBS%g | |
8168de4c | 18379 | s%@GTK_CONFIG@%$GTK_CONFIG%g |
698dcdb6 VZ |
18380 | s%@X_CFLAGS@%$X_CFLAGS%g |
18381 | s%@X_PRE_LIBS@%$X_PRE_LIBS%g | |
18382 | s%@X_LIBS@%$X_LIBS%g | |
18383 | s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g | |
3a922bb4 | 18384 | s%@RESCOMP@%$RESCOMP%g |
698dcdb6 | 18385 | s%@DEREZ@%$DEREZ%g |
3a922bb4 | 18386 | s%@CXXCPP@%$CXXCPP%g |
698dcdb6 VZ |
18387 | s%@LEX_STEM@%$LEX_STEM%g |
18388 | s%@PATH_IFS@%$PATH_IFS%g | |
18389 | s%@WX_MAJOR_VERSION_NUMBER@%$WX_MAJOR_VERSION_NUMBER%g | |
18390 | s%@WX_MINOR_VERSION_NUMBER@%$WX_MINOR_VERSION_NUMBER%g | |
18391 | s%@WX_RELEASE_NUMBER@%$WX_RELEASE_NUMBER%g | |
698dcdb6 VZ |
18392 | s%@WX_LIBRARY_NAME_STATIC@%$WX_LIBRARY_NAME_STATIC%g |
18393 | s%@WX_LIBRARY_NAME_SHARED@%$WX_LIBRARY_NAME_SHARED%g | |
698dcdb6 VZ |
18394 | s%@WX_TARGET_LIBRARY@%$WX_TARGET_LIBRARY%g |
18395 | s%@WX_LIBRARY_LINK1@%$WX_LIBRARY_LINK1%g | |
18396 | s%@WX_LIBRARY_LINK2@%$WX_LIBRARY_LINK2%g | |
698dcdb6 | 18397 | s%@PROGRAM_EXT@%$PROGRAM_EXT%g |
698dcdb6 VZ |
18398 | s%@WX_LIBRARY_NAME_STATIC_GL@%$WX_LIBRARY_NAME_STATIC_GL%g |
18399 | s%@WX_LIBRARY_NAME_SHARED_GL@%$WX_LIBRARY_NAME_SHARED_GL%g | |
698dcdb6 VZ |
18400 | s%@WX_TARGET_LIBRARY_GL@%$WX_TARGET_LIBRARY_GL%g |
18401 | s%@WX_LIBRARY_LINK1_GL@%$WX_LIBRARY_LINK1_GL%g | |
18402 | s%@WX_LIBRARY_LINK2_GL@%$WX_LIBRARY_LINK2_GL%g | |
698dcdb6 VZ |
18403 | s%@WX_ALL@%$WX_ALL%g |
18404 | s%@WX_ALL_INSTALLED@%$WX_ALL_INSTALLED%g | |
18405 | s%@SHARED_LD@%$SHARED_LD%g | |
18406 | s%@PIC_FLAG@%$PIC_FLAG%g | |
698dcdb6 VZ |
18407 | s%@CODE_GEN_FLAGS@%$CODE_GEN_FLAGS%g |
18408 | s%@CODE_GEN_FLAGS_CXX@%$CODE_GEN_FLAGS_CXX%g | |
3a922bb4 RL |
18409 | s%@SONAME_FLAGS@%$SONAME_FLAGS%g |
18410 | s%@SONAME_FLAGS_GL@%$SONAME_FLAGS_GL%g | |
698dcdb6 VZ |
18411 | s%@WX_TARGET_LIBRARY_SONAME@%$WX_TARGET_LIBRARY_SONAME%g |
18412 | s%@WX_TARGET_LIBRARY_TYPE@%$WX_TARGET_LIBRARY_TYPE%g | |
18413 | s%@WXDEBUG_DEFINE@%$WXDEBUG_DEFINE%g | |
18414 | s%@USE_GUI@%$USE_GUI%g | |
18415 | s%@AFMINSTALL@%$AFMINSTALL%g | |
18416 | s%@TOOLKIT@%$TOOLKIT%g | |
698dcdb6 | 18417 | s%@TOOLKIT_DIR@%$TOOLKIT_DIR%g |
1e6feb95 | 18418 | s%@TOOLKIT_VPATH@%$TOOLKIT_VPATH%g |
3a922bb4 RL |
18419 | s%@TOOLCHAIN_NAME@%$TOOLCHAIN_NAME%g |
18420 | s%@TOOLCHAIN_DEFS@%$TOOLCHAIN_DEFS%g | |
18421 | s%@cross_compiling@%$cross_compiling%g | |
18422 | s%@WXCONFIG_LIBS@%$WXCONFIG_LIBS%g | |
18423 | s%@WXCONFIG_LIBS_GL@%$WXCONFIG_LIBS_GL%g | |
698dcdb6 VZ |
18424 | s%@WXCONFIG_INCLUDE@%$WXCONFIG_INCLUDE%g |
18425 | s%@ALL_OBJECTS@%$ALL_OBJECTS%g | |
698dcdb6 VZ |
18426 | s%@GUIDIST@%$GUIDIST%g |
18427 | s%@PORT_FILES@%$PORT_FILES%g | |
18428 | s%@DISTDIR@%$DISTDIR%g | |
18429 | s%@RPM_SPEC@%$RPM_SPEC%g | |
18430 | s%@RPM_FILES@%$RPM_FILES%g | |
698dcdb6 | 18431 | s%@SAMPLES_SUBDIRS@%$SAMPLES_SUBDIRS%g |
698dcdb6 VZ |
18432 | s%@EXTRA_LIBS@%$EXTRA_LIBS%g |
18433 | s%@OPENGL_LIBS@%$OPENGL_LIBS%g | |
18434 | s%@EXTRADEFS@%$EXTRADEFS%g | |
18435 | s%@LD_LIBS@%$LD_LIBS%g | |
18dbb1f6 | 18436 | s%@WXMSW_DLL_DEFINES@%$WXMSW_DLL_DEFINES%g |
698dcdb6 | 18437 | s%@RESFLAGS@%$RESFLAGS%g |
3a922bb4 RL |
18438 | s%@RESPROGRAMOBJ@%$RESPROGRAMOBJ%g |
18439 | s%@WX_RESOURCES_DARWIN@%$WX_RESOURCES_DARWIN%g | |
698dcdb6 VZ |
18440 | s%@LIBWXMACRES@%$LIBWXMACRES%g |
18441 | s%@LIBWXMACRESCOMP@%$LIBWXMACRESCOMP%g | |
18442 | s%@DLLTOOL@%$DLLTOOL%g | |
18443 | s%@AS@%$AS%g | |
18444 | s%@NM@%$NM%g | |
18445 | s%@LD@%$LD%g | |
18446 | s%@MAKEINFO@%$MAKEINFO%g | |
18447 | s%@SET_MAKE@%$SET_MAKE%g | |
18448 | s%@subdirs@%$subdirs%g | |
1e487827 | 18449 | |
1e487827 | 18450 | CEOF |
1e487827 VS |
18451 | EOF |
18452 | ||
698dcdb6 VZ |
18453 | cat >> $CONFIG_STATUS <<\EOF |
18454 | ||
18455 | # Split the substitutions into bite-sized pieces for seds with | |
18456 | # small command number limits, like on Digital OSF/1 and HP-UX. | |
18457 | ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script. | |
18458 | ac_file=1 # Number of current file. | |
18459 | ac_beg=1 # First line for current file. | |
18460 | ac_end=$ac_max_sed_cmds # Line after last line for current file. | |
18461 | ac_more_lines=: | |
18462 | ac_sed_cmds="" | |
18463 | while $ac_more_lines; do | |
18464 | if test $ac_beg -gt 1; then | |
18465 | sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file | |
18466 | else | |
18467 | sed "${ac_end}q" conftest.subs > conftest.s$ac_file | |
18468 | fi | |
18469 | if test ! -s conftest.s$ac_file; then | |
18470 | ac_more_lines=false | |
18471 | rm -f conftest.s$ac_file | |
18472 | else | |
18473 | if test -z "$ac_sed_cmds"; then | |
18474 | ac_sed_cmds="sed -f conftest.s$ac_file" | |
10f2d63a | 18475 | else |
698dcdb6 | 18476 | ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file" |
10f2d63a | 18477 | fi |
698dcdb6 VZ |
18478 | ac_file=`expr $ac_file + 1` |
18479 | ac_beg=$ac_end | |
18480 | ac_end=`expr $ac_end + $ac_max_sed_cmds` | |
10f2d63a | 18481 | fi |
698dcdb6 VZ |
18482 | done |
18483 | if test -z "$ac_sed_cmds"; then | |
18484 | ac_sed_cmds=cat | |
18485 | fi | |
18486 | EOF | |
10f2d63a | 18487 | |
698dcdb6 VZ |
18488 | cat >> $CONFIG_STATUS <<EOF |
18489 | ||
18490 | CONFIG_FILES=\${CONFIG_FILES-"wx-config | |
18491 | src/make.env | |
18492 | src/makeprog.env | |
18493 | src/makelib.env | |
18494 | Makefile | |
18495 | "} | |
10f2d63a | 18496 | EOF |
698dcdb6 VZ |
18497 | cat >> $CONFIG_STATUS <<\EOF |
18498 | for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then | |
10f2d63a | 18499 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
698dcdb6 VZ |
18500 | case "$ac_file" in |
18501 | *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` | |
18502 | ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; | |
18503 | *) ac_file_in="${ac_file}.in" ;; | |
10f2d63a VZ |
18504 | esac |
18505 | ||
698dcdb6 | 18506 | # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories. |
1e487827 | 18507 | |
698dcdb6 VZ |
18508 | # Remove last slash and all that follows it. Not all systems have dirname. |
18509 | ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` | |
18510 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then | |
18511 | # The file is in a subdirectory. | |
18512 | test ! -d "$ac_dir" && mkdir "$ac_dir" | |
18513 | ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`" | |
10f2d63a | 18514 | # A "../" for each directory in $ac_dir_suffix. |
698dcdb6 | 18515 | ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'` |
10f2d63a VZ |
18516 | else |
18517 | ac_dir_suffix= ac_dots= | |
18518 | fi | |
18519 | ||
698dcdb6 VZ |
18520 | case "$ac_given_srcdir" in |
18521 | .) srcdir=. | |
18522 | if test -z "$ac_dots"; then top_srcdir=. | |
18523 | else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;; | |
18524 | /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;; | |
10f2d63a | 18525 | *) # Relative path. |
698dcdb6 VZ |
18526 | srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix" |
18527 | top_srcdir="$ac_dots$ac_given_srcdir" ;; | |
10f2d63a VZ |
18528 | esac |
18529 | ||
698dcdb6 VZ |
18530 | case "$ac_given_INSTALL" in |
18531 | [/$]*) INSTALL="$ac_given_INSTALL" ;; | |
18532 | *) INSTALL="$ac_dots$ac_given_INSTALL" ;; | |
10f2d63a VZ |
18533 | esac |
18534 | ||
698dcdb6 VZ |
18535 | echo creating "$ac_file" |
18536 | rm -f "$ac_file" | |
18537 | configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure." | |
18538 | case "$ac_file" in | |
18539 | *Makefile*) ac_comsub="1i\\ | |
18540 | # $configure_input" ;; | |
18541 | *) ac_comsub= ;; | |
18542 | esac | |
10f2d63a | 18543 | |
698dcdb6 VZ |
18544 | ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` |
18545 | sed -e "$ac_comsub | |
18546 | s%@configure_input@%$configure_input%g | |
18547 | s%@srcdir@%$srcdir%g | |
18548 | s%@top_srcdir@%$top_srcdir%g | |
18549 | s%@INSTALL@%$INSTALL%g | |
18550 | " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file | |
18551 | fi; done | |
18552 | rm -f conftest.s* | |
10f2d63a VZ |
18553 | |
18554 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where | |
18555 | # NAME is the cpp macro being defined and VALUE is the value it is being given. | |
18556 | # | |
18557 | # ac_d sets the value in "#define NAME VALUE" lines. | |
698dcdb6 VZ |
18558 | ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)' |
18559 | ac_dB='\([ ][ ]*\)[^ ]*%\1#\2' | |
18560 | ac_dC='\3' | |
18561 | ac_dD='%g' | |
18562 | # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE". | |
18563 | ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' | |
18564 | ac_uB='\([ ]\)%\1#\2define\3' | |
10f2d63a | 18565 | ac_uC=' ' |
698dcdb6 VZ |
18566 | ac_uD='\4%g' |
18567 | # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE". | |
18568 | ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' | |
18569 | ac_eB='$%\1#\2define\3' | |
18570 | ac_eC=' ' | |
18571 | ac_eD='%g' | |
10f2d63a | 18572 | |
698dcdb6 VZ |
18573 | if test "${CONFIG_HEADERS+set}" != set; then |
18574 | EOF | |
18575 | cat >> $CONFIG_STATUS <<EOF | |
18576 | CONFIG_HEADERS="setup.h:setup.h.in" | |
18577 | EOF | |
18578 | cat >> $CONFIG_STATUS <<\EOF | |
18579 | fi | |
18580 | for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then | |
10f2d63a | 18581 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
698dcdb6 VZ |
18582 | case "$ac_file" in |
18583 | *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` | |
18584 | ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; | |
18585 | *) ac_file_in="${ac_file}.in" ;; | |
10f2d63a VZ |
18586 | esac |
18587 | ||
698dcdb6 VZ |
18588 | echo creating $ac_file |
18589 | ||
18590 | rm -f conftest.frag conftest.in conftest.out | |
18591 | ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` | |
18592 | cat $ac_file_inputs > conftest.in | |
18593 | ||
18594 | EOF | |
18595 | ||
18596 | # Transform confdefs.h into a sed script conftest.vals that substitutes | |
18597 | # the proper values into config.h.in to produce config.h. And first: | |
18598 | # Protect against being on the right side of a sed subst in config.status. | |
18599 | # Protect against being in an unquoted here document in config.status. | |
18600 | rm -f conftest.vals | |
18601 | cat > conftest.hdr <<\EOF | |
18602 | s/[\\&%]/\\&/g | |
18603 | s%[\\$`]%\\&%g | |
18604 | s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp | |
18605 | s%ac_d%ac_u%gp | |
18606 | s%ac_u%ac_e%gp | |
18607 | EOF | |
18608 | sed -n -f conftest.hdr confdefs.h > conftest.vals | |
18609 | rm -f conftest.hdr | |
10f2d63a VZ |
18610 | |
18611 | # This sed command replaces #undef with comments. This is necessary, for | |
18612 | # example, in the case of _POSIX_SOURCE, which is predefined and required | |
18613 | # on some systems where configure will not decide to define it. | |
698dcdb6 VZ |
18614 | cat >> conftest.vals <<\EOF |
18615 | s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */% | |
10f2d63a VZ |
18616 | EOF |
18617 | ||
698dcdb6 VZ |
18618 | # Break up conftest.vals because some shells have a limit on |
18619 | # the size of here documents, and old seds have small limits too. | |
10f2d63a VZ |
18620 | |
18621 | rm -f conftest.tail | |
698dcdb6 | 18622 | while : |
10f2d63a | 18623 | do |
698dcdb6 VZ |
18624 | ac_lines=`grep -c . conftest.vals` |
18625 | # grep -c gives empty output for an empty file on some AIX systems. | |
18626 | if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi | |
18627 | # Write a limited-size here document to conftest.frag. | |
18628 | echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS | |
18629 | sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS | |
10f2d63a | 18630 | echo 'CEOF |
698dcdb6 VZ |
18631 | sed -f conftest.frag conftest.in > conftest.out |
18632 | rm -f conftest.in | |
18633 | mv conftest.out conftest.in | |
18634 | ' >> $CONFIG_STATUS | |
18635 | sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail | |
18636 | rm -f conftest.vals | |
18637 | mv conftest.tail conftest.vals | |
10f2d63a | 18638 | done |
698dcdb6 VZ |
18639 | rm -f conftest.vals |
18640 | ||
18641 | cat >> $CONFIG_STATUS <<\EOF | |
18642 | rm -f conftest.frag conftest.h | |
18643 | echo "/* $ac_file. Generated automatically by configure. */" > conftest.h | |
18644 | cat conftest.in >> conftest.h | |
18645 | rm -f conftest.in | |
18646 | if cmp -s $ac_file conftest.h 2>/dev/null; then | |
18647 | echo "$ac_file is unchanged" | |
18648 | rm -f conftest.h | |
10f2d63a | 18649 | else |
698dcdb6 VZ |
18650 | # Remove last slash and all that follows it. Not all systems have dirname. |
18651 | ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` | |
10f2d63a | 18652 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then |
698dcdb6 VZ |
18653 | # The file is in a subdirectory. |
18654 | test ! -d "$ac_dir" && mkdir "$ac_dir" | |
10f2d63a | 18655 | fi |
698dcdb6 VZ |
18656 | rm -f $ac_file |
18657 | mv conftest.h $ac_file | |
10f2d63a | 18658 | fi |
698dcdb6 VZ |
18659 | fi; done |
18660 | ||
10f2d63a | 18661 | EOF |
698dcdb6 | 18662 | cat >> $CONFIG_STATUS <<EOF |
10f2d63a | 18663 | |
3a922bb4 | 18664 | TOOLCHAIN_NAME="${TOOLCHAIN_NAME}" |
698dcdb6 VZ |
18665 | LN_S="${LN_S}" |
18666 | ||
18667 | ||
18668 | EOF | |
18669 | cat >> $CONFIG_STATUS <<\EOF | |
10f2d63a | 18670 | |
3a922bb4 | 18671 | if test ! -L wx-config; then |
991a5759 | 18672 | chmod +x wx-config |
3a922bb4 RL |
18673 | mv wx-config wx${TOOLCHAIN_NAME}-config |
18674 | ${LN_S} wx${TOOLCHAIN_NAME}-config wx-config | |
991a5759 | 18675 | fi |
665bbe97 | 18676 | |
00cf1208 RR |
18677 | if test ! -d lib; then |
18678 | mkdir lib | |
18679 | fi | |
18680 | if test ! -d lib/wx; then | |
18681 | mkdir lib/wx | |
18682 | fi | |
18683 | if test ! -d lib/wx/include; then | |
18684 | mkdir lib/wx/include | |
18685 | fi | |
3a922bb4 RL |
18686 | if test ! -d lib/wx/include/${TOOLCHAIN_NAME}; then |
18687 | mkdir lib/wx/include/${TOOLCHAIN_NAME} | |
00cf1208 | 18688 | fi |
3a922bb4 RL |
18689 | if test ! -d lib/wx/include/${TOOLCHAIN_NAME}/wx; then |
18690 | mkdir lib/wx/include/${TOOLCHAIN_NAME}/wx | |
00cf1208 RR |
18691 | fi |
18692 | if test -f setup.h; then | |
3a922bb4 | 18693 | mv -f setup.h lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h |
00cf1208 | 18694 | fi |
698dcdb6 VZ |
18695 | |
18696 | exit 0 | |
10f2d63a VZ |
18697 | EOF |
18698 | chmod +x $CONFIG_STATUS | |
698dcdb6 VZ |
18699 | rm -fr confdefs* $ac_clean_files |
18700 | test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1 | |
10f2d63a | 18701 | |
2224580a VZ |
18702 | if test "$no_recursion" != yes; then |
18703 | ||
18704 | # Remove --cache-file and --srcdir arguments so they do not pile up. | |
18705 | ac_sub_configure_args= | |
18706 | ac_prev= | |
18707 | for ac_arg in $ac_configure_args; do | |
18708 | if test -n "$ac_prev"; then | |
18709 | ac_prev= | |
18710 | continue | |
18711 | fi | |
698dcdb6 | 18712 | case "$ac_arg" in |
2224580a VZ |
18713 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
18714 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
18715 | ac_prev=cache_file ;; | |
18716 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
698dcdb6 | 18717 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
2224580a VZ |
18718 | ;; |
18719 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
18720 | ac_prev=srcdir ;; | |
18721 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
18722 | ;; | |
18723 | *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;; | |
18724 | esac | |
18725 | done | |
18726 | ||
698dcdb6 | 18727 | for ac_config_dir in demos samples utils contrib; do |
2224580a VZ |
18728 | |
18729 | # Do not complain, so a configure script can configure whichever | |
18730 | # parts of a large source tree are present. | |
698dcdb6 VZ |
18731 | if test ! -d $srcdir/$ac_config_dir; then |
18732 | continue | |
18733 | fi | |
18734 | ||
18735 | echo configuring in $ac_config_dir | |
2224580a | 18736 | |
698dcdb6 | 18737 | case "$srcdir" in |
2224580a VZ |
18738 | .) ;; |
18739 | *) | |
698dcdb6 VZ |
18740 | if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :; |
18741 | else | |
18742 | { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; } | |
18743 | fi | |
18744 | ;; | |
2224580a VZ |
18745 | esac |
18746 | ||
18747 | ac_popdir=`pwd` | |
698dcdb6 | 18748 | cd $ac_config_dir |
2224580a | 18749 | |
698dcdb6 VZ |
18750 | # A "../" for each directory in /$ac_config_dir. |
18751 | ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'` | |
2224580a | 18752 | |
698dcdb6 | 18753 | case "$srcdir" in |
2224580a VZ |
18754 | .) # No --srcdir option. We are building in place. |
18755 | ac_sub_srcdir=$srcdir ;; | |
698dcdb6 VZ |
18756 | /*) # Absolute path. |
18757 | ac_sub_srcdir=$srcdir/$ac_config_dir ;; | |
2224580a | 18758 | *) # Relative path. |
698dcdb6 | 18759 | ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;; |
2224580a VZ |
18760 | esac |
18761 | ||
18762 | # Check for guested configure; otherwise get Cygnus style configure. | |
698dcdb6 VZ |
18763 | if test -f $ac_sub_srcdir/configure; then |
18764 | ac_sub_configure=$ac_sub_srcdir/configure | |
2224580a VZ |
18765 | elif test -f $ac_sub_srcdir/configure.in; then |
18766 | ac_sub_configure=$ac_configure | |
18767 | else | |
698dcdb6 | 18768 | echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2 |
2224580a VZ |
18769 | ac_sub_configure= |
18770 | fi | |
18771 | ||
18772 | # The recursion is here. | |
18773 | if test -n "$ac_sub_configure"; then | |
698dcdb6 | 18774 | |
2224580a | 18775 | # Make the cache file name correct relative to the subdirectory. |
698dcdb6 VZ |
18776 | case "$cache_file" in |
18777 | /*) ac_sub_cache_file=$cache_file ;; | |
2224580a | 18778 | *) # Relative path. |
698dcdb6 | 18779 | ac_sub_cache_file="$ac_dots$cache_file" ;; |
2224580a | 18780 | esac |
698dcdb6 VZ |
18781 | case "$ac_given_INSTALL" in |
18782 | [/$]*) INSTALL="$ac_given_INSTALL" ;; | |
18783 | *) INSTALL="$ac_dots$ac_given_INSTALL" ;; | |
18784 | esac | |
2224580a | 18785 | |
698dcdb6 | 18786 | echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir" |
2224580a | 18787 | # The eval makes quoting arguments work. |
698dcdb6 VZ |
18788 | if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir |
18789 | then : | |
18790 | else | |
18791 | { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; } | |
18792 | fi | |
2224580a VZ |
18793 | fi |
18794 | ||
18795 | cd $ac_popdir | |
18796 | done | |
18797 | fi | |
18798 | ||
698dcdb6 | 18799 |