]>
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 | |
77e13408 | 71 | --with-msw use MS-Windows" |
698dcdb6 VZ |
72 | ac_help="$ac_help |
73 | --with-pm use OS/2 Presentation Manager" | |
1e6feb95 | 74 | ac_help="$ac_help |
b3e8d00a | 75 | --with-mgl use SciTech MGL" |
698dcdb6 | 76 | ac_help="$ac_help |
8168de4c | 77 | --enable-gtk2 use GTK+ 2.0 if available (EXPERIMENTAL)" |
698dcdb6 | 78 | ac_help="$ac_help |
8168de4c | 79 | --with-libpng use libpng (PNG image format)" |
698dcdb6 | 80 | ac_help="$ac_help |
8168de4c | 81 | --with-libjpeg use libjpeg (JPEG file format)" |
698dcdb6 | 82 | ac_help="$ac_help |
8168de4c | 83 | --with-libtiff use libtiff (TIFF file format)" |
698dcdb6 | 84 | ac_help="$ac_help |
8168de4c | 85 | --with-freetype use freetype (font rasterizer)" |
698dcdb6 | 86 | ac_help="$ac_help |
8168de4c | 87 | --with-opengl use OpenGL (or Mesa)" |
698dcdb6 | 88 | ac_help="$ac_help |
8168de4c | 89 | --with-dmalloc use dmalloc library (www.letters.com/dmalloc)" |
3e44f09d VZ |
90 | ac_help="$ac_help |
91 | --with-regex enable support for wxRegEx class" | |
698dcdb6 | 92 | ac_help="$ac_help |
8168de4c | 93 | --with-zlib use zlib for LZW compression" |
698dcdb6 | 94 | ac_help="$ac_help |
8168de4c | 95 | --with-odbc use the IODBC and wxODBC classes" |
698dcdb6 | 96 | ac_help="$ac_help |
8168de4c | 97 | --enable-shared create shared library code" |
698dcdb6 | 98 | ac_help="$ac_help |
3a922bb4 | 99 | --enable-soname set the DT_SONAME field in ELF shared libraries" |
698dcdb6 | 100 | ac_help="$ac_help |
8168de4c | 101 | --enable-optimise create optimised code" |
698dcdb6 | 102 | ac_help="$ac_help |
8168de4c | 103 | --enable-debug same as debug_flag and debug_info" |
683dccda GD |
104 | ac_help="$ac_help |
105 | --enable-precomp enable use of precompiled headers (Mac OS X)" | |
698dcdb6 | 106 | ac_help="$ac_help |
8168de4c | 107 | --enable-debug_flag set __WXDEBUG__ flag (recommended for developers!)" |
698dcdb6 | 108 | ac_help="$ac_help |
8168de4c | 109 | --enable-debug_info create code with debugging information" |
698dcdb6 | 110 | ac_help="$ac_help |
8168de4c | 111 | --enable-debug_gdb create code with extra GDB debugging information" |
698dcdb6 | 112 | ac_help="$ac_help |
8168de4c | 113 | --enable-debug_cntxt use wxDebugContext" |
698dcdb6 | 114 | ac_help="$ac_help |
8168de4c | 115 | --enable-mem_tracing create code with memory tracing" |
698dcdb6 | 116 | ac_help="$ac_help |
8168de4c | 117 | --enable-profile create code with profiling information" |
698dcdb6 | 118 | ac_help="$ac_help |
8168de4c | 119 | --enable-no_rtti create code without RTTI information" |
698dcdb6 | 120 | ac_help="$ac_help |
b3e8d00a | 121 | --enable-no_exceptions create code without C++ exceptions handling" |
698dcdb6 | 122 | ac_help="$ac_help |
8168de4c | 123 | --enable-permissive compile code disregarding strict ANSI" |
698dcdb6 | 124 | ac_help="$ac_help |
8168de4c | 125 | --enable-no_deps create code without dependency information" |
54276ccf | 126 | ac_help="$ac_help |
b3e8d00a | 127 | --enable-compat20 enable wxWindows 2.0 compatibility" |
54276ccf | 128 | ac_help="$ac_help |
b3e8d00a | 129 | --enable-compat22 enable wxWindows 2.2 compatibility" |
698dcdb6 | 130 | ac_help="$ac_help |
8168de4c | 131 | --enable-intl use internationalization system" |
698dcdb6 | 132 | ac_help="$ac_help |
8168de4c | 133 | --enable-config use wxConfig (and derived) classes" |
698dcdb6 | 134 | ac_help="$ac_help |
8168de4c | 135 | --enable-sockets use socket/network classes" |
698dcdb6 | 136 | ac_help="$ac_help |
8168de4c | 137 | --enable-ipc use interprocess communication (wxSocket etc.)" |
698dcdb6 | 138 | ac_help="$ac_help |
8168de4c | 139 | --enable-cmdline use wxCmdLineParser class" |
1e6feb95 | 140 | ac_help="$ac_help |
8168de4c | 141 | --enable-datetime use wxDateTime class" |
1e6feb95 | 142 | ac_help="$ac_help |
8168de4c | 143 | --enable-timedate use obsolete wxDate/wxTime classes" |
1e6feb95 | 144 | ac_help="$ac_help |
8168de4c | 145 | --enable-stopwatch use wxStopWatch class" |
1e6feb95 | 146 | ac_help="$ac_help |
8168de4c | 147 | --enable-dialupman use dialup network classes" |
698dcdb6 | 148 | ac_help="$ac_help |
8168de4c | 149 | --enable-apple_ieee use the Apple IEEE codec" |
698dcdb6 | 150 | ac_help="$ac_help |
8168de4c | 151 | --enable-timer use wxTimer class" |
698dcdb6 | 152 | ac_help="$ac_help |
8168de4c | 153 | --enable-wave use wxWave class" |
698dcdb6 | 154 | ac_help="$ac_help |
8168de4c | 155 | --enable-fraction use wxFraction class" |
698dcdb6 | 156 | ac_help="$ac_help |
8168de4c | 157 | --enable-dynlib use wxLibrary class for DLL loading" |
698dcdb6 | 158 | ac_help="$ac_help |
8168de4c | 159 | --enable-longlong use wxLongLong class" |
698dcdb6 | 160 | ac_help="$ac_help |
8168de4c | 161 | --enable-geometry use geometry class" |
698dcdb6 | 162 | ac_help="$ac_help |
8168de4c | 163 | --enable-log use logging system" |
698dcdb6 | 164 | ac_help="$ac_help |
8168de4c | 165 | --enable-streams use wxStream etc classes" |
698dcdb6 | 166 | ac_help="$ac_help |
8168de4c | 167 | --enable-file use wxFile classes" |
698dcdb6 | 168 | ac_help="$ac_help |
8168de4c | 169 | --enable-ffile use wxFFile classes" |
1e6feb95 | 170 | ac_help="$ac_help |
8168de4c | 171 | --enable-textfile use wxTextFile classes" |
698dcdb6 | 172 | ac_help="$ac_help |
8168de4c | 173 | --enable-fontmap use font encodings conversion classes" |
1e6feb95 | 174 | ac_help="$ac_help |
8168de4c | 175 | --enable-unicode compile wxString with Unicode support" |
698dcdb6 | 176 | ac_help="$ac_help |
8168de4c | 177 | --enable-wxprintfv use wxWindows implementation of vprintf()" |
698dcdb6 | 178 | ac_help="$ac_help |
8168de4c | 179 | --enable-std_iostreams use standard C++ stream classes" |
698dcdb6 | 180 | ac_help="$ac_help |
8168de4c | 181 | --enable-filesystem use virtual file systems classes" |
698dcdb6 | 182 | ac_help="$ac_help |
8168de4c | 183 | --enable-fs_inet use virtual HTTP/FTP filesystems" |
698dcdb6 | 184 | ac_help="$ac_help |
8168de4c | 185 | --enable-fs_zip use virtual ZIP filesystems" |
698dcdb6 | 186 | ac_help="$ac_help |
8168de4c | 187 | --enable-zipstream use wxZipInputStream" |
698dcdb6 | 188 | ac_help="$ac_help |
8168de4c | 189 | --enable-catch_segvs catch signals and pass them to wxApp::OnFatalException" |
698dcdb6 | 190 | ac_help="$ac_help |
8168de4c | 191 | --enable-snglinst use wxSingleInstanceChecker class" |
698dcdb6 | 192 | ac_help="$ac_help |
8168de4c | 193 | --enable-mimetypes use wxMimeTypesManager" |
3e44f09d | 194 | ac_help="$ac_help |
b3e8d00a | 195 | --enable-sysoptions use wxSystemOptions" |
1e6feb95 | 196 | ac_help="$ac_help |
8168de4c | 197 | --enable-threads use threads" |
698dcdb6 | 198 | ac_help="$ac_help |
8168de4c | 199 | --enable-serial use class serialization" |
698dcdb6 | 200 | ac_help="$ac_help |
8168de4c | 201 | --enable-docview use document view architecture" |
698dcdb6 | 202 | ac_help="$ac_help |
3379ed37 | 203 | --enable-help use help subsystem" |
29fd3c0c VS |
204 | ac_help="$ac_help |
205 | --enable-mshtmlhelp use MS HTML Help (win32)" | |
3379ed37 VZ |
206 | ac_help="$ac_help |
207 | --enable-html use wxHTML sub-library" | |
208 | ac_help="$ac_help | |
209 | --enable-htmlhelp use wxHTML-based help" | |
698dcdb6 | 210 | ac_help="$ac_help |
8168de4c | 211 | --enable-constraints use layout-constraints system" |
698dcdb6 | 212 | ac_help="$ac_help |
8168de4c | 213 | --enable-printarch use printing architecture" |
698dcdb6 | 214 | ac_help="$ac_help |
8168de4c | 215 | --enable-mdi use multiple document interface architecture" |
698dcdb6 | 216 | ac_help="$ac_help |
8168de4c | 217 | --enable-loggui use standard GUI logger" |
1e6feb95 | 218 | ac_help="$ac_help |
8168de4c | 219 | --enable-logwin use wxLogWindow" |
1e6feb95 | 220 | ac_help="$ac_help |
8168de4c | 221 | --enable-postscript use wxPostscriptDC device context (default for gtk+)" |
698dcdb6 | 222 | ac_help="$ac_help |
8168de4c | 223 | --enable-prologio use Prolog IO library" |
698dcdb6 | 224 | ac_help="$ac_help |
8168de4c | 225 | --enable-resources use wxWindows resources" |
698dcdb6 | 226 | ac_help="$ac_help |
8168de4c | 227 | --enable-xresources use X resources for save (default for gtk+)" |
698dcdb6 | 228 | ac_help="$ac_help |
8168de4c | 229 | --enable-clipboard use wxClipboard classes" |
698dcdb6 | 230 | ac_help="$ac_help |
8168de4c | 231 | --enable-dnd use Drag'n'Drop classes" |
698dcdb6 | 232 | ac_help="$ac_help |
8168de4c | 233 | --enable-metafile use win32 metafiles" |
698dcdb6 | 234 | ac_help="$ac_help |
24176f2c | 235 | --enable-treelayout use wxTreeLayout classes" |
698dcdb6 | 236 | ac_help="$ac_help |
8168de4c | 237 | --enable-controls use all usual controls" |
698dcdb6 | 238 | ac_help="$ac_help |
8168de4c | 239 | --enable-accel use accelerators" |
698dcdb6 | 240 | ac_help="$ac_help |
8168de4c | 241 | --enable-button use wxButton class" |
698dcdb6 | 242 | ac_help="$ac_help |
8168de4c | 243 | --enable-bmpbutton use wxBitmapButton class" |
698dcdb6 | 244 | ac_help="$ac_help |
8168de4c | 245 | --enable-calendar use wxCalendarCtrl class" |
1e6feb95 | 246 | ac_help="$ac_help |
8168de4c | 247 | --enable-caret use wxCaret class" |
1e6feb95 | 248 | ac_help="$ac_help |
8168de4c | 249 | --enable-checkbox use wxCheckBox class" |
698dcdb6 | 250 | ac_help="$ac_help |
8168de4c | 251 | --enable-checklst use wxCheckListBox (listbox with checkboxes) class" |
698dcdb6 | 252 | ac_help="$ac_help |
8168de4c | 253 | --enable-choice use wxChoice class" |
698dcdb6 | 254 | ac_help="$ac_help |
8168de4c | 255 | --enable-combobox use wxComboBox classes" |
698dcdb6 | 256 | ac_help="$ac_help |
8168de4c | 257 | --enable-gauge use wxGauge class" |
698dcdb6 | 258 | ac_help="$ac_help |
8168de4c | 259 | --enable-grid use wxGrid class" |
698dcdb6 | 260 | ac_help="$ac_help |
8168de4c | 261 | --enable-newgrid use new wxGrid class" |
698dcdb6 | 262 | ac_help="$ac_help |
8168de4c | 263 | --enable-imaglist use wxImageList class" |
698dcdb6 | 264 | ac_help="$ac_help |
8168de4c | 265 | --enable-listbox use wxListBox class" |
698dcdb6 | 266 | ac_help="$ac_help |
8168de4c | 267 | --enable-listctrl use wxListCtrl class" |
698dcdb6 | 268 | ac_help="$ac_help |
8168de4c | 269 | --enable-notebook use wxNotebook class" |
24176f2c GD |
270 | ac_help="$ac_help |
271 | --enable-propsheet use wxPropertySheet class" | |
698dcdb6 | 272 | ac_help="$ac_help |
8168de4c | 273 | --enable-radiobox use wxRadioBox class" |
698dcdb6 | 274 | ac_help="$ac_help |
8168de4c | 275 | --enable-radiobtn use wxRadioButton class" |
698dcdb6 | 276 | ac_help="$ac_help |
8168de4c | 277 | --enable-sash use wxSashWindow class" |
698dcdb6 | 278 | ac_help="$ac_help |
8168de4c | 279 | --enable-scrollbar use wxScrollBar class and scrollable windows" |
698dcdb6 | 280 | ac_help="$ac_help |
8168de4c | 281 | --enable-slider use wxSlider class" |
698dcdb6 | 282 | ac_help="$ac_help |
8168de4c | 283 | --enable-spinbtn use wxSpinButton class" |
698dcdb6 | 284 | ac_help="$ac_help |
8168de4c | 285 | --enable-spinctrl use wxSpinCtrl class" |
698dcdb6 | 286 | ac_help="$ac_help |
8168de4c | 287 | --enable-splitter use wxSplitterWindow class" |
698dcdb6 | 288 | ac_help="$ac_help |
8168de4c | 289 | --enable-statbmp use wxStaticBitmap class" |
698dcdb6 | 290 | ac_help="$ac_help |
8168de4c | 291 | --enable-statbox use wxStaticBox class" |
698dcdb6 | 292 | ac_help="$ac_help |
8168de4c | 293 | --enable-statline use wxStaticLine class" |
698dcdb6 | 294 | ac_help="$ac_help |
8168de4c | 295 | --enable-stattext use wxStaticText class" |
1e6feb95 | 296 | ac_help="$ac_help |
8168de4c | 297 | --enable-statusbar use wxStatusBar class" |
698dcdb6 | 298 | ac_help="$ac_help |
8168de4c | 299 | --enable-tabdialog use wxTabControl class" |
698dcdb6 | 300 | ac_help="$ac_help |
8168de4c | 301 | --enable-textctrl use wxTextCtrl class" |
1e6feb95 | 302 | ac_help="$ac_help |
8168de4c | 303 | --enable-togglebtn use wxToggleButton class" |
698dcdb6 | 304 | ac_help="$ac_help |
8168de4c | 305 | --enable-toolbar use wxToolBar class" |
698dcdb6 | 306 | ac_help="$ac_help |
8168de4c | 307 | --enable-tbarnative use native wxToolBar class" |
698dcdb6 | 308 | ac_help="$ac_help |
8168de4c | 309 | --enable-tbarsmpl use wxToolBarSimple class" |
698dcdb6 | 310 | ac_help="$ac_help |
8168de4c | 311 | --enable-treectrl use wxTreeCtrl class" |
9f41d601 RR |
312 | ac_help="$ac_help |
313 | --enable-popupwin use wxPopUpWindow class" | |
698dcdb6 | 314 | ac_help="$ac_help |
b3e8d00a | 315 | --enable-commondlg use all common dialogs" |
698dcdb6 | 316 | ac_help="$ac_help |
8168de4c | 317 | --enable-choicedlg use wxChoiceDialog" |
1e6feb95 | 318 | ac_help="$ac_help |
8168de4c | 319 | --enable-coldlg use wxColourDialog" |
1e6feb95 | 320 | ac_help="$ac_help |
8168de4c | 321 | --enable-filedlg use wxFileDialog" |
8db37e06 VZ |
322 | ac_help="$ac_help |
323 | --enable-finddlg use wxFindReplaceDialog" | |
1e6feb95 | 324 | ac_help="$ac_help |
8168de4c | 325 | --enable-fontdlg use wxFontDialog" |
1e6feb95 | 326 | ac_help="$ac_help |
8168de4c | 327 | --enable-dirdlg use wxDirDialog" |
698dcdb6 | 328 | ac_help="$ac_help |
8168de4c | 329 | --enable-msgdlg use wxMessageDialog" |
1e6feb95 | 330 | ac_help="$ac_help |
8168de4c | 331 | --enable-numberdlg use wxNumberEntryDialog" |
cbca9943 VZ |
332 | ac_help="$ac_help |
333 | --enable-splash use wxSplashScreen" | |
1e6feb95 | 334 | ac_help="$ac_help |
8168de4c | 335 | --enable-textdlg use wxTextDialog" |
698dcdb6 | 336 | ac_help="$ac_help |
8168de4c | 337 | --enable-tipdlg use startup tips" |
698dcdb6 | 338 | ac_help="$ac_help |
8168de4c | 339 | --enable-progressdlg use wxProgressDialog" |
b1f5d087 VZ |
340 | ac_help="$ac_help |
341 | --enable-wizarddlg use wxWizard" | |
698dcdb6 | 342 | ac_help="$ac_help |
8168de4c | 343 | --enable-menus use wxMenu/wxMenuBar/wxMenuItem classes" |
1e6feb95 | 344 | ac_help="$ac_help |
8168de4c | 345 | --enable-miniframe use wxMiniFrame class" |
698dcdb6 | 346 | ac_help="$ac_help |
8168de4c | 347 | --enable-tooltips use wxToolTip class" |
698dcdb6 | 348 | ac_help="$ac_help |
8168de4c | 349 | --enable-splines use spline drawing code" |
698dcdb6 | 350 | ac_help="$ac_help |
8168de4c | 351 | --enable-validators use wxValidator and derived classes" |
698dcdb6 | 352 | ac_help="$ac_help |
8168de4c | 353 | --enable-busyinfo use wxBusyInfo" |
698dcdb6 | 354 | ac_help="$ac_help |
b3e8d00a | 355 | --enable-joystick use wxJoystick (Linux only)" |
698dcdb6 | 356 | ac_help="$ac_help |
8168de4c | 357 | --enable-metafiles use wxMetaFile (Windows only)" |
24fd6d87 VZ |
358 | ac_help="$ac_help |
359 | --enable-dragimage use wxDragImage" | |
edae8572 VZ |
360 | ac_help="$ac_help |
361 | --enable-palette use wxPalette class" | |
1e6feb95 | 362 | ac_help="$ac_help |
8168de4c | 363 | --enable-image use wxImage class" |
698dcdb6 | 364 | ac_help="$ac_help |
8168de4c | 365 | --enable-gif use gif images (GIF file format)" |
698dcdb6 | 366 | ac_help="$ac_help |
8168de4c | 367 | --enable-pcx use pcx images (PCX file format)" |
698dcdb6 | 368 | ac_help="$ac_help |
8168de4c | 369 | --enable-pnm use pnm images (PNM file format)" |
698dcdb6 | 370 | ac_help="$ac_help |
8168de4c | 371 | --enable-xpm use xpm images (XPM file format)" |
698dcdb6 VZ |
372 | ac_help="$ac_help |
373 | --with-gtk-prefix=PFX Prefix where GTK is installed (optional)" | |
374 | ac_help="$ac_help | |
375 | --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)" | |
376 | ac_help="$ac_help | |
377 | --disable-gtktest Do not try to compile and run a test GTK program" | |
378 | ac_help="$ac_help | |
379 | --with-x use the X Window System" | |
10f2d63a VZ |
380 | |
381 | # Initialize some variables set by options. | |
382 | # The variables have the same names as the options, with | |
383 | # dashes changed to underlines. | |
698dcdb6 VZ |
384 | build=NONE |
385 | cache_file=./config.cache | |
10f2d63a | 386 | exec_prefix=NONE |
698dcdb6 | 387 | host=NONE |
10f2d63a | 388 | no_create= |
698dcdb6 | 389 | nonopt=NONE |
10f2d63a VZ |
390 | no_recursion= |
391 | prefix=NONE | |
392 | program_prefix=NONE | |
393 | program_suffix=NONE | |
394 | program_transform_name=s,x,x, | |
395 | silent= | |
396 | site= | |
397 | srcdir= | |
698dcdb6 | 398 | target=NONE |
10f2d63a VZ |
399 | verbose= |
400 | x_includes=NONE | |
401 | x_libraries=NONE | |
402 | bindir='${exec_prefix}/bin' | |
403 | sbindir='${exec_prefix}/sbin' | |
404 | libexecdir='${exec_prefix}/libexec' | |
405 | datadir='${prefix}/share' | |
406 | sysconfdir='${prefix}/etc' | |
407 | sharedstatedir='${prefix}/com' | |
408 | localstatedir='${prefix}/var' | |
409 | libdir='${exec_prefix}/lib' | |
410 | includedir='${prefix}/include' | |
411 | oldincludedir='/usr/include' | |
412 | infodir='${prefix}/info' | |
413 | mandir='${prefix}/man' | |
414 | ||
698dcdb6 VZ |
415 | # Initialize some other variables. |
416 | subdirs= | |
417 | MFLAGS= MAKEFLAGS= | |
418 | SHELL=${CONFIG_SHELL-/bin/sh} | |
419 | # Maximum number of lines to put in a shell here document. | |
420 | ac_max_here_lines=12 | |
10f2d63a VZ |
421 | |
422 | ac_prev= | |
423 | for ac_option | |
424 | do | |
698dcdb6 | 425 | |
10f2d63a VZ |
426 | # If the previous option needs an argument, assign it. |
427 | if test -n "$ac_prev"; then | |
428 | eval "$ac_prev=\$ac_option" | |
429 | ac_prev= | |
430 | continue | |
431 | fi | |
432 | ||
698dcdb6 VZ |
433 | case "$ac_option" in |
434 | -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;; | |
435 | *) ac_optarg= ;; | |
436 | esac | |
10f2d63a VZ |
437 | |
438 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
439 | ||
698dcdb6 | 440 | case "$ac_option" in |
10f2d63a VZ |
441 | |
442 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
443 | ac_prev=bindir ;; | |
444 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
698dcdb6 | 445 | bindir="$ac_optarg" ;; |
10f2d63a VZ |
446 | |
447 | -build | --build | --buil | --bui | --bu) | |
698dcdb6 | 448 | ac_prev=build ;; |
10f2d63a | 449 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
698dcdb6 | 450 | build="$ac_optarg" ;; |
10f2d63a VZ |
451 | |
452 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
453 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
454 | ac_prev=cache_file ;; | |
455 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
456 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
698dcdb6 | 457 | cache_file="$ac_optarg" ;; |
10f2d63a VZ |
458 | |
459 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da) | |
460 | ac_prev=datadir ;; | |
461 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ | |
462 | | --da=*) | |
698dcdb6 | 463 | datadir="$ac_optarg" ;; |
10f2d63a VZ |
464 | |
465 | -disable-* | --disable-*) | |
698dcdb6 | 466 | ac_feature=`echo $ac_option|sed -e 's/-*disable-//'` |
10f2d63a | 467 | # Reject names that are not valid shell variable names. |
698dcdb6 VZ |
468 | if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then |
469 | { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } | |
470 | fi | |
471 | ac_feature=`echo $ac_feature| sed 's/-/_/g'` | |
472 | eval "enable_${ac_feature}=no" ;; | |
10f2d63a VZ |
473 | |
474 | -enable-* | --enable-*) | |
698dcdb6 | 475 | ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'` |
10f2d63a | 476 | # Reject names that are not valid shell variable names. |
698dcdb6 VZ |
477 | if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then |
478 | { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } | |
479 | fi | |
480 | ac_feature=`echo $ac_feature| sed 's/-/_/g'` | |
481 | case "$ac_option" in | |
482 | *=*) ;; | |
10f2d63a VZ |
483 | *) ac_optarg=yes ;; |
484 | esac | |
698dcdb6 | 485 | eval "enable_${ac_feature}='$ac_optarg'" ;; |
10f2d63a VZ |
486 | |
487 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
488 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
489 | | --exec | --exe | --ex) | |
490 | ac_prev=exec_prefix ;; | |
491 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
492 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
493 | | --exec=* | --exe=* | --ex=*) | |
698dcdb6 | 494 | exec_prefix="$ac_optarg" ;; |
10f2d63a VZ |
495 | |
496 | -gas | --gas | --ga | --g) | |
497 | # Obsolete; use --with-gas. | |
498 | with_gas=yes ;; | |
499 | ||
698dcdb6 VZ |
500 | -help | --help | --hel | --he) |
501 | # Omit some internal or obsolete options to make the list less imposing. | |
502 | # This message is too long to be a string in the A/UX 3.1 sh. | |
503 | cat << EOF | |
504 | Usage: configure [options] [host] | |
505 | Options: [defaults in brackets after descriptions] | |
506 | Configuration: | |
507 | --cache-file=FILE cache test results in FILE | |
508 | --help print this message | |
509 | --no-create do not create output files | |
510 | --quiet, --silent do not print \`checking...' messages | |
511 | --version print the version of autoconf that created configure | |
512 | Directory and file names: | |
513 | --prefix=PREFIX install architecture-independent files in PREFIX | |
514 | [$ac_default_prefix] | |
515 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX | |
516 | [same as prefix] | |
517 | --bindir=DIR user executables in DIR [EPREFIX/bin] | |
518 | --sbindir=DIR system admin executables in DIR [EPREFIX/sbin] | |
519 | --libexecdir=DIR program executables in DIR [EPREFIX/libexec] | |
520 | --datadir=DIR read-only architecture-independent data in DIR | |
521 | [PREFIX/share] | |
522 | --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc] | |
523 | --sharedstatedir=DIR modifiable architecture-independent data in DIR | |
524 | [PREFIX/com] | |
525 | --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var] | |
526 | --libdir=DIR object code libraries in DIR [EPREFIX/lib] | |
527 | --includedir=DIR C header files in DIR [PREFIX/include] | |
528 | --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include] | |
529 | --infodir=DIR info documentation in DIR [PREFIX/info] | |
530 | --mandir=DIR man documentation in DIR [PREFIX/man] | |
531 | --srcdir=DIR find the sources in DIR [configure dir or ..] | |
532 | --program-prefix=PREFIX prepend PREFIX to installed program names | |
533 | --program-suffix=SUFFIX append SUFFIX to installed program names | |
534 | --program-transform-name=PROGRAM | |
535 | run sed PROGRAM on installed program names | |
536 | EOF | |
537 | cat << EOF | |
538 | Host type: | |
539 | --build=BUILD configure for building on BUILD [BUILD=HOST] | |
540 | --host=HOST configure for HOST [guessed] | |
541 | --target=TARGET configure for TARGET [TARGET=HOST] | |
542 | Features and packages: | |
543 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) | |
544 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
545 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
546 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
547 | --x-includes=DIR X include files are in DIR | |
548 | --x-libraries=DIR X library files are in DIR | |
549 | EOF | |
550 | if test -n "$ac_help"; then | |
551 | echo "--enable and --with options recognized:$ac_help" | |
552 | fi | |
553 | exit 0 ;; | |
10f2d63a VZ |
554 | |
555 | -host | --host | --hos | --ho) | |
698dcdb6 | 556 | ac_prev=host ;; |
10f2d63a | 557 | -host=* | --host=* | --hos=* | --ho=*) |
698dcdb6 | 558 | host="$ac_optarg" ;; |
10f2d63a VZ |
559 | |
560 | -includedir | --includedir | --includedi | --included | --include \ | |
561 | | --includ | --inclu | --incl | --inc) | |
562 | ac_prev=includedir ;; | |
563 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
564 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
698dcdb6 | 565 | includedir="$ac_optarg" ;; |
10f2d63a VZ |
566 | |
567 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
568 | ac_prev=infodir ;; | |
569 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
698dcdb6 | 570 | infodir="$ac_optarg" ;; |
10f2d63a VZ |
571 | |
572 | -libdir | --libdir | --libdi | --libd) | |
573 | ac_prev=libdir ;; | |
574 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
698dcdb6 | 575 | libdir="$ac_optarg" ;; |
10f2d63a VZ |
576 | |
577 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
578 | | --libexe | --libex | --libe) | |
579 | ac_prev=libexecdir ;; | |
580 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
581 | | --libexe=* | --libex=* | --libe=*) | |
698dcdb6 | 582 | libexecdir="$ac_optarg" ;; |
10f2d63a VZ |
583 | |
584 | -localstatedir | --localstatedir | --localstatedi | --localstated \ | |
585 | | --localstate | --localstat | --localsta | --localst \ | |
586 | | --locals | --local | --loca | --loc | --lo) | |
587 | ac_prev=localstatedir ;; | |
588 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
589 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \ | |
590 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) | |
698dcdb6 | 591 | localstatedir="$ac_optarg" ;; |
10f2d63a VZ |
592 | |
593 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
594 | ac_prev=mandir ;; | |
595 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
698dcdb6 | 596 | mandir="$ac_optarg" ;; |
10f2d63a VZ |
597 | |
598 | -nfp | --nfp | --nf) | |
599 | # Obsolete; use --without-fp. | |
600 | with_fp=no ;; | |
601 | ||
602 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
603 | | --no-cr | --no-c) | |
604 | no_create=yes ;; | |
605 | ||
606 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
607 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
608 | no_recursion=yes ;; | |
609 | ||
610 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
611 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
612 | | --oldin | --oldi | --old | --ol | --o) | |
613 | ac_prev=oldincludedir ;; | |
614 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
615 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
616 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
698dcdb6 | 617 | oldincludedir="$ac_optarg" ;; |
10f2d63a VZ |
618 | |
619 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
620 | ac_prev=prefix ;; | |
621 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
698dcdb6 | 622 | prefix="$ac_optarg" ;; |
10f2d63a VZ |
623 | |
624 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
625 | | --program-pre | --program-pr | --program-p) | |
626 | ac_prev=program_prefix ;; | |
627 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
628 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
698dcdb6 | 629 | program_prefix="$ac_optarg" ;; |
10f2d63a VZ |
630 | |
631 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
632 | | --program-suf | --program-su | --program-s) | |
633 | ac_prev=program_suffix ;; | |
634 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
635 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
698dcdb6 | 636 | program_suffix="$ac_optarg" ;; |
10f2d63a VZ |
637 | |
638 | -program-transform-name | --program-transform-name \ | |
639 | | --program-transform-nam | --program-transform-na \ | |
640 | | --program-transform-n | --program-transform- \ | |
641 | | --program-transform | --program-transfor \ | |
642 | | --program-transfo | --program-transf \ | |
643 | | --program-trans | --program-tran \ | |
644 | | --progr-tra | --program-tr | --program-t) | |
645 | ac_prev=program_transform_name ;; | |
646 | -program-transform-name=* | --program-transform-name=* \ | |
647 | | --program-transform-nam=* | --program-transform-na=* \ | |
648 | | --program-transform-n=* | --program-transform-=* \ | |
649 | | --program-transform=* | --program-transfor=* \ | |
650 | | --program-transfo=* | --program-transf=* \ | |
651 | | --program-trans=* | --program-tran=* \ | |
652 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
698dcdb6 | 653 | program_transform_name="$ac_optarg" ;; |
10f2d63a VZ |
654 | |
655 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
656 | | -silent | --silent | --silen | --sile | --sil) | |
657 | silent=yes ;; | |
658 | ||
659 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
660 | ac_prev=sbindir ;; | |
661 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
662 | | --sbi=* | --sb=*) | |
698dcdb6 | 663 | sbindir="$ac_optarg" ;; |
10f2d63a VZ |
664 | |
665 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
666 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
667 | | --sharedst | --shareds | --shared | --share | --shar \ | |
668 | | --sha | --sh) | |
669 | ac_prev=sharedstatedir ;; | |
670 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
671 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
672 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
673 | | --sha=* | --sh=*) | |
698dcdb6 | 674 | sharedstatedir="$ac_optarg" ;; |
10f2d63a VZ |
675 | |
676 | -site | --site | --sit) | |
677 | ac_prev=site ;; | |
678 | -site=* | --site=* | --sit=*) | |
698dcdb6 | 679 | site="$ac_optarg" ;; |
10f2d63a VZ |
680 | |
681 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
682 | ac_prev=srcdir ;; | |
683 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
698dcdb6 | 684 | srcdir="$ac_optarg" ;; |
10f2d63a VZ |
685 | |
686 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
687 | | --syscon | --sysco | --sysc | --sys | --sy) | |
688 | ac_prev=sysconfdir ;; | |
689 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
690 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
698dcdb6 | 691 | sysconfdir="$ac_optarg" ;; |
10f2d63a VZ |
692 | |
693 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
698dcdb6 | 694 | ac_prev=target ;; |
10f2d63a | 695 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
698dcdb6 | 696 | target="$ac_optarg" ;; |
10f2d63a VZ |
697 | |
698 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
699 | verbose=yes ;; | |
700 | ||
698dcdb6 VZ |
701 | -version | --version | --versio | --versi | --vers) |
702 | echo "configure generated by autoconf version 2.13" | |
703 | exit 0 ;; | |
10f2d63a VZ |
704 | |
705 | -with-* | --with-*) | |
698dcdb6 | 706 | ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'` |
10f2d63a | 707 | # Reject names that are not valid shell variable names. |
698dcdb6 VZ |
708 | if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then |
709 | { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } | |
710 | fi | |
10f2d63a | 711 | ac_package=`echo $ac_package| sed 's/-/_/g'` |
698dcdb6 VZ |
712 | case "$ac_option" in |
713 | *=*) ;; | |
10f2d63a VZ |
714 | *) ac_optarg=yes ;; |
715 | esac | |
698dcdb6 | 716 | eval "with_${ac_package}='$ac_optarg'" ;; |
10f2d63a VZ |
717 | |
718 | -without-* | --without-*) | |
698dcdb6 | 719 | ac_package=`echo $ac_option|sed -e 's/-*without-//'` |
10f2d63a | 720 | # Reject names that are not valid shell variable names. |
698dcdb6 VZ |
721 | if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then |
722 | { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } | |
723 | fi | |
724 | ac_package=`echo $ac_package| sed 's/-/_/g'` | |
725 | eval "with_${ac_package}=no" ;; | |
10f2d63a VZ |
726 | |
727 | --x) | |
728 | # Obsolete; use --with-x. | |
729 | with_x=yes ;; | |
730 | ||
731 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
732 | | --x-incl | --x-inc | --x-in | --x-i) | |
733 | ac_prev=x_includes ;; | |
734 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
735 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
698dcdb6 | 736 | x_includes="$ac_optarg" ;; |
10f2d63a VZ |
737 | |
738 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
739 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
740 | ac_prev=x_libraries ;; | |
741 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
742 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
698dcdb6 | 743 | x_libraries="$ac_optarg" ;; |
10f2d63a | 744 | |
698dcdb6 | 745 | -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; } |
10f2d63a VZ |
746 | ;; |
747 | ||
748 | *) | |
698dcdb6 VZ |
749 | if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then |
750 | echo "configure: warning: $ac_option: invalid host type" 1>&2 | |
751 | fi | |
752 | if test "x$nonopt" != xNONE; then | |
753 | { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } | |
754 | fi | |
755 | nonopt="$ac_option" | |
10f2d63a VZ |
756 | ;; |
757 | ||
758 | esac | |
759 | done | |
760 | ||
761 | if test -n "$ac_prev"; then | |
698dcdb6 VZ |
762 | { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; } |
763 | fi | |
764 | ||
765 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 | |
766 | ||
767 | # File descriptor usage: | |
768 | # 0 standard input | |
769 | # 1 file creation | |
770 | # 2 errors and warnings | |
771 | # 3 some systems may open it to /dev/tty | |
772 | # 4 used on the Kubota Titan | |
773 | # 6 checking for... messages and results | |
774 | # 5 compiler messages saved in config.log | |
775 | if test "$silent" = yes; then | |
776 | exec 6>/dev/null | |
777 | else | |
778 | exec 6>&1 | |
10f2d63a | 779 | fi |
698dcdb6 VZ |
780 | exec 5>./config.log |
781 | ||
782 | echo "\ | |
783 | This file contains any messages produced by compilers while | |
784 | running configure, to aid debugging if configure makes a mistake. | |
785 | " 1>&5 | |
10f2d63a | 786 | |
698dcdb6 VZ |
787 | # Strip out --no-create and --no-recursion so they do not pile up. |
788 | # Also quote any args containing shell metacharacters. | |
789 | ac_configure_args= | |
790 | for ac_arg | |
10f2d63a | 791 | do |
698dcdb6 VZ |
792 | case "$ac_arg" in |
793 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
794 | | --no-cr | --no-c) ;; | |
795 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
796 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;; | |
797 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*) | |
798 | ac_configure_args="$ac_configure_args '$ac_arg'" ;; | |
799 | *) ac_configure_args="$ac_configure_args $ac_arg" ;; | |
10f2d63a VZ |
800 | esac |
801 | done | |
802 | ||
698dcdb6 VZ |
803 | # NLS nuisances. |
804 | # Only set these to C if already set. These must not be set unconditionally | |
805 | # because not all systems understand e.g. LANG=C (notably SCO). | |
806 | # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'! | |
807 | # Non-C LC_CTYPE values break the ctype check. | |
808 | if test "${LANG+set}" = set; then LANG=C; export LANG; fi | |
809 | if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi | |
810 | if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi | |
811 | if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi | |
10f2d63a | 812 | |
698dcdb6 VZ |
813 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
814 | rm -rf conftest* confdefs.h | |
815 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. | |
816 | echo > confdefs.h | |
10f2d63a | 817 | |
698dcdb6 VZ |
818 | # A filename unique to this package, relative to the directory that |
819 | # configure is in, which we can look for to find out if srcdir is correct. | |
820 | ac_unique_file=wx-config.in | |
10f2d63a VZ |
821 | |
822 | # Find the source files, if location was not specified. | |
823 | if test -z "$srcdir"; then | |
824 | ac_srcdir_defaulted=yes | |
825 | # Try the directory containing this script, then its parent. | |
826 | ac_prog=$0 | |
698dcdb6 | 827 | ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'` |
10f2d63a VZ |
828 | test "x$ac_confdir" = "x$ac_prog" && ac_confdir=. |
829 | srcdir=$ac_confdir | |
830 | if test ! -r $srcdir/$ac_unique_file; then | |
831 | srcdir=.. | |
832 | fi | |
833 | else | |
834 | ac_srcdir_defaulted=no | |
835 | fi | |
836 | if test ! -r $srcdir/$ac_unique_file; then | |
837 | if test "$ac_srcdir_defaulted" = yes; then | |
698dcdb6 | 838 | { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; } |
10f2d63a | 839 | else |
698dcdb6 | 840 | { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; } |
10f2d63a VZ |
841 | fi |
842 | fi | |
698dcdb6 | 843 | srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'` |
10f2d63a VZ |
844 | |
845 | # Prefer explicitly selected file to automatically selected ones. | |
846 | if test -z "$CONFIG_SITE"; then | |
847 | if test "x$prefix" != xNONE; then | |
848 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" | |
849 | else | |
850 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" | |
851 | fi | |
852 | fi | |
853 | for ac_site_file in $CONFIG_SITE; do | |
854 | if test -r "$ac_site_file"; then | |
698dcdb6 | 855 | echo "loading site script $ac_site_file" |
10f2d63a VZ |
856 | . "$ac_site_file" |
857 | fi | |
858 | done | |
859 | ||
860 | if test -r "$cache_file"; then | |
698dcdb6 VZ |
861 | echo "loading cache $cache_file" |
862 | . $cache_file | |
10f2d63a | 863 | else |
698dcdb6 VZ |
864 | echo "creating cache $cache_file" |
865 | > $cache_file | |
10f2d63a VZ |
866 | fi |
867 | ||
868 | ac_ext=c | |
698dcdb6 | 869 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
10f2d63a | 870 | ac_cpp='$CPP $CPPFLAGS' |
698dcdb6 VZ |
871 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
872 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
873 | cross_compiling=$ac_cv_prog_cc_cross | |
874 | ||
875 | ac_exeext= | |
876 | ac_objext=o | |
877 | if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then | |
878 | # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu. | |
879 | if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then | |
880 | ac_n= ac_c=' | |
881 | ' ac_t=' ' | |
882 | else | |
883 | ac_n=-n ac_c= ac_t= | |
884 | fi | |
10f2d63a | 885 | else |
698dcdb6 | 886 | ac_n= ac_c='\c' ac_t= |
10f2d63a | 887 | fi |
698dcdb6 VZ |
888 | |
889 | ||
10f2d63a | 890 | |
7c66a493 VZ |
891 | ac_aux_dir= |
892 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do | |
893 | if test -f $ac_dir/install-sh; then | |
894 | ac_aux_dir=$ac_dir | |
895 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
896 | break | |
897 | elif test -f $ac_dir/install.sh; then | |
898 | ac_aux_dir=$ac_dir | |
899 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
900 | break | |
901 | fi | |
902 | done | |
903 | if test -z "$ac_aux_dir"; then | |
698dcdb6 | 904 | { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; } |
7c66a493 | 905 | fi |
698dcdb6 VZ |
906 | ac_config_guess=$ac_aux_dir/config.guess |
907 | ac_config_sub=$ac_aux_dir/config.sub | |
908 | ac_configure=$ac_aux_dir/configure # This should be Cygnus configure. | |
703e0a69 | 909 | |
698dcdb6 VZ |
910 | |
911 | # Do some error checking and defaulting for the host and target type. | |
912 | # The inputs are: | |
913 | # configure --host=HOST --target=TARGET --build=BUILD NONOPT | |
914 | # | |
915 | # The rules are: | |
916 | # 1. You are not allowed to specify --host, --target, and nonopt at the | |
917 | # same time. | |
918 | # 2. Host defaults to nonopt. | |
919 | # 3. If nonopt is not specified, then host defaults to the current host, | |
920 | # as determined by config.guess. | |
921 | # 4. Target and build default to nonopt. | |
922 | # 5. If nonopt is not specified, then target and build default to host. | |
7c66a493 VZ |
923 | |
924 | # The aliases save the names the user supplied, while $host etc. | |
925 | # will get canonicalized. | |
698dcdb6 VZ |
926 | case $host---$target---$nonopt in |
927 | NONE---*---* | *---NONE---* | *---*---NONE) ;; | |
928 | *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;; | |
929 | esac | |
930 | ||
931 | ||
932 | # Make sure we can run config.sub. | |
933 | if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then : | |
934 | else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; } | |
935 | fi | |
936 | ||
937 | echo $ac_n "checking host system type""... $ac_c" 1>&6 | |
77e13408 | 938 | echo "configure:939: checking host system type" >&5 |
698dcdb6 VZ |
939 | |
940 | host_alias=$host | |
941 | case "$host_alias" in | |
942 | NONE) | |
943 | case $nonopt in | |
944 | NONE) | |
945 | if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then : | |
946 | else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; } | |
947 | fi ;; | |
948 | *) host_alias=$nonopt ;; | |
949 | esac ;; | |
950 | esac | |
951 | ||
952 | host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias` | |
953 | host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
954 | host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
955 | host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
956 | echo "$ac_t""$host" 1>&6 | |
957 | ||
958 | echo $ac_n "checking target system type""... $ac_c" 1>&6 | |
77e13408 | 959 | echo "configure:960: checking target system type" >&5 |
698dcdb6 VZ |
960 | |
961 | target_alias=$target | |
962 | case "$target_alias" in | |
963 | NONE) | |
964 | case $nonopt in | |
965 | NONE) target_alias=$host_alias ;; | |
966 | *) target_alias=$nonopt ;; | |
967 | esac ;; | |
968 | esac | |
969 | ||
970 | target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias` | |
971 | target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
972 | target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
973 | target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
974 | echo "$ac_t""$target" 1>&6 | |
975 | ||
976 | echo $ac_n "checking build system type""... $ac_c" 1>&6 | |
77e13408 | 977 | echo "configure:978: checking build system type" >&5 |
698dcdb6 VZ |
978 | |
979 | build_alias=$build | |
980 | case "$build_alias" in | |
981 | NONE) | |
982 | case $nonopt in | |
983 | NONE) build_alias=$host_alias ;; | |
984 | *) build_alias=$nonopt ;; | |
985 | esac ;; | |
986 | esac | |
987 | ||
988 | build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias` | |
989 | build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
990 | build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
991 | build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
992 | echo "$ac_t""$build" 1>&6 | |
993 | ||
994 | test "$host_alias" != "$target_alias" && | |
7c66a493 VZ |
995 | test "$program_prefix$program_suffix$program_transform_name" = \ |
996 | NONENONEs,x,x, && | |
997 | program_prefix=${target_alias}- | |
998 | ||
698dcdb6 VZ |
999 | |
1000 | ||
10f2d63a | 1001 | WX_MAJOR_VERSION_NUMBER=2 |
37d403aa | 1002 | WX_MINOR_VERSION_NUMBER=3 |
6c01ec02 | 1003 | WX_RELEASE_NUMBER=2 |
10f2d63a | 1004 | |
10f2d63a | 1005 | WX_VERSION=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER.$WX_RELEASE_NUMBER |
10f2d63a | 1006 | WX_RELEASE=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER |
6426998c | 1007 | |
6c01ec02 | 1008 | WX_CURRENT=1 |
6426998c RL |
1009 | WX_REVISION=0 |
1010 | WX_AGE=0 | |
1011 | ||
698dcdb6 VZ |
1012 | |
1013 | ||
10f2d63a VZ |
1014 | USE_UNIX=1 |
1015 | USE_WIN32=0 | |
b12915c1 | 1016 | USE_BEOS=0 |
1216f52d | 1017 | USE_MAC=0 |
b12915c1 | 1018 | |
10f2d63a VZ |
1019 | USE_LINUX= |
1020 | USE_SGI= | |
1021 | USE_HPUX= | |
1022 | USE_SYSV= | |
1023 | USE_SVR4= | |
1024 | USE_AIX= | |
1025 | USE_SUN= | |
1026 | USE_SOLARIS= | |
1027 | USE_SUNOS= | |
1028 | USE_ALPHA= | |
7cf43d5e | 1029 | USE_IA64= |
10f2d63a VZ |
1030 | USE_OSF= |
1031 | USE_BSD= | |
f11bdd03 | 1032 | USE_DARWIN= |
10f2d63a | 1033 | USE_FREEBSD= |
95c8801c | 1034 | USE_OPENBSD= |
f6bcfd97 | 1035 | USE_NETBSD= |
10f2d63a VZ |
1036 | USE_VMS= |
1037 | USE_ULTRIX= | |
10f2d63a VZ |
1038 | USE_DATA_GENERAL= |
1039 | ||
ab9b9eab VZ |
1040 | NEEDS_D_REENTRANT_FOR_R_FUNCS=0 |
1041 | ||
77e13408 | 1042 | ALL_TOOLKITS="GTK MAC MGL MOTIF MSW PM WINE" |
10f2d63a VZ |
1043 | |
1044 | DEFAULT_wxUSE_GTK=0 | |
1e6feb95 VZ |
1045 | DEFAULT_wxUSE_MAC=0 |
1046 | DEFAULT_wxUSE_MGL=0 | |
10f2d63a VZ |
1047 | DEFAULT_wxUSE_MOTIF=0 |
1048 | DEFAULT_wxUSE_MSW=0 | |
e07802fc | 1049 | DEFAULT_wxUSE_PM=0 |
1e6feb95 | 1050 | DEFAULT_wxUSE_WINE=0 |
10f2d63a VZ |
1051 | |
1052 | DEFAULT_DEFAULT_wxUSE_GTK=0 | |
1e6feb95 VZ |
1053 | DEFAULT_DEFAULT_wxUSE_MAC=0 |
1054 | DEFAULT_DEFAULT_wxUSE_MGL=0 | |
10f2d63a VZ |
1055 | DEFAULT_DEFAULT_wxUSE_MOTIF=0 |
1056 | DEFAULT_DEFAULT_wxUSE_MSW=0 | |
e07802fc | 1057 | DEFAULT_DEFAULT_wxUSE_PM=0 |
1e6feb95 | 1058 | DEFAULT_DEFAULT_wxUSE_WINE=0 |
10f2d63a | 1059 | |
d6a55c4b | 1060 | PROGRAM_EXT= |
3a922bb4 | 1061 | SO_SUFFIX=so |
d6a55c4b | 1062 | |
10f2d63a VZ |
1063 | case "${host}" in |
1064 | *-hp-hpux* ) | |
1065 | USE_HPUX=1 | |
1066 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
ab9b9eab | 1067 | NEEDS_D_REENTRANT_FOR_R_FUNCS=1 |
3a922bb4 | 1068 | SO_SUFFIX=sl |
698dcdb6 | 1069 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1070 | #define __HPUX__ 1 |
1071 | EOF | |
1072 | ||
1073 | ;; | |
1074 | *-*-linux* ) | |
1075 | USE_LINUX=1 | |
698dcdb6 | 1076 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1077 | #define __LINUX__ 1 |
1078 | EOF | |
1079 | ||
1080 | TMP=`uname -m` | |
1081 | if test "x$TMP" = "xalpha"; then | |
1082 | USE_ALPHA=1 | |
698dcdb6 | 1083 | cat >> confdefs.h <<\EOF |
10f2d63a | 1084 | #define __ALPHA__ 1 |
7cf43d5e RL |
1085 | EOF |
1086 | ||
1087 | fi | |
1088 | if test "x$TMP" = "xia64"; then | |
1089 | USE_IA64=1 | |
1090 | cat >> confdefs.h <<\EOF | |
1091 | #define __IA64__ 1 | |
10f2d63a VZ |
1092 | EOF |
1093 | ||
1094 | fi | |
1095 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1096 | ;; | |
1097 | *-*-irix5* | *-*-irix6* ) | |
1098 | USE_SGI=1 | |
1099 | USE_SVR4=1 | |
698dcdb6 | 1100 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1101 | #define __SGI__ 1 |
1102 | EOF | |
1103 | ||
698dcdb6 | 1104 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1105 | #define __SVR4__ 1 |
1106 | EOF | |
1107 | ||
1108 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1109 | ;; | |
1110 | *-*-solaris2* ) | |
1111 | USE_SUN=1 | |
1112 | USE_SOLARIS=1 | |
1113 | USE_SVR4=1 | |
698dcdb6 | 1114 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1115 | #define __SUN__ 1 |
1116 | EOF | |
1117 | ||
698dcdb6 | 1118 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1119 | #define __SOLARIS__ 1 |
1120 | EOF | |
1121 | ||
698dcdb6 | 1122 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1123 | #define __SVR4__ 1 |
1124 | EOF | |
1125 | ||
1126 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
ab9b9eab | 1127 | NEEDS_D_REENTRANT_FOR_R_FUNCS=1 |
10f2d63a VZ |
1128 | ;; |
1129 | *-*-sunos4* ) | |
1130 | USE_SUN=1 | |
1131 | USE_SUNOS=1 | |
1132 | USE_BSD=1 | |
698dcdb6 | 1133 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1134 | #define __SUN__ 1 |
1135 | EOF | |
1136 | ||
698dcdb6 | 1137 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1138 | #define __SUNOS__ 1 |
1139 | EOF | |
1140 | ||
698dcdb6 | 1141 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1142 | #define __BSD__ 1 |
1143 | EOF | |
1144 | ||
1145 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1146 | ;; | |
f6bcfd97 | 1147 | *-*-freebsd*) |
10f2d63a VZ |
1148 | USE_BSD=1 |
1149 | USE_FREEBSD=1 | |
698dcdb6 | 1150 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1151 | #define __FREEBSD__ 1 |
1152 | EOF | |
1153 | ||
698dcdb6 | 1154 | cat >> confdefs.h <<\EOF |
10f2d63a | 1155 | #define __BSD__ 1 |
95c8801c VS |
1156 | EOF |
1157 | ||
1158 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1159 | ;; | |
1160 | *-*-openbsd*) | |
1161 | USE_BSD=1 | |
1162 | USE_OPENBSD=1 | |
698dcdb6 | 1163 | cat >> confdefs.h <<\EOF |
95c8801c VS |
1164 | #define __FREEBSD__ 1 |
1165 | EOF | |
1166 | ||
698dcdb6 | 1167 | cat >> confdefs.h <<\EOF |
95c8801c | 1168 | #define __OPENBSD__ 1 |
f6bcfd97 BP |
1169 | EOF |
1170 | ||
1171 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1172 | ;; | |
1173 | *-*-netbsd*) | |
1174 | USE_BSD=1 | |
1175 | USE_NETBSD=1 | |
698dcdb6 | 1176 | cat >> confdefs.h <<\EOF |
f6bcfd97 BP |
1177 | #define __FREEBSD__ 1 |
1178 | EOF | |
1179 | ||
698dcdb6 | 1180 | cat >> confdefs.h <<\EOF |
f6bcfd97 | 1181 | #define __NETBSD__ 1 |
10f2d63a VZ |
1182 | EOF |
1183 | ||
1184 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1185 | ;; | |
1186 | *-*-osf* ) | |
1187 | USE_ALPHA=1 | |
1188 | USE_OSF=1 | |
698dcdb6 | 1189 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1190 | #define __ALPHA__ 1 |
1191 | EOF | |
1192 | ||
698dcdb6 | 1193 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1194 | #define __OSF__ 1 |
1195 | EOF | |
1196 | ||
1197 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
f6bcfd97 | 1198 | NEEDS_D_REENTRANT_FOR_R_FUNCS=1 |
10f2d63a VZ |
1199 | ;; |
1200 | *-*-dgux5* ) | |
1201 | USE_ALPHA=1 | |
1202 | USE_SVR4=1 | |
698dcdb6 | 1203 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1204 | #define __ALPHA__ 1 |
1205 | EOF | |
1206 | ||
698dcdb6 | 1207 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1208 | #define __SVR4__ 1 |
1209 | EOF | |
1210 | ||
1211 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1212 | ;; | |
1213 | *-*-sysv5* ) | |
1214 | USE_SYSV=1 | |
1215 | USE_SVR4=1 | |
698dcdb6 | 1216 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1217 | #define __SYSV__ 1 |
1218 | EOF | |
1219 | ||
698dcdb6 | 1220 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1221 | #define __SVR4__ 1 |
1222 | EOF | |
1223 | ||
1224 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1225 | ;; | |
1226 | *-*-aix* ) | |
1227 | USE_AIX=1 | |
1228 | USE_SYSV=1 | |
1229 | USE_SVR4=1 | |
698dcdb6 | 1230 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1231 | #define __AIX__ 1 |
1232 | EOF | |
1233 | ||
698dcdb6 | 1234 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1235 | #define __SYSV__ 1 |
1236 | EOF | |
1237 | ||
698dcdb6 | 1238 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1239 | #define __SVR4__ 1 |
1240 | EOF | |
1241 | ||
1242 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1243 | ;; | |
1244 | ||
1c8183e2 | 1245 | *-*-cygwin* | *-*-mingw32* ) |
10f2d63a VZ |
1246 | USE_UNIX=0 |
1247 | USE_WIN32=1 | |
3a922bb4 | 1248 | SO_SUFFIX=dll |
698dcdb6 | 1249 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1250 | #define __WIN32__ 1 |
1251 | EOF | |
1252 | ||
698dcdb6 | 1253 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1254 | #define __WIN95__ 1 |
1255 | EOF | |
1256 | ||
698dcdb6 | 1257 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1258 | #define __WINDOWS__ 1 |
1259 | EOF | |
1260 | ||
698dcdb6 | 1261 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1262 | #define __GNUWIN32__ 1 |
1263 | EOF | |
1264 | ||
698dcdb6 | 1265 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1266 | #define STRICT 1 |
1267 | EOF | |
1268 | ||
698dcdb6 | 1269 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1270 | #define WINVER 0x0400 |
1271 | EOF | |
1272 | ||
cf27ef00 | 1273 | PROGRAM_EXT=".exe" |
7b7a7637 | 1274 | RESCOMP=windres |
10f2d63a VZ |
1275 | DEFAULT_DEFAULT_wxUSE_MSW=1 |
1276 | ;; | |
1277 | ||
6fa882bd | 1278 | *-pc-os2_emx | *-pc-os2-emx ) |
698dcdb6 | 1279 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1280 | #define __EMX__ 1 |
1281 | EOF | |
1282 | ||
cf27ef00 | 1283 | PROGRAM_EXT=".exe" |
e07802fc | 1284 | DEFAULT_DEFAULT_wxUSE_PM=1 |
10f2d63a VZ |
1285 | ;; |
1286 | ||
d08b457b GD |
1287 | powerpc-*-darwin* ) |
1288 | USE_BSD=1 | |
f11bdd03 | 1289 | USE_DARWIN=1 |
3a922bb4 | 1290 | SO_SUFFIX=dylib |
698dcdb6 | 1291 | cat >> confdefs.h <<\EOF |
f11bdd03 | 1292 | #define __BSD__ 1 |
b4085ce6 GD |
1293 | EOF |
1294 | ||
698dcdb6 | 1295 | cat >> confdefs.h <<\EOF |
f11bdd03 | 1296 | #define __DARWIN__ 1 |
d08b457b GD |
1297 | EOF |
1298 | ||
1299 | cat >> confdefs.h <<\EOF | |
1300 | #define __POWERPC__ 1 | |
b4085ce6 GD |
1301 | EOF |
1302 | ||
1303 | DEFAULT_DEFAULT_wxUSE_MAC=1 | |
1304 | ;; | |
1305 | ||
b12915c1 VZ |
1306 | *-*-beos* ) |
1307 | USE_BEOS=1 | |
698dcdb6 | 1308 | cat >> confdefs.h <<\EOF |
b12915c1 VZ |
1309 | #define __BEOS__ 1 |
1310 | EOF | |
1311 | ||
1312 | ;; | |
1313 | ||
10f2d63a | 1314 | *) |
698dcdb6 | 1315 | { echo "configure: error: unknown system type ${host}." 1>&2; exit 1; } |
10f2d63a VZ |
1316 | esac |
1317 | ||
1318 | if test "$USE_UNIX" = 1 ; then | |
b12915c1 | 1319 | wxUSE_UNIX=yes |
698dcdb6 | 1320 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1321 | #define __UNIX__ 1 |
1322 | EOF | |
1323 | ||
10f2d63a VZ |
1324 | fi |
1325 | ||
2389f33b VZ |
1326 | if test "$USE_LINUX" = 1; then |
1327 | echo $ac_n "checking for glibc 2.1 or later""... $ac_c" 1>&6 | |
77e13408 | 1328 | echo "configure:1329: checking for glibc 2.1 or later" >&5 |
2389f33b VZ |
1329 | if eval "test \"`echo '$''{'wx_lib_glibc21'+set}'`\" = set"; then |
1330 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1331 | else | |
1332 | cat > conftest.$ac_ext <<EOF | |
77e13408 | 1333 | #line 1334 "configure" |
2389f33b VZ |
1334 | #include "confdefs.h" |
1335 | #include <features.h> | |
1336 | int main() { | |
1337 | ||
1338 | #if !__GLIBC_PREREQ(2, 1) | |
1339 | #error not glibc2.1 | |
1340 | #endif | |
1341 | ||
1342 | ; return 0; } | |
1343 | EOF | |
77e13408 | 1344 | if { (eval echo configure:1345: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
2389f33b VZ |
1345 | rm -rf conftest* |
1346 | ||
1347 | wx_lib_glibc21=yes | |
1348 | ||
1349 | else | |
1350 | echo "configure: failed program was:" >&5 | |
1351 | cat conftest.$ac_ext >&5 | |
1352 | rm -rf conftest* | |
1353 | ||
1354 | wx_lib_glibc21=no | |
1355 | ||
1356 | ||
1357 | fi | |
1358 | rm -f conftest* | |
1359 | ||
1360 | fi | |
1361 | ||
1362 | echo "$ac_t""$wx_lib_glibc21" 1>&6 | |
2389f33b VZ |
1363 | if test "$wx_lib_glibc21" = "yes"; then |
1364 | cat >> confdefs.h <<\EOF | |
1365 | #define wxHAVE_GLIBC2 1 | |
1366 | EOF | |
1367 | ||
1368 | fi | |
1369 | fi | |
10f2d63a | 1370 | |
1e487827 | 1371 | |
1e487827 | 1372 | |
6232543b | 1373 | |
10f2d63a VZ |
1374 | wx_arg_cache_file="configarg.cache" |
1375 | echo "loading argument cache $wx_arg_cache_file" | |
1376 | rm -f ${wx_arg_cache_file}.tmp | |
1377 | touch ${wx_arg_cache_file}.tmp | |
1378 | touch ${wx_arg_cache_file} | |
698dcdb6 | 1379 | |
10f2d63a VZ |
1380 | |
1381 | DEBUG_CONFIGURE=0 | |
1382 | if test $DEBUG_CONFIGURE = 1; then | |
1e6feb95 VZ |
1383 | DEFAULT_wxUSE_UNIVERSAL=no |
1384 | ||
10f2d63a VZ |
1385 | DEFAULT_wxUSE_THREADS=yes |
1386 | ||
1387 | DEFAULT_wxUSE_SHARED=yes | |
3a922bb4 | 1388 | DEFAULT_wxUSE_SONAME=no |
1e6feb95 | 1389 | DEFAULT_wxUSE_OPTIMISE=no |
10f2d63a VZ |
1390 | DEFAULT_wxUSE_PROFILE=no |
1391 | DEFAULT_wxUSE_NO_DEPS=no | |
f676c7ff MB |
1392 | DEFAULT_wxUSE_NO_RTTI=yes |
1393 | DEFAULT_wxUSE_NO_EXCEPTIONS=yes | |
10f2d63a VZ |
1394 | DEFAULT_wxUSE_PERMISSIVE=no |
1395 | DEFAULT_wxUSE_DEBUG_FLAG=yes | |
1396 | DEFAULT_wxUSE_DEBUG_INFO=yes | |
1397 | DEFAULT_wxUSE_DEBUG_GDB=yes | |
1398 | DEFAULT_wxUSE_MEM_TRACING=no | |
1399 | DEFAULT_wxUSE_DEBUG_CONTEXT=no | |
1400 | DEFAULT_wxUSE_DMALLOC=no | |
683dccda | 1401 | DEFAULT_wxUSE_PRECOMP=yes |
10f2d63a VZ |
1402 | DEFAULT_wxUSE_APPLE_IEEE=no |
1403 | ||
1404 | DEFAULT_wxUSE_LOG=yes | |
1e6feb95 VZ |
1405 | DEFAULT_wxUSE_LOGWINDOW=no |
1406 | DEFAULT_wxUSE_LOGGUI=no | |
10f2d63a VZ |
1407 | |
1408 | DEFAULT_wxUSE_GUI=yes | |
1e6feb95 | 1409 | DEFAULT_wxUSE_CONTROLS=no |
10f2d63a | 1410 | |
3e44f09d | 1411 | DEFAULT_wxUSE_REGEX=no |
10f2d63a VZ |
1412 | DEFAULT_wxUSE_ZLIB=no |
1413 | DEFAULT_wxUSE_LIBPNG=no | |
1414 | DEFAULT_wxUSE_LIBJPEG=no | |
c7a2bf27 | 1415 | DEFAULT_wxUSE_LIBTIFF=no |
10f2d63a | 1416 | DEFAULT_wxUSE_ODBC=no |
3fed1840 | 1417 | DEFAULT_wxUSE_FREETYPE=no |
bdad4e7e | 1418 | DEFAULT_wxUSE_OPENGL=no |
10f2d63a | 1419 | |
eb4efbdc | 1420 | DEFAULT_wxUSE_ON_FATAL_EXCEPTION=no |
4f3c5f06 | 1421 | DEFAULT_wxUSE_SNGLINST_CHECKER=no |
10f2d63a | 1422 | DEFAULT_wxUSE_STD_IOSTREAM=no |
1e6feb95 VZ |
1423 | DEFAULT_wxUSE_CMDLINE_PARSER=no |
1424 | DEFAULT_wxUSE_DATETIME=no | |
1425 | DEFAULT_wxUSE_TIMEDATE=no | |
1426 | DEFAULT_wxUSE_TIMER=no | |
1427 | DEFAULT_wxUSE_STOPWATCH=no | |
10f2d63a | 1428 | DEFAULT_wxUSE_FILE=no |
1e6feb95 | 1429 | DEFAULT_wxUSE_FFILE=no |
10f2d63a | 1430 | DEFAULT_wxUSE_TEXTFILE=no |
10f2d63a VZ |
1431 | DEFAULT_wxUSE_WAVE=no |
1432 | DEFAULT_wxUSE_INTL=no | |
1433 | DEFAULT_wxUSE_CONFIG=no | |
1e6feb95 | 1434 | DEFAULT_wxUSE_FONTMAP=no |
10f2d63a VZ |
1435 | DEFAULT_wxUSE_STREAMS=no |
1436 | DEFAULT_wxUSE_SOCKETS=no | |
1437 | DEFAULT_wxUSE_DIALUP_MANAGER=no | |
1438 | DEFAULT_wxUSE_SERIAL=no | |
1439 | DEFAULT_wxUSE_JOYSTICK=no | |
1440 | DEFAULT_wxUSE_DYNLIB_CLASS=no | |
1441 | DEFAULT_wxUSE_LONGLONG=no | |
e8f65ba6 | 1442 | DEFAULT_wxUSE_GEOMETRY=no |
10f2d63a VZ |
1443 | |
1444 | DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no | |
1445 | DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no | |
1446 | DEFAULT_wxUSE_POSTSCRIPT=no | |
1447 | ||
1448 | DEFAULT_wxUSE_X_RESOURCES=no | |
1449 | DEFAULT_wxUSE_CLIPBOARD=no | |
1450 | DEFAULT_wxUSE_TOOLTIPS=no | |
1451 | DEFAULT_wxUSE_DRAG_AND_DROP=no | |
24fd6d87 | 1452 | DEFAULT_wxUSE_DRAGIMAGE=no |
10f2d63a VZ |
1453 | DEFAULT_wxUSE_SPLINES=no |
1454 | ||
1455 | DEFAULT_wxUSE_MDI_ARCHITECTURE=no | |
1456 | DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no | |
1457 | DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no | |
1458 | ||
1459 | DEFAULT_wxUSE_PROLOGIO=no | |
1460 | DEFAULT_wxUSE_RESOURCES=no | |
1461 | DEFAULT_wxUSE_CONSTRAINTS=no | |
1462 | DEFAULT_wxUSE_IPC=no | |
1463 | DEFAULT_wxUSE_HELP=no | |
29fd3c0c | 1464 | DEFAULT_wxUSE_MS_HTML_HELP=no |
3379ed37 | 1465 | DEFAULT_wxUSE_WXHTML_HELP=no |
24176f2c | 1466 | DEFAULT_wxUSE_TREELAYOUT=no |
10f2d63a | 1467 | DEFAULT_wxUSE_METAFILE=no |
1e6feb95 | 1468 | DEFAULT_wxUSE_MIMETYPE=no |
3e44f09d | 1469 | DEFAULT_wxUSE_SYSTEM_OPTIONS=yes |
10f2d63a VZ |
1470 | |
1471 | DEFAULT_wxUSE_COMMONDLGS=no | |
1e6feb95 VZ |
1472 | DEFAULT_wxUSE_CHOICEDLG=no |
1473 | DEFAULT_wxUSE_COLOURDLG=no | |
10f2d63a | 1474 | DEFAULT_wxUSE_DIRDLG=no |
1e6feb95 | 1475 | DEFAULT_wxUSE_FILEDLG=no |
8db37e06 | 1476 | DEFAULT_wxUSE_FINDREPLDLG=no |
1e6feb95 VZ |
1477 | DEFAULT_wxUSE_FONTDLG=no |
1478 | DEFAULT_wxUSE_MSGDLG=no | |
1479 | DEFAULT_wxUSE_NUMBERDLG=no | |
10f2d63a | 1480 | DEFAULT_wxUSE_TEXTDLG=no |
cbca9943 | 1481 | DEFAULT_wxUSE_SPLASH=no |
10f2d63a VZ |
1482 | DEFAULT_wxUSE_STARTUP_TIPS=no |
1483 | DEFAULT_wxUSE_PROGRESSDLG=no | |
b1f5d087 VZ |
1484 | DEFAULT_wxUSE_WIZARDDLG=no |
1485 | ||
1e6feb95 | 1486 | DEFAULT_wxUSE_MENUS=no |
10f2d63a VZ |
1487 | DEFAULT_wxUSE_MINIFRAME=no |
1488 | DEFAULT_wxUSE_HTML=no | |
24528b0c | 1489 | DEFAULT_wxUSE_FILESYSTEM=no |
10f2d63a VZ |
1490 | DEFAULT_wxUSE_FS_INET=no |
1491 | DEFAULT_wxUSE_FS_ZIP=no | |
1492 | DEFAULT_wxUSE_BUSYINFO=no | |
1493 | DEFAULT_wxUSE_ZIPSTREAM=no | |
1e6feb95 | 1494 | DEFAULT_wxUSE_VALIDATORS=no |
10f2d63a VZ |
1495 | |
1496 | DEFAULT_wxUSE_ACCEL=no | |
1e6feb95 | 1497 | DEFAULT_wxUSE_BUTTON=no |
10f2d63a | 1498 | DEFAULT_wxUSE_BMPBUTTON=no |
1e6feb95 VZ |
1499 | DEFAULT_wxUSE_CALCTRL=no |
1500 | DEFAULT_wxUSE_CARET=no | |
10f2d63a VZ |
1501 | DEFAULT_wxUSE_CHECKBOX=no |
1502 | DEFAULT_wxUSE_CHECKLST=no | |
1e6feb95 | 1503 | DEFAULT_wxUSE_CHOICE=no |
10f2d63a VZ |
1504 | DEFAULT_wxUSE_COMBOBOX=no |
1505 | DEFAULT_wxUSE_GAUGE=no | |
1506 | DEFAULT_wxUSE_GRID=no | |
1507 | DEFAULT_wxUSE_NEW_GRID=no | |
1508 | DEFAULT_wxUSE_IMAGLIST=no | |
1509 | DEFAULT_wxUSE_LISTBOX=no | |
1510 | DEFAULT_wxUSE_LISTCTRL=no | |
1511 | DEFAULT_wxUSE_NOTEBOOK=no | |
24176f2c | 1512 | DEFAULT_wxUSE_PROPSHEET=no |
10f2d63a VZ |
1513 | DEFAULT_wxUSE_RADIOBOX=no |
1514 | DEFAULT_wxUSE_RADIOBTN=no | |
1515 | DEFAULT_wxUSE_SASH=no | |
1516 | DEFAULT_wxUSE_SCROLLBAR=no | |
1517 | DEFAULT_wxUSE_SLIDER=no | |
1518 | DEFAULT_wxUSE_SPINBTN=no | |
56cfaa52 | 1519 | DEFAULT_wxUSE_SPINCTRL=no |
10f2d63a VZ |
1520 | DEFAULT_wxUSE_SPLITTER=no |
1521 | DEFAULT_wxUSE_STATBMP=no | |
1522 | DEFAULT_wxUSE_STATBOX=no | |
1523 | DEFAULT_wxUSE_STATLINE=no | |
1e6feb95 | 1524 | DEFAULT_wxUSE_STATTEXT=no |
10f2d63a VZ |
1525 | DEFAULT_wxUSE_STATUSBAR=yes |
1526 | DEFAULT_wxUSE_TABDIALOG=no | |
1e6feb95 | 1527 | DEFAULT_wxUSE_TEXTCTRL=no |
1db8dc4a | 1528 | DEFAULT_wxUSE_TOGGLEBTN=no |
10f2d63a | 1529 | DEFAULT_wxUSE_TOOLBAR=no |
360d6699 VZ |
1530 | DEFAULT_wxUSE_TOOLBAR_NATIVE=no |
1531 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=no | |
10f2d63a | 1532 | DEFAULT_wxUSE_TREECTRL=no |
9f41d601 | 1533 | DEFAULT_wxUSE_POPUPWIN=no |
10f2d63a VZ |
1534 | |
1535 | DEFAULT_wxUSE_UNICODE=no | |
1536 | DEFAULT_wxUSE_WCSRTOMBS=no | |
1537 | ||
edae8572 | 1538 | DEFAULT_wxUSE_PALETTE=no |
0046ff7c | 1539 | DEFAULT_wxUSE_IMAGE=no |
10f2d63a VZ |
1540 | DEFAULT_wxUSE_GIF=no |
1541 | DEFAULT_wxUSE_PCX=no | |
1542 | DEFAULT_wxUSE_PNM=no | |
0046ff7c | 1543 | DEFAULT_wxUSE_XPM=no |
10f2d63a | 1544 | else |
1e6feb95 VZ |
1545 | DEFAULT_wxUSE_UNIVERSAL=no |
1546 | ||
10f2d63a VZ |
1547 | DEFAULT_wxUSE_THREADS=yes |
1548 | ||
1549 | DEFAULT_wxUSE_SHARED=yes | |
3a922bb4 | 1550 | DEFAULT_wxUSE_SONAME=no |
10f2d63a VZ |
1551 | DEFAULT_wxUSE_OPTIMISE=yes |
1552 | DEFAULT_wxUSE_PROFILE=no | |
1553 | DEFAULT_wxUSE_NO_DEPS=no | |
f676c7ff MB |
1554 | DEFAULT_wxUSE_NO_RTTI=yes |
1555 | DEFAULT_wxUSE_NO_EXCEPTIONS=yes | |
10f2d63a VZ |
1556 | DEFAULT_wxUSE_PERMISSIVE=no |
1557 | DEFAULT_wxUSE_DEBUG_FLAG=no | |
1558 | DEFAULT_wxUSE_DEBUG_INFO=no | |
1559 | DEFAULT_wxUSE_DEBUG_GDB=no | |
1560 | DEFAULT_wxUSE_MEM_TRACING=no | |
1561 | DEFAULT_wxUSE_DEBUG_CONTEXT=no | |
1562 | DEFAULT_wxUSE_DMALLOC=no | |
683dccda | 1563 | DEFAULT_wxUSE_PRECOMP=yes |
10f2d63a VZ |
1564 | DEFAULT_wxUSE_APPLE_IEEE=yes |
1565 | ||
1566 | DEFAULT_wxUSE_LOG=yes | |
d73be714 VZ |
1567 | DEFAULT_wxUSE_LOGWINDOW=yes |
1568 | DEFAULT_wxUSE_LOGGUI=yes | |
10f2d63a VZ |
1569 | |
1570 | DEFAULT_wxUSE_GUI=yes | |
1571 | ||
831b3152 | 1572 | DEFAULT_wxUSE_REGEX=yes |
10f2d63a VZ |
1573 | DEFAULT_wxUSE_ZLIB=yes |
1574 | DEFAULT_wxUSE_LIBPNG=yes | |
1575 | DEFAULT_wxUSE_LIBJPEG=yes | |
b47c832e | 1576 | DEFAULT_wxUSE_LIBTIFF=yes |
16b52fa1 | 1577 | DEFAULT_wxUSE_ODBC=no |
3fed1840 | 1578 | DEFAULT_wxUSE_FREETYPE=no |
bdad4e7e | 1579 | DEFAULT_wxUSE_OPENGL=no |
10f2d63a | 1580 | |
eb4efbdc | 1581 | DEFAULT_wxUSE_ON_FATAL_EXCEPTION=yes |
4f3c5f06 | 1582 | DEFAULT_wxUSE_SNGLINST_CHECKER=yes |
10f2d63a | 1583 | DEFAULT_wxUSE_STD_IOSTREAM=no |
1e6feb95 VZ |
1584 | DEFAULT_wxUSE_CMDLINE_PARSER=yes |
1585 | DEFAULT_wxUSE_DATETIME=yes | |
1586 | DEFAULT_wxUSE_TIMEDATE=no | |
1587 | DEFAULT_wxUSE_TIMER=yes | |
1588 | DEFAULT_wxUSE_STOPWATCH=yes | |
10f2d63a | 1589 | DEFAULT_wxUSE_FILE=yes |
1e6feb95 | 1590 | DEFAULT_wxUSE_FFILE=yes |
10f2d63a | 1591 | DEFAULT_wxUSE_TEXTFILE=yes |
10f2d63a VZ |
1592 | DEFAULT_wxUSE_WAVE=no |
1593 | DEFAULT_wxUSE_INTL=yes | |
1594 | DEFAULT_wxUSE_CONFIG=yes | |
1e6feb95 | 1595 | DEFAULT_wxUSE_FONTMAP=yes |
10f2d63a VZ |
1596 | DEFAULT_wxUSE_STREAMS=yes |
1597 | DEFAULT_wxUSE_SOCKETS=yes | |
1598 | DEFAULT_wxUSE_DIALUP_MANAGER=yes | |
1599 | DEFAULT_wxUSE_SERIAL=yes | |
1600 | DEFAULT_wxUSE_JOYSTICK=yes | |
1601 | DEFAULT_wxUSE_DYNLIB_CLASS=yes | |
b685cd9b | 1602 | DEFAULT_wxUSE_LONGLONG=yes |
e8f65ba6 | 1603 | DEFAULT_wxUSE_GEOMETRY=yes |
10f2d63a VZ |
1604 | |
1605 | DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes | |
1606 | DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes | |
1607 | DEFAULT_wxUSE_POSTSCRIPT=yes | |
1608 | ||
1609 | DEFAULT_wxUSE_X_RESOURCES=no | |
1610 | DEFAULT_wxUSE_CLIPBOARD=yes | |
1611 | DEFAULT_wxUSE_TOOLTIPS=yes | |
1612 | DEFAULT_wxUSE_DRAG_AND_DROP=yes | |
24fd6d87 | 1613 | DEFAULT_wxUSE_DRAGIMAGE=yes |
10f2d63a VZ |
1614 | DEFAULT_wxUSE_SPLINES=yes |
1615 | ||
1616 | DEFAULT_wxUSE_MDI_ARCHITECTURE=yes | |
1617 | DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes | |
1618 | DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes | |
1619 | ||
1620 | DEFAULT_wxUSE_PROLOGIO=yes | |
1621 | DEFAULT_wxUSE_RESOURCES=yes | |
1622 | DEFAULT_wxUSE_CONSTRAINTS=yes | |
1623 | DEFAULT_wxUSE_IPC=yes | |
1624 | DEFAULT_wxUSE_HELP=yes | |
29fd3c0c | 1625 | DEFAULT_wxUSE_MS_HTML_HELP=yes |
3379ed37 | 1626 | DEFAULT_wxUSE_WXHTML_HELP=yes |
24176f2c | 1627 | DEFAULT_wxUSE_TREELAYOUT=yes |
10f2d63a | 1628 | DEFAULT_wxUSE_METAFILE=yes |
1e6feb95 | 1629 | DEFAULT_wxUSE_MIMETYPE=yes |
3e44f09d | 1630 | DEFAULT_wxUSE_SYSTEM_OPTIONS=yes |
10f2d63a VZ |
1631 | |
1632 | DEFAULT_wxUSE_COMMONDLGS=yes | |
1e6feb95 VZ |
1633 | DEFAULT_wxUSE_CHOICEDLG=yes |
1634 | DEFAULT_wxUSE_COLOURDLG=yes | |
10f2d63a | 1635 | DEFAULT_wxUSE_DIRDLG=yes |
1e6feb95 | 1636 | DEFAULT_wxUSE_FILEDLG=yes |
8db37e06 | 1637 | DEFAULT_wxUSE_FINDREPLDLG=yes |
1e6feb95 VZ |
1638 | DEFAULT_wxUSE_FONTDLG=yes |
1639 | DEFAULT_wxUSE_MSGDLG=yes | |
1640 | DEFAULT_wxUSE_NUMBERDLG=yes | |
10f2d63a | 1641 | DEFAULT_wxUSE_TEXTDLG=yes |
cbca9943 | 1642 | DEFAULT_wxUSE_SPLASH=yes |
10f2d63a VZ |
1643 | DEFAULT_wxUSE_STARTUP_TIPS=yes |
1644 | DEFAULT_wxUSE_PROGRESSDLG=yes | |
f33f19dd VZ |
1645 | DEFAULT_wxUSE_WIZARDDLG=yes |
1646 | ||
1e6feb95 | 1647 | DEFAULT_wxUSE_MENUS=yes |
10f2d63a VZ |
1648 | DEFAULT_wxUSE_MINIFRAME=yes |
1649 | DEFAULT_wxUSE_HTML=yes | |
24528b0c | 1650 | DEFAULT_wxUSE_FILESYSTEM=yes |
10f2d63a VZ |
1651 | DEFAULT_wxUSE_FS_INET=yes |
1652 | DEFAULT_wxUSE_FS_ZIP=yes | |
1653 | DEFAULT_wxUSE_BUSYINFO=yes | |
1654 | DEFAULT_wxUSE_ZIPSTREAM=yes | |
1655 | DEFAULT_wxUSE_VALIDATORS=yes | |
1656 | ||
1657 | DEFAULT_wxUSE_ACCEL=yes | |
1e6feb95 | 1658 | DEFAULT_wxUSE_BUTTON=yes |
10f2d63a | 1659 | DEFAULT_wxUSE_BMPBUTTON=yes |
1e6feb95 VZ |
1660 | DEFAULT_wxUSE_CALCTRL=yes |
1661 | DEFAULT_wxUSE_CARET=yes | |
10f2d63a VZ |
1662 | DEFAULT_wxUSE_CHECKBOX=yes |
1663 | DEFAULT_wxUSE_CHECKLST=yes | |
1664 | DEFAULT_wxUSE_CHOICE=yes | |
1665 | DEFAULT_wxUSE_COMBOBOX=yes | |
1666 | DEFAULT_wxUSE_GAUGE=yes | |
1667 | DEFAULT_wxUSE_GRID=yes | |
cc977e5f | 1668 | DEFAULT_wxUSE_NEW_GRID=yes |
10f2d63a VZ |
1669 | DEFAULT_wxUSE_IMAGLIST=yes |
1670 | DEFAULT_wxUSE_LISTBOX=yes | |
1671 | DEFAULT_wxUSE_LISTCTRL=yes | |
1672 | DEFAULT_wxUSE_NOTEBOOK=yes | |
24176f2c | 1673 | DEFAULT_wxUSE_PROPSHEET=yes |
10f2d63a VZ |
1674 | DEFAULT_wxUSE_RADIOBOX=yes |
1675 | DEFAULT_wxUSE_RADIOBTN=yes | |
1676 | DEFAULT_wxUSE_SASH=yes | |
1677 | DEFAULT_wxUSE_SCROLLBAR=yes | |
1678 | DEFAULT_wxUSE_SLIDER=yes | |
1679 | DEFAULT_wxUSE_SPINBTN=yes | |
56cfaa52 | 1680 | DEFAULT_wxUSE_SPINCTRL=yes |
10f2d63a VZ |
1681 | DEFAULT_wxUSE_SPLITTER=yes |
1682 | DEFAULT_wxUSE_STATBMP=yes | |
1683 | DEFAULT_wxUSE_STATBOX=yes | |
1684 | DEFAULT_wxUSE_STATLINE=yes | |
1e6feb95 | 1685 | DEFAULT_wxUSE_STATTEXT=yes |
10f2d63a VZ |
1686 | DEFAULT_wxUSE_STATUSBAR=yes |
1687 | DEFAULT_wxUSE_TABDIALOG=no | |
1e6feb95 | 1688 | DEFAULT_wxUSE_TEXTCTRL=yes |
1db8dc4a | 1689 | DEFAULT_wxUSE_TOGGLEBTN=yes |
10f2d63a | 1690 | DEFAULT_wxUSE_TOOLBAR=yes |
360d6699 VZ |
1691 | DEFAULT_wxUSE_TOOLBAR_NATIVE=yes |
1692 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes | |
10f2d63a | 1693 | DEFAULT_wxUSE_TREECTRL=yes |
9f41d601 | 1694 | DEFAULT_wxUSE_POPUPWIN=yes |
10f2d63a VZ |
1695 | |
1696 | DEFAULT_wxUSE_UNICODE=no | |
1697 | DEFAULT_wxUSE_WCSRTOMBS=no | |
1698 | ||
edae8572 | 1699 | DEFAULT_wxUSE_PALETTE=yes |
0046ff7c | 1700 | DEFAULT_wxUSE_IMAGE=yes |
10f2d63a VZ |
1701 | DEFAULT_wxUSE_GIF=yes |
1702 | DEFAULT_wxUSE_PCX=yes | |
1703 | DEFAULT_wxUSE_PNM=yes | |
0046ff7c | 1704 | DEFAULT_wxUSE_XPM=yes |
10f2d63a VZ |
1705 | fi |
1706 | ||
698dcdb6 VZ |
1707 | |
1708 | ||
10f2d63a VZ |
1709 | for toolkit in `echo $ALL_TOOLKITS`; do |
1710 | LINE=`grep "wxUSE_$toolkit" ${wx_arg_cache_file}` | |
1711 | if test "x$LINE" != x ; then | |
1712 | has_toolkit_in_cache=1 | |
1713 | eval "DEFAULT_$LINE" | |
1714 | eval "CACHE_$toolkit=1" | |
1715 | fi | |
1716 | done | |
1717 | ||
698dcdb6 VZ |
1718 | |
1719 | ||
1720 | echo $ac_n "checking for --enable-gui""... $ac_c" 1>&6 | |
77e13408 | 1721 | echo "configure:1722: checking for --enable-gui" >&5 |
10f2d63a VZ |
1722 | no_cache=0 |
1723 | # Check whether --enable-gui or --disable-gui was given. | |
1724 | if test "${enable_gui+set}" = set; then | |
1725 | enableval="$enable_gui" | |
698dcdb6 | 1726 | |
10f2d63a VZ |
1727 | if test "$enableval" = yes; then |
1728 | ac_cv_use_gui='wxUSE_GUI=yes' | |
1729 | else | |
1730 | ac_cv_use_gui='wxUSE_GUI=no' | |
1731 | fi | |
698dcdb6 | 1732 | |
10f2d63a | 1733 | else |
698dcdb6 | 1734 | |
10f2d63a VZ |
1735 | LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}` |
1736 | if test "x$LINE" != x ; then | |
1737 | eval "DEFAULT_$LINE" | |
1738 | else | |
1739 | no_cache=1 | |
1740 | fi | |
1741 | ||
1742 | ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI | |
698dcdb6 VZ |
1743 | |
1744 | fi | |
10f2d63a VZ |
1745 | |
1746 | ||
1747 | eval "$ac_cv_use_gui" | |
1748 | if test "$no_cache" != 1; then | |
1749 | echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp | |
1750 | fi | |
1751 | ||
1752 | if test "$wxUSE_GUI" = yes; then | |
698dcdb6 | 1753 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 1754 | else |
698dcdb6 | 1755 | echo "$ac_t""no" 1>&6 |
10f2d63a | 1756 | fi |
698dcdb6 | 1757 | |
10f2d63a | 1758 | |
b12915c1 | 1759 | if test "$wxUSE_GUI" = "yes"; then |
10f2d63a | 1760 | |
1e6feb95 VZ |
1761 | |
1762 | echo $ac_n "checking for --enable-universal""... $ac_c" 1>&6 | |
77e13408 | 1763 | echo "configure:1764: checking for --enable-universal" >&5 |
1e6feb95 VZ |
1764 | no_cache=0 |
1765 | # Check whether --enable-universal or --disable-universal was given. | |
1766 | if test "${enable_universal+set}" = set; then | |
1767 | enableval="$enable_universal" | |
1768 | ||
1769 | if test "$enableval" = yes; then | |
1770 | ac_cv_use_universal='wxUSE_UNIVERSAL=yes' | |
1771 | else | |
1772 | ac_cv_use_universal='wxUSE_UNIVERSAL=no' | |
1773 | fi | |
1774 | ||
1775 | else | |
1776 | ||
1777 | LINE=`grep "wxUSE_UNIVERSAL" ${wx_arg_cache_file}` | |
1778 | if test "x$LINE" != x ; then | |
1779 | eval "DEFAULT_$LINE" | |
1780 | else | |
1781 | no_cache=1 | |
1782 | fi | |
1783 | ||
1784 | ac_cv_use_universal='wxUSE_UNIVERSAL='$DEFAULT_wxUSE_UNIVERSAL | |
1785 | ||
1786 | fi | |
1787 | ||
1788 | ||
1789 | eval "$ac_cv_use_universal" | |
1790 | if test "$no_cache" != 1; then | |
1791 | echo $ac_cv_use_universal >> ${wx_arg_cache_file}.tmp | |
1792 | fi | |
1793 | ||
1794 | if test "$wxUSE_UNIVERSAL" = yes; then | |
1795 | echo "$ac_t""yes" 1>&6 | |
1796 | else | |
1797 | echo "$ac_t""no" 1>&6 | |
1798 | fi | |
1799 | ||
10f2d63a VZ |
1800 | # Check whether --with-gtk or --without-gtk was given. |
1801 | if test "${with_gtk+set}" = set; then | |
1802 | withval="$with_gtk" | |
1803 | wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1 | |
698dcdb6 | 1804 | fi |
10f2d63a VZ |
1805 | |
1806 | # Check whether --with-motif or --without-motif was given. | |
1807 | if test "${with_motif+set}" = set; then | |
1808 | withval="$with_motif" | |
1809 | wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1 | |
698dcdb6 | 1810 | fi |
10f2d63a | 1811 | |
b4085ce6 GD |
1812 | # Check whether --with-mac or --without-mac was given. |
1813 | if test "${with_mac+set}" = set; then | |
1814 | withval="$with_mac" | |
1815 | wxUSE_MAC="$withval" TOOLKIT_GIVEN=1 | |
698dcdb6 | 1816 | fi |
b4085ce6 | 1817 | |
10f2d63a VZ |
1818 | # Check whether --with-wine or --without-wine was given. |
1819 | if test "${with_wine+set}" = set; then | |
1820 | withval="$with_wine" | |
1821 | wxUSE_WINE="$withval" CACHE_WINE=1 TOOLKIT_GIVEN=1 | |
698dcdb6 | 1822 | fi |
10f2d63a | 1823 | |
77e13408 RL |
1824 | # Check whether --with-msw or --without-msw was given. |
1825 | if test "${with_msw+set}" = set; then | |
1826 | withval="$with_msw" | |
1827 | wxUSE_MSW="$withval" CACHE_MSW TOOLKIT_GIVEN=1 | |
698dcdb6 | 1828 | fi |
10f2d63a | 1829 | |
e07802fc VZ |
1830 | # Check whether --with-pm or --without-pm was given. |
1831 | if test "${with_pm+set}" = set; then | |
1832 | withval="$with_pm" | |
1833 | wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1 | |
698dcdb6 VZ |
1834 | fi |
1835 | ||
1e6feb95 VZ |
1836 | # Check whether --with-mgl or --without-mgl was given. |
1837 | if test "${with_mgl+set}" = set; then | |
1838 | withval="$with_mgl" | |
1839 | wxUSE_MGL="$withval" CACHE_MGL=1 TOOLKIT_GIVEN=1 | |
1840 | fi | |
1841 | ||
10f2d63a | 1842 | |
8168de4c VZ |
1843 | # Check whether --enable-gtk2 or --disable-gtk2 was given. |
1844 | if test "${enable_gtk2+set}" = set; then | |
1845 | enableval="$enable_gtk2" | |
1846 | wxUSE_GTK2=1 | |
10f2d63a | 1847 | else |
8168de4c | 1848 | wxUSE_GTK2=0 |
698dcdb6 VZ |
1849 | fi |
1850 | ||
703e0a69 | 1851 | |
1e487827 | 1852 | |
698dcdb6 | 1853 | echo $ac_n "checking for --with-libpng""... $ac_c" 1>&6 |
77e13408 | 1854 | echo "configure:1855: checking for --with-libpng" >&5 |
698dcdb6 VZ |
1855 | no_cache=0 |
1856 | # Check whether --with-libpng or --without-libpng was given. | |
b12915c1 VZ |
1857 | if test "${with_libpng+set}" = set; then |
1858 | withval="$with_libpng" | |
698dcdb6 | 1859 | |
10f2d63a | 1860 | if test "$withval" = yes; then |
b12915c1 | 1861 | ac_cv_use_libpng='wxUSE_LIBPNG=yes' |
422107f9 | 1862 | elif test "$withval" = no; then |
b12915c1 | 1863 | ac_cv_use_libpng='wxUSE_LIBPNG=no' |
422107f9 VZ |
1864 | elif test "$withval" = sys; then |
1865 | ac_cv_use_libpng='wxUSE_LIBPNG=sys' | |
4f14bcd8 GD |
1866 | elif test "$withval" = builtin; then |
1867 | ac_cv_use_libpng='wxUSE_LIBPNG=builtin' | |
422107f9 | 1868 | else |
4f14bcd8 | 1869 | { echo "configure: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" 1>&2; exit 1; } |
10f2d63a | 1870 | fi |
698dcdb6 | 1871 | |
10f2d63a | 1872 | else |
698dcdb6 | 1873 | |
b12915c1 | 1874 | LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}` |
10f2d63a VZ |
1875 | if test "x$LINE" != x ; then |
1876 | eval "DEFAULT_$LINE" | |
1877 | else | |
1878 | no_cache=1 | |
1879 | fi | |
1880 | ||
b12915c1 | 1881 | ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG |
698dcdb6 VZ |
1882 | |
1883 | fi | |
10f2d63a VZ |
1884 | |
1885 | ||
b12915c1 | 1886 | eval "$ac_cv_use_libpng" |
10f2d63a | 1887 | if test "$no_cache" != 1; then |
b12915c1 | 1888 | echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
1889 | fi |
1890 | ||
b12915c1 | 1891 | if test "$wxUSE_LIBPNG" = yes; then |
698dcdb6 | 1892 | echo "$ac_t""yes" 1>&6 |
422107f9 | 1893 | elif test "$wxUSE_LIBPNG" = no; then |
698dcdb6 | 1894 | echo "$ac_t""no" 1>&6 |
422107f9 | 1895 | elif test "$wxUSE_LIBPNG" = sys; then |
698dcdb6 | 1896 | echo "$ac_t""system version" 1>&6 |
4f14bcd8 GD |
1897 | elif test "$wxUSE_LIBPNG" = builtin; then |
1898 | echo "$ac_t""builtin version" 1>&6 | |
422107f9 | 1899 | else |
4f14bcd8 | 1900 | { echo "configure: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" 1>&2; exit 1; } |
10f2d63a | 1901 | fi |
698dcdb6 | 1902 | |
10f2d63a | 1903 | |
698dcdb6 | 1904 | echo $ac_n "checking for --with-libjpeg""... $ac_c" 1>&6 |
77e13408 | 1905 | echo "configure:1906: checking for --with-libjpeg" >&5 |
10f2d63a | 1906 | no_cache=0 |
698dcdb6 | 1907 | # Check whether --with-libjpeg or --without-libjpeg was given. |
b12915c1 VZ |
1908 | if test "${with_libjpeg+set}" = set; then |
1909 | withval="$with_libjpeg" | |
698dcdb6 | 1910 | |
10f2d63a | 1911 | if test "$withval" = yes; then |
b12915c1 | 1912 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes' |
422107f9 | 1913 | elif test "$withval" = no; then |
b12915c1 | 1914 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=no' |
422107f9 VZ |
1915 | elif test "$withval" = sys; then |
1916 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=sys' | |
4f14bcd8 GD |
1917 | elif test "$withval" = builtin; then |
1918 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=builtin' | |
422107f9 | 1919 | else |
4f14bcd8 | 1920 | { echo "configure: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" 1>&2; exit 1; } |
10f2d63a | 1921 | fi |
698dcdb6 | 1922 | |
10f2d63a | 1923 | else |
698dcdb6 | 1924 | |
b12915c1 | 1925 | LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}` |
10f2d63a VZ |
1926 | if test "x$LINE" != x ; then |
1927 | eval "DEFAULT_$LINE" | |
1928 | else | |
1929 | no_cache=1 | |
1930 | fi | |
1931 | ||
b12915c1 | 1932 | ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG |
698dcdb6 VZ |
1933 | |
1934 | fi | |
10f2d63a VZ |
1935 | |
1936 | ||
b12915c1 | 1937 | eval "$ac_cv_use_libjpeg" |
10f2d63a | 1938 | if test "$no_cache" != 1; then |
b12915c1 | 1939 | echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
1940 | fi |
1941 | ||
b12915c1 | 1942 | if test "$wxUSE_LIBJPEG" = yes; then |
698dcdb6 | 1943 | echo "$ac_t""yes" 1>&6 |
422107f9 | 1944 | elif test "$wxUSE_LIBJPEG" = no; then |
698dcdb6 | 1945 | echo "$ac_t""no" 1>&6 |
422107f9 | 1946 | elif test "$wxUSE_LIBJPEG" = sys; then |
698dcdb6 | 1947 | echo "$ac_t""system version" 1>&6 |
4f14bcd8 GD |
1948 | elif test "$wxUSE_LIBJPEG" = builtin; then |
1949 | echo "$ac_t""builtin version" 1>&6 | |
422107f9 | 1950 | else |
4f14bcd8 | 1951 | { echo "configure: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" 1>&2; exit 1; } |
10f2d63a | 1952 | fi |
698dcdb6 | 1953 | |
10f2d63a | 1954 | |
698dcdb6 | 1955 | echo $ac_n "checking for --with-libtiff""... $ac_c" 1>&6 |
77e13408 | 1956 | echo "configure:1957: checking for --with-libtiff" >&5 |
10f2d63a | 1957 | no_cache=0 |
698dcdb6 | 1958 | # Check whether --with-libtiff or --without-libtiff was given. |
b12915c1 VZ |
1959 | if test "${with_libtiff+set}" = set; then |
1960 | withval="$with_libtiff" | |
698dcdb6 | 1961 | |
10f2d63a | 1962 | if test "$withval" = yes; then |
b12915c1 | 1963 | ac_cv_use_libtiff='wxUSE_LIBTIFF=yes' |
0dcf9893 | 1964 | elif test "$withval" = no; then |
b12915c1 | 1965 | ac_cv_use_libtiff='wxUSE_LIBTIFF=no' |
0dcf9893 VZ |
1966 | elif test "$withval" = sys; then |
1967 | ac_cv_use_libtiff='wxUSE_LIBTIFF=sys' | |
4f14bcd8 GD |
1968 | elif test "$withval" = builtin; then |
1969 | ac_cv_use_libtiff='wxUSE_LIBTIFF=builtin' | |
0dcf9893 | 1970 | else |
4f14bcd8 | 1971 | { echo "configure: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" 1>&2; exit 1; } |
10f2d63a | 1972 | fi |
698dcdb6 | 1973 | |
10f2d63a | 1974 | else |
698dcdb6 | 1975 | |
b12915c1 | 1976 | LINE=`grep "wxUSE_LIBTIFF" ${wx_arg_cache_file}` |
10f2d63a VZ |
1977 | if test "x$LINE" != x ; then |
1978 | eval "DEFAULT_$LINE" | |
1979 | else | |
1980 | no_cache=1 | |
1981 | fi | |
1982 | ||
b12915c1 | 1983 | ac_cv_use_libtiff='wxUSE_LIBTIFF='$DEFAULT_wxUSE_LIBTIFF |
698dcdb6 VZ |
1984 | |
1985 | fi | |
10f2d63a VZ |
1986 | |
1987 | ||
b12915c1 | 1988 | eval "$ac_cv_use_libtiff" |
10f2d63a | 1989 | if test "$no_cache" != 1; then |
b12915c1 | 1990 | echo $ac_cv_use_libtiff >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
1991 | fi |
1992 | ||
b12915c1 | 1993 | if test "$wxUSE_LIBTIFF" = yes; then |
698dcdb6 | 1994 | echo "$ac_t""yes" 1>&6 |
0dcf9893 | 1995 | elif test "$wxUSE_LIBTIFF" = no; then |
698dcdb6 | 1996 | echo "$ac_t""no" 1>&6 |
0dcf9893 | 1997 | elif test "$wxUSE_LIBTIFF" = sys; then |
698dcdb6 | 1998 | echo "$ac_t""system version" 1>&6 |
4f14bcd8 GD |
1999 | elif test "$wxUSE_LIBTIFF" = builtin; then |
2000 | echo "$ac_t""builtin version" 1>&6 | |
0dcf9893 | 2001 | else |
4f14bcd8 | 2002 | { echo "configure: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" 1>&2; exit 1; } |
10f2d63a | 2003 | fi |
698dcdb6 | 2004 | |
10f2d63a | 2005 | |
698dcdb6 | 2006 | echo $ac_n "checking for --with-freetype""... $ac_c" 1>&6 |
77e13408 | 2007 | echo "configure:2008: checking for --with-freetype" >&5 |
3fed1840 | 2008 | no_cache=0 |
698dcdb6 | 2009 | # Check whether --with-freetype or --without-freetype was given. |
3fed1840 RR |
2010 | if test "${with_freetype+set}" = set; then |
2011 | withval="$with_freetype" | |
698dcdb6 | 2012 | |
3fed1840 RR |
2013 | if test "$withval" = yes; then |
2014 | ac_cv_use_freetype='wxUSE_FREETYPE=yes' | |
2015 | elif test "$withval" = no; then | |
2016 | ac_cv_use_freetype='wxUSE_FREETYPE=no' | |
2017 | elif test "$withval" = sys; then | |
2018 | ac_cv_use_freetype='wxUSE_FREETYPE=sys' | |
4f14bcd8 GD |
2019 | elif test "$withval" = builtin; then |
2020 | ac_cv_use_freetype='wxUSE_FREETYPE=builtin' | |
3fed1840 | 2021 | else |
4f14bcd8 | 2022 | { echo "configure: error: Invalid value for --with-freetype: should be yes, no, sys, or builtin" 1>&2; exit 1; } |
3fed1840 | 2023 | fi |
698dcdb6 | 2024 | |
3fed1840 | 2025 | else |
698dcdb6 | 2026 | |
3fed1840 RR |
2027 | LINE=`grep "wxUSE_FREETYPE" ${wx_arg_cache_file}` |
2028 | if test "x$LINE" != x ; then | |
2029 | eval "DEFAULT_$LINE" | |
2030 | else | |
2031 | no_cache=1 | |
2032 | fi | |
2033 | ||
2034 | ac_cv_use_freetype='wxUSE_FREETYPE='$DEFAULT_wxUSE_FREETYPE | |
698dcdb6 VZ |
2035 | |
2036 | fi | |
3fed1840 RR |
2037 | |
2038 | ||
2039 | eval "$ac_cv_use_freetype" | |
2040 | if test "$no_cache" != 1; then | |
2041 | echo $ac_cv_use_freetype >> ${wx_arg_cache_file}.tmp | |
2042 | fi | |
2043 | ||
2044 | if test "$wxUSE_FREETYPE" = yes; then | |
698dcdb6 | 2045 | echo "$ac_t""yes" 1>&6 |
3fed1840 | 2046 | elif test "$wxUSE_FREETYPE" = no; then |
698dcdb6 | 2047 | echo "$ac_t""no" 1>&6 |
3fed1840 | 2048 | elif test "$wxUSE_FREETYPE" = sys; then |
698dcdb6 | 2049 | echo "$ac_t""system version" 1>&6 |
4f14bcd8 GD |
2050 | elif test "$wxUSE_FREETYPE" = builtin; then |
2051 | echo "$ac_t""builtin version" 1>&6 | |
3fed1840 | 2052 | else |
4f14bcd8 | 2053 | { echo "configure: error: Invalid value for --with-freetype: should be yes, no, sys, or builtin" 1>&2; exit 1; } |
3fed1840 | 2054 | fi |
698dcdb6 | 2055 | |
3fed1840 | 2056 | |
698dcdb6 | 2057 | echo $ac_n "checking for --with-opengl""... $ac_c" 1>&6 |
77e13408 | 2058 | echo "configure:2059: checking for --with-opengl" >&5 |
10f2d63a | 2059 | no_cache=0 |
698dcdb6 | 2060 | # Check whether --with-opengl or --without-opengl was given. |
b12915c1 VZ |
2061 | if test "${with_opengl+set}" = set; then |
2062 | withval="$with_opengl" | |
698dcdb6 | 2063 | |
10f2d63a | 2064 | if test "$withval" = yes; then |
b12915c1 | 2065 | ac_cv_use_opengl='wxUSE_OPENGL=yes' |
10f2d63a | 2066 | else |
b12915c1 | 2067 | ac_cv_use_opengl='wxUSE_OPENGL=no' |
10f2d63a | 2068 | fi |
698dcdb6 | 2069 | |
10f2d63a | 2070 | else |
698dcdb6 | 2071 | |
b12915c1 | 2072 | LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}` |
10f2d63a VZ |
2073 | if test "x$LINE" != x ; then |
2074 | eval "DEFAULT_$LINE" | |
2075 | else | |
2076 | no_cache=1 | |
2077 | fi | |
2078 | ||
b12915c1 | 2079 | ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL |
698dcdb6 VZ |
2080 | |
2081 | fi | |
10f2d63a VZ |
2082 | |
2083 | ||
b12915c1 | 2084 | eval "$ac_cv_use_opengl" |
10f2d63a | 2085 | if test "$no_cache" != 1; then |
b12915c1 | 2086 | echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
2087 | fi |
2088 | ||
b12915c1 | 2089 | if test "$wxUSE_OPENGL" = yes; then |
698dcdb6 | 2090 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2091 | else |
698dcdb6 | 2092 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2093 | fi |
698dcdb6 | 2094 | |
10f2d63a | 2095 | |
b12915c1 VZ |
2096 | fi |
2097 | ||
1e487827 | 2098 | |
698dcdb6 | 2099 | echo $ac_n "checking for --with-dmalloc""... $ac_c" 1>&6 |
77e13408 | 2100 | echo "configure:2101: checking for --with-dmalloc" >&5 |
698dcdb6 VZ |
2101 | no_cache=0 |
2102 | # Check whether --with-dmalloc or --without-dmalloc was given. | |
b12915c1 VZ |
2103 | if test "${with_dmalloc+set}" = set; then |
2104 | withval="$with_dmalloc" | |
698dcdb6 | 2105 | |
c7a2bf27 | 2106 | if test "$withval" = yes; then |
b12915c1 | 2107 | ac_cv_use_dmalloc='wxUSE_DMALLOC=yes' |
c7a2bf27 | 2108 | else |
b12915c1 | 2109 | ac_cv_use_dmalloc='wxUSE_DMALLOC=no' |
c7a2bf27 | 2110 | fi |
698dcdb6 | 2111 | |
c7a2bf27 | 2112 | else |
698dcdb6 | 2113 | |
b12915c1 | 2114 | LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}` |
c7a2bf27 RR |
2115 | if test "x$LINE" != x ; then |
2116 | eval "DEFAULT_$LINE" | |
2117 | else | |
2118 | no_cache=1 | |
2119 | fi | |
2120 | ||
b12915c1 | 2121 | ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC |
698dcdb6 VZ |
2122 | |
2123 | fi | |
c7a2bf27 RR |
2124 | |
2125 | ||
b12915c1 | 2126 | eval "$ac_cv_use_dmalloc" |
c7a2bf27 | 2127 | if test "$no_cache" != 1; then |
b12915c1 | 2128 | echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp |
c7a2bf27 RR |
2129 | fi |
2130 | ||
b12915c1 | 2131 | if test "$wxUSE_DMALLOC" = yes; then |
698dcdb6 | 2132 | echo "$ac_t""yes" 1>&6 |
c7a2bf27 | 2133 | else |
698dcdb6 | 2134 | echo "$ac_t""no" 1>&6 |
c7a2bf27 | 2135 | fi |
698dcdb6 | 2136 | |
c7a2bf27 | 2137 | |
3e44f09d | 2138 | echo $ac_n "checking for --with-regex""... $ac_c" 1>&6 |
77e13408 | 2139 | echo "configure:2140: checking for --with-regex" >&5 |
3e44f09d VZ |
2140 | no_cache=0 |
2141 | # Check whether --with-regex or --without-regex was given. | |
2142 | if test "${with_regex+set}" = set; then | |
2143 | withval="$with_regex" | |
2144 | ||
2145 | if test "$withval" = yes; then | |
2146 | ac_cv_use_regex='wxUSE_REGEX=yes' | |
2147 | elif test "$withval" = no; then | |
2148 | ac_cv_use_regex='wxUSE_REGEX=no' | |
2149 | elif test "$withval" = sys; then | |
2150 | ac_cv_use_regex='wxUSE_REGEX=sys' | |
4f14bcd8 GD |
2151 | elif test "$withval" = builtin; then |
2152 | ac_cv_use_regex='wxUSE_REGEX=builtin' | |
3e44f09d | 2153 | else |
4f14bcd8 | 2154 | { echo "configure: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" 1>&2; exit 1; } |
3e44f09d VZ |
2155 | fi |
2156 | ||
2157 | else | |
2158 | ||
2159 | LINE=`grep "wxUSE_REGEX" ${wx_arg_cache_file}` | |
2160 | if test "x$LINE" != x ; then | |
2161 | eval "DEFAULT_$LINE" | |
2162 | else | |
2163 | no_cache=1 | |
2164 | fi | |
2165 | ||
2166 | ac_cv_use_regex='wxUSE_REGEX='$DEFAULT_wxUSE_REGEX | |
2167 | ||
2168 | fi | |
2169 | ||
2170 | ||
2171 | eval "$ac_cv_use_regex" | |
2172 | if test "$no_cache" != 1; then | |
2173 | echo $ac_cv_use_regex >> ${wx_arg_cache_file}.tmp | |
2174 | fi | |
2175 | ||
2176 | if test "$wxUSE_REGEX" = yes; then | |
2177 | echo "$ac_t""yes" 1>&6 | |
2178 | elif test "$wxUSE_REGEX" = no; then | |
2179 | echo "$ac_t""no" 1>&6 | |
2180 | elif test "$wxUSE_REGEX" = sys; then | |
2181 | echo "$ac_t""system version" 1>&6 | |
4f14bcd8 GD |
2182 | elif test "$wxUSE_REGEX" = builtin; then |
2183 | echo "$ac_t""builtin version" 1>&6 | |
3e44f09d | 2184 | else |
4f14bcd8 | 2185 | { echo "configure: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" 1>&2; exit 1; } |
3e44f09d VZ |
2186 | fi |
2187 | ||
2188 | ||
698dcdb6 | 2189 | echo $ac_n "checking for --with-zlib""... $ac_c" 1>&6 |
77e13408 | 2190 | echo "configure:2191: checking for --with-zlib" >&5 |
10f2d63a | 2191 | no_cache=0 |
698dcdb6 | 2192 | # Check whether --with-zlib or --without-zlib was given. |
b12915c1 VZ |
2193 | if test "${with_zlib+set}" = set; then |
2194 | withval="$with_zlib" | |
698dcdb6 | 2195 | |
10f2d63a | 2196 | if test "$withval" = yes; then |
b12915c1 | 2197 | ac_cv_use_zlib='wxUSE_ZLIB=yes' |
422107f9 | 2198 | elif test "$withval" = no; then |
b12915c1 | 2199 | ac_cv_use_zlib='wxUSE_ZLIB=no' |
422107f9 VZ |
2200 | elif test "$withval" = sys; then |
2201 | ac_cv_use_zlib='wxUSE_ZLIB=sys' | |
4f14bcd8 GD |
2202 | elif test "$withval" = builtin; then |
2203 | ac_cv_use_zlib='wxUSE_ZLIB=builtin' | |
422107f9 | 2204 | else |
4f14bcd8 | 2205 | { echo "configure: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" 1>&2; exit 1; } |
10f2d63a | 2206 | fi |
698dcdb6 | 2207 | |
10f2d63a | 2208 | else |
698dcdb6 | 2209 | |
b12915c1 | 2210 | LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}` |
10f2d63a VZ |
2211 | if test "x$LINE" != x ; then |
2212 | eval "DEFAULT_$LINE" | |
2213 | else | |
2214 | no_cache=1 | |
2215 | fi | |
2216 | ||
b12915c1 | 2217 | ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB |
698dcdb6 VZ |
2218 | |
2219 | fi | |
10f2d63a VZ |
2220 | |
2221 | ||
b12915c1 | 2222 | eval "$ac_cv_use_zlib" |
10f2d63a | 2223 | if test "$no_cache" != 1; then |
b12915c1 | 2224 | echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
2225 | fi |
2226 | ||
b12915c1 | 2227 | if test "$wxUSE_ZLIB" = yes; then |
698dcdb6 | 2228 | echo "$ac_t""yes" 1>&6 |
422107f9 | 2229 | elif test "$wxUSE_ZLIB" = no; then |
698dcdb6 | 2230 | echo "$ac_t""no" 1>&6 |
422107f9 | 2231 | elif test "$wxUSE_ZLIB" = sys; then |
698dcdb6 | 2232 | echo "$ac_t""system version" 1>&6 |
4f14bcd8 GD |
2233 | elif test "$wxUSE_ZLIB" = builtin; then |
2234 | echo "$ac_t""builtin version" 1>&6 | |
422107f9 | 2235 | else |
4f14bcd8 | 2236 | { echo "configure: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" 1>&2; exit 1; } |
10f2d63a | 2237 | fi |
698dcdb6 | 2238 | |
10f2d63a | 2239 | |
698dcdb6 | 2240 | echo $ac_n "checking for --with-odbc""... $ac_c" 1>&6 |
77e13408 | 2241 | echo "configure:2242: checking for --with-odbc" >&5 |
10f2d63a | 2242 | no_cache=0 |
698dcdb6 | 2243 | # Check whether --with-odbc or --without-odbc was given. |
10f2d63a VZ |
2244 | if test "${with_odbc+set}" = set; then |
2245 | withval="$with_odbc" | |
698dcdb6 | 2246 | |
10f2d63a VZ |
2247 | if test "$withval" = yes; then |
2248 | ac_cv_use_odbc='wxUSE_ODBC=yes' | |
2249 | else | |
2250 | ac_cv_use_odbc='wxUSE_ODBC=no' | |
2251 | fi | |
698dcdb6 | 2252 | |
10f2d63a | 2253 | else |
698dcdb6 | 2254 | |
10f2d63a VZ |
2255 | LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}` |
2256 | if test "x$LINE" != x ; then | |
2257 | eval "DEFAULT_$LINE" | |
2258 | else | |
2259 | no_cache=1 | |
2260 | fi | |
2261 | ||
2262 | ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC | |
698dcdb6 VZ |
2263 | |
2264 | fi | |
10f2d63a VZ |
2265 | |
2266 | ||
2267 | eval "$ac_cv_use_odbc" | |
2268 | if test "$no_cache" != 1; then | |
2269 | echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp | |
2270 | fi | |
2271 | ||
2272 | if test "$wxUSE_ODBC" = yes; then | |
698dcdb6 | 2273 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2274 | else |
698dcdb6 | 2275 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2276 | fi |
698dcdb6 VZ |
2277 | |
2278 | ||
10f2d63a | 2279 | |
698dcdb6 | 2280 | |
698dcdb6 | 2281 | echo $ac_n "checking for --enable-shared""... $ac_c" 1>&6 |
77e13408 | 2282 | echo "configure:2283: checking for --enable-shared" >&5 |
10f2d63a VZ |
2283 | no_cache=0 |
2284 | # Check whether --enable-shared or --disable-shared was given. | |
2285 | if test "${enable_shared+set}" = set; then | |
2286 | enableval="$enable_shared" | |
698dcdb6 | 2287 | |
10f2d63a VZ |
2288 | if test "$enableval" = yes; then |
2289 | ac_cv_use_shared='wxUSE_SHARED=yes' | |
2290 | else | |
2291 | ac_cv_use_shared='wxUSE_SHARED=no' | |
2292 | fi | |
698dcdb6 | 2293 | |
10f2d63a | 2294 | else |
698dcdb6 | 2295 | |
10f2d63a VZ |
2296 | LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}` |
2297 | if test "x$LINE" != x ; then | |
2298 | eval "DEFAULT_$LINE" | |
2299 | else | |
2300 | no_cache=1 | |
2301 | fi | |
2302 | ||
2303 | ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED | |
698dcdb6 VZ |
2304 | |
2305 | fi | |
10f2d63a VZ |
2306 | |
2307 | ||
2308 | eval "$ac_cv_use_shared" | |
2309 | if test "$no_cache" != 1; then | |
2310 | echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp | |
2311 | fi | |
2312 | ||
2313 | if test "$wxUSE_SHARED" = yes; then | |
698dcdb6 | 2314 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2315 | else |
698dcdb6 | 2316 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2317 | fi |
698dcdb6 | 2318 | |
10f2d63a | 2319 | |
3a922bb4 | 2320 | echo $ac_n "checking for --enable-soname""... $ac_c" 1>&6 |
77e13408 | 2321 | echo "configure:2322: checking for --enable-soname" >&5 |
00cf1208 | 2322 | no_cache=0 |
3a922bb4 RL |
2323 | # Check whether --enable-soname or --disable-soname was given. |
2324 | if test "${enable_soname+set}" = set; then | |
2325 | enableval="$enable_soname" | |
698dcdb6 | 2326 | |
00cf1208 | 2327 | if test "$enableval" = yes; then |
3a922bb4 | 2328 | ac_cv_use_soname='wxUSE_SONAME=yes' |
00cf1208 | 2329 | else |
3a922bb4 | 2330 | ac_cv_use_soname='wxUSE_SONAME=no' |
00cf1208 | 2331 | fi |
698dcdb6 | 2332 | |
00cf1208 | 2333 | else |
698dcdb6 | 2334 | |
3a922bb4 | 2335 | LINE=`grep "wxUSE_SONAME" ${wx_arg_cache_file}` |
00cf1208 RR |
2336 | if test "x$LINE" != x ; then |
2337 | eval "DEFAULT_$LINE" | |
2338 | else | |
2339 | no_cache=1 | |
2340 | fi | |
2341 | ||
3a922bb4 | 2342 | ac_cv_use_soname='wxUSE_SONAME='$DEFAULT_wxUSE_SONAME |
698dcdb6 VZ |
2343 | |
2344 | fi | |
00cf1208 RR |
2345 | |
2346 | ||
3a922bb4 | 2347 | eval "$ac_cv_use_soname" |
00cf1208 | 2348 | if test "$no_cache" != 1; then |
3a922bb4 | 2349 | echo $ac_cv_use_soname >> ${wx_arg_cache_file}.tmp |
00cf1208 RR |
2350 | fi |
2351 | ||
3a922bb4 | 2352 | if test "$wxUSE_SONAME" = yes; then |
698dcdb6 | 2353 | echo "$ac_t""yes" 1>&6 |
00cf1208 | 2354 | else |
698dcdb6 | 2355 | echo "$ac_t""no" 1>&6 |
00cf1208 | 2356 | fi |
698dcdb6 | 2357 | |
00cf1208 | 2358 | |
698dcdb6 | 2359 | echo $ac_n "checking for --enable-optimise""... $ac_c" 1>&6 |
77e13408 | 2360 | echo "configure:2361: checking for --enable-optimise" >&5 |
10f2d63a VZ |
2361 | no_cache=0 |
2362 | # Check whether --enable-optimise or --disable-optimise was given. | |
2363 | if test "${enable_optimise+set}" = set; then | |
2364 | enableval="$enable_optimise" | |
698dcdb6 | 2365 | |
10f2d63a VZ |
2366 | if test "$enableval" = yes; then |
2367 | ac_cv_use_optimise='wxUSE_OPTIMISE=yes' | |
2368 | else | |
2369 | ac_cv_use_optimise='wxUSE_OPTIMISE=no' | |
2370 | fi | |
698dcdb6 | 2371 | |
10f2d63a | 2372 | else |
698dcdb6 | 2373 | |
10f2d63a VZ |
2374 | LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}` |
2375 | if test "x$LINE" != x ; then | |
2376 | eval "DEFAULT_$LINE" | |
2377 | else | |
2378 | no_cache=1 | |
2379 | fi | |
2380 | ||
2381 | ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE | |
698dcdb6 VZ |
2382 | |
2383 | fi | |
10f2d63a VZ |
2384 | |
2385 | ||
2386 | eval "$ac_cv_use_optimise" | |
2387 | if test "$no_cache" != 1; then | |
2388 | echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp | |
2389 | fi | |
2390 | ||
2391 | if test "$wxUSE_OPTIMISE" = yes; then | |
698dcdb6 | 2392 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2393 | else |
698dcdb6 | 2394 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2395 | fi |
698dcdb6 | 2396 | |
10f2d63a | 2397 | |
698dcdb6 | 2398 | echo $ac_n "checking for --enable-debug""... $ac_c" 1>&6 |
77e13408 | 2399 | echo "configure:2400: checking for --enable-debug" >&5 |
10f2d63a VZ |
2400 | no_cache=0 |
2401 | # Check whether --enable-debug or --disable-debug was given. | |
2402 | if test "${enable_debug+set}" = set; then | |
2403 | enableval="$enable_debug" | |
698dcdb6 | 2404 | |
10f2d63a VZ |
2405 | if test "$enableval" = yes; then |
2406 | ac_cv_use_debug='wxUSE_DEBUG=yes' | |
2407 | else | |
2408 | ac_cv_use_debug='wxUSE_DEBUG=no' | |
2409 | fi | |
698dcdb6 | 2410 | |
10f2d63a | 2411 | else |
698dcdb6 | 2412 | |
10f2d63a VZ |
2413 | LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}` |
2414 | if test "x$LINE" != x ; then | |
2415 | eval "DEFAULT_$LINE" | |
2416 | else | |
2417 | no_cache=1 | |
2418 | fi | |
2419 | ||
2420 | ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG | |
698dcdb6 VZ |
2421 | |
2422 | fi | |
10f2d63a VZ |
2423 | |
2424 | ||
2425 | eval "$ac_cv_use_debug" | |
2426 | if test "$no_cache" != 1; then | |
2427 | echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp | |
2428 | fi | |
2429 | ||
2430 | if test "$wxUSE_DEBUG" = yes; then | |
698dcdb6 | 2431 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2432 | else |
698dcdb6 | 2433 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2434 | fi |
698dcdb6 | 2435 | |
10f2d63a | 2436 | |
683dccda GD |
2437 | |
2438 | echo $ac_n "checking for --enable-precomp""... $ac_c" 1>&6 | |
77e13408 | 2439 | echo "configure:2440: checking for --enable-precomp" >&5 |
683dccda GD |
2440 | no_cache=0 |
2441 | # Check whether --enable-precomp or --disable-precomp was given. | |
2442 | if test "${enable_precomp+set}" = set; then | |
2443 | enableval="$enable_precomp" | |
2444 | ||
2445 | if test "$enableval" = yes; then | |
2446 | ac_cv_use_precomp='wxUSE_PRECOMP=yes' | |
2447 | else | |
2448 | ac_cv_use_precomp='wxUSE_PRECOMP=no' | |
2449 | fi | |
2450 | ||
2451 | else | |
2452 | ||
2453 | LINE=`grep "wxUSE_PRECOMP" ${wx_arg_cache_file}` | |
2454 | if test "x$LINE" != x ; then | |
2455 | eval "DEFAULT_$LINE" | |
2456 | else | |
2457 | no_cache=1 | |
2458 | fi | |
2459 | ||
2460 | ac_cv_use_precomp='wxUSE_PRECOMP='$DEFAULT_wxUSE_PRECOMP | |
2461 | ||
2462 | fi | |
2463 | ||
2464 | ||
2465 | eval "$ac_cv_use_precomp" | |
2466 | if test "$no_cache" != 1; then | |
2467 | echo $ac_cv_use_precomp >> ${wx_arg_cache_file}.tmp | |
2468 | fi | |
2469 | ||
2470 | if test "$wxUSE_PRECOMP" = yes; then | |
2471 | echo "$ac_t""yes" 1>&6 | |
2472 | else | |
2473 | echo "$ac_t""no" 1>&6 | |
2474 | fi | |
2475 | ||
2476 | ||
10f2d63a VZ |
2477 | if test "$wxUSE_DEBUG" = "yes"; then |
2478 | DEFAULT_wxUSE_DEBUG_FLAG=yes | |
2479 | DEFAULT_wxUSE_DEBUG_INFO=yes | |
2480 | elif test "$wxUSE_DEBUG" = "no"; then | |
2481 | DEFAULT_wxUSE_DEBUG_FLAG=no | |
2482 | DEFAULT_wxUSE_DEBUG_INFO=no | |
2483 | fi | |
2484 | ||
698dcdb6 VZ |
2485 | |
2486 | echo $ac_n "checking for --enable-debug_flag""... $ac_c" 1>&6 | |
77e13408 | 2487 | echo "configure:2488: checking for --enable-debug_flag" >&5 |
10f2d63a VZ |
2488 | no_cache=0 |
2489 | # Check whether --enable-debug_flag or --disable-debug_flag was given. | |
2490 | if test "${enable_debug_flag+set}" = set; then | |
2491 | enableval="$enable_debug_flag" | |
698dcdb6 | 2492 | |
10f2d63a VZ |
2493 | if test "$enableval" = yes; then |
2494 | ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes' | |
2495 | else | |
2496 | ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no' | |
2497 | fi | |
698dcdb6 | 2498 | |
10f2d63a | 2499 | else |
698dcdb6 | 2500 | |
10f2d63a VZ |
2501 | LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}` |
2502 | if test "x$LINE" != x ; then | |
2503 | eval "DEFAULT_$LINE" | |
2504 | else | |
2505 | no_cache=1 | |
2506 | fi | |
2507 | ||
2508 | ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG | |
698dcdb6 VZ |
2509 | |
2510 | fi | |
10f2d63a VZ |
2511 | |
2512 | ||
2513 | eval "$ac_cv_use_debug_flag" | |
2514 | if test "$no_cache" != 1; then | |
2515 | echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp | |
2516 | fi | |
2517 | ||
2518 | if test "$wxUSE_DEBUG_FLAG" = yes; then | |
698dcdb6 | 2519 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2520 | else |
698dcdb6 | 2521 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2522 | fi |
698dcdb6 | 2523 | |
10f2d63a | 2524 | |
698dcdb6 | 2525 | echo $ac_n "checking for --enable-debug_info""... $ac_c" 1>&6 |
77e13408 | 2526 | echo "configure:2527: checking for --enable-debug_info" >&5 |
10f2d63a VZ |
2527 | no_cache=0 |
2528 | # Check whether --enable-debug_info or --disable-debug_info was given. | |
2529 | if test "${enable_debug_info+set}" = set; then | |
2530 | enableval="$enable_debug_info" | |
698dcdb6 | 2531 | |
10f2d63a VZ |
2532 | if test "$enableval" = yes; then |
2533 | ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes' | |
2534 | else | |
2535 | ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no' | |
2536 | fi | |
698dcdb6 | 2537 | |
10f2d63a | 2538 | else |
698dcdb6 | 2539 | |
10f2d63a VZ |
2540 | LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}` |
2541 | if test "x$LINE" != x ; then | |
2542 | eval "DEFAULT_$LINE" | |
2543 | else | |
2544 | no_cache=1 | |
2545 | fi | |
2546 | ||
2547 | ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO | |
698dcdb6 VZ |
2548 | |
2549 | fi | |
10f2d63a VZ |
2550 | |
2551 | ||
2552 | eval "$ac_cv_use_debug_info" | |
2553 | if test "$no_cache" != 1; then | |
2554 | echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp | |
2555 | fi | |
2556 | ||
2557 | if test "$wxUSE_DEBUG_INFO" = yes; then | |
698dcdb6 | 2558 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2559 | else |
698dcdb6 | 2560 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2561 | fi |
698dcdb6 | 2562 | |
10f2d63a | 2563 | |
698dcdb6 | 2564 | echo $ac_n "checking for --enable-debug_gdb""... $ac_c" 1>&6 |
77e13408 | 2565 | echo "configure:2566: checking for --enable-debug_gdb" >&5 |
10f2d63a VZ |
2566 | no_cache=0 |
2567 | # Check whether --enable-debug_gdb or --disable-debug_gdb was given. | |
2568 | if test "${enable_debug_gdb+set}" = set; then | |
2569 | enableval="$enable_debug_gdb" | |
698dcdb6 | 2570 | |
10f2d63a VZ |
2571 | if test "$enableval" = yes; then |
2572 | ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes' | |
2573 | else | |
2574 | ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no' | |
2575 | fi | |
698dcdb6 | 2576 | |
10f2d63a | 2577 | else |
698dcdb6 | 2578 | |
10f2d63a VZ |
2579 | LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}` |
2580 | if test "x$LINE" != x ; then | |
2581 | eval "DEFAULT_$LINE" | |
2582 | else | |
2583 | no_cache=1 | |
2584 | fi | |
2585 | ||
2586 | ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB | |
698dcdb6 VZ |
2587 | |
2588 | fi | |
10f2d63a VZ |
2589 | |
2590 | ||
2591 | eval "$ac_cv_use_debug_gdb" | |
2592 | if test "$no_cache" != 1; then | |
2593 | echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp | |
2594 | fi | |
2595 | ||
2596 | if test "$wxUSE_DEBUG_GDB" = yes; then | |
698dcdb6 | 2597 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2598 | else |
698dcdb6 | 2599 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2600 | fi |
698dcdb6 | 2601 | |
10f2d63a | 2602 | |
698dcdb6 | 2603 | echo $ac_n "checking for --enable-debug_cntxt""... $ac_c" 1>&6 |
77e13408 | 2604 | echo "configure:2605: checking for --enable-debug_cntxt" >&5 |
10f2d63a VZ |
2605 | no_cache=0 |
2606 | # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given. | |
2607 | if test "${enable_debug_cntxt+set}" = set; then | |
2608 | enableval="$enable_debug_cntxt" | |
698dcdb6 | 2609 | |
10f2d63a VZ |
2610 | if test "$enableval" = yes; then |
2611 | ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes' | |
2612 | else | |
2613 | ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no' | |
2614 | fi | |
698dcdb6 | 2615 | |
10f2d63a | 2616 | else |
698dcdb6 | 2617 | |
10f2d63a VZ |
2618 | LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}` |
2619 | if test "x$LINE" != x ; then | |
2620 | eval "DEFAULT_$LINE" | |
2621 | else | |
2622 | no_cache=1 | |
2623 | fi | |
2624 | ||
2625 | ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT | |
698dcdb6 VZ |
2626 | |
2627 | fi | |
10f2d63a VZ |
2628 | |
2629 | ||
2630 | eval "$ac_cv_use_debug_cntxt" | |
2631 | if test "$no_cache" != 1; then | |
2632 | echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp | |
2633 | fi | |
2634 | ||
2635 | if test "$wxUSE_DEBUG_CONTEXT" = yes; then | |
698dcdb6 | 2636 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2637 | else |
698dcdb6 | 2638 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2639 | fi |
698dcdb6 | 2640 | |
10f2d63a | 2641 | |
698dcdb6 | 2642 | echo $ac_n "checking for --enable-mem_tracing""... $ac_c" 1>&6 |
77e13408 | 2643 | echo "configure:2644: checking for --enable-mem_tracing" >&5 |
10f2d63a VZ |
2644 | no_cache=0 |
2645 | # Check whether --enable-mem_tracing or --disable-mem_tracing was given. | |
2646 | if test "${enable_mem_tracing+set}" = set; then | |
2647 | enableval="$enable_mem_tracing" | |
698dcdb6 | 2648 | |
10f2d63a VZ |
2649 | if test "$enableval" = yes; then |
2650 | ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes' | |
2651 | else | |
2652 | ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no' | |
2653 | fi | |
698dcdb6 | 2654 | |
10f2d63a | 2655 | else |
698dcdb6 | 2656 | |
10f2d63a VZ |
2657 | LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}` |
2658 | if test "x$LINE" != x ; then | |
2659 | eval "DEFAULT_$LINE" | |
2660 | else | |
2661 | no_cache=1 | |
2662 | fi | |
2663 | ||
2664 | ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING | |
698dcdb6 VZ |
2665 | |
2666 | fi | |
10f2d63a VZ |
2667 | |
2668 | ||
2669 | eval "$ac_cv_use_mem_tracing" | |
2670 | if test "$no_cache" != 1; then | |
2671 | echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp | |
2672 | fi | |
2673 | ||
2674 | if test "$wxUSE_MEM_TRACING" = yes; then | |
698dcdb6 | 2675 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2676 | else |
698dcdb6 | 2677 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2678 | fi |
698dcdb6 | 2679 | |
10f2d63a | 2680 | |
698dcdb6 | 2681 | echo $ac_n "checking for --enable-profile""... $ac_c" 1>&6 |
77e13408 | 2682 | echo "configure:2683: checking for --enable-profile" >&5 |
10f2d63a VZ |
2683 | no_cache=0 |
2684 | # Check whether --enable-profile or --disable-profile was given. | |
2685 | if test "${enable_profile+set}" = set; then | |
2686 | enableval="$enable_profile" | |
698dcdb6 | 2687 | |
10f2d63a VZ |
2688 | if test "$enableval" = yes; then |
2689 | ac_cv_use_profile='wxUSE_PROFILE=yes' | |
2690 | else | |
2691 | ac_cv_use_profile='wxUSE_PROFILE=no' | |
2692 | fi | |
698dcdb6 | 2693 | |
10f2d63a | 2694 | else |
698dcdb6 | 2695 | |
10f2d63a VZ |
2696 | LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}` |
2697 | if test "x$LINE" != x ; then | |
2698 | eval "DEFAULT_$LINE" | |
2699 | else | |
2700 | no_cache=1 | |
2701 | fi | |
2702 | ||
2703 | ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE | |
698dcdb6 VZ |
2704 | |
2705 | fi | |
10f2d63a VZ |
2706 | |
2707 | ||
2708 | eval "$ac_cv_use_profile" | |
2709 | if test "$no_cache" != 1; then | |
2710 | echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp | |
2711 | fi | |
2712 | ||
2713 | if test "$wxUSE_PROFILE" = yes; then | |
698dcdb6 | 2714 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2715 | else |
698dcdb6 | 2716 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2717 | fi |
698dcdb6 | 2718 | |
10f2d63a | 2719 | |
698dcdb6 | 2720 | echo $ac_n "checking for --enable-no_rtti""... $ac_c" 1>&6 |
77e13408 | 2721 | echo "configure:2722: checking for --enable-no_rtti" >&5 |
10f2d63a VZ |
2722 | no_cache=0 |
2723 | # Check whether --enable-no_rtti or --disable-no_rtti was given. | |
2724 | if test "${enable_no_rtti+set}" = set; then | |
2725 | enableval="$enable_no_rtti" | |
698dcdb6 | 2726 | |
10f2d63a VZ |
2727 | if test "$enableval" = yes; then |
2728 | ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes' | |
2729 | else | |
2730 | ac_cv_use_no_rtti='wxUSE_NO_RTTI=no' | |
2731 | fi | |
698dcdb6 | 2732 | |
10f2d63a | 2733 | else |
698dcdb6 | 2734 | |
10f2d63a VZ |
2735 | LINE=`grep "wxUSE_NO_RTTI" ${wx_arg_cache_file}` |
2736 | if test "x$LINE" != x ; then | |
2737 | eval "DEFAULT_$LINE" | |
2738 | else | |
2739 | no_cache=1 | |
2740 | fi | |
2741 | ||
2742 | ac_cv_use_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI | |
698dcdb6 VZ |
2743 | |
2744 | fi | |
10f2d63a VZ |
2745 | |
2746 | ||
2747 | eval "$ac_cv_use_no_rtti" | |
2748 | if test "$no_cache" != 1; then | |
2749 | echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp | |
2750 | fi | |
2751 | ||
2752 | if test "$wxUSE_NO_RTTI" = yes; then | |
698dcdb6 | 2753 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2754 | else |
698dcdb6 | 2755 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2756 | fi |
698dcdb6 | 2757 | |
10f2d63a | 2758 | |
698dcdb6 | 2759 | echo $ac_n "checking for --enable-no_exceptions""... $ac_c" 1>&6 |
77e13408 | 2760 | echo "configure:2761: checking for --enable-no_exceptions" >&5 |
10f2d63a VZ |
2761 | no_cache=0 |
2762 | # Check whether --enable-no_exceptions or --disable-no_exceptions was given. | |
2763 | if test "${enable_no_exceptions+set}" = set; then | |
2764 | enableval="$enable_no_exceptions" | |
698dcdb6 | 2765 | |
10f2d63a VZ |
2766 | if test "$enableval" = yes; then |
2767 | ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes' | |
2768 | else | |
2769 | ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no' | |
2770 | fi | |
698dcdb6 | 2771 | |
10f2d63a | 2772 | else |
698dcdb6 | 2773 | |
10f2d63a VZ |
2774 | LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}` |
2775 | if test "x$LINE" != x ; then | |
2776 | eval "DEFAULT_$LINE" | |
2777 | else | |
2778 | no_cache=1 | |
2779 | fi | |
2780 | ||
2781 | ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS | |
698dcdb6 VZ |
2782 | |
2783 | fi | |
10f2d63a VZ |
2784 | |
2785 | ||
2786 | eval "$ac_cv_use_no_exceptions" | |
2787 | if test "$no_cache" != 1; then | |
2788 | echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp | |
2789 | fi | |
2790 | ||
2791 | if test "$wxUSE_NO_EXCEPTIONS" = yes; then | |
698dcdb6 | 2792 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2793 | else |
698dcdb6 | 2794 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2795 | fi |
698dcdb6 | 2796 | |
10f2d63a | 2797 | |
698dcdb6 | 2798 | echo $ac_n "checking for --enable-permissive""... $ac_c" 1>&6 |
77e13408 | 2799 | echo "configure:2800: checking for --enable-permissive" >&5 |
10f2d63a VZ |
2800 | no_cache=0 |
2801 | # Check whether --enable-permissive or --disable-permissive was given. | |
2802 | if test "${enable_permissive+set}" = set; then | |
2803 | enableval="$enable_permissive" | |
698dcdb6 | 2804 | |
10f2d63a VZ |
2805 | if test "$enableval" = yes; then |
2806 | ac_cv_use_permissive='wxUSE_PERMISSIVE=yes' | |
2807 | else | |
2808 | ac_cv_use_permissive='wxUSE_PERMISSIVE=no' | |
2809 | fi | |
698dcdb6 | 2810 | |
10f2d63a | 2811 | else |
698dcdb6 | 2812 | |
10f2d63a VZ |
2813 | LINE=`grep "wxUSE_PERMISSIVE" ${wx_arg_cache_file}` |
2814 | if test "x$LINE" != x ; then | |
2815 | eval "DEFAULT_$LINE" | |
2816 | else | |
2817 | no_cache=1 | |
2818 | fi | |
2819 | ||
2820 | ac_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE | |
698dcdb6 VZ |
2821 | |
2822 | fi | |
10f2d63a VZ |
2823 | |
2824 | ||
2825 | eval "$ac_cv_use_permissive" | |
2826 | if test "$no_cache" != 1; then | |
2827 | echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp | |
2828 | fi | |
2829 | ||
2830 | if test "$wxUSE_PERMISSIVE" = yes; then | |
698dcdb6 | 2831 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2832 | else |
698dcdb6 | 2833 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2834 | fi |
698dcdb6 | 2835 | |
10f2d63a | 2836 | |
698dcdb6 | 2837 | echo $ac_n "checking for --enable-no_deps""... $ac_c" 1>&6 |
77e13408 | 2838 | echo "configure:2839: checking for --enable-no_deps" >&5 |
10f2d63a VZ |
2839 | no_cache=0 |
2840 | # Check whether --enable-no_deps or --disable-no_deps was given. | |
2841 | if test "${enable_no_deps+set}" = set; then | |
2842 | enableval="$enable_no_deps" | |
698dcdb6 | 2843 | |
10f2d63a VZ |
2844 | if test "$enableval" = yes; then |
2845 | ac_cv_use_no_deps='wxUSE_NO_DEPS=yes' | |
2846 | else | |
2847 | ac_cv_use_no_deps='wxUSE_NO_DEPS=no' | |
2848 | fi | |
698dcdb6 | 2849 | |
10f2d63a | 2850 | else |
698dcdb6 | 2851 | |
10f2d63a VZ |
2852 | LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}` |
2853 | if test "x$LINE" != x ; then | |
2854 | eval "DEFAULT_$LINE" | |
2855 | else | |
2856 | no_cache=1 | |
2857 | fi | |
2858 | ||
2859 | ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS | |
698dcdb6 VZ |
2860 | |
2861 | fi | |
10f2d63a VZ |
2862 | |
2863 | ||
2864 | eval "$ac_cv_use_no_deps" | |
2865 | if test "$no_cache" != 1; then | |
2866 | echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp | |
2867 | fi | |
2868 | ||
2869 | if test "$wxUSE_NO_DEPS" = yes; then | |
698dcdb6 | 2870 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2871 | else |
698dcdb6 | 2872 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2873 | fi |
698dcdb6 VZ |
2874 | |
2875 | ||
10f2d63a | 2876 | |
54276ccf | 2877 | echo $ac_n "checking for --enable-compat20""... $ac_c" 1>&6 |
77e13408 | 2878 | echo "configure:2879: checking for --enable-compat20" >&5 |
54276ccf VZ |
2879 | no_cache=0 |
2880 | # Check whether --enable-compat20 or --disable-compat20 was given. | |
2881 | if test "${enable_compat20+set}" = set; then | |
2882 | enableval="$enable_compat20" | |
2883 | ||
2884 | if test "$enableval" = yes; then | |
2885 | ac_cv_use_compat20='WXWIN_COMPATIBILITY_2=yes' | |
2886 | else | |
2887 | ac_cv_use_compat20='WXWIN_COMPATIBILITY_2=no' | |
2888 | fi | |
2889 | ||
2890 | else | |
2891 | ||
2892 | LINE=`grep "WXWIN_COMPATIBILITY_2" ${wx_arg_cache_file}` | |
2893 | if test "x$LINE" != x ; then | |
2894 | eval "DEFAULT_$LINE" | |
2895 | else | |
2896 | no_cache=1 | |
2897 | fi | |
2898 | ||
2899 | ac_cv_use_compat20='WXWIN_COMPATIBILITY_2='$DEFAULT_WXWIN_COMPATIBILITY_2 | |
2900 | ||
2901 | fi | |
2902 | ||
2903 | ||
2904 | eval "$ac_cv_use_compat20" | |
2905 | if test "$no_cache" != 1; then | |
2906 | echo $ac_cv_use_compat20 >> ${wx_arg_cache_file}.tmp | |
2907 | fi | |
2908 | ||
2909 | if test "$WXWIN_COMPATIBILITY_2" = yes; then | |
2910 | echo "$ac_t""yes" 1>&6 | |
2911 | else | |
2912 | echo "$ac_t""no" 1>&6 | |
2913 | fi | |
2914 | ||
2915 | ||
2916 | echo $ac_n "checking for --enable-compat22""... $ac_c" 1>&6 | |
77e13408 | 2917 | echo "configure:2918: checking for --enable-compat22" >&5 |
54276ccf VZ |
2918 | no_cache=0 |
2919 | # Check whether --enable-compat22 or --disable-compat22 was given. | |
2920 | if test "${enable_compat22+set}" = set; then | |
2921 | enableval="$enable_compat22" | |
2922 | ||
2923 | if test "$enableval" = yes; then | |
2924 | ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=yes' | |
2925 | else | |
2926 | ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=no' | |
2927 | fi | |
2928 | ||
2929 | else | |
2930 | ||
2931 | LINE=`grep "WXWIN_COMPATIBILITY_2_2" ${wx_arg_cache_file}` | |
2932 | if test "x$LINE" != x ; then | |
2933 | eval "DEFAULT_$LINE" | |
2934 | else | |
2935 | no_cache=1 | |
2936 | fi | |
2937 | ||
2938 | ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2='$DEFAULT_WXWIN_COMPATIBILITY_2_2 | |
2939 | ||
2940 | fi | |
2941 | ||
2942 | ||
2943 | eval "$ac_cv_use_compat22" | |
2944 | if test "$no_cache" != 1; then | |
2945 | echo $ac_cv_use_compat22 >> ${wx_arg_cache_file}.tmp | |
2946 | fi | |
2947 | ||
2948 | if test "$WXWIN_COMPATIBILITY_2_2" = yes; then | |
2949 | echo "$ac_t""yes" 1>&6 | |
2950 | else | |
2951 | echo "$ac_t""no" 1>&6 | |
2952 | fi | |
2953 | ||
2954 | ||
2955 | ||
698dcdb6 VZ |
2956 | |
2957 | echo $ac_n "checking for --enable-intl""... $ac_c" 1>&6 | |
77e13408 | 2958 | echo "configure:2959: checking for --enable-intl" >&5 |
10f2d63a VZ |
2959 | no_cache=0 |
2960 | # Check whether --enable-intl or --disable-intl was given. | |
2961 | if test "${enable_intl+set}" = set; then | |
2962 | enableval="$enable_intl" | |
698dcdb6 | 2963 | |
10f2d63a VZ |
2964 | if test "$enableval" = yes; then |
2965 | ac_cv_use_intl='wxUSE_INTL=yes' | |
2966 | else | |
2967 | ac_cv_use_intl='wxUSE_INTL=no' | |
2968 | fi | |
698dcdb6 | 2969 | |
10f2d63a | 2970 | else |
698dcdb6 | 2971 | |
10f2d63a VZ |
2972 | LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}` |
2973 | if test "x$LINE" != x ; then | |
2974 | eval "DEFAULT_$LINE" | |
2975 | else | |
2976 | no_cache=1 | |
2977 | fi | |
2978 | ||
2979 | ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL | |
698dcdb6 VZ |
2980 | |
2981 | fi | |
10f2d63a VZ |
2982 | |
2983 | ||
2984 | eval "$ac_cv_use_intl" | |
2985 | if test "$no_cache" != 1; then | |
2986 | echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp | |
2987 | fi | |
2988 | ||
2989 | if test "$wxUSE_INTL" = yes; then | |
698dcdb6 | 2990 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2991 | else |
698dcdb6 | 2992 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2993 | fi |
698dcdb6 | 2994 | |
10f2d63a | 2995 | |
698dcdb6 | 2996 | echo $ac_n "checking for --enable-config""... $ac_c" 1>&6 |
77e13408 | 2997 | echo "configure:2998: checking for --enable-config" >&5 |
10f2d63a VZ |
2998 | no_cache=0 |
2999 | # Check whether --enable-config or --disable-config was given. | |
3000 | if test "${enable_config+set}" = set; then | |
3001 | enableval="$enable_config" | |
698dcdb6 | 3002 | |
10f2d63a VZ |
3003 | if test "$enableval" = yes; then |
3004 | ac_cv_use_config='wxUSE_CONFIG=yes' | |
3005 | else | |
3006 | ac_cv_use_config='wxUSE_CONFIG=no' | |
3007 | fi | |
698dcdb6 | 3008 | |
10f2d63a | 3009 | else |
698dcdb6 | 3010 | |
10f2d63a VZ |
3011 | LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}` |
3012 | if test "x$LINE" != x ; then | |
3013 | eval "DEFAULT_$LINE" | |
3014 | else | |
3015 | no_cache=1 | |
3016 | fi | |
3017 | ||
3018 | ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG | |
698dcdb6 VZ |
3019 | |
3020 | fi | |
10f2d63a VZ |
3021 | |
3022 | ||
3023 | eval "$ac_cv_use_config" | |
3024 | if test "$no_cache" != 1; then | |
3025 | echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp | |
3026 | fi | |
3027 | ||
3028 | if test "$wxUSE_CONFIG" = yes; then | |
698dcdb6 | 3029 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3030 | else |
698dcdb6 | 3031 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3032 | fi |
698dcdb6 VZ |
3033 | |
3034 | ||
b12915c1 | 3035 | |
698dcdb6 | 3036 | echo $ac_n "checking for --enable-sockets""... $ac_c" 1>&6 |
77e13408 | 3037 | echo "configure:3038: checking for --enable-sockets" >&5 |
10f2d63a VZ |
3038 | no_cache=0 |
3039 | # Check whether --enable-sockets or --disable-sockets was given. | |
3040 | if test "${enable_sockets+set}" = set; then | |
3041 | enableval="$enable_sockets" | |
698dcdb6 | 3042 | |
10f2d63a VZ |
3043 | if test "$enableval" = yes; then |
3044 | ac_cv_use_sockets='wxUSE_SOCKETS=yes' | |
3045 | else | |
3046 | ac_cv_use_sockets='wxUSE_SOCKETS=no' | |
3047 | fi | |
698dcdb6 | 3048 | |
10f2d63a | 3049 | else |
698dcdb6 | 3050 | |
10f2d63a VZ |
3051 | LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}` |
3052 | if test "x$LINE" != x ; then | |
3053 | eval "DEFAULT_$LINE" | |
3054 | else | |
3055 | no_cache=1 | |
3056 | fi | |
3057 | ||
3058 | ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS | |
698dcdb6 VZ |
3059 | |
3060 | fi | |
10f2d63a VZ |
3061 | |
3062 | ||
3063 | eval "$ac_cv_use_sockets" | |
3064 | if test "$no_cache" != 1; then | |
3065 | echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp | |
3066 | fi | |
3067 | ||
3068 | if test "$wxUSE_SOCKETS" = yes; then | |
698dcdb6 | 3069 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3070 | else |
698dcdb6 | 3071 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3072 | fi |
698dcdb6 | 3073 | |
b12915c1 | 3074 | |
698dcdb6 VZ |
3075 | |
3076 | echo $ac_n "checking for --enable-ipc""... $ac_c" 1>&6 | |
77e13408 | 3077 | echo "configure:3078: checking for --enable-ipc" >&5 |
10f2d63a | 3078 | no_cache=0 |
eb4efbdc VZ |
3079 | # Check whether --enable-ipc or --disable-ipc was given. |
3080 | if test "${enable_ipc+set}" = set; then | |
3081 | enableval="$enable_ipc" | |
698dcdb6 | 3082 | |
10f2d63a | 3083 | if test "$enableval" = yes; then |
eb4efbdc | 3084 | ac_cv_use_ipc='wxUSE_IPC=yes' |
10f2d63a | 3085 | else |
eb4efbdc | 3086 | ac_cv_use_ipc='wxUSE_IPC=no' |
10f2d63a | 3087 | fi |
698dcdb6 | 3088 | |
10f2d63a | 3089 | else |
698dcdb6 | 3090 | |
eb4efbdc | 3091 | LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}` |
10f2d63a VZ |
3092 | if test "x$LINE" != x ; then |
3093 | eval "DEFAULT_$LINE" | |
3094 | else | |
3095 | no_cache=1 | |
3096 | fi | |
3097 | ||
eb4efbdc | 3098 | ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC |
698dcdb6 VZ |
3099 | |
3100 | fi | |
10f2d63a VZ |
3101 | |
3102 | ||
eb4efbdc | 3103 | eval "$ac_cv_use_ipc" |
10f2d63a | 3104 | if test "$no_cache" != 1; then |
eb4efbdc | 3105 | echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
3106 | fi |
3107 | ||
eb4efbdc | 3108 | if test "$wxUSE_IPC" = yes; then |
698dcdb6 | 3109 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3110 | else |
698dcdb6 | 3111 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3112 | fi |
698dcdb6 VZ |
3113 | |
3114 | ||
eb4efbdc | 3115 | |
1e6feb95 | 3116 | echo $ac_n "checking for --enable-cmdline""... $ac_c" 1>&6 |
77e13408 | 3117 | echo "configure:3118: checking for --enable-cmdline" >&5 |
1e6feb95 VZ |
3118 | no_cache=0 |
3119 | # Check whether --enable-cmdline or --disable-cmdline was given. | |
3120 | if test "${enable_cmdline+set}" = set; then | |
3121 | enableval="$enable_cmdline" | |
3122 | ||
3123 | if test "$enableval" = yes; then | |
3124 | ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=yes' | |
3125 | else | |
3126 | ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=no' | |
3127 | fi | |
3128 | ||
3129 | else | |
3130 | ||
3131 | LINE=`grep "wxUSE_CMDLINE_PARSER" ${wx_arg_cache_file}` | |
3132 | if test "x$LINE" != x ; then | |
3133 | eval "DEFAULT_$LINE" | |
3134 | else | |
3135 | no_cache=1 | |
3136 | fi | |
3137 | ||
3138 | ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER='$DEFAULT_wxUSE_CMDLINE_PARSER | |
3139 | ||
3140 | fi | |
3141 | ||
3142 | ||
3143 | eval "$ac_cv_use_cmdline" | |
3144 | if test "$no_cache" != 1; then | |
3145 | echo $ac_cv_use_cmdline >> ${wx_arg_cache_file}.tmp | |
3146 | fi | |
3147 | ||
3148 | if test "$wxUSE_CMDLINE_PARSER" = yes; then | |
3149 | echo "$ac_t""yes" 1>&6 | |
3150 | else | |
3151 | echo "$ac_t""no" 1>&6 | |
3152 | fi | |
3153 | ||
3154 | ||
3155 | echo $ac_n "checking for --enable-datetime""... $ac_c" 1>&6 | |
77e13408 | 3156 | echo "configure:3157: checking for --enable-datetime" >&5 |
1e6feb95 VZ |
3157 | no_cache=0 |
3158 | # Check whether --enable-datetime or --disable-datetime was given. | |
3159 | if test "${enable_datetime+set}" = set; then | |
3160 | enableval="$enable_datetime" | |
3161 | ||
3162 | if test "$enableval" = yes; then | |
3163 | ac_cv_use_datetime='wxUSE_DATETIME=yes' | |
3164 | else | |
3165 | ac_cv_use_datetime='wxUSE_DATETIME=no' | |
3166 | fi | |
3167 | ||
3168 | else | |
3169 | ||
3170 | LINE=`grep "wxUSE_DATETIME" ${wx_arg_cache_file}` | |
3171 | if test "x$LINE" != x ; then | |
3172 | eval "DEFAULT_$LINE" | |
3173 | else | |
3174 | no_cache=1 | |
3175 | fi | |
3176 | ||
3177 | ac_cv_use_datetime='wxUSE_DATETIME='$DEFAULT_wxUSE_DATETIME | |
3178 | ||
3179 | fi | |
3180 | ||
3181 | ||
3182 | eval "$ac_cv_use_datetime" | |
3183 | if test "$no_cache" != 1; then | |
3184 | echo $ac_cv_use_datetime >> ${wx_arg_cache_file}.tmp | |
3185 | fi | |
3186 | ||
3187 | if test "$wxUSE_DATETIME" = yes; then | |
3188 | echo "$ac_t""yes" 1>&6 | |
3189 | else | |
3190 | echo "$ac_t""no" 1>&6 | |
3191 | fi | |
3192 | ||
3193 | ||
3194 | echo $ac_n "checking for --enable-timedate""... $ac_c" 1>&6 | |
77e13408 | 3195 | echo "configure:3196: checking for --enable-timedate" >&5 |
1e6feb95 VZ |
3196 | no_cache=0 |
3197 | # Check whether --enable-timedate or --disable-timedate was given. | |
3198 | if test "${enable_timedate+set}" = set; then | |
3199 | enableval="$enable_timedate" | |
3200 | ||
3201 | if test "$enableval" = yes; then | |
3202 | ac_cv_use_timedate='wxUSE_TIMEDATE=yes' | |
3203 | else | |
3204 | ac_cv_use_timedate='wxUSE_TIMEDATE=no' | |
3205 | fi | |
3206 | ||
3207 | else | |
3208 | ||
3209 | LINE=`grep "wxUSE_TIMEDATE" ${wx_arg_cache_file}` | |
3210 | if test "x$LINE" != x ; then | |
3211 | eval "DEFAULT_$LINE" | |
3212 | else | |
3213 | no_cache=1 | |
3214 | fi | |
3215 | ||
3216 | ac_cv_use_timedate='wxUSE_TIMEDATE='$DEFAULT_wxUSE_TIMEDATE | |
3217 | ||
3218 | fi | |
3219 | ||
3220 | ||
3221 | eval "$ac_cv_use_timedate" | |
3222 | if test "$no_cache" != 1; then | |
3223 | echo $ac_cv_use_timedate >> ${wx_arg_cache_file}.tmp | |
3224 | fi | |
3225 | ||
3226 | if test "$wxUSE_TIMEDATE" = yes; then | |
3227 | echo "$ac_t""yes" 1>&6 | |
3228 | else | |
3229 | echo "$ac_t""no" 1>&6 | |
3230 | fi | |
3231 | ||
3232 | ||
3233 | echo $ac_n "checking for --enable-stopwatch""... $ac_c" 1>&6 | |
77e13408 | 3234 | echo "configure:3235: checking for --enable-stopwatch" >&5 |
1e6feb95 VZ |
3235 | no_cache=0 |
3236 | # Check whether --enable-stopwatch or --disable-stopwatch was given. | |
3237 | if test "${enable_stopwatch+set}" = set; then | |
3238 | enableval="$enable_stopwatch" | |
3239 | ||
3240 | if test "$enableval" = yes; then | |
3241 | ac_cv_use_stopwatch='wxUSE_STOPWATCH=yes' | |
3242 | else | |
3243 | ac_cv_use_stopwatch='wxUSE_STOPWATCH=no' | |
3244 | fi | |
3245 | ||
3246 | else | |
3247 | ||
3248 | LINE=`grep "wxUSE_STOPWATCH" ${wx_arg_cache_file}` | |
3249 | if test "x$LINE" != x ; then | |
3250 | eval "DEFAULT_$LINE" | |
3251 | else | |
3252 | no_cache=1 | |
3253 | fi | |
3254 | ||
3255 | ac_cv_use_stopwatch='wxUSE_STOPWATCH='$DEFAULT_wxUSE_STOPWATCH | |
3256 | ||
3257 | fi | |
3258 | ||
3259 | ||
3260 | eval "$ac_cv_use_stopwatch" | |
3261 | if test "$no_cache" != 1; then | |
3262 | echo $ac_cv_use_stopwatch >> ${wx_arg_cache_file}.tmp | |
3263 | fi | |
3264 | ||
3265 | if test "$wxUSE_STOPWATCH" = yes; then | |
3266 | echo "$ac_t""yes" 1>&6 | |
3267 | else | |
3268 | echo "$ac_t""no" 1>&6 | |
3269 | fi | |
3270 | ||
3271 | ||
698dcdb6 | 3272 | echo $ac_n "checking for --enable-dialupman""... $ac_c" 1>&6 |
77e13408 | 3273 | echo "configure:3274: checking for --enable-dialupman" >&5 |
10f2d63a | 3274 | no_cache=0 |
eb4efbdc VZ |
3275 | # Check whether --enable-dialupman or --disable-dialupman was given. |
3276 | if test "${enable_dialupman+set}" = set; then | |
3277 | enableval="$enable_dialupman" | |
698dcdb6 | 3278 | |
10f2d63a | 3279 | if test "$enableval" = yes; then |
eb4efbdc | 3280 | ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes' |
10f2d63a | 3281 | else |
eb4efbdc | 3282 | ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no' |
10f2d63a | 3283 | fi |
698dcdb6 | 3284 | |
10f2d63a | 3285 | else |
698dcdb6 | 3286 | |
eb4efbdc | 3287 | LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}` |
10f2d63a VZ |
3288 | if test "x$LINE" != x ; then |
3289 | eval "DEFAULT_$LINE" | |
3290 | else | |
3291 | no_cache=1 | |
3292 | fi | |
3293 | ||
eb4efbdc | 3294 | ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER |
698dcdb6 VZ |
3295 | |
3296 | fi | |
10f2d63a VZ |
3297 | |
3298 | ||
eb4efbdc | 3299 | eval "$ac_cv_use_dialupman" |
10f2d63a | 3300 | if test "$no_cache" != 1; then |
eb4efbdc | 3301 | echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
3302 | fi |
3303 | ||
eb4efbdc | 3304 | if test "$wxUSE_DIALUP_MANAGER" = yes; then |
698dcdb6 | 3305 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3306 | else |
698dcdb6 | 3307 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3308 | fi |
698dcdb6 | 3309 | |
10f2d63a | 3310 | |
698dcdb6 | 3311 | echo $ac_n "checking for --enable-apple_ieee""... $ac_c" 1>&6 |
77e13408 | 3312 | echo "configure:3313: checking for --enable-apple_ieee" >&5 |
10f2d63a VZ |
3313 | no_cache=0 |
3314 | # Check whether --enable-apple_ieee or --disable-apple_ieee was given. | |
3315 | if test "${enable_apple_ieee+set}" = set; then | |
3316 | enableval="$enable_apple_ieee" | |
698dcdb6 | 3317 | |
10f2d63a VZ |
3318 | if test "$enableval" = yes; then |
3319 | ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes' | |
3320 | else | |
3321 | ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no' | |
3322 | fi | |
698dcdb6 | 3323 | |
10f2d63a | 3324 | else |
698dcdb6 | 3325 | |
10f2d63a VZ |
3326 | LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}` |
3327 | if test "x$LINE" != x ; then | |
3328 | eval "DEFAULT_$LINE" | |
3329 | else | |
3330 | no_cache=1 | |
3331 | fi | |
3332 | ||
3333 | ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE | |
698dcdb6 VZ |
3334 | |
3335 | fi | |
10f2d63a VZ |
3336 | |
3337 | ||
3338 | eval "$ac_cv_use_apple_ieee" | |
3339 | if test "$no_cache" != 1; then | |
3340 | echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp | |
3341 | fi | |
3342 | ||
3343 | if test "$wxUSE_APPLE_IEEE" = yes; then | |
698dcdb6 | 3344 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3345 | else |
698dcdb6 | 3346 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3347 | fi |
698dcdb6 | 3348 | |
10f2d63a | 3349 | |
1e6feb95 | 3350 | echo $ac_n "checking for --enable-timer""... $ac_c" 1>&6 |
77e13408 | 3351 | echo "configure:3352: checking for --enable-timer" >&5 |
10f2d63a | 3352 | no_cache=0 |
1e6feb95 VZ |
3353 | # Check whether --enable-timer or --disable-timer was given. |
3354 | if test "${enable_timer+set}" = set; then | |
3355 | enableval="$enable_timer" | |
698dcdb6 | 3356 | |
10f2d63a | 3357 | if test "$enableval" = yes; then |
1e6feb95 | 3358 | ac_cv_use_timer='wxUSE_TIMER=yes' |
10f2d63a | 3359 | else |
1e6feb95 | 3360 | ac_cv_use_timer='wxUSE_TIMER=no' |
10f2d63a | 3361 | fi |
698dcdb6 | 3362 | |
10f2d63a | 3363 | else |
698dcdb6 | 3364 | |
1e6feb95 | 3365 | LINE=`grep "wxUSE_TIMER" ${wx_arg_cache_file}` |
10f2d63a VZ |
3366 | if test "x$LINE" != x ; then |
3367 | eval "DEFAULT_$LINE" | |
3368 | else | |
3369 | no_cache=1 | |
3370 | fi | |
3371 | ||
1e6feb95 | 3372 | ac_cv_use_timer='wxUSE_TIMER='$DEFAULT_wxUSE_TIMER |
698dcdb6 VZ |
3373 | |
3374 | fi | |
10f2d63a VZ |
3375 | |
3376 | ||
1e6feb95 | 3377 | eval "$ac_cv_use_timer" |
10f2d63a | 3378 | if test "$no_cache" != 1; then |
1e6feb95 | 3379 | echo $ac_cv_use_timer >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
3380 | fi |
3381 | ||
1e6feb95 | 3382 | if test "$wxUSE_TIMER" = yes; then |
698dcdb6 | 3383 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3384 | else |
698dcdb6 | 3385 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3386 | fi |
698dcdb6 | 3387 | |
10f2d63a | 3388 | |
698dcdb6 | 3389 | echo $ac_n "checking for --enable-wave""... $ac_c" 1>&6 |
77e13408 | 3390 | echo "configure:3391: checking for --enable-wave" >&5 |
10f2d63a VZ |
3391 | no_cache=0 |
3392 | # Check whether --enable-wave or --disable-wave was given. | |
3393 | if test "${enable_wave+set}" = set; then | |
3394 | enableval="$enable_wave" | |
698dcdb6 | 3395 | |
10f2d63a VZ |
3396 | if test "$enableval" = yes; then |
3397 | ac_cv_use_wave='wxUSE_WAVE=yes' | |
3398 | else | |
3399 | ac_cv_use_wave='wxUSE_WAVE=no' | |
3400 | fi | |
698dcdb6 | 3401 | |
10f2d63a | 3402 | else |
698dcdb6 | 3403 | |
10f2d63a VZ |
3404 | LINE=`grep "wxUSE_WAVE" ${wx_arg_cache_file}` |
3405 | if test "x$LINE" != x ; then | |
3406 | eval "DEFAULT_$LINE" | |
3407 | else | |
3408 | no_cache=1 | |
3409 | fi | |
3410 | ||
3411 | ac_cv_use_wave='wxUSE_WAVE='$DEFAULT_wxUSE_WAVE | |
698dcdb6 VZ |
3412 | |
3413 | fi | |
10f2d63a VZ |
3414 | |
3415 | ||
3416 | eval "$ac_cv_use_wave" | |
3417 | if test "$no_cache" != 1; then | |
3418 | echo $ac_cv_use_wave >> ${wx_arg_cache_file}.tmp | |
3419 | fi | |
3420 | ||
3421 | if test "$wxUSE_WAVE" = yes; then | |
698dcdb6 | 3422 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3423 | else |
698dcdb6 | 3424 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3425 | fi |
698dcdb6 | 3426 | |
10f2d63a | 3427 | |
698dcdb6 | 3428 | echo $ac_n "checking for --enable-fraction""... $ac_c" 1>&6 |
77e13408 | 3429 | echo "configure:3430: checking for --enable-fraction" >&5 |
10f2d63a VZ |
3430 | no_cache=0 |
3431 | # Check whether --enable-fraction or --disable-fraction was given. | |
3432 | if test "${enable_fraction+set}" = set; then | |
3433 | enableval="$enable_fraction" | |
698dcdb6 | 3434 | |
10f2d63a VZ |
3435 | if test "$enableval" = yes; then |
3436 | ac_cv_use_fraction='wxUSE_FRACTION=yes' | |
3437 | else | |
3438 | ac_cv_use_fraction='wxUSE_FRACTION=no' | |
3439 | fi | |
698dcdb6 | 3440 | |
10f2d63a | 3441 | else |
698dcdb6 | 3442 | |
10f2d63a VZ |
3443 | LINE=`grep "wxUSE_FRACTION" ${wx_arg_cache_file}` |
3444 | if test "x$LINE" != x ; then | |
3445 | eval "DEFAULT_$LINE" | |
3446 | else | |
3447 | no_cache=1 | |
3448 | fi | |
3449 | ||
3450 | ac_cv_use_fraction='wxUSE_FRACTION='$DEFAULT_wxUSE_FRACTION | |
698dcdb6 VZ |
3451 | |
3452 | fi | |
10f2d63a VZ |
3453 | |
3454 | ||
3455 | eval "$ac_cv_use_fraction" | |
3456 | if test "$no_cache" != 1; then | |
3457 | echo $ac_cv_use_fraction >> ${wx_arg_cache_file}.tmp | |
3458 | fi | |
3459 | ||
3460 | if test "$wxUSE_FRACTION" = yes; then | |
698dcdb6 | 3461 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3462 | else |
698dcdb6 | 3463 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3464 | fi |
698dcdb6 | 3465 | |
10f2d63a | 3466 | |
698dcdb6 | 3467 | echo $ac_n "checking for --enable-dynlib""... $ac_c" 1>&6 |
77e13408 | 3468 | echo "configure:3469: checking for --enable-dynlib" >&5 |
10f2d63a VZ |
3469 | no_cache=0 |
3470 | # Check whether --enable-dynlib or --disable-dynlib was given. | |
3471 | if test "${enable_dynlib+set}" = set; then | |
3472 | enableval="$enable_dynlib" | |
698dcdb6 | 3473 | |
10f2d63a VZ |
3474 | if test "$enableval" = yes; then |
3475 | ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes' | |
3476 | else | |
3477 | ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no' | |
3478 | fi | |
698dcdb6 | 3479 | |
10f2d63a | 3480 | else |
698dcdb6 | 3481 | |
10f2d63a VZ |
3482 | LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}` |
3483 | if test "x$LINE" != x ; then | |
3484 | eval "DEFAULT_$LINE" | |
3485 | else | |
3486 | no_cache=1 | |
3487 | fi | |
3488 | ||
3489 | ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS | |
698dcdb6 VZ |
3490 | |
3491 | fi | |
10f2d63a VZ |
3492 | |
3493 | ||
3494 | eval "$ac_cv_use_dynlib" | |
3495 | if test "$no_cache" != 1; then | |
3496 | echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp | |
3497 | fi | |
3498 | ||
3499 | if test "$wxUSE_DYNLIB_CLASS" = yes; then | |
698dcdb6 | 3500 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3501 | else |
698dcdb6 | 3502 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3503 | fi |
698dcdb6 | 3504 | |
10f2d63a | 3505 | |
698dcdb6 | 3506 | echo $ac_n "checking for --enable-longlong""... $ac_c" 1>&6 |
77e13408 | 3507 | echo "configure:3508: checking for --enable-longlong" >&5 |
10f2d63a VZ |
3508 | no_cache=0 |
3509 | # Check whether --enable-longlong or --disable-longlong was given. | |
3510 | if test "${enable_longlong+set}" = set; then | |
3511 | enableval="$enable_longlong" | |
698dcdb6 | 3512 | |
10f2d63a VZ |
3513 | if test "$enableval" = yes; then |
3514 | ac_cv_use_longlong='wxUSE_LONGLONG=yes' | |
3515 | else | |
3516 | ac_cv_use_longlong='wxUSE_LONGLONG=no' | |
3517 | fi | |
698dcdb6 | 3518 | |
10f2d63a | 3519 | else |
698dcdb6 | 3520 | |
10f2d63a VZ |
3521 | LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}` |
3522 | if test "x$LINE" != x ; then | |
3523 | eval "DEFAULT_$LINE" | |
3524 | else | |
3525 | no_cache=1 | |
3526 | fi | |
3527 | ||
3528 | ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG | |
698dcdb6 VZ |
3529 | |
3530 | fi | |
10f2d63a VZ |
3531 | |
3532 | ||
3533 | eval "$ac_cv_use_longlong" | |
3534 | if test "$no_cache" != 1; then | |
3535 | echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp | |
3536 | fi | |
3537 | ||
3538 | if test "$wxUSE_LONGLONG" = yes; then | |
698dcdb6 | 3539 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3540 | else |
698dcdb6 | 3541 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3542 | fi |
698dcdb6 | 3543 | |
10f2d63a | 3544 | |
698dcdb6 | 3545 | echo $ac_n "checking for --enable-geometry""... $ac_c" 1>&6 |
77e13408 | 3546 | echo "configure:3547: checking for --enable-geometry" >&5 |
e8f65ba6 RR |
3547 | no_cache=0 |
3548 | # Check whether --enable-geometry or --disable-geometry was given. | |
3549 | if test "${enable_geometry+set}" = set; then | |
3550 | enableval="$enable_geometry" | |
698dcdb6 | 3551 | |
e8f65ba6 RR |
3552 | if test "$enableval" = yes; then |
3553 | ac_cv_use_geometry='wxUSE_GEOMETRY=yes' | |
3554 | else | |
3555 | ac_cv_use_geometry='wxUSE_GEOMETRY=no' | |
3556 | fi | |
698dcdb6 | 3557 | |
e8f65ba6 | 3558 | else |
698dcdb6 | 3559 | |
e8f65ba6 RR |
3560 | LINE=`grep "wxUSE_GEOMETRY" ${wx_arg_cache_file}` |
3561 | if test "x$LINE" != x ; then | |
3562 | eval "DEFAULT_$LINE" | |
3563 | else | |
3564 | no_cache=1 | |
3565 | fi | |
3566 | ||
3567 | ac_cv_use_geometry='wxUSE_GEOMETRY='$DEFAULT_wxUSE_GEOMETRY | |
698dcdb6 VZ |
3568 | |
3569 | fi | |
e8f65ba6 RR |
3570 | |
3571 | ||
3572 | eval "$ac_cv_use_geometry" | |
3573 | if test "$no_cache" != 1; then | |
3574 | echo $ac_cv_use_geometry >> ${wx_arg_cache_file}.tmp | |
3575 | fi | |
3576 | ||
3577 | if test "$wxUSE_GEOMETRY" = yes; then | |
698dcdb6 | 3578 | echo "$ac_t""yes" 1>&6 |
e8f65ba6 | 3579 | else |
698dcdb6 | 3580 | echo "$ac_t""no" 1>&6 |
e8f65ba6 | 3581 | fi |
698dcdb6 | 3582 | |
e8f65ba6 | 3583 | |
698dcdb6 | 3584 | echo $ac_n "checking for --enable-log""... $ac_c" 1>&6 |
77e13408 | 3585 | echo "configure:3586: checking for --enable-log" >&5 |
10f2d63a VZ |
3586 | no_cache=0 |
3587 | # Check whether --enable-log or --disable-log was given. | |
3588 | if test "${enable_log+set}" = set; then | |
3589 | enableval="$enable_log" | |
698dcdb6 | 3590 | |
10f2d63a VZ |
3591 | if test "$enableval" = yes; then |
3592 | ac_cv_use_log='wxUSE_LOG=yes' | |
3593 | else | |
3594 | ac_cv_use_log='wxUSE_LOG=no' | |
3595 | fi | |
698dcdb6 | 3596 | |
10f2d63a | 3597 | else |
698dcdb6 | 3598 | |
10f2d63a VZ |
3599 | LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}` |
3600 | if test "x$LINE" != x ; then | |
3601 | eval "DEFAULT_$LINE" | |
3602 | else | |
3603 | no_cache=1 | |
3604 | fi | |
3605 | ||
3606 | ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG | |
698dcdb6 VZ |
3607 | |
3608 | fi | |
10f2d63a VZ |
3609 | |
3610 | ||
3611 | eval "$ac_cv_use_log" | |
3612 | if test "$no_cache" != 1; then | |
3613 | echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp | |
3614 | fi | |
3615 | ||
3616 | if test "$wxUSE_LOG" = yes; then | |
698dcdb6 | 3617 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3618 | else |
698dcdb6 | 3619 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3620 | fi |
698dcdb6 | 3621 | |
10f2d63a | 3622 | |
698dcdb6 | 3623 | echo $ac_n "checking for --enable-streams""... $ac_c" 1>&6 |
77e13408 | 3624 | echo "configure:3625: checking for --enable-streams" >&5 |
10f2d63a VZ |
3625 | no_cache=0 |
3626 | # Check whether --enable-streams or --disable-streams was given. | |
3627 | if test "${enable_streams+set}" = set; then | |
3628 | enableval="$enable_streams" | |
698dcdb6 | 3629 | |
10f2d63a VZ |
3630 | if test "$enableval" = yes; then |
3631 | ac_cv_use_streams='wxUSE_STREAMS=yes' | |
3632 | else | |
3633 | ac_cv_use_streams='wxUSE_STREAMS=no' | |
3634 | fi | |
698dcdb6 | 3635 | |
10f2d63a | 3636 | else |
698dcdb6 | 3637 | |
10f2d63a VZ |
3638 | LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}` |
3639 | if test "x$LINE" != x ; then | |
3640 | eval "DEFAULT_$LINE" | |
3641 | else | |
3642 | no_cache=1 | |
3643 | fi | |
3644 | ||
3645 | ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS | |
698dcdb6 VZ |
3646 | |
3647 | fi | |
10f2d63a VZ |
3648 | |
3649 | ||
3650 | eval "$ac_cv_use_streams" | |
3651 | if test "$no_cache" != 1; then | |
3652 | echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp | |
3653 | fi | |
3654 | ||
3655 | if test "$wxUSE_STREAMS" = yes; then | |
698dcdb6 | 3656 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3657 | else |
698dcdb6 | 3658 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3659 | fi |
698dcdb6 | 3660 | |
10f2d63a | 3661 | |
698dcdb6 | 3662 | echo $ac_n "checking for --enable-file""... $ac_c" 1>&6 |
77e13408 | 3663 | echo "configure:3664: checking for --enable-file" >&5 |
10f2d63a VZ |
3664 | no_cache=0 |
3665 | # Check whether --enable-file or --disable-file was given. | |
3666 | if test "${enable_file+set}" = set; then | |
3667 | enableval="$enable_file" | |
698dcdb6 | 3668 | |
10f2d63a VZ |
3669 | if test "$enableval" = yes; then |
3670 | ac_cv_use_file='wxUSE_FILE=yes' | |
3671 | else | |
3672 | ac_cv_use_file='wxUSE_FILE=no' | |
3673 | fi | |
698dcdb6 | 3674 | |
10f2d63a | 3675 | else |
698dcdb6 | 3676 | |
10f2d63a VZ |
3677 | LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}` |
3678 | if test "x$LINE" != x ; then | |
3679 | eval "DEFAULT_$LINE" | |
3680 | else | |
3681 | no_cache=1 | |
3682 | fi | |
3683 | ||
3684 | ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE | |
698dcdb6 VZ |
3685 | |
3686 | fi | |
10f2d63a VZ |
3687 | |
3688 | ||
3689 | eval "$ac_cv_use_file" | |
3690 | if test "$no_cache" != 1; then | |
3691 | echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp | |
3692 | fi | |
3693 | ||
3694 | if test "$wxUSE_FILE" = yes; then | |
698dcdb6 | 3695 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3696 | else |
698dcdb6 | 3697 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3698 | fi |
698dcdb6 | 3699 | |
10f2d63a | 3700 | |
1e6feb95 | 3701 | echo $ac_n "checking for --enable-ffile""... $ac_c" 1>&6 |
77e13408 | 3702 | echo "configure:3703: checking for --enable-ffile" >&5 |
10f2d63a | 3703 | no_cache=0 |
1e6feb95 VZ |
3704 | # Check whether --enable-ffile or --disable-ffile was given. |
3705 | if test "${enable_ffile+set}" = set; then | |
3706 | enableval="$enable_ffile" | |
698dcdb6 | 3707 | |
10f2d63a | 3708 | if test "$enableval" = yes; then |
1e6feb95 | 3709 | ac_cv_use_ffile='wxUSE_FFILE=yes' |
10f2d63a | 3710 | else |
1e6feb95 | 3711 | ac_cv_use_ffile='wxUSE_FFILE=no' |
10f2d63a | 3712 | fi |
698dcdb6 | 3713 | |
10f2d63a | 3714 | else |
698dcdb6 | 3715 | |
1e6feb95 | 3716 | LINE=`grep "wxUSE_FFILE" ${wx_arg_cache_file}` |
10f2d63a VZ |
3717 | if test "x$LINE" != x ; then |
3718 | eval "DEFAULT_$LINE" | |
3719 | else | |
3720 | no_cache=1 | |
3721 | fi | |
3722 | ||
1e6feb95 | 3723 | ac_cv_use_ffile='wxUSE_FFILE='$DEFAULT_wxUSE_FFILE |
698dcdb6 VZ |
3724 | |
3725 | fi | |
10f2d63a VZ |
3726 | |
3727 | ||
1e6feb95 | 3728 | eval "$ac_cv_use_ffile" |
10f2d63a | 3729 | if test "$no_cache" != 1; then |
1e6feb95 | 3730 | echo $ac_cv_use_ffile >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
3731 | fi |
3732 | ||
1e6feb95 | 3733 | if test "$wxUSE_FFILE" = yes; then |
698dcdb6 | 3734 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3735 | else |
698dcdb6 | 3736 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3737 | fi |
698dcdb6 | 3738 | |
10f2d63a | 3739 | |
1e6feb95 | 3740 | echo $ac_n "checking for --enable-textfile""... $ac_c" 1>&6 |
77e13408 | 3741 | echo "configure:3742: checking for --enable-textfile" >&5 |
10f2d63a | 3742 | no_cache=0 |
1e6feb95 VZ |
3743 | # Check whether --enable-textfile or --disable-textfile was given. |
3744 | if test "${enable_textfile+set}" = set; then | |
3745 | enableval="$enable_textfile" | |
698dcdb6 | 3746 | |
10f2d63a | 3747 | if test "$enableval" = yes; then |
1e6feb95 | 3748 | ac_cv_use_textfile='wxUSE_TEXTFILE=yes' |
10f2d63a | 3749 | else |
1e6feb95 | 3750 | ac_cv_use_textfile='wxUSE_TEXTFILE=no' |
10f2d63a | 3751 | fi |
698dcdb6 | 3752 | |
10f2d63a | 3753 | else |
698dcdb6 | 3754 | |
1e6feb95 | 3755 | LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}` |
10f2d63a VZ |
3756 | if test "x$LINE" != x ; then |
3757 | eval "DEFAULT_$LINE" | |
3758 | else | |
3759 | no_cache=1 | |
3760 | fi | |
3761 | ||
1e6feb95 | 3762 | ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE |
698dcdb6 VZ |
3763 | |
3764 | fi | |
10f2d63a VZ |
3765 | |
3766 | ||
1e6feb95 | 3767 | eval "$ac_cv_use_textfile" |
10f2d63a | 3768 | if test "$no_cache" != 1; then |
1e6feb95 | 3769 | echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
3770 | fi |
3771 | ||
1e6feb95 | 3772 | if test "$wxUSE_TEXTFILE" = yes; then |
698dcdb6 | 3773 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3774 | else |
698dcdb6 | 3775 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3776 | fi |
698dcdb6 | 3777 | |
10f2d63a | 3778 | |
1e6feb95 | 3779 | echo $ac_n "checking for --enable-fontmap""... $ac_c" 1>&6 |
77e13408 | 3780 | echo "configure:3781: checking for --enable-fontmap" >&5 |
10f2d63a | 3781 | no_cache=0 |
1e6feb95 VZ |
3782 | # Check whether --enable-fontmap or --disable-fontmap was given. |
3783 | if test "${enable_fontmap+set}" = set; then | |
3784 | enableval="$enable_fontmap" | |
698dcdb6 | 3785 | |
10f2d63a | 3786 | if test "$enableval" = yes; then |
1e6feb95 | 3787 | ac_cv_use_fontmap='wxUSE_FONTMAP=yes' |
10f2d63a | 3788 | else |
1e6feb95 | 3789 | ac_cv_use_fontmap='wxUSE_FONTMAP=no' |
10f2d63a | 3790 | fi |
698dcdb6 | 3791 | |
10f2d63a | 3792 | else |
698dcdb6 | 3793 | |
1e6feb95 | 3794 | LINE=`grep "wxUSE_FONTMAP" ${wx_arg_cache_file}` |
10f2d63a VZ |
3795 | if test "x$LINE" != x ; then |
3796 | eval "DEFAULT_$LINE" | |
3797 | else | |
3798 | no_cache=1 | |
3799 | fi | |
3800 | ||
1e6feb95 | 3801 | ac_cv_use_fontmap='wxUSE_FONTMAP='$DEFAULT_wxUSE_FONTMAP |
698dcdb6 VZ |
3802 | |
3803 | fi | |
10f2d63a VZ |
3804 | |
3805 | ||
1e6feb95 | 3806 | eval "$ac_cv_use_fontmap" |
10f2d63a | 3807 | if test "$no_cache" != 1; then |
1e6feb95 | 3808 | echo $ac_cv_use_fontmap >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
3809 | fi |
3810 | ||
1e6feb95 | 3811 | if test "$wxUSE_FONTMAP" = yes; then |
698dcdb6 | 3812 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3813 | else |
698dcdb6 | 3814 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3815 | fi |
698dcdb6 | 3816 | |
10f2d63a | 3817 | |
1e6feb95 | 3818 | echo $ac_n "checking for --enable-unicode""... $ac_c" 1>&6 |
77e13408 | 3819 | echo "configure:3820: checking for --enable-unicode" >&5 |
10f2d63a | 3820 | no_cache=0 |
1e6feb95 VZ |
3821 | # Check whether --enable-unicode or --disable-unicode was given. |
3822 | if test "${enable_unicode+set}" = set; then | |
3823 | enableval="$enable_unicode" | |
3824 | ||
3825 | if test "$enableval" = yes; then | |
3826 | ac_cv_use_unicode='wxUSE_UNICODE=yes' | |
3827 | else | |
3828 | ac_cv_use_unicode='wxUSE_UNICODE=no' | |
3829 | fi | |
3830 | ||
3831 | else | |
3832 | ||
3833 | LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}` | |
3834 | if test "x$LINE" != x ; then | |
3835 | eval "DEFAULT_$LINE" | |
3836 | else | |
3837 | no_cache=1 | |
3838 | fi | |
3839 | ||
3840 | ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE | |
3841 | ||
3842 | fi | |
3843 | ||
3844 | ||
3845 | eval "$ac_cv_use_unicode" | |
3846 | if test "$no_cache" != 1; then | |
3847 | echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp | |
3848 | fi | |
3849 | ||
3850 | if test "$wxUSE_UNICODE" = yes; then | |
3851 | echo "$ac_t""yes" 1>&6 | |
3852 | else | |
3853 | echo "$ac_t""no" 1>&6 | |
3854 | fi | |
3855 | ||
3856 | ||
1e6feb95 | 3857 | echo $ac_n "checking for --enable-wxprintfv""... $ac_c" 1>&6 |
77e13408 | 3858 | echo "configure:3859: checking for --enable-wxprintfv" >&5 |
1e6feb95 VZ |
3859 | no_cache=0 |
3860 | # Check whether --enable-wxprintfv or --disable-wxprintfv was given. | |
3861 | if test "${enable_wxprintfv+set}" = set; then | |
3862 | enableval="$enable_wxprintfv" | |
3863 | ||
3864 | if test "$enableval" = yes; then | |
10f2d63a VZ |
3865 | ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=yes' |
3866 | else | |
3867 | ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=no' | |
3868 | fi | |
698dcdb6 | 3869 | |
10f2d63a | 3870 | else |
698dcdb6 | 3871 | |
10f2d63a VZ |
3872 | LINE=`grep "wxUSE_EXPERIMENTAL_PRINTF" ${wx_arg_cache_file}` |
3873 | if test "x$LINE" != x ; then | |
3874 | eval "DEFAULT_$LINE" | |
3875 | else | |
3876 | no_cache=1 | |
3877 | fi | |
3878 | ||
3879 | ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF='$DEFAULT_wxUSE_EXPERIMENTAL_PRINTF | |
698dcdb6 VZ |
3880 | |
3881 | fi | |
10f2d63a VZ |
3882 | |
3883 | ||
3884 | eval "$ac_cv_use_wxprintfv" | |
3885 | if test "$no_cache" != 1; then | |
3886 | echo $ac_cv_use_wxprintfv >> ${wx_arg_cache_file}.tmp | |
3887 | fi | |
3888 | ||
3889 | if test "$wxUSE_EXPERIMENTAL_PRINTF" = yes; then | |
698dcdb6 | 3890 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3891 | else |
698dcdb6 | 3892 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3893 | fi |
698dcdb6 | 3894 | |
10f2d63a | 3895 | |
698dcdb6 | 3896 | echo $ac_n "checking for --enable-std_iostreams""... $ac_c" 1>&6 |
77e13408 | 3897 | echo "configure:3898: checking for --enable-std_iostreams" >&5 |
10f2d63a VZ |
3898 | no_cache=0 |
3899 | # Check whether --enable-std_iostreams or --disable-std_iostreams was given. | |
3900 | if test "${enable_std_iostreams+set}" = set; then | |
3901 | enableval="$enable_std_iostreams" | |
698dcdb6 | 3902 | |
10f2d63a VZ |
3903 | if test "$enableval" = yes; then |
3904 | ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes' | |
3905 | else | |
3906 | ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no' | |
3907 | fi | |
698dcdb6 | 3908 | |
10f2d63a | 3909 | else |
698dcdb6 | 3910 | |
10f2d63a VZ |
3911 | LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}` |
3912 | if test "x$LINE" != x ; then | |
3913 | eval "DEFAULT_$LINE" | |
3914 | else | |
3915 | no_cache=1 | |
3916 | fi | |
3917 | ||
3918 | ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM | |
698dcdb6 VZ |
3919 | |
3920 | fi | |
10f2d63a VZ |
3921 | |
3922 | ||
3923 | eval "$ac_cv_use_std_iostreams" | |
3924 | if test "$no_cache" != 1; then | |
3925 | echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp | |
3926 | fi | |
3927 | ||
3928 | if test "$wxUSE_STD_IOSTREAM" = yes; then | |
698dcdb6 | 3929 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3930 | else |
698dcdb6 | 3931 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3932 | fi |
698dcdb6 | 3933 | |
10f2d63a | 3934 | |
698dcdb6 | 3935 | echo $ac_n "checking for --enable-filesystem""... $ac_c" 1>&6 |
77e13408 | 3936 | echo "configure:3937: checking for --enable-filesystem" >&5 |
24528b0c VS |
3937 | no_cache=0 |
3938 | # Check whether --enable-filesystem or --disable-filesystem was given. | |
3939 | if test "${enable_filesystem+set}" = set; then | |
3940 | enableval="$enable_filesystem" | |
698dcdb6 | 3941 | |
24528b0c VS |
3942 | if test "$enableval" = yes; then |
3943 | ac_cv_use_filesystem='wxUSE_FILESYSTEM=yes' | |
3944 | else | |
3945 | ac_cv_use_filesystem='wxUSE_FILESYSTEM=no' | |
3946 | fi | |
698dcdb6 | 3947 | |
24528b0c | 3948 | else |
698dcdb6 | 3949 | |
24528b0c VS |
3950 | LINE=`grep "wxUSE_FILESYSTEM" ${wx_arg_cache_file}` |
3951 | if test "x$LINE" != x ; then | |
3952 | eval "DEFAULT_$LINE" | |
3953 | else | |
3954 | no_cache=1 | |
3955 | fi | |
3956 | ||
3957 | ac_cv_use_filesystem='wxUSE_FILESYSTEM='$DEFAULT_wxUSE_FILESYSTEM | |
698dcdb6 VZ |
3958 | |
3959 | fi | |
24528b0c VS |
3960 | |
3961 | ||
3962 | eval "$ac_cv_use_filesystem" | |
3963 | if test "$no_cache" != 1; then | |
3964 | echo $ac_cv_use_filesystem >> ${wx_arg_cache_file}.tmp | |
3965 | fi | |
3966 | ||
3967 | if test "$wxUSE_FILESYSTEM" = yes; then | |
698dcdb6 | 3968 | echo "$ac_t""yes" 1>&6 |
24528b0c | 3969 | else |
698dcdb6 | 3970 | echo "$ac_t""no" 1>&6 |
24528b0c | 3971 | fi |
698dcdb6 | 3972 | |
24528b0c | 3973 | |
698dcdb6 | 3974 | echo $ac_n "checking for --enable-fs_inet""... $ac_c" 1>&6 |
77e13408 | 3975 | echo "configure:3976: checking for --enable-fs_inet" >&5 |
10f2d63a VZ |
3976 | no_cache=0 |
3977 | # Check whether --enable-fs_inet or --disable-fs_inet was given. | |
3978 | if test "${enable_fs_inet+set}" = set; then | |
3979 | enableval="$enable_fs_inet" | |
698dcdb6 | 3980 | |
10f2d63a VZ |
3981 | if test "$enableval" = yes; then |
3982 | ac_cv_use_fs_inet='wxUSE_FS_INET=yes' | |
3983 | else | |
3984 | ac_cv_use_fs_inet='wxUSE_FS_INET=no' | |
3985 | fi | |
698dcdb6 | 3986 | |
10f2d63a | 3987 | else |
698dcdb6 | 3988 | |
10f2d63a VZ |
3989 | LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}` |
3990 | if test "x$LINE" != x ; then | |
3991 | eval "DEFAULT_$LINE" | |
3992 | else | |
3993 | no_cache=1 | |
3994 | fi | |
3995 | ||
3996 | ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET | |
698dcdb6 VZ |
3997 | |
3998 | fi | |
10f2d63a VZ |
3999 | |
4000 | ||
4001 | eval "$ac_cv_use_fs_inet" | |
4002 | if test "$no_cache" != 1; then | |
4003 | echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp | |
4004 | fi | |
4005 | ||
4006 | if test "$wxUSE_FS_INET" = yes; then | |
698dcdb6 | 4007 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4008 | else |
698dcdb6 | 4009 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4010 | fi |
698dcdb6 | 4011 | |
10f2d63a | 4012 | |
698dcdb6 | 4013 | echo $ac_n "checking for --enable-fs_zip""... $ac_c" 1>&6 |
77e13408 | 4014 | echo "configure:4015: checking for --enable-fs_zip" >&5 |
10f2d63a VZ |
4015 | no_cache=0 |
4016 | # Check whether --enable-fs_zip or --disable-fs_zip was given. | |
4017 | if test "${enable_fs_zip+set}" = set; then | |
4018 | enableval="$enable_fs_zip" | |
698dcdb6 | 4019 | |
10f2d63a VZ |
4020 | if test "$enableval" = yes; then |
4021 | ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes' | |
4022 | else | |
4023 | ac_cv_use_fs_zip='wxUSE_FS_ZIP=no' | |
4024 | fi | |
698dcdb6 | 4025 | |
10f2d63a | 4026 | else |
698dcdb6 | 4027 | |
10f2d63a VZ |
4028 | LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}` |
4029 | if test "x$LINE" != x ; then | |
4030 | eval "DEFAULT_$LINE" | |
4031 | else | |
4032 | no_cache=1 | |
4033 | fi | |
4034 | ||
4035 | ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP | |
698dcdb6 VZ |
4036 | |
4037 | fi | |
10f2d63a VZ |
4038 | |
4039 | ||
4040 | eval "$ac_cv_use_fs_zip" | |
4041 | if test "$no_cache" != 1; then | |
4042 | echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp | |
4043 | fi | |
4044 | ||
4045 | if test "$wxUSE_FS_ZIP" = yes; then | |
698dcdb6 | 4046 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4047 | else |
698dcdb6 | 4048 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4049 | fi |
698dcdb6 | 4050 | |
10f2d63a | 4051 | |
698dcdb6 | 4052 | echo $ac_n "checking for --enable-zipstream""... $ac_c" 1>&6 |
77e13408 | 4053 | echo "configure:4054: checking for --enable-zipstream" >&5 |
10f2d63a VZ |
4054 | no_cache=0 |
4055 | # Check whether --enable-zipstream or --disable-zipstream was given. | |
4056 | if test "${enable_zipstream+set}" = set; then | |
4057 | enableval="$enable_zipstream" | |
698dcdb6 | 4058 | |
10f2d63a VZ |
4059 | if test "$enableval" = yes; then |
4060 | ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes' | |
4061 | else | |
4062 | ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no' | |
4063 | fi | |
698dcdb6 | 4064 | |
10f2d63a | 4065 | else |
698dcdb6 | 4066 | |
10f2d63a VZ |
4067 | LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}` |
4068 | if test "x$LINE" != x ; then | |
4069 | eval "DEFAULT_$LINE" | |
4070 | else | |
4071 | no_cache=1 | |
4072 | fi | |
4073 | ||
4074 | ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM | |
698dcdb6 VZ |
4075 | |
4076 | fi | |
10f2d63a VZ |
4077 | |
4078 | ||
4079 | eval "$ac_cv_use_zipstream" | |
4080 | if test "$no_cache" != 1; then | |
4081 | echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp | |
4082 | fi | |
4083 | ||
4084 | if test "$wxUSE_ZIPSTREAM" = yes; then | |
698dcdb6 | 4085 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4086 | else |
698dcdb6 | 4087 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4088 | fi |
698dcdb6 | 4089 | |
10f2d63a | 4090 | |
698dcdb6 VZ |
4091 | |
4092 | echo $ac_n "checking for --enable-catch_segvs""... $ac_c" 1>&6 | |
77e13408 | 4093 | echo "configure:4094: checking for --enable-catch_segvs" >&5 |
eb4efbdc VZ |
4094 | no_cache=0 |
4095 | # Check whether --enable-catch_segvs or --disable-catch_segvs was given. | |
4096 | if test "${enable_catch_segvs+set}" = set; then | |
4097 | enableval="$enable_catch_segvs" | |
698dcdb6 | 4098 | |
eb4efbdc VZ |
4099 | if test "$enableval" = yes; then |
4100 | ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes' | |
4101 | else | |
4102 | ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no' | |
4103 | fi | |
698dcdb6 | 4104 | |
eb4efbdc | 4105 | else |
698dcdb6 | 4106 | |
eb4efbdc VZ |
4107 | LINE=`grep "wxUSE_ON_FATAL_EXCEPTION" ${wx_arg_cache_file}` |
4108 | if test "x$LINE" != x ; then | |
4109 | eval "DEFAULT_$LINE" | |
4110 | else | |
4111 | no_cache=1 | |
4112 | fi | |
4113 | ||
4114 | ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION='$DEFAULT_wxUSE_ON_FATAL_EXCEPTION | |
698dcdb6 VZ |
4115 | |
4116 | fi | |
eb4efbdc VZ |
4117 | |
4118 | ||
4119 | eval "$ac_cv_use_catch_segvs" | |
4120 | if test "$no_cache" != 1; then | |
4121 | echo $ac_cv_use_catch_segvs >> ${wx_arg_cache_file}.tmp | |
4122 | fi | |
4123 | ||
4124 | if test "$wxUSE_ON_FATAL_EXCEPTION" = yes; then | |
698dcdb6 | 4125 | echo "$ac_t""yes" 1>&6 |
eb4efbdc | 4126 | else |
698dcdb6 | 4127 | echo "$ac_t""no" 1>&6 |
eb4efbdc | 4128 | fi |
698dcdb6 | 4129 | |
eb4efbdc | 4130 | |
698dcdb6 | 4131 | echo $ac_n "checking for --enable-snglinst""... $ac_c" 1>&6 |
77e13408 | 4132 | echo "configure:4133: checking for --enable-snglinst" >&5 |
4f3c5f06 VZ |
4133 | no_cache=0 |
4134 | # Check whether --enable-snglinst or --disable-snglinst was given. | |
4135 | if test "${enable_snglinst+set}" = set; then | |
4136 | enableval="$enable_snglinst" | |
698dcdb6 | 4137 | |
4f3c5f06 VZ |
4138 | if test "$enableval" = yes; then |
4139 | ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=yes' | |
4140 | else | |
4141 | ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=no' | |
4142 | fi | |
698dcdb6 | 4143 | |
4f3c5f06 | 4144 | else |
698dcdb6 | 4145 | |
4f3c5f06 VZ |
4146 | LINE=`grep "wxUSE_SNGLINST_CHECKER" ${wx_arg_cache_file}` |
4147 | if test "x$LINE" != x ; then | |
4148 | eval "DEFAULT_$LINE" | |
4149 | else | |
4150 | no_cache=1 | |
4151 | fi | |
4152 | ||
4153 | ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER='$DEFAULT_wxUSE_SNGLINST_CHECKER | |
698dcdb6 VZ |
4154 | |
4155 | fi | |
4f3c5f06 VZ |
4156 | |
4157 | ||
4158 | eval "$ac_cv_use_snglinst" | |
4159 | if test "$no_cache" != 1; then | |
4160 | echo $ac_cv_use_snglinst >> ${wx_arg_cache_file}.tmp | |
4161 | fi | |
4162 | ||
4163 | if test "$wxUSE_SNGLINST_CHECKER" = yes; then | |
698dcdb6 | 4164 | echo "$ac_t""yes" 1>&6 |
4f3c5f06 | 4165 | else |
698dcdb6 | 4166 | echo "$ac_t""no" 1>&6 |
4f3c5f06 | 4167 | fi |
698dcdb6 VZ |
4168 | |
4169 | ||
eb4efbdc | 4170 | |
1e6feb95 | 4171 | echo $ac_n "checking for --enable-mimetype""... $ac_c" 1>&6 |
77e13408 | 4172 | echo "configure:4173: checking for --enable-mimetype" >&5 |
1e6feb95 VZ |
4173 | no_cache=0 |
4174 | # Check whether --enable-mimetype or --disable-mimetype was given. | |
4175 | if test "${enable_mimetype+set}" = set; then | |
4176 | enableval="$enable_mimetype" | |
4177 | ||
4178 | if test "$enableval" = yes; then | |
4179 | ac_cv_use_mimetype='wxUSE_MIMETYPE=yes' | |
4180 | else | |
4181 | ac_cv_use_mimetype='wxUSE_MIMETYPE=no' | |
4182 | fi | |
4183 | ||
4184 | else | |
4185 | ||
4186 | LINE=`grep "wxUSE_MIMETYPE" ${wx_arg_cache_file}` | |
4187 | if test "x$LINE" != x ; then | |
4188 | eval "DEFAULT_$LINE" | |
4189 | else | |
4190 | no_cache=1 | |
4191 | fi | |
4192 | ||
4193 | ac_cv_use_mimetype='wxUSE_MIMETYPE='$DEFAULT_wxUSE_MIMETYPE | |
4194 | ||
4195 | fi | |
4196 | ||
4197 | ||
4198 | eval "$ac_cv_use_mimetype" | |
4199 | if test "$no_cache" != 1; then | |
4200 | echo $ac_cv_use_mimetype >> ${wx_arg_cache_file}.tmp | |
4201 | fi | |
4202 | ||
4203 | if test "$wxUSE_MIMETYPE" = yes; then | |
4204 | echo "$ac_t""yes" 1>&6 | |
4205 | else | |
4206 | echo "$ac_t""no" 1>&6 | |
4207 | fi | |
4208 | ||
4209 | ||
3e44f09d | 4210 | echo $ac_n "checking for --enable-system_options""... $ac_c" 1>&6 |
77e13408 | 4211 | echo "configure:4212: checking for --enable-system_options" >&5 |
3e44f09d VZ |
4212 | no_cache=0 |
4213 | # Check whether --enable-system_options or --disable-system_options was given. | |
4214 | if test "${enable_system_options+set}" = set; then | |
4215 | enableval="$enable_system_options" | |
4216 | ||
4217 | if test "$enableval" = yes; then | |
4218 | ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=yes' | |
4219 | else | |
4220 | ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=no' | |
4221 | fi | |
4222 | ||
4223 | else | |
4224 | ||
4225 | LINE=`grep "wxUSE_SYSTEM_OPTIONS" ${wx_arg_cache_file}` | |
4226 | if test "x$LINE" != x ; then | |
4227 | eval "DEFAULT_$LINE" | |
4228 | else | |
4229 | no_cache=1 | |
4230 | fi | |
4231 | ||
4232 | ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS='$DEFAULT_wxUSE_SYSTEM_OPTIONS | |
4233 | ||
4234 | fi | |
4235 | ||
4236 | ||
4237 | eval "$ac_cv_use_system_options" | |
4238 | if test "$no_cache" != 1; then | |
4239 | echo $ac_cv_use_system_options >> ${wx_arg_cache_file}.tmp | |
4240 | fi | |
4241 | ||
4242 | if test "$wxUSE_SYSTEM_OPTIONS" = yes; then | |
4243 | echo "$ac_t""yes" 1>&6 | |
4244 | else | |
4245 | echo "$ac_t""no" 1>&6 | |
4246 | fi | |
4247 | ||
4248 | ||
1e6feb95 | 4249 | |
698dcdb6 VZ |
4250 | |
4251 | echo $ac_n "checking for --enable-threads""... $ac_c" 1>&6 | |
77e13408 | 4252 | echo "configure:4253: checking for --enable-threads" >&5 |
10f2d63a VZ |
4253 | no_cache=0 |
4254 | # Check whether --enable-threads or --disable-threads was given. | |
4255 | if test "${enable_threads+set}" = set; then | |
4256 | enableval="$enable_threads" | |
698dcdb6 | 4257 | |
10f2d63a VZ |
4258 | if test "$enableval" = yes; then |
4259 | ac_cv_use_threads='wxUSE_THREADS=yes' | |
4260 | else | |
4261 | ac_cv_use_threads='wxUSE_THREADS=no' | |
4262 | fi | |
698dcdb6 | 4263 | |
10f2d63a | 4264 | else |
698dcdb6 | 4265 | |
10f2d63a VZ |
4266 | LINE=`grep "wxUSE_THREADS" ${wx_arg_cache_file}` |
4267 | if test "x$LINE" != x ; then | |
4268 | eval "DEFAULT_$LINE" | |
4269 | else | |
4270 | no_cache=1 | |
4271 | fi | |
4272 | ||
4273 | ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS | |
698dcdb6 VZ |
4274 | |
4275 | fi | |
10f2d63a VZ |
4276 | |
4277 | ||
4278 | eval "$ac_cv_use_threads" | |
4279 | if test "$no_cache" != 1; then | |
4280 | echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp | |
4281 | fi | |
4282 | ||
4283 | if test "$wxUSE_THREADS" = yes; then | |
698dcdb6 | 4284 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4285 | else |
698dcdb6 | 4286 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4287 | fi |
698dcdb6 | 4288 | |
10f2d63a | 4289 | |
698dcdb6 | 4290 | echo $ac_n "checking for --enable-serial""... $ac_c" 1>&6 |
77e13408 | 4291 | echo "configure:4292: checking for --enable-serial" >&5 |
10f2d63a VZ |
4292 | no_cache=0 |
4293 | # Check whether --enable-serial or --disable-serial was given. | |
4294 | if test "${enable_serial+set}" = set; then | |
4295 | enableval="$enable_serial" | |
698dcdb6 | 4296 | |
10f2d63a VZ |
4297 | if test "$enableval" = yes; then |
4298 | ac_cv_use_serial='wxUSE_SERIAL=yes' | |
4299 | else | |
4300 | ac_cv_use_serial='wxUSE_SERIAL=no' | |
4301 | fi | |
698dcdb6 | 4302 | |
10f2d63a | 4303 | else |
698dcdb6 | 4304 | |
10f2d63a VZ |
4305 | LINE=`grep "wxUSE_SERIAL" ${wx_arg_cache_file}` |
4306 | if test "x$LINE" != x ; then | |
4307 | eval "DEFAULT_$LINE" | |
4308 | else | |
4309 | no_cache=1 | |
4310 | fi | |
4311 | ||
4312 | ac_cv_use_serial='wxUSE_SERIAL='$DEFAULT_wxUSE_SERIAL | |
698dcdb6 VZ |
4313 | |
4314 | fi | |
10f2d63a VZ |
4315 | |
4316 | ||
4317 | eval "$ac_cv_use_serial" | |
4318 | if test "$no_cache" != 1; then | |
4319 | echo $ac_cv_use_serial >> ${wx_arg_cache_file}.tmp | |
4320 | fi | |
4321 | ||
4322 | if test "$wxUSE_SERIAL" = yes; then | |
698dcdb6 | 4323 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4324 | else |
698dcdb6 | 4325 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4326 | fi |
698dcdb6 | 4327 | |
10f2d63a | 4328 | |
b12915c1 VZ |
4329 | if test "$wxUSE_GUI" = "yes"; then |
4330 | ||
698dcdb6 VZ |
4331 | |
4332 | ||
4333 | echo $ac_n "checking for --enable-docview""... $ac_c" 1>&6 | |
77e13408 | 4334 | echo "configure:4335: checking for --enable-docview" >&5 |
10f2d63a VZ |
4335 | no_cache=0 |
4336 | # Check whether --enable-docview or --disable-docview was given. | |
4337 | if test "${enable_docview+set}" = set; then | |
4338 | enableval="$enable_docview" | |
698dcdb6 | 4339 | |
10f2d63a VZ |
4340 | if test "$enableval" = yes; then |
4341 | ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes' | |
4342 | else | |
4343 | ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no' | |
4344 | fi | |
698dcdb6 | 4345 | |
10f2d63a | 4346 | else |
698dcdb6 | 4347 | |
10f2d63a VZ |
4348 | LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}` |
4349 | if test "x$LINE" != x ; then | |
4350 | eval "DEFAULT_$LINE" | |
4351 | else | |
4352 | no_cache=1 | |
4353 | fi | |
4354 | ||
4355 | ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE | |
698dcdb6 VZ |
4356 | |
4357 | fi | |
10f2d63a VZ |
4358 | |
4359 | ||
4360 | eval "$ac_cv_use_docview" | |
4361 | if test "$no_cache" != 1; then | |
4362 | echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp | |
4363 | fi | |
4364 | ||
4365 | if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then | |
698dcdb6 | 4366 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4367 | else |
698dcdb6 | 4368 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4369 | fi |
698dcdb6 | 4370 | |
10f2d63a | 4371 | |
698dcdb6 | 4372 | echo $ac_n "checking for --enable-help""... $ac_c" 1>&6 |
77e13408 | 4373 | echo "configure:4374: checking for --enable-help" >&5 |
10f2d63a VZ |
4374 | no_cache=0 |
4375 | # Check whether --enable-help or --disable-help was given. | |
4376 | if test "${enable_help+set}" = set; then | |
4377 | enableval="$enable_help" | |
698dcdb6 | 4378 | |
10f2d63a VZ |
4379 | if test "$enableval" = yes; then |
4380 | ac_cv_use_help='wxUSE_HELP=yes' | |
4381 | else | |
4382 | ac_cv_use_help='wxUSE_HELP=no' | |
4383 | fi | |
698dcdb6 | 4384 | |
10f2d63a | 4385 | else |
698dcdb6 | 4386 | |
10f2d63a VZ |
4387 | LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}` |
4388 | if test "x$LINE" != x ; then | |
4389 | eval "DEFAULT_$LINE" | |
4390 | else | |
4391 | no_cache=1 | |
4392 | fi | |
4393 | ||
4394 | ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP | |
698dcdb6 VZ |
4395 | |
4396 | fi | |
10f2d63a VZ |
4397 | |
4398 | ||
4399 | eval "$ac_cv_use_help" | |
4400 | if test "$no_cache" != 1; then | |
4401 | echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp | |
4402 | fi | |
4403 | ||
4404 | if test "$wxUSE_HELP" = yes; then | |
698dcdb6 | 4405 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4406 | else |
698dcdb6 | 4407 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4408 | fi |
698dcdb6 | 4409 | |
10f2d63a | 4410 | |
29fd3c0c | 4411 | echo $ac_n "checking for --enable-mshtmlhelp""... $ac_c" 1>&6 |
77e13408 | 4412 | echo "configure:4413: checking for --enable-mshtmlhelp" >&5 |
29fd3c0c VS |
4413 | no_cache=0 |
4414 | # Check whether --enable-mshtmlhelp or --disable-mshtmlhelp was given. | |
4415 | if test "${enable_mshtmlhelp+set}" = set; then | |
4416 | enableval="$enable_mshtmlhelp" | |
4417 | ||
4418 | if test "$enableval" = yes; then | |
4419 | ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=yes' | |
4420 | else | |
4421 | ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=no' | |
4422 | fi | |
4423 | ||
4424 | else | |
4425 | ||
4426 | LINE=`grep "wxUSE_MS_HTML_HELP" ${wx_arg_cache_file}` | |
4427 | if test "x$LINE" != x ; then | |
4428 | eval "DEFAULT_$LINE" | |
4429 | else | |
4430 | no_cache=1 | |
4431 | fi | |
4432 | ||
4433 | ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP='$DEFAULT_wxUSE_MS_HTML_HELP | |
4434 | ||
4435 | fi | |
4436 | ||
4437 | ||
4438 | eval "$ac_cv_use_mshtmlhelp" | |
4439 | if test "$no_cache" != 1; then | |
4440 | echo $ac_cv_use_mshtmlhelp >> ${wx_arg_cache_file}.tmp | |
4441 | fi | |
4442 | ||
4443 | if test "$wxUSE_MS_HTML_HELP" = yes; then | |
4444 | echo "$ac_t""yes" 1>&6 | |
4445 | else | |
4446 | echo "$ac_t""no" 1>&6 | |
4447 | fi | |
4448 | ||
4449 | ||
3379ed37 | 4450 | echo $ac_n "checking for --enable-html""... $ac_c" 1>&6 |
77e13408 | 4451 | echo "configure:4452: checking for --enable-html" >&5 |
3379ed37 VZ |
4452 | no_cache=0 |
4453 | # Check whether --enable-html or --disable-html was given. | |
4454 | if test "${enable_html+set}" = set; then | |
4455 | enableval="$enable_html" | |
4456 | ||
4457 | if test "$enableval" = yes; then | |
4458 | ac_cv_use_html='wxUSE_HTML=yes' | |
4459 | else | |
4460 | ac_cv_use_html='wxUSE_HTML=no' | |
4461 | fi | |
4462 | ||
4463 | else | |
4464 | ||
4465 | LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}` | |
4466 | if test "x$LINE" != x ; then | |
4467 | eval "DEFAULT_$LINE" | |
4468 | else | |
4469 | no_cache=1 | |
4470 | fi | |
4471 | ||
4472 | ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML | |
4473 | ||
4474 | fi | |
4475 | ||
4476 | ||
4477 | eval "$ac_cv_use_html" | |
4478 | if test "$no_cache" != 1; then | |
4479 | echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp | |
4480 | fi | |
4481 | ||
4482 | if test "$wxUSE_HTML" = yes; then | |
4483 | echo "$ac_t""yes" 1>&6 | |
4484 | else | |
4485 | echo "$ac_t""no" 1>&6 | |
4486 | fi | |
4487 | ||
4488 | ||
4489 | echo $ac_n "checking for --enable-htmlhelp""... $ac_c" 1>&6 | |
77e13408 | 4490 | echo "configure:4491: checking for --enable-htmlhelp" >&5 |
3379ed37 VZ |
4491 | no_cache=0 |
4492 | # Check whether --enable-htmlhelp or --disable-htmlhelp was given. | |
4493 | if test "${enable_htmlhelp+set}" = set; then | |
4494 | enableval="$enable_htmlhelp" | |
4495 | ||
4496 | if test "$enableval" = yes; then | |
4497 | ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=yes' | |
4498 | else | |
4499 | ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=no' | |
4500 | fi | |
4501 | ||
4502 | else | |
4503 | ||
4504 | LINE=`grep "wxUSE_WXHTML_HELP" ${wx_arg_cache_file}` | |
4505 | if test "x$LINE" != x ; then | |
4506 | eval "DEFAULT_$LINE" | |
4507 | else | |
4508 | no_cache=1 | |
4509 | fi | |
4510 | ||
4511 | ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP='$DEFAULT_wxUSE_WXHTML_HELP | |
4512 | ||
4513 | fi | |
4514 | ||
4515 | ||
4516 | eval "$ac_cv_use_htmlhelp" | |
4517 | if test "$no_cache" != 1; then | |
4518 | echo $ac_cv_use_htmlhelp >> ${wx_arg_cache_file}.tmp | |
4519 | fi | |
4520 | ||
4521 | if test "$wxUSE_WXHTML_HELP" = yes; then | |
4522 | echo "$ac_t""yes" 1>&6 | |
4523 | else | |
4524 | echo "$ac_t""no" 1>&6 | |
4525 | fi | |
4526 | ||
4527 | ||
698dcdb6 | 4528 | echo $ac_n "checking for --enable-constraints""... $ac_c" 1>&6 |
77e13408 | 4529 | echo "configure:4530: checking for --enable-constraints" >&5 |
10f2d63a VZ |
4530 | no_cache=0 |
4531 | # Check whether --enable-constraints or --disable-constraints was given. | |
4532 | if test "${enable_constraints+set}" = set; then | |
4533 | enableval="$enable_constraints" | |
698dcdb6 | 4534 | |
10f2d63a VZ |
4535 | if test "$enableval" = yes; then |
4536 | ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes' | |
4537 | else | |
4538 | ac_cv_use_constraints='wxUSE_CONSTRAINTS=no' | |
4539 | fi | |
698dcdb6 | 4540 | |
10f2d63a | 4541 | else |
698dcdb6 | 4542 | |
10f2d63a VZ |
4543 | LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}` |
4544 | if test "x$LINE" != x ; then | |
4545 | eval "DEFAULT_$LINE" | |
4546 | else | |
4547 | no_cache=1 | |
4548 | fi | |
4549 | ||
4550 | ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS | |
698dcdb6 VZ |
4551 | |
4552 | fi | |
10f2d63a VZ |
4553 | |
4554 | ||
4555 | eval "$ac_cv_use_constraints" | |
4556 | if test "$no_cache" != 1; then | |
4557 | echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp | |
4558 | fi | |
4559 | ||
4560 | if test "$wxUSE_CONSTRAINTS" = yes; then | |
698dcdb6 | 4561 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4562 | else |
698dcdb6 | 4563 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4564 | fi |
698dcdb6 | 4565 | |
10f2d63a | 4566 | |
698dcdb6 | 4567 | echo $ac_n "checking for --enable-printarch""... $ac_c" 1>&6 |
77e13408 | 4568 | echo "configure:4569: checking for --enable-printarch" >&5 |
10f2d63a VZ |
4569 | no_cache=0 |
4570 | # Check whether --enable-printarch or --disable-printarch was given. | |
4571 | if test "${enable_printarch+set}" = set; then | |
4572 | enableval="$enable_printarch" | |
698dcdb6 | 4573 | |
10f2d63a VZ |
4574 | if test "$enableval" = yes; then |
4575 | ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes' | |
4576 | else | |
4577 | ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no' | |
4578 | fi | |
698dcdb6 | 4579 | |
10f2d63a | 4580 | else |
698dcdb6 | 4581 | |
10f2d63a VZ |
4582 | LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}` |
4583 | if test "x$LINE" != x ; then | |
4584 | eval "DEFAULT_$LINE" | |
4585 | else | |
4586 | no_cache=1 | |
4587 | fi | |
4588 | ||
4589 | ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE | |
698dcdb6 VZ |
4590 | |
4591 | fi | |
10f2d63a VZ |
4592 | |
4593 | ||
4594 | eval "$ac_cv_use_printarch" | |
4595 | if test "$no_cache" != 1; then | |
4596 | echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp | |
4597 | fi | |
4598 | ||
4599 | if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then | |
698dcdb6 | 4600 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4601 | else |
698dcdb6 | 4602 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4603 | fi |
698dcdb6 | 4604 | |
10f2d63a | 4605 | |
698dcdb6 | 4606 | echo $ac_n "checking for --enable-mdi""... $ac_c" 1>&6 |
77e13408 | 4607 | echo "configure:4608: checking for --enable-mdi" >&5 |
10f2d63a VZ |
4608 | no_cache=0 |
4609 | # Check whether --enable-mdi or --disable-mdi was given. | |
4610 | if test "${enable_mdi+set}" = set; then | |
4611 | enableval="$enable_mdi" | |
698dcdb6 | 4612 | |
10f2d63a VZ |
4613 | if test "$enableval" = yes; then |
4614 | ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=yes' | |
4615 | else | |
4616 | ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=no' | |
4617 | fi | |
698dcdb6 | 4618 | |
10f2d63a | 4619 | else |
698dcdb6 | 4620 | |
10f2d63a VZ |
4621 | LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}` |
4622 | if test "x$LINE" != x ; then | |
4623 | eval "DEFAULT_$LINE" | |
4624 | else | |
4625 | no_cache=1 | |
4626 | fi | |
4627 | ||
4628 | ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE | |
698dcdb6 VZ |
4629 | |
4630 | fi | |
10f2d63a VZ |
4631 | |
4632 | ||
4633 | eval "$ac_cv_use_mdi" | |
4634 | if test "$no_cache" != 1; then | |
4635 | echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp | |
4636 | fi | |
4637 | ||
4638 | if test "$wxUSE_MDI_ARCHITECTURE" = yes; then | |
698dcdb6 | 4639 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4640 | else |
698dcdb6 | 4641 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4642 | fi |
698dcdb6 VZ |
4643 | |
4644 | ||
1e6feb95 | 4645 | echo $ac_n "checking for --enable-loggui""... $ac_c" 1>&6 |
77e13408 | 4646 | echo "configure:4647: checking for --enable-loggui" >&5 |
1e6feb95 VZ |
4647 | no_cache=0 |
4648 | # Check whether --enable-loggui or --disable-loggui was given. | |
4649 | if test "${enable_loggui+set}" = set; then | |
4650 | enableval="$enable_loggui" | |
4651 | ||
4652 | if test "$enableval" = yes; then | |
4653 | ac_cv_use_loggui='wxUSE_LOGGUI=yes' | |
4654 | else | |
4655 | ac_cv_use_loggui='wxUSE_LOGGUI=no' | |
4656 | fi | |
4657 | ||
4658 | else | |
4659 | ||
4660 | LINE=`grep "wxUSE_LOGGUI" ${wx_arg_cache_file}` | |
4661 | if test "x$LINE" != x ; then | |
4662 | eval "DEFAULT_$LINE" | |
4663 | else | |
4664 | no_cache=1 | |
4665 | fi | |
4666 | ||
4667 | ac_cv_use_loggui='wxUSE_LOGGUI='$DEFAULT_wxUSE_LOGGUI | |
4668 | ||
4669 | fi | |
4670 | ||
4671 | ||
4672 | eval "$ac_cv_use_loggui" | |
4673 | if test "$no_cache" != 1; then | |
4674 | echo $ac_cv_use_loggui >> ${wx_arg_cache_file}.tmp | |
4675 | fi | |
4676 | ||
4677 | if test "$wxUSE_LOGGUI" = yes; then | |
4678 | echo "$ac_t""yes" 1>&6 | |
4679 | else | |
4680 | echo "$ac_t""no" 1>&6 | |
4681 | fi | |
4682 | ||
4683 | ||
4684 | echo $ac_n "checking for --enable-logwin""... $ac_c" 1>&6 | |
77e13408 | 4685 | echo "configure:4686: checking for --enable-logwin" >&5 |
1e6feb95 VZ |
4686 | no_cache=0 |
4687 | # Check whether --enable-logwin or --disable-logwin was given. | |
4688 | if test "${enable_logwin+set}" = set; then | |
4689 | enableval="$enable_logwin" | |
4690 | ||
4691 | if test "$enableval" = yes; then | |
4692 | ac_cv_use_logwin='wxUSE_LOGWINDOW=yes' | |
4693 | else | |
4694 | ac_cv_use_logwin='wxUSE_LOGWINDOW=no' | |
4695 | fi | |
4696 | ||
4697 | else | |
4698 | ||
4699 | LINE=`grep "wxUSE_LOGWINDOW" ${wx_arg_cache_file}` | |
4700 | if test "x$LINE" != x ; then | |
4701 | eval "DEFAULT_$LINE" | |
4702 | else | |
4703 | no_cache=1 | |
4704 | fi | |
4705 | ||
4706 | ac_cv_use_logwin='wxUSE_LOGWINDOW='$DEFAULT_wxUSE_LOGWINDOW | |
4707 | ||
4708 | fi | |
4709 | ||
4710 | ||
4711 | eval "$ac_cv_use_logwin" | |
4712 | if test "$no_cache" != 1; then | |
4713 | echo $ac_cv_use_logwin >> ${wx_arg_cache_file}.tmp | |
4714 | fi | |
4715 | ||
4716 | if test "$wxUSE_LOGWINDOW" = yes; then | |
4717 | echo "$ac_t""yes" 1>&6 | |
4718 | else | |
4719 | echo "$ac_t""no" 1>&6 | |
4720 | fi | |
4721 | ||
4722 | ||
10f2d63a | 4723 | |
698dcdb6 | 4724 | echo $ac_n "checking for --enable-postscript""... $ac_c" 1>&6 |
77e13408 | 4725 | echo "configure:4726: checking for --enable-postscript" >&5 |
10f2d63a VZ |
4726 | no_cache=0 |
4727 | # Check whether --enable-postscript or --disable-postscript was given. | |
4728 | if test "${enable_postscript+set}" = set; then | |
4729 | enableval="$enable_postscript" | |
698dcdb6 | 4730 | |
10f2d63a VZ |
4731 | if test "$enableval" = yes; then |
4732 | ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes' | |
4733 | else | |
4734 | ac_cv_use_postscript='wxUSE_POSTSCRIPT=no' | |
4735 | fi | |
698dcdb6 | 4736 | |
10f2d63a | 4737 | else |
698dcdb6 | 4738 | |
10f2d63a VZ |
4739 | LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}` |
4740 | if test "x$LINE" != x ; then | |
4741 | eval "DEFAULT_$LINE" | |
4742 | else | |
4743 | no_cache=1 | |
4744 | fi | |
4745 | ||
4746 | ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT | |
698dcdb6 VZ |
4747 | |
4748 | fi | |
10f2d63a VZ |
4749 | |
4750 | ||
4751 | eval "$ac_cv_use_postscript" | |
4752 | if test "$no_cache" != 1; then | |
4753 | echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp | |
4754 | fi | |
4755 | ||
4756 | if test "$wxUSE_POSTSCRIPT" = yes; then | |
698dcdb6 | 4757 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4758 | else |
698dcdb6 | 4759 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4760 | fi |
698dcdb6 VZ |
4761 | |
4762 | ||
4763 | ||
10f2d63a | 4764 | |
1e6feb95 | 4765 | |
698dcdb6 | 4766 | echo $ac_n "checking for --enable-prologio""... $ac_c" 1>&6 |
77e13408 | 4767 | echo "configure:4768: checking for --enable-prologio" >&5 |
10f2d63a VZ |
4768 | no_cache=0 |
4769 | # Check whether --enable-prologio or --disable-prologio was given. | |
4770 | if test "${enable_prologio+set}" = set; then | |
4771 | enableval="$enable_prologio" | |
698dcdb6 | 4772 | |
10f2d63a VZ |
4773 | if test "$enableval" = yes; then |
4774 | ac_cv_use_prologio='wxUSE_PROLOGIO=yes' | |
4775 | else | |
4776 | ac_cv_use_prologio='wxUSE_PROLOGIO=no' | |
4777 | fi | |
698dcdb6 | 4778 | |
10f2d63a | 4779 | else |
698dcdb6 | 4780 | |
10f2d63a VZ |
4781 | LINE=`grep "wxUSE_PROLOGIO" ${wx_arg_cache_file}` |
4782 | if test "x$LINE" != x ; then | |
4783 | eval "DEFAULT_$LINE" | |
4784 | else | |
4785 | no_cache=1 | |
4786 | fi | |
4787 | ||
4788 | ac_cv_use_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO | |
698dcdb6 VZ |
4789 | |
4790 | fi | |
10f2d63a VZ |
4791 | |
4792 | ||
4793 | eval "$ac_cv_use_prologio" | |
4794 | if test "$no_cache" != 1; then | |
4795 | echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp | |
4796 | fi | |
4797 | ||
4798 | if test "$wxUSE_PROLOGIO" = yes; then | |
698dcdb6 | 4799 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4800 | else |
698dcdb6 | 4801 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4802 | fi |
698dcdb6 | 4803 | |
10f2d63a | 4804 | |
698dcdb6 | 4805 | echo $ac_n "checking for --enable-resources""... $ac_c" 1>&6 |
77e13408 | 4806 | echo "configure:4807: checking for --enable-resources" >&5 |
10f2d63a VZ |
4807 | no_cache=0 |
4808 | # Check whether --enable-resources or --disable-resources was given. | |
4809 | if test "${enable_resources+set}" = set; then | |
4810 | enableval="$enable_resources" | |
698dcdb6 | 4811 | |
10f2d63a VZ |
4812 | if test "$enableval" = yes; then |
4813 | ac_cv_use_resources='wxUSE_RESOURCES=yes' | |
4814 | else | |
4815 | ac_cv_use_resources='wxUSE_RESOURCES=no' | |
4816 | fi | |
698dcdb6 | 4817 | |
10f2d63a | 4818 | else |
698dcdb6 | 4819 | |
10f2d63a VZ |
4820 | LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}` |
4821 | if test "x$LINE" != x ; then | |
4822 | eval "DEFAULT_$LINE" | |
4823 | else | |
4824 | no_cache=1 | |
4825 | fi | |
4826 | ||
4827 | ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES | |
698dcdb6 VZ |
4828 | |
4829 | fi | |
10f2d63a VZ |
4830 | |
4831 | ||
4832 | eval "$ac_cv_use_resources" | |
4833 | if test "$no_cache" != 1; then | |
4834 | echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp | |
4835 | fi | |
4836 | ||
4837 | if test "$wxUSE_RESOURCES" = yes; then | |
698dcdb6 | 4838 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4839 | else |
698dcdb6 | 4840 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4841 | fi |
698dcdb6 | 4842 | |
10f2d63a | 4843 | |
698dcdb6 VZ |
4844 | |
4845 | echo $ac_n "checking for --enable-xresources""... $ac_c" 1>&6 | |
77e13408 | 4846 | echo "configure:4847: checking for --enable-xresources" >&5 |
10f2d63a VZ |
4847 | no_cache=0 |
4848 | # Check whether --enable-xresources or --disable-xresources was given. | |
4849 | if test "${enable_xresources+set}" = set; then | |
4850 | enableval="$enable_xresources" | |
698dcdb6 | 4851 | |
10f2d63a VZ |
4852 | if test "$enableval" = yes; then |
4853 | ac_cv_use_xresources='wxUSE_X_RESOURCES=yes' | |
4854 | else | |
4855 | ac_cv_use_xresources='wxUSE_X_RESOURCES=no' | |
4856 | fi | |
698dcdb6 | 4857 | |
10f2d63a | 4858 | else |
698dcdb6 | 4859 | |
10f2d63a VZ |
4860 | LINE=`grep "wxUSE_X_RESOURCES" ${wx_arg_cache_file}` |
4861 | if test "x$LINE" != x ; then | |
4862 | eval "DEFAULT_$LINE" | |
4863 | else | |
4864 | no_cache=1 | |
4865 | fi | |
4866 | ||
4867 | ac_cv_use_xresources='wxUSE_X_RESOURCES='$DEFAULT_wxUSE_X_RESOURCES | |
698dcdb6 VZ |
4868 | |
4869 | fi | |
10f2d63a VZ |
4870 | |
4871 | ||
4872 | eval "$ac_cv_use_xresources" | |
4873 | if test "$no_cache" != 1; then | |
4874 | echo $ac_cv_use_xresources >> ${wx_arg_cache_file}.tmp | |
4875 | fi | |
4876 | ||
4877 | if test "$wxUSE_X_RESOURCES" = yes; then | |
698dcdb6 | 4878 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4879 | else |
698dcdb6 | 4880 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4881 | fi |
698dcdb6 VZ |
4882 | |
4883 | ||
10f2d63a | 4884 | |
698dcdb6 VZ |
4885 | |
4886 | echo $ac_n "checking for --enable-clipboard""... $ac_c" 1>&6 | |
77e13408 | 4887 | echo "configure:4888: checking for --enable-clipboard" >&5 |
10f2d63a VZ |
4888 | no_cache=0 |
4889 | # Check whether --enable-clipboard or --disable-clipboard was given. | |
4890 | if test "${enable_clipboard+set}" = set; then | |
4891 | enableval="$enable_clipboard" | |
698dcdb6 | 4892 | |
10f2d63a VZ |
4893 | if test "$enableval" = yes; then |
4894 | ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes' | |
4895 | else | |
4896 | ac_cv_use_clipboard='wxUSE_CLIPBOARD=no' | |
4897 | fi | |
698dcdb6 | 4898 | |
10f2d63a | 4899 | else |
698dcdb6 | 4900 | |
10f2d63a VZ |
4901 | LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}` |
4902 | if test "x$LINE" != x ; then | |
4903 | eval "DEFAULT_$LINE" | |
4904 | else | |
4905 | no_cache=1 | |
4906 | fi | |
4907 | ||
4908 | ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD | |
698dcdb6 VZ |
4909 | |
4910 | fi | |
10f2d63a VZ |
4911 | |
4912 | ||
4913 | eval "$ac_cv_use_clipboard" | |
4914 | if test "$no_cache" != 1; then | |
4915 | echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp | |
4916 | fi | |
4917 | ||
4918 | if test "$wxUSE_CLIPBOARD" = yes; then | |
698dcdb6 | 4919 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4920 | else |
698dcdb6 | 4921 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4922 | fi |
698dcdb6 | 4923 | |
10f2d63a | 4924 | |
698dcdb6 | 4925 | echo $ac_n "checking for --enable-dnd""... $ac_c" 1>&6 |
77e13408 | 4926 | echo "configure:4927: checking for --enable-dnd" >&5 |
10f2d63a VZ |
4927 | no_cache=0 |
4928 | # Check whether --enable-dnd or --disable-dnd was given. | |
4929 | if test "${enable_dnd+set}" = set; then | |
4930 | enableval="$enable_dnd" | |
698dcdb6 | 4931 | |
10f2d63a VZ |
4932 | if test "$enableval" = yes; then |
4933 | ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes' | |
4934 | else | |
4935 | ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no' | |
4936 | fi | |
698dcdb6 | 4937 | |
10f2d63a | 4938 | else |
698dcdb6 | 4939 | |
10f2d63a VZ |
4940 | LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}` |
4941 | if test "x$LINE" != x ; then | |
4942 | eval "DEFAULT_$LINE" | |
4943 | else | |
4944 | no_cache=1 | |
4945 | fi | |
4946 | ||
4947 | ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP | |
698dcdb6 VZ |
4948 | |
4949 | fi | |
10f2d63a VZ |
4950 | |
4951 | ||
4952 | eval "$ac_cv_use_dnd" | |
4953 | if test "$no_cache" != 1; then | |
4954 | echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp | |
4955 | fi | |
4956 | ||
4957 | if test "$wxUSE_DRAG_AND_DROP" = yes; then | |
698dcdb6 | 4958 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4959 | else |
698dcdb6 | 4960 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4961 | fi |
698dcdb6 | 4962 | |
10f2d63a | 4963 | |
698dcdb6 | 4964 | echo $ac_n "checking for --enable-metafile""... $ac_c" 1>&6 |
77e13408 | 4965 | echo "configure:4966: checking for --enable-metafile" >&5 |
b64f0a5f RL |
4966 | no_cache=0 |
4967 | # Check whether --enable-metafile or --disable-metafile was given. | |
4968 | if test "${enable_metafile+set}" = set; then | |
4969 | enableval="$enable_metafile" | |
698dcdb6 | 4970 | |
b64f0a5f RL |
4971 | if test "$enableval" = yes; then |
4972 | ac_cv_use_metafile='wxUSE_METAFILE=yes' | |
4973 | else | |
4974 | ac_cv_use_metafile='wxUSE_METAFILE=no' | |
4975 | fi | |
698dcdb6 | 4976 | |
b64f0a5f | 4977 | else |
698dcdb6 | 4978 | |
b64f0a5f RL |
4979 | LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}` |
4980 | if test "x$LINE" != x ; then | |
4981 | eval "DEFAULT_$LINE" | |
4982 | else | |
4983 | no_cache=1 | |
4984 | fi | |
4985 | ||
4986 | ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE | |
698dcdb6 VZ |
4987 | |
4988 | fi | |
b64f0a5f RL |
4989 | |
4990 | ||
4991 | eval "$ac_cv_use_metafile" | |
4992 | if test "$no_cache" != 1; then | |
4993 | echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp | |
4994 | fi | |
4995 | ||
4996 | if test "$wxUSE_METAFILE" = yes; then | |
698dcdb6 | 4997 | echo "$ac_t""yes" 1>&6 |
b64f0a5f | 4998 | else |
698dcdb6 | 4999 | echo "$ac_t""no" 1>&6 |
b64f0a5f | 5000 | fi |
698dcdb6 VZ |
5001 | |
5002 | ||
10f2d63a | 5003 | |
24176f2c | 5004 | echo $ac_n "checking for --enable-treelayout""... $ac_c" 1>&6 |
77e13408 | 5005 | echo "configure:5006: checking for --enable-treelayout" >&5 |
10f2d63a | 5006 | no_cache=0 |
24176f2c GD |
5007 | # Check whether --enable-treelayout or --disable-treelayout was given. |
5008 | if test "${enable_treelayout+set}" = set; then | |
5009 | enableval="$enable_treelayout" | |
698dcdb6 | 5010 | |
10f2d63a | 5011 | if test "$enableval" = yes; then |
24176f2c | 5012 | ac_cv_use_treelayout='wxUSE_TREELAYOUT=yes' |
10f2d63a | 5013 | else |
24176f2c | 5014 | ac_cv_use_treelayout='wxUSE_TREELAYOUT=no' |
10f2d63a | 5015 | fi |
698dcdb6 | 5016 | |
10f2d63a | 5017 | else |
698dcdb6 | 5018 | |
24176f2c | 5019 | LINE=`grep "wxUSE_TREELAYOUT" ${wx_arg_cache_file}` |
10f2d63a VZ |
5020 | if test "x$LINE" != x ; then |
5021 | eval "DEFAULT_$LINE" | |
5022 | else | |
5023 | no_cache=1 | |
5024 | fi | |
5025 | ||
24176f2c | 5026 | ac_cv_use_treelayout='wxUSE_TREELAYOUT='$DEFAULT_wxUSE_TREELAYOUT |
698dcdb6 VZ |
5027 | |
5028 | fi | |
10f2d63a VZ |
5029 | |
5030 | ||
24176f2c | 5031 | eval "$ac_cv_use_treelayout" |
10f2d63a | 5032 | if test "$no_cache" != 1; then |
24176f2c | 5033 | echo $ac_cv_use_treelayout >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
5034 | fi |
5035 | ||
24176f2c | 5036 | if test "$wxUSE_TREELAYOUT" = yes; then |
698dcdb6 | 5037 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5038 | else |
698dcdb6 | 5039 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5040 | fi |
698dcdb6 | 5041 | |
10f2d63a | 5042 | |
698dcdb6 VZ |
5043 | |
5044 | ||
5045 | echo $ac_n "checking for --enable-controls""... $ac_c" 1>&6 | |
77e13408 | 5046 | echo "configure:5047: checking for --enable-controls" >&5 |
10f2d63a VZ |
5047 | no_cache=0 |
5048 | # Check whether --enable-controls or --disable-controls was given. | |
5049 | if test "${enable_controls+set}" = set; then | |
5050 | enableval="$enable_controls" | |
698dcdb6 | 5051 | |
10f2d63a VZ |
5052 | if test "$enableval" = yes; then |
5053 | ac_cv_use_controls='wxUSE_CONTROLS=yes' | |
5054 | else | |
5055 | ac_cv_use_controls='wxUSE_CONTROLS=no' | |
5056 | fi | |
698dcdb6 | 5057 | |
10f2d63a | 5058 | else |
698dcdb6 | 5059 | |
10f2d63a VZ |
5060 | LINE=`grep "wxUSE_CONTROLS" ${wx_arg_cache_file}` |
5061 | if test "x$LINE" != x ; then | |
5062 | eval "DEFAULT_$LINE" | |
5063 | else | |
5064 | no_cache=1 | |
5065 | fi | |
5066 | ||
5067 | ac_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS | |
698dcdb6 VZ |
5068 | |
5069 | fi | |
10f2d63a VZ |
5070 | |
5071 | ||
5072 | eval "$ac_cv_use_controls" | |
5073 | if test "$no_cache" != 1; then | |
5074 | echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp | |
5075 | fi | |
5076 | ||
5077 | if test "$wxUSE_CONTROLS" = yes; then | |
698dcdb6 | 5078 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5079 | else |
698dcdb6 | 5080 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5081 | fi |
698dcdb6 | 5082 | |
10f2d63a VZ |
5083 | |
5084 | if test "$wxUSE_CONTROLS" = "yes"; then | |
5085 | DEFAULT_wxUSE_ACCEL=yes | |
1e6feb95 VZ |
5086 | DEFAULT_wxUSE_BMPBUTTON=yes |
5087 | DEFAULT_wxUSE_BUTTON=yes | |
5088 | DEFAULT_wxUSE_CALCTRL=no | |
10f2d63a VZ |
5089 | DEFAULT_wxUSE_CARET=yes |
5090 | DEFAULT_wxUSE_COMBOBOX=yes | |
10f2d63a VZ |
5091 | DEFAULT_wxUSE_CHECKBOX=yes |
5092 | DEFAULT_wxUSE_CHECKLISTBOX=yes | |
5093 | DEFAULT_wxUSE_CHOICE=yes | |
5094 | DEFAULT_wxUSE_GAUGE=yes | |
5095 | DEFAULT_wxUSE_GRID=yes | |
cc977e5f | 5096 | DEFAULT_wxUSE_NEW_GRID=yes |
10f2d63a VZ |
5097 | DEFAULT_wxUSE_IMAGLIST=yes |
5098 | DEFAULT_wxUSE_LISTBOX=yes | |
5099 | DEFAULT_wxUSE_LISTCTRL=yes | |
5100 | DEFAULT_wxUSE_NOTEBOOK=yes | |
24176f2c | 5101 | DEFAULT_wxUSE_PROPSHEET=yes |
10f2d63a VZ |
5102 | DEFAULT_wxUSE_RADIOBOX=yes |
5103 | DEFAULT_wxUSE_RADIOBTN=yes | |
5104 | DEFAULT_wxUSE_SASH=yes | |
5105 | DEFAULT_wxUSE_SCROLLBAR=yes | |
5106 | DEFAULT_wxUSE_SLIDER=yes | |
5107 | DEFAULT_wxUSE_SPINBTN=yes | |
56cfaa52 | 5108 | DEFAULT_wxUSE_SPINCTRL=yes |
10f2d63a VZ |
5109 | DEFAULT_wxUSE_SPLITTER=yes |
5110 | DEFAULT_wxUSE_STATBMP=yes | |
5111 | DEFAULT_wxUSE_STATBOX=yes | |
5112 | DEFAULT_wxUSE_STATLINE=yes | |
5113 | DEFAULT_wxUSE_STATUSBAR=yes | |
5114 | DEFAULT_wxUSE_TAB_DIALOG=yes | |
1db8dc4a | 5115 | DEFAULT_wxUSE_TOGGLEBTN=yes |
10f2d63a | 5116 | DEFAULT_wxUSE_TOOLBAR=yes |
360d6699 VZ |
5117 | DEFAULT_wxUSE_TOOLBAR_NATIVE=yes |
5118 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes | |
10f2d63a VZ |
5119 | DEFAULT_wxUSE_TOOLTIPS=yes |
5120 | DEFAULT_wxUSE_TREECTRL=yes | |
9f41d601 | 5121 | DEFAULT_wxUSE_POPUPWIN=yes |
10f2d63a VZ |
5122 | elif test "$wxUSE_CONTROLS" = "no"; then |
5123 | DEFAULT_wxUSE_ACCEL=no | |
1e6feb95 VZ |
5124 | DEFAULT_wxUSE_BMPBUTTON=no |
5125 | DEFAULT_wxUSE_BUTTON=no | |
5126 | DEFAULT_wxUSE_CALCTRL=no | |
10f2d63a VZ |
5127 | DEFAULT_wxUSE_CARET=no |
5128 | DEFAULT_wxUSE_COMBOBOX=no | |
10f2d63a VZ |
5129 | DEFAULT_wxUSE_CHECKBOX=no |
5130 | DEFAULT_wxUSE_CHECKLISTBOX=no | |
5131 | DEFAULT_wxUSE_CHOICE=no | |
5132 | DEFAULT_wxUSE_GAUGE=no | |
5133 | DEFAULT_wxUSE_GRID=no | |
5134 | DEFAULT_wxUSE_NEW_GRID=no | |
5135 | DEFAULT_wxUSE_IMAGLIST=no | |
5136 | DEFAULT_wxUSE_LISTBOX=no | |
5137 | DEFAULT_wxUSE_LISTCTRL=no | |
5138 | DEFAULT_wxUSE_NOTEBOOK=no | |
24176f2c | 5139 | DEFAULT_wxUSE_PROPSHEET=no |
10f2d63a VZ |
5140 | DEFAULT_wxUSE_RADIOBOX=no |
5141 | DEFAULT_wxUSE_RADIOBTN=no | |
5142 | DEFAULT_wxUSE_SASH=no | |
5143 | DEFAULT_wxUSE_SCROLLBAR=no | |
5144 | DEFAULT_wxUSE_SLIDER=no | |
5145 | DEFAULT_wxUSE_SPINBTN=no | |
56cfaa52 | 5146 | DEFAULT_wxUSE_SPINCTRL=no |
10f2d63a VZ |
5147 | DEFAULT_wxUSE_SPLITTER=no |
5148 | DEFAULT_wxUSE_STATBMP=no | |
5149 | DEFAULT_wxUSE_STATBOX=no | |
5150 | DEFAULT_wxUSE_STATLINE=no | |
5151 | DEFAULT_wxUSE_STATUSBAR=no | |
5152 | DEFAULT_wxUSE_TAB_DIALOG=no | |
1db8dc4a | 5153 | DEFAULT_wxUSE_TOGGLEBTN=no |
10f2d63a | 5154 | DEFAULT_wxUSE_TOOLBAR=no |
360d6699 VZ |
5155 | DEFAULT_wxUSE_TOOLBAR_NATIVE=no |
5156 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=no | |
10f2d63a VZ |
5157 | DEFAULT_wxUSE_TOOLTIPS=no |
5158 | DEFAULT_wxUSE_TREECTRL=no | |
9f41d601 | 5159 | DEFAULT_wxUSE_POPUPWIN=no |
10f2d63a VZ |
5160 | fi |
5161 | ||
698dcdb6 VZ |
5162 | |
5163 | echo $ac_n "checking for --enable-accel""... $ac_c" 1>&6 | |
77e13408 | 5164 | echo "configure:5165: checking for --enable-accel" >&5 |
10f2d63a VZ |
5165 | no_cache=0 |
5166 | # Check whether --enable-accel or --disable-accel was given. | |
5167 | if test "${enable_accel+set}" = set; then | |
5168 | enableval="$enable_accel" | |
698dcdb6 | 5169 | |
10f2d63a VZ |
5170 | if test "$enableval" = yes; then |
5171 | ac_cv_use_accel='wxUSE_ACCEL=yes' | |
5172 | else | |
5173 | ac_cv_use_accel='wxUSE_ACCEL=no' | |
5174 | fi | |
698dcdb6 | 5175 | |
10f2d63a | 5176 | else |
698dcdb6 | 5177 | |
10f2d63a VZ |
5178 | LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}` |
5179 | if test "x$LINE" != x ; then | |
5180 | eval "DEFAULT_$LINE" | |
5181 | else | |
5182 | no_cache=1 | |
5183 | fi | |
5184 | ||
5185 | ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL | |
698dcdb6 VZ |
5186 | |
5187 | fi | |
10f2d63a VZ |
5188 | |
5189 | ||
5190 | eval "$ac_cv_use_accel" | |
5191 | if test "$no_cache" != 1; then | |
5192 | echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp | |
5193 | fi | |
5194 | ||
5195 | if test "$wxUSE_ACCEL" = yes; then | |
698dcdb6 | 5196 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5197 | else |
698dcdb6 | 5198 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5199 | fi |
698dcdb6 | 5200 | |
10f2d63a | 5201 | |
1e6feb95 | 5202 | echo $ac_n "checking for --enable-button""... $ac_c" 1>&6 |
77e13408 | 5203 | echo "configure:5204: checking for --enable-button" >&5 |
10f2d63a | 5204 | no_cache=0 |
1e6feb95 VZ |
5205 | # Check whether --enable-button or --disable-button was given. |
5206 | if test "${enable_button+set}" = set; then | |
5207 | enableval="$enable_button" | |
698dcdb6 | 5208 | |
10f2d63a | 5209 | if test "$enableval" = yes; then |
1e6feb95 | 5210 | ac_cv_use_button='wxUSE_BUTTON=yes' |
10f2d63a | 5211 | else |
1e6feb95 | 5212 | ac_cv_use_button='wxUSE_BUTTON=no' |
10f2d63a | 5213 | fi |
698dcdb6 | 5214 | |
10f2d63a | 5215 | else |
698dcdb6 | 5216 | |
1e6feb95 | 5217 | LINE=`grep "wxUSE_BUTTON" ${wx_arg_cache_file}` |
10f2d63a VZ |
5218 | if test "x$LINE" != x ; then |
5219 | eval "DEFAULT_$LINE" | |
5220 | else | |
5221 | no_cache=1 | |
5222 | fi | |
5223 | ||
1e6feb95 | 5224 | ac_cv_use_button='wxUSE_BUTTON='$DEFAULT_wxUSE_BUTTON |
698dcdb6 VZ |
5225 | |
5226 | fi | |
10f2d63a VZ |
5227 | |
5228 | ||
1e6feb95 | 5229 | eval "$ac_cv_use_button" |
10f2d63a | 5230 | if test "$no_cache" != 1; then |
1e6feb95 | 5231 | echo $ac_cv_use_button >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
5232 | fi |
5233 | ||
1e6feb95 | 5234 | if test "$wxUSE_BUTTON" = yes; then |
698dcdb6 | 5235 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5236 | else |
698dcdb6 | 5237 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5238 | fi |
698dcdb6 | 5239 | |
10f2d63a | 5240 | |
698dcdb6 | 5241 | echo $ac_n "checking for --enable-bmpbutton""... $ac_c" 1>&6 |
77e13408 | 5242 | echo "configure:5243: checking for --enable-bmpbutton" >&5 |
10f2d63a VZ |
5243 | no_cache=0 |
5244 | # Check whether --enable-bmpbutton or --disable-bmpbutton was given. | |
5245 | if test "${enable_bmpbutton+set}" = set; then | |
5246 | enableval="$enable_bmpbutton" | |
698dcdb6 | 5247 | |
10f2d63a VZ |
5248 | if test "$enableval" = yes; then |
5249 | ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes' | |
5250 | else | |
5251 | ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no' | |
5252 | fi | |
698dcdb6 | 5253 | |
10f2d63a | 5254 | else |
698dcdb6 | 5255 | |
10f2d63a VZ |
5256 | LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}` |
5257 | if test "x$LINE" != x ; then | |
5258 | eval "DEFAULT_$LINE" | |
5259 | else | |
5260 | no_cache=1 | |
5261 | fi | |
5262 | ||
5263 | ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON | |
698dcdb6 VZ |
5264 | |
5265 | fi | |
10f2d63a VZ |
5266 | |
5267 | ||
5268 | eval "$ac_cv_use_bmpbutton" | |
5269 | if test "$no_cache" != 1; then | |
5270 | echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp | |
5271 | fi | |
5272 | ||
5273 | if test "$wxUSE_BMPBUTTON" = yes; then | |
698dcdb6 | 5274 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5275 | else |
698dcdb6 | 5276 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5277 | fi |
698dcdb6 | 5278 | |
10f2d63a | 5279 | |
1e6feb95 | 5280 | echo $ac_n "checking for --enable-calendar""... $ac_c" 1>&6 |
77e13408 | 5281 | echo "configure:5282: checking for --enable-calendar" >&5 |
1e6feb95 VZ |
5282 | no_cache=0 |
5283 | # Check whether --enable-calendar or --disable-calendar was given. | |
5284 | if test "${enable_calendar+set}" = set; then | |
5285 | enableval="$enable_calendar" | |
5286 | ||
5287 | if test "$enableval" = yes; then | |
5288 | ac_cv_use_calendar='wxUSE_CALCTRL=yes' | |
5289 | else | |
5290 | ac_cv_use_calendar='wxUSE_CALCTRL=no' | |
5291 | fi | |
5292 | ||
5293 | else | |
5294 | ||
5295 | LINE=`grep "wxUSE_CALCTRL" ${wx_arg_cache_file}` | |
5296 | if test "x$LINE" != x ; then | |
5297 | eval "DEFAULT_$LINE" | |
5298 | else | |
5299 | no_cache=1 | |
5300 | fi | |
5301 | ||
5302 | ac_cv_use_calendar='wxUSE_CALCTRL='$DEFAULT_wxUSE_CALCTRL | |
5303 | ||
5304 | fi | |
5305 | ||
5306 | ||
5307 | eval "$ac_cv_use_calendar" | |
5308 | if test "$no_cache" != 1; then | |
5309 | echo $ac_cv_use_calendar >> ${wx_arg_cache_file}.tmp | |
5310 | fi | |
5311 | ||
5312 | if test "$wxUSE_CALCTRL" = yes; then | |
5313 | echo "$ac_t""yes" 1>&6 | |
5314 | else | |
5315 | echo "$ac_t""no" 1>&6 | |
5316 | fi | |
5317 | ||
5318 | ||
5319 | echo $ac_n "checking for --enable-caret""... $ac_c" 1>&6 | |
77e13408 | 5320 | echo "configure:5321: checking for --enable-caret" >&5 |
1e6feb95 VZ |
5321 | no_cache=0 |
5322 | # Check whether --enable-caret or --disable-caret was given. | |
5323 | if test "${enable_caret+set}" = set; then | |
5324 | enableval="$enable_caret" | |
5325 | ||
5326 | if test "$enableval" = yes; then | |
5327 | ac_cv_use_caret='wxUSE_CARET=yes' | |
5328 | else | |
5329 | ac_cv_use_caret='wxUSE_CARET=no' | |
5330 | fi | |
5331 | ||
5332 | else | |
5333 | ||
5334 | LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}` | |
5335 | if test "x$LINE" != x ; then | |
5336 | eval "DEFAULT_$LINE" | |
5337 | else | |
5338 | no_cache=1 | |
5339 | fi | |
5340 | ||
5341 | ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET | |
5342 | ||
5343 | fi | |
5344 | ||
5345 | ||
5346 | eval "$ac_cv_use_caret" | |
5347 | if test "$no_cache" != 1; then | |
5348 | echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp | |
5349 | fi | |
5350 | ||
5351 | if test "$wxUSE_CARET" = yes; then | |
5352 | echo "$ac_t""yes" 1>&6 | |
5353 | else | |
5354 | echo "$ac_t""no" 1>&6 | |
5355 | fi | |
5356 | ||
5357 | ||
698dcdb6 | 5358 | echo $ac_n "checking for --enable-checkbox""... $ac_c" 1>&6 |
77e13408 | 5359 | echo "configure:5360: checking for --enable-checkbox" >&5 |
10f2d63a VZ |
5360 | no_cache=0 |
5361 | # Check whether --enable-checkbox or --disable-checkbox was given. | |
5362 | if test "${enable_checkbox+set}" = set; then | |
5363 | enableval="$enable_checkbox" | |
698dcdb6 | 5364 | |
10f2d63a VZ |
5365 | if test "$enableval" = yes; then |
5366 | ac_cv_use_checkbox='wxUSE_CHECKBOX=yes' | |
5367 | else | |
5368 | ac_cv_use_checkbox='wxUSE_CHECKBOX=no' | |
5369 | fi | |
698dcdb6 | 5370 | |
10f2d63a | 5371 | else |
698dcdb6 | 5372 | |
10f2d63a VZ |
5373 | LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}` |
5374 | if test "x$LINE" != x ; then | |
5375 | eval "DEFAULT_$LINE" | |
5376 | else | |
5377 | no_cache=1 | |
5378 | fi | |
5379 | ||
5380 | ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX | |
698dcdb6 VZ |
5381 | |
5382 | fi | |
10f2d63a VZ |
5383 | |
5384 | ||
5385 | eval "$ac_cv_use_checkbox" | |
5386 | if test "$no_cache" != 1; then | |
5387 | echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp | |
5388 | fi | |
5389 | ||
5390 | if test "$wxUSE_CHECKBOX" = yes; then | |
698dcdb6 | 5391 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5392 | else |
698dcdb6 | 5393 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5394 | fi |
698dcdb6 | 5395 | |
10f2d63a | 5396 | |
698dcdb6 | 5397 | echo $ac_n "checking for --enable-checklst""... $ac_c" 1>&6 |
77e13408 | 5398 | echo "configure:5399: checking for --enable-checklst" >&5 |
10f2d63a VZ |
5399 | no_cache=0 |
5400 | # Check whether --enable-checklst or --disable-checklst was given. | |
5401 | if test "${enable_checklst+set}" = set; then | |
5402 | enableval="$enable_checklst" | |
698dcdb6 | 5403 | |
10f2d63a VZ |
5404 | if test "$enableval" = yes; then |
5405 | ac_cv_use_checklst='wxUSE_CHECKLST=yes' | |
5406 | else | |
5407 | ac_cv_use_checklst='wxUSE_CHECKLST=no' | |
5408 | fi | |
698dcdb6 | 5409 | |
10f2d63a | 5410 | else |
698dcdb6 | 5411 | |
10f2d63a VZ |
5412 | LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}` |
5413 | if test "x$LINE" != x ; then | |
5414 | eval "DEFAULT_$LINE" | |
5415 | else | |
5416 | no_cache=1 | |
5417 | fi | |
5418 | ||
5419 | ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST | |
698dcdb6 VZ |
5420 | |
5421 | fi | |
10f2d63a VZ |
5422 | |
5423 | ||
5424 | eval "$ac_cv_use_checklst" | |
5425 | if test "$no_cache" != 1; then | |
5426 | echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp | |
5427 | fi | |
5428 | ||
5429 | if test "$wxUSE_CHECKLST" = yes; then | |
698dcdb6 | 5430 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5431 | else |
698dcdb6 | 5432 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5433 | fi |
698dcdb6 | 5434 | |
10f2d63a | 5435 | |
698dcdb6 | 5436 | echo $ac_n "checking for --enable-choice""... $ac_c" 1>&6 |
77e13408 | 5437 | echo "configure:5438: checking for --enable-choice" >&5 |
10f2d63a VZ |
5438 | no_cache=0 |
5439 | # Check whether --enable-choice or --disable-choice was given. | |
5440 | if test "${enable_choice+set}" = set; then | |
5441 | enableval="$enable_choice" | |
698dcdb6 | 5442 | |
10f2d63a VZ |
5443 | if test "$enableval" = yes; then |
5444 | ac_cv_use_choice='wxUSE_CHOICE=yes' | |
5445 | else | |
5446 | ac_cv_use_choice='wxUSE_CHOICE=no' | |
5447 | fi | |
698dcdb6 | 5448 | |
10f2d63a | 5449 | else |
698dcdb6 | 5450 | |
10f2d63a VZ |
5451 | LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}` |
5452 | if test "x$LINE" != x ; then | |
5453 | eval "DEFAULT_$LINE" | |
5454 | else | |
5455 | no_cache=1 | |
5456 | fi | |
5457 | ||
5458 | ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE | |
698dcdb6 VZ |
5459 | |
5460 | fi | |
10f2d63a VZ |
5461 | |
5462 | ||
5463 | eval "$ac_cv_use_choice" | |
5464 | if test "$no_cache" != 1; then | |
5465 | echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp | |
5466 | fi | |
5467 | ||
5468 | if test "$wxUSE_CHOICE" = yes; then | |
698dcdb6 | 5469 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5470 | else |
698dcdb6 | 5471 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5472 | fi |
698dcdb6 | 5473 | |
10f2d63a | 5474 | |
698dcdb6 | 5475 | echo $ac_n "checking for --enable-combobox""... $ac_c" 1>&6 |
77e13408 | 5476 | echo "configure:5477: checking for --enable-combobox" >&5 |
10f2d63a VZ |
5477 | no_cache=0 |
5478 | # Check whether --enable-combobox or --disable-combobox was given. | |
5479 | if test "${enable_combobox+set}" = set; then | |
5480 | enableval="$enable_combobox" | |
698dcdb6 | 5481 | |
10f2d63a VZ |
5482 | if test "$enableval" = yes; then |
5483 | ac_cv_use_combobox='wxUSE_COMBOBOX=yes' | |
5484 | else | |
5485 | ac_cv_use_combobox='wxUSE_COMBOBOX=no' | |
5486 | fi | |
698dcdb6 | 5487 | |
10f2d63a | 5488 | else |
698dcdb6 | 5489 | |
10f2d63a VZ |
5490 | LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}` |
5491 | if test "x$LINE" != x ; then | |
5492 | eval "DEFAULT_$LINE" | |
5493 | else | |
5494 | no_cache=1 | |
5495 | fi | |
5496 | ||
5497 | ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX | |
698dcdb6 VZ |
5498 | |
5499 | fi | |
10f2d63a VZ |
5500 | |
5501 | ||
5502 | eval "$ac_cv_use_combobox" | |
5503 | if test "$no_cache" != 1; then | |
5504 | echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp | |
5505 | fi | |
5506 | ||
5507 | if test "$wxUSE_COMBOBOX" = yes; then | |
698dcdb6 | 5508 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5509 | else |
698dcdb6 | 5510 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5511 | fi |
698dcdb6 | 5512 | |
10f2d63a | 5513 | |
698dcdb6 | 5514 | echo $ac_n "checking for --enable-gauge""... $ac_c" 1>&6 |
77e13408 | 5515 | echo "configure:5516: checking for --enable-gauge" >&5 |
10f2d63a VZ |
5516 | no_cache=0 |
5517 | # Check whether --enable-gauge or --disable-gauge was given. | |
5518 | if test "${enable_gauge+set}" = set; then | |
5519 | enableval="$enable_gauge" | |
698dcdb6 | 5520 | |
10f2d63a VZ |
5521 | if test "$enableval" = yes; then |
5522 | ac_cv_use_gauge='wxUSE_GAUGE=yes' | |
5523 | else | |
5524 | ac_cv_use_gauge='wxUSE_GAUGE=no' | |
5525 | fi | |
698dcdb6 | 5526 | |
10f2d63a | 5527 | else |
698dcdb6 | 5528 | |
10f2d63a VZ |
5529 | LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}` |
5530 | if test "x$LINE" != x ; then | |
5531 | eval "DEFAULT_$LINE" | |
5532 | else | |
5533 | no_cache=1 | |
5534 | fi | |
5535 | ||
5536 | ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE | |
698dcdb6 VZ |
5537 | |
5538 | fi | |
10f2d63a VZ |
5539 | |
5540 | ||
5541 | eval "$ac_cv_use_gauge" | |
5542 | if test "$no_cache" != 1; then | |
5543 | echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp | |
5544 | fi | |
5545 | ||
5546 | if test "$wxUSE_GAUGE" = yes; then | |
698dcdb6 | 5547 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5548 | else |
698dcdb6 | 5549 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5550 | fi |
698dcdb6 | 5551 | |
10f2d63a | 5552 | |
698dcdb6 | 5553 | echo $ac_n "checking for --enable-grid""... $ac_c" 1>&6 |
77e13408 | 5554 | echo "configure:5555: checking for --enable-grid" >&5 |
10f2d63a VZ |
5555 | no_cache=0 |
5556 | # Check whether --enable-grid or --disable-grid was given. | |
5557 | if test "${enable_grid+set}" = set; then | |
5558 | enableval="$enable_grid" | |
698dcdb6 | 5559 | |
10f2d63a VZ |
5560 | if test "$enableval" = yes; then |
5561 | ac_cv_use_grid='wxUSE_GRID=yes' | |
5562 | else | |
5563 | ac_cv_use_grid='wxUSE_GRID=no' | |
5564 | fi | |
698dcdb6 | 5565 | |
10f2d63a | 5566 | else |
698dcdb6 | 5567 | |
10f2d63a VZ |
5568 | LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}` |
5569 | if test "x$LINE" != x ; then | |
5570 | eval "DEFAULT_$LINE" | |
5571 | else | |
5572 | no_cache=1 | |
5573 | fi | |
5574 | ||
5575 | ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID | |
698dcdb6 VZ |
5576 | |
5577 | fi | |
10f2d63a VZ |
5578 | |
5579 | ||
5580 | eval "$ac_cv_use_grid" | |
5581 | if test "$no_cache" != 1; then | |
5582 | echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp | |
5583 | fi | |
5584 | ||
5585 | if test "$wxUSE_GRID" = yes; then | |
698dcdb6 | 5586 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5587 | else |
698dcdb6 | 5588 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5589 | fi |
698dcdb6 | 5590 | |
10f2d63a | 5591 | |
698dcdb6 | 5592 | echo $ac_n "checking for --enable-newgrid""... $ac_c" 1>&6 |
77e13408 | 5593 | echo "configure:5594: checking for --enable-newgrid" >&5 |
10f2d63a VZ |
5594 | no_cache=0 |
5595 | # Check whether --enable-newgrid or --disable-newgrid was given. | |
5596 | if test "${enable_newgrid+set}" = set; then | |
5597 | enableval="$enable_newgrid" | |
698dcdb6 | 5598 | |
10f2d63a VZ |
5599 | if test "$enableval" = yes; then |
5600 | ac_cv_use_newgrid='wxUSE_NEW_GRID=yes' | |
5601 | else | |
5602 | ac_cv_use_newgrid='wxUSE_NEW_GRID=no' | |
5603 | fi | |
698dcdb6 | 5604 | |
10f2d63a | 5605 | else |
698dcdb6 | 5606 | |
10f2d63a VZ |
5607 | LINE=`grep "wxUSE_NEW_GRID" ${wx_arg_cache_file}` |
5608 | if test "x$LINE" != x ; then | |
5609 | eval "DEFAULT_$LINE" | |
5610 | else | |
5611 | no_cache=1 | |
5612 | fi | |
5613 | ||
5614 | ac_cv_use_newgrid='wxUSE_NEW_GRID='$DEFAULT_wxUSE_NEW_GRID | |
698dcdb6 VZ |
5615 | |
5616 | fi | |
10f2d63a VZ |
5617 | |
5618 | ||
5619 | eval "$ac_cv_use_newgrid" | |
5620 | if test "$no_cache" != 1; then | |
5621 | echo $ac_cv_use_newgrid >> ${wx_arg_cache_file}.tmp | |
5622 | fi | |
5623 | ||
5624 | if test "$wxUSE_NEW_GRID" = yes; then | |
698dcdb6 | 5625 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5626 | else |
698dcdb6 | 5627 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5628 | fi |
698dcdb6 | 5629 | |
10f2d63a | 5630 | |
698dcdb6 | 5631 | echo $ac_n "checking for --enable-imaglist""... $ac_c" 1>&6 |
77e13408 | 5632 | echo "configure:5633: checking for --enable-imaglist" >&5 |
10f2d63a VZ |
5633 | no_cache=0 |
5634 | # Check whether --enable-imaglist or --disable-imaglist was given. | |
5635 | if test "${enable_imaglist+set}" = set; then | |
5636 | enableval="$enable_imaglist" | |
698dcdb6 | 5637 | |
10f2d63a VZ |
5638 | if test "$enableval" = yes; then |
5639 | ac_cv_use_imaglist='wxUSE_IMAGLIST=yes' | |
5640 | else | |
5641 | ac_cv_use_imaglist='wxUSE_IMAGLIST=no' | |
5642 | fi | |
698dcdb6 | 5643 | |
10f2d63a | 5644 | else |
698dcdb6 | 5645 | |
10f2d63a VZ |
5646 | LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}` |
5647 | if test "x$LINE" != x ; then | |
5648 | eval "DEFAULT_$LINE" | |
5649 | else | |
5650 | no_cache=1 | |
5651 | fi | |
5652 | ||
5653 | ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST | |
698dcdb6 VZ |
5654 | |
5655 | fi | |
10f2d63a VZ |
5656 | |
5657 | ||
5658 | eval "$ac_cv_use_imaglist" | |
5659 | if test "$no_cache" != 1; then | |
5660 | echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp | |
5661 | fi | |
5662 | ||
5663 | if test "$wxUSE_IMAGLIST" = yes; then | |
698dcdb6 | 5664 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5665 | else |
698dcdb6 | 5666 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5667 | fi |
698dcdb6 | 5668 | |
10f2d63a | 5669 | |
698dcdb6 | 5670 | echo $ac_n "checking for --enable-listbox""... $ac_c" 1>&6 |
77e13408 | 5671 | echo "configure:5672: checking for --enable-listbox" >&5 |
10f2d63a VZ |
5672 | no_cache=0 |
5673 | # Check whether --enable-listbox or --disable-listbox was given. | |
5674 | if test "${enable_listbox+set}" = set; then | |
5675 | enableval="$enable_listbox" | |
698dcdb6 | 5676 | |
10f2d63a VZ |
5677 | if test "$enableval" = yes; then |
5678 | ac_cv_use_listbox='wxUSE_LISTBOX=yes' | |
5679 | else | |
5680 | ac_cv_use_listbox='wxUSE_LISTBOX=no' | |
5681 | fi | |
698dcdb6 | 5682 | |
10f2d63a | 5683 | else |
698dcdb6 | 5684 | |
10f2d63a VZ |
5685 | LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}` |
5686 | if test "x$LINE" != x ; then | |
5687 | eval "DEFAULT_$LINE" | |
5688 | else | |
5689 | no_cache=1 | |
5690 | fi | |
5691 | ||
5692 | ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX | |
698dcdb6 VZ |
5693 | |
5694 | fi | |
10f2d63a VZ |
5695 | |
5696 | ||
5697 | eval "$ac_cv_use_listbox" | |
5698 | if test "$no_cache" != 1; then | |
5699 | echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp | |
5700 | fi | |
5701 | ||
5702 | if test "$wxUSE_LISTBOX" = yes; then | |
698dcdb6 | 5703 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5704 | else |
698dcdb6 | 5705 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5706 | fi |
698dcdb6 | 5707 | |
10f2d63a | 5708 | |
698dcdb6 | 5709 | echo $ac_n "checking for --enable-listctrl""... $ac_c" 1>&6 |
77e13408 | 5710 | echo "configure:5711: checking for --enable-listctrl" >&5 |
10f2d63a VZ |
5711 | no_cache=0 |
5712 | # Check whether --enable-listctrl or --disable-listctrl was given. | |
5713 | if test "${enable_listctrl+set}" = set; then | |
5714 | enableval="$enable_listctrl" | |
698dcdb6 | 5715 | |
10f2d63a VZ |
5716 | if test "$enableval" = yes; then |
5717 | ac_cv_use_listctrl='wxUSE_LISTCTRL=yes' | |
5718 | else | |
5719 | ac_cv_use_listctrl='wxUSE_LISTCTRL=no' | |
5720 | fi | |
698dcdb6 | 5721 | |
10f2d63a | 5722 | else |
698dcdb6 | 5723 | |
10f2d63a VZ |
5724 | LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}` |
5725 | if test "x$LINE" != x ; then | |
5726 | eval "DEFAULT_$LINE" | |
5727 | else | |
5728 | no_cache=1 | |
5729 | fi | |
5730 | ||
5731 | ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL | |
698dcdb6 VZ |
5732 | |
5733 | fi | |
10f2d63a VZ |
5734 | |
5735 | ||
5736 | eval "$ac_cv_use_listctrl" | |
5737 | if test "$no_cache" != 1; then | |
5738 | echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp | |
5739 | fi | |
5740 | ||
5741 | if test "$wxUSE_LISTCTRL" = yes; then | |
698dcdb6 | 5742 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5743 | else |
698dcdb6 | 5744 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5745 | fi |
698dcdb6 | 5746 | |
10f2d63a | 5747 | |
698dcdb6 | 5748 | echo $ac_n "checking for --enable-notebook""... $ac_c" 1>&6 |
77e13408 | 5749 | echo "configure:5750: checking for --enable-notebook" >&5 |
10f2d63a VZ |
5750 | no_cache=0 |
5751 | # Check whether --enable-notebook or --disable-notebook was given. | |
5752 | if test "${enable_notebook+set}" = set; then | |
5753 | enableval="$enable_notebook" | |
698dcdb6 | 5754 | |
10f2d63a VZ |
5755 | if test "$enableval" = yes; then |
5756 | ac_cv_use_notebook='wxUSE_NOTEBOOK=yes' | |
5757 | else | |
5758 | ac_cv_use_notebook='wxUSE_NOTEBOOK=no' | |
5759 | fi | |
698dcdb6 | 5760 | |
10f2d63a | 5761 | else |
698dcdb6 | 5762 | |
10f2d63a VZ |
5763 | LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}` |
5764 | if test "x$LINE" != x ; then | |
5765 | eval "DEFAULT_$LINE" | |
5766 | else | |
5767 | no_cache=1 | |
5768 | fi | |
5769 | ||
5770 | ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK | |
698dcdb6 VZ |
5771 | |
5772 | fi | |
10f2d63a VZ |
5773 | |
5774 | ||
5775 | eval "$ac_cv_use_notebook" | |
5776 | if test "$no_cache" != 1; then | |
5777 | echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp | |
5778 | fi | |
5779 | ||
5780 | if test "$wxUSE_NOTEBOOK" = yes; then | |
698dcdb6 | 5781 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5782 | else |
698dcdb6 | 5783 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5784 | fi |
698dcdb6 | 5785 | |
10f2d63a | 5786 | |
24176f2c | 5787 | echo $ac_n "checking for --enable-propsheet""... $ac_c" 1>&6 |
77e13408 | 5788 | echo "configure:5789: checking for --enable-propsheet" >&5 |
24176f2c GD |
5789 | no_cache=0 |
5790 | # Check whether --enable-propsheet or --disable-propsheet was given. | |
5791 | if test "${enable_propsheet+set}" = set; then | |
5792 | enableval="$enable_propsheet" | |
5793 | ||
5794 | if test "$enableval" = yes; then | |
5795 | ac_cv_use_propsheet='wxUSE_PROPSHEET=yes' | |
5796 | else | |
5797 | ac_cv_use_propsheet='wxUSE_PROPSHEET=no' | |
5798 | fi | |
5799 | ||
5800 | else | |
5801 | ||
5802 | LINE=`grep "wxUSE_PROPSHEET" ${wx_arg_cache_file}` | |
5803 | if test "x$LINE" != x ; then | |
5804 | eval "DEFAULT_$LINE" | |
5805 | else | |
5806 | no_cache=1 | |
5807 | fi | |
5808 | ||
5809 | ac_cv_use_propsheet='wxUSE_PROPSHEET='$DEFAULT_wxUSE_PROPSHEET | |
5810 | ||
5811 | fi | |
5812 | ||
5813 | ||
5814 | eval "$ac_cv_use_propsheet" | |
5815 | if test "$no_cache" != 1; then | |
5816 | echo $ac_cv_use_propsheet >> ${wx_arg_cache_file}.tmp | |
5817 | fi | |
5818 | ||
5819 | if test "$wxUSE_PROPSHEET" = yes; then | |
5820 | echo "$ac_t""yes" 1>&6 | |
5821 | else | |
5822 | echo "$ac_t""no" 1>&6 | |
5823 | fi | |
5824 | ||
5825 | ||
698dcdb6 | 5826 | echo $ac_n "checking for --enable-radiobox""... $ac_c" 1>&6 |
77e13408 | 5827 | echo "configure:5828: checking for --enable-radiobox" >&5 |
10f2d63a VZ |
5828 | no_cache=0 |
5829 | # Check whether --enable-radiobox or --disable-radiobox was given. | |
5830 | if test "${enable_radiobox+set}" = set; then | |
5831 | enableval="$enable_radiobox" | |
698dcdb6 | 5832 | |
10f2d63a VZ |
5833 | if test "$enableval" = yes; then |
5834 | ac_cv_use_radiobox='wxUSE_RADIOBOX=yes' | |
5835 | else | |
5836 | ac_cv_use_radiobox='wxUSE_RADIOBOX=no' | |
5837 | fi | |
698dcdb6 | 5838 | |
10f2d63a | 5839 | else |
698dcdb6 | 5840 | |
10f2d63a VZ |
5841 | LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}` |
5842 | if test "x$LINE" != x ; then | |
5843 | eval "DEFAULT_$LINE" | |
5844 | else | |
5845 | no_cache=1 | |
5846 | fi | |
5847 | ||
5848 | ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX | |
698dcdb6 VZ |
5849 | |
5850 | fi | |
10f2d63a VZ |
5851 | |
5852 | ||
5853 | eval "$ac_cv_use_radiobox" | |
5854 | if test "$no_cache" != 1; then | |
5855 | echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp | |
5856 | fi | |
5857 | ||
5858 | if test "$wxUSE_RADIOBOX" = yes; then | |
698dcdb6 | 5859 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5860 | else |
698dcdb6 | 5861 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5862 | fi |
698dcdb6 | 5863 | |
10f2d63a | 5864 | |
698dcdb6 | 5865 | echo $ac_n "checking for --enable-radiobtn""... $ac_c" 1>&6 |
77e13408 | 5866 | echo "configure:5867: checking for --enable-radiobtn" >&5 |
10f2d63a VZ |
5867 | no_cache=0 |
5868 | # Check whether --enable-radiobtn or --disable-radiobtn was given. | |
5869 | if test "${enable_radiobtn+set}" = set; then | |
5870 | enableval="$enable_radiobtn" | |
698dcdb6 | 5871 | |
10f2d63a VZ |
5872 | if test "$enableval" = yes; then |
5873 | ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes' | |
5874 | else | |
5875 | ac_cv_use_radiobtn='wxUSE_RADIOBTN=no' | |
5876 | fi | |
698dcdb6 | 5877 | |
10f2d63a | 5878 | else |
698dcdb6 | 5879 | |
10f2d63a VZ |
5880 | LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}` |
5881 | if test "x$LINE" != x ; then | |
5882 | eval "DEFAULT_$LINE" | |
5883 | else | |
5884 | no_cache=1 | |
5885 | fi | |
5886 | ||
5887 | ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN | |
698dcdb6 VZ |
5888 | |
5889 | fi | |
10f2d63a VZ |
5890 | |
5891 | ||
5892 | eval "$ac_cv_use_radiobtn" | |
5893 | if test "$no_cache" != 1; then | |
5894 | echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp | |
5895 | fi | |
5896 | ||
5897 | if test "$wxUSE_RADIOBTN" = yes; then | |
698dcdb6 | 5898 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5899 | else |
698dcdb6 | 5900 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5901 | fi |
698dcdb6 | 5902 | |
10f2d63a | 5903 | |
698dcdb6 | 5904 | echo $ac_n "checking for --enable-sash""... $ac_c" 1>&6 |
77e13408 | 5905 | echo "configure:5906: checking for --enable-sash" >&5 |
10f2d63a VZ |
5906 | no_cache=0 |
5907 | # Check whether --enable-sash or --disable-sash was given. | |
5908 | if test "${enable_sash+set}" = set; then | |
5909 | enableval="$enable_sash" | |
698dcdb6 | 5910 | |
10f2d63a VZ |
5911 | if test "$enableval" = yes; then |
5912 | ac_cv_use_sash='wxUSE_SASH=yes' | |
5913 | else | |
5914 | ac_cv_use_sash='wxUSE_SASH=no' | |
5915 | fi | |
698dcdb6 | 5916 | |
10f2d63a | 5917 | else |
698dcdb6 | 5918 | |
10f2d63a VZ |
5919 | LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}` |
5920 | if test "x$LINE" != x ; then | |
5921 | eval "DEFAULT_$LINE" | |
5922 | else | |
5923 | no_cache=1 | |
5924 | fi | |
5925 | ||
5926 | ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH | |
698dcdb6 VZ |
5927 | |
5928 | fi | |
10f2d63a VZ |
5929 | |
5930 | ||
5931 | eval "$ac_cv_use_sash" | |
5932 | if test "$no_cache" != 1; then | |
5933 | echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp | |
5934 | fi | |
5935 | ||
5936 | if test "$wxUSE_SASH" = yes; then | |
698dcdb6 | 5937 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5938 | else |
698dcdb6 | 5939 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5940 | fi |
698dcdb6 | 5941 | |
10f2d63a | 5942 | |
698dcdb6 | 5943 | echo $ac_n "checking for --enable-scrollbar""... $ac_c" 1>&6 |
77e13408 | 5944 | echo "configure:5945: checking for --enable-scrollbar" >&5 |
10f2d63a VZ |
5945 | no_cache=0 |
5946 | # Check whether --enable-scrollbar or --disable-scrollbar was given. | |
5947 | if test "${enable_scrollbar+set}" = set; then | |
5948 | enableval="$enable_scrollbar" | |
698dcdb6 | 5949 | |
10f2d63a VZ |
5950 | if test "$enableval" = yes; then |
5951 | ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes' | |
5952 | else | |
5953 | ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no' | |
5954 | fi | |
698dcdb6 | 5955 | |
10f2d63a | 5956 | else |
698dcdb6 | 5957 | |
10f2d63a VZ |
5958 | LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}` |
5959 | if test "x$LINE" != x ; then | |
5960 | eval "DEFAULT_$LINE" | |
5961 | else | |
5962 | no_cache=1 | |
5963 | fi | |
5964 | ||
5965 | ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR | |
698dcdb6 VZ |
5966 | |
5967 | fi | |
10f2d63a VZ |
5968 | |
5969 | ||
5970 | eval "$ac_cv_use_scrollbar" | |
5971 | if test "$no_cache" != 1; then | |
5972 | echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp | |
5973 | fi | |
5974 | ||
5975 | if test "$wxUSE_SCROLLBAR" = yes; then | |
698dcdb6 | 5976 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5977 | else |
698dcdb6 | 5978 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5979 | fi |
698dcdb6 | 5980 | |
10f2d63a | 5981 | |
698dcdb6 | 5982 | echo $ac_n "checking for --enable-slider""... $ac_c" 1>&6 |
77e13408 | 5983 | echo "configure:5984: checking for --enable-slider" >&5 |
10f2d63a VZ |
5984 | no_cache=0 |
5985 | # Check whether --enable-slider or --disable-slider was given. | |
5986 | if test "${enable_slider+set}" = set; then | |
5987 | enableval="$enable_slider" | |
698dcdb6 | 5988 | |
10f2d63a VZ |
5989 | if test "$enableval" = yes; then |
5990 | ac_cv_use_slider='wxUSE_SLIDER=yes' | |
5991 | else | |
5992 | ac_cv_use_slider='wxUSE_SLIDER=no' | |
5993 | fi | |
698dcdb6 | 5994 | |
10f2d63a | 5995 | else |
698dcdb6 | 5996 | |
10f2d63a VZ |
5997 | LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}` |
5998 | if test "x$LINE" != x ; then | |
5999 | eval "DEFAULT_$LINE" | |
6000 | else | |
6001 | no_cache=1 | |
6002 | fi | |
6003 | ||
6004 | ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER | |
698dcdb6 VZ |
6005 | |
6006 | fi | |
10f2d63a VZ |
6007 | |
6008 | ||
6009 | eval "$ac_cv_use_slider" | |
6010 | if test "$no_cache" != 1; then | |
6011 | echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp | |
6012 | fi | |
6013 | ||
6014 | if test "$wxUSE_SLIDER" = yes; then | |
698dcdb6 | 6015 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6016 | else |
698dcdb6 | 6017 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6018 | fi |
698dcdb6 | 6019 | |
10f2d63a | 6020 | |
698dcdb6 | 6021 | echo $ac_n "checking for --enable-spinbtn""... $ac_c" 1>&6 |
77e13408 | 6022 | echo "configure:6023: checking for --enable-spinbtn" >&5 |
10f2d63a VZ |
6023 | no_cache=0 |
6024 | # Check whether --enable-spinbtn or --disable-spinbtn was given. | |
6025 | if test "${enable_spinbtn+set}" = set; then | |
6026 | enableval="$enable_spinbtn" | |
698dcdb6 | 6027 | |
10f2d63a VZ |
6028 | if test "$enableval" = yes; then |
6029 | ac_cv_use_spinbtn='wxUSE_SPINBTN=yes' | |
6030 | else | |
6031 | ac_cv_use_spinbtn='wxUSE_SPINBTN=no' | |
6032 | fi | |
698dcdb6 | 6033 | |
10f2d63a | 6034 | else |
698dcdb6 | 6035 | |
10f2d63a VZ |
6036 | LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}` |
6037 | if test "x$LINE" != x ; then | |
6038 | eval "DEFAULT_$LINE" | |
6039 | else | |
6040 | no_cache=1 | |
6041 | fi | |
6042 | ||
6043 | ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN | |
698dcdb6 VZ |
6044 | |
6045 | fi | |
10f2d63a VZ |
6046 | |
6047 | ||
6048 | eval "$ac_cv_use_spinbtn" | |
6049 | if test "$no_cache" != 1; then | |
6050 | echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp | |
6051 | fi | |
6052 | ||
6053 | if test "$wxUSE_SPINBTN" = yes; then | |
698dcdb6 | 6054 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6055 | else |
698dcdb6 | 6056 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6057 | fi |
698dcdb6 | 6058 | |
10f2d63a | 6059 | |
698dcdb6 | 6060 | echo $ac_n "checking for --enable-spinctrl""... $ac_c" 1>&6 |
77e13408 | 6061 | echo "configure:6062: checking for --enable-spinctrl" >&5 |
56cfaa52 RR |
6062 | no_cache=0 |
6063 | # Check whether --enable-spinctrl or --disable-spinctrl was given. | |
6064 | if test "${enable_spinctrl+set}" = set; then | |
6065 | enableval="$enable_spinctrl" | |
698dcdb6 | 6066 | |
56cfaa52 RR |
6067 | if test "$enableval" = yes; then |
6068 | ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes' | |
6069 | else | |
6070 | ac_cv_use_spinctrl='wxUSE_SPINCTRL=no' | |
6071 | fi | |
698dcdb6 | 6072 | |
56cfaa52 | 6073 | else |
698dcdb6 | 6074 | |
56cfaa52 RR |
6075 | LINE=`grep "wxUSE_SPINCTRL" ${wx_arg_cache_file}` |
6076 | if test "x$LINE" != x ; then | |
6077 | eval "DEFAULT_$LINE" | |
6078 | else | |
6079 | no_cache=1 | |
6080 | fi | |
6081 | ||
6082 | ac_cv_use_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL | |
698dcdb6 VZ |
6083 | |
6084 | fi | |
56cfaa52 RR |
6085 | |
6086 | ||
6087 | eval "$ac_cv_use_spinctrl" | |
6088 | if test "$no_cache" != 1; then | |
6089 | echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp | |
6090 | fi | |
6091 | ||
6092 | if test "$wxUSE_SPINCTRL" = yes; then | |
698dcdb6 | 6093 | echo "$ac_t""yes" 1>&6 |
56cfaa52 | 6094 | else |
698dcdb6 | 6095 | echo "$ac_t""no" 1>&6 |
56cfaa52 | 6096 | fi |
698dcdb6 | 6097 | |
56cfaa52 | 6098 | |
698dcdb6 | 6099 | echo $ac_n "checking for --enable-splitter""... $ac_c" 1>&6 |
77e13408 | 6100 | echo "configure:6101: checking for --enable-splitter" >&5 |
10f2d63a VZ |
6101 | no_cache=0 |
6102 | # Check whether --enable-splitter or --disable-splitter was given. | |
6103 | if test "${enable_splitter+set}" = set; then | |
6104 | enableval="$enable_splitter" | |
698dcdb6 | 6105 | |
10f2d63a VZ |
6106 | if test "$enableval" = yes; then |
6107 | ac_cv_use_splitter='wxUSE_SPLITTER=yes' | |
6108 | else | |
6109 | ac_cv_use_splitter='wxUSE_SPLITTER=no' | |
6110 | fi | |
698dcdb6 | 6111 | |
10f2d63a | 6112 | else |
698dcdb6 | 6113 | |
10f2d63a VZ |
6114 | LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}` |
6115 | if test "x$LINE" != x ; then | |
6116 | eval "DEFAULT_$LINE" | |
6117 | else | |
6118 | no_cache=1 | |
6119 | fi | |
6120 | ||
6121 | ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER | |
698dcdb6 VZ |
6122 | |
6123 | fi | |
10f2d63a VZ |
6124 | |
6125 | ||
6126 | eval "$ac_cv_use_splitter" | |
6127 | if test "$no_cache" != 1; then | |
6128 | echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp | |
6129 | fi | |
6130 | ||
6131 | if test "$wxUSE_SPLITTER" = yes; then | |
698dcdb6 | 6132 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6133 | else |
698dcdb6 | 6134 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6135 | fi |
698dcdb6 | 6136 | |
10f2d63a | 6137 | |
698dcdb6 | 6138 | echo $ac_n "checking for --enable-statbmp""... $ac_c" 1>&6 |
77e13408 | 6139 | echo "configure:6140: checking for --enable-statbmp" >&5 |
10f2d63a VZ |
6140 | no_cache=0 |
6141 | # Check whether --enable-statbmp or --disable-statbmp was given. | |
6142 | if test "${enable_statbmp+set}" = set; then | |
6143 | enableval="$enable_statbmp" | |
698dcdb6 | 6144 | |
10f2d63a VZ |
6145 | if test "$enableval" = yes; then |
6146 | ac_cv_use_statbmp='wxUSE_STATBMP=yes' | |
6147 | else | |
6148 | ac_cv_use_statbmp='wxUSE_STATBMP=no' | |
6149 | fi | |
698dcdb6 | 6150 | |
10f2d63a | 6151 | else |
698dcdb6 | 6152 | |
10f2d63a VZ |
6153 | LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}` |
6154 | if test "x$LINE" != x ; then | |
6155 | eval "DEFAULT_$LINE" | |
6156 | else | |
6157 | no_cache=1 | |
6158 | fi | |
6159 | ||
6160 | ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP | |
698dcdb6 VZ |
6161 | |
6162 | fi | |
10f2d63a VZ |
6163 | |
6164 | ||
6165 | eval "$ac_cv_use_statbmp" | |
6166 | if test "$no_cache" != 1; then | |
6167 | echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp | |
6168 | fi | |
6169 | ||
6170 | if test "$wxUSE_STATBMP" = yes; then | |
698dcdb6 | 6171 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6172 | else |
698dcdb6 | 6173 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6174 | fi |
698dcdb6 | 6175 | |
10f2d63a | 6176 | |
698dcdb6 | 6177 | echo $ac_n "checking for --enable-statbox""... $ac_c" 1>&6 |
77e13408 | 6178 | echo "configure:6179: checking for --enable-statbox" >&5 |
10f2d63a VZ |
6179 | no_cache=0 |
6180 | # Check whether --enable-statbox or --disable-statbox was given. | |
6181 | if test "${enable_statbox+set}" = set; then | |
6182 | enableval="$enable_statbox" | |
698dcdb6 | 6183 | |
10f2d63a VZ |
6184 | if test "$enableval" = yes; then |
6185 | ac_cv_use_statbox='wxUSE_STATBOX=yes' | |
6186 | else | |
6187 | ac_cv_use_statbox='wxUSE_STATBOX=no' | |
6188 | fi | |
698dcdb6 | 6189 | |
10f2d63a | 6190 | else |
698dcdb6 | 6191 | |
10f2d63a VZ |
6192 | LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}` |
6193 | if test "x$LINE" != x ; then | |
6194 | eval "DEFAULT_$LINE" | |
6195 | else | |
6196 | no_cache=1 | |
6197 | fi | |
6198 | ||
6199 | ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX | |
698dcdb6 VZ |
6200 | |
6201 | fi | |
10f2d63a VZ |
6202 | |
6203 | ||
6204 | eval "$ac_cv_use_statbox" | |
6205 | if test "$no_cache" != 1; then | |
6206 | echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp | |
6207 | fi | |
6208 | ||
6209 | if test "$wxUSE_STATBOX" = yes; then | |
698dcdb6 | 6210 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6211 | else |
698dcdb6 | 6212 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6213 | fi |
698dcdb6 | 6214 | |
10f2d63a | 6215 | |
698dcdb6 | 6216 | echo $ac_n "checking for --enable-statline""... $ac_c" 1>&6 |
77e13408 | 6217 | echo "configure:6218: checking for --enable-statline" >&5 |
10f2d63a VZ |
6218 | no_cache=0 |
6219 | # Check whether --enable-statline or --disable-statline was given. | |
6220 | if test "${enable_statline+set}" = set; then | |
6221 | enableval="$enable_statline" | |
698dcdb6 | 6222 | |
10f2d63a VZ |
6223 | if test "$enableval" = yes; then |
6224 | ac_cv_use_statline='wxUSE_STATLINE=yes' | |
6225 | else | |
6226 | ac_cv_use_statline='wxUSE_STATLINE=no' | |
6227 | fi | |
698dcdb6 | 6228 | |
10f2d63a | 6229 | else |
698dcdb6 | 6230 | |
10f2d63a VZ |
6231 | LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}` |
6232 | if test "x$LINE" != x ; then | |
6233 | eval "DEFAULT_$LINE" | |
6234 | else | |
6235 | no_cache=1 | |
6236 | fi | |
6237 | ||
6238 | ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE | |
698dcdb6 VZ |
6239 | |
6240 | fi | |
10f2d63a VZ |
6241 | |
6242 | ||
6243 | eval "$ac_cv_use_statline" | |
6244 | if test "$no_cache" != 1; then | |
6245 | echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp | |
6246 | fi | |
6247 | ||
6248 | if test "$wxUSE_STATLINE" = yes; then | |
698dcdb6 | 6249 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6250 | else |
698dcdb6 | 6251 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6252 | fi |
698dcdb6 | 6253 | |
10f2d63a | 6254 | |
1e6feb95 | 6255 | echo $ac_n "checking for --enable-stattext""... $ac_c" 1>&6 |
77e13408 | 6256 | echo "configure:6257: checking for --enable-stattext" >&5 |
1e6feb95 VZ |
6257 | no_cache=0 |
6258 | # Check whether --enable-stattext or --disable-stattext was given. | |
6259 | if test "${enable_stattext+set}" = set; then | |
6260 | enableval="$enable_stattext" | |
6261 | ||
6262 | if test "$enableval" = yes; then | |
6263 | ac_cv_use_stattext='wxUSE_STATTEXT=yes' | |
6264 | else | |
6265 | ac_cv_use_stattext='wxUSE_STATTEXT=no' | |
6266 | fi | |
6267 | ||
6268 | else | |
6269 | ||
6270 | LINE=`grep "wxUSE_STATTEXT" ${wx_arg_cache_file}` | |
6271 | if test "x$LINE" != x ; then | |
6272 | eval "DEFAULT_$LINE" | |
6273 | else | |
6274 | no_cache=1 | |
6275 | fi | |
6276 | ||
6277 | ac_cv_use_stattext='wxUSE_STATTEXT='$DEFAULT_wxUSE_STATTEXT | |
6278 | ||
6279 | fi | |
6280 | ||
6281 | ||
6282 | eval "$ac_cv_use_stattext" | |
6283 | if test "$no_cache" != 1; then | |
6284 | echo $ac_cv_use_stattext >> ${wx_arg_cache_file}.tmp | |
6285 | fi | |
6286 | ||
6287 | if test "$wxUSE_STATTEXT" = yes; then | |
6288 | echo "$ac_t""yes" 1>&6 | |
6289 | else | |
6290 | echo "$ac_t""no" 1>&6 | |
6291 | fi | |
6292 | ||
6293 | ||
698dcdb6 | 6294 | echo $ac_n "checking for --enable-statusbar""... $ac_c" 1>&6 |
77e13408 | 6295 | echo "configure:6296: checking for --enable-statusbar" >&5 |
10f2d63a VZ |
6296 | no_cache=0 |
6297 | # Check whether --enable-statusbar or --disable-statusbar was given. | |
6298 | if test "${enable_statusbar+set}" = set; then | |
6299 | enableval="$enable_statusbar" | |
698dcdb6 | 6300 | |
10f2d63a VZ |
6301 | if test "$enableval" = yes; then |
6302 | ac_cv_use_statusbar='wxUSE_STATUSBAR=yes' | |
6303 | else | |
6304 | ac_cv_use_statusbar='wxUSE_STATUSBAR=no' | |
6305 | fi | |
698dcdb6 | 6306 | |
10f2d63a | 6307 | else |
698dcdb6 | 6308 | |
10f2d63a VZ |
6309 | LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}` |
6310 | if test "x$LINE" != x ; then | |
6311 | eval "DEFAULT_$LINE" | |
6312 | else | |
6313 | no_cache=1 | |
6314 | fi | |
6315 | ||
6316 | ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR | |
698dcdb6 VZ |
6317 | |
6318 | fi | |
10f2d63a VZ |
6319 | |
6320 | ||
6321 | eval "$ac_cv_use_statusbar" | |
6322 | if test "$no_cache" != 1; then | |
6323 | echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp | |
6324 | fi | |
6325 | ||
6326 | if test "$wxUSE_STATUSBAR" = yes; then | |
698dcdb6 | 6327 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6328 | else |
698dcdb6 | 6329 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6330 | fi |
698dcdb6 | 6331 | |
10f2d63a | 6332 | |
698dcdb6 | 6333 | echo $ac_n "checking for --enable-tabdialog""... $ac_c" 1>&6 |
77e13408 | 6334 | echo "configure:6335: checking for --enable-tabdialog" >&5 |
10f2d63a VZ |
6335 | no_cache=0 |
6336 | # Check whether --enable-tabdialog or --disable-tabdialog was given. | |
6337 | if test "${enable_tabdialog+set}" = set; then | |
6338 | enableval="$enable_tabdialog" | |
698dcdb6 | 6339 | |
10f2d63a VZ |
6340 | if test "$enableval" = yes; then |
6341 | ac_cv_use_tabdialog='wxUSE_TABDIALOG=yes' | |
6342 | else | |
6343 | ac_cv_use_tabdialog='wxUSE_TABDIALOG=no' | |
6344 | fi | |
698dcdb6 | 6345 | |
10f2d63a | 6346 | else |
698dcdb6 | 6347 | |
10f2d63a VZ |
6348 | LINE=`grep "wxUSE_TABDIALOG" ${wx_arg_cache_file}` |
6349 | if test "x$LINE" != x ; then | |
6350 | eval "DEFAULT_$LINE" | |
6351 | else | |
6352 | no_cache=1 | |
6353 | fi | |
6354 | ||
6355 | ac_cv_use_tabdialog='wxUSE_TABDIALOG='$DEFAULT_wxUSE_TABDIALOG | |
698dcdb6 VZ |
6356 | |
6357 | fi | |
10f2d63a VZ |
6358 | |
6359 | ||
6360 | eval "$ac_cv_use_tabdialog" | |
6361 | if test "$no_cache" != 1; then | |
6362 | echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp | |
6363 | fi | |
6364 | ||
6365 | if test "$wxUSE_TABDIALOG" = yes; then | |
698dcdb6 | 6366 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6367 | else |
698dcdb6 | 6368 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6369 | fi |
698dcdb6 | 6370 | |
10f2d63a | 6371 | |
1e6feb95 | 6372 | echo $ac_n "checking for --enable-textctrl""... $ac_c" 1>&6 |
77e13408 | 6373 | echo "configure:6374: checking for --enable-textctrl" >&5 |
1e6feb95 VZ |
6374 | no_cache=0 |
6375 | # Check whether --enable-textctrl or --disable-textctrl was given. | |
6376 | if test "${enable_textctrl+set}" = set; then | |
6377 | enableval="$enable_textctrl" | |
6378 | ||
6379 | if test "$enableval" = yes; then | |
6380 | ac_cv_use_textctrl='wxUSE_TEXTCTRL=yes' | |
6381 | else | |
6382 | ac_cv_use_textctrl='wxUSE_TEXTCTRL=no' | |
6383 | fi | |
6384 | ||
6385 | else | |
6386 | ||
6387 | LINE=`grep "wxUSE_TEXTCTRL" ${wx_arg_cache_file}` | |
6388 | if test "x$LINE" != x ; then | |
6389 | eval "DEFAULT_$LINE" | |
6390 | else | |
6391 | no_cache=1 | |
6392 | fi | |
6393 | ||
6394 | ac_cv_use_textctrl='wxUSE_TEXTCTRL='$DEFAULT_wxUSE_TEXTCTRL | |
6395 | ||
6396 | fi | |
6397 | ||
6398 | ||
6399 | eval "$ac_cv_use_textctrl" | |
6400 | if test "$no_cache" != 1; then | |
6401 | echo $ac_cv_use_textctrl >> ${wx_arg_cache_file}.tmp | |
6402 | fi | |
6403 | ||
6404 | if test "$wxUSE_TEXTCTRL" = yes; then | |
6405 | echo "$ac_t""yes" 1>&6 | |
6406 | else | |
6407 | echo "$ac_t""no" 1>&6 | |
6408 | fi | |
6409 | ||
6410 | ||
698dcdb6 | 6411 | echo $ac_n "checking for --enable-togglebtn""... $ac_c" 1>&6 |
77e13408 | 6412 | echo "configure:6413: checking for --enable-togglebtn" >&5 |
1db8dc4a VZ |
6413 | no_cache=0 |
6414 | # Check whether --enable-togglebtn or --disable-togglebtn was given. | |
6415 | if test "${enable_togglebtn+set}" = set; then | |
6416 | enableval="$enable_togglebtn" | |
698dcdb6 | 6417 | |
1db8dc4a VZ |
6418 | if test "$enableval" = yes; then |
6419 | ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes' | |
6420 | else | |
6421 | ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=no' | |
6422 | fi | |
698dcdb6 | 6423 | |
1db8dc4a | 6424 | else |
698dcdb6 | 6425 | |
1db8dc4a VZ |
6426 | LINE=`grep "wxUSE_TOGGLEBTN" ${wx_arg_cache_file}` |
6427 | if test "x$LINE" != x ; then | |
6428 | eval "DEFAULT_$LINE" | |
6429 | else | |
6430 | no_cache=1 | |
6431 | fi | |
6432 | ||
6433 | ac_cv_use_togglebtn='wxUSE_TOGGLEBTN='$DEFAULT_wxUSE_TOGGLEBTN | |
698dcdb6 VZ |
6434 | |
6435 | fi | |
1db8dc4a VZ |
6436 | |
6437 | ||
6438 | eval "$ac_cv_use_togglebtn" | |
6439 | if test "$no_cache" != 1; then | |
6440 | echo $ac_cv_use_togglebtn >> ${wx_arg_cache_file}.tmp | |
6441 | fi | |
6442 | ||
6443 | if test "$wxUSE_TOGGLEBTN" = yes; then | |
698dcdb6 | 6444 | echo "$ac_t""yes" 1>&6 |
1db8dc4a | 6445 | else |
698dcdb6 | 6446 | echo "$ac_t""no" 1>&6 |
1db8dc4a | 6447 | fi |
698dcdb6 | 6448 | |
1db8dc4a | 6449 | |
698dcdb6 | 6450 | echo $ac_n "checking for --enable-toolbar""... $ac_c" 1>&6 |
77e13408 | 6451 | echo "configure:6452: checking for --enable-toolbar" >&5 |
10f2d63a VZ |
6452 | no_cache=0 |
6453 | # Check whether --enable-toolbar or --disable-toolbar was given. | |
6454 | if test "${enable_toolbar+set}" = set; then | |
6455 | enableval="$enable_toolbar" | |
698dcdb6 | 6456 | |
10f2d63a VZ |
6457 | if test "$enableval" = yes; then |
6458 | ac_cv_use_toolbar='wxUSE_TOOLBAR=yes' | |
6459 | else | |
6460 | ac_cv_use_toolbar='wxUSE_TOOLBAR=no' | |
6461 | fi | |
698dcdb6 | 6462 | |
10f2d63a | 6463 | else |
698dcdb6 | 6464 | |
10f2d63a VZ |
6465 | LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}` |
6466 | if test "x$LINE" != x ; then | |
6467 | eval "DEFAULT_$LINE" | |
6468 | else | |
6469 | no_cache=1 | |
6470 | fi | |
6471 | ||
6472 | ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR | |
698dcdb6 VZ |
6473 | |
6474 | fi | |
10f2d63a VZ |
6475 | |
6476 | ||
6477 | eval "$ac_cv_use_toolbar" | |
6478 | if test "$no_cache" != 1; then | |
6479 | echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp | |
6480 | fi | |
6481 | ||
6482 | if test "$wxUSE_TOOLBAR" = yes; then | |
698dcdb6 | 6483 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6484 | else |
698dcdb6 | 6485 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6486 | fi |
698dcdb6 | 6487 | |
10f2d63a | 6488 | |
698dcdb6 | 6489 | echo $ac_n "checking for --enable-tbarnative""... $ac_c" 1>&6 |
77e13408 | 6490 | echo "configure:6491: checking for --enable-tbarnative" >&5 |
360d6699 VZ |
6491 | no_cache=0 |
6492 | # Check whether --enable-tbarnative or --disable-tbarnative was given. | |
6493 | if test "${enable_tbarnative+set}" = set; then | |
6494 | enableval="$enable_tbarnative" | |
698dcdb6 | 6495 | |
360d6699 VZ |
6496 | if test "$enableval" = yes; then |
6497 | ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes' | |
6498 | else | |
6499 | ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no' | |
6500 | fi | |
698dcdb6 | 6501 | |
360d6699 | 6502 | else |
698dcdb6 | 6503 | |
360d6699 VZ |
6504 | LINE=`grep "wxUSE_TOOLBAR_NATIVE" ${wx_arg_cache_file}` |
6505 | if test "x$LINE" != x ; then | |
6506 | eval "DEFAULT_$LINE" | |
6507 | else | |
6508 | no_cache=1 | |
6509 | fi | |
6510 | ||
6511 | ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE='$DEFAULT_wxUSE_TOOLBAR_NATIVE | |
698dcdb6 VZ |
6512 | |
6513 | fi | |
360d6699 VZ |
6514 | |
6515 | ||
6516 | eval "$ac_cv_use_tbarnative" | |
6517 | if test "$no_cache" != 1; then | |
6518 | echo $ac_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp | |
6519 | fi | |
6520 | ||
6521 | if test "$wxUSE_TOOLBAR_NATIVE" = yes; then | |
698dcdb6 | 6522 | echo "$ac_t""yes" 1>&6 |
360d6699 | 6523 | else |
698dcdb6 | 6524 | echo "$ac_t""no" 1>&6 |
360d6699 | 6525 | fi |
698dcdb6 | 6526 | |
360d6699 | 6527 | |
698dcdb6 | 6528 | echo $ac_n "checking for --enable-tbarsmpl""... $ac_c" 1>&6 |
77e13408 | 6529 | echo "configure:6530: checking for --enable-tbarsmpl" >&5 |
360d6699 VZ |
6530 | no_cache=0 |
6531 | # Check whether --enable-tbarsmpl or --disable-tbarsmpl was given. | |
6532 | if test "${enable_tbarsmpl+set}" = set; then | |
6533 | enableval="$enable_tbarsmpl" | |
698dcdb6 | 6534 | |
360d6699 VZ |
6535 | if test "$enableval" = yes; then |
6536 | ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=yes' | |
6537 | else | |
6538 | ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=no' | |
6539 | fi | |
698dcdb6 | 6540 | |
360d6699 | 6541 | else |
698dcdb6 | 6542 | |
360d6699 VZ |
6543 | LINE=`grep "wxUSE_TOOLBAR_SIMPLE" ${wx_arg_cache_file}` |
6544 | if test "x$LINE" != x ; then | |
6545 | eval "DEFAULT_$LINE" | |
6546 | else | |
6547 | no_cache=1 | |
6548 | fi | |
6549 | ||
6550 | ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE='$DEFAULT_wxUSE_TOOLBAR_SIMPLE | |
698dcdb6 VZ |
6551 | |
6552 | fi | |
360d6699 VZ |
6553 | |
6554 | ||
6555 | eval "$ac_cv_use_tbarsmpl" | |
6556 | if test "$no_cache" != 1; then | |
6557 | echo $ac_cv_use_tbarsmpl >> ${wx_arg_cache_file}.tmp | |
6558 | fi | |
6559 | ||
6560 | if test "$wxUSE_TOOLBAR_SIMPLE" = yes; then | |
698dcdb6 | 6561 | echo "$ac_t""yes" 1>&6 |
360d6699 | 6562 | else |
698dcdb6 | 6563 | echo "$ac_t""no" 1>&6 |
360d6699 | 6564 | fi |
698dcdb6 | 6565 | |
360d6699 | 6566 | |
698dcdb6 | 6567 | echo $ac_n "checking for --enable-treectrl""... $ac_c" 1>&6 |
77e13408 | 6568 | echo "configure:6569: checking for --enable-treectrl" >&5 |
10f2d63a VZ |
6569 | no_cache=0 |
6570 | # Check whether --enable-treectrl or --disable-treectrl was given. | |
6571 | if test "${enable_treectrl+set}" = set; then | |
6572 | enableval="$enable_treectrl" | |
698dcdb6 | 6573 | |
10f2d63a VZ |
6574 | if test "$enableval" = yes; then |
6575 | ac_cv_use_treectrl='wxUSE_TREECTRL=yes' | |
6576 | else | |
6577 | ac_cv_use_treectrl='wxUSE_TREECTRL=no' | |
6578 | fi | |
698dcdb6 | 6579 | |
10f2d63a | 6580 | else |
698dcdb6 | 6581 | |
10f2d63a VZ |
6582 | LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}` |
6583 | if test "x$LINE" != x ; then | |
6584 | eval "DEFAULT_$LINE" | |
6585 | else | |
6586 | no_cache=1 | |
6587 | fi | |
6588 | ||
6589 | ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL | |
698dcdb6 VZ |
6590 | |
6591 | fi | |
10f2d63a VZ |
6592 | |
6593 | ||
1e6feb95 VZ |
6594 | eval "$ac_cv_use_treectrl" |
6595 | if test "$no_cache" != 1; then | |
6596 | echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp | |
6597 | fi | |
6598 | ||
6599 | if test "$wxUSE_TREECTRL" = yes; then | |
6600 | echo "$ac_t""yes" 1>&6 | |
6601 | else | |
6602 | echo "$ac_t""no" 1>&6 | |
6603 | fi | |
6604 | ||
6605 | ||
9f41d601 | 6606 | echo $ac_n "checking for --enable-popupwin""... $ac_c" 1>&6 |
77e13408 | 6607 | echo "configure:6608: checking for --enable-popupwin" >&5 |
9f41d601 RR |
6608 | no_cache=0 |
6609 | # Check whether --enable-popupwin or --disable-popupwin was given. | |
6610 | if test "${enable_popupwin+set}" = set; then | |
6611 | enableval="$enable_popupwin" | |
6612 | ||
6613 | if test "$enableval" = yes; then | |
6614 | ac_cv_use_popupwin='wxUSE_POPUPWIN=yes' | |
6615 | else | |
6616 | ac_cv_use_popupwin='wxUSE_POPUPWIN=no' | |
6617 | fi | |
6618 | ||
6619 | else | |
6620 | ||
6621 | LINE=`grep "wxUSE_POPUPWIN" ${wx_arg_cache_file}` | |
6622 | if test "x$LINE" != x ; then | |
6623 | eval "DEFAULT_$LINE" | |
6624 | else | |
6625 | no_cache=1 | |
6626 | fi | |
6627 | ||
6628 | ac_cv_use_popupwin='wxUSE_POPUPWIN='$DEFAULT_wxUSE_POPUPWIN | |
6629 | ||
6630 | fi | |
6631 | ||
6632 | ||
6633 | eval "$ac_cv_use_popupwin" | |
6634 | if test "$no_cache" != 1; then | |
6635 | echo $ac_cv_use_popupwin >> ${wx_arg_cache_file}.tmp | |
6636 | fi | |
6637 | ||
6638 | if test "$wxUSE_POPUPWIN" = yes; then | |
6639 | echo "$ac_t""yes" 1>&6 | |
6640 | else | |
6641 | echo "$ac_t""no" 1>&6 | |
6642 | fi | |
6643 | ||
6644 | ||
1e6feb95 VZ |
6645 | |
6646 | ||
6647 | echo $ac_n "checking for --enable-commondlg""... $ac_c" 1>&6 | |
77e13408 | 6648 | echo "configure:6649: checking for --enable-commondlg" >&5 |
1e6feb95 VZ |
6649 | no_cache=0 |
6650 | # Check whether --enable-commondlg or --disable-commondlg was given. | |
6651 | if test "${enable_commondlg+set}" = set; then | |
6652 | enableval="$enable_commondlg" | |
6653 | ||
6654 | if test "$enableval" = yes; then | |
6655 | ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes' | |
6656 | else | |
6657 | ac_cv_use_commondlg='wxUSE_COMMONDLGS=no' | |
6658 | fi | |
6659 | ||
6660 | else | |
6661 | ||
6662 | LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}` | |
6663 | if test "x$LINE" != x ; then | |
6664 | eval "DEFAULT_$LINE" | |
6665 | else | |
6666 | no_cache=1 | |
6667 | fi | |
6668 | ||
6669 | ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS | |
6670 | ||
6671 | fi | |
6672 | ||
6673 | ||
6674 | eval "$ac_cv_use_commondlg" | |
6675 | if test "$no_cache" != 1; then | |
6676 | echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp | |
6677 | fi | |
6678 | ||
6679 | if test "$wxUSE_COMMONDLGS" = yes; then | |
6680 | echo "$ac_t""yes" 1>&6 | |
6681 | else | |
6682 | echo "$ac_t""no" 1>&6 | |
6683 | fi | |
6684 | ||
6685 | ||
6686 | echo $ac_n "checking for --enable-choicedlg""... $ac_c" 1>&6 | |
77e13408 | 6687 | echo "configure:6688: checking for --enable-choicedlg" >&5 |
1e6feb95 VZ |
6688 | no_cache=0 |
6689 | # Check whether --enable-choicedlg or --disable-choicedlg was given. | |
6690 | if test "${enable_choicedlg+set}" = set; then | |
6691 | enableval="$enable_choicedlg" | |
6692 | ||
6693 | if test "$enableval" = yes; then | |
6694 | ac_cv_use_choicedlg='wxUSE_CHOICEDLG=yes' | |
6695 | else | |
6696 | ac_cv_use_choicedlg='wxUSE_CHOICEDLG=no' | |
6697 | fi | |
6698 | ||
6699 | else | |
6700 | ||
6701 | LINE=`grep "wxUSE_CHOICEDLG" ${wx_arg_cache_file}` | |
6702 | if test "x$LINE" != x ; then | |
6703 | eval "DEFAULT_$LINE" | |
6704 | else | |
6705 | no_cache=1 | |
6706 | fi | |
6707 | ||
6708 | ac_cv_use_choicedlg='wxUSE_CHOICEDLG='$DEFAULT_wxUSE_CHOICEDLG | |
6709 | ||
6710 | fi | |
6711 | ||
6712 | ||
6713 | eval "$ac_cv_use_choicedlg" | |
6714 | if test "$no_cache" != 1; then | |
6715 | echo $ac_cv_use_choicedlg >> ${wx_arg_cache_file}.tmp | |
6716 | fi | |
6717 | ||
6718 | if test "$wxUSE_CHOICEDLG" = yes; then | |
6719 | echo "$ac_t""yes" 1>&6 | |
6720 | else | |
6721 | echo "$ac_t""no" 1>&6 | |
6722 | fi | |
6723 | ||
6724 | ||
6725 | echo $ac_n "checking for --enable-coldlg""... $ac_c" 1>&6 | |
77e13408 | 6726 | echo "configure:6727: checking for --enable-coldlg" >&5 |
1e6feb95 VZ |
6727 | no_cache=0 |
6728 | # Check whether --enable-coldlg or --disable-coldlg was given. | |
6729 | if test "${enable_coldlg+set}" = set; then | |
6730 | enableval="$enable_coldlg" | |
6731 | ||
6732 | if test "$enableval" = yes; then | |
6733 | ac_cv_use_coldlg='wxUSE_COLOURDLG=yes' | |
6734 | else | |
6735 | ac_cv_use_coldlg='wxUSE_COLOURDLG=no' | |
6736 | fi | |
6737 | ||
6738 | else | |
6739 | ||
6740 | LINE=`grep "wxUSE_COLOURDLG" ${wx_arg_cache_file}` | |
6741 | if test "x$LINE" != x ; then | |
6742 | eval "DEFAULT_$LINE" | |
6743 | else | |
6744 | no_cache=1 | |
6745 | fi | |
6746 | ||
6747 | ac_cv_use_coldlg='wxUSE_COLOURDLG='$DEFAULT_wxUSE_COLOURDLG | |
6748 | ||
6749 | fi | |
6750 | ||
6751 | ||
6752 | eval "$ac_cv_use_coldlg" | |
6753 | if test "$no_cache" != 1; then | |
6754 | echo $ac_cv_use_coldlg >> ${wx_arg_cache_file}.tmp | |
6755 | fi | |
6756 | ||
6757 | if test "$wxUSE_COLOURDLG" = yes; then | |
6758 | echo "$ac_t""yes" 1>&6 | |
6759 | else | |
6760 | echo "$ac_t""no" 1>&6 | |
6761 | fi | |
6762 | ||
6763 | ||
6764 | echo $ac_n "checking for --enable-filedlg""... $ac_c" 1>&6 | |
77e13408 | 6765 | echo "configure:6766: checking for --enable-filedlg" >&5 |
1e6feb95 VZ |
6766 | no_cache=0 |
6767 | # Check whether --enable-filedlg or --disable-filedlg was given. | |
6768 | if test "${enable_filedlg+set}" = set; then | |
6769 | enableval="$enable_filedlg" | |
6770 | ||
6771 | if test "$enableval" = yes; then | |
6772 | ac_cv_use_filedlg='wxUSE_FILEDLG=yes' | |
6773 | else | |
6774 | ac_cv_use_filedlg='wxUSE_FILEDLG=no' | |
6775 | fi | |
6776 | ||
6777 | else | |
6778 | ||
6779 | LINE=`grep "wxUSE_FILEDLG" ${wx_arg_cache_file}` | |
6780 | if test "x$LINE" != x ; then | |
6781 | eval "DEFAULT_$LINE" | |
6782 | else | |
6783 | no_cache=1 | |
6784 | fi | |
6785 | ||
6786 | ac_cv_use_filedlg='wxUSE_FILEDLG='$DEFAULT_wxUSE_FILEDLG | |
6787 | ||
6788 | fi | |
6789 | ||
6790 | ||
6791 | eval "$ac_cv_use_filedlg" | |
6792 | if test "$no_cache" != 1; then | |
6793 | echo $ac_cv_use_filedlg >> ${wx_arg_cache_file}.tmp | |
6794 | fi | |
6795 | ||
6796 | if test "$wxUSE_FILEDLG" = yes; then | |
6797 | echo "$ac_t""yes" 1>&6 | |
6798 | else | |
6799 | echo "$ac_t""no" 1>&6 | |
6800 | fi | |
6801 | ||
6802 | ||
8db37e06 | 6803 | echo $ac_n "checking for --enable-filedlg""... $ac_c" 1>&6 |
77e13408 | 6804 | echo "configure:6805: checking for --enable-filedlg" >&5 |
8db37e06 VZ |
6805 | no_cache=0 |
6806 | # Check whether --enable-filedlg or --disable-filedlg was given. | |
6807 | if test "${enable_filedlg+set}" = set; then | |
6808 | enableval="$enable_filedlg" | |
6809 | ||
6810 | if test "$enableval" = yes; then | |
6811 | ac_cv_use_filedlg='wxUSE_FINDREPLDLG=yes' | |
6812 | else | |
6813 | ac_cv_use_filedlg='wxUSE_FINDREPLDLG=no' | |
6814 | fi | |
6815 | ||
6816 | else | |
6817 | ||
6818 | LINE=`grep "wxUSE_FINDREPLDLG" ${wx_arg_cache_file}` | |
6819 | if test "x$LINE" != x ; then | |
6820 | eval "DEFAULT_$LINE" | |
6821 | else | |
6822 | no_cache=1 | |
6823 | fi | |
6824 | ||
6825 | ac_cv_use_filedlg='wxUSE_FINDREPLDLG='$DEFAULT_wxUSE_FINDREPLDLG | |
6826 | ||
6827 | fi | |
6828 | ||
6829 | ||
6830 | eval "$ac_cv_use_filedlg" | |
6831 | if test "$no_cache" != 1; then | |
6832 | echo $ac_cv_use_filedlg >> ${wx_arg_cache_file}.tmp | |
6833 | fi | |
6834 | ||
6835 | if test "$wxUSE_FINDREPLDLG" = yes; then | |
6836 | echo "$ac_t""yes" 1>&6 | |
6837 | else | |
6838 | echo "$ac_t""no" 1>&6 | |
6839 | fi | |
6840 | ||
6841 | ||
1e6feb95 | 6842 | echo $ac_n "checking for --enable-fontdlg""... $ac_c" 1>&6 |
77e13408 | 6843 | echo "configure:6844: checking for --enable-fontdlg" >&5 |
1e6feb95 VZ |
6844 | no_cache=0 |
6845 | # Check whether --enable-fontdlg or --disable-fontdlg was given. | |
6846 | if test "${enable_fontdlg+set}" = set; then | |
6847 | enableval="$enable_fontdlg" | |
6848 | ||
6849 | if test "$enableval" = yes; then | |
6850 | ac_cv_use_fontdlg='wxUSE_FONTDLG=yes' | |
6851 | else | |
6852 | ac_cv_use_fontdlg='wxUSE_FONTDLG=no' | |
6853 | fi | |
6854 | ||
6855 | else | |
6856 | ||
6857 | LINE=`grep "wxUSE_FONTDLG" ${wx_arg_cache_file}` | |
6858 | if test "x$LINE" != x ; then | |
6859 | eval "DEFAULT_$LINE" | |
6860 | else | |
6861 | no_cache=1 | |
6862 | fi | |
6863 | ||
6864 | ac_cv_use_fontdlg='wxUSE_FONTDLG='$DEFAULT_wxUSE_FONTDLG | |
6865 | ||
6866 | fi | |
6867 | ||
6868 | ||
6869 | eval "$ac_cv_use_fontdlg" | |
6870 | if test "$no_cache" != 1; then | |
6871 | echo $ac_cv_use_fontdlg >> ${wx_arg_cache_file}.tmp | |
6872 | fi | |
6873 | ||
6874 | if test "$wxUSE_FONTDLG" = yes; then | |
6875 | echo "$ac_t""yes" 1>&6 | |
6876 | else | |
6877 | echo "$ac_t""no" 1>&6 | |
6878 | fi | |
6879 | ||
6880 | ||
6881 | echo $ac_n "checking for --enable-dirdlg""... $ac_c" 1>&6 | |
77e13408 | 6882 | echo "configure:6883: checking for --enable-dirdlg" >&5 |
1e6feb95 VZ |
6883 | no_cache=0 |
6884 | # Check whether --enable-dirdlg or --disable-dirdlg was given. | |
6885 | if test "${enable_dirdlg+set}" = set; then | |
6886 | enableval="$enable_dirdlg" | |
6887 | ||
6888 | if test "$enableval" = yes; then | |
6889 | ac_cv_use_dirdlg='wxUSE_DIRDLG=yes' | |
6890 | else | |
6891 | ac_cv_use_dirdlg='wxUSE_DIRDLG=no' | |
6892 | fi | |
6893 | ||
6894 | else | |
6895 | ||
6896 | LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}` | |
6897 | if test "x$LINE" != x ; then | |
6898 | eval "DEFAULT_$LINE" | |
6899 | else | |
6900 | no_cache=1 | |
6901 | fi | |
6902 | ||
6903 | ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG | |
6904 | ||
6905 | fi | |
6906 | ||
6907 | ||
6908 | eval "$ac_cv_use_dirdlg" | |
10f2d63a | 6909 | if test "$no_cache" != 1; then |
1e6feb95 | 6910 | echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
6911 | fi |
6912 | ||
1e6feb95 | 6913 | if test "$wxUSE_DIRDLG" = yes; then |
698dcdb6 | 6914 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6915 | else |
698dcdb6 | 6916 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6917 | fi |
698dcdb6 VZ |
6918 | |
6919 | ||
1e6feb95 | 6920 | echo $ac_n "checking for --enable-msgdlg""... $ac_c" 1>&6 |
77e13408 | 6921 | echo "configure:6922: checking for --enable-msgdlg" >&5 |
10f2d63a | 6922 | no_cache=0 |
1e6feb95 VZ |
6923 | # Check whether --enable-msgdlg or --disable-msgdlg was given. |
6924 | if test "${enable_msgdlg+set}" = set; then | |
6925 | enableval="$enable_msgdlg" | |
698dcdb6 | 6926 | |
10f2d63a | 6927 | if test "$enableval" = yes; then |
1e6feb95 | 6928 | ac_cv_use_msgdlg='wxUSE_MSGDLG=yes' |
10f2d63a | 6929 | else |
1e6feb95 | 6930 | ac_cv_use_msgdlg='wxUSE_MSGDLG=no' |
10f2d63a | 6931 | fi |
698dcdb6 | 6932 | |
10f2d63a | 6933 | else |
698dcdb6 | 6934 | |
1e6feb95 | 6935 | LINE=`grep "wxUSE_MSGDLG" ${wx_arg_cache_file}` |
10f2d63a VZ |
6936 | if test "x$LINE" != x ; then |
6937 | eval "DEFAULT_$LINE" | |
6938 | else | |
6939 | no_cache=1 | |
6940 | fi | |
6941 | ||
1e6feb95 | 6942 | ac_cv_use_msgdlg='wxUSE_MSGDLG='$DEFAULT_wxUSE_MSGDLG |
698dcdb6 VZ |
6943 | |
6944 | fi | |
10f2d63a VZ |
6945 | |
6946 | ||
1e6feb95 | 6947 | eval "$ac_cv_use_msgdlg" |
10f2d63a | 6948 | if test "$no_cache" != 1; then |
1e6feb95 | 6949 | echo $ac_cv_use_msgdlg >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
6950 | fi |
6951 | ||
1e6feb95 | 6952 | if test "$wxUSE_MSGDLG" = yes; then |
698dcdb6 | 6953 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6954 | else |
698dcdb6 | 6955 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6956 | fi |
698dcdb6 | 6957 | |
10f2d63a | 6958 | |
1e6feb95 | 6959 | echo $ac_n "checking for --enable-numberdlg""... $ac_c" 1>&6 |
77e13408 | 6960 | echo "configure:6961: checking for --enable-numberdlg" >&5 |
10f2d63a | 6961 | no_cache=0 |
1e6feb95 VZ |
6962 | # Check whether --enable-numberdlg or --disable-numberdlg was given. |
6963 | if test "${enable_numberdlg+set}" = set; then | |
6964 | enableval="$enable_numberdlg" | |
698dcdb6 | 6965 | |
10f2d63a | 6966 | if test "$enableval" = yes; then |
1e6feb95 | 6967 | ac_cv_use_numberdlg='wxUSE_NUMBERDLG=yes' |
10f2d63a | 6968 | else |
1e6feb95 | 6969 | ac_cv_use_numberdlg='wxUSE_NUMBERDLG=no' |
10f2d63a | 6970 | fi |
698dcdb6 | 6971 | |
10f2d63a | 6972 | else |
698dcdb6 | 6973 | |
1e6feb95 | 6974 | LINE=`grep "wxUSE_NUMBERDLG" ${wx_arg_cache_file}` |
10f2d63a VZ |
6975 | if test "x$LINE" != x ; then |
6976 | eval "DEFAULT_$LINE" | |
6977 | else | |
6978 | no_cache=1 | |
6979 | fi | |
6980 | ||
1e6feb95 | 6981 | ac_cv_use_numberdlg='wxUSE_NUMBERDLG='$DEFAULT_wxUSE_NUMBERDLG |
698dcdb6 VZ |
6982 | |
6983 | fi | |
10f2d63a VZ |
6984 | |
6985 | ||
1e6feb95 | 6986 | eval "$ac_cv_use_numberdlg" |
10f2d63a | 6987 | if test "$no_cache" != 1; then |
1e6feb95 | 6988 | echo $ac_cv_use_numberdlg >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
6989 | fi |
6990 | ||
1e6feb95 | 6991 | if test "$wxUSE_NUMBERDLG" = yes; then |
698dcdb6 | 6992 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6993 | else |
698dcdb6 | 6994 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6995 | fi |
698dcdb6 | 6996 | |
10f2d63a | 6997 | |
cbca9943 | 6998 | echo $ac_n "checking for --enable-splash""... $ac_c" 1>&6 |
77e13408 | 6999 | echo "configure:7000: checking for --enable-splash" >&5 |
cbca9943 VZ |
7000 | no_cache=0 |
7001 | # Check whether --enable-splash or --disable-splash was given. | |
7002 | if test "${enable_splash+set}" = set; then | |
7003 | enableval="$enable_splash" | |
7004 | ||
7005 | if test "$enableval" = yes; then | |
7006 | ac_cv_use_splash='wxUSE_SPLASH=yes' | |
7007 | else | |
7008 | ac_cv_use_splash='wxUSE_SPLASH=no' | |
7009 | fi | |
7010 | ||
7011 | else | |
7012 | ||
7013 | LINE=`grep "wxUSE_SPLASH" ${wx_arg_cache_file}` | |
7014 | if test "x$LINE" != x ; then | |
7015 | eval "DEFAULT_$LINE" | |
7016 | else | |
7017 | no_cache=1 | |
7018 | fi | |
7019 | ||
7020 | ac_cv_use_splash='wxUSE_SPLASH='$DEFAULT_wxUSE_SPLASH | |
7021 | ||
7022 | fi | |
7023 | ||
7024 | ||
7025 | eval "$ac_cv_use_splash" | |
7026 | if test "$no_cache" != 1; then | |
7027 | echo $ac_cv_use_splash >> ${wx_arg_cache_file}.tmp | |
7028 | fi | |
7029 | ||
7030 | if test "$wxUSE_SPLASH" = yes; then | |
7031 | echo "$ac_t""yes" 1>&6 | |
7032 | else | |
7033 | echo "$ac_t""no" 1>&6 | |
7034 | fi | |
7035 | ||
7036 | ||
698dcdb6 | 7037 | echo $ac_n "checking for --enable-textdlg""... $ac_c" 1>&6 |
77e13408 | 7038 | echo "configure:7039: checking for --enable-textdlg" >&5 |
10f2d63a VZ |
7039 | no_cache=0 |
7040 | # Check whether --enable-textdlg or --disable-textdlg was given. | |
7041 | if test "${enable_textdlg+set}" = set; then | |
7042 | enableval="$enable_textdlg" | |
698dcdb6 | 7043 | |
10f2d63a VZ |
7044 | if test "$enableval" = yes; then |
7045 | ac_cv_use_textdlg='wxUSE_TEXTDLG=yes' | |
7046 | else | |
7047 | ac_cv_use_textdlg='wxUSE_TEXTDLG=no' | |
7048 | fi | |
698dcdb6 | 7049 | |
10f2d63a | 7050 | else |
698dcdb6 | 7051 | |
10f2d63a VZ |
7052 | LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}` |
7053 | if test "x$LINE" != x ; then | |
7054 | eval "DEFAULT_$LINE" | |
7055 | else | |
7056 | no_cache=1 | |
7057 | fi | |
7058 | ||
7059 | ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG | |
698dcdb6 VZ |
7060 | |
7061 | fi | |
10f2d63a VZ |
7062 | |
7063 | ||
7064 | eval "$ac_cv_use_textdlg" | |
7065 | if test "$no_cache" != 1; then | |
7066 | echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp | |
7067 | fi | |
7068 | ||
7069 | if test "$wxUSE_TEXTDLG" = yes; then | |
698dcdb6 | 7070 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7071 | else |
698dcdb6 | 7072 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7073 | fi |
698dcdb6 | 7074 | |
10f2d63a | 7075 | |
698dcdb6 | 7076 | echo $ac_n "checking for --enable-tipdlg""... $ac_c" 1>&6 |
77e13408 | 7077 | echo "configure:7078: checking for --enable-tipdlg" >&5 |
10f2d63a VZ |
7078 | no_cache=0 |
7079 | # Check whether --enable-tipdlg or --disable-tipdlg was given. | |
7080 | if test "${enable_tipdlg+set}" = set; then | |
7081 | enableval="$enable_tipdlg" | |
698dcdb6 | 7082 | |
10f2d63a VZ |
7083 | if test "$enableval" = yes; then |
7084 | ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes' | |
7085 | else | |
7086 | ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no' | |
7087 | fi | |
698dcdb6 | 7088 | |
10f2d63a | 7089 | else |
698dcdb6 | 7090 | |
10f2d63a VZ |
7091 | LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}` |
7092 | if test "x$LINE" != x ; then | |
7093 | eval "DEFAULT_$LINE" | |
7094 | else | |
7095 | no_cache=1 | |
7096 | fi | |
7097 | ||
7098 | ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS | |
698dcdb6 VZ |
7099 | |
7100 | fi | |
10f2d63a VZ |
7101 | |
7102 | ||
7103 | eval "$ac_cv_use_tipdlg" | |
7104 | if test "$no_cache" != 1; then | |
7105 | echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp | |
7106 | fi | |
7107 | ||
7108 | if test "$wxUSE_STARTUP_TIPS" = yes; then | |
698dcdb6 | 7109 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7110 | else |
698dcdb6 | 7111 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7112 | fi |
698dcdb6 | 7113 | |
10f2d63a | 7114 | |
698dcdb6 | 7115 | echo $ac_n "checking for --enable-progressdlg""... $ac_c" 1>&6 |
77e13408 | 7116 | echo "configure:7117: checking for --enable-progressdlg" >&5 |
10f2d63a VZ |
7117 | no_cache=0 |
7118 | # Check whether --enable-progressdlg or --disable-progressdlg was given. | |
7119 | if test "${enable_progressdlg+set}" = set; then | |
7120 | enableval="$enable_progressdlg" | |
698dcdb6 | 7121 | |
10f2d63a VZ |
7122 | if test "$enableval" = yes; then |
7123 | ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes' | |
7124 | else | |
7125 | ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no' | |
7126 | fi | |
698dcdb6 | 7127 | |
10f2d63a | 7128 | else |
698dcdb6 | 7129 | |
10f2d63a VZ |
7130 | LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}` |
7131 | if test "x$LINE" != x ; then | |
7132 | eval "DEFAULT_$LINE" | |
7133 | else | |
7134 | no_cache=1 | |
7135 | fi | |
7136 | ||
7137 | ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG | |
698dcdb6 VZ |
7138 | |
7139 | fi | |
10f2d63a VZ |
7140 | |
7141 | ||
7142 | eval "$ac_cv_use_progressdlg" | |
7143 | if test "$no_cache" != 1; then | |
7144 | echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp | |
7145 | fi | |
7146 | ||
7147 | if test "$wxUSE_PROGRESSDLG" = yes; then | |
698dcdb6 | 7148 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7149 | else |
698dcdb6 | 7150 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7151 | fi |
698dcdb6 | 7152 | |
10f2d63a | 7153 | |
b1f5d087 | 7154 | echo $ac_n "checking for --enable-wizarddlg""... $ac_c" 1>&6 |
77e13408 | 7155 | echo "configure:7156: checking for --enable-wizarddlg" >&5 |
b1f5d087 VZ |
7156 | no_cache=0 |
7157 | # Check whether --enable-wizarddlg or --disable-wizarddlg was given. | |
7158 | if test "${enable_wizarddlg+set}" = set; then | |
7159 | enableval="$enable_wizarddlg" | |
7160 | ||
7161 | if test "$enableval" = yes; then | |
7162 | ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=yes' | |
7163 | else | |
7164 | ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=no' | |
7165 | fi | |
7166 | ||
7167 | else | |
7168 | ||
7169 | LINE=`grep "wxUSE_WIZARDDLG" ${wx_arg_cache_file}` | |
7170 | if test "x$LINE" != x ; then | |
7171 | eval "DEFAULT_$LINE" | |
7172 | else | |
7173 | no_cache=1 | |
7174 | fi | |
7175 | ||
7176 | ac_cv_use_wizarddlg='wxUSE_WIZARDDLG='$DEFAULT_wxUSE_WIZARDDLG | |
7177 | ||
7178 | fi | |
7179 | ||
7180 | ||
7181 | eval "$ac_cv_use_wizarddlg" | |
7182 | if test "$no_cache" != 1; then | |
7183 | echo $ac_cv_use_wizarddlg >> ${wx_arg_cache_file}.tmp | |
7184 | fi | |
7185 | ||
7186 | if test "$wxUSE_WIZARDDLG" = yes; then | |
7187 | echo "$ac_t""yes" 1>&6 | |
7188 | else | |
7189 | echo "$ac_t""no" 1>&6 | |
7190 | fi | |
7191 | ||
7192 | ||
7193 | ||
7194 | ||
1e6feb95 | 7195 | echo $ac_n "checking for --enable-menus""... $ac_c" 1>&6 |
77e13408 | 7196 | echo "configure:7197: checking for --enable-menus" >&5 |
1e6feb95 VZ |
7197 | no_cache=0 |
7198 | # Check whether --enable-menus or --disable-menus was given. | |
7199 | if test "${enable_menus+set}" = set; then | |
7200 | enableval="$enable_menus" | |
7201 | ||
7202 | if test "$enableval" = yes; then | |
7203 | ac_cv_use_menus='wxUSE_MENUS=yes' | |
7204 | else | |
7205 | ac_cv_use_menus='wxUSE_MENUS=no' | |
7206 | fi | |
7207 | ||
7208 | else | |
7209 | ||
7210 | LINE=`grep "wxUSE_MENUS" ${wx_arg_cache_file}` | |
7211 | if test "x$LINE" != x ; then | |
7212 | eval "DEFAULT_$LINE" | |
7213 | else | |
7214 | no_cache=1 | |
7215 | fi | |
7216 | ||
7217 | ac_cv_use_menus='wxUSE_MENUS='$DEFAULT_wxUSE_MENUS | |
7218 | ||
7219 | fi | |
7220 | ||
7221 | ||
7222 | eval "$ac_cv_use_menus" | |
7223 | if test "$no_cache" != 1; then | |
7224 | echo $ac_cv_use_menus >> ${wx_arg_cache_file}.tmp | |
7225 | fi | |
7226 | ||
7227 | if test "$wxUSE_MENUS" = yes; then | |
7228 | echo "$ac_t""yes" 1>&6 | |
7229 | else | |
7230 | echo "$ac_t""no" 1>&6 | |
7231 | fi | |
7232 | ||
7233 | ||
698dcdb6 | 7234 | echo $ac_n "checking for --enable-miniframe""... $ac_c" 1>&6 |
77e13408 | 7235 | echo "configure:7236: checking for --enable-miniframe" >&5 |
10f2d63a VZ |
7236 | no_cache=0 |
7237 | # Check whether --enable-miniframe or --disable-miniframe was given. | |
7238 | if test "${enable_miniframe+set}" = set; then | |
7239 | enableval="$enable_miniframe" | |
698dcdb6 | 7240 | |
10f2d63a VZ |
7241 | if test "$enableval" = yes; then |
7242 | ac_cv_use_miniframe='wxUSE_MINIFRAME=yes' | |
7243 | else | |
7244 | ac_cv_use_miniframe='wxUSE_MINIFRAME=no' | |
7245 | fi | |
698dcdb6 | 7246 | |
10f2d63a | 7247 | else |
698dcdb6 | 7248 | |
10f2d63a VZ |
7249 | LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}` |
7250 | if test "x$LINE" != x ; then | |
7251 | eval "DEFAULT_$LINE" | |
7252 | else | |
7253 | no_cache=1 | |
7254 | fi | |
7255 | ||
7256 | ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME | |
698dcdb6 VZ |
7257 | |
7258 | fi | |
10f2d63a VZ |
7259 | |
7260 | ||
7261 | eval "$ac_cv_use_miniframe" | |
7262 | if test "$no_cache" != 1; then | |
7263 | echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp | |
7264 | fi | |
7265 | ||
7266 | if test "$wxUSE_MINIFRAME" = yes; then | |
698dcdb6 | 7267 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7268 | else |
698dcdb6 | 7269 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7270 | fi |
698dcdb6 | 7271 | |
10f2d63a | 7272 | |
698dcdb6 | 7273 | echo $ac_n "checking for --enable-tooltips""... $ac_c" 1>&6 |
77e13408 | 7274 | echo "configure:7275: checking for --enable-tooltips" >&5 |
10f2d63a VZ |
7275 | no_cache=0 |
7276 | # Check whether --enable-tooltips or --disable-tooltips was given. | |
7277 | if test "${enable_tooltips+set}" = set; then | |
7278 | enableval="$enable_tooltips" | |
698dcdb6 | 7279 | |
10f2d63a VZ |
7280 | if test "$enableval" = yes; then |
7281 | ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes' | |
7282 | else | |
7283 | ac_cv_use_tooltips='wxUSE_TOOLTIPS=no' | |
7284 | fi | |
698dcdb6 | 7285 | |
10f2d63a | 7286 | else |
698dcdb6 | 7287 | |
10f2d63a VZ |
7288 | LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}` |
7289 | if test "x$LINE" != x ; then | |
7290 | eval "DEFAULT_$LINE" | |
7291 | else | |
7292 | no_cache=1 | |
7293 | fi | |
7294 | ||
7295 | ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS | |
698dcdb6 VZ |
7296 | |
7297 | fi | |
10f2d63a VZ |
7298 | |
7299 | ||
7300 | eval "$ac_cv_use_tooltips" | |
7301 | if test "$no_cache" != 1; then | |
7302 | echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp | |
7303 | fi | |
7304 | ||
7305 | if test "$wxUSE_TOOLTIPS" = yes; then | |
698dcdb6 | 7306 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7307 | else |
698dcdb6 | 7308 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7309 | fi |
698dcdb6 | 7310 | |
10f2d63a | 7311 | |
698dcdb6 | 7312 | echo $ac_n "checking for --enable-splines""... $ac_c" 1>&6 |
77e13408 | 7313 | echo "configure:7314: checking for --enable-splines" >&5 |
10f2d63a VZ |
7314 | no_cache=0 |
7315 | # Check whether --enable-splines or --disable-splines was given. | |
7316 | if test "${enable_splines+set}" = set; then | |
7317 | enableval="$enable_splines" | |
698dcdb6 | 7318 | |
10f2d63a VZ |
7319 | if test "$enableval" = yes; then |
7320 | ac_cv_use_splines='wxUSE_SPLINES=yes' | |
7321 | else | |
7322 | ac_cv_use_splines='wxUSE_SPLINES=no' | |
7323 | fi | |
698dcdb6 | 7324 | |
10f2d63a | 7325 | else |
698dcdb6 | 7326 | |
10f2d63a VZ |
7327 | LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}` |
7328 | if test "x$LINE" != x ; then | |
7329 | eval "DEFAULT_$LINE" | |
7330 | else | |
7331 | no_cache=1 | |
7332 | fi | |
7333 | ||
7334 | ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES | |
698dcdb6 VZ |
7335 | |
7336 | fi | |
10f2d63a VZ |
7337 | |
7338 | ||
7339 | eval "$ac_cv_use_splines" | |
7340 | if test "$no_cache" != 1; then | |
7341 | echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp | |
7342 | fi | |
7343 | ||
7344 | if test "$wxUSE_SPLINES" = yes; then | |
698dcdb6 | 7345 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7346 | else |
698dcdb6 | 7347 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7348 | fi |
698dcdb6 | 7349 | |
10f2d63a | 7350 | |
698dcdb6 | 7351 | echo $ac_n "checking for --enable-validators""... $ac_c" 1>&6 |
77e13408 | 7352 | echo "configure:7353: checking for --enable-validators" >&5 |
10f2d63a VZ |
7353 | no_cache=0 |
7354 | # Check whether --enable-validators or --disable-validators was given. | |
7355 | if test "${enable_validators+set}" = set; then | |
7356 | enableval="$enable_validators" | |
698dcdb6 | 7357 | |
10f2d63a VZ |
7358 | if test "$enableval" = yes; then |
7359 | ac_cv_use_validators='wxUSE_VALIDATORS=yes' | |
7360 | else | |
7361 | ac_cv_use_validators='wxUSE_VALIDATORS=no' | |
7362 | fi | |
698dcdb6 | 7363 | |
10f2d63a | 7364 | else |
698dcdb6 | 7365 | |
10f2d63a VZ |
7366 | LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}` |
7367 | if test "x$LINE" != x ; then | |
7368 | eval "DEFAULT_$LINE" | |
7369 | else | |
7370 | no_cache=1 | |
7371 | fi | |
7372 | ||
7373 | ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS | |
698dcdb6 VZ |
7374 | |
7375 | fi | |
10f2d63a VZ |
7376 | |
7377 | ||
7378 | eval "$ac_cv_use_validators" | |
7379 | if test "$no_cache" != 1; then | |
7380 | echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp | |
7381 | fi | |
7382 | ||
7383 | if test "$wxUSE_VALIDATORS" = yes; then | |
698dcdb6 | 7384 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7385 | else |
698dcdb6 | 7386 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7387 | fi |
698dcdb6 | 7388 | |
10f2d63a | 7389 | |
698dcdb6 | 7390 | echo $ac_n "checking for --enable-busyinfo""... $ac_c" 1>&6 |
77e13408 | 7391 | echo "configure:7392: checking for --enable-busyinfo" >&5 |
10f2d63a VZ |
7392 | no_cache=0 |
7393 | # Check whether --enable-busyinfo or --disable-busyinfo was given. | |
7394 | if test "${enable_busyinfo+set}" = set; then | |
7395 | enableval="$enable_busyinfo" | |
698dcdb6 | 7396 | |
10f2d63a VZ |
7397 | if test "$enableval" = yes; then |
7398 | ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes' | |
7399 | else | |
7400 | ac_cv_use_busyinfo='wxUSE_BUSYINFO=no' | |
7401 | fi | |
698dcdb6 | 7402 | |
10f2d63a | 7403 | else |
698dcdb6 | 7404 | |
10f2d63a VZ |
7405 | LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}` |
7406 | if test "x$LINE" != x ; then | |
7407 | eval "DEFAULT_$LINE" | |
7408 | else | |
7409 | no_cache=1 | |
7410 | fi | |
7411 | ||
7412 | ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO | |
698dcdb6 VZ |
7413 | |
7414 | fi | |
10f2d63a VZ |
7415 | |
7416 | ||
7417 | eval "$ac_cv_use_busyinfo" | |
7418 | if test "$no_cache" != 1; then | |
7419 | echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp | |
7420 | fi | |
7421 | ||
7422 | if test "$wxUSE_BUSYINFO" = yes; then | |
698dcdb6 | 7423 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7424 | else |
698dcdb6 | 7425 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7426 | fi |
698dcdb6 | 7427 | |
10f2d63a | 7428 | |
698dcdb6 | 7429 | echo $ac_n "checking for --enable-joystick""... $ac_c" 1>&6 |
77e13408 | 7430 | echo "configure:7431: checking for --enable-joystick" >&5 |
f6bcfd97 BP |
7431 | no_cache=0 |
7432 | # Check whether --enable-joystick or --disable-joystick was given. | |
7433 | if test "${enable_joystick+set}" = set; then | |
7434 | enableval="$enable_joystick" | |
698dcdb6 | 7435 | |
f6bcfd97 BP |
7436 | if test "$enableval" = yes; then |
7437 | ac_cv_use_joystick='wxUSE_JOYSTICK=yes' | |
7438 | else | |
7439 | ac_cv_use_joystick='wxUSE_JOYSTICK=no' | |
7440 | fi | |
698dcdb6 | 7441 | |
f6bcfd97 | 7442 | else |
698dcdb6 | 7443 | |
f6bcfd97 BP |
7444 | LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}` |
7445 | if test "x$LINE" != x ; then | |
7446 | eval "DEFAULT_$LINE" | |
7447 | else | |
7448 | no_cache=1 | |
7449 | fi | |
7450 | ||
7451 | ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK | |
698dcdb6 VZ |
7452 | |
7453 | fi | |
f6bcfd97 BP |
7454 | |
7455 | ||
7456 | eval "$ac_cv_use_joystick" | |
7457 | if test "$no_cache" != 1; then | |
7458 | echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp | |
7459 | fi | |
7460 | ||
7461 | if test "$wxUSE_JOYSTICK" = yes; then | |
698dcdb6 | 7462 | echo "$ac_t""yes" 1>&6 |
f6bcfd97 | 7463 | else |
698dcdb6 | 7464 | echo "$ac_t""no" 1>&6 |
f6bcfd97 | 7465 | fi |
698dcdb6 VZ |
7466 | |
7467 | ||
1e6feb95 | 7468 | echo $ac_n "checking for --enable-metafile""... $ac_c" 1>&6 |
77e13408 | 7469 | echo "configure:7470: checking for --enable-metafile" >&5 |
1e6feb95 VZ |
7470 | no_cache=0 |
7471 | # Check whether --enable-metafile or --disable-metafile was given. | |
7472 | if test "${enable_metafile+set}" = set; then | |
7473 | enableval="$enable_metafile" | |
7474 | ||
7475 | if test "$enableval" = yes; then | |
7476 | ac_cv_use_metafile='wxUSE_METAFILE=yes' | |
7477 | else | |
7478 | ac_cv_use_metafile='wxUSE_METAFILE=no' | |
7479 | fi | |
7480 | ||
7481 | else | |
7482 | ||
7483 | LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}` | |
7484 | if test "x$LINE" != x ; then | |
7485 | eval "DEFAULT_$LINE" | |
7486 | else | |
7487 | no_cache=1 | |
7488 | fi | |
7489 | ||
7490 | ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE | |
7491 | ||
7492 | fi | |
7493 | ||
7494 | ||
7495 | eval "$ac_cv_use_metafile" | |
7496 | if test "$no_cache" != 1; then | |
7497 | echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp | |
7498 | fi | |
7499 | ||
7500 | if test "$wxUSE_METAFILE" = yes; then | |
7501 | echo "$ac_t""yes" 1>&6 | |
7502 | else | |
7503 | echo "$ac_t""no" 1>&6 | |
7504 | fi | |
7505 | ||
7506 | ||
24fd6d87 | 7507 | echo $ac_n "checking for --enable-dragimage""... $ac_c" 1>&6 |
77e13408 | 7508 | echo "configure:7509: checking for --enable-dragimage" >&5 |
24fd6d87 VZ |
7509 | no_cache=0 |
7510 | # Check whether --enable-dragimage or --disable-dragimage was given. | |
7511 | if test "${enable_dragimage+set}" = set; then | |
7512 | enableval="$enable_dragimage" | |
7513 | ||
7514 | if test "$enableval" = yes; then | |
7515 | ac_cv_use_dragimage='wxUSE_DRAGIMAGE=yes' | |
7516 | else | |
7517 | ac_cv_use_dragimage='wxUSE_DRAGIMAGE=no' | |
7518 | fi | |
7519 | ||
7520 | else | |
7521 | ||
7522 | LINE=`grep "wxUSE_DRAGIMAGE" ${wx_arg_cache_file}` | |
7523 | if test "x$LINE" != x ; then | |
7524 | eval "DEFAULT_$LINE" | |
7525 | else | |
7526 | no_cache=1 | |
7527 | fi | |
7528 | ||
7529 | ac_cv_use_dragimage='wxUSE_DRAGIMAGE='$DEFAULT_wxUSE_DRAGIMAGE | |
7530 | ||
7531 | fi | |
7532 | ||
7533 | ||
7534 | eval "$ac_cv_use_dragimage" | |
7535 | if test "$no_cache" != 1; then | |
7536 | echo $ac_cv_use_dragimage >> ${wx_arg_cache_file}.tmp | |
7537 | fi | |
7538 | ||
7539 | if test "$wxUSE_DRAGIMAGE" = yes; then | |
7540 | echo "$ac_t""yes" 1>&6 | |
7541 | else | |
7542 | echo "$ac_t""no" 1>&6 | |
7543 | fi | |
7544 | ||
7545 | ||
10f2d63a | 7546 | |
698dcdb6 | 7547 | |
edae8572 | 7548 | echo $ac_n "checking for --enable-palette""... $ac_c" 1>&6 |
77e13408 | 7549 | echo "configure:7550: checking for --enable-palette" >&5 |
edae8572 VZ |
7550 | no_cache=0 |
7551 | # Check whether --enable-palette or --disable-palette was given. | |
7552 | if test "${enable_palette+set}" = set; then | |
7553 | enableval="$enable_palette" | |
7554 | ||
7555 | if test "$enableval" = yes; then | |
7556 | ac_cv_use_palette='wxUSE_PALETTE=yes' | |
7557 | else | |
7558 | ac_cv_use_palette='wxUSE_PALETTE=no' | |
7559 | fi | |
7560 | ||
7561 | else | |
7562 | ||
7563 | LINE=`grep "wxUSE_PALETTE" ${wx_arg_cache_file}` | |
7564 | if test "x$LINE" != x ; then | |
7565 | eval "DEFAULT_$LINE" | |
7566 | else | |
7567 | no_cache=1 | |
7568 | fi | |
7569 | ||
7570 | ac_cv_use_palette='wxUSE_PALETTE='$DEFAULT_wxUSE_PALETTE | |
7571 | ||
7572 | fi | |
7573 | ||
7574 | ||
7575 | eval "$ac_cv_use_palette" | |
7576 | if test "$no_cache" != 1; then | |
7577 | echo $ac_cv_use_palette >> ${wx_arg_cache_file}.tmp | |
7578 | fi | |
7579 | ||
7580 | if test "$wxUSE_PALETTE" = yes; then | |
7581 | echo "$ac_t""yes" 1>&6 | |
7582 | else | |
7583 | echo "$ac_t""no" 1>&6 | |
7584 | fi | |
7585 | ||
7586 | ||
698dcdb6 | 7587 | echo $ac_n "checking for --enable-image""... $ac_c" 1>&6 |
77e13408 | 7588 | echo "configure:7589: checking for --enable-image" >&5 |
0046ff7c VS |
7589 | no_cache=0 |
7590 | # Check whether --enable-image or --disable-image was given. | |
7591 | if test "${enable_image+set}" = set; then | |
7592 | enableval="$enable_image" | |
698dcdb6 | 7593 | |
0046ff7c VS |
7594 | if test "$enableval" = yes; then |
7595 | ac_cv_use_image='wxUSE_IMAGE=yes' | |
7596 | else | |
7597 | ac_cv_use_image='wxUSE_IMAGE=no' | |
7598 | fi | |
698dcdb6 | 7599 | |
0046ff7c | 7600 | else |
698dcdb6 | 7601 | |
0046ff7c VS |
7602 | LINE=`grep "wxUSE_IMAGE" ${wx_arg_cache_file}` |
7603 | if test "x$LINE" != x ; then | |
7604 | eval "DEFAULT_$LINE" | |
7605 | else | |
7606 | no_cache=1 | |
7607 | fi | |
7608 | ||
7609 | ac_cv_use_image='wxUSE_IMAGE='$DEFAULT_wxUSE_IMAGE | |
698dcdb6 VZ |
7610 | |
7611 | fi | |
0046ff7c VS |
7612 | |
7613 | ||
7614 | eval "$ac_cv_use_image" | |
7615 | if test "$no_cache" != 1; then | |
7616 | echo $ac_cv_use_image >> ${wx_arg_cache_file}.tmp | |
7617 | fi | |
7618 | ||
7619 | if test "$wxUSE_IMAGE" = yes; then | |
698dcdb6 | 7620 | echo "$ac_t""yes" 1>&6 |
0046ff7c | 7621 | else |
698dcdb6 | 7622 | echo "$ac_t""no" 1>&6 |
0046ff7c | 7623 | fi |
698dcdb6 | 7624 | |
0046ff7c | 7625 | |
698dcdb6 | 7626 | echo $ac_n "checking for --enable-gif""... $ac_c" 1>&6 |
77e13408 | 7627 | echo "configure:7628: checking for --enable-gif" >&5 |
10f2d63a VZ |
7628 | no_cache=0 |
7629 | # Check whether --enable-gif or --disable-gif was given. | |
7630 | if test "${enable_gif+set}" = set; then | |
7631 | enableval="$enable_gif" | |
698dcdb6 | 7632 | |
10f2d63a VZ |
7633 | if test "$enableval" = yes; then |
7634 | ac_cv_use_gif='wxUSE_GIF=yes' | |
7635 | else | |
7636 | ac_cv_use_gif='wxUSE_GIF=no' | |
7637 | fi | |
698dcdb6 | 7638 | |
10f2d63a | 7639 | else |
698dcdb6 | 7640 | |
10f2d63a VZ |
7641 | LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}` |
7642 | if test "x$LINE" != x ; then | |
7643 | eval "DEFAULT_$LINE" | |
7644 | else | |
7645 | no_cache=1 | |
7646 | fi | |
7647 | ||
7648 | ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF | |
698dcdb6 VZ |
7649 | |
7650 | fi | |
10f2d63a VZ |
7651 | |
7652 | ||
7653 | eval "$ac_cv_use_gif" | |
7654 | if test "$no_cache" != 1; then | |
7655 | echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp | |
7656 | fi | |
7657 | ||
7658 | if test "$wxUSE_GIF" = yes; then | |
698dcdb6 | 7659 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7660 | else |
698dcdb6 | 7661 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7662 | fi |
698dcdb6 | 7663 | |
10f2d63a | 7664 | |
698dcdb6 | 7665 | echo $ac_n "checking for --enable-pcx""... $ac_c" 1>&6 |
77e13408 | 7666 | echo "configure:7667: checking for --enable-pcx" >&5 |
10f2d63a VZ |
7667 | no_cache=0 |
7668 | # Check whether --enable-pcx or --disable-pcx was given. | |
7669 | if test "${enable_pcx+set}" = set; then | |
7670 | enableval="$enable_pcx" | |
698dcdb6 | 7671 | |
10f2d63a VZ |
7672 | if test "$enableval" = yes; then |
7673 | ac_cv_use_pcx='wxUSE_PCX=yes' | |
7674 | else | |
7675 | ac_cv_use_pcx='wxUSE_PCX=no' | |
7676 | fi | |
698dcdb6 | 7677 | |
10f2d63a | 7678 | else |
698dcdb6 | 7679 | |
10f2d63a VZ |
7680 | LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}` |
7681 | if test "x$LINE" != x ; then | |
7682 | eval "DEFAULT_$LINE" | |
7683 | else | |
7684 | no_cache=1 | |
7685 | fi | |
7686 | ||
7687 | ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX | |
698dcdb6 VZ |
7688 | |
7689 | fi | |
10f2d63a VZ |
7690 | |
7691 | ||
7692 | eval "$ac_cv_use_pcx" | |
7693 | if test "$no_cache" != 1; then | |
7694 | echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp | |
7695 | fi | |
7696 | ||
7697 | if test "$wxUSE_PCX" = yes; then | |
698dcdb6 | 7698 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7699 | else |
698dcdb6 | 7700 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7701 | fi |
698dcdb6 | 7702 | |
10f2d63a | 7703 | |
698dcdb6 | 7704 | echo $ac_n "checking for --enable-pnm""... $ac_c" 1>&6 |
77e13408 | 7705 | echo "configure:7706: checking for --enable-pnm" >&5 |
10f2d63a VZ |
7706 | no_cache=0 |
7707 | # Check whether --enable-pnm or --disable-pnm was given. | |
7708 | if test "${enable_pnm+set}" = set; then | |
7709 | enableval="$enable_pnm" | |
698dcdb6 | 7710 | |
10f2d63a VZ |
7711 | if test "$enableval" = yes; then |
7712 | ac_cv_use_pnm='wxUSE_PNM=yes' | |
7713 | else | |
7714 | ac_cv_use_pnm='wxUSE_PNM=no' | |
7715 | fi | |
698dcdb6 | 7716 | |
10f2d63a | 7717 | else |
698dcdb6 | 7718 | |
10f2d63a VZ |
7719 | LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}` |
7720 | if test "x$LINE" != x ; then | |
7721 | eval "DEFAULT_$LINE" | |
7722 | else | |
7723 | no_cache=1 | |
7724 | fi | |
7725 | ||
7726 | ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM | |
698dcdb6 VZ |
7727 | |
7728 | fi | |
10f2d63a VZ |
7729 | |
7730 | ||
7731 | eval "$ac_cv_use_pnm" | |
7732 | if test "$no_cache" != 1; then | |
7733 | echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp | |
7734 | fi | |
7735 | ||
7736 | if test "$wxUSE_PNM" = yes; then | |
698dcdb6 | 7737 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7738 | else |
698dcdb6 | 7739 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7740 | fi |
698dcdb6 | 7741 | |
10f2d63a | 7742 | |
698dcdb6 | 7743 | echo $ac_n "checking for --enable-pnm""... $ac_c" 1>&6 |
77e13408 | 7744 | echo "configure:7745: checking for --enable-pnm" >&5 |
0046ff7c VS |
7745 | no_cache=0 |
7746 | # Check whether --enable-pnm or --disable-pnm was given. | |
7747 | if test "${enable_pnm+set}" = set; then | |
7748 | enableval="$enable_pnm" | |
698dcdb6 | 7749 | |
0046ff7c VS |
7750 | if test "$enableval" = yes; then |
7751 | ac_cv_use_pnm='wxUSE_XPM=yes' | |
7752 | else | |
7753 | ac_cv_use_pnm='wxUSE_XPM=no' | |
7754 | fi | |
698dcdb6 | 7755 | |
0046ff7c | 7756 | else |
698dcdb6 | 7757 | |
0046ff7c VS |
7758 | LINE=`grep "wxUSE_XPM" ${wx_arg_cache_file}` |
7759 | if test "x$LINE" != x ; then | |
7760 | eval "DEFAULT_$LINE" | |
7761 | else | |
7762 | no_cache=1 | |
7763 | fi | |
7764 | ||
7765 | ac_cv_use_pnm='wxUSE_XPM='$DEFAULT_wxUSE_XPM | |
698dcdb6 VZ |
7766 | |
7767 | fi | |
0046ff7c VS |
7768 | |
7769 | ||
7770 | eval "$ac_cv_use_pnm" | |
7771 | if test "$no_cache" != 1; then | |
7772 | echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp | |
7773 | fi | |
7774 | ||
7775 | if test "$wxUSE_XPM" = yes; then | |
698dcdb6 | 7776 | echo "$ac_t""yes" 1>&6 |
0046ff7c | 7777 | else |
698dcdb6 | 7778 | echo "$ac_t""no" 1>&6 |
0046ff7c | 7779 | fi |
698dcdb6 | 7780 | |
0046ff7c | 7781 | |
b12915c1 VZ |
7782 | fi |
7783 | ||
698dcdb6 | 7784 | |
10f2d63a VZ |
7785 | echo "saving argument cache $wx_arg_cache_file" |
7786 | mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file} | |
698dcdb6 | 7787 | |
10f2d63a | 7788 | |
698dcdb6 VZ |
7789 | |
7790 | echo $ac_n "checking for toolkit""... $ac_c" 1>&6 | |
77e13408 | 7791 | echo "configure:7792: checking for toolkit" >&5 |
10f2d63a VZ |
7792 | |
7793 | if test "$wxUSE_GUI" = "yes"; then | |
7794 | ||
3a922bb4 RL |
7795 | if test "$USE_BEOS" = 1; then |
7796 | { echo "configure: error: BeOS GUI is not supported yet, use --disable-gui" 1>&2; exit 1; } | |
7797 | fi | |
b12915c1 | 7798 | |
3a922bb4 RL |
7799 | if test "$TOOLKIT_GIVEN" = 1; then |
7800 | for toolkit in `echo $ALL_TOOLKITS`; do | |
7801 | var=wxUSE_$toolkit | |
7802 | eval "value=\$${var}" | |
7803 | eval "$var=`echo \$value | sed -e "s/yes/1/" -e "s/no/0/"`" | |
7804 | done | |
10f2d63a | 7805 | else |
3a922bb4 RL |
7806 | for toolkit in `echo $ALL_TOOLKITS`; do |
7807 | if test "$has_toolkit_in_cache" != 1; then | |
7808 | var=DEFAULT_DEFAULT_wxUSE_$toolkit | |
7809 | else | |
7810 | var=DEFAULT_wxUSE_$toolkit | |
7811 | fi | |
7812 | eval "wxUSE_$toolkit=\$${var}" | |
7813 | done | |
10f2d63a | 7814 | fi |
10f2d63a | 7815 | |
3a922bb4 | 7816 | NUM_TOOLKITS=`expr ${wxUSE_GTK:-0} + ${wxUSE_MOTIF:-0} + ${wxUSE_MAC:-0} \ |
77e13408 | 7817 | + ${wxUSE_WINE:-0} + ${wxUSE_MSW:-0} + ${wxUSE_MGL:-0}` |
10f2d63a | 7818 | |
3a922bb4 | 7819 | case "${host}" in |
6fa882bd | 7820 | *-pc-os2_emx | *-pc-os2-emx ) |
3a922bb4 RL |
7821 | # PATH_IFS is autodetected by OS/2's configure (usually ';') |
7822 | NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}` | |
7823 | LEX_STEM="lexyy" | |
7824 | ;; | |
7825 | *) | |
7826 | PATH_IFS=':' | |
7827 | LEX_STEM="lex.yy" | |
7828 | ;; | |
7829 | esac | |
10f2d63a | 7830 | |
3a922bb4 RL |
7831 | case "$NUM_TOOLKITS" in |
7832 | 1) | |
7833 | ;; | |
7834 | 0) | |
7835 | { echo "configure: error: Please specify a toolkit - cannot determine the default for ${host}" 1>&2; exit 1; } | |
7836 | ;; | |
7837 | *) | |
7838 | { echo "configure: error: Please specify at most one toolkit (may be some are cached?)" 1>&2; exit 1; } | |
7839 | esac | |
10f2d63a | 7840 | |
3a922bb4 RL |
7841 | for toolkit in `echo $ALL_TOOLKITS`; do |
7842 | var=wxUSE_$toolkit | |
7843 | eval "value=\$${var}" | |
7844 | if test "x$value" != x; then | |
7845 | cache_var=CACHE_$toolkit | |
7846 | eval "cache=\$${cache_var}" | |
7847 | if test "$cache" = 1; then | |
7848 | echo "$var=$value" >> ${wx_arg_cache_file} | |
7849 | fi | |
7850 | if test "$value" = 1; then | |
7851 | toolkit_echo=`echo $toolkit | tr [A-Z] [a-z]` | |
7852 | echo "$ac_t""$toolkit_echo" 1>&6 | |
7853 | fi | |
7854 | fi | |
7855 | done | |
10f2d63a | 7856 | else |
cf27ef00 | 7857 | PATH_IFS=':' |
3a922bb4 | 7858 | echo "$ac_t""base ($host_alias hosted) only" 1>&6 |
10f2d63a VZ |
7859 | fi |
7860 | ||
698dcdb6 VZ |
7861 | |
7862 | cat > confcache <<\EOF | |
10f2d63a VZ |
7863 | # This file is a shell script that caches the results of configure |
7864 | # tests run on this system so they can be shared between configure | |
698dcdb6 VZ |
7865 | # scripts and configure runs. It is not useful on other systems. |
7866 | # If it contains results you don't want to keep, you may remove or edit it. | |
10f2d63a | 7867 | # |
698dcdb6 VZ |
7868 | # By default, configure uses ./config.cache as the cache file, |
7869 | # creating it if it does not exist already. You can give configure | |
7870 | # the --cache-file=FILE option to use a different cache file; that is | |
7871 | # what configure does when it calls configure scripts in | |
7872 | # subdirectories, so they share the cache. | |
7873 | # Giving --cache-file=/dev/null disables caching, for debugging configure. | |
7874 | # config.status only pays attention to the cache file if you give it the | |
7875 | # --recheck option to rerun configure. | |
10f2d63a | 7876 | # |
698dcdb6 | 7877 | EOF |
10f2d63a VZ |
7878 | # The following way of writing the cache mishandles newlines in values, |
7879 | # but we know of no workaround that is simple, portable, and efficient. | |
7880 | # So, don't put newlines in cache variables' values. | |
7881 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
7882 | # and sets the high bit in the cache file unless we assign to the vars. | |
698dcdb6 VZ |
7883 | (set) 2>&1 | |
7884 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
7885 | *ac_space=\ *) | |
7886 | # `set' does not quote correctly, so add quotes (double-quote substitution | |
7887 | # turns \\\\ into \\, and sed turns \\ into \). | |
7888 | sed -n \ | |
7889 | -e "s/'/'\\\\''/g" \ | |
7890 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" | |
7891 | ;; | |
7892 | *) | |
7893 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
7894 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' | |
7895 | ;; | |
7896 | esac >> confcache | |
7897 | if cmp -s $cache_file confcache; then | |
7898 | : | |
7899 | else | |
10f2d63a | 7900 | if test -w $cache_file; then |
698dcdb6 VZ |
7901 | echo "updating cache $cache_file" |
7902 | cat confcache > $cache_file | |
10f2d63a VZ |
7903 | else |
7904 | echo "not updating unwritable cache $cache_file" | |
7905 | fi | |
7906 | fi | |
7907 | rm -f confcache | |
7908 | ||
698dcdb6 | 7909 | |
e59890c3 | 7910 | if test "$build" != "$host" ; then |
3a922bb4 RL |
7911 | if test "$USE_WIN32" = 1 ; then |
7912 | CC=$host_alias-gcc | |
7913 | CXX=$host_alias-c++ | |
7914 | AR=$host_alias-ar | |
7915 | RANLIB=$host_alias-ranlib | |
7916 | DLLTOOL=$host_alias-dlltool | |
7917 | RESCOMP=$host_alias-windres | |
7918 | LD=$host_alias-ld | |
7919 | NM=$host_alias-nm | |
7920 | STRIP=$host_alias-strip | |
7921 | else | |
7922 | { echo "configure: error: $build_alias -> $host_alias cross compilation not supported yet." 1>&2; exit 1; } | |
7923 | fi | |
10f2d63a VZ |
7924 | fi |
7925 | ||
698dcdb6 | 7926 | # Extract the first word of "gcc", so it can be a program name with args. |
1e487827 | 7927 | set dummy gcc; ac_word=$2 |
698dcdb6 | 7928 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
77e13408 | 7929 | echo "configure:7930: checking for $ac_word" >&5 |
698dcdb6 VZ |
7930 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
7931 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6232543b VS |
7932 | else |
7933 | if test -n "$CC"; then | |
7934 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
10f2d63a | 7935 | else |
698dcdb6 VZ |
7936 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
7937 | ac_dummy="$PATH" | |
7938 | for ac_dir in $ac_dummy; do | |
7939 | test -z "$ac_dir" && ac_dir=. | |
7940 | if test -f $ac_dir/$ac_word; then | |
7941 | ac_cv_prog_CC="gcc" | |
7942 | break | |
7943 | fi | |
7944 | done | |
7945 | IFS="$ac_save_ifs" | |
10f2d63a | 7946 | fi |
6232543b | 7947 | fi |
698dcdb6 | 7948 | CC="$ac_cv_prog_CC" |
6232543b | 7949 | if test -n "$CC"; then |
698dcdb6 | 7950 | echo "$ac_t""$CC" 1>&6 |
1e487827 | 7951 | else |
698dcdb6 | 7952 | echo "$ac_t""no" 1>&6 |
1e487827 | 7953 | fi |
6232543b | 7954 | |
1e487827 VS |
7955 | if test -z "$CC"; then |
7956 | # Extract the first word of "cc", so it can be a program name with args. | |
7957 | set dummy cc; ac_word=$2 | |
698dcdb6 | 7958 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
77e13408 | 7959 | echo "configure:7960: checking for $ac_word" >&5 |
698dcdb6 VZ |
7960 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
7961 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1e487827 VS |
7962 | else |
7963 | if test -n "$CC"; then | |
7964 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
7965 | else | |
698dcdb6 | 7966 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
1e487827 | 7967 | ac_prog_rejected=no |
698dcdb6 VZ |
7968 | ac_dummy="$PATH" |
7969 | for ac_dir in $ac_dummy; do | |
7970 | test -z "$ac_dir" && ac_dir=. | |
7971 | if test -f $ac_dir/$ac_word; then | |
7972 | if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then | |
7973 | ac_prog_rejected=yes | |
7974 | continue | |
7975 | fi | |
7976 | ac_cv_prog_CC="cc" | |
7977 | break | |
7978 | fi | |
7979 | done | |
7980 | IFS="$ac_save_ifs" | |
1e487827 VS |
7981 | if test $ac_prog_rejected = yes; then |
7982 | # We found a bogon in the path, so make sure we never use it. | |
7983 | set dummy $ac_cv_prog_CC | |
7984 | shift | |
698dcdb6 | 7985 | if test $# -gt 0; then |
1e487827 VS |
7986 | # We chose a different compiler from the bogus one. |
7987 | # However, it has the same basename, so the bogon will be chosen | |
7988 | # first if we set CC to just the basename; use the full file name. | |
7989 | shift | |
698dcdb6 | 7990 | set dummy "$ac_dir/$ac_word" "$@" |
1e487827 VS |
7991 | shift |
7992 | ac_cv_prog_CC="$@" | |
703e0a69 | 7993 | fi |
1e487827 VS |
7994 | fi |
7995 | fi | |
7996 | fi | |
698dcdb6 | 7997 | CC="$ac_cv_prog_CC" |
1e487827 | 7998 | if test -n "$CC"; then |
698dcdb6 | 7999 | echo "$ac_t""$CC" 1>&6 |
703e0a69 | 8000 | else |
698dcdb6 | 8001 | echo "$ac_t""no" 1>&6 |
703e0a69 | 8002 | fi |
1e487827 | 8003 | |
698dcdb6 VZ |
8004 | if test -z "$CC"; then |
8005 | case "`uname -s`" in | |
8006 | *win32* | *WIN32*) | |
8007 | # Extract the first word of "cl", so it can be a program name with args. | |
8008 | set dummy cl; ac_word=$2 | |
8009 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
77e13408 | 8010 | echo "configure:8011: checking for $ac_word" >&5 |
698dcdb6 VZ |
8011 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
8012 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1e487827 VS |
8013 | else |
8014 | if test -n "$CC"; then | |
8015 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
703e0a69 | 8016 | else |
698dcdb6 VZ |
8017 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
8018 | ac_dummy="$PATH" | |
8019 | for ac_dir in $ac_dummy; do | |
8020 | test -z "$ac_dir" && ac_dir=. | |
8021 | if test -f $ac_dir/$ac_word; then | |
8022 | ac_cv_prog_CC="cl" | |
8023 | break | |
8024 | fi | |
8025 | done | |
8026 | IFS="$ac_save_ifs" | |
703e0a69 | 8027 | fi |
1e487827 | 8028 | fi |
698dcdb6 | 8029 | CC="$ac_cv_prog_CC" |
1e487827 | 8030 | if test -n "$CC"; then |
698dcdb6 | 8031 | echo "$ac_t""$CC" 1>&6 |
1e487827 | 8032 | else |
698dcdb6 | 8033 | echo "$ac_t""no" 1>&6 |
1e487827 | 8034 | fi |
698dcdb6 VZ |
8035 | ;; |
8036 | esac | |
8037 | fi | |
8038 | test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } | |
1e487827 VS |
8039 | fi |
8040 | ||
698dcdb6 | 8041 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 |
77e13408 | 8042 | echo "configure:8043: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 |
1e487827 | 8043 | |
698dcdb6 VZ |
8044 | ac_ext=c |
8045 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
8046 | ac_cpp='$CPP $CPPFLAGS' | |
8047 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
8048 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
8049 | cross_compiling=$ac_cv_prog_cc_cross | |
6232543b | 8050 | |
698dcdb6 | 8051 | cat > conftest.$ac_ext << EOF |
1e487827 | 8052 | |
77e13408 | 8053 | #line 8054 "configure" |
1e487827 VS |
8054 | #include "confdefs.h" |
8055 | ||
698dcdb6 VZ |
8056 | main(){return(0);} |
8057 | EOF | |
77e13408 | 8058 | if { (eval echo configure:8059: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
8059 | ac_cv_prog_cc_works=yes |
8060 | # If we can't run a trivial program, we are probably using a cross compiler. | |
8061 | if (./conftest; exit) 2>/dev/null; then | |
8062 | ac_cv_prog_cc_cross=no | |
8063 | else | |
8064 | ac_cv_prog_cc_cross=yes | |
8065 | fi | |
8066 | else | |
8067 | echo "configure: failed program was:" >&5 | |
8068 | cat conftest.$ac_ext >&5 | |
8069 | ac_cv_prog_cc_works=no | |
8070 | fi | |
8071 | rm -fr conftest* | |
8072 | ac_ext=c | |
8073 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
8074 | ac_cpp='$CPP $CPPFLAGS' | |
8075 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
8076 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
8077 | cross_compiling=$ac_cv_prog_cc_cross | |
8078 | ||
8079 | echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 | |
8080 | if test $ac_cv_prog_cc_works = no; then | |
8081 | { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } | |
8082 | fi | |
8083 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 | |
77e13408 | 8084 | echo "configure:8085: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 |
698dcdb6 VZ |
8085 | echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 |
8086 | cross_compiling=$ac_cv_prog_cc_cross | |
8087 | ||
8088 | echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 | |
77e13408 | 8089 | echo "configure:8090: checking whether we are using GNU C" >&5 |
698dcdb6 VZ |
8090 | if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then |
8091 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8092 | else | |
8093 | cat > conftest.c <<EOF | |
8094 | #ifdef __GNUC__ | |
8095 | yes; | |
1e487827 | 8096 | #endif |
698dcdb6 | 8097 | EOF |
77e13408 | 8098 | if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:8099: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then |
698dcdb6 VZ |
8099 | ac_cv_prog_gcc=yes |
8100 | else | |
8101 | ac_cv_prog_gcc=no | |
8102 | fi | |
8103 | fi | |
1e487827 | 8104 | |
698dcdb6 | 8105 | echo "$ac_t""$ac_cv_prog_gcc" 1>&6 |
1e487827 | 8106 | |
698dcdb6 VZ |
8107 | if test $ac_cv_prog_gcc = yes; then |
8108 | GCC=yes | |
8109 | else | |
8110 | GCC= | |
8111 | fi | |
1e487827 | 8112 | |
698dcdb6 VZ |
8113 | ac_test_CFLAGS="${CFLAGS+set}" |
8114 | ac_save_CFLAGS="$CFLAGS" | |
8115 | CFLAGS= | |
8116 | echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 | |
77e13408 | 8117 | echo "configure:8118: checking whether ${CC-cc} accepts -g" >&5 |
698dcdb6 VZ |
8118 | if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then |
8119 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8120 | else | |
8121 | echo 'void f(){}' > conftest.c | |
8122 | if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then | |
10f2d63a VZ |
8123 | ac_cv_prog_cc_g=yes |
8124 | else | |
698dcdb6 | 8125 | ac_cv_prog_cc_g=no |
10f2d63a | 8126 | fi |
698dcdb6 VZ |
8127 | rm -f conftest* |
8128 | ||
10f2d63a | 8129 | fi |
698dcdb6 VZ |
8130 | |
8131 | echo "$ac_t""$ac_cv_prog_cc_g" 1>&6 | |
10f2d63a | 8132 | if test "$ac_test_CFLAGS" = set; then |
698dcdb6 | 8133 | CFLAGS="$ac_save_CFLAGS" |
10f2d63a VZ |
8134 | elif test $ac_cv_prog_cc_g = yes; then |
8135 | if test "$GCC" = yes; then | |
8136 | CFLAGS="-g -O2" | |
8137 | else | |
8138 | CFLAGS="-g" | |
8139 | fi | |
8140 | else | |
8141 | if test "$GCC" = yes; then | |
8142 | CFLAGS="-O2" | |
8143 | else | |
8144 | CFLAGS= | |
8145 | fi | |
8146 | fi | |
8147 | ||
8148 | ||
8149 | CFLAGS=`echo "$CFLAGS" | sed 's/-g//g'` | |
8150 | ||
698dcdb6 | 8151 | echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 |
77e13408 | 8152 | echo "configure:8153: checking how to run the C preprocessor" >&5 |
10f2d63a VZ |
8153 | # On Suns, sometimes $CPP names a directory. |
8154 | if test -n "$CPP" && test -d "$CPP"; then | |
8155 | CPP= | |
8156 | fi | |
8157 | if test -z "$CPP"; then | |
698dcdb6 VZ |
8158 | if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then |
8159 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8160 | else | |
8161 | # This must be in double quotes, not single quotes, because CPP may get | |
8162 | # substituted into the Makefile and "${CC-cc}" will confuse make. | |
8163 | CPP="${CC-cc} -E" | |
10f2d63a | 8164 | # On the NeXT, cc -E runs the code through the compiler's parser, |
698dcdb6 VZ |
8165 | # not just through cpp. |
8166 | cat > conftest.$ac_ext <<EOF | |
77e13408 | 8167 | #line 8168 "configure" |
10f2d63a VZ |
8168 | #include "confdefs.h" |
8169 | #include <assert.h> | |
698dcdb6 VZ |
8170 | Syntax Error |
8171 | EOF | |
8172 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
77e13408 | 8173 | { (eval echo configure:8174: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
8174 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
8175 | if test -z "$ac_err"; then | |
10f2d63a VZ |
8176 | : |
8177 | else | |
698dcdb6 VZ |
8178 | echo "$ac_err" >&5 |
8179 | echo "configure: failed program was:" >&5 | |
10f2d63a | 8180 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
8181 | rm -rf conftest* |
8182 | CPP="${CC-cc} -E -traditional-cpp" | |
8183 | cat > conftest.$ac_ext <<EOF | |
77e13408 | 8184 | #line 8185 "configure" |
10f2d63a | 8185 | #include "confdefs.h" |
698dcdb6 VZ |
8186 | #include <assert.h> |
8187 | Syntax Error | |
8188 | EOF | |
8189 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
77e13408 | 8190 | { (eval echo configure:8191: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
8191 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
8192 | if test -z "$ac_err"; then | |
8193 | : | |
10f2d63a | 8194 | else |
698dcdb6 VZ |
8195 | echo "$ac_err" >&5 |
8196 | echo "configure: failed program was:" >&5 | |
10f2d63a | 8197 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
8198 | rm -rf conftest* |
8199 | CPP="${CC-cc} -nologo -E" | |
8200 | cat > conftest.$ac_ext <<EOF | |
77e13408 | 8201 | #line 8202 "configure" |
10f2d63a VZ |
8202 | #include "confdefs.h" |
8203 | #include <assert.h> | |
698dcdb6 VZ |
8204 | Syntax Error |
8205 | EOF | |
8206 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
77e13408 | 8207 | { (eval echo configure:8208: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
8208 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
8209 | if test -z "$ac_err"; then | |
10f2d63a VZ |
8210 | : |
8211 | else | |
698dcdb6 VZ |
8212 | echo "$ac_err" >&5 |
8213 | echo "configure: failed program was:" >&5 | |
10f2d63a | 8214 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
8215 | rm -rf conftest* |
8216 | CPP=/lib/cpp | |
10f2d63a | 8217 | fi |
698dcdb6 | 8218 | rm -f conftest* |
10f2d63a | 8219 | fi |
698dcdb6 | 8220 | rm -f conftest* |
703e0a69 | 8221 | fi |
698dcdb6 VZ |
8222 | rm -f conftest* |
8223 | ac_cv_prog_CPP="$CPP" | |
8224 | fi | |
8225 | CPP="$ac_cv_prog_CPP" | |
10f2d63a | 8226 | else |
698dcdb6 | 8227 | ac_cv_prog_CPP="$CPP" |
10f2d63a | 8228 | fi |
698dcdb6 | 8229 | echo "$ac_t""$CPP" 1>&6 |
10f2d63a | 8230 | |
698dcdb6 VZ |
8231 | if test $ac_cv_prog_gcc = yes; then |
8232 | echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6 | |
77e13408 | 8233 | echo "configure:8234: checking whether ${CC-cc} needs -traditional" >&5 |
698dcdb6 VZ |
8234 | if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then |
8235 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a VZ |
8236 | else |
8237 | ac_pattern="Autoconf.*'x'" | |
698dcdb6 | 8238 | cat > conftest.$ac_ext <<EOF |
77e13408 | 8239 | #line 8240 "configure" |
10f2d63a VZ |
8240 | #include "confdefs.h" |
8241 | #include <sgtty.h> | |
8242 | Autoconf TIOCGETP | |
698dcdb6 | 8243 | EOF |
10f2d63a VZ |
8244 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
8245 | egrep "$ac_pattern" >/dev/null 2>&1; then | |
698dcdb6 | 8246 | rm -rf conftest* |
10f2d63a VZ |
8247 | ac_cv_prog_gcc_traditional=yes |
8248 | else | |
698dcdb6 | 8249 | rm -rf conftest* |
10f2d63a VZ |
8250 | ac_cv_prog_gcc_traditional=no |
8251 | fi | |
8252 | rm -f conftest* | |
8253 | ||
698dcdb6 | 8254 | |
10f2d63a | 8255 | if test $ac_cv_prog_gcc_traditional = no; then |
698dcdb6 | 8256 | cat > conftest.$ac_ext <<EOF |
77e13408 | 8257 | #line 8258 "configure" |
10f2d63a VZ |
8258 | #include "confdefs.h" |
8259 | #include <termio.h> | |
8260 | Autoconf TCGETA | |
698dcdb6 | 8261 | EOF |
10f2d63a VZ |
8262 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
8263 | egrep "$ac_pattern" >/dev/null 2>&1; then | |
698dcdb6 | 8264 | rm -rf conftest* |
10f2d63a VZ |
8265 | ac_cv_prog_gcc_traditional=yes |
8266 | fi | |
8267 | rm -f conftest* | |
8268 | ||
8269 | fi | |
8270 | fi | |
698dcdb6 VZ |
8271 | |
8272 | echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6 | |
10f2d63a VZ |
8273 | if test $ac_cv_prog_gcc_traditional = yes; then |
8274 | CC="$CC -traditional" | |
8275 | fi | |
8276 | fi | |
8277 | ||
703e0a69 | 8278 | |
698dcdb6 VZ |
8279 | |
8280 | ac_ext=C | |
8281 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
1e487827 | 8282 | ac_cpp='$CXXCPP $CPPFLAGS' |
698dcdb6 VZ |
8283 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
8284 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
8285 | cross_compiling=$ac_cv_prog_cxx_cross | |
8286 | ||
8287 | ||
8288 | for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl | |
8289 | do | |
8290 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
8291 | set dummy $ac_prog; ac_word=$2 | |
8292 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
77e13408 | 8293 | echo "configure:8294: checking for $ac_word" >&5 |
698dcdb6 VZ |
8294 | if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then |
8295 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a VZ |
8296 | else |
8297 | if test -n "$CXX"; then | |
8298 | ac_cv_prog_CXX="$CXX" # Let the user override the test. | |
8299 | else | |
698dcdb6 VZ |
8300 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
8301 | ac_dummy="$PATH" | |
8302 | for ac_dir in $ac_dummy; do | |
8303 | test -z "$ac_dir" && ac_dir=. | |
8304 | if test -f $ac_dir/$ac_word; then | |
8305 | ac_cv_prog_CXX="$ac_prog" | |
8306 | break | |
8307 | fi | |
8308 | done | |
8309 | IFS="$ac_save_ifs" | |
10f2d63a VZ |
8310 | fi |
8311 | fi | |
698dcdb6 | 8312 | CXX="$ac_cv_prog_CXX" |
10f2d63a | 8313 | if test -n "$CXX"; then |
698dcdb6 | 8314 | echo "$ac_t""$CXX" 1>&6 |
10f2d63a | 8315 | else |
698dcdb6 | 8316 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
8317 | fi |
8318 | ||
698dcdb6 | 8319 | test -n "$CXX" && break |
10f2d63a | 8320 | done |
698dcdb6 | 8321 | test -n "$CXX" || CXX="gcc" |
10f2d63a VZ |
8322 | |
8323 | ||
698dcdb6 | 8324 | echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6 |
77e13408 | 8325 | echo "configure:8326: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5 |
10f2d63a | 8326 | |
698dcdb6 VZ |
8327 | ac_ext=C |
8328 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
8329 | ac_cpp='$CXXCPP $CPPFLAGS' | |
8330 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
8331 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
8332 | cross_compiling=$ac_cv_prog_cxx_cross | |
703e0a69 | 8333 | |
698dcdb6 VZ |
8334 | cat > conftest.$ac_ext << EOF |
8335 | ||
77e13408 | 8336 | #line 8337 "configure" |
10f2d63a VZ |
8337 | #include "confdefs.h" |
8338 | ||
698dcdb6 VZ |
8339 | int main(){return(0);} |
8340 | EOF | |
77e13408 | 8341 | if { (eval echo configure:8342: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
8342 | ac_cv_prog_cxx_works=yes |
8343 | # If we can't run a trivial program, we are probably using a cross compiler. | |
8344 | if (./conftest; exit) 2>/dev/null; then | |
8345 | ac_cv_prog_cxx_cross=no | |
8346 | else | |
8347 | ac_cv_prog_cxx_cross=yes | |
8348 | fi | |
8349 | else | |
8350 | echo "configure: failed program was:" >&5 | |
8351 | cat conftest.$ac_ext >&5 | |
8352 | ac_cv_prog_cxx_works=no | |
8353 | fi | |
8354 | rm -fr conftest* | |
8355 | ac_ext=C | |
8356 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
8357 | ac_cpp='$CXXCPP $CPPFLAGS' | |
8358 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
8359 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
8360 | cross_compiling=$ac_cv_prog_cxx_cross | |
8361 | ||
8362 | echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6 | |
8363 | if test $ac_cv_prog_cxx_works = no; then | |
8364 | { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; } | |
8365 | fi | |
8366 | echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 | |
77e13408 | 8367 | echo "configure:8368: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5 |
698dcdb6 VZ |
8368 | echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6 |
8369 | cross_compiling=$ac_cv_prog_cxx_cross | |
8370 | ||
8371 | echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6 | |
77e13408 | 8372 | echo "configure:8373: checking whether we are using GNU C++" >&5 |
698dcdb6 VZ |
8373 | if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then |
8374 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8375 | else | |
8376 | cat > conftest.C <<EOF | |
8377 | #ifdef __GNUC__ | |
8378 | yes; | |
10f2d63a | 8379 | #endif |
698dcdb6 | 8380 | EOF |
77e13408 | 8381 | if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:8382: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then |
698dcdb6 VZ |
8382 | ac_cv_prog_gxx=yes |
8383 | else | |
8384 | ac_cv_prog_gxx=no | |
8385 | fi | |
8386 | fi | |
10f2d63a | 8387 | |
698dcdb6 | 8388 | echo "$ac_t""$ac_cv_prog_gxx" 1>&6 |
10f2d63a | 8389 | |
698dcdb6 VZ |
8390 | if test $ac_cv_prog_gxx = yes; then |
8391 | GXX=yes | |
8392 | else | |
8393 | GXX= | |
8394 | fi | |
10f2d63a | 8395 | |
698dcdb6 VZ |
8396 | ac_test_CXXFLAGS="${CXXFLAGS+set}" |
8397 | ac_save_CXXFLAGS="$CXXFLAGS" | |
8398 | CXXFLAGS= | |
8399 | echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6 | |
77e13408 | 8400 | echo "configure:8401: checking whether ${CXX-g++} accepts -g" >&5 |
698dcdb6 VZ |
8401 | if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then |
8402 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8403 | else | |
8404 | echo 'void f(){}' > conftest.cc | |
8405 | if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then | |
10f2d63a VZ |
8406 | ac_cv_prog_cxx_g=yes |
8407 | else | |
698dcdb6 | 8408 | ac_cv_prog_cxx_g=no |
10f2d63a | 8409 | fi |
698dcdb6 VZ |
8410 | rm -f conftest* |
8411 | ||
10f2d63a | 8412 | fi |
698dcdb6 VZ |
8413 | |
8414 | echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6 | |
10f2d63a | 8415 | if test "$ac_test_CXXFLAGS" = set; then |
698dcdb6 | 8416 | CXXFLAGS="$ac_save_CXXFLAGS" |
10f2d63a VZ |
8417 | elif test $ac_cv_prog_cxx_g = yes; then |
8418 | if test "$GXX" = yes; then | |
8419 | CXXFLAGS="-g -O2" | |
8420 | else | |
8421 | CXXFLAGS="-g" | |
8422 | fi | |
8423 | else | |
8424 | if test "$GXX" = yes; then | |
8425 | CXXFLAGS="-O2" | |
8426 | else | |
8427 | CXXFLAGS= | |
8428 | fi | |
8429 | fi | |
8430 | ||
8431 | ||
10f2d63a VZ |
8432 | CXXFLAGS=`echo "$CXXFLAGS" | sed 's/-g//g'` |
8433 | ||
8434 | ac_ext=c | |
698dcdb6 | 8435 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
10f2d63a | 8436 | ac_cpp='$CPP $CPPFLAGS' |
698dcdb6 VZ |
8437 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
8438 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
8439 | cross_compiling=$ac_cv_prog_cc_cross | |
8440 | ||
8441 | ||
8442 | # Extract the first word of "ranlib", so it can be a program name with args. | |
8443 | set dummy ranlib; ac_word=$2 | |
8444 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
77e13408 | 8445 | echo "configure:8446: checking for $ac_word" >&5 |
698dcdb6 VZ |
8446 | if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then |
8447 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a VZ |
8448 | else |
8449 | if test -n "$RANLIB"; then | |
8450 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
8451 | else | |
698dcdb6 VZ |
8452 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
8453 | ac_dummy="$PATH" | |
8454 | for ac_dir in $ac_dummy; do | |
8455 | test -z "$ac_dir" && ac_dir=. | |
8456 | if test -f $ac_dir/$ac_word; then | |
8457 | ac_cv_prog_RANLIB="ranlib" | |
8458 | break | |
8459 | fi | |
8460 | done | |
8461 | IFS="$ac_save_ifs" | |
8462 | test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":" | |
10f2d63a VZ |
8463 | fi |
8464 | fi | |
698dcdb6 | 8465 | RANLIB="$ac_cv_prog_RANLIB" |
10f2d63a | 8466 | if test -n "$RANLIB"; then |
698dcdb6 | 8467 | echo "$ac_t""$RANLIB" 1>&6 |
10f2d63a | 8468 | else |
698dcdb6 | 8469 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
8470 | fi |
8471 | ||
8472 | ||
8473 | # Extract the first word of "ar", so it can be a program name with args. | |
8474 | set dummy ar; ac_word=$2 | |
698dcdb6 | 8475 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
77e13408 | 8476 | echo "configure:8477: checking for $ac_word" >&5 |
698dcdb6 VZ |
8477 | if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then |
8478 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a VZ |
8479 | else |
8480 | if test -n "$AR"; then | |
8481 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
8482 | else | |
698dcdb6 VZ |
8483 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
8484 | ac_dummy="$PATH" | |
8485 | for ac_dir in $ac_dummy; do | |
8486 | test -z "$ac_dir" && ac_dir=. | |
8487 | if test -f $ac_dir/$ac_word; then | |
8488 | ac_cv_prog_AR="ar" | |
8489 | break | |
8490 | fi | |
8491 | done | |
8492 | IFS="$ac_save_ifs" | |
10f2d63a VZ |
8493 | test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar" |
8494 | fi | |
8495 | fi | |
698dcdb6 | 8496 | AR="$ac_cv_prog_AR" |
10f2d63a | 8497 | if test -n "$AR"; then |
698dcdb6 | 8498 | echo "$ac_t""$AR" 1>&6 |
10f2d63a | 8499 | else |
698dcdb6 | 8500 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
8501 | fi |
8502 | ||
698dcdb6 | 8503 | |
d6853540 RL |
8504 | case "${host}" in |
8505 | ||
8506 | powerpc-*-darwin* ) | |
8507 | INSTALL="cp -p" | |
8508 | INSTALL_PROGRAM="cp -p" | |
8509 | INSTALL_DATA="cp -p" | |
8510 | ||
8511 | ||
8512 | ||
8513 | ;; | |
8514 | *) | |
8515 | # Find a good install program. We prefer a C program (faster), | |
10f2d63a VZ |
8516 | # so one script is as good as another. But avoid the broken or |
8517 | # incompatible versions: | |
8518 | # SysV /etc/install, /usr/sbin/install | |
8519 | # SunOS /usr/etc/install | |
8520 | # IRIX /sbin/install | |
8521 | # AIX /bin/install | |
8522 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
8523 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
8524 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
8525 | # ./install, which can be erroneously created by make from ./install.sh. | |
698dcdb6 | 8526 | echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 |
d6853540 | 8527 | echo "configure:8528: checking for a BSD compatible install" >&5 |
10f2d63a | 8528 | if test -z "$INSTALL"; then |
698dcdb6 VZ |
8529 | if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then |
8530 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 8531 | else |
698dcdb6 | 8532 | IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":" |
10f2d63a VZ |
8533 | for ac_dir in $PATH; do |
8534 | # Account for people who put trailing slashes in PATH elements. | |
698dcdb6 VZ |
8535 | case "$ac_dir/" in |
8536 | /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;; | |
10f2d63a VZ |
8537 | *) |
8538 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
8539 | # Don't use installbsd from OSF since it installs stuff as root | |
8540 | # by default. | |
8541 | for ac_prog in ginstall scoinst install; do | |
698dcdb6 | 8542 | if test -f $ac_dir/$ac_prog; then |
10f2d63a | 8543 | if test $ac_prog = install && |
698dcdb6 | 8544 | grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then |
10f2d63a VZ |
8545 | # AIX install. It has an incompatible calling convention. |
8546 | : | |
8547 | else | |
8548 | ac_cv_path_install="$ac_dir/$ac_prog -c" | |
8549 | break 2 | |
8550 | fi | |
8551 | fi | |
8552 | done | |
8553 | ;; | |
8554 | esac | |
8555 | done | |
698dcdb6 | 8556 | IFS="$ac_save_IFS" |
10f2d63a VZ |
8557 | |
8558 | fi | |
8559 | if test "${ac_cv_path_install+set}" = set; then | |
698dcdb6 | 8560 | INSTALL="$ac_cv_path_install" |
10f2d63a VZ |
8561 | else |
8562 | # As a last resort, use the slow shell script. We don't cache a | |
8563 | # path for INSTALL within a source directory, because that will | |
8564 | # break other packages using the cache if that directory is | |
8565 | # removed, or if the path is relative. | |
698dcdb6 | 8566 | INSTALL="$ac_install_sh" |
10f2d63a VZ |
8567 | fi |
8568 | fi | |
698dcdb6 | 8569 | echo "$ac_t""$INSTALL" 1>&6 |
10f2d63a VZ |
8570 | |
8571 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
8572 | # It thinks the first close brace ends the variable substitution. | |
8573 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
8574 | ||
698dcdb6 | 8575 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}' |
10f2d63a VZ |
8576 | |
8577 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
8578 | ||
d6853540 | 8579 | esac |
698dcdb6 | 8580 | |
10f2d63a VZ |
8581 | # Extract the first word of "strip", so it can be a program name with args. |
8582 | set dummy strip; ac_word=$2 | |
698dcdb6 | 8583 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
d6853540 | 8584 | echo "configure:8585: checking for $ac_word" >&5 |
698dcdb6 VZ |
8585 | if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then |
8586 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a VZ |
8587 | else |
8588 | if test -n "$STRIP"; then | |
8589 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
8590 | else | |
698dcdb6 VZ |
8591 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
8592 | ac_dummy="$PATH" | |
8593 | for ac_dir in $ac_dummy; do | |
8594 | test -z "$ac_dir" && ac_dir=. | |
8595 | if test -f $ac_dir/$ac_word; then | |
8596 | ac_cv_prog_STRIP="strip" | |
8597 | break | |
8598 | fi | |
8599 | done | |
8600 | IFS="$ac_save_ifs" | |
10f2d63a VZ |
8601 | test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="true" |
8602 | fi | |
8603 | fi | |
698dcdb6 | 8604 | STRIP="$ac_cv_prog_STRIP" |
10f2d63a | 8605 | if test -n "$STRIP"; then |
698dcdb6 | 8606 | echo "$ac_t""$STRIP" 1>&6 |
10f2d63a | 8607 | else |
698dcdb6 | 8608 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
8609 | fi |
8610 | ||
698dcdb6 VZ |
8611 | |
8612 | echo $ac_n "checking make for VPATH support""... $ac_c" 1>&6 | |
d6853540 | 8613 | echo "configure:8614: checking make for VPATH support" >&5 |
10f2d63a VZ |
8614 | cat - << EOF > confMake |
8615 | check : file | |
8616 | cp \$? \$@ | |
8617 | cp \$? final_file | |
8618 | EOF | |
8619 | ||
8620 | if test ! -d sub ; then | |
8621 | mkdir sub | |
8622 | fi | |
8623 | echo dummy > sub/file | |
f6bcfd97 | 8624 | ${MAKE-make} -f confMake VPATH=sub 2>&5 > /dev/null |
10f2d63a VZ |
8625 | RESULT=$? |
8626 | rm -f sub/file check final_file confMake | |
8627 | rmdir sub | |
8628 | if test "$RESULT" = 0; then | |
698dcdb6 | 8629 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 8630 | else |
698dcdb6 VZ |
8631 | echo "$ac_t""no" 1>&6 |
8632 | { echo "configure: error: | |
1e487827 VS |
8633 | You need a make-utility that is able to use the variable |
8634 | VPATH correctly. | |
8635 | If your version of make does not support VPATH correctly, | |
8636 | please install GNU-make (possibly as gmake), and start | |
8637 | configure with the following command: | |
8638 | export MAKE=gmake; ./configure for sh-type shells | |
8639 | setenv MAKE gmake; ./configure for csh-type shells | |
8640 | Also please do remember to use gmake in this case every time | |
8641 | you are trying to compile. | |
698dcdb6 | 8642 | " 1>&2; exit 1; } |
10f2d63a VZ |
8643 | fi |
8644 | ||
8645 | for ac_prog in 'bison -y' byacc | |
8646 | do | |
698dcdb6 | 8647 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
10f2d63a | 8648 | set dummy $ac_prog; ac_word=$2 |
698dcdb6 | 8649 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
d6853540 | 8650 | echo "configure:8651: checking for $ac_word" >&5 |
698dcdb6 VZ |
8651 | if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then |
8652 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a VZ |
8653 | else |
8654 | if test -n "$YACC"; then | |
8655 | ac_cv_prog_YACC="$YACC" # Let the user override the test. | |
8656 | else | |
698dcdb6 VZ |
8657 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
8658 | ac_dummy="$PATH" | |
8659 | for ac_dir in $ac_dummy; do | |
8660 | test -z "$ac_dir" && ac_dir=. | |
8661 | if test -f $ac_dir/$ac_word; then | |
8662 | ac_cv_prog_YACC="$ac_prog" | |
8663 | break | |
8664 | fi | |
8665 | done | |
8666 | IFS="$ac_save_ifs" | |
10f2d63a VZ |
8667 | fi |
8668 | fi | |
698dcdb6 | 8669 | YACC="$ac_cv_prog_YACC" |
10f2d63a | 8670 | if test -n "$YACC"; then |
698dcdb6 | 8671 | echo "$ac_t""$YACC" 1>&6 |
10f2d63a | 8672 | else |
698dcdb6 | 8673 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
8674 | fi |
8675 | ||
698dcdb6 | 8676 | test -n "$YACC" && break |
10f2d63a VZ |
8677 | done |
8678 | test -n "$YACC" || YACC="yacc" | |
8679 | ||
698dcdb6 VZ |
8680 | |
8681 | # Extract the first word of "flex", so it can be a program name with args. | |
8682 | set dummy flex; ac_word=$2 | |
8683 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
d6853540 | 8684 | echo "configure:8685: checking for $ac_word" >&5 |
698dcdb6 VZ |
8685 | if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then |
8686 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a VZ |
8687 | else |
8688 | if test -n "$LEX"; then | |
8689 | ac_cv_prog_LEX="$LEX" # Let the user override the test. | |
8690 | else | |
698dcdb6 VZ |
8691 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
8692 | ac_dummy="$PATH" | |
8693 | for ac_dir in $ac_dummy; do | |
8694 | test -z "$ac_dir" && ac_dir=. | |
8695 | if test -f $ac_dir/$ac_word; then | |
8696 | ac_cv_prog_LEX="flex" | |
8697 | break | |
8698 | fi | |
8699 | done | |
8700 | IFS="$ac_save_ifs" | |
8701 | test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex" | |
10f2d63a VZ |
8702 | fi |
8703 | fi | |
698dcdb6 | 8704 | LEX="$ac_cv_prog_LEX" |
10f2d63a | 8705 | if test -n "$LEX"; then |
698dcdb6 | 8706 | echo "$ac_t""$LEX" 1>&6 |
10f2d63a | 8707 | else |
698dcdb6 | 8708 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
8709 | fi |
8710 | ||
8711 | if test -z "$LEXLIB" | |
8712 | then | |
698dcdb6 VZ |
8713 | case "$LEX" in |
8714 | flex*) ac_lib=fl ;; | |
8715 | *) ac_lib=l ;; | |
8716 | esac | |
8717 | echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6 | |
d6853540 | 8718 | echo "configure:8719: checking for yywrap in -l$ac_lib" >&5 |
698dcdb6 VZ |
8719 | ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'` |
8720 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
8721 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8722 | else | |
8723 | ac_save_LIBS="$LIBS" | |
8724 | LIBS="-l$ac_lib $LIBS" | |
8725 | cat > conftest.$ac_ext <<EOF | |
d6853540 | 8726 | #line 8727 "configure" |
10f2d63a VZ |
8727 | #include "confdefs.h" |
8728 | /* Override any gcc2 internal prototype to avoid an error. */ | |
8729 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
8730 | builtin and then its argument prototype would still apply. */ |
8731 | char yywrap(); | |
10f2d63a | 8732 | |
698dcdb6 VZ |
8733 | int main() { |
8734 | yywrap() | |
8735 | ; return 0; } | |
8736 | EOF | |
d6853540 | 8737 | if { (eval echo configure:8738: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
8738 | rm -rf conftest* |
8739 | eval "ac_cv_lib_$ac_lib_var=yes" | |
10f2d63a | 8740 | else |
698dcdb6 VZ |
8741 | echo "configure: failed program was:" >&5 |
8742 | cat conftest.$ac_ext >&5 | |
8743 | rm -rf conftest* | |
8744 | eval "ac_cv_lib_$ac_lib_var=no" | |
10f2d63a | 8745 | fi |
698dcdb6 VZ |
8746 | rm -f conftest* |
8747 | LIBS="$ac_save_LIBS" | |
8748 | ||
10f2d63a | 8749 | fi |
698dcdb6 VZ |
8750 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
8751 | echo "$ac_t""yes" 1>&6 | |
8752 | LEXLIB="-l$ac_lib" | |
8753 | else | |
8754 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
8755 | fi |
8756 | ||
8757 | fi | |
8758 | ||
8759 | ||
698dcdb6 | 8760 | echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6 |
d6853540 | 8761 | echo "configure:8762: checking whether ln -s works" >&5 |
698dcdb6 VZ |
8762 | if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then |
8763 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 8764 | else |
698dcdb6 VZ |
8765 | rm -f conftestdata |
8766 | if ln -s X conftestdata 2>/dev/null | |
8767 | then | |
8768 | rm -f conftestdata | |
8769 | ac_cv_prog_LN_S="ln -s" | |
10f2d63a | 8770 | else |
698dcdb6 | 8771 | ac_cv_prog_LN_S=ln |
10f2d63a VZ |
8772 | fi |
8773 | fi | |
698dcdb6 VZ |
8774 | LN_S="$ac_cv_prog_LN_S" |
8775 | if test "$ac_cv_prog_LN_S" = "ln -s"; then | |
8776 | echo "$ac_t""yes" 1>&6 | |
10f2d63a | 8777 | else |
698dcdb6 | 8778 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
8779 | fi |
8780 | ||
8781 | ||
8782 | ||
8783 | SEARCH_INCLUDE="\ | |
8784 | /usr/local/include \ | |
8785 | \ | |
8786 | /usr/Motif-1.2/include \ | |
8787 | /usr/Motif-2.1/include \ | |
8788 | \ | |
8789 | /usr/include/Motif1.2 \ | |
8790 | /opt/xpm/include/X11 \ | |
8791 | /opt/GBxpm/include/ \ | |
8792 | /opt/GBxpm/X11/include/ \ | |
8793 | \ | |
8794 | /usr/Motif1.2/include \ | |
8795 | /usr/dt/include \ | |
afc31813 VZ |
8796 | /usr/openwin/include \ |
8797 | \ | |
10f2d63a VZ |
8798 | /usr/include/Xm \ |
8799 | \ | |
8800 | /usr/X11R6/include \ | |
afc31813 | 8801 | /usr/X11R6.4/include \ |
10f2d63a VZ |
8802 | /usr/X11R5/include \ |
8803 | /usr/X11R4/include \ | |
8804 | \ | |
10f2d63a VZ |
8805 | /usr/include/X11R6 \ |
8806 | /usr/include/X11R5 \ | |
8807 | /usr/include/X11R4 \ | |
8808 | \ | |
8809 | /usr/local/X11R6/include \ | |
8810 | /usr/local/X11R5/include \ | |
8811 | /usr/local/X11R4/include \ | |
8812 | \ | |
8813 | /usr/local/include/X11R6 \ | |
8814 | /usr/local/include/X11R5 \ | |
8815 | /usr/local/include/X11R4 \ | |
8816 | \ | |
8817 | /usr/X11/include \ | |
8818 | /usr/include/X11 \ | |
8819 | /usr/local/X11/include \ | |
8820 | /usr/local/include/X11 \ | |
8821 | \ | |
8822 | /usr/X386/include \ | |
8823 | /usr/x386/include \ | |
8824 | /usr/XFree86/include/X11 \ | |
8825 | \ | |
cf27ef00 | 8826 | X:/XFree86/include \ |
ec14dd32 VZ |
8827 | X:/XFree86/include/X11 \ |
8828 | \ | |
10f2d63a VZ |
8829 | /usr/include/gtk \ |
8830 | /usr/local/include/gtk \ | |
8831 | /usr/include/glib \ | |
8832 | /usr/local/include/glib \ | |
8833 | \ | |
8834 | /usr/include/qt \ | |
8835 | /usr/local/include/qt \ | |
8836 | \ | |
8837 | /usr/include/windows \ | |
8838 | /usr/include/wine \ | |
8839 | /usr/local/include/wine \ | |
8840 | \ | |
8841 | /usr/unsupported/include \ | |
8842 | /usr/athena/include \ | |
8843 | /usr/local/x11r5/include \ | |
8844 | /usr/lpp/Xamples/include \ | |
8845 | \ | |
10f2d63a | 8846 | /usr/openwin/share/include \ |
928b5c08 VZ |
8847 | \ |
8848 | /usr/include" | |
10f2d63a VZ |
8849 | |
8850 | SEARCH_LIB="`echo "$SEARCH_INCLUDE" | sed s/include/lib/g` " | |
8851 | ||
698dcdb6 VZ |
8852 | |
8853 | cat > confcache <<\EOF | |
10f2d63a VZ |
8854 | # This file is a shell script that caches the results of configure |
8855 | # tests run on this system so they can be shared between configure | |
698dcdb6 VZ |
8856 | # scripts and configure runs. It is not useful on other systems. |
8857 | # If it contains results you don't want to keep, you may remove or edit it. | |
10f2d63a | 8858 | # |
698dcdb6 VZ |
8859 | # By default, configure uses ./config.cache as the cache file, |
8860 | # creating it if it does not exist already. You can give configure | |
8861 | # the --cache-file=FILE option to use a different cache file; that is | |
8862 | # what configure does when it calls configure scripts in | |
8863 | # subdirectories, so they share the cache. | |
8864 | # Giving --cache-file=/dev/null disables caching, for debugging configure. | |
8865 | # config.status only pays attention to the cache file if you give it the | |
8866 | # --recheck option to rerun configure. | |
10f2d63a | 8867 | # |
698dcdb6 | 8868 | EOF |
10f2d63a VZ |
8869 | # The following way of writing the cache mishandles newlines in values, |
8870 | # but we know of no workaround that is simple, portable, and efficient. | |
8871 | # So, don't put newlines in cache variables' values. | |
8872 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
8873 | # and sets the high bit in the cache file unless we assign to the vars. | |
698dcdb6 VZ |
8874 | (set) 2>&1 | |
8875 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
8876 | *ac_space=\ *) | |
8877 | # `set' does not quote correctly, so add quotes (double-quote substitution | |
8878 | # turns \\\\ into \\, and sed turns \\ into \). | |
8879 | sed -n \ | |
8880 | -e "s/'/'\\\\''/g" \ | |
8881 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" | |
8882 | ;; | |
8883 | *) | |
8884 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
8885 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' | |
8886 | ;; | |
8887 | esac >> confcache | |
8888 | if cmp -s $cache_file confcache; then | |
8889 | : | |
8890 | else | |
10f2d63a | 8891 | if test -w $cache_file; then |
698dcdb6 VZ |
8892 | echo "updating cache $cache_file" |
8893 | cat confcache > $cache_file | |
10f2d63a VZ |
8894 | else |
8895 | echo "not updating unwritable cache $cache_file" | |
8896 | fi | |
8897 | fi | |
8898 | rm -f confcache | |
8899 | ||
698dcdb6 VZ |
8900 | |
8901 | ||
4f14bcd8 | 8902 | |
18dbb1f6 VZ |
8903 | REGEX_INCLUDE= |
8904 | if test "$wxUSE_REGEX" != "no"; then | |
4f14bcd8 GD |
8905 | cat >> confdefs.h <<\EOF |
8906 | #define wxUSE_REGEX 1 | |
8907 | EOF | |
8908 | ||
8909 | ||
8910 | if test "$wxUSE_REGEX" = "sys" -o "$wxUSE_REGEX" = "yes" ; then | |
8911 | ac_safe=`echo "regex.h" | sed 'y%./+-%__p_%'` | |
18dbb1f6 | 8912 | echo $ac_n "checking for regex.h""... $ac_c" 1>&6 |
d6853540 | 8913 | echo "configure:8914: checking for regex.h" >&5 |
18dbb1f6 VZ |
8914 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
8915 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8916 | else | |
8917 | cat > conftest.$ac_ext <<EOF | |
d6853540 | 8918 | #line 8919 "configure" |
18dbb1f6 VZ |
8919 | #include "confdefs.h" |
8920 | #include <regex.h> | |
8921 | EOF | |
8922 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
d6853540 | 8923 | { (eval echo configure:8924: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
18dbb1f6 VZ |
8924 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
8925 | if test -z "$ac_err"; then | |
8926 | rm -rf conftest* | |
8927 | eval "ac_cv_header_$ac_safe=yes" | |
8928 | else | |
8929 | echo "$ac_err" >&5 | |
8930 | echo "configure: failed program was:" >&5 | |
8931 | cat conftest.$ac_ext >&5 | |
8932 | rm -rf conftest* | |
8933 | eval "ac_cv_header_$ac_safe=no" | |
8934 | fi | |
8935 | rm -f conftest* | |
8936 | fi | |
8937 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
8938 | echo "$ac_t""yes" 1>&6 | |
8939 | for ac_func in regcomp | |
8940 | do | |
8941 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
d6853540 | 8942 | echo "configure:8943: checking for $ac_func" >&5 |
18dbb1f6 VZ |
8943 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
8944 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8945 | else | |
8946 | cat > conftest.$ac_ext <<EOF | |
d6853540 | 8947 | #line 8948 "configure" |
18dbb1f6 VZ |
8948 | #include "confdefs.h" |
8949 | /* System header to define __stub macros and hopefully few prototypes, | |
8950 | which can conflict with char $ac_func(); below. */ | |
8951 | #include <assert.h> | |
8952 | /* Override any gcc2 internal prototype to avoid an error. */ | |
8953 | /* We use char because int might match the return type of a gcc2 | |
8954 | builtin and then its argument prototype would still apply. */ | |
8955 | char $ac_func(); | |
8956 | ||
8957 | int main() { | |
8958 | ||
8959 | /* The GNU C library defines this for functions which it implements | |
8960 | to always fail with ENOSYS. Some functions are actually named | |
8961 | something starting with __ and the normal name is an alias. */ | |
8962 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
8963 | choke me | |
8964 | #else | |
8965 | $ac_func(); | |
8966 | #endif | |
8967 | ||
8968 | ; return 0; } | |
8969 | EOF | |
d6853540 | 8970 | if { (eval echo configure:8971: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
18dbb1f6 VZ |
8971 | rm -rf conftest* |
8972 | eval "ac_cv_func_$ac_func=yes" | |
8973 | else | |
8974 | echo "configure: failed program was:" >&5 | |
8975 | cat conftest.$ac_ext >&5 | |
8976 | rm -rf conftest* | |
8977 | eval "ac_cv_func_$ac_func=no" | |
8978 | fi | |
8979 | rm -f conftest* | |
8980 | fi | |
8981 | ||
8982 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
8983 | echo "$ac_t""yes" 1>&6 | |
8984 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
8985 | cat >> confdefs.h <<EOF | |
8986 | #define $ac_tr_func 1 | |
8987 | EOF | |
8988 | ||
8989 | else | |
8990 | echo "$ac_t""no" 1>&6 | |
8991 | fi | |
8992 | done | |
8993 | ||
8994 | else | |
8995 | echo "$ac_t""no" 1>&6 | |
8996 | fi | |
8997 | ||
8998 | ||
4f14bcd8 GD |
8999 | if test "x$ac_cv_func_regcomp" != "xyes"; then |
9000 | if test "$wxUSE_REGEX" = "sys" ; then | |
9001 | { echo "configure: error: system regex library not found! Use --with-regex to use built-in version" 1>&2; exit 1; } | |
9002 | else | |
a3df447d | 9003 | echo "configure: warning: system regex library not found, will use built-in instead" 1>&2 |
4f14bcd8 GD |
9004 | wxUSE_REGEX=builtin |
9005 | fi | |
9006 | else | |
9007 | wxUSE_REGEX=sys | |
18dbb1f6 | 9008 | fi |
18dbb1f6 VZ |
9009 | fi |
9010 | ||
4f14bcd8 GD |
9011 | if test "$wxUSE_REGEX" = "builtin" ; then |
9012 | REGEX_INCLUDE="-I\${top_srcdir}/src/regex" | |
9013 | fi | |
18dbb1f6 VZ |
9014 | fi |
9015 | ||
9016 | ||
4f14bcd8 GD |
9017 | ZLIB_INCLUDE= |
9018 | ZLIB_LINK= | |
9019 | if test "$wxUSE_ZLIB" != "no" ; then | |
9020 | cat >> confdefs.h <<\EOF | |
9021 | #define wxUSE_ZLIB 1 | |
9022 | EOF | |
dad6c0ea | 9023 | |
10f2d63a | 9024 | |
4f14bcd8 GD |
9025 | if test "$wxUSE_ZLIB" = "sys" -o "$wxUSE_ZLIB" = "yes" ; then |
9026 | ac_safe=`echo "zlib.h" | sed 'y%./+-%__p_%'` | |
9027 | echo $ac_n "checking for zlib.h""... $ac_c" 1>&6 | |
d6853540 | 9028 | echo "configure:9029: checking for zlib.h" >&5 |
3a922bb4 RL |
9029 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
9030 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9031 | else | |
9032 | cat > conftest.$ac_ext <<EOF | |
d6853540 | 9033 | #line 9034 "configure" |
3a922bb4 | 9034 | #include "confdefs.h" |
4f14bcd8 | 9035 | #include <zlib.h> |
3a922bb4 RL |
9036 | EOF |
9037 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
d6853540 | 9038 | { (eval echo configure:9039: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
3a922bb4 RL |
9039 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
9040 | if test -z "$ac_err"; then | |
9041 | rm -rf conftest* | |
9042 | eval "ac_cv_header_$ac_safe=yes" | |
9043 | else | |
9044 | echo "$ac_err" >&5 | |
9045 | echo "configure: failed program was:" >&5 | |
9046 | cat conftest.$ac_ext >&5 | |
9047 | rm -rf conftest* | |
9048 | eval "ac_cv_header_$ac_safe=no" | |
9049 | fi | |
9050 | rm -f conftest* | |
9051 | fi | |
9052 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
9053 | echo "$ac_t""yes" 1>&6 | |
4f14bcd8 | 9054 | echo $ac_n "checking for deflate in -lz""... $ac_c" 1>&6 |
d6853540 | 9055 | echo "configure:9056: checking for deflate in -lz" >&5 |
4f14bcd8 GD |
9056 | ac_lib_var=`echo z'_'deflate | sed 'y%./+-%__p_%'` |
9057 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
9058 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9059 | else | |
9060 | ac_save_LIBS="$LIBS" | |
9061 | LIBS="-lz $LIBS" | |
9062 | cat > conftest.$ac_ext <<EOF | |
d6853540 | 9063 | #line 9064 "configure" |
4f14bcd8 GD |
9064 | #include "confdefs.h" |
9065 | /* Override any gcc2 internal prototype to avoid an error. */ | |
9066 | /* We use char because int might match the return type of a gcc2 | |
9067 | builtin and then its argument prototype would still apply. */ | |
9068 | char deflate(); | |
9069 | ||
9070 | int main() { | |
9071 | deflate() | |
9072 | ; return 0; } | |
3a922bb4 | 9073 | EOF |
d6853540 | 9074 | if { (eval echo configure:9075: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
4f14bcd8 GD |
9075 | rm -rf conftest* |
9076 | eval "ac_cv_lib_$ac_lib_var=yes" | |
9077 | else | |
9078 | echo "configure: failed program was:" >&5 | |
9079 | cat conftest.$ac_ext >&5 | |
9080 | rm -rf conftest* | |
9081 | eval "ac_cv_lib_$ac_lib_var=no" | |
9082 | fi | |
9083 | rm -f conftest* | |
9084 | LIBS="$ac_save_LIBS" | |
9085 | ||
9086 | fi | |
9087 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
9088 | echo "$ac_t""yes" 1>&6 | |
9089 | ZLIB_LINK="-lz" | |
3a922bb4 RL |
9090 | else |
9091 | echo "$ac_t""no" 1>&6 | |
9092 | fi | |
10f2d63a | 9093 | |
4f14bcd8 GD |
9094 | else |
9095 | echo "$ac_t""no" 1>&6 | |
9096 | fi | |
9097 | ||
9098 | ||
9099 | if test "x$ZLIB_LINK" = "x" ; then | |
9100 | if test "$wxUSE_ZLIB" = "sys" ; then | |
9101 | { echo "configure: error: system zlib compression library not found! Use --with-zlib=builtin to use built-in version" 1>&2; exit 1; } | |
9102 | else | |
a3df447d | 9103 | echo "configure: warning: system zlib compression library not found, will use built-in instead" 1>&2 |
4f14bcd8 GD |
9104 | wxUSE_ZLIB=builtin |
9105 | fi | |
9106 | else | |
9107 | wxUSE_ZLIB=sys | |
9108 | fi | |
9109 | fi | |
9110 | ||
9111 | if test "$wxUSE_ZLIB" = "builtin" ; then | |
9112 | ZLIB_INCLUDE="-I\${top_srcdir}/src/zlib" | |
9113 | fi | |
9114 | fi | |
9115 | ||
9116 | ||
9117 | PNG_INCLUDE= | |
9118 | PNG_LINK= | |
9119 | if test "$wxUSE_LIBPNG" != "no" ; then | |
9120 | cat >> confdefs.h <<\EOF | |
9121 | #define wxUSE_LIBPNG 1 | |
9122 | EOF | |
9123 | ||
9124 | ||
9125 | if test "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then | |
a3df447d | 9126 | echo "configure: warning: system png library doesn't work without system zlib, will use built-in instead" 1>&2 |
4f14bcd8 GD |
9127 | wxUSE_LIBPNG=builtin |
9128 | fi | |
9129 | ||
9130 | if test "$wxUSE_LIBPNG" = "sys" -o "$wxUSE_LIBPNG" = "yes" ; then | |
9131 | ac_safe=`echo "png.h" | sed 'y%./+-%__p_%'` | |
9132 | echo $ac_n "checking for png.h""... $ac_c" 1>&6 | |
d6853540 | 9133 | echo "configure:9134: checking for png.h" >&5 |
d4158b5d VS |
9134 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
9135 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9136 | else | |
9137 | cat > conftest.$ac_ext <<EOF | |
d6853540 | 9138 | #line 9139 "configure" |
d4158b5d | 9139 | #include "confdefs.h" |
4f14bcd8 | 9140 | #include <png.h> |
d4158b5d VS |
9141 | EOF |
9142 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
d6853540 | 9143 | { (eval echo configure:9144: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
d4158b5d VS |
9144 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
9145 | if test -z "$ac_err"; then | |
9146 | rm -rf conftest* | |
9147 | eval "ac_cv_header_$ac_safe=yes" | |
9148 | else | |
9149 | echo "$ac_err" >&5 | |
9150 | echo "configure: failed program was:" >&5 | |
9151 | cat conftest.$ac_ext >&5 | |
9152 | rm -rf conftest* | |
9153 | eval "ac_cv_header_$ac_safe=no" | |
9154 | fi | |
9155 | rm -f conftest* | |
9156 | fi | |
9157 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
9158 | echo "$ac_t""yes" 1>&6 | |
4f14bcd8 | 9159 | echo $ac_n "checking for png_check_sig in -lpng""... $ac_c" 1>&6 |
d6853540 | 9160 | echo "configure:9161: checking for png_check_sig in -lpng" >&5 |
4f14bcd8 GD |
9161 | ac_lib_var=`echo png'_'png_check_sig | sed 'y%./+-%__p_%'` |
9162 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
3a922bb4 RL |
9163 | echo $ac_n "(cached) $ac_c" 1>&6 |
9164 | else | |
4f14bcd8 GD |
9165 | ac_save_LIBS="$LIBS" |
9166 | LIBS="-lpng -lz -lm $LIBS" | |
9167 | cat > conftest.$ac_ext <<EOF | |
d6853540 | 9168 | #line 9169 "configure" |
3a922bb4 | 9169 | #include "confdefs.h" |
4f14bcd8 GD |
9170 | /* Override any gcc2 internal prototype to avoid an error. */ |
9171 | /* We use char because int might match the return type of a gcc2 | |
9172 | builtin and then its argument prototype would still apply. */ | |
9173 | char png_check_sig(); | |
f6bcfd97 | 9174 | |
4f14bcd8 GD |
9175 | int main() { |
9176 | png_check_sig() | |
3a922bb4 RL |
9177 | ; return 0; } |
9178 | EOF | |
d6853540 | 9179 | if { (eval echo configure:9180: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
3a922bb4 | 9180 | rm -rf conftest* |
4f14bcd8 | 9181 | eval "ac_cv_lib_$ac_lib_var=yes" |
3a922bb4 RL |
9182 | else |
9183 | echo "configure: failed program was:" >&5 | |
9184 | cat conftest.$ac_ext >&5 | |
9185 | rm -rf conftest* | |
4f14bcd8 | 9186 | eval "ac_cv_lib_$ac_lib_var=no" |
3a922bb4 RL |
9187 | fi |
9188 | rm -f conftest* | |
4f14bcd8 | 9189 | LIBS="$ac_save_LIBS" |
10f2d63a | 9190 | |
4f14bcd8 GD |
9191 | fi |
9192 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
9193 | echo "$ac_t""yes" 1>&6 | |
9194 | PNG_LINK="-lpng" | |
9195 | else | |
9196 | echo "$ac_t""no" 1>&6 | |
9197 | fi | |
32832908 | 9198 | |
4f14bcd8 GD |
9199 | |
9200 | else | |
9201 | echo "$ac_t""no" 1>&6 | |
9202 | fi | |
3a922bb4 | 9203 | |
7b7a7637 | 9204 | |
4f14bcd8 GD |
9205 | if test "x$PNG_LINK" = "x" ; then |
9206 | if test "$wxUSE_LIBPNG" = "sys" ; then | |
9207 | { echo "configure: error: system png library not found! Use --with-libpng=builtin to use built-in version" 1>&2; exit 1; } | |
9208 | else | |
a3df447d | 9209 | echo "configure: warning: system png library not found, will use built-in instead" 1>&2 |
4f14bcd8 GD |
9210 | wxUSE_LIBPNG=builtin |
9211 | fi | |
9212 | else | |
9213 | wxUSE_LIBPNG=yes | |
9214 | fi | |
3a922bb4 RL |
9215 | fi |
9216 | ||
4f14bcd8 GD |
9217 | if test "$wxUSE_LIBPNG" = "builtin" ; then |
9218 | PNG_INCLUDE="-I\${top_srcdir}/src/png" | |
3a922bb4 RL |
9219 | fi |
9220 | ||
4f14bcd8 | 9221 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png" |
3a922bb4 RL |
9222 | fi |
9223 | ||
32832908 | 9224 | |
4f14bcd8 GD |
9225 | JPEG_INCLUDE= |
9226 | JPEG_LINK= | |
9227 | if test "$wxUSE_LIBJPEG" != "no" ; then | |
9228 | cat >> confdefs.h <<\EOF | |
9229 | #define wxUSE_LIBJPEG 1 | |
9230 | EOF | |
10f2d63a | 9231 | |
8168de4c | 9232 | |
4f14bcd8 GD |
9233 | if test "$wxUSE_LIBJPEG" = "sys" -o "$wxUSE_LIBJPEG" = "yes" ; then |
9234 | echo $ac_n "checking for jpeglib.h""... $ac_c" 1>&6 | |
d6853540 | 9235 | echo "configure:9236: checking for jpeglib.h" >&5 |
4f14bcd8 | 9236 | if eval "test \"`echo '$''{'ac_cv_header_jpeglib_h'+set}'`\" = set"; then |
8168de4c VZ |
9237 | echo $ac_n "(cached) $ac_c" 1>&6 |
9238 | else | |
4f14bcd8 | 9239 | cat > conftest.$ac_ext <<EOF |
d6853540 | 9240 | #line 9241 "configure" |
4f14bcd8 | 9241 | #include "confdefs.h" |
8168de4c | 9242 | |
4f14bcd8 GD |
9243 | #undef HAVE_STDLIB_H |
9244 | #include <stdio.h> | |
9245 | #include <jpeglib.h> | |
9246 | ||
9247 | int main() { | |
9248 | ||
9249 | ||
9250 | ; return 0; } | |
9251 | EOF | |
d6853540 | 9252 | if { (eval echo configure:9253: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
4f14bcd8 GD |
9253 | rm -rf conftest* |
9254 | ac_cv_header_jpeglib_h=yes | |
6f72b082 | 9255 | else |
4f14bcd8 GD |
9256 | echo "configure: failed program was:" >&5 |
9257 | cat conftest.$ac_ext >&5 | |
9258 | rm -rf conftest* | |
9259 | ac_cv_header_jpeglib_h=no | |
9260 | ||
9261 | fi | |
9262 | rm -f conftest* | |
9263 | ||
698dcdb6 | 9264 | fi |
6f72b082 | 9265 | |
4f14bcd8 GD |
9266 | echo "$ac_t""$ac_cv_header_jpeglib_h" 1>&6 |
9267 | ||
9268 | if test "$ac_cv_header_jpeglib_h" = "yes"; then | |
9269 | echo $ac_n "checking for jpeg_read_header in -ljpeg""... $ac_c" 1>&6 | |
d6853540 | 9270 | echo "configure:9271: checking for jpeg_read_header in -ljpeg" >&5 |
4f14bcd8 GD |
9271 | ac_lib_var=`echo jpeg'_'jpeg_read_header | sed 'y%./+-%__p_%'` |
9272 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
9273 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6f72b082 | 9274 | else |
4f14bcd8 GD |
9275 | ac_save_LIBS="$LIBS" |
9276 | LIBS="-ljpeg $LIBS" | |
9277 | cat > conftest.$ac_ext <<EOF | |
d6853540 | 9278 | #line 9279 "configure" |
4f14bcd8 GD |
9279 | #include "confdefs.h" |
9280 | /* Override any gcc2 internal prototype to avoid an error. */ | |
9281 | /* We use char because int might match the return type of a gcc2 | |
9282 | builtin and then its argument prototype would still apply. */ | |
9283 | char jpeg_read_header(); | |
698dcdb6 | 9284 | |
4f14bcd8 GD |
9285 | int main() { |
9286 | jpeg_read_header() | |
9287 | ; return 0; } | |
9288 | EOF | |
d6853540 | 9289 | if { (eval echo configure:9290: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
4f14bcd8 GD |
9290 | rm -rf conftest* |
9291 | eval "ac_cv_lib_$ac_lib_var=yes" | |
6f72b082 | 9292 | else |
4f14bcd8 GD |
9293 | echo "configure: failed program was:" >&5 |
9294 | cat conftest.$ac_ext >&5 | |
9295 | rm -rf conftest* | |
9296 | eval "ac_cv_lib_$ac_lib_var=no" | |
698dcdb6 | 9297 | fi |
4f14bcd8 GD |
9298 | rm -f conftest* |
9299 | LIBS="$ac_save_LIBS" | |
698dcdb6 | 9300 | |
4f14bcd8 GD |
9301 | fi |
9302 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
9303 | echo "$ac_t""yes" 1>&6 | |
9304 | JPEG_LINK="-ljpeg" | |
9305 | else | |
9306 | echo "$ac_t""no" 1>&6 | |
9307 | fi | |
9308 | ||
9309 | fi | |
9310 | ||
9311 | if test "x$JPEG_LINK" = "x" ; then | |
9312 | if test "$wxUSE_LIBJPEG" = "sys" ; then | |
9313 | { echo "configure: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" 1>&2; exit 1; } | |
9314 | else | |
a3df447d | 9315 | echo "configure: warning: system jpeg library not found, will use built-in instead" 1>&2 |
4f14bcd8 GD |
9316 | wxUSE_LIBJPEG=builtin |
9317 | fi | |
9318 | else | |
9319 | wxUSE_LIBJPEG=sys | |
9320 | fi | |
9321 | fi | |
9322 | ||
9323 | if test "$wxUSE_LIBJPEG" = "builtin" ; then | |
9324 | JPEG_INCLUDE="-I\${top_srcdir}/src/jpeg" | |
9325 | fi | |
9326 | fi | |
9327 | ||
9328 | ||
9329 | TIFF_INCLUDE= | |
9330 | TIFF_LINK= | |
9331 | if test "$wxUSE_LIBTIFF" != "no" ; then | |
9332 | cat >> confdefs.h <<\EOF | |
9333 | #define wxUSE_LIBTIFF 1 | |
9334 | EOF | |
9335 | ||
9336 | ||
9337 | if test "$wxUSE_LIBTIFF" = "sys" -o "$wxUSE_LIBTIFF" = "yes" ; then | |
9338 | ac_safe=`echo "tiffio.h" | sed 'y%./+-%__p_%'` | |
9339 | echo $ac_n "checking for tiffio.h""... $ac_c" 1>&6 | |
d6853540 | 9340 | echo "configure:9341: checking for tiffio.h" >&5 |
4f14bcd8 GD |
9341 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
9342 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9343 | else | |
9344 | cat > conftest.$ac_ext <<EOF | |
d6853540 | 9345 | #line 9346 "configure" |
4f14bcd8 GD |
9346 | #include "confdefs.h" |
9347 | #include <tiffio.h> | |
9348 | EOF | |
9349 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
d6853540 | 9350 | { (eval echo configure:9351: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
4f14bcd8 GD |
9351 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
9352 | if test -z "$ac_err"; then | |
9353 | rm -rf conftest* | |
9354 | eval "ac_cv_header_$ac_safe=yes" | |
9355 | else | |
9356 | echo "$ac_err" >&5 | |
9357 | echo "configure: failed program was:" >&5 | |
9358 | cat conftest.$ac_ext >&5 | |
9359 | rm -rf conftest* | |
9360 | eval "ac_cv_header_$ac_safe=no" | |
9361 | fi | |
9362 | rm -f conftest* | |
9363 | fi | |
9364 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
9365 | echo "$ac_t""yes" 1>&6 | |
9366 | echo $ac_n "checking for TIFFError in -ltiff""... $ac_c" 1>&6 | |
d6853540 | 9367 | echo "configure:9368: checking for TIFFError in -ltiff" >&5 |
4f14bcd8 GD |
9368 | ac_lib_var=`echo tiff'_'TIFFError | sed 'y%./+-%__p_%'` |
9369 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
9370 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9371 | else | |
9372 | ac_save_LIBS="$LIBS" | |
9373 | LIBS="-ltiff -lm $LIBS" | |
9374 | cat > conftest.$ac_ext <<EOF | |
d6853540 | 9375 | #line 9376 "configure" |
4f14bcd8 GD |
9376 | #include "confdefs.h" |
9377 | /* Override any gcc2 internal prototype to avoid an error. */ | |
9378 | /* We use char because int might match the return type of a gcc2 | |
9379 | builtin and then its argument prototype would still apply. */ | |
9380 | char TIFFError(); | |
9381 | ||
9382 | int main() { | |
9383 | TIFFError() | |
9384 | ; return 0; } | |
9385 | EOF | |
d6853540 | 9386 | if { (eval echo configure:9387: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
4f14bcd8 GD |
9387 | rm -rf conftest* |
9388 | eval "ac_cv_lib_$ac_lib_var=yes" | |
9389 | else | |
9390 | echo "configure: failed program was:" >&5 | |
9391 | cat conftest.$ac_ext >&5 | |
9392 | rm -rf conftest* | |
9393 | eval "ac_cv_lib_$ac_lib_var=no" | |
9394 | fi | |
9395 | rm -f conftest* | |
9396 | LIBS="$ac_save_LIBS" | |
9397 | ||
9398 | fi | |
9399 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
9400 | echo "$ac_t""yes" 1>&6 | |
9401 | TIFF_LINK="-ltiff" | |
9402 | else | |
9403 | echo "$ac_t""no" 1>&6 | |
9404 | fi | |
9405 | ||
9406 | ||
9407 | else | |
9408 | echo "$ac_t""no" 1>&6 | |
9409 | fi | |
9410 | ||
9411 | ||
9412 | if test "x$TIFF_LINK" = "x" ; then | |
9413 | if test "$wxUSE_LIBTIFF" = "sys" ; then | |
9414 | { echo "configure: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" 1>&2; exit 1; } | |
9415 | else | |
a3df447d | 9416 | echo "configure: warning: system tiff library not found, will use built-in instead" 1>&2 |
4f14bcd8 GD |
9417 | wxUSE_LIBTIFF=builtin |
9418 | fi | |
9419 | else | |
9420 | wxUSE_LIBTIFF=sys | |
9421 | fi | |
9422 | fi | |
9423 | ||
9424 | if test "$wxUSE_LIBTIFF" = "builtin" ; then | |
9425 | TIFF_INCLUDE="-I\${top_srcdir}/src/tiff" | |
9426 | fi | |
9427 | fi | |
9428 | ||
9429 | ||
9430 | FREETYPE_INCLUDE= | |
9431 | FREETYPE_LINK= | |
9432 | if test "$wxUSE_FREETYPE" != "no" ; then | |
9433 | cat >> confdefs.h <<\EOF | |
9434 | #define wxUSE_FREETYPE 1 | |
9435 | EOF | |
9436 | ||
9437 | ||
9438 | if test "$wxUSE_FREETYPE" = "sys" -o "$wxUSE_FREETYPE" = "yes" ; then | |
9439 | ac_safe=`echo "freetype.h" | sed 'y%./+-%__p_%'` | |
9440 | echo $ac_n "checking for freetype.h""... $ac_c" 1>&6 | |
d6853540 | 9441 | echo "configure:9442: checking for freetype.h" >&5 |
4f14bcd8 GD |
9442 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
9443 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9444 | else | |
9445 | cat > conftest.$ac_ext <<EOF | |
d6853540 | 9446 | #line 9447 "configure" |
4f14bcd8 GD |
9447 | #include "confdefs.h" |
9448 | #include <freetype.h> | |
9449 | EOF | |
9450 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
d6853540 | 9451 | { (eval echo configure:9452: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
4f14bcd8 GD |
9452 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
9453 | if test -z "$ac_err"; then | |
9454 | rm -rf conftest* | |
9455 | eval "ac_cv_header_$ac_safe=yes" | |
9456 | else | |
9457 | echo "$ac_err" >&5 | |
9458 | echo "configure: failed program was:" >&5 | |
9459 | cat conftest.$ac_ext >&5 | |
9460 | rm -rf conftest* | |
9461 | eval "ac_cv_header_$ac_safe=no" | |
9462 | fi | |
9463 | rm -f conftest* | |
9464 | fi | |
9465 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
9466 | echo "$ac_t""yes" 1>&6 | |
9467 | echo $ac_n "checking for FT_Render_Glyph in -lfreetype""... $ac_c" 1>&6 | |
d6853540 | 9468 | echo "configure:9469: checking for FT_Render_Glyph in -lfreetype" >&5 |
4f14bcd8 GD |
9469 | ac_lib_var=`echo freetype'_'FT_Render_Glyph | sed 'y%./+-%__p_%'` |
9470 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
9471 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9472 | else | |
9473 | ac_save_LIBS="$LIBS" | |
9474 | LIBS="-lfreetype -lm $LIBS" | |
9475 | cat > conftest.$ac_ext <<EOF | |
d6853540 | 9476 | #line 9477 "configure" |
4f14bcd8 GD |
9477 | #include "confdefs.h" |
9478 | /* Override any gcc2 internal prototype to avoid an error. */ | |
9479 | /* We use char because int might match the return type of a gcc2 | |
9480 | builtin and then its argument prototype would still apply. */ | |
9481 | char FT_Render_Glyph(); | |
9482 | ||
9483 | int main() { | |
9484 | FT_Render_Glyph() | |
9485 | ; return 0; } | |
9486 | EOF | |
d6853540 | 9487 | if { (eval echo configure:9488: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
4f14bcd8 GD |
9488 | rm -rf conftest* |
9489 | eval "ac_cv_lib_$ac_lib_var=yes" | |
9490 | else | |
9491 | echo "configure: failed program was:" >&5 | |
9492 | cat conftest.$ac_ext >&5 | |
9493 | rm -rf conftest* | |
9494 | eval "ac_cv_lib_$ac_lib_var=no" | |
9495 | fi | |
9496 | rm -f conftest* | |
9497 | LIBS="$ac_save_LIBS" | |
9498 | ||
9499 | fi | |
9500 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
9501 | echo "$ac_t""yes" 1>&6 | |
9502 | FREETYPE_LINK="-lfreetype" | |
9503 | else | |
9504 | echo "$ac_t""no" 1>&6 | |
9505 | fi | |
9506 | ||
9507 | ||
9508 | else | |
9509 | echo "$ac_t""no" 1>&6 | |
9510 | fi | |
9511 | ||
9512 | ||
9513 | if test "x$FREETYPE_LINK" = "x" ; then | |
9514 | if test "$wxUSE_FREETYPE" = "sys" ; then | |
9515 | { echo "configure: error: system freetype library not found! Use --with-freetype=builtin to use built-in version" 1>&2; exit 1; } | |
9516 | else | |
a3df447d | 9517 | echo "configure: warning: system freetype library not found, will use built-in instead" 1>&2 |
4f14bcd8 GD |
9518 | wxUSE_FREETYPE=builtin |
9519 | fi | |
9520 | else | |
9521 | wxUSE_FREETYPE=sys | |
9522 | fi | |
9523 | fi | |
9524 | ||
9525 | if test "$wxUSE_FREETYPE" = "builtin" ; then | |
9526 | FREETYPE_INCLUDE="-I\${top_srcdir}/src/freetype" | |
9527 | fi | |
9528 | fi | |
9529 | ||
9530 | ||
9531 | AFMINSTALL= | |
9532 | ||
9533 | TOOLKIT= | |
9534 | TOOLKIT_INCLUDE= | |
9535 | WIDGET_SET= | |
9536 | ||
9537 | if test "$USE_WIN32" = 1 ; then | |
9538 | for ac_hdr in w32api.h | |
9539 | do | |
9540 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
9541 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
d6853540 | 9542 | echo "configure:9543: checking for $ac_hdr" >&5 |
4f14bcd8 GD |
9543 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
9544 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9545 | else | |
9546 | cat > conftest.$ac_ext <<EOF | |
d6853540 | 9547 | #line 9548 "configure" |
4f14bcd8 GD |
9548 | #include "confdefs.h" |
9549 | #include <$ac_hdr> | |
9550 | EOF | |
9551 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
d6853540 | 9552 | { (eval echo configure:9553: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
4f14bcd8 GD |
9553 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
9554 | if test -z "$ac_err"; then | |
9555 | rm -rf conftest* | |
9556 | eval "ac_cv_header_$ac_safe=yes" | |
9557 | else | |
9558 | echo "$ac_err" >&5 | |
9559 | echo "configure: failed program was:" >&5 | |
9560 | cat conftest.$ac_ext >&5 | |
9561 | rm -rf conftest* | |
9562 | eval "ac_cv_header_$ac_safe=no" | |
9563 | fi | |
9564 | rm -f conftest* | |
9565 | fi | |
9566 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
9567 | echo "$ac_t""yes" 1>&6 | |
9568 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
9569 | cat >> confdefs.h <<EOF | |
9570 | #define $ac_tr_hdr 1 | |
9571 | EOF | |
9572 | ||
9573 | else | |
9574 | echo "$ac_t""no" 1>&6 | |
9575 | fi | |
9576 | done | |
9577 | ||
9578 | ac_safe=`echo "windows.h" | sed 'y%./+-%__p_%'` | |
9579 | echo $ac_n "checking for windows.h""... $ac_c" 1>&6 | |
d6853540 | 9580 | echo "configure:9581: checking for windows.h" >&5 |
4f14bcd8 GD |
9581 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
9582 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9583 | else | |
9584 | cat > conftest.$ac_ext <<EOF | |
d6853540 | 9585 | #line 9586 "configure" |
4f14bcd8 GD |
9586 | #include "confdefs.h" |
9587 | #include <windows.h> | |
9588 | EOF | |
9589 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
d6853540 | 9590 | { (eval echo configure:9591: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
4f14bcd8 GD |
9591 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
9592 | if test -z "$ac_err"; then | |
9593 | rm -rf conftest* | |
9594 | eval "ac_cv_header_$ac_safe=yes" | |
9595 | else | |
9596 | echo "$ac_err" >&5 | |
9597 | echo "configure: failed program was:" >&5 | |
9598 | cat conftest.$ac_ext >&5 | |
9599 | rm -rf conftest* | |
9600 | eval "ac_cv_header_$ac_safe=no" | |
9601 | fi | |
9602 | rm -f conftest* | |
9603 | fi | |
9604 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
9605 | echo "$ac_t""yes" 1>&6 | |
9606 | : | |
9607 | else | |
9608 | echo "$ac_t""no" 1>&6 | |
9609 | ||
9610 | { echo "configure: error: please set CFLAGS to contain the location of windows.h" 1>&2; exit 1; } | |
9611 | ||
9612 | fi | |
9613 | ||
9614 | ||
9615 | echo $ac_n "checking if w32api has good enough MSIE support""... $ac_c" 1>&6 | |
d6853540 | 9616 | echo "configure:9617: checking if w32api has good enough MSIE support" >&5 |
4f14bcd8 GD |
9617 | if eval "test \"`echo '$''{'wx_cv_w32api_win_ie'+set}'`\" = set"; then |
9618 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9619 | else | |
9620 | ||
9621 | cat > conftest.$ac_ext <<EOF | |
d6853540 | 9622 | #line 9623 "configure" |
4f14bcd8 GD |
9623 | #include "confdefs.h" |
9624 | #include <w32api.h> | |
9625 | int main() { | |
9626 | ||
9627 | #define wxCHECK_W32API_VERSION( major, minor ) \ | |
9628 | ( defined( __W32API_MAJOR_VERSION ) && defined( __W32API_MINOR_VERSION ) \ | |
9629 | && ( ( __W32API_MAJOR_VERSION > (major) ) \ | |
9630 | || ( __W32API_MAJOR_VERSION == (major) && __W32API_MINOR_VERSION >= (minor)))) | |
9631 | ||
9632 | #if !wxCHECK_W32API_VERSION(1,1) | |
9633 | #error You need w32api 1.1 or newer | |
9634 | #endif | |
9635 | ||
9636 | ; return 0; } | |
9637 | EOF | |
d6853540 | 9638 | if { (eval echo configure:9639: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
4f14bcd8 GD |
9639 | rm -rf conftest* |
9640 | ||
9641 | wx_cv_w32api_win_ie=yes | |
9642 | CPPFLAGS="$CPPFLAGS -D_WIN_IE=0x400" | |
9643 | ||
9644 | else | |
9645 | echo "configure: failed program was:" >&5 | |
9646 | cat conftest.$ac_ext >&5 | |
9647 | rm -rf conftest* | |
9648 | ||
9649 | wx_cv_w32api_win_ie=no | |
9650 | ||
9651 | fi | |
9652 | rm -f conftest* | |
9653 | ||
9654 | fi | |
9655 | ||
9656 | echo "$ac_t""$wx_cv_w32api_win_ie" 1>&6 | |
9657 | ||
9658 | LIBS="$LIBS -lwinspool -lwinmm -lshell32 -lcomctl32 -lctl3d32 -ladvapi32 -lwsock32" | |
9659 | ||
77e13408 RL |
9660 | case "${host}" in |
9661 | *-*-cygwin* ) | |
9662 | LIBS="$LIBS -lkernel32 -luser32 -lgdi32 -lcomdlg32" | |
9663 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WIN95__" | |
9664 | esac | |
4f14bcd8 GD |
9665 | |
9666 | if test "$wxUSE_ODBC" = "yes" ; then | |
9667 | LIBS="$LIBS -lodbc32 -lole32 -loleaut32" | |
9668 | fi | |
9669 | ||
4f14bcd8 GD |
9670 | RESFLAGS="--include-dir \$(top_srcdir)/include --include-dir \$(top_srcdir)/\$(program_dir) --define __WIN32__ --define __WIN95__ --define __GNUWIN32__" |
9671 | RESPROGRAMOBJ="\$(PROGRAM)_resources.o" | |
9672 | fi | |
9673 | ||
9674 | if test "$wxUSE_GUI" = "yes"; then | |
9675 | USE_GUI=1 | |
9676 | ||
9677 | GUI_TK_LIBRARY= | |
9678 | ||
9679 | WXGTK12= | |
9680 | WXGTK127= | |
9681 | WXGTK20= | |
9682 | ||
77e13408 | 9683 | if test "$wxUSE_MSW" = 1 ; then |
4f14bcd8 GD |
9684 | TOOLKIT=MSW |
9685 | GUIDIST=MSW_DIST | |
77e13408 RL |
9686 | |
9687 | case "${host}" in | |
9688 | *-*-mingw32* ) | |
9689 | EXTRA_LIBS="$EXTRA_LIBS -Wl,--subsystem,windows -mwindows" | |
9690 | esac | |
4f14bcd8 GD |
9691 | fi |
9692 | ||
9693 | if test "$wxUSE_GTK" = 1; then | |
9694 | echo $ac_n "checking for GTK+ version""... $ac_c" 1>&6 | |
d6853540 | 9695 | echo "configure:9696: checking for GTK+ version" >&5 |
4f14bcd8 GD |
9696 | |
9697 | gtk_version_cached=1 | |
9698 | if eval "test \"`echo '$''{'wx_cv_lib_gtk'+set}'`\" = set"; then | |
9699 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9700 | else | |
9701 | ||
9702 | gtk_version_cached=0 | |
9703 | echo "$ac_t""""" 1>&6 | |
9704 | ||
9705 | wx_cv_lib_gtk= | |
9706 | if test "x$wxUSE_GTK2" = "xyes"; then | |
9707 | # Check whether --with-gtk-prefix or --without-gtk-prefix was given. | |
9708 | if test "${with_gtk_prefix+set}" = set; then | |
9709 | withval="$with_gtk_prefix" | |
9710 | gtk_config_prefix="$withval" | |
9711 | else | |
9712 | gtk_config_prefix="" | |
9713 | fi | |
9714 | ||
9715 | # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given. | |
9716 | if test "${with_gtk_exec_prefix+set}" = set; then | |
9717 | withval="$with_gtk_exec_prefix" | |
9718 | gtk_config_exec_prefix="$withval" | |
9719 | else | |
9720 | gtk_config_exec_prefix="" | |
9721 | fi | |
9722 | ||
9723 | # Check whether --enable-gtktest or --disable-gtktest was given. | |
9724 | if test "${enable_gtktest+set}" = set; then | |
9725 | enableval="$enable_gtktest" | |
9726 | : | |
9727 | else | |
9728 | enable_gtktest=yes | |
9729 | fi | |
9730 | ||
9731 | ||
9732 | for module in . | |
9733 | do | |
6f72b082 | 9734 | case "$module" in |
8168de4c | 9735 | gthread) |
6f72b082 OK |
9736 | gtk_config_args="$gtk_config_args gthread" |
9737 | ;; | |
9738 | esac | |
9739 | done | |
9740 | ||
9741 | if test x$gtk_config_exec_prefix != x ; then | |
9742 | gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix" | |
9743 | if test x${GTK_CONFIG_2_0+set} != xset ; then | |
9744 | GTK_CONFIG_2_0=$gtk_config_exec_prefix/bin/gtk-config-2.0 | |
9745 | fi | |
9746 | fi | |
9747 | if test x$gtk_config_prefix != x ; then | |
9748 | gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix" | |
9749 | if test x${GTK_CONFIG_2_0+set} != xset ; then | |
9750 | GTK_CONFIG_2_0=$gtk_config_prefix/bin/gtk-config-2.0 | |
9751 | fi | |
9752 | fi | |
9753 | ||
9754 | # Extract the first word of "gtk-config-2.0", so it can be a program name with args. | |
9755 | set dummy gtk-config-2.0; ac_word=$2 | |
698dcdb6 | 9756 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
d6853540 | 9757 | echo "configure:9758: checking for $ac_word" >&5 |
698dcdb6 VZ |
9758 | if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG_2_0'+set}'`\" = set"; then |
9759 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6f72b082 | 9760 | else |
698dcdb6 VZ |
9761 | case "$GTK_CONFIG_2_0" in |
9762 | /*) | |
6f72b082 OK |
9763 | ac_cv_path_GTK_CONFIG_2_0="$GTK_CONFIG_2_0" # Let the user override the test with a path. |
9764 | ;; | |
698dcdb6 VZ |
9765 | ?:/*) |
9766 | ac_cv_path_GTK_CONFIG_2_0="$GTK_CONFIG_2_0" # Let the user override the test with a dos path. | |
9767 | ;; | |
6f72b082 | 9768 | *) |
698dcdb6 VZ |
9769 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
9770 | ac_dummy="$PATH" | |
9771 | for ac_dir in $ac_dummy; do | |
9772 | test -z "$ac_dir" && ac_dir=. | |
9773 | if test -f $ac_dir/$ac_word; then | |
9774 | ac_cv_path_GTK_CONFIG_2_0="$ac_dir/$ac_word" | |
9775 | break | |
9776 | fi | |
9777 | done | |
9778 | IFS="$ac_save_ifs" | |
6f72b082 OK |
9779 | test -z "$ac_cv_path_GTK_CONFIG_2_0" && ac_cv_path_GTK_CONFIG_2_0="no" |
9780 | ;; | |
9781 | esac | |
9782 | fi | |
698dcdb6 | 9783 | GTK_CONFIG_2_0="$ac_cv_path_GTK_CONFIG_2_0" |
6f72b082 | 9784 | if test -n "$GTK_CONFIG_2_0"; then |
698dcdb6 | 9785 | echo "$ac_t""$GTK_CONFIG_2_0" 1>&6 |
6f72b082 | 9786 | else |
698dcdb6 | 9787 | echo "$ac_t""no" 1>&6 |
6f72b082 OK |
9788 | fi |
9789 | ||
9790 | min_gtk_version=1.3.1 | |
698dcdb6 | 9791 | echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6 |
d6853540 | 9792 | echo "configure:9793: checking for GTK - version >= $min_gtk_version" >&5 |
6f72b082 OK |
9793 | no_gtk="" |
9794 | if test "$GTK_CONFIG_2_0" = "no" ; then | |
9795 | no_gtk=yes | |
9796 | else | |
9797 | GTK_CFLAGS=`$GTK_CONFIG_2_0 $gtk_config_args --cflags` | |
9798 | GTK_LIBS=`$GTK_CONFIG_2_0 $gtk_config_args --libs` | |
9799 | gtk_config_major_version=`$GTK_CONFIG_2_0 $gtk_config_args --version | \ | |
9800 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` | |
9801 | gtk_config_minor_version=`$GTK_CONFIG_2_0 $gtk_config_args --version | \ | |
9802 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` | |
9803 | gtk_config_micro_version=`$GTK_CONFIG_2_0 $gtk_config_args --version | \ | |
9804 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` | |
9805 | if test "x$enable_gtktest" = "xyes" ; then | |
9806 | ac_save_CFLAGS="$CFLAGS" | |
9807 | ac_save_LIBS="$LIBS" | |
9808 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
9809 | LIBS="$GTK_LIBS $LIBS" | |
9810 | rm -f conf.gtktest | |
9811 | if test "$cross_compiling" = yes; then | |
9812 | echo $ac_n "cross compiling; assumed OK... $ac_c" | |
9813 | else | |
698dcdb6 | 9814 | cat > conftest.$ac_ext <<EOF |
d6853540 | 9815 | #line 9816 "configure" |
6f72b082 OK |
9816 | #include "confdefs.h" |
9817 | ||
9818 | #include <gtk/gtk.h> | |
9819 | #include <stdio.h> | |
9820 | #include <stdlib.h> | |
9821 | ||
8168de4c | 9822 | int |
6f72b082 OK |
9823 | main () |
9824 | { | |
9825 | int major, minor, micro; | |
9826 | char *tmp_version; | |
9827 | ||
9828 | system ("touch conf.gtktest"); | |
9829 | ||
9830 | /* HP/UX 9 (%@#!) writes to sscanf strings */ | |
9831 | tmp_version = g_strdup("$min_gtk_version"); | |
9832 | if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { | |
9833 | printf("%s, bad version string\n", "$min_gtk_version"); | |
9834 | exit(1); | |
9835 | } | |
9836 | ||
9837 | if ((gtk_major_version != $gtk_config_major_version) || | |
9838 | (gtk_minor_version != $gtk_config_minor_version) || | |
9839 | (gtk_micro_version != $gtk_config_micro_version)) | |
9840 | { | |
8168de4c | 9841 | printf("\n*** 'gtk-config-2.0 --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n", |
6f72b082 OK |
9842 | $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version, |
9843 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
9844 | printf ("*** was found! If gtk-config-2.0 was correct, then it is best\n"); | |
9845 | printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n"); | |
9846 | printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n"); | |
9847 | printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n"); | |
9848 | printf("*** required on your system.\n"); | |
9849 | printf("*** If gtk-config-2.0 was wrong, set the environment variable GTK_CONFIG_2_0\n"); | |
9850 | printf("*** to point to the correct copy of gtk-config-2.0, and remove the file config.cache\n"); | |
9851 | printf("*** before re-running configure\n"); | |
8168de4c | 9852 | } |
6f72b082 OK |
9853 | #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION) |
9854 | else if ((gtk_major_version != GTK_MAJOR_VERSION) || | |
8168de4c | 9855 | (gtk_minor_version != GTK_MINOR_VERSION) || |
6f72b082 OK |
9856 | (gtk_micro_version != GTK_MICRO_VERSION)) |
9857 | { | |
9858 | printf("*** GTK+ header files (version %d.%d.%d) do not match\n", | |
8168de4c | 9859 | GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION); |
6f72b082 | 9860 | printf("*** library (version %d.%d.%d)\n", |
8168de4c | 9861 | gtk_major_version, gtk_minor_version, gtk_micro_version); |
6f72b082 OK |
9862 | } |
9863 | #endif /* defined (GTK_MAJOR_VERSION) ... */ | |
9864 | else | |
9865 | { | |
9866 | if ((gtk_major_version > major) || | |
9867 | ((gtk_major_version == major) && (gtk_minor_version > minor)) || | |
9868 | ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro))) | |
9869 | { | |
9870 | return 0; | |
9871 | } | |
9872 | else | |
9873 | { | |
9874 | printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n", | |
9875 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
9876 | printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n", | |
8168de4c | 9877 | major, minor, micro); |
6f72b082 OK |
9878 | printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n"); |
9879 | printf("***\n"); | |
9880 | printf("*** If you have already installed a sufficiently new version, this error\n"); | |
9881 | printf("*** probably means that the wrong copy of the gtk-config-2.0 shell script is\n"); | |
9882 | printf("*** being found. The easiest way to fix this is to remove the old version\n"); | |
9883 | printf("*** of GTK+, but you can also set the GTK_CONFIG_2_0 environment to point to the\n"); | |
9884 | printf("*** correct copy of gtk-config-2.0. (In this case, you will have to\n"); | |
9885 | printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n"); | |
9886 | printf("*** so that the correct libraries are found at run-time))\n"); | |
9887 | } | |
9888 | } | |
9889 | return 1; | |
9890 | } | |
9891 | ||
698dcdb6 | 9892 | EOF |
d6853540 | 9893 | if { (eval echo configure:9894: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
698dcdb6 | 9894 | then |
6f72b082 OK |
9895 | : |
9896 | else | |
698dcdb6 VZ |
9897 | echo "configure: failed program was:" >&5 |
9898 | cat conftest.$ac_ext >&5 | |
9899 | rm -fr conftest* | |
9900 | no_gtk=yes | |
6f72b082 | 9901 | fi |
698dcdb6 | 9902 | rm -fr conftest* |
6f72b082 | 9903 | fi |
698dcdb6 | 9904 | |
6f72b082 OK |
9905 | CFLAGS="$ac_save_CFLAGS" |
9906 | LIBS="$ac_save_LIBS" | |
9907 | fi | |
9908 | fi | |
9909 | if test "x$no_gtk" = x ; then | |
698dcdb6 | 9910 | echo "$ac_t""yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" 1>&6 |
8168de4c | 9911 | wx_cv_lib_gtk=2.0 |
6f72b082 | 9912 | else |
698dcdb6 | 9913 | echo "$ac_t""no" 1>&6 |
6f72b082 OK |
9914 | if test "$GTK_CONFIG_2_0" = "no" ; then |
9915 | echo "*** The gtk-config-2.0 script installed by GTK could not be found" | |
9916 | echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in" | |
9917 | echo "*** your path, or set the GTK_CONFIG_2_0 environment variable to the" | |
9918 | echo "*** full path to gtk-config-2.0." | |
9919 | else | |
9920 | if test -f conf.gtktest ; then | |
9921 | : | |
9922 | else | |
9923 | echo "*** Could not run GTK test program, checking why..." | |
9924 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
9925 | LIBS="$LIBS $GTK_LIBS" | |
698dcdb6 | 9926 | cat > conftest.$ac_ext <<EOF |
d6853540 | 9927 | #line 9928 "configure" |
6f72b082 OK |
9928 | #include "confdefs.h" |
9929 | ||
9930 | #include <gtk/gtk.h> | |
9931 | #include <stdio.h> | |
9932 | ||
698dcdb6 VZ |
9933 | int main() { |
9934 | return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version)); | |
9935 | ; return 0; } | |
9936 | EOF | |
d6853540 | 9937 | if { (eval echo configure:9938: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 | 9938 | rm -rf conftest* |
6f72b082 OK |
9939 | echo "*** The test program compiled, but did not run. This usually means" |
9940 | echo "*** that the run-time linker is not finding GTK or finding the wrong" | |
9941 | echo "*** version of GTK. If it is not finding GTK, you'll need to set your" | |
9942 | echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" | |
9943 | echo "*** to the installed location Also, make sure you have run ldconfig if that" | |
9944 | echo "*** is required on your system" | |
8168de4c | 9945 | echo "***" |
6f72b082 OK |
9946 | echo "*** If you have an old version installed, it is best to remove it, although" |
9947 | echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" | |
9948 | echo "***" | |
9949 | echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that" | |
9950 | echo "*** came with the system with the command" | |
9951 | echo "***" | |
698dcdb6 | 9952 | echo "*** rpm --erase --nodeps gtk gtk-devel" |
6f72b082 | 9953 | else |
698dcdb6 VZ |
9954 | echo "configure: failed program was:" >&5 |
9955 | cat conftest.$ac_ext >&5 | |
9956 | rm -rf conftest* | |
9957 | echo "*** The test program failed to compile or link. See the file config.log for the" | |
6f72b082 OK |
9958 | echo "*** exact error that occured. This usually means GTK was incorrectly installed" |
9959 | echo "*** or that you have moved GTK since it was installed. In the latter case, you" | |
698dcdb6 | 9960 | echo "*** may want to edit the gtk-config-2.0 script: $GTK_CONFIG_2_0" |
6f72b082 | 9961 | fi |
698dcdb6 | 9962 | rm -f conftest* |
6f72b082 OK |
9963 | CFLAGS="$ac_save_CFLAGS" |
9964 | LIBS="$ac_save_LIBS" | |
9965 | fi | |
9966 | fi | |
9967 | GTK_CFLAGS="" | |
9968 | GTK_LIBS="" | |
8168de4c VZ |
9969 | gthread |
9970 | fi | |
9971 | ||
9972 | ||
9973 | rm -f conf.gtktest | |
9974 | ||
9975 | fi | |
9976 | ||
9977 | if test -z "$wx_cv_lib_gtk"; then | |
9978 | ||
10f2d63a VZ |
9979 | if test x$gtk_config_exec_prefix != x ; then |
9980 | gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix" | |
9981 | if test x${GTK_CONFIG+set} != xset ; then | |
9982 | GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config | |
9983 | fi | |
9984 | fi | |
9985 | if test x$gtk_config_prefix != x ; then | |
9986 | gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix" | |
9987 | if test x${GTK_CONFIG+set} != xset ; then | |
9988 | GTK_CONFIG=$gtk_config_prefix/bin/gtk-config | |
9989 | fi | |
9990 | fi | |
9991 | ||
9992 | # Extract the first word of "gtk-config", so it can be a program name with args. | |
9993 | set dummy gtk-config; ac_word=$2 | |
698dcdb6 | 9994 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
d6853540 | 9995 | echo "configure:9996: checking for $ac_word" >&5 |
698dcdb6 VZ |
9996 | if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then |
9997 | echo $ac_n "(cached) $ac_c" 1>&6 | |
f6bcfd97 | 9998 | else |
698dcdb6 VZ |
9999 | case "$GTK_CONFIG" in |
10000 | /*) | |
f6bcfd97 BP |
10001 | ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path. |
10002 | ;; | |
698dcdb6 VZ |
10003 | ?:/*) |
10004 | ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path. | |
10005 | ;; | |
f6bcfd97 | 10006 | *) |
698dcdb6 VZ |
10007 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
10008 | ac_dummy="$PATH" | |
10009 | for ac_dir in $ac_dummy; do | |
10010 | test -z "$ac_dir" && ac_dir=. | |
10011 | if test -f $ac_dir/$ac_word; then | |
10012 | ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word" | |
10013 | break | |
10014 | fi | |
10015 | done | |
10016 | IFS="$ac_save_ifs" | |
f6bcfd97 BP |
10017 | test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no" |
10018 | ;; | |
10019 | esac | |
10020 | fi | |
698dcdb6 | 10021 | GTK_CONFIG="$ac_cv_path_GTK_CONFIG" |
f6bcfd97 | 10022 | if test -n "$GTK_CONFIG"; then |
698dcdb6 | 10023 | echo "$ac_t""$GTK_CONFIG" 1>&6 |
f6bcfd97 | 10024 | else |
698dcdb6 | 10025 | echo "$ac_t""no" 1>&6 |
f6bcfd97 BP |
10026 | fi |
10027 | ||
10028 | min_gtk_version=1.2.7 | |
698dcdb6 | 10029 | echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6 |
d6853540 | 10030 | echo "configure:10031: checking for GTK - version >= $min_gtk_version" >&5 |
f6bcfd97 BP |
10031 | no_gtk="" |
10032 | if test "$GTK_CONFIG" != "no" ; then | |
10033 | GTK_CFLAGS=`$GTK_CONFIG --cflags` | |
10034 | GTK_LIBS=`$GTK_CONFIG --libs gthread` | |
10035 | ac_save_CFLAGS="$CFLAGS" | |
10036 | ac_save_LIBS="$LIBS" | |
10037 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
10038 | LIBS="$LIBS $GTK_LIBS" | |
10039 | if test "$cross_compiling" = yes; then | |
10040 | echo $ac_n "cross compiling; assumed OK... $ac_c" | |
10041 | else | |
698dcdb6 | 10042 | cat > conftest.$ac_ext <<EOF |
d6853540 | 10043 | #line 10044 "configure" |
f6bcfd97 BP |
10044 | #include "confdefs.h" |
10045 | ||
10046 | #include <gtk/gtk.h> | |
10047 | #include <gtk/gtkfeatures.h> | |
10048 | #include <stdio.h> | |
10049 | #include <stdlib.h> | |
10050 | ||
10051 | int | |
10052 | main () | |
10053 | { | |
10054 | int major, minor, micro; | |
10055 | ||
10056 | if (sscanf("$min_gtk_version", "%d.%d.%d", &major, &minor, µ) != 3) { | |
10057 | printf("%s, bad version string\n", "$min_gtk_version"); | |
10058 | exit(1); | |
10059 | } | |
10060 | ||
10061 | if ((GTK_MAJOR_VERSION != gtk_major_version) || | |
10062 | (GTK_MINOR_VERSION != gtk_minor_version) || | |
10063 | (GTK_MICRO_VERSION != gtk_micro_version)) { | |
10064 | printf("Headers vs. library version mismatch!\n"); | |
10065 | exit(1); | |
10066 | } | |
10067 | ||
10068 | if (gtk_minor_version == 1) return FALSE; | |
10069 | ||
10070 | return !((gtk_major_version > major) || | |
10071 | ((gtk_major_version == major) && (gtk_minor_version > minor)) || | |
10072 | ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro))); | |
10073 | } | |
10074 | ||
698dcdb6 | 10075 | EOF |
d6853540 | 10076 | if { (eval echo configure:10077: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
698dcdb6 | 10077 | then |
f6bcfd97 BP |
10078 | : |
10079 | else | |
698dcdb6 VZ |
10080 | echo "configure: failed program was:" >&5 |
10081 | cat conftest.$ac_ext >&5 | |
10082 | rm -fr conftest* | |
10083 | no_gtk=yes | |
f6bcfd97 | 10084 | fi |
698dcdb6 | 10085 | rm -fr conftest* |
f6bcfd97 | 10086 | fi |
698dcdb6 | 10087 | |
f6bcfd97 BP |
10088 | CFLAGS="$ac_save_CFLAGS" |
10089 | LIBS="$ac_save_LIBS" | |
10090 | else | |
10091 | no_gtk=yes | |
10092 | fi | |
10093 | if test "x$no_gtk" = x ; then | |
698dcdb6 | 10094 | echo "$ac_t""yes" 1>&6 |
8168de4c | 10095 | wx_cv_lib_gtk=1.2.7 |
f6bcfd97 | 10096 | else |
698dcdb6 | 10097 | echo "$ac_t""no" 1>&6 |
f6bcfd97 BP |
10098 | GTK_CFLAGS="" |
10099 | GTK_LIBS="" | |
10100 | : | |
10101 | fi | |
698dcdb6 VZ |
10102 | |
10103 | ||
f6bcfd97 | 10104 | |
8168de4c VZ |
10105 | fi |
10106 | ||
10107 | if test -z "$wx_cv_lib_gtk"; then | |
10108 | ||
f6bcfd97 BP |
10109 | if test x$gtk_config_exec_prefix != x ; then |
10110 | gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix" | |
10111 | if test x${GTK_CONFIG+set} != xset ; then | |
10112 | GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config | |
10113 | fi | |
10114 | fi | |
10115 | if test x$gtk_config_prefix != x ; then | |
10116 | gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix" | |
10117 | if test x${GTK_CONFIG+set} != xset ; then | |
10118 | GTK_CONFIG=$gtk_config_prefix/bin/gtk-config | |
10119 | fi | |
10120 | fi | |
10121 | ||
10122 | # Extract the first word of "gtk-config", so it can be a program name with args. | |
10123 | set dummy gtk-config; ac_word=$2 | |
698dcdb6 | 10124 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
d6853540 | 10125 | echo "configure:10126: checking for $ac_word" >&5 |
698dcdb6 VZ |
10126 | if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then |
10127 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 10128 | else |
698dcdb6 VZ |
10129 | case "$GTK_CONFIG" in |
10130 | /*) | |
10f2d63a VZ |
10131 | ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path. |
10132 | ;; | |
698dcdb6 VZ |
10133 | ?:/*) |
10134 | ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path. | |
10135 | ;; | |
10f2d63a | 10136 | *) |
698dcdb6 VZ |
10137 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
10138 | ac_dummy="$PATH" | |
10139 | for ac_dir in $ac_dummy; do | |
10140 | test -z "$ac_dir" && ac_dir=. | |
10141 | if test -f $ac_dir/$ac_word; then | |
10142 | ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word" | |
10143 | break | |
10144 | fi | |
10145 | done | |
10146 | IFS="$ac_save_ifs" | |
10f2d63a VZ |
10147 | test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no" |
10148 | ;; | |
10149 | esac | |
10150 | fi | |
698dcdb6 | 10151 | GTK_CONFIG="$ac_cv_path_GTK_CONFIG" |
10f2d63a | 10152 | if test -n "$GTK_CONFIG"; then |
698dcdb6 | 10153 | echo "$ac_t""$GTK_CONFIG" 1>&6 |
10f2d63a | 10154 | else |
698dcdb6 | 10155 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
10156 | fi |
10157 | ||
04165bec | 10158 | min_gtk_version=1.2.3 |
698dcdb6 | 10159 | echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6 |
d6853540 | 10160 | echo "configure:10161: checking for GTK - version >= $min_gtk_version" >&5 |
10f2d63a VZ |
10161 | no_gtk="" |
10162 | if test "$GTK_CONFIG" != "no" ; then | |
10163 | GTK_CFLAGS=`$GTK_CONFIG --cflags` | |
2224580a | 10164 | GTK_LIBS=`$GTK_CONFIG --libs gthread` |
10f2d63a VZ |
10165 | ac_save_CFLAGS="$CFLAGS" |
10166 | ac_save_LIBS="$LIBS" | |
10167 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
10168 | LIBS="$LIBS $GTK_LIBS" | |
10169 | if test "$cross_compiling" = yes; then | |
10170 | echo $ac_n "cross compiling; assumed OK... $ac_c" | |
10171 | else | |
698dcdb6 | 10172 | cat > conftest.$ac_ext <<EOF |
d6853540 | 10173 | #line 10174 "configure" |
10f2d63a VZ |
10174 | #include "confdefs.h" |
10175 | ||
10176 | #include <gtk/gtk.h> | |
f49f2b0c | 10177 | #include <gtk/gtkfeatures.h> |
10f2d63a | 10178 | #include <stdio.h> |
32832908 | 10179 | #include <stdlib.h> |
10f2d63a VZ |
10180 | |
10181 | int | |
10182 | main () | |
10183 | { | |
10184 | int major, minor, micro; | |
10185 | ||
10186 | if (sscanf("$min_gtk_version", "%d.%d.%d", &major, &minor, µ) != 3) { | |
10187 | printf("%s, bad version string\n", "$min_gtk_version"); | |
10188 | exit(1); | |
10189 | } | |
10190 | ||
f49f2b0c RR |
10191 | if ((GTK_MAJOR_VERSION != gtk_major_version) || |
10192 | (GTK_MINOR_VERSION != gtk_minor_version) || | |
10193 | (GTK_MICRO_VERSION != gtk_micro_version)) { | |
10194 | printf("Headers vs. library version mismatch!\n"); | |
10195 | exit(1); | |
10196 | } | |
10197 | ||
10f2d63a VZ |
10198 | if (gtk_minor_version == 1) return FALSE; |
10199 | ||
10200 | return !((gtk_major_version > major) || | |
10201 | ((gtk_major_version == major) && (gtk_minor_version > minor)) || | |
10202 | ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro))); | |
10203 | } | |
10204 | ||
698dcdb6 | 10205 | EOF |
d6853540 | 10206 | if { (eval echo configure:10207: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
698dcdb6 | 10207 | then |
10f2d63a VZ |
10208 | : |
10209 | else | |
698dcdb6 VZ |
10210 | echo "configure: failed program was:" >&5 |
10211 | cat conftest.$ac_ext >&5 | |
10212 | rm -fr conftest* | |
10213 | no_gtk=yes | |
10f2d63a | 10214 | fi |
698dcdb6 | 10215 | rm -fr conftest* |
10f2d63a | 10216 | fi |
698dcdb6 | 10217 | |
10f2d63a VZ |
10218 | CFLAGS="$ac_save_CFLAGS" |
10219 | LIBS="$ac_save_LIBS" | |
10220 | else | |
10221 | no_gtk=yes | |
10222 | fi | |
10223 | if test "x$no_gtk" = x ; then | |
698dcdb6 | 10224 | echo "$ac_t""yes" 1>&6 |
8168de4c | 10225 | wx_cv_lib_gtk=1.2.3 |
10f2d63a | 10226 | else |
698dcdb6 | 10227 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
10228 | GTK_CFLAGS="" |
10229 | GTK_LIBS="" | |
7e99ad86 | 10230 | : |
10f2d63a | 10231 | fi |
698dcdb6 VZ |
10232 | |
10233 | ||
10f2d63a | 10234 | |
8168de4c VZ |
10235 | fi |
10236 | ||
10237 | if test -z "$wx_cv_lib_gtk"; then | |
10238 | wx_cv_lib_gtk=none | |
138be253 VZ |
10239 | else |
10240 | wx_cv_cflags_gtk=$GTK_CFLAGS | |
10241 | wx_cv_libs_gtk=$GTK_LIBS | |
8168de4c VZ |
10242 | fi |
10243 | ||
1e6feb95 | 10244 | |
8168de4c | 10245 | fi |
703e0a69 | 10246 | |
698dcdb6 | 10247 | |
8168de4c VZ |
10248 | if test "$gtk_version_cached" = 1; then |
10249 | echo "$ac_t""$wx_cv_lib_gtk" 1>&6 | |
1e6feb95 | 10250 | fi |
698dcdb6 | 10251 | |
8168de4c VZ |
10252 | case "$wx_cv_lib_gtk" in |
10253 | 2.0) WXGTK20=1 | |
10254 | ;; | |
10255 | 1.2.7) WXGTK127=1 | |
d1a8d972 | 10256 | WXGTK12=1 |
8168de4c VZ |
10257 | ;; |
10258 | 1.2.3) WXGTK12=1 | |
10259 | ;; | |
10260 | *) { echo "configure: error: | |
10261 | Please check that gtk-config is in path, the directory | |
10262 | where GTK+ libraries are installed (returned by | |
10263 | 'gtk-config --libs' command) is in LD_LIBRARY_PATH or | |
10264 | equivalent variable and GTK+ is version 1.2.3 or above. | |
10265 | " 1>&2; exit 1; } | |
10266 | ;; | |
10267 | esac | |
2224580a | 10268 | |
138be253 | 10269 | TOOLKIT_INCLUDE="$wx_cv_cflags_gtk" |
11dfaa5f | 10270 | GUI_TK_LIBRARY="$wx_cv_libs_gtk" |
698dcdb6 | 10271 | |
1e6feb95 VZ |
10272 | AFMINSTALL=afminstall |
10273 | TOOLKIT=GTK | |
10274 | GUIDIST=GTK_DIST | |
7ec2881a | 10275 | |
1e6feb95 | 10276 | echo $ac_n "checking for gdk_im_open in -lgdk""... $ac_c" 1>&6 |
d6853540 | 10277 | echo "configure:10278: checking for gdk_im_open in -lgdk" >&5 |
698dcdb6 VZ |
10278 | ac_lib_var=`echo gdk'_'gdk_im_open | sed 'y%./+-%__p_%'` |
10279 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
10280 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7ec2881a | 10281 | else |
698dcdb6 | 10282 | ac_save_LIBS="$LIBS" |
7ec2881a | 10283 | LIBS="-lgdk $LIBS" |
698dcdb6 | 10284 | cat > conftest.$ac_ext <<EOF |
d6853540 | 10285 | #line 10286 "configure" |
7ec2881a RR |
10286 | #include "confdefs.h" |
10287 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10288 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
10289 | builtin and then its argument prototype would still apply. */ |
10290 | char gdk_im_open(); | |
10291 | ||
10292 | int main() { | |
10293 | gdk_im_open() | |
10294 | ; return 0; } | |
10295 | EOF | |
d6853540 | 10296 | if { (eval echo configure:10297: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
10297 | rm -rf conftest* |
10298 | eval "ac_cv_lib_$ac_lib_var=yes" | |
10299 | else | |
10300 | echo "configure: failed program was:" >&5 | |
10301 | cat conftest.$ac_ext >&5 | |
10302 | rm -rf conftest* | |
10303 | eval "ac_cv_lib_$ac_lib_var=no" | |
10304 | fi | |
10305 | rm -f conftest* | |
10306 | LIBS="$ac_save_LIBS" | |
10307 | ||
10308 | fi | |
10309 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
10310 | echo "$ac_t""yes" 1>&6 | |
10311 | cat >> confdefs.h <<\EOF | |
7ec2881a RR |
10312 | #define HAVE_XIM 1 |
10313 | EOF | |
10314 | ||
698dcdb6 VZ |
10315 | else |
10316 | echo "$ac_t""no" 1>&6 | |
7ec2881a RR |
10317 | fi |
10318 | ||
1e6feb95 | 10319 | fi |
10f2d63a | 10320 | |
1e6feb95 VZ |
10321 | if test "$wxUSE_MGL" = 1; then |
10322 | ||
10323 | echo $ac_n "checking for SciTech MGL library""... $ac_c" 1>&6 | |
d6853540 | 10324 | echo "configure:10325: checking for SciTech MGL library" >&5 |
1e6feb95 VZ |
10325 | if test "x$MGL_ROOT" = x ; then |
10326 | echo "$ac_t""not found" 1>&6 | |
10327 | { echo "configure: error: Cannot find MGL library. Make sure MGL_ROOT is set." 1>&2; exit 1; } | |
10328 | else | |
10329 | echo "$ac_t""$MGL_ROOT" 1>&6 | |
10330 | fi | |
10331 | ||
3a922bb4 RL |
10332 | mgl_os=linux/gcc/glibc |
10333 | mgl_lib_type="" | |
1e6feb95 VZ |
10334 | |
10335 | if test "$wxUSE_DEBUG_FLAG" = yes ; then | |
3a922bb4 RL |
10336 | if test -f $MGL_ROOT/lib/debug/$mgl_os/libmgl.a ; then |
10337 | mgl_lib_type=debug | |
1e6feb95 VZ |
10338 | fi |
10339 | fi | |
3a922bb4 RL |
10340 | if test "x$mgl_lib_type" = x ; then |
10341 | if test -f $MGL_ROOT/lib/release/$mgl_os/libmgl.a ; then | |
10342 | mgl_lib_type=release | |
1e6feb95 VZ |
10343 | else |
10344 | { echo "configure: error: Cannot find MGL libraries, make sure they are compiled." 1>&2; exit 1; } | |
10345 | fi | |
10346 | fi | |
10347 | ||
10348 | TOOLKIT_INCLUDE="-I$MGL_ROOT/include" | |
3a922bb4 | 10349 | GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$mgl_lib_type/$mgl_os -lmgl -lmglcpp -lpm" |
1e6feb95 VZ |
10350 | |
10351 | AFMINSTALL=afminstall | |
10352 | TOOLKIT=MGL | |
10353 | GUIDIST=MGL_DIST | |
10354 | fi | |
10355 | ||
10356 | if test "$wxUSE_WINE" = 1; then | |
3a922bb4 RL |
10357 | ac_safe=`echo "windows.h" | sed 'y%./+-%__p_%'` |
10358 | echo $ac_n "checking for windows.h""... $ac_c" 1>&6 | |
d6853540 | 10359 | echo "configure:10360: checking for windows.h" >&5 |
3a922bb4 RL |
10360 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
10361 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10362 | else | |
10363 | cat > conftest.$ac_ext <<EOF | |
d6853540 | 10364 | #line 10365 "configure" |
3a922bb4 RL |
10365 | #include "confdefs.h" |
10366 | #include <windows.h> | |
10367 | EOF | |
10368 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
d6853540 | 10369 | { (eval echo configure:10370: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
3a922bb4 RL |
10370 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
10371 | if test -z "$ac_err"; then | |
10372 | rm -rf conftest* | |
10373 | eval "ac_cv_header_$ac_safe=yes" | |
10374 | else | |
10375 | echo "$ac_err" >&5 | |
10376 | echo "configure: failed program was:" >&5 | |
10377 | cat conftest.$ac_ext >&5 | |
10378 | rm -rf conftest* | |
10379 | eval "ac_cv_header_$ac_safe=no" | |
10380 | fi | |
10381 | rm -f conftest* | |
10382 | fi | |
10383 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
10384 | echo "$ac_t""yes" 1>&6 | |
10385 | : | |
10386 | else | |
10387 | echo "$ac_t""no" 1>&6 | |
10f2d63a | 10388 | |
1e6feb95 | 10389 | { echo "configure: error: please set CFLAGS to contain the location of windows.h" 1>&2; exit 1; } |
3a922bb4 RL |
10390 | |
10391 | fi | |
10392 | ||
10f2d63a | 10393 | |
3a922bb4 | 10394 | xpm_link="" |
1e6feb95 | 10395 | echo $ac_n "checking for Xpm library""... $ac_c" 1>&6 |
d6853540 | 10396 | echo "configure:10397: checking for Xpm library" >&5 |
1e6feb95 | 10397 | |
10f2d63a VZ |
10398 | ac_find_libraries= |
10399 | for ac_dir in $SEARCH_LIB; | |
10400 | do | |
f11bdd03 | 10401 | for ac_extension in a so sl dylib; do |
10f2d63a VZ |
10402 | if test -f "$ac_dir/libXpm.$ac_extension"; then |
10403 | ac_find_libraries=$ac_dir | |
10404 | break 2 | |
10405 | fi | |
10406 | done | |
10407 | done | |
10408 | ||
1e6feb95 VZ |
10409 | if test "$ac_find_libraries" != "" ; then |
10410 | GUI_TK_LIBRARY="-L$ac_find_libraries" | |
3a922bb4 | 10411 | xpm_link="-lXpm" |
1e6feb95 | 10412 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
10413 | #define wxHAVE_LIB_XPM 1 |
10414 | EOF | |
10415 | ||
1e6feb95 VZ |
10416 | echo "$ac_t""found at $ac_find_libraries" 1>&6 |
10417 | else | |
10418 | echo "$ac_t""no" 1>&6 | |
10419 | echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2 | |
10420 | fi | |
10f2d63a | 10421 | |
3a922bb4 | 10422 | mesa_link="" |
1e6feb95 | 10423 | echo $ac_n "checking for Mesa library""... $ac_c" 1>&6 |
d6853540 | 10424 | echo "configure:10425: checking for Mesa library" >&5 |
1e6feb95 | 10425 | |
10f2d63a VZ |
10426 | ac_find_libraries= |
10427 | for ac_dir in $SEARCH_LIB; | |
10428 | do | |
f11bdd03 | 10429 | for ac_extension in a so sl dylib; do |
10f2d63a VZ |
10430 | if test -f "$ac_dir/libMesaGL.$ac_extension"; then |
10431 | ac_find_libraries=$ac_dir | |
10432 | break 2 | |
10433 | fi | |
10434 | done | |
10435 | done | |
10436 | ||
1e6feb95 VZ |
10437 | if test "$ac_find_libraries" != "" ; then |
10438 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -L$ac_find_libraries" | |
3a922bb4 | 10439 | mesa_link="-lMesaGL" |
1e6feb95 VZ |
10440 | echo "$ac_t""found at $ac_find_libraries" 1>&6 |
10441 | else | |
10442 | { echo "configure: error: no" 1>&2; exit 1; } | |
10443 | fi | |
10f2d63a | 10444 | |
3a922bb4 | 10445 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lwine $mesa_link $xpm_link -lXxf86dga -lXxf86vm -lSM -lICE -lXext -lXmu -lX11 -lncurses" |
1e6feb95 VZ |
10446 | TOOLKIT=MSW |
10447 | GUIDIST=MSW_DIST | |
3a922bb4 | 10448 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXWINE__" |
1e6feb95 | 10449 | fi |
698dcdb6 | 10450 | |
d714471b VZ |
10451 | if test "$wxUSE_MOTIF" = 1; then |
10452 | # If we find X, set shell vars x_includes and x_libraries to the | |
698dcdb6 VZ |
10453 | # paths, otherwise set no_x=yes. |
10454 | # Uses ac_ vars as temps to allow command line to override cache and checks. | |
10455 | # --without-x overrides everything else, but does not touch the cache. | |
10456 | echo $ac_n "checking for X""... $ac_c" 1>&6 | |
d6853540 | 10457 | echo "configure:10458: checking for X" >&5 |
ab9b9eab VZ |
10458 | |
10459 | # Check whether --with-x or --without-x was given. | |
10460 | if test "${with_x+set}" = set; then | |
10461 | withval="$with_x" | |
698dcdb6 VZ |
10462 | : |
10463 | fi | |
ba337fe7 | 10464 | |
ab9b9eab VZ |
10465 | # $have_x is `yes', `no', `disabled', or empty when we do not yet know. |
10466 | if test "x$with_x" = xno; then | |
10467 | # The user explicitly disabled X. | |
10468 | have_x=disabled | |
10469 | else | |
10470 | if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then | |
10471 | # Both variables are already set. | |
10472 | have_x=yes | |
10473 | else | |
698dcdb6 VZ |
10474 | if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then |
10475 | echo $ac_n "(cached) $ac_c" 1>&6 | |
ab9b9eab VZ |
10476 | else |
10477 | # One or both of the vars are not set, and there is no cached value. | |
698dcdb6 VZ |
10478 | ac_x_includes=NO ac_x_libraries=NO |
10479 | rm -fr conftestdir | |
10480 | if mkdir conftestdir; then | |
10481 | cd conftestdir | |
ab9b9eab | 10482 | # Make sure to not put "make" in the Imakefile rules, since we grep it out. |
698dcdb6 | 10483 | cat > Imakefile <<'EOF' |
ab9b9eab VZ |
10484 | acfindx: |
10485 | @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"' | |
10486 | EOF | |
10487 | if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then | |
10488 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
10489 | eval `${MAKE-make} acfindx 2>/dev/null | grep -v make` | |
10490 | # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. | |
10f2d63a | 10491 | for ac_extension in a so sl; do |
ab9b9eab | 10492 | if test ! -f $ac_im_usrlibdir/libX11.$ac_extension && |
698dcdb6 | 10493 | test -f $ac_im_libdir/libX11.$ac_extension; then |
ab9b9eab | 10494 | ac_im_usrlibdir=$ac_im_libdir; break |
10f2d63a VZ |
10495 | fi |
10496 | done | |
ab9b9eab VZ |
10497 | # Screen out bogus values from the imake configuration. They are |
10498 | # bogus both because they are the default anyway, and because | |
10499 | # using them would break gcc on systems where it needs fixed includes. | |
698dcdb6 | 10500 | case "$ac_im_incroot" in |
ab9b9eab | 10501 | /usr/include) ;; |
698dcdb6 | 10502 | *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;; |
ab9b9eab | 10503 | esac |
698dcdb6 | 10504 | case "$ac_im_usrlibdir" in |
ab9b9eab | 10505 | /usr/lib | /lib) ;; |
698dcdb6 | 10506 | *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;; |
ab9b9eab | 10507 | esac |
ba337fe7 | 10508 | fi |
ab9b9eab | 10509 | cd .. |
698dcdb6 | 10510 | rm -fr conftestdir |
ab9b9eab | 10511 | fi |
10f2d63a | 10512 | |
698dcdb6 VZ |
10513 | if test "$ac_x_includes" = NO; then |
10514 | # Guess where to find include files, by looking for this one X11 .h file. | |
10515 | test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h | |
10516 | ||
ab9b9eab | 10517 | # First, try using that file with no special directory specified. |
698dcdb6 | 10518 | cat > conftest.$ac_ext <<EOF |
d6853540 | 10519 | #line 10520 "configure" |
ab9b9eab | 10520 | #include "confdefs.h" |
698dcdb6 VZ |
10521 | #include <$x_direct_test_include> |
10522 | EOF | |
10523 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
d6853540 | 10524 | { (eval echo configure:10525: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
10525 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
10526 | if test -z "$ac_err"; then | |
10527 | rm -rf conftest* | |
ab9b9eab VZ |
10528 | # We can compile using X headers with no special include directory. |
10529 | ac_x_includes= | |
10530 | else | |
698dcdb6 VZ |
10531 | echo "$ac_err" >&5 |
10532 | echo "configure: failed program was:" >&5 | |
ab9b9eab | 10533 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
10534 | rm -rf conftest* |
10535 | # Look for the header file in a standard set of common directories. | |
10536 | # Check X11 before X11Rn because it is often a symlink to the current release. | |
10537 | for ac_dir in \ | |
10538 | /usr/X11/include \ | |
10539 | /usr/X11R6/include \ | |
10540 | /usr/X11R5/include \ | |
10541 | /usr/X11R4/include \ | |
10542 | \ | |
10543 | /usr/include/X11 \ | |
10544 | /usr/include/X11R6 \ | |
10545 | /usr/include/X11R5 \ | |
10546 | /usr/include/X11R4 \ | |
10547 | \ | |
10548 | /usr/local/X11/include \ | |
10549 | /usr/local/X11R6/include \ | |
10550 | /usr/local/X11R5/include \ | |
10551 | /usr/local/X11R4/include \ | |
10552 | \ | |
10553 | /usr/local/include/X11 \ | |
10554 | /usr/local/include/X11R6 \ | |
10555 | /usr/local/include/X11R5 \ | |
10556 | /usr/local/include/X11R4 \ | |
10557 | \ | |
10558 | /usr/X386/include \ | |
10559 | /usr/x386/include \ | |
10560 | /usr/XFree86/include/X11 \ | |
10561 | \ | |
10562 | /usr/include \ | |
10563 | /usr/local/include \ | |
10564 | /usr/unsupported/include \ | |
10565 | /usr/athena/include \ | |
10566 | /usr/local/x11r5/include \ | |
10567 | /usr/lpp/Xamples/include \ | |
10568 | \ | |
10569 | /usr/openwin/include \ | |
10570 | /usr/openwin/share/include \ | |
10571 | ; \ | |
10572 | do | |
10573 | if test -r "$ac_dir/$x_direct_test_include"; then | |
10574 | ac_x_includes=$ac_dir | |
10575 | break | |
10576 | fi | |
10577 | done | |
ab9b9eab | 10578 | fi |
698dcdb6 VZ |
10579 | rm -f conftest* |
10580 | fi # $ac_x_includes = NO | |
10f2d63a | 10581 | |
698dcdb6 | 10582 | if test "$ac_x_libraries" = NO; then |
ab9b9eab | 10583 | # Check for the libraries. |
698dcdb6 VZ |
10584 | |
10585 | test -z "$x_direct_test_library" && x_direct_test_library=Xt | |
10586 | test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc | |
10587 | ||
ab9b9eab VZ |
10588 | # See if we find them without any special options. |
10589 | # Don't add to $LIBS permanently. | |
698dcdb6 VZ |
10590 | ac_save_LIBS="$LIBS" |
10591 | LIBS="-l$x_direct_test_library $LIBS" | |
10592 | cat > conftest.$ac_ext <<EOF | |
d6853540 | 10593 | #line 10594 "configure" |
ab9b9eab | 10594 | #include "confdefs.h" |
698dcdb6 VZ |
10595 | |
10596 | int main() { | |
10597 | ${x_direct_test_function}() | |
10598 | ; return 0; } | |
10599 | EOF | |
d6853540 | 10600 | if { (eval echo configure:10601: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
10601 | rm -rf conftest* |
10602 | LIBS="$ac_save_LIBS" | |
ab9b9eab VZ |
10603 | # We can link X programs with no special library path. |
10604 | ac_x_libraries= | |
10605 | else | |
698dcdb6 VZ |
10606 | echo "configure: failed program was:" >&5 |
10607 | cat conftest.$ac_ext >&5 | |
10608 | rm -rf conftest* | |
10609 | LIBS="$ac_save_LIBS" | |
10610 | # First see if replacing the include by lib works. | |
10611 | # Check X11 before X11Rn because it is often a symlink to the current release. | |
10612 | for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \ | |
10613 | /usr/X11/lib \ | |
10614 | /usr/X11R6/lib \ | |
10615 | /usr/X11R5/lib \ | |
10616 | /usr/X11R4/lib \ | |
10617 | \ | |
10618 | /usr/lib/X11 \ | |
10619 | /usr/lib/X11R6 \ | |
10620 | /usr/lib/X11R5 \ | |
10621 | /usr/lib/X11R4 \ | |
10622 | \ | |
10623 | /usr/local/X11/lib \ | |
10624 | /usr/local/X11R6/lib \ | |
10625 | /usr/local/X11R5/lib \ | |
10626 | /usr/local/X11R4/lib \ | |
10627 | \ | |
10628 | /usr/local/lib/X11 \ | |
10629 | /usr/local/lib/X11R6 \ | |
10630 | /usr/local/lib/X11R5 \ | |
10631 | /usr/local/lib/X11R4 \ | |
10632 | \ | |
10633 | /usr/X386/lib \ | |
10634 | /usr/x386/lib \ | |
10635 | /usr/XFree86/lib/X11 \ | |
10636 | \ | |
10637 | /usr/lib \ | |
10638 | /usr/local/lib \ | |
10639 | /usr/unsupported/lib \ | |
10640 | /usr/athena/lib \ | |
10641 | /usr/local/x11r5/lib \ | |
10642 | /usr/lpp/Xamples/lib \ | |
10643 | /lib/usr/lib/X11 \ | |
10644 | \ | |
10645 | /usr/openwin/lib \ | |
10646 | /usr/openwin/share/lib \ | |
10647 | ; \ | |
ab9b9eab VZ |
10648 | do |
10649 | for ac_extension in a so sl; do | |
698dcdb6 | 10650 | if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then |
ab9b9eab VZ |
10651 | ac_x_libraries=$ac_dir |
10652 | break 2 | |
10f2d63a | 10653 | fi |
10f2d63a | 10654 | done |
ab9b9eab VZ |
10655 | done |
10656 | fi | |
698dcdb6 VZ |
10657 | rm -f conftest* |
10658 | fi # $ac_x_libraries = NO | |
10f2d63a | 10659 | |
698dcdb6 | 10660 | if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then |
ab9b9eab VZ |
10661 | # Didn't find X anywhere. Cache the known absence of X. |
10662 | ac_cv_have_x="have_x=no" | |
10663 | else | |
10664 | # Record where we found X for the cache. | |
10665 | ac_cv_have_x="have_x=yes \ | |
10666 | ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries" | |
10667 | fi | |
10668 | fi | |
10f2d63a | 10669 | fi |
ab9b9eab VZ |
10670 | eval "$ac_cv_have_x" |
10671 | fi # $with_x != no | |
10f2d63a | 10672 | |
ab9b9eab | 10673 | if test "$have_x" != yes; then |
698dcdb6 | 10674 | echo "$ac_t""$have_x" 1>&6 |
ab9b9eab VZ |
10675 | no_x=yes |
10676 | else | |
10677 | # If each of the values was on the command line, it overrides each guess. | |
10678 | test "x$x_includes" = xNONE && x_includes=$ac_x_includes | |
10679 | test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries | |
10680 | # Update the cache value to reflect the command line values. | |
10681 | ac_cv_have_x="have_x=yes \ | |
10682 | ac_x_includes=$x_includes ac_x_libraries=$x_libraries" | |
698dcdb6 | 10683 | echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6 |
ab9b9eab | 10684 | fi |
10f2d63a | 10685 | |
ab9b9eab VZ |
10686 | if test "$no_x" = yes; then |
10687 | # Not all programs may use this symbol, but it does not hurt to define it. | |
698dcdb6 | 10688 | cat >> confdefs.h <<\EOF |
ab9b9eab VZ |
10689 | #define X_DISPLAY_MISSING 1 |
10690 | EOF | |
10f2d63a | 10691 | |
ab9b9eab VZ |
10692 | X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= |
10693 | else | |
10694 | if test -n "$x_includes"; then | |
10695 | X_CFLAGS="$X_CFLAGS -I$x_includes" | |
10f2d63a VZ |
10696 | fi |
10697 | ||
ab9b9eab VZ |
10698 | # It would also be nice to do this for all -L options, not just this one. |
10699 | if test -n "$x_libraries"; then | |
10700 | X_LIBS="$X_LIBS -L$x_libraries" | |
10701 | # For Solaris; some versions of Sun CC require a space after -R and | |
10702 | # others require no space. Words are not sufficient . . . . | |
698dcdb6 | 10703 | case "`(uname -sr) 2>/dev/null`" in |
ab9b9eab | 10704 | "SunOS 5"*) |
698dcdb6 | 10705 | echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6 |
d6853540 | 10706 | echo "configure:10707: checking whether -R must be followed by a space" >&5 |
698dcdb6 VZ |
10707 | ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries" |
10708 | cat > conftest.$ac_ext <<EOF | |
d6853540 | 10709 | #line 10710 "configure" |
ab9b9eab | 10710 | #include "confdefs.h" |
10f2d63a | 10711 | |
698dcdb6 | 10712 | int main() { |
788deba1 | 10713 | |
698dcdb6 VZ |
10714 | ; return 0; } |
10715 | EOF | |
d6853540 | 10716 | if { (eval echo configure:10717: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 | 10717 | rm -rf conftest* |
ab9b9eab VZ |
10718 | ac_R_nospace=yes |
10719 | else | |
698dcdb6 VZ |
10720 | echo "configure: failed program was:" >&5 |
10721 | cat conftest.$ac_ext >&5 | |
10722 | rm -rf conftest* | |
10723 | ac_R_nospace=no | |
ab9b9eab | 10724 | fi |
698dcdb6 | 10725 | rm -f conftest* |
ab9b9eab | 10726 | if test $ac_R_nospace = yes; then |
698dcdb6 | 10727 | echo "$ac_t""no" 1>&6 |
ab9b9eab VZ |
10728 | X_LIBS="$X_LIBS -R$x_libraries" |
10729 | else | |
10730 | LIBS="$ac_xsave_LIBS -R $x_libraries" | |
698dcdb6 | 10731 | cat > conftest.$ac_ext <<EOF |
d6853540 | 10732 | #line 10733 "configure" |
ab9b9eab | 10733 | #include "confdefs.h" |
788deba1 | 10734 | |
698dcdb6 | 10735 | int main() { |
ab9b9eab | 10736 | |
698dcdb6 VZ |
10737 | ; return 0; } |
10738 | EOF | |
d6853540 | 10739 | if { (eval echo configure:10740: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 | 10740 | rm -rf conftest* |
ab9b9eab VZ |
10741 | ac_R_space=yes |
10742 | else | |
698dcdb6 VZ |
10743 | echo "configure: failed program was:" >&5 |
10744 | cat conftest.$ac_ext >&5 | |
10745 | rm -rf conftest* | |
10746 | ac_R_space=no | |
ab9b9eab | 10747 | fi |
698dcdb6 | 10748 | rm -f conftest* |
ab9b9eab | 10749 | if test $ac_R_space = yes; then |
698dcdb6 | 10750 | echo "$ac_t""yes" 1>&6 |
ab9b9eab VZ |
10751 | X_LIBS="$X_LIBS -R $x_libraries" |
10752 | else | |
698dcdb6 | 10753 | echo "$ac_t""neither works" 1>&6 |
ab9b9eab VZ |
10754 | fi |
10755 | fi | |
698dcdb6 | 10756 | LIBS="$ac_xsave_LIBS" |
ab9b9eab VZ |
10757 | esac |
10758 | fi | |
10759 | ||
10760 | # Check for system-dependent libraries X programs must link with. | |
10761 | # Do this before checking for the system-independent R6 libraries | |
10762 | # (-lICE), since we may need -lsocket or whatever for X linking. | |
10763 | ||
10764 | if test "$ISC" = yes; then | |
10765 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" | |
10766 | else | |
698dcdb6 VZ |
10767 | # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X |
10768 | # libraries were built with DECnet support. And karl@cs.umb.edu says | |
ab9b9eab | 10769 | # the Alpha needs dnet_stub (dnet does not exist). |
698dcdb6 | 10770 | echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6 |
d6853540 | 10771 | echo "configure:10772: checking for dnet_ntoa in -ldnet" >&5 |
698dcdb6 VZ |
10772 | ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'` |
10773 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
10774 | echo $ac_n "(cached) $ac_c" 1>&6 | |
ab9b9eab | 10775 | else |
698dcdb6 | 10776 | ac_save_LIBS="$LIBS" |
ab9b9eab | 10777 | LIBS="-ldnet $LIBS" |
698dcdb6 | 10778 | cat > conftest.$ac_ext <<EOF |
d6853540 | 10779 | #line 10780 "configure" |
ab9b9eab VZ |
10780 | #include "confdefs.h" |
10781 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10782 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
10783 | builtin and then its argument prototype would still apply. */ |
10784 | char dnet_ntoa(); | |
10785 | ||
10786 | int main() { | |
10787 | dnet_ntoa() | |
10788 | ; return 0; } | |
10789 | EOF | |
d6853540 | 10790 | if { (eval echo configure:10791: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
10791 | rm -rf conftest* |
10792 | eval "ac_cv_lib_$ac_lib_var=yes" | |
10793 | else | |
10794 | echo "configure: failed program was:" >&5 | |
10795 | cat conftest.$ac_ext >&5 | |
10796 | rm -rf conftest* | |
10797 | eval "ac_cv_lib_$ac_lib_var=no" | |
10798 | fi | |
10799 | rm -f conftest* | |
10800 | LIBS="$ac_save_LIBS" | |
10801 | ||
10802 | fi | |
10803 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
10804 | echo "$ac_t""yes" 1>&6 | |
ab9b9eab | 10805 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" |
698dcdb6 VZ |
10806 | else |
10807 | echo "$ac_t""no" 1>&6 | |
ab9b9eab VZ |
10808 | fi |
10809 | ||
10810 | if test $ac_cv_lib_dnet_dnet_ntoa = no; then | |
698dcdb6 | 10811 | echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6 |
d6853540 | 10812 | echo "configure:10813: checking for dnet_ntoa in -ldnet_stub" >&5 |
698dcdb6 VZ |
10813 | ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'` |
10814 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
10815 | echo $ac_n "(cached) $ac_c" 1>&6 | |
ab9b9eab | 10816 | else |
698dcdb6 | 10817 | ac_save_LIBS="$LIBS" |
ab9b9eab | 10818 | LIBS="-ldnet_stub $LIBS" |
698dcdb6 | 10819 | cat > conftest.$ac_ext <<EOF |
d6853540 | 10820 | #line 10821 "configure" |
ab9b9eab VZ |
10821 | #include "confdefs.h" |
10822 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10823 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
10824 | builtin and then its argument prototype would still apply. */ |
10825 | char dnet_ntoa(); | |
10826 | ||
10827 | int main() { | |
10828 | dnet_ntoa() | |
10829 | ; return 0; } | |
10830 | EOF | |
d6853540 | 10831 | if { (eval echo configure:10832: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
10832 | rm -rf conftest* |
10833 | eval "ac_cv_lib_$ac_lib_var=yes" | |
10834 | else | |
10835 | echo "configure: failed program was:" >&5 | |
10836 | cat conftest.$ac_ext >&5 | |
10837 | rm -rf conftest* | |
10838 | eval "ac_cv_lib_$ac_lib_var=no" | |
10839 | fi | |
10840 | rm -f conftest* | |
10841 | LIBS="$ac_save_LIBS" | |
10842 | ||
10843 | fi | |
10844 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
10845 | echo "$ac_t""yes" 1>&6 | |
ab9b9eab | 10846 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" |
698dcdb6 VZ |
10847 | else |
10848 | echo "$ac_t""no" 1>&6 | |
ab9b9eab VZ |
10849 | fi |
10850 | ||
10851 | fi | |
10852 | ||
10853 | # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT, | |
10854 | # to get the SysV transport functions. | |
698dcdb6 | 10855 | # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4) |
ab9b9eab VZ |
10856 | # needs -lnsl. |
10857 | # The nsl library prevents programs from opening the X display | |
698dcdb6 VZ |
10858 | # on Irix 5.2, according to dickey@clark.net. |
10859 | echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6 | |
d6853540 | 10860 | echo "configure:10861: checking for gethostbyname" >&5 |
698dcdb6 VZ |
10861 | if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then |
10862 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10863 | else | |
10864 | cat > conftest.$ac_ext <<EOF | |
d6853540 | 10865 | #line 10866 "configure" |
ab9b9eab VZ |
10866 | #include "confdefs.h" |
10867 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 10868 | which can conflict with char gethostbyname(); below. */ |
ab9b9eab VZ |
10869 | #include <assert.h> |
10870 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10871 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
10872 | builtin and then its argument prototype would still apply. */ |
10873 | char gethostbyname(); | |
10874 | ||
10875 | int main() { | |
ab9b9eab VZ |
10876 | |
10877 | /* The GNU C library defines this for functions which it implements | |
10878 | to always fail with ENOSYS. Some functions are actually named | |
10879 | something starting with __ and the normal name is an alias. */ | |
10880 | #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname) | |
10881 | choke me | |
10882 | #else | |
698dcdb6 | 10883 | gethostbyname(); |
ab9b9eab VZ |
10884 | #endif |
10885 | ||
698dcdb6 VZ |
10886 | ; return 0; } |
10887 | EOF | |
d6853540 | 10888 | if { (eval echo configure:10889: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
10889 | rm -rf conftest* |
10890 | eval "ac_cv_func_gethostbyname=yes" | |
10891 | else | |
10892 | echo "configure: failed program was:" >&5 | |
10893 | cat conftest.$ac_ext >&5 | |
10894 | rm -rf conftest* | |
10895 | eval "ac_cv_func_gethostbyname=no" | |
10896 | fi | |
10897 | rm -f conftest* | |
10898 | fi | |
10899 | ||
10900 | if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then | |
10901 | echo "$ac_t""yes" 1>&6 | |
10902 | : | |
10903 | else | |
10904 | echo "$ac_t""no" 1>&6 | |
10905 | fi | |
ab9b9eab VZ |
10906 | |
10907 | if test $ac_cv_func_gethostbyname = no; then | |
698dcdb6 | 10908 | echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6 |
d6853540 | 10909 | echo "configure:10910: checking for gethostbyname in -lnsl" >&5 |
698dcdb6 VZ |
10910 | ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'` |
10911 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
10912 | echo $ac_n "(cached) $ac_c" 1>&6 | |
ab9b9eab | 10913 | else |
698dcdb6 | 10914 | ac_save_LIBS="$LIBS" |
ab9b9eab | 10915 | LIBS="-lnsl $LIBS" |
698dcdb6 | 10916 | cat > conftest.$ac_ext <<EOF |
d6853540 | 10917 | #line 10918 "configure" |
ab9b9eab VZ |
10918 | #include "confdefs.h" |
10919 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10920 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
10921 | builtin and then its argument prototype would still apply. */ |
10922 | char gethostbyname(); | |
6232543b | 10923 | |
698dcdb6 VZ |
10924 | int main() { |
10925 | gethostbyname() | |
10926 | ; return 0; } | |
10927 | EOF | |
d6853540 | 10928 | if { (eval echo configure:10929: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
10929 | rm -rf conftest* |
10930 | eval "ac_cv_lib_$ac_lib_var=yes" | |
703e0a69 | 10931 | else |
698dcdb6 VZ |
10932 | echo "configure: failed program was:" >&5 |
10933 | cat conftest.$ac_ext >&5 | |
10934 | rm -rf conftest* | |
10935 | eval "ac_cv_lib_$ac_lib_var=no" | |
10936 | fi | |
10937 | rm -f conftest* | |
10938 | LIBS="$ac_save_LIBS" | |
1e487827 | 10939 | |
698dcdb6 VZ |
10940 | fi |
10941 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
10942 | echo "$ac_t""yes" 1>&6 | |
10943 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" | |
10944 | else | |
10945 | echo "$ac_t""no" 1>&6 | |
ab9b9eab VZ |
10946 | fi |
10947 | ||
10948 | fi | |
10949 | ||
10950 | # lieder@skyler.mavd.honeywell.com says without -lsocket, | |
10951 | # socket/setsockopt and other routines are undefined under SCO ODT | |
10952 | # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary | |
698dcdb6 VZ |
10953 | # on later versions), says simon@lia.di.epfl.ch: it contains |
10954 | # gethostby* variants that don't use the nameserver (or something). | |
10955 | # -lsocket must be given before -lnsl if both are needed. | |
10956 | # We assume that if connect needs -lnsl, so does gethostbyname. | |
10957 | echo $ac_n "checking for connect""... $ac_c" 1>&6 | |
d6853540 | 10958 | echo "configure:10959: checking for connect" >&5 |
698dcdb6 VZ |
10959 | if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then |
10960 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10961 | else | |
10962 | cat > conftest.$ac_ext <<EOF | |
d6853540 | 10963 | #line 10964 "configure" |
ab9b9eab VZ |
10964 | #include "confdefs.h" |
10965 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 10966 | which can conflict with char connect(); below. */ |
ab9b9eab VZ |
10967 | #include <assert.h> |
10968 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10969 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
10970 | builtin and then its argument prototype would still apply. */ |
10971 | char connect(); | |
10972 | ||
10973 | int main() { | |
ab9b9eab VZ |
10974 | |
10975 | /* The GNU C library defines this for functions which it implements | |
10976 | to always fail with ENOSYS. Some functions are actually named | |
10977 | something starting with __ and the normal name is an alias. */ | |
10978 | #if defined (__stub_connect) || defined (__stub___connect) | |
10979 | choke me | |
10980 | #else | |
698dcdb6 | 10981 | connect(); |
ab9b9eab VZ |
10982 | #endif |
10983 | ||
698dcdb6 VZ |
10984 | ; return 0; } |
10985 | EOF | |
d6853540 | 10986 | if { (eval echo configure:10987: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
10987 | rm -rf conftest* |
10988 | eval "ac_cv_func_connect=yes" | |
10989 | else | |
10990 | echo "configure: failed program was:" >&5 | |
10991 | cat conftest.$ac_ext >&5 | |
10992 | rm -rf conftest* | |
10993 | eval "ac_cv_func_connect=no" | |
10994 | fi | |
10995 | rm -f conftest* | |
10996 | fi | |
10997 | ||
10998 | if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then | |
10999 | echo "$ac_t""yes" 1>&6 | |
11000 | : | |
11001 | else | |
11002 | echo "$ac_t""no" 1>&6 | |
11003 | fi | |
ab9b9eab VZ |
11004 | |
11005 | if test $ac_cv_func_connect = no; then | |
698dcdb6 | 11006 | echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6 |
d6853540 | 11007 | echo "configure:11008: checking for connect in -lsocket" >&5 |
698dcdb6 VZ |
11008 | ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'` |
11009 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
11010 | echo $ac_n "(cached) $ac_c" 1>&6 | |
ab9b9eab | 11011 | else |
698dcdb6 | 11012 | ac_save_LIBS="$LIBS" |
ab9b9eab | 11013 | LIBS="-lsocket $X_EXTRA_LIBS $LIBS" |
698dcdb6 | 11014 | cat > conftest.$ac_ext <<EOF |
d6853540 | 11015 | #line 11016 "configure" |
ab9b9eab VZ |
11016 | #include "confdefs.h" |
11017 | /* Override any gcc2 internal prototype to avoid an error. */ | |
11018 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
11019 | builtin and then its argument prototype would still apply. */ |
11020 | char connect(); | |
11021 | ||
11022 | int main() { | |
11023 | connect() | |
11024 | ; return 0; } | |
11025 | EOF | |
d6853540 | 11026 | if { (eval echo configure:11027: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
11027 | rm -rf conftest* |
11028 | eval "ac_cv_lib_$ac_lib_var=yes" | |
11029 | else | |
11030 | echo "configure: failed program was:" >&5 | |
11031 | cat conftest.$ac_ext >&5 | |
11032 | rm -rf conftest* | |
11033 | eval "ac_cv_lib_$ac_lib_var=no" | |
11034 | fi | |
11035 | rm -f conftest* | |
11036 | LIBS="$ac_save_LIBS" | |
11037 | ||
11038 | fi | |
11039 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
11040 | echo "$ac_t""yes" 1>&6 | |
ab9b9eab | 11041 | X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" |
698dcdb6 VZ |
11042 | else |
11043 | echo "$ac_t""no" 1>&6 | |
ab9b9eab VZ |
11044 | fi |
11045 | ||
11046 | fi | |
11047 | ||
698dcdb6 VZ |
11048 | # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX. |
11049 | echo $ac_n "checking for remove""... $ac_c" 1>&6 | |
d6853540 | 11050 | echo "configure:11051: checking for remove" >&5 |
698dcdb6 VZ |
11051 | if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then |
11052 | echo $ac_n "(cached) $ac_c" 1>&6 | |
ab9b9eab | 11053 | else |
698dcdb6 | 11054 | cat > conftest.$ac_ext <<EOF |
d6853540 | 11055 | #line 11056 "configure" |
ab9b9eab VZ |
11056 | #include "confdefs.h" |
11057 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 11058 | which can conflict with char remove(); below. */ |
ab9b9eab VZ |
11059 | #include <assert.h> |
11060 | /* Override any gcc2 internal prototype to avoid an error. */ | |
11061 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
11062 | builtin and then its argument prototype would still apply. */ |
11063 | char remove(); | |
11064 | ||
11065 | int main() { | |
ab9b9eab VZ |
11066 | |
11067 | /* The GNU C library defines this for functions which it implements | |
11068 | to always fail with ENOSYS. Some functions are actually named | |
11069 | something starting with __ and the normal name is an alias. */ | |
11070 | #if defined (__stub_remove) || defined (__stub___remove) | |
11071 | choke me | |
11072 | #else | |
698dcdb6 | 11073 | remove(); |
ab9b9eab VZ |
11074 | #endif |
11075 | ||
698dcdb6 VZ |
11076 | ; return 0; } |
11077 | EOF | |
d6853540 | 11078 | if { (eval echo configure:11079: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
11079 | rm -rf conftest* |
11080 | eval "ac_cv_func_remove=yes" | |
11081 | else | |
11082 | echo "configure: failed program was:" >&5 | |
11083 | cat conftest.$ac_ext >&5 | |
11084 | rm -rf conftest* | |
11085 | eval "ac_cv_func_remove=no" | |
11086 | fi | |
11087 | rm -f conftest* | |
11088 | fi | |
11089 | ||
11090 | if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then | |
11091 | echo "$ac_t""yes" 1>&6 | |
11092 | : | |
11093 | else | |
11094 | echo "$ac_t""no" 1>&6 | |
11095 | fi | |
ab9b9eab VZ |
11096 | |
11097 | if test $ac_cv_func_remove = no; then | |
698dcdb6 | 11098 | echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6 |
d6853540 | 11099 | echo "configure:11100: checking for remove in -lposix" >&5 |
698dcdb6 VZ |
11100 | ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'` |
11101 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
11102 | echo $ac_n "(cached) $ac_c" 1>&6 | |
ab9b9eab | 11103 | else |
698dcdb6 | 11104 | ac_save_LIBS="$LIBS" |
ab9b9eab | 11105 | LIBS="-lposix $LIBS" |
698dcdb6 | 11106 | cat > conftest.$ac_ext <<EOF |
d6853540 | 11107 | #line 11108 "configure" |
ab9b9eab VZ |
11108 | #include "confdefs.h" |
11109 | /* Override any gcc2 internal prototype to avoid an error. */ | |
11110 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
11111 | builtin and then its argument prototype would still apply. */ |
11112 | char remove(); | |
11113 | ||
11114 | int main() { | |
11115 | remove() | |
11116 | ; return 0; } | |
11117 | EOF | |
d6853540 | 11118 | if { (eval echo configure:11119: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
11119 | rm -rf conftest* |
11120 | eval "ac_cv_lib_$ac_lib_var=yes" | |
11121 | else | |
11122 | echo "configure: failed program was:" >&5 | |
11123 | cat conftest.$ac_ext >&5 | |
11124 | rm -rf conftest* | |
11125 | eval "ac_cv_lib_$ac_lib_var=no" | |
11126 | fi | |
11127 | rm -f conftest* | |
11128 | LIBS="$ac_save_LIBS" | |
11129 | ||
11130 | fi | |
11131 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
11132 | echo "$ac_t""yes" 1>&6 | |
ab9b9eab | 11133 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" |
698dcdb6 VZ |
11134 | else |
11135 | echo "$ac_t""no" 1>&6 | |
ab9b9eab VZ |
11136 | fi |
11137 | ||
11138 | fi | |
11139 | ||
11140 | # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. | |
698dcdb6 | 11141 | echo $ac_n "checking for shmat""... $ac_c" 1>&6 |
d6853540 | 11142 | echo "configure:11143: checking for shmat" >&5 |
698dcdb6 VZ |
11143 | if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then |
11144 | echo $ac_n "(cached) $ac_c" 1>&6 | |
ab9b9eab | 11145 | else |
698dcdb6 | 11146 | cat > conftest.$ac_ext <<EOF |
d6853540 | 11147 | #line 11148 "configure" |
ab9b9eab VZ |
11148 | #include "confdefs.h" |
11149 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 11150 | which can conflict with char shmat(); below. */ |
ab9b9eab VZ |
11151 | #include <assert.h> |
11152 | /* Override any gcc2 internal prototype to avoid an error. */ | |
11153 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
11154 | builtin and then its argument prototype would still apply. */ |
11155 | char shmat(); | |
11156 | ||
11157 | int main() { | |
ab9b9eab VZ |
11158 | |
11159 | /* The GNU C library defines this for functions which it implements | |
11160 | to always fail with ENOSYS. Some functions are actually named | |
11161 | something starting with __ and the normal name is an alias. */ | |
11162 | #if defined (__stub_shmat) || defined (__stub___shmat) | |
11163 | choke me | |
11164 | #else | |
698dcdb6 | 11165 | shmat(); |
ab9b9eab VZ |
11166 | #endif |
11167 | ||
698dcdb6 VZ |
11168 | ; return 0; } |
11169 | EOF | |
d6853540 | 11170 | if { (eval echo configure:11171: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
11171 | rm -rf conftest* |
11172 | eval "ac_cv_func_shmat=yes" | |
11173 | else | |
11174 | echo "configure: failed program was:" >&5 | |
11175 | cat conftest.$ac_ext >&5 | |
11176 | rm -rf conftest* | |
11177 | eval "ac_cv_func_shmat=no" | |
11178 | fi | |
11179 | rm -f conftest* | |
11180 | fi | |
11181 | ||
11182 | if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then | |
11183 | echo "$ac_t""yes" 1>&6 | |
11184 | : | |
11185 | else | |
11186 | echo "$ac_t""no" 1>&6 | |
11187 | fi | |
ab9b9eab VZ |
11188 | |
11189 | if test $ac_cv_func_shmat = no; then | |
698dcdb6 | 11190 | echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6 |
d6853540 | 11191 | echo "configure:11192: checking for shmat in -lipc" >&5 |
698dcdb6 VZ |
11192 | ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'` |
11193 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
11194 | echo $ac_n "(cached) $ac_c" 1>&6 | |
ab9b9eab | 11195 | else |
698dcdb6 | 11196 | ac_save_LIBS="$LIBS" |
ab9b9eab | 11197 | LIBS="-lipc $LIBS" |
698dcdb6 | 11198 | cat > conftest.$ac_ext <<EOF |
d6853540 | 11199 | #line 11200 "configure" |
ab9b9eab VZ |
11200 | #include "confdefs.h" |
11201 | /* Override any gcc2 internal prototype to avoid an error. */ | |
11202 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
11203 | builtin and then its argument prototype would still apply. */ |
11204 | char shmat(); | |
11205 | ||
11206 | int main() { | |
11207 | shmat() | |
11208 | ; return 0; } | |
11209 | EOF | |
d6853540 | 11210 | if { (eval echo configure:11211: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
11211 | rm -rf conftest* |
11212 | eval "ac_cv_lib_$ac_lib_var=yes" | |
11213 | else | |
11214 | echo "configure: failed program was:" >&5 | |
11215 | cat conftest.$ac_ext >&5 | |
11216 | rm -rf conftest* | |
11217 | eval "ac_cv_lib_$ac_lib_var=no" | |
11218 | fi | |
11219 | rm -f conftest* | |
11220 | LIBS="$ac_save_LIBS" | |
11221 | ||
11222 | fi | |
11223 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
11224 | echo "$ac_t""yes" 1>&6 | |
ab9b9eab | 11225 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" |
698dcdb6 VZ |
11226 | else |
11227 | echo "$ac_t""no" 1>&6 | |
ab9b9eab VZ |
11228 | fi |
11229 | ||
11230 | fi | |
11231 | fi | |
11232 | ||
11233 | # Check for libraries that X11R6 Xt/Xaw programs need. | |
698dcdb6 | 11234 | ac_save_LDFLAGS="$LDFLAGS" |
ab9b9eab VZ |
11235 | test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" |
11236 | # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to | |
11237 | # check for ICE first), but we must link in the order -lSM -lICE or | |
11238 | # we get undefined symbols. So assume we have SM if we have ICE. | |
11239 | # These have to be linked with before -lX11, unlike the other | |
11240 | # libraries we check for below, so use a different variable. | |
698dcdb6 VZ |
11241 | # --interran@uluru.Stanford.EDU, kb@cs.umb.edu. |
11242 | echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6 | |
d6853540 | 11243 | echo "configure:11244: checking for IceConnectionNumber in -lICE" >&5 |
698dcdb6 VZ |
11244 | ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'` |
11245 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
11246 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11247 | else | |
11248 | ac_save_LIBS="$LIBS" | |
ab9b9eab | 11249 | LIBS="-lICE $X_EXTRA_LIBS $LIBS" |
698dcdb6 | 11250 | cat > conftest.$ac_ext <<EOF |
d6853540 | 11251 | #line 11252 "configure" |
ab9b9eab VZ |
11252 | #include "confdefs.h" |
11253 | /* Override any gcc2 internal prototype to avoid an error. */ | |
11254 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
11255 | builtin and then its argument prototype would still apply. */ |
11256 | char IceConnectionNumber(); | |
11257 | ||
11258 | int main() { | |
11259 | IceConnectionNumber() | |
11260 | ; return 0; } | |
11261 | EOF | |
d6853540 | 11262 | if { (eval echo configure:11263: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
11263 | rm -rf conftest* |
11264 | eval "ac_cv_lib_$ac_lib_var=yes" | |
11265 | else | |
11266 | echo "configure: failed program was:" >&5 | |
11267 | cat conftest.$ac_ext >&5 | |
11268 | rm -rf conftest* | |
11269 | eval "ac_cv_lib_$ac_lib_var=no" | |
11270 | fi | |
11271 | rm -f conftest* | |
11272 | LIBS="$ac_save_LIBS" | |
11273 | ||
11274 | fi | |
11275 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
11276 | echo "$ac_t""yes" 1>&6 | |
ab9b9eab | 11277 | X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" |
698dcdb6 VZ |
11278 | else |
11279 | echo "$ac_t""no" 1>&6 | |
ab9b9eab VZ |
11280 | fi |
11281 | ||
698dcdb6 | 11282 | LDFLAGS="$ac_save_LDFLAGS" |
ab9b9eab VZ |
11283 | |
11284 | fi | |
11285 | ||
11286 | ||
1e6feb95 VZ |
11287 | if test "$no_x" = "yes"; then |
11288 | { echo "configure: error: X11 not found" 1>&2; exit 1; } | |
11289 | fi | |
ab9b9eab | 11290 | |
1e6feb95 VZ |
11291 | GUI_TK_LIBRARY="$X_LIBS" |
11292 | TOOLKIT_INCLUDE="$X_CFLAGS" | |
1e6feb95 | 11293 | AFMINSTALL=afminstall |
1e6feb95 | 11294 | COMPILED_X_PROGRAM=0 |
cd6d6d5b | 11295 | |
1e6feb95 | 11296 | echo $ac_n "checking for Motif/Lesstif headers""... $ac_c" 1>&6 |
d6853540 | 11297 | echo "configure:11298: checking for Motif/Lesstif headers" >&5 |
1e6feb95 | 11298 | |
ab9b9eab VZ |
11299 | ac_find_includes= |
11300 | for ac_dir in $SEARCH_INCLUDE; | |
11301 | do | |
11302 | if test -f "$ac_dir/Xm/Xm.h"; then | |
11303 | ac_find_includes=$ac_dir | |
11304 | break | |
11305 | fi | |
11306 | done | |
11307 | ||
1e6feb95 VZ |
11308 | if test "$ac_find_includes" != "" ; then |
11309 | echo "$ac_t""found $ac_find_includes" 1>&6 | |
11310 | else | |
11311 | cat > conftest.$ac_ext <<EOF | |
d6853540 | 11312 | #line 11313 "configure" |
cd6d6d5b VZ |
11313 | #include "confdefs.h" |
11314 | ||
1e6feb95 VZ |
11315 | #include <Xm/Xm.h> |
11316 | ||
698dcdb6 | 11317 | int main() { |
cd6d6d5b | 11318 | |
1e6feb95 | 11319 | int version; |
1e6feb95 VZ |
11320 | version = xmUseVersion; |
11321 | ||
698dcdb6 VZ |
11322 | ; return 0; } |
11323 | EOF | |
d6853540 | 11324 | if { (eval echo configure:11325: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 VZ |
11325 | rm -rf conftest* |
11326 | ||
1e6feb95 VZ |
11327 | echo "$ac_t""found in default search path" 1>&6 |
11328 | COMPILED_X_PROGRAM=1 | |
11329 | ||
cd6d6d5b | 11330 | else |
698dcdb6 VZ |
11331 | echo "configure: failed program was:" >&5 |
11332 | cat conftest.$ac_ext >&5 | |
11333 | rm -rf conftest* | |
11334 | ||
1e6feb95 VZ |
11335 | echo "$ac_t""no" 1>&6 |
11336 | { echo "configure: error: please set CFLAGS to contain the location of Xm/Xm.h" 1>&2; exit 1; } | |
11337 | ||
698dcdb6 | 11338 | |
cd6d6d5b | 11339 | fi |
698dcdb6 | 11340 | rm -f conftest* |
1e6feb95 | 11341 | fi |
ab9b9eab | 11342 | |
1e6feb95 VZ |
11343 | if test "$COMPILED_X_PROGRAM" = 0; then |
11344 | echo $ac_n "checking for Motif/Lesstif library""... $ac_c" 1>&6 | |
d6853540 | 11345 | echo "configure:11346: checking for Motif/Lesstif library" >&5 |
1e6feb95 | 11346 | |
ab9b9eab VZ |
11347 | ac_find_libraries= |
11348 | for ac_dir in $SEARCH_LIB; | |
11349 | do | |
f11bdd03 | 11350 | for ac_extension in a so sl dylib; do |
ab9b9eab VZ |
11351 | if test -f "$ac_dir/libXm.$ac_extension"; then |
11352 | ac_find_libraries=$ac_dir | |
11353 | break 2 | |
11354 | fi | |
11355 | done | |
11356 | done | |
11357 | ||
1e6feb95 VZ |
11358 | if test "$ac_find_libraries" != "" ; then |
11359 | ||
ab9b9eab VZ |
11360 | ac_path_to_include=$ac_find_includes |
11361 | echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null | |
11362 | result=$? | |
11363 | if test $result = 0; then | |
11364 | ac_path_to_include="" | |
11365 | else | |
11366 | ac_path_to_include="-I$ac_find_includes" | |
11367 | fi | |
11368 | ||
1e6feb95 | 11369 | |
ab9b9eab VZ |
11370 | echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null |
11371 | result=$? | |
11372 | if test $result = 0; then | |
11373 | ac_path_to_link="" | |
11374 | else | |
11375 | ac_path_to_link="-L$ac_find_libraries" | |
11376 | fi | |
11377 | ||
698dcdb6 | 11378 | |
1e6feb95 VZ |
11379 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY $ac_path_to_link" |
11380 | TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE $ac_path_to_include" | |
11381 | echo "$ac_t""found at $ac_find_libraries" 1>&6 | |
11382 | else | |
11383 | cat > conftest.$ac_ext <<EOF | |
d6853540 | 11384 | #line 11385 "configure" |
cd6d6d5b | 11385 | #include "confdefs.h" |
ab9b9eab | 11386 | |
1e6feb95 VZ |
11387 | #include <Xm/Xm.h> |
11388 | ||
698dcdb6 | 11389 | int main() { |
ab9b9eab | 11390 | |
1e6feb95 | 11391 | int version; |
1e6feb95 VZ |
11392 | version = xmUseVersion; |
11393 | ||
698dcdb6 VZ |
11394 | ; return 0; } |
11395 | EOF | |
d6853540 | 11396 | if { (eval echo configure:11397: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 VZ |
11397 | rm -rf conftest* |
11398 | ||
1e6feb95 VZ |
11399 | echo "$ac_t""found in default search path" 1>&6 |
11400 | COMPILED_X_PROGRAM=1 | |
11401 | ||
cd6d6d5b | 11402 | else |
698dcdb6 VZ |
11403 | echo "configure: failed program was:" >&5 |
11404 | cat conftest.$ac_ext >&5 | |
11405 | rm -rf conftest* | |
11406 | ||
1e6feb95 VZ |
11407 | echo "$ac_t""no" 1>&6 |
11408 | { echo "configure: error: please set LDFLAGS to contain the location of libXm" 1>&2; exit 1; } | |
11409 | ||
698dcdb6 | 11410 | |
cd6d6d5b | 11411 | fi |
698dcdb6 | 11412 | rm -f conftest* |
1e6feb95 | 11413 | fi |
cd6d6d5b | 11414 | fi |
ab9b9eab | 11415 | |
3a922bb4 | 11416 | xpm_link="" |
1e6feb95 | 11417 | echo $ac_n "checking for Xpm library""... $ac_c" 1>&6 |
d6853540 | 11418 | echo "configure:11419: checking for Xpm library" >&5 |
1e6feb95 | 11419 | |
ab9b9eab VZ |
11420 | ac_find_libraries= |
11421 | for ac_dir in $SEARCH_LIB; | |
11422 | do | |
f11bdd03 | 11423 | for ac_extension in a so sl dylib; do |
ab9b9eab VZ |
11424 | if test -f "$ac_dir/libXpm.$ac_extension"; then |
11425 | ac_find_libraries=$ac_dir | |
11426 | break 2 | |
11427 | fi | |
11428 | done | |
11429 | done | |
11430 | ||
1e6feb95 VZ |
11431 | if test "$ac_find_libraries" != "" ; then |
11432 | ||
ab9b9eab VZ |
11433 | echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null |
11434 | result=$? | |
11435 | if test $result = 0; then | |
11436 | ac_path_to_link="" | |
11437 | else | |
11438 | ac_path_to_link="-L$ac_find_libraries" | |
11439 | fi | |
11440 | ||
1e6feb95 | 11441 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY $ac_path_to_link" |
3a922bb4 | 11442 | xpm_link="-lXpm " |
1e6feb95 | 11443 | cat >> confdefs.h <<\EOF |
ab9b9eab VZ |
11444 | #define wxHAVE_LIB_XPM 1 |
11445 | EOF | |
11446 | ||
1e6feb95 VZ |
11447 | echo "$ac_t""found at $ac_find_libraries" 1>&6 |
11448 | else | |
11449 | cat > conftest.$ac_ext <<EOF | |
d6853540 | 11450 | #line 11451 "configure" |
cd6d6d5b VZ |
11451 | #include "confdefs.h" |
11452 | ||
1e6feb95 VZ |
11453 | #include <X11/xpm.h> |
11454 | ||
698dcdb6 | 11455 | int main() { |
cd6d6d5b | 11456 | |
1e6feb95 | 11457 | int version; |
1e6feb95 VZ |
11458 | version = XpmLibraryVersion(); |
11459 | ||
698dcdb6 VZ |
11460 | ; return 0; } |
11461 | EOF | |
d6853540 | 11462 | if { (eval echo configure:11463: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 VZ |
11463 | rm -rf conftest* |
11464 | ||
3a922bb4 RL |
11465 | xpm_link="-lXpm " |
11466 | cat >> confdefs.h <<\EOF | |
3ace2e6d SN |
11467 | #define wxHAVE_LIB_XPM 1 |
11468 | EOF | |
11469 | ||
1e6feb95 VZ |
11470 | echo "$ac_t""found in default search path" 1>&6 |
11471 | COMPILED_X_PROGRAM=0 | |
11472 | ||
cd6d6d5b | 11473 | else |
698dcdb6 VZ |
11474 | echo "configure: failed program was:" >&5 |
11475 | cat conftest.$ac_ext >&5 | |
11476 | rm -rf conftest* | |
11477 | ||
1e6feb95 VZ |
11478 | echo "$ac_t""no" 1>&6 |
11479 | echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2 | |
11480 | ||
698dcdb6 | 11481 | |
cd6d6d5b | 11482 | fi |
698dcdb6 | 11483 | rm -f conftest* |
1e6feb95 VZ |
11484 | fi |
11485 | ||
3a922bb4 | 11486 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXm $xpm_link -lXmu -lXext -lXt -lX11" |
334f0d2c | 11487 | TOOLKIT_VPATH="\${top_srcdir}/src/motif${PATH_IFS}\${top_srcdir}/src/motif/xmcombo" |
1e6feb95 VZ |
11488 | TOOLKIT=MOTIF |
11489 | GUIDIST=MOTIF_DIST | |
ab9b9eab VZ |
11490 | fi |
11491 | ||
683dccda GD |
11492 | if test "$wxUSE_MAC" = 1; then |
11493 | if test "$wxUSE_PRECOMP" = "yes"; then | |
11494 | CPPFLAGS="${CPPFLAGS} -cpp-precomp" | |
11495 | fi | |
13c0541d | 11496 | CPPFLAGS="${CPPFLAGS} -I/Developer/Headers/FlatCarbon -I\${top_srcdir}/src/mac/morefile" |
d08b457b GD |
11497 | CFLAGS="${CFLAGS} -fpascal-strings" |
11498 | CXXFLAGS="${CXXFLAGS} -fpascal-strings" | |
11499 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -DTARGET_CARBON" | |
11500 | ||
13c0541d | 11501 | TOOLKIT_VPATH="\${top_srcdir}/src/mac${PATH_IFS}\${top_srcdir}/src/mac/morefile" |
1e6feb95 | 11502 | TOOLKIT=MAC |
683dccda | 11503 | GUIDIST=MACX_DIST |
1e6feb95 | 11504 | fi |
10f2d63a | 11505 | |
1e6feb95 VZ |
11506 | if test "$wxUSE_PM" = 1; then |
11507 | TOOLKIT=PM | |
11508 | GUIDIST=GTK_DIST | |
11509 | fi | |
b4085ce6 | 11510 | |
3a922bb4 | 11511 | if test "$TOOLKIT" = "PM" ; then |
1e6feb95 | 11512 | TOOLKIT_DIR="os2" |
3a922bb4 RL |
11513 | else |
11514 | TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"` | |
1e6feb95 | 11515 | fi |
e07802fc | 11516 | |
3a922bb4 | 11517 | PORT_FILES="\${top_srcdir}/src/\$(TOOLKITDIR)/files.lst" |
1e6feb95 | 11518 | |
3a922bb4 RL |
11519 | if test "$wxUSE_UNIVERSAL" = "yes"; then |
11520 | ALL_OBJECTS="\$(GUI_LOWLEVEL_OBJS) \${UNIVOBJS}" | |
11521 | PORT_FILES="${PORT_FILES} \${top_srcdir}/src/univ/files.lst" | |
11522 | TOOLKIT_VPATH="\${top_srcdir}/src/univ${PATH_IFS}\${top_srcdir}/src/univ/themes${PATH_IFS}\${top_srcdir}/src/${TOOLKIT_DIR}" | |
11523 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__" | |
11524 | WIDGET_SET=univ | |
f6bcfd97 | 11525 | else |
3a922bb4 | 11526 | ALL_OBJECTS="\$(GUIOBJS)" |
1e6feb95 VZ |
11527 | fi |
11528 | ||
11529 | ALL_OBJECTS="${ALL_OBJECTS} \$(COMMONOBJS) \$(GENERICOBJS)" | |
11530 | ||
11531 | if test "$TOOLKIT" != "MSW"; then | |
11532 | ALL_OBJECTS="${ALL_OBJECTS} \$(UNIXOBJS)" | |
11533 | fi | |
11534 | ||
11535 | if test "$wxUSE_HTML" = "yes"; then | |
11536 | ALL_OBJECTS="${ALL_OBJECTS} \$(HTMLOBJS)" | |
11537 | fi | |
3fcdd07b | 11538 | |
3a922bb4 RL |
11539 | if test "$TOOLKIT" != "MSW" -a "$wxUSE_ODBC" = "yes" ; then |
11540 | ALL_OBJECTS="${ALL_OBJECTS} \$(IODBCOBJS)" | |
831b3152 | 11541 | fi |
4f14bcd8 | 11542 | if test "$wxUSE_LIBJPEG" = "builtin" ; then |
2224580a | 11543 | ALL_OBJECTS="${ALL_OBJECTS} \$(JPEGOBJS)" |
d9d8273d | 11544 | fi |
4f14bcd8 | 11545 | if test "$wxUSE_LIBTIFF" = "builtin" ; then |
d9d8273d RR |
11546 | ALL_OBJECTS="${ALL_OBJECTS} \$(TIFFOBJS)" |
11547 | fi | |
4f14bcd8 | 11548 | if test "$wxUSE_LIBPNG" = "builtin" ; then |
d9d8273d RR |
11549 | ALL_OBJECTS="${ALL_OBJECTS} \$(PNGOBJS)" |
11550 | fi | |
4f14bcd8 | 11551 | if test "$wxUSE_FREETYPE" = "builtin" ; then |
3fed1840 RR |
11552 | ALL_OBJECTS="${ALL_OBJECTS} \$(FREETYPEOBJS)" |
11553 | fi | |
2224580a | 11554 | |
2224580a VZ |
11555 | RPM_FILES="src/\$(TOOLKITDIR)/rpmfiles.lst" |
11556 | RPM_SPEC="wx\$(TOOLKIT).spec" | |
11557 | ||
11558 | GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST" | |
11559 | DISTDIR="wx\$(TOOLKIT)" | |
10f2d63a | 11560 | else |
dad6c0ea VZ |
11561 | USE_GUI=0 |
11562 | ||
3a922bb4 | 11563 | TOOLKIT_DIR="base" |
f6bcfd97 | 11564 | |
3a922bb4 RL |
11565 | if test "$USE_WIN32" = 1 ; then |
11566 | ALL_OBJECTS="\${BASE_OBJS} \${BASE_MSW_OBJS}" | |
11567 | TOOLKIT_VPATH="\${top_srcdir}/src/msw" | |
0b2effe9 | 11568 | |
3a922bb4 | 11569 | TOOLKIT="MSW" |
f6bcfd97 | 11570 | else |
3a922bb4 RL |
11571 | ALL_OBJECTS="\${BASE_OBJS} \${BASE_UNIX_OBJS}" |
11572 | TOOLKIT_VPATH="\${top_srcdir}/src/unix" | |
f6bcfd97 BP |
11573 | fi |
11574 | ||
831b3152 | 11575 | PORT_FILES="\${top_srcdir}/src/files.lst" |
2224580a VZ |
11576 | RPM_FILES="src/rpmfiles.lst" |
11577 | RPM_SPEC="wxBase.spec" | |
11578 | ||
11579 | GUIDIST="BASE_DIST" | |
11580 | DISTDIR="wxBase" | |
10f2d63a VZ |
11581 | fi |
11582 | ||
4f14bcd8 | 11583 | if test "$wxUSE_REGEX" = "builtin" ; then |
3a922bb4 RL |
11584 | ALL_OBJECTS="${ALL_OBJECTS} \$(REGEXOBJS)" |
11585 | fi | |
4f14bcd8 | 11586 | if test "$wxUSE_ZLIB" = "builtin" ; then |
3a922bb4 RL |
11587 | ALL_OBJECTS="${ALL_OBJECTS} \$(ZLIBOBJS)" |
11588 | fi | |
10f2d63a | 11589 | |
3a922bb4 RL |
11590 | if test "$wxUSE_OPENGL" = "yes"; then |
11591 | if test "$wxUSE_MAC" = 1; then | |
3a922bb4 | 11592 | OPENGL_LIBS="-framework OpenGL -framework AGL" |
3a922bb4 | 11593 | else |
6f754473 | 11594 | ac_safe=`echo "GL/gl.h" | sed 'y%./+-%__p_%'` |
3a922bb4 | 11595 | echo $ac_n "checking for GL/gl.h""... $ac_c" 1>&6 |
d6853540 | 11596 | echo "configure:11597: checking for GL/gl.h" >&5 |
3a922bb4 RL |
11597 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
11598 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11599 | else | |
11600 | cat > conftest.$ac_ext <<EOF | |
d6853540 | 11601 | #line 11602 "configure" |
3a922bb4 RL |
11602 | #include "confdefs.h" |
11603 | #include <GL/gl.h> | |
11604 | EOF | |
11605 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
d6853540 | 11606 | { (eval echo configure:11607: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
3a922bb4 RL |
11607 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
11608 | if test -z "$ac_err"; then | |
11609 | rm -rf conftest* | |
11610 | eval "ac_cv_header_$ac_safe=yes" | |
11611 | else | |
11612 | echo "$ac_err" >&5 | |
11613 | echo "configure: failed program was:" >&5 | |
11614 | cat conftest.$ac_ext >&5 | |
11615 | rm -rf conftest* | |
11616 | eval "ac_cv_header_$ac_safe=no" | |
11617 | fi | |
11618 | rm -f conftest* | |
11619 | fi | |
11620 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
11621 | echo "$ac_t""yes" 1>&6 | |
11622 | ||
3a922bb4 | 11623 | echo $ac_n "checking for glFlush in -lGL""... $ac_c" 1>&6 |
d6853540 | 11624 | echo "configure:11625: checking for glFlush in -lGL" >&5 |
3a922bb4 RL |
11625 | ac_lib_var=`echo GL'_'glFlush | sed 'y%./+-%__p_%'` |
11626 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
11627 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11628 | else | |
11629 | ac_save_LIBS="$LIBS" | |
11630 | LIBS="-lGL $LIBS" | |
11631 | cat > conftest.$ac_ext <<EOF | |
d6853540 | 11632 | #line 11633 "configure" |
3a922bb4 RL |
11633 | #include "confdefs.h" |
11634 | /* Override any gcc2 internal prototype to avoid an error. */ | |
11635 | /* We use char because int might match the return type of a gcc2 | |
11636 | builtin and then its argument prototype would still apply. */ | |
11637 | char glFlush(); | |
55e80573 | 11638 | |
3a922bb4 RL |
11639 | int main() { |
11640 | glFlush() | |
11641 | ; return 0; } | |
11642 | EOF | |
d6853540 | 11643 | if { (eval echo configure:11644: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
3a922bb4 RL |
11644 | rm -rf conftest* |
11645 | eval "ac_cv_lib_$ac_lib_var=yes" | |
11646 | else | |
11647 | echo "configure: failed program was:" >&5 | |
11648 | cat conftest.$ac_ext >&5 | |
11649 | rm -rf conftest* | |
11650 | eval "ac_cv_lib_$ac_lib_var=no" | |
11651 | fi | |
11652 | rm -f conftest* | |
11653 | LIBS="$ac_save_LIBS" | |
55e80573 | 11654 | |
3a922bb4 RL |
11655 | fi |
11656 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
11657 | echo "$ac_t""yes" 1>&6 | |
11658 | ||
11659 | OPENGL_LIBS="-lGL -lGLU" | |
11660 | ||
11661 | else | |
11662 | echo "$ac_t""no" 1>&6 | |
11663 | ||
6f754473 | 11664 | echo $ac_n "checking for glFlush in -lMesaGL""... $ac_c" 1>&6 |
d6853540 | 11665 | echo "configure:11666: checking for glFlush in -lMesaGL" >&5 |
3a922bb4 RL |
11666 | ac_lib_var=`echo MesaGL'_'glFlush | sed 'y%./+-%__p_%'` |
11667 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
11668 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11669 | else | |
11670 | ac_save_LIBS="$LIBS" | |
11671 | LIBS="-lMesaGL $LIBS" | |
11672 | cat > conftest.$ac_ext <<EOF | |
d6853540 | 11673 | #line 11674 "configure" |
3a922bb4 RL |
11674 | #include "confdefs.h" |
11675 | /* Override any gcc2 internal prototype to avoid an error. */ | |
11676 | /* We use char because int might match the return type of a gcc2 | |
11677 | builtin and then its argument prototype would still apply. */ | |
11678 | char glFlush(); | |
11679 | ||
11680 | int main() { | |
11681 | glFlush() | |
11682 | ; return 0; } | |
11683 | EOF | |
d6853540 | 11684 | if { (eval echo configure:11685: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
3a922bb4 RL |
11685 | rm -rf conftest* |
11686 | eval "ac_cv_lib_$ac_lib_var=yes" | |
11687 | else | |
11688 | echo "configure: failed program was:" >&5 | |
11689 | cat conftest.$ac_ext >&5 | |
11690 | rm -rf conftest* | |
11691 | eval "ac_cv_lib_$ac_lib_var=no" | |
11692 | fi | |
11693 | rm -f conftest* | |
11694 | LIBS="$ac_save_LIBS" | |
11695 | ||
11696 | fi | |
11697 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
11698 | echo "$ac_t""yes" 1>&6 | |
11699 | ||
11700 | OPENGL_LIBS="-lMesaGL -lMesaGLU" | |
11701 | ||
11702 | else | |
11703 | echo "$ac_t""no" 1>&6 | |
11704 | fi | |
55e80573 | 11705 | |
6f754473 | 11706 | |
3a922bb4 RL |
11707 | fi |
11708 | ||
6f754473 | 11709 | |
3a922bb4 RL |
11710 | else |
11711 | echo "$ac_t""no" 1>&6 | |
3a922bb4 RL |
11712 | fi |
11713 | ||
6f754473 VZ |
11714 | |
11715 | if test "x$OPENGL_LIBS" = "x"; then | |
11716 | { echo "configure: error: OpenGL libraries not available" 1>&2; exit 1; } | |
11717 | fi | |
11718 | fi | |
11719 | ||
11720 | if test "$wxUSE_OPENGL" = "yes"; then | |
11721 | cat >> confdefs.h <<\EOF | |
11722 | #define wxUSE_OPENGL 1 | |
11723 | EOF | |
11724 | ||
11725 | cat >> confdefs.h <<\EOF | |
11726 | #define wxUSE_GLCANVAS 1 | |
11727 | EOF | |
11728 | ||
11729 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl" | |
3a922bb4 RL |
11730 | fi |
11731 | fi | |
11732 | ||
11733 | if test -z "$TOOLKIT_VPATH" ; then | |
11734 | TOOLKIT_VPATH="\${top_srcdir}/src/${TOOLKIT_DIR}" | |
11735 | fi | |
11736 | ||
11737 | if test -n "$TOOLKIT" ; then | |
11738 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WX${TOOLKIT}__" | |
11739 | fi | |
11740 | ||
f676c7ff MB |
11741 | lib_unicode_suffix= |
11742 | if test "$wxUSE_UNICODE" = "yes"; then | |
11743 | lib_unicode_suffix=u | |
11744 | fi | |
11745 | ||
3a922bb4 RL |
11746 | lib_debug_suffix= |
11747 | if test "$wxUSE_DEBUG_FLAG" = "yes"; then | |
11748 | lib_debug_suffix=d | |
3a922bb4 RL |
11749 | fi |
11750 | ||
f676c7ff MB |
11751 | TOOLCHAIN_NAME="${TOOLKIT_DIR}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}-${WX_RELEASE}" |
11752 | TOOLCHAIN_NAME_GL="${TOOLKIT_DIR}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}_gl-${WX_RELEASE}" | |
3a922bb4 RL |
11753 | |
11754 | if test "$cross_compiling" = "yes"; then | |
11755 | TOOLCHAIN_NAME="${TOOLCHAIN_NAME}-${host_alias}" | |
11756 | TOOLCHAIN_NAME_GL="${TOOLCHAIN_NAME_GL}-${host_alias}" | |
11757 | fi | |
11758 | ||
11759 | WX_LIBRARY="wx_${TOOLCHAIN_NAME}" | |
11760 | WX_LIBRARY_GL="wx_${TOOLCHAIN_NAME_GL}" | |
11761 | ||
11762 | WXCONFIG_LIBS="-l${WX_LIBRARY}" | |
11763 | ||
11764 | if test "$wxUSE_OPENGL" = "yes"; then | |
11765 | WXCONFIG_LIBS_GL="-l${WX_LIBRARY_GL} $OPENGL_LIBS" | |
11766 | fi | |
11767 | ||
11768 | WX_LIBRARY_NAME_STATIC="lib${WX_LIBRARY}.a" | |
11769 | WX_LIBRARY_NAME_STATIC_GL="lib${WX_LIBRARY_GL}.a" | |
11770 | ||
11771 | WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}" | |
11772 | WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}" | |
11773 | ||
11774 | WX_LIBRARY_LINK1="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}" | |
11775 | WX_LIBRARY_LINK2="lib${WX_LIBRARY}.${SO_SUFFIX}" | |
11776 | WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}" | |
11777 | WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}" | |
11778 | ||
d08b457b | 11779 | WX_RESOURCES_MACOSX="lib${WX_LIBRARY}.rsrc" |
e23081de | 11780 | WX_RESOURCES_MACOSX_COMPILED="lib${WX_LIBRARY}.r" |
3a922bb4 RL |
11781 | |
11782 | ||
11783 | if test "$wxUSE_SHARED" = "yes"; then | |
55e80573 VZ |
11784 | |
11785 | if test "$wxUSE_OPENGL" = "yes"; then | |
11786 | WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL" | |
3a922bb4 | 11787 | WX_ALL="\$(build_libdir)/${WX_LIBRARY_LINK1} \$(build_libdir)/${WX_LIBRARY_LINK1_GL}" |
55e80573 VZ |
11788 | else |
11789 | WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS" | |
3a922bb4 | 11790 | WX_ALL="\$(build_libdir)/${WX_LIBRARY_LINK1}" |
55e80573 VZ |
11791 | fi |
11792 | ||
dd4f7467 | 11793 | if test "$GCC" = "yes"; then |
55e80573 | 11794 | PIC_FLAG="-fPIC" |
dd4f7467 | 11795 | fi |
55e80573 VZ |
11796 | |
11797 | SHARED_LD="${CXX} -shared -o" | |
698dcdb6 | 11798 | |
10f2d63a VZ |
11799 | case "${host}" in |
11800 | *-hp-hpux* ) | |
55e80573 | 11801 | if test "$GCC" != "yes"; then |
f6bcfd97 BP |
11802 | LDFLAGS="-L/usr/lib" |
11803 | ||
10f2d63a VZ |
11804 | SHARED_LD="${CXX} -b -o" |
11805 | PIC_FLAG="+Z" | |
11806 | fi | |
55e80573 | 11807 | |
7b7a7637 RL |
11808 | if test "$wxUSE_OPENGL" = "yes"; then |
11809 | WX_ALL_INSTALLED="preinstall_gl" | |
11810 | WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED} \$(build_libdir)/${WX_LIBRARY_NAME_SHARED_GL}" | |
11811 | else | |
11812 | WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED}" | |
11813 | fi | |
10f2d63a | 11814 | ;; |
b12915c1 | 11815 | |
55e80573 VZ |
11816 | *-*-linux* ) |
11817 | if test "$GCC" != "yes"; then | |
11818 | echo $ac_n "checking for Intel compiler""... $ac_c" 1>&6 | |
d6853540 | 11819 | echo "configure:11820: checking for Intel compiler" >&5 |
55e80573 VZ |
11820 | if eval "test \"`echo '$''{'wx_cv_prog_icc'+set}'`\" = set"; then |
11821 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11822 | else | |
11823 | ||
11824 | cat > conftest.$ac_ext <<EOF | |
d6853540 | 11825 | #line 11826 "configure" |
55e80573 VZ |
11826 | #include "confdefs.h" |
11827 | ||
11828 | int main() { | |
11829 | ||
11830 | #ifndef __INTEL_COMPILER | |
dd4f7467 | 11831 | #error Not icc |
55e80573 VZ |
11832 | #endif |
11833 | ||
11834 | ; return 0; } | |
11835 | EOF | |
d6853540 | 11836 | if { (eval echo configure:11837: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
55e80573 VZ |
11837 | rm -rf conftest* |
11838 | wx_cv_prog_icc=yes | |
11839 | else | |
11840 | echo "configure: failed program was:" >&5 | |
11841 | cat conftest.$ac_ext >&5 | |
11842 | rm -rf conftest* | |
11843 | wx_cv_prog_icc=no | |
11844 | ||
11845 | fi | |
11846 | rm -f conftest* | |
11847 | ||
11848 | fi | |
11849 | ||
11850 | echo "$ac_t""$wx_cv_prog_icc" 1>&6 | |
55e80573 VZ |
11851 | if test "$wx_cv_prog_icc" = "yes"; then |
11852 | PIC_FLAG="-KPIC" | |
11853 | fi | |
11854 | fi | |
11855 | ||
3a922bb4 RL |
11856 | if test "$wxUSE_SONAME" = "yes" ; then |
11857 | SONAME_FLAGS="-Wl,-soname,${WX_LIBRARY_LINK1}" | |
11858 | SONAME_FLAGS_GL="-Wl,-soname,${WX_LIBRARY_LINK1_GL}" | |
f6bcfd97 | 11859 | WX_TARGET_LIBRARY_SONAME="-Wl,-soname,\$(TARGETLIB_LINK1)" |
00cf1208 | 11860 | fi |
10f2d63a | 11861 | ;; |
55e80573 | 11862 | |
10f2d63a VZ |
11863 | *-*-solaris2* ) |
11864 | if test "$GCC" = yes ; then | |
f6bcfd97 | 11865 | CPPFLAGS="$CPPFLAGS -isystem /usr/openwin/include" |
10f2d63a VZ |
11866 | else |
11867 | SHARED_LD="${CXX} -G -o" | |
11868 | PIC_FLAG="-KPIC" | |
7b7a7637 RL |
11869 | SONAME_FLAGS="-h ${WX_LIBRARY_NAME_SHARED}" |
11870 | SONAME_FLAGS_GL="-h ${WX_LIBRARY_NAME_SHARED}" | |
10f2d63a | 11871 | fi |
10f2d63a | 11872 | ;; |
55e80573 | 11873 | |
b4085ce6 | 11874 | *-*-darwin* ) |
d08b457b GD |
11875 | CFLAGS="${CFLAGS} -fno-common" |
11876 | CXXFLAGS="${CXXFLAGS} -fno-common" | |
ea5999b9 GD |
11877 | SHARED_LD="${CXX} -dynamiclib -o" |
11878 | PIC_FLAG="-dynamic -fPIC" | |
10f2d63a | 11879 | ;; |
55e80573 | 11880 | |
10f2d63a VZ |
11881 | *-*-aix* ) |
11882 | SHARED_LD="/usr/lpp/xlC/bin/makeC++SharedLib -p 0 -o" | |
10f2d63a | 11883 | ;; |
55e80573 | 11884 | |
7b7a7637 | 11885 | *-*-cygwin* | *-*-mingw32* ) |
77e13408 RL |
11886 | |
11887 | if test "$cross_compiling" != "yes"; then | |
11888 | WX_LIBRARY="wxmsw${WX_MAJOR_VERSION_NUMBER}${WX_MINOR_VERSION_NUMBER}${WX_RELEASE_NUMBER}${lib_unicode_suffix}${lib_debug_suffix}" | |
11889 | WX_LIBRARY_GL=${WX_LIBRARY} "wxmsw${WX_MAJOR_VERSION_NUMBER}${WX_MINOR_VERSION_NUMBER}${WX_RELEASE_NUMBER}${lib_unicode_suffix}${lib_debug_suffix}" | |
11890 | WX_LIBRARY_NAME_SHARED="${WX_LIBRARY}.${SO_SUFFIX}" | |
11891 | WX_LIBRARY_NAME_SHARED_GL="${WX_LIBRARY_GL}.${SO_SUFFIX}" | |
11892 | WX_LIBRARY_NAME_STATIC="lib${WX_LIBRARY}.a" | |
11893 | WX_LIBRARY_NAME_STATIC_GL="lib${WX_LIBRARY_GL}.a" | |
11894 | fi | |
11895 | ||
11896 | WX_LIBRARY_IMPORTLIB="lib${WX_LIBRARY}.lib" | |
11897 | ||
11898 | if test "$wxUSE_SHARED" = "yes" ; then | |
11899 | WXCONFIG_LIBS="${WX_LIBRARY_IMPORTLIB}" | |
11900 | else | |
11901 | WXCONFIG_LIBS="-l${WX_LIBRARY}" | |
11902 | fi | |
11903 | ||
11904 | SHARED_LD="${CXX} -shared -Wl,--out-implib,lib/${WX_LIBRARY_IMPORTLIB} -o" | |
3a922bb4 | 11905 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -DWXUSINGDLL=1" |
18dbb1f6 | 11906 | WXMSW_DLL_DEFINES="-UWXUSINGDLL -DWXMAKINGDLL=1 -D_DLL=1 -D_WINDLL=1" |
7b7a7637 RL |
11907 | |
11908 | if test "$wxUSE_OPENGL" = "yes"; then | |
f6bcfd97 | 11909 | WX_ALL_INSTALLED="preinstall_gl" |
4fb788e4 | 11910 | WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED} \$(build_libdir)/${WX_LIBRARY_NAME_STATIC} \$(build_libdir)/${WX_LIBRARY_NAME_SHARED_GL}" |
f6bcfd97 | 11911 | else |
4fb788e4 | 11912 | WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED} \$(build_libdir)/${WX_LIBRARY_NAME_STATIC}" |
f6bcfd97 | 11913 | fi |
4fb788e4 | 11914 | PIC_FLAG= |
10f2d63a | 11915 | ;; |
55e80573 | 11916 | |
6fa882bd | 11917 | *-pc-os2_emx | *-pc-os2-emx ) |
7b7a7637 | 11918 | wxUSE_SHARED=no |
10f2d63a | 11919 | ;; |
55e80573 | 11920 | |
b12915c1 | 11921 | *-*-beos* ) |
e2b8b066 | 11922 | SHARED_LD="${LD} -shared -o" |
b12915c1 | 11923 | ;; |
55e80573 VZ |
11924 | |
11925 | *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | \ | |
11926 | *-*-sunos4* | \ | |
11927 | *-*-irix5* | *-*-irix6* | \ | |
11928 | *-*-osf* | \ | |
11929 | *-*-dgux5* | \ | |
11930 | *-*-sysv5* ) | |
11931 | ;; | |
11932 | ||
10f2d63a | 11933 | *) |
7b7a7637 | 11934 | { echo "configure: error: unknown system type $host." 1>&2; exit 1; } |
10f2d63a VZ |
11935 | esac |
11936 | ||
11937 | if test "x$WX_TARGET_LIBRARY" = "x"; then | |
11938 | WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_SHARED}" | |
bdad4e7e | 11939 | WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_SHARED_GL}" |
10f2d63a | 11940 | fi |
55e80573 | 11941 | |
3711412e | 11942 | WX_TARGET_LIBRARY_TYPE="so" |
3a922bb4 | 11943 | fi |
f6bcfd97 | 11944 | |
3a922bb4 | 11945 | if test "$wxUSE_SHARED" = "no"; then |
f6bcfd97 | 11946 | |
3a922bb4 | 11947 | if test "$wxUSE_GUI" = "no" -o "$USE_WIN32" = 1 ; then |
f6bcfd97 BP |
11948 | WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall" |
11949 | fi | |
11950 | ||
6fa882bd RR |
11951 | if test "$wxUSE_MAC" = 1; then |
11952 | WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall" | |
11953 | fi | |
11954 | ||
3a922bb4 RL |
11955 | if test "$wxUSE_OPENGL" = "yes"; then |
11956 | WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall_gl" | |
11957 | WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC} \$(build_libdir)/${WX_LIBRARY_NAME_STATIC_GL}" | |
11958 | else | |
11959 | WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC}" | |
11960 | fi | |
698dcdb6 | 11961 | |
3a922bb4 RL |
11962 | WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}" |
11963 | WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_STATIC_GL}" | |
11964 | ||
11965 | WX_TARGET_LIBRARY_TYPE="a" | |
10f2d63a | 11966 | fi |
10f2d63a | 11967 | |
d08b457b GD |
11968 | if test "$wxUSE_MAC" = 1; then |
11969 | WX_ALL="${WX_ALL} \$(build_libdir)/lib${WX_LIBRARY}.r" | |
e23081de | 11970 | WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall_res" |
d08b457b GD |
11971 | # Extract the first word of "Rez", so it can be a program name with args. |
11972 | set dummy Rez; ac_word=$2 | |
11973 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
d6853540 | 11974 | echo "configure:11975: checking for $ac_word" >&5 |
d08b457b GD |
11975 | if eval "test \"`echo '$''{'ac_cv_prog_RESCOMP'+set}'`\" = set"; then |
11976 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11977 | else | |
11978 | if test -n "$RESCOMP"; then | |
11979 | ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test. | |
11980 | else | |
11981 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
11982 | ac_dummy="$PATH" | |
11983 | for ac_dir in $ac_dummy; do | |
11984 | test -z "$ac_dir" && ac_dir=. | |
11985 | if test -f $ac_dir/$ac_word; then | |
11986 | ac_cv_prog_RESCOMP="Rez" | |
11987 | break | |
11988 | fi | |
11989 | done | |
11990 | IFS="$ac_save_ifs" | |
11991 | test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez" | |
11992 | fi | |
11993 | fi | |
11994 | RESCOMP="$ac_cv_prog_RESCOMP" | |
11995 | if test -n "$RESCOMP"; then | |
11996 | echo "$ac_t""$RESCOMP" 1>&6 | |
11997 | else | |
11998 | echo "$ac_t""no" 1>&6 | |
11999 | fi | |
12000 | ||
12001 | # Extract the first word of "Derez", so it can be a program name with args. | |
12002 | set dummy Derez; ac_word=$2 | |
12003 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
d6853540 | 12004 | echo "configure:12005: checking for $ac_word" >&5 |
d08b457b GD |
12005 | if eval "test \"`echo '$''{'ac_cv_prog_DEREZ'+set}'`\" = set"; then |
12006 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12007 | else | |
12008 | if test -n "$DEREZ"; then | |
12009 | ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test. | |
12010 | else | |
12011 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
12012 | ac_dummy="$PATH" | |
12013 | for ac_dir in $ac_dummy; do | |
12014 | test -z "$ac_dir" && ac_dir=. | |
12015 | if test -f $ac_dir/$ac_word; then | |
12016 | ac_cv_prog_DEREZ="Derez" | |
12017 | break | |
12018 | fi | |
12019 | done | |
12020 | IFS="$ac_save_ifs" | |
12021 | test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/Derez" | |
12022 | fi | |
12023 | fi | |
12024 | DEREZ="$ac_cv_prog_DEREZ" | |
12025 | if test -n "$DEREZ"; then | |
12026 | echo "$ac_t""$DEREZ" 1>&6 | |
12027 | else | |
12028 | echo "$ac_t""no" 1>&6 | |
12029 | fi | |
12030 | ||
12031 | LIBWXMACRES="\$(top_builddir)/lib/lib${WX_LIBRARY}.r" | |
12032 | LIBWXMACRESCOMP="\$(RESCOMP) Carbon.r -t APPL ${LIBWXMACRES} -o \$(BIN_PROGRAM)" | |
e23081de | 12033 | LIBWXMACRESWXCONFIG="${RESCOMP} Carbon.r -t APPL \${prefix}/lib/${WX_RESOURCES_MACOSX_COMPILED} -o" |
d08b457b GD |
12034 | fi |
12035 | ||
3a922bb4 | 12036 | |
13c0541d GD |
12037 | if test "$wxUSE_MAC" != 1; then |
12038 | for ac_hdr in strings.h | |
9cfadba2 | 12039 | do |
698dcdb6 VZ |
12040 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
12041 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
d6853540 | 12042 | echo "configure:12043: checking for $ac_hdr" >&5 |
698dcdb6 VZ |
12043 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
12044 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12045 | else | |
12046 | cat > conftest.$ac_ext <<EOF | |
d6853540 | 12047 | #line 12048 "configure" |
9cfadba2 | 12048 | #include "confdefs.h" |
698dcdb6 VZ |
12049 | #include <$ac_hdr> |
12050 | EOF | |
12051 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
d6853540 | 12052 | { (eval echo configure:12053: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
12053 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
12054 | if test -z "$ac_err"; then | |
12055 | rm -rf conftest* | |
12056 | eval "ac_cv_header_$ac_safe=yes" | |
6232543b | 12057 | else |
698dcdb6 VZ |
12058 | echo "$ac_err" >&5 |
12059 | echo "configure: failed program was:" >&5 | |
9cfadba2 | 12060 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
12061 | rm -rf conftest* |
12062 | eval "ac_cv_header_$ac_safe=no" | |
9cfadba2 | 12063 | fi |
698dcdb6 | 12064 | rm -f conftest* |
9cfadba2 | 12065 | fi |
698dcdb6 VZ |
12066 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
12067 | echo "$ac_t""yes" 1>&6 | |
12068 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
12069 | cat >> confdefs.h <<EOF | |
12070 | #define $ac_tr_hdr 1 | |
9cfadba2 | 12071 | EOF |
698dcdb6 VZ |
12072 | |
12073 | else | |
12074 | echo "$ac_t""no" 1>&6 | |
9cfadba2 VZ |
12075 | fi |
12076 | done | |
10f2d63a | 12077 | |
13c0541d GD |
12078 | fi |
12079 | ||
3a922bb4 | 12080 | for ac_hdr in stdlib.h |
10f2d63a | 12081 | do |
698dcdb6 VZ |
12082 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
12083 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
d6853540 | 12084 | echo "configure:12085: checking for $ac_hdr" >&5 |
698dcdb6 VZ |
12085 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
12086 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12087 | else | |
12088 | cat > conftest.$ac_ext <<EOF | |
d6853540 | 12089 | #line 12090 "configure" |
10f2d63a | 12090 | #include "confdefs.h" |
698dcdb6 VZ |
12091 | #include <$ac_hdr> |
12092 | EOF | |
12093 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
d6853540 | 12094 | { (eval echo configure:12095: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
12095 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
12096 | if test -z "$ac_err"; then | |
12097 | rm -rf conftest* | |
12098 | eval "ac_cv_header_$ac_safe=yes" | |
6232543b | 12099 | else |
698dcdb6 VZ |
12100 | echo "$ac_err" >&5 |
12101 | echo "configure: failed program was:" >&5 | |
10f2d63a | 12102 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
12103 | rm -rf conftest* |
12104 | eval "ac_cv_header_$ac_safe=no" | |
10f2d63a | 12105 | fi |
698dcdb6 | 12106 | rm -f conftest* |
10f2d63a | 12107 | fi |
698dcdb6 VZ |
12108 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
12109 | echo "$ac_t""yes" 1>&6 | |
12110 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
12111 | cat >> confdefs.h <<EOF | |
12112 | #define $ac_tr_hdr 1 | |
10f2d63a | 12113 | EOF |
698dcdb6 VZ |
12114 | |
12115 | else | |
12116 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
12117 | fi |
12118 | done | |
12119 | ||
3a922bb4 | 12120 | for ac_hdr in unistd.h |
10f2d63a | 12121 | do |
698dcdb6 VZ |
12122 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
12123 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
d6853540 | 12124 | echo "configure:12125: checking for $ac_hdr" >&5 |
698dcdb6 VZ |
12125 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
12126 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12127 | else | |
12128 | cat > conftest.$ac_ext <<EOF | |
d6853540 | 12129 | #line 12130 "configure" |
10f2d63a | 12130 | #include "confdefs.h" |
698dcdb6 VZ |
12131 | #include <$ac_hdr> |
12132 | EOF | |
12133 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
d6853540 | 12134 | { (eval echo configure:12135: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
12135 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
12136 | if test -z "$ac_err"; then | |
12137 | rm -rf conftest* | |
12138 | eval "ac_cv_header_$ac_safe=yes" | |
6f72b082 | 12139 | else |
698dcdb6 VZ |
12140 | echo "$ac_err" >&5 |
12141 | echo "configure: failed program was:" >&5 | |
6f72b082 | 12142 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
12143 | rm -rf conftest* |
12144 | eval "ac_cv_header_$ac_safe=no" | |
6f72b082 | 12145 | fi |
698dcdb6 | 12146 | rm -f conftest* |
6f72b082 | 12147 | fi |
698dcdb6 VZ |
12148 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
12149 | echo "$ac_t""yes" 1>&6 | |
12150 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
12151 | cat >> confdefs.h <<EOF | |
12152 | #define $ac_tr_hdr 1 | |
6f72b082 | 12153 | EOF |
698dcdb6 VZ |
12154 | |
12155 | else | |
12156 | echo "$ac_t""no" 1>&6 | |
6f72b082 OK |
12157 | fi |
12158 | done | |
12159 | ||
3a922bb4 | 12160 | for ac_hdr in wchar.h |
6f72b082 | 12161 | do |
698dcdb6 VZ |
12162 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
12163 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
d6853540 | 12164 | echo "configure:12165: checking for $ac_hdr" >&5 |
698dcdb6 VZ |
12165 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
12166 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12167 | else | |
12168 | cat > conftest.$ac_ext <<EOF | |
d6853540 | 12169 | #line 12170 "configure" |
6f72b082 | 12170 | #include "confdefs.h" |
698dcdb6 VZ |
12171 | #include <$ac_hdr> |
12172 | EOF | |
12173 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
d6853540 | 12174 | { (eval echo configure:12175: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
12175 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
12176 | if test -z "$ac_err"; then | |
12177 | rm -rf conftest* | |
12178 | eval "ac_cv_header_$ac_safe=yes" | |
6f72b082 | 12179 | else |
698dcdb6 VZ |
12180 | echo "$ac_err" >&5 |
12181 | echo "configure: failed program was:" >&5 | |
6f72b082 | 12182 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
12183 | rm -rf conftest* |
12184 | eval "ac_cv_header_$ac_safe=no" | |
6f72b082 | 12185 | fi |
698dcdb6 | 12186 | rm -f conftest* |
6f72b082 | 12187 | fi |
698dcdb6 VZ |
12188 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
12189 | echo "$ac_t""yes" 1>&6 | |
12190 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
12191 | cat >> confdefs.h <<EOF | |
12192 | #define $ac_tr_hdr 1 | |
6f72b082 | 12193 | EOF |
698dcdb6 VZ |
12194 | |
12195 | else | |
12196 | echo "$ac_t""no" 1>&6 | |
6f72b082 OK |
12197 | fi |
12198 | done | |
12199 | ||
3a922bb4 | 12200 | for ac_hdr in wcstr.h |
6f72b082 | 12201 | do |
698dcdb6 VZ |
12202 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
12203 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
d6853540 | 12204 | echo "configure:12205: checking for $ac_hdr" >&5 |
698dcdb6 VZ |
12205 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
12206 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12207 | else | |
12208 | cat > conftest.$ac_ext <<EOF | |
d6853540 | 12209 | #line 12210 "configure" |
6f72b082 | 12210 | #include "confdefs.h" |
698dcdb6 VZ |
12211 | #include <$ac_hdr> |
12212 | EOF | |
12213 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
d6853540 | 12214 | { (eval echo configure:12215: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
12215 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
12216 | if test -z "$ac_err"; then | |
12217 | rm -rf conftest* | |
12218 | eval "ac_cv_header_$ac_safe=yes" | |
10f2d63a | 12219 | else |
698dcdb6 VZ |
12220 | echo "$ac_err" >&5 |
12221 | echo "configure: failed program was:" >&5 | |
10f2d63a | 12222 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
12223 | rm -rf conftest* |
12224 | eval "ac_cv_header_$ac_safe=no" | |
10f2d63a | 12225 | fi |
698dcdb6 | 12226 | rm -f conftest* |
10f2d63a | 12227 | fi |
698dcdb6 VZ |
12228 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
12229 | echo "$ac_t""yes" 1>&6 | |
12230 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
12231 | cat >> confdefs.h <<EOF | |
12232 | #define $ac_tr_hdr 1 | |
10f2d63a | 12233 | EOF |
698dcdb6 VZ |
12234 | |
12235 | else | |
12236 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
12237 | fi |
12238 | done | |
12239 | ||
3a922bb4 | 12240 | for ac_hdr in fnmatch.h |
0fb0dd83 | 12241 | do |
698dcdb6 VZ |
12242 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
12243 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
d6853540 | 12244 | echo "configure:12245: checking for $ac_hdr" >&5 |
698dcdb6 VZ |
12245 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
12246 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12247 | else | |
12248 | cat > conftest.$ac_ext <<EOF | |
d6853540 | 12249 | #line 12250 "configure" |
0fb0dd83 | 12250 | #include "confdefs.h" |
698dcdb6 VZ |
12251 | #include <$ac_hdr> |
12252 | EOF | |
12253 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
d6853540 | 12254 | { (eval echo configure:12255: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
12255 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
12256 | if test -z "$ac_err"; then | |
12257 | rm -rf conftest* | |
12258 | eval "ac_cv_header_$ac_safe=yes" | |
0fb0dd83 | 12259 | else |
698dcdb6 VZ |
12260 | echo "$ac_err" >&5 |
12261 | echo "configure: failed program was:" >&5 | |
0fb0dd83 | 12262 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
12263 | rm -rf conftest* |
12264 | eval "ac_cv_header_$ac_safe=no" | |
0fb0dd83 | 12265 | fi |
698dcdb6 | 12266 | rm -f conftest* |
0fb0dd83 | 12267 | fi |
698dcdb6 VZ |
12268 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
12269 | echo "$ac_t""yes" 1>&6 | |
12270 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
12271 | cat >> confdefs.h <<EOF | |
12272 | #define $ac_tr_hdr 1 | |
0fb0dd83 | 12273 | EOF |
698dcdb6 VZ |
12274 | |
12275 | else | |
12276 | echo "$ac_t""no" 1>&6 | |
0fb0dd83 RR |
12277 | fi |
12278 | done | |
12279 | ||
3a922bb4 | 12280 | for ac_hdr in iconv.h |
1f8ae82f | 12281 | do |
698dcdb6 VZ |
12282 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
12283 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
d6853540 | 12284 | echo "configure:12285: checking for $ac_hdr" >&5 |
698dcdb6 VZ |
12285 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
12286 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12287 | else | |
12288 | cat > conftest.$ac_ext <<EOF | |
d6853540 | 12289 | #line 12290 "configure" |
1f8ae82f | 12290 | #include "confdefs.h" |
698dcdb6 VZ |
12291 | #include <$ac_hdr> |
12292 | EOF | |
12293 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
d6853540 | 12294 | { (eval echo configure:12295: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
12295 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
12296 | if test -z "$ac_err"; then | |
12297 | rm -rf conftest* | |
12298 | eval "ac_cv_header_$ac_safe=yes" | |
1f8ae82f | 12299 | else |
698dcdb6 VZ |
12300 | echo "$ac_err" >&5 |
12301 | echo "configure: failed program was:" >&5 | |
1f8ae82f | 12302 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
12303 | rm -rf conftest* |
12304 | eval "ac_cv_header_$ac_safe=no" | |
1f8ae82f | 12305 | fi |
698dcdb6 | 12306 | rm -f conftest* |
1f8ae82f | 12307 | fi |
698dcdb6 VZ |
12308 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
12309 | echo "$ac_t""yes" 1>&6 | |
12310 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
12311 | cat >> confdefs.h <<EOF | |
12312 | #define $ac_tr_hdr 1 | |
1f8ae82f | 12313 | EOF |
698dcdb6 VZ |
12314 | |
12315 | else | |
12316 | echo "$ac_t""no" 1>&6 | |
1f8ae82f GD |
12317 | fi |
12318 | done | |
12319 | ||
3a922bb4 | 12320 | for ac_hdr in langinfo.h |
10f2d63a | 12321 | do |
698dcdb6 VZ |
12322 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
12323 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
d6853540 | 12324 | echo "configure:12325: checking for $ac_hdr" >&5 |
698dcdb6 VZ |
12325 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
12326 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12327 | else | |
12328 | cat > conftest.$ac_ext <<EOF | |
d6853540 | 12329 | #line 12330 "configure" |
10f2d63a | 12330 | #include "confdefs.h" |
698dcdb6 VZ |
12331 | #include <$ac_hdr> |
12332 | EOF | |
12333 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
d6853540 | 12334 | { (eval echo configure:12335: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
12335 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
12336 | if test -z "$ac_err"; then | |
12337 | rm -rf conftest* | |
12338 | eval "ac_cv_header_$ac_safe=yes" | |
10f2d63a | 12339 | else |
698dcdb6 VZ |
12340 | echo "$ac_err" >&5 |
12341 | echo "configure: failed program was:" >&5 | |
10f2d63a | 12342 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
12343 | rm -rf conftest* |
12344 | eval "ac_cv_header_$ac_safe=no" | |
10f2d63a | 12345 | fi |
698dcdb6 | 12346 | rm -f conftest* |
10f2d63a | 12347 | fi |
698dcdb6 VZ |
12348 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
12349 | echo "$ac_t""yes" 1>&6 | |
12350 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
12351 | cat >> confdefs.h <<EOF | |
12352 | #define $ac_tr_hdr 1 | |
10f2d63a | 12353 | EOF |
698dcdb6 VZ |
12354 | |
12355 | else | |
12356 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
12357 | fi |
12358 | done | |
12359 | ||
10f2d63a | 12360 | |
3a922bb4 RL |
12361 | if test "$wxUSE_GUI" = "yes"; then |
12362 | if test "$wxUSE_UNIX" = "yes"; then | |
12363 | for ac_hdr in X11/XKBlib.h | |
29fd3c0c VS |
12364 | do |
12365 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
12366 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
d6853540 | 12367 | echo "configure:12368: checking for $ac_hdr" >&5 |
29fd3c0c VS |
12368 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
12369 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12370 | else | |
12371 | cat > conftest.$ac_ext <<EOF | |
d6853540 | 12372 | #line 12373 "configure" |
29fd3c0c VS |
12373 | #include "confdefs.h" |
12374 | #include <$ac_hdr> | |
12375 | EOF | |
12376 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
d6853540 | 12377 | { (eval echo configure:12378: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
29fd3c0c VS |
12378 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
12379 | if test -z "$ac_err"; then | |
12380 | rm -rf conftest* | |
12381 | eval "ac_cv_header_$ac_safe=yes" | |
12382 | else | |
12383 | echo "$ac_err" >&5 | |
12384 | echo "configure: failed program was:" >&5 | |
12385 | cat conftest.$ac_ext >&5 | |
12386 | rm -rf conftest* | |
12387 | eval "ac_cv_header_$ac_safe=no" | |
12388 | fi | |
12389 | rm -f conftest* | |
12390 | fi | |
12391 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
12392 | echo "$ac_t""yes" 1>&6 | |
12393 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
12394 | cat >> confdefs.h <<EOF | |
12395 | #define $ac_tr_hdr 1 | |
12396 | EOF | |
12397 | ||
12398 | else | |
12399 | echo "$ac_t""no" 1>&6 | |
12400 | fi | |
12401 | done | |
12402 | ||
3a922bb4 | 12403 | fi |
29fd3c0c VS |
12404 | fi |
12405 | ||
698dcdb6 VZ |
12406 | |
12407 | echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6 | |
d6853540 | 12408 | echo "configure:12409: checking for ANSI C header files" >&5 |
698dcdb6 VZ |
12409 | if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then |
12410 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 12411 | else |
698dcdb6 | 12412 | cat > conftest.$ac_ext <<EOF |
d6853540 | 12413 | #line 12414 "configure" |
10f2d63a VZ |
12414 | #include "confdefs.h" |
12415 | #include <stdlib.h> | |
12416 | #include <stdarg.h> | |
12417 | #include <string.h> | |
12418 | #include <float.h> | |
698dcdb6 VZ |
12419 | EOF |
12420 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
d6853540 | 12421 | { (eval echo configure:12422: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
12422 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
12423 | if test -z "$ac_err"; then | |
12424 | rm -rf conftest* | |
10f2d63a VZ |
12425 | ac_cv_header_stdc=yes |
12426 | else | |
698dcdb6 VZ |
12427 | echo "$ac_err" >&5 |
12428 | echo "configure: failed program was:" >&5 | |
10f2d63a | 12429 | cat conftest.$ac_ext >&5 |
698dcdb6 | 12430 | rm -rf conftest* |
10f2d63a VZ |
12431 | ac_cv_header_stdc=no |
12432 | fi | |
698dcdb6 | 12433 | rm -f conftest* |
10f2d63a VZ |
12434 | |
12435 | if test $ac_cv_header_stdc = yes; then | |
12436 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
698dcdb6 | 12437 | cat > conftest.$ac_ext <<EOF |
d6853540 | 12438 | #line 12439 "configure" |
10f2d63a VZ |
12439 | #include "confdefs.h" |
12440 | #include <string.h> | |
698dcdb6 | 12441 | EOF |
10f2d63a VZ |
12442 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
12443 | egrep "memchr" >/dev/null 2>&1; then | |
12444 | : | |
12445 | else | |
698dcdb6 | 12446 | rm -rf conftest* |
10f2d63a VZ |
12447 | ac_cv_header_stdc=no |
12448 | fi | |
12449 | rm -f conftest* | |
12450 | ||
12451 | fi | |
12452 | ||
12453 | if test $ac_cv_header_stdc = yes; then | |
12454 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
698dcdb6 | 12455 | cat > conftest.$ac_ext <<EOF |
d6853540 | 12456 | #line 12457 "configure" |
10f2d63a VZ |
12457 | #include "confdefs.h" |
12458 | #include <stdlib.h> | |
698dcdb6 | 12459 | EOF |
10f2d63a VZ |
12460 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
12461 | egrep "free" >/dev/null 2>&1; then | |
12462 | : | |
12463 | else | |
698dcdb6 | 12464 | rm -rf conftest* |
10f2d63a VZ |
12465 | ac_cv_header_stdc=no |
12466 | fi | |
12467 | rm -f conftest* | |
12468 | ||
12469 | fi | |
12470 | ||
12471 | if test $ac_cv_header_stdc = yes; then | |
12472 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
698dcdb6 | 12473 | if test "$cross_compiling" = yes; then |
10f2d63a VZ |
12474 | : |
12475 | else | |
698dcdb6 | 12476 | cat > conftest.$ac_ext <<EOF |
d6853540 | 12477 | #line 12478 "configure" |
10f2d63a VZ |
12478 | #include "confdefs.h" |
12479 | #include <ctype.h> | |
698dcdb6 VZ |
12480 | #define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
12481 | #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
1e487827 | 12482 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
698dcdb6 VZ |
12483 | int main () { int i; for (i = 0; i < 256; i++) |
12484 | if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2); | |
12485 | exit (0); } | |
12486 | ||
12487 | EOF | |
d6853540 | 12488 | if { (eval echo configure:12489: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
698dcdb6 | 12489 | then |
10f2d63a VZ |
12490 | : |
12491 | else | |
698dcdb6 VZ |
12492 | echo "configure: failed program was:" >&5 |
12493 | cat conftest.$ac_ext >&5 | |
12494 | rm -fr conftest* | |
12495 | ac_cv_header_stdc=no | |
10f2d63a | 12496 | fi |
698dcdb6 | 12497 | rm -fr conftest* |
10f2d63a | 12498 | fi |
698dcdb6 | 12499 | |
10f2d63a VZ |
12500 | fi |
12501 | fi | |
1e487827 | 12502 | |
698dcdb6 VZ |
12503 | echo "$ac_t""$ac_cv_header_stdc" 1>&6 |
12504 | if test $ac_cv_header_stdc = yes; then | |
12505 | cat >> confdefs.h <<\EOF | |
10f2d63a VZ |
12506 | #define STDC_HEADERS 1 |
12507 | EOF | |
12508 | ||
12509 | fi | |
12510 | ||
698dcdb6 | 12511 | echo $ac_n "checking for mode_t""... $ac_c" 1>&6 |
d6853540 | 12512 | echo "configure:12513: checking for mode_t" >&5 |
698dcdb6 VZ |
12513 | if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then |
12514 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1e487827 | 12515 | else |
698dcdb6 | 12516 | cat > conftest.$ac_ext <<EOF |
d6853540 | 12517 | #line 12518 "configure" |
1e487827 | 12518 | #include "confdefs.h" |
698dcdb6 VZ |
12519 | #include <sys/types.h> |
12520 | #if STDC_HEADERS | |
12521 | #include <stdlib.h> | |
12522 | #include <stddef.h> | |
12523 | #endif | |
12524 | EOF | |
12525 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
12526 | egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then | |
12527 | rm -rf conftest* | |
10f2d63a VZ |
12528 | ac_cv_type_mode_t=yes |
12529 | else | |
698dcdb6 VZ |
12530 | rm -rf conftest* |
12531 | ac_cv_type_mode_t=no | |
703e0a69 | 12532 | fi |
698dcdb6 | 12533 | rm -f conftest* |
1e487827 | 12534 | |
698dcdb6 VZ |
12535 | fi |
12536 | echo "$ac_t""$ac_cv_type_mode_t" 1>&6 | |
12537 | if test $ac_cv_type_mode_t = no; then | |
12538 | cat >> confdefs.h <<\EOF | |
10f2d63a VZ |
12539 | #define mode_t int |
12540 | EOF | |
12541 | ||
12542 | fi | |
12543 | ||
698dcdb6 | 12544 | echo $ac_n "checking for off_t""... $ac_c" 1>&6 |
d6853540 | 12545 | echo "configure:12546: checking for off_t" >&5 |
698dcdb6 VZ |
12546 | if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then |
12547 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 12548 | else |
698dcdb6 | 12549 | cat > conftest.$ac_ext <<EOF |
d6853540 | 12550 | #line 12551 "configure" |
10f2d63a | 12551 | #include "confdefs.h" |
698dcdb6 VZ |
12552 | #include <sys/types.h> |
12553 | #if STDC_HEADERS | |
12554 | #include <stdlib.h> | |
12555 | #include <stddef.h> | |
12556 | #endif | |
12557 | EOF | |
12558 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
12559 | egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then | |
12560 | rm -rf conftest* | |
10f2d63a VZ |
12561 | ac_cv_type_off_t=yes |
12562 | else | |
698dcdb6 VZ |
12563 | rm -rf conftest* |
12564 | ac_cv_type_off_t=no | |
703e0a69 | 12565 | fi |
698dcdb6 | 12566 | rm -f conftest* |
1e487827 | 12567 | |
698dcdb6 VZ |
12568 | fi |
12569 | echo "$ac_t""$ac_cv_type_off_t" 1>&6 | |
12570 | if test $ac_cv_type_off_t = no; then | |
12571 | cat >> confdefs.h <<\EOF | |
10f2d63a VZ |
12572 | #define off_t long |
12573 | EOF | |
12574 | ||
12575 | fi | |
12576 | ||
698dcdb6 | 12577 | echo $ac_n "checking for pid_t""... $ac_c" 1>&6 |
d6853540 | 12578 | echo "configure:12579: checking for pid_t" >&5 |
698dcdb6 VZ |
12579 | if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then |
12580 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 12581 | else |
698dcdb6 | 12582 | cat > conftest.$ac_ext <<EOF |
d6853540 | 12583 | #line 12584 "configure" |
10f2d63a | 12584 | #include "confdefs.h" |
698dcdb6 VZ |
12585 | #include <sys/types.h> |
12586 | #if STDC_HEADERS | |
12587 | #include <stdlib.h> | |
12588 | #include <stddef.h> | |
12589 | #endif | |
12590 | EOF | |
12591 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
12592 | egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then | |
12593 | rm -rf conftest* | |
10f2d63a VZ |
12594 | ac_cv_type_pid_t=yes |
12595 | else | |
698dcdb6 VZ |
12596 | rm -rf conftest* |
12597 | ac_cv_type_pid_t=no | |
703e0a69 | 12598 | fi |
698dcdb6 | 12599 | rm -f conftest* |
1e487827 | 12600 | |
698dcdb6 VZ |
12601 | fi |
12602 | echo "$ac_t""$ac_cv_type_pid_t" 1>&6 | |
12603 | if test $ac_cv_type_pid_t = no; then | |
12604 | cat >> confdefs.h <<\EOF | |
10f2d63a VZ |
12605 | #define pid_t int |
12606 | EOF | |
12607 | ||
12608 | fi | |
12609 | ||
698dcdb6 | 12610 | echo $ac_n "checking for size_t""... $ac_c" 1>&6 |
d6853540 | 12611 | echo "configure:12612: checking for size_t" >&5 |
698dcdb6 VZ |
12612 | if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then |
12613 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 12614 | else |
698dcdb6 | 12615 | cat > conftest.$ac_ext <<EOF |
d6853540 | 12616 | #line 12617 "configure" |
10f2d63a | 12617 | #include "confdefs.h" |
698dcdb6 VZ |
12618 | #include <sys/types.h> |
12619 | #if STDC_HEADERS | |
12620 | #include <stdlib.h> | |
12621 | #include <stddef.h> | |
12622 | #endif | |
12623 | EOF | |
12624 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
12625 | egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then | |
12626 | rm -rf conftest* | |
10f2d63a VZ |
12627 | ac_cv_type_size_t=yes |
12628 | else | |
698dcdb6 VZ |
12629 | rm -rf conftest* |
12630 | ac_cv_type_size_t=no | |
703e0a69 | 12631 | fi |
698dcdb6 | 12632 | rm -f conftest* |
1e487827 | 12633 | |
698dcdb6 VZ |
12634 | fi |
12635 | echo "$ac_t""$ac_cv_type_size_t" 1>&6 | |
12636 | if test $ac_cv_type_size_t = no; then | |
12637 | cat >> confdefs.h <<\EOF | |
10f2d63a VZ |
12638 | #define size_t unsigned |
12639 | EOF | |
12640 | ||
12641 | fi | |
12642 | ||
698dcdb6 | 12643 | echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6 |
d6853540 | 12644 | echo "configure:12645: checking for uid_t in sys/types.h" >&5 |
698dcdb6 VZ |
12645 | if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then |
12646 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 12647 | else |
698dcdb6 | 12648 | cat > conftest.$ac_ext <<EOF |
d6853540 | 12649 | #line 12650 "configure" |
10f2d63a VZ |
12650 | #include "confdefs.h" |
12651 | #include <sys/types.h> | |
698dcdb6 | 12652 | EOF |
10f2d63a VZ |
12653 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
12654 | egrep "uid_t" >/dev/null 2>&1; then | |
698dcdb6 | 12655 | rm -rf conftest* |
10f2d63a VZ |
12656 | ac_cv_type_uid_t=yes |
12657 | else | |
698dcdb6 | 12658 | rm -rf conftest* |
10f2d63a VZ |
12659 | ac_cv_type_uid_t=no |
12660 | fi | |
12661 | rm -f conftest* | |
12662 | ||
12663 | fi | |
1e487827 | 12664 | |
698dcdb6 VZ |
12665 | echo "$ac_t""$ac_cv_type_uid_t" 1>&6 |
12666 | if test $ac_cv_type_uid_t = no; then | |
12667 | cat >> confdefs.h <<\EOF | |
10f2d63a VZ |
12668 | #define uid_t int |
12669 | EOF | |
12670 | ||
698dcdb6 | 12671 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
12672 | #define gid_t int |
12673 | EOF | |
12674 | ||
12675 | fi | |
12676 | ||
1e487827 | 12677 | |
698dcdb6 | 12678 | echo $ac_n "checking for wchar_t""... $ac_c" 1>&6 |
d6853540 | 12679 | echo "configure:12680: checking for wchar_t" >&5 |
698dcdb6 VZ |
12680 | if eval "test \"`echo '$''{'wx_cv_type_wchar_t'+set}'`\" = set"; then |
12681 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12682 | else | |
12683 | ||
12684 | cat > conftest.$ac_ext <<EOF | |
d6853540 | 12685 | #line 12686 "configure" |
0046ff7c VS |
12686 | #include "confdefs.h" |
12687 | #include <wchar.h> | |
698dcdb6 | 12688 | int main() { |
0046ff7c | 12689 | |
d836ee96 VZ |
12690 | wchar_t wc, *ws; |
12691 | wc = L'a'; | |
12692 | ws = L"Hello, world!"; | |
698dcdb6 VZ |
12693 | |
12694 | ; return 0; } | |
12695 | EOF | |
d6853540 | 12696 | if { (eval echo configure:12697: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 | 12697 | rm -rf conftest* |
1f8ae82f | 12698 | wx_cv_type_wchar_t=yes |
0046ff7c | 12699 | else |
698dcdb6 VZ |
12700 | echo "configure: failed program was:" >&5 |
12701 | cat conftest.$ac_ext >&5 | |
12702 | rm -rf conftest* | |
12703 | wx_cv_type_wchar_t=no | |
d836ee96 | 12704 | |
6232543b | 12705 | fi |
698dcdb6 | 12706 | rm -f conftest* |
703e0a69 | 12707 | |
1e487827 | 12708 | fi |
698dcdb6 VZ |
12709 | |
12710 | echo "$ac_t""$wx_cv_type_wchar_t" 1>&6 | |
d836ee96 VZ |
12711 | |
12712 | if test "$wx_cv_type_wchar_t" = "yes"; then | |
698dcdb6 | 12713 | cat >> confdefs.h <<\EOF |
0046ff7c VS |
12714 | #define wxUSE_WCHAR_T 1 |
12715 | EOF | |
12716 | ||
12717 | fi | |
12718 | ||
19af3b06 VZ |
12719 | |
12720 | ac_ext=C | |
12721 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
12722 | ac_cpp='$CXXCPP $CPPFLAGS' | |
12723 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
12724 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
12725 | cross_compiling=$ac_cv_prog_cxx_cross | |
12726 | ||
d836ee96 | 12727 | echo $ac_n "checking if size_t is unsigned int""... $ac_c" 1>&6 |
d6853540 | 12728 | echo "configure:12729: checking if size_t is unsigned int" >&5 |
d836ee96 VZ |
12729 | if eval "test \"`echo '$''{'wx_cv_size_t_is_uint'+set}'`\" = set"; then |
12730 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12731 | else | |
dd2c8b7c | 12732 | cat > conftest.$ac_ext <<EOF |
d6853540 | 12733 | #line 12734 "configure" |
d836ee96 VZ |
12734 | #include "confdefs.h" |
12735 | #include <stddef.h> | |
12736 | int main() { | |
12737 | ||
dd2c8b7c VZ |
12738 | return 0; } |
12739 | ||
d836ee96 | 12740 | struct Foo { void foo(size_t); void foo(unsigned int); }; |
dd2c8b7c VZ |
12741 | |
12742 | int bar() { | |
d836ee96 VZ |
12743 | |
12744 | ; return 0; } | |
12745 | EOF | |
d6853540 | 12746 | if { (eval echo configure:12747: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
d836ee96 VZ |
12747 | rm -rf conftest* |
12748 | wx_cv_size_t_is_uint=no | |
12749 | else | |
12750 | echo "configure: failed program was:" >&5 | |
12751 | cat conftest.$ac_ext >&5 | |
12752 | rm -rf conftest* | |
12753 | wx_cv_size_t_is_uint=yes | |
12754 | ||
12755 | fi | |
12756 | rm -f conftest* | |
12757 | ||
12758 | fi | |
12759 | ||
12760 | echo "$ac_t""$wx_cv_size_t_is_uint" 1>&6 | |
12761 | ||
12762 | if test "$wx_cv_size_t_is_uint" = "yes"; then | |
12763 | cat >> confdefs.h <<\EOF | |
12764 | #define wxSIZE_T_IS_UINT 1 | |
12765 | EOF | |
12766 | ||
12767 | else | |
12768 | echo $ac_n "checking if size_t is unsigned long""... $ac_c" 1>&6 | |
d6853540 | 12769 | echo "configure:12770: checking if size_t is unsigned long" >&5 |
d836ee96 VZ |
12770 | if eval "test \"`echo '$''{'wx_cv_size_t_is_ulong'+set}'`\" = set"; then |
12771 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12772 | else | |
12773 | cat > conftest.$ac_ext <<EOF | |
d6853540 | 12774 | #line 12775 "configure" |
d836ee96 VZ |
12775 | #include "confdefs.h" |
12776 | #include <stddef.h> | |
12777 | int main() { | |
12778 | ||
dd2c8b7c VZ |
12779 | return 0; } |
12780 | ||
d836ee96 | 12781 | struct Foo { void foo(size_t); void foo(unsigned long); }; |
dd2c8b7c VZ |
12782 | |
12783 | int bar() { | |
d836ee96 VZ |
12784 | |
12785 | ; return 0; } | |
12786 | EOF | |
d6853540 | 12787 | if { (eval echo configure:12788: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
d836ee96 VZ |
12788 | rm -rf conftest* |
12789 | wx_cv_size_t_is_ulong=no | |
12790 | else | |
12791 | echo "configure: failed program was:" >&5 | |
12792 | cat conftest.$ac_ext >&5 | |
12793 | rm -rf conftest* | |
12794 | wx_cv_size_t_is_ulong=yes | |
12795 | ||
12796 | fi | |
12797 | rm -f conftest* | |
12798 | ||
12799 | fi | |
12800 | ||
12801 | echo "$ac_t""$wx_cv_size_t_is_ulong" 1>&6 | |
12802 | ||
12803 | if test "$wx_cv_size_t_is_ulong" = "yes"; then | |
12804 | cat >> confdefs.h <<\EOF | |
12805 | #define wxSIZE_T_IS_ULONG 1 | |
12806 | EOF | |
12807 | ||
12808 | fi | |
12809 | fi | |
12810 | ||
19af3b06 VZ |
12811 | ac_ext=c |
12812 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
12813 | ac_cpp='$CPP $CPPFLAGS' | |
12814 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
12815 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
12816 | cross_compiling=$ac_cv_prog_cc_cross | |
12817 | ||
12818 | ||
1e487827 | 12819 | |
698dcdb6 | 12820 | echo $ac_n "checking for pw_gecos in struct passwd""... $ac_c" 1>&6 |
d6853540 | 12821 | echo "configure:12822: checking for pw_gecos in struct passwd" >&5 |
698dcdb6 VZ |
12822 | if eval "test \"`echo '$''{'wx_cv_struct_pw_gecos'+set}'`\" = set"; then |
12823 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12824 | else | |
12825 | ||
12826 | cat > conftest.$ac_ext <<EOF | |
d6853540 | 12827 | #line 12828 "configure" |
b12915c1 VZ |
12828 | #include "confdefs.h" |
12829 | #include <pwd.h> | |
698dcdb6 | 12830 | int main() { |
b12915c1 VZ |
12831 | |
12832 | char *p; | |
12833 | struct passwd *pw; | |
12834 | p = pw->pw_gecos; | |
698dcdb6 VZ |
12835 | |
12836 | ; return 0; } | |
12837 | EOF | |
d6853540 | 12838 | if { (eval echo configure:12839: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 VZ |
12839 | rm -rf conftest* |
12840 | ||
b12915c1 | 12841 | wx_cv_struct_pw_gecos=yes |
698dcdb6 | 12842 | |
b12915c1 | 12843 | else |
698dcdb6 VZ |
12844 | echo "configure: failed program was:" >&5 |
12845 | cat conftest.$ac_ext >&5 | |
12846 | rm -rf conftest* | |
12847 | ||
b12915c1 | 12848 | wx_cv_struct_pw_gecos=no |
698dcdb6 VZ |
12849 | |
12850 | ||
6232543b | 12851 | fi |
698dcdb6 VZ |
12852 | rm -f conftest* |
12853 | ||
703e0a69 | 12854 | |
1e487827 | 12855 | fi |
698dcdb6 VZ |
12856 | |
12857 | echo "$ac_t""$wx_cv_struct_pw_gecos" 1>&6 | |
b12915c1 | 12858 | |
bd3277fe | 12859 | if test "$wx_cv_struct_pw_gecos" = "yes"; then |
698dcdb6 | 12860 | cat >> confdefs.h <<\EOF |
bd3277fe VZ |
12861 | #define HAVE_PW_GECOS 1 |
12862 | EOF | |
12863 | ||
12864 | fi | |
12865 | ||
698dcdb6 VZ |
12866 | |
12867 | echo $ac_n "checking for working const""... $ac_c" 1>&6 | |
d6853540 | 12868 | echo "configure:12869: checking for working const" >&5 |
698dcdb6 VZ |
12869 | if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then |
12870 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 12871 | else |
698dcdb6 | 12872 | cat > conftest.$ac_ext <<EOF |
d6853540 | 12873 | #line 12874 "configure" |
10f2d63a | 12874 | #include "confdefs.h" |
698dcdb6 VZ |
12875 | |
12876 | int main() { | |
12877 | ||
12878 | /* Ultrix mips cc rejects this. */ | |
a3df447d | 12879 | typedef int charset[2]; const charset x; |
698dcdb6 VZ |
12880 | /* SunOS 4.1.1 cc rejects this. */ |
12881 | char const *const *ccp; | |
12882 | char **p; | |
12883 | /* NEC SVR4.0.2 mips cc rejects this. */ | |
12884 | struct point {int x, y;}; | |
12885 | static struct point const zero = {0,0}; | |
12886 | /* AIX XL C 1.02.0.0 rejects this. | |
12887 | It does not let you subtract one const X* pointer from another in an arm | |
12888 | of an if-expression whose if-part is not a constant expression */ | |
12889 | const char *g = "string"; | |
12890 | ccp = &g + (g ? g-g : 0); | |
12891 | /* HPUX 7.0 cc rejects these. */ | |
12892 | ++ccp; | |
12893 | p = (char**) ccp; | |
12894 | ccp = (char const *const *) p; | |
12895 | { /* SCO 3.2v4 cc rejects this. */ | |
12896 | char *t; | |
12897 | char const *s = 0 ? (char *) 0 : (char const *) 0; | |
12898 | ||
12899 | *t++ = 0; | |
10f2d63a | 12900 | } |
698dcdb6 VZ |
12901 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ |
12902 | int x[] = {25, 17}; | |
12903 | const int *foo = &x[0]; | |
12904 | ++foo; | |
703e0a69 | 12905 | } |
698dcdb6 VZ |
12906 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ |
12907 | typedef const int *iptr; | |
12908 | iptr p = 0; | |
12909 | ++p; | |
6232543b | 12910 | } |
698dcdb6 VZ |
12911 | { /* AIX XL C 1.02.0.0 rejects this saying |
12912 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ | |
12913 | struct s { int j; const int *ap[3]; }; | |
12914 | struct s *b; b->j = 5; | |
1e487827 | 12915 | } |
698dcdb6 VZ |
12916 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ |
12917 | const int foo = 10; | |
12918 | } | |
4f14bcd8 GD |
12919 | |
12920 | ; return 0; } | |
698dcdb6 | 12921 | EOF |
d6853540 | 12922 | if { (eval echo configure:12923: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
4f14bcd8 GD |
12923 | rm -rf conftest* |
12924 | ac_cv_c_const=yes | |
698dcdb6 VZ |
12925 | else |
12926 | echo "configure: failed program was:" >&5 | |
12927 | cat conftest.$ac_ext >&5 | |
4f14bcd8 GD |
12928 | rm -rf conftest* |
12929 | ac_cv_c_const=no | |
703e0a69 | 12930 | fi |
4f14bcd8 | 12931 | rm -f conftest* |
698dcdb6 VZ |
12932 | fi |
12933 | ||
4f14bcd8 GD |
12934 | echo "$ac_t""$ac_cv_c_const" 1>&6 |
12935 | if test $ac_cv_c_const = no; then | |
12936 | cat >> confdefs.h <<\EOF | |
12937 | #define const | |
698dcdb6 VZ |
12938 | EOF |
12939 | ||
4f14bcd8 | 12940 | fi |
698dcdb6 | 12941 | |
4f14bcd8 | 12942 | echo $ac_n "checking for inline""... $ac_c" 1>&6 |
d6853540 | 12943 | echo "configure:12944: checking for inline" >&5 |
4f14bcd8 | 12944 | if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then |
698dcdb6 | 12945 | echo $ac_n "(cached) $ac_c" 1>&6 |
10f2d63a | 12946 | else |
4f14bcd8 GD |
12947 | ac_cv_c_inline=no |
12948 | for ac_kw in inline __inline__ __inline; do | |
698dcdb6 | 12949 | cat > conftest.$ac_ext <<EOF |
d6853540 | 12950 | #line 12951 "configure" |
10f2d63a | 12951 | #include "confdefs.h" |
4f14bcd8 GD |
12952 | |
12953 | int main() { | |
a3df447d | 12954 | } $ac_kw foo() { |
4f14bcd8 | 12955 | ; return 0; } |
698dcdb6 | 12956 | EOF |
d6853540 | 12957 | if { (eval echo configure:12958: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
4f14bcd8 GD |
12958 | rm -rf conftest* |
12959 | ac_cv_c_inline=$ac_kw; break | |
10f2d63a | 12960 | else |
698dcdb6 VZ |
12961 | echo "configure: failed program was:" >&5 |
12962 | cat conftest.$ac_ext >&5 | |
10f2d63a | 12963 | fi |
4f14bcd8 GD |
12964 | rm -f conftest* |
12965 | done | |
698dcdb6 | 12966 | |
10f2d63a | 12967 | fi |
4f14bcd8 GD |
12968 | |
12969 | echo "$ac_t""$ac_cv_c_inline" 1>&6 | |
12970 | case "$ac_cv_c_inline" in | |
12971 | inline | yes) ;; | |
12972 | no) cat >> confdefs.h <<\EOF | |
12973 | #define inline | |
12974 | EOF | |
12975 | ;; | |
12976 | *) cat >> confdefs.h <<EOF | |
12977 | #define inline $ac_cv_c_inline | |
698dcdb6 | 12978 | EOF |
4f14bcd8 GD |
12979 | ;; |
12980 | esac | |
698dcdb6 VZ |
12981 | |
12982 | ||
4f14bcd8 | 12983 | echo $ac_n "checking size of char""... $ac_c" 1>&6 |
d6853540 | 12984 | echo "configure:12985: checking size of char" >&5 |
4f14bcd8 | 12985 | if eval "test \"`echo '$''{'ac_cv_sizeof_char'+set}'`\" = set"; then |
698dcdb6 VZ |
12986 | echo $ac_n "(cached) $ac_c" 1>&6 |
12987 | else | |
12988 | if test "$cross_compiling" = yes; then | |
4f14bcd8 | 12989 | ac_cv_sizeof_char=1 |
698dcdb6 VZ |
12990 | else |
12991 | cat > conftest.$ac_ext <<EOF | |
d6853540 | 12992 | #line 12993 "configure" |
698dcdb6 VZ |
12993 | #include "confdefs.h" |
12994 | #include <stdio.h> | |
77e13408 | 12995 | #include <sys/types.h> |
698dcdb6 VZ |
12996 | main() |
12997 | { | |
12998 | FILE *f=fopen("conftestval", "w"); | |
12999 | if (!f) exit(1); | |
4f14bcd8 | 13000 | fprintf(f, "%d\n", sizeof(char)); |
698dcdb6 VZ |
13001 | exit(0); |
13002 | } | |
13003 | EOF | |
d6853540 | 13004 | if { (eval echo configure:13005: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
698dcdb6 | 13005 | then |
4f14bcd8 | 13006 | ac_cv_sizeof_char=`cat conftestval` |
6232543b | 13007 | else |
698dcdb6 VZ |
13008 | echo "configure: failed program was:" >&5 |
13009 | cat conftest.$ac_ext >&5 | |
13010 | rm -fr conftest* | |
4f14bcd8 | 13011 | ac_cv_sizeof_char=0 |
6232543b | 13012 | fi |
698dcdb6 VZ |
13013 | rm -fr conftest* |
13014 | fi | |
13015 | ||
703e0a69 | 13016 | fi |
4f14bcd8 | 13017 | echo "$ac_t""$ac_cv_sizeof_char" 1>&6 |
698dcdb6 | 13018 | cat >> confdefs.h <<EOF |
4f14bcd8 | 13019 | #define SIZEOF_CHAR $ac_cv_sizeof_char |
10f2d63a VZ |
13020 | EOF |
13021 | ||
1e487827 | 13022 | |
4f14bcd8 | 13023 | echo $ac_n "checking size of short""... $ac_c" 1>&6 |
d6853540 | 13024 | echo "configure:13025: checking size of short" >&5 |
4f14bcd8 | 13025 | if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then |
698dcdb6 VZ |
13026 | echo $ac_n "(cached) $ac_c" 1>&6 |
13027 | else | |
4f14bcd8 GD |
13028 | if test "$cross_compiling" = yes; then |
13029 | ac_cv_sizeof_short=2 | |
b93d0d08 | 13030 | else |
698dcdb6 | 13031 | cat > conftest.$ac_ext <<EOF |
d6853540 | 13032 | #line 13033 "configure" |
b93d0d08 | 13033 | #include "confdefs.h" |
4f14bcd8 | 13034 | #include <stdio.h> |
77e13408 | 13035 | #include <sys/types.h> |
4f14bcd8 GD |
13036 | main() |
13037 | { | |
13038 | FILE *f=fopen("conftestval", "w"); | |
13039 | if (!f) exit(1); | |
13040 | fprintf(f, "%d\n", sizeof(short)); | |
13041 | exit(0); | |
13042 | } | |
698dcdb6 | 13043 | EOF |
d6853540 | 13044 | if { (eval echo configure:13045: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
698dcdb6 | 13045 | then |
4f14bcd8 | 13046 | ac_cv_sizeof_short=`cat conftestval` |
b93d0d08 | 13047 | else |
698dcdb6 VZ |
13048 | echo "configure: failed program was:" >&5 |
13049 | cat conftest.$ac_ext >&5 | |
13050 | rm -fr conftest* | |
4f14bcd8 | 13051 | ac_cv_sizeof_short=0 |
b93d0d08 | 13052 | fi |
698dcdb6 | 13053 | rm -fr conftest* |
b93d0d08 VS |
13054 | fi |
13055 | ||
b93d0d08 | 13056 | fi |
4f14bcd8 | 13057 | echo "$ac_t""$ac_cv_sizeof_short" 1>&6 |
698dcdb6 | 13058 | cat >> confdefs.h <<EOF |
4f14bcd8 | 13059 | #define SIZEOF_SHORT $ac_cv_sizeof_short |
b93d0d08 VS |
13060 | EOF |
13061 | ||
698dcdb6 | 13062 | |
4f14bcd8 | 13063 | echo $ac_n "checking size of int *""... $ac_c" 1>&6 |
d6853540 | 13064 | echo "configure:13065: checking size of int *" >&5 |
4f14bcd8 | 13065 | if eval "test \"`echo '$''{'ac_cv_sizeof_int_p'+set}'`\" = set"; then |
698dcdb6 | 13066 | echo $ac_n "(cached) $ac_c" 1>&6 |
10f2d63a | 13067 | else |
4f14bcd8 GD |
13068 | if test "$cross_compiling" = yes; then |
13069 | ac_cv_sizeof_int_p=4 | |
3a922bb4 | 13070 | else |
3a922bb4 | 13071 | cat > conftest.$ac_ext <<EOF |
d6853540 | 13072 | #line 13073 "configure" |
3a922bb4 | 13073 | #include "confdefs.h" |
4f14bcd8 | 13074 | #include <stdio.h> |
77e13408 | 13075 | #include <sys/types.h> |
4f14bcd8 GD |
13076 | main() |
13077 | { | |
13078 | FILE *f=fopen("conftestval", "w"); | |
13079 | if (!f) exit(1); | |
13080 | fprintf(f, "%d\n", sizeof(int *)); | |
13081 | exit(0); | |
13082 | } | |
13083 | EOF | |
d6853540 | 13084 | if { (eval echo configure:13085: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
4f14bcd8 GD |
13085 | then |
13086 | ac_cv_sizeof_int_p=`cat conftestval` | |
13087 | else | |
13088 | echo "configure: failed program was:" >&5 | |
13089 | cat conftest.$ac_ext >&5 | |
13090 | rm -fr conftest* | |
13091 | ac_cv_sizeof_int_p=0 | |
3a922bb4 | 13092 | fi |
4f14bcd8 | 13093 | rm -fr conftest* |
3a922bb4 | 13094 | fi |
698dcdb6 | 13095 | |
4f14bcd8 GD |
13096 | fi |
13097 | echo "$ac_t""$ac_cv_sizeof_int_p" 1>&6 | |
13098 | cat >> confdefs.h <<EOF | |
13099 | #define SIZEOF_INT_P $ac_cv_sizeof_int_p | |
10f2d63a VZ |
13100 | EOF |
13101 | ||
703e0a69 | 13102 | |
4f14bcd8 | 13103 | echo $ac_n "checking size of int""... $ac_c" 1>&6 |
d6853540 | 13104 | echo "configure:13105: checking size of int" >&5 |
4f14bcd8 | 13105 | if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then |
698dcdb6 | 13106 | echo $ac_n "(cached) $ac_c" 1>&6 |
4f14bcd8 GD |
13107 | else |
13108 | if test "$cross_compiling" = yes; then | |
13109 | ac_cv_sizeof_int=4 | |
698dcdb6 VZ |
13110 | else |
13111 | cat > conftest.$ac_ext <<EOF | |
d6853540 | 13112 | #line 13113 "configure" |
10f2d63a | 13113 | #include "confdefs.h" |
4f14bcd8 | 13114 | #include <stdio.h> |
77e13408 | 13115 | #include <sys/types.h> |
4f14bcd8 GD |
13116 | main() |
13117 | { | |
13118 | FILE *f=fopen("conftestval", "w"); | |
13119 | if (!f) exit(1); | |
13120 | fprintf(f, "%d\n", sizeof(int)); | |
13121 | exit(0); | |
13122 | } | |
698dcdb6 | 13123 | EOF |
d6853540 | 13124 | if { (eval echo configure:13125: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
4f14bcd8 GD |
13125 | then |
13126 | ac_cv_sizeof_int=`cat conftestval` | |
10f2d63a | 13127 | else |
698dcdb6 | 13128 | echo "configure: failed program was:" >&5 |
10f2d63a | 13129 | cat conftest.$ac_ext >&5 |
4f14bcd8 GD |
13130 | rm -fr conftest* |
13131 | ac_cv_sizeof_int=0 | |
10f2d63a | 13132 | fi |
4f14bcd8 | 13133 | rm -fr conftest* |
10f2d63a | 13134 | fi |
10f2d63a | 13135 | |
4f14bcd8 GD |
13136 | fi |
13137 | echo "$ac_t""$ac_cv_sizeof_int" 1>&6 | |
13138 | cat >> confdefs.h <<EOF | |
13139 | #define SIZEOF_INT $ac_cv_sizeof_int | |
10f2d63a VZ |
13140 | EOF |
13141 | ||
698dcdb6 | 13142 | |
4f14bcd8 | 13143 | echo $ac_n "checking size of long""... $ac_c" 1>&6 |
d6853540 | 13144 | echo "configure:13145: checking size of long" >&5 |
4f14bcd8 | 13145 | if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then |
698dcdb6 VZ |
13146 | echo $ac_n "(cached) $ac_c" 1>&6 |
13147 | else | |
4f14bcd8 GD |
13148 | if test "$cross_compiling" = yes; then |
13149 | ac_cv_sizeof_long=4 | |
13150 | else | |
13151 | cat > conftest.$ac_ext <<EOF | |
d6853540 | 13152 | #line 13153 "configure" |
10f2d63a | 13153 | #include "confdefs.h" |
4f14bcd8 | 13154 | #include <stdio.h> |
77e13408 | 13155 | #include <sys/types.h> |
4f14bcd8 GD |
13156 | main() |
13157 | { | |
13158 | FILE *f=fopen("conftestval", "w"); | |
13159 | if (!f) exit(1); | |
13160 | fprintf(f, "%d\n", sizeof(long)); | |
13161 | exit(0); | |
13162 | } | |
698dcdb6 | 13163 | EOF |
d6853540 | 13164 | if { (eval echo configure:13165: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
4f14bcd8 GD |
13165 | then |
13166 | ac_cv_sizeof_long=`cat conftestval` | |
10f2d63a | 13167 | else |
698dcdb6 VZ |
13168 | echo "configure: failed program was:" >&5 |
13169 | cat conftest.$ac_ext >&5 | |
4f14bcd8 GD |
13170 | rm -fr conftest* |
13171 | ac_cv_sizeof_long=0 | |
10f2d63a | 13172 | fi |
4f14bcd8 | 13173 | rm -fr conftest* |
10f2d63a | 13174 | fi |
698dcdb6 | 13175 | |
4f14bcd8 GD |
13176 | fi |
13177 | echo "$ac_t""$ac_cv_sizeof_long" 1>&6 | |
13178 | cat >> confdefs.h <<EOF | |
13179 | #define SIZEOF_LONG $ac_cv_sizeof_long | |
10f2d63a VZ |
13180 | EOF |
13181 | ||
698dcdb6 | 13182 | |
4f14bcd8 | 13183 | echo $ac_n "checking size of long long""... $ac_c" 1>&6 |
d6853540 | 13184 | echo "configure:13185: checking size of long long" >&5 |
4f14bcd8 | 13185 | if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then |
698dcdb6 | 13186 | echo $ac_n "(cached) $ac_c" 1>&6 |
10f2d63a | 13187 | else |
4f14bcd8 GD |
13188 | if test "$cross_compiling" = yes; then |
13189 | ac_cv_sizeof_long_long=0 | |
13190 | else | |
13191 | cat > conftest.$ac_ext <<EOF | |
d6853540 | 13192 | #line 13193 "configure" |
10f2d63a | 13193 | #include "confdefs.h" |
4f14bcd8 | 13194 | #include <stdio.h> |
77e13408 | 13195 | #include <sys/types.h> |
4f14bcd8 GD |
13196 | main() |
13197 | { | |
13198 | FILE *f=fopen("conftestval", "w"); | |
13199 | if (!f) exit(1); | |
13200 | fprintf(f, "%d\n", sizeof(long long)); | |
13201 | exit(0); | |
13202 | } | |
698dcdb6 | 13203 | EOF |
d6853540 | 13204 | if { (eval echo configure:13205: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
4f14bcd8 GD |
13205 | then |
13206 | ac_cv_sizeof_long_long=`cat conftestval` | |
698dcdb6 VZ |
13207 | else |
13208 | echo "configure: failed program was:" >&5 | |
13209 | cat conftest.$ac_ext >&5 | |
4f14bcd8 GD |
13210 | rm -fr conftest* |
13211 | ac_cv_sizeof_long_long=0 | |
13212 | fi | |
13213 | rm -fr conftest* | |
698dcdb6 | 13214 | fi |
698dcdb6 VZ |
13215 | |
13216 | fi | |
4f14bcd8 GD |
13217 | echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6 |
13218 | cat >> confdefs.h <<EOF | |
13219 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long | |
10f2d63a VZ |
13220 | EOF |
13221 | ||
10f2d63a | 13222 | |
4f14bcd8 GD |
13223 | |
13224 | echo $ac_n "checking size of wchar_t""... $ac_c" 1>&6 | |
d6853540 | 13225 | echo "configure:13226: checking size of wchar_t" >&5 |
4f14bcd8 | 13226 | if eval "test \"`echo '$''{'wx_cv_sizeof_wchar_t'+set}'`\" = set"; then |
698dcdb6 | 13227 | echo $ac_n "(cached) $ac_c" 1>&6 |
10f2d63a | 13228 | else |
4f14bcd8 GD |
13229 | |
13230 | if test "$cross_compiling" = yes; then | |
13231 | wx_cv_sizeof_wchar_t=4 | |
13232 | ||
13233 | else | |
13234 | cat > conftest.$ac_ext <<EOF | |
d6853540 | 13235 | #line 13236 "configure" |
10f2d63a | 13236 | #include "confdefs.h" |
698dcdb6 | 13237 | |
4f14bcd8 GD |
13238 | #ifdef HAVE_WCHAR_H |
13239 | # include <wchar.h> | |
13240 | #endif | |
13241 | #ifdef HAVE_STDLIB_H | |
13242 | # include <stdlib.h> | |
13243 | #endif | |
13244 | #include <stdio.h> | |
13245 | int main() | |
13246 | { | |
13247 | FILE *f=fopen("conftestval", "w"); | |
13248 | if (!f) exit(1); | |
13249 | fprintf(f, "%i", sizeof(wchar_t)); | |
13250 | exit(0); | |
13251 | } | |
13252 | ||
698dcdb6 | 13253 | EOF |
d6853540 | 13254 | if { (eval echo configure:13255: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
4f14bcd8 GD |
13255 | then |
13256 | wx_cv_sizeof_wchar_t=`cat conftestval` | |
698dcdb6 VZ |
13257 | else |
13258 | echo "configure: failed program was:" >&5 | |
13259 | cat conftest.$ac_ext >&5 | |
4f14bcd8 GD |
13260 | rm -fr conftest* |
13261 | wx_cv_sizeof_wchar_t=0 | |
698dcdb6 | 13262 | fi |
4f14bcd8 GD |
13263 | rm -fr conftest* |
13264 | fi | |
13265 | ||
698dcdb6 VZ |
13266 | |
13267 | fi | |
4f14bcd8 GD |
13268 | |
13269 | echo "$ac_t""$wx_cv_sizeof_wchar_t" 1>&6 | |
13270 | ||
13271 | cat >> confdefs.h <<EOF | |
13272 | #define SIZEOF_WCHAR_T $wx_cv_sizeof_wchar_t | |
10f2d63a VZ |
13273 | EOF |
13274 | ||
18dbb1f6 | 13275 | |
4f14bcd8 | 13276 | echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6 |
d6853540 | 13277 | echo "configure:13278: checking whether byte ordering is bigendian" >&5 |
4f14bcd8 | 13278 | if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then |
18dbb1f6 VZ |
13279 | echo $ac_n "(cached) $ac_c" 1>&6 |
13280 | else | |
4f14bcd8 GD |
13281 | ac_cv_c_bigendian=unknown |
13282 | # See if sys/param.h defines the BYTE_ORDER macro. | |
18dbb1f6 | 13283 | cat > conftest.$ac_ext <<EOF |
d6853540 | 13284 | #line 13285 "configure" |
18dbb1f6 | 13285 | #include "confdefs.h" |
4f14bcd8 GD |
13286 | #include <sys/types.h> |
13287 | #include <sys/param.h> | |
13288 | int main() { | |
18dbb1f6 | 13289 | |
4f14bcd8 GD |
13290 | #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN |
13291 | bogus endian macros | |
13292 | #endif | |
13293 | ; return 0; } | |
13294 | EOF | |
d6853540 | 13295 | if { (eval echo configure:13296: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
4f14bcd8 GD |
13296 | rm -rf conftest* |
13297 | # It does; now see whether it defined to BIG_ENDIAN or not. | |
13298 | cat > conftest.$ac_ext <<EOF | |
d6853540 | 13299 | #line 13300 "configure" |
4f14bcd8 GD |
13300 | #include "confdefs.h" |
13301 | #include <sys/types.h> | |
13302 | #include <sys/param.h> | |
18dbb1f6 | 13303 | int main() { |
4f14bcd8 GD |
13304 | |
13305 | #if BYTE_ORDER != BIG_ENDIAN | |
13306 | not big endian | |
13307 | #endif | |
18dbb1f6 VZ |
13308 | ; return 0; } |
13309 | EOF | |
d6853540 | 13310 | if { (eval echo configure:13311: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
18dbb1f6 | 13311 | rm -rf conftest* |
4f14bcd8 | 13312 | ac_cv_c_bigendian=yes |
18dbb1f6 VZ |
13313 | else |
13314 | echo "configure: failed program was:" >&5 | |
13315 | cat conftest.$ac_ext >&5 | |
13316 | rm -rf conftest* | |
4f14bcd8 | 13317 | ac_cv_c_bigendian=no |
18dbb1f6 VZ |
13318 | fi |
13319 | rm -f conftest* | |
698dcdb6 | 13320 | else |
4f14bcd8 GD |
13321 | echo "configure: failed program was:" >&5 |
13322 | cat conftest.$ac_ext >&5 | |
1e487827 | 13323 | fi |
4f14bcd8 GD |
13324 | rm -f conftest* |
13325 | if test $ac_cv_c_bigendian = unknown; then | |
13326 | if test "$cross_compiling" = yes; then | |
13327 | ac_cv_c_bigendian=unknown | |
b3e8d00a VZ |
13328 | else |
13329 | cat > conftest.$ac_ext <<EOF | |
d6853540 | 13330 | #line 13331 "configure" |
b3e8d00a | 13331 | #include "confdefs.h" |
4f14bcd8 GD |
13332 | main () { |
13333 | /* Are we little or big endian? From Harbison&Steele. */ | |
13334 | union | |
13335 | { | |
13336 | long l; | |
13337 | char c[sizeof (long)]; | |
13338 | } u; | |
13339 | u.l = 1; | |
13340 | exit (u.c[sizeof (long) - 1] == 1); | |
13341 | } | |
b3e8d00a | 13342 | EOF |
d6853540 | 13343 | if { (eval echo configure:13344: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
4f14bcd8 GD |
13344 | then |
13345 | ac_cv_c_bigendian=no | |
b3e8d00a VZ |
13346 | else |
13347 | echo "configure: failed program was:" >&5 | |
13348 | cat conftest.$ac_ext >&5 | |
4f14bcd8 GD |
13349 | rm -fr conftest* |
13350 | ac_cv_c_bigendian=yes | |
b3e8d00a | 13351 | fi |
4f14bcd8 | 13352 | rm -fr conftest* |
b3e8d00a VZ |
13353 | fi |
13354 | ||
4f14bcd8 GD |
13355 | fi |
13356 | fi | |
13357 | ||
13358 | echo "$ac_t""$ac_cv_c_bigendian" 1>&6 | |
13359 | if test $ac_cv_c_bigendian = unknown; then | |
13360 | 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 | |
13361 | fi | |
13362 | if test $ac_cv_c_bigendian = yes; then | |
13363 | cat >> confdefs.h <<\EOF | |
13364 | #define WORDS_BIGENDIAN 1 | |
b3e8d00a | 13365 | EOF |
4f14bcd8 | 13366 | |
b3e8d00a | 13367 | fi |
b3e8d00a VZ |
13368 | |
13369 | ||
4f14bcd8 | 13370 | echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6 |
d6853540 | 13371 | echo "configure:13372: checking how to run the C++ preprocessor" >&5 |
4f14bcd8 GD |
13372 | if test -z "$CXXCPP"; then |
13373 | if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then | |
698dcdb6 VZ |
13374 | echo $ac_n "(cached) $ac_c" 1>&6 |
13375 | else | |
4f14bcd8 GD |
13376 | ac_ext=C |
13377 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
13378 | ac_cpp='$CXXCPP $CPPFLAGS' | |
13379 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
13380 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
13381 | cross_compiling=$ac_cv_prog_cxx_cross | |
13382 | CXXCPP="${CXX-g++} -E" | |
698dcdb6 | 13383 | cat > conftest.$ac_ext <<EOF |
d6853540 | 13384 | #line 13385 "configure" |
10f2d63a | 13385 | #include "confdefs.h" |
4f14bcd8 | 13386 | #include <stdlib.h> |
698dcdb6 | 13387 | EOF |
4f14bcd8 | 13388 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
d6853540 | 13389 | { (eval echo configure:13390: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
4f14bcd8 GD |
13390 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
13391 | if test -z "$ac_err"; then | |
13392 | : | |
698dcdb6 | 13393 | else |
4f14bcd8 | 13394 | echo "$ac_err" >&5 |
698dcdb6 VZ |
13395 | echo "configure: failed program was:" >&5 |
13396 | cat conftest.$ac_ext >&5 | |
13397 | rm -rf conftest* | |
4f14bcd8 | 13398 | CXXCPP=/lib/cpp |
698dcdb6 VZ |
13399 | fi |
13400 | rm -f conftest* | |
4f14bcd8 GD |
13401 | ac_cv_prog_CXXCPP="$CXXCPP" |
13402 | ac_ext=C | |
13403 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
13404 | ac_cpp='$CXXCPP $CPPFLAGS' | |
13405 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
13406 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
13407 | cross_compiling=$ac_cv_prog_cxx_cross | |
13408 | fi | |
698dcdb6 | 13409 | fi |
4f14bcd8 GD |
13410 | CXXCPP="$ac_cv_prog_CXXCPP" |
13411 | echo "$ac_t""$CXXCPP" 1>&6 | |
698dcdb6 | 13412 | |
4f14bcd8 GD |
13413 | |
13414 | if test "$cross_compiling" = "yes"; then | |
13415 | cat >> confdefs.h <<\EOF | |
13416 | #define wxUSE_IOSTREAMH 1 | |
698dcdb6 VZ |
13417 | EOF |
13418 | ||
4f14bcd8 GD |
13419 | else |
13420 | ||
13421 | ac_ext=C | |
13422 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
13423 | ac_cpp='$CXXCPP $CPPFLAGS' | |
13424 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
13425 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
13426 | cross_compiling=$ac_cv_prog_cxx_cross | |
698dcdb6 | 13427 | |
4f14bcd8 GD |
13428 | |
13429 | for ac_hdr in iostream | |
13430 | do | |
13431 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
13432 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
d6853540 | 13433 | echo "configure:13434: checking for $ac_hdr" >&5 |
4f14bcd8 | 13434 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
698dcdb6 VZ |
13435 | echo $ac_n "(cached) $ac_c" 1>&6 |
13436 | else | |
13437 | cat > conftest.$ac_ext <<EOF | |
d6853540 | 13438 | #line 13439 "configure" |
10f2d63a | 13439 | #include "confdefs.h" |
4f14bcd8 | 13440 | #include <$ac_hdr> |
698dcdb6 | 13441 | EOF |
4f14bcd8 | 13442 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
d6853540 | 13443 | { (eval echo configure:13444: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
4f14bcd8 GD |
13444 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
13445 | if test -z "$ac_err"; then | |
698dcdb6 | 13446 | rm -rf conftest* |
4f14bcd8 | 13447 | eval "ac_cv_header_$ac_safe=yes" |
698dcdb6 | 13448 | else |
4f14bcd8 | 13449 | echo "$ac_err" >&5 |
698dcdb6 VZ |
13450 | echo "configure: failed program was:" >&5 |
13451 | cat conftest.$ac_ext >&5 | |
13452 | rm -rf conftest* | |
4f14bcd8 | 13453 | eval "ac_cv_header_$ac_safe=no" |
698dcdb6 VZ |
13454 | fi |
13455 | rm -f conftest* | |
13456 | fi | |
4f14bcd8 | 13457 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
698dcdb6 | 13458 | echo "$ac_t""yes" 1>&6 |
4f14bcd8 GD |
13459 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` |
13460 | cat >> confdefs.h <<EOF | |
13461 | #define $ac_tr_hdr 1 | |
10f2d63a | 13462 | EOF |
4f14bcd8 | 13463 | |
698dcdb6 VZ |
13464 | else |
13465 | echo "$ac_t""no" 1>&6 | |
10f2d63a | 13466 | fi |
4f14bcd8 | 13467 | done |
10f2d63a | 13468 | |
10f2d63a | 13469 | |
4f14bcd8 GD |
13470 | if test "$ac_cv_header_iostream" = "yes" ; then |
13471 | : | |
13472 | else | |
13473 | cat >> confdefs.h <<\EOF | |
13474 | #define wxUSE_IOSTREAMH 1 | |
13475 | EOF | |
13476 | ||
13477 | fi | |
1e487827 | 13478 | |
4f14bcd8 GD |
13479 | ac_ext=c |
13480 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
13481 | ac_cpp='$CPP $CPPFLAGS' | |
13482 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
13483 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
13484 | cross_compiling=$ac_cv_prog_cc_cross | |
698dcdb6 | 13485 | |
4f14bcd8 | 13486 | fi |
698dcdb6 VZ |
13487 | |
13488 | ||
13489 | ||
4f14bcd8 | 13490 | echo $ac_n "checking if C++ compiler supports bool""... $ac_c" 1>&6 |
d6853540 | 13491 | echo "configure:13492: checking if C++ compiler supports bool" >&5 |
4f14bcd8 | 13492 | if eval "test \"`echo '$''{'wx_cv_cpp_bool'+set}'`\" = set"; then |
698dcdb6 VZ |
13493 | echo $ac_n "(cached) $ac_c" 1>&6 |
13494 | else | |
13495 | ||
4f14bcd8 GD |
13496 | |
13497 | ac_ext=C | |
13498 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
13499 | ac_cpp='$CXXCPP $CPPFLAGS' | |
13500 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
13501 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
13502 | cross_compiling=$ac_cv_prog_cxx_cross | |
f6bcfd97 | 13503 | |
10f2d63a | 13504 | |
4f14bcd8 | 13505 | cat > conftest.$ac_ext <<EOF |
d6853540 | 13506 | #line 13507 "configure" |
4f14bcd8 | 13507 | #include "confdefs.h" |
10f2d63a | 13508 | |
4f14bcd8 GD |
13509 | |
13510 | int main() { | |
f6bcfd97 | 13511 | |
4f14bcd8 | 13512 | bool b = true; |
f6bcfd97 | 13513 | |
4f14bcd8 GD |
13514 | return 0; |
13515 | ||
698dcdb6 VZ |
13516 | ; return 0; } |
13517 | EOF | |
d6853540 | 13518 | if { (eval echo configure:13519: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 VZ |
13519 | rm -rf conftest* |
13520 | ||
4f14bcd8 GD |
13521 | wx_cv_cpp_bool=yes |
13522 | ||
10f2d63a | 13523 | else |
698dcdb6 VZ |
13524 | echo "configure: failed program was:" >&5 |
13525 | cat conftest.$ac_ext >&5 | |
13526 | rm -rf conftest* | |
13527 | ||
4f14bcd8 GD |
13528 | wx_cv_cpp_bool=no |
13529 | ||
13530 | ||
13531 | fi | |
13532 | rm -f conftest* | |
c521c494 | 13533 | |
4f14bcd8 GD |
13534 | ac_ext=c |
13535 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
13536 | ac_cpp='$CPP $CPPFLAGS' | |
13537 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
13538 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
13539 | cross_compiling=$ac_cv_prog_cc_cross | |
c521c494 | 13540 | |
4f14bcd8 GD |
13541 | |
13542 | fi | |
c521c494 | 13543 | |
4f14bcd8 | 13544 | echo "$ac_t""$wx_cv_cpp_bool" 1>&6 |
c521c494 | 13545 | |
4f14bcd8 GD |
13546 | if test "$wx_cv_cpp_bool" = "yes"; then |
13547 | cat >> confdefs.h <<\EOF | |
13548 | #define HAVE_BOOL 1 | |
13549 | EOF | |
c521c494 | 13550 | |
4f14bcd8 GD |
13551 | fi |
13552 | ||
13553 | ||
13554 | ||
13555 | echo $ac_n "checking for wcslen in -lc""... $ac_c" 1>&6 | |
d6853540 | 13556 | echo "configure:13557: checking for wcslen in -lc" >&5 |
4f14bcd8 GD |
13557 | ac_lib_var=`echo c'_'wcslen | sed 'y%./+-%__p_%'` |
13558 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
13559 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13560 | else | |
13561 | ac_save_LIBS="$LIBS" | |
13562 | LIBS="-lc $LIBS" | |
13563 | cat > conftest.$ac_ext <<EOF | |
d6853540 | 13564 | #line 13565 "configure" |
4f14bcd8 GD |
13565 | #include "confdefs.h" |
13566 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13567 | /* We use char because int might match the return type of a gcc2 | |
13568 | builtin and then its argument prototype would still apply. */ | |
13569 | char wcslen(); | |
13570 | ||
13571 | int main() { | |
13572 | wcslen() | |
698dcdb6 VZ |
13573 | ; return 0; } |
13574 | EOF | |
d6853540 | 13575 | if { (eval echo configure:13576: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 | 13576 | rm -rf conftest* |
4f14bcd8 | 13577 | eval "ac_cv_lib_$ac_lib_var=yes" |
c521c494 | 13578 | else |
698dcdb6 VZ |
13579 | echo "configure: failed program was:" >&5 |
13580 | cat conftest.$ac_ext >&5 | |
13581 | rm -rf conftest* | |
4f14bcd8 | 13582 | eval "ac_cv_lib_$ac_lib_var=no" |
6232543b | 13583 | fi |
698dcdb6 | 13584 | rm -f conftest* |
4f14bcd8 | 13585 | LIBS="$ac_save_LIBS" |
703e0a69 | 13586 | |
1e487827 | 13587 | fi |
4f14bcd8 GD |
13588 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
13589 | echo "$ac_t""yes" 1>&6 | |
13590 | ||
13591 | cat >> confdefs.h <<\EOF | |
13592 | #define HAVE_WCSLEN 1 | |
9d8deca0 VZ |
13593 | EOF |
13594 | ||
4f14bcd8 GD |
13595 | WCHAR_LINK="" |
13596 | ||
9d8deca0 | 13597 | else |
4f14bcd8 | 13598 | echo "$ac_t""no" 1>&6 |
9d8deca0 | 13599 | |
4f14bcd8 | 13600 | echo $ac_n "checking for wcslen in -lw""... $ac_c" 1>&6 |
d6853540 | 13601 | echo "configure:13602: checking for wcslen in -lw" >&5 |
4f14bcd8 GD |
13602 | ac_lib_var=`echo w'_'wcslen | sed 'y%./+-%__p_%'` |
13603 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
698dcdb6 | 13604 | echo $ac_n "(cached) $ac_c" 1>&6 |
10f2d63a | 13605 | else |
4f14bcd8 GD |
13606 | ac_save_LIBS="$LIBS" |
13607 | LIBS="-lw $LIBS" | |
13608 | cat > conftest.$ac_ext <<EOF | |
d6853540 | 13609 | #line 13610 "configure" |
10f2d63a | 13610 | #include "confdefs.h" |
4f14bcd8 GD |
13611 | /* Override any gcc2 internal prototype to avoid an error. */ |
13612 | /* We use char because int might match the return type of a gcc2 | |
13613 | builtin and then its argument prototype would still apply. */ | |
13614 | char wcslen(); | |
10f2d63a | 13615 | |
698dcdb6 | 13616 | int main() { |
4f14bcd8 | 13617 | wcslen() |
698dcdb6 VZ |
13618 | ; return 0; } |
13619 | EOF | |
d6853540 | 13620 | if { (eval echo configure:13621: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 | 13621 | rm -rf conftest* |
4f14bcd8 | 13622 | eval "ac_cv_lib_$ac_lib_var=yes" |
10f2d63a | 13623 | else |
698dcdb6 VZ |
13624 | echo "configure: failed program was:" >&5 |
13625 | cat conftest.$ac_ext >&5 | |
13626 | rm -rf conftest* | |
4f14bcd8 | 13627 | eval "ac_cv_lib_$ac_lib_var=no" |
6232543b | 13628 | fi |
698dcdb6 | 13629 | rm -f conftest* |
4f14bcd8 | 13630 | LIBS="$ac_save_LIBS" |
703e0a69 | 13631 | |
1e487827 | 13632 | fi |
4f14bcd8 GD |
13633 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
13634 | echo "$ac_t""yes" 1>&6 | |
13635 | ||
13636 | cat >> confdefs.h <<\EOF | |
13637 | #define HAVE_WCSLEN 1 | |
9d8deca0 VZ |
13638 | EOF |
13639 | ||
4f14bcd8 GD |
13640 | WCHAR_LINK="-lw" |
13641 | ||
13642 | else | |
13643 | echo "$ac_t""no" 1>&6 | |
698dcdb6 | 13644 | |
4f14bcd8 | 13645 | echo $ac_n "checking for wcslen in -lmsvcrt""... $ac_c" 1>&6 |
d6853540 | 13646 | echo "configure:13647: checking for wcslen in -lmsvcrt" >&5 |
4f14bcd8 GD |
13647 | ac_lib_var=`echo msvcrt'_'wcslen | sed 'y%./+-%__p_%'` |
13648 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
698dcdb6 VZ |
13649 | echo $ac_n "(cached) $ac_c" 1>&6 |
13650 | else | |
4f14bcd8 GD |
13651 | ac_save_LIBS="$LIBS" |
13652 | LIBS="-lmsvcrt $LIBS" | |
13653 | cat > conftest.$ac_ext <<EOF | |
d6853540 | 13654 | #line 13655 "configure" |
95c8801c | 13655 | #include "confdefs.h" |
4f14bcd8 GD |
13656 | /* Override any gcc2 internal prototype to avoid an error. */ |
13657 | /* We use char because int might match the return type of a gcc2 | |
13658 | builtin and then its argument prototype would still apply. */ | |
13659 | char wcslen(); | |
95c8801c | 13660 | |
4f14bcd8 GD |
13661 | int main() { |
13662 | wcslen() | |
698dcdb6 VZ |
13663 | ; return 0; } |
13664 | EOF | |
d6853540 | 13665 | if { (eval echo configure:13666: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 | 13666 | rm -rf conftest* |
4f14bcd8 | 13667 | eval "ac_cv_lib_$ac_lib_var=yes" |
95c8801c | 13668 | else |
698dcdb6 VZ |
13669 | echo "configure: failed program was:" >&5 |
13670 | cat conftest.$ac_ext >&5 | |
13671 | rm -rf conftest* | |
4f14bcd8 | 13672 | eval "ac_cv_lib_$ac_lib_var=no" |
95c8801c | 13673 | fi |
698dcdb6 | 13674 | rm -f conftest* |
4f14bcd8 | 13675 | LIBS="$ac_save_LIBS" |
95c8801c VS |
13676 | |
13677 | fi | |
4f14bcd8 GD |
13678 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
13679 | echo "$ac_t""yes" 1>&6 | |
13680 | ||
13681 | cat >> confdefs.h <<\EOF | |
13682 | #define HAVE_WCSLEN 1 | |
13683 | EOF | |
698dcdb6 | 13684 | |
4f14bcd8 GD |
13685 | WCHAR_LINK="" |
13686 | ||
13687 | else | |
13688 | echo "$ac_t""no" 1>&6 | |
13689 | fi | |
10f2d63a | 13690 | |
4f14bcd8 GD |
13691 | |
13692 | fi | |
95c8801c | 13693 | |
4f14bcd8 | 13694 | |
95c8801c | 13695 | fi |
10f2d63a | 13696 | |
1e487827 | 13697 | |
4f14bcd8 | 13698 | for ac_func in wcsrtombs |
eb4efbdc | 13699 | do |
698dcdb6 | 13700 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
d6853540 | 13701 | echo "configure:13702: checking for $ac_func" >&5 |
698dcdb6 VZ |
13702 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
13703 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13704 | else | |
13705 | cat > conftest.$ac_ext <<EOF | |
d6853540 | 13706 | #line 13707 "configure" |
eb4efbdc VZ |
13707 | #include "confdefs.h" |
13708 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 13709 | which can conflict with char $ac_func(); below. */ |
eb4efbdc VZ |
13710 | #include <assert.h> |
13711 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13712 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
13713 | builtin and then its argument prototype would still apply. */ |
13714 | char $ac_func(); | |
13715 | ||
13716 | int main() { | |
eb4efbdc VZ |
13717 | |
13718 | /* The GNU C library defines this for functions which it implements | |
13719 | to always fail with ENOSYS. Some functions are actually named | |
13720 | something starting with __ and the normal name is an alias. */ | |
13721 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
13722 | choke me | |
13723 | #else | |
698dcdb6 | 13724 | $ac_func(); |
eb4efbdc VZ |
13725 | #endif |
13726 | ||
698dcdb6 | 13727 | ; return 0; } |
eb4efbdc | 13728 | EOF |
d6853540 | 13729 | if { (eval echo configure:13730: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
13730 | rm -rf conftest* |
13731 | eval "ac_cv_func_$ac_func=yes" | |
13732 | else | |
13733 | echo "configure: failed program was:" >&5 | |
13734 | cat conftest.$ac_ext >&5 | |
13735 | rm -rf conftest* | |
13736 | eval "ac_cv_func_$ac_func=no" | |
13737 | fi | |
13738 | rm -f conftest* | |
13739 | fi | |
eb4efbdc | 13740 | |
698dcdb6 VZ |
13741 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
13742 | echo "$ac_t""yes" 1>&6 | |
13743 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
13744 | cat >> confdefs.h <<EOF | |
13745 | #define $ac_tr_func 1 | |
13746 | EOF | |
13747 | ||
13748 | else | |
13749 | echo "$ac_t""no" 1>&6 | |
eb4efbdc VZ |
13750 | fi |
13751 | done | |
13752 | ||
698dcdb6 | 13753 | |
4f14bcd8 | 13754 | echo $ac_n "checking for vprintf""... $ac_c" 1>&6 |
d6853540 | 13755 | echo "configure:13756: checking for vprintf" >&5 |
4f14bcd8 | 13756 | if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then |
698dcdb6 VZ |
13757 | echo $ac_n "(cached) $ac_c" 1>&6 |
13758 | else | |
4f14bcd8 | 13759 | cat > conftest.$ac_ext <<EOF |
d6853540 | 13760 | #line 13761 "configure" |
f6bcfd97 | 13761 | #include "confdefs.h" |
4f14bcd8 GD |
13762 | /* System header to define __stub macros and hopefully few prototypes, |
13763 | which can conflict with char vprintf(); below. */ | |
13764 | #include <assert.h> | |
13765 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13766 | /* We use char because int might match the return type of a gcc2 | |
13767 | builtin and then its argument prototype would still apply. */ | |
13768 | char vprintf(); | |
13769 | ||
698dcdb6 | 13770 | int main() { |
f6bcfd97 | 13771 | |
4f14bcd8 GD |
13772 | /* The GNU C library defines this for functions which it implements |
13773 | to always fail with ENOSYS. Some functions are actually named | |
13774 | something starting with __ and the normal name is an alias. */ | |
13775 | #if defined (__stub_vprintf) || defined (__stub___vprintf) | |
13776 | choke me | |
13777 | #else | |
13778 | vprintf(); | |
13779 | #endif | |
f6bcfd97 | 13780 | |
698dcdb6 VZ |
13781 | ; return 0; } |
13782 | EOF | |
d6853540 | 13783 | if { (eval echo configure:13784: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 | 13784 | rm -rf conftest* |
4f14bcd8 | 13785 | eval "ac_cv_func_vprintf=yes" |
f6bcfd97 | 13786 | else |
698dcdb6 VZ |
13787 | echo "configure: failed program was:" >&5 |
13788 | cat conftest.$ac_ext >&5 | |
13789 | rm -rf conftest* | |
4f14bcd8 | 13790 | eval "ac_cv_func_vprintf=no" |
6232543b | 13791 | fi |
698dcdb6 | 13792 | rm -f conftest* |
1e487827 | 13793 | fi |
698dcdb6 | 13794 | |
4f14bcd8 GD |
13795 | if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then |
13796 | echo "$ac_t""yes" 1>&6 | |
13797 | cat >> confdefs.h <<\EOF | |
13798 | #define HAVE_VPRINTF 1 | |
f6bcfd97 BP |
13799 | EOF |
13800 | ||
4f14bcd8 GD |
13801 | else |
13802 | echo "$ac_t""no" 1>&6 | |
eb4efbdc VZ |
13803 | fi |
13804 | ||
4f14bcd8 GD |
13805 | if test "$ac_cv_func_vprintf" != yes; then |
13806 | echo $ac_n "checking for _doprnt""... $ac_c" 1>&6 | |
d6853540 | 13807 | echo "configure:13808: checking for _doprnt" >&5 |
4f14bcd8 | 13808 | if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then |
698dcdb6 VZ |
13809 | echo $ac_n "(cached) $ac_c" 1>&6 |
13810 | else | |
13811 | cat > conftest.$ac_ext <<EOF | |
d6853540 | 13812 | #line 13813 "configure" |
10f2d63a VZ |
13813 | #include "confdefs.h" |
13814 | /* System header to define __stub macros and hopefully few prototypes, | |
4f14bcd8 | 13815 | which can conflict with char _doprnt(); below. */ |
10f2d63a VZ |
13816 | #include <assert.h> |
13817 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13818 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 | 13819 | builtin and then its argument prototype would still apply. */ |
4f14bcd8 | 13820 | char _doprnt(); |
698dcdb6 VZ |
13821 | |
13822 | int main() { | |
10f2d63a VZ |
13823 | |
13824 | /* The GNU C library defines this for functions which it implements | |
13825 | to always fail with ENOSYS. Some functions are actually named | |
13826 | something starting with __ and the normal name is an alias. */ | |
4f14bcd8 | 13827 | #if defined (__stub__doprnt) || defined (__stub____doprnt) |
10f2d63a VZ |
13828 | choke me |
13829 | #else | |
4f14bcd8 | 13830 | _doprnt(); |
10f2d63a VZ |
13831 | #endif |
13832 | ||
698dcdb6 | 13833 | ; return 0; } |
10f2d63a | 13834 | EOF |
d6853540 | 13835 | if { (eval echo configure:13836: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 | 13836 | rm -rf conftest* |
4f14bcd8 | 13837 | eval "ac_cv_func__doprnt=yes" |
698dcdb6 VZ |
13838 | else |
13839 | echo "configure: failed program was:" >&5 | |
13840 | cat conftest.$ac_ext >&5 | |
13841 | rm -rf conftest* | |
4f14bcd8 | 13842 | eval "ac_cv_func__doprnt=no" |
698dcdb6 VZ |
13843 | fi |
13844 | rm -f conftest* | |
13845 | fi | |
270a909e | 13846 | |
4f14bcd8 | 13847 | if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then |
698dcdb6 | 13848 | echo "$ac_t""yes" 1>&6 |
4f14bcd8 GD |
13849 | cat >> confdefs.h <<\EOF |
13850 | #define HAVE_DOPRNT 1 | |
698dcdb6 | 13851 | EOF |
4f14bcd8 | 13852 | |
698dcdb6 VZ |
13853 | else |
13854 | echo "$ac_t""no" 1>&6 | |
270a909e | 13855 | fi |
270a909e | 13856 | |
4f14bcd8 | 13857 | fi |
1e487827 | 13858 | |
52e8b690 | 13859 | |
52e8b690 | 13860 | |
52e8b690 | 13861 | |
52e8b690 | 13862 | |
52e8b690 | 13863 | |
4f14bcd8 | 13864 | echo $ac_n "checking for vsnprintf""... $ac_c" 1>&6 |
d6853540 | 13865 | echo "configure:13866: checking for vsnprintf" >&5 |
4f14bcd8 | 13866 | if eval "test \"`echo '$''{'wx_cv_func_vsnprintf'+set}'`\" = set"; then |
698dcdb6 | 13867 | echo $ac_n "(cached) $ac_c" 1>&6 |
c63c7106 | 13868 | else |
4f14bcd8 | 13869 | |
af15babd | 13870 | cat > conftest.$ac_ext <<EOF |
d6853540 | 13871 | #line 13872 "configure" |
c63c7106 | 13872 | #include "confdefs.h" |
698dcdb6 | 13873 | |
4f14bcd8 GD |
13874 | #include <stdio.h> |
13875 | #include <stdarg.h> | |
13876 | ||
af15babd VZ |
13877 | int main() { |
13878 | ||
4f14bcd8 GD |
13879 | int wx_test_vsnprintf(const char *, ...); |
13880 | ||
13881 | wx_test_vsnprintf("%s"); | |
13882 | return 0; | |
13883 | } | |
13884 | ||
13885 | int wx_test_vsnprintf(const char *fmt, ...) | |
13886 | { | |
13887 | char *s; | |
13888 | ||
13889 | va_list argp; | |
13890 | va_start(argp, fmt); | |
13891 | vsnprintf(s, 42, fmt, argp); | |
13892 | va_end(argp); | |
13893 | ||
af15babd VZ |
13894 | ; return 0; } |
13895 | EOF | |
d6853540 | 13896 | if { (eval echo configure:13897: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
af15babd VZ |
13897 | rm -rf conftest* |
13898 | ||
4f14bcd8 GD |
13899 | wx_cv_func_vsnprintf=yes |
13900 | ||
af15babd VZ |
13901 | else |
13902 | echo "configure: failed program was:" >&5 | |
13903 | cat conftest.$ac_ext >&5 | |
13904 | rm -rf conftest* | |
13905 | ||
4f14bcd8 | 13906 | cat > conftest.$ac_ext <<EOF |
d6853540 | 13907 | #line 13908 "configure" |
af15babd | 13908 | #include "confdefs.h" |
af15babd | 13909 | |
4f14bcd8 GD |
13910 | #include <stdio.h> |
13911 | #include <stdarg.h> | |
13912 | ||
af15babd VZ |
13913 | int main() { |
13914 | ||
4f14bcd8 GD |
13915 | int wx_test_vsnprintf(const char *, ...); |
13916 | ||
13917 | wx_test_vsnprintf("%s"); | |
13918 | return 0; | |
13919 | } | |
13920 | ||
13921 | int wx_test_vsnprintf(const char *fmt, ...) | |
13922 | { | |
13923 | char *s; | |
af15babd | 13924 | |
4f14bcd8 GD |
13925 | va_list argp; |
13926 | va_start(argp, fmt); | |
13927 | _vsnprintf(s, 42, fmt, argp); | |
13928 | va_end(argp); | |
13929 | ||
af15babd VZ |
13930 | ; return 0; } |
13931 | EOF | |
d6853540 | 13932 | if { (eval echo configure:13933: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
af15babd | 13933 | rm -rf conftest* |
4f14bcd8 GD |
13934 | |
13935 | wx_cv_func_vsnprintf=yes | |
13936 | ||
af15babd VZ |
13937 | else |
13938 | echo "configure: failed program was:" >&5 | |
13939 | cat conftest.$ac_ext >&5 | |
13940 | rm -rf conftest* | |
4f14bcd8 GD |
13941 | |
13942 | wx_cv_func_vsnprintf=no | |
13943 | ||
af15babd VZ |
13944 | fi |
13945 | rm -f conftest* | |
4f14bcd8 | 13946 | |
af15babd | 13947 | fi |
4f14bcd8 | 13948 | rm -f conftest* |
af15babd | 13949 | |
af15babd | 13950 | fi |
af15babd | 13951 | |
4f14bcd8 | 13952 | echo "$ac_t""$wx_cv_func_vsnprintf" 1>&6 |
af15babd | 13953 | |
4f14bcd8 GD |
13954 | if test "$wx_cv_func_vsnprintf" = yes; then |
13955 | cat >> confdefs.h <<\EOF | |
13956 | #define HAVE_VSNPRINTF 1 | |
13957 | EOF | |
13958 | ||
13959 | else | |
13960 | echo "configure: warning: unsafe function sprintf will be used instead of snprintf" 1>&2 | |
af15babd VZ |
13961 | fi |
13962 | ||
4f14bcd8 | 13963 | echo $ac_n "checking for vsscanf""... $ac_c" 1>&6 |
d6853540 | 13964 | echo "configure:13965: checking for vsscanf" >&5 |
4f14bcd8 | 13965 | if eval "test \"`echo '$''{'wx_cv_func_vsscanf'+set}'`\" = set"; then |
af15babd VZ |
13966 | echo $ac_n "(cached) $ac_c" 1>&6 |
13967 | else | |
4f14bcd8 | 13968 | |
af15babd | 13969 | cat > conftest.$ac_ext <<EOF |
d6853540 | 13970 | #line 13971 "configure" |
af15babd | 13971 | #include "confdefs.h" |
af15babd | 13972 | |
4f14bcd8 GD |
13973 | #include <stdio.h> |
13974 | #include <stdarg.h> | |
13975 | ||
af15babd VZ |
13976 | int main() { |
13977 | ||
4f14bcd8 GD |
13978 | int wx_test_vsscanf(const char *, ...); |
13979 | ||
13980 | wx_test_vsscanf("%d"); | |
13981 | return 0; | |
13982 | } | |
af15babd | 13983 | |
4f14bcd8 GD |
13984 | int wx_test_vsscanf(const char *fmt, ...) |
13985 | { | |
13986 | va_list argp; | |
13987 | va_start(argp, fmt); | |
13988 | vsscanf("42", fmt, argp); | |
13989 | va_end(argp); | |
13990 | ||
af15babd VZ |
13991 | ; return 0; } |
13992 | EOF | |
d6853540 | 13993 | if { (eval echo configure:13994: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
af15babd | 13994 | rm -rf conftest* |
4f14bcd8 GD |
13995 | |
13996 | wx_cv_func_vsscanf=yes | |
13997 | ||
af15babd VZ |
13998 | else |
13999 | echo "configure: failed program was:" >&5 | |
14000 | cat conftest.$ac_ext >&5 | |
14001 | rm -rf conftest* | |
4f14bcd8 GD |
14002 | |
14003 | wx_cv_func_vsscanf=no | |
14004 | ||
af15babd VZ |
14005 | fi |
14006 | rm -f conftest* | |
4f14bcd8 | 14007 | |
af15babd VZ |
14008 | fi |
14009 | ||
4f14bcd8 GD |
14010 | echo "$ac_t""$wx_cv_func_vsscanf" 1>&6 |
14011 | ||
14012 | if test "$wx_cv_func_vsscanf" = yes; then | |
14013 | cat >> confdefs.h <<\EOF | |
14014 | #define HAVE_VSSCANF 1 | |
af15babd | 14015 | EOF |
4f14bcd8 | 14016 | |
af15babd | 14017 | fi |
af15babd | 14018 | |
4f14bcd8 | 14019 | if test "$TOOLKIT" != "MSW"; then |
af15babd | 14020 | |
4f14bcd8 GD |
14021 | |
14022 | ||
14023 | ac_ext=C | |
14024 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
14025 | ac_cpp='$CXXCPP $CPPFLAGS' | |
14026 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
14027 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
14028 | cross_compiling=$ac_cv_prog_cxx_cross | |
14029 | ||
14030 | echo $ac_n "checking if iconv() takes char**""... $ac_c" 1>&6 | |
d6853540 | 14031 | echo "configure:14032: checking if iconv() takes char**" >&5 |
4f14bcd8 | 14032 | if eval "test \"`echo '$''{'wx_cv_iconv_takes_char'+set}'`\" = set"; then |
af15babd VZ |
14033 | echo $ac_n "(cached) $ac_c" 1>&6 |
14034 | else | |
4f14bcd8 GD |
14035 | |
14036 | cat > conftest.$ac_ext <<EOF | |
d6853540 | 14037 | #line 14038 "configure" |
af15babd | 14038 | #include "confdefs.h" |
4f14bcd8 | 14039 | #include <iconv.h> |
af15babd VZ |
14040 | int main() { |
14041 | ||
4f14bcd8 GD |
14042 | char **inbuf, **outbuf; |
14043 | iconv_t cd; | |
14044 | size_t insz, outsz; | |
14045 | iconv(cd, inbuf, &insz, outbuf, &outsz); | |
14046 | ||
af15babd VZ |
14047 | ; return 0; } |
14048 | EOF | |
d6853540 | 14049 | if { (eval echo configure:14050: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
af15babd | 14050 | rm -rf conftest* |
4f14bcd8 | 14051 | wx_cv_iconv_takes_char=yes |
af15babd VZ |
14052 | else |
14053 | echo "configure: failed program was:" >&5 | |
14054 | cat conftest.$ac_ext >&5 | |
14055 | rm -rf conftest* | |
4f14bcd8 | 14056 | wx_cv_iconv_takes_char=no |
af15babd VZ |
14057 | fi |
14058 | rm -f conftest* | |
af15babd | 14059 | |
af15babd | 14060 | fi |
af15babd | 14061 | |
4f14bcd8 GD |
14062 | echo "$ac_t""$wx_cv_iconv_takes_char" 1>&6 |
14063 | ac_ext=c | |
14064 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
14065 | ac_cpp='$CPP $CPPFLAGS' | |
14066 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
14067 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
14068 | cross_compiling=$ac_cv_prog_cc_cross | |
af15babd | 14069 | |
4f14bcd8 GD |
14070 | if test "$wx_cv_iconv_takes_char" = yes ; then |
14071 | cat >> confdefs.h <<\EOF | |
14072 | #define WX_ICONV_TAKES_CHAR 1 | |
af15babd VZ |
14073 | EOF |
14074 | ||
af15babd VZ |
14075 | fi |
14076 | ||
af15babd | 14077 | |
4f14bcd8 GD |
14078 | if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then |
14079 | for ac_func in sigaction | |
af15babd VZ |
14080 | do |
14081 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
d6853540 | 14082 | echo "configure:14083: checking for $ac_func" >&5 |
af15babd VZ |
14083 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
14084 | echo $ac_n "(cached) $ac_c" 1>&6 | |
14085 | else | |
14086 | cat > conftest.$ac_ext <<EOF | |
d6853540 | 14087 | #line 14088 "configure" |
af15babd VZ |
14088 | #include "confdefs.h" |
14089 | /* System header to define __stub macros and hopefully few prototypes, | |
14090 | which can conflict with char $ac_func(); below. */ | |
14091 | #include <assert.h> | |
14092 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14093 | /* We use char because int might match the return type of a gcc2 | |
14094 | builtin and then its argument prototype would still apply. */ | |
14095 | char $ac_func(); | |
14096 | ||
14097 | int main() { | |
14098 | ||
14099 | /* The GNU C library defines this for functions which it implements | |
14100 | to always fail with ENOSYS. Some functions are actually named | |
14101 | something starting with __ and the normal name is an alias. */ | |
14102 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
14103 | choke me | |
14104 | #else | |
14105 | $ac_func(); | |
14106 | #endif | |
14107 | ||
14108 | ; return 0; } | |
14109 | EOF | |
d6853540 | 14110 | if { (eval echo configure:14111: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
af15babd VZ |
14111 | rm -rf conftest* |
14112 | eval "ac_cv_func_$ac_func=yes" | |
14113 | else | |
14114 | echo "configure: failed program was:" >&5 | |
14115 | cat conftest.$ac_ext >&5 | |
14116 | rm -rf conftest* | |
14117 | eval "ac_cv_func_$ac_func=no" | |
14118 | fi | |
14119 | rm -f conftest* | |
14120 | fi | |
14121 | ||
14122 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
14123 | echo "$ac_t""yes" 1>&6 | |
14124 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
14125 | cat >> confdefs.h <<EOF | |
14126 | #define $ac_tr_func 1 | |
14127 | EOF | |
4f14bcd8 | 14128 | |
af15babd VZ |
14129 | else |
14130 | echo "$ac_t""no" 1>&6 | |
4f14bcd8 GD |
14131 | fi |
14132 | done | |
14133 | ||
14134 | ||
14135 | if test "$ac_cv_func_sigaction" = "no"; then | |
14136 | echo "configure: warning: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" 1>&2 | |
14137 | wxUSE_ON_FATAL_EXCEPTION=no | |
14138 | fi | |
14139 | ||
14140 | if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then | |
14141 | ||
14142 | ac_ext=C | |
14143 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
14144 | ac_cpp='$CXXCPP $CPPFLAGS' | |
14145 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
14146 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
14147 | cross_compiling=$ac_cv_prog_cxx_cross | |
14148 | ||
14149 | ||
14150 | echo $ac_n "checking for sa_handler type""... $ac_c" 1>&6 | |
d6853540 | 14151 | echo "configure:14152: checking for sa_handler type" >&5 |
4f14bcd8 | 14152 | if eval "test \"`echo '$''{'wx_cv_type_sa_handler'+set}'`\" = set"; then |
af15babd VZ |
14153 | echo $ac_n "(cached) $ac_c" 1>&6 |
14154 | else | |
4f14bcd8 GD |
14155 | |
14156 | cat > conftest.$ac_ext <<EOF | |
d6853540 | 14157 | #line 14158 "configure" |
af15babd | 14158 | #include "confdefs.h" |
4f14bcd8 | 14159 | #include <signal.h> |
af15babd | 14160 | int main() { |
4f14bcd8 GD |
14161 | |
14162 | extern void testSigHandler(int); | |
14163 | ||
14164 | struct sigaction sa; | |
14165 | sa.sa_handler = testSigHandler; | |
14166 | ||
af15babd VZ |
14167 | ; return 0; } |
14168 | EOF | |
d6853540 | 14169 | if { (eval echo configure:14170: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
af15babd | 14170 | rm -rf conftest* |
4f14bcd8 GD |
14171 | |
14172 | wx_cv_type_sa_handler=int | |
14173 | ||
af15babd VZ |
14174 | else |
14175 | echo "configure: failed program was:" >&5 | |
14176 | cat conftest.$ac_ext >&5 | |
14177 | rm -rf conftest* | |
4f14bcd8 GD |
14178 | |
14179 | wx_cv_type_sa_handler=void | |
14180 | ||
af15babd VZ |
14181 | fi |
14182 | rm -f conftest* | |
4f14bcd8 GD |
14183 | |
14184 | fi | |
14185 | ||
14186 | echo "$ac_t""$wx_cv_type_sa_handler" 1>&6 | |
14187 | ||
14188 | ac_ext=c | |
14189 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
14190 | ac_cpp='$CPP $CPPFLAGS' | |
14191 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
14192 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
14193 | cross_compiling=$ac_cv_prog_cc_cross | |
af15babd | 14194 | |
4f14bcd8 GD |
14195 | |
14196 | cat >> confdefs.h <<EOF | |
14197 | #define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler | |
af15babd VZ |
14198 | EOF |
14199 | ||
4f14bcd8 GD |
14200 | fi |
14201 | fi | |
af15babd | 14202 | |
4f14bcd8 | 14203 | for ac_func in vfork |
af15babd VZ |
14204 | do |
14205 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
d6853540 | 14206 | echo "configure:14207: checking for $ac_func" >&5 |
af15babd VZ |
14207 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
14208 | echo $ac_n "(cached) $ac_c" 1>&6 | |
14209 | else | |
14210 | cat > conftest.$ac_ext <<EOF | |
d6853540 | 14211 | #line 14212 "configure" |
af15babd VZ |
14212 | #include "confdefs.h" |
14213 | /* System header to define __stub macros and hopefully few prototypes, | |
14214 | which can conflict with char $ac_func(); below. */ | |
14215 | #include <assert.h> | |
14216 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14217 | /* We use char because int might match the return type of a gcc2 | |
14218 | builtin and then its argument prototype would still apply. */ | |
14219 | char $ac_func(); | |
14220 | ||
14221 | int main() { | |
14222 | ||
14223 | /* The GNU C library defines this for functions which it implements | |
14224 | to always fail with ENOSYS. Some functions are actually named | |
14225 | something starting with __ and the normal name is an alias. */ | |
14226 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
14227 | choke me | |
14228 | #else | |
14229 | $ac_func(); | |
14230 | #endif | |
14231 | ||
14232 | ; return 0; } | |
14233 | EOF | |
d6853540 | 14234 | if { (eval echo configure:14235: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
af15babd VZ |
14235 | rm -rf conftest* |
14236 | eval "ac_cv_func_$ac_func=yes" | |
14237 | else | |
14238 | echo "configure: failed program was:" >&5 | |
14239 | cat conftest.$ac_ext >&5 | |
14240 | rm -rf conftest* | |
14241 | eval "ac_cv_func_$ac_func=no" | |
14242 | fi | |
14243 | rm -f conftest* | |
14244 | fi | |
14245 | ||
14246 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
14247 | echo "$ac_t""yes" 1>&6 | |
14248 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
14249 | cat >> confdefs.h <<EOF | |
14250 | #define $ac_tr_func 1 | |
14251 | EOF | |
4f14bcd8 | 14252 | |
af15babd VZ |
14253 | else |
14254 | echo "$ac_t""no" 1>&6 | |
af15babd VZ |
14255 | fi |
14256 | done | |
14257 | ||
af15babd | 14258 | |
4f14bcd8 | 14259 | echo $ac_n "checking for statfs""... $ac_c" 1>&6 |
d6853540 | 14260 | echo "configure:14261: checking for statfs" >&5 |
4f14bcd8 GD |
14261 | if eval "test \"`echo '$''{'wx_cv_func_statfs'+set}'`\" = set"; then |
14262 | echo $ac_n "(cached) $ac_c" 1>&6 | |
14263 | else | |
14264 | cat > conftest.$ac_ext <<EOF | |
d6853540 | 14265 | #line 14266 "configure" |
4f14bcd8 GD |
14266 | #include "confdefs.h" |
14267 | ||
14268 | #if defined(__BSD__) | |
14269 | #include <sys/param.h> | |
14270 | #include <sys/mount.h> | |
14271 | #else | |
14272 | #include <sys/vfs.h> | |
14273 | #endif | |
14274 | ||
14275 | int main() { | |
14276 | ||
14277 | long l; | |
14278 | struct statfs fs; | |
14279 | statfs("/", &fs); | |
14280 | l = fs.f_bsize; | |
14281 | l += fs.f_blocks; | |
14282 | l += fs.f_bavail; | |
14283 | ||
14284 | ; return 0; } | |
14285 | EOF | |
d6853540 | 14286 | if { (eval echo configure:14287: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
4f14bcd8 GD |
14287 | rm -rf conftest* |
14288 | ||
14289 | wx_cv_func_statfs=yes | |
14290 | ||
14291 | else | |
14292 | echo "configure: failed program was:" >&5 | |
14293 | cat conftest.$ac_ext >&5 | |
14294 | rm -rf conftest* | |
14295 | ||
14296 | wx_cv_func_statfs=no | |
af15babd VZ |
14297 | |
14298 | ||
14299 | fi | |
4f14bcd8 | 14300 | rm -f conftest* |
af15babd VZ |
14301 | |
14302 | fi | |
14303 | ||
4f14bcd8 GD |
14304 | echo "$ac_t""$wx_cv_func_statfs" 1>&6 |
14305 | ||
14306 | if test "$wx_cv_func_statfs" = "yes"; then | |
14307 | cat >> confdefs.h <<\EOF | |
14308 | #define HAVE_STATFS 1 | |
14309 | EOF | |
14310 | ||
14311 | else | |
14312 | echo $ac_n "checking for statvfs""... $ac_c" 1>&6 | |
d6853540 | 14313 | echo "configure:14314: checking for statvfs" >&5 |
4f14bcd8 | 14314 | if eval "test \"`echo '$''{'wx_cv_func_statvfs'+set}'`\" = set"; then |
af15babd VZ |
14315 | echo $ac_n "(cached) $ac_c" 1>&6 |
14316 | else | |
14317 | cat > conftest.$ac_ext <<EOF | |
d6853540 | 14318 | #line 14319 "configure" |
af15babd | 14319 | #include "confdefs.h" |
af15babd | 14320 | |
4f14bcd8 GD |
14321 | #include <sys/statvfs.h> |
14322 | ||
af15babd VZ |
14323 | int main() { |
14324 | ||
4f14bcd8 GD |
14325 | long l; |
14326 | struct statvfs fs; | |
14327 | statvfs("/", &fs); | |
14328 | l = fs.f_bsize; | |
14329 | l += fs.f_blocks; | |
14330 | l += fs.f_bavail; | |
14331 | ||
af15babd VZ |
14332 | ; return 0; } |
14333 | EOF | |
d6853540 | 14334 | if { (eval echo configure:14335: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
af15babd | 14335 | rm -rf conftest* |
4f14bcd8 GD |
14336 | |
14337 | wx_cv_func_statvfs=yes | |
14338 | ||
af15babd VZ |
14339 | else |
14340 | echo "configure: failed program was:" >&5 | |
14341 | cat conftest.$ac_ext >&5 | |
14342 | rm -rf conftest* | |
4f14bcd8 GD |
14343 | |
14344 | wx_cv_func_statvfs=no | |
14345 | ||
14346 | ||
af15babd VZ |
14347 | fi |
14348 | rm -f conftest* | |
4f14bcd8 | 14349 | |
af15babd VZ |
14350 | fi |
14351 | ||
4f14bcd8 | 14352 | echo "$ac_t""$wx_cv_func_statvfs" 1>&6 |
af15babd | 14353 | |
4f14bcd8 GD |
14354 | if test "$wx_cv_func_statvfs" = "yes"; then |
14355 | cat >> confdefs.h <<\EOF | |
14356 | #define HAVE_STATVFS 1 | |
14357 | EOF | |
af15babd | 14358 | |
4f14bcd8 GD |
14359 | else |
14360 | echo "configure: warning: wxGetDiskSpace() function won't work without statfs()" 1>&2 | |
14361 | fi | |
14362 | fi | |
af15babd | 14363 | |
4f14bcd8 GD |
14364 | if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then |
14365 | for ac_func in fcntl flock | |
af15babd VZ |
14366 | do |
14367 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
d6853540 | 14368 | echo "configure:14369: checking for $ac_func" >&5 |
af15babd VZ |
14369 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
14370 | echo $ac_n "(cached) $ac_c" 1>&6 | |
14371 | else | |
14372 | cat > conftest.$ac_ext <<EOF | |
d6853540 | 14373 | #line 14374 "configure" |
af15babd VZ |
14374 | #include "confdefs.h" |
14375 | /* System header to define __stub macros and hopefully few prototypes, | |
14376 | which can conflict with char $ac_func(); below. */ | |
14377 | #include <assert.h> | |
14378 | /* Override any gcc2 internal prototype to avoid an error. */ | |
af15babd VZ |
14379 | /* We use char because int might match the return type of a gcc2 |
14380 | builtin and then its argument prototype would still apply. */ | |
14381 | char $ac_func(); | |
14382 | ||
14383 | int main() { | |
14384 | ||
14385 | /* The GNU C library defines this for functions which it implements | |
14386 | to always fail with ENOSYS. Some functions are actually named | |
14387 | something starting with __ and the normal name is an alias. */ | |
14388 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
14389 | choke me | |
14390 | #else | |
14391 | $ac_func(); | |
14392 | #endif | |
14393 | ||
14394 | ; return 0; } | |
14395 | EOF | |
d6853540 | 14396 | if { (eval echo configure:14397: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
af15babd VZ |
14397 | rm -rf conftest* |
14398 | eval "ac_cv_func_$ac_func=yes" | |
14399 | else | |
14400 | echo "configure: failed program was:" >&5 | |
14401 | cat conftest.$ac_ext >&5 | |
14402 | rm -rf conftest* | |
14403 | eval "ac_cv_func_$ac_func=no" | |
14404 | fi | |
14405 | rm -f conftest* | |
14406 | fi | |
14407 | ||
14408 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
14409 | echo "$ac_t""yes" 1>&6 | |
14410 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
14411 | cat >> confdefs.h <<EOF | |
14412 | #define $ac_tr_func 1 | |
14413 | EOF | |
4f14bcd8 | 14414 | break |
af15babd VZ |
14415 | else |
14416 | echo "$ac_t""no" 1>&6 | |
14417 | fi | |
14418 | done | |
14419 | ||
14420 | ||
4f14bcd8 GD |
14421 | if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then |
14422 | echo "configure: warning: wxSingleInstanceChecker not available" 1>&2 | |
14423 | wxUSE_SNGLINST_CHECKER=no | |
14424 | fi | |
14425 | fi | |
af15babd | 14426 | |
4f14bcd8 | 14427 | for ac_func in timegm |
af15babd VZ |
14428 | do |
14429 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
d6853540 | 14430 | echo "configure:14431: checking for $ac_func" >&5 |
af15babd VZ |
14431 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
14432 | echo $ac_n "(cached) $ac_c" 1>&6 | |
14433 | else | |
14434 | cat > conftest.$ac_ext <<EOF | |
d6853540 | 14435 | #line 14436 "configure" |
af15babd VZ |
14436 | #include "confdefs.h" |
14437 | /* System header to define __stub macros and hopefully few prototypes, | |
14438 | which can conflict with char $ac_func(); below. */ | |
14439 | #include <assert.h> | |
14440 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14441 | /* We use char because int might match the return type of a gcc2 | |
14442 | builtin and then its argument prototype would still apply. */ | |
14443 | char $ac_func(); | |
14444 | ||
698dcdb6 | 14445 | int main() { |
698dcdb6 | 14446 | |
af15babd VZ |
14447 | /* The GNU C library defines this for functions which it implements |
14448 | to always fail with ENOSYS. Some functions are actually named | |
14449 | something starting with __ and the normal name is an alias. */ | |
14450 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
14451 | choke me | |
14452 | #else | |
14453 | $ac_func(); | |
14454 | #endif | |
14455 | ||
698dcdb6 VZ |
14456 | ; return 0; } |
14457 | EOF | |
d6853540 | 14458 | if { (eval echo configure:14459: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 | 14459 | rm -rf conftest* |
af15babd | 14460 | eval "ac_cv_func_$ac_func=yes" |
698dcdb6 VZ |
14461 | else |
14462 | echo "configure: failed program was:" >&5 | |
14463 | cat conftest.$ac_ext >&5 | |
14464 | rm -rf conftest* | |
af15babd | 14465 | eval "ac_cv_func_$ac_func=no" |
1e487827 | 14466 | fi |
9952adac | 14467 | rm -f conftest* |
af15babd | 14468 | fi |
703e0a69 | 14469 | |
af15babd VZ |
14470 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
14471 | echo "$ac_t""yes" 1>&6 | |
14472 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
4f14bcd8 GD |
14473 | cat >> confdefs.h <<EOF |
14474 | #define $ac_tr_func 1 | |
14475 | EOF | |
14476 | ||
14477 | else | |
14478 | echo "$ac_t""no" 1>&6 | |
af15babd VZ |
14479 | fi |
14480 | done | |
14481 | ||
14482 | ||
4f14bcd8 | 14483 | for ac_func in putenv setenv |
10f2d63a | 14484 | do |
698dcdb6 | 14485 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
d6853540 | 14486 | echo "configure:14487: checking for $ac_func" >&5 |
698dcdb6 VZ |
14487 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
14488 | echo $ac_n "(cached) $ac_c" 1>&6 | |
14489 | else | |
14490 | cat > conftest.$ac_ext <<EOF | |
d6853540 | 14491 | #line 14492 "configure" |
af15babd VZ |
14492 | #include "confdefs.h" |
14493 | /* System header to define __stub macros and hopefully few prototypes, | |
14494 | which can conflict with char $ac_func(); below. */ | |
14495 | #include <assert.h> | |
14496 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14497 | /* We use char because int might match the return type of a gcc2 | |
14498 | builtin and then its argument prototype would still apply. */ | |
14499 | char $ac_func(); | |
14500 | ||
14501 | int main() { | |
14502 | ||
14503 | /* The GNU C library defines this for functions which it implements | |
14504 | to always fail with ENOSYS. Some functions are actually named | |
14505 | something starting with __ and the normal name is an alias. */ | |
14506 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
14507 | choke me | |
14508 | #else | |
14509 | $ac_func(); | |
14510 | #endif | |
14511 | ||
14512 | ; return 0; } | |
14513 | EOF | |
d6853540 | 14514 | if { (eval echo configure:14515: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
af15babd VZ |
14515 | rm -rf conftest* |
14516 | eval "ac_cv_func_$ac_func=yes" | |
14517 | else | |
14518 | echo "configure: failed program was:" >&5 | |
14519 | cat conftest.$ac_ext >&5 | |
14520 | rm -rf conftest* | |
14521 | eval "ac_cv_func_$ac_func=no" | |
14522 | fi | |
14523 | rm -f conftest* | |
14524 | fi | |
14525 | ||
14526 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
14527 | echo "$ac_t""yes" 1>&6 | |
14528 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
14529 | cat >> confdefs.h <<EOF | |
14530 | #define $ac_tr_func 1 | |
14531 | EOF | |
4f14bcd8 | 14532 | break |
af15babd VZ |
14533 | else |
14534 | echo "$ac_t""no" 1>&6 | |
14535 | fi | |
af15babd VZ |
14536 | done |
14537 | ||
14538 | ||
4f14bcd8 GD |
14539 | HAVE_SOME_SLEEP_FUNC=0 |
14540 | if test "$USE_BEOS" = 1; then | |
14541 | cat >> confdefs.h <<\EOF | |
14542 | #define HAVE_SLEEP 1 | |
af15babd VZ |
14543 | EOF |
14544 | ||
4f14bcd8 | 14545 | HAVE_SOME_SLEEP_FUNC=1 |
10f2d63a VZ |
14546 | fi |
14547 | ||
4f14bcd8 GD |
14548 | if test "$USE_DARWIN" = 1; then |
14549 | cat >> confdefs.h <<\EOF | |
14550 | #define HAVE_USLEEP 1 | |
af15babd | 14551 | EOF |
10f2d63a | 14552 | |
4f14bcd8 | 14553 | HAVE_SOME_SLEEP_FUNC=1 |
10f2d63a VZ |
14554 | fi |
14555 | ||
4f14bcd8 GD |
14556 | if test "$HAVE_SOME_SLEEP_FUNC" != 1; then |
14557 | POSIX4_LINK= | |
14558 | for ac_func in nanosleep | |
14559 | do | |
14560 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
d6853540 | 14561 | echo "configure:14562: checking for $ac_func" >&5 |
4f14bcd8 | 14562 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
698dcdb6 | 14563 | echo $ac_n "(cached) $ac_c" 1>&6 |
10f2d63a | 14564 | else |
4f14bcd8 | 14565 | cat > conftest.$ac_ext <<EOF |
d6853540 | 14566 | #line 14567 "configure" |
10f2d63a | 14567 | #include "confdefs.h" |
4f14bcd8 GD |
14568 | /* System header to define __stub macros and hopefully few prototypes, |
14569 | which can conflict with char $ac_func(); below. */ | |
14570 | #include <assert.h> | |
10f2d63a VZ |
14571 | /* Override any gcc2 internal prototype to avoid an error. */ |
14572 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 | 14573 | builtin and then its argument prototype would still apply. */ |
4f14bcd8 | 14574 | char $ac_func(); |
698dcdb6 VZ |
14575 | |
14576 | int main() { | |
4f14bcd8 GD |
14577 | |
14578 | /* The GNU C library defines this for functions which it implements | |
14579 | to always fail with ENOSYS. Some functions are actually named | |
14580 | something starting with __ and the normal name is an alias. */ | |
14581 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
14582 | choke me | |
14583 | #else | |
14584 | $ac_func(); | |
14585 | #endif | |
14586 | ||
698dcdb6 VZ |
14587 | ; return 0; } |
14588 | EOF | |
d6853540 | 14589 | if { (eval echo configure:14590: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 | 14590 | rm -rf conftest* |
4f14bcd8 | 14591 | eval "ac_cv_func_$ac_func=yes" |
698dcdb6 VZ |
14592 | else |
14593 | echo "configure: failed program was:" >&5 | |
14594 | cat conftest.$ac_ext >&5 | |
14595 | rm -rf conftest* | |
4f14bcd8 | 14596 | eval "ac_cv_func_$ac_func=no" |
698dcdb6 VZ |
14597 | fi |
14598 | rm -f conftest* | |
698dcdb6 | 14599 | fi |
4f14bcd8 GD |
14600 | |
14601 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
698dcdb6 | 14602 | echo "$ac_t""yes" 1>&6 |
4f14bcd8 GD |
14603 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
14604 | cat >> confdefs.h <<EOF | |
14605 | #define $ac_tr_func 1 | |
14606 | EOF | |
14607 | cat >> confdefs.h <<\EOF | |
14608 | #define HAVE_NANOSLEEP 1 | |
14609 | EOF | |
14610 | ||
10f2d63a | 14611 | else |
698dcdb6 | 14612 | echo "$ac_t""no" 1>&6 |
4f14bcd8 | 14613 | echo $ac_n "checking for nanosleep in -lposix4""... $ac_c" 1>&6 |
d6853540 | 14614 | echo "configure:14615: checking for nanosleep in -lposix4" >&5 |
4f14bcd8 | 14615 | ac_lib_var=`echo posix4'_'nanosleep | sed 'y%./+-%__p_%'` |
698dcdb6 VZ |
14616 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
14617 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 14618 | else |
698dcdb6 | 14619 | ac_save_LIBS="$LIBS" |
4f14bcd8 | 14620 | LIBS="-lposix4 $LIBS" |
698dcdb6 | 14621 | cat > conftest.$ac_ext <<EOF |
d6853540 | 14622 | #line 14623 "configure" |
10f2d63a VZ |
14623 | #include "confdefs.h" |
14624 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14625 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 | 14626 | builtin and then its argument prototype would still apply. */ |
4f14bcd8 | 14627 | char nanosleep(); |
698dcdb6 VZ |
14628 | |
14629 | int main() { | |
4f14bcd8 | 14630 | nanosleep() |
698dcdb6 VZ |
14631 | ; return 0; } |
14632 | EOF | |
d6853540 | 14633 | if { (eval echo configure:14634: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
14634 | rm -rf conftest* |
14635 | eval "ac_cv_lib_$ac_lib_var=yes" | |
14636 | else | |
14637 | echo "configure: failed program was:" >&5 | |
14638 | cat conftest.$ac_ext >&5 | |
14639 | rm -rf conftest* | |
14640 | eval "ac_cv_lib_$ac_lib_var=no" | |
14641 | fi | |
14642 | rm -f conftest* | |
14643 | LIBS="$ac_save_LIBS" | |
10f2d63a | 14644 | |
698dcdb6 VZ |
14645 | fi |
14646 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
14647 | echo "$ac_t""yes" 1>&6 | |
14648 | ||
4f14bcd8 GD |
14649 | cat >> confdefs.h <<\EOF |
14650 | #define HAVE_NANOSLEEP 1 | |
14651 | EOF | |
14652 | ||
14653 | POSIX4_LINK="-lposix4" | |
14654 | ||
10f2d63a | 14655 | else |
698dcdb6 | 14656 | echo "$ac_t""no" 1>&6 |
10f2d63a | 14657 | |
4f14bcd8 GD |
14658 | for ac_func in usleep |
14659 | do | |
14660 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
d6853540 | 14661 | echo "configure:14662: checking for $ac_func" >&5 |
4f14bcd8 | 14662 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
698dcdb6 | 14663 | echo $ac_n "(cached) $ac_c" 1>&6 |
10f2d63a | 14664 | else |
698dcdb6 | 14665 | cat > conftest.$ac_ext <<EOF |
d6853540 | 14666 | #line 14667 "configure" |
10f2d63a | 14667 | #include "confdefs.h" |
4f14bcd8 GD |
14668 | /* System header to define __stub macros and hopefully few prototypes, |
14669 | which can conflict with char $ac_func(); below. */ | |
14670 | #include <assert.h> | |
14671 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14672 | /* We use char because int might match the return type of a gcc2 | |
14673 | builtin and then its argument prototype would still apply. */ | |
14674 | char $ac_func(); | |
14675 | ||
14676 | int main() { | |
14677 | ||
14678 | /* The GNU C library defines this for functions which it implements | |
14679 | to always fail with ENOSYS. Some functions are actually named | |
14680 | something starting with __ and the normal name is an alias. */ | |
14681 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
14682 | choke me | |
14683 | #else | |
14684 | $ac_func(); | |
14685 | #endif | |
14686 | ||
14687 | ; return 0; } | |
698dcdb6 | 14688 | EOF |
d6853540 | 14689 | if { (eval echo configure:14690: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 | 14690 | rm -rf conftest* |
4f14bcd8 | 14691 | eval "ac_cv_func_$ac_func=yes" |
1e487827 | 14692 | else |
698dcdb6 | 14693 | echo "configure: failed program was:" >&5 |
10f2d63a | 14694 | cat conftest.$ac_ext >&5 |
698dcdb6 | 14695 | rm -rf conftest* |
4f14bcd8 | 14696 | eval "ac_cv_func_$ac_func=no" |
10f2d63a | 14697 | fi |
698dcdb6 | 14698 | rm -f conftest* |
10f2d63a | 14699 | fi |
4f14bcd8 GD |
14700 | |
14701 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
698dcdb6 | 14702 | echo "$ac_t""yes" 1>&6 |
4f14bcd8 GD |
14703 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
14704 | cat >> confdefs.h <<EOF | |
14705 | #define $ac_tr_func 1 | |
14706 | EOF | |
14707 | cat >> confdefs.h <<\EOF | |
14708 | #define HAVE_USLEEP 1 | |
14709 | EOF | |
14710 | ||
698dcdb6 VZ |
14711 | else |
14712 | echo "$ac_t""no" 1>&6 | |
4f14bcd8 GD |
14713 | echo "configure: warning: wxSleep() function will not work" 1>&2 |
14714 | ||
10f2d63a | 14715 | fi |
4f14bcd8 | 14716 | done |
10f2d63a | 14717 | |
4f14bcd8 | 14718 | |
698dcdb6 | 14719 | |
6232543b | 14720 | fi |
10f2d63a | 14721 | |
698dcdb6 | 14722 | |
4f14bcd8 | 14723 | |
1e487827 | 14724 | fi |
4f14bcd8 | 14725 | done |
703e0a69 | 14726 | |
10f2d63a VZ |
14727 | fi |
14728 | ||
4f14bcd8 | 14729 | for ac_func in uname gethostname |
70846f0a | 14730 | do |
698dcdb6 | 14731 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
d6853540 | 14732 | echo "configure:14733: checking for $ac_func" >&5 |
698dcdb6 VZ |
14733 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
14734 | echo $ac_n "(cached) $ac_c" 1>&6 | |
14735 | else | |
14736 | cat > conftest.$ac_ext <<EOF | |
d6853540 | 14737 | #line 14738 "configure" |
70846f0a VZ |
14738 | #include "confdefs.h" |
14739 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 14740 | which can conflict with char $ac_func(); below. */ |
70846f0a VZ |
14741 | #include <assert.h> |
14742 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14743 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
14744 | builtin and then its argument prototype would still apply. */ |
14745 | char $ac_func(); | |
14746 | ||
14747 | int main() { | |
70846f0a VZ |
14748 | |
14749 | /* The GNU C library defines this for functions which it implements | |
14750 | to always fail with ENOSYS. Some functions are actually named | |
14751 | something starting with __ and the normal name is an alias. */ | |
14752 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
14753 | choke me | |
14754 | #else | |
698dcdb6 | 14755 | $ac_func(); |
70846f0a VZ |
14756 | #endif |
14757 | ||
698dcdb6 | 14758 | ; return 0; } |
70846f0a | 14759 | EOF |
d6853540 | 14760 | if { (eval echo configure:14761: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
14761 | rm -rf conftest* |
14762 | eval "ac_cv_func_$ac_func=yes" | |
14763 | else | |
14764 | echo "configure: failed program was:" >&5 | |
14765 | cat conftest.$ac_ext >&5 | |
14766 | rm -rf conftest* | |
14767 | eval "ac_cv_func_$ac_func=no" | |
14768 | fi | |
14769 | rm -f conftest* | |
14770 | fi | |
70846f0a | 14771 | |
698dcdb6 VZ |
14772 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
14773 | echo "$ac_t""yes" 1>&6 | |
14774 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
14775 | cat >> confdefs.h <<EOF | |
14776 | #define $ac_tr_func 1 | |
14777 | EOF | |
4f14bcd8 | 14778 | break |
698dcdb6 VZ |
14779 | else |
14780 | echo "$ac_t""no" 1>&6 | |
70846f0a VZ |
14781 | fi |
14782 | done | |
14783 | ||
698dcdb6 | 14784 | |
4f14bcd8 GD |
14785 | |
14786 | ac_ext=C | |
14787 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
14788 | ac_cpp='$CXXCPP $CPPFLAGS' | |
14789 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
14790 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
14791 | cross_compiling=$ac_cv_prog_cxx_cross | |
14792 | ||
14793 | ||
14794 | for ac_func in strtok_r | |
10f2d63a | 14795 | do |
4f14bcd8 | 14796 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
d6853540 | 14797 | echo "configure:14798: checking for $ac_func" >&5 |
4f14bcd8 | 14798 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
698dcdb6 VZ |
14799 | echo $ac_n "(cached) $ac_c" 1>&6 |
14800 | else | |
14801 | cat > conftest.$ac_ext <<EOF | |
d6853540 | 14802 | #line 14803 "configure" |
10f2d63a | 14803 | #include "confdefs.h" |
4f14bcd8 GD |
14804 | /* System header to define __stub macros and hopefully few prototypes, |
14805 | which can conflict with char $ac_func(); below. */ | |
14806 | #include <assert.h> | |
14807 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14808 | #ifdef __cplusplus | |
14809 | extern "C" | |
14810 | #endif | |
14811 | /* We use char because int might match the return type of a gcc2 | |
14812 | builtin and then its argument prototype would still apply. */ | |
14813 | char $ac_func(); | |
14814 | ||
14815 | int main() { | |
14816 | ||
14817 | /* The GNU C library defines this for functions which it implements | |
14818 | to always fail with ENOSYS. Some functions are actually named | |
14819 | something starting with __ and the normal name is an alias. */ | |
14820 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
14821 | choke me | |
14822 | #else | |
14823 | $ac_func(); | |
14824 | #endif | |
14825 | ||
14826 | ; return 0; } | |
698dcdb6 | 14827 | EOF |
d6853540 | 14828 | if { (eval echo configure:14829: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 | 14829 | rm -rf conftest* |
4f14bcd8 | 14830 | eval "ac_cv_func_$ac_func=yes" |
1e487827 | 14831 | else |
698dcdb6 | 14832 | echo "configure: failed program was:" >&5 |
10f2d63a | 14833 | cat conftest.$ac_ext >&5 |
698dcdb6 | 14834 | rm -rf conftest* |
4f14bcd8 | 14835 | eval "ac_cv_func_$ac_func=no" |
10f2d63a | 14836 | fi |
698dcdb6 | 14837 | rm -f conftest* |
10f2d63a | 14838 | fi |
4f14bcd8 GD |
14839 | |
14840 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
698dcdb6 | 14841 | echo "$ac_t""yes" 1>&6 |
4f14bcd8 | 14842 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
698dcdb6 | 14843 | cat >> confdefs.h <<EOF |
4f14bcd8 | 14844 | #define $ac_tr_func 1 |
10f2d63a | 14845 | EOF |
698dcdb6 VZ |
14846 | |
14847 | else | |
14848 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
14849 | fi |
14850 | done | |
14851 | ||
698dcdb6 | 14852 | |
4f14bcd8 GD |
14853 | ac_ext=c |
14854 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
14855 | ac_cpp='$CPP $CPPFLAGS' | |
14856 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
14857 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
14858 | cross_compiling=$ac_cv_prog_cc_cross | |
14859 | ||
14860 | ||
14861 | INET_LINK= | |
14862 | for ac_func in inet_addr | |
14863 | do | |
14864 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
d6853540 | 14865 | echo "configure:14866: checking for $ac_func" >&5 |
4f14bcd8 | 14866 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
698dcdb6 | 14867 | echo $ac_n "(cached) $ac_c" 1>&6 |
10f2d63a | 14868 | else |
4f14bcd8 | 14869 | cat > conftest.$ac_ext <<EOF |
d6853540 | 14870 | #line 14871 "configure" |
10f2d63a | 14871 | #include "confdefs.h" |
4f14bcd8 GD |
14872 | /* System header to define __stub macros and hopefully few prototypes, |
14873 | which can conflict with char $ac_func(); below. */ | |
14874 | #include <assert.h> | |
10f2d63a VZ |
14875 | /* Override any gcc2 internal prototype to avoid an error. */ |
14876 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 | 14877 | builtin and then its argument prototype would still apply. */ |
4f14bcd8 | 14878 | char $ac_func(); |
698dcdb6 VZ |
14879 | |
14880 | int main() { | |
4f14bcd8 GD |
14881 | |
14882 | /* The GNU C library defines this for functions which it implements | |
14883 | to always fail with ENOSYS. Some functions are actually named | |
14884 | something starting with __ and the normal name is an alias. */ | |
14885 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
14886 | choke me | |
14887 | #else | |
14888 | $ac_func(); | |
14889 | #endif | |
14890 | ||
698dcdb6 VZ |
14891 | ; return 0; } |
14892 | EOF | |
d6853540 | 14893 | if { (eval echo configure:14894: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 | 14894 | rm -rf conftest* |
4f14bcd8 | 14895 | eval "ac_cv_func_$ac_func=yes" |
698dcdb6 VZ |
14896 | else |
14897 | echo "configure: failed program was:" >&5 | |
14898 | cat conftest.$ac_ext >&5 | |
14899 | rm -rf conftest* | |
4f14bcd8 | 14900 | eval "ac_cv_func_$ac_func=no" |
698dcdb6 VZ |
14901 | fi |
14902 | rm -f conftest* | |
698dcdb6 | 14903 | fi |
4f14bcd8 GD |
14904 | |
14905 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
698dcdb6 | 14906 | echo "$ac_t""yes" 1>&6 |
4f14bcd8 GD |
14907 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
14908 | cat >> confdefs.h <<EOF | |
14909 | #define $ac_tr_func 1 | |
14910 | EOF | |
14911 | cat >> confdefs.h <<\EOF | |
14912 | #define HAVE_INET_ADDR 1 | |
10f2d63a VZ |
14913 | EOF |
14914 | ||
14915 | else | |
698dcdb6 | 14916 | echo "$ac_t""no" 1>&6 |
4f14bcd8 | 14917 | echo $ac_n "checking for inet_addr in -lnsl""... $ac_c" 1>&6 |
d6853540 | 14918 | echo "configure:14919: checking for inet_addr in -lnsl" >&5 |
4f14bcd8 | 14919 | ac_lib_var=`echo nsl'_'inet_addr | sed 'y%./+-%__p_%'` |
698dcdb6 VZ |
14920 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
14921 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 14922 | else |
698dcdb6 | 14923 | ac_save_LIBS="$LIBS" |
4f14bcd8 | 14924 | LIBS="-lnsl $LIBS" |
698dcdb6 | 14925 | cat > conftest.$ac_ext <<EOF |
d6853540 | 14926 | #line 14927 "configure" |
10f2d63a VZ |
14927 | #include "confdefs.h" |
14928 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14929 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 | 14930 | builtin and then its argument prototype would still apply. */ |
4f14bcd8 | 14931 | char inet_addr(); |
698dcdb6 VZ |
14932 | |
14933 | int main() { | |
4f14bcd8 | 14934 | inet_addr() |
698dcdb6 VZ |
14935 | ; return 0; } |
14936 | EOF | |
d6853540 | 14937 | if { (eval echo configure:14938: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
14938 | rm -rf conftest* |
14939 | eval "ac_cv_lib_$ac_lib_var=yes" | |
14940 | else | |
14941 | echo "configure: failed program was:" >&5 | |
14942 | cat conftest.$ac_ext >&5 | |
14943 | rm -rf conftest* | |
14944 | eval "ac_cv_lib_$ac_lib_var=no" | |
14945 | fi | |
14946 | rm -f conftest* | |
14947 | LIBS="$ac_save_LIBS" | |
14948 | ||
14949 | fi | |
14950 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
14951 | echo "$ac_t""yes" 1>&6 | |
4f14bcd8 | 14952 | INET_LINK="nsl" |
10f2d63a | 14953 | else |
698dcdb6 | 14954 | echo "$ac_t""no" 1>&6 |
4f14bcd8 | 14955 | echo $ac_n "checking for inet_addr in -lresolv""... $ac_c" 1>&6 |
d6853540 | 14956 | echo "configure:14957: checking for inet_addr in -lresolv" >&5 |
4f14bcd8 | 14957 | ac_lib_var=`echo resolv'_'inet_addr | sed 'y%./+-%__p_%'` |
698dcdb6 VZ |
14958 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
14959 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 14960 | else |
698dcdb6 | 14961 | ac_save_LIBS="$LIBS" |
4f14bcd8 | 14962 | LIBS="-lresolv $LIBS" |
698dcdb6 | 14963 | cat > conftest.$ac_ext <<EOF |
d6853540 | 14964 | #line 14965 "configure" |
10f2d63a VZ |
14965 | #include "confdefs.h" |
14966 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14967 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 | 14968 | builtin and then its argument prototype would still apply. */ |
4f14bcd8 | 14969 | char inet_addr(); |
698dcdb6 VZ |
14970 | |
14971 | int main() { | |
4f14bcd8 | 14972 | inet_addr() |
698dcdb6 VZ |
14973 | ; return 0; } |
14974 | EOF | |
d6853540 | 14975 | if { (eval echo configure:14976: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
14976 | rm -rf conftest* |
14977 | eval "ac_cv_lib_$ac_lib_var=yes" | |
14978 | else | |
14979 | echo "configure: failed program was:" >&5 | |
14980 | cat conftest.$ac_ext >&5 | |
14981 | rm -rf conftest* | |
14982 | eval "ac_cv_lib_$ac_lib_var=no" | |
14983 | fi | |
14984 | rm -f conftest* | |
14985 | LIBS="$ac_save_LIBS" | |
14986 | ||
14987 | fi | |
14988 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
14989 | echo "$ac_t""yes" 1>&6 | |
4f14bcd8 GD |
14990 | INET_LINK="resolv" |
14991 | ||
698dcdb6 | 14992 | else |
4f14bcd8 GD |
14993 | echo "$ac_t""no" 1>&6 |
14994 | fi | |
698dcdb6 | 14995 | |
4f14bcd8 | 14996 | |
698dcdb6 | 14997 | fi |
4f14bcd8 GD |
14998 | |
14999 | ||
698dcdb6 VZ |
15000 | |
15001 | fi | |
4f14bcd8 GD |
15002 | done |
15003 | ||
15004 | ||
15005 | for ac_func in inet_aton | |
15006 | do | |
15007 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
d6853540 | 15008 | echo "configure:15009: checking for $ac_func" >&5 |
4f14bcd8 | 15009 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
698dcdb6 VZ |
15010 | echo $ac_n "(cached) $ac_c" 1>&6 |
15011 | else | |
4f14bcd8 | 15012 | cat > conftest.$ac_ext <<EOF |
d6853540 | 15013 | #line 15014 "configure" |
f6bcfd97 | 15014 | #include "confdefs.h" |
4f14bcd8 GD |
15015 | /* System header to define __stub macros and hopefully few prototypes, |
15016 | which can conflict with char $ac_func(); below. */ | |
15017 | #include <assert.h> | |
f6bcfd97 BP |
15018 | /* Override any gcc2 internal prototype to avoid an error. */ |
15019 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 | 15020 | builtin and then its argument prototype would still apply. */ |
4f14bcd8 | 15021 | char $ac_func(); |
698dcdb6 VZ |
15022 | |
15023 | int main() { | |
4f14bcd8 GD |
15024 | |
15025 | /* The GNU C library defines this for functions which it implements | |
15026 | to always fail with ENOSYS. Some functions are actually named | |
15027 | something starting with __ and the normal name is an alias. */ | |
15028 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
15029 | choke me | |
15030 | #else | |
15031 | $ac_func(); | |
15032 | #endif | |
15033 | ||
698dcdb6 VZ |
15034 | ; return 0; } |
15035 | EOF | |
d6853540 | 15036 | if { (eval echo configure:15037: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 | 15037 | rm -rf conftest* |
4f14bcd8 | 15038 | eval "ac_cv_func_$ac_func=yes" |
698dcdb6 VZ |
15039 | else |
15040 | echo "configure: failed program was:" >&5 | |
15041 | cat conftest.$ac_ext >&5 | |
15042 | rm -rf conftest* | |
4f14bcd8 | 15043 | eval "ac_cv_func_$ac_func=no" |
698dcdb6 VZ |
15044 | fi |
15045 | rm -f conftest* | |
698dcdb6 | 15046 | fi |
4f14bcd8 GD |
15047 | |
15048 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
698dcdb6 | 15049 | echo "$ac_t""yes" 1>&6 |
4f14bcd8 GD |
15050 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
15051 | cat >> confdefs.h <<EOF | |
15052 | #define $ac_tr_func 1 | |
15053 | EOF | |
15054 | cat >> confdefs.h <<\EOF | |
15055 | #define HAVE_INET_ATON 1 | |
15056 | EOF | |
15057 | ||
10f2d63a | 15058 | else |
698dcdb6 | 15059 | echo "$ac_t""no" 1>&6 |
4f14bcd8 | 15060 | echo $ac_n "checking for inet_aton in -l$INET_LINK""... $ac_c" 1>&6 |
d6853540 | 15061 | echo "configure:15062: checking for inet_aton in -l$INET_LINK" >&5 |
4f14bcd8 | 15062 | ac_lib_var=`echo $INET_LINK'_'inet_aton | sed 'y%./+-%__p_%'` |
698dcdb6 VZ |
15063 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
15064 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1e487827 | 15065 | else |
698dcdb6 | 15066 | ac_save_LIBS="$LIBS" |
4f14bcd8 | 15067 | LIBS="-l$INET_LINK $LIBS" |
698dcdb6 | 15068 | cat > conftest.$ac_ext <<EOF |
d6853540 | 15069 | #line 15070 "configure" |
10f2d63a | 15070 | #include "confdefs.h" |
6232543b | 15071 | /* Override any gcc2 internal prototype to avoid an error. */ |
6232543b | 15072 | /* We use char because int might match the return type of a gcc2 |
698dcdb6 | 15073 | builtin and then its argument prototype would still apply. */ |
4f14bcd8 | 15074 | char inet_aton(); |
698dcdb6 VZ |
15075 | |
15076 | int main() { | |
4f14bcd8 | 15077 | inet_aton() |
698dcdb6 VZ |
15078 | ; return 0; } |
15079 | EOF | |
d6853540 | 15080 | if { (eval echo configure:15081: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
15081 | rm -rf conftest* |
15082 | eval "ac_cv_lib_$ac_lib_var=yes" | |
15083 | else | |
15084 | echo "configure: failed program was:" >&5 | |
15085 | cat conftest.$ac_ext >&5 | |
15086 | rm -rf conftest* | |
15087 | eval "ac_cv_lib_$ac_lib_var=no" | |
15088 | fi | |
15089 | rm -f conftest* | |
15090 | LIBS="$ac_save_LIBS" | |
10f2d63a | 15091 | |
698dcdb6 VZ |
15092 | fi |
15093 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
15094 | echo "$ac_t""yes" 1>&6 | |
4f14bcd8 GD |
15095 | cat >> confdefs.h <<\EOF |
15096 | #define HAVE_INET_ATON 1 | |
15097 | EOF | |
15098 | ||
698dcdb6 VZ |
15099 | else |
15100 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
15101 | fi |
15102 | ||
4f14bcd8 | 15103 | |
10f2d63a | 15104 | fi |
4f14bcd8 | 15105 | done |
10f2d63a | 15106 | |
4f14bcd8 GD |
15107 | |
15108 | if test "x$INET_LINK" != "x"; then | |
15109 | cat >> confdefs.h <<\EOF | |
15110 | #define HAVE_INET_ADDR 1 | |
15111 | EOF | |
15112 | ||
15113 | INET_LINK="-l$INET_LINK" | |
6232543b | 15114 | fi |
10f2d63a | 15115 | |
1e487827 | 15116 | fi |
703e0a69 | 15117 | |
698dcdb6 | 15118 | |
4f14bcd8 GD |
15119 | cat > confcache <<\EOF |
15120 | # This file is a shell script that caches the results of configure | |
15121 | # tests run on this system so they can be shared between configure | |
15122 | # scripts and configure runs. It is not useful on other systems. | |
15123 | # If it contains results you don't want to keep, you may remove or edit it. | |
15124 | # | |
15125 | # By default, configure uses ./config.cache as the cache file, | |
15126 | # creating it if it does not exist already. You can give configure | |
15127 | # the --cache-file=FILE option to use a different cache file; that is | |
15128 | # what configure does when it calls configure scripts in | |
15129 | # subdirectories, so they share the cache. | |
15130 | # Giving --cache-file=/dev/null disables caching, for debugging configure. | |
15131 | # config.status only pays attention to the cache file if you give it the | |
15132 | # --recheck option to rerun configure. | |
15133 | # | |
f6bcfd97 | 15134 | EOF |
4f14bcd8 GD |
15135 | # The following way of writing the cache mishandles newlines in values, |
15136 | # but we know of no workaround that is simple, portable, and efficient. | |
15137 | # So, don't put newlines in cache variables' values. | |
15138 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
15139 | # and sets the high bit in the cache file unless we assign to the vars. | |
15140 | (set) 2>&1 | | |
15141 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
15142 | *ac_space=\ *) | |
15143 | # `set' does not quote correctly, so add quotes (double-quote substitution | |
15144 | # turns \\\\ into \\, and sed turns \\ into \). | |
15145 | sed -n \ | |
15146 | -e "s/'/'\\\\''/g" \ | |
15147 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" | |
15148 | ;; | |
15149 | *) | |
15150 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
15151 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' | |
15152 | ;; | |
15153 | esac >> confcache | |
15154 | if cmp -s $cache_file confcache; then | |
15155 | : | |
15156 | else | |
15157 | if test -w $cache_file; then | |
15158 | echo "updating cache $cache_file" | |
15159 | cat confcache > $cache_file | |
f6bcfd97 | 15160 | else |
4f14bcd8 | 15161 | echo "not updating unwritable cache $cache_file" |
f6bcfd97 | 15162 | fi |
4f14bcd8 GD |
15163 | fi |
15164 | rm -f confcache | |
f6bcfd97 | 15165 | |
4f14bcd8 GD |
15166 | |
15167 | ||
15168 | if test "$TOOLKIT" != "MSW"; then | |
15169 | ||
15170 | ||
15171 | THREADS_LINK= | |
15172 | THREADS_OBJ= | |
15173 | CODE_GEN_FLAGS= | |
15174 | CODE_GEN_FLAGS_CXX= | |
15175 | ||
15176 | if test "$wxUSE_THREADS" = "yes" ; then | |
15177 | if test "$wxUSE_WINE" = 1 ; then | |
15178 | echo "configure: warning: Threads are not supported under WINE" 1>&2 | |
15179 | wxUSE_THREADS="no" | |
15180 | elif test "$USE_BEOS" = 1; then | |
15181 | echo "configure: warning: BeOS threads are not yet supported" 1>&2 | |
15182 | wxUSE_THREADS="no" | |
15183 | fi | |
15184 | fi | |
15185 | ||
15186 | if test "$wxUSE_THREADS" = "yes" ; then | |
15187 | ||
15188 | if test "$USE_AIX" = 1; then | |
15189 | THREADS_LIB=pthreads | |
15190 | else | |
15191 | THREADS_LIB=pthread | |
15192 | fi | |
15193 | ||
15194 | echo $ac_n "checking for pthread_create in -l$THREADS_LIB""... $ac_c" 1>&6 | |
d6853540 | 15195 | echo "configure:15196: checking for pthread_create in -l$THREADS_LIB" >&5 |
4f14bcd8 | 15196 | ac_lib_var=`echo $THREADS_LIB'_'pthread_create | sed 'y%./+-%__p_%'` |
698dcdb6 VZ |
15197 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
15198 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 15199 | else |
698dcdb6 | 15200 | ac_save_LIBS="$LIBS" |
4f14bcd8 | 15201 | LIBS="-l$THREADS_LIB $LIBS" |
698dcdb6 | 15202 | cat > conftest.$ac_ext <<EOF |
d6853540 | 15203 | #line 15204 "configure" |
10f2d63a VZ |
15204 | #include "confdefs.h" |
15205 | /* Override any gcc2 internal prototype to avoid an error. */ | |
15206 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 | 15207 | builtin and then its argument prototype would still apply. */ |
4f14bcd8 | 15208 | char pthread_create(); |
698dcdb6 VZ |
15209 | |
15210 | int main() { | |
4f14bcd8 | 15211 | pthread_create() |
698dcdb6 VZ |
15212 | ; return 0; } |
15213 | EOF | |
d6853540 | 15214 | if { (eval echo configure:15215: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
15215 | rm -rf conftest* |
15216 | eval "ac_cv_lib_$ac_lib_var=yes" | |
15217 | else | |
15218 | echo "configure: failed program was:" >&5 | |
15219 | cat conftest.$ac_ext >&5 | |
15220 | rm -rf conftest* | |
15221 | eval "ac_cv_lib_$ac_lib_var=no" | |
15222 | fi | |
15223 | rm -f conftest* | |
15224 | LIBS="$ac_save_LIBS" | |
15225 | ||
15226 | fi | |
15227 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
15228 | echo "$ac_t""yes" 1>&6 | |
4f14bcd8 GD |
15229 | |
15230 | THREADS_OBJ="threadpsx.lo" | |
15231 | THREADS_LINK=$THREADS_LIB | |
15232 | ||
10f2d63a | 15233 | else |
698dcdb6 | 15234 | echo "$ac_t""no" 1>&6 |
10f2d63a | 15235 | |
4f14bcd8 | 15236 | echo $ac_n "checking for pthread_create in -lc_r""... $ac_c" 1>&6 |
d6853540 | 15237 | echo "configure:15238: checking for pthread_create in -lc_r" >&5 |
4f14bcd8 GD |
15238 | ac_lib_var=`echo c_r'_'pthread_create | sed 'y%./+-%__p_%'` |
15239 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
698dcdb6 VZ |
15240 | echo $ac_n "(cached) $ac_c" 1>&6 |
15241 | else | |
4f14bcd8 GD |
15242 | ac_save_LIBS="$LIBS" |
15243 | LIBS="-lc_r $LIBS" | |
15244 | cat > conftest.$ac_ext <<EOF | |
d6853540 | 15245 | #line 15246 "configure" |
10f2d63a | 15246 | #include "confdefs.h" |
4f14bcd8 GD |
15247 | /* Override any gcc2 internal prototype to avoid an error. */ |
15248 | /* We use char because int might match the return type of a gcc2 | |
15249 | builtin and then its argument prototype would still apply. */ | |
15250 | char pthread_create(); | |
10f2d63a | 15251 | |
4f14bcd8 GD |
15252 | int main() { |
15253 | pthread_create() | |
698dcdb6 VZ |
15254 | ; return 0; } |
15255 | EOF | |
d6853540 | 15256 | if { (eval echo configure:15257: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 | 15257 | rm -rf conftest* |
4f14bcd8 | 15258 | eval "ac_cv_lib_$ac_lib_var=yes" |
10f2d63a | 15259 | else |
698dcdb6 VZ |
15260 | echo "configure: failed program was:" >&5 |
15261 | cat conftest.$ac_ext >&5 | |
15262 | rm -rf conftest* | |
4f14bcd8 | 15263 | eval "ac_cv_lib_$ac_lib_var=no" |
6232543b | 15264 | fi |
698dcdb6 | 15265 | rm -f conftest* |
4f14bcd8 | 15266 | LIBS="$ac_save_LIBS" |
d9b9876f | 15267 | |
4f14bcd8 GD |
15268 | fi |
15269 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
15270 | echo "$ac_t""yes" 1>&6 | |
15271 | ||
15272 | THREADS_OBJ="threadpsx.lo" | |
15273 | THREADS_LINK="c_r" | |
15274 | ||
15275 | else | |
15276 | echo "$ac_t""no" 1>&6 | |
ab252f7b | 15277 | |
4f14bcd8 GD |
15278 | ac_safe=`echo "sys/prctl.h" | sed 'y%./+-%__p_%'` |
15279 | echo $ac_n "checking for sys/prctl.h""... $ac_c" 1>&6 | |
d6853540 | 15280 | echo "configure:15281: checking for sys/prctl.h" >&5 |
4f14bcd8 | 15281 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
698dcdb6 | 15282 | echo $ac_n "(cached) $ac_c" 1>&6 |
d9b9876f | 15283 | else |
4f14bcd8 | 15284 | cat > conftest.$ac_ext <<EOF |
d6853540 | 15285 | #line 15286 "configure" |
d9b9876f | 15286 | #include "confdefs.h" |
4f14bcd8 | 15287 | #include <sys/prctl.h> |
698dcdb6 | 15288 | EOF |
4f14bcd8 | 15289 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
d6853540 | 15290 | { (eval echo configure:15291: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
4f14bcd8 GD |
15291 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
15292 | if test -z "$ac_err"; then | |
698dcdb6 | 15293 | rm -rf conftest* |
4f14bcd8 | 15294 | eval "ac_cv_header_$ac_safe=yes" |
d9b9876f | 15295 | else |
4f14bcd8 | 15296 | echo "$ac_err" >&5 |
698dcdb6 VZ |
15297 | echo "configure: failed program was:" >&5 |
15298 | cat conftest.$ac_ext >&5 | |
15299 | rm -rf conftest* | |
4f14bcd8 | 15300 | eval "ac_cv_header_$ac_safe=no" |
6232543b | 15301 | fi |
698dcdb6 | 15302 | rm -f conftest* |
4f14bcd8 GD |
15303 | fi |
15304 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
15305 | echo "$ac_t""yes" 1>&6 | |
698dcdb6 | 15306 | |
4f14bcd8 GD |
15307 | THREADS_OBJ="threadsgi.lo" |
15308 | ||
15309 | else | |
15310 | echo "$ac_t""no" 1>&6 | |
1e487827 | 15311 | fi |
698dcdb6 | 15312 | |
4f14bcd8 GD |
15313 | |
15314 | fi | |
d9b9876f | 15315 | |
4f14bcd8 GD |
15316 | |
15317 | fi | |
d9b9876f | 15318 | |
4f14bcd8 GD |
15319 | |
15320 | if test -z "$THREADS_OBJ" ; then | |
15321 | wxUSE_THREADS=no | |
15322 | echo "configure: warning: No thread support on this system" 1>&2 | |
15323 | fi | |
15324 | fi | |
15325 | ||
15326 | if test "$wxUSE_THREADS" = "yes" ; then | |
15327 | for ac_func in thr_setconcurrency | |
15328 | do | |
15329 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
d6853540 | 15330 | echo "configure:15331: checking for $ac_func" >&5 |
4f14bcd8 | 15331 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
698dcdb6 VZ |
15332 | echo $ac_n "(cached) $ac_c" 1>&6 |
15333 | else | |
4f14bcd8 | 15334 | cat > conftest.$ac_ext <<EOF |
d6853540 | 15335 | #line 15336 "configure" |
d9b9876f | 15336 | #include "confdefs.h" |
4f14bcd8 GD |
15337 | /* System header to define __stub macros and hopefully few prototypes, |
15338 | which can conflict with char $ac_func(); below. */ | |
15339 | #include <assert.h> | |
15340 | /* Override any gcc2 internal prototype to avoid an error. */ | |
15341 | /* We use char because int might match the return type of a gcc2 | |
15342 | builtin and then its argument prototype would still apply. */ | |
15343 | char $ac_func(); | |
15344 | ||
698dcdb6 | 15345 | int main() { |
d9b9876f | 15346 | |
4f14bcd8 GD |
15347 | /* The GNU C library defines this for functions which it implements |
15348 | to always fail with ENOSYS. Some functions are actually named | |
15349 | something starting with __ and the normal name is an alias. */ | |
15350 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
15351 | choke me | |
15352 | #else | |
15353 | $ac_func(); | |
15354 | #endif | |
15355 | ||
698dcdb6 VZ |
15356 | ; return 0; } |
15357 | EOF | |
d6853540 | 15358 | if { (eval echo configure:15359: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 | 15359 | rm -rf conftest* |
4f14bcd8 | 15360 | eval "ac_cv_func_$ac_func=yes" |
d9b9876f | 15361 | else |
698dcdb6 VZ |
15362 | echo "configure: failed program was:" >&5 |
15363 | cat conftest.$ac_ext >&5 | |
15364 | rm -rf conftest* | |
4f14bcd8 | 15365 | eval "ac_cv_func_$ac_func=no" |
6232543b | 15366 | fi |
698dcdb6 | 15367 | rm -f conftest* |
1e487827 | 15368 | fi |
698dcdb6 | 15369 | |
4f14bcd8 GD |
15370 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
15371 | echo "$ac_t""yes" 1>&6 | |
15372 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
15373 | cat >> confdefs.h <<EOF | |
15374 | #define $ac_tr_func 1 | |
d9b9876f | 15375 | EOF |
4f14bcd8 GD |
15376 | |
15377 | else | |
15378 | echo "$ac_t""no" 1>&6 | |
10f2d63a | 15379 | fi |
4f14bcd8 | 15380 | done |
10f2d63a | 15381 | |
10f2d63a | 15382 | |
4f14bcd8 GD |
15383 | |
15384 | for ac_hdr in sched.h | |
15385 | do | |
15386 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
15387 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
d6853540 | 15388 | echo "configure:15389: checking for $ac_hdr" >&5 |
4f14bcd8 GD |
15389 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
15390 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 15391 | else |
4f14bcd8 | 15392 | cat > conftest.$ac_ext <<EOF |
d6853540 | 15393 | #line 15394 "configure" |
4f14bcd8 GD |
15394 | #include "confdefs.h" |
15395 | #include <$ac_hdr> | |
13111b2a | 15396 | EOF |
4f14bcd8 | 15397 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
d6853540 | 15398 | { (eval echo configure:15399: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
4f14bcd8 GD |
15399 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
15400 | if test -z "$ac_err"; then | |
15401 | rm -rf conftest* | |
15402 | eval "ac_cv_header_$ac_safe=yes" | |
15403 | else | |
15404 | echo "$ac_err" >&5 | |
15405 | echo "configure: failed program was:" >&5 | |
15406 | cat conftest.$ac_ext >&5 | |
15407 | rm -rf conftest* | |
15408 | eval "ac_cv_header_$ac_safe=no" | |
13111b2a | 15409 | fi |
4f14bcd8 | 15410 | rm -f conftest* |
10f2d63a | 15411 | fi |
4f14bcd8 GD |
15412 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
15413 | echo "$ac_t""yes" 1>&6 | |
15414 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
698dcdb6 | 15415 | cat >> confdefs.h <<EOF |
4f14bcd8 | 15416 | #define $ac_tr_hdr 1 |
f6bcfd97 | 15417 | EOF |
4f14bcd8 GD |
15418 | |
15419 | else | |
15420 | echo "$ac_t""no" 1>&6 | |
f6bcfd97 | 15421 | fi |
4f14bcd8 | 15422 | done |
f6bcfd97 | 15423 | |
10f2d63a | 15424 | |
4f14bcd8 | 15425 | echo $ac_n "checking for sched_yield in -l$THREADS_LINK""... $ac_c" 1>&6 |
d6853540 | 15426 | echo "configure:15427: checking for sched_yield in -l$THREADS_LINK" >&5 |
4f14bcd8 GD |
15427 | ac_lib_var=`echo $THREADS_LINK'_'sched_yield | sed 'y%./+-%__p_%'` |
15428 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
15429 | echo $ac_n "(cached) $ac_c" 1>&6 | |
15430 | else | |
15431 | ac_save_LIBS="$LIBS" | |
15432 | LIBS="-l$THREADS_LINK $LIBS" | |
15433 | cat > conftest.$ac_ext <<EOF | |
d6853540 | 15434 | #line 15435 "configure" |
4f14bcd8 GD |
15435 | #include "confdefs.h" |
15436 | /* Override any gcc2 internal prototype to avoid an error. */ | |
15437 | /* We use char because int might match the return type of a gcc2 | |
15438 | builtin and then its argument prototype would still apply. */ | |
15439 | char sched_yield(); | |
10f2d63a | 15440 | |
4f14bcd8 GD |
15441 | int main() { |
15442 | sched_yield() | |
15443 | ; return 0; } | |
10f2d63a | 15444 | EOF |
d6853540 | 15445 | if { (eval echo configure:15446: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
4f14bcd8 GD |
15446 | rm -rf conftest* |
15447 | eval "ac_cv_lib_$ac_lib_var=yes" | |
10f2d63a | 15448 | else |
4f14bcd8 GD |
15449 | echo "configure: failed program was:" >&5 |
15450 | cat conftest.$ac_ext >&5 | |
15451 | rm -rf conftest* | |
15452 | eval "ac_cv_lib_$ac_lib_var=no" | |
10f2d63a | 15453 | fi |
4f14bcd8 GD |
15454 | rm -f conftest* |
15455 | LIBS="$ac_save_LIBS" | |
10f2d63a | 15456 | |
4f14bcd8 GD |
15457 | fi |
15458 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
15459 | echo "$ac_t""yes" 1>&6 | |
15460 | cat >> confdefs.h <<\EOF | |
15461 | #define HAVE_SCHED_YIELD 1 | |
10f2d63a VZ |
15462 | EOF |
15463 | ||
4f14bcd8 GD |
15464 | else |
15465 | echo "$ac_t""no" 1>&6 | |
15466 | echo $ac_n "checking for sched_yield in -lposix4""... $ac_c" 1>&6 | |
d6853540 | 15467 | echo "configure:15468: checking for sched_yield in -lposix4" >&5 |
4f14bcd8 GD |
15468 | ac_lib_var=`echo posix4'_'sched_yield | sed 'y%./+-%__p_%'` |
15469 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
15470 | echo $ac_n "(cached) $ac_c" 1>&6 | |
15471 | else | |
15472 | ac_save_LIBS="$LIBS" | |
15473 | LIBS="-lposix4 $LIBS" | |
15474 | cat > conftest.$ac_ext <<EOF | |
d6853540 | 15475 | #line 15476 "configure" |
4f14bcd8 GD |
15476 | #include "confdefs.h" |
15477 | /* Override any gcc2 internal prototype to avoid an error. */ | |
15478 | /* We use char because int might match the return type of a gcc2 | |
15479 | builtin and then its argument prototype would still apply. */ | |
15480 | char sched_yield(); | |
47c13eb7 | 15481 | |
4f14bcd8 GD |
15482 | int main() { |
15483 | sched_yield() | |
15484 | ; return 0; } | |
10f2d63a | 15485 | EOF |
d6853540 | 15486 | if { (eval echo configure:15487: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
4f14bcd8 GD |
15487 | rm -rf conftest* |
15488 | eval "ac_cv_lib_$ac_lib_var=yes" | |
10f2d63a | 15489 | else |
4f14bcd8 GD |
15490 | echo "configure: failed program was:" >&5 |
15491 | cat conftest.$ac_ext >&5 | |
15492 | rm -rf conftest* | |
15493 | eval "ac_cv_lib_$ac_lib_var=no" | |
10f2d63a | 15494 | fi |
4f14bcd8 GD |
15495 | rm -f conftest* |
15496 | LIBS="$ac_save_LIBS" | |
10f2d63a | 15497 | |
54276ccf | 15498 | fi |
4f14bcd8 GD |
15499 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
15500 | echo "$ac_t""yes" 1>&6 | |
15501 | cat >> confdefs.h <<\EOF | |
15502 | #define HAVE_SCHED_YIELD 1 | |
54276ccf | 15503 | EOF |
4f14bcd8 GD |
15504 | POSIX4_LINK="-lposix4" |
15505 | else | |
15506 | echo "$ac_t""no" 1>&6 | |
15507 | echo "configure: warning: wxThread::Yield will not work properly" 1>&2 | |
15508 | ||
54276ccf VZ |
15509 | fi |
15510 | ||
4f14bcd8 GD |
15511 | |
15512 | fi | |
698dcdb6 | 15513 | |
10f2d63a | 15514 | |
4f14bcd8 GD |
15515 | HAVE_PRIOR_FUNCS=0 |
15516 | echo $ac_n "checking for pthread_attr_getschedpolicy in -l$THREADS_LINK""... $ac_c" 1>&6 | |
d6853540 | 15517 | echo "configure:15518: checking for pthread_attr_getschedpolicy in -l$THREADS_LINK" >&5 |
4f14bcd8 GD |
15518 | ac_lib_var=`echo $THREADS_LINK'_'pthread_attr_getschedpolicy | sed 'y%./+-%__p_%'` |
15519 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
698dcdb6 VZ |
15520 | echo $ac_n "(cached) $ac_c" 1>&6 |
15521 | else | |
4f14bcd8 GD |
15522 | ac_save_LIBS="$LIBS" |
15523 | LIBS="-l$THREADS_LINK $LIBS" | |
15524 | cat > conftest.$ac_ext <<EOF | |
d6853540 | 15525 | #line 15526 "configure" |
422107f9 | 15526 | #include "confdefs.h" |
4f14bcd8 GD |
15527 | /* Override any gcc2 internal prototype to avoid an error. */ |
15528 | /* We use char because int might match the return type of a gcc2 | |
15529 | builtin and then its argument prototype would still apply. */ | |
15530 | char pthread_attr_getschedpolicy(); | |
15531 | ||
15532 | int main() { | |
15533 | pthread_attr_getschedpolicy() | |
15534 | ; return 0; } | |
698dcdb6 | 15535 | EOF |
d6853540 | 15536 | if { (eval echo configure:15537: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 | 15537 | rm -rf conftest* |
4f14bcd8 | 15538 | eval "ac_cv_lib_$ac_lib_var=yes" |
422107f9 | 15539 | else |
698dcdb6 | 15540 | echo "configure: failed program was:" >&5 |
422107f9 | 15541 | cat conftest.$ac_ext >&5 |
698dcdb6 | 15542 | rm -rf conftest* |
4f14bcd8 | 15543 | eval "ac_cv_lib_$ac_lib_var=no" |
422107f9 | 15544 | fi |
698dcdb6 | 15545 | rm -f conftest* |
4f14bcd8 GD |
15546 | LIBS="$ac_save_LIBS" |
15547 | ||
422107f9 | 15548 | fi |
4f14bcd8 | 15549 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
698dcdb6 | 15550 | echo "$ac_t""yes" 1>&6 |
4f14bcd8 | 15551 | echo $ac_n "checking for pthread_attr_setschedparam in -l$THREADS_LINK""... $ac_c" 1>&6 |
d6853540 | 15552 | echo "configure:15553: checking for pthread_attr_setschedparam in -l$THREADS_LINK" >&5 |
4f14bcd8 | 15553 | ac_lib_var=`echo $THREADS_LINK'_'pthread_attr_setschedparam | sed 'y%./+-%__p_%'` |
698dcdb6 VZ |
15554 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
15555 | echo $ac_n "(cached) $ac_c" 1>&6 | |
422107f9 | 15556 | else |
698dcdb6 | 15557 | ac_save_LIBS="$LIBS" |
4f14bcd8 | 15558 | LIBS="-l$THREADS_LINK $LIBS" |
698dcdb6 | 15559 | cat > conftest.$ac_ext <<EOF |
d6853540 | 15560 | #line 15561 "configure" |
422107f9 VZ |
15561 | #include "confdefs.h" |
15562 | /* Override any gcc2 internal prototype to avoid an error. */ | |
15563 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 | 15564 | builtin and then its argument prototype would still apply. */ |
4f14bcd8 | 15565 | char pthread_attr_setschedparam(); |
698dcdb6 VZ |
15566 | |
15567 | int main() { | |
4f14bcd8 | 15568 | pthread_attr_setschedparam() |
698dcdb6 VZ |
15569 | ; return 0; } |
15570 | EOF | |
d6853540 | 15571 | if { (eval echo configure:15572: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
15572 | rm -rf conftest* |
15573 | eval "ac_cv_lib_$ac_lib_var=yes" | |
15574 | else | |
15575 | echo "configure: failed program was:" >&5 | |
15576 | cat conftest.$ac_ext >&5 | |
15577 | rm -rf conftest* | |
15578 | eval "ac_cv_lib_$ac_lib_var=no" | |
15579 | fi | |
15580 | rm -f conftest* | |
15581 | LIBS="$ac_save_LIBS" | |
15582 | ||
15583 | fi | |
15584 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
15585 | echo "$ac_t""yes" 1>&6 | |
4f14bcd8 | 15586 | echo $ac_n "checking for sched_get_priority_max in -l$THREADS_LINK""... $ac_c" 1>&6 |
d6853540 | 15587 | echo "configure:15588: checking for sched_get_priority_max in -l$THREADS_LINK" >&5 |
4f14bcd8 GD |
15588 | ac_lib_var=`echo $THREADS_LINK'_'sched_get_priority_max | sed 'y%./+-%__p_%'` |
15589 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
698dcdb6 VZ |
15590 | echo $ac_n "(cached) $ac_c" 1>&6 |
15591 | else | |
4f14bcd8 GD |
15592 | ac_save_LIBS="$LIBS" |
15593 | LIBS="-l$THREADS_LINK $LIBS" | |
15594 | cat > conftest.$ac_ext <<EOF | |
d6853540 | 15595 | #line 15596 "configure" |
422107f9 | 15596 | #include "confdefs.h" |
4f14bcd8 GD |
15597 | /* Override any gcc2 internal prototype to avoid an error. */ |
15598 | /* We use char because int might match the return type of a gcc2 | |
15599 | builtin and then its argument prototype would still apply. */ | |
15600 | char sched_get_priority_max(); | |
15601 | ||
15602 | int main() { | |
15603 | sched_get_priority_max() | |
15604 | ; return 0; } | |
698dcdb6 | 15605 | EOF |
d6853540 | 15606 | if { (eval echo configure:15607: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 | 15607 | rm -rf conftest* |
4f14bcd8 | 15608 | eval "ac_cv_lib_$ac_lib_var=yes" |
422107f9 | 15609 | else |
698dcdb6 | 15610 | echo "configure: failed program was:" >&5 |
422107f9 | 15611 | cat conftest.$ac_ext >&5 |
698dcdb6 | 15612 | rm -rf conftest* |
4f14bcd8 | 15613 | eval "ac_cv_lib_$ac_lib_var=no" |
422107f9 | 15614 | fi |
698dcdb6 | 15615 | rm -f conftest* |
4f14bcd8 GD |
15616 | LIBS="$ac_save_LIBS" |
15617 | ||
422107f9 | 15618 | fi |
4f14bcd8 | 15619 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
698dcdb6 | 15620 | echo "$ac_t""yes" 1>&6 |
4f14bcd8 GD |
15621 | HAVE_PRIOR_FUNCS=1 |
15622 | else | |
15623 | echo "$ac_t""no" 1>&6 | |
15624 | echo $ac_n "checking for sched_get_priority_max in -lposix4""... $ac_c" 1>&6 | |
d6853540 | 15625 | echo "configure:15626: checking for sched_get_priority_max in -lposix4" >&5 |
4f14bcd8 | 15626 | ac_lib_var=`echo posix4'_'sched_get_priority_max | sed 'y%./+-%__p_%'` |
698dcdb6 VZ |
15627 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
15628 | echo $ac_n "(cached) $ac_c" 1>&6 | |
422107f9 | 15629 | else |
698dcdb6 | 15630 | ac_save_LIBS="$LIBS" |
4f14bcd8 | 15631 | LIBS="-lposix4 $LIBS" |
698dcdb6 | 15632 | cat > conftest.$ac_ext <<EOF |
d6853540 | 15633 | #line 15634 "configure" |
422107f9 VZ |
15634 | #include "confdefs.h" |
15635 | /* Override any gcc2 internal prototype to avoid an error. */ | |
15636 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 | 15637 | builtin and then its argument prototype would still apply. */ |
4f14bcd8 | 15638 | char sched_get_priority_max(); |
698dcdb6 VZ |
15639 | |
15640 | int main() { | |
4f14bcd8 | 15641 | sched_get_priority_max() |
698dcdb6 VZ |
15642 | ; return 0; } |
15643 | EOF | |
d6853540 | 15644 | if { (eval echo configure:15645: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
15645 | rm -rf conftest* |
15646 | eval "ac_cv_lib_$ac_lib_var=yes" | |
15647 | else | |
15648 | echo "configure: failed program was:" >&5 | |
15649 | cat conftest.$ac_ext >&5 | |
15650 | rm -rf conftest* | |
15651 | eval "ac_cv_lib_$ac_lib_var=no" | |
15652 | fi | |
15653 | rm -f conftest* | |
15654 | LIBS="$ac_save_LIBS" | |
15655 | ||
15656 | fi | |
15657 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
15658 | echo "$ac_t""yes" 1>&6 | |
4f14bcd8 GD |
15659 | |
15660 | HAVE_PRIOR_FUNCS=1 | |
15661 | POSIX4_LINK="-lposix4" | |
15662 | ||
698dcdb6 VZ |
15663 | else |
15664 | echo "$ac_t""no" 1>&6 | |
422107f9 VZ |
15665 | fi |
15666 | ||
698dcdb6 | 15667 | |
422107f9 VZ |
15668 | fi |
15669 | ||
4f14bcd8 GD |
15670 | |
15671 | else | |
15672 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
15673 | fi |
15674 | ||
4f14bcd8 | 15675 | |
698dcdb6 | 15676 | else |
4f14bcd8 GD |
15677 | echo "$ac_t""no" 1>&6 |
15678 | fi | |
463abc64 | 15679 | |
463abc64 | 15680 | |
4f14bcd8 GD |
15681 | if test "$HAVE_PRIOR_FUNCS" = 1; then |
15682 | cat >> confdefs.h <<\EOF | |
15683 | #define HAVE_THREAD_PRIORITY_FUNCTIONS 1 | |
698dcdb6 | 15684 | EOF |
463abc64 | 15685 | |
4f14bcd8 GD |
15686 | else |
15687 | echo "configure: warning: Setting thread priority will not work" 1>&2 | |
15688 | fi | |
463abc64 | 15689 | |
4f14bcd8 | 15690 | echo $ac_n "checking for pthread_cancel in -l$THREADS_LINK""... $ac_c" 1>&6 |
d6853540 | 15691 | echo "configure:15692: checking for pthread_cancel in -l$THREADS_LINK" >&5 |
4f14bcd8 | 15692 | ac_lib_var=`echo $THREADS_LINK'_'pthread_cancel | sed 'y%./+-%__p_%'` |
698dcdb6 VZ |
15693 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
15694 | echo $ac_n "(cached) $ac_c" 1>&6 | |
422107f9 | 15695 | else |
698dcdb6 | 15696 | ac_save_LIBS="$LIBS" |
4f14bcd8 | 15697 | LIBS="-l$THREADS_LINK $LIBS" |
698dcdb6 | 15698 | cat > conftest.$ac_ext <<EOF |
d6853540 | 15699 | #line 15700 "configure" |
422107f9 VZ |
15700 | #include "confdefs.h" |
15701 | /* Override any gcc2 internal prototype to avoid an error. */ | |
15702 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 | 15703 | builtin and then its argument prototype would still apply. */ |
4f14bcd8 | 15704 | char pthread_cancel(); |
698dcdb6 VZ |
15705 | |
15706 | int main() { | |
4f14bcd8 | 15707 | pthread_cancel() |
698dcdb6 VZ |
15708 | ; return 0; } |
15709 | EOF | |
d6853540 | 15710 | if { (eval echo configure:15711: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
15711 | rm -rf conftest* |
15712 | eval "ac_cv_lib_$ac_lib_var=yes" | |
15713 | else | |
15714 | echo "configure: failed program was:" >&5 | |
15715 | cat conftest.$ac_ext >&5 | |
15716 | rm -rf conftest* | |
15717 | eval "ac_cv_lib_$ac_lib_var=no" | |
15718 | fi | |
15719 | rm -f conftest* | |
15720 | LIBS="$ac_save_LIBS" | |
15721 | ||
15722 | fi | |
15723 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
15724 | echo "$ac_t""yes" 1>&6 | |
4f14bcd8 GD |
15725 | cat >> confdefs.h <<\EOF |
15726 | #define HAVE_PTHREAD_CANCEL 1 | |
15727 | EOF | |
15728 | ||
698dcdb6 VZ |
15729 | else |
15730 | echo "$ac_t""no" 1>&6 | |
4f14bcd8 | 15731 | echo "configure: warning: wxThread::Kill() will not work properly" 1>&2 |
422107f9 VZ |
15732 | fi |
15733 | ||
422107f9 | 15734 | |
4f14bcd8 | 15735 | echo $ac_n "checking for pthread_cleanup_push/pop""... $ac_c" 1>&6 |
d6853540 | 15736 | echo "configure:15737: checking for pthread_cleanup_push/pop" >&5 |
4f14bcd8 GD |
15737 | if eval "test \"`echo '$''{'wx_cv_func_pthread_cleanup_push'+set}'`\" = set"; then |
15738 | echo $ac_n "(cached) $ac_c" 1>&6 | |
15739 | else | |
15740 | ||
15741 | cat > conftest.$ac_ext <<EOF | |
d6853540 | 15742 | #line 15743 "configure" |
4f14bcd8 GD |
15743 | #include "confdefs.h" |
15744 | #include <pthread.h> | |
15745 | int main() { | |
15746 | ||
15747 | pthread_cleanup_push(NULL, NULL); | |
15748 | pthread_cleanup_pop(0); | |
15749 | ||
15750 | ; return 0; } | |
15751 | EOF | |
d6853540 | 15752 | if { (eval echo configure:15753: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
4f14bcd8 GD |
15753 | rm -rf conftest* |
15754 | ||
15755 | wx_cv_func_pthread_cleanup_push=yes | |
15756 | ||
15757 | else | |
15758 | echo "configure: failed program was:" >&5 | |
15759 | cat conftest.$ac_ext >&5 | |
15760 | rm -rf conftest* | |
15761 | ||
15762 | wx_cv_func_pthread_cleanup_push=no | |
15763 | ||
15764 | fi | |
15765 | rm -f conftest* | |
15766 | ||
10f2d63a VZ |
15767 | fi |
15768 | ||
4f14bcd8 GD |
15769 | echo "$ac_t""$wx_cv_func_pthread_cleanup_push" 1>&6 |
15770 | ||
15771 | if test "$wx_cv_func_pthread_cleanup_push" = "yes"; then | |
15772 | cat >> confdefs.h <<\EOF | |
15773 | #define HAVE_THREAD_CLEANUP_FUNCTIONS 1 | |
c7a2bf27 RR |
15774 | EOF |
15775 | ||
4f14bcd8 GD |
15776 | fi |
15777 | ||
15778 | ||
15779 | if test "x$wx_lib_glibc21" = "xyes"; then | |
15780 | CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE" | |
15781 | fi | |
15782 | ||
15783 | echo $ac_n "checking for pthread_mutexattr_t""... $ac_c" 1>&6 | |
d6853540 | 15784 | echo "configure:15785: checking for pthread_mutexattr_t" >&5 |
4f14bcd8 | 15785 | if eval "test \"`echo '$''{'wx_cv_type_pthread_mutexattr_t'+set}'`\" = set"; then |
698dcdb6 VZ |
15786 | echo $ac_n "(cached) $ac_c" 1>&6 |
15787 | else | |
4f14bcd8 GD |
15788 | |
15789 | cat > conftest.$ac_ext <<EOF | |
d6853540 | 15790 | #line 15791 "configure" |
0dcf9893 | 15791 | #include "confdefs.h" |
4f14bcd8 GD |
15792 | #include <pthread.h> |
15793 | int main() { | |
15794 | ||
15795 | pthread_mutexattr_t attr; | |
15796 | pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE); | |
15797 | ||
15798 | ; return 0; } | |
698dcdb6 | 15799 | EOF |
d6853540 | 15800 | if { (eval echo configure:15801: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 | 15801 | rm -rf conftest* |
4f14bcd8 GD |
15802 | |
15803 | wx_cv_type_pthread_mutexattr_t=yes | |
15804 | ||
3fed1840 | 15805 | else |
698dcdb6 | 15806 | echo "configure: failed program was:" >&5 |
3fed1840 | 15807 | cat conftest.$ac_ext >&5 |
698dcdb6 | 15808 | rm -rf conftest* |
4f14bcd8 GD |
15809 | |
15810 | wx_cv_type_pthread_mutexattr_t=no | |
15811 | ||
15812 | ||
3fed1840 | 15813 | fi |
698dcdb6 | 15814 | rm -f conftest* |
4f14bcd8 | 15815 | |
3fed1840 | 15816 | fi |
4f14bcd8 GD |
15817 | |
15818 | echo "$ac_t""$wx_cv_type_pthread_mutexattr_t" 1>&6 | |
15819 | ||
15820 | if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then | |
15821 | cat >> confdefs.h <<\EOF | |
15822 | #define HAVE_PTHREAD_MUTEXATTR_T 1 | |
15823 | EOF | |
15824 | ||
15825 | else | |
15826 | echo $ac_n "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER""... $ac_c" 1>&6 | |
d6853540 | 15827 | echo "configure:15828: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5 |
4f14bcd8 | 15828 | if eval "test \"`echo '$''{'wx_cv_type_pthread_rec_mutex_init'+set}'`\" = set"; then |
698dcdb6 | 15829 | echo $ac_n "(cached) $ac_c" 1>&6 |
3fed1840 | 15830 | else |
4f14bcd8 GD |
15831 | |
15832 | cat > conftest.$ac_ext <<EOF | |
d6853540 | 15833 | #line 15834 "configure" |
3fed1840 | 15834 | #include "confdefs.h" |
4f14bcd8 | 15835 | #include <pthread.h> |
698dcdb6 | 15836 | int main() { |
4f14bcd8 GD |
15837 | |
15838 | pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP; | |
15839 | ||
698dcdb6 VZ |
15840 | ; return 0; } |
15841 | EOF | |
d6853540 | 15842 | if { (eval echo configure:15843: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 | 15843 | rm -rf conftest* |
4f14bcd8 GD |
15844 | |
15845 | wx_cv_type_pthread_rec_mutex_init=yes | |
15846 | ||
698dcdb6 VZ |
15847 | else |
15848 | echo "configure: failed program was:" >&5 | |
15849 | cat conftest.$ac_ext >&5 | |
15850 | rm -rf conftest* | |
4f14bcd8 GD |
15851 | |
15852 | wx_cv_type_pthread_rec_mutex_init=no | |
15853 | ||
15854 | ||
698dcdb6 VZ |
15855 | fi |
15856 | rm -f conftest* | |
4f14bcd8 | 15857 | |
3fed1840 RR |
15858 | fi |
15859 | ||
4f14bcd8 GD |
15860 | echo "$ac_t""$wx_cv_type_pthread_rec_mutex_init" 1>&6 |
15861 | if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then | |
15862 | cat >> confdefs.h <<\EOF | |
15863 | #define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1 | |
15864 | EOF | |
3fed1840 | 15865 | |
4f14bcd8 GD |
15866 | else |
15867 | echo "configure: warning: wxMutex won't be recursive on this platform" 1>&2 | |
3fed1840 RR |
15868 | fi |
15869 | fi | |
4f14bcd8 GD |
15870 | |
15871 | THREADS_LINK="-l$THREADS_LINK" | |
15872 | ||
15873 | if test "$USE_SOLARIS" = "yes" -a "$GCC" != "yes"; then | |
15874 | CPPFLAGS="${CFLAGS} -mt" | |
15875 | CXXFLAGS="${CXXFLAGS} -mt" | |
15876 | LDFLAGS="${LDFLAGS} -mt" | |
15877 | fi | |
3fed1840 RR |
15878 | fi |
15879 | ||
4f14bcd8 GD |
15880 | fi |
15881 | ||
15882 | if test "$wxUSE_THREADS" = "yes"; then | |
3a922bb4 | 15883 | cat >> confdefs.h <<\EOF |
4f14bcd8 | 15884 | #define wxUSE_THREADS 1 |
7b6058cd GD |
15885 | EOF |
15886 | ||
4f14bcd8 GD |
15887 | |
15888 | if test "$USE_DARWIN" != 1; then | |
15889 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D_REENTRANT" | |
15890 | fi | |
15891 | ||
15892 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread" | |
698dcdb6 | 15893 | else |
4f14bcd8 GD |
15894 | if test "$ac_cv_func_strtok_r" = "yes"; then |
15895 | echo $ac_n "checking if -D_REENTRANT is needed""... $ac_c" 1>&6 | |
d6853540 | 15896 | echo "configure:15897: checking if -D_REENTRANT is needed" >&5 |
4f14bcd8 GD |
15897 | if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then |
15898 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D_REENTRANT" | |
15899 | echo "$ac_t""yes" 1>&6 | |
15900 | else | |
15901 | echo "$ac_t""no" 1>&6 | |
15902 | fi | |
15903 | fi | |
15904 | fi | |
15905 | ||
15906 | if test "$WXGTK20" = 1 ; then | |
15907 | cat >> confdefs.h <<EOF | |
15908 | #define __WXGTK20__ $WXGTK20 | |
698dcdb6 | 15909 | EOF |
4f14bcd8 GD |
15910 | |
15911 | WXGTK12=1 | |
10f2d63a | 15912 | fi |
4f14bcd8 GD |
15913 | |
15914 | if test "$WXGTK12" = 1 ; then | |
15915 | cat >> confdefs.h <<EOF | |
15916 | #define __WXGTK12__ $WXGTK12 | |
15917 | EOF | |
15918 | ||
10f2d63a | 15919 | fi |
698dcdb6 | 15920 | |
4f14bcd8 GD |
15921 | if test "$WXGTK127" = 1 ; then |
15922 | cat >> confdefs.h <<EOF | |
15923 | #define __WXGTK127__ $WXGTK127 | |
698dcdb6 | 15924 | EOF |
4f14bcd8 | 15925 | |
698dcdb6 | 15926 | fi |
10f2d63a | 15927 | |
4f14bcd8 GD |
15928 | WXDEBUG= |
15929 | ||
15930 | if test "$wxUSE_DEBUG_INFO" = "yes" ; then | |
15931 | WXDEBUG="-g" | |
15932 | wxUSE_OPTIMISE=no | |
698dcdb6 | 15933 | fi |
4f14bcd8 GD |
15934 | |
15935 | if test "$wxUSE_DEBUG_GDB" = "yes" ; then | |
15936 | wxUSE_DEBUG_INFO=yes | |
15937 | WXDEBUG="-ggdb" | |
10f2d63a VZ |
15938 | fi |
15939 | ||
4f14bcd8 GD |
15940 | if test "$wxUSE_DEBUG_FLAG" = "yes" ; then |
15941 | cat >> confdefs.h <<\EOF | |
15942 | #define WXDEBUG 1 | |
15943 | EOF | |
15944 | ||
15945 | WXDEBUG_DEFINE="-D__WXDEBUG__" | |
10f2d63a | 15946 | else |
4f14bcd8 GD |
15947 | if test "$wxUSE_GTK" = 1 ; then |
15948 | WXDEBUG_DEFINE="-DGTK_NO_CHECK_CASTS" | |
15949 | fi | |
15950 | fi | |
15951 | ||
15952 | if test "$wxUSE_MEM_TRACING" = "yes" ; then | |
15953 | cat >> confdefs.h <<\EOF | |
15954 | #define wxUSE_MEMORY_TRACING 1 | |
15955 | EOF | |
15956 | ||
15957 | cat >> confdefs.h <<\EOF | |
15958 | #define wxUSE_GLOBAL_MEMORY_OPERATORS 1 | |
15959 | EOF | |
15960 | ||
15961 | cat >> confdefs.h <<\EOF | |
15962 | #define wxUSE_DEBUG_NEW_ALWAYS 1 | |
15963 | EOF | |
15964 | ||
15965 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck" | |
15966 | fi | |
15967 | ||
15968 | if test "$wxUSE_DMALLOC" = "yes" ; then | |
15969 | DMALLOC_LINK="-ldmalloc" | |
15970 | fi | |
15971 | ||
15972 | PROFILE= | |
15973 | if test "$wxUSE_PROFILE" = "yes" ; then | |
15974 | PROFILE="-pg" | |
10f2d63a VZ |
15975 | fi |
15976 | ||
4f14bcd8 GD |
15977 | if test "$GCC" = yes ; then |
15978 | if test "$wxUSE_NO_RTTI" = "yes" ; then | |
15979 | CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-rtti" | |
3a922bb4 | 15980 | fi |
4f14bcd8 GD |
15981 | if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then |
15982 | CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-exceptions" | |
15983 | fi | |
15984 | if test "$wxUSE_PERMISSIVE" = "yes" ; then | |
15985 | CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fpermissive" | |
15986 | fi | |
15987 | if test "$wxUSE_NO_DEPS" = "no" ; then | |
15988 | CFLAGS="-MMD ${CFLAGS}" | |
15989 | CXXFLAGS="-MMD ${CXXFLAGS}" | |
15990 | fi | |
15991 | if test "$USE_WIN32" = 1 ; then | |
15992 | # I'm not even really sure what this was ever added to solve, | |
15993 | # but someone added it for mingw native builds, so I guess | |
15994 | # they had a reason, right?? | |
15995 | CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fno-pcc-struct-return" | |
15996 | fi | |
15997 | fi | |
15998 | ||
15999 | ||
16000 | CXXFLAGS=`echo "${CXXFLAGS}" | sed "s/\-O.//g" ` | |
16001 | CFLAGS=`echo "${CFLAGS}" | sed "s/\-O.//g" ` | |
16002 | if test "$wxUSE_OPTIMISE" = "no" ; then | |
16003 | OPTIMISE= | |
16004 | else | |
16005 | if test "$GCC" = yes ; then | |
16006 | OPTIMISE="-O2" | |
16007 | case "${host}" in | |
16008 | i586-*-*|i686-*-* ) | |
16009 | OPTIMISE="${OPTIMISE} " | |
16010 | ;; | |
16011 | esac | |
16012 | else | |
16013 | OPTIMISE="-O" | |
16014 | fi | |
16015 | fi | |
16016 | ||
16017 | if test "$WXWIN_COMPATIBILITY_2" = "yes"; then | |
16018 | cat >> confdefs.h <<\EOF | |
16019 | #define WXWIN_COMPATIBILITY_2 1 | |
16020 | EOF | |
16021 | ||
16022 | ||
16023 | WXWIN_COMPATIBILITY_2_2="yes" | |
16024 | fi | |
16025 | ||
16026 | if test "$WXWIN_COMPATIBILITY_2_2" = "yes"; then | |
16027 | cat >> confdefs.h <<\EOF | |
16028 | #define WXWIN_COMPATIBILITY_2_2 1 | |
16029 | EOF | |
16030 | ||
10f2d63a VZ |
16031 | fi |
16032 | ||
698dcdb6 | 16033 | |
10f2d63a | 16034 | if test "$wxUSE_GUI" = "yes"; then |
698dcdb6 | 16035 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16036 | #define wxUSE_GUI 1 |
16037 | EOF | |
16038 | ||
698dcdb6 | 16039 | |
10f2d63a | 16040 | else |
698dcdb6 | 16041 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16042 | #define wxUSE_NOGUI 1 |
16043 | EOF | |
16044 | ||
16045 | fi | |
16046 | ||
698dcdb6 | 16047 | |
10f2d63a | 16048 | if test "$wxUSE_UNIX" = "yes"; then |
698dcdb6 | 16049 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16050 | #define wxUSE_UNIX 1 |
16051 | EOF | |
16052 | ||
16053 | fi | |
16054 | ||
698dcdb6 | 16055 | |
10f2d63a | 16056 | if test "$wxUSE_APPLE_IEEE" = "yes"; then |
698dcdb6 | 16057 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16058 | #define wxUSE_APPLE_IEEE 1 |
16059 | EOF | |
16060 | ||
16061 | fi | |
16062 | ||
1e6feb95 VZ |
16063 | if test "$wxUSE_TIMER" = "yes"; then |
16064 | cat >> confdefs.h <<\EOF | |
16065 | #define wxUSE_TIMER 1 | |
16066 | EOF | |
16067 | ||
16068 | fi | |
16069 | ||
10f2d63a | 16070 | if test "$wxUSE_WAVE" = "yes"; then |
698dcdb6 | 16071 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16072 | #define wxUSE_WAVE 1 |
16073 | EOF | |
16074 | ||
16075 | fi | |
16076 | ||
1e6feb95 VZ |
16077 | if test "$wxUSE_CMDLINE_PARSER" = "yes"; then |
16078 | cat >> confdefs.h <<\EOF | |
16079 | #define wxUSE_CMDLINE_PARSER 1 | |
16080 | EOF | |
16081 | ||
16082 | fi | |
16083 | ||
16084 | if test "$wxUSE_STOPWATCH" = "yes"; then | |
16085 | cat >> confdefs.h <<\EOF | |
16086 | #define wxUSE_STOPWATCH 1 | |
16087 | EOF | |
16088 | ||
16089 | fi | |
16090 | ||
16091 | if test "$wxUSE_DATETIME" = "yes"; then | |
16092 | cat >> confdefs.h <<\EOF | |
16093 | #define wxUSE_DATETIME 1 | |
16094 | EOF | |
16095 | ||
16096 | fi | |
16097 | ||
16098 | if test "$wxUSE_TIMEDATE" = "yes"; then | |
16099 | cat >> confdefs.h <<\EOF | |
16100 | #define wxUSE_TIMEDATE 1 | |
16101 | EOF | |
16102 | ||
16103 | fi | |
16104 | ||
10f2d63a | 16105 | if test "$wxUSE_FILE" = "yes"; then |
698dcdb6 | 16106 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16107 | #define wxUSE_FILE 1 |
16108 | EOF | |
16109 | ||
16110 | fi | |
16111 | ||
1e6feb95 VZ |
16112 | if test "$wxUSE_FFILE" = "yes"; then |
16113 | cat >> confdefs.h <<\EOF | |
16114 | #define wxUSE_FFILE 1 | |
16115 | EOF | |
16116 | ||
16117 | fi | |
16118 | ||
24528b0c | 16119 | if test "$wxUSE_FILESYSTEM" = "yes"; then |
698dcdb6 | 16120 | cat >> confdefs.h <<\EOF |
24528b0c VS |
16121 | #define wxUSE_FILESYSTEM 1 |
16122 | EOF | |
16123 | ||
16124 | fi | |
16125 | ||
10f2d63a | 16126 | if test "$wxUSE_FS_INET" = "yes"; then |
698dcdb6 | 16127 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16128 | #define wxUSE_FS_INET 1 |
16129 | EOF | |
16130 | ||
16131 | fi | |
16132 | ||
16133 | if test "$wxUSE_FS_ZIP" = "yes"; then | |
698dcdb6 | 16134 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16135 | #define wxUSE_FS_ZIP 1 |
16136 | EOF | |
16137 | ||
16138 | fi | |
16139 | ||
16140 | if test "$wxUSE_ZIPSTREAM" = "yes"; then | |
698dcdb6 | 16141 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16142 | #define wxUSE_ZIPSTREAM 1 |
16143 | EOF | |
16144 | ||
16145 | fi | |
16146 | ||
eb4efbdc | 16147 | if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then |
698dcdb6 | 16148 | cat >> confdefs.h <<\EOF |
eb4efbdc VZ |
16149 | #define wxUSE_ON_FATAL_EXCEPTION 1 |
16150 | EOF | |
16151 | ||
16152 | fi | |
16153 | ||
4f3c5f06 | 16154 | if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then |
698dcdb6 | 16155 | cat >> confdefs.h <<\EOF |
4f3c5f06 VZ |
16156 | #define wxUSE_SNGLINST_CHECKER 1 |
16157 | EOF | |
16158 | ||
16159 | fi | |
16160 | ||
10f2d63a | 16161 | if test "$wxUSE_BUSYINFO" = "yes"; then |
698dcdb6 | 16162 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16163 | #define wxUSE_BUSYINFO 1 |
16164 | EOF | |
16165 | ||
16166 | fi | |
16167 | ||
16168 | if test "$wxUSE_STD_IOSTREAM" = "yes"; then | |
698dcdb6 | 16169 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16170 | #define wxUSE_STD_IOSTREAM 1 |
16171 | EOF | |
16172 | ||
16173 | fi | |
16174 | ||
16175 | if test "$wxUSE_TEXTFILE" = "yes"; then | |
16176 | if test "$wxUSE_FILE" != "yes"; then | |
698dcdb6 | 16177 | echo "configure: warning: wxTextFile requires wxFile and it won't be compiled without it" 1>&2 |
10f2d63a | 16178 | else |
698dcdb6 | 16179 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16180 | #define wxUSE_TEXTFILE 1 |
16181 | EOF | |
16182 | ||
16183 | fi | |
16184 | fi | |
16185 | ||
16186 | if test "$wxUSE_CONFIG" = "yes" ; then | |
16187 | if test "$wxUSE_TEXTFILE" != "yes"; then | |
698dcdb6 | 16188 | echo "configure: warning: wxConfig requires wxTextFile and it won't be compiled without it" 1>&2 |
10f2d63a | 16189 | else |
698dcdb6 | 16190 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16191 | #define wxUSE_CONFIG 1 |
16192 | EOF | |
16193 | ||
16194 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config" | |
16195 | fi | |
16196 | fi | |
16197 | ||
16198 | if test "$wxUSE_INTL" = "yes" ; then | |
16199 | if test "$wxUSE_FILE" != "yes"; then | |
698dcdb6 | 16200 | echo "configure: warning: I18n code requires wxFile and it won't be compiled without it" 1>&2 |
10f2d63a | 16201 | else |
698dcdb6 | 16202 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16203 | #define wxUSE_INTL 1 |
16204 | EOF | |
16205 | ||
16206 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat" | |
f6bcfd97 | 16207 | GUIDIST="$GUIDIST INTL_DIST" |
10f2d63a VZ |
16208 | fi |
16209 | fi | |
16210 | ||
16211 | if test "$wxUSE_LOG" = "yes"; then | |
698dcdb6 | 16212 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16213 | #define wxUSE_LOG 1 |
16214 | EOF | |
16215 | ||
d73be714 VZ |
16216 | |
16217 | if test "$wxUSE_LOGGUI" = "yes"; then | |
16218 | cat >> confdefs.h <<\EOF | |
16219 | #define wxUSE_LOGGUI 1 | |
16220 | EOF | |
16221 | ||
16222 | fi | |
16223 | ||
16224 | if test "$wxUSE_LOGWINDOW" = "yes"; then | |
16225 | cat >> confdefs.h <<\EOF | |
16226 | #define wxUSE_LOGWINDOW 1 | |
16227 | EOF | |
16228 | ||
16229 | fi | |
10f2d63a VZ |
16230 | fi |
16231 | ||
16232 | if test "$wxUSE_LONGLONG" = "yes"; then | |
698dcdb6 | 16233 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16234 | #define wxUSE_LONGLONG 1 |
16235 | EOF | |
16236 | ||
16237 | fi | |
16238 | ||
e8f65ba6 | 16239 | if test "$wxUSE_GEOMETRY" = "yes"; then |
698dcdb6 | 16240 | cat >> confdefs.h <<\EOF |
e8f65ba6 RR |
16241 | #define wxUSE_GEOMETRY 1 |
16242 | EOF | |
16243 | ||
16244 | fi | |
16245 | ||
10f2d63a | 16246 | if test "$wxUSE_DIALUP_MANAGER" = "yes" ; then |
698dcdb6 | 16247 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16248 | #define wxUSE_DIALUP_MANAGER 1 |
16249 | EOF | |
16250 | ||
70f7a477 | 16251 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup" |
10f2d63a VZ |
16252 | fi |
16253 | ||
16254 | if test "$wxUSE_STREAMS" = "yes" ; then | |
698dcdb6 | 16255 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16256 | #define wxUSE_STREAMS 1 |
16257 | EOF | |
16258 | ||
16259 | fi | |
16260 | ||
1e487827 | 16261 | |
1e6feb95 | 16262 | if test "$wxUSE_DATETIME" = "yes"; then |
698dcdb6 | 16263 | for ac_func in strptime |
83307f33 | 16264 | do |
698dcdb6 | 16265 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
d6853540 | 16266 | echo "configure:16267: checking for $ac_func" >&5 |
698dcdb6 VZ |
16267 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
16268 | echo $ac_n "(cached) $ac_c" 1>&6 | |
16269 | else | |
16270 | cat > conftest.$ac_ext <<EOF | |
d6853540 | 16271 | #line 16272 "configure" |
83307f33 VZ |
16272 | #include "confdefs.h" |
16273 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 16274 | which can conflict with char $ac_func(); below. */ |
83307f33 VZ |
16275 | #include <assert.h> |
16276 | /* Override any gcc2 internal prototype to avoid an error. */ | |
16277 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
16278 | builtin and then its argument prototype would still apply. */ |
16279 | char $ac_func(); | |
16280 | ||
16281 | int main() { | |
83307f33 VZ |
16282 | |
16283 | /* The GNU C library defines this for functions which it implements | |
16284 | to always fail with ENOSYS. Some functions are actually named | |
16285 | something starting with __ and the normal name is an alias. */ | |
16286 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
16287 | choke me | |
16288 | #else | |
698dcdb6 | 16289 | $ac_func(); |
83307f33 VZ |
16290 | #endif |
16291 | ||
698dcdb6 | 16292 | ; return 0; } |
83307f33 | 16293 | EOF |
d6853540 | 16294 | if { (eval echo configure:16295: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
16295 | rm -rf conftest* |
16296 | eval "ac_cv_func_$ac_func=yes" | |
16297 | else | |
16298 | echo "configure: failed program was:" >&5 | |
16299 | cat conftest.$ac_ext >&5 | |
16300 | rm -rf conftest* | |
16301 | eval "ac_cv_func_$ac_func=no" | |
16302 | fi | |
16303 | rm -f conftest* | |
16304 | fi | |
83307f33 | 16305 | |
698dcdb6 VZ |
16306 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
16307 | echo "$ac_t""yes" 1>&6 | |
16308 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
16309 | cat >> confdefs.h <<EOF | |
16310 | #define $ac_tr_func 1 | |
16311 | EOF | |
16312 | ||
16313 | else | |
16314 | echo "$ac_t""no" 1>&6 | |
83307f33 VZ |
16315 | fi |
16316 | done | |
16317 | ||
1e487827 | 16318 | |
698dcdb6 | 16319 | echo $ac_n "checking for timezone variable in <time.h>""... $ac_c" 1>&6 |
d6853540 | 16320 | echo "configure:16321: checking for timezone variable in <time.h>" >&5 |
698dcdb6 VZ |
16321 | if eval "test \"`echo '$''{'wx_cv_var_timezone'+set}'`\" = set"; then |
16322 | echo $ac_n "(cached) $ac_c" 1>&6 | |
16323 | else | |
16324 | ||
16325 | cat > conftest.$ac_ext <<EOF | |
d6853540 | 16326 | #line 16327 "configure" |
360d6699 VZ |
16327 | #include "confdefs.h" |
16328 | ||
b4085ce6 | 16329 | #include <time.h> |
698dcdb6 VZ |
16330 | |
16331 | int main() { | |
360d6699 VZ |
16332 | |
16333 | int tz; | |
4f11a343 | 16334 | tz = timezone; |
698dcdb6 VZ |
16335 | |
16336 | ; return 0; } | |
16337 | EOF | |
d6853540 | 16338 | if { (eval echo configure:16339: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 VZ |
16339 | rm -rf conftest* |
16340 | ||
4f11a343 | 16341 | wx_cv_var_timezone=timezone |
698dcdb6 | 16342 | |
360d6699 | 16343 | else |
698dcdb6 VZ |
16344 | echo "configure: failed program was:" >&5 |
16345 | cat conftest.$ac_ext >&5 | |
16346 | rm -rf conftest* | |
16347 | ||
16348 | cat > conftest.$ac_ext <<EOF | |
d6853540 | 16349 | #line 16350 "configure" |
360d6699 VZ |
16350 | #include "confdefs.h" |
16351 | ||
b4085ce6 | 16352 | #include <time.h> |
698dcdb6 VZ |
16353 | |
16354 | int main() { | |
360d6699 VZ |
16355 | |
16356 | int tz; | |
16357 | tz = _timezone; | |
698dcdb6 VZ |
16358 | |
16359 | ; return 0; } | |
16360 | EOF | |
d6853540 | 16361 | if { (eval echo configure:16362: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 VZ |
16362 | rm -rf conftest* |
16363 | ||
360d6699 | 16364 | wx_cv_var_timezone=_timezone |
698dcdb6 | 16365 | |
5357c8e8 | 16366 | else |
698dcdb6 VZ |
16367 | echo "configure: failed program was:" >&5 |
16368 | cat conftest.$ac_ext >&5 | |
16369 | rm -rf conftest* | |
16370 | ||
16371 | cat > conftest.$ac_ext <<EOF | |
d6853540 | 16372 | #line 16373 "configure" |
5357c8e8 VZ |
16373 | #include "confdefs.h" |
16374 | ||
b4085ce6 | 16375 | #include <time.h> |
698dcdb6 VZ |
16376 | |
16377 | int main() { | |
5357c8e8 VZ |
16378 | |
16379 | int tz; | |
4f11a343 | 16380 | tz = __timezone; |
698dcdb6 VZ |
16381 | |
16382 | ; return 0; } | |
16383 | EOF | |
d6853540 | 16384 | if { (eval echo configure:16385: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 VZ |
16385 | rm -rf conftest* |
16386 | ||
4f11a343 | 16387 | wx_cv_var_timezone=__timezone |
698dcdb6 | 16388 | |
360d6699 | 16389 | else |
698dcdb6 VZ |
16390 | echo "configure: failed program was:" >&5 |
16391 | cat conftest.$ac_ext >&5 | |
16392 | rm -rf conftest* | |
16393 | { echo "configure: error: no timezone variable" 1>&2; exit 1; } | |
16394 | ||
360d6699 | 16395 | fi |
698dcdb6 VZ |
16396 | rm -f conftest* |
16397 | ||
16398 | ||
360d6699 | 16399 | fi |
698dcdb6 VZ |
16400 | rm -f conftest* |
16401 | ||
16402 | ||
6232543b | 16403 | fi |
698dcdb6 VZ |
16404 | rm -f conftest* |
16405 | ||
16406 | ||
1e487827 | 16407 | fi |
703e0a69 | 16408 | |
698dcdb6 VZ |
16409 | echo "$ac_t""$wx_cv_var_timezone" 1>&6 |
16410 | ||
16411 | cat >> confdefs.h <<EOF | |
360d6699 VZ |
16412 | #define WX_TIMEZONE $wx_cv_var_timezone |
16413 | EOF | |
16414 | ||
698dcdb6 VZ |
16415 | |
16416 | for ac_func in localtime | |
afc31813 | 16417 | do |
698dcdb6 | 16418 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
d6853540 | 16419 | echo "configure:16420: checking for $ac_func" >&5 |
698dcdb6 VZ |
16420 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
16421 | echo $ac_n "(cached) $ac_c" 1>&6 | |
16422 | else | |
16423 | cat > conftest.$ac_ext <<EOF | |
d6853540 | 16424 | #line 16425 "configure" |
10f2d63a | 16425 | #include "confdefs.h" |
afc31813 | 16426 | /* System header to define __stub macros and hopefully few prototypes, |
698dcdb6 | 16427 | which can conflict with char $ac_func(); below. */ |
afc31813 VZ |
16428 | #include <assert.h> |
16429 | /* Override any gcc2 internal prototype to avoid an error. */ | |
16430 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
16431 | builtin and then its argument prototype would still apply. */ |
16432 | char $ac_func(); | |
16433 | ||
16434 | int main() { | |
afc31813 VZ |
16435 | |
16436 | /* The GNU C library defines this for functions which it implements | |
16437 | to always fail with ENOSYS. Some functions are actually named | |
16438 | something starting with __ and the normal name is an alias. */ | |
16439 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
16440 | choke me | |
16441 | #else | |
698dcdb6 | 16442 | $ac_func(); |
afc31813 VZ |
16443 | #endif |
16444 | ||
698dcdb6 | 16445 | ; return 0; } |
10f2d63a | 16446 | EOF |
d6853540 | 16447 | if { (eval echo configure:16448: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
16448 | rm -rf conftest* |
16449 | eval "ac_cv_func_$ac_func=yes" | |
16450 | else | |
16451 | echo "configure: failed program was:" >&5 | |
16452 | cat conftest.$ac_ext >&5 | |
16453 | rm -rf conftest* | |
16454 | eval "ac_cv_func_$ac_func=no" | |
16455 | fi | |
16456 | rm -f conftest* | |
16457 | fi | |
afc31813 | 16458 | |
698dcdb6 VZ |
16459 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
16460 | echo "$ac_t""yes" 1>&6 | |
16461 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
16462 | cat >> confdefs.h <<EOF | |
16463 | #define $ac_tr_func 1 | |
16464 | EOF | |
16465 | ||
16466 | else | |
16467 | echo "$ac_t""no" 1>&6 | |
afc31813 VZ |
16468 | fi |
16469 | done | |
16470 | ||
1e487827 | 16471 | |
698dcdb6 VZ |
16472 | if test "$ac_cv_func_localtime" = "yes"; then |
16473 | echo $ac_n "checking for tm_gmtoff in struct tm""... $ac_c" 1>&6 | |
d6853540 | 16474 | echo "configure:16475: checking for tm_gmtoff in struct tm" >&5 |
698dcdb6 VZ |
16475 | if eval "test \"`echo '$''{'wx_cv_struct_tm_has_gmtoff'+set}'`\" = set"; then |
16476 | echo $ac_n "(cached) $ac_c" 1>&6 | |
16477 | else | |
16478 | ||
16479 | cat > conftest.$ac_ext <<EOF | |
d6853540 | 16480 | #line 16481 "configure" |
0470b1e6 VZ |
16481 | #include "confdefs.h" |
16482 | ||
b4085ce6 | 16483 | #include <time.h> |
698dcdb6 VZ |
16484 | |
16485 | int main() { | |
0470b1e6 VZ |
16486 | |
16487 | struct tm tm; | |
16488 | tm.tm_gmtoff++; | |
698dcdb6 VZ |
16489 | |
16490 | ; return 0; } | |
16491 | EOF | |
d6853540 | 16492 | if { (eval echo configure:16493: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 VZ |
16493 | rm -rf conftest* |
16494 | ||
f03a98d8 | 16495 | wx_cv_struct_tm_has_gmtoff=yes |
698dcdb6 | 16496 | |
0470b1e6 | 16497 | else |
698dcdb6 VZ |
16498 | echo "configure: failed program was:" >&5 |
16499 | cat conftest.$ac_ext >&5 | |
16500 | rm -rf conftest* | |
16501 | wx_cv_struct_tm_has_gmtoff=no | |
16502 | ||
0470b1e6 | 16503 | fi |
698dcdb6 VZ |
16504 | rm -f conftest* |
16505 | ||
1e487827 | 16506 | fi |
698dcdb6 VZ |
16507 | |
16508 | echo "$ac_t""$wx_cv_struct_tm_has_gmtoff" 1>&6 | |
6232543b VS |
16509 | fi |
16510 | ||
16511 | if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then | |
698dcdb6 | 16512 | cat >> confdefs.h <<\EOF |
6232543b VS |
16513 | #define WX_GMTOFF_IN_TM 1 |
16514 | EOF | |
0470b1e6 | 16515 | |
3fcdd07b VZ |
16516 | fi |
16517 | ||
698dcdb6 | 16518 | for ac_func in gettimeofday ftime |
3fcdd07b | 16519 | do |
698dcdb6 | 16520 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
d6853540 | 16521 | echo "configure:16522: checking for $ac_func" >&5 |
698dcdb6 VZ |
16522 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
16523 | echo $ac_n "(cached) $ac_c" 1>&6 | |
16524 | else | |
16525 | cat > conftest.$ac_ext <<EOF | |
d6853540 | 16526 | #line 16527 "configure" |
3fcdd07b VZ |
16527 | #include "confdefs.h" |
16528 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 16529 | which can conflict with char $ac_func(); below. */ |
3fcdd07b VZ |
16530 | #include <assert.h> |
16531 | /* Override any gcc2 internal prototype to avoid an error. */ | |
16532 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
16533 | builtin and then its argument prototype would still apply. */ |
16534 | char $ac_func(); | |
16535 | ||
16536 | int main() { | |
3fcdd07b VZ |
16537 | |
16538 | /* The GNU C library defines this for functions which it implements | |
16539 | to always fail with ENOSYS. Some functions are actually named | |
16540 | something starting with __ and the normal name is an alias. */ | |
16541 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
16542 | choke me | |
16543 | #else | |
698dcdb6 | 16544 | $ac_func(); |
3fcdd07b VZ |
16545 | #endif |
16546 | ||
698dcdb6 VZ |
16547 | ; return 0; } |
16548 | EOF | |
d6853540 | 16549 | if { (eval echo configure:16550: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
16550 | rm -rf conftest* |
16551 | eval "ac_cv_func_$ac_func=yes" | |
16552 | else | |
16553 | echo "configure: failed program was:" >&5 | |
16554 | cat conftest.$ac_ext >&5 | |
16555 | rm -rf conftest* | |
16556 | eval "ac_cv_func_$ac_func=no" | |
16557 | fi | |
16558 | rm -f conftest* | |
16559 | fi | |
16560 | ||
16561 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
16562 | echo "$ac_t""yes" 1>&6 | |
16563 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
16564 | cat >> confdefs.h <<EOF | |
16565 | #define $ac_tr_func 1 | |
3fcdd07b VZ |
16566 | EOF |
16567 | break | |
698dcdb6 VZ |
16568 | else |
16569 | echo "$ac_t""no" 1>&6 | |
3fcdd07b VZ |
16570 | fi |
16571 | done | |
16572 | ||
afc31813 | 16573 | |
698dcdb6 VZ |
16574 | if test "$ac_cv_func_gettimeofday" = "yes"; then |
16575 | echo $ac_n "checking whether gettimeofday takes two arguments""... $ac_c" 1>&6 | |
d6853540 | 16576 | echo "configure:16577: checking whether gettimeofday takes two arguments" >&5 |
698dcdb6 VZ |
16577 | if eval "test \"`echo '$''{'wx_cv_func_gettimeofday_has_2_args'+set}'`\" = set"; then |
16578 | echo $ac_n "(cached) $ac_c" 1>&6 | |
16579 | else | |
16580 | ||
16581 | ||
16582 | ac_ext=C | |
16583 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
1e487827 | 16584 | ac_cpp='$CXXCPP $CPPFLAGS' |
698dcdb6 VZ |
16585 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
16586 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
16587 | cross_compiling=$ac_cv_prog_cxx_cross | |
703e0a69 | 16588 | |
698dcdb6 VZ |
16589 | |
16590 | cat > conftest.$ac_ext <<EOF | |
d6853540 | 16591 | #line 16592 "configure" |
10f2d63a | 16592 | #include "confdefs.h" |
afc31813 VZ |
16593 | |
16594 | #include <sys/time.h> | |
16595 | #include <unistd.h> | |
698dcdb6 VZ |
16596 | |
16597 | int main() { | |
afc31813 VZ |
16598 | |
16599 | struct timeval tv; | |
776862b4 | 16600 | gettimeofday(&tv, NULL); |
698dcdb6 VZ |
16601 | |
16602 | ; return 0; } | |
16603 | EOF | |
d6853540 | 16604 | if { (eval echo configure:16605: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 | 16605 | rm -rf conftest* |
afc31813 | 16606 | wx_cv_func_gettimeofday_has_2_args=yes |
10f2d63a | 16607 | else |
698dcdb6 VZ |
16608 | echo "configure: failed program was:" >&5 |
16609 | cat conftest.$ac_ext >&5 | |
16610 | rm -rf conftest* | |
16611 | cat > conftest.$ac_ext <<EOF | |
d6853540 | 16612 | #line 16613 "configure" |
10f2d63a | 16613 | #include "confdefs.h" |
afc31813 VZ |
16614 | |
16615 | #include <sys/time.h> | |
16616 | #include <unistd.h> | |
698dcdb6 VZ |
16617 | |
16618 | int main() { | |
afc31813 VZ |
16619 | |
16620 | struct timeval tv; | |
16621 | gettimeofday(&tv); | |
698dcdb6 VZ |
16622 | |
16623 | ; return 0; } | |
16624 | EOF | |
d6853540 | 16625 | if { (eval echo configure:16626: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 | 16626 | rm -rf conftest* |
afc31813 | 16627 | wx_cv_func_gettimeofday_has_2_args=no |
10f2d63a | 16628 | else |
698dcdb6 VZ |
16629 | echo "configure: failed program was:" >&5 |
16630 | cat conftest.$ac_ext >&5 | |
16631 | rm -rf conftest* | |
776862b4 VZ |
16632 | |
16633 | echo "configure: warning: failed to determine number of gettimeofday() arguments" 1>&2 | |
16634 | wx_cv_func_gettimeofday_has_2_args=unknown | |
16635 | ||
698dcdb6 | 16636 | |
10f2d63a | 16637 | fi |
698dcdb6 VZ |
16638 | rm -f conftest* |
16639 | ||
10f2d63a | 16640 | fi |
698dcdb6 | 16641 | rm -f conftest* |
afc31813 | 16642 | ac_ext=c |
698dcdb6 | 16643 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
10f2d63a | 16644 | ac_cpp='$CPP $CPPFLAGS' |
698dcdb6 VZ |
16645 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
16646 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
16647 | cross_compiling=$ac_cv_prog_cc_cross | |
10f2d63a | 16648 | |
698dcdb6 | 16649 | |
afc31813 | 16650 | fi |
698dcdb6 VZ |
16651 | |
16652 | echo "$ac_t""$wx_cv_func_gettimeofday_has_2_args" 1>&6 | |
c63c7106 | 16653 | |
afc31813 | 16654 | if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then |
698dcdb6 | 16655 | cat >> confdefs.h <<\EOF |
afc31813 VZ |
16656 | #define WX_GETTIMEOFDAY_NO_TZ 1 |
16657 | EOF | |
16658 | ||
16659 | fi | |
16660 | fi | |
16661 | ||
698dcdb6 | 16662 | cat >> confdefs.h <<\EOF |
afc31813 VZ |
16663 | #define wxUSE_TIMEDATE 1 |
16664 | EOF | |
16665 | ||
16666 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest" | |
16667 | fi | |
16668 | ||
698dcdb6 | 16669 | |
b089607b VZ |
16670 | if test "$TOOLKIT" != "MSW"; then |
16671 | ||
3a922bb4 RL |
16672 | if test "$wxUSE_SOCKETS" = "yes"; then |
16673 | echo $ac_n "checking for socket""... $ac_c" 1>&6 | |
d6853540 | 16674 | echo "configure:16675: checking for socket" >&5 |
698dcdb6 VZ |
16675 | if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then |
16676 | echo $ac_n "(cached) $ac_c" 1>&6 | |
c63c7106 | 16677 | else |
698dcdb6 | 16678 | cat > conftest.$ac_ext <<EOF |
d6853540 | 16679 | #line 16680 "configure" |
c63c7106 VZ |
16680 | #include "confdefs.h" |
16681 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 16682 | which can conflict with char socket(); below. */ |
c63c7106 VZ |
16683 | #include <assert.h> |
16684 | /* Override any gcc2 internal prototype to avoid an error. */ | |
16685 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
16686 | builtin and then its argument prototype would still apply. */ |
16687 | char socket(); | |
16688 | ||
16689 | int main() { | |
c63c7106 VZ |
16690 | |
16691 | /* The GNU C library defines this for functions which it implements | |
16692 | to always fail with ENOSYS. Some functions are actually named | |
16693 | something starting with __ and the normal name is an alias. */ | |
16694 | #if defined (__stub_socket) || defined (__stub___socket) | |
16695 | choke me | |
16696 | #else | |
698dcdb6 | 16697 | socket(); |
c63c7106 VZ |
16698 | #endif |
16699 | ||
698dcdb6 VZ |
16700 | ; return 0; } |
16701 | EOF | |
d6853540 | 16702 | if { (eval echo configure:16703: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
16703 | rm -rf conftest* |
16704 | eval "ac_cv_func_socket=yes" | |
16705 | else | |
16706 | echo "configure: failed program was:" >&5 | |
16707 | cat conftest.$ac_ext >&5 | |
16708 | rm -rf conftest* | |
16709 | eval "ac_cv_func_socket=no" | |
16710 | fi | |
16711 | rm -f conftest* | |
16712 | fi | |
16713 | ||
16714 | if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then | |
16715 | echo "$ac_t""yes" 1>&6 | |
c63c7106 VZ |
16716 | : |
16717 | else | |
698dcdb6 VZ |
16718 | echo "$ac_t""no" 1>&6 |
16719 | echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6 | |
d6853540 | 16720 | echo "configure:16721: checking for socket in -lsocket" >&5 |
698dcdb6 VZ |
16721 | ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'` |
16722 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
16723 | echo $ac_n "(cached) $ac_c" 1>&6 | |
c63c7106 | 16724 | else |
698dcdb6 | 16725 | ac_save_LIBS="$LIBS" |
c63c7106 | 16726 | LIBS="-lsocket $LIBS" |
698dcdb6 | 16727 | cat > conftest.$ac_ext <<EOF |
d6853540 | 16728 | #line 16729 "configure" |
c63c7106 VZ |
16729 | #include "confdefs.h" |
16730 | /* Override any gcc2 internal prototype to avoid an error. */ | |
16731 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
16732 | builtin and then its argument prototype would still apply. */ |
16733 | char socket(); | |
16734 | ||
16735 | int main() { | |
16736 | socket() | |
16737 | ; return 0; } | |
16738 | EOF | |
d6853540 | 16739 | if { (eval echo configure:16740: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
16740 | rm -rf conftest* |
16741 | eval "ac_cv_lib_$ac_lib_var=yes" | |
16742 | else | |
16743 | echo "configure: failed program was:" >&5 | |
16744 | cat conftest.$ac_ext >&5 | |
16745 | rm -rf conftest* | |
16746 | eval "ac_cv_lib_$ac_lib_var=no" | |
16747 | fi | |
16748 | rm -f conftest* | |
16749 | LIBS="$ac_save_LIBS" | |
16750 | ||
16751 | fi | |
16752 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
16753 | echo "$ac_t""yes" 1>&6 | |
c63c7106 | 16754 | INET_LINK="$INET_LINK -lsocket" |
c63c7106 | 16755 | else |
698dcdb6 | 16756 | echo "$ac_t""no" 1>&6 |
afc31813 | 16757 | |
3a922bb4 RL |
16758 | echo "configure: warning: socket library not found - sockets will be disabled" 1>&2 |
16759 | wxUSE_SOCKETS=no | |
16760 | ||
698dcdb6 | 16761 | |
6232543b | 16762 | fi |
b089607b | 16763 | |
3a922bb4 | 16764 | |
1e487827 | 16765 | fi |
afc31813 | 16766 | |
3a922bb4 | 16767 | fi |
51a9faba | 16768 | |
3a922bb4 RL |
16769 | |
16770 | if test "$wxUSE_SOCKETS" = "yes" ; then | |
16771 | echo $ac_n "checking what is the type of the third argument of getsockname""... $ac_c" 1>&6 | |
d6853540 | 16772 | echo "configure:16773: checking what is the type of the third argument of getsockname" >&5 |
698dcdb6 VZ |
16773 | if eval "test \"`echo '$''{'wx_cv_type_getsockname3'+set}'`\" = set"; then |
16774 | echo $ac_n "(cached) $ac_c" 1>&6 | |
16775 | else | |
16776 | ||
3a922bb4 RL |
16777 | |
16778 | ac_ext=C | |
698dcdb6 | 16779 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
1e487827 | 16780 | ac_cpp='$CXXCPP $CPPFLAGS' |
698dcdb6 VZ |
16781 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
16782 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
16783 | cross_compiling=$ac_cv_prog_cxx_cross | |
703e0a69 | 16784 | |
698dcdb6 | 16785 | |
3a922bb4 | 16786 | cat > conftest.$ac_ext <<EOF |
d6853540 | 16787 | #line 16788 "configure" |
afc31813 | 16788 | #include "confdefs.h" |
51a9faba | 16789 | |
3a922bb4 RL |
16790 | #include <sys/types.h> |
16791 | #include <sys/socket.h> | |
16792 | ||
698dcdb6 | 16793 | int main() { |
51a9faba | 16794 | |
3a922bb4 RL |
16795 | socklen_t len; |
16796 | getsockname(0, 0, &len); | |
16797 | ||
698dcdb6 VZ |
16798 | ; return 0; } |
16799 | EOF | |
d6853540 | 16800 | if { (eval echo configure:16801: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 | 16801 | rm -rf conftest* |
51a9faba | 16802 | wx_cv_type_getsockname3=socklen_t |
afc31813 | 16803 | else |
698dcdb6 VZ |
16804 | echo "configure: failed program was:" >&5 |
16805 | cat conftest.$ac_ext >&5 | |
16806 | rm -rf conftest* | |
16807 | cat > conftest.$ac_ext <<EOF | |
d6853540 | 16808 | #line 16809 "configure" |
afc31813 | 16809 | #include "confdefs.h" |
51a9faba | 16810 | |
3a922bb4 RL |
16811 | #include <sys/types.h> |
16812 | #include <sys/socket.h> | |
16813 | ||
698dcdb6 | 16814 | int main() { |
51a9faba | 16815 | |
3a922bb4 RL |
16816 | size_t len; |
16817 | getsockname(0, 0, &len); | |
16818 | ||
698dcdb6 VZ |
16819 | ; return 0; } |
16820 | EOF | |
d6853540 | 16821 | if { (eval echo configure:16822: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 | 16822 | rm -rf conftest* |
51a9faba | 16823 | wx_cv_type_getsockname3=size_t |
afc31813 | 16824 | else |
698dcdb6 VZ |
16825 | echo "configure: failed program was:" >&5 |
16826 | cat conftest.$ac_ext >&5 | |
16827 | rm -rf conftest* | |
16828 | cat > conftest.$ac_ext <<EOF | |
d6853540 | 16829 | #line 16830 "configure" |
afc31813 | 16830 | #include "confdefs.h" |
51a9faba | 16831 | |
3a922bb4 RL |
16832 | #include <sys/types.h> |
16833 | #include <sys/socket.h> | |
16834 | ||
698dcdb6 | 16835 | int main() { |
51a9faba | 16836 | |
3a922bb4 RL |
16837 | int len; |
16838 | getsockname(0, 0, &len); | |
16839 | ||
698dcdb6 VZ |
16840 | ; return 0; } |
16841 | EOF | |
d6853540 | 16842 | if { (eval echo configure:16843: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 | 16843 | rm -rf conftest* |
51a9faba | 16844 | wx_cv_type_getsockname3=int |
afc31813 | 16845 | else |
698dcdb6 VZ |
16846 | echo "configure: failed program was:" >&5 |
16847 | cat conftest.$ac_ext >&5 | |
16848 | rm -rf conftest* | |
16849 | wx_cv_type_getsockname3=unknown | |
3a922bb4 | 16850 | |
afc31813 | 16851 | fi |
698dcdb6 | 16852 | rm -f conftest* |
3a922bb4 | 16853 | |
afc31813 | 16854 | fi |
698dcdb6 | 16855 | rm -f conftest* |
3a922bb4 | 16856 | |
afc31813 | 16857 | fi |
698dcdb6 | 16858 | rm -f conftest* |
51a9faba | 16859 | |
3a922bb4 | 16860 | ac_ext=c |
698dcdb6 | 16861 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
afc31813 | 16862 | ac_cpp='$CPP $CPPFLAGS' |
698dcdb6 VZ |
16863 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
16864 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
16865 | cross_compiling=$ac_cv_prog_cc_cross | |
afc31813 | 16866 | |
3a922bb4 | 16867 | |
51a9faba | 16868 | fi |
698dcdb6 VZ |
16869 | |
16870 | echo "$ac_t""$wx_cv_type_getsockname3" 1>&6 | |
51a9faba | 16871 | |
3a922bb4 RL |
16872 | if test "$wx_cv_type_getsockname3" = "unknown"; then |
16873 | wxUSE_SOCKETS=no | |
16874 | echo "configure: warning: Couldn't find socklen_t synonym for this system" 1>&2 | |
16875 | else | |
16876 | cat >> confdefs.h <<EOF | |
51a9faba VZ |
16877 | #define SOCKLEN_T $wx_cv_type_getsockname3 |
16878 | EOF | |
16879 | ||
3a922bb4 | 16880 | fi |
51a9faba VZ |
16881 | fi |
16882 | fi | |
afc31813 | 16883 | |
51a9faba | 16884 | if test "$wxUSE_SOCKETS" = "yes" ; then |
698dcdb6 | 16885 | cat >> confdefs.h <<\EOF |
afc31813 VZ |
16886 | #define wxUSE_SOCKETS 1 |
16887 | EOF | |
16888 | ||
70f7a477 | 16889 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets" |
afc31813 VZ |
16890 | fi |
16891 | ||
698dcdb6 | 16892 | |
dc3d889d VZ |
16893 | if test "$wxUSE_GUI" = "yes"; then |
16894 | ||
3a922bb4 RL |
16895 | if test "$TOOLKIT" != "MSW"; then |
16896 | if test "$wxUSE_JOYSTICK" = "yes"; then | |
16897 | for ac_hdr in linux/joystick.h | |
10f2d63a | 16898 | do |
698dcdb6 VZ |
16899 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
16900 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
d6853540 | 16901 | echo "configure:16902: checking for $ac_hdr" >&5 |
698dcdb6 VZ |
16902 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
16903 | echo $ac_n "(cached) $ac_c" 1>&6 | |
16904 | else | |
16905 | cat > conftest.$ac_ext <<EOF | |
d6853540 | 16906 | #line 16907 "configure" |
10f2d63a | 16907 | #include "confdefs.h" |
698dcdb6 VZ |
16908 | #include <$ac_hdr> |
16909 | EOF | |
16910 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
d6853540 | 16911 | { (eval echo configure:16912: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
16912 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
16913 | if test -z "$ac_err"; then | |
16914 | rm -rf conftest* | |
16915 | eval "ac_cv_header_$ac_safe=yes" | |
10f2d63a | 16916 | else |
698dcdb6 VZ |
16917 | echo "$ac_err" >&5 |
16918 | echo "configure: failed program was:" >&5 | |
10f2d63a | 16919 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
16920 | rm -rf conftest* |
16921 | eval "ac_cv_header_$ac_safe=no" | |
10f2d63a | 16922 | fi |
698dcdb6 | 16923 | rm -f conftest* |
10f2d63a | 16924 | fi |
698dcdb6 VZ |
16925 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
16926 | echo "$ac_t""yes" 1>&6 | |
16927 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
16928 | cat >> confdefs.h <<EOF | |
16929 | #define $ac_tr_hdr 1 | |
10f2d63a | 16930 | EOF |
698dcdb6 VZ |
16931 | |
16932 | else | |
16933 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
16934 | fi |
16935 | done | |
16936 | ||
3a922bb4 RL |
16937 | if test "$ac_cv_header_linux_joystick_h" != "yes"; then |
16938 | wxUSE_JOYSTICK=no | |
16939 | echo "configure: warning: Joystick not supported by this system" 1>&2 | |
16940 | fi | |
16941 | fi | |
16942 | fi | |
b089607b | 16943 | |
3a922bb4 RL |
16944 | if test "$wxUSE_JOYSTICK" = "yes"; then |
16945 | cat >> confdefs.h <<\EOF | |
10f2d63a VZ |
16946 | #define wxUSE_JOYSTICK 1 |
16947 | EOF | |
16948 | ||
3a922bb4 RL |
16949 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest" |
16950 | fi | |
dc3d889d VZ |
16951 | fi |
16952 | ||
698dcdb6 | 16953 | |
b089607b VZ |
16954 | if test "$TOOLKIT" != "MSW"; then |
16955 | ||
3a922bb4 RL |
16956 | HAVE_DL_FUNCS=0 |
16957 | HAVE_SHL_FUNCS=0 | |
16958 | if test "$wxUSE_DYNLIB_CLASS" = "yes"; then | |
16959 | if test "$USE_DARWIN" = 1; then | |
16960 | HAVE_DL_FUNCS=1 | |
16961 | else | |
16962 | for ac_func in dlopen | |
10f2d63a | 16963 | do |
698dcdb6 | 16964 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
d6853540 | 16965 | echo "configure:16966: checking for $ac_func" >&5 |
698dcdb6 VZ |
16966 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
16967 | echo $ac_n "(cached) $ac_c" 1>&6 | |
16968 | else | |
16969 | cat > conftest.$ac_ext <<EOF | |
d6853540 | 16970 | #line 16971 "configure" |
10f2d63a VZ |
16971 | #include "confdefs.h" |
16972 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 16973 | which can conflict with char $ac_func(); below. */ |
10f2d63a VZ |
16974 | #include <assert.h> |
16975 | /* Override any gcc2 internal prototype to avoid an error. */ | |
16976 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
16977 | builtin and then its argument prototype would still apply. */ |
16978 | char $ac_func(); | |
16979 | ||
16980 | int main() { | |
10f2d63a VZ |
16981 | |
16982 | /* The GNU C library defines this for functions which it implements | |
16983 | to always fail with ENOSYS. Some functions are actually named | |
16984 | something starting with __ and the normal name is an alias. */ | |
16985 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
16986 | choke me | |
16987 | #else | |
698dcdb6 | 16988 | $ac_func(); |
10f2d63a VZ |
16989 | #endif |
16990 | ||
698dcdb6 VZ |
16991 | ; return 0; } |
16992 | EOF | |
d6853540 | 16993 | if { (eval echo configure:16994: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
16994 | rm -rf conftest* |
16995 | eval "ac_cv_func_$ac_func=yes" | |
16996 | else | |
16997 | echo "configure: failed program was:" >&5 | |
16998 | cat conftest.$ac_ext >&5 | |
16999 | rm -rf conftest* | |
17000 | eval "ac_cv_func_$ac_func=no" | |
17001 | fi | |
17002 | rm -f conftest* | |
17003 | fi | |
17004 | ||
17005 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
17006 | echo "$ac_t""yes" 1>&6 | |
17007 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
17008 | cat >> confdefs.h <<EOF | |
17009 | #define $ac_tr_func 1 | |
17010 | EOF | |
17011 | ||
3a922bb4 | 17012 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17013 | #define HAVE_DLOPEN 1 |
17014 | EOF | |
17015 | ||
3a922bb4 RL |
17016 | HAVE_DL_FUNCS=1 |
17017 | ||
10f2d63a | 17018 | else |
698dcdb6 VZ |
17019 | echo "$ac_t""no" 1>&6 |
17020 | echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6 | |
d6853540 | 17021 | echo "configure:17022: checking for dlopen in -ldl" >&5 |
698dcdb6 VZ |
17022 | ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'` |
17023 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
17024 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 17025 | else |
698dcdb6 | 17026 | ac_save_LIBS="$LIBS" |
10f2d63a | 17027 | LIBS="-ldl $LIBS" |
698dcdb6 | 17028 | cat > conftest.$ac_ext <<EOF |
d6853540 | 17029 | #line 17030 "configure" |
10f2d63a VZ |
17030 | #include "confdefs.h" |
17031 | /* Override any gcc2 internal prototype to avoid an error. */ | |
17032 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
17033 | builtin and then its argument prototype would still apply. */ |
17034 | char dlopen(); | |
17035 | ||
17036 | int main() { | |
17037 | dlopen() | |
17038 | ; return 0; } | |
17039 | EOF | |
d6853540 | 17040 | if { (eval echo configure:17041: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
17041 | rm -rf conftest* |
17042 | eval "ac_cv_lib_$ac_lib_var=yes" | |
17043 | else | |
17044 | echo "configure: failed program was:" >&5 | |
17045 | cat conftest.$ac_ext >&5 | |
17046 | rm -rf conftest* | |
17047 | eval "ac_cv_lib_$ac_lib_var=no" | |
17048 | fi | |
17049 | rm -f conftest* | |
17050 | LIBS="$ac_save_LIBS" | |
17051 | ||
17052 | fi | |
17053 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
17054 | echo "$ac_t""yes" 1>&6 | |
17055 | ||
3a922bb4 | 17056 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17057 | #define HAVE_DLOPEN 1 |
17058 | EOF | |
17059 | ||
3a922bb4 RL |
17060 | HAVE_DL_FUNCS=1 |
17061 | LIBS="$LIBS -ldl" | |
17062 | ||
10f2d63a | 17063 | else |
698dcdb6 | 17064 | echo "$ac_t""no" 1>&6 |
10f2d63a | 17065 | |
3a922bb4 | 17066 | for ac_func in shl_load |
10f2d63a | 17067 | do |
698dcdb6 | 17068 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
d6853540 | 17069 | echo "configure:17070: checking for $ac_func" >&5 |
698dcdb6 VZ |
17070 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
17071 | echo $ac_n "(cached) $ac_c" 1>&6 | |
17072 | else | |
17073 | cat > conftest.$ac_ext <<EOF | |
d6853540 | 17074 | #line 17075 "configure" |
10f2d63a VZ |
17075 | #include "confdefs.h" |
17076 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 17077 | which can conflict with char $ac_func(); below. */ |
10f2d63a VZ |
17078 | #include <assert.h> |
17079 | /* Override any gcc2 internal prototype to avoid an error. */ | |
17080 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
17081 | builtin and then its argument prototype would still apply. */ |
17082 | char $ac_func(); | |
17083 | ||
17084 | int main() { | |
10f2d63a VZ |
17085 | |
17086 | /* The GNU C library defines this for functions which it implements | |
17087 | to always fail with ENOSYS. Some functions are actually named | |
17088 | something starting with __ and the normal name is an alias. */ | |
17089 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
17090 | choke me | |
17091 | #else | |
698dcdb6 | 17092 | $ac_func(); |
10f2d63a VZ |
17093 | #endif |
17094 | ||
698dcdb6 VZ |
17095 | ; return 0; } |
17096 | EOF | |
d6853540 | 17097 | if { (eval echo configure:17098: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
17098 | rm -rf conftest* |
17099 | eval "ac_cv_func_$ac_func=yes" | |
17100 | else | |
17101 | echo "configure: failed program was:" >&5 | |
17102 | cat conftest.$ac_ext >&5 | |
17103 | rm -rf conftest* | |
17104 | eval "ac_cv_func_$ac_func=no" | |
17105 | fi | |
17106 | rm -f conftest* | |
17107 | fi | |
17108 | ||
17109 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
17110 | echo "$ac_t""yes" 1>&6 | |
17111 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
17112 | cat >> confdefs.h <<EOF | |
17113 | #define $ac_tr_func 1 | |
17114 | EOF | |
17115 | ||
3a922bb4 | 17116 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17117 | #define HAVE_SHL_LOAD 1 |
17118 | EOF | |
17119 | ||
3a922bb4 RL |
17120 | HAVE_SHL_FUNCS=1 |
17121 | ||
10f2d63a | 17122 | else |
698dcdb6 VZ |
17123 | echo "$ac_t""no" 1>&6 |
17124 | echo $ac_n "checking for dld in -lshl_load""... $ac_c" 1>&6 | |
d6853540 | 17125 | echo "configure:17126: checking for dld in -lshl_load" >&5 |
698dcdb6 VZ |
17126 | ac_lib_var=`echo shl_load'_'dld | sed 'y%./+-%__p_%'` |
17127 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
17128 | echo $ac_n "(cached) $ac_c" 1>&6 | |
f6bcfd97 | 17129 | else |
698dcdb6 | 17130 | ac_save_LIBS="$LIBS" |
f6bcfd97 | 17131 | LIBS="-lshl_load $LIBS" |
698dcdb6 | 17132 | cat > conftest.$ac_ext <<EOF |
d6853540 | 17133 | #line 17134 "configure" |
f6bcfd97 BP |
17134 | #include "confdefs.h" |
17135 | /* Override any gcc2 internal prototype to avoid an error. */ | |
17136 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
17137 | builtin and then its argument prototype would still apply. */ |
17138 | char dld(); | |
17139 | ||
17140 | int main() { | |
17141 | dld() | |
17142 | ; return 0; } | |
17143 | EOF | |
d6853540 | 17144 | if { (eval echo configure:17145: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
17145 | rm -rf conftest* |
17146 | eval "ac_cv_lib_$ac_lib_var=yes" | |
17147 | else | |
17148 | echo "configure: failed program was:" >&5 | |
17149 | cat conftest.$ac_ext >&5 | |
17150 | rm -rf conftest* | |
17151 | eval "ac_cv_lib_$ac_lib_var=no" | |
17152 | fi | |
17153 | rm -f conftest* | |
17154 | LIBS="$ac_save_LIBS" | |
f6bcfd97 | 17155 | |
698dcdb6 VZ |
17156 | fi |
17157 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
17158 | echo "$ac_t""yes" 1>&6 | |
17159 | ||
3a922bb4 RL |
17160 | HAVE_SHL_FUNCS=1 |
17161 | LIBS="$LIBS -ldld" | |
17162 | ||
698dcdb6 VZ |
17163 | else |
17164 | echo "$ac_t""no" 1>&6 | |
f6bcfd97 BP |
17165 | fi |
17166 | ||
3a922bb4 | 17167 | |
10f2d63a VZ |
17168 | fi |
17169 | done | |
17170 | ||
3a922bb4 | 17171 | |
10f2d63a VZ |
17172 | fi |
17173 | ||
3a922bb4 | 17174 | |
10f2d63a VZ |
17175 | fi |
17176 | done | |
17177 | ||
1e487827 | 17178 | |
3a922bb4 RL |
17179 | if test "$HAVE_DL_FUNCS" = 1; then |
17180 | for ac_func in dlerror | |
f6bcfd97 | 17181 | do |
698dcdb6 | 17182 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
d6853540 | 17183 | echo "configure:17184: checking for $ac_func" >&5 |
698dcdb6 VZ |
17184 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
17185 | echo $ac_n "(cached) $ac_c" 1>&6 | |
17186 | else | |
17187 | cat > conftest.$ac_ext <<EOF | |
d6853540 | 17188 | #line 17189 "configure" |
f6bcfd97 BP |
17189 | #include "confdefs.h" |
17190 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 17191 | which can conflict with char $ac_func(); below. */ |
f6bcfd97 BP |
17192 | #include <assert.h> |
17193 | /* Override any gcc2 internal prototype to avoid an error. */ | |
17194 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
17195 | builtin and then its argument prototype would still apply. */ |
17196 | char $ac_func(); | |
17197 | ||
17198 | int main() { | |
f6bcfd97 BP |
17199 | |
17200 | /* The GNU C library defines this for functions which it implements | |
17201 | to always fail with ENOSYS. Some functions are actually named | |
17202 | something starting with __ and the normal name is an alias. */ | |
17203 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
17204 | choke me | |
17205 | #else | |
698dcdb6 | 17206 | $ac_func(); |
f6bcfd97 BP |
17207 | #endif |
17208 | ||
698dcdb6 VZ |
17209 | ; return 0; } |
17210 | EOF | |
d6853540 | 17211 | if { (eval echo configure:17212: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
17212 | rm -rf conftest* |
17213 | eval "ac_cv_func_$ac_func=yes" | |
17214 | else | |
17215 | echo "configure: failed program was:" >&5 | |
17216 | cat conftest.$ac_ext >&5 | |
17217 | rm -rf conftest* | |
17218 | eval "ac_cv_func_$ac_func=no" | |
17219 | fi | |
17220 | rm -f conftest* | |
17221 | fi | |
17222 | ||
17223 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
17224 | echo "$ac_t""yes" 1>&6 | |
17225 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
17226 | cat >> confdefs.h <<EOF | |
17227 | #define $ac_tr_func 1 | |
17228 | EOF | |
17229 | cat >> confdefs.h <<\EOF | |
f6bcfd97 BP |
17230 | #define HAVE_DLERROR 1 |
17231 | EOF | |
17232 | ||
17233 | else | |
698dcdb6 VZ |
17234 | echo "$ac_t""no" 1>&6 |
17235 | echo $ac_n "checking for dlerror in -ldl""... $ac_c" 1>&6 | |
d6853540 | 17236 | echo "configure:17237: checking for dlerror in -ldl" >&5 |
698dcdb6 VZ |
17237 | ac_lib_var=`echo dl'_'dlerror | sed 'y%./+-%__p_%'` |
17238 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
17239 | echo $ac_n "(cached) $ac_c" 1>&6 | |
f6bcfd97 | 17240 | else |
698dcdb6 | 17241 | ac_save_LIBS="$LIBS" |
f6bcfd97 | 17242 | LIBS="-ldl $LIBS" |
698dcdb6 | 17243 | cat > conftest.$ac_ext <<EOF |
d6853540 | 17244 | #line 17245 "configure" |
f6bcfd97 BP |
17245 | #include "confdefs.h" |
17246 | /* Override any gcc2 internal prototype to avoid an error. */ | |
17247 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
17248 | builtin and then its argument prototype would still apply. */ |
17249 | char dlerror(); | |
17250 | ||
17251 | int main() { | |
17252 | dlerror() | |
17253 | ; return 0; } | |
17254 | EOF | |
d6853540 | 17255 | if { (eval echo configure:17256: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
17256 | rm -rf conftest* |
17257 | eval "ac_cv_lib_$ac_lib_var=yes" | |
17258 | else | |
17259 | echo "configure: failed program was:" >&5 | |
17260 | cat conftest.$ac_ext >&5 | |
17261 | rm -rf conftest* | |
17262 | eval "ac_cv_lib_$ac_lib_var=no" | |
17263 | fi | |
17264 | rm -f conftest* | |
17265 | LIBS="$ac_save_LIBS" | |
17266 | ||
17267 | fi | |
17268 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
17269 | echo "$ac_t""yes" 1>&6 | |
17270 | cat >> confdefs.h <<\EOF | |
f6bcfd97 BP |
17271 | #define HAVE_DLERROR 1 |
17272 | EOF | |
17273 | ||
698dcdb6 VZ |
17274 | else |
17275 | echo "$ac_t""no" 1>&6 | |
f6bcfd97 BP |
17276 | fi |
17277 | ||
17278 | fi | |
17279 | done | |
17280 | ||
3a922bb4 RL |
17281 | fi |
17282 | fi | |
f6bcfd97 | 17283 | |
3a922bb4 RL |
17284 | if test "$HAVE_DL_FUNCS" = 0; then |
17285 | if test "$HAVE_SHL_FUNCS" = 0; then | |
17286 | if test "$USE_UNIX" = 1; then | |
17287 | echo "configure: warning: Missing dynamic loading support, several features will be disabled" 1>&2 | |
17288 | wxUSE_DYNLIB_CLASS=no | |
17289 | else | |
17290 | echo "configure: warning: Assuming wxLibrary class works on this platform" 1>&2 | |
17291 | fi | |
17292 | fi | |
10f2d63a VZ |
17293 | fi |
17294 | fi | |
17295 | fi | |
17296 | ||
17297 | if test "$wxUSE_DYNLIB_CLASS" = "yes" ; then | |
698dcdb6 | 17298 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17299 | #define wxUSE_DYNLIB_CLASS 1 |
17300 | EOF | |
17301 | ||
b12915c1 VZ |
17302 | else |
17303 | wxUSE_ODBC=no | |
17304 | wxUSE_SERIAL=no | |
10f2d63a VZ |
17305 | fi |
17306 | ||
698dcdb6 | 17307 | |
1e6feb95 VZ |
17308 | if test "$wxUSE_FONTMAP" = "yes" ; then |
17309 | cat >> confdefs.h <<\EOF | |
17310 | #define wxUSE_FONTMAP 1 | |
17311 | EOF | |
17312 | ||
17313 | fi | |
17314 | ||
10f2d63a | 17315 | if test "$wxUSE_UNICODE" = "yes" ; then |
698dcdb6 | 17316 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17317 | #define wxUSE_UNICODE 1 |
17318 | EOF | |
17319 | ||
17320 | fi | |
17321 | ||
10f2d63a | 17322 | if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then |
698dcdb6 | 17323 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17324 | #define wxUSE_EXPERIMENTAL_PRINTF 1 |
17325 | EOF | |
17326 | ||
17327 | fi | |
17328 | ||
698dcdb6 | 17329 | |
b12915c1 | 17330 | if test "$wxUSE_SERIAL" = "yes" ; then |
698dcdb6 | 17331 | cat >> confdefs.h <<\EOF |
b12915c1 VZ |
17332 | #define wxUSE_SERIAL 1 |
17333 | EOF | |
17334 | ||
17335 | fi | |
17336 | ||
698dcdb6 | 17337 | |
10f2d63a VZ |
17338 | IODBC_C_SRC="" |
17339 | if test "$wxUSE_ODBC" = "yes" ; then | |
698dcdb6 | 17340 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17341 | #define wxUSE_ODBC 1 |
17342 | EOF | |
17343 | ||
17344 | WXODBCFLAG="-D_IODBC_" | |
17345 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db" | |
10f2d63a VZ |
17346 | fi |
17347 | ||
698dcdb6 | 17348 | |
10f2d63a | 17349 | if test "$wxUSE_POSTSCRIPT" = "yes" ; then |
698dcdb6 | 17350 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17351 | #define wxUSE_POSTSCRIPT 1 |
17352 | EOF | |
17353 | ||
17354 | fi | |
17355 | ||
698dcdb6 | 17356 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17357 | #define wxUSE_AFM_FOR_POSTSCRIPT 1 |
17358 | EOF | |
17359 | ||
698dcdb6 VZ |
17360 | |
17361 | cat >> confdefs.h <<\EOF | |
10f2d63a VZ |
17362 | #define wxUSE_NORMALIZED_PS_FONTS 1 |
17363 | EOF | |
17364 | ||
698dcdb6 VZ |
17365 | |
17366 | ||
10f2d63a | 17367 | if test "$wxUSE_CONSTRAINTS" = "yes"; then |
698dcdb6 | 17368 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17369 | #define wxUSE_CONSTRAINTS 1 |
17370 | EOF | |
17371 | ||
17372 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout" | |
17373 | fi | |
17374 | ||
17375 | if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then | |
fc26f4ab RL |
17376 | if test "$wxUSE_UNIVERSAL" = "yes"; then |
17377 | echo "configure: warning: MDI is not supported for wxUNIVERSAL yet... disabled" 1>&2 | |
17378 | wxUSE_MDI_ARCHITECTURE=no | |
17379 | fi | |
17380 | ||
17381 | if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then | |
17382 | cat >> confdefs.h <<\EOF | |
10f2d63a VZ |
17383 | #define wxUSE_MDI_ARCHITECTURE 1 |
17384 | EOF | |
17385 | ||
fc26f4ab RL |
17386 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi" |
17387 | fi | |
10f2d63a VZ |
17388 | fi |
17389 | ||
17390 | if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then | |
698dcdb6 | 17391 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17392 | #define wxUSE_DOC_VIEW_ARCHITECTURE 1 |
17393 | EOF | |
17394 | ||
17395 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview" | |
17396 | if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then | |
17397 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi" | |
17398 | fi | |
17399 | fi | |
17400 | ||
17401 | if test "$wxUSE_HELP" = "yes"; then | |
698dcdb6 | 17402 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17403 | #define wxUSE_HELP 1 |
17404 | EOF | |
17405 | ||
17406 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help" | |
3379ed37 | 17407 | |
77e13408 | 17408 | if test "$wxUSE_MSW" = 1; then |
031d8228 | 17409 | if test "$wxUSE_MS_HTML_HELP" = "yes"; then |
29fd3c0c VS |
17410 | ac_safe=`echo "htmlhelp.h" | sed 'y%./+-%__p_%'` |
17411 | echo $ac_n "checking for htmlhelp.h""... $ac_c" 1>&6 | |
d6853540 | 17412 | echo "configure:17413: checking for htmlhelp.h" >&5 |
29fd3c0c VS |
17413 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
17414 | echo $ac_n "(cached) $ac_c" 1>&6 | |
17415 | else | |
17416 | cat > conftest.$ac_ext <<EOF | |
d6853540 | 17417 | #line 17418 "configure" |
29fd3c0c VS |
17418 | #include "confdefs.h" |
17419 | #include <htmlhelp.h> | |
17420 | EOF | |
17421 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
d6853540 | 17422 | { (eval echo configure:17423: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
29fd3c0c VS |
17423 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
17424 | if test -z "$ac_err"; then | |
17425 | rm -rf conftest* | |
17426 | eval "ac_cv_header_$ac_safe=yes" | |
17427 | else | |
17428 | echo "$ac_err" >&5 | |
17429 | echo "configure: failed program was:" >&5 | |
17430 | cat conftest.$ac_ext >&5 | |
17431 | rm -rf conftest* | |
17432 | eval "ac_cv_header_$ac_safe=no" | |
17433 | fi | |
17434 | rm -f conftest* | |
17435 | fi | |
17436 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
17437 | echo "$ac_t""yes" 1>&6 | |
17438 | ||
17439 | cat >> confdefs.h <<\EOF | |
17440 | #define wxUSE_MS_HTML_HELP 1 | |
17441 | EOF | |
17442 | ||
17443 | ||
17444 | else | |
17445 | echo "$ac_t""no" 1>&6 | |
17446 | ||
fc26f4ab | 17447 | echo "configure: warning: MS HTML Help cannot be used without htmlhelp.h... disabled" 1>&2 |
29fd3c0c VS |
17448 | wxUSE_MS_HTML_HELP=no |
17449 | ||
17450 | fi | |
17451 | ||
3e44f09d | 17452 | fi |
3379ed37 | 17453 | fi |
031d8228 VS |
17454 | |
17455 | if test "$wxUSE_WXHTML_HELP" = "yes"; then | |
17456 | if test "$wxUSE_HTML" = "yes"; then | |
17457 | cat >> confdefs.h <<\EOF | |
17458 | #define wxUSE_WXHTML_HELP 1 | |
17459 | EOF | |
17460 | ||
17461 | else | |
17462 | echo "configure: warning: Cannot use wxHTML-based help without wxHTML so it won't be compiled" 1>&2 | |
17463 | wxUSE_WXHTML_HELP=no | |
17464 | fi | |
17465 | fi | |
10f2d63a VZ |
17466 | fi |
17467 | ||
17468 | if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then | |
17469 | if test "$wxUSE_CONSTRAINTS" != "yes"; then | |
698dcdb6 | 17470 | echo "configure: warning: Printing support cannot be used without constraints so it won't be compiled without it" 1>&2 |
10f2d63a | 17471 | else |
698dcdb6 | 17472 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17473 | #define wxUSE_PRINTING_ARCHITECTURE 1 |
17474 | EOF | |
17475 | ||
17476 | fi | |
17477 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing" | |
17478 | fi | |
17479 | ||
17480 | if test "$wxUSE_PROLOGIO" = "yes" ; then | |
698dcdb6 | 17481 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17482 | #define wxUSE_PROLOGIO 1 |
17483 | EOF | |
17484 | ||
17485 | fi | |
17486 | ||
17487 | if test "$wxUSE_RESOURCES" = "yes" ; then | |
3379ed37 | 17488 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17489 | #define wxUSE_RESOURCES 1 |
17490 | EOF | |
17491 | ||
3379ed37 | 17492 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS resource" |
10f2d63a VZ |
17493 | fi |
17494 | ||
17495 | if test "$wxUSE_X_RESOURCES" = "yes"; then | |
698dcdb6 | 17496 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17497 | #define wxUSE_X_RESOURCES 1 |
17498 | EOF | |
17499 | ||
17500 | fi | |
17501 | ||
698dcdb6 | 17502 | |
77e13408 RL |
17503 | if test "$wxUSE_MSW" = 1 -a \( "$wxUSE_DATAOBJ" = "yes" \ |
17504 | -o "$wxUSE_CLIPBOARD" = "yes" \ | |
17505 | -o "$wxUSE_DRAG_AND_DROP" = "yes" \) ; then | |
2b9bdf71 | 17506 | for ac_hdr in ole2.h |
10f2d63a | 17507 | do |
698dcdb6 VZ |
17508 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
17509 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
d6853540 | 17510 | echo "configure:17511: checking for $ac_hdr" >&5 |
698dcdb6 VZ |
17511 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
17512 | echo $ac_n "(cached) $ac_c" 1>&6 | |
17513 | else | |
17514 | cat > conftest.$ac_ext <<EOF | |
d6853540 | 17515 | #line 17516 "configure" |
10f2d63a | 17516 | #include "confdefs.h" |
698dcdb6 VZ |
17517 | #include <$ac_hdr> |
17518 | EOF | |
17519 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
d6853540 | 17520 | { (eval echo configure:17521: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
17521 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
17522 | if test -z "$ac_err"; then | |
17523 | rm -rf conftest* | |
17524 | eval "ac_cv_header_$ac_safe=yes" | |
1e487827 | 17525 | else |
698dcdb6 VZ |
17526 | echo "$ac_err" >&5 |
17527 | echo "configure: failed program was:" >&5 | |
10f2d63a | 17528 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
17529 | rm -rf conftest* |
17530 | eval "ac_cv_header_$ac_safe=no" | |
10f2d63a | 17531 | fi |
698dcdb6 | 17532 | rm -f conftest* |
10f2d63a | 17533 | fi |
698dcdb6 VZ |
17534 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
17535 | echo "$ac_t""yes" 1>&6 | |
17536 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
17537 | cat >> confdefs.h <<EOF | |
17538 | #define $ac_tr_hdr 1 | |
10f2d63a | 17539 | EOF |
698dcdb6 VZ |
17540 | |
17541 | else | |
17542 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
17543 | fi |
17544 | done | |
17545 | ||
698dcdb6 | 17546 | |
2b9bdf71 VZ |
17547 | if test "$ac_cv_header_ole2_h" = "yes" ; then |
17548 | if test "$GCC" = yes ; then | |
17549 | ALL_OBJECTS="$ALL_OBJECTS \$(OLEOBJS)" | |
2b9bdf71 VZ |
17550 | CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fvtable-thunks" |
17551 | LIBS="$LIBS -lrpcrt4 -loleaut32 -lole32 -luuid" | |
17552 | cat >> confdefs.h <<\EOF | |
4f11a343 VS |
17553 | #define wxUSE_OLE 1 |
17554 | EOF | |
17555 | ||
b64f0a5f | 17556 | |
2b9bdf71 VZ |
17557 | fi |
17558 | ||
17559 | cat >> confdefs.h <<\EOF | |
17560 | #define wxUSE_DATAOBJ 1 | |
17561 | EOF | |
17562 | ||
17563 | else | |
17564 | echo "configure: warning: Some features disabled because OLE headers not found" 1>&2 | |
17565 | ||
17566 | wxUSE_CLIPBOARD=no | |
17567 | wxUSE_DRAG_AND_DROP=no | |
17568 | wxUSE_DATAOBJ=no | |
17569 | fi | |
17570 | ||
77e13408 | 17571 | if test "$wxUSE_METAFILE" = "yes"; then |
2b9bdf71 | 17572 | cat >> confdefs.h <<\EOF |
b64f0a5f RL |
17573 | #define wxUSE_METAFILE 1 |
17574 | EOF | |
17575 | ||
2b9bdf71 VZ |
17576 | |
17577 | cat >> confdefs.h <<\EOF | |
b64f0a5f RL |
17578 | #define wxUSE_ENH_METAFILE 1 |
17579 | EOF | |
17580 | ||
2b9bdf71 VZ |
17581 | fi |
17582 | fi | |
17583 | ||
17584 | if test "$wxUSE_IPC" = "yes"; then | |
17585 | if test "$wxUSE_SOCKETS" != "yes"; then | |
17586 | echo "configure: warning: wxWindows IPC classes require sockets" 1>&2 | |
17587 | fi | |
17588 | ||
17589 | cat >> confdefs.h <<\EOF | |
17590 | #define wxUSE_IPC 1 | |
17591 | EOF | |
17592 | ||
17593 | fi | |
17594 | ||
17595 | if test "$wxUSE_CLIPBOARD" = "yes"; then | |
17596 | cat >> confdefs.h <<\EOF | |
17597 | #define wxUSE_CLIPBOARD 1 | |
17598 | EOF | |
17599 | ||
673f4220 | 17600 | |
e33ef661 | 17601 | cat >> confdefs.h <<\EOF |
673f4220 VZ |
17602 | #define wxUSE_DATAOBJ 1 |
17603 | EOF | |
17604 | ||
2b9bdf71 VZ |
17605 | fi |
17606 | ||
17607 | if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then | |
17608 | if test "$wxUSE_GTK" = 1; then | |
17609 | if test "$WXGTK12" != 1; then | |
17610 | echo "configure: warning: Drag and drop is only supported under GTK+ 1.2" 1>&2 | |
10f2d63a VZ |
17611 | wxUSE_DRAG_AND_DROP=no |
17612 | fi | |
17613 | fi | |
17614 | ||
2b9bdf71 VZ |
17615 | if test "$wxUSE_MOTIF" = 1; then |
17616 | echo "configure: warning: Drag and drop is not yet supported under Motif" 1>&2 | |
17617 | wxUSE_DRAG_AND_DROP=no | |
17618 | fi | |
17619 | ||
17620 | if test "$wxUSE_MAC" = 1; then | |
17621 | echo "configure: warning: Drag and drop is not yet supported under Mac OS X" 1>&2 | |
17622 | wxUSE_DRAG_AND_DROP=no | |
17623 | fi | |
17624 | ||
10f2d63a | 17625 | if test "$wxUSE_DRAG_AND_DROP" = "yes"; then |
698dcdb6 | 17626 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17627 | #define wxUSE_DRAG_AND_DROP 1 |
17628 | EOF | |
17629 | ||
17630 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd" | |
17631 | fi | |
17632 | ||
17633 | fi | |
17634 | ||
17635 | if test "$wxUSE_SPLINES" = "yes" ; then | |
698dcdb6 | 17636 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17637 | #define wxUSE_SPLINES 1 |
17638 | EOF | |
17639 | ||
17640 | fi | |
17641 | ||
698dcdb6 | 17642 | |
1e6feb95 VZ |
17643 | USES_CONTROLS=0 |
17644 | if test "$wxUSE_CONTROLS" = "yes"; then | |
17645 | USES_CONTROLS=1 | |
17646 | fi | |
17647 | ||
10f2d63a | 17648 | if test "$wxUSE_ACCEL" = "yes"; then |
698dcdb6 | 17649 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17650 | #define wxUSE_ACCEL 1 |
17651 | EOF | |
17652 | ||
1e6feb95 VZ |
17653 | USES_CONTROLS=1 |
17654 | fi | |
17655 | ||
17656 | if test "$wxUSE_BUTTON" = "yes"; then | |
17657 | cat >> confdefs.h <<\EOF | |
17658 | #define wxUSE_BUTTON 1 | |
17659 | EOF | |
17660 | ||
17661 | USES_CONTROLS=1 | |
17662 | fi | |
17663 | ||
17664 | if test "$wxUSE_BMPBUTTON" = "yes"; then | |
17665 | cat >> confdefs.h <<\EOF | |
17666 | #define wxUSE_BMPBUTTON 1 | |
17667 | EOF | |
17668 | ||
17669 | USES_CONTROLS=1 | |
17670 | fi | |
17671 | ||
17672 | if test "$wxUSE_CALCTRL" = "yes"; then | |
17673 | cat >> confdefs.h <<\EOF | |
17674 | #define wxUSE_CALENDARCTRL 1 | |
17675 | EOF | |
17676 | ||
17677 | USES_CONTROLS=1 | |
17678 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar" | |
10f2d63a VZ |
17679 | fi |
17680 | ||
17681 | if test "$wxUSE_CARET" = "yes"; then | |
698dcdb6 | 17682 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17683 | #define wxUSE_CARET 1 |
17684 | EOF | |
17685 | ||
1e6feb95 | 17686 | USES_CONTROLS=1 |
10f2d63a VZ |
17687 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret" |
17688 | fi | |
17689 | ||
17690 | if test "$wxUSE_COMBOBOX" = "yes"; then | |
698dcdb6 | 17691 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17692 | #define wxUSE_COMBOBOX 1 |
17693 | EOF | |
17694 | ||
1e6feb95 | 17695 | USES_CONTROLS=1 |
10f2d63a VZ |
17696 | fi |
17697 | ||
17698 | if test "$wxUSE_CHOICE" = "yes"; then | |
698dcdb6 | 17699 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17700 | #define wxUSE_CHOICE 1 |
17701 | EOF | |
17702 | ||
1e6feb95 | 17703 | USES_CONTROLS=1 |
10f2d63a VZ |
17704 | fi |
17705 | ||
17706 | if test "$wxUSE_CHECKBOX" = "yes"; then | |
698dcdb6 | 17707 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17708 | #define wxUSE_CHECKBOX 1 |
17709 | EOF | |
17710 | ||
1e6feb95 | 17711 | USES_CONTROLS=1 |
10f2d63a VZ |
17712 | fi |
17713 | ||
17714 | if test "$wxUSE_CHECKLST" = "yes"; then | |
698dcdb6 | 17715 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17716 | #define wxUSE_CHECKLISTBOX 1 |
17717 | EOF | |
17718 | ||
1e6feb95 | 17719 | USES_CONTROLS=1 |
10f2d63a VZ |
17720 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst" |
17721 | fi | |
17722 | ||
17723 | if test "$wxUSE_GAUGE" = "yes"; then | |
698dcdb6 | 17724 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17725 | #define wxUSE_GAUGE 1 |
17726 | EOF | |
17727 | ||
1e6feb95 | 17728 | USES_CONTROLS=1 |
10f2d63a VZ |
17729 | fi |
17730 | ||
d6a55c4b VZ |
17731 | if test "$wxUSE_NEW_GRID" = "yes"; then |
17732 | wxUSE_GRID="yes" | |
698dcdb6 | 17733 | cat >> confdefs.h <<\EOF |
d6a55c4b | 17734 | #define wxUSE_NEW_GRID 1 |
10f2d63a VZ |
17735 | EOF |
17736 | ||
1e6feb95 | 17737 | USES_CONTROLS=1 |
d6a55c4b | 17738 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS newgrid" |
10f2d63a VZ |
17739 | fi |
17740 | ||
d6a55c4b | 17741 | if test "$wxUSE_GRID" = "yes"; then |
698dcdb6 | 17742 | cat >> confdefs.h <<\EOF |
d6a55c4b | 17743 | #define wxUSE_GRID 1 |
10f2d63a VZ |
17744 | EOF |
17745 | ||
1e6feb95 | 17746 | USES_CONTROLS=1 |
d6a55c4b | 17747 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid" |
10f2d63a VZ |
17748 | fi |
17749 | ||
17750 | if test "$wxUSE_IMAGLIST" = "yes"; then | |
698dcdb6 | 17751 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17752 | #define wxUSE_IMAGLIST 1 |
17753 | EOF | |
17754 | ||
17755 | fi | |
17756 | ||
17757 | if test "$wxUSE_LISTBOX" = "yes"; then | |
698dcdb6 | 17758 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17759 | #define wxUSE_LISTBOX 1 |
17760 | EOF | |
17761 | ||
1e6feb95 | 17762 | USES_CONTROLS=1 |
10f2d63a VZ |
17763 | fi |
17764 | ||
17765 | if test "$wxUSE_LISTCTRL" = "yes"; then | |
17766 | if test "$wxUSE_IMAGLIST" = "yes"; then | |
698dcdb6 | 17767 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17768 | #define wxUSE_LISTCTRL 1 |
17769 | EOF | |
17770 | ||
1e6feb95 | 17771 | USES_CONTROLS=1 |
10f2d63a VZ |
17772 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl" |
17773 | else | |
698dcdb6 | 17774 | echo "configure: warning: wxListCtrl requires wxImageList and won't be compiled without it" 1>&2 |
10f2d63a VZ |
17775 | fi |
17776 | fi | |
17777 | ||
17778 | if test "$wxUSE_NOTEBOOK" = "yes"; then | |
698dcdb6 | 17779 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17780 | #define wxUSE_NOTEBOOK 1 |
17781 | EOF | |
17782 | ||
1e6feb95 | 17783 | USES_CONTROLS=1 |
10f2d63a VZ |
17784 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook" |
17785 | fi | |
17786 | ||
24176f2c GD |
17787 | if test "$wxUSE_PROPSHEET" = "yes"; then |
17788 | cat >> confdefs.h <<\EOF | |
17789 | #define wxUSE_PROPSHEET 1 | |
17790 | EOF | |
17791 | ||
17792 | USES_CONTROLS=1 | |
17793 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS proplist" | |
17794 | fi | |
17795 | ||
10f2d63a | 17796 | if test "$wxUSE_RADIOBOX" = "yes"; then |
698dcdb6 | 17797 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17798 | #define wxUSE_RADIOBOX 1 |
17799 | EOF | |
17800 | ||
1e6feb95 | 17801 | USES_CONTROLS=1 |
10f2d63a VZ |
17802 | fi |
17803 | ||
17804 | if test "$wxUSE_RADIOBTN" = "yes"; then | |
698dcdb6 | 17805 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17806 | #define wxUSE_RADIOBTN 1 |
17807 | EOF | |
17808 | ||
1e6feb95 | 17809 | USES_CONTROLS=1 |
10f2d63a VZ |
17810 | fi |
17811 | ||
17812 | if test "$wxUSE_SASH" = "yes"; then | |
698dcdb6 | 17813 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17814 | #define wxUSE_SASH 1 |
17815 | EOF | |
17816 | ||
17817 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest" | |
17818 | fi | |
17819 | ||
17820 | if test "$wxUSE_SCROLLBAR" = "yes"; then | |
698dcdb6 | 17821 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17822 | #define wxUSE_SCROLLBAR 1 |
17823 | EOF | |
17824 | ||
1e6feb95 | 17825 | USES_CONTROLS=1 |
741a9306 | 17826 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub" |
10f2d63a VZ |
17827 | fi |
17828 | ||
17829 | if test "$wxUSE_SLIDER" = "yes"; then | |
698dcdb6 | 17830 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17831 | #define wxUSE_SLIDER 1 |
17832 | EOF | |
17833 | ||
1e6feb95 | 17834 | USES_CONTROLS=1 |
10f2d63a VZ |
17835 | fi |
17836 | ||
17837 | if test "$wxUSE_SPINBTN" = "yes"; then | |
698dcdb6 | 17838 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17839 | #define wxUSE_SPINBTN 1 |
17840 | EOF | |
17841 | ||
1e6feb95 | 17842 | USES_CONTROLS=1 |
10f2d63a VZ |
17843 | fi |
17844 | ||
56cfaa52 | 17845 | if test "$wxUSE_SPINCTRL" = "yes"; then |
698dcdb6 | 17846 | cat >> confdefs.h <<\EOF |
56cfaa52 RR |
17847 | #define wxUSE_SPINCTRL 1 |
17848 | EOF | |
17849 | ||
1e6feb95 | 17850 | USES_CONTROLS=1 |
56cfaa52 RR |
17851 | fi |
17852 | ||
10f2d63a | 17853 | if test "$wxUSE_SPLITTER" = "yes"; then |
698dcdb6 | 17854 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17855 | #define wxUSE_SPLITTER 1 |
17856 | EOF | |
17857 | ||
17858 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter" | |
17859 | fi | |
17860 | ||
17861 | if test "$wxUSE_STATBMP" = "yes"; then | |
698dcdb6 | 17862 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17863 | #define wxUSE_STATBMP 1 |
17864 | EOF | |
17865 | ||
1e6feb95 | 17866 | USES_CONTROLS=1 |
10f2d63a VZ |
17867 | fi |
17868 | ||
17869 | if test "$wxUSE_STATBOX" = "yes"; then | |
698dcdb6 | 17870 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17871 | #define wxUSE_STATBOX 1 |
17872 | EOF | |
17873 | ||
1e6feb95 VZ |
17874 | USES_CONTROLS=1 |
17875 | fi | |
17876 | ||
17877 | if test "$wxUSE_STATTEXT" = "yes"; then | |
17878 | cat >> confdefs.h <<\EOF | |
17879 | #define wxUSE_STATTEXT 1 | |
17880 | EOF | |
17881 | ||
17882 | USES_CONTROLS=1 | |
10f2d63a VZ |
17883 | fi |
17884 | ||
17885 | if test "$wxUSE_STATLINE" = "yes"; then | |
17886 | if test "$wxUSE_WINE" = 1 ; then | |
698dcdb6 | 17887 | echo "configure: warning: wxStaticLine is not supported under WINE" 1>&2 |
10f2d63a | 17888 | else |
698dcdb6 | 17889 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17890 | #define wxUSE_STATLINE 1 |
17891 | EOF | |
17892 | ||
1e6feb95 | 17893 | USES_CONTROLS=1 |
10f2d63a VZ |
17894 | fi |
17895 | fi | |
17896 | ||
17897 | if test "$wxUSE_STATUSBAR" = "yes"; then | |
698dcdb6 | 17898 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17899 | #define wxUSE_STATUSBAR 1 |
17900 | EOF | |
17901 | ||
1e6feb95 | 17902 | USES_CONTROLS=1 |
698dcdb6 | 17903 | |
2286341c | 17904 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar" |
10f2d63a VZ |
17905 | fi |
17906 | ||
17907 | if test "$wxUSE_TABDIALOG" = "yes"; then | |
698dcdb6 | 17908 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17909 | #define wxUSE_TAB_DIALOG 1 |
17910 | EOF | |
17911 | ||
17912 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS tab" | |
17913 | fi | |
17914 | ||
1e6feb95 VZ |
17915 | if test "$wxUSE_TEXTCTRL" = "yes"; then |
17916 | cat >> confdefs.h <<\EOF | |
17917 | #define wxUSE_TEXTCTRL 1 | |
17918 | EOF | |
17919 | ||
17920 | USES_CONTROLS=1 | |
17921 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text" | |
17922 | fi | |
17923 | ||
1db8dc4a | 17924 | if test "$wxUSE_TOGGLEBTN" = "yes"; then |
fc26f4ab RL |
17925 | if test "$wxUSE_MAC" = 1 -o "$wxUSE_UNIVERSAL" = "yes"; then |
17926 | echo "configure: warning: Toggle button not yet supported under Mac OS X or wxUNIVERSAL... disabled" 1>&2 | |
a45d7ab7 GD |
17927 | wxUSE_TOGGLEBTN=no |
17928 | fi | |
17929 | ||
17930 | if test "$wxUSE_TOGGLEBTN" = "yes"; then | |
17931 | cat >> confdefs.h <<\EOF | |
1db8dc4a VZ |
17932 | #define wxUSE_TOGGLEBTN 1 |
17933 | EOF | |
17934 | ||
1e6feb95 | 17935 | USES_CONTROLS=1 |
a45d7ab7 | 17936 | fi |
1db8dc4a VZ |
17937 | fi |
17938 | ||
360d6699 | 17939 | if test "$wxUSE_TOOLBAR_SIMPLE" = "yes"; then |
698dcdb6 | 17940 | cat >> confdefs.h <<\EOF |
360d6699 VZ |
17941 | #define wxUSE_TOOLBAR_SIMPLE 1 |
17942 | EOF | |
17943 | ||
17944 | wxUSE_TOOLBAR="yes" | |
1e6feb95 | 17945 | USES_CONTROLS=1 |
360d6699 VZ |
17946 | fi |
17947 | ||
10f2d63a | 17948 | if test "$wxUSE_TOOLBAR" = "yes"; then |
698dcdb6 | 17949 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17950 | #define wxUSE_TOOLBAR 1 |
17951 | EOF | |
17952 | ||
1e6feb95 | 17953 | USES_CONTROLS=1 |
698dcdb6 | 17954 | |
360d6699 VZ |
17955 | if test "$wxUSE_TOOLBAR_SIMPLE" != "yes"; then |
17956 | wxUSE_TOOLBAR_NATIVE="yes" | |
17957 | fi | |
17958 | ||
1e6feb95 VZ |
17959 | if test "$wxUSE_TOOLBAR_NATIVE" = "yes"; then |
17960 | cat >> confdefs.h <<\EOF | |
360d6699 VZ |
17961 | #define wxUSE_TOOLBAR_NATIVE 1 |
17962 | EOF | |
17963 | ||
1e6feb95 VZ |
17964 | USES_CONTROLS=1 |
17965 | fi | |
17966 | ||
17967 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar" | |
360d6699 VZ |
17968 | fi |
17969 | ||
10f2d63a VZ |
17970 | if test "$wxUSE_TOOLTIPS" = "yes"; then |
17971 | if test "$wxUSE_MOTIF" = 1; then | |
698dcdb6 | 17972 | echo "configure: warning: wxTooltip not supported yet under Motif" 1>&2 |
10f2d63a VZ |
17973 | else |
17974 | if test "$wxUSE_WINE" = 1; then | |
698dcdb6 | 17975 | echo "configure: warning: wxTooltip not supported under WINE" 1>&2 |
10f2d63a | 17976 | else |
698dcdb6 | 17977 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17978 | #define wxUSE_TOOLTIPS 1 |
17979 | EOF | |
17980 | ||
17981 | fi | |
17982 | fi | |
17983 | fi | |
17984 | ||
17985 | if test "$wxUSE_TREECTRL" = "yes"; then | |
17986 | if test "$wxUSE_IMAGLIST" = "yes"; then | |
698dcdb6 | 17987 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17988 | #define wxUSE_TREECTRL 1 |
17989 | EOF | |
17990 | ||
1e6feb95 | 17991 | USES_CONTROLS=1 |
10f2d63a VZ |
17992 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl" |
17993 | else | |
698dcdb6 | 17994 | echo "configure: warning: wxTreeCtrl requires wxImageList and won't be compiled without it" 1>&2 |
10f2d63a VZ |
17995 | fi |
17996 | fi | |
17997 | ||
9f41d601 | 17998 | if test "$wxUSE_POPUPWIN" = "yes"; then |
6abe4b65 GD |
17999 | if test "$wxUSE_MAC" = 1; then |
18000 | echo "configure: warning: Popup window is not yet supported under Mac OS" 1>&2 | |
18001 | else | |
18002 | cat >> confdefs.h <<\EOF | |
9f41d601 RR |
18003 | #define wxUSE_POPUPWIN 1 |
18004 | EOF | |
18005 | ||
6abe4b65 GD |
18006 | USES_CONTROLS=1 |
18007 | fi | |
9f41d601 RR |
18008 | fi |
18009 | ||
1e6feb95 VZ |
18010 | if test "$USES_CONTROLS" = 1; then |
18011 | cat >> confdefs.h <<\EOF | |
18012 | #define wxUSE_CONTROLS 1 | |
10f2d63a VZ |
18013 | EOF |
18014 | ||
10f2d63a VZ |
18015 | fi |
18016 | ||
1e6feb95 | 18017 | |
24176f2c GD |
18018 | if test "$wxUSE_TREELAYOUT" = "yes"; then |
18019 | cat >> confdefs.h <<\EOF | |
18020 | #define wxUSE_TREELAYOUT 1 | |
18021 | EOF | |
18022 | ||
18023 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treelay" | |
18024 | fi | |
1e6feb95 | 18025 | |
24fd6d87 VZ |
18026 | if test "$wxUSE_DRAGIMAGE" = "yes"; then |
18027 | cat >> confdefs.h <<\EOF | |
18028 | #define wxUSE_DRAGIMAGE 1 | |
18029 | EOF | |
18030 | ||
18031 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag" | |
18032 | fi | |
18033 | ||
1e6feb95 | 18034 | if test "$wxUSE_MENUS" = "yes"; then |
698dcdb6 | 18035 | cat >> confdefs.h <<\EOF |
1e6feb95 | 18036 | #define wxUSE_MENUS 1 |
10f2d63a VZ |
18037 | EOF |
18038 | ||
1e6feb95 | 18039 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu" |
10f2d63a VZ |
18040 | fi |
18041 | ||
1e6feb95 VZ |
18042 | if test "$wxUSE_METAFILE" = "yes"; then |
18043 | cat >> confdefs.h <<\EOF | |
18044 | #define wxUSE_METAFILE 1 | |
10f2d63a VZ |
18045 | EOF |
18046 | ||
10f2d63a VZ |
18047 | fi |
18048 | ||
1e6feb95 VZ |
18049 | if test "$wxUSE_MIMETYPE" = "yes"; then |
18050 | cat >> confdefs.h <<\EOF | |
18051 | #define wxUSE_MIMETYPE 1 | |
10f2d63a VZ |
18052 | EOF |
18053 | ||
10f2d63a VZ |
18054 | fi |
18055 | ||
3e44f09d VZ |
18056 | if test "$wxUSE_SYSTEM_OPTIONS" = "yes"; then |
18057 | cat >> confdefs.h <<\EOF | |
18058 | #define wxUSE_SYSTEM_OPTIONS 1 | |
18059 | EOF | |
18060 | ||
18061 | fi | |
18062 | ||
10f2d63a | 18063 | if test "$wxUSE_MINIFRAME" = "yes"; then |
698dcdb6 | 18064 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
18065 | #define wxUSE_MINIFRAME 1 |
18066 | EOF | |
18067 | ||
18068 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram" | |
18069 | fi | |
18070 | ||
18071 | if test "$wxUSE_HTML" = "yes"; then | |
698dcdb6 | 18072 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
18073 | #define wxUSE_HTML 1 |
18074 | EOF | |
18075 | ||
18076 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html" | |
10f2d63a VZ |
18077 | fi |
18078 | ||
18079 | if test "$wxUSE_VALIDATORS" = "yes"; then | |
698dcdb6 | 18080 | cat >> confdefs.h <<\EOF |
1e487827 VS |
18081 | #define wxUSE_VALIDATORS 1 |
18082 | EOF | |
703e0a69 | 18083 | |
698dcdb6 VZ |
18084 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate" |
18085 | fi | |
18086 | ||
edae8572 VZ |
18087 | if test "$wxUSE_PALETTE" = "yes" ; then |
18088 | cat >> confdefs.h <<\EOF | |
18089 | #define wxUSE_PALETTE 1 | |
18090 | EOF | |
18091 | ||
18092 | fi | |
18093 | ||
698dcdb6 VZ |
18094 | if test "$wxUSE_IMAGE" = "yes" ; then |
18095 | cat >> confdefs.h <<\EOF | |
18096 | #define wxUSE_IMAGE 1 | |
18097 | EOF | |
18098 | ||
18099 | fi | |
18100 | ||
18101 | if test "$wxUSE_GIF" = "yes" ; then | |
18102 | cat >> confdefs.h <<\EOF | |
18103 | #define wxUSE_GIF 1 | |
18104 | EOF | |
18105 | ||
18106 | fi | |
18107 | ||
18108 | if test "$wxUSE_PCX" = "yes" ; then | |
18109 | cat >> confdefs.h <<\EOF | |
18110 | #define wxUSE_PCX 1 | |
18111 | EOF | |
18112 | ||
18113 | fi | |
18114 | ||
18115 | if test "$wxUSE_PNM" = "yes" ; then | |
18116 | cat >> confdefs.h <<\EOF | |
18117 | #define wxUSE_PNM 1 | |
18118 | EOF | |
18119 | ||
18120 | fi | |
18121 | ||
18122 | if test "$wxUSE_XPM" = "yes" ; then | |
18123 | cat >> confdefs.h <<\EOF | |
18124 | #define wxUSE_XPM 1 | |
18125 | EOF | |
18126 | ||
18127 | fi | |
18128 | ||
18129 | ||
1e6feb95 VZ |
18130 | if test "$wxUSE_CHOICEDLG" = "yes"; then |
18131 | cat >> confdefs.h <<\EOF | |
18132 | #define wxUSE_CHOICEDLG 1 | |
18133 | EOF | |
18134 | ||
18135 | fi | |
18136 | ||
18137 | if test "$wxUSE_COLOURDLG" = "yes"; then | |
18138 | cat >> confdefs.h <<\EOF | |
18139 | #define wxUSE_COLOURDLG 1 | |
18140 | EOF | |
18141 | ||
18142 | fi | |
18143 | ||
18144 | if test "$wxUSE_FILEDLG" = "yes"; then | |
18145 | cat >> confdefs.h <<\EOF | |
18146 | #define wxUSE_FILEDLG 1 | |
18147 | EOF | |
18148 | ||
18149 | fi | |
18150 | ||
8db37e06 VZ |
18151 | if test "$wxUSE_FINDREPLDLG" = "yes"; then |
18152 | cat >> confdefs.h <<\EOF | |
18153 | #define wxUSE_FINDREPLDLG 1 | |
18154 | EOF | |
18155 | ||
18156 | fi | |
18157 | ||
1e6feb95 VZ |
18158 | if test "$wxUSE_FONTDLG" = "yes"; then |
18159 | cat >> confdefs.h <<\EOF | |
18160 | #define wxUSE_FONTDLG 1 | |
18161 | EOF | |
18162 | ||
18163 | fi | |
18164 | ||
18165 | if test "$wxUSE_DIRDLG" = "yes"; then | |
18166 | if test "$wxUSE_CONSTRAINTS" != "yes"; then | |
18167 | echo "configure: warning: wxDirDialog requires constraints so it won't be compiled without them" 1>&2 | |
18168 | else | |
18169 | if test "$wxUSE_TREECTRL" != "yes"; then | |
18170 | echo "configure: warning: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" 1>&2 | |
18171 | else | |
18172 | cat >> confdefs.h <<\EOF | |
18173 | #define wxUSE_DIRDLG 1 | |
18174 | EOF | |
18175 | ||
18176 | fi | |
18177 | fi | |
18178 | fi | |
18179 | ||
18180 | if test "$wxUSE_MSGDLG" = "yes"; then | |
18181 | cat >> confdefs.h <<\EOF | |
18182 | #define wxUSE_MSGDLG 1 | |
18183 | EOF | |
18184 | ||
18185 | fi | |
18186 | ||
18187 | if test "$wxUSE_NUMBERDLG" = "yes"; then | |
18188 | cat >> confdefs.h <<\EOF | |
18189 | #define wxUSE_NUMBERDLG 1 | |
18190 | EOF | |
18191 | ||
18192 | fi | |
18193 | ||
18194 | if test "$wxUSE_PROGRESSDLG" = "yes"; then | |
18195 | if test "$wxUSE_CONSTRAINTS" != "yes"; then | |
18196 | echo "configure: warning: wxProgressDialog requires constraints so it won't be compiled without them" 1>&2 | |
18197 | else | |
18198 | cat >> confdefs.h <<\EOF | |
18199 | #define wxUSE_PROGRESSDLG 1 | |
18200 | EOF | |
18201 | ||
18202 | fi | |
18203 | fi | |
18204 | ||
cbca9943 VZ |
18205 | if test "$wxUSE_SPLASH" = "yes"; then |
18206 | cat >> confdefs.h <<\EOF | |
18207 | #define wxUSE_SPLASH 1 | |
18208 | EOF | |
18209 | ||
18210 | fi | |
18211 | ||
1e6feb95 VZ |
18212 | if test "$wxUSE_STARTUP_TIPS" = "yes"; then |
18213 | if test "$wxUSE_CONSTRAINTS" != "yes"; then | |
18214 | echo "configure: warning: Startup tips requires constraints and won't be compiled without them" 1>&2 | |
18215 | else | |
18216 | cat >> confdefs.h <<\EOF | |
18217 | #define wxUSE_STARTUP_TIPS 1 | |
18218 | EOF | |
18219 | ||
18220 | fi | |
18221 | fi | |
18222 | ||
18223 | if test "$wxUSE_TEXTDLG" = "yes"; then | |
18224 | cat >> confdefs.h <<\EOF | |
18225 | #define wxUSE_TEXTDLG 1 | |
18226 | EOF | |
18227 | ||
18228 | fi | |
18229 | ||
b1f5d087 VZ |
18230 | if test "$wxUSE_WIZARDDLG" = "yes"; then |
18231 | cat >> confdefs.h <<\EOF | |
18232 | #define wxUSE_WIZARDDLG 1 | |
18233 | EOF | |
18234 | ||
18235 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wizard" | |
18236 | fi | |
18237 | ||
1e6feb95 | 18238 | |
698dcdb6 VZ |
18239 | if test "$cross_compiling" = "yes"; then |
18240 | OSINFO="\"$host\"" | |
18241 | else | |
18242 | OSINFO=`uname -s -r -m` | |
18243 | OSINFO="\"$OSINFO\"" | |
18244 | fi | |
18245 | ||
18246 | cat >> confdefs.h <<EOF | |
18247 | #define WXWIN_OS_DESCRIPTION $OSINFO | |
18248 | EOF | |
18249 | ||
18250 | ||
18251 | ||
06dda230 VZ |
18252 | if test "x$prefix" != "xNONE"; then |
18253 | wxPREFIX=$prefix | |
18254 | else | |
18255 | wxPREFIX=$ac_default_prefix | |
18256 | fi | |
18257 | ||
7e67ed0d | 18258 | cat >> confdefs.h <<EOF |
06dda230 | 18259 | #define wxINSTALL_PREFIX "$wxPREFIX" |
7e67ed0d VZ |
18260 | EOF |
18261 | ||
18262 | ||
18263 | ||
698dcdb6 | 18264 | GUILIBS="$GUI_TK_LIBRARY $TOOLKIT_LINK" |
698dcdb6 | 18265 | |
77e13408 | 18266 | EXTRA_LIBS="$EXTRA_LIBS $LIBS $POSIX4_LINK $INET_LINK $WCHAR_LINK $THREADS_LINK $DMALLOC_LINK $DL_LINK $ZLIB_LINK -lm" |
3a922bb4 | 18267 | |
f11bdd03 | 18268 | if test "$wxUSE_MAC" = 1 ; then |
698dcdb6 VZ |
18269 | EXTRA_LIBS="$EXTRA_LIBS -framework Carbon -framework System" |
18270 | fi | |
3a922bb4 | 18271 | |
698dcdb6 VZ |
18272 | if test "$wxUSE_GUI" = "yes"; then |
18273 | EXTRA_LIBS="$GUILIBS $PNG_LINK $JPEG_LINK $TIFF_LINK $FREETYPE_LINK $EXTRA_LIBS" | |
3a922bb4 RL |
18274 | |
18275 | ||
18276 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS controls dialogs \ | |
18277 | drawing dynamic erase event exec font image \ | |
18278 | minimal richedit rotate widgets" | |
18279 | ||
3a922bb4 RL |
18280 | CPPFLAGS="$CPPFLAGS \$(EXTRADEFS) \$(APPEXTRADEFS)" |
18281 | else | |
18282 | SAMPLES_SUBDIRS="console" | |
698dcdb6 VZ |
18283 | fi |
18284 | ||
18285 | LD_LIBS="\${top_builddir}/lib/${WX_LIBRARY_NAME_STATIC} $EXTRA_LIBS" | |
18286 | ||
d714471b | 18287 | INCLUDES="-I\${top_builddir}/lib/wx/include/${TOOLCHAIN_NAME} -I\${top_srcdir}/include \ |
3e44f09d VZ |
18288 | $REGEX_INCLUDE $ZLIB_INCLUDE $PNG_INCLUDE $JPEG_INCLUDE $TIFF_INCLUDE \ |
18289 | $FREETYPE_INCLUDE $TOOLKIT_INCLUDE" | |
698dcdb6 VZ |
18290 | |
18291 | if test "$wxUSE_GTK" = 1; then | |
18292 | WXCONFIG_INCLUDE="" | |
18293 | else | |
18294 | WXCONFIG_INCLUDE="$TOOLKIT_INCLUDE" | |
18295 | fi | |
18296 | ||
18297 | if test "$GXX" = yes ; then | |
18298 | CXXWARNINGS="-Wall" | |
18299 | fi | |
18300 | EXTRA_CFLAGS="$WXDEBUG $WXODBCFLAG $PROFILE $OPTIMISE $INCLUDES" | |
18301 | ||
18302 | CFLAGS=`echo $CFLAGS $EXTRA_CFLAGS $CXXWARNINGS | sed 's/ \\+/ /g'` | |
18303 | CXXFLAGS=`echo $CXXFLAGS $EXTRA_CFLAGS $CXXWARNINGS | sed 's/ \+/ /g'` | |
18304 | ||
18305 | LDFLAGS="$LDFLAGS $PROFILE" | |
18306 | ||
698dcdb6 VZ |
18307 | SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`" |
18308 | ||
18309 | ||
18310 | ||
18311 | ||
18312 | ||
18313 | ||
18314 | ||
18315 | ||
18316 | ||
18317 | ||
18318 | ||
18319 | ||
18320 | ||
18321 | ||
18322 | ||
18323 | ||
18324 | ||
18325 | ||
18326 | ||
18327 | ||
18328 | ||
18329 | ||
18330 | ||
18331 | ||
18332 | ||
18333 | ||
18334 | ||
18335 | ||
18336 | ||
18337 | ||
18338 | ||
18339 | ||
18340 | ||
18341 | ||
18342 | ||
18343 | ||
18344 | ||
18345 | ||
18346 | ||
18347 | ||
18348 | ||
18349 | ||
18350 | ||
18351 | ||
18352 | ||
18353 | ||
18354 | ||
18355 | ||
18356 | ||
18357 | ||
18358 | ||
18359 | ||
18360 | ||
18361 | ||
18362 | ||
18363 | ||
18364 | ||
18365 | ||
18366 | ||
18367 | ||
18368 | ||
18369 | ||
18370 | ||
18371 | ||
18372 | ||
18373 | ||
18374 | ||
32832908 | 18375 | |
2f51a9ec GD |
18376 | |
18377 | ||
18378 | ||
18379 | ||
f6bcfd97 | 18380 | |
dad6c0ea | 18381 | |
caa2c79b | 18382 | |
3711412e | 18383 | |
1e6feb95 VZ |
18384 | |
18385 | ||
0f3f1cbc | 18386 | |
18dbb1f6 | 18387 | |
2baaf735 | 18388 | |
77e13408 RL |
18389 | |
18390 | ||
e23081de | 18391 | |
10f2d63a VZ |
18392 | |
18393 | ||
698dcdb6 | 18394 | echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6 |
d6853540 | 18395 | echo "configure:18396: checking whether ${MAKE-make} sets \${MAKE}" >&5 |
698dcdb6 VZ |
18396 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'` |
18397 | if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then | |
18398 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 18399 | else |
698dcdb6 | 18400 | cat > conftestmake <<\EOF |
10f2d63a VZ |
18401 | all: |
18402 | @echo 'ac_maketemp="${MAKE}"' | |
18403 | EOF | |
18404 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
698dcdb6 | 18405 | eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=` |
10f2d63a VZ |
18406 | if test -n "$ac_maketemp"; then |
18407 | eval ac_cv_prog_make_${ac_make}_set=yes | |
18408 | else | |
18409 | eval ac_cv_prog_make_${ac_make}_set=no | |
18410 | fi | |
698dcdb6 | 18411 | rm -f conftestmake |
10f2d63a VZ |
18412 | fi |
18413 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then | |
698dcdb6 | 18414 | echo "$ac_t""yes" 1>&6 |
10f2d63a VZ |
18415 | SET_MAKE= |
18416 | else | |
698dcdb6 | 18417 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
18418 | SET_MAKE="MAKE=${MAKE-make}" |
18419 | fi | |
18420 | ||
698dcdb6 | 18421 | |
3a922bb4 RL |
18422 | if test -f lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h; then |
18423 | mv -f lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h setup.h | |
00cf1208 | 18424 | fi |
665bbe97 | 18425 | |
698dcdb6 | 18426 | |
10f2d63a | 18427 | |
2224580a | 18428 | if test "$wxUSE_GUI" = "yes"; then |
ec90f5e5 | 18429 | wx_cv_path_samplesubdirs=$SAMPLES_SUBDIRS |
e8482f24 GL |
18430 | wx_cv_path_ifs=$PATH_IFS |
18431 | wx_cv_program_ext=$PROGRAM_EXT | |
18432 | wx_cv_target_library=$WX_TARGET_LIBRARY | |
7b6058cd | 18433 | wx_cv_target_library_gl=$WX_TARGET_LIBRARY_GL |
3711412e | 18434 | wx_cv_target_libtype=$WX_TARGET_LIBRARY_TYPE |
93a20a27 | 18435 | export wx_cv_path_samplesubdirs wx_cv_path_ifs wx_cv_program_ext \ |
7b6058cd | 18436 | wx_cv_target_library wx_cv_target_library_gl wx_cv_target_libtype |
698dcdb6 | 18437 | subdirs="demos samples utils contrib" |
2224580a VZ |
18438 | |
18439 | fi | |
10f2d63a | 18440 | |
698dcdb6 VZ |
18441 | trap '' 1 2 15 |
18442 | cat > confcache <<\EOF | |
10f2d63a VZ |
18443 | # This file is a shell script that caches the results of configure |
18444 | # tests run on this system so they can be shared between configure | |
698dcdb6 VZ |
18445 | # scripts and configure runs. It is not useful on other systems. |
18446 | # If it contains results you don't want to keep, you may remove or edit it. | |
10f2d63a | 18447 | # |
698dcdb6 VZ |
18448 | # By default, configure uses ./config.cache as the cache file, |
18449 | # creating it if it does not exist already. You can give configure | |
18450 | # the --cache-file=FILE option to use a different cache file; that is | |
18451 | # what configure does when it calls configure scripts in | |
18452 | # subdirectories, so they share the cache. | |
18453 | # Giving --cache-file=/dev/null disables caching, for debugging configure. | |
18454 | # config.status only pays attention to the cache file if you give it the | |
18455 | # --recheck option to rerun configure. | |
10f2d63a | 18456 | # |
698dcdb6 | 18457 | EOF |
10f2d63a VZ |
18458 | # The following way of writing the cache mishandles newlines in values, |
18459 | # but we know of no workaround that is simple, portable, and efficient. | |
18460 | # So, don't put newlines in cache variables' values. | |
18461 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
18462 | # and sets the high bit in the cache file unless we assign to the vars. | |
698dcdb6 VZ |
18463 | (set) 2>&1 | |
18464 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
18465 | *ac_space=\ *) | |
18466 | # `set' does not quote correctly, so add quotes (double-quote substitution | |
18467 | # turns \\\\ into \\, and sed turns \\ into \). | |
18468 | sed -n \ | |
18469 | -e "s/'/'\\\\''/g" \ | |
18470 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" | |
18471 | ;; | |
18472 | *) | |
18473 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
18474 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' | |
18475 | ;; | |
18476 | esac >> confcache | |
18477 | if cmp -s $cache_file confcache; then | |
18478 | : | |
18479 | else | |
10f2d63a | 18480 | if test -w $cache_file; then |
698dcdb6 VZ |
18481 | echo "updating cache $cache_file" |
18482 | cat confcache > $cache_file | |
10f2d63a VZ |
18483 | else |
18484 | echo "not updating unwritable cache $cache_file" | |
18485 | fi | |
18486 | fi | |
18487 | rm -f confcache | |
18488 | ||
698dcdb6 VZ |
18489 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 |
18490 | ||
10f2d63a VZ |
18491 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
18492 | # Let make expand exec_prefix. | |
18493 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
18494 | ||
698dcdb6 VZ |
18495 | # Any assignment to VPATH causes Sun make to only execute |
18496 | # the first set of double-colon rules, so remove it if not needed. | |
18497 | # If there is a colon in the path, we need to keep it. | |
10f2d63a | 18498 | if test "x$srcdir" = x.; then |
698dcdb6 | 18499 | ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d' |
10f2d63a VZ |
18500 | fi |
18501 | ||
698dcdb6 VZ |
18502 | trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15 |
18503 | ||
10f2d63a VZ |
18504 | DEFS=-DHAVE_CONFIG_H |
18505 | ||
698dcdb6 | 18506 | # Without the "./", some shells look in PATH for config.status. |
10f2d63a | 18507 | : ${CONFIG_STATUS=./config.status} |
698dcdb6 VZ |
18508 | |
18509 | echo creating $CONFIG_STATUS | |
18510 | rm -f $CONFIG_STATUS | |
18511 | cat > $CONFIG_STATUS <<EOF | |
18512 | #! /bin/sh | |
10f2d63a VZ |
18513 | # Generated automatically by configure. |
18514 | # Run this file to recreate the current configuration. | |
698dcdb6 VZ |
18515 | # This directory was configured as follows, |
18516 | # on host `(hostname || uname -n) 2>/dev/null | sed 1q`: | |
18517 | # | |
18518 | # $0 $ac_configure_args | |
18519 | # | |
10f2d63a | 18520 | # Compiler output produced by configure, useful for debugging |
698dcdb6 | 18521 | # configure, is in ./config.log if it exists. |
1e487827 | 18522 | |
698dcdb6 VZ |
18523 | ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]" |
18524 | for ac_option | |
10f2d63a | 18525 | do |
698dcdb6 | 18526 | case "\$ac_option" in |
10f2d63a | 18527 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
698dcdb6 VZ |
18528 | echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion" |
18529 | exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;; | |
18530 | -version | --version | --versio | --versi | --vers | --ver | --ve | --v) | |
18531 | echo "$CONFIG_STATUS generated by autoconf version 2.13" | |
18532 | exit 0 ;; | |
18533 | -help | --help | --hel | --he | --h) | |
18534 | echo "\$ac_cs_usage"; exit 0 ;; | |
18535 | *) echo "\$ac_cs_usage"; exit 1 ;; | |
10f2d63a VZ |
18536 | esac |
18537 | done | |
18538 | ||
698dcdb6 VZ |
18539 | ac_given_srcdir=$srcdir |
18540 | ac_given_INSTALL="$INSTALL" | |
703e0a69 | 18541 | |
698dcdb6 VZ |
18542 | trap 'rm -fr `echo " |
18543 | wx-config | |
18544 | src/make.env | |
18545 | src/makeprog.env | |
18546 | src/makelib.env | |
18547 | Makefile | |
18548 | setup.h:setup.h.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15 | |
1e487827 | 18549 | EOF |
698dcdb6 | 18550 | cat >> $CONFIG_STATUS <<EOF |
1e487827 | 18551 | |
698dcdb6 VZ |
18552 | # Protect against being on the right side of a sed subst in config.status. |
18553 | sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g; | |
18554 | s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF | |
18555 | $ac_vpsub | |
18556 | $extrasub | |
18557 | s%@SHELL@%$SHELL%g | |
18558 | s%@CFLAGS@%$CFLAGS%g | |
18559 | s%@CPPFLAGS@%$CPPFLAGS%g | |
18560 | s%@CXXFLAGS@%$CXXFLAGS%g | |
18561 | s%@FFLAGS@%$FFLAGS%g | |
18562 | s%@DEFS@%$DEFS%g | |
18563 | s%@LDFLAGS@%$LDFLAGS%g | |
18564 | s%@LIBS@%$LIBS%g | |
18565 | s%@exec_prefix@%$exec_prefix%g | |
18566 | s%@prefix@%$prefix%g | |
18567 | s%@program_transform_name@%$program_transform_name%g | |
18568 | s%@bindir@%$bindir%g | |
18569 | s%@sbindir@%$sbindir%g | |
18570 | s%@libexecdir@%$libexecdir%g | |
18571 | s%@datadir@%$datadir%g | |
18572 | s%@sysconfdir@%$sysconfdir%g | |
18573 | s%@sharedstatedir@%$sharedstatedir%g | |
18574 | s%@localstatedir@%$localstatedir%g | |
18575 | s%@libdir@%$libdir%g | |
18576 | s%@includedir@%$includedir%g | |
18577 | s%@oldincludedir@%$oldincludedir%g | |
18578 | s%@infodir@%$infodir%g | |
18579 | s%@mandir@%$mandir%g | |
18580 | s%@host@%$host%g | |
18581 | s%@host_alias@%$host_alias%g | |
18582 | s%@host_cpu@%$host_cpu%g | |
18583 | s%@host_vendor@%$host_vendor%g | |
18584 | s%@host_os@%$host_os%g | |
18585 | s%@target@%$target%g | |
18586 | s%@target_alias@%$target_alias%g | |
18587 | s%@target_cpu@%$target_cpu%g | |
18588 | s%@target_vendor@%$target_vendor%g | |
18589 | s%@target_os@%$target_os%g | |
18590 | s%@build@%$build%g | |
18591 | s%@build_alias@%$build_alias%g | |
18592 | s%@build_cpu@%$build_cpu%g | |
18593 | s%@build_vendor@%$build_vendor%g | |
18594 | s%@build_os@%$build_os%g | |
18595 | s%@CC@%$CC%g | |
18596 | s%@CPP@%$CPP%g | |
18597 | s%@CXX@%$CXX%g | |
698dcdb6 VZ |
18598 | s%@RANLIB@%$RANLIB%g |
18599 | s%@AR@%$AR%g | |
d6853540 | 18600 | s%@INSTALL@%$INSTALL%g |
698dcdb6 | 18601 | s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g |
698dcdb6 | 18602 | s%@INSTALL_DATA@%$INSTALL_DATA%g |
d6853540 | 18603 | s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g |
698dcdb6 VZ |
18604 | s%@STRIP@%$STRIP%g |
18605 | s%@YACC@%$YACC%g | |
18606 | s%@LEX@%$LEX%g | |
18607 | s%@LEXLIB@%$LEXLIB%g | |
18608 | s%@LN_S@%$LN_S%g | |
18609 | s%@GTK_CONFIG_2_0@%$GTK_CONFIG_2_0%g | |
698dcdb6 VZ |
18610 | s%@GTK_CFLAGS@%$GTK_CFLAGS%g |
18611 | s%@GTK_LIBS@%$GTK_LIBS%g | |
8168de4c | 18612 | s%@GTK_CONFIG@%$GTK_CONFIG%g |
698dcdb6 VZ |
18613 | s%@X_CFLAGS@%$X_CFLAGS%g |
18614 | s%@X_PRE_LIBS@%$X_PRE_LIBS%g | |
18615 | s%@X_LIBS@%$X_LIBS%g | |
18616 | s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g | |
3a922bb4 | 18617 | s%@RESCOMP@%$RESCOMP%g |
698dcdb6 | 18618 | s%@DEREZ@%$DEREZ%g |
3a922bb4 | 18619 | s%@CXXCPP@%$CXXCPP%g |
698dcdb6 VZ |
18620 | s%@LEX_STEM@%$LEX_STEM%g |
18621 | s%@PATH_IFS@%$PATH_IFS%g | |
18622 | s%@WX_MAJOR_VERSION_NUMBER@%$WX_MAJOR_VERSION_NUMBER%g | |
18623 | s%@WX_MINOR_VERSION_NUMBER@%$WX_MINOR_VERSION_NUMBER%g | |
18624 | s%@WX_RELEASE_NUMBER@%$WX_RELEASE_NUMBER%g | |
698dcdb6 VZ |
18625 | s%@WX_LIBRARY_NAME_STATIC@%$WX_LIBRARY_NAME_STATIC%g |
18626 | s%@WX_LIBRARY_NAME_SHARED@%$WX_LIBRARY_NAME_SHARED%g | |
77e13408 | 18627 | s%@WX_LIBRARY_IMPORTLIB@%$WX_LIBRARY_IMPORTLIB%g |
698dcdb6 VZ |
18628 | s%@WX_TARGET_LIBRARY@%$WX_TARGET_LIBRARY%g |
18629 | s%@WX_LIBRARY_LINK1@%$WX_LIBRARY_LINK1%g | |
18630 | s%@WX_LIBRARY_LINK2@%$WX_LIBRARY_LINK2%g | |
698dcdb6 | 18631 | s%@PROGRAM_EXT@%$PROGRAM_EXT%g |
698dcdb6 VZ |
18632 | s%@WX_LIBRARY_NAME_STATIC_GL@%$WX_LIBRARY_NAME_STATIC_GL%g |
18633 | s%@WX_LIBRARY_NAME_SHARED_GL@%$WX_LIBRARY_NAME_SHARED_GL%g | |
698dcdb6 VZ |
18634 | s%@WX_TARGET_LIBRARY_GL@%$WX_TARGET_LIBRARY_GL%g |
18635 | s%@WX_LIBRARY_LINK1_GL@%$WX_LIBRARY_LINK1_GL%g | |
18636 | s%@WX_LIBRARY_LINK2_GL@%$WX_LIBRARY_LINK2_GL%g | |
698dcdb6 VZ |
18637 | s%@WX_ALL@%$WX_ALL%g |
18638 | s%@WX_ALL_INSTALLED@%$WX_ALL_INSTALLED%g | |
18639 | s%@SHARED_LD@%$SHARED_LD%g | |
18640 | s%@PIC_FLAG@%$PIC_FLAG%g | |
698dcdb6 VZ |
18641 | s%@CODE_GEN_FLAGS@%$CODE_GEN_FLAGS%g |
18642 | s%@CODE_GEN_FLAGS_CXX@%$CODE_GEN_FLAGS_CXX%g | |
3a922bb4 RL |
18643 | s%@SONAME_FLAGS@%$SONAME_FLAGS%g |
18644 | s%@SONAME_FLAGS_GL@%$SONAME_FLAGS_GL%g | |
698dcdb6 VZ |
18645 | s%@WX_TARGET_LIBRARY_SONAME@%$WX_TARGET_LIBRARY_SONAME%g |
18646 | s%@WX_TARGET_LIBRARY_TYPE@%$WX_TARGET_LIBRARY_TYPE%g | |
18647 | s%@WXDEBUG_DEFINE@%$WXDEBUG_DEFINE%g | |
18648 | s%@USE_GUI@%$USE_GUI%g | |
18649 | s%@AFMINSTALL@%$AFMINSTALL%g | |
18650 | s%@TOOLKIT@%$TOOLKIT%g | |
698dcdb6 | 18651 | s%@TOOLKIT_DIR@%$TOOLKIT_DIR%g |
1e6feb95 | 18652 | s%@TOOLKIT_VPATH@%$TOOLKIT_VPATH%g |
3a922bb4 RL |
18653 | s%@TOOLCHAIN_NAME@%$TOOLCHAIN_NAME%g |
18654 | s%@TOOLCHAIN_DEFS@%$TOOLCHAIN_DEFS%g | |
18655 | s%@cross_compiling@%$cross_compiling%g | |
18656 | s%@WXCONFIG_LIBS@%$WXCONFIG_LIBS%g | |
18657 | s%@WXCONFIG_LIBS_GL@%$WXCONFIG_LIBS_GL%g | |
698dcdb6 VZ |
18658 | s%@WXCONFIG_INCLUDE@%$WXCONFIG_INCLUDE%g |
18659 | s%@ALL_OBJECTS@%$ALL_OBJECTS%g | |
698dcdb6 VZ |
18660 | s%@GUIDIST@%$GUIDIST%g |
18661 | s%@PORT_FILES@%$PORT_FILES%g | |
18662 | s%@DISTDIR@%$DISTDIR%g | |
18663 | s%@RPM_SPEC@%$RPM_SPEC%g | |
18664 | s%@RPM_FILES@%$RPM_FILES%g | |
698dcdb6 | 18665 | s%@SAMPLES_SUBDIRS@%$SAMPLES_SUBDIRS%g |
698dcdb6 VZ |
18666 | s%@EXTRA_LIBS@%$EXTRA_LIBS%g |
18667 | s%@OPENGL_LIBS@%$OPENGL_LIBS%g | |
18668 | s%@EXTRADEFS@%$EXTRADEFS%g | |
18669 | s%@LD_LIBS@%$LD_LIBS%g | |
18dbb1f6 | 18670 | s%@WXMSW_DLL_DEFINES@%$WXMSW_DLL_DEFINES%g |
698dcdb6 | 18671 | s%@RESFLAGS@%$RESFLAGS%g |
3a922bb4 | 18672 | s%@RESPROGRAMOBJ@%$RESPROGRAMOBJ%g |
d08b457b | 18673 | s%@WX_RESOURCES_MACOSX@%$WX_RESOURCES_MACOSX%g |
e23081de | 18674 | s%@WX_RESOURCES_MACOSX_COMPILED@%$WX_RESOURCES_MACOSX_COMPILED%g |
698dcdb6 VZ |
18675 | s%@LIBWXMACRES@%$LIBWXMACRES%g |
18676 | s%@LIBWXMACRESCOMP@%$LIBWXMACRESCOMP%g | |
2baaf735 | 18677 | s%@LIBWXMACRESWXCONFIG@%$LIBWXMACRESWXCONFIG%g |
698dcdb6 VZ |
18678 | s%@DLLTOOL@%$DLLTOOL%g |
18679 | s%@AS@%$AS%g | |
18680 | s%@NM@%$NM%g | |
18681 | s%@LD@%$LD%g | |
18682 | s%@MAKEINFO@%$MAKEINFO%g | |
18683 | s%@SET_MAKE@%$SET_MAKE%g | |
18684 | s%@subdirs@%$subdirs%g | |
1e487827 | 18685 | |
1e487827 | 18686 | CEOF |
1e487827 VS |
18687 | EOF |
18688 | ||
698dcdb6 VZ |
18689 | cat >> $CONFIG_STATUS <<\EOF |
18690 | ||
18691 | # Split the substitutions into bite-sized pieces for seds with | |
18692 | # small command number limits, like on Digital OSF/1 and HP-UX. | |
18693 | ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script. | |
18694 | ac_file=1 # Number of current file. | |
18695 | ac_beg=1 # First line for current file. | |
18696 | ac_end=$ac_max_sed_cmds # Line after last line for current file. | |
18697 | ac_more_lines=: | |
18698 | ac_sed_cmds="" | |
18699 | while $ac_more_lines; do | |
18700 | if test $ac_beg -gt 1; then | |
18701 | sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file | |
18702 | else | |
18703 | sed "${ac_end}q" conftest.subs > conftest.s$ac_file | |
18704 | fi | |
18705 | if test ! -s conftest.s$ac_file; then | |
18706 | ac_more_lines=false | |
18707 | rm -f conftest.s$ac_file | |
18708 | else | |
18709 | if test -z "$ac_sed_cmds"; then | |
18710 | ac_sed_cmds="sed -f conftest.s$ac_file" | |
10f2d63a | 18711 | else |
698dcdb6 | 18712 | ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file" |
10f2d63a | 18713 | fi |
698dcdb6 VZ |
18714 | ac_file=`expr $ac_file + 1` |
18715 | ac_beg=$ac_end | |
18716 | ac_end=`expr $ac_end + $ac_max_sed_cmds` | |
10f2d63a | 18717 | fi |
698dcdb6 VZ |
18718 | done |
18719 | if test -z "$ac_sed_cmds"; then | |
18720 | ac_sed_cmds=cat | |
18721 | fi | |
18722 | EOF | |
10f2d63a | 18723 | |
698dcdb6 VZ |
18724 | cat >> $CONFIG_STATUS <<EOF |
18725 | ||
18726 | CONFIG_FILES=\${CONFIG_FILES-"wx-config | |
18727 | src/make.env | |
18728 | src/makeprog.env | |
18729 | src/makelib.env | |
18730 | Makefile | |
18731 | "} | |
10f2d63a | 18732 | EOF |
698dcdb6 VZ |
18733 | cat >> $CONFIG_STATUS <<\EOF |
18734 | for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then | |
10f2d63a | 18735 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
698dcdb6 VZ |
18736 | case "$ac_file" in |
18737 | *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` | |
18738 | ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; | |
18739 | *) ac_file_in="${ac_file}.in" ;; | |
10f2d63a VZ |
18740 | esac |
18741 | ||
698dcdb6 | 18742 | # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories. |
1e487827 | 18743 | |
698dcdb6 VZ |
18744 | # Remove last slash and all that follows it. Not all systems have dirname. |
18745 | ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` | |
18746 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then | |
18747 | # The file is in a subdirectory. | |
18748 | test ! -d "$ac_dir" && mkdir "$ac_dir" | |
18749 | ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`" | |
10f2d63a | 18750 | # A "../" for each directory in $ac_dir_suffix. |
698dcdb6 | 18751 | ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'` |
10f2d63a VZ |
18752 | else |
18753 | ac_dir_suffix= ac_dots= | |
18754 | fi | |
18755 | ||
698dcdb6 VZ |
18756 | case "$ac_given_srcdir" in |
18757 | .) srcdir=. | |
18758 | if test -z "$ac_dots"; then top_srcdir=. | |
18759 | else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;; | |
18760 | /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;; | |
10f2d63a | 18761 | *) # Relative path. |
698dcdb6 VZ |
18762 | srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix" |
18763 | top_srcdir="$ac_dots$ac_given_srcdir" ;; | |
10f2d63a VZ |
18764 | esac |
18765 | ||
698dcdb6 VZ |
18766 | case "$ac_given_INSTALL" in |
18767 | [/$]*) INSTALL="$ac_given_INSTALL" ;; | |
18768 | *) INSTALL="$ac_dots$ac_given_INSTALL" ;; | |
10f2d63a VZ |
18769 | esac |
18770 | ||
698dcdb6 VZ |
18771 | echo creating "$ac_file" |
18772 | rm -f "$ac_file" | |
18773 | configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure." | |
18774 | case "$ac_file" in | |
18775 | *Makefile*) ac_comsub="1i\\ | |
18776 | # $configure_input" ;; | |
18777 | *) ac_comsub= ;; | |
18778 | esac | |
10f2d63a | 18779 | |
698dcdb6 VZ |
18780 | ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` |
18781 | sed -e "$ac_comsub | |
18782 | s%@configure_input@%$configure_input%g | |
18783 | s%@srcdir@%$srcdir%g | |
18784 | s%@top_srcdir@%$top_srcdir%g | |
18785 | s%@INSTALL@%$INSTALL%g | |
18786 | " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file | |
18787 | fi; done | |
18788 | rm -f conftest.s* | |
10f2d63a VZ |
18789 | |
18790 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where | |
18791 | # NAME is the cpp macro being defined and VALUE is the value it is being given. | |
18792 | # | |
18793 | # ac_d sets the value in "#define NAME VALUE" lines. | |
698dcdb6 VZ |
18794 | ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)' |
18795 | ac_dB='\([ ][ ]*\)[^ ]*%\1#\2' | |
18796 | ac_dC='\3' | |
18797 | ac_dD='%g' | |
18798 | # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE". | |
18799 | ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' | |
18800 | ac_uB='\([ ]\)%\1#\2define\3' | |
10f2d63a | 18801 | ac_uC=' ' |
698dcdb6 VZ |
18802 | ac_uD='\4%g' |
18803 | # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE". | |
18804 | ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' | |
18805 | ac_eB='$%\1#\2define\3' | |
18806 | ac_eC=' ' | |
18807 | ac_eD='%g' | |
10f2d63a | 18808 | |
698dcdb6 VZ |
18809 | if test "${CONFIG_HEADERS+set}" != set; then |
18810 | EOF | |
18811 | cat >> $CONFIG_STATUS <<EOF | |
18812 | CONFIG_HEADERS="setup.h:setup.h.in" | |
18813 | EOF | |
18814 | cat >> $CONFIG_STATUS <<\EOF | |
18815 | fi | |
18816 | for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then | |
10f2d63a | 18817 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
698dcdb6 VZ |
18818 | case "$ac_file" in |
18819 | *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` | |
18820 | ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; | |
18821 | *) ac_file_in="${ac_file}.in" ;; | |
10f2d63a VZ |
18822 | esac |
18823 | ||
698dcdb6 VZ |
18824 | echo creating $ac_file |
18825 | ||
18826 | rm -f conftest.frag conftest.in conftest.out | |
18827 | ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` | |
18828 | cat $ac_file_inputs > conftest.in | |
18829 | ||
18830 | EOF | |
18831 | ||
18832 | # Transform confdefs.h into a sed script conftest.vals that substitutes | |
18833 | # the proper values into config.h.in to produce config.h. And first: | |
18834 | # Protect against being on the right side of a sed subst in config.status. | |
18835 | # Protect against being in an unquoted here document in config.status. | |
18836 | rm -f conftest.vals | |
18837 | cat > conftest.hdr <<\EOF | |
18838 | s/[\\&%]/\\&/g | |
18839 | s%[\\$`]%\\&%g | |
18840 | s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp | |
18841 | s%ac_d%ac_u%gp | |
18842 | s%ac_u%ac_e%gp | |
18843 | EOF | |
18844 | sed -n -f conftest.hdr confdefs.h > conftest.vals | |
18845 | rm -f conftest.hdr | |
10f2d63a VZ |
18846 | |
18847 | # This sed command replaces #undef with comments. This is necessary, for | |
18848 | # example, in the case of _POSIX_SOURCE, which is predefined and required | |
18849 | # on some systems where configure will not decide to define it. | |
698dcdb6 VZ |
18850 | cat >> conftest.vals <<\EOF |
18851 | s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */% | |
10f2d63a VZ |
18852 | EOF |
18853 | ||
698dcdb6 VZ |
18854 | # Break up conftest.vals because some shells have a limit on |
18855 | # the size of here documents, and old seds have small limits too. | |
10f2d63a VZ |
18856 | |
18857 | rm -f conftest.tail | |
698dcdb6 | 18858 | while : |
10f2d63a | 18859 | do |
698dcdb6 VZ |
18860 | ac_lines=`grep -c . conftest.vals` |
18861 | # grep -c gives empty output for an empty file on some AIX systems. | |
18862 | if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi | |
18863 | # Write a limited-size here document to conftest.frag. | |
18864 | echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS | |
18865 | sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS | |
10f2d63a | 18866 | echo 'CEOF |
698dcdb6 VZ |
18867 | sed -f conftest.frag conftest.in > conftest.out |
18868 | rm -f conftest.in | |
18869 | mv conftest.out conftest.in | |
18870 | ' >> $CONFIG_STATUS | |
18871 | sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail | |
18872 | rm -f conftest.vals | |
18873 | mv conftest.tail conftest.vals | |
10f2d63a | 18874 | done |
698dcdb6 VZ |
18875 | rm -f conftest.vals |
18876 | ||
18877 | cat >> $CONFIG_STATUS <<\EOF | |
18878 | rm -f conftest.frag conftest.h | |
18879 | echo "/* $ac_file. Generated automatically by configure. */" > conftest.h | |
18880 | cat conftest.in >> conftest.h | |
18881 | rm -f conftest.in | |
18882 | if cmp -s $ac_file conftest.h 2>/dev/null; then | |
18883 | echo "$ac_file is unchanged" | |
18884 | rm -f conftest.h | |
10f2d63a | 18885 | else |
698dcdb6 VZ |
18886 | # Remove last slash and all that follows it. Not all systems have dirname. |
18887 | ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` | |
10f2d63a | 18888 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then |
698dcdb6 VZ |
18889 | # The file is in a subdirectory. |
18890 | test ! -d "$ac_dir" && mkdir "$ac_dir" | |
10f2d63a | 18891 | fi |
698dcdb6 VZ |
18892 | rm -f $ac_file |
18893 | mv conftest.h $ac_file | |
10f2d63a | 18894 | fi |
698dcdb6 VZ |
18895 | fi; done |
18896 | ||
10f2d63a | 18897 | EOF |
698dcdb6 | 18898 | cat >> $CONFIG_STATUS <<EOF |
10f2d63a | 18899 | |
3a922bb4 | 18900 | TOOLCHAIN_NAME="${TOOLCHAIN_NAME}" |
698dcdb6 VZ |
18901 | LN_S="${LN_S}" |
18902 | ||
18903 | ||
18904 | EOF | |
18905 | cat >> $CONFIG_STATUS <<\EOF | |
10f2d63a | 18906 | |
652d930d | 18907 | if test ! -h wx-config; then |
991a5759 | 18908 | chmod +x wx-config |
3a922bb4 RL |
18909 | mv wx-config wx${TOOLCHAIN_NAME}-config |
18910 | ${LN_S} wx${TOOLCHAIN_NAME}-config wx-config | |
991a5759 | 18911 | fi |
665bbe97 | 18912 | |
00cf1208 RR |
18913 | if test ! -d lib; then |
18914 | mkdir lib | |
18915 | fi | |
18916 | if test ! -d lib/wx; then | |
18917 | mkdir lib/wx | |
18918 | fi | |
18919 | if test ! -d lib/wx/include; then | |
18920 | mkdir lib/wx/include | |
18921 | fi | |
3a922bb4 RL |
18922 | if test ! -d lib/wx/include/${TOOLCHAIN_NAME}; then |
18923 | mkdir lib/wx/include/${TOOLCHAIN_NAME} | |
00cf1208 | 18924 | fi |
3a922bb4 RL |
18925 | if test ! -d lib/wx/include/${TOOLCHAIN_NAME}/wx; then |
18926 | mkdir lib/wx/include/${TOOLCHAIN_NAME}/wx | |
00cf1208 RR |
18927 | fi |
18928 | if test -f setup.h; then | |
3a922bb4 | 18929 | mv -f setup.h lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h |
00cf1208 | 18930 | fi |
698dcdb6 VZ |
18931 | |
18932 | exit 0 | |
10f2d63a VZ |
18933 | EOF |
18934 | chmod +x $CONFIG_STATUS | |
698dcdb6 VZ |
18935 | rm -fr confdefs* $ac_clean_files |
18936 | test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1 | |
10f2d63a | 18937 | |
2224580a VZ |
18938 | if test "$no_recursion" != yes; then |
18939 | ||
18940 | # Remove --cache-file and --srcdir arguments so they do not pile up. | |
18941 | ac_sub_configure_args= | |
18942 | ac_prev= | |
18943 | for ac_arg in $ac_configure_args; do | |
18944 | if test -n "$ac_prev"; then | |
18945 | ac_prev= | |
18946 | continue | |
18947 | fi | |
698dcdb6 | 18948 | case "$ac_arg" in |
2224580a VZ |
18949 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
18950 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
18951 | ac_prev=cache_file ;; | |
18952 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
698dcdb6 | 18953 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
2224580a VZ |
18954 | ;; |
18955 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
18956 | ac_prev=srcdir ;; | |
18957 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
18958 | ;; | |
18959 | *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;; | |
18960 | esac | |
18961 | done | |
18962 | ||
698dcdb6 | 18963 | for ac_config_dir in demos samples utils contrib; do |
2224580a VZ |
18964 | |
18965 | # Do not complain, so a configure script can configure whichever | |
18966 | # parts of a large source tree are present. | |
698dcdb6 VZ |
18967 | if test ! -d $srcdir/$ac_config_dir; then |
18968 | continue | |
18969 | fi | |
18970 | ||
18971 | echo configuring in $ac_config_dir | |
2224580a | 18972 | |
698dcdb6 | 18973 | case "$srcdir" in |
2224580a VZ |
18974 | .) ;; |
18975 | *) | |
698dcdb6 VZ |
18976 | if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :; |
18977 | else | |
18978 | { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; } | |
18979 | fi | |
18980 | ;; | |
2224580a VZ |
18981 | esac |
18982 | ||
18983 | ac_popdir=`pwd` | |
698dcdb6 | 18984 | cd $ac_config_dir |
2224580a | 18985 | |
698dcdb6 VZ |
18986 | # A "../" for each directory in /$ac_config_dir. |
18987 | ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'` | |
2224580a | 18988 | |
698dcdb6 | 18989 | case "$srcdir" in |
2224580a VZ |
18990 | .) # No --srcdir option. We are building in place. |
18991 | ac_sub_srcdir=$srcdir ;; | |
698dcdb6 VZ |
18992 | /*) # Absolute path. |
18993 | ac_sub_srcdir=$srcdir/$ac_config_dir ;; | |
2224580a | 18994 | *) # Relative path. |
698dcdb6 | 18995 | ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;; |
2224580a VZ |
18996 | esac |
18997 | ||
18998 | # Check for guested configure; otherwise get Cygnus style configure. | |
698dcdb6 VZ |
18999 | if test -f $ac_sub_srcdir/configure; then |
19000 | ac_sub_configure=$ac_sub_srcdir/configure | |
2224580a VZ |
19001 | elif test -f $ac_sub_srcdir/configure.in; then |
19002 | ac_sub_configure=$ac_configure | |
19003 | else | |
698dcdb6 | 19004 | echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2 |
2224580a VZ |
19005 | ac_sub_configure= |
19006 | fi | |
19007 | ||
19008 | # The recursion is here. | |
19009 | if test -n "$ac_sub_configure"; then | |
698dcdb6 | 19010 | |
2224580a | 19011 | # Make the cache file name correct relative to the subdirectory. |
698dcdb6 VZ |
19012 | case "$cache_file" in |
19013 | /*) ac_sub_cache_file=$cache_file ;; | |
2224580a | 19014 | *) # Relative path. |
698dcdb6 | 19015 | ac_sub_cache_file="$ac_dots$cache_file" ;; |
2224580a | 19016 | esac |
698dcdb6 VZ |
19017 | case "$ac_given_INSTALL" in |
19018 | [/$]*) INSTALL="$ac_given_INSTALL" ;; | |
19019 | *) INSTALL="$ac_dots$ac_given_INSTALL" ;; | |
19020 | esac | |
2224580a | 19021 | |
698dcdb6 | 19022 | echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir" |
2224580a | 19023 | # The eval makes quoting arguments work. |
698dcdb6 VZ |
19024 | if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir |
19025 | then : | |
19026 | else | |
19027 | { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; } | |
19028 | fi | |
2224580a VZ |
19029 | fi |
19030 | ||
19031 | cd $ac_popdir | |
19032 | done | |
19033 | fi | |
19034 | ||
698dcdb6 | 19035 |