]>
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" | |
1e6feb95 | 360 | ac_help="$ac_help |
8168de4c | 361 | --enable-image use wxImage class" |
698dcdb6 | 362 | ac_help="$ac_help |
8168de4c | 363 | --enable-gif use gif images (GIF file format)" |
698dcdb6 | 364 | ac_help="$ac_help |
8168de4c | 365 | --enable-pcx use pcx images (PCX file format)" |
698dcdb6 | 366 | ac_help="$ac_help |
8168de4c | 367 | --enable-pnm use pnm images (PNM file format)" |
698dcdb6 | 368 | ac_help="$ac_help |
8168de4c | 369 | --enable-xpm use xpm images (XPM file format)" |
698dcdb6 VZ |
370 | ac_help="$ac_help |
371 | --with-gtk-prefix=PFX Prefix where GTK is installed (optional)" | |
372 | ac_help="$ac_help | |
373 | --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)" | |
374 | ac_help="$ac_help | |
375 | --disable-gtktest Do not try to compile and run a test GTK program" | |
376 | ac_help="$ac_help | |
377 | --with-x use the X Window System" | |
10f2d63a VZ |
378 | |
379 | # Initialize some variables set by options. | |
380 | # The variables have the same names as the options, with | |
381 | # dashes changed to underlines. | |
698dcdb6 VZ |
382 | build=NONE |
383 | cache_file=./config.cache | |
10f2d63a | 384 | exec_prefix=NONE |
698dcdb6 | 385 | host=NONE |
10f2d63a | 386 | no_create= |
698dcdb6 | 387 | nonopt=NONE |
10f2d63a VZ |
388 | no_recursion= |
389 | prefix=NONE | |
390 | program_prefix=NONE | |
391 | program_suffix=NONE | |
392 | program_transform_name=s,x,x, | |
393 | silent= | |
394 | site= | |
395 | srcdir= | |
698dcdb6 | 396 | target=NONE |
10f2d63a VZ |
397 | verbose= |
398 | x_includes=NONE | |
399 | x_libraries=NONE | |
400 | bindir='${exec_prefix}/bin' | |
401 | sbindir='${exec_prefix}/sbin' | |
402 | libexecdir='${exec_prefix}/libexec' | |
403 | datadir='${prefix}/share' | |
404 | sysconfdir='${prefix}/etc' | |
405 | sharedstatedir='${prefix}/com' | |
406 | localstatedir='${prefix}/var' | |
407 | libdir='${exec_prefix}/lib' | |
408 | includedir='${prefix}/include' | |
409 | oldincludedir='/usr/include' | |
410 | infodir='${prefix}/info' | |
411 | mandir='${prefix}/man' | |
412 | ||
698dcdb6 VZ |
413 | # Initialize some other variables. |
414 | subdirs= | |
415 | MFLAGS= MAKEFLAGS= | |
416 | SHELL=${CONFIG_SHELL-/bin/sh} | |
417 | # Maximum number of lines to put in a shell here document. | |
418 | ac_max_here_lines=12 | |
10f2d63a VZ |
419 | |
420 | ac_prev= | |
421 | for ac_option | |
422 | do | |
698dcdb6 | 423 | |
10f2d63a VZ |
424 | # If the previous option needs an argument, assign it. |
425 | if test -n "$ac_prev"; then | |
426 | eval "$ac_prev=\$ac_option" | |
427 | ac_prev= | |
428 | continue | |
429 | fi | |
430 | ||
698dcdb6 VZ |
431 | case "$ac_option" in |
432 | -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;; | |
433 | *) ac_optarg= ;; | |
434 | esac | |
10f2d63a VZ |
435 | |
436 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
437 | ||
698dcdb6 | 438 | case "$ac_option" in |
10f2d63a VZ |
439 | |
440 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
441 | ac_prev=bindir ;; | |
442 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
698dcdb6 | 443 | bindir="$ac_optarg" ;; |
10f2d63a VZ |
444 | |
445 | -build | --build | --buil | --bui | --bu) | |
698dcdb6 | 446 | ac_prev=build ;; |
10f2d63a | 447 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
698dcdb6 | 448 | build="$ac_optarg" ;; |
10f2d63a VZ |
449 | |
450 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
451 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
452 | ac_prev=cache_file ;; | |
453 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
454 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
698dcdb6 | 455 | cache_file="$ac_optarg" ;; |
10f2d63a VZ |
456 | |
457 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da) | |
458 | ac_prev=datadir ;; | |
459 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ | |
460 | | --da=*) | |
698dcdb6 | 461 | datadir="$ac_optarg" ;; |
10f2d63a VZ |
462 | |
463 | -disable-* | --disable-*) | |
698dcdb6 | 464 | ac_feature=`echo $ac_option|sed -e 's/-*disable-//'` |
10f2d63a | 465 | # Reject names that are not valid shell variable names. |
698dcdb6 VZ |
466 | if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then |
467 | { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } | |
468 | fi | |
469 | ac_feature=`echo $ac_feature| sed 's/-/_/g'` | |
470 | eval "enable_${ac_feature}=no" ;; | |
10f2d63a VZ |
471 | |
472 | -enable-* | --enable-*) | |
698dcdb6 | 473 | ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'` |
10f2d63a | 474 | # Reject names that are not valid shell variable names. |
698dcdb6 VZ |
475 | if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then |
476 | { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } | |
477 | fi | |
478 | ac_feature=`echo $ac_feature| sed 's/-/_/g'` | |
479 | case "$ac_option" in | |
480 | *=*) ;; | |
10f2d63a VZ |
481 | *) ac_optarg=yes ;; |
482 | esac | |
698dcdb6 | 483 | eval "enable_${ac_feature}='$ac_optarg'" ;; |
10f2d63a VZ |
484 | |
485 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
486 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
487 | | --exec | --exe | --ex) | |
488 | ac_prev=exec_prefix ;; | |
489 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
490 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
491 | | --exec=* | --exe=* | --ex=*) | |
698dcdb6 | 492 | exec_prefix="$ac_optarg" ;; |
10f2d63a VZ |
493 | |
494 | -gas | --gas | --ga | --g) | |
495 | # Obsolete; use --with-gas. | |
496 | with_gas=yes ;; | |
497 | ||
698dcdb6 VZ |
498 | -help | --help | --hel | --he) |
499 | # Omit some internal or obsolete options to make the list less imposing. | |
500 | # This message is too long to be a string in the A/UX 3.1 sh. | |
501 | cat << EOF | |
502 | Usage: configure [options] [host] | |
503 | Options: [defaults in brackets after descriptions] | |
504 | Configuration: | |
505 | --cache-file=FILE cache test results in FILE | |
506 | --help print this message | |
507 | --no-create do not create output files | |
508 | --quiet, --silent do not print \`checking...' messages | |
509 | --version print the version of autoconf that created configure | |
510 | Directory and file names: | |
511 | --prefix=PREFIX install architecture-independent files in PREFIX | |
512 | [$ac_default_prefix] | |
513 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX | |
514 | [same as prefix] | |
515 | --bindir=DIR user executables in DIR [EPREFIX/bin] | |
516 | --sbindir=DIR system admin executables in DIR [EPREFIX/sbin] | |
517 | --libexecdir=DIR program executables in DIR [EPREFIX/libexec] | |
518 | --datadir=DIR read-only architecture-independent data in DIR | |
519 | [PREFIX/share] | |
520 | --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc] | |
521 | --sharedstatedir=DIR modifiable architecture-independent data in DIR | |
522 | [PREFIX/com] | |
523 | --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var] | |
524 | --libdir=DIR object code libraries in DIR [EPREFIX/lib] | |
525 | --includedir=DIR C header files in DIR [PREFIX/include] | |
526 | --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include] | |
527 | --infodir=DIR info documentation in DIR [PREFIX/info] | |
528 | --mandir=DIR man documentation in DIR [PREFIX/man] | |
529 | --srcdir=DIR find the sources in DIR [configure dir or ..] | |
530 | --program-prefix=PREFIX prepend PREFIX to installed program names | |
531 | --program-suffix=SUFFIX append SUFFIX to installed program names | |
532 | --program-transform-name=PROGRAM | |
533 | run sed PROGRAM on installed program names | |
534 | EOF | |
535 | cat << EOF | |
536 | Host type: | |
537 | --build=BUILD configure for building on BUILD [BUILD=HOST] | |
538 | --host=HOST configure for HOST [guessed] | |
539 | --target=TARGET configure for TARGET [TARGET=HOST] | |
540 | Features and packages: | |
541 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) | |
542 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
543 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
544 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
545 | --x-includes=DIR X include files are in DIR | |
546 | --x-libraries=DIR X library files are in DIR | |
547 | EOF | |
548 | if test -n "$ac_help"; then | |
549 | echo "--enable and --with options recognized:$ac_help" | |
550 | fi | |
551 | exit 0 ;; | |
10f2d63a VZ |
552 | |
553 | -host | --host | --hos | --ho) | |
698dcdb6 | 554 | ac_prev=host ;; |
10f2d63a | 555 | -host=* | --host=* | --hos=* | --ho=*) |
698dcdb6 | 556 | host="$ac_optarg" ;; |
10f2d63a VZ |
557 | |
558 | -includedir | --includedir | --includedi | --included | --include \ | |
559 | | --includ | --inclu | --incl | --inc) | |
560 | ac_prev=includedir ;; | |
561 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
562 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
698dcdb6 | 563 | includedir="$ac_optarg" ;; |
10f2d63a VZ |
564 | |
565 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
566 | ac_prev=infodir ;; | |
567 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
698dcdb6 | 568 | infodir="$ac_optarg" ;; |
10f2d63a VZ |
569 | |
570 | -libdir | --libdir | --libdi | --libd) | |
571 | ac_prev=libdir ;; | |
572 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
698dcdb6 | 573 | libdir="$ac_optarg" ;; |
10f2d63a VZ |
574 | |
575 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
576 | | --libexe | --libex | --libe) | |
577 | ac_prev=libexecdir ;; | |
578 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
579 | | --libexe=* | --libex=* | --libe=*) | |
698dcdb6 | 580 | libexecdir="$ac_optarg" ;; |
10f2d63a VZ |
581 | |
582 | -localstatedir | --localstatedir | --localstatedi | --localstated \ | |
583 | | --localstate | --localstat | --localsta | --localst \ | |
584 | | --locals | --local | --loca | --loc | --lo) | |
585 | ac_prev=localstatedir ;; | |
586 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
587 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \ | |
588 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) | |
698dcdb6 | 589 | localstatedir="$ac_optarg" ;; |
10f2d63a VZ |
590 | |
591 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
592 | ac_prev=mandir ;; | |
593 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
698dcdb6 | 594 | mandir="$ac_optarg" ;; |
10f2d63a VZ |
595 | |
596 | -nfp | --nfp | --nf) | |
597 | # Obsolete; use --without-fp. | |
598 | with_fp=no ;; | |
599 | ||
600 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
601 | | --no-cr | --no-c) | |
602 | no_create=yes ;; | |
603 | ||
604 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
605 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
606 | no_recursion=yes ;; | |
607 | ||
608 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
609 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
610 | | --oldin | --oldi | --old | --ol | --o) | |
611 | ac_prev=oldincludedir ;; | |
612 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
613 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
614 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
698dcdb6 | 615 | oldincludedir="$ac_optarg" ;; |
10f2d63a VZ |
616 | |
617 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
618 | ac_prev=prefix ;; | |
619 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
698dcdb6 | 620 | prefix="$ac_optarg" ;; |
10f2d63a VZ |
621 | |
622 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
623 | | --program-pre | --program-pr | --program-p) | |
624 | ac_prev=program_prefix ;; | |
625 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
626 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
698dcdb6 | 627 | program_prefix="$ac_optarg" ;; |
10f2d63a VZ |
628 | |
629 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
630 | | --program-suf | --program-su | --program-s) | |
631 | ac_prev=program_suffix ;; | |
632 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
633 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
698dcdb6 | 634 | program_suffix="$ac_optarg" ;; |
10f2d63a VZ |
635 | |
636 | -program-transform-name | --program-transform-name \ | |
637 | | --program-transform-nam | --program-transform-na \ | |
638 | | --program-transform-n | --program-transform- \ | |
639 | | --program-transform | --program-transfor \ | |
640 | | --program-transfo | --program-transf \ | |
641 | | --program-trans | --program-tran \ | |
642 | | --progr-tra | --program-tr | --program-t) | |
643 | ac_prev=program_transform_name ;; | |
644 | -program-transform-name=* | --program-transform-name=* \ | |
645 | | --program-transform-nam=* | --program-transform-na=* \ | |
646 | | --program-transform-n=* | --program-transform-=* \ | |
647 | | --program-transform=* | --program-transfor=* \ | |
648 | | --program-transfo=* | --program-transf=* \ | |
649 | | --program-trans=* | --program-tran=* \ | |
650 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
698dcdb6 | 651 | program_transform_name="$ac_optarg" ;; |
10f2d63a VZ |
652 | |
653 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
654 | | -silent | --silent | --silen | --sile | --sil) | |
655 | silent=yes ;; | |
656 | ||
657 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
658 | ac_prev=sbindir ;; | |
659 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
660 | | --sbi=* | --sb=*) | |
698dcdb6 | 661 | sbindir="$ac_optarg" ;; |
10f2d63a VZ |
662 | |
663 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
664 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
665 | | --sharedst | --shareds | --shared | --share | --shar \ | |
666 | | --sha | --sh) | |
667 | ac_prev=sharedstatedir ;; | |
668 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
669 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
670 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
671 | | --sha=* | --sh=*) | |
698dcdb6 | 672 | sharedstatedir="$ac_optarg" ;; |
10f2d63a VZ |
673 | |
674 | -site | --site | --sit) | |
675 | ac_prev=site ;; | |
676 | -site=* | --site=* | --sit=*) | |
698dcdb6 | 677 | site="$ac_optarg" ;; |
10f2d63a VZ |
678 | |
679 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
680 | ac_prev=srcdir ;; | |
681 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
698dcdb6 | 682 | srcdir="$ac_optarg" ;; |
10f2d63a VZ |
683 | |
684 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
685 | | --syscon | --sysco | --sysc | --sys | --sy) | |
686 | ac_prev=sysconfdir ;; | |
687 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
688 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
698dcdb6 | 689 | sysconfdir="$ac_optarg" ;; |
10f2d63a VZ |
690 | |
691 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
698dcdb6 | 692 | ac_prev=target ;; |
10f2d63a | 693 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
698dcdb6 | 694 | target="$ac_optarg" ;; |
10f2d63a VZ |
695 | |
696 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
697 | verbose=yes ;; | |
698 | ||
698dcdb6 VZ |
699 | -version | --version | --versio | --versi | --vers) |
700 | echo "configure generated by autoconf version 2.13" | |
701 | exit 0 ;; | |
10f2d63a VZ |
702 | |
703 | -with-* | --with-*) | |
698dcdb6 | 704 | ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'` |
10f2d63a | 705 | # Reject names that are not valid shell variable names. |
698dcdb6 VZ |
706 | if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then |
707 | { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } | |
708 | fi | |
10f2d63a | 709 | ac_package=`echo $ac_package| sed 's/-/_/g'` |
698dcdb6 VZ |
710 | case "$ac_option" in |
711 | *=*) ;; | |
10f2d63a VZ |
712 | *) ac_optarg=yes ;; |
713 | esac | |
698dcdb6 | 714 | eval "with_${ac_package}='$ac_optarg'" ;; |
10f2d63a VZ |
715 | |
716 | -without-* | --without-*) | |
698dcdb6 | 717 | ac_package=`echo $ac_option|sed -e 's/-*without-//'` |
10f2d63a | 718 | # Reject names that are not valid shell variable names. |
698dcdb6 VZ |
719 | if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then |
720 | { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } | |
721 | fi | |
722 | ac_package=`echo $ac_package| sed 's/-/_/g'` | |
723 | eval "with_${ac_package}=no" ;; | |
10f2d63a VZ |
724 | |
725 | --x) | |
726 | # Obsolete; use --with-x. | |
727 | with_x=yes ;; | |
728 | ||
729 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
730 | | --x-incl | --x-inc | --x-in | --x-i) | |
731 | ac_prev=x_includes ;; | |
732 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
733 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
698dcdb6 | 734 | x_includes="$ac_optarg" ;; |
10f2d63a VZ |
735 | |
736 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
737 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
738 | ac_prev=x_libraries ;; | |
739 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
740 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
698dcdb6 | 741 | x_libraries="$ac_optarg" ;; |
10f2d63a | 742 | |
698dcdb6 | 743 | -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; } |
10f2d63a VZ |
744 | ;; |
745 | ||
746 | *) | |
698dcdb6 VZ |
747 | if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then |
748 | echo "configure: warning: $ac_option: invalid host type" 1>&2 | |
749 | fi | |
750 | if test "x$nonopt" != xNONE; then | |
751 | { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } | |
752 | fi | |
753 | nonopt="$ac_option" | |
10f2d63a VZ |
754 | ;; |
755 | ||
756 | esac | |
757 | done | |
758 | ||
759 | if test -n "$ac_prev"; then | |
698dcdb6 VZ |
760 | { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; } |
761 | fi | |
762 | ||
763 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 | |
764 | ||
765 | # File descriptor usage: | |
766 | # 0 standard input | |
767 | # 1 file creation | |
768 | # 2 errors and warnings | |
769 | # 3 some systems may open it to /dev/tty | |
770 | # 4 used on the Kubota Titan | |
771 | # 6 checking for... messages and results | |
772 | # 5 compiler messages saved in config.log | |
773 | if test "$silent" = yes; then | |
774 | exec 6>/dev/null | |
775 | else | |
776 | exec 6>&1 | |
10f2d63a | 777 | fi |
698dcdb6 VZ |
778 | exec 5>./config.log |
779 | ||
780 | echo "\ | |
781 | This file contains any messages produced by compilers while | |
782 | running configure, to aid debugging if configure makes a mistake. | |
783 | " 1>&5 | |
10f2d63a | 784 | |
698dcdb6 VZ |
785 | # Strip out --no-create and --no-recursion so they do not pile up. |
786 | # Also quote any args containing shell metacharacters. | |
787 | ac_configure_args= | |
788 | for ac_arg | |
10f2d63a | 789 | do |
698dcdb6 VZ |
790 | case "$ac_arg" in |
791 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
792 | | --no-cr | --no-c) ;; | |
793 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
794 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;; | |
795 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*) | |
796 | ac_configure_args="$ac_configure_args '$ac_arg'" ;; | |
797 | *) ac_configure_args="$ac_configure_args $ac_arg" ;; | |
10f2d63a VZ |
798 | esac |
799 | done | |
800 | ||
698dcdb6 VZ |
801 | # NLS nuisances. |
802 | # Only set these to C if already set. These must not be set unconditionally | |
803 | # because not all systems understand e.g. LANG=C (notably SCO). | |
804 | # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'! | |
805 | # Non-C LC_CTYPE values break the ctype check. | |
806 | if test "${LANG+set}" = set; then LANG=C; export LANG; fi | |
807 | if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi | |
808 | if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi | |
809 | if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi | |
10f2d63a | 810 | |
698dcdb6 VZ |
811 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
812 | rm -rf conftest* confdefs.h | |
813 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. | |
814 | echo > confdefs.h | |
10f2d63a | 815 | |
698dcdb6 VZ |
816 | # A filename unique to this package, relative to the directory that |
817 | # configure is in, which we can look for to find out if srcdir is correct. | |
818 | ac_unique_file=wx-config.in | |
10f2d63a VZ |
819 | |
820 | # Find the source files, if location was not specified. | |
821 | if test -z "$srcdir"; then | |
822 | ac_srcdir_defaulted=yes | |
823 | # Try the directory containing this script, then its parent. | |
824 | ac_prog=$0 | |
698dcdb6 | 825 | ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'` |
10f2d63a VZ |
826 | test "x$ac_confdir" = "x$ac_prog" && ac_confdir=. |
827 | srcdir=$ac_confdir | |
828 | if test ! -r $srcdir/$ac_unique_file; then | |
829 | srcdir=.. | |
830 | fi | |
831 | else | |
832 | ac_srcdir_defaulted=no | |
833 | fi | |
834 | if test ! -r $srcdir/$ac_unique_file; then | |
835 | if test "$ac_srcdir_defaulted" = yes; then | |
698dcdb6 | 836 | { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; } |
10f2d63a | 837 | else |
698dcdb6 | 838 | { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; } |
10f2d63a VZ |
839 | fi |
840 | fi | |
698dcdb6 | 841 | srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'` |
10f2d63a VZ |
842 | |
843 | # Prefer explicitly selected file to automatically selected ones. | |
844 | if test -z "$CONFIG_SITE"; then | |
845 | if test "x$prefix" != xNONE; then | |
846 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" | |
847 | else | |
848 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" | |
849 | fi | |
850 | fi | |
851 | for ac_site_file in $CONFIG_SITE; do | |
852 | if test -r "$ac_site_file"; then | |
698dcdb6 | 853 | echo "loading site script $ac_site_file" |
10f2d63a VZ |
854 | . "$ac_site_file" |
855 | fi | |
856 | done | |
857 | ||
858 | if test -r "$cache_file"; then | |
698dcdb6 VZ |
859 | echo "loading cache $cache_file" |
860 | . $cache_file | |
10f2d63a | 861 | else |
698dcdb6 VZ |
862 | echo "creating cache $cache_file" |
863 | > $cache_file | |
10f2d63a VZ |
864 | fi |
865 | ||
866 | ac_ext=c | |
698dcdb6 | 867 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
10f2d63a | 868 | ac_cpp='$CPP $CPPFLAGS' |
698dcdb6 VZ |
869 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
870 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
871 | cross_compiling=$ac_cv_prog_cc_cross | |
872 | ||
873 | ac_exeext= | |
874 | ac_objext=o | |
875 | if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then | |
876 | # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu. | |
877 | if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then | |
878 | ac_n= ac_c=' | |
879 | ' ac_t=' ' | |
880 | else | |
881 | ac_n=-n ac_c= ac_t= | |
882 | fi | |
10f2d63a | 883 | else |
698dcdb6 | 884 | ac_n= ac_c='\c' ac_t= |
10f2d63a | 885 | fi |
698dcdb6 VZ |
886 | |
887 | ||
10f2d63a | 888 | |
7c66a493 VZ |
889 | ac_aux_dir= |
890 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do | |
891 | if test -f $ac_dir/install-sh; then | |
892 | ac_aux_dir=$ac_dir | |
893 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
894 | break | |
895 | elif test -f $ac_dir/install.sh; then | |
896 | ac_aux_dir=$ac_dir | |
897 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
898 | break | |
899 | fi | |
900 | done | |
901 | if test -z "$ac_aux_dir"; then | |
698dcdb6 | 902 | { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; } |
7c66a493 | 903 | fi |
698dcdb6 VZ |
904 | ac_config_guess=$ac_aux_dir/config.guess |
905 | ac_config_sub=$ac_aux_dir/config.sub | |
906 | ac_configure=$ac_aux_dir/configure # This should be Cygnus configure. | |
703e0a69 | 907 | |
698dcdb6 VZ |
908 | |
909 | # Do some error checking and defaulting for the host and target type. | |
910 | # The inputs are: | |
911 | # configure --host=HOST --target=TARGET --build=BUILD NONOPT | |
912 | # | |
913 | # The rules are: | |
914 | # 1. You are not allowed to specify --host, --target, and nonopt at the | |
915 | # same time. | |
916 | # 2. Host defaults to nonopt. | |
917 | # 3. If nonopt is not specified, then host defaults to the current host, | |
918 | # as determined by config.guess. | |
919 | # 4. Target and build default to nonopt. | |
920 | # 5. If nonopt is not specified, then target and build default to host. | |
7c66a493 VZ |
921 | |
922 | # The aliases save the names the user supplied, while $host etc. | |
923 | # will get canonicalized. | |
698dcdb6 VZ |
924 | case $host---$target---$nonopt in |
925 | NONE---*---* | *---NONE---* | *---*---NONE) ;; | |
926 | *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;; | |
927 | esac | |
928 | ||
929 | ||
930 | # Make sure we can run config.sub. | |
931 | if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then : | |
932 | else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; } | |
933 | fi | |
934 | ||
935 | echo $ac_n "checking host system type""... $ac_c" 1>&6 | |
b3e8d00a | 936 | echo "configure:937: checking host system type" >&5 |
698dcdb6 VZ |
937 | |
938 | host_alias=$host | |
939 | case "$host_alias" in | |
940 | NONE) | |
941 | case $nonopt in | |
942 | NONE) | |
943 | if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then : | |
944 | else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; } | |
945 | fi ;; | |
946 | *) host_alias=$nonopt ;; | |
947 | esac ;; | |
948 | esac | |
949 | ||
950 | host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias` | |
951 | host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
952 | host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
953 | host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
954 | echo "$ac_t""$host" 1>&6 | |
955 | ||
956 | echo $ac_n "checking target system type""... $ac_c" 1>&6 | |
b3e8d00a | 957 | echo "configure:958: checking target system type" >&5 |
698dcdb6 VZ |
958 | |
959 | target_alias=$target | |
960 | case "$target_alias" in | |
961 | NONE) | |
962 | case $nonopt in | |
963 | NONE) target_alias=$host_alias ;; | |
964 | *) target_alias=$nonopt ;; | |
965 | esac ;; | |
966 | esac | |
967 | ||
968 | target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias` | |
969 | target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
970 | target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
971 | target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
972 | echo "$ac_t""$target" 1>&6 | |
973 | ||
974 | echo $ac_n "checking build system type""... $ac_c" 1>&6 | |
b3e8d00a | 975 | echo "configure:976: checking build system type" >&5 |
698dcdb6 VZ |
976 | |
977 | build_alias=$build | |
978 | case "$build_alias" in | |
979 | NONE) | |
980 | case $nonopt in | |
981 | NONE) build_alias=$host_alias ;; | |
982 | *) build_alias=$nonopt ;; | |
983 | esac ;; | |
984 | esac | |
985 | ||
986 | build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias` | |
987 | build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
988 | build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
989 | build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
990 | echo "$ac_t""$build" 1>&6 | |
991 | ||
992 | test "$host_alias" != "$target_alias" && | |
7c66a493 VZ |
993 | test "$program_prefix$program_suffix$program_transform_name" = \ |
994 | NONENONEs,x,x, && | |
995 | program_prefix=${target_alias}- | |
996 | ||
698dcdb6 VZ |
997 | |
998 | ||
10f2d63a | 999 | WX_MAJOR_VERSION_NUMBER=2 |
37d403aa | 1000 | WX_MINOR_VERSION_NUMBER=3 |
6c01ec02 | 1001 | WX_RELEASE_NUMBER=2 |
10f2d63a | 1002 | |
10f2d63a | 1003 | WX_VERSION=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER.$WX_RELEASE_NUMBER |
10f2d63a | 1004 | WX_RELEASE=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER |
6426998c | 1005 | |
6c01ec02 | 1006 | WX_CURRENT=1 |
6426998c RL |
1007 | WX_REVISION=0 |
1008 | WX_AGE=0 | |
1009 | ||
698dcdb6 VZ |
1010 | |
1011 | ||
10f2d63a VZ |
1012 | USE_UNIX=1 |
1013 | USE_WIN32=0 | |
b12915c1 | 1014 | USE_BEOS=0 |
1216f52d | 1015 | USE_MAC=0 |
b12915c1 | 1016 | |
10f2d63a VZ |
1017 | USE_LINUX= |
1018 | USE_SGI= | |
1019 | USE_HPUX= | |
1020 | USE_SYSV= | |
1021 | USE_SVR4= | |
1022 | USE_AIX= | |
1023 | USE_SUN= | |
1024 | USE_SOLARIS= | |
1025 | USE_SUNOS= | |
1026 | USE_ALPHA= | |
1027 | USE_OSF= | |
1028 | USE_BSD= | |
f11bdd03 | 1029 | USE_DARWIN= |
10f2d63a | 1030 | USE_FREEBSD= |
95c8801c | 1031 | USE_OPENBSD= |
f6bcfd97 | 1032 | USE_NETBSD= |
10f2d63a VZ |
1033 | USE_VMS= |
1034 | USE_ULTRIX= | |
1035 | USE_CYGWIN= | |
1036 | USE_MINGW= | |
1037 | USE_DATA_GENERAL= | |
1038 | ||
ab9b9eab VZ |
1039 | NEEDS_D_REENTRANT_FOR_R_FUNCS=0 |
1040 | ||
1e6feb95 | 1041 | ALL_TOOLKITS="CYGWIN GTK MAC MGL MINGW MOTIF PM WINE" |
10f2d63a VZ |
1042 | |
1043 | DEFAULT_wxUSE_GTK=0 | |
1e6feb95 VZ |
1044 | DEFAULT_wxUSE_MAC=0 |
1045 | DEFAULT_wxUSE_MGL=0 | |
10f2d63a VZ |
1046 | DEFAULT_wxUSE_MOTIF=0 |
1047 | DEFAULT_wxUSE_MSW=0 | |
e07802fc | 1048 | DEFAULT_wxUSE_PM=0 |
1e6feb95 | 1049 | DEFAULT_wxUSE_WINE=0 |
10f2d63a VZ |
1050 | |
1051 | DEFAULT_DEFAULT_wxUSE_GTK=0 | |
1e6feb95 VZ |
1052 | DEFAULT_DEFAULT_wxUSE_MAC=0 |
1053 | DEFAULT_DEFAULT_wxUSE_MGL=0 | |
10f2d63a VZ |
1054 | DEFAULT_DEFAULT_wxUSE_MOTIF=0 |
1055 | DEFAULT_DEFAULT_wxUSE_MSW=0 | |
e07802fc | 1056 | DEFAULT_DEFAULT_wxUSE_PM=0 |
1e6feb95 | 1057 | DEFAULT_DEFAULT_wxUSE_WINE=0 |
10f2d63a | 1058 | |
d6a55c4b | 1059 | PROGRAM_EXT= |
3a922bb4 | 1060 | SO_SUFFIX=so |
d6a55c4b | 1061 | |
10f2d63a VZ |
1062 | case "${host}" in |
1063 | *-hp-hpux* ) | |
1064 | USE_HPUX=1 | |
1065 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
ab9b9eab | 1066 | NEEDS_D_REENTRANT_FOR_R_FUNCS=1 |
3a922bb4 | 1067 | SO_SUFFIX=sl |
698dcdb6 | 1068 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1069 | #define __HPUX__ 1 |
1070 | EOF | |
1071 | ||
1072 | ;; | |
1073 | *-*-linux* ) | |
1074 | USE_LINUX=1 | |
698dcdb6 | 1075 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1076 | #define __LINUX__ 1 |
1077 | EOF | |
1078 | ||
1079 | TMP=`uname -m` | |
1080 | if test "x$TMP" = "xalpha"; then | |
1081 | USE_ALPHA=1 | |
698dcdb6 | 1082 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1083 | #define __ALPHA__ 1 |
1084 | EOF | |
1085 | ||
1086 | fi | |
1087 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1088 | ;; | |
1089 | *-*-irix5* | *-*-irix6* ) | |
1090 | USE_SGI=1 | |
1091 | USE_SVR4=1 | |
698dcdb6 | 1092 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1093 | #define __SGI__ 1 |
1094 | EOF | |
1095 | ||
698dcdb6 | 1096 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1097 | #define __SVR4__ 1 |
1098 | EOF | |
1099 | ||
1100 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1101 | ;; | |
1102 | *-*-solaris2* ) | |
1103 | USE_SUN=1 | |
1104 | USE_SOLARIS=1 | |
1105 | USE_SVR4=1 | |
698dcdb6 | 1106 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1107 | #define __SUN__ 1 |
1108 | EOF | |
1109 | ||
698dcdb6 | 1110 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1111 | #define __SOLARIS__ 1 |
1112 | EOF | |
1113 | ||
698dcdb6 | 1114 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1115 | #define __SVR4__ 1 |
1116 | EOF | |
1117 | ||
1118 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
ab9b9eab | 1119 | NEEDS_D_REENTRANT_FOR_R_FUNCS=1 |
10f2d63a VZ |
1120 | ;; |
1121 | *-*-sunos4* ) | |
1122 | USE_SUN=1 | |
1123 | USE_SUNOS=1 | |
1124 | USE_BSD=1 | |
698dcdb6 | 1125 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1126 | #define __SUN__ 1 |
1127 | EOF | |
1128 | ||
698dcdb6 | 1129 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1130 | #define __SUNOS__ 1 |
1131 | EOF | |
1132 | ||
698dcdb6 | 1133 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1134 | #define __BSD__ 1 |
1135 | EOF | |
1136 | ||
1137 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1138 | ;; | |
f6bcfd97 | 1139 | *-*-freebsd*) |
10f2d63a VZ |
1140 | USE_BSD=1 |
1141 | USE_FREEBSD=1 | |
698dcdb6 | 1142 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1143 | #define __FREEBSD__ 1 |
1144 | EOF | |
1145 | ||
698dcdb6 | 1146 | cat >> confdefs.h <<\EOF |
10f2d63a | 1147 | #define __BSD__ 1 |
95c8801c VS |
1148 | EOF |
1149 | ||
1150 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1151 | ;; | |
1152 | *-*-openbsd*) | |
1153 | USE_BSD=1 | |
1154 | USE_OPENBSD=1 | |
698dcdb6 | 1155 | cat >> confdefs.h <<\EOF |
95c8801c VS |
1156 | #define __FREEBSD__ 1 |
1157 | EOF | |
1158 | ||
698dcdb6 | 1159 | cat >> confdefs.h <<\EOF |
95c8801c | 1160 | #define __OPENBSD__ 1 |
f6bcfd97 BP |
1161 | EOF |
1162 | ||
1163 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1164 | ;; | |
1165 | *-*-netbsd*) | |
1166 | USE_BSD=1 | |
1167 | USE_NETBSD=1 | |
698dcdb6 | 1168 | cat >> confdefs.h <<\EOF |
f6bcfd97 BP |
1169 | #define __FREEBSD__ 1 |
1170 | EOF | |
1171 | ||
698dcdb6 | 1172 | cat >> confdefs.h <<\EOF |
f6bcfd97 | 1173 | #define __NETBSD__ 1 |
10f2d63a VZ |
1174 | EOF |
1175 | ||
1176 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1177 | ;; | |
1178 | *-*-osf* ) | |
1179 | USE_ALPHA=1 | |
1180 | USE_OSF=1 | |
698dcdb6 | 1181 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1182 | #define __ALPHA__ 1 |
1183 | EOF | |
1184 | ||
698dcdb6 | 1185 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1186 | #define __OSF__ 1 |
1187 | EOF | |
1188 | ||
1189 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
f6bcfd97 | 1190 | NEEDS_D_REENTRANT_FOR_R_FUNCS=1 |
10f2d63a VZ |
1191 | ;; |
1192 | *-*-dgux5* ) | |
1193 | USE_ALPHA=1 | |
1194 | USE_SVR4=1 | |
698dcdb6 | 1195 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1196 | #define __ALPHA__ 1 |
1197 | EOF | |
1198 | ||
698dcdb6 | 1199 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1200 | #define __SVR4__ 1 |
1201 | EOF | |
1202 | ||
1203 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1204 | ;; | |
1205 | *-*-sysv5* ) | |
1206 | USE_SYSV=1 | |
1207 | USE_SVR4=1 | |
698dcdb6 | 1208 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1209 | #define __SYSV__ 1 |
1210 | EOF | |
1211 | ||
698dcdb6 | 1212 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1213 | #define __SVR4__ 1 |
1214 | EOF | |
1215 | ||
1216 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1217 | ;; | |
1218 | *-*-aix* ) | |
1219 | USE_AIX=1 | |
1220 | USE_SYSV=1 | |
1221 | USE_SVR4=1 | |
698dcdb6 | 1222 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1223 | #define __AIX__ 1 |
1224 | EOF | |
1225 | ||
698dcdb6 | 1226 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1227 | #define __SYSV__ 1 |
1228 | EOF | |
1229 | ||
698dcdb6 | 1230 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1231 | #define __SVR4__ 1 |
1232 | EOF | |
1233 | ||
1234 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1235 | ;; | |
1236 | ||
1c8183e2 | 1237 | *-*-cygwin* | *-*-mingw32* ) |
10f2d63a VZ |
1238 | USE_UNIX=0 |
1239 | USE_WIN32=1 | |
3a922bb4 | 1240 | SO_SUFFIX=dll |
698dcdb6 | 1241 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1242 | #define __WIN32__ 1 |
1243 | EOF | |
1244 | ||
698dcdb6 | 1245 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1246 | #define __WIN95__ 1 |
1247 | EOF | |
1248 | ||
698dcdb6 | 1249 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1250 | #define __WINDOWS__ 1 |
1251 | EOF | |
1252 | ||
698dcdb6 | 1253 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1254 | #define __GNUWIN32__ 1 |
1255 | EOF | |
1256 | ||
698dcdb6 | 1257 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1258 | #define STRICT 1 |
1259 | EOF | |
1260 | ||
698dcdb6 | 1261 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1262 | #define WINVER 0x0400 |
1263 | EOF | |
1264 | ||
cf27ef00 | 1265 | PROGRAM_EXT=".exe" |
10f2d63a VZ |
1266 | DEFAULT_DEFAULT_wxUSE_MSW=1 |
1267 | ;; | |
1268 | ||
1269 | *-pc-os2_emx ) | |
698dcdb6 | 1270 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1271 | #define __EMX__ 1 |
1272 | EOF | |
1273 | ||
cf27ef00 | 1274 | PROGRAM_EXT=".exe" |
e07802fc | 1275 | DEFAULT_DEFAULT_wxUSE_PM=1 |
10f2d63a VZ |
1276 | ;; |
1277 | ||
b4085ce6 GD |
1278 | *-*-darwin* ) |
1279 | USE_BSD=1 | |
f11bdd03 | 1280 | USE_DARWIN=1 |
3a922bb4 | 1281 | SO_SUFFIX=dylib |
698dcdb6 | 1282 | cat >> confdefs.h <<\EOF |
f11bdd03 | 1283 | #define __BSD__ 1 |
b4085ce6 GD |
1284 | EOF |
1285 | ||
698dcdb6 | 1286 | cat >> confdefs.h <<\EOF |
f11bdd03 | 1287 | #define __DARWIN__ 1 |
b4085ce6 GD |
1288 | EOF |
1289 | ||
1290 | DEFAULT_DEFAULT_wxUSE_MAC=1 | |
1291 | ;; | |
1292 | ||
b12915c1 VZ |
1293 | *-*-beos* ) |
1294 | USE_BEOS=1 | |
698dcdb6 | 1295 | cat >> confdefs.h <<\EOF |
b12915c1 VZ |
1296 | #define __BEOS__ 1 |
1297 | EOF | |
1298 | ||
1299 | ;; | |
1300 | ||
10f2d63a | 1301 | *) |
698dcdb6 | 1302 | { echo "configure: error: unknown system type ${host}." 1>&2; exit 1; } |
10f2d63a VZ |
1303 | esac |
1304 | ||
1305 | if test "$USE_UNIX" = 1 ; then | |
b12915c1 | 1306 | wxUSE_UNIX=yes |
698dcdb6 | 1307 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1308 | #define __UNIX__ 1 |
1309 | EOF | |
1310 | ||
10f2d63a VZ |
1311 | fi |
1312 | ||
2389f33b VZ |
1313 | if test "$USE_LINUX" = 1; then |
1314 | echo $ac_n "checking for glibc 2.1 or later""... $ac_c" 1>&6 | |
b3e8d00a | 1315 | echo "configure:1316: checking for glibc 2.1 or later" >&5 |
2389f33b VZ |
1316 | if eval "test \"`echo '$''{'wx_lib_glibc21'+set}'`\" = set"; then |
1317 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1318 | else | |
1319 | cat > conftest.$ac_ext <<EOF | |
b3e8d00a | 1320 | #line 1321 "configure" |
2389f33b VZ |
1321 | #include "confdefs.h" |
1322 | #include <features.h> | |
1323 | int main() { | |
1324 | ||
1325 | #if !__GLIBC_PREREQ(2, 1) | |
1326 | #error not glibc2.1 | |
1327 | #endif | |
1328 | ||
1329 | ; return 0; } | |
1330 | EOF | |
b3e8d00a | 1331 | if { (eval echo configure:1332: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
2389f33b VZ |
1332 | rm -rf conftest* |
1333 | ||
1334 | wx_lib_glibc21=yes | |
1335 | ||
1336 | else | |
1337 | echo "configure: failed program was:" >&5 | |
1338 | cat conftest.$ac_ext >&5 | |
1339 | rm -rf conftest* | |
1340 | ||
1341 | wx_lib_glibc21=no | |
1342 | ||
1343 | ||
1344 | fi | |
1345 | rm -f conftest* | |
1346 | ||
1347 | fi | |
1348 | ||
1349 | echo "$ac_t""$wx_lib_glibc21" 1>&6 | |
2389f33b VZ |
1350 | if test "$wx_lib_glibc21" = "yes"; then |
1351 | cat >> confdefs.h <<\EOF | |
1352 | #define wxHAVE_GLIBC2 1 | |
1353 | EOF | |
1354 | ||
1355 | fi | |
1356 | fi | |
10f2d63a | 1357 | |
1e487827 | 1358 | |
1e487827 | 1359 | |
6232543b | 1360 | |
10f2d63a VZ |
1361 | wx_arg_cache_file="configarg.cache" |
1362 | echo "loading argument cache $wx_arg_cache_file" | |
1363 | rm -f ${wx_arg_cache_file}.tmp | |
1364 | touch ${wx_arg_cache_file}.tmp | |
1365 | touch ${wx_arg_cache_file} | |
698dcdb6 | 1366 | |
10f2d63a VZ |
1367 | |
1368 | DEBUG_CONFIGURE=0 | |
1369 | if test $DEBUG_CONFIGURE = 1; then | |
1e6feb95 VZ |
1370 | DEFAULT_wxUSE_UNIVERSAL=no |
1371 | ||
10f2d63a VZ |
1372 | DEFAULT_wxUSE_THREADS=yes |
1373 | ||
1374 | DEFAULT_wxUSE_SHARED=yes | |
3a922bb4 | 1375 | DEFAULT_wxUSE_SONAME=no |
1e6feb95 | 1376 | DEFAULT_wxUSE_OPTIMISE=no |
10f2d63a VZ |
1377 | DEFAULT_wxUSE_PROFILE=no |
1378 | DEFAULT_wxUSE_NO_DEPS=no | |
1379 | DEFAULT_wxUSE_NO_RTTI=no | |
1380 | DEFAULT_wxUSE_NO_EXCEPTIONS=no | |
1381 | DEFAULT_wxUSE_PERMISSIVE=no | |
1382 | DEFAULT_wxUSE_DEBUG_FLAG=yes | |
1383 | DEFAULT_wxUSE_DEBUG_INFO=yes | |
1384 | DEFAULT_wxUSE_DEBUG_GDB=yes | |
1385 | DEFAULT_wxUSE_MEM_TRACING=no | |
1386 | DEFAULT_wxUSE_DEBUG_CONTEXT=no | |
1387 | DEFAULT_wxUSE_DMALLOC=no | |
1388 | DEFAULT_wxUSE_APPLE_IEEE=no | |
1389 | ||
1390 | DEFAULT_wxUSE_LOG=yes | |
1e6feb95 VZ |
1391 | DEFAULT_wxUSE_LOGWINDOW=no |
1392 | DEFAULT_wxUSE_LOGGUI=no | |
10f2d63a VZ |
1393 | |
1394 | DEFAULT_wxUSE_GUI=yes | |
1e6feb95 | 1395 | DEFAULT_wxUSE_CONTROLS=no |
10f2d63a | 1396 | |
3e44f09d | 1397 | DEFAULT_wxUSE_REGEX=no |
10f2d63a VZ |
1398 | DEFAULT_wxUSE_ZLIB=no |
1399 | DEFAULT_wxUSE_LIBPNG=no | |
1400 | DEFAULT_wxUSE_LIBJPEG=no | |
c7a2bf27 | 1401 | DEFAULT_wxUSE_LIBTIFF=no |
10f2d63a | 1402 | DEFAULT_wxUSE_ODBC=no |
3fed1840 | 1403 | DEFAULT_wxUSE_FREETYPE=no |
bdad4e7e | 1404 | DEFAULT_wxUSE_OPENGL=no |
10f2d63a | 1405 | |
eb4efbdc | 1406 | DEFAULT_wxUSE_ON_FATAL_EXCEPTION=no |
4f3c5f06 | 1407 | DEFAULT_wxUSE_SNGLINST_CHECKER=no |
10f2d63a | 1408 | DEFAULT_wxUSE_STD_IOSTREAM=no |
1e6feb95 VZ |
1409 | DEFAULT_wxUSE_CMDLINE_PARSER=no |
1410 | DEFAULT_wxUSE_DATETIME=no | |
1411 | DEFAULT_wxUSE_TIMEDATE=no | |
1412 | DEFAULT_wxUSE_TIMER=no | |
1413 | DEFAULT_wxUSE_STOPWATCH=no | |
10f2d63a | 1414 | DEFAULT_wxUSE_FILE=no |
1e6feb95 | 1415 | DEFAULT_wxUSE_FFILE=no |
10f2d63a | 1416 | DEFAULT_wxUSE_TEXTFILE=no |
10f2d63a VZ |
1417 | DEFAULT_wxUSE_WAVE=no |
1418 | DEFAULT_wxUSE_INTL=no | |
1419 | DEFAULT_wxUSE_CONFIG=no | |
1e6feb95 | 1420 | DEFAULT_wxUSE_FONTMAP=no |
10f2d63a VZ |
1421 | DEFAULT_wxUSE_STREAMS=no |
1422 | DEFAULT_wxUSE_SOCKETS=no | |
1423 | DEFAULT_wxUSE_DIALUP_MANAGER=no | |
1424 | DEFAULT_wxUSE_SERIAL=no | |
1425 | DEFAULT_wxUSE_JOYSTICK=no | |
1426 | DEFAULT_wxUSE_DYNLIB_CLASS=no | |
1427 | DEFAULT_wxUSE_LONGLONG=no | |
e8f65ba6 | 1428 | DEFAULT_wxUSE_GEOMETRY=no |
10f2d63a VZ |
1429 | |
1430 | DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no | |
1431 | DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no | |
1432 | DEFAULT_wxUSE_POSTSCRIPT=no | |
1433 | ||
1434 | DEFAULT_wxUSE_X_RESOURCES=no | |
1435 | DEFAULT_wxUSE_CLIPBOARD=no | |
1436 | DEFAULT_wxUSE_TOOLTIPS=no | |
1437 | DEFAULT_wxUSE_DRAG_AND_DROP=no | |
24fd6d87 | 1438 | DEFAULT_wxUSE_DRAGIMAGE=no |
10f2d63a VZ |
1439 | DEFAULT_wxUSE_SPLINES=no |
1440 | ||
1441 | DEFAULT_wxUSE_MDI_ARCHITECTURE=no | |
1442 | DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no | |
1443 | DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no | |
1444 | ||
1445 | DEFAULT_wxUSE_PROLOGIO=no | |
1446 | DEFAULT_wxUSE_RESOURCES=no | |
1447 | DEFAULT_wxUSE_CONSTRAINTS=no | |
1448 | DEFAULT_wxUSE_IPC=no | |
1449 | DEFAULT_wxUSE_HELP=no | |
29fd3c0c | 1450 | DEFAULT_wxUSE_MS_HTML_HELP=no |
3379ed37 | 1451 | DEFAULT_wxUSE_WXHTML_HELP=no |
24176f2c | 1452 | DEFAULT_wxUSE_TREELAYOUT=no |
10f2d63a | 1453 | DEFAULT_wxUSE_METAFILE=no |
1e6feb95 | 1454 | DEFAULT_wxUSE_MIMETYPE=no |
3e44f09d | 1455 | DEFAULT_wxUSE_SYSTEM_OPTIONS=yes |
10f2d63a VZ |
1456 | |
1457 | DEFAULT_wxUSE_COMMONDLGS=no | |
1e6feb95 VZ |
1458 | DEFAULT_wxUSE_CHOICEDLG=no |
1459 | DEFAULT_wxUSE_COLOURDLG=no | |
10f2d63a | 1460 | DEFAULT_wxUSE_DIRDLG=no |
1e6feb95 | 1461 | DEFAULT_wxUSE_FILEDLG=no |
8db37e06 | 1462 | DEFAULT_wxUSE_FINDREPLDLG=no |
1e6feb95 VZ |
1463 | DEFAULT_wxUSE_FONTDLG=no |
1464 | DEFAULT_wxUSE_MSGDLG=no | |
1465 | DEFAULT_wxUSE_NUMBERDLG=no | |
10f2d63a | 1466 | DEFAULT_wxUSE_TEXTDLG=no |
cbca9943 | 1467 | DEFAULT_wxUSE_SPLASH=no |
10f2d63a VZ |
1468 | DEFAULT_wxUSE_STARTUP_TIPS=no |
1469 | DEFAULT_wxUSE_PROGRESSDLG=no | |
b1f5d087 VZ |
1470 | DEFAULT_wxUSE_WIZARDDLG=no |
1471 | ||
1e6feb95 | 1472 | DEFAULT_wxUSE_MENUS=no |
10f2d63a VZ |
1473 | DEFAULT_wxUSE_MINIFRAME=no |
1474 | DEFAULT_wxUSE_HTML=no | |
24528b0c | 1475 | DEFAULT_wxUSE_FILESYSTEM=no |
10f2d63a VZ |
1476 | DEFAULT_wxUSE_FS_INET=no |
1477 | DEFAULT_wxUSE_FS_ZIP=no | |
1478 | DEFAULT_wxUSE_BUSYINFO=no | |
1479 | DEFAULT_wxUSE_ZIPSTREAM=no | |
1e6feb95 | 1480 | DEFAULT_wxUSE_VALIDATORS=no |
10f2d63a VZ |
1481 | |
1482 | DEFAULT_wxUSE_ACCEL=no | |
1e6feb95 | 1483 | DEFAULT_wxUSE_BUTTON=no |
10f2d63a | 1484 | DEFAULT_wxUSE_BMPBUTTON=no |
1e6feb95 VZ |
1485 | DEFAULT_wxUSE_CALCTRL=no |
1486 | DEFAULT_wxUSE_CARET=no | |
10f2d63a VZ |
1487 | DEFAULT_wxUSE_CHECKBOX=no |
1488 | DEFAULT_wxUSE_CHECKLST=no | |
1e6feb95 | 1489 | DEFAULT_wxUSE_CHOICE=no |
10f2d63a VZ |
1490 | DEFAULT_wxUSE_COMBOBOX=no |
1491 | DEFAULT_wxUSE_GAUGE=no | |
1492 | DEFAULT_wxUSE_GRID=no | |
1493 | DEFAULT_wxUSE_NEW_GRID=no | |
1494 | DEFAULT_wxUSE_IMAGLIST=no | |
1495 | DEFAULT_wxUSE_LISTBOX=no | |
1496 | DEFAULT_wxUSE_LISTCTRL=no | |
1497 | DEFAULT_wxUSE_NOTEBOOK=no | |
24176f2c | 1498 | DEFAULT_wxUSE_PROPSHEET=no |
10f2d63a VZ |
1499 | DEFAULT_wxUSE_RADIOBOX=no |
1500 | DEFAULT_wxUSE_RADIOBTN=no | |
1501 | DEFAULT_wxUSE_SASH=no | |
1502 | DEFAULT_wxUSE_SCROLLBAR=no | |
1503 | DEFAULT_wxUSE_SLIDER=no | |
1504 | DEFAULT_wxUSE_SPINBTN=no | |
56cfaa52 | 1505 | DEFAULT_wxUSE_SPINCTRL=no |
10f2d63a VZ |
1506 | DEFAULT_wxUSE_SPLITTER=no |
1507 | DEFAULT_wxUSE_STATBMP=no | |
1508 | DEFAULT_wxUSE_STATBOX=no | |
1509 | DEFAULT_wxUSE_STATLINE=no | |
1e6feb95 | 1510 | DEFAULT_wxUSE_STATTEXT=no |
10f2d63a VZ |
1511 | DEFAULT_wxUSE_STATUSBAR=yes |
1512 | DEFAULT_wxUSE_TABDIALOG=no | |
1e6feb95 | 1513 | DEFAULT_wxUSE_TEXTCTRL=no |
1db8dc4a | 1514 | DEFAULT_wxUSE_TOGGLEBTN=no |
10f2d63a | 1515 | DEFAULT_wxUSE_TOOLBAR=no |
360d6699 VZ |
1516 | DEFAULT_wxUSE_TOOLBAR_NATIVE=no |
1517 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=no | |
10f2d63a | 1518 | DEFAULT_wxUSE_TREECTRL=no |
9f41d601 | 1519 | DEFAULT_wxUSE_POPUPWIN=no |
10f2d63a VZ |
1520 | |
1521 | DEFAULT_wxUSE_UNICODE=no | |
1522 | DEFAULT_wxUSE_WCSRTOMBS=no | |
1523 | ||
0046ff7c | 1524 | DEFAULT_wxUSE_IMAGE=no |
10f2d63a VZ |
1525 | DEFAULT_wxUSE_GIF=no |
1526 | DEFAULT_wxUSE_PCX=no | |
1527 | DEFAULT_wxUSE_PNM=no | |
0046ff7c | 1528 | DEFAULT_wxUSE_XPM=no |
10f2d63a | 1529 | else |
1e6feb95 VZ |
1530 | DEFAULT_wxUSE_UNIVERSAL=no |
1531 | ||
10f2d63a VZ |
1532 | DEFAULT_wxUSE_THREADS=yes |
1533 | ||
1534 | DEFAULT_wxUSE_SHARED=yes | |
3a922bb4 | 1535 | DEFAULT_wxUSE_SONAME=no |
10f2d63a VZ |
1536 | DEFAULT_wxUSE_OPTIMISE=yes |
1537 | DEFAULT_wxUSE_PROFILE=no | |
1538 | DEFAULT_wxUSE_NO_DEPS=no | |
1539 | DEFAULT_wxUSE_NO_RTTI=no | |
1540 | DEFAULT_wxUSE_NO_EXCEPTIONS=no | |
1541 | DEFAULT_wxUSE_PERMISSIVE=no | |
1542 | DEFAULT_wxUSE_DEBUG_FLAG=no | |
1543 | DEFAULT_wxUSE_DEBUG_INFO=no | |
1544 | DEFAULT_wxUSE_DEBUG_GDB=no | |
1545 | DEFAULT_wxUSE_MEM_TRACING=no | |
1546 | DEFAULT_wxUSE_DEBUG_CONTEXT=no | |
1547 | DEFAULT_wxUSE_DMALLOC=no | |
1548 | DEFAULT_wxUSE_APPLE_IEEE=yes | |
1549 | ||
1550 | DEFAULT_wxUSE_LOG=yes | |
d73be714 VZ |
1551 | DEFAULT_wxUSE_LOGWINDOW=yes |
1552 | DEFAULT_wxUSE_LOGGUI=yes | |
10f2d63a VZ |
1553 | |
1554 | DEFAULT_wxUSE_GUI=yes | |
1555 | ||
831b3152 | 1556 | DEFAULT_wxUSE_REGEX=yes |
10f2d63a VZ |
1557 | DEFAULT_wxUSE_ZLIB=yes |
1558 | DEFAULT_wxUSE_LIBPNG=yes | |
1559 | DEFAULT_wxUSE_LIBJPEG=yes | |
b47c832e | 1560 | DEFAULT_wxUSE_LIBTIFF=yes |
16b52fa1 | 1561 | DEFAULT_wxUSE_ODBC=no |
3fed1840 | 1562 | DEFAULT_wxUSE_FREETYPE=no |
bdad4e7e | 1563 | DEFAULT_wxUSE_OPENGL=no |
10f2d63a | 1564 | |
eb4efbdc | 1565 | DEFAULT_wxUSE_ON_FATAL_EXCEPTION=yes |
4f3c5f06 | 1566 | DEFAULT_wxUSE_SNGLINST_CHECKER=yes |
10f2d63a | 1567 | DEFAULT_wxUSE_STD_IOSTREAM=no |
1e6feb95 VZ |
1568 | DEFAULT_wxUSE_CMDLINE_PARSER=yes |
1569 | DEFAULT_wxUSE_DATETIME=yes | |
1570 | DEFAULT_wxUSE_TIMEDATE=no | |
1571 | DEFAULT_wxUSE_TIMER=yes | |
1572 | DEFAULT_wxUSE_STOPWATCH=yes | |
10f2d63a | 1573 | DEFAULT_wxUSE_FILE=yes |
1e6feb95 | 1574 | DEFAULT_wxUSE_FFILE=yes |
10f2d63a | 1575 | DEFAULT_wxUSE_TEXTFILE=yes |
10f2d63a VZ |
1576 | DEFAULT_wxUSE_WAVE=no |
1577 | DEFAULT_wxUSE_INTL=yes | |
1578 | DEFAULT_wxUSE_CONFIG=yes | |
1e6feb95 | 1579 | DEFAULT_wxUSE_FONTMAP=yes |
10f2d63a VZ |
1580 | DEFAULT_wxUSE_STREAMS=yes |
1581 | DEFAULT_wxUSE_SOCKETS=yes | |
1582 | DEFAULT_wxUSE_DIALUP_MANAGER=yes | |
1583 | DEFAULT_wxUSE_SERIAL=yes | |
1584 | DEFAULT_wxUSE_JOYSTICK=yes | |
1585 | DEFAULT_wxUSE_DYNLIB_CLASS=yes | |
b685cd9b | 1586 | DEFAULT_wxUSE_LONGLONG=yes |
e8f65ba6 | 1587 | DEFAULT_wxUSE_GEOMETRY=yes |
10f2d63a VZ |
1588 | |
1589 | DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes | |
1590 | DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes | |
1591 | DEFAULT_wxUSE_POSTSCRIPT=yes | |
1592 | ||
1593 | DEFAULT_wxUSE_X_RESOURCES=no | |
1594 | DEFAULT_wxUSE_CLIPBOARD=yes | |
1595 | DEFAULT_wxUSE_TOOLTIPS=yes | |
1596 | DEFAULT_wxUSE_DRAG_AND_DROP=yes | |
24fd6d87 | 1597 | DEFAULT_wxUSE_DRAGIMAGE=yes |
10f2d63a VZ |
1598 | DEFAULT_wxUSE_SPLINES=yes |
1599 | ||
1600 | DEFAULT_wxUSE_MDI_ARCHITECTURE=yes | |
1601 | DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes | |
1602 | DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes | |
1603 | ||
1604 | DEFAULT_wxUSE_PROLOGIO=yes | |
1605 | DEFAULT_wxUSE_RESOURCES=yes | |
1606 | DEFAULT_wxUSE_CONSTRAINTS=yes | |
1607 | DEFAULT_wxUSE_IPC=yes | |
1608 | DEFAULT_wxUSE_HELP=yes | |
29fd3c0c | 1609 | DEFAULT_wxUSE_MS_HTML_HELP=yes |
3379ed37 | 1610 | DEFAULT_wxUSE_WXHTML_HELP=yes |
24176f2c | 1611 | DEFAULT_wxUSE_TREELAYOUT=yes |
10f2d63a | 1612 | DEFAULT_wxUSE_METAFILE=yes |
1e6feb95 | 1613 | DEFAULT_wxUSE_MIMETYPE=yes |
3e44f09d | 1614 | DEFAULT_wxUSE_SYSTEM_OPTIONS=yes |
10f2d63a VZ |
1615 | |
1616 | DEFAULT_wxUSE_COMMONDLGS=yes | |
1e6feb95 VZ |
1617 | DEFAULT_wxUSE_CHOICEDLG=yes |
1618 | DEFAULT_wxUSE_COLOURDLG=yes | |
10f2d63a | 1619 | DEFAULT_wxUSE_DIRDLG=yes |
1e6feb95 | 1620 | DEFAULT_wxUSE_FILEDLG=yes |
8db37e06 | 1621 | DEFAULT_wxUSE_FINDREPLDLG=yes |
1e6feb95 VZ |
1622 | DEFAULT_wxUSE_FONTDLG=yes |
1623 | DEFAULT_wxUSE_MSGDLG=yes | |
1624 | DEFAULT_wxUSE_NUMBERDLG=yes | |
10f2d63a | 1625 | DEFAULT_wxUSE_TEXTDLG=yes |
cbca9943 | 1626 | DEFAULT_wxUSE_SPLASH=yes |
10f2d63a VZ |
1627 | DEFAULT_wxUSE_STARTUP_TIPS=yes |
1628 | DEFAULT_wxUSE_PROGRESSDLG=yes | |
f33f19dd VZ |
1629 | DEFAULT_wxUSE_WIZARDDLG=yes |
1630 | ||
1e6feb95 | 1631 | DEFAULT_wxUSE_MENUS=yes |
10f2d63a VZ |
1632 | DEFAULT_wxUSE_MINIFRAME=yes |
1633 | DEFAULT_wxUSE_HTML=yes | |
24528b0c | 1634 | DEFAULT_wxUSE_FILESYSTEM=yes |
10f2d63a VZ |
1635 | DEFAULT_wxUSE_FS_INET=yes |
1636 | DEFAULT_wxUSE_FS_ZIP=yes | |
1637 | DEFAULT_wxUSE_BUSYINFO=yes | |
1638 | DEFAULT_wxUSE_ZIPSTREAM=yes | |
1639 | DEFAULT_wxUSE_VALIDATORS=yes | |
1640 | ||
1641 | DEFAULT_wxUSE_ACCEL=yes | |
1e6feb95 | 1642 | DEFAULT_wxUSE_BUTTON=yes |
10f2d63a | 1643 | DEFAULT_wxUSE_BMPBUTTON=yes |
1e6feb95 VZ |
1644 | DEFAULT_wxUSE_CALCTRL=yes |
1645 | DEFAULT_wxUSE_CARET=yes | |
10f2d63a VZ |
1646 | DEFAULT_wxUSE_CHECKBOX=yes |
1647 | DEFAULT_wxUSE_CHECKLST=yes | |
1648 | DEFAULT_wxUSE_CHOICE=yes | |
1649 | DEFAULT_wxUSE_COMBOBOX=yes | |
1650 | DEFAULT_wxUSE_GAUGE=yes | |
1651 | DEFAULT_wxUSE_GRID=yes | |
cc977e5f | 1652 | DEFAULT_wxUSE_NEW_GRID=yes |
10f2d63a VZ |
1653 | DEFAULT_wxUSE_IMAGLIST=yes |
1654 | DEFAULT_wxUSE_LISTBOX=yes | |
1655 | DEFAULT_wxUSE_LISTCTRL=yes | |
1656 | DEFAULT_wxUSE_NOTEBOOK=yes | |
24176f2c | 1657 | DEFAULT_wxUSE_PROPSHEET=yes |
10f2d63a VZ |
1658 | DEFAULT_wxUSE_RADIOBOX=yes |
1659 | DEFAULT_wxUSE_RADIOBTN=yes | |
1660 | DEFAULT_wxUSE_SASH=yes | |
1661 | DEFAULT_wxUSE_SCROLLBAR=yes | |
1662 | DEFAULT_wxUSE_SLIDER=yes | |
1663 | DEFAULT_wxUSE_SPINBTN=yes | |
56cfaa52 | 1664 | DEFAULT_wxUSE_SPINCTRL=yes |
10f2d63a VZ |
1665 | DEFAULT_wxUSE_SPLITTER=yes |
1666 | DEFAULT_wxUSE_STATBMP=yes | |
1667 | DEFAULT_wxUSE_STATBOX=yes | |
1668 | DEFAULT_wxUSE_STATLINE=yes | |
1e6feb95 | 1669 | DEFAULT_wxUSE_STATTEXT=yes |
10f2d63a VZ |
1670 | DEFAULT_wxUSE_STATUSBAR=yes |
1671 | DEFAULT_wxUSE_TABDIALOG=no | |
1e6feb95 | 1672 | DEFAULT_wxUSE_TEXTCTRL=yes |
1db8dc4a | 1673 | DEFAULT_wxUSE_TOGGLEBTN=yes |
10f2d63a | 1674 | DEFAULT_wxUSE_TOOLBAR=yes |
360d6699 VZ |
1675 | DEFAULT_wxUSE_TOOLBAR_NATIVE=yes |
1676 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes | |
10f2d63a | 1677 | DEFAULT_wxUSE_TREECTRL=yes |
9f41d601 | 1678 | DEFAULT_wxUSE_POPUPWIN=yes |
10f2d63a VZ |
1679 | |
1680 | DEFAULT_wxUSE_UNICODE=no | |
1681 | DEFAULT_wxUSE_WCSRTOMBS=no | |
1682 | ||
0046ff7c | 1683 | DEFAULT_wxUSE_IMAGE=yes |
10f2d63a VZ |
1684 | DEFAULT_wxUSE_GIF=yes |
1685 | DEFAULT_wxUSE_PCX=yes | |
1686 | DEFAULT_wxUSE_PNM=yes | |
0046ff7c | 1687 | DEFAULT_wxUSE_XPM=yes |
10f2d63a VZ |
1688 | fi |
1689 | ||
698dcdb6 VZ |
1690 | |
1691 | ||
10f2d63a VZ |
1692 | for toolkit in `echo $ALL_TOOLKITS`; do |
1693 | LINE=`grep "wxUSE_$toolkit" ${wx_arg_cache_file}` | |
1694 | if test "x$LINE" != x ; then | |
1695 | has_toolkit_in_cache=1 | |
1696 | eval "DEFAULT_$LINE" | |
1697 | eval "CACHE_$toolkit=1" | |
1698 | fi | |
1699 | done | |
1700 | ||
698dcdb6 VZ |
1701 | |
1702 | ||
1703 | echo $ac_n "checking for --enable-gui""... $ac_c" 1>&6 | |
b3e8d00a | 1704 | echo "configure:1705: checking for --enable-gui" >&5 |
10f2d63a VZ |
1705 | no_cache=0 |
1706 | # Check whether --enable-gui or --disable-gui was given. | |
1707 | if test "${enable_gui+set}" = set; then | |
1708 | enableval="$enable_gui" | |
698dcdb6 | 1709 | |
10f2d63a VZ |
1710 | if test "$enableval" = yes; then |
1711 | ac_cv_use_gui='wxUSE_GUI=yes' | |
1712 | else | |
1713 | ac_cv_use_gui='wxUSE_GUI=no' | |
1714 | fi | |
698dcdb6 | 1715 | |
10f2d63a | 1716 | else |
698dcdb6 | 1717 | |
10f2d63a VZ |
1718 | LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}` |
1719 | if test "x$LINE" != x ; then | |
1720 | eval "DEFAULT_$LINE" | |
1721 | else | |
1722 | no_cache=1 | |
1723 | fi | |
1724 | ||
1725 | ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI | |
698dcdb6 VZ |
1726 | |
1727 | fi | |
10f2d63a VZ |
1728 | |
1729 | ||
1730 | eval "$ac_cv_use_gui" | |
1731 | if test "$no_cache" != 1; then | |
1732 | echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp | |
1733 | fi | |
1734 | ||
1735 | if test "$wxUSE_GUI" = yes; then | |
698dcdb6 | 1736 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 1737 | else |
698dcdb6 | 1738 | echo "$ac_t""no" 1>&6 |
10f2d63a | 1739 | fi |
698dcdb6 | 1740 | |
10f2d63a | 1741 | |
b12915c1 | 1742 | if test "$wxUSE_GUI" = "yes"; then |
10f2d63a | 1743 | |
1e6feb95 VZ |
1744 | |
1745 | echo $ac_n "checking for --enable-universal""... $ac_c" 1>&6 | |
b3e8d00a | 1746 | echo "configure:1747: checking for --enable-universal" >&5 |
1e6feb95 VZ |
1747 | no_cache=0 |
1748 | # Check whether --enable-universal or --disable-universal was given. | |
1749 | if test "${enable_universal+set}" = set; then | |
1750 | enableval="$enable_universal" | |
1751 | ||
1752 | if test "$enableval" = yes; then | |
1753 | ac_cv_use_universal='wxUSE_UNIVERSAL=yes' | |
1754 | else | |
1755 | ac_cv_use_universal='wxUSE_UNIVERSAL=no' | |
1756 | fi | |
1757 | ||
1758 | else | |
1759 | ||
1760 | LINE=`grep "wxUSE_UNIVERSAL" ${wx_arg_cache_file}` | |
1761 | if test "x$LINE" != x ; then | |
1762 | eval "DEFAULT_$LINE" | |
1763 | else | |
1764 | no_cache=1 | |
1765 | fi | |
1766 | ||
1767 | ac_cv_use_universal='wxUSE_UNIVERSAL='$DEFAULT_wxUSE_UNIVERSAL | |
1768 | ||
1769 | fi | |
1770 | ||
1771 | ||
1772 | eval "$ac_cv_use_universal" | |
1773 | if test "$no_cache" != 1; then | |
1774 | echo $ac_cv_use_universal >> ${wx_arg_cache_file}.tmp | |
1775 | fi | |
1776 | ||
1777 | if test "$wxUSE_UNIVERSAL" = yes; then | |
1778 | echo "$ac_t""yes" 1>&6 | |
1779 | else | |
1780 | echo "$ac_t""no" 1>&6 | |
1781 | fi | |
1782 | ||
10f2d63a VZ |
1783 | # Check whether --with-gtk or --without-gtk was given. |
1784 | if test "${with_gtk+set}" = set; then | |
1785 | withval="$with_gtk" | |
1786 | wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1 | |
698dcdb6 | 1787 | fi |
10f2d63a VZ |
1788 | |
1789 | # Check whether --with-motif or --without-motif was given. | |
1790 | if test "${with_motif+set}" = set; then | |
1791 | withval="$with_motif" | |
1792 | wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1 | |
698dcdb6 | 1793 | fi |
10f2d63a | 1794 | |
b4085ce6 GD |
1795 | # Check whether --with-mac or --without-mac was given. |
1796 | if test "${with_mac+set}" = set; then | |
1797 | withval="$with_mac" | |
1798 | wxUSE_MAC="$withval" TOOLKIT_GIVEN=1 | |
698dcdb6 | 1799 | fi |
b4085ce6 | 1800 | |
10f2d63a VZ |
1801 | # Check whether --with-wine or --without-wine was given. |
1802 | if test "${with_wine+set}" = set; then | |
1803 | withval="$with_wine" | |
1804 | wxUSE_WINE="$withval" CACHE_WINE=1 TOOLKIT_GIVEN=1 | |
698dcdb6 | 1805 | fi |
10f2d63a VZ |
1806 | |
1807 | # Check whether --with-cygwin or --without-cygwin was given. | |
1808 | if test "${with_cygwin+set}" = set; then | |
1809 | withval="$with_cygwin" | |
1810 | wxUSE_CYGWIN="$withval" CACHE_CYGWIN=1 TOOLKIT_GIVEN=1 | |
698dcdb6 | 1811 | fi |
10f2d63a VZ |
1812 | |
1813 | # Check whether --with-mingw or --without-mingw was given. | |
1814 | if test "${with_mingw+set}" = set; then | |
1815 | withval="$with_mingw" | |
1816 | wxUSE_MINGW="$withval" CACHE_MINGW=1 TOOLKIT_GIVEN=1 | |
698dcdb6 | 1817 | fi |
10f2d63a | 1818 | |
e07802fc VZ |
1819 | # Check whether --with-pm or --without-pm was given. |
1820 | if test "${with_pm+set}" = set; then | |
1821 | withval="$with_pm" | |
1822 | wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1 | |
698dcdb6 VZ |
1823 | fi |
1824 | ||
1e6feb95 VZ |
1825 | # Check whether --with-mgl or --without-mgl was given. |
1826 | if test "${with_mgl+set}" = set; then | |
1827 | withval="$with_mgl" | |
1828 | wxUSE_MGL="$withval" CACHE_MGL=1 TOOLKIT_GIVEN=1 | |
1829 | fi | |
1830 | ||
10f2d63a | 1831 | |
8168de4c VZ |
1832 | # Check whether --enable-gtk2 or --disable-gtk2 was given. |
1833 | if test "${enable_gtk2+set}" = set; then | |
1834 | enableval="$enable_gtk2" | |
1835 | wxUSE_GTK2=1 | |
10f2d63a | 1836 | else |
8168de4c | 1837 | wxUSE_GTK2=0 |
698dcdb6 VZ |
1838 | fi |
1839 | ||
703e0a69 | 1840 | |
1e487827 | 1841 | |
698dcdb6 | 1842 | echo $ac_n "checking for --with-libpng""... $ac_c" 1>&6 |
b3e8d00a | 1843 | echo "configure:1844: checking for --with-libpng" >&5 |
698dcdb6 VZ |
1844 | no_cache=0 |
1845 | # Check whether --with-libpng or --without-libpng was given. | |
b12915c1 VZ |
1846 | if test "${with_libpng+set}" = set; then |
1847 | withval="$with_libpng" | |
698dcdb6 | 1848 | |
10f2d63a | 1849 | if test "$withval" = yes; then |
b12915c1 | 1850 | ac_cv_use_libpng='wxUSE_LIBPNG=yes' |
422107f9 | 1851 | elif test "$withval" = no; then |
b12915c1 | 1852 | ac_cv_use_libpng='wxUSE_LIBPNG=no' |
422107f9 VZ |
1853 | elif test "$withval" = sys; then |
1854 | ac_cv_use_libpng='wxUSE_LIBPNG=sys' | |
1855 | else | |
698dcdb6 | 1856 | { echo "configure: error: Invalid value for --with-libpng: should be yes, no or sys" 1>&2; exit 1; } |
10f2d63a | 1857 | fi |
698dcdb6 | 1858 | |
10f2d63a | 1859 | else |
698dcdb6 | 1860 | |
b12915c1 | 1861 | LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}` |
10f2d63a VZ |
1862 | if test "x$LINE" != x ; then |
1863 | eval "DEFAULT_$LINE" | |
1864 | else | |
1865 | no_cache=1 | |
1866 | fi | |
1867 | ||
b12915c1 | 1868 | ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG |
698dcdb6 VZ |
1869 | |
1870 | fi | |
10f2d63a VZ |
1871 | |
1872 | ||
b12915c1 | 1873 | eval "$ac_cv_use_libpng" |
10f2d63a | 1874 | if test "$no_cache" != 1; then |
b12915c1 | 1875 | echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
1876 | fi |
1877 | ||
b12915c1 | 1878 | if test "$wxUSE_LIBPNG" = yes; then |
698dcdb6 | 1879 | echo "$ac_t""yes" 1>&6 |
422107f9 | 1880 | elif test "$wxUSE_LIBPNG" = no; then |
698dcdb6 | 1881 | echo "$ac_t""no" 1>&6 |
422107f9 | 1882 | elif test "$wxUSE_LIBPNG" = sys; then |
698dcdb6 | 1883 | echo "$ac_t""system version" 1>&6 |
422107f9 | 1884 | else |
698dcdb6 | 1885 | { echo "configure: error: Invalid value for --with-libpng: should be yes, no or sys" 1>&2; exit 1; } |
10f2d63a | 1886 | fi |
698dcdb6 | 1887 | |
10f2d63a | 1888 | |
698dcdb6 | 1889 | echo $ac_n "checking for --with-libjpeg""... $ac_c" 1>&6 |
b3e8d00a | 1890 | echo "configure:1891: checking for --with-libjpeg" >&5 |
10f2d63a | 1891 | no_cache=0 |
698dcdb6 | 1892 | # Check whether --with-libjpeg or --without-libjpeg was given. |
b12915c1 VZ |
1893 | if test "${with_libjpeg+set}" = set; then |
1894 | withval="$with_libjpeg" | |
698dcdb6 | 1895 | |
10f2d63a | 1896 | if test "$withval" = yes; then |
b12915c1 | 1897 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes' |
422107f9 | 1898 | elif test "$withval" = no; then |
b12915c1 | 1899 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=no' |
422107f9 VZ |
1900 | elif test "$withval" = sys; then |
1901 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=sys' | |
1902 | else | |
698dcdb6 | 1903 | { echo "configure: error: Invalid value for --with-libjpeg: should be yes, no or sys" 1>&2; exit 1; } |
10f2d63a | 1904 | fi |
698dcdb6 | 1905 | |
10f2d63a | 1906 | else |
698dcdb6 | 1907 | |
b12915c1 | 1908 | LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}` |
10f2d63a VZ |
1909 | if test "x$LINE" != x ; then |
1910 | eval "DEFAULT_$LINE" | |
1911 | else | |
1912 | no_cache=1 | |
1913 | fi | |
1914 | ||
b12915c1 | 1915 | ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG |
698dcdb6 VZ |
1916 | |
1917 | fi | |
10f2d63a VZ |
1918 | |
1919 | ||
b12915c1 | 1920 | eval "$ac_cv_use_libjpeg" |
10f2d63a | 1921 | if test "$no_cache" != 1; then |
b12915c1 | 1922 | echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
1923 | fi |
1924 | ||
b12915c1 | 1925 | if test "$wxUSE_LIBJPEG" = yes; then |
698dcdb6 | 1926 | echo "$ac_t""yes" 1>&6 |
422107f9 | 1927 | elif test "$wxUSE_LIBJPEG" = no; then |
698dcdb6 | 1928 | echo "$ac_t""no" 1>&6 |
422107f9 | 1929 | elif test "$wxUSE_LIBJPEG" = sys; then |
698dcdb6 | 1930 | echo "$ac_t""system version" 1>&6 |
422107f9 | 1931 | else |
698dcdb6 | 1932 | { echo "configure: error: Invalid value for --with-libjpeg: should be yes, no or sys" 1>&2; exit 1; } |
10f2d63a | 1933 | fi |
698dcdb6 | 1934 | |
10f2d63a | 1935 | |
698dcdb6 | 1936 | echo $ac_n "checking for --with-libtiff""... $ac_c" 1>&6 |
b3e8d00a | 1937 | echo "configure:1938: checking for --with-libtiff" >&5 |
10f2d63a | 1938 | no_cache=0 |
698dcdb6 | 1939 | # Check whether --with-libtiff or --without-libtiff was given. |
b12915c1 VZ |
1940 | if test "${with_libtiff+set}" = set; then |
1941 | withval="$with_libtiff" | |
698dcdb6 | 1942 | |
10f2d63a | 1943 | if test "$withval" = yes; then |
b12915c1 | 1944 | ac_cv_use_libtiff='wxUSE_LIBTIFF=yes' |
0dcf9893 | 1945 | elif test "$withval" = no; then |
b12915c1 | 1946 | ac_cv_use_libtiff='wxUSE_LIBTIFF=no' |
0dcf9893 VZ |
1947 | elif test "$withval" = sys; then |
1948 | ac_cv_use_libtiff='wxUSE_LIBTIFF=sys' | |
1949 | else | |
698dcdb6 | 1950 | { echo "configure: error: Invalid value for --with-libtiff: should be yes, no or sys" 1>&2; exit 1; } |
10f2d63a | 1951 | fi |
698dcdb6 | 1952 | |
10f2d63a | 1953 | else |
698dcdb6 | 1954 | |
b12915c1 | 1955 | LINE=`grep "wxUSE_LIBTIFF" ${wx_arg_cache_file}` |
10f2d63a VZ |
1956 | if test "x$LINE" != x ; then |
1957 | eval "DEFAULT_$LINE" | |
1958 | else | |
1959 | no_cache=1 | |
1960 | fi | |
1961 | ||
b12915c1 | 1962 | ac_cv_use_libtiff='wxUSE_LIBTIFF='$DEFAULT_wxUSE_LIBTIFF |
698dcdb6 VZ |
1963 | |
1964 | fi | |
10f2d63a VZ |
1965 | |
1966 | ||
b12915c1 | 1967 | eval "$ac_cv_use_libtiff" |
10f2d63a | 1968 | if test "$no_cache" != 1; then |
b12915c1 | 1969 | echo $ac_cv_use_libtiff >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
1970 | fi |
1971 | ||
b12915c1 | 1972 | if test "$wxUSE_LIBTIFF" = yes; then |
698dcdb6 | 1973 | echo "$ac_t""yes" 1>&6 |
0dcf9893 | 1974 | elif test "$wxUSE_LIBTIFF" = no; then |
698dcdb6 | 1975 | echo "$ac_t""no" 1>&6 |
0dcf9893 | 1976 | elif test "$wxUSE_LIBTIFF" = sys; then |
698dcdb6 | 1977 | echo "$ac_t""system version" 1>&6 |
0dcf9893 | 1978 | else |
698dcdb6 | 1979 | { echo "configure: error: Invalid value for --with-libtiff: should be yes, no or sys" 1>&2; exit 1; } |
10f2d63a | 1980 | fi |
698dcdb6 | 1981 | |
10f2d63a | 1982 | |
698dcdb6 | 1983 | echo $ac_n "checking for --with-freetype""... $ac_c" 1>&6 |
b3e8d00a | 1984 | echo "configure:1985: checking for --with-freetype" >&5 |
3fed1840 | 1985 | no_cache=0 |
698dcdb6 | 1986 | # Check whether --with-freetype or --without-freetype was given. |
3fed1840 RR |
1987 | if test "${with_freetype+set}" = set; then |
1988 | withval="$with_freetype" | |
698dcdb6 | 1989 | |
3fed1840 RR |
1990 | if test "$withval" = yes; then |
1991 | ac_cv_use_freetype='wxUSE_FREETYPE=yes' | |
1992 | elif test "$withval" = no; then | |
1993 | ac_cv_use_freetype='wxUSE_FREETYPE=no' | |
1994 | elif test "$withval" = sys; then | |
1995 | ac_cv_use_freetype='wxUSE_FREETYPE=sys' | |
1996 | else | |
698dcdb6 | 1997 | { echo "configure: error: Invalid value for --with-freetype: should be yes, no or sys" 1>&2; exit 1; } |
3fed1840 | 1998 | fi |
698dcdb6 | 1999 | |
3fed1840 | 2000 | else |
698dcdb6 | 2001 | |
3fed1840 RR |
2002 | LINE=`grep "wxUSE_FREETYPE" ${wx_arg_cache_file}` |
2003 | if test "x$LINE" != x ; then | |
2004 | eval "DEFAULT_$LINE" | |
2005 | else | |
2006 | no_cache=1 | |
2007 | fi | |
2008 | ||
2009 | ac_cv_use_freetype='wxUSE_FREETYPE='$DEFAULT_wxUSE_FREETYPE | |
698dcdb6 VZ |
2010 | |
2011 | fi | |
3fed1840 RR |
2012 | |
2013 | ||
2014 | eval "$ac_cv_use_freetype" | |
2015 | if test "$no_cache" != 1; then | |
2016 | echo $ac_cv_use_freetype >> ${wx_arg_cache_file}.tmp | |
2017 | fi | |
2018 | ||
2019 | if test "$wxUSE_FREETYPE" = yes; then | |
698dcdb6 | 2020 | echo "$ac_t""yes" 1>&6 |
3fed1840 | 2021 | elif test "$wxUSE_FREETYPE" = no; then |
698dcdb6 | 2022 | echo "$ac_t""no" 1>&6 |
3fed1840 | 2023 | elif test "$wxUSE_FREETYPE" = sys; then |
698dcdb6 | 2024 | echo "$ac_t""system version" 1>&6 |
3fed1840 | 2025 | else |
698dcdb6 | 2026 | { echo "configure: error: Invalid value for --with-freetype: should be yes, no or sys" 1>&2; exit 1; } |
3fed1840 | 2027 | fi |
698dcdb6 | 2028 | |
3fed1840 | 2029 | |
698dcdb6 | 2030 | echo $ac_n "checking for --with-opengl""... $ac_c" 1>&6 |
b3e8d00a | 2031 | echo "configure:2032: checking for --with-opengl" >&5 |
10f2d63a | 2032 | no_cache=0 |
698dcdb6 | 2033 | # Check whether --with-opengl or --without-opengl was given. |
b12915c1 VZ |
2034 | if test "${with_opengl+set}" = set; then |
2035 | withval="$with_opengl" | |
698dcdb6 | 2036 | |
10f2d63a | 2037 | if test "$withval" = yes; then |
b12915c1 | 2038 | ac_cv_use_opengl='wxUSE_OPENGL=yes' |
10f2d63a | 2039 | else |
b12915c1 | 2040 | ac_cv_use_opengl='wxUSE_OPENGL=no' |
10f2d63a | 2041 | fi |
698dcdb6 | 2042 | |
10f2d63a | 2043 | else |
698dcdb6 | 2044 | |
b12915c1 | 2045 | LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}` |
10f2d63a VZ |
2046 | if test "x$LINE" != x ; then |
2047 | eval "DEFAULT_$LINE" | |
2048 | else | |
2049 | no_cache=1 | |
2050 | fi | |
2051 | ||
b12915c1 | 2052 | ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL |
698dcdb6 VZ |
2053 | |
2054 | fi | |
10f2d63a VZ |
2055 | |
2056 | ||
b12915c1 | 2057 | eval "$ac_cv_use_opengl" |
10f2d63a | 2058 | if test "$no_cache" != 1; then |
b12915c1 | 2059 | echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
2060 | fi |
2061 | ||
b12915c1 | 2062 | if test "$wxUSE_OPENGL" = yes; then |
698dcdb6 | 2063 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2064 | else |
698dcdb6 | 2065 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2066 | fi |
698dcdb6 | 2067 | |
10f2d63a | 2068 | |
b12915c1 VZ |
2069 | fi |
2070 | ||
1e487827 | 2071 | |
698dcdb6 | 2072 | echo $ac_n "checking for --with-dmalloc""... $ac_c" 1>&6 |
b3e8d00a | 2073 | echo "configure:2074: checking for --with-dmalloc" >&5 |
698dcdb6 VZ |
2074 | no_cache=0 |
2075 | # Check whether --with-dmalloc or --without-dmalloc was given. | |
b12915c1 VZ |
2076 | if test "${with_dmalloc+set}" = set; then |
2077 | withval="$with_dmalloc" | |
698dcdb6 | 2078 | |
c7a2bf27 | 2079 | if test "$withval" = yes; then |
b12915c1 | 2080 | ac_cv_use_dmalloc='wxUSE_DMALLOC=yes' |
c7a2bf27 | 2081 | else |
b12915c1 | 2082 | ac_cv_use_dmalloc='wxUSE_DMALLOC=no' |
c7a2bf27 | 2083 | fi |
698dcdb6 | 2084 | |
c7a2bf27 | 2085 | else |
698dcdb6 | 2086 | |
b12915c1 | 2087 | LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}` |
c7a2bf27 RR |
2088 | if test "x$LINE" != x ; then |
2089 | eval "DEFAULT_$LINE" | |
2090 | else | |
2091 | no_cache=1 | |
2092 | fi | |
2093 | ||
b12915c1 | 2094 | ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC |
698dcdb6 VZ |
2095 | |
2096 | fi | |
c7a2bf27 RR |
2097 | |
2098 | ||
b12915c1 | 2099 | eval "$ac_cv_use_dmalloc" |
c7a2bf27 | 2100 | if test "$no_cache" != 1; then |
b12915c1 | 2101 | echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp |
c7a2bf27 RR |
2102 | fi |
2103 | ||
b12915c1 | 2104 | if test "$wxUSE_DMALLOC" = yes; then |
698dcdb6 | 2105 | echo "$ac_t""yes" 1>&6 |
c7a2bf27 | 2106 | else |
698dcdb6 | 2107 | echo "$ac_t""no" 1>&6 |
c7a2bf27 | 2108 | fi |
698dcdb6 | 2109 | |
c7a2bf27 | 2110 | |
3e44f09d | 2111 | echo $ac_n "checking for --with-regex""... $ac_c" 1>&6 |
b3e8d00a | 2112 | echo "configure:2113: checking for --with-regex" >&5 |
3e44f09d VZ |
2113 | no_cache=0 |
2114 | # Check whether --with-regex or --without-regex was given. | |
2115 | if test "${with_regex+set}" = set; then | |
2116 | withval="$with_regex" | |
2117 | ||
2118 | if test "$withval" = yes; then | |
2119 | ac_cv_use_regex='wxUSE_REGEX=yes' | |
2120 | elif test "$withval" = no; then | |
2121 | ac_cv_use_regex='wxUSE_REGEX=no' | |
2122 | elif test "$withval" = sys; then | |
2123 | ac_cv_use_regex='wxUSE_REGEX=sys' | |
2124 | else | |
2125 | { echo "configure: error: Invalid value for --with-regex: should be yes, no or sys" 1>&2; exit 1; } | |
2126 | fi | |
2127 | ||
2128 | else | |
2129 | ||
2130 | LINE=`grep "wxUSE_REGEX" ${wx_arg_cache_file}` | |
2131 | if test "x$LINE" != x ; then | |
2132 | eval "DEFAULT_$LINE" | |
2133 | else | |
2134 | no_cache=1 | |
2135 | fi | |
2136 | ||
2137 | ac_cv_use_regex='wxUSE_REGEX='$DEFAULT_wxUSE_REGEX | |
2138 | ||
2139 | fi | |
2140 | ||
2141 | ||
2142 | eval "$ac_cv_use_regex" | |
2143 | if test "$no_cache" != 1; then | |
2144 | echo $ac_cv_use_regex >> ${wx_arg_cache_file}.tmp | |
2145 | fi | |
2146 | ||
2147 | if test "$wxUSE_REGEX" = yes; then | |
2148 | echo "$ac_t""yes" 1>&6 | |
2149 | elif test "$wxUSE_REGEX" = no; then | |
2150 | echo "$ac_t""no" 1>&6 | |
2151 | elif test "$wxUSE_REGEX" = sys; then | |
2152 | echo "$ac_t""system version" 1>&6 | |
2153 | else | |
2154 | { echo "configure: error: Invalid value for --with-regex: should be yes, no or sys" 1>&2; exit 1; } | |
2155 | fi | |
2156 | ||
2157 | ||
698dcdb6 | 2158 | echo $ac_n "checking for --with-zlib""... $ac_c" 1>&6 |
b3e8d00a | 2159 | echo "configure:2160: checking for --with-zlib" >&5 |
10f2d63a | 2160 | no_cache=0 |
698dcdb6 | 2161 | # Check whether --with-zlib or --without-zlib was given. |
b12915c1 VZ |
2162 | if test "${with_zlib+set}" = set; then |
2163 | withval="$with_zlib" | |
698dcdb6 | 2164 | |
10f2d63a | 2165 | if test "$withval" = yes; then |
b12915c1 | 2166 | ac_cv_use_zlib='wxUSE_ZLIB=yes' |
422107f9 | 2167 | elif test "$withval" = no; then |
b12915c1 | 2168 | ac_cv_use_zlib='wxUSE_ZLIB=no' |
422107f9 VZ |
2169 | elif test "$withval" = sys; then |
2170 | ac_cv_use_zlib='wxUSE_ZLIB=sys' | |
2171 | else | |
698dcdb6 | 2172 | { echo "configure: error: Invalid value for --with-zlib: should be yes, no or sys" 1>&2; exit 1; } |
10f2d63a | 2173 | fi |
698dcdb6 | 2174 | |
10f2d63a | 2175 | else |
698dcdb6 | 2176 | |
b12915c1 | 2177 | LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}` |
10f2d63a VZ |
2178 | if test "x$LINE" != x ; then |
2179 | eval "DEFAULT_$LINE" | |
2180 | else | |
2181 | no_cache=1 | |
2182 | fi | |
2183 | ||
b12915c1 | 2184 | ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB |
698dcdb6 VZ |
2185 | |
2186 | fi | |
10f2d63a VZ |
2187 | |
2188 | ||
b12915c1 | 2189 | eval "$ac_cv_use_zlib" |
10f2d63a | 2190 | if test "$no_cache" != 1; then |
b12915c1 | 2191 | echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
2192 | fi |
2193 | ||
b12915c1 | 2194 | if test "$wxUSE_ZLIB" = yes; then |
698dcdb6 | 2195 | echo "$ac_t""yes" 1>&6 |
422107f9 | 2196 | elif test "$wxUSE_ZLIB" = no; then |
698dcdb6 | 2197 | echo "$ac_t""no" 1>&6 |
422107f9 | 2198 | elif test "$wxUSE_ZLIB" = sys; then |
698dcdb6 | 2199 | echo "$ac_t""system version" 1>&6 |
422107f9 | 2200 | else |
698dcdb6 | 2201 | { echo "configure: error: Invalid value for --with-zlib: should be yes, no or sys" 1>&2; exit 1; } |
10f2d63a | 2202 | fi |
698dcdb6 | 2203 | |
10f2d63a | 2204 | |
698dcdb6 | 2205 | echo $ac_n "checking for --with-odbc""... $ac_c" 1>&6 |
b3e8d00a | 2206 | echo "configure:2207: checking for --with-odbc" >&5 |
10f2d63a | 2207 | no_cache=0 |
698dcdb6 | 2208 | # Check whether --with-odbc or --without-odbc was given. |
10f2d63a VZ |
2209 | if test "${with_odbc+set}" = set; then |
2210 | withval="$with_odbc" | |
698dcdb6 | 2211 | |
10f2d63a VZ |
2212 | if test "$withval" = yes; then |
2213 | ac_cv_use_odbc='wxUSE_ODBC=yes' | |
2214 | else | |
2215 | ac_cv_use_odbc='wxUSE_ODBC=no' | |
2216 | fi | |
698dcdb6 | 2217 | |
10f2d63a | 2218 | else |
698dcdb6 | 2219 | |
10f2d63a VZ |
2220 | LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}` |
2221 | if test "x$LINE" != x ; then | |
2222 | eval "DEFAULT_$LINE" | |
2223 | else | |
2224 | no_cache=1 | |
2225 | fi | |
2226 | ||
2227 | ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC | |
698dcdb6 VZ |
2228 | |
2229 | fi | |
10f2d63a VZ |
2230 | |
2231 | ||
2232 | eval "$ac_cv_use_odbc" | |
2233 | if test "$no_cache" != 1; then | |
2234 | echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp | |
2235 | fi | |
2236 | ||
2237 | if test "$wxUSE_ODBC" = yes; then | |
698dcdb6 | 2238 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2239 | else |
698dcdb6 | 2240 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2241 | fi |
698dcdb6 VZ |
2242 | |
2243 | ||
10f2d63a | 2244 | |
698dcdb6 VZ |
2245 | |
2246 | ||
2247 | echo $ac_n "checking for --enable-shared""... $ac_c" 1>&6 | |
b3e8d00a | 2248 | echo "configure:2249: checking for --enable-shared" >&5 |
10f2d63a VZ |
2249 | no_cache=0 |
2250 | # Check whether --enable-shared or --disable-shared was given. | |
2251 | if test "${enable_shared+set}" = set; then | |
2252 | enableval="$enable_shared" | |
698dcdb6 | 2253 | |
10f2d63a VZ |
2254 | if test "$enableval" = yes; then |
2255 | ac_cv_use_shared='wxUSE_SHARED=yes' | |
2256 | else | |
2257 | ac_cv_use_shared='wxUSE_SHARED=no' | |
2258 | fi | |
698dcdb6 | 2259 | |
10f2d63a | 2260 | else |
698dcdb6 | 2261 | |
10f2d63a VZ |
2262 | LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}` |
2263 | if test "x$LINE" != x ; then | |
2264 | eval "DEFAULT_$LINE" | |
2265 | else | |
2266 | no_cache=1 | |
2267 | fi | |
2268 | ||
2269 | ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED | |
698dcdb6 VZ |
2270 | |
2271 | fi | |
10f2d63a VZ |
2272 | |
2273 | ||
2274 | eval "$ac_cv_use_shared" | |
2275 | if test "$no_cache" != 1; then | |
2276 | echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp | |
2277 | fi | |
2278 | ||
2279 | if test "$wxUSE_SHARED" = yes; then | |
698dcdb6 | 2280 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2281 | else |
698dcdb6 | 2282 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2283 | fi |
698dcdb6 | 2284 | |
10f2d63a | 2285 | |
3a922bb4 | 2286 | echo $ac_n "checking for --enable-soname""... $ac_c" 1>&6 |
b3e8d00a | 2287 | echo "configure:2288: checking for --enable-soname" >&5 |
00cf1208 | 2288 | no_cache=0 |
3a922bb4 RL |
2289 | # Check whether --enable-soname or --disable-soname was given. |
2290 | if test "${enable_soname+set}" = set; then | |
2291 | enableval="$enable_soname" | |
698dcdb6 | 2292 | |
00cf1208 | 2293 | if test "$enableval" = yes; then |
3a922bb4 | 2294 | ac_cv_use_soname='wxUSE_SONAME=yes' |
00cf1208 | 2295 | else |
3a922bb4 | 2296 | ac_cv_use_soname='wxUSE_SONAME=no' |
00cf1208 | 2297 | fi |
698dcdb6 | 2298 | |
00cf1208 | 2299 | else |
698dcdb6 | 2300 | |
3a922bb4 | 2301 | LINE=`grep "wxUSE_SONAME" ${wx_arg_cache_file}` |
00cf1208 RR |
2302 | if test "x$LINE" != x ; then |
2303 | eval "DEFAULT_$LINE" | |
2304 | else | |
2305 | no_cache=1 | |
2306 | fi | |
2307 | ||
3a922bb4 | 2308 | ac_cv_use_soname='wxUSE_SONAME='$DEFAULT_wxUSE_SONAME |
698dcdb6 VZ |
2309 | |
2310 | fi | |
00cf1208 RR |
2311 | |
2312 | ||
3a922bb4 | 2313 | eval "$ac_cv_use_soname" |
00cf1208 | 2314 | if test "$no_cache" != 1; then |
3a922bb4 | 2315 | echo $ac_cv_use_soname >> ${wx_arg_cache_file}.tmp |
00cf1208 RR |
2316 | fi |
2317 | ||
3a922bb4 | 2318 | if test "$wxUSE_SONAME" = yes; then |
698dcdb6 | 2319 | echo "$ac_t""yes" 1>&6 |
00cf1208 | 2320 | else |
698dcdb6 | 2321 | echo "$ac_t""no" 1>&6 |
00cf1208 | 2322 | fi |
698dcdb6 | 2323 | |
00cf1208 | 2324 | |
698dcdb6 | 2325 | echo $ac_n "checking for --enable-optimise""... $ac_c" 1>&6 |
b3e8d00a | 2326 | echo "configure:2327: checking for --enable-optimise" >&5 |
10f2d63a VZ |
2327 | no_cache=0 |
2328 | # Check whether --enable-optimise or --disable-optimise was given. | |
2329 | if test "${enable_optimise+set}" = set; then | |
2330 | enableval="$enable_optimise" | |
698dcdb6 | 2331 | |
10f2d63a VZ |
2332 | if test "$enableval" = yes; then |
2333 | ac_cv_use_optimise='wxUSE_OPTIMISE=yes' | |
2334 | else | |
2335 | ac_cv_use_optimise='wxUSE_OPTIMISE=no' | |
2336 | fi | |
698dcdb6 | 2337 | |
10f2d63a | 2338 | else |
698dcdb6 | 2339 | |
10f2d63a VZ |
2340 | LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}` |
2341 | if test "x$LINE" != x ; then | |
2342 | eval "DEFAULT_$LINE" | |
2343 | else | |
2344 | no_cache=1 | |
2345 | fi | |
2346 | ||
2347 | ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE | |
698dcdb6 VZ |
2348 | |
2349 | fi | |
10f2d63a VZ |
2350 | |
2351 | ||
2352 | eval "$ac_cv_use_optimise" | |
2353 | if test "$no_cache" != 1; then | |
2354 | echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp | |
2355 | fi | |
2356 | ||
2357 | if test "$wxUSE_OPTIMISE" = yes; then | |
698dcdb6 | 2358 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2359 | else |
698dcdb6 | 2360 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2361 | fi |
698dcdb6 | 2362 | |
10f2d63a | 2363 | |
698dcdb6 | 2364 | echo $ac_n "checking for --enable-debug""... $ac_c" 1>&6 |
b3e8d00a | 2365 | echo "configure:2366: checking for --enable-debug" >&5 |
10f2d63a VZ |
2366 | no_cache=0 |
2367 | # Check whether --enable-debug or --disable-debug was given. | |
2368 | if test "${enable_debug+set}" = set; then | |
2369 | enableval="$enable_debug" | |
698dcdb6 | 2370 | |
10f2d63a VZ |
2371 | if test "$enableval" = yes; then |
2372 | ac_cv_use_debug='wxUSE_DEBUG=yes' | |
2373 | else | |
2374 | ac_cv_use_debug='wxUSE_DEBUG=no' | |
2375 | fi | |
698dcdb6 | 2376 | |
10f2d63a | 2377 | else |
698dcdb6 | 2378 | |
10f2d63a VZ |
2379 | LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}` |
2380 | if test "x$LINE" != x ; then | |
2381 | eval "DEFAULT_$LINE" | |
2382 | else | |
2383 | no_cache=1 | |
2384 | fi | |
2385 | ||
2386 | ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG | |
698dcdb6 VZ |
2387 | |
2388 | fi | |
10f2d63a VZ |
2389 | |
2390 | ||
2391 | eval "$ac_cv_use_debug" | |
2392 | if test "$no_cache" != 1; then | |
2393 | echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp | |
2394 | fi | |
2395 | ||
2396 | if test "$wxUSE_DEBUG" = yes; then | |
698dcdb6 | 2397 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2398 | else |
698dcdb6 | 2399 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2400 | fi |
698dcdb6 | 2401 | |
10f2d63a VZ |
2402 | |
2403 | if test "$wxUSE_DEBUG" = "yes"; then | |
2404 | DEFAULT_wxUSE_DEBUG_FLAG=yes | |
2405 | DEFAULT_wxUSE_DEBUG_INFO=yes | |
2406 | elif test "$wxUSE_DEBUG" = "no"; then | |
2407 | DEFAULT_wxUSE_DEBUG_FLAG=no | |
2408 | DEFAULT_wxUSE_DEBUG_INFO=no | |
2409 | fi | |
2410 | ||
698dcdb6 VZ |
2411 | |
2412 | echo $ac_n "checking for --enable-debug_flag""... $ac_c" 1>&6 | |
b3e8d00a | 2413 | echo "configure:2414: checking for --enable-debug_flag" >&5 |
10f2d63a VZ |
2414 | no_cache=0 |
2415 | # Check whether --enable-debug_flag or --disable-debug_flag was given. | |
2416 | if test "${enable_debug_flag+set}" = set; then | |
2417 | enableval="$enable_debug_flag" | |
698dcdb6 | 2418 | |
10f2d63a VZ |
2419 | if test "$enableval" = yes; then |
2420 | ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes' | |
2421 | else | |
2422 | ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no' | |
2423 | fi | |
698dcdb6 | 2424 | |
10f2d63a | 2425 | else |
698dcdb6 | 2426 | |
10f2d63a VZ |
2427 | LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}` |
2428 | if test "x$LINE" != x ; then | |
2429 | eval "DEFAULT_$LINE" | |
2430 | else | |
2431 | no_cache=1 | |
2432 | fi | |
2433 | ||
2434 | ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG | |
698dcdb6 VZ |
2435 | |
2436 | fi | |
10f2d63a VZ |
2437 | |
2438 | ||
2439 | eval "$ac_cv_use_debug_flag" | |
2440 | if test "$no_cache" != 1; then | |
2441 | echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp | |
2442 | fi | |
2443 | ||
2444 | if test "$wxUSE_DEBUG_FLAG" = yes; then | |
698dcdb6 | 2445 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2446 | else |
698dcdb6 | 2447 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2448 | fi |
698dcdb6 | 2449 | |
10f2d63a | 2450 | |
698dcdb6 | 2451 | echo $ac_n "checking for --enable-debug_info""... $ac_c" 1>&6 |
b3e8d00a | 2452 | echo "configure:2453: checking for --enable-debug_info" >&5 |
10f2d63a VZ |
2453 | no_cache=0 |
2454 | # Check whether --enable-debug_info or --disable-debug_info was given. | |
2455 | if test "${enable_debug_info+set}" = set; then | |
2456 | enableval="$enable_debug_info" | |
698dcdb6 | 2457 | |
10f2d63a VZ |
2458 | if test "$enableval" = yes; then |
2459 | ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes' | |
2460 | else | |
2461 | ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no' | |
2462 | fi | |
698dcdb6 | 2463 | |
10f2d63a | 2464 | else |
698dcdb6 | 2465 | |
10f2d63a VZ |
2466 | LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}` |
2467 | if test "x$LINE" != x ; then | |
2468 | eval "DEFAULT_$LINE" | |
2469 | else | |
2470 | no_cache=1 | |
2471 | fi | |
2472 | ||
2473 | ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO | |
698dcdb6 VZ |
2474 | |
2475 | fi | |
10f2d63a VZ |
2476 | |
2477 | ||
2478 | eval "$ac_cv_use_debug_info" | |
2479 | if test "$no_cache" != 1; then | |
2480 | echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp | |
2481 | fi | |
2482 | ||
2483 | if test "$wxUSE_DEBUG_INFO" = yes; then | |
698dcdb6 | 2484 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2485 | else |
698dcdb6 | 2486 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2487 | fi |
698dcdb6 | 2488 | |
10f2d63a | 2489 | |
698dcdb6 | 2490 | echo $ac_n "checking for --enable-debug_gdb""... $ac_c" 1>&6 |
b3e8d00a | 2491 | echo "configure:2492: checking for --enable-debug_gdb" >&5 |
10f2d63a VZ |
2492 | no_cache=0 |
2493 | # Check whether --enable-debug_gdb or --disable-debug_gdb was given. | |
2494 | if test "${enable_debug_gdb+set}" = set; then | |
2495 | enableval="$enable_debug_gdb" | |
698dcdb6 | 2496 | |
10f2d63a VZ |
2497 | if test "$enableval" = yes; then |
2498 | ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes' | |
2499 | else | |
2500 | ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no' | |
2501 | fi | |
698dcdb6 | 2502 | |
10f2d63a | 2503 | else |
698dcdb6 | 2504 | |
10f2d63a VZ |
2505 | LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}` |
2506 | if test "x$LINE" != x ; then | |
2507 | eval "DEFAULT_$LINE" | |
2508 | else | |
2509 | no_cache=1 | |
2510 | fi | |
2511 | ||
2512 | ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB | |
698dcdb6 VZ |
2513 | |
2514 | fi | |
10f2d63a VZ |
2515 | |
2516 | ||
2517 | eval "$ac_cv_use_debug_gdb" | |
2518 | if test "$no_cache" != 1; then | |
2519 | echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp | |
2520 | fi | |
2521 | ||
2522 | if test "$wxUSE_DEBUG_GDB" = yes; then | |
698dcdb6 | 2523 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2524 | else |
698dcdb6 | 2525 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2526 | fi |
698dcdb6 | 2527 | |
10f2d63a | 2528 | |
698dcdb6 | 2529 | echo $ac_n "checking for --enable-debug_cntxt""... $ac_c" 1>&6 |
b3e8d00a | 2530 | echo "configure:2531: checking for --enable-debug_cntxt" >&5 |
10f2d63a VZ |
2531 | no_cache=0 |
2532 | # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given. | |
2533 | if test "${enable_debug_cntxt+set}" = set; then | |
2534 | enableval="$enable_debug_cntxt" | |
698dcdb6 | 2535 | |
10f2d63a VZ |
2536 | if test "$enableval" = yes; then |
2537 | ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes' | |
2538 | else | |
2539 | ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no' | |
2540 | fi | |
698dcdb6 | 2541 | |
10f2d63a | 2542 | else |
698dcdb6 | 2543 | |
10f2d63a VZ |
2544 | LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}` |
2545 | if test "x$LINE" != x ; then | |
2546 | eval "DEFAULT_$LINE" | |
2547 | else | |
2548 | no_cache=1 | |
2549 | fi | |
2550 | ||
2551 | ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT | |
698dcdb6 VZ |
2552 | |
2553 | fi | |
10f2d63a VZ |
2554 | |
2555 | ||
2556 | eval "$ac_cv_use_debug_cntxt" | |
2557 | if test "$no_cache" != 1; then | |
2558 | echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp | |
2559 | fi | |
2560 | ||
2561 | if test "$wxUSE_DEBUG_CONTEXT" = yes; then | |
698dcdb6 | 2562 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2563 | else |
698dcdb6 | 2564 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2565 | fi |
698dcdb6 | 2566 | |
10f2d63a | 2567 | |
698dcdb6 | 2568 | echo $ac_n "checking for --enable-mem_tracing""... $ac_c" 1>&6 |
b3e8d00a | 2569 | echo "configure:2570: checking for --enable-mem_tracing" >&5 |
10f2d63a VZ |
2570 | no_cache=0 |
2571 | # Check whether --enable-mem_tracing or --disable-mem_tracing was given. | |
2572 | if test "${enable_mem_tracing+set}" = set; then | |
2573 | enableval="$enable_mem_tracing" | |
698dcdb6 | 2574 | |
10f2d63a VZ |
2575 | if test "$enableval" = yes; then |
2576 | ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes' | |
2577 | else | |
2578 | ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no' | |
2579 | fi | |
698dcdb6 | 2580 | |
10f2d63a | 2581 | else |
698dcdb6 | 2582 | |
10f2d63a VZ |
2583 | LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}` |
2584 | if test "x$LINE" != x ; then | |
2585 | eval "DEFAULT_$LINE" | |
2586 | else | |
2587 | no_cache=1 | |
2588 | fi | |
2589 | ||
2590 | ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING | |
698dcdb6 VZ |
2591 | |
2592 | fi | |
10f2d63a VZ |
2593 | |
2594 | ||
2595 | eval "$ac_cv_use_mem_tracing" | |
2596 | if test "$no_cache" != 1; then | |
2597 | echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp | |
2598 | fi | |
2599 | ||
2600 | if test "$wxUSE_MEM_TRACING" = yes; then | |
698dcdb6 | 2601 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2602 | else |
698dcdb6 | 2603 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2604 | fi |
698dcdb6 | 2605 | |
10f2d63a | 2606 | |
698dcdb6 | 2607 | echo $ac_n "checking for --enable-profile""... $ac_c" 1>&6 |
b3e8d00a | 2608 | echo "configure:2609: checking for --enable-profile" >&5 |
10f2d63a VZ |
2609 | no_cache=0 |
2610 | # Check whether --enable-profile or --disable-profile was given. | |
2611 | if test "${enable_profile+set}" = set; then | |
2612 | enableval="$enable_profile" | |
698dcdb6 | 2613 | |
10f2d63a VZ |
2614 | if test "$enableval" = yes; then |
2615 | ac_cv_use_profile='wxUSE_PROFILE=yes' | |
2616 | else | |
2617 | ac_cv_use_profile='wxUSE_PROFILE=no' | |
2618 | fi | |
698dcdb6 | 2619 | |
10f2d63a | 2620 | else |
698dcdb6 | 2621 | |
10f2d63a VZ |
2622 | LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}` |
2623 | if test "x$LINE" != x ; then | |
2624 | eval "DEFAULT_$LINE" | |
2625 | else | |
2626 | no_cache=1 | |
2627 | fi | |
2628 | ||
2629 | ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE | |
698dcdb6 VZ |
2630 | |
2631 | fi | |
10f2d63a VZ |
2632 | |
2633 | ||
2634 | eval "$ac_cv_use_profile" | |
2635 | if test "$no_cache" != 1; then | |
2636 | echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp | |
2637 | fi | |
2638 | ||
2639 | if test "$wxUSE_PROFILE" = yes; then | |
698dcdb6 | 2640 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2641 | else |
698dcdb6 | 2642 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2643 | fi |
698dcdb6 | 2644 | |
10f2d63a | 2645 | |
698dcdb6 | 2646 | echo $ac_n "checking for --enable-no_rtti""... $ac_c" 1>&6 |
b3e8d00a | 2647 | echo "configure:2648: checking for --enable-no_rtti" >&5 |
10f2d63a VZ |
2648 | no_cache=0 |
2649 | # Check whether --enable-no_rtti or --disable-no_rtti was given. | |
2650 | if test "${enable_no_rtti+set}" = set; then | |
2651 | enableval="$enable_no_rtti" | |
698dcdb6 | 2652 | |
10f2d63a VZ |
2653 | if test "$enableval" = yes; then |
2654 | ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes' | |
2655 | else | |
2656 | ac_cv_use_no_rtti='wxUSE_NO_RTTI=no' | |
2657 | fi | |
698dcdb6 | 2658 | |
10f2d63a | 2659 | else |
698dcdb6 | 2660 | |
10f2d63a VZ |
2661 | LINE=`grep "wxUSE_NO_RTTI" ${wx_arg_cache_file}` |
2662 | if test "x$LINE" != x ; then | |
2663 | eval "DEFAULT_$LINE" | |
2664 | else | |
2665 | no_cache=1 | |
2666 | fi | |
2667 | ||
2668 | ac_cv_use_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI | |
698dcdb6 VZ |
2669 | |
2670 | fi | |
10f2d63a VZ |
2671 | |
2672 | ||
2673 | eval "$ac_cv_use_no_rtti" | |
2674 | if test "$no_cache" != 1; then | |
2675 | echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp | |
2676 | fi | |
2677 | ||
2678 | if test "$wxUSE_NO_RTTI" = yes; then | |
698dcdb6 | 2679 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2680 | else |
698dcdb6 | 2681 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2682 | fi |
698dcdb6 | 2683 | |
10f2d63a | 2684 | |
698dcdb6 | 2685 | echo $ac_n "checking for --enable-no_exceptions""... $ac_c" 1>&6 |
b3e8d00a | 2686 | echo "configure:2687: checking for --enable-no_exceptions" >&5 |
10f2d63a VZ |
2687 | no_cache=0 |
2688 | # Check whether --enable-no_exceptions or --disable-no_exceptions was given. | |
2689 | if test "${enable_no_exceptions+set}" = set; then | |
2690 | enableval="$enable_no_exceptions" | |
698dcdb6 | 2691 | |
10f2d63a VZ |
2692 | if test "$enableval" = yes; then |
2693 | ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes' | |
2694 | else | |
2695 | ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no' | |
2696 | fi | |
698dcdb6 | 2697 | |
10f2d63a | 2698 | else |
698dcdb6 | 2699 | |
10f2d63a VZ |
2700 | LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}` |
2701 | if test "x$LINE" != x ; then | |
2702 | eval "DEFAULT_$LINE" | |
2703 | else | |
2704 | no_cache=1 | |
2705 | fi | |
2706 | ||
2707 | ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS | |
698dcdb6 VZ |
2708 | |
2709 | fi | |
10f2d63a VZ |
2710 | |
2711 | ||
2712 | eval "$ac_cv_use_no_exceptions" | |
2713 | if test "$no_cache" != 1; then | |
2714 | echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp | |
2715 | fi | |
2716 | ||
2717 | if test "$wxUSE_NO_EXCEPTIONS" = yes; then | |
698dcdb6 | 2718 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2719 | else |
698dcdb6 | 2720 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2721 | fi |
698dcdb6 | 2722 | |
10f2d63a | 2723 | |
698dcdb6 | 2724 | echo $ac_n "checking for --enable-permissive""... $ac_c" 1>&6 |
b3e8d00a | 2725 | echo "configure:2726: checking for --enable-permissive" >&5 |
10f2d63a VZ |
2726 | no_cache=0 |
2727 | # Check whether --enable-permissive or --disable-permissive was given. | |
2728 | if test "${enable_permissive+set}" = set; then | |
2729 | enableval="$enable_permissive" | |
698dcdb6 | 2730 | |
10f2d63a VZ |
2731 | if test "$enableval" = yes; then |
2732 | ac_cv_use_permissive='wxUSE_PERMISSIVE=yes' | |
2733 | else | |
2734 | ac_cv_use_permissive='wxUSE_PERMISSIVE=no' | |
2735 | fi | |
698dcdb6 | 2736 | |
10f2d63a | 2737 | else |
698dcdb6 | 2738 | |
10f2d63a VZ |
2739 | LINE=`grep "wxUSE_PERMISSIVE" ${wx_arg_cache_file}` |
2740 | if test "x$LINE" != x ; then | |
2741 | eval "DEFAULT_$LINE" | |
2742 | else | |
2743 | no_cache=1 | |
2744 | fi | |
2745 | ||
2746 | ac_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE | |
698dcdb6 VZ |
2747 | |
2748 | fi | |
10f2d63a VZ |
2749 | |
2750 | ||
2751 | eval "$ac_cv_use_permissive" | |
2752 | if test "$no_cache" != 1; then | |
2753 | echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp | |
2754 | fi | |
2755 | ||
2756 | if test "$wxUSE_PERMISSIVE" = yes; then | |
698dcdb6 | 2757 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2758 | else |
698dcdb6 | 2759 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2760 | fi |
698dcdb6 | 2761 | |
10f2d63a | 2762 | |
698dcdb6 | 2763 | echo $ac_n "checking for --enable-no_deps""... $ac_c" 1>&6 |
b3e8d00a | 2764 | echo "configure:2765: checking for --enable-no_deps" >&5 |
10f2d63a VZ |
2765 | no_cache=0 |
2766 | # Check whether --enable-no_deps or --disable-no_deps was given. | |
2767 | if test "${enable_no_deps+set}" = set; then | |
2768 | enableval="$enable_no_deps" | |
698dcdb6 | 2769 | |
10f2d63a VZ |
2770 | if test "$enableval" = yes; then |
2771 | ac_cv_use_no_deps='wxUSE_NO_DEPS=yes' | |
2772 | else | |
2773 | ac_cv_use_no_deps='wxUSE_NO_DEPS=no' | |
2774 | fi | |
698dcdb6 | 2775 | |
10f2d63a | 2776 | else |
698dcdb6 | 2777 | |
10f2d63a VZ |
2778 | LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}` |
2779 | if test "x$LINE" != x ; then | |
2780 | eval "DEFAULT_$LINE" | |
2781 | else | |
2782 | no_cache=1 | |
2783 | fi | |
2784 | ||
2785 | ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS | |
698dcdb6 VZ |
2786 | |
2787 | fi | |
10f2d63a VZ |
2788 | |
2789 | ||
2790 | eval "$ac_cv_use_no_deps" | |
2791 | if test "$no_cache" != 1; then | |
2792 | echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp | |
2793 | fi | |
2794 | ||
2795 | if test "$wxUSE_NO_DEPS" = yes; then | |
698dcdb6 | 2796 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2797 | else |
698dcdb6 | 2798 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2799 | fi |
698dcdb6 VZ |
2800 | |
2801 | ||
10f2d63a | 2802 | |
54276ccf | 2803 | echo $ac_n "checking for --enable-compat20""... $ac_c" 1>&6 |
b3e8d00a | 2804 | echo "configure:2805: checking for --enable-compat20" >&5 |
54276ccf VZ |
2805 | no_cache=0 |
2806 | # Check whether --enable-compat20 or --disable-compat20 was given. | |
2807 | if test "${enable_compat20+set}" = set; then | |
2808 | enableval="$enable_compat20" | |
2809 | ||
2810 | if test "$enableval" = yes; then | |
2811 | ac_cv_use_compat20='WXWIN_COMPATIBILITY_2=yes' | |
2812 | else | |
2813 | ac_cv_use_compat20='WXWIN_COMPATIBILITY_2=no' | |
2814 | fi | |
2815 | ||
2816 | else | |
2817 | ||
2818 | LINE=`grep "WXWIN_COMPATIBILITY_2" ${wx_arg_cache_file}` | |
2819 | if test "x$LINE" != x ; then | |
2820 | eval "DEFAULT_$LINE" | |
2821 | else | |
2822 | no_cache=1 | |
2823 | fi | |
2824 | ||
2825 | ac_cv_use_compat20='WXWIN_COMPATIBILITY_2='$DEFAULT_WXWIN_COMPATIBILITY_2 | |
2826 | ||
2827 | fi | |
2828 | ||
2829 | ||
2830 | eval "$ac_cv_use_compat20" | |
2831 | if test "$no_cache" != 1; then | |
2832 | echo $ac_cv_use_compat20 >> ${wx_arg_cache_file}.tmp | |
2833 | fi | |
2834 | ||
2835 | if test "$WXWIN_COMPATIBILITY_2" = yes; then | |
2836 | echo "$ac_t""yes" 1>&6 | |
2837 | else | |
2838 | echo "$ac_t""no" 1>&6 | |
2839 | fi | |
2840 | ||
2841 | ||
2842 | echo $ac_n "checking for --enable-compat22""... $ac_c" 1>&6 | |
b3e8d00a | 2843 | echo "configure:2844: checking for --enable-compat22" >&5 |
54276ccf VZ |
2844 | no_cache=0 |
2845 | # Check whether --enable-compat22 or --disable-compat22 was given. | |
2846 | if test "${enable_compat22+set}" = set; then | |
2847 | enableval="$enable_compat22" | |
2848 | ||
2849 | if test "$enableval" = yes; then | |
2850 | ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=yes' | |
2851 | else | |
2852 | ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=no' | |
2853 | fi | |
2854 | ||
2855 | else | |
2856 | ||
2857 | LINE=`grep "WXWIN_COMPATIBILITY_2_2" ${wx_arg_cache_file}` | |
2858 | if test "x$LINE" != x ; then | |
2859 | eval "DEFAULT_$LINE" | |
2860 | else | |
2861 | no_cache=1 | |
2862 | fi | |
2863 | ||
2864 | ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2='$DEFAULT_WXWIN_COMPATIBILITY_2_2 | |
2865 | ||
2866 | fi | |
2867 | ||
2868 | ||
2869 | eval "$ac_cv_use_compat22" | |
2870 | if test "$no_cache" != 1; then | |
2871 | echo $ac_cv_use_compat22 >> ${wx_arg_cache_file}.tmp | |
2872 | fi | |
2873 | ||
2874 | if test "$WXWIN_COMPATIBILITY_2_2" = yes; then | |
2875 | echo "$ac_t""yes" 1>&6 | |
2876 | else | |
2877 | echo "$ac_t""no" 1>&6 | |
2878 | fi | |
2879 | ||
2880 | ||
2881 | ||
698dcdb6 VZ |
2882 | |
2883 | echo $ac_n "checking for --enable-intl""... $ac_c" 1>&6 | |
b3e8d00a | 2884 | echo "configure:2885: checking for --enable-intl" >&5 |
10f2d63a VZ |
2885 | no_cache=0 |
2886 | # Check whether --enable-intl or --disable-intl was given. | |
2887 | if test "${enable_intl+set}" = set; then | |
2888 | enableval="$enable_intl" | |
698dcdb6 | 2889 | |
10f2d63a VZ |
2890 | if test "$enableval" = yes; then |
2891 | ac_cv_use_intl='wxUSE_INTL=yes' | |
2892 | else | |
2893 | ac_cv_use_intl='wxUSE_INTL=no' | |
2894 | fi | |
698dcdb6 | 2895 | |
10f2d63a | 2896 | else |
698dcdb6 | 2897 | |
10f2d63a VZ |
2898 | LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}` |
2899 | if test "x$LINE" != x ; then | |
2900 | eval "DEFAULT_$LINE" | |
2901 | else | |
2902 | no_cache=1 | |
2903 | fi | |
2904 | ||
2905 | ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL | |
698dcdb6 VZ |
2906 | |
2907 | fi | |
10f2d63a VZ |
2908 | |
2909 | ||
2910 | eval "$ac_cv_use_intl" | |
2911 | if test "$no_cache" != 1; then | |
2912 | echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp | |
2913 | fi | |
2914 | ||
2915 | if test "$wxUSE_INTL" = yes; then | |
698dcdb6 | 2916 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2917 | else |
698dcdb6 | 2918 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2919 | fi |
698dcdb6 | 2920 | |
10f2d63a | 2921 | |
698dcdb6 | 2922 | echo $ac_n "checking for --enable-config""... $ac_c" 1>&6 |
b3e8d00a | 2923 | echo "configure:2924: checking for --enable-config" >&5 |
10f2d63a VZ |
2924 | no_cache=0 |
2925 | # Check whether --enable-config or --disable-config was given. | |
2926 | if test "${enable_config+set}" = set; then | |
2927 | enableval="$enable_config" | |
698dcdb6 | 2928 | |
10f2d63a VZ |
2929 | if test "$enableval" = yes; then |
2930 | ac_cv_use_config='wxUSE_CONFIG=yes' | |
2931 | else | |
2932 | ac_cv_use_config='wxUSE_CONFIG=no' | |
2933 | fi | |
698dcdb6 | 2934 | |
10f2d63a | 2935 | else |
698dcdb6 | 2936 | |
10f2d63a VZ |
2937 | LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}` |
2938 | if test "x$LINE" != x ; then | |
2939 | eval "DEFAULT_$LINE" | |
2940 | else | |
2941 | no_cache=1 | |
2942 | fi | |
2943 | ||
2944 | ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG | |
698dcdb6 VZ |
2945 | |
2946 | fi | |
10f2d63a VZ |
2947 | |
2948 | ||
2949 | eval "$ac_cv_use_config" | |
2950 | if test "$no_cache" != 1; then | |
2951 | echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp | |
2952 | fi | |
2953 | ||
2954 | if test "$wxUSE_CONFIG" = yes; then | |
698dcdb6 | 2955 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2956 | else |
698dcdb6 | 2957 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2958 | fi |
698dcdb6 VZ |
2959 | |
2960 | ||
b12915c1 | 2961 | |
698dcdb6 | 2962 | echo $ac_n "checking for --enable-sockets""... $ac_c" 1>&6 |
b3e8d00a | 2963 | echo "configure:2964: checking for --enable-sockets" >&5 |
10f2d63a VZ |
2964 | no_cache=0 |
2965 | # Check whether --enable-sockets or --disable-sockets was given. | |
2966 | if test "${enable_sockets+set}" = set; then | |
2967 | enableval="$enable_sockets" | |
698dcdb6 | 2968 | |
10f2d63a VZ |
2969 | if test "$enableval" = yes; then |
2970 | ac_cv_use_sockets='wxUSE_SOCKETS=yes' | |
2971 | else | |
2972 | ac_cv_use_sockets='wxUSE_SOCKETS=no' | |
2973 | fi | |
698dcdb6 | 2974 | |
10f2d63a | 2975 | else |
698dcdb6 | 2976 | |
10f2d63a VZ |
2977 | LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}` |
2978 | if test "x$LINE" != x ; then | |
2979 | eval "DEFAULT_$LINE" | |
2980 | else | |
2981 | no_cache=1 | |
2982 | fi | |
2983 | ||
2984 | ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS | |
698dcdb6 VZ |
2985 | |
2986 | fi | |
10f2d63a VZ |
2987 | |
2988 | ||
2989 | eval "$ac_cv_use_sockets" | |
2990 | if test "$no_cache" != 1; then | |
2991 | echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp | |
2992 | fi | |
2993 | ||
2994 | if test "$wxUSE_SOCKETS" = yes; then | |
698dcdb6 | 2995 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2996 | else |
698dcdb6 | 2997 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2998 | fi |
698dcdb6 | 2999 | |
b12915c1 | 3000 | |
698dcdb6 VZ |
3001 | |
3002 | echo $ac_n "checking for --enable-ipc""... $ac_c" 1>&6 | |
b3e8d00a | 3003 | echo "configure:3004: checking for --enable-ipc" >&5 |
10f2d63a | 3004 | no_cache=0 |
eb4efbdc VZ |
3005 | # Check whether --enable-ipc or --disable-ipc was given. |
3006 | if test "${enable_ipc+set}" = set; then | |
3007 | enableval="$enable_ipc" | |
698dcdb6 | 3008 | |
10f2d63a | 3009 | if test "$enableval" = yes; then |
eb4efbdc | 3010 | ac_cv_use_ipc='wxUSE_IPC=yes' |
10f2d63a | 3011 | else |
eb4efbdc | 3012 | ac_cv_use_ipc='wxUSE_IPC=no' |
10f2d63a | 3013 | fi |
698dcdb6 | 3014 | |
10f2d63a | 3015 | else |
698dcdb6 | 3016 | |
eb4efbdc | 3017 | LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}` |
10f2d63a VZ |
3018 | if test "x$LINE" != x ; then |
3019 | eval "DEFAULT_$LINE" | |
3020 | else | |
3021 | no_cache=1 | |
3022 | fi | |
3023 | ||
eb4efbdc | 3024 | ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC |
698dcdb6 VZ |
3025 | |
3026 | fi | |
10f2d63a VZ |
3027 | |
3028 | ||
eb4efbdc | 3029 | eval "$ac_cv_use_ipc" |
10f2d63a | 3030 | if test "$no_cache" != 1; then |
eb4efbdc | 3031 | echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
3032 | fi |
3033 | ||
eb4efbdc | 3034 | if test "$wxUSE_IPC" = yes; then |
698dcdb6 | 3035 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3036 | else |
698dcdb6 | 3037 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3038 | fi |
698dcdb6 VZ |
3039 | |
3040 | ||
eb4efbdc | 3041 | |
1e6feb95 | 3042 | echo $ac_n "checking for --enable-cmdline""... $ac_c" 1>&6 |
b3e8d00a | 3043 | echo "configure:3044: checking for --enable-cmdline" >&5 |
1e6feb95 VZ |
3044 | no_cache=0 |
3045 | # Check whether --enable-cmdline or --disable-cmdline was given. | |
3046 | if test "${enable_cmdline+set}" = set; then | |
3047 | enableval="$enable_cmdline" | |
3048 | ||
3049 | if test "$enableval" = yes; then | |
3050 | ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=yes' | |
3051 | else | |
3052 | ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=no' | |
3053 | fi | |
3054 | ||
3055 | else | |
3056 | ||
3057 | LINE=`grep "wxUSE_CMDLINE_PARSER" ${wx_arg_cache_file}` | |
3058 | if test "x$LINE" != x ; then | |
3059 | eval "DEFAULT_$LINE" | |
3060 | else | |
3061 | no_cache=1 | |
3062 | fi | |
3063 | ||
3064 | ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER='$DEFAULT_wxUSE_CMDLINE_PARSER | |
3065 | ||
3066 | fi | |
3067 | ||
3068 | ||
3069 | eval "$ac_cv_use_cmdline" | |
3070 | if test "$no_cache" != 1; then | |
3071 | echo $ac_cv_use_cmdline >> ${wx_arg_cache_file}.tmp | |
3072 | fi | |
3073 | ||
3074 | if test "$wxUSE_CMDLINE_PARSER" = yes; then | |
3075 | echo "$ac_t""yes" 1>&6 | |
3076 | else | |
3077 | echo "$ac_t""no" 1>&6 | |
3078 | fi | |
3079 | ||
3080 | ||
3081 | echo $ac_n "checking for --enable-datetime""... $ac_c" 1>&6 | |
b3e8d00a | 3082 | echo "configure:3083: checking for --enable-datetime" >&5 |
1e6feb95 VZ |
3083 | no_cache=0 |
3084 | # Check whether --enable-datetime or --disable-datetime was given. | |
3085 | if test "${enable_datetime+set}" = set; then | |
3086 | enableval="$enable_datetime" | |
3087 | ||
3088 | if test "$enableval" = yes; then | |
3089 | ac_cv_use_datetime='wxUSE_DATETIME=yes' | |
3090 | else | |
3091 | ac_cv_use_datetime='wxUSE_DATETIME=no' | |
3092 | fi | |
3093 | ||
3094 | else | |
3095 | ||
3096 | LINE=`grep "wxUSE_DATETIME" ${wx_arg_cache_file}` | |
3097 | if test "x$LINE" != x ; then | |
3098 | eval "DEFAULT_$LINE" | |
3099 | else | |
3100 | no_cache=1 | |
3101 | fi | |
3102 | ||
3103 | ac_cv_use_datetime='wxUSE_DATETIME='$DEFAULT_wxUSE_DATETIME | |
3104 | ||
3105 | fi | |
3106 | ||
3107 | ||
3108 | eval "$ac_cv_use_datetime" | |
3109 | if test "$no_cache" != 1; then | |
3110 | echo $ac_cv_use_datetime >> ${wx_arg_cache_file}.tmp | |
3111 | fi | |
3112 | ||
3113 | if test "$wxUSE_DATETIME" = yes; then | |
3114 | echo "$ac_t""yes" 1>&6 | |
3115 | else | |
3116 | echo "$ac_t""no" 1>&6 | |
3117 | fi | |
3118 | ||
3119 | ||
3120 | echo $ac_n "checking for --enable-timedate""... $ac_c" 1>&6 | |
b3e8d00a | 3121 | echo "configure:3122: checking for --enable-timedate" >&5 |
1e6feb95 VZ |
3122 | no_cache=0 |
3123 | # Check whether --enable-timedate or --disable-timedate was given. | |
3124 | if test "${enable_timedate+set}" = set; then | |
3125 | enableval="$enable_timedate" | |
3126 | ||
3127 | if test "$enableval" = yes; then | |
3128 | ac_cv_use_timedate='wxUSE_TIMEDATE=yes' | |
3129 | else | |
3130 | ac_cv_use_timedate='wxUSE_TIMEDATE=no' | |
3131 | fi | |
3132 | ||
3133 | else | |
3134 | ||
3135 | LINE=`grep "wxUSE_TIMEDATE" ${wx_arg_cache_file}` | |
3136 | if test "x$LINE" != x ; then | |
3137 | eval "DEFAULT_$LINE" | |
3138 | else | |
3139 | no_cache=1 | |
3140 | fi | |
3141 | ||
3142 | ac_cv_use_timedate='wxUSE_TIMEDATE='$DEFAULT_wxUSE_TIMEDATE | |
3143 | ||
3144 | fi | |
3145 | ||
3146 | ||
3147 | eval "$ac_cv_use_timedate" | |
3148 | if test "$no_cache" != 1; then | |
3149 | echo $ac_cv_use_timedate >> ${wx_arg_cache_file}.tmp | |
3150 | fi | |
3151 | ||
3152 | if test "$wxUSE_TIMEDATE" = yes; then | |
3153 | echo "$ac_t""yes" 1>&6 | |
3154 | else | |
3155 | echo "$ac_t""no" 1>&6 | |
3156 | fi | |
3157 | ||
3158 | ||
3159 | echo $ac_n "checking for --enable-stopwatch""... $ac_c" 1>&6 | |
b3e8d00a | 3160 | echo "configure:3161: checking for --enable-stopwatch" >&5 |
1e6feb95 VZ |
3161 | no_cache=0 |
3162 | # Check whether --enable-stopwatch or --disable-stopwatch was given. | |
3163 | if test "${enable_stopwatch+set}" = set; then | |
3164 | enableval="$enable_stopwatch" | |
3165 | ||
3166 | if test "$enableval" = yes; then | |
3167 | ac_cv_use_stopwatch='wxUSE_STOPWATCH=yes' | |
3168 | else | |
3169 | ac_cv_use_stopwatch='wxUSE_STOPWATCH=no' | |
3170 | fi | |
3171 | ||
3172 | else | |
3173 | ||
3174 | LINE=`grep "wxUSE_STOPWATCH" ${wx_arg_cache_file}` | |
3175 | if test "x$LINE" != x ; then | |
3176 | eval "DEFAULT_$LINE" | |
3177 | else | |
3178 | no_cache=1 | |
3179 | fi | |
3180 | ||
3181 | ac_cv_use_stopwatch='wxUSE_STOPWATCH='$DEFAULT_wxUSE_STOPWATCH | |
3182 | ||
3183 | fi | |
3184 | ||
3185 | ||
3186 | eval "$ac_cv_use_stopwatch" | |
3187 | if test "$no_cache" != 1; then | |
3188 | echo $ac_cv_use_stopwatch >> ${wx_arg_cache_file}.tmp | |
3189 | fi | |
3190 | ||
3191 | if test "$wxUSE_STOPWATCH" = yes; then | |
3192 | echo "$ac_t""yes" 1>&6 | |
3193 | else | |
3194 | echo "$ac_t""no" 1>&6 | |
3195 | fi | |
3196 | ||
3197 | ||
698dcdb6 | 3198 | echo $ac_n "checking for --enable-dialupman""... $ac_c" 1>&6 |
b3e8d00a | 3199 | echo "configure:3200: checking for --enable-dialupman" >&5 |
10f2d63a | 3200 | no_cache=0 |
eb4efbdc VZ |
3201 | # Check whether --enable-dialupman or --disable-dialupman was given. |
3202 | if test "${enable_dialupman+set}" = set; then | |
3203 | enableval="$enable_dialupman" | |
698dcdb6 | 3204 | |
10f2d63a | 3205 | if test "$enableval" = yes; then |
eb4efbdc | 3206 | ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes' |
10f2d63a | 3207 | else |
eb4efbdc | 3208 | ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no' |
10f2d63a | 3209 | fi |
698dcdb6 | 3210 | |
10f2d63a | 3211 | else |
698dcdb6 | 3212 | |
eb4efbdc | 3213 | LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}` |
10f2d63a VZ |
3214 | if test "x$LINE" != x ; then |
3215 | eval "DEFAULT_$LINE" | |
3216 | else | |
3217 | no_cache=1 | |
3218 | fi | |
3219 | ||
eb4efbdc | 3220 | ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER |
698dcdb6 VZ |
3221 | |
3222 | fi | |
10f2d63a VZ |
3223 | |
3224 | ||
eb4efbdc | 3225 | eval "$ac_cv_use_dialupman" |
10f2d63a | 3226 | if test "$no_cache" != 1; then |
eb4efbdc | 3227 | echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
3228 | fi |
3229 | ||
eb4efbdc | 3230 | if test "$wxUSE_DIALUP_MANAGER" = yes; then |
698dcdb6 | 3231 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3232 | else |
698dcdb6 | 3233 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3234 | fi |
698dcdb6 | 3235 | |
10f2d63a | 3236 | |
698dcdb6 | 3237 | echo $ac_n "checking for --enable-apple_ieee""... $ac_c" 1>&6 |
b3e8d00a | 3238 | echo "configure:3239: checking for --enable-apple_ieee" >&5 |
10f2d63a VZ |
3239 | no_cache=0 |
3240 | # Check whether --enable-apple_ieee or --disable-apple_ieee was given. | |
3241 | if test "${enable_apple_ieee+set}" = set; then | |
3242 | enableval="$enable_apple_ieee" | |
698dcdb6 | 3243 | |
10f2d63a VZ |
3244 | if test "$enableval" = yes; then |
3245 | ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes' | |
3246 | else | |
3247 | ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no' | |
3248 | fi | |
698dcdb6 | 3249 | |
10f2d63a | 3250 | else |
698dcdb6 | 3251 | |
10f2d63a VZ |
3252 | LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}` |
3253 | if test "x$LINE" != x ; then | |
3254 | eval "DEFAULT_$LINE" | |
3255 | else | |
3256 | no_cache=1 | |
3257 | fi | |
3258 | ||
3259 | ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE | |
698dcdb6 VZ |
3260 | |
3261 | fi | |
10f2d63a VZ |
3262 | |
3263 | ||
3264 | eval "$ac_cv_use_apple_ieee" | |
3265 | if test "$no_cache" != 1; then | |
3266 | echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp | |
3267 | fi | |
3268 | ||
3269 | if test "$wxUSE_APPLE_IEEE" = yes; then | |
698dcdb6 | 3270 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3271 | else |
698dcdb6 | 3272 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3273 | fi |
698dcdb6 | 3274 | |
10f2d63a | 3275 | |
1e6feb95 | 3276 | echo $ac_n "checking for --enable-timer""... $ac_c" 1>&6 |
b3e8d00a | 3277 | echo "configure:3278: checking for --enable-timer" >&5 |
10f2d63a | 3278 | no_cache=0 |
1e6feb95 VZ |
3279 | # Check whether --enable-timer or --disable-timer was given. |
3280 | if test "${enable_timer+set}" = set; then | |
3281 | enableval="$enable_timer" | |
698dcdb6 | 3282 | |
10f2d63a | 3283 | if test "$enableval" = yes; then |
1e6feb95 | 3284 | ac_cv_use_timer='wxUSE_TIMER=yes' |
10f2d63a | 3285 | else |
1e6feb95 | 3286 | ac_cv_use_timer='wxUSE_TIMER=no' |
10f2d63a | 3287 | fi |
698dcdb6 | 3288 | |
10f2d63a | 3289 | else |
698dcdb6 | 3290 | |
1e6feb95 | 3291 | LINE=`grep "wxUSE_TIMER" ${wx_arg_cache_file}` |
10f2d63a VZ |
3292 | if test "x$LINE" != x ; then |
3293 | eval "DEFAULT_$LINE" | |
3294 | else | |
3295 | no_cache=1 | |
3296 | fi | |
3297 | ||
1e6feb95 | 3298 | ac_cv_use_timer='wxUSE_TIMER='$DEFAULT_wxUSE_TIMER |
698dcdb6 VZ |
3299 | |
3300 | fi | |
10f2d63a VZ |
3301 | |
3302 | ||
1e6feb95 | 3303 | eval "$ac_cv_use_timer" |
10f2d63a | 3304 | if test "$no_cache" != 1; then |
1e6feb95 | 3305 | echo $ac_cv_use_timer >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
3306 | fi |
3307 | ||
1e6feb95 | 3308 | if test "$wxUSE_TIMER" = yes; then |
698dcdb6 | 3309 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3310 | else |
698dcdb6 | 3311 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3312 | fi |
698dcdb6 | 3313 | |
10f2d63a | 3314 | |
698dcdb6 | 3315 | echo $ac_n "checking for --enable-wave""... $ac_c" 1>&6 |
b3e8d00a | 3316 | echo "configure:3317: checking for --enable-wave" >&5 |
10f2d63a VZ |
3317 | no_cache=0 |
3318 | # Check whether --enable-wave or --disable-wave was given. | |
3319 | if test "${enable_wave+set}" = set; then | |
3320 | enableval="$enable_wave" | |
698dcdb6 | 3321 | |
10f2d63a VZ |
3322 | if test "$enableval" = yes; then |
3323 | ac_cv_use_wave='wxUSE_WAVE=yes' | |
3324 | else | |
3325 | ac_cv_use_wave='wxUSE_WAVE=no' | |
3326 | fi | |
698dcdb6 | 3327 | |
10f2d63a | 3328 | else |
698dcdb6 | 3329 | |
10f2d63a VZ |
3330 | LINE=`grep "wxUSE_WAVE" ${wx_arg_cache_file}` |
3331 | if test "x$LINE" != x ; then | |
3332 | eval "DEFAULT_$LINE" | |
3333 | else | |
3334 | no_cache=1 | |
3335 | fi | |
3336 | ||
3337 | ac_cv_use_wave='wxUSE_WAVE='$DEFAULT_wxUSE_WAVE | |
698dcdb6 VZ |
3338 | |
3339 | fi | |
10f2d63a VZ |
3340 | |
3341 | ||
3342 | eval "$ac_cv_use_wave" | |
3343 | if test "$no_cache" != 1; then | |
3344 | echo $ac_cv_use_wave >> ${wx_arg_cache_file}.tmp | |
3345 | fi | |
3346 | ||
3347 | if test "$wxUSE_WAVE" = yes; then | |
698dcdb6 | 3348 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3349 | else |
698dcdb6 | 3350 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3351 | fi |
698dcdb6 | 3352 | |
10f2d63a | 3353 | |
698dcdb6 | 3354 | echo $ac_n "checking for --enable-fraction""... $ac_c" 1>&6 |
b3e8d00a | 3355 | echo "configure:3356: checking for --enable-fraction" >&5 |
10f2d63a VZ |
3356 | no_cache=0 |
3357 | # Check whether --enable-fraction or --disable-fraction was given. | |
3358 | if test "${enable_fraction+set}" = set; then | |
3359 | enableval="$enable_fraction" | |
698dcdb6 | 3360 | |
10f2d63a VZ |
3361 | if test "$enableval" = yes; then |
3362 | ac_cv_use_fraction='wxUSE_FRACTION=yes' | |
3363 | else | |
3364 | ac_cv_use_fraction='wxUSE_FRACTION=no' | |
3365 | fi | |
698dcdb6 | 3366 | |
10f2d63a | 3367 | else |
698dcdb6 | 3368 | |
10f2d63a VZ |
3369 | LINE=`grep "wxUSE_FRACTION" ${wx_arg_cache_file}` |
3370 | if test "x$LINE" != x ; then | |
3371 | eval "DEFAULT_$LINE" | |
3372 | else | |
3373 | no_cache=1 | |
3374 | fi | |
3375 | ||
3376 | ac_cv_use_fraction='wxUSE_FRACTION='$DEFAULT_wxUSE_FRACTION | |
698dcdb6 VZ |
3377 | |
3378 | fi | |
10f2d63a VZ |
3379 | |
3380 | ||
3381 | eval "$ac_cv_use_fraction" | |
3382 | if test "$no_cache" != 1; then | |
3383 | echo $ac_cv_use_fraction >> ${wx_arg_cache_file}.tmp | |
3384 | fi | |
3385 | ||
3386 | if test "$wxUSE_FRACTION" = yes; then | |
698dcdb6 | 3387 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3388 | else |
698dcdb6 | 3389 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3390 | fi |
698dcdb6 | 3391 | |
10f2d63a | 3392 | |
698dcdb6 | 3393 | echo $ac_n "checking for --enable-dynlib""... $ac_c" 1>&6 |
b3e8d00a | 3394 | echo "configure:3395: checking for --enable-dynlib" >&5 |
10f2d63a VZ |
3395 | no_cache=0 |
3396 | # Check whether --enable-dynlib or --disable-dynlib was given. | |
3397 | if test "${enable_dynlib+set}" = set; then | |
3398 | enableval="$enable_dynlib" | |
698dcdb6 | 3399 | |
10f2d63a VZ |
3400 | if test "$enableval" = yes; then |
3401 | ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes' | |
3402 | else | |
3403 | ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no' | |
3404 | fi | |
698dcdb6 | 3405 | |
10f2d63a | 3406 | else |
698dcdb6 | 3407 | |
10f2d63a VZ |
3408 | LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}` |
3409 | if test "x$LINE" != x ; then | |
3410 | eval "DEFAULT_$LINE" | |
3411 | else | |
3412 | no_cache=1 | |
3413 | fi | |
3414 | ||
3415 | ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS | |
698dcdb6 VZ |
3416 | |
3417 | fi | |
10f2d63a VZ |
3418 | |
3419 | ||
3420 | eval "$ac_cv_use_dynlib" | |
3421 | if test "$no_cache" != 1; then | |
3422 | echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp | |
3423 | fi | |
3424 | ||
3425 | if test "$wxUSE_DYNLIB_CLASS" = yes; then | |
698dcdb6 | 3426 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3427 | else |
698dcdb6 | 3428 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3429 | fi |
698dcdb6 | 3430 | |
10f2d63a | 3431 | |
698dcdb6 | 3432 | echo $ac_n "checking for --enable-longlong""... $ac_c" 1>&6 |
b3e8d00a | 3433 | echo "configure:3434: checking for --enable-longlong" >&5 |
10f2d63a VZ |
3434 | no_cache=0 |
3435 | # Check whether --enable-longlong or --disable-longlong was given. | |
3436 | if test "${enable_longlong+set}" = set; then | |
3437 | enableval="$enable_longlong" | |
698dcdb6 | 3438 | |
10f2d63a VZ |
3439 | if test "$enableval" = yes; then |
3440 | ac_cv_use_longlong='wxUSE_LONGLONG=yes' | |
3441 | else | |
3442 | ac_cv_use_longlong='wxUSE_LONGLONG=no' | |
3443 | fi | |
698dcdb6 | 3444 | |
10f2d63a | 3445 | else |
698dcdb6 | 3446 | |
10f2d63a VZ |
3447 | LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}` |
3448 | if test "x$LINE" != x ; then | |
3449 | eval "DEFAULT_$LINE" | |
3450 | else | |
3451 | no_cache=1 | |
3452 | fi | |
3453 | ||
3454 | ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG | |
698dcdb6 VZ |
3455 | |
3456 | fi | |
10f2d63a VZ |
3457 | |
3458 | ||
3459 | eval "$ac_cv_use_longlong" | |
3460 | if test "$no_cache" != 1; then | |
3461 | echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp | |
3462 | fi | |
3463 | ||
3464 | if test "$wxUSE_LONGLONG" = yes; then | |
698dcdb6 | 3465 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3466 | else |
698dcdb6 | 3467 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3468 | fi |
698dcdb6 | 3469 | |
10f2d63a | 3470 | |
698dcdb6 | 3471 | echo $ac_n "checking for --enable-geometry""... $ac_c" 1>&6 |
b3e8d00a | 3472 | echo "configure:3473: checking for --enable-geometry" >&5 |
e8f65ba6 RR |
3473 | no_cache=0 |
3474 | # Check whether --enable-geometry or --disable-geometry was given. | |
3475 | if test "${enable_geometry+set}" = set; then | |
3476 | enableval="$enable_geometry" | |
698dcdb6 | 3477 | |
e8f65ba6 RR |
3478 | if test "$enableval" = yes; then |
3479 | ac_cv_use_geometry='wxUSE_GEOMETRY=yes' | |
3480 | else | |
3481 | ac_cv_use_geometry='wxUSE_GEOMETRY=no' | |
3482 | fi | |
698dcdb6 | 3483 | |
e8f65ba6 | 3484 | else |
698dcdb6 | 3485 | |
e8f65ba6 RR |
3486 | LINE=`grep "wxUSE_GEOMETRY" ${wx_arg_cache_file}` |
3487 | if test "x$LINE" != x ; then | |
3488 | eval "DEFAULT_$LINE" | |
3489 | else | |
3490 | no_cache=1 | |
3491 | fi | |
3492 | ||
3493 | ac_cv_use_geometry='wxUSE_GEOMETRY='$DEFAULT_wxUSE_GEOMETRY | |
698dcdb6 VZ |
3494 | |
3495 | fi | |
e8f65ba6 RR |
3496 | |
3497 | ||
3498 | eval "$ac_cv_use_geometry" | |
3499 | if test "$no_cache" != 1; then | |
3500 | echo $ac_cv_use_geometry >> ${wx_arg_cache_file}.tmp | |
3501 | fi | |
3502 | ||
3503 | if test "$wxUSE_GEOMETRY" = yes; then | |
698dcdb6 | 3504 | echo "$ac_t""yes" 1>&6 |
e8f65ba6 | 3505 | else |
698dcdb6 | 3506 | echo "$ac_t""no" 1>&6 |
e8f65ba6 | 3507 | fi |
698dcdb6 | 3508 | |
e8f65ba6 | 3509 | |
698dcdb6 | 3510 | echo $ac_n "checking for --enable-log""... $ac_c" 1>&6 |
b3e8d00a | 3511 | echo "configure:3512: checking for --enable-log" >&5 |
10f2d63a VZ |
3512 | no_cache=0 |
3513 | # Check whether --enable-log or --disable-log was given. | |
3514 | if test "${enable_log+set}" = set; then | |
3515 | enableval="$enable_log" | |
698dcdb6 | 3516 | |
10f2d63a VZ |
3517 | if test "$enableval" = yes; then |
3518 | ac_cv_use_log='wxUSE_LOG=yes' | |
3519 | else | |
3520 | ac_cv_use_log='wxUSE_LOG=no' | |
3521 | fi | |
698dcdb6 | 3522 | |
10f2d63a | 3523 | else |
698dcdb6 | 3524 | |
10f2d63a VZ |
3525 | LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}` |
3526 | if test "x$LINE" != x ; then | |
3527 | eval "DEFAULT_$LINE" | |
3528 | else | |
3529 | no_cache=1 | |
3530 | fi | |
3531 | ||
3532 | ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG | |
698dcdb6 VZ |
3533 | |
3534 | fi | |
10f2d63a VZ |
3535 | |
3536 | ||
3537 | eval "$ac_cv_use_log" | |
3538 | if test "$no_cache" != 1; then | |
3539 | echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp | |
3540 | fi | |
3541 | ||
3542 | if test "$wxUSE_LOG" = yes; then | |
698dcdb6 | 3543 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3544 | else |
698dcdb6 | 3545 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3546 | fi |
698dcdb6 | 3547 | |
10f2d63a | 3548 | |
698dcdb6 | 3549 | echo $ac_n "checking for --enable-streams""... $ac_c" 1>&6 |
b3e8d00a | 3550 | echo "configure:3551: checking for --enable-streams" >&5 |
10f2d63a VZ |
3551 | no_cache=0 |
3552 | # Check whether --enable-streams or --disable-streams was given. | |
3553 | if test "${enable_streams+set}" = set; then | |
3554 | enableval="$enable_streams" | |
698dcdb6 | 3555 | |
10f2d63a VZ |
3556 | if test "$enableval" = yes; then |
3557 | ac_cv_use_streams='wxUSE_STREAMS=yes' | |
3558 | else | |
3559 | ac_cv_use_streams='wxUSE_STREAMS=no' | |
3560 | fi | |
698dcdb6 | 3561 | |
10f2d63a | 3562 | else |
698dcdb6 | 3563 | |
10f2d63a VZ |
3564 | LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}` |
3565 | if test "x$LINE" != x ; then | |
3566 | eval "DEFAULT_$LINE" | |
3567 | else | |
3568 | no_cache=1 | |
3569 | fi | |
3570 | ||
3571 | ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS | |
698dcdb6 VZ |
3572 | |
3573 | fi | |
10f2d63a VZ |
3574 | |
3575 | ||
3576 | eval "$ac_cv_use_streams" | |
3577 | if test "$no_cache" != 1; then | |
3578 | echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp | |
3579 | fi | |
3580 | ||
3581 | if test "$wxUSE_STREAMS" = yes; then | |
698dcdb6 | 3582 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3583 | else |
698dcdb6 | 3584 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3585 | fi |
698dcdb6 | 3586 | |
10f2d63a | 3587 | |
698dcdb6 | 3588 | echo $ac_n "checking for --enable-file""... $ac_c" 1>&6 |
b3e8d00a | 3589 | echo "configure:3590: checking for --enable-file" >&5 |
10f2d63a VZ |
3590 | no_cache=0 |
3591 | # Check whether --enable-file or --disable-file was given. | |
3592 | if test "${enable_file+set}" = set; then | |
3593 | enableval="$enable_file" | |
698dcdb6 | 3594 | |
10f2d63a VZ |
3595 | if test "$enableval" = yes; then |
3596 | ac_cv_use_file='wxUSE_FILE=yes' | |
3597 | else | |
3598 | ac_cv_use_file='wxUSE_FILE=no' | |
3599 | fi | |
698dcdb6 | 3600 | |
10f2d63a | 3601 | else |
698dcdb6 | 3602 | |
10f2d63a VZ |
3603 | LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}` |
3604 | if test "x$LINE" != x ; then | |
3605 | eval "DEFAULT_$LINE" | |
3606 | else | |
3607 | no_cache=1 | |
3608 | fi | |
3609 | ||
3610 | ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE | |
698dcdb6 VZ |
3611 | |
3612 | fi | |
10f2d63a VZ |
3613 | |
3614 | ||
3615 | eval "$ac_cv_use_file" | |
3616 | if test "$no_cache" != 1; then | |
3617 | echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp | |
3618 | fi | |
3619 | ||
3620 | if test "$wxUSE_FILE" = yes; then | |
698dcdb6 | 3621 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3622 | else |
698dcdb6 | 3623 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3624 | fi |
698dcdb6 | 3625 | |
10f2d63a | 3626 | |
1e6feb95 | 3627 | echo $ac_n "checking for --enable-ffile""... $ac_c" 1>&6 |
b3e8d00a | 3628 | echo "configure:3629: checking for --enable-ffile" >&5 |
10f2d63a | 3629 | no_cache=0 |
1e6feb95 VZ |
3630 | # Check whether --enable-ffile or --disable-ffile was given. |
3631 | if test "${enable_ffile+set}" = set; then | |
3632 | enableval="$enable_ffile" | |
698dcdb6 | 3633 | |
10f2d63a | 3634 | if test "$enableval" = yes; then |
1e6feb95 | 3635 | ac_cv_use_ffile='wxUSE_FFILE=yes' |
10f2d63a | 3636 | else |
1e6feb95 | 3637 | ac_cv_use_ffile='wxUSE_FFILE=no' |
10f2d63a | 3638 | fi |
698dcdb6 | 3639 | |
10f2d63a | 3640 | else |
698dcdb6 | 3641 | |
1e6feb95 | 3642 | LINE=`grep "wxUSE_FFILE" ${wx_arg_cache_file}` |
10f2d63a VZ |
3643 | if test "x$LINE" != x ; then |
3644 | eval "DEFAULT_$LINE" | |
3645 | else | |
3646 | no_cache=1 | |
3647 | fi | |
3648 | ||
1e6feb95 | 3649 | ac_cv_use_ffile='wxUSE_FFILE='$DEFAULT_wxUSE_FFILE |
698dcdb6 VZ |
3650 | |
3651 | fi | |
10f2d63a VZ |
3652 | |
3653 | ||
1e6feb95 | 3654 | eval "$ac_cv_use_ffile" |
10f2d63a | 3655 | if test "$no_cache" != 1; then |
1e6feb95 | 3656 | echo $ac_cv_use_ffile >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
3657 | fi |
3658 | ||
1e6feb95 | 3659 | if test "$wxUSE_FFILE" = yes; then |
698dcdb6 | 3660 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3661 | else |
698dcdb6 | 3662 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3663 | fi |
698dcdb6 | 3664 | |
10f2d63a | 3665 | |
1e6feb95 | 3666 | echo $ac_n "checking for --enable-textfile""... $ac_c" 1>&6 |
b3e8d00a | 3667 | echo "configure:3668: checking for --enable-textfile" >&5 |
10f2d63a | 3668 | no_cache=0 |
1e6feb95 VZ |
3669 | # Check whether --enable-textfile or --disable-textfile was given. |
3670 | if test "${enable_textfile+set}" = set; then | |
3671 | enableval="$enable_textfile" | |
698dcdb6 | 3672 | |
10f2d63a | 3673 | if test "$enableval" = yes; then |
1e6feb95 | 3674 | ac_cv_use_textfile='wxUSE_TEXTFILE=yes' |
10f2d63a | 3675 | else |
1e6feb95 | 3676 | ac_cv_use_textfile='wxUSE_TEXTFILE=no' |
10f2d63a | 3677 | fi |
698dcdb6 | 3678 | |
10f2d63a | 3679 | else |
698dcdb6 | 3680 | |
1e6feb95 | 3681 | LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}` |
10f2d63a VZ |
3682 | if test "x$LINE" != x ; then |
3683 | eval "DEFAULT_$LINE" | |
3684 | else | |
3685 | no_cache=1 | |
3686 | fi | |
3687 | ||
1e6feb95 | 3688 | ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE |
698dcdb6 VZ |
3689 | |
3690 | fi | |
10f2d63a VZ |
3691 | |
3692 | ||
1e6feb95 | 3693 | eval "$ac_cv_use_textfile" |
10f2d63a | 3694 | if test "$no_cache" != 1; then |
1e6feb95 | 3695 | echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
3696 | fi |
3697 | ||
1e6feb95 | 3698 | if test "$wxUSE_TEXTFILE" = yes; then |
698dcdb6 | 3699 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3700 | else |
698dcdb6 | 3701 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3702 | fi |
698dcdb6 | 3703 | |
10f2d63a | 3704 | |
1e6feb95 | 3705 | echo $ac_n "checking for --enable-fontmap""... $ac_c" 1>&6 |
b3e8d00a | 3706 | echo "configure:3707: checking for --enable-fontmap" >&5 |
10f2d63a | 3707 | no_cache=0 |
1e6feb95 VZ |
3708 | # Check whether --enable-fontmap or --disable-fontmap was given. |
3709 | if test "${enable_fontmap+set}" = set; then | |
3710 | enableval="$enable_fontmap" | |
698dcdb6 | 3711 | |
10f2d63a | 3712 | if test "$enableval" = yes; then |
1e6feb95 | 3713 | ac_cv_use_fontmap='wxUSE_FONTMAP=yes' |
10f2d63a | 3714 | else |
1e6feb95 | 3715 | ac_cv_use_fontmap='wxUSE_FONTMAP=no' |
10f2d63a | 3716 | fi |
698dcdb6 | 3717 | |
10f2d63a | 3718 | else |
698dcdb6 | 3719 | |
1e6feb95 | 3720 | LINE=`grep "wxUSE_FONTMAP" ${wx_arg_cache_file}` |
10f2d63a VZ |
3721 | if test "x$LINE" != x ; then |
3722 | eval "DEFAULT_$LINE" | |
3723 | else | |
3724 | no_cache=1 | |
3725 | fi | |
3726 | ||
1e6feb95 | 3727 | ac_cv_use_fontmap='wxUSE_FONTMAP='$DEFAULT_wxUSE_FONTMAP |
698dcdb6 VZ |
3728 | |
3729 | fi | |
10f2d63a VZ |
3730 | |
3731 | ||
1e6feb95 | 3732 | eval "$ac_cv_use_fontmap" |
10f2d63a | 3733 | if test "$no_cache" != 1; then |
1e6feb95 | 3734 | echo $ac_cv_use_fontmap >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
3735 | fi |
3736 | ||
1e6feb95 | 3737 | if test "$wxUSE_FONTMAP" = yes; then |
698dcdb6 | 3738 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3739 | else |
698dcdb6 | 3740 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3741 | fi |
698dcdb6 | 3742 | |
10f2d63a | 3743 | |
1e6feb95 | 3744 | echo $ac_n "checking for --enable-unicode""... $ac_c" 1>&6 |
b3e8d00a | 3745 | echo "configure:3746: checking for --enable-unicode" >&5 |
10f2d63a | 3746 | no_cache=0 |
1e6feb95 VZ |
3747 | # Check whether --enable-unicode or --disable-unicode was given. |
3748 | if test "${enable_unicode+set}" = set; then | |
3749 | enableval="$enable_unicode" | |
3750 | ||
3751 | if test "$enableval" = yes; then | |
3752 | ac_cv_use_unicode='wxUSE_UNICODE=yes' | |
3753 | else | |
3754 | ac_cv_use_unicode='wxUSE_UNICODE=no' | |
3755 | fi | |
3756 | ||
3757 | else | |
3758 | ||
3759 | LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}` | |
3760 | if test "x$LINE" != x ; then | |
3761 | eval "DEFAULT_$LINE" | |
3762 | else | |
3763 | no_cache=1 | |
3764 | fi | |
3765 | ||
3766 | ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE | |
3767 | ||
3768 | fi | |
3769 | ||
3770 | ||
3771 | eval "$ac_cv_use_unicode" | |
3772 | if test "$no_cache" != 1; then | |
3773 | echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp | |
3774 | fi | |
3775 | ||
3776 | if test "$wxUSE_UNICODE" = yes; then | |
3777 | echo "$ac_t""yes" 1>&6 | |
3778 | else | |
3779 | echo "$ac_t""no" 1>&6 | |
3780 | fi | |
3781 | ||
3782 | ||
1e6feb95 | 3783 | echo $ac_n "checking for --enable-wxprintfv""... $ac_c" 1>&6 |
b3e8d00a | 3784 | echo "configure:3785: checking for --enable-wxprintfv" >&5 |
1e6feb95 VZ |
3785 | no_cache=0 |
3786 | # Check whether --enable-wxprintfv or --disable-wxprintfv was given. | |
3787 | if test "${enable_wxprintfv+set}" = set; then | |
3788 | enableval="$enable_wxprintfv" | |
3789 | ||
3790 | if test "$enableval" = yes; then | |
10f2d63a VZ |
3791 | ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=yes' |
3792 | else | |
3793 | ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=no' | |
3794 | fi | |
698dcdb6 | 3795 | |
10f2d63a | 3796 | else |
698dcdb6 | 3797 | |
10f2d63a VZ |
3798 | LINE=`grep "wxUSE_EXPERIMENTAL_PRINTF" ${wx_arg_cache_file}` |
3799 | if test "x$LINE" != x ; then | |
3800 | eval "DEFAULT_$LINE" | |
3801 | else | |
3802 | no_cache=1 | |
3803 | fi | |
3804 | ||
3805 | ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF='$DEFAULT_wxUSE_EXPERIMENTAL_PRINTF | |
698dcdb6 VZ |
3806 | |
3807 | fi | |
10f2d63a VZ |
3808 | |
3809 | ||
3810 | eval "$ac_cv_use_wxprintfv" | |
3811 | if test "$no_cache" != 1; then | |
3812 | echo $ac_cv_use_wxprintfv >> ${wx_arg_cache_file}.tmp | |
3813 | fi | |
3814 | ||
3815 | if test "$wxUSE_EXPERIMENTAL_PRINTF" = yes; then | |
698dcdb6 | 3816 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3817 | else |
698dcdb6 | 3818 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3819 | fi |
698dcdb6 | 3820 | |
10f2d63a | 3821 | |
698dcdb6 | 3822 | echo $ac_n "checking for --enable-std_iostreams""... $ac_c" 1>&6 |
b3e8d00a | 3823 | echo "configure:3824: checking for --enable-std_iostreams" >&5 |
10f2d63a VZ |
3824 | no_cache=0 |
3825 | # Check whether --enable-std_iostreams or --disable-std_iostreams was given. | |
3826 | if test "${enable_std_iostreams+set}" = set; then | |
3827 | enableval="$enable_std_iostreams" | |
698dcdb6 | 3828 | |
10f2d63a VZ |
3829 | if test "$enableval" = yes; then |
3830 | ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes' | |
3831 | else | |
3832 | ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no' | |
3833 | fi | |
698dcdb6 | 3834 | |
10f2d63a | 3835 | else |
698dcdb6 | 3836 | |
10f2d63a VZ |
3837 | LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}` |
3838 | if test "x$LINE" != x ; then | |
3839 | eval "DEFAULT_$LINE" | |
3840 | else | |
3841 | no_cache=1 | |
3842 | fi | |
3843 | ||
3844 | ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM | |
698dcdb6 VZ |
3845 | |
3846 | fi | |
10f2d63a VZ |
3847 | |
3848 | ||
3849 | eval "$ac_cv_use_std_iostreams" | |
3850 | if test "$no_cache" != 1; then | |
3851 | echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp | |
3852 | fi | |
3853 | ||
3854 | if test "$wxUSE_STD_IOSTREAM" = yes; then | |
698dcdb6 | 3855 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3856 | else |
698dcdb6 | 3857 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3858 | fi |
698dcdb6 | 3859 | |
10f2d63a | 3860 | |
698dcdb6 | 3861 | echo $ac_n "checking for --enable-filesystem""... $ac_c" 1>&6 |
b3e8d00a | 3862 | echo "configure:3863: checking for --enable-filesystem" >&5 |
24528b0c VS |
3863 | no_cache=0 |
3864 | # Check whether --enable-filesystem or --disable-filesystem was given. | |
3865 | if test "${enable_filesystem+set}" = set; then | |
3866 | enableval="$enable_filesystem" | |
698dcdb6 | 3867 | |
24528b0c VS |
3868 | if test "$enableval" = yes; then |
3869 | ac_cv_use_filesystem='wxUSE_FILESYSTEM=yes' | |
3870 | else | |
3871 | ac_cv_use_filesystem='wxUSE_FILESYSTEM=no' | |
3872 | fi | |
698dcdb6 | 3873 | |
24528b0c | 3874 | else |
698dcdb6 | 3875 | |
24528b0c VS |
3876 | LINE=`grep "wxUSE_FILESYSTEM" ${wx_arg_cache_file}` |
3877 | if test "x$LINE" != x ; then | |
3878 | eval "DEFAULT_$LINE" | |
3879 | else | |
3880 | no_cache=1 | |
3881 | fi | |
3882 | ||
3883 | ac_cv_use_filesystem='wxUSE_FILESYSTEM='$DEFAULT_wxUSE_FILESYSTEM | |
698dcdb6 VZ |
3884 | |
3885 | fi | |
24528b0c VS |
3886 | |
3887 | ||
3888 | eval "$ac_cv_use_filesystem" | |
3889 | if test "$no_cache" != 1; then | |
3890 | echo $ac_cv_use_filesystem >> ${wx_arg_cache_file}.tmp | |
3891 | fi | |
3892 | ||
3893 | if test "$wxUSE_FILESYSTEM" = yes; then | |
698dcdb6 | 3894 | echo "$ac_t""yes" 1>&6 |
24528b0c | 3895 | else |
698dcdb6 | 3896 | echo "$ac_t""no" 1>&6 |
24528b0c | 3897 | fi |
698dcdb6 | 3898 | |
24528b0c | 3899 | |
698dcdb6 | 3900 | echo $ac_n "checking for --enable-fs_inet""... $ac_c" 1>&6 |
b3e8d00a | 3901 | echo "configure:3902: checking for --enable-fs_inet" >&5 |
10f2d63a VZ |
3902 | no_cache=0 |
3903 | # Check whether --enable-fs_inet or --disable-fs_inet was given. | |
3904 | if test "${enable_fs_inet+set}" = set; then | |
3905 | enableval="$enable_fs_inet" | |
698dcdb6 | 3906 | |
10f2d63a VZ |
3907 | if test "$enableval" = yes; then |
3908 | ac_cv_use_fs_inet='wxUSE_FS_INET=yes' | |
3909 | else | |
3910 | ac_cv_use_fs_inet='wxUSE_FS_INET=no' | |
3911 | fi | |
698dcdb6 | 3912 | |
10f2d63a | 3913 | else |
698dcdb6 | 3914 | |
10f2d63a VZ |
3915 | LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}` |
3916 | if test "x$LINE" != x ; then | |
3917 | eval "DEFAULT_$LINE" | |
3918 | else | |
3919 | no_cache=1 | |
3920 | fi | |
3921 | ||
3922 | ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET | |
698dcdb6 VZ |
3923 | |
3924 | fi | |
10f2d63a VZ |
3925 | |
3926 | ||
3927 | eval "$ac_cv_use_fs_inet" | |
3928 | if test "$no_cache" != 1; then | |
3929 | echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp | |
3930 | fi | |
3931 | ||
3932 | if test "$wxUSE_FS_INET" = yes; then | |
698dcdb6 | 3933 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3934 | else |
698dcdb6 | 3935 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3936 | fi |
698dcdb6 | 3937 | |
10f2d63a | 3938 | |
698dcdb6 | 3939 | echo $ac_n "checking for --enable-fs_zip""... $ac_c" 1>&6 |
b3e8d00a | 3940 | echo "configure:3941: checking for --enable-fs_zip" >&5 |
10f2d63a VZ |
3941 | no_cache=0 |
3942 | # Check whether --enable-fs_zip or --disable-fs_zip was given. | |
3943 | if test "${enable_fs_zip+set}" = set; then | |
3944 | enableval="$enable_fs_zip" | |
698dcdb6 | 3945 | |
10f2d63a VZ |
3946 | if test "$enableval" = yes; then |
3947 | ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes' | |
3948 | else | |
3949 | ac_cv_use_fs_zip='wxUSE_FS_ZIP=no' | |
3950 | fi | |
698dcdb6 | 3951 | |
10f2d63a | 3952 | else |
698dcdb6 | 3953 | |
10f2d63a VZ |
3954 | LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}` |
3955 | if test "x$LINE" != x ; then | |
3956 | eval "DEFAULT_$LINE" | |
3957 | else | |
3958 | no_cache=1 | |
3959 | fi | |
3960 | ||
3961 | ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP | |
698dcdb6 VZ |
3962 | |
3963 | fi | |
10f2d63a VZ |
3964 | |
3965 | ||
3966 | eval "$ac_cv_use_fs_zip" | |
3967 | if test "$no_cache" != 1; then | |
3968 | echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp | |
3969 | fi | |
3970 | ||
3971 | if test "$wxUSE_FS_ZIP" = yes; then | |
698dcdb6 | 3972 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3973 | else |
698dcdb6 | 3974 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3975 | fi |
698dcdb6 | 3976 | |
10f2d63a | 3977 | |
698dcdb6 | 3978 | echo $ac_n "checking for --enable-zipstream""... $ac_c" 1>&6 |
b3e8d00a | 3979 | echo "configure:3980: checking for --enable-zipstream" >&5 |
10f2d63a VZ |
3980 | no_cache=0 |
3981 | # Check whether --enable-zipstream or --disable-zipstream was given. | |
3982 | if test "${enable_zipstream+set}" = set; then | |
3983 | enableval="$enable_zipstream" | |
698dcdb6 | 3984 | |
10f2d63a VZ |
3985 | if test "$enableval" = yes; then |
3986 | ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes' | |
3987 | else | |
3988 | ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no' | |
3989 | fi | |
698dcdb6 | 3990 | |
10f2d63a | 3991 | else |
698dcdb6 | 3992 | |
10f2d63a VZ |
3993 | LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}` |
3994 | if test "x$LINE" != x ; then | |
3995 | eval "DEFAULT_$LINE" | |
3996 | else | |
3997 | no_cache=1 | |
3998 | fi | |
3999 | ||
4000 | ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM | |
698dcdb6 VZ |
4001 | |
4002 | fi | |
10f2d63a VZ |
4003 | |
4004 | ||
4005 | eval "$ac_cv_use_zipstream" | |
4006 | if test "$no_cache" != 1; then | |
4007 | echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp | |
4008 | fi | |
4009 | ||
4010 | if test "$wxUSE_ZIPSTREAM" = yes; then | |
698dcdb6 | 4011 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4012 | else |
698dcdb6 | 4013 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4014 | fi |
698dcdb6 | 4015 | |
10f2d63a | 4016 | |
698dcdb6 VZ |
4017 | |
4018 | echo $ac_n "checking for --enable-catch_segvs""... $ac_c" 1>&6 | |
b3e8d00a | 4019 | echo "configure:4020: checking for --enable-catch_segvs" >&5 |
eb4efbdc VZ |
4020 | no_cache=0 |
4021 | # Check whether --enable-catch_segvs or --disable-catch_segvs was given. | |
4022 | if test "${enable_catch_segvs+set}" = set; then | |
4023 | enableval="$enable_catch_segvs" | |
698dcdb6 | 4024 | |
eb4efbdc VZ |
4025 | if test "$enableval" = yes; then |
4026 | ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes' | |
4027 | else | |
4028 | ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no' | |
4029 | fi | |
698dcdb6 | 4030 | |
eb4efbdc | 4031 | else |
698dcdb6 | 4032 | |
eb4efbdc VZ |
4033 | LINE=`grep "wxUSE_ON_FATAL_EXCEPTION" ${wx_arg_cache_file}` |
4034 | if test "x$LINE" != x ; then | |
4035 | eval "DEFAULT_$LINE" | |
4036 | else | |
4037 | no_cache=1 | |
4038 | fi | |
4039 | ||
4040 | ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION='$DEFAULT_wxUSE_ON_FATAL_EXCEPTION | |
698dcdb6 VZ |
4041 | |
4042 | fi | |
eb4efbdc VZ |
4043 | |
4044 | ||
4045 | eval "$ac_cv_use_catch_segvs" | |
4046 | if test "$no_cache" != 1; then | |
4047 | echo $ac_cv_use_catch_segvs >> ${wx_arg_cache_file}.tmp | |
4048 | fi | |
4049 | ||
4050 | if test "$wxUSE_ON_FATAL_EXCEPTION" = yes; then | |
698dcdb6 | 4051 | echo "$ac_t""yes" 1>&6 |
eb4efbdc | 4052 | else |
698dcdb6 | 4053 | echo "$ac_t""no" 1>&6 |
eb4efbdc | 4054 | fi |
698dcdb6 | 4055 | |
eb4efbdc | 4056 | |
698dcdb6 | 4057 | echo $ac_n "checking for --enable-snglinst""... $ac_c" 1>&6 |
b3e8d00a | 4058 | echo "configure:4059: checking for --enable-snglinst" >&5 |
4f3c5f06 VZ |
4059 | no_cache=0 |
4060 | # Check whether --enable-snglinst or --disable-snglinst was given. | |
4061 | if test "${enable_snglinst+set}" = set; then | |
4062 | enableval="$enable_snglinst" | |
698dcdb6 | 4063 | |
4f3c5f06 VZ |
4064 | if test "$enableval" = yes; then |
4065 | ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=yes' | |
4066 | else | |
4067 | ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=no' | |
4068 | fi | |
698dcdb6 | 4069 | |
4f3c5f06 | 4070 | else |
698dcdb6 | 4071 | |
4f3c5f06 VZ |
4072 | LINE=`grep "wxUSE_SNGLINST_CHECKER" ${wx_arg_cache_file}` |
4073 | if test "x$LINE" != x ; then | |
4074 | eval "DEFAULT_$LINE" | |
4075 | else | |
4076 | no_cache=1 | |
4077 | fi | |
4078 | ||
4079 | ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER='$DEFAULT_wxUSE_SNGLINST_CHECKER | |
698dcdb6 VZ |
4080 | |
4081 | fi | |
4f3c5f06 VZ |
4082 | |
4083 | ||
4084 | eval "$ac_cv_use_snglinst" | |
4085 | if test "$no_cache" != 1; then | |
4086 | echo $ac_cv_use_snglinst >> ${wx_arg_cache_file}.tmp | |
4087 | fi | |
4088 | ||
4089 | if test "$wxUSE_SNGLINST_CHECKER" = yes; then | |
698dcdb6 | 4090 | echo "$ac_t""yes" 1>&6 |
4f3c5f06 | 4091 | else |
698dcdb6 | 4092 | echo "$ac_t""no" 1>&6 |
4f3c5f06 | 4093 | fi |
698dcdb6 VZ |
4094 | |
4095 | ||
eb4efbdc | 4096 | |
1e6feb95 | 4097 | echo $ac_n "checking for --enable-mimetype""... $ac_c" 1>&6 |
b3e8d00a | 4098 | echo "configure:4099: checking for --enable-mimetype" >&5 |
1e6feb95 VZ |
4099 | no_cache=0 |
4100 | # Check whether --enable-mimetype or --disable-mimetype was given. | |
4101 | if test "${enable_mimetype+set}" = set; then | |
4102 | enableval="$enable_mimetype" | |
4103 | ||
4104 | if test "$enableval" = yes; then | |
4105 | ac_cv_use_mimetype='wxUSE_MIMETYPE=yes' | |
4106 | else | |
4107 | ac_cv_use_mimetype='wxUSE_MIMETYPE=no' | |
4108 | fi | |
4109 | ||
4110 | else | |
4111 | ||
4112 | LINE=`grep "wxUSE_MIMETYPE" ${wx_arg_cache_file}` | |
4113 | if test "x$LINE" != x ; then | |
4114 | eval "DEFAULT_$LINE" | |
4115 | else | |
4116 | no_cache=1 | |
4117 | fi | |
4118 | ||
4119 | ac_cv_use_mimetype='wxUSE_MIMETYPE='$DEFAULT_wxUSE_MIMETYPE | |
4120 | ||
4121 | fi | |
4122 | ||
4123 | ||
4124 | eval "$ac_cv_use_mimetype" | |
4125 | if test "$no_cache" != 1; then | |
4126 | echo $ac_cv_use_mimetype >> ${wx_arg_cache_file}.tmp | |
4127 | fi | |
4128 | ||
4129 | if test "$wxUSE_MIMETYPE" = yes; then | |
4130 | echo "$ac_t""yes" 1>&6 | |
4131 | else | |
4132 | echo "$ac_t""no" 1>&6 | |
4133 | fi | |
4134 | ||
4135 | ||
3e44f09d | 4136 | echo $ac_n "checking for --enable-system_options""... $ac_c" 1>&6 |
b3e8d00a | 4137 | echo "configure:4138: checking for --enable-system_options" >&5 |
3e44f09d VZ |
4138 | no_cache=0 |
4139 | # Check whether --enable-system_options or --disable-system_options was given. | |
4140 | if test "${enable_system_options+set}" = set; then | |
4141 | enableval="$enable_system_options" | |
4142 | ||
4143 | if test "$enableval" = yes; then | |
4144 | ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=yes' | |
4145 | else | |
4146 | ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=no' | |
4147 | fi | |
4148 | ||
4149 | else | |
4150 | ||
4151 | LINE=`grep "wxUSE_SYSTEM_OPTIONS" ${wx_arg_cache_file}` | |
4152 | if test "x$LINE" != x ; then | |
4153 | eval "DEFAULT_$LINE" | |
4154 | else | |
4155 | no_cache=1 | |
4156 | fi | |
4157 | ||
4158 | ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS='$DEFAULT_wxUSE_SYSTEM_OPTIONS | |
4159 | ||
4160 | fi | |
4161 | ||
4162 | ||
4163 | eval "$ac_cv_use_system_options" | |
4164 | if test "$no_cache" != 1; then | |
4165 | echo $ac_cv_use_system_options >> ${wx_arg_cache_file}.tmp | |
4166 | fi | |
4167 | ||
4168 | if test "$wxUSE_SYSTEM_OPTIONS" = yes; then | |
4169 | echo "$ac_t""yes" 1>&6 | |
4170 | else | |
4171 | echo "$ac_t""no" 1>&6 | |
4172 | fi | |
4173 | ||
4174 | ||
1e6feb95 | 4175 | |
698dcdb6 VZ |
4176 | |
4177 | echo $ac_n "checking for --enable-threads""... $ac_c" 1>&6 | |
b3e8d00a | 4178 | echo "configure:4179: checking for --enable-threads" >&5 |
10f2d63a VZ |
4179 | no_cache=0 |
4180 | # Check whether --enable-threads or --disable-threads was given. | |
4181 | if test "${enable_threads+set}" = set; then | |
4182 | enableval="$enable_threads" | |
698dcdb6 | 4183 | |
10f2d63a VZ |
4184 | if test "$enableval" = yes; then |
4185 | ac_cv_use_threads='wxUSE_THREADS=yes' | |
4186 | else | |
4187 | ac_cv_use_threads='wxUSE_THREADS=no' | |
4188 | fi | |
698dcdb6 | 4189 | |
10f2d63a | 4190 | else |
698dcdb6 | 4191 | |
10f2d63a VZ |
4192 | LINE=`grep "wxUSE_THREADS" ${wx_arg_cache_file}` |
4193 | if test "x$LINE" != x ; then | |
4194 | eval "DEFAULT_$LINE" | |
4195 | else | |
4196 | no_cache=1 | |
4197 | fi | |
4198 | ||
4199 | ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS | |
698dcdb6 VZ |
4200 | |
4201 | fi | |
10f2d63a VZ |
4202 | |
4203 | ||
4204 | eval "$ac_cv_use_threads" | |
4205 | if test "$no_cache" != 1; then | |
4206 | echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp | |
4207 | fi | |
4208 | ||
4209 | if test "$wxUSE_THREADS" = yes; then | |
698dcdb6 | 4210 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4211 | else |
698dcdb6 | 4212 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4213 | fi |
698dcdb6 | 4214 | |
10f2d63a | 4215 | |
698dcdb6 | 4216 | echo $ac_n "checking for --enable-serial""... $ac_c" 1>&6 |
b3e8d00a | 4217 | echo "configure:4218: checking for --enable-serial" >&5 |
10f2d63a VZ |
4218 | no_cache=0 |
4219 | # Check whether --enable-serial or --disable-serial was given. | |
4220 | if test "${enable_serial+set}" = set; then | |
4221 | enableval="$enable_serial" | |
698dcdb6 | 4222 | |
10f2d63a VZ |
4223 | if test "$enableval" = yes; then |
4224 | ac_cv_use_serial='wxUSE_SERIAL=yes' | |
4225 | else | |
4226 | ac_cv_use_serial='wxUSE_SERIAL=no' | |
4227 | fi | |
698dcdb6 | 4228 | |
10f2d63a | 4229 | else |
698dcdb6 | 4230 | |
10f2d63a VZ |
4231 | LINE=`grep "wxUSE_SERIAL" ${wx_arg_cache_file}` |
4232 | if test "x$LINE" != x ; then | |
4233 | eval "DEFAULT_$LINE" | |
4234 | else | |
4235 | no_cache=1 | |
4236 | fi | |
4237 | ||
4238 | ac_cv_use_serial='wxUSE_SERIAL='$DEFAULT_wxUSE_SERIAL | |
698dcdb6 VZ |
4239 | |
4240 | fi | |
10f2d63a VZ |
4241 | |
4242 | ||
4243 | eval "$ac_cv_use_serial" | |
4244 | if test "$no_cache" != 1; then | |
4245 | echo $ac_cv_use_serial >> ${wx_arg_cache_file}.tmp | |
4246 | fi | |
4247 | ||
4248 | if test "$wxUSE_SERIAL" = yes; then | |
698dcdb6 | 4249 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4250 | else |
698dcdb6 | 4251 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4252 | fi |
698dcdb6 | 4253 | |
10f2d63a | 4254 | |
b12915c1 VZ |
4255 | if test "$wxUSE_GUI" = "yes"; then |
4256 | ||
698dcdb6 VZ |
4257 | |
4258 | ||
4259 | echo $ac_n "checking for --enable-docview""... $ac_c" 1>&6 | |
b3e8d00a | 4260 | echo "configure:4261: checking for --enable-docview" >&5 |
10f2d63a VZ |
4261 | no_cache=0 |
4262 | # Check whether --enable-docview or --disable-docview was given. | |
4263 | if test "${enable_docview+set}" = set; then | |
4264 | enableval="$enable_docview" | |
698dcdb6 | 4265 | |
10f2d63a VZ |
4266 | if test "$enableval" = yes; then |
4267 | ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes' | |
4268 | else | |
4269 | ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no' | |
4270 | fi | |
698dcdb6 | 4271 | |
10f2d63a | 4272 | else |
698dcdb6 | 4273 | |
10f2d63a VZ |
4274 | LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}` |
4275 | if test "x$LINE" != x ; then | |
4276 | eval "DEFAULT_$LINE" | |
4277 | else | |
4278 | no_cache=1 | |
4279 | fi | |
4280 | ||
4281 | ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE | |
698dcdb6 VZ |
4282 | |
4283 | fi | |
10f2d63a VZ |
4284 | |
4285 | ||
4286 | eval "$ac_cv_use_docview" | |
4287 | if test "$no_cache" != 1; then | |
4288 | echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp | |
4289 | fi | |
4290 | ||
4291 | if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then | |
698dcdb6 | 4292 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4293 | else |
698dcdb6 | 4294 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4295 | fi |
698dcdb6 | 4296 | |
10f2d63a | 4297 | |
698dcdb6 | 4298 | echo $ac_n "checking for --enable-help""... $ac_c" 1>&6 |
b3e8d00a | 4299 | echo "configure:4300: checking for --enable-help" >&5 |
10f2d63a VZ |
4300 | no_cache=0 |
4301 | # Check whether --enable-help or --disable-help was given. | |
4302 | if test "${enable_help+set}" = set; then | |
4303 | enableval="$enable_help" | |
698dcdb6 | 4304 | |
10f2d63a VZ |
4305 | if test "$enableval" = yes; then |
4306 | ac_cv_use_help='wxUSE_HELP=yes' | |
4307 | else | |
4308 | ac_cv_use_help='wxUSE_HELP=no' | |
4309 | fi | |
698dcdb6 | 4310 | |
10f2d63a | 4311 | else |
698dcdb6 | 4312 | |
10f2d63a VZ |
4313 | LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}` |
4314 | if test "x$LINE" != x ; then | |
4315 | eval "DEFAULT_$LINE" | |
4316 | else | |
4317 | no_cache=1 | |
4318 | fi | |
4319 | ||
4320 | ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP | |
698dcdb6 VZ |
4321 | |
4322 | fi | |
10f2d63a VZ |
4323 | |
4324 | ||
4325 | eval "$ac_cv_use_help" | |
4326 | if test "$no_cache" != 1; then | |
4327 | echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp | |
4328 | fi | |
4329 | ||
4330 | if test "$wxUSE_HELP" = yes; then | |
698dcdb6 | 4331 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4332 | else |
698dcdb6 | 4333 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4334 | fi |
698dcdb6 | 4335 | |
10f2d63a | 4336 | |
29fd3c0c | 4337 | echo $ac_n "checking for --enable-mshtmlhelp""... $ac_c" 1>&6 |
b3e8d00a | 4338 | echo "configure:4339: checking for --enable-mshtmlhelp" >&5 |
29fd3c0c VS |
4339 | no_cache=0 |
4340 | # Check whether --enable-mshtmlhelp or --disable-mshtmlhelp was given. | |
4341 | if test "${enable_mshtmlhelp+set}" = set; then | |
4342 | enableval="$enable_mshtmlhelp" | |
4343 | ||
4344 | if test "$enableval" = yes; then | |
4345 | ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=yes' | |
4346 | else | |
4347 | ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=no' | |
4348 | fi | |
4349 | ||
4350 | else | |
4351 | ||
4352 | LINE=`grep "wxUSE_MS_HTML_HELP" ${wx_arg_cache_file}` | |
4353 | if test "x$LINE" != x ; then | |
4354 | eval "DEFAULT_$LINE" | |
4355 | else | |
4356 | no_cache=1 | |
4357 | fi | |
4358 | ||
4359 | ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP='$DEFAULT_wxUSE_MS_HTML_HELP | |
4360 | ||
4361 | fi | |
4362 | ||
4363 | ||
4364 | eval "$ac_cv_use_mshtmlhelp" | |
4365 | if test "$no_cache" != 1; then | |
4366 | echo $ac_cv_use_mshtmlhelp >> ${wx_arg_cache_file}.tmp | |
4367 | fi | |
4368 | ||
4369 | if test "$wxUSE_MS_HTML_HELP" = yes; then | |
4370 | echo "$ac_t""yes" 1>&6 | |
4371 | else | |
4372 | echo "$ac_t""no" 1>&6 | |
4373 | fi | |
4374 | ||
4375 | ||
3379ed37 | 4376 | echo $ac_n "checking for --enable-html""... $ac_c" 1>&6 |
b3e8d00a | 4377 | echo "configure:4378: checking for --enable-html" >&5 |
3379ed37 VZ |
4378 | no_cache=0 |
4379 | # Check whether --enable-html or --disable-html was given. | |
4380 | if test "${enable_html+set}" = set; then | |
4381 | enableval="$enable_html" | |
4382 | ||
4383 | if test "$enableval" = yes; then | |
4384 | ac_cv_use_html='wxUSE_HTML=yes' | |
4385 | else | |
4386 | ac_cv_use_html='wxUSE_HTML=no' | |
4387 | fi | |
4388 | ||
4389 | else | |
4390 | ||
4391 | LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}` | |
4392 | if test "x$LINE" != x ; then | |
4393 | eval "DEFAULT_$LINE" | |
4394 | else | |
4395 | no_cache=1 | |
4396 | fi | |
4397 | ||
4398 | ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML | |
4399 | ||
4400 | fi | |
4401 | ||
4402 | ||
4403 | eval "$ac_cv_use_html" | |
4404 | if test "$no_cache" != 1; then | |
4405 | echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp | |
4406 | fi | |
4407 | ||
4408 | if test "$wxUSE_HTML" = yes; then | |
4409 | echo "$ac_t""yes" 1>&6 | |
4410 | else | |
4411 | echo "$ac_t""no" 1>&6 | |
4412 | fi | |
4413 | ||
4414 | ||
4415 | echo $ac_n "checking for --enable-htmlhelp""... $ac_c" 1>&6 | |
b3e8d00a | 4416 | echo "configure:4417: checking for --enable-htmlhelp" >&5 |
3379ed37 VZ |
4417 | no_cache=0 |
4418 | # Check whether --enable-htmlhelp or --disable-htmlhelp was given. | |
4419 | if test "${enable_htmlhelp+set}" = set; then | |
4420 | enableval="$enable_htmlhelp" | |
4421 | ||
4422 | if test "$enableval" = yes; then | |
4423 | ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=yes' | |
4424 | else | |
4425 | ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=no' | |
4426 | fi | |
4427 | ||
4428 | else | |
4429 | ||
4430 | LINE=`grep "wxUSE_WXHTML_HELP" ${wx_arg_cache_file}` | |
4431 | if test "x$LINE" != x ; then | |
4432 | eval "DEFAULT_$LINE" | |
4433 | else | |
4434 | no_cache=1 | |
4435 | fi | |
4436 | ||
4437 | ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP='$DEFAULT_wxUSE_WXHTML_HELP | |
4438 | ||
4439 | fi | |
4440 | ||
4441 | ||
4442 | eval "$ac_cv_use_htmlhelp" | |
4443 | if test "$no_cache" != 1; then | |
4444 | echo $ac_cv_use_htmlhelp >> ${wx_arg_cache_file}.tmp | |
4445 | fi | |
4446 | ||
4447 | if test "$wxUSE_WXHTML_HELP" = yes; then | |
4448 | echo "$ac_t""yes" 1>&6 | |
4449 | else | |
4450 | echo "$ac_t""no" 1>&6 | |
4451 | fi | |
4452 | ||
4453 | ||
698dcdb6 | 4454 | echo $ac_n "checking for --enable-constraints""... $ac_c" 1>&6 |
b3e8d00a | 4455 | echo "configure:4456: checking for --enable-constraints" >&5 |
10f2d63a VZ |
4456 | no_cache=0 |
4457 | # Check whether --enable-constraints or --disable-constraints was given. | |
4458 | if test "${enable_constraints+set}" = set; then | |
4459 | enableval="$enable_constraints" | |
698dcdb6 | 4460 | |
10f2d63a VZ |
4461 | if test "$enableval" = yes; then |
4462 | ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes' | |
4463 | else | |
4464 | ac_cv_use_constraints='wxUSE_CONSTRAINTS=no' | |
4465 | fi | |
698dcdb6 | 4466 | |
10f2d63a | 4467 | else |
698dcdb6 | 4468 | |
10f2d63a VZ |
4469 | LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}` |
4470 | if test "x$LINE" != x ; then | |
4471 | eval "DEFAULT_$LINE" | |
4472 | else | |
4473 | no_cache=1 | |
4474 | fi | |
4475 | ||
4476 | ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS | |
698dcdb6 VZ |
4477 | |
4478 | fi | |
10f2d63a VZ |
4479 | |
4480 | ||
4481 | eval "$ac_cv_use_constraints" | |
4482 | if test "$no_cache" != 1; then | |
4483 | echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp | |
4484 | fi | |
4485 | ||
4486 | if test "$wxUSE_CONSTRAINTS" = yes; then | |
698dcdb6 | 4487 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4488 | else |
698dcdb6 | 4489 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4490 | fi |
698dcdb6 | 4491 | |
10f2d63a | 4492 | |
698dcdb6 | 4493 | echo $ac_n "checking for --enable-printarch""... $ac_c" 1>&6 |
b3e8d00a | 4494 | echo "configure:4495: checking for --enable-printarch" >&5 |
10f2d63a VZ |
4495 | no_cache=0 |
4496 | # Check whether --enable-printarch or --disable-printarch was given. | |
4497 | if test "${enable_printarch+set}" = set; then | |
4498 | enableval="$enable_printarch" | |
698dcdb6 | 4499 | |
10f2d63a VZ |
4500 | if test "$enableval" = yes; then |
4501 | ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes' | |
4502 | else | |
4503 | ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no' | |
4504 | fi | |
698dcdb6 | 4505 | |
10f2d63a | 4506 | else |
698dcdb6 | 4507 | |
10f2d63a VZ |
4508 | LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}` |
4509 | if test "x$LINE" != x ; then | |
4510 | eval "DEFAULT_$LINE" | |
4511 | else | |
4512 | no_cache=1 | |
4513 | fi | |
4514 | ||
4515 | ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE | |
698dcdb6 VZ |
4516 | |
4517 | fi | |
10f2d63a VZ |
4518 | |
4519 | ||
4520 | eval "$ac_cv_use_printarch" | |
4521 | if test "$no_cache" != 1; then | |
4522 | echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp | |
4523 | fi | |
4524 | ||
4525 | if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then | |
698dcdb6 | 4526 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4527 | else |
698dcdb6 | 4528 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4529 | fi |
698dcdb6 | 4530 | |
10f2d63a | 4531 | |
698dcdb6 | 4532 | echo $ac_n "checking for --enable-mdi""... $ac_c" 1>&6 |
b3e8d00a | 4533 | echo "configure:4534: checking for --enable-mdi" >&5 |
10f2d63a VZ |
4534 | no_cache=0 |
4535 | # Check whether --enable-mdi or --disable-mdi was given. | |
4536 | if test "${enable_mdi+set}" = set; then | |
4537 | enableval="$enable_mdi" | |
698dcdb6 | 4538 | |
10f2d63a VZ |
4539 | if test "$enableval" = yes; then |
4540 | ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=yes' | |
4541 | else | |
4542 | ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=no' | |
4543 | fi | |
698dcdb6 | 4544 | |
10f2d63a | 4545 | else |
698dcdb6 | 4546 | |
10f2d63a VZ |
4547 | LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}` |
4548 | if test "x$LINE" != x ; then | |
4549 | eval "DEFAULT_$LINE" | |
4550 | else | |
4551 | no_cache=1 | |
4552 | fi | |
4553 | ||
4554 | ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE | |
698dcdb6 VZ |
4555 | |
4556 | fi | |
10f2d63a VZ |
4557 | |
4558 | ||
4559 | eval "$ac_cv_use_mdi" | |
4560 | if test "$no_cache" != 1; then | |
4561 | echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp | |
4562 | fi | |
4563 | ||
4564 | if test "$wxUSE_MDI_ARCHITECTURE" = yes; then | |
698dcdb6 | 4565 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4566 | else |
698dcdb6 | 4567 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4568 | fi |
698dcdb6 VZ |
4569 | |
4570 | ||
1e6feb95 | 4571 | echo $ac_n "checking for --enable-loggui""... $ac_c" 1>&6 |
b3e8d00a | 4572 | echo "configure:4573: checking for --enable-loggui" >&5 |
1e6feb95 VZ |
4573 | no_cache=0 |
4574 | # Check whether --enable-loggui or --disable-loggui was given. | |
4575 | if test "${enable_loggui+set}" = set; then | |
4576 | enableval="$enable_loggui" | |
4577 | ||
4578 | if test "$enableval" = yes; then | |
4579 | ac_cv_use_loggui='wxUSE_LOGGUI=yes' | |
4580 | else | |
4581 | ac_cv_use_loggui='wxUSE_LOGGUI=no' | |
4582 | fi | |
4583 | ||
4584 | else | |
4585 | ||
4586 | LINE=`grep "wxUSE_LOGGUI" ${wx_arg_cache_file}` | |
4587 | if test "x$LINE" != x ; then | |
4588 | eval "DEFAULT_$LINE" | |
4589 | else | |
4590 | no_cache=1 | |
4591 | fi | |
4592 | ||
4593 | ac_cv_use_loggui='wxUSE_LOGGUI='$DEFAULT_wxUSE_LOGGUI | |
4594 | ||
4595 | fi | |
4596 | ||
4597 | ||
4598 | eval "$ac_cv_use_loggui" | |
4599 | if test "$no_cache" != 1; then | |
4600 | echo $ac_cv_use_loggui >> ${wx_arg_cache_file}.tmp | |
4601 | fi | |
4602 | ||
4603 | if test "$wxUSE_LOGGUI" = yes; then | |
4604 | echo "$ac_t""yes" 1>&6 | |
4605 | else | |
4606 | echo "$ac_t""no" 1>&6 | |
4607 | fi | |
4608 | ||
4609 | ||
4610 | echo $ac_n "checking for --enable-logwin""... $ac_c" 1>&6 | |
b3e8d00a | 4611 | echo "configure:4612: checking for --enable-logwin" >&5 |
1e6feb95 VZ |
4612 | no_cache=0 |
4613 | # Check whether --enable-logwin or --disable-logwin was given. | |
4614 | if test "${enable_logwin+set}" = set; then | |
4615 | enableval="$enable_logwin" | |
4616 | ||
4617 | if test "$enableval" = yes; then | |
4618 | ac_cv_use_logwin='wxUSE_LOGWINDOW=yes' | |
4619 | else | |
4620 | ac_cv_use_logwin='wxUSE_LOGWINDOW=no' | |
4621 | fi | |
4622 | ||
4623 | else | |
4624 | ||
4625 | LINE=`grep "wxUSE_LOGWINDOW" ${wx_arg_cache_file}` | |
4626 | if test "x$LINE" != x ; then | |
4627 | eval "DEFAULT_$LINE" | |
4628 | else | |
4629 | no_cache=1 | |
4630 | fi | |
4631 | ||
4632 | ac_cv_use_logwin='wxUSE_LOGWINDOW='$DEFAULT_wxUSE_LOGWINDOW | |
4633 | ||
4634 | fi | |
4635 | ||
4636 | ||
4637 | eval "$ac_cv_use_logwin" | |
4638 | if test "$no_cache" != 1; then | |
4639 | echo $ac_cv_use_logwin >> ${wx_arg_cache_file}.tmp | |
4640 | fi | |
4641 | ||
4642 | if test "$wxUSE_LOGWINDOW" = yes; then | |
4643 | echo "$ac_t""yes" 1>&6 | |
4644 | else | |
4645 | echo "$ac_t""no" 1>&6 | |
4646 | fi | |
4647 | ||
4648 | ||
10f2d63a | 4649 | |
698dcdb6 | 4650 | echo $ac_n "checking for --enable-postscript""... $ac_c" 1>&6 |
b3e8d00a | 4651 | echo "configure:4652: checking for --enable-postscript" >&5 |
10f2d63a VZ |
4652 | no_cache=0 |
4653 | # Check whether --enable-postscript or --disable-postscript was given. | |
4654 | if test "${enable_postscript+set}" = set; then | |
4655 | enableval="$enable_postscript" | |
698dcdb6 | 4656 | |
10f2d63a VZ |
4657 | if test "$enableval" = yes; then |
4658 | ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes' | |
4659 | else | |
4660 | ac_cv_use_postscript='wxUSE_POSTSCRIPT=no' | |
4661 | fi | |
698dcdb6 | 4662 | |
10f2d63a | 4663 | else |
698dcdb6 | 4664 | |
10f2d63a VZ |
4665 | LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}` |
4666 | if test "x$LINE" != x ; then | |
4667 | eval "DEFAULT_$LINE" | |
4668 | else | |
4669 | no_cache=1 | |
4670 | fi | |
4671 | ||
4672 | ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT | |
698dcdb6 VZ |
4673 | |
4674 | fi | |
10f2d63a VZ |
4675 | |
4676 | ||
4677 | eval "$ac_cv_use_postscript" | |
4678 | if test "$no_cache" != 1; then | |
4679 | echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp | |
4680 | fi | |
4681 | ||
4682 | if test "$wxUSE_POSTSCRIPT" = yes; then | |
698dcdb6 | 4683 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4684 | else |
698dcdb6 | 4685 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4686 | fi |
698dcdb6 VZ |
4687 | |
4688 | ||
4689 | ||
10f2d63a | 4690 | |
1e6feb95 | 4691 | |
698dcdb6 | 4692 | echo $ac_n "checking for --enable-prologio""... $ac_c" 1>&6 |
b3e8d00a | 4693 | echo "configure:4694: checking for --enable-prologio" >&5 |
10f2d63a VZ |
4694 | no_cache=0 |
4695 | # Check whether --enable-prologio or --disable-prologio was given. | |
4696 | if test "${enable_prologio+set}" = set; then | |
4697 | enableval="$enable_prologio" | |
698dcdb6 | 4698 | |
10f2d63a VZ |
4699 | if test "$enableval" = yes; then |
4700 | ac_cv_use_prologio='wxUSE_PROLOGIO=yes' | |
4701 | else | |
4702 | ac_cv_use_prologio='wxUSE_PROLOGIO=no' | |
4703 | fi | |
698dcdb6 | 4704 | |
10f2d63a | 4705 | else |
698dcdb6 | 4706 | |
10f2d63a VZ |
4707 | LINE=`grep "wxUSE_PROLOGIO" ${wx_arg_cache_file}` |
4708 | if test "x$LINE" != x ; then | |
4709 | eval "DEFAULT_$LINE" | |
4710 | else | |
4711 | no_cache=1 | |
4712 | fi | |
4713 | ||
4714 | ac_cv_use_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO | |
698dcdb6 VZ |
4715 | |
4716 | fi | |
10f2d63a VZ |
4717 | |
4718 | ||
4719 | eval "$ac_cv_use_prologio" | |
4720 | if test "$no_cache" != 1; then | |
4721 | echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp | |
4722 | fi | |
4723 | ||
4724 | if test "$wxUSE_PROLOGIO" = yes; then | |
698dcdb6 | 4725 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4726 | else |
698dcdb6 | 4727 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4728 | fi |
698dcdb6 | 4729 | |
10f2d63a | 4730 | |
698dcdb6 | 4731 | echo $ac_n "checking for --enable-resources""... $ac_c" 1>&6 |
b3e8d00a | 4732 | echo "configure:4733: checking for --enable-resources" >&5 |
10f2d63a VZ |
4733 | no_cache=0 |
4734 | # Check whether --enable-resources or --disable-resources was given. | |
4735 | if test "${enable_resources+set}" = set; then | |
4736 | enableval="$enable_resources" | |
698dcdb6 | 4737 | |
10f2d63a VZ |
4738 | if test "$enableval" = yes; then |
4739 | ac_cv_use_resources='wxUSE_RESOURCES=yes' | |
4740 | else | |
4741 | ac_cv_use_resources='wxUSE_RESOURCES=no' | |
4742 | fi | |
698dcdb6 | 4743 | |
10f2d63a | 4744 | else |
698dcdb6 | 4745 | |
10f2d63a VZ |
4746 | LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}` |
4747 | if test "x$LINE" != x ; then | |
4748 | eval "DEFAULT_$LINE" | |
4749 | else | |
4750 | no_cache=1 | |
4751 | fi | |
4752 | ||
4753 | ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES | |
698dcdb6 VZ |
4754 | |
4755 | fi | |
10f2d63a VZ |
4756 | |
4757 | ||
4758 | eval "$ac_cv_use_resources" | |
4759 | if test "$no_cache" != 1; then | |
4760 | echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp | |
4761 | fi | |
4762 | ||
4763 | if test "$wxUSE_RESOURCES" = yes; then | |
698dcdb6 | 4764 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4765 | else |
698dcdb6 | 4766 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4767 | fi |
698dcdb6 | 4768 | |
10f2d63a | 4769 | |
698dcdb6 VZ |
4770 | |
4771 | echo $ac_n "checking for --enable-xresources""... $ac_c" 1>&6 | |
b3e8d00a | 4772 | echo "configure:4773: checking for --enable-xresources" >&5 |
10f2d63a VZ |
4773 | no_cache=0 |
4774 | # Check whether --enable-xresources or --disable-xresources was given. | |
4775 | if test "${enable_xresources+set}" = set; then | |
4776 | enableval="$enable_xresources" | |
698dcdb6 | 4777 | |
10f2d63a VZ |
4778 | if test "$enableval" = yes; then |
4779 | ac_cv_use_xresources='wxUSE_X_RESOURCES=yes' | |
4780 | else | |
4781 | ac_cv_use_xresources='wxUSE_X_RESOURCES=no' | |
4782 | fi | |
698dcdb6 | 4783 | |
10f2d63a | 4784 | else |
698dcdb6 | 4785 | |
10f2d63a VZ |
4786 | LINE=`grep "wxUSE_X_RESOURCES" ${wx_arg_cache_file}` |
4787 | if test "x$LINE" != x ; then | |
4788 | eval "DEFAULT_$LINE" | |
4789 | else | |
4790 | no_cache=1 | |
4791 | fi | |
4792 | ||
4793 | ac_cv_use_xresources='wxUSE_X_RESOURCES='$DEFAULT_wxUSE_X_RESOURCES | |
698dcdb6 VZ |
4794 | |
4795 | fi | |
10f2d63a VZ |
4796 | |
4797 | ||
4798 | eval "$ac_cv_use_xresources" | |
4799 | if test "$no_cache" != 1; then | |
4800 | echo $ac_cv_use_xresources >> ${wx_arg_cache_file}.tmp | |
4801 | fi | |
4802 | ||
4803 | if test "$wxUSE_X_RESOURCES" = yes; then | |
698dcdb6 | 4804 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4805 | else |
698dcdb6 | 4806 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4807 | fi |
698dcdb6 VZ |
4808 | |
4809 | ||
10f2d63a | 4810 | |
698dcdb6 VZ |
4811 | |
4812 | echo $ac_n "checking for --enable-clipboard""... $ac_c" 1>&6 | |
b3e8d00a | 4813 | echo "configure:4814: checking for --enable-clipboard" >&5 |
10f2d63a VZ |
4814 | no_cache=0 |
4815 | # Check whether --enable-clipboard or --disable-clipboard was given. | |
4816 | if test "${enable_clipboard+set}" = set; then | |
4817 | enableval="$enable_clipboard" | |
698dcdb6 | 4818 | |
10f2d63a VZ |
4819 | if test "$enableval" = yes; then |
4820 | ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes' | |
4821 | else | |
4822 | ac_cv_use_clipboard='wxUSE_CLIPBOARD=no' | |
4823 | fi | |
698dcdb6 | 4824 | |
10f2d63a | 4825 | else |
698dcdb6 | 4826 | |
10f2d63a VZ |
4827 | LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}` |
4828 | if test "x$LINE" != x ; then | |
4829 | eval "DEFAULT_$LINE" | |
4830 | else | |
4831 | no_cache=1 | |
4832 | fi | |
4833 | ||
4834 | ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD | |
698dcdb6 VZ |
4835 | |
4836 | fi | |
10f2d63a VZ |
4837 | |
4838 | ||
4839 | eval "$ac_cv_use_clipboard" | |
4840 | if test "$no_cache" != 1; then | |
4841 | echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp | |
4842 | fi | |
4843 | ||
4844 | if test "$wxUSE_CLIPBOARD" = yes; then | |
698dcdb6 | 4845 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4846 | else |
698dcdb6 | 4847 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4848 | fi |
698dcdb6 | 4849 | |
10f2d63a | 4850 | |
698dcdb6 | 4851 | echo $ac_n "checking for --enable-dnd""... $ac_c" 1>&6 |
b3e8d00a | 4852 | echo "configure:4853: checking for --enable-dnd" >&5 |
10f2d63a VZ |
4853 | no_cache=0 |
4854 | # Check whether --enable-dnd or --disable-dnd was given. | |
4855 | if test "${enable_dnd+set}" = set; then | |
4856 | enableval="$enable_dnd" | |
698dcdb6 | 4857 | |
10f2d63a VZ |
4858 | if test "$enableval" = yes; then |
4859 | ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes' | |
4860 | else | |
4861 | ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no' | |
4862 | fi | |
698dcdb6 | 4863 | |
10f2d63a | 4864 | else |
698dcdb6 | 4865 | |
10f2d63a VZ |
4866 | LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}` |
4867 | if test "x$LINE" != x ; then | |
4868 | eval "DEFAULT_$LINE" | |
4869 | else | |
4870 | no_cache=1 | |
4871 | fi | |
4872 | ||
4873 | ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP | |
698dcdb6 VZ |
4874 | |
4875 | fi | |
10f2d63a VZ |
4876 | |
4877 | ||
4878 | eval "$ac_cv_use_dnd" | |
4879 | if test "$no_cache" != 1; then | |
4880 | echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp | |
4881 | fi | |
4882 | ||
4883 | if test "$wxUSE_DRAG_AND_DROP" = yes; then | |
698dcdb6 | 4884 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4885 | else |
698dcdb6 | 4886 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4887 | fi |
698dcdb6 | 4888 | |
10f2d63a | 4889 | |
698dcdb6 | 4890 | echo $ac_n "checking for --enable-metafile""... $ac_c" 1>&6 |
b3e8d00a | 4891 | echo "configure:4892: checking for --enable-metafile" >&5 |
b64f0a5f RL |
4892 | no_cache=0 |
4893 | # Check whether --enable-metafile or --disable-metafile was given. | |
4894 | if test "${enable_metafile+set}" = set; then | |
4895 | enableval="$enable_metafile" | |
698dcdb6 | 4896 | |
b64f0a5f RL |
4897 | if test "$enableval" = yes; then |
4898 | ac_cv_use_metafile='wxUSE_METAFILE=yes' | |
4899 | else | |
4900 | ac_cv_use_metafile='wxUSE_METAFILE=no' | |
4901 | fi | |
698dcdb6 | 4902 | |
b64f0a5f | 4903 | else |
698dcdb6 | 4904 | |
b64f0a5f RL |
4905 | LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}` |
4906 | if test "x$LINE" != x ; then | |
4907 | eval "DEFAULT_$LINE" | |
4908 | else | |
4909 | no_cache=1 | |
4910 | fi | |
4911 | ||
4912 | ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE | |
698dcdb6 VZ |
4913 | |
4914 | fi | |
b64f0a5f RL |
4915 | |
4916 | ||
4917 | eval "$ac_cv_use_metafile" | |
4918 | if test "$no_cache" != 1; then | |
4919 | echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp | |
4920 | fi | |
4921 | ||
4922 | if test "$wxUSE_METAFILE" = yes; then | |
698dcdb6 | 4923 | echo "$ac_t""yes" 1>&6 |
b64f0a5f | 4924 | else |
698dcdb6 | 4925 | echo "$ac_t""no" 1>&6 |
b64f0a5f | 4926 | fi |
698dcdb6 VZ |
4927 | |
4928 | ||
10f2d63a | 4929 | |
24176f2c | 4930 | echo $ac_n "checking for --enable-treelayout""... $ac_c" 1>&6 |
b3e8d00a | 4931 | echo "configure:4932: checking for --enable-treelayout" >&5 |
10f2d63a | 4932 | no_cache=0 |
24176f2c GD |
4933 | # Check whether --enable-treelayout or --disable-treelayout was given. |
4934 | if test "${enable_treelayout+set}" = set; then | |
4935 | enableval="$enable_treelayout" | |
698dcdb6 | 4936 | |
10f2d63a | 4937 | if test "$enableval" = yes; then |
24176f2c | 4938 | ac_cv_use_treelayout='wxUSE_TREELAYOUT=yes' |
10f2d63a | 4939 | else |
24176f2c | 4940 | ac_cv_use_treelayout='wxUSE_TREELAYOUT=no' |
10f2d63a | 4941 | fi |
698dcdb6 | 4942 | |
10f2d63a | 4943 | else |
698dcdb6 | 4944 | |
24176f2c | 4945 | LINE=`grep "wxUSE_TREELAYOUT" ${wx_arg_cache_file}` |
10f2d63a VZ |
4946 | if test "x$LINE" != x ; then |
4947 | eval "DEFAULT_$LINE" | |
4948 | else | |
4949 | no_cache=1 | |
4950 | fi | |
4951 | ||
24176f2c | 4952 | ac_cv_use_treelayout='wxUSE_TREELAYOUT='$DEFAULT_wxUSE_TREELAYOUT |
698dcdb6 VZ |
4953 | |
4954 | fi | |
10f2d63a VZ |
4955 | |
4956 | ||
24176f2c | 4957 | eval "$ac_cv_use_treelayout" |
10f2d63a | 4958 | if test "$no_cache" != 1; then |
24176f2c | 4959 | echo $ac_cv_use_treelayout >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
4960 | fi |
4961 | ||
24176f2c | 4962 | if test "$wxUSE_TREELAYOUT" = yes; then |
698dcdb6 | 4963 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4964 | else |
698dcdb6 | 4965 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4966 | fi |
698dcdb6 | 4967 | |
10f2d63a | 4968 | |
698dcdb6 VZ |
4969 | |
4970 | ||
4971 | echo $ac_n "checking for --enable-controls""... $ac_c" 1>&6 | |
b3e8d00a | 4972 | echo "configure:4973: checking for --enable-controls" >&5 |
10f2d63a VZ |
4973 | no_cache=0 |
4974 | # Check whether --enable-controls or --disable-controls was given. | |
4975 | if test "${enable_controls+set}" = set; then | |
4976 | enableval="$enable_controls" | |
698dcdb6 | 4977 | |
10f2d63a VZ |
4978 | if test "$enableval" = yes; then |
4979 | ac_cv_use_controls='wxUSE_CONTROLS=yes' | |
4980 | else | |
4981 | ac_cv_use_controls='wxUSE_CONTROLS=no' | |
4982 | fi | |
698dcdb6 | 4983 | |
10f2d63a | 4984 | else |
698dcdb6 | 4985 | |
10f2d63a VZ |
4986 | LINE=`grep "wxUSE_CONTROLS" ${wx_arg_cache_file}` |
4987 | if test "x$LINE" != x ; then | |
4988 | eval "DEFAULT_$LINE" | |
4989 | else | |
4990 | no_cache=1 | |
4991 | fi | |
4992 | ||
4993 | ac_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS | |
698dcdb6 VZ |
4994 | |
4995 | fi | |
10f2d63a VZ |
4996 | |
4997 | ||
4998 | eval "$ac_cv_use_controls" | |
4999 | if test "$no_cache" != 1; then | |
5000 | echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp | |
5001 | fi | |
5002 | ||
5003 | if test "$wxUSE_CONTROLS" = yes; then | |
698dcdb6 | 5004 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5005 | else |
698dcdb6 | 5006 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5007 | fi |
698dcdb6 | 5008 | |
10f2d63a VZ |
5009 | |
5010 | if test "$wxUSE_CONTROLS" = "yes"; then | |
5011 | DEFAULT_wxUSE_ACCEL=yes | |
1e6feb95 VZ |
5012 | DEFAULT_wxUSE_BMPBUTTON=yes |
5013 | DEFAULT_wxUSE_BUTTON=yes | |
5014 | DEFAULT_wxUSE_CALCTRL=no | |
10f2d63a VZ |
5015 | DEFAULT_wxUSE_CARET=yes |
5016 | DEFAULT_wxUSE_COMBOBOX=yes | |
10f2d63a VZ |
5017 | DEFAULT_wxUSE_CHECKBOX=yes |
5018 | DEFAULT_wxUSE_CHECKLISTBOX=yes | |
5019 | DEFAULT_wxUSE_CHOICE=yes | |
5020 | DEFAULT_wxUSE_GAUGE=yes | |
5021 | DEFAULT_wxUSE_GRID=yes | |
cc977e5f | 5022 | DEFAULT_wxUSE_NEW_GRID=yes |
10f2d63a VZ |
5023 | DEFAULT_wxUSE_IMAGLIST=yes |
5024 | DEFAULT_wxUSE_LISTBOX=yes | |
5025 | DEFAULT_wxUSE_LISTCTRL=yes | |
5026 | DEFAULT_wxUSE_NOTEBOOK=yes | |
24176f2c | 5027 | DEFAULT_wxUSE_PROPSHEET=yes |
10f2d63a VZ |
5028 | DEFAULT_wxUSE_RADIOBOX=yes |
5029 | DEFAULT_wxUSE_RADIOBTN=yes | |
5030 | DEFAULT_wxUSE_SASH=yes | |
5031 | DEFAULT_wxUSE_SCROLLBAR=yes | |
5032 | DEFAULT_wxUSE_SLIDER=yes | |
5033 | DEFAULT_wxUSE_SPINBTN=yes | |
56cfaa52 | 5034 | DEFAULT_wxUSE_SPINCTRL=yes |
10f2d63a VZ |
5035 | DEFAULT_wxUSE_SPLITTER=yes |
5036 | DEFAULT_wxUSE_STATBMP=yes | |
5037 | DEFAULT_wxUSE_STATBOX=yes | |
5038 | DEFAULT_wxUSE_STATLINE=yes | |
5039 | DEFAULT_wxUSE_STATUSBAR=yes | |
5040 | DEFAULT_wxUSE_TAB_DIALOG=yes | |
1db8dc4a | 5041 | DEFAULT_wxUSE_TOGGLEBTN=yes |
10f2d63a | 5042 | DEFAULT_wxUSE_TOOLBAR=yes |
360d6699 VZ |
5043 | DEFAULT_wxUSE_TOOLBAR_NATIVE=yes |
5044 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes | |
10f2d63a VZ |
5045 | DEFAULT_wxUSE_TOOLTIPS=yes |
5046 | DEFAULT_wxUSE_TREECTRL=yes | |
9f41d601 | 5047 | DEFAULT_wxUSE_POPUPWIN=yes |
10f2d63a VZ |
5048 | elif test "$wxUSE_CONTROLS" = "no"; then |
5049 | DEFAULT_wxUSE_ACCEL=no | |
1e6feb95 VZ |
5050 | DEFAULT_wxUSE_BMPBUTTON=no |
5051 | DEFAULT_wxUSE_BUTTON=no | |
5052 | DEFAULT_wxUSE_CALCTRL=no | |
10f2d63a VZ |
5053 | DEFAULT_wxUSE_CARET=no |
5054 | DEFAULT_wxUSE_COMBOBOX=no | |
10f2d63a VZ |
5055 | DEFAULT_wxUSE_CHECKBOX=no |
5056 | DEFAULT_wxUSE_CHECKLISTBOX=no | |
5057 | DEFAULT_wxUSE_CHOICE=no | |
5058 | DEFAULT_wxUSE_GAUGE=no | |
5059 | DEFAULT_wxUSE_GRID=no | |
5060 | DEFAULT_wxUSE_NEW_GRID=no | |
5061 | DEFAULT_wxUSE_IMAGLIST=no | |
5062 | DEFAULT_wxUSE_LISTBOX=no | |
5063 | DEFAULT_wxUSE_LISTCTRL=no | |
5064 | DEFAULT_wxUSE_NOTEBOOK=no | |
24176f2c | 5065 | DEFAULT_wxUSE_PROPSHEET=no |
10f2d63a VZ |
5066 | DEFAULT_wxUSE_RADIOBOX=no |
5067 | DEFAULT_wxUSE_RADIOBTN=no | |
5068 | DEFAULT_wxUSE_SASH=no | |
5069 | DEFAULT_wxUSE_SCROLLBAR=no | |
5070 | DEFAULT_wxUSE_SLIDER=no | |
5071 | DEFAULT_wxUSE_SPINBTN=no | |
56cfaa52 | 5072 | DEFAULT_wxUSE_SPINCTRL=no |
10f2d63a VZ |
5073 | DEFAULT_wxUSE_SPLITTER=no |
5074 | DEFAULT_wxUSE_STATBMP=no | |
5075 | DEFAULT_wxUSE_STATBOX=no | |
5076 | DEFAULT_wxUSE_STATLINE=no | |
5077 | DEFAULT_wxUSE_STATUSBAR=no | |
5078 | DEFAULT_wxUSE_TAB_DIALOG=no | |
1db8dc4a | 5079 | DEFAULT_wxUSE_TOGGLEBTN=no |
10f2d63a | 5080 | DEFAULT_wxUSE_TOOLBAR=no |
360d6699 VZ |
5081 | DEFAULT_wxUSE_TOOLBAR_NATIVE=no |
5082 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=no | |
10f2d63a VZ |
5083 | DEFAULT_wxUSE_TOOLTIPS=no |
5084 | DEFAULT_wxUSE_TREECTRL=no | |
9f41d601 | 5085 | DEFAULT_wxUSE_POPUPWIN=no |
10f2d63a VZ |
5086 | fi |
5087 | ||
698dcdb6 VZ |
5088 | |
5089 | echo $ac_n "checking for --enable-accel""... $ac_c" 1>&6 | |
b3e8d00a | 5090 | echo "configure:5091: checking for --enable-accel" >&5 |
10f2d63a VZ |
5091 | no_cache=0 |
5092 | # Check whether --enable-accel or --disable-accel was given. | |
5093 | if test "${enable_accel+set}" = set; then | |
5094 | enableval="$enable_accel" | |
698dcdb6 | 5095 | |
10f2d63a VZ |
5096 | if test "$enableval" = yes; then |
5097 | ac_cv_use_accel='wxUSE_ACCEL=yes' | |
5098 | else | |
5099 | ac_cv_use_accel='wxUSE_ACCEL=no' | |
5100 | fi | |
698dcdb6 | 5101 | |
10f2d63a | 5102 | else |
698dcdb6 | 5103 | |
10f2d63a VZ |
5104 | LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}` |
5105 | if test "x$LINE" != x ; then | |
5106 | eval "DEFAULT_$LINE" | |
5107 | else | |
5108 | no_cache=1 | |
5109 | fi | |
5110 | ||
5111 | ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL | |
698dcdb6 VZ |
5112 | |
5113 | fi | |
10f2d63a VZ |
5114 | |
5115 | ||
5116 | eval "$ac_cv_use_accel" | |
5117 | if test "$no_cache" != 1; then | |
5118 | echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp | |
5119 | fi | |
5120 | ||
5121 | if test "$wxUSE_ACCEL" = yes; then | |
698dcdb6 | 5122 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5123 | else |
698dcdb6 | 5124 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5125 | fi |
698dcdb6 | 5126 | |
10f2d63a | 5127 | |
1e6feb95 | 5128 | echo $ac_n "checking for --enable-button""... $ac_c" 1>&6 |
b3e8d00a | 5129 | echo "configure:5130: checking for --enable-button" >&5 |
10f2d63a | 5130 | no_cache=0 |
1e6feb95 VZ |
5131 | # Check whether --enable-button or --disable-button was given. |
5132 | if test "${enable_button+set}" = set; then | |
5133 | enableval="$enable_button" | |
698dcdb6 | 5134 | |
10f2d63a | 5135 | if test "$enableval" = yes; then |
1e6feb95 | 5136 | ac_cv_use_button='wxUSE_BUTTON=yes' |
10f2d63a | 5137 | else |
1e6feb95 | 5138 | ac_cv_use_button='wxUSE_BUTTON=no' |
10f2d63a | 5139 | fi |
698dcdb6 | 5140 | |
10f2d63a | 5141 | else |
698dcdb6 | 5142 | |
1e6feb95 | 5143 | LINE=`grep "wxUSE_BUTTON" ${wx_arg_cache_file}` |
10f2d63a VZ |
5144 | if test "x$LINE" != x ; then |
5145 | eval "DEFAULT_$LINE" | |
5146 | else | |
5147 | no_cache=1 | |
5148 | fi | |
5149 | ||
1e6feb95 | 5150 | ac_cv_use_button='wxUSE_BUTTON='$DEFAULT_wxUSE_BUTTON |
698dcdb6 VZ |
5151 | |
5152 | fi | |
10f2d63a VZ |
5153 | |
5154 | ||
1e6feb95 | 5155 | eval "$ac_cv_use_button" |
10f2d63a | 5156 | if test "$no_cache" != 1; then |
1e6feb95 | 5157 | echo $ac_cv_use_button >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
5158 | fi |
5159 | ||
1e6feb95 | 5160 | if test "$wxUSE_BUTTON" = yes; then |
698dcdb6 | 5161 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5162 | else |
698dcdb6 | 5163 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5164 | fi |
698dcdb6 | 5165 | |
10f2d63a | 5166 | |
698dcdb6 | 5167 | echo $ac_n "checking for --enable-bmpbutton""... $ac_c" 1>&6 |
b3e8d00a | 5168 | echo "configure:5169: checking for --enable-bmpbutton" >&5 |
10f2d63a VZ |
5169 | no_cache=0 |
5170 | # Check whether --enable-bmpbutton or --disable-bmpbutton was given. | |
5171 | if test "${enable_bmpbutton+set}" = set; then | |
5172 | enableval="$enable_bmpbutton" | |
698dcdb6 | 5173 | |
10f2d63a VZ |
5174 | if test "$enableval" = yes; then |
5175 | ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes' | |
5176 | else | |
5177 | ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no' | |
5178 | fi | |
698dcdb6 | 5179 | |
10f2d63a | 5180 | else |
698dcdb6 | 5181 | |
10f2d63a VZ |
5182 | LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}` |
5183 | if test "x$LINE" != x ; then | |
5184 | eval "DEFAULT_$LINE" | |
5185 | else | |
5186 | no_cache=1 | |
5187 | fi | |
5188 | ||
5189 | ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON | |
698dcdb6 VZ |
5190 | |
5191 | fi | |
10f2d63a VZ |
5192 | |
5193 | ||
5194 | eval "$ac_cv_use_bmpbutton" | |
5195 | if test "$no_cache" != 1; then | |
5196 | echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp | |
5197 | fi | |
5198 | ||
5199 | if test "$wxUSE_BMPBUTTON" = yes; then | |
698dcdb6 | 5200 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5201 | else |
698dcdb6 | 5202 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5203 | fi |
698dcdb6 | 5204 | |
10f2d63a | 5205 | |
1e6feb95 | 5206 | echo $ac_n "checking for --enable-calendar""... $ac_c" 1>&6 |
b3e8d00a | 5207 | echo "configure:5208: checking for --enable-calendar" >&5 |
1e6feb95 VZ |
5208 | no_cache=0 |
5209 | # Check whether --enable-calendar or --disable-calendar was given. | |
5210 | if test "${enable_calendar+set}" = set; then | |
5211 | enableval="$enable_calendar" | |
5212 | ||
5213 | if test "$enableval" = yes; then | |
5214 | ac_cv_use_calendar='wxUSE_CALCTRL=yes' | |
5215 | else | |
5216 | ac_cv_use_calendar='wxUSE_CALCTRL=no' | |
5217 | fi | |
5218 | ||
5219 | else | |
5220 | ||
5221 | LINE=`grep "wxUSE_CALCTRL" ${wx_arg_cache_file}` | |
5222 | if test "x$LINE" != x ; then | |
5223 | eval "DEFAULT_$LINE" | |
5224 | else | |
5225 | no_cache=1 | |
5226 | fi | |
5227 | ||
5228 | ac_cv_use_calendar='wxUSE_CALCTRL='$DEFAULT_wxUSE_CALCTRL | |
5229 | ||
5230 | fi | |
5231 | ||
5232 | ||
5233 | eval "$ac_cv_use_calendar" | |
5234 | if test "$no_cache" != 1; then | |
5235 | echo $ac_cv_use_calendar >> ${wx_arg_cache_file}.tmp | |
5236 | fi | |
5237 | ||
5238 | if test "$wxUSE_CALCTRL" = yes; then | |
5239 | echo "$ac_t""yes" 1>&6 | |
5240 | else | |
5241 | echo "$ac_t""no" 1>&6 | |
5242 | fi | |
5243 | ||
5244 | ||
5245 | echo $ac_n "checking for --enable-caret""... $ac_c" 1>&6 | |
b3e8d00a | 5246 | echo "configure:5247: checking for --enable-caret" >&5 |
1e6feb95 VZ |
5247 | no_cache=0 |
5248 | # Check whether --enable-caret or --disable-caret was given. | |
5249 | if test "${enable_caret+set}" = set; then | |
5250 | enableval="$enable_caret" | |
5251 | ||
5252 | if test "$enableval" = yes; then | |
5253 | ac_cv_use_caret='wxUSE_CARET=yes' | |
5254 | else | |
5255 | ac_cv_use_caret='wxUSE_CARET=no' | |
5256 | fi | |
5257 | ||
5258 | else | |
5259 | ||
5260 | LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}` | |
5261 | if test "x$LINE" != x ; then | |
5262 | eval "DEFAULT_$LINE" | |
5263 | else | |
5264 | no_cache=1 | |
5265 | fi | |
5266 | ||
5267 | ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET | |
5268 | ||
5269 | fi | |
5270 | ||
5271 | ||
5272 | eval "$ac_cv_use_caret" | |
5273 | if test "$no_cache" != 1; then | |
5274 | echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp | |
5275 | fi | |
5276 | ||
5277 | if test "$wxUSE_CARET" = yes; then | |
5278 | echo "$ac_t""yes" 1>&6 | |
5279 | else | |
5280 | echo "$ac_t""no" 1>&6 | |
5281 | fi | |
5282 | ||
5283 | ||
698dcdb6 | 5284 | echo $ac_n "checking for --enable-checkbox""... $ac_c" 1>&6 |
b3e8d00a | 5285 | echo "configure:5286: checking for --enable-checkbox" >&5 |
10f2d63a VZ |
5286 | no_cache=0 |
5287 | # Check whether --enable-checkbox or --disable-checkbox was given. | |
5288 | if test "${enable_checkbox+set}" = set; then | |
5289 | enableval="$enable_checkbox" | |
698dcdb6 | 5290 | |
10f2d63a VZ |
5291 | if test "$enableval" = yes; then |
5292 | ac_cv_use_checkbox='wxUSE_CHECKBOX=yes' | |
5293 | else | |
5294 | ac_cv_use_checkbox='wxUSE_CHECKBOX=no' | |
5295 | fi | |
698dcdb6 | 5296 | |
10f2d63a | 5297 | else |
698dcdb6 | 5298 | |
10f2d63a VZ |
5299 | LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}` |
5300 | if test "x$LINE" != x ; then | |
5301 | eval "DEFAULT_$LINE" | |
5302 | else | |
5303 | no_cache=1 | |
5304 | fi | |
5305 | ||
5306 | ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX | |
698dcdb6 VZ |
5307 | |
5308 | fi | |
10f2d63a VZ |
5309 | |
5310 | ||
5311 | eval "$ac_cv_use_checkbox" | |
5312 | if test "$no_cache" != 1; then | |
5313 | echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp | |
5314 | fi | |
5315 | ||
5316 | if test "$wxUSE_CHECKBOX" = yes; then | |
698dcdb6 | 5317 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5318 | else |
698dcdb6 | 5319 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5320 | fi |
698dcdb6 | 5321 | |
10f2d63a | 5322 | |
698dcdb6 | 5323 | echo $ac_n "checking for --enable-checklst""... $ac_c" 1>&6 |
b3e8d00a | 5324 | echo "configure:5325: checking for --enable-checklst" >&5 |
10f2d63a VZ |
5325 | no_cache=0 |
5326 | # Check whether --enable-checklst or --disable-checklst was given. | |
5327 | if test "${enable_checklst+set}" = set; then | |
5328 | enableval="$enable_checklst" | |
698dcdb6 | 5329 | |
10f2d63a VZ |
5330 | if test "$enableval" = yes; then |
5331 | ac_cv_use_checklst='wxUSE_CHECKLST=yes' | |
5332 | else | |
5333 | ac_cv_use_checklst='wxUSE_CHECKLST=no' | |
5334 | fi | |
698dcdb6 | 5335 | |
10f2d63a | 5336 | else |
698dcdb6 | 5337 | |
10f2d63a VZ |
5338 | LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}` |
5339 | if test "x$LINE" != x ; then | |
5340 | eval "DEFAULT_$LINE" | |
5341 | else | |
5342 | no_cache=1 | |
5343 | fi | |
5344 | ||
5345 | ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST | |
698dcdb6 VZ |
5346 | |
5347 | fi | |
10f2d63a VZ |
5348 | |
5349 | ||
5350 | eval "$ac_cv_use_checklst" | |
5351 | if test "$no_cache" != 1; then | |
5352 | echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp | |
5353 | fi | |
5354 | ||
5355 | if test "$wxUSE_CHECKLST" = yes; then | |
698dcdb6 | 5356 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5357 | else |
698dcdb6 | 5358 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5359 | fi |
698dcdb6 | 5360 | |
10f2d63a | 5361 | |
698dcdb6 | 5362 | echo $ac_n "checking for --enable-choice""... $ac_c" 1>&6 |
b3e8d00a | 5363 | echo "configure:5364: checking for --enable-choice" >&5 |
10f2d63a VZ |
5364 | no_cache=0 |
5365 | # Check whether --enable-choice or --disable-choice was given. | |
5366 | if test "${enable_choice+set}" = set; then | |
5367 | enableval="$enable_choice" | |
698dcdb6 | 5368 | |
10f2d63a VZ |
5369 | if test "$enableval" = yes; then |
5370 | ac_cv_use_choice='wxUSE_CHOICE=yes' | |
5371 | else | |
5372 | ac_cv_use_choice='wxUSE_CHOICE=no' | |
5373 | fi | |
698dcdb6 | 5374 | |
10f2d63a | 5375 | else |
698dcdb6 | 5376 | |
10f2d63a VZ |
5377 | LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}` |
5378 | if test "x$LINE" != x ; then | |
5379 | eval "DEFAULT_$LINE" | |
5380 | else | |
5381 | no_cache=1 | |
5382 | fi | |
5383 | ||
5384 | ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE | |
698dcdb6 VZ |
5385 | |
5386 | fi | |
10f2d63a VZ |
5387 | |
5388 | ||
5389 | eval "$ac_cv_use_choice" | |
5390 | if test "$no_cache" != 1; then | |
5391 | echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp | |
5392 | fi | |
5393 | ||
5394 | if test "$wxUSE_CHOICE" = yes; then | |
698dcdb6 | 5395 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5396 | else |
698dcdb6 | 5397 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5398 | fi |
698dcdb6 | 5399 | |
10f2d63a | 5400 | |
698dcdb6 | 5401 | echo $ac_n "checking for --enable-combobox""... $ac_c" 1>&6 |
b3e8d00a | 5402 | echo "configure:5403: checking for --enable-combobox" >&5 |
10f2d63a VZ |
5403 | no_cache=0 |
5404 | # Check whether --enable-combobox or --disable-combobox was given. | |
5405 | if test "${enable_combobox+set}" = set; then | |
5406 | enableval="$enable_combobox" | |
698dcdb6 | 5407 | |
10f2d63a VZ |
5408 | if test "$enableval" = yes; then |
5409 | ac_cv_use_combobox='wxUSE_COMBOBOX=yes' | |
5410 | else | |
5411 | ac_cv_use_combobox='wxUSE_COMBOBOX=no' | |
5412 | fi | |
698dcdb6 | 5413 | |
10f2d63a | 5414 | else |
698dcdb6 | 5415 | |
10f2d63a VZ |
5416 | LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}` |
5417 | if test "x$LINE" != x ; then | |
5418 | eval "DEFAULT_$LINE" | |
5419 | else | |
5420 | no_cache=1 | |
5421 | fi | |
5422 | ||
5423 | ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX | |
698dcdb6 VZ |
5424 | |
5425 | fi | |
10f2d63a VZ |
5426 | |
5427 | ||
5428 | eval "$ac_cv_use_combobox" | |
5429 | if test "$no_cache" != 1; then | |
5430 | echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp | |
5431 | fi | |
5432 | ||
5433 | if test "$wxUSE_COMBOBOX" = yes; then | |
698dcdb6 | 5434 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5435 | else |
698dcdb6 | 5436 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5437 | fi |
698dcdb6 | 5438 | |
10f2d63a | 5439 | |
698dcdb6 | 5440 | echo $ac_n "checking for --enable-gauge""... $ac_c" 1>&6 |
b3e8d00a | 5441 | echo "configure:5442: checking for --enable-gauge" >&5 |
10f2d63a VZ |
5442 | no_cache=0 |
5443 | # Check whether --enable-gauge or --disable-gauge was given. | |
5444 | if test "${enable_gauge+set}" = set; then | |
5445 | enableval="$enable_gauge" | |
698dcdb6 | 5446 | |
10f2d63a VZ |
5447 | if test "$enableval" = yes; then |
5448 | ac_cv_use_gauge='wxUSE_GAUGE=yes' | |
5449 | else | |
5450 | ac_cv_use_gauge='wxUSE_GAUGE=no' | |
5451 | fi | |
698dcdb6 | 5452 | |
10f2d63a | 5453 | else |
698dcdb6 | 5454 | |
10f2d63a VZ |
5455 | LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}` |
5456 | if test "x$LINE" != x ; then | |
5457 | eval "DEFAULT_$LINE" | |
5458 | else | |
5459 | no_cache=1 | |
5460 | fi | |
5461 | ||
5462 | ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE | |
698dcdb6 VZ |
5463 | |
5464 | fi | |
10f2d63a VZ |
5465 | |
5466 | ||
5467 | eval "$ac_cv_use_gauge" | |
5468 | if test "$no_cache" != 1; then | |
5469 | echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp | |
5470 | fi | |
5471 | ||
5472 | if test "$wxUSE_GAUGE" = yes; then | |
698dcdb6 | 5473 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5474 | else |
698dcdb6 | 5475 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5476 | fi |
698dcdb6 | 5477 | |
10f2d63a | 5478 | |
698dcdb6 | 5479 | echo $ac_n "checking for --enable-grid""... $ac_c" 1>&6 |
b3e8d00a | 5480 | echo "configure:5481: checking for --enable-grid" >&5 |
10f2d63a VZ |
5481 | no_cache=0 |
5482 | # Check whether --enable-grid or --disable-grid was given. | |
5483 | if test "${enable_grid+set}" = set; then | |
5484 | enableval="$enable_grid" | |
698dcdb6 | 5485 | |
10f2d63a VZ |
5486 | if test "$enableval" = yes; then |
5487 | ac_cv_use_grid='wxUSE_GRID=yes' | |
5488 | else | |
5489 | ac_cv_use_grid='wxUSE_GRID=no' | |
5490 | fi | |
698dcdb6 | 5491 | |
10f2d63a | 5492 | else |
698dcdb6 | 5493 | |
10f2d63a VZ |
5494 | LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}` |
5495 | if test "x$LINE" != x ; then | |
5496 | eval "DEFAULT_$LINE" | |
5497 | else | |
5498 | no_cache=1 | |
5499 | fi | |
5500 | ||
5501 | ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID | |
698dcdb6 VZ |
5502 | |
5503 | fi | |
10f2d63a VZ |
5504 | |
5505 | ||
5506 | eval "$ac_cv_use_grid" | |
5507 | if test "$no_cache" != 1; then | |
5508 | echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp | |
5509 | fi | |
5510 | ||
5511 | if test "$wxUSE_GRID" = yes; then | |
698dcdb6 | 5512 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5513 | else |
698dcdb6 | 5514 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5515 | fi |
698dcdb6 | 5516 | |
10f2d63a | 5517 | |
698dcdb6 | 5518 | echo $ac_n "checking for --enable-newgrid""... $ac_c" 1>&6 |
b3e8d00a | 5519 | echo "configure:5520: checking for --enable-newgrid" >&5 |
10f2d63a VZ |
5520 | no_cache=0 |
5521 | # Check whether --enable-newgrid or --disable-newgrid was given. | |
5522 | if test "${enable_newgrid+set}" = set; then | |
5523 | enableval="$enable_newgrid" | |
698dcdb6 | 5524 | |
10f2d63a VZ |
5525 | if test "$enableval" = yes; then |
5526 | ac_cv_use_newgrid='wxUSE_NEW_GRID=yes' | |
5527 | else | |
5528 | ac_cv_use_newgrid='wxUSE_NEW_GRID=no' | |
5529 | fi | |
698dcdb6 | 5530 | |
10f2d63a | 5531 | else |
698dcdb6 | 5532 | |
10f2d63a VZ |
5533 | LINE=`grep "wxUSE_NEW_GRID" ${wx_arg_cache_file}` |
5534 | if test "x$LINE" != x ; then | |
5535 | eval "DEFAULT_$LINE" | |
5536 | else | |
5537 | no_cache=1 | |
5538 | fi | |
5539 | ||
5540 | ac_cv_use_newgrid='wxUSE_NEW_GRID='$DEFAULT_wxUSE_NEW_GRID | |
698dcdb6 VZ |
5541 | |
5542 | fi | |
10f2d63a VZ |
5543 | |
5544 | ||
5545 | eval "$ac_cv_use_newgrid" | |
5546 | if test "$no_cache" != 1; then | |
5547 | echo $ac_cv_use_newgrid >> ${wx_arg_cache_file}.tmp | |
5548 | fi | |
5549 | ||
5550 | if test "$wxUSE_NEW_GRID" = yes; then | |
698dcdb6 | 5551 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5552 | else |
698dcdb6 | 5553 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5554 | fi |
698dcdb6 | 5555 | |
10f2d63a | 5556 | |
698dcdb6 | 5557 | echo $ac_n "checking for --enable-imaglist""... $ac_c" 1>&6 |
b3e8d00a | 5558 | echo "configure:5559: checking for --enable-imaglist" >&5 |
10f2d63a VZ |
5559 | no_cache=0 |
5560 | # Check whether --enable-imaglist or --disable-imaglist was given. | |
5561 | if test "${enable_imaglist+set}" = set; then | |
5562 | enableval="$enable_imaglist" | |
698dcdb6 | 5563 | |
10f2d63a VZ |
5564 | if test "$enableval" = yes; then |
5565 | ac_cv_use_imaglist='wxUSE_IMAGLIST=yes' | |
5566 | else | |
5567 | ac_cv_use_imaglist='wxUSE_IMAGLIST=no' | |
5568 | fi | |
698dcdb6 | 5569 | |
10f2d63a | 5570 | else |
698dcdb6 | 5571 | |
10f2d63a VZ |
5572 | LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}` |
5573 | if test "x$LINE" != x ; then | |
5574 | eval "DEFAULT_$LINE" | |
5575 | else | |
5576 | no_cache=1 | |
5577 | fi | |
5578 | ||
5579 | ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST | |
698dcdb6 VZ |
5580 | |
5581 | fi | |
10f2d63a VZ |
5582 | |
5583 | ||
5584 | eval "$ac_cv_use_imaglist" | |
5585 | if test "$no_cache" != 1; then | |
5586 | echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp | |
5587 | fi | |
5588 | ||
5589 | if test "$wxUSE_IMAGLIST" = yes; then | |
698dcdb6 | 5590 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5591 | else |
698dcdb6 | 5592 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5593 | fi |
698dcdb6 | 5594 | |
10f2d63a | 5595 | |
698dcdb6 | 5596 | echo $ac_n "checking for --enable-listbox""... $ac_c" 1>&6 |
b3e8d00a | 5597 | echo "configure:5598: checking for --enable-listbox" >&5 |
10f2d63a VZ |
5598 | no_cache=0 |
5599 | # Check whether --enable-listbox or --disable-listbox was given. | |
5600 | if test "${enable_listbox+set}" = set; then | |
5601 | enableval="$enable_listbox" | |
698dcdb6 | 5602 | |
10f2d63a VZ |
5603 | if test "$enableval" = yes; then |
5604 | ac_cv_use_listbox='wxUSE_LISTBOX=yes' | |
5605 | else | |
5606 | ac_cv_use_listbox='wxUSE_LISTBOX=no' | |
5607 | fi | |
698dcdb6 | 5608 | |
10f2d63a | 5609 | else |
698dcdb6 | 5610 | |
10f2d63a VZ |
5611 | LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}` |
5612 | if test "x$LINE" != x ; then | |
5613 | eval "DEFAULT_$LINE" | |
5614 | else | |
5615 | no_cache=1 | |
5616 | fi | |
5617 | ||
5618 | ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX | |
698dcdb6 VZ |
5619 | |
5620 | fi | |
10f2d63a VZ |
5621 | |
5622 | ||
5623 | eval "$ac_cv_use_listbox" | |
5624 | if test "$no_cache" != 1; then | |
5625 | echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp | |
5626 | fi | |
5627 | ||
5628 | if test "$wxUSE_LISTBOX" = yes; then | |
698dcdb6 | 5629 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5630 | else |
698dcdb6 | 5631 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5632 | fi |
698dcdb6 | 5633 | |
10f2d63a | 5634 | |
698dcdb6 | 5635 | echo $ac_n "checking for --enable-listctrl""... $ac_c" 1>&6 |
b3e8d00a | 5636 | echo "configure:5637: checking for --enable-listctrl" >&5 |
10f2d63a VZ |
5637 | no_cache=0 |
5638 | # Check whether --enable-listctrl or --disable-listctrl was given. | |
5639 | if test "${enable_listctrl+set}" = set; then | |
5640 | enableval="$enable_listctrl" | |
698dcdb6 | 5641 | |
10f2d63a VZ |
5642 | if test "$enableval" = yes; then |
5643 | ac_cv_use_listctrl='wxUSE_LISTCTRL=yes' | |
5644 | else | |
5645 | ac_cv_use_listctrl='wxUSE_LISTCTRL=no' | |
5646 | fi | |
698dcdb6 | 5647 | |
10f2d63a | 5648 | else |
698dcdb6 | 5649 | |
10f2d63a VZ |
5650 | LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}` |
5651 | if test "x$LINE" != x ; then | |
5652 | eval "DEFAULT_$LINE" | |
5653 | else | |
5654 | no_cache=1 | |
5655 | fi | |
5656 | ||
5657 | ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL | |
698dcdb6 VZ |
5658 | |
5659 | fi | |
10f2d63a VZ |
5660 | |
5661 | ||
5662 | eval "$ac_cv_use_listctrl" | |
5663 | if test "$no_cache" != 1; then | |
5664 | echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp | |
5665 | fi | |
5666 | ||
5667 | if test "$wxUSE_LISTCTRL" = yes; then | |
698dcdb6 | 5668 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5669 | else |
698dcdb6 | 5670 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5671 | fi |
698dcdb6 | 5672 | |
10f2d63a | 5673 | |
698dcdb6 | 5674 | echo $ac_n "checking for --enable-notebook""... $ac_c" 1>&6 |
b3e8d00a | 5675 | echo "configure:5676: checking for --enable-notebook" >&5 |
10f2d63a VZ |
5676 | no_cache=0 |
5677 | # Check whether --enable-notebook or --disable-notebook was given. | |
5678 | if test "${enable_notebook+set}" = set; then | |
5679 | enableval="$enable_notebook" | |
698dcdb6 | 5680 | |
10f2d63a VZ |
5681 | if test "$enableval" = yes; then |
5682 | ac_cv_use_notebook='wxUSE_NOTEBOOK=yes' | |
5683 | else | |
5684 | ac_cv_use_notebook='wxUSE_NOTEBOOK=no' | |
5685 | fi | |
698dcdb6 | 5686 | |
10f2d63a | 5687 | else |
698dcdb6 | 5688 | |
10f2d63a VZ |
5689 | LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}` |
5690 | if test "x$LINE" != x ; then | |
5691 | eval "DEFAULT_$LINE" | |
5692 | else | |
5693 | no_cache=1 | |
5694 | fi | |
5695 | ||
5696 | ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK | |
698dcdb6 VZ |
5697 | |
5698 | fi | |
10f2d63a VZ |
5699 | |
5700 | ||
5701 | eval "$ac_cv_use_notebook" | |
5702 | if test "$no_cache" != 1; then | |
5703 | echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp | |
5704 | fi | |
5705 | ||
5706 | if test "$wxUSE_NOTEBOOK" = yes; then | |
698dcdb6 | 5707 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5708 | else |
698dcdb6 | 5709 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5710 | fi |
698dcdb6 | 5711 | |
10f2d63a | 5712 | |
24176f2c | 5713 | echo $ac_n "checking for --enable-propsheet""... $ac_c" 1>&6 |
b3e8d00a | 5714 | echo "configure:5715: checking for --enable-propsheet" >&5 |
24176f2c GD |
5715 | no_cache=0 |
5716 | # Check whether --enable-propsheet or --disable-propsheet was given. | |
5717 | if test "${enable_propsheet+set}" = set; then | |
5718 | enableval="$enable_propsheet" | |
5719 | ||
5720 | if test "$enableval" = yes; then | |
5721 | ac_cv_use_propsheet='wxUSE_PROPSHEET=yes' | |
5722 | else | |
5723 | ac_cv_use_propsheet='wxUSE_PROPSHEET=no' | |
5724 | fi | |
5725 | ||
5726 | else | |
5727 | ||
5728 | LINE=`grep "wxUSE_PROPSHEET" ${wx_arg_cache_file}` | |
5729 | if test "x$LINE" != x ; then | |
5730 | eval "DEFAULT_$LINE" | |
5731 | else | |
5732 | no_cache=1 | |
5733 | fi | |
5734 | ||
5735 | ac_cv_use_propsheet='wxUSE_PROPSHEET='$DEFAULT_wxUSE_PROPSHEET | |
5736 | ||
5737 | fi | |
5738 | ||
5739 | ||
5740 | eval "$ac_cv_use_propsheet" | |
5741 | if test "$no_cache" != 1; then | |
5742 | echo $ac_cv_use_propsheet >> ${wx_arg_cache_file}.tmp | |
5743 | fi | |
5744 | ||
5745 | if test "$wxUSE_PROPSHEET" = yes; then | |
5746 | echo "$ac_t""yes" 1>&6 | |
5747 | else | |
5748 | echo "$ac_t""no" 1>&6 | |
5749 | fi | |
5750 | ||
5751 | ||
698dcdb6 | 5752 | echo $ac_n "checking for --enable-radiobox""... $ac_c" 1>&6 |
b3e8d00a | 5753 | echo "configure:5754: checking for --enable-radiobox" >&5 |
10f2d63a VZ |
5754 | no_cache=0 |
5755 | # Check whether --enable-radiobox or --disable-radiobox was given. | |
5756 | if test "${enable_radiobox+set}" = set; then | |
5757 | enableval="$enable_radiobox" | |
698dcdb6 | 5758 | |
10f2d63a VZ |
5759 | if test "$enableval" = yes; then |
5760 | ac_cv_use_radiobox='wxUSE_RADIOBOX=yes' | |
5761 | else | |
5762 | ac_cv_use_radiobox='wxUSE_RADIOBOX=no' | |
5763 | fi | |
698dcdb6 | 5764 | |
10f2d63a | 5765 | else |
698dcdb6 | 5766 | |
10f2d63a VZ |
5767 | LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}` |
5768 | if test "x$LINE" != x ; then | |
5769 | eval "DEFAULT_$LINE" | |
5770 | else | |
5771 | no_cache=1 | |
5772 | fi | |
5773 | ||
5774 | ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX | |
698dcdb6 VZ |
5775 | |
5776 | fi | |
10f2d63a VZ |
5777 | |
5778 | ||
5779 | eval "$ac_cv_use_radiobox" | |
5780 | if test "$no_cache" != 1; then | |
5781 | echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp | |
5782 | fi | |
5783 | ||
5784 | if test "$wxUSE_RADIOBOX" = yes; then | |
698dcdb6 | 5785 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5786 | else |
698dcdb6 | 5787 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5788 | fi |
698dcdb6 | 5789 | |
10f2d63a | 5790 | |
698dcdb6 | 5791 | echo $ac_n "checking for --enable-radiobtn""... $ac_c" 1>&6 |
b3e8d00a | 5792 | echo "configure:5793: checking for --enable-radiobtn" >&5 |
10f2d63a VZ |
5793 | no_cache=0 |
5794 | # Check whether --enable-radiobtn or --disable-radiobtn was given. | |
5795 | if test "${enable_radiobtn+set}" = set; then | |
5796 | enableval="$enable_radiobtn" | |
698dcdb6 | 5797 | |
10f2d63a VZ |
5798 | if test "$enableval" = yes; then |
5799 | ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes' | |
5800 | else | |
5801 | ac_cv_use_radiobtn='wxUSE_RADIOBTN=no' | |
5802 | fi | |
698dcdb6 | 5803 | |
10f2d63a | 5804 | else |
698dcdb6 | 5805 | |
10f2d63a VZ |
5806 | LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}` |
5807 | if test "x$LINE" != x ; then | |
5808 | eval "DEFAULT_$LINE" | |
5809 | else | |
5810 | no_cache=1 | |
5811 | fi | |
5812 | ||
5813 | ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN | |
698dcdb6 VZ |
5814 | |
5815 | fi | |
10f2d63a VZ |
5816 | |
5817 | ||
5818 | eval "$ac_cv_use_radiobtn" | |
5819 | if test "$no_cache" != 1; then | |
5820 | echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp | |
5821 | fi | |
5822 | ||
5823 | if test "$wxUSE_RADIOBTN" = yes; then | |
698dcdb6 | 5824 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5825 | else |
698dcdb6 | 5826 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5827 | fi |
698dcdb6 | 5828 | |
10f2d63a | 5829 | |
698dcdb6 | 5830 | echo $ac_n "checking for --enable-sash""... $ac_c" 1>&6 |
b3e8d00a | 5831 | echo "configure:5832: checking for --enable-sash" >&5 |
10f2d63a VZ |
5832 | no_cache=0 |
5833 | # Check whether --enable-sash or --disable-sash was given. | |
5834 | if test "${enable_sash+set}" = set; then | |
5835 | enableval="$enable_sash" | |
698dcdb6 | 5836 | |
10f2d63a VZ |
5837 | if test "$enableval" = yes; then |
5838 | ac_cv_use_sash='wxUSE_SASH=yes' | |
5839 | else | |
5840 | ac_cv_use_sash='wxUSE_SASH=no' | |
5841 | fi | |
698dcdb6 | 5842 | |
10f2d63a | 5843 | else |
698dcdb6 | 5844 | |
10f2d63a VZ |
5845 | LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}` |
5846 | if test "x$LINE" != x ; then | |
5847 | eval "DEFAULT_$LINE" | |
5848 | else | |
5849 | no_cache=1 | |
5850 | fi | |
5851 | ||
5852 | ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH | |
698dcdb6 VZ |
5853 | |
5854 | fi | |
10f2d63a VZ |
5855 | |
5856 | ||
5857 | eval "$ac_cv_use_sash" | |
5858 | if test "$no_cache" != 1; then | |
5859 | echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp | |
5860 | fi | |
5861 | ||
5862 | if test "$wxUSE_SASH" = yes; then | |
698dcdb6 | 5863 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5864 | else |
698dcdb6 | 5865 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5866 | fi |
698dcdb6 | 5867 | |
10f2d63a | 5868 | |
698dcdb6 | 5869 | echo $ac_n "checking for --enable-scrollbar""... $ac_c" 1>&6 |
b3e8d00a | 5870 | echo "configure:5871: checking for --enable-scrollbar" >&5 |
10f2d63a VZ |
5871 | no_cache=0 |
5872 | # Check whether --enable-scrollbar or --disable-scrollbar was given. | |
5873 | if test "${enable_scrollbar+set}" = set; then | |
5874 | enableval="$enable_scrollbar" | |
698dcdb6 | 5875 | |
10f2d63a VZ |
5876 | if test "$enableval" = yes; then |
5877 | ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes' | |
5878 | else | |
5879 | ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no' | |
5880 | fi | |
698dcdb6 | 5881 | |
10f2d63a | 5882 | else |
698dcdb6 | 5883 | |
10f2d63a VZ |
5884 | LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}` |
5885 | if test "x$LINE" != x ; then | |
5886 | eval "DEFAULT_$LINE" | |
5887 | else | |
5888 | no_cache=1 | |
5889 | fi | |
5890 | ||
5891 | ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR | |
698dcdb6 VZ |
5892 | |
5893 | fi | |
10f2d63a VZ |
5894 | |
5895 | ||
5896 | eval "$ac_cv_use_scrollbar" | |
5897 | if test "$no_cache" != 1; then | |
5898 | echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp | |
5899 | fi | |
5900 | ||
5901 | if test "$wxUSE_SCROLLBAR" = yes; then | |
698dcdb6 | 5902 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5903 | else |
698dcdb6 | 5904 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5905 | fi |
698dcdb6 | 5906 | |
10f2d63a | 5907 | |
698dcdb6 | 5908 | echo $ac_n "checking for --enable-slider""... $ac_c" 1>&6 |
b3e8d00a | 5909 | echo "configure:5910: checking for --enable-slider" >&5 |
10f2d63a VZ |
5910 | no_cache=0 |
5911 | # Check whether --enable-slider or --disable-slider was given. | |
5912 | if test "${enable_slider+set}" = set; then | |
5913 | enableval="$enable_slider" | |
698dcdb6 | 5914 | |
10f2d63a VZ |
5915 | if test "$enableval" = yes; then |
5916 | ac_cv_use_slider='wxUSE_SLIDER=yes' | |
5917 | else | |
5918 | ac_cv_use_slider='wxUSE_SLIDER=no' | |
5919 | fi | |
698dcdb6 | 5920 | |
10f2d63a | 5921 | else |
698dcdb6 | 5922 | |
10f2d63a VZ |
5923 | LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}` |
5924 | if test "x$LINE" != x ; then | |
5925 | eval "DEFAULT_$LINE" | |
5926 | else | |
5927 | no_cache=1 | |
5928 | fi | |
5929 | ||
5930 | ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER | |
698dcdb6 VZ |
5931 | |
5932 | fi | |
10f2d63a VZ |
5933 | |
5934 | ||
5935 | eval "$ac_cv_use_slider" | |
5936 | if test "$no_cache" != 1; then | |
5937 | echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp | |
5938 | fi | |
5939 | ||
5940 | if test "$wxUSE_SLIDER" = yes; then | |
698dcdb6 | 5941 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5942 | else |
698dcdb6 | 5943 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5944 | fi |
698dcdb6 | 5945 | |
10f2d63a | 5946 | |
698dcdb6 | 5947 | echo $ac_n "checking for --enable-spinbtn""... $ac_c" 1>&6 |
b3e8d00a | 5948 | echo "configure:5949: checking for --enable-spinbtn" >&5 |
10f2d63a VZ |
5949 | no_cache=0 |
5950 | # Check whether --enable-spinbtn or --disable-spinbtn was given. | |
5951 | if test "${enable_spinbtn+set}" = set; then | |
5952 | enableval="$enable_spinbtn" | |
698dcdb6 | 5953 | |
10f2d63a VZ |
5954 | if test "$enableval" = yes; then |
5955 | ac_cv_use_spinbtn='wxUSE_SPINBTN=yes' | |
5956 | else | |
5957 | ac_cv_use_spinbtn='wxUSE_SPINBTN=no' | |
5958 | fi | |
698dcdb6 | 5959 | |
10f2d63a | 5960 | else |
698dcdb6 | 5961 | |
10f2d63a VZ |
5962 | LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}` |
5963 | if test "x$LINE" != x ; then | |
5964 | eval "DEFAULT_$LINE" | |
5965 | else | |
5966 | no_cache=1 | |
5967 | fi | |
5968 | ||
5969 | ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN | |
698dcdb6 VZ |
5970 | |
5971 | fi | |
10f2d63a VZ |
5972 | |
5973 | ||
5974 | eval "$ac_cv_use_spinbtn" | |
5975 | if test "$no_cache" != 1; then | |
5976 | echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp | |
5977 | fi | |
5978 | ||
5979 | if test "$wxUSE_SPINBTN" = yes; then | |
698dcdb6 | 5980 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5981 | else |
698dcdb6 | 5982 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5983 | fi |
698dcdb6 | 5984 | |
10f2d63a | 5985 | |
698dcdb6 | 5986 | echo $ac_n "checking for --enable-spinctrl""... $ac_c" 1>&6 |
b3e8d00a | 5987 | echo "configure:5988: checking for --enable-spinctrl" >&5 |
56cfaa52 RR |
5988 | no_cache=0 |
5989 | # Check whether --enable-spinctrl or --disable-spinctrl was given. | |
5990 | if test "${enable_spinctrl+set}" = set; then | |
5991 | enableval="$enable_spinctrl" | |
698dcdb6 | 5992 | |
56cfaa52 RR |
5993 | if test "$enableval" = yes; then |
5994 | ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes' | |
5995 | else | |
5996 | ac_cv_use_spinctrl='wxUSE_SPINCTRL=no' | |
5997 | fi | |
698dcdb6 | 5998 | |
56cfaa52 | 5999 | else |
698dcdb6 | 6000 | |
56cfaa52 RR |
6001 | LINE=`grep "wxUSE_SPINCTRL" ${wx_arg_cache_file}` |
6002 | if test "x$LINE" != x ; then | |
6003 | eval "DEFAULT_$LINE" | |
6004 | else | |
6005 | no_cache=1 | |
6006 | fi | |
6007 | ||
6008 | ac_cv_use_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL | |
698dcdb6 VZ |
6009 | |
6010 | fi | |
56cfaa52 RR |
6011 | |
6012 | ||
6013 | eval "$ac_cv_use_spinctrl" | |
6014 | if test "$no_cache" != 1; then | |
6015 | echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp | |
6016 | fi | |
6017 | ||
6018 | if test "$wxUSE_SPINCTRL" = yes; then | |
698dcdb6 | 6019 | echo "$ac_t""yes" 1>&6 |
56cfaa52 | 6020 | else |
698dcdb6 | 6021 | echo "$ac_t""no" 1>&6 |
56cfaa52 | 6022 | fi |
698dcdb6 | 6023 | |
56cfaa52 | 6024 | |
698dcdb6 | 6025 | echo $ac_n "checking for --enable-splitter""... $ac_c" 1>&6 |
b3e8d00a | 6026 | echo "configure:6027: checking for --enable-splitter" >&5 |
10f2d63a VZ |
6027 | no_cache=0 |
6028 | # Check whether --enable-splitter or --disable-splitter was given. | |
6029 | if test "${enable_splitter+set}" = set; then | |
6030 | enableval="$enable_splitter" | |
698dcdb6 | 6031 | |
10f2d63a VZ |
6032 | if test "$enableval" = yes; then |
6033 | ac_cv_use_splitter='wxUSE_SPLITTER=yes' | |
6034 | else | |
6035 | ac_cv_use_splitter='wxUSE_SPLITTER=no' | |
6036 | fi | |
698dcdb6 | 6037 | |
10f2d63a | 6038 | else |
698dcdb6 | 6039 | |
10f2d63a VZ |
6040 | LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}` |
6041 | if test "x$LINE" != x ; then | |
6042 | eval "DEFAULT_$LINE" | |
6043 | else | |
6044 | no_cache=1 | |
6045 | fi | |
6046 | ||
6047 | ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER | |
698dcdb6 VZ |
6048 | |
6049 | fi | |
10f2d63a VZ |
6050 | |
6051 | ||
6052 | eval "$ac_cv_use_splitter" | |
6053 | if test "$no_cache" != 1; then | |
6054 | echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp | |
6055 | fi | |
6056 | ||
6057 | if test "$wxUSE_SPLITTER" = yes; then | |
698dcdb6 | 6058 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6059 | else |
698dcdb6 | 6060 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6061 | fi |
698dcdb6 | 6062 | |
10f2d63a | 6063 | |
698dcdb6 | 6064 | echo $ac_n "checking for --enable-statbmp""... $ac_c" 1>&6 |
b3e8d00a | 6065 | echo "configure:6066: checking for --enable-statbmp" >&5 |
10f2d63a VZ |
6066 | no_cache=0 |
6067 | # Check whether --enable-statbmp or --disable-statbmp was given. | |
6068 | if test "${enable_statbmp+set}" = set; then | |
6069 | enableval="$enable_statbmp" | |
698dcdb6 | 6070 | |
10f2d63a VZ |
6071 | if test "$enableval" = yes; then |
6072 | ac_cv_use_statbmp='wxUSE_STATBMP=yes' | |
6073 | else | |
6074 | ac_cv_use_statbmp='wxUSE_STATBMP=no' | |
6075 | fi | |
698dcdb6 | 6076 | |
10f2d63a | 6077 | else |
698dcdb6 | 6078 | |
10f2d63a VZ |
6079 | LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}` |
6080 | if test "x$LINE" != x ; then | |
6081 | eval "DEFAULT_$LINE" | |
6082 | else | |
6083 | no_cache=1 | |
6084 | fi | |
6085 | ||
6086 | ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP | |
698dcdb6 VZ |
6087 | |
6088 | fi | |
10f2d63a VZ |
6089 | |
6090 | ||
6091 | eval "$ac_cv_use_statbmp" | |
6092 | if test "$no_cache" != 1; then | |
6093 | echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp | |
6094 | fi | |
6095 | ||
6096 | if test "$wxUSE_STATBMP" = yes; then | |
698dcdb6 | 6097 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6098 | else |
698dcdb6 | 6099 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6100 | fi |
698dcdb6 | 6101 | |
10f2d63a | 6102 | |
698dcdb6 | 6103 | echo $ac_n "checking for --enable-statbox""... $ac_c" 1>&6 |
b3e8d00a | 6104 | echo "configure:6105: checking for --enable-statbox" >&5 |
10f2d63a VZ |
6105 | no_cache=0 |
6106 | # Check whether --enable-statbox or --disable-statbox was given. | |
6107 | if test "${enable_statbox+set}" = set; then | |
6108 | enableval="$enable_statbox" | |
698dcdb6 | 6109 | |
10f2d63a VZ |
6110 | if test "$enableval" = yes; then |
6111 | ac_cv_use_statbox='wxUSE_STATBOX=yes' | |
6112 | else | |
6113 | ac_cv_use_statbox='wxUSE_STATBOX=no' | |
6114 | fi | |
698dcdb6 | 6115 | |
10f2d63a | 6116 | else |
698dcdb6 | 6117 | |
10f2d63a VZ |
6118 | LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}` |
6119 | if test "x$LINE" != x ; then | |
6120 | eval "DEFAULT_$LINE" | |
6121 | else | |
6122 | no_cache=1 | |
6123 | fi | |
6124 | ||
6125 | ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX | |
698dcdb6 VZ |
6126 | |
6127 | fi | |
10f2d63a VZ |
6128 | |
6129 | ||
6130 | eval "$ac_cv_use_statbox" | |
6131 | if test "$no_cache" != 1; then | |
6132 | echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp | |
6133 | fi | |
6134 | ||
6135 | if test "$wxUSE_STATBOX" = yes; then | |
698dcdb6 | 6136 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6137 | else |
698dcdb6 | 6138 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6139 | fi |
698dcdb6 | 6140 | |
10f2d63a | 6141 | |
698dcdb6 | 6142 | echo $ac_n "checking for --enable-statline""... $ac_c" 1>&6 |
b3e8d00a | 6143 | echo "configure:6144: checking for --enable-statline" >&5 |
10f2d63a VZ |
6144 | no_cache=0 |
6145 | # Check whether --enable-statline or --disable-statline was given. | |
6146 | if test "${enable_statline+set}" = set; then | |
6147 | enableval="$enable_statline" | |
698dcdb6 | 6148 | |
10f2d63a VZ |
6149 | if test "$enableval" = yes; then |
6150 | ac_cv_use_statline='wxUSE_STATLINE=yes' | |
6151 | else | |
6152 | ac_cv_use_statline='wxUSE_STATLINE=no' | |
6153 | fi | |
698dcdb6 | 6154 | |
10f2d63a | 6155 | else |
698dcdb6 | 6156 | |
10f2d63a VZ |
6157 | LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}` |
6158 | if test "x$LINE" != x ; then | |
6159 | eval "DEFAULT_$LINE" | |
6160 | else | |
6161 | no_cache=1 | |
6162 | fi | |
6163 | ||
6164 | ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE | |
698dcdb6 VZ |
6165 | |
6166 | fi | |
10f2d63a VZ |
6167 | |
6168 | ||
6169 | eval "$ac_cv_use_statline" | |
6170 | if test "$no_cache" != 1; then | |
6171 | echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp | |
6172 | fi | |
6173 | ||
6174 | if test "$wxUSE_STATLINE" = yes; then | |
698dcdb6 | 6175 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6176 | else |
698dcdb6 | 6177 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6178 | fi |
698dcdb6 | 6179 | |
10f2d63a | 6180 | |
1e6feb95 | 6181 | echo $ac_n "checking for --enable-stattext""... $ac_c" 1>&6 |
b3e8d00a | 6182 | echo "configure:6183: checking for --enable-stattext" >&5 |
1e6feb95 VZ |
6183 | no_cache=0 |
6184 | # Check whether --enable-stattext or --disable-stattext was given. | |
6185 | if test "${enable_stattext+set}" = set; then | |
6186 | enableval="$enable_stattext" | |
6187 | ||
6188 | if test "$enableval" = yes; then | |
6189 | ac_cv_use_stattext='wxUSE_STATTEXT=yes' | |
6190 | else | |
6191 | ac_cv_use_stattext='wxUSE_STATTEXT=no' | |
6192 | fi | |
6193 | ||
6194 | else | |
6195 | ||
6196 | LINE=`grep "wxUSE_STATTEXT" ${wx_arg_cache_file}` | |
6197 | if test "x$LINE" != x ; then | |
6198 | eval "DEFAULT_$LINE" | |
6199 | else | |
6200 | no_cache=1 | |
6201 | fi | |
6202 | ||
6203 | ac_cv_use_stattext='wxUSE_STATTEXT='$DEFAULT_wxUSE_STATTEXT | |
6204 | ||
6205 | fi | |
6206 | ||
6207 | ||
6208 | eval "$ac_cv_use_stattext" | |
6209 | if test "$no_cache" != 1; then | |
6210 | echo $ac_cv_use_stattext >> ${wx_arg_cache_file}.tmp | |
6211 | fi | |
6212 | ||
6213 | if test "$wxUSE_STATTEXT" = yes; then | |
6214 | echo "$ac_t""yes" 1>&6 | |
6215 | else | |
6216 | echo "$ac_t""no" 1>&6 | |
6217 | fi | |
6218 | ||
6219 | ||
698dcdb6 | 6220 | echo $ac_n "checking for --enable-statusbar""... $ac_c" 1>&6 |
b3e8d00a | 6221 | echo "configure:6222: checking for --enable-statusbar" >&5 |
10f2d63a VZ |
6222 | no_cache=0 |
6223 | # Check whether --enable-statusbar or --disable-statusbar was given. | |
6224 | if test "${enable_statusbar+set}" = set; then | |
6225 | enableval="$enable_statusbar" | |
698dcdb6 | 6226 | |
10f2d63a VZ |
6227 | if test "$enableval" = yes; then |
6228 | ac_cv_use_statusbar='wxUSE_STATUSBAR=yes' | |
6229 | else | |
6230 | ac_cv_use_statusbar='wxUSE_STATUSBAR=no' | |
6231 | fi | |
698dcdb6 | 6232 | |
10f2d63a | 6233 | else |
698dcdb6 | 6234 | |
10f2d63a VZ |
6235 | LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}` |
6236 | if test "x$LINE" != x ; then | |
6237 | eval "DEFAULT_$LINE" | |
6238 | else | |
6239 | no_cache=1 | |
6240 | fi | |
6241 | ||
6242 | ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR | |
698dcdb6 VZ |
6243 | |
6244 | fi | |
10f2d63a VZ |
6245 | |
6246 | ||
6247 | eval "$ac_cv_use_statusbar" | |
6248 | if test "$no_cache" != 1; then | |
6249 | echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp | |
6250 | fi | |
6251 | ||
6252 | if test "$wxUSE_STATUSBAR" = yes; then | |
698dcdb6 | 6253 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6254 | else |
698dcdb6 | 6255 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6256 | fi |
698dcdb6 | 6257 | |
10f2d63a | 6258 | |
698dcdb6 | 6259 | echo $ac_n "checking for --enable-tabdialog""... $ac_c" 1>&6 |
b3e8d00a | 6260 | echo "configure:6261: checking for --enable-tabdialog" >&5 |
10f2d63a VZ |
6261 | no_cache=0 |
6262 | # Check whether --enable-tabdialog or --disable-tabdialog was given. | |
6263 | if test "${enable_tabdialog+set}" = set; then | |
6264 | enableval="$enable_tabdialog" | |
698dcdb6 | 6265 | |
10f2d63a VZ |
6266 | if test "$enableval" = yes; then |
6267 | ac_cv_use_tabdialog='wxUSE_TABDIALOG=yes' | |
6268 | else | |
6269 | ac_cv_use_tabdialog='wxUSE_TABDIALOG=no' | |
6270 | fi | |
698dcdb6 | 6271 | |
10f2d63a | 6272 | else |
698dcdb6 | 6273 | |
10f2d63a VZ |
6274 | LINE=`grep "wxUSE_TABDIALOG" ${wx_arg_cache_file}` |
6275 | if test "x$LINE" != x ; then | |
6276 | eval "DEFAULT_$LINE" | |
6277 | else | |
6278 | no_cache=1 | |
6279 | fi | |
6280 | ||
6281 | ac_cv_use_tabdialog='wxUSE_TABDIALOG='$DEFAULT_wxUSE_TABDIALOG | |
698dcdb6 VZ |
6282 | |
6283 | fi | |
10f2d63a VZ |
6284 | |
6285 | ||
6286 | eval "$ac_cv_use_tabdialog" | |
6287 | if test "$no_cache" != 1; then | |
6288 | echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp | |
6289 | fi | |
6290 | ||
6291 | if test "$wxUSE_TABDIALOG" = yes; then | |
698dcdb6 | 6292 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6293 | else |
698dcdb6 | 6294 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6295 | fi |
698dcdb6 | 6296 | |
10f2d63a | 6297 | |
1e6feb95 | 6298 | echo $ac_n "checking for --enable-textctrl""... $ac_c" 1>&6 |
b3e8d00a | 6299 | echo "configure:6300: checking for --enable-textctrl" >&5 |
1e6feb95 VZ |
6300 | no_cache=0 |
6301 | # Check whether --enable-textctrl or --disable-textctrl was given. | |
6302 | if test "${enable_textctrl+set}" = set; then | |
6303 | enableval="$enable_textctrl" | |
6304 | ||
6305 | if test "$enableval" = yes; then | |
6306 | ac_cv_use_textctrl='wxUSE_TEXTCTRL=yes' | |
6307 | else | |
6308 | ac_cv_use_textctrl='wxUSE_TEXTCTRL=no' | |
6309 | fi | |
6310 | ||
6311 | else | |
6312 | ||
6313 | LINE=`grep "wxUSE_TEXTCTRL" ${wx_arg_cache_file}` | |
6314 | if test "x$LINE" != x ; then | |
6315 | eval "DEFAULT_$LINE" | |
6316 | else | |
6317 | no_cache=1 | |
6318 | fi | |
6319 | ||
6320 | ac_cv_use_textctrl='wxUSE_TEXTCTRL='$DEFAULT_wxUSE_TEXTCTRL | |
6321 | ||
6322 | fi | |
6323 | ||
6324 | ||
6325 | eval "$ac_cv_use_textctrl" | |
6326 | if test "$no_cache" != 1; then | |
6327 | echo $ac_cv_use_textctrl >> ${wx_arg_cache_file}.tmp | |
6328 | fi | |
6329 | ||
6330 | if test "$wxUSE_TEXTCTRL" = yes; then | |
6331 | echo "$ac_t""yes" 1>&6 | |
6332 | else | |
6333 | echo "$ac_t""no" 1>&6 | |
6334 | fi | |
6335 | ||
6336 | ||
698dcdb6 | 6337 | echo $ac_n "checking for --enable-togglebtn""... $ac_c" 1>&6 |
b3e8d00a | 6338 | echo "configure:6339: checking for --enable-togglebtn" >&5 |
1db8dc4a VZ |
6339 | no_cache=0 |
6340 | # Check whether --enable-togglebtn or --disable-togglebtn was given. | |
6341 | if test "${enable_togglebtn+set}" = set; then | |
6342 | enableval="$enable_togglebtn" | |
698dcdb6 | 6343 | |
1db8dc4a VZ |
6344 | if test "$enableval" = yes; then |
6345 | ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes' | |
6346 | else | |
6347 | ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=no' | |
6348 | fi | |
698dcdb6 | 6349 | |
1db8dc4a | 6350 | else |
698dcdb6 | 6351 | |
1db8dc4a VZ |
6352 | LINE=`grep "wxUSE_TOGGLEBTN" ${wx_arg_cache_file}` |
6353 | if test "x$LINE" != x ; then | |
6354 | eval "DEFAULT_$LINE" | |
6355 | else | |
6356 | no_cache=1 | |
6357 | fi | |
6358 | ||
6359 | ac_cv_use_togglebtn='wxUSE_TOGGLEBTN='$DEFAULT_wxUSE_TOGGLEBTN | |
698dcdb6 VZ |
6360 | |
6361 | fi | |
1db8dc4a VZ |
6362 | |
6363 | ||
6364 | eval "$ac_cv_use_togglebtn" | |
6365 | if test "$no_cache" != 1; then | |
6366 | echo $ac_cv_use_togglebtn >> ${wx_arg_cache_file}.tmp | |
6367 | fi | |
6368 | ||
6369 | if test "$wxUSE_TOGGLEBTN" = yes; then | |
698dcdb6 | 6370 | echo "$ac_t""yes" 1>&6 |
1db8dc4a | 6371 | else |
698dcdb6 | 6372 | echo "$ac_t""no" 1>&6 |
1db8dc4a | 6373 | fi |
698dcdb6 | 6374 | |
1db8dc4a | 6375 | |
698dcdb6 | 6376 | echo $ac_n "checking for --enable-toolbar""... $ac_c" 1>&6 |
b3e8d00a | 6377 | echo "configure:6378: checking for --enable-toolbar" >&5 |
10f2d63a VZ |
6378 | no_cache=0 |
6379 | # Check whether --enable-toolbar or --disable-toolbar was given. | |
6380 | if test "${enable_toolbar+set}" = set; then | |
6381 | enableval="$enable_toolbar" | |
698dcdb6 | 6382 | |
10f2d63a VZ |
6383 | if test "$enableval" = yes; then |
6384 | ac_cv_use_toolbar='wxUSE_TOOLBAR=yes' | |
6385 | else | |
6386 | ac_cv_use_toolbar='wxUSE_TOOLBAR=no' | |
6387 | fi | |
698dcdb6 | 6388 | |
10f2d63a | 6389 | else |
698dcdb6 | 6390 | |
10f2d63a VZ |
6391 | LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}` |
6392 | if test "x$LINE" != x ; then | |
6393 | eval "DEFAULT_$LINE" | |
6394 | else | |
6395 | no_cache=1 | |
6396 | fi | |
6397 | ||
6398 | ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR | |
698dcdb6 VZ |
6399 | |
6400 | fi | |
10f2d63a VZ |
6401 | |
6402 | ||
6403 | eval "$ac_cv_use_toolbar" | |
6404 | if test "$no_cache" != 1; then | |
6405 | echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp | |
6406 | fi | |
6407 | ||
6408 | if test "$wxUSE_TOOLBAR" = yes; then | |
698dcdb6 | 6409 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6410 | else |
698dcdb6 | 6411 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6412 | fi |
698dcdb6 | 6413 | |
10f2d63a | 6414 | |
698dcdb6 | 6415 | echo $ac_n "checking for --enable-tbarnative""... $ac_c" 1>&6 |
b3e8d00a | 6416 | echo "configure:6417: checking for --enable-tbarnative" >&5 |
360d6699 VZ |
6417 | no_cache=0 |
6418 | # Check whether --enable-tbarnative or --disable-tbarnative was given. | |
6419 | if test "${enable_tbarnative+set}" = set; then | |
6420 | enableval="$enable_tbarnative" | |
698dcdb6 | 6421 | |
360d6699 VZ |
6422 | if test "$enableval" = yes; then |
6423 | ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes' | |
6424 | else | |
6425 | ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no' | |
6426 | fi | |
698dcdb6 | 6427 | |
360d6699 | 6428 | else |
698dcdb6 | 6429 | |
360d6699 VZ |
6430 | LINE=`grep "wxUSE_TOOLBAR_NATIVE" ${wx_arg_cache_file}` |
6431 | if test "x$LINE" != x ; then | |
6432 | eval "DEFAULT_$LINE" | |
6433 | else | |
6434 | no_cache=1 | |
6435 | fi | |
6436 | ||
6437 | ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE='$DEFAULT_wxUSE_TOOLBAR_NATIVE | |
698dcdb6 VZ |
6438 | |
6439 | fi | |
360d6699 VZ |
6440 | |
6441 | ||
6442 | eval "$ac_cv_use_tbarnative" | |
6443 | if test "$no_cache" != 1; then | |
6444 | echo $ac_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp | |
6445 | fi | |
6446 | ||
6447 | if test "$wxUSE_TOOLBAR_NATIVE" = yes; then | |
698dcdb6 | 6448 | echo "$ac_t""yes" 1>&6 |
360d6699 | 6449 | else |
698dcdb6 | 6450 | echo "$ac_t""no" 1>&6 |
360d6699 | 6451 | fi |
698dcdb6 | 6452 | |
360d6699 | 6453 | |
698dcdb6 | 6454 | echo $ac_n "checking for --enable-tbarsmpl""... $ac_c" 1>&6 |
b3e8d00a | 6455 | echo "configure:6456: checking for --enable-tbarsmpl" >&5 |
360d6699 VZ |
6456 | no_cache=0 |
6457 | # Check whether --enable-tbarsmpl or --disable-tbarsmpl was given. | |
6458 | if test "${enable_tbarsmpl+set}" = set; then | |
6459 | enableval="$enable_tbarsmpl" | |
698dcdb6 | 6460 | |
360d6699 VZ |
6461 | if test "$enableval" = yes; then |
6462 | ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=yes' | |
6463 | else | |
6464 | ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=no' | |
6465 | fi | |
698dcdb6 | 6466 | |
360d6699 | 6467 | else |
698dcdb6 | 6468 | |
360d6699 VZ |
6469 | LINE=`grep "wxUSE_TOOLBAR_SIMPLE" ${wx_arg_cache_file}` |
6470 | if test "x$LINE" != x ; then | |
6471 | eval "DEFAULT_$LINE" | |
6472 | else | |
6473 | no_cache=1 | |
6474 | fi | |
6475 | ||
6476 | ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE='$DEFAULT_wxUSE_TOOLBAR_SIMPLE | |
698dcdb6 VZ |
6477 | |
6478 | fi | |
360d6699 VZ |
6479 | |
6480 | ||
6481 | eval "$ac_cv_use_tbarsmpl" | |
6482 | if test "$no_cache" != 1; then | |
6483 | echo $ac_cv_use_tbarsmpl >> ${wx_arg_cache_file}.tmp | |
6484 | fi | |
6485 | ||
6486 | if test "$wxUSE_TOOLBAR_SIMPLE" = yes; then | |
698dcdb6 | 6487 | echo "$ac_t""yes" 1>&6 |
360d6699 | 6488 | else |
698dcdb6 | 6489 | echo "$ac_t""no" 1>&6 |
360d6699 | 6490 | fi |
698dcdb6 | 6491 | |
360d6699 | 6492 | |
698dcdb6 | 6493 | echo $ac_n "checking for --enable-treectrl""... $ac_c" 1>&6 |
b3e8d00a | 6494 | echo "configure:6495: checking for --enable-treectrl" >&5 |
10f2d63a VZ |
6495 | no_cache=0 |
6496 | # Check whether --enable-treectrl or --disable-treectrl was given. | |
6497 | if test "${enable_treectrl+set}" = set; then | |
6498 | enableval="$enable_treectrl" | |
698dcdb6 | 6499 | |
10f2d63a VZ |
6500 | if test "$enableval" = yes; then |
6501 | ac_cv_use_treectrl='wxUSE_TREECTRL=yes' | |
6502 | else | |
6503 | ac_cv_use_treectrl='wxUSE_TREECTRL=no' | |
6504 | fi | |
698dcdb6 | 6505 | |
10f2d63a | 6506 | else |
698dcdb6 | 6507 | |
10f2d63a VZ |
6508 | LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}` |
6509 | if test "x$LINE" != x ; then | |
6510 | eval "DEFAULT_$LINE" | |
6511 | else | |
6512 | no_cache=1 | |
6513 | fi | |
6514 | ||
6515 | ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL | |
698dcdb6 VZ |
6516 | |
6517 | fi | |
10f2d63a VZ |
6518 | |
6519 | ||
1e6feb95 VZ |
6520 | eval "$ac_cv_use_treectrl" |
6521 | if test "$no_cache" != 1; then | |
6522 | echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp | |
6523 | fi | |
6524 | ||
6525 | if test "$wxUSE_TREECTRL" = yes; then | |
6526 | echo "$ac_t""yes" 1>&6 | |
6527 | else | |
6528 | echo "$ac_t""no" 1>&6 | |
6529 | fi | |
6530 | ||
6531 | ||
9f41d601 | 6532 | echo $ac_n "checking for --enable-popupwin""... $ac_c" 1>&6 |
b3e8d00a | 6533 | echo "configure:6534: checking for --enable-popupwin" >&5 |
9f41d601 RR |
6534 | no_cache=0 |
6535 | # Check whether --enable-popupwin or --disable-popupwin was given. | |
6536 | if test "${enable_popupwin+set}" = set; then | |
6537 | enableval="$enable_popupwin" | |
6538 | ||
6539 | if test "$enableval" = yes; then | |
6540 | ac_cv_use_popupwin='wxUSE_POPUPWIN=yes' | |
6541 | else | |
6542 | ac_cv_use_popupwin='wxUSE_POPUPWIN=no' | |
6543 | fi | |
6544 | ||
6545 | else | |
6546 | ||
6547 | LINE=`grep "wxUSE_POPUPWIN" ${wx_arg_cache_file}` | |
6548 | if test "x$LINE" != x ; then | |
6549 | eval "DEFAULT_$LINE" | |
6550 | else | |
6551 | no_cache=1 | |
6552 | fi | |
6553 | ||
6554 | ac_cv_use_popupwin='wxUSE_POPUPWIN='$DEFAULT_wxUSE_POPUPWIN | |
6555 | ||
6556 | fi | |
6557 | ||
6558 | ||
6559 | eval "$ac_cv_use_popupwin" | |
6560 | if test "$no_cache" != 1; then | |
6561 | echo $ac_cv_use_popupwin >> ${wx_arg_cache_file}.tmp | |
6562 | fi | |
6563 | ||
6564 | if test "$wxUSE_POPUPWIN" = yes; then | |
6565 | echo "$ac_t""yes" 1>&6 | |
6566 | else | |
6567 | echo "$ac_t""no" 1>&6 | |
6568 | fi | |
6569 | ||
6570 | ||
1e6feb95 VZ |
6571 | |
6572 | ||
6573 | echo $ac_n "checking for --enable-commondlg""... $ac_c" 1>&6 | |
b3e8d00a | 6574 | echo "configure:6575: checking for --enable-commondlg" >&5 |
1e6feb95 VZ |
6575 | no_cache=0 |
6576 | # Check whether --enable-commondlg or --disable-commondlg was given. | |
6577 | if test "${enable_commondlg+set}" = set; then | |
6578 | enableval="$enable_commondlg" | |
6579 | ||
6580 | if test "$enableval" = yes; then | |
6581 | ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes' | |
6582 | else | |
6583 | ac_cv_use_commondlg='wxUSE_COMMONDLGS=no' | |
6584 | fi | |
6585 | ||
6586 | else | |
6587 | ||
6588 | LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}` | |
6589 | if test "x$LINE" != x ; then | |
6590 | eval "DEFAULT_$LINE" | |
6591 | else | |
6592 | no_cache=1 | |
6593 | fi | |
6594 | ||
6595 | ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS | |
6596 | ||
6597 | fi | |
6598 | ||
6599 | ||
6600 | eval "$ac_cv_use_commondlg" | |
6601 | if test "$no_cache" != 1; then | |
6602 | echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp | |
6603 | fi | |
6604 | ||
6605 | if test "$wxUSE_COMMONDLGS" = yes; then | |
6606 | echo "$ac_t""yes" 1>&6 | |
6607 | else | |
6608 | echo "$ac_t""no" 1>&6 | |
6609 | fi | |
6610 | ||
6611 | ||
6612 | echo $ac_n "checking for --enable-choicedlg""... $ac_c" 1>&6 | |
b3e8d00a | 6613 | echo "configure:6614: checking for --enable-choicedlg" >&5 |
1e6feb95 VZ |
6614 | no_cache=0 |
6615 | # Check whether --enable-choicedlg or --disable-choicedlg was given. | |
6616 | if test "${enable_choicedlg+set}" = set; then | |
6617 | enableval="$enable_choicedlg" | |
6618 | ||
6619 | if test "$enableval" = yes; then | |
6620 | ac_cv_use_choicedlg='wxUSE_CHOICEDLG=yes' | |
6621 | else | |
6622 | ac_cv_use_choicedlg='wxUSE_CHOICEDLG=no' | |
6623 | fi | |
6624 | ||
6625 | else | |
6626 | ||
6627 | LINE=`grep "wxUSE_CHOICEDLG" ${wx_arg_cache_file}` | |
6628 | if test "x$LINE" != x ; then | |
6629 | eval "DEFAULT_$LINE" | |
6630 | else | |
6631 | no_cache=1 | |
6632 | fi | |
6633 | ||
6634 | ac_cv_use_choicedlg='wxUSE_CHOICEDLG='$DEFAULT_wxUSE_CHOICEDLG | |
6635 | ||
6636 | fi | |
6637 | ||
6638 | ||
6639 | eval "$ac_cv_use_choicedlg" | |
6640 | if test "$no_cache" != 1; then | |
6641 | echo $ac_cv_use_choicedlg >> ${wx_arg_cache_file}.tmp | |
6642 | fi | |
6643 | ||
6644 | if test "$wxUSE_CHOICEDLG" = yes; then | |
6645 | echo "$ac_t""yes" 1>&6 | |
6646 | else | |
6647 | echo "$ac_t""no" 1>&6 | |
6648 | fi | |
6649 | ||
6650 | ||
6651 | echo $ac_n "checking for --enable-coldlg""... $ac_c" 1>&6 | |
b3e8d00a | 6652 | echo "configure:6653: checking for --enable-coldlg" >&5 |
1e6feb95 VZ |
6653 | no_cache=0 |
6654 | # Check whether --enable-coldlg or --disable-coldlg was given. | |
6655 | if test "${enable_coldlg+set}" = set; then | |
6656 | enableval="$enable_coldlg" | |
6657 | ||
6658 | if test "$enableval" = yes; then | |
6659 | ac_cv_use_coldlg='wxUSE_COLOURDLG=yes' | |
6660 | else | |
6661 | ac_cv_use_coldlg='wxUSE_COLOURDLG=no' | |
6662 | fi | |
6663 | ||
6664 | else | |
6665 | ||
6666 | LINE=`grep "wxUSE_COLOURDLG" ${wx_arg_cache_file}` | |
6667 | if test "x$LINE" != x ; then | |
6668 | eval "DEFAULT_$LINE" | |
6669 | else | |
6670 | no_cache=1 | |
6671 | fi | |
6672 | ||
6673 | ac_cv_use_coldlg='wxUSE_COLOURDLG='$DEFAULT_wxUSE_COLOURDLG | |
6674 | ||
6675 | fi | |
6676 | ||
6677 | ||
6678 | eval "$ac_cv_use_coldlg" | |
6679 | if test "$no_cache" != 1; then | |
6680 | echo $ac_cv_use_coldlg >> ${wx_arg_cache_file}.tmp | |
6681 | fi | |
6682 | ||
6683 | if test "$wxUSE_COLOURDLG" = yes; then | |
6684 | echo "$ac_t""yes" 1>&6 | |
6685 | else | |
6686 | echo "$ac_t""no" 1>&6 | |
6687 | fi | |
6688 | ||
6689 | ||
6690 | echo $ac_n "checking for --enable-filedlg""... $ac_c" 1>&6 | |
b3e8d00a | 6691 | echo "configure:6692: checking for --enable-filedlg" >&5 |
1e6feb95 VZ |
6692 | no_cache=0 |
6693 | # Check whether --enable-filedlg or --disable-filedlg was given. | |
6694 | if test "${enable_filedlg+set}" = set; then | |
6695 | enableval="$enable_filedlg" | |
6696 | ||
6697 | if test "$enableval" = yes; then | |
6698 | ac_cv_use_filedlg='wxUSE_FILEDLG=yes' | |
6699 | else | |
6700 | ac_cv_use_filedlg='wxUSE_FILEDLG=no' | |
6701 | fi | |
6702 | ||
6703 | else | |
6704 | ||
6705 | LINE=`grep "wxUSE_FILEDLG" ${wx_arg_cache_file}` | |
6706 | if test "x$LINE" != x ; then | |
6707 | eval "DEFAULT_$LINE" | |
6708 | else | |
6709 | no_cache=1 | |
6710 | fi | |
6711 | ||
6712 | ac_cv_use_filedlg='wxUSE_FILEDLG='$DEFAULT_wxUSE_FILEDLG | |
6713 | ||
6714 | fi | |
6715 | ||
6716 | ||
6717 | eval "$ac_cv_use_filedlg" | |
6718 | if test "$no_cache" != 1; then | |
6719 | echo $ac_cv_use_filedlg >> ${wx_arg_cache_file}.tmp | |
6720 | fi | |
6721 | ||
6722 | if test "$wxUSE_FILEDLG" = yes; then | |
6723 | echo "$ac_t""yes" 1>&6 | |
6724 | else | |
6725 | echo "$ac_t""no" 1>&6 | |
6726 | fi | |
6727 | ||
6728 | ||
8db37e06 | 6729 | echo $ac_n "checking for --enable-filedlg""... $ac_c" 1>&6 |
b3e8d00a | 6730 | echo "configure:6731: checking for --enable-filedlg" >&5 |
8db37e06 VZ |
6731 | no_cache=0 |
6732 | # Check whether --enable-filedlg or --disable-filedlg was given. | |
6733 | if test "${enable_filedlg+set}" = set; then | |
6734 | enableval="$enable_filedlg" | |
6735 | ||
6736 | if test "$enableval" = yes; then | |
6737 | ac_cv_use_filedlg='wxUSE_FINDREPLDLG=yes' | |
6738 | else | |
6739 | ac_cv_use_filedlg='wxUSE_FINDREPLDLG=no' | |
6740 | fi | |
6741 | ||
6742 | else | |
6743 | ||
6744 | LINE=`grep "wxUSE_FINDREPLDLG" ${wx_arg_cache_file}` | |
6745 | if test "x$LINE" != x ; then | |
6746 | eval "DEFAULT_$LINE" | |
6747 | else | |
6748 | no_cache=1 | |
6749 | fi | |
6750 | ||
6751 | ac_cv_use_filedlg='wxUSE_FINDREPLDLG='$DEFAULT_wxUSE_FINDREPLDLG | |
6752 | ||
6753 | fi | |
6754 | ||
6755 | ||
6756 | eval "$ac_cv_use_filedlg" | |
6757 | if test "$no_cache" != 1; then | |
6758 | echo $ac_cv_use_filedlg >> ${wx_arg_cache_file}.tmp | |
6759 | fi | |
6760 | ||
6761 | if test "$wxUSE_FINDREPLDLG" = yes; then | |
6762 | echo "$ac_t""yes" 1>&6 | |
6763 | else | |
6764 | echo "$ac_t""no" 1>&6 | |
6765 | fi | |
6766 | ||
6767 | ||
1e6feb95 | 6768 | echo $ac_n "checking for --enable-fontdlg""... $ac_c" 1>&6 |
b3e8d00a | 6769 | echo "configure:6770: checking for --enable-fontdlg" >&5 |
1e6feb95 VZ |
6770 | no_cache=0 |
6771 | # Check whether --enable-fontdlg or --disable-fontdlg was given. | |
6772 | if test "${enable_fontdlg+set}" = set; then | |
6773 | enableval="$enable_fontdlg" | |
6774 | ||
6775 | if test "$enableval" = yes; then | |
6776 | ac_cv_use_fontdlg='wxUSE_FONTDLG=yes' | |
6777 | else | |
6778 | ac_cv_use_fontdlg='wxUSE_FONTDLG=no' | |
6779 | fi | |
6780 | ||
6781 | else | |
6782 | ||
6783 | LINE=`grep "wxUSE_FONTDLG" ${wx_arg_cache_file}` | |
6784 | if test "x$LINE" != x ; then | |
6785 | eval "DEFAULT_$LINE" | |
6786 | else | |
6787 | no_cache=1 | |
6788 | fi | |
6789 | ||
6790 | ac_cv_use_fontdlg='wxUSE_FONTDLG='$DEFAULT_wxUSE_FONTDLG | |
6791 | ||
6792 | fi | |
6793 | ||
6794 | ||
6795 | eval "$ac_cv_use_fontdlg" | |
6796 | if test "$no_cache" != 1; then | |
6797 | echo $ac_cv_use_fontdlg >> ${wx_arg_cache_file}.tmp | |
6798 | fi | |
6799 | ||
6800 | if test "$wxUSE_FONTDLG" = yes; then | |
6801 | echo "$ac_t""yes" 1>&6 | |
6802 | else | |
6803 | echo "$ac_t""no" 1>&6 | |
6804 | fi | |
6805 | ||
6806 | ||
6807 | echo $ac_n "checking for --enable-dirdlg""... $ac_c" 1>&6 | |
b3e8d00a | 6808 | echo "configure:6809: checking for --enable-dirdlg" >&5 |
1e6feb95 VZ |
6809 | no_cache=0 |
6810 | # Check whether --enable-dirdlg or --disable-dirdlg was given. | |
6811 | if test "${enable_dirdlg+set}" = set; then | |
6812 | enableval="$enable_dirdlg" | |
6813 | ||
6814 | if test "$enableval" = yes; then | |
6815 | ac_cv_use_dirdlg='wxUSE_DIRDLG=yes' | |
6816 | else | |
6817 | ac_cv_use_dirdlg='wxUSE_DIRDLG=no' | |
6818 | fi | |
6819 | ||
6820 | else | |
6821 | ||
6822 | LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}` | |
6823 | if test "x$LINE" != x ; then | |
6824 | eval "DEFAULT_$LINE" | |
6825 | else | |
6826 | no_cache=1 | |
6827 | fi | |
6828 | ||
6829 | ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG | |
6830 | ||
6831 | fi | |
6832 | ||
6833 | ||
6834 | eval "$ac_cv_use_dirdlg" | |
10f2d63a | 6835 | if test "$no_cache" != 1; then |
1e6feb95 | 6836 | echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
6837 | fi |
6838 | ||
1e6feb95 | 6839 | if test "$wxUSE_DIRDLG" = yes; then |
698dcdb6 | 6840 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6841 | else |
698dcdb6 | 6842 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6843 | fi |
698dcdb6 VZ |
6844 | |
6845 | ||
1e6feb95 | 6846 | echo $ac_n "checking for --enable-msgdlg""... $ac_c" 1>&6 |
b3e8d00a | 6847 | echo "configure:6848: checking for --enable-msgdlg" >&5 |
10f2d63a | 6848 | no_cache=0 |
1e6feb95 VZ |
6849 | # Check whether --enable-msgdlg or --disable-msgdlg was given. |
6850 | if test "${enable_msgdlg+set}" = set; then | |
6851 | enableval="$enable_msgdlg" | |
698dcdb6 | 6852 | |
10f2d63a | 6853 | if test "$enableval" = yes; then |
1e6feb95 | 6854 | ac_cv_use_msgdlg='wxUSE_MSGDLG=yes' |
10f2d63a | 6855 | else |
1e6feb95 | 6856 | ac_cv_use_msgdlg='wxUSE_MSGDLG=no' |
10f2d63a | 6857 | fi |
698dcdb6 | 6858 | |
10f2d63a | 6859 | else |
698dcdb6 | 6860 | |
1e6feb95 | 6861 | LINE=`grep "wxUSE_MSGDLG" ${wx_arg_cache_file}` |
10f2d63a VZ |
6862 | if test "x$LINE" != x ; then |
6863 | eval "DEFAULT_$LINE" | |
6864 | else | |
6865 | no_cache=1 | |
6866 | fi | |
6867 | ||
1e6feb95 | 6868 | ac_cv_use_msgdlg='wxUSE_MSGDLG='$DEFAULT_wxUSE_MSGDLG |
698dcdb6 VZ |
6869 | |
6870 | fi | |
10f2d63a VZ |
6871 | |
6872 | ||
1e6feb95 | 6873 | eval "$ac_cv_use_msgdlg" |
10f2d63a | 6874 | if test "$no_cache" != 1; then |
1e6feb95 | 6875 | echo $ac_cv_use_msgdlg >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
6876 | fi |
6877 | ||
1e6feb95 | 6878 | if test "$wxUSE_MSGDLG" = yes; then |
698dcdb6 | 6879 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6880 | else |
698dcdb6 | 6881 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6882 | fi |
698dcdb6 | 6883 | |
10f2d63a | 6884 | |
1e6feb95 | 6885 | echo $ac_n "checking for --enable-numberdlg""... $ac_c" 1>&6 |
b3e8d00a | 6886 | echo "configure:6887: checking for --enable-numberdlg" >&5 |
10f2d63a | 6887 | no_cache=0 |
1e6feb95 VZ |
6888 | # Check whether --enable-numberdlg or --disable-numberdlg was given. |
6889 | if test "${enable_numberdlg+set}" = set; then | |
6890 | enableval="$enable_numberdlg" | |
698dcdb6 | 6891 | |
10f2d63a | 6892 | if test "$enableval" = yes; then |
1e6feb95 | 6893 | ac_cv_use_numberdlg='wxUSE_NUMBERDLG=yes' |
10f2d63a | 6894 | else |
1e6feb95 | 6895 | ac_cv_use_numberdlg='wxUSE_NUMBERDLG=no' |
10f2d63a | 6896 | fi |
698dcdb6 | 6897 | |
10f2d63a | 6898 | else |
698dcdb6 | 6899 | |
1e6feb95 | 6900 | LINE=`grep "wxUSE_NUMBERDLG" ${wx_arg_cache_file}` |
10f2d63a VZ |
6901 | if test "x$LINE" != x ; then |
6902 | eval "DEFAULT_$LINE" | |
6903 | else | |
6904 | no_cache=1 | |
6905 | fi | |
6906 | ||
1e6feb95 | 6907 | ac_cv_use_numberdlg='wxUSE_NUMBERDLG='$DEFAULT_wxUSE_NUMBERDLG |
698dcdb6 VZ |
6908 | |
6909 | fi | |
10f2d63a VZ |
6910 | |
6911 | ||
1e6feb95 | 6912 | eval "$ac_cv_use_numberdlg" |
10f2d63a | 6913 | if test "$no_cache" != 1; then |
1e6feb95 | 6914 | echo $ac_cv_use_numberdlg >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
6915 | fi |
6916 | ||
1e6feb95 | 6917 | if test "$wxUSE_NUMBERDLG" = yes; then |
698dcdb6 | 6918 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6919 | else |
698dcdb6 | 6920 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6921 | fi |
698dcdb6 | 6922 | |
10f2d63a | 6923 | |
cbca9943 | 6924 | echo $ac_n "checking for --enable-splash""... $ac_c" 1>&6 |
b3e8d00a | 6925 | echo "configure:6926: checking for --enable-splash" >&5 |
cbca9943 VZ |
6926 | no_cache=0 |
6927 | # Check whether --enable-splash or --disable-splash was given. | |
6928 | if test "${enable_splash+set}" = set; then | |
6929 | enableval="$enable_splash" | |
6930 | ||
6931 | if test "$enableval" = yes; then | |
6932 | ac_cv_use_splash='wxUSE_SPLASH=yes' | |
6933 | else | |
6934 | ac_cv_use_splash='wxUSE_SPLASH=no' | |
6935 | fi | |
6936 | ||
6937 | else | |
6938 | ||
6939 | LINE=`grep "wxUSE_SPLASH" ${wx_arg_cache_file}` | |
6940 | if test "x$LINE" != x ; then | |
6941 | eval "DEFAULT_$LINE" | |
6942 | else | |
6943 | no_cache=1 | |
6944 | fi | |
6945 | ||
6946 | ac_cv_use_splash='wxUSE_SPLASH='$DEFAULT_wxUSE_SPLASH | |
6947 | ||
6948 | fi | |
6949 | ||
6950 | ||
6951 | eval "$ac_cv_use_splash" | |
6952 | if test "$no_cache" != 1; then | |
6953 | echo $ac_cv_use_splash >> ${wx_arg_cache_file}.tmp | |
6954 | fi | |
6955 | ||
6956 | if test "$wxUSE_SPLASH" = yes; then | |
6957 | echo "$ac_t""yes" 1>&6 | |
6958 | else | |
6959 | echo "$ac_t""no" 1>&6 | |
6960 | fi | |
6961 | ||
6962 | ||
698dcdb6 | 6963 | echo $ac_n "checking for --enable-textdlg""... $ac_c" 1>&6 |
b3e8d00a | 6964 | echo "configure:6965: checking for --enable-textdlg" >&5 |
10f2d63a VZ |
6965 | no_cache=0 |
6966 | # Check whether --enable-textdlg or --disable-textdlg was given. | |
6967 | if test "${enable_textdlg+set}" = set; then | |
6968 | enableval="$enable_textdlg" | |
698dcdb6 | 6969 | |
10f2d63a VZ |
6970 | if test "$enableval" = yes; then |
6971 | ac_cv_use_textdlg='wxUSE_TEXTDLG=yes' | |
6972 | else | |
6973 | ac_cv_use_textdlg='wxUSE_TEXTDLG=no' | |
6974 | fi | |
698dcdb6 | 6975 | |
10f2d63a | 6976 | else |
698dcdb6 | 6977 | |
10f2d63a VZ |
6978 | LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}` |
6979 | if test "x$LINE" != x ; then | |
6980 | eval "DEFAULT_$LINE" | |
6981 | else | |
6982 | no_cache=1 | |
6983 | fi | |
6984 | ||
6985 | ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG | |
698dcdb6 VZ |
6986 | |
6987 | fi | |
10f2d63a VZ |
6988 | |
6989 | ||
6990 | eval "$ac_cv_use_textdlg" | |
6991 | if test "$no_cache" != 1; then | |
6992 | echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp | |
6993 | fi | |
6994 | ||
6995 | if test "$wxUSE_TEXTDLG" = yes; then | |
698dcdb6 | 6996 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6997 | else |
698dcdb6 | 6998 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6999 | fi |
698dcdb6 | 7000 | |
10f2d63a | 7001 | |
698dcdb6 | 7002 | echo $ac_n "checking for --enable-tipdlg""... $ac_c" 1>&6 |
b3e8d00a | 7003 | echo "configure:7004: checking for --enable-tipdlg" >&5 |
10f2d63a VZ |
7004 | no_cache=0 |
7005 | # Check whether --enable-tipdlg or --disable-tipdlg was given. | |
7006 | if test "${enable_tipdlg+set}" = set; then | |
7007 | enableval="$enable_tipdlg" | |
698dcdb6 | 7008 | |
10f2d63a VZ |
7009 | if test "$enableval" = yes; then |
7010 | ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes' | |
7011 | else | |
7012 | ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no' | |
7013 | fi | |
698dcdb6 | 7014 | |
10f2d63a | 7015 | else |
698dcdb6 | 7016 | |
10f2d63a VZ |
7017 | LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}` |
7018 | if test "x$LINE" != x ; then | |
7019 | eval "DEFAULT_$LINE" | |
7020 | else | |
7021 | no_cache=1 | |
7022 | fi | |
7023 | ||
7024 | ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS | |
698dcdb6 VZ |
7025 | |
7026 | fi | |
10f2d63a VZ |
7027 | |
7028 | ||
7029 | eval "$ac_cv_use_tipdlg" | |
7030 | if test "$no_cache" != 1; then | |
7031 | echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp | |
7032 | fi | |
7033 | ||
7034 | if test "$wxUSE_STARTUP_TIPS" = yes; then | |
698dcdb6 | 7035 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7036 | else |
698dcdb6 | 7037 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7038 | fi |
698dcdb6 | 7039 | |
10f2d63a | 7040 | |
698dcdb6 | 7041 | echo $ac_n "checking for --enable-progressdlg""... $ac_c" 1>&6 |
b3e8d00a | 7042 | echo "configure:7043: checking for --enable-progressdlg" >&5 |
10f2d63a VZ |
7043 | no_cache=0 |
7044 | # Check whether --enable-progressdlg or --disable-progressdlg was given. | |
7045 | if test "${enable_progressdlg+set}" = set; then | |
7046 | enableval="$enable_progressdlg" | |
698dcdb6 | 7047 | |
10f2d63a VZ |
7048 | if test "$enableval" = yes; then |
7049 | ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes' | |
7050 | else | |
7051 | ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no' | |
7052 | fi | |
698dcdb6 | 7053 | |
10f2d63a | 7054 | else |
698dcdb6 | 7055 | |
10f2d63a VZ |
7056 | LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}` |
7057 | if test "x$LINE" != x ; then | |
7058 | eval "DEFAULT_$LINE" | |
7059 | else | |
7060 | no_cache=1 | |
7061 | fi | |
7062 | ||
7063 | ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG | |
698dcdb6 VZ |
7064 | |
7065 | fi | |
10f2d63a VZ |
7066 | |
7067 | ||
7068 | eval "$ac_cv_use_progressdlg" | |
7069 | if test "$no_cache" != 1; then | |
7070 | echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp | |
7071 | fi | |
7072 | ||
7073 | if test "$wxUSE_PROGRESSDLG" = yes; then | |
698dcdb6 | 7074 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7075 | else |
698dcdb6 | 7076 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7077 | fi |
698dcdb6 | 7078 | |
10f2d63a | 7079 | |
b1f5d087 | 7080 | echo $ac_n "checking for --enable-wizarddlg""... $ac_c" 1>&6 |
b3e8d00a | 7081 | echo "configure:7082: checking for --enable-wizarddlg" >&5 |
b1f5d087 VZ |
7082 | no_cache=0 |
7083 | # Check whether --enable-wizarddlg or --disable-wizarddlg was given. | |
7084 | if test "${enable_wizarddlg+set}" = set; then | |
7085 | enableval="$enable_wizarddlg" | |
7086 | ||
7087 | if test "$enableval" = yes; then | |
7088 | ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=yes' | |
7089 | else | |
7090 | ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=no' | |
7091 | fi | |
7092 | ||
7093 | else | |
7094 | ||
7095 | LINE=`grep "wxUSE_WIZARDDLG" ${wx_arg_cache_file}` | |
7096 | if test "x$LINE" != x ; then | |
7097 | eval "DEFAULT_$LINE" | |
7098 | else | |
7099 | no_cache=1 | |
7100 | fi | |
7101 | ||
7102 | ac_cv_use_wizarddlg='wxUSE_WIZARDDLG='$DEFAULT_wxUSE_WIZARDDLG | |
7103 | ||
7104 | fi | |
7105 | ||
7106 | ||
7107 | eval "$ac_cv_use_wizarddlg" | |
7108 | if test "$no_cache" != 1; then | |
7109 | echo $ac_cv_use_wizarddlg >> ${wx_arg_cache_file}.tmp | |
7110 | fi | |
7111 | ||
7112 | if test "$wxUSE_WIZARDDLG" = yes; then | |
7113 | echo "$ac_t""yes" 1>&6 | |
7114 | else | |
7115 | echo "$ac_t""no" 1>&6 | |
7116 | fi | |
7117 | ||
7118 | ||
7119 | ||
7120 | ||
1e6feb95 | 7121 | echo $ac_n "checking for --enable-menus""... $ac_c" 1>&6 |
b3e8d00a | 7122 | echo "configure:7123: checking for --enable-menus" >&5 |
1e6feb95 VZ |
7123 | no_cache=0 |
7124 | # Check whether --enable-menus or --disable-menus was given. | |
7125 | if test "${enable_menus+set}" = set; then | |
7126 | enableval="$enable_menus" | |
7127 | ||
7128 | if test "$enableval" = yes; then | |
7129 | ac_cv_use_menus='wxUSE_MENUS=yes' | |
7130 | else | |
7131 | ac_cv_use_menus='wxUSE_MENUS=no' | |
7132 | fi | |
7133 | ||
7134 | else | |
7135 | ||
7136 | LINE=`grep "wxUSE_MENUS" ${wx_arg_cache_file}` | |
7137 | if test "x$LINE" != x ; then | |
7138 | eval "DEFAULT_$LINE" | |
7139 | else | |
7140 | no_cache=1 | |
7141 | fi | |
7142 | ||
7143 | ac_cv_use_menus='wxUSE_MENUS='$DEFAULT_wxUSE_MENUS | |
7144 | ||
7145 | fi | |
7146 | ||
7147 | ||
7148 | eval "$ac_cv_use_menus" | |
7149 | if test "$no_cache" != 1; then | |
7150 | echo $ac_cv_use_menus >> ${wx_arg_cache_file}.tmp | |
7151 | fi | |
7152 | ||
7153 | if test "$wxUSE_MENUS" = yes; then | |
7154 | echo "$ac_t""yes" 1>&6 | |
7155 | else | |
7156 | echo "$ac_t""no" 1>&6 | |
7157 | fi | |
7158 | ||
7159 | ||
698dcdb6 | 7160 | echo $ac_n "checking for --enable-miniframe""... $ac_c" 1>&6 |
b3e8d00a | 7161 | echo "configure:7162: checking for --enable-miniframe" >&5 |
10f2d63a VZ |
7162 | no_cache=0 |
7163 | # Check whether --enable-miniframe or --disable-miniframe was given. | |
7164 | if test "${enable_miniframe+set}" = set; then | |
7165 | enableval="$enable_miniframe" | |
698dcdb6 | 7166 | |
10f2d63a VZ |
7167 | if test "$enableval" = yes; then |
7168 | ac_cv_use_miniframe='wxUSE_MINIFRAME=yes' | |
7169 | else | |
7170 | ac_cv_use_miniframe='wxUSE_MINIFRAME=no' | |
7171 | fi | |
698dcdb6 | 7172 | |
10f2d63a | 7173 | else |
698dcdb6 | 7174 | |
10f2d63a VZ |
7175 | LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}` |
7176 | if test "x$LINE" != x ; then | |
7177 | eval "DEFAULT_$LINE" | |
7178 | else | |
7179 | no_cache=1 | |
7180 | fi | |
7181 | ||
7182 | ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME | |
698dcdb6 VZ |
7183 | |
7184 | fi | |
10f2d63a VZ |
7185 | |
7186 | ||
7187 | eval "$ac_cv_use_miniframe" | |
7188 | if test "$no_cache" != 1; then | |
7189 | echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp | |
7190 | fi | |
7191 | ||
7192 | if test "$wxUSE_MINIFRAME" = yes; then | |
698dcdb6 | 7193 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7194 | else |
698dcdb6 | 7195 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7196 | fi |
698dcdb6 | 7197 | |
10f2d63a | 7198 | |
698dcdb6 | 7199 | echo $ac_n "checking for --enable-tooltips""... $ac_c" 1>&6 |
b3e8d00a | 7200 | echo "configure:7201: checking for --enable-tooltips" >&5 |
10f2d63a VZ |
7201 | no_cache=0 |
7202 | # Check whether --enable-tooltips or --disable-tooltips was given. | |
7203 | if test "${enable_tooltips+set}" = set; then | |
7204 | enableval="$enable_tooltips" | |
698dcdb6 | 7205 | |
10f2d63a VZ |
7206 | if test "$enableval" = yes; then |
7207 | ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes' | |
7208 | else | |
7209 | ac_cv_use_tooltips='wxUSE_TOOLTIPS=no' | |
7210 | fi | |
698dcdb6 | 7211 | |
10f2d63a | 7212 | else |
698dcdb6 | 7213 | |
10f2d63a VZ |
7214 | LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}` |
7215 | if test "x$LINE" != x ; then | |
7216 | eval "DEFAULT_$LINE" | |
7217 | else | |
7218 | no_cache=1 | |
7219 | fi | |
7220 | ||
7221 | ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS | |
698dcdb6 VZ |
7222 | |
7223 | fi | |
10f2d63a VZ |
7224 | |
7225 | ||
7226 | eval "$ac_cv_use_tooltips" | |
7227 | if test "$no_cache" != 1; then | |
7228 | echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp | |
7229 | fi | |
7230 | ||
7231 | if test "$wxUSE_TOOLTIPS" = yes; then | |
698dcdb6 | 7232 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7233 | else |
698dcdb6 | 7234 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7235 | fi |
698dcdb6 | 7236 | |
10f2d63a | 7237 | |
698dcdb6 | 7238 | echo $ac_n "checking for --enable-splines""... $ac_c" 1>&6 |
b3e8d00a | 7239 | echo "configure:7240: checking for --enable-splines" >&5 |
10f2d63a VZ |
7240 | no_cache=0 |
7241 | # Check whether --enable-splines or --disable-splines was given. | |
7242 | if test "${enable_splines+set}" = set; then | |
7243 | enableval="$enable_splines" | |
698dcdb6 | 7244 | |
10f2d63a VZ |
7245 | if test "$enableval" = yes; then |
7246 | ac_cv_use_splines='wxUSE_SPLINES=yes' | |
7247 | else | |
7248 | ac_cv_use_splines='wxUSE_SPLINES=no' | |
7249 | fi | |
698dcdb6 | 7250 | |
10f2d63a | 7251 | else |
698dcdb6 | 7252 | |
10f2d63a VZ |
7253 | LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}` |
7254 | if test "x$LINE" != x ; then | |
7255 | eval "DEFAULT_$LINE" | |
7256 | else | |
7257 | no_cache=1 | |
7258 | fi | |
7259 | ||
7260 | ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES | |
698dcdb6 VZ |
7261 | |
7262 | fi | |
10f2d63a VZ |
7263 | |
7264 | ||
7265 | eval "$ac_cv_use_splines" | |
7266 | if test "$no_cache" != 1; then | |
7267 | echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp | |
7268 | fi | |
7269 | ||
7270 | if test "$wxUSE_SPLINES" = yes; then | |
698dcdb6 | 7271 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7272 | else |
698dcdb6 | 7273 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7274 | fi |
698dcdb6 | 7275 | |
10f2d63a | 7276 | |
698dcdb6 | 7277 | echo $ac_n "checking for --enable-validators""... $ac_c" 1>&6 |
b3e8d00a | 7278 | echo "configure:7279: checking for --enable-validators" >&5 |
10f2d63a VZ |
7279 | no_cache=0 |
7280 | # Check whether --enable-validators or --disable-validators was given. | |
7281 | if test "${enable_validators+set}" = set; then | |
7282 | enableval="$enable_validators" | |
698dcdb6 | 7283 | |
10f2d63a VZ |
7284 | if test "$enableval" = yes; then |
7285 | ac_cv_use_validators='wxUSE_VALIDATORS=yes' | |
7286 | else | |
7287 | ac_cv_use_validators='wxUSE_VALIDATORS=no' | |
7288 | fi | |
698dcdb6 | 7289 | |
10f2d63a | 7290 | else |
698dcdb6 | 7291 | |
10f2d63a VZ |
7292 | LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}` |
7293 | if test "x$LINE" != x ; then | |
7294 | eval "DEFAULT_$LINE" | |
7295 | else | |
7296 | no_cache=1 | |
7297 | fi | |
7298 | ||
7299 | ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS | |
698dcdb6 VZ |
7300 | |
7301 | fi | |
10f2d63a VZ |
7302 | |
7303 | ||
7304 | eval "$ac_cv_use_validators" | |
7305 | if test "$no_cache" != 1; then | |
7306 | echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp | |
7307 | fi | |
7308 | ||
7309 | if test "$wxUSE_VALIDATORS" = yes; then | |
698dcdb6 | 7310 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7311 | else |
698dcdb6 | 7312 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7313 | fi |
698dcdb6 | 7314 | |
10f2d63a | 7315 | |
698dcdb6 | 7316 | echo $ac_n "checking for --enable-busyinfo""... $ac_c" 1>&6 |
b3e8d00a | 7317 | echo "configure:7318: checking for --enable-busyinfo" >&5 |
10f2d63a VZ |
7318 | no_cache=0 |
7319 | # Check whether --enable-busyinfo or --disable-busyinfo was given. | |
7320 | if test "${enable_busyinfo+set}" = set; then | |
7321 | enableval="$enable_busyinfo" | |
698dcdb6 | 7322 | |
10f2d63a VZ |
7323 | if test "$enableval" = yes; then |
7324 | ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes' | |
7325 | else | |
7326 | ac_cv_use_busyinfo='wxUSE_BUSYINFO=no' | |
7327 | fi | |
698dcdb6 | 7328 | |
10f2d63a | 7329 | else |
698dcdb6 | 7330 | |
10f2d63a VZ |
7331 | LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}` |
7332 | if test "x$LINE" != x ; then | |
7333 | eval "DEFAULT_$LINE" | |
7334 | else | |
7335 | no_cache=1 | |
7336 | fi | |
7337 | ||
7338 | ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO | |
698dcdb6 VZ |
7339 | |
7340 | fi | |
10f2d63a VZ |
7341 | |
7342 | ||
7343 | eval "$ac_cv_use_busyinfo" | |
7344 | if test "$no_cache" != 1; then | |
7345 | echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp | |
7346 | fi | |
7347 | ||
7348 | if test "$wxUSE_BUSYINFO" = yes; then | |
698dcdb6 | 7349 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7350 | else |
698dcdb6 | 7351 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7352 | fi |
698dcdb6 | 7353 | |
10f2d63a | 7354 | |
698dcdb6 | 7355 | echo $ac_n "checking for --enable-joystick""... $ac_c" 1>&6 |
b3e8d00a | 7356 | echo "configure:7357: checking for --enable-joystick" >&5 |
f6bcfd97 BP |
7357 | no_cache=0 |
7358 | # Check whether --enable-joystick or --disable-joystick was given. | |
7359 | if test "${enable_joystick+set}" = set; then | |
7360 | enableval="$enable_joystick" | |
698dcdb6 | 7361 | |
f6bcfd97 BP |
7362 | if test "$enableval" = yes; then |
7363 | ac_cv_use_joystick='wxUSE_JOYSTICK=yes' | |
7364 | else | |
7365 | ac_cv_use_joystick='wxUSE_JOYSTICK=no' | |
7366 | fi | |
698dcdb6 | 7367 | |
f6bcfd97 | 7368 | else |
698dcdb6 | 7369 | |
f6bcfd97 BP |
7370 | LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}` |
7371 | if test "x$LINE" != x ; then | |
7372 | eval "DEFAULT_$LINE" | |
7373 | else | |
7374 | no_cache=1 | |
7375 | fi | |
7376 | ||
7377 | ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK | |
698dcdb6 VZ |
7378 | |
7379 | fi | |
f6bcfd97 BP |
7380 | |
7381 | ||
7382 | eval "$ac_cv_use_joystick" | |
7383 | if test "$no_cache" != 1; then | |
7384 | echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp | |
7385 | fi | |
7386 | ||
7387 | if test "$wxUSE_JOYSTICK" = yes; then | |
698dcdb6 | 7388 | echo "$ac_t""yes" 1>&6 |
f6bcfd97 | 7389 | else |
698dcdb6 | 7390 | echo "$ac_t""no" 1>&6 |
f6bcfd97 | 7391 | fi |
698dcdb6 VZ |
7392 | |
7393 | ||
1e6feb95 | 7394 | echo $ac_n "checking for --enable-metafile""... $ac_c" 1>&6 |
b3e8d00a | 7395 | echo "configure:7396: checking for --enable-metafile" >&5 |
1e6feb95 VZ |
7396 | no_cache=0 |
7397 | # Check whether --enable-metafile or --disable-metafile was given. | |
7398 | if test "${enable_metafile+set}" = set; then | |
7399 | enableval="$enable_metafile" | |
7400 | ||
7401 | if test "$enableval" = yes; then | |
7402 | ac_cv_use_metafile='wxUSE_METAFILE=yes' | |
7403 | else | |
7404 | ac_cv_use_metafile='wxUSE_METAFILE=no' | |
7405 | fi | |
7406 | ||
7407 | else | |
7408 | ||
7409 | LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}` | |
7410 | if test "x$LINE" != x ; then | |
7411 | eval "DEFAULT_$LINE" | |
7412 | else | |
7413 | no_cache=1 | |
7414 | fi | |
7415 | ||
7416 | ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE | |
7417 | ||
7418 | fi | |
7419 | ||
7420 | ||
7421 | eval "$ac_cv_use_metafile" | |
7422 | if test "$no_cache" != 1; then | |
7423 | echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp | |
7424 | fi | |
7425 | ||
7426 | if test "$wxUSE_METAFILE" = yes; then | |
7427 | echo "$ac_t""yes" 1>&6 | |
7428 | else | |
7429 | echo "$ac_t""no" 1>&6 | |
7430 | fi | |
7431 | ||
7432 | ||
24fd6d87 | 7433 | echo $ac_n "checking for --enable-dragimage""... $ac_c" 1>&6 |
b3e8d00a | 7434 | echo "configure:7435: checking for --enable-dragimage" >&5 |
24fd6d87 VZ |
7435 | no_cache=0 |
7436 | # Check whether --enable-dragimage or --disable-dragimage was given. | |
7437 | if test "${enable_dragimage+set}" = set; then | |
7438 | enableval="$enable_dragimage" | |
7439 | ||
7440 | if test "$enableval" = yes; then | |
7441 | ac_cv_use_dragimage='wxUSE_DRAGIMAGE=yes' | |
7442 | else | |
7443 | ac_cv_use_dragimage='wxUSE_DRAGIMAGE=no' | |
7444 | fi | |
7445 | ||
7446 | else | |
7447 | ||
7448 | LINE=`grep "wxUSE_DRAGIMAGE" ${wx_arg_cache_file}` | |
7449 | if test "x$LINE" != x ; then | |
7450 | eval "DEFAULT_$LINE" | |
7451 | else | |
7452 | no_cache=1 | |
7453 | fi | |
7454 | ||
7455 | ac_cv_use_dragimage='wxUSE_DRAGIMAGE='$DEFAULT_wxUSE_DRAGIMAGE | |
7456 | ||
7457 | fi | |
7458 | ||
7459 | ||
7460 | eval "$ac_cv_use_dragimage" | |
7461 | if test "$no_cache" != 1; then | |
7462 | echo $ac_cv_use_dragimage >> ${wx_arg_cache_file}.tmp | |
7463 | fi | |
7464 | ||
7465 | if test "$wxUSE_DRAGIMAGE" = yes; then | |
7466 | echo "$ac_t""yes" 1>&6 | |
7467 | else | |
7468 | echo "$ac_t""no" 1>&6 | |
7469 | fi | |
7470 | ||
7471 | ||
10f2d63a | 7472 | |
698dcdb6 VZ |
7473 | |
7474 | echo $ac_n "checking for --enable-image""... $ac_c" 1>&6 | |
b3e8d00a | 7475 | echo "configure:7476: checking for --enable-image" >&5 |
0046ff7c VS |
7476 | no_cache=0 |
7477 | # Check whether --enable-image or --disable-image was given. | |
7478 | if test "${enable_image+set}" = set; then | |
7479 | enableval="$enable_image" | |
698dcdb6 | 7480 | |
0046ff7c VS |
7481 | if test "$enableval" = yes; then |
7482 | ac_cv_use_image='wxUSE_IMAGE=yes' | |
7483 | else | |
7484 | ac_cv_use_image='wxUSE_IMAGE=no' | |
7485 | fi | |
698dcdb6 | 7486 | |
0046ff7c | 7487 | else |
698dcdb6 | 7488 | |
0046ff7c VS |
7489 | LINE=`grep "wxUSE_IMAGE" ${wx_arg_cache_file}` |
7490 | if test "x$LINE" != x ; then | |
7491 | eval "DEFAULT_$LINE" | |
7492 | else | |
7493 | no_cache=1 | |
7494 | fi | |
7495 | ||
7496 | ac_cv_use_image='wxUSE_IMAGE='$DEFAULT_wxUSE_IMAGE | |
698dcdb6 VZ |
7497 | |
7498 | fi | |
0046ff7c VS |
7499 | |
7500 | ||
7501 | eval "$ac_cv_use_image" | |
7502 | if test "$no_cache" != 1; then | |
7503 | echo $ac_cv_use_image >> ${wx_arg_cache_file}.tmp | |
7504 | fi | |
7505 | ||
7506 | if test "$wxUSE_IMAGE" = yes; then | |
698dcdb6 | 7507 | echo "$ac_t""yes" 1>&6 |
0046ff7c | 7508 | else |
698dcdb6 | 7509 | echo "$ac_t""no" 1>&6 |
0046ff7c | 7510 | fi |
698dcdb6 | 7511 | |
0046ff7c | 7512 | |
698dcdb6 | 7513 | echo $ac_n "checking for --enable-gif""... $ac_c" 1>&6 |
b3e8d00a | 7514 | echo "configure:7515: checking for --enable-gif" >&5 |
10f2d63a VZ |
7515 | no_cache=0 |
7516 | # Check whether --enable-gif or --disable-gif was given. | |
7517 | if test "${enable_gif+set}" = set; then | |
7518 | enableval="$enable_gif" | |
698dcdb6 | 7519 | |
10f2d63a VZ |
7520 | if test "$enableval" = yes; then |
7521 | ac_cv_use_gif='wxUSE_GIF=yes' | |
7522 | else | |
7523 | ac_cv_use_gif='wxUSE_GIF=no' | |
7524 | fi | |
698dcdb6 | 7525 | |
10f2d63a | 7526 | else |
698dcdb6 | 7527 | |
10f2d63a VZ |
7528 | LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}` |
7529 | if test "x$LINE" != x ; then | |
7530 | eval "DEFAULT_$LINE" | |
7531 | else | |
7532 | no_cache=1 | |
7533 | fi | |
7534 | ||
7535 | ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF | |
698dcdb6 VZ |
7536 | |
7537 | fi | |
10f2d63a VZ |
7538 | |
7539 | ||
7540 | eval "$ac_cv_use_gif" | |
7541 | if test "$no_cache" != 1; then | |
7542 | echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp | |
7543 | fi | |
7544 | ||
7545 | if test "$wxUSE_GIF" = yes; then | |
698dcdb6 | 7546 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7547 | else |
698dcdb6 | 7548 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7549 | fi |
698dcdb6 | 7550 | |
10f2d63a | 7551 | |
698dcdb6 | 7552 | echo $ac_n "checking for --enable-pcx""... $ac_c" 1>&6 |
b3e8d00a | 7553 | echo "configure:7554: checking for --enable-pcx" >&5 |
10f2d63a VZ |
7554 | no_cache=0 |
7555 | # Check whether --enable-pcx or --disable-pcx was given. | |
7556 | if test "${enable_pcx+set}" = set; then | |
7557 | enableval="$enable_pcx" | |
698dcdb6 | 7558 | |
10f2d63a VZ |
7559 | if test "$enableval" = yes; then |
7560 | ac_cv_use_pcx='wxUSE_PCX=yes' | |
7561 | else | |
7562 | ac_cv_use_pcx='wxUSE_PCX=no' | |
7563 | fi | |
698dcdb6 | 7564 | |
10f2d63a | 7565 | else |
698dcdb6 | 7566 | |
10f2d63a VZ |
7567 | LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}` |
7568 | if test "x$LINE" != x ; then | |
7569 | eval "DEFAULT_$LINE" | |
7570 | else | |
7571 | no_cache=1 | |
7572 | fi | |
7573 | ||
7574 | ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX | |
698dcdb6 VZ |
7575 | |
7576 | fi | |
10f2d63a VZ |
7577 | |
7578 | ||
7579 | eval "$ac_cv_use_pcx" | |
7580 | if test "$no_cache" != 1; then | |
7581 | echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp | |
7582 | fi | |
7583 | ||
7584 | if test "$wxUSE_PCX" = yes; then | |
698dcdb6 | 7585 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7586 | else |
698dcdb6 | 7587 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7588 | fi |
698dcdb6 | 7589 | |
10f2d63a | 7590 | |
698dcdb6 | 7591 | echo $ac_n "checking for --enable-pnm""... $ac_c" 1>&6 |
b3e8d00a | 7592 | echo "configure:7593: checking for --enable-pnm" >&5 |
10f2d63a VZ |
7593 | no_cache=0 |
7594 | # Check whether --enable-pnm or --disable-pnm was given. | |
7595 | if test "${enable_pnm+set}" = set; then | |
7596 | enableval="$enable_pnm" | |
698dcdb6 | 7597 | |
10f2d63a VZ |
7598 | if test "$enableval" = yes; then |
7599 | ac_cv_use_pnm='wxUSE_PNM=yes' | |
7600 | else | |
7601 | ac_cv_use_pnm='wxUSE_PNM=no' | |
7602 | fi | |
698dcdb6 | 7603 | |
10f2d63a | 7604 | else |
698dcdb6 | 7605 | |
10f2d63a VZ |
7606 | LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}` |
7607 | if test "x$LINE" != x ; then | |
7608 | eval "DEFAULT_$LINE" | |
7609 | else | |
7610 | no_cache=1 | |
7611 | fi | |
7612 | ||
7613 | ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM | |
698dcdb6 VZ |
7614 | |
7615 | fi | |
10f2d63a VZ |
7616 | |
7617 | ||
7618 | eval "$ac_cv_use_pnm" | |
7619 | if test "$no_cache" != 1; then | |
7620 | echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp | |
7621 | fi | |
7622 | ||
7623 | if test "$wxUSE_PNM" = yes; then | |
698dcdb6 | 7624 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7625 | else |
698dcdb6 | 7626 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7627 | fi |
698dcdb6 | 7628 | |
10f2d63a | 7629 | |
698dcdb6 | 7630 | echo $ac_n "checking for --enable-pnm""... $ac_c" 1>&6 |
b3e8d00a | 7631 | echo "configure:7632: checking for --enable-pnm" >&5 |
0046ff7c VS |
7632 | no_cache=0 |
7633 | # Check whether --enable-pnm or --disable-pnm was given. | |
7634 | if test "${enable_pnm+set}" = set; then | |
7635 | enableval="$enable_pnm" | |
698dcdb6 | 7636 | |
0046ff7c VS |
7637 | if test "$enableval" = yes; then |
7638 | ac_cv_use_pnm='wxUSE_XPM=yes' | |
7639 | else | |
7640 | ac_cv_use_pnm='wxUSE_XPM=no' | |
7641 | fi | |
698dcdb6 | 7642 | |
0046ff7c | 7643 | else |
698dcdb6 | 7644 | |
0046ff7c VS |
7645 | LINE=`grep "wxUSE_XPM" ${wx_arg_cache_file}` |
7646 | if test "x$LINE" != x ; then | |
7647 | eval "DEFAULT_$LINE" | |
7648 | else | |
7649 | no_cache=1 | |
7650 | fi | |
7651 | ||
7652 | ac_cv_use_pnm='wxUSE_XPM='$DEFAULT_wxUSE_XPM | |
698dcdb6 VZ |
7653 | |
7654 | fi | |
0046ff7c VS |
7655 | |
7656 | ||
7657 | eval "$ac_cv_use_pnm" | |
7658 | if test "$no_cache" != 1; then | |
7659 | echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp | |
7660 | fi | |
7661 | ||
7662 | if test "$wxUSE_XPM" = yes; then | |
698dcdb6 | 7663 | echo "$ac_t""yes" 1>&6 |
0046ff7c | 7664 | else |
698dcdb6 | 7665 | echo "$ac_t""no" 1>&6 |
0046ff7c | 7666 | fi |
698dcdb6 | 7667 | |
0046ff7c | 7668 | |
b12915c1 VZ |
7669 | fi |
7670 | ||
698dcdb6 | 7671 | |
10f2d63a VZ |
7672 | echo "saving argument cache $wx_arg_cache_file" |
7673 | mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file} | |
698dcdb6 | 7674 | |
10f2d63a | 7675 | |
698dcdb6 VZ |
7676 | |
7677 | echo $ac_n "checking for toolkit""... $ac_c" 1>&6 | |
b3e8d00a | 7678 | echo "configure:7679: checking for toolkit" >&5 |
10f2d63a VZ |
7679 | |
7680 | if test "$wxUSE_GUI" = "yes"; then | |
7681 | ||
3a922bb4 RL |
7682 | if test "$USE_BEOS" = 1; then |
7683 | { echo "configure: error: BeOS GUI is not supported yet, use --disable-gui" 1>&2; exit 1; } | |
7684 | fi | |
b12915c1 | 7685 | |
3a922bb4 RL |
7686 | if test "$TOOLKIT_GIVEN" = 1; then |
7687 | for toolkit in `echo $ALL_TOOLKITS`; do | |
7688 | var=wxUSE_$toolkit | |
7689 | eval "value=\$${var}" | |
7690 | eval "$var=`echo \$value | sed -e "s/yes/1/" -e "s/no/0/"`" | |
7691 | done | |
10f2d63a | 7692 | else |
3a922bb4 RL |
7693 | for toolkit in `echo $ALL_TOOLKITS`; do |
7694 | if test "$has_toolkit_in_cache" != 1; then | |
7695 | var=DEFAULT_DEFAULT_wxUSE_$toolkit | |
7696 | else | |
7697 | var=DEFAULT_wxUSE_$toolkit | |
7698 | fi | |
7699 | eval "wxUSE_$toolkit=\$${var}" | |
7700 | done | |
10f2d63a | 7701 | fi |
10f2d63a | 7702 | |
3a922bb4 RL |
7703 | NUM_TOOLKITS=`expr ${wxUSE_GTK:-0} + ${wxUSE_MOTIF:-0} + ${wxUSE_MAC:-0} \ |
7704 | + ${wxUSE_WINE:-0} + ${wxUSE_MINGW:-0} + ${wxUSE_CYGWIN:-0} \ | |
7705 | + ${wxUSE_MGL:-0}` | |
10f2d63a | 7706 | |
3a922bb4 RL |
7707 | case "${host}" in |
7708 | *-pc-os2_emx ) | |
7709 | # PATH_IFS is autodetected by OS/2's configure (usually ';') | |
7710 | NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}` | |
7711 | LEX_STEM="lexyy" | |
7712 | ;; | |
7713 | *) | |
7714 | PATH_IFS=':' | |
7715 | LEX_STEM="lex.yy" | |
7716 | ;; | |
7717 | esac | |
10f2d63a | 7718 | |
3a922bb4 RL |
7719 | case "$NUM_TOOLKITS" in |
7720 | 1) | |
7721 | ;; | |
7722 | 0) | |
7723 | { echo "configure: error: Please specify a toolkit - cannot determine the default for ${host}" 1>&2; exit 1; } | |
7724 | ;; | |
7725 | *) | |
7726 | { echo "configure: error: Please specify at most one toolkit (may be some are cached?)" 1>&2; exit 1; } | |
7727 | esac | |
10f2d63a | 7728 | |
3a922bb4 RL |
7729 | for toolkit in `echo $ALL_TOOLKITS`; do |
7730 | var=wxUSE_$toolkit | |
7731 | eval "value=\$${var}" | |
7732 | if test "x$value" != x; then | |
7733 | cache_var=CACHE_$toolkit | |
7734 | eval "cache=\$${cache_var}" | |
7735 | if test "$cache" = 1; then | |
7736 | echo "$var=$value" >> ${wx_arg_cache_file} | |
7737 | fi | |
7738 | if test "$value" = 1; then | |
7739 | toolkit_echo=`echo $toolkit | tr [A-Z] [a-z]` | |
7740 | echo "$ac_t""$toolkit_echo" 1>&6 | |
7741 | fi | |
7742 | fi | |
7743 | done | |
10f2d63a | 7744 | else |
cf27ef00 | 7745 | PATH_IFS=':' |
3a922bb4 | 7746 | echo "$ac_t""base ($host_alias hosted) only" 1>&6 |
10f2d63a VZ |
7747 | fi |
7748 | ||
698dcdb6 VZ |
7749 | |
7750 | cat > confcache <<\EOF | |
10f2d63a VZ |
7751 | # This file is a shell script that caches the results of configure |
7752 | # tests run on this system so they can be shared between configure | |
698dcdb6 VZ |
7753 | # scripts and configure runs. It is not useful on other systems. |
7754 | # If it contains results you don't want to keep, you may remove or edit it. | |
10f2d63a | 7755 | # |
698dcdb6 VZ |
7756 | # By default, configure uses ./config.cache as the cache file, |
7757 | # creating it if it does not exist already. You can give configure | |
7758 | # the --cache-file=FILE option to use a different cache file; that is | |
7759 | # what configure does when it calls configure scripts in | |
7760 | # subdirectories, so they share the cache. | |
7761 | # Giving --cache-file=/dev/null disables caching, for debugging configure. | |
7762 | # config.status only pays attention to the cache file if you give it the | |
7763 | # --recheck option to rerun configure. | |
10f2d63a | 7764 | # |
698dcdb6 | 7765 | EOF |
10f2d63a VZ |
7766 | # The following way of writing the cache mishandles newlines in values, |
7767 | # but we know of no workaround that is simple, portable, and efficient. | |
7768 | # So, don't put newlines in cache variables' values. | |
7769 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
7770 | # and sets the high bit in the cache file unless we assign to the vars. | |
698dcdb6 VZ |
7771 | (set) 2>&1 | |
7772 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
7773 | *ac_space=\ *) | |
7774 | # `set' does not quote correctly, so add quotes (double-quote substitution | |
7775 | # turns \\\\ into \\, and sed turns \\ into \). | |
7776 | sed -n \ | |
7777 | -e "s/'/'\\\\''/g" \ | |
7778 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" | |
7779 | ;; | |
7780 | *) | |
7781 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
7782 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' | |
7783 | ;; | |
7784 | esac >> confcache | |
7785 | if cmp -s $cache_file confcache; then | |
7786 | : | |
7787 | else | |
10f2d63a | 7788 | if test -w $cache_file; then |
698dcdb6 VZ |
7789 | echo "updating cache $cache_file" |
7790 | cat confcache > $cache_file | |
10f2d63a VZ |
7791 | else |
7792 | echo "not updating unwritable cache $cache_file" | |
7793 | fi | |
7794 | fi | |
7795 | rm -f confcache | |
7796 | ||
698dcdb6 | 7797 | |
e59890c3 | 7798 | if test "$build" != "$host" ; then |
3a922bb4 RL |
7799 | if test "$USE_WIN32" = 1 ; then |
7800 | CC=$host_alias-gcc | |
7801 | CXX=$host_alias-c++ | |
7802 | AR=$host_alias-ar | |
7803 | RANLIB=$host_alias-ranlib | |
7804 | DLLTOOL=$host_alias-dlltool | |
7805 | RESCOMP=$host_alias-windres | |
7806 | LD=$host_alias-ld | |
7807 | NM=$host_alias-nm | |
7808 | STRIP=$host_alias-strip | |
7809 | else | |
7810 | { echo "configure: error: $build_alias -> $host_alias cross compilation not supported yet." 1>&2; exit 1; } | |
7811 | fi | |
10f2d63a VZ |
7812 | fi |
7813 | ||
698dcdb6 | 7814 | # Extract the first word of "gcc", so it can be a program name with args. |
1e487827 | 7815 | set dummy gcc; ac_word=$2 |
698dcdb6 | 7816 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
b3e8d00a | 7817 | echo "configure:7818: checking for $ac_word" >&5 |
698dcdb6 VZ |
7818 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
7819 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6232543b VS |
7820 | else |
7821 | if test -n "$CC"; then | |
7822 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
10f2d63a | 7823 | else |
698dcdb6 VZ |
7824 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
7825 | ac_dummy="$PATH" | |
7826 | for ac_dir in $ac_dummy; do | |
7827 | test -z "$ac_dir" && ac_dir=. | |
7828 | if test -f $ac_dir/$ac_word; then | |
7829 | ac_cv_prog_CC="gcc" | |
7830 | break | |
7831 | fi | |
7832 | done | |
7833 | IFS="$ac_save_ifs" | |
10f2d63a | 7834 | fi |
6232543b | 7835 | fi |
698dcdb6 | 7836 | CC="$ac_cv_prog_CC" |
6232543b | 7837 | if test -n "$CC"; then |
698dcdb6 | 7838 | echo "$ac_t""$CC" 1>&6 |
1e487827 | 7839 | else |
698dcdb6 | 7840 | echo "$ac_t""no" 1>&6 |
1e487827 | 7841 | fi |
6232543b | 7842 | |
1e487827 VS |
7843 | if test -z "$CC"; then |
7844 | # Extract the first word of "cc", so it can be a program name with args. | |
7845 | set dummy cc; ac_word=$2 | |
698dcdb6 | 7846 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
b3e8d00a | 7847 | echo "configure:7848: checking for $ac_word" >&5 |
698dcdb6 VZ |
7848 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
7849 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1e487827 VS |
7850 | else |
7851 | if test -n "$CC"; then | |
7852 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
7853 | else | |
698dcdb6 | 7854 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
1e487827 | 7855 | ac_prog_rejected=no |
698dcdb6 VZ |
7856 | ac_dummy="$PATH" |
7857 | for ac_dir in $ac_dummy; do | |
7858 | test -z "$ac_dir" && ac_dir=. | |
7859 | if test -f $ac_dir/$ac_word; then | |
7860 | if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then | |
7861 | ac_prog_rejected=yes | |
7862 | continue | |
7863 | fi | |
7864 | ac_cv_prog_CC="cc" | |
7865 | break | |
7866 | fi | |
7867 | done | |
7868 | IFS="$ac_save_ifs" | |
1e487827 VS |
7869 | if test $ac_prog_rejected = yes; then |
7870 | # We found a bogon in the path, so make sure we never use it. | |
7871 | set dummy $ac_cv_prog_CC | |
7872 | shift | |
698dcdb6 | 7873 | if test $# -gt 0; then |
1e487827 VS |
7874 | # We chose a different compiler from the bogus one. |
7875 | # However, it has the same basename, so the bogon will be chosen | |
7876 | # first if we set CC to just the basename; use the full file name. | |
7877 | shift | |
698dcdb6 | 7878 | set dummy "$ac_dir/$ac_word" "$@" |
1e487827 VS |
7879 | shift |
7880 | ac_cv_prog_CC="$@" | |
703e0a69 | 7881 | fi |
1e487827 VS |
7882 | fi |
7883 | fi | |
7884 | fi | |
698dcdb6 | 7885 | CC="$ac_cv_prog_CC" |
1e487827 | 7886 | if test -n "$CC"; then |
698dcdb6 | 7887 | echo "$ac_t""$CC" 1>&6 |
703e0a69 | 7888 | else |
698dcdb6 | 7889 | echo "$ac_t""no" 1>&6 |
703e0a69 | 7890 | fi |
1e487827 | 7891 | |
698dcdb6 VZ |
7892 | if test -z "$CC"; then |
7893 | case "`uname -s`" in | |
7894 | *win32* | *WIN32*) | |
7895 | # Extract the first word of "cl", so it can be a program name with args. | |
7896 | set dummy cl; ac_word=$2 | |
7897 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
b3e8d00a | 7898 | echo "configure:7899: checking for $ac_word" >&5 |
698dcdb6 VZ |
7899 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
7900 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1e487827 VS |
7901 | else |
7902 | if test -n "$CC"; then | |
7903 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
703e0a69 | 7904 | else |
698dcdb6 VZ |
7905 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
7906 | ac_dummy="$PATH" | |
7907 | for ac_dir in $ac_dummy; do | |
7908 | test -z "$ac_dir" && ac_dir=. | |
7909 | if test -f $ac_dir/$ac_word; then | |
7910 | ac_cv_prog_CC="cl" | |
7911 | break | |
7912 | fi | |
7913 | done | |
7914 | IFS="$ac_save_ifs" | |
703e0a69 | 7915 | fi |
1e487827 | 7916 | fi |
698dcdb6 | 7917 | CC="$ac_cv_prog_CC" |
1e487827 | 7918 | if test -n "$CC"; then |
698dcdb6 | 7919 | echo "$ac_t""$CC" 1>&6 |
1e487827 | 7920 | else |
698dcdb6 | 7921 | echo "$ac_t""no" 1>&6 |
1e487827 | 7922 | fi |
698dcdb6 VZ |
7923 | ;; |
7924 | esac | |
7925 | fi | |
7926 | test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } | |
1e487827 VS |
7927 | fi |
7928 | ||
698dcdb6 | 7929 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 |
b3e8d00a | 7930 | echo "configure:7931: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 |
1e487827 | 7931 | |
698dcdb6 VZ |
7932 | ac_ext=c |
7933 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
7934 | ac_cpp='$CPP $CPPFLAGS' | |
7935 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
7936 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
7937 | cross_compiling=$ac_cv_prog_cc_cross | |
6232543b | 7938 | |
698dcdb6 | 7939 | cat > conftest.$ac_ext << EOF |
1e487827 | 7940 | |
b3e8d00a | 7941 | #line 7942 "configure" |
1e487827 VS |
7942 | #include "confdefs.h" |
7943 | ||
698dcdb6 VZ |
7944 | main(){return(0);} |
7945 | EOF | |
b3e8d00a | 7946 | if { (eval echo configure:7947: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
7947 | ac_cv_prog_cc_works=yes |
7948 | # If we can't run a trivial program, we are probably using a cross compiler. | |
7949 | if (./conftest; exit) 2>/dev/null; then | |
7950 | ac_cv_prog_cc_cross=no | |
7951 | else | |
7952 | ac_cv_prog_cc_cross=yes | |
7953 | fi | |
7954 | else | |
7955 | echo "configure: failed program was:" >&5 | |
7956 | cat conftest.$ac_ext >&5 | |
7957 | ac_cv_prog_cc_works=no | |
7958 | fi | |
7959 | rm -fr conftest* | |
7960 | ac_ext=c | |
7961 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
7962 | ac_cpp='$CPP $CPPFLAGS' | |
7963 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
7964 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
7965 | cross_compiling=$ac_cv_prog_cc_cross | |
7966 | ||
7967 | echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 | |
7968 | if test $ac_cv_prog_cc_works = no; then | |
7969 | { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } | |
7970 | fi | |
7971 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 | |
b3e8d00a | 7972 | echo "configure:7973: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 |
698dcdb6 VZ |
7973 | echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 |
7974 | cross_compiling=$ac_cv_prog_cc_cross | |
7975 | ||
7976 | echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 | |
b3e8d00a | 7977 | echo "configure:7978: checking whether we are using GNU C" >&5 |
698dcdb6 VZ |
7978 | if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then |
7979 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7980 | else | |
7981 | cat > conftest.c <<EOF | |
7982 | #ifdef __GNUC__ | |
7983 | yes; | |
1e487827 | 7984 | #endif |
698dcdb6 | 7985 | EOF |
b3e8d00a | 7986 | if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:7987: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then |
698dcdb6 VZ |
7987 | ac_cv_prog_gcc=yes |
7988 | else | |
7989 | ac_cv_prog_gcc=no | |
7990 | fi | |
7991 | fi | |
1e487827 | 7992 | |
698dcdb6 | 7993 | echo "$ac_t""$ac_cv_prog_gcc" 1>&6 |
1e487827 | 7994 | |
698dcdb6 VZ |
7995 | if test $ac_cv_prog_gcc = yes; then |
7996 | GCC=yes | |
7997 | else | |
7998 | GCC= | |
7999 | fi | |
1e487827 | 8000 | |
698dcdb6 VZ |
8001 | ac_test_CFLAGS="${CFLAGS+set}" |
8002 | ac_save_CFLAGS="$CFLAGS" | |
8003 | CFLAGS= | |
8004 | echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 | |
b3e8d00a | 8005 | echo "configure:8006: checking whether ${CC-cc} accepts -g" >&5 |
698dcdb6 VZ |
8006 | if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then |
8007 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8008 | else | |
8009 | echo 'void f(){}' > conftest.c | |
8010 | if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then | |
10f2d63a VZ |
8011 | ac_cv_prog_cc_g=yes |
8012 | else | |
698dcdb6 | 8013 | ac_cv_prog_cc_g=no |
10f2d63a | 8014 | fi |
698dcdb6 VZ |
8015 | rm -f conftest* |
8016 | ||
10f2d63a | 8017 | fi |
698dcdb6 VZ |
8018 | |
8019 | echo "$ac_t""$ac_cv_prog_cc_g" 1>&6 | |
10f2d63a | 8020 | if test "$ac_test_CFLAGS" = set; then |
698dcdb6 | 8021 | CFLAGS="$ac_save_CFLAGS" |
10f2d63a VZ |
8022 | elif test $ac_cv_prog_cc_g = yes; then |
8023 | if test "$GCC" = yes; then | |
8024 | CFLAGS="-g -O2" | |
8025 | else | |
8026 | CFLAGS="-g" | |
8027 | fi | |
8028 | else | |
8029 | if test "$GCC" = yes; then | |
8030 | CFLAGS="-O2" | |
8031 | else | |
8032 | CFLAGS= | |
8033 | fi | |
8034 | fi | |
8035 | ||
8036 | ||
8037 | CFLAGS=`echo "$CFLAGS" | sed 's/-g//g'` | |
8038 | ||
698dcdb6 | 8039 | echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 |
b3e8d00a | 8040 | echo "configure:8041: checking how to run the C preprocessor" >&5 |
10f2d63a VZ |
8041 | # On Suns, sometimes $CPP names a directory. |
8042 | if test -n "$CPP" && test -d "$CPP"; then | |
8043 | CPP= | |
8044 | fi | |
8045 | if test -z "$CPP"; then | |
698dcdb6 VZ |
8046 | if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then |
8047 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8048 | else | |
8049 | # This must be in double quotes, not single quotes, because CPP may get | |
8050 | # substituted into the Makefile and "${CC-cc}" will confuse make. | |
8051 | CPP="${CC-cc} -E" | |
10f2d63a | 8052 | # On the NeXT, cc -E runs the code through the compiler's parser, |
698dcdb6 VZ |
8053 | # not just through cpp. |
8054 | cat > conftest.$ac_ext <<EOF | |
b3e8d00a | 8055 | #line 8056 "configure" |
10f2d63a VZ |
8056 | #include "confdefs.h" |
8057 | #include <assert.h> | |
698dcdb6 VZ |
8058 | Syntax Error |
8059 | EOF | |
8060 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
b3e8d00a | 8061 | { (eval echo configure:8062: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
8062 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
8063 | if test -z "$ac_err"; then | |
10f2d63a VZ |
8064 | : |
8065 | else | |
698dcdb6 VZ |
8066 | echo "$ac_err" >&5 |
8067 | echo "configure: failed program was:" >&5 | |
10f2d63a | 8068 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
8069 | rm -rf conftest* |
8070 | CPP="${CC-cc} -E -traditional-cpp" | |
8071 | cat > conftest.$ac_ext <<EOF | |
b3e8d00a | 8072 | #line 8073 "configure" |
10f2d63a | 8073 | #include "confdefs.h" |
698dcdb6 VZ |
8074 | #include <assert.h> |
8075 | Syntax Error | |
8076 | EOF | |
8077 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
b3e8d00a | 8078 | { (eval echo configure:8079: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
8079 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
8080 | if test -z "$ac_err"; then | |
8081 | : | |
10f2d63a | 8082 | else |
698dcdb6 VZ |
8083 | echo "$ac_err" >&5 |
8084 | echo "configure: failed program was:" >&5 | |
10f2d63a | 8085 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
8086 | rm -rf conftest* |
8087 | CPP="${CC-cc} -nologo -E" | |
8088 | cat > conftest.$ac_ext <<EOF | |
b3e8d00a | 8089 | #line 8090 "configure" |
10f2d63a VZ |
8090 | #include "confdefs.h" |
8091 | #include <assert.h> | |
698dcdb6 VZ |
8092 | Syntax Error |
8093 | EOF | |
8094 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
b3e8d00a | 8095 | { (eval echo configure:8096: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
8096 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
8097 | if test -z "$ac_err"; then | |
10f2d63a VZ |
8098 | : |
8099 | else | |
698dcdb6 VZ |
8100 | echo "$ac_err" >&5 |
8101 | echo "configure: failed program was:" >&5 | |
10f2d63a | 8102 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
8103 | rm -rf conftest* |
8104 | CPP=/lib/cpp | |
10f2d63a | 8105 | fi |
698dcdb6 | 8106 | rm -f conftest* |
10f2d63a | 8107 | fi |
698dcdb6 | 8108 | rm -f conftest* |
703e0a69 | 8109 | fi |
698dcdb6 VZ |
8110 | rm -f conftest* |
8111 | ac_cv_prog_CPP="$CPP" | |
8112 | fi | |
8113 | CPP="$ac_cv_prog_CPP" | |
10f2d63a | 8114 | else |
698dcdb6 | 8115 | ac_cv_prog_CPP="$CPP" |
10f2d63a | 8116 | fi |
698dcdb6 | 8117 | echo "$ac_t""$CPP" 1>&6 |
10f2d63a | 8118 | |
698dcdb6 VZ |
8119 | if test $ac_cv_prog_gcc = yes; then |
8120 | echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6 | |
b3e8d00a | 8121 | echo "configure:8122: checking whether ${CC-cc} needs -traditional" >&5 |
698dcdb6 VZ |
8122 | if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then |
8123 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a VZ |
8124 | else |
8125 | ac_pattern="Autoconf.*'x'" | |
698dcdb6 | 8126 | cat > conftest.$ac_ext <<EOF |
b3e8d00a | 8127 | #line 8128 "configure" |
10f2d63a VZ |
8128 | #include "confdefs.h" |
8129 | #include <sgtty.h> | |
8130 | Autoconf TIOCGETP | |
698dcdb6 | 8131 | EOF |
10f2d63a VZ |
8132 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
8133 | egrep "$ac_pattern" >/dev/null 2>&1; then | |
698dcdb6 | 8134 | rm -rf conftest* |
10f2d63a VZ |
8135 | ac_cv_prog_gcc_traditional=yes |
8136 | else | |
698dcdb6 | 8137 | rm -rf conftest* |
10f2d63a VZ |
8138 | ac_cv_prog_gcc_traditional=no |
8139 | fi | |
8140 | rm -f conftest* | |
8141 | ||
698dcdb6 | 8142 | |
10f2d63a | 8143 | if test $ac_cv_prog_gcc_traditional = no; then |
698dcdb6 | 8144 | cat > conftest.$ac_ext <<EOF |
b3e8d00a | 8145 | #line 8146 "configure" |
10f2d63a VZ |
8146 | #include "confdefs.h" |
8147 | #include <termio.h> | |
8148 | Autoconf TCGETA | |
698dcdb6 | 8149 | EOF |
10f2d63a VZ |
8150 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
8151 | egrep "$ac_pattern" >/dev/null 2>&1; then | |
698dcdb6 | 8152 | rm -rf conftest* |
10f2d63a VZ |
8153 | ac_cv_prog_gcc_traditional=yes |
8154 | fi | |
8155 | rm -f conftest* | |
8156 | ||
8157 | fi | |
8158 | fi | |
698dcdb6 VZ |
8159 | |
8160 | echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6 | |
10f2d63a VZ |
8161 | if test $ac_cv_prog_gcc_traditional = yes; then |
8162 | CC="$CC -traditional" | |
8163 | fi | |
8164 | fi | |
8165 | ||
703e0a69 | 8166 | |
698dcdb6 VZ |
8167 | |
8168 | ac_ext=C | |
8169 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
1e487827 | 8170 | ac_cpp='$CXXCPP $CPPFLAGS' |
698dcdb6 VZ |
8171 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
8172 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
8173 | cross_compiling=$ac_cv_prog_cxx_cross | |
8174 | ||
8175 | ||
8176 | for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl | |
8177 | do | |
8178 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
8179 | set dummy $ac_prog; ac_word=$2 | |
8180 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
b3e8d00a | 8181 | echo "configure:8182: checking for $ac_word" >&5 |
698dcdb6 VZ |
8182 | if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then |
8183 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a VZ |
8184 | else |
8185 | if test -n "$CXX"; then | |
8186 | ac_cv_prog_CXX="$CXX" # Let the user override the test. | |
8187 | else | |
698dcdb6 VZ |
8188 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
8189 | ac_dummy="$PATH" | |
8190 | for ac_dir in $ac_dummy; do | |
8191 | test -z "$ac_dir" && ac_dir=. | |
8192 | if test -f $ac_dir/$ac_word; then | |
8193 | ac_cv_prog_CXX="$ac_prog" | |
8194 | break | |
8195 | fi | |
8196 | done | |
8197 | IFS="$ac_save_ifs" | |
10f2d63a VZ |
8198 | fi |
8199 | fi | |
698dcdb6 | 8200 | CXX="$ac_cv_prog_CXX" |
10f2d63a | 8201 | if test -n "$CXX"; then |
698dcdb6 | 8202 | echo "$ac_t""$CXX" 1>&6 |
10f2d63a | 8203 | else |
698dcdb6 | 8204 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
8205 | fi |
8206 | ||
698dcdb6 | 8207 | test -n "$CXX" && break |
10f2d63a | 8208 | done |
698dcdb6 | 8209 | test -n "$CXX" || CXX="gcc" |
10f2d63a VZ |
8210 | |
8211 | ||
698dcdb6 | 8212 | echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6 |
b3e8d00a | 8213 | echo "configure:8214: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5 |
10f2d63a | 8214 | |
698dcdb6 VZ |
8215 | ac_ext=C |
8216 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
8217 | ac_cpp='$CXXCPP $CPPFLAGS' | |
8218 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
8219 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
8220 | cross_compiling=$ac_cv_prog_cxx_cross | |
703e0a69 | 8221 | |
698dcdb6 VZ |
8222 | cat > conftest.$ac_ext << EOF |
8223 | ||
b3e8d00a | 8224 | #line 8225 "configure" |
10f2d63a VZ |
8225 | #include "confdefs.h" |
8226 | ||
698dcdb6 VZ |
8227 | int main(){return(0);} |
8228 | EOF | |
b3e8d00a | 8229 | if { (eval echo configure:8230: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
8230 | ac_cv_prog_cxx_works=yes |
8231 | # If we can't run a trivial program, we are probably using a cross compiler. | |
8232 | if (./conftest; exit) 2>/dev/null; then | |
8233 | ac_cv_prog_cxx_cross=no | |
8234 | else | |
8235 | ac_cv_prog_cxx_cross=yes | |
8236 | fi | |
8237 | else | |
8238 | echo "configure: failed program was:" >&5 | |
8239 | cat conftest.$ac_ext >&5 | |
8240 | ac_cv_prog_cxx_works=no | |
8241 | fi | |
8242 | rm -fr conftest* | |
8243 | ac_ext=C | |
8244 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
8245 | ac_cpp='$CXXCPP $CPPFLAGS' | |
8246 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
8247 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
8248 | cross_compiling=$ac_cv_prog_cxx_cross | |
8249 | ||
8250 | echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6 | |
8251 | if test $ac_cv_prog_cxx_works = no; then | |
8252 | { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; } | |
8253 | fi | |
8254 | echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 | |
b3e8d00a | 8255 | echo "configure:8256: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5 |
698dcdb6 VZ |
8256 | echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6 |
8257 | cross_compiling=$ac_cv_prog_cxx_cross | |
8258 | ||
8259 | echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6 | |
b3e8d00a | 8260 | echo "configure:8261: checking whether we are using GNU C++" >&5 |
698dcdb6 VZ |
8261 | if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then |
8262 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8263 | else | |
8264 | cat > conftest.C <<EOF | |
8265 | #ifdef __GNUC__ | |
8266 | yes; | |
10f2d63a | 8267 | #endif |
698dcdb6 | 8268 | EOF |
b3e8d00a | 8269 | if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:8270: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then |
698dcdb6 VZ |
8270 | ac_cv_prog_gxx=yes |
8271 | else | |
8272 | ac_cv_prog_gxx=no | |
8273 | fi | |
8274 | fi | |
10f2d63a | 8275 | |
698dcdb6 | 8276 | echo "$ac_t""$ac_cv_prog_gxx" 1>&6 |
10f2d63a | 8277 | |
698dcdb6 VZ |
8278 | if test $ac_cv_prog_gxx = yes; then |
8279 | GXX=yes | |
8280 | else | |
8281 | GXX= | |
8282 | fi | |
10f2d63a | 8283 | |
698dcdb6 VZ |
8284 | ac_test_CXXFLAGS="${CXXFLAGS+set}" |
8285 | ac_save_CXXFLAGS="$CXXFLAGS" | |
8286 | CXXFLAGS= | |
8287 | echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6 | |
b3e8d00a | 8288 | echo "configure:8289: checking whether ${CXX-g++} accepts -g" >&5 |
698dcdb6 VZ |
8289 | if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then |
8290 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8291 | else | |
8292 | echo 'void f(){}' > conftest.cc | |
8293 | if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then | |
10f2d63a VZ |
8294 | ac_cv_prog_cxx_g=yes |
8295 | else | |
698dcdb6 | 8296 | ac_cv_prog_cxx_g=no |
10f2d63a | 8297 | fi |
698dcdb6 VZ |
8298 | rm -f conftest* |
8299 | ||
10f2d63a | 8300 | fi |
698dcdb6 VZ |
8301 | |
8302 | echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6 | |
10f2d63a | 8303 | if test "$ac_test_CXXFLAGS" = set; then |
698dcdb6 | 8304 | CXXFLAGS="$ac_save_CXXFLAGS" |
10f2d63a VZ |
8305 | elif test $ac_cv_prog_cxx_g = yes; then |
8306 | if test "$GXX" = yes; then | |
8307 | CXXFLAGS="-g -O2" | |
8308 | else | |
8309 | CXXFLAGS="-g" | |
8310 | fi | |
8311 | else | |
8312 | if test "$GXX" = yes; then | |
8313 | CXXFLAGS="-O2" | |
8314 | else | |
8315 | CXXFLAGS= | |
8316 | fi | |
8317 | fi | |
8318 | ||
8319 | ||
10f2d63a VZ |
8320 | CXXFLAGS=`echo "$CXXFLAGS" | sed 's/-g//g'` |
8321 | ||
8322 | ac_ext=c | |
698dcdb6 | 8323 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
10f2d63a | 8324 | ac_cpp='$CPP $CPPFLAGS' |
698dcdb6 VZ |
8325 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
8326 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
8327 | cross_compiling=$ac_cv_prog_cc_cross | |
8328 | ||
8329 | ||
8330 | # Extract the first word of "ranlib", so it can be a program name with args. | |
8331 | set dummy ranlib; ac_word=$2 | |
8332 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
b3e8d00a | 8333 | echo "configure:8334: checking for $ac_word" >&5 |
698dcdb6 VZ |
8334 | if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then |
8335 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a VZ |
8336 | else |
8337 | if test -n "$RANLIB"; then | |
8338 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
8339 | else | |
698dcdb6 VZ |
8340 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
8341 | ac_dummy="$PATH" | |
8342 | for ac_dir in $ac_dummy; do | |
8343 | test -z "$ac_dir" && ac_dir=. | |
8344 | if test -f $ac_dir/$ac_word; then | |
8345 | ac_cv_prog_RANLIB="ranlib" | |
8346 | break | |
8347 | fi | |
8348 | done | |
8349 | IFS="$ac_save_ifs" | |
8350 | test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":" | |
10f2d63a VZ |
8351 | fi |
8352 | fi | |
698dcdb6 | 8353 | RANLIB="$ac_cv_prog_RANLIB" |
10f2d63a | 8354 | if test -n "$RANLIB"; then |
698dcdb6 | 8355 | echo "$ac_t""$RANLIB" 1>&6 |
10f2d63a | 8356 | else |
698dcdb6 | 8357 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
8358 | fi |
8359 | ||
8360 | ||
8361 | # Extract the first word of "ar", so it can be a program name with args. | |
8362 | set dummy ar; ac_word=$2 | |
698dcdb6 | 8363 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
b3e8d00a | 8364 | echo "configure:8365: checking for $ac_word" >&5 |
698dcdb6 VZ |
8365 | if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then |
8366 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a VZ |
8367 | else |
8368 | if test -n "$AR"; then | |
8369 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
8370 | else | |
698dcdb6 VZ |
8371 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
8372 | ac_dummy="$PATH" | |
8373 | for ac_dir in $ac_dummy; do | |
8374 | test -z "$ac_dir" && ac_dir=. | |
8375 | if test -f $ac_dir/$ac_word; then | |
8376 | ac_cv_prog_AR="ar" | |
8377 | break | |
8378 | fi | |
8379 | done | |
8380 | IFS="$ac_save_ifs" | |
10f2d63a VZ |
8381 | test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar" |
8382 | fi | |
8383 | fi | |
698dcdb6 | 8384 | AR="$ac_cv_prog_AR" |
10f2d63a | 8385 | if test -n "$AR"; then |
698dcdb6 | 8386 | echo "$ac_t""$AR" 1>&6 |
10f2d63a | 8387 | else |
698dcdb6 | 8388 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
8389 | fi |
8390 | ||
698dcdb6 | 8391 | |
10f2d63a VZ |
8392 | # Find a good install program. We prefer a C program (faster), |
8393 | # so one script is as good as another. But avoid the broken or | |
8394 | # incompatible versions: | |
8395 | # SysV /etc/install, /usr/sbin/install | |
8396 | # SunOS /usr/etc/install | |
8397 | # IRIX /sbin/install | |
8398 | # AIX /bin/install | |
8399 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
8400 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
8401 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
8402 | # ./install, which can be erroneously created by make from ./install.sh. | |
698dcdb6 | 8403 | echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 |
b3e8d00a | 8404 | echo "configure:8405: checking for a BSD compatible install" >&5 |
10f2d63a | 8405 | if test -z "$INSTALL"; then |
698dcdb6 VZ |
8406 | if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then |
8407 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 8408 | else |
698dcdb6 | 8409 | IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":" |
10f2d63a VZ |
8410 | for ac_dir in $PATH; do |
8411 | # Account for people who put trailing slashes in PATH elements. | |
698dcdb6 VZ |
8412 | case "$ac_dir/" in |
8413 | /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;; | |
10f2d63a VZ |
8414 | *) |
8415 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
8416 | # Don't use installbsd from OSF since it installs stuff as root | |
8417 | # by default. | |
8418 | for ac_prog in ginstall scoinst install; do | |
698dcdb6 | 8419 | if test -f $ac_dir/$ac_prog; then |
10f2d63a | 8420 | if test $ac_prog = install && |
698dcdb6 | 8421 | grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then |
10f2d63a VZ |
8422 | # AIX install. It has an incompatible calling convention. |
8423 | : | |
8424 | else | |
8425 | ac_cv_path_install="$ac_dir/$ac_prog -c" | |
8426 | break 2 | |
8427 | fi | |
8428 | fi | |
8429 | done | |
8430 | ;; | |
8431 | esac | |
8432 | done | |
698dcdb6 | 8433 | IFS="$ac_save_IFS" |
10f2d63a VZ |
8434 | |
8435 | fi | |
8436 | if test "${ac_cv_path_install+set}" = set; then | |
698dcdb6 | 8437 | INSTALL="$ac_cv_path_install" |
10f2d63a VZ |
8438 | else |
8439 | # As a last resort, use the slow shell script. We don't cache a | |
8440 | # path for INSTALL within a source directory, because that will | |
8441 | # break other packages using the cache if that directory is | |
8442 | # removed, or if the path is relative. | |
698dcdb6 | 8443 | INSTALL="$ac_install_sh" |
10f2d63a VZ |
8444 | fi |
8445 | fi | |
698dcdb6 | 8446 | echo "$ac_t""$INSTALL" 1>&6 |
10f2d63a VZ |
8447 | |
8448 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
8449 | # It thinks the first close brace ends the variable substitution. | |
8450 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
8451 | ||
698dcdb6 | 8452 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}' |
10f2d63a VZ |
8453 | |
8454 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
8455 | ||
698dcdb6 | 8456 | |
10f2d63a VZ |
8457 | # Extract the first word of "strip", so it can be a program name with args. |
8458 | set dummy strip; ac_word=$2 | |
698dcdb6 | 8459 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
b3e8d00a | 8460 | echo "configure:8461: checking for $ac_word" >&5 |
698dcdb6 VZ |
8461 | if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then |
8462 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a VZ |
8463 | else |
8464 | if test -n "$STRIP"; then | |
8465 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
8466 | else | |
698dcdb6 VZ |
8467 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
8468 | ac_dummy="$PATH" | |
8469 | for ac_dir in $ac_dummy; do | |
8470 | test -z "$ac_dir" && ac_dir=. | |
8471 | if test -f $ac_dir/$ac_word; then | |
8472 | ac_cv_prog_STRIP="strip" | |
8473 | break | |
8474 | fi | |
8475 | done | |
8476 | IFS="$ac_save_ifs" | |
10f2d63a VZ |
8477 | test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="true" |
8478 | fi | |
8479 | fi | |
698dcdb6 | 8480 | STRIP="$ac_cv_prog_STRIP" |
10f2d63a | 8481 | if test -n "$STRIP"; then |
698dcdb6 | 8482 | echo "$ac_t""$STRIP" 1>&6 |
10f2d63a | 8483 | else |
698dcdb6 | 8484 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
8485 | fi |
8486 | ||
698dcdb6 VZ |
8487 | |
8488 | echo $ac_n "checking make for VPATH support""... $ac_c" 1>&6 | |
b3e8d00a | 8489 | echo "configure:8490: checking make for VPATH support" >&5 |
10f2d63a VZ |
8490 | cat - << EOF > confMake |
8491 | check : file | |
8492 | cp \$? \$@ | |
8493 | cp \$? final_file | |
8494 | EOF | |
8495 | ||
8496 | if test ! -d sub ; then | |
8497 | mkdir sub | |
8498 | fi | |
8499 | echo dummy > sub/file | |
f6bcfd97 | 8500 | ${MAKE-make} -f confMake VPATH=sub 2>&5 > /dev/null |
10f2d63a VZ |
8501 | RESULT=$? |
8502 | rm -f sub/file check final_file confMake | |
8503 | rmdir sub | |
8504 | if test "$RESULT" = 0; then | |
698dcdb6 | 8505 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 8506 | else |
698dcdb6 VZ |
8507 | echo "$ac_t""no" 1>&6 |
8508 | { echo "configure: error: | |
1e487827 VS |
8509 | You need a make-utility that is able to use the variable |
8510 | VPATH correctly. | |
8511 | If your version of make does not support VPATH correctly, | |
8512 | please install GNU-make (possibly as gmake), and start | |
8513 | configure with the following command: | |
8514 | export MAKE=gmake; ./configure for sh-type shells | |
8515 | setenv MAKE gmake; ./configure for csh-type shells | |
8516 | Also please do remember to use gmake in this case every time | |
8517 | you are trying to compile. | |
698dcdb6 | 8518 | " 1>&2; exit 1; } |
10f2d63a VZ |
8519 | fi |
8520 | ||
8521 | for ac_prog in 'bison -y' byacc | |
8522 | do | |
698dcdb6 | 8523 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
10f2d63a | 8524 | set dummy $ac_prog; ac_word=$2 |
698dcdb6 | 8525 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
b3e8d00a | 8526 | echo "configure:8527: checking for $ac_word" >&5 |
698dcdb6 VZ |
8527 | if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then |
8528 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a VZ |
8529 | else |
8530 | if test -n "$YACC"; then | |
8531 | ac_cv_prog_YACC="$YACC" # Let the user override the test. | |
8532 | else | |
698dcdb6 VZ |
8533 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
8534 | ac_dummy="$PATH" | |
8535 | for ac_dir in $ac_dummy; do | |
8536 | test -z "$ac_dir" && ac_dir=. | |
8537 | if test -f $ac_dir/$ac_word; then | |
8538 | ac_cv_prog_YACC="$ac_prog" | |
8539 | break | |
8540 | fi | |
8541 | done | |
8542 | IFS="$ac_save_ifs" | |
10f2d63a VZ |
8543 | fi |
8544 | fi | |
698dcdb6 | 8545 | YACC="$ac_cv_prog_YACC" |
10f2d63a | 8546 | if test -n "$YACC"; then |
698dcdb6 | 8547 | echo "$ac_t""$YACC" 1>&6 |
10f2d63a | 8548 | else |
698dcdb6 | 8549 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
8550 | fi |
8551 | ||
698dcdb6 | 8552 | test -n "$YACC" && break |
10f2d63a VZ |
8553 | done |
8554 | test -n "$YACC" || YACC="yacc" | |
8555 | ||
698dcdb6 VZ |
8556 | |
8557 | # Extract the first word of "flex", so it can be a program name with args. | |
8558 | set dummy flex; ac_word=$2 | |
8559 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
b3e8d00a | 8560 | echo "configure:8561: checking for $ac_word" >&5 |
698dcdb6 VZ |
8561 | if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then |
8562 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a VZ |
8563 | else |
8564 | if test -n "$LEX"; then | |
8565 | ac_cv_prog_LEX="$LEX" # Let the user override the test. | |
8566 | else | |
698dcdb6 VZ |
8567 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
8568 | ac_dummy="$PATH" | |
8569 | for ac_dir in $ac_dummy; do | |
8570 | test -z "$ac_dir" && ac_dir=. | |
8571 | if test -f $ac_dir/$ac_word; then | |
8572 | ac_cv_prog_LEX="flex" | |
8573 | break | |
8574 | fi | |
8575 | done | |
8576 | IFS="$ac_save_ifs" | |
8577 | test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex" | |
10f2d63a VZ |
8578 | fi |
8579 | fi | |
698dcdb6 | 8580 | LEX="$ac_cv_prog_LEX" |
10f2d63a | 8581 | if test -n "$LEX"; then |
698dcdb6 | 8582 | echo "$ac_t""$LEX" 1>&6 |
10f2d63a | 8583 | else |
698dcdb6 | 8584 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
8585 | fi |
8586 | ||
8587 | if test -z "$LEXLIB" | |
8588 | then | |
698dcdb6 VZ |
8589 | case "$LEX" in |
8590 | flex*) ac_lib=fl ;; | |
8591 | *) ac_lib=l ;; | |
8592 | esac | |
8593 | echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6 | |
b3e8d00a | 8594 | echo "configure:8595: checking for yywrap in -l$ac_lib" >&5 |
698dcdb6 VZ |
8595 | ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'` |
8596 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
8597 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8598 | else | |
8599 | ac_save_LIBS="$LIBS" | |
8600 | LIBS="-l$ac_lib $LIBS" | |
8601 | cat > conftest.$ac_ext <<EOF | |
b3e8d00a | 8602 | #line 8603 "configure" |
10f2d63a VZ |
8603 | #include "confdefs.h" |
8604 | /* Override any gcc2 internal prototype to avoid an error. */ | |
8605 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
8606 | builtin and then its argument prototype would still apply. */ |
8607 | char yywrap(); | |
10f2d63a | 8608 | |
698dcdb6 VZ |
8609 | int main() { |
8610 | yywrap() | |
8611 | ; return 0; } | |
8612 | EOF | |
b3e8d00a | 8613 | if { (eval echo configure:8614: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
8614 | rm -rf conftest* |
8615 | eval "ac_cv_lib_$ac_lib_var=yes" | |
10f2d63a | 8616 | else |
698dcdb6 VZ |
8617 | echo "configure: failed program was:" >&5 |
8618 | cat conftest.$ac_ext >&5 | |
8619 | rm -rf conftest* | |
8620 | eval "ac_cv_lib_$ac_lib_var=no" | |
10f2d63a | 8621 | fi |
698dcdb6 VZ |
8622 | rm -f conftest* |
8623 | LIBS="$ac_save_LIBS" | |
8624 | ||
10f2d63a | 8625 | fi |
698dcdb6 VZ |
8626 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
8627 | echo "$ac_t""yes" 1>&6 | |
8628 | LEXLIB="-l$ac_lib" | |
8629 | else | |
8630 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
8631 | fi |
8632 | ||
8633 | fi | |
8634 | ||
8635 | ||
698dcdb6 | 8636 | echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6 |
b3e8d00a | 8637 | echo "configure:8638: checking whether ln -s works" >&5 |
698dcdb6 VZ |
8638 | if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then |
8639 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 8640 | else |
698dcdb6 VZ |
8641 | rm -f conftestdata |
8642 | if ln -s X conftestdata 2>/dev/null | |
8643 | then | |
8644 | rm -f conftestdata | |
8645 | ac_cv_prog_LN_S="ln -s" | |
10f2d63a | 8646 | else |
698dcdb6 | 8647 | ac_cv_prog_LN_S=ln |
10f2d63a VZ |
8648 | fi |
8649 | fi | |
698dcdb6 VZ |
8650 | LN_S="$ac_cv_prog_LN_S" |
8651 | if test "$ac_cv_prog_LN_S" = "ln -s"; then | |
8652 | echo "$ac_t""yes" 1>&6 | |
10f2d63a | 8653 | else |
698dcdb6 | 8654 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
8655 | fi |
8656 | ||
8657 | ||
8658 | ||
8659 | SEARCH_INCLUDE="\ | |
8660 | /usr/local/include \ | |
8661 | \ | |
8662 | /usr/Motif-1.2/include \ | |
8663 | /usr/Motif-2.1/include \ | |
8664 | \ | |
8665 | /usr/include/Motif1.2 \ | |
8666 | /opt/xpm/include/X11 \ | |
8667 | /opt/GBxpm/include/ \ | |
8668 | /opt/GBxpm/X11/include/ \ | |
8669 | \ | |
8670 | /usr/Motif1.2/include \ | |
8671 | /usr/dt/include \ | |
afc31813 VZ |
8672 | /usr/openwin/include \ |
8673 | \ | |
10f2d63a VZ |
8674 | /usr/include/Xm \ |
8675 | \ | |
8676 | /usr/X11R6/include \ | |
afc31813 | 8677 | /usr/X11R6.4/include \ |
10f2d63a VZ |
8678 | /usr/X11R5/include \ |
8679 | /usr/X11R4/include \ | |
8680 | \ | |
10f2d63a VZ |
8681 | /usr/include/X11R6 \ |
8682 | /usr/include/X11R5 \ | |
8683 | /usr/include/X11R4 \ | |
8684 | \ | |
8685 | /usr/local/X11R6/include \ | |
8686 | /usr/local/X11R5/include \ | |
8687 | /usr/local/X11R4/include \ | |
8688 | \ | |
8689 | /usr/local/include/X11R6 \ | |
8690 | /usr/local/include/X11R5 \ | |
8691 | /usr/local/include/X11R4 \ | |
8692 | \ | |
8693 | /usr/X11/include \ | |
8694 | /usr/include/X11 \ | |
8695 | /usr/local/X11/include \ | |
8696 | /usr/local/include/X11 \ | |
8697 | \ | |
8698 | /usr/X386/include \ | |
8699 | /usr/x386/include \ | |
8700 | /usr/XFree86/include/X11 \ | |
8701 | \ | |
cf27ef00 | 8702 | X:/XFree86/include \ |
ec14dd32 VZ |
8703 | X:/XFree86/include/X11 \ |
8704 | \ | |
10f2d63a VZ |
8705 | /usr/include/gtk \ |
8706 | /usr/local/include/gtk \ | |
8707 | /usr/include/glib \ | |
8708 | /usr/local/include/glib \ | |
8709 | \ | |
8710 | /usr/include/qt \ | |
8711 | /usr/local/include/qt \ | |
8712 | \ | |
8713 | /usr/include/windows \ | |
8714 | /usr/include/wine \ | |
8715 | /usr/local/include/wine \ | |
8716 | \ | |
8717 | /usr/unsupported/include \ | |
8718 | /usr/athena/include \ | |
8719 | /usr/local/x11r5/include \ | |
8720 | /usr/lpp/Xamples/include \ | |
8721 | \ | |
10f2d63a | 8722 | /usr/openwin/share/include \ |
928b5c08 VZ |
8723 | \ |
8724 | /usr/include" | |
10f2d63a VZ |
8725 | |
8726 | SEARCH_LIB="`echo "$SEARCH_INCLUDE" | sed s/include/lib/g` " | |
8727 | ||
698dcdb6 VZ |
8728 | |
8729 | cat > confcache <<\EOF | |
10f2d63a VZ |
8730 | # This file is a shell script that caches the results of configure |
8731 | # tests run on this system so they can be shared between configure | |
698dcdb6 VZ |
8732 | # scripts and configure runs. It is not useful on other systems. |
8733 | # If it contains results you don't want to keep, you may remove or edit it. | |
10f2d63a | 8734 | # |
698dcdb6 VZ |
8735 | # By default, configure uses ./config.cache as the cache file, |
8736 | # creating it if it does not exist already. You can give configure | |
8737 | # the --cache-file=FILE option to use a different cache file; that is | |
8738 | # what configure does when it calls configure scripts in | |
8739 | # subdirectories, so they share the cache. | |
8740 | # Giving --cache-file=/dev/null disables caching, for debugging configure. | |
8741 | # config.status only pays attention to the cache file if you give it the | |
8742 | # --recheck option to rerun configure. | |
10f2d63a | 8743 | # |
698dcdb6 | 8744 | EOF |
10f2d63a VZ |
8745 | # The following way of writing the cache mishandles newlines in values, |
8746 | # but we know of no workaround that is simple, portable, and efficient. | |
8747 | # So, don't put newlines in cache variables' values. | |
8748 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
8749 | # and sets the high bit in the cache file unless we assign to the vars. | |
698dcdb6 VZ |
8750 | (set) 2>&1 | |
8751 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
8752 | *ac_space=\ *) | |
8753 | # `set' does not quote correctly, so add quotes (double-quote substitution | |
8754 | # turns \\\\ into \\, and sed turns \\ into \). | |
8755 | sed -n \ | |
8756 | -e "s/'/'\\\\''/g" \ | |
8757 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" | |
8758 | ;; | |
8759 | *) | |
8760 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
8761 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' | |
8762 | ;; | |
8763 | esac >> confcache | |
8764 | if cmp -s $cache_file confcache; then | |
8765 | : | |
8766 | else | |
10f2d63a | 8767 | if test -w $cache_file; then |
698dcdb6 VZ |
8768 | echo "updating cache $cache_file" |
8769 | cat confcache > $cache_file | |
10f2d63a VZ |
8770 | else |
8771 | echo "not updating unwritable cache $cache_file" | |
8772 | fi | |
8773 | fi | |
8774 | rm -f confcache | |
8775 | ||
698dcdb6 VZ |
8776 | |
8777 | ||
18dbb1f6 VZ |
8778 | REGEX_INCLUDE= |
8779 | if test "$wxUSE_REGEX" != "no"; then | |
8780 | ac_safe=`echo "regex.h" | sed 'y%./+-%__p_%'` | |
8781 | echo $ac_n "checking for regex.h""... $ac_c" 1>&6 | |
b3e8d00a | 8782 | echo "configure:8783: checking for regex.h" >&5 |
18dbb1f6 VZ |
8783 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
8784 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8785 | else | |
8786 | cat > conftest.$ac_ext <<EOF | |
b3e8d00a | 8787 | #line 8788 "configure" |
18dbb1f6 VZ |
8788 | #include "confdefs.h" |
8789 | #include <regex.h> | |
8790 | EOF | |
8791 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
b3e8d00a | 8792 | { (eval echo configure:8793: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
18dbb1f6 VZ |
8793 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
8794 | if test -z "$ac_err"; then | |
8795 | rm -rf conftest* | |
8796 | eval "ac_cv_header_$ac_safe=yes" | |
8797 | else | |
8798 | echo "$ac_err" >&5 | |
8799 | echo "configure: failed program was:" >&5 | |
8800 | cat conftest.$ac_ext >&5 | |
8801 | rm -rf conftest* | |
8802 | eval "ac_cv_header_$ac_safe=no" | |
8803 | fi | |
8804 | rm -f conftest* | |
8805 | fi | |
8806 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
8807 | echo "$ac_t""yes" 1>&6 | |
8808 | for ac_func in regcomp | |
8809 | do | |
8810 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
b3e8d00a | 8811 | echo "configure:8812: checking for $ac_func" >&5 |
18dbb1f6 VZ |
8812 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
8813 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8814 | else | |
8815 | cat > conftest.$ac_ext <<EOF | |
b3e8d00a | 8816 | #line 8817 "configure" |
18dbb1f6 VZ |
8817 | #include "confdefs.h" |
8818 | /* System header to define __stub macros and hopefully few prototypes, | |
8819 | which can conflict with char $ac_func(); below. */ | |
8820 | #include <assert.h> | |
8821 | /* Override any gcc2 internal prototype to avoid an error. */ | |
8822 | /* We use char because int might match the return type of a gcc2 | |
8823 | builtin and then its argument prototype would still apply. */ | |
8824 | char $ac_func(); | |
8825 | ||
8826 | int main() { | |
8827 | ||
8828 | /* The GNU C library defines this for functions which it implements | |
8829 | to always fail with ENOSYS. Some functions are actually named | |
8830 | something starting with __ and the normal name is an alias. */ | |
8831 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
8832 | choke me | |
8833 | #else | |
8834 | $ac_func(); | |
8835 | #endif | |
8836 | ||
8837 | ; return 0; } | |
8838 | EOF | |
b3e8d00a | 8839 | if { (eval echo configure:8840: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
18dbb1f6 VZ |
8840 | rm -rf conftest* |
8841 | eval "ac_cv_func_$ac_func=yes" | |
8842 | else | |
8843 | echo "configure: failed program was:" >&5 | |
8844 | cat conftest.$ac_ext >&5 | |
8845 | rm -rf conftest* | |
8846 | eval "ac_cv_func_$ac_func=no" | |
8847 | fi | |
8848 | rm -f conftest* | |
8849 | fi | |
8850 | ||
8851 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
8852 | echo "$ac_t""yes" 1>&6 | |
8853 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
8854 | cat >> confdefs.h <<EOF | |
8855 | #define $ac_tr_func 1 | |
8856 | EOF | |
8857 | ||
8858 | else | |
8859 | echo "$ac_t""no" 1>&6 | |
8860 | fi | |
8861 | done | |
8862 | ||
8863 | else | |
8864 | echo "$ac_t""no" 1>&6 | |
8865 | fi | |
8866 | ||
8867 | ||
8868 | if test "x$ac_cv_func_regcomp" != "xyes"; then | |
8869 | if test "$wxUSE_REGEX" = "sys"; then | |
8870 | { echo "configure: error: system regex library not found! Use --with-regex to use the built-in regex library." 1>&2; exit 1; } | |
8871 | fi | |
8872 | ||
8873 | REGEX_INCLUDE="-I\${top_srcdir}/src/regex" | |
8874 | fi | |
8875 | ||
8876 | cat >> confdefs.h <<\EOF | |
8877 | #define wxUSE_REGEX 1 | |
8878 | EOF | |
8879 | ||
8880 | fi | |
8881 | ||
8882 | ||
dad6c0ea VZ |
8883 | AFMINSTALL= |
8884 | ||
3a922bb4 RL |
8885 | TOOLKIT= |
8886 | TOOLKIT_INCLUDE= | |
8887 | WIDGET_SET= | |
10f2d63a | 8888 | |
3a922bb4 RL |
8889 | if test "$USE_WIN32" = 1 ; then |
8890 | for ac_hdr in w32api.h | |
8891 | do | |
8892 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
8893 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
b3e8d00a | 8894 | echo "configure:8895: checking for $ac_hdr" >&5 |
3a922bb4 RL |
8895 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
8896 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8897 | else | |
8898 | cat > conftest.$ac_ext <<EOF | |
b3e8d00a | 8899 | #line 8900 "configure" |
3a922bb4 RL |
8900 | #include "confdefs.h" |
8901 | #include <$ac_hdr> | |
8902 | EOF | |
8903 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
b3e8d00a | 8904 | { (eval echo configure:8905: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
3a922bb4 RL |
8905 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
8906 | if test -z "$ac_err"; then | |
8907 | rm -rf conftest* | |
8908 | eval "ac_cv_header_$ac_safe=yes" | |
8909 | else | |
8910 | echo "$ac_err" >&5 | |
8911 | echo "configure: failed program was:" >&5 | |
8912 | cat conftest.$ac_ext >&5 | |
8913 | rm -rf conftest* | |
8914 | eval "ac_cv_header_$ac_safe=no" | |
8915 | fi | |
8916 | rm -f conftest* | |
8917 | fi | |
8918 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
8919 | echo "$ac_t""yes" 1>&6 | |
8920 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
8921 | cat >> confdefs.h <<EOF | |
8922 | #define $ac_tr_hdr 1 | |
8923 | EOF | |
8924 | ||
8925 | else | |
8926 | echo "$ac_t""no" 1>&6 | |
8927 | fi | |
8928 | done | |
10f2d63a | 8929 | |
3a922bb4 | 8930 | ac_safe=`echo "windows.h" | sed 'y%./+-%__p_%'` |
29fd3c0c | 8931 | echo $ac_n "checking for windows.h""... $ac_c" 1>&6 |
b3e8d00a | 8932 | echo "configure:8933: checking for windows.h" >&5 |
d4158b5d VS |
8933 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
8934 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8935 | else | |
8936 | cat > conftest.$ac_ext <<EOF | |
b3e8d00a | 8937 | #line 8938 "configure" |
d4158b5d | 8938 | #include "confdefs.h" |
29fd3c0c | 8939 | #include <windows.h> |
d4158b5d VS |
8940 | EOF |
8941 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
b3e8d00a | 8942 | { (eval echo configure:8943: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
d4158b5d VS |
8943 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
8944 | if test -z "$ac_err"; then | |
8945 | rm -rf conftest* | |
8946 | eval "ac_cv_header_$ac_safe=yes" | |
8947 | else | |
8948 | echo "$ac_err" >&5 | |
8949 | echo "configure: failed program was:" >&5 | |
8950 | cat conftest.$ac_ext >&5 | |
8951 | rm -rf conftest* | |
8952 | eval "ac_cv_header_$ac_safe=no" | |
8953 | fi | |
8954 | rm -f conftest* | |
8955 | fi | |
8956 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
8957 | echo "$ac_t""yes" 1>&6 | |
29fd3c0c | 8958 | : |
d4158b5d VS |
8959 | else |
8960 | echo "$ac_t""no" 1>&6 | |
d4158b5d | 8961 | |
3a922bb4 RL |
8962 | { echo "configure: error: please set CFLAGS to contain the location of windows.h" 1>&2; exit 1; } |
8963 | ||
29fd3c0c | 8964 | fi |
10f2d63a | 8965 | |
3f0f0161 | 8966 | |
3a922bb4 | 8967 | echo $ac_n "checking if w32api has good enough MSIE support""... $ac_c" 1>&6 |
b3e8d00a | 8968 | echo "configure:8969: checking if w32api has good enough MSIE support" >&5 |
3a922bb4 RL |
8969 | if eval "test \"`echo '$''{'wx_cv_w32api_win_ie'+set}'`\" = set"; then |
8970 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8971 | else | |
8972 | ||
8973 | cat > conftest.$ac_ext <<EOF | |
b3e8d00a | 8974 | #line 8975 "configure" |
3a922bb4 RL |
8975 | #include "confdefs.h" |
8976 | #include <w32api.h> | |
8977 | int main() { | |
3f0f0161 | 8978 | |
3a922bb4 RL |
8979 | #define wxCHECK_W32API_VERSION( major, minor ) \ |
8980 | ( defined( __W32API_MAJOR_VERSION ) && defined( __W32API_MINOR_VERSION ) \ | |
8981 | && ( ( __W32API_MAJOR_VERSION > (major) ) \ | |
8982 | || ( __W32API_MAJOR_VERSION == (major) && __W32API_MINOR_VERSION >= (minor)))) | |
f6bcfd97 | 8983 | |
3a922bb4 RL |
8984 | #if !wxCHECK_W32API_VERSION(1,1) |
8985 | #error You need w32api 1.1 or newer | |
8986 | #endif | |
8987 | ||
8988 | ; return 0; } | |
8989 | EOF | |
b3e8d00a | 8990 | if { (eval echo configure:8991: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
3a922bb4 RL |
8991 | rm -rf conftest* |
8992 | ||
8993 | wx_cv_w32api_win_ie=yes | |
8994 | CPPFLAGS="$CPPFLAGS -D_WIN_IE=0x400" | |
8995 | ||
8996 | else | |
8997 | echo "configure: failed program was:" >&5 | |
8998 | cat conftest.$ac_ext >&5 | |
8999 | rm -rf conftest* | |
9000 | ||
9001 | wx_cv_w32api_win_ie=no | |
9002 | ||
9003 | fi | |
9004 | rm -f conftest* | |
9005 | ||
9006 | fi | |
10f2d63a | 9007 | |
3a922bb4 | 9008 | echo "$ac_t""$wx_cv_w32api_win_ie" 1>&6 |
32832908 | 9009 | |
3a922bb4 RL |
9010 | LIBS="$LIBS -lwinspool -lwinmm -lshell32 -lcomctl32 -lctl3d32 -ladvapi32 -lwsock32" |
9011 | ||
9012 | if test "$wxUSE_ODBC" = "yes" ; then | |
9013 | LIBS="$LIBS -lodbc32 -lole32 -loleaut32" | |
9014 | fi | |
9015 | ||
9016 | if test "$wxUSE_MINGW" = 1; then | |
9017 | LDFLAGS="$LDFLAGS -mwindows" | |
9018 | fi | |
9019 | ||
9020 | RESFLAGS="--include-dir \$(top_srcdir)/include --include-dir \$(top_srcdir)/\$(program_dir) --define __WIN32__ --define __WIN95__ --define __GNUWIN32__" | |
9021 | RESPROGRAMOBJ="\$(PROGRAM)_resources.o" | |
9022 | fi | |
9023 | ||
9024 | if test "$wxUSE_GUI" = "yes"; then | |
9025 | USE_GUI=1 | |
32832908 | 9026 | |
3a922bb4 RL |
9027 | GUI_TK_LIBRARY= |
9028 | ||
9029 | WXGTK12= | |
9030 | WXGTK127= | |
9031 | WXGTK20= | |
32832908 | 9032 | |
3a922bb4 RL |
9033 | if test "$wxUSE_CYGWIN" = 1 || test "$wxUSE_MINGW" = 1 ; then |
9034 | TOOLKIT=MSW | |
9035 | GUIDIST=MSW_DIST | |
1e6feb95 | 9036 | fi |
10f2d63a | 9037 | |
1e6feb95 | 9038 | if test "$wxUSE_GTK" = 1; then |
8168de4c | 9039 | echo $ac_n "checking for GTK+ version""... $ac_c" 1>&6 |
b3e8d00a | 9040 | echo "configure:9041: checking for GTK+ version" >&5 |
8168de4c VZ |
9041 | |
9042 | gtk_version_cached=1 | |
9043 | if eval "test \"`echo '$''{'wx_cv_lib_gtk'+set}'`\" = set"; then | |
9044 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9045 | else | |
9046 | ||
9047 | gtk_version_cached=0 | |
9048 | echo "$ac_t""""" 1>&6 | |
9049 | ||
9050 | wx_cv_lib_gtk= | |
9051 | if test "x$wxUSE_GTK2" = "xyes"; then | |
9052 | # Check whether --with-gtk-prefix or --without-gtk-prefix was given. | |
6f72b082 OK |
9053 | if test "${with_gtk_prefix+set}" = set; then |
9054 | withval="$with_gtk_prefix" | |
9055 | gtk_config_prefix="$withval" | |
9056 | else | |
9057 | gtk_config_prefix="" | |
698dcdb6 | 9058 | fi |
6f72b082 OK |
9059 | |
9060 | # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given. | |
9061 | if test "${with_gtk_exec_prefix+set}" = set; then | |
9062 | withval="$with_gtk_exec_prefix" | |
9063 | gtk_config_exec_prefix="$withval" | |
9064 | else | |
9065 | gtk_config_exec_prefix="" | |
698dcdb6 VZ |
9066 | fi |
9067 | ||
6f72b082 OK |
9068 | # Check whether --enable-gtktest or --disable-gtktest was given. |
9069 | if test "${enable_gtktest+set}" = set; then | |
9070 | enableval="$enable_gtktest" | |
698dcdb6 | 9071 | : |
6f72b082 OK |
9072 | else |
9073 | enable_gtktest=yes | |
698dcdb6 VZ |
9074 | fi |
9075 | ||
6f72b082 | 9076 | |
8168de4c | 9077 | for module in . |
6f72b082 OK |
9078 | do |
9079 | case "$module" in | |
8168de4c | 9080 | gthread) |
6f72b082 OK |
9081 | gtk_config_args="$gtk_config_args gthread" |
9082 | ;; | |
9083 | esac | |
9084 | done | |
9085 | ||
9086 | if test x$gtk_config_exec_prefix != x ; then | |
9087 | gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix" | |
9088 | if test x${GTK_CONFIG_2_0+set} != xset ; then | |
9089 | GTK_CONFIG_2_0=$gtk_config_exec_prefix/bin/gtk-config-2.0 | |
9090 | fi | |
9091 | fi | |
9092 | if test x$gtk_config_prefix != x ; then | |
9093 | gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix" | |
9094 | if test x${GTK_CONFIG_2_0+set} != xset ; then | |
9095 | GTK_CONFIG_2_0=$gtk_config_prefix/bin/gtk-config-2.0 | |
9096 | fi | |
9097 | fi | |
9098 | ||
9099 | # Extract the first word of "gtk-config-2.0", so it can be a program name with args. | |
9100 | set dummy gtk-config-2.0; ac_word=$2 | |
698dcdb6 | 9101 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
b3e8d00a | 9102 | echo "configure:9103: checking for $ac_word" >&5 |
698dcdb6 VZ |
9103 | if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG_2_0'+set}'`\" = set"; then |
9104 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6f72b082 | 9105 | else |
698dcdb6 VZ |
9106 | case "$GTK_CONFIG_2_0" in |
9107 | /*) | |
6f72b082 OK |
9108 | ac_cv_path_GTK_CONFIG_2_0="$GTK_CONFIG_2_0" # Let the user override the test with a path. |
9109 | ;; | |
698dcdb6 VZ |
9110 | ?:/*) |
9111 | ac_cv_path_GTK_CONFIG_2_0="$GTK_CONFIG_2_0" # Let the user override the test with a dos path. | |
9112 | ;; | |
6f72b082 | 9113 | *) |
698dcdb6 VZ |
9114 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
9115 | ac_dummy="$PATH" | |
9116 | for ac_dir in $ac_dummy; do | |
9117 | test -z "$ac_dir" && ac_dir=. | |
9118 | if test -f $ac_dir/$ac_word; then | |
9119 | ac_cv_path_GTK_CONFIG_2_0="$ac_dir/$ac_word" | |
9120 | break | |
9121 | fi | |
9122 | done | |
9123 | IFS="$ac_save_ifs" | |
6f72b082 OK |
9124 | test -z "$ac_cv_path_GTK_CONFIG_2_0" && ac_cv_path_GTK_CONFIG_2_0="no" |
9125 | ;; | |
9126 | esac | |
9127 | fi | |
698dcdb6 | 9128 | GTK_CONFIG_2_0="$ac_cv_path_GTK_CONFIG_2_0" |
6f72b082 | 9129 | if test -n "$GTK_CONFIG_2_0"; then |
698dcdb6 | 9130 | echo "$ac_t""$GTK_CONFIG_2_0" 1>&6 |
6f72b082 | 9131 | else |
698dcdb6 | 9132 | echo "$ac_t""no" 1>&6 |
6f72b082 OK |
9133 | fi |
9134 | ||
9135 | min_gtk_version=1.3.1 | |
698dcdb6 | 9136 | echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6 |
b3e8d00a | 9137 | echo "configure:9138: checking for GTK - version >= $min_gtk_version" >&5 |
6f72b082 OK |
9138 | no_gtk="" |
9139 | if test "$GTK_CONFIG_2_0" = "no" ; then | |
9140 | no_gtk=yes | |
9141 | else | |
9142 | GTK_CFLAGS=`$GTK_CONFIG_2_0 $gtk_config_args --cflags` | |
9143 | GTK_LIBS=`$GTK_CONFIG_2_0 $gtk_config_args --libs` | |
9144 | gtk_config_major_version=`$GTK_CONFIG_2_0 $gtk_config_args --version | \ | |
9145 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` | |
9146 | gtk_config_minor_version=`$GTK_CONFIG_2_0 $gtk_config_args --version | \ | |
9147 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` | |
9148 | gtk_config_micro_version=`$GTK_CONFIG_2_0 $gtk_config_args --version | \ | |
9149 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` | |
9150 | if test "x$enable_gtktest" = "xyes" ; then | |
9151 | ac_save_CFLAGS="$CFLAGS" | |
9152 | ac_save_LIBS="$LIBS" | |
9153 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
9154 | LIBS="$GTK_LIBS $LIBS" | |
9155 | rm -f conf.gtktest | |
9156 | if test "$cross_compiling" = yes; then | |
9157 | echo $ac_n "cross compiling; assumed OK... $ac_c" | |
9158 | else | |
698dcdb6 | 9159 | cat > conftest.$ac_ext <<EOF |
b3e8d00a | 9160 | #line 9161 "configure" |
6f72b082 OK |
9161 | #include "confdefs.h" |
9162 | ||
9163 | #include <gtk/gtk.h> | |
9164 | #include <stdio.h> | |
9165 | #include <stdlib.h> | |
9166 | ||
8168de4c | 9167 | int |
6f72b082 OK |
9168 | main () |
9169 | { | |
9170 | int major, minor, micro; | |
9171 | char *tmp_version; | |
9172 | ||
9173 | system ("touch conf.gtktest"); | |
9174 | ||
9175 | /* HP/UX 9 (%@#!) writes to sscanf strings */ | |
9176 | tmp_version = g_strdup("$min_gtk_version"); | |
9177 | if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { | |
9178 | printf("%s, bad version string\n", "$min_gtk_version"); | |
9179 | exit(1); | |
9180 | } | |
9181 | ||
9182 | if ((gtk_major_version != $gtk_config_major_version) || | |
9183 | (gtk_minor_version != $gtk_config_minor_version) || | |
9184 | (gtk_micro_version != $gtk_config_micro_version)) | |
9185 | { | |
8168de4c | 9186 | printf("\n*** 'gtk-config-2.0 --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n", |
6f72b082 OK |
9187 | $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version, |
9188 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
9189 | printf ("*** was found! If gtk-config-2.0 was correct, then it is best\n"); | |
9190 | printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n"); | |
9191 | printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n"); | |
9192 | printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n"); | |
9193 | printf("*** required on your system.\n"); | |
9194 | printf("*** If gtk-config-2.0 was wrong, set the environment variable GTK_CONFIG_2_0\n"); | |
9195 | printf("*** to point to the correct copy of gtk-config-2.0, and remove the file config.cache\n"); | |
9196 | printf("*** before re-running configure\n"); | |
8168de4c | 9197 | } |
6f72b082 OK |
9198 | #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION) |
9199 | else if ((gtk_major_version != GTK_MAJOR_VERSION) || | |
8168de4c | 9200 | (gtk_minor_version != GTK_MINOR_VERSION) || |
6f72b082 OK |
9201 | (gtk_micro_version != GTK_MICRO_VERSION)) |
9202 | { | |
9203 | printf("*** GTK+ header files (version %d.%d.%d) do not match\n", | |
8168de4c | 9204 | GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION); |
6f72b082 | 9205 | printf("*** library (version %d.%d.%d)\n", |
8168de4c | 9206 | gtk_major_version, gtk_minor_version, gtk_micro_version); |
6f72b082 OK |
9207 | } |
9208 | #endif /* defined (GTK_MAJOR_VERSION) ... */ | |
9209 | else | |
9210 | { | |
9211 | if ((gtk_major_version > major) || | |
9212 | ((gtk_major_version == major) && (gtk_minor_version > minor)) || | |
9213 | ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro))) | |
9214 | { | |
9215 | return 0; | |
9216 | } | |
9217 | else | |
9218 | { | |
9219 | printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n", | |
9220 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
9221 | printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n", | |
8168de4c | 9222 | major, minor, micro); |
6f72b082 OK |
9223 | printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n"); |
9224 | printf("***\n"); | |
9225 | printf("*** If you have already installed a sufficiently new version, this error\n"); | |
9226 | printf("*** probably means that the wrong copy of the gtk-config-2.0 shell script is\n"); | |
9227 | printf("*** being found. The easiest way to fix this is to remove the old version\n"); | |
9228 | printf("*** of GTK+, but you can also set the GTK_CONFIG_2_0 environment to point to the\n"); | |
9229 | printf("*** correct copy of gtk-config-2.0. (In this case, you will have to\n"); | |
9230 | printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n"); | |
9231 | printf("*** so that the correct libraries are found at run-time))\n"); | |
9232 | } | |
9233 | } | |
9234 | return 1; | |
9235 | } | |
9236 | ||
698dcdb6 | 9237 | EOF |
b3e8d00a | 9238 | if { (eval echo configure:9239: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
698dcdb6 | 9239 | then |
6f72b082 OK |
9240 | : |
9241 | else | |
698dcdb6 VZ |
9242 | echo "configure: failed program was:" >&5 |
9243 | cat conftest.$ac_ext >&5 | |
9244 | rm -fr conftest* | |
9245 | no_gtk=yes | |
6f72b082 | 9246 | fi |
698dcdb6 | 9247 | rm -fr conftest* |
6f72b082 | 9248 | fi |
698dcdb6 | 9249 | |
6f72b082 OK |
9250 | CFLAGS="$ac_save_CFLAGS" |
9251 | LIBS="$ac_save_LIBS" | |
9252 | fi | |
9253 | fi | |
9254 | if test "x$no_gtk" = x ; then | |
698dcdb6 | 9255 | echo "$ac_t""yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" 1>&6 |
8168de4c | 9256 | wx_cv_lib_gtk=2.0 |
6f72b082 | 9257 | else |
698dcdb6 | 9258 | echo "$ac_t""no" 1>&6 |
6f72b082 OK |
9259 | if test "$GTK_CONFIG_2_0" = "no" ; then |
9260 | echo "*** The gtk-config-2.0 script installed by GTK could not be found" | |
9261 | echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in" | |
9262 | echo "*** your path, or set the GTK_CONFIG_2_0 environment variable to the" | |
9263 | echo "*** full path to gtk-config-2.0." | |
9264 | else | |
9265 | if test -f conf.gtktest ; then | |
9266 | : | |
9267 | else | |
9268 | echo "*** Could not run GTK test program, checking why..." | |
9269 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
9270 | LIBS="$LIBS $GTK_LIBS" | |
698dcdb6 | 9271 | cat > conftest.$ac_ext <<EOF |
b3e8d00a | 9272 | #line 9273 "configure" |
6f72b082 OK |
9273 | #include "confdefs.h" |
9274 | ||
9275 | #include <gtk/gtk.h> | |
9276 | #include <stdio.h> | |
9277 | ||
698dcdb6 VZ |
9278 | int main() { |
9279 | return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version)); | |
9280 | ; return 0; } | |
9281 | EOF | |
b3e8d00a | 9282 | if { (eval echo configure:9283: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 | 9283 | rm -rf conftest* |
6f72b082 OK |
9284 | echo "*** The test program compiled, but did not run. This usually means" |
9285 | echo "*** that the run-time linker is not finding GTK or finding the wrong" | |
9286 | echo "*** version of GTK. If it is not finding GTK, you'll need to set your" | |
9287 | echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" | |
9288 | echo "*** to the installed location Also, make sure you have run ldconfig if that" | |
9289 | echo "*** is required on your system" | |
8168de4c | 9290 | echo "***" |
6f72b082 OK |
9291 | echo "*** If you have an old version installed, it is best to remove it, although" |
9292 | echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" | |
9293 | echo "***" | |
9294 | echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that" | |
9295 | echo "*** came with the system with the command" | |
9296 | echo "***" | |
698dcdb6 | 9297 | echo "*** rpm --erase --nodeps gtk gtk-devel" |
6f72b082 | 9298 | else |
698dcdb6 VZ |
9299 | echo "configure: failed program was:" >&5 |
9300 | cat conftest.$ac_ext >&5 | |
9301 | rm -rf conftest* | |
9302 | echo "*** The test program failed to compile or link. See the file config.log for the" | |
6f72b082 OK |
9303 | echo "*** exact error that occured. This usually means GTK was incorrectly installed" |
9304 | echo "*** or that you have moved GTK since it was installed. In the latter case, you" | |
698dcdb6 | 9305 | echo "*** may want to edit the gtk-config-2.0 script: $GTK_CONFIG_2_0" |
6f72b082 | 9306 | fi |
698dcdb6 | 9307 | rm -f conftest* |
6f72b082 OK |
9308 | CFLAGS="$ac_save_CFLAGS" |
9309 | LIBS="$ac_save_LIBS" | |
9310 | fi | |
9311 | fi | |
9312 | GTK_CFLAGS="" | |
9313 | GTK_LIBS="" | |
8168de4c VZ |
9314 | gthread |
9315 | fi | |
9316 | ||
9317 | ||
9318 | rm -f conf.gtktest | |
9319 | ||
9320 | fi | |
9321 | ||
9322 | if test -z "$wx_cv_lib_gtk"; then | |
9323 | ||
10f2d63a VZ |
9324 | if test x$gtk_config_exec_prefix != x ; then |
9325 | gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix" | |
9326 | if test x${GTK_CONFIG+set} != xset ; then | |
9327 | GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config | |
9328 | fi | |
9329 | fi | |
9330 | if test x$gtk_config_prefix != x ; then | |
9331 | gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix" | |
9332 | if test x${GTK_CONFIG+set} != xset ; then | |
9333 | GTK_CONFIG=$gtk_config_prefix/bin/gtk-config | |
9334 | fi | |
9335 | fi | |
9336 | ||
9337 | # Extract the first word of "gtk-config", so it can be a program name with args. | |
9338 | set dummy gtk-config; ac_word=$2 | |
698dcdb6 | 9339 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
b3e8d00a | 9340 | echo "configure:9341: checking for $ac_word" >&5 |
698dcdb6 VZ |
9341 | if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then |
9342 | echo $ac_n "(cached) $ac_c" 1>&6 | |
f6bcfd97 | 9343 | else |
698dcdb6 VZ |
9344 | case "$GTK_CONFIG" in |
9345 | /*) | |
f6bcfd97 BP |
9346 | ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path. |
9347 | ;; | |
698dcdb6 VZ |
9348 | ?:/*) |
9349 | ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path. | |
9350 | ;; | |
f6bcfd97 | 9351 | *) |
698dcdb6 VZ |
9352 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
9353 | ac_dummy="$PATH" | |
9354 | for ac_dir in $ac_dummy; do | |
9355 | test -z "$ac_dir" && ac_dir=. | |
9356 | if test -f $ac_dir/$ac_word; then | |
9357 | ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word" | |
9358 | break | |
9359 | fi | |
9360 | done | |
9361 | IFS="$ac_save_ifs" | |
f6bcfd97 BP |
9362 | test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no" |
9363 | ;; | |
9364 | esac | |
9365 | fi | |
698dcdb6 | 9366 | GTK_CONFIG="$ac_cv_path_GTK_CONFIG" |
f6bcfd97 | 9367 | if test -n "$GTK_CONFIG"; then |
698dcdb6 | 9368 | echo "$ac_t""$GTK_CONFIG" 1>&6 |
f6bcfd97 | 9369 | else |
698dcdb6 | 9370 | echo "$ac_t""no" 1>&6 |
f6bcfd97 BP |
9371 | fi |
9372 | ||
9373 | min_gtk_version=1.2.7 | |
698dcdb6 | 9374 | echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6 |
b3e8d00a | 9375 | echo "configure:9376: checking for GTK - version >= $min_gtk_version" >&5 |
f6bcfd97 BP |
9376 | no_gtk="" |
9377 | if test "$GTK_CONFIG" != "no" ; then | |
9378 | GTK_CFLAGS=`$GTK_CONFIG --cflags` | |
9379 | GTK_LIBS=`$GTK_CONFIG --libs gthread` | |
9380 | ac_save_CFLAGS="$CFLAGS" | |
9381 | ac_save_LIBS="$LIBS" | |
9382 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
9383 | LIBS="$LIBS $GTK_LIBS" | |
9384 | if test "$cross_compiling" = yes; then | |
9385 | echo $ac_n "cross compiling; assumed OK... $ac_c" | |
9386 | else | |
698dcdb6 | 9387 | cat > conftest.$ac_ext <<EOF |
b3e8d00a | 9388 | #line 9389 "configure" |
f6bcfd97 BP |
9389 | #include "confdefs.h" |
9390 | ||
9391 | #include <gtk/gtk.h> | |
9392 | #include <gtk/gtkfeatures.h> | |
9393 | #include <stdio.h> | |
9394 | #include <stdlib.h> | |
9395 | ||
9396 | int | |
9397 | main () | |
9398 | { | |
9399 | int major, minor, micro; | |
9400 | ||
9401 | if (sscanf("$min_gtk_version", "%d.%d.%d", &major, &minor, µ) != 3) { | |
9402 | printf("%s, bad version string\n", "$min_gtk_version"); | |
9403 | exit(1); | |
9404 | } | |
9405 | ||
9406 | if ((GTK_MAJOR_VERSION != gtk_major_version) || | |
9407 | (GTK_MINOR_VERSION != gtk_minor_version) || | |
9408 | (GTK_MICRO_VERSION != gtk_micro_version)) { | |
9409 | printf("Headers vs. library version mismatch!\n"); | |
9410 | exit(1); | |
9411 | } | |
9412 | ||
9413 | if (gtk_minor_version == 1) return FALSE; | |
9414 | ||
9415 | return !((gtk_major_version > major) || | |
9416 | ((gtk_major_version == major) && (gtk_minor_version > minor)) || | |
9417 | ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro))); | |
9418 | } | |
9419 | ||
698dcdb6 | 9420 | EOF |
b3e8d00a | 9421 | if { (eval echo configure:9422: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
698dcdb6 | 9422 | then |
f6bcfd97 BP |
9423 | : |
9424 | else | |
698dcdb6 VZ |
9425 | echo "configure: failed program was:" >&5 |
9426 | cat conftest.$ac_ext >&5 | |
9427 | rm -fr conftest* | |
9428 | no_gtk=yes | |
f6bcfd97 | 9429 | fi |
698dcdb6 | 9430 | rm -fr conftest* |
f6bcfd97 | 9431 | fi |
698dcdb6 | 9432 | |
f6bcfd97 BP |
9433 | CFLAGS="$ac_save_CFLAGS" |
9434 | LIBS="$ac_save_LIBS" | |
9435 | else | |
9436 | no_gtk=yes | |
9437 | fi | |
9438 | if test "x$no_gtk" = x ; then | |
698dcdb6 | 9439 | echo "$ac_t""yes" 1>&6 |
8168de4c | 9440 | wx_cv_lib_gtk=1.2.7 |
f6bcfd97 | 9441 | else |
698dcdb6 | 9442 | echo "$ac_t""no" 1>&6 |
f6bcfd97 BP |
9443 | GTK_CFLAGS="" |
9444 | GTK_LIBS="" | |
9445 | : | |
9446 | fi | |
698dcdb6 VZ |
9447 | |
9448 | ||
f6bcfd97 | 9449 | |
8168de4c VZ |
9450 | fi |
9451 | ||
9452 | if test -z "$wx_cv_lib_gtk"; then | |
9453 | ||
f6bcfd97 BP |
9454 | if test x$gtk_config_exec_prefix != x ; then |
9455 | gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix" | |
9456 | if test x${GTK_CONFIG+set} != xset ; then | |
9457 | GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config | |
9458 | fi | |
9459 | fi | |
9460 | if test x$gtk_config_prefix != x ; then | |
9461 | gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix" | |
9462 | if test x${GTK_CONFIG+set} != xset ; then | |
9463 | GTK_CONFIG=$gtk_config_prefix/bin/gtk-config | |
9464 | fi | |
9465 | fi | |
9466 | ||
9467 | # Extract the first word of "gtk-config", so it can be a program name with args. | |
9468 | set dummy gtk-config; ac_word=$2 | |
698dcdb6 | 9469 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
b3e8d00a | 9470 | echo "configure:9471: checking for $ac_word" >&5 |
698dcdb6 VZ |
9471 | if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then |
9472 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 9473 | else |
698dcdb6 VZ |
9474 | case "$GTK_CONFIG" in |
9475 | /*) | |
10f2d63a VZ |
9476 | ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path. |
9477 | ;; | |
698dcdb6 VZ |
9478 | ?:/*) |
9479 | ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path. | |
9480 | ;; | |
10f2d63a | 9481 | *) |
698dcdb6 VZ |
9482 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
9483 | ac_dummy="$PATH" | |
9484 | for ac_dir in $ac_dummy; do | |
9485 | test -z "$ac_dir" && ac_dir=. | |
9486 | if test -f $ac_dir/$ac_word; then | |
9487 | ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word" | |
9488 | break | |
9489 | fi | |
9490 | done | |
9491 | IFS="$ac_save_ifs" | |
10f2d63a VZ |
9492 | test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no" |
9493 | ;; | |
9494 | esac | |
9495 | fi | |
698dcdb6 | 9496 | GTK_CONFIG="$ac_cv_path_GTK_CONFIG" |
10f2d63a | 9497 | if test -n "$GTK_CONFIG"; then |
698dcdb6 | 9498 | echo "$ac_t""$GTK_CONFIG" 1>&6 |
10f2d63a | 9499 | else |
698dcdb6 | 9500 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
9501 | fi |
9502 | ||
04165bec | 9503 | min_gtk_version=1.2.3 |
698dcdb6 | 9504 | echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6 |
b3e8d00a | 9505 | echo "configure:9506: checking for GTK - version >= $min_gtk_version" >&5 |
10f2d63a VZ |
9506 | no_gtk="" |
9507 | if test "$GTK_CONFIG" != "no" ; then | |
9508 | GTK_CFLAGS=`$GTK_CONFIG --cflags` | |
2224580a | 9509 | GTK_LIBS=`$GTK_CONFIG --libs gthread` |
10f2d63a VZ |
9510 | ac_save_CFLAGS="$CFLAGS" |
9511 | ac_save_LIBS="$LIBS" | |
9512 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
9513 | LIBS="$LIBS $GTK_LIBS" | |
9514 | if test "$cross_compiling" = yes; then | |
9515 | echo $ac_n "cross compiling; assumed OK... $ac_c" | |
9516 | else | |
698dcdb6 | 9517 | cat > conftest.$ac_ext <<EOF |
b3e8d00a | 9518 | #line 9519 "configure" |
10f2d63a VZ |
9519 | #include "confdefs.h" |
9520 | ||
9521 | #include <gtk/gtk.h> | |
f49f2b0c | 9522 | #include <gtk/gtkfeatures.h> |
10f2d63a | 9523 | #include <stdio.h> |
32832908 | 9524 | #include <stdlib.h> |
10f2d63a VZ |
9525 | |
9526 | int | |
9527 | main () | |
9528 | { | |
9529 | int major, minor, micro; | |
9530 | ||
9531 | if (sscanf("$min_gtk_version", "%d.%d.%d", &major, &minor, µ) != 3) { | |
9532 | printf("%s, bad version string\n", "$min_gtk_version"); | |
9533 | exit(1); | |
9534 | } | |
9535 | ||
f49f2b0c RR |
9536 | if ((GTK_MAJOR_VERSION != gtk_major_version) || |
9537 | (GTK_MINOR_VERSION != gtk_minor_version) || | |
9538 | (GTK_MICRO_VERSION != gtk_micro_version)) { | |
9539 | printf("Headers vs. library version mismatch!\n"); | |
9540 | exit(1); | |
9541 | } | |
9542 | ||
10f2d63a VZ |
9543 | if (gtk_minor_version == 1) return FALSE; |
9544 | ||
9545 | return !((gtk_major_version > major) || | |
9546 | ((gtk_major_version == major) && (gtk_minor_version > minor)) || | |
9547 | ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro))); | |
9548 | } | |
9549 | ||
698dcdb6 | 9550 | EOF |
b3e8d00a | 9551 | if { (eval echo configure:9552: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
698dcdb6 | 9552 | then |
10f2d63a VZ |
9553 | : |
9554 | else | |
698dcdb6 VZ |
9555 | echo "configure: failed program was:" >&5 |
9556 | cat conftest.$ac_ext >&5 | |
9557 | rm -fr conftest* | |
9558 | no_gtk=yes | |
10f2d63a | 9559 | fi |
698dcdb6 | 9560 | rm -fr conftest* |
10f2d63a | 9561 | fi |
698dcdb6 | 9562 | |
10f2d63a VZ |
9563 | CFLAGS="$ac_save_CFLAGS" |
9564 | LIBS="$ac_save_LIBS" | |
9565 | else | |
9566 | no_gtk=yes | |
9567 | fi | |
9568 | if test "x$no_gtk" = x ; then | |
698dcdb6 | 9569 | echo "$ac_t""yes" 1>&6 |
8168de4c | 9570 | wx_cv_lib_gtk=1.2.3 |
10f2d63a | 9571 | else |
698dcdb6 | 9572 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
9573 | GTK_CFLAGS="" |
9574 | GTK_LIBS="" | |
7e99ad86 | 9575 | : |
10f2d63a | 9576 | fi |
698dcdb6 VZ |
9577 | |
9578 | ||
10f2d63a | 9579 | |
8168de4c VZ |
9580 | fi |
9581 | ||
9582 | if test -z "$wx_cv_lib_gtk"; then | |
9583 | wx_cv_lib_gtk=none | |
138be253 VZ |
9584 | else |
9585 | wx_cv_cflags_gtk=$GTK_CFLAGS | |
9586 | wx_cv_libs_gtk=$GTK_LIBS | |
8168de4c VZ |
9587 | fi |
9588 | ||
1e6feb95 | 9589 | |
8168de4c | 9590 | fi |
703e0a69 | 9591 | |
698dcdb6 | 9592 | |
8168de4c VZ |
9593 | if test "$gtk_version_cached" = 1; then |
9594 | echo "$ac_t""$wx_cv_lib_gtk" 1>&6 | |
1e6feb95 | 9595 | fi |
698dcdb6 | 9596 | |
8168de4c VZ |
9597 | case "$wx_cv_lib_gtk" in |
9598 | 2.0) WXGTK20=1 | |
9599 | ;; | |
9600 | 1.2.7) WXGTK127=1 | |
d1a8d972 | 9601 | WXGTK12=1 |
8168de4c VZ |
9602 | ;; |
9603 | 1.2.3) WXGTK12=1 | |
9604 | ;; | |
9605 | *) { echo "configure: error: | |
9606 | Please check that gtk-config is in path, the directory | |
9607 | where GTK+ libraries are installed (returned by | |
9608 | 'gtk-config --libs' command) is in LD_LIBRARY_PATH or | |
9609 | equivalent variable and GTK+ is version 1.2.3 or above. | |
9610 | " 1>&2; exit 1; } | |
9611 | ;; | |
9612 | esac | |
2224580a | 9613 | |
138be253 | 9614 | TOOLKIT_INCLUDE="$wx_cv_cflags_gtk" |
11dfaa5f | 9615 | GUI_TK_LIBRARY="$wx_cv_libs_gtk" |
698dcdb6 | 9616 | |
1e6feb95 VZ |
9617 | AFMINSTALL=afminstall |
9618 | TOOLKIT=GTK | |
9619 | GUIDIST=GTK_DIST | |
7ec2881a | 9620 | |
1e6feb95 | 9621 | echo $ac_n "checking for gdk_im_open in -lgdk""... $ac_c" 1>&6 |
b3e8d00a | 9622 | echo "configure:9623: checking for gdk_im_open in -lgdk" >&5 |
698dcdb6 VZ |
9623 | ac_lib_var=`echo gdk'_'gdk_im_open | sed 'y%./+-%__p_%'` |
9624 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
9625 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7ec2881a | 9626 | else |
698dcdb6 | 9627 | ac_save_LIBS="$LIBS" |
7ec2881a | 9628 | LIBS="-lgdk $LIBS" |
698dcdb6 | 9629 | cat > conftest.$ac_ext <<EOF |
b3e8d00a | 9630 | #line 9631 "configure" |
7ec2881a RR |
9631 | #include "confdefs.h" |
9632 | /* Override any gcc2 internal prototype to avoid an error. */ | |
9633 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
9634 | builtin and then its argument prototype would still apply. */ |
9635 | char gdk_im_open(); | |
9636 | ||
9637 | int main() { | |
9638 | gdk_im_open() | |
9639 | ; return 0; } | |
9640 | EOF | |
b3e8d00a | 9641 | if { (eval echo configure:9642: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
9642 | rm -rf conftest* |
9643 | eval "ac_cv_lib_$ac_lib_var=yes" | |
9644 | else | |
9645 | echo "configure: failed program was:" >&5 | |
9646 | cat conftest.$ac_ext >&5 | |
9647 | rm -rf conftest* | |
9648 | eval "ac_cv_lib_$ac_lib_var=no" | |
9649 | fi | |
9650 | rm -f conftest* | |
9651 | LIBS="$ac_save_LIBS" | |
9652 | ||
9653 | fi | |
9654 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
9655 | echo "$ac_t""yes" 1>&6 | |
9656 | cat >> confdefs.h <<\EOF | |
7ec2881a RR |
9657 | #define HAVE_XIM 1 |
9658 | EOF | |
9659 | ||
698dcdb6 VZ |
9660 | else |
9661 | echo "$ac_t""no" 1>&6 | |
7ec2881a RR |
9662 | fi |
9663 | ||
1e6feb95 | 9664 | fi |
10f2d63a | 9665 | |
1e6feb95 VZ |
9666 | if test "$wxUSE_MGL" = 1; then |
9667 | ||
9668 | echo $ac_n "checking for SciTech MGL library""... $ac_c" 1>&6 | |
b3e8d00a | 9669 | echo "configure:9670: checking for SciTech MGL library" >&5 |
1e6feb95 VZ |
9670 | if test "x$MGL_ROOT" = x ; then |
9671 | echo "$ac_t""not found" 1>&6 | |
9672 | { echo "configure: error: Cannot find MGL library. Make sure MGL_ROOT is set." 1>&2; exit 1; } | |
9673 | else | |
9674 | echo "$ac_t""$MGL_ROOT" 1>&6 | |
9675 | fi | |
9676 | ||
3a922bb4 RL |
9677 | mgl_os=linux/gcc/glibc |
9678 | mgl_lib_type="" | |
1e6feb95 VZ |
9679 | |
9680 | if test "$wxUSE_DEBUG_FLAG" = yes ; then | |
3a922bb4 RL |
9681 | if test -f $MGL_ROOT/lib/debug/$mgl_os/libmgl.a ; then |
9682 | mgl_lib_type=debug | |
1e6feb95 VZ |
9683 | fi |
9684 | fi | |
3a922bb4 RL |
9685 | if test "x$mgl_lib_type" = x ; then |
9686 | if test -f $MGL_ROOT/lib/release/$mgl_os/libmgl.a ; then | |
9687 | mgl_lib_type=release | |
1e6feb95 VZ |
9688 | else |
9689 | { echo "configure: error: Cannot find MGL libraries, make sure they are compiled." 1>&2; exit 1; } | |
9690 | fi | |
9691 | fi | |
9692 | ||
9693 | TOOLKIT_INCLUDE="-I$MGL_ROOT/include" | |
3a922bb4 | 9694 | GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$mgl_lib_type/$mgl_os -lmgl -lmglcpp -lpm" |
1e6feb95 VZ |
9695 | |
9696 | AFMINSTALL=afminstall | |
9697 | TOOLKIT=MGL | |
9698 | GUIDIST=MGL_DIST | |
9699 | fi | |
9700 | ||
9701 | if test "$wxUSE_WINE" = 1; then | |
3a922bb4 RL |
9702 | ac_safe=`echo "windows.h" | sed 'y%./+-%__p_%'` |
9703 | echo $ac_n "checking for windows.h""... $ac_c" 1>&6 | |
b3e8d00a | 9704 | echo "configure:9705: checking for windows.h" >&5 |
3a922bb4 RL |
9705 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
9706 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9707 | else | |
9708 | cat > conftest.$ac_ext <<EOF | |
b3e8d00a | 9709 | #line 9710 "configure" |
3a922bb4 RL |
9710 | #include "confdefs.h" |
9711 | #include <windows.h> | |
9712 | EOF | |
9713 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
b3e8d00a | 9714 | { (eval echo configure:9715: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
3a922bb4 RL |
9715 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
9716 | if test -z "$ac_err"; then | |
9717 | rm -rf conftest* | |
9718 | eval "ac_cv_header_$ac_safe=yes" | |
9719 | else | |
9720 | echo "$ac_err" >&5 | |
9721 | echo "configure: failed program was:" >&5 | |
9722 | cat conftest.$ac_ext >&5 | |
9723 | rm -rf conftest* | |
9724 | eval "ac_cv_header_$ac_safe=no" | |
9725 | fi | |
9726 | rm -f conftest* | |
9727 | fi | |
9728 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
9729 | echo "$ac_t""yes" 1>&6 | |
9730 | : | |
9731 | else | |
9732 | echo "$ac_t""no" 1>&6 | |
10f2d63a | 9733 | |
1e6feb95 | 9734 | { echo "configure: error: please set CFLAGS to contain the location of windows.h" 1>&2; exit 1; } |
3a922bb4 RL |
9735 | |
9736 | fi | |
9737 | ||
10f2d63a | 9738 | |
3a922bb4 | 9739 | xpm_link="" |
1e6feb95 | 9740 | echo $ac_n "checking for Xpm library""... $ac_c" 1>&6 |
b3e8d00a | 9741 | echo "configure:9742: checking for Xpm library" >&5 |
1e6feb95 | 9742 | |
10f2d63a VZ |
9743 | ac_find_libraries= |
9744 | for ac_dir in $SEARCH_LIB; | |
9745 | do | |
f11bdd03 | 9746 | for ac_extension in a so sl dylib; do |
10f2d63a VZ |
9747 | if test -f "$ac_dir/libXpm.$ac_extension"; then |
9748 | ac_find_libraries=$ac_dir | |
9749 | break 2 | |
9750 | fi | |
9751 | done | |
9752 | done | |
9753 | ||
1e6feb95 VZ |
9754 | if test "$ac_find_libraries" != "" ; then |
9755 | GUI_TK_LIBRARY="-L$ac_find_libraries" | |
3a922bb4 | 9756 | xpm_link="-lXpm" |
1e6feb95 | 9757 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
9758 | #define wxHAVE_LIB_XPM 1 |
9759 | EOF | |
9760 | ||
1e6feb95 VZ |
9761 | echo "$ac_t""found at $ac_find_libraries" 1>&6 |
9762 | else | |
9763 | echo "$ac_t""no" 1>&6 | |
9764 | echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2 | |
9765 | fi | |
10f2d63a | 9766 | |
3a922bb4 | 9767 | mesa_link="" |
1e6feb95 | 9768 | echo $ac_n "checking for Mesa library""... $ac_c" 1>&6 |
b3e8d00a | 9769 | echo "configure:9770: checking for Mesa library" >&5 |
1e6feb95 | 9770 | |
10f2d63a VZ |
9771 | ac_find_libraries= |
9772 | for ac_dir in $SEARCH_LIB; | |
9773 | do | |
f11bdd03 | 9774 | for ac_extension in a so sl dylib; do |
10f2d63a VZ |
9775 | if test -f "$ac_dir/libMesaGL.$ac_extension"; then |
9776 | ac_find_libraries=$ac_dir | |
9777 | break 2 | |
9778 | fi | |
9779 | done | |
9780 | done | |
9781 | ||
1e6feb95 VZ |
9782 | if test "$ac_find_libraries" != "" ; then |
9783 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -L$ac_find_libraries" | |
3a922bb4 | 9784 | mesa_link="-lMesaGL" |
1e6feb95 VZ |
9785 | echo "$ac_t""found at $ac_find_libraries" 1>&6 |
9786 | else | |
9787 | { echo "configure: error: no" 1>&2; exit 1; } | |
9788 | fi | |
10f2d63a | 9789 | |
3a922bb4 | 9790 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lwine $mesa_link $xpm_link -lXxf86dga -lXxf86vm -lSM -lICE -lXext -lXmu -lX11 -lncurses" |
1e6feb95 VZ |
9791 | TOOLKIT=MSW |
9792 | GUIDIST=MSW_DIST | |
3a922bb4 | 9793 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXWINE__" |
1e6feb95 | 9794 | fi |
698dcdb6 | 9795 | |
1e6feb95 VZ |
9796 | |
9797 | # If we find X, set shell vars x_includes and x_libraries to the | |
698dcdb6 VZ |
9798 | # paths, otherwise set no_x=yes. |
9799 | # Uses ac_ vars as temps to allow command line to override cache and checks. | |
9800 | # --without-x overrides everything else, but does not touch the cache. | |
9801 | echo $ac_n "checking for X""... $ac_c" 1>&6 | |
b3e8d00a | 9802 | echo "configure:9803: checking for X" >&5 |
ab9b9eab VZ |
9803 | |
9804 | # Check whether --with-x or --without-x was given. | |
9805 | if test "${with_x+set}" = set; then | |
9806 | withval="$with_x" | |
698dcdb6 VZ |
9807 | : |
9808 | fi | |
ba337fe7 | 9809 | |
ab9b9eab VZ |
9810 | # $have_x is `yes', `no', `disabled', or empty when we do not yet know. |
9811 | if test "x$with_x" = xno; then | |
9812 | # The user explicitly disabled X. | |
9813 | have_x=disabled | |
9814 | else | |
9815 | if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then | |
9816 | # Both variables are already set. | |
9817 | have_x=yes | |
9818 | else | |
698dcdb6 VZ |
9819 | if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then |
9820 | echo $ac_n "(cached) $ac_c" 1>&6 | |
ab9b9eab VZ |
9821 | else |
9822 | # One or both of the vars are not set, and there is no cached value. | |
698dcdb6 VZ |
9823 | ac_x_includes=NO ac_x_libraries=NO |
9824 | rm -fr conftestdir | |
9825 | if mkdir conftestdir; then | |
9826 | cd conftestdir | |
ab9b9eab | 9827 | # Make sure to not put "make" in the Imakefile rules, since we grep it out. |
698dcdb6 | 9828 | cat > Imakefile <<'EOF' |
ab9b9eab VZ |
9829 | acfindx: |
9830 | @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"' | |
9831 | EOF | |
9832 | if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then | |
9833 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
9834 | eval `${MAKE-make} acfindx 2>/dev/null | grep -v make` | |
9835 | # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. | |
10f2d63a | 9836 | for ac_extension in a so sl; do |
ab9b9eab | 9837 | if test ! -f $ac_im_usrlibdir/libX11.$ac_extension && |
698dcdb6 | 9838 | test -f $ac_im_libdir/libX11.$ac_extension; then |
ab9b9eab | 9839 | ac_im_usrlibdir=$ac_im_libdir; break |
10f2d63a VZ |
9840 | fi |
9841 | done | |
ab9b9eab VZ |
9842 | # Screen out bogus values from the imake configuration. They are |
9843 | # bogus both because they are the default anyway, and because | |
9844 | # using them would break gcc on systems where it needs fixed includes. | |
698dcdb6 | 9845 | case "$ac_im_incroot" in |
ab9b9eab | 9846 | /usr/include) ;; |
698dcdb6 | 9847 | *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;; |
ab9b9eab | 9848 | esac |
698dcdb6 | 9849 | case "$ac_im_usrlibdir" in |
ab9b9eab | 9850 | /usr/lib | /lib) ;; |
698dcdb6 | 9851 | *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;; |
ab9b9eab | 9852 | esac |
ba337fe7 | 9853 | fi |
ab9b9eab | 9854 | cd .. |
698dcdb6 | 9855 | rm -fr conftestdir |
ab9b9eab | 9856 | fi |
10f2d63a | 9857 | |
698dcdb6 VZ |
9858 | if test "$ac_x_includes" = NO; then |
9859 | # Guess where to find include files, by looking for this one X11 .h file. | |
9860 | test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h | |
9861 | ||
ab9b9eab | 9862 | # First, try using that file with no special directory specified. |
698dcdb6 | 9863 | cat > conftest.$ac_ext <<EOF |
b3e8d00a | 9864 | #line 9865 "configure" |
ab9b9eab | 9865 | #include "confdefs.h" |
698dcdb6 VZ |
9866 | #include <$x_direct_test_include> |
9867 | EOF | |
9868 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
b3e8d00a | 9869 | { (eval echo configure:9870: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
9870 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
9871 | if test -z "$ac_err"; then | |
9872 | rm -rf conftest* | |
ab9b9eab VZ |
9873 | # We can compile using X headers with no special include directory. |
9874 | ac_x_includes= | |
9875 | else | |
698dcdb6 VZ |
9876 | echo "$ac_err" >&5 |
9877 | echo "configure: failed program was:" >&5 | |
ab9b9eab | 9878 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
9879 | rm -rf conftest* |
9880 | # Look for the header file in a standard set of common directories. | |
9881 | # Check X11 before X11Rn because it is often a symlink to the current release. | |
9882 | for ac_dir in \ | |
9883 | /usr/X11/include \ | |
9884 | /usr/X11R6/include \ | |
9885 | /usr/X11R5/include \ | |
9886 | /usr/X11R4/include \ | |
9887 | \ | |
9888 | /usr/include/X11 \ | |
9889 | /usr/include/X11R6 \ | |
9890 | /usr/include/X11R5 \ | |
9891 | /usr/include/X11R4 \ | |
9892 | \ | |
9893 | /usr/local/X11/include \ | |
9894 | /usr/local/X11R6/include \ | |
9895 | /usr/local/X11R5/include \ | |
9896 | /usr/local/X11R4/include \ | |
9897 | \ | |
9898 | /usr/local/include/X11 \ | |
9899 | /usr/local/include/X11R6 \ | |
9900 | /usr/local/include/X11R5 \ | |
9901 | /usr/local/include/X11R4 \ | |
9902 | \ | |
9903 | /usr/X386/include \ | |
9904 | /usr/x386/include \ | |
9905 | /usr/XFree86/include/X11 \ | |
9906 | \ | |
9907 | /usr/include \ | |
9908 | /usr/local/include \ | |
9909 | /usr/unsupported/include \ | |
9910 | /usr/athena/include \ | |
9911 | /usr/local/x11r5/include \ | |
9912 | /usr/lpp/Xamples/include \ | |
9913 | \ | |
9914 | /usr/openwin/include \ | |
9915 | /usr/openwin/share/include \ | |
9916 | ; \ | |
9917 | do | |
9918 | if test -r "$ac_dir/$x_direct_test_include"; then | |
9919 | ac_x_includes=$ac_dir | |
9920 | break | |
9921 | fi | |
9922 | done | |
ab9b9eab | 9923 | fi |
698dcdb6 VZ |
9924 | rm -f conftest* |
9925 | fi # $ac_x_includes = NO | |
10f2d63a | 9926 | |
698dcdb6 | 9927 | if test "$ac_x_libraries" = NO; then |
ab9b9eab | 9928 | # Check for the libraries. |
698dcdb6 VZ |
9929 | |
9930 | test -z "$x_direct_test_library" && x_direct_test_library=Xt | |
9931 | test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc | |
9932 | ||
ab9b9eab VZ |
9933 | # See if we find them without any special options. |
9934 | # Don't add to $LIBS permanently. | |
698dcdb6 VZ |
9935 | ac_save_LIBS="$LIBS" |
9936 | LIBS="-l$x_direct_test_library $LIBS" | |
9937 | cat > conftest.$ac_ext <<EOF | |
b3e8d00a | 9938 | #line 9939 "configure" |
ab9b9eab | 9939 | #include "confdefs.h" |
698dcdb6 VZ |
9940 | |
9941 | int main() { | |
9942 | ${x_direct_test_function}() | |
9943 | ; return 0; } | |
9944 | EOF | |
b3e8d00a | 9945 | if { (eval echo configure:9946: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
9946 | rm -rf conftest* |
9947 | LIBS="$ac_save_LIBS" | |
ab9b9eab VZ |
9948 | # We can link X programs with no special library path. |
9949 | ac_x_libraries= | |
9950 | else | |
698dcdb6 VZ |
9951 | echo "configure: failed program was:" >&5 |
9952 | cat conftest.$ac_ext >&5 | |
9953 | rm -rf conftest* | |
9954 | LIBS="$ac_save_LIBS" | |
9955 | # First see if replacing the include by lib works. | |
9956 | # Check X11 before X11Rn because it is often a symlink to the current release. | |
9957 | for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \ | |
9958 | /usr/X11/lib \ | |
9959 | /usr/X11R6/lib \ | |
9960 | /usr/X11R5/lib \ | |
9961 | /usr/X11R4/lib \ | |
9962 | \ | |
9963 | /usr/lib/X11 \ | |
9964 | /usr/lib/X11R6 \ | |
9965 | /usr/lib/X11R5 \ | |
9966 | /usr/lib/X11R4 \ | |
9967 | \ | |
9968 | /usr/local/X11/lib \ | |
9969 | /usr/local/X11R6/lib \ | |
9970 | /usr/local/X11R5/lib \ | |
9971 | /usr/local/X11R4/lib \ | |
9972 | \ | |
9973 | /usr/local/lib/X11 \ | |
9974 | /usr/local/lib/X11R6 \ | |
9975 | /usr/local/lib/X11R5 \ | |
9976 | /usr/local/lib/X11R4 \ | |
9977 | \ | |
9978 | /usr/X386/lib \ | |
9979 | /usr/x386/lib \ | |
9980 | /usr/XFree86/lib/X11 \ | |
9981 | \ | |
9982 | /usr/lib \ | |
9983 | /usr/local/lib \ | |
9984 | /usr/unsupported/lib \ | |
9985 | /usr/athena/lib \ | |
9986 | /usr/local/x11r5/lib \ | |
9987 | /usr/lpp/Xamples/lib \ | |
9988 | /lib/usr/lib/X11 \ | |
9989 | \ | |
9990 | /usr/openwin/lib \ | |
9991 | /usr/openwin/share/lib \ | |
9992 | ; \ | |
ab9b9eab VZ |
9993 | do |
9994 | for ac_extension in a so sl; do | |
698dcdb6 | 9995 | if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then |
ab9b9eab VZ |
9996 | ac_x_libraries=$ac_dir |
9997 | break 2 | |
10f2d63a | 9998 | fi |
10f2d63a | 9999 | done |
ab9b9eab VZ |
10000 | done |
10001 | fi | |
698dcdb6 VZ |
10002 | rm -f conftest* |
10003 | fi # $ac_x_libraries = NO | |
10f2d63a | 10004 | |
698dcdb6 | 10005 | if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then |
ab9b9eab VZ |
10006 | # Didn't find X anywhere. Cache the known absence of X. |
10007 | ac_cv_have_x="have_x=no" | |
10008 | else | |
10009 | # Record where we found X for the cache. | |
10010 | ac_cv_have_x="have_x=yes \ | |
10011 | ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries" | |
10012 | fi | |
10013 | fi | |
10f2d63a | 10014 | fi |
ab9b9eab VZ |
10015 | eval "$ac_cv_have_x" |
10016 | fi # $with_x != no | |
10f2d63a | 10017 | |
ab9b9eab | 10018 | if test "$have_x" != yes; then |
698dcdb6 | 10019 | echo "$ac_t""$have_x" 1>&6 |
ab9b9eab VZ |
10020 | no_x=yes |
10021 | else | |
10022 | # If each of the values was on the command line, it overrides each guess. | |
10023 | test "x$x_includes" = xNONE && x_includes=$ac_x_includes | |
10024 | test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries | |
10025 | # Update the cache value to reflect the command line values. | |
10026 | ac_cv_have_x="have_x=yes \ | |
10027 | ac_x_includes=$x_includes ac_x_libraries=$x_libraries" | |
698dcdb6 | 10028 | echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6 |
ab9b9eab | 10029 | fi |
10f2d63a | 10030 | |
ab9b9eab VZ |
10031 | if test "$no_x" = yes; then |
10032 | # Not all programs may use this symbol, but it does not hurt to define it. | |
698dcdb6 | 10033 | cat >> confdefs.h <<\EOF |
ab9b9eab VZ |
10034 | #define X_DISPLAY_MISSING 1 |
10035 | EOF | |
10f2d63a | 10036 | |
ab9b9eab VZ |
10037 | X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= |
10038 | else | |
10039 | if test -n "$x_includes"; then | |
10040 | X_CFLAGS="$X_CFLAGS -I$x_includes" | |
10f2d63a VZ |
10041 | fi |
10042 | ||
ab9b9eab VZ |
10043 | # It would also be nice to do this for all -L options, not just this one. |
10044 | if test -n "$x_libraries"; then | |
10045 | X_LIBS="$X_LIBS -L$x_libraries" | |
10046 | # For Solaris; some versions of Sun CC require a space after -R and | |
10047 | # others require no space. Words are not sufficient . . . . | |
698dcdb6 | 10048 | case "`(uname -sr) 2>/dev/null`" in |
ab9b9eab | 10049 | "SunOS 5"*) |
698dcdb6 | 10050 | echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6 |
b3e8d00a | 10051 | echo "configure:10052: checking whether -R must be followed by a space" >&5 |
698dcdb6 VZ |
10052 | ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries" |
10053 | cat > conftest.$ac_ext <<EOF | |
b3e8d00a | 10054 | #line 10055 "configure" |
ab9b9eab | 10055 | #include "confdefs.h" |
10f2d63a | 10056 | |
698dcdb6 | 10057 | int main() { |
788deba1 | 10058 | |
698dcdb6 VZ |
10059 | ; return 0; } |
10060 | EOF | |
b3e8d00a | 10061 | if { (eval echo configure:10062: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 | 10062 | rm -rf conftest* |
ab9b9eab VZ |
10063 | ac_R_nospace=yes |
10064 | else | |
698dcdb6 VZ |
10065 | echo "configure: failed program was:" >&5 |
10066 | cat conftest.$ac_ext >&5 | |
10067 | rm -rf conftest* | |
10068 | ac_R_nospace=no | |
ab9b9eab | 10069 | fi |
698dcdb6 | 10070 | rm -f conftest* |
ab9b9eab | 10071 | if test $ac_R_nospace = yes; then |
698dcdb6 | 10072 | echo "$ac_t""no" 1>&6 |
ab9b9eab VZ |
10073 | X_LIBS="$X_LIBS -R$x_libraries" |
10074 | else | |
10075 | LIBS="$ac_xsave_LIBS -R $x_libraries" | |
698dcdb6 | 10076 | cat > conftest.$ac_ext <<EOF |
b3e8d00a | 10077 | #line 10078 "configure" |
ab9b9eab | 10078 | #include "confdefs.h" |
788deba1 | 10079 | |
698dcdb6 | 10080 | int main() { |
ab9b9eab | 10081 | |
698dcdb6 VZ |
10082 | ; return 0; } |
10083 | EOF | |
b3e8d00a | 10084 | if { (eval echo configure:10085: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 | 10085 | rm -rf conftest* |
ab9b9eab VZ |
10086 | ac_R_space=yes |
10087 | else | |
698dcdb6 VZ |
10088 | echo "configure: failed program was:" >&5 |
10089 | cat conftest.$ac_ext >&5 | |
10090 | rm -rf conftest* | |
10091 | ac_R_space=no | |
ab9b9eab | 10092 | fi |
698dcdb6 | 10093 | rm -f conftest* |
ab9b9eab | 10094 | if test $ac_R_space = yes; then |
698dcdb6 | 10095 | echo "$ac_t""yes" 1>&6 |
ab9b9eab VZ |
10096 | X_LIBS="$X_LIBS -R $x_libraries" |
10097 | else | |
698dcdb6 | 10098 | echo "$ac_t""neither works" 1>&6 |
ab9b9eab VZ |
10099 | fi |
10100 | fi | |
698dcdb6 | 10101 | LIBS="$ac_xsave_LIBS" |
ab9b9eab VZ |
10102 | esac |
10103 | fi | |
10104 | ||
10105 | # Check for system-dependent libraries X programs must link with. | |
10106 | # Do this before checking for the system-independent R6 libraries | |
10107 | # (-lICE), since we may need -lsocket or whatever for X linking. | |
10108 | ||
10109 | if test "$ISC" = yes; then | |
10110 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" | |
10111 | else | |
698dcdb6 VZ |
10112 | # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X |
10113 | # libraries were built with DECnet support. And karl@cs.umb.edu says | |
ab9b9eab | 10114 | # the Alpha needs dnet_stub (dnet does not exist). |
698dcdb6 | 10115 | echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6 |
b3e8d00a | 10116 | echo "configure:10117: checking for dnet_ntoa in -ldnet" >&5 |
698dcdb6 VZ |
10117 | ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'` |
10118 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
10119 | echo $ac_n "(cached) $ac_c" 1>&6 | |
ab9b9eab | 10120 | else |
698dcdb6 | 10121 | ac_save_LIBS="$LIBS" |
ab9b9eab | 10122 | LIBS="-ldnet $LIBS" |
698dcdb6 | 10123 | cat > conftest.$ac_ext <<EOF |
b3e8d00a | 10124 | #line 10125 "configure" |
ab9b9eab VZ |
10125 | #include "confdefs.h" |
10126 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10127 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
10128 | builtin and then its argument prototype would still apply. */ |
10129 | char dnet_ntoa(); | |
10130 | ||
10131 | int main() { | |
10132 | dnet_ntoa() | |
10133 | ; return 0; } | |
10134 | EOF | |
b3e8d00a | 10135 | if { (eval echo configure:10136: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
10136 | rm -rf conftest* |
10137 | eval "ac_cv_lib_$ac_lib_var=yes" | |
10138 | else | |
10139 | echo "configure: failed program was:" >&5 | |
10140 | cat conftest.$ac_ext >&5 | |
10141 | rm -rf conftest* | |
10142 | eval "ac_cv_lib_$ac_lib_var=no" | |
10143 | fi | |
10144 | rm -f conftest* | |
10145 | LIBS="$ac_save_LIBS" | |
10146 | ||
10147 | fi | |
10148 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
10149 | echo "$ac_t""yes" 1>&6 | |
ab9b9eab | 10150 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" |
698dcdb6 VZ |
10151 | else |
10152 | echo "$ac_t""no" 1>&6 | |
ab9b9eab VZ |
10153 | fi |
10154 | ||
10155 | if test $ac_cv_lib_dnet_dnet_ntoa = no; then | |
698dcdb6 | 10156 | echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6 |
b3e8d00a | 10157 | echo "configure:10158: checking for dnet_ntoa in -ldnet_stub" >&5 |
698dcdb6 VZ |
10158 | ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'` |
10159 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
10160 | echo $ac_n "(cached) $ac_c" 1>&6 | |
ab9b9eab | 10161 | else |
698dcdb6 | 10162 | ac_save_LIBS="$LIBS" |
ab9b9eab | 10163 | LIBS="-ldnet_stub $LIBS" |
698dcdb6 | 10164 | cat > conftest.$ac_ext <<EOF |
b3e8d00a | 10165 | #line 10166 "configure" |
ab9b9eab VZ |
10166 | #include "confdefs.h" |
10167 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10168 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
10169 | builtin and then its argument prototype would still apply. */ |
10170 | char dnet_ntoa(); | |
10171 | ||
10172 | int main() { | |
10173 | dnet_ntoa() | |
10174 | ; return 0; } | |
10175 | EOF | |
b3e8d00a | 10176 | if { (eval echo configure:10177: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
10177 | rm -rf conftest* |
10178 | eval "ac_cv_lib_$ac_lib_var=yes" | |
10179 | else | |
10180 | echo "configure: failed program was:" >&5 | |
10181 | cat conftest.$ac_ext >&5 | |
10182 | rm -rf conftest* | |
10183 | eval "ac_cv_lib_$ac_lib_var=no" | |
10184 | fi | |
10185 | rm -f conftest* | |
10186 | LIBS="$ac_save_LIBS" | |
10187 | ||
10188 | fi | |
10189 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
10190 | echo "$ac_t""yes" 1>&6 | |
ab9b9eab | 10191 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" |
698dcdb6 VZ |
10192 | else |
10193 | echo "$ac_t""no" 1>&6 | |
ab9b9eab VZ |
10194 | fi |
10195 | ||
10196 | fi | |
10197 | ||
10198 | # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT, | |
10199 | # to get the SysV transport functions. | |
698dcdb6 | 10200 | # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4) |
ab9b9eab VZ |
10201 | # needs -lnsl. |
10202 | # The nsl library prevents programs from opening the X display | |
698dcdb6 VZ |
10203 | # on Irix 5.2, according to dickey@clark.net. |
10204 | echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6 | |
b3e8d00a | 10205 | echo "configure:10206: checking for gethostbyname" >&5 |
698dcdb6 VZ |
10206 | if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then |
10207 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10208 | else | |
10209 | cat > conftest.$ac_ext <<EOF | |
b3e8d00a | 10210 | #line 10211 "configure" |
ab9b9eab VZ |
10211 | #include "confdefs.h" |
10212 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 10213 | which can conflict with char gethostbyname(); below. */ |
ab9b9eab VZ |
10214 | #include <assert.h> |
10215 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10216 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
10217 | builtin and then its argument prototype would still apply. */ |
10218 | char gethostbyname(); | |
10219 | ||
10220 | int main() { | |
ab9b9eab VZ |
10221 | |
10222 | /* The GNU C library defines this for functions which it implements | |
10223 | to always fail with ENOSYS. Some functions are actually named | |
10224 | something starting with __ and the normal name is an alias. */ | |
10225 | #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname) | |
10226 | choke me | |
10227 | #else | |
698dcdb6 | 10228 | gethostbyname(); |
ab9b9eab VZ |
10229 | #endif |
10230 | ||
698dcdb6 VZ |
10231 | ; return 0; } |
10232 | EOF | |
b3e8d00a | 10233 | if { (eval echo configure:10234: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
10234 | rm -rf conftest* |
10235 | eval "ac_cv_func_gethostbyname=yes" | |
10236 | else | |
10237 | echo "configure: failed program was:" >&5 | |
10238 | cat conftest.$ac_ext >&5 | |
10239 | rm -rf conftest* | |
10240 | eval "ac_cv_func_gethostbyname=no" | |
10241 | fi | |
10242 | rm -f conftest* | |
10243 | fi | |
10244 | ||
10245 | if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then | |
10246 | echo "$ac_t""yes" 1>&6 | |
10247 | : | |
10248 | else | |
10249 | echo "$ac_t""no" 1>&6 | |
10250 | fi | |
ab9b9eab VZ |
10251 | |
10252 | if test $ac_cv_func_gethostbyname = no; then | |
698dcdb6 | 10253 | echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6 |
b3e8d00a | 10254 | echo "configure:10255: checking for gethostbyname in -lnsl" >&5 |
698dcdb6 VZ |
10255 | ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'` |
10256 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
10257 | echo $ac_n "(cached) $ac_c" 1>&6 | |
ab9b9eab | 10258 | else |
698dcdb6 | 10259 | ac_save_LIBS="$LIBS" |
ab9b9eab | 10260 | LIBS="-lnsl $LIBS" |
698dcdb6 | 10261 | cat > conftest.$ac_ext <<EOF |
b3e8d00a | 10262 | #line 10263 "configure" |
ab9b9eab VZ |
10263 | #include "confdefs.h" |
10264 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10265 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
10266 | builtin and then its argument prototype would still apply. */ |
10267 | char gethostbyname(); | |
6232543b | 10268 | |
698dcdb6 VZ |
10269 | int main() { |
10270 | gethostbyname() | |
10271 | ; return 0; } | |
10272 | EOF | |
b3e8d00a | 10273 | if { (eval echo configure:10274: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
10274 | rm -rf conftest* |
10275 | eval "ac_cv_lib_$ac_lib_var=yes" | |
703e0a69 | 10276 | else |
698dcdb6 VZ |
10277 | echo "configure: failed program was:" >&5 |
10278 | cat conftest.$ac_ext >&5 | |
10279 | rm -rf conftest* | |
10280 | eval "ac_cv_lib_$ac_lib_var=no" | |
10281 | fi | |
10282 | rm -f conftest* | |
10283 | LIBS="$ac_save_LIBS" | |
1e487827 | 10284 | |
698dcdb6 VZ |
10285 | fi |
10286 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
10287 | echo "$ac_t""yes" 1>&6 | |
10288 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" | |
10289 | else | |
10290 | echo "$ac_t""no" 1>&6 | |
ab9b9eab VZ |
10291 | fi |
10292 | ||
10293 | fi | |
10294 | ||
10295 | # lieder@skyler.mavd.honeywell.com says without -lsocket, | |
10296 | # socket/setsockopt and other routines are undefined under SCO ODT | |
10297 | # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary | |
698dcdb6 VZ |
10298 | # on later versions), says simon@lia.di.epfl.ch: it contains |
10299 | # gethostby* variants that don't use the nameserver (or something). | |
10300 | # -lsocket must be given before -lnsl if both are needed. | |
10301 | # We assume that if connect needs -lnsl, so does gethostbyname. | |
10302 | echo $ac_n "checking for connect""... $ac_c" 1>&6 | |
b3e8d00a | 10303 | echo "configure:10304: checking for connect" >&5 |
698dcdb6 VZ |
10304 | if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then |
10305 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10306 | else | |
10307 | cat > conftest.$ac_ext <<EOF | |
b3e8d00a | 10308 | #line 10309 "configure" |
ab9b9eab VZ |
10309 | #include "confdefs.h" |
10310 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 10311 | which can conflict with char connect(); below. */ |
ab9b9eab VZ |
10312 | #include <assert.h> |
10313 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10314 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
10315 | builtin and then its argument prototype would still apply. */ |
10316 | char connect(); | |
10317 | ||
10318 | int main() { | |
ab9b9eab VZ |
10319 | |
10320 | /* The GNU C library defines this for functions which it implements | |
10321 | to always fail with ENOSYS. Some functions are actually named | |
10322 | something starting with __ and the normal name is an alias. */ | |
10323 | #if defined (__stub_connect) || defined (__stub___connect) | |
10324 | choke me | |
10325 | #else | |
698dcdb6 | 10326 | connect(); |
ab9b9eab VZ |
10327 | #endif |
10328 | ||
698dcdb6 VZ |
10329 | ; return 0; } |
10330 | EOF | |
b3e8d00a | 10331 | if { (eval echo configure:10332: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
10332 | rm -rf conftest* |
10333 | eval "ac_cv_func_connect=yes" | |
10334 | else | |
10335 | echo "configure: failed program was:" >&5 | |
10336 | cat conftest.$ac_ext >&5 | |
10337 | rm -rf conftest* | |
10338 | eval "ac_cv_func_connect=no" | |
10339 | fi | |
10340 | rm -f conftest* | |
10341 | fi | |
10342 | ||
10343 | if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then | |
10344 | echo "$ac_t""yes" 1>&6 | |
10345 | : | |
10346 | else | |
10347 | echo "$ac_t""no" 1>&6 | |
10348 | fi | |
ab9b9eab VZ |
10349 | |
10350 | if test $ac_cv_func_connect = no; then | |
698dcdb6 | 10351 | echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6 |
b3e8d00a | 10352 | echo "configure:10353: checking for connect in -lsocket" >&5 |
698dcdb6 VZ |
10353 | ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'` |
10354 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
10355 | echo $ac_n "(cached) $ac_c" 1>&6 | |
ab9b9eab | 10356 | else |
698dcdb6 | 10357 | ac_save_LIBS="$LIBS" |
ab9b9eab | 10358 | LIBS="-lsocket $X_EXTRA_LIBS $LIBS" |
698dcdb6 | 10359 | cat > conftest.$ac_ext <<EOF |
b3e8d00a | 10360 | #line 10361 "configure" |
ab9b9eab VZ |
10361 | #include "confdefs.h" |
10362 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10363 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
10364 | builtin and then its argument prototype would still apply. */ |
10365 | char connect(); | |
10366 | ||
10367 | int main() { | |
10368 | connect() | |
10369 | ; return 0; } | |
10370 | EOF | |
b3e8d00a | 10371 | if { (eval echo configure:10372: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
10372 | rm -rf conftest* |
10373 | eval "ac_cv_lib_$ac_lib_var=yes" | |
10374 | else | |
10375 | echo "configure: failed program was:" >&5 | |
10376 | cat conftest.$ac_ext >&5 | |
10377 | rm -rf conftest* | |
10378 | eval "ac_cv_lib_$ac_lib_var=no" | |
10379 | fi | |
10380 | rm -f conftest* | |
10381 | LIBS="$ac_save_LIBS" | |
10382 | ||
10383 | fi | |
10384 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
10385 | echo "$ac_t""yes" 1>&6 | |
ab9b9eab | 10386 | X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" |
698dcdb6 VZ |
10387 | else |
10388 | echo "$ac_t""no" 1>&6 | |
ab9b9eab VZ |
10389 | fi |
10390 | ||
10391 | fi | |
10392 | ||
698dcdb6 VZ |
10393 | # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX. |
10394 | echo $ac_n "checking for remove""... $ac_c" 1>&6 | |
b3e8d00a | 10395 | echo "configure:10396: checking for remove" >&5 |
698dcdb6 VZ |
10396 | if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then |
10397 | echo $ac_n "(cached) $ac_c" 1>&6 | |
ab9b9eab | 10398 | else |
698dcdb6 | 10399 | cat > conftest.$ac_ext <<EOF |
b3e8d00a | 10400 | #line 10401 "configure" |
ab9b9eab VZ |
10401 | #include "confdefs.h" |
10402 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 10403 | which can conflict with char remove(); below. */ |
ab9b9eab VZ |
10404 | #include <assert.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 remove(); | |
10409 | ||
10410 | int main() { | |
ab9b9eab VZ |
10411 | |
10412 | /* The GNU C library defines this for functions which it implements | |
10413 | to always fail with ENOSYS. Some functions are actually named | |
10414 | something starting with __ and the normal name is an alias. */ | |
10415 | #if defined (__stub_remove) || defined (__stub___remove) | |
10416 | choke me | |
10417 | #else | |
698dcdb6 | 10418 | remove(); |
ab9b9eab VZ |
10419 | #endif |
10420 | ||
698dcdb6 VZ |
10421 | ; return 0; } |
10422 | EOF | |
b3e8d00a | 10423 | if { (eval echo configure:10424: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
10424 | rm -rf conftest* |
10425 | eval "ac_cv_func_remove=yes" | |
10426 | else | |
10427 | echo "configure: failed program was:" >&5 | |
10428 | cat conftest.$ac_ext >&5 | |
10429 | rm -rf conftest* | |
10430 | eval "ac_cv_func_remove=no" | |
10431 | fi | |
10432 | rm -f conftest* | |
10433 | fi | |
10434 | ||
10435 | if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then | |
10436 | echo "$ac_t""yes" 1>&6 | |
10437 | : | |
10438 | else | |
10439 | echo "$ac_t""no" 1>&6 | |
10440 | fi | |
ab9b9eab VZ |
10441 | |
10442 | if test $ac_cv_func_remove = no; then | |
698dcdb6 | 10443 | echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6 |
b3e8d00a | 10444 | echo "configure:10445: checking for remove in -lposix" >&5 |
698dcdb6 VZ |
10445 | ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'` |
10446 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
10447 | echo $ac_n "(cached) $ac_c" 1>&6 | |
ab9b9eab | 10448 | else |
698dcdb6 | 10449 | ac_save_LIBS="$LIBS" |
ab9b9eab | 10450 | LIBS="-lposix $LIBS" |
698dcdb6 | 10451 | cat > conftest.$ac_ext <<EOF |
b3e8d00a | 10452 | #line 10453 "configure" |
ab9b9eab VZ |
10453 | #include "confdefs.h" |
10454 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10455 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
10456 | builtin and then its argument prototype would still apply. */ |
10457 | char remove(); | |
10458 | ||
10459 | int main() { | |
10460 | remove() | |
10461 | ; return 0; } | |
10462 | EOF | |
b3e8d00a | 10463 | if { (eval echo configure:10464: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
10464 | rm -rf conftest* |
10465 | eval "ac_cv_lib_$ac_lib_var=yes" | |
10466 | else | |
10467 | echo "configure: failed program was:" >&5 | |
10468 | cat conftest.$ac_ext >&5 | |
10469 | rm -rf conftest* | |
10470 | eval "ac_cv_lib_$ac_lib_var=no" | |
10471 | fi | |
10472 | rm -f conftest* | |
10473 | LIBS="$ac_save_LIBS" | |
10474 | ||
10475 | fi | |
10476 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
10477 | echo "$ac_t""yes" 1>&6 | |
ab9b9eab | 10478 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" |
698dcdb6 VZ |
10479 | else |
10480 | echo "$ac_t""no" 1>&6 | |
ab9b9eab VZ |
10481 | fi |
10482 | ||
10483 | fi | |
10484 | ||
10485 | # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. | |
698dcdb6 | 10486 | echo $ac_n "checking for shmat""... $ac_c" 1>&6 |
b3e8d00a | 10487 | echo "configure:10488: checking for shmat" >&5 |
698dcdb6 VZ |
10488 | if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then |
10489 | echo $ac_n "(cached) $ac_c" 1>&6 | |
ab9b9eab | 10490 | else |
698dcdb6 | 10491 | cat > conftest.$ac_ext <<EOF |
b3e8d00a | 10492 | #line 10493 "configure" |
ab9b9eab VZ |
10493 | #include "confdefs.h" |
10494 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 10495 | which can conflict with char shmat(); below. */ |
ab9b9eab VZ |
10496 | #include <assert.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 shmat(); | |
10501 | ||
10502 | int main() { | |
ab9b9eab VZ |
10503 | |
10504 | /* The GNU C library defines this for functions which it implements | |
10505 | to always fail with ENOSYS. Some functions are actually named | |
10506 | something starting with __ and the normal name is an alias. */ | |
10507 | #if defined (__stub_shmat) || defined (__stub___shmat) | |
10508 | choke me | |
10509 | #else | |
698dcdb6 | 10510 | shmat(); |
ab9b9eab VZ |
10511 | #endif |
10512 | ||
698dcdb6 VZ |
10513 | ; return 0; } |
10514 | EOF | |
b3e8d00a | 10515 | if { (eval echo configure:10516: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
10516 | rm -rf conftest* |
10517 | eval "ac_cv_func_shmat=yes" | |
10518 | else | |
10519 | echo "configure: failed program was:" >&5 | |
10520 | cat conftest.$ac_ext >&5 | |
10521 | rm -rf conftest* | |
10522 | eval "ac_cv_func_shmat=no" | |
10523 | fi | |
10524 | rm -f conftest* | |
10525 | fi | |
10526 | ||
10527 | if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then | |
10528 | echo "$ac_t""yes" 1>&6 | |
10529 | : | |
10530 | else | |
10531 | echo "$ac_t""no" 1>&6 | |
10532 | fi | |
ab9b9eab VZ |
10533 | |
10534 | if test $ac_cv_func_shmat = no; then | |
698dcdb6 | 10535 | echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6 |
b3e8d00a | 10536 | echo "configure:10537: checking for shmat in -lipc" >&5 |
698dcdb6 VZ |
10537 | ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'` |
10538 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
10539 | echo $ac_n "(cached) $ac_c" 1>&6 | |
ab9b9eab | 10540 | else |
698dcdb6 | 10541 | ac_save_LIBS="$LIBS" |
ab9b9eab | 10542 | LIBS="-lipc $LIBS" |
698dcdb6 | 10543 | cat > conftest.$ac_ext <<EOF |
b3e8d00a | 10544 | #line 10545 "configure" |
ab9b9eab VZ |
10545 | #include "confdefs.h" |
10546 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10547 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
10548 | builtin and then its argument prototype would still apply. */ |
10549 | char shmat(); | |
10550 | ||
10551 | int main() { | |
10552 | shmat() | |
10553 | ; return 0; } | |
10554 | EOF | |
b3e8d00a | 10555 | if { (eval echo configure:10556: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
10556 | rm -rf conftest* |
10557 | eval "ac_cv_lib_$ac_lib_var=yes" | |
10558 | else | |
10559 | echo "configure: failed program was:" >&5 | |
10560 | cat conftest.$ac_ext >&5 | |
10561 | rm -rf conftest* | |
10562 | eval "ac_cv_lib_$ac_lib_var=no" | |
10563 | fi | |
10564 | rm -f conftest* | |
10565 | LIBS="$ac_save_LIBS" | |
10566 | ||
10567 | fi | |
10568 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
10569 | echo "$ac_t""yes" 1>&6 | |
ab9b9eab | 10570 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" |
698dcdb6 VZ |
10571 | else |
10572 | echo "$ac_t""no" 1>&6 | |
ab9b9eab VZ |
10573 | fi |
10574 | ||
10575 | fi | |
10576 | fi | |
10577 | ||
10578 | # Check for libraries that X11R6 Xt/Xaw programs need. | |
698dcdb6 | 10579 | ac_save_LDFLAGS="$LDFLAGS" |
ab9b9eab VZ |
10580 | test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" |
10581 | # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to | |
10582 | # check for ICE first), but we must link in the order -lSM -lICE or | |
10583 | # we get undefined symbols. So assume we have SM if we have ICE. | |
10584 | # These have to be linked with before -lX11, unlike the other | |
10585 | # libraries we check for below, so use a different variable. | |
698dcdb6 VZ |
10586 | # --interran@uluru.Stanford.EDU, kb@cs.umb.edu. |
10587 | echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6 | |
b3e8d00a | 10588 | echo "configure:10589: checking for IceConnectionNumber in -lICE" >&5 |
698dcdb6 VZ |
10589 | ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'` |
10590 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
10591 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10592 | else | |
10593 | ac_save_LIBS="$LIBS" | |
ab9b9eab | 10594 | LIBS="-lICE $X_EXTRA_LIBS $LIBS" |
698dcdb6 | 10595 | cat > conftest.$ac_ext <<EOF |
b3e8d00a | 10596 | #line 10597 "configure" |
ab9b9eab VZ |
10597 | #include "confdefs.h" |
10598 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10599 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
10600 | builtin and then its argument prototype would still apply. */ |
10601 | char IceConnectionNumber(); | |
10602 | ||
10603 | int main() { | |
10604 | IceConnectionNumber() | |
10605 | ; return 0; } | |
10606 | EOF | |
b3e8d00a | 10607 | if { (eval echo configure:10608: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
10608 | rm -rf conftest* |
10609 | eval "ac_cv_lib_$ac_lib_var=yes" | |
10610 | else | |
10611 | echo "configure: failed program was:" >&5 | |
10612 | cat conftest.$ac_ext >&5 | |
10613 | rm -rf conftest* | |
10614 | eval "ac_cv_lib_$ac_lib_var=no" | |
10615 | fi | |
10616 | rm -f conftest* | |
10617 | LIBS="$ac_save_LIBS" | |
10618 | ||
10619 | fi | |
10620 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
10621 | echo "$ac_t""yes" 1>&6 | |
ab9b9eab | 10622 | X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" |
698dcdb6 VZ |
10623 | else |
10624 | echo "$ac_t""no" 1>&6 | |
ab9b9eab VZ |
10625 | fi |
10626 | ||
698dcdb6 | 10627 | LDFLAGS="$ac_save_LDFLAGS" |
ab9b9eab VZ |
10628 | |
10629 | fi | |
10630 | ||
1e6feb95 VZ |
10631 | CPPFLAGS="$CPPFLAGS $X_CFLAGS" |
10632 | LDFLAGS="$LDFLAGS $X_LIBS" | |
ab9b9eab | 10633 | |
1e6feb95 VZ |
10634 | if test "$wxUSE_MOTIF" = 1; then |
10635 | if test "$no_x" = "yes"; then | |
10636 | { echo "configure: error: X11 not found" 1>&2; exit 1; } | |
10637 | fi | |
ab9b9eab | 10638 | |
1e6feb95 VZ |
10639 | GUI_TK_LIBRARY="$X_LIBS" |
10640 | TOOLKIT_INCLUDE="$X_CFLAGS" | |
1e6feb95 | 10641 | AFMINSTALL=afminstall |
1e6feb95 | 10642 | COMPILED_X_PROGRAM=0 |
cd6d6d5b | 10643 | |
1e6feb95 | 10644 | echo $ac_n "checking for Motif/Lesstif headers""... $ac_c" 1>&6 |
b3e8d00a | 10645 | echo "configure:10646: checking for Motif/Lesstif headers" >&5 |
1e6feb95 | 10646 | |
ab9b9eab VZ |
10647 | ac_find_includes= |
10648 | for ac_dir in $SEARCH_INCLUDE; | |
10649 | do | |
10650 | if test -f "$ac_dir/Xm/Xm.h"; then | |
10651 | ac_find_includes=$ac_dir | |
10652 | break | |
10653 | fi | |
10654 | done | |
10655 | ||
1e6feb95 VZ |
10656 | if test "$ac_find_includes" != "" ; then |
10657 | echo "$ac_t""found $ac_find_includes" 1>&6 | |
10658 | else | |
10659 | cat > conftest.$ac_ext <<EOF | |
b3e8d00a | 10660 | #line 10661 "configure" |
cd6d6d5b VZ |
10661 | #include "confdefs.h" |
10662 | ||
1e6feb95 VZ |
10663 | #include <Xm/Xm.h> |
10664 | ||
698dcdb6 | 10665 | int main() { |
cd6d6d5b | 10666 | |
1e6feb95 | 10667 | int version; |
1e6feb95 VZ |
10668 | version = xmUseVersion; |
10669 | ||
698dcdb6 VZ |
10670 | ; return 0; } |
10671 | EOF | |
b3e8d00a | 10672 | if { (eval echo configure:10673: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 VZ |
10673 | rm -rf conftest* |
10674 | ||
1e6feb95 VZ |
10675 | echo "$ac_t""found in default search path" 1>&6 |
10676 | COMPILED_X_PROGRAM=1 | |
10677 | ||
cd6d6d5b | 10678 | else |
698dcdb6 VZ |
10679 | echo "configure: failed program was:" >&5 |
10680 | cat conftest.$ac_ext >&5 | |
10681 | rm -rf conftest* | |
10682 | ||
1e6feb95 VZ |
10683 | echo "$ac_t""no" 1>&6 |
10684 | { echo "configure: error: please set CFLAGS to contain the location of Xm/Xm.h" 1>&2; exit 1; } | |
10685 | ||
698dcdb6 | 10686 | |
cd6d6d5b | 10687 | fi |
698dcdb6 | 10688 | rm -f conftest* |
1e6feb95 | 10689 | fi |
ab9b9eab | 10690 | |
1e6feb95 VZ |
10691 | if test "$COMPILED_X_PROGRAM" = 0; then |
10692 | echo $ac_n "checking for Motif/Lesstif library""... $ac_c" 1>&6 | |
b3e8d00a | 10693 | echo "configure:10694: checking for Motif/Lesstif library" >&5 |
1e6feb95 | 10694 | |
ab9b9eab VZ |
10695 | ac_find_libraries= |
10696 | for ac_dir in $SEARCH_LIB; | |
10697 | do | |
f11bdd03 | 10698 | for ac_extension in a so sl dylib; do |
ab9b9eab VZ |
10699 | if test -f "$ac_dir/libXm.$ac_extension"; then |
10700 | ac_find_libraries=$ac_dir | |
10701 | break 2 | |
10702 | fi | |
10703 | done | |
10704 | done | |
10705 | ||
1e6feb95 VZ |
10706 | if test "$ac_find_libraries" != "" ; then |
10707 | ||
ab9b9eab VZ |
10708 | ac_path_to_include=$ac_find_includes |
10709 | echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null | |
10710 | result=$? | |
10711 | if test $result = 0; then | |
10712 | ac_path_to_include="" | |
10713 | else | |
10714 | ac_path_to_include="-I$ac_find_includes" | |
10715 | fi | |
10716 | ||
1e6feb95 | 10717 | |
ab9b9eab VZ |
10718 | echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null |
10719 | result=$? | |
10720 | if test $result = 0; then | |
10721 | ac_path_to_link="" | |
10722 | else | |
10723 | ac_path_to_link="-L$ac_find_libraries" | |
10724 | fi | |
10725 | ||
698dcdb6 | 10726 | |
1e6feb95 VZ |
10727 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY $ac_path_to_link" |
10728 | TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE $ac_path_to_include" | |
10729 | echo "$ac_t""found at $ac_find_libraries" 1>&6 | |
10730 | else | |
10731 | cat > conftest.$ac_ext <<EOF | |
b3e8d00a | 10732 | #line 10733 "configure" |
cd6d6d5b | 10733 | #include "confdefs.h" |
ab9b9eab | 10734 | |
1e6feb95 VZ |
10735 | #include <Xm/Xm.h> |
10736 | ||
698dcdb6 | 10737 | int main() { |
ab9b9eab | 10738 | |
1e6feb95 | 10739 | int version; |
1e6feb95 VZ |
10740 | version = xmUseVersion; |
10741 | ||
698dcdb6 VZ |
10742 | ; return 0; } |
10743 | EOF | |
b3e8d00a | 10744 | if { (eval echo configure:10745: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 VZ |
10745 | rm -rf conftest* |
10746 | ||
1e6feb95 VZ |
10747 | echo "$ac_t""found in default search path" 1>&6 |
10748 | COMPILED_X_PROGRAM=1 | |
10749 | ||
cd6d6d5b | 10750 | else |
698dcdb6 VZ |
10751 | echo "configure: failed program was:" >&5 |
10752 | cat conftest.$ac_ext >&5 | |
10753 | rm -rf conftest* | |
10754 | ||
1e6feb95 VZ |
10755 | echo "$ac_t""no" 1>&6 |
10756 | { echo "configure: error: please set LDFLAGS to contain the location of libXm" 1>&2; exit 1; } | |
10757 | ||
698dcdb6 | 10758 | |
cd6d6d5b | 10759 | fi |
698dcdb6 | 10760 | rm -f conftest* |
1e6feb95 | 10761 | fi |
cd6d6d5b | 10762 | fi |
ab9b9eab | 10763 | |
3a922bb4 | 10764 | xpm_link="" |
1e6feb95 | 10765 | echo $ac_n "checking for Xpm library""... $ac_c" 1>&6 |
b3e8d00a | 10766 | echo "configure:10767: checking for Xpm library" >&5 |
1e6feb95 | 10767 | |
ab9b9eab VZ |
10768 | ac_find_libraries= |
10769 | for ac_dir in $SEARCH_LIB; | |
10770 | do | |
f11bdd03 | 10771 | for ac_extension in a so sl dylib; do |
ab9b9eab VZ |
10772 | if test -f "$ac_dir/libXpm.$ac_extension"; then |
10773 | ac_find_libraries=$ac_dir | |
10774 | break 2 | |
10775 | fi | |
10776 | done | |
10777 | done | |
10778 | ||
1e6feb95 VZ |
10779 | if test "$ac_find_libraries" != "" ; then |
10780 | ||
ab9b9eab VZ |
10781 | echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null |
10782 | result=$? | |
10783 | if test $result = 0; then | |
10784 | ac_path_to_link="" | |
10785 | else | |
10786 | ac_path_to_link="-L$ac_find_libraries" | |
10787 | fi | |
10788 | ||
1e6feb95 | 10789 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY $ac_path_to_link" |
3a922bb4 | 10790 | xpm_link="-lXpm " |
1e6feb95 | 10791 | cat >> confdefs.h <<\EOF |
ab9b9eab VZ |
10792 | #define wxHAVE_LIB_XPM 1 |
10793 | EOF | |
10794 | ||
1e6feb95 VZ |
10795 | echo "$ac_t""found at $ac_find_libraries" 1>&6 |
10796 | else | |
10797 | cat > conftest.$ac_ext <<EOF | |
b3e8d00a | 10798 | #line 10799 "configure" |
cd6d6d5b VZ |
10799 | #include "confdefs.h" |
10800 | ||
1e6feb95 VZ |
10801 | #include <X11/xpm.h> |
10802 | ||
698dcdb6 | 10803 | int main() { |
cd6d6d5b | 10804 | |
1e6feb95 | 10805 | int version; |
1e6feb95 VZ |
10806 | version = XpmLibraryVersion(); |
10807 | ||
698dcdb6 VZ |
10808 | ; return 0; } |
10809 | EOF | |
b3e8d00a | 10810 | if { (eval echo configure:10811: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 VZ |
10811 | rm -rf conftest* |
10812 | ||
3a922bb4 RL |
10813 | xpm_link="-lXpm " |
10814 | cat >> confdefs.h <<\EOF | |
3ace2e6d SN |
10815 | #define wxHAVE_LIB_XPM 1 |
10816 | EOF | |
10817 | ||
1e6feb95 VZ |
10818 | echo "$ac_t""found in default search path" 1>&6 |
10819 | COMPILED_X_PROGRAM=0 | |
10820 | ||
cd6d6d5b | 10821 | else |
698dcdb6 VZ |
10822 | echo "configure: failed program was:" >&5 |
10823 | cat conftest.$ac_ext >&5 | |
10824 | rm -rf conftest* | |
10825 | ||
1e6feb95 VZ |
10826 | echo "$ac_t""no" 1>&6 |
10827 | echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2 | |
10828 | ||
698dcdb6 | 10829 | |
cd6d6d5b | 10830 | fi |
698dcdb6 | 10831 | rm -f conftest* |
1e6feb95 VZ |
10832 | fi |
10833 | ||
3a922bb4 RL |
10834 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXm $xpm_link -lXmu -lXext -lXt -lX11" |
10835 | TOOLKIT_VPATH="\${top_srcdir}/src/${TOOLKIT_DIR}${PATH_IFS}\${top_srcdir}/src/motif/xmcombo" | |
1e6feb95 VZ |
10836 | TOOLKIT=MOTIF |
10837 | GUIDIST=MOTIF_DIST | |
ab9b9eab VZ |
10838 | fi |
10839 | ||
3a922bb4 | 10840 | if test "$wxUSE_MAC" = 1; then |
1e6feb95 | 10841 | TOOLKIT=MAC |
3a922bb4 | 10842 | GUIDIST=MACX_DIST |
1e6feb95 | 10843 | fi |
10f2d63a | 10844 | |
1e6feb95 VZ |
10845 | if test "$wxUSE_PM" = 1; then |
10846 | TOOLKIT=PM | |
10847 | GUIDIST=GTK_DIST | |
10848 | fi | |
b4085ce6 | 10849 | |
3a922bb4 | 10850 | if test "$TOOLKIT" = "PM" ; then |
1e6feb95 | 10851 | TOOLKIT_DIR="os2" |
3a922bb4 RL |
10852 | else |
10853 | TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"` | |
1e6feb95 | 10854 | fi |
e07802fc | 10855 | |
3a922bb4 | 10856 | PORT_FILES="\${top_srcdir}/src/\$(TOOLKITDIR)/files.lst" |
1e6feb95 | 10857 | |
3a922bb4 RL |
10858 | if test "$wxUSE_UNIVERSAL" = "yes"; then |
10859 | ALL_OBJECTS="\$(GUI_LOWLEVEL_OBJS) \${UNIVOBJS}" | |
10860 | PORT_FILES="${PORT_FILES} \${top_srcdir}/src/univ/files.lst" | |
10861 | TOOLKIT_VPATH="\${top_srcdir}/src/univ${PATH_IFS}\${top_srcdir}/src/univ/themes${PATH_IFS}\${top_srcdir}/src/${TOOLKIT_DIR}" | |
10862 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__" | |
10863 | WIDGET_SET=univ | |
f6bcfd97 | 10864 | else |
3a922bb4 | 10865 | ALL_OBJECTS="\$(GUIOBJS)" |
1e6feb95 VZ |
10866 | fi |
10867 | ||
10868 | ALL_OBJECTS="${ALL_OBJECTS} \$(COMMONOBJS) \$(GENERICOBJS)" | |
10869 | ||
10870 | if test "$TOOLKIT" != "MSW"; then | |
10871 | ALL_OBJECTS="${ALL_OBJECTS} \$(UNIXOBJS)" | |
10872 | fi | |
10873 | ||
10874 | if test "$wxUSE_HTML" = "yes"; then | |
10875 | ALL_OBJECTS="${ALL_OBJECTS} \$(HTMLOBJS)" | |
10876 | fi | |
3fcdd07b | 10877 | |
3a922bb4 RL |
10878 | if test "$TOOLKIT" != "MSW" -a "$wxUSE_ODBC" = "yes" ; then |
10879 | ALL_OBJECTS="${ALL_OBJECTS} \$(IODBCOBJS)" | |
831b3152 | 10880 | fi |
d9d8273d | 10881 | if test "$wxUSE_LIBJPEG" = "yes" ; then |
2224580a | 10882 | ALL_OBJECTS="${ALL_OBJECTS} \$(JPEGOBJS)" |
d9d8273d RR |
10883 | fi |
10884 | if test "$wxUSE_LIBTIFF" = "yes" ; then | |
10885 | ALL_OBJECTS="${ALL_OBJECTS} \$(TIFFOBJS)" | |
10886 | fi | |
10887 | if test "$wxUSE_LIBPNG" = "yes" ; then | |
10888 | ALL_OBJECTS="${ALL_OBJECTS} \$(PNGOBJS)" | |
10889 | fi | |
3fed1840 RR |
10890 | if test "$wxUSE_FREETYPE" = "yes" ; then |
10891 | ALL_OBJECTS="${ALL_OBJECTS} \$(FREETYPEOBJS)" | |
10892 | fi | |
2224580a | 10893 | |
2224580a VZ |
10894 | RPM_FILES="src/\$(TOOLKITDIR)/rpmfiles.lst" |
10895 | RPM_SPEC="wx\$(TOOLKIT).spec" | |
10896 | ||
10897 | GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST" | |
10898 | DISTDIR="wx\$(TOOLKIT)" | |
10f2d63a | 10899 | else |
dad6c0ea VZ |
10900 | USE_GUI=0 |
10901 | ||
3a922bb4 | 10902 | TOOLKIT_DIR="base" |
f6bcfd97 | 10903 | |
3a922bb4 RL |
10904 | if test "$USE_WIN32" = 1 ; then |
10905 | ALL_OBJECTS="\${BASE_OBJS} \${BASE_MSW_OBJS}" | |
10906 | TOOLKIT_VPATH="\${top_srcdir}/src/msw" | |
0b2effe9 | 10907 | |
3a922bb4 | 10908 | TOOLKIT="MSW" |
f6bcfd97 | 10909 | else |
3a922bb4 RL |
10910 | ALL_OBJECTS="\${BASE_OBJS} \${BASE_UNIX_OBJS}" |
10911 | TOOLKIT_VPATH="\${top_srcdir}/src/unix" | |
f6bcfd97 BP |
10912 | fi |
10913 | ||
831b3152 | 10914 | PORT_FILES="\${top_srcdir}/src/files.lst" |
2224580a VZ |
10915 | RPM_FILES="src/rpmfiles.lst" |
10916 | RPM_SPEC="wxBase.spec" | |
10917 | ||
10918 | GUIDIST="BASE_DIST" | |
10919 | DISTDIR="wxBase" | |
10f2d63a VZ |
10920 | fi |
10921 | ||
3a922bb4 RL |
10922 | if test "x$REGEX_INCLUDE" != "x" ; then |
10923 | ALL_OBJECTS="${ALL_OBJECTS} \$(REGEXOBJS)" | |
10924 | fi | |
10925 | if test "$wxUSE_ZLIB" = "yes" ; then | |
10926 | ALL_OBJECTS="${ALL_OBJECTS} \$(ZLIBOBJS)" | |
10927 | fi | |
10f2d63a | 10928 | |
3a922bb4 RL |
10929 | if test "$wxUSE_OPENGL" = "yes"; then |
10930 | if test "$wxUSE_MAC" = 1; then | |
10931 | cat >> confdefs.h <<\EOF | |
10932 | #define wxUSE_OPENGL 1 | |
10933 | EOF | |
10f2d63a | 10934 | |
3a922bb4 RL |
10935 | cat >> confdefs.h <<\EOF |
10936 | #define wxUSE_GLCANVAS 1 | |
10937 | EOF | |
10f2d63a | 10938 | |
3a922bb4 RL |
10939 | OPENGL_LIBS="-framework OpenGL -framework AGL" |
10940 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl" | |
10941 | else | |
10942 | ac_safe=`echo "GL/gl.h" | sed 'y%./+-%__p_%'` | |
10943 | echo $ac_n "checking for GL/gl.h""... $ac_c" 1>&6 | |
b3e8d00a | 10944 | echo "configure:10945: checking for GL/gl.h" >&5 |
3a922bb4 RL |
10945 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
10946 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10947 | else | |
10948 | cat > conftest.$ac_ext <<EOF | |
b3e8d00a | 10949 | #line 10950 "configure" |
3a922bb4 RL |
10950 | #include "confdefs.h" |
10951 | #include <GL/gl.h> | |
10952 | EOF | |
10953 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
b3e8d00a | 10954 | { (eval echo configure:10955: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
3a922bb4 RL |
10955 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
10956 | if test -z "$ac_err"; then | |
10957 | rm -rf conftest* | |
10958 | eval "ac_cv_header_$ac_safe=yes" | |
10959 | else | |
10960 | echo "$ac_err" >&5 | |
10961 | echo "configure: failed program was:" >&5 | |
10962 | cat conftest.$ac_ext >&5 | |
10963 | rm -rf conftest* | |
10964 | eval "ac_cv_header_$ac_safe=no" | |
10965 | fi | |
10966 | rm -f conftest* | |
10967 | fi | |
10968 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
10969 | echo "$ac_t""yes" 1>&6 | |
10970 | ||
10971 | cat >> confdefs.h <<\EOF | |
10972 | #define wxUSE_OPENGL 1 | |
10973 | EOF | |
10f2d63a | 10974 | |
3a922bb4 RL |
10975 | cat >> confdefs.h <<\EOF |
10976 | #define wxUSE_GLCANVAS 1 | |
10977 | EOF | |
10f2d63a | 10978 | |
3a922bb4 RL |
10979 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl" |
10980 | echo $ac_n "checking for glFlush in -lGL""... $ac_c" 1>&6 | |
b3e8d00a | 10981 | echo "configure:10982: checking for glFlush in -lGL" >&5 |
3a922bb4 RL |
10982 | ac_lib_var=`echo GL'_'glFlush | sed 'y%./+-%__p_%'` |
10983 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
10984 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10985 | else | |
10986 | ac_save_LIBS="$LIBS" | |
10987 | LIBS="-lGL $LIBS" | |
10988 | cat > conftest.$ac_ext <<EOF | |
b3e8d00a | 10989 | #line 10990 "configure" |
3a922bb4 RL |
10990 | #include "confdefs.h" |
10991 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10992 | /* We use char because int might match the return type of a gcc2 | |
10993 | builtin and then its argument prototype would still apply. */ | |
10994 | char glFlush(); | |
55e80573 | 10995 | |
3a922bb4 RL |
10996 | int main() { |
10997 | glFlush() | |
10998 | ; return 0; } | |
10999 | EOF | |
b3e8d00a | 11000 | if { (eval echo configure:11001: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
3a922bb4 RL |
11001 | rm -rf conftest* |
11002 | eval "ac_cv_lib_$ac_lib_var=yes" | |
11003 | else | |
11004 | echo "configure: failed program was:" >&5 | |
11005 | cat conftest.$ac_ext >&5 | |
11006 | rm -rf conftest* | |
11007 | eval "ac_cv_lib_$ac_lib_var=no" | |
11008 | fi | |
11009 | rm -f conftest* | |
11010 | LIBS="$ac_save_LIBS" | |
55e80573 | 11011 | |
3a922bb4 RL |
11012 | fi |
11013 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
11014 | echo "$ac_t""yes" 1>&6 | |
11015 | ||
11016 | OPENGL_LIBS="-lGL -lGLU" | |
11017 | ||
11018 | else | |
11019 | echo "$ac_t""no" 1>&6 | |
11020 | ||
11021 | echo $ac_n "checking for glFlush in -lMesaGL""... $ac_c" 1>&6 | |
b3e8d00a | 11022 | echo "configure:11023: checking for glFlush in -lMesaGL" >&5 |
3a922bb4 RL |
11023 | ac_lib_var=`echo MesaGL'_'glFlush | sed 'y%./+-%__p_%'` |
11024 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
11025 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11026 | else | |
11027 | ac_save_LIBS="$LIBS" | |
11028 | LIBS="-lMesaGL $LIBS" | |
11029 | cat > conftest.$ac_ext <<EOF | |
b3e8d00a | 11030 | #line 11031 "configure" |
3a922bb4 RL |
11031 | #include "confdefs.h" |
11032 | /* Override any gcc2 internal prototype to avoid an error. */ | |
11033 | /* We use char because int might match the return type of a gcc2 | |
11034 | builtin and then its argument prototype would still apply. */ | |
11035 | char glFlush(); | |
11036 | ||
11037 | int main() { | |
11038 | glFlush() | |
11039 | ; return 0; } | |
11040 | EOF | |
b3e8d00a | 11041 | if { (eval echo configure:11042: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
3a922bb4 RL |
11042 | rm -rf conftest* |
11043 | eval "ac_cv_lib_$ac_lib_var=yes" | |
11044 | else | |
11045 | echo "configure: failed program was:" >&5 | |
11046 | cat conftest.$ac_ext >&5 | |
11047 | rm -rf conftest* | |
11048 | eval "ac_cv_lib_$ac_lib_var=no" | |
11049 | fi | |
11050 | rm -f conftest* | |
11051 | LIBS="$ac_save_LIBS" | |
11052 | ||
11053 | fi | |
11054 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
11055 | echo "$ac_t""yes" 1>&6 | |
11056 | ||
11057 | OPENGL_LIBS="-lMesaGL -lMesaGLU" | |
11058 | ||
11059 | else | |
11060 | echo "$ac_t""no" 1>&6 | |
11061 | fi | |
55e80573 | 11062 | |
3a922bb4 RL |
11063 | |
11064 | fi | |
11065 | ||
11066 | ||
11067 | else | |
11068 | echo "$ac_t""no" 1>&6 | |
11069 | wxUSE_OPENGL=0 | |
11070 | fi | |
11071 | ||
11072 | fi | |
11073 | fi | |
11074 | ||
11075 | if test -z "$TOOLKIT_VPATH" ; then | |
11076 | TOOLKIT_VPATH="\${top_srcdir}/src/${TOOLKIT_DIR}" | |
11077 | fi | |
11078 | ||
11079 | if test -n "$TOOLKIT" ; then | |
11080 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WX${TOOLKIT}__" | |
11081 | fi | |
11082 | ||
11083 | if test "$wxUSE_CYGWIN" = 1 ; then | |
11084 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WIN95__" | |
11085 | fi | |
11086 | ||
11087 | lib_debug_suffix= | |
11088 | if test "$wxUSE_DEBUG_FLAG" = "yes"; then | |
11089 | lib_debug_suffix=d | |
11090 | TOOLCHAIN_NAME="${TOOLCHAIN_NAME}d" | |
11091 | fi | |
11092 | ||
11093 | TOOLCHAIN_NAME="${TOOLKIT_DIR}${WIDGET_SET}${lib_debug_suffix}-${WX_RELEASE}" | |
11094 | TOOLCHAIN_NAME_GL="${TOOLKIT_DIR}${WIDGET_SET}${lib_debug_suffix}_gl-${WX_RELEASE}" | |
11095 | ||
11096 | if test "$cross_compiling" = "yes"; then | |
11097 | TOOLCHAIN_NAME="${TOOLCHAIN_NAME}-${host_alias}" | |
11098 | TOOLCHAIN_NAME_GL="${TOOLCHAIN_NAME_GL}-${host_alias}" | |
11099 | fi | |
11100 | ||
11101 | WX_LIBRARY="wx_${TOOLCHAIN_NAME}" | |
11102 | WX_LIBRARY_GL="wx_${TOOLCHAIN_NAME_GL}" | |
11103 | ||
11104 | WXCONFIG_LIBS="-l${WX_LIBRARY}" | |
11105 | ||
11106 | if test "$wxUSE_OPENGL" = "yes"; then | |
11107 | WXCONFIG_LIBS_GL="-l${WX_LIBRARY_GL} $OPENGL_LIBS" | |
11108 | fi | |
11109 | ||
11110 | WX_LIBRARY_NAME_STATIC="lib${WX_LIBRARY}.a" | |
11111 | WX_LIBRARY_NAME_STATIC_GL="lib${WX_LIBRARY_GL}.a" | |
11112 | ||
11113 | WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}" | |
11114 | WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}" | |
11115 | ||
11116 | WX_LIBRARY_LINK1="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}" | |
11117 | WX_LIBRARY_LINK2="lib${WX_LIBRARY}.${SO_SUFFIX}" | |
11118 | WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}" | |
11119 | WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}" | |
11120 | ||
11121 | WX_RESOURCES_DARWIN="lib${WX_LIBRARY}.rsrc" | |
11122 | ||
11123 | ||
11124 | ||
11125 | if test "$wxUSE_SHARED" = "yes"; then | |
55e80573 VZ |
11126 | |
11127 | if test "$wxUSE_OPENGL" = "yes"; then | |
11128 | WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL" | |
3a922bb4 | 11129 | WX_ALL="\$(build_libdir)/${WX_LIBRARY_LINK1} \$(build_libdir)/${WX_LIBRARY_LINK1_GL}" |
55e80573 VZ |
11130 | else |
11131 | WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS" | |
3a922bb4 | 11132 | WX_ALL="\$(build_libdir)/${WX_LIBRARY_LINK1}" |
55e80573 VZ |
11133 | fi |
11134 | ||
dd4f7467 | 11135 | if test "$GCC" = "yes"; then |
55e80573 | 11136 | PIC_FLAG="-fPIC" |
dd4f7467 | 11137 | fi |
55e80573 VZ |
11138 | |
11139 | SHARED_LD="${CXX} -shared -o" | |
698dcdb6 | 11140 | |
10f2d63a VZ |
11141 | case "${host}" in |
11142 | *-hp-hpux* ) | |
55e80573 | 11143 | if test "$GCC" != "yes"; then |
f6bcfd97 BP |
11144 | LDFLAGS="-L/usr/lib" |
11145 | ||
10f2d63a VZ |
11146 | SHARED_LD="${CXX} -b -o" |
11147 | PIC_FLAG="+Z" | |
11148 | fi | |
55e80573 | 11149 | |
10f2d63a | 11150 | ;; |
b12915c1 | 11151 | |
55e80573 VZ |
11152 | *-*-linux* ) |
11153 | if test "$GCC" != "yes"; then | |
11154 | echo $ac_n "checking for Intel compiler""... $ac_c" 1>&6 | |
b3e8d00a | 11155 | echo "configure:11156: checking for Intel compiler" >&5 |
55e80573 VZ |
11156 | if eval "test \"`echo '$''{'wx_cv_prog_icc'+set}'`\" = set"; then |
11157 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11158 | else | |
11159 | ||
11160 | cat > conftest.$ac_ext <<EOF | |
b3e8d00a | 11161 | #line 11162 "configure" |
55e80573 VZ |
11162 | #include "confdefs.h" |
11163 | ||
11164 | int main() { | |
11165 | ||
11166 | #ifndef __INTEL_COMPILER | |
dd4f7467 | 11167 | #error Not icc |
55e80573 VZ |
11168 | #endif |
11169 | ||
11170 | ; return 0; } | |
11171 | EOF | |
b3e8d00a | 11172 | if { (eval echo configure:11173: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
55e80573 VZ |
11173 | rm -rf conftest* |
11174 | wx_cv_prog_icc=yes | |
11175 | else | |
11176 | echo "configure: failed program was:" >&5 | |
11177 | cat conftest.$ac_ext >&5 | |
11178 | rm -rf conftest* | |
11179 | wx_cv_prog_icc=no | |
11180 | ||
11181 | fi | |
11182 | rm -f conftest* | |
11183 | ||
11184 | fi | |
11185 | ||
11186 | echo "$ac_t""$wx_cv_prog_icc" 1>&6 | |
55e80573 VZ |
11187 | if test "$wx_cv_prog_icc" = "yes"; then |
11188 | PIC_FLAG="-KPIC" | |
11189 | fi | |
11190 | fi | |
11191 | ||
3a922bb4 RL |
11192 | if test "$wxUSE_SONAME" = "yes" ; then |
11193 | SONAME_FLAGS="-Wl,-soname,${WX_LIBRARY_LINK1}" | |
11194 | SONAME_FLAGS_GL="-Wl,-soname,${WX_LIBRARY_LINK1_GL}" | |
f6bcfd97 | 11195 | WX_TARGET_LIBRARY_SONAME="-Wl,-soname,\$(TARGETLIB_LINK1)" |
00cf1208 | 11196 | fi |
10f2d63a | 11197 | ;; |
55e80573 | 11198 | |
10f2d63a VZ |
11199 | *-*-solaris2* ) |
11200 | if test "$GCC" = yes ; then | |
f6bcfd97 | 11201 | CPPFLAGS="$CPPFLAGS -isystem /usr/openwin/include" |
10f2d63a VZ |
11202 | else |
11203 | SHARED_LD="${CXX} -G -o" | |
11204 | PIC_FLAG="-KPIC" | |
11205 | fi | |
10f2d63a | 11206 | ;; |
55e80573 | 11207 | |
b4085ce6 | 11208 | *-*-darwin* ) |
3a922bb4 | 11209 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__UNIX__ -D__DARWIN__ -D__POWERPC__" |
a3cb1afc | 11210 | CPPFLAGS="${CPPFLAGS} -fno-common" |
ea5999b9 GD |
11211 | SHARED_LD="${CXX} -dynamiclib -o" |
11212 | PIC_FLAG="-dynamic -fPIC" | |
55e80573 | 11213 | |
a3cb1afc | 11214 | if test "$wxUSE_MAC" = 1 ; then |
3a922bb4 RL |
11215 | WX_ALL="${WX_ALL} lib${WX_LIBRARY}.r" |
11216 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -DTARGET_CARBON" | |
11217 | CPPFLAGS="${CPPFLAGS} -fpascal-strings" | |
11218 | CXXFLAGS="${CXXFLAGS} -cpp-precomp" | |
11219 | # Extract the first word of "Rez", so it can be a program name with args. | |
11220 | set dummy Rez; ac_word=$2 | |
11221 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
b3e8d00a | 11222 | echo "configure:11223: checking for $ac_word" >&5 |
3a922bb4 RL |
11223 | if eval "test \"`echo '$''{'ac_cv_prog_RESCOMP'+set}'`\" = set"; then |
11224 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11225 | else | |
11226 | if test -n "$RESCOMP"; then | |
11227 | ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test. | |
11228 | else | |
11229 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
11230 | ac_dummy="$PATH" | |
11231 | for ac_dir in $ac_dummy; do | |
11232 | test -z "$ac_dir" && ac_dir=. | |
11233 | if test -f $ac_dir/$ac_word; then | |
11234 | ac_cv_prog_RESCOMP="Rez" | |
11235 | break | |
11236 | fi | |
11237 | done | |
11238 | IFS="$ac_save_ifs" | |
11239 | test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez" | |
11240 | fi | |
11241 | fi | |
11242 | RESCOMP="$ac_cv_prog_RESCOMP" | |
11243 | if test -n "$RESCOMP"; then | |
11244 | echo "$ac_t""$RESCOMP" 1>&6 | |
11245 | else | |
11246 | echo "$ac_t""no" 1>&6 | |
11247 | fi | |
11248 | ||
11249 | # Extract the first word of "Derez", so it can be a program name with args. | |
11250 | set dummy Derez; ac_word=$2 | |
11251 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
b3e8d00a | 11252 | echo "configure:11253: checking for $ac_word" >&5 |
3a922bb4 RL |
11253 | if eval "test \"`echo '$''{'ac_cv_prog_DEREZ'+set}'`\" = set"; then |
11254 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11255 | else | |
11256 | if test -n "$DEREZ"; then | |
11257 | ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test. | |
11258 | else | |
11259 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
11260 | ac_dummy="$PATH" | |
11261 | for ac_dir in $ac_dummy; do | |
11262 | test -z "$ac_dir" && ac_dir=. | |
11263 | if test -f $ac_dir/$ac_word; then | |
11264 | ac_cv_prog_DEREZ="Derez" | |
11265 | break | |
11266 | fi | |
11267 | done | |
11268 | IFS="$ac_save_ifs" | |
11269 | test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/Derez" | |
11270 | fi | |
11271 | fi | |
11272 | DEREZ="$ac_cv_prog_DEREZ" | |
11273 | if test -n "$DEREZ"; then | |
11274 | echo "$ac_t""$DEREZ" 1>&6 | |
11275 | else | |
11276 | echo "$ac_t""no" 1>&6 | |
11277 | fi | |
11278 | ||
11279 | LIBWXMACRES="\$(top_builddir)/lib/lib${WX_LIBRARY}.r" | |
11280 | LIBWXMACRESCOMP="\$(RESCOMP) Carbon.r -t APPL ${LIBWXMACRES} -o \$(BIN_PROGRAM)" | |
a3cb1afc | 11281 | fi |
10f2d63a | 11282 | ;; |
55e80573 | 11283 | |
10f2d63a VZ |
11284 | *-*-aix* ) |
11285 | SHARED_LD="/usr/lpp/xlC/bin/makeC++SharedLib -p 0 -o" | |
10f2d63a | 11286 | ;; |
55e80573 | 11287 | |
1c8183e2 | 11288 | *-*-cygwin* ) |
3a922bb4 RL |
11289 | echo "configure: warning: Shared libs unsupported for $host_alias -- forcing static build." 1>&2 |
11290 | wxUSE_SHARED=no | |
10f2d63a | 11291 | ;; |
55e80573 | 11292 | |
b12915c1 | 11293 | *-*-mingw32* ) |
3a922bb4 RL |
11294 | SHARED_LD="${CXX} -shared -Wl,--out-implib,lib/${WX_LIBRARY_NAME_STATIC} -o" |
11295 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -DWXUSINGDLL=1" | |
18dbb1f6 VZ |
11296 | WXMSW_DLL_DEFINES="-UWXUSINGDLL -DWXMAKINGDLL=1 -D_DLL=1 -D_WINDLL=1" |
11297 | WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_SHARED}" | |
11298 | WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_SHARED_GL}" | |
f6bcfd97 BP |
11299 | if test "$wxUSE_OPENGL" = "yes"; then |
11300 | WX_ALL_INSTALLED="preinstall_gl" | |
3a922bb4 | 11301 | WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED} \$(build_libdir)/${WX_LIBRARY_NAME_SHARED_GL}" |
f6bcfd97 | 11302 | else |
3a922bb4 | 11303 | WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED}" |
f6bcfd97 | 11304 | fi |
10f2d63a | 11305 | ;; |
55e80573 | 11306 | |
10f2d63a | 11307 | *-pc-os2_emx ) |
e07802fc | 11308 | WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}" |
3a922bb4 | 11309 | WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC}" |
10f2d63a | 11310 | ;; |
55e80573 | 11311 | |
b12915c1 | 11312 | *-*-beos* ) |
e2b8b066 | 11313 | SHARED_LD="${LD} -shared -o" |
b12915c1 | 11314 | ;; |
55e80573 VZ |
11315 | |
11316 | *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | \ | |
11317 | *-*-sunos4* | \ | |
11318 | *-*-irix5* | *-*-irix6* | \ | |
11319 | *-*-osf* | \ | |
11320 | *-*-dgux5* | \ | |
11321 | *-*-sysv5* ) | |
11322 | ;; | |
11323 | ||
10f2d63a | 11324 | *) |
698dcdb6 | 11325 | { echo "configure: error: unknown system type ${host}." 1>&2; exit 1; } |
10f2d63a VZ |
11326 | esac |
11327 | ||
11328 | if test "x$WX_TARGET_LIBRARY" = "x"; then | |
11329 | WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_SHARED}" | |
bdad4e7e | 11330 | WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_SHARED_GL}" |
10f2d63a | 11331 | fi |
55e80573 | 11332 | |
3711412e | 11333 | WX_TARGET_LIBRARY_TYPE="so" |
3a922bb4 | 11334 | fi |
f6bcfd97 | 11335 | |
3a922bb4 | 11336 | if test "$wxUSE_SHARED" = "no"; then |
f6bcfd97 | 11337 | |
3a922bb4 | 11338 | if test "$wxUSE_GUI" = "no" -o "$USE_WIN32" = 1 ; then |
f6bcfd97 BP |
11339 | WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall" |
11340 | fi | |
11341 | ||
3a922bb4 RL |
11342 | if test "$wxUSE_OPENGL" = "yes"; then |
11343 | WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall_gl" | |
11344 | WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC} \$(build_libdir)/${WX_LIBRARY_NAME_STATIC_GL}" | |
11345 | else | |
11346 | WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC}" | |
11347 | fi | |
698dcdb6 | 11348 | |
3a922bb4 RL |
11349 | WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}" |
11350 | WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_STATIC_GL}" | |
11351 | ||
11352 | WX_TARGET_LIBRARY_TYPE="a" | |
10f2d63a | 11353 | fi |
10f2d63a | 11354 | |
3a922bb4 RL |
11355 | |
11356 | for ac_hdr in strings.h | |
9cfadba2 | 11357 | do |
698dcdb6 VZ |
11358 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
11359 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
b3e8d00a | 11360 | echo "configure:11361: checking for $ac_hdr" >&5 |
698dcdb6 VZ |
11361 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
11362 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11363 | else | |
11364 | cat > conftest.$ac_ext <<EOF | |
b3e8d00a | 11365 | #line 11366 "configure" |
9cfadba2 | 11366 | #include "confdefs.h" |
698dcdb6 VZ |
11367 | #include <$ac_hdr> |
11368 | EOF | |
11369 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
b3e8d00a | 11370 | { (eval echo configure:11371: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
11371 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
11372 | if test -z "$ac_err"; then | |
11373 | rm -rf conftest* | |
11374 | eval "ac_cv_header_$ac_safe=yes" | |
6232543b | 11375 | else |
698dcdb6 VZ |
11376 | echo "$ac_err" >&5 |
11377 | echo "configure: failed program was:" >&5 | |
9cfadba2 | 11378 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
11379 | rm -rf conftest* |
11380 | eval "ac_cv_header_$ac_safe=no" | |
9cfadba2 | 11381 | fi |
698dcdb6 | 11382 | rm -f conftest* |
9cfadba2 | 11383 | fi |
698dcdb6 VZ |
11384 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
11385 | echo "$ac_t""yes" 1>&6 | |
11386 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
11387 | cat >> confdefs.h <<EOF | |
11388 | #define $ac_tr_hdr 1 | |
9cfadba2 | 11389 | EOF |
698dcdb6 VZ |
11390 | |
11391 | else | |
11392 | echo "$ac_t""no" 1>&6 | |
9cfadba2 VZ |
11393 | fi |
11394 | done | |
10f2d63a | 11395 | |
3a922bb4 | 11396 | for ac_hdr in stdlib.h |
10f2d63a | 11397 | do |
698dcdb6 VZ |
11398 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
11399 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
b3e8d00a | 11400 | echo "configure:11401: checking for $ac_hdr" >&5 |
698dcdb6 VZ |
11401 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
11402 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11403 | else | |
11404 | cat > conftest.$ac_ext <<EOF | |
b3e8d00a | 11405 | #line 11406 "configure" |
10f2d63a | 11406 | #include "confdefs.h" |
698dcdb6 VZ |
11407 | #include <$ac_hdr> |
11408 | EOF | |
11409 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
b3e8d00a | 11410 | { (eval echo configure:11411: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
11411 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
11412 | if test -z "$ac_err"; then | |
11413 | rm -rf conftest* | |
11414 | eval "ac_cv_header_$ac_safe=yes" | |
6232543b | 11415 | else |
698dcdb6 VZ |
11416 | echo "$ac_err" >&5 |
11417 | echo "configure: failed program was:" >&5 | |
10f2d63a | 11418 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
11419 | rm -rf conftest* |
11420 | eval "ac_cv_header_$ac_safe=no" | |
10f2d63a | 11421 | fi |
698dcdb6 | 11422 | rm -f conftest* |
10f2d63a | 11423 | fi |
698dcdb6 VZ |
11424 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
11425 | echo "$ac_t""yes" 1>&6 | |
11426 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
11427 | cat >> confdefs.h <<EOF | |
11428 | #define $ac_tr_hdr 1 | |
10f2d63a | 11429 | EOF |
698dcdb6 VZ |
11430 | |
11431 | else | |
11432 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
11433 | fi |
11434 | done | |
11435 | ||
3a922bb4 | 11436 | for ac_hdr in unistd.h |
10f2d63a | 11437 | do |
698dcdb6 VZ |
11438 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
11439 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
b3e8d00a | 11440 | echo "configure:11441: checking for $ac_hdr" >&5 |
698dcdb6 VZ |
11441 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
11442 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11443 | else | |
11444 | cat > conftest.$ac_ext <<EOF | |
b3e8d00a | 11445 | #line 11446 "configure" |
10f2d63a | 11446 | #include "confdefs.h" |
698dcdb6 VZ |
11447 | #include <$ac_hdr> |
11448 | EOF | |
11449 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
b3e8d00a | 11450 | { (eval echo configure:11451: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
11451 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
11452 | if test -z "$ac_err"; then | |
11453 | rm -rf conftest* | |
11454 | eval "ac_cv_header_$ac_safe=yes" | |
6f72b082 | 11455 | else |
698dcdb6 VZ |
11456 | echo "$ac_err" >&5 |
11457 | echo "configure: failed program was:" >&5 | |
6f72b082 | 11458 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
11459 | rm -rf conftest* |
11460 | eval "ac_cv_header_$ac_safe=no" | |
6f72b082 | 11461 | fi |
698dcdb6 | 11462 | rm -f conftest* |
6f72b082 | 11463 | fi |
698dcdb6 VZ |
11464 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
11465 | echo "$ac_t""yes" 1>&6 | |
11466 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
11467 | cat >> confdefs.h <<EOF | |
11468 | #define $ac_tr_hdr 1 | |
6f72b082 | 11469 | EOF |
698dcdb6 VZ |
11470 | |
11471 | else | |
11472 | echo "$ac_t""no" 1>&6 | |
6f72b082 OK |
11473 | fi |
11474 | done | |
11475 | ||
3a922bb4 | 11476 | for ac_hdr in wchar.h |
6f72b082 | 11477 | do |
698dcdb6 VZ |
11478 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
11479 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
b3e8d00a | 11480 | echo "configure:11481: checking for $ac_hdr" >&5 |
698dcdb6 VZ |
11481 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
11482 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11483 | else | |
11484 | cat > conftest.$ac_ext <<EOF | |
b3e8d00a | 11485 | #line 11486 "configure" |
6f72b082 | 11486 | #include "confdefs.h" |
698dcdb6 VZ |
11487 | #include <$ac_hdr> |
11488 | EOF | |
11489 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
b3e8d00a | 11490 | { (eval echo configure:11491: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
11491 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
11492 | if test -z "$ac_err"; then | |
11493 | rm -rf conftest* | |
11494 | eval "ac_cv_header_$ac_safe=yes" | |
6f72b082 | 11495 | else |
698dcdb6 VZ |
11496 | echo "$ac_err" >&5 |
11497 | echo "configure: failed program was:" >&5 | |
6f72b082 | 11498 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
11499 | rm -rf conftest* |
11500 | eval "ac_cv_header_$ac_safe=no" | |
6f72b082 | 11501 | fi |
698dcdb6 | 11502 | rm -f conftest* |
6f72b082 | 11503 | fi |
698dcdb6 VZ |
11504 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
11505 | echo "$ac_t""yes" 1>&6 | |
11506 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
11507 | cat >> confdefs.h <<EOF | |
11508 | #define $ac_tr_hdr 1 | |
6f72b082 | 11509 | EOF |
698dcdb6 VZ |
11510 | |
11511 | else | |
11512 | echo "$ac_t""no" 1>&6 | |
6f72b082 OK |
11513 | fi |
11514 | done | |
11515 | ||
3a922bb4 | 11516 | for ac_hdr in wcstr.h |
6f72b082 | 11517 | do |
698dcdb6 VZ |
11518 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
11519 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
b3e8d00a | 11520 | echo "configure:11521: checking for $ac_hdr" >&5 |
698dcdb6 VZ |
11521 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
11522 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11523 | else | |
11524 | cat > conftest.$ac_ext <<EOF | |
b3e8d00a | 11525 | #line 11526 "configure" |
6f72b082 | 11526 | #include "confdefs.h" |
698dcdb6 VZ |
11527 | #include <$ac_hdr> |
11528 | EOF | |
11529 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
b3e8d00a | 11530 | { (eval echo configure:11531: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
11531 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
11532 | if test -z "$ac_err"; then | |
11533 | rm -rf conftest* | |
11534 | eval "ac_cv_header_$ac_safe=yes" | |
10f2d63a | 11535 | else |
698dcdb6 VZ |
11536 | echo "$ac_err" >&5 |
11537 | echo "configure: failed program was:" >&5 | |
10f2d63a | 11538 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
11539 | rm -rf conftest* |
11540 | eval "ac_cv_header_$ac_safe=no" | |
10f2d63a | 11541 | fi |
698dcdb6 | 11542 | rm -f conftest* |
10f2d63a | 11543 | fi |
698dcdb6 VZ |
11544 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
11545 | echo "$ac_t""yes" 1>&6 | |
11546 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
11547 | cat >> confdefs.h <<EOF | |
11548 | #define $ac_tr_hdr 1 | |
10f2d63a | 11549 | EOF |
698dcdb6 VZ |
11550 | |
11551 | else | |
11552 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
11553 | fi |
11554 | done | |
11555 | ||
3a922bb4 | 11556 | for ac_hdr in fnmatch.h |
0fb0dd83 | 11557 | do |
698dcdb6 VZ |
11558 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
11559 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
b3e8d00a | 11560 | echo "configure:11561: checking for $ac_hdr" >&5 |
698dcdb6 VZ |
11561 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
11562 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11563 | else | |
11564 | cat > conftest.$ac_ext <<EOF | |
b3e8d00a | 11565 | #line 11566 "configure" |
0fb0dd83 | 11566 | #include "confdefs.h" |
698dcdb6 VZ |
11567 | #include <$ac_hdr> |
11568 | EOF | |
11569 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
b3e8d00a | 11570 | { (eval echo configure:11571: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
11571 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
11572 | if test -z "$ac_err"; then | |
11573 | rm -rf conftest* | |
11574 | eval "ac_cv_header_$ac_safe=yes" | |
0fb0dd83 | 11575 | else |
698dcdb6 VZ |
11576 | echo "$ac_err" >&5 |
11577 | echo "configure: failed program was:" >&5 | |
0fb0dd83 | 11578 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
11579 | rm -rf conftest* |
11580 | eval "ac_cv_header_$ac_safe=no" | |
0fb0dd83 | 11581 | fi |
698dcdb6 | 11582 | rm -f conftest* |
0fb0dd83 | 11583 | fi |
698dcdb6 VZ |
11584 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
11585 | echo "$ac_t""yes" 1>&6 | |
11586 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
11587 | cat >> confdefs.h <<EOF | |
11588 | #define $ac_tr_hdr 1 | |
0fb0dd83 | 11589 | EOF |
698dcdb6 VZ |
11590 | |
11591 | else | |
11592 | echo "$ac_t""no" 1>&6 | |
0fb0dd83 RR |
11593 | fi |
11594 | done | |
11595 | ||
3a922bb4 | 11596 | for ac_hdr in iconv.h |
1f8ae82f | 11597 | do |
698dcdb6 VZ |
11598 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
11599 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
b3e8d00a | 11600 | echo "configure:11601: checking for $ac_hdr" >&5 |
698dcdb6 VZ |
11601 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
11602 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11603 | else | |
11604 | cat > conftest.$ac_ext <<EOF | |
b3e8d00a | 11605 | #line 11606 "configure" |
1f8ae82f | 11606 | #include "confdefs.h" |
698dcdb6 VZ |
11607 | #include <$ac_hdr> |
11608 | EOF | |
11609 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
b3e8d00a | 11610 | { (eval echo configure:11611: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
11611 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
11612 | if test -z "$ac_err"; then | |
11613 | rm -rf conftest* | |
11614 | eval "ac_cv_header_$ac_safe=yes" | |
1f8ae82f | 11615 | else |
698dcdb6 VZ |
11616 | echo "$ac_err" >&5 |
11617 | echo "configure: failed program was:" >&5 | |
1f8ae82f | 11618 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
11619 | rm -rf conftest* |
11620 | eval "ac_cv_header_$ac_safe=no" | |
1f8ae82f | 11621 | fi |
698dcdb6 | 11622 | rm -f conftest* |
1f8ae82f | 11623 | fi |
698dcdb6 VZ |
11624 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
11625 | echo "$ac_t""yes" 1>&6 | |
11626 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
11627 | cat >> confdefs.h <<EOF | |
11628 | #define $ac_tr_hdr 1 | |
1f8ae82f | 11629 | EOF |
698dcdb6 VZ |
11630 | |
11631 | else | |
11632 | echo "$ac_t""no" 1>&6 | |
1f8ae82f GD |
11633 | fi |
11634 | done | |
11635 | ||
3a922bb4 | 11636 | for ac_hdr in langinfo.h |
10f2d63a | 11637 | do |
698dcdb6 VZ |
11638 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
11639 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
b3e8d00a | 11640 | echo "configure:11641: checking for $ac_hdr" >&5 |
698dcdb6 VZ |
11641 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
11642 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11643 | else | |
11644 | cat > conftest.$ac_ext <<EOF | |
b3e8d00a | 11645 | #line 11646 "configure" |
10f2d63a | 11646 | #include "confdefs.h" |
698dcdb6 VZ |
11647 | #include <$ac_hdr> |
11648 | EOF | |
11649 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
b3e8d00a | 11650 | { (eval echo configure:11651: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
11651 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
11652 | if test -z "$ac_err"; then | |
11653 | rm -rf conftest* | |
11654 | eval "ac_cv_header_$ac_safe=yes" | |
10f2d63a | 11655 | else |
698dcdb6 VZ |
11656 | echo "$ac_err" >&5 |
11657 | echo "configure: failed program was:" >&5 | |
10f2d63a | 11658 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
11659 | rm -rf conftest* |
11660 | eval "ac_cv_header_$ac_safe=no" | |
10f2d63a | 11661 | fi |
698dcdb6 | 11662 | rm -f conftest* |
10f2d63a | 11663 | fi |
698dcdb6 VZ |
11664 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
11665 | echo "$ac_t""yes" 1>&6 | |
11666 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
11667 | cat >> confdefs.h <<EOF | |
11668 | #define $ac_tr_hdr 1 | |
10f2d63a | 11669 | EOF |
698dcdb6 VZ |
11670 | |
11671 | else | |
11672 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
11673 | fi |
11674 | done | |
11675 | ||
10f2d63a | 11676 | |
3a922bb4 RL |
11677 | if test "$wxUSE_GUI" = "yes"; then |
11678 | if test "$wxUSE_UNIX" = "yes"; then | |
11679 | for ac_hdr in X11/XKBlib.h | |
29fd3c0c VS |
11680 | do |
11681 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
11682 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
b3e8d00a | 11683 | echo "configure:11684: checking for $ac_hdr" >&5 |
29fd3c0c VS |
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 | |
b3e8d00a | 11688 | #line 11689 "configure" |
29fd3c0c VS |
11689 | #include "confdefs.h" |
11690 | #include <$ac_hdr> | |
11691 | EOF | |
11692 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
b3e8d00a | 11693 | { (eval echo configure:11694: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
29fd3c0c VS |
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" | |
11698 | else | |
11699 | echo "$ac_err" >&5 | |
11700 | echo "configure: failed program was:" >&5 | |
11701 | cat conftest.$ac_ext >&5 | |
11702 | rm -rf conftest* | |
11703 | eval "ac_cv_header_$ac_safe=no" | |
11704 | fi | |
11705 | rm -f conftest* | |
11706 | fi | |
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 | |
11712 | EOF | |
11713 | ||
11714 | else | |
11715 | echo "$ac_t""no" 1>&6 | |
11716 | fi | |
11717 | done | |
11718 | ||
3a922bb4 | 11719 | fi |
29fd3c0c VS |
11720 | fi |
11721 | ||
698dcdb6 VZ |
11722 | |
11723 | echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6 | |
b3e8d00a | 11724 | echo "configure:11725: checking for ANSI C header files" >&5 |
698dcdb6 VZ |
11725 | if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then |
11726 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 11727 | else |
698dcdb6 | 11728 | cat > conftest.$ac_ext <<EOF |
b3e8d00a | 11729 | #line 11730 "configure" |
10f2d63a VZ |
11730 | #include "confdefs.h" |
11731 | #include <stdlib.h> | |
11732 | #include <stdarg.h> | |
11733 | #include <string.h> | |
11734 | #include <float.h> | |
698dcdb6 VZ |
11735 | EOF |
11736 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
b3e8d00a | 11737 | { (eval echo configure:11738: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
11738 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
11739 | if test -z "$ac_err"; then | |
11740 | rm -rf conftest* | |
10f2d63a VZ |
11741 | ac_cv_header_stdc=yes |
11742 | else | |
698dcdb6 VZ |
11743 | echo "$ac_err" >&5 |
11744 | echo "configure: failed program was:" >&5 | |
10f2d63a | 11745 | cat conftest.$ac_ext >&5 |
698dcdb6 | 11746 | rm -rf conftest* |
10f2d63a VZ |
11747 | ac_cv_header_stdc=no |
11748 | fi | |
698dcdb6 | 11749 | rm -f conftest* |
10f2d63a VZ |
11750 | |
11751 | if test $ac_cv_header_stdc = yes; then | |
11752 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
698dcdb6 | 11753 | cat > conftest.$ac_ext <<EOF |
b3e8d00a | 11754 | #line 11755 "configure" |
10f2d63a VZ |
11755 | #include "confdefs.h" |
11756 | #include <string.h> | |
698dcdb6 | 11757 | EOF |
10f2d63a VZ |
11758 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
11759 | egrep "memchr" >/dev/null 2>&1; then | |
11760 | : | |
11761 | else | |
698dcdb6 | 11762 | rm -rf conftest* |
10f2d63a VZ |
11763 | ac_cv_header_stdc=no |
11764 | fi | |
11765 | rm -f conftest* | |
11766 | ||
11767 | fi | |
11768 | ||
11769 | if test $ac_cv_header_stdc = yes; then | |
11770 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
698dcdb6 | 11771 | cat > conftest.$ac_ext <<EOF |
b3e8d00a | 11772 | #line 11773 "configure" |
10f2d63a VZ |
11773 | #include "confdefs.h" |
11774 | #include <stdlib.h> | |
698dcdb6 | 11775 | EOF |
10f2d63a VZ |
11776 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
11777 | egrep "free" >/dev/null 2>&1; then | |
11778 | : | |
11779 | else | |
698dcdb6 | 11780 | rm -rf conftest* |
10f2d63a VZ |
11781 | ac_cv_header_stdc=no |
11782 | fi | |
11783 | rm -f conftest* | |
11784 | ||
11785 | fi | |
11786 | ||
11787 | if test $ac_cv_header_stdc = yes; then | |
11788 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
698dcdb6 | 11789 | if test "$cross_compiling" = yes; then |
10f2d63a VZ |
11790 | : |
11791 | else | |
698dcdb6 | 11792 | cat > conftest.$ac_ext <<EOF |
b3e8d00a | 11793 | #line 11794 "configure" |
10f2d63a VZ |
11794 | #include "confdefs.h" |
11795 | #include <ctype.h> | |
698dcdb6 VZ |
11796 | #define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
11797 | #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
1e487827 | 11798 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
698dcdb6 VZ |
11799 | int main () { int i; for (i = 0; i < 256; i++) |
11800 | if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2); | |
11801 | exit (0); } | |
11802 | ||
11803 | EOF | |
b3e8d00a | 11804 | if { (eval echo configure:11805: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
698dcdb6 | 11805 | then |
10f2d63a VZ |
11806 | : |
11807 | else | |
698dcdb6 VZ |
11808 | echo "configure: failed program was:" >&5 |
11809 | cat conftest.$ac_ext >&5 | |
11810 | rm -fr conftest* | |
11811 | ac_cv_header_stdc=no | |
10f2d63a | 11812 | fi |
698dcdb6 | 11813 | rm -fr conftest* |
10f2d63a | 11814 | fi |
698dcdb6 | 11815 | |
10f2d63a VZ |
11816 | fi |
11817 | fi | |
1e487827 | 11818 | |
698dcdb6 VZ |
11819 | echo "$ac_t""$ac_cv_header_stdc" 1>&6 |
11820 | if test $ac_cv_header_stdc = yes; then | |
11821 | cat >> confdefs.h <<\EOF | |
10f2d63a VZ |
11822 | #define STDC_HEADERS 1 |
11823 | EOF | |
11824 | ||
11825 | fi | |
11826 | ||
698dcdb6 | 11827 | echo $ac_n "checking for mode_t""... $ac_c" 1>&6 |
b3e8d00a | 11828 | echo "configure:11829: checking for mode_t" >&5 |
698dcdb6 VZ |
11829 | if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then |
11830 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1e487827 | 11831 | else |
698dcdb6 | 11832 | cat > conftest.$ac_ext <<EOF |
b3e8d00a | 11833 | #line 11834 "configure" |
1e487827 | 11834 | #include "confdefs.h" |
698dcdb6 VZ |
11835 | #include <sys/types.h> |
11836 | #if STDC_HEADERS | |
11837 | #include <stdlib.h> | |
11838 | #include <stddef.h> | |
11839 | #endif | |
11840 | EOF | |
11841 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
11842 | egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then | |
11843 | rm -rf conftest* | |
10f2d63a VZ |
11844 | ac_cv_type_mode_t=yes |
11845 | else | |
698dcdb6 VZ |
11846 | rm -rf conftest* |
11847 | ac_cv_type_mode_t=no | |
703e0a69 | 11848 | fi |
698dcdb6 | 11849 | rm -f conftest* |
1e487827 | 11850 | |
698dcdb6 VZ |
11851 | fi |
11852 | echo "$ac_t""$ac_cv_type_mode_t" 1>&6 | |
11853 | if test $ac_cv_type_mode_t = no; then | |
11854 | cat >> confdefs.h <<\EOF | |
10f2d63a VZ |
11855 | #define mode_t int |
11856 | EOF | |
11857 | ||
11858 | fi | |
11859 | ||
698dcdb6 | 11860 | echo $ac_n "checking for off_t""... $ac_c" 1>&6 |
b3e8d00a | 11861 | echo "configure:11862: checking for off_t" >&5 |
698dcdb6 VZ |
11862 | if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then |
11863 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 11864 | else |
698dcdb6 | 11865 | cat > conftest.$ac_ext <<EOF |
b3e8d00a | 11866 | #line 11867 "configure" |
10f2d63a | 11867 | #include "confdefs.h" |
698dcdb6 VZ |
11868 | #include <sys/types.h> |
11869 | #if STDC_HEADERS | |
11870 | #include <stdlib.h> | |
11871 | #include <stddef.h> | |
11872 | #endif | |
11873 | EOF | |
11874 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
11875 | egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then | |
11876 | rm -rf conftest* | |
10f2d63a VZ |
11877 | ac_cv_type_off_t=yes |
11878 | else | |
698dcdb6 VZ |
11879 | rm -rf conftest* |
11880 | ac_cv_type_off_t=no | |
703e0a69 | 11881 | fi |
698dcdb6 | 11882 | rm -f conftest* |
1e487827 | 11883 | |
698dcdb6 VZ |
11884 | fi |
11885 | echo "$ac_t""$ac_cv_type_off_t" 1>&6 | |
11886 | if test $ac_cv_type_off_t = no; then | |
11887 | cat >> confdefs.h <<\EOF | |
10f2d63a VZ |
11888 | #define off_t long |
11889 | EOF | |
11890 | ||
11891 | fi | |
11892 | ||
698dcdb6 | 11893 | echo $ac_n "checking for pid_t""... $ac_c" 1>&6 |
b3e8d00a | 11894 | echo "configure:11895: checking for pid_t" >&5 |
698dcdb6 VZ |
11895 | if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then |
11896 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 11897 | else |
698dcdb6 | 11898 | cat > conftest.$ac_ext <<EOF |
b3e8d00a | 11899 | #line 11900 "configure" |
10f2d63a | 11900 | #include "confdefs.h" |
698dcdb6 VZ |
11901 | #include <sys/types.h> |
11902 | #if STDC_HEADERS | |
11903 | #include <stdlib.h> | |
11904 | #include <stddef.h> | |
11905 | #endif | |
11906 | EOF | |
11907 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
11908 | egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then | |
11909 | rm -rf conftest* | |
10f2d63a VZ |
11910 | ac_cv_type_pid_t=yes |
11911 | else | |
698dcdb6 VZ |
11912 | rm -rf conftest* |
11913 | ac_cv_type_pid_t=no | |
703e0a69 | 11914 | fi |
698dcdb6 | 11915 | rm -f conftest* |
1e487827 | 11916 | |
698dcdb6 VZ |
11917 | fi |
11918 | echo "$ac_t""$ac_cv_type_pid_t" 1>&6 | |
11919 | if test $ac_cv_type_pid_t = no; then | |
11920 | cat >> confdefs.h <<\EOF | |
10f2d63a VZ |
11921 | #define pid_t int |
11922 | EOF | |
11923 | ||
11924 | fi | |
11925 | ||
698dcdb6 | 11926 | echo $ac_n "checking for size_t""... $ac_c" 1>&6 |
b3e8d00a | 11927 | echo "configure:11928: checking for size_t" >&5 |
698dcdb6 VZ |
11928 | if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then |
11929 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 11930 | else |
698dcdb6 | 11931 | cat > conftest.$ac_ext <<EOF |
b3e8d00a | 11932 | #line 11933 "configure" |
10f2d63a | 11933 | #include "confdefs.h" |
698dcdb6 VZ |
11934 | #include <sys/types.h> |
11935 | #if STDC_HEADERS | |
11936 | #include <stdlib.h> | |
11937 | #include <stddef.h> | |
11938 | #endif | |
11939 | EOF | |
11940 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
11941 | egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then | |
11942 | rm -rf conftest* | |
10f2d63a VZ |
11943 | ac_cv_type_size_t=yes |
11944 | else | |
698dcdb6 VZ |
11945 | rm -rf conftest* |
11946 | ac_cv_type_size_t=no | |
703e0a69 | 11947 | fi |
698dcdb6 | 11948 | rm -f conftest* |
1e487827 | 11949 | |
698dcdb6 VZ |
11950 | fi |
11951 | echo "$ac_t""$ac_cv_type_size_t" 1>&6 | |
11952 | if test $ac_cv_type_size_t = no; then | |
11953 | cat >> confdefs.h <<\EOF | |
10f2d63a VZ |
11954 | #define size_t unsigned |
11955 | EOF | |
11956 | ||
11957 | fi | |
11958 | ||
698dcdb6 | 11959 | echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6 |
b3e8d00a | 11960 | echo "configure:11961: checking for uid_t in sys/types.h" >&5 |
698dcdb6 VZ |
11961 | if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then |
11962 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 11963 | else |
698dcdb6 | 11964 | cat > conftest.$ac_ext <<EOF |
b3e8d00a | 11965 | #line 11966 "configure" |
10f2d63a VZ |
11966 | #include "confdefs.h" |
11967 | #include <sys/types.h> | |
698dcdb6 | 11968 | EOF |
10f2d63a VZ |
11969 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
11970 | egrep "uid_t" >/dev/null 2>&1; then | |
698dcdb6 | 11971 | rm -rf conftest* |
10f2d63a VZ |
11972 | ac_cv_type_uid_t=yes |
11973 | else | |
698dcdb6 | 11974 | rm -rf conftest* |
10f2d63a VZ |
11975 | ac_cv_type_uid_t=no |
11976 | fi | |
11977 | rm -f conftest* | |
11978 | ||
11979 | fi | |
1e487827 | 11980 | |
698dcdb6 VZ |
11981 | echo "$ac_t""$ac_cv_type_uid_t" 1>&6 |
11982 | if test $ac_cv_type_uid_t = no; then | |
11983 | cat >> confdefs.h <<\EOF | |
10f2d63a VZ |
11984 | #define uid_t int |
11985 | EOF | |
11986 | ||
698dcdb6 | 11987 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
11988 | #define gid_t int |
11989 | EOF | |
11990 | ||
11991 | fi | |
11992 | ||
1e487827 | 11993 | |
698dcdb6 | 11994 | echo $ac_n "checking for wchar_t""... $ac_c" 1>&6 |
b3e8d00a | 11995 | echo "configure:11996: checking for wchar_t" >&5 |
698dcdb6 VZ |
11996 | if eval "test \"`echo '$''{'wx_cv_type_wchar_t'+set}'`\" = set"; then |
11997 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11998 | else | |
11999 | ||
12000 | cat > conftest.$ac_ext <<EOF | |
b3e8d00a | 12001 | #line 12002 "configure" |
0046ff7c VS |
12002 | #include "confdefs.h" |
12003 | #include <wchar.h> | |
698dcdb6 | 12004 | int main() { |
0046ff7c | 12005 | |
d836ee96 VZ |
12006 | wchar_t wc, *ws; |
12007 | wc = L'a'; | |
12008 | ws = L"Hello, world!"; | |
698dcdb6 VZ |
12009 | |
12010 | ; return 0; } | |
12011 | EOF | |
b3e8d00a | 12012 | if { (eval echo configure:12013: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 | 12013 | rm -rf conftest* |
1f8ae82f GD |
12014 | wx_cv_type_wchar_t=yes |
12015 | else | |
698dcdb6 VZ |
12016 | echo "configure: failed program was:" >&5 |
12017 | cat conftest.$ac_ext >&5 | |
12018 | rm -rf conftest* | |
12019 | cat > conftest.$ac_ext <<EOF | |
b3e8d00a | 12020 | #line 12021 "configure" |
1f8ae82f GD |
12021 | #include "confdefs.h" |
12022 | #include <stdlib.h> | |
698dcdb6 | 12023 | int main() { |
1f8ae82f | 12024 | |
d836ee96 VZ |
12025 | wchar_t wc, *ws; |
12026 | wc = L'a'; | |
12027 | ws = L"Hello, world!"; | |
698dcdb6 VZ |
12028 | |
12029 | ; return 0; } | |
12030 | EOF | |
b3e8d00a | 12031 | if { (eval echo configure:12032: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 | 12032 | rm -rf conftest* |
0046ff7c VS |
12033 | wx_cv_type_wchar_t=yes |
12034 | else | |
698dcdb6 VZ |
12035 | echo "configure: failed program was:" >&5 |
12036 | cat conftest.$ac_ext >&5 | |
12037 | rm -rf conftest* | |
12038 | wx_cv_type_wchar_t=no | |
0046ff7c | 12039 | fi |
698dcdb6 | 12040 | rm -f conftest* |
d836ee96 | 12041 | |
6232543b | 12042 | fi |
698dcdb6 | 12043 | rm -f conftest* |
703e0a69 | 12044 | |
1e487827 | 12045 | fi |
698dcdb6 VZ |
12046 | |
12047 | echo "$ac_t""$wx_cv_type_wchar_t" 1>&6 | |
d836ee96 VZ |
12048 | |
12049 | if test "$wx_cv_type_wchar_t" = "yes"; then | |
698dcdb6 | 12050 | cat >> confdefs.h <<\EOF |
0046ff7c VS |
12051 | #define wxUSE_WCHAR_T 1 |
12052 | EOF | |
12053 | ||
12054 | fi | |
12055 | ||
19af3b06 VZ |
12056 | |
12057 | ac_ext=C | |
12058 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
12059 | ac_cpp='$CXXCPP $CPPFLAGS' | |
12060 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
12061 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
12062 | cross_compiling=$ac_cv_prog_cxx_cross | |
12063 | ||
d836ee96 | 12064 | echo $ac_n "checking if size_t is unsigned int""... $ac_c" 1>&6 |
b3e8d00a | 12065 | echo "configure:12066: checking if size_t is unsigned int" >&5 |
d836ee96 VZ |
12066 | if eval "test \"`echo '$''{'wx_cv_size_t_is_uint'+set}'`\" = set"; then |
12067 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12068 | else | |
dd2c8b7c | 12069 | cat > conftest.$ac_ext <<EOF |
b3e8d00a | 12070 | #line 12071 "configure" |
d836ee96 VZ |
12071 | #include "confdefs.h" |
12072 | #include <stddef.h> | |
12073 | int main() { | |
12074 | ||
dd2c8b7c VZ |
12075 | return 0; } |
12076 | ||
d836ee96 | 12077 | struct Foo { void foo(size_t); void foo(unsigned int); }; |
dd2c8b7c VZ |
12078 | |
12079 | int bar() { | |
d836ee96 VZ |
12080 | |
12081 | ; return 0; } | |
12082 | EOF | |
b3e8d00a | 12083 | if { (eval echo configure:12084: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
d836ee96 VZ |
12084 | rm -rf conftest* |
12085 | wx_cv_size_t_is_uint=no | |
12086 | else | |
12087 | echo "configure: failed program was:" >&5 | |
12088 | cat conftest.$ac_ext >&5 | |
12089 | rm -rf conftest* | |
12090 | wx_cv_size_t_is_uint=yes | |
12091 | ||
12092 | fi | |
12093 | rm -f conftest* | |
12094 | ||
12095 | fi | |
12096 | ||
12097 | echo "$ac_t""$wx_cv_size_t_is_uint" 1>&6 | |
12098 | ||
12099 | if test "$wx_cv_size_t_is_uint" = "yes"; then | |
12100 | cat >> confdefs.h <<\EOF | |
12101 | #define wxSIZE_T_IS_UINT 1 | |
12102 | EOF | |
12103 | ||
12104 | else | |
12105 | echo $ac_n "checking if size_t is unsigned long""... $ac_c" 1>&6 | |
b3e8d00a | 12106 | echo "configure:12107: checking if size_t is unsigned long" >&5 |
d836ee96 VZ |
12107 | if eval "test \"`echo '$''{'wx_cv_size_t_is_ulong'+set}'`\" = set"; then |
12108 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12109 | else | |
12110 | cat > conftest.$ac_ext <<EOF | |
b3e8d00a | 12111 | #line 12112 "configure" |
d836ee96 VZ |
12112 | #include "confdefs.h" |
12113 | #include <stddef.h> | |
12114 | int main() { | |
12115 | ||
dd2c8b7c VZ |
12116 | return 0; } |
12117 | ||
d836ee96 | 12118 | struct Foo { void foo(size_t); void foo(unsigned long); }; |
dd2c8b7c VZ |
12119 | |
12120 | int bar() { | |
d836ee96 VZ |
12121 | |
12122 | ; return 0; } | |
12123 | EOF | |
b3e8d00a | 12124 | if { (eval echo configure:12125: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
d836ee96 VZ |
12125 | rm -rf conftest* |
12126 | wx_cv_size_t_is_ulong=no | |
12127 | else | |
12128 | echo "configure: failed program was:" >&5 | |
12129 | cat conftest.$ac_ext >&5 | |
12130 | rm -rf conftest* | |
12131 | wx_cv_size_t_is_ulong=yes | |
12132 | ||
12133 | fi | |
12134 | rm -f conftest* | |
12135 | ||
12136 | fi | |
12137 | ||
12138 | echo "$ac_t""$wx_cv_size_t_is_ulong" 1>&6 | |
12139 | ||
12140 | if test "$wx_cv_size_t_is_ulong" = "yes"; then | |
12141 | cat >> confdefs.h <<\EOF | |
12142 | #define wxSIZE_T_IS_ULONG 1 | |
12143 | EOF | |
12144 | ||
12145 | fi | |
12146 | fi | |
12147 | ||
19af3b06 VZ |
12148 | ac_ext=c |
12149 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
12150 | ac_cpp='$CPP $CPPFLAGS' | |
12151 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
12152 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
12153 | cross_compiling=$ac_cv_prog_cc_cross | |
12154 | ||
12155 | ||
1e487827 | 12156 | |
698dcdb6 | 12157 | echo $ac_n "checking for pw_gecos in struct passwd""... $ac_c" 1>&6 |
b3e8d00a | 12158 | echo "configure:12159: checking for pw_gecos in struct passwd" >&5 |
698dcdb6 VZ |
12159 | if eval "test \"`echo '$''{'wx_cv_struct_pw_gecos'+set}'`\" = set"; then |
12160 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12161 | else | |
12162 | ||
12163 | cat > conftest.$ac_ext <<EOF | |
b3e8d00a | 12164 | #line 12165 "configure" |
b12915c1 VZ |
12165 | #include "confdefs.h" |
12166 | #include <pwd.h> | |
698dcdb6 | 12167 | int main() { |
b12915c1 VZ |
12168 | |
12169 | char *p; | |
12170 | struct passwd *pw; | |
12171 | p = pw->pw_gecos; | |
698dcdb6 VZ |
12172 | |
12173 | ; return 0; } | |
12174 | EOF | |
b3e8d00a | 12175 | if { (eval echo configure:12176: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 VZ |
12176 | rm -rf conftest* |
12177 | ||
b12915c1 | 12178 | wx_cv_struct_pw_gecos=yes |
698dcdb6 | 12179 | |
b12915c1 | 12180 | else |
698dcdb6 VZ |
12181 | echo "configure: failed program was:" >&5 |
12182 | cat conftest.$ac_ext >&5 | |
12183 | rm -rf conftest* | |
12184 | ||
b12915c1 | 12185 | wx_cv_struct_pw_gecos=no |
698dcdb6 VZ |
12186 | |
12187 | ||
6232543b | 12188 | fi |
698dcdb6 VZ |
12189 | rm -f conftest* |
12190 | ||
703e0a69 | 12191 | |
1e487827 | 12192 | fi |
698dcdb6 VZ |
12193 | |
12194 | echo "$ac_t""$wx_cv_struct_pw_gecos" 1>&6 | |
b12915c1 | 12195 | |
bd3277fe | 12196 | if test "$wx_cv_struct_pw_gecos" = "yes"; then |
698dcdb6 | 12197 | cat >> confdefs.h <<\EOF |
bd3277fe VZ |
12198 | #define HAVE_PW_GECOS 1 |
12199 | EOF | |
12200 | ||
12201 | fi | |
12202 | ||
698dcdb6 VZ |
12203 | |
12204 | echo $ac_n "checking for working const""... $ac_c" 1>&6 | |
b3e8d00a | 12205 | echo "configure:12206: checking for working const" >&5 |
698dcdb6 VZ |
12206 | if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then |
12207 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 12208 | else |
698dcdb6 | 12209 | cat > conftest.$ac_ext <<EOF |
b3e8d00a | 12210 | #line 12211 "configure" |
10f2d63a | 12211 | #include "confdefs.h" |
698dcdb6 VZ |
12212 | |
12213 | int main() { | |
12214 | ||
12215 | /* Ultrix mips cc rejects this. */ | |
12216 | typedef int charset[2]; const charset x; | |
12217 | /* SunOS 4.1.1 cc rejects this. */ | |
12218 | char const *const *ccp; | |
12219 | char **p; | |
12220 | /* NEC SVR4.0.2 mips cc rejects this. */ | |
12221 | struct point {int x, y;}; | |
12222 | static struct point const zero = {0,0}; | |
12223 | /* AIX XL C 1.02.0.0 rejects this. | |
12224 | It does not let you subtract one const X* pointer from another in an arm | |
12225 | of an if-expression whose if-part is not a constant expression */ | |
12226 | const char *g = "string"; | |
12227 | ccp = &g + (g ? g-g : 0); | |
12228 | /* HPUX 7.0 cc rejects these. */ | |
12229 | ++ccp; | |
12230 | p = (char**) ccp; | |
12231 | ccp = (char const *const *) p; | |
12232 | { /* SCO 3.2v4 cc rejects this. */ | |
12233 | char *t; | |
12234 | char const *s = 0 ? (char *) 0 : (char const *) 0; | |
12235 | ||
12236 | *t++ = 0; | |
10f2d63a | 12237 | } |
698dcdb6 VZ |
12238 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ |
12239 | int x[] = {25, 17}; | |
12240 | const int *foo = &x[0]; | |
12241 | ++foo; | |
703e0a69 | 12242 | } |
698dcdb6 VZ |
12243 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ |
12244 | typedef const int *iptr; | |
12245 | iptr p = 0; | |
12246 | ++p; | |
6232543b | 12247 | } |
698dcdb6 VZ |
12248 | { /* AIX XL C 1.02.0.0 rejects this saying |
12249 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ | |
12250 | struct s { int j; const int *ap[3]; }; | |
12251 | struct s *b; b->j = 5; | |
1e487827 | 12252 | } |
698dcdb6 VZ |
12253 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ |
12254 | const int foo = 10; | |
12255 | } | |
12256 | ||
12257 | ; return 0; } | |
12258 | EOF | |
b3e8d00a | 12259 | if { (eval echo configure:12260: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 | 12260 | rm -rf conftest* |
10f2d63a VZ |
12261 | ac_cv_c_const=yes |
12262 | else | |
698dcdb6 VZ |
12263 | echo "configure: failed program was:" >&5 |
12264 | cat conftest.$ac_ext >&5 | |
12265 | rm -rf conftest* | |
12266 | ac_cv_c_const=no | |
10f2d63a | 12267 | fi |
698dcdb6 | 12268 | rm -f conftest* |
10f2d63a | 12269 | fi |
1e487827 | 12270 | |
698dcdb6 VZ |
12271 | echo "$ac_t""$ac_cv_c_const" 1>&6 |
12272 | if test $ac_cv_c_const = no; then | |
12273 | cat >> confdefs.h <<\EOF | |
12274 | #define const | |
10f2d63a VZ |
12275 | EOF |
12276 | ||
12277 | fi | |
12278 | ||
698dcdb6 | 12279 | echo $ac_n "checking for inline""... $ac_c" 1>&6 |
b3e8d00a | 12280 | echo "configure:12281: checking for inline" >&5 |
698dcdb6 VZ |
12281 | if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then |
12282 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a VZ |
12283 | else |
12284 | ac_cv_c_inline=no | |
12285 | for ac_kw in inline __inline__ __inline; do | |
698dcdb6 | 12286 | cat > conftest.$ac_ext <<EOF |
b3e8d00a | 12287 | #line 12288 "configure" |
10f2d63a VZ |
12288 | #include "confdefs.h" |
12289 | ||
698dcdb6 VZ |
12290 | int main() { |
12291 | } $ac_kw foo() { | |
12292 | ; return 0; } | |
12293 | EOF | |
b3e8d00a | 12294 | if { (eval echo configure:12295: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 | 12295 | rm -rf conftest* |
10f2d63a VZ |
12296 | ac_cv_c_inline=$ac_kw; break |
12297 | else | |
698dcdb6 VZ |
12298 | echo "configure: failed program was:" >&5 |
12299 | cat conftest.$ac_ext >&5 | |
10f2d63a | 12300 | fi |
698dcdb6 | 12301 | rm -f conftest* |
10f2d63a VZ |
12302 | done |
12303 | ||
12304 | fi | |
698dcdb6 VZ |
12305 | |
12306 | echo "$ac_t""$ac_cv_c_inline" 1>&6 | |
12307 | case "$ac_cv_c_inline" in | |
10f2d63a | 12308 | inline | yes) ;; |
698dcdb6 VZ |
12309 | no) cat >> confdefs.h <<\EOF |
12310 | #define inline | |
10f2d63a VZ |
12311 | EOF |
12312 | ;; | |
698dcdb6 | 12313 | *) cat >> confdefs.h <<EOF |
10f2d63a VZ |
12314 | #define inline $ac_cv_c_inline |
12315 | EOF | |
12316 | ;; | |
12317 | esac | |
12318 | ||
698dcdb6 VZ |
12319 | |
12320 | echo $ac_n "checking size of char""... $ac_c" 1>&6 | |
b3e8d00a | 12321 | echo "configure:12322: checking size of char" >&5 |
698dcdb6 VZ |
12322 | if eval "test \"`echo '$''{'ac_cv_sizeof_char'+set}'`\" = set"; then |
12323 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6232543b | 12324 | else |
1e487827 | 12325 | if test "$cross_compiling" = yes; then |
698dcdb6 | 12326 | ac_cv_sizeof_char=1 |
1e487827 | 12327 | else |
698dcdb6 | 12328 | cat > conftest.$ac_ext <<EOF |
b3e8d00a | 12329 | #line 12330 "configure" |
1e487827 | 12330 | #include "confdefs.h" |
698dcdb6 VZ |
12331 | #include <stdio.h> |
12332 | main() | |
1e487827 | 12333 | { |
698dcdb6 VZ |
12334 | FILE *f=fopen("conftestval", "w"); |
12335 | if (!f) exit(1); | |
12336 | fprintf(f, "%d\n", sizeof(char)); | |
12337 | exit(0); | |
1e487827 | 12338 | } |
698dcdb6 | 12339 | EOF |
b3e8d00a | 12340 | if { (eval echo configure:12341: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
698dcdb6 VZ |
12341 | then |
12342 | ac_cv_sizeof_char=`cat conftestval` | |
1e487827 | 12343 | else |
698dcdb6 VZ |
12344 | echo "configure: failed program was:" >&5 |
12345 | cat conftest.$ac_ext >&5 | |
12346 | rm -fr conftest* | |
1e487827 VS |
12347 | ac_cv_sizeof_char=0 |
12348 | fi | |
698dcdb6 | 12349 | rm -fr conftest* |
1e487827 | 12350 | fi |
10f2d63a | 12351 | |
1e487827 | 12352 | fi |
698dcdb6 VZ |
12353 | echo "$ac_t""$ac_cv_sizeof_char" 1>&6 |
12354 | cat >> confdefs.h <<EOF | |
12355 | #define SIZEOF_CHAR $ac_cv_sizeof_char | |
1e487827 | 12356 | EOF |
6232543b | 12357 | |
703e0a69 | 12358 | |
698dcdb6 | 12359 | echo $ac_n "checking size of short""... $ac_c" 1>&6 |
b3e8d00a | 12360 | echo "configure:12361: checking size of short" >&5 |
698dcdb6 VZ |
12361 | if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then |
12362 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1e487827 | 12363 | else |
1e487827 | 12364 | if test "$cross_compiling" = yes; then |
698dcdb6 | 12365 | ac_cv_sizeof_short=2 |
1e487827 | 12366 | else |
698dcdb6 | 12367 | cat > conftest.$ac_ext <<EOF |
b3e8d00a | 12368 | #line 12369 "configure" |
1e487827 | 12369 | #include "confdefs.h" |
698dcdb6 VZ |
12370 | #include <stdio.h> |
12371 | main() | |
1e487827 | 12372 | { |
698dcdb6 VZ |
12373 | FILE *f=fopen("conftestval", "w"); |
12374 | if (!f) exit(1); | |
12375 | fprintf(f, "%d\n", sizeof(short)); | |
12376 | exit(0); | |
1e487827 | 12377 | } |
698dcdb6 | 12378 | EOF |
b3e8d00a | 12379 | if { (eval echo configure:12380: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
698dcdb6 VZ |
12380 | then |
12381 | ac_cv_sizeof_short=`cat conftestval` | |
1e487827 | 12382 | else |
698dcdb6 VZ |
12383 | echo "configure: failed program was:" >&5 |
12384 | cat conftest.$ac_ext >&5 | |
12385 | rm -fr conftest* | |
12386 | ac_cv_sizeof_short=0 | |
1e487827 | 12387 | fi |
698dcdb6 | 12388 | rm -fr conftest* |
1e487827 | 12389 | fi |
698dcdb6 | 12390 | |
1e487827 | 12391 | fi |
698dcdb6 VZ |
12392 | echo "$ac_t""$ac_cv_sizeof_short" 1>&6 |
12393 | cat >> confdefs.h <<EOF | |
12394 | #define SIZEOF_SHORT $ac_cv_sizeof_short | |
12395 | EOF | |
12396 | ||
12397 | ||
12398 | echo $ac_n "checking size of int *""... $ac_c" 1>&6 | |
b3e8d00a | 12399 | echo "configure:12400: checking size of int *" >&5 |
698dcdb6 VZ |
12400 | if eval "test \"`echo '$''{'ac_cv_sizeof_int_p'+set}'`\" = set"; then |
12401 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a VZ |
12402 | else |
12403 | if test "$cross_compiling" = yes; then | |
698dcdb6 | 12404 | ac_cv_sizeof_int_p=4 |
10f2d63a | 12405 | else |
698dcdb6 | 12406 | cat > conftest.$ac_ext <<EOF |
b3e8d00a | 12407 | #line 12408 "configure" |
10f2d63a | 12408 | #include "confdefs.h" |
698dcdb6 VZ |
12409 | #include <stdio.h> |
12410 | main() | |
10f2d63a | 12411 | { |
698dcdb6 VZ |
12412 | FILE *f=fopen("conftestval", "w"); |
12413 | if (!f) exit(1); | |
12414 | fprintf(f, "%d\n", sizeof(int *)); | |
12415 | exit(0); | |
10f2d63a | 12416 | } |
698dcdb6 | 12417 | EOF |
b3e8d00a | 12418 | if { (eval echo configure:12419: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
698dcdb6 VZ |
12419 | then |
12420 | ac_cv_sizeof_int_p=`cat conftestval` | |
10f2d63a | 12421 | else |
698dcdb6 VZ |
12422 | echo "configure: failed program was:" >&5 |
12423 | cat conftest.$ac_ext >&5 | |
12424 | rm -fr conftest* | |
12425 | ac_cv_sizeof_int_p=0 | |
6232543b | 12426 | fi |
698dcdb6 | 12427 | rm -fr conftest* |
1e487827 | 12428 | fi |
698dcdb6 | 12429 | |
1e487827 | 12430 | fi |
698dcdb6 VZ |
12431 | echo "$ac_t""$ac_cv_sizeof_int_p" 1>&6 |
12432 | cat >> confdefs.h <<EOF | |
12433 | #define SIZEOF_INT_P $ac_cv_sizeof_int_p | |
10f2d63a VZ |
12434 | EOF |
12435 | ||
698dcdb6 VZ |
12436 | |
12437 | echo $ac_n "checking size of int""... $ac_c" 1>&6 | |
b3e8d00a | 12438 | echo "configure:12439: checking size of int" >&5 |
698dcdb6 VZ |
12439 | if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then |
12440 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a VZ |
12441 | else |
12442 | if test "$cross_compiling" = yes; then | |
698dcdb6 | 12443 | ac_cv_sizeof_int=4 |
703e0a69 | 12444 | else |
698dcdb6 | 12445 | cat > conftest.$ac_ext <<EOF |
b3e8d00a | 12446 | #line 12447 "configure" |
1e487827 | 12447 | #include "confdefs.h" |
698dcdb6 VZ |
12448 | #include <stdio.h> |
12449 | main() | |
1e487827 | 12450 | { |
698dcdb6 VZ |
12451 | FILE *f=fopen("conftestval", "w"); |
12452 | if (!f) exit(1); | |
12453 | fprintf(f, "%d\n", sizeof(int)); | |
12454 | exit(0); | |
1e487827 | 12455 | } |
698dcdb6 | 12456 | EOF |
b3e8d00a | 12457 | if { (eval echo configure:12458: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
698dcdb6 VZ |
12458 | then |
12459 | ac_cv_sizeof_int=`cat conftestval` | |
12460 | else | |
12461 | echo "configure: failed program was:" >&5 | |
12462 | cat conftest.$ac_ext >&5 | |
12463 | rm -fr conftest* | |
12464 | ac_cv_sizeof_int=0 | |
703e0a69 | 12465 | fi |
698dcdb6 VZ |
12466 | rm -fr conftest* |
12467 | fi | |
12468 | ||
12469 | fi | |
12470 | echo "$ac_t""$ac_cv_sizeof_int" 1>&6 | |
12471 | cat >> confdefs.h <<EOF | |
12472 | #define SIZEOF_INT $ac_cv_sizeof_int | |
12473 | EOF | |
12474 | ||
12475 | ||
12476 | echo $ac_n "checking size of long""... $ac_c" 1>&6 | |
b3e8d00a | 12477 | echo "configure:12478: checking size of long" >&5 |
698dcdb6 VZ |
12478 | if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then |
12479 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a VZ |
12480 | else |
12481 | if test "$cross_compiling" = yes; then | |
698dcdb6 | 12482 | ac_cv_sizeof_long=4 |
10f2d63a | 12483 | else |
698dcdb6 | 12484 | cat > conftest.$ac_ext <<EOF |
b3e8d00a | 12485 | #line 12486 "configure" |
10f2d63a | 12486 | #include "confdefs.h" |
698dcdb6 VZ |
12487 | #include <stdio.h> |
12488 | main() | |
10f2d63a | 12489 | { |
698dcdb6 VZ |
12490 | FILE *f=fopen("conftestval", "w"); |
12491 | if (!f) exit(1); | |
12492 | fprintf(f, "%d\n", sizeof(long)); | |
12493 | exit(0); | |
10f2d63a | 12494 | } |
698dcdb6 | 12495 | EOF |
b3e8d00a | 12496 | if { (eval echo configure:12497: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
698dcdb6 VZ |
12497 | then |
12498 | ac_cv_sizeof_long=`cat conftestval` | |
10f2d63a | 12499 | else |
698dcdb6 VZ |
12500 | echo "configure: failed program was:" >&5 |
12501 | cat conftest.$ac_ext >&5 | |
12502 | rm -fr conftest* | |
12503 | ac_cv_sizeof_long=0 | |
10f2d63a | 12504 | fi |
698dcdb6 | 12505 | rm -fr conftest* |
10f2d63a | 12506 | fi |
698dcdb6 | 12507 | |
10f2d63a | 12508 | fi |
698dcdb6 VZ |
12509 | echo "$ac_t""$ac_cv_sizeof_long" 1>&6 |
12510 | cat >> confdefs.h <<EOF | |
12511 | #define SIZEOF_LONG $ac_cv_sizeof_long | |
12512 | EOF | |
12513 | ||
12514 | ||
12515 | echo $ac_n "checking size of long long""... $ac_c" 1>&6 | |
b3e8d00a | 12516 | echo "configure:12517: checking size of long long" >&5 |
698dcdb6 VZ |
12517 | if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then |
12518 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12519 | else | |
12520 | if test "$cross_compiling" = yes; then | |
12521 | ac_cv_sizeof_long_long=0 | |
12522 | else | |
12523 | cat > conftest.$ac_ext <<EOF | |
b3e8d00a | 12524 | #line 12525 "configure" |
698dcdb6 VZ |
12525 | #include "confdefs.h" |
12526 | #include <stdio.h> | |
12527 | main() | |
12528 | { | |
12529 | FILE *f=fopen("conftestval", "w"); | |
12530 | if (!f) exit(1); | |
12531 | fprintf(f, "%d\n", sizeof(long long)); | |
12532 | exit(0); | |
12533 | } | |
12534 | EOF | |
b3e8d00a | 12535 | if { (eval echo configure:12536: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
698dcdb6 VZ |
12536 | then |
12537 | ac_cv_sizeof_long_long=`cat conftestval` | |
6232543b | 12538 | else |
698dcdb6 VZ |
12539 | echo "configure: failed program was:" >&5 |
12540 | cat conftest.$ac_ext >&5 | |
12541 | rm -fr conftest* | |
6232543b VS |
12542 | ac_cv_sizeof_long_long=0 |
12543 | fi | |
698dcdb6 VZ |
12544 | rm -fr conftest* |
12545 | fi | |
12546 | ||
703e0a69 | 12547 | fi |
698dcdb6 VZ |
12548 | echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6 |
12549 | cat >> confdefs.h <<EOF | |
10f2d63a VZ |
12550 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long |
12551 | EOF | |
12552 | ||
1e487827 | 12553 | |
698dcdb6 VZ |
12554 | |
12555 | echo $ac_n "checking size of wchar_t""... $ac_c" 1>&6 | |
b3e8d00a | 12556 | echo "configure:12557: checking size of wchar_t" >&5 |
698dcdb6 VZ |
12557 | if eval "test \"`echo '$''{'wx_cv_sizeof_wchar_t'+set}'`\" = set"; then |
12558 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12559 | else | |
12560 | ||
b93d0d08 VS |
12561 | if test "$cross_compiling" = yes; then |
12562 | wx_cv_sizeof_wchar_t=4 | |
1e6feb95 | 12563 | |
b93d0d08 | 12564 | else |
698dcdb6 | 12565 | cat > conftest.$ac_ext <<EOF |
b3e8d00a | 12566 | #line 12567 "configure" |
b93d0d08 VS |
12567 | #include "confdefs.h" |
12568 | ||
1e6feb95 VZ |
12569 | #ifdef HAVE_WCHAR_H |
12570 | # include <wchar.h> | |
12571 | #endif | |
12572 | #ifdef HAVE_STDLIB_H | |
12573 | # include <stdlib.h> | |
12574 | #endif | |
12575 | #include <stdio.h> | |
12576 | int main() | |
12577 | { | |
12578 | FILE *f=fopen("conftestval", "w"); | |
12579 | if (!f) exit(1); | |
12580 | fprintf(f, "%i", sizeof(wchar_t)); | |
12581 | exit(0); | |
12582 | } | |
698dcdb6 VZ |
12583 | |
12584 | EOF | |
b3e8d00a | 12585 | if { (eval echo configure:12586: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
698dcdb6 | 12586 | then |
b93d0d08 VS |
12587 | wx_cv_sizeof_wchar_t=`cat conftestval` |
12588 | else | |
698dcdb6 VZ |
12589 | echo "configure: failed program was:" >&5 |
12590 | cat conftest.$ac_ext >&5 | |
12591 | rm -fr conftest* | |
12592 | wx_cv_sizeof_wchar_t=0 | |
b93d0d08 | 12593 | fi |
698dcdb6 | 12594 | rm -fr conftest* |
b93d0d08 VS |
12595 | fi |
12596 | ||
698dcdb6 | 12597 | |
b93d0d08 VS |
12598 | fi |
12599 | ||
698dcdb6 VZ |
12600 | echo "$ac_t""$wx_cv_sizeof_wchar_t" 1>&6 |
12601 | ||
12602 | cat >> confdefs.h <<EOF | |
28c6addc | 12603 | #define SIZEOF_WCHAR_T $wx_cv_sizeof_wchar_t |
b93d0d08 VS |
12604 | EOF |
12605 | ||
698dcdb6 | 12606 | |
698dcdb6 | 12607 | echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6 |
b3e8d00a | 12608 | echo "configure:12609: checking whether byte ordering is bigendian" >&5 |
698dcdb6 VZ |
12609 | if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then |
12610 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a VZ |
12611 | else |
12612 | ac_cv_c_bigendian=unknown | |
12613 | # See if sys/param.h defines the BYTE_ORDER macro. | |
698dcdb6 | 12614 | cat > conftest.$ac_ext <<EOF |
b3e8d00a | 12615 | #line 12616 "configure" |
10f2d63a VZ |
12616 | #include "confdefs.h" |
12617 | #include <sys/types.h> | |
12618 | #include <sys/param.h> | |
698dcdb6 | 12619 | int main() { |
10f2d63a VZ |
12620 | |
12621 | #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN | |
12622 | bogus endian macros | |
12623 | #endif | |
698dcdb6 VZ |
12624 | ; return 0; } |
12625 | EOF | |
b3e8d00a | 12626 | if { (eval echo configure:12627: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 | 12627 | rm -rf conftest* |
10f2d63a | 12628 | # It does; now see whether it defined to BIG_ENDIAN or not. |
698dcdb6 | 12629 | cat > conftest.$ac_ext <<EOF |
b3e8d00a | 12630 | #line 12631 "configure" |
10f2d63a VZ |
12631 | #include "confdefs.h" |
12632 | #include <sys/types.h> | |
12633 | #include <sys/param.h> | |
698dcdb6 | 12634 | int main() { |
10f2d63a VZ |
12635 | |
12636 | #if BYTE_ORDER != BIG_ENDIAN | |
12637 | not big endian | |
12638 | #endif | |
698dcdb6 VZ |
12639 | ; return 0; } |
12640 | EOF | |
b3e8d00a | 12641 | if { (eval echo configure:12642: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 | 12642 | rm -rf conftest* |
10f2d63a VZ |
12643 | ac_cv_c_bigendian=yes |
12644 | else | |
698dcdb6 VZ |
12645 | echo "configure: failed program was:" >&5 |
12646 | cat conftest.$ac_ext >&5 | |
12647 | rm -rf conftest* | |
12648 | ac_cv_c_bigendian=no | |
10f2d63a | 12649 | fi |
698dcdb6 | 12650 | rm -f conftest* |
10f2d63a | 12651 | else |
698dcdb6 VZ |
12652 | echo "configure: failed program was:" >&5 |
12653 | cat conftest.$ac_ext >&5 | |
10f2d63a | 12654 | fi |
698dcdb6 | 12655 | rm -f conftest* |
10f2d63a VZ |
12656 | if test $ac_cv_c_bigendian = unknown; then |
12657 | if test "$cross_compiling" = yes; then | |
12658 | ac_cv_c_bigendian=unknown | |
12659 | else | |
698dcdb6 | 12660 | cat > conftest.$ac_ext <<EOF |
b3e8d00a | 12661 | #line 12662 "configure" |
10f2d63a VZ |
12662 | #include "confdefs.h" |
12663 | main () { | |
12664 | /* Are we little or big endian? From Harbison&Steele. */ | |
12665 | union | |
12666 | { | |
12667 | long l; | |
12668 | char c[sizeof (long)]; | |
12669 | } u; | |
12670 | u.l = 1; | |
12671 | exit (u.c[sizeof (long) - 1] == 1); | |
12672 | } | |
698dcdb6 | 12673 | EOF |
b3e8d00a | 12674 | if { (eval echo configure:12675: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
698dcdb6 | 12675 | then |
10f2d63a VZ |
12676 | ac_cv_c_bigendian=no |
12677 | else | |
698dcdb6 VZ |
12678 | echo "configure: failed program was:" >&5 |
12679 | cat conftest.$ac_ext >&5 | |
12680 | rm -fr conftest* | |
12681 | ac_cv_c_bigendian=yes | |
10f2d63a | 12682 | fi |
698dcdb6 | 12683 | rm -fr conftest* |
10f2d63a | 12684 | fi |
698dcdb6 | 12685 | |
10f2d63a VZ |
12686 | fi |
12687 | fi | |
698dcdb6 VZ |
12688 | |
12689 | echo "$ac_t""$ac_cv_c_bigendian" 1>&6 | |
10f2d63a | 12690 | if test $ac_cv_c_bigendian = unknown; then |
698dcdb6 | 12691 | 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 |
12692 | fi |
12693 | if test $ac_cv_c_bigendian = yes; then | |
698dcdb6 | 12694 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
12695 | #define WORDS_BIGENDIAN 1 |
12696 | EOF | |
12697 | ||
12698 | fi | |
12699 | ||
698dcdb6 | 12700 | |
3a922bb4 | 12701 | echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6 |
b3e8d00a | 12702 | echo "configure:12703: checking how to run the C++ preprocessor" >&5 |
3a922bb4 RL |
12703 | if test -z "$CXXCPP"; then |
12704 | if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then | |
12705 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12706 | else | |
12707 | ac_ext=C | |
12708 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
12709 | ac_cpp='$CXXCPP $CPPFLAGS' | |
12710 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
12711 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
12712 | cross_compiling=$ac_cv_prog_cxx_cross | |
12713 | CXXCPP="${CXX-g++} -E" | |
12714 | cat > conftest.$ac_ext <<EOF | |
b3e8d00a | 12715 | #line 12716 "configure" |
3a922bb4 RL |
12716 | #include "confdefs.h" |
12717 | #include <stdlib.h> | |
12718 | EOF | |
12719 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
b3e8d00a | 12720 | { (eval echo configure:12721: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
3a922bb4 RL |
12721 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
12722 | if test -z "$ac_err"; then | |
12723 | : | |
12724 | else | |
12725 | echo "$ac_err" >&5 | |
12726 | echo "configure: failed program was:" >&5 | |
12727 | cat conftest.$ac_ext >&5 | |
12728 | rm -rf conftest* | |
12729 | CXXCPP=/lib/cpp | |
12730 | fi | |
12731 | rm -f conftest* | |
12732 | ac_cv_prog_CXXCPP="$CXXCPP" | |
12733 | ac_ext=C | |
12734 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
12735 | ac_cpp='$CXXCPP $CPPFLAGS' | |
12736 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
12737 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
12738 | cross_compiling=$ac_cv_prog_cxx_cross | |
12739 | fi | |
12740 | fi | |
12741 | CXXCPP="$ac_cv_prog_CXXCPP" | |
12742 | echo "$ac_t""$CXXCPP" 1>&6 | |
12743 | ||
698dcdb6 | 12744 | |
10f2d63a | 12745 | if test "$cross_compiling" = "yes"; then |
698dcdb6 | 12746 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
12747 | #define wxUSE_IOSTREAMH 1 |
12748 | EOF | |
12749 | ||
12750 | else | |
698dcdb6 VZ |
12751 | |
12752 | ac_ext=C | |
12753 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
1e487827 | 12754 | ac_cpp='$CXXCPP $CPPFLAGS' |
698dcdb6 VZ |
12755 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
12756 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
12757 | cross_compiling=$ac_cv_prog_cxx_cross | |
12758 | ||
703e0a69 | 12759 | |
698dcdb6 | 12760 | for ac_hdr in iostream |
10f2d63a | 12761 | do |
698dcdb6 VZ |
12762 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
12763 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
b3e8d00a | 12764 | echo "configure:12765: checking for $ac_hdr" >&5 |
698dcdb6 VZ |
12765 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
12766 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12767 | else | |
12768 | cat > conftest.$ac_ext <<EOF | |
b3e8d00a | 12769 | #line 12770 "configure" |
10f2d63a | 12770 | #include "confdefs.h" |
698dcdb6 VZ |
12771 | #include <$ac_hdr> |
12772 | EOF | |
12773 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
b3e8d00a | 12774 | { (eval echo configure:12775: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
12775 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
12776 | if test -z "$ac_err"; then | |
12777 | rm -rf conftest* | |
12778 | eval "ac_cv_header_$ac_safe=yes" | |
10f2d63a | 12779 | else |
698dcdb6 VZ |
12780 | echo "$ac_err" >&5 |
12781 | echo "configure: failed program was:" >&5 | |
10f2d63a | 12782 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
12783 | rm -rf conftest* |
12784 | eval "ac_cv_header_$ac_safe=no" | |
10f2d63a | 12785 | fi |
698dcdb6 | 12786 | rm -f conftest* |
10f2d63a | 12787 | fi |
698dcdb6 VZ |
12788 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
12789 | echo "$ac_t""yes" 1>&6 | |
12790 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
12791 | cat >> confdefs.h <<EOF | |
12792 | #define $ac_tr_hdr 1 | |
10f2d63a | 12793 | EOF |
698dcdb6 VZ |
12794 | |
12795 | else | |
12796 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
12797 | fi |
12798 | done | |
12799 | ||
698dcdb6 | 12800 | |
57fe5ed0 VZ |
12801 | if test "$ac_cv_header_iostream" = "yes" ; then |
12802 | : | |
12803 | else | |
698dcdb6 | 12804 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
12805 | #define wxUSE_IOSTREAMH 1 |
12806 | EOF | |
12807 | ||
10f2d63a VZ |
12808 | fi |
12809 | ||
12810 | ac_ext=c | |
698dcdb6 | 12811 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
10f2d63a | 12812 | ac_cpp='$CPP $CPPFLAGS' |
698dcdb6 VZ |
12813 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
12814 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
12815 | cross_compiling=$ac_cv_prog_cc_cross | |
10f2d63a VZ |
12816 | |
12817 | fi | |
12818 | ||
703e0a69 | 12819 | |
698dcdb6 VZ |
12820 | |
12821 | echo $ac_n "checking if C++ compiler supports bool""... $ac_c" 1>&6 | |
b3e8d00a | 12822 | echo "configure:12823: checking if C++ compiler supports bool" >&5 |
698dcdb6 VZ |
12823 | if eval "test \"`echo '$''{'wx_cv_cpp_bool'+set}'`\" = set"; then |
12824 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12825 | else | |
12826 | ||
12827 | ||
12828 | ac_ext=C | |
12829 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
1e487827 | 12830 | ac_cpp='$CXXCPP $CPPFLAGS' |
698dcdb6 VZ |
12831 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
12832 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
12833 | cross_compiling=$ac_cv_prog_cxx_cross | |
10f2d63a | 12834 | |
698dcdb6 VZ |
12835 | |
12836 | cat > conftest.$ac_ext <<EOF | |
b3e8d00a | 12837 | #line 12838 "configure" |
10f2d63a VZ |
12838 | #include "confdefs.h" |
12839 | ||
698dcdb6 VZ |
12840 | |
12841 | int main() { | |
10f2d63a VZ |
12842 | |
12843 | bool b = true; | |
12844 | ||
12845 | return 0; | |
698dcdb6 VZ |
12846 | |
12847 | ; return 0; } | |
12848 | EOF | |
b3e8d00a | 12849 | if { (eval echo configure:12850: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 VZ |
12850 | rm -rf conftest* |
12851 | ||
10f2d63a | 12852 | wx_cv_cpp_bool=yes |
698dcdb6 | 12853 | |
10f2d63a | 12854 | else |
698dcdb6 VZ |
12855 | echo "configure: failed program was:" >&5 |
12856 | cat conftest.$ac_ext >&5 | |
12857 | rm -rf conftest* | |
12858 | ||
10f2d63a | 12859 | wx_cv_cpp_bool=no |
698dcdb6 VZ |
12860 | |
12861 | ||
10f2d63a | 12862 | fi |
698dcdb6 | 12863 | rm -f conftest* |
10f2d63a VZ |
12864 | |
12865 | ac_ext=c | |
698dcdb6 | 12866 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
10f2d63a | 12867 | ac_cpp='$CPP $CPPFLAGS' |
698dcdb6 VZ |
12868 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
12869 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
12870 | cross_compiling=$ac_cv_prog_cc_cross | |
10f2d63a | 12871 | |
698dcdb6 | 12872 | |
10f2d63a | 12873 | fi |
698dcdb6 VZ |
12874 | |
12875 | echo "$ac_t""$wx_cv_cpp_bool" 1>&6 | |
10f2d63a VZ |
12876 | |
12877 | if test "$wx_cv_cpp_bool" = "yes"; then | |
698dcdb6 | 12878 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
12879 | #define HAVE_BOOL 1 |
12880 | EOF | |
12881 | ||
12882 | fi | |
12883 | ||
1e487827 | 12884 | |
698dcdb6 | 12885 | |
698dcdb6 | 12886 | echo $ac_n "checking for wcslen in -lc""... $ac_c" 1>&6 |
b3e8d00a | 12887 | echo "configure:12888: checking for wcslen in -lc" >&5 |
698dcdb6 VZ |
12888 | ac_lib_var=`echo c'_'wcslen | sed 'y%./+-%__p_%'` |
12889 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
12890 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 12891 | else |
698dcdb6 | 12892 | ac_save_LIBS="$LIBS" |
10f2d63a | 12893 | LIBS="-lc $LIBS" |
698dcdb6 | 12894 | cat > conftest.$ac_ext <<EOF |
b3e8d00a | 12895 | #line 12896 "configure" |
10f2d63a VZ |
12896 | #include "confdefs.h" |
12897 | /* Override any gcc2 internal prototype to avoid an error. */ | |
12898 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
12899 | builtin and then its argument prototype would still apply. */ |
12900 | char wcslen(); | |
12901 | ||
12902 | int main() { | |
12903 | wcslen() | |
12904 | ; return 0; } | |
12905 | EOF | |
b3e8d00a | 12906 | if { (eval echo configure:12907: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
12907 | rm -rf conftest* |
12908 | eval "ac_cv_lib_$ac_lib_var=yes" | |
12909 | else | |
12910 | echo "configure: failed program was:" >&5 | |
12911 | cat conftest.$ac_ext >&5 | |
12912 | rm -rf conftest* | |
12913 | eval "ac_cv_lib_$ac_lib_var=no" | |
12914 | fi | |
12915 | rm -f conftest* | |
12916 | LIBS="$ac_save_LIBS" | |
12917 | ||
12918 | fi | |
12919 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
12920 | echo "$ac_t""yes" 1>&6 | |
12921 | ||
12922 | cat >> confdefs.h <<\EOF | |
10f2d63a VZ |
12923 | #define HAVE_WCSLEN 1 |
12924 | EOF | |
12925 | ||
12926 | WCHAR_LINK="" | |
698dcdb6 | 12927 | |
10f2d63a | 12928 | else |
698dcdb6 | 12929 | echo "$ac_t""no" 1>&6 |
10f2d63a | 12930 | |
698dcdb6 | 12931 | echo $ac_n "checking for wcslen in -lw""... $ac_c" 1>&6 |
b3e8d00a | 12932 | echo "configure:12933: checking for wcslen in -lw" >&5 |
698dcdb6 VZ |
12933 | ac_lib_var=`echo w'_'wcslen | sed 'y%./+-%__p_%'` |
12934 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
12935 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 12936 | else |
698dcdb6 | 12937 | ac_save_LIBS="$LIBS" |
10f2d63a | 12938 | LIBS="-lw $LIBS" |
698dcdb6 | 12939 | cat > conftest.$ac_ext <<EOF |
b3e8d00a | 12940 | #line 12941 "configure" |
10f2d63a VZ |
12941 | #include "confdefs.h" |
12942 | /* Override any gcc2 internal prototype to avoid an error. */ | |
12943 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
12944 | builtin and then its argument prototype would still apply. */ |
12945 | char wcslen(); | |
12946 | ||
12947 | int main() { | |
12948 | wcslen() | |
12949 | ; return 0; } | |
12950 | EOF | |
b3e8d00a | 12951 | if { (eval echo configure:12952: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
12952 | rm -rf conftest* |
12953 | eval "ac_cv_lib_$ac_lib_var=yes" | |
12954 | else | |
12955 | echo "configure: failed program was:" >&5 | |
12956 | cat conftest.$ac_ext >&5 | |
12957 | rm -rf conftest* | |
12958 | eval "ac_cv_lib_$ac_lib_var=no" | |
12959 | fi | |
12960 | rm -f conftest* | |
12961 | LIBS="$ac_save_LIBS" | |
12962 | ||
12963 | fi | |
12964 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
12965 | echo "$ac_t""yes" 1>&6 | |
12966 | ||
12967 | cat >> confdefs.h <<\EOF | |
10f2d63a VZ |
12968 | #define HAVE_WCSLEN 1 |
12969 | EOF | |
12970 | ||
12971 | WCHAR_LINK="-lw" | |
698dcdb6 | 12972 | |
18dbb1f6 VZ |
12973 | else |
12974 | echo "$ac_t""no" 1>&6 | |
12975 | ||
12976 | echo $ac_n "checking for wcslen in -lmsvcrt""... $ac_c" 1>&6 | |
b3e8d00a | 12977 | echo "configure:12978: checking for wcslen in -lmsvcrt" >&5 |
18dbb1f6 VZ |
12978 | ac_lib_var=`echo msvcrt'_'wcslen | sed 'y%./+-%__p_%'` |
12979 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
12980 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12981 | else | |
12982 | ac_save_LIBS="$LIBS" | |
12983 | LIBS="-lmsvcrt $LIBS" | |
12984 | cat > conftest.$ac_ext <<EOF | |
b3e8d00a | 12985 | #line 12986 "configure" |
18dbb1f6 VZ |
12986 | #include "confdefs.h" |
12987 | /* Override any gcc2 internal prototype to avoid an error. */ | |
12988 | /* We use char because int might match the return type of a gcc2 | |
12989 | builtin and then its argument prototype would still apply. */ | |
12990 | char wcslen(); | |
12991 | ||
12992 | int main() { | |
12993 | wcslen() | |
12994 | ; return 0; } | |
12995 | EOF | |
b3e8d00a | 12996 | if { (eval echo configure:12997: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
18dbb1f6 VZ |
12997 | rm -rf conftest* |
12998 | eval "ac_cv_lib_$ac_lib_var=yes" | |
12999 | else | |
13000 | echo "configure: failed program was:" >&5 | |
13001 | cat conftest.$ac_ext >&5 | |
13002 | rm -rf conftest* | |
13003 | eval "ac_cv_lib_$ac_lib_var=no" | |
13004 | fi | |
13005 | rm -f conftest* | |
13006 | LIBS="$ac_save_LIBS" | |
13007 | ||
13008 | fi | |
13009 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
13010 | echo "$ac_t""yes" 1>&6 | |
13011 | ||
13012 | cat >> confdefs.h <<\EOF | |
13013 | #define HAVE_WCSLEN 1 | |
13014 | EOF | |
13015 | ||
13016 | WCHAR_LINK="" | |
13017 | ||
698dcdb6 VZ |
13018 | else |
13019 | echo "$ac_t""no" 1>&6 | |
6232543b | 13020 | fi |
10f2d63a | 13021 | |
18dbb1f6 VZ |
13022 | |
13023 | fi | |
13024 | ||
698dcdb6 | 13025 | |
1e487827 | 13026 | fi |
703e0a69 | 13027 | |
698dcdb6 | 13028 | |
b3e8d00a VZ |
13029 | for ac_func in wcsrtombs |
13030 | do | |
13031 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
13032 | echo "configure:13033: checking for $ac_func" >&5 | |
13033 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then | |
13034 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13035 | else | |
13036 | cat > conftest.$ac_ext <<EOF | |
13037 | #line 13038 "configure" | |
13038 | #include "confdefs.h" | |
13039 | /* System header to define __stub macros and hopefully few prototypes, | |
13040 | which can conflict with char $ac_func(); below. */ | |
13041 | #include <assert.h> | |
13042 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13043 | /* We use char because int might match the return type of a gcc2 | |
13044 | builtin and then its argument prototype would still apply. */ | |
13045 | char $ac_func(); | |
13046 | ||
13047 | int main() { | |
13048 | ||
13049 | /* The GNU C library defines this for functions which it implements | |
13050 | to always fail with ENOSYS. Some functions are actually named | |
13051 | something starting with __ and the normal name is an alias. */ | |
13052 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
13053 | choke me | |
13054 | #else | |
13055 | $ac_func(); | |
13056 | #endif | |
13057 | ||
13058 | ; return 0; } | |
13059 | EOF | |
13060 | if { (eval echo configure:13061: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
13061 | rm -rf conftest* | |
13062 | eval "ac_cv_func_$ac_func=yes" | |
13063 | else | |
13064 | echo "configure: failed program was:" >&5 | |
13065 | cat conftest.$ac_ext >&5 | |
13066 | rm -rf conftest* | |
13067 | eval "ac_cv_func_$ac_func=no" | |
13068 | fi | |
13069 | rm -f conftest* | |
13070 | fi | |
13071 | ||
13072 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
13073 | echo "$ac_t""yes" 1>&6 | |
13074 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
13075 | cat >> confdefs.h <<EOF | |
13076 | #define $ac_tr_func 1 | |
13077 | EOF | |
13078 | ||
13079 | else | |
13080 | echo "$ac_t""no" 1>&6 | |
13081 | fi | |
13082 | done | |
13083 | ||
13084 | ||
698dcdb6 | 13085 | echo $ac_n "checking for vprintf""... $ac_c" 1>&6 |
b3e8d00a | 13086 | echo "configure:13087: checking for vprintf" >&5 |
698dcdb6 VZ |
13087 | if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then |
13088 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13089 | else | |
13090 | cat > conftest.$ac_ext <<EOF | |
b3e8d00a | 13091 | #line 13092 "configure" |
10f2d63a VZ |
13092 | #include "confdefs.h" |
13093 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 13094 | which can conflict with char vprintf(); below. */ |
10f2d63a VZ |
13095 | #include <assert.h> |
13096 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13097 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
13098 | builtin and then its argument prototype would still apply. */ |
13099 | char vprintf(); | |
13100 | ||
13101 | int main() { | |
10f2d63a VZ |
13102 | |
13103 | /* The GNU C library defines this for functions which it implements | |
13104 | to always fail with ENOSYS. Some functions are actually named | |
13105 | something starting with __ and the normal name is an alias. */ | |
698dcdb6 | 13106 | #if defined (__stub_vprintf) || defined (__stub___vprintf) |
10f2d63a VZ |
13107 | choke me |
13108 | #else | |
698dcdb6 | 13109 | vprintf(); |
10f2d63a VZ |
13110 | #endif |
13111 | ||
698dcdb6 VZ |
13112 | ; return 0; } |
13113 | EOF | |
b3e8d00a | 13114 | if { (eval echo configure:13115: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
13115 | rm -rf conftest* |
13116 | eval "ac_cv_func_vprintf=yes" | |
13117 | else | |
13118 | echo "configure: failed program was:" >&5 | |
13119 | cat conftest.$ac_ext >&5 | |
13120 | rm -rf conftest* | |
13121 | eval "ac_cv_func_vprintf=no" | |
13122 | fi | |
13123 | rm -f conftest* | |
13124 | fi | |
13125 | ||
13126 | if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then | |
13127 | echo "$ac_t""yes" 1>&6 | |
13128 | cat >> confdefs.h <<\EOF | |
13129 | #define HAVE_VPRINTF 1 | |
13130 | EOF | |
13131 | ||
13132 | else | |
13133 | echo "$ac_t""no" 1>&6 | |
13134 | fi | |
13135 | ||
13136 | if test "$ac_cv_func_vprintf" != yes; then | |
13137 | echo $ac_n "checking for _doprnt""... $ac_c" 1>&6 | |
b3e8d00a | 13138 | echo "configure:13139: checking for _doprnt" >&5 |
698dcdb6 VZ |
13139 | if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then |
13140 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13141 | else | |
13142 | cat > conftest.$ac_ext <<EOF | |
b3e8d00a | 13143 | #line 13144 "configure" |
10f2d63a VZ |
13144 | #include "confdefs.h" |
13145 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 13146 | which can conflict with char _doprnt(); below. */ |
10f2d63a VZ |
13147 | #include <assert.h> |
13148 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13149 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
13150 | builtin and then its argument prototype would still apply. */ |
13151 | char _doprnt(); | |
13152 | ||
13153 | int main() { | |
10f2d63a VZ |
13154 | |
13155 | /* The GNU C library defines this for functions which it implements | |
13156 | to always fail with ENOSYS. Some functions are actually named | |
13157 | something starting with __ and the normal name is an alias. */ | |
13158 | #if defined (__stub__doprnt) || defined (__stub____doprnt) | |
13159 | choke me | |
13160 | #else | |
698dcdb6 | 13161 | _doprnt(); |
10f2d63a VZ |
13162 | #endif |
13163 | ||
698dcdb6 VZ |
13164 | ; return 0; } |
13165 | EOF | |
b3e8d00a | 13166 | if { (eval echo configure:13167: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
13167 | rm -rf conftest* |
13168 | eval "ac_cv_func__doprnt=yes" | |
13169 | else | |
13170 | echo "configure: failed program was:" >&5 | |
13171 | cat conftest.$ac_ext >&5 | |
13172 | rm -rf conftest* | |
13173 | eval "ac_cv_func__doprnt=no" | |
13174 | fi | |
13175 | rm -f conftest* | |
13176 | fi | |
13177 | ||
13178 | if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then | |
13179 | echo "$ac_t""yes" 1>&6 | |
13180 | cat >> confdefs.h <<\EOF | |
10f2d63a VZ |
13181 | #define HAVE_DOPRNT 1 |
13182 | EOF | |
13183 | ||
698dcdb6 VZ |
13184 | else |
13185 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
13186 | fi |
13187 | ||
13188 | fi | |
13189 | ||
1e487827 | 13190 | |
698dcdb6 VZ |
13191 | |
13192 | ||
13193 | ||
13194 | ||
698dcdb6 | 13195 | echo $ac_n "checking for vsnprintf""... $ac_c" 1>&6 |
b3e8d00a | 13196 | echo "configure:13197: checking for vsnprintf" >&5 |
698dcdb6 VZ |
13197 | if eval "test \"`echo '$''{'wx_cv_func_vsnprintf'+set}'`\" = set"; then |
13198 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13199 | else | |
13200 | ||
13201 | cat > conftest.$ac_ext <<EOF | |
b3e8d00a | 13202 | #line 13203 "configure" |
f6bcfd97 BP |
13203 | #include "confdefs.h" |
13204 | ||
13205 | #include <stdio.h> | |
698dcdb6 VZ |
13206 | #include <stdarg.h> |
13207 | ||
13208 | int main() { | |
10f2d63a | 13209 | |
f6bcfd97 | 13210 | int wx_test_vsnprintf(const char *, ...); |
10f2d63a | 13211 | |
f6bcfd97 BP |
13212 | wx_test_vsnprintf("%s"); |
13213 | return 0; | |
13214 | } | |
13215 | ||
13216 | int wx_test_vsnprintf(const char *fmt, ...) | |
13217 | { | |
13218 | char *s; | |
13219 | ||
13220 | va_list argp; | |
13221 | va_start(argp, fmt); | |
13222 | vsnprintf(s, 42, fmt, argp); | |
13223 | va_end(argp); | |
698dcdb6 VZ |
13224 | |
13225 | ; return 0; } | |
13226 | EOF | |
b3e8d00a | 13227 | if { (eval echo configure:13228: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 VZ |
13228 | rm -rf conftest* |
13229 | ||
f6bcfd97 | 13230 | wx_cv_func_vsnprintf=yes |
698dcdb6 | 13231 | |
10f2d63a | 13232 | else |
698dcdb6 VZ |
13233 | echo "configure: failed program was:" >&5 |
13234 | cat conftest.$ac_ext >&5 | |
13235 | rm -rf conftest* | |
13236 | ||
13237 | cat > conftest.$ac_ext <<EOF | |
b3e8d00a | 13238 | #line 13239 "configure" |
c521c494 RL |
13239 | #include "confdefs.h" |
13240 | ||
13241 | #include <stdio.h> | |
13242 | #include <stdarg.h> | |
698dcdb6 VZ |
13243 | |
13244 | int main() { | |
c521c494 RL |
13245 | |
13246 | int wx_test_vsnprintf(const char *, ...); | |
13247 | ||
13248 | wx_test_vsnprintf("%s"); | |
13249 | return 0; | |
13250 | } | |
13251 | ||
13252 | int wx_test_vsnprintf(const char *fmt, ...) | |
13253 | { | |
13254 | char *s; | |
13255 | ||
13256 | va_list argp; | |
13257 | va_start(argp, fmt); | |
13258 | _vsnprintf(s, 42, fmt, argp); | |
13259 | va_end(argp); | |
698dcdb6 VZ |
13260 | |
13261 | ; return 0; } | |
13262 | EOF | |
b3e8d00a | 13263 | if { (eval echo configure:13264: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 VZ |
13264 | rm -rf conftest* |
13265 | ||
c521c494 | 13266 | wx_cv_func_vsnprintf=yes |
698dcdb6 | 13267 | |
c521c494 | 13268 | else |
698dcdb6 VZ |
13269 | echo "configure: failed program was:" >&5 |
13270 | cat conftest.$ac_ext >&5 | |
13271 | rm -rf conftest* | |
13272 | ||
c521c494 | 13273 | wx_cv_func_vsnprintf=no |
698dcdb6 | 13274 | |
10f2d63a | 13275 | fi |
698dcdb6 VZ |
13276 | rm -f conftest* |
13277 | ||
6232543b | 13278 | fi |
698dcdb6 | 13279 | rm -f conftest* |
703e0a69 | 13280 | |
1e487827 | 13281 | fi |
698dcdb6 VZ |
13282 | |
13283 | echo "$ac_t""$wx_cv_func_vsnprintf" 1>&6 | |
10f2d63a | 13284 | |
9d8deca0 | 13285 | if test "$wx_cv_func_vsnprintf" = yes; then |
698dcdb6 | 13286 | cat >> confdefs.h <<\EOF |
9d8deca0 VZ |
13287 | #define HAVE_VSNPRINTF 1 |
13288 | EOF | |
13289 | ||
13290 | else | |
698dcdb6 | 13291 | echo "configure: warning: unsafe function sprintf will be used instead of snprintf" 1>&2 |
9d8deca0 VZ |
13292 | fi |
13293 | ||
698dcdb6 | 13294 | echo $ac_n "checking for vsscanf""... $ac_c" 1>&6 |
b3e8d00a | 13295 | echo "configure:13296: checking for vsscanf" >&5 |
698dcdb6 VZ |
13296 | if eval "test \"`echo '$''{'wx_cv_func_vsscanf'+set}'`\" = set"; then |
13297 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 13298 | else |
698dcdb6 VZ |
13299 | |
13300 | cat > conftest.$ac_ext <<EOF | |
b3e8d00a | 13301 | #line 13302 "configure" |
10f2d63a | 13302 | #include "confdefs.h" |
10f2d63a | 13303 | |
f6bcfd97 BP |
13304 | #include <stdio.h> |
13305 | #include <stdarg.h> | |
698dcdb6 VZ |
13306 | |
13307 | int main() { | |
10f2d63a | 13308 | |
f6bcfd97 | 13309 | int wx_test_vsscanf(const char *, ...); |
10f2d63a | 13310 | |
f6bcfd97 BP |
13311 | wx_test_vsscanf("%d"); |
13312 | return 0; | |
10f2d63a VZ |
13313 | } |
13314 | ||
f6bcfd97 | 13315 | int wx_test_vsscanf(const char *fmt, ...) |
10f2d63a | 13316 | { |
f6bcfd97 BP |
13317 | va_list argp; |
13318 | va_start(argp, fmt); | |
13319 | vsscanf("42", fmt, argp); | |
13320 | va_end(argp); | |
698dcdb6 VZ |
13321 | |
13322 | ; return 0; } | |
13323 | EOF | |
b3e8d00a | 13324 | if { (eval echo configure:13325: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 VZ |
13325 | rm -rf conftest* |
13326 | ||
f6bcfd97 | 13327 | wx_cv_func_vsscanf=yes |
698dcdb6 | 13328 | |
10f2d63a | 13329 | else |
698dcdb6 VZ |
13330 | echo "configure: failed program was:" >&5 |
13331 | cat conftest.$ac_ext >&5 | |
13332 | rm -rf conftest* | |
13333 | ||
f6bcfd97 | 13334 | wx_cv_func_vsscanf=no |
698dcdb6 | 13335 | |
6232543b | 13336 | fi |
698dcdb6 | 13337 | rm -f conftest* |
703e0a69 | 13338 | |
1e487827 | 13339 | fi |
698dcdb6 VZ |
13340 | |
13341 | echo "$ac_t""$wx_cv_func_vsscanf" 1>&6 | |
10f2d63a | 13342 | |
9d8deca0 | 13343 | if test "$wx_cv_func_vsscanf" = yes; then |
698dcdb6 | 13344 | cat >> confdefs.h <<\EOF |
9d8deca0 VZ |
13345 | #define HAVE_VSSCANF 1 |
13346 | EOF | |
13347 | ||
13348 | fi | |
13349 | ||
95c8801c VS |
13350 | if test "$TOOLKIT" != "MSW"; then |
13351 | ||
13352 | ||
13353 | ||
698dcdb6 VZ |
13354 | ac_ext=C |
13355 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
13356 | ac_cpp='$CXXCPP $CPPFLAGS' | |
13357 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
13358 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
13359 | cross_compiling=$ac_cv_prog_cxx_cross | |
13360 | ||
13361 | echo $ac_n "checking if iconv() takes char**""... $ac_c" 1>&6 | |
b3e8d00a | 13362 | echo "configure:13363: checking if iconv() takes char**" >&5 |
698dcdb6 VZ |
13363 | if eval "test \"`echo '$''{'wx_cv_iconv_takes_char'+set}'`\" = set"; then |
13364 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13365 | else | |
13366 | ||
13367 | cat > conftest.$ac_ext <<EOF | |
b3e8d00a | 13368 | #line 13369 "configure" |
95c8801c VS |
13369 | #include "confdefs.h" |
13370 | #include <iconv.h> | |
698dcdb6 | 13371 | int main() { |
95c8801c VS |
13372 | |
13373 | char **inbuf, **outbuf; | |
19af3b06 VZ |
13374 | iconv_t cd; |
13375 | size_t insz, outsz; | |
13376 | iconv(cd, inbuf, &insz, outbuf, &outsz); | |
698dcdb6 VZ |
13377 | |
13378 | ; return 0; } | |
13379 | EOF | |
b3e8d00a | 13380 | if { (eval echo configure:13381: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 | 13381 | rm -rf conftest* |
95c8801c VS |
13382 | wx_cv_iconv_takes_char=yes |
13383 | else | |
698dcdb6 VZ |
13384 | echo "configure: failed program was:" >&5 |
13385 | cat conftest.$ac_ext >&5 | |
13386 | rm -rf conftest* | |
13387 | wx_cv_iconv_takes_char=no | |
95c8801c | 13388 | fi |
698dcdb6 | 13389 | rm -f conftest* |
95c8801c VS |
13390 | |
13391 | fi | |
698dcdb6 VZ |
13392 | |
13393 | echo "$ac_t""$wx_cv_iconv_takes_char" 1>&6 | |
10f2d63a | 13394 | ac_ext=c |
698dcdb6 | 13395 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
10f2d63a | 13396 | ac_cpp='$CPP $CPPFLAGS' |
698dcdb6 VZ |
13397 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
13398 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
13399 | cross_compiling=$ac_cv_prog_cc_cross | |
10f2d63a | 13400 | |
95c8801c | 13401 | if test "$wx_cv_iconv_takes_char" = yes ; then |
698dcdb6 | 13402 | cat >> confdefs.h <<\EOF |
95c8801c VS |
13403 | #define WX_ICONV_TAKES_CHAR 1 |
13404 | EOF | |
13405 | ||
13406 | fi | |
10f2d63a | 13407 | |
1e487827 | 13408 | |
698dcdb6 VZ |
13409 | if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then |
13410 | for ac_func in sigaction | |
eb4efbdc | 13411 | do |
698dcdb6 | 13412 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
b3e8d00a | 13413 | echo "configure:13414: checking for $ac_func" >&5 |
698dcdb6 VZ |
13414 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
13415 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13416 | else | |
13417 | cat > conftest.$ac_ext <<EOF | |
b3e8d00a | 13418 | #line 13419 "configure" |
eb4efbdc VZ |
13419 | #include "confdefs.h" |
13420 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 13421 | which can conflict with char $ac_func(); below. */ |
eb4efbdc VZ |
13422 | #include <assert.h> |
13423 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13424 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
13425 | builtin and then its argument prototype would still apply. */ |
13426 | char $ac_func(); | |
13427 | ||
13428 | int main() { | |
eb4efbdc VZ |
13429 | |
13430 | /* The GNU C library defines this for functions which it implements | |
13431 | to always fail with ENOSYS. Some functions are actually named | |
13432 | something starting with __ and the normal name is an alias. */ | |
13433 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
13434 | choke me | |
13435 | #else | |
698dcdb6 | 13436 | $ac_func(); |
eb4efbdc VZ |
13437 | #endif |
13438 | ||
698dcdb6 | 13439 | ; return 0; } |
eb4efbdc | 13440 | EOF |
b3e8d00a | 13441 | if { (eval echo configure:13442: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
13442 | rm -rf conftest* |
13443 | eval "ac_cv_func_$ac_func=yes" | |
13444 | else | |
13445 | echo "configure: failed program was:" >&5 | |
13446 | cat conftest.$ac_ext >&5 | |
13447 | rm -rf conftest* | |
13448 | eval "ac_cv_func_$ac_func=no" | |
13449 | fi | |
13450 | rm -f conftest* | |
13451 | fi | |
eb4efbdc | 13452 | |
698dcdb6 VZ |
13453 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
13454 | echo "$ac_t""yes" 1>&6 | |
13455 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
13456 | cat >> confdefs.h <<EOF | |
13457 | #define $ac_tr_func 1 | |
13458 | EOF | |
13459 | ||
13460 | else | |
13461 | echo "$ac_t""no" 1>&6 | |
eb4efbdc VZ |
13462 | fi |
13463 | done | |
13464 | ||
698dcdb6 | 13465 | |
eb4efbdc | 13466 | if test "$ac_cv_func_sigaction" = "no"; then |
698dcdb6 | 13467 | echo "configure: warning: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" 1>&2 |
eb4efbdc VZ |
13468 | wxUSE_ON_FATAL_EXCEPTION=no |
13469 | fi | |
f6bcfd97 BP |
13470 | |
13471 | if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then | |
698dcdb6 VZ |
13472 | |
13473 | ac_ext=C | |
13474 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
1e487827 | 13475 | ac_cpp='$CXXCPP $CPPFLAGS' |
698dcdb6 VZ |
13476 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
13477 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
13478 | cross_compiling=$ac_cv_prog_cxx_cross | |
6232543b | 13479 | |
1e487827 | 13480 | |
698dcdb6 | 13481 | echo $ac_n "checking for sa_handler type""... $ac_c" 1>&6 |
b3e8d00a | 13482 | echo "configure:13483: checking for sa_handler type" >&5 |
698dcdb6 VZ |
13483 | if eval "test \"`echo '$''{'wx_cv_type_sa_handler'+set}'`\" = set"; then |
13484 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13485 | else | |
13486 | ||
13487 | cat > conftest.$ac_ext <<EOF | |
b3e8d00a | 13488 | #line 13489 "configure" |
f6bcfd97 BP |
13489 | #include "confdefs.h" |
13490 | #include <signal.h> | |
698dcdb6 | 13491 | int main() { |
f6bcfd97 BP |
13492 | |
13493 | extern void testSigHandler(int); | |
13494 | ||
13495 | struct sigaction sa; | |
13496 | sa.sa_handler = testSigHandler; | |
698dcdb6 VZ |
13497 | |
13498 | ; return 0; } | |
13499 | EOF | |
b3e8d00a | 13500 | if { (eval echo configure:13501: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 VZ |
13501 | rm -rf conftest* |
13502 | ||
f6bcfd97 | 13503 | wx_cv_type_sa_handler=int |
698dcdb6 | 13504 | |
f6bcfd97 | 13505 | else |
698dcdb6 VZ |
13506 | echo "configure: failed program was:" >&5 |
13507 | cat conftest.$ac_ext >&5 | |
13508 | rm -rf conftest* | |
13509 | ||
f6bcfd97 | 13510 | wx_cv_type_sa_handler=void |
698dcdb6 | 13511 | |
6232543b | 13512 | fi |
698dcdb6 VZ |
13513 | rm -f conftest* |
13514 | ||
1e487827 | 13515 | fi |
698dcdb6 VZ |
13516 | |
13517 | echo "$ac_t""$wx_cv_type_sa_handler" 1>&6 | |
f6bcfd97 BP |
13518 | |
13519 | ac_ext=c | |
698dcdb6 | 13520 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
f6bcfd97 | 13521 | ac_cpp='$CPP $CPPFLAGS' |
698dcdb6 VZ |
13522 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
13523 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
13524 | cross_compiling=$ac_cv_prog_cc_cross | |
13525 | ||
703e0a69 | 13526 | |
698dcdb6 | 13527 | cat >> confdefs.h <<EOF |
f6bcfd97 BP |
13528 | #define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler |
13529 | EOF | |
13530 | ||
13531 | fi | |
eb4efbdc VZ |
13532 | fi |
13533 | ||
10f2d63a VZ |
13534 | for ac_func in vfork |
13535 | do | |
698dcdb6 | 13536 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
b3e8d00a | 13537 | echo "configure:13538: checking for $ac_func" >&5 |
698dcdb6 VZ |
13538 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
13539 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13540 | else | |
13541 | cat > conftest.$ac_ext <<EOF | |
b3e8d00a | 13542 | #line 13543 "configure" |
10f2d63a VZ |
13543 | #include "confdefs.h" |
13544 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 13545 | which can conflict with char $ac_func(); below. */ |
10f2d63a VZ |
13546 | #include <assert.h> |
13547 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13548 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
13549 | builtin and then its argument prototype would still apply. */ |
13550 | char $ac_func(); | |
13551 | ||
13552 | int main() { | |
10f2d63a VZ |
13553 | |
13554 | /* The GNU C library defines this for functions which it implements | |
13555 | to always fail with ENOSYS. Some functions are actually named | |
13556 | something starting with __ and the normal name is an alias. */ | |
13557 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
13558 | choke me | |
13559 | #else | |
698dcdb6 | 13560 | $ac_func(); |
10f2d63a VZ |
13561 | #endif |
13562 | ||
698dcdb6 | 13563 | ; return 0; } |
10f2d63a | 13564 | EOF |
b3e8d00a | 13565 | if { (eval echo configure:13566: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
13566 | rm -rf conftest* |
13567 | eval "ac_cv_func_$ac_func=yes" | |
13568 | else | |
13569 | echo "configure: failed program was:" >&5 | |
13570 | cat conftest.$ac_ext >&5 | |
13571 | rm -rf conftest* | |
13572 | eval "ac_cv_func_$ac_func=no" | |
13573 | fi | |
13574 | rm -f conftest* | |
13575 | fi | |
270a909e | 13576 | |
698dcdb6 VZ |
13577 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
13578 | echo "$ac_t""yes" 1>&6 | |
13579 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
13580 | cat >> confdefs.h <<EOF | |
13581 | #define $ac_tr_func 1 | |
13582 | EOF | |
13583 | ||
13584 | else | |
13585 | echo "$ac_t""no" 1>&6 | |
270a909e VZ |
13586 | fi |
13587 | done | |
13588 | ||
1e487827 | 13589 | |
52e8b690 | 13590 | echo $ac_n "checking for statfs""... $ac_c" 1>&6 |
b3e8d00a | 13591 | echo "configure:13592: checking for statfs" >&5 |
52e8b690 VZ |
13592 | if eval "test \"`echo '$''{'wx_cv_func_statfs'+set}'`\" = set"; then |
13593 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13594 | else | |
13595 | cat > conftest.$ac_ext <<EOF | |
b3e8d00a | 13596 | #line 13597 "configure" |
52e8b690 VZ |
13597 | #include "confdefs.h" |
13598 | ||
13599 | #include <sys/vfs.h> | |
13600 | ||
13601 | int main() { | |
13602 | ||
13603 | long l; | |
13604 | struct statfs fs; | |
13605 | statfs("/", &fs); | |
13606 | l = fs.f_bsize; | |
13607 | l += fs.f_blocks; | |
13608 | l += fs.f_bavail; | |
13609 | ||
13610 | ; return 0; } | |
13611 | EOF | |
b3e8d00a | 13612 | if { (eval echo configure:13613: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
52e8b690 VZ |
13613 | rm -rf conftest* |
13614 | ||
13615 | wx_cv_func_statfs=yes | |
13616 | ||
13617 | else | |
13618 | echo "configure: failed program was:" >&5 | |
13619 | cat conftest.$ac_ext >&5 | |
13620 | rm -rf conftest* | |
13621 | ||
13622 | wx_cv_func_statfs=no | |
13623 | ||
13624 | ||
13625 | fi | |
13626 | rm -f conftest* | |
13627 | ||
13628 | fi | |
13629 | ||
13630 | echo "$ac_t""$wx_cv_func_statfs" 1>&6 | |
13631 | ||
13632 | if test "$wx_cv_func_statfs" = "yes"; then | |
13633 | cat >> confdefs.h <<\EOF | |
13634 | #define HAVE_STATFS 1 | |
13635 | EOF | |
13636 | ||
13637 | else | |
13638 | echo "configure: warning: wxGetDiskSpace() function won't work without statfs()" 1>&2 | |
13639 | fi | |
13640 | ||
698dcdb6 VZ |
13641 | if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then |
13642 | for ac_func in fcntl flock | |
4f3c5f06 | 13643 | do |
698dcdb6 | 13644 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
b3e8d00a | 13645 | echo "configure:13646: checking for $ac_func" >&5 |
698dcdb6 VZ |
13646 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
13647 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13648 | else | |
13649 | cat > conftest.$ac_ext <<EOF | |
b3e8d00a | 13650 | #line 13651 "configure" |
4f3c5f06 VZ |
13651 | #include "confdefs.h" |
13652 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 13653 | which can conflict with char $ac_func(); below. */ |
4f3c5f06 VZ |
13654 | #include <assert.h> |
13655 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13656 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
13657 | builtin and then its argument prototype would still apply. */ |
13658 | char $ac_func(); | |
13659 | ||
13660 | int main() { | |
4f3c5f06 VZ |
13661 | |
13662 | /* The GNU C library defines this for functions which it implements | |
13663 | to always fail with ENOSYS. Some functions are actually named | |
13664 | something starting with __ and the normal name is an alias. */ | |
13665 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
13666 | choke me | |
13667 | #else | |
698dcdb6 | 13668 | $ac_func(); |
4f3c5f06 VZ |
13669 | #endif |
13670 | ||
698dcdb6 VZ |
13671 | ; return 0; } |
13672 | EOF | |
b3e8d00a | 13673 | if { (eval echo configure:13674: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
13674 | rm -rf conftest* |
13675 | eval "ac_cv_func_$ac_func=yes" | |
13676 | else | |
13677 | echo "configure: failed program was:" >&5 | |
13678 | cat conftest.$ac_ext >&5 | |
13679 | rm -rf conftest* | |
13680 | eval "ac_cv_func_$ac_func=no" | |
13681 | fi | |
13682 | rm -f conftest* | |
13683 | fi | |
13684 | ||
13685 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
13686 | echo "$ac_t""yes" 1>&6 | |
13687 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
13688 | cat >> confdefs.h <<EOF | |
13689 | #define $ac_tr_func 1 | |
4f3c5f06 VZ |
13690 | EOF |
13691 | break | |
698dcdb6 VZ |
13692 | else |
13693 | echo "$ac_t""no" 1>&6 | |
4f3c5f06 VZ |
13694 | fi |
13695 | done | |
13696 | ||
698dcdb6 | 13697 | |
4f3c5f06 | 13698 | if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then |
698dcdb6 | 13699 | echo "configure: warning: wxSingleInstanceChecker not available" 1>&2 |
4f3c5f06 VZ |
13700 | wxUSE_SNGLINST_CHECKER=no |
13701 | fi | |
13702 | fi | |
13703 | ||
270a909e VZ |
13704 | for ac_func in timegm |
13705 | do | |
698dcdb6 | 13706 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
b3e8d00a | 13707 | echo "configure:13708: checking for $ac_func" >&5 |
698dcdb6 VZ |
13708 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
13709 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13710 | else | |
13711 | cat > conftest.$ac_ext <<EOF | |
b3e8d00a | 13712 | #line 13713 "configure" |
270a909e VZ |
13713 | #include "confdefs.h" |
13714 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 13715 | which can conflict with char $ac_func(); below. */ |
270a909e VZ |
13716 | #include <assert.h> |
13717 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13718 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
13719 | builtin and then its argument prototype would still apply. */ |
13720 | char $ac_func(); | |
13721 | ||
13722 | int main() { | |
270a909e VZ |
13723 | |
13724 | /* The GNU C library defines this for functions which it implements | |
13725 | to always fail with ENOSYS. Some functions are actually named | |
13726 | something starting with __ and the normal name is an alias. */ | |
13727 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
13728 | choke me | |
13729 | #else | |
698dcdb6 | 13730 | $ac_func(); |
270a909e VZ |
13731 | #endif |
13732 | ||
698dcdb6 | 13733 | ; return 0; } |
270a909e | 13734 | EOF |
b3e8d00a | 13735 | if { (eval echo configure:13736: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
13736 | rm -rf conftest* |
13737 | eval "ac_cv_func_$ac_func=yes" | |
13738 | else | |
13739 | echo "configure: failed program was:" >&5 | |
13740 | cat conftest.$ac_ext >&5 | |
13741 | rm -rf conftest* | |
13742 | eval "ac_cv_func_$ac_func=no" | |
13743 | fi | |
13744 | rm -f conftest* | |
13745 | fi | |
10f2d63a | 13746 | |
698dcdb6 VZ |
13747 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
13748 | echo "$ac_t""yes" 1>&6 | |
13749 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
13750 | cat >> confdefs.h <<EOF | |
13751 | #define $ac_tr_func 1 | |
13752 | EOF | |
13753 | ||
13754 | else | |
13755 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
13756 | fi |
13757 | done | |
13758 | ||
698dcdb6 | 13759 | |
8fd0d89b VZ |
13760 | for ac_func in putenv setenv |
13761 | do | |
698dcdb6 | 13762 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
b3e8d00a | 13763 | echo "configure:13764: checking for $ac_func" >&5 |
698dcdb6 VZ |
13764 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
13765 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13766 | else | |
13767 | cat > conftest.$ac_ext <<EOF | |
b3e8d00a | 13768 | #line 13769 "configure" |
8fd0d89b VZ |
13769 | #include "confdefs.h" |
13770 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 13771 | which can conflict with char $ac_func(); below. */ |
8fd0d89b VZ |
13772 | #include <assert.h> |
13773 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13774 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
13775 | builtin and then its argument prototype would still apply. */ |
13776 | char $ac_func(); | |
13777 | ||
13778 | int main() { | |
8fd0d89b VZ |
13779 | |
13780 | /* The GNU C library defines this for functions which it implements | |
13781 | to always fail with ENOSYS. Some functions are actually named | |
13782 | something starting with __ and the normal name is an alias. */ | |
13783 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
13784 | choke me | |
13785 | #else | |
698dcdb6 | 13786 | $ac_func(); |
8fd0d89b VZ |
13787 | #endif |
13788 | ||
698dcdb6 VZ |
13789 | ; return 0; } |
13790 | EOF | |
b3e8d00a | 13791 | if { (eval echo configure:13792: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
13792 | rm -rf conftest* |
13793 | eval "ac_cv_func_$ac_func=yes" | |
13794 | else | |
13795 | echo "configure: failed program was:" >&5 | |
13796 | cat conftest.$ac_ext >&5 | |
13797 | rm -rf conftest* | |
13798 | eval "ac_cv_func_$ac_func=no" | |
13799 | fi | |
13800 | rm -f conftest* | |
13801 | fi | |
13802 | ||
13803 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
13804 | echo "$ac_t""yes" 1>&6 | |
13805 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
13806 | cat >> confdefs.h <<EOF | |
13807 | #define $ac_tr_func 1 | |
8fd0d89b VZ |
13808 | EOF |
13809 | break | |
698dcdb6 VZ |
13810 | else |
13811 | echo "$ac_t""no" 1>&6 | |
8fd0d89b VZ |
13812 | fi |
13813 | done | |
13814 | ||
698dcdb6 | 13815 | |
b12915c1 VZ |
13816 | HAVE_SOME_SLEEP_FUNC=0 |
13817 | if test "$USE_BEOS" = 1; then | |
698dcdb6 | 13818 | cat >> confdefs.h <<\EOF |
b12915c1 VZ |
13819 | #define HAVE_SLEEP 1 |
13820 | EOF | |
13821 | ||
13822 | HAVE_SOME_SLEEP_FUNC=1 | |
13823 | fi | |
13824 | ||
f11bdd03 | 13825 | if test "$USE_DARWIN" = 1; then |
698dcdb6 | 13826 | cat >> confdefs.h <<\EOF |
b4085ce6 GD |
13827 | #define HAVE_USLEEP 1 |
13828 | EOF | |
13829 | ||
13830 | HAVE_SOME_SLEEP_FUNC=1 | |
13831 | fi | |
13832 | ||
b12915c1 VZ |
13833 | if test "$HAVE_SOME_SLEEP_FUNC" != 1; then |
13834 | POSIX4_LINK= | |
698dcdb6 | 13835 | for ac_func in nanosleep |
10f2d63a | 13836 | do |
698dcdb6 | 13837 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
b3e8d00a | 13838 | echo "configure:13839: checking for $ac_func" >&5 |
698dcdb6 VZ |
13839 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
13840 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13841 | else | |
13842 | cat > conftest.$ac_ext <<EOF | |
b3e8d00a | 13843 | #line 13844 "configure" |
10f2d63a VZ |
13844 | #include "confdefs.h" |
13845 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 13846 | which can conflict with char $ac_func(); below. */ |
10f2d63a VZ |
13847 | #include <assert.h> |
13848 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13849 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
13850 | builtin and then its argument prototype would still apply. */ |
13851 | char $ac_func(); | |
13852 | ||
13853 | int main() { | |
10f2d63a VZ |
13854 | |
13855 | /* The GNU C library defines this for functions which it implements | |
13856 | to always fail with ENOSYS. Some functions are actually named | |
13857 | something starting with __ and the normal name is an alias. */ | |
13858 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
13859 | choke me | |
13860 | #else | |
698dcdb6 | 13861 | $ac_func(); |
10f2d63a VZ |
13862 | #endif |
13863 | ||
698dcdb6 VZ |
13864 | ; return 0; } |
13865 | EOF | |
b3e8d00a | 13866 | if { (eval echo configure:13867: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
13867 | rm -rf conftest* |
13868 | eval "ac_cv_func_$ac_func=yes" | |
13869 | else | |
13870 | echo "configure: failed program was:" >&5 | |
13871 | cat conftest.$ac_ext >&5 | |
13872 | rm -rf conftest* | |
13873 | eval "ac_cv_func_$ac_func=no" | |
13874 | fi | |
13875 | rm -f conftest* | |
13876 | fi | |
13877 | ||
13878 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
13879 | echo "$ac_t""yes" 1>&6 | |
13880 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
13881 | cat >> confdefs.h <<EOF | |
13882 | #define $ac_tr_func 1 | |
13883 | EOF | |
13884 | cat >> confdefs.h <<\EOF | |
10f2d63a VZ |
13885 | #define HAVE_NANOSLEEP 1 |
13886 | EOF | |
13887 | ||
13888 | else | |
698dcdb6 VZ |
13889 | echo "$ac_t""no" 1>&6 |
13890 | echo $ac_n "checking for nanosleep in -lposix4""... $ac_c" 1>&6 | |
b3e8d00a | 13891 | echo "configure:13892: checking for nanosleep in -lposix4" >&5 |
698dcdb6 VZ |
13892 | ac_lib_var=`echo posix4'_'nanosleep | sed 'y%./+-%__p_%'` |
13893 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
13894 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 13895 | else |
698dcdb6 | 13896 | ac_save_LIBS="$LIBS" |
10f2d63a | 13897 | LIBS="-lposix4 $LIBS" |
698dcdb6 | 13898 | cat > conftest.$ac_ext <<EOF |
b3e8d00a | 13899 | #line 13900 "configure" |
10f2d63a VZ |
13900 | #include "confdefs.h" |
13901 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13902 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
13903 | builtin and then its argument prototype would still apply. */ |
13904 | char nanosleep(); | |
13905 | ||
13906 | int main() { | |
13907 | nanosleep() | |
13908 | ; return 0; } | |
13909 | EOF | |
b3e8d00a | 13910 | if { (eval echo configure:13911: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
13911 | rm -rf conftest* |
13912 | eval "ac_cv_lib_$ac_lib_var=yes" | |
13913 | else | |
13914 | echo "configure: failed program was:" >&5 | |
13915 | cat conftest.$ac_ext >&5 | |
13916 | rm -rf conftest* | |
13917 | eval "ac_cv_lib_$ac_lib_var=no" | |
13918 | fi | |
13919 | rm -f conftest* | |
13920 | LIBS="$ac_save_LIBS" | |
13921 | ||
13922 | fi | |
13923 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
13924 | echo "$ac_t""yes" 1>&6 | |
13925 | ||
13926 | cat >> confdefs.h <<\EOF | |
10f2d63a VZ |
13927 | #define HAVE_NANOSLEEP 1 |
13928 | EOF | |
13929 | ||
b12915c1 | 13930 | POSIX4_LINK="-lposix4" |
698dcdb6 | 13931 | |
10f2d63a | 13932 | else |
698dcdb6 | 13933 | echo "$ac_t""no" 1>&6 |
10f2d63a | 13934 | |
698dcdb6 | 13935 | for ac_func in usleep |
10f2d63a | 13936 | do |
698dcdb6 | 13937 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
b3e8d00a | 13938 | echo "configure:13939: checking for $ac_func" >&5 |
698dcdb6 VZ |
13939 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
13940 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13941 | else | |
13942 | cat > conftest.$ac_ext <<EOF | |
b3e8d00a | 13943 | #line 13944 "configure" |
10f2d63a VZ |
13944 | #include "confdefs.h" |
13945 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 13946 | which can conflict with char $ac_func(); below. */ |
10f2d63a VZ |
13947 | #include <assert.h> |
13948 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13949 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
13950 | builtin and then its argument prototype would still apply. */ |
13951 | char $ac_func(); | |
13952 | ||
13953 | int main() { | |
10f2d63a VZ |
13954 | |
13955 | /* The GNU C library defines this for functions which it implements | |
13956 | to always fail with ENOSYS. Some functions are actually named | |
13957 | something starting with __ and the normal name is an alias. */ | |
13958 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
13959 | choke me | |
13960 | #else | |
698dcdb6 | 13961 | $ac_func(); |
10f2d63a VZ |
13962 | #endif |
13963 | ||
698dcdb6 VZ |
13964 | ; return 0; } |
13965 | EOF | |
b3e8d00a | 13966 | if { (eval echo configure:13967: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
13967 | rm -rf conftest* |
13968 | eval "ac_cv_func_$ac_func=yes" | |
13969 | else | |
13970 | echo "configure: failed program was:" >&5 | |
13971 | cat conftest.$ac_ext >&5 | |
13972 | rm -rf conftest* | |
13973 | eval "ac_cv_func_$ac_func=no" | |
13974 | fi | |
13975 | rm -f conftest* | |
13976 | fi | |
13977 | ||
13978 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
13979 | echo "$ac_t""yes" 1>&6 | |
13980 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
13981 | cat >> confdefs.h <<EOF | |
13982 | #define $ac_tr_func 1 | |
13983 | EOF | |
13984 | cat >> confdefs.h <<\EOF | |
b4085ce6 GD |
13985 | #define HAVE_USLEEP 1 |
13986 | EOF | |
13987 | ||
10f2d63a | 13988 | else |
698dcdb6 VZ |
13989 | echo "$ac_t""no" 1>&6 |
13990 | echo "configure: warning: wxSleep() function will not work" 1>&2 | |
13991 | ||
10f2d63a VZ |
13992 | fi |
13993 | done | |
13994 | ||
698dcdb6 VZ |
13995 | |
13996 | ||
10f2d63a VZ |
13997 | fi |
13998 | ||
698dcdb6 VZ |
13999 | |
14000 | ||
10f2d63a VZ |
14001 | fi |
14002 | done | |
14003 | ||
b12915c1 | 14004 | fi |
10f2d63a VZ |
14005 | |
14006 | for ac_func in uname gethostname | |
14007 | do | |
698dcdb6 | 14008 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
b3e8d00a | 14009 | echo "configure:14010: checking for $ac_func" >&5 |
698dcdb6 VZ |
14010 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
14011 | echo $ac_n "(cached) $ac_c" 1>&6 | |
14012 | else | |
14013 | cat > conftest.$ac_ext <<EOF | |
b3e8d00a | 14014 | #line 14015 "configure" |
10f2d63a VZ |
14015 | #include "confdefs.h" |
14016 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 14017 | which can conflict with char $ac_func(); below. */ |
10f2d63a VZ |
14018 | #include <assert.h> |
14019 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14020 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
14021 | builtin and then its argument prototype would still apply. */ |
14022 | char $ac_func(); | |
14023 | ||
14024 | int main() { | |
10f2d63a VZ |
14025 | |
14026 | /* The GNU C library defines this for functions which it implements | |
14027 | to always fail with ENOSYS. Some functions are actually named | |
14028 | something starting with __ and the normal name is an alias. */ | |
14029 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
14030 | choke me | |
14031 | #else | |
698dcdb6 | 14032 | $ac_func(); |
10f2d63a VZ |
14033 | #endif |
14034 | ||
698dcdb6 VZ |
14035 | ; return 0; } |
14036 | EOF | |
b3e8d00a | 14037 | if { (eval echo configure:14038: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
14038 | rm -rf conftest* |
14039 | eval "ac_cv_func_$ac_func=yes" | |
14040 | else | |
14041 | echo "configure: failed program was:" >&5 | |
14042 | cat conftest.$ac_ext >&5 | |
14043 | rm -rf conftest* | |
14044 | eval "ac_cv_func_$ac_func=no" | |
14045 | fi | |
14046 | rm -f conftest* | |
14047 | fi | |
14048 | ||
14049 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
14050 | echo "$ac_t""yes" 1>&6 | |
14051 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
14052 | cat >> confdefs.h <<EOF | |
14053 | #define $ac_tr_func 1 | |
10f2d63a VZ |
14054 | EOF |
14055 | break | |
698dcdb6 VZ |
14056 | else |
14057 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
14058 | fi |
14059 | done | |
14060 | ||
698dcdb6 VZ |
14061 | |
14062 | ||
14063 | ac_ext=C | |
14064 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
6098c7f9 | 14065 | ac_cpp='$CXXCPP $CPPFLAGS' |
698dcdb6 VZ |
14066 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
14067 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
14068 | cross_compiling=$ac_cv_prog_cxx_cross | |
14069 | ||
6098c7f9 | 14070 | |
10f2d63a VZ |
14071 | for ac_func in strtok_r |
14072 | do | |
698dcdb6 | 14073 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
b3e8d00a | 14074 | echo "configure:14075: checking for $ac_func" >&5 |
698dcdb6 VZ |
14075 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
14076 | echo $ac_n "(cached) $ac_c" 1>&6 | |
14077 | else | |
14078 | cat > conftest.$ac_ext <<EOF | |
b3e8d00a | 14079 | #line 14080 "configure" |
10f2d63a VZ |
14080 | #include "confdefs.h" |
14081 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 14082 | which can conflict with char $ac_func(); below. */ |
10f2d63a VZ |
14083 | #include <assert.h> |
14084 | /* Override any gcc2 internal prototype to avoid an error. */ | |
6098c7f9 VZ |
14085 | #ifdef __cplusplus |
14086 | extern "C" | |
14087 | #endif | |
10f2d63a | 14088 | /* We use char because int might match the return type of a gcc2 |
698dcdb6 VZ |
14089 | builtin and then its argument prototype would still apply. */ |
14090 | char $ac_func(); | |
14091 | ||
14092 | int main() { | |
10f2d63a VZ |
14093 | |
14094 | /* The GNU C library defines this for functions which it implements | |
14095 | to always fail with ENOSYS. Some functions are actually named | |
14096 | something starting with __ and the normal name is an alias. */ | |
14097 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
14098 | choke me | |
14099 | #else | |
698dcdb6 | 14100 | $ac_func(); |
10f2d63a VZ |
14101 | #endif |
14102 | ||
698dcdb6 | 14103 | ; return 0; } |
10f2d63a | 14104 | EOF |
b3e8d00a | 14105 | if { (eval echo configure:14106: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
14106 | rm -rf conftest* |
14107 | eval "ac_cv_func_$ac_func=yes" | |
14108 | else | |
14109 | echo "configure: failed program was:" >&5 | |
14110 | cat conftest.$ac_ext >&5 | |
14111 | rm -rf conftest* | |
14112 | eval "ac_cv_func_$ac_func=no" | |
14113 | fi | |
14114 | rm -f conftest* | |
14115 | fi | |
10f2d63a | 14116 | |
698dcdb6 VZ |
14117 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
14118 | echo "$ac_t""yes" 1>&6 | |
14119 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
14120 | cat >> confdefs.h <<EOF | |
14121 | #define $ac_tr_func 1 | |
14122 | EOF | |
14123 | ||
14124 | else | |
14125 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
14126 | fi |
14127 | done | |
14128 | ||
698dcdb6 | 14129 | |
6098c7f9 | 14130 | ac_ext=c |
698dcdb6 | 14131 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
6098c7f9 | 14132 | ac_cpp='$CPP $CPPFLAGS' |
698dcdb6 VZ |
14133 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
14134 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
14135 | cross_compiling=$ac_cv_prog_cc_cross | |
6232543b | 14136 | |
1e487827 | 14137 | |
698dcdb6 | 14138 | INET_LINK= |
10f2d63a VZ |
14139 | for ac_func in inet_addr |
14140 | do | |
698dcdb6 | 14141 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
b3e8d00a | 14142 | echo "configure:14143: checking for $ac_func" >&5 |
698dcdb6 VZ |
14143 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
14144 | echo $ac_n "(cached) $ac_c" 1>&6 | |
14145 | else | |
14146 | cat > conftest.$ac_ext <<EOF | |
b3e8d00a | 14147 | #line 14148 "configure" |
10f2d63a VZ |
14148 | #include "confdefs.h" |
14149 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 VZ |
14150 | which can conflict with char $ac_func(); below. */ |
14151 | #include <assert.h> | |
14152 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10f2d63a | 14153 | /* We use char because int might match the return type of a gcc2 |
698dcdb6 VZ |
14154 | builtin and then its argument prototype would still apply. */ |
14155 | char $ac_func(); | |
14156 | ||
14157 | int main() { | |
10f2d63a VZ |
14158 | |
14159 | /* The GNU C library defines this for functions which it implements | |
14160 | to always fail with ENOSYS. Some functions are actually named | |
1e487827 VS |
14161 | something starting with __ and the normal name is an alias. */ |
14162 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
14163 | choke me | |
14164 | #else | |
698dcdb6 | 14165 | $ac_func(); |
1e487827 | 14166 | #endif |
703e0a69 | 14167 | |
698dcdb6 VZ |
14168 | ; return 0; } |
14169 | EOF | |
b3e8d00a | 14170 | if { (eval echo configure:14171: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
14171 | rm -rf conftest* |
14172 | eval "ac_cv_func_$ac_func=yes" | |
14173 | else | |
14174 | echo "configure: failed program was:" >&5 | |
14175 | cat conftest.$ac_ext >&5 | |
14176 | rm -rf conftest* | |
14177 | eval "ac_cv_func_$ac_func=no" | |
14178 | fi | |
14179 | rm -f conftest* | |
14180 | fi | |
14181 | ||
14182 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
14183 | echo "$ac_t""yes" 1>&6 | |
14184 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
14185 | cat >> confdefs.h <<EOF | |
14186 | #define $ac_tr_func 1 | |
14187 | EOF | |
14188 | cat >> confdefs.h <<\EOF | |
c63c7106 VZ |
14189 | #define HAVE_INET_ADDR 1 |
14190 | EOF | |
14191 | ||
10f2d63a | 14192 | else |
698dcdb6 VZ |
14193 | echo "$ac_t""no" 1>&6 |
14194 | echo $ac_n "checking for inet_addr in -lnsl""... $ac_c" 1>&6 | |
b3e8d00a | 14195 | echo "configure:14196: checking for inet_addr in -lnsl" >&5 |
698dcdb6 VZ |
14196 | ac_lib_var=`echo nsl'_'inet_addr | sed 'y%./+-%__p_%'` |
14197 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
14198 | echo $ac_n "(cached) $ac_c" 1>&6 | |
c63c7106 | 14199 | else |
698dcdb6 | 14200 | ac_save_LIBS="$LIBS" |
c63c7106 | 14201 | LIBS="-lnsl $LIBS" |
698dcdb6 | 14202 | cat > conftest.$ac_ext <<EOF |
b3e8d00a | 14203 | #line 14204 "configure" |
c63c7106 VZ |
14204 | #include "confdefs.h" |
14205 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14206 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
14207 | builtin and then its argument prototype would still apply. */ |
14208 | char inet_addr(); | |
14209 | ||
14210 | int main() { | |
14211 | inet_addr() | |
14212 | ; return 0; } | |
14213 | EOF | |
b3e8d00a | 14214 | if { (eval echo configure:14215: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
14215 | rm -rf conftest* |
14216 | eval "ac_cv_lib_$ac_lib_var=yes" | |
14217 | else | |
14218 | echo "configure: failed program was:" >&5 | |
14219 | cat conftest.$ac_ext >&5 | |
14220 | rm -rf conftest* | |
14221 | eval "ac_cv_lib_$ac_lib_var=no" | |
14222 | fi | |
14223 | rm -f conftest* | |
14224 | LIBS="$ac_save_LIBS" | |
14225 | ||
14226 | fi | |
14227 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
14228 | echo "$ac_t""yes" 1>&6 | |
c63c7106 VZ |
14229 | INET_LINK="nsl" |
14230 | else | |
698dcdb6 VZ |
14231 | echo "$ac_t""no" 1>&6 |
14232 | echo $ac_n "checking for inet_addr in -lresolv""... $ac_c" 1>&6 | |
b3e8d00a | 14233 | echo "configure:14234: checking for inet_addr in -lresolv" >&5 |
698dcdb6 VZ |
14234 | ac_lib_var=`echo resolv'_'inet_addr | sed 'y%./+-%__p_%'` |
14235 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
14236 | echo $ac_n "(cached) $ac_c" 1>&6 | |
c63c7106 | 14237 | else |
698dcdb6 | 14238 | ac_save_LIBS="$LIBS" |
c63c7106 | 14239 | LIBS="-lresolv $LIBS" |
698dcdb6 | 14240 | cat > conftest.$ac_ext <<EOF |
b3e8d00a | 14241 | #line 14242 "configure" |
c63c7106 VZ |
14242 | #include "confdefs.h" |
14243 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14244 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
14245 | builtin and then its argument prototype would still apply. */ |
14246 | char inet_addr(); | |
14247 | ||
14248 | int main() { | |
14249 | inet_addr() | |
14250 | ; return 0; } | |
14251 | EOF | |
b3e8d00a | 14252 | if { (eval echo configure:14253: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
14253 | rm -rf conftest* |
14254 | eval "ac_cv_lib_$ac_lib_var=yes" | |
14255 | else | |
14256 | echo "configure: failed program was:" >&5 | |
14257 | cat conftest.$ac_ext >&5 | |
14258 | rm -rf conftest* | |
14259 | eval "ac_cv_lib_$ac_lib_var=no" | |
14260 | fi | |
14261 | rm -f conftest* | |
14262 | LIBS="$ac_save_LIBS" | |
c63c7106 | 14263 | |
6232543b | 14264 | fi |
698dcdb6 VZ |
14265 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
14266 | echo "$ac_t""yes" 1>&6 | |
14267 | INET_LINK="resolv" | |
14268 | ||
14269 | else | |
14270 | echo "$ac_t""no" 1>&6 | |
14271 | fi | |
c63c7106 | 14272 | |
698dcdb6 | 14273 | |
1e487827 | 14274 | fi |
703e0a69 | 14275 | |
698dcdb6 VZ |
14276 | |
14277 | ||
10f2d63a VZ |
14278 | fi |
14279 | done | |
14280 | ||
698dcdb6 | 14281 | |
10f2d63a VZ |
14282 | for ac_func in inet_aton |
14283 | do | |
698dcdb6 | 14284 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
b3e8d00a | 14285 | echo "configure:14286: checking for $ac_func" >&5 |
698dcdb6 VZ |
14286 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
14287 | echo $ac_n "(cached) $ac_c" 1>&6 | |
14288 | else | |
14289 | cat > conftest.$ac_ext <<EOF | |
b3e8d00a | 14290 | #line 14291 "configure" |
10f2d63a VZ |
14291 | #include "confdefs.h" |
14292 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 14293 | which can conflict with char $ac_func(); below. */ |
10f2d63a VZ |
14294 | #include <assert.h> |
14295 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14296 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
14297 | builtin and then its argument prototype would still apply. */ |
14298 | char $ac_func(); | |
14299 | ||
14300 | int main() { | |
10f2d63a VZ |
14301 | |
14302 | /* The GNU C library defines this for functions which it implements | |
14303 | to always fail with ENOSYS. Some functions are actually named | |
14304 | something starting with __ and the normal name is an alias. */ | |
14305 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
14306 | choke me | |
14307 | #else | |
698dcdb6 | 14308 | $ac_func(); |
10f2d63a VZ |
14309 | #endif |
14310 | ||
698dcdb6 VZ |
14311 | ; return 0; } |
14312 | EOF | |
b3e8d00a | 14313 | if { (eval echo configure:14314: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
14314 | rm -rf conftest* |
14315 | eval "ac_cv_func_$ac_func=yes" | |
14316 | else | |
14317 | echo "configure: failed program was:" >&5 | |
14318 | cat conftest.$ac_ext >&5 | |
14319 | rm -rf conftest* | |
14320 | eval "ac_cv_func_$ac_func=no" | |
14321 | fi | |
14322 | rm -f conftest* | |
14323 | fi | |
14324 | ||
14325 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
14326 | echo "$ac_t""yes" 1>&6 | |
14327 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
14328 | cat >> confdefs.h <<EOF | |
14329 | #define $ac_tr_func 1 | |
14330 | EOF | |
14331 | cat >> confdefs.h <<\EOF | |
c63c7106 VZ |
14332 | #define HAVE_INET_ATON 1 |
14333 | EOF | |
14334 | ||
10f2d63a | 14335 | else |
698dcdb6 VZ |
14336 | echo "$ac_t""no" 1>&6 |
14337 | echo $ac_n "checking for inet_aton in -l$INET_LINK""... $ac_c" 1>&6 | |
b3e8d00a | 14338 | echo "configure:14339: checking for inet_aton in -l$INET_LINK" >&5 |
698dcdb6 VZ |
14339 | ac_lib_var=`echo $INET_LINK'_'inet_aton | sed 'y%./+-%__p_%'` |
14340 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
14341 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 14342 | else |
698dcdb6 | 14343 | ac_save_LIBS="$LIBS" |
c63c7106 | 14344 | LIBS="-l$INET_LINK $LIBS" |
698dcdb6 | 14345 | cat > conftest.$ac_ext <<EOF |
b3e8d00a | 14346 | #line 14347 "configure" |
10f2d63a VZ |
14347 | #include "confdefs.h" |
14348 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14349 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
14350 | builtin and then its argument prototype would still apply. */ |
14351 | char inet_aton(); | |
14352 | ||
14353 | int main() { | |
14354 | inet_aton() | |
14355 | ; return 0; } | |
14356 | EOF | |
b3e8d00a | 14357 | if { (eval echo configure:14358: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
14358 | rm -rf conftest* |
14359 | eval "ac_cv_lib_$ac_lib_var=yes" | |
14360 | else | |
14361 | echo "configure: failed program was:" >&5 | |
14362 | cat conftest.$ac_ext >&5 | |
14363 | rm -rf conftest* | |
14364 | eval "ac_cv_lib_$ac_lib_var=no" | |
14365 | fi | |
14366 | rm -f conftest* | |
14367 | LIBS="$ac_save_LIBS" | |
14368 | ||
14369 | fi | |
14370 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
14371 | echo "$ac_t""yes" 1>&6 | |
14372 | cat >> confdefs.h <<\EOF | |
c63c7106 | 14373 | #define HAVE_INET_ATON 1 |
10f2d63a VZ |
14374 | EOF |
14375 | ||
698dcdb6 VZ |
14376 | else |
14377 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
14378 | fi |
14379 | ||
698dcdb6 | 14380 | |
c63c7106 VZ |
14381 | fi |
14382 | done | |
14383 | ||
698dcdb6 | 14384 | |
c63c7106 | 14385 | if test "x$INET_LINK" != "x"; then |
698dcdb6 | 14386 | cat >> confdefs.h <<\EOF |
c63c7106 VZ |
14387 | #define HAVE_INET_ADDR 1 |
14388 | EOF | |
14389 | ||
14390 | INET_LINK="-l$INET_LINK" | |
14391 | fi | |
10f2d63a VZ |
14392 | |
14393 | fi | |
14394 | ||
698dcdb6 VZ |
14395 | |
14396 | cat > confcache <<\EOF | |
10f2d63a VZ |
14397 | # This file is a shell script that caches the results of configure |
14398 | # tests run on this system so they can be shared between configure | |
698dcdb6 VZ |
14399 | # scripts and configure runs. It is not useful on other systems. |
14400 | # If it contains results you don't want to keep, you may remove or edit it. | |
10f2d63a | 14401 | # |
698dcdb6 VZ |
14402 | # By default, configure uses ./config.cache as the cache file, |
14403 | # creating it if it does not exist already. You can give configure | |
14404 | # the --cache-file=FILE option to use a different cache file; that is | |
14405 | # what configure does when it calls configure scripts in | |
14406 | # subdirectories, so they share the cache. | |
14407 | # Giving --cache-file=/dev/null disables caching, for debugging configure. | |
14408 | # config.status only pays attention to the cache file if you give it the | |
14409 | # --recheck option to rerun configure. | |
10f2d63a | 14410 | # |
698dcdb6 | 14411 | EOF |
10f2d63a VZ |
14412 | # The following way of writing the cache mishandles newlines in values, |
14413 | # but we know of no workaround that is simple, portable, and efficient. | |
14414 | # So, don't put newlines in cache variables' values. | |
14415 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
14416 | # and sets the high bit in the cache file unless we assign to the vars. | |
698dcdb6 VZ |
14417 | (set) 2>&1 | |
14418 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
14419 | *ac_space=\ *) | |
14420 | # `set' does not quote correctly, so add quotes (double-quote substitution | |
14421 | # turns \\\\ into \\, and sed turns \\ into \). | |
14422 | sed -n \ | |
14423 | -e "s/'/'\\\\''/g" \ | |
14424 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" | |
14425 | ;; | |
14426 | *) | |
14427 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
14428 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' | |
14429 | ;; | |
14430 | esac >> confcache | |
14431 | if cmp -s $cache_file confcache; then | |
14432 | : | |
14433 | else | |
10f2d63a | 14434 | if test -w $cache_file; then |
698dcdb6 VZ |
14435 | echo "updating cache $cache_file" |
14436 | cat confcache > $cache_file | |
10f2d63a VZ |
14437 | else |
14438 | echo "not updating unwritable cache $cache_file" | |
14439 | fi | |
14440 | fi | |
14441 | rm -f confcache | |
14442 | ||
698dcdb6 VZ |
14443 | |
14444 | ||
b089607b | 14445 | if test "$TOOLKIT" != "MSW"; then |
10f2d63a | 14446 | |
698dcdb6 | 14447 | |
3a922bb4 RL |
14448 | THREADS_LINK= |
14449 | THREADS_OBJ= | |
14450 | CODE_GEN_FLAGS= | |
14451 | CODE_GEN_FLAGS_CXX= | |
10f2d63a VZ |
14452 | |
14453 | if test "$wxUSE_THREADS" = "yes" ; then | |
14454 | if test "$wxUSE_WINE" = 1 ; then | |
698dcdb6 | 14455 | echo "configure: warning: Threads are not supported under WINE" 1>&2 |
10f2d63a | 14456 | wxUSE_THREADS="no" |
b12915c1 | 14457 | elif test "$USE_BEOS" = 1; then |
698dcdb6 | 14458 | echo "configure: warning: BeOS threads are not yet supported" 1>&2 |
b12915c1 | 14459 | wxUSE_THREADS="no" |
10f2d63a VZ |
14460 | fi |
14461 | fi | |
14462 | ||
14463 | if test "$wxUSE_THREADS" = "yes" ; then | |
698dcdb6 | 14464 | |
186837b0 | 14465 | if test "$USE_AIX" = 1; then |
f6bcfd97 BP |
14466 | THREADS_LIB=pthreads |
14467 | else | |
14468 | THREADS_LIB=pthread | |
14469 | fi | |
14470 | ||
698dcdb6 | 14471 | echo $ac_n "checking for pthread_create in -l$THREADS_LIB""... $ac_c" 1>&6 |
b3e8d00a | 14472 | echo "configure:14473: checking for pthread_create in -l$THREADS_LIB" >&5 |
698dcdb6 VZ |
14473 | ac_lib_var=`echo $THREADS_LIB'_'pthread_create | sed 'y%./+-%__p_%'` |
14474 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
14475 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 14476 | else |
698dcdb6 | 14477 | ac_save_LIBS="$LIBS" |
f6bcfd97 | 14478 | LIBS="-l$THREADS_LIB $LIBS" |
698dcdb6 | 14479 | cat > conftest.$ac_ext <<EOF |
b3e8d00a | 14480 | #line 14481 "configure" |
10f2d63a VZ |
14481 | #include "confdefs.h" |
14482 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14483 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
14484 | builtin and then its argument prototype would still apply. */ |
14485 | char pthread_create(); | |
14486 | ||
14487 | int main() { | |
14488 | pthread_create() | |
14489 | ; return 0; } | |
14490 | EOF | |
b3e8d00a | 14491 | if { (eval echo configure:14492: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
14492 | rm -rf conftest* |
14493 | eval "ac_cv_lib_$ac_lib_var=yes" | |
14494 | else | |
14495 | echo "configure: failed program was:" >&5 | |
14496 | cat conftest.$ac_ext >&5 | |
14497 | rm -rf conftest* | |
14498 | eval "ac_cv_lib_$ac_lib_var=no" | |
14499 | fi | |
14500 | rm -f conftest* | |
14501 | LIBS="$ac_save_LIBS" | |
10f2d63a | 14502 | |
698dcdb6 VZ |
14503 | fi |
14504 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
14505 | echo "$ac_t""yes" 1>&6 | |
14506 | ||
10f2d63a | 14507 | THREADS_OBJ="threadpsx.lo" |
f6bcfd97 | 14508 | THREADS_LINK=$THREADS_LIB |
698dcdb6 | 14509 | |
10f2d63a | 14510 | else |
698dcdb6 | 14511 | echo "$ac_t""no" 1>&6 |
10f2d63a | 14512 | |
698dcdb6 | 14513 | echo $ac_n "checking for pthread_create in -lc_r""... $ac_c" 1>&6 |
b3e8d00a | 14514 | echo "configure:14515: checking for pthread_create in -lc_r" >&5 |
698dcdb6 VZ |
14515 | ac_lib_var=`echo c_r'_'pthread_create | sed 'y%./+-%__p_%'` |
14516 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
14517 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 14518 | else |
698dcdb6 | 14519 | ac_save_LIBS="$LIBS" |
10f2d63a | 14520 | LIBS="-lc_r $LIBS" |
698dcdb6 | 14521 | cat > conftest.$ac_ext <<EOF |
b3e8d00a | 14522 | #line 14523 "configure" |
10f2d63a VZ |
14523 | #include "confdefs.h" |
14524 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14525 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
14526 | builtin and then its argument prototype would still apply. */ |
14527 | char pthread_create(); | |
14528 | ||
14529 | int main() { | |
14530 | pthread_create() | |
14531 | ; return 0; } | |
14532 | EOF | |
b3e8d00a | 14533 | if { (eval echo configure:14534: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
14534 | rm -rf conftest* |
14535 | eval "ac_cv_lib_$ac_lib_var=yes" | |
14536 | else | |
14537 | echo "configure: failed program was:" >&5 | |
14538 | cat conftest.$ac_ext >&5 | |
14539 | rm -rf conftest* | |
14540 | eval "ac_cv_lib_$ac_lib_var=no" | |
14541 | fi | |
14542 | rm -f conftest* | |
14543 | LIBS="$ac_save_LIBS" | |
10f2d63a | 14544 | |
698dcdb6 VZ |
14545 | fi |
14546 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
14547 | echo "$ac_t""yes" 1>&6 | |
14548 | ||
10f2d63a VZ |
14549 | THREADS_OBJ="threadpsx.lo" |
14550 | THREADS_LINK="c_r" | |
698dcdb6 | 14551 | |
10f2d63a | 14552 | else |
698dcdb6 | 14553 | echo "$ac_t""no" 1>&6 |
10f2d63a | 14554 | |
698dcdb6 VZ |
14555 | ac_safe=`echo "sys/prctl.h" | sed 'y%./+-%__p_%'` |
14556 | echo $ac_n "checking for sys/prctl.h""... $ac_c" 1>&6 | |
b3e8d00a | 14557 | echo "configure:14558: checking for sys/prctl.h" >&5 |
698dcdb6 VZ |
14558 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
14559 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 14560 | else |
698dcdb6 | 14561 | cat > conftest.$ac_ext <<EOF |
b3e8d00a | 14562 | #line 14563 "configure" |
10f2d63a VZ |
14563 | #include "confdefs.h" |
14564 | #include <sys/prctl.h> | |
698dcdb6 VZ |
14565 | EOF |
14566 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
b3e8d00a | 14567 | { (eval echo configure:14568: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
14568 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
14569 | if test -z "$ac_err"; then | |
14570 | rm -rf conftest* | |
14571 | eval "ac_cv_header_$ac_safe=yes" | |
1e487827 | 14572 | else |
698dcdb6 VZ |
14573 | echo "$ac_err" >&5 |
14574 | echo "configure: failed program was:" >&5 | |
10f2d63a | 14575 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
14576 | rm -rf conftest* |
14577 | eval "ac_cv_header_$ac_safe=no" | |
10f2d63a | 14578 | fi |
698dcdb6 | 14579 | rm -f conftest* |
10f2d63a | 14580 | fi |
698dcdb6 VZ |
14581 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
14582 | echo "$ac_t""yes" 1>&6 | |
14583 | ||
1f8ae82f | 14584 | THREADS_OBJ="threadsgi.lo" |
698dcdb6 VZ |
14585 | |
14586 | else | |
14587 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
14588 | fi |
14589 | ||
698dcdb6 | 14590 | |
6232543b | 14591 | fi |
10f2d63a | 14592 | |
698dcdb6 | 14593 | |
1e487827 | 14594 | fi |
703e0a69 | 14595 | |
698dcdb6 | 14596 | |
10f2d63a VZ |
14597 | if test -z "$THREADS_OBJ" ; then |
14598 | wxUSE_THREADS=no | |
698dcdb6 | 14599 | echo "configure: warning: No thread support on this system" 1>&2 |
10f2d63a VZ |
14600 | fi |
14601 | fi | |
14602 | ||
14603 | if test "$wxUSE_THREADS" = "yes" ; then | |
698dcdb6 | 14604 | for ac_func in thr_setconcurrency |
70846f0a | 14605 | do |
698dcdb6 | 14606 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
b3e8d00a | 14607 | echo "configure:14608: checking for $ac_func" >&5 |
698dcdb6 VZ |
14608 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
14609 | echo $ac_n "(cached) $ac_c" 1>&6 | |
14610 | else | |
14611 | cat > conftest.$ac_ext <<EOF | |
b3e8d00a | 14612 | #line 14613 "configure" |
70846f0a VZ |
14613 | #include "confdefs.h" |
14614 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 14615 | which can conflict with char $ac_func(); below. */ |
70846f0a VZ |
14616 | #include <assert.h> |
14617 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14618 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
14619 | builtin and then its argument prototype would still apply. */ |
14620 | char $ac_func(); | |
14621 | ||
14622 | int main() { | |
70846f0a VZ |
14623 | |
14624 | /* The GNU C library defines this for functions which it implements | |
14625 | to always fail with ENOSYS. Some functions are actually named | |
14626 | something starting with __ and the normal name is an alias. */ | |
14627 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
14628 | choke me | |
14629 | #else | |
698dcdb6 | 14630 | $ac_func(); |
70846f0a VZ |
14631 | #endif |
14632 | ||
698dcdb6 | 14633 | ; return 0; } |
70846f0a | 14634 | EOF |
b3e8d00a | 14635 | if { (eval echo configure:14636: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
14636 | rm -rf conftest* |
14637 | eval "ac_cv_func_$ac_func=yes" | |
14638 | else | |
14639 | echo "configure: failed program was:" >&5 | |
14640 | cat conftest.$ac_ext >&5 | |
14641 | rm -rf conftest* | |
14642 | eval "ac_cv_func_$ac_func=no" | |
14643 | fi | |
14644 | rm -f conftest* | |
14645 | fi | |
70846f0a | 14646 | |
698dcdb6 VZ |
14647 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
14648 | echo "$ac_t""yes" 1>&6 | |
14649 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
14650 | cat >> confdefs.h <<EOF | |
14651 | #define $ac_tr_func 1 | |
14652 | EOF | |
14653 | ||
14654 | else | |
14655 | echo "$ac_t""no" 1>&6 | |
70846f0a VZ |
14656 | fi |
14657 | done | |
14658 | ||
698dcdb6 VZ |
14659 | |
14660 | ||
14661 | for ac_hdr in sched.h | |
10f2d63a | 14662 | do |
698dcdb6 VZ |
14663 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
14664 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
b3e8d00a | 14665 | echo "configure:14666: checking for $ac_hdr" >&5 |
698dcdb6 VZ |
14666 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
14667 | echo $ac_n "(cached) $ac_c" 1>&6 | |
14668 | else | |
14669 | cat > conftest.$ac_ext <<EOF | |
b3e8d00a | 14670 | #line 14671 "configure" |
10f2d63a | 14671 | #include "confdefs.h" |
698dcdb6 VZ |
14672 | #include <$ac_hdr> |
14673 | EOF | |
14674 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
b3e8d00a | 14675 | { (eval echo configure:14676: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
14676 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
14677 | if test -z "$ac_err"; then | |
14678 | rm -rf conftest* | |
14679 | eval "ac_cv_header_$ac_safe=yes" | |
1e487827 | 14680 | else |
698dcdb6 VZ |
14681 | echo "$ac_err" >&5 |
14682 | echo "configure: failed program was:" >&5 | |
10f2d63a | 14683 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
14684 | rm -rf conftest* |
14685 | eval "ac_cv_header_$ac_safe=no" | |
10f2d63a | 14686 | fi |
698dcdb6 | 14687 | rm -f conftest* |
10f2d63a | 14688 | fi |
698dcdb6 VZ |
14689 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
14690 | echo "$ac_t""yes" 1>&6 | |
14691 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
14692 | cat >> confdefs.h <<EOF | |
14693 | #define $ac_tr_hdr 1 | |
10f2d63a | 14694 | EOF |
698dcdb6 VZ |
14695 | |
14696 | else | |
14697 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
14698 | fi |
14699 | done | |
14700 | ||
698dcdb6 VZ |
14701 | |
14702 | echo $ac_n "checking for sched_yield in -l$THREADS_LINK""... $ac_c" 1>&6 | |
b3e8d00a | 14703 | echo "configure:14704: checking for sched_yield in -l$THREADS_LINK" >&5 |
698dcdb6 VZ |
14704 | ac_lib_var=`echo $THREADS_LINK'_'sched_yield | sed 'y%./+-%__p_%'` |
14705 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
14706 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 14707 | else |
698dcdb6 | 14708 | ac_save_LIBS="$LIBS" |
10f2d63a | 14709 | LIBS="-l$THREADS_LINK $LIBS" |
698dcdb6 | 14710 | cat > conftest.$ac_ext <<EOF |
b3e8d00a | 14711 | #line 14712 "configure" |
10f2d63a VZ |
14712 | #include "confdefs.h" |
14713 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14714 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
14715 | builtin and then its argument prototype would still apply. */ |
14716 | char sched_yield(); | |
14717 | ||
14718 | int main() { | |
14719 | sched_yield() | |
14720 | ; return 0; } | |
14721 | EOF | |
b3e8d00a | 14722 | if { (eval echo configure:14723: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
14723 | rm -rf conftest* |
14724 | eval "ac_cv_lib_$ac_lib_var=yes" | |
14725 | else | |
14726 | echo "configure: failed program was:" >&5 | |
14727 | cat conftest.$ac_ext >&5 | |
14728 | rm -rf conftest* | |
14729 | eval "ac_cv_lib_$ac_lib_var=no" | |
14730 | fi | |
14731 | rm -f conftest* | |
14732 | LIBS="$ac_save_LIBS" | |
14733 | ||
14734 | fi | |
14735 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
14736 | echo "$ac_t""yes" 1>&6 | |
14737 | cat >> confdefs.h <<\EOF | |
10f2d63a VZ |
14738 | #define HAVE_SCHED_YIELD 1 |
14739 | EOF | |
14740 | ||
14741 | else | |
698dcdb6 VZ |
14742 | echo "$ac_t""no" 1>&6 |
14743 | echo $ac_n "checking for sched_yield in -lposix4""... $ac_c" 1>&6 | |
b3e8d00a | 14744 | echo "configure:14745: checking for sched_yield in -lposix4" >&5 |
698dcdb6 VZ |
14745 | ac_lib_var=`echo posix4'_'sched_yield | sed 'y%./+-%__p_%'` |
14746 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
14747 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 14748 | else |
698dcdb6 | 14749 | ac_save_LIBS="$LIBS" |
1e487827 | 14750 | LIBS="-lposix4 $LIBS" |
698dcdb6 | 14751 | cat > conftest.$ac_ext <<EOF |
b3e8d00a | 14752 | #line 14753 "configure" |
10f2d63a VZ |
14753 | #include "confdefs.h" |
14754 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14755 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
14756 | builtin and then its argument prototype would still apply. */ |
14757 | char sched_yield(); | |
14758 | ||
14759 | int main() { | |
14760 | sched_yield() | |
14761 | ; return 0; } | |
14762 | EOF | |
b3e8d00a | 14763 | if { (eval echo configure:14764: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
14764 | rm -rf conftest* |
14765 | eval "ac_cv_lib_$ac_lib_var=yes" | |
14766 | else | |
14767 | echo "configure: failed program was:" >&5 | |
14768 | cat conftest.$ac_ext >&5 | |
14769 | rm -rf conftest* | |
14770 | eval "ac_cv_lib_$ac_lib_var=no" | |
14771 | fi | |
14772 | rm -f conftest* | |
14773 | LIBS="$ac_save_LIBS" | |
14774 | ||
14775 | fi | |
14776 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
14777 | echo "$ac_t""yes" 1>&6 | |
14778 | cat >> confdefs.h <<\EOF | |
10f2d63a VZ |
14779 | #define HAVE_SCHED_YIELD 1 |
14780 | EOF | |
14781 | POSIX4_LINK="-lposix4" | |
14782 | else | |
698dcdb6 VZ |
14783 | echo "$ac_t""no" 1>&6 |
14784 | echo "configure: warning: wxThread::Yield will not work properly" 1>&2 | |
14785 | ||
6232543b | 14786 | fi |
10f2d63a | 14787 | |
698dcdb6 | 14788 | |
1e487827 | 14789 | fi |
703e0a69 | 14790 | |
698dcdb6 | 14791 | |
f6bcfd97 | 14792 | HAVE_PRIOR_FUNCS=0 |
698dcdb6 | 14793 | echo $ac_n "checking for pthread_attr_getschedpolicy in -l$THREADS_LINK""... $ac_c" 1>&6 |
b3e8d00a | 14794 | echo "configure:14795: checking for pthread_attr_getschedpolicy in -l$THREADS_LINK" >&5 |
698dcdb6 VZ |
14795 | ac_lib_var=`echo $THREADS_LINK'_'pthread_attr_getschedpolicy | sed 'y%./+-%__p_%'` |
14796 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
14797 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 14798 | else |
698dcdb6 | 14799 | ac_save_LIBS="$LIBS" |
10f2d63a | 14800 | LIBS="-l$THREADS_LINK $LIBS" |
698dcdb6 | 14801 | cat > conftest.$ac_ext <<EOF |
b3e8d00a | 14802 | #line 14803 "configure" |
10f2d63a VZ |
14803 | #include "confdefs.h" |
14804 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14805 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
14806 | builtin and then its argument prototype would still apply. */ |
14807 | char pthread_attr_getschedpolicy(); | |
14808 | ||
14809 | int main() { | |
14810 | pthread_attr_getschedpolicy() | |
14811 | ; return 0; } | |
14812 | EOF | |
b3e8d00a | 14813 | if { (eval echo configure:14814: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
14814 | rm -rf conftest* |
14815 | eval "ac_cv_lib_$ac_lib_var=yes" | |
14816 | else | |
14817 | echo "configure: failed program was:" >&5 | |
14818 | cat conftest.$ac_ext >&5 | |
14819 | rm -rf conftest* | |
14820 | eval "ac_cv_lib_$ac_lib_var=no" | |
14821 | fi | |
14822 | rm -f conftest* | |
14823 | LIBS="$ac_save_LIBS" | |
14824 | ||
14825 | fi | |
14826 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
14827 | echo "$ac_t""yes" 1>&6 | |
14828 | echo $ac_n "checking for pthread_attr_setschedparam in -l$THREADS_LINK""... $ac_c" 1>&6 | |
b3e8d00a | 14829 | echo "configure:14830: checking for pthread_attr_setschedparam in -l$THREADS_LINK" >&5 |
698dcdb6 VZ |
14830 | ac_lib_var=`echo $THREADS_LINK'_'pthread_attr_setschedparam | sed 'y%./+-%__p_%'` |
14831 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
14832 | echo $ac_n "(cached) $ac_c" 1>&6 | |
14833 | else | |
14834 | ac_save_LIBS="$LIBS" | |
f6bcfd97 | 14835 | LIBS="-l$THREADS_LINK $LIBS" |
698dcdb6 | 14836 | cat > conftest.$ac_ext <<EOF |
b3e8d00a | 14837 | #line 14838 "configure" |
f6bcfd97 BP |
14838 | #include "confdefs.h" |
14839 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14840 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
14841 | builtin and then its argument prototype would still apply. */ |
14842 | char pthread_attr_setschedparam(); | |
14843 | ||
14844 | int main() { | |
14845 | pthread_attr_setschedparam() | |
14846 | ; return 0; } | |
14847 | EOF | |
b3e8d00a | 14848 | if { (eval echo configure:14849: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
14849 | rm -rf conftest* |
14850 | eval "ac_cv_lib_$ac_lib_var=yes" | |
14851 | else | |
14852 | echo "configure: failed program was:" >&5 | |
14853 | cat conftest.$ac_ext >&5 | |
14854 | rm -rf conftest* | |
14855 | eval "ac_cv_lib_$ac_lib_var=no" | |
14856 | fi | |
14857 | rm -f conftest* | |
14858 | LIBS="$ac_save_LIBS" | |
14859 | ||
14860 | fi | |
14861 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
14862 | echo "$ac_t""yes" 1>&6 | |
14863 | echo $ac_n "checking for sched_get_priority_max in -l$THREADS_LINK""... $ac_c" 1>&6 | |
b3e8d00a | 14864 | echo "configure:14865: checking for sched_get_priority_max in -l$THREADS_LINK" >&5 |
698dcdb6 VZ |
14865 | ac_lib_var=`echo $THREADS_LINK'_'sched_get_priority_max | sed 'y%./+-%__p_%'` |
14866 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
14867 | echo $ac_n "(cached) $ac_c" 1>&6 | |
14868 | else | |
14869 | ac_save_LIBS="$LIBS" | |
f6bcfd97 | 14870 | LIBS="-l$THREADS_LINK $LIBS" |
698dcdb6 | 14871 | cat > conftest.$ac_ext <<EOF |
b3e8d00a | 14872 | #line 14873 "configure" |
f6bcfd97 BP |
14873 | #include "confdefs.h" |
14874 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14875 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
14876 | builtin and then its argument prototype would still apply. */ |
14877 | char sched_get_priority_max(); | |
14878 | ||
14879 | int main() { | |
14880 | sched_get_priority_max() | |
14881 | ; return 0; } | |
14882 | EOF | |
b3e8d00a | 14883 | if { (eval echo configure:14884: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
14884 | rm -rf conftest* |
14885 | eval "ac_cv_lib_$ac_lib_var=yes" | |
14886 | else | |
14887 | echo "configure: failed program was:" >&5 | |
14888 | cat conftest.$ac_ext >&5 | |
14889 | rm -rf conftest* | |
14890 | eval "ac_cv_lib_$ac_lib_var=no" | |
14891 | fi | |
14892 | rm -f conftest* | |
14893 | LIBS="$ac_save_LIBS" | |
14894 | ||
14895 | fi | |
14896 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
14897 | echo "$ac_t""yes" 1>&6 | |
f6bcfd97 | 14898 | HAVE_PRIOR_FUNCS=1 |
10f2d63a | 14899 | else |
698dcdb6 VZ |
14900 | echo "$ac_t""no" 1>&6 |
14901 | echo $ac_n "checking for sched_get_priority_max in -lposix4""... $ac_c" 1>&6 | |
b3e8d00a | 14902 | echo "configure:14903: checking for sched_get_priority_max in -lposix4" >&5 |
698dcdb6 VZ |
14903 | ac_lib_var=`echo posix4'_'sched_get_priority_max | sed 'y%./+-%__p_%'` |
14904 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
14905 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1e487827 | 14906 | else |
698dcdb6 | 14907 | ac_save_LIBS="$LIBS" |
1e487827 | 14908 | LIBS="-lposix4 $LIBS" |
698dcdb6 | 14909 | cat > conftest.$ac_ext <<EOF |
b3e8d00a | 14910 | #line 14911 "configure" |
10f2d63a | 14911 | #include "confdefs.h" |
6232543b | 14912 | /* Override any gcc2 internal prototype to avoid an error. */ |
6232543b | 14913 | /* We use char because int might match the return type of a gcc2 |
698dcdb6 VZ |
14914 | builtin and then its argument prototype would still apply. */ |
14915 | char sched_get_priority_max(); | |
14916 | ||
14917 | int main() { | |
14918 | sched_get_priority_max() | |
14919 | ; return 0; } | |
14920 | EOF | |
b3e8d00a | 14921 | if { (eval echo configure:14922: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
14922 | rm -rf conftest* |
14923 | eval "ac_cv_lib_$ac_lib_var=yes" | |
14924 | else | |
14925 | echo "configure: failed program was:" >&5 | |
14926 | cat conftest.$ac_ext >&5 | |
14927 | rm -rf conftest* | |
14928 | eval "ac_cv_lib_$ac_lib_var=no" | |
14929 | fi | |
14930 | rm -f conftest* | |
14931 | LIBS="$ac_save_LIBS" | |
10f2d63a | 14932 | |
698dcdb6 VZ |
14933 | fi |
14934 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
14935 | echo "$ac_t""yes" 1>&6 | |
14936 | ||
f6bcfd97 BP |
14937 | HAVE_PRIOR_FUNCS=1 |
14938 | POSIX4_LINK="-lposix4" | |
698dcdb6 VZ |
14939 | |
14940 | else | |
14941 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
14942 | fi |
14943 | ||
698dcdb6 | 14944 | |
10f2d63a VZ |
14945 | fi |
14946 | ||
698dcdb6 VZ |
14947 | |
14948 | else | |
14949 | echo "$ac_t""no" 1>&6 | |
6232543b | 14950 | fi |
10f2d63a | 14951 | |
698dcdb6 VZ |
14952 | |
14953 | else | |
14954 | echo "$ac_t""no" 1>&6 | |
1e487827 | 14955 | fi |
703e0a69 | 14956 | |
698dcdb6 | 14957 | |
f6bcfd97 | 14958 | if test "$HAVE_PRIOR_FUNCS" = 1; then |
698dcdb6 | 14959 | cat >> confdefs.h <<\EOF |
f6bcfd97 BP |
14960 | #define HAVE_THREAD_PRIORITY_FUNCTIONS 1 |
14961 | EOF | |
14962 | ||
14963 | else | |
698dcdb6 | 14964 | echo "configure: warning: Setting thread priority will not work" 1>&2 |
f6bcfd97 BP |
14965 | fi |
14966 | ||
698dcdb6 | 14967 | echo $ac_n "checking for pthread_cancel in -l$THREADS_LINK""... $ac_c" 1>&6 |
b3e8d00a | 14968 | echo "configure:14969: checking for pthread_cancel in -l$THREADS_LINK" >&5 |
698dcdb6 VZ |
14969 | ac_lib_var=`echo $THREADS_LINK'_'pthread_cancel | sed 'y%./+-%__p_%'` |
14970 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
14971 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 14972 | else |
698dcdb6 | 14973 | ac_save_LIBS="$LIBS" |
10f2d63a | 14974 | LIBS="-l$THREADS_LINK $LIBS" |
698dcdb6 | 14975 | cat > conftest.$ac_ext <<EOF |
b3e8d00a | 14976 | #line 14977 "configure" |
10f2d63a VZ |
14977 | #include "confdefs.h" |
14978 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14979 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
14980 | builtin and then its argument prototype would still apply. */ |
14981 | char pthread_cancel(); | |
14982 | ||
14983 | int main() { | |
14984 | pthread_cancel() | |
14985 | ; return 0; } | |
14986 | EOF | |
b3e8d00a | 14987 | if { (eval echo configure:14988: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
14988 | rm -rf conftest* |
14989 | eval "ac_cv_lib_$ac_lib_var=yes" | |
14990 | else | |
14991 | echo "configure: failed program was:" >&5 | |
14992 | cat conftest.$ac_ext >&5 | |
14993 | rm -rf conftest* | |
14994 | eval "ac_cv_lib_$ac_lib_var=no" | |
14995 | fi | |
14996 | rm -f conftest* | |
14997 | LIBS="$ac_save_LIBS" | |
14998 | ||
14999 | fi | |
15000 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
15001 | echo "$ac_t""yes" 1>&6 | |
15002 | cat >> confdefs.h <<\EOF | |
10f2d63a VZ |
15003 | #define HAVE_PTHREAD_CANCEL 1 |
15004 | EOF | |
15005 | ||
15006 | else | |
698dcdb6 VZ |
15007 | echo "$ac_t""no" 1>&6 |
15008 | echo "configure: warning: wxThread::Kill() will not work properly" 1>&2 | |
10f2d63a VZ |
15009 | fi |
15010 | ||
1e487827 | 15011 | |
698dcdb6 | 15012 | echo $ac_n "checking for pthread_cleanup_push/pop""... $ac_c" 1>&6 |
b3e8d00a | 15013 | echo "configure:15014: checking for pthread_cleanup_push/pop" >&5 |
698dcdb6 VZ |
15014 | if eval "test \"`echo '$''{'wx_cv_func_pthread_cleanup_push'+set}'`\" = set"; then |
15015 | echo $ac_n "(cached) $ac_c" 1>&6 | |
15016 | else | |
15017 | ||
15018 | cat > conftest.$ac_ext <<EOF | |
b3e8d00a | 15019 | #line 15020 "configure" |
10f2d63a VZ |
15020 | #include "confdefs.h" |
15021 | #include <pthread.h> | |
698dcdb6 | 15022 | int main() { |
10f2d63a VZ |
15023 | |
15024 | pthread_cleanup_push(NULL, NULL); | |
15025 | pthread_cleanup_pop(0); | |
698dcdb6 VZ |
15026 | |
15027 | ; return 0; } | |
15028 | EOF | |
b3e8d00a | 15029 | if { (eval echo configure:15030: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 VZ |
15030 | rm -rf conftest* |
15031 | ||
10f2d63a | 15032 | wx_cv_func_pthread_cleanup_push=yes |
698dcdb6 | 15033 | |
10f2d63a | 15034 | else |
698dcdb6 VZ |
15035 | echo "configure: failed program was:" >&5 |
15036 | cat conftest.$ac_ext >&5 | |
15037 | rm -rf conftest* | |
15038 | ||
10f2d63a | 15039 | wx_cv_func_pthread_cleanup_push=no |
698dcdb6 | 15040 | |
6232543b | 15041 | fi |
698dcdb6 VZ |
15042 | rm -f conftest* |
15043 | ||
1e487827 | 15044 | fi |
698dcdb6 VZ |
15045 | |
15046 | echo "$ac_t""$wx_cv_func_pthread_cleanup_push" 1>&6 | |
10f2d63a | 15047 | |
d9b9876f | 15048 | if test "$wx_cv_func_pthread_cleanup_push" = "yes"; then |
698dcdb6 | 15049 | cat >> confdefs.h <<\EOF |
d9b9876f VZ |
15050 | #define HAVE_THREAD_CLEANUP_FUNCTIONS 1 |
15051 | EOF | |
15052 | ||
15053 | fi | |
15054 | ||
698dcdb6 | 15055 | |
b48da802 VZ |
15056 | if test "x$wx_lib_glibc21" = "xyes"; then |
15057 | CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE" | |
ab252f7b VZ |
15058 | fi |
15059 | ||
698dcdb6 | 15060 | echo $ac_n "checking for pthread_mutexattr_t""... $ac_c" 1>&6 |
b3e8d00a | 15061 | echo "configure:15062: checking for pthread_mutexattr_t" >&5 |
698dcdb6 VZ |
15062 | if eval "test \"`echo '$''{'wx_cv_type_pthread_mutexattr_t'+set}'`\" = set"; then |
15063 | echo $ac_n "(cached) $ac_c" 1>&6 | |
d9b9876f | 15064 | else |
698dcdb6 VZ |
15065 | |
15066 | cat > conftest.$ac_ext <<EOF | |
b3e8d00a | 15067 | #line 15068 "configure" |
d9b9876f VZ |
15068 | #include "confdefs.h" |
15069 | #include <pthread.h> | |
698dcdb6 | 15070 | int main() { |
d9b9876f VZ |
15071 | |
15072 | pthread_mutexattr_t attr; | |
15073 | pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE); | |
698dcdb6 VZ |
15074 | |
15075 | ; return 0; } | |
15076 | EOF | |
b3e8d00a | 15077 | if { (eval echo configure:15078: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 VZ |
15078 | rm -rf conftest* |
15079 | ||
d9b9876f | 15080 | wx_cv_type_pthread_mutexattr_t=yes |
698dcdb6 | 15081 | |
d9b9876f | 15082 | else |
698dcdb6 VZ |
15083 | echo "configure: failed program was:" >&5 |
15084 | cat conftest.$ac_ext >&5 | |
15085 | rm -rf conftest* | |
15086 | ||
d9b9876f | 15087 | wx_cv_type_pthread_mutexattr_t=no |
698dcdb6 VZ |
15088 | |
15089 | ||
6232543b | 15090 | fi |
698dcdb6 VZ |
15091 | rm -f conftest* |
15092 | ||
1e487827 | 15093 | fi |
698dcdb6 VZ |
15094 | |
15095 | echo "$ac_t""$wx_cv_type_pthread_mutexattr_t" 1>&6 | |
d9b9876f VZ |
15096 | |
15097 | if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then | |
698dcdb6 | 15098 | cat >> confdefs.h <<\EOF |
d9b9876f VZ |
15099 | #define HAVE_PTHREAD_MUTEXATTR_T 1 |
15100 | EOF | |
15101 | ||
15102 | else | |
698dcdb6 | 15103 | echo $ac_n "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER""... $ac_c" 1>&6 |
b3e8d00a | 15104 | echo "configure:15105: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5 |
698dcdb6 VZ |
15105 | if eval "test \"`echo '$''{'wx_cv_type_pthread_rec_mutex_init'+set}'`\" = set"; then |
15106 | echo $ac_n "(cached) $ac_c" 1>&6 | |
15107 | else | |
15108 | ||
15109 | cat > conftest.$ac_ext <<EOF | |
b3e8d00a | 15110 | #line 15111 "configure" |
d9b9876f VZ |
15111 | #include "confdefs.h" |
15112 | #include <pthread.h> | |
698dcdb6 | 15113 | int main() { |
d9b9876f VZ |
15114 | |
15115 | pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP; | |
698dcdb6 VZ |
15116 | |
15117 | ; return 0; } | |
15118 | EOF | |
b3e8d00a | 15119 | if { (eval echo configure:15120: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 VZ |
15120 | rm -rf conftest* |
15121 | ||
d9b9876f | 15122 | wx_cv_type_pthread_rec_mutex_init=yes |
698dcdb6 | 15123 | |
d9b9876f | 15124 | else |
698dcdb6 VZ |
15125 | echo "configure: failed program was:" >&5 |
15126 | cat conftest.$ac_ext >&5 | |
15127 | rm -rf conftest* | |
15128 | ||
d9b9876f | 15129 | wx_cv_type_pthread_rec_mutex_init=no |
698dcdb6 VZ |
15130 | |
15131 | ||
6232543b | 15132 | fi |
698dcdb6 VZ |
15133 | rm -f conftest* |
15134 | ||
1e487827 | 15135 | fi |
698dcdb6 VZ |
15136 | |
15137 | echo "$ac_t""$wx_cv_type_pthread_rec_mutex_init" 1>&6 | |
3765e936 | 15138 | if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then |
698dcdb6 | 15139 | cat >> confdefs.h <<\EOF |
d9b9876f VZ |
15140 | #define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1 |
15141 | EOF | |
15142 | ||
15143 | else | |
698dcdb6 | 15144 | echo "configure: warning: wxMutex won't be recursive on this platform" 1>&2 |
d9b9876f VZ |
15145 | fi |
15146 | fi | |
15147 | ||
10f2d63a | 15148 | THREADS_LINK="-l$THREADS_LINK" |
186837b0 VZ |
15149 | |
15150 | if test "$USE_SOLARIS" = "yes" -a "$GCC" != "yes"; then | |
a3cb1afc | 15151 | CPPFLAGS="${CFLAGS} -mt" |
186837b0 VZ |
15152 | CXXFLAGS="${CXXFLAGS} -mt" |
15153 | LDFLAGS="${LDFLAGS} -mt" | |
15154 | fi | |
10f2d63a VZ |
15155 | fi |
15156 | ||
15157 | fi | |
15158 | ||
15159 | if test "$wxUSE_THREADS" = "yes"; then | |
698dcdb6 | 15160 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
15161 | #define wxUSE_THREADS 1 |
15162 | EOF | |
15163 | ||
698dcdb6 | 15164 | |
7b6058cd | 15165 | if test "$USE_DARWIN" != 1; then |
3a922bb4 | 15166 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D_REENTRANT" |
2c6025bc | 15167 | fi |
10f2d63a VZ |
15168 | |
15169 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread" | |
15170 | else | |
15171 | if test "$ac_cv_func_strtok_r" = "yes"; then | |
698dcdb6 | 15172 | echo $ac_n "checking if -D_REENTRANT is needed""... $ac_c" 1>&6 |
b3e8d00a | 15173 | echo "configure:15174: checking if -D_REENTRANT is needed" >&5 |
ab9b9eab | 15174 | if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then |
3a922bb4 | 15175 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D_REENTRANT" |
698dcdb6 | 15176 | echo "$ac_t""yes" 1>&6 |
ab9b9eab | 15177 | else |
698dcdb6 | 15178 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
15179 | fi |
15180 | fi | |
15181 | fi | |
15182 | ||
6f72b082 | 15183 | if test "$WXGTK20" = 1 ; then |
698dcdb6 | 15184 | cat >> confdefs.h <<EOF |
6f72b082 | 15185 | #define __WXGTK20__ $WXGTK20 |
13111b2a VZ |
15186 | EOF |
15187 | ||
15188 | WXGTK12=1 | |
15189 | fi | |
15190 | ||
10f2d63a | 15191 | if test "$WXGTK12" = 1 ; then |
698dcdb6 | 15192 | cat >> confdefs.h <<EOF |
10f2d63a VZ |
15193 | #define __WXGTK12__ $WXGTK12 |
15194 | EOF | |
15195 | ||
15196 | fi | |
15197 | ||
f6bcfd97 | 15198 | if test "$WXGTK127" = 1 ; then |
698dcdb6 | 15199 | cat >> confdefs.h <<EOF |
f6bcfd97 BP |
15200 | #define __WXGTK127__ $WXGTK127 |
15201 | EOF | |
15202 | ||
15203 | fi | |
15204 | ||
10f2d63a VZ |
15205 | WXDEBUG= |
15206 | ||
15207 | if test "$wxUSE_DEBUG_INFO" = "yes" ; then | |
15208 | WXDEBUG="-g" | |
15209 | wxUSE_OPTIMISE=no | |
15210 | fi | |
15211 | ||
15212 | if test "$wxUSE_DEBUG_GDB" = "yes" ; then | |
15213 | wxUSE_DEBUG_INFO=yes | |
15214 | WXDEBUG="-ggdb" | |
15215 | fi | |
15216 | ||
15217 | if test "$wxUSE_DEBUG_FLAG" = "yes" ; then | |
698dcdb6 | 15218 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
15219 | #define WXDEBUG 1 |
15220 | EOF | |
15221 | ||
15222 | WXDEBUG_DEFINE="-D__WXDEBUG__" | |
15223 | else | |
15224 | if test "$wxUSE_GTK" = 1 ; then | |
15225 | WXDEBUG_DEFINE="-DGTK_NO_CHECK_CASTS" | |
15226 | fi | |
15227 | fi | |
15228 | ||
15229 | if test "$wxUSE_MEM_TRACING" = "yes" ; then | |
698dcdb6 | 15230 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
15231 | #define wxUSE_MEMORY_TRACING 1 |
15232 | EOF | |
15233 | ||
698dcdb6 | 15234 | cat >> confdefs.h <<\EOF |
10f2d63a | 15235 | #define wxUSE_GLOBAL_MEMORY_OPERATORS 1 |
47c13eb7 VS |
15236 | EOF |
15237 | ||
698dcdb6 | 15238 | cat >> confdefs.h <<\EOF |
47c13eb7 | 15239 | #define wxUSE_DEBUG_NEW_ALWAYS 1 |
10f2d63a VZ |
15240 | EOF |
15241 | ||
15242 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck" | |
15243 | fi | |
15244 | ||
15245 | if test "$wxUSE_DMALLOC" = "yes" ; then | |
15246 | DMALLOC_LINK="-ldmalloc" | |
15247 | fi | |
15248 | ||
15249 | PROFILE= | |
15250 | if test "$wxUSE_PROFILE" = "yes" ; then | |
15251 | PROFILE="-pg" | |
15252 | fi | |
15253 | ||
10f2d63a VZ |
15254 | if test "$GCC" = yes ; then |
15255 | if test "$wxUSE_NO_RTTI" = "yes" ; then | |
3a922bb4 | 15256 | CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-rtti" |
10f2d63a VZ |
15257 | fi |
15258 | if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then | |
3a922bb4 | 15259 | CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-exceptions" |
10f2d63a VZ |
15260 | fi |
15261 | if test "$wxUSE_PERMISSIVE" = "yes" ; then | |
caa2c79b | 15262 | CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fpermissive" |
10f2d63a VZ |
15263 | fi |
15264 | if test "$wxUSE_NO_DEPS" = "no" ; then | |
3a922bb4 RL |
15265 | CFLAGS="-MMD ${CFLAGS}" |
15266 | CXXFLAGS="-MMD ${CXXFLAGS}" | |
15267 | fi | |
15268 | if test "$USE_WIN32" = 1 ; then | |
15269 | # I'm not even really sure what this was ever added to solve, | |
15270 | # but someone added it for mingw native builds, so I guess | |
15271 | # they had a reason, right?? | |
15272 | CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fno-pcc-struct-return" | |
10f2d63a VZ |
15273 | fi |
15274 | fi | |
15275 | ||
698dcdb6 | 15276 | |
10f2d63a VZ |
15277 | CXXFLAGS=`echo "${CXXFLAGS}" | sed "s/\-O.//g" ` |
15278 | CFLAGS=`echo "${CFLAGS}" | sed "s/\-O.//g" ` | |
15279 | if test "$wxUSE_OPTIMISE" = "no" ; then | |
15280 | OPTIMISE= | |
15281 | else | |
15282 | if test "$GCC" = yes ; then | |
15283 | OPTIMISE="-O2" | |
15284 | case "${host}" in | |
15285 | i586-*-*|i686-*-* ) | |
15286 | OPTIMISE="${OPTIMISE} " | |
15287 | ;; | |
15288 | esac | |
15289 | else | |
15290 | OPTIMISE="-O" | |
15291 | fi | |
15292 | fi | |
15293 | ||
54276ccf VZ |
15294 | if test "$WXWIN_COMPATIBILITY_2" = "yes"; then |
15295 | cat >> confdefs.h <<\EOF | |
15296 | #define WXWIN_COMPATIBILITY_2 1 | |
15297 | EOF | |
15298 | ||
15299 | ||
15300 | WXWIN_COMPATIBILITY_2_2="yes" | |
15301 | fi | |
15302 | ||
15303 | if test "$WXWIN_COMPATIBILITY_2_2" = "yes"; then | |
15304 | cat >> confdefs.h <<\EOF | |
15305 | #define WXWIN_COMPATIBILITY_2_2 1 | |
15306 | EOF | |
15307 | ||
15308 | fi | |
15309 | ||
698dcdb6 | 15310 | |
10f2d63a | 15311 | ZLIB_INCLUDE= |
422107f9 | 15312 | if test "$wxUSE_ZLIB" = "yes" -o "$wxUSE_ZLIB" = "sys" ; then |
698dcdb6 | 15313 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
15314 | #define wxUSE_ZLIB 1 |
15315 | EOF | |
15316 | ||
422107f9 VZ |
15317 | if test "$wxUSE_ZLIB" = "yes" ; then |
15318 | ZLIB_INCLUDE="-I\${top_srcdir}/src/zlib" | |
15319 | else | |
15320 | ZLIB_LINK= | |
698dcdb6 VZ |
15321 | ac_safe=`echo "zlib.h" | sed 'y%./+-%__p_%'` |
15322 | echo $ac_n "checking for zlib.h""... $ac_c" 1>&6 | |
b3e8d00a | 15323 | echo "configure:15324: checking for zlib.h" >&5 |
698dcdb6 VZ |
15324 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
15325 | echo $ac_n "(cached) $ac_c" 1>&6 | |
15326 | else | |
15327 | cat > conftest.$ac_ext <<EOF | |
b3e8d00a | 15328 | #line 15329 "configure" |
422107f9 VZ |
15329 | #include "confdefs.h" |
15330 | #include <zlib.h> | |
698dcdb6 VZ |
15331 | EOF |
15332 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
b3e8d00a | 15333 | { (eval echo configure:15334: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
15334 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
15335 | if test -z "$ac_err"; then | |
15336 | rm -rf conftest* | |
15337 | eval "ac_cv_header_$ac_safe=yes" | |
422107f9 | 15338 | else |
698dcdb6 VZ |
15339 | echo "$ac_err" >&5 |
15340 | echo "configure: failed program was:" >&5 | |
422107f9 | 15341 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
15342 | rm -rf conftest* |
15343 | eval "ac_cv_header_$ac_safe=no" | |
422107f9 | 15344 | fi |
698dcdb6 | 15345 | rm -f conftest* |
422107f9 | 15346 | fi |
698dcdb6 VZ |
15347 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
15348 | echo "$ac_t""yes" 1>&6 | |
15349 | echo $ac_n "checking for deflate in -lz""... $ac_c" 1>&6 | |
b3e8d00a | 15350 | echo "configure:15351: checking for deflate in -lz" >&5 |
698dcdb6 VZ |
15351 | ac_lib_var=`echo z'_'deflate | sed 'y%./+-%__p_%'` |
15352 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
15353 | echo $ac_n "(cached) $ac_c" 1>&6 | |
422107f9 | 15354 | else |
698dcdb6 | 15355 | ac_save_LIBS="$LIBS" |
422107f9 | 15356 | LIBS="-lz $LIBS" |
698dcdb6 | 15357 | cat > conftest.$ac_ext <<EOF |
b3e8d00a | 15358 | #line 15359 "configure" |
422107f9 VZ |
15359 | #include "confdefs.h" |
15360 | /* Override any gcc2 internal prototype to avoid an error. */ | |
15361 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
15362 | builtin and then its argument prototype would still apply. */ |
15363 | char deflate(); | |
15364 | ||
15365 | int main() { | |
15366 | deflate() | |
15367 | ; return 0; } | |
15368 | EOF | |
b3e8d00a | 15369 | if { (eval echo configure:15370: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
15370 | rm -rf conftest* |
15371 | eval "ac_cv_lib_$ac_lib_var=yes" | |
15372 | else | |
15373 | echo "configure: failed program was:" >&5 | |
15374 | cat conftest.$ac_ext >&5 | |
15375 | rm -rf conftest* | |
15376 | eval "ac_cv_lib_$ac_lib_var=no" | |
15377 | fi | |
15378 | rm -f conftest* | |
15379 | LIBS="$ac_save_LIBS" | |
15380 | ||
15381 | fi | |
15382 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
15383 | echo "$ac_t""yes" 1>&6 | |
422107f9 | 15384 | ZLIB_LINK="-lz" |
698dcdb6 VZ |
15385 | else |
15386 | echo "$ac_t""no" 1>&6 | |
422107f9 VZ |
15387 | fi |
15388 | ||
698dcdb6 VZ |
15389 | else |
15390 | echo "$ac_t""no" 1>&6 | |
422107f9 VZ |
15391 | fi |
15392 | ||
15393 | if test "x$ZLIB_LINK" = "x" ; then | |
698dcdb6 | 15394 | { echo "configure: error: system zlib compression library not found! Use --with-zlib=yes to use built-in zlib" 1>&2; exit 1; } |
422107f9 VZ |
15395 | fi |
15396 | fi | |
10f2d63a VZ |
15397 | fi |
15398 | ||
15399 | PNG_INCLUDE= | |
422107f9 | 15400 | if test "$wxUSE_LIBPNG" = "yes" -o "$wxUSE_LIBPNG" = "sys" ; then |
698dcdb6 | 15401 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
15402 | #define wxUSE_LIBPNG 1 |
15403 | EOF | |
15404 | ||
41fd4136 | 15405 | if test "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then |
698dcdb6 | 15406 | echo "configure: warning: --with-libpng=sys doesn't work without --with-zlib=sys, will compile the built-in libpng instead" 1>&2 |
422107f9 VZ |
15407 | wxUSE_LIBPNG=yes |
15408 | fi | |
15409 | ||
15410 | if test "$wxUSE_LIBPNG" = "yes" ; then | |
15411 | PNG_INCLUDE="-I\${top_srcdir}/src/png" | |
15412 | else | |
15413 | PNG_LINK= | |
698dcdb6 VZ |
15414 | ac_safe=`echo "png.h" | sed 'y%./+-%__p_%'` |
15415 | echo $ac_n "checking for png.h""... $ac_c" 1>&6 | |
b3e8d00a | 15416 | echo "configure:15417: checking for png.h" >&5 |
698dcdb6 VZ |
15417 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
15418 | echo $ac_n "(cached) $ac_c" 1>&6 | |
15419 | else | |
15420 | cat > conftest.$ac_ext <<EOF | |
b3e8d00a | 15421 | #line 15422 "configure" |
422107f9 VZ |
15422 | #include "confdefs.h" |
15423 | #include <png.h> | |
698dcdb6 VZ |
15424 | EOF |
15425 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
b3e8d00a | 15426 | { (eval echo configure:15427: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
15427 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
15428 | if test -z "$ac_err"; then | |
15429 | rm -rf conftest* | |
15430 | eval "ac_cv_header_$ac_safe=yes" | |
422107f9 | 15431 | else |
698dcdb6 VZ |
15432 | echo "$ac_err" >&5 |
15433 | echo "configure: failed program was:" >&5 | |
422107f9 | 15434 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
15435 | rm -rf conftest* |
15436 | eval "ac_cv_header_$ac_safe=no" | |
422107f9 | 15437 | fi |
698dcdb6 | 15438 | rm -f conftest* |
422107f9 | 15439 | fi |
698dcdb6 VZ |
15440 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
15441 | echo "$ac_t""yes" 1>&6 | |
15442 | echo $ac_n "checking for png_check_sig in -lpng""... $ac_c" 1>&6 | |
b3e8d00a | 15443 | echo "configure:15444: checking for png_check_sig in -lpng" >&5 |
698dcdb6 VZ |
15444 | ac_lib_var=`echo png'_'png_check_sig | sed 'y%./+-%__p_%'` |
15445 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
15446 | echo $ac_n "(cached) $ac_c" 1>&6 | |
422107f9 | 15447 | else |
698dcdb6 | 15448 | ac_save_LIBS="$LIBS" |
422107f9 | 15449 | LIBS="-lpng -lz -lm $LIBS" |
698dcdb6 | 15450 | cat > conftest.$ac_ext <<EOF |
b3e8d00a | 15451 | #line 15452 "configure" |
422107f9 VZ |
15452 | #include "confdefs.h" |
15453 | /* Override any gcc2 internal prototype to avoid an error. */ | |
15454 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
15455 | builtin and then its argument prototype would still apply. */ |
15456 | char png_check_sig(); | |
15457 | ||
15458 | int main() { | |
15459 | png_check_sig() | |
15460 | ; return 0; } | |
15461 | EOF | |
b3e8d00a | 15462 | if { (eval echo configure:15463: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
15463 | rm -rf conftest* |
15464 | eval "ac_cv_lib_$ac_lib_var=yes" | |
15465 | else | |
15466 | echo "configure: failed program was:" >&5 | |
15467 | cat conftest.$ac_ext >&5 | |
15468 | rm -rf conftest* | |
15469 | eval "ac_cv_lib_$ac_lib_var=no" | |
15470 | fi | |
15471 | rm -f conftest* | |
15472 | LIBS="$ac_save_LIBS" | |
15473 | ||
15474 | fi | |
15475 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
15476 | echo "$ac_t""yes" 1>&6 | |
422107f9 | 15477 | PNG_LINK="-lpng" |
698dcdb6 VZ |
15478 | else |
15479 | echo "$ac_t""no" 1>&6 | |
422107f9 VZ |
15480 | fi |
15481 | ||
698dcdb6 VZ |
15482 | |
15483 | else | |
15484 | echo "$ac_t""no" 1>&6 | |
422107f9 VZ |
15485 | fi |
15486 | ||
15487 | if test "x$PNG_LINK" = "x" ; then | |
698dcdb6 | 15488 | { echo "configure: error: system png library not found! Use --with-libpng=yes to use the built-in libpng" 1>&2; exit 1; } |
422107f9 VZ |
15489 | fi |
15490 | fi | |
15491 | ||
10f2d63a VZ |
15492 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png" |
15493 | fi | |
15494 | ||
15495 | JPEG_INCLUDE= | |
422107f9 | 15496 | if test "$wxUSE_LIBJPEG" = "yes" -o "$wxUSE_LIBJPEG" = "sys" ; then |
698dcdb6 | 15497 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
15498 | #define wxUSE_LIBJPEG 1 |
15499 | EOF | |
15500 | ||
422107f9 VZ |
15501 | if test "$wxUSE_LIBJPEG" = "yes" ; then |
15502 | JPEG_INCLUDE="-I\${top_srcdir}/src/jpeg" | |
15503 | else | |
15504 | JPEG_LINK= | |
463abc64 | 15505 | echo $ac_n "checking for jpeglib.h""... $ac_c" 1>&6 |
b3e8d00a | 15506 | echo "configure:15507: checking for jpeglib.h" >&5 |
463abc64 | 15507 | if eval "test \"`echo '$''{'ac_cv_header_jpeglib_h'+set}'`\" = set"; then |
698dcdb6 VZ |
15508 | echo $ac_n "(cached) $ac_c" 1>&6 |
15509 | else | |
15510 | cat > conftest.$ac_ext <<EOF | |
b3e8d00a | 15511 | #line 15512 "configure" |
422107f9 | 15512 | #include "confdefs.h" |
463abc64 VZ |
15513 | |
15514 | #undef HAVE_STDLIB_H | |
15515 | #include <stdio.h> | |
15516 | #include <jpeglib.h> | |
15517 | ||
15518 | int main() { | |
15519 | ||
15520 | ||
15521 | ; return 0; } | |
698dcdb6 | 15522 | EOF |
b3e8d00a | 15523 | if { (eval echo configure:15524: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 | 15524 | rm -rf conftest* |
463abc64 | 15525 | ac_cv_header_jpeglib_h=yes |
6232543b | 15526 | else |
698dcdb6 | 15527 | echo "configure: failed program was:" >&5 |
422107f9 | 15528 | cat conftest.$ac_ext >&5 |
698dcdb6 | 15529 | rm -rf conftest* |
463abc64 VZ |
15530 | ac_cv_header_jpeglib_h=no |
15531 | ||
422107f9 | 15532 | fi |
698dcdb6 | 15533 | rm -f conftest* |
463abc64 | 15534 | |
422107f9 | 15535 | fi |
463abc64 VZ |
15536 | |
15537 | echo "$ac_t""$ac_cv_header_jpeglib_h" 1>&6 | |
15538 | ||
15539 | if test "$ac_cv_header_jpeglib_h" = "yes"; then | |
15540 | echo $ac_n "checking for jpeg_read_header in -ljpeg""... $ac_c" 1>&6 | |
b3e8d00a | 15541 | echo "configure:15542: checking for jpeg_read_header in -ljpeg" >&5 |
698dcdb6 VZ |
15542 | ac_lib_var=`echo jpeg'_'jpeg_read_header | sed 'y%./+-%__p_%'` |
15543 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
15544 | echo $ac_n "(cached) $ac_c" 1>&6 | |
422107f9 | 15545 | else |
698dcdb6 | 15546 | ac_save_LIBS="$LIBS" |
422107f9 | 15547 | LIBS="-ljpeg $LIBS" |
698dcdb6 | 15548 | cat > conftest.$ac_ext <<EOF |
b3e8d00a | 15549 | #line 15550 "configure" |
422107f9 VZ |
15550 | #include "confdefs.h" |
15551 | /* Override any gcc2 internal prototype to avoid an error. */ | |
15552 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
15553 | builtin and then its argument prototype would still apply. */ |
15554 | char jpeg_read_header(); | |
15555 | ||
15556 | int main() { | |
15557 | jpeg_read_header() | |
15558 | ; return 0; } | |
15559 | EOF | |
b3e8d00a | 15560 | if { (eval echo configure:15561: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
15561 | rm -rf conftest* |
15562 | eval "ac_cv_lib_$ac_lib_var=yes" | |
15563 | else | |
15564 | echo "configure: failed program was:" >&5 | |
15565 | cat conftest.$ac_ext >&5 | |
15566 | rm -rf conftest* | |
15567 | eval "ac_cv_lib_$ac_lib_var=no" | |
15568 | fi | |
15569 | rm -f conftest* | |
15570 | LIBS="$ac_save_LIBS" | |
15571 | ||
15572 | fi | |
15573 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
15574 | echo "$ac_t""yes" 1>&6 | |
422107f9 | 15575 | JPEG_LINK="-ljpeg" |
698dcdb6 VZ |
15576 | else |
15577 | echo "$ac_t""no" 1>&6 | |
422107f9 VZ |
15578 | fi |
15579 | ||
463abc64 | 15580 | fi |
422107f9 VZ |
15581 | |
15582 | if test "x$JPEG_LINK" = "x" ; then | |
698dcdb6 | 15583 | { echo "configure: error: system jpeg library not found! Use --with-libjpeg=yes to use the built-in one" 1>&2; exit 1; } |
422107f9 VZ |
15584 | fi |
15585 | fi | |
10f2d63a VZ |
15586 | fi |
15587 | ||
c7a2bf27 | 15588 | TIFF_INCLUDE= |
0dcf9893 | 15589 | if test "$wxUSE_LIBTIFF" = "yes" -o "$wxUSE_LIBTIFF" = "sys" ; then |
698dcdb6 | 15590 | cat >> confdefs.h <<\EOF |
c7a2bf27 RR |
15591 | #define wxUSE_LIBTIFF 1 |
15592 | EOF | |
15593 | ||
665bbe97 | 15594 | if test "$wxUSE_LIBTIFF" = "yes" ; then |
0dcf9893 VZ |
15595 | TIFF_INCLUDE="-I\${top_srcdir}/src/tiff" |
15596 | else | |
15597 | TIFF_LINK= | |
698dcdb6 VZ |
15598 | ac_safe=`echo "tiffio.h" | sed 'y%./+-%__p_%'` |
15599 | echo $ac_n "checking for tiffio.h""... $ac_c" 1>&6 | |
b3e8d00a | 15600 | echo "configure:15601: checking for tiffio.h" >&5 |
698dcdb6 VZ |
15601 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
15602 | echo $ac_n "(cached) $ac_c" 1>&6 | |
15603 | else | |
15604 | cat > conftest.$ac_ext <<EOF | |
b3e8d00a | 15605 | #line 15606 "configure" |
0dcf9893 VZ |
15606 | #include "confdefs.h" |
15607 | #include <tiffio.h> | |
698dcdb6 VZ |
15608 | EOF |
15609 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
b3e8d00a | 15610 | { (eval echo configure:15611: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
15611 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
15612 | if test -z "$ac_err"; then | |
15613 | rm -rf conftest* | |
15614 | eval "ac_cv_header_$ac_safe=yes" | |
3fed1840 | 15615 | else |
698dcdb6 VZ |
15616 | echo "$ac_err" >&5 |
15617 | echo "configure: failed program was:" >&5 | |
3fed1840 | 15618 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
15619 | rm -rf conftest* |
15620 | eval "ac_cv_header_$ac_safe=no" | |
3fed1840 | 15621 | fi |
698dcdb6 | 15622 | rm -f conftest* |
3fed1840 | 15623 | fi |
698dcdb6 VZ |
15624 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
15625 | echo "$ac_t""yes" 1>&6 | |
3a922bb4 | 15626 | echo $ac_n "checking for TIFFError in -ltiff""... $ac_c" 1>&6 |
b3e8d00a | 15627 | echo "configure:15628: checking for TIFFError in -ltiff" >&5 |
3a922bb4 | 15628 | ac_lib_var=`echo tiff'_'TIFFError | sed 'y%./+-%__p_%'` |
698dcdb6 VZ |
15629 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
15630 | echo $ac_n "(cached) $ac_c" 1>&6 | |
3fed1840 | 15631 | else |
698dcdb6 | 15632 | ac_save_LIBS="$LIBS" |
3a922bb4 | 15633 | LIBS="-ltiff -lm $LIBS" |
698dcdb6 | 15634 | cat > conftest.$ac_ext <<EOF |
b3e8d00a | 15635 | #line 15636 "configure" |
3fed1840 RR |
15636 | #include "confdefs.h" |
15637 | /* Override any gcc2 internal prototype to avoid an error. */ | |
15638 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 | 15639 | builtin and then its argument prototype would still apply. */ |
3a922bb4 | 15640 | char TIFFError(); |
698dcdb6 VZ |
15641 | |
15642 | int main() { | |
3a922bb4 | 15643 | TIFFError() |
698dcdb6 VZ |
15644 | ; return 0; } |
15645 | EOF | |
b3e8d00a | 15646 | if { (eval echo configure:15647: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
15647 | rm -rf conftest* |
15648 | eval "ac_cv_lib_$ac_lib_var=yes" | |
15649 | else | |
15650 | echo "configure: failed program was:" >&5 | |
15651 | cat conftest.$ac_ext >&5 | |
15652 | rm -rf conftest* | |
15653 | eval "ac_cv_lib_$ac_lib_var=no" | |
15654 | fi | |
15655 | rm -f conftest* | |
15656 | LIBS="$ac_save_LIBS" | |
15657 | ||
15658 | fi | |
15659 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
15660 | echo "$ac_t""yes" 1>&6 | |
3a922bb4 | 15661 | TIFF_LINK="-ltiff" |
698dcdb6 VZ |
15662 | else |
15663 | echo "$ac_t""no" 1>&6 | |
3fed1840 RR |
15664 | fi |
15665 | ||
698dcdb6 VZ |
15666 | else |
15667 | echo "$ac_t""no" 1>&6 | |
3fed1840 RR |
15668 | fi |
15669 | ||
3a922bb4 RL |
15670 | if test "x$TIFF_LINK" = "x" ; then |
15671 | { echo "configure: error: system tiff library not found! Use --with-libtiff=yes to use the built-in one" 1>&2; exit 1; } | |
3fed1840 RR |
15672 | fi |
15673 | fi | |
15674 | fi | |
15675 | ||
3a922bb4 RL |
15676 | FREETYPE_INCLUDE= |
15677 | if test "$wxUSE_FREETYPE" = "yes" -o "$wxUSE_FREETYPE" = "sys" ; then | |
15678 | cat >> confdefs.h <<\EOF | |
15679 | #define wxUSE_FREETYPE 1 | |
7b6058cd GD |
15680 | EOF |
15681 | ||
3a922bb4 RL |
15682 | if test "$wxUSE_FREETYPE" = "yes" ; then |
15683 | FREETYPE_INCLUDE="-I\${top_srcdir}/src/freetype" | |
7b6058cd | 15684 | else |
3a922bb4 RL |
15685 | FREETYPE_LINK= |
15686 | ac_safe=`echo "freetype.h" | sed 'y%./+-%__p_%'` | |
15687 | echo $ac_n "checking for freetype.h""... $ac_c" 1>&6 | |
b3e8d00a | 15688 | echo "configure:15689: checking for freetype.h" >&5 |
698dcdb6 VZ |
15689 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
15690 | echo $ac_n "(cached) $ac_c" 1>&6 | |
15691 | else | |
15692 | cat > conftest.$ac_ext <<EOF | |
b3e8d00a | 15693 | #line 15694 "configure" |
10f2d63a | 15694 | #include "confdefs.h" |
3a922bb4 | 15695 | #include <freetype.h> |
698dcdb6 VZ |
15696 | EOF |
15697 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
b3e8d00a | 15698 | { (eval echo configure:15699: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
15699 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
15700 | if test -z "$ac_err"; then | |
15701 | rm -rf conftest* | |
15702 | eval "ac_cv_header_$ac_safe=yes" | |
10f2d63a | 15703 | else |
698dcdb6 VZ |
15704 | echo "$ac_err" >&5 |
15705 | echo "configure: failed program was:" >&5 | |
10f2d63a | 15706 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
15707 | rm -rf conftest* |
15708 | eval "ac_cv_header_$ac_safe=no" | |
10f2d63a | 15709 | fi |
698dcdb6 | 15710 | rm -f conftest* |
10f2d63a | 15711 | fi |
698dcdb6 VZ |
15712 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
15713 | echo "$ac_t""yes" 1>&6 | |
3a922bb4 | 15714 | echo $ac_n "checking for FT_Render_Glyph in -lfreetype""... $ac_c" 1>&6 |
b3e8d00a | 15715 | echo "configure:15716: checking for FT_Render_Glyph in -lfreetype" >&5 |
3a922bb4 | 15716 | ac_lib_var=`echo freetype'_'FT_Render_Glyph | sed 'y%./+-%__p_%'` |
698dcdb6 VZ |
15717 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
15718 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 15719 | else |
698dcdb6 | 15720 | ac_save_LIBS="$LIBS" |
3a922bb4 | 15721 | LIBS="-lfreetype -lm $LIBS" |
698dcdb6 | 15722 | cat > conftest.$ac_ext <<EOF |
b3e8d00a | 15723 | #line 15724 "configure" |
10f2d63a VZ |
15724 | #include "confdefs.h" |
15725 | /* Override any gcc2 internal prototype to avoid an error. */ | |
15726 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 | 15727 | builtin and then its argument prototype would still apply. */ |
3a922bb4 | 15728 | char FT_Render_Glyph(); |
698dcdb6 VZ |
15729 | |
15730 | int main() { | |
3a922bb4 | 15731 | FT_Render_Glyph() |
698dcdb6 VZ |
15732 | ; return 0; } |
15733 | EOF | |
b3e8d00a | 15734 | if { (eval echo configure:15735: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
15735 | rm -rf conftest* |
15736 | eval "ac_cv_lib_$ac_lib_var=yes" | |
15737 | else | |
15738 | echo "configure: failed program was:" >&5 | |
15739 | cat conftest.$ac_ext >&5 | |
15740 | rm -rf conftest* | |
15741 | eval "ac_cv_lib_$ac_lib_var=no" | |
15742 | fi | |
15743 | rm -f conftest* | |
15744 | LIBS="$ac_save_LIBS" | |
10f2d63a | 15745 | |
698dcdb6 VZ |
15746 | fi |
15747 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
15748 | echo "$ac_t""yes" 1>&6 | |
3a922bb4 | 15749 | FREETYPE_LINK="-lfreetype" |
698dcdb6 VZ |
15750 | else |
15751 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
15752 | fi |
15753 | ||
3a922bb4 | 15754 | |
10f2d63a | 15755 | else |
698dcdb6 | 15756 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
15757 | fi |
15758 | ||
3a922bb4 RL |
15759 | if test "x$FREETYPE_LINK" = "x" ; then |
15760 | { echo "configure: error: system freetype library not found! Use --with-freetype=yes to use the built-in freetype" 1>&2; exit 1; } | |
15761 | fi | |
7b6058cd | 15762 | fi |
10f2d63a VZ |
15763 | fi |
15764 | ||
698dcdb6 | 15765 | |
10f2d63a | 15766 | if test "$wxUSE_GUI" = "yes"; then |
698dcdb6 | 15767 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
15768 | #define wxUSE_GUI 1 |
15769 | EOF | |
15770 | ||
698dcdb6 | 15771 | |
10f2d63a | 15772 | else |
698dcdb6 | 15773 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
15774 | #define wxUSE_NOGUI 1 |
15775 | EOF | |
15776 | ||
15777 | fi | |
15778 | ||
698dcdb6 | 15779 | |
10f2d63a | 15780 | if test "$wxUSE_UNIX" = "yes"; then |
698dcdb6 | 15781 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
15782 | #define wxUSE_UNIX 1 |
15783 | EOF | |
15784 | ||
15785 | fi | |
15786 | ||
698dcdb6 | 15787 | |
10f2d63a | 15788 | if test "$wxUSE_APPLE_IEEE" = "yes"; then |
698dcdb6 | 15789 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
15790 | #define wxUSE_APPLE_IEEE 1 |
15791 | EOF | |
15792 | ||
15793 | fi | |
15794 | ||
1e6feb95 VZ |
15795 | if test "$wxUSE_TIMER" = "yes"; then |
15796 | cat >> confdefs.h <<\EOF | |
15797 | #define wxUSE_TIMER 1 | |
15798 | EOF | |
15799 | ||
15800 | fi | |
15801 | ||
10f2d63a | 15802 | if test "$wxUSE_WAVE" = "yes"; then |
698dcdb6 | 15803 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
15804 | #define wxUSE_WAVE 1 |
15805 | EOF | |
15806 | ||
15807 | fi | |
15808 | ||
1e6feb95 VZ |
15809 | if test "$wxUSE_CMDLINE_PARSER" = "yes"; then |
15810 | cat >> confdefs.h <<\EOF | |
15811 | #define wxUSE_CMDLINE_PARSER 1 | |
15812 | EOF | |
15813 | ||
15814 | fi | |
15815 | ||
15816 | if test "$wxUSE_STOPWATCH" = "yes"; then | |
15817 | cat >> confdefs.h <<\EOF | |
15818 | #define wxUSE_STOPWATCH 1 | |
15819 | EOF | |
15820 | ||
15821 | fi | |
15822 | ||
15823 | if test "$wxUSE_DATETIME" = "yes"; then | |
15824 | cat >> confdefs.h <<\EOF | |
15825 | #define wxUSE_DATETIME 1 | |
15826 | EOF | |
15827 | ||
15828 | fi | |
15829 | ||
15830 | if test "$wxUSE_TIMEDATE" = "yes"; then | |
15831 | cat >> confdefs.h <<\EOF | |
15832 | #define wxUSE_TIMEDATE 1 | |
15833 | EOF | |
15834 | ||
15835 | fi | |
15836 | ||
10f2d63a | 15837 | if test "$wxUSE_FILE" = "yes"; then |
698dcdb6 | 15838 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
15839 | #define wxUSE_FILE 1 |
15840 | EOF | |
15841 | ||
15842 | fi | |
15843 | ||
1e6feb95 VZ |
15844 | if test "$wxUSE_FFILE" = "yes"; then |
15845 | cat >> confdefs.h <<\EOF | |
15846 | #define wxUSE_FFILE 1 | |
15847 | EOF | |
15848 | ||
15849 | fi | |
15850 | ||
24528b0c | 15851 | if test "$wxUSE_FILESYSTEM" = "yes"; then |
698dcdb6 | 15852 | cat >> confdefs.h <<\EOF |
24528b0c VS |
15853 | #define wxUSE_FILESYSTEM 1 |
15854 | EOF | |
15855 | ||
15856 | fi | |
15857 | ||
10f2d63a | 15858 | if test "$wxUSE_FS_INET" = "yes"; then |
698dcdb6 | 15859 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
15860 | #define wxUSE_FS_INET 1 |
15861 | EOF | |
15862 | ||
15863 | fi | |
15864 | ||
15865 | if test "$wxUSE_FS_ZIP" = "yes"; then | |
698dcdb6 | 15866 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
15867 | #define wxUSE_FS_ZIP 1 |
15868 | EOF | |
15869 | ||
15870 | fi | |
15871 | ||
15872 | if test "$wxUSE_ZIPSTREAM" = "yes"; then | |
698dcdb6 | 15873 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
15874 | #define wxUSE_ZIPSTREAM 1 |
15875 | EOF | |
15876 | ||
15877 | fi | |
15878 | ||
eb4efbdc | 15879 | if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then |
698dcdb6 | 15880 | cat >> confdefs.h <<\EOF |
eb4efbdc VZ |
15881 | #define wxUSE_ON_FATAL_EXCEPTION 1 |
15882 | EOF | |
15883 | ||
15884 | fi | |
15885 | ||
4f3c5f06 | 15886 | if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then |
698dcdb6 | 15887 | cat >> confdefs.h <<\EOF |
4f3c5f06 VZ |
15888 | #define wxUSE_SNGLINST_CHECKER 1 |
15889 | EOF | |
15890 | ||
15891 | fi | |
15892 | ||
10f2d63a | 15893 | if test "$wxUSE_BUSYINFO" = "yes"; then |
698dcdb6 | 15894 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
15895 | #define wxUSE_BUSYINFO 1 |
15896 | EOF | |
15897 | ||
15898 | fi | |
15899 | ||
15900 | if test "$wxUSE_STD_IOSTREAM" = "yes"; then | |
698dcdb6 | 15901 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
15902 | #define wxUSE_STD_IOSTREAM 1 |
15903 | EOF | |
15904 | ||
15905 | fi | |
15906 | ||
15907 | if test "$wxUSE_TEXTFILE" = "yes"; then | |
15908 | if test "$wxUSE_FILE" != "yes"; then | |
698dcdb6 | 15909 | echo "configure: warning: wxTextFile requires wxFile and it won't be compiled without it" 1>&2 |
10f2d63a | 15910 | else |
698dcdb6 | 15911 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
15912 | #define wxUSE_TEXTFILE 1 |
15913 | EOF | |
15914 | ||
15915 | fi | |
15916 | fi | |
15917 | ||
15918 | if test "$wxUSE_CONFIG" = "yes" ; then | |
15919 | if test "$wxUSE_TEXTFILE" != "yes"; then | |
698dcdb6 | 15920 | echo "configure: warning: wxConfig requires wxTextFile and it won't be compiled without it" 1>&2 |
10f2d63a | 15921 | else |
698dcdb6 | 15922 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
15923 | #define wxUSE_CONFIG 1 |
15924 | EOF | |
15925 | ||
15926 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config" | |
15927 | fi | |
15928 | fi | |
15929 | ||
15930 | if test "$wxUSE_INTL" = "yes" ; then | |
15931 | if test "$wxUSE_FILE" != "yes"; then | |
698dcdb6 | 15932 | echo "configure: warning: I18n code requires wxFile and it won't be compiled without it" 1>&2 |
10f2d63a | 15933 | else |
698dcdb6 | 15934 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
15935 | #define wxUSE_INTL 1 |
15936 | EOF | |
15937 | ||
15938 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat" | |
f6bcfd97 | 15939 | GUIDIST="$GUIDIST INTL_DIST" |
10f2d63a VZ |
15940 | fi |
15941 | fi | |
15942 | ||
15943 | if test "$wxUSE_LOG" = "yes"; then | |
698dcdb6 | 15944 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
15945 | #define wxUSE_LOG 1 |
15946 | EOF | |
15947 | ||
d73be714 VZ |
15948 | |
15949 | if test "$wxUSE_LOGGUI" = "yes"; then | |
15950 | cat >> confdefs.h <<\EOF | |
15951 | #define wxUSE_LOGGUI 1 | |
15952 | EOF | |
15953 | ||
15954 | fi | |
15955 | ||
15956 | if test "$wxUSE_LOGWINDOW" = "yes"; then | |
15957 | cat >> confdefs.h <<\EOF | |
15958 | #define wxUSE_LOGWINDOW 1 | |
15959 | EOF | |
15960 | ||
15961 | fi | |
10f2d63a VZ |
15962 | fi |
15963 | ||
15964 | if test "$wxUSE_LONGLONG" = "yes"; then | |
698dcdb6 | 15965 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
15966 | #define wxUSE_LONGLONG 1 |
15967 | EOF | |
15968 | ||
15969 | fi | |
15970 | ||
e8f65ba6 | 15971 | if test "$wxUSE_GEOMETRY" = "yes"; then |
698dcdb6 | 15972 | cat >> confdefs.h <<\EOF |
e8f65ba6 RR |
15973 | #define wxUSE_GEOMETRY 1 |
15974 | EOF | |
15975 | ||
15976 | fi | |
15977 | ||
10f2d63a | 15978 | if test "$wxUSE_DIALUP_MANAGER" = "yes" ; then |
698dcdb6 | 15979 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
15980 | #define wxUSE_DIALUP_MANAGER 1 |
15981 | EOF | |
15982 | ||
70f7a477 | 15983 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup" |
10f2d63a VZ |
15984 | fi |
15985 | ||
15986 | if test "$wxUSE_STREAMS" = "yes" ; then | |
698dcdb6 | 15987 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
15988 | #define wxUSE_STREAMS 1 |
15989 | EOF | |
15990 | ||
15991 | fi | |
15992 | ||
1e487827 | 15993 | |
1e6feb95 | 15994 | if test "$wxUSE_DATETIME" = "yes"; then |
698dcdb6 | 15995 | for ac_func in strptime |
83307f33 | 15996 | do |
698dcdb6 | 15997 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
b3e8d00a | 15998 | echo "configure:15999: checking for $ac_func" >&5 |
698dcdb6 VZ |
15999 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
16000 | echo $ac_n "(cached) $ac_c" 1>&6 | |
16001 | else | |
16002 | cat > conftest.$ac_ext <<EOF | |
b3e8d00a | 16003 | #line 16004 "configure" |
83307f33 VZ |
16004 | #include "confdefs.h" |
16005 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 16006 | which can conflict with char $ac_func(); below. */ |
83307f33 VZ |
16007 | #include <assert.h> |
16008 | /* Override any gcc2 internal prototype to avoid an error. */ | |
16009 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
16010 | builtin and then its argument prototype would still apply. */ |
16011 | char $ac_func(); | |
16012 | ||
16013 | int main() { | |
83307f33 VZ |
16014 | |
16015 | /* The GNU C library defines this for functions which it implements | |
16016 | to always fail with ENOSYS. Some functions are actually named | |
16017 | something starting with __ and the normal name is an alias. */ | |
16018 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
16019 | choke me | |
16020 | #else | |
698dcdb6 | 16021 | $ac_func(); |
83307f33 VZ |
16022 | #endif |
16023 | ||
698dcdb6 | 16024 | ; return 0; } |
83307f33 | 16025 | EOF |
b3e8d00a | 16026 | if { (eval echo configure:16027: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
16027 | rm -rf conftest* |
16028 | eval "ac_cv_func_$ac_func=yes" | |
16029 | else | |
16030 | echo "configure: failed program was:" >&5 | |
16031 | cat conftest.$ac_ext >&5 | |
16032 | rm -rf conftest* | |
16033 | eval "ac_cv_func_$ac_func=no" | |
16034 | fi | |
16035 | rm -f conftest* | |
16036 | fi | |
83307f33 | 16037 | |
698dcdb6 VZ |
16038 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
16039 | echo "$ac_t""yes" 1>&6 | |
16040 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
16041 | cat >> confdefs.h <<EOF | |
16042 | #define $ac_tr_func 1 | |
16043 | EOF | |
16044 | ||
16045 | else | |
16046 | echo "$ac_t""no" 1>&6 | |
83307f33 VZ |
16047 | fi |
16048 | done | |
16049 | ||
1e487827 | 16050 | |
698dcdb6 | 16051 | echo $ac_n "checking for timezone variable in <time.h>""... $ac_c" 1>&6 |
b3e8d00a | 16052 | echo "configure:16053: checking for timezone variable in <time.h>" >&5 |
698dcdb6 VZ |
16053 | if eval "test \"`echo '$''{'wx_cv_var_timezone'+set}'`\" = set"; then |
16054 | echo $ac_n "(cached) $ac_c" 1>&6 | |
16055 | else | |
16056 | ||
16057 | cat > conftest.$ac_ext <<EOF | |
b3e8d00a | 16058 | #line 16059 "configure" |
360d6699 VZ |
16059 | #include "confdefs.h" |
16060 | ||
b4085ce6 | 16061 | #include <time.h> |
698dcdb6 VZ |
16062 | |
16063 | int main() { | |
360d6699 VZ |
16064 | |
16065 | int tz; | |
4f11a343 | 16066 | tz = timezone; |
698dcdb6 VZ |
16067 | |
16068 | ; return 0; } | |
16069 | EOF | |
b3e8d00a | 16070 | if { (eval echo configure:16071: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 VZ |
16071 | rm -rf conftest* |
16072 | ||
4f11a343 | 16073 | wx_cv_var_timezone=timezone |
698dcdb6 | 16074 | |
360d6699 | 16075 | else |
698dcdb6 VZ |
16076 | echo "configure: failed program was:" >&5 |
16077 | cat conftest.$ac_ext >&5 | |
16078 | rm -rf conftest* | |
16079 | ||
16080 | cat > conftest.$ac_ext <<EOF | |
b3e8d00a | 16081 | #line 16082 "configure" |
360d6699 VZ |
16082 | #include "confdefs.h" |
16083 | ||
b4085ce6 | 16084 | #include <time.h> |
698dcdb6 VZ |
16085 | |
16086 | int main() { | |
360d6699 VZ |
16087 | |
16088 | int tz; | |
16089 | tz = _timezone; | |
698dcdb6 VZ |
16090 | |
16091 | ; return 0; } | |
16092 | EOF | |
b3e8d00a | 16093 | if { (eval echo configure:16094: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 VZ |
16094 | rm -rf conftest* |
16095 | ||
360d6699 | 16096 | wx_cv_var_timezone=_timezone |
698dcdb6 | 16097 | |
5357c8e8 | 16098 | else |
698dcdb6 VZ |
16099 | echo "configure: failed program was:" >&5 |
16100 | cat conftest.$ac_ext >&5 | |
16101 | rm -rf conftest* | |
16102 | ||
16103 | cat > conftest.$ac_ext <<EOF | |
b3e8d00a | 16104 | #line 16105 "configure" |
5357c8e8 VZ |
16105 | #include "confdefs.h" |
16106 | ||
b4085ce6 | 16107 | #include <time.h> |
698dcdb6 VZ |
16108 | |
16109 | int main() { | |
5357c8e8 VZ |
16110 | |
16111 | int tz; | |
4f11a343 | 16112 | tz = __timezone; |
698dcdb6 VZ |
16113 | |
16114 | ; return 0; } | |
16115 | EOF | |
b3e8d00a | 16116 | if { (eval echo configure:16117: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 VZ |
16117 | rm -rf conftest* |
16118 | ||
4f11a343 | 16119 | wx_cv_var_timezone=__timezone |
698dcdb6 | 16120 | |
360d6699 | 16121 | else |
698dcdb6 VZ |
16122 | echo "configure: failed program was:" >&5 |
16123 | cat conftest.$ac_ext >&5 | |
16124 | rm -rf conftest* | |
16125 | { echo "configure: error: no timezone variable" 1>&2; exit 1; } | |
16126 | ||
360d6699 | 16127 | fi |
698dcdb6 VZ |
16128 | rm -f conftest* |
16129 | ||
16130 | ||
360d6699 | 16131 | fi |
698dcdb6 VZ |
16132 | rm -f conftest* |
16133 | ||
16134 | ||
6232543b | 16135 | fi |
698dcdb6 VZ |
16136 | rm -f conftest* |
16137 | ||
16138 | ||
1e487827 | 16139 | fi |
703e0a69 | 16140 | |
698dcdb6 VZ |
16141 | echo "$ac_t""$wx_cv_var_timezone" 1>&6 |
16142 | ||
16143 | cat >> confdefs.h <<EOF | |
360d6699 VZ |
16144 | #define WX_TIMEZONE $wx_cv_var_timezone |
16145 | EOF | |
16146 | ||
698dcdb6 VZ |
16147 | |
16148 | for ac_func in localtime | |
afc31813 | 16149 | do |
698dcdb6 | 16150 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
b3e8d00a | 16151 | echo "configure:16152: checking for $ac_func" >&5 |
698dcdb6 VZ |
16152 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
16153 | echo $ac_n "(cached) $ac_c" 1>&6 | |
16154 | else | |
16155 | cat > conftest.$ac_ext <<EOF | |
b3e8d00a | 16156 | #line 16157 "configure" |
10f2d63a | 16157 | #include "confdefs.h" |
afc31813 | 16158 | /* System header to define __stub macros and hopefully few prototypes, |
698dcdb6 | 16159 | which can conflict with char $ac_func(); below. */ |
afc31813 VZ |
16160 | #include <assert.h> |
16161 | /* Override any gcc2 internal prototype to avoid an error. */ | |
16162 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
16163 | builtin and then its argument prototype would still apply. */ |
16164 | char $ac_func(); | |
16165 | ||
16166 | int main() { | |
afc31813 VZ |
16167 | |
16168 | /* The GNU C library defines this for functions which it implements | |
16169 | to always fail with ENOSYS. Some functions are actually named | |
16170 | something starting with __ and the normal name is an alias. */ | |
16171 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
16172 | choke me | |
16173 | #else | |
698dcdb6 | 16174 | $ac_func(); |
afc31813 VZ |
16175 | #endif |
16176 | ||
698dcdb6 | 16177 | ; return 0; } |
10f2d63a | 16178 | EOF |
b3e8d00a | 16179 | if { (eval echo configure:16180: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
16180 | rm -rf conftest* |
16181 | eval "ac_cv_func_$ac_func=yes" | |
16182 | else | |
16183 | echo "configure: failed program was:" >&5 | |
16184 | cat conftest.$ac_ext >&5 | |
16185 | rm -rf conftest* | |
16186 | eval "ac_cv_func_$ac_func=no" | |
16187 | fi | |
16188 | rm -f conftest* | |
16189 | fi | |
afc31813 | 16190 | |
698dcdb6 VZ |
16191 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
16192 | echo "$ac_t""yes" 1>&6 | |
16193 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
16194 | cat >> confdefs.h <<EOF | |
16195 | #define $ac_tr_func 1 | |
16196 | EOF | |
16197 | ||
16198 | else | |
16199 | echo "$ac_t""no" 1>&6 | |
afc31813 VZ |
16200 | fi |
16201 | done | |
16202 | ||
1e487827 | 16203 | |
698dcdb6 VZ |
16204 | if test "$ac_cv_func_localtime" = "yes"; then |
16205 | echo $ac_n "checking for tm_gmtoff in struct tm""... $ac_c" 1>&6 | |
b3e8d00a | 16206 | echo "configure:16207: checking for tm_gmtoff in struct tm" >&5 |
698dcdb6 VZ |
16207 | if eval "test \"`echo '$''{'wx_cv_struct_tm_has_gmtoff'+set}'`\" = set"; then |
16208 | echo $ac_n "(cached) $ac_c" 1>&6 | |
16209 | else | |
16210 | ||
16211 | cat > conftest.$ac_ext <<EOF | |
b3e8d00a | 16212 | #line 16213 "configure" |
0470b1e6 VZ |
16213 | #include "confdefs.h" |
16214 | ||
b4085ce6 | 16215 | #include <time.h> |
698dcdb6 VZ |
16216 | |
16217 | int main() { | |
0470b1e6 VZ |
16218 | |
16219 | struct tm tm; | |
16220 | tm.tm_gmtoff++; | |
698dcdb6 VZ |
16221 | |
16222 | ; return 0; } | |
16223 | EOF | |
b3e8d00a | 16224 | if { (eval echo configure:16225: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 VZ |
16225 | rm -rf conftest* |
16226 | ||
f03a98d8 | 16227 | wx_cv_struct_tm_has_gmtoff=yes |
698dcdb6 | 16228 | |
0470b1e6 | 16229 | else |
698dcdb6 VZ |
16230 | echo "configure: failed program was:" >&5 |
16231 | cat conftest.$ac_ext >&5 | |
16232 | rm -rf conftest* | |
16233 | wx_cv_struct_tm_has_gmtoff=no | |
16234 | ||
0470b1e6 | 16235 | fi |
698dcdb6 VZ |
16236 | rm -f conftest* |
16237 | ||
1e487827 | 16238 | fi |
698dcdb6 VZ |
16239 | |
16240 | echo "$ac_t""$wx_cv_struct_tm_has_gmtoff" 1>&6 | |
6232543b VS |
16241 | fi |
16242 | ||
16243 | if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then | |
698dcdb6 | 16244 | cat >> confdefs.h <<\EOF |
6232543b VS |
16245 | #define WX_GMTOFF_IN_TM 1 |
16246 | EOF | |
0470b1e6 | 16247 | |
3fcdd07b VZ |
16248 | fi |
16249 | ||
698dcdb6 | 16250 | for ac_func in gettimeofday ftime |
3fcdd07b | 16251 | do |
698dcdb6 | 16252 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
b3e8d00a | 16253 | echo "configure:16254: checking for $ac_func" >&5 |
698dcdb6 VZ |
16254 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
16255 | echo $ac_n "(cached) $ac_c" 1>&6 | |
16256 | else | |
16257 | cat > conftest.$ac_ext <<EOF | |
b3e8d00a | 16258 | #line 16259 "configure" |
3fcdd07b VZ |
16259 | #include "confdefs.h" |
16260 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 16261 | which can conflict with char $ac_func(); below. */ |
3fcdd07b VZ |
16262 | #include <assert.h> |
16263 | /* Override any gcc2 internal prototype to avoid an error. */ | |
16264 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
16265 | builtin and then its argument prototype would still apply. */ |
16266 | char $ac_func(); | |
16267 | ||
16268 | int main() { | |
3fcdd07b VZ |
16269 | |
16270 | /* The GNU C library defines this for functions which it implements | |
16271 | to always fail with ENOSYS. Some functions are actually named | |
16272 | something starting with __ and the normal name is an alias. */ | |
16273 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
16274 | choke me | |
16275 | #else | |
698dcdb6 | 16276 | $ac_func(); |
3fcdd07b VZ |
16277 | #endif |
16278 | ||
698dcdb6 VZ |
16279 | ; return 0; } |
16280 | EOF | |
b3e8d00a | 16281 | if { (eval echo configure:16282: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
16282 | rm -rf conftest* |
16283 | eval "ac_cv_func_$ac_func=yes" | |
16284 | else | |
16285 | echo "configure: failed program was:" >&5 | |
16286 | cat conftest.$ac_ext >&5 | |
16287 | rm -rf conftest* | |
16288 | eval "ac_cv_func_$ac_func=no" | |
16289 | fi | |
16290 | rm -f conftest* | |
16291 | fi | |
16292 | ||
16293 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
16294 | echo "$ac_t""yes" 1>&6 | |
16295 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
16296 | cat >> confdefs.h <<EOF | |
16297 | #define $ac_tr_func 1 | |
3fcdd07b VZ |
16298 | EOF |
16299 | break | |
698dcdb6 VZ |
16300 | else |
16301 | echo "$ac_t""no" 1>&6 | |
3fcdd07b VZ |
16302 | fi |
16303 | done | |
16304 | ||
afc31813 | 16305 | |
698dcdb6 VZ |
16306 | if test "$ac_cv_func_gettimeofday" = "yes"; then |
16307 | echo $ac_n "checking whether gettimeofday takes two arguments""... $ac_c" 1>&6 | |
b3e8d00a | 16308 | echo "configure:16309: checking whether gettimeofday takes two arguments" >&5 |
698dcdb6 VZ |
16309 | if eval "test \"`echo '$''{'wx_cv_func_gettimeofday_has_2_args'+set}'`\" = set"; then |
16310 | echo $ac_n "(cached) $ac_c" 1>&6 | |
16311 | else | |
16312 | ||
16313 | ||
16314 | ac_ext=C | |
16315 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
1e487827 | 16316 | ac_cpp='$CXXCPP $CPPFLAGS' |
698dcdb6 VZ |
16317 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
16318 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
16319 | cross_compiling=$ac_cv_prog_cxx_cross | |
703e0a69 | 16320 | |
698dcdb6 VZ |
16321 | |
16322 | cat > conftest.$ac_ext <<EOF | |
b3e8d00a | 16323 | #line 16324 "configure" |
10f2d63a | 16324 | #include "confdefs.h" |
afc31813 VZ |
16325 | |
16326 | #include <sys/time.h> | |
16327 | #include <unistd.h> | |
698dcdb6 VZ |
16328 | |
16329 | int main() { | |
afc31813 VZ |
16330 | |
16331 | struct timeval tv; | |
776862b4 | 16332 | gettimeofday(&tv, NULL); |
698dcdb6 VZ |
16333 | |
16334 | ; return 0; } | |
16335 | EOF | |
b3e8d00a | 16336 | if { (eval echo configure:16337: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 | 16337 | rm -rf conftest* |
afc31813 | 16338 | wx_cv_func_gettimeofday_has_2_args=yes |
10f2d63a | 16339 | else |
698dcdb6 VZ |
16340 | echo "configure: failed program was:" >&5 |
16341 | cat conftest.$ac_ext >&5 | |
16342 | rm -rf conftest* | |
16343 | cat > conftest.$ac_ext <<EOF | |
b3e8d00a | 16344 | #line 16345 "configure" |
10f2d63a | 16345 | #include "confdefs.h" |
afc31813 VZ |
16346 | |
16347 | #include <sys/time.h> | |
16348 | #include <unistd.h> | |
698dcdb6 VZ |
16349 | |
16350 | int main() { | |
afc31813 VZ |
16351 | |
16352 | struct timeval tv; | |
16353 | gettimeofday(&tv); | |
698dcdb6 VZ |
16354 | |
16355 | ; return 0; } | |
16356 | EOF | |
b3e8d00a | 16357 | if { (eval echo configure:16358: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 | 16358 | rm -rf conftest* |
afc31813 | 16359 | wx_cv_func_gettimeofday_has_2_args=no |
10f2d63a | 16360 | else |
698dcdb6 VZ |
16361 | echo "configure: failed program was:" >&5 |
16362 | cat conftest.$ac_ext >&5 | |
16363 | rm -rf conftest* | |
776862b4 VZ |
16364 | |
16365 | echo "configure: warning: failed to determine number of gettimeofday() arguments" 1>&2 | |
16366 | wx_cv_func_gettimeofday_has_2_args=unknown | |
16367 | ||
698dcdb6 | 16368 | |
10f2d63a | 16369 | fi |
698dcdb6 VZ |
16370 | rm -f conftest* |
16371 | ||
10f2d63a | 16372 | fi |
698dcdb6 | 16373 | rm -f conftest* |
afc31813 | 16374 | ac_ext=c |
698dcdb6 | 16375 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
10f2d63a | 16376 | ac_cpp='$CPP $CPPFLAGS' |
698dcdb6 VZ |
16377 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
16378 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
16379 | cross_compiling=$ac_cv_prog_cc_cross | |
10f2d63a | 16380 | |
698dcdb6 | 16381 | |
afc31813 | 16382 | fi |
698dcdb6 VZ |
16383 | |
16384 | echo "$ac_t""$wx_cv_func_gettimeofday_has_2_args" 1>&6 | |
c63c7106 | 16385 | |
afc31813 | 16386 | if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then |
698dcdb6 | 16387 | cat >> confdefs.h <<\EOF |
afc31813 VZ |
16388 | #define WX_GETTIMEOFDAY_NO_TZ 1 |
16389 | EOF | |
16390 | ||
16391 | fi | |
16392 | fi | |
16393 | ||
698dcdb6 | 16394 | cat >> confdefs.h <<\EOF |
afc31813 VZ |
16395 | #define wxUSE_TIMEDATE 1 |
16396 | EOF | |
16397 | ||
16398 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest" | |
16399 | fi | |
16400 | ||
698dcdb6 | 16401 | |
b089607b VZ |
16402 | if test "$TOOLKIT" != "MSW"; then |
16403 | ||
3a922bb4 RL |
16404 | if test "$wxUSE_SOCKETS" = "yes"; then |
16405 | echo $ac_n "checking for socket""... $ac_c" 1>&6 | |
b3e8d00a | 16406 | echo "configure:16407: checking for socket" >&5 |
698dcdb6 VZ |
16407 | if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then |
16408 | echo $ac_n "(cached) $ac_c" 1>&6 | |
c63c7106 | 16409 | else |
698dcdb6 | 16410 | cat > conftest.$ac_ext <<EOF |
b3e8d00a | 16411 | #line 16412 "configure" |
c63c7106 VZ |
16412 | #include "confdefs.h" |
16413 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 16414 | which can conflict with char socket(); below. */ |
c63c7106 VZ |
16415 | #include <assert.h> |
16416 | /* Override any gcc2 internal prototype to avoid an error. */ | |
16417 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
16418 | builtin and then its argument prototype would still apply. */ |
16419 | char socket(); | |
16420 | ||
16421 | int main() { | |
c63c7106 VZ |
16422 | |
16423 | /* The GNU C library defines this for functions which it implements | |
16424 | to always fail with ENOSYS. Some functions are actually named | |
16425 | something starting with __ and the normal name is an alias. */ | |
16426 | #if defined (__stub_socket) || defined (__stub___socket) | |
16427 | choke me | |
16428 | #else | |
698dcdb6 | 16429 | socket(); |
c63c7106 VZ |
16430 | #endif |
16431 | ||
698dcdb6 VZ |
16432 | ; return 0; } |
16433 | EOF | |
b3e8d00a | 16434 | if { (eval echo configure:16435: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
16435 | rm -rf conftest* |
16436 | eval "ac_cv_func_socket=yes" | |
16437 | else | |
16438 | echo "configure: failed program was:" >&5 | |
16439 | cat conftest.$ac_ext >&5 | |
16440 | rm -rf conftest* | |
16441 | eval "ac_cv_func_socket=no" | |
16442 | fi | |
16443 | rm -f conftest* | |
16444 | fi | |
16445 | ||
16446 | if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then | |
16447 | echo "$ac_t""yes" 1>&6 | |
c63c7106 VZ |
16448 | : |
16449 | else | |
698dcdb6 VZ |
16450 | echo "$ac_t""no" 1>&6 |
16451 | echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6 | |
b3e8d00a | 16452 | echo "configure:16453: checking for socket in -lsocket" >&5 |
698dcdb6 VZ |
16453 | ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'` |
16454 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
16455 | echo $ac_n "(cached) $ac_c" 1>&6 | |
c63c7106 | 16456 | else |
698dcdb6 | 16457 | ac_save_LIBS="$LIBS" |
c63c7106 | 16458 | LIBS="-lsocket $LIBS" |
698dcdb6 | 16459 | cat > conftest.$ac_ext <<EOF |
b3e8d00a | 16460 | #line 16461 "configure" |
c63c7106 VZ |
16461 | #include "confdefs.h" |
16462 | /* Override any gcc2 internal prototype to avoid an error. */ | |
16463 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
16464 | builtin and then its argument prototype would still apply. */ |
16465 | char socket(); | |
16466 | ||
16467 | int main() { | |
16468 | socket() | |
16469 | ; return 0; } | |
16470 | EOF | |
b3e8d00a | 16471 | if { (eval echo configure:16472: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
16472 | rm -rf conftest* |
16473 | eval "ac_cv_lib_$ac_lib_var=yes" | |
16474 | else | |
16475 | echo "configure: failed program was:" >&5 | |
16476 | cat conftest.$ac_ext >&5 | |
16477 | rm -rf conftest* | |
16478 | eval "ac_cv_lib_$ac_lib_var=no" | |
16479 | fi | |
16480 | rm -f conftest* | |
16481 | LIBS="$ac_save_LIBS" | |
16482 | ||
16483 | fi | |
16484 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
16485 | echo "$ac_t""yes" 1>&6 | |
c63c7106 | 16486 | INET_LINK="$INET_LINK -lsocket" |
c63c7106 | 16487 | else |
698dcdb6 | 16488 | echo "$ac_t""no" 1>&6 |
afc31813 | 16489 | |
3a922bb4 RL |
16490 | echo "configure: warning: socket library not found - sockets will be disabled" 1>&2 |
16491 | wxUSE_SOCKETS=no | |
16492 | ||
698dcdb6 | 16493 | |
6232543b | 16494 | fi |
b089607b | 16495 | |
3a922bb4 | 16496 | |
1e487827 | 16497 | fi |
afc31813 | 16498 | |
3a922bb4 | 16499 | fi |
51a9faba | 16500 | |
3a922bb4 RL |
16501 | |
16502 | if test "$wxUSE_SOCKETS" = "yes" ; then | |
16503 | echo $ac_n "checking what is the type of the third argument of getsockname""... $ac_c" 1>&6 | |
b3e8d00a | 16504 | echo "configure:16505: checking what is the type of the third argument of getsockname" >&5 |
698dcdb6 VZ |
16505 | if eval "test \"`echo '$''{'wx_cv_type_getsockname3'+set}'`\" = set"; then |
16506 | echo $ac_n "(cached) $ac_c" 1>&6 | |
16507 | else | |
16508 | ||
3a922bb4 RL |
16509 | |
16510 | ac_ext=C | |
698dcdb6 | 16511 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
1e487827 | 16512 | ac_cpp='$CXXCPP $CPPFLAGS' |
698dcdb6 VZ |
16513 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
16514 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
16515 | cross_compiling=$ac_cv_prog_cxx_cross | |
703e0a69 | 16516 | |
698dcdb6 | 16517 | |
3a922bb4 | 16518 | cat > conftest.$ac_ext <<EOF |
b3e8d00a | 16519 | #line 16520 "configure" |
afc31813 | 16520 | #include "confdefs.h" |
51a9faba | 16521 | |
3a922bb4 RL |
16522 | #include <sys/types.h> |
16523 | #include <sys/socket.h> | |
16524 | ||
698dcdb6 | 16525 | int main() { |
51a9faba | 16526 | |
3a922bb4 RL |
16527 | socklen_t len; |
16528 | getsockname(0, 0, &len); | |
16529 | ||
698dcdb6 VZ |
16530 | ; return 0; } |
16531 | EOF | |
b3e8d00a | 16532 | if { (eval echo configure:16533: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 | 16533 | rm -rf conftest* |
51a9faba | 16534 | wx_cv_type_getsockname3=socklen_t |
afc31813 | 16535 | else |
698dcdb6 VZ |
16536 | echo "configure: failed program was:" >&5 |
16537 | cat conftest.$ac_ext >&5 | |
16538 | rm -rf conftest* | |
16539 | cat > conftest.$ac_ext <<EOF | |
b3e8d00a | 16540 | #line 16541 "configure" |
afc31813 | 16541 | #include "confdefs.h" |
51a9faba | 16542 | |
3a922bb4 RL |
16543 | #include <sys/types.h> |
16544 | #include <sys/socket.h> | |
16545 | ||
698dcdb6 | 16546 | int main() { |
51a9faba | 16547 | |
3a922bb4 RL |
16548 | size_t len; |
16549 | getsockname(0, 0, &len); | |
16550 | ||
698dcdb6 VZ |
16551 | ; return 0; } |
16552 | EOF | |
b3e8d00a | 16553 | if { (eval echo configure:16554: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 | 16554 | rm -rf conftest* |
51a9faba | 16555 | wx_cv_type_getsockname3=size_t |
afc31813 | 16556 | else |
698dcdb6 VZ |
16557 | echo "configure: failed program was:" >&5 |
16558 | cat conftest.$ac_ext >&5 | |
16559 | rm -rf conftest* | |
16560 | cat > conftest.$ac_ext <<EOF | |
b3e8d00a | 16561 | #line 16562 "configure" |
afc31813 | 16562 | #include "confdefs.h" |
51a9faba | 16563 | |
3a922bb4 RL |
16564 | #include <sys/types.h> |
16565 | #include <sys/socket.h> | |
16566 | ||
698dcdb6 | 16567 | int main() { |
51a9faba | 16568 | |
3a922bb4 RL |
16569 | int len; |
16570 | getsockname(0, 0, &len); | |
16571 | ||
698dcdb6 VZ |
16572 | ; return 0; } |
16573 | EOF | |
b3e8d00a | 16574 | if { (eval echo configure:16575: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 | 16575 | rm -rf conftest* |
51a9faba | 16576 | wx_cv_type_getsockname3=int |
afc31813 | 16577 | else |
698dcdb6 VZ |
16578 | echo "configure: failed program was:" >&5 |
16579 | cat conftest.$ac_ext >&5 | |
16580 | rm -rf conftest* | |
16581 | wx_cv_type_getsockname3=unknown | |
3a922bb4 | 16582 | |
afc31813 | 16583 | fi |
698dcdb6 | 16584 | rm -f conftest* |
3a922bb4 | 16585 | |
afc31813 | 16586 | fi |
698dcdb6 | 16587 | rm -f conftest* |
3a922bb4 | 16588 | |
afc31813 | 16589 | fi |
698dcdb6 | 16590 | rm -f conftest* |
51a9faba | 16591 | |
3a922bb4 | 16592 | ac_ext=c |
698dcdb6 | 16593 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
afc31813 | 16594 | ac_cpp='$CPP $CPPFLAGS' |
698dcdb6 VZ |
16595 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
16596 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
16597 | cross_compiling=$ac_cv_prog_cc_cross | |
afc31813 | 16598 | |
3a922bb4 | 16599 | |
51a9faba | 16600 | fi |
698dcdb6 VZ |
16601 | |
16602 | echo "$ac_t""$wx_cv_type_getsockname3" 1>&6 | |
51a9faba | 16603 | |
3a922bb4 RL |
16604 | if test "$wx_cv_type_getsockname3" = "unknown"; then |
16605 | wxUSE_SOCKETS=no | |
16606 | echo "configure: warning: Couldn't find socklen_t synonym for this system" 1>&2 | |
16607 | else | |
16608 | cat >> confdefs.h <<EOF | |
51a9faba VZ |
16609 | #define SOCKLEN_T $wx_cv_type_getsockname3 |
16610 | EOF | |
16611 | ||
3a922bb4 | 16612 | fi |
51a9faba VZ |
16613 | fi |
16614 | fi | |
afc31813 | 16615 | |
51a9faba | 16616 | if test "$wxUSE_SOCKETS" = "yes" ; then |
698dcdb6 | 16617 | cat >> confdefs.h <<\EOF |
afc31813 VZ |
16618 | #define wxUSE_SOCKETS 1 |
16619 | EOF | |
16620 | ||
70f7a477 | 16621 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets" |
afc31813 VZ |
16622 | fi |
16623 | ||
698dcdb6 | 16624 | |
dc3d889d VZ |
16625 | if test "$wxUSE_GUI" = "yes"; then |
16626 | ||
3a922bb4 RL |
16627 | if test "$TOOLKIT" != "MSW"; then |
16628 | if test "$wxUSE_JOYSTICK" = "yes"; then | |
16629 | for ac_hdr in linux/joystick.h | |
10f2d63a | 16630 | do |
698dcdb6 VZ |
16631 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
16632 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
b3e8d00a | 16633 | echo "configure:16634: checking for $ac_hdr" >&5 |
698dcdb6 VZ |
16634 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
16635 | echo $ac_n "(cached) $ac_c" 1>&6 | |
16636 | else | |
16637 | cat > conftest.$ac_ext <<EOF | |
b3e8d00a | 16638 | #line 16639 "configure" |
10f2d63a | 16639 | #include "confdefs.h" |
698dcdb6 VZ |
16640 | #include <$ac_hdr> |
16641 | EOF | |
16642 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
b3e8d00a | 16643 | { (eval echo configure:16644: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
16644 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
16645 | if test -z "$ac_err"; then | |
16646 | rm -rf conftest* | |
16647 | eval "ac_cv_header_$ac_safe=yes" | |
10f2d63a | 16648 | else |
698dcdb6 VZ |
16649 | echo "$ac_err" >&5 |
16650 | echo "configure: failed program was:" >&5 | |
10f2d63a | 16651 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
16652 | rm -rf conftest* |
16653 | eval "ac_cv_header_$ac_safe=no" | |
10f2d63a | 16654 | fi |
698dcdb6 | 16655 | rm -f conftest* |
10f2d63a | 16656 | fi |
698dcdb6 VZ |
16657 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
16658 | echo "$ac_t""yes" 1>&6 | |
16659 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
16660 | cat >> confdefs.h <<EOF | |
16661 | #define $ac_tr_hdr 1 | |
10f2d63a | 16662 | EOF |
698dcdb6 VZ |
16663 | |
16664 | else | |
16665 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
16666 | fi |
16667 | done | |
16668 | ||
3a922bb4 RL |
16669 | if test "$ac_cv_header_linux_joystick_h" != "yes"; then |
16670 | wxUSE_JOYSTICK=no | |
16671 | echo "configure: warning: Joystick not supported by this system" 1>&2 | |
16672 | fi | |
16673 | fi | |
16674 | fi | |
b089607b | 16675 | |
3a922bb4 RL |
16676 | if test "$wxUSE_JOYSTICK" = "yes"; then |
16677 | cat >> confdefs.h <<\EOF | |
10f2d63a VZ |
16678 | #define wxUSE_JOYSTICK 1 |
16679 | EOF | |
16680 | ||
3a922bb4 RL |
16681 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest" |
16682 | fi | |
dc3d889d VZ |
16683 | fi |
16684 | ||
698dcdb6 | 16685 | |
b089607b VZ |
16686 | if test "$TOOLKIT" != "MSW"; then |
16687 | ||
3a922bb4 RL |
16688 | HAVE_DL_FUNCS=0 |
16689 | HAVE_SHL_FUNCS=0 | |
16690 | if test "$wxUSE_DYNLIB_CLASS" = "yes"; then | |
16691 | if test "$USE_DARWIN" = 1; then | |
16692 | HAVE_DL_FUNCS=1 | |
16693 | else | |
16694 | for ac_func in dlopen | |
10f2d63a | 16695 | do |
698dcdb6 | 16696 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
b3e8d00a | 16697 | echo "configure:16698: checking for $ac_func" >&5 |
698dcdb6 VZ |
16698 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
16699 | echo $ac_n "(cached) $ac_c" 1>&6 | |
16700 | else | |
16701 | cat > conftest.$ac_ext <<EOF | |
b3e8d00a | 16702 | #line 16703 "configure" |
10f2d63a VZ |
16703 | #include "confdefs.h" |
16704 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 16705 | which can conflict with char $ac_func(); below. */ |
10f2d63a VZ |
16706 | #include <assert.h> |
16707 | /* Override any gcc2 internal prototype to avoid an error. */ | |
16708 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
16709 | builtin and then its argument prototype would still apply. */ |
16710 | char $ac_func(); | |
16711 | ||
16712 | int main() { | |
10f2d63a VZ |
16713 | |
16714 | /* The GNU C library defines this for functions which it implements | |
16715 | to always fail with ENOSYS. Some functions are actually named | |
16716 | something starting with __ and the normal name is an alias. */ | |
16717 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
16718 | choke me | |
16719 | #else | |
698dcdb6 | 16720 | $ac_func(); |
10f2d63a VZ |
16721 | #endif |
16722 | ||
698dcdb6 VZ |
16723 | ; return 0; } |
16724 | EOF | |
b3e8d00a | 16725 | if { (eval echo configure:16726: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
16726 | rm -rf conftest* |
16727 | eval "ac_cv_func_$ac_func=yes" | |
16728 | else | |
16729 | echo "configure: failed program was:" >&5 | |
16730 | cat conftest.$ac_ext >&5 | |
16731 | rm -rf conftest* | |
16732 | eval "ac_cv_func_$ac_func=no" | |
16733 | fi | |
16734 | rm -f conftest* | |
16735 | fi | |
16736 | ||
16737 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
16738 | echo "$ac_t""yes" 1>&6 | |
16739 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
16740 | cat >> confdefs.h <<EOF | |
16741 | #define $ac_tr_func 1 | |
16742 | EOF | |
16743 | ||
3a922bb4 | 16744 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16745 | #define HAVE_DLOPEN 1 |
16746 | EOF | |
16747 | ||
3a922bb4 RL |
16748 | HAVE_DL_FUNCS=1 |
16749 | ||
10f2d63a | 16750 | else |
698dcdb6 VZ |
16751 | echo "$ac_t""no" 1>&6 |
16752 | echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6 | |
b3e8d00a | 16753 | echo "configure:16754: checking for dlopen in -ldl" >&5 |
698dcdb6 VZ |
16754 | ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'` |
16755 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
16756 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 16757 | else |
698dcdb6 | 16758 | ac_save_LIBS="$LIBS" |
10f2d63a | 16759 | LIBS="-ldl $LIBS" |
698dcdb6 | 16760 | cat > conftest.$ac_ext <<EOF |
b3e8d00a | 16761 | #line 16762 "configure" |
10f2d63a VZ |
16762 | #include "confdefs.h" |
16763 | /* Override any gcc2 internal prototype to avoid an error. */ | |
16764 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
16765 | builtin and then its argument prototype would still apply. */ |
16766 | char dlopen(); | |
16767 | ||
16768 | int main() { | |
16769 | dlopen() | |
16770 | ; return 0; } | |
16771 | EOF | |
b3e8d00a | 16772 | if { (eval echo configure:16773: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
16773 | rm -rf conftest* |
16774 | eval "ac_cv_lib_$ac_lib_var=yes" | |
16775 | else | |
16776 | echo "configure: failed program was:" >&5 | |
16777 | cat conftest.$ac_ext >&5 | |
16778 | rm -rf conftest* | |
16779 | eval "ac_cv_lib_$ac_lib_var=no" | |
16780 | fi | |
16781 | rm -f conftest* | |
16782 | LIBS="$ac_save_LIBS" | |
16783 | ||
16784 | fi | |
16785 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
16786 | echo "$ac_t""yes" 1>&6 | |
16787 | ||
3a922bb4 | 16788 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16789 | #define HAVE_DLOPEN 1 |
16790 | EOF | |
16791 | ||
3a922bb4 RL |
16792 | HAVE_DL_FUNCS=1 |
16793 | LIBS="$LIBS -ldl" | |
16794 | ||
10f2d63a | 16795 | else |
698dcdb6 | 16796 | echo "$ac_t""no" 1>&6 |
10f2d63a | 16797 | |
3a922bb4 | 16798 | for ac_func in shl_load |
10f2d63a | 16799 | do |
698dcdb6 | 16800 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
b3e8d00a | 16801 | echo "configure:16802: checking for $ac_func" >&5 |
698dcdb6 VZ |
16802 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
16803 | echo $ac_n "(cached) $ac_c" 1>&6 | |
16804 | else | |
16805 | cat > conftest.$ac_ext <<EOF | |
b3e8d00a | 16806 | #line 16807 "configure" |
10f2d63a VZ |
16807 | #include "confdefs.h" |
16808 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 16809 | which can conflict with char $ac_func(); below. */ |
10f2d63a VZ |
16810 | #include <assert.h> |
16811 | /* Override any gcc2 internal prototype to avoid an error. */ | |
16812 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
16813 | builtin and then its argument prototype would still apply. */ |
16814 | char $ac_func(); | |
16815 | ||
16816 | int main() { | |
10f2d63a VZ |
16817 | |
16818 | /* The GNU C library defines this for functions which it implements | |
16819 | to always fail with ENOSYS. Some functions are actually named | |
16820 | something starting with __ and the normal name is an alias. */ | |
16821 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
16822 | choke me | |
16823 | #else | |
698dcdb6 | 16824 | $ac_func(); |
10f2d63a VZ |
16825 | #endif |
16826 | ||
698dcdb6 VZ |
16827 | ; return 0; } |
16828 | EOF | |
b3e8d00a | 16829 | if { (eval echo configure:16830: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
16830 | rm -rf conftest* |
16831 | eval "ac_cv_func_$ac_func=yes" | |
16832 | else | |
16833 | echo "configure: failed program was:" >&5 | |
16834 | cat conftest.$ac_ext >&5 | |
16835 | rm -rf conftest* | |
16836 | eval "ac_cv_func_$ac_func=no" | |
16837 | fi | |
16838 | rm -f conftest* | |
16839 | fi | |
16840 | ||
16841 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
16842 | echo "$ac_t""yes" 1>&6 | |
16843 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
16844 | cat >> confdefs.h <<EOF | |
16845 | #define $ac_tr_func 1 | |
16846 | EOF | |
16847 | ||
3a922bb4 | 16848 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16849 | #define HAVE_SHL_LOAD 1 |
16850 | EOF | |
16851 | ||
3a922bb4 RL |
16852 | HAVE_SHL_FUNCS=1 |
16853 | ||
10f2d63a | 16854 | else |
698dcdb6 VZ |
16855 | echo "$ac_t""no" 1>&6 |
16856 | echo $ac_n "checking for dld in -lshl_load""... $ac_c" 1>&6 | |
b3e8d00a | 16857 | echo "configure:16858: checking for dld in -lshl_load" >&5 |
698dcdb6 VZ |
16858 | ac_lib_var=`echo shl_load'_'dld | sed 'y%./+-%__p_%'` |
16859 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
16860 | echo $ac_n "(cached) $ac_c" 1>&6 | |
f6bcfd97 | 16861 | else |
698dcdb6 | 16862 | ac_save_LIBS="$LIBS" |
f6bcfd97 | 16863 | LIBS="-lshl_load $LIBS" |
698dcdb6 | 16864 | cat > conftest.$ac_ext <<EOF |
b3e8d00a | 16865 | #line 16866 "configure" |
f6bcfd97 BP |
16866 | #include "confdefs.h" |
16867 | /* Override any gcc2 internal prototype to avoid an error. */ | |
16868 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
16869 | builtin and then its argument prototype would still apply. */ |
16870 | char dld(); | |
16871 | ||
16872 | int main() { | |
16873 | dld() | |
16874 | ; return 0; } | |
16875 | EOF | |
b3e8d00a | 16876 | if { (eval echo configure:16877: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
16877 | rm -rf conftest* |
16878 | eval "ac_cv_lib_$ac_lib_var=yes" | |
16879 | else | |
16880 | echo "configure: failed program was:" >&5 | |
16881 | cat conftest.$ac_ext >&5 | |
16882 | rm -rf conftest* | |
16883 | eval "ac_cv_lib_$ac_lib_var=no" | |
16884 | fi | |
16885 | rm -f conftest* | |
16886 | LIBS="$ac_save_LIBS" | |
f6bcfd97 | 16887 | |
698dcdb6 VZ |
16888 | fi |
16889 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
16890 | echo "$ac_t""yes" 1>&6 | |
16891 | ||
3a922bb4 RL |
16892 | HAVE_SHL_FUNCS=1 |
16893 | LIBS="$LIBS -ldld" | |
16894 | ||
698dcdb6 VZ |
16895 | else |
16896 | echo "$ac_t""no" 1>&6 | |
f6bcfd97 BP |
16897 | fi |
16898 | ||
3a922bb4 | 16899 | |
10f2d63a VZ |
16900 | fi |
16901 | done | |
16902 | ||
3a922bb4 | 16903 | |
10f2d63a VZ |
16904 | fi |
16905 | ||
3a922bb4 | 16906 | |
10f2d63a VZ |
16907 | fi |
16908 | done | |
16909 | ||
1e487827 | 16910 | |
3a922bb4 RL |
16911 | if test "$HAVE_DL_FUNCS" = 1; then |
16912 | for ac_func in dlerror | |
f6bcfd97 | 16913 | do |
698dcdb6 | 16914 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
b3e8d00a | 16915 | echo "configure:16916: checking for $ac_func" >&5 |
698dcdb6 VZ |
16916 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
16917 | echo $ac_n "(cached) $ac_c" 1>&6 | |
16918 | else | |
16919 | cat > conftest.$ac_ext <<EOF | |
b3e8d00a | 16920 | #line 16921 "configure" |
f6bcfd97 BP |
16921 | #include "confdefs.h" |
16922 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 16923 | which can conflict with char $ac_func(); below. */ |
f6bcfd97 BP |
16924 | #include <assert.h> |
16925 | /* Override any gcc2 internal prototype to avoid an error. */ | |
16926 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
16927 | builtin and then its argument prototype would still apply. */ |
16928 | char $ac_func(); | |
16929 | ||
16930 | int main() { | |
f6bcfd97 BP |
16931 | |
16932 | /* The GNU C library defines this for functions which it implements | |
16933 | to always fail with ENOSYS. Some functions are actually named | |
16934 | something starting with __ and the normal name is an alias. */ | |
16935 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
16936 | choke me | |
16937 | #else | |
698dcdb6 | 16938 | $ac_func(); |
f6bcfd97 BP |
16939 | #endif |
16940 | ||
698dcdb6 VZ |
16941 | ; return 0; } |
16942 | EOF | |
b3e8d00a | 16943 | if { (eval echo configure:16944: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
16944 | rm -rf conftest* |
16945 | eval "ac_cv_func_$ac_func=yes" | |
16946 | else | |
16947 | echo "configure: failed program was:" >&5 | |
16948 | cat conftest.$ac_ext >&5 | |
16949 | rm -rf conftest* | |
16950 | eval "ac_cv_func_$ac_func=no" | |
16951 | fi | |
16952 | rm -f conftest* | |
16953 | fi | |
16954 | ||
16955 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
16956 | echo "$ac_t""yes" 1>&6 | |
16957 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
16958 | cat >> confdefs.h <<EOF | |
16959 | #define $ac_tr_func 1 | |
16960 | EOF | |
16961 | cat >> confdefs.h <<\EOF | |
f6bcfd97 BP |
16962 | #define HAVE_DLERROR 1 |
16963 | EOF | |
16964 | ||
16965 | else | |
698dcdb6 VZ |
16966 | echo "$ac_t""no" 1>&6 |
16967 | echo $ac_n "checking for dlerror in -ldl""... $ac_c" 1>&6 | |
b3e8d00a | 16968 | echo "configure:16969: checking for dlerror in -ldl" >&5 |
698dcdb6 VZ |
16969 | ac_lib_var=`echo dl'_'dlerror | sed 'y%./+-%__p_%'` |
16970 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
16971 | echo $ac_n "(cached) $ac_c" 1>&6 | |
f6bcfd97 | 16972 | else |
698dcdb6 | 16973 | ac_save_LIBS="$LIBS" |
f6bcfd97 | 16974 | LIBS="-ldl $LIBS" |
698dcdb6 | 16975 | cat > conftest.$ac_ext <<EOF |
b3e8d00a | 16976 | #line 16977 "configure" |
f6bcfd97 BP |
16977 | #include "confdefs.h" |
16978 | /* Override any gcc2 internal prototype to avoid an error. */ | |
16979 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
16980 | builtin and then its argument prototype would still apply. */ |
16981 | char dlerror(); | |
16982 | ||
16983 | int main() { | |
16984 | dlerror() | |
16985 | ; return 0; } | |
16986 | EOF | |
b3e8d00a | 16987 | if { (eval echo configure:16988: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
16988 | rm -rf conftest* |
16989 | eval "ac_cv_lib_$ac_lib_var=yes" | |
16990 | else | |
16991 | echo "configure: failed program was:" >&5 | |
16992 | cat conftest.$ac_ext >&5 | |
16993 | rm -rf conftest* | |
16994 | eval "ac_cv_lib_$ac_lib_var=no" | |
16995 | fi | |
16996 | rm -f conftest* | |
16997 | LIBS="$ac_save_LIBS" | |
16998 | ||
16999 | fi | |
17000 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
17001 | echo "$ac_t""yes" 1>&6 | |
17002 | cat >> confdefs.h <<\EOF | |
f6bcfd97 BP |
17003 | #define HAVE_DLERROR 1 |
17004 | EOF | |
17005 | ||
698dcdb6 VZ |
17006 | else |
17007 | echo "$ac_t""no" 1>&6 | |
f6bcfd97 BP |
17008 | fi |
17009 | ||
17010 | fi | |
17011 | done | |
17012 | ||
3a922bb4 RL |
17013 | fi |
17014 | fi | |
f6bcfd97 | 17015 | |
3a922bb4 RL |
17016 | if test "$HAVE_DL_FUNCS" = 0; then |
17017 | if test "$HAVE_SHL_FUNCS" = 0; then | |
17018 | if test "$USE_UNIX" = 1; then | |
17019 | echo "configure: warning: Missing dynamic loading support, several features will be disabled" 1>&2 | |
17020 | wxUSE_DYNLIB_CLASS=no | |
17021 | else | |
17022 | echo "configure: warning: Assuming wxLibrary class works on this platform" 1>&2 | |
17023 | fi | |
17024 | fi | |
10f2d63a VZ |
17025 | fi |
17026 | fi | |
17027 | fi | |
17028 | ||
17029 | if test "$wxUSE_DYNLIB_CLASS" = "yes" ; then | |
698dcdb6 | 17030 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17031 | #define wxUSE_DYNLIB_CLASS 1 |
17032 | EOF | |
17033 | ||
b12915c1 VZ |
17034 | else |
17035 | wxUSE_ODBC=no | |
17036 | wxUSE_SERIAL=no | |
10f2d63a VZ |
17037 | fi |
17038 | ||
698dcdb6 | 17039 | |
1e6feb95 VZ |
17040 | if test "$wxUSE_FONTMAP" = "yes" ; then |
17041 | cat >> confdefs.h <<\EOF | |
17042 | #define wxUSE_FONTMAP 1 | |
17043 | EOF | |
17044 | ||
17045 | fi | |
17046 | ||
10f2d63a | 17047 | if test "$wxUSE_UNICODE" = "yes" ; then |
698dcdb6 | 17048 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17049 | #define wxUSE_UNICODE 1 |
17050 | EOF | |
17051 | ||
17052 | fi | |
17053 | ||
10f2d63a | 17054 | if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then |
698dcdb6 | 17055 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17056 | #define wxUSE_EXPERIMENTAL_PRINTF 1 |
17057 | EOF | |
17058 | ||
17059 | fi | |
17060 | ||
698dcdb6 | 17061 | |
b12915c1 | 17062 | if test "$wxUSE_SERIAL" = "yes" ; then |
698dcdb6 | 17063 | cat >> confdefs.h <<\EOF |
b12915c1 VZ |
17064 | #define wxUSE_SERIAL 1 |
17065 | EOF | |
17066 | ||
17067 | fi | |
17068 | ||
698dcdb6 | 17069 | |
10f2d63a VZ |
17070 | IODBC_C_SRC="" |
17071 | if test "$wxUSE_ODBC" = "yes" ; then | |
698dcdb6 | 17072 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17073 | #define wxUSE_ODBC 1 |
17074 | EOF | |
17075 | ||
17076 | WXODBCFLAG="-D_IODBC_" | |
17077 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db" | |
10f2d63a VZ |
17078 | fi |
17079 | ||
698dcdb6 | 17080 | |
10f2d63a | 17081 | if test "$wxUSE_POSTSCRIPT" = "yes" ; then |
698dcdb6 | 17082 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17083 | #define wxUSE_POSTSCRIPT 1 |
17084 | EOF | |
17085 | ||
17086 | fi | |
17087 | ||
698dcdb6 | 17088 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17089 | #define wxUSE_AFM_FOR_POSTSCRIPT 1 |
17090 | EOF | |
17091 | ||
698dcdb6 VZ |
17092 | |
17093 | cat >> confdefs.h <<\EOF | |
10f2d63a VZ |
17094 | #define wxUSE_NORMALIZED_PS_FONTS 1 |
17095 | EOF | |
17096 | ||
698dcdb6 VZ |
17097 | |
17098 | ||
10f2d63a | 17099 | if test "$wxUSE_CONSTRAINTS" = "yes"; then |
698dcdb6 | 17100 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17101 | #define wxUSE_CONSTRAINTS 1 |
17102 | EOF | |
17103 | ||
17104 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout" | |
17105 | fi | |
17106 | ||
17107 | if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then | |
698dcdb6 | 17108 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17109 | #define wxUSE_MDI_ARCHITECTURE 1 |
17110 | EOF | |
17111 | ||
17112 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi" | |
17113 | fi | |
17114 | ||
17115 | if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then | |
698dcdb6 | 17116 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17117 | #define wxUSE_DOC_VIEW_ARCHITECTURE 1 |
17118 | EOF | |
17119 | ||
17120 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview" | |
17121 | if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then | |
17122 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi" | |
17123 | fi | |
17124 | fi | |
17125 | ||
17126 | if test "$wxUSE_HELP" = "yes"; then | |
698dcdb6 | 17127 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17128 | #define wxUSE_HELP 1 |
17129 | EOF | |
17130 | ||
17131 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help" | |
3379ed37 | 17132 | |
3e44f09d | 17133 | if test "$USE_WIN32" = 1; then |
031d8228 | 17134 | if test "$wxUSE_MS_HTML_HELP" = "yes"; then |
29fd3c0c VS |
17135 | ac_safe=`echo "htmlhelp.h" | sed 'y%./+-%__p_%'` |
17136 | echo $ac_n "checking for htmlhelp.h""... $ac_c" 1>&6 | |
b3e8d00a | 17137 | echo "configure:17138: checking for htmlhelp.h" >&5 |
29fd3c0c VS |
17138 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
17139 | echo $ac_n "(cached) $ac_c" 1>&6 | |
17140 | else | |
17141 | cat > conftest.$ac_ext <<EOF | |
b3e8d00a | 17142 | #line 17143 "configure" |
29fd3c0c VS |
17143 | #include "confdefs.h" |
17144 | #include <htmlhelp.h> | |
17145 | EOF | |
17146 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
b3e8d00a | 17147 | { (eval echo configure:17148: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
29fd3c0c VS |
17148 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
17149 | if test -z "$ac_err"; then | |
17150 | rm -rf conftest* | |
17151 | eval "ac_cv_header_$ac_safe=yes" | |
17152 | else | |
17153 | echo "$ac_err" >&5 | |
17154 | echo "configure: failed program was:" >&5 | |
17155 | cat conftest.$ac_ext >&5 | |
17156 | rm -rf conftest* | |
17157 | eval "ac_cv_header_$ac_safe=no" | |
17158 | fi | |
17159 | rm -f conftest* | |
17160 | fi | |
17161 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
17162 | echo "$ac_t""yes" 1>&6 | |
17163 | ||
17164 | cat >> confdefs.h <<\EOF | |
17165 | #define wxUSE_MS_HTML_HELP 1 | |
17166 | EOF | |
17167 | ||
17168 | ||
17169 | else | |
17170 | echo "$ac_t""no" 1>&6 | |
17171 | ||
2b9bdf71 | 17172 | echo "configure: warning: MS HTML Help cannot be used without htmlhelp.h, disabled" 1>&2 |
29fd3c0c VS |
17173 | wxUSE_MS_HTML_HELP=no |
17174 | ||
17175 | fi | |
17176 | ||
3e44f09d | 17177 | fi |
3379ed37 | 17178 | fi |
031d8228 VS |
17179 | |
17180 | if test "$wxUSE_WXHTML_HELP" = "yes"; then | |
17181 | if test "$wxUSE_HTML" = "yes"; then | |
17182 | cat >> confdefs.h <<\EOF | |
17183 | #define wxUSE_WXHTML_HELP 1 | |
17184 | EOF | |
17185 | ||
17186 | else | |
17187 | echo "configure: warning: Cannot use wxHTML-based help without wxHTML so it won't be compiled" 1>&2 | |
17188 | wxUSE_WXHTML_HELP=no | |
17189 | fi | |
17190 | fi | |
10f2d63a VZ |
17191 | fi |
17192 | ||
17193 | if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then | |
17194 | if test "$wxUSE_CONSTRAINTS" != "yes"; then | |
698dcdb6 | 17195 | echo "configure: warning: Printing support cannot be used without constraints so it won't be compiled without it" 1>&2 |
10f2d63a | 17196 | else |
698dcdb6 | 17197 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17198 | #define wxUSE_PRINTING_ARCHITECTURE 1 |
17199 | EOF | |
17200 | ||
17201 | fi | |
17202 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing" | |
17203 | fi | |
17204 | ||
17205 | if test "$wxUSE_PROLOGIO" = "yes" ; then | |
698dcdb6 | 17206 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17207 | #define wxUSE_PROLOGIO 1 |
17208 | EOF | |
17209 | ||
17210 | fi | |
17211 | ||
17212 | if test "$wxUSE_RESOURCES" = "yes" ; then | |
3379ed37 | 17213 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17214 | #define wxUSE_RESOURCES 1 |
17215 | EOF | |
17216 | ||
3379ed37 | 17217 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS resource" |
10f2d63a VZ |
17218 | fi |
17219 | ||
17220 | if test "$wxUSE_X_RESOURCES" = "yes"; then | |
698dcdb6 | 17221 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17222 | #define wxUSE_X_RESOURCES 1 |
17223 | EOF | |
17224 | ||
17225 | fi | |
17226 | ||
698dcdb6 | 17227 | |
3a922bb4 RL |
17228 | if test "$USE_WIN32" = 1 -a \( "$wxUSE_DATAOBJ" = "yes" \ |
17229 | -o "$wxUSE_CLIPBOARD" = "yes" \ | |
17230 | -o "$wxUSE_DRAG_AND_DROP" = "yes" \) ; then | |
2b9bdf71 | 17231 | for ac_hdr in ole2.h |
10f2d63a | 17232 | do |
698dcdb6 VZ |
17233 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
17234 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
b3e8d00a | 17235 | echo "configure:17236: checking for $ac_hdr" >&5 |
698dcdb6 VZ |
17236 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
17237 | echo $ac_n "(cached) $ac_c" 1>&6 | |
17238 | else | |
17239 | cat > conftest.$ac_ext <<EOF | |
b3e8d00a | 17240 | #line 17241 "configure" |
10f2d63a | 17241 | #include "confdefs.h" |
698dcdb6 VZ |
17242 | #include <$ac_hdr> |
17243 | EOF | |
17244 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
b3e8d00a | 17245 | { (eval echo configure:17246: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
17246 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
17247 | if test -z "$ac_err"; then | |
17248 | rm -rf conftest* | |
17249 | eval "ac_cv_header_$ac_safe=yes" | |
1e487827 | 17250 | else |
698dcdb6 VZ |
17251 | echo "$ac_err" >&5 |
17252 | echo "configure: failed program was:" >&5 | |
10f2d63a | 17253 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
17254 | rm -rf conftest* |
17255 | eval "ac_cv_header_$ac_safe=no" | |
10f2d63a | 17256 | fi |
698dcdb6 | 17257 | rm -f conftest* |
10f2d63a | 17258 | fi |
698dcdb6 VZ |
17259 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
17260 | echo "$ac_t""yes" 1>&6 | |
17261 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
17262 | cat >> confdefs.h <<EOF | |
17263 | #define $ac_tr_hdr 1 | |
10f2d63a | 17264 | EOF |
698dcdb6 VZ |
17265 | |
17266 | else | |
17267 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
17268 | fi |
17269 | done | |
17270 | ||
698dcdb6 | 17271 | |
2b9bdf71 VZ |
17272 | if test "$ac_cv_header_ole2_h" = "yes" ; then |
17273 | if test "$GCC" = yes ; then | |
17274 | ALL_OBJECTS="$ALL_OBJECTS \$(OLEOBJS)" | |
2b9bdf71 VZ |
17275 | CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fvtable-thunks" |
17276 | LIBS="$LIBS -lrpcrt4 -loleaut32 -lole32 -luuid" | |
17277 | cat >> confdefs.h <<\EOF | |
4f11a343 VS |
17278 | #define wxUSE_OLE 1 |
17279 | EOF | |
17280 | ||
b64f0a5f | 17281 | |
2b9bdf71 VZ |
17282 | fi |
17283 | ||
17284 | cat >> confdefs.h <<\EOF | |
17285 | #define wxUSE_DATAOBJ 1 | |
17286 | EOF | |
17287 | ||
17288 | else | |
17289 | echo "configure: warning: Some features disabled because OLE headers not found" 1>&2 | |
17290 | ||
17291 | wxUSE_CLIPBOARD=no | |
17292 | wxUSE_DRAG_AND_DROP=no | |
17293 | wxUSE_DATAOBJ=no | |
17294 | fi | |
17295 | ||
17296 | if test "$wxUSE_METAFILE" = "yes"; then | |
17297 | cat >> confdefs.h <<\EOF | |
b64f0a5f RL |
17298 | #define wxUSE_METAFILE 1 |
17299 | EOF | |
17300 | ||
2b9bdf71 VZ |
17301 | |
17302 | cat >> confdefs.h <<\EOF | |
b64f0a5f RL |
17303 | #define wxUSE_ENH_METAFILE 1 |
17304 | EOF | |
17305 | ||
2b9bdf71 VZ |
17306 | fi |
17307 | fi | |
17308 | ||
17309 | if test "$wxUSE_IPC" = "yes"; then | |
17310 | if test "$wxUSE_SOCKETS" != "yes"; then | |
17311 | echo "configure: warning: wxWindows IPC classes require sockets" 1>&2 | |
17312 | fi | |
17313 | ||
17314 | cat >> confdefs.h <<\EOF | |
17315 | #define wxUSE_IPC 1 | |
17316 | EOF | |
17317 | ||
17318 | fi | |
17319 | ||
17320 | if test "$wxUSE_CLIPBOARD" = "yes"; then | |
17321 | cat >> confdefs.h <<\EOF | |
17322 | #define wxUSE_CLIPBOARD 1 | |
17323 | EOF | |
17324 | ||
673f4220 | 17325 | |
e33ef661 | 17326 | cat >> confdefs.h <<\EOF |
673f4220 VZ |
17327 | #define wxUSE_DATAOBJ 1 |
17328 | EOF | |
17329 | ||
2b9bdf71 VZ |
17330 | fi |
17331 | ||
17332 | if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then | |
17333 | if test "$wxUSE_GTK" = 1; then | |
17334 | if test "$WXGTK12" != 1; then | |
17335 | echo "configure: warning: Drag and drop is only supported under GTK+ 1.2" 1>&2 | |
10f2d63a VZ |
17336 | wxUSE_DRAG_AND_DROP=no |
17337 | fi | |
17338 | fi | |
17339 | ||
2b9bdf71 VZ |
17340 | if test "$wxUSE_MOTIF" = 1; then |
17341 | echo "configure: warning: Drag and drop is not yet supported under Motif" 1>&2 | |
17342 | wxUSE_DRAG_AND_DROP=no | |
17343 | fi | |
17344 | ||
17345 | if test "$wxUSE_MAC" = 1; then | |
17346 | echo "configure: warning: Drag and drop is not yet supported under Mac OS X" 1>&2 | |
17347 | wxUSE_DRAG_AND_DROP=no | |
17348 | fi | |
17349 | ||
10f2d63a | 17350 | if test "$wxUSE_DRAG_AND_DROP" = "yes"; then |
698dcdb6 | 17351 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17352 | #define wxUSE_DRAG_AND_DROP 1 |
17353 | EOF | |
17354 | ||
17355 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd" | |
17356 | fi | |
17357 | ||
17358 | fi | |
17359 | ||
17360 | if test "$wxUSE_SPLINES" = "yes" ; then | |
698dcdb6 | 17361 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17362 | #define wxUSE_SPLINES 1 |
17363 | EOF | |
17364 | ||
17365 | fi | |
17366 | ||
698dcdb6 | 17367 | |
1e6feb95 VZ |
17368 | USES_CONTROLS=0 |
17369 | if test "$wxUSE_CONTROLS" = "yes"; then | |
17370 | USES_CONTROLS=1 | |
17371 | fi | |
17372 | ||
10f2d63a | 17373 | if test "$wxUSE_ACCEL" = "yes"; then |
698dcdb6 | 17374 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17375 | #define wxUSE_ACCEL 1 |
17376 | EOF | |
17377 | ||
1e6feb95 VZ |
17378 | USES_CONTROLS=1 |
17379 | fi | |
17380 | ||
17381 | if test "$wxUSE_BUTTON" = "yes"; then | |
17382 | cat >> confdefs.h <<\EOF | |
17383 | #define wxUSE_BUTTON 1 | |
17384 | EOF | |
17385 | ||
17386 | USES_CONTROLS=1 | |
17387 | fi | |
17388 | ||
17389 | if test "$wxUSE_BMPBUTTON" = "yes"; then | |
17390 | cat >> confdefs.h <<\EOF | |
17391 | #define wxUSE_BMPBUTTON 1 | |
17392 | EOF | |
17393 | ||
17394 | USES_CONTROLS=1 | |
17395 | fi | |
17396 | ||
17397 | if test "$wxUSE_CALCTRL" = "yes"; then | |
17398 | cat >> confdefs.h <<\EOF | |
17399 | #define wxUSE_CALENDARCTRL 1 | |
17400 | EOF | |
17401 | ||
17402 | USES_CONTROLS=1 | |
17403 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar" | |
10f2d63a VZ |
17404 | fi |
17405 | ||
17406 | if test "$wxUSE_CARET" = "yes"; then | |
698dcdb6 | 17407 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17408 | #define wxUSE_CARET 1 |
17409 | EOF | |
17410 | ||
1e6feb95 | 17411 | USES_CONTROLS=1 |
10f2d63a VZ |
17412 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret" |
17413 | fi | |
17414 | ||
17415 | if test "$wxUSE_COMBOBOX" = "yes"; then | |
698dcdb6 | 17416 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17417 | #define wxUSE_COMBOBOX 1 |
17418 | EOF | |
17419 | ||
1e6feb95 | 17420 | USES_CONTROLS=1 |
10f2d63a VZ |
17421 | fi |
17422 | ||
17423 | if test "$wxUSE_CHOICE" = "yes"; then | |
698dcdb6 | 17424 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17425 | #define wxUSE_CHOICE 1 |
17426 | EOF | |
17427 | ||
1e6feb95 | 17428 | USES_CONTROLS=1 |
10f2d63a VZ |
17429 | fi |
17430 | ||
17431 | if test "$wxUSE_CHECKBOX" = "yes"; then | |
698dcdb6 | 17432 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17433 | #define wxUSE_CHECKBOX 1 |
17434 | EOF | |
17435 | ||
1e6feb95 | 17436 | USES_CONTROLS=1 |
10f2d63a VZ |
17437 | fi |
17438 | ||
17439 | if test "$wxUSE_CHECKLST" = "yes"; then | |
698dcdb6 | 17440 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17441 | #define wxUSE_CHECKLISTBOX 1 |
17442 | EOF | |
17443 | ||
1e6feb95 | 17444 | USES_CONTROLS=1 |
10f2d63a VZ |
17445 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst" |
17446 | fi | |
17447 | ||
17448 | if test "$wxUSE_GAUGE" = "yes"; then | |
698dcdb6 | 17449 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17450 | #define wxUSE_GAUGE 1 |
17451 | EOF | |
17452 | ||
1e6feb95 | 17453 | USES_CONTROLS=1 |
10f2d63a VZ |
17454 | fi |
17455 | ||
d6a55c4b VZ |
17456 | if test "$wxUSE_NEW_GRID" = "yes"; then |
17457 | wxUSE_GRID="yes" | |
698dcdb6 | 17458 | cat >> confdefs.h <<\EOF |
d6a55c4b | 17459 | #define wxUSE_NEW_GRID 1 |
10f2d63a VZ |
17460 | EOF |
17461 | ||
1e6feb95 | 17462 | USES_CONTROLS=1 |
d6a55c4b | 17463 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS newgrid" |
10f2d63a VZ |
17464 | fi |
17465 | ||
d6a55c4b | 17466 | if test "$wxUSE_GRID" = "yes"; then |
698dcdb6 | 17467 | cat >> confdefs.h <<\EOF |
d6a55c4b | 17468 | #define wxUSE_GRID 1 |
10f2d63a VZ |
17469 | EOF |
17470 | ||
1e6feb95 | 17471 | USES_CONTROLS=1 |
d6a55c4b | 17472 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid" |
10f2d63a VZ |
17473 | fi |
17474 | ||
17475 | if test "$wxUSE_IMAGLIST" = "yes"; then | |
698dcdb6 | 17476 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17477 | #define wxUSE_IMAGLIST 1 |
17478 | EOF | |
17479 | ||
17480 | fi | |
17481 | ||
17482 | if test "$wxUSE_LISTBOX" = "yes"; then | |
698dcdb6 | 17483 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17484 | #define wxUSE_LISTBOX 1 |
17485 | EOF | |
17486 | ||
1e6feb95 | 17487 | USES_CONTROLS=1 |
10f2d63a VZ |
17488 | fi |
17489 | ||
17490 | if test "$wxUSE_LISTCTRL" = "yes"; then | |
17491 | if test "$wxUSE_IMAGLIST" = "yes"; then | |
698dcdb6 | 17492 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17493 | #define wxUSE_LISTCTRL 1 |
17494 | EOF | |
17495 | ||
1e6feb95 | 17496 | USES_CONTROLS=1 |
10f2d63a VZ |
17497 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl" |
17498 | else | |
698dcdb6 | 17499 | echo "configure: warning: wxListCtrl requires wxImageList and won't be compiled without it" 1>&2 |
10f2d63a VZ |
17500 | fi |
17501 | fi | |
17502 | ||
17503 | if test "$wxUSE_NOTEBOOK" = "yes"; then | |
698dcdb6 | 17504 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17505 | #define wxUSE_NOTEBOOK 1 |
17506 | EOF | |
17507 | ||
1e6feb95 | 17508 | USES_CONTROLS=1 |
10f2d63a VZ |
17509 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook" |
17510 | fi | |
17511 | ||
24176f2c GD |
17512 | if test "$wxUSE_PROPSHEET" = "yes"; then |
17513 | cat >> confdefs.h <<\EOF | |
17514 | #define wxUSE_PROPSHEET 1 | |
17515 | EOF | |
17516 | ||
17517 | USES_CONTROLS=1 | |
17518 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS proplist" | |
17519 | fi | |
17520 | ||
10f2d63a | 17521 | if test "$wxUSE_RADIOBOX" = "yes"; then |
698dcdb6 | 17522 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17523 | #define wxUSE_RADIOBOX 1 |
17524 | EOF | |
17525 | ||
1e6feb95 | 17526 | USES_CONTROLS=1 |
10f2d63a VZ |
17527 | fi |
17528 | ||
17529 | if test "$wxUSE_RADIOBTN" = "yes"; then | |
698dcdb6 | 17530 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17531 | #define wxUSE_RADIOBTN 1 |
17532 | EOF | |
17533 | ||
1e6feb95 | 17534 | USES_CONTROLS=1 |
10f2d63a VZ |
17535 | fi |
17536 | ||
17537 | if test "$wxUSE_SASH" = "yes"; then | |
698dcdb6 | 17538 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17539 | #define wxUSE_SASH 1 |
17540 | EOF | |
17541 | ||
17542 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest" | |
17543 | fi | |
17544 | ||
17545 | if test "$wxUSE_SCROLLBAR" = "yes"; then | |
698dcdb6 | 17546 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17547 | #define wxUSE_SCROLLBAR 1 |
17548 | EOF | |
17549 | ||
1e6feb95 | 17550 | USES_CONTROLS=1 |
741a9306 | 17551 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub" |
10f2d63a VZ |
17552 | fi |
17553 | ||
17554 | if test "$wxUSE_SLIDER" = "yes"; then | |
698dcdb6 | 17555 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17556 | #define wxUSE_SLIDER 1 |
17557 | EOF | |
17558 | ||
1e6feb95 | 17559 | USES_CONTROLS=1 |
10f2d63a VZ |
17560 | fi |
17561 | ||
17562 | if test "$wxUSE_SPINBTN" = "yes"; then | |
698dcdb6 | 17563 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17564 | #define wxUSE_SPINBTN 1 |
17565 | EOF | |
17566 | ||
1e6feb95 | 17567 | USES_CONTROLS=1 |
10f2d63a VZ |
17568 | fi |
17569 | ||
56cfaa52 | 17570 | if test "$wxUSE_SPINCTRL" = "yes"; then |
698dcdb6 | 17571 | cat >> confdefs.h <<\EOF |
56cfaa52 RR |
17572 | #define wxUSE_SPINCTRL 1 |
17573 | EOF | |
17574 | ||
1e6feb95 | 17575 | USES_CONTROLS=1 |
56cfaa52 RR |
17576 | fi |
17577 | ||
10f2d63a | 17578 | if test "$wxUSE_SPLITTER" = "yes"; then |
698dcdb6 | 17579 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17580 | #define wxUSE_SPLITTER 1 |
17581 | EOF | |
17582 | ||
17583 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter" | |
17584 | fi | |
17585 | ||
17586 | if test "$wxUSE_STATBMP" = "yes"; then | |
698dcdb6 | 17587 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17588 | #define wxUSE_STATBMP 1 |
17589 | EOF | |
17590 | ||
1e6feb95 | 17591 | USES_CONTROLS=1 |
10f2d63a VZ |
17592 | fi |
17593 | ||
17594 | if test "$wxUSE_STATBOX" = "yes"; then | |
698dcdb6 | 17595 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17596 | #define wxUSE_STATBOX 1 |
17597 | EOF | |
17598 | ||
1e6feb95 VZ |
17599 | USES_CONTROLS=1 |
17600 | fi | |
17601 | ||
17602 | if test "$wxUSE_STATTEXT" = "yes"; then | |
17603 | cat >> confdefs.h <<\EOF | |
17604 | #define wxUSE_STATTEXT 1 | |
17605 | EOF | |
17606 | ||
17607 | USES_CONTROLS=1 | |
10f2d63a VZ |
17608 | fi |
17609 | ||
17610 | if test "$wxUSE_STATLINE" = "yes"; then | |
17611 | if test "$wxUSE_WINE" = 1 ; then | |
698dcdb6 | 17612 | echo "configure: warning: wxStaticLine is not supported under WINE" 1>&2 |
10f2d63a | 17613 | else |
698dcdb6 | 17614 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17615 | #define wxUSE_STATLINE 1 |
17616 | EOF | |
17617 | ||
1e6feb95 | 17618 | USES_CONTROLS=1 |
10f2d63a VZ |
17619 | fi |
17620 | fi | |
17621 | ||
17622 | if test "$wxUSE_STATUSBAR" = "yes"; then | |
698dcdb6 | 17623 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17624 | #define wxUSE_STATUSBAR 1 |
17625 | EOF | |
17626 | ||
1e6feb95 | 17627 | USES_CONTROLS=1 |
698dcdb6 | 17628 | |
2286341c | 17629 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar" |
10f2d63a VZ |
17630 | fi |
17631 | ||
17632 | if test "$wxUSE_TABDIALOG" = "yes"; then | |
698dcdb6 | 17633 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17634 | #define wxUSE_TAB_DIALOG 1 |
17635 | EOF | |
17636 | ||
17637 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS tab" | |
17638 | fi | |
17639 | ||
1e6feb95 VZ |
17640 | if test "$wxUSE_TEXTCTRL" = "yes"; then |
17641 | cat >> confdefs.h <<\EOF | |
17642 | #define wxUSE_TEXTCTRL 1 | |
17643 | EOF | |
17644 | ||
17645 | USES_CONTROLS=1 | |
17646 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text" | |
17647 | fi | |
17648 | ||
1db8dc4a | 17649 | if test "$wxUSE_TOGGLEBTN" = "yes"; then |
a45d7ab7 GD |
17650 | if test "$wxUSE_MAC" = 1; then |
17651 | echo "configure: warning: Toggle button is not yet supported under Mac OS X" 1>&2 | |
17652 | wxUSE_TOGGLEBTN=no | |
17653 | fi | |
17654 | ||
17655 | if test "$wxUSE_TOGGLEBTN" = "yes"; then | |
17656 | cat >> confdefs.h <<\EOF | |
1db8dc4a VZ |
17657 | #define wxUSE_TOGGLEBTN 1 |
17658 | EOF | |
17659 | ||
1e6feb95 | 17660 | USES_CONTROLS=1 |
a45d7ab7 | 17661 | fi |
1db8dc4a VZ |
17662 | fi |
17663 | ||
360d6699 | 17664 | if test "$wxUSE_TOOLBAR_SIMPLE" = "yes"; then |
698dcdb6 | 17665 | cat >> confdefs.h <<\EOF |
360d6699 VZ |
17666 | #define wxUSE_TOOLBAR_SIMPLE 1 |
17667 | EOF | |
17668 | ||
17669 | wxUSE_TOOLBAR="yes" | |
1e6feb95 | 17670 | USES_CONTROLS=1 |
360d6699 VZ |
17671 | fi |
17672 | ||
10f2d63a | 17673 | if test "$wxUSE_TOOLBAR" = "yes"; then |
698dcdb6 | 17674 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17675 | #define wxUSE_TOOLBAR 1 |
17676 | EOF | |
17677 | ||
1e6feb95 | 17678 | USES_CONTROLS=1 |
698dcdb6 | 17679 | |
360d6699 VZ |
17680 | if test "$wxUSE_TOOLBAR_SIMPLE" != "yes"; then |
17681 | wxUSE_TOOLBAR_NATIVE="yes" | |
17682 | fi | |
17683 | ||
1e6feb95 VZ |
17684 | if test "$wxUSE_TOOLBAR_NATIVE" = "yes"; then |
17685 | cat >> confdefs.h <<\EOF | |
360d6699 VZ |
17686 | #define wxUSE_TOOLBAR_NATIVE 1 |
17687 | EOF | |
17688 | ||
1e6feb95 VZ |
17689 | USES_CONTROLS=1 |
17690 | fi | |
17691 | ||
17692 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar" | |
360d6699 VZ |
17693 | fi |
17694 | ||
10f2d63a VZ |
17695 | if test "$wxUSE_TOOLTIPS" = "yes"; then |
17696 | if test "$wxUSE_MOTIF" = 1; then | |
698dcdb6 | 17697 | echo "configure: warning: wxTooltip not supported yet under Motif" 1>&2 |
10f2d63a VZ |
17698 | else |
17699 | if test "$wxUSE_WINE" = 1; then | |
698dcdb6 | 17700 | echo "configure: warning: wxTooltip not supported under WINE" 1>&2 |
10f2d63a | 17701 | else |
698dcdb6 | 17702 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17703 | #define wxUSE_TOOLTIPS 1 |
17704 | EOF | |
17705 | ||
17706 | fi | |
17707 | fi | |
17708 | fi | |
17709 | ||
17710 | if test "$wxUSE_TREECTRL" = "yes"; then | |
17711 | if test "$wxUSE_IMAGLIST" = "yes"; then | |
698dcdb6 | 17712 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17713 | #define wxUSE_TREECTRL 1 |
17714 | EOF | |
17715 | ||
1e6feb95 | 17716 | USES_CONTROLS=1 |
10f2d63a VZ |
17717 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl" |
17718 | else | |
698dcdb6 | 17719 | echo "configure: warning: wxTreeCtrl requires wxImageList and won't be compiled without it" 1>&2 |
10f2d63a VZ |
17720 | fi |
17721 | fi | |
17722 | ||
9f41d601 | 17723 | if test "$wxUSE_POPUPWIN" = "yes"; then |
6abe4b65 GD |
17724 | if test "$wxUSE_MAC" = 1; then |
17725 | echo "configure: warning: Popup window is not yet supported under Mac OS" 1>&2 | |
17726 | else | |
17727 | cat >> confdefs.h <<\EOF | |
9f41d601 RR |
17728 | #define wxUSE_POPUPWIN 1 |
17729 | EOF | |
17730 | ||
6abe4b65 GD |
17731 | USES_CONTROLS=1 |
17732 | fi | |
9f41d601 RR |
17733 | fi |
17734 | ||
1e6feb95 VZ |
17735 | if test "$USES_CONTROLS" = 1; then |
17736 | cat >> confdefs.h <<\EOF | |
17737 | #define wxUSE_CONTROLS 1 | |
10f2d63a VZ |
17738 | EOF |
17739 | ||
10f2d63a VZ |
17740 | fi |
17741 | ||
1e6feb95 | 17742 | |
24176f2c GD |
17743 | if test "$wxUSE_TREELAYOUT" = "yes"; then |
17744 | cat >> confdefs.h <<\EOF | |
17745 | #define wxUSE_TREELAYOUT 1 | |
17746 | EOF | |
17747 | ||
17748 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treelay" | |
17749 | fi | |
1e6feb95 | 17750 | |
24fd6d87 VZ |
17751 | if test "$wxUSE_DRAGIMAGE" = "yes"; then |
17752 | cat >> confdefs.h <<\EOF | |
17753 | #define wxUSE_DRAGIMAGE 1 | |
17754 | EOF | |
17755 | ||
17756 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag" | |
17757 | fi | |
17758 | ||
1e6feb95 | 17759 | if test "$wxUSE_MENUS" = "yes"; then |
698dcdb6 | 17760 | cat >> confdefs.h <<\EOF |
1e6feb95 | 17761 | #define wxUSE_MENUS 1 |
10f2d63a VZ |
17762 | EOF |
17763 | ||
1e6feb95 | 17764 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu" |
10f2d63a VZ |
17765 | fi |
17766 | ||
1e6feb95 VZ |
17767 | if test "$wxUSE_METAFILE" = "yes"; then |
17768 | cat >> confdefs.h <<\EOF | |
17769 | #define wxUSE_METAFILE 1 | |
10f2d63a VZ |
17770 | EOF |
17771 | ||
10f2d63a VZ |
17772 | fi |
17773 | ||
1e6feb95 VZ |
17774 | if test "$wxUSE_MIMETYPE" = "yes"; then |
17775 | cat >> confdefs.h <<\EOF | |
17776 | #define wxUSE_MIMETYPE 1 | |
10f2d63a VZ |
17777 | EOF |
17778 | ||
10f2d63a VZ |
17779 | fi |
17780 | ||
3e44f09d VZ |
17781 | if test "$wxUSE_SYSTEM_OPTIONS" = "yes"; then |
17782 | cat >> confdefs.h <<\EOF | |
17783 | #define wxUSE_SYSTEM_OPTIONS 1 | |
17784 | EOF | |
17785 | ||
17786 | fi | |
17787 | ||
10f2d63a | 17788 | if test "$wxUSE_MINIFRAME" = "yes"; then |
698dcdb6 | 17789 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17790 | #define wxUSE_MINIFRAME 1 |
17791 | EOF | |
17792 | ||
17793 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram" | |
17794 | fi | |
17795 | ||
17796 | if test "$wxUSE_HTML" = "yes"; then | |
698dcdb6 | 17797 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17798 | #define wxUSE_HTML 1 |
17799 | EOF | |
17800 | ||
17801 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html" | |
10f2d63a VZ |
17802 | fi |
17803 | ||
17804 | if test "$wxUSE_VALIDATORS" = "yes"; then | |
698dcdb6 | 17805 | cat >> confdefs.h <<\EOF |
1e487827 VS |
17806 | #define wxUSE_VALIDATORS 1 |
17807 | EOF | |
703e0a69 | 17808 | |
698dcdb6 VZ |
17809 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate" |
17810 | fi | |
17811 | ||
17812 | if test "$wxUSE_IMAGE" = "yes" ; then | |
17813 | cat >> confdefs.h <<\EOF | |
17814 | #define wxUSE_IMAGE 1 | |
17815 | EOF | |
17816 | ||
17817 | fi | |
17818 | ||
17819 | if test "$wxUSE_GIF" = "yes" ; then | |
17820 | cat >> confdefs.h <<\EOF | |
17821 | #define wxUSE_GIF 1 | |
17822 | EOF | |
17823 | ||
17824 | fi | |
17825 | ||
17826 | if test "$wxUSE_PCX" = "yes" ; then | |
17827 | cat >> confdefs.h <<\EOF | |
17828 | #define wxUSE_PCX 1 | |
17829 | EOF | |
17830 | ||
17831 | fi | |
17832 | ||
17833 | if test "$wxUSE_PNM" = "yes" ; then | |
17834 | cat >> confdefs.h <<\EOF | |
17835 | #define wxUSE_PNM 1 | |
17836 | EOF | |
17837 | ||
17838 | fi | |
17839 | ||
17840 | if test "$wxUSE_XPM" = "yes" ; then | |
17841 | cat >> confdefs.h <<\EOF | |
17842 | #define wxUSE_XPM 1 | |
17843 | EOF | |
17844 | ||
17845 | fi | |
17846 | ||
17847 | ||
1e6feb95 VZ |
17848 | if test "$wxUSE_CHOICEDLG" = "yes"; then |
17849 | cat >> confdefs.h <<\EOF | |
17850 | #define wxUSE_CHOICEDLG 1 | |
17851 | EOF | |
17852 | ||
17853 | fi | |
17854 | ||
17855 | if test "$wxUSE_COLOURDLG" = "yes"; then | |
17856 | cat >> confdefs.h <<\EOF | |
17857 | #define wxUSE_COLOURDLG 1 | |
17858 | EOF | |
17859 | ||
17860 | fi | |
17861 | ||
17862 | if test "$wxUSE_FILEDLG" = "yes"; then | |
17863 | cat >> confdefs.h <<\EOF | |
17864 | #define wxUSE_FILEDLG 1 | |
17865 | EOF | |
17866 | ||
17867 | fi | |
17868 | ||
8db37e06 VZ |
17869 | if test "$wxUSE_FINDREPLDLG" = "yes"; then |
17870 | cat >> confdefs.h <<\EOF | |
17871 | #define wxUSE_FINDREPLDLG 1 | |
17872 | EOF | |
17873 | ||
17874 | fi | |
17875 | ||
1e6feb95 VZ |
17876 | if test "$wxUSE_FONTDLG" = "yes"; then |
17877 | cat >> confdefs.h <<\EOF | |
17878 | #define wxUSE_FONTDLG 1 | |
17879 | EOF | |
17880 | ||
17881 | fi | |
17882 | ||
17883 | if test "$wxUSE_DIRDLG" = "yes"; then | |
17884 | if test "$wxUSE_CONSTRAINTS" != "yes"; then | |
17885 | echo "configure: warning: wxDirDialog requires constraints so it won't be compiled without them" 1>&2 | |
17886 | else | |
17887 | if test "$wxUSE_TREECTRL" != "yes"; then | |
17888 | echo "configure: warning: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" 1>&2 | |
17889 | else | |
17890 | cat >> confdefs.h <<\EOF | |
17891 | #define wxUSE_DIRDLG 1 | |
17892 | EOF | |
17893 | ||
17894 | fi | |
17895 | fi | |
17896 | fi | |
17897 | ||
17898 | if test "$wxUSE_MSGDLG" = "yes"; then | |
17899 | cat >> confdefs.h <<\EOF | |
17900 | #define wxUSE_MSGDLG 1 | |
17901 | EOF | |
17902 | ||
17903 | fi | |
17904 | ||
17905 | if test "$wxUSE_NUMBERDLG" = "yes"; then | |
17906 | cat >> confdefs.h <<\EOF | |
17907 | #define wxUSE_NUMBERDLG 1 | |
17908 | EOF | |
17909 | ||
17910 | fi | |
17911 | ||
17912 | if test "$wxUSE_PROGRESSDLG" = "yes"; then | |
17913 | if test "$wxUSE_CONSTRAINTS" != "yes"; then | |
17914 | echo "configure: warning: wxProgressDialog requires constraints so it won't be compiled without them" 1>&2 | |
17915 | else | |
17916 | cat >> confdefs.h <<\EOF | |
17917 | #define wxUSE_PROGRESSDLG 1 | |
17918 | EOF | |
17919 | ||
17920 | fi | |
17921 | fi | |
17922 | ||
cbca9943 VZ |
17923 | if test "$wxUSE_SPLASH" = "yes"; then |
17924 | cat >> confdefs.h <<\EOF | |
17925 | #define wxUSE_SPLASH 1 | |
17926 | EOF | |
17927 | ||
17928 | fi | |
17929 | ||
1e6feb95 VZ |
17930 | if test "$wxUSE_STARTUP_TIPS" = "yes"; then |
17931 | if test "$wxUSE_CONSTRAINTS" != "yes"; then | |
17932 | echo "configure: warning: Startup tips requires constraints and won't be compiled without them" 1>&2 | |
17933 | else | |
17934 | cat >> confdefs.h <<\EOF | |
17935 | #define wxUSE_STARTUP_TIPS 1 | |
17936 | EOF | |
17937 | ||
17938 | fi | |
17939 | fi | |
17940 | ||
17941 | if test "$wxUSE_TEXTDLG" = "yes"; then | |
17942 | cat >> confdefs.h <<\EOF | |
17943 | #define wxUSE_TEXTDLG 1 | |
17944 | EOF | |
17945 | ||
17946 | fi | |
17947 | ||
b1f5d087 VZ |
17948 | if test "$wxUSE_WIZARDDLG" = "yes"; then |
17949 | cat >> confdefs.h <<\EOF | |
17950 | #define wxUSE_WIZARDDLG 1 | |
17951 | EOF | |
17952 | ||
17953 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wizard" | |
17954 | fi | |
17955 | ||
1e6feb95 | 17956 | |
698dcdb6 VZ |
17957 | if test "$cross_compiling" = "yes"; then |
17958 | OSINFO="\"$host\"" | |
17959 | else | |
17960 | OSINFO=`uname -s -r -m` | |
17961 | OSINFO="\"$OSINFO\"" | |
17962 | fi | |
17963 | ||
17964 | cat >> confdefs.h <<EOF | |
17965 | #define WXWIN_OS_DESCRIPTION $OSINFO | |
17966 | EOF | |
17967 | ||
17968 | ||
17969 | ||
06dda230 VZ |
17970 | if test "x$prefix" != "xNONE"; then |
17971 | wxPREFIX=$prefix | |
17972 | else | |
17973 | wxPREFIX=$ac_default_prefix | |
17974 | fi | |
17975 | ||
7e67ed0d | 17976 | cat >> confdefs.h <<EOF |
06dda230 | 17977 | #define wxINSTALL_PREFIX "$wxPREFIX" |
7e67ed0d VZ |
17978 | EOF |
17979 | ||
17980 | ||
17981 | ||
698dcdb6 | 17982 | GUILIBS="$GUI_TK_LIBRARY $TOOLKIT_LINK" |
698dcdb6 VZ |
17983 | |
17984 | EXTRA_LIBS="$LIBS $POSIX4_LINK $INET_LINK $WCHAR_LINK $THREADS_LINK $DMALLOC_LINK $DL_LINK $ZLIB_LINK -lm" | |
3a922bb4 | 17985 | |
f11bdd03 | 17986 | if test "$wxUSE_MAC" = 1 ; then |
698dcdb6 VZ |
17987 | EXTRA_LIBS="$EXTRA_LIBS -framework Carbon -framework System" |
17988 | fi | |
3a922bb4 | 17989 | |
698dcdb6 VZ |
17990 | if test "$wxUSE_GUI" = "yes"; then |
17991 | EXTRA_LIBS="$GUILIBS $PNG_LINK $JPEG_LINK $TIFF_LINK $FREETYPE_LINK $EXTRA_LIBS" | |
3a922bb4 RL |
17992 | |
17993 | ||
17994 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS controls dialogs \ | |
17995 | drawing dynamic erase event exec font image \ | |
17996 | minimal richedit rotate widgets" | |
17997 | ||
17998 | if test "$wxUSE_UNIVERSAL" = "yes" ; then | |
17999 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS univ" | |
18000 | fi | |
18001 | ||
18002 | CPPFLAGS="$CPPFLAGS \$(EXTRADEFS) \$(APPEXTRADEFS)" | |
18003 | else | |
18004 | SAMPLES_SUBDIRS="console" | |
698dcdb6 VZ |
18005 | fi |
18006 | ||
18007 | LD_LIBS="\${top_builddir}/lib/${WX_LIBRARY_NAME_STATIC} $EXTRA_LIBS" | |
18008 | ||
3a922bb4 | 18009 | INCLUDES="-I. -I\${top_builddir}/lib/wx/include/${TOOLCHAIN_NAME} -I\${top_srcdir}/include \ |
3e44f09d VZ |
18010 | $REGEX_INCLUDE $ZLIB_INCLUDE $PNG_INCLUDE $JPEG_INCLUDE $TIFF_INCLUDE \ |
18011 | $FREETYPE_INCLUDE $TOOLKIT_INCLUDE" | |
698dcdb6 VZ |
18012 | |
18013 | if test "$wxUSE_GTK" = 1; then | |
18014 | WXCONFIG_INCLUDE="" | |
18015 | else | |
18016 | WXCONFIG_INCLUDE="$TOOLKIT_INCLUDE" | |
18017 | fi | |
18018 | ||
18019 | if test "$GXX" = yes ; then | |
18020 | CXXWARNINGS="-Wall" | |
18021 | fi | |
18022 | EXTRA_CFLAGS="$WXDEBUG $WXODBCFLAG $PROFILE $OPTIMISE $INCLUDES" | |
18023 | ||
18024 | CFLAGS=`echo $CFLAGS $EXTRA_CFLAGS $CXXWARNINGS | sed 's/ \\+/ /g'` | |
18025 | CXXFLAGS=`echo $CXXFLAGS $EXTRA_CFLAGS $CXXWARNINGS | sed 's/ \+/ /g'` | |
18026 | ||
18027 | LDFLAGS="$LDFLAGS $PROFILE" | |
18028 | ||
698dcdb6 VZ |
18029 | SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`" |
18030 | ||
18031 | ||
18032 | ||
18033 | ||
18034 | ||
18035 | ||
18036 | ||
18037 | ||
18038 | ||
18039 | ||
18040 | ||
18041 | ||
18042 | ||
18043 | ||
18044 | ||
18045 | ||
18046 | ||
18047 | ||
18048 | ||
18049 | ||
18050 | ||
18051 | ||
18052 | ||
18053 | ||
18054 | ||
18055 | ||
18056 | ||
18057 | ||
18058 | ||
18059 | ||
18060 | ||
18061 | ||
18062 | ||
18063 | ||
18064 | ||
18065 | ||
18066 | ||
18067 | ||
18068 | ||
18069 | ||
18070 | ||
18071 | ||
18072 | ||
18073 | ||
18074 | ||
18075 | ||
18076 | ||
18077 | ||
18078 | ||
18079 | ||
18080 | ||
18081 | ||
18082 | ||
18083 | ||
18084 | ||
18085 | ||
18086 | ||
18087 | ||
18088 | ||
18089 | ||
18090 | ||
18091 | ||
18092 | ||
18093 | ||
18094 | ||
18095 | ||
18096 | ||
32832908 | 18097 | |
2f51a9ec GD |
18098 | |
18099 | ||
18100 | ||
18101 | ||
f6bcfd97 | 18102 | |
dad6c0ea | 18103 | |
caa2c79b | 18104 | |
3711412e | 18105 | |
1e6feb95 VZ |
18106 | |
18107 | ||
0f3f1cbc | 18108 | |
18dbb1f6 | 18109 | |
10f2d63a VZ |
18110 | |
18111 | ||
698dcdb6 | 18112 | echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6 |
b3e8d00a | 18113 | echo "configure:18114: checking whether ${MAKE-make} sets \${MAKE}" >&5 |
698dcdb6 VZ |
18114 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'` |
18115 | if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then | |
18116 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 18117 | else |
698dcdb6 | 18118 | cat > conftestmake <<\EOF |
10f2d63a VZ |
18119 | all: |
18120 | @echo 'ac_maketemp="${MAKE}"' | |
18121 | EOF | |
18122 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
698dcdb6 | 18123 | eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=` |
10f2d63a VZ |
18124 | if test -n "$ac_maketemp"; then |
18125 | eval ac_cv_prog_make_${ac_make}_set=yes | |
18126 | else | |
18127 | eval ac_cv_prog_make_${ac_make}_set=no | |
18128 | fi | |
698dcdb6 | 18129 | rm -f conftestmake |
10f2d63a VZ |
18130 | fi |
18131 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then | |
698dcdb6 | 18132 | echo "$ac_t""yes" 1>&6 |
10f2d63a VZ |
18133 | SET_MAKE= |
18134 | else | |
698dcdb6 | 18135 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
18136 | SET_MAKE="MAKE=${MAKE-make}" |
18137 | fi | |
18138 | ||
698dcdb6 | 18139 | |
3a922bb4 RL |
18140 | if test -f lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h; then |
18141 | mv -f lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h setup.h | |
00cf1208 | 18142 | fi |
665bbe97 | 18143 | |
698dcdb6 | 18144 | |
10f2d63a | 18145 | |
2224580a | 18146 | if test "$wxUSE_GUI" = "yes"; then |
ec90f5e5 | 18147 | wx_cv_path_samplesubdirs=$SAMPLES_SUBDIRS |
e8482f24 GL |
18148 | wx_cv_path_ifs=$PATH_IFS |
18149 | wx_cv_program_ext=$PROGRAM_EXT | |
18150 | wx_cv_target_library=$WX_TARGET_LIBRARY | |
7b6058cd | 18151 | wx_cv_target_library_gl=$WX_TARGET_LIBRARY_GL |
3711412e | 18152 | wx_cv_target_libtype=$WX_TARGET_LIBRARY_TYPE |
93a20a27 | 18153 | export wx_cv_path_samplesubdirs wx_cv_path_ifs wx_cv_program_ext \ |
7b6058cd | 18154 | wx_cv_target_library wx_cv_target_library_gl wx_cv_target_libtype |
698dcdb6 | 18155 | subdirs="demos samples utils contrib" |
2224580a VZ |
18156 | |
18157 | fi | |
10f2d63a | 18158 | |
698dcdb6 VZ |
18159 | trap '' 1 2 15 |
18160 | cat > confcache <<\EOF | |
10f2d63a VZ |
18161 | # This file is a shell script that caches the results of configure |
18162 | # tests run on this system so they can be shared between configure | |
698dcdb6 VZ |
18163 | # scripts and configure runs. It is not useful on other systems. |
18164 | # If it contains results you don't want to keep, you may remove or edit it. | |
10f2d63a | 18165 | # |
698dcdb6 VZ |
18166 | # By default, configure uses ./config.cache as the cache file, |
18167 | # creating it if it does not exist already. You can give configure | |
18168 | # the --cache-file=FILE option to use a different cache file; that is | |
18169 | # what configure does when it calls configure scripts in | |
18170 | # subdirectories, so they share the cache. | |
18171 | # Giving --cache-file=/dev/null disables caching, for debugging configure. | |
18172 | # config.status only pays attention to the cache file if you give it the | |
18173 | # --recheck option to rerun configure. | |
10f2d63a | 18174 | # |
698dcdb6 | 18175 | EOF |
10f2d63a VZ |
18176 | # The following way of writing the cache mishandles newlines in values, |
18177 | # but we know of no workaround that is simple, portable, and efficient. | |
18178 | # So, don't put newlines in cache variables' values. | |
18179 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
18180 | # and sets the high bit in the cache file unless we assign to the vars. | |
698dcdb6 VZ |
18181 | (set) 2>&1 | |
18182 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
18183 | *ac_space=\ *) | |
18184 | # `set' does not quote correctly, so add quotes (double-quote substitution | |
18185 | # turns \\\\ into \\, and sed turns \\ into \). | |
18186 | sed -n \ | |
18187 | -e "s/'/'\\\\''/g" \ | |
18188 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" | |
18189 | ;; | |
18190 | *) | |
18191 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
18192 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' | |
18193 | ;; | |
18194 | esac >> confcache | |
18195 | if cmp -s $cache_file confcache; then | |
18196 | : | |
18197 | else | |
10f2d63a | 18198 | if test -w $cache_file; then |
698dcdb6 VZ |
18199 | echo "updating cache $cache_file" |
18200 | cat confcache > $cache_file | |
10f2d63a VZ |
18201 | else |
18202 | echo "not updating unwritable cache $cache_file" | |
18203 | fi | |
18204 | fi | |
18205 | rm -f confcache | |
18206 | ||
698dcdb6 VZ |
18207 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 |
18208 | ||
10f2d63a VZ |
18209 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
18210 | # Let make expand exec_prefix. | |
18211 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
18212 | ||
698dcdb6 VZ |
18213 | # Any assignment to VPATH causes Sun make to only execute |
18214 | # the first set of double-colon rules, so remove it if not needed. | |
18215 | # If there is a colon in the path, we need to keep it. | |
10f2d63a | 18216 | if test "x$srcdir" = x.; then |
698dcdb6 | 18217 | ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d' |
10f2d63a VZ |
18218 | fi |
18219 | ||
698dcdb6 VZ |
18220 | trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15 |
18221 | ||
10f2d63a VZ |
18222 | DEFS=-DHAVE_CONFIG_H |
18223 | ||
698dcdb6 | 18224 | # Without the "./", some shells look in PATH for config.status. |
10f2d63a | 18225 | : ${CONFIG_STATUS=./config.status} |
698dcdb6 VZ |
18226 | |
18227 | echo creating $CONFIG_STATUS | |
18228 | rm -f $CONFIG_STATUS | |
18229 | cat > $CONFIG_STATUS <<EOF | |
18230 | #! /bin/sh | |
10f2d63a VZ |
18231 | # Generated automatically by configure. |
18232 | # Run this file to recreate the current configuration. | |
698dcdb6 VZ |
18233 | # This directory was configured as follows, |
18234 | # on host `(hostname || uname -n) 2>/dev/null | sed 1q`: | |
18235 | # | |
18236 | # $0 $ac_configure_args | |
18237 | # | |
10f2d63a | 18238 | # Compiler output produced by configure, useful for debugging |
698dcdb6 | 18239 | # configure, is in ./config.log if it exists. |
1e487827 | 18240 | |
698dcdb6 VZ |
18241 | ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]" |
18242 | for ac_option | |
10f2d63a | 18243 | do |
698dcdb6 | 18244 | case "\$ac_option" in |
10f2d63a | 18245 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
698dcdb6 VZ |
18246 | echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion" |
18247 | exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;; | |
18248 | -version | --version | --versio | --versi | --vers | --ver | --ve | --v) | |
18249 | echo "$CONFIG_STATUS generated by autoconf version 2.13" | |
18250 | exit 0 ;; | |
18251 | -help | --help | --hel | --he | --h) | |
18252 | echo "\$ac_cs_usage"; exit 0 ;; | |
18253 | *) echo "\$ac_cs_usage"; exit 1 ;; | |
10f2d63a VZ |
18254 | esac |
18255 | done | |
18256 | ||
698dcdb6 VZ |
18257 | ac_given_srcdir=$srcdir |
18258 | ac_given_INSTALL="$INSTALL" | |
703e0a69 | 18259 | |
698dcdb6 VZ |
18260 | trap 'rm -fr `echo " |
18261 | wx-config | |
18262 | src/make.env | |
18263 | src/makeprog.env | |
18264 | src/makelib.env | |
18265 | Makefile | |
18266 | setup.h:setup.h.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15 | |
1e487827 | 18267 | EOF |
698dcdb6 | 18268 | cat >> $CONFIG_STATUS <<EOF |
1e487827 | 18269 | |
698dcdb6 VZ |
18270 | # Protect against being on the right side of a sed subst in config.status. |
18271 | sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g; | |
18272 | s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF | |
18273 | $ac_vpsub | |
18274 | $extrasub | |
18275 | s%@SHELL@%$SHELL%g | |
18276 | s%@CFLAGS@%$CFLAGS%g | |
18277 | s%@CPPFLAGS@%$CPPFLAGS%g | |
18278 | s%@CXXFLAGS@%$CXXFLAGS%g | |
18279 | s%@FFLAGS@%$FFLAGS%g | |
18280 | s%@DEFS@%$DEFS%g | |
18281 | s%@LDFLAGS@%$LDFLAGS%g | |
18282 | s%@LIBS@%$LIBS%g | |
18283 | s%@exec_prefix@%$exec_prefix%g | |
18284 | s%@prefix@%$prefix%g | |
18285 | s%@program_transform_name@%$program_transform_name%g | |
18286 | s%@bindir@%$bindir%g | |
18287 | s%@sbindir@%$sbindir%g | |
18288 | s%@libexecdir@%$libexecdir%g | |
18289 | s%@datadir@%$datadir%g | |
18290 | s%@sysconfdir@%$sysconfdir%g | |
18291 | s%@sharedstatedir@%$sharedstatedir%g | |
18292 | s%@localstatedir@%$localstatedir%g | |
18293 | s%@libdir@%$libdir%g | |
18294 | s%@includedir@%$includedir%g | |
18295 | s%@oldincludedir@%$oldincludedir%g | |
18296 | s%@infodir@%$infodir%g | |
18297 | s%@mandir@%$mandir%g | |
18298 | s%@host@%$host%g | |
18299 | s%@host_alias@%$host_alias%g | |
18300 | s%@host_cpu@%$host_cpu%g | |
18301 | s%@host_vendor@%$host_vendor%g | |
18302 | s%@host_os@%$host_os%g | |
18303 | s%@target@%$target%g | |
18304 | s%@target_alias@%$target_alias%g | |
18305 | s%@target_cpu@%$target_cpu%g | |
18306 | s%@target_vendor@%$target_vendor%g | |
18307 | s%@target_os@%$target_os%g | |
18308 | s%@build@%$build%g | |
18309 | s%@build_alias@%$build_alias%g | |
18310 | s%@build_cpu@%$build_cpu%g | |
18311 | s%@build_vendor@%$build_vendor%g | |
18312 | s%@build_os@%$build_os%g | |
18313 | s%@CC@%$CC%g | |
18314 | s%@CPP@%$CPP%g | |
18315 | s%@CXX@%$CXX%g | |
698dcdb6 VZ |
18316 | s%@RANLIB@%$RANLIB%g |
18317 | s%@AR@%$AR%g | |
18318 | s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g | |
18319 | s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g | |
18320 | s%@INSTALL_DATA@%$INSTALL_DATA%g | |
18321 | s%@STRIP@%$STRIP%g | |
18322 | s%@YACC@%$YACC%g | |
18323 | s%@LEX@%$LEX%g | |
18324 | s%@LEXLIB@%$LEXLIB%g | |
18325 | s%@LN_S@%$LN_S%g | |
18326 | s%@GTK_CONFIG_2_0@%$GTK_CONFIG_2_0%g | |
698dcdb6 VZ |
18327 | s%@GTK_CFLAGS@%$GTK_CFLAGS%g |
18328 | s%@GTK_LIBS@%$GTK_LIBS%g | |
8168de4c | 18329 | s%@GTK_CONFIG@%$GTK_CONFIG%g |
698dcdb6 VZ |
18330 | s%@X_CFLAGS@%$X_CFLAGS%g |
18331 | s%@X_PRE_LIBS@%$X_PRE_LIBS%g | |
18332 | s%@X_LIBS@%$X_LIBS%g | |
18333 | s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g | |
3a922bb4 | 18334 | s%@RESCOMP@%$RESCOMP%g |
698dcdb6 | 18335 | s%@DEREZ@%$DEREZ%g |
3a922bb4 | 18336 | s%@CXXCPP@%$CXXCPP%g |
698dcdb6 VZ |
18337 | s%@LEX_STEM@%$LEX_STEM%g |
18338 | s%@PATH_IFS@%$PATH_IFS%g | |
18339 | s%@WX_MAJOR_VERSION_NUMBER@%$WX_MAJOR_VERSION_NUMBER%g | |
18340 | s%@WX_MINOR_VERSION_NUMBER@%$WX_MINOR_VERSION_NUMBER%g | |
18341 | s%@WX_RELEASE_NUMBER@%$WX_RELEASE_NUMBER%g | |
698dcdb6 VZ |
18342 | s%@WX_LIBRARY_NAME_STATIC@%$WX_LIBRARY_NAME_STATIC%g |
18343 | s%@WX_LIBRARY_NAME_SHARED@%$WX_LIBRARY_NAME_SHARED%g | |
698dcdb6 VZ |
18344 | s%@WX_TARGET_LIBRARY@%$WX_TARGET_LIBRARY%g |
18345 | s%@WX_LIBRARY_LINK1@%$WX_LIBRARY_LINK1%g | |
18346 | s%@WX_LIBRARY_LINK2@%$WX_LIBRARY_LINK2%g | |
698dcdb6 | 18347 | s%@PROGRAM_EXT@%$PROGRAM_EXT%g |
698dcdb6 VZ |
18348 | s%@WX_LIBRARY_NAME_STATIC_GL@%$WX_LIBRARY_NAME_STATIC_GL%g |
18349 | s%@WX_LIBRARY_NAME_SHARED_GL@%$WX_LIBRARY_NAME_SHARED_GL%g | |
698dcdb6 VZ |
18350 | s%@WX_TARGET_LIBRARY_GL@%$WX_TARGET_LIBRARY_GL%g |
18351 | s%@WX_LIBRARY_LINK1_GL@%$WX_LIBRARY_LINK1_GL%g | |
18352 | s%@WX_LIBRARY_LINK2_GL@%$WX_LIBRARY_LINK2_GL%g | |
698dcdb6 VZ |
18353 | s%@WX_ALL@%$WX_ALL%g |
18354 | s%@WX_ALL_INSTALLED@%$WX_ALL_INSTALLED%g | |
18355 | s%@SHARED_LD@%$SHARED_LD%g | |
18356 | s%@PIC_FLAG@%$PIC_FLAG%g | |
698dcdb6 VZ |
18357 | s%@CODE_GEN_FLAGS@%$CODE_GEN_FLAGS%g |
18358 | s%@CODE_GEN_FLAGS_CXX@%$CODE_GEN_FLAGS_CXX%g | |
3a922bb4 RL |
18359 | s%@SONAME_FLAGS@%$SONAME_FLAGS%g |
18360 | s%@SONAME_FLAGS_GL@%$SONAME_FLAGS_GL%g | |
698dcdb6 VZ |
18361 | s%@WX_TARGET_LIBRARY_SONAME@%$WX_TARGET_LIBRARY_SONAME%g |
18362 | s%@WX_TARGET_LIBRARY_TYPE@%$WX_TARGET_LIBRARY_TYPE%g | |
18363 | s%@WXDEBUG_DEFINE@%$WXDEBUG_DEFINE%g | |
18364 | s%@USE_GUI@%$USE_GUI%g | |
18365 | s%@AFMINSTALL@%$AFMINSTALL%g | |
18366 | s%@TOOLKIT@%$TOOLKIT%g | |
698dcdb6 | 18367 | s%@TOOLKIT_DIR@%$TOOLKIT_DIR%g |
1e6feb95 | 18368 | s%@TOOLKIT_VPATH@%$TOOLKIT_VPATH%g |
3a922bb4 RL |
18369 | s%@TOOLCHAIN_NAME@%$TOOLCHAIN_NAME%g |
18370 | s%@TOOLCHAIN_DEFS@%$TOOLCHAIN_DEFS%g | |
18371 | s%@cross_compiling@%$cross_compiling%g | |
18372 | s%@WXCONFIG_LIBS@%$WXCONFIG_LIBS%g | |
18373 | s%@WXCONFIG_LIBS_GL@%$WXCONFIG_LIBS_GL%g | |
698dcdb6 VZ |
18374 | s%@WXCONFIG_INCLUDE@%$WXCONFIG_INCLUDE%g |
18375 | s%@ALL_OBJECTS@%$ALL_OBJECTS%g | |
698dcdb6 VZ |
18376 | s%@GUIDIST@%$GUIDIST%g |
18377 | s%@PORT_FILES@%$PORT_FILES%g | |
18378 | s%@DISTDIR@%$DISTDIR%g | |
18379 | s%@RPM_SPEC@%$RPM_SPEC%g | |
18380 | s%@RPM_FILES@%$RPM_FILES%g | |
698dcdb6 | 18381 | s%@SAMPLES_SUBDIRS@%$SAMPLES_SUBDIRS%g |
698dcdb6 VZ |
18382 | s%@EXTRA_LIBS@%$EXTRA_LIBS%g |
18383 | s%@OPENGL_LIBS@%$OPENGL_LIBS%g | |
18384 | s%@EXTRADEFS@%$EXTRADEFS%g | |
18385 | s%@LD_LIBS@%$LD_LIBS%g | |
18dbb1f6 | 18386 | s%@WXMSW_DLL_DEFINES@%$WXMSW_DLL_DEFINES%g |
698dcdb6 | 18387 | s%@RESFLAGS@%$RESFLAGS%g |
3a922bb4 RL |
18388 | s%@RESPROGRAMOBJ@%$RESPROGRAMOBJ%g |
18389 | s%@WX_RESOURCES_DARWIN@%$WX_RESOURCES_DARWIN%g | |
698dcdb6 VZ |
18390 | s%@LIBWXMACRES@%$LIBWXMACRES%g |
18391 | s%@LIBWXMACRESCOMP@%$LIBWXMACRESCOMP%g | |
18392 | s%@DLLTOOL@%$DLLTOOL%g | |
18393 | s%@AS@%$AS%g | |
18394 | s%@NM@%$NM%g | |
18395 | s%@LD@%$LD%g | |
18396 | s%@MAKEINFO@%$MAKEINFO%g | |
18397 | s%@SET_MAKE@%$SET_MAKE%g | |
18398 | s%@subdirs@%$subdirs%g | |
1e487827 | 18399 | |
1e487827 | 18400 | CEOF |
1e487827 VS |
18401 | EOF |
18402 | ||
698dcdb6 VZ |
18403 | cat >> $CONFIG_STATUS <<\EOF |
18404 | ||
18405 | # Split the substitutions into bite-sized pieces for seds with | |
18406 | # small command number limits, like on Digital OSF/1 and HP-UX. | |
18407 | ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script. | |
18408 | ac_file=1 # Number of current file. | |
18409 | ac_beg=1 # First line for current file. | |
18410 | ac_end=$ac_max_sed_cmds # Line after last line for current file. | |
18411 | ac_more_lines=: | |
18412 | ac_sed_cmds="" | |
18413 | while $ac_more_lines; do | |
18414 | if test $ac_beg -gt 1; then | |
18415 | sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file | |
18416 | else | |
18417 | sed "${ac_end}q" conftest.subs > conftest.s$ac_file | |
18418 | fi | |
18419 | if test ! -s conftest.s$ac_file; then | |
18420 | ac_more_lines=false | |
18421 | rm -f conftest.s$ac_file | |
18422 | else | |
18423 | if test -z "$ac_sed_cmds"; then | |
18424 | ac_sed_cmds="sed -f conftest.s$ac_file" | |
10f2d63a | 18425 | else |
698dcdb6 | 18426 | ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file" |
10f2d63a | 18427 | fi |
698dcdb6 VZ |
18428 | ac_file=`expr $ac_file + 1` |
18429 | ac_beg=$ac_end | |
18430 | ac_end=`expr $ac_end + $ac_max_sed_cmds` | |
10f2d63a | 18431 | fi |
698dcdb6 VZ |
18432 | done |
18433 | if test -z "$ac_sed_cmds"; then | |
18434 | ac_sed_cmds=cat | |
18435 | fi | |
18436 | EOF | |
10f2d63a | 18437 | |
698dcdb6 VZ |
18438 | cat >> $CONFIG_STATUS <<EOF |
18439 | ||
18440 | CONFIG_FILES=\${CONFIG_FILES-"wx-config | |
18441 | src/make.env | |
18442 | src/makeprog.env | |
18443 | src/makelib.env | |
18444 | Makefile | |
18445 | "} | |
10f2d63a | 18446 | EOF |
698dcdb6 VZ |
18447 | cat >> $CONFIG_STATUS <<\EOF |
18448 | for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then | |
10f2d63a | 18449 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
698dcdb6 VZ |
18450 | case "$ac_file" in |
18451 | *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` | |
18452 | ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; | |
18453 | *) ac_file_in="${ac_file}.in" ;; | |
10f2d63a VZ |
18454 | esac |
18455 | ||
698dcdb6 | 18456 | # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories. |
1e487827 | 18457 | |
698dcdb6 VZ |
18458 | # Remove last slash and all that follows it. Not all systems have dirname. |
18459 | ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` | |
18460 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then | |
18461 | # The file is in a subdirectory. | |
18462 | test ! -d "$ac_dir" && mkdir "$ac_dir" | |
18463 | ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`" | |
10f2d63a | 18464 | # A "../" for each directory in $ac_dir_suffix. |
698dcdb6 | 18465 | ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'` |
10f2d63a VZ |
18466 | else |
18467 | ac_dir_suffix= ac_dots= | |
18468 | fi | |
18469 | ||
698dcdb6 VZ |
18470 | case "$ac_given_srcdir" in |
18471 | .) srcdir=. | |
18472 | if test -z "$ac_dots"; then top_srcdir=. | |
18473 | else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;; | |
18474 | /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;; | |
10f2d63a | 18475 | *) # Relative path. |
698dcdb6 VZ |
18476 | srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix" |
18477 | top_srcdir="$ac_dots$ac_given_srcdir" ;; | |
10f2d63a VZ |
18478 | esac |
18479 | ||
698dcdb6 VZ |
18480 | case "$ac_given_INSTALL" in |
18481 | [/$]*) INSTALL="$ac_given_INSTALL" ;; | |
18482 | *) INSTALL="$ac_dots$ac_given_INSTALL" ;; | |
10f2d63a VZ |
18483 | esac |
18484 | ||
698dcdb6 VZ |
18485 | echo creating "$ac_file" |
18486 | rm -f "$ac_file" | |
18487 | configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure." | |
18488 | case "$ac_file" in | |
18489 | *Makefile*) ac_comsub="1i\\ | |
18490 | # $configure_input" ;; | |
18491 | *) ac_comsub= ;; | |
18492 | esac | |
10f2d63a | 18493 | |
698dcdb6 VZ |
18494 | ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` |
18495 | sed -e "$ac_comsub | |
18496 | s%@configure_input@%$configure_input%g | |
18497 | s%@srcdir@%$srcdir%g | |
18498 | s%@top_srcdir@%$top_srcdir%g | |
18499 | s%@INSTALL@%$INSTALL%g | |
18500 | " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file | |
18501 | fi; done | |
18502 | rm -f conftest.s* | |
10f2d63a VZ |
18503 | |
18504 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where | |
18505 | # NAME is the cpp macro being defined and VALUE is the value it is being given. | |
18506 | # | |
18507 | # ac_d sets the value in "#define NAME VALUE" lines. | |
698dcdb6 VZ |
18508 | ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)' |
18509 | ac_dB='\([ ][ ]*\)[^ ]*%\1#\2' | |
18510 | ac_dC='\3' | |
18511 | ac_dD='%g' | |
18512 | # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE". | |
18513 | ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' | |
18514 | ac_uB='\([ ]\)%\1#\2define\3' | |
10f2d63a | 18515 | ac_uC=' ' |
698dcdb6 VZ |
18516 | ac_uD='\4%g' |
18517 | # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE". | |
18518 | ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' | |
18519 | ac_eB='$%\1#\2define\3' | |
18520 | ac_eC=' ' | |
18521 | ac_eD='%g' | |
10f2d63a | 18522 | |
698dcdb6 VZ |
18523 | if test "${CONFIG_HEADERS+set}" != set; then |
18524 | EOF | |
18525 | cat >> $CONFIG_STATUS <<EOF | |
18526 | CONFIG_HEADERS="setup.h:setup.h.in" | |
18527 | EOF | |
18528 | cat >> $CONFIG_STATUS <<\EOF | |
18529 | fi | |
18530 | for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then | |
10f2d63a | 18531 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
698dcdb6 VZ |
18532 | case "$ac_file" in |
18533 | *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` | |
18534 | ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; | |
18535 | *) ac_file_in="${ac_file}.in" ;; | |
10f2d63a VZ |
18536 | esac |
18537 | ||
698dcdb6 VZ |
18538 | echo creating $ac_file |
18539 | ||
18540 | rm -f conftest.frag conftest.in conftest.out | |
18541 | ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` | |
18542 | cat $ac_file_inputs > conftest.in | |
18543 | ||
18544 | EOF | |
18545 | ||
18546 | # Transform confdefs.h into a sed script conftest.vals that substitutes | |
18547 | # the proper values into config.h.in to produce config.h. And first: | |
18548 | # Protect against being on the right side of a sed subst in config.status. | |
18549 | # Protect against being in an unquoted here document in config.status. | |
18550 | rm -f conftest.vals | |
18551 | cat > conftest.hdr <<\EOF | |
18552 | s/[\\&%]/\\&/g | |
18553 | s%[\\$`]%\\&%g | |
18554 | s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp | |
18555 | s%ac_d%ac_u%gp | |
18556 | s%ac_u%ac_e%gp | |
18557 | EOF | |
18558 | sed -n -f conftest.hdr confdefs.h > conftest.vals | |
18559 | rm -f conftest.hdr | |
10f2d63a VZ |
18560 | |
18561 | # This sed command replaces #undef with comments. This is necessary, for | |
18562 | # example, in the case of _POSIX_SOURCE, which is predefined and required | |
18563 | # on some systems where configure will not decide to define it. | |
698dcdb6 VZ |
18564 | cat >> conftest.vals <<\EOF |
18565 | s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */% | |
10f2d63a VZ |
18566 | EOF |
18567 | ||
698dcdb6 VZ |
18568 | # Break up conftest.vals because some shells have a limit on |
18569 | # the size of here documents, and old seds have small limits too. | |
10f2d63a VZ |
18570 | |
18571 | rm -f conftest.tail | |
698dcdb6 | 18572 | while : |
10f2d63a | 18573 | do |
698dcdb6 VZ |
18574 | ac_lines=`grep -c . conftest.vals` |
18575 | # grep -c gives empty output for an empty file on some AIX systems. | |
18576 | if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi | |
18577 | # Write a limited-size here document to conftest.frag. | |
18578 | echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS | |
18579 | sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS | |
10f2d63a | 18580 | echo 'CEOF |
698dcdb6 VZ |
18581 | sed -f conftest.frag conftest.in > conftest.out |
18582 | rm -f conftest.in | |
18583 | mv conftest.out conftest.in | |
18584 | ' >> $CONFIG_STATUS | |
18585 | sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail | |
18586 | rm -f conftest.vals | |
18587 | mv conftest.tail conftest.vals | |
10f2d63a | 18588 | done |
698dcdb6 VZ |
18589 | rm -f conftest.vals |
18590 | ||
18591 | cat >> $CONFIG_STATUS <<\EOF | |
18592 | rm -f conftest.frag conftest.h | |
18593 | echo "/* $ac_file. Generated automatically by configure. */" > conftest.h | |
18594 | cat conftest.in >> conftest.h | |
18595 | rm -f conftest.in | |
18596 | if cmp -s $ac_file conftest.h 2>/dev/null; then | |
18597 | echo "$ac_file is unchanged" | |
18598 | rm -f conftest.h | |
10f2d63a | 18599 | else |
698dcdb6 VZ |
18600 | # Remove last slash and all that follows it. Not all systems have dirname. |
18601 | ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` | |
10f2d63a | 18602 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then |
698dcdb6 VZ |
18603 | # The file is in a subdirectory. |
18604 | test ! -d "$ac_dir" && mkdir "$ac_dir" | |
10f2d63a | 18605 | fi |
698dcdb6 VZ |
18606 | rm -f $ac_file |
18607 | mv conftest.h $ac_file | |
10f2d63a | 18608 | fi |
698dcdb6 VZ |
18609 | fi; done |
18610 | ||
10f2d63a | 18611 | EOF |
698dcdb6 | 18612 | cat >> $CONFIG_STATUS <<EOF |
10f2d63a | 18613 | |
3a922bb4 | 18614 | TOOLCHAIN_NAME="${TOOLCHAIN_NAME}" |
698dcdb6 VZ |
18615 | LN_S="${LN_S}" |
18616 | ||
18617 | ||
18618 | EOF | |
18619 | cat >> $CONFIG_STATUS <<\EOF | |
10f2d63a | 18620 | |
3a922bb4 | 18621 | if test ! -L wx-config; then |
991a5759 | 18622 | chmod +x wx-config |
3a922bb4 RL |
18623 | mv wx-config wx${TOOLCHAIN_NAME}-config |
18624 | ${LN_S} wx${TOOLCHAIN_NAME}-config wx-config | |
991a5759 | 18625 | fi |
665bbe97 | 18626 | |
00cf1208 RR |
18627 | if test ! -d lib; then |
18628 | mkdir lib | |
18629 | fi | |
18630 | if test ! -d lib/wx; then | |
18631 | mkdir lib/wx | |
18632 | fi | |
18633 | if test ! -d lib/wx/include; then | |
18634 | mkdir lib/wx/include | |
18635 | fi | |
3a922bb4 RL |
18636 | if test ! -d lib/wx/include/${TOOLCHAIN_NAME}; then |
18637 | mkdir lib/wx/include/${TOOLCHAIN_NAME} | |
00cf1208 | 18638 | fi |
3a922bb4 RL |
18639 | if test ! -d lib/wx/include/${TOOLCHAIN_NAME}/wx; then |
18640 | mkdir lib/wx/include/${TOOLCHAIN_NAME}/wx | |
00cf1208 RR |
18641 | fi |
18642 | if test -f setup.h; then | |
3a922bb4 | 18643 | mv -f setup.h lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h |
00cf1208 | 18644 | fi |
698dcdb6 VZ |
18645 | |
18646 | exit 0 | |
10f2d63a VZ |
18647 | EOF |
18648 | chmod +x $CONFIG_STATUS | |
698dcdb6 VZ |
18649 | rm -fr confdefs* $ac_clean_files |
18650 | test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1 | |
10f2d63a | 18651 | |
2224580a VZ |
18652 | if test "$no_recursion" != yes; then |
18653 | ||
18654 | # Remove --cache-file and --srcdir arguments so they do not pile up. | |
18655 | ac_sub_configure_args= | |
18656 | ac_prev= | |
18657 | for ac_arg in $ac_configure_args; do | |
18658 | if test -n "$ac_prev"; then | |
18659 | ac_prev= | |
18660 | continue | |
18661 | fi | |
698dcdb6 | 18662 | case "$ac_arg" in |
2224580a VZ |
18663 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
18664 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
18665 | ac_prev=cache_file ;; | |
18666 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
698dcdb6 | 18667 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
2224580a VZ |
18668 | ;; |
18669 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
18670 | ac_prev=srcdir ;; | |
18671 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
18672 | ;; | |
18673 | *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;; | |
18674 | esac | |
18675 | done | |
18676 | ||
698dcdb6 | 18677 | for ac_config_dir in demos samples utils contrib; do |
2224580a VZ |
18678 | |
18679 | # Do not complain, so a configure script can configure whichever | |
18680 | # parts of a large source tree are present. | |
698dcdb6 VZ |
18681 | if test ! -d $srcdir/$ac_config_dir; then |
18682 | continue | |
18683 | fi | |
18684 | ||
18685 | echo configuring in $ac_config_dir | |
2224580a | 18686 | |
698dcdb6 | 18687 | case "$srcdir" in |
2224580a VZ |
18688 | .) ;; |
18689 | *) | |
698dcdb6 VZ |
18690 | if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :; |
18691 | else | |
18692 | { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; } | |
18693 | fi | |
18694 | ;; | |
2224580a VZ |
18695 | esac |
18696 | ||
18697 | ac_popdir=`pwd` | |
698dcdb6 | 18698 | cd $ac_config_dir |
2224580a | 18699 | |
698dcdb6 VZ |
18700 | # A "../" for each directory in /$ac_config_dir. |
18701 | ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'` | |
2224580a | 18702 | |
698dcdb6 | 18703 | case "$srcdir" in |
2224580a VZ |
18704 | .) # No --srcdir option. We are building in place. |
18705 | ac_sub_srcdir=$srcdir ;; | |
698dcdb6 VZ |
18706 | /*) # Absolute path. |
18707 | ac_sub_srcdir=$srcdir/$ac_config_dir ;; | |
2224580a | 18708 | *) # Relative path. |
698dcdb6 | 18709 | ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;; |
2224580a VZ |
18710 | esac |
18711 | ||
18712 | # Check for guested configure; otherwise get Cygnus style configure. | |
698dcdb6 VZ |
18713 | if test -f $ac_sub_srcdir/configure; then |
18714 | ac_sub_configure=$ac_sub_srcdir/configure | |
2224580a VZ |
18715 | elif test -f $ac_sub_srcdir/configure.in; then |
18716 | ac_sub_configure=$ac_configure | |
18717 | else | |
698dcdb6 | 18718 | echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2 |
2224580a VZ |
18719 | ac_sub_configure= |
18720 | fi | |
18721 | ||
18722 | # The recursion is here. | |
18723 | if test -n "$ac_sub_configure"; then | |
698dcdb6 | 18724 | |
2224580a | 18725 | # Make the cache file name correct relative to the subdirectory. |
698dcdb6 VZ |
18726 | case "$cache_file" in |
18727 | /*) ac_sub_cache_file=$cache_file ;; | |
2224580a | 18728 | *) # Relative path. |
698dcdb6 | 18729 | ac_sub_cache_file="$ac_dots$cache_file" ;; |
2224580a | 18730 | esac |
698dcdb6 VZ |
18731 | case "$ac_given_INSTALL" in |
18732 | [/$]*) INSTALL="$ac_given_INSTALL" ;; | |
18733 | *) INSTALL="$ac_dots$ac_given_INSTALL" ;; | |
18734 | esac | |
2224580a | 18735 | |
698dcdb6 | 18736 | echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir" |
2224580a | 18737 | # The eval makes quoting arguments work. |
698dcdb6 VZ |
18738 | if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir |
18739 | then : | |
18740 | else | |
18741 | { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; } | |
18742 | fi | |
2224580a VZ |
18743 | fi |
18744 | ||
18745 | cd $ac_popdir | |
18746 | done | |
18747 | fi | |
18748 | ||
698dcdb6 | 18749 |