]>
Commit | Line | Data |
---|---|---|
10f2d63a VZ |
1 | #! /bin/sh |
2 | ||
698dcdb6 | 3 | # From configure.in Id: configure.in |
703e0a69 VZ |
4 | |
5 | ||
6 | ||
7 | ||
8 | ||
703e0a69 VZ |
9 | |
10 | ||
1e487827 | 11 | |
1e487827 | 12 | |
698dcdb6 VZ |
13 | |
14 | ||
15 | ||
16 | ||
17 | ||
18 | ||
19 | ||
20 | ||
21 | ||
22 | ||
23 | ||
24 | ||
25 | ||
26 | ||
27 | ||
28 | ||
29 | ||
30 | ||
31 | ||
32 | ||
33 | ||
34 | ||
35 | ||
36 | ||
37 | ||
8168de4c VZ |
38 | |
39 | # Configure paths for GTK+ | |
40 | # Owen Taylor 97-11-3 | |
698dcdb6 VZ |
41 | |
42 | ||
43 | ||
44 | ||
698dcdb6 VZ |
45 | |
46 | ||
47 | # Guess values for system-dependent variables and create Makefiles. | |
48 | # Generated automatically using autoconf version 2.13 | |
49 | # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc. | |
50 | # | |
51 | # This configure script is free software; the Free Software Foundation | |
52 | # gives unlimited permission to copy, distribute and modify it. | |
53 | ||
54 | # Defaults: | |
55 | ac_help= | |
56 | ac_default_prefix=/usr/local | |
57 | # Any additions from configure.in: | |
58 | ac_help="$ac_help | |
8168de4c | 59 | --enable-gui use GUI classes" |
1e6feb95 | 60 | ac_help="$ac_help |
8168de4c | 61 | --enable-universal use wxWindows GUI controls instead of native ones" |
698dcdb6 VZ |
62 | ac_help="$ac_help |
63 | --with-gtk use GTK+" | |
64 | ac_help="$ac_help | |
65 | --with-motif use Motif/Lesstif" | |
66 | ac_help="$ac_help | |
67 | --with-mac use Mac OS X" | |
68 | ac_help="$ac_help | |
69 | --with-wine use WINE" | |
70 | ac_help="$ac_help | |
71 | --with-cygwin use Cygwin for MS-Windows" | |
72 | ac_help="$ac_help | |
73 | --with-mingw use GCC Minimal MS-Windows" | |
74 | ac_help="$ac_help | |
75 | --with-pm use OS/2 Presentation Manager" | |
1e6feb95 VZ |
76 | ac_help="$ac_help |
77 | --with-mgl use MGL" | |
698dcdb6 | 78 | ac_help="$ac_help |
8168de4c | 79 | --enable-gtk2 use GTK+ 2.0 if available (EXPERIMENTAL)" |
698dcdb6 | 80 | ac_help="$ac_help |
8168de4c | 81 | --with-libpng use libpng (PNG image format)" |
698dcdb6 | 82 | ac_help="$ac_help |
8168de4c | 83 | --with-libjpeg use libjpeg (JPEG file format)" |
698dcdb6 | 84 | ac_help="$ac_help |
8168de4c | 85 | --with-libtiff use libtiff (TIFF file format)" |
698dcdb6 | 86 | ac_help="$ac_help |
8168de4c | 87 | --with-freetype use freetype (font rasterizer)" |
698dcdb6 | 88 | ac_help="$ac_help |
8168de4c | 89 | --with-opengl use OpenGL (or Mesa)" |
698dcdb6 | 90 | ac_help="$ac_help |
8168de4c | 91 | --with-dmalloc use dmalloc library (www.letters.com/dmalloc)" |
3e44f09d VZ |
92 | ac_help="$ac_help |
93 | --with-regex enable support for wxRegEx class" | |
698dcdb6 | 94 | ac_help="$ac_help |
8168de4c | 95 | --with-zlib use zlib for LZW compression" |
698dcdb6 | 96 | ac_help="$ac_help |
8168de4c | 97 | --with-odbc use the IODBC and wxODBC classes" |
698dcdb6 | 98 | ac_help="$ac_help |
8168de4c | 99 | --enable-shared create shared library code" |
698dcdb6 | 100 | ac_help="$ac_help |
8168de4c | 101 | --enable-burnt_name create set name in shared library " |
698dcdb6 | 102 | ac_help="$ac_help |
8168de4c | 103 | --enable-optimise create optimised code" |
698dcdb6 | 104 | ac_help="$ac_help |
8168de4c | 105 | --enable-debug same as debug_flag and debug_info" |
698dcdb6 | 106 | ac_help="$ac_help |
8168de4c | 107 | --enable-debug_flag set __WXDEBUG__ flag (recommended for developers!)" |
698dcdb6 | 108 | ac_help="$ac_help |
8168de4c | 109 | --enable-debug_info create code with debugging information" |
698dcdb6 | 110 | ac_help="$ac_help |
8168de4c | 111 | --enable-debug_gdb create code with extra GDB debugging information" |
698dcdb6 | 112 | ac_help="$ac_help |
8168de4c | 113 | --enable-debug_cntxt use wxDebugContext" |
698dcdb6 | 114 | ac_help="$ac_help |
8168de4c | 115 | --enable-mem_tracing create code with memory tracing" |
698dcdb6 | 116 | ac_help="$ac_help |
8168de4c | 117 | --enable-profile create code with profiling information" |
698dcdb6 | 118 | ac_help="$ac_help |
8168de4c | 119 | --enable-no_rtti create code without RTTI information" |
698dcdb6 | 120 | ac_help="$ac_help |
8168de4c | 121 | --enable-no_exceptions create code without exceptions information" |
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 VZ |
126 | ac_help="$ac_help |
127 | --enable-compat20 enable wxWin 2.0 compatibility" | |
128 | ac_help="$ac_help | |
129 | --enable-compat22 enable wxWin 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-wcsrtombs use wcsrtombs instead of buggy (GNU libc1/Linux libc5) wcstombs" |
698dcdb6 | 178 | ac_help="$ac_help |
8168de4c | 179 | --enable-wxprintfv use wxWindows implementation of vprintf()" |
698dcdb6 | 180 | ac_help="$ac_help |
8168de4c | 181 | --enable-std_iostreams use standard C++ stream classes" |
698dcdb6 | 182 | ac_help="$ac_help |
8168de4c | 183 | --enable-filesystem use virtual file systems classes" |
698dcdb6 | 184 | ac_help="$ac_help |
8168de4c | 185 | --enable-fs_inet use virtual HTTP/FTP filesystems" |
698dcdb6 | 186 | ac_help="$ac_help |
8168de4c | 187 | --enable-fs_zip use virtual ZIP filesystems" |
698dcdb6 | 188 | ac_help="$ac_help |
8168de4c | 189 | --enable-zipstream use wxZipInputStream" |
698dcdb6 | 190 | ac_help="$ac_help |
8168de4c | 191 | --enable-catch_segvs catch signals and pass them to wxApp::OnFatalException" |
698dcdb6 | 192 | ac_help="$ac_help |
8168de4c | 193 | --enable-snglinst use wxSingleInstanceChecker class" |
698dcdb6 | 194 | ac_help="$ac_help |
8168de4c | 195 | --enable-mimetypes use wxMimeTypesManager" |
3e44f09d VZ |
196 | ac_help="$ac_help |
197 | --enable-sysoptions use wxSystemOptions" | |
1e6feb95 | 198 | ac_help="$ac_help |
8168de4c | 199 | --enable-threads use threads" |
698dcdb6 | 200 | ac_help="$ac_help |
8168de4c | 201 | --enable-serial use class serialization" |
698dcdb6 | 202 | ac_help="$ac_help |
8168de4c | 203 | --enable-docview use document view architecture" |
698dcdb6 | 204 | ac_help="$ac_help |
3379ed37 | 205 | --enable-help use help subsystem" |
29fd3c0c VS |
206 | ac_help="$ac_help |
207 | --enable-mshtmlhelp use MS HTML Help (win32)" | |
3379ed37 VZ |
208 | ac_help="$ac_help |
209 | --enable-html use wxHTML sub-library" | |
210 | ac_help="$ac_help | |
211 | --enable-htmlhelp use wxHTML-based help" | |
698dcdb6 | 212 | ac_help="$ac_help |
8168de4c | 213 | --enable-constraints use layout-constraints system" |
698dcdb6 | 214 | ac_help="$ac_help |
8168de4c | 215 | --enable-printarch use printing architecture" |
698dcdb6 | 216 | ac_help="$ac_help |
8168de4c | 217 | --enable-mdi use multiple document interface architecture" |
698dcdb6 | 218 | ac_help="$ac_help |
8168de4c | 219 | --enable-loggui use standard GUI logger" |
1e6feb95 | 220 | ac_help="$ac_help |
8168de4c | 221 | --enable-logwin use wxLogWindow" |
1e6feb95 | 222 | ac_help="$ac_help |
8168de4c | 223 | --enable-postscript use wxPostscriptDC device context (default for gtk+)" |
698dcdb6 | 224 | ac_help="$ac_help |
8168de4c | 225 | --enable-prologio use Prolog IO library" |
698dcdb6 | 226 | ac_help="$ac_help |
8168de4c | 227 | --enable-resources use wxWindows resources" |
698dcdb6 | 228 | ac_help="$ac_help |
8168de4c | 229 | --enable-xresources use X resources for save (default for gtk+)" |
698dcdb6 | 230 | ac_help="$ac_help |
8168de4c | 231 | --enable-clipboard use wxClipboard classes" |
698dcdb6 | 232 | ac_help="$ac_help |
8168de4c | 233 | --enable-dnd use Drag'n'Drop classes" |
698dcdb6 | 234 | ac_help="$ac_help |
8168de4c | 235 | --enable-metafile use win32 metafiles" |
698dcdb6 | 236 | ac_help="$ac_help |
8168de4c | 237 | --enable-wxtree make wxTree library" |
698dcdb6 | 238 | ac_help="$ac_help |
8168de4c | 239 | --enable-controls use all usual controls" |
698dcdb6 | 240 | ac_help="$ac_help |
8168de4c | 241 | --enable-accel use accelerators" |
698dcdb6 | 242 | ac_help="$ac_help |
8168de4c | 243 | --enable-button use wxButton class" |
698dcdb6 | 244 | ac_help="$ac_help |
8168de4c | 245 | --enable-bmpbutton use wxBitmapButton class" |
698dcdb6 | 246 | ac_help="$ac_help |
8168de4c | 247 | --enable-calendar use wxCalendarCtrl class" |
1e6feb95 | 248 | ac_help="$ac_help |
8168de4c | 249 | --enable-caret use wxCaret class" |
1e6feb95 | 250 | ac_help="$ac_help |
8168de4c | 251 | --enable-checkbox use wxCheckBox class" |
698dcdb6 | 252 | ac_help="$ac_help |
8168de4c | 253 | --enable-checklst use wxCheckListBox (listbox with checkboxes) class" |
698dcdb6 | 254 | ac_help="$ac_help |
8168de4c | 255 | --enable-choice use wxChoice class" |
698dcdb6 | 256 | ac_help="$ac_help |
8168de4c | 257 | --enable-combobox use wxComboBox classes" |
698dcdb6 | 258 | ac_help="$ac_help |
8168de4c | 259 | --enable-gauge use wxGauge class" |
698dcdb6 | 260 | ac_help="$ac_help |
8168de4c | 261 | --enable-grid use wxGrid class" |
698dcdb6 | 262 | ac_help="$ac_help |
8168de4c | 263 | --enable-newgrid use new wxGrid class" |
698dcdb6 | 264 | ac_help="$ac_help |
8168de4c | 265 | --enable-imaglist use wxImageList class" |
698dcdb6 | 266 | ac_help="$ac_help |
8168de4c | 267 | --enable-listbox use wxListBox class" |
698dcdb6 | 268 | ac_help="$ac_help |
8168de4c | 269 | --enable-listctrl use wxListCtrl class" |
698dcdb6 | 270 | ac_help="$ac_help |
8168de4c | 271 | --enable-notebook use wxNotebook 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 |
8168de4c | 315 | --enable-commondlg use common dialogs (wxDirDialog, wxProgressDialog, wxTextDialog, ...)" |
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" |
1e6feb95 | 322 | ac_help="$ac_help |
8168de4c | 323 | --enable-fontdlg use wxFontDialog" |
1e6feb95 | 324 | ac_help="$ac_help |
8168de4c | 325 | --enable-dirdlg use wxDirDialog" |
698dcdb6 | 326 | ac_help="$ac_help |
8168de4c | 327 | --enable-msgdlg use wxMessageDialog" |
1e6feb95 | 328 | ac_help="$ac_help |
8168de4c | 329 | --enable-numberdlg use wxNumberEntryDialog" |
1e6feb95 | 330 | ac_help="$ac_help |
8168de4c | 331 | --enable-textdlg use wxTextDialog" |
698dcdb6 | 332 | ac_help="$ac_help |
8168de4c | 333 | --enable-tipdlg use startup tips" |
698dcdb6 | 334 | ac_help="$ac_help |
8168de4c | 335 | --enable-progressdlg use wxProgressDialog" |
b1f5d087 VZ |
336 | ac_help="$ac_help |
337 | --enable-wizarddlg use wxWizard" | |
698dcdb6 | 338 | ac_help="$ac_help |
8168de4c | 339 | --enable-menus use wxMenu/wxMenuBar/wxMenuItem classes" |
1e6feb95 | 340 | ac_help="$ac_help |
8168de4c | 341 | --enable-miniframe use wxMiniFrame class" |
698dcdb6 | 342 | ac_help="$ac_help |
8168de4c | 343 | --enable-tooltips use wxToolTip class" |
698dcdb6 | 344 | ac_help="$ac_help |
8168de4c | 345 | --enable-splines use spline drawing code" |
698dcdb6 | 346 | ac_help="$ac_help |
8168de4c | 347 | --enable-validators use wxValidator and derived classes" |
698dcdb6 | 348 | ac_help="$ac_help |
8168de4c | 349 | --enable-busyinfo use wxBusyInfo" |
698dcdb6 | 350 | ac_help="$ac_help |
8168de4c | 351 | --enable-joystick compile in joystick support (Linux only)" |
698dcdb6 | 352 | ac_help="$ac_help |
8168de4c | 353 | --enable-metafiles use wxMetaFile (Windows only)" |
24fd6d87 VZ |
354 | ac_help="$ac_help |
355 | --enable-dragimage use wxDragImage" | |
1e6feb95 | 356 | ac_help="$ac_help |
8168de4c | 357 | --enable-image use wxImage class" |
698dcdb6 | 358 | ac_help="$ac_help |
8168de4c | 359 | --enable-gif use gif images (GIF file format)" |
698dcdb6 | 360 | ac_help="$ac_help |
8168de4c | 361 | --enable-pcx use pcx images (PCX file format)" |
698dcdb6 | 362 | ac_help="$ac_help |
8168de4c | 363 | --enable-pnm use pnm images (PNM file format)" |
698dcdb6 | 364 | ac_help="$ac_help |
8168de4c | 365 | --enable-xpm use xpm images (XPM file format)" |
698dcdb6 VZ |
366 | ac_help="$ac_help |
367 | --with-gtk-prefix=PFX Prefix where GTK is installed (optional)" | |
368 | ac_help="$ac_help | |
369 | --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)" | |
370 | ac_help="$ac_help | |
371 | --disable-gtktest Do not try to compile and run a test GTK program" | |
372 | ac_help="$ac_help | |
373 | --with-x use the X Window System" | |
10f2d63a VZ |
374 | |
375 | # Initialize some variables set by options. | |
376 | # The variables have the same names as the options, with | |
377 | # dashes changed to underlines. | |
698dcdb6 VZ |
378 | build=NONE |
379 | cache_file=./config.cache | |
10f2d63a | 380 | exec_prefix=NONE |
698dcdb6 | 381 | host=NONE |
10f2d63a | 382 | no_create= |
698dcdb6 | 383 | nonopt=NONE |
10f2d63a VZ |
384 | no_recursion= |
385 | prefix=NONE | |
386 | program_prefix=NONE | |
387 | program_suffix=NONE | |
388 | program_transform_name=s,x,x, | |
389 | silent= | |
390 | site= | |
391 | srcdir= | |
698dcdb6 | 392 | target=NONE |
10f2d63a VZ |
393 | verbose= |
394 | x_includes=NONE | |
395 | x_libraries=NONE | |
396 | bindir='${exec_prefix}/bin' | |
397 | sbindir='${exec_prefix}/sbin' | |
398 | libexecdir='${exec_prefix}/libexec' | |
399 | datadir='${prefix}/share' | |
400 | sysconfdir='${prefix}/etc' | |
401 | sharedstatedir='${prefix}/com' | |
402 | localstatedir='${prefix}/var' | |
403 | libdir='${exec_prefix}/lib' | |
404 | includedir='${prefix}/include' | |
405 | oldincludedir='/usr/include' | |
406 | infodir='${prefix}/info' | |
407 | mandir='${prefix}/man' | |
408 | ||
698dcdb6 VZ |
409 | # Initialize some other variables. |
410 | subdirs= | |
411 | MFLAGS= MAKEFLAGS= | |
412 | SHELL=${CONFIG_SHELL-/bin/sh} | |
413 | # Maximum number of lines to put in a shell here document. | |
414 | ac_max_here_lines=12 | |
10f2d63a VZ |
415 | |
416 | ac_prev= | |
417 | for ac_option | |
418 | do | |
698dcdb6 | 419 | |
10f2d63a VZ |
420 | # If the previous option needs an argument, assign it. |
421 | if test -n "$ac_prev"; then | |
422 | eval "$ac_prev=\$ac_option" | |
423 | ac_prev= | |
424 | continue | |
425 | fi | |
426 | ||
698dcdb6 VZ |
427 | case "$ac_option" in |
428 | -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;; | |
429 | *) ac_optarg= ;; | |
430 | esac | |
10f2d63a VZ |
431 | |
432 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
433 | ||
698dcdb6 | 434 | case "$ac_option" in |
10f2d63a VZ |
435 | |
436 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
437 | ac_prev=bindir ;; | |
438 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
698dcdb6 | 439 | bindir="$ac_optarg" ;; |
10f2d63a VZ |
440 | |
441 | -build | --build | --buil | --bui | --bu) | |
698dcdb6 | 442 | ac_prev=build ;; |
10f2d63a | 443 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
698dcdb6 | 444 | build="$ac_optarg" ;; |
10f2d63a VZ |
445 | |
446 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
447 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
448 | ac_prev=cache_file ;; | |
449 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
450 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
698dcdb6 | 451 | cache_file="$ac_optarg" ;; |
10f2d63a VZ |
452 | |
453 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da) | |
454 | ac_prev=datadir ;; | |
455 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ | |
456 | | --da=*) | |
698dcdb6 | 457 | datadir="$ac_optarg" ;; |
10f2d63a VZ |
458 | |
459 | -disable-* | --disable-*) | |
698dcdb6 | 460 | ac_feature=`echo $ac_option|sed -e 's/-*disable-//'` |
10f2d63a | 461 | # Reject names that are not valid shell variable names. |
698dcdb6 VZ |
462 | if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then |
463 | { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } | |
464 | fi | |
465 | ac_feature=`echo $ac_feature| sed 's/-/_/g'` | |
466 | eval "enable_${ac_feature}=no" ;; | |
10f2d63a VZ |
467 | |
468 | -enable-* | --enable-*) | |
698dcdb6 | 469 | ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'` |
10f2d63a | 470 | # Reject names that are not valid shell variable names. |
698dcdb6 VZ |
471 | if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then |
472 | { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } | |
473 | fi | |
474 | ac_feature=`echo $ac_feature| sed 's/-/_/g'` | |
475 | case "$ac_option" in | |
476 | *=*) ;; | |
10f2d63a VZ |
477 | *) ac_optarg=yes ;; |
478 | esac | |
698dcdb6 | 479 | eval "enable_${ac_feature}='$ac_optarg'" ;; |
10f2d63a VZ |
480 | |
481 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
482 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
483 | | --exec | --exe | --ex) | |
484 | ac_prev=exec_prefix ;; | |
485 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
486 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
487 | | --exec=* | --exe=* | --ex=*) | |
698dcdb6 | 488 | exec_prefix="$ac_optarg" ;; |
10f2d63a VZ |
489 | |
490 | -gas | --gas | --ga | --g) | |
491 | # Obsolete; use --with-gas. | |
492 | with_gas=yes ;; | |
493 | ||
698dcdb6 VZ |
494 | -help | --help | --hel | --he) |
495 | # Omit some internal or obsolete options to make the list less imposing. | |
496 | # This message is too long to be a string in the A/UX 3.1 sh. | |
497 | cat << EOF | |
498 | Usage: configure [options] [host] | |
499 | Options: [defaults in brackets after descriptions] | |
500 | Configuration: | |
501 | --cache-file=FILE cache test results in FILE | |
502 | --help print this message | |
503 | --no-create do not create output files | |
504 | --quiet, --silent do not print \`checking...' messages | |
505 | --version print the version of autoconf that created configure | |
506 | Directory and file names: | |
507 | --prefix=PREFIX install architecture-independent files in PREFIX | |
508 | [$ac_default_prefix] | |
509 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX | |
510 | [same as prefix] | |
511 | --bindir=DIR user executables in DIR [EPREFIX/bin] | |
512 | --sbindir=DIR system admin executables in DIR [EPREFIX/sbin] | |
513 | --libexecdir=DIR program executables in DIR [EPREFIX/libexec] | |
514 | --datadir=DIR read-only architecture-independent data in DIR | |
515 | [PREFIX/share] | |
516 | --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc] | |
517 | --sharedstatedir=DIR modifiable architecture-independent data in DIR | |
518 | [PREFIX/com] | |
519 | --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var] | |
520 | --libdir=DIR object code libraries in DIR [EPREFIX/lib] | |
521 | --includedir=DIR C header files in DIR [PREFIX/include] | |
522 | --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include] | |
523 | --infodir=DIR info documentation in DIR [PREFIX/info] | |
524 | --mandir=DIR man documentation in DIR [PREFIX/man] | |
525 | --srcdir=DIR find the sources in DIR [configure dir or ..] | |
526 | --program-prefix=PREFIX prepend PREFIX to installed program names | |
527 | --program-suffix=SUFFIX append SUFFIX to installed program names | |
528 | --program-transform-name=PROGRAM | |
529 | run sed PROGRAM on installed program names | |
530 | EOF | |
531 | cat << EOF | |
532 | Host type: | |
533 | --build=BUILD configure for building on BUILD [BUILD=HOST] | |
534 | --host=HOST configure for HOST [guessed] | |
535 | --target=TARGET configure for TARGET [TARGET=HOST] | |
536 | Features and packages: | |
537 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) | |
538 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
539 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
540 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
541 | --x-includes=DIR X include files are in DIR | |
542 | --x-libraries=DIR X library files are in DIR | |
543 | EOF | |
544 | if test -n "$ac_help"; then | |
545 | echo "--enable and --with options recognized:$ac_help" | |
546 | fi | |
547 | exit 0 ;; | |
10f2d63a VZ |
548 | |
549 | -host | --host | --hos | --ho) | |
698dcdb6 | 550 | ac_prev=host ;; |
10f2d63a | 551 | -host=* | --host=* | --hos=* | --ho=*) |
698dcdb6 | 552 | host="$ac_optarg" ;; |
10f2d63a VZ |
553 | |
554 | -includedir | --includedir | --includedi | --included | --include \ | |
555 | | --includ | --inclu | --incl | --inc) | |
556 | ac_prev=includedir ;; | |
557 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
558 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
698dcdb6 | 559 | includedir="$ac_optarg" ;; |
10f2d63a VZ |
560 | |
561 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
562 | ac_prev=infodir ;; | |
563 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
698dcdb6 | 564 | infodir="$ac_optarg" ;; |
10f2d63a VZ |
565 | |
566 | -libdir | --libdir | --libdi | --libd) | |
567 | ac_prev=libdir ;; | |
568 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
698dcdb6 | 569 | libdir="$ac_optarg" ;; |
10f2d63a VZ |
570 | |
571 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
572 | | --libexe | --libex | --libe) | |
573 | ac_prev=libexecdir ;; | |
574 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
575 | | --libexe=* | --libex=* | --libe=*) | |
698dcdb6 | 576 | libexecdir="$ac_optarg" ;; |
10f2d63a VZ |
577 | |
578 | -localstatedir | --localstatedir | --localstatedi | --localstated \ | |
579 | | --localstate | --localstat | --localsta | --localst \ | |
580 | | --locals | --local | --loca | --loc | --lo) | |
581 | ac_prev=localstatedir ;; | |
582 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
583 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \ | |
584 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) | |
698dcdb6 | 585 | localstatedir="$ac_optarg" ;; |
10f2d63a VZ |
586 | |
587 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
588 | ac_prev=mandir ;; | |
589 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
698dcdb6 | 590 | mandir="$ac_optarg" ;; |
10f2d63a VZ |
591 | |
592 | -nfp | --nfp | --nf) | |
593 | # Obsolete; use --without-fp. | |
594 | with_fp=no ;; | |
595 | ||
596 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
597 | | --no-cr | --no-c) | |
598 | no_create=yes ;; | |
599 | ||
600 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
601 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
602 | no_recursion=yes ;; | |
603 | ||
604 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
605 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
606 | | --oldin | --oldi | --old | --ol | --o) | |
607 | ac_prev=oldincludedir ;; | |
608 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
609 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
610 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
698dcdb6 | 611 | oldincludedir="$ac_optarg" ;; |
10f2d63a VZ |
612 | |
613 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
614 | ac_prev=prefix ;; | |
615 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
698dcdb6 | 616 | prefix="$ac_optarg" ;; |
10f2d63a VZ |
617 | |
618 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
619 | | --program-pre | --program-pr | --program-p) | |
620 | ac_prev=program_prefix ;; | |
621 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
622 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
698dcdb6 | 623 | program_prefix="$ac_optarg" ;; |
10f2d63a VZ |
624 | |
625 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
626 | | --program-suf | --program-su | --program-s) | |
627 | ac_prev=program_suffix ;; | |
628 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
629 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
698dcdb6 | 630 | program_suffix="$ac_optarg" ;; |
10f2d63a VZ |
631 | |
632 | -program-transform-name | --program-transform-name \ | |
633 | | --program-transform-nam | --program-transform-na \ | |
634 | | --program-transform-n | --program-transform- \ | |
635 | | --program-transform | --program-transfor \ | |
636 | | --program-transfo | --program-transf \ | |
637 | | --program-trans | --program-tran \ | |
638 | | --progr-tra | --program-tr | --program-t) | |
639 | ac_prev=program_transform_name ;; | |
640 | -program-transform-name=* | --program-transform-name=* \ | |
641 | | --program-transform-nam=* | --program-transform-na=* \ | |
642 | | --program-transform-n=* | --program-transform-=* \ | |
643 | | --program-transform=* | --program-transfor=* \ | |
644 | | --program-transfo=* | --program-transf=* \ | |
645 | | --program-trans=* | --program-tran=* \ | |
646 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
698dcdb6 | 647 | program_transform_name="$ac_optarg" ;; |
10f2d63a VZ |
648 | |
649 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
650 | | -silent | --silent | --silen | --sile | --sil) | |
651 | silent=yes ;; | |
652 | ||
653 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
654 | ac_prev=sbindir ;; | |
655 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
656 | | --sbi=* | --sb=*) | |
698dcdb6 | 657 | sbindir="$ac_optarg" ;; |
10f2d63a VZ |
658 | |
659 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
660 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
661 | | --sharedst | --shareds | --shared | --share | --shar \ | |
662 | | --sha | --sh) | |
663 | ac_prev=sharedstatedir ;; | |
664 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
665 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
666 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
667 | | --sha=* | --sh=*) | |
698dcdb6 | 668 | sharedstatedir="$ac_optarg" ;; |
10f2d63a VZ |
669 | |
670 | -site | --site | --sit) | |
671 | ac_prev=site ;; | |
672 | -site=* | --site=* | --sit=*) | |
698dcdb6 | 673 | site="$ac_optarg" ;; |
10f2d63a VZ |
674 | |
675 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
676 | ac_prev=srcdir ;; | |
677 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
698dcdb6 | 678 | srcdir="$ac_optarg" ;; |
10f2d63a VZ |
679 | |
680 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
681 | | --syscon | --sysco | --sysc | --sys | --sy) | |
682 | ac_prev=sysconfdir ;; | |
683 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
684 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
698dcdb6 | 685 | sysconfdir="$ac_optarg" ;; |
10f2d63a VZ |
686 | |
687 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
698dcdb6 | 688 | ac_prev=target ;; |
10f2d63a | 689 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
698dcdb6 | 690 | target="$ac_optarg" ;; |
10f2d63a VZ |
691 | |
692 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
693 | verbose=yes ;; | |
694 | ||
698dcdb6 VZ |
695 | -version | --version | --versio | --versi | --vers) |
696 | echo "configure generated by autoconf version 2.13" | |
697 | exit 0 ;; | |
10f2d63a VZ |
698 | |
699 | -with-* | --with-*) | |
698dcdb6 | 700 | ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'` |
10f2d63a | 701 | # Reject names that are not valid shell variable names. |
698dcdb6 VZ |
702 | if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then |
703 | { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } | |
704 | fi | |
10f2d63a | 705 | ac_package=`echo $ac_package| sed 's/-/_/g'` |
698dcdb6 VZ |
706 | case "$ac_option" in |
707 | *=*) ;; | |
10f2d63a VZ |
708 | *) ac_optarg=yes ;; |
709 | esac | |
698dcdb6 | 710 | eval "with_${ac_package}='$ac_optarg'" ;; |
10f2d63a VZ |
711 | |
712 | -without-* | --without-*) | |
698dcdb6 | 713 | ac_package=`echo $ac_option|sed -e 's/-*without-//'` |
10f2d63a | 714 | # Reject names that are not valid shell variable names. |
698dcdb6 VZ |
715 | if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then |
716 | { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } | |
717 | fi | |
718 | ac_package=`echo $ac_package| sed 's/-/_/g'` | |
719 | eval "with_${ac_package}=no" ;; | |
10f2d63a VZ |
720 | |
721 | --x) | |
722 | # Obsolete; use --with-x. | |
723 | with_x=yes ;; | |
724 | ||
725 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
726 | | --x-incl | --x-inc | --x-in | --x-i) | |
727 | ac_prev=x_includes ;; | |
728 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
729 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
698dcdb6 | 730 | x_includes="$ac_optarg" ;; |
10f2d63a VZ |
731 | |
732 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
733 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
734 | ac_prev=x_libraries ;; | |
735 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
736 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
698dcdb6 | 737 | x_libraries="$ac_optarg" ;; |
10f2d63a | 738 | |
698dcdb6 | 739 | -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; } |
10f2d63a VZ |
740 | ;; |
741 | ||
742 | *) | |
698dcdb6 VZ |
743 | if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then |
744 | echo "configure: warning: $ac_option: invalid host type" 1>&2 | |
745 | fi | |
746 | if test "x$nonopt" != xNONE; then | |
747 | { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } | |
748 | fi | |
749 | nonopt="$ac_option" | |
10f2d63a VZ |
750 | ;; |
751 | ||
752 | esac | |
753 | done | |
754 | ||
755 | if test -n "$ac_prev"; then | |
698dcdb6 VZ |
756 | { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; } |
757 | fi | |
758 | ||
759 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 | |
760 | ||
761 | # File descriptor usage: | |
762 | # 0 standard input | |
763 | # 1 file creation | |
764 | # 2 errors and warnings | |
765 | # 3 some systems may open it to /dev/tty | |
766 | # 4 used on the Kubota Titan | |
767 | # 6 checking for... messages and results | |
768 | # 5 compiler messages saved in config.log | |
769 | if test "$silent" = yes; then | |
770 | exec 6>/dev/null | |
771 | else | |
772 | exec 6>&1 | |
10f2d63a | 773 | fi |
698dcdb6 VZ |
774 | exec 5>./config.log |
775 | ||
776 | echo "\ | |
777 | This file contains any messages produced by compilers while | |
778 | running configure, to aid debugging if configure makes a mistake. | |
779 | " 1>&5 | |
10f2d63a | 780 | |
698dcdb6 VZ |
781 | # Strip out --no-create and --no-recursion so they do not pile up. |
782 | # Also quote any args containing shell metacharacters. | |
783 | ac_configure_args= | |
784 | for ac_arg | |
10f2d63a | 785 | do |
698dcdb6 VZ |
786 | case "$ac_arg" in |
787 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
788 | | --no-cr | --no-c) ;; | |
789 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
790 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;; | |
791 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*) | |
792 | ac_configure_args="$ac_configure_args '$ac_arg'" ;; | |
793 | *) ac_configure_args="$ac_configure_args $ac_arg" ;; | |
10f2d63a VZ |
794 | esac |
795 | done | |
796 | ||
698dcdb6 VZ |
797 | # NLS nuisances. |
798 | # Only set these to C if already set. These must not be set unconditionally | |
799 | # because not all systems understand e.g. LANG=C (notably SCO). | |
800 | # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'! | |
801 | # Non-C LC_CTYPE values break the ctype check. | |
802 | if test "${LANG+set}" = set; then LANG=C; export LANG; fi | |
803 | if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi | |
804 | if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi | |
805 | if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi | |
10f2d63a | 806 | |
698dcdb6 VZ |
807 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
808 | rm -rf conftest* confdefs.h | |
809 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. | |
810 | echo > confdefs.h | |
10f2d63a | 811 | |
698dcdb6 VZ |
812 | # A filename unique to this package, relative to the directory that |
813 | # configure is in, which we can look for to find out if srcdir is correct. | |
814 | ac_unique_file=wx-config.in | |
10f2d63a VZ |
815 | |
816 | # Find the source files, if location was not specified. | |
817 | if test -z "$srcdir"; then | |
818 | ac_srcdir_defaulted=yes | |
819 | # Try the directory containing this script, then its parent. | |
820 | ac_prog=$0 | |
698dcdb6 | 821 | ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'` |
10f2d63a VZ |
822 | test "x$ac_confdir" = "x$ac_prog" && ac_confdir=. |
823 | srcdir=$ac_confdir | |
824 | if test ! -r $srcdir/$ac_unique_file; then | |
825 | srcdir=.. | |
826 | fi | |
827 | else | |
828 | ac_srcdir_defaulted=no | |
829 | fi | |
830 | if test ! -r $srcdir/$ac_unique_file; then | |
831 | if test "$ac_srcdir_defaulted" = yes; then | |
698dcdb6 | 832 | { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; } |
10f2d63a | 833 | else |
698dcdb6 | 834 | { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; } |
10f2d63a VZ |
835 | fi |
836 | fi | |
698dcdb6 | 837 | srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'` |
10f2d63a VZ |
838 | |
839 | # Prefer explicitly selected file to automatically selected ones. | |
840 | if test -z "$CONFIG_SITE"; then | |
841 | if test "x$prefix" != xNONE; then | |
842 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" | |
843 | else | |
844 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" | |
845 | fi | |
846 | fi | |
847 | for ac_site_file in $CONFIG_SITE; do | |
848 | if test -r "$ac_site_file"; then | |
698dcdb6 | 849 | echo "loading site script $ac_site_file" |
10f2d63a VZ |
850 | . "$ac_site_file" |
851 | fi | |
852 | done | |
853 | ||
854 | if test -r "$cache_file"; then | |
698dcdb6 VZ |
855 | echo "loading cache $cache_file" |
856 | . $cache_file | |
10f2d63a | 857 | else |
698dcdb6 VZ |
858 | echo "creating cache $cache_file" |
859 | > $cache_file | |
10f2d63a VZ |
860 | fi |
861 | ||
862 | ac_ext=c | |
698dcdb6 | 863 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
10f2d63a | 864 | ac_cpp='$CPP $CPPFLAGS' |
698dcdb6 VZ |
865 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
866 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
867 | cross_compiling=$ac_cv_prog_cc_cross | |
868 | ||
869 | ac_exeext= | |
870 | ac_objext=o | |
871 | if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then | |
872 | # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu. | |
873 | if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then | |
874 | ac_n= ac_c=' | |
875 | ' ac_t=' ' | |
876 | else | |
877 | ac_n=-n ac_c= ac_t= | |
878 | fi | |
10f2d63a | 879 | else |
698dcdb6 | 880 | ac_n= ac_c='\c' ac_t= |
10f2d63a | 881 | fi |
698dcdb6 VZ |
882 | |
883 | ||
10f2d63a | 884 | |
7c66a493 VZ |
885 | ac_aux_dir= |
886 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do | |
887 | if test -f $ac_dir/install-sh; then | |
888 | ac_aux_dir=$ac_dir | |
889 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
890 | break | |
891 | elif test -f $ac_dir/install.sh; then | |
892 | ac_aux_dir=$ac_dir | |
893 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
894 | break | |
895 | fi | |
896 | done | |
897 | if test -z "$ac_aux_dir"; then | |
698dcdb6 | 898 | { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; } |
7c66a493 | 899 | fi |
698dcdb6 VZ |
900 | ac_config_guess=$ac_aux_dir/config.guess |
901 | ac_config_sub=$ac_aux_dir/config.sub | |
902 | ac_configure=$ac_aux_dir/configure # This should be Cygnus configure. | |
703e0a69 | 903 | |
698dcdb6 VZ |
904 | |
905 | # Do some error checking and defaulting for the host and target type. | |
906 | # The inputs are: | |
907 | # configure --host=HOST --target=TARGET --build=BUILD NONOPT | |
908 | # | |
909 | # The rules are: | |
910 | # 1. You are not allowed to specify --host, --target, and nonopt at the | |
911 | # same time. | |
912 | # 2. Host defaults to nonopt. | |
913 | # 3. If nonopt is not specified, then host defaults to the current host, | |
914 | # as determined by config.guess. | |
915 | # 4. Target and build default to nonopt. | |
916 | # 5. If nonopt is not specified, then target and build default to host. | |
7c66a493 VZ |
917 | |
918 | # The aliases save the names the user supplied, while $host etc. | |
919 | # will get canonicalized. | |
698dcdb6 VZ |
920 | case $host---$target---$nonopt in |
921 | NONE---*---* | *---NONE---* | *---*---NONE) ;; | |
922 | *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;; | |
923 | esac | |
924 | ||
925 | ||
926 | # Make sure we can run config.sub. | |
927 | if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then : | |
928 | else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; } | |
929 | fi | |
930 | ||
931 | echo $ac_n "checking host system type""... $ac_c" 1>&6 | |
3e44f09d | 932 | echo "configure:933: checking host system type" >&5 |
698dcdb6 VZ |
933 | |
934 | host_alias=$host | |
935 | case "$host_alias" in | |
936 | NONE) | |
937 | case $nonopt in | |
938 | NONE) | |
939 | if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then : | |
940 | else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; } | |
941 | fi ;; | |
942 | *) host_alias=$nonopt ;; | |
943 | esac ;; | |
944 | esac | |
945 | ||
946 | host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias` | |
947 | host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
948 | host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
949 | host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
950 | echo "$ac_t""$host" 1>&6 | |
951 | ||
952 | echo $ac_n "checking target system type""... $ac_c" 1>&6 | |
3e44f09d | 953 | echo "configure:954: checking target system type" >&5 |
698dcdb6 VZ |
954 | |
955 | target_alias=$target | |
956 | case "$target_alias" in | |
957 | NONE) | |
958 | case $nonopt in | |
959 | NONE) target_alias=$host_alias ;; | |
960 | *) target_alias=$nonopt ;; | |
961 | esac ;; | |
962 | esac | |
963 | ||
964 | target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias` | |
965 | target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
966 | target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
967 | target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
968 | echo "$ac_t""$target" 1>&6 | |
969 | ||
970 | echo $ac_n "checking build system type""... $ac_c" 1>&6 | |
3e44f09d | 971 | echo "configure:972: checking build system type" >&5 |
698dcdb6 VZ |
972 | |
973 | build_alias=$build | |
974 | case "$build_alias" in | |
975 | NONE) | |
976 | case $nonopt in | |
977 | NONE) build_alias=$host_alias ;; | |
978 | *) build_alias=$nonopt ;; | |
979 | esac ;; | |
980 | esac | |
981 | ||
982 | build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias` | |
983 | build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
984 | build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
985 | build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
986 | echo "$ac_t""$build" 1>&6 | |
987 | ||
988 | test "$host_alias" != "$target_alias" && | |
7c66a493 VZ |
989 | test "$program_prefix$program_suffix$program_transform_name" = \ |
990 | NONENONEs,x,x, && | |
991 | program_prefix=${target_alias}- | |
992 | ||
698dcdb6 VZ |
993 | |
994 | ||
10f2d63a | 995 | WX_MAJOR_VERSION_NUMBER=2 |
37d403aa | 996 | WX_MINOR_VERSION_NUMBER=3 |
6c01ec02 | 997 | WX_RELEASE_NUMBER=2 |
10f2d63a | 998 | |
10f2d63a | 999 | WX_VERSION=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER.$WX_RELEASE_NUMBER |
10f2d63a | 1000 | WX_RELEASE=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER |
6426998c | 1001 | |
6c01ec02 | 1002 | WX_CURRENT=1 |
6426998c RL |
1003 | WX_REVISION=0 |
1004 | WX_AGE=0 | |
1005 | ||
698dcdb6 VZ |
1006 | |
1007 | ||
10f2d63a VZ |
1008 | USE_UNIX=1 |
1009 | USE_WIN32=0 | |
b12915c1 | 1010 | USE_BEOS=0 |
1216f52d | 1011 | USE_MAC=0 |
b12915c1 | 1012 | |
10f2d63a VZ |
1013 | USE_LINUX= |
1014 | USE_SGI= | |
1015 | USE_HPUX= | |
1016 | USE_SYSV= | |
1017 | USE_SVR4= | |
1018 | USE_AIX= | |
1019 | USE_SUN= | |
1020 | USE_SOLARIS= | |
1021 | USE_SUNOS= | |
1022 | USE_ALPHA= | |
1023 | USE_OSF= | |
1024 | USE_BSD= | |
f11bdd03 | 1025 | USE_DARWIN= |
10f2d63a | 1026 | USE_FREEBSD= |
95c8801c | 1027 | USE_OPENBSD= |
f6bcfd97 | 1028 | USE_NETBSD= |
10f2d63a VZ |
1029 | USE_VMS= |
1030 | USE_ULTRIX= | |
1031 | USE_CYGWIN= | |
1032 | USE_MINGW= | |
1033 | USE_DATA_GENERAL= | |
1034 | ||
ab9b9eab VZ |
1035 | NEEDS_D_REENTRANT_FOR_R_FUNCS=0 |
1036 | ||
1e6feb95 | 1037 | ALL_TOOLKITS="CYGWIN GTK MAC MGL MINGW MOTIF PM WINE" |
10f2d63a VZ |
1038 | |
1039 | DEFAULT_wxUSE_GTK=0 | |
1e6feb95 VZ |
1040 | DEFAULT_wxUSE_MAC=0 |
1041 | DEFAULT_wxUSE_MGL=0 | |
10f2d63a VZ |
1042 | DEFAULT_wxUSE_MOTIF=0 |
1043 | DEFAULT_wxUSE_MSW=0 | |
e07802fc | 1044 | DEFAULT_wxUSE_PM=0 |
1e6feb95 | 1045 | DEFAULT_wxUSE_WINE=0 |
10f2d63a VZ |
1046 | |
1047 | DEFAULT_DEFAULT_wxUSE_GTK=0 | |
1e6feb95 VZ |
1048 | DEFAULT_DEFAULT_wxUSE_MAC=0 |
1049 | DEFAULT_DEFAULT_wxUSE_MGL=0 | |
10f2d63a VZ |
1050 | DEFAULT_DEFAULT_wxUSE_MOTIF=0 |
1051 | DEFAULT_DEFAULT_wxUSE_MSW=0 | |
e07802fc | 1052 | DEFAULT_DEFAULT_wxUSE_PM=0 |
1e6feb95 | 1053 | DEFAULT_DEFAULT_wxUSE_WINE=0 |
10f2d63a | 1054 | |
d6a55c4b VZ |
1055 | PROGRAM_EXT= |
1056 | ||
10f2d63a VZ |
1057 | case "${host}" in |
1058 | *-hp-hpux* ) | |
1059 | USE_HPUX=1 | |
1060 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
ab9b9eab | 1061 | NEEDS_D_REENTRANT_FOR_R_FUNCS=1 |
698dcdb6 | 1062 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1063 | #define __HPUX__ 1 |
1064 | EOF | |
1065 | ||
1066 | ;; | |
1067 | *-*-linux* ) | |
1068 | USE_LINUX=1 | |
698dcdb6 | 1069 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1070 | #define __LINUX__ 1 |
1071 | EOF | |
1072 | ||
1073 | TMP=`uname -m` | |
1074 | if test "x$TMP" = "xalpha"; then | |
1075 | USE_ALPHA=1 | |
698dcdb6 | 1076 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1077 | #define __ALPHA__ 1 |
1078 | EOF | |
1079 | ||
1080 | fi | |
1081 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1082 | ;; | |
1083 | *-*-irix5* | *-*-irix6* ) | |
1084 | USE_SGI=1 | |
1085 | USE_SVR4=1 | |
698dcdb6 | 1086 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1087 | #define __SGI__ 1 |
1088 | EOF | |
1089 | ||
698dcdb6 | 1090 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1091 | #define __SVR4__ 1 |
1092 | EOF | |
1093 | ||
1094 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1095 | ;; | |
1096 | *-*-solaris2* ) | |
1097 | USE_SUN=1 | |
1098 | USE_SOLARIS=1 | |
1099 | USE_SVR4=1 | |
698dcdb6 | 1100 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1101 | #define __SUN__ 1 |
1102 | EOF | |
1103 | ||
698dcdb6 | 1104 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1105 | #define __SOLARIS__ 1 |
1106 | EOF | |
1107 | ||
698dcdb6 | 1108 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1109 | #define __SVR4__ 1 |
1110 | EOF | |
1111 | ||
1112 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
ab9b9eab | 1113 | NEEDS_D_REENTRANT_FOR_R_FUNCS=1 |
10f2d63a VZ |
1114 | ;; |
1115 | *-*-sunos4* ) | |
1116 | USE_SUN=1 | |
1117 | USE_SUNOS=1 | |
1118 | USE_BSD=1 | |
698dcdb6 | 1119 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1120 | #define __SUN__ 1 |
1121 | EOF | |
1122 | ||
698dcdb6 | 1123 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1124 | #define __SUNOS__ 1 |
1125 | EOF | |
1126 | ||
698dcdb6 | 1127 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1128 | #define __BSD__ 1 |
1129 | EOF | |
1130 | ||
1131 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1132 | ;; | |
f6bcfd97 | 1133 | *-*-freebsd*) |
10f2d63a VZ |
1134 | USE_BSD=1 |
1135 | USE_FREEBSD=1 | |
698dcdb6 | 1136 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1137 | #define __FREEBSD__ 1 |
1138 | EOF | |
1139 | ||
698dcdb6 | 1140 | cat >> confdefs.h <<\EOF |
10f2d63a | 1141 | #define __BSD__ 1 |
95c8801c VS |
1142 | EOF |
1143 | ||
1144 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1145 | ;; | |
1146 | *-*-openbsd*) | |
1147 | USE_BSD=1 | |
1148 | USE_OPENBSD=1 | |
698dcdb6 | 1149 | cat >> confdefs.h <<\EOF |
95c8801c VS |
1150 | #define __FREEBSD__ 1 |
1151 | EOF | |
1152 | ||
698dcdb6 | 1153 | cat >> confdefs.h <<\EOF |
95c8801c | 1154 | #define __OPENBSD__ 1 |
f6bcfd97 BP |
1155 | EOF |
1156 | ||
1157 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1158 | ;; | |
1159 | *-*-netbsd*) | |
1160 | USE_BSD=1 | |
1161 | USE_NETBSD=1 | |
698dcdb6 | 1162 | cat >> confdefs.h <<\EOF |
f6bcfd97 BP |
1163 | #define __FREEBSD__ 1 |
1164 | EOF | |
1165 | ||
698dcdb6 | 1166 | cat >> confdefs.h <<\EOF |
f6bcfd97 | 1167 | #define __NETBSD__ 1 |
10f2d63a VZ |
1168 | EOF |
1169 | ||
1170 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1171 | ;; | |
1172 | *-*-osf* ) | |
1173 | USE_ALPHA=1 | |
1174 | USE_OSF=1 | |
698dcdb6 | 1175 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1176 | #define __ALPHA__ 1 |
1177 | EOF | |
1178 | ||
698dcdb6 | 1179 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1180 | #define __OSF__ 1 |
1181 | EOF | |
1182 | ||
1183 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
f6bcfd97 | 1184 | NEEDS_D_REENTRANT_FOR_R_FUNCS=1 |
10f2d63a VZ |
1185 | ;; |
1186 | *-*-dgux5* ) | |
1187 | USE_ALPHA=1 | |
1188 | USE_SVR4=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 __SVR4__ 1 |
1195 | EOF | |
1196 | ||
1197 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1198 | ;; | |
1199 | *-*-sysv5* ) | |
1200 | USE_SYSV=1 | |
1201 | USE_SVR4=1 | |
698dcdb6 | 1202 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1203 | #define __SYSV__ 1 |
1204 | EOF | |
1205 | ||
698dcdb6 | 1206 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1207 | #define __SVR4__ 1 |
1208 | EOF | |
1209 | ||
1210 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1211 | ;; | |
1212 | *-*-aix* ) | |
1213 | USE_AIX=1 | |
1214 | USE_SYSV=1 | |
1215 | USE_SVR4=1 | |
698dcdb6 | 1216 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1217 | #define __AIX__ 1 |
1218 | EOF | |
1219 | ||
698dcdb6 | 1220 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1221 | #define __SYSV__ 1 |
1222 | EOF | |
1223 | ||
698dcdb6 | 1224 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1225 | #define __SVR4__ 1 |
1226 | EOF | |
1227 | ||
1228 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1229 | ;; | |
1230 | ||
1c8183e2 | 1231 | *-*-cygwin* | *-*-mingw32* ) |
10f2d63a VZ |
1232 | USE_UNIX=0 |
1233 | USE_WIN32=1 | |
698dcdb6 | 1234 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1235 | #define __WIN32__ 1 |
1236 | EOF | |
1237 | ||
698dcdb6 | 1238 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1239 | #define __WIN95__ 1 |
1240 | EOF | |
1241 | ||
698dcdb6 | 1242 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1243 | #define __WINDOWS__ 1 |
1244 | EOF | |
1245 | ||
698dcdb6 | 1246 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1247 | #define __GNUWIN32__ 1 |
1248 | EOF | |
1249 | ||
698dcdb6 | 1250 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1251 | #define STRICT 1 |
1252 | EOF | |
1253 | ||
698dcdb6 | 1254 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1255 | #define WINVER 0x0400 |
1256 | EOF | |
1257 | ||
cf27ef00 | 1258 | PROGRAM_EXT=".exe" |
10f2d63a VZ |
1259 | DEFAULT_DEFAULT_wxUSE_MSW=1 |
1260 | ;; | |
1261 | ||
1262 | *-pc-os2_emx ) | |
698dcdb6 | 1263 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1264 | #define __EMX__ 1 |
1265 | EOF | |
1266 | ||
cf27ef00 | 1267 | PROGRAM_EXT=".exe" |
e07802fc | 1268 | DEFAULT_DEFAULT_wxUSE_PM=1 |
10f2d63a VZ |
1269 | ;; |
1270 | ||
b4085ce6 GD |
1271 | *-*-darwin* ) |
1272 | USE_BSD=1 | |
f11bdd03 | 1273 | USE_DARWIN=1 |
698dcdb6 | 1274 | cat >> confdefs.h <<\EOF |
f11bdd03 | 1275 | #define __BSD__ 1 |
b4085ce6 GD |
1276 | EOF |
1277 | ||
698dcdb6 | 1278 | cat >> confdefs.h <<\EOF |
f11bdd03 | 1279 | #define __DARWIN__ 1 |
b4085ce6 GD |
1280 | EOF |
1281 | ||
698dcdb6 | 1282 | cat >> confdefs.h <<\EOF |
b4085ce6 GD |
1283 | #define __UNIX__ 1 |
1284 | EOF | |
1285 | ||
1286 | DEFAULT_DEFAULT_wxUSE_MAC=1 | |
1287 | ;; | |
1288 | ||
b12915c1 VZ |
1289 | *-*-beos* ) |
1290 | USE_BEOS=1 | |
698dcdb6 | 1291 | cat >> confdefs.h <<\EOF |
b12915c1 VZ |
1292 | #define __BEOS__ 1 |
1293 | EOF | |
1294 | ||
1295 | ;; | |
1296 | ||
10f2d63a | 1297 | *) |
698dcdb6 | 1298 | { echo "configure: error: unknown system type ${host}." 1>&2; exit 1; } |
10f2d63a VZ |
1299 | esac |
1300 | ||
1301 | if test "$USE_UNIX" = 1 ; then | |
b12915c1 | 1302 | wxUSE_UNIX=yes |
698dcdb6 | 1303 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1304 | #define __UNIX__ 1 |
1305 | EOF | |
1306 | ||
698dcdb6 | 1307 | |
b12915c1 VZ |
1308 | SRC_SUBDIRS="$SRC_SUBDIRS unix" |
1309 | INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS unix" | |
1310 | fi | |
1311 | ||
1312 | if test "$USE_BEOS" = 1; then | |
1313 | SRC_SUBDIRS="$SRC_SUBDIRS be" | |
1314 | INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS be" | |
10f2d63a VZ |
1315 | fi |
1316 | ||
1317 | if test "$USE_LINUX" = 1; then | |
698dcdb6 | 1318 | echo $ac_n "checking for gettext in -lc""... $ac_c" 1>&6 |
f11bdd03 | 1319 | echo "configure:1320: checking for gettext in -lc" >&5 |
698dcdb6 VZ |
1320 | ac_lib_var=`echo c'_'gettext | sed 'y%./+-%__p_%'` |
1321 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
1322 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1e487827 | 1323 | else |
698dcdb6 VZ |
1324 | ac_save_LIBS="$LIBS" |
1325 | LIBS="-lc $LIBS" | |
1326 | cat > conftest.$ac_ext <<EOF | |
f11bdd03 | 1327 | #line 1328 "configure" |
698dcdb6 VZ |
1328 | #include "confdefs.h" |
1329 | /* Override any gcc2 internal prototype to avoid an error. */ | |
1330 | /* We use char because int might match the return type of a gcc2 | |
1331 | builtin and then its argument prototype would still apply. */ | |
1332 | char gettext(); | |
10f2d63a | 1333 | |
698dcdb6 VZ |
1334 | int main() { |
1335 | gettext() | |
1336 | ; return 0; } | |
1337 | EOF | |
f11bdd03 | 1338 | if { (eval echo configure:1339: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
1339 | rm -rf conftest* |
1340 | eval "ac_cv_lib_$ac_lib_var=yes" | |
10f2d63a | 1341 | else |
698dcdb6 VZ |
1342 | echo "configure: failed program was:" >&5 |
1343 | cat conftest.$ac_ext >&5 | |
1344 | rm -rf conftest* | |
1345 | eval "ac_cv_lib_$ac_lib_var=no" | |
10f2d63a | 1346 | fi |
698dcdb6 VZ |
1347 | rm -f conftest* |
1348 | LIBS="$ac_save_LIBS" | |
10f2d63a VZ |
1349 | |
1350 | fi | |
698dcdb6 VZ |
1351 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
1352 | echo "$ac_t""yes" 1>&6 | |
1353 | cat >> confdefs.h <<\EOF | |
1354 | #define wxHAVE_GLIBC2 1 | |
1355 | EOF | |
10f2d63a VZ |
1356 | |
1357 | else | |
698dcdb6 | 1358 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
1359 | fi |
1360 | ||
1361 | fi | |
1362 | ||
1e487827 | 1363 | |
1e487827 | 1364 | |
6232543b | 1365 | |
10f2d63a VZ |
1366 | wx_arg_cache_file="configarg.cache" |
1367 | echo "loading argument cache $wx_arg_cache_file" | |
1368 | rm -f ${wx_arg_cache_file}.tmp | |
1369 | touch ${wx_arg_cache_file}.tmp | |
1370 | touch ${wx_arg_cache_file} | |
698dcdb6 | 1371 | |
10f2d63a VZ |
1372 | |
1373 | DEBUG_CONFIGURE=0 | |
1374 | if test $DEBUG_CONFIGURE = 1; then | |
1e6feb95 VZ |
1375 | DEFAULT_wxUSE_UNIVERSAL=no |
1376 | ||
10f2d63a VZ |
1377 | DEFAULT_wxUSE_THREADS=yes |
1378 | ||
1379 | DEFAULT_wxUSE_SHARED=yes | |
00cf1208 | 1380 | DEFAULT_wxUSE_BURNT_NAME=no |
1e6feb95 | 1381 | DEFAULT_wxUSE_OPTIMISE=no |
10f2d63a VZ |
1382 | DEFAULT_wxUSE_PROFILE=no |
1383 | DEFAULT_wxUSE_NO_DEPS=no | |
1384 | DEFAULT_wxUSE_NO_RTTI=no | |
1385 | DEFAULT_wxUSE_NO_EXCEPTIONS=no | |
1386 | DEFAULT_wxUSE_PERMISSIVE=no | |
1387 | DEFAULT_wxUSE_DEBUG_FLAG=yes | |
1388 | DEFAULT_wxUSE_DEBUG_INFO=yes | |
1389 | DEFAULT_wxUSE_DEBUG_GDB=yes | |
1390 | DEFAULT_wxUSE_MEM_TRACING=no | |
1391 | DEFAULT_wxUSE_DEBUG_CONTEXT=no | |
1392 | DEFAULT_wxUSE_DMALLOC=no | |
1393 | DEFAULT_wxUSE_APPLE_IEEE=no | |
1394 | ||
1395 | DEFAULT_wxUSE_LOG=yes | |
1e6feb95 VZ |
1396 | DEFAULT_wxUSE_LOGWINDOW=no |
1397 | DEFAULT_wxUSE_LOGGUI=no | |
10f2d63a VZ |
1398 | |
1399 | DEFAULT_wxUSE_GUI=yes | |
1e6feb95 | 1400 | DEFAULT_wxUSE_CONTROLS=no |
10f2d63a | 1401 | |
3e44f09d | 1402 | DEFAULT_wxUSE_REGEX=no |
10f2d63a VZ |
1403 | DEFAULT_wxUSE_ZLIB=no |
1404 | DEFAULT_wxUSE_LIBPNG=no | |
1405 | DEFAULT_wxUSE_LIBJPEG=no | |
c7a2bf27 | 1406 | DEFAULT_wxUSE_LIBTIFF=no |
10f2d63a | 1407 | DEFAULT_wxUSE_ODBC=no |
3fed1840 | 1408 | DEFAULT_wxUSE_FREETYPE=no |
bdad4e7e | 1409 | DEFAULT_wxUSE_OPENGL=no |
10f2d63a | 1410 | |
eb4efbdc | 1411 | DEFAULT_wxUSE_ON_FATAL_EXCEPTION=no |
4f3c5f06 | 1412 | DEFAULT_wxUSE_SNGLINST_CHECKER=no |
10f2d63a | 1413 | DEFAULT_wxUSE_STD_IOSTREAM=no |
1e6feb95 VZ |
1414 | DEFAULT_wxUSE_CMDLINE_PARSER=no |
1415 | DEFAULT_wxUSE_DATETIME=no | |
1416 | DEFAULT_wxUSE_TIMEDATE=no | |
1417 | DEFAULT_wxUSE_TIMER=no | |
1418 | DEFAULT_wxUSE_STOPWATCH=no | |
10f2d63a | 1419 | DEFAULT_wxUSE_FILE=no |
1e6feb95 | 1420 | DEFAULT_wxUSE_FFILE=no |
10f2d63a | 1421 | DEFAULT_wxUSE_TEXTFILE=no |
10f2d63a VZ |
1422 | DEFAULT_wxUSE_WAVE=no |
1423 | DEFAULT_wxUSE_INTL=no | |
1424 | DEFAULT_wxUSE_CONFIG=no | |
1e6feb95 | 1425 | DEFAULT_wxUSE_FONTMAP=no |
10f2d63a VZ |
1426 | DEFAULT_wxUSE_STREAMS=no |
1427 | DEFAULT_wxUSE_SOCKETS=no | |
1428 | DEFAULT_wxUSE_DIALUP_MANAGER=no | |
1429 | DEFAULT_wxUSE_SERIAL=no | |
1430 | DEFAULT_wxUSE_JOYSTICK=no | |
1431 | DEFAULT_wxUSE_DYNLIB_CLASS=no | |
1432 | DEFAULT_wxUSE_LONGLONG=no | |
e8f65ba6 | 1433 | DEFAULT_wxUSE_GEOMETRY=no |
10f2d63a VZ |
1434 | |
1435 | DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no | |
1436 | DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no | |
1437 | DEFAULT_wxUSE_POSTSCRIPT=no | |
1438 | ||
1439 | DEFAULT_wxUSE_X_RESOURCES=no | |
1440 | DEFAULT_wxUSE_CLIPBOARD=no | |
1441 | DEFAULT_wxUSE_TOOLTIPS=no | |
1442 | DEFAULT_wxUSE_DRAG_AND_DROP=no | |
24fd6d87 | 1443 | DEFAULT_wxUSE_DRAGIMAGE=no |
10f2d63a VZ |
1444 | DEFAULT_wxUSE_SPLINES=no |
1445 | ||
1446 | DEFAULT_wxUSE_MDI_ARCHITECTURE=no | |
1447 | DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no | |
1448 | DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no | |
1449 | ||
1450 | DEFAULT_wxUSE_PROLOGIO=no | |
1451 | DEFAULT_wxUSE_RESOURCES=no | |
1452 | DEFAULT_wxUSE_CONSTRAINTS=no | |
1453 | DEFAULT_wxUSE_IPC=no | |
1454 | DEFAULT_wxUSE_HELP=no | |
29fd3c0c | 1455 | DEFAULT_wxUSE_MS_HTML_HELP=no |
3379ed37 | 1456 | DEFAULT_wxUSE_WXHTML_HELP=no |
10f2d63a VZ |
1457 | DEFAULT_wxUSE_WXTREE=no |
1458 | DEFAULT_wxUSE_METAFILE=no | |
1e6feb95 | 1459 | DEFAULT_wxUSE_MIMETYPE=no |
3e44f09d | 1460 | DEFAULT_wxUSE_SYSTEM_OPTIONS=yes |
10f2d63a VZ |
1461 | |
1462 | DEFAULT_wxUSE_COMMONDLGS=no | |
1e6feb95 VZ |
1463 | DEFAULT_wxUSE_CHOICEDLG=no |
1464 | DEFAULT_wxUSE_COLOURDLG=no | |
10f2d63a | 1465 | DEFAULT_wxUSE_DIRDLG=no |
1e6feb95 VZ |
1466 | DEFAULT_wxUSE_FILEDLG=no |
1467 | DEFAULT_wxUSE_FONTDLG=no | |
1468 | DEFAULT_wxUSE_MSGDLG=no | |
1469 | DEFAULT_wxUSE_NUMBERDLG=no | |
10f2d63a VZ |
1470 | DEFAULT_wxUSE_TEXTDLG=no |
1471 | DEFAULT_wxUSE_STARTUP_TIPS=no | |
1472 | DEFAULT_wxUSE_PROGRESSDLG=no | |
b1f5d087 VZ |
1473 | DEFAULT_wxUSE_WIZARDDLG=no |
1474 | ||
1e6feb95 | 1475 | DEFAULT_wxUSE_MENUS=no |
10f2d63a VZ |
1476 | DEFAULT_wxUSE_MINIFRAME=no |
1477 | DEFAULT_wxUSE_HTML=no | |
24528b0c | 1478 | DEFAULT_wxUSE_FILESYSTEM=no |
10f2d63a VZ |
1479 | DEFAULT_wxUSE_FS_INET=no |
1480 | DEFAULT_wxUSE_FS_ZIP=no | |
1481 | DEFAULT_wxUSE_BUSYINFO=no | |
1482 | DEFAULT_wxUSE_ZIPSTREAM=no | |
1e6feb95 | 1483 | DEFAULT_wxUSE_VALIDATORS=no |
10f2d63a VZ |
1484 | |
1485 | DEFAULT_wxUSE_ACCEL=no | |
1e6feb95 | 1486 | DEFAULT_wxUSE_BUTTON=no |
10f2d63a | 1487 | DEFAULT_wxUSE_BMPBUTTON=no |
1e6feb95 VZ |
1488 | DEFAULT_wxUSE_CALCTRL=no |
1489 | DEFAULT_wxUSE_CARET=no | |
10f2d63a VZ |
1490 | DEFAULT_wxUSE_CHECKBOX=no |
1491 | DEFAULT_wxUSE_CHECKLST=no | |
1e6feb95 | 1492 | DEFAULT_wxUSE_CHOICE=no |
10f2d63a VZ |
1493 | DEFAULT_wxUSE_COMBOBOX=no |
1494 | DEFAULT_wxUSE_GAUGE=no | |
1495 | DEFAULT_wxUSE_GRID=no | |
1496 | DEFAULT_wxUSE_NEW_GRID=no | |
1497 | DEFAULT_wxUSE_IMAGLIST=no | |
1498 | DEFAULT_wxUSE_LISTBOX=no | |
1499 | DEFAULT_wxUSE_LISTCTRL=no | |
1500 | DEFAULT_wxUSE_NOTEBOOK=no | |
1501 | DEFAULT_wxUSE_RADIOBOX=no | |
1502 | DEFAULT_wxUSE_RADIOBTN=no | |
1503 | DEFAULT_wxUSE_SASH=no | |
1504 | DEFAULT_wxUSE_SCROLLBAR=no | |
1505 | DEFAULT_wxUSE_SLIDER=no | |
1506 | DEFAULT_wxUSE_SPINBTN=no | |
56cfaa52 | 1507 | DEFAULT_wxUSE_SPINCTRL=no |
10f2d63a VZ |
1508 | DEFAULT_wxUSE_SPLITTER=no |
1509 | DEFAULT_wxUSE_STATBMP=no | |
1510 | DEFAULT_wxUSE_STATBOX=no | |
1511 | DEFAULT_wxUSE_STATLINE=no | |
1e6feb95 | 1512 | DEFAULT_wxUSE_STATTEXT=no |
10f2d63a VZ |
1513 | DEFAULT_wxUSE_STATUSBAR=yes |
1514 | DEFAULT_wxUSE_TABDIALOG=no | |
1e6feb95 | 1515 | DEFAULT_wxUSE_TEXTCTRL=no |
1db8dc4a | 1516 | DEFAULT_wxUSE_TOGGLEBTN=no |
10f2d63a | 1517 | DEFAULT_wxUSE_TOOLBAR=no |
360d6699 VZ |
1518 | DEFAULT_wxUSE_TOOLBAR_NATIVE=no |
1519 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=no | |
10f2d63a | 1520 | DEFAULT_wxUSE_TREECTRL=no |
9f41d601 | 1521 | DEFAULT_wxUSE_POPUPWIN=no |
10f2d63a VZ |
1522 | |
1523 | DEFAULT_wxUSE_UNICODE=no | |
1524 | DEFAULT_wxUSE_WCSRTOMBS=no | |
1525 | ||
0046ff7c | 1526 | DEFAULT_wxUSE_IMAGE=no |
10f2d63a VZ |
1527 | DEFAULT_wxUSE_GIF=no |
1528 | DEFAULT_wxUSE_PCX=no | |
1529 | DEFAULT_wxUSE_PNM=no | |
0046ff7c | 1530 | DEFAULT_wxUSE_XPM=no |
10f2d63a | 1531 | else |
1e6feb95 VZ |
1532 | DEFAULT_wxUSE_UNIVERSAL=no |
1533 | ||
10f2d63a VZ |
1534 | DEFAULT_wxUSE_THREADS=yes |
1535 | ||
1536 | DEFAULT_wxUSE_SHARED=yes | |
00cf1208 | 1537 | DEFAULT_wxUSE_BURNT_NAME=no |
10f2d63a VZ |
1538 | DEFAULT_wxUSE_OPTIMISE=yes |
1539 | DEFAULT_wxUSE_PROFILE=no | |
1540 | DEFAULT_wxUSE_NO_DEPS=no | |
1541 | DEFAULT_wxUSE_NO_RTTI=no | |
1542 | DEFAULT_wxUSE_NO_EXCEPTIONS=no | |
1543 | DEFAULT_wxUSE_PERMISSIVE=no | |
1544 | DEFAULT_wxUSE_DEBUG_FLAG=no | |
1545 | DEFAULT_wxUSE_DEBUG_INFO=no | |
1546 | DEFAULT_wxUSE_DEBUG_GDB=no | |
1547 | DEFAULT_wxUSE_MEM_TRACING=no | |
1548 | DEFAULT_wxUSE_DEBUG_CONTEXT=no | |
1549 | DEFAULT_wxUSE_DMALLOC=no | |
1550 | DEFAULT_wxUSE_APPLE_IEEE=yes | |
1551 | ||
1552 | DEFAULT_wxUSE_LOG=yes | |
d73be714 VZ |
1553 | DEFAULT_wxUSE_LOGWINDOW=yes |
1554 | DEFAULT_wxUSE_LOGGUI=yes | |
10f2d63a VZ |
1555 | |
1556 | DEFAULT_wxUSE_GUI=yes | |
1557 | ||
831b3152 | 1558 | DEFAULT_wxUSE_REGEX=yes |
10f2d63a VZ |
1559 | DEFAULT_wxUSE_ZLIB=yes |
1560 | DEFAULT_wxUSE_LIBPNG=yes | |
1561 | DEFAULT_wxUSE_LIBJPEG=yes | |
b47c832e | 1562 | DEFAULT_wxUSE_LIBTIFF=yes |
16b52fa1 | 1563 | DEFAULT_wxUSE_ODBC=no |
3fed1840 | 1564 | DEFAULT_wxUSE_FREETYPE=no |
bdad4e7e | 1565 | DEFAULT_wxUSE_OPENGL=no |
10f2d63a | 1566 | |
eb4efbdc | 1567 | DEFAULT_wxUSE_ON_FATAL_EXCEPTION=yes |
4f3c5f06 | 1568 | DEFAULT_wxUSE_SNGLINST_CHECKER=yes |
10f2d63a | 1569 | DEFAULT_wxUSE_STD_IOSTREAM=no |
1e6feb95 VZ |
1570 | DEFAULT_wxUSE_CMDLINE_PARSER=yes |
1571 | DEFAULT_wxUSE_DATETIME=yes | |
1572 | DEFAULT_wxUSE_TIMEDATE=no | |
1573 | DEFAULT_wxUSE_TIMER=yes | |
1574 | DEFAULT_wxUSE_STOPWATCH=yes | |
10f2d63a | 1575 | DEFAULT_wxUSE_FILE=yes |
1e6feb95 | 1576 | DEFAULT_wxUSE_FFILE=yes |
10f2d63a | 1577 | DEFAULT_wxUSE_TEXTFILE=yes |
10f2d63a VZ |
1578 | DEFAULT_wxUSE_WAVE=no |
1579 | DEFAULT_wxUSE_INTL=yes | |
1580 | DEFAULT_wxUSE_CONFIG=yes | |
1e6feb95 | 1581 | DEFAULT_wxUSE_FONTMAP=yes |
10f2d63a VZ |
1582 | DEFAULT_wxUSE_STREAMS=yes |
1583 | DEFAULT_wxUSE_SOCKETS=yes | |
1584 | DEFAULT_wxUSE_DIALUP_MANAGER=yes | |
1585 | DEFAULT_wxUSE_SERIAL=yes | |
1586 | DEFAULT_wxUSE_JOYSTICK=yes | |
1587 | DEFAULT_wxUSE_DYNLIB_CLASS=yes | |
b685cd9b | 1588 | DEFAULT_wxUSE_LONGLONG=yes |
e8f65ba6 | 1589 | DEFAULT_wxUSE_GEOMETRY=yes |
10f2d63a VZ |
1590 | |
1591 | DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes | |
1592 | DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes | |
1593 | DEFAULT_wxUSE_POSTSCRIPT=yes | |
1594 | ||
1595 | DEFAULT_wxUSE_X_RESOURCES=no | |
1596 | DEFAULT_wxUSE_CLIPBOARD=yes | |
1597 | DEFAULT_wxUSE_TOOLTIPS=yes | |
1598 | DEFAULT_wxUSE_DRAG_AND_DROP=yes | |
24fd6d87 | 1599 | DEFAULT_wxUSE_DRAGIMAGE=yes |
10f2d63a VZ |
1600 | DEFAULT_wxUSE_SPLINES=yes |
1601 | ||
1602 | DEFAULT_wxUSE_MDI_ARCHITECTURE=yes | |
1603 | DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes | |
1604 | DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes | |
1605 | ||
1606 | DEFAULT_wxUSE_PROLOGIO=yes | |
1607 | DEFAULT_wxUSE_RESOURCES=yes | |
1608 | DEFAULT_wxUSE_CONSTRAINTS=yes | |
1609 | DEFAULT_wxUSE_IPC=yes | |
1610 | DEFAULT_wxUSE_HELP=yes | |
29fd3c0c | 1611 | DEFAULT_wxUSE_MS_HTML_HELP=yes |
3379ed37 | 1612 | DEFAULT_wxUSE_WXHTML_HELP=yes |
10f2d63a VZ |
1613 | DEFAULT_wxUSE_WXTREE=yes |
1614 | DEFAULT_wxUSE_METAFILE=yes | |
1e6feb95 | 1615 | DEFAULT_wxUSE_MIMETYPE=yes |
3e44f09d | 1616 | DEFAULT_wxUSE_SYSTEM_OPTIONS=yes |
10f2d63a VZ |
1617 | |
1618 | DEFAULT_wxUSE_COMMONDLGS=yes | |
1e6feb95 VZ |
1619 | DEFAULT_wxUSE_CHOICEDLG=yes |
1620 | DEFAULT_wxUSE_COLOURDLG=yes | |
10f2d63a | 1621 | DEFAULT_wxUSE_DIRDLG=yes |
1e6feb95 VZ |
1622 | DEFAULT_wxUSE_FILEDLG=yes |
1623 | DEFAULT_wxUSE_FONTDLG=yes | |
1624 | DEFAULT_wxUSE_MSGDLG=yes | |
1625 | DEFAULT_wxUSE_NUMBERDLG=yes | |
10f2d63a VZ |
1626 | DEFAULT_wxUSE_TEXTDLG=yes |
1627 | DEFAULT_wxUSE_STARTUP_TIPS=yes | |
1628 | DEFAULT_wxUSE_PROGRESSDLG=yes | |
f33f19dd VZ |
1629 | DEFAULT_wxUSE_WIZARDDLG=yes |
1630 | ||
1e6feb95 | 1631 | DEFAULT_wxUSE_MENUS=yes |
10f2d63a VZ |
1632 | DEFAULT_wxUSE_MINIFRAME=yes |
1633 | DEFAULT_wxUSE_HTML=yes | |
24528b0c | 1634 | DEFAULT_wxUSE_FILESYSTEM=yes |
10f2d63a VZ |
1635 | DEFAULT_wxUSE_FS_INET=yes |
1636 | DEFAULT_wxUSE_FS_ZIP=yes | |
1637 | DEFAULT_wxUSE_BUSYINFO=yes | |
1638 | DEFAULT_wxUSE_ZIPSTREAM=yes | |
1639 | DEFAULT_wxUSE_VALIDATORS=yes | |
1640 | ||
1641 | DEFAULT_wxUSE_ACCEL=yes | |
1e6feb95 | 1642 | DEFAULT_wxUSE_BUTTON=yes |
10f2d63a | 1643 | DEFAULT_wxUSE_BMPBUTTON=yes |
1e6feb95 VZ |
1644 | DEFAULT_wxUSE_CALCTRL=yes |
1645 | DEFAULT_wxUSE_CARET=yes | |
10f2d63a VZ |
1646 | DEFAULT_wxUSE_CHECKBOX=yes |
1647 | DEFAULT_wxUSE_CHECKLST=yes | |
1648 | DEFAULT_wxUSE_CHOICE=yes | |
1649 | DEFAULT_wxUSE_COMBOBOX=yes | |
1650 | DEFAULT_wxUSE_GAUGE=yes | |
1651 | DEFAULT_wxUSE_GRID=yes | |
cc977e5f | 1652 | DEFAULT_wxUSE_NEW_GRID=yes |
10f2d63a VZ |
1653 | DEFAULT_wxUSE_IMAGLIST=yes |
1654 | DEFAULT_wxUSE_LISTBOX=yes | |
1655 | DEFAULT_wxUSE_LISTCTRL=yes | |
1656 | DEFAULT_wxUSE_NOTEBOOK=yes | |
1657 | DEFAULT_wxUSE_RADIOBOX=yes | |
1658 | DEFAULT_wxUSE_RADIOBTN=yes | |
1659 | DEFAULT_wxUSE_SASH=yes | |
1660 | DEFAULT_wxUSE_SCROLLBAR=yes | |
1661 | DEFAULT_wxUSE_SLIDER=yes | |
1662 | DEFAULT_wxUSE_SPINBTN=yes | |
56cfaa52 | 1663 | DEFAULT_wxUSE_SPINCTRL=yes |
10f2d63a VZ |
1664 | DEFAULT_wxUSE_SPLITTER=yes |
1665 | DEFAULT_wxUSE_STATBMP=yes | |
1666 | DEFAULT_wxUSE_STATBOX=yes | |
1667 | DEFAULT_wxUSE_STATLINE=yes | |
1e6feb95 | 1668 | DEFAULT_wxUSE_STATTEXT=yes |
10f2d63a VZ |
1669 | DEFAULT_wxUSE_STATUSBAR=yes |
1670 | DEFAULT_wxUSE_TABDIALOG=no | |
1e6feb95 | 1671 | DEFAULT_wxUSE_TEXTCTRL=yes |
1db8dc4a | 1672 | DEFAULT_wxUSE_TOGGLEBTN=yes |
10f2d63a | 1673 | DEFAULT_wxUSE_TOOLBAR=yes |
360d6699 VZ |
1674 | DEFAULT_wxUSE_TOOLBAR_NATIVE=yes |
1675 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes | |
10f2d63a | 1676 | DEFAULT_wxUSE_TREECTRL=yes |
9f41d601 | 1677 | DEFAULT_wxUSE_POPUPWIN=yes |
10f2d63a VZ |
1678 | |
1679 | DEFAULT_wxUSE_UNICODE=no | |
1680 | DEFAULT_wxUSE_WCSRTOMBS=no | |
1681 | ||
0046ff7c | 1682 | DEFAULT_wxUSE_IMAGE=yes |
10f2d63a VZ |
1683 | DEFAULT_wxUSE_GIF=yes |
1684 | DEFAULT_wxUSE_PCX=yes | |
1685 | DEFAULT_wxUSE_PNM=yes | |
0046ff7c | 1686 | DEFAULT_wxUSE_XPM=yes |
10f2d63a VZ |
1687 | fi |
1688 | ||
698dcdb6 VZ |
1689 | |
1690 | ||
10f2d63a VZ |
1691 | for toolkit in `echo $ALL_TOOLKITS`; do |
1692 | LINE=`grep "wxUSE_$toolkit" ${wx_arg_cache_file}` | |
1693 | if test "x$LINE" != x ; then | |
1694 | has_toolkit_in_cache=1 | |
1695 | eval "DEFAULT_$LINE" | |
1696 | eval "CACHE_$toolkit=1" | |
1697 | fi | |
1698 | done | |
1699 | ||
698dcdb6 VZ |
1700 | |
1701 | ||
1702 | echo $ac_n "checking for --enable-gui""... $ac_c" 1>&6 | |
031d8228 | 1703 | echo "configure:1704: checking for --enable-gui" >&5 |
10f2d63a VZ |
1704 | no_cache=0 |
1705 | # Check whether --enable-gui or --disable-gui was given. | |
1706 | if test "${enable_gui+set}" = set; then | |
1707 | enableval="$enable_gui" | |
698dcdb6 | 1708 | |
10f2d63a VZ |
1709 | if test "$enableval" = yes; then |
1710 | ac_cv_use_gui='wxUSE_GUI=yes' | |
1711 | else | |
1712 | ac_cv_use_gui='wxUSE_GUI=no' | |
1713 | fi | |
698dcdb6 | 1714 | |
10f2d63a | 1715 | else |
698dcdb6 | 1716 | |
10f2d63a VZ |
1717 | LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}` |
1718 | if test "x$LINE" != x ; then | |
1719 | eval "DEFAULT_$LINE" | |
1720 | else | |
1721 | no_cache=1 | |
1722 | fi | |
1723 | ||
1724 | ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI | |
698dcdb6 VZ |
1725 | |
1726 | fi | |
10f2d63a VZ |
1727 | |
1728 | ||
1729 | eval "$ac_cv_use_gui" | |
1730 | if test "$no_cache" != 1; then | |
1731 | echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp | |
1732 | fi | |
1733 | ||
1734 | if test "$wxUSE_GUI" = yes; then | |
698dcdb6 | 1735 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 1736 | else |
698dcdb6 | 1737 | echo "$ac_t""no" 1>&6 |
10f2d63a | 1738 | fi |
698dcdb6 | 1739 | |
10f2d63a | 1740 | |
b12915c1 | 1741 | if test "$wxUSE_GUI" = "yes"; then |
10f2d63a | 1742 | |
1e6feb95 VZ |
1743 | |
1744 | echo $ac_n "checking for --enable-universal""... $ac_c" 1>&6 | |
031d8228 | 1745 | echo "configure:1746: checking for --enable-universal" >&5 |
1e6feb95 VZ |
1746 | no_cache=0 |
1747 | # Check whether --enable-universal or --disable-universal was given. | |
1748 | if test "${enable_universal+set}" = set; then | |
1749 | enableval="$enable_universal" | |
1750 | ||
1751 | if test "$enableval" = yes; then | |
1752 | ac_cv_use_universal='wxUSE_UNIVERSAL=yes' | |
1753 | else | |
1754 | ac_cv_use_universal='wxUSE_UNIVERSAL=no' | |
1755 | fi | |
1756 | ||
1757 | else | |
1758 | ||
1759 | LINE=`grep "wxUSE_UNIVERSAL" ${wx_arg_cache_file}` | |
1760 | if test "x$LINE" != x ; then | |
1761 | eval "DEFAULT_$LINE" | |
1762 | else | |
1763 | no_cache=1 | |
1764 | fi | |
1765 | ||
1766 | ac_cv_use_universal='wxUSE_UNIVERSAL='$DEFAULT_wxUSE_UNIVERSAL | |
1767 | ||
1768 | fi | |
1769 | ||
1770 | ||
1771 | eval "$ac_cv_use_universal" | |
1772 | if test "$no_cache" != 1; then | |
1773 | echo $ac_cv_use_universal >> ${wx_arg_cache_file}.tmp | |
1774 | fi | |
1775 | ||
1776 | if test "$wxUSE_UNIVERSAL" = yes; then | |
1777 | echo "$ac_t""yes" 1>&6 | |
1778 | else | |
1779 | echo "$ac_t""no" 1>&6 | |
1780 | fi | |
1781 | ||
10f2d63a VZ |
1782 | # Check whether --with-gtk or --without-gtk was given. |
1783 | if test "${with_gtk+set}" = set; then | |
1784 | withval="$with_gtk" | |
1785 | wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1 | |
698dcdb6 | 1786 | fi |
10f2d63a VZ |
1787 | |
1788 | # Check whether --with-motif or --without-motif was given. | |
1789 | if test "${with_motif+set}" = set; then | |
1790 | withval="$with_motif" | |
1791 | wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1 | |
698dcdb6 | 1792 | fi |
10f2d63a | 1793 | |
b4085ce6 GD |
1794 | # Check whether --with-mac or --without-mac was given. |
1795 | if test "${with_mac+set}" = set; then | |
1796 | withval="$with_mac" | |
1797 | wxUSE_MAC="$withval" TOOLKIT_GIVEN=1 | |
698dcdb6 | 1798 | fi |
b4085ce6 | 1799 | |
10f2d63a VZ |
1800 | # Check whether --with-wine or --without-wine was given. |
1801 | if test "${with_wine+set}" = set; then | |
1802 | withval="$with_wine" | |
1803 | wxUSE_WINE="$withval" CACHE_WINE=1 TOOLKIT_GIVEN=1 | |
698dcdb6 | 1804 | fi |
10f2d63a VZ |
1805 | |
1806 | # Check whether --with-cygwin or --without-cygwin was given. | |
1807 | if test "${with_cygwin+set}" = set; then | |
1808 | withval="$with_cygwin" | |
1809 | wxUSE_CYGWIN="$withval" CACHE_CYGWIN=1 TOOLKIT_GIVEN=1 | |
698dcdb6 | 1810 | fi |
10f2d63a VZ |
1811 | |
1812 | # Check whether --with-mingw or --without-mingw was given. | |
1813 | if test "${with_mingw+set}" = set; then | |
1814 | withval="$with_mingw" | |
1815 | wxUSE_MINGW="$withval" CACHE_MINGW=1 TOOLKIT_GIVEN=1 | |
698dcdb6 | 1816 | fi |
10f2d63a | 1817 | |
e07802fc VZ |
1818 | # Check whether --with-pm or --without-pm was given. |
1819 | if test "${with_pm+set}" = set; then | |
1820 | withval="$with_pm" | |
1821 | wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1 | |
698dcdb6 VZ |
1822 | fi |
1823 | ||
1e6feb95 VZ |
1824 | # Check whether --with-mgl or --without-mgl was given. |
1825 | if test "${with_mgl+set}" = set; then | |
1826 | withval="$with_mgl" | |
1827 | wxUSE_MGL="$withval" CACHE_MGL=1 TOOLKIT_GIVEN=1 | |
1828 | fi | |
1829 | ||
10f2d63a | 1830 | |
8168de4c VZ |
1831 | # Check whether --enable-gtk2 or --disable-gtk2 was given. |
1832 | if test "${enable_gtk2+set}" = set; then | |
1833 | enableval="$enable_gtk2" | |
1834 | wxUSE_GTK2=1 | |
10f2d63a | 1835 | else |
8168de4c | 1836 | wxUSE_GTK2=0 |
698dcdb6 VZ |
1837 | fi |
1838 | ||
703e0a69 | 1839 | |
1e487827 | 1840 | |
698dcdb6 | 1841 | echo $ac_n "checking for --with-libpng""... $ac_c" 1>&6 |
031d8228 | 1842 | echo "configure:1843: checking for --with-libpng" >&5 |
698dcdb6 VZ |
1843 | no_cache=0 |
1844 | # Check whether --with-libpng or --without-libpng was given. | |
b12915c1 VZ |
1845 | if test "${with_libpng+set}" = set; then |
1846 | withval="$with_libpng" | |
698dcdb6 | 1847 | |
10f2d63a | 1848 | if test "$withval" = yes; then |
b12915c1 | 1849 | ac_cv_use_libpng='wxUSE_LIBPNG=yes' |
422107f9 | 1850 | elif test "$withval" = no; then |
b12915c1 | 1851 | ac_cv_use_libpng='wxUSE_LIBPNG=no' |
422107f9 VZ |
1852 | elif test "$withval" = sys; then |
1853 | ac_cv_use_libpng='wxUSE_LIBPNG=sys' | |
1854 | else | |
698dcdb6 | 1855 | { echo "configure: error: Invalid value for --with-libpng: should be yes, no or sys" 1>&2; exit 1; } |
10f2d63a | 1856 | fi |
698dcdb6 | 1857 | |
10f2d63a | 1858 | else |
698dcdb6 | 1859 | |
b12915c1 | 1860 | LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}` |
10f2d63a VZ |
1861 | if test "x$LINE" != x ; then |
1862 | eval "DEFAULT_$LINE" | |
1863 | else | |
1864 | no_cache=1 | |
1865 | fi | |
1866 | ||
b12915c1 | 1867 | ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG |
698dcdb6 VZ |
1868 | |
1869 | fi | |
10f2d63a VZ |
1870 | |
1871 | ||
b12915c1 | 1872 | eval "$ac_cv_use_libpng" |
10f2d63a | 1873 | if test "$no_cache" != 1; then |
b12915c1 | 1874 | echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
1875 | fi |
1876 | ||
b12915c1 | 1877 | if test "$wxUSE_LIBPNG" = yes; then |
698dcdb6 | 1878 | echo "$ac_t""yes" 1>&6 |
422107f9 | 1879 | elif test "$wxUSE_LIBPNG" = no; then |
698dcdb6 | 1880 | echo "$ac_t""no" 1>&6 |
422107f9 | 1881 | elif test "$wxUSE_LIBPNG" = sys; then |
698dcdb6 | 1882 | echo "$ac_t""system version" 1>&6 |
422107f9 | 1883 | else |
698dcdb6 | 1884 | { echo "configure: error: Invalid value for --with-libpng: should be yes, no or sys" 1>&2; exit 1; } |
10f2d63a | 1885 | fi |
698dcdb6 | 1886 | |
10f2d63a | 1887 | |
698dcdb6 | 1888 | echo $ac_n "checking for --with-libjpeg""... $ac_c" 1>&6 |
031d8228 | 1889 | echo "configure:1890: checking for --with-libjpeg" >&5 |
10f2d63a | 1890 | no_cache=0 |
698dcdb6 | 1891 | # Check whether --with-libjpeg or --without-libjpeg was given. |
b12915c1 VZ |
1892 | if test "${with_libjpeg+set}" = set; then |
1893 | withval="$with_libjpeg" | |
698dcdb6 | 1894 | |
10f2d63a | 1895 | if test "$withval" = yes; then |
b12915c1 | 1896 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes' |
422107f9 | 1897 | elif test "$withval" = no; then |
b12915c1 | 1898 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=no' |
422107f9 VZ |
1899 | elif test "$withval" = sys; then |
1900 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=sys' | |
1901 | else | |
698dcdb6 | 1902 | { echo "configure: error: Invalid value for --with-libjpeg: should be yes, no or sys" 1>&2; exit 1; } |
10f2d63a | 1903 | fi |
698dcdb6 | 1904 | |
10f2d63a | 1905 | else |
698dcdb6 | 1906 | |
b12915c1 | 1907 | LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}` |
10f2d63a VZ |
1908 | if test "x$LINE" != x ; then |
1909 | eval "DEFAULT_$LINE" | |
1910 | else | |
1911 | no_cache=1 | |
1912 | fi | |
1913 | ||
b12915c1 | 1914 | ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG |
698dcdb6 VZ |
1915 | |
1916 | fi | |
10f2d63a VZ |
1917 | |
1918 | ||
b12915c1 | 1919 | eval "$ac_cv_use_libjpeg" |
10f2d63a | 1920 | if test "$no_cache" != 1; then |
b12915c1 | 1921 | echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
1922 | fi |
1923 | ||
b12915c1 | 1924 | if test "$wxUSE_LIBJPEG" = yes; then |
698dcdb6 | 1925 | echo "$ac_t""yes" 1>&6 |
422107f9 | 1926 | elif test "$wxUSE_LIBJPEG" = no; then |
698dcdb6 | 1927 | echo "$ac_t""no" 1>&6 |
422107f9 | 1928 | elif test "$wxUSE_LIBJPEG" = sys; then |
698dcdb6 | 1929 | echo "$ac_t""system version" 1>&6 |
422107f9 | 1930 | else |
698dcdb6 | 1931 | { echo "configure: error: Invalid value for --with-libjpeg: should be yes, no or sys" 1>&2; exit 1; } |
10f2d63a | 1932 | fi |
698dcdb6 | 1933 | |
10f2d63a | 1934 | |
698dcdb6 | 1935 | echo $ac_n "checking for --with-libtiff""... $ac_c" 1>&6 |
031d8228 | 1936 | echo "configure:1937: checking for --with-libtiff" >&5 |
10f2d63a | 1937 | no_cache=0 |
698dcdb6 | 1938 | # Check whether --with-libtiff or --without-libtiff was given. |
b12915c1 VZ |
1939 | if test "${with_libtiff+set}" = set; then |
1940 | withval="$with_libtiff" | |
698dcdb6 | 1941 | |
10f2d63a | 1942 | if test "$withval" = yes; then |
b12915c1 | 1943 | ac_cv_use_libtiff='wxUSE_LIBTIFF=yes' |
0dcf9893 | 1944 | elif test "$withval" = no; then |
b12915c1 | 1945 | ac_cv_use_libtiff='wxUSE_LIBTIFF=no' |
0dcf9893 VZ |
1946 | elif test "$withval" = sys; then |
1947 | ac_cv_use_libtiff='wxUSE_LIBTIFF=sys' | |
1948 | else | |
698dcdb6 | 1949 | { echo "configure: error: Invalid value for --with-libtiff: should be yes, no or sys" 1>&2; exit 1; } |
10f2d63a | 1950 | fi |
698dcdb6 | 1951 | |
10f2d63a | 1952 | else |
698dcdb6 | 1953 | |
b12915c1 | 1954 | LINE=`grep "wxUSE_LIBTIFF" ${wx_arg_cache_file}` |
10f2d63a VZ |
1955 | if test "x$LINE" != x ; then |
1956 | eval "DEFAULT_$LINE" | |
1957 | else | |
1958 | no_cache=1 | |
1959 | fi | |
1960 | ||
b12915c1 | 1961 | ac_cv_use_libtiff='wxUSE_LIBTIFF='$DEFAULT_wxUSE_LIBTIFF |
698dcdb6 VZ |
1962 | |
1963 | fi | |
10f2d63a VZ |
1964 | |
1965 | ||
b12915c1 | 1966 | eval "$ac_cv_use_libtiff" |
10f2d63a | 1967 | if test "$no_cache" != 1; then |
b12915c1 | 1968 | echo $ac_cv_use_libtiff >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
1969 | fi |
1970 | ||
b12915c1 | 1971 | if test "$wxUSE_LIBTIFF" = yes; then |
698dcdb6 | 1972 | echo "$ac_t""yes" 1>&6 |
0dcf9893 | 1973 | elif test "$wxUSE_LIBTIFF" = no; then |
698dcdb6 | 1974 | echo "$ac_t""no" 1>&6 |
0dcf9893 | 1975 | elif test "$wxUSE_LIBTIFF" = sys; then |
698dcdb6 | 1976 | echo "$ac_t""system version" 1>&6 |
0dcf9893 | 1977 | else |
698dcdb6 | 1978 | { echo "configure: error: Invalid value for --with-libtiff: should be yes, no or sys" 1>&2; exit 1; } |
10f2d63a | 1979 | fi |
698dcdb6 | 1980 | |
10f2d63a | 1981 | |
698dcdb6 | 1982 | echo $ac_n "checking for --with-freetype""... $ac_c" 1>&6 |
031d8228 | 1983 | echo "configure:1984: checking for --with-freetype" >&5 |
3fed1840 | 1984 | no_cache=0 |
698dcdb6 | 1985 | # Check whether --with-freetype or --without-freetype was given. |
3fed1840 RR |
1986 | if test "${with_freetype+set}" = set; then |
1987 | withval="$with_freetype" | |
698dcdb6 | 1988 | |
3fed1840 RR |
1989 | if test "$withval" = yes; then |
1990 | ac_cv_use_freetype='wxUSE_FREETYPE=yes' | |
1991 | elif test "$withval" = no; then | |
1992 | ac_cv_use_freetype='wxUSE_FREETYPE=no' | |
1993 | elif test "$withval" = sys; then | |
1994 | ac_cv_use_freetype='wxUSE_FREETYPE=sys' | |
1995 | else | |
698dcdb6 | 1996 | { echo "configure: error: Invalid value for --with-freetype: should be yes, no or sys" 1>&2; exit 1; } |
3fed1840 | 1997 | fi |
698dcdb6 | 1998 | |
3fed1840 | 1999 | else |
698dcdb6 | 2000 | |
3fed1840 RR |
2001 | LINE=`grep "wxUSE_FREETYPE" ${wx_arg_cache_file}` |
2002 | if test "x$LINE" != x ; then | |
2003 | eval "DEFAULT_$LINE" | |
2004 | else | |
2005 | no_cache=1 | |
2006 | fi | |
2007 | ||
2008 | ac_cv_use_freetype='wxUSE_FREETYPE='$DEFAULT_wxUSE_FREETYPE | |
698dcdb6 VZ |
2009 | |
2010 | fi | |
3fed1840 RR |
2011 | |
2012 | ||
2013 | eval "$ac_cv_use_freetype" | |
2014 | if test "$no_cache" != 1; then | |
2015 | echo $ac_cv_use_freetype >> ${wx_arg_cache_file}.tmp | |
2016 | fi | |
2017 | ||
2018 | if test "$wxUSE_FREETYPE" = yes; then | |
698dcdb6 | 2019 | echo "$ac_t""yes" 1>&6 |
3fed1840 | 2020 | elif test "$wxUSE_FREETYPE" = no; then |
698dcdb6 | 2021 | echo "$ac_t""no" 1>&6 |
3fed1840 | 2022 | elif test "$wxUSE_FREETYPE" = sys; then |
698dcdb6 | 2023 | echo "$ac_t""system version" 1>&6 |
3fed1840 | 2024 | else |
698dcdb6 | 2025 | { echo "configure: error: Invalid value for --with-freetype: should be yes, no or sys" 1>&2; exit 1; } |
3fed1840 | 2026 | fi |
698dcdb6 | 2027 | |
3fed1840 | 2028 | |
698dcdb6 | 2029 | echo $ac_n "checking for --with-opengl""... $ac_c" 1>&6 |
031d8228 | 2030 | echo "configure:2031: checking for --with-opengl" >&5 |
10f2d63a | 2031 | no_cache=0 |
698dcdb6 | 2032 | # Check whether --with-opengl or --without-opengl was given. |
b12915c1 VZ |
2033 | if test "${with_opengl+set}" = set; then |
2034 | withval="$with_opengl" | |
698dcdb6 | 2035 | |
10f2d63a | 2036 | if test "$withval" = yes; then |
b12915c1 | 2037 | ac_cv_use_opengl='wxUSE_OPENGL=yes' |
10f2d63a | 2038 | else |
b12915c1 | 2039 | ac_cv_use_opengl='wxUSE_OPENGL=no' |
10f2d63a | 2040 | fi |
698dcdb6 | 2041 | |
10f2d63a | 2042 | else |
698dcdb6 | 2043 | |
b12915c1 | 2044 | LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}` |
10f2d63a VZ |
2045 | if test "x$LINE" != x ; then |
2046 | eval "DEFAULT_$LINE" | |
2047 | else | |
2048 | no_cache=1 | |
2049 | fi | |
2050 | ||
b12915c1 | 2051 | ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL |
698dcdb6 VZ |
2052 | |
2053 | fi | |
10f2d63a VZ |
2054 | |
2055 | ||
b12915c1 | 2056 | eval "$ac_cv_use_opengl" |
10f2d63a | 2057 | if test "$no_cache" != 1; then |
b12915c1 | 2058 | echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
2059 | fi |
2060 | ||
b12915c1 | 2061 | if test "$wxUSE_OPENGL" = yes; then |
698dcdb6 | 2062 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2063 | else |
698dcdb6 | 2064 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2065 | fi |
698dcdb6 | 2066 | |
10f2d63a | 2067 | |
b12915c1 VZ |
2068 | fi |
2069 | ||
1e487827 | 2070 | |
698dcdb6 | 2071 | echo $ac_n "checking for --with-dmalloc""... $ac_c" 1>&6 |
031d8228 | 2072 | echo "configure:2073: checking for --with-dmalloc" >&5 |
698dcdb6 VZ |
2073 | no_cache=0 |
2074 | # Check whether --with-dmalloc or --without-dmalloc was given. | |
b12915c1 VZ |
2075 | if test "${with_dmalloc+set}" = set; then |
2076 | withval="$with_dmalloc" | |
698dcdb6 | 2077 | |
c7a2bf27 | 2078 | if test "$withval" = yes; then |
b12915c1 | 2079 | ac_cv_use_dmalloc='wxUSE_DMALLOC=yes' |
c7a2bf27 | 2080 | else |
b12915c1 | 2081 | ac_cv_use_dmalloc='wxUSE_DMALLOC=no' |
c7a2bf27 | 2082 | fi |
698dcdb6 | 2083 | |
c7a2bf27 | 2084 | else |
698dcdb6 | 2085 | |
b12915c1 | 2086 | LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}` |
c7a2bf27 RR |
2087 | if test "x$LINE" != x ; then |
2088 | eval "DEFAULT_$LINE" | |
2089 | else | |
2090 | no_cache=1 | |
2091 | fi | |
2092 | ||
b12915c1 | 2093 | ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC |
698dcdb6 VZ |
2094 | |
2095 | fi | |
c7a2bf27 RR |
2096 | |
2097 | ||
b12915c1 | 2098 | eval "$ac_cv_use_dmalloc" |
c7a2bf27 | 2099 | if test "$no_cache" != 1; then |
b12915c1 | 2100 | echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp |
c7a2bf27 RR |
2101 | fi |
2102 | ||
b12915c1 | 2103 | if test "$wxUSE_DMALLOC" = yes; then |
698dcdb6 | 2104 | echo "$ac_t""yes" 1>&6 |
c7a2bf27 | 2105 | else |
698dcdb6 | 2106 | echo "$ac_t""no" 1>&6 |
c7a2bf27 | 2107 | fi |
698dcdb6 | 2108 | |
c7a2bf27 | 2109 | |
3e44f09d | 2110 | echo $ac_n "checking for --with-regex""... $ac_c" 1>&6 |
031d8228 | 2111 | echo "configure:2112: checking for --with-regex" >&5 |
3e44f09d VZ |
2112 | no_cache=0 |
2113 | # Check whether --with-regex or --without-regex was given. | |
2114 | if test "${with_regex+set}" = set; then | |
2115 | withval="$with_regex" | |
2116 | ||
2117 | if test "$withval" = yes; then | |
2118 | ac_cv_use_regex='wxUSE_REGEX=yes' | |
2119 | elif test "$withval" = no; then | |
2120 | ac_cv_use_regex='wxUSE_REGEX=no' | |
2121 | elif test "$withval" = sys; then | |
2122 | ac_cv_use_regex='wxUSE_REGEX=sys' | |
2123 | else | |
2124 | { echo "configure: error: Invalid value for --with-regex: should be yes, no or sys" 1>&2; exit 1; } | |
2125 | fi | |
2126 | ||
2127 | else | |
2128 | ||
2129 | LINE=`grep "wxUSE_REGEX" ${wx_arg_cache_file}` | |
2130 | if test "x$LINE" != x ; then | |
2131 | eval "DEFAULT_$LINE" | |
2132 | else | |
2133 | no_cache=1 | |
2134 | fi | |
2135 | ||
2136 | ac_cv_use_regex='wxUSE_REGEX='$DEFAULT_wxUSE_REGEX | |
2137 | ||
2138 | fi | |
2139 | ||
2140 | ||
2141 | eval "$ac_cv_use_regex" | |
2142 | if test "$no_cache" != 1; then | |
2143 | echo $ac_cv_use_regex >> ${wx_arg_cache_file}.tmp | |
2144 | fi | |
2145 | ||
2146 | if test "$wxUSE_REGEX" = yes; then | |
2147 | echo "$ac_t""yes" 1>&6 | |
2148 | elif test "$wxUSE_REGEX" = no; then | |
2149 | echo "$ac_t""no" 1>&6 | |
2150 | elif test "$wxUSE_REGEX" = sys; then | |
2151 | echo "$ac_t""system version" 1>&6 | |
2152 | else | |
2153 | { echo "configure: error: Invalid value for --with-regex: should be yes, no or sys" 1>&2; exit 1; } | |
2154 | fi | |
2155 | ||
2156 | ||
698dcdb6 | 2157 | echo $ac_n "checking for --with-zlib""... $ac_c" 1>&6 |
031d8228 | 2158 | echo "configure:2159: checking for --with-zlib" >&5 |
10f2d63a | 2159 | no_cache=0 |
698dcdb6 | 2160 | # Check whether --with-zlib or --without-zlib was given. |
b12915c1 VZ |
2161 | if test "${with_zlib+set}" = set; then |
2162 | withval="$with_zlib" | |
698dcdb6 | 2163 | |
10f2d63a | 2164 | if test "$withval" = yes; then |
b12915c1 | 2165 | ac_cv_use_zlib='wxUSE_ZLIB=yes' |
422107f9 | 2166 | elif test "$withval" = no; then |
b12915c1 | 2167 | ac_cv_use_zlib='wxUSE_ZLIB=no' |
422107f9 VZ |
2168 | elif test "$withval" = sys; then |
2169 | ac_cv_use_zlib='wxUSE_ZLIB=sys' | |
2170 | else | |
698dcdb6 | 2171 | { echo "configure: error: Invalid value for --with-zlib: should be yes, no or sys" 1>&2; exit 1; } |
10f2d63a | 2172 | fi |
698dcdb6 | 2173 | |
10f2d63a | 2174 | else |
698dcdb6 | 2175 | |
b12915c1 | 2176 | LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}` |
10f2d63a VZ |
2177 | if test "x$LINE" != x ; then |
2178 | eval "DEFAULT_$LINE" | |
2179 | else | |
2180 | no_cache=1 | |
2181 | fi | |
2182 | ||
b12915c1 | 2183 | ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB |
698dcdb6 VZ |
2184 | |
2185 | fi | |
10f2d63a VZ |
2186 | |
2187 | ||
b12915c1 | 2188 | eval "$ac_cv_use_zlib" |
10f2d63a | 2189 | if test "$no_cache" != 1; then |
b12915c1 | 2190 | echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
2191 | fi |
2192 | ||
b12915c1 | 2193 | if test "$wxUSE_ZLIB" = yes; then |
698dcdb6 | 2194 | echo "$ac_t""yes" 1>&6 |
422107f9 | 2195 | elif test "$wxUSE_ZLIB" = no; then |
698dcdb6 | 2196 | echo "$ac_t""no" 1>&6 |
422107f9 | 2197 | elif test "$wxUSE_ZLIB" = sys; then |
698dcdb6 | 2198 | echo "$ac_t""system version" 1>&6 |
422107f9 | 2199 | else |
698dcdb6 | 2200 | { echo "configure: error: Invalid value for --with-zlib: should be yes, no or sys" 1>&2; exit 1; } |
10f2d63a | 2201 | fi |
698dcdb6 | 2202 | |
10f2d63a | 2203 | |
698dcdb6 | 2204 | echo $ac_n "checking for --with-odbc""... $ac_c" 1>&6 |
031d8228 | 2205 | echo "configure:2206: checking for --with-odbc" >&5 |
10f2d63a | 2206 | no_cache=0 |
698dcdb6 | 2207 | # Check whether --with-odbc or --without-odbc was given. |
10f2d63a VZ |
2208 | if test "${with_odbc+set}" = set; then |
2209 | withval="$with_odbc" | |
698dcdb6 | 2210 | |
10f2d63a VZ |
2211 | if test "$withval" = yes; then |
2212 | ac_cv_use_odbc='wxUSE_ODBC=yes' | |
2213 | else | |
2214 | ac_cv_use_odbc='wxUSE_ODBC=no' | |
2215 | fi | |
698dcdb6 | 2216 | |
10f2d63a | 2217 | else |
698dcdb6 | 2218 | |
10f2d63a VZ |
2219 | LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}` |
2220 | if test "x$LINE" != x ; then | |
2221 | eval "DEFAULT_$LINE" | |
2222 | else | |
2223 | no_cache=1 | |
2224 | fi | |
2225 | ||
2226 | ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC | |
698dcdb6 VZ |
2227 | |
2228 | fi | |
10f2d63a VZ |
2229 | |
2230 | ||
2231 | eval "$ac_cv_use_odbc" | |
2232 | if test "$no_cache" != 1; then | |
2233 | echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp | |
2234 | fi | |
2235 | ||
2236 | if test "$wxUSE_ODBC" = yes; then | |
698dcdb6 | 2237 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2238 | else |
698dcdb6 | 2239 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2240 | fi |
698dcdb6 VZ |
2241 | |
2242 | ||
10f2d63a | 2243 | |
698dcdb6 VZ |
2244 | |
2245 | ||
2246 | echo $ac_n "checking for --enable-shared""... $ac_c" 1>&6 | |
031d8228 | 2247 | echo "configure:2248: checking for --enable-shared" >&5 |
10f2d63a VZ |
2248 | no_cache=0 |
2249 | # Check whether --enable-shared or --disable-shared was given. | |
2250 | if test "${enable_shared+set}" = set; then | |
2251 | enableval="$enable_shared" | |
698dcdb6 | 2252 | |
10f2d63a VZ |
2253 | if test "$enableval" = yes; then |
2254 | ac_cv_use_shared='wxUSE_SHARED=yes' | |
2255 | else | |
2256 | ac_cv_use_shared='wxUSE_SHARED=no' | |
2257 | fi | |
698dcdb6 | 2258 | |
10f2d63a | 2259 | else |
698dcdb6 | 2260 | |
10f2d63a VZ |
2261 | LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}` |
2262 | if test "x$LINE" != x ; then | |
2263 | eval "DEFAULT_$LINE" | |
2264 | else | |
2265 | no_cache=1 | |
2266 | fi | |
2267 | ||
2268 | ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED | |
698dcdb6 VZ |
2269 | |
2270 | fi | |
10f2d63a VZ |
2271 | |
2272 | ||
2273 | eval "$ac_cv_use_shared" | |
2274 | if test "$no_cache" != 1; then | |
2275 | echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp | |
2276 | fi | |
2277 | ||
2278 | if test "$wxUSE_SHARED" = yes; then | |
698dcdb6 | 2279 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2280 | else |
698dcdb6 | 2281 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2282 | fi |
698dcdb6 | 2283 | |
10f2d63a | 2284 | |
698dcdb6 | 2285 | echo $ac_n "checking for --enable-burnt_name""... $ac_c" 1>&6 |
031d8228 | 2286 | echo "configure:2287: checking for --enable-burnt_name" >&5 |
00cf1208 RR |
2287 | no_cache=0 |
2288 | # Check whether --enable-burnt_name or --disable-burnt_name was given. | |
2289 | if test "${enable_burnt_name+set}" = set; then | |
2290 | enableval="$enable_burnt_name" | |
698dcdb6 | 2291 | |
00cf1208 RR |
2292 | if test "$enableval" = yes; then |
2293 | ac_cv_use_burnt_name='wxUSE_BURNT_NAME=yes' | |
2294 | else | |
2295 | ac_cv_use_burnt_name='wxUSE_BURNT_NAME=no' | |
2296 | fi | |
698dcdb6 | 2297 | |
00cf1208 | 2298 | else |
698dcdb6 | 2299 | |
00cf1208 RR |
2300 | LINE=`grep "wxUSE_BURNT_NAME" ${wx_arg_cache_file}` |
2301 | if test "x$LINE" != x ; then | |
2302 | eval "DEFAULT_$LINE" | |
2303 | else | |
2304 | no_cache=1 | |
2305 | fi | |
2306 | ||
2307 | ac_cv_use_burnt_name='wxUSE_BURNT_NAME='$DEFAULT_wxUSE_BURNT_NAME | |
698dcdb6 VZ |
2308 | |
2309 | fi | |
00cf1208 RR |
2310 | |
2311 | ||
2312 | eval "$ac_cv_use_burnt_name" | |
2313 | if test "$no_cache" != 1; then | |
2314 | echo $ac_cv_use_burnt_name >> ${wx_arg_cache_file}.tmp | |
2315 | fi | |
2316 | ||
2317 | if test "$wxUSE_BURNT_NAME" = yes; then | |
698dcdb6 | 2318 | echo "$ac_t""yes" 1>&6 |
00cf1208 | 2319 | else |
698dcdb6 | 2320 | echo "$ac_t""no" 1>&6 |
00cf1208 | 2321 | fi |
698dcdb6 | 2322 | |
00cf1208 | 2323 | |
698dcdb6 | 2324 | echo $ac_n "checking for --enable-optimise""... $ac_c" 1>&6 |
031d8228 | 2325 | echo "configure:2326: checking for --enable-optimise" >&5 |
10f2d63a VZ |
2326 | no_cache=0 |
2327 | # Check whether --enable-optimise or --disable-optimise was given. | |
2328 | if test "${enable_optimise+set}" = set; then | |
2329 | enableval="$enable_optimise" | |
698dcdb6 | 2330 | |
10f2d63a VZ |
2331 | if test "$enableval" = yes; then |
2332 | ac_cv_use_optimise='wxUSE_OPTIMISE=yes' | |
2333 | else | |
2334 | ac_cv_use_optimise='wxUSE_OPTIMISE=no' | |
2335 | fi | |
698dcdb6 | 2336 | |
10f2d63a | 2337 | else |
698dcdb6 | 2338 | |
10f2d63a VZ |
2339 | LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}` |
2340 | if test "x$LINE" != x ; then | |
2341 | eval "DEFAULT_$LINE" | |
2342 | else | |
2343 | no_cache=1 | |
2344 | fi | |
2345 | ||
2346 | ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE | |
698dcdb6 VZ |
2347 | |
2348 | fi | |
10f2d63a VZ |
2349 | |
2350 | ||
2351 | eval "$ac_cv_use_optimise" | |
2352 | if test "$no_cache" != 1; then | |
2353 | echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp | |
2354 | fi | |
2355 | ||
2356 | if test "$wxUSE_OPTIMISE" = yes; then | |
698dcdb6 | 2357 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2358 | else |
698dcdb6 | 2359 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2360 | fi |
698dcdb6 | 2361 | |
10f2d63a | 2362 | |
698dcdb6 | 2363 | echo $ac_n "checking for --enable-debug""... $ac_c" 1>&6 |
031d8228 | 2364 | echo "configure:2365: checking for --enable-debug" >&5 |
10f2d63a VZ |
2365 | no_cache=0 |
2366 | # Check whether --enable-debug or --disable-debug was given. | |
2367 | if test "${enable_debug+set}" = set; then | |
2368 | enableval="$enable_debug" | |
698dcdb6 | 2369 | |
10f2d63a VZ |
2370 | if test "$enableval" = yes; then |
2371 | ac_cv_use_debug='wxUSE_DEBUG=yes' | |
2372 | else | |
2373 | ac_cv_use_debug='wxUSE_DEBUG=no' | |
2374 | fi | |
698dcdb6 | 2375 | |
10f2d63a | 2376 | else |
698dcdb6 | 2377 | |
10f2d63a VZ |
2378 | LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}` |
2379 | if test "x$LINE" != x ; then | |
2380 | eval "DEFAULT_$LINE" | |
2381 | else | |
2382 | no_cache=1 | |
2383 | fi | |
2384 | ||
2385 | ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG | |
698dcdb6 VZ |
2386 | |
2387 | fi | |
10f2d63a VZ |
2388 | |
2389 | ||
2390 | eval "$ac_cv_use_debug" | |
2391 | if test "$no_cache" != 1; then | |
2392 | echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp | |
2393 | fi | |
2394 | ||
2395 | if test "$wxUSE_DEBUG" = yes; then | |
698dcdb6 | 2396 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2397 | else |
698dcdb6 | 2398 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2399 | fi |
698dcdb6 | 2400 | |
10f2d63a VZ |
2401 | |
2402 | if test "$wxUSE_DEBUG" = "yes"; then | |
2403 | DEFAULT_wxUSE_DEBUG_FLAG=yes | |
2404 | DEFAULT_wxUSE_DEBUG_INFO=yes | |
2405 | elif test "$wxUSE_DEBUG" = "no"; then | |
2406 | DEFAULT_wxUSE_DEBUG_FLAG=no | |
2407 | DEFAULT_wxUSE_DEBUG_INFO=no | |
2408 | fi | |
2409 | ||
698dcdb6 VZ |
2410 | |
2411 | echo $ac_n "checking for --enable-debug_flag""... $ac_c" 1>&6 | |
031d8228 | 2412 | echo "configure:2413: checking for --enable-debug_flag" >&5 |
10f2d63a VZ |
2413 | no_cache=0 |
2414 | # Check whether --enable-debug_flag or --disable-debug_flag was given. | |
2415 | if test "${enable_debug_flag+set}" = set; then | |
2416 | enableval="$enable_debug_flag" | |
698dcdb6 | 2417 | |
10f2d63a VZ |
2418 | if test "$enableval" = yes; then |
2419 | ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes' | |
2420 | else | |
2421 | ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no' | |
2422 | fi | |
698dcdb6 | 2423 | |
10f2d63a | 2424 | else |
698dcdb6 | 2425 | |
10f2d63a VZ |
2426 | LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}` |
2427 | if test "x$LINE" != x ; then | |
2428 | eval "DEFAULT_$LINE" | |
2429 | else | |
2430 | no_cache=1 | |
2431 | fi | |
2432 | ||
2433 | ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG | |
698dcdb6 VZ |
2434 | |
2435 | fi | |
10f2d63a VZ |
2436 | |
2437 | ||
2438 | eval "$ac_cv_use_debug_flag" | |
2439 | if test "$no_cache" != 1; then | |
2440 | echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp | |
2441 | fi | |
2442 | ||
2443 | if test "$wxUSE_DEBUG_FLAG" = yes; then | |
698dcdb6 | 2444 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2445 | else |
698dcdb6 | 2446 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2447 | fi |
698dcdb6 | 2448 | |
10f2d63a | 2449 | |
698dcdb6 | 2450 | echo $ac_n "checking for --enable-debug_info""... $ac_c" 1>&6 |
031d8228 | 2451 | echo "configure:2452: checking for --enable-debug_info" >&5 |
10f2d63a VZ |
2452 | no_cache=0 |
2453 | # Check whether --enable-debug_info or --disable-debug_info was given. | |
2454 | if test "${enable_debug_info+set}" = set; then | |
2455 | enableval="$enable_debug_info" | |
698dcdb6 | 2456 | |
10f2d63a VZ |
2457 | if test "$enableval" = yes; then |
2458 | ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes' | |
2459 | else | |
2460 | ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no' | |
2461 | fi | |
698dcdb6 | 2462 | |
10f2d63a | 2463 | else |
698dcdb6 | 2464 | |
10f2d63a VZ |
2465 | LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}` |
2466 | if test "x$LINE" != x ; then | |
2467 | eval "DEFAULT_$LINE" | |
2468 | else | |
2469 | no_cache=1 | |
2470 | fi | |
2471 | ||
2472 | ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO | |
698dcdb6 VZ |
2473 | |
2474 | fi | |
10f2d63a VZ |
2475 | |
2476 | ||
2477 | eval "$ac_cv_use_debug_info" | |
2478 | if test "$no_cache" != 1; then | |
2479 | echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp | |
2480 | fi | |
2481 | ||
2482 | if test "$wxUSE_DEBUG_INFO" = yes; then | |
698dcdb6 | 2483 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2484 | else |
698dcdb6 | 2485 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2486 | fi |
698dcdb6 | 2487 | |
10f2d63a | 2488 | |
698dcdb6 | 2489 | echo $ac_n "checking for --enable-debug_gdb""... $ac_c" 1>&6 |
031d8228 | 2490 | echo "configure:2491: checking for --enable-debug_gdb" >&5 |
10f2d63a VZ |
2491 | no_cache=0 |
2492 | # Check whether --enable-debug_gdb or --disable-debug_gdb was given. | |
2493 | if test "${enable_debug_gdb+set}" = set; then | |
2494 | enableval="$enable_debug_gdb" | |
698dcdb6 | 2495 | |
10f2d63a VZ |
2496 | if test "$enableval" = yes; then |
2497 | ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes' | |
2498 | else | |
2499 | ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no' | |
2500 | fi | |
698dcdb6 | 2501 | |
10f2d63a | 2502 | else |
698dcdb6 | 2503 | |
10f2d63a VZ |
2504 | LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}` |
2505 | if test "x$LINE" != x ; then | |
2506 | eval "DEFAULT_$LINE" | |
2507 | else | |
2508 | no_cache=1 | |
2509 | fi | |
2510 | ||
2511 | ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB | |
698dcdb6 VZ |
2512 | |
2513 | fi | |
10f2d63a VZ |
2514 | |
2515 | ||
2516 | eval "$ac_cv_use_debug_gdb" | |
2517 | if test "$no_cache" != 1; then | |
2518 | echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp | |
2519 | fi | |
2520 | ||
2521 | if test "$wxUSE_DEBUG_GDB" = yes; then | |
698dcdb6 | 2522 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2523 | else |
698dcdb6 | 2524 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2525 | fi |
698dcdb6 | 2526 | |
10f2d63a | 2527 | |
698dcdb6 | 2528 | echo $ac_n "checking for --enable-debug_cntxt""... $ac_c" 1>&6 |
031d8228 | 2529 | echo "configure:2530: checking for --enable-debug_cntxt" >&5 |
10f2d63a VZ |
2530 | no_cache=0 |
2531 | # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given. | |
2532 | if test "${enable_debug_cntxt+set}" = set; then | |
2533 | enableval="$enable_debug_cntxt" | |
698dcdb6 | 2534 | |
10f2d63a VZ |
2535 | if test "$enableval" = yes; then |
2536 | ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes' | |
2537 | else | |
2538 | ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no' | |
2539 | fi | |
698dcdb6 | 2540 | |
10f2d63a | 2541 | else |
698dcdb6 | 2542 | |
10f2d63a VZ |
2543 | LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}` |
2544 | if test "x$LINE" != x ; then | |
2545 | eval "DEFAULT_$LINE" | |
2546 | else | |
2547 | no_cache=1 | |
2548 | fi | |
2549 | ||
2550 | ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT | |
698dcdb6 VZ |
2551 | |
2552 | fi | |
10f2d63a VZ |
2553 | |
2554 | ||
2555 | eval "$ac_cv_use_debug_cntxt" | |
2556 | if test "$no_cache" != 1; then | |
2557 | echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp | |
2558 | fi | |
2559 | ||
2560 | if test "$wxUSE_DEBUG_CONTEXT" = yes; then | |
698dcdb6 | 2561 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2562 | else |
698dcdb6 | 2563 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2564 | fi |
698dcdb6 | 2565 | |
10f2d63a | 2566 | |
698dcdb6 | 2567 | echo $ac_n "checking for --enable-mem_tracing""... $ac_c" 1>&6 |
031d8228 | 2568 | echo "configure:2569: checking for --enable-mem_tracing" >&5 |
10f2d63a VZ |
2569 | no_cache=0 |
2570 | # Check whether --enable-mem_tracing or --disable-mem_tracing was given. | |
2571 | if test "${enable_mem_tracing+set}" = set; then | |
2572 | enableval="$enable_mem_tracing" | |
698dcdb6 | 2573 | |
10f2d63a VZ |
2574 | if test "$enableval" = yes; then |
2575 | ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes' | |
2576 | else | |
2577 | ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no' | |
2578 | fi | |
698dcdb6 | 2579 | |
10f2d63a | 2580 | else |
698dcdb6 | 2581 | |
10f2d63a VZ |
2582 | LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}` |
2583 | if test "x$LINE" != x ; then | |
2584 | eval "DEFAULT_$LINE" | |
2585 | else | |
2586 | no_cache=1 | |
2587 | fi | |
2588 | ||
2589 | ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING | |
698dcdb6 VZ |
2590 | |
2591 | fi | |
10f2d63a VZ |
2592 | |
2593 | ||
2594 | eval "$ac_cv_use_mem_tracing" | |
2595 | if test "$no_cache" != 1; then | |
2596 | echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp | |
2597 | fi | |
2598 | ||
2599 | if test "$wxUSE_MEM_TRACING" = yes; then | |
698dcdb6 | 2600 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2601 | else |
698dcdb6 | 2602 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2603 | fi |
698dcdb6 | 2604 | |
10f2d63a | 2605 | |
698dcdb6 | 2606 | echo $ac_n "checking for --enable-profile""... $ac_c" 1>&6 |
031d8228 | 2607 | echo "configure:2608: checking for --enable-profile" >&5 |
10f2d63a VZ |
2608 | no_cache=0 |
2609 | # Check whether --enable-profile or --disable-profile was given. | |
2610 | if test "${enable_profile+set}" = set; then | |
2611 | enableval="$enable_profile" | |
698dcdb6 | 2612 | |
10f2d63a VZ |
2613 | if test "$enableval" = yes; then |
2614 | ac_cv_use_profile='wxUSE_PROFILE=yes' | |
2615 | else | |
2616 | ac_cv_use_profile='wxUSE_PROFILE=no' | |
2617 | fi | |
698dcdb6 | 2618 | |
10f2d63a | 2619 | else |
698dcdb6 | 2620 | |
10f2d63a VZ |
2621 | LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}` |
2622 | if test "x$LINE" != x ; then | |
2623 | eval "DEFAULT_$LINE" | |
2624 | else | |
2625 | no_cache=1 | |
2626 | fi | |
2627 | ||
2628 | ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE | |
698dcdb6 VZ |
2629 | |
2630 | fi | |
10f2d63a VZ |
2631 | |
2632 | ||
2633 | eval "$ac_cv_use_profile" | |
2634 | if test "$no_cache" != 1; then | |
2635 | echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp | |
2636 | fi | |
2637 | ||
2638 | if test "$wxUSE_PROFILE" = yes; then | |
698dcdb6 | 2639 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2640 | else |
698dcdb6 | 2641 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2642 | fi |
698dcdb6 | 2643 | |
10f2d63a | 2644 | |
698dcdb6 | 2645 | echo $ac_n "checking for --enable-no_rtti""... $ac_c" 1>&6 |
031d8228 | 2646 | echo "configure:2647: checking for --enable-no_rtti" >&5 |
10f2d63a VZ |
2647 | no_cache=0 |
2648 | # Check whether --enable-no_rtti or --disable-no_rtti was given. | |
2649 | if test "${enable_no_rtti+set}" = set; then | |
2650 | enableval="$enable_no_rtti" | |
698dcdb6 | 2651 | |
10f2d63a VZ |
2652 | if test "$enableval" = yes; then |
2653 | ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes' | |
2654 | else | |
2655 | ac_cv_use_no_rtti='wxUSE_NO_RTTI=no' | |
2656 | fi | |
698dcdb6 | 2657 | |
10f2d63a | 2658 | else |
698dcdb6 | 2659 | |
10f2d63a VZ |
2660 | LINE=`grep "wxUSE_NO_RTTI" ${wx_arg_cache_file}` |
2661 | if test "x$LINE" != x ; then | |
2662 | eval "DEFAULT_$LINE" | |
2663 | else | |
2664 | no_cache=1 | |
2665 | fi | |
2666 | ||
2667 | ac_cv_use_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI | |
698dcdb6 VZ |
2668 | |
2669 | fi | |
10f2d63a VZ |
2670 | |
2671 | ||
2672 | eval "$ac_cv_use_no_rtti" | |
2673 | if test "$no_cache" != 1; then | |
2674 | echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp | |
2675 | fi | |
2676 | ||
2677 | if test "$wxUSE_NO_RTTI" = yes; then | |
698dcdb6 | 2678 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2679 | else |
698dcdb6 | 2680 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2681 | fi |
698dcdb6 | 2682 | |
10f2d63a | 2683 | |
698dcdb6 | 2684 | echo $ac_n "checking for --enable-no_exceptions""... $ac_c" 1>&6 |
031d8228 | 2685 | echo "configure:2686: checking for --enable-no_exceptions" >&5 |
10f2d63a VZ |
2686 | no_cache=0 |
2687 | # Check whether --enable-no_exceptions or --disable-no_exceptions was given. | |
2688 | if test "${enable_no_exceptions+set}" = set; then | |
2689 | enableval="$enable_no_exceptions" | |
698dcdb6 | 2690 | |
10f2d63a VZ |
2691 | if test "$enableval" = yes; then |
2692 | ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes' | |
2693 | else | |
2694 | ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no' | |
2695 | fi | |
698dcdb6 | 2696 | |
10f2d63a | 2697 | else |
698dcdb6 | 2698 | |
10f2d63a VZ |
2699 | LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}` |
2700 | if test "x$LINE" != x ; then | |
2701 | eval "DEFAULT_$LINE" | |
2702 | else | |
2703 | no_cache=1 | |
2704 | fi | |
2705 | ||
2706 | ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS | |
698dcdb6 VZ |
2707 | |
2708 | fi | |
10f2d63a VZ |
2709 | |
2710 | ||
2711 | eval "$ac_cv_use_no_exceptions" | |
2712 | if test "$no_cache" != 1; then | |
2713 | echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp | |
2714 | fi | |
2715 | ||
2716 | if test "$wxUSE_NO_EXCEPTIONS" = yes; then | |
698dcdb6 | 2717 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2718 | else |
698dcdb6 | 2719 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2720 | fi |
698dcdb6 | 2721 | |
10f2d63a | 2722 | |
698dcdb6 | 2723 | echo $ac_n "checking for --enable-permissive""... $ac_c" 1>&6 |
031d8228 | 2724 | echo "configure:2725: checking for --enable-permissive" >&5 |
10f2d63a VZ |
2725 | no_cache=0 |
2726 | # Check whether --enable-permissive or --disable-permissive was given. | |
2727 | if test "${enable_permissive+set}" = set; then | |
2728 | enableval="$enable_permissive" | |
698dcdb6 | 2729 | |
10f2d63a VZ |
2730 | if test "$enableval" = yes; then |
2731 | ac_cv_use_permissive='wxUSE_PERMISSIVE=yes' | |
2732 | else | |
2733 | ac_cv_use_permissive='wxUSE_PERMISSIVE=no' | |
2734 | fi | |
698dcdb6 | 2735 | |
10f2d63a | 2736 | else |
698dcdb6 | 2737 | |
10f2d63a VZ |
2738 | LINE=`grep "wxUSE_PERMISSIVE" ${wx_arg_cache_file}` |
2739 | if test "x$LINE" != x ; then | |
2740 | eval "DEFAULT_$LINE" | |
2741 | else | |
2742 | no_cache=1 | |
2743 | fi | |
2744 | ||
2745 | ac_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE | |
698dcdb6 VZ |
2746 | |
2747 | fi | |
10f2d63a VZ |
2748 | |
2749 | ||
2750 | eval "$ac_cv_use_permissive" | |
2751 | if test "$no_cache" != 1; then | |
2752 | echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp | |
2753 | fi | |
2754 | ||
2755 | if test "$wxUSE_PERMISSIVE" = yes; then | |
698dcdb6 | 2756 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2757 | else |
698dcdb6 | 2758 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2759 | fi |
698dcdb6 | 2760 | |
10f2d63a | 2761 | |
698dcdb6 | 2762 | echo $ac_n "checking for --enable-no_deps""... $ac_c" 1>&6 |
031d8228 | 2763 | echo "configure:2764: checking for --enable-no_deps" >&5 |
10f2d63a VZ |
2764 | no_cache=0 |
2765 | # Check whether --enable-no_deps or --disable-no_deps was given. | |
2766 | if test "${enable_no_deps+set}" = set; then | |
2767 | enableval="$enable_no_deps" | |
698dcdb6 | 2768 | |
10f2d63a VZ |
2769 | if test "$enableval" = yes; then |
2770 | ac_cv_use_no_deps='wxUSE_NO_DEPS=yes' | |
2771 | else | |
2772 | ac_cv_use_no_deps='wxUSE_NO_DEPS=no' | |
2773 | fi | |
698dcdb6 | 2774 | |
10f2d63a | 2775 | else |
698dcdb6 | 2776 | |
10f2d63a VZ |
2777 | LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}` |
2778 | if test "x$LINE" != x ; then | |
2779 | eval "DEFAULT_$LINE" | |
2780 | else | |
2781 | no_cache=1 | |
2782 | fi | |
2783 | ||
2784 | ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS | |
698dcdb6 VZ |
2785 | |
2786 | fi | |
10f2d63a VZ |
2787 | |
2788 | ||
2789 | eval "$ac_cv_use_no_deps" | |
2790 | if test "$no_cache" != 1; then | |
2791 | echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp | |
2792 | fi | |
2793 | ||
2794 | if test "$wxUSE_NO_DEPS" = yes; then | |
698dcdb6 | 2795 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2796 | else |
698dcdb6 | 2797 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2798 | fi |
698dcdb6 VZ |
2799 | |
2800 | ||
10f2d63a | 2801 | |
54276ccf | 2802 | echo $ac_n "checking for --enable-compat20""... $ac_c" 1>&6 |
031d8228 | 2803 | echo "configure:2804: checking for --enable-compat20" >&5 |
54276ccf VZ |
2804 | no_cache=0 |
2805 | # Check whether --enable-compat20 or --disable-compat20 was given. | |
2806 | if test "${enable_compat20+set}" = set; then | |
2807 | enableval="$enable_compat20" | |
2808 | ||
2809 | if test "$enableval" = yes; then | |
2810 | ac_cv_use_compat20='WXWIN_COMPATIBILITY_2=yes' | |
2811 | else | |
2812 | ac_cv_use_compat20='WXWIN_COMPATIBILITY_2=no' | |
2813 | fi | |
2814 | ||
2815 | else | |
2816 | ||
2817 | LINE=`grep "WXWIN_COMPATIBILITY_2" ${wx_arg_cache_file}` | |
2818 | if test "x$LINE" != x ; then | |
2819 | eval "DEFAULT_$LINE" | |
2820 | else | |
2821 | no_cache=1 | |
2822 | fi | |
2823 | ||
2824 | ac_cv_use_compat20='WXWIN_COMPATIBILITY_2='$DEFAULT_WXWIN_COMPATIBILITY_2 | |
2825 | ||
2826 | fi | |
2827 | ||
2828 | ||
2829 | eval "$ac_cv_use_compat20" | |
2830 | if test "$no_cache" != 1; then | |
2831 | echo $ac_cv_use_compat20 >> ${wx_arg_cache_file}.tmp | |
2832 | fi | |
2833 | ||
2834 | if test "$WXWIN_COMPATIBILITY_2" = yes; then | |
2835 | echo "$ac_t""yes" 1>&6 | |
2836 | else | |
2837 | echo "$ac_t""no" 1>&6 | |
2838 | fi | |
2839 | ||
2840 | ||
2841 | echo $ac_n "checking for --enable-compat22""... $ac_c" 1>&6 | |
031d8228 | 2842 | echo "configure:2843: checking for --enable-compat22" >&5 |
54276ccf VZ |
2843 | no_cache=0 |
2844 | # Check whether --enable-compat22 or --disable-compat22 was given. | |
2845 | if test "${enable_compat22+set}" = set; then | |
2846 | enableval="$enable_compat22" | |
2847 | ||
2848 | if test "$enableval" = yes; then | |
2849 | ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=yes' | |
2850 | else | |
2851 | ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=no' | |
2852 | fi | |
2853 | ||
2854 | else | |
2855 | ||
2856 | LINE=`grep "WXWIN_COMPATIBILITY_2_2" ${wx_arg_cache_file}` | |
2857 | if test "x$LINE" != x ; then | |
2858 | eval "DEFAULT_$LINE" | |
2859 | else | |
2860 | no_cache=1 | |
2861 | fi | |
2862 | ||
2863 | ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2='$DEFAULT_WXWIN_COMPATIBILITY_2_2 | |
2864 | ||
2865 | fi | |
2866 | ||
2867 | ||
2868 | eval "$ac_cv_use_compat22" | |
2869 | if test "$no_cache" != 1; then | |
2870 | echo $ac_cv_use_compat22 >> ${wx_arg_cache_file}.tmp | |
2871 | fi | |
2872 | ||
2873 | if test "$WXWIN_COMPATIBILITY_2_2" = yes; then | |
2874 | echo "$ac_t""yes" 1>&6 | |
2875 | else | |
2876 | echo "$ac_t""no" 1>&6 | |
2877 | fi | |
2878 | ||
2879 | ||
2880 | ||
698dcdb6 VZ |
2881 | |
2882 | echo $ac_n "checking for --enable-intl""... $ac_c" 1>&6 | |
031d8228 | 2883 | echo "configure:2884: checking for --enable-intl" >&5 |
10f2d63a VZ |
2884 | no_cache=0 |
2885 | # Check whether --enable-intl or --disable-intl was given. | |
2886 | if test "${enable_intl+set}" = set; then | |
2887 | enableval="$enable_intl" | |
698dcdb6 | 2888 | |
10f2d63a VZ |
2889 | if test "$enableval" = yes; then |
2890 | ac_cv_use_intl='wxUSE_INTL=yes' | |
2891 | else | |
2892 | ac_cv_use_intl='wxUSE_INTL=no' | |
2893 | fi | |
698dcdb6 | 2894 | |
10f2d63a | 2895 | else |
698dcdb6 | 2896 | |
10f2d63a VZ |
2897 | LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}` |
2898 | if test "x$LINE" != x ; then | |
2899 | eval "DEFAULT_$LINE" | |
2900 | else | |
2901 | no_cache=1 | |
2902 | fi | |
2903 | ||
2904 | ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL | |
698dcdb6 VZ |
2905 | |
2906 | fi | |
10f2d63a VZ |
2907 | |
2908 | ||
2909 | eval "$ac_cv_use_intl" | |
2910 | if test "$no_cache" != 1; then | |
2911 | echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp | |
2912 | fi | |
2913 | ||
2914 | if test "$wxUSE_INTL" = yes; then | |
698dcdb6 | 2915 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2916 | else |
698dcdb6 | 2917 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2918 | fi |
698dcdb6 | 2919 | |
10f2d63a | 2920 | |
698dcdb6 | 2921 | echo $ac_n "checking for --enable-config""... $ac_c" 1>&6 |
031d8228 | 2922 | echo "configure:2923: checking for --enable-config" >&5 |
10f2d63a VZ |
2923 | no_cache=0 |
2924 | # Check whether --enable-config or --disable-config was given. | |
2925 | if test "${enable_config+set}" = set; then | |
2926 | enableval="$enable_config" | |
698dcdb6 | 2927 | |
10f2d63a VZ |
2928 | if test "$enableval" = yes; then |
2929 | ac_cv_use_config='wxUSE_CONFIG=yes' | |
2930 | else | |
2931 | ac_cv_use_config='wxUSE_CONFIG=no' | |
2932 | fi | |
698dcdb6 | 2933 | |
10f2d63a | 2934 | else |
698dcdb6 | 2935 | |
10f2d63a VZ |
2936 | LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}` |
2937 | if test "x$LINE" != x ; then | |
2938 | eval "DEFAULT_$LINE" | |
2939 | else | |
2940 | no_cache=1 | |
2941 | fi | |
2942 | ||
2943 | ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG | |
698dcdb6 VZ |
2944 | |
2945 | fi | |
10f2d63a VZ |
2946 | |
2947 | ||
2948 | eval "$ac_cv_use_config" | |
2949 | if test "$no_cache" != 1; then | |
2950 | echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp | |
2951 | fi | |
2952 | ||
2953 | if test "$wxUSE_CONFIG" = yes; then | |
698dcdb6 | 2954 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2955 | else |
698dcdb6 | 2956 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2957 | fi |
698dcdb6 VZ |
2958 | |
2959 | ||
b12915c1 | 2960 | |
698dcdb6 | 2961 | echo $ac_n "checking for --enable-sockets""... $ac_c" 1>&6 |
031d8228 | 2962 | echo "configure:2963: checking for --enable-sockets" >&5 |
10f2d63a VZ |
2963 | no_cache=0 |
2964 | # Check whether --enable-sockets or --disable-sockets was given. | |
2965 | if test "${enable_sockets+set}" = set; then | |
2966 | enableval="$enable_sockets" | |
698dcdb6 | 2967 | |
10f2d63a VZ |
2968 | if test "$enableval" = yes; then |
2969 | ac_cv_use_sockets='wxUSE_SOCKETS=yes' | |
2970 | else | |
2971 | ac_cv_use_sockets='wxUSE_SOCKETS=no' | |
2972 | fi | |
698dcdb6 | 2973 | |
10f2d63a | 2974 | else |
698dcdb6 | 2975 | |
10f2d63a VZ |
2976 | LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}` |
2977 | if test "x$LINE" != x ; then | |
2978 | eval "DEFAULT_$LINE" | |
2979 | else | |
2980 | no_cache=1 | |
2981 | fi | |
2982 | ||
2983 | ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS | |
698dcdb6 VZ |
2984 | |
2985 | fi | |
10f2d63a VZ |
2986 | |
2987 | ||
2988 | eval "$ac_cv_use_sockets" | |
2989 | if test "$no_cache" != 1; then | |
2990 | echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp | |
2991 | fi | |
2992 | ||
2993 | if test "$wxUSE_SOCKETS" = yes; then | |
698dcdb6 | 2994 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2995 | else |
698dcdb6 | 2996 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2997 | fi |
698dcdb6 | 2998 | |
b12915c1 | 2999 | |
698dcdb6 VZ |
3000 | |
3001 | echo $ac_n "checking for --enable-ipc""... $ac_c" 1>&6 | |
031d8228 | 3002 | echo "configure:3003: checking for --enable-ipc" >&5 |
10f2d63a | 3003 | no_cache=0 |
eb4efbdc VZ |
3004 | # Check whether --enable-ipc or --disable-ipc was given. |
3005 | if test "${enable_ipc+set}" = set; then | |
3006 | enableval="$enable_ipc" | |
698dcdb6 | 3007 | |
10f2d63a | 3008 | if test "$enableval" = yes; then |
eb4efbdc | 3009 | ac_cv_use_ipc='wxUSE_IPC=yes' |
10f2d63a | 3010 | else |
eb4efbdc | 3011 | ac_cv_use_ipc='wxUSE_IPC=no' |
10f2d63a | 3012 | fi |
698dcdb6 | 3013 | |
10f2d63a | 3014 | else |
698dcdb6 | 3015 | |
eb4efbdc | 3016 | LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}` |
10f2d63a VZ |
3017 | if test "x$LINE" != x ; then |
3018 | eval "DEFAULT_$LINE" | |
3019 | else | |
3020 | no_cache=1 | |
3021 | fi | |
3022 | ||
eb4efbdc | 3023 | ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC |
698dcdb6 VZ |
3024 | |
3025 | fi | |
10f2d63a VZ |
3026 | |
3027 | ||
eb4efbdc | 3028 | eval "$ac_cv_use_ipc" |
10f2d63a | 3029 | if test "$no_cache" != 1; then |
eb4efbdc | 3030 | echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
3031 | fi |
3032 | ||
eb4efbdc | 3033 | if test "$wxUSE_IPC" = yes; then |
698dcdb6 | 3034 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3035 | else |
698dcdb6 | 3036 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3037 | fi |
698dcdb6 VZ |
3038 | |
3039 | ||
eb4efbdc | 3040 | |
1e6feb95 | 3041 | echo $ac_n "checking for --enable-cmdline""... $ac_c" 1>&6 |
031d8228 | 3042 | echo "configure:3043: checking for --enable-cmdline" >&5 |
1e6feb95 VZ |
3043 | no_cache=0 |
3044 | # Check whether --enable-cmdline or --disable-cmdline was given. | |
3045 | if test "${enable_cmdline+set}" = set; then | |
3046 | enableval="$enable_cmdline" | |
3047 | ||
3048 | if test "$enableval" = yes; then | |
3049 | ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=yes' | |
3050 | else | |
3051 | ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=no' | |
3052 | fi | |
3053 | ||
3054 | else | |
3055 | ||
3056 | LINE=`grep "wxUSE_CMDLINE_PARSER" ${wx_arg_cache_file}` | |
3057 | if test "x$LINE" != x ; then | |
3058 | eval "DEFAULT_$LINE" | |
3059 | else | |
3060 | no_cache=1 | |
3061 | fi | |
3062 | ||
3063 | ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER='$DEFAULT_wxUSE_CMDLINE_PARSER | |
3064 | ||
3065 | fi | |
3066 | ||
3067 | ||
3068 | eval "$ac_cv_use_cmdline" | |
3069 | if test "$no_cache" != 1; then | |
3070 | echo $ac_cv_use_cmdline >> ${wx_arg_cache_file}.tmp | |
3071 | fi | |
3072 | ||
3073 | if test "$wxUSE_CMDLINE_PARSER" = yes; then | |
3074 | echo "$ac_t""yes" 1>&6 | |
3075 | else | |
3076 | echo "$ac_t""no" 1>&6 | |
3077 | fi | |
3078 | ||
3079 | ||
3080 | echo $ac_n "checking for --enable-datetime""... $ac_c" 1>&6 | |
031d8228 | 3081 | echo "configure:3082: checking for --enable-datetime" >&5 |
1e6feb95 VZ |
3082 | no_cache=0 |
3083 | # Check whether --enable-datetime or --disable-datetime was given. | |
3084 | if test "${enable_datetime+set}" = set; then | |
3085 | enableval="$enable_datetime" | |
3086 | ||
3087 | if test "$enableval" = yes; then | |
3088 | ac_cv_use_datetime='wxUSE_DATETIME=yes' | |
3089 | else | |
3090 | ac_cv_use_datetime='wxUSE_DATETIME=no' | |
3091 | fi | |
3092 | ||
3093 | else | |
3094 | ||
3095 | LINE=`grep "wxUSE_DATETIME" ${wx_arg_cache_file}` | |
3096 | if test "x$LINE" != x ; then | |
3097 | eval "DEFAULT_$LINE" | |
3098 | else | |
3099 | no_cache=1 | |
3100 | fi | |
3101 | ||
3102 | ac_cv_use_datetime='wxUSE_DATETIME='$DEFAULT_wxUSE_DATETIME | |
3103 | ||
3104 | fi | |
3105 | ||
3106 | ||
3107 | eval "$ac_cv_use_datetime" | |
3108 | if test "$no_cache" != 1; then | |
3109 | echo $ac_cv_use_datetime >> ${wx_arg_cache_file}.tmp | |
3110 | fi | |
3111 | ||
3112 | if test "$wxUSE_DATETIME" = yes; then | |
3113 | echo "$ac_t""yes" 1>&6 | |
3114 | else | |
3115 | echo "$ac_t""no" 1>&6 | |
3116 | fi | |
3117 | ||
3118 | ||
3119 | echo $ac_n "checking for --enable-timedate""... $ac_c" 1>&6 | |
031d8228 | 3120 | echo "configure:3121: checking for --enable-timedate" >&5 |
1e6feb95 VZ |
3121 | no_cache=0 |
3122 | # Check whether --enable-timedate or --disable-timedate was given. | |
3123 | if test "${enable_timedate+set}" = set; then | |
3124 | enableval="$enable_timedate" | |
3125 | ||
3126 | if test "$enableval" = yes; then | |
3127 | ac_cv_use_timedate='wxUSE_TIMEDATE=yes' | |
3128 | else | |
3129 | ac_cv_use_timedate='wxUSE_TIMEDATE=no' | |
3130 | fi | |
3131 | ||
3132 | else | |
3133 | ||
3134 | LINE=`grep "wxUSE_TIMEDATE" ${wx_arg_cache_file}` | |
3135 | if test "x$LINE" != x ; then | |
3136 | eval "DEFAULT_$LINE" | |
3137 | else | |
3138 | no_cache=1 | |
3139 | fi | |
3140 | ||
3141 | ac_cv_use_timedate='wxUSE_TIMEDATE='$DEFAULT_wxUSE_TIMEDATE | |
3142 | ||
3143 | fi | |
3144 | ||
3145 | ||
3146 | eval "$ac_cv_use_timedate" | |
3147 | if test "$no_cache" != 1; then | |
3148 | echo $ac_cv_use_timedate >> ${wx_arg_cache_file}.tmp | |
3149 | fi | |
3150 | ||
3151 | if test "$wxUSE_TIMEDATE" = yes; then | |
3152 | echo "$ac_t""yes" 1>&6 | |
3153 | else | |
3154 | echo "$ac_t""no" 1>&6 | |
3155 | fi | |
3156 | ||
3157 | ||
3158 | echo $ac_n "checking for --enable-stopwatch""... $ac_c" 1>&6 | |
031d8228 | 3159 | echo "configure:3160: checking for --enable-stopwatch" >&5 |
1e6feb95 VZ |
3160 | no_cache=0 |
3161 | # Check whether --enable-stopwatch or --disable-stopwatch was given. | |
3162 | if test "${enable_stopwatch+set}" = set; then | |
3163 | enableval="$enable_stopwatch" | |
3164 | ||
3165 | if test "$enableval" = yes; then | |
3166 | ac_cv_use_stopwatch='wxUSE_STOPWATCH=yes' | |
3167 | else | |
3168 | ac_cv_use_stopwatch='wxUSE_STOPWATCH=no' | |
3169 | fi | |
3170 | ||
3171 | else | |
3172 | ||
3173 | LINE=`grep "wxUSE_STOPWATCH" ${wx_arg_cache_file}` | |
3174 | if test "x$LINE" != x ; then | |
3175 | eval "DEFAULT_$LINE" | |
3176 | else | |
3177 | no_cache=1 | |
3178 | fi | |
3179 | ||
3180 | ac_cv_use_stopwatch='wxUSE_STOPWATCH='$DEFAULT_wxUSE_STOPWATCH | |
3181 | ||
3182 | fi | |
3183 | ||
3184 | ||
3185 | eval "$ac_cv_use_stopwatch" | |
3186 | if test "$no_cache" != 1; then | |
3187 | echo $ac_cv_use_stopwatch >> ${wx_arg_cache_file}.tmp | |
3188 | fi | |
3189 | ||
3190 | if test "$wxUSE_STOPWATCH" = yes; then | |
3191 | echo "$ac_t""yes" 1>&6 | |
3192 | else | |
3193 | echo "$ac_t""no" 1>&6 | |
3194 | fi | |
3195 | ||
3196 | ||
698dcdb6 | 3197 | echo $ac_n "checking for --enable-dialupman""... $ac_c" 1>&6 |
031d8228 | 3198 | echo "configure:3199: checking for --enable-dialupman" >&5 |
10f2d63a | 3199 | no_cache=0 |
eb4efbdc VZ |
3200 | # Check whether --enable-dialupman or --disable-dialupman was given. |
3201 | if test "${enable_dialupman+set}" = set; then | |
3202 | enableval="$enable_dialupman" | |
698dcdb6 | 3203 | |
10f2d63a | 3204 | if test "$enableval" = yes; then |
eb4efbdc | 3205 | ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes' |
10f2d63a | 3206 | else |
eb4efbdc | 3207 | ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no' |
10f2d63a | 3208 | fi |
698dcdb6 | 3209 | |
10f2d63a | 3210 | else |
698dcdb6 | 3211 | |
eb4efbdc | 3212 | LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}` |
10f2d63a VZ |
3213 | if test "x$LINE" != x ; then |
3214 | eval "DEFAULT_$LINE" | |
3215 | else | |
3216 | no_cache=1 | |
3217 | fi | |
3218 | ||
eb4efbdc | 3219 | ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER |
698dcdb6 VZ |
3220 | |
3221 | fi | |
10f2d63a VZ |
3222 | |
3223 | ||
eb4efbdc | 3224 | eval "$ac_cv_use_dialupman" |
10f2d63a | 3225 | if test "$no_cache" != 1; then |
eb4efbdc | 3226 | echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
3227 | fi |
3228 | ||
eb4efbdc | 3229 | if test "$wxUSE_DIALUP_MANAGER" = yes; then |
698dcdb6 | 3230 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3231 | else |
698dcdb6 | 3232 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3233 | fi |
698dcdb6 | 3234 | |
10f2d63a | 3235 | |
698dcdb6 | 3236 | echo $ac_n "checking for --enable-apple_ieee""... $ac_c" 1>&6 |
031d8228 | 3237 | echo "configure:3238: checking for --enable-apple_ieee" >&5 |
10f2d63a VZ |
3238 | no_cache=0 |
3239 | # Check whether --enable-apple_ieee or --disable-apple_ieee was given. | |
3240 | if test "${enable_apple_ieee+set}" = set; then | |
3241 | enableval="$enable_apple_ieee" | |
698dcdb6 | 3242 | |
10f2d63a VZ |
3243 | if test "$enableval" = yes; then |
3244 | ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes' | |
3245 | else | |
3246 | ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no' | |
3247 | fi | |
698dcdb6 | 3248 | |
10f2d63a | 3249 | else |
698dcdb6 | 3250 | |
10f2d63a VZ |
3251 | LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}` |
3252 | if test "x$LINE" != x ; then | |
3253 | eval "DEFAULT_$LINE" | |
3254 | else | |
3255 | no_cache=1 | |
3256 | fi | |
3257 | ||
3258 | ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE | |
698dcdb6 VZ |
3259 | |
3260 | fi | |
10f2d63a VZ |
3261 | |
3262 | ||
3263 | eval "$ac_cv_use_apple_ieee" | |
3264 | if test "$no_cache" != 1; then | |
3265 | echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp | |
3266 | fi | |
3267 | ||
3268 | if test "$wxUSE_APPLE_IEEE" = yes; then | |
698dcdb6 | 3269 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3270 | else |
698dcdb6 | 3271 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3272 | fi |
698dcdb6 | 3273 | |
10f2d63a | 3274 | |
1e6feb95 | 3275 | echo $ac_n "checking for --enable-timer""... $ac_c" 1>&6 |
031d8228 | 3276 | echo "configure:3277: checking for --enable-timer" >&5 |
10f2d63a | 3277 | no_cache=0 |
1e6feb95 VZ |
3278 | # Check whether --enable-timer or --disable-timer was given. |
3279 | if test "${enable_timer+set}" = set; then | |
3280 | enableval="$enable_timer" | |
698dcdb6 | 3281 | |
10f2d63a | 3282 | if test "$enableval" = yes; then |
1e6feb95 | 3283 | ac_cv_use_timer='wxUSE_TIMER=yes' |
10f2d63a | 3284 | else |
1e6feb95 | 3285 | ac_cv_use_timer='wxUSE_TIMER=no' |
10f2d63a | 3286 | fi |
698dcdb6 | 3287 | |
10f2d63a | 3288 | else |
698dcdb6 | 3289 | |
1e6feb95 | 3290 | LINE=`grep "wxUSE_TIMER" ${wx_arg_cache_file}` |
10f2d63a VZ |
3291 | if test "x$LINE" != x ; then |
3292 | eval "DEFAULT_$LINE" | |
3293 | else | |
3294 | no_cache=1 | |
3295 | fi | |
3296 | ||
1e6feb95 | 3297 | ac_cv_use_timer='wxUSE_TIMER='$DEFAULT_wxUSE_TIMER |
698dcdb6 VZ |
3298 | |
3299 | fi | |
10f2d63a VZ |
3300 | |
3301 | ||
1e6feb95 | 3302 | eval "$ac_cv_use_timer" |
10f2d63a | 3303 | if test "$no_cache" != 1; then |
1e6feb95 | 3304 | echo $ac_cv_use_timer >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
3305 | fi |
3306 | ||
1e6feb95 | 3307 | if test "$wxUSE_TIMER" = yes; then |
698dcdb6 | 3308 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3309 | else |
698dcdb6 | 3310 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3311 | fi |
698dcdb6 | 3312 | |
10f2d63a | 3313 | |
698dcdb6 | 3314 | echo $ac_n "checking for --enable-wave""... $ac_c" 1>&6 |
031d8228 | 3315 | echo "configure:3316: checking for --enable-wave" >&5 |
10f2d63a VZ |
3316 | no_cache=0 |
3317 | # Check whether --enable-wave or --disable-wave was given. | |
3318 | if test "${enable_wave+set}" = set; then | |
3319 | enableval="$enable_wave" | |
698dcdb6 | 3320 | |
10f2d63a VZ |
3321 | if test "$enableval" = yes; then |
3322 | ac_cv_use_wave='wxUSE_WAVE=yes' | |
3323 | else | |
3324 | ac_cv_use_wave='wxUSE_WAVE=no' | |
3325 | fi | |
698dcdb6 | 3326 | |
10f2d63a | 3327 | else |
698dcdb6 | 3328 | |
10f2d63a VZ |
3329 | LINE=`grep "wxUSE_WAVE" ${wx_arg_cache_file}` |
3330 | if test "x$LINE" != x ; then | |
3331 | eval "DEFAULT_$LINE" | |
3332 | else | |
3333 | no_cache=1 | |
3334 | fi | |
3335 | ||
3336 | ac_cv_use_wave='wxUSE_WAVE='$DEFAULT_wxUSE_WAVE | |
698dcdb6 VZ |
3337 | |
3338 | fi | |
10f2d63a VZ |
3339 | |
3340 | ||
3341 | eval "$ac_cv_use_wave" | |
3342 | if test "$no_cache" != 1; then | |
3343 | echo $ac_cv_use_wave >> ${wx_arg_cache_file}.tmp | |
3344 | fi | |
3345 | ||
3346 | if test "$wxUSE_WAVE" = yes; then | |
698dcdb6 | 3347 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3348 | else |
698dcdb6 | 3349 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3350 | fi |
698dcdb6 | 3351 | |
10f2d63a | 3352 | |
698dcdb6 | 3353 | echo $ac_n "checking for --enable-fraction""... $ac_c" 1>&6 |
031d8228 | 3354 | echo "configure:3355: checking for --enable-fraction" >&5 |
10f2d63a VZ |
3355 | no_cache=0 |
3356 | # Check whether --enable-fraction or --disable-fraction was given. | |
3357 | if test "${enable_fraction+set}" = set; then | |
3358 | enableval="$enable_fraction" | |
698dcdb6 | 3359 | |
10f2d63a VZ |
3360 | if test "$enableval" = yes; then |
3361 | ac_cv_use_fraction='wxUSE_FRACTION=yes' | |
3362 | else | |
3363 | ac_cv_use_fraction='wxUSE_FRACTION=no' | |
3364 | fi | |
698dcdb6 | 3365 | |
10f2d63a | 3366 | else |
698dcdb6 | 3367 | |
10f2d63a VZ |
3368 | LINE=`grep "wxUSE_FRACTION" ${wx_arg_cache_file}` |
3369 | if test "x$LINE" != x ; then | |
3370 | eval "DEFAULT_$LINE" | |
3371 | else | |
3372 | no_cache=1 | |
3373 | fi | |
3374 | ||
3375 | ac_cv_use_fraction='wxUSE_FRACTION='$DEFAULT_wxUSE_FRACTION | |
698dcdb6 VZ |
3376 | |
3377 | fi | |
10f2d63a VZ |
3378 | |
3379 | ||
3380 | eval "$ac_cv_use_fraction" | |
3381 | if test "$no_cache" != 1; then | |
3382 | echo $ac_cv_use_fraction >> ${wx_arg_cache_file}.tmp | |
3383 | fi | |
3384 | ||
3385 | if test "$wxUSE_FRACTION" = yes; then | |
698dcdb6 | 3386 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3387 | else |
698dcdb6 | 3388 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3389 | fi |
698dcdb6 | 3390 | |
10f2d63a | 3391 | |
698dcdb6 | 3392 | echo $ac_n "checking for --enable-dynlib""... $ac_c" 1>&6 |
031d8228 | 3393 | echo "configure:3394: checking for --enable-dynlib" >&5 |
10f2d63a VZ |
3394 | no_cache=0 |
3395 | # Check whether --enable-dynlib or --disable-dynlib was given. | |
3396 | if test "${enable_dynlib+set}" = set; then | |
3397 | enableval="$enable_dynlib" | |
698dcdb6 | 3398 | |
10f2d63a VZ |
3399 | if test "$enableval" = yes; then |
3400 | ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes' | |
3401 | else | |
3402 | ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no' | |
3403 | fi | |
698dcdb6 | 3404 | |
10f2d63a | 3405 | else |
698dcdb6 | 3406 | |
10f2d63a VZ |
3407 | LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}` |
3408 | if test "x$LINE" != x ; then | |
3409 | eval "DEFAULT_$LINE" | |
3410 | else | |
3411 | no_cache=1 | |
3412 | fi | |
3413 | ||
3414 | ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS | |
698dcdb6 VZ |
3415 | |
3416 | fi | |
10f2d63a VZ |
3417 | |
3418 | ||
3419 | eval "$ac_cv_use_dynlib" | |
3420 | if test "$no_cache" != 1; then | |
3421 | echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp | |
3422 | fi | |
3423 | ||
3424 | if test "$wxUSE_DYNLIB_CLASS" = yes; then | |
698dcdb6 | 3425 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3426 | else |
698dcdb6 | 3427 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3428 | fi |
698dcdb6 | 3429 | |
10f2d63a | 3430 | |
698dcdb6 | 3431 | echo $ac_n "checking for --enable-longlong""... $ac_c" 1>&6 |
031d8228 | 3432 | echo "configure:3433: checking for --enable-longlong" >&5 |
10f2d63a VZ |
3433 | no_cache=0 |
3434 | # Check whether --enable-longlong or --disable-longlong was given. | |
3435 | if test "${enable_longlong+set}" = set; then | |
3436 | enableval="$enable_longlong" | |
698dcdb6 | 3437 | |
10f2d63a VZ |
3438 | if test "$enableval" = yes; then |
3439 | ac_cv_use_longlong='wxUSE_LONGLONG=yes' | |
3440 | else | |
3441 | ac_cv_use_longlong='wxUSE_LONGLONG=no' | |
3442 | fi | |
698dcdb6 | 3443 | |
10f2d63a | 3444 | else |
698dcdb6 | 3445 | |
10f2d63a VZ |
3446 | LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}` |
3447 | if test "x$LINE" != x ; then | |
3448 | eval "DEFAULT_$LINE" | |
3449 | else | |
3450 | no_cache=1 | |
3451 | fi | |
3452 | ||
3453 | ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG | |
698dcdb6 VZ |
3454 | |
3455 | fi | |
10f2d63a VZ |
3456 | |
3457 | ||
3458 | eval "$ac_cv_use_longlong" | |
3459 | if test "$no_cache" != 1; then | |
3460 | echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp | |
3461 | fi | |
3462 | ||
3463 | if test "$wxUSE_LONGLONG" = yes; then | |
698dcdb6 | 3464 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3465 | else |
698dcdb6 | 3466 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3467 | fi |
698dcdb6 | 3468 | |
10f2d63a | 3469 | |
698dcdb6 | 3470 | echo $ac_n "checking for --enable-geometry""... $ac_c" 1>&6 |
031d8228 | 3471 | echo "configure:3472: checking for --enable-geometry" >&5 |
e8f65ba6 RR |
3472 | no_cache=0 |
3473 | # Check whether --enable-geometry or --disable-geometry was given. | |
3474 | if test "${enable_geometry+set}" = set; then | |
3475 | enableval="$enable_geometry" | |
698dcdb6 | 3476 | |
e8f65ba6 RR |
3477 | if test "$enableval" = yes; then |
3478 | ac_cv_use_geometry='wxUSE_GEOMETRY=yes' | |
3479 | else | |
3480 | ac_cv_use_geometry='wxUSE_GEOMETRY=no' | |
3481 | fi | |
698dcdb6 | 3482 | |
e8f65ba6 | 3483 | else |
698dcdb6 | 3484 | |
e8f65ba6 RR |
3485 | LINE=`grep "wxUSE_GEOMETRY" ${wx_arg_cache_file}` |
3486 | if test "x$LINE" != x ; then | |
3487 | eval "DEFAULT_$LINE" | |
3488 | else | |
3489 | no_cache=1 | |
3490 | fi | |
3491 | ||
3492 | ac_cv_use_geometry='wxUSE_GEOMETRY='$DEFAULT_wxUSE_GEOMETRY | |
698dcdb6 VZ |
3493 | |
3494 | fi | |
e8f65ba6 RR |
3495 | |
3496 | ||
3497 | eval "$ac_cv_use_geometry" | |
3498 | if test "$no_cache" != 1; then | |
3499 | echo $ac_cv_use_geometry >> ${wx_arg_cache_file}.tmp | |
3500 | fi | |
3501 | ||
3502 | if test "$wxUSE_GEOMETRY" = yes; then | |
698dcdb6 | 3503 | echo "$ac_t""yes" 1>&6 |
e8f65ba6 | 3504 | else |
698dcdb6 | 3505 | echo "$ac_t""no" 1>&6 |
e8f65ba6 | 3506 | fi |
698dcdb6 | 3507 | |
e8f65ba6 | 3508 | |
698dcdb6 | 3509 | echo $ac_n "checking for --enable-log""... $ac_c" 1>&6 |
031d8228 | 3510 | echo "configure:3511: checking for --enable-log" >&5 |
10f2d63a VZ |
3511 | no_cache=0 |
3512 | # Check whether --enable-log or --disable-log was given. | |
3513 | if test "${enable_log+set}" = set; then | |
3514 | enableval="$enable_log" | |
698dcdb6 | 3515 | |
10f2d63a VZ |
3516 | if test "$enableval" = yes; then |
3517 | ac_cv_use_log='wxUSE_LOG=yes' | |
3518 | else | |
3519 | ac_cv_use_log='wxUSE_LOG=no' | |
3520 | fi | |
698dcdb6 | 3521 | |
10f2d63a | 3522 | else |
698dcdb6 | 3523 | |
10f2d63a VZ |
3524 | LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}` |
3525 | if test "x$LINE" != x ; then | |
3526 | eval "DEFAULT_$LINE" | |
3527 | else | |
3528 | no_cache=1 | |
3529 | fi | |
3530 | ||
3531 | ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG | |
698dcdb6 VZ |
3532 | |
3533 | fi | |
10f2d63a VZ |
3534 | |
3535 | ||
3536 | eval "$ac_cv_use_log" | |
3537 | if test "$no_cache" != 1; then | |
3538 | echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp | |
3539 | fi | |
3540 | ||
3541 | if test "$wxUSE_LOG" = yes; then | |
698dcdb6 | 3542 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3543 | else |
698dcdb6 | 3544 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3545 | fi |
698dcdb6 | 3546 | |
10f2d63a | 3547 | |
698dcdb6 | 3548 | echo $ac_n "checking for --enable-streams""... $ac_c" 1>&6 |
031d8228 | 3549 | echo "configure:3550: checking for --enable-streams" >&5 |
10f2d63a VZ |
3550 | no_cache=0 |
3551 | # Check whether --enable-streams or --disable-streams was given. | |
3552 | if test "${enable_streams+set}" = set; then | |
3553 | enableval="$enable_streams" | |
698dcdb6 | 3554 | |
10f2d63a VZ |
3555 | if test "$enableval" = yes; then |
3556 | ac_cv_use_streams='wxUSE_STREAMS=yes' | |
3557 | else | |
3558 | ac_cv_use_streams='wxUSE_STREAMS=no' | |
3559 | fi | |
698dcdb6 | 3560 | |
10f2d63a | 3561 | else |
698dcdb6 | 3562 | |
10f2d63a VZ |
3563 | LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}` |
3564 | if test "x$LINE" != x ; then | |
3565 | eval "DEFAULT_$LINE" | |
3566 | else | |
3567 | no_cache=1 | |
3568 | fi | |
3569 | ||
3570 | ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS | |
698dcdb6 VZ |
3571 | |
3572 | fi | |
10f2d63a VZ |
3573 | |
3574 | ||
3575 | eval "$ac_cv_use_streams" | |
3576 | if test "$no_cache" != 1; then | |
3577 | echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp | |
3578 | fi | |
3579 | ||
3580 | if test "$wxUSE_STREAMS" = yes; then | |
698dcdb6 | 3581 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3582 | else |
698dcdb6 | 3583 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3584 | fi |
698dcdb6 | 3585 | |
10f2d63a | 3586 | |
698dcdb6 | 3587 | echo $ac_n "checking for --enable-file""... $ac_c" 1>&6 |
031d8228 | 3588 | echo "configure:3589: checking for --enable-file" >&5 |
10f2d63a VZ |
3589 | no_cache=0 |
3590 | # Check whether --enable-file or --disable-file was given. | |
3591 | if test "${enable_file+set}" = set; then | |
3592 | enableval="$enable_file" | |
698dcdb6 | 3593 | |
10f2d63a VZ |
3594 | if test "$enableval" = yes; then |
3595 | ac_cv_use_file='wxUSE_FILE=yes' | |
3596 | else | |
3597 | ac_cv_use_file='wxUSE_FILE=no' | |
3598 | fi | |
698dcdb6 | 3599 | |
10f2d63a | 3600 | else |
698dcdb6 | 3601 | |
10f2d63a VZ |
3602 | LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}` |
3603 | if test "x$LINE" != x ; then | |
3604 | eval "DEFAULT_$LINE" | |
3605 | else | |
3606 | no_cache=1 | |
3607 | fi | |
3608 | ||
3609 | ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE | |
698dcdb6 VZ |
3610 | |
3611 | fi | |
10f2d63a VZ |
3612 | |
3613 | ||
3614 | eval "$ac_cv_use_file" | |
3615 | if test "$no_cache" != 1; then | |
3616 | echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp | |
3617 | fi | |
3618 | ||
3619 | if test "$wxUSE_FILE" = yes; then | |
698dcdb6 | 3620 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3621 | else |
698dcdb6 | 3622 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3623 | fi |
698dcdb6 | 3624 | |
10f2d63a | 3625 | |
1e6feb95 | 3626 | echo $ac_n "checking for --enable-ffile""... $ac_c" 1>&6 |
031d8228 | 3627 | echo "configure:3628: checking for --enable-ffile" >&5 |
10f2d63a | 3628 | no_cache=0 |
1e6feb95 VZ |
3629 | # Check whether --enable-ffile or --disable-ffile was given. |
3630 | if test "${enable_ffile+set}" = set; then | |
3631 | enableval="$enable_ffile" | |
698dcdb6 | 3632 | |
10f2d63a | 3633 | if test "$enableval" = yes; then |
1e6feb95 | 3634 | ac_cv_use_ffile='wxUSE_FFILE=yes' |
10f2d63a | 3635 | else |
1e6feb95 | 3636 | ac_cv_use_ffile='wxUSE_FFILE=no' |
10f2d63a | 3637 | fi |
698dcdb6 | 3638 | |
10f2d63a | 3639 | else |
698dcdb6 | 3640 | |
1e6feb95 | 3641 | LINE=`grep "wxUSE_FFILE" ${wx_arg_cache_file}` |
10f2d63a VZ |
3642 | if test "x$LINE" != x ; then |
3643 | eval "DEFAULT_$LINE" | |
3644 | else | |
3645 | no_cache=1 | |
3646 | fi | |
3647 | ||
1e6feb95 | 3648 | ac_cv_use_ffile='wxUSE_FFILE='$DEFAULT_wxUSE_FFILE |
698dcdb6 VZ |
3649 | |
3650 | fi | |
10f2d63a VZ |
3651 | |
3652 | ||
1e6feb95 | 3653 | eval "$ac_cv_use_ffile" |
10f2d63a | 3654 | if test "$no_cache" != 1; then |
1e6feb95 | 3655 | echo $ac_cv_use_ffile >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
3656 | fi |
3657 | ||
1e6feb95 | 3658 | if test "$wxUSE_FFILE" = yes; then |
698dcdb6 | 3659 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3660 | else |
698dcdb6 | 3661 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3662 | fi |
698dcdb6 | 3663 | |
10f2d63a | 3664 | |
1e6feb95 | 3665 | echo $ac_n "checking for --enable-textfile""... $ac_c" 1>&6 |
031d8228 | 3666 | echo "configure:3667: checking for --enable-textfile" >&5 |
10f2d63a | 3667 | no_cache=0 |
1e6feb95 VZ |
3668 | # Check whether --enable-textfile or --disable-textfile was given. |
3669 | if test "${enable_textfile+set}" = set; then | |
3670 | enableval="$enable_textfile" | |
698dcdb6 | 3671 | |
10f2d63a | 3672 | if test "$enableval" = yes; then |
1e6feb95 | 3673 | ac_cv_use_textfile='wxUSE_TEXTFILE=yes' |
10f2d63a | 3674 | else |
1e6feb95 | 3675 | ac_cv_use_textfile='wxUSE_TEXTFILE=no' |
10f2d63a | 3676 | fi |
698dcdb6 | 3677 | |
10f2d63a | 3678 | else |
698dcdb6 | 3679 | |
1e6feb95 | 3680 | LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}` |
10f2d63a VZ |
3681 | if test "x$LINE" != x ; then |
3682 | eval "DEFAULT_$LINE" | |
3683 | else | |
3684 | no_cache=1 | |
3685 | fi | |
3686 | ||
1e6feb95 | 3687 | ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE |
698dcdb6 VZ |
3688 | |
3689 | fi | |
10f2d63a VZ |
3690 | |
3691 | ||
1e6feb95 | 3692 | eval "$ac_cv_use_textfile" |
10f2d63a | 3693 | if test "$no_cache" != 1; then |
1e6feb95 | 3694 | echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
3695 | fi |
3696 | ||
1e6feb95 | 3697 | if test "$wxUSE_TEXTFILE" = yes; then |
698dcdb6 | 3698 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3699 | else |
698dcdb6 | 3700 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3701 | fi |
698dcdb6 | 3702 | |
10f2d63a | 3703 | |
1e6feb95 | 3704 | echo $ac_n "checking for --enable-fontmap""... $ac_c" 1>&6 |
031d8228 | 3705 | echo "configure:3706: checking for --enable-fontmap" >&5 |
10f2d63a | 3706 | no_cache=0 |
1e6feb95 VZ |
3707 | # Check whether --enable-fontmap or --disable-fontmap was given. |
3708 | if test "${enable_fontmap+set}" = set; then | |
3709 | enableval="$enable_fontmap" | |
698dcdb6 | 3710 | |
10f2d63a | 3711 | if test "$enableval" = yes; then |
1e6feb95 | 3712 | ac_cv_use_fontmap='wxUSE_FONTMAP=yes' |
10f2d63a | 3713 | else |
1e6feb95 | 3714 | ac_cv_use_fontmap='wxUSE_FONTMAP=no' |
10f2d63a | 3715 | fi |
698dcdb6 | 3716 | |
10f2d63a | 3717 | else |
698dcdb6 | 3718 | |
1e6feb95 | 3719 | LINE=`grep "wxUSE_FONTMAP" ${wx_arg_cache_file}` |
10f2d63a VZ |
3720 | if test "x$LINE" != x ; then |
3721 | eval "DEFAULT_$LINE" | |
3722 | else | |
3723 | no_cache=1 | |
3724 | fi | |
3725 | ||
1e6feb95 | 3726 | ac_cv_use_fontmap='wxUSE_FONTMAP='$DEFAULT_wxUSE_FONTMAP |
698dcdb6 VZ |
3727 | |
3728 | fi | |
10f2d63a VZ |
3729 | |
3730 | ||
1e6feb95 | 3731 | eval "$ac_cv_use_fontmap" |
10f2d63a | 3732 | if test "$no_cache" != 1; then |
1e6feb95 | 3733 | echo $ac_cv_use_fontmap >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
3734 | fi |
3735 | ||
1e6feb95 | 3736 | if test "$wxUSE_FONTMAP" = yes; then |
698dcdb6 | 3737 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3738 | else |
698dcdb6 | 3739 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3740 | fi |
698dcdb6 | 3741 | |
10f2d63a | 3742 | |
1e6feb95 | 3743 | echo $ac_n "checking for --enable-unicode""... $ac_c" 1>&6 |
031d8228 | 3744 | echo "configure:3745: checking for --enable-unicode" >&5 |
10f2d63a | 3745 | no_cache=0 |
1e6feb95 VZ |
3746 | # Check whether --enable-unicode or --disable-unicode was given. |
3747 | if test "${enable_unicode+set}" = set; then | |
3748 | enableval="$enable_unicode" | |
3749 | ||
3750 | if test "$enableval" = yes; then | |
3751 | ac_cv_use_unicode='wxUSE_UNICODE=yes' | |
3752 | else | |
3753 | ac_cv_use_unicode='wxUSE_UNICODE=no' | |
3754 | fi | |
3755 | ||
3756 | else | |
3757 | ||
3758 | LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}` | |
3759 | if test "x$LINE" != x ; then | |
3760 | eval "DEFAULT_$LINE" | |
3761 | else | |
3762 | no_cache=1 | |
3763 | fi | |
3764 | ||
3765 | ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE | |
3766 | ||
3767 | fi | |
3768 | ||
3769 | ||
3770 | eval "$ac_cv_use_unicode" | |
3771 | if test "$no_cache" != 1; then | |
3772 | echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp | |
3773 | fi | |
3774 | ||
3775 | if test "$wxUSE_UNICODE" = yes; then | |
3776 | echo "$ac_t""yes" 1>&6 | |
3777 | else | |
3778 | echo "$ac_t""no" 1>&6 | |
3779 | fi | |
3780 | ||
3781 | ||
3782 | echo $ac_n "checking for --enable-wcsrtombs""... $ac_c" 1>&6 | |
031d8228 | 3783 | echo "configure:3784: checking for --enable-wcsrtombs" >&5 |
1e6feb95 VZ |
3784 | no_cache=0 |
3785 | # Check whether --enable-wcsrtombs or --disable-wcsrtombs was given. | |
3786 | if test "${enable_wcsrtombs+set}" = set; then | |
3787 | enableval="$enable_wcsrtombs" | |
3788 | ||
3789 | if test "$enableval" = yes; then | |
3790 | ac_cv_use_wcsrtombs='wxUSE_WCSRTOMBS=yes' | |
3791 | else | |
3792 | ac_cv_use_wcsrtombs='wxUSE_WCSRTOMBS=no' | |
3793 | fi | |
3794 | ||
3795 | else | |
3796 | ||
3797 | LINE=`grep "wxUSE_WCSRTOMBS" ${wx_arg_cache_file}` | |
3798 | if test "x$LINE" != x ; then | |
3799 | eval "DEFAULT_$LINE" | |
3800 | else | |
3801 | no_cache=1 | |
3802 | fi | |
3803 | ||
3804 | ac_cv_use_wcsrtombs='wxUSE_WCSRTOMBS='$DEFAULT_wxUSE_WCSRTOMBS | |
3805 | ||
3806 | fi | |
3807 | ||
3808 | ||
3809 | eval "$ac_cv_use_wcsrtombs" | |
3810 | if test "$no_cache" != 1; then | |
3811 | echo $ac_cv_use_wcsrtombs >> ${wx_arg_cache_file}.tmp | |
3812 | fi | |
3813 | ||
3814 | if test "$wxUSE_WCSRTOMBS" = yes; then | |
3815 | echo "$ac_t""yes" 1>&6 | |
3816 | else | |
3817 | echo "$ac_t""no" 1>&6 | |
3818 | fi | |
3819 | ||
3820 | ||
3821 | echo $ac_n "checking for --enable-wxprintfv""... $ac_c" 1>&6 | |
031d8228 | 3822 | echo "configure:3823: checking for --enable-wxprintfv" >&5 |
1e6feb95 VZ |
3823 | no_cache=0 |
3824 | # Check whether --enable-wxprintfv or --disable-wxprintfv was given. | |
3825 | if test "${enable_wxprintfv+set}" = set; then | |
3826 | enableval="$enable_wxprintfv" | |
3827 | ||
3828 | if test "$enableval" = yes; then | |
10f2d63a VZ |
3829 | ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=yes' |
3830 | else | |
3831 | ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=no' | |
3832 | fi | |
698dcdb6 | 3833 | |
10f2d63a | 3834 | else |
698dcdb6 | 3835 | |
10f2d63a VZ |
3836 | LINE=`grep "wxUSE_EXPERIMENTAL_PRINTF" ${wx_arg_cache_file}` |
3837 | if test "x$LINE" != x ; then | |
3838 | eval "DEFAULT_$LINE" | |
3839 | else | |
3840 | no_cache=1 | |
3841 | fi | |
3842 | ||
3843 | ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF='$DEFAULT_wxUSE_EXPERIMENTAL_PRINTF | |
698dcdb6 VZ |
3844 | |
3845 | fi | |
10f2d63a VZ |
3846 | |
3847 | ||
3848 | eval "$ac_cv_use_wxprintfv" | |
3849 | if test "$no_cache" != 1; then | |
3850 | echo $ac_cv_use_wxprintfv >> ${wx_arg_cache_file}.tmp | |
3851 | fi | |
3852 | ||
3853 | if test "$wxUSE_EXPERIMENTAL_PRINTF" = yes; then | |
698dcdb6 | 3854 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3855 | else |
698dcdb6 | 3856 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3857 | fi |
698dcdb6 | 3858 | |
10f2d63a | 3859 | |
698dcdb6 | 3860 | echo $ac_n "checking for --enable-std_iostreams""... $ac_c" 1>&6 |
031d8228 | 3861 | echo "configure:3862: checking for --enable-std_iostreams" >&5 |
10f2d63a VZ |
3862 | no_cache=0 |
3863 | # Check whether --enable-std_iostreams or --disable-std_iostreams was given. | |
3864 | if test "${enable_std_iostreams+set}" = set; then | |
3865 | enableval="$enable_std_iostreams" | |
698dcdb6 | 3866 | |
10f2d63a VZ |
3867 | if test "$enableval" = yes; then |
3868 | ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes' | |
3869 | else | |
3870 | ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no' | |
3871 | fi | |
698dcdb6 | 3872 | |
10f2d63a | 3873 | else |
698dcdb6 | 3874 | |
10f2d63a VZ |
3875 | LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}` |
3876 | if test "x$LINE" != x ; then | |
3877 | eval "DEFAULT_$LINE" | |
3878 | else | |
3879 | no_cache=1 | |
3880 | fi | |
3881 | ||
3882 | ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM | |
698dcdb6 VZ |
3883 | |
3884 | fi | |
10f2d63a VZ |
3885 | |
3886 | ||
3887 | eval "$ac_cv_use_std_iostreams" | |
3888 | if test "$no_cache" != 1; then | |
3889 | echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp | |
3890 | fi | |
3891 | ||
3892 | if test "$wxUSE_STD_IOSTREAM" = yes; then | |
698dcdb6 | 3893 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3894 | else |
698dcdb6 | 3895 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3896 | fi |
698dcdb6 | 3897 | |
10f2d63a | 3898 | |
698dcdb6 | 3899 | echo $ac_n "checking for --enable-filesystem""... $ac_c" 1>&6 |
031d8228 | 3900 | echo "configure:3901: checking for --enable-filesystem" >&5 |
24528b0c VS |
3901 | no_cache=0 |
3902 | # Check whether --enable-filesystem or --disable-filesystem was given. | |
3903 | if test "${enable_filesystem+set}" = set; then | |
3904 | enableval="$enable_filesystem" | |
698dcdb6 | 3905 | |
24528b0c VS |
3906 | if test "$enableval" = yes; then |
3907 | ac_cv_use_filesystem='wxUSE_FILESYSTEM=yes' | |
3908 | else | |
3909 | ac_cv_use_filesystem='wxUSE_FILESYSTEM=no' | |
3910 | fi | |
698dcdb6 | 3911 | |
24528b0c | 3912 | else |
698dcdb6 | 3913 | |
24528b0c VS |
3914 | LINE=`grep "wxUSE_FILESYSTEM" ${wx_arg_cache_file}` |
3915 | if test "x$LINE" != x ; then | |
3916 | eval "DEFAULT_$LINE" | |
3917 | else | |
3918 | no_cache=1 | |
3919 | fi | |
3920 | ||
3921 | ac_cv_use_filesystem='wxUSE_FILESYSTEM='$DEFAULT_wxUSE_FILESYSTEM | |
698dcdb6 VZ |
3922 | |
3923 | fi | |
24528b0c VS |
3924 | |
3925 | ||
3926 | eval "$ac_cv_use_filesystem" | |
3927 | if test "$no_cache" != 1; then | |
3928 | echo $ac_cv_use_filesystem >> ${wx_arg_cache_file}.tmp | |
3929 | fi | |
3930 | ||
3931 | if test "$wxUSE_FILESYSTEM" = yes; then | |
698dcdb6 | 3932 | echo "$ac_t""yes" 1>&6 |
24528b0c | 3933 | else |
698dcdb6 | 3934 | echo "$ac_t""no" 1>&6 |
24528b0c | 3935 | fi |
698dcdb6 | 3936 | |
24528b0c | 3937 | |
698dcdb6 | 3938 | echo $ac_n "checking for --enable-fs_inet""... $ac_c" 1>&6 |
031d8228 | 3939 | echo "configure:3940: checking for --enable-fs_inet" >&5 |
10f2d63a VZ |
3940 | no_cache=0 |
3941 | # Check whether --enable-fs_inet or --disable-fs_inet was given. | |
3942 | if test "${enable_fs_inet+set}" = set; then | |
3943 | enableval="$enable_fs_inet" | |
698dcdb6 | 3944 | |
10f2d63a VZ |
3945 | if test "$enableval" = yes; then |
3946 | ac_cv_use_fs_inet='wxUSE_FS_INET=yes' | |
3947 | else | |
3948 | ac_cv_use_fs_inet='wxUSE_FS_INET=no' | |
3949 | fi | |
698dcdb6 | 3950 | |
10f2d63a | 3951 | else |
698dcdb6 | 3952 | |
10f2d63a VZ |
3953 | LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}` |
3954 | if test "x$LINE" != x ; then | |
3955 | eval "DEFAULT_$LINE" | |
3956 | else | |
3957 | no_cache=1 | |
3958 | fi | |
3959 | ||
3960 | ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET | |
698dcdb6 VZ |
3961 | |
3962 | fi | |
10f2d63a VZ |
3963 | |
3964 | ||
3965 | eval "$ac_cv_use_fs_inet" | |
3966 | if test "$no_cache" != 1; then | |
3967 | echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp | |
3968 | fi | |
3969 | ||
3970 | if test "$wxUSE_FS_INET" = yes; then | |
698dcdb6 | 3971 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3972 | else |
698dcdb6 | 3973 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3974 | fi |
698dcdb6 | 3975 | |
10f2d63a | 3976 | |
698dcdb6 | 3977 | echo $ac_n "checking for --enable-fs_zip""... $ac_c" 1>&6 |
031d8228 | 3978 | echo "configure:3979: checking for --enable-fs_zip" >&5 |
10f2d63a VZ |
3979 | no_cache=0 |
3980 | # Check whether --enable-fs_zip or --disable-fs_zip was given. | |
3981 | if test "${enable_fs_zip+set}" = set; then | |
3982 | enableval="$enable_fs_zip" | |
698dcdb6 | 3983 | |
10f2d63a VZ |
3984 | if test "$enableval" = yes; then |
3985 | ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes' | |
3986 | else | |
3987 | ac_cv_use_fs_zip='wxUSE_FS_ZIP=no' | |
3988 | fi | |
698dcdb6 | 3989 | |
10f2d63a | 3990 | else |
698dcdb6 | 3991 | |
10f2d63a VZ |
3992 | LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}` |
3993 | if test "x$LINE" != x ; then | |
3994 | eval "DEFAULT_$LINE" | |
3995 | else | |
3996 | no_cache=1 | |
3997 | fi | |
3998 | ||
3999 | ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP | |
698dcdb6 VZ |
4000 | |
4001 | fi | |
10f2d63a VZ |
4002 | |
4003 | ||
4004 | eval "$ac_cv_use_fs_zip" | |
4005 | if test "$no_cache" != 1; then | |
4006 | echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp | |
4007 | fi | |
4008 | ||
4009 | if test "$wxUSE_FS_ZIP" = yes; then | |
698dcdb6 | 4010 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4011 | else |
698dcdb6 | 4012 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4013 | fi |
698dcdb6 | 4014 | |
10f2d63a | 4015 | |
698dcdb6 | 4016 | echo $ac_n "checking for --enable-zipstream""... $ac_c" 1>&6 |
031d8228 | 4017 | echo "configure:4018: checking for --enable-zipstream" >&5 |
10f2d63a VZ |
4018 | no_cache=0 |
4019 | # Check whether --enable-zipstream or --disable-zipstream was given. | |
4020 | if test "${enable_zipstream+set}" = set; then | |
4021 | enableval="$enable_zipstream" | |
698dcdb6 | 4022 | |
10f2d63a VZ |
4023 | if test "$enableval" = yes; then |
4024 | ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes' | |
4025 | else | |
4026 | ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no' | |
4027 | fi | |
698dcdb6 | 4028 | |
10f2d63a | 4029 | else |
698dcdb6 | 4030 | |
10f2d63a VZ |
4031 | LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}` |
4032 | if test "x$LINE" != x ; then | |
4033 | eval "DEFAULT_$LINE" | |
4034 | else | |
4035 | no_cache=1 | |
4036 | fi | |
4037 | ||
4038 | ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM | |
698dcdb6 VZ |
4039 | |
4040 | fi | |
10f2d63a VZ |
4041 | |
4042 | ||
4043 | eval "$ac_cv_use_zipstream" | |
4044 | if test "$no_cache" != 1; then | |
4045 | echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp | |
4046 | fi | |
4047 | ||
4048 | if test "$wxUSE_ZIPSTREAM" = yes; then | |
698dcdb6 | 4049 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4050 | else |
698dcdb6 | 4051 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4052 | fi |
698dcdb6 | 4053 | |
10f2d63a | 4054 | |
698dcdb6 VZ |
4055 | |
4056 | echo $ac_n "checking for --enable-catch_segvs""... $ac_c" 1>&6 | |
031d8228 | 4057 | echo "configure:4058: checking for --enable-catch_segvs" >&5 |
eb4efbdc VZ |
4058 | no_cache=0 |
4059 | # Check whether --enable-catch_segvs or --disable-catch_segvs was given. | |
4060 | if test "${enable_catch_segvs+set}" = set; then | |
4061 | enableval="$enable_catch_segvs" | |
698dcdb6 | 4062 | |
eb4efbdc VZ |
4063 | if test "$enableval" = yes; then |
4064 | ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes' | |
4065 | else | |
4066 | ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no' | |
4067 | fi | |
698dcdb6 | 4068 | |
eb4efbdc | 4069 | else |
698dcdb6 | 4070 | |
eb4efbdc VZ |
4071 | LINE=`grep "wxUSE_ON_FATAL_EXCEPTION" ${wx_arg_cache_file}` |
4072 | if test "x$LINE" != x ; then | |
4073 | eval "DEFAULT_$LINE" | |
4074 | else | |
4075 | no_cache=1 | |
4076 | fi | |
4077 | ||
4078 | ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION='$DEFAULT_wxUSE_ON_FATAL_EXCEPTION | |
698dcdb6 VZ |
4079 | |
4080 | fi | |
eb4efbdc VZ |
4081 | |
4082 | ||
4083 | eval "$ac_cv_use_catch_segvs" | |
4084 | if test "$no_cache" != 1; then | |
4085 | echo $ac_cv_use_catch_segvs >> ${wx_arg_cache_file}.tmp | |
4086 | fi | |
4087 | ||
4088 | if test "$wxUSE_ON_FATAL_EXCEPTION" = yes; then | |
698dcdb6 | 4089 | echo "$ac_t""yes" 1>&6 |
eb4efbdc | 4090 | else |
698dcdb6 | 4091 | echo "$ac_t""no" 1>&6 |
eb4efbdc | 4092 | fi |
698dcdb6 | 4093 | |
eb4efbdc | 4094 | |
698dcdb6 | 4095 | echo $ac_n "checking for --enable-snglinst""... $ac_c" 1>&6 |
031d8228 | 4096 | echo "configure:4097: checking for --enable-snglinst" >&5 |
4f3c5f06 VZ |
4097 | no_cache=0 |
4098 | # Check whether --enable-snglinst or --disable-snglinst was given. | |
4099 | if test "${enable_snglinst+set}" = set; then | |
4100 | enableval="$enable_snglinst" | |
698dcdb6 | 4101 | |
4f3c5f06 VZ |
4102 | if test "$enableval" = yes; then |
4103 | ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=yes' | |
4104 | else | |
4105 | ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=no' | |
4106 | fi | |
698dcdb6 | 4107 | |
4f3c5f06 | 4108 | else |
698dcdb6 | 4109 | |
4f3c5f06 VZ |
4110 | LINE=`grep "wxUSE_SNGLINST_CHECKER" ${wx_arg_cache_file}` |
4111 | if test "x$LINE" != x ; then | |
4112 | eval "DEFAULT_$LINE" | |
4113 | else | |
4114 | no_cache=1 | |
4115 | fi | |
4116 | ||
4117 | ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER='$DEFAULT_wxUSE_SNGLINST_CHECKER | |
698dcdb6 VZ |
4118 | |
4119 | fi | |
4f3c5f06 VZ |
4120 | |
4121 | ||
4122 | eval "$ac_cv_use_snglinst" | |
4123 | if test "$no_cache" != 1; then | |
4124 | echo $ac_cv_use_snglinst >> ${wx_arg_cache_file}.tmp | |
4125 | fi | |
4126 | ||
4127 | if test "$wxUSE_SNGLINST_CHECKER" = yes; then | |
698dcdb6 | 4128 | echo "$ac_t""yes" 1>&6 |
4f3c5f06 | 4129 | else |
698dcdb6 | 4130 | echo "$ac_t""no" 1>&6 |
4f3c5f06 | 4131 | fi |
698dcdb6 VZ |
4132 | |
4133 | ||
eb4efbdc | 4134 | |
1e6feb95 | 4135 | echo $ac_n "checking for --enable-mimetype""... $ac_c" 1>&6 |
031d8228 | 4136 | echo "configure:4137: checking for --enable-mimetype" >&5 |
1e6feb95 VZ |
4137 | no_cache=0 |
4138 | # Check whether --enable-mimetype or --disable-mimetype was given. | |
4139 | if test "${enable_mimetype+set}" = set; then | |
4140 | enableval="$enable_mimetype" | |
4141 | ||
4142 | if test "$enableval" = yes; then | |
4143 | ac_cv_use_mimetype='wxUSE_MIMETYPE=yes' | |
4144 | else | |
4145 | ac_cv_use_mimetype='wxUSE_MIMETYPE=no' | |
4146 | fi | |
4147 | ||
4148 | else | |
4149 | ||
4150 | LINE=`grep "wxUSE_MIMETYPE" ${wx_arg_cache_file}` | |
4151 | if test "x$LINE" != x ; then | |
4152 | eval "DEFAULT_$LINE" | |
4153 | else | |
4154 | no_cache=1 | |
4155 | fi | |
4156 | ||
4157 | ac_cv_use_mimetype='wxUSE_MIMETYPE='$DEFAULT_wxUSE_MIMETYPE | |
4158 | ||
4159 | fi | |
4160 | ||
4161 | ||
4162 | eval "$ac_cv_use_mimetype" | |
4163 | if test "$no_cache" != 1; then | |
4164 | echo $ac_cv_use_mimetype >> ${wx_arg_cache_file}.tmp | |
4165 | fi | |
4166 | ||
4167 | if test "$wxUSE_MIMETYPE" = yes; then | |
4168 | echo "$ac_t""yes" 1>&6 | |
4169 | else | |
4170 | echo "$ac_t""no" 1>&6 | |
4171 | fi | |
4172 | ||
4173 | ||
3e44f09d | 4174 | echo $ac_n "checking for --enable-system_options""... $ac_c" 1>&6 |
031d8228 | 4175 | echo "configure:4176: checking for --enable-system_options" >&5 |
3e44f09d VZ |
4176 | no_cache=0 |
4177 | # Check whether --enable-system_options or --disable-system_options was given. | |
4178 | if test "${enable_system_options+set}" = set; then | |
4179 | enableval="$enable_system_options" | |
4180 | ||
4181 | if test "$enableval" = yes; then | |
4182 | ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=yes' | |
4183 | else | |
4184 | ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=no' | |
4185 | fi | |
4186 | ||
4187 | else | |
4188 | ||
4189 | LINE=`grep "wxUSE_SYSTEM_OPTIONS" ${wx_arg_cache_file}` | |
4190 | if test "x$LINE" != x ; then | |
4191 | eval "DEFAULT_$LINE" | |
4192 | else | |
4193 | no_cache=1 | |
4194 | fi | |
4195 | ||
4196 | ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS='$DEFAULT_wxUSE_SYSTEM_OPTIONS | |
4197 | ||
4198 | fi | |
4199 | ||
4200 | ||
4201 | eval "$ac_cv_use_system_options" | |
4202 | if test "$no_cache" != 1; then | |
4203 | echo $ac_cv_use_system_options >> ${wx_arg_cache_file}.tmp | |
4204 | fi | |
4205 | ||
4206 | if test "$wxUSE_SYSTEM_OPTIONS" = yes; then | |
4207 | echo "$ac_t""yes" 1>&6 | |
4208 | else | |
4209 | echo "$ac_t""no" 1>&6 | |
4210 | fi | |
4211 | ||
4212 | ||
1e6feb95 | 4213 | |
698dcdb6 VZ |
4214 | |
4215 | echo $ac_n "checking for --enable-threads""... $ac_c" 1>&6 | |
031d8228 | 4216 | echo "configure:4217: checking for --enable-threads" >&5 |
10f2d63a VZ |
4217 | no_cache=0 |
4218 | # Check whether --enable-threads or --disable-threads was given. | |
4219 | if test "${enable_threads+set}" = set; then | |
4220 | enableval="$enable_threads" | |
698dcdb6 | 4221 | |
10f2d63a VZ |
4222 | if test "$enableval" = yes; then |
4223 | ac_cv_use_threads='wxUSE_THREADS=yes' | |
4224 | else | |
4225 | ac_cv_use_threads='wxUSE_THREADS=no' | |
4226 | fi | |
698dcdb6 | 4227 | |
10f2d63a | 4228 | else |
698dcdb6 | 4229 | |
10f2d63a VZ |
4230 | LINE=`grep "wxUSE_THREADS" ${wx_arg_cache_file}` |
4231 | if test "x$LINE" != x ; then | |
4232 | eval "DEFAULT_$LINE" | |
4233 | else | |
4234 | no_cache=1 | |
4235 | fi | |
4236 | ||
4237 | ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS | |
698dcdb6 VZ |
4238 | |
4239 | fi | |
10f2d63a VZ |
4240 | |
4241 | ||
4242 | eval "$ac_cv_use_threads" | |
4243 | if test "$no_cache" != 1; then | |
4244 | echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp | |
4245 | fi | |
4246 | ||
4247 | if test "$wxUSE_THREADS" = yes; then | |
698dcdb6 | 4248 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4249 | else |
698dcdb6 | 4250 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4251 | fi |
698dcdb6 | 4252 | |
10f2d63a | 4253 | |
698dcdb6 | 4254 | echo $ac_n "checking for --enable-serial""... $ac_c" 1>&6 |
031d8228 | 4255 | echo "configure:4256: checking for --enable-serial" >&5 |
10f2d63a VZ |
4256 | no_cache=0 |
4257 | # Check whether --enable-serial or --disable-serial was given. | |
4258 | if test "${enable_serial+set}" = set; then | |
4259 | enableval="$enable_serial" | |
698dcdb6 | 4260 | |
10f2d63a VZ |
4261 | if test "$enableval" = yes; then |
4262 | ac_cv_use_serial='wxUSE_SERIAL=yes' | |
4263 | else | |
4264 | ac_cv_use_serial='wxUSE_SERIAL=no' | |
4265 | fi | |
698dcdb6 | 4266 | |
10f2d63a | 4267 | else |
698dcdb6 | 4268 | |
10f2d63a VZ |
4269 | LINE=`grep "wxUSE_SERIAL" ${wx_arg_cache_file}` |
4270 | if test "x$LINE" != x ; then | |
4271 | eval "DEFAULT_$LINE" | |
4272 | else | |
4273 | no_cache=1 | |
4274 | fi | |
4275 | ||
4276 | ac_cv_use_serial='wxUSE_SERIAL='$DEFAULT_wxUSE_SERIAL | |
698dcdb6 VZ |
4277 | |
4278 | fi | |
10f2d63a VZ |
4279 | |
4280 | ||
4281 | eval "$ac_cv_use_serial" | |
4282 | if test "$no_cache" != 1; then | |
4283 | echo $ac_cv_use_serial >> ${wx_arg_cache_file}.tmp | |
4284 | fi | |
4285 | ||
4286 | if test "$wxUSE_SERIAL" = yes; then | |
698dcdb6 | 4287 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4288 | else |
698dcdb6 | 4289 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4290 | fi |
698dcdb6 | 4291 | |
10f2d63a | 4292 | |
b12915c1 VZ |
4293 | if test "$wxUSE_GUI" = "yes"; then |
4294 | ||
698dcdb6 VZ |
4295 | |
4296 | ||
4297 | echo $ac_n "checking for --enable-docview""... $ac_c" 1>&6 | |
031d8228 | 4298 | echo "configure:4299: checking for --enable-docview" >&5 |
10f2d63a VZ |
4299 | no_cache=0 |
4300 | # Check whether --enable-docview or --disable-docview was given. | |
4301 | if test "${enable_docview+set}" = set; then | |
4302 | enableval="$enable_docview" | |
698dcdb6 | 4303 | |
10f2d63a VZ |
4304 | if test "$enableval" = yes; then |
4305 | ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes' | |
4306 | else | |
4307 | ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no' | |
4308 | fi | |
698dcdb6 | 4309 | |
10f2d63a | 4310 | else |
698dcdb6 | 4311 | |
10f2d63a VZ |
4312 | LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}` |
4313 | if test "x$LINE" != x ; then | |
4314 | eval "DEFAULT_$LINE" | |
4315 | else | |
4316 | no_cache=1 | |
4317 | fi | |
4318 | ||
4319 | ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE | |
698dcdb6 VZ |
4320 | |
4321 | fi | |
10f2d63a VZ |
4322 | |
4323 | ||
4324 | eval "$ac_cv_use_docview" | |
4325 | if test "$no_cache" != 1; then | |
4326 | echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp | |
4327 | fi | |
4328 | ||
4329 | if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then | |
698dcdb6 | 4330 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4331 | else |
698dcdb6 | 4332 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4333 | fi |
698dcdb6 | 4334 | |
10f2d63a | 4335 | |
698dcdb6 | 4336 | echo $ac_n "checking for --enable-help""... $ac_c" 1>&6 |
031d8228 | 4337 | echo "configure:4338: checking for --enable-help" >&5 |
10f2d63a VZ |
4338 | no_cache=0 |
4339 | # Check whether --enable-help or --disable-help was given. | |
4340 | if test "${enable_help+set}" = set; then | |
4341 | enableval="$enable_help" | |
698dcdb6 | 4342 | |
10f2d63a VZ |
4343 | if test "$enableval" = yes; then |
4344 | ac_cv_use_help='wxUSE_HELP=yes' | |
4345 | else | |
4346 | ac_cv_use_help='wxUSE_HELP=no' | |
4347 | fi | |
698dcdb6 | 4348 | |
10f2d63a | 4349 | else |
698dcdb6 | 4350 | |
10f2d63a VZ |
4351 | LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}` |
4352 | if test "x$LINE" != x ; then | |
4353 | eval "DEFAULT_$LINE" | |
4354 | else | |
4355 | no_cache=1 | |
4356 | fi | |
4357 | ||
4358 | ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP | |
698dcdb6 VZ |
4359 | |
4360 | fi | |
10f2d63a VZ |
4361 | |
4362 | ||
4363 | eval "$ac_cv_use_help" | |
4364 | if test "$no_cache" != 1; then | |
4365 | echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp | |
4366 | fi | |
4367 | ||
4368 | if test "$wxUSE_HELP" = yes; then | |
698dcdb6 | 4369 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4370 | else |
698dcdb6 | 4371 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4372 | fi |
698dcdb6 | 4373 | |
10f2d63a | 4374 | |
29fd3c0c | 4375 | echo $ac_n "checking for --enable-mshtmlhelp""... $ac_c" 1>&6 |
031d8228 | 4376 | echo "configure:4377: checking for --enable-mshtmlhelp" >&5 |
29fd3c0c VS |
4377 | no_cache=0 |
4378 | # Check whether --enable-mshtmlhelp or --disable-mshtmlhelp was given. | |
4379 | if test "${enable_mshtmlhelp+set}" = set; then | |
4380 | enableval="$enable_mshtmlhelp" | |
4381 | ||
4382 | if test "$enableval" = yes; then | |
4383 | ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=yes' | |
4384 | else | |
4385 | ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=no' | |
4386 | fi | |
4387 | ||
4388 | else | |
4389 | ||
4390 | LINE=`grep "wxUSE_MS_HTML_HELP" ${wx_arg_cache_file}` | |
4391 | if test "x$LINE" != x ; then | |
4392 | eval "DEFAULT_$LINE" | |
4393 | else | |
4394 | no_cache=1 | |
4395 | fi | |
4396 | ||
4397 | ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP='$DEFAULT_wxUSE_MS_HTML_HELP | |
4398 | ||
4399 | fi | |
4400 | ||
4401 | ||
4402 | eval "$ac_cv_use_mshtmlhelp" | |
4403 | if test "$no_cache" != 1; then | |
4404 | echo $ac_cv_use_mshtmlhelp >> ${wx_arg_cache_file}.tmp | |
4405 | fi | |
4406 | ||
4407 | if test "$wxUSE_MS_HTML_HELP" = yes; then | |
4408 | echo "$ac_t""yes" 1>&6 | |
4409 | else | |
4410 | echo "$ac_t""no" 1>&6 | |
4411 | fi | |
4412 | ||
4413 | ||
3379ed37 | 4414 | echo $ac_n "checking for --enable-html""... $ac_c" 1>&6 |
031d8228 | 4415 | echo "configure:4416: checking for --enable-html" >&5 |
3379ed37 VZ |
4416 | no_cache=0 |
4417 | # Check whether --enable-html or --disable-html was given. | |
4418 | if test "${enable_html+set}" = set; then | |
4419 | enableval="$enable_html" | |
4420 | ||
4421 | if test "$enableval" = yes; then | |
4422 | ac_cv_use_html='wxUSE_HTML=yes' | |
4423 | else | |
4424 | ac_cv_use_html='wxUSE_HTML=no' | |
4425 | fi | |
4426 | ||
4427 | else | |
4428 | ||
4429 | LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}` | |
4430 | if test "x$LINE" != x ; then | |
4431 | eval "DEFAULT_$LINE" | |
4432 | else | |
4433 | no_cache=1 | |
4434 | fi | |
4435 | ||
4436 | ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML | |
4437 | ||
4438 | fi | |
4439 | ||
4440 | ||
4441 | eval "$ac_cv_use_html" | |
4442 | if test "$no_cache" != 1; then | |
4443 | echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp | |
4444 | fi | |
4445 | ||
4446 | if test "$wxUSE_HTML" = yes; then | |
4447 | echo "$ac_t""yes" 1>&6 | |
4448 | else | |
4449 | echo "$ac_t""no" 1>&6 | |
4450 | fi | |
4451 | ||
4452 | ||
4453 | echo $ac_n "checking for --enable-htmlhelp""... $ac_c" 1>&6 | |
031d8228 | 4454 | echo "configure:4455: checking for --enable-htmlhelp" >&5 |
3379ed37 VZ |
4455 | no_cache=0 |
4456 | # Check whether --enable-htmlhelp or --disable-htmlhelp was given. | |
4457 | if test "${enable_htmlhelp+set}" = set; then | |
4458 | enableval="$enable_htmlhelp" | |
4459 | ||
4460 | if test "$enableval" = yes; then | |
4461 | ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=yes' | |
4462 | else | |
4463 | ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=no' | |
4464 | fi | |
4465 | ||
4466 | else | |
4467 | ||
4468 | LINE=`grep "wxUSE_WXHTML_HELP" ${wx_arg_cache_file}` | |
4469 | if test "x$LINE" != x ; then | |
4470 | eval "DEFAULT_$LINE" | |
4471 | else | |
4472 | no_cache=1 | |
4473 | fi | |
4474 | ||
4475 | ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP='$DEFAULT_wxUSE_WXHTML_HELP | |
4476 | ||
4477 | fi | |
4478 | ||
4479 | ||
4480 | eval "$ac_cv_use_htmlhelp" | |
4481 | if test "$no_cache" != 1; then | |
4482 | echo $ac_cv_use_htmlhelp >> ${wx_arg_cache_file}.tmp | |
4483 | fi | |
4484 | ||
4485 | if test "$wxUSE_WXHTML_HELP" = yes; then | |
4486 | echo "$ac_t""yes" 1>&6 | |
4487 | else | |
4488 | echo "$ac_t""no" 1>&6 | |
4489 | fi | |
4490 | ||
4491 | ||
698dcdb6 | 4492 | echo $ac_n "checking for --enable-constraints""... $ac_c" 1>&6 |
031d8228 | 4493 | echo "configure:4494: checking for --enable-constraints" >&5 |
10f2d63a VZ |
4494 | no_cache=0 |
4495 | # Check whether --enable-constraints or --disable-constraints was given. | |
4496 | if test "${enable_constraints+set}" = set; then | |
4497 | enableval="$enable_constraints" | |
698dcdb6 | 4498 | |
10f2d63a VZ |
4499 | if test "$enableval" = yes; then |
4500 | ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes' | |
4501 | else | |
4502 | ac_cv_use_constraints='wxUSE_CONSTRAINTS=no' | |
4503 | fi | |
698dcdb6 | 4504 | |
10f2d63a | 4505 | else |
698dcdb6 | 4506 | |
10f2d63a VZ |
4507 | LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}` |
4508 | if test "x$LINE" != x ; then | |
4509 | eval "DEFAULT_$LINE" | |
4510 | else | |
4511 | no_cache=1 | |
4512 | fi | |
4513 | ||
4514 | ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS | |
698dcdb6 VZ |
4515 | |
4516 | fi | |
10f2d63a VZ |
4517 | |
4518 | ||
4519 | eval "$ac_cv_use_constraints" | |
4520 | if test "$no_cache" != 1; then | |
4521 | echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp | |
4522 | fi | |
4523 | ||
4524 | if test "$wxUSE_CONSTRAINTS" = yes; then | |
698dcdb6 | 4525 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4526 | else |
698dcdb6 | 4527 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4528 | fi |
698dcdb6 | 4529 | |
10f2d63a | 4530 | |
698dcdb6 | 4531 | echo $ac_n "checking for --enable-printarch""... $ac_c" 1>&6 |
031d8228 | 4532 | echo "configure:4533: checking for --enable-printarch" >&5 |
10f2d63a VZ |
4533 | no_cache=0 |
4534 | # Check whether --enable-printarch or --disable-printarch was given. | |
4535 | if test "${enable_printarch+set}" = set; then | |
4536 | enableval="$enable_printarch" | |
698dcdb6 | 4537 | |
10f2d63a VZ |
4538 | if test "$enableval" = yes; then |
4539 | ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes' | |
4540 | else | |
4541 | ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no' | |
4542 | fi | |
698dcdb6 | 4543 | |
10f2d63a | 4544 | else |
698dcdb6 | 4545 | |
10f2d63a VZ |
4546 | LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}` |
4547 | if test "x$LINE" != x ; then | |
4548 | eval "DEFAULT_$LINE" | |
4549 | else | |
4550 | no_cache=1 | |
4551 | fi | |
4552 | ||
4553 | ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE | |
698dcdb6 VZ |
4554 | |
4555 | fi | |
10f2d63a VZ |
4556 | |
4557 | ||
4558 | eval "$ac_cv_use_printarch" | |
4559 | if test "$no_cache" != 1; then | |
4560 | echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp | |
4561 | fi | |
4562 | ||
4563 | if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then | |
698dcdb6 | 4564 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4565 | else |
698dcdb6 | 4566 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4567 | fi |
698dcdb6 | 4568 | |
10f2d63a | 4569 | |
698dcdb6 | 4570 | echo $ac_n "checking for --enable-mdi""... $ac_c" 1>&6 |
031d8228 | 4571 | echo "configure:4572: checking for --enable-mdi" >&5 |
10f2d63a VZ |
4572 | no_cache=0 |
4573 | # Check whether --enable-mdi or --disable-mdi was given. | |
4574 | if test "${enable_mdi+set}" = set; then | |
4575 | enableval="$enable_mdi" | |
698dcdb6 | 4576 | |
10f2d63a VZ |
4577 | if test "$enableval" = yes; then |
4578 | ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=yes' | |
4579 | else | |
4580 | ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=no' | |
4581 | fi | |
698dcdb6 | 4582 | |
10f2d63a | 4583 | else |
698dcdb6 | 4584 | |
10f2d63a VZ |
4585 | LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}` |
4586 | if test "x$LINE" != x ; then | |
4587 | eval "DEFAULT_$LINE" | |
4588 | else | |
4589 | no_cache=1 | |
4590 | fi | |
4591 | ||
4592 | ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE | |
698dcdb6 VZ |
4593 | |
4594 | fi | |
10f2d63a VZ |
4595 | |
4596 | ||
4597 | eval "$ac_cv_use_mdi" | |
4598 | if test "$no_cache" != 1; then | |
4599 | echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp | |
4600 | fi | |
4601 | ||
4602 | if test "$wxUSE_MDI_ARCHITECTURE" = yes; then | |
698dcdb6 | 4603 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4604 | else |
698dcdb6 | 4605 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4606 | fi |
698dcdb6 VZ |
4607 | |
4608 | ||
1e6feb95 | 4609 | echo $ac_n "checking for --enable-loggui""... $ac_c" 1>&6 |
031d8228 | 4610 | echo "configure:4611: checking for --enable-loggui" >&5 |
1e6feb95 VZ |
4611 | no_cache=0 |
4612 | # Check whether --enable-loggui or --disable-loggui was given. | |
4613 | if test "${enable_loggui+set}" = set; then | |
4614 | enableval="$enable_loggui" | |
4615 | ||
4616 | if test "$enableval" = yes; then | |
4617 | ac_cv_use_loggui='wxUSE_LOGGUI=yes' | |
4618 | else | |
4619 | ac_cv_use_loggui='wxUSE_LOGGUI=no' | |
4620 | fi | |
4621 | ||
4622 | else | |
4623 | ||
4624 | LINE=`grep "wxUSE_LOGGUI" ${wx_arg_cache_file}` | |
4625 | if test "x$LINE" != x ; then | |
4626 | eval "DEFAULT_$LINE" | |
4627 | else | |
4628 | no_cache=1 | |
4629 | fi | |
4630 | ||
4631 | ac_cv_use_loggui='wxUSE_LOGGUI='$DEFAULT_wxUSE_LOGGUI | |
4632 | ||
4633 | fi | |
4634 | ||
4635 | ||
4636 | eval "$ac_cv_use_loggui" | |
4637 | if test "$no_cache" != 1; then | |
4638 | echo $ac_cv_use_loggui >> ${wx_arg_cache_file}.tmp | |
4639 | fi | |
4640 | ||
4641 | if test "$wxUSE_LOGGUI" = yes; then | |
4642 | echo "$ac_t""yes" 1>&6 | |
4643 | else | |
4644 | echo "$ac_t""no" 1>&6 | |
4645 | fi | |
4646 | ||
4647 | ||
4648 | echo $ac_n "checking for --enable-logwin""... $ac_c" 1>&6 | |
031d8228 | 4649 | echo "configure:4650: checking for --enable-logwin" >&5 |
1e6feb95 VZ |
4650 | no_cache=0 |
4651 | # Check whether --enable-logwin or --disable-logwin was given. | |
4652 | if test "${enable_logwin+set}" = set; then | |
4653 | enableval="$enable_logwin" | |
4654 | ||
4655 | if test "$enableval" = yes; then | |
4656 | ac_cv_use_logwin='wxUSE_LOGWINDOW=yes' | |
4657 | else | |
4658 | ac_cv_use_logwin='wxUSE_LOGWINDOW=no' | |
4659 | fi | |
4660 | ||
4661 | else | |
4662 | ||
4663 | LINE=`grep "wxUSE_LOGWINDOW" ${wx_arg_cache_file}` | |
4664 | if test "x$LINE" != x ; then | |
4665 | eval "DEFAULT_$LINE" | |
4666 | else | |
4667 | no_cache=1 | |
4668 | fi | |
4669 | ||
4670 | ac_cv_use_logwin='wxUSE_LOGWINDOW='$DEFAULT_wxUSE_LOGWINDOW | |
4671 | ||
4672 | fi | |
4673 | ||
4674 | ||
4675 | eval "$ac_cv_use_logwin" | |
4676 | if test "$no_cache" != 1; then | |
4677 | echo $ac_cv_use_logwin >> ${wx_arg_cache_file}.tmp | |
4678 | fi | |
4679 | ||
4680 | if test "$wxUSE_LOGWINDOW" = yes; then | |
4681 | echo "$ac_t""yes" 1>&6 | |
4682 | else | |
4683 | echo "$ac_t""no" 1>&6 | |
4684 | fi | |
4685 | ||
4686 | ||
10f2d63a | 4687 | |
698dcdb6 | 4688 | echo $ac_n "checking for --enable-postscript""... $ac_c" 1>&6 |
031d8228 | 4689 | echo "configure:4690: checking for --enable-postscript" >&5 |
10f2d63a VZ |
4690 | no_cache=0 |
4691 | # Check whether --enable-postscript or --disable-postscript was given. | |
4692 | if test "${enable_postscript+set}" = set; then | |
4693 | enableval="$enable_postscript" | |
698dcdb6 | 4694 | |
10f2d63a VZ |
4695 | if test "$enableval" = yes; then |
4696 | ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes' | |
4697 | else | |
4698 | ac_cv_use_postscript='wxUSE_POSTSCRIPT=no' | |
4699 | fi | |
698dcdb6 | 4700 | |
10f2d63a | 4701 | else |
698dcdb6 | 4702 | |
10f2d63a VZ |
4703 | LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}` |
4704 | if test "x$LINE" != x ; then | |
4705 | eval "DEFAULT_$LINE" | |
4706 | else | |
4707 | no_cache=1 | |
4708 | fi | |
4709 | ||
4710 | ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT | |
698dcdb6 VZ |
4711 | |
4712 | fi | |
10f2d63a VZ |
4713 | |
4714 | ||
4715 | eval "$ac_cv_use_postscript" | |
4716 | if test "$no_cache" != 1; then | |
4717 | echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp | |
4718 | fi | |
4719 | ||
4720 | if test "$wxUSE_POSTSCRIPT" = yes; then | |
698dcdb6 | 4721 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4722 | else |
698dcdb6 | 4723 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4724 | fi |
698dcdb6 VZ |
4725 | |
4726 | ||
4727 | ||
10f2d63a | 4728 | |
1e6feb95 | 4729 | |
698dcdb6 | 4730 | echo $ac_n "checking for --enable-prologio""... $ac_c" 1>&6 |
031d8228 | 4731 | echo "configure:4732: checking for --enable-prologio" >&5 |
10f2d63a VZ |
4732 | no_cache=0 |
4733 | # Check whether --enable-prologio or --disable-prologio was given. | |
4734 | if test "${enable_prologio+set}" = set; then | |
4735 | enableval="$enable_prologio" | |
698dcdb6 | 4736 | |
10f2d63a VZ |
4737 | if test "$enableval" = yes; then |
4738 | ac_cv_use_prologio='wxUSE_PROLOGIO=yes' | |
4739 | else | |
4740 | ac_cv_use_prologio='wxUSE_PROLOGIO=no' | |
4741 | fi | |
698dcdb6 | 4742 | |
10f2d63a | 4743 | else |
698dcdb6 | 4744 | |
10f2d63a VZ |
4745 | LINE=`grep "wxUSE_PROLOGIO" ${wx_arg_cache_file}` |
4746 | if test "x$LINE" != x ; then | |
4747 | eval "DEFAULT_$LINE" | |
4748 | else | |
4749 | no_cache=1 | |
4750 | fi | |
4751 | ||
4752 | ac_cv_use_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO | |
698dcdb6 VZ |
4753 | |
4754 | fi | |
10f2d63a VZ |
4755 | |
4756 | ||
4757 | eval "$ac_cv_use_prologio" | |
4758 | if test "$no_cache" != 1; then | |
4759 | echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp | |
4760 | fi | |
4761 | ||
4762 | if test "$wxUSE_PROLOGIO" = yes; then | |
698dcdb6 | 4763 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4764 | else |
698dcdb6 | 4765 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4766 | fi |
698dcdb6 | 4767 | |
10f2d63a | 4768 | |
698dcdb6 | 4769 | echo $ac_n "checking for --enable-resources""... $ac_c" 1>&6 |
031d8228 | 4770 | echo "configure:4771: checking for --enable-resources" >&5 |
10f2d63a VZ |
4771 | no_cache=0 |
4772 | # Check whether --enable-resources or --disable-resources was given. | |
4773 | if test "${enable_resources+set}" = set; then | |
4774 | enableval="$enable_resources" | |
698dcdb6 | 4775 | |
10f2d63a VZ |
4776 | if test "$enableval" = yes; then |
4777 | ac_cv_use_resources='wxUSE_RESOURCES=yes' | |
4778 | else | |
4779 | ac_cv_use_resources='wxUSE_RESOURCES=no' | |
4780 | fi | |
698dcdb6 | 4781 | |
10f2d63a | 4782 | else |
698dcdb6 | 4783 | |
10f2d63a VZ |
4784 | LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}` |
4785 | if test "x$LINE" != x ; then | |
4786 | eval "DEFAULT_$LINE" | |
4787 | else | |
4788 | no_cache=1 | |
4789 | fi | |
4790 | ||
4791 | ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES | |
698dcdb6 VZ |
4792 | |
4793 | fi | |
10f2d63a VZ |
4794 | |
4795 | ||
4796 | eval "$ac_cv_use_resources" | |
4797 | if test "$no_cache" != 1; then | |
4798 | echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp | |
4799 | fi | |
4800 | ||
4801 | if test "$wxUSE_RESOURCES" = yes; then | |
698dcdb6 | 4802 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4803 | else |
698dcdb6 | 4804 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4805 | fi |
698dcdb6 | 4806 | |
10f2d63a | 4807 | |
698dcdb6 VZ |
4808 | |
4809 | echo $ac_n "checking for --enable-xresources""... $ac_c" 1>&6 | |
031d8228 | 4810 | echo "configure:4811: checking for --enable-xresources" >&5 |
10f2d63a VZ |
4811 | no_cache=0 |
4812 | # Check whether --enable-xresources or --disable-xresources was given. | |
4813 | if test "${enable_xresources+set}" = set; then | |
4814 | enableval="$enable_xresources" | |
698dcdb6 | 4815 | |
10f2d63a VZ |
4816 | if test "$enableval" = yes; then |
4817 | ac_cv_use_xresources='wxUSE_X_RESOURCES=yes' | |
4818 | else | |
4819 | ac_cv_use_xresources='wxUSE_X_RESOURCES=no' | |
4820 | fi | |
698dcdb6 | 4821 | |
10f2d63a | 4822 | else |
698dcdb6 | 4823 | |
10f2d63a VZ |
4824 | LINE=`grep "wxUSE_X_RESOURCES" ${wx_arg_cache_file}` |
4825 | if test "x$LINE" != x ; then | |
4826 | eval "DEFAULT_$LINE" | |
4827 | else | |
4828 | no_cache=1 | |
4829 | fi | |
4830 | ||
4831 | ac_cv_use_xresources='wxUSE_X_RESOURCES='$DEFAULT_wxUSE_X_RESOURCES | |
698dcdb6 VZ |
4832 | |
4833 | fi | |
10f2d63a VZ |
4834 | |
4835 | ||
4836 | eval "$ac_cv_use_xresources" | |
4837 | if test "$no_cache" != 1; then | |
4838 | echo $ac_cv_use_xresources >> ${wx_arg_cache_file}.tmp | |
4839 | fi | |
4840 | ||
4841 | if test "$wxUSE_X_RESOURCES" = yes; then | |
698dcdb6 | 4842 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4843 | else |
698dcdb6 | 4844 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4845 | fi |
698dcdb6 VZ |
4846 | |
4847 | ||
10f2d63a | 4848 | |
698dcdb6 VZ |
4849 | |
4850 | echo $ac_n "checking for --enable-clipboard""... $ac_c" 1>&6 | |
031d8228 | 4851 | echo "configure:4852: checking for --enable-clipboard" >&5 |
10f2d63a VZ |
4852 | no_cache=0 |
4853 | # Check whether --enable-clipboard or --disable-clipboard was given. | |
4854 | if test "${enable_clipboard+set}" = set; then | |
4855 | enableval="$enable_clipboard" | |
698dcdb6 | 4856 | |
10f2d63a VZ |
4857 | if test "$enableval" = yes; then |
4858 | ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes' | |
4859 | else | |
4860 | ac_cv_use_clipboard='wxUSE_CLIPBOARD=no' | |
4861 | fi | |
698dcdb6 | 4862 | |
10f2d63a | 4863 | else |
698dcdb6 | 4864 | |
10f2d63a VZ |
4865 | LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}` |
4866 | if test "x$LINE" != x ; then | |
4867 | eval "DEFAULT_$LINE" | |
4868 | else | |
4869 | no_cache=1 | |
4870 | fi | |
4871 | ||
4872 | ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD | |
698dcdb6 VZ |
4873 | |
4874 | fi | |
10f2d63a VZ |
4875 | |
4876 | ||
4877 | eval "$ac_cv_use_clipboard" | |
4878 | if test "$no_cache" != 1; then | |
4879 | echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp | |
4880 | fi | |
4881 | ||
4882 | if test "$wxUSE_CLIPBOARD" = yes; then | |
698dcdb6 | 4883 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4884 | else |
698dcdb6 | 4885 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4886 | fi |
698dcdb6 | 4887 | |
10f2d63a | 4888 | |
698dcdb6 | 4889 | echo $ac_n "checking for --enable-dnd""... $ac_c" 1>&6 |
031d8228 | 4890 | echo "configure:4891: checking for --enable-dnd" >&5 |
10f2d63a VZ |
4891 | no_cache=0 |
4892 | # Check whether --enable-dnd or --disable-dnd was given. | |
4893 | if test "${enable_dnd+set}" = set; then | |
4894 | enableval="$enable_dnd" | |
698dcdb6 | 4895 | |
10f2d63a VZ |
4896 | if test "$enableval" = yes; then |
4897 | ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes' | |
4898 | else | |
4899 | ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no' | |
4900 | fi | |
698dcdb6 | 4901 | |
10f2d63a | 4902 | else |
698dcdb6 | 4903 | |
10f2d63a VZ |
4904 | LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}` |
4905 | if test "x$LINE" != x ; then | |
4906 | eval "DEFAULT_$LINE" | |
4907 | else | |
4908 | no_cache=1 | |
4909 | fi | |
4910 | ||
4911 | ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP | |
698dcdb6 VZ |
4912 | |
4913 | fi | |
10f2d63a VZ |
4914 | |
4915 | ||
4916 | eval "$ac_cv_use_dnd" | |
4917 | if test "$no_cache" != 1; then | |
4918 | echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp | |
4919 | fi | |
4920 | ||
4921 | if test "$wxUSE_DRAG_AND_DROP" = yes; then | |
698dcdb6 | 4922 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4923 | else |
698dcdb6 | 4924 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4925 | fi |
698dcdb6 | 4926 | |
10f2d63a | 4927 | |
698dcdb6 | 4928 | echo $ac_n "checking for --enable-metafile""... $ac_c" 1>&6 |
031d8228 | 4929 | echo "configure:4930: checking for --enable-metafile" >&5 |
b64f0a5f RL |
4930 | no_cache=0 |
4931 | # Check whether --enable-metafile or --disable-metafile was given. | |
4932 | if test "${enable_metafile+set}" = set; then | |
4933 | enableval="$enable_metafile" | |
698dcdb6 | 4934 | |
b64f0a5f RL |
4935 | if test "$enableval" = yes; then |
4936 | ac_cv_use_metafile='wxUSE_METAFILE=yes' | |
4937 | else | |
4938 | ac_cv_use_metafile='wxUSE_METAFILE=no' | |
4939 | fi | |
698dcdb6 | 4940 | |
b64f0a5f | 4941 | else |
698dcdb6 | 4942 | |
b64f0a5f RL |
4943 | LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}` |
4944 | if test "x$LINE" != x ; then | |
4945 | eval "DEFAULT_$LINE" | |
4946 | else | |
4947 | no_cache=1 | |
4948 | fi | |
4949 | ||
4950 | ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE | |
698dcdb6 VZ |
4951 | |
4952 | fi | |
b64f0a5f RL |
4953 | |
4954 | ||
4955 | eval "$ac_cv_use_metafile" | |
4956 | if test "$no_cache" != 1; then | |
4957 | echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp | |
4958 | fi | |
4959 | ||
4960 | if test "$wxUSE_METAFILE" = yes; then | |
698dcdb6 | 4961 | echo "$ac_t""yes" 1>&6 |
b64f0a5f | 4962 | else |
698dcdb6 | 4963 | echo "$ac_t""no" 1>&6 |
b64f0a5f | 4964 | fi |
698dcdb6 VZ |
4965 | |
4966 | ||
10f2d63a | 4967 | |
698dcdb6 | 4968 | echo $ac_n "checking for --enable-wxtree""... $ac_c" 1>&6 |
031d8228 | 4969 | echo "configure:4970: checking for --enable-wxtree" >&5 |
10f2d63a VZ |
4970 | no_cache=0 |
4971 | # Check whether --enable-wxtree or --disable-wxtree was given. | |
4972 | if test "${enable_wxtree+set}" = set; then | |
4973 | enableval="$enable_wxtree" | |
698dcdb6 | 4974 | |
10f2d63a VZ |
4975 | if test "$enableval" = yes; then |
4976 | ac_cv_use_wxtree='wxUSE_WXTREE=yes' | |
4977 | else | |
4978 | ac_cv_use_wxtree='wxUSE_WXTREE=no' | |
4979 | fi | |
698dcdb6 | 4980 | |
10f2d63a | 4981 | else |
698dcdb6 | 4982 | |
10f2d63a VZ |
4983 | LINE=`grep "wxUSE_WXTREE" ${wx_arg_cache_file}` |
4984 | if test "x$LINE" != x ; then | |
4985 | eval "DEFAULT_$LINE" | |
4986 | else | |
4987 | no_cache=1 | |
4988 | fi | |
4989 | ||
4990 | ac_cv_use_wxtree='wxUSE_WXTREE='$DEFAULT_wxUSE_WXTREE | |
698dcdb6 VZ |
4991 | |
4992 | fi | |
10f2d63a VZ |
4993 | |
4994 | ||
4995 | eval "$ac_cv_use_wxtree" | |
4996 | if test "$no_cache" != 1; then | |
4997 | echo $ac_cv_use_wxtree >> ${wx_arg_cache_file}.tmp | |
4998 | fi | |
4999 | ||
5000 | if test "$wxUSE_WXTREE" = yes; then | |
698dcdb6 | 5001 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5002 | else |
698dcdb6 | 5003 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5004 | fi |
698dcdb6 | 5005 | |
10f2d63a | 5006 | |
698dcdb6 VZ |
5007 | |
5008 | ||
5009 | echo $ac_n "checking for --enable-controls""... $ac_c" 1>&6 | |
031d8228 | 5010 | echo "configure:5011: checking for --enable-controls" >&5 |
10f2d63a VZ |
5011 | no_cache=0 |
5012 | # Check whether --enable-controls or --disable-controls was given. | |
5013 | if test "${enable_controls+set}" = set; then | |
5014 | enableval="$enable_controls" | |
698dcdb6 | 5015 | |
10f2d63a VZ |
5016 | if test "$enableval" = yes; then |
5017 | ac_cv_use_controls='wxUSE_CONTROLS=yes' | |
5018 | else | |
5019 | ac_cv_use_controls='wxUSE_CONTROLS=no' | |
5020 | fi | |
698dcdb6 | 5021 | |
10f2d63a | 5022 | else |
698dcdb6 | 5023 | |
10f2d63a VZ |
5024 | LINE=`grep "wxUSE_CONTROLS" ${wx_arg_cache_file}` |
5025 | if test "x$LINE" != x ; then | |
5026 | eval "DEFAULT_$LINE" | |
5027 | else | |
5028 | no_cache=1 | |
5029 | fi | |
5030 | ||
5031 | ac_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS | |
698dcdb6 VZ |
5032 | |
5033 | fi | |
10f2d63a VZ |
5034 | |
5035 | ||
5036 | eval "$ac_cv_use_controls" | |
5037 | if test "$no_cache" != 1; then | |
5038 | echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp | |
5039 | fi | |
5040 | ||
5041 | if test "$wxUSE_CONTROLS" = yes; then | |
698dcdb6 | 5042 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5043 | else |
698dcdb6 | 5044 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5045 | fi |
698dcdb6 | 5046 | |
10f2d63a VZ |
5047 | |
5048 | if test "$wxUSE_CONTROLS" = "yes"; then | |
5049 | DEFAULT_wxUSE_ACCEL=yes | |
1e6feb95 VZ |
5050 | DEFAULT_wxUSE_BMPBUTTON=yes |
5051 | DEFAULT_wxUSE_BUTTON=yes | |
5052 | DEFAULT_wxUSE_CALCTRL=no | |
10f2d63a VZ |
5053 | DEFAULT_wxUSE_CARET=yes |
5054 | DEFAULT_wxUSE_COMBOBOX=yes | |
10f2d63a VZ |
5055 | DEFAULT_wxUSE_CHECKBOX=yes |
5056 | DEFAULT_wxUSE_CHECKLISTBOX=yes | |
5057 | DEFAULT_wxUSE_CHOICE=yes | |
5058 | DEFAULT_wxUSE_GAUGE=yes | |
5059 | DEFAULT_wxUSE_GRID=yes | |
cc977e5f | 5060 | DEFAULT_wxUSE_NEW_GRID=yes |
10f2d63a VZ |
5061 | DEFAULT_wxUSE_IMAGLIST=yes |
5062 | DEFAULT_wxUSE_LISTBOX=yes | |
5063 | DEFAULT_wxUSE_LISTCTRL=yes | |
5064 | DEFAULT_wxUSE_NOTEBOOK=yes | |
5065 | DEFAULT_wxUSE_RADIOBOX=yes | |
5066 | DEFAULT_wxUSE_RADIOBTN=yes | |
5067 | DEFAULT_wxUSE_SASH=yes | |
5068 | DEFAULT_wxUSE_SCROLLBAR=yes | |
5069 | DEFAULT_wxUSE_SLIDER=yes | |
5070 | DEFAULT_wxUSE_SPINBTN=yes | |
56cfaa52 | 5071 | DEFAULT_wxUSE_SPINCTRL=yes |
10f2d63a VZ |
5072 | DEFAULT_wxUSE_SPLITTER=yes |
5073 | DEFAULT_wxUSE_STATBMP=yes | |
5074 | DEFAULT_wxUSE_STATBOX=yes | |
5075 | DEFAULT_wxUSE_STATLINE=yes | |
5076 | DEFAULT_wxUSE_STATUSBAR=yes | |
5077 | DEFAULT_wxUSE_TAB_DIALOG=yes | |
1db8dc4a | 5078 | DEFAULT_wxUSE_TOGGLEBTN=yes |
10f2d63a | 5079 | DEFAULT_wxUSE_TOOLBAR=yes |
360d6699 VZ |
5080 | DEFAULT_wxUSE_TOOLBAR_NATIVE=yes |
5081 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes | |
10f2d63a VZ |
5082 | DEFAULT_wxUSE_TOOLTIPS=yes |
5083 | DEFAULT_wxUSE_TREECTRL=yes | |
9f41d601 | 5084 | DEFAULT_wxUSE_POPUPWIN=yes |
10f2d63a VZ |
5085 | elif test "$wxUSE_CONTROLS" = "no"; then |
5086 | DEFAULT_wxUSE_ACCEL=no | |
1e6feb95 VZ |
5087 | DEFAULT_wxUSE_BMPBUTTON=no |
5088 | DEFAULT_wxUSE_BUTTON=no | |
5089 | DEFAULT_wxUSE_CALCTRL=no | |
10f2d63a VZ |
5090 | DEFAULT_wxUSE_CARET=no |
5091 | DEFAULT_wxUSE_COMBOBOX=no | |
10f2d63a VZ |
5092 | DEFAULT_wxUSE_CHECKBOX=no |
5093 | DEFAULT_wxUSE_CHECKLISTBOX=no | |
5094 | DEFAULT_wxUSE_CHOICE=no | |
5095 | DEFAULT_wxUSE_GAUGE=no | |
5096 | DEFAULT_wxUSE_GRID=no | |
5097 | DEFAULT_wxUSE_NEW_GRID=no | |
5098 | DEFAULT_wxUSE_IMAGLIST=no | |
5099 | DEFAULT_wxUSE_LISTBOX=no | |
5100 | DEFAULT_wxUSE_LISTCTRL=no | |
5101 | DEFAULT_wxUSE_NOTEBOOK=no | |
5102 | DEFAULT_wxUSE_RADIOBOX=no | |
5103 | DEFAULT_wxUSE_RADIOBTN=no | |
5104 | DEFAULT_wxUSE_SASH=no | |
5105 | DEFAULT_wxUSE_SCROLLBAR=no | |
5106 | DEFAULT_wxUSE_SLIDER=no | |
5107 | DEFAULT_wxUSE_SPINBTN=no | |
56cfaa52 | 5108 | DEFAULT_wxUSE_SPINCTRL=no |
10f2d63a VZ |
5109 | DEFAULT_wxUSE_SPLITTER=no |
5110 | DEFAULT_wxUSE_STATBMP=no | |
5111 | DEFAULT_wxUSE_STATBOX=no | |
5112 | DEFAULT_wxUSE_STATLINE=no | |
5113 | DEFAULT_wxUSE_STATUSBAR=no | |
5114 | DEFAULT_wxUSE_TAB_DIALOG=no | |
1db8dc4a | 5115 | DEFAULT_wxUSE_TOGGLEBTN=no |
10f2d63a | 5116 | DEFAULT_wxUSE_TOOLBAR=no |
360d6699 VZ |
5117 | DEFAULT_wxUSE_TOOLBAR_NATIVE=no |
5118 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=no | |
10f2d63a VZ |
5119 | DEFAULT_wxUSE_TOOLTIPS=no |
5120 | DEFAULT_wxUSE_TREECTRL=no | |
9f41d601 | 5121 | DEFAULT_wxUSE_POPUPWIN=no |
10f2d63a VZ |
5122 | fi |
5123 | ||
698dcdb6 VZ |
5124 | |
5125 | echo $ac_n "checking for --enable-accel""... $ac_c" 1>&6 | |
031d8228 | 5126 | echo "configure:5127: checking for --enable-accel" >&5 |
10f2d63a VZ |
5127 | no_cache=0 |
5128 | # Check whether --enable-accel or --disable-accel was given. | |
5129 | if test "${enable_accel+set}" = set; then | |
5130 | enableval="$enable_accel" | |
698dcdb6 | 5131 | |
10f2d63a VZ |
5132 | if test "$enableval" = yes; then |
5133 | ac_cv_use_accel='wxUSE_ACCEL=yes' | |
5134 | else | |
5135 | ac_cv_use_accel='wxUSE_ACCEL=no' | |
5136 | fi | |
698dcdb6 | 5137 | |
10f2d63a | 5138 | else |
698dcdb6 | 5139 | |
10f2d63a VZ |
5140 | LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}` |
5141 | if test "x$LINE" != x ; then | |
5142 | eval "DEFAULT_$LINE" | |
5143 | else | |
5144 | no_cache=1 | |
5145 | fi | |
5146 | ||
5147 | ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL | |
698dcdb6 VZ |
5148 | |
5149 | fi | |
10f2d63a VZ |
5150 | |
5151 | ||
5152 | eval "$ac_cv_use_accel" | |
5153 | if test "$no_cache" != 1; then | |
5154 | echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp | |
5155 | fi | |
5156 | ||
5157 | if test "$wxUSE_ACCEL" = yes; then | |
698dcdb6 | 5158 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5159 | else |
698dcdb6 | 5160 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5161 | fi |
698dcdb6 | 5162 | |
10f2d63a | 5163 | |
1e6feb95 | 5164 | echo $ac_n "checking for --enable-button""... $ac_c" 1>&6 |
031d8228 | 5165 | echo "configure:5166: checking for --enable-button" >&5 |
10f2d63a | 5166 | no_cache=0 |
1e6feb95 VZ |
5167 | # Check whether --enable-button or --disable-button was given. |
5168 | if test "${enable_button+set}" = set; then | |
5169 | enableval="$enable_button" | |
698dcdb6 | 5170 | |
10f2d63a | 5171 | if test "$enableval" = yes; then |
1e6feb95 | 5172 | ac_cv_use_button='wxUSE_BUTTON=yes' |
10f2d63a | 5173 | else |
1e6feb95 | 5174 | ac_cv_use_button='wxUSE_BUTTON=no' |
10f2d63a | 5175 | fi |
698dcdb6 | 5176 | |
10f2d63a | 5177 | else |
698dcdb6 | 5178 | |
1e6feb95 | 5179 | LINE=`grep "wxUSE_BUTTON" ${wx_arg_cache_file}` |
10f2d63a VZ |
5180 | if test "x$LINE" != x ; then |
5181 | eval "DEFAULT_$LINE" | |
5182 | else | |
5183 | no_cache=1 | |
5184 | fi | |
5185 | ||
1e6feb95 | 5186 | ac_cv_use_button='wxUSE_BUTTON='$DEFAULT_wxUSE_BUTTON |
698dcdb6 VZ |
5187 | |
5188 | fi | |
10f2d63a VZ |
5189 | |
5190 | ||
1e6feb95 | 5191 | eval "$ac_cv_use_button" |
10f2d63a | 5192 | if test "$no_cache" != 1; then |
1e6feb95 | 5193 | echo $ac_cv_use_button >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
5194 | fi |
5195 | ||
1e6feb95 | 5196 | if test "$wxUSE_BUTTON" = yes; then |
698dcdb6 | 5197 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5198 | else |
698dcdb6 | 5199 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5200 | fi |
698dcdb6 | 5201 | |
10f2d63a | 5202 | |
698dcdb6 | 5203 | echo $ac_n "checking for --enable-bmpbutton""... $ac_c" 1>&6 |
031d8228 | 5204 | echo "configure:5205: checking for --enable-bmpbutton" >&5 |
10f2d63a VZ |
5205 | no_cache=0 |
5206 | # Check whether --enable-bmpbutton or --disable-bmpbutton was given. | |
5207 | if test "${enable_bmpbutton+set}" = set; then | |
5208 | enableval="$enable_bmpbutton" | |
698dcdb6 | 5209 | |
10f2d63a VZ |
5210 | if test "$enableval" = yes; then |
5211 | ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes' | |
5212 | else | |
5213 | ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no' | |
5214 | fi | |
698dcdb6 | 5215 | |
10f2d63a | 5216 | else |
698dcdb6 | 5217 | |
10f2d63a VZ |
5218 | LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}` |
5219 | if test "x$LINE" != x ; then | |
5220 | eval "DEFAULT_$LINE" | |
5221 | else | |
5222 | no_cache=1 | |
5223 | fi | |
5224 | ||
5225 | ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON | |
698dcdb6 VZ |
5226 | |
5227 | fi | |
10f2d63a VZ |
5228 | |
5229 | ||
5230 | eval "$ac_cv_use_bmpbutton" | |
5231 | if test "$no_cache" != 1; then | |
5232 | echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp | |
5233 | fi | |
5234 | ||
5235 | if test "$wxUSE_BMPBUTTON" = yes; then | |
698dcdb6 | 5236 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5237 | else |
698dcdb6 | 5238 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5239 | fi |
698dcdb6 | 5240 | |
10f2d63a | 5241 | |
1e6feb95 | 5242 | echo $ac_n "checking for --enable-calendar""... $ac_c" 1>&6 |
031d8228 | 5243 | echo "configure:5244: checking for --enable-calendar" >&5 |
1e6feb95 VZ |
5244 | no_cache=0 |
5245 | # Check whether --enable-calendar or --disable-calendar was given. | |
5246 | if test "${enable_calendar+set}" = set; then | |
5247 | enableval="$enable_calendar" | |
5248 | ||
5249 | if test "$enableval" = yes; then | |
5250 | ac_cv_use_calendar='wxUSE_CALCTRL=yes' | |
5251 | else | |
5252 | ac_cv_use_calendar='wxUSE_CALCTRL=no' | |
5253 | fi | |
5254 | ||
5255 | else | |
5256 | ||
5257 | LINE=`grep "wxUSE_CALCTRL" ${wx_arg_cache_file}` | |
5258 | if test "x$LINE" != x ; then | |
5259 | eval "DEFAULT_$LINE" | |
5260 | else | |
5261 | no_cache=1 | |
5262 | fi | |
5263 | ||
5264 | ac_cv_use_calendar='wxUSE_CALCTRL='$DEFAULT_wxUSE_CALCTRL | |
5265 | ||
5266 | fi | |
5267 | ||
5268 | ||
5269 | eval "$ac_cv_use_calendar" | |
5270 | if test "$no_cache" != 1; then | |
5271 | echo $ac_cv_use_calendar >> ${wx_arg_cache_file}.tmp | |
5272 | fi | |
5273 | ||
5274 | if test "$wxUSE_CALCTRL" = yes; then | |
5275 | echo "$ac_t""yes" 1>&6 | |
5276 | else | |
5277 | echo "$ac_t""no" 1>&6 | |
5278 | fi | |
5279 | ||
5280 | ||
5281 | echo $ac_n "checking for --enable-caret""... $ac_c" 1>&6 | |
031d8228 | 5282 | echo "configure:5283: checking for --enable-caret" >&5 |
1e6feb95 VZ |
5283 | no_cache=0 |
5284 | # Check whether --enable-caret or --disable-caret was given. | |
5285 | if test "${enable_caret+set}" = set; then | |
5286 | enableval="$enable_caret" | |
5287 | ||
5288 | if test "$enableval" = yes; then | |
5289 | ac_cv_use_caret='wxUSE_CARET=yes' | |
5290 | else | |
5291 | ac_cv_use_caret='wxUSE_CARET=no' | |
5292 | fi | |
5293 | ||
5294 | else | |
5295 | ||
5296 | LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}` | |
5297 | if test "x$LINE" != x ; then | |
5298 | eval "DEFAULT_$LINE" | |
5299 | else | |
5300 | no_cache=1 | |
5301 | fi | |
5302 | ||
5303 | ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET | |
5304 | ||
5305 | fi | |
5306 | ||
5307 | ||
5308 | eval "$ac_cv_use_caret" | |
5309 | if test "$no_cache" != 1; then | |
5310 | echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp | |
5311 | fi | |
5312 | ||
5313 | if test "$wxUSE_CARET" = yes; then | |
5314 | echo "$ac_t""yes" 1>&6 | |
5315 | else | |
5316 | echo "$ac_t""no" 1>&6 | |
5317 | fi | |
5318 | ||
5319 | ||
698dcdb6 | 5320 | echo $ac_n "checking for --enable-checkbox""... $ac_c" 1>&6 |
031d8228 | 5321 | echo "configure:5322: checking for --enable-checkbox" >&5 |
10f2d63a VZ |
5322 | no_cache=0 |
5323 | # Check whether --enable-checkbox or --disable-checkbox was given. | |
5324 | if test "${enable_checkbox+set}" = set; then | |
5325 | enableval="$enable_checkbox" | |
698dcdb6 | 5326 | |
10f2d63a VZ |
5327 | if test "$enableval" = yes; then |
5328 | ac_cv_use_checkbox='wxUSE_CHECKBOX=yes' | |
5329 | else | |
5330 | ac_cv_use_checkbox='wxUSE_CHECKBOX=no' | |
5331 | fi | |
698dcdb6 | 5332 | |
10f2d63a | 5333 | else |
698dcdb6 | 5334 | |
10f2d63a VZ |
5335 | LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}` |
5336 | if test "x$LINE" != x ; then | |
5337 | eval "DEFAULT_$LINE" | |
5338 | else | |
5339 | no_cache=1 | |
5340 | fi | |
5341 | ||
5342 | ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX | |
698dcdb6 VZ |
5343 | |
5344 | fi | |
10f2d63a VZ |
5345 | |
5346 | ||
5347 | eval "$ac_cv_use_checkbox" | |
5348 | if test "$no_cache" != 1; then | |
5349 | echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp | |
5350 | fi | |
5351 | ||
5352 | if test "$wxUSE_CHECKBOX" = yes; then | |
698dcdb6 | 5353 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5354 | else |
698dcdb6 | 5355 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5356 | fi |
698dcdb6 | 5357 | |
10f2d63a | 5358 | |
698dcdb6 | 5359 | echo $ac_n "checking for --enable-checklst""... $ac_c" 1>&6 |
031d8228 | 5360 | echo "configure:5361: checking for --enable-checklst" >&5 |
10f2d63a VZ |
5361 | no_cache=0 |
5362 | # Check whether --enable-checklst or --disable-checklst was given. | |
5363 | if test "${enable_checklst+set}" = set; then | |
5364 | enableval="$enable_checklst" | |
698dcdb6 | 5365 | |
10f2d63a VZ |
5366 | if test "$enableval" = yes; then |
5367 | ac_cv_use_checklst='wxUSE_CHECKLST=yes' | |
5368 | else | |
5369 | ac_cv_use_checklst='wxUSE_CHECKLST=no' | |
5370 | fi | |
698dcdb6 | 5371 | |
10f2d63a | 5372 | else |
698dcdb6 | 5373 | |
10f2d63a VZ |
5374 | LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}` |
5375 | if test "x$LINE" != x ; then | |
5376 | eval "DEFAULT_$LINE" | |
5377 | else | |
5378 | no_cache=1 | |
5379 | fi | |
5380 | ||
5381 | ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST | |
698dcdb6 VZ |
5382 | |
5383 | fi | |
10f2d63a VZ |
5384 | |
5385 | ||
5386 | eval "$ac_cv_use_checklst" | |
5387 | if test "$no_cache" != 1; then | |
5388 | echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp | |
5389 | fi | |
5390 | ||
5391 | if test "$wxUSE_CHECKLST" = yes; then | |
698dcdb6 | 5392 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5393 | else |
698dcdb6 | 5394 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5395 | fi |
698dcdb6 | 5396 | |
10f2d63a | 5397 | |
698dcdb6 | 5398 | echo $ac_n "checking for --enable-choice""... $ac_c" 1>&6 |
031d8228 | 5399 | echo "configure:5400: checking for --enable-choice" >&5 |
10f2d63a VZ |
5400 | no_cache=0 |
5401 | # Check whether --enable-choice or --disable-choice was given. | |
5402 | if test "${enable_choice+set}" = set; then | |
5403 | enableval="$enable_choice" | |
698dcdb6 | 5404 | |
10f2d63a VZ |
5405 | if test "$enableval" = yes; then |
5406 | ac_cv_use_choice='wxUSE_CHOICE=yes' | |
5407 | else | |
5408 | ac_cv_use_choice='wxUSE_CHOICE=no' | |
5409 | fi | |
698dcdb6 | 5410 | |
10f2d63a | 5411 | else |
698dcdb6 | 5412 | |
10f2d63a VZ |
5413 | LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}` |
5414 | if test "x$LINE" != x ; then | |
5415 | eval "DEFAULT_$LINE" | |
5416 | else | |
5417 | no_cache=1 | |
5418 | fi | |
5419 | ||
5420 | ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE | |
698dcdb6 VZ |
5421 | |
5422 | fi | |
10f2d63a VZ |
5423 | |
5424 | ||
5425 | eval "$ac_cv_use_choice" | |
5426 | if test "$no_cache" != 1; then | |
5427 | echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp | |
5428 | fi | |
5429 | ||
5430 | if test "$wxUSE_CHOICE" = yes; then | |
698dcdb6 | 5431 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5432 | else |
698dcdb6 | 5433 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5434 | fi |
698dcdb6 | 5435 | |
10f2d63a | 5436 | |
698dcdb6 | 5437 | echo $ac_n "checking for --enable-combobox""... $ac_c" 1>&6 |
031d8228 | 5438 | echo "configure:5439: checking for --enable-combobox" >&5 |
10f2d63a VZ |
5439 | no_cache=0 |
5440 | # Check whether --enable-combobox or --disable-combobox was given. | |
5441 | if test "${enable_combobox+set}" = set; then | |
5442 | enableval="$enable_combobox" | |
698dcdb6 | 5443 | |
10f2d63a VZ |
5444 | if test "$enableval" = yes; then |
5445 | ac_cv_use_combobox='wxUSE_COMBOBOX=yes' | |
5446 | else | |
5447 | ac_cv_use_combobox='wxUSE_COMBOBOX=no' | |
5448 | fi | |
698dcdb6 | 5449 | |
10f2d63a | 5450 | else |
698dcdb6 | 5451 | |
10f2d63a VZ |
5452 | LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}` |
5453 | if test "x$LINE" != x ; then | |
5454 | eval "DEFAULT_$LINE" | |
5455 | else | |
5456 | no_cache=1 | |
5457 | fi | |
5458 | ||
5459 | ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX | |
698dcdb6 VZ |
5460 | |
5461 | fi | |
10f2d63a VZ |
5462 | |
5463 | ||
5464 | eval "$ac_cv_use_combobox" | |
5465 | if test "$no_cache" != 1; then | |
5466 | echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp | |
5467 | fi | |
5468 | ||
5469 | if test "$wxUSE_COMBOBOX" = yes; then | |
698dcdb6 | 5470 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5471 | else |
698dcdb6 | 5472 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5473 | fi |
698dcdb6 | 5474 | |
10f2d63a | 5475 | |
698dcdb6 | 5476 | echo $ac_n "checking for --enable-gauge""... $ac_c" 1>&6 |
031d8228 | 5477 | echo "configure:5478: checking for --enable-gauge" >&5 |
10f2d63a VZ |
5478 | no_cache=0 |
5479 | # Check whether --enable-gauge or --disable-gauge was given. | |
5480 | if test "${enable_gauge+set}" = set; then | |
5481 | enableval="$enable_gauge" | |
698dcdb6 | 5482 | |
10f2d63a VZ |
5483 | if test "$enableval" = yes; then |
5484 | ac_cv_use_gauge='wxUSE_GAUGE=yes' | |
5485 | else | |
5486 | ac_cv_use_gauge='wxUSE_GAUGE=no' | |
5487 | fi | |
698dcdb6 | 5488 | |
10f2d63a | 5489 | else |
698dcdb6 | 5490 | |
10f2d63a VZ |
5491 | LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}` |
5492 | if test "x$LINE" != x ; then | |
5493 | eval "DEFAULT_$LINE" | |
5494 | else | |
5495 | no_cache=1 | |
5496 | fi | |
5497 | ||
5498 | ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE | |
698dcdb6 VZ |
5499 | |
5500 | fi | |
10f2d63a VZ |
5501 | |
5502 | ||
5503 | eval "$ac_cv_use_gauge" | |
5504 | if test "$no_cache" != 1; then | |
5505 | echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp | |
5506 | fi | |
5507 | ||
5508 | if test "$wxUSE_GAUGE" = yes; then | |
698dcdb6 | 5509 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5510 | else |
698dcdb6 | 5511 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5512 | fi |
698dcdb6 | 5513 | |
10f2d63a | 5514 | |
698dcdb6 | 5515 | echo $ac_n "checking for --enable-grid""... $ac_c" 1>&6 |
031d8228 | 5516 | echo "configure:5517: checking for --enable-grid" >&5 |
10f2d63a VZ |
5517 | no_cache=0 |
5518 | # Check whether --enable-grid or --disable-grid was given. | |
5519 | if test "${enable_grid+set}" = set; then | |
5520 | enableval="$enable_grid" | |
698dcdb6 | 5521 | |
10f2d63a VZ |
5522 | if test "$enableval" = yes; then |
5523 | ac_cv_use_grid='wxUSE_GRID=yes' | |
5524 | else | |
5525 | ac_cv_use_grid='wxUSE_GRID=no' | |
5526 | fi | |
698dcdb6 | 5527 | |
10f2d63a | 5528 | else |
698dcdb6 | 5529 | |
10f2d63a VZ |
5530 | LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}` |
5531 | if test "x$LINE" != x ; then | |
5532 | eval "DEFAULT_$LINE" | |
5533 | else | |
5534 | no_cache=1 | |
5535 | fi | |
5536 | ||
5537 | ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID | |
698dcdb6 VZ |
5538 | |
5539 | fi | |
10f2d63a VZ |
5540 | |
5541 | ||
5542 | eval "$ac_cv_use_grid" | |
5543 | if test "$no_cache" != 1; then | |
5544 | echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp | |
5545 | fi | |
5546 | ||
5547 | if test "$wxUSE_GRID" = yes; then | |
698dcdb6 | 5548 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5549 | else |
698dcdb6 | 5550 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5551 | fi |
698dcdb6 | 5552 | |
10f2d63a | 5553 | |
698dcdb6 | 5554 | echo $ac_n "checking for --enable-newgrid""... $ac_c" 1>&6 |
031d8228 | 5555 | echo "configure:5556: checking for --enable-newgrid" >&5 |
10f2d63a VZ |
5556 | no_cache=0 |
5557 | # Check whether --enable-newgrid or --disable-newgrid was given. | |
5558 | if test "${enable_newgrid+set}" = set; then | |
5559 | enableval="$enable_newgrid" | |
698dcdb6 | 5560 | |
10f2d63a VZ |
5561 | if test "$enableval" = yes; then |
5562 | ac_cv_use_newgrid='wxUSE_NEW_GRID=yes' | |
5563 | else | |
5564 | ac_cv_use_newgrid='wxUSE_NEW_GRID=no' | |
5565 | fi | |
698dcdb6 | 5566 | |
10f2d63a | 5567 | else |
698dcdb6 | 5568 | |
10f2d63a VZ |
5569 | LINE=`grep "wxUSE_NEW_GRID" ${wx_arg_cache_file}` |
5570 | if test "x$LINE" != x ; then | |
5571 | eval "DEFAULT_$LINE" | |
5572 | else | |
5573 | no_cache=1 | |
5574 | fi | |
5575 | ||
5576 | ac_cv_use_newgrid='wxUSE_NEW_GRID='$DEFAULT_wxUSE_NEW_GRID | |
698dcdb6 VZ |
5577 | |
5578 | fi | |
10f2d63a VZ |
5579 | |
5580 | ||
5581 | eval "$ac_cv_use_newgrid" | |
5582 | if test "$no_cache" != 1; then | |
5583 | echo $ac_cv_use_newgrid >> ${wx_arg_cache_file}.tmp | |
5584 | fi | |
5585 | ||
5586 | if test "$wxUSE_NEW_GRID" = yes; then | |
698dcdb6 | 5587 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5588 | else |
698dcdb6 | 5589 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5590 | fi |
698dcdb6 | 5591 | |
10f2d63a | 5592 | |
698dcdb6 | 5593 | echo $ac_n "checking for --enable-imaglist""... $ac_c" 1>&6 |
031d8228 | 5594 | echo "configure:5595: checking for --enable-imaglist" >&5 |
10f2d63a VZ |
5595 | no_cache=0 |
5596 | # Check whether --enable-imaglist or --disable-imaglist was given. | |
5597 | if test "${enable_imaglist+set}" = set; then | |
5598 | enableval="$enable_imaglist" | |
698dcdb6 | 5599 | |
10f2d63a VZ |
5600 | if test "$enableval" = yes; then |
5601 | ac_cv_use_imaglist='wxUSE_IMAGLIST=yes' | |
5602 | else | |
5603 | ac_cv_use_imaglist='wxUSE_IMAGLIST=no' | |
5604 | fi | |
698dcdb6 | 5605 | |
10f2d63a | 5606 | else |
698dcdb6 | 5607 | |
10f2d63a VZ |
5608 | LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}` |
5609 | if test "x$LINE" != x ; then | |
5610 | eval "DEFAULT_$LINE" | |
5611 | else | |
5612 | no_cache=1 | |
5613 | fi | |
5614 | ||
5615 | ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST | |
698dcdb6 VZ |
5616 | |
5617 | fi | |
10f2d63a VZ |
5618 | |
5619 | ||
5620 | eval "$ac_cv_use_imaglist" | |
5621 | if test "$no_cache" != 1; then | |
5622 | echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp | |
5623 | fi | |
5624 | ||
5625 | if test "$wxUSE_IMAGLIST" = yes; then | |
698dcdb6 | 5626 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5627 | else |
698dcdb6 | 5628 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5629 | fi |
698dcdb6 | 5630 | |
10f2d63a | 5631 | |
698dcdb6 | 5632 | echo $ac_n "checking for --enable-listbox""... $ac_c" 1>&6 |
031d8228 | 5633 | echo "configure:5634: checking for --enable-listbox" >&5 |
10f2d63a VZ |
5634 | no_cache=0 |
5635 | # Check whether --enable-listbox or --disable-listbox was given. | |
5636 | if test "${enable_listbox+set}" = set; then | |
5637 | enableval="$enable_listbox" | |
698dcdb6 | 5638 | |
10f2d63a VZ |
5639 | if test "$enableval" = yes; then |
5640 | ac_cv_use_listbox='wxUSE_LISTBOX=yes' | |
5641 | else | |
5642 | ac_cv_use_listbox='wxUSE_LISTBOX=no' | |
5643 | fi | |
698dcdb6 | 5644 | |
10f2d63a | 5645 | else |
698dcdb6 | 5646 | |
10f2d63a VZ |
5647 | LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}` |
5648 | if test "x$LINE" != x ; then | |
5649 | eval "DEFAULT_$LINE" | |
5650 | else | |
5651 | no_cache=1 | |
5652 | fi | |
5653 | ||
5654 | ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX | |
698dcdb6 VZ |
5655 | |
5656 | fi | |
10f2d63a VZ |
5657 | |
5658 | ||
5659 | eval "$ac_cv_use_listbox" | |
5660 | if test "$no_cache" != 1; then | |
5661 | echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp | |
5662 | fi | |
5663 | ||
5664 | if test "$wxUSE_LISTBOX" = yes; then | |
698dcdb6 | 5665 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5666 | else |
698dcdb6 | 5667 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5668 | fi |
698dcdb6 | 5669 | |
10f2d63a | 5670 | |
698dcdb6 | 5671 | echo $ac_n "checking for --enable-listctrl""... $ac_c" 1>&6 |
031d8228 | 5672 | echo "configure:5673: checking for --enable-listctrl" >&5 |
10f2d63a VZ |
5673 | no_cache=0 |
5674 | # Check whether --enable-listctrl or --disable-listctrl was given. | |
5675 | if test "${enable_listctrl+set}" = set; then | |
5676 | enableval="$enable_listctrl" | |
698dcdb6 | 5677 | |
10f2d63a VZ |
5678 | if test "$enableval" = yes; then |
5679 | ac_cv_use_listctrl='wxUSE_LISTCTRL=yes' | |
5680 | else | |
5681 | ac_cv_use_listctrl='wxUSE_LISTCTRL=no' | |
5682 | fi | |
698dcdb6 | 5683 | |
10f2d63a | 5684 | else |
698dcdb6 | 5685 | |
10f2d63a VZ |
5686 | LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}` |
5687 | if test "x$LINE" != x ; then | |
5688 | eval "DEFAULT_$LINE" | |
5689 | else | |
5690 | no_cache=1 | |
5691 | fi | |
5692 | ||
5693 | ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL | |
698dcdb6 VZ |
5694 | |
5695 | fi | |
10f2d63a VZ |
5696 | |
5697 | ||
5698 | eval "$ac_cv_use_listctrl" | |
5699 | if test "$no_cache" != 1; then | |
5700 | echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp | |
5701 | fi | |
5702 | ||
5703 | if test "$wxUSE_LISTCTRL" = yes; then | |
698dcdb6 | 5704 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5705 | else |
698dcdb6 | 5706 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5707 | fi |
698dcdb6 | 5708 | |
10f2d63a | 5709 | |
698dcdb6 | 5710 | echo $ac_n "checking for --enable-notebook""... $ac_c" 1>&6 |
031d8228 | 5711 | echo "configure:5712: checking for --enable-notebook" >&5 |
10f2d63a VZ |
5712 | no_cache=0 |
5713 | # Check whether --enable-notebook or --disable-notebook was given. | |
5714 | if test "${enable_notebook+set}" = set; then | |
5715 | enableval="$enable_notebook" | |
698dcdb6 | 5716 | |
10f2d63a VZ |
5717 | if test "$enableval" = yes; then |
5718 | ac_cv_use_notebook='wxUSE_NOTEBOOK=yes' | |
5719 | else | |
5720 | ac_cv_use_notebook='wxUSE_NOTEBOOK=no' | |
5721 | fi | |
698dcdb6 | 5722 | |
10f2d63a | 5723 | else |
698dcdb6 | 5724 | |
10f2d63a VZ |
5725 | LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}` |
5726 | if test "x$LINE" != x ; then | |
5727 | eval "DEFAULT_$LINE" | |
5728 | else | |
5729 | no_cache=1 | |
5730 | fi | |
5731 | ||
5732 | ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK | |
698dcdb6 VZ |
5733 | |
5734 | fi | |
10f2d63a VZ |
5735 | |
5736 | ||
5737 | eval "$ac_cv_use_notebook" | |
5738 | if test "$no_cache" != 1; then | |
5739 | echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp | |
5740 | fi | |
5741 | ||
5742 | if test "$wxUSE_NOTEBOOK" = yes; then | |
698dcdb6 | 5743 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5744 | else |
698dcdb6 | 5745 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5746 | fi |
698dcdb6 | 5747 | |
10f2d63a | 5748 | |
698dcdb6 | 5749 | echo $ac_n "checking for --enable-radiobox""... $ac_c" 1>&6 |
031d8228 | 5750 | echo "configure:5751: checking for --enable-radiobox" >&5 |
10f2d63a VZ |
5751 | no_cache=0 |
5752 | # Check whether --enable-radiobox or --disable-radiobox was given. | |
5753 | if test "${enable_radiobox+set}" = set; then | |
5754 | enableval="$enable_radiobox" | |
698dcdb6 | 5755 | |
10f2d63a VZ |
5756 | if test "$enableval" = yes; then |
5757 | ac_cv_use_radiobox='wxUSE_RADIOBOX=yes' | |
5758 | else | |
5759 | ac_cv_use_radiobox='wxUSE_RADIOBOX=no' | |
5760 | fi | |
698dcdb6 | 5761 | |
10f2d63a | 5762 | else |
698dcdb6 | 5763 | |
10f2d63a VZ |
5764 | LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}` |
5765 | if test "x$LINE" != x ; then | |
5766 | eval "DEFAULT_$LINE" | |
5767 | else | |
5768 | no_cache=1 | |
5769 | fi | |
5770 | ||
5771 | ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX | |
698dcdb6 VZ |
5772 | |
5773 | fi | |
10f2d63a VZ |
5774 | |
5775 | ||
5776 | eval "$ac_cv_use_radiobox" | |
5777 | if test "$no_cache" != 1; then | |
5778 | echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp | |
5779 | fi | |
5780 | ||
5781 | if test "$wxUSE_RADIOBOX" = yes; then | |
698dcdb6 | 5782 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5783 | else |
698dcdb6 | 5784 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5785 | fi |
698dcdb6 | 5786 | |
10f2d63a | 5787 | |
698dcdb6 | 5788 | echo $ac_n "checking for --enable-radiobtn""... $ac_c" 1>&6 |
031d8228 | 5789 | echo "configure:5790: checking for --enable-radiobtn" >&5 |
10f2d63a VZ |
5790 | no_cache=0 |
5791 | # Check whether --enable-radiobtn or --disable-radiobtn was given. | |
5792 | if test "${enable_radiobtn+set}" = set; then | |
5793 | enableval="$enable_radiobtn" | |
698dcdb6 | 5794 | |
10f2d63a VZ |
5795 | if test "$enableval" = yes; then |
5796 | ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes' | |
5797 | else | |
5798 | ac_cv_use_radiobtn='wxUSE_RADIOBTN=no' | |
5799 | fi | |
698dcdb6 | 5800 | |
10f2d63a | 5801 | else |
698dcdb6 | 5802 | |
10f2d63a VZ |
5803 | LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}` |
5804 | if test "x$LINE" != x ; then | |
5805 | eval "DEFAULT_$LINE" | |
5806 | else | |
5807 | no_cache=1 | |
5808 | fi | |
5809 | ||
5810 | ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN | |
698dcdb6 VZ |
5811 | |
5812 | fi | |
10f2d63a VZ |
5813 | |
5814 | ||
5815 | eval "$ac_cv_use_radiobtn" | |
5816 | if test "$no_cache" != 1; then | |
5817 | echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp | |
5818 | fi | |
5819 | ||
5820 | if test "$wxUSE_RADIOBTN" = yes; then | |
698dcdb6 | 5821 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5822 | else |
698dcdb6 | 5823 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5824 | fi |
698dcdb6 | 5825 | |
10f2d63a | 5826 | |
698dcdb6 | 5827 | echo $ac_n "checking for --enable-sash""... $ac_c" 1>&6 |
031d8228 | 5828 | echo "configure:5829: checking for --enable-sash" >&5 |
10f2d63a VZ |
5829 | no_cache=0 |
5830 | # Check whether --enable-sash or --disable-sash was given. | |
5831 | if test "${enable_sash+set}" = set; then | |
5832 | enableval="$enable_sash" | |
698dcdb6 | 5833 | |
10f2d63a VZ |
5834 | if test "$enableval" = yes; then |
5835 | ac_cv_use_sash='wxUSE_SASH=yes' | |
5836 | else | |
5837 | ac_cv_use_sash='wxUSE_SASH=no' | |
5838 | fi | |
698dcdb6 | 5839 | |
10f2d63a | 5840 | else |
698dcdb6 | 5841 | |
10f2d63a VZ |
5842 | LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}` |
5843 | if test "x$LINE" != x ; then | |
5844 | eval "DEFAULT_$LINE" | |
5845 | else | |
5846 | no_cache=1 | |
5847 | fi | |
5848 | ||
5849 | ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH | |
698dcdb6 VZ |
5850 | |
5851 | fi | |
10f2d63a VZ |
5852 | |
5853 | ||
5854 | eval "$ac_cv_use_sash" | |
5855 | if test "$no_cache" != 1; then | |
5856 | echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp | |
5857 | fi | |
5858 | ||
5859 | if test "$wxUSE_SASH" = yes; then | |
698dcdb6 | 5860 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5861 | else |
698dcdb6 | 5862 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5863 | fi |
698dcdb6 | 5864 | |
10f2d63a | 5865 | |
698dcdb6 | 5866 | echo $ac_n "checking for --enable-scrollbar""... $ac_c" 1>&6 |
031d8228 | 5867 | echo "configure:5868: checking for --enable-scrollbar" >&5 |
10f2d63a VZ |
5868 | no_cache=0 |
5869 | # Check whether --enable-scrollbar or --disable-scrollbar was given. | |
5870 | if test "${enable_scrollbar+set}" = set; then | |
5871 | enableval="$enable_scrollbar" | |
698dcdb6 | 5872 | |
10f2d63a VZ |
5873 | if test "$enableval" = yes; then |
5874 | ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes' | |
5875 | else | |
5876 | ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no' | |
5877 | fi | |
698dcdb6 | 5878 | |
10f2d63a | 5879 | else |
698dcdb6 | 5880 | |
10f2d63a VZ |
5881 | LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}` |
5882 | if test "x$LINE" != x ; then | |
5883 | eval "DEFAULT_$LINE" | |
5884 | else | |
5885 | no_cache=1 | |
5886 | fi | |
5887 | ||
5888 | ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR | |
698dcdb6 VZ |
5889 | |
5890 | fi | |
10f2d63a VZ |
5891 | |
5892 | ||
5893 | eval "$ac_cv_use_scrollbar" | |
5894 | if test "$no_cache" != 1; then | |
5895 | echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp | |
5896 | fi | |
5897 | ||
5898 | if test "$wxUSE_SCROLLBAR" = yes; then | |
698dcdb6 | 5899 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5900 | else |
698dcdb6 | 5901 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5902 | fi |
698dcdb6 | 5903 | |
10f2d63a | 5904 | |
698dcdb6 | 5905 | echo $ac_n "checking for --enable-slider""... $ac_c" 1>&6 |
031d8228 | 5906 | echo "configure:5907: checking for --enable-slider" >&5 |
10f2d63a VZ |
5907 | no_cache=0 |
5908 | # Check whether --enable-slider or --disable-slider was given. | |
5909 | if test "${enable_slider+set}" = set; then | |
5910 | enableval="$enable_slider" | |
698dcdb6 | 5911 | |
10f2d63a VZ |
5912 | if test "$enableval" = yes; then |
5913 | ac_cv_use_slider='wxUSE_SLIDER=yes' | |
5914 | else | |
5915 | ac_cv_use_slider='wxUSE_SLIDER=no' | |
5916 | fi | |
698dcdb6 | 5917 | |
10f2d63a | 5918 | else |
698dcdb6 | 5919 | |
10f2d63a VZ |
5920 | LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}` |
5921 | if test "x$LINE" != x ; then | |
5922 | eval "DEFAULT_$LINE" | |
5923 | else | |
5924 | no_cache=1 | |
5925 | fi | |
5926 | ||
5927 | ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER | |
698dcdb6 VZ |
5928 | |
5929 | fi | |
10f2d63a VZ |
5930 | |
5931 | ||
5932 | eval "$ac_cv_use_slider" | |
5933 | if test "$no_cache" != 1; then | |
5934 | echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp | |
5935 | fi | |
5936 | ||
5937 | if test "$wxUSE_SLIDER" = yes; then | |
698dcdb6 | 5938 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5939 | else |
698dcdb6 | 5940 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5941 | fi |
698dcdb6 | 5942 | |
10f2d63a | 5943 | |
698dcdb6 | 5944 | echo $ac_n "checking for --enable-spinbtn""... $ac_c" 1>&6 |
031d8228 | 5945 | echo "configure:5946: checking for --enable-spinbtn" >&5 |
10f2d63a VZ |
5946 | no_cache=0 |
5947 | # Check whether --enable-spinbtn or --disable-spinbtn was given. | |
5948 | if test "${enable_spinbtn+set}" = set; then | |
5949 | enableval="$enable_spinbtn" | |
698dcdb6 | 5950 | |
10f2d63a VZ |
5951 | if test "$enableval" = yes; then |
5952 | ac_cv_use_spinbtn='wxUSE_SPINBTN=yes' | |
5953 | else | |
5954 | ac_cv_use_spinbtn='wxUSE_SPINBTN=no' | |
5955 | fi | |
698dcdb6 | 5956 | |
10f2d63a | 5957 | else |
698dcdb6 | 5958 | |
10f2d63a VZ |
5959 | LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}` |
5960 | if test "x$LINE" != x ; then | |
5961 | eval "DEFAULT_$LINE" | |
5962 | else | |
5963 | no_cache=1 | |
5964 | fi | |
5965 | ||
5966 | ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN | |
698dcdb6 VZ |
5967 | |
5968 | fi | |
10f2d63a VZ |
5969 | |
5970 | ||
5971 | eval "$ac_cv_use_spinbtn" | |
5972 | if test "$no_cache" != 1; then | |
5973 | echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp | |
5974 | fi | |
5975 | ||
5976 | if test "$wxUSE_SPINBTN" = yes; then | |
698dcdb6 | 5977 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5978 | else |
698dcdb6 | 5979 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5980 | fi |
698dcdb6 | 5981 | |
10f2d63a | 5982 | |
698dcdb6 | 5983 | echo $ac_n "checking for --enable-spinctrl""... $ac_c" 1>&6 |
031d8228 | 5984 | echo "configure:5985: checking for --enable-spinctrl" >&5 |
56cfaa52 RR |
5985 | no_cache=0 |
5986 | # Check whether --enable-spinctrl or --disable-spinctrl was given. | |
5987 | if test "${enable_spinctrl+set}" = set; then | |
5988 | enableval="$enable_spinctrl" | |
698dcdb6 | 5989 | |
56cfaa52 RR |
5990 | if test "$enableval" = yes; then |
5991 | ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes' | |
5992 | else | |
5993 | ac_cv_use_spinctrl='wxUSE_SPINCTRL=no' | |
5994 | fi | |
698dcdb6 | 5995 | |
56cfaa52 | 5996 | else |
698dcdb6 | 5997 | |
56cfaa52 RR |
5998 | LINE=`grep "wxUSE_SPINCTRL" ${wx_arg_cache_file}` |
5999 | if test "x$LINE" != x ; then | |
6000 | eval "DEFAULT_$LINE" | |
6001 | else | |
6002 | no_cache=1 | |
6003 | fi | |
6004 | ||
6005 | ac_cv_use_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL | |
698dcdb6 VZ |
6006 | |
6007 | fi | |
56cfaa52 RR |
6008 | |
6009 | ||
6010 | eval "$ac_cv_use_spinctrl" | |
6011 | if test "$no_cache" != 1; then | |
6012 | echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp | |
6013 | fi | |
6014 | ||
6015 | if test "$wxUSE_SPINCTRL" = yes; then | |
698dcdb6 | 6016 | echo "$ac_t""yes" 1>&6 |
56cfaa52 | 6017 | else |
698dcdb6 | 6018 | echo "$ac_t""no" 1>&6 |
56cfaa52 | 6019 | fi |
698dcdb6 | 6020 | |
56cfaa52 | 6021 | |
698dcdb6 | 6022 | echo $ac_n "checking for --enable-splitter""... $ac_c" 1>&6 |
031d8228 | 6023 | echo "configure:6024: checking for --enable-splitter" >&5 |
10f2d63a VZ |
6024 | no_cache=0 |
6025 | # Check whether --enable-splitter or --disable-splitter was given. | |
6026 | if test "${enable_splitter+set}" = set; then | |
6027 | enableval="$enable_splitter" | |
698dcdb6 | 6028 | |
10f2d63a VZ |
6029 | if test "$enableval" = yes; then |
6030 | ac_cv_use_splitter='wxUSE_SPLITTER=yes' | |
6031 | else | |
6032 | ac_cv_use_splitter='wxUSE_SPLITTER=no' | |
6033 | fi | |
698dcdb6 | 6034 | |
10f2d63a | 6035 | else |
698dcdb6 | 6036 | |
10f2d63a VZ |
6037 | LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}` |
6038 | if test "x$LINE" != x ; then | |
6039 | eval "DEFAULT_$LINE" | |
6040 | else | |
6041 | no_cache=1 | |
6042 | fi | |
6043 | ||
6044 | ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER | |
698dcdb6 VZ |
6045 | |
6046 | fi | |
10f2d63a VZ |
6047 | |
6048 | ||
6049 | eval "$ac_cv_use_splitter" | |
6050 | if test "$no_cache" != 1; then | |
6051 | echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp | |
6052 | fi | |
6053 | ||
6054 | if test "$wxUSE_SPLITTER" = yes; then | |
698dcdb6 | 6055 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6056 | else |
698dcdb6 | 6057 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6058 | fi |
698dcdb6 | 6059 | |
10f2d63a | 6060 | |
698dcdb6 | 6061 | echo $ac_n "checking for --enable-statbmp""... $ac_c" 1>&6 |
031d8228 | 6062 | echo "configure:6063: checking for --enable-statbmp" >&5 |
10f2d63a VZ |
6063 | no_cache=0 |
6064 | # Check whether --enable-statbmp or --disable-statbmp was given. | |
6065 | if test "${enable_statbmp+set}" = set; then | |
6066 | enableval="$enable_statbmp" | |
698dcdb6 | 6067 | |
10f2d63a VZ |
6068 | if test "$enableval" = yes; then |
6069 | ac_cv_use_statbmp='wxUSE_STATBMP=yes' | |
6070 | else | |
6071 | ac_cv_use_statbmp='wxUSE_STATBMP=no' | |
6072 | fi | |
698dcdb6 | 6073 | |
10f2d63a | 6074 | else |
698dcdb6 | 6075 | |
10f2d63a VZ |
6076 | LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}` |
6077 | if test "x$LINE" != x ; then | |
6078 | eval "DEFAULT_$LINE" | |
6079 | else | |
6080 | no_cache=1 | |
6081 | fi | |
6082 | ||
6083 | ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP | |
698dcdb6 VZ |
6084 | |
6085 | fi | |
10f2d63a VZ |
6086 | |
6087 | ||
6088 | eval "$ac_cv_use_statbmp" | |
6089 | if test "$no_cache" != 1; then | |
6090 | echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp | |
6091 | fi | |
6092 | ||
6093 | if test "$wxUSE_STATBMP" = yes; then | |
698dcdb6 | 6094 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6095 | else |
698dcdb6 | 6096 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6097 | fi |
698dcdb6 | 6098 | |
10f2d63a | 6099 | |
698dcdb6 | 6100 | echo $ac_n "checking for --enable-statbox""... $ac_c" 1>&6 |
031d8228 | 6101 | echo "configure:6102: checking for --enable-statbox" >&5 |
10f2d63a VZ |
6102 | no_cache=0 |
6103 | # Check whether --enable-statbox or --disable-statbox was given. | |
6104 | if test "${enable_statbox+set}" = set; then | |
6105 | enableval="$enable_statbox" | |
698dcdb6 | 6106 | |
10f2d63a VZ |
6107 | if test "$enableval" = yes; then |
6108 | ac_cv_use_statbox='wxUSE_STATBOX=yes' | |
6109 | else | |
6110 | ac_cv_use_statbox='wxUSE_STATBOX=no' | |
6111 | fi | |
698dcdb6 | 6112 | |
10f2d63a | 6113 | else |
698dcdb6 | 6114 | |
10f2d63a VZ |
6115 | LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}` |
6116 | if test "x$LINE" != x ; then | |
6117 | eval "DEFAULT_$LINE" | |
6118 | else | |
6119 | no_cache=1 | |
6120 | fi | |
6121 | ||
6122 | ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX | |
698dcdb6 VZ |
6123 | |
6124 | fi | |
10f2d63a VZ |
6125 | |
6126 | ||
6127 | eval "$ac_cv_use_statbox" | |
6128 | if test "$no_cache" != 1; then | |
6129 | echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp | |
6130 | fi | |
6131 | ||
6132 | if test "$wxUSE_STATBOX" = yes; then | |
698dcdb6 | 6133 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6134 | else |
698dcdb6 | 6135 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6136 | fi |
698dcdb6 | 6137 | |
10f2d63a | 6138 | |
698dcdb6 | 6139 | echo $ac_n "checking for --enable-statline""... $ac_c" 1>&6 |
031d8228 | 6140 | echo "configure:6141: checking for --enable-statline" >&5 |
10f2d63a VZ |
6141 | no_cache=0 |
6142 | # Check whether --enable-statline or --disable-statline was given. | |
6143 | if test "${enable_statline+set}" = set; then | |
6144 | enableval="$enable_statline" | |
698dcdb6 | 6145 | |
10f2d63a VZ |
6146 | if test "$enableval" = yes; then |
6147 | ac_cv_use_statline='wxUSE_STATLINE=yes' | |
6148 | else | |
6149 | ac_cv_use_statline='wxUSE_STATLINE=no' | |
6150 | fi | |
698dcdb6 | 6151 | |
10f2d63a | 6152 | else |
698dcdb6 | 6153 | |
10f2d63a VZ |
6154 | LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}` |
6155 | if test "x$LINE" != x ; then | |
6156 | eval "DEFAULT_$LINE" | |
6157 | else | |
6158 | no_cache=1 | |
6159 | fi | |
6160 | ||
6161 | ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE | |
698dcdb6 VZ |
6162 | |
6163 | fi | |
10f2d63a VZ |
6164 | |
6165 | ||
6166 | eval "$ac_cv_use_statline" | |
6167 | if test "$no_cache" != 1; then | |
6168 | echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp | |
6169 | fi | |
6170 | ||
6171 | if test "$wxUSE_STATLINE" = yes; then | |
698dcdb6 | 6172 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6173 | else |
698dcdb6 | 6174 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6175 | fi |
698dcdb6 | 6176 | |
10f2d63a | 6177 | |
1e6feb95 | 6178 | echo $ac_n "checking for --enable-stattext""... $ac_c" 1>&6 |
031d8228 | 6179 | echo "configure:6180: checking for --enable-stattext" >&5 |
1e6feb95 VZ |
6180 | no_cache=0 |
6181 | # Check whether --enable-stattext or --disable-stattext was given. | |
6182 | if test "${enable_stattext+set}" = set; then | |
6183 | enableval="$enable_stattext" | |
6184 | ||
6185 | if test "$enableval" = yes; then | |
6186 | ac_cv_use_stattext='wxUSE_STATTEXT=yes' | |
6187 | else | |
6188 | ac_cv_use_stattext='wxUSE_STATTEXT=no' | |
6189 | fi | |
6190 | ||
6191 | else | |
6192 | ||
6193 | LINE=`grep "wxUSE_STATTEXT" ${wx_arg_cache_file}` | |
6194 | if test "x$LINE" != x ; then | |
6195 | eval "DEFAULT_$LINE" | |
6196 | else | |
6197 | no_cache=1 | |
6198 | fi | |
6199 | ||
6200 | ac_cv_use_stattext='wxUSE_STATTEXT='$DEFAULT_wxUSE_STATTEXT | |
6201 | ||
6202 | fi | |
6203 | ||
6204 | ||
6205 | eval "$ac_cv_use_stattext" | |
6206 | if test "$no_cache" != 1; then | |
6207 | echo $ac_cv_use_stattext >> ${wx_arg_cache_file}.tmp | |
6208 | fi | |
6209 | ||
6210 | if test "$wxUSE_STATTEXT" = yes; then | |
6211 | echo "$ac_t""yes" 1>&6 | |
6212 | else | |
6213 | echo "$ac_t""no" 1>&6 | |
6214 | fi | |
6215 | ||
6216 | ||
698dcdb6 | 6217 | echo $ac_n "checking for --enable-statusbar""... $ac_c" 1>&6 |
031d8228 | 6218 | echo "configure:6219: checking for --enable-statusbar" >&5 |
10f2d63a VZ |
6219 | no_cache=0 |
6220 | # Check whether --enable-statusbar or --disable-statusbar was given. | |
6221 | if test "${enable_statusbar+set}" = set; then | |
6222 | enableval="$enable_statusbar" | |
698dcdb6 | 6223 | |
10f2d63a VZ |
6224 | if test "$enableval" = yes; then |
6225 | ac_cv_use_statusbar='wxUSE_STATUSBAR=yes' | |
6226 | else | |
6227 | ac_cv_use_statusbar='wxUSE_STATUSBAR=no' | |
6228 | fi | |
698dcdb6 | 6229 | |
10f2d63a | 6230 | else |
698dcdb6 | 6231 | |
10f2d63a VZ |
6232 | LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}` |
6233 | if test "x$LINE" != x ; then | |
6234 | eval "DEFAULT_$LINE" | |
6235 | else | |
6236 | no_cache=1 | |
6237 | fi | |
6238 | ||
6239 | ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR | |
698dcdb6 VZ |
6240 | |
6241 | fi | |
10f2d63a VZ |
6242 | |
6243 | ||
6244 | eval "$ac_cv_use_statusbar" | |
6245 | if test "$no_cache" != 1; then | |
6246 | echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp | |
6247 | fi | |
6248 | ||
6249 | if test "$wxUSE_STATUSBAR" = yes; then | |
698dcdb6 | 6250 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6251 | else |
698dcdb6 | 6252 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6253 | fi |
698dcdb6 | 6254 | |
10f2d63a | 6255 | |
698dcdb6 | 6256 | echo $ac_n "checking for --enable-tabdialog""... $ac_c" 1>&6 |
031d8228 | 6257 | echo "configure:6258: checking for --enable-tabdialog" >&5 |
10f2d63a VZ |
6258 | no_cache=0 |
6259 | # Check whether --enable-tabdialog or --disable-tabdialog was given. | |
6260 | if test "${enable_tabdialog+set}" = set; then | |
6261 | enableval="$enable_tabdialog" | |
698dcdb6 | 6262 | |
10f2d63a VZ |
6263 | if test "$enableval" = yes; then |
6264 | ac_cv_use_tabdialog='wxUSE_TABDIALOG=yes' | |
6265 | else | |
6266 | ac_cv_use_tabdialog='wxUSE_TABDIALOG=no' | |
6267 | fi | |
698dcdb6 | 6268 | |
10f2d63a | 6269 | else |
698dcdb6 | 6270 | |
10f2d63a VZ |
6271 | LINE=`grep "wxUSE_TABDIALOG" ${wx_arg_cache_file}` |
6272 | if test "x$LINE" != x ; then | |
6273 | eval "DEFAULT_$LINE" | |
6274 | else | |
6275 | no_cache=1 | |
6276 | fi | |
6277 | ||
6278 | ac_cv_use_tabdialog='wxUSE_TABDIALOG='$DEFAULT_wxUSE_TABDIALOG | |
698dcdb6 VZ |
6279 | |
6280 | fi | |
10f2d63a VZ |
6281 | |
6282 | ||
6283 | eval "$ac_cv_use_tabdialog" | |
6284 | if test "$no_cache" != 1; then | |
6285 | echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp | |
6286 | fi | |
6287 | ||
6288 | if test "$wxUSE_TABDIALOG" = yes; then | |
698dcdb6 | 6289 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6290 | else |
698dcdb6 | 6291 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6292 | fi |
698dcdb6 | 6293 | |
10f2d63a | 6294 | |
1e6feb95 | 6295 | echo $ac_n "checking for --enable-textctrl""... $ac_c" 1>&6 |
031d8228 | 6296 | echo "configure:6297: checking for --enable-textctrl" >&5 |
1e6feb95 VZ |
6297 | no_cache=0 |
6298 | # Check whether --enable-textctrl or --disable-textctrl was given. | |
6299 | if test "${enable_textctrl+set}" = set; then | |
6300 | enableval="$enable_textctrl" | |
6301 | ||
6302 | if test "$enableval" = yes; then | |
6303 | ac_cv_use_textctrl='wxUSE_TEXTCTRL=yes' | |
6304 | else | |
6305 | ac_cv_use_textctrl='wxUSE_TEXTCTRL=no' | |
6306 | fi | |
6307 | ||
6308 | else | |
6309 | ||
6310 | LINE=`grep "wxUSE_TEXTCTRL" ${wx_arg_cache_file}` | |
6311 | if test "x$LINE" != x ; then | |
6312 | eval "DEFAULT_$LINE" | |
6313 | else | |
6314 | no_cache=1 | |
6315 | fi | |
6316 | ||
6317 | ac_cv_use_textctrl='wxUSE_TEXTCTRL='$DEFAULT_wxUSE_TEXTCTRL | |
6318 | ||
6319 | fi | |
6320 | ||
6321 | ||
6322 | eval "$ac_cv_use_textctrl" | |
6323 | if test "$no_cache" != 1; then | |
6324 | echo $ac_cv_use_textctrl >> ${wx_arg_cache_file}.tmp | |
6325 | fi | |
6326 | ||
6327 | if test "$wxUSE_TEXTCTRL" = yes; then | |
6328 | echo "$ac_t""yes" 1>&6 | |
6329 | else | |
6330 | echo "$ac_t""no" 1>&6 | |
6331 | fi | |
6332 | ||
6333 | ||
698dcdb6 | 6334 | echo $ac_n "checking for --enable-togglebtn""... $ac_c" 1>&6 |
031d8228 | 6335 | echo "configure:6336: checking for --enable-togglebtn" >&5 |
1db8dc4a VZ |
6336 | no_cache=0 |
6337 | # Check whether --enable-togglebtn or --disable-togglebtn was given. | |
6338 | if test "${enable_togglebtn+set}" = set; then | |
6339 | enableval="$enable_togglebtn" | |
698dcdb6 | 6340 | |
1db8dc4a VZ |
6341 | if test "$enableval" = yes; then |
6342 | ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes' | |
6343 | else | |
6344 | ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=no' | |
6345 | fi | |
698dcdb6 | 6346 | |
1db8dc4a | 6347 | else |
698dcdb6 | 6348 | |
1db8dc4a VZ |
6349 | LINE=`grep "wxUSE_TOGGLEBTN" ${wx_arg_cache_file}` |
6350 | if test "x$LINE" != x ; then | |
6351 | eval "DEFAULT_$LINE" | |
6352 | else | |
6353 | no_cache=1 | |
6354 | fi | |
6355 | ||
6356 | ac_cv_use_togglebtn='wxUSE_TOGGLEBTN='$DEFAULT_wxUSE_TOGGLEBTN | |
698dcdb6 VZ |
6357 | |
6358 | fi | |
1db8dc4a VZ |
6359 | |
6360 | ||
6361 | eval "$ac_cv_use_togglebtn" | |
6362 | if test "$no_cache" != 1; then | |
6363 | echo $ac_cv_use_togglebtn >> ${wx_arg_cache_file}.tmp | |
6364 | fi | |
6365 | ||
6366 | if test "$wxUSE_TOGGLEBTN" = yes; then | |
698dcdb6 | 6367 | echo "$ac_t""yes" 1>&6 |
1db8dc4a | 6368 | else |
698dcdb6 | 6369 | echo "$ac_t""no" 1>&6 |
1db8dc4a | 6370 | fi |
698dcdb6 | 6371 | |
1db8dc4a | 6372 | |
698dcdb6 | 6373 | echo $ac_n "checking for --enable-toolbar""... $ac_c" 1>&6 |
031d8228 | 6374 | echo "configure:6375: checking for --enable-toolbar" >&5 |
10f2d63a VZ |
6375 | no_cache=0 |
6376 | # Check whether --enable-toolbar or --disable-toolbar was given. | |
6377 | if test "${enable_toolbar+set}" = set; then | |
6378 | enableval="$enable_toolbar" | |
698dcdb6 | 6379 | |
10f2d63a VZ |
6380 | if test "$enableval" = yes; then |
6381 | ac_cv_use_toolbar='wxUSE_TOOLBAR=yes' | |
6382 | else | |
6383 | ac_cv_use_toolbar='wxUSE_TOOLBAR=no' | |
6384 | fi | |
698dcdb6 | 6385 | |
10f2d63a | 6386 | else |
698dcdb6 | 6387 | |
10f2d63a VZ |
6388 | LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}` |
6389 | if test "x$LINE" != x ; then | |
6390 | eval "DEFAULT_$LINE" | |
6391 | else | |
6392 | no_cache=1 | |
6393 | fi | |
6394 | ||
6395 | ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR | |
698dcdb6 VZ |
6396 | |
6397 | fi | |
10f2d63a VZ |
6398 | |
6399 | ||
6400 | eval "$ac_cv_use_toolbar" | |
6401 | if test "$no_cache" != 1; then | |
6402 | echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp | |
6403 | fi | |
6404 | ||
6405 | if test "$wxUSE_TOOLBAR" = yes; then | |
698dcdb6 | 6406 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6407 | else |
698dcdb6 | 6408 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6409 | fi |
698dcdb6 | 6410 | |
10f2d63a | 6411 | |
698dcdb6 | 6412 | echo $ac_n "checking for --enable-tbarnative""... $ac_c" 1>&6 |
031d8228 | 6413 | echo "configure:6414: checking for --enable-tbarnative" >&5 |
360d6699 VZ |
6414 | no_cache=0 |
6415 | # Check whether --enable-tbarnative or --disable-tbarnative was given. | |
6416 | if test "${enable_tbarnative+set}" = set; then | |
6417 | enableval="$enable_tbarnative" | |
698dcdb6 | 6418 | |
360d6699 VZ |
6419 | if test "$enableval" = yes; then |
6420 | ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes' | |
6421 | else | |
6422 | ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no' | |
6423 | fi | |
698dcdb6 | 6424 | |
360d6699 | 6425 | else |
698dcdb6 | 6426 | |
360d6699 VZ |
6427 | LINE=`grep "wxUSE_TOOLBAR_NATIVE" ${wx_arg_cache_file}` |
6428 | if test "x$LINE" != x ; then | |
6429 | eval "DEFAULT_$LINE" | |
6430 | else | |
6431 | no_cache=1 | |
6432 | fi | |
6433 | ||
6434 | ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE='$DEFAULT_wxUSE_TOOLBAR_NATIVE | |
698dcdb6 VZ |
6435 | |
6436 | fi | |
360d6699 VZ |
6437 | |
6438 | ||
6439 | eval "$ac_cv_use_tbarnative" | |
6440 | if test "$no_cache" != 1; then | |
6441 | echo $ac_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp | |
6442 | fi | |
6443 | ||
6444 | if test "$wxUSE_TOOLBAR_NATIVE" = yes; then | |
698dcdb6 | 6445 | echo "$ac_t""yes" 1>&6 |
360d6699 | 6446 | else |
698dcdb6 | 6447 | echo "$ac_t""no" 1>&6 |
360d6699 | 6448 | fi |
698dcdb6 | 6449 | |
360d6699 | 6450 | |
698dcdb6 | 6451 | echo $ac_n "checking for --enable-tbarsmpl""... $ac_c" 1>&6 |
031d8228 | 6452 | echo "configure:6453: checking for --enable-tbarsmpl" >&5 |
360d6699 VZ |
6453 | no_cache=0 |
6454 | # Check whether --enable-tbarsmpl or --disable-tbarsmpl was given. | |
6455 | if test "${enable_tbarsmpl+set}" = set; then | |
6456 | enableval="$enable_tbarsmpl" | |
698dcdb6 | 6457 | |
360d6699 VZ |
6458 | if test "$enableval" = yes; then |
6459 | ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=yes' | |
6460 | else | |
6461 | ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=no' | |
6462 | fi | |
698dcdb6 | 6463 | |
360d6699 | 6464 | else |
698dcdb6 | 6465 | |
360d6699 VZ |
6466 | LINE=`grep "wxUSE_TOOLBAR_SIMPLE" ${wx_arg_cache_file}` |
6467 | if test "x$LINE" != x ; then | |
6468 | eval "DEFAULT_$LINE" | |
6469 | else | |
6470 | no_cache=1 | |
6471 | fi | |
6472 | ||
6473 | ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE='$DEFAULT_wxUSE_TOOLBAR_SIMPLE | |
698dcdb6 VZ |
6474 | |
6475 | fi | |
360d6699 VZ |
6476 | |
6477 | ||
6478 | eval "$ac_cv_use_tbarsmpl" | |
6479 | if test "$no_cache" != 1; then | |
6480 | echo $ac_cv_use_tbarsmpl >> ${wx_arg_cache_file}.tmp | |
6481 | fi | |
6482 | ||
6483 | if test "$wxUSE_TOOLBAR_SIMPLE" = yes; then | |
698dcdb6 | 6484 | echo "$ac_t""yes" 1>&6 |
360d6699 | 6485 | else |
698dcdb6 | 6486 | echo "$ac_t""no" 1>&6 |
360d6699 | 6487 | fi |
698dcdb6 | 6488 | |
360d6699 | 6489 | |
698dcdb6 | 6490 | echo $ac_n "checking for --enable-treectrl""... $ac_c" 1>&6 |
031d8228 | 6491 | echo "configure:6492: checking for --enable-treectrl" >&5 |
10f2d63a VZ |
6492 | no_cache=0 |
6493 | # Check whether --enable-treectrl or --disable-treectrl was given. | |
6494 | if test "${enable_treectrl+set}" = set; then | |
6495 | enableval="$enable_treectrl" | |
698dcdb6 | 6496 | |
10f2d63a VZ |
6497 | if test "$enableval" = yes; then |
6498 | ac_cv_use_treectrl='wxUSE_TREECTRL=yes' | |
6499 | else | |
6500 | ac_cv_use_treectrl='wxUSE_TREECTRL=no' | |
6501 | fi | |
698dcdb6 | 6502 | |
10f2d63a | 6503 | else |
698dcdb6 | 6504 | |
10f2d63a VZ |
6505 | LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}` |
6506 | if test "x$LINE" != x ; then | |
6507 | eval "DEFAULT_$LINE" | |
6508 | else | |
6509 | no_cache=1 | |
6510 | fi | |
6511 | ||
6512 | ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL | |
698dcdb6 VZ |
6513 | |
6514 | fi | |
10f2d63a VZ |
6515 | |
6516 | ||
1e6feb95 VZ |
6517 | eval "$ac_cv_use_treectrl" |
6518 | if test "$no_cache" != 1; then | |
6519 | echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp | |
6520 | fi | |
6521 | ||
6522 | if test "$wxUSE_TREECTRL" = yes; then | |
6523 | echo "$ac_t""yes" 1>&6 | |
6524 | else | |
6525 | echo "$ac_t""no" 1>&6 | |
6526 | fi | |
6527 | ||
6528 | ||
9f41d601 | 6529 | echo $ac_n "checking for --enable-popupwin""... $ac_c" 1>&6 |
031d8228 | 6530 | echo "configure:6531: checking for --enable-popupwin" >&5 |
9f41d601 RR |
6531 | no_cache=0 |
6532 | # Check whether --enable-popupwin or --disable-popupwin was given. | |
6533 | if test "${enable_popupwin+set}" = set; then | |
6534 | enableval="$enable_popupwin" | |
6535 | ||
6536 | if test "$enableval" = yes; then | |
6537 | ac_cv_use_popupwin='wxUSE_POPUPWIN=yes' | |
6538 | else | |
6539 | ac_cv_use_popupwin='wxUSE_POPUPWIN=no' | |
6540 | fi | |
6541 | ||
6542 | else | |
6543 | ||
6544 | LINE=`grep "wxUSE_POPUPWIN" ${wx_arg_cache_file}` | |
6545 | if test "x$LINE" != x ; then | |
6546 | eval "DEFAULT_$LINE" | |
6547 | else | |
6548 | no_cache=1 | |
6549 | fi | |
6550 | ||
6551 | ac_cv_use_popupwin='wxUSE_POPUPWIN='$DEFAULT_wxUSE_POPUPWIN | |
6552 | ||
6553 | fi | |
6554 | ||
6555 | ||
6556 | eval "$ac_cv_use_popupwin" | |
6557 | if test "$no_cache" != 1; then | |
6558 | echo $ac_cv_use_popupwin >> ${wx_arg_cache_file}.tmp | |
6559 | fi | |
6560 | ||
6561 | if test "$wxUSE_POPUPWIN" = yes; then | |
6562 | echo "$ac_t""yes" 1>&6 | |
6563 | else | |
6564 | echo "$ac_t""no" 1>&6 | |
6565 | fi | |
6566 | ||
6567 | ||
1e6feb95 VZ |
6568 | |
6569 | ||
6570 | echo $ac_n "checking for --enable-commondlg""... $ac_c" 1>&6 | |
031d8228 | 6571 | echo "configure:6572: checking for --enable-commondlg" >&5 |
1e6feb95 VZ |
6572 | no_cache=0 |
6573 | # Check whether --enable-commondlg or --disable-commondlg was given. | |
6574 | if test "${enable_commondlg+set}" = set; then | |
6575 | enableval="$enable_commondlg" | |
6576 | ||
6577 | if test "$enableval" = yes; then | |
6578 | ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes' | |
6579 | else | |
6580 | ac_cv_use_commondlg='wxUSE_COMMONDLGS=no' | |
6581 | fi | |
6582 | ||
6583 | else | |
6584 | ||
6585 | LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}` | |
6586 | if test "x$LINE" != x ; then | |
6587 | eval "DEFAULT_$LINE" | |
6588 | else | |
6589 | no_cache=1 | |
6590 | fi | |
6591 | ||
6592 | ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS | |
6593 | ||
6594 | fi | |
6595 | ||
6596 | ||
6597 | eval "$ac_cv_use_commondlg" | |
6598 | if test "$no_cache" != 1; then | |
6599 | echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp | |
6600 | fi | |
6601 | ||
6602 | if test "$wxUSE_COMMONDLGS" = yes; then | |
6603 | echo "$ac_t""yes" 1>&6 | |
6604 | else | |
6605 | echo "$ac_t""no" 1>&6 | |
6606 | fi | |
6607 | ||
6608 | ||
6609 | echo $ac_n "checking for --enable-choicedlg""... $ac_c" 1>&6 | |
031d8228 | 6610 | echo "configure:6611: checking for --enable-choicedlg" >&5 |
1e6feb95 VZ |
6611 | no_cache=0 |
6612 | # Check whether --enable-choicedlg or --disable-choicedlg was given. | |
6613 | if test "${enable_choicedlg+set}" = set; then | |
6614 | enableval="$enable_choicedlg" | |
6615 | ||
6616 | if test "$enableval" = yes; then | |
6617 | ac_cv_use_choicedlg='wxUSE_CHOICEDLG=yes' | |
6618 | else | |
6619 | ac_cv_use_choicedlg='wxUSE_CHOICEDLG=no' | |
6620 | fi | |
6621 | ||
6622 | else | |
6623 | ||
6624 | LINE=`grep "wxUSE_CHOICEDLG" ${wx_arg_cache_file}` | |
6625 | if test "x$LINE" != x ; then | |
6626 | eval "DEFAULT_$LINE" | |
6627 | else | |
6628 | no_cache=1 | |
6629 | fi | |
6630 | ||
6631 | ac_cv_use_choicedlg='wxUSE_CHOICEDLG='$DEFAULT_wxUSE_CHOICEDLG | |
6632 | ||
6633 | fi | |
6634 | ||
6635 | ||
6636 | eval "$ac_cv_use_choicedlg" | |
6637 | if test "$no_cache" != 1; then | |
6638 | echo $ac_cv_use_choicedlg >> ${wx_arg_cache_file}.tmp | |
6639 | fi | |
6640 | ||
6641 | if test "$wxUSE_CHOICEDLG" = yes; then | |
6642 | echo "$ac_t""yes" 1>&6 | |
6643 | else | |
6644 | echo "$ac_t""no" 1>&6 | |
6645 | fi | |
6646 | ||
6647 | ||
6648 | echo $ac_n "checking for --enable-coldlg""... $ac_c" 1>&6 | |
031d8228 | 6649 | echo "configure:6650: checking for --enable-coldlg" >&5 |
1e6feb95 VZ |
6650 | no_cache=0 |
6651 | # Check whether --enable-coldlg or --disable-coldlg was given. | |
6652 | if test "${enable_coldlg+set}" = set; then | |
6653 | enableval="$enable_coldlg" | |
6654 | ||
6655 | if test "$enableval" = yes; then | |
6656 | ac_cv_use_coldlg='wxUSE_COLOURDLG=yes' | |
6657 | else | |
6658 | ac_cv_use_coldlg='wxUSE_COLOURDLG=no' | |
6659 | fi | |
6660 | ||
6661 | else | |
6662 | ||
6663 | LINE=`grep "wxUSE_COLOURDLG" ${wx_arg_cache_file}` | |
6664 | if test "x$LINE" != x ; then | |
6665 | eval "DEFAULT_$LINE" | |
6666 | else | |
6667 | no_cache=1 | |
6668 | fi | |
6669 | ||
6670 | ac_cv_use_coldlg='wxUSE_COLOURDLG='$DEFAULT_wxUSE_COLOURDLG | |
6671 | ||
6672 | fi | |
6673 | ||
6674 | ||
6675 | eval "$ac_cv_use_coldlg" | |
6676 | if test "$no_cache" != 1; then | |
6677 | echo $ac_cv_use_coldlg >> ${wx_arg_cache_file}.tmp | |
6678 | fi | |
6679 | ||
6680 | if test "$wxUSE_COLOURDLG" = yes; then | |
6681 | echo "$ac_t""yes" 1>&6 | |
6682 | else | |
6683 | echo "$ac_t""no" 1>&6 | |
6684 | fi | |
6685 | ||
6686 | ||
6687 | echo $ac_n "checking for --enable-filedlg""... $ac_c" 1>&6 | |
031d8228 | 6688 | echo "configure:6689: checking for --enable-filedlg" >&5 |
1e6feb95 VZ |
6689 | no_cache=0 |
6690 | # Check whether --enable-filedlg or --disable-filedlg was given. | |
6691 | if test "${enable_filedlg+set}" = set; then | |
6692 | enableval="$enable_filedlg" | |
6693 | ||
6694 | if test "$enableval" = yes; then | |
6695 | ac_cv_use_filedlg='wxUSE_FILEDLG=yes' | |
6696 | else | |
6697 | ac_cv_use_filedlg='wxUSE_FILEDLG=no' | |
6698 | fi | |
6699 | ||
6700 | else | |
6701 | ||
6702 | LINE=`grep "wxUSE_FILEDLG" ${wx_arg_cache_file}` | |
6703 | if test "x$LINE" != x ; then | |
6704 | eval "DEFAULT_$LINE" | |
6705 | else | |
6706 | no_cache=1 | |
6707 | fi | |
6708 | ||
6709 | ac_cv_use_filedlg='wxUSE_FILEDLG='$DEFAULT_wxUSE_FILEDLG | |
6710 | ||
6711 | fi | |
6712 | ||
6713 | ||
6714 | eval "$ac_cv_use_filedlg" | |
6715 | if test "$no_cache" != 1; then | |
6716 | echo $ac_cv_use_filedlg >> ${wx_arg_cache_file}.tmp | |
6717 | fi | |
6718 | ||
6719 | if test "$wxUSE_FILEDLG" = yes; then | |
6720 | echo "$ac_t""yes" 1>&6 | |
6721 | else | |
6722 | echo "$ac_t""no" 1>&6 | |
6723 | fi | |
6724 | ||
6725 | ||
6726 | echo $ac_n "checking for --enable-fontdlg""... $ac_c" 1>&6 | |
031d8228 | 6727 | echo "configure:6728: checking for --enable-fontdlg" >&5 |
1e6feb95 VZ |
6728 | no_cache=0 |
6729 | # Check whether --enable-fontdlg or --disable-fontdlg was given. | |
6730 | if test "${enable_fontdlg+set}" = set; then | |
6731 | enableval="$enable_fontdlg" | |
6732 | ||
6733 | if test "$enableval" = yes; then | |
6734 | ac_cv_use_fontdlg='wxUSE_FONTDLG=yes' | |
6735 | else | |
6736 | ac_cv_use_fontdlg='wxUSE_FONTDLG=no' | |
6737 | fi | |
6738 | ||
6739 | else | |
6740 | ||
6741 | LINE=`grep "wxUSE_FONTDLG" ${wx_arg_cache_file}` | |
6742 | if test "x$LINE" != x ; then | |
6743 | eval "DEFAULT_$LINE" | |
6744 | else | |
6745 | no_cache=1 | |
6746 | fi | |
6747 | ||
6748 | ac_cv_use_fontdlg='wxUSE_FONTDLG='$DEFAULT_wxUSE_FONTDLG | |
6749 | ||
6750 | fi | |
6751 | ||
6752 | ||
6753 | eval "$ac_cv_use_fontdlg" | |
6754 | if test "$no_cache" != 1; then | |
6755 | echo $ac_cv_use_fontdlg >> ${wx_arg_cache_file}.tmp | |
6756 | fi | |
6757 | ||
6758 | if test "$wxUSE_FONTDLG" = yes; then | |
6759 | echo "$ac_t""yes" 1>&6 | |
6760 | else | |
6761 | echo "$ac_t""no" 1>&6 | |
6762 | fi | |
6763 | ||
6764 | ||
6765 | echo $ac_n "checking for --enable-dirdlg""... $ac_c" 1>&6 | |
031d8228 | 6766 | echo "configure:6767: checking for --enable-dirdlg" >&5 |
1e6feb95 VZ |
6767 | no_cache=0 |
6768 | # Check whether --enable-dirdlg or --disable-dirdlg was given. | |
6769 | if test "${enable_dirdlg+set}" = set; then | |
6770 | enableval="$enable_dirdlg" | |
6771 | ||
6772 | if test "$enableval" = yes; then | |
6773 | ac_cv_use_dirdlg='wxUSE_DIRDLG=yes' | |
6774 | else | |
6775 | ac_cv_use_dirdlg='wxUSE_DIRDLG=no' | |
6776 | fi | |
6777 | ||
6778 | else | |
6779 | ||
6780 | LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}` | |
6781 | if test "x$LINE" != x ; then | |
6782 | eval "DEFAULT_$LINE" | |
6783 | else | |
6784 | no_cache=1 | |
6785 | fi | |
6786 | ||
6787 | ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG | |
6788 | ||
6789 | fi | |
6790 | ||
6791 | ||
6792 | eval "$ac_cv_use_dirdlg" | |
10f2d63a | 6793 | if test "$no_cache" != 1; then |
1e6feb95 | 6794 | echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
6795 | fi |
6796 | ||
1e6feb95 | 6797 | if test "$wxUSE_DIRDLG" = yes; then |
698dcdb6 | 6798 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6799 | else |
698dcdb6 | 6800 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6801 | fi |
698dcdb6 VZ |
6802 | |
6803 | ||
1e6feb95 | 6804 | echo $ac_n "checking for --enable-msgdlg""... $ac_c" 1>&6 |
031d8228 | 6805 | echo "configure:6806: checking for --enable-msgdlg" >&5 |
10f2d63a | 6806 | no_cache=0 |
1e6feb95 VZ |
6807 | # Check whether --enable-msgdlg or --disable-msgdlg was given. |
6808 | if test "${enable_msgdlg+set}" = set; then | |
6809 | enableval="$enable_msgdlg" | |
698dcdb6 | 6810 | |
10f2d63a | 6811 | if test "$enableval" = yes; then |
1e6feb95 | 6812 | ac_cv_use_msgdlg='wxUSE_MSGDLG=yes' |
10f2d63a | 6813 | else |
1e6feb95 | 6814 | ac_cv_use_msgdlg='wxUSE_MSGDLG=no' |
10f2d63a | 6815 | fi |
698dcdb6 | 6816 | |
10f2d63a | 6817 | else |
698dcdb6 | 6818 | |
1e6feb95 | 6819 | LINE=`grep "wxUSE_MSGDLG" ${wx_arg_cache_file}` |
10f2d63a VZ |
6820 | if test "x$LINE" != x ; then |
6821 | eval "DEFAULT_$LINE" | |
6822 | else | |
6823 | no_cache=1 | |
6824 | fi | |
6825 | ||
1e6feb95 | 6826 | ac_cv_use_msgdlg='wxUSE_MSGDLG='$DEFAULT_wxUSE_MSGDLG |
698dcdb6 VZ |
6827 | |
6828 | fi | |
10f2d63a VZ |
6829 | |
6830 | ||
1e6feb95 | 6831 | eval "$ac_cv_use_msgdlg" |
10f2d63a | 6832 | if test "$no_cache" != 1; then |
1e6feb95 | 6833 | echo $ac_cv_use_msgdlg >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
6834 | fi |
6835 | ||
1e6feb95 | 6836 | if test "$wxUSE_MSGDLG" = yes; then |
698dcdb6 | 6837 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6838 | else |
698dcdb6 | 6839 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6840 | fi |
698dcdb6 | 6841 | |
10f2d63a | 6842 | |
1e6feb95 | 6843 | echo $ac_n "checking for --enable-numberdlg""... $ac_c" 1>&6 |
031d8228 | 6844 | echo "configure:6845: checking for --enable-numberdlg" >&5 |
10f2d63a | 6845 | no_cache=0 |
1e6feb95 VZ |
6846 | # Check whether --enable-numberdlg or --disable-numberdlg was given. |
6847 | if test "${enable_numberdlg+set}" = set; then | |
6848 | enableval="$enable_numberdlg" | |
698dcdb6 | 6849 | |
10f2d63a | 6850 | if test "$enableval" = yes; then |
1e6feb95 | 6851 | ac_cv_use_numberdlg='wxUSE_NUMBERDLG=yes' |
10f2d63a | 6852 | else |
1e6feb95 | 6853 | ac_cv_use_numberdlg='wxUSE_NUMBERDLG=no' |
10f2d63a | 6854 | fi |
698dcdb6 | 6855 | |
10f2d63a | 6856 | else |
698dcdb6 | 6857 | |
1e6feb95 | 6858 | LINE=`grep "wxUSE_NUMBERDLG" ${wx_arg_cache_file}` |
10f2d63a VZ |
6859 | if test "x$LINE" != x ; then |
6860 | eval "DEFAULT_$LINE" | |
6861 | else | |
6862 | no_cache=1 | |
6863 | fi | |
6864 | ||
1e6feb95 | 6865 | ac_cv_use_numberdlg='wxUSE_NUMBERDLG='$DEFAULT_wxUSE_NUMBERDLG |
698dcdb6 VZ |
6866 | |
6867 | fi | |
10f2d63a VZ |
6868 | |
6869 | ||
1e6feb95 | 6870 | eval "$ac_cv_use_numberdlg" |
10f2d63a | 6871 | if test "$no_cache" != 1; then |
1e6feb95 | 6872 | echo $ac_cv_use_numberdlg >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
6873 | fi |
6874 | ||
1e6feb95 | 6875 | if test "$wxUSE_NUMBERDLG" = yes; then |
698dcdb6 | 6876 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6877 | else |
698dcdb6 | 6878 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6879 | fi |
698dcdb6 | 6880 | |
10f2d63a | 6881 | |
698dcdb6 | 6882 | echo $ac_n "checking for --enable-textdlg""... $ac_c" 1>&6 |
031d8228 | 6883 | echo "configure:6884: checking for --enable-textdlg" >&5 |
10f2d63a VZ |
6884 | no_cache=0 |
6885 | # Check whether --enable-textdlg or --disable-textdlg was given. | |
6886 | if test "${enable_textdlg+set}" = set; then | |
6887 | enableval="$enable_textdlg" | |
698dcdb6 | 6888 | |
10f2d63a VZ |
6889 | if test "$enableval" = yes; then |
6890 | ac_cv_use_textdlg='wxUSE_TEXTDLG=yes' | |
6891 | else | |
6892 | ac_cv_use_textdlg='wxUSE_TEXTDLG=no' | |
6893 | fi | |
698dcdb6 | 6894 | |
10f2d63a | 6895 | else |
698dcdb6 | 6896 | |
10f2d63a VZ |
6897 | LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}` |
6898 | if test "x$LINE" != x ; then | |
6899 | eval "DEFAULT_$LINE" | |
6900 | else | |
6901 | no_cache=1 | |
6902 | fi | |
6903 | ||
6904 | ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG | |
698dcdb6 VZ |
6905 | |
6906 | fi | |
10f2d63a VZ |
6907 | |
6908 | ||
6909 | eval "$ac_cv_use_textdlg" | |
6910 | if test "$no_cache" != 1; then | |
6911 | echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp | |
6912 | fi | |
6913 | ||
6914 | if test "$wxUSE_TEXTDLG" = yes; then | |
698dcdb6 | 6915 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6916 | else |
698dcdb6 | 6917 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6918 | fi |
698dcdb6 | 6919 | |
10f2d63a | 6920 | |
698dcdb6 | 6921 | echo $ac_n "checking for --enable-tipdlg""... $ac_c" 1>&6 |
031d8228 | 6922 | echo "configure:6923: checking for --enable-tipdlg" >&5 |
10f2d63a VZ |
6923 | no_cache=0 |
6924 | # Check whether --enable-tipdlg or --disable-tipdlg was given. | |
6925 | if test "${enable_tipdlg+set}" = set; then | |
6926 | enableval="$enable_tipdlg" | |
698dcdb6 | 6927 | |
10f2d63a VZ |
6928 | if test "$enableval" = yes; then |
6929 | ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes' | |
6930 | else | |
6931 | ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no' | |
6932 | fi | |
698dcdb6 | 6933 | |
10f2d63a | 6934 | else |
698dcdb6 | 6935 | |
10f2d63a VZ |
6936 | LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}` |
6937 | if test "x$LINE" != x ; then | |
6938 | eval "DEFAULT_$LINE" | |
6939 | else | |
6940 | no_cache=1 | |
6941 | fi | |
6942 | ||
6943 | ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS | |
698dcdb6 VZ |
6944 | |
6945 | fi | |
10f2d63a VZ |
6946 | |
6947 | ||
6948 | eval "$ac_cv_use_tipdlg" | |
6949 | if test "$no_cache" != 1; then | |
6950 | echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp | |
6951 | fi | |
6952 | ||
6953 | if test "$wxUSE_STARTUP_TIPS" = yes; then | |
698dcdb6 | 6954 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6955 | else |
698dcdb6 | 6956 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6957 | fi |
698dcdb6 | 6958 | |
10f2d63a | 6959 | |
698dcdb6 | 6960 | echo $ac_n "checking for --enable-progressdlg""... $ac_c" 1>&6 |
031d8228 | 6961 | echo "configure:6962: checking for --enable-progressdlg" >&5 |
10f2d63a VZ |
6962 | no_cache=0 |
6963 | # Check whether --enable-progressdlg or --disable-progressdlg was given. | |
6964 | if test "${enable_progressdlg+set}" = set; then | |
6965 | enableval="$enable_progressdlg" | |
698dcdb6 | 6966 | |
10f2d63a VZ |
6967 | if test "$enableval" = yes; then |
6968 | ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes' | |
6969 | else | |
6970 | ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no' | |
6971 | fi | |
698dcdb6 | 6972 | |
10f2d63a | 6973 | else |
698dcdb6 | 6974 | |
10f2d63a VZ |
6975 | LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}` |
6976 | if test "x$LINE" != x ; then | |
6977 | eval "DEFAULT_$LINE" | |
6978 | else | |
6979 | no_cache=1 | |
6980 | fi | |
6981 | ||
6982 | ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG | |
698dcdb6 VZ |
6983 | |
6984 | fi | |
10f2d63a VZ |
6985 | |
6986 | ||
6987 | eval "$ac_cv_use_progressdlg" | |
6988 | if test "$no_cache" != 1; then | |
6989 | echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp | |
6990 | fi | |
6991 | ||
6992 | if test "$wxUSE_PROGRESSDLG" = yes; then | |
698dcdb6 | 6993 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6994 | else |
698dcdb6 | 6995 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6996 | fi |
698dcdb6 | 6997 | |
10f2d63a | 6998 | |
b1f5d087 | 6999 | echo $ac_n "checking for --enable-wizarddlg""... $ac_c" 1>&6 |
031d8228 | 7000 | echo "configure:7001: checking for --enable-wizarddlg" >&5 |
b1f5d087 VZ |
7001 | no_cache=0 |
7002 | # Check whether --enable-wizarddlg or --disable-wizarddlg was given. | |
7003 | if test "${enable_wizarddlg+set}" = set; then | |
7004 | enableval="$enable_wizarddlg" | |
7005 | ||
7006 | if test "$enableval" = yes; then | |
7007 | ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=yes' | |
7008 | else | |
7009 | ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=no' | |
7010 | fi | |
7011 | ||
7012 | else | |
7013 | ||
7014 | LINE=`grep "wxUSE_WIZARDDLG" ${wx_arg_cache_file}` | |
7015 | if test "x$LINE" != x ; then | |
7016 | eval "DEFAULT_$LINE" | |
7017 | else | |
7018 | no_cache=1 | |
7019 | fi | |
7020 | ||
7021 | ac_cv_use_wizarddlg='wxUSE_WIZARDDLG='$DEFAULT_wxUSE_WIZARDDLG | |
7022 | ||
7023 | fi | |
7024 | ||
7025 | ||
7026 | eval "$ac_cv_use_wizarddlg" | |
7027 | if test "$no_cache" != 1; then | |
7028 | echo $ac_cv_use_wizarddlg >> ${wx_arg_cache_file}.tmp | |
7029 | fi | |
7030 | ||
7031 | if test "$wxUSE_WIZARDDLG" = yes; then | |
7032 | echo "$ac_t""yes" 1>&6 | |
7033 | else | |
7034 | echo "$ac_t""no" 1>&6 | |
7035 | fi | |
7036 | ||
7037 | ||
7038 | ||
7039 | ||
1e6feb95 | 7040 | echo $ac_n "checking for --enable-menus""... $ac_c" 1>&6 |
031d8228 | 7041 | echo "configure:7042: checking for --enable-menus" >&5 |
1e6feb95 VZ |
7042 | no_cache=0 |
7043 | # Check whether --enable-menus or --disable-menus was given. | |
7044 | if test "${enable_menus+set}" = set; then | |
7045 | enableval="$enable_menus" | |
7046 | ||
7047 | if test "$enableval" = yes; then | |
7048 | ac_cv_use_menus='wxUSE_MENUS=yes' | |
7049 | else | |
7050 | ac_cv_use_menus='wxUSE_MENUS=no' | |
7051 | fi | |
7052 | ||
7053 | else | |
7054 | ||
7055 | LINE=`grep "wxUSE_MENUS" ${wx_arg_cache_file}` | |
7056 | if test "x$LINE" != x ; then | |
7057 | eval "DEFAULT_$LINE" | |
7058 | else | |
7059 | no_cache=1 | |
7060 | fi | |
7061 | ||
7062 | ac_cv_use_menus='wxUSE_MENUS='$DEFAULT_wxUSE_MENUS | |
7063 | ||
7064 | fi | |
7065 | ||
7066 | ||
7067 | eval "$ac_cv_use_menus" | |
7068 | if test "$no_cache" != 1; then | |
7069 | echo $ac_cv_use_menus >> ${wx_arg_cache_file}.tmp | |
7070 | fi | |
7071 | ||
7072 | if test "$wxUSE_MENUS" = yes; then | |
7073 | echo "$ac_t""yes" 1>&6 | |
7074 | else | |
7075 | echo "$ac_t""no" 1>&6 | |
7076 | fi | |
7077 | ||
7078 | ||
698dcdb6 | 7079 | echo $ac_n "checking for --enable-miniframe""... $ac_c" 1>&6 |
031d8228 | 7080 | echo "configure:7081: checking for --enable-miniframe" >&5 |
10f2d63a VZ |
7081 | no_cache=0 |
7082 | # Check whether --enable-miniframe or --disable-miniframe was given. | |
7083 | if test "${enable_miniframe+set}" = set; then | |
7084 | enableval="$enable_miniframe" | |
698dcdb6 | 7085 | |
10f2d63a VZ |
7086 | if test "$enableval" = yes; then |
7087 | ac_cv_use_miniframe='wxUSE_MINIFRAME=yes' | |
7088 | else | |
7089 | ac_cv_use_miniframe='wxUSE_MINIFRAME=no' | |
7090 | fi | |
698dcdb6 | 7091 | |
10f2d63a | 7092 | else |
698dcdb6 | 7093 | |
10f2d63a VZ |
7094 | LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}` |
7095 | if test "x$LINE" != x ; then | |
7096 | eval "DEFAULT_$LINE" | |
7097 | else | |
7098 | no_cache=1 | |
7099 | fi | |
7100 | ||
7101 | ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME | |
698dcdb6 VZ |
7102 | |
7103 | fi | |
10f2d63a VZ |
7104 | |
7105 | ||
7106 | eval "$ac_cv_use_miniframe" | |
7107 | if test "$no_cache" != 1; then | |
7108 | echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp | |
7109 | fi | |
7110 | ||
7111 | if test "$wxUSE_MINIFRAME" = yes; then | |
698dcdb6 | 7112 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7113 | else |
698dcdb6 | 7114 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7115 | fi |
698dcdb6 | 7116 | |
10f2d63a | 7117 | |
698dcdb6 | 7118 | echo $ac_n "checking for --enable-tooltips""... $ac_c" 1>&6 |
031d8228 | 7119 | echo "configure:7120: checking for --enable-tooltips" >&5 |
10f2d63a VZ |
7120 | no_cache=0 |
7121 | # Check whether --enable-tooltips or --disable-tooltips was given. | |
7122 | if test "${enable_tooltips+set}" = set; then | |
7123 | enableval="$enable_tooltips" | |
698dcdb6 | 7124 | |
10f2d63a VZ |
7125 | if test "$enableval" = yes; then |
7126 | ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes' | |
7127 | else | |
7128 | ac_cv_use_tooltips='wxUSE_TOOLTIPS=no' | |
7129 | fi | |
698dcdb6 | 7130 | |
10f2d63a | 7131 | else |
698dcdb6 | 7132 | |
10f2d63a VZ |
7133 | LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}` |
7134 | if test "x$LINE" != x ; then | |
7135 | eval "DEFAULT_$LINE" | |
7136 | else | |
7137 | no_cache=1 | |
7138 | fi | |
7139 | ||
7140 | ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS | |
698dcdb6 VZ |
7141 | |
7142 | fi | |
10f2d63a VZ |
7143 | |
7144 | ||
7145 | eval "$ac_cv_use_tooltips" | |
7146 | if test "$no_cache" != 1; then | |
7147 | echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp | |
7148 | fi | |
7149 | ||
7150 | if test "$wxUSE_TOOLTIPS" = yes; then | |
698dcdb6 | 7151 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7152 | else |
698dcdb6 | 7153 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7154 | fi |
698dcdb6 | 7155 | |
10f2d63a | 7156 | |
698dcdb6 | 7157 | echo $ac_n "checking for --enable-splines""... $ac_c" 1>&6 |
031d8228 | 7158 | echo "configure:7159: checking for --enable-splines" >&5 |
10f2d63a VZ |
7159 | no_cache=0 |
7160 | # Check whether --enable-splines or --disable-splines was given. | |
7161 | if test "${enable_splines+set}" = set; then | |
7162 | enableval="$enable_splines" | |
698dcdb6 | 7163 | |
10f2d63a VZ |
7164 | if test "$enableval" = yes; then |
7165 | ac_cv_use_splines='wxUSE_SPLINES=yes' | |
7166 | else | |
7167 | ac_cv_use_splines='wxUSE_SPLINES=no' | |
7168 | fi | |
698dcdb6 | 7169 | |
10f2d63a | 7170 | else |
698dcdb6 | 7171 | |
10f2d63a VZ |
7172 | LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}` |
7173 | if test "x$LINE" != x ; then | |
7174 | eval "DEFAULT_$LINE" | |
7175 | else | |
7176 | no_cache=1 | |
7177 | fi | |
7178 | ||
7179 | ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES | |
698dcdb6 VZ |
7180 | |
7181 | fi | |
10f2d63a VZ |
7182 | |
7183 | ||
7184 | eval "$ac_cv_use_splines" | |
7185 | if test "$no_cache" != 1; then | |
7186 | echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp | |
7187 | fi | |
7188 | ||
7189 | if test "$wxUSE_SPLINES" = yes; then | |
698dcdb6 | 7190 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7191 | else |
698dcdb6 | 7192 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7193 | fi |
698dcdb6 | 7194 | |
10f2d63a | 7195 | |
698dcdb6 | 7196 | echo $ac_n "checking for --enable-validators""... $ac_c" 1>&6 |
031d8228 | 7197 | echo "configure:7198: checking for --enable-validators" >&5 |
10f2d63a VZ |
7198 | no_cache=0 |
7199 | # Check whether --enable-validators or --disable-validators was given. | |
7200 | if test "${enable_validators+set}" = set; then | |
7201 | enableval="$enable_validators" | |
698dcdb6 | 7202 | |
10f2d63a VZ |
7203 | if test "$enableval" = yes; then |
7204 | ac_cv_use_validators='wxUSE_VALIDATORS=yes' | |
7205 | else | |
7206 | ac_cv_use_validators='wxUSE_VALIDATORS=no' | |
7207 | fi | |
698dcdb6 | 7208 | |
10f2d63a | 7209 | else |
698dcdb6 | 7210 | |
10f2d63a VZ |
7211 | LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}` |
7212 | if test "x$LINE" != x ; then | |
7213 | eval "DEFAULT_$LINE" | |
7214 | else | |
7215 | no_cache=1 | |
7216 | fi | |
7217 | ||
7218 | ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS | |
698dcdb6 VZ |
7219 | |
7220 | fi | |
10f2d63a VZ |
7221 | |
7222 | ||
7223 | eval "$ac_cv_use_validators" | |
7224 | if test "$no_cache" != 1; then | |
7225 | echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp | |
7226 | fi | |
7227 | ||
7228 | if test "$wxUSE_VALIDATORS" = yes; then | |
698dcdb6 | 7229 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7230 | else |
698dcdb6 | 7231 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7232 | fi |
698dcdb6 | 7233 | |
10f2d63a | 7234 | |
698dcdb6 | 7235 | echo $ac_n "checking for --enable-busyinfo""... $ac_c" 1>&6 |
031d8228 | 7236 | echo "configure:7237: checking for --enable-busyinfo" >&5 |
10f2d63a VZ |
7237 | no_cache=0 |
7238 | # Check whether --enable-busyinfo or --disable-busyinfo was given. | |
7239 | if test "${enable_busyinfo+set}" = set; then | |
7240 | enableval="$enable_busyinfo" | |
698dcdb6 | 7241 | |
10f2d63a VZ |
7242 | if test "$enableval" = yes; then |
7243 | ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes' | |
7244 | else | |
7245 | ac_cv_use_busyinfo='wxUSE_BUSYINFO=no' | |
7246 | fi | |
698dcdb6 | 7247 | |
10f2d63a | 7248 | else |
698dcdb6 | 7249 | |
10f2d63a VZ |
7250 | LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}` |
7251 | if test "x$LINE" != x ; then | |
7252 | eval "DEFAULT_$LINE" | |
7253 | else | |
7254 | no_cache=1 | |
7255 | fi | |
7256 | ||
7257 | ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO | |
698dcdb6 VZ |
7258 | |
7259 | fi | |
10f2d63a VZ |
7260 | |
7261 | ||
7262 | eval "$ac_cv_use_busyinfo" | |
7263 | if test "$no_cache" != 1; then | |
7264 | echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp | |
7265 | fi | |
7266 | ||
7267 | if test "$wxUSE_BUSYINFO" = yes; then | |
698dcdb6 | 7268 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7269 | else |
698dcdb6 | 7270 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7271 | fi |
698dcdb6 | 7272 | |
10f2d63a | 7273 | |
698dcdb6 | 7274 | echo $ac_n "checking for --enable-joystick""... $ac_c" 1>&6 |
031d8228 | 7275 | echo "configure:7276: checking for --enable-joystick" >&5 |
f6bcfd97 BP |
7276 | no_cache=0 |
7277 | # Check whether --enable-joystick or --disable-joystick was given. | |
7278 | if test "${enable_joystick+set}" = set; then | |
7279 | enableval="$enable_joystick" | |
698dcdb6 | 7280 | |
f6bcfd97 BP |
7281 | if test "$enableval" = yes; then |
7282 | ac_cv_use_joystick='wxUSE_JOYSTICK=yes' | |
7283 | else | |
7284 | ac_cv_use_joystick='wxUSE_JOYSTICK=no' | |
7285 | fi | |
698dcdb6 | 7286 | |
f6bcfd97 | 7287 | else |
698dcdb6 | 7288 | |
f6bcfd97 BP |
7289 | LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}` |
7290 | if test "x$LINE" != x ; then | |
7291 | eval "DEFAULT_$LINE" | |
7292 | else | |
7293 | no_cache=1 | |
7294 | fi | |
7295 | ||
7296 | ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK | |
698dcdb6 VZ |
7297 | |
7298 | fi | |
f6bcfd97 BP |
7299 | |
7300 | ||
7301 | eval "$ac_cv_use_joystick" | |
7302 | if test "$no_cache" != 1; then | |
7303 | echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp | |
7304 | fi | |
7305 | ||
7306 | if test "$wxUSE_JOYSTICK" = yes; then | |
698dcdb6 | 7307 | echo "$ac_t""yes" 1>&6 |
f6bcfd97 | 7308 | else |
698dcdb6 | 7309 | echo "$ac_t""no" 1>&6 |
f6bcfd97 | 7310 | fi |
698dcdb6 VZ |
7311 | |
7312 | ||
1e6feb95 | 7313 | echo $ac_n "checking for --enable-metafile""... $ac_c" 1>&6 |
031d8228 | 7314 | echo "configure:7315: checking for --enable-metafile" >&5 |
1e6feb95 VZ |
7315 | no_cache=0 |
7316 | # Check whether --enable-metafile or --disable-metafile was given. | |
7317 | if test "${enable_metafile+set}" = set; then | |
7318 | enableval="$enable_metafile" | |
7319 | ||
7320 | if test "$enableval" = yes; then | |
7321 | ac_cv_use_metafile='wxUSE_METAFILE=yes' | |
7322 | else | |
7323 | ac_cv_use_metafile='wxUSE_METAFILE=no' | |
7324 | fi | |
7325 | ||
7326 | else | |
7327 | ||
7328 | LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}` | |
7329 | if test "x$LINE" != x ; then | |
7330 | eval "DEFAULT_$LINE" | |
7331 | else | |
7332 | no_cache=1 | |
7333 | fi | |
7334 | ||
7335 | ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE | |
7336 | ||
7337 | fi | |
7338 | ||
7339 | ||
7340 | eval "$ac_cv_use_metafile" | |
7341 | if test "$no_cache" != 1; then | |
7342 | echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp | |
7343 | fi | |
7344 | ||
7345 | if test "$wxUSE_METAFILE" = yes; then | |
7346 | echo "$ac_t""yes" 1>&6 | |
7347 | else | |
7348 | echo "$ac_t""no" 1>&6 | |
7349 | fi | |
7350 | ||
7351 | ||
24fd6d87 | 7352 | echo $ac_n "checking for --enable-dragimage""... $ac_c" 1>&6 |
031d8228 | 7353 | echo "configure:7354: checking for --enable-dragimage" >&5 |
24fd6d87 VZ |
7354 | no_cache=0 |
7355 | # Check whether --enable-dragimage or --disable-dragimage was given. | |
7356 | if test "${enable_dragimage+set}" = set; then | |
7357 | enableval="$enable_dragimage" | |
7358 | ||
7359 | if test "$enableval" = yes; then | |
7360 | ac_cv_use_dragimage='wxUSE_DRAGIMAGE=yes' | |
7361 | else | |
7362 | ac_cv_use_dragimage='wxUSE_DRAGIMAGE=no' | |
7363 | fi | |
7364 | ||
7365 | else | |
7366 | ||
7367 | LINE=`grep "wxUSE_DRAGIMAGE" ${wx_arg_cache_file}` | |
7368 | if test "x$LINE" != x ; then | |
7369 | eval "DEFAULT_$LINE" | |
7370 | else | |
7371 | no_cache=1 | |
7372 | fi | |
7373 | ||
7374 | ac_cv_use_dragimage='wxUSE_DRAGIMAGE='$DEFAULT_wxUSE_DRAGIMAGE | |
7375 | ||
7376 | fi | |
7377 | ||
7378 | ||
7379 | eval "$ac_cv_use_dragimage" | |
7380 | if test "$no_cache" != 1; then | |
7381 | echo $ac_cv_use_dragimage >> ${wx_arg_cache_file}.tmp | |
7382 | fi | |
7383 | ||
7384 | if test "$wxUSE_DRAGIMAGE" = yes; then | |
7385 | echo "$ac_t""yes" 1>&6 | |
7386 | else | |
7387 | echo "$ac_t""no" 1>&6 | |
7388 | fi | |
7389 | ||
7390 | ||
10f2d63a | 7391 | |
698dcdb6 VZ |
7392 | |
7393 | echo $ac_n "checking for --enable-image""... $ac_c" 1>&6 | |
031d8228 | 7394 | echo "configure:7395: checking for --enable-image" >&5 |
0046ff7c VS |
7395 | no_cache=0 |
7396 | # Check whether --enable-image or --disable-image was given. | |
7397 | if test "${enable_image+set}" = set; then | |
7398 | enableval="$enable_image" | |
698dcdb6 | 7399 | |
0046ff7c VS |
7400 | if test "$enableval" = yes; then |
7401 | ac_cv_use_image='wxUSE_IMAGE=yes' | |
7402 | else | |
7403 | ac_cv_use_image='wxUSE_IMAGE=no' | |
7404 | fi | |
698dcdb6 | 7405 | |
0046ff7c | 7406 | else |
698dcdb6 | 7407 | |
0046ff7c VS |
7408 | LINE=`grep "wxUSE_IMAGE" ${wx_arg_cache_file}` |
7409 | if test "x$LINE" != x ; then | |
7410 | eval "DEFAULT_$LINE" | |
7411 | else | |
7412 | no_cache=1 | |
7413 | fi | |
7414 | ||
7415 | ac_cv_use_image='wxUSE_IMAGE='$DEFAULT_wxUSE_IMAGE | |
698dcdb6 VZ |
7416 | |
7417 | fi | |
0046ff7c VS |
7418 | |
7419 | ||
7420 | eval "$ac_cv_use_image" | |
7421 | if test "$no_cache" != 1; then | |
7422 | echo $ac_cv_use_image >> ${wx_arg_cache_file}.tmp | |
7423 | fi | |
7424 | ||
7425 | if test "$wxUSE_IMAGE" = yes; then | |
698dcdb6 | 7426 | echo "$ac_t""yes" 1>&6 |
0046ff7c | 7427 | else |
698dcdb6 | 7428 | echo "$ac_t""no" 1>&6 |
0046ff7c | 7429 | fi |
698dcdb6 | 7430 | |
0046ff7c | 7431 | |
698dcdb6 | 7432 | echo $ac_n "checking for --enable-gif""... $ac_c" 1>&6 |
031d8228 | 7433 | echo "configure:7434: checking for --enable-gif" >&5 |
10f2d63a VZ |
7434 | no_cache=0 |
7435 | # Check whether --enable-gif or --disable-gif was given. | |
7436 | if test "${enable_gif+set}" = set; then | |
7437 | enableval="$enable_gif" | |
698dcdb6 | 7438 | |
10f2d63a VZ |
7439 | if test "$enableval" = yes; then |
7440 | ac_cv_use_gif='wxUSE_GIF=yes' | |
7441 | else | |
7442 | ac_cv_use_gif='wxUSE_GIF=no' | |
7443 | fi | |
698dcdb6 | 7444 | |
10f2d63a | 7445 | else |
698dcdb6 | 7446 | |
10f2d63a VZ |
7447 | LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}` |
7448 | if test "x$LINE" != x ; then | |
7449 | eval "DEFAULT_$LINE" | |
7450 | else | |
7451 | no_cache=1 | |
7452 | fi | |
7453 | ||
7454 | ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF | |
698dcdb6 VZ |
7455 | |
7456 | fi | |
10f2d63a VZ |
7457 | |
7458 | ||
7459 | eval "$ac_cv_use_gif" | |
7460 | if test "$no_cache" != 1; then | |
7461 | echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp | |
7462 | fi | |
7463 | ||
7464 | if test "$wxUSE_GIF" = yes; then | |
698dcdb6 | 7465 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7466 | else |
698dcdb6 | 7467 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7468 | fi |
698dcdb6 | 7469 | |
10f2d63a | 7470 | |
698dcdb6 | 7471 | echo $ac_n "checking for --enable-pcx""... $ac_c" 1>&6 |
031d8228 | 7472 | echo "configure:7473: checking for --enable-pcx" >&5 |
10f2d63a VZ |
7473 | no_cache=0 |
7474 | # Check whether --enable-pcx or --disable-pcx was given. | |
7475 | if test "${enable_pcx+set}" = set; then | |
7476 | enableval="$enable_pcx" | |
698dcdb6 | 7477 | |
10f2d63a VZ |
7478 | if test "$enableval" = yes; then |
7479 | ac_cv_use_pcx='wxUSE_PCX=yes' | |
7480 | else | |
7481 | ac_cv_use_pcx='wxUSE_PCX=no' | |
7482 | fi | |
698dcdb6 | 7483 | |
10f2d63a | 7484 | else |
698dcdb6 | 7485 | |
10f2d63a VZ |
7486 | LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}` |
7487 | if test "x$LINE" != x ; then | |
7488 | eval "DEFAULT_$LINE" | |
7489 | else | |
7490 | no_cache=1 | |
7491 | fi | |
7492 | ||
7493 | ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX | |
698dcdb6 VZ |
7494 | |
7495 | fi | |
10f2d63a VZ |
7496 | |
7497 | ||
7498 | eval "$ac_cv_use_pcx" | |
7499 | if test "$no_cache" != 1; then | |
7500 | echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp | |
7501 | fi | |
7502 | ||
7503 | if test "$wxUSE_PCX" = yes; then | |
698dcdb6 | 7504 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7505 | else |
698dcdb6 | 7506 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7507 | fi |
698dcdb6 | 7508 | |
10f2d63a | 7509 | |
698dcdb6 | 7510 | echo $ac_n "checking for --enable-pnm""... $ac_c" 1>&6 |
031d8228 | 7511 | echo "configure:7512: checking for --enable-pnm" >&5 |
10f2d63a VZ |
7512 | no_cache=0 |
7513 | # Check whether --enable-pnm or --disable-pnm was given. | |
7514 | if test "${enable_pnm+set}" = set; then | |
7515 | enableval="$enable_pnm" | |
698dcdb6 | 7516 | |
10f2d63a VZ |
7517 | if test "$enableval" = yes; then |
7518 | ac_cv_use_pnm='wxUSE_PNM=yes' | |
7519 | else | |
7520 | ac_cv_use_pnm='wxUSE_PNM=no' | |
7521 | fi | |
698dcdb6 | 7522 | |
10f2d63a | 7523 | else |
698dcdb6 | 7524 | |
10f2d63a VZ |
7525 | LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}` |
7526 | if test "x$LINE" != x ; then | |
7527 | eval "DEFAULT_$LINE" | |
7528 | else | |
7529 | no_cache=1 | |
7530 | fi | |
7531 | ||
7532 | ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM | |
698dcdb6 VZ |
7533 | |
7534 | fi | |
10f2d63a VZ |
7535 | |
7536 | ||
7537 | eval "$ac_cv_use_pnm" | |
7538 | if test "$no_cache" != 1; then | |
7539 | echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp | |
7540 | fi | |
7541 | ||
7542 | if test "$wxUSE_PNM" = yes; then | |
698dcdb6 | 7543 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7544 | else |
698dcdb6 | 7545 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7546 | fi |
698dcdb6 | 7547 | |
10f2d63a | 7548 | |
698dcdb6 | 7549 | echo $ac_n "checking for --enable-pnm""... $ac_c" 1>&6 |
031d8228 | 7550 | echo "configure:7551: checking for --enable-pnm" >&5 |
0046ff7c VS |
7551 | no_cache=0 |
7552 | # Check whether --enable-pnm or --disable-pnm was given. | |
7553 | if test "${enable_pnm+set}" = set; then | |
7554 | enableval="$enable_pnm" | |
698dcdb6 | 7555 | |
0046ff7c VS |
7556 | if test "$enableval" = yes; then |
7557 | ac_cv_use_pnm='wxUSE_XPM=yes' | |
7558 | else | |
7559 | ac_cv_use_pnm='wxUSE_XPM=no' | |
7560 | fi | |
698dcdb6 | 7561 | |
0046ff7c | 7562 | else |
698dcdb6 | 7563 | |
0046ff7c VS |
7564 | LINE=`grep "wxUSE_XPM" ${wx_arg_cache_file}` |
7565 | if test "x$LINE" != x ; then | |
7566 | eval "DEFAULT_$LINE" | |
7567 | else | |
7568 | no_cache=1 | |
7569 | fi | |
7570 | ||
7571 | ac_cv_use_pnm='wxUSE_XPM='$DEFAULT_wxUSE_XPM | |
698dcdb6 VZ |
7572 | |
7573 | fi | |
0046ff7c VS |
7574 | |
7575 | ||
7576 | eval "$ac_cv_use_pnm" | |
7577 | if test "$no_cache" != 1; then | |
7578 | echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp | |
7579 | fi | |
7580 | ||
7581 | if test "$wxUSE_XPM" = yes; then | |
698dcdb6 | 7582 | echo "$ac_t""yes" 1>&6 |
0046ff7c | 7583 | else |
698dcdb6 | 7584 | echo "$ac_t""no" 1>&6 |
0046ff7c | 7585 | fi |
698dcdb6 | 7586 | |
0046ff7c | 7587 | |
b12915c1 VZ |
7588 | fi |
7589 | ||
698dcdb6 | 7590 | |
10f2d63a VZ |
7591 | echo "saving argument cache $wx_arg_cache_file" |
7592 | mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file} | |
698dcdb6 | 7593 | |
10f2d63a | 7594 | |
698dcdb6 VZ |
7595 | |
7596 | echo $ac_n "checking for toolkit""... $ac_c" 1>&6 | |
031d8228 | 7597 | echo "configure:7598: checking for toolkit" >&5 |
10f2d63a VZ |
7598 | |
7599 | if test "$wxUSE_GUI" = "yes"; then | |
7600 | ||
b12915c1 | 7601 | if test "$USE_BEOS" = 1; then |
698dcdb6 | 7602 | { echo "configure: error: BeOS GUI is not supported yet, use --disable-gui" 1>&2; exit 1; } |
b12915c1 VZ |
7603 | fi |
7604 | ||
10f2d63a VZ |
7605 | if test "$TOOLKIT_GIVEN" = 1; then |
7606 | for toolkit in `echo $ALL_TOOLKITS`; do | |
7607 | var=wxUSE_$toolkit | |
7608 | eval "value=\$${var}" | |
7609 | eval "$var=`echo \$value | sed -e "s/yes/1/" -e "s/no/0/"`" | |
7610 | done | |
7611 | else | |
7612 | for toolkit in `echo $ALL_TOOLKITS`; do | |
7613 | if test "$has_toolkit_in_cache" != 1; then | |
7614 | var=DEFAULT_DEFAULT_wxUSE_$toolkit | |
7615 | else | |
7616 | var=DEFAULT_wxUSE_$toolkit | |
7617 | fi | |
7618 | eval "wxUSE_$toolkit=\$${var}" | |
7619 | done | |
7620 | fi | |
7621 | ||
1e6feb95 | 7622 | NUM_TOOLKITS=`expr ${wxUSE_GTK:-0} + ${wxUSE_MOTIF:-0} + ${wxUSE_MAC:-0} + ${wxUSE_WINE:-0} + ${wxUSE_MINGW:-0} + ${wxUSE_CYGWIN:-0} + ${wxUSE_MGL:-0}` |
cf27ef00 | 7623 | |
ec14dd32 VZ |
7624 | case "${host}" in |
7625 | *-pc-os2_emx ) | |
7626 | NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}` | |
7627 | # PATH_IFS is autodetected by OS/2's configure (usually ';') | |
7628 | LEX_STEM="lexyy" | |
7629 | ;; | |
7630 | *) | |
7631 | PATH_IFS=':' | |
7632 | LEX_STEM="lex.yy" | |
7633 | ;; | |
7634 | esac | |
10f2d63a VZ |
7635 | |
7636 | case "$NUM_TOOLKITS" in | |
7637 | 1) | |
7638 | ;; | |
7639 | 0) | |
698dcdb6 | 7640 | { echo "configure: error: Please specify a toolkit - cannot determine the default for ${host}" 1>&2; exit 1; } |
10f2d63a VZ |
7641 | ;; |
7642 | *) | |
698dcdb6 | 7643 | { echo "configure: error: Please specify at most one toolkit (may be some are cached?)" 1>&2; exit 1; } |
10f2d63a VZ |
7644 | esac |
7645 | ||
7646 | for toolkit in `echo $ALL_TOOLKITS`; do | |
7647 | var=wxUSE_$toolkit | |
7648 | eval "value=\$${var}" | |
7649 | if test "x$value" != x; then | |
7650 | cache_var=CACHE_$toolkit | |
7651 | eval "cache=\$${cache_var}" | |
7652 | if test "$cache" = 1; then | |
7653 | echo "$var=$value" >> ${wx_arg_cache_file} | |
7654 | fi | |
7655 | if test "$value" = 1; then | |
8168de4c VZ |
7656 | toolkit_echo=`echo $toolkit | tr [A-Z] [a-z]` |
7657 | echo "$ac_t""$toolkit_echo" 1>&6 | |
10f2d63a VZ |
7658 | fi |
7659 | fi | |
7660 | done | |
7661 | ||
7662 | else | |
cf27ef00 | 7663 | PATH_IFS=':' |
698dcdb6 | 7664 | echo "$ac_t""base only" 1>&6 |
10f2d63a VZ |
7665 | fi |
7666 | ||
698dcdb6 VZ |
7667 | |
7668 | cat > confcache <<\EOF | |
10f2d63a VZ |
7669 | # This file is a shell script that caches the results of configure |
7670 | # tests run on this system so they can be shared between configure | |
698dcdb6 VZ |
7671 | # scripts and configure runs. It is not useful on other systems. |
7672 | # If it contains results you don't want to keep, you may remove or edit it. | |
10f2d63a | 7673 | # |
698dcdb6 VZ |
7674 | # By default, configure uses ./config.cache as the cache file, |
7675 | # creating it if it does not exist already. You can give configure | |
7676 | # the --cache-file=FILE option to use a different cache file; that is | |
7677 | # what configure does when it calls configure scripts in | |
7678 | # subdirectories, so they share the cache. | |
7679 | # Giving --cache-file=/dev/null disables caching, for debugging configure. | |
7680 | # config.status only pays attention to the cache file if you give it the | |
7681 | # --recheck option to rerun configure. | |
10f2d63a | 7682 | # |
698dcdb6 | 7683 | EOF |
10f2d63a VZ |
7684 | # The following way of writing the cache mishandles newlines in values, |
7685 | # but we know of no workaround that is simple, portable, and efficient. | |
7686 | # So, don't put newlines in cache variables' values. | |
7687 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
7688 | # and sets the high bit in the cache file unless we assign to the vars. | |
698dcdb6 VZ |
7689 | (set) 2>&1 | |
7690 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
7691 | *ac_space=\ *) | |
7692 | # `set' does not quote correctly, so add quotes (double-quote substitution | |
7693 | # turns \\\\ into \\, and sed turns \\ into \). | |
7694 | sed -n \ | |
7695 | -e "s/'/'\\\\''/g" \ | |
7696 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" | |
7697 | ;; | |
7698 | *) | |
7699 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
7700 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' | |
7701 | ;; | |
7702 | esac >> confcache | |
7703 | if cmp -s $cache_file confcache; then | |
7704 | : | |
7705 | else | |
10f2d63a | 7706 | if test -w $cache_file; then |
698dcdb6 VZ |
7707 | echo "updating cache $cache_file" |
7708 | cat confcache > $cache_file | |
10f2d63a VZ |
7709 | else |
7710 | echo "not updating unwritable cache $cache_file" | |
7711 | fi | |
7712 | fi | |
7713 | rm -f confcache | |
7714 | ||
698dcdb6 | 7715 | |
e59890c3 | 7716 | if test "$build" != "$host" ; then |
10f2d63a VZ |
7717 | CC=$host_alias-gcc |
7718 | CXX=$host_alias-c++ | |
7719 | AR=$host_alias-ar | |
7720 | RANLIB=$host_alias-ranlib | |
7721 | DLLTOOL=$host_alias-dlltool | |
32832908 | 7722 | RESCOMP=$host_alias-windres |
10f2d63a VZ |
7723 | LD=$host_alias-ld |
7724 | NM=$host_alias-nm | |
7725 | STRIP=$host_alias-strip | |
10f2d63a VZ |
7726 | fi |
7727 | ||
698dcdb6 | 7728 | # Extract the first word of "gcc", so it can be a program name with args. |
1e487827 | 7729 | set dummy gcc; ac_word=$2 |
698dcdb6 | 7730 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
031d8228 | 7731 | echo "configure:7732: checking for $ac_word" >&5 |
698dcdb6 VZ |
7732 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
7733 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6232543b VS |
7734 | else |
7735 | if test -n "$CC"; then | |
7736 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
10f2d63a | 7737 | else |
698dcdb6 VZ |
7738 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
7739 | ac_dummy="$PATH" | |
7740 | for ac_dir in $ac_dummy; do | |
7741 | test -z "$ac_dir" && ac_dir=. | |
7742 | if test -f $ac_dir/$ac_word; then | |
7743 | ac_cv_prog_CC="gcc" | |
7744 | break | |
7745 | fi | |
7746 | done | |
7747 | IFS="$ac_save_ifs" | |
10f2d63a | 7748 | fi |
6232543b | 7749 | fi |
698dcdb6 | 7750 | CC="$ac_cv_prog_CC" |
6232543b | 7751 | if test -n "$CC"; then |
698dcdb6 | 7752 | echo "$ac_t""$CC" 1>&6 |
1e487827 | 7753 | else |
698dcdb6 | 7754 | echo "$ac_t""no" 1>&6 |
1e487827 | 7755 | fi |
6232543b | 7756 | |
1e487827 VS |
7757 | if test -z "$CC"; then |
7758 | # Extract the first word of "cc", so it can be a program name with args. | |
7759 | set dummy cc; ac_word=$2 | |
698dcdb6 | 7760 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
031d8228 | 7761 | echo "configure:7762: checking for $ac_word" >&5 |
698dcdb6 VZ |
7762 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
7763 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1e487827 VS |
7764 | else |
7765 | if test -n "$CC"; then | |
7766 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
7767 | else | |
698dcdb6 | 7768 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
1e487827 | 7769 | ac_prog_rejected=no |
698dcdb6 VZ |
7770 | ac_dummy="$PATH" |
7771 | for ac_dir in $ac_dummy; do | |
7772 | test -z "$ac_dir" && ac_dir=. | |
7773 | if test -f $ac_dir/$ac_word; then | |
7774 | if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then | |
7775 | ac_prog_rejected=yes | |
7776 | continue | |
7777 | fi | |
7778 | ac_cv_prog_CC="cc" | |
7779 | break | |
7780 | fi | |
7781 | done | |
7782 | IFS="$ac_save_ifs" | |
1e487827 VS |
7783 | if test $ac_prog_rejected = yes; then |
7784 | # We found a bogon in the path, so make sure we never use it. | |
7785 | set dummy $ac_cv_prog_CC | |
7786 | shift | |
698dcdb6 | 7787 | if test $# -gt 0; then |
1e487827 VS |
7788 | # We chose a different compiler from the bogus one. |
7789 | # However, it has the same basename, so the bogon will be chosen | |
7790 | # first if we set CC to just the basename; use the full file name. | |
7791 | shift | |
698dcdb6 | 7792 | set dummy "$ac_dir/$ac_word" "$@" |
1e487827 VS |
7793 | shift |
7794 | ac_cv_prog_CC="$@" | |
703e0a69 | 7795 | fi |
1e487827 VS |
7796 | fi |
7797 | fi | |
7798 | fi | |
698dcdb6 | 7799 | CC="$ac_cv_prog_CC" |
1e487827 | 7800 | if test -n "$CC"; then |
698dcdb6 | 7801 | echo "$ac_t""$CC" 1>&6 |
703e0a69 | 7802 | else |
698dcdb6 | 7803 | echo "$ac_t""no" 1>&6 |
703e0a69 | 7804 | fi |
1e487827 | 7805 | |
698dcdb6 VZ |
7806 | if test -z "$CC"; then |
7807 | case "`uname -s`" in | |
7808 | *win32* | *WIN32*) | |
7809 | # Extract the first word of "cl", so it can be a program name with args. | |
7810 | set dummy cl; ac_word=$2 | |
7811 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
031d8228 | 7812 | echo "configure:7813: checking for $ac_word" >&5 |
698dcdb6 VZ |
7813 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
7814 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1e487827 VS |
7815 | else |
7816 | if test -n "$CC"; then | |
7817 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
703e0a69 | 7818 | else |
698dcdb6 VZ |
7819 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
7820 | ac_dummy="$PATH" | |
7821 | for ac_dir in $ac_dummy; do | |
7822 | test -z "$ac_dir" && ac_dir=. | |
7823 | if test -f $ac_dir/$ac_word; then | |
7824 | ac_cv_prog_CC="cl" | |
7825 | break | |
7826 | fi | |
7827 | done | |
7828 | IFS="$ac_save_ifs" | |
703e0a69 | 7829 | fi |
1e487827 | 7830 | fi |
698dcdb6 | 7831 | CC="$ac_cv_prog_CC" |
1e487827 | 7832 | if test -n "$CC"; then |
698dcdb6 | 7833 | echo "$ac_t""$CC" 1>&6 |
1e487827 | 7834 | else |
698dcdb6 | 7835 | echo "$ac_t""no" 1>&6 |
1e487827 | 7836 | fi |
698dcdb6 VZ |
7837 | ;; |
7838 | esac | |
7839 | fi | |
7840 | test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } | |
1e487827 VS |
7841 | fi |
7842 | ||
698dcdb6 | 7843 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 |
031d8228 | 7844 | echo "configure:7845: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 |
1e487827 | 7845 | |
698dcdb6 VZ |
7846 | ac_ext=c |
7847 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
7848 | ac_cpp='$CPP $CPPFLAGS' | |
7849 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
7850 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
7851 | cross_compiling=$ac_cv_prog_cc_cross | |
6232543b | 7852 | |
698dcdb6 | 7853 | cat > conftest.$ac_ext << EOF |
1e487827 | 7854 | |
031d8228 | 7855 | #line 7856 "configure" |
1e487827 VS |
7856 | #include "confdefs.h" |
7857 | ||
698dcdb6 VZ |
7858 | main(){return(0);} |
7859 | EOF | |
031d8228 | 7860 | if { (eval echo configure:7861: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
7861 | ac_cv_prog_cc_works=yes |
7862 | # If we can't run a trivial program, we are probably using a cross compiler. | |
7863 | if (./conftest; exit) 2>/dev/null; then | |
7864 | ac_cv_prog_cc_cross=no | |
7865 | else | |
7866 | ac_cv_prog_cc_cross=yes | |
7867 | fi | |
7868 | else | |
7869 | echo "configure: failed program was:" >&5 | |
7870 | cat conftest.$ac_ext >&5 | |
7871 | ac_cv_prog_cc_works=no | |
7872 | fi | |
7873 | rm -fr conftest* | |
7874 | ac_ext=c | |
7875 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
7876 | ac_cpp='$CPP $CPPFLAGS' | |
7877 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
7878 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
7879 | cross_compiling=$ac_cv_prog_cc_cross | |
7880 | ||
7881 | echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 | |
7882 | if test $ac_cv_prog_cc_works = no; then | |
7883 | { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } | |
7884 | fi | |
7885 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 | |
031d8228 | 7886 | echo "configure:7887: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 |
698dcdb6 VZ |
7887 | echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 |
7888 | cross_compiling=$ac_cv_prog_cc_cross | |
7889 | ||
7890 | echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 | |
031d8228 | 7891 | echo "configure:7892: checking whether we are using GNU C" >&5 |
698dcdb6 VZ |
7892 | if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then |
7893 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7894 | else | |
7895 | cat > conftest.c <<EOF | |
7896 | #ifdef __GNUC__ | |
7897 | yes; | |
1e487827 | 7898 | #endif |
698dcdb6 | 7899 | EOF |
031d8228 | 7900 | if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:7901: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then |
698dcdb6 VZ |
7901 | ac_cv_prog_gcc=yes |
7902 | else | |
7903 | ac_cv_prog_gcc=no | |
7904 | fi | |
7905 | fi | |
1e487827 | 7906 | |
698dcdb6 | 7907 | echo "$ac_t""$ac_cv_prog_gcc" 1>&6 |
1e487827 | 7908 | |
698dcdb6 VZ |
7909 | if test $ac_cv_prog_gcc = yes; then |
7910 | GCC=yes | |
7911 | else | |
7912 | GCC= | |
7913 | fi | |
1e487827 | 7914 | |
698dcdb6 VZ |
7915 | ac_test_CFLAGS="${CFLAGS+set}" |
7916 | ac_save_CFLAGS="$CFLAGS" | |
7917 | CFLAGS= | |
7918 | echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 | |
031d8228 | 7919 | echo "configure:7920: checking whether ${CC-cc} accepts -g" >&5 |
698dcdb6 VZ |
7920 | if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then |
7921 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7922 | else | |
7923 | echo 'void f(){}' > conftest.c | |
7924 | if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then | |
10f2d63a VZ |
7925 | ac_cv_prog_cc_g=yes |
7926 | else | |
698dcdb6 | 7927 | ac_cv_prog_cc_g=no |
10f2d63a | 7928 | fi |
698dcdb6 VZ |
7929 | rm -f conftest* |
7930 | ||
10f2d63a | 7931 | fi |
698dcdb6 VZ |
7932 | |
7933 | echo "$ac_t""$ac_cv_prog_cc_g" 1>&6 | |
10f2d63a | 7934 | if test "$ac_test_CFLAGS" = set; then |
698dcdb6 | 7935 | CFLAGS="$ac_save_CFLAGS" |
10f2d63a VZ |
7936 | elif test $ac_cv_prog_cc_g = yes; then |
7937 | if test "$GCC" = yes; then | |
7938 | CFLAGS="-g -O2" | |
7939 | else | |
7940 | CFLAGS="-g" | |
7941 | fi | |
7942 | else | |
7943 | if test "$GCC" = yes; then | |
7944 | CFLAGS="-O2" | |
7945 | else | |
7946 | CFLAGS= | |
7947 | fi | |
7948 | fi | |
7949 | ||
7950 | ||
7951 | CFLAGS=`echo "$CFLAGS" | sed 's/-g//g'` | |
7952 | ||
698dcdb6 | 7953 | echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 |
031d8228 | 7954 | echo "configure:7955: checking how to run the C preprocessor" >&5 |
10f2d63a VZ |
7955 | # On Suns, sometimes $CPP names a directory. |
7956 | if test -n "$CPP" && test -d "$CPP"; then | |
7957 | CPP= | |
7958 | fi | |
7959 | if test -z "$CPP"; then | |
698dcdb6 VZ |
7960 | if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then |
7961 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7962 | else | |
7963 | # This must be in double quotes, not single quotes, because CPP may get | |
7964 | # substituted into the Makefile and "${CC-cc}" will confuse make. | |
7965 | CPP="${CC-cc} -E" | |
10f2d63a | 7966 | # On the NeXT, cc -E runs the code through the compiler's parser, |
698dcdb6 VZ |
7967 | # not just through cpp. |
7968 | cat > conftest.$ac_ext <<EOF | |
031d8228 | 7969 | #line 7970 "configure" |
10f2d63a VZ |
7970 | #include "confdefs.h" |
7971 | #include <assert.h> | |
698dcdb6 VZ |
7972 | Syntax Error |
7973 | EOF | |
7974 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
031d8228 | 7975 | { (eval echo configure:7976: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
7976 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
7977 | if test -z "$ac_err"; then | |
10f2d63a VZ |
7978 | : |
7979 | else | |
698dcdb6 VZ |
7980 | echo "$ac_err" >&5 |
7981 | echo "configure: failed program was:" >&5 | |
10f2d63a | 7982 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
7983 | rm -rf conftest* |
7984 | CPP="${CC-cc} -E -traditional-cpp" | |
7985 | cat > conftest.$ac_ext <<EOF | |
031d8228 | 7986 | #line 7987 "configure" |
10f2d63a | 7987 | #include "confdefs.h" |
698dcdb6 VZ |
7988 | #include <assert.h> |
7989 | Syntax Error | |
7990 | EOF | |
7991 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
031d8228 | 7992 | { (eval echo configure:7993: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
7993 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
7994 | if test -z "$ac_err"; then | |
7995 | : | |
10f2d63a | 7996 | else |
698dcdb6 VZ |
7997 | echo "$ac_err" >&5 |
7998 | echo "configure: failed program was:" >&5 | |
10f2d63a | 7999 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
8000 | rm -rf conftest* |
8001 | CPP="${CC-cc} -nologo -E" | |
8002 | cat > conftest.$ac_ext <<EOF | |
031d8228 | 8003 | #line 8004 "configure" |
10f2d63a VZ |
8004 | #include "confdefs.h" |
8005 | #include <assert.h> | |
698dcdb6 VZ |
8006 | Syntax Error |
8007 | EOF | |
8008 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
031d8228 | 8009 | { (eval echo configure:8010: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
8010 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
8011 | if test -z "$ac_err"; then | |
10f2d63a VZ |
8012 | : |
8013 | else | |
698dcdb6 VZ |
8014 | echo "$ac_err" >&5 |
8015 | echo "configure: failed program was:" >&5 | |
10f2d63a | 8016 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
8017 | rm -rf conftest* |
8018 | CPP=/lib/cpp | |
10f2d63a | 8019 | fi |
698dcdb6 | 8020 | rm -f conftest* |
10f2d63a | 8021 | fi |
698dcdb6 | 8022 | rm -f conftest* |
703e0a69 | 8023 | fi |
698dcdb6 VZ |
8024 | rm -f conftest* |
8025 | ac_cv_prog_CPP="$CPP" | |
8026 | fi | |
8027 | CPP="$ac_cv_prog_CPP" | |
10f2d63a | 8028 | else |
698dcdb6 | 8029 | ac_cv_prog_CPP="$CPP" |
10f2d63a | 8030 | fi |
698dcdb6 | 8031 | echo "$ac_t""$CPP" 1>&6 |
10f2d63a VZ |
8032 | |
8033 | ||
698dcdb6 VZ |
8034 | if test $ac_cv_prog_gcc = yes; then |
8035 | echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6 | |
031d8228 | 8036 | echo "configure:8037: checking whether ${CC-cc} needs -traditional" >&5 |
698dcdb6 VZ |
8037 | if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then |
8038 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a VZ |
8039 | else |
8040 | ac_pattern="Autoconf.*'x'" | |
698dcdb6 | 8041 | cat > conftest.$ac_ext <<EOF |
031d8228 | 8042 | #line 8043 "configure" |
10f2d63a VZ |
8043 | #include "confdefs.h" |
8044 | #include <sgtty.h> | |
8045 | Autoconf TIOCGETP | |
698dcdb6 | 8046 | EOF |
10f2d63a VZ |
8047 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
8048 | egrep "$ac_pattern" >/dev/null 2>&1; then | |
698dcdb6 | 8049 | rm -rf conftest* |
10f2d63a VZ |
8050 | ac_cv_prog_gcc_traditional=yes |
8051 | else | |
698dcdb6 | 8052 | rm -rf conftest* |
10f2d63a VZ |
8053 | ac_cv_prog_gcc_traditional=no |
8054 | fi | |
8055 | rm -f conftest* | |
8056 | ||
698dcdb6 | 8057 | |
10f2d63a | 8058 | if test $ac_cv_prog_gcc_traditional = no; then |
698dcdb6 | 8059 | cat > conftest.$ac_ext <<EOF |
031d8228 | 8060 | #line 8061 "configure" |
10f2d63a VZ |
8061 | #include "confdefs.h" |
8062 | #include <termio.h> | |
8063 | Autoconf TCGETA | |
698dcdb6 | 8064 | EOF |
10f2d63a VZ |
8065 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
8066 | egrep "$ac_pattern" >/dev/null 2>&1; then | |
698dcdb6 | 8067 | rm -rf conftest* |
10f2d63a VZ |
8068 | ac_cv_prog_gcc_traditional=yes |
8069 | fi | |
8070 | rm -f conftest* | |
8071 | ||
8072 | fi | |
8073 | fi | |
698dcdb6 VZ |
8074 | |
8075 | echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6 | |
10f2d63a VZ |
8076 | if test $ac_cv_prog_gcc_traditional = yes; then |
8077 | CC="$CC -traditional" | |
8078 | fi | |
8079 | fi | |
8080 | ||
703e0a69 | 8081 | |
698dcdb6 VZ |
8082 | |
8083 | ac_ext=C | |
8084 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
1e487827 | 8085 | ac_cpp='$CXXCPP $CPPFLAGS' |
698dcdb6 VZ |
8086 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
8087 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
8088 | cross_compiling=$ac_cv_prog_cxx_cross | |
8089 | ||
8090 | ||
8091 | for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl | |
8092 | do | |
8093 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
8094 | set dummy $ac_prog; ac_word=$2 | |
8095 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
031d8228 | 8096 | echo "configure:8097: checking for $ac_word" >&5 |
698dcdb6 VZ |
8097 | if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then |
8098 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a VZ |
8099 | else |
8100 | if test -n "$CXX"; then | |
8101 | ac_cv_prog_CXX="$CXX" # Let the user override the test. | |
8102 | else | |
698dcdb6 VZ |
8103 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
8104 | ac_dummy="$PATH" | |
8105 | for ac_dir in $ac_dummy; do | |
8106 | test -z "$ac_dir" && ac_dir=. | |
8107 | if test -f $ac_dir/$ac_word; then | |
8108 | ac_cv_prog_CXX="$ac_prog" | |
8109 | break | |
8110 | fi | |
8111 | done | |
8112 | IFS="$ac_save_ifs" | |
10f2d63a VZ |
8113 | fi |
8114 | fi | |
698dcdb6 | 8115 | CXX="$ac_cv_prog_CXX" |
10f2d63a | 8116 | if test -n "$CXX"; then |
698dcdb6 | 8117 | echo "$ac_t""$CXX" 1>&6 |
10f2d63a | 8118 | else |
698dcdb6 | 8119 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
8120 | fi |
8121 | ||
698dcdb6 | 8122 | test -n "$CXX" && break |
10f2d63a | 8123 | done |
698dcdb6 | 8124 | test -n "$CXX" || CXX="gcc" |
10f2d63a VZ |
8125 | |
8126 | ||
698dcdb6 | 8127 | echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6 |
031d8228 | 8128 | echo "configure:8129: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5 |
10f2d63a | 8129 | |
698dcdb6 VZ |
8130 | ac_ext=C |
8131 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
8132 | ac_cpp='$CXXCPP $CPPFLAGS' | |
8133 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
8134 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
8135 | cross_compiling=$ac_cv_prog_cxx_cross | |
703e0a69 | 8136 | |
698dcdb6 VZ |
8137 | cat > conftest.$ac_ext << EOF |
8138 | ||
031d8228 | 8139 | #line 8140 "configure" |
10f2d63a VZ |
8140 | #include "confdefs.h" |
8141 | ||
698dcdb6 VZ |
8142 | int main(){return(0);} |
8143 | EOF | |
031d8228 | 8144 | if { (eval echo configure:8145: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
8145 | ac_cv_prog_cxx_works=yes |
8146 | # If we can't run a trivial program, we are probably using a cross compiler. | |
8147 | if (./conftest; exit) 2>/dev/null; then | |
8148 | ac_cv_prog_cxx_cross=no | |
8149 | else | |
8150 | ac_cv_prog_cxx_cross=yes | |
8151 | fi | |
8152 | else | |
8153 | echo "configure: failed program was:" >&5 | |
8154 | cat conftest.$ac_ext >&5 | |
8155 | ac_cv_prog_cxx_works=no | |
8156 | fi | |
8157 | rm -fr conftest* | |
8158 | ac_ext=C | |
8159 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
8160 | ac_cpp='$CXXCPP $CPPFLAGS' | |
8161 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
8162 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
8163 | cross_compiling=$ac_cv_prog_cxx_cross | |
8164 | ||
8165 | echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6 | |
8166 | if test $ac_cv_prog_cxx_works = no; then | |
8167 | { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; } | |
8168 | fi | |
8169 | echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 | |
031d8228 | 8170 | echo "configure:8171: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5 |
698dcdb6 VZ |
8171 | echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6 |
8172 | cross_compiling=$ac_cv_prog_cxx_cross | |
8173 | ||
8174 | echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6 | |
031d8228 | 8175 | echo "configure:8176: checking whether we are using GNU C++" >&5 |
698dcdb6 VZ |
8176 | if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then |
8177 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8178 | else | |
8179 | cat > conftest.C <<EOF | |
8180 | #ifdef __GNUC__ | |
8181 | yes; | |
10f2d63a | 8182 | #endif |
698dcdb6 | 8183 | EOF |
031d8228 | 8184 | if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:8185: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then |
698dcdb6 VZ |
8185 | ac_cv_prog_gxx=yes |
8186 | else | |
8187 | ac_cv_prog_gxx=no | |
8188 | fi | |
8189 | fi | |
10f2d63a | 8190 | |
698dcdb6 | 8191 | echo "$ac_t""$ac_cv_prog_gxx" 1>&6 |
10f2d63a | 8192 | |
698dcdb6 VZ |
8193 | if test $ac_cv_prog_gxx = yes; then |
8194 | GXX=yes | |
8195 | else | |
8196 | GXX= | |
8197 | fi | |
10f2d63a | 8198 | |
698dcdb6 VZ |
8199 | ac_test_CXXFLAGS="${CXXFLAGS+set}" |
8200 | ac_save_CXXFLAGS="$CXXFLAGS" | |
8201 | CXXFLAGS= | |
8202 | echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6 | |
031d8228 | 8203 | echo "configure:8204: checking whether ${CXX-g++} accepts -g" >&5 |
698dcdb6 VZ |
8204 | if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then |
8205 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8206 | else | |
8207 | echo 'void f(){}' > conftest.cc | |
8208 | if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then | |
10f2d63a VZ |
8209 | ac_cv_prog_cxx_g=yes |
8210 | else | |
698dcdb6 | 8211 | ac_cv_prog_cxx_g=no |
10f2d63a | 8212 | fi |
698dcdb6 VZ |
8213 | rm -f conftest* |
8214 | ||
10f2d63a | 8215 | fi |
698dcdb6 VZ |
8216 | |
8217 | echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6 | |
10f2d63a | 8218 | if test "$ac_test_CXXFLAGS" = set; then |
698dcdb6 | 8219 | CXXFLAGS="$ac_save_CXXFLAGS" |
10f2d63a VZ |
8220 | elif test $ac_cv_prog_cxx_g = yes; then |
8221 | if test "$GXX" = yes; then | |
8222 | CXXFLAGS="-g -O2" | |
8223 | else | |
8224 | CXXFLAGS="-g" | |
8225 | fi | |
8226 | else | |
8227 | if test "$GXX" = yes; then | |
8228 | CXXFLAGS="-O2" | |
8229 | else | |
8230 | CXXFLAGS= | |
8231 | fi | |
8232 | fi | |
8233 | ||
8234 | ||
698dcdb6 | 8235 | echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6 |
031d8228 | 8236 | echo "configure:8237: checking how to run the C++ preprocessor" >&5 |
1e487827 | 8237 | if test -z "$CXXCPP"; then |
698dcdb6 VZ |
8238 | if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then |
8239 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1e487827 | 8240 | else |
698dcdb6 VZ |
8241 | ac_ext=C |
8242 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
8243 | ac_cpp='$CXXCPP $CPPFLAGS' | |
8244 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
8245 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
8246 | cross_compiling=$ac_cv_prog_cxx_cross | |
8247 | CXXCPP="${CXX-g++} -E" | |
8248 | cat > conftest.$ac_ext <<EOF | |
031d8228 | 8249 | #line 8250 "configure" |
1e487827 | 8250 | #include "confdefs.h" |
698dcdb6 VZ |
8251 | #include <stdlib.h> |
8252 | EOF | |
8253 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
031d8228 | 8254 | { (eval echo configure:8255: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
8255 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
8256 | if test -z "$ac_err"; then | |
1e487827 VS |
8257 | : |
8258 | else | |
698dcdb6 VZ |
8259 | echo "$ac_err" >&5 |
8260 | echo "configure: failed program was:" >&5 | |
1e487827 | 8261 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
8262 | rm -rf conftest* |
8263 | CXXCPP=/lib/cpp | |
1e487827 | 8264 | fi |
698dcdb6 VZ |
8265 | rm -f conftest* |
8266 | ac_cv_prog_CXXCPP="$CXXCPP" | |
8267 | ac_ext=C | |
8268 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
8269 | ac_cpp='$CXXCPP $CPPFLAGS' | |
8270 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
8271 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
8272 | cross_compiling=$ac_cv_prog_cxx_cross | |
1e487827 | 8273 | fi |
1e487827 | 8274 | fi |
698dcdb6 VZ |
8275 | CXXCPP="$ac_cv_prog_CXXCPP" |
8276 | echo "$ac_t""$CXXCPP" 1>&6 | |
1e487827 | 8277 | |
10f2d63a VZ |
8278 | |
8279 | CXXFLAGS=`echo "$CXXFLAGS" | sed 's/-g//g'` | |
8280 | ||
8281 | ac_ext=c | |
698dcdb6 | 8282 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
10f2d63a | 8283 | ac_cpp='$CPP $CPPFLAGS' |
698dcdb6 VZ |
8284 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
8285 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
8286 | cross_compiling=$ac_cv_prog_cc_cross | |
8287 | ||
8288 | ||
8289 | # Extract the first word of "ranlib", so it can be a program name with args. | |
8290 | set dummy ranlib; ac_word=$2 | |
8291 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
031d8228 | 8292 | echo "configure:8293: checking for $ac_word" >&5 |
698dcdb6 VZ |
8293 | if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then |
8294 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a VZ |
8295 | else |
8296 | if test -n "$RANLIB"; then | |
8297 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
8298 | else | |
698dcdb6 VZ |
8299 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
8300 | ac_dummy="$PATH" | |
8301 | for ac_dir in $ac_dummy; do | |
8302 | test -z "$ac_dir" && ac_dir=. | |
8303 | if test -f $ac_dir/$ac_word; then | |
8304 | ac_cv_prog_RANLIB="ranlib" | |
8305 | break | |
8306 | fi | |
8307 | done | |
8308 | IFS="$ac_save_ifs" | |
8309 | test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":" | |
10f2d63a VZ |
8310 | fi |
8311 | fi | |
698dcdb6 | 8312 | RANLIB="$ac_cv_prog_RANLIB" |
10f2d63a | 8313 | if test -n "$RANLIB"; then |
698dcdb6 | 8314 | echo "$ac_t""$RANLIB" 1>&6 |
10f2d63a | 8315 | else |
698dcdb6 | 8316 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
8317 | fi |
8318 | ||
8319 | ||
8320 | # Extract the first word of "ar", so it can be a program name with args. | |
8321 | set dummy ar; ac_word=$2 | |
698dcdb6 | 8322 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
031d8228 | 8323 | echo "configure:8324: checking for $ac_word" >&5 |
698dcdb6 VZ |
8324 | if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then |
8325 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a VZ |
8326 | else |
8327 | if test -n "$AR"; then | |
8328 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
8329 | else | |
698dcdb6 VZ |
8330 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
8331 | ac_dummy="$PATH" | |
8332 | for ac_dir in $ac_dummy; do | |
8333 | test -z "$ac_dir" && ac_dir=. | |
8334 | if test -f $ac_dir/$ac_word; then | |
8335 | ac_cv_prog_AR="ar" | |
8336 | break | |
8337 | fi | |
8338 | done | |
8339 | IFS="$ac_save_ifs" | |
10f2d63a VZ |
8340 | test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar" |
8341 | fi | |
8342 | fi | |
698dcdb6 | 8343 | AR="$ac_cv_prog_AR" |
10f2d63a | 8344 | if test -n "$AR"; then |
698dcdb6 | 8345 | echo "$ac_t""$AR" 1>&6 |
10f2d63a | 8346 | else |
698dcdb6 | 8347 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
8348 | fi |
8349 | ||
698dcdb6 | 8350 | |
10f2d63a VZ |
8351 | # Find a good install program. We prefer a C program (faster), |
8352 | # so one script is as good as another. But avoid the broken or | |
8353 | # incompatible versions: | |
8354 | # SysV /etc/install, /usr/sbin/install | |
8355 | # SunOS /usr/etc/install | |
8356 | # IRIX /sbin/install | |
8357 | # AIX /bin/install | |
8358 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
8359 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
8360 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
8361 | # ./install, which can be erroneously created by make from ./install.sh. | |
698dcdb6 | 8362 | echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 |
031d8228 | 8363 | echo "configure:8364: checking for a BSD compatible install" >&5 |
10f2d63a | 8364 | if test -z "$INSTALL"; then |
698dcdb6 VZ |
8365 | if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then |
8366 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 8367 | else |
698dcdb6 | 8368 | IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":" |
10f2d63a VZ |
8369 | for ac_dir in $PATH; do |
8370 | # Account for people who put trailing slashes in PATH elements. | |
698dcdb6 VZ |
8371 | case "$ac_dir/" in |
8372 | /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;; | |
10f2d63a VZ |
8373 | *) |
8374 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
8375 | # Don't use installbsd from OSF since it installs stuff as root | |
8376 | # by default. | |
8377 | for ac_prog in ginstall scoinst install; do | |
698dcdb6 | 8378 | if test -f $ac_dir/$ac_prog; then |
10f2d63a | 8379 | if test $ac_prog = install && |
698dcdb6 | 8380 | grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then |
10f2d63a VZ |
8381 | # AIX install. It has an incompatible calling convention. |
8382 | : | |
8383 | else | |
8384 | ac_cv_path_install="$ac_dir/$ac_prog -c" | |
8385 | break 2 | |
8386 | fi | |
8387 | fi | |
8388 | done | |
8389 | ;; | |
8390 | esac | |
8391 | done | |
698dcdb6 | 8392 | IFS="$ac_save_IFS" |
10f2d63a VZ |
8393 | |
8394 | fi | |
8395 | if test "${ac_cv_path_install+set}" = set; then | |
698dcdb6 | 8396 | INSTALL="$ac_cv_path_install" |
10f2d63a VZ |
8397 | else |
8398 | # As a last resort, use the slow shell script. We don't cache a | |
8399 | # path for INSTALL within a source directory, because that will | |
8400 | # break other packages using the cache if that directory is | |
8401 | # removed, or if the path is relative. | |
698dcdb6 | 8402 | INSTALL="$ac_install_sh" |
10f2d63a VZ |
8403 | fi |
8404 | fi | |
698dcdb6 | 8405 | echo "$ac_t""$INSTALL" 1>&6 |
10f2d63a VZ |
8406 | |
8407 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
8408 | # It thinks the first close brace ends the variable substitution. | |
8409 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
8410 | ||
698dcdb6 | 8411 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}' |
10f2d63a VZ |
8412 | |
8413 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
8414 | ||
698dcdb6 | 8415 | |
10f2d63a VZ |
8416 | # Extract the first word of "strip", so it can be a program name with args. |
8417 | set dummy strip; ac_word=$2 | |
698dcdb6 | 8418 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
031d8228 | 8419 | echo "configure:8420: checking for $ac_word" >&5 |
698dcdb6 VZ |
8420 | if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then |
8421 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a VZ |
8422 | else |
8423 | if test -n "$STRIP"; then | |
8424 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
8425 | else | |
698dcdb6 VZ |
8426 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
8427 | ac_dummy="$PATH" | |
8428 | for ac_dir in $ac_dummy; do | |
8429 | test -z "$ac_dir" && ac_dir=. | |
8430 | if test -f $ac_dir/$ac_word; then | |
8431 | ac_cv_prog_STRIP="strip" | |
8432 | break | |
8433 | fi | |
8434 | done | |
8435 | IFS="$ac_save_ifs" | |
10f2d63a VZ |
8436 | test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="true" |
8437 | fi | |
8438 | fi | |
698dcdb6 | 8439 | STRIP="$ac_cv_prog_STRIP" |
10f2d63a | 8440 | if test -n "$STRIP"; then |
698dcdb6 | 8441 | echo "$ac_t""$STRIP" 1>&6 |
10f2d63a | 8442 | else |
698dcdb6 | 8443 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
8444 | fi |
8445 | ||
698dcdb6 VZ |
8446 | |
8447 | echo $ac_n "checking make for VPATH support""... $ac_c" 1>&6 | |
031d8228 | 8448 | echo "configure:8449: checking make for VPATH support" >&5 |
10f2d63a VZ |
8449 | cat - << EOF > confMake |
8450 | check : file | |
8451 | cp \$? \$@ | |
8452 | cp \$? final_file | |
8453 | EOF | |
8454 | ||
8455 | if test ! -d sub ; then | |
8456 | mkdir sub | |
8457 | fi | |
8458 | echo dummy > sub/file | |
f6bcfd97 | 8459 | ${MAKE-make} -f confMake VPATH=sub 2>&5 > /dev/null |
10f2d63a VZ |
8460 | RESULT=$? |
8461 | rm -f sub/file check final_file confMake | |
8462 | rmdir sub | |
8463 | if test "$RESULT" = 0; then | |
698dcdb6 | 8464 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 8465 | else |
698dcdb6 VZ |
8466 | echo "$ac_t""no" 1>&6 |
8467 | { echo "configure: error: | |
1e487827 VS |
8468 | You need a make-utility that is able to use the variable |
8469 | VPATH correctly. | |
8470 | If your version of make does not support VPATH correctly, | |
8471 | please install GNU-make (possibly as gmake), and start | |
8472 | configure with the following command: | |
8473 | export MAKE=gmake; ./configure for sh-type shells | |
8474 | setenv MAKE gmake; ./configure for csh-type shells | |
8475 | Also please do remember to use gmake in this case every time | |
8476 | you are trying to compile. | |
698dcdb6 | 8477 | " 1>&2; exit 1; } |
10f2d63a VZ |
8478 | fi |
8479 | ||
8480 | for ac_prog in 'bison -y' byacc | |
8481 | do | |
698dcdb6 | 8482 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
10f2d63a | 8483 | set dummy $ac_prog; ac_word=$2 |
698dcdb6 | 8484 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
031d8228 | 8485 | echo "configure:8486: checking for $ac_word" >&5 |
698dcdb6 VZ |
8486 | if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then |
8487 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a VZ |
8488 | else |
8489 | if test -n "$YACC"; then | |
8490 | ac_cv_prog_YACC="$YACC" # Let the user override the test. | |
8491 | else | |
698dcdb6 VZ |
8492 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
8493 | ac_dummy="$PATH" | |
8494 | for ac_dir in $ac_dummy; do | |
8495 | test -z "$ac_dir" && ac_dir=. | |
8496 | if test -f $ac_dir/$ac_word; then | |
8497 | ac_cv_prog_YACC="$ac_prog" | |
8498 | break | |
8499 | fi | |
8500 | done | |
8501 | IFS="$ac_save_ifs" | |
10f2d63a VZ |
8502 | fi |
8503 | fi | |
698dcdb6 | 8504 | YACC="$ac_cv_prog_YACC" |
10f2d63a | 8505 | if test -n "$YACC"; then |
698dcdb6 | 8506 | echo "$ac_t""$YACC" 1>&6 |
10f2d63a | 8507 | else |
698dcdb6 | 8508 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
8509 | fi |
8510 | ||
698dcdb6 | 8511 | test -n "$YACC" && break |
10f2d63a VZ |
8512 | done |
8513 | test -n "$YACC" || YACC="yacc" | |
8514 | ||
698dcdb6 VZ |
8515 | |
8516 | # Extract the first word of "flex", so it can be a program name with args. | |
8517 | set dummy flex; ac_word=$2 | |
8518 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
031d8228 | 8519 | echo "configure:8520: checking for $ac_word" >&5 |
698dcdb6 VZ |
8520 | if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then |
8521 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a VZ |
8522 | else |
8523 | if test -n "$LEX"; then | |
8524 | ac_cv_prog_LEX="$LEX" # Let the user override the test. | |
8525 | else | |
698dcdb6 VZ |
8526 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
8527 | ac_dummy="$PATH" | |
8528 | for ac_dir in $ac_dummy; do | |
8529 | test -z "$ac_dir" && ac_dir=. | |
8530 | if test -f $ac_dir/$ac_word; then | |
8531 | ac_cv_prog_LEX="flex" | |
8532 | break | |
8533 | fi | |
8534 | done | |
8535 | IFS="$ac_save_ifs" | |
8536 | test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex" | |
10f2d63a VZ |
8537 | fi |
8538 | fi | |
698dcdb6 | 8539 | LEX="$ac_cv_prog_LEX" |
10f2d63a | 8540 | if test -n "$LEX"; then |
698dcdb6 | 8541 | echo "$ac_t""$LEX" 1>&6 |
10f2d63a | 8542 | else |
698dcdb6 | 8543 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
8544 | fi |
8545 | ||
8546 | if test -z "$LEXLIB" | |
8547 | then | |
698dcdb6 VZ |
8548 | case "$LEX" in |
8549 | flex*) ac_lib=fl ;; | |
8550 | *) ac_lib=l ;; | |
8551 | esac | |
8552 | echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6 | |
031d8228 | 8553 | echo "configure:8554: checking for yywrap in -l$ac_lib" >&5 |
698dcdb6 VZ |
8554 | ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'` |
8555 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
8556 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8557 | else | |
8558 | ac_save_LIBS="$LIBS" | |
8559 | LIBS="-l$ac_lib $LIBS" | |
8560 | cat > conftest.$ac_ext <<EOF | |
031d8228 | 8561 | #line 8562 "configure" |
10f2d63a VZ |
8562 | #include "confdefs.h" |
8563 | /* Override any gcc2 internal prototype to avoid an error. */ | |
8564 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
8565 | builtin and then its argument prototype would still apply. */ |
8566 | char yywrap(); | |
10f2d63a | 8567 | |
698dcdb6 VZ |
8568 | int main() { |
8569 | yywrap() | |
8570 | ; return 0; } | |
8571 | EOF | |
031d8228 | 8572 | if { (eval echo configure:8573: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
8573 | rm -rf conftest* |
8574 | eval "ac_cv_lib_$ac_lib_var=yes" | |
10f2d63a | 8575 | else |
698dcdb6 VZ |
8576 | echo "configure: failed program was:" >&5 |
8577 | cat conftest.$ac_ext >&5 | |
8578 | rm -rf conftest* | |
8579 | eval "ac_cv_lib_$ac_lib_var=no" | |
10f2d63a | 8580 | fi |
698dcdb6 VZ |
8581 | rm -f conftest* |
8582 | LIBS="$ac_save_LIBS" | |
8583 | ||
10f2d63a | 8584 | fi |
698dcdb6 VZ |
8585 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
8586 | echo "$ac_t""yes" 1>&6 | |
8587 | LEXLIB="-l$ac_lib" | |
8588 | else | |
8589 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
8590 | fi |
8591 | ||
8592 | fi | |
8593 | ||
8594 | ||
698dcdb6 | 8595 | echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6 |
031d8228 | 8596 | echo "configure:8597: checking whether ln -s works" >&5 |
698dcdb6 VZ |
8597 | if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then |
8598 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 8599 | else |
698dcdb6 VZ |
8600 | rm -f conftestdata |
8601 | if ln -s X conftestdata 2>/dev/null | |
8602 | then | |
8603 | rm -f conftestdata | |
8604 | ac_cv_prog_LN_S="ln -s" | |
10f2d63a | 8605 | else |
698dcdb6 | 8606 | ac_cv_prog_LN_S=ln |
10f2d63a VZ |
8607 | fi |
8608 | fi | |
698dcdb6 VZ |
8609 | LN_S="$ac_cv_prog_LN_S" |
8610 | if test "$ac_cv_prog_LN_S" = "ln -s"; then | |
8611 | echo "$ac_t""yes" 1>&6 | |
10f2d63a | 8612 | else |
698dcdb6 | 8613 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
8614 | fi |
8615 | ||
8616 | ||
8617 | ||
8618 | SEARCH_INCLUDE="\ | |
8619 | /usr/local/include \ | |
8620 | \ | |
8621 | /usr/Motif-1.2/include \ | |
8622 | /usr/Motif-2.1/include \ | |
8623 | \ | |
8624 | /usr/include/Motif1.2 \ | |
8625 | /opt/xpm/include/X11 \ | |
8626 | /opt/GBxpm/include/ \ | |
8627 | /opt/GBxpm/X11/include/ \ | |
8628 | \ | |
8629 | /usr/Motif1.2/include \ | |
8630 | /usr/dt/include \ | |
afc31813 VZ |
8631 | /usr/openwin/include \ |
8632 | \ | |
10f2d63a VZ |
8633 | /usr/include/Xm \ |
8634 | \ | |
8635 | /usr/X11R6/include \ | |
afc31813 | 8636 | /usr/X11R6.4/include \ |
10f2d63a VZ |
8637 | /usr/X11R5/include \ |
8638 | /usr/X11R4/include \ | |
8639 | \ | |
10f2d63a VZ |
8640 | /usr/include/X11R6 \ |
8641 | /usr/include/X11R5 \ | |
8642 | /usr/include/X11R4 \ | |
8643 | \ | |
8644 | /usr/local/X11R6/include \ | |
8645 | /usr/local/X11R5/include \ | |
8646 | /usr/local/X11R4/include \ | |
8647 | \ | |
8648 | /usr/local/include/X11R6 \ | |
8649 | /usr/local/include/X11R5 \ | |
8650 | /usr/local/include/X11R4 \ | |
8651 | \ | |
8652 | /usr/X11/include \ | |
8653 | /usr/include/X11 \ | |
8654 | /usr/local/X11/include \ | |
8655 | /usr/local/include/X11 \ | |
8656 | \ | |
8657 | /usr/X386/include \ | |
8658 | /usr/x386/include \ | |
8659 | /usr/XFree86/include/X11 \ | |
8660 | \ | |
cf27ef00 | 8661 | X:/XFree86/include \ |
ec14dd32 VZ |
8662 | X:/XFree86/include/X11 \ |
8663 | \ | |
10f2d63a VZ |
8664 | /usr/include/gtk \ |
8665 | /usr/local/include/gtk \ | |
8666 | /usr/include/glib \ | |
8667 | /usr/local/include/glib \ | |
8668 | \ | |
8669 | /usr/include/qt \ | |
8670 | /usr/local/include/qt \ | |
8671 | \ | |
8672 | /usr/include/windows \ | |
8673 | /usr/include/wine \ | |
8674 | /usr/local/include/wine \ | |
8675 | \ | |
8676 | /usr/unsupported/include \ | |
8677 | /usr/athena/include \ | |
8678 | /usr/local/x11r5/include \ | |
8679 | /usr/lpp/Xamples/include \ | |
8680 | \ | |
10f2d63a | 8681 | /usr/openwin/share/include \ |
928b5c08 VZ |
8682 | \ |
8683 | /usr/include" | |
10f2d63a VZ |
8684 | |
8685 | SEARCH_LIB="`echo "$SEARCH_INCLUDE" | sed s/include/lib/g` " | |
8686 | ||
698dcdb6 VZ |
8687 | |
8688 | cat > confcache <<\EOF | |
10f2d63a VZ |
8689 | # This file is a shell script that caches the results of configure |
8690 | # tests run on this system so they can be shared between configure | |
698dcdb6 VZ |
8691 | # scripts and configure runs. It is not useful on other systems. |
8692 | # If it contains results you don't want to keep, you may remove or edit it. | |
10f2d63a | 8693 | # |
698dcdb6 VZ |
8694 | # By default, configure uses ./config.cache as the cache file, |
8695 | # creating it if it does not exist already. You can give configure | |
8696 | # the --cache-file=FILE option to use a different cache file; that is | |
8697 | # what configure does when it calls configure scripts in | |
8698 | # subdirectories, so they share the cache. | |
8699 | # Giving --cache-file=/dev/null disables caching, for debugging configure. | |
8700 | # config.status only pays attention to the cache file if you give it the | |
8701 | # --recheck option to rerun configure. | |
10f2d63a | 8702 | # |
698dcdb6 | 8703 | EOF |
10f2d63a VZ |
8704 | # The following way of writing the cache mishandles newlines in values, |
8705 | # but we know of no workaround that is simple, portable, and efficient. | |
8706 | # So, don't put newlines in cache variables' values. | |
8707 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
8708 | # and sets the high bit in the cache file unless we assign to the vars. | |
698dcdb6 VZ |
8709 | (set) 2>&1 | |
8710 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
8711 | *ac_space=\ *) | |
8712 | # `set' does not quote correctly, so add quotes (double-quote substitution | |
8713 | # turns \\\\ into \\, and sed turns \\ into \). | |
8714 | sed -n \ | |
8715 | -e "s/'/'\\\\''/g" \ | |
8716 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" | |
8717 | ;; | |
8718 | *) | |
8719 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
8720 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' | |
8721 | ;; | |
8722 | esac >> confcache | |
8723 | if cmp -s $cache_file confcache; then | |
8724 | : | |
8725 | else | |
10f2d63a | 8726 | if test -w $cache_file; then |
698dcdb6 VZ |
8727 | echo "updating cache $cache_file" |
8728 | cat confcache > $cache_file | |
10f2d63a VZ |
8729 | else |
8730 | echo "not updating unwritable cache $cache_file" | |
8731 | fi | |
8732 | fi | |
8733 | rm -f confcache | |
8734 | ||
698dcdb6 VZ |
8735 | |
8736 | ||
dad6c0ea VZ |
8737 | AFMINSTALL= |
8738 | ||
10f2d63a | 8739 | if test "$wxUSE_GUI" = "yes"; then |
1e6feb95 | 8740 | USE_GUI=1 |
10f2d63a | 8741 | |
1e6feb95 VZ |
8742 | TOOLKIT= |
8743 | TOOLKIT_INCLUDE= | |
10f2d63a | 8744 | |
1e6feb95 VZ |
8745 | GUI_TK_LIBRARY= |
8746 | GUI_TK_LINK= | |
10f2d63a | 8747 | |
1e6feb95 VZ |
8748 | WXGTK12= |
8749 | WXGTK127= | |
8750 | WXGTK20= | |
10f2d63a | 8751 | |
1e6feb95 | 8752 | WXWINE= |
10f2d63a | 8753 | |
1e6feb95 | 8754 | if test "$wxUSE_CYGWIN" = 1 || test "$wxUSE_MINGW" = 1 ; then |
29fd3c0c VS |
8755 | ac_safe=`echo "windows.h" | sed 'y%./+-%__p_%'` |
8756 | echo $ac_n "checking for windows.h""... $ac_c" 1>&6 | |
031d8228 | 8757 | echo "configure:8758: checking for windows.h" >&5 |
d4158b5d VS |
8758 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
8759 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8760 | else | |
8761 | cat > conftest.$ac_ext <<EOF | |
031d8228 | 8762 | #line 8763 "configure" |
d4158b5d | 8763 | #include "confdefs.h" |
29fd3c0c | 8764 | #include <windows.h> |
d4158b5d VS |
8765 | EOF |
8766 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
031d8228 | 8767 | { (eval echo configure:8768: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
d4158b5d VS |
8768 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
8769 | if test -z "$ac_err"; then | |
8770 | rm -rf conftest* | |
8771 | eval "ac_cv_header_$ac_safe=yes" | |
8772 | else | |
8773 | echo "$ac_err" >&5 | |
8774 | echo "configure: failed program was:" >&5 | |
8775 | cat conftest.$ac_ext >&5 | |
8776 | rm -rf conftest* | |
8777 | eval "ac_cv_header_$ac_safe=no" | |
8778 | fi | |
8779 | rm -f conftest* | |
8780 | fi | |
8781 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
8782 | echo "$ac_t""yes" 1>&6 | |
29fd3c0c | 8783 | : |
d4158b5d VS |
8784 | else |
8785 | echo "$ac_t""no" 1>&6 | |
d4158b5d | 8786 | |
3f0f0161 VZ |
8787 | { echo "configure: error: please set CFLAGS to contain the location of windows.h" 1>&2; exit 1; } |
8788 | ||
29fd3c0c | 8789 | fi |
10f2d63a | 8790 | |
3f0f0161 | 8791 | |
1e6feb95 | 8792 | INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS msw" |
3f0f0161 VZ |
8793 | |
8794 | CXXFLAGS="${CXXFLAGS} -DWINVER=0x0400" | |
8795 | ||
031d8228 | 8796 | LIBS="$LIBS -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lwinspool -lwinmm -lshell32 -lcomctl32 -lctl3d32 -ladvapi32 -lwsock32" |
f6bcfd97 | 8797 | |
1e6feb95 VZ |
8798 | if test "$wxUSE_ODBC" = "yes" ; then |
8799 | LIBS="$LIBS -lodbc32 -lole32 -loleaut32" | |
8800 | fi | |
10f2d63a | 8801 | |
1e6feb95 VZ |
8802 | if test "$wxUSE_MINGW" = 1; then |
8803 | LDFLAGS="$LDFLAGS -mwindows" | |
8804 | fi | |
32832908 | 8805 | |
1e6feb95 VZ |
8806 | TOOLKIT=MSW |
8807 | GUIDIST=MSW_DIST | |
32832908 | 8808 | |
1e6feb95 VZ |
8809 | RCINCSWITCH="--include-dir" |
8810 | RCDEFSWITCH="--define" | |
8811 | RCPREPROCESSOR="--preprocessor \"\$(CC) -c -E -xc-header -DRC_INVOKED\"" | |
8812 | RCINPUTSWITCH="-i" | |
8813 | RCOUTPUTSWITCH="-o" | |
8814 | RESFLAGS="$RCPREPROCESSOR $RCINCSWITCH \$(top_srcdir)/include $RCINCSWITCH \$(top_srcdir)/\$(program_dir) $RCDEFSWITCH __WIN32__ $RCDEFSWITCH __WIN95__ $RCDEFSWITCH __GNUWIN32__" | |
32832908 | 8815 | |
1e6feb95 VZ |
8816 | RESPROGRAM="\$(RES_PROGRAM)" |
8817 | fi | |
10f2d63a | 8818 | |
1e6feb95 | 8819 | if test "$wxUSE_GTK" = 1; then |
8168de4c | 8820 | echo $ac_n "checking for GTK+ version""... $ac_c" 1>&6 |
3f0f0161 | 8821 | echo "configure:8822: checking for GTK+ version" >&5 |
8168de4c VZ |
8822 | |
8823 | gtk_version_cached=1 | |
8824 | if eval "test \"`echo '$''{'wx_cv_lib_gtk'+set}'`\" = set"; then | |
8825 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8826 | else | |
8827 | ||
8828 | gtk_version_cached=0 | |
8829 | echo "$ac_t""""" 1>&6 | |
8830 | ||
8831 | wx_cv_lib_gtk= | |
8832 | if test "x$wxUSE_GTK2" = "xyes"; then | |
8833 | # Check whether --with-gtk-prefix or --without-gtk-prefix was given. | |
6f72b082 OK |
8834 | if test "${with_gtk_prefix+set}" = set; then |
8835 | withval="$with_gtk_prefix" | |
8836 | gtk_config_prefix="$withval" | |
8837 | else | |
8838 | gtk_config_prefix="" | |
698dcdb6 | 8839 | fi |
6f72b082 OK |
8840 | |
8841 | # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given. | |
8842 | if test "${with_gtk_exec_prefix+set}" = set; then | |
8843 | withval="$with_gtk_exec_prefix" | |
8844 | gtk_config_exec_prefix="$withval" | |
8845 | else | |
8846 | gtk_config_exec_prefix="" | |
698dcdb6 VZ |
8847 | fi |
8848 | ||
6f72b082 OK |
8849 | # Check whether --enable-gtktest or --disable-gtktest was given. |
8850 | if test "${enable_gtktest+set}" = set; then | |
8851 | enableval="$enable_gtktest" | |
698dcdb6 | 8852 | : |
6f72b082 OK |
8853 | else |
8854 | enable_gtktest=yes | |
698dcdb6 VZ |
8855 | fi |
8856 | ||
6f72b082 | 8857 | |
8168de4c | 8858 | for module in . |
6f72b082 OK |
8859 | do |
8860 | case "$module" in | |
8168de4c | 8861 | gthread) |
6f72b082 OK |
8862 | gtk_config_args="$gtk_config_args gthread" |
8863 | ;; | |
8864 | esac | |
8865 | done | |
8866 | ||
8867 | if test x$gtk_config_exec_prefix != x ; then | |
8868 | gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix" | |
8869 | if test x${GTK_CONFIG_2_0+set} != xset ; then | |
8870 | GTK_CONFIG_2_0=$gtk_config_exec_prefix/bin/gtk-config-2.0 | |
8871 | fi | |
8872 | fi | |
8873 | if test x$gtk_config_prefix != x ; then | |
8874 | gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix" | |
8875 | if test x${GTK_CONFIG_2_0+set} != xset ; then | |
8876 | GTK_CONFIG_2_0=$gtk_config_prefix/bin/gtk-config-2.0 | |
8877 | fi | |
8878 | fi | |
8879 | ||
8880 | # Extract the first word of "gtk-config-2.0", so it can be a program name with args. | |
8881 | set dummy gtk-config-2.0; ac_word=$2 | |
698dcdb6 | 8882 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
3f0f0161 | 8883 | echo "configure:8884: checking for $ac_word" >&5 |
698dcdb6 VZ |
8884 | if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG_2_0'+set}'`\" = set"; then |
8885 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6f72b082 | 8886 | else |
698dcdb6 VZ |
8887 | case "$GTK_CONFIG_2_0" in |
8888 | /*) | |
6f72b082 OK |
8889 | ac_cv_path_GTK_CONFIG_2_0="$GTK_CONFIG_2_0" # Let the user override the test with a path. |
8890 | ;; | |
698dcdb6 VZ |
8891 | ?:/*) |
8892 | ac_cv_path_GTK_CONFIG_2_0="$GTK_CONFIG_2_0" # Let the user override the test with a dos path. | |
8893 | ;; | |
6f72b082 | 8894 | *) |
698dcdb6 VZ |
8895 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
8896 | ac_dummy="$PATH" | |
8897 | for ac_dir in $ac_dummy; do | |
8898 | test -z "$ac_dir" && ac_dir=. | |
8899 | if test -f $ac_dir/$ac_word; then | |
8900 | ac_cv_path_GTK_CONFIG_2_0="$ac_dir/$ac_word" | |
8901 | break | |
8902 | fi | |
8903 | done | |
8904 | IFS="$ac_save_ifs" | |
6f72b082 OK |
8905 | test -z "$ac_cv_path_GTK_CONFIG_2_0" && ac_cv_path_GTK_CONFIG_2_0="no" |
8906 | ;; | |
8907 | esac | |
8908 | fi | |
698dcdb6 | 8909 | GTK_CONFIG_2_0="$ac_cv_path_GTK_CONFIG_2_0" |
6f72b082 | 8910 | if test -n "$GTK_CONFIG_2_0"; then |
698dcdb6 | 8911 | echo "$ac_t""$GTK_CONFIG_2_0" 1>&6 |
6f72b082 | 8912 | else |
698dcdb6 | 8913 | echo "$ac_t""no" 1>&6 |
6f72b082 OK |
8914 | fi |
8915 | ||
8916 | min_gtk_version=1.3.1 | |
698dcdb6 | 8917 | echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6 |
3f0f0161 | 8918 | echo "configure:8919: checking for GTK - version >= $min_gtk_version" >&5 |
6f72b082 OK |
8919 | no_gtk="" |
8920 | if test "$GTK_CONFIG_2_0" = "no" ; then | |
8921 | no_gtk=yes | |
8922 | else | |
8923 | GTK_CFLAGS=`$GTK_CONFIG_2_0 $gtk_config_args --cflags` | |
8924 | GTK_LIBS=`$GTK_CONFIG_2_0 $gtk_config_args --libs` | |
8925 | gtk_config_major_version=`$GTK_CONFIG_2_0 $gtk_config_args --version | \ | |
8926 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` | |
8927 | gtk_config_minor_version=`$GTK_CONFIG_2_0 $gtk_config_args --version | \ | |
8928 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` | |
8929 | gtk_config_micro_version=`$GTK_CONFIG_2_0 $gtk_config_args --version | \ | |
8930 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` | |
8931 | if test "x$enable_gtktest" = "xyes" ; then | |
8932 | ac_save_CFLAGS="$CFLAGS" | |
8933 | ac_save_LIBS="$LIBS" | |
8934 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
8935 | LIBS="$GTK_LIBS $LIBS" | |
8936 | rm -f conf.gtktest | |
8937 | if test "$cross_compiling" = yes; then | |
8938 | echo $ac_n "cross compiling; assumed OK... $ac_c" | |
8939 | else | |
698dcdb6 | 8940 | cat > conftest.$ac_ext <<EOF |
3f0f0161 | 8941 | #line 8942 "configure" |
6f72b082 OK |
8942 | #include "confdefs.h" |
8943 | ||
8944 | #include <gtk/gtk.h> | |
8945 | #include <stdio.h> | |
8946 | #include <stdlib.h> | |
8947 | ||
8168de4c | 8948 | int |
6f72b082 OK |
8949 | main () |
8950 | { | |
8951 | int major, minor, micro; | |
8952 | char *tmp_version; | |
8953 | ||
8954 | system ("touch conf.gtktest"); | |
8955 | ||
8956 | /* HP/UX 9 (%@#!) writes to sscanf strings */ | |
8957 | tmp_version = g_strdup("$min_gtk_version"); | |
8958 | if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { | |
8959 | printf("%s, bad version string\n", "$min_gtk_version"); | |
8960 | exit(1); | |
8961 | } | |
8962 | ||
8963 | if ((gtk_major_version != $gtk_config_major_version) || | |
8964 | (gtk_minor_version != $gtk_config_minor_version) || | |
8965 | (gtk_micro_version != $gtk_config_micro_version)) | |
8966 | { | |
8168de4c | 8967 | printf("\n*** 'gtk-config-2.0 --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n", |
6f72b082 OK |
8968 | $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version, |
8969 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
8970 | printf ("*** was found! If gtk-config-2.0 was correct, then it is best\n"); | |
8971 | printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n"); | |
8972 | printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n"); | |
8973 | printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n"); | |
8974 | printf("*** required on your system.\n"); | |
8975 | printf("*** If gtk-config-2.0 was wrong, set the environment variable GTK_CONFIG_2_0\n"); | |
8976 | printf("*** to point to the correct copy of gtk-config-2.0, and remove the file config.cache\n"); | |
8977 | printf("*** before re-running configure\n"); | |
8168de4c | 8978 | } |
6f72b082 OK |
8979 | #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION) |
8980 | else if ((gtk_major_version != GTK_MAJOR_VERSION) || | |
8168de4c | 8981 | (gtk_minor_version != GTK_MINOR_VERSION) || |
6f72b082 OK |
8982 | (gtk_micro_version != GTK_MICRO_VERSION)) |
8983 | { | |
8984 | printf("*** GTK+ header files (version %d.%d.%d) do not match\n", | |
8168de4c | 8985 | GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION); |
6f72b082 | 8986 | printf("*** library (version %d.%d.%d)\n", |
8168de4c | 8987 | gtk_major_version, gtk_minor_version, gtk_micro_version); |
6f72b082 OK |
8988 | } |
8989 | #endif /* defined (GTK_MAJOR_VERSION) ... */ | |
8990 | else | |
8991 | { | |
8992 | if ((gtk_major_version > major) || | |
8993 | ((gtk_major_version == major) && (gtk_minor_version > minor)) || | |
8994 | ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro))) | |
8995 | { | |
8996 | return 0; | |
8997 | } | |
8998 | else | |
8999 | { | |
9000 | printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n", | |
9001 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
9002 | printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n", | |
8168de4c | 9003 | major, minor, micro); |
6f72b082 OK |
9004 | printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n"); |
9005 | printf("***\n"); | |
9006 | printf("*** If you have already installed a sufficiently new version, this error\n"); | |
9007 | printf("*** probably means that the wrong copy of the gtk-config-2.0 shell script is\n"); | |
9008 | printf("*** being found. The easiest way to fix this is to remove the old version\n"); | |
9009 | printf("*** of GTK+, but you can also set the GTK_CONFIG_2_0 environment to point to the\n"); | |
9010 | printf("*** correct copy of gtk-config-2.0. (In this case, you will have to\n"); | |
9011 | printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n"); | |
9012 | printf("*** so that the correct libraries are found at run-time))\n"); | |
9013 | } | |
9014 | } | |
9015 | return 1; | |
9016 | } | |
9017 | ||
698dcdb6 | 9018 | EOF |
3f0f0161 | 9019 | if { (eval echo configure:9020: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
698dcdb6 | 9020 | then |
6f72b082 OK |
9021 | : |
9022 | else | |
698dcdb6 VZ |
9023 | echo "configure: failed program was:" >&5 |
9024 | cat conftest.$ac_ext >&5 | |
9025 | rm -fr conftest* | |
9026 | no_gtk=yes | |
6f72b082 | 9027 | fi |
698dcdb6 | 9028 | rm -fr conftest* |
6f72b082 | 9029 | fi |
698dcdb6 | 9030 | |
6f72b082 OK |
9031 | CFLAGS="$ac_save_CFLAGS" |
9032 | LIBS="$ac_save_LIBS" | |
9033 | fi | |
9034 | fi | |
9035 | if test "x$no_gtk" = x ; then | |
698dcdb6 | 9036 | echo "$ac_t""yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" 1>&6 |
8168de4c | 9037 | wx_cv_lib_gtk=2.0 |
6f72b082 | 9038 | else |
698dcdb6 | 9039 | echo "$ac_t""no" 1>&6 |
6f72b082 OK |
9040 | if test "$GTK_CONFIG_2_0" = "no" ; then |
9041 | echo "*** The gtk-config-2.0 script installed by GTK could not be found" | |
9042 | echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in" | |
9043 | echo "*** your path, or set the GTK_CONFIG_2_0 environment variable to the" | |
9044 | echo "*** full path to gtk-config-2.0." | |
9045 | else | |
9046 | if test -f conf.gtktest ; then | |
9047 | : | |
9048 | else | |
9049 | echo "*** Could not run GTK test program, checking why..." | |
9050 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
9051 | LIBS="$LIBS $GTK_LIBS" | |
698dcdb6 | 9052 | cat > conftest.$ac_ext <<EOF |
3f0f0161 | 9053 | #line 9054 "configure" |
6f72b082 OK |
9054 | #include "confdefs.h" |
9055 | ||
9056 | #include <gtk/gtk.h> | |
9057 | #include <stdio.h> | |
9058 | ||
698dcdb6 VZ |
9059 | int main() { |
9060 | return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version)); | |
9061 | ; return 0; } | |
9062 | EOF | |
3f0f0161 | 9063 | if { (eval echo configure:9064: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 | 9064 | rm -rf conftest* |
6f72b082 OK |
9065 | echo "*** The test program compiled, but did not run. This usually means" |
9066 | echo "*** that the run-time linker is not finding GTK or finding the wrong" | |
9067 | echo "*** version of GTK. If it is not finding GTK, you'll need to set your" | |
9068 | echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" | |
9069 | echo "*** to the installed location Also, make sure you have run ldconfig if that" | |
9070 | echo "*** is required on your system" | |
8168de4c | 9071 | echo "***" |
6f72b082 OK |
9072 | echo "*** If you have an old version installed, it is best to remove it, although" |
9073 | echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" | |
9074 | echo "***" | |
9075 | echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that" | |
9076 | echo "*** came with the system with the command" | |
9077 | echo "***" | |
698dcdb6 | 9078 | echo "*** rpm --erase --nodeps gtk gtk-devel" |
6f72b082 | 9079 | else |
698dcdb6 VZ |
9080 | echo "configure: failed program was:" >&5 |
9081 | cat conftest.$ac_ext >&5 | |
9082 | rm -rf conftest* | |
9083 | echo "*** The test program failed to compile or link. See the file config.log for the" | |
6f72b082 OK |
9084 | echo "*** exact error that occured. This usually means GTK was incorrectly installed" |
9085 | echo "*** or that you have moved GTK since it was installed. In the latter case, you" | |
698dcdb6 | 9086 | echo "*** may want to edit the gtk-config-2.0 script: $GTK_CONFIG_2_0" |
6f72b082 | 9087 | fi |
698dcdb6 | 9088 | rm -f conftest* |
6f72b082 OK |
9089 | CFLAGS="$ac_save_CFLAGS" |
9090 | LIBS="$ac_save_LIBS" | |
9091 | fi | |
9092 | fi | |
9093 | GTK_CFLAGS="" | |
9094 | GTK_LIBS="" | |
8168de4c VZ |
9095 | gthread |
9096 | fi | |
9097 | ||
9098 | ||
9099 | rm -f conf.gtktest | |
9100 | ||
9101 | fi | |
9102 | ||
9103 | if test -z "$wx_cv_lib_gtk"; then | |
9104 | ||
10f2d63a VZ |
9105 | if test x$gtk_config_exec_prefix != x ; then |
9106 | gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix" | |
9107 | if test x${GTK_CONFIG+set} != xset ; then | |
9108 | GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config | |
9109 | fi | |
9110 | fi | |
9111 | if test x$gtk_config_prefix != x ; then | |
9112 | gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix" | |
9113 | if test x${GTK_CONFIG+set} != xset ; then | |
9114 | GTK_CONFIG=$gtk_config_prefix/bin/gtk-config | |
9115 | fi | |
9116 | fi | |
9117 | ||
9118 | # Extract the first word of "gtk-config", so it can be a program name with args. | |
9119 | set dummy gtk-config; ac_word=$2 | |
698dcdb6 | 9120 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
3f0f0161 | 9121 | echo "configure:9122: checking for $ac_word" >&5 |
698dcdb6 VZ |
9122 | if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then |
9123 | echo $ac_n "(cached) $ac_c" 1>&6 | |
f6bcfd97 | 9124 | else |
698dcdb6 VZ |
9125 | case "$GTK_CONFIG" in |
9126 | /*) | |
f6bcfd97 BP |
9127 | ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path. |
9128 | ;; | |
698dcdb6 VZ |
9129 | ?:/*) |
9130 | ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path. | |
9131 | ;; | |
f6bcfd97 | 9132 | *) |
698dcdb6 VZ |
9133 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
9134 | ac_dummy="$PATH" | |
9135 | for ac_dir in $ac_dummy; do | |
9136 | test -z "$ac_dir" && ac_dir=. | |
9137 | if test -f $ac_dir/$ac_word; then | |
9138 | ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word" | |
9139 | break | |
9140 | fi | |
9141 | done | |
9142 | IFS="$ac_save_ifs" | |
f6bcfd97 BP |
9143 | test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no" |
9144 | ;; | |
9145 | esac | |
9146 | fi | |
698dcdb6 | 9147 | GTK_CONFIG="$ac_cv_path_GTK_CONFIG" |
f6bcfd97 | 9148 | if test -n "$GTK_CONFIG"; then |
698dcdb6 | 9149 | echo "$ac_t""$GTK_CONFIG" 1>&6 |
f6bcfd97 | 9150 | else |
698dcdb6 | 9151 | echo "$ac_t""no" 1>&6 |
f6bcfd97 BP |
9152 | fi |
9153 | ||
9154 | min_gtk_version=1.2.7 | |
698dcdb6 | 9155 | echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6 |
3f0f0161 | 9156 | echo "configure:9157: checking for GTK - version >= $min_gtk_version" >&5 |
f6bcfd97 BP |
9157 | no_gtk="" |
9158 | if test "$GTK_CONFIG" != "no" ; then | |
9159 | GTK_CFLAGS=`$GTK_CONFIG --cflags` | |
9160 | GTK_LIBS=`$GTK_CONFIG --libs gthread` | |
9161 | ac_save_CFLAGS="$CFLAGS" | |
9162 | ac_save_LIBS="$LIBS" | |
9163 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
9164 | LIBS="$LIBS $GTK_LIBS" | |
9165 | if test "$cross_compiling" = yes; then | |
9166 | echo $ac_n "cross compiling; assumed OK... $ac_c" | |
9167 | else | |
698dcdb6 | 9168 | cat > conftest.$ac_ext <<EOF |
3f0f0161 | 9169 | #line 9170 "configure" |
f6bcfd97 BP |
9170 | #include "confdefs.h" |
9171 | ||
9172 | #include <gtk/gtk.h> | |
9173 | #include <gtk/gtkfeatures.h> | |
9174 | #include <stdio.h> | |
9175 | #include <stdlib.h> | |
9176 | ||
9177 | int | |
9178 | main () | |
9179 | { | |
9180 | int major, minor, micro; | |
9181 | ||
9182 | if (sscanf("$min_gtk_version", "%d.%d.%d", &major, &minor, µ) != 3) { | |
9183 | printf("%s, bad version string\n", "$min_gtk_version"); | |
9184 | exit(1); | |
9185 | } | |
9186 | ||
9187 | if ((GTK_MAJOR_VERSION != gtk_major_version) || | |
9188 | (GTK_MINOR_VERSION != gtk_minor_version) || | |
9189 | (GTK_MICRO_VERSION != gtk_micro_version)) { | |
9190 | printf("Headers vs. library version mismatch!\n"); | |
9191 | exit(1); | |
9192 | } | |
9193 | ||
9194 | if (gtk_minor_version == 1) return FALSE; | |
9195 | ||
9196 | return !((gtk_major_version > major) || | |
9197 | ((gtk_major_version == major) && (gtk_minor_version > minor)) || | |
9198 | ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro))); | |
9199 | } | |
9200 | ||
698dcdb6 | 9201 | EOF |
3f0f0161 | 9202 | if { (eval echo configure:9203: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
698dcdb6 | 9203 | then |
f6bcfd97 BP |
9204 | : |
9205 | else | |
698dcdb6 VZ |
9206 | echo "configure: failed program was:" >&5 |
9207 | cat conftest.$ac_ext >&5 | |
9208 | rm -fr conftest* | |
9209 | no_gtk=yes | |
f6bcfd97 | 9210 | fi |
698dcdb6 | 9211 | rm -fr conftest* |
f6bcfd97 | 9212 | fi |
698dcdb6 | 9213 | |
f6bcfd97 BP |
9214 | CFLAGS="$ac_save_CFLAGS" |
9215 | LIBS="$ac_save_LIBS" | |
9216 | else | |
9217 | no_gtk=yes | |
9218 | fi | |
9219 | if test "x$no_gtk" = x ; then | |
698dcdb6 | 9220 | echo "$ac_t""yes" 1>&6 |
8168de4c | 9221 | wx_cv_lib_gtk=1.2.7 |
f6bcfd97 | 9222 | else |
698dcdb6 | 9223 | echo "$ac_t""no" 1>&6 |
f6bcfd97 BP |
9224 | GTK_CFLAGS="" |
9225 | GTK_LIBS="" | |
9226 | : | |
9227 | fi | |
698dcdb6 VZ |
9228 | |
9229 | ||
f6bcfd97 | 9230 | |
8168de4c VZ |
9231 | fi |
9232 | ||
9233 | if test -z "$wx_cv_lib_gtk"; then | |
9234 | ||
f6bcfd97 BP |
9235 | if test x$gtk_config_exec_prefix != x ; then |
9236 | gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix" | |
9237 | if test x${GTK_CONFIG+set} != xset ; then | |
9238 | GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config | |
9239 | fi | |
9240 | fi | |
9241 | if test x$gtk_config_prefix != x ; then | |
9242 | gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix" | |
9243 | if test x${GTK_CONFIG+set} != xset ; then | |
9244 | GTK_CONFIG=$gtk_config_prefix/bin/gtk-config | |
9245 | fi | |
9246 | fi | |
9247 | ||
9248 | # Extract the first word of "gtk-config", so it can be a program name with args. | |
9249 | set dummy gtk-config; ac_word=$2 | |
698dcdb6 | 9250 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
3f0f0161 | 9251 | echo "configure:9252: checking for $ac_word" >&5 |
698dcdb6 VZ |
9252 | if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then |
9253 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 9254 | else |
698dcdb6 VZ |
9255 | case "$GTK_CONFIG" in |
9256 | /*) | |
10f2d63a VZ |
9257 | ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path. |
9258 | ;; | |
698dcdb6 VZ |
9259 | ?:/*) |
9260 | ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path. | |
9261 | ;; | |
10f2d63a | 9262 | *) |
698dcdb6 VZ |
9263 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
9264 | ac_dummy="$PATH" | |
9265 | for ac_dir in $ac_dummy; do | |
9266 | test -z "$ac_dir" && ac_dir=. | |
9267 | if test -f $ac_dir/$ac_word; then | |
9268 | ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word" | |
9269 | break | |
9270 | fi | |
9271 | done | |
9272 | IFS="$ac_save_ifs" | |
10f2d63a VZ |
9273 | test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no" |
9274 | ;; | |
9275 | esac | |
9276 | fi | |
698dcdb6 | 9277 | GTK_CONFIG="$ac_cv_path_GTK_CONFIG" |
10f2d63a | 9278 | if test -n "$GTK_CONFIG"; then |
698dcdb6 | 9279 | echo "$ac_t""$GTK_CONFIG" 1>&6 |
10f2d63a | 9280 | else |
698dcdb6 | 9281 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
9282 | fi |
9283 | ||
04165bec | 9284 | min_gtk_version=1.2.3 |
698dcdb6 | 9285 | echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6 |
3f0f0161 | 9286 | echo "configure:9287: checking for GTK - version >= $min_gtk_version" >&5 |
10f2d63a VZ |
9287 | no_gtk="" |
9288 | if test "$GTK_CONFIG" != "no" ; then | |
9289 | GTK_CFLAGS=`$GTK_CONFIG --cflags` | |
2224580a | 9290 | GTK_LIBS=`$GTK_CONFIG --libs gthread` |
10f2d63a VZ |
9291 | ac_save_CFLAGS="$CFLAGS" |
9292 | ac_save_LIBS="$LIBS" | |
9293 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
9294 | LIBS="$LIBS $GTK_LIBS" | |
9295 | if test "$cross_compiling" = yes; then | |
9296 | echo $ac_n "cross compiling; assumed OK... $ac_c" | |
9297 | else | |
698dcdb6 | 9298 | cat > conftest.$ac_ext <<EOF |
3f0f0161 | 9299 | #line 9300 "configure" |
10f2d63a VZ |
9300 | #include "confdefs.h" |
9301 | ||
9302 | #include <gtk/gtk.h> | |
f49f2b0c | 9303 | #include <gtk/gtkfeatures.h> |
10f2d63a | 9304 | #include <stdio.h> |
32832908 | 9305 | #include <stdlib.h> |
10f2d63a VZ |
9306 | |
9307 | int | |
9308 | main () | |
9309 | { | |
9310 | int major, minor, micro; | |
9311 | ||
9312 | if (sscanf("$min_gtk_version", "%d.%d.%d", &major, &minor, µ) != 3) { | |
9313 | printf("%s, bad version string\n", "$min_gtk_version"); | |
9314 | exit(1); | |
9315 | } | |
9316 | ||
f49f2b0c RR |
9317 | if ((GTK_MAJOR_VERSION != gtk_major_version) || |
9318 | (GTK_MINOR_VERSION != gtk_minor_version) || | |
9319 | (GTK_MICRO_VERSION != gtk_micro_version)) { | |
9320 | printf("Headers vs. library version mismatch!\n"); | |
9321 | exit(1); | |
9322 | } | |
9323 | ||
10f2d63a VZ |
9324 | if (gtk_minor_version == 1) return FALSE; |
9325 | ||
9326 | return !((gtk_major_version > major) || | |
9327 | ((gtk_major_version == major) && (gtk_minor_version > minor)) || | |
9328 | ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro))); | |
9329 | } | |
9330 | ||
698dcdb6 | 9331 | EOF |
3f0f0161 | 9332 | if { (eval echo configure:9333: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
698dcdb6 | 9333 | then |
10f2d63a VZ |
9334 | : |
9335 | else | |
698dcdb6 VZ |
9336 | echo "configure: failed program was:" >&5 |
9337 | cat conftest.$ac_ext >&5 | |
9338 | rm -fr conftest* | |
9339 | no_gtk=yes | |
10f2d63a | 9340 | fi |
698dcdb6 | 9341 | rm -fr conftest* |
10f2d63a | 9342 | fi |
698dcdb6 | 9343 | |
10f2d63a VZ |
9344 | CFLAGS="$ac_save_CFLAGS" |
9345 | LIBS="$ac_save_LIBS" | |
9346 | else | |
9347 | no_gtk=yes | |
9348 | fi | |
9349 | if test "x$no_gtk" = x ; then | |
698dcdb6 | 9350 | echo "$ac_t""yes" 1>&6 |
8168de4c | 9351 | wx_cv_lib_gtk=1.2.3 |
10f2d63a | 9352 | else |
698dcdb6 | 9353 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
9354 | GTK_CFLAGS="" |
9355 | GTK_LIBS="" | |
7e99ad86 | 9356 | : |
10f2d63a | 9357 | fi |
698dcdb6 VZ |
9358 | |
9359 | ||
10f2d63a | 9360 | |
8168de4c VZ |
9361 | fi |
9362 | ||
9363 | if test -z "$wx_cv_lib_gtk"; then | |
9364 | wx_cv_lib_gtk=none | |
138be253 VZ |
9365 | else |
9366 | wx_cv_cflags_gtk=$GTK_CFLAGS | |
9367 | wx_cv_libs_gtk=$GTK_LIBS | |
8168de4c VZ |
9368 | fi |
9369 | ||
1e6feb95 | 9370 | |
8168de4c | 9371 | fi |
703e0a69 | 9372 | |
698dcdb6 | 9373 | |
8168de4c VZ |
9374 | if test "$gtk_version_cached" = 1; then |
9375 | echo "$ac_t""$wx_cv_lib_gtk" 1>&6 | |
1e6feb95 | 9376 | fi |
698dcdb6 | 9377 | |
8168de4c VZ |
9378 | case "$wx_cv_lib_gtk" in |
9379 | 2.0) WXGTK20=1 | |
9380 | ;; | |
9381 | 1.2.7) WXGTK127=1 | |
d1a8d972 | 9382 | WXGTK12=1 |
8168de4c VZ |
9383 | ;; |
9384 | 1.2.3) WXGTK12=1 | |
9385 | ;; | |
9386 | *) { echo "configure: error: | |
9387 | Please check that gtk-config is in path, the directory | |
9388 | where GTK+ libraries are installed (returned by | |
9389 | 'gtk-config --libs' command) is in LD_LIBRARY_PATH or | |
9390 | equivalent variable and GTK+ is version 1.2.3 or above. | |
9391 | " 1>&2; exit 1; } | |
9392 | ;; | |
9393 | esac | |
2224580a | 9394 | |
138be253 | 9395 | TOOLKIT_INCLUDE="$wx_cv_cflags_gtk" |
11dfaa5f | 9396 | GUI_TK_LIBRARY="$wx_cv_libs_gtk" |
698dcdb6 | 9397 | |
1e6feb95 VZ |
9398 | AFMINSTALL=afminstall |
9399 | TOOLKIT=GTK | |
9400 | GUIDIST=GTK_DIST | |
7ec2881a | 9401 | |
1e6feb95 | 9402 | echo $ac_n "checking for gdk_im_open in -lgdk""... $ac_c" 1>&6 |
3f0f0161 | 9403 | echo "configure:9404: checking for gdk_im_open in -lgdk" >&5 |
698dcdb6 VZ |
9404 | ac_lib_var=`echo gdk'_'gdk_im_open | sed 'y%./+-%__p_%'` |
9405 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
9406 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7ec2881a | 9407 | else |
698dcdb6 | 9408 | ac_save_LIBS="$LIBS" |
7ec2881a | 9409 | LIBS="-lgdk $LIBS" |
698dcdb6 | 9410 | cat > conftest.$ac_ext <<EOF |
3f0f0161 | 9411 | #line 9412 "configure" |
7ec2881a RR |
9412 | #include "confdefs.h" |
9413 | /* Override any gcc2 internal prototype to avoid an error. */ | |
9414 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
9415 | builtin and then its argument prototype would still apply. */ |
9416 | char gdk_im_open(); | |
9417 | ||
9418 | int main() { | |
9419 | gdk_im_open() | |
9420 | ; return 0; } | |
9421 | EOF | |
3f0f0161 | 9422 | if { (eval echo configure:9423: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
9423 | rm -rf conftest* |
9424 | eval "ac_cv_lib_$ac_lib_var=yes" | |
9425 | else | |
9426 | echo "configure: failed program was:" >&5 | |
9427 | cat conftest.$ac_ext >&5 | |
9428 | rm -rf conftest* | |
9429 | eval "ac_cv_lib_$ac_lib_var=no" | |
9430 | fi | |
9431 | rm -f conftest* | |
9432 | LIBS="$ac_save_LIBS" | |
9433 | ||
9434 | fi | |
9435 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
9436 | echo "$ac_t""yes" 1>&6 | |
9437 | cat >> confdefs.h <<\EOF | |
7ec2881a RR |
9438 | #define HAVE_XIM 1 |
9439 | EOF | |
9440 | ||
698dcdb6 VZ |
9441 | else |
9442 | echo "$ac_t""no" 1>&6 | |
7ec2881a RR |
9443 | fi |
9444 | ||
1e6feb95 | 9445 | fi |
10f2d63a | 9446 | |
1e6feb95 VZ |
9447 | if test "$wxUSE_MGL" = 1; then |
9448 | ||
9449 | echo $ac_n "checking for SciTech MGL library""... $ac_c" 1>&6 | |
3f0f0161 | 9450 | echo "configure:9451: checking for SciTech MGL library" >&5 |
1e6feb95 VZ |
9451 | if test "x$MGL_ROOT" = x ; then |
9452 | echo "$ac_t""not found" 1>&6 | |
9453 | { echo "configure: error: Cannot find MGL library. Make sure MGL_ROOT is set." 1>&2; exit 1; } | |
9454 | else | |
9455 | echo "$ac_t""$MGL_ROOT" 1>&6 | |
9456 | fi | |
9457 | ||
9458 | MGL_OS=linux/gcc/glibc | |
9459 | MGL_LIB_TYPE="" | |
9460 | ||
9461 | if test "$wxUSE_DEBUG_FLAG" = yes ; then | |
9462 | if test -f $MGL_ROOT/lib/debug/$MGL_OS/libmgl.a ; then | |
9463 | MGL_LIB_TYPE=debug | |
9464 | fi | |
9465 | fi | |
9466 | if test "x$MGL_LIB_TYPE" = x ; then | |
9467 | if test -f $MGL_ROOT/lib/release/$MGL_OS/libmgl.a ; then | |
9468 | MGL_LIB_TYPE=release | |
9469 | else | |
9470 | { echo "configure: error: Cannot find MGL libraries, make sure they are compiled." 1>&2; exit 1; } | |
9471 | fi | |
9472 | fi | |
9473 | ||
9474 | TOOLKIT_INCLUDE="-I$MGL_ROOT/include" | |
9475 | GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$MGL_LIB_TYPE/$MGL_OS -lmgl -lmglcpp -lpm" | |
9476 | ||
9477 | AFMINSTALL=afminstall | |
9478 | TOOLKIT=MGL | |
9479 | GUIDIST=MGL_DIST | |
9480 | fi | |
9481 | ||
9482 | if test "$wxUSE_WINE" = 1; then | |
9483 | echo $ac_n "checking for WINE includes""... $ac_c" 1>&6 | |
3f0f0161 | 9484 | echo "configure:9485: checking for WINE includes" >&5 |
1e6feb95 | 9485 | |
10f2d63a VZ |
9486 | ac_find_includes= |
9487 | for ac_dir in $SEARCH_INCLUDE; | |
9488 | do | |
9489 | if test -f "$ac_dir/windows.h"; then | |
9490 | ac_find_includes=$ac_dir | |
9491 | break | |
9492 | fi | |
9493 | done | |
9494 | ||
1e6feb95 VZ |
9495 | if test "$ac_find_includes" != "" ; then |
9496 | echo "$ac_t""found $ac_find_includes" 1>&6 | |
9497 | TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE -I$ac_find_includes" | |
9498 | else | |
9499 | echo "$ac_t""no" 1>&6 | |
9500 | { echo "configure: error: please set CFLAGS to contain the location of windows.h" 1>&2; exit 1; } | |
9501 | fi | |
10f2d63a | 9502 | |
1e6feb95 VZ |
9503 | XPM_LINK="" |
9504 | echo $ac_n "checking for Xpm library""... $ac_c" 1>&6 | |
3f0f0161 | 9505 | echo "configure:9506: checking for Xpm library" >&5 |
1e6feb95 | 9506 | |
10f2d63a VZ |
9507 | ac_find_libraries= |
9508 | for ac_dir in $SEARCH_LIB; | |
9509 | do | |
f11bdd03 | 9510 | for ac_extension in a so sl dylib; do |
10f2d63a VZ |
9511 | if test -f "$ac_dir/libXpm.$ac_extension"; then |
9512 | ac_find_libraries=$ac_dir | |
9513 | break 2 | |
9514 | fi | |
9515 | done | |
9516 | done | |
9517 | ||
1e6feb95 VZ |
9518 | if test "$ac_find_libraries" != "" ; then |
9519 | GUI_TK_LIBRARY="-L$ac_find_libraries" | |
9520 | XPM_LINK="-lXpm" | |
9521 | cat >> confdefs.h <<\EOF | |
10f2d63a VZ |
9522 | #define wxHAVE_LIB_XPM 1 |
9523 | EOF | |
9524 | ||
1e6feb95 VZ |
9525 | echo "$ac_t""found at $ac_find_libraries" 1>&6 |
9526 | else | |
9527 | echo "$ac_t""no" 1>&6 | |
9528 | echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2 | |
9529 | fi | |
10f2d63a | 9530 | |
1e6feb95 VZ |
9531 | MESA_LINK="" |
9532 | echo $ac_n "checking for Mesa library""... $ac_c" 1>&6 | |
3f0f0161 | 9533 | echo "configure:9534: checking for Mesa library" >&5 |
1e6feb95 | 9534 | |
10f2d63a VZ |
9535 | ac_find_libraries= |
9536 | for ac_dir in $SEARCH_LIB; | |
9537 | do | |
f11bdd03 | 9538 | for ac_extension in a so sl dylib; do |
10f2d63a VZ |
9539 | if test -f "$ac_dir/libMesaGL.$ac_extension"; then |
9540 | ac_find_libraries=$ac_dir | |
9541 | break 2 | |
9542 | fi | |
9543 | done | |
9544 | done | |
9545 | ||
1e6feb95 VZ |
9546 | if test "$ac_find_libraries" != "" ; then |
9547 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -L$ac_find_libraries" | |
9548 | MESA_LINK="-lMesaGL" | |
9549 | echo "$ac_t""found at $ac_find_libraries" 1>&6 | |
9550 | else | |
9551 | { echo "configure: error: no" 1>&2; exit 1; } | |
9552 | fi | |
10f2d63a | 9553 | |
1e6feb95 VZ |
9554 | GUI_TK_LINK="-lwine $MESA_LINK $XPM_LINK -lXxf86dga -lXxf86vm -lSM -lICE -lXext -lXmu -lX11 -lncurses" |
9555 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY $GUI_TK_LINK" | |
9556 | WXWINE=1 | |
9557 | TOOLKIT=MSW | |
9558 | GUIDIST=MSW_DIST | |
9559 | fi | |
698dcdb6 | 9560 | |
1e6feb95 VZ |
9561 | |
9562 | # If we find X, set shell vars x_includes and x_libraries to the | |
698dcdb6 VZ |
9563 | # paths, otherwise set no_x=yes. |
9564 | # Uses ac_ vars as temps to allow command line to override cache and checks. | |
9565 | # --without-x overrides everything else, but does not touch the cache. | |
9566 | echo $ac_n "checking for X""... $ac_c" 1>&6 | |
3f0f0161 | 9567 | echo "configure:9568: checking for X" >&5 |
ab9b9eab VZ |
9568 | |
9569 | # Check whether --with-x or --without-x was given. | |
9570 | if test "${with_x+set}" = set; then | |
9571 | withval="$with_x" | |
698dcdb6 VZ |
9572 | : |
9573 | fi | |
ba337fe7 | 9574 | |
ab9b9eab VZ |
9575 | # $have_x is `yes', `no', `disabled', or empty when we do not yet know. |
9576 | if test "x$with_x" = xno; then | |
9577 | # The user explicitly disabled X. | |
9578 | have_x=disabled | |
9579 | else | |
9580 | if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then | |
9581 | # Both variables are already set. | |
9582 | have_x=yes | |
9583 | else | |
698dcdb6 VZ |
9584 | if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then |
9585 | echo $ac_n "(cached) $ac_c" 1>&6 | |
ab9b9eab VZ |
9586 | else |
9587 | # One or both of the vars are not set, and there is no cached value. | |
698dcdb6 VZ |
9588 | ac_x_includes=NO ac_x_libraries=NO |
9589 | rm -fr conftestdir | |
9590 | if mkdir conftestdir; then | |
9591 | cd conftestdir | |
ab9b9eab | 9592 | # Make sure to not put "make" in the Imakefile rules, since we grep it out. |
698dcdb6 | 9593 | cat > Imakefile <<'EOF' |
ab9b9eab VZ |
9594 | acfindx: |
9595 | @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"' | |
9596 | EOF | |
9597 | if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then | |
9598 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
9599 | eval `${MAKE-make} acfindx 2>/dev/null | grep -v make` | |
9600 | # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. | |
10f2d63a | 9601 | for ac_extension in a so sl; do |
ab9b9eab | 9602 | if test ! -f $ac_im_usrlibdir/libX11.$ac_extension && |
698dcdb6 | 9603 | test -f $ac_im_libdir/libX11.$ac_extension; then |
ab9b9eab | 9604 | ac_im_usrlibdir=$ac_im_libdir; break |
10f2d63a VZ |
9605 | fi |
9606 | done | |
ab9b9eab VZ |
9607 | # Screen out bogus values from the imake configuration. They are |
9608 | # bogus both because they are the default anyway, and because | |
9609 | # using them would break gcc on systems where it needs fixed includes. | |
698dcdb6 | 9610 | case "$ac_im_incroot" in |
ab9b9eab | 9611 | /usr/include) ;; |
698dcdb6 | 9612 | *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;; |
ab9b9eab | 9613 | esac |
698dcdb6 | 9614 | case "$ac_im_usrlibdir" in |
ab9b9eab | 9615 | /usr/lib | /lib) ;; |
698dcdb6 | 9616 | *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;; |
ab9b9eab | 9617 | esac |
ba337fe7 | 9618 | fi |
ab9b9eab | 9619 | cd .. |
698dcdb6 | 9620 | rm -fr conftestdir |
ab9b9eab | 9621 | fi |
10f2d63a | 9622 | |
698dcdb6 VZ |
9623 | if test "$ac_x_includes" = NO; then |
9624 | # Guess where to find include files, by looking for this one X11 .h file. | |
9625 | test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h | |
9626 | ||
ab9b9eab | 9627 | # First, try using that file with no special directory specified. |
698dcdb6 | 9628 | cat > conftest.$ac_ext <<EOF |
3f0f0161 | 9629 | #line 9630 "configure" |
ab9b9eab | 9630 | #include "confdefs.h" |
698dcdb6 VZ |
9631 | #include <$x_direct_test_include> |
9632 | EOF | |
9633 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
3f0f0161 | 9634 | { (eval echo configure:9635: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
9635 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
9636 | if test -z "$ac_err"; then | |
9637 | rm -rf conftest* | |
ab9b9eab VZ |
9638 | # We can compile using X headers with no special include directory. |
9639 | ac_x_includes= | |
9640 | else | |
698dcdb6 VZ |
9641 | echo "$ac_err" >&5 |
9642 | echo "configure: failed program was:" >&5 | |
ab9b9eab | 9643 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
9644 | rm -rf conftest* |
9645 | # Look for the header file in a standard set of common directories. | |
9646 | # Check X11 before X11Rn because it is often a symlink to the current release. | |
9647 | for ac_dir in \ | |
9648 | /usr/X11/include \ | |
9649 | /usr/X11R6/include \ | |
9650 | /usr/X11R5/include \ | |
9651 | /usr/X11R4/include \ | |
9652 | \ | |
9653 | /usr/include/X11 \ | |
9654 | /usr/include/X11R6 \ | |
9655 | /usr/include/X11R5 \ | |
9656 | /usr/include/X11R4 \ | |
9657 | \ | |
9658 | /usr/local/X11/include \ | |
9659 | /usr/local/X11R6/include \ | |
9660 | /usr/local/X11R5/include \ | |
9661 | /usr/local/X11R4/include \ | |
9662 | \ | |
9663 | /usr/local/include/X11 \ | |
9664 | /usr/local/include/X11R6 \ | |
9665 | /usr/local/include/X11R5 \ | |
9666 | /usr/local/include/X11R4 \ | |
9667 | \ | |
9668 | /usr/X386/include \ | |
9669 | /usr/x386/include \ | |
9670 | /usr/XFree86/include/X11 \ | |
9671 | \ | |
9672 | /usr/include \ | |
9673 | /usr/local/include \ | |
9674 | /usr/unsupported/include \ | |
9675 | /usr/athena/include \ | |
9676 | /usr/local/x11r5/include \ | |
9677 | /usr/lpp/Xamples/include \ | |
9678 | \ | |
9679 | /usr/openwin/include \ | |
9680 | /usr/openwin/share/include \ | |
9681 | ; \ | |
9682 | do | |
9683 | if test -r "$ac_dir/$x_direct_test_include"; then | |
9684 | ac_x_includes=$ac_dir | |
9685 | break | |
9686 | fi | |
9687 | done | |
ab9b9eab | 9688 | fi |
698dcdb6 VZ |
9689 | rm -f conftest* |
9690 | fi # $ac_x_includes = NO | |
10f2d63a | 9691 | |
698dcdb6 | 9692 | if test "$ac_x_libraries" = NO; then |
ab9b9eab | 9693 | # Check for the libraries. |
698dcdb6 VZ |
9694 | |
9695 | test -z "$x_direct_test_library" && x_direct_test_library=Xt | |
9696 | test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc | |
9697 | ||
ab9b9eab VZ |
9698 | # See if we find them without any special options. |
9699 | # Don't add to $LIBS permanently. | |
698dcdb6 VZ |
9700 | ac_save_LIBS="$LIBS" |
9701 | LIBS="-l$x_direct_test_library $LIBS" | |
9702 | cat > conftest.$ac_ext <<EOF | |
3f0f0161 | 9703 | #line 9704 "configure" |
ab9b9eab | 9704 | #include "confdefs.h" |
698dcdb6 VZ |
9705 | |
9706 | int main() { | |
9707 | ${x_direct_test_function}() | |
9708 | ; return 0; } | |
9709 | EOF | |
3f0f0161 | 9710 | if { (eval echo configure:9711: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
9711 | rm -rf conftest* |
9712 | LIBS="$ac_save_LIBS" | |
ab9b9eab VZ |
9713 | # We can link X programs with no special library path. |
9714 | ac_x_libraries= | |
9715 | else | |
698dcdb6 VZ |
9716 | echo "configure: failed program was:" >&5 |
9717 | cat conftest.$ac_ext >&5 | |
9718 | rm -rf conftest* | |
9719 | LIBS="$ac_save_LIBS" | |
9720 | # First see if replacing the include by lib works. | |
9721 | # Check X11 before X11Rn because it is often a symlink to the current release. | |
9722 | for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \ | |
9723 | /usr/X11/lib \ | |
9724 | /usr/X11R6/lib \ | |
9725 | /usr/X11R5/lib \ | |
9726 | /usr/X11R4/lib \ | |
9727 | \ | |
9728 | /usr/lib/X11 \ | |
9729 | /usr/lib/X11R6 \ | |
9730 | /usr/lib/X11R5 \ | |
9731 | /usr/lib/X11R4 \ | |
9732 | \ | |
9733 | /usr/local/X11/lib \ | |
9734 | /usr/local/X11R6/lib \ | |
9735 | /usr/local/X11R5/lib \ | |
9736 | /usr/local/X11R4/lib \ | |
9737 | \ | |
9738 | /usr/local/lib/X11 \ | |
9739 | /usr/local/lib/X11R6 \ | |
9740 | /usr/local/lib/X11R5 \ | |
9741 | /usr/local/lib/X11R4 \ | |
9742 | \ | |
9743 | /usr/X386/lib \ | |
9744 | /usr/x386/lib \ | |
9745 | /usr/XFree86/lib/X11 \ | |
9746 | \ | |
9747 | /usr/lib \ | |
9748 | /usr/local/lib \ | |
9749 | /usr/unsupported/lib \ | |
9750 | /usr/athena/lib \ | |
9751 | /usr/local/x11r5/lib \ | |
9752 | /usr/lpp/Xamples/lib \ | |
9753 | /lib/usr/lib/X11 \ | |
9754 | \ | |
9755 | /usr/openwin/lib \ | |
9756 | /usr/openwin/share/lib \ | |
9757 | ; \ | |
ab9b9eab VZ |
9758 | do |
9759 | for ac_extension in a so sl; do | |
698dcdb6 | 9760 | if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then |
ab9b9eab VZ |
9761 | ac_x_libraries=$ac_dir |
9762 | break 2 | |
10f2d63a | 9763 | fi |
10f2d63a | 9764 | done |
ab9b9eab VZ |
9765 | done |
9766 | fi | |
698dcdb6 VZ |
9767 | rm -f conftest* |
9768 | fi # $ac_x_libraries = NO | |
10f2d63a | 9769 | |
698dcdb6 | 9770 | if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then |
ab9b9eab VZ |
9771 | # Didn't find X anywhere. Cache the known absence of X. |
9772 | ac_cv_have_x="have_x=no" | |
9773 | else | |
9774 | # Record where we found X for the cache. | |
9775 | ac_cv_have_x="have_x=yes \ | |
9776 | ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries" | |
9777 | fi | |
9778 | fi | |
10f2d63a | 9779 | fi |
ab9b9eab VZ |
9780 | eval "$ac_cv_have_x" |
9781 | fi # $with_x != no | |
10f2d63a | 9782 | |
ab9b9eab | 9783 | if test "$have_x" != yes; then |
698dcdb6 | 9784 | echo "$ac_t""$have_x" 1>&6 |
ab9b9eab VZ |
9785 | no_x=yes |
9786 | else | |
9787 | # If each of the values was on the command line, it overrides each guess. | |
9788 | test "x$x_includes" = xNONE && x_includes=$ac_x_includes | |
9789 | test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries | |
9790 | # Update the cache value to reflect the command line values. | |
9791 | ac_cv_have_x="have_x=yes \ | |
9792 | ac_x_includes=$x_includes ac_x_libraries=$x_libraries" | |
698dcdb6 | 9793 | echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6 |
ab9b9eab | 9794 | fi |
10f2d63a | 9795 | |
ab9b9eab VZ |
9796 | if test "$no_x" = yes; then |
9797 | # Not all programs may use this symbol, but it does not hurt to define it. | |
698dcdb6 | 9798 | cat >> confdefs.h <<\EOF |
ab9b9eab VZ |
9799 | #define X_DISPLAY_MISSING 1 |
9800 | EOF | |
10f2d63a | 9801 | |
ab9b9eab VZ |
9802 | X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= |
9803 | else | |
9804 | if test -n "$x_includes"; then | |
9805 | X_CFLAGS="$X_CFLAGS -I$x_includes" | |
10f2d63a VZ |
9806 | fi |
9807 | ||
ab9b9eab VZ |
9808 | # It would also be nice to do this for all -L options, not just this one. |
9809 | if test -n "$x_libraries"; then | |
9810 | X_LIBS="$X_LIBS -L$x_libraries" | |
9811 | # For Solaris; some versions of Sun CC require a space after -R and | |
9812 | # others require no space. Words are not sufficient . . . . | |
698dcdb6 | 9813 | case "`(uname -sr) 2>/dev/null`" in |
ab9b9eab | 9814 | "SunOS 5"*) |
698dcdb6 | 9815 | echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6 |
3f0f0161 | 9816 | echo "configure:9817: checking whether -R must be followed by a space" >&5 |
698dcdb6 VZ |
9817 | ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries" |
9818 | cat > conftest.$ac_ext <<EOF | |
3f0f0161 | 9819 | #line 9820 "configure" |
ab9b9eab | 9820 | #include "confdefs.h" |
10f2d63a | 9821 | |
698dcdb6 | 9822 | int main() { |
788deba1 | 9823 | |
698dcdb6 VZ |
9824 | ; return 0; } |
9825 | EOF | |
3f0f0161 | 9826 | if { (eval echo configure:9827: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 | 9827 | rm -rf conftest* |
ab9b9eab VZ |
9828 | ac_R_nospace=yes |
9829 | else | |
698dcdb6 VZ |
9830 | echo "configure: failed program was:" >&5 |
9831 | cat conftest.$ac_ext >&5 | |
9832 | rm -rf conftest* | |
9833 | ac_R_nospace=no | |
ab9b9eab | 9834 | fi |
698dcdb6 | 9835 | rm -f conftest* |
ab9b9eab | 9836 | if test $ac_R_nospace = yes; then |
698dcdb6 | 9837 | echo "$ac_t""no" 1>&6 |
ab9b9eab VZ |
9838 | X_LIBS="$X_LIBS -R$x_libraries" |
9839 | else | |
9840 | LIBS="$ac_xsave_LIBS -R $x_libraries" | |
698dcdb6 | 9841 | cat > conftest.$ac_ext <<EOF |
3f0f0161 | 9842 | #line 9843 "configure" |
ab9b9eab | 9843 | #include "confdefs.h" |
788deba1 | 9844 | |
698dcdb6 | 9845 | int main() { |
ab9b9eab | 9846 | |
698dcdb6 VZ |
9847 | ; return 0; } |
9848 | EOF | |
3f0f0161 | 9849 | if { (eval echo configure:9850: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 | 9850 | rm -rf conftest* |
ab9b9eab VZ |
9851 | ac_R_space=yes |
9852 | else | |
698dcdb6 VZ |
9853 | echo "configure: failed program was:" >&5 |
9854 | cat conftest.$ac_ext >&5 | |
9855 | rm -rf conftest* | |
9856 | ac_R_space=no | |
ab9b9eab | 9857 | fi |
698dcdb6 | 9858 | rm -f conftest* |
ab9b9eab | 9859 | if test $ac_R_space = yes; then |
698dcdb6 | 9860 | echo "$ac_t""yes" 1>&6 |
ab9b9eab VZ |
9861 | X_LIBS="$X_LIBS -R $x_libraries" |
9862 | else | |
698dcdb6 | 9863 | echo "$ac_t""neither works" 1>&6 |
ab9b9eab VZ |
9864 | fi |
9865 | fi | |
698dcdb6 | 9866 | LIBS="$ac_xsave_LIBS" |
ab9b9eab VZ |
9867 | esac |
9868 | fi | |
9869 | ||
9870 | # Check for system-dependent libraries X programs must link with. | |
9871 | # Do this before checking for the system-independent R6 libraries | |
9872 | # (-lICE), since we may need -lsocket or whatever for X linking. | |
9873 | ||
9874 | if test "$ISC" = yes; then | |
9875 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" | |
9876 | else | |
698dcdb6 VZ |
9877 | # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X |
9878 | # libraries were built with DECnet support. And karl@cs.umb.edu says | |
ab9b9eab | 9879 | # the Alpha needs dnet_stub (dnet does not exist). |
698dcdb6 | 9880 | echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6 |
3f0f0161 | 9881 | echo "configure:9882: checking for dnet_ntoa in -ldnet" >&5 |
698dcdb6 VZ |
9882 | ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'` |
9883 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
9884 | echo $ac_n "(cached) $ac_c" 1>&6 | |
ab9b9eab | 9885 | else |
698dcdb6 | 9886 | ac_save_LIBS="$LIBS" |
ab9b9eab | 9887 | LIBS="-ldnet $LIBS" |
698dcdb6 | 9888 | cat > conftest.$ac_ext <<EOF |
3f0f0161 | 9889 | #line 9890 "configure" |
ab9b9eab VZ |
9890 | #include "confdefs.h" |
9891 | /* Override any gcc2 internal prototype to avoid an error. */ | |
9892 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
9893 | builtin and then its argument prototype would still apply. */ |
9894 | char dnet_ntoa(); | |
9895 | ||
9896 | int main() { | |
9897 | dnet_ntoa() | |
9898 | ; return 0; } | |
9899 | EOF | |
3f0f0161 | 9900 | if { (eval echo configure:9901: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
9901 | rm -rf conftest* |
9902 | eval "ac_cv_lib_$ac_lib_var=yes" | |
9903 | else | |
9904 | echo "configure: failed program was:" >&5 | |
9905 | cat conftest.$ac_ext >&5 | |
9906 | rm -rf conftest* | |
9907 | eval "ac_cv_lib_$ac_lib_var=no" | |
9908 | fi | |
9909 | rm -f conftest* | |
9910 | LIBS="$ac_save_LIBS" | |
9911 | ||
9912 | fi | |
9913 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
9914 | echo "$ac_t""yes" 1>&6 | |
ab9b9eab | 9915 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" |
698dcdb6 VZ |
9916 | else |
9917 | echo "$ac_t""no" 1>&6 | |
ab9b9eab VZ |
9918 | fi |
9919 | ||
9920 | if test $ac_cv_lib_dnet_dnet_ntoa = no; then | |
698dcdb6 | 9921 | echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6 |
3f0f0161 | 9922 | echo "configure:9923: checking for dnet_ntoa in -ldnet_stub" >&5 |
698dcdb6 VZ |
9923 | ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'` |
9924 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
9925 | echo $ac_n "(cached) $ac_c" 1>&6 | |
ab9b9eab | 9926 | else |
698dcdb6 | 9927 | ac_save_LIBS="$LIBS" |
ab9b9eab | 9928 | LIBS="-ldnet_stub $LIBS" |
698dcdb6 | 9929 | cat > conftest.$ac_ext <<EOF |
3f0f0161 | 9930 | #line 9931 "configure" |
ab9b9eab VZ |
9931 | #include "confdefs.h" |
9932 | /* Override any gcc2 internal prototype to avoid an error. */ | |
9933 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
9934 | builtin and then its argument prototype would still apply. */ |
9935 | char dnet_ntoa(); | |
9936 | ||
9937 | int main() { | |
9938 | dnet_ntoa() | |
9939 | ; return 0; } | |
9940 | EOF | |
3f0f0161 | 9941 | if { (eval echo configure:9942: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
9942 | rm -rf conftest* |
9943 | eval "ac_cv_lib_$ac_lib_var=yes" | |
9944 | else | |
9945 | echo "configure: failed program was:" >&5 | |
9946 | cat conftest.$ac_ext >&5 | |
9947 | rm -rf conftest* | |
9948 | eval "ac_cv_lib_$ac_lib_var=no" | |
9949 | fi | |
9950 | rm -f conftest* | |
9951 | LIBS="$ac_save_LIBS" | |
9952 | ||
9953 | fi | |
9954 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
9955 | echo "$ac_t""yes" 1>&6 | |
ab9b9eab | 9956 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" |
698dcdb6 VZ |
9957 | else |
9958 | echo "$ac_t""no" 1>&6 | |
ab9b9eab VZ |
9959 | fi |
9960 | ||
9961 | fi | |
9962 | ||
9963 | # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT, | |
9964 | # to get the SysV transport functions. | |
698dcdb6 | 9965 | # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4) |
ab9b9eab VZ |
9966 | # needs -lnsl. |
9967 | # The nsl library prevents programs from opening the X display | |
698dcdb6 VZ |
9968 | # on Irix 5.2, according to dickey@clark.net. |
9969 | echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6 | |
3f0f0161 | 9970 | echo "configure:9971: checking for gethostbyname" >&5 |
698dcdb6 VZ |
9971 | if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then |
9972 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9973 | else | |
9974 | cat > conftest.$ac_ext <<EOF | |
3f0f0161 | 9975 | #line 9976 "configure" |
ab9b9eab VZ |
9976 | #include "confdefs.h" |
9977 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 9978 | which can conflict with char gethostbyname(); below. */ |
ab9b9eab VZ |
9979 | #include <assert.h> |
9980 | /* Override any gcc2 internal prototype to avoid an error. */ | |
9981 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
9982 | builtin and then its argument prototype would still apply. */ |
9983 | char gethostbyname(); | |
9984 | ||
9985 | int main() { | |
ab9b9eab VZ |
9986 | |
9987 | /* The GNU C library defines this for functions which it implements | |
9988 | to always fail with ENOSYS. Some functions are actually named | |
9989 | something starting with __ and the normal name is an alias. */ | |
9990 | #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname) | |
9991 | choke me | |
9992 | #else | |
698dcdb6 | 9993 | gethostbyname(); |
ab9b9eab VZ |
9994 | #endif |
9995 | ||
698dcdb6 VZ |
9996 | ; return 0; } |
9997 | EOF | |
3f0f0161 | 9998 | if { (eval echo configure:9999: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
9999 | rm -rf conftest* |
10000 | eval "ac_cv_func_gethostbyname=yes" | |
10001 | else | |
10002 | echo "configure: failed program was:" >&5 | |
10003 | cat conftest.$ac_ext >&5 | |
10004 | rm -rf conftest* | |
10005 | eval "ac_cv_func_gethostbyname=no" | |
10006 | fi | |
10007 | rm -f conftest* | |
10008 | fi | |
10009 | ||
10010 | if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then | |
10011 | echo "$ac_t""yes" 1>&6 | |
10012 | : | |
10013 | else | |
10014 | echo "$ac_t""no" 1>&6 | |
10015 | fi | |
ab9b9eab VZ |
10016 | |
10017 | if test $ac_cv_func_gethostbyname = no; then | |
698dcdb6 | 10018 | echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6 |
3f0f0161 | 10019 | echo "configure:10020: checking for gethostbyname in -lnsl" >&5 |
698dcdb6 VZ |
10020 | ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'` |
10021 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
10022 | echo $ac_n "(cached) $ac_c" 1>&6 | |
ab9b9eab | 10023 | else |
698dcdb6 | 10024 | ac_save_LIBS="$LIBS" |
ab9b9eab | 10025 | LIBS="-lnsl $LIBS" |
698dcdb6 | 10026 | cat > conftest.$ac_ext <<EOF |
3f0f0161 | 10027 | #line 10028 "configure" |
ab9b9eab VZ |
10028 | #include "confdefs.h" |
10029 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10030 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
10031 | builtin and then its argument prototype would still apply. */ |
10032 | char gethostbyname(); | |
6232543b | 10033 | |
698dcdb6 VZ |
10034 | int main() { |
10035 | gethostbyname() | |
10036 | ; return 0; } | |
10037 | EOF | |
3f0f0161 | 10038 | if { (eval echo configure:10039: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
10039 | rm -rf conftest* |
10040 | eval "ac_cv_lib_$ac_lib_var=yes" | |
703e0a69 | 10041 | else |
698dcdb6 VZ |
10042 | echo "configure: failed program was:" >&5 |
10043 | cat conftest.$ac_ext >&5 | |
10044 | rm -rf conftest* | |
10045 | eval "ac_cv_lib_$ac_lib_var=no" | |
10046 | fi | |
10047 | rm -f conftest* | |
10048 | LIBS="$ac_save_LIBS" | |
1e487827 | 10049 | |
698dcdb6 VZ |
10050 | fi |
10051 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
10052 | echo "$ac_t""yes" 1>&6 | |
10053 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" | |
10054 | else | |
10055 | echo "$ac_t""no" 1>&6 | |
ab9b9eab VZ |
10056 | fi |
10057 | ||
10058 | fi | |
10059 | ||
10060 | # lieder@skyler.mavd.honeywell.com says without -lsocket, | |
10061 | # socket/setsockopt and other routines are undefined under SCO ODT | |
10062 | # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary | |
698dcdb6 VZ |
10063 | # on later versions), says simon@lia.di.epfl.ch: it contains |
10064 | # gethostby* variants that don't use the nameserver (or something). | |
10065 | # -lsocket must be given before -lnsl if both are needed. | |
10066 | # We assume that if connect needs -lnsl, so does gethostbyname. | |
10067 | echo $ac_n "checking for connect""... $ac_c" 1>&6 | |
3f0f0161 | 10068 | echo "configure:10069: checking for connect" >&5 |
698dcdb6 VZ |
10069 | if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then |
10070 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10071 | else | |
10072 | cat > conftest.$ac_ext <<EOF | |
3f0f0161 | 10073 | #line 10074 "configure" |
ab9b9eab VZ |
10074 | #include "confdefs.h" |
10075 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 10076 | which can conflict with char connect(); below. */ |
ab9b9eab VZ |
10077 | #include <assert.h> |
10078 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10079 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
10080 | builtin and then its argument prototype would still apply. */ |
10081 | char connect(); | |
10082 | ||
10083 | int main() { | |
ab9b9eab VZ |
10084 | |
10085 | /* The GNU C library defines this for functions which it implements | |
10086 | to always fail with ENOSYS. Some functions are actually named | |
10087 | something starting with __ and the normal name is an alias. */ | |
10088 | #if defined (__stub_connect) || defined (__stub___connect) | |
10089 | choke me | |
10090 | #else | |
698dcdb6 | 10091 | connect(); |
ab9b9eab VZ |
10092 | #endif |
10093 | ||
698dcdb6 VZ |
10094 | ; return 0; } |
10095 | EOF | |
3f0f0161 | 10096 | if { (eval echo configure:10097: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
10097 | rm -rf conftest* |
10098 | eval "ac_cv_func_connect=yes" | |
10099 | else | |
10100 | echo "configure: failed program was:" >&5 | |
10101 | cat conftest.$ac_ext >&5 | |
10102 | rm -rf conftest* | |
10103 | eval "ac_cv_func_connect=no" | |
10104 | fi | |
10105 | rm -f conftest* | |
10106 | fi | |
10107 | ||
10108 | if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then | |
10109 | echo "$ac_t""yes" 1>&6 | |
10110 | : | |
10111 | else | |
10112 | echo "$ac_t""no" 1>&6 | |
10113 | fi | |
ab9b9eab VZ |
10114 | |
10115 | if test $ac_cv_func_connect = no; then | |
698dcdb6 | 10116 | echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6 |
3f0f0161 | 10117 | echo "configure:10118: checking for connect in -lsocket" >&5 |
698dcdb6 VZ |
10118 | ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'` |
10119 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
10120 | echo $ac_n "(cached) $ac_c" 1>&6 | |
ab9b9eab | 10121 | else |
698dcdb6 | 10122 | ac_save_LIBS="$LIBS" |
ab9b9eab | 10123 | LIBS="-lsocket $X_EXTRA_LIBS $LIBS" |
698dcdb6 | 10124 | cat > conftest.$ac_ext <<EOF |
3f0f0161 | 10125 | #line 10126 "configure" |
ab9b9eab VZ |
10126 | #include "confdefs.h" |
10127 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10128 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
10129 | builtin and then its argument prototype would still apply. */ |
10130 | char connect(); | |
10131 | ||
10132 | int main() { | |
10133 | connect() | |
10134 | ; return 0; } | |
10135 | EOF | |
3f0f0161 | 10136 | if { (eval echo configure:10137: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
10137 | rm -rf conftest* |
10138 | eval "ac_cv_lib_$ac_lib_var=yes" | |
10139 | else | |
10140 | echo "configure: failed program was:" >&5 | |
10141 | cat conftest.$ac_ext >&5 | |
10142 | rm -rf conftest* | |
10143 | eval "ac_cv_lib_$ac_lib_var=no" | |
10144 | fi | |
10145 | rm -f conftest* | |
10146 | LIBS="$ac_save_LIBS" | |
10147 | ||
10148 | fi | |
10149 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
10150 | echo "$ac_t""yes" 1>&6 | |
ab9b9eab | 10151 | X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" |
698dcdb6 VZ |
10152 | else |
10153 | echo "$ac_t""no" 1>&6 | |
ab9b9eab VZ |
10154 | fi |
10155 | ||
10156 | fi | |
10157 | ||
698dcdb6 VZ |
10158 | # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX. |
10159 | echo $ac_n "checking for remove""... $ac_c" 1>&6 | |
3f0f0161 | 10160 | echo "configure:10161: checking for remove" >&5 |
698dcdb6 VZ |
10161 | if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then |
10162 | echo $ac_n "(cached) $ac_c" 1>&6 | |
ab9b9eab | 10163 | else |
698dcdb6 | 10164 | cat > conftest.$ac_ext <<EOF |
3f0f0161 | 10165 | #line 10166 "configure" |
ab9b9eab VZ |
10166 | #include "confdefs.h" |
10167 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 10168 | which can conflict with char remove(); below. */ |
ab9b9eab VZ |
10169 | #include <assert.h> |
10170 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10171 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
10172 | builtin and then its argument prototype would still apply. */ |
10173 | char remove(); | |
10174 | ||
10175 | int main() { | |
ab9b9eab VZ |
10176 | |
10177 | /* The GNU C library defines this for functions which it implements | |
10178 | to always fail with ENOSYS. Some functions are actually named | |
10179 | something starting with __ and the normal name is an alias. */ | |
10180 | #if defined (__stub_remove) || defined (__stub___remove) | |
10181 | choke me | |
10182 | #else | |
698dcdb6 | 10183 | remove(); |
ab9b9eab VZ |
10184 | #endif |
10185 | ||
698dcdb6 VZ |
10186 | ; return 0; } |
10187 | EOF | |
3f0f0161 | 10188 | if { (eval echo configure:10189: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
10189 | rm -rf conftest* |
10190 | eval "ac_cv_func_remove=yes" | |
10191 | else | |
10192 | echo "configure: failed program was:" >&5 | |
10193 | cat conftest.$ac_ext >&5 | |
10194 | rm -rf conftest* | |
10195 | eval "ac_cv_func_remove=no" | |
10196 | fi | |
10197 | rm -f conftest* | |
10198 | fi | |
10199 | ||
10200 | if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then | |
10201 | echo "$ac_t""yes" 1>&6 | |
10202 | : | |
10203 | else | |
10204 | echo "$ac_t""no" 1>&6 | |
10205 | fi | |
ab9b9eab VZ |
10206 | |
10207 | if test $ac_cv_func_remove = no; then | |
698dcdb6 | 10208 | echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6 |
3f0f0161 | 10209 | echo "configure:10210: checking for remove in -lposix" >&5 |
698dcdb6 VZ |
10210 | ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'` |
10211 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
10212 | echo $ac_n "(cached) $ac_c" 1>&6 | |
ab9b9eab | 10213 | else |
698dcdb6 | 10214 | ac_save_LIBS="$LIBS" |
ab9b9eab | 10215 | LIBS="-lposix $LIBS" |
698dcdb6 | 10216 | cat > conftest.$ac_ext <<EOF |
3f0f0161 | 10217 | #line 10218 "configure" |
ab9b9eab VZ |
10218 | #include "confdefs.h" |
10219 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10220 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
10221 | builtin and then its argument prototype would still apply. */ |
10222 | char remove(); | |
10223 | ||
10224 | int main() { | |
10225 | remove() | |
10226 | ; return 0; } | |
10227 | EOF | |
3f0f0161 | 10228 | if { (eval echo configure:10229: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
10229 | rm -rf conftest* |
10230 | eval "ac_cv_lib_$ac_lib_var=yes" | |
10231 | else | |
10232 | echo "configure: failed program was:" >&5 | |
10233 | cat conftest.$ac_ext >&5 | |
10234 | rm -rf conftest* | |
10235 | eval "ac_cv_lib_$ac_lib_var=no" | |
10236 | fi | |
10237 | rm -f conftest* | |
10238 | LIBS="$ac_save_LIBS" | |
10239 | ||
10240 | fi | |
10241 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
10242 | echo "$ac_t""yes" 1>&6 | |
ab9b9eab | 10243 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" |
698dcdb6 VZ |
10244 | else |
10245 | echo "$ac_t""no" 1>&6 | |
ab9b9eab VZ |
10246 | fi |
10247 | ||
10248 | fi | |
10249 | ||
10250 | # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. | |
698dcdb6 | 10251 | echo $ac_n "checking for shmat""... $ac_c" 1>&6 |
3f0f0161 | 10252 | echo "configure:10253: checking for shmat" >&5 |
698dcdb6 VZ |
10253 | if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then |
10254 | echo $ac_n "(cached) $ac_c" 1>&6 | |
ab9b9eab | 10255 | else |
698dcdb6 | 10256 | cat > conftest.$ac_ext <<EOF |
3f0f0161 | 10257 | #line 10258 "configure" |
ab9b9eab VZ |
10258 | #include "confdefs.h" |
10259 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 10260 | which can conflict with char shmat(); below. */ |
ab9b9eab VZ |
10261 | #include <assert.h> |
10262 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10263 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
10264 | builtin and then its argument prototype would still apply. */ |
10265 | char shmat(); | |
10266 | ||
10267 | int main() { | |
ab9b9eab VZ |
10268 | |
10269 | /* The GNU C library defines this for functions which it implements | |
10270 | to always fail with ENOSYS. Some functions are actually named | |
10271 | something starting with __ and the normal name is an alias. */ | |
10272 | #if defined (__stub_shmat) || defined (__stub___shmat) | |
10273 | choke me | |
10274 | #else | |
698dcdb6 | 10275 | shmat(); |
ab9b9eab VZ |
10276 | #endif |
10277 | ||
698dcdb6 VZ |
10278 | ; return 0; } |
10279 | EOF | |
3f0f0161 | 10280 | if { (eval echo configure:10281: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
10281 | rm -rf conftest* |
10282 | eval "ac_cv_func_shmat=yes" | |
10283 | else | |
10284 | echo "configure: failed program was:" >&5 | |
10285 | cat conftest.$ac_ext >&5 | |
10286 | rm -rf conftest* | |
10287 | eval "ac_cv_func_shmat=no" | |
10288 | fi | |
10289 | rm -f conftest* | |
10290 | fi | |
10291 | ||
10292 | if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then | |
10293 | echo "$ac_t""yes" 1>&6 | |
10294 | : | |
10295 | else | |
10296 | echo "$ac_t""no" 1>&6 | |
10297 | fi | |
ab9b9eab VZ |
10298 | |
10299 | if test $ac_cv_func_shmat = no; then | |
698dcdb6 | 10300 | echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6 |
3f0f0161 | 10301 | echo "configure:10302: checking for shmat in -lipc" >&5 |
698dcdb6 VZ |
10302 | ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'` |
10303 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
10304 | echo $ac_n "(cached) $ac_c" 1>&6 | |
ab9b9eab | 10305 | else |
698dcdb6 | 10306 | ac_save_LIBS="$LIBS" |
ab9b9eab | 10307 | LIBS="-lipc $LIBS" |
698dcdb6 | 10308 | cat > conftest.$ac_ext <<EOF |
3f0f0161 | 10309 | #line 10310 "configure" |
ab9b9eab VZ |
10310 | #include "confdefs.h" |
10311 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10312 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
10313 | builtin and then its argument prototype would still apply. */ |
10314 | char shmat(); | |
10315 | ||
10316 | int main() { | |
10317 | shmat() | |
10318 | ; return 0; } | |
10319 | EOF | |
3f0f0161 | 10320 | if { (eval echo configure:10321: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
10321 | rm -rf conftest* |
10322 | eval "ac_cv_lib_$ac_lib_var=yes" | |
10323 | else | |
10324 | echo "configure: failed program was:" >&5 | |
10325 | cat conftest.$ac_ext >&5 | |
10326 | rm -rf conftest* | |
10327 | eval "ac_cv_lib_$ac_lib_var=no" | |
10328 | fi | |
10329 | rm -f conftest* | |
10330 | LIBS="$ac_save_LIBS" | |
10331 | ||
10332 | fi | |
10333 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
10334 | echo "$ac_t""yes" 1>&6 | |
ab9b9eab | 10335 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" |
698dcdb6 VZ |
10336 | else |
10337 | echo "$ac_t""no" 1>&6 | |
ab9b9eab VZ |
10338 | fi |
10339 | ||
10340 | fi | |
10341 | fi | |
10342 | ||
10343 | # Check for libraries that X11R6 Xt/Xaw programs need. | |
698dcdb6 | 10344 | ac_save_LDFLAGS="$LDFLAGS" |
ab9b9eab VZ |
10345 | test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" |
10346 | # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to | |
10347 | # check for ICE first), but we must link in the order -lSM -lICE or | |
10348 | # we get undefined symbols. So assume we have SM if we have ICE. | |
10349 | # These have to be linked with before -lX11, unlike the other | |
10350 | # libraries we check for below, so use a different variable. | |
698dcdb6 VZ |
10351 | # --interran@uluru.Stanford.EDU, kb@cs.umb.edu. |
10352 | echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6 | |
3f0f0161 | 10353 | echo "configure:10354: checking for IceConnectionNumber in -lICE" >&5 |
698dcdb6 VZ |
10354 | ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'` |
10355 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
10356 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10357 | else | |
10358 | ac_save_LIBS="$LIBS" | |
ab9b9eab | 10359 | LIBS="-lICE $X_EXTRA_LIBS $LIBS" |
698dcdb6 | 10360 | cat > conftest.$ac_ext <<EOF |
3f0f0161 | 10361 | #line 10362 "configure" |
ab9b9eab VZ |
10362 | #include "confdefs.h" |
10363 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10364 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
10365 | builtin and then its argument prototype would still apply. */ |
10366 | char IceConnectionNumber(); | |
10367 | ||
10368 | int main() { | |
10369 | IceConnectionNumber() | |
10370 | ; return 0; } | |
10371 | EOF | |
3f0f0161 | 10372 | if { (eval echo configure:10373: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
10373 | rm -rf conftest* |
10374 | eval "ac_cv_lib_$ac_lib_var=yes" | |
10375 | else | |
10376 | echo "configure: failed program was:" >&5 | |
10377 | cat conftest.$ac_ext >&5 | |
10378 | rm -rf conftest* | |
10379 | eval "ac_cv_lib_$ac_lib_var=no" | |
10380 | fi | |
10381 | rm -f conftest* | |
10382 | LIBS="$ac_save_LIBS" | |
10383 | ||
10384 | fi | |
10385 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
10386 | echo "$ac_t""yes" 1>&6 | |
ab9b9eab | 10387 | X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" |
698dcdb6 VZ |
10388 | else |
10389 | echo "$ac_t""no" 1>&6 | |
ab9b9eab VZ |
10390 | fi |
10391 | ||
698dcdb6 | 10392 | LDFLAGS="$ac_save_LDFLAGS" |
ab9b9eab VZ |
10393 | |
10394 | fi | |
10395 | ||
1e6feb95 VZ |
10396 | CPPFLAGS="$CPPFLAGS $X_CFLAGS" |
10397 | LDFLAGS="$LDFLAGS $X_LIBS" | |
ab9b9eab | 10398 | |
1e6feb95 VZ |
10399 | if test "$wxUSE_MOTIF" = 1; then |
10400 | if test "$no_x" = "yes"; then | |
10401 | { echo "configure: error: X11 not found" 1>&2; exit 1; } | |
10402 | fi | |
ab9b9eab | 10403 | |
1e6feb95 VZ |
10404 | GUI_TK_LIBRARY="$X_LIBS" |
10405 | TOOLKIT_INCLUDE="$X_CFLAGS" | |
ab9b9eab | 10406 | |
1e6feb95 | 10407 | AFMINSTALL=afminstall |
dad6c0ea | 10408 | |
1e6feb95 VZ |
10409 | |
10410 | COMPILED_X_PROGRAM=0 | |
cd6d6d5b | 10411 | |
1e6feb95 | 10412 | echo $ac_n "checking for Motif/Lesstif headers""... $ac_c" 1>&6 |
3f0f0161 | 10413 | echo "configure:10414: checking for Motif/Lesstif headers" >&5 |
1e6feb95 | 10414 | |
ab9b9eab VZ |
10415 | ac_find_includes= |
10416 | for ac_dir in $SEARCH_INCLUDE; | |
10417 | do | |
10418 | if test -f "$ac_dir/Xm/Xm.h"; then | |
10419 | ac_find_includes=$ac_dir | |
10420 | break | |
10421 | fi | |
10422 | done | |
10423 | ||
1e6feb95 VZ |
10424 | if test "$ac_find_includes" != "" ; then |
10425 | echo "$ac_t""found $ac_find_includes" 1>&6 | |
10426 | else | |
10427 | cat > conftest.$ac_ext <<EOF | |
3f0f0161 | 10428 | #line 10429 "configure" |
cd6d6d5b VZ |
10429 | #include "confdefs.h" |
10430 | ||
1e6feb95 VZ |
10431 | #include <Xm/Xm.h> |
10432 | ||
698dcdb6 | 10433 | int main() { |
cd6d6d5b | 10434 | |
1e6feb95 | 10435 | int version; |
cd6d6d5b | 10436 | |
1e6feb95 VZ |
10437 | version = xmUseVersion; |
10438 | ||
698dcdb6 VZ |
10439 | ; return 0; } |
10440 | EOF | |
3f0f0161 | 10441 | if { (eval echo configure:10442: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 VZ |
10442 | rm -rf conftest* |
10443 | ||
1e6feb95 VZ |
10444 | echo "$ac_t""found in default search path" 1>&6 |
10445 | COMPILED_X_PROGRAM=1 | |
10446 | ||
cd6d6d5b | 10447 | else |
698dcdb6 VZ |
10448 | echo "configure: failed program was:" >&5 |
10449 | cat conftest.$ac_ext >&5 | |
10450 | rm -rf conftest* | |
10451 | ||
1e6feb95 VZ |
10452 | echo "$ac_t""no" 1>&6 |
10453 | { echo "configure: error: please set CFLAGS to contain the location of Xm/Xm.h" 1>&2; exit 1; } | |
10454 | ||
698dcdb6 | 10455 | |
cd6d6d5b | 10456 | fi |
698dcdb6 | 10457 | rm -f conftest* |
1e6feb95 | 10458 | fi |
ab9b9eab | 10459 | |
1e6feb95 VZ |
10460 | if test "$COMPILED_X_PROGRAM" = 0; then |
10461 | echo $ac_n "checking for Motif/Lesstif library""... $ac_c" 1>&6 | |
3f0f0161 | 10462 | echo "configure:10463: checking for Motif/Lesstif library" >&5 |
1e6feb95 | 10463 | |
ab9b9eab VZ |
10464 | ac_find_libraries= |
10465 | for ac_dir in $SEARCH_LIB; | |
10466 | do | |
f11bdd03 | 10467 | for ac_extension in a so sl dylib; do |
ab9b9eab VZ |
10468 | if test -f "$ac_dir/libXm.$ac_extension"; then |
10469 | ac_find_libraries=$ac_dir | |
10470 | break 2 | |
10471 | fi | |
10472 | done | |
10473 | done | |
10474 | ||
1e6feb95 VZ |
10475 | if test "$ac_find_libraries" != "" ; then |
10476 | ||
ab9b9eab VZ |
10477 | ac_path_to_include=$ac_find_includes |
10478 | echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null | |
10479 | result=$? | |
10480 | if test $result = 0; then | |
10481 | ac_path_to_include="" | |
10482 | else | |
10483 | ac_path_to_include="-I$ac_find_includes" | |
10484 | fi | |
10485 | ||
1e6feb95 | 10486 | |
ab9b9eab VZ |
10487 | echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null |
10488 | result=$? | |
10489 | if test $result = 0; then | |
10490 | ac_path_to_link="" | |
10491 | else | |
10492 | ac_path_to_link="-L$ac_find_libraries" | |
10493 | fi | |
10494 | ||
698dcdb6 | 10495 | |
1e6feb95 VZ |
10496 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY $ac_path_to_link" |
10497 | TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE $ac_path_to_include" | |
10498 | echo "$ac_t""found at $ac_find_libraries" 1>&6 | |
10499 | else | |
10500 | cat > conftest.$ac_ext <<EOF | |
3f0f0161 | 10501 | #line 10502 "configure" |
cd6d6d5b | 10502 | #include "confdefs.h" |
ab9b9eab | 10503 | |
1e6feb95 VZ |
10504 | #include <Xm/Xm.h> |
10505 | ||
698dcdb6 | 10506 | int main() { |
ab9b9eab | 10507 | |
1e6feb95 | 10508 | int version; |
ab9b9eab | 10509 | |
1e6feb95 VZ |
10510 | version = xmUseVersion; |
10511 | ||
698dcdb6 VZ |
10512 | ; return 0; } |
10513 | EOF | |
3f0f0161 | 10514 | if { (eval echo configure:10515: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 VZ |
10515 | rm -rf conftest* |
10516 | ||
1e6feb95 VZ |
10517 | echo "$ac_t""found in default search path" 1>&6 |
10518 | COMPILED_X_PROGRAM=1 | |
10519 | ||
cd6d6d5b | 10520 | else |
698dcdb6 VZ |
10521 | echo "configure: failed program was:" >&5 |
10522 | cat conftest.$ac_ext >&5 | |
10523 | rm -rf conftest* | |
10524 | ||
1e6feb95 VZ |
10525 | echo "$ac_t""no" 1>&6 |
10526 | { echo "configure: error: please set LDFLAGS to contain the location of libXm" 1>&2; exit 1; } | |
10527 | ||
698dcdb6 | 10528 | |
cd6d6d5b | 10529 | fi |
698dcdb6 | 10530 | rm -f conftest* |
1e6feb95 | 10531 | fi |
cd6d6d5b | 10532 | fi |
ab9b9eab | 10533 | |
1e6feb95 VZ |
10534 | |
10535 | XPM_LINK="" | |
10536 | echo $ac_n "checking for Xpm library""... $ac_c" 1>&6 | |
3f0f0161 | 10537 | echo "configure:10538: checking for Xpm library" >&5 |
1e6feb95 | 10538 | |
ab9b9eab VZ |
10539 | ac_find_libraries= |
10540 | for ac_dir in $SEARCH_LIB; | |
10541 | do | |
f11bdd03 | 10542 | for ac_extension in a so sl dylib; do |
ab9b9eab VZ |
10543 | if test -f "$ac_dir/libXpm.$ac_extension"; then |
10544 | ac_find_libraries=$ac_dir | |
10545 | break 2 | |
10546 | fi | |
10547 | done | |
10548 | done | |
10549 | ||
1e6feb95 VZ |
10550 | if test "$ac_find_libraries" != "" ; then |
10551 | ||
ab9b9eab VZ |
10552 | echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null |
10553 | result=$? | |
10554 | if test $result = 0; then | |
10555 | ac_path_to_link="" | |
10556 | else | |
10557 | ac_path_to_link="-L$ac_find_libraries" | |
10558 | fi | |
10559 | ||
1e6feb95 VZ |
10560 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY $ac_path_to_link" |
10561 | XPM_LINK="-lXpm " | |
10562 | cat >> confdefs.h <<\EOF | |
ab9b9eab VZ |
10563 | #define wxHAVE_LIB_XPM 1 |
10564 | EOF | |
10565 | ||
1e6feb95 VZ |
10566 | echo "$ac_t""found at $ac_find_libraries" 1>&6 |
10567 | else | |
10568 | cat > conftest.$ac_ext <<EOF | |
3f0f0161 | 10569 | #line 10570 "configure" |
cd6d6d5b VZ |
10570 | #include "confdefs.h" |
10571 | ||
1e6feb95 VZ |
10572 | #include <X11/xpm.h> |
10573 | ||
698dcdb6 | 10574 | int main() { |
cd6d6d5b | 10575 | |
1e6feb95 | 10576 | int version; |
cd6d6d5b | 10577 | |
1e6feb95 VZ |
10578 | version = XpmLibraryVersion(); |
10579 | ||
698dcdb6 VZ |
10580 | ; return 0; } |
10581 | EOF | |
3f0f0161 | 10582 | if { (eval echo configure:10583: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 VZ |
10583 | rm -rf conftest* |
10584 | ||
1e6feb95 VZ |
10585 | XPM_LINK="-lXpm " |
10586 | cat >> confdefs.h <<\EOF | |
3ace2e6d SN |
10587 | #define wxHAVE_LIB_XPM 1 |
10588 | EOF | |
10589 | ||
1e6feb95 VZ |
10590 | echo "$ac_t""found in default search path" 1>&6 |
10591 | COMPILED_X_PROGRAM=0 | |
10592 | ||
cd6d6d5b | 10593 | else |
698dcdb6 VZ |
10594 | echo "configure: failed program was:" >&5 |
10595 | cat conftest.$ac_ext >&5 | |
10596 | rm -rf conftest* | |
10597 | ||
1e6feb95 VZ |
10598 | echo "$ac_t""no" 1>&6 |
10599 | echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2 | |
10600 | ||
698dcdb6 | 10601 | |
cd6d6d5b | 10602 | fi |
698dcdb6 | 10603 | rm -f conftest* |
1e6feb95 VZ |
10604 | fi |
10605 | ||
10606 | GUI_TK_LINK="-lXm $XPM_LINK -lXmu -lXext -lXt -lX11" | |
10607 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY $GUI_TK_LINK" | |
10608 | TOOLKIT=MOTIF | |
10609 | GUIDIST=MOTIF_DIST | |
ab9b9eab VZ |
10610 | fi |
10611 | ||
1e6feb95 VZ |
10612 | if test "$wxUSE_MAC" = 1; then |
10613 | TOOLKIT=MAC | |
10614 | GUIDIST=MACX_DIST | |
10615 | fi | |
10f2d63a | 10616 | |
1e6feb95 VZ |
10617 | if test "$wxUSE_PM" = 1; then |
10618 | TOOLKIT=PM | |
10619 | GUIDIST=GTK_DIST | |
10620 | fi | |
b4085ce6 | 10621 | |
1e6feb95 VZ |
10622 | if test "$TOOLKIT" != "PM" ; then |
10623 | TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"` | |
10624 | else | |
10625 | TOOLKIT_DIR="os2" | |
10626 | fi | |
e07802fc | 10627 | |
1e6feb95 | 10628 | TOOLKIT_NAME="${TOOLKIT_DIR}" |
10f2d63a | 10629 | |
1e6feb95 VZ |
10630 | TOOLKIT_VPATH="\${top_srcdir}/src/${TOOLKIT_DIR}" |
10631 | ||
10632 | if test "$TOOLKIT_NAME" = "motif"; then | |
10633 | TOOLKIT_VPATH="${TOOLKIT_VPATH}${PATH_IFS}\${top_srcdir}/src/motif/xmcombo" | |
10634 | fi | |
10635 | ||
10636 | if test "$wxUSE_UNIVERSAL" = "yes"; then | |
10637 | TOOLKIT_NAME="${TOOLKIT_NAME}univ" | |
10638 | UNIV_VPATH="\${top_srcdir}/src/univ${PATH_IFS}\${top_srcdir}/src/univ/themes" | |
10639 | TOOLKIT_VPATH="${UNIV_VPATH}${PATH_IFS}${TOOLKIT_VPATH}" | |
10640 | SETUPH_DIR="univ" | |
f6bcfd97 | 10641 | else |
1e6feb95 VZ |
10642 | SETUPH_DIR="${TOOLKIT_DIR}" |
10643 | fi | |
10644 | ||
10645 | if test "$wxUSE_DEBUG_FLAG" = "yes"; then | |
10646 | TOOLKIT_NAME="${TOOLKIT_NAME}d" | |
f6bcfd97 BP |
10647 | fi |
10648 | ||
2224580a | 10649 | TOOLKIT_DEF="-D__WX${TOOLKIT}__" |
1e6feb95 VZ |
10650 | if test "$wxUSE_UNIVERSAL" = "yes"; then |
10651 | TOOLKIT_DEF="${TOOLKIT_DEF} -D__WXUNIVERSAL__" | |
10652 | fi | |
10f2d63a | 10653 | |
f6bcfd97 | 10654 | WX_LIBRARY="wx_${TOOLKIT_NAME}" |
10f2d63a | 10655 | |
1e6feb95 VZ |
10656 | if test "$wxUSE_UNIVERSAL" = "yes"; then |
10657 | ALL_OBJECTS="\$(GUI_LOWLEVEL_OBJS) \${UNIVOBJS}" | |
10658 | else | |
10659 | ALL_OBJECTS="\$(GUIOBJS)" | |
10660 | fi | |
10661 | ||
10662 | ALL_OBJECTS="${ALL_OBJECTS} \$(COMMONOBJS) \$(GENERICOBJS)" | |
10663 | ||
10664 | if test "$TOOLKIT" != "MSW"; then | |
10665 | ALL_OBJECTS="${ALL_OBJECTS} \$(UNIXOBJS)" | |
10666 | fi | |
10667 | ||
10668 | if test "$wxUSE_HTML" = "yes"; then | |
10669 | ALL_OBJECTS="${ALL_OBJECTS} \$(HTMLOBJS)" | |
10670 | fi | |
3fcdd07b | 10671 | |
1e6feb95 VZ |
10672 | if test "$TOOLKIT" != "MSW"; then |
10673 | if test "$wxUSE_ODBC" = "yes" ; then | |
10674 | ALL_OBJECTS="${ALL_OBJECTS} \$(IODBCOBJS)" | |
10675 | fi | |
3fcdd07b VZ |
10676 | fi |
10677 | ||
831b3152 VZ |
10678 | if test "x$REGEX_INCLUDE" != "x" ; then |
10679 | ALL_OBJECTS="${ALL_OBJECTS} \$(REGEXOBJS)" | |
10680 | fi | |
10681 | ||
d9d8273d | 10682 | if test "$wxUSE_LIBJPEG" = "yes" ; then |
2224580a | 10683 | ALL_OBJECTS="${ALL_OBJECTS} \$(JPEGOBJS)" |
d9d8273d RR |
10684 | fi |
10685 | if test "$wxUSE_LIBTIFF" = "yes" ; then | |
10686 | ALL_OBJECTS="${ALL_OBJECTS} \$(TIFFOBJS)" | |
10687 | fi | |
10688 | if test "$wxUSE_LIBPNG" = "yes" ; then | |
10689 | ALL_OBJECTS="${ALL_OBJECTS} \$(PNGOBJS)" | |
10690 | fi | |
10691 | if test "$wxUSE_ZLIB" = "yes" ; then | |
10692 | ALL_OBJECTS="${ALL_OBJECTS} \$(ZLIBOBJS)" | |
10693 | fi | |
3fed1840 RR |
10694 | if test "$wxUSE_FREETYPE" = "yes" ; then |
10695 | ALL_OBJECTS="${ALL_OBJECTS} \$(FREETYPEOBJS)" | |
10696 | fi | |
2224580a | 10697 | |
1e6feb95 VZ |
10698 | if test "$wxUSE_UNIVERSAL" = "yes"; then |
10699 | ALL_DEPFILES="\$(GUI_LOWLEVEL_DEPS) \$(UNIVDEPS)" | |
10700 | else | |
10701 | ALL_DEPFILES="\$(GUIDEPS)" | |
10702 | fi | |
10703 | ||
10704 | ALL_DEPFILES="${ALL_DEPFILES} \$(COMMONDEPS) \$(GENERICDEPS)" | |
10705 | ||
10706 | if test "$TOOLKIT" != "MSW"; then | |
10707 | ALL_DEPFILES="${ALL_DEPFILES} \$(UNIXDEPS)" | |
10708 | fi | |
10709 | ||
10710 | if test "$wxUSE_HTML" = "yes"; then | |
10711 | ALL_DEPFILES="${ALL_DEPFILES} \$(HTMLDEPS)" | |
10712 | fi | |
10713 | ||
879df073 | 10714 | PORT_FILES="\${top_srcdir}/src/\$(TOOLKITDIR)/files.lst" |
1e6feb95 | 10715 | if test "$wxUSE_UNIVERSAL" = "yes"; then |
879df073 | 10716 | PORT_FILES="${PORT_FILES} \${top_srcdir}/src/univ/files.lst" |
1e6feb95 | 10717 | fi |
2224580a VZ |
10718 | RPM_FILES="src/\$(TOOLKITDIR)/rpmfiles.lst" |
10719 | RPM_SPEC="wx\$(TOOLKIT).spec" | |
10720 | ||
10721 | GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST" | |
10722 | DISTDIR="wx\$(TOOLKIT)" | |
10f2d63a | 10723 | else |
dad6c0ea VZ |
10724 | USE_GUI=0 |
10725 | ||
f6bcfd97 BP |
10726 | TOOLKIT_DIR="base" |
10727 | ||
0b2effe9 VZ |
10728 | TOOLKIT_VPATH="." |
10729 | ||
f6bcfd97 BP |
10730 | if test "$wxUSE_DEBUG_FLAG" = "yes"; then |
10731 | TOOLKIT_NAME="${TOOLKIT_DIR}d" | |
10732 | else | |
10733 | TOOLKIT_NAME="${TOOLKIT_DIR}" | |
10734 | fi | |
10735 | ||
07eb77a6 RL |
10736 | TOOLKIT_DEF="-D__WXBASE__" |
10737 | ||
b4085ce6 GD |
10738 | ALL_OBJECTS="\$(BASE_OBJS) \$(BASE_UNIX_OBJS)" |
10739 | ALL_DEPFILES="\$(BASE_DEPS) \$(BASE_UNIX_DEPS)" | |
10f2d63a | 10740 | |
0b2effe9 VZ |
10741 | if test "x$REGEX_INCLUDE" != "x" ; then |
10742 | ALL_OBJECTS="${ALL_OBJECTS} \$(REGEXOBJS)" | |
10743 | fi | |
10744 | ||
a20b6d3a VZ |
10745 | if test "$wxUSE_ZLIB" = "yes" ; then |
10746 | ALL_OBJECTS="${ALL_OBJECTS} \$(ZLIBOBJS)" | |
10747 | fi | |
10748 | ||
f6bcfd97 | 10749 | WX_LIBRARY="wx_${TOOLKIT_NAME}" |
2224580a | 10750 | |
831b3152 | 10751 | PORT_FILES="\${top_srcdir}/src/files.lst" |
2224580a VZ |
10752 | RPM_FILES="src/rpmfiles.lst" |
10753 | RPM_SPEC="wxBase.spec" | |
10754 | ||
10755 | GUIDIST="BASE_DIST" | |
10756 | DISTDIR="wxBase" | |
10f2d63a VZ |
10757 | fi |
10758 | ||
10759 | WX_LIBRARY_NAME="lib${WX_LIBRARY}.la" | |
bdad4e7e | 10760 | WX_LIBRARY_NAME_GL="lib${WX_LIBRARY}_gl.la" |
10f2d63a VZ |
10761 | |
10762 | WX_LIBRARY_NAME_STATIC="lib${WX_LIBRARY}.a" | |
bdad4e7e | 10763 | WX_LIBRARY_NAME_STATIC_GL="lib${WX_LIBRARY}_gl.a" |
10f2d63a VZ |
10764 | |
10765 | WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}-${WX_RELEASE}.so.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}" | |
bdad4e7e | 10766 | WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY}_gl-${WX_RELEASE}.so.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}" |
10f2d63a VZ |
10767 | |
10768 | WX_LIBRARY_LINK1="lib${WX_LIBRARY}-${WX_RELEASE}.so.${WX_CURRENT}" | |
10769 | WX_LIBRARY_LINK2="lib${WX_LIBRARY}-${WX_RELEASE}.so" | |
10770 | WX_LIBRARY_LINK3="lib${WX_LIBRARY}.so" | |
bdad4e7e RR |
10771 | WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY}_gl-${WX_RELEASE}.so.${WX_CURRENT}" |
10772 | WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY}_gl-${WX_RELEASE}.so" | |
10773 | WX_LIBRARY_LINK3_GL="lib${WX_LIBRARY}_gl.so" | |
10f2d63a VZ |
10774 | |
10775 | SHARED_LD= | |
10776 | PIC_FLAG= | |
10777 | WX_ALL= | |
10778 | WX_ALL_INSTALLED= | |
1d62a8b4 | 10779 | BURNT_LIBRARY_NAME= |
f6bcfd97 | 10780 | WX_TARGET_LIBRARY_SONAME= |
10f2d63a | 10781 | |
698dcdb6 | 10782 | |
10f2d63a VZ |
10783 | if test "$wxUSE_SHARED" = "yes"; then |
10784 | case "${host}" in | |
10785 | *-hp-hpux* ) | |
10786 | if test "$GCC" = yes ; then | |
69ffe1d2 | 10787 | SHARED_LD="${CC} -shared -fPIC -o" |
10f2d63a VZ |
10788 | PIC_FLAG="-fPIC" |
10789 | else | |
f6bcfd97 BP |
10790 | LDFLAGS="-L/usr/lib" |
10791 | ||
10f2d63a VZ |
10792 | SHARED_LD="${CXX} -b -o" |
10793 | PIC_FLAG="+Z" | |
10794 | fi | |
f6bcfd97 BP |
10795 | WX_LIBRARY_NAME_SHARED="libwx_${TOOLKIT_NAME}.sl" |
10796 | WX_LIBRARY_NAME_SHARED_GL="libwx_${TOOLKIT_NAME}_gl.sl" | |
c661ecca | 10797 | if test "$wxUSE_OPENGL" = "yes"; then |
f6bcfd97 | 10798 | WX_ALL_INSTALLED="preinstall_gl" |
c661ecca RR |
10799 | WX_ALL="${WX_LIBRARY_NAME_SHARED} ${WX_LIBRARY_NAME_SHARED_GL}" |
10800 | else | |
10801 | WX_ALL="${WX_LIBRARY_NAME_SHARED}" | |
10802 | fi | |
10f2d63a | 10803 | ;; |
b12915c1 VZ |
10804 | |
10805 | *-*-linux* ) | |
10f2d63a VZ |
10806 | SHARED_LD="${CC} -shared -o" |
10807 | PIC_FLAG="-fPIC" | |
00cf1208 | 10808 | if test "$wxUSE_BURNT_NAME" = "yes" ; then |
05cdfc6f | 10809 | BURNT_LIBRARY_NAME="-Wl,-soname,${WX_LIBRARY_LINK1}" |
bdad4e7e | 10810 | BURNT_LIBRARY_NAME_GL="-Wl,-soname,${WX_LIBRARY_LINK1_GL}" |
f6bcfd97 | 10811 | WX_TARGET_LIBRARY_SONAME="-Wl,-soname,\$(TARGETLIB_LINK1)" |
00cf1208 | 10812 | fi |
c661ecca RR |
10813 | if test "$wxUSE_OPENGL" = "yes"; then |
10814 | WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL" | |
10815 | WX_ALL="CREATE_LINKS CREATE_LINKS_GL" | |
10816 | else | |
10817 | WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS" | |
10818 | WX_ALL="CREATE_LINKS" | |
422107f9 | 10819 | fi |
00cf1208 | 10820 | ;; |
10f2d63a VZ |
10821 | *-*-irix5* | *-*-irix6* ) |
10822 | if test "$GCC" = yes ; then | |
10823 | SHARED_LD="${CC} -shared -o" | |
10824 | PIC_FLAG="-fPIC" | |
10825 | else | |
10826 | SHARED_LD="${CXX} -shared -o" | |
10827 | fi | |
c661ecca RR |
10828 | if test "$wxUSE_OPENGL" = "yes"; then |
10829 | WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL" | |
10830 | WX_ALL="CREATE_LINKS CREATE_LINKS_GL" | |
10831 | else | |
10832 | WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS" | |
10833 | WX_ALL="CREATE_LINKS" | |
422107f9 | 10834 | fi |
10f2d63a VZ |
10835 | ;; |
10836 | *-*-solaris2* ) | |
10837 | if test "$GCC" = yes ; then | |
10838 | SHARED_LD="${CC} -shared -o" | |
10839 | PIC_FLAG="-fPIC" | |
f6bcfd97 BP |
10840 | |
10841 | CPPFLAGS="$CPPFLAGS -isystem /usr/openwin/include" | |
10f2d63a VZ |
10842 | else |
10843 | SHARED_LD="${CXX} -G -o" | |
10844 | PIC_FLAG="-KPIC" | |
10845 | fi | |
c661ecca RR |
10846 | if test "$wxUSE_OPENGL" = "yes"; then |
10847 | WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL" | |
10848 | WX_ALL="CREATE_LINKS CREATE_LINKS_GL" | |
10849 | else | |
10850 | WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS" | |
10851 | WX_ALL="CREATE_LINKS" | |
10852 | fi | |
10f2d63a VZ |
10853 | ;; |
10854 | *-*-sunos4* ) | |
10855 | SHARED_LD="${CC} -shared -o" | |
10856 | PIC_FLAG="-fPIC" | |
10857 | WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS" | |
10858 | WX_ALL="CREATE_LINKS" | |
10859 | ;; | |
95c8801c | 10860 | *-*-freebsd* | *-*-openbsd* | *-*-netbsd* ) |
10f2d63a VZ |
10861 | SHARED_LD="${CC} -shared -o" |
10862 | PIC_FLAG="-fPIC" | |
37d403aa JS |
10863 | if test "$wxUSE_OPENGL" = "yes"; then |
10864 | WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL" | |
10865 | WX_ALL="CREATE_LINKS CREATE_LINKS_GL" | |
10866 | else | |
10867 | WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS" | |
10868 | WX_ALL="CREATE_LINKS" | |
10869 | fi | |
10f2d63a | 10870 | ;; |
b4085ce6 | 10871 | *-*-darwin* ) |
f11bdd03 GD |
10872 | TOOLKIT_DEF="${TOOLKIT_DEF} -D__UNIX__ -D__DARWIN__ -D__POWERPC__" |
10873 | CFLAGS="${CFLAGS} -fno-common" | |
10874 | CPPFLAGS="${CPPFLAGS} -fno-common" | |
ea5999b9 GD |
10875 | SHARED_LD="${CXX} -dynamiclib -o" |
10876 | PIC_FLAG="-dynamic -fPIC" | |
b4085ce6 GD |
10877 | if test "$wxUSE_OPENGL" = "yes"; then |
10878 | WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL" | |
10879 | WX_ALL="CREATE_LINKS CREATE_LINKS_GL" | |
10880 | else | |
10881 | WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS" | |
10882 | WX_ALL="CREATE_LINKS" | |
10883 | fi | |
f11bdd03 GD |
10884 | if test "$wxUSE_MAC" = 1 ; then |
10885 | WX_ALL="${WX_ALL} ./lib/lib${WX_LIBRARY}-${WX_RELEASE}.r" | |
10886 | fi | |
1e6feb95 VZ |
10887 | WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}-${WX_RELEASE}.dylib.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}" |
10888 | WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY}_gl-${WX_RELEASE}.dylib.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}" | |
10889 | WX_LIBRARY_LINK1="lib${WX_LIBRARY}-${WX_RELEASE}.dylib.${WX_CURRENT}" | |
10890 | WX_LIBRARY_LINK2="lib${WX_LIBRARY}-${WX_RELEASE}.dylib" | |
10891 | WX_LIBRARY_LINK3="lib${WX_LIBRARY}.dylib" | |
10892 | WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY}_gl-${WX_RELEASE}.dylib.${WX_CURRENT}" | |
10893 | WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY}_gl-${WX_RELEASE}.dylib" | |
10894 | WX_LIBRARY_LINK3_GL="lib${WX_LIBRARY}_gl.dylib" | |
b4085ce6 | 10895 | ;; |
10f2d63a VZ |
10896 | *-*-osf* ) |
10897 | SHARED_LD="${CXX} -shared -o" | |
10898 | PIC_FLAG="-fPIC" | |
10899 | WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS" | |
10900 | WX_ALL="CREATE_LINKS" | |
10901 | ;; | |
10902 | *-*-dgux5* ) | |
10903 | SHARED_LD="${CXX} -shared -o" | |
10904 | PIC_FLAG="-fPIC" | |
10905 | WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS" | |
10906 | WX_ALL="CREATE_LINKS" | |
10907 | ;; | |
10908 | *-*-sysv5* ) | |
10909 | SHARED_LD="${CC} -shared -o" | |
10910 | PIC_FLAG="-fPIC" | |
10911 | WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS" | |
10912 | WX_ALL="CREATE_LINKS" | |
10913 | ;; | |
10914 | *-*-aix* ) | |
10915 | SHARED_LD="/usr/lpp/xlC/bin/makeC++SharedLib -p 0 -o" | |
10916 | WX_ALL=${WX_LIBRARY_NAME_SHARED} | |
10917 | ;; | |
1c8183e2 | 10918 | *-*-cygwin* ) |
10f2d63a | 10919 | WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}" |
bdad4e7e | 10920 | WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_STATIC_GL}" |
f6bcfd97 BP |
10921 | if test "$wxUSE_OPENGL" = "yes"; then |
10922 | WX_ALL_INSTALLED="preinstall_gl" | |
10923 | WX_ALL="${WX_LIBRARY_NAME_STATIC} ${WX_LIBRARY_NAME_STATIC_GL}" | |
10924 | else | |
10925 | WX_ALL="${WX_LIBRARY_NAME_STATIC}" | |
10926 | fi | |
10f2d63a | 10927 | ;; |
b12915c1 | 10928 | *-*-mingw32* ) |
10f2d63a | 10929 | WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}" |
bdad4e7e | 10930 | WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_STATIC_GL}" |
f6bcfd97 BP |
10931 | if test "$wxUSE_OPENGL" = "yes"; then |
10932 | WX_ALL_INSTALLED="preinstall_gl" | |
10933 | WX_ALL="${WX_LIBRARY_NAME_STATIC} ${WX_LIBRARY_NAME_STATIC_GL}" | |
10934 | else | |
10935 | WX_ALL="${WX_LIBRARY_NAME_STATIC}" | |
10936 | fi | |
10f2d63a VZ |
10937 | ;; |
10938 | *-pc-os2_emx ) | |
e07802fc VZ |
10939 | WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}" |
10940 | WX_ALL="${WX_LIBRARY_NAME_STATIC}" | |
10f2d63a | 10941 | ;; |
b12915c1 | 10942 | *-*-beos* ) |
e2b8b066 | 10943 | SHARED_LD="${LD} -shared -o" |
b12915c1 VZ |
10944 | PIC_FLAG="-fPIC" |
10945 | WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS" | |
10946 | WX_ALL="CREATE_LINKS" | |
10947 | ;; | |
10f2d63a | 10948 | *) |
698dcdb6 | 10949 | { echo "configure: error: unknown system type ${host}." 1>&2; exit 1; } |
10f2d63a VZ |
10950 | esac |
10951 | ||
10952 | if test "x$WX_TARGET_LIBRARY" = "x"; then | |
10953 | WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_SHARED}" | |
bdad4e7e | 10954 | WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_SHARED_GL}" |
10f2d63a | 10955 | fi |
3711412e | 10956 | WX_TARGET_LIBRARY_TYPE="so" |
10f2d63a VZ |
10957 | else |
10958 | WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}" | |
bdad4e7e | 10959 | WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_STATIC_GL}" |
f6bcfd97 BP |
10960 | |
10961 | if test "$wxUSE_OPENGL" = "yes"; then | |
10962 | WX_ALL_INSTALLED="preinstall_gl" | |
10963 | WX_ALL="${WX_LIBRARY_NAME_STATIC} ${WX_LIBRARY_NAME_STATIC_GL}" | |
10964 | else | |
10965 | WX_ALL="${WX_LIBRARY_NAME_STATIC}" | |
10966 | fi | |
10967 | ||
10968 | if test "$wxUSE_GUI" = "no"; then | |
10969 | WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall" | |
10970 | fi | |
10971 | ||
3711412e | 10972 | WX_TARGET_LIBRARY_TYPE="a" |
10f2d63a VZ |
10973 | fi |
10974 | ||
698dcdb6 VZ |
10975 | |
10976 | for ac_hdr in strings.h | |
10f2d63a | 10977 | do |
698dcdb6 VZ |
10978 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
10979 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
3f0f0161 | 10980 | echo "configure:10981: checking for $ac_hdr" >&5 |
698dcdb6 VZ |
10981 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
10982 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10983 | else | |
10984 | cat > conftest.$ac_ext <<EOF | |
3f0f0161 | 10985 | #line 10986 "configure" |
10f2d63a | 10986 | #include "confdefs.h" |
698dcdb6 VZ |
10987 | #include <$ac_hdr> |
10988 | EOF | |
10989 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
3f0f0161 | 10990 | { (eval echo configure:10991: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
10991 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
10992 | if test -z "$ac_err"; then | |
10993 | rm -rf conftest* | |
10994 | eval "ac_cv_header_$ac_safe=yes" | |
10f2d63a | 10995 | else |
698dcdb6 VZ |
10996 | echo "$ac_err" >&5 |
10997 | echo "configure: failed program was:" >&5 | |
10f2d63a | 10998 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
10999 | rm -rf conftest* |
11000 | eval "ac_cv_header_$ac_safe=no" | |
10f2d63a | 11001 | fi |
698dcdb6 | 11002 | rm -f conftest* |
10f2d63a | 11003 | fi |
698dcdb6 VZ |
11004 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
11005 | echo "$ac_t""yes" 1>&6 | |
11006 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
11007 | cat >> confdefs.h <<EOF | |
11008 | #define $ac_tr_hdr 1 | |
10f2d63a | 11009 | EOF |
698dcdb6 VZ |
11010 | |
11011 | else | |
11012 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
11013 | fi |
11014 | done | |
11015 | ||
698dcdb6 | 11016 | for ac_hdr in stdlib.h |
9cfadba2 | 11017 | do |
698dcdb6 VZ |
11018 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
11019 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
3f0f0161 | 11020 | echo "configure:11021: checking for $ac_hdr" >&5 |
698dcdb6 VZ |
11021 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
11022 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11023 | else | |
11024 | cat > conftest.$ac_ext <<EOF | |
3f0f0161 | 11025 | #line 11026 "configure" |
9cfadba2 | 11026 | #include "confdefs.h" |
698dcdb6 VZ |
11027 | #include <$ac_hdr> |
11028 | EOF | |
11029 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
3f0f0161 | 11030 | { (eval echo configure:11031: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
11031 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
11032 | if test -z "$ac_err"; then | |
11033 | rm -rf conftest* | |
11034 | eval "ac_cv_header_$ac_safe=yes" | |
6232543b | 11035 | else |
698dcdb6 VZ |
11036 | echo "$ac_err" >&5 |
11037 | echo "configure: failed program was:" >&5 | |
9cfadba2 | 11038 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
11039 | rm -rf conftest* |
11040 | eval "ac_cv_header_$ac_safe=no" | |
9cfadba2 | 11041 | fi |
698dcdb6 | 11042 | rm -f conftest* |
9cfadba2 | 11043 | fi |
698dcdb6 VZ |
11044 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
11045 | echo "$ac_t""yes" 1>&6 | |
11046 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
11047 | cat >> confdefs.h <<EOF | |
11048 | #define $ac_tr_hdr 1 | |
9cfadba2 | 11049 | EOF |
698dcdb6 VZ |
11050 | |
11051 | else | |
11052 | echo "$ac_t""no" 1>&6 | |
9cfadba2 VZ |
11053 | fi |
11054 | done | |
10f2d63a | 11055 | |
698dcdb6 | 11056 | for ac_hdr in unistd.h |
10f2d63a | 11057 | do |
698dcdb6 VZ |
11058 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
11059 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
3f0f0161 | 11060 | echo "configure:11061: checking for $ac_hdr" >&5 |
698dcdb6 VZ |
11061 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
11062 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11063 | else | |
11064 | cat > conftest.$ac_ext <<EOF | |
3f0f0161 | 11065 | #line 11066 "configure" |
10f2d63a | 11066 | #include "confdefs.h" |
698dcdb6 VZ |
11067 | #include <$ac_hdr> |
11068 | EOF | |
11069 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
3f0f0161 | 11070 | { (eval echo configure:11071: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
11071 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
11072 | if test -z "$ac_err"; then | |
11073 | rm -rf conftest* | |
11074 | eval "ac_cv_header_$ac_safe=yes" | |
6232543b | 11075 | else |
698dcdb6 VZ |
11076 | echo "$ac_err" >&5 |
11077 | echo "configure: failed program was:" >&5 | |
10f2d63a | 11078 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
11079 | rm -rf conftest* |
11080 | eval "ac_cv_header_$ac_safe=no" | |
10f2d63a | 11081 | fi |
698dcdb6 | 11082 | rm -f conftest* |
10f2d63a | 11083 | fi |
698dcdb6 VZ |
11084 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
11085 | echo "$ac_t""yes" 1>&6 | |
11086 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
11087 | cat >> confdefs.h <<EOF | |
11088 | #define $ac_tr_hdr 1 | |
10f2d63a | 11089 | EOF |
698dcdb6 VZ |
11090 | |
11091 | else | |
11092 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
11093 | fi |
11094 | done | |
11095 | ||
698dcdb6 | 11096 | for ac_hdr in wchar.h |
10f2d63a | 11097 | do |
698dcdb6 VZ |
11098 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
11099 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
3f0f0161 | 11100 | echo "configure:11101: checking for $ac_hdr" >&5 |
698dcdb6 VZ |
11101 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
11102 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11103 | else | |
11104 | cat > conftest.$ac_ext <<EOF | |
3f0f0161 | 11105 | #line 11106 "configure" |
10f2d63a | 11106 | #include "confdefs.h" |
698dcdb6 VZ |
11107 | #include <$ac_hdr> |
11108 | EOF | |
11109 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
3f0f0161 | 11110 | { (eval echo configure:11111: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
11111 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
11112 | if test -z "$ac_err"; then | |
11113 | rm -rf conftest* | |
11114 | eval "ac_cv_header_$ac_safe=yes" | |
6f72b082 | 11115 | else |
698dcdb6 VZ |
11116 | echo "$ac_err" >&5 |
11117 | echo "configure: failed program was:" >&5 | |
6f72b082 | 11118 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
11119 | rm -rf conftest* |
11120 | eval "ac_cv_header_$ac_safe=no" | |
6f72b082 | 11121 | fi |
698dcdb6 | 11122 | rm -f conftest* |
6f72b082 | 11123 | fi |
698dcdb6 VZ |
11124 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
11125 | echo "$ac_t""yes" 1>&6 | |
11126 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
11127 | cat >> confdefs.h <<EOF | |
11128 | #define $ac_tr_hdr 1 | |
6f72b082 | 11129 | EOF |
698dcdb6 VZ |
11130 | |
11131 | else | |
11132 | echo "$ac_t""no" 1>&6 | |
6f72b082 OK |
11133 | fi |
11134 | done | |
11135 | ||
698dcdb6 | 11136 | for ac_hdr in wcstr.h |
6f72b082 | 11137 | do |
698dcdb6 VZ |
11138 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
11139 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
3f0f0161 | 11140 | echo "configure:11141: checking for $ac_hdr" >&5 |
698dcdb6 VZ |
11141 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
11142 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11143 | else | |
11144 | cat > conftest.$ac_ext <<EOF | |
3f0f0161 | 11145 | #line 11146 "configure" |
6f72b082 | 11146 | #include "confdefs.h" |
698dcdb6 VZ |
11147 | #include <$ac_hdr> |
11148 | EOF | |
11149 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
3f0f0161 | 11150 | { (eval echo configure:11151: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
11151 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
11152 | if test -z "$ac_err"; then | |
11153 | rm -rf conftest* | |
11154 | eval "ac_cv_header_$ac_safe=yes" | |
6f72b082 | 11155 | else |
698dcdb6 VZ |
11156 | echo "$ac_err" >&5 |
11157 | echo "configure: failed program was:" >&5 | |
6f72b082 | 11158 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
11159 | rm -rf conftest* |
11160 | eval "ac_cv_header_$ac_safe=no" | |
6f72b082 | 11161 | fi |
698dcdb6 | 11162 | rm -f conftest* |
6f72b082 | 11163 | fi |
698dcdb6 VZ |
11164 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
11165 | echo "$ac_t""yes" 1>&6 | |
11166 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
11167 | cat >> confdefs.h <<EOF | |
11168 | #define $ac_tr_hdr 1 | |
6f72b082 | 11169 | EOF |
698dcdb6 VZ |
11170 | |
11171 | else | |
11172 | echo "$ac_t""no" 1>&6 | |
6f72b082 OK |
11173 | fi |
11174 | done | |
11175 | ||
698dcdb6 | 11176 | for ac_hdr in fnmatch.h |
6f72b082 | 11177 | do |
698dcdb6 VZ |
11178 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
11179 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
3f0f0161 | 11180 | echo "configure:11181: checking for $ac_hdr" >&5 |
698dcdb6 VZ |
11181 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
11182 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11183 | else | |
11184 | cat > conftest.$ac_ext <<EOF | |
3f0f0161 | 11185 | #line 11186 "configure" |
6f72b082 | 11186 | #include "confdefs.h" |
698dcdb6 VZ |
11187 | #include <$ac_hdr> |
11188 | EOF | |
11189 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
3f0f0161 | 11190 | { (eval echo configure:11191: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
11191 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
11192 | if test -z "$ac_err"; then | |
11193 | rm -rf conftest* | |
11194 | eval "ac_cv_header_$ac_safe=yes" | |
10f2d63a | 11195 | else |
698dcdb6 VZ |
11196 | echo "$ac_err" >&5 |
11197 | echo "configure: failed program was:" >&5 | |
10f2d63a | 11198 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
11199 | rm -rf conftest* |
11200 | eval "ac_cv_header_$ac_safe=no" | |
10f2d63a | 11201 | fi |
698dcdb6 | 11202 | rm -f conftest* |
10f2d63a | 11203 | fi |
698dcdb6 VZ |
11204 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
11205 | echo "$ac_t""yes" 1>&6 | |
11206 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
11207 | cat >> confdefs.h <<EOF | |
11208 | #define $ac_tr_hdr 1 | |
10f2d63a | 11209 | EOF |
698dcdb6 VZ |
11210 | |
11211 | else | |
11212 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
11213 | fi |
11214 | done | |
11215 | ||
698dcdb6 | 11216 | for ac_hdr in iconv.h |
0fb0dd83 | 11217 | do |
698dcdb6 VZ |
11218 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
11219 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
3f0f0161 | 11220 | echo "configure:11221: checking for $ac_hdr" >&5 |
698dcdb6 VZ |
11221 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
11222 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11223 | else | |
11224 | cat > conftest.$ac_ext <<EOF | |
3f0f0161 | 11225 | #line 11226 "configure" |
0fb0dd83 | 11226 | #include "confdefs.h" |
698dcdb6 VZ |
11227 | #include <$ac_hdr> |
11228 | EOF | |
11229 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
3f0f0161 | 11230 | { (eval echo configure:11231: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
11231 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
11232 | if test -z "$ac_err"; then | |
11233 | rm -rf conftest* | |
11234 | eval "ac_cv_header_$ac_safe=yes" | |
0fb0dd83 | 11235 | else |
698dcdb6 VZ |
11236 | echo "$ac_err" >&5 |
11237 | echo "configure: failed program was:" >&5 | |
0fb0dd83 | 11238 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
11239 | rm -rf conftest* |
11240 | eval "ac_cv_header_$ac_safe=no" | |
0fb0dd83 | 11241 | fi |
698dcdb6 | 11242 | rm -f conftest* |
0fb0dd83 | 11243 | fi |
698dcdb6 VZ |
11244 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
11245 | echo "$ac_t""yes" 1>&6 | |
11246 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
11247 | cat >> confdefs.h <<EOF | |
11248 | #define $ac_tr_hdr 1 | |
0fb0dd83 | 11249 | EOF |
698dcdb6 VZ |
11250 | |
11251 | else | |
11252 | echo "$ac_t""no" 1>&6 | |
0fb0dd83 RR |
11253 | fi |
11254 | done | |
11255 | ||
698dcdb6 | 11256 | for ac_hdr in langinfo.h |
1f8ae82f | 11257 | do |
698dcdb6 VZ |
11258 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
11259 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
3f0f0161 | 11260 | echo "configure:11261: checking for $ac_hdr" >&5 |
698dcdb6 VZ |
11261 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
11262 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11263 | else | |
11264 | cat > conftest.$ac_ext <<EOF | |
3f0f0161 | 11265 | #line 11266 "configure" |
1f8ae82f | 11266 | #include "confdefs.h" |
698dcdb6 VZ |
11267 | #include <$ac_hdr> |
11268 | EOF | |
11269 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
3f0f0161 | 11270 | { (eval echo configure:11271: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
11271 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
11272 | if test -z "$ac_err"; then | |
11273 | rm -rf conftest* | |
11274 | eval "ac_cv_header_$ac_safe=yes" | |
1f8ae82f | 11275 | else |
698dcdb6 VZ |
11276 | echo "$ac_err" >&5 |
11277 | echo "configure: failed program was:" >&5 | |
1f8ae82f | 11278 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
11279 | rm -rf conftest* |
11280 | eval "ac_cv_header_$ac_safe=no" | |
1f8ae82f | 11281 | fi |
698dcdb6 | 11282 | rm -f conftest* |
1f8ae82f | 11283 | fi |
698dcdb6 VZ |
11284 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
11285 | echo "$ac_t""yes" 1>&6 | |
11286 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
11287 | cat >> confdefs.h <<EOF | |
11288 | #define $ac_tr_hdr 1 | |
1f8ae82f | 11289 | EOF |
698dcdb6 VZ |
11290 | |
11291 | else | |
11292 | echo "$ac_t""no" 1>&6 | |
1f8ae82f GD |
11293 | fi |
11294 | done | |
11295 | ||
698dcdb6 | 11296 | |
73fd4a60 VZ |
11297 | if test "$wxUSE_GUI" = "yes"; then |
11298 | if test "$wxUSE_UNIX" = "yes"; then | |
698dcdb6 | 11299 | for ac_hdr in X11/XKBlib.h |
10f2d63a | 11300 | do |
698dcdb6 VZ |
11301 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
11302 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
3f0f0161 | 11303 | echo "configure:11304: checking for $ac_hdr" >&5 |
698dcdb6 VZ |
11304 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
11305 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11306 | else | |
11307 | cat > conftest.$ac_ext <<EOF | |
3f0f0161 | 11308 | #line 11309 "configure" |
10f2d63a | 11309 | #include "confdefs.h" |
698dcdb6 VZ |
11310 | #include <$ac_hdr> |
11311 | EOF | |
11312 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
3f0f0161 | 11313 | { (eval echo configure:11314: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
11314 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
11315 | if test -z "$ac_err"; then | |
11316 | rm -rf conftest* | |
11317 | eval "ac_cv_header_$ac_safe=yes" | |
10f2d63a | 11318 | else |
698dcdb6 VZ |
11319 | echo "$ac_err" >&5 |
11320 | echo "configure: failed program was:" >&5 | |
10f2d63a | 11321 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
11322 | rm -rf conftest* |
11323 | eval "ac_cv_header_$ac_safe=no" | |
10f2d63a | 11324 | fi |
698dcdb6 | 11325 | rm -f conftest* |
10f2d63a | 11326 | fi |
698dcdb6 VZ |
11327 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
11328 | echo "$ac_t""yes" 1>&6 | |
11329 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
11330 | cat >> confdefs.h <<EOF | |
11331 | #define $ac_tr_hdr 1 | |
10f2d63a | 11332 | EOF |
698dcdb6 VZ |
11333 | |
11334 | else | |
11335 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
11336 | fi |
11337 | done | |
11338 | ||
73fd4a60 | 11339 | fi |
10f2d63a VZ |
11340 | fi |
11341 | ||
3e44f09d | 11342 | if test "$USE_WIN32" = 1; then |
29fd3c0c VS |
11343 | for ac_hdr in w32api.h |
11344 | do | |
11345 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
11346 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
3f0f0161 | 11347 | echo "configure:11348: checking for $ac_hdr" >&5 |
29fd3c0c VS |
11348 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
11349 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11350 | else | |
11351 | cat > conftest.$ac_ext <<EOF | |
3f0f0161 | 11352 | #line 11353 "configure" |
29fd3c0c VS |
11353 | #include "confdefs.h" |
11354 | #include <$ac_hdr> | |
11355 | EOF | |
11356 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
3f0f0161 | 11357 | { (eval echo configure:11358: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
29fd3c0c VS |
11358 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
11359 | if test -z "$ac_err"; then | |
11360 | rm -rf conftest* | |
11361 | eval "ac_cv_header_$ac_safe=yes" | |
11362 | else | |
11363 | echo "$ac_err" >&5 | |
11364 | echo "configure: failed program was:" >&5 | |
11365 | cat conftest.$ac_ext >&5 | |
11366 | rm -rf conftest* | |
11367 | eval "ac_cv_header_$ac_safe=no" | |
11368 | fi | |
11369 | rm -f conftest* | |
11370 | fi | |
11371 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
11372 | echo "$ac_t""yes" 1>&6 | |
11373 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
11374 | cat >> confdefs.h <<EOF | |
11375 | #define $ac_tr_hdr 1 | |
11376 | EOF | |
11377 | ||
11378 | else | |
11379 | echo "$ac_t""no" 1>&6 | |
11380 | fi | |
11381 | done | |
11382 | ||
11383 | fi | |
11384 | ||
698dcdb6 VZ |
11385 | |
11386 | echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6 | |
3f0f0161 | 11387 | echo "configure:11388: checking for ANSI C header files" >&5 |
698dcdb6 VZ |
11388 | if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then |
11389 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 11390 | else |
698dcdb6 | 11391 | cat > conftest.$ac_ext <<EOF |
3f0f0161 | 11392 | #line 11393 "configure" |
10f2d63a VZ |
11393 | #include "confdefs.h" |
11394 | #include <stdlib.h> | |
11395 | #include <stdarg.h> | |
11396 | #include <string.h> | |
11397 | #include <float.h> | |
698dcdb6 VZ |
11398 | EOF |
11399 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
3f0f0161 | 11400 | { (eval echo configure:11401: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
11401 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
11402 | if test -z "$ac_err"; then | |
11403 | rm -rf conftest* | |
10f2d63a VZ |
11404 | ac_cv_header_stdc=yes |
11405 | else | |
698dcdb6 VZ |
11406 | echo "$ac_err" >&5 |
11407 | echo "configure: failed program was:" >&5 | |
10f2d63a | 11408 | cat conftest.$ac_ext >&5 |
698dcdb6 | 11409 | rm -rf conftest* |
10f2d63a VZ |
11410 | ac_cv_header_stdc=no |
11411 | fi | |
698dcdb6 | 11412 | rm -f conftest* |
10f2d63a VZ |
11413 | |
11414 | if test $ac_cv_header_stdc = yes; then | |
11415 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
698dcdb6 | 11416 | cat > conftest.$ac_ext <<EOF |
3f0f0161 | 11417 | #line 11418 "configure" |
10f2d63a VZ |
11418 | #include "confdefs.h" |
11419 | #include <string.h> | |
698dcdb6 | 11420 | EOF |
10f2d63a VZ |
11421 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
11422 | egrep "memchr" >/dev/null 2>&1; then | |
11423 | : | |
11424 | else | |
698dcdb6 | 11425 | rm -rf conftest* |
10f2d63a VZ |
11426 | ac_cv_header_stdc=no |
11427 | fi | |
11428 | rm -f conftest* | |
11429 | ||
11430 | fi | |
11431 | ||
11432 | if test $ac_cv_header_stdc = yes; then | |
11433 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
698dcdb6 | 11434 | cat > conftest.$ac_ext <<EOF |
3f0f0161 | 11435 | #line 11436 "configure" |
10f2d63a VZ |
11436 | #include "confdefs.h" |
11437 | #include <stdlib.h> | |
698dcdb6 | 11438 | EOF |
10f2d63a VZ |
11439 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
11440 | egrep "free" >/dev/null 2>&1; then | |
11441 | : | |
11442 | else | |
698dcdb6 | 11443 | rm -rf conftest* |
10f2d63a VZ |
11444 | ac_cv_header_stdc=no |
11445 | fi | |
11446 | rm -f conftest* | |
11447 | ||
11448 | fi | |
11449 | ||
11450 | if test $ac_cv_header_stdc = yes; then | |
11451 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
698dcdb6 | 11452 | if test "$cross_compiling" = yes; then |
10f2d63a VZ |
11453 | : |
11454 | else | |
698dcdb6 | 11455 | cat > conftest.$ac_ext <<EOF |
3f0f0161 | 11456 | #line 11457 "configure" |
10f2d63a VZ |
11457 | #include "confdefs.h" |
11458 | #include <ctype.h> | |
698dcdb6 VZ |
11459 | #define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
11460 | #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
1e487827 | 11461 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
698dcdb6 VZ |
11462 | int main () { int i; for (i = 0; i < 256; i++) |
11463 | if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2); | |
11464 | exit (0); } | |
11465 | ||
11466 | EOF | |
3f0f0161 | 11467 | if { (eval echo configure:11468: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
698dcdb6 | 11468 | then |
10f2d63a VZ |
11469 | : |
11470 | else | |
698dcdb6 VZ |
11471 | echo "configure: failed program was:" >&5 |
11472 | cat conftest.$ac_ext >&5 | |
11473 | rm -fr conftest* | |
11474 | ac_cv_header_stdc=no | |
10f2d63a | 11475 | fi |
698dcdb6 | 11476 | rm -fr conftest* |
10f2d63a | 11477 | fi |
698dcdb6 | 11478 | |
10f2d63a VZ |
11479 | fi |
11480 | fi | |
1e487827 | 11481 | |
698dcdb6 VZ |
11482 | echo "$ac_t""$ac_cv_header_stdc" 1>&6 |
11483 | if test $ac_cv_header_stdc = yes; then | |
11484 | cat >> confdefs.h <<\EOF | |
10f2d63a VZ |
11485 | #define STDC_HEADERS 1 |
11486 | EOF | |
11487 | ||
11488 | fi | |
11489 | ||
698dcdb6 | 11490 | echo $ac_n "checking for mode_t""... $ac_c" 1>&6 |
3f0f0161 | 11491 | echo "configure:11492: checking for mode_t" >&5 |
698dcdb6 VZ |
11492 | if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then |
11493 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1e487827 | 11494 | else |
698dcdb6 | 11495 | cat > conftest.$ac_ext <<EOF |
3f0f0161 | 11496 | #line 11497 "configure" |
1e487827 | 11497 | #include "confdefs.h" |
698dcdb6 VZ |
11498 | #include <sys/types.h> |
11499 | #if STDC_HEADERS | |
11500 | #include <stdlib.h> | |
11501 | #include <stddef.h> | |
11502 | #endif | |
11503 | EOF | |
11504 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
11505 | egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then | |
11506 | rm -rf conftest* | |
10f2d63a VZ |
11507 | ac_cv_type_mode_t=yes |
11508 | else | |
698dcdb6 VZ |
11509 | rm -rf conftest* |
11510 | ac_cv_type_mode_t=no | |
703e0a69 | 11511 | fi |
698dcdb6 | 11512 | rm -f conftest* |
1e487827 | 11513 | |
698dcdb6 VZ |
11514 | fi |
11515 | echo "$ac_t""$ac_cv_type_mode_t" 1>&6 | |
11516 | if test $ac_cv_type_mode_t = no; then | |
11517 | cat >> confdefs.h <<\EOF | |
10f2d63a VZ |
11518 | #define mode_t int |
11519 | EOF | |
11520 | ||
11521 | fi | |
11522 | ||
698dcdb6 | 11523 | echo $ac_n "checking for off_t""... $ac_c" 1>&6 |
3f0f0161 | 11524 | echo "configure:11525: checking for off_t" >&5 |
698dcdb6 VZ |
11525 | if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then |
11526 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 11527 | else |
698dcdb6 | 11528 | cat > conftest.$ac_ext <<EOF |
3f0f0161 | 11529 | #line 11530 "configure" |
10f2d63a | 11530 | #include "confdefs.h" |
698dcdb6 VZ |
11531 | #include <sys/types.h> |
11532 | #if STDC_HEADERS | |
11533 | #include <stdlib.h> | |
11534 | #include <stddef.h> | |
11535 | #endif | |
11536 | EOF | |
11537 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
11538 | egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then | |
11539 | rm -rf conftest* | |
10f2d63a VZ |
11540 | ac_cv_type_off_t=yes |
11541 | else | |
698dcdb6 VZ |
11542 | rm -rf conftest* |
11543 | ac_cv_type_off_t=no | |
703e0a69 | 11544 | fi |
698dcdb6 | 11545 | rm -f conftest* |
1e487827 | 11546 | |
698dcdb6 VZ |
11547 | fi |
11548 | echo "$ac_t""$ac_cv_type_off_t" 1>&6 | |
11549 | if test $ac_cv_type_off_t = no; then | |
11550 | cat >> confdefs.h <<\EOF | |
10f2d63a VZ |
11551 | #define off_t long |
11552 | EOF | |
11553 | ||
11554 | fi | |
11555 | ||
698dcdb6 | 11556 | echo $ac_n "checking for pid_t""... $ac_c" 1>&6 |
3f0f0161 | 11557 | echo "configure:11558: checking for pid_t" >&5 |
698dcdb6 VZ |
11558 | if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then |
11559 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 11560 | else |
698dcdb6 | 11561 | cat > conftest.$ac_ext <<EOF |
3f0f0161 | 11562 | #line 11563 "configure" |
10f2d63a | 11563 | #include "confdefs.h" |
698dcdb6 VZ |
11564 | #include <sys/types.h> |
11565 | #if STDC_HEADERS | |
11566 | #include <stdlib.h> | |
11567 | #include <stddef.h> | |
11568 | #endif | |
11569 | EOF | |
11570 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
11571 | egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then | |
11572 | rm -rf conftest* | |
10f2d63a VZ |
11573 | ac_cv_type_pid_t=yes |
11574 | else | |
698dcdb6 VZ |
11575 | rm -rf conftest* |
11576 | ac_cv_type_pid_t=no | |
703e0a69 | 11577 | fi |
698dcdb6 | 11578 | rm -f conftest* |
1e487827 | 11579 | |
698dcdb6 VZ |
11580 | fi |
11581 | echo "$ac_t""$ac_cv_type_pid_t" 1>&6 | |
11582 | if test $ac_cv_type_pid_t = no; then | |
11583 | cat >> confdefs.h <<\EOF | |
10f2d63a VZ |
11584 | #define pid_t int |
11585 | EOF | |
11586 | ||
11587 | fi | |
11588 | ||
698dcdb6 | 11589 | echo $ac_n "checking for size_t""... $ac_c" 1>&6 |
3f0f0161 | 11590 | echo "configure:11591: checking for size_t" >&5 |
698dcdb6 VZ |
11591 | if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then |
11592 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 11593 | else |
698dcdb6 | 11594 | cat > conftest.$ac_ext <<EOF |
3f0f0161 | 11595 | #line 11596 "configure" |
10f2d63a | 11596 | #include "confdefs.h" |
698dcdb6 VZ |
11597 | #include <sys/types.h> |
11598 | #if STDC_HEADERS | |
11599 | #include <stdlib.h> | |
11600 | #include <stddef.h> | |
11601 | #endif | |
11602 | EOF | |
11603 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
11604 | egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then | |
11605 | rm -rf conftest* | |
10f2d63a VZ |
11606 | ac_cv_type_size_t=yes |
11607 | else | |
698dcdb6 VZ |
11608 | rm -rf conftest* |
11609 | ac_cv_type_size_t=no | |
703e0a69 | 11610 | fi |
698dcdb6 | 11611 | rm -f conftest* |
1e487827 | 11612 | |
698dcdb6 VZ |
11613 | fi |
11614 | echo "$ac_t""$ac_cv_type_size_t" 1>&6 | |
11615 | if test $ac_cv_type_size_t = no; then | |
11616 | cat >> confdefs.h <<\EOF | |
10f2d63a VZ |
11617 | #define size_t unsigned |
11618 | EOF | |
11619 | ||
11620 | fi | |
11621 | ||
698dcdb6 | 11622 | echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6 |
3f0f0161 | 11623 | echo "configure:11624: checking for uid_t in sys/types.h" >&5 |
698dcdb6 VZ |
11624 | if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then |
11625 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 11626 | else |
698dcdb6 | 11627 | cat > conftest.$ac_ext <<EOF |
3f0f0161 | 11628 | #line 11629 "configure" |
10f2d63a VZ |
11629 | #include "confdefs.h" |
11630 | #include <sys/types.h> | |
698dcdb6 | 11631 | EOF |
10f2d63a VZ |
11632 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
11633 | egrep "uid_t" >/dev/null 2>&1; then | |
698dcdb6 | 11634 | rm -rf conftest* |
10f2d63a VZ |
11635 | ac_cv_type_uid_t=yes |
11636 | else | |
698dcdb6 | 11637 | rm -rf conftest* |
10f2d63a VZ |
11638 | ac_cv_type_uid_t=no |
11639 | fi | |
11640 | rm -f conftest* | |
11641 | ||
11642 | fi | |
1e487827 | 11643 | |
698dcdb6 VZ |
11644 | echo "$ac_t""$ac_cv_type_uid_t" 1>&6 |
11645 | if test $ac_cv_type_uid_t = no; then | |
11646 | cat >> confdefs.h <<\EOF | |
10f2d63a VZ |
11647 | #define uid_t int |
11648 | EOF | |
11649 | ||
698dcdb6 | 11650 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
11651 | #define gid_t int |
11652 | EOF | |
11653 | ||
11654 | fi | |
11655 | ||
1e487827 | 11656 | |
698dcdb6 | 11657 | echo $ac_n "checking for wchar_t""... $ac_c" 1>&6 |
3f0f0161 | 11658 | echo "configure:11659: checking for wchar_t" >&5 |
698dcdb6 VZ |
11659 | if eval "test \"`echo '$''{'wx_cv_type_wchar_t'+set}'`\" = set"; then |
11660 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11661 | else | |
11662 | ||
11663 | cat > conftest.$ac_ext <<EOF | |
3f0f0161 | 11664 | #line 11665 "configure" |
0046ff7c VS |
11665 | #include "confdefs.h" |
11666 | #include <wchar.h> | |
698dcdb6 | 11667 | int main() { |
0046ff7c | 11668 | |
d836ee96 VZ |
11669 | wchar_t wc, *ws; |
11670 | wc = L'a'; | |
11671 | ws = L"Hello, world!"; | |
698dcdb6 VZ |
11672 | |
11673 | ; return 0; } | |
11674 | EOF | |
3f0f0161 | 11675 | if { (eval echo configure:11676: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 | 11676 | rm -rf conftest* |
1f8ae82f GD |
11677 | wx_cv_type_wchar_t=yes |
11678 | else | |
698dcdb6 VZ |
11679 | echo "configure: failed program was:" >&5 |
11680 | cat conftest.$ac_ext >&5 | |
11681 | rm -rf conftest* | |
11682 | cat > conftest.$ac_ext <<EOF | |
3f0f0161 | 11683 | #line 11684 "configure" |
1f8ae82f GD |
11684 | #include "confdefs.h" |
11685 | #include <stdlib.h> | |
698dcdb6 | 11686 | int main() { |
1f8ae82f | 11687 | |
d836ee96 VZ |
11688 | wchar_t wc, *ws; |
11689 | wc = L'a'; | |
11690 | ws = L"Hello, world!"; | |
698dcdb6 VZ |
11691 | |
11692 | ; return 0; } | |
11693 | EOF | |
3f0f0161 | 11694 | if { (eval echo configure:11695: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 | 11695 | rm -rf conftest* |
0046ff7c VS |
11696 | wx_cv_type_wchar_t=yes |
11697 | else | |
698dcdb6 VZ |
11698 | echo "configure: failed program was:" >&5 |
11699 | cat conftest.$ac_ext >&5 | |
11700 | rm -rf conftest* | |
11701 | wx_cv_type_wchar_t=no | |
0046ff7c | 11702 | fi |
698dcdb6 | 11703 | rm -f conftest* |
d836ee96 | 11704 | |
6232543b | 11705 | fi |
698dcdb6 | 11706 | rm -f conftest* |
703e0a69 | 11707 | |
1e487827 | 11708 | fi |
698dcdb6 VZ |
11709 | |
11710 | echo "$ac_t""$wx_cv_type_wchar_t" 1>&6 | |
d836ee96 VZ |
11711 | |
11712 | if test "$wx_cv_type_wchar_t" = "yes"; then | |
698dcdb6 | 11713 | cat >> confdefs.h <<\EOF |
0046ff7c VS |
11714 | #define wxUSE_WCHAR_T 1 |
11715 | EOF | |
11716 | ||
11717 | fi | |
11718 | ||
19af3b06 VZ |
11719 | |
11720 | ac_ext=C | |
11721 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
11722 | ac_cpp='$CXXCPP $CPPFLAGS' | |
11723 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
11724 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
11725 | cross_compiling=$ac_cv_prog_cxx_cross | |
11726 | ||
d836ee96 | 11727 | echo $ac_n "checking if size_t is unsigned int""... $ac_c" 1>&6 |
3f0f0161 | 11728 | echo "configure:11729: checking if size_t is unsigned int" >&5 |
d836ee96 VZ |
11729 | if eval "test \"`echo '$''{'wx_cv_size_t_is_uint'+set}'`\" = set"; then |
11730 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11731 | else | |
dd2c8b7c | 11732 | cat > conftest.$ac_ext <<EOF |
3f0f0161 | 11733 | #line 11734 "configure" |
d836ee96 VZ |
11734 | #include "confdefs.h" |
11735 | #include <stddef.h> | |
11736 | int main() { | |
11737 | ||
dd2c8b7c VZ |
11738 | return 0; } |
11739 | ||
d836ee96 | 11740 | struct Foo { void foo(size_t); void foo(unsigned int); }; |
dd2c8b7c VZ |
11741 | |
11742 | int bar() { | |
d836ee96 VZ |
11743 | |
11744 | ; return 0; } | |
11745 | EOF | |
3f0f0161 | 11746 | if { (eval echo configure:11747: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
d836ee96 VZ |
11747 | rm -rf conftest* |
11748 | wx_cv_size_t_is_uint=no | |
11749 | else | |
11750 | echo "configure: failed program was:" >&5 | |
11751 | cat conftest.$ac_ext >&5 | |
11752 | rm -rf conftest* | |
11753 | wx_cv_size_t_is_uint=yes | |
11754 | ||
11755 | fi | |
11756 | rm -f conftest* | |
11757 | ||
11758 | fi | |
11759 | ||
11760 | echo "$ac_t""$wx_cv_size_t_is_uint" 1>&6 | |
11761 | ||
11762 | if test "$wx_cv_size_t_is_uint" = "yes"; then | |
11763 | cat >> confdefs.h <<\EOF | |
11764 | #define wxSIZE_T_IS_UINT 1 | |
11765 | EOF | |
11766 | ||
11767 | else | |
11768 | echo $ac_n "checking if size_t is unsigned long""... $ac_c" 1>&6 | |
3f0f0161 | 11769 | echo "configure:11770: checking if size_t is unsigned long" >&5 |
d836ee96 VZ |
11770 | if eval "test \"`echo '$''{'wx_cv_size_t_is_ulong'+set}'`\" = set"; then |
11771 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11772 | else | |
11773 | cat > conftest.$ac_ext <<EOF | |
3f0f0161 | 11774 | #line 11775 "configure" |
d836ee96 VZ |
11775 | #include "confdefs.h" |
11776 | #include <stddef.h> | |
11777 | int main() { | |
11778 | ||
dd2c8b7c VZ |
11779 | return 0; } |
11780 | ||
d836ee96 | 11781 | struct Foo { void foo(size_t); void foo(unsigned long); }; |
dd2c8b7c VZ |
11782 | |
11783 | int bar() { | |
d836ee96 VZ |
11784 | |
11785 | ; return 0; } | |
11786 | EOF | |
3f0f0161 | 11787 | if { (eval echo configure:11788: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
d836ee96 VZ |
11788 | rm -rf conftest* |
11789 | wx_cv_size_t_is_ulong=no | |
11790 | else | |
11791 | echo "configure: failed program was:" >&5 | |
11792 | cat conftest.$ac_ext >&5 | |
11793 | rm -rf conftest* | |
11794 | wx_cv_size_t_is_ulong=yes | |
11795 | ||
11796 | fi | |
11797 | rm -f conftest* | |
11798 | ||
11799 | fi | |
11800 | ||
11801 | echo "$ac_t""$wx_cv_size_t_is_ulong" 1>&6 | |
11802 | ||
11803 | if test "$wx_cv_size_t_is_ulong" = "yes"; then | |
11804 | cat >> confdefs.h <<\EOF | |
11805 | #define wxSIZE_T_IS_ULONG 1 | |
11806 | EOF | |
11807 | ||
11808 | fi | |
11809 | fi | |
11810 | ||
19af3b06 VZ |
11811 | ac_ext=c |
11812 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
11813 | ac_cpp='$CPP $CPPFLAGS' | |
11814 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
11815 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
11816 | cross_compiling=$ac_cv_prog_cc_cross | |
11817 | ||
11818 | ||
1e487827 | 11819 | |
698dcdb6 | 11820 | echo $ac_n "checking for pw_gecos in struct passwd""... $ac_c" 1>&6 |
3f0f0161 | 11821 | echo "configure:11822: checking for pw_gecos in struct passwd" >&5 |
698dcdb6 VZ |
11822 | if eval "test \"`echo '$''{'wx_cv_struct_pw_gecos'+set}'`\" = set"; then |
11823 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11824 | else | |
11825 | ||
11826 | cat > conftest.$ac_ext <<EOF | |
3f0f0161 | 11827 | #line 11828 "configure" |
b12915c1 VZ |
11828 | #include "confdefs.h" |
11829 | #include <pwd.h> | |
698dcdb6 | 11830 | int main() { |
b12915c1 VZ |
11831 | |
11832 | char *p; | |
11833 | struct passwd *pw; | |
11834 | p = pw->pw_gecos; | |
698dcdb6 VZ |
11835 | |
11836 | ; return 0; } | |
11837 | EOF | |
3f0f0161 | 11838 | if { (eval echo configure:11839: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 VZ |
11839 | rm -rf conftest* |
11840 | ||
b12915c1 | 11841 | wx_cv_struct_pw_gecos=yes |
698dcdb6 | 11842 | |
b12915c1 | 11843 | else |
698dcdb6 VZ |
11844 | echo "configure: failed program was:" >&5 |
11845 | cat conftest.$ac_ext >&5 | |
11846 | rm -rf conftest* | |
11847 | ||
b12915c1 | 11848 | wx_cv_struct_pw_gecos=no |
698dcdb6 VZ |
11849 | |
11850 | ||
6232543b | 11851 | fi |
698dcdb6 VZ |
11852 | rm -f conftest* |
11853 | ||
703e0a69 | 11854 | |
1e487827 | 11855 | fi |
698dcdb6 VZ |
11856 | |
11857 | echo "$ac_t""$wx_cv_struct_pw_gecos" 1>&6 | |
b12915c1 | 11858 | |
bd3277fe | 11859 | if test "$wx_cv_struct_pw_gecos" = "yes"; then |
698dcdb6 | 11860 | cat >> confdefs.h <<\EOF |
bd3277fe VZ |
11861 | #define HAVE_PW_GECOS 1 |
11862 | EOF | |
11863 | ||
11864 | fi | |
11865 | ||
698dcdb6 VZ |
11866 | |
11867 | echo $ac_n "checking for working const""... $ac_c" 1>&6 | |
3f0f0161 | 11868 | echo "configure:11869: checking for working const" >&5 |
698dcdb6 VZ |
11869 | if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then |
11870 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 11871 | else |
698dcdb6 | 11872 | cat > conftest.$ac_ext <<EOF |
3f0f0161 | 11873 | #line 11874 "configure" |
10f2d63a | 11874 | #include "confdefs.h" |
698dcdb6 VZ |
11875 | |
11876 | int main() { | |
11877 | ||
11878 | /* Ultrix mips cc rejects this. */ | |
11879 | typedef int charset[2]; const charset x; | |
11880 | /* SunOS 4.1.1 cc rejects this. */ | |
11881 | char const *const *ccp; | |
11882 | char **p; | |
11883 | /* NEC SVR4.0.2 mips cc rejects this. */ | |
11884 | struct point {int x, y;}; | |
11885 | static struct point const zero = {0,0}; | |
11886 | /* AIX XL C 1.02.0.0 rejects this. | |
11887 | It does not let you subtract one const X* pointer from another in an arm | |
11888 | of an if-expression whose if-part is not a constant expression */ | |
11889 | const char *g = "string"; | |
11890 | ccp = &g + (g ? g-g : 0); | |
11891 | /* HPUX 7.0 cc rejects these. */ | |
11892 | ++ccp; | |
11893 | p = (char**) ccp; | |
11894 | ccp = (char const *const *) p; | |
11895 | { /* SCO 3.2v4 cc rejects this. */ | |
11896 | char *t; | |
11897 | char const *s = 0 ? (char *) 0 : (char const *) 0; | |
11898 | ||
11899 | *t++ = 0; | |
10f2d63a | 11900 | } |
698dcdb6 VZ |
11901 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ |
11902 | int x[] = {25, 17}; | |
11903 | const int *foo = &x[0]; | |
11904 | ++foo; | |
703e0a69 | 11905 | } |
698dcdb6 VZ |
11906 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ |
11907 | typedef const int *iptr; | |
11908 | iptr p = 0; | |
11909 | ++p; | |
6232543b | 11910 | } |
698dcdb6 VZ |
11911 | { /* AIX XL C 1.02.0.0 rejects this saying |
11912 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ | |
11913 | struct s { int j; const int *ap[3]; }; | |
11914 | struct s *b; b->j = 5; | |
1e487827 | 11915 | } |
698dcdb6 VZ |
11916 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ |
11917 | const int foo = 10; | |
11918 | } | |
11919 | ||
11920 | ; return 0; } | |
11921 | EOF | |
3f0f0161 | 11922 | if { (eval echo configure:11923: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 | 11923 | rm -rf conftest* |
10f2d63a VZ |
11924 | ac_cv_c_const=yes |
11925 | else | |
698dcdb6 VZ |
11926 | echo "configure: failed program was:" >&5 |
11927 | cat conftest.$ac_ext >&5 | |
11928 | rm -rf conftest* | |
11929 | ac_cv_c_const=no | |
10f2d63a | 11930 | fi |
698dcdb6 | 11931 | rm -f conftest* |
10f2d63a | 11932 | fi |
1e487827 | 11933 | |
698dcdb6 VZ |
11934 | echo "$ac_t""$ac_cv_c_const" 1>&6 |
11935 | if test $ac_cv_c_const = no; then | |
11936 | cat >> confdefs.h <<\EOF | |
11937 | #define const | |
10f2d63a VZ |
11938 | EOF |
11939 | ||
11940 | fi | |
11941 | ||
698dcdb6 | 11942 | echo $ac_n "checking for inline""... $ac_c" 1>&6 |
3f0f0161 | 11943 | echo "configure:11944: checking for inline" >&5 |
698dcdb6 VZ |
11944 | if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then |
11945 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a VZ |
11946 | else |
11947 | ac_cv_c_inline=no | |
11948 | for ac_kw in inline __inline__ __inline; do | |
698dcdb6 | 11949 | cat > conftest.$ac_ext <<EOF |
3f0f0161 | 11950 | #line 11951 "configure" |
10f2d63a VZ |
11951 | #include "confdefs.h" |
11952 | ||
698dcdb6 VZ |
11953 | int main() { |
11954 | } $ac_kw foo() { | |
11955 | ; return 0; } | |
11956 | EOF | |
3f0f0161 | 11957 | if { (eval echo configure:11958: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 | 11958 | rm -rf conftest* |
10f2d63a VZ |
11959 | ac_cv_c_inline=$ac_kw; break |
11960 | else | |
698dcdb6 VZ |
11961 | echo "configure: failed program was:" >&5 |
11962 | cat conftest.$ac_ext >&5 | |
10f2d63a | 11963 | fi |
698dcdb6 | 11964 | rm -f conftest* |
10f2d63a VZ |
11965 | done |
11966 | ||
11967 | fi | |
698dcdb6 VZ |
11968 | |
11969 | echo "$ac_t""$ac_cv_c_inline" 1>&6 | |
11970 | case "$ac_cv_c_inline" in | |
10f2d63a | 11971 | inline | yes) ;; |
698dcdb6 VZ |
11972 | no) cat >> confdefs.h <<\EOF |
11973 | #define inline | |
10f2d63a VZ |
11974 | EOF |
11975 | ;; | |
698dcdb6 | 11976 | *) cat >> confdefs.h <<EOF |
10f2d63a VZ |
11977 | #define inline $ac_cv_c_inline |
11978 | EOF | |
11979 | ;; | |
11980 | esac | |
11981 | ||
698dcdb6 VZ |
11982 | |
11983 | echo $ac_n "checking size of char""... $ac_c" 1>&6 | |
3f0f0161 | 11984 | echo "configure:11985: checking size of char" >&5 |
698dcdb6 VZ |
11985 | if eval "test \"`echo '$''{'ac_cv_sizeof_char'+set}'`\" = set"; then |
11986 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6232543b | 11987 | else |
1e487827 | 11988 | if test "$cross_compiling" = yes; then |
698dcdb6 | 11989 | ac_cv_sizeof_char=1 |
1e487827 | 11990 | else |
698dcdb6 | 11991 | cat > conftest.$ac_ext <<EOF |
3f0f0161 | 11992 | #line 11993 "configure" |
1e487827 | 11993 | #include "confdefs.h" |
698dcdb6 VZ |
11994 | #include <stdio.h> |
11995 | main() | |
1e487827 | 11996 | { |
698dcdb6 VZ |
11997 | FILE *f=fopen("conftestval", "w"); |
11998 | if (!f) exit(1); | |
11999 | fprintf(f, "%d\n", sizeof(char)); | |
12000 | exit(0); | |
1e487827 | 12001 | } |
698dcdb6 | 12002 | EOF |
3f0f0161 | 12003 | if { (eval echo configure:12004: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
698dcdb6 VZ |
12004 | then |
12005 | ac_cv_sizeof_char=`cat conftestval` | |
1e487827 | 12006 | else |
698dcdb6 VZ |
12007 | echo "configure: failed program was:" >&5 |
12008 | cat conftest.$ac_ext >&5 | |
12009 | rm -fr conftest* | |
1e487827 VS |
12010 | ac_cv_sizeof_char=0 |
12011 | fi | |
698dcdb6 | 12012 | rm -fr conftest* |
1e487827 | 12013 | fi |
10f2d63a | 12014 | |
1e487827 | 12015 | fi |
698dcdb6 VZ |
12016 | echo "$ac_t""$ac_cv_sizeof_char" 1>&6 |
12017 | cat >> confdefs.h <<EOF | |
12018 | #define SIZEOF_CHAR $ac_cv_sizeof_char | |
1e487827 | 12019 | EOF |
6232543b | 12020 | |
703e0a69 | 12021 | |
698dcdb6 | 12022 | echo $ac_n "checking size of short""... $ac_c" 1>&6 |
3f0f0161 | 12023 | echo "configure:12024: checking size of short" >&5 |
698dcdb6 VZ |
12024 | if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then |
12025 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1e487827 | 12026 | else |
1e487827 | 12027 | if test "$cross_compiling" = yes; then |
698dcdb6 | 12028 | ac_cv_sizeof_short=2 |
1e487827 | 12029 | else |
698dcdb6 | 12030 | cat > conftest.$ac_ext <<EOF |
3f0f0161 | 12031 | #line 12032 "configure" |
1e487827 | 12032 | #include "confdefs.h" |
698dcdb6 VZ |
12033 | #include <stdio.h> |
12034 | main() | |
1e487827 | 12035 | { |
698dcdb6 VZ |
12036 | FILE *f=fopen("conftestval", "w"); |
12037 | if (!f) exit(1); | |
12038 | fprintf(f, "%d\n", sizeof(short)); | |
12039 | exit(0); | |
1e487827 | 12040 | } |
698dcdb6 | 12041 | EOF |
3f0f0161 | 12042 | if { (eval echo configure:12043: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
698dcdb6 VZ |
12043 | then |
12044 | ac_cv_sizeof_short=`cat conftestval` | |
1e487827 | 12045 | else |
698dcdb6 VZ |
12046 | echo "configure: failed program was:" >&5 |
12047 | cat conftest.$ac_ext >&5 | |
12048 | rm -fr conftest* | |
12049 | ac_cv_sizeof_short=0 | |
1e487827 | 12050 | fi |
698dcdb6 | 12051 | rm -fr conftest* |
1e487827 | 12052 | fi |
698dcdb6 | 12053 | |
1e487827 | 12054 | fi |
698dcdb6 VZ |
12055 | echo "$ac_t""$ac_cv_sizeof_short" 1>&6 |
12056 | cat >> confdefs.h <<EOF | |
12057 | #define SIZEOF_SHORT $ac_cv_sizeof_short | |
12058 | EOF | |
12059 | ||
12060 | ||
12061 | echo $ac_n "checking size of int *""... $ac_c" 1>&6 | |
3f0f0161 | 12062 | echo "configure:12063: checking size of int *" >&5 |
698dcdb6 VZ |
12063 | if eval "test \"`echo '$''{'ac_cv_sizeof_int_p'+set}'`\" = set"; then |
12064 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a VZ |
12065 | else |
12066 | if test "$cross_compiling" = yes; then | |
698dcdb6 | 12067 | ac_cv_sizeof_int_p=4 |
10f2d63a | 12068 | else |
698dcdb6 | 12069 | cat > conftest.$ac_ext <<EOF |
3f0f0161 | 12070 | #line 12071 "configure" |
10f2d63a | 12071 | #include "confdefs.h" |
698dcdb6 VZ |
12072 | #include <stdio.h> |
12073 | main() | |
10f2d63a | 12074 | { |
698dcdb6 VZ |
12075 | FILE *f=fopen("conftestval", "w"); |
12076 | if (!f) exit(1); | |
12077 | fprintf(f, "%d\n", sizeof(int *)); | |
12078 | exit(0); | |
10f2d63a | 12079 | } |
698dcdb6 | 12080 | EOF |
3f0f0161 | 12081 | if { (eval echo configure:12082: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
698dcdb6 VZ |
12082 | then |
12083 | ac_cv_sizeof_int_p=`cat conftestval` | |
10f2d63a | 12084 | else |
698dcdb6 VZ |
12085 | echo "configure: failed program was:" >&5 |
12086 | cat conftest.$ac_ext >&5 | |
12087 | rm -fr conftest* | |
12088 | ac_cv_sizeof_int_p=0 | |
6232543b | 12089 | fi |
698dcdb6 | 12090 | rm -fr conftest* |
1e487827 | 12091 | fi |
698dcdb6 | 12092 | |
1e487827 | 12093 | fi |
698dcdb6 VZ |
12094 | echo "$ac_t""$ac_cv_sizeof_int_p" 1>&6 |
12095 | cat >> confdefs.h <<EOF | |
12096 | #define SIZEOF_INT_P $ac_cv_sizeof_int_p | |
10f2d63a VZ |
12097 | EOF |
12098 | ||
698dcdb6 VZ |
12099 | |
12100 | echo $ac_n "checking size of int""... $ac_c" 1>&6 | |
3f0f0161 | 12101 | echo "configure:12102: checking size of int" >&5 |
698dcdb6 VZ |
12102 | if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then |
12103 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a VZ |
12104 | else |
12105 | if test "$cross_compiling" = yes; then | |
698dcdb6 | 12106 | ac_cv_sizeof_int=4 |
703e0a69 | 12107 | else |
698dcdb6 | 12108 | cat > conftest.$ac_ext <<EOF |
3f0f0161 | 12109 | #line 12110 "configure" |
1e487827 | 12110 | #include "confdefs.h" |
698dcdb6 VZ |
12111 | #include <stdio.h> |
12112 | main() | |
1e487827 | 12113 | { |
698dcdb6 VZ |
12114 | FILE *f=fopen("conftestval", "w"); |
12115 | if (!f) exit(1); | |
12116 | fprintf(f, "%d\n", sizeof(int)); | |
12117 | exit(0); | |
1e487827 | 12118 | } |
698dcdb6 | 12119 | EOF |
3f0f0161 | 12120 | if { (eval echo configure:12121: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
698dcdb6 VZ |
12121 | then |
12122 | ac_cv_sizeof_int=`cat conftestval` | |
12123 | else | |
12124 | echo "configure: failed program was:" >&5 | |
12125 | cat conftest.$ac_ext >&5 | |
12126 | rm -fr conftest* | |
12127 | ac_cv_sizeof_int=0 | |
703e0a69 | 12128 | fi |
698dcdb6 VZ |
12129 | rm -fr conftest* |
12130 | fi | |
12131 | ||
12132 | fi | |
12133 | echo "$ac_t""$ac_cv_sizeof_int" 1>&6 | |
12134 | cat >> confdefs.h <<EOF | |
12135 | #define SIZEOF_INT $ac_cv_sizeof_int | |
12136 | EOF | |
12137 | ||
12138 | ||
12139 | echo $ac_n "checking size of long""... $ac_c" 1>&6 | |
3f0f0161 | 12140 | echo "configure:12141: checking size of long" >&5 |
698dcdb6 VZ |
12141 | if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then |
12142 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a VZ |
12143 | else |
12144 | if test "$cross_compiling" = yes; then | |
698dcdb6 | 12145 | ac_cv_sizeof_long=4 |
10f2d63a | 12146 | else |
698dcdb6 | 12147 | cat > conftest.$ac_ext <<EOF |
3f0f0161 | 12148 | #line 12149 "configure" |
10f2d63a | 12149 | #include "confdefs.h" |
698dcdb6 VZ |
12150 | #include <stdio.h> |
12151 | main() | |
10f2d63a | 12152 | { |
698dcdb6 VZ |
12153 | FILE *f=fopen("conftestval", "w"); |
12154 | if (!f) exit(1); | |
12155 | fprintf(f, "%d\n", sizeof(long)); | |
12156 | exit(0); | |
10f2d63a | 12157 | } |
698dcdb6 | 12158 | EOF |
3f0f0161 | 12159 | if { (eval echo configure:12160: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
698dcdb6 VZ |
12160 | then |
12161 | ac_cv_sizeof_long=`cat conftestval` | |
10f2d63a | 12162 | else |
698dcdb6 VZ |
12163 | echo "configure: failed program was:" >&5 |
12164 | cat conftest.$ac_ext >&5 | |
12165 | rm -fr conftest* | |
12166 | ac_cv_sizeof_long=0 | |
10f2d63a | 12167 | fi |
698dcdb6 | 12168 | rm -fr conftest* |
10f2d63a | 12169 | fi |
698dcdb6 | 12170 | |
10f2d63a | 12171 | fi |
698dcdb6 VZ |
12172 | echo "$ac_t""$ac_cv_sizeof_long" 1>&6 |
12173 | cat >> confdefs.h <<EOF | |
12174 | #define SIZEOF_LONG $ac_cv_sizeof_long | |
12175 | EOF | |
12176 | ||
12177 | ||
12178 | echo $ac_n "checking size of long long""... $ac_c" 1>&6 | |
3f0f0161 | 12179 | echo "configure:12180: checking size of long long" >&5 |
698dcdb6 VZ |
12180 | if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then |
12181 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12182 | else | |
12183 | if test "$cross_compiling" = yes; then | |
12184 | ac_cv_sizeof_long_long=0 | |
12185 | else | |
12186 | cat > conftest.$ac_ext <<EOF | |
3f0f0161 | 12187 | #line 12188 "configure" |
698dcdb6 VZ |
12188 | #include "confdefs.h" |
12189 | #include <stdio.h> | |
12190 | main() | |
12191 | { | |
12192 | FILE *f=fopen("conftestval", "w"); | |
12193 | if (!f) exit(1); | |
12194 | fprintf(f, "%d\n", sizeof(long long)); | |
12195 | exit(0); | |
12196 | } | |
12197 | EOF | |
3f0f0161 | 12198 | if { (eval echo configure:12199: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
698dcdb6 VZ |
12199 | then |
12200 | ac_cv_sizeof_long_long=`cat conftestval` | |
6232543b | 12201 | else |
698dcdb6 VZ |
12202 | echo "configure: failed program was:" >&5 |
12203 | cat conftest.$ac_ext >&5 | |
12204 | rm -fr conftest* | |
6232543b VS |
12205 | ac_cv_sizeof_long_long=0 |
12206 | fi | |
698dcdb6 VZ |
12207 | rm -fr conftest* |
12208 | fi | |
12209 | ||
703e0a69 | 12210 | fi |
698dcdb6 VZ |
12211 | echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6 |
12212 | cat >> confdefs.h <<EOF | |
10f2d63a VZ |
12213 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long |
12214 | EOF | |
12215 | ||
1e487827 | 12216 | |
698dcdb6 VZ |
12217 | |
12218 | echo $ac_n "checking size of wchar_t""... $ac_c" 1>&6 | |
3f0f0161 | 12219 | echo "configure:12220: checking size of wchar_t" >&5 |
698dcdb6 VZ |
12220 | if eval "test \"`echo '$''{'wx_cv_sizeof_wchar_t'+set}'`\" = set"; then |
12221 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12222 | else | |
12223 | ||
b93d0d08 VS |
12224 | if test "$cross_compiling" = yes; then |
12225 | wx_cv_sizeof_wchar_t=4 | |
1e6feb95 | 12226 | |
b93d0d08 | 12227 | else |
698dcdb6 | 12228 | cat > conftest.$ac_ext <<EOF |
3f0f0161 | 12229 | #line 12230 "configure" |
b93d0d08 VS |
12230 | #include "confdefs.h" |
12231 | ||
1e6feb95 VZ |
12232 | #ifdef HAVE_WCHAR_H |
12233 | # include <wchar.h> | |
12234 | #endif | |
12235 | #ifdef HAVE_STDLIB_H | |
12236 | # include <stdlib.h> | |
12237 | #endif | |
12238 | #include <stdio.h> | |
12239 | int main() | |
12240 | { | |
12241 | FILE *f=fopen("conftestval", "w"); | |
12242 | if (!f) exit(1); | |
12243 | fprintf(f, "%i", sizeof(wchar_t)); | |
12244 | exit(0); | |
12245 | } | |
698dcdb6 VZ |
12246 | |
12247 | EOF | |
3f0f0161 | 12248 | if { (eval echo configure:12249: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
698dcdb6 | 12249 | then |
b93d0d08 VS |
12250 | wx_cv_sizeof_wchar_t=`cat conftestval` |
12251 | else | |
698dcdb6 VZ |
12252 | echo "configure: failed program was:" >&5 |
12253 | cat conftest.$ac_ext >&5 | |
12254 | rm -fr conftest* | |
12255 | wx_cv_sizeof_wchar_t=0 | |
b93d0d08 | 12256 | fi |
698dcdb6 | 12257 | rm -fr conftest* |
b93d0d08 VS |
12258 | fi |
12259 | ||
698dcdb6 | 12260 | |
b93d0d08 VS |
12261 | fi |
12262 | ||
698dcdb6 VZ |
12263 | echo "$ac_t""$wx_cv_sizeof_wchar_t" 1>&6 |
12264 | ||
12265 | cat >> confdefs.h <<EOF | |
28c6addc | 12266 | #define SIZEOF_WCHAR_T $wx_cv_sizeof_wchar_t |
b93d0d08 VS |
12267 | EOF |
12268 | ||
698dcdb6 | 12269 | |
698dcdb6 | 12270 | echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6 |
3f0f0161 | 12271 | echo "configure:12272: checking whether byte ordering is bigendian" >&5 |
698dcdb6 VZ |
12272 | if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then |
12273 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a VZ |
12274 | else |
12275 | ac_cv_c_bigendian=unknown | |
12276 | # See if sys/param.h defines the BYTE_ORDER macro. | |
698dcdb6 | 12277 | cat > conftest.$ac_ext <<EOF |
3f0f0161 | 12278 | #line 12279 "configure" |
10f2d63a VZ |
12279 | #include "confdefs.h" |
12280 | #include <sys/types.h> | |
12281 | #include <sys/param.h> | |
698dcdb6 | 12282 | int main() { |
10f2d63a VZ |
12283 | |
12284 | #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN | |
12285 | bogus endian macros | |
12286 | #endif | |
698dcdb6 VZ |
12287 | ; return 0; } |
12288 | EOF | |
3f0f0161 | 12289 | if { (eval echo configure:12290: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 | 12290 | rm -rf conftest* |
10f2d63a | 12291 | # It does; now see whether it defined to BIG_ENDIAN or not. |
698dcdb6 | 12292 | cat > conftest.$ac_ext <<EOF |
3f0f0161 | 12293 | #line 12294 "configure" |
10f2d63a VZ |
12294 | #include "confdefs.h" |
12295 | #include <sys/types.h> | |
12296 | #include <sys/param.h> | |
698dcdb6 | 12297 | int main() { |
10f2d63a VZ |
12298 | |
12299 | #if BYTE_ORDER != BIG_ENDIAN | |
12300 | not big endian | |
12301 | #endif | |
698dcdb6 VZ |
12302 | ; return 0; } |
12303 | EOF | |
3f0f0161 | 12304 | if { (eval echo configure:12305: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 | 12305 | rm -rf conftest* |
10f2d63a VZ |
12306 | ac_cv_c_bigendian=yes |
12307 | else | |
698dcdb6 VZ |
12308 | echo "configure: failed program was:" >&5 |
12309 | cat conftest.$ac_ext >&5 | |
12310 | rm -rf conftest* | |
12311 | ac_cv_c_bigendian=no | |
10f2d63a | 12312 | fi |
698dcdb6 | 12313 | rm -f conftest* |
10f2d63a | 12314 | else |
698dcdb6 VZ |
12315 | echo "configure: failed program was:" >&5 |
12316 | cat conftest.$ac_ext >&5 | |
10f2d63a | 12317 | fi |
698dcdb6 | 12318 | rm -f conftest* |
10f2d63a VZ |
12319 | if test $ac_cv_c_bigendian = unknown; then |
12320 | if test "$cross_compiling" = yes; then | |
12321 | ac_cv_c_bigendian=unknown | |
12322 | else | |
698dcdb6 | 12323 | cat > conftest.$ac_ext <<EOF |
3f0f0161 | 12324 | #line 12325 "configure" |
10f2d63a VZ |
12325 | #include "confdefs.h" |
12326 | main () { | |
12327 | /* Are we little or big endian? From Harbison&Steele. */ | |
12328 | union | |
12329 | { | |
12330 | long l; | |
12331 | char c[sizeof (long)]; | |
12332 | } u; | |
12333 | u.l = 1; | |
12334 | exit (u.c[sizeof (long) - 1] == 1); | |
12335 | } | |
698dcdb6 | 12336 | EOF |
3f0f0161 | 12337 | if { (eval echo configure:12338: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
698dcdb6 | 12338 | then |
10f2d63a VZ |
12339 | ac_cv_c_bigendian=no |
12340 | else | |
698dcdb6 VZ |
12341 | echo "configure: failed program was:" >&5 |
12342 | cat conftest.$ac_ext >&5 | |
12343 | rm -fr conftest* | |
12344 | ac_cv_c_bigendian=yes | |
10f2d63a | 12345 | fi |
698dcdb6 | 12346 | rm -fr conftest* |
10f2d63a | 12347 | fi |
698dcdb6 | 12348 | |
10f2d63a VZ |
12349 | fi |
12350 | fi | |
698dcdb6 VZ |
12351 | |
12352 | echo "$ac_t""$ac_cv_c_bigendian" 1>&6 | |
10f2d63a | 12353 | if test $ac_cv_c_bigendian = unknown; then |
698dcdb6 | 12354 | echo "configure: warning: Assuming little-endian target machine - this may be overriden by adding the line "ac_cv_c_bigendian=${ac_cv_c_bigendian='yes'}" to config.cache file" 1>&2 |
10f2d63a VZ |
12355 | fi |
12356 | if test $ac_cv_c_bigendian = yes; then | |
698dcdb6 | 12357 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
12358 | #define WORDS_BIGENDIAN 1 |
12359 | EOF | |
12360 | ||
12361 | fi | |
12362 | ||
698dcdb6 VZ |
12363 | |
12364 | ||
10f2d63a | 12365 | if test "$cross_compiling" = "yes"; then |
698dcdb6 | 12366 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
12367 | #define wxUSE_IOSTREAMH 1 |
12368 | EOF | |
12369 | ||
12370 | else | |
698dcdb6 VZ |
12371 | |
12372 | ac_ext=C | |
12373 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
1e487827 | 12374 | ac_cpp='$CXXCPP $CPPFLAGS' |
698dcdb6 VZ |
12375 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
12376 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
12377 | cross_compiling=$ac_cv_prog_cxx_cross | |
12378 | ||
703e0a69 | 12379 | |
698dcdb6 | 12380 | for ac_hdr in iostream |
10f2d63a | 12381 | do |
698dcdb6 VZ |
12382 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
12383 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
3f0f0161 | 12384 | echo "configure:12385: checking for $ac_hdr" >&5 |
698dcdb6 VZ |
12385 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
12386 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12387 | else | |
12388 | cat > conftest.$ac_ext <<EOF | |
3f0f0161 | 12389 | #line 12390 "configure" |
10f2d63a | 12390 | #include "confdefs.h" |
698dcdb6 VZ |
12391 | #include <$ac_hdr> |
12392 | EOF | |
12393 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
3f0f0161 | 12394 | { (eval echo configure:12395: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
12395 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
12396 | if test -z "$ac_err"; then | |
12397 | rm -rf conftest* | |
12398 | eval "ac_cv_header_$ac_safe=yes" | |
10f2d63a | 12399 | else |
698dcdb6 VZ |
12400 | echo "$ac_err" >&5 |
12401 | echo "configure: failed program was:" >&5 | |
10f2d63a | 12402 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
12403 | rm -rf conftest* |
12404 | eval "ac_cv_header_$ac_safe=no" | |
10f2d63a | 12405 | fi |
698dcdb6 | 12406 | rm -f conftest* |
10f2d63a | 12407 | fi |
698dcdb6 VZ |
12408 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
12409 | echo "$ac_t""yes" 1>&6 | |
12410 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
12411 | cat >> confdefs.h <<EOF | |
12412 | #define $ac_tr_hdr 1 | |
10f2d63a | 12413 | EOF |
698dcdb6 VZ |
12414 | |
12415 | else | |
12416 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
12417 | fi |
12418 | done | |
12419 | ||
698dcdb6 | 12420 | |
57fe5ed0 VZ |
12421 | if test "$ac_cv_header_iostream" = "yes" ; then |
12422 | : | |
12423 | else | |
698dcdb6 | 12424 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
12425 | #define wxUSE_IOSTREAMH 1 |
12426 | EOF | |
12427 | ||
10f2d63a VZ |
12428 | fi |
12429 | ||
12430 | ac_ext=c | |
698dcdb6 | 12431 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
10f2d63a | 12432 | ac_cpp='$CPP $CPPFLAGS' |
698dcdb6 VZ |
12433 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
12434 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
12435 | cross_compiling=$ac_cv_prog_cc_cross | |
10f2d63a VZ |
12436 | |
12437 | fi | |
12438 | ||
703e0a69 | 12439 | |
698dcdb6 VZ |
12440 | |
12441 | echo $ac_n "checking if C++ compiler supports bool""... $ac_c" 1>&6 | |
3f0f0161 | 12442 | echo "configure:12443: checking if C++ compiler supports bool" >&5 |
698dcdb6 VZ |
12443 | if eval "test \"`echo '$''{'wx_cv_cpp_bool'+set}'`\" = set"; then |
12444 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12445 | else | |
12446 | ||
12447 | ||
12448 | ac_ext=C | |
12449 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
1e487827 | 12450 | ac_cpp='$CXXCPP $CPPFLAGS' |
698dcdb6 VZ |
12451 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
12452 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
12453 | cross_compiling=$ac_cv_prog_cxx_cross | |
10f2d63a | 12454 | |
698dcdb6 VZ |
12455 | |
12456 | cat > conftest.$ac_ext <<EOF | |
3f0f0161 | 12457 | #line 12458 "configure" |
10f2d63a VZ |
12458 | #include "confdefs.h" |
12459 | ||
698dcdb6 VZ |
12460 | |
12461 | int main() { | |
10f2d63a VZ |
12462 | |
12463 | bool b = true; | |
12464 | ||
12465 | return 0; | |
698dcdb6 VZ |
12466 | |
12467 | ; return 0; } | |
12468 | EOF | |
3f0f0161 | 12469 | if { (eval echo configure:12470: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 VZ |
12470 | rm -rf conftest* |
12471 | ||
10f2d63a | 12472 | wx_cv_cpp_bool=yes |
698dcdb6 | 12473 | |
10f2d63a | 12474 | else |
698dcdb6 VZ |
12475 | echo "configure: failed program was:" >&5 |
12476 | cat conftest.$ac_ext >&5 | |
12477 | rm -rf conftest* | |
12478 | ||
10f2d63a | 12479 | wx_cv_cpp_bool=no |
698dcdb6 VZ |
12480 | |
12481 | ||
10f2d63a | 12482 | fi |
698dcdb6 | 12483 | rm -f conftest* |
10f2d63a VZ |
12484 | |
12485 | ac_ext=c | |
698dcdb6 | 12486 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
10f2d63a | 12487 | ac_cpp='$CPP $CPPFLAGS' |
698dcdb6 VZ |
12488 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
12489 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
12490 | cross_compiling=$ac_cv_prog_cc_cross | |
10f2d63a | 12491 | |
698dcdb6 | 12492 | |
10f2d63a | 12493 | fi |
698dcdb6 VZ |
12494 | |
12495 | echo "$ac_t""$wx_cv_cpp_bool" 1>&6 | |
10f2d63a VZ |
12496 | |
12497 | if test "$wx_cv_cpp_bool" = "yes"; then | |
698dcdb6 | 12498 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
12499 | #define HAVE_BOOL 1 |
12500 | EOF | |
12501 | ||
12502 | fi | |
12503 | ||
1e487827 | 12504 | |
698dcdb6 | 12505 | |
698dcdb6 | 12506 | echo $ac_n "checking for wcslen in -lc""... $ac_c" 1>&6 |
3f0f0161 | 12507 | echo "configure:12508: checking for wcslen in -lc" >&5 |
698dcdb6 VZ |
12508 | ac_lib_var=`echo c'_'wcslen | sed 'y%./+-%__p_%'` |
12509 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
12510 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 12511 | else |
698dcdb6 | 12512 | ac_save_LIBS="$LIBS" |
10f2d63a | 12513 | LIBS="-lc $LIBS" |
698dcdb6 | 12514 | cat > conftest.$ac_ext <<EOF |
3f0f0161 | 12515 | #line 12516 "configure" |
10f2d63a VZ |
12516 | #include "confdefs.h" |
12517 | /* Override any gcc2 internal prototype to avoid an error. */ | |
12518 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
12519 | builtin and then its argument prototype would still apply. */ |
12520 | char wcslen(); | |
12521 | ||
12522 | int main() { | |
12523 | wcslen() | |
12524 | ; return 0; } | |
12525 | EOF | |
3f0f0161 | 12526 | if { (eval echo configure:12527: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
12527 | rm -rf conftest* |
12528 | eval "ac_cv_lib_$ac_lib_var=yes" | |
12529 | else | |
12530 | echo "configure: failed program was:" >&5 | |
12531 | cat conftest.$ac_ext >&5 | |
12532 | rm -rf conftest* | |
12533 | eval "ac_cv_lib_$ac_lib_var=no" | |
12534 | fi | |
12535 | rm -f conftest* | |
12536 | LIBS="$ac_save_LIBS" | |
12537 | ||
12538 | fi | |
12539 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
12540 | echo "$ac_t""yes" 1>&6 | |
12541 | ||
12542 | cat >> confdefs.h <<\EOF | |
10f2d63a VZ |
12543 | #define HAVE_WCSLEN 1 |
12544 | EOF | |
12545 | ||
12546 | WCHAR_LINK="" | |
698dcdb6 | 12547 | |
10f2d63a | 12548 | else |
698dcdb6 | 12549 | echo "$ac_t""no" 1>&6 |
10f2d63a | 12550 | |
698dcdb6 | 12551 | echo $ac_n "checking for wcslen in -lw""... $ac_c" 1>&6 |
3f0f0161 | 12552 | echo "configure:12553: checking for wcslen in -lw" >&5 |
698dcdb6 VZ |
12553 | ac_lib_var=`echo w'_'wcslen | sed 'y%./+-%__p_%'` |
12554 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
12555 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 12556 | else |
698dcdb6 | 12557 | ac_save_LIBS="$LIBS" |
10f2d63a | 12558 | LIBS="-lw $LIBS" |
698dcdb6 | 12559 | cat > conftest.$ac_ext <<EOF |
3f0f0161 | 12560 | #line 12561 "configure" |
10f2d63a VZ |
12561 | #include "confdefs.h" |
12562 | /* Override any gcc2 internal prototype to avoid an error. */ | |
12563 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
12564 | builtin and then its argument prototype would still apply. */ |
12565 | char wcslen(); | |
12566 | ||
12567 | int main() { | |
12568 | wcslen() | |
12569 | ; return 0; } | |
12570 | EOF | |
3f0f0161 | 12571 | if { (eval echo configure:12572: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
12572 | rm -rf conftest* |
12573 | eval "ac_cv_lib_$ac_lib_var=yes" | |
12574 | else | |
12575 | echo "configure: failed program was:" >&5 | |
12576 | cat conftest.$ac_ext >&5 | |
12577 | rm -rf conftest* | |
12578 | eval "ac_cv_lib_$ac_lib_var=no" | |
12579 | fi | |
12580 | rm -f conftest* | |
12581 | LIBS="$ac_save_LIBS" | |
12582 | ||
12583 | fi | |
12584 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
12585 | echo "$ac_t""yes" 1>&6 | |
12586 | ||
12587 | cat >> confdefs.h <<\EOF | |
10f2d63a VZ |
12588 | #define HAVE_WCSLEN 1 |
12589 | EOF | |
12590 | ||
12591 | WCHAR_LINK="-lw" | |
698dcdb6 VZ |
12592 | |
12593 | else | |
12594 | echo "$ac_t""no" 1>&6 | |
6232543b | 12595 | fi |
10f2d63a | 12596 | |
698dcdb6 | 12597 | |
1e487827 | 12598 | fi |
703e0a69 | 12599 | |
698dcdb6 VZ |
12600 | |
12601 | echo $ac_n "checking for vprintf""... $ac_c" 1>&6 | |
3f0f0161 | 12602 | echo "configure:12603: checking for vprintf" >&5 |
698dcdb6 VZ |
12603 | if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then |
12604 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12605 | else | |
12606 | cat > conftest.$ac_ext <<EOF | |
3f0f0161 | 12607 | #line 12608 "configure" |
10f2d63a VZ |
12608 | #include "confdefs.h" |
12609 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 12610 | which can conflict with char vprintf(); below. */ |
10f2d63a VZ |
12611 | #include <assert.h> |
12612 | /* Override any gcc2 internal prototype to avoid an error. */ | |
12613 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
12614 | builtin and then its argument prototype would still apply. */ |
12615 | char vprintf(); | |
12616 | ||
12617 | int main() { | |
10f2d63a VZ |
12618 | |
12619 | /* The GNU C library defines this for functions which it implements | |
12620 | to always fail with ENOSYS. Some functions are actually named | |
12621 | something starting with __ and the normal name is an alias. */ | |
698dcdb6 | 12622 | #if defined (__stub_vprintf) || defined (__stub___vprintf) |
10f2d63a VZ |
12623 | choke me |
12624 | #else | |
698dcdb6 | 12625 | vprintf(); |
10f2d63a VZ |
12626 | #endif |
12627 | ||
698dcdb6 VZ |
12628 | ; return 0; } |
12629 | EOF | |
3f0f0161 | 12630 | if { (eval echo configure:12631: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
12631 | rm -rf conftest* |
12632 | eval "ac_cv_func_vprintf=yes" | |
12633 | else | |
12634 | echo "configure: failed program was:" >&5 | |
12635 | cat conftest.$ac_ext >&5 | |
12636 | rm -rf conftest* | |
12637 | eval "ac_cv_func_vprintf=no" | |
12638 | fi | |
12639 | rm -f conftest* | |
12640 | fi | |
12641 | ||
12642 | if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then | |
12643 | echo "$ac_t""yes" 1>&6 | |
12644 | cat >> confdefs.h <<\EOF | |
12645 | #define HAVE_VPRINTF 1 | |
12646 | EOF | |
12647 | ||
12648 | else | |
12649 | echo "$ac_t""no" 1>&6 | |
12650 | fi | |
12651 | ||
12652 | if test "$ac_cv_func_vprintf" != yes; then | |
12653 | echo $ac_n "checking for _doprnt""... $ac_c" 1>&6 | |
3f0f0161 | 12654 | echo "configure:12655: checking for _doprnt" >&5 |
698dcdb6 VZ |
12655 | if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then |
12656 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12657 | else | |
12658 | cat > conftest.$ac_ext <<EOF | |
3f0f0161 | 12659 | #line 12660 "configure" |
10f2d63a VZ |
12660 | #include "confdefs.h" |
12661 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 12662 | which can conflict with char _doprnt(); below. */ |
10f2d63a VZ |
12663 | #include <assert.h> |
12664 | /* Override any gcc2 internal prototype to avoid an error. */ | |
12665 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
12666 | builtin and then its argument prototype would still apply. */ |
12667 | char _doprnt(); | |
12668 | ||
12669 | int main() { | |
10f2d63a VZ |
12670 | |
12671 | /* The GNU C library defines this for functions which it implements | |
12672 | to always fail with ENOSYS. Some functions are actually named | |
12673 | something starting with __ and the normal name is an alias. */ | |
12674 | #if defined (__stub__doprnt) || defined (__stub____doprnt) | |
12675 | choke me | |
12676 | #else | |
698dcdb6 | 12677 | _doprnt(); |
10f2d63a VZ |
12678 | #endif |
12679 | ||
698dcdb6 VZ |
12680 | ; return 0; } |
12681 | EOF | |
3f0f0161 | 12682 | if { (eval echo configure:12683: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
12683 | rm -rf conftest* |
12684 | eval "ac_cv_func__doprnt=yes" | |
12685 | else | |
12686 | echo "configure: failed program was:" >&5 | |
12687 | cat conftest.$ac_ext >&5 | |
12688 | rm -rf conftest* | |
12689 | eval "ac_cv_func__doprnt=no" | |
12690 | fi | |
12691 | rm -f conftest* | |
12692 | fi | |
12693 | ||
12694 | if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then | |
12695 | echo "$ac_t""yes" 1>&6 | |
12696 | cat >> confdefs.h <<\EOF | |
10f2d63a VZ |
12697 | #define HAVE_DOPRNT 1 |
12698 | EOF | |
12699 | ||
698dcdb6 VZ |
12700 | else |
12701 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
12702 | fi |
12703 | ||
12704 | fi | |
12705 | ||
1e487827 | 12706 | |
698dcdb6 VZ |
12707 | |
12708 | ||
12709 | ||
12710 | ||
12711 | ||
12712 | echo $ac_n "checking for vsnprintf""... $ac_c" 1>&6 | |
3f0f0161 | 12713 | echo "configure:12714: checking for vsnprintf" >&5 |
698dcdb6 VZ |
12714 | if eval "test \"`echo '$''{'wx_cv_func_vsnprintf'+set}'`\" = set"; then |
12715 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12716 | else | |
12717 | ||
12718 | cat > conftest.$ac_ext <<EOF | |
3f0f0161 | 12719 | #line 12720 "configure" |
f6bcfd97 BP |
12720 | #include "confdefs.h" |
12721 | ||
12722 | #include <stdio.h> | |
698dcdb6 VZ |
12723 | #include <stdarg.h> |
12724 | ||
12725 | int main() { | |
10f2d63a | 12726 | |
f6bcfd97 | 12727 | int wx_test_vsnprintf(const char *, ...); |
10f2d63a | 12728 | |
f6bcfd97 BP |
12729 | wx_test_vsnprintf("%s"); |
12730 | return 0; | |
12731 | } | |
12732 | ||
12733 | int wx_test_vsnprintf(const char *fmt, ...) | |
12734 | { | |
12735 | char *s; | |
12736 | ||
12737 | va_list argp; | |
12738 | va_start(argp, fmt); | |
12739 | vsnprintf(s, 42, fmt, argp); | |
12740 | va_end(argp); | |
698dcdb6 VZ |
12741 | |
12742 | ; return 0; } | |
12743 | EOF | |
3f0f0161 | 12744 | if { (eval echo configure:12745: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 VZ |
12745 | rm -rf conftest* |
12746 | ||
f6bcfd97 | 12747 | wx_cv_func_vsnprintf=yes |
698dcdb6 | 12748 | |
10f2d63a | 12749 | else |
698dcdb6 VZ |
12750 | echo "configure: failed program was:" >&5 |
12751 | cat conftest.$ac_ext >&5 | |
12752 | rm -rf conftest* | |
12753 | ||
12754 | cat > conftest.$ac_ext <<EOF | |
3f0f0161 | 12755 | #line 12756 "configure" |
c521c494 RL |
12756 | #include "confdefs.h" |
12757 | ||
12758 | #include <stdio.h> | |
12759 | #include <stdarg.h> | |
698dcdb6 VZ |
12760 | |
12761 | int main() { | |
c521c494 RL |
12762 | |
12763 | int wx_test_vsnprintf(const char *, ...); | |
12764 | ||
12765 | wx_test_vsnprintf("%s"); | |
12766 | return 0; | |
12767 | } | |
12768 | ||
12769 | int wx_test_vsnprintf(const char *fmt, ...) | |
12770 | { | |
12771 | char *s; | |
12772 | ||
12773 | va_list argp; | |
12774 | va_start(argp, fmt); | |
12775 | _vsnprintf(s, 42, fmt, argp); | |
12776 | va_end(argp); | |
698dcdb6 VZ |
12777 | |
12778 | ; return 0; } | |
12779 | EOF | |
3f0f0161 | 12780 | if { (eval echo configure:12781: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 VZ |
12781 | rm -rf conftest* |
12782 | ||
c521c494 | 12783 | wx_cv_func_vsnprintf=yes |
698dcdb6 | 12784 | |
c521c494 | 12785 | else |
698dcdb6 VZ |
12786 | echo "configure: failed program was:" >&5 |
12787 | cat conftest.$ac_ext >&5 | |
12788 | rm -rf conftest* | |
12789 | ||
c521c494 | 12790 | wx_cv_func_vsnprintf=no |
698dcdb6 | 12791 | |
10f2d63a | 12792 | fi |
698dcdb6 VZ |
12793 | rm -f conftest* |
12794 | ||
6232543b | 12795 | fi |
698dcdb6 | 12796 | rm -f conftest* |
703e0a69 | 12797 | |
1e487827 | 12798 | fi |
698dcdb6 VZ |
12799 | |
12800 | echo "$ac_t""$wx_cv_func_vsnprintf" 1>&6 | |
10f2d63a | 12801 | |
9d8deca0 | 12802 | if test "$wx_cv_func_vsnprintf" = yes; then |
698dcdb6 | 12803 | cat >> confdefs.h <<\EOF |
9d8deca0 VZ |
12804 | #define HAVE_VSNPRINTF 1 |
12805 | EOF | |
12806 | ||
12807 | else | |
698dcdb6 | 12808 | echo "configure: warning: unsafe function sprintf will be used instead of snprintf" 1>&2 |
9d8deca0 VZ |
12809 | fi |
12810 | ||
698dcdb6 | 12811 | echo $ac_n "checking for vsscanf""... $ac_c" 1>&6 |
3f0f0161 | 12812 | echo "configure:12813: checking for vsscanf" >&5 |
698dcdb6 VZ |
12813 | if eval "test \"`echo '$''{'wx_cv_func_vsscanf'+set}'`\" = set"; then |
12814 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 12815 | else |
698dcdb6 VZ |
12816 | |
12817 | cat > conftest.$ac_ext <<EOF | |
3f0f0161 | 12818 | #line 12819 "configure" |
10f2d63a | 12819 | #include "confdefs.h" |
10f2d63a | 12820 | |
f6bcfd97 BP |
12821 | #include <stdio.h> |
12822 | #include <stdarg.h> | |
698dcdb6 VZ |
12823 | |
12824 | int main() { | |
10f2d63a | 12825 | |
f6bcfd97 | 12826 | int wx_test_vsscanf(const char *, ...); |
10f2d63a | 12827 | |
f6bcfd97 BP |
12828 | wx_test_vsscanf("%d"); |
12829 | return 0; | |
10f2d63a VZ |
12830 | } |
12831 | ||
f6bcfd97 | 12832 | int wx_test_vsscanf(const char *fmt, ...) |
10f2d63a | 12833 | { |
f6bcfd97 BP |
12834 | va_list argp; |
12835 | va_start(argp, fmt); | |
12836 | vsscanf("42", fmt, argp); | |
12837 | va_end(argp); | |
698dcdb6 VZ |
12838 | |
12839 | ; return 0; } | |
12840 | EOF | |
3f0f0161 | 12841 | if { (eval echo configure:12842: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 VZ |
12842 | rm -rf conftest* |
12843 | ||
f6bcfd97 | 12844 | wx_cv_func_vsscanf=yes |
698dcdb6 | 12845 | |
10f2d63a | 12846 | else |
698dcdb6 VZ |
12847 | echo "configure: failed program was:" >&5 |
12848 | cat conftest.$ac_ext >&5 | |
12849 | rm -rf conftest* | |
12850 | ||
f6bcfd97 | 12851 | wx_cv_func_vsscanf=no |
698dcdb6 | 12852 | |
6232543b | 12853 | fi |
698dcdb6 | 12854 | rm -f conftest* |
703e0a69 | 12855 | |
1e487827 | 12856 | fi |
698dcdb6 VZ |
12857 | |
12858 | echo "$ac_t""$wx_cv_func_vsscanf" 1>&6 | |
10f2d63a | 12859 | |
9d8deca0 | 12860 | if test "$wx_cv_func_vsscanf" = yes; then |
698dcdb6 | 12861 | cat >> confdefs.h <<\EOF |
9d8deca0 VZ |
12862 | #define HAVE_VSSCANF 1 |
12863 | EOF | |
12864 | ||
12865 | fi | |
12866 | ||
95c8801c VS |
12867 | if test "$TOOLKIT" != "MSW"; then |
12868 | ||
12869 | ||
12870 | ||
698dcdb6 VZ |
12871 | ac_ext=C |
12872 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
12873 | ac_cpp='$CXXCPP $CPPFLAGS' | |
12874 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
12875 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
12876 | cross_compiling=$ac_cv_prog_cxx_cross | |
12877 | ||
12878 | echo $ac_n "checking if iconv() takes char**""... $ac_c" 1>&6 | |
3f0f0161 | 12879 | echo "configure:12880: checking if iconv() takes char**" >&5 |
698dcdb6 VZ |
12880 | if eval "test \"`echo '$''{'wx_cv_iconv_takes_char'+set}'`\" = set"; then |
12881 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12882 | else | |
12883 | ||
12884 | cat > conftest.$ac_ext <<EOF | |
3f0f0161 | 12885 | #line 12886 "configure" |
95c8801c VS |
12886 | #include "confdefs.h" |
12887 | #include <iconv.h> | |
698dcdb6 | 12888 | int main() { |
95c8801c VS |
12889 | |
12890 | char **inbuf, **outbuf; | |
19af3b06 VZ |
12891 | iconv_t cd; |
12892 | size_t insz, outsz; | |
12893 | iconv(cd, inbuf, &insz, outbuf, &outsz); | |
698dcdb6 VZ |
12894 | |
12895 | ; return 0; } | |
12896 | EOF | |
3f0f0161 | 12897 | if { (eval echo configure:12898: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 | 12898 | rm -rf conftest* |
95c8801c VS |
12899 | wx_cv_iconv_takes_char=yes |
12900 | else | |
698dcdb6 VZ |
12901 | echo "configure: failed program was:" >&5 |
12902 | cat conftest.$ac_ext >&5 | |
12903 | rm -rf conftest* | |
12904 | wx_cv_iconv_takes_char=no | |
95c8801c | 12905 | fi |
698dcdb6 | 12906 | rm -f conftest* |
95c8801c VS |
12907 | |
12908 | fi | |
698dcdb6 VZ |
12909 | |
12910 | echo "$ac_t""$wx_cv_iconv_takes_char" 1>&6 | |
10f2d63a | 12911 | ac_ext=c |
698dcdb6 | 12912 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
10f2d63a | 12913 | ac_cpp='$CPP $CPPFLAGS' |
698dcdb6 VZ |
12914 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
12915 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
12916 | cross_compiling=$ac_cv_prog_cc_cross | |
10f2d63a | 12917 | |
95c8801c | 12918 | if test "$wx_cv_iconv_takes_char" = yes ; then |
698dcdb6 | 12919 | cat >> confdefs.h <<\EOF |
95c8801c VS |
12920 | #define WX_ICONV_TAKES_CHAR 1 |
12921 | EOF | |
12922 | ||
12923 | fi | |
10f2d63a | 12924 | |
1e487827 | 12925 | |
698dcdb6 VZ |
12926 | if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then |
12927 | for ac_func in sigaction | |
eb4efbdc | 12928 | do |
698dcdb6 | 12929 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
3f0f0161 | 12930 | echo "configure:12931: checking for $ac_func" >&5 |
698dcdb6 VZ |
12931 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
12932 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12933 | else | |
12934 | cat > conftest.$ac_ext <<EOF | |
3f0f0161 | 12935 | #line 12936 "configure" |
eb4efbdc VZ |
12936 | #include "confdefs.h" |
12937 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 12938 | which can conflict with char $ac_func(); below. */ |
eb4efbdc VZ |
12939 | #include <assert.h> |
12940 | /* Override any gcc2 internal prototype to avoid an error. */ | |
12941 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
12942 | builtin and then its argument prototype would still apply. */ |
12943 | char $ac_func(); | |
12944 | ||
12945 | int main() { | |
eb4efbdc VZ |
12946 | |
12947 | /* The GNU C library defines this for functions which it implements | |
12948 | to always fail with ENOSYS. Some functions are actually named | |
12949 | something starting with __ and the normal name is an alias. */ | |
12950 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
12951 | choke me | |
12952 | #else | |
698dcdb6 | 12953 | $ac_func(); |
eb4efbdc VZ |
12954 | #endif |
12955 | ||
698dcdb6 | 12956 | ; return 0; } |
eb4efbdc | 12957 | EOF |
3f0f0161 | 12958 | if { (eval echo configure:12959: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
12959 | rm -rf conftest* |
12960 | eval "ac_cv_func_$ac_func=yes" | |
12961 | else | |
12962 | echo "configure: failed program was:" >&5 | |
12963 | cat conftest.$ac_ext >&5 | |
12964 | rm -rf conftest* | |
12965 | eval "ac_cv_func_$ac_func=no" | |
12966 | fi | |
12967 | rm -f conftest* | |
12968 | fi | |
eb4efbdc | 12969 | |
698dcdb6 VZ |
12970 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
12971 | echo "$ac_t""yes" 1>&6 | |
12972 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
12973 | cat >> confdefs.h <<EOF | |
12974 | #define $ac_tr_func 1 | |
12975 | EOF | |
12976 | ||
12977 | else | |
12978 | echo "$ac_t""no" 1>&6 | |
eb4efbdc VZ |
12979 | fi |
12980 | done | |
12981 | ||
698dcdb6 | 12982 | |
eb4efbdc | 12983 | if test "$ac_cv_func_sigaction" = "no"; then |
698dcdb6 | 12984 | echo "configure: warning: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" 1>&2 |
eb4efbdc VZ |
12985 | wxUSE_ON_FATAL_EXCEPTION=no |
12986 | fi | |
f6bcfd97 BP |
12987 | |
12988 | if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then | |
698dcdb6 VZ |
12989 | |
12990 | ac_ext=C | |
12991 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
1e487827 | 12992 | ac_cpp='$CXXCPP $CPPFLAGS' |
698dcdb6 VZ |
12993 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
12994 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
12995 | cross_compiling=$ac_cv_prog_cxx_cross | |
6232543b | 12996 | |
1e487827 | 12997 | |
698dcdb6 | 12998 | echo $ac_n "checking for sa_handler type""... $ac_c" 1>&6 |
3f0f0161 | 12999 | echo "configure:13000: checking for sa_handler type" >&5 |
698dcdb6 VZ |
13000 | if eval "test \"`echo '$''{'wx_cv_type_sa_handler'+set}'`\" = set"; then |
13001 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13002 | else | |
13003 | ||
13004 | cat > conftest.$ac_ext <<EOF | |
3f0f0161 | 13005 | #line 13006 "configure" |
f6bcfd97 BP |
13006 | #include "confdefs.h" |
13007 | #include <signal.h> | |
698dcdb6 | 13008 | int main() { |
f6bcfd97 BP |
13009 | |
13010 | extern void testSigHandler(int); | |
13011 | ||
13012 | struct sigaction sa; | |
13013 | sa.sa_handler = testSigHandler; | |
698dcdb6 VZ |
13014 | |
13015 | ; return 0; } | |
13016 | EOF | |
3f0f0161 | 13017 | if { (eval echo configure:13018: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 VZ |
13018 | rm -rf conftest* |
13019 | ||
f6bcfd97 | 13020 | wx_cv_type_sa_handler=int |
698dcdb6 | 13021 | |
f6bcfd97 | 13022 | else |
698dcdb6 VZ |
13023 | echo "configure: failed program was:" >&5 |
13024 | cat conftest.$ac_ext >&5 | |
13025 | rm -rf conftest* | |
13026 | ||
f6bcfd97 | 13027 | wx_cv_type_sa_handler=void |
698dcdb6 | 13028 | |
6232543b | 13029 | fi |
698dcdb6 VZ |
13030 | rm -f conftest* |
13031 | ||
1e487827 | 13032 | fi |
698dcdb6 VZ |
13033 | |
13034 | echo "$ac_t""$wx_cv_type_sa_handler" 1>&6 | |
f6bcfd97 BP |
13035 | |
13036 | ac_ext=c | |
698dcdb6 | 13037 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
f6bcfd97 | 13038 | ac_cpp='$CPP $CPPFLAGS' |
698dcdb6 VZ |
13039 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
13040 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
13041 | cross_compiling=$ac_cv_prog_cc_cross | |
13042 | ||
703e0a69 | 13043 | |
698dcdb6 | 13044 | cat >> confdefs.h <<EOF |
f6bcfd97 BP |
13045 | #define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler |
13046 | EOF | |
13047 | ||
13048 | fi | |
eb4efbdc VZ |
13049 | fi |
13050 | ||
10f2d63a VZ |
13051 | for ac_func in vfork |
13052 | do | |
698dcdb6 | 13053 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
3f0f0161 | 13054 | echo "configure:13055: checking for $ac_func" >&5 |
698dcdb6 VZ |
13055 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
13056 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13057 | else | |
13058 | cat > conftest.$ac_ext <<EOF | |
3f0f0161 | 13059 | #line 13060 "configure" |
10f2d63a VZ |
13060 | #include "confdefs.h" |
13061 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 13062 | which can conflict with char $ac_func(); below. */ |
10f2d63a VZ |
13063 | #include <assert.h> |
13064 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13065 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
13066 | builtin and then its argument prototype would still apply. */ |
13067 | char $ac_func(); | |
13068 | ||
13069 | int main() { | |
10f2d63a VZ |
13070 | |
13071 | /* The GNU C library defines this for functions which it implements | |
13072 | to always fail with ENOSYS. Some functions are actually named | |
13073 | something starting with __ and the normal name is an alias. */ | |
13074 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
13075 | choke me | |
13076 | #else | |
698dcdb6 | 13077 | $ac_func(); |
10f2d63a VZ |
13078 | #endif |
13079 | ||
698dcdb6 | 13080 | ; return 0; } |
10f2d63a | 13081 | EOF |
3f0f0161 | 13082 | if { (eval echo configure:13083: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
13083 | rm -rf conftest* |
13084 | eval "ac_cv_func_$ac_func=yes" | |
13085 | else | |
13086 | echo "configure: failed program was:" >&5 | |
13087 | cat conftest.$ac_ext >&5 | |
13088 | rm -rf conftest* | |
13089 | eval "ac_cv_func_$ac_func=no" | |
13090 | fi | |
13091 | rm -f conftest* | |
13092 | fi | |
270a909e | 13093 | |
698dcdb6 VZ |
13094 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
13095 | echo "$ac_t""yes" 1>&6 | |
13096 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
13097 | cat >> confdefs.h <<EOF | |
13098 | #define $ac_tr_func 1 | |
13099 | EOF | |
13100 | ||
13101 | else | |
13102 | echo "$ac_t""no" 1>&6 | |
270a909e VZ |
13103 | fi |
13104 | done | |
13105 | ||
1e487827 | 13106 | |
698dcdb6 VZ |
13107 | if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then |
13108 | for ac_func in fcntl flock | |
4f3c5f06 | 13109 | do |
698dcdb6 | 13110 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
3f0f0161 | 13111 | echo "configure:13112: checking for $ac_func" >&5 |
698dcdb6 VZ |
13112 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
13113 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13114 | else | |
13115 | cat > conftest.$ac_ext <<EOF | |
3f0f0161 | 13116 | #line 13117 "configure" |
4f3c5f06 VZ |
13117 | #include "confdefs.h" |
13118 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 13119 | which can conflict with char $ac_func(); below. */ |
4f3c5f06 VZ |
13120 | #include <assert.h> |
13121 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13122 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
13123 | builtin and then its argument prototype would still apply. */ |
13124 | char $ac_func(); | |
13125 | ||
13126 | int main() { | |
4f3c5f06 VZ |
13127 | |
13128 | /* The GNU C library defines this for functions which it implements | |
13129 | to always fail with ENOSYS. Some functions are actually named | |
13130 | something starting with __ and the normal name is an alias. */ | |
13131 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
13132 | choke me | |
13133 | #else | |
698dcdb6 | 13134 | $ac_func(); |
4f3c5f06 VZ |
13135 | #endif |
13136 | ||
698dcdb6 VZ |
13137 | ; return 0; } |
13138 | EOF | |
3f0f0161 | 13139 | if { (eval echo configure:13140: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
13140 | rm -rf conftest* |
13141 | eval "ac_cv_func_$ac_func=yes" | |
13142 | else | |
13143 | echo "configure: failed program was:" >&5 | |
13144 | cat conftest.$ac_ext >&5 | |
13145 | rm -rf conftest* | |
13146 | eval "ac_cv_func_$ac_func=no" | |
13147 | fi | |
13148 | rm -f conftest* | |
13149 | fi | |
13150 | ||
13151 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
13152 | echo "$ac_t""yes" 1>&6 | |
13153 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
13154 | cat >> confdefs.h <<EOF | |
13155 | #define $ac_tr_func 1 | |
4f3c5f06 VZ |
13156 | EOF |
13157 | break | |
698dcdb6 VZ |
13158 | else |
13159 | echo "$ac_t""no" 1>&6 | |
4f3c5f06 VZ |
13160 | fi |
13161 | done | |
13162 | ||
698dcdb6 | 13163 | |
4f3c5f06 | 13164 | if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then |
698dcdb6 | 13165 | echo "configure: warning: wxSingleInstanceChecker not available" 1>&2 |
4f3c5f06 VZ |
13166 | wxUSE_SNGLINST_CHECKER=no |
13167 | fi | |
13168 | fi | |
13169 | ||
270a909e VZ |
13170 | for ac_func in timegm |
13171 | do | |
698dcdb6 | 13172 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
3f0f0161 | 13173 | echo "configure:13174: checking for $ac_func" >&5 |
698dcdb6 VZ |
13174 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
13175 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13176 | else | |
13177 | cat > conftest.$ac_ext <<EOF | |
3f0f0161 | 13178 | #line 13179 "configure" |
270a909e VZ |
13179 | #include "confdefs.h" |
13180 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 13181 | which can conflict with char $ac_func(); below. */ |
270a909e VZ |
13182 | #include <assert.h> |
13183 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13184 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
13185 | builtin and then its argument prototype would still apply. */ |
13186 | char $ac_func(); | |
13187 | ||
13188 | int main() { | |
270a909e VZ |
13189 | |
13190 | /* The GNU C library defines this for functions which it implements | |
13191 | to always fail with ENOSYS. Some functions are actually named | |
13192 | something starting with __ and the normal name is an alias. */ | |
13193 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
13194 | choke me | |
13195 | #else | |
698dcdb6 | 13196 | $ac_func(); |
270a909e VZ |
13197 | #endif |
13198 | ||
698dcdb6 | 13199 | ; return 0; } |
270a909e | 13200 | EOF |
3f0f0161 | 13201 | if { (eval echo configure:13202: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
13202 | rm -rf conftest* |
13203 | eval "ac_cv_func_$ac_func=yes" | |
13204 | else | |
13205 | echo "configure: failed program was:" >&5 | |
13206 | cat conftest.$ac_ext >&5 | |
13207 | rm -rf conftest* | |
13208 | eval "ac_cv_func_$ac_func=no" | |
13209 | fi | |
13210 | rm -f conftest* | |
13211 | fi | |
10f2d63a | 13212 | |
698dcdb6 VZ |
13213 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
13214 | echo "$ac_t""yes" 1>&6 | |
13215 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
13216 | cat >> confdefs.h <<EOF | |
13217 | #define $ac_tr_func 1 | |
13218 | EOF | |
13219 | ||
13220 | else | |
13221 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
13222 | fi |
13223 | done | |
13224 | ||
698dcdb6 | 13225 | |
8fd0d89b VZ |
13226 | for ac_func in putenv setenv |
13227 | do | |
698dcdb6 | 13228 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
3f0f0161 | 13229 | echo "configure:13230: checking for $ac_func" >&5 |
698dcdb6 VZ |
13230 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
13231 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13232 | else | |
13233 | cat > conftest.$ac_ext <<EOF | |
3f0f0161 | 13234 | #line 13235 "configure" |
8fd0d89b VZ |
13235 | #include "confdefs.h" |
13236 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 13237 | which can conflict with char $ac_func(); below. */ |
8fd0d89b VZ |
13238 | #include <assert.h> |
13239 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13240 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
13241 | builtin and then its argument prototype would still apply. */ |
13242 | char $ac_func(); | |
13243 | ||
13244 | int main() { | |
8fd0d89b VZ |
13245 | |
13246 | /* The GNU C library defines this for functions which it implements | |
13247 | to always fail with ENOSYS. Some functions are actually named | |
13248 | something starting with __ and the normal name is an alias. */ | |
13249 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
13250 | choke me | |
13251 | #else | |
698dcdb6 | 13252 | $ac_func(); |
8fd0d89b VZ |
13253 | #endif |
13254 | ||
698dcdb6 VZ |
13255 | ; return 0; } |
13256 | EOF | |
3f0f0161 | 13257 | if { (eval echo configure:13258: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
13258 | rm -rf conftest* |
13259 | eval "ac_cv_func_$ac_func=yes" | |
13260 | else | |
13261 | echo "configure: failed program was:" >&5 | |
13262 | cat conftest.$ac_ext >&5 | |
13263 | rm -rf conftest* | |
13264 | eval "ac_cv_func_$ac_func=no" | |
13265 | fi | |
13266 | rm -f conftest* | |
13267 | fi | |
13268 | ||
13269 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
13270 | echo "$ac_t""yes" 1>&6 | |
13271 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
13272 | cat >> confdefs.h <<EOF | |
13273 | #define $ac_tr_func 1 | |
8fd0d89b VZ |
13274 | EOF |
13275 | break | |
698dcdb6 VZ |
13276 | else |
13277 | echo "$ac_t""no" 1>&6 | |
8fd0d89b VZ |
13278 | fi |
13279 | done | |
13280 | ||
698dcdb6 | 13281 | |
b12915c1 VZ |
13282 | HAVE_SOME_SLEEP_FUNC=0 |
13283 | if test "$USE_BEOS" = 1; then | |
698dcdb6 | 13284 | cat >> confdefs.h <<\EOF |
b12915c1 VZ |
13285 | #define HAVE_SLEEP 1 |
13286 | EOF | |
13287 | ||
13288 | HAVE_SOME_SLEEP_FUNC=1 | |
13289 | fi | |
13290 | ||
f11bdd03 | 13291 | if test "$USE_DARWIN" = 1; then |
698dcdb6 | 13292 | cat >> confdefs.h <<\EOF |
b4085ce6 GD |
13293 | #define HAVE_USLEEP 1 |
13294 | EOF | |
13295 | ||
13296 | HAVE_SOME_SLEEP_FUNC=1 | |
13297 | fi | |
13298 | ||
b12915c1 VZ |
13299 | if test "$HAVE_SOME_SLEEP_FUNC" != 1; then |
13300 | POSIX4_LINK= | |
698dcdb6 | 13301 | for ac_func in nanosleep |
10f2d63a | 13302 | do |
698dcdb6 | 13303 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
3f0f0161 | 13304 | echo "configure:13305: checking for $ac_func" >&5 |
698dcdb6 VZ |
13305 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
13306 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13307 | else | |
13308 | cat > conftest.$ac_ext <<EOF | |
3f0f0161 | 13309 | #line 13310 "configure" |
10f2d63a VZ |
13310 | #include "confdefs.h" |
13311 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 13312 | which can conflict with char $ac_func(); below. */ |
10f2d63a VZ |
13313 | #include <assert.h> |
13314 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13315 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
13316 | builtin and then its argument prototype would still apply. */ |
13317 | char $ac_func(); | |
13318 | ||
13319 | int main() { | |
10f2d63a VZ |
13320 | |
13321 | /* The GNU C library defines this for functions which it implements | |
13322 | to always fail with ENOSYS. Some functions are actually named | |
13323 | something starting with __ and the normal name is an alias. */ | |
13324 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
13325 | choke me | |
13326 | #else | |
698dcdb6 | 13327 | $ac_func(); |
10f2d63a VZ |
13328 | #endif |
13329 | ||
698dcdb6 VZ |
13330 | ; return 0; } |
13331 | EOF | |
3f0f0161 | 13332 | if { (eval echo configure:13333: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
13333 | rm -rf conftest* |
13334 | eval "ac_cv_func_$ac_func=yes" | |
13335 | else | |
13336 | echo "configure: failed program was:" >&5 | |
13337 | cat conftest.$ac_ext >&5 | |
13338 | rm -rf conftest* | |
13339 | eval "ac_cv_func_$ac_func=no" | |
13340 | fi | |
13341 | rm -f conftest* | |
13342 | fi | |
13343 | ||
13344 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
13345 | echo "$ac_t""yes" 1>&6 | |
13346 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
13347 | cat >> confdefs.h <<EOF | |
13348 | #define $ac_tr_func 1 | |
13349 | EOF | |
13350 | cat >> confdefs.h <<\EOF | |
10f2d63a VZ |
13351 | #define HAVE_NANOSLEEP 1 |
13352 | EOF | |
13353 | ||
13354 | else | |
698dcdb6 VZ |
13355 | echo "$ac_t""no" 1>&6 |
13356 | echo $ac_n "checking for nanosleep in -lposix4""... $ac_c" 1>&6 | |
3f0f0161 | 13357 | echo "configure:13358: checking for nanosleep in -lposix4" >&5 |
698dcdb6 VZ |
13358 | ac_lib_var=`echo posix4'_'nanosleep | sed 'y%./+-%__p_%'` |
13359 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
13360 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 13361 | else |
698dcdb6 | 13362 | ac_save_LIBS="$LIBS" |
10f2d63a | 13363 | LIBS="-lposix4 $LIBS" |
698dcdb6 | 13364 | cat > conftest.$ac_ext <<EOF |
3f0f0161 | 13365 | #line 13366 "configure" |
10f2d63a VZ |
13366 | #include "confdefs.h" |
13367 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13368 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
13369 | builtin and then its argument prototype would still apply. */ |
13370 | char nanosleep(); | |
13371 | ||
13372 | int main() { | |
13373 | nanosleep() | |
13374 | ; return 0; } | |
13375 | EOF | |
3f0f0161 | 13376 | if { (eval echo configure:13377: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
13377 | rm -rf conftest* |
13378 | eval "ac_cv_lib_$ac_lib_var=yes" | |
13379 | else | |
13380 | echo "configure: failed program was:" >&5 | |
13381 | cat conftest.$ac_ext >&5 | |
13382 | rm -rf conftest* | |
13383 | eval "ac_cv_lib_$ac_lib_var=no" | |
13384 | fi | |
13385 | rm -f conftest* | |
13386 | LIBS="$ac_save_LIBS" | |
13387 | ||
13388 | fi | |
13389 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
13390 | echo "$ac_t""yes" 1>&6 | |
13391 | ||
13392 | cat >> confdefs.h <<\EOF | |
10f2d63a VZ |
13393 | #define HAVE_NANOSLEEP 1 |
13394 | EOF | |
13395 | ||
b12915c1 | 13396 | POSIX4_LINK="-lposix4" |
698dcdb6 | 13397 | |
10f2d63a | 13398 | else |
698dcdb6 | 13399 | echo "$ac_t""no" 1>&6 |
10f2d63a | 13400 | |
698dcdb6 | 13401 | for ac_func in usleep |
10f2d63a | 13402 | do |
698dcdb6 | 13403 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
3f0f0161 | 13404 | echo "configure:13405: checking for $ac_func" >&5 |
698dcdb6 VZ |
13405 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
13406 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13407 | else | |
13408 | cat > conftest.$ac_ext <<EOF | |
3f0f0161 | 13409 | #line 13410 "configure" |
10f2d63a VZ |
13410 | #include "confdefs.h" |
13411 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 13412 | which can conflict with char $ac_func(); below. */ |
10f2d63a VZ |
13413 | #include <assert.h> |
13414 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13415 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
13416 | builtin and then its argument prototype would still apply. */ |
13417 | char $ac_func(); | |
13418 | ||
13419 | int main() { | |
10f2d63a VZ |
13420 | |
13421 | /* The GNU C library defines this for functions which it implements | |
13422 | to always fail with ENOSYS. Some functions are actually named | |
13423 | something starting with __ and the normal name is an alias. */ | |
13424 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
13425 | choke me | |
13426 | #else | |
698dcdb6 | 13427 | $ac_func(); |
10f2d63a VZ |
13428 | #endif |
13429 | ||
698dcdb6 VZ |
13430 | ; return 0; } |
13431 | EOF | |
3f0f0161 | 13432 | if { (eval echo configure:13433: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
13433 | rm -rf conftest* |
13434 | eval "ac_cv_func_$ac_func=yes" | |
13435 | else | |
13436 | echo "configure: failed program was:" >&5 | |
13437 | cat conftest.$ac_ext >&5 | |
13438 | rm -rf conftest* | |
13439 | eval "ac_cv_func_$ac_func=no" | |
13440 | fi | |
13441 | rm -f conftest* | |
13442 | fi | |
13443 | ||
13444 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
13445 | echo "$ac_t""yes" 1>&6 | |
13446 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
13447 | cat >> confdefs.h <<EOF | |
13448 | #define $ac_tr_func 1 | |
13449 | EOF | |
13450 | cat >> confdefs.h <<\EOF | |
b4085ce6 GD |
13451 | #define HAVE_USLEEP 1 |
13452 | EOF | |
13453 | ||
10f2d63a | 13454 | else |
698dcdb6 VZ |
13455 | echo "$ac_t""no" 1>&6 |
13456 | echo "configure: warning: wxSleep() function will not work" 1>&2 | |
13457 | ||
10f2d63a VZ |
13458 | fi |
13459 | done | |
13460 | ||
698dcdb6 VZ |
13461 | |
13462 | ||
10f2d63a VZ |
13463 | fi |
13464 | ||
698dcdb6 VZ |
13465 | |
13466 | ||
10f2d63a VZ |
13467 | fi |
13468 | done | |
13469 | ||
b12915c1 | 13470 | fi |
10f2d63a VZ |
13471 | |
13472 | for ac_func in uname gethostname | |
13473 | do | |
698dcdb6 | 13474 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
3f0f0161 | 13475 | echo "configure:13476: checking for $ac_func" >&5 |
698dcdb6 VZ |
13476 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
13477 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13478 | else | |
13479 | cat > conftest.$ac_ext <<EOF | |
3f0f0161 | 13480 | #line 13481 "configure" |
10f2d63a VZ |
13481 | #include "confdefs.h" |
13482 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 13483 | which can conflict with char $ac_func(); below. */ |
10f2d63a VZ |
13484 | #include <assert.h> |
13485 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13486 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
13487 | builtin and then its argument prototype would still apply. */ |
13488 | char $ac_func(); | |
13489 | ||
13490 | int main() { | |
10f2d63a VZ |
13491 | |
13492 | /* The GNU C library defines this for functions which it implements | |
13493 | to always fail with ENOSYS. Some functions are actually named | |
13494 | something starting with __ and the normal name is an alias. */ | |
13495 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
13496 | choke me | |
13497 | #else | |
698dcdb6 | 13498 | $ac_func(); |
10f2d63a VZ |
13499 | #endif |
13500 | ||
698dcdb6 VZ |
13501 | ; return 0; } |
13502 | EOF | |
3f0f0161 | 13503 | if { (eval echo configure:13504: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
13504 | rm -rf conftest* |
13505 | eval "ac_cv_func_$ac_func=yes" | |
13506 | else | |
13507 | echo "configure: failed program was:" >&5 | |
13508 | cat conftest.$ac_ext >&5 | |
13509 | rm -rf conftest* | |
13510 | eval "ac_cv_func_$ac_func=no" | |
13511 | fi | |
13512 | rm -f conftest* | |
13513 | fi | |
13514 | ||
13515 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
13516 | echo "$ac_t""yes" 1>&6 | |
13517 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
13518 | cat >> confdefs.h <<EOF | |
13519 | #define $ac_tr_func 1 | |
10f2d63a VZ |
13520 | EOF |
13521 | break | |
698dcdb6 VZ |
13522 | else |
13523 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
13524 | fi |
13525 | done | |
13526 | ||
698dcdb6 VZ |
13527 | |
13528 | ||
13529 | ac_ext=C | |
13530 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
6098c7f9 | 13531 | ac_cpp='$CXXCPP $CPPFLAGS' |
698dcdb6 VZ |
13532 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
13533 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
13534 | cross_compiling=$ac_cv_prog_cxx_cross | |
13535 | ||
6098c7f9 | 13536 | |
10f2d63a VZ |
13537 | for ac_func in strtok_r |
13538 | do | |
698dcdb6 | 13539 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
3f0f0161 | 13540 | echo "configure:13541: checking for $ac_func" >&5 |
698dcdb6 VZ |
13541 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
13542 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13543 | else | |
13544 | cat > conftest.$ac_ext <<EOF | |
3f0f0161 | 13545 | #line 13546 "configure" |
10f2d63a VZ |
13546 | #include "confdefs.h" |
13547 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 13548 | which can conflict with char $ac_func(); below. */ |
10f2d63a VZ |
13549 | #include <assert.h> |
13550 | /* Override any gcc2 internal prototype to avoid an error. */ | |
6098c7f9 VZ |
13551 | #ifdef __cplusplus |
13552 | extern "C" | |
13553 | #endif | |
10f2d63a | 13554 | /* We use char because int might match the return type of a gcc2 |
698dcdb6 VZ |
13555 | builtin and then its argument prototype would still apply. */ |
13556 | char $ac_func(); | |
13557 | ||
13558 | int main() { | |
10f2d63a VZ |
13559 | |
13560 | /* The GNU C library defines this for functions which it implements | |
13561 | to always fail with ENOSYS. Some functions are actually named | |
13562 | something starting with __ and the normal name is an alias. */ | |
13563 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
13564 | choke me | |
13565 | #else | |
698dcdb6 | 13566 | $ac_func(); |
10f2d63a VZ |
13567 | #endif |
13568 | ||
698dcdb6 | 13569 | ; return 0; } |
10f2d63a | 13570 | EOF |
3f0f0161 | 13571 | if { (eval echo configure:13572: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
13572 | rm -rf conftest* |
13573 | eval "ac_cv_func_$ac_func=yes" | |
13574 | else | |
13575 | echo "configure: failed program was:" >&5 | |
13576 | cat conftest.$ac_ext >&5 | |
13577 | rm -rf conftest* | |
13578 | eval "ac_cv_func_$ac_func=no" | |
13579 | fi | |
13580 | rm -f conftest* | |
13581 | fi | |
10f2d63a | 13582 | |
698dcdb6 VZ |
13583 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
13584 | echo "$ac_t""yes" 1>&6 | |
13585 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
13586 | cat >> confdefs.h <<EOF | |
13587 | #define $ac_tr_func 1 | |
13588 | EOF | |
13589 | ||
13590 | else | |
13591 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
13592 | fi |
13593 | done | |
13594 | ||
698dcdb6 | 13595 | |
6098c7f9 | 13596 | ac_ext=c |
698dcdb6 | 13597 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
6098c7f9 | 13598 | ac_cpp='$CPP $CPPFLAGS' |
698dcdb6 VZ |
13599 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
13600 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
13601 | cross_compiling=$ac_cv_prog_cc_cross | |
6232543b | 13602 | |
1e487827 | 13603 | |
698dcdb6 | 13604 | INET_LINK= |
10f2d63a VZ |
13605 | for ac_func in inet_addr |
13606 | do | |
698dcdb6 | 13607 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
3f0f0161 | 13608 | echo "configure:13609: checking for $ac_func" >&5 |
698dcdb6 VZ |
13609 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
13610 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13611 | else | |
13612 | cat > conftest.$ac_ext <<EOF | |
3f0f0161 | 13613 | #line 13614 "configure" |
10f2d63a VZ |
13614 | #include "confdefs.h" |
13615 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 VZ |
13616 | which can conflict with char $ac_func(); below. */ |
13617 | #include <assert.h> | |
13618 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10f2d63a | 13619 | /* We use char because int might match the return type of a gcc2 |
698dcdb6 VZ |
13620 | builtin and then its argument prototype would still apply. */ |
13621 | char $ac_func(); | |
13622 | ||
13623 | int main() { | |
10f2d63a VZ |
13624 | |
13625 | /* The GNU C library defines this for functions which it implements | |
13626 | to always fail with ENOSYS. Some functions are actually named | |
1e487827 VS |
13627 | something starting with __ and the normal name is an alias. */ |
13628 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
13629 | choke me | |
13630 | #else | |
698dcdb6 | 13631 | $ac_func(); |
1e487827 | 13632 | #endif |
703e0a69 | 13633 | |
698dcdb6 VZ |
13634 | ; return 0; } |
13635 | EOF | |
3f0f0161 | 13636 | if { (eval echo configure:13637: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
13637 | rm -rf conftest* |
13638 | eval "ac_cv_func_$ac_func=yes" | |
13639 | else | |
13640 | echo "configure: failed program was:" >&5 | |
13641 | cat conftest.$ac_ext >&5 | |
13642 | rm -rf conftest* | |
13643 | eval "ac_cv_func_$ac_func=no" | |
13644 | fi | |
13645 | rm -f conftest* | |
13646 | fi | |
13647 | ||
13648 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
13649 | echo "$ac_t""yes" 1>&6 | |
13650 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
13651 | cat >> confdefs.h <<EOF | |
13652 | #define $ac_tr_func 1 | |
13653 | EOF | |
13654 | cat >> confdefs.h <<\EOF | |
c63c7106 VZ |
13655 | #define HAVE_INET_ADDR 1 |
13656 | EOF | |
13657 | ||
10f2d63a | 13658 | else |
698dcdb6 VZ |
13659 | echo "$ac_t""no" 1>&6 |
13660 | echo $ac_n "checking for inet_addr in -lnsl""... $ac_c" 1>&6 | |
3f0f0161 | 13661 | echo "configure:13662: checking for inet_addr in -lnsl" >&5 |
698dcdb6 VZ |
13662 | ac_lib_var=`echo nsl'_'inet_addr | sed 'y%./+-%__p_%'` |
13663 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
13664 | echo $ac_n "(cached) $ac_c" 1>&6 | |
c63c7106 | 13665 | else |
698dcdb6 | 13666 | ac_save_LIBS="$LIBS" |
c63c7106 | 13667 | LIBS="-lnsl $LIBS" |
698dcdb6 | 13668 | cat > conftest.$ac_ext <<EOF |
3f0f0161 | 13669 | #line 13670 "configure" |
c63c7106 VZ |
13670 | #include "confdefs.h" |
13671 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13672 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
13673 | builtin and then its argument prototype would still apply. */ |
13674 | char inet_addr(); | |
13675 | ||
13676 | int main() { | |
13677 | inet_addr() | |
13678 | ; return 0; } | |
13679 | EOF | |
3f0f0161 | 13680 | if { (eval echo configure:13681: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
13681 | rm -rf conftest* |
13682 | eval "ac_cv_lib_$ac_lib_var=yes" | |
13683 | else | |
13684 | echo "configure: failed program was:" >&5 | |
13685 | cat conftest.$ac_ext >&5 | |
13686 | rm -rf conftest* | |
13687 | eval "ac_cv_lib_$ac_lib_var=no" | |
13688 | fi | |
13689 | rm -f conftest* | |
13690 | LIBS="$ac_save_LIBS" | |
13691 | ||
13692 | fi | |
13693 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
13694 | echo "$ac_t""yes" 1>&6 | |
c63c7106 VZ |
13695 | INET_LINK="nsl" |
13696 | else | |
698dcdb6 VZ |
13697 | echo "$ac_t""no" 1>&6 |
13698 | echo $ac_n "checking for inet_addr in -lresolv""... $ac_c" 1>&6 | |
3f0f0161 | 13699 | echo "configure:13700: checking for inet_addr in -lresolv" >&5 |
698dcdb6 VZ |
13700 | ac_lib_var=`echo resolv'_'inet_addr | sed 'y%./+-%__p_%'` |
13701 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
13702 | echo $ac_n "(cached) $ac_c" 1>&6 | |
c63c7106 | 13703 | else |
698dcdb6 | 13704 | ac_save_LIBS="$LIBS" |
c63c7106 | 13705 | LIBS="-lresolv $LIBS" |
698dcdb6 | 13706 | cat > conftest.$ac_ext <<EOF |
3f0f0161 | 13707 | #line 13708 "configure" |
c63c7106 VZ |
13708 | #include "confdefs.h" |
13709 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13710 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
13711 | builtin and then its argument prototype would still apply. */ |
13712 | char inet_addr(); | |
13713 | ||
13714 | int main() { | |
13715 | inet_addr() | |
13716 | ; return 0; } | |
13717 | EOF | |
3f0f0161 | 13718 | if { (eval echo configure:13719: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
13719 | rm -rf conftest* |
13720 | eval "ac_cv_lib_$ac_lib_var=yes" | |
13721 | else | |
13722 | echo "configure: failed program was:" >&5 | |
13723 | cat conftest.$ac_ext >&5 | |
13724 | rm -rf conftest* | |
13725 | eval "ac_cv_lib_$ac_lib_var=no" | |
13726 | fi | |
13727 | rm -f conftest* | |
13728 | LIBS="$ac_save_LIBS" | |
c63c7106 | 13729 | |
6232543b | 13730 | fi |
698dcdb6 VZ |
13731 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
13732 | echo "$ac_t""yes" 1>&6 | |
13733 | INET_LINK="resolv" | |
13734 | ||
13735 | else | |
13736 | echo "$ac_t""no" 1>&6 | |
13737 | fi | |
c63c7106 | 13738 | |
698dcdb6 | 13739 | |
1e487827 | 13740 | fi |
703e0a69 | 13741 | |
698dcdb6 VZ |
13742 | |
13743 | ||
10f2d63a VZ |
13744 | fi |
13745 | done | |
13746 | ||
698dcdb6 | 13747 | |
10f2d63a VZ |
13748 | for ac_func in inet_aton |
13749 | do | |
698dcdb6 | 13750 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
3f0f0161 | 13751 | echo "configure:13752: checking for $ac_func" >&5 |
698dcdb6 VZ |
13752 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
13753 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13754 | else | |
13755 | cat > conftest.$ac_ext <<EOF | |
3f0f0161 | 13756 | #line 13757 "configure" |
10f2d63a VZ |
13757 | #include "confdefs.h" |
13758 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 13759 | which can conflict with char $ac_func(); below. */ |
10f2d63a VZ |
13760 | #include <assert.h> |
13761 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13762 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
13763 | builtin and then its argument prototype would still apply. */ |
13764 | char $ac_func(); | |
13765 | ||
13766 | int main() { | |
10f2d63a VZ |
13767 | |
13768 | /* The GNU C library defines this for functions which it implements | |
13769 | to always fail with ENOSYS. Some functions are actually named | |
13770 | something starting with __ and the normal name is an alias. */ | |
13771 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
13772 | choke me | |
13773 | #else | |
698dcdb6 | 13774 | $ac_func(); |
10f2d63a VZ |
13775 | #endif |
13776 | ||
698dcdb6 VZ |
13777 | ; return 0; } |
13778 | EOF | |
3f0f0161 | 13779 | if { (eval echo configure:13780: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
13780 | rm -rf conftest* |
13781 | eval "ac_cv_func_$ac_func=yes" | |
13782 | else | |
13783 | echo "configure: failed program was:" >&5 | |
13784 | cat conftest.$ac_ext >&5 | |
13785 | rm -rf conftest* | |
13786 | eval "ac_cv_func_$ac_func=no" | |
13787 | fi | |
13788 | rm -f conftest* | |
13789 | fi | |
13790 | ||
13791 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
13792 | echo "$ac_t""yes" 1>&6 | |
13793 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
13794 | cat >> confdefs.h <<EOF | |
13795 | #define $ac_tr_func 1 | |
13796 | EOF | |
13797 | cat >> confdefs.h <<\EOF | |
c63c7106 VZ |
13798 | #define HAVE_INET_ATON 1 |
13799 | EOF | |
13800 | ||
10f2d63a | 13801 | else |
698dcdb6 VZ |
13802 | echo "$ac_t""no" 1>&6 |
13803 | echo $ac_n "checking for inet_aton in -l$INET_LINK""... $ac_c" 1>&6 | |
3f0f0161 | 13804 | echo "configure:13805: checking for inet_aton in -l$INET_LINK" >&5 |
698dcdb6 VZ |
13805 | ac_lib_var=`echo $INET_LINK'_'inet_aton | sed 'y%./+-%__p_%'` |
13806 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
13807 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 13808 | else |
698dcdb6 | 13809 | ac_save_LIBS="$LIBS" |
c63c7106 | 13810 | LIBS="-l$INET_LINK $LIBS" |
698dcdb6 | 13811 | cat > conftest.$ac_ext <<EOF |
3f0f0161 | 13812 | #line 13813 "configure" |
10f2d63a VZ |
13813 | #include "confdefs.h" |
13814 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13815 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
13816 | builtin and then its argument prototype would still apply. */ |
13817 | char inet_aton(); | |
13818 | ||
13819 | int main() { | |
13820 | inet_aton() | |
13821 | ; return 0; } | |
13822 | EOF | |
3f0f0161 | 13823 | if { (eval echo configure:13824: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
13824 | rm -rf conftest* |
13825 | eval "ac_cv_lib_$ac_lib_var=yes" | |
13826 | else | |
13827 | echo "configure: failed program was:" >&5 | |
13828 | cat conftest.$ac_ext >&5 | |
13829 | rm -rf conftest* | |
13830 | eval "ac_cv_lib_$ac_lib_var=no" | |
13831 | fi | |
13832 | rm -f conftest* | |
13833 | LIBS="$ac_save_LIBS" | |
13834 | ||
13835 | fi | |
13836 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
13837 | echo "$ac_t""yes" 1>&6 | |
13838 | cat >> confdefs.h <<\EOF | |
c63c7106 | 13839 | #define HAVE_INET_ATON 1 |
10f2d63a VZ |
13840 | EOF |
13841 | ||
698dcdb6 VZ |
13842 | else |
13843 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
13844 | fi |
13845 | ||
698dcdb6 | 13846 | |
c63c7106 VZ |
13847 | fi |
13848 | done | |
13849 | ||
698dcdb6 | 13850 | |
c63c7106 | 13851 | if test "x$INET_LINK" != "x"; then |
698dcdb6 | 13852 | cat >> confdefs.h <<\EOF |
c63c7106 VZ |
13853 | #define HAVE_INET_ADDR 1 |
13854 | EOF | |
13855 | ||
13856 | INET_LINK="-l$INET_LINK" | |
13857 | fi | |
10f2d63a VZ |
13858 | |
13859 | fi | |
13860 | ||
698dcdb6 VZ |
13861 | |
13862 | cat > confcache <<\EOF | |
10f2d63a VZ |
13863 | # This file is a shell script that caches the results of configure |
13864 | # tests run on this system so they can be shared between configure | |
698dcdb6 VZ |
13865 | # scripts and configure runs. It is not useful on other systems. |
13866 | # If it contains results you don't want to keep, you may remove or edit it. | |
10f2d63a | 13867 | # |
698dcdb6 VZ |
13868 | # By default, configure uses ./config.cache as the cache file, |
13869 | # creating it if it does not exist already. You can give configure | |
13870 | # the --cache-file=FILE option to use a different cache file; that is | |
13871 | # what configure does when it calls configure scripts in | |
13872 | # subdirectories, so they share the cache. | |
13873 | # Giving --cache-file=/dev/null disables caching, for debugging configure. | |
13874 | # config.status only pays attention to the cache file if you give it the | |
13875 | # --recheck option to rerun configure. | |
10f2d63a | 13876 | # |
698dcdb6 | 13877 | EOF |
10f2d63a VZ |
13878 | # The following way of writing the cache mishandles newlines in values, |
13879 | # but we know of no workaround that is simple, portable, and efficient. | |
13880 | # So, don't put newlines in cache variables' values. | |
13881 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
13882 | # and sets the high bit in the cache file unless we assign to the vars. | |
698dcdb6 VZ |
13883 | (set) 2>&1 | |
13884 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
13885 | *ac_space=\ *) | |
13886 | # `set' does not quote correctly, so add quotes (double-quote substitution | |
13887 | # turns \\\\ into \\, and sed turns \\ into \). | |
13888 | sed -n \ | |
13889 | -e "s/'/'\\\\''/g" \ | |
13890 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" | |
13891 | ;; | |
13892 | *) | |
13893 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
13894 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' | |
13895 | ;; | |
13896 | esac >> confcache | |
13897 | if cmp -s $cache_file confcache; then | |
13898 | : | |
13899 | else | |
10f2d63a | 13900 | if test -w $cache_file; then |
698dcdb6 VZ |
13901 | echo "updating cache $cache_file" |
13902 | cat confcache > $cache_file | |
10f2d63a VZ |
13903 | else |
13904 | echo "not updating unwritable cache $cache_file" | |
13905 | fi | |
13906 | fi | |
13907 | rm -f confcache | |
13908 | ||
698dcdb6 VZ |
13909 | |
13910 | ||
b089607b | 13911 | if test "$TOOLKIT" != "MSW"; then |
10f2d63a | 13912 | |
698dcdb6 | 13913 | |
10f2d63a VZ |
13914 | THREADS_LINK="" |
13915 | THREADS_OBJ="" | |
13916 | ||
13917 | if test "$wxUSE_THREADS" = "yes" ; then | |
13918 | if test "$wxUSE_WINE" = 1 ; then | |
698dcdb6 | 13919 | echo "configure: warning: Threads are not supported under WINE" 1>&2 |
10f2d63a | 13920 | wxUSE_THREADS="no" |
b12915c1 | 13921 | elif test "$USE_BEOS" = 1; then |
698dcdb6 | 13922 | echo "configure: warning: BeOS threads are not yet supported" 1>&2 |
b12915c1 | 13923 | wxUSE_THREADS="no" |
10f2d63a VZ |
13924 | fi |
13925 | fi | |
13926 | ||
13927 | if test "$wxUSE_THREADS" = "yes" ; then | |
698dcdb6 | 13928 | |
186837b0 | 13929 | if test "$USE_AIX" = 1; then |
f6bcfd97 BP |
13930 | THREADS_LIB=pthreads |
13931 | else | |
13932 | THREADS_LIB=pthread | |
13933 | fi | |
13934 | ||
698dcdb6 | 13935 | echo $ac_n "checking for pthread_create in -l$THREADS_LIB""... $ac_c" 1>&6 |
3f0f0161 | 13936 | echo "configure:13937: checking for pthread_create in -l$THREADS_LIB" >&5 |
698dcdb6 VZ |
13937 | ac_lib_var=`echo $THREADS_LIB'_'pthread_create | sed 'y%./+-%__p_%'` |
13938 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
13939 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 13940 | else |
698dcdb6 | 13941 | ac_save_LIBS="$LIBS" |
f6bcfd97 | 13942 | LIBS="-l$THREADS_LIB $LIBS" |
698dcdb6 | 13943 | cat > conftest.$ac_ext <<EOF |
3f0f0161 | 13944 | #line 13945 "configure" |
10f2d63a VZ |
13945 | #include "confdefs.h" |
13946 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13947 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
13948 | builtin and then its argument prototype would still apply. */ |
13949 | char pthread_create(); | |
13950 | ||
13951 | int main() { | |
13952 | pthread_create() | |
13953 | ; return 0; } | |
13954 | EOF | |
3f0f0161 | 13955 | if { (eval echo configure:13956: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
13956 | rm -rf conftest* |
13957 | eval "ac_cv_lib_$ac_lib_var=yes" | |
13958 | else | |
13959 | echo "configure: failed program was:" >&5 | |
13960 | cat conftest.$ac_ext >&5 | |
13961 | rm -rf conftest* | |
13962 | eval "ac_cv_lib_$ac_lib_var=no" | |
13963 | fi | |
13964 | rm -f conftest* | |
13965 | LIBS="$ac_save_LIBS" | |
10f2d63a | 13966 | |
698dcdb6 VZ |
13967 | fi |
13968 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
13969 | echo "$ac_t""yes" 1>&6 | |
13970 | ||
10f2d63a | 13971 | THREADS_OBJ="threadpsx.lo" |
f6bcfd97 | 13972 | THREADS_LINK=$THREADS_LIB |
698dcdb6 | 13973 | |
10f2d63a | 13974 | else |
698dcdb6 | 13975 | echo "$ac_t""no" 1>&6 |
10f2d63a | 13976 | |
698dcdb6 | 13977 | echo $ac_n "checking for pthread_create in -lc_r""... $ac_c" 1>&6 |
3f0f0161 | 13978 | echo "configure:13979: checking for pthread_create in -lc_r" >&5 |
698dcdb6 VZ |
13979 | ac_lib_var=`echo c_r'_'pthread_create | sed 'y%./+-%__p_%'` |
13980 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
13981 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 13982 | else |
698dcdb6 | 13983 | ac_save_LIBS="$LIBS" |
10f2d63a | 13984 | LIBS="-lc_r $LIBS" |
698dcdb6 | 13985 | cat > conftest.$ac_ext <<EOF |
3f0f0161 | 13986 | #line 13987 "configure" |
10f2d63a VZ |
13987 | #include "confdefs.h" |
13988 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13989 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
13990 | builtin and then its argument prototype would still apply. */ |
13991 | char pthread_create(); | |
13992 | ||
13993 | int main() { | |
13994 | pthread_create() | |
13995 | ; return 0; } | |
13996 | EOF | |
3f0f0161 | 13997 | if { (eval echo configure:13998: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
13998 | rm -rf conftest* |
13999 | eval "ac_cv_lib_$ac_lib_var=yes" | |
14000 | else | |
14001 | echo "configure: failed program was:" >&5 | |
14002 | cat conftest.$ac_ext >&5 | |
14003 | rm -rf conftest* | |
14004 | eval "ac_cv_lib_$ac_lib_var=no" | |
14005 | fi | |
14006 | rm -f conftest* | |
14007 | LIBS="$ac_save_LIBS" | |
10f2d63a | 14008 | |
698dcdb6 VZ |
14009 | fi |
14010 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
14011 | echo "$ac_t""yes" 1>&6 | |
14012 | ||
10f2d63a VZ |
14013 | THREADS_OBJ="threadpsx.lo" |
14014 | THREADS_LINK="c_r" | |
698dcdb6 | 14015 | |
10f2d63a | 14016 | else |
698dcdb6 | 14017 | echo "$ac_t""no" 1>&6 |
10f2d63a | 14018 | |
698dcdb6 VZ |
14019 | ac_safe=`echo "sys/prctl.h" | sed 'y%./+-%__p_%'` |
14020 | echo $ac_n "checking for sys/prctl.h""... $ac_c" 1>&6 | |
3f0f0161 | 14021 | echo "configure:14022: checking for sys/prctl.h" >&5 |
698dcdb6 VZ |
14022 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
14023 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 14024 | else |
698dcdb6 | 14025 | cat > conftest.$ac_ext <<EOF |
3f0f0161 | 14026 | #line 14027 "configure" |
10f2d63a VZ |
14027 | #include "confdefs.h" |
14028 | #include <sys/prctl.h> | |
698dcdb6 VZ |
14029 | EOF |
14030 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
3f0f0161 | 14031 | { (eval echo configure:14032: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
14032 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
14033 | if test -z "$ac_err"; then | |
14034 | rm -rf conftest* | |
14035 | eval "ac_cv_header_$ac_safe=yes" | |
1e487827 | 14036 | else |
698dcdb6 VZ |
14037 | echo "$ac_err" >&5 |
14038 | echo "configure: failed program was:" >&5 | |
10f2d63a | 14039 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
14040 | rm -rf conftest* |
14041 | eval "ac_cv_header_$ac_safe=no" | |
10f2d63a | 14042 | fi |
698dcdb6 | 14043 | rm -f conftest* |
10f2d63a | 14044 | fi |
698dcdb6 VZ |
14045 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
14046 | echo "$ac_t""yes" 1>&6 | |
14047 | ||
1f8ae82f | 14048 | THREADS_OBJ="threadsgi.lo" |
698dcdb6 VZ |
14049 | |
14050 | else | |
14051 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
14052 | fi |
14053 | ||
698dcdb6 | 14054 | |
6232543b | 14055 | fi |
10f2d63a | 14056 | |
698dcdb6 | 14057 | |
1e487827 | 14058 | fi |
703e0a69 | 14059 | |
698dcdb6 | 14060 | |
10f2d63a VZ |
14061 | if test -z "$THREADS_OBJ" ; then |
14062 | wxUSE_THREADS=no | |
698dcdb6 | 14063 | echo "configure: warning: No thread support on this system" 1>&2 |
10f2d63a VZ |
14064 | fi |
14065 | fi | |
14066 | ||
14067 | if test "$wxUSE_THREADS" = "yes" ; then | |
698dcdb6 | 14068 | for ac_func in thr_setconcurrency |
70846f0a | 14069 | do |
698dcdb6 | 14070 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
3f0f0161 | 14071 | echo "configure:14072: checking for $ac_func" >&5 |
698dcdb6 VZ |
14072 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
14073 | echo $ac_n "(cached) $ac_c" 1>&6 | |
14074 | else | |
14075 | cat > conftest.$ac_ext <<EOF | |
3f0f0161 | 14076 | #line 14077 "configure" |
70846f0a VZ |
14077 | #include "confdefs.h" |
14078 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 14079 | which can conflict with char $ac_func(); below. */ |
70846f0a VZ |
14080 | #include <assert.h> |
14081 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14082 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
14083 | builtin and then its argument prototype would still apply. */ |
14084 | char $ac_func(); | |
14085 | ||
14086 | int main() { | |
70846f0a VZ |
14087 | |
14088 | /* The GNU C library defines this for functions which it implements | |
14089 | to always fail with ENOSYS. Some functions are actually named | |
14090 | something starting with __ and the normal name is an alias. */ | |
14091 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
14092 | choke me | |
14093 | #else | |
698dcdb6 | 14094 | $ac_func(); |
70846f0a VZ |
14095 | #endif |
14096 | ||
698dcdb6 | 14097 | ; return 0; } |
70846f0a | 14098 | EOF |
3f0f0161 | 14099 | if { (eval echo configure:14100: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
14100 | rm -rf conftest* |
14101 | eval "ac_cv_func_$ac_func=yes" | |
14102 | else | |
14103 | echo "configure: failed program was:" >&5 | |
14104 | cat conftest.$ac_ext >&5 | |
14105 | rm -rf conftest* | |
14106 | eval "ac_cv_func_$ac_func=no" | |
14107 | fi | |
14108 | rm -f conftest* | |
14109 | fi | |
70846f0a | 14110 | |
698dcdb6 VZ |
14111 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
14112 | echo "$ac_t""yes" 1>&6 | |
14113 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
14114 | cat >> confdefs.h <<EOF | |
14115 | #define $ac_tr_func 1 | |
14116 | EOF | |
14117 | ||
14118 | else | |
14119 | echo "$ac_t""no" 1>&6 | |
70846f0a VZ |
14120 | fi |
14121 | done | |
14122 | ||
698dcdb6 VZ |
14123 | |
14124 | ||
14125 | for ac_hdr in sched.h | |
10f2d63a | 14126 | do |
698dcdb6 VZ |
14127 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
14128 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
3f0f0161 | 14129 | echo "configure:14130: checking for $ac_hdr" >&5 |
698dcdb6 VZ |
14130 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
14131 | echo $ac_n "(cached) $ac_c" 1>&6 | |
14132 | else | |
14133 | cat > conftest.$ac_ext <<EOF | |
3f0f0161 | 14134 | #line 14135 "configure" |
10f2d63a | 14135 | #include "confdefs.h" |
698dcdb6 VZ |
14136 | #include <$ac_hdr> |
14137 | EOF | |
14138 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
3f0f0161 | 14139 | { (eval echo configure:14140: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
14140 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
14141 | if test -z "$ac_err"; then | |
14142 | rm -rf conftest* | |
14143 | eval "ac_cv_header_$ac_safe=yes" | |
1e487827 | 14144 | else |
698dcdb6 VZ |
14145 | echo "$ac_err" >&5 |
14146 | echo "configure: failed program was:" >&5 | |
10f2d63a | 14147 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
14148 | rm -rf conftest* |
14149 | eval "ac_cv_header_$ac_safe=no" | |
10f2d63a | 14150 | fi |
698dcdb6 | 14151 | rm -f conftest* |
10f2d63a | 14152 | fi |
698dcdb6 VZ |
14153 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
14154 | echo "$ac_t""yes" 1>&6 | |
14155 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
14156 | cat >> confdefs.h <<EOF | |
14157 | #define $ac_tr_hdr 1 | |
10f2d63a | 14158 | EOF |
698dcdb6 VZ |
14159 | |
14160 | else | |
14161 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
14162 | fi |
14163 | done | |
14164 | ||
698dcdb6 VZ |
14165 | |
14166 | echo $ac_n "checking for sched_yield in -l$THREADS_LINK""... $ac_c" 1>&6 | |
3f0f0161 | 14167 | echo "configure:14168: checking for sched_yield in -l$THREADS_LINK" >&5 |
698dcdb6 VZ |
14168 | ac_lib_var=`echo $THREADS_LINK'_'sched_yield | sed 'y%./+-%__p_%'` |
14169 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
14170 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 14171 | else |
698dcdb6 | 14172 | ac_save_LIBS="$LIBS" |
10f2d63a | 14173 | LIBS="-l$THREADS_LINK $LIBS" |
698dcdb6 | 14174 | cat > conftest.$ac_ext <<EOF |
3f0f0161 | 14175 | #line 14176 "configure" |
10f2d63a VZ |
14176 | #include "confdefs.h" |
14177 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14178 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
14179 | builtin and then its argument prototype would still apply. */ |
14180 | char sched_yield(); | |
14181 | ||
14182 | int main() { | |
14183 | sched_yield() | |
14184 | ; return 0; } | |
14185 | EOF | |
3f0f0161 | 14186 | if { (eval echo configure:14187: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
14187 | rm -rf conftest* |
14188 | eval "ac_cv_lib_$ac_lib_var=yes" | |
14189 | else | |
14190 | echo "configure: failed program was:" >&5 | |
14191 | cat conftest.$ac_ext >&5 | |
14192 | rm -rf conftest* | |
14193 | eval "ac_cv_lib_$ac_lib_var=no" | |
14194 | fi | |
14195 | rm -f conftest* | |
14196 | LIBS="$ac_save_LIBS" | |
14197 | ||
14198 | fi | |
14199 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
14200 | echo "$ac_t""yes" 1>&6 | |
14201 | cat >> confdefs.h <<\EOF | |
10f2d63a VZ |
14202 | #define HAVE_SCHED_YIELD 1 |
14203 | EOF | |
14204 | ||
14205 | else | |
698dcdb6 VZ |
14206 | echo "$ac_t""no" 1>&6 |
14207 | echo $ac_n "checking for sched_yield in -lposix4""... $ac_c" 1>&6 | |
3f0f0161 | 14208 | echo "configure:14209: checking for sched_yield in -lposix4" >&5 |
698dcdb6 VZ |
14209 | ac_lib_var=`echo posix4'_'sched_yield | sed 'y%./+-%__p_%'` |
14210 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
14211 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 14212 | else |
698dcdb6 | 14213 | ac_save_LIBS="$LIBS" |
1e487827 | 14214 | LIBS="-lposix4 $LIBS" |
698dcdb6 | 14215 | cat > conftest.$ac_ext <<EOF |
3f0f0161 | 14216 | #line 14217 "configure" |
10f2d63a VZ |
14217 | #include "confdefs.h" |
14218 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14219 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
14220 | builtin and then its argument prototype would still apply. */ |
14221 | char sched_yield(); | |
14222 | ||
14223 | int main() { | |
14224 | sched_yield() | |
14225 | ; return 0; } | |
14226 | EOF | |
3f0f0161 | 14227 | if { (eval echo configure:14228: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
14228 | rm -rf conftest* |
14229 | eval "ac_cv_lib_$ac_lib_var=yes" | |
14230 | else | |
14231 | echo "configure: failed program was:" >&5 | |
14232 | cat conftest.$ac_ext >&5 | |
14233 | rm -rf conftest* | |
14234 | eval "ac_cv_lib_$ac_lib_var=no" | |
14235 | fi | |
14236 | rm -f conftest* | |
14237 | LIBS="$ac_save_LIBS" | |
14238 | ||
14239 | fi | |
14240 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
14241 | echo "$ac_t""yes" 1>&6 | |
14242 | cat >> confdefs.h <<\EOF | |
10f2d63a VZ |
14243 | #define HAVE_SCHED_YIELD 1 |
14244 | EOF | |
14245 | POSIX4_LINK="-lposix4" | |
14246 | else | |
698dcdb6 VZ |
14247 | echo "$ac_t""no" 1>&6 |
14248 | echo "configure: warning: wxThread::Yield will not work properly" 1>&2 | |
14249 | ||
6232543b | 14250 | fi |
10f2d63a | 14251 | |
698dcdb6 | 14252 | |
1e487827 | 14253 | fi |
703e0a69 | 14254 | |
698dcdb6 | 14255 | |
f6bcfd97 | 14256 | HAVE_PRIOR_FUNCS=0 |
698dcdb6 | 14257 | echo $ac_n "checking for pthread_attr_getschedpolicy in -l$THREADS_LINK""... $ac_c" 1>&6 |
3f0f0161 | 14258 | echo "configure:14259: checking for pthread_attr_getschedpolicy in -l$THREADS_LINK" >&5 |
698dcdb6 VZ |
14259 | ac_lib_var=`echo $THREADS_LINK'_'pthread_attr_getschedpolicy | sed 'y%./+-%__p_%'` |
14260 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
14261 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 14262 | else |
698dcdb6 | 14263 | ac_save_LIBS="$LIBS" |
10f2d63a | 14264 | LIBS="-l$THREADS_LINK $LIBS" |
698dcdb6 | 14265 | cat > conftest.$ac_ext <<EOF |
3f0f0161 | 14266 | #line 14267 "configure" |
10f2d63a VZ |
14267 | #include "confdefs.h" |
14268 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14269 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
14270 | builtin and then its argument prototype would still apply. */ |
14271 | char pthread_attr_getschedpolicy(); | |
14272 | ||
14273 | int main() { | |
14274 | pthread_attr_getschedpolicy() | |
14275 | ; return 0; } | |
14276 | EOF | |
3f0f0161 | 14277 | if { (eval echo configure:14278: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
14278 | rm -rf conftest* |
14279 | eval "ac_cv_lib_$ac_lib_var=yes" | |
14280 | else | |
14281 | echo "configure: failed program was:" >&5 | |
14282 | cat conftest.$ac_ext >&5 | |
14283 | rm -rf conftest* | |
14284 | eval "ac_cv_lib_$ac_lib_var=no" | |
14285 | fi | |
14286 | rm -f conftest* | |
14287 | LIBS="$ac_save_LIBS" | |
14288 | ||
14289 | fi | |
14290 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
14291 | echo "$ac_t""yes" 1>&6 | |
14292 | echo $ac_n "checking for pthread_attr_setschedparam in -l$THREADS_LINK""... $ac_c" 1>&6 | |
3f0f0161 | 14293 | echo "configure:14294: checking for pthread_attr_setschedparam in -l$THREADS_LINK" >&5 |
698dcdb6 VZ |
14294 | ac_lib_var=`echo $THREADS_LINK'_'pthread_attr_setschedparam | sed 'y%./+-%__p_%'` |
14295 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
14296 | echo $ac_n "(cached) $ac_c" 1>&6 | |
14297 | else | |
14298 | ac_save_LIBS="$LIBS" | |
f6bcfd97 | 14299 | LIBS="-l$THREADS_LINK $LIBS" |
698dcdb6 | 14300 | cat > conftest.$ac_ext <<EOF |
3f0f0161 | 14301 | #line 14302 "configure" |
f6bcfd97 BP |
14302 | #include "confdefs.h" |
14303 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14304 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
14305 | builtin and then its argument prototype would still apply. */ |
14306 | char pthread_attr_setschedparam(); | |
14307 | ||
14308 | int main() { | |
14309 | pthread_attr_setschedparam() | |
14310 | ; return 0; } | |
14311 | EOF | |
3f0f0161 | 14312 | if { (eval echo configure:14313: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
14313 | rm -rf conftest* |
14314 | eval "ac_cv_lib_$ac_lib_var=yes" | |
14315 | else | |
14316 | echo "configure: failed program was:" >&5 | |
14317 | cat conftest.$ac_ext >&5 | |
14318 | rm -rf conftest* | |
14319 | eval "ac_cv_lib_$ac_lib_var=no" | |
14320 | fi | |
14321 | rm -f conftest* | |
14322 | LIBS="$ac_save_LIBS" | |
14323 | ||
14324 | fi | |
14325 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
14326 | echo "$ac_t""yes" 1>&6 | |
14327 | echo $ac_n "checking for sched_get_priority_max in -l$THREADS_LINK""... $ac_c" 1>&6 | |
3f0f0161 | 14328 | echo "configure:14329: checking for sched_get_priority_max in -l$THREADS_LINK" >&5 |
698dcdb6 VZ |
14329 | ac_lib_var=`echo $THREADS_LINK'_'sched_get_priority_max | sed 'y%./+-%__p_%'` |
14330 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
14331 | echo $ac_n "(cached) $ac_c" 1>&6 | |
14332 | else | |
14333 | ac_save_LIBS="$LIBS" | |
f6bcfd97 | 14334 | LIBS="-l$THREADS_LINK $LIBS" |
698dcdb6 | 14335 | cat > conftest.$ac_ext <<EOF |
3f0f0161 | 14336 | #line 14337 "configure" |
f6bcfd97 BP |
14337 | #include "confdefs.h" |
14338 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14339 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
14340 | builtin and then its argument prototype would still apply. */ |
14341 | char sched_get_priority_max(); | |
14342 | ||
14343 | int main() { | |
14344 | sched_get_priority_max() | |
14345 | ; return 0; } | |
14346 | EOF | |
3f0f0161 | 14347 | if { (eval echo configure:14348: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
14348 | rm -rf conftest* |
14349 | eval "ac_cv_lib_$ac_lib_var=yes" | |
14350 | else | |
14351 | echo "configure: failed program was:" >&5 | |
14352 | cat conftest.$ac_ext >&5 | |
14353 | rm -rf conftest* | |
14354 | eval "ac_cv_lib_$ac_lib_var=no" | |
14355 | fi | |
14356 | rm -f conftest* | |
14357 | LIBS="$ac_save_LIBS" | |
14358 | ||
14359 | fi | |
14360 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
14361 | echo "$ac_t""yes" 1>&6 | |
f6bcfd97 | 14362 | HAVE_PRIOR_FUNCS=1 |
10f2d63a | 14363 | else |
698dcdb6 VZ |
14364 | echo "$ac_t""no" 1>&6 |
14365 | echo $ac_n "checking for sched_get_priority_max in -lposix4""... $ac_c" 1>&6 | |
3f0f0161 | 14366 | echo "configure:14367: checking for sched_get_priority_max in -lposix4" >&5 |
698dcdb6 VZ |
14367 | ac_lib_var=`echo posix4'_'sched_get_priority_max | sed 'y%./+-%__p_%'` |
14368 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
14369 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1e487827 | 14370 | else |
698dcdb6 | 14371 | ac_save_LIBS="$LIBS" |
1e487827 | 14372 | LIBS="-lposix4 $LIBS" |
698dcdb6 | 14373 | cat > conftest.$ac_ext <<EOF |
3f0f0161 | 14374 | #line 14375 "configure" |
10f2d63a | 14375 | #include "confdefs.h" |
6232543b | 14376 | /* Override any gcc2 internal prototype to avoid an error. */ |
6232543b | 14377 | /* We use char because int might match the return type of a gcc2 |
698dcdb6 VZ |
14378 | builtin and then its argument prototype would still apply. */ |
14379 | char sched_get_priority_max(); | |
14380 | ||
14381 | int main() { | |
14382 | sched_get_priority_max() | |
14383 | ; return 0; } | |
14384 | EOF | |
3f0f0161 | 14385 | if { (eval echo configure:14386: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
14386 | rm -rf conftest* |
14387 | eval "ac_cv_lib_$ac_lib_var=yes" | |
14388 | else | |
14389 | echo "configure: failed program was:" >&5 | |
14390 | cat conftest.$ac_ext >&5 | |
14391 | rm -rf conftest* | |
14392 | eval "ac_cv_lib_$ac_lib_var=no" | |
14393 | fi | |
14394 | rm -f conftest* | |
14395 | LIBS="$ac_save_LIBS" | |
10f2d63a | 14396 | |
698dcdb6 VZ |
14397 | fi |
14398 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
14399 | echo "$ac_t""yes" 1>&6 | |
14400 | ||
f6bcfd97 BP |
14401 | HAVE_PRIOR_FUNCS=1 |
14402 | POSIX4_LINK="-lposix4" | |
698dcdb6 VZ |
14403 | |
14404 | else | |
14405 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
14406 | fi |
14407 | ||
698dcdb6 | 14408 | |
10f2d63a VZ |
14409 | fi |
14410 | ||
698dcdb6 VZ |
14411 | |
14412 | else | |
14413 | echo "$ac_t""no" 1>&6 | |
6232543b | 14414 | fi |
10f2d63a | 14415 | |
698dcdb6 VZ |
14416 | |
14417 | else | |
14418 | echo "$ac_t""no" 1>&6 | |
1e487827 | 14419 | fi |
703e0a69 | 14420 | |
698dcdb6 | 14421 | |
f6bcfd97 | 14422 | if test "$HAVE_PRIOR_FUNCS" = 1; then |
698dcdb6 | 14423 | cat >> confdefs.h <<\EOF |
f6bcfd97 BP |
14424 | #define HAVE_THREAD_PRIORITY_FUNCTIONS 1 |
14425 | EOF | |
14426 | ||
14427 | else | |
698dcdb6 | 14428 | echo "configure: warning: Setting thread priority will not work" 1>&2 |
f6bcfd97 BP |
14429 | fi |
14430 | ||
698dcdb6 | 14431 | echo $ac_n "checking for pthread_cancel in -l$THREADS_LINK""... $ac_c" 1>&6 |
3f0f0161 | 14432 | echo "configure:14433: checking for pthread_cancel in -l$THREADS_LINK" >&5 |
698dcdb6 VZ |
14433 | ac_lib_var=`echo $THREADS_LINK'_'pthread_cancel | sed 'y%./+-%__p_%'` |
14434 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
14435 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 14436 | else |
698dcdb6 | 14437 | ac_save_LIBS="$LIBS" |
10f2d63a | 14438 | LIBS="-l$THREADS_LINK $LIBS" |
698dcdb6 | 14439 | cat > conftest.$ac_ext <<EOF |
3f0f0161 | 14440 | #line 14441 "configure" |
10f2d63a VZ |
14441 | #include "confdefs.h" |
14442 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14443 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
14444 | builtin and then its argument prototype would still apply. */ |
14445 | char pthread_cancel(); | |
14446 | ||
14447 | int main() { | |
14448 | pthread_cancel() | |
14449 | ; return 0; } | |
14450 | EOF | |
3f0f0161 | 14451 | if { (eval echo configure:14452: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
14452 | rm -rf conftest* |
14453 | eval "ac_cv_lib_$ac_lib_var=yes" | |
14454 | else | |
14455 | echo "configure: failed program was:" >&5 | |
14456 | cat conftest.$ac_ext >&5 | |
14457 | rm -rf conftest* | |
14458 | eval "ac_cv_lib_$ac_lib_var=no" | |
14459 | fi | |
14460 | rm -f conftest* | |
14461 | LIBS="$ac_save_LIBS" | |
14462 | ||
14463 | fi | |
14464 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
14465 | echo "$ac_t""yes" 1>&6 | |
14466 | cat >> confdefs.h <<\EOF | |
10f2d63a VZ |
14467 | #define HAVE_PTHREAD_CANCEL 1 |
14468 | EOF | |
14469 | ||
14470 | else | |
698dcdb6 VZ |
14471 | echo "$ac_t""no" 1>&6 |
14472 | echo "configure: warning: wxThread::Kill() will not work properly" 1>&2 | |
10f2d63a VZ |
14473 | fi |
14474 | ||
1e487827 | 14475 | |
698dcdb6 | 14476 | echo $ac_n "checking for pthread_cleanup_push/pop""... $ac_c" 1>&6 |
3f0f0161 | 14477 | echo "configure:14478: checking for pthread_cleanup_push/pop" >&5 |
698dcdb6 VZ |
14478 | if eval "test \"`echo '$''{'wx_cv_func_pthread_cleanup_push'+set}'`\" = set"; then |
14479 | echo $ac_n "(cached) $ac_c" 1>&6 | |
14480 | else | |
14481 | ||
14482 | cat > conftest.$ac_ext <<EOF | |
3f0f0161 | 14483 | #line 14484 "configure" |
10f2d63a VZ |
14484 | #include "confdefs.h" |
14485 | #include <pthread.h> | |
698dcdb6 | 14486 | int main() { |
10f2d63a VZ |
14487 | |
14488 | pthread_cleanup_push(NULL, NULL); | |
14489 | pthread_cleanup_pop(0); | |
698dcdb6 VZ |
14490 | |
14491 | ; return 0; } | |
14492 | EOF | |
3f0f0161 | 14493 | if { (eval echo configure:14494: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 VZ |
14494 | rm -rf conftest* |
14495 | ||
10f2d63a | 14496 | wx_cv_func_pthread_cleanup_push=yes |
698dcdb6 | 14497 | |
10f2d63a | 14498 | else |
698dcdb6 VZ |
14499 | echo "configure: failed program was:" >&5 |
14500 | cat conftest.$ac_ext >&5 | |
14501 | rm -rf conftest* | |
14502 | ||
10f2d63a | 14503 | wx_cv_func_pthread_cleanup_push=no |
698dcdb6 | 14504 | |
6232543b | 14505 | fi |
698dcdb6 VZ |
14506 | rm -f conftest* |
14507 | ||
1e487827 | 14508 | fi |
698dcdb6 VZ |
14509 | |
14510 | echo "$ac_t""$wx_cv_func_pthread_cleanup_push" 1>&6 | |
10f2d63a | 14511 | |
d9b9876f | 14512 | if test "$wx_cv_func_pthread_cleanup_push" = "yes"; then |
698dcdb6 | 14513 | cat >> confdefs.h <<\EOF |
d9b9876f VZ |
14514 | #define HAVE_THREAD_CLEANUP_FUNCTIONS 1 |
14515 | EOF | |
14516 | ||
14517 | fi | |
14518 | ||
698dcdb6 VZ |
14519 | |
14520 | echo $ac_n "checking for pthread_mutexattr_t""... $ac_c" 1>&6 | |
3f0f0161 | 14521 | echo "configure:14522: checking for pthread_mutexattr_t" >&5 |
698dcdb6 VZ |
14522 | if eval "test \"`echo '$''{'wx_cv_type_pthread_mutexattr_t'+set}'`\" = set"; then |
14523 | echo $ac_n "(cached) $ac_c" 1>&6 | |
d9b9876f | 14524 | else |
698dcdb6 VZ |
14525 | |
14526 | cat > conftest.$ac_ext <<EOF | |
3f0f0161 | 14527 | #line 14528 "configure" |
d9b9876f VZ |
14528 | #include "confdefs.h" |
14529 | #include <pthread.h> | |
698dcdb6 | 14530 | int main() { |
d9b9876f VZ |
14531 | |
14532 | pthread_mutexattr_t attr; | |
14533 | pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE); | |
698dcdb6 VZ |
14534 | |
14535 | ; return 0; } | |
14536 | EOF | |
3f0f0161 | 14537 | if { (eval echo configure:14538: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 VZ |
14538 | rm -rf conftest* |
14539 | ||
d9b9876f | 14540 | wx_cv_type_pthread_mutexattr_t=yes |
698dcdb6 | 14541 | |
d9b9876f | 14542 | else |
698dcdb6 VZ |
14543 | echo "configure: failed program was:" >&5 |
14544 | cat conftest.$ac_ext >&5 | |
14545 | rm -rf conftest* | |
14546 | ||
d9b9876f | 14547 | wx_cv_type_pthread_mutexattr_t=no |
698dcdb6 VZ |
14548 | |
14549 | ||
6232543b | 14550 | fi |
698dcdb6 VZ |
14551 | rm -f conftest* |
14552 | ||
1e487827 | 14553 | fi |
698dcdb6 VZ |
14554 | |
14555 | echo "$ac_t""$wx_cv_type_pthread_mutexattr_t" 1>&6 | |
d9b9876f VZ |
14556 | |
14557 | if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then | |
698dcdb6 | 14558 | cat >> confdefs.h <<\EOF |
d9b9876f VZ |
14559 | #define HAVE_PTHREAD_MUTEXATTR_T 1 |
14560 | EOF | |
14561 | ||
14562 | else | |
698dcdb6 | 14563 | echo $ac_n "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER""... $ac_c" 1>&6 |
3f0f0161 | 14564 | echo "configure:14565: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5 |
698dcdb6 VZ |
14565 | if eval "test \"`echo '$''{'wx_cv_type_pthread_rec_mutex_init'+set}'`\" = set"; then |
14566 | echo $ac_n "(cached) $ac_c" 1>&6 | |
14567 | else | |
14568 | ||
14569 | cat > conftest.$ac_ext <<EOF | |
3f0f0161 | 14570 | #line 14571 "configure" |
d9b9876f VZ |
14571 | #include "confdefs.h" |
14572 | #include <pthread.h> | |
698dcdb6 | 14573 | int main() { |
d9b9876f VZ |
14574 | |
14575 | pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP; | |
698dcdb6 VZ |
14576 | |
14577 | ; return 0; } | |
14578 | EOF | |
3f0f0161 | 14579 | if { (eval echo configure:14580: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 VZ |
14580 | rm -rf conftest* |
14581 | ||
d9b9876f | 14582 | wx_cv_type_pthread_rec_mutex_init=yes |
698dcdb6 | 14583 | |
d9b9876f | 14584 | else |
698dcdb6 VZ |
14585 | echo "configure: failed program was:" >&5 |
14586 | cat conftest.$ac_ext >&5 | |
14587 | rm -rf conftest* | |
14588 | ||
d9b9876f | 14589 | wx_cv_type_pthread_rec_mutex_init=no |
698dcdb6 VZ |
14590 | |
14591 | ||
6232543b | 14592 | fi |
698dcdb6 VZ |
14593 | rm -f conftest* |
14594 | ||
1e487827 | 14595 | fi |
698dcdb6 VZ |
14596 | |
14597 | echo "$ac_t""$wx_cv_type_pthread_rec_mutex_init" 1>&6 | |
3765e936 | 14598 | if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then |
698dcdb6 | 14599 | cat >> confdefs.h <<\EOF |
d9b9876f VZ |
14600 | #define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1 |
14601 | EOF | |
14602 | ||
14603 | else | |
698dcdb6 | 14604 | echo "configure: warning: wxMutex won't be recursive on this platform" 1>&2 |
d9b9876f VZ |
14605 | fi |
14606 | fi | |
14607 | ||
10f2d63a | 14608 | THREADS_LINK="-l$THREADS_LINK" |
186837b0 VZ |
14609 | |
14610 | if test "$USE_SOLARIS" = "yes" -a "$GCC" != "yes"; then | |
14611 | CFLAGS="${CFLAGS} -mt" | |
14612 | CXXFLAGS="${CXXFLAGS} -mt" | |
14613 | LDFLAGS="${LDFLAGS} -mt" | |
14614 | fi | |
10f2d63a VZ |
14615 | fi |
14616 | ||
14617 | fi | |
14618 | ||
14619 | if test "$wxUSE_THREADS" = "yes"; then | |
698dcdb6 | 14620 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
14621 | #define wxUSE_THREADS 1 |
14622 | EOF | |
14623 | ||
698dcdb6 | 14624 | |
6ff77d33 | 14625 | if test "x$wxUSE_DARWIN" != "x1"; then |
10f2d63a | 14626 | CFLAGS="${CFLAGS} -D_REENTRANT" |
2c6025bc GD |
14627 | CXXFLAGS="${CXXFLAGS} -D_REENTRANT" |
14628 | fi | |
10f2d63a VZ |
14629 | |
14630 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread" | |
14631 | else | |
14632 | if test "$ac_cv_func_strtok_r" = "yes"; then | |
698dcdb6 | 14633 | echo $ac_n "checking if -D_REENTRANT is needed""... $ac_c" 1>&6 |
3f0f0161 | 14634 | echo "configure:14635: checking if -D_REENTRANT is needed" >&5 |
ab9b9eab VZ |
14635 | if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then |
14636 | CFLAGS="${CFLAGS} -D_REENTRANT" | |
14637 | CXXFLAGS="${CXXFLAGS} -D_REENTRANT" | |
698dcdb6 | 14638 | echo "$ac_t""yes" 1>&6 |
ab9b9eab | 14639 | else |
698dcdb6 | 14640 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
14641 | fi |
14642 | fi | |
14643 | fi | |
14644 | ||
6f72b082 | 14645 | if test "$WXGTK20" = 1 ; then |
698dcdb6 | 14646 | cat >> confdefs.h <<EOF |
6f72b082 | 14647 | #define __WXGTK20__ $WXGTK20 |
13111b2a VZ |
14648 | EOF |
14649 | ||
14650 | WXGTK12=1 | |
14651 | fi | |
14652 | ||
10f2d63a | 14653 | if test "$WXGTK12" = 1 ; then |
698dcdb6 | 14654 | cat >> confdefs.h <<EOF |
10f2d63a VZ |
14655 | #define __WXGTK12__ $WXGTK12 |
14656 | EOF | |
14657 | ||
14658 | fi | |
14659 | ||
f6bcfd97 | 14660 | if test "$WXGTK127" = 1 ; then |
698dcdb6 | 14661 | cat >> confdefs.h <<EOF |
f6bcfd97 BP |
14662 | #define __WXGTK127__ $WXGTK127 |
14663 | EOF | |
14664 | ||
14665 | fi | |
14666 | ||
10f2d63a VZ |
14667 | if test "$WXWINE" = 1 ; then |
14668 | TOOLKIT_DEF="${TOOLKIT_DEF} -D__WXWINE__" | |
14669 | fi | |
14670 | ||
b4085ce6 | 14671 | if test "$wxUSE_MAC" = 1 ; then |
f11bdd03 GD |
14672 | TOOLKIT_DEF="${TOOLKIT_DEF} -DTARGET_CARBON" |
14673 | CFLAGS="${CFLAGS} -fpascal-strings" | |
14674 | CPPFLAGS="${CPPFLAGS} -cpp-precomp -fpascal-strings" | |
2f51a9ec GD |
14675 | # Extract the first word of "Rez", so it can be a program name with args. |
14676 | set dummy Rez; ac_word=$2 | |
698dcdb6 | 14677 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
3f0f0161 | 14678 | echo "configure:14679: checking for $ac_word" >&5 |
698dcdb6 VZ |
14679 | if eval "test \"`echo '$''{'ac_cv_prog_REZ'+set}'`\" = set"; then |
14680 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2f51a9ec GD |
14681 | else |
14682 | if test -n "$REZ"; then | |
14683 | ac_cv_prog_REZ="$REZ" # Let the user override the test. | |
14684 | else | |
698dcdb6 VZ |
14685 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
14686 | ac_dummy="$PATH" | |
14687 | for ac_dir in $ac_dummy; do | |
14688 | test -z "$ac_dir" && ac_dir=. | |
14689 | if test -f $ac_dir/$ac_word; then | |
14690 | ac_cv_prog_REZ="Rez" | |
14691 | break | |
14692 | fi | |
14693 | done | |
14694 | IFS="$ac_save_ifs" | |
2f51a9ec GD |
14695 | test -z "$ac_cv_prog_REZ" && ac_cv_prog_REZ="/Developer/Tools/Rez" |
14696 | fi | |
14697 | fi | |
698dcdb6 | 14698 | REZ="$ac_cv_prog_REZ" |
2f51a9ec | 14699 | if test -n "$REZ"; then |
698dcdb6 | 14700 | echo "$ac_t""$REZ" 1>&6 |
2f51a9ec | 14701 | else |
698dcdb6 | 14702 | echo "$ac_t""no" 1>&6 |
2f51a9ec GD |
14703 | fi |
14704 | ||
14705 | # Extract the first word of "Derez", so it can be a program name with args. | |
14706 | set dummy Derez; ac_word=$2 | |
698dcdb6 | 14707 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
3f0f0161 | 14708 | echo "configure:14709: checking for $ac_word" >&5 |
698dcdb6 VZ |
14709 | if eval "test \"`echo '$''{'ac_cv_prog_DEREZ'+set}'`\" = set"; then |
14710 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2f51a9ec GD |
14711 | else |
14712 | if test -n "$DEREZ"; then | |
14713 | ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test. | |
14714 | else | |
698dcdb6 VZ |
14715 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
14716 | ac_dummy="$PATH" | |
14717 | for ac_dir in $ac_dummy; do | |
14718 | test -z "$ac_dir" && ac_dir=. | |
14719 | if test -f $ac_dir/$ac_word; then | |
14720 | ac_cv_prog_DEREZ="Derez" | |
14721 | break | |
14722 | fi | |
14723 | done | |
14724 | IFS="$ac_save_ifs" | |
2f51a9ec GD |
14725 | test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/Derez" |
14726 | fi | |
14727 | fi | |
698dcdb6 | 14728 | DEREZ="$ac_cv_prog_DEREZ" |
2f51a9ec | 14729 | if test -n "$DEREZ"; then |
698dcdb6 | 14730 | echo "$ac_t""$DEREZ" 1>&6 |
2f51a9ec | 14731 | else |
698dcdb6 | 14732 | echo "$ac_t""no" 1>&6 |
2f51a9ec GD |
14733 | fi |
14734 | ||
14735 | RESCOMP=${REZ} | |
14736 | REZFLAGS="-d __UNIX__ -useDF" | |
14737 | DEREZFLAGS="Carbon.r -useDF" | |
14738 | RESFLAGS="Carbon.r -t APPL" | |
14739 | LIBWXMACRES="\$(LIBWX_MACRES)" | |
14740 | LIBWXMACRESCOMP="\$(LIBWX_MACRESCOMP)" | |
b4085ce6 GD |
14741 | fi |
14742 | ||
10f2d63a VZ |
14743 | if test "$wxUSE_CYGWIN" = 1 ; then |
14744 | TOOLKIT_DEF="${TOOLKIT_DEF} -D__WIN95__" | |
14745 | fi | |
14746 | ||
14747 | WXDEBUG= | |
14748 | ||
14749 | if test "$wxUSE_DEBUG_INFO" = "yes" ; then | |
14750 | WXDEBUG="-g" | |
14751 | wxUSE_OPTIMISE=no | |
14752 | fi | |
14753 | ||
14754 | if test "$wxUSE_DEBUG_GDB" = "yes" ; then | |
14755 | wxUSE_DEBUG_INFO=yes | |
14756 | WXDEBUG="-ggdb" | |
14757 | fi | |
14758 | ||
14759 | if test "$wxUSE_DEBUG_FLAG" = "yes" ; then | |
698dcdb6 | 14760 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
14761 | #define WXDEBUG 1 |
14762 | EOF | |
14763 | ||
14764 | WXDEBUG_DEFINE="-D__WXDEBUG__" | |
14765 | else | |
14766 | if test "$wxUSE_GTK" = 1 ; then | |
14767 | WXDEBUG_DEFINE="-DGTK_NO_CHECK_CASTS" | |
14768 | fi | |
14769 | fi | |
14770 | ||
14771 | if test "$wxUSE_MEM_TRACING" = "yes" ; then | |
698dcdb6 | 14772 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
14773 | #define wxUSE_MEMORY_TRACING 1 |
14774 | EOF | |
14775 | ||
698dcdb6 | 14776 | cat >> confdefs.h <<\EOF |
10f2d63a | 14777 | #define wxUSE_GLOBAL_MEMORY_OPERATORS 1 |
47c13eb7 VS |
14778 | EOF |
14779 | ||
698dcdb6 | 14780 | cat >> confdefs.h <<\EOF |
47c13eb7 | 14781 | #define wxUSE_DEBUG_NEW_ALWAYS 1 |
10f2d63a VZ |
14782 | EOF |
14783 | ||
14784 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck" | |
14785 | fi | |
14786 | ||
14787 | if test "$wxUSE_DMALLOC" = "yes" ; then | |
14788 | DMALLOC_LINK="-ldmalloc" | |
14789 | fi | |
14790 | ||
14791 | PROFILE= | |
14792 | if test "$wxUSE_PROFILE" = "yes" ; then | |
14793 | PROFILE="-pg" | |
14794 | fi | |
14795 | ||
14796 | DEP_INFO_FLAGS= | |
caa2c79b | 14797 | CODE_GEN_FLAGS= |
0f3f1cbc | 14798 | CODE_GEN_FLAGS_CXX= |
10f2d63a VZ |
14799 | if test "$GCC" = yes ; then |
14800 | if test "$wxUSE_NO_RTTI" = "yes" ; then | |
0f3f1cbc | 14801 | CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS -fno-rtti" |
10f2d63a VZ |
14802 | fi |
14803 | if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then | |
0f3f1cbc | 14804 | CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS -fno-exceptions" |
10f2d63a VZ |
14805 | fi |
14806 | if test "$wxUSE_PERMISSIVE" = "yes" ; then | |
caa2c79b | 14807 | CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fpermissive" |
10f2d63a VZ |
14808 | fi |
14809 | if test "$wxUSE_NO_DEPS" = "no" ; then | |
14810 | DEP_INFO_FLAGS="-MMD" | |
14811 | fi | |
14812 | fi | |
14813 | ||
698dcdb6 | 14814 | |
10f2d63a VZ |
14815 | CXXFLAGS=`echo "${CXXFLAGS}" | sed "s/\-O.//g" ` |
14816 | CFLAGS=`echo "${CFLAGS}" | sed "s/\-O.//g" ` | |
14817 | if test "$wxUSE_OPTIMISE" = "no" ; then | |
14818 | OPTIMISE= | |
14819 | else | |
14820 | if test "$GCC" = yes ; then | |
14821 | OPTIMISE="-O2" | |
14822 | case "${host}" in | |
14823 | i586-*-*|i686-*-* ) | |
14824 | OPTIMISE="${OPTIMISE} " | |
14825 | ;; | |
14826 | esac | |
14827 | else | |
14828 | OPTIMISE="-O" | |
14829 | fi | |
14830 | fi | |
14831 | ||
54276ccf VZ |
14832 | if test "$WXWIN_COMPATIBILITY_2" = "yes"; then |
14833 | cat >> confdefs.h <<\EOF | |
14834 | #define WXWIN_COMPATIBILITY_2 1 | |
14835 | EOF | |
14836 | ||
14837 | ||
14838 | WXWIN_COMPATIBILITY_2_2="yes" | |
14839 | fi | |
14840 | ||
14841 | if test "$WXWIN_COMPATIBILITY_2_2" = "yes"; then | |
14842 | cat >> confdefs.h <<\EOF | |
14843 | #define WXWIN_COMPATIBILITY_2_2 1 | |
14844 | EOF | |
14845 | ||
14846 | fi | |
14847 | ||
698dcdb6 | 14848 | |
3e44f09d VZ |
14849 | REGEX_INCLUDE= |
14850 | if test "$wxUSE_REGEX" != "no"; then | |
14851 | ac_safe=`echo "regex.h" | sed 'y%./+-%__p_%'` | |
14852 | echo $ac_n "checking for regex.h""... $ac_c" 1>&6 | |
3f0f0161 | 14853 | echo "configure:14854: checking for regex.h" >&5 |
3e44f09d VZ |
14854 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
14855 | echo $ac_n "(cached) $ac_c" 1>&6 | |
14856 | else | |
14857 | cat > conftest.$ac_ext <<EOF | |
3f0f0161 | 14858 | #line 14859 "configure" |
3e44f09d VZ |
14859 | #include "confdefs.h" |
14860 | #include <regex.h> | |
14861 | EOF | |
14862 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
3f0f0161 | 14863 | { (eval echo configure:14864: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
3e44f09d VZ |
14864 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
14865 | if test -z "$ac_err"; then | |
14866 | rm -rf conftest* | |
14867 | eval "ac_cv_header_$ac_safe=yes" | |
14868 | else | |
14869 | echo "$ac_err" >&5 | |
14870 | echo "configure: failed program was:" >&5 | |
14871 | cat conftest.$ac_ext >&5 | |
14872 | rm -rf conftest* | |
14873 | eval "ac_cv_header_$ac_safe=no" | |
14874 | fi | |
14875 | rm -f conftest* | |
14876 | fi | |
14877 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
14878 | echo "$ac_t""yes" 1>&6 | |
14879 | for ac_func in regcomp | |
14880 | do | |
14881 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
3f0f0161 | 14882 | echo "configure:14883: checking for $ac_func" >&5 |
3e44f09d VZ |
14883 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
14884 | echo $ac_n "(cached) $ac_c" 1>&6 | |
14885 | else | |
14886 | cat > conftest.$ac_ext <<EOF | |
3f0f0161 | 14887 | #line 14888 "configure" |
3e44f09d VZ |
14888 | #include "confdefs.h" |
14889 | /* System header to define __stub macros and hopefully few prototypes, | |
14890 | which can conflict with char $ac_func(); below. */ | |
14891 | #include <assert.h> | |
14892 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14893 | /* We use char because int might match the return type of a gcc2 | |
14894 | builtin and then its argument prototype would still apply. */ | |
14895 | char $ac_func(); | |
14896 | ||
14897 | int main() { | |
14898 | ||
14899 | /* The GNU C library defines this for functions which it implements | |
14900 | to always fail with ENOSYS. Some functions are actually named | |
14901 | something starting with __ and the normal name is an alias. */ | |
14902 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
14903 | choke me | |
14904 | #else | |
14905 | $ac_func(); | |
14906 | #endif | |
14907 | ||
14908 | ; return 0; } | |
14909 | EOF | |
3f0f0161 | 14910 | if { (eval echo configure:14911: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
3e44f09d VZ |
14911 | rm -rf conftest* |
14912 | eval "ac_cv_func_$ac_func=yes" | |
14913 | else | |
14914 | echo "configure: failed program was:" >&5 | |
14915 | cat conftest.$ac_ext >&5 | |
14916 | rm -rf conftest* | |
14917 | eval "ac_cv_func_$ac_func=no" | |
14918 | fi | |
14919 | rm -f conftest* | |
14920 | fi | |
14921 | ||
14922 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
14923 | echo "$ac_t""yes" 1>&6 | |
14924 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
14925 | cat >> confdefs.h <<EOF | |
14926 | #define $ac_tr_func 1 | |
14927 | EOF | |
14928 | ||
14929 | else | |
14930 | echo "$ac_t""no" 1>&6 | |
14931 | fi | |
14932 | done | |
14933 | ||
14934 | else | |
14935 | echo "$ac_t""no" 1>&6 | |
14936 | fi | |
14937 | ||
14938 | ||
14939 | if test "x$ac_cv_func_regcomp" != "xyes"; then | |
14940 | if test "$wxUSE_REGEX" = "sys"; then | |
14941 | { echo "configure: error: system regex library not found! Use --with-regex to use the built-in regex library." 1>&2; exit 1; } | |
14942 | fi | |
14943 | ||
14944 | REGEX_INCLUDE="-I\${top_srcdir}/src/regex" | |
14945 | fi | |
14946 | ||
14947 | cat >> confdefs.h <<\EOF | |
14948 | #define wxUSE_REGEX 1 | |
14949 | EOF | |
14950 | ||
14951 | fi | |
14952 | ||
10f2d63a | 14953 | ZLIB_INCLUDE= |
422107f9 | 14954 | if test "$wxUSE_ZLIB" = "yes" -o "$wxUSE_ZLIB" = "sys" ; then |
698dcdb6 | 14955 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
14956 | #define wxUSE_ZLIB 1 |
14957 | EOF | |
14958 | ||
422107f9 VZ |
14959 | if test "$wxUSE_ZLIB" = "yes" ; then |
14960 | ZLIB_INCLUDE="-I\${top_srcdir}/src/zlib" | |
14961 | else | |
14962 | ZLIB_LINK= | |
698dcdb6 VZ |
14963 | ac_safe=`echo "zlib.h" | sed 'y%./+-%__p_%'` |
14964 | echo $ac_n "checking for zlib.h""... $ac_c" 1>&6 | |
3f0f0161 | 14965 | echo "configure:14966: checking for zlib.h" >&5 |
698dcdb6 VZ |
14966 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
14967 | echo $ac_n "(cached) $ac_c" 1>&6 | |
14968 | else | |
14969 | cat > conftest.$ac_ext <<EOF | |
3f0f0161 | 14970 | #line 14971 "configure" |
422107f9 VZ |
14971 | #include "confdefs.h" |
14972 | #include <zlib.h> | |
698dcdb6 VZ |
14973 | EOF |
14974 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
3f0f0161 | 14975 | { (eval echo configure:14976: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
14976 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
14977 | if test -z "$ac_err"; then | |
14978 | rm -rf conftest* | |
14979 | eval "ac_cv_header_$ac_safe=yes" | |
422107f9 | 14980 | else |
698dcdb6 VZ |
14981 | echo "$ac_err" >&5 |
14982 | echo "configure: failed program was:" >&5 | |
422107f9 | 14983 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
14984 | rm -rf conftest* |
14985 | eval "ac_cv_header_$ac_safe=no" | |
422107f9 | 14986 | fi |
698dcdb6 | 14987 | rm -f conftest* |
422107f9 | 14988 | fi |
698dcdb6 VZ |
14989 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
14990 | echo "$ac_t""yes" 1>&6 | |
14991 | echo $ac_n "checking for deflate in -lz""... $ac_c" 1>&6 | |
3f0f0161 | 14992 | echo "configure:14993: checking for deflate in -lz" >&5 |
698dcdb6 VZ |
14993 | ac_lib_var=`echo z'_'deflate | sed 'y%./+-%__p_%'` |
14994 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
14995 | echo $ac_n "(cached) $ac_c" 1>&6 | |
422107f9 | 14996 | else |
698dcdb6 | 14997 | ac_save_LIBS="$LIBS" |
422107f9 | 14998 | LIBS="-lz $LIBS" |
698dcdb6 | 14999 | cat > conftest.$ac_ext <<EOF |
3f0f0161 | 15000 | #line 15001 "configure" |
422107f9 VZ |
15001 | #include "confdefs.h" |
15002 | /* Override any gcc2 internal prototype to avoid an error. */ | |
15003 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
15004 | builtin and then its argument prototype would still apply. */ |
15005 | char deflate(); | |
15006 | ||
15007 | int main() { | |
15008 | deflate() | |
15009 | ; return 0; } | |
15010 | EOF | |
3f0f0161 | 15011 | if { (eval echo configure:15012: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
15012 | rm -rf conftest* |
15013 | eval "ac_cv_lib_$ac_lib_var=yes" | |
15014 | else | |
15015 | echo "configure: failed program was:" >&5 | |
15016 | cat conftest.$ac_ext >&5 | |
15017 | rm -rf conftest* | |
15018 | eval "ac_cv_lib_$ac_lib_var=no" | |
15019 | fi | |
15020 | rm -f conftest* | |
15021 | LIBS="$ac_save_LIBS" | |
15022 | ||
15023 | fi | |
15024 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
15025 | echo "$ac_t""yes" 1>&6 | |
422107f9 | 15026 | ZLIB_LINK="-lz" |
698dcdb6 VZ |
15027 | else |
15028 | echo "$ac_t""no" 1>&6 | |
422107f9 VZ |
15029 | fi |
15030 | ||
698dcdb6 VZ |
15031 | else |
15032 | echo "$ac_t""no" 1>&6 | |
422107f9 VZ |
15033 | fi |
15034 | ||
15035 | if test "x$ZLIB_LINK" = "x" ; then | |
698dcdb6 | 15036 | { echo "configure: error: system zlib compression library not found! Use --with-zlib=yes to use built-in zlib" 1>&2; exit 1; } |
422107f9 VZ |
15037 | fi |
15038 | fi | |
10f2d63a VZ |
15039 | fi |
15040 | ||
15041 | PNG_INCLUDE= | |
422107f9 | 15042 | if test "$wxUSE_LIBPNG" = "yes" -o "$wxUSE_LIBPNG" = "sys" ; then |
698dcdb6 | 15043 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
15044 | #define wxUSE_LIBPNG 1 |
15045 | EOF | |
15046 | ||
41fd4136 | 15047 | if test "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then |
698dcdb6 | 15048 | echo "configure: warning: --with-libpng=sys doesn't work without --with-zlib=sys, will compile the built-in libpng instead" 1>&2 |
422107f9 VZ |
15049 | wxUSE_LIBPNG=yes |
15050 | fi | |
15051 | ||
15052 | if test "$wxUSE_LIBPNG" = "yes" ; then | |
15053 | PNG_INCLUDE="-I\${top_srcdir}/src/png" | |
15054 | else | |
15055 | PNG_LINK= | |
698dcdb6 VZ |
15056 | ac_safe=`echo "png.h" | sed 'y%./+-%__p_%'` |
15057 | echo $ac_n "checking for png.h""... $ac_c" 1>&6 | |
3f0f0161 | 15058 | echo "configure:15059: checking for png.h" >&5 |
698dcdb6 VZ |
15059 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
15060 | echo $ac_n "(cached) $ac_c" 1>&6 | |
15061 | else | |
15062 | cat > conftest.$ac_ext <<EOF | |
3f0f0161 | 15063 | #line 15064 "configure" |
422107f9 VZ |
15064 | #include "confdefs.h" |
15065 | #include <png.h> | |
698dcdb6 VZ |
15066 | EOF |
15067 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
3f0f0161 | 15068 | { (eval echo configure:15069: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
15069 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
15070 | if test -z "$ac_err"; then | |
15071 | rm -rf conftest* | |
15072 | eval "ac_cv_header_$ac_safe=yes" | |
422107f9 | 15073 | else |
698dcdb6 VZ |
15074 | echo "$ac_err" >&5 |
15075 | echo "configure: failed program was:" >&5 | |
422107f9 | 15076 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
15077 | rm -rf conftest* |
15078 | eval "ac_cv_header_$ac_safe=no" | |
422107f9 | 15079 | fi |
698dcdb6 | 15080 | rm -f conftest* |
422107f9 | 15081 | fi |
698dcdb6 VZ |
15082 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
15083 | echo "$ac_t""yes" 1>&6 | |
15084 | echo $ac_n "checking for png_check_sig in -lpng""... $ac_c" 1>&6 | |
3f0f0161 | 15085 | echo "configure:15086: checking for png_check_sig in -lpng" >&5 |
698dcdb6 VZ |
15086 | ac_lib_var=`echo png'_'png_check_sig | sed 'y%./+-%__p_%'` |
15087 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
15088 | echo $ac_n "(cached) $ac_c" 1>&6 | |
422107f9 | 15089 | else |
698dcdb6 | 15090 | ac_save_LIBS="$LIBS" |
422107f9 | 15091 | LIBS="-lpng -lz -lm $LIBS" |
698dcdb6 | 15092 | cat > conftest.$ac_ext <<EOF |
3f0f0161 | 15093 | #line 15094 "configure" |
422107f9 VZ |
15094 | #include "confdefs.h" |
15095 | /* Override any gcc2 internal prototype to avoid an error. */ | |
15096 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
15097 | builtin and then its argument prototype would still apply. */ |
15098 | char png_check_sig(); | |
15099 | ||
15100 | int main() { | |
15101 | png_check_sig() | |
15102 | ; return 0; } | |
15103 | EOF | |
3f0f0161 | 15104 | if { (eval echo configure:15105: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
15105 | rm -rf conftest* |
15106 | eval "ac_cv_lib_$ac_lib_var=yes" | |
15107 | else | |
15108 | echo "configure: failed program was:" >&5 | |
15109 | cat conftest.$ac_ext >&5 | |
15110 | rm -rf conftest* | |
15111 | eval "ac_cv_lib_$ac_lib_var=no" | |
15112 | fi | |
15113 | rm -f conftest* | |
15114 | LIBS="$ac_save_LIBS" | |
15115 | ||
15116 | fi | |
15117 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
15118 | echo "$ac_t""yes" 1>&6 | |
422107f9 | 15119 | PNG_LINK="-lpng" |
698dcdb6 VZ |
15120 | else |
15121 | echo "$ac_t""no" 1>&6 | |
422107f9 VZ |
15122 | fi |
15123 | ||
698dcdb6 VZ |
15124 | |
15125 | else | |
15126 | echo "$ac_t""no" 1>&6 | |
422107f9 VZ |
15127 | fi |
15128 | ||
15129 | if test "x$PNG_LINK" = "x" ; then | |
698dcdb6 | 15130 | { echo "configure: error: system png library not found! Use --with-libpng=yes to use the built-in libpng" 1>&2; exit 1; } |
422107f9 VZ |
15131 | fi |
15132 | fi | |
15133 | ||
10f2d63a VZ |
15134 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png" |
15135 | fi | |
15136 | ||
15137 | JPEG_INCLUDE= | |
422107f9 | 15138 | if test "$wxUSE_LIBJPEG" = "yes" -o "$wxUSE_LIBJPEG" = "sys" ; then |
698dcdb6 | 15139 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
15140 | #define wxUSE_LIBJPEG 1 |
15141 | EOF | |
15142 | ||
422107f9 VZ |
15143 | if test "$wxUSE_LIBJPEG" = "yes" ; then |
15144 | JPEG_INCLUDE="-I\${top_srcdir}/src/jpeg" | |
15145 | else | |
15146 | JPEG_LINK= | |
463abc64 | 15147 | echo $ac_n "checking for jpeglib.h""... $ac_c" 1>&6 |
3f0f0161 | 15148 | echo "configure:15149: checking for jpeglib.h" >&5 |
463abc64 | 15149 | if eval "test \"`echo '$''{'ac_cv_header_jpeglib_h'+set}'`\" = set"; then |
698dcdb6 VZ |
15150 | echo $ac_n "(cached) $ac_c" 1>&6 |
15151 | else | |
15152 | cat > conftest.$ac_ext <<EOF | |
3f0f0161 | 15153 | #line 15154 "configure" |
422107f9 | 15154 | #include "confdefs.h" |
463abc64 VZ |
15155 | |
15156 | #undef HAVE_STDLIB_H | |
15157 | #include <stdio.h> | |
15158 | #include <jpeglib.h> | |
15159 | ||
15160 | int main() { | |
15161 | ||
15162 | ||
15163 | ; return 0; } | |
698dcdb6 | 15164 | EOF |
3f0f0161 | 15165 | if { (eval echo configure:15166: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 | 15166 | rm -rf conftest* |
463abc64 | 15167 | ac_cv_header_jpeglib_h=yes |
6232543b | 15168 | else |
698dcdb6 | 15169 | echo "configure: failed program was:" >&5 |
422107f9 | 15170 | cat conftest.$ac_ext >&5 |
698dcdb6 | 15171 | rm -rf conftest* |
463abc64 VZ |
15172 | ac_cv_header_jpeglib_h=no |
15173 | ||
422107f9 | 15174 | fi |
698dcdb6 | 15175 | rm -f conftest* |
463abc64 | 15176 | |
422107f9 | 15177 | fi |
463abc64 VZ |
15178 | |
15179 | echo "$ac_t""$ac_cv_header_jpeglib_h" 1>&6 | |
15180 | ||
15181 | if test "$ac_cv_header_jpeglib_h" = "yes"; then | |
15182 | echo $ac_n "checking for jpeg_read_header in -ljpeg""... $ac_c" 1>&6 | |
3f0f0161 | 15183 | echo "configure:15184: checking for jpeg_read_header in -ljpeg" >&5 |
698dcdb6 VZ |
15184 | ac_lib_var=`echo jpeg'_'jpeg_read_header | sed 'y%./+-%__p_%'` |
15185 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
15186 | echo $ac_n "(cached) $ac_c" 1>&6 | |
422107f9 | 15187 | else |
698dcdb6 | 15188 | ac_save_LIBS="$LIBS" |
422107f9 | 15189 | LIBS="-ljpeg $LIBS" |
698dcdb6 | 15190 | cat > conftest.$ac_ext <<EOF |
3f0f0161 | 15191 | #line 15192 "configure" |
422107f9 VZ |
15192 | #include "confdefs.h" |
15193 | /* Override any gcc2 internal prototype to avoid an error. */ | |
15194 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
15195 | builtin and then its argument prototype would still apply. */ |
15196 | char jpeg_read_header(); | |
15197 | ||
15198 | int main() { | |
15199 | jpeg_read_header() | |
15200 | ; return 0; } | |
15201 | EOF | |
3f0f0161 | 15202 | if { (eval echo configure:15203: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
15203 | rm -rf conftest* |
15204 | eval "ac_cv_lib_$ac_lib_var=yes" | |
15205 | else | |
15206 | echo "configure: failed program was:" >&5 | |
15207 | cat conftest.$ac_ext >&5 | |
15208 | rm -rf conftest* | |
15209 | eval "ac_cv_lib_$ac_lib_var=no" | |
15210 | fi | |
15211 | rm -f conftest* | |
15212 | LIBS="$ac_save_LIBS" | |
15213 | ||
15214 | fi | |
15215 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
15216 | echo "$ac_t""yes" 1>&6 | |
422107f9 | 15217 | JPEG_LINK="-ljpeg" |
698dcdb6 VZ |
15218 | else |
15219 | echo "$ac_t""no" 1>&6 | |
422107f9 VZ |
15220 | fi |
15221 | ||
463abc64 | 15222 | fi |
422107f9 VZ |
15223 | |
15224 | if test "x$JPEG_LINK" = "x" ; then | |
698dcdb6 | 15225 | { echo "configure: error: system jpeg library not found! Use --with-libjpeg=yes to use the built-in one" 1>&2; exit 1; } |
422107f9 VZ |
15226 | fi |
15227 | fi | |
10f2d63a VZ |
15228 | fi |
15229 | ||
c7a2bf27 | 15230 | TIFF_INCLUDE= |
0dcf9893 | 15231 | if test "$wxUSE_LIBTIFF" = "yes" -o "$wxUSE_LIBTIFF" = "sys" ; then |
698dcdb6 | 15232 | cat >> confdefs.h <<\EOF |
c7a2bf27 RR |
15233 | #define wxUSE_LIBTIFF 1 |
15234 | EOF | |
15235 | ||
665bbe97 | 15236 | if test "$wxUSE_LIBTIFF" = "yes" ; then |
0dcf9893 VZ |
15237 | TIFF_INCLUDE="-I\${top_srcdir}/src/tiff" |
15238 | else | |
15239 | TIFF_LINK= | |
698dcdb6 VZ |
15240 | ac_safe=`echo "tiffio.h" | sed 'y%./+-%__p_%'` |
15241 | echo $ac_n "checking for tiffio.h""... $ac_c" 1>&6 | |
3f0f0161 | 15242 | echo "configure:15243: checking for tiffio.h" >&5 |
698dcdb6 VZ |
15243 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
15244 | echo $ac_n "(cached) $ac_c" 1>&6 | |
15245 | else | |
15246 | cat > conftest.$ac_ext <<EOF | |
3f0f0161 | 15247 | #line 15248 "configure" |
0dcf9893 VZ |
15248 | #include "confdefs.h" |
15249 | #include <tiffio.h> | |
698dcdb6 VZ |
15250 | EOF |
15251 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
3f0f0161 | 15252 | { (eval echo configure:15253: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
15253 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
15254 | if test -z "$ac_err"; then | |
15255 | rm -rf conftest* | |
15256 | eval "ac_cv_header_$ac_safe=yes" | |
1e487827 | 15257 | else |
698dcdb6 VZ |
15258 | echo "$ac_err" >&5 |
15259 | echo "configure: failed program was:" >&5 | |
0dcf9893 | 15260 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
15261 | rm -rf conftest* |
15262 | eval "ac_cv_header_$ac_safe=no" | |
0dcf9893 | 15263 | fi |
698dcdb6 | 15264 | rm -f conftest* |
0dcf9893 | 15265 | fi |
698dcdb6 VZ |
15266 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
15267 | echo "$ac_t""yes" 1>&6 | |
15268 | echo $ac_n "checking for TIFFError in -ltiff""... $ac_c" 1>&6 | |
3f0f0161 | 15269 | echo "configure:15270: checking for TIFFError in -ltiff" >&5 |
698dcdb6 VZ |
15270 | ac_lib_var=`echo tiff'_'TIFFError | sed 'y%./+-%__p_%'` |
15271 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
15272 | echo $ac_n "(cached) $ac_c" 1>&6 | |
0dcf9893 | 15273 | else |
698dcdb6 | 15274 | ac_save_LIBS="$LIBS" |
0dcf9893 | 15275 | LIBS="-ltiff -lm $LIBS" |
698dcdb6 | 15276 | cat > conftest.$ac_ext <<EOF |
3f0f0161 | 15277 | #line 15278 "configure" |
0dcf9893 VZ |
15278 | #include "confdefs.h" |
15279 | /* Override any gcc2 internal prototype to avoid an error. */ | |
15280 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
15281 | builtin and then its argument prototype would still apply. */ |
15282 | char TIFFError(); | |
15283 | ||
15284 | int main() { | |
15285 | TIFFError() | |
15286 | ; return 0; } | |
15287 | EOF | |
3f0f0161 | 15288 | if { (eval echo configure:15289: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
15289 | rm -rf conftest* |
15290 | eval "ac_cv_lib_$ac_lib_var=yes" | |
15291 | else | |
15292 | echo "configure: failed program was:" >&5 | |
15293 | cat conftest.$ac_ext >&5 | |
15294 | rm -rf conftest* | |
15295 | eval "ac_cv_lib_$ac_lib_var=no" | |
15296 | fi | |
15297 | rm -f conftest* | |
15298 | LIBS="$ac_save_LIBS" | |
15299 | ||
15300 | fi | |
15301 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
15302 | echo "$ac_t""yes" 1>&6 | |
0dcf9893 | 15303 | TIFF_LINK="-ltiff" |
698dcdb6 VZ |
15304 | else |
15305 | echo "$ac_t""no" 1>&6 | |
0dcf9893 VZ |
15306 | fi |
15307 | ||
698dcdb6 VZ |
15308 | else |
15309 | echo "$ac_t""no" 1>&6 | |
0dcf9893 VZ |
15310 | fi |
15311 | ||
15312 | if test "x$TIFF_LINK" = "x" ; then | |
698dcdb6 | 15313 | { echo "configure: error: system tiff library not found! Use --with-libtiff=yes to use the built-in one" 1>&2; exit 1; } |
0dcf9893 VZ |
15314 | fi |
15315 | fi | |
c7a2bf27 RR |
15316 | fi |
15317 | ||
3fed1840 RR |
15318 | FREETYPE_INCLUDE= |
15319 | if test "$wxUSE_FREETYPE" = "yes" -o "$wxUSE_FREETYPE" = "sys" ; then | |
698dcdb6 | 15320 | cat >> confdefs.h <<\EOF |
3fed1840 RR |
15321 | #define wxUSE_FREETYPE 1 |
15322 | EOF | |
15323 | ||
15324 | if test "$wxUSE_FREETYPE" = "yes" ; then | |
15325 | FREETYPE_INCLUDE="-I\${top_srcdir}/src/freetype" | |
15326 | else | |
15327 | FREETYPE_LINK= | |
698dcdb6 VZ |
15328 | ac_safe=`echo "freetype.h" | sed 'y%./+-%__p_%'` |
15329 | echo $ac_n "checking for freetype.h""... $ac_c" 1>&6 | |
3f0f0161 | 15330 | echo "configure:15331: checking for freetype.h" >&5 |
698dcdb6 VZ |
15331 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
15332 | echo $ac_n "(cached) $ac_c" 1>&6 | |
15333 | else | |
15334 | cat > conftest.$ac_ext <<EOF | |
3f0f0161 | 15335 | #line 15336 "configure" |
3fed1840 RR |
15336 | #include "confdefs.h" |
15337 | #include <freetype.h> | |
698dcdb6 VZ |
15338 | EOF |
15339 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
3f0f0161 | 15340 | { (eval echo configure:15341: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
15341 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
15342 | if test -z "$ac_err"; then | |
15343 | rm -rf conftest* | |
15344 | eval "ac_cv_header_$ac_safe=yes" | |
3fed1840 | 15345 | else |
698dcdb6 VZ |
15346 | echo "$ac_err" >&5 |
15347 | echo "configure: failed program was:" >&5 | |
3fed1840 | 15348 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
15349 | rm -rf conftest* |
15350 | eval "ac_cv_header_$ac_safe=no" | |
3fed1840 | 15351 | fi |
698dcdb6 | 15352 | rm -f conftest* |
3fed1840 | 15353 | fi |
698dcdb6 VZ |
15354 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
15355 | echo "$ac_t""yes" 1>&6 | |
15356 | echo $ac_n "checking for FT_Render_Glyph in -lfreetype""... $ac_c" 1>&6 | |
3f0f0161 | 15357 | echo "configure:15358: checking for FT_Render_Glyph in -lfreetype" >&5 |
698dcdb6 VZ |
15358 | ac_lib_var=`echo freetype'_'FT_Render_Glyph | sed 'y%./+-%__p_%'` |
15359 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
15360 | echo $ac_n "(cached) $ac_c" 1>&6 | |
3fed1840 | 15361 | else |
698dcdb6 | 15362 | ac_save_LIBS="$LIBS" |
3fed1840 | 15363 | LIBS="-lfreetype -lm $LIBS" |
698dcdb6 | 15364 | cat > conftest.$ac_ext <<EOF |
3f0f0161 | 15365 | #line 15366 "configure" |
3fed1840 RR |
15366 | #include "confdefs.h" |
15367 | /* Override any gcc2 internal prototype to avoid an error. */ | |
15368 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
15369 | builtin and then its argument prototype would still apply. */ |
15370 | char FT_Render_Glyph(); | |
15371 | ||
15372 | int main() { | |
15373 | FT_Render_Glyph() | |
15374 | ; return 0; } | |
15375 | EOF | |
3f0f0161 | 15376 | if { (eval echo configure:15377: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
15377 | rm -rf conftest* |
15378 | eval "ac_cv_lib_$ac_lib_var=yes" | |
15379 | else | |
15380 | echo "configure: failed program was:" >&5 | |
15381 | cat conftest.$ac_ext >&5 | |
15382 | rm -rf conftest* | |
15383 | eval "ac_cv_lib_$ac_lib_var=no" | |
15384 | fi | |
15385 | rm -f conftest* | |
15386 | LIBS="$ac_save_LIBS" | |
15387 | ||
15388 | fi | |
15389 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
15390 | echo "$ac_t""yes" 1>&6 | |
3fed1840 | 15391 | FREETYPE_LINK="-lfreetype" |
698dcdb6 VZ |
15392 | else |
15393 | echo "$ac_t""no" 1>&6 | |
3fed1840 RR |
15394 | fi |
15395 | ||
698dcdb6 VZ |
15396 | |
15397 | else | |
15398 | echo "$ac_t""no" 1>&6 | |
3fed1840 RR |
15399 | fi |
15400 | ||
15401 | if test "x$FREETYPE_LINK" = "x" ; then | |
698dcdb6 | 15402 | { echo "configure: error: system freetype library not found! Use --with-freetype=yes to use the built-in freetype" 1>&2; exit 1; } |
3fed1840 RR |
15403 | fi |
15404 | fi | |
15405 | fi | |
15406 | ||
10f2d63a | 15407 | if test "$wxUSE_OPENGL" = "yes"; then |
698dcdb6 VZ |
15408 | ac_safe=`echo "GL/gl.h" | sed 'y%./+-%__p_%'` |
15409 | echo $ac_n "checking for GL/gl.h""... $ac_c" 1>&6 | |
3f0f0161 | 15410 | echo "configure:15411: checking for GL/gl.h" >&5 |
698dcdb6 VZ |
15411 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
15412 | echo $ac_n "(cached) $ac_c" 1>&6 | |
15413 | else | |
15414 | cat > conftest.$ac_ext <<EOF | |
3f0f0161 | 15415 | #line 15416 "configure" |
10f2d63a VZ |
15416 | #include "confdefs.h" |
15417 | #include <GL/gl.h> | |
698dcdb6 VZ |
15418 | EOF |
15419 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
3f0f0161 | 15420 | { (eval echo configure:15421: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
15421 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
15422 | if test -z "$ac_err"; then | |
15423 | rm -rf conftest* | |
15424 | eval "ac_cv_header_$ac_safe=yes" | |
10f2d63a | 15425 | else |
698dcdb6 VZ |
15426 | echo "$ac_err" >&5 |
15427 | echo "configure: failed program was:" >&5 | |
10f2d63a | 15428 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
15429 | rm -rf conftest* |
15430 | eval "ac_cv_header_$ac_safe=no" | |
10f2d63a | 15431 | fi |
698dcdb6 | 15432 | rm -f conftest* |
10f2d63a | 15433 | fi |
698dcdb6 VZ |
15434 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
15435 | echo "$ac_t""yes" 1>&6 | |
15436 | ||
15437 | cat >> confdefs.h <<\EOF | |
bdad4e7e RR |
15438 | #define wxUSE_OPENGL 1 |
15439 | EOF | |
15440 | ||
698dcdb6 | 15441 | cat >> confdefs.h <<\EOF |
bdad4e7e RR |
15442 | #define wxUSE_GLCANVAS 1 |
15443 | EOF | |
15444 | ||
698dcdb6 | 15445 | echo $ac_n "checking for glFlush in -lGL""... $ac_c" 1>&6 |
3f0f0161 | 15446 | echo "configure:15447: checking for glFlush in -lGL" >&5 |
698dcdb6 VZ |
15447 | ac_lib_var=`echo GL'_'glFlush | sed 'y%./+-%__p_%'` |
15448 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
15449 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 15450 | else |
698dcdb6 | 15451 | ac_save_LIBS="$LIBS" |
bdad4e7e | 15452 | LIBS="-lGL $LIBS" |
698dcdb6 | 15453 | cat > conftest.$ac_ext <<EOF |
3f0f0161 | 15454 | #line 15455 "configure" |
10f2d63a VZ |
15455 | #include "confdefs.h" |
15456 | /* Override any gcc2 internal prototype to avoid an error. */ | |
15457 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
15458 | builtin and then its argument prototype would still apply. */ |
15459 | char glFlush(); | |
6232543b | 15460 | |
698dcdb6 VZ |
15461 | int main() { |
15462 | glFlush() | |
15463 | ; return 0; } | |
15464 | EOF | |
3f0f0161 | 15465 | if { (eval echo configure:15466: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
15466 | rm -rf conftest* |
15467 | eval "ac_cv_lib_$ac_lib_var=yes" | |
15468 | else | |
15469 | echo "configure: failed program was:" >&5 | |
15470 | cat conftest.$ac_ext >&5 | |
15471 | rm -rf conftest* | |
15472 | eval "ac_cv_lib_$ac_lib_var=no" | |
15473 | fi | |
15474 | rm -f conftest* | |
15475 | LIBS="$ac_save_LIBS" | |
1e487827 | 15476 | |
698dcdb6 VZ |
15477 | fi |
15478 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
15479 | echo "$ac_t""yes" 1>&6 | |
15480 | ||
15481 | OPENGL_LINK="-lGL -lGLU" | |
15482 | ||
10f2d63a | 15483 | else |
698dcdb6 | 15484 | echo "$ac_t""no" 1>&6 |
10f2d63a | 15485 | |
698dcdb6 | 15486 | echo $ac_n "checking for glFlush in -lMesaGL""... $ac_c" 1>&6 |
3f0f0161 | 15487 | echo "configure:15488: checking for glFlush in -lMesaGL" >&5 |
698dcdb6 VZ |
15488 | ac_lib_var=`echo MesaGL'_'glFlush | sed 'y%./+-%__p_%'` |
15489 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
15490 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 15491 | else |
698dcdb6 | 15492 | ac_save_LIBS="$LIBS" |
10f2d63a | 15493 | LIBS="-lMesaGL $LIBS" |
698dcdb6 | 15494 | cat > conftest.$ac_ext <<EOF |
3f0f0161 | 15495 | #line 15496 "configure" |
10f2d63a VZ |
15496 | #include "confdefs.h" |
15497 | /* Override any gcc2 internal prototype to avoid an error. */ | |
15498 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
15499 | builtin and then its argument prototype would still apply. */ |
15500 | char glFlush(); | |
15501 | ||
15502 | int main() { | |
15503 | glFlush() | |
15504 | ; return 0; } | |
15505 | EOF | |
3f0f0161 | 15506 | if { (eval echo configure:15507: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
15507 | rm -rf conftest* |
15508 | eval "ac_cv_lib_$ac_lib_var=yes" | |
15509 | else | |
15510 | echo "configure: failed program was:" >&5 | |
15511 | cat conftest.$ac_ext >&5 | |
15512 | rm -rf conftest* | |
15513 | eval "ac_cv_lib_$ac_lib_var=no" | |
15514 | fi | |
15515 | rm -f conftest* | |
15516 | LIBS="$ac_save_LIBS" | |
10f2d63a | 15517 | |
698dcdb6 VZ |
15518 | fi |
15519 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
15520 | echo "$ac_t""yes" 1>&6 | |
15521 | ||
f6bcfd97 | 15522 | OPENGL_LINK="-lMesaGL -lMesaGLU" |
698dcdb6 VZ |
15523 | |
15524 | else | |
15525 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
15526 | fi |
15527 | ||
698dcdb6 | 15528 | |
10f2d63a VZ |
15529 | fi |
15530 | ||
698dcdb6 | 15531 | |
10f2d63a | 15532 | else |
698dcdb6 VZ |
15533 | echo "$ac_t""no" 1>&6 |
15534 | wxUSE_OPENGL=0 | |
10f2d63a VZ |
15535 | fi |
15536 | ||
15537 | fi | |
15538 | ||
698dcdb6 | 15539 | |
10f2d63a | 15540 | if test "$wxUSE_GUI" = "yes"; then |
698dcdb6 | 15541 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
15542 | #define wxUSE_GUI 1 |
15543 | EOF | |
15544 | ||
698dcdb6 | 15545 | |
10f2d63a | 15546 | else |
698dcdb6 | 15547 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
15548 | #define wxUSE_NOGUI 1 |
15549 | EOF | |
15550 | ||
15551 | fi | |
15552 | ||
698dcdb6 | 15553 | |
10f2d63a | 15554 | if test "$wxUSE_UNIX" = "yes"; then |
698dcdb6 | 15555 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
15556 | #define wxUSE_UNIX 1 |
15557 | EOF | |
15558 | ||
15559 | fi | |
15560 | ||
698dcdb6 | 15561 | |
10f2d63a | 15562 | if test "$wxUSE_APPLE_IEEE" = "yes"; then |
698dcdb6 | 15563 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
15564 | #define wxUSE_APPLE_IEEE 1 |
15565 | EOF | |
15566 | ||
15567 | fi | |
15568 | ||
1e6feb95 VZ |
15569 | if test "$wxUSE_TIMER" = "yes"; then |
15570 | cat >> confdefs.h <<\EOF | |
15571 | #define wxUSE_TIMER 1 | |
15572 | EOF | |
15573 | ||
15574 | fi | |
15575 | ||
10f2d63a | 15576 | if test "$wxUSE_WAVE" = "yes"; then |
698dcdb6 | 15577 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
15578 | #define wxUSE_WAVE 1 |
15579 | EOF | |
15580 | ||
15581 | fi | |
15582 | ||
1e6feb95 VZ |
15583 | if test "$wxUSE_CMDLINE_PARSER" = "yes"; then |
15584 | cat >> confdefs.h <<\EOF | |
15585 | #define wxUSE_CMDLINE_PARSER 1 | |
15586 | EOF | |
15587 | ||
15588 | fi | |
15589 | ||
15590 | if test "$wxUSE_STOPWATCH" = "yes"; then | |
15591 | cat >> confdefs.h <<\EOF | |
15592 | #define wxUSE_STOPWATCH 1 | |
15593 | EOF | |
15594 | ||
15595 | fi | |
15596 | ||
15597 | if test "$wxUSE_DATETIME" = "yes"; then | |
15598 | cat >> confdefs.h <<\EOF | |
15599 | #define wxUSE_DATETIME 1 | |
15600 | EOF | |
15601 | ||
15602 | fi | |
15603 | ||
15604 | if test "$wxUSE_TIMEDATE" = "yes"; then | |
15605 | cat >> confdefs.h <<\EOF | |
15606 | #define wxUSE_TIMEDATE 1 | |
15607 | EOF | |
15608 | ||
15609 | fi | |
15610 | ||
10f2d63a | 15611 | if test "$wxUSE_FILE" = "yes"; then |
698dcdb6 | 15612 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
15613 | #define wxUSE_FILE 1 |
15614 | EOF | |
15615 | ||
15616 | fi | |
15617 | ||
1e6feb95 VZ |
15618 | if test "$wxUSE_FFILE" = "yes"; then |
15619 | cat >> confdefs.h <<\EOF | |
15620 | #define wxUSE_FFILE 1 | |
15621 | EOF | |
15622 | ||
15623 | fi | |
15624 | ||
24528b0c | 15625 | if test "$wxUSE_FILESYSTEM" = "yes"; then |
698dcdb6 | 15626 | cat >> confdefs.h <<\EOF |
24528b0c VS |
15627 | #define wxUSE_FILESYSTEM 1 |
15628 | EOF | |
15629 | ||
15630 | fi | |
15631 | ||
10f2d63a | 15632 | if test "$wxUSE_FS_INET" = "yes"; then |
698dcdb6 | 15633 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
15634 | #define wxUSE_FS_INET 1 |
15635 | EOF | |
15636 | ||
15637 | fi | |
15638 | ||
15639 | if test "$wxUSE_FS_ZIP" = "yes"; then | |
698dcdb6 | 15640 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
15641 | #define wxUSE_FS_ZIP 1 |
15642 | EOF | |
15643 | ||
15644 | fi | |
15645 | ||
15646 | if test "$wxUSE_ZIPSTREAM" = "yes"; then | |
698dcdb6 | 15647 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
15648 | #define wxUSE_ZIPSTREAM 1 |
15649 | EOF | |
15650 | ||
15651 | fi | |
15652 | ||
eb4efbdc | 15653 | if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then |
698dcdb6 | 15654 | cat >> confdefs.h <<\EOF |
eb4efbdc VZ |
15655 | #define wxUSE_ON_FATAL_EXCEPTION 1 |
15656 | EOF | |
15657 | ||
15658 | fi | |
15659 | ||
4f3c5f06 | 15660 | if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then |
698dcdb6 | 15661 | cat >> confdefs.h <<\EOF |
4f3c5f06 VZ |
15662 | #define wxUSE_SNGLINST_CHECKER 1 |
15663 | EOF | |
15664 | ||
15665 | fi | |
15666 | ||
10f2d63a | 15667 | if test "$wxUSE_BUSYINFO" = "yes"; then |
698dcdb6 | 15668 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
15669 | #define wxUSE_BUSYINFO 1 |
15670 | EOF | |
15671 | ||
15672 | fi | |
15673 | ||
15674 | if test "$wxUSE_STD_IOSTREAM" = "yes"; then | |
698dcdb6 | 15675 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
15676 | #define wxUSE_STD_IOSTREAM 1 |
15677 | EOF | |
15678 | ||
15679 | fi | |
15680 | ||
15681 | if test "$wxUSE_TEXTFILE" = "yes"; then | |
15682 | if test "$wxUSE_FILE" != "yes"; then | |
698dcdb6 | 15683 | echo "configure: warning: wxTextFile requires wxFile and it won't be compiled without it" 1>&2 |
10f2d63a | 15684 | else |
698dcdb6 | 15685 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
15686 | #define wxUSE_TEXTFILE 1 |
15687 | EOF | |
15688 | ||
15689 | fi | |
15690 | fi | |
15691 | ||
15692 | if test "$wxUSE_CONFIG" = "yes" ; then | |
15693 | if test "$wxUSE_TEXTFILE" != "yes"; then | |
698dcdb6 | 15694 | echo "configure: warning: wxConfig requires wxTextFile and it won't be compiled without it" 1>&2 |
10f2d63a | 15695 | else |
698dcdb6 | 15696 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
15697 | #define wxUSE_CONFIG 1 |
15698 | EOF | |
15699 | ||
15700 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config" | |
15701 | fi | |
15702 | fi | |
15703 | ||
15704 | if test "$wxUSE_INTL" = "yes" ; then | |
15705 | if test "$wxUSE_FILE" != "yes"; then | |
698dcdb6 | 15706 | echo "configure: warning: I18n code requires wxFile and it won't be compiled without it" 1>&2 |
10f2d63a | 15707 | else |
698dcdb6 | 15708 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
15709 | #define wxUSE_INTL 1 |
15710 | EOF | |
15711 | ||
15712 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat" | |
f6bcfd97 | 15713 | GUIDIST="$GUIDIST INTL_DIST" |
10f2d63a VZ |
15714 | fi |
15715 | fi | |
15716 | ||
15717 | if test "$wxUSE_LOG" = "yes"; then | |
698dcdb6 | 15718 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
15719 | #define wxUSE_LOG 1 |
15720 | EOF | |
15721 | ||
d73be714 VZ |
15722 | |
15723 | if test "$wxUSE_LOGGUI" = "yes"; then | |
15724 | cat >> confdefs.h <<\EOF | |
15725 | #define wxUSE_LOGGUI 1 | |
15726 | EOF | |
15727 | ||
15728 | fi | |
15729 | ||
15730 | if test "$wxUSE_LOGWINDOW" = "yes"; then | |
15731 | cat >> confdefs.h <<\EOF | |
15732 | #define wxUSE_LOGWINDOW 1 | |
15733 | EOF | |
15734 | ||
15735 | fi | |
10f2d63a VZ |
15736 | fi |
15737 | ||
15738 | if test "$wxUSE_LONGLONG" = "yes"; then | |
698dcdb6 | 15739 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
15740 | #define wxUSE_LONGLONG 1 |
15741 | EOF | |
15742 | ||
15743 | fi | |
15744 | ||
e8f65ba6 | 15745 | if test "$wxUSE_GEOMETRY" = "yes"; then |
698dcdb6 | 15746 | cat >> confdefs.h <<\EOF |
e8f65ba6 RR |
15747 | #define wxUSE_GEOMETRY 1 |
15748 | EOF | |
15749 | ||
15750 | fi | |
15751 | ||
10f2d63a | 15752 | if test "$wxUSE_DIALUP_MANAGER" = "yes" ; then |
698dcdb6 | 15753 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
15754 | #define wxUSE_DIALUP_MANAGER 1 |
15755 | EOF | |
15756 | ||
70f7a477 | 15757 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup" |
10f2d63a VZ |
15758 | fi |
15759 | ||
15760 | if test "$wxUSE_STREAMS" = "yes" ; then | |
698dcdb6 | 15761 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
15762 | #define wxUSE_STREAMS 1 |
15763 | EOF | |
15764 | ||
15765 | fi | |
15766 | ||
1e487827 | 15767 | |
1e6feb95 | 15768 | if test "$wxUSE_DATETIME" = "yes"; then |
698dcdb6 | 15769 | for ac_func in strptime |
83307f33 | 15770 | do |
698dcdb6 | 15771 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
3f0f0161 | 15772 | echo "configure:15773: checking for $ac_func" >&5 |
698dcdb6 VZ |
15773 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
15774 | echo $ac_n "(cached) $ac_c" 1>&6 | |
15775 | else | |
15776 | cat > conftest.$ac_ext <<EOF | |
3f0f0161 | 15777 | #line 15778 "configure" |
83307f33 VZ |
15778 | #include "confdefs.h" |
15779 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 15780 | which can conflict with char $ac_func(); below. */ |
83307f33 VZ |
15781 | #include <assert.h> |
15782 | /* Override any gcc2 internal prototype to avoid an error. */ | |
15783 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
15784 | builtin and then its argument prototype would still apply. */ |
15785 | char $ac_func(); | |
15786 | ||
15787 | int main() { | |
83307f33 VZ |
15788 | |
15789 | /* The GNU C library defines this for functions which it implements | |
15790 | to always fail with ENOSYS. Some functions are actually named | |
15791 | something starting with __ and the normal name is an alias. */ | |
15792 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
15793 | choke me | |
15794 | #else | |
698dcdb6 | 15795 | $ac_func(); |
83307f33 VZ |
15796 | #endif |
15797 | ||
698dcdb6 | 15798 | ; return 0; } |
83307f33 | 15799 | EOF |
3f0f0161 | 15800 | if { (eval echo configure:15801: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
15801 | rm -rf conftest* |
15802 | eval "ac_cv_func_$ac_func=yes" | |
15803 | else | |
15804 | echo "configure: failed program was:" >&5 | |
15805 | cat conftest.$ac_ext >&5 | |
15806 | rm -rf conftest* | |
15807 | eval "ac_cv_func_$ac_func=no" | |
15808 | fi | |
15809 | rm -f conftest* | |
15810 | fi | |
83307f33 | 15811 | |
698dcdb6 VZ |
15812 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
15813 | echo "$ac_t""yes" 1>&6 | |
15814 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
15815 | cat >> confdefs.h <<EOF | |
15816 | #define $ac_tr_func 1 | |
15817 | EOF | |
15818 | ||
15819 | else | |
15820 | echo "$ac_t""no" 1>&6 | |
83307f33 VZ |
15821 | fi |
15822 | done | |
15823 | ||
1e487827 | 15824 | |
698dcdb6 | 15825 | echo $ac_n "checking for timezone variable in <time.h>""... $ac_c" 1>&6 |
3f0f0161 | 15826 | echo "configure:15827: checking for timezone variable in <time.h>" >&5 |
698dcdb6 VZ |
15827 | if eval "test \"`echo '$''{'wx_cv_var_timezone'+set}'`\" = set"; then |
15828 | echo $ac_n "(cached) $ac_c" 1>&6 | |
15829 | else | |
15830 | ||
15831 | cat > conftest.$ac_ext <<EOF | |
3f0f0161 | 15832 | #line 15833 "configure" |
360d6699 VZ |
15833 | #include "confdefs.h" |
15834 | ||
b4085ce6 | 15835 | #include <time.h> |
698dcdb6 VZ |
15836 | |
15837 | int main() { | |
360d6699 VZ |
15838 | |
15839 | int tz; | |
4f11a343 | 15840 | tz = timezone; |
698dcdb6 VZ |
15841 | |
15842 | ; return 0; } | |
15843 | EOF | |
3f0f0161 | 15844 | if { (eval echo configure:15845: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 VZ |
15845 | rm -rf conftest* |
15846 | ||
4f11a343 | 15847 | wx_cv_var_timezone=timezone |
698dcdb6 | 15848 | |
360d6699 | 15849 | else |
698dcdb6 VZ |
15850 | echo "configure: failed program was:" >&5 |
15851 | cat conftest.$ac_ext >&5 | |
15852 | rm -rf conftest* | |
15853 | ||
15854 | cat > conftest.$ac_ext <<EOF | |
3f0f0161 | 15855 | #line 15856 "configure" |
360d6699 VZ |
15856 | #include "confdefs.h" |
15857 | ||
b4085ce6 | 15858 | #include <time.h> |
698dcdb6 VZ |
15859 | |
15860 | int main() { | |
360d6699 VZ |
15861 | |
15862 | int tz; | |
15863 | tz = _timezone; | |
698dcdb6 VZ |
15864 | |
15865 | ; return 0; } | |
15866 | EOF | |
3f0f0161 | 15867 | if { (eval echo configure:15868: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 VZ |
15868 | rm -rf conftest* |
15869 | ||
360d6699 | 15870 | wx_cv_var_timezone=_timezone |
698dcdb6 | 15871 | |
5357c8e8 | 15872 | else |
698dcdb6 VZ |
15873 | echo "configure: failed program was:" >&5 |
15874 | cat conftest.$ac_ext >&5 | |
15875 | rm -rf conftest* | |
15876 | ||
15877 | cat > conftest.$ac_ext <<EOF | |
3f0f0161 | 15878 | #line 15879 "configure" |
5357c8e8 VZ |
15879 | #include "confdefs.h" |
15880 | ||
b4085ce6 | 15881 | #include <time.h> |
698dcdb6 VZ |
15882 | |
15883 | int main() { | |
5357c8e8 VZ |
15884 | |
15885 | int tz; | |
4f11a343 | 15886 | tz = __timezone; |
698dcdb6 VZ |
15887 | |
15888 | ; return 0; } | |
15889 | EOF | |
3f0f0161 | 15890 | if { (eval echo configure:15891: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 VZ |
15891 | rm -rf conftest* |
15892 | ||
4f11a343 | 15893 | wx_cv_var_timezone=__timezone |
698dcdb6 | 15894 | |
360d6699 | 15895 | else |
698dcdb6 VZ |
15896 | echo "configure: failed program was:" >&5 |
15897 | cat conftest.$ac_ext >&5 | |
15898 | rm -rf conftest* | |
15899 | { echo "configure: error: no timezone variable" 1>&2; exit 1; } | |
15900 | ||
360d6699 | 15901 | fi |
698dcdb6 VZ |
15902 | rm -f conftest* |
15903 | ||
15904 | ||
360d6699 | 15905 | fi |
698dcdb6 VZ |
15906 | rm -f conftest* |
15907 | ||
15908 | ||
6232543b | 15909 | fi |
698dcdb6 VZ |
15910 | rm -f conftest* |
15911 | ||
15912 | ||
1e487827 | 15913 | fi |
703e0a69 | 15914 | |
698dcdb6 VZ |
15915 | echo "$ac_t""$wx_cv_var_timezone" 1>&6 |
15916 | ||
15917 | cat >> confdefs.h <<EOF | |
360d6699 VZ |
15918 | #define WX_TIMEZONE $wx_cv_var_timezone |
15919 | EOF | |
15920 | ||
698dcdb6 VZ |
15921 | |
15922 | for ac_func in localtime | |
afc31813 | 15923 | do |
698dcdb6 | 15924 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
3f0f0161 | 15925 | echo "configure:15926: checking for $ac_func" >&5 |
698dcdb6 VZ |
15926 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
15927 | echo $ac_n "(cached) $ac_c" 1>&6 | |
15928 | else | |
15929 | cat > conftest.$ac_ext <<EOF | |
3f0f0161 | 15930 | #line 15931 "configure" |
10f2d63a | 15931 | #include "confdefs.h" |
afc31813 | 15932 | /* System header to define __stub macros and hopefully few prototypes, |
698dcdb6 | 15933 | which can conflict with char $ac_func(); below. */ |
afc31813 VZ |
15934 | #include <assert.h> |
15935 | /* Override any gcc2 internal prototype to avoid an error. */ | |
15936 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
15937 | builtin and then its argument prototype would still apply. */ |
15938 | char $ac_func(); | |
15939 | ||
15940 | int main() { | |
afc31813 VZ |
15941 | |
15942 | /* The GNU C library defines this for functions which it implements | |
15943 | to always fail with ENOSYS. Some functions are actually named | |
15944 | something starting with __ and the normal name is an alias. */ | |
15945 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
15946 | choke me | |
15947 | #else | |
698dcdb6 | 15948 | $ac_func(); |
afc31813 VZ |
15949 | #endif |
15950 | ||
698dcdb6 | 15951 | ; return 0; } |
10f2d63a | 15952 | EOF |
3f0f0161 | 15953 | if { (eval echo configure:15954: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
15954 | rm -rf conftest* |
15955 | eval "ac_cv_func_$ac_func=yes" | |
15956 | else | |
15957 | echo "configure: failed program was:" >&5 | |
15958 | cat conftest.$ac_ext >&5 | |
15959 | rm -rf conftest* | |
15960 | eval "ac_cv_func_$ac_func=no" | |
15961 | fi | |
15962 | rm -f conftest* | |
15963 | fi | |
afc31813 | 15964 | |
698dcdb6 VZ |
15965 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
15966 | echo "$ac_t""yes" 1>&6 | |
15967 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
15968 | cat >> confdefs.h <<EOF | |
15969 | #define $ac_tr_func 1 | |
15970 | EOF | |
15971 | ||
15972 | else | |
15973 | echo "$ac_t""no" 1>&6 | |
afc31813 VZ |
15974 | fi |
15975 | done | |
15976 | ||
1e487827 | 15977 | |
698dcdb6 VZ |
15978 | if test "$ac_cv_func_localtime" = "yes"; then |
15979 | echo $ac_n "checking for tm_gmtoff in struct tm""... $ac_c" 1>&6 | |
3f0f0161 | 15980 | echo "configure:15981: checking for tm_gmtoff in struct tm" >&5 |
698dcdb6 VZ |
15981 | if eval "test \"`echo '$''{'wx_cv_struct_tm_has_gmtoff'+set}'`\" = set"; then |
15982 | echo $ac_n "(cached) $ac_c" 1>&6 | |
15983 | else | |
15984 | ||
15985 | cat > conftest.$ac_ext <<EOF | |
3f0f0161 | 15986 | #line 15987 "configure" |
0470b1e6 VZ |
15987 | #include "confdefs.h" |
15988 | ||
b4085ce6 | 15989 | #include <time.h> |
698dcdb6 VZ |
15990 | |
15991 | int main() { | |
0470b1e6 VZ |
15992 | |
15993 | struct tm tm; | |
15994 | tm.tm_gmtoff++; | |
698dcdb6 VZ |
15995 | |
15996 | ; return 0; } | |
15997 | EOF | |
3f0f0161 | 15998 | if { (eval echo configure:15999: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 VZ |
15999 | rm -rf conftest* |
16000 | ||
f03a98d8 | 16001 | wx_cv_struct_tm_has_gmtoff=yes |
698dcdb6 | 16002 | |
0470b1e6 | 16003 | else |
698dcdb6 VZ |
16004 | echo "configure: failed program was:" >&5 |
16005 | cat conftest.$ac_ext >&5 | |
16006 | rm -rf conftest* | |
16007 | wx_cv_struct_tm_has_gmtoff=no | |
16008 | ||
0470b1e6 | 16009 | fi |
698dcdb6 VZ |
16010 | rm -f conftest* |
16011 | ||
1e487827 | 16012 | fi |
698dcdb6 VZ |
16013 | |
16014 | echo "$ac_t""$wx_cv_struct_tm_has_gmtoff" 1>&6 | |
6232543b VS |
16015 | fi |
16016 | ||
16017 | if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then | |
698dcdb6 | 16018 | cat >> confdefs.h <<\EOF |
6232543b VS |
16019 | #define WX_GMTOFF_IN_TM 1 |
16020 | EOF | |
0470b1e6 | 16021 | |
3fcdd07b VZ |
16022 | fi |
16023 | ||
698dcdb6 | 16024 | for ac_func in gettimeofday ftime |
3fcdd07b | 16025 | do |
698dcdb6 | 16026 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
3f0f0161 | 16027 | echo "configure:16028: checking for $ac_func" >&5 |
698dcdb6 VZ |
16028 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
16029 | echo $ac_n "(cached) $ac_c" 1>&6 | |
16030 | else | |
16031 | cat > conftest.$ac_ext <<EOF | |
3f0f0161 | 16032 | #line 16033 "configure" |
3fcdd07b VZ |
16033 | #include "confdefs.h" |
16034 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 16035 | which can conflict with char $ac_func(); below. */ |
3fcdd07b VZ |
16036 | #include <assert.h> |
16037 | /* Override any gcc2 internal prototype to avoid an error. */ | |
16038 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
16039 | builtin and then its argument prototype would still apply. */ |
16040 | char $ac_func(); | |
16041 | ||
16042 | int main() { | |
3fcdd07b VZ |
16043 | |
16044 | /* The GNU C library defines this for functions which it implements | |
16045 | to always fail with ENOSYS. Some functions are actually named | |
16046 | something starting with __ and the normal name is an alias. */ | |
16047 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
16048 | choke me | |
16049 | #else | |
698dcdb6 | 16050 | $ac_func(); |
3fcdd07b VZ |
16051 | #endif |
16052 | ||
698dcdb6 VZ |
16053 | ; return 0; } |
16054 | EOF | |
3f0f0161 | 16055 | if { (eval echo configure:16056: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
16056 | rm -rf conftest* |
16057 | eval "ac_cv_func_$ac_func=yes" | |
16058 | else | |
16059 | echo "configure: failed program was:" >&5 | |
16060 | cat conftest.$ac_ext >&5 | |
16061 | rm -rf conftest* | |
16062 | eval "ac_cv_func_$ac_func=no" | |
16063 | fi | |
16064 | rm -f conftest* | |
16065 | fi | |
16066 | ||
16067 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
16068 | echo "$ac_t""yes" 1>&6 | |
16069 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
16070 | cat >> confdefs.h <<EOF | |
16071 | #define $ac_tr_func 1 | |
3fcdd07b VZ |
16072 | EOF |
16073 | break | |
698dcdb6 VZ |
16074 | else |
16075 | echo "$ac_t""no" 1>&6 | |
3fcdd07b VZ |
16076 | fi |
16077 | done | |
16078 | ||
afc31813 | 16079 | |
698dcdb6 VZ |
16080 | if test "$ac_cv_func_gettimeofday" = "yes"; then |
16081 | echo $ac_n "checking whether gettimeofday takes two arguments""... $ac_c" 1>&6 | |
3f0f0161 | 16082 | echo "configure:16083: checking whether gettimeofday takes two arguments" >&5 |
698dcdb6 VZ |
16083 | if eval "test \"`echo '$''{'wx_cv_func_gettimeofday_has_2_args'+set}'`\" = set"; then |
16084 | echo $ac_n "(cached) $ac_c" 1>&6 | |
16085 | else | |
16086 | ||
16087 | ||
16088 | ac_ext=C | |
16089 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
1e487827 | 16090 | ac_cpp='$CXXCPP $CPPFLAGS' |
698dcdb6 VZ |
16091 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
16092 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
16093 | cross_compiling=$ac_cv_prog_cxx_cross | |
703e0a69 | 16094 | |
698dcdb6 VZ |
16095 | |
16096 | cat > conftest.$ac_ext <<EOF | |
3f0f0161 | 16097 | #line 16098 "configure" |
10f2d63a | 16098 | #include "confdefs.h" |
afc31813 VZ |
16099 | |
16100 | #include <sys/time.h> | |
16101 | #include <unistd.h> | |
698dcdb6 VZ |
16102 | |
16103 | int main() { | |
afc31813 VZ |
16104 | |
16105 | struct timeval tv; | |
16106 | struct timezone tz; | |
16107 | gettimeofday(&tv, &tz); | |
698dcdb6 VZ |
16108 | |
16109 | ; return 0; } | |
16110 | EOF | |
3f0f0161 | 16111 | if { (eval echo configure:16112: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 | 16112 | rm -rf conftest* |
afc31813 | 16113 | wx_cv_func_gettimeofday_has_2_args=yes |
10f2d63a | 16114 | else |
698dcdb6 VZ |
16115 | echo "configure: failed program was:" >&5 |
16116 | cat conftest.$ac_ext >&5 | |
16117 | rm -rf conftest* | |
16118 | cat > conftest.$ac_ext <<EOF | |
3f0f0161 | 16119 | #line 16120 "configure" |
10f2d63a | 16120 | #include "confdefs.h" |
afc31813 VZ |
16121 | |
16122 | #include <sys/time.h> | |
16123 | #include <unistd.h> | |
698dcdb6 VZ |
16124 | |
16125 | int main() { | |
afc31813 VZ |
16126 | |
16127 | struct timeval tv; | |
16128 | gettimeofday(&tv); | |
698dcdb6 VZ |
16129 | |
16130 | ; return 0; } | |
16131 | EOF | |
3f0f0161 | 16132 | if { (eval echo configure:16133: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 | 16133 | rm -rf conftest* |
afc31813 | 16134 | wx_cv_func_gettimeofday_has_2_args=no |
10f2d63a | 16135 | else |
698dcdb6 VZ |
16136 | echo "configure: failed program was:" >&5 |
16137 | cat conftest.$ac_ext >&5 | |
16138 | rm -rf conftest* | |
16139 | wx_cv_func_gettimeofday_has_2_args=unknown | |
16140 | ||
10f2d63a | 16141 | fi |
698dcdb6 VZ |
16142 | rm -f conftest* |
16143 | ||
10f2d63a | 16144 | fi |
698dcdb6 | 16145 | rm -f conftest* |
afc31813 | 16146 | ac_ext=c |
698dcdb6 | 16147 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
10f2d63a | 16148 | ac_cpp='$CPP $CPPFLAGS' |
698dcdb6 VZ |
16149 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
16150 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
16151 | cross_compiling=$ac_cv_prog_cc_cross | |
10f2d63a | 16152 | |
698dcdb6 | 16153 | |
afc31813 | 16154 | fi |
698dcdb6 VZ |
16155 | |
16156 | echo "$ac_t""$wx_cv_func_gettimeofday_has_2_args" 1>&6 | |
c63c7106 | 16157 | |
afc31813 | 16158 | if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then |
698dcdb6 | 16159 | cat >> confdefs.h <<\EOF |
afc31813 VZ |
16160 | #define WX_GETTIMEOFDAY_NO_TZ 1 |
16161 | EOF | |
16162 | ||
16163 | fi | |
16164 | fi | |
16165 | ||
698dcdb6 | 16166 | cat >> confdefs.h <<\EOF |
afc31813 VZ |
16167 | #define wxUSE_TIMEDATE 1 |
16168 | EOF | |
16169 | ||
16170 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest" | |
16171 | fi | |
16172 | ||
698dcdb6 | 16173 | |
b089607b VZ |
16174 | if test "$TOOLKIT" != "MSW"; then |
16175 | ||
afc31813 | 16176 | if test "$wxUSE_SOCKETS" = "yes"; then |
698dcdb6 | 16177 | echo $ac_n "checking for socket""... $ac_c" 1>&6 |
3f0f0161 | 16178 | echo "configure:16179: checking for socket" >&5 |
698dcdb6 VZ |
16179 | if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then |
16180 | echo $ac_n "(cached) $ac_c" 1>&6 | |
c63c7106 | 16181 | else |
698dcdb6 | 16182 | cat > conftest.$ac_ext <<EOF |
3f0f0161 | 16183 | #line 16184 "configure" |
c63c7106 VZ |
16184 | #include "confdefs.h" |
16185 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 16186 | which can conflict with char socket(); below. */ |
c63c7106 VZ |
16187 | #include <assert.h> |
16188 | /* Override any gcc2 internal prototype to avoid an error. */ | |
16189 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
16190 | builtin and then its argument prototype would still apply. */ |
16191 | char socket(); | |
16192 | ||
16193 | int main() { | |
c63c7106 VZ |
16194 | |
16195 | /* The GNU C library defines this for functions which it implements | |
16196 | to always fail with ENOSYS. Some functions are actually named | |
16197 | something starting with __ and the normal name is an alias. */ | |
16198 | #if defined (__stub_socket) || defined (__stub___socket) | |
16199 | choke me | |
16200 | #else | |
698dcdb6 | 16201 | socket(); |
c63c7106 VZ |
16202 | #endif |
16203 | ||
698dcdb6 VZ |
16204 | ; return 0; } |
16205 | EOF | |
3f0f0161 | 16206 | if { (eval echo configure:16207: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
16207 | rm -rf conftest* |
16208 | eval "ac_cv_func_socket=yes" | |
16209 | else | |
16210 | echo "configure: failed program was:" >&5 | |
16211 | cat conftest.$ac_ext >&5 | |
16212 | rm -rf conftest* | |
16213 | eval "ac_cv_func_socket=no" | |
16214 | fi | |
16215 | rm -f conftest* | |
16216 | fi | |
16217 | ||
16218 | if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then | |
16219 | echo "$ac_t""yes" 1>&6 | |
c63c7106 VZ |
16220 | : |
16221 | else | |
698dcdb6 VZ |
16222 | echo "$ac_t""no" 1>&6 |
16223 | echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6 | |
3f0f0161 | 16224 | echo "configure:16225: checking for socket in -lsocket" >&5 |
698dcdb6 VZ |
16225 | ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'` |
16226 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
16227 | echo $ac_n "(cached) $ac_c" 1>&6 | |
c63c7106 | 16228 | else |
698dcdb6 | 16229 | ac_save_LIBS="$LIBS" |
c63c7106 | 16230 | LIBS="-lsocket $LIBS" |
698dcdb6 | 16231 | cat > conftest.$ac_ext <<EOF |
3f0f0161 | 16232 | #line 16233 "configure" |
c63c7106 VZ |
16233 | #include "confdefs.h" |
16234 | /* Override any gcc2 internal prototype to avoid an error. */ | |
16235 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
16236 | builtin and then its argument prototype would still apply. */ |
16237 | char socket(); | |
16238 | ||
16239 | int main() { | |
16240 | socket() | |
16241 | ; return 0; } | |
16242 | EOF | |
3f0f0161 | 16243 | if { (eval echo configure:16244: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
16244 | rm -rf conftest* |
16245 | eval "ac_cv_lib_$ac_lib_var=yes" | |
16246 | else | |
16247 | echo "configure: failed program was:" >&5 | |
16248 | cat conftest.$ac_ext >&5 | |
16249 | rm -rf conftest* | |
16250 | eval "ac_cv_lib_$ac_lib_var=no" | |
16251 | fi | |
16252 | rm -f conftest* | |
16253 | LIBS="$ac_save_LIBS" | |
16254 | ||
16255 | fi | |
16256 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
16257 | echo "$ac_t""yes" 1>&6 | |
c63c7106 | 16258 | INET_LINK="$INET_LINK -lsocket" |
c63c7106 | 16259 | else |
698dcdb6 | 16260 | echo "$ac_t""no" 1>&6 |
afc31813 | 16261 | |
698dcdb6 | 16262 | echo "configure: warning: socket library not found - sockets will be disabled" 1>&2 |
afc31813 | 16263 | wxUSE_SOCKETS=no |
698dcdb6 VZ |
16264 | |
16265 | ||
10f2d63a VZ |
16266 | fi |
16267 | ||
698dcdb6 | 16268 | |
6232543b | 16269 | fi |
b089607b | 16270 | |
1e487827 | 16271 | fi |
afc31813 | 16272 | |
51a9faba | 16273 | |
698dcdb6 VZ |
16274 | if test "$wxUSE_SOCKETS" = "yes" ; then |
16275 | echo $ac_n "checking what is the type of the third argument of getsockname""... $ac_c" 1>&6 | |
3f0f0161 | 16276 | echo "configure:16277: checking what is the type of the third argument of getsockname" >&5 |
698dcdb6 VZ |
16277 | if eval "test \"`echo '$''{'wx_cv_type_getsockname3'+set}'`\" = set"; then |
16278 | echo $ac_n "(cached) $ac_c" 1>&6 | |
16279 | else | |
16280 | ||
16281 | ||
16282 | ac_ext=C | |
16283 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
1e487827 | 16284 | ac_cpp='$CXXCPP $CPPFLAGS' |
698dcdb6 VZ |
16285 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
16286 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
16287 | cross_compiling=$ac_cv_prog_cxx_cross | |
703e0a69 | 16288 | |
698dcdb6 VZ |
16289 | |
16290 | cat > conftest.$ac_ext <<EOF | |
3f0f0161 | 16291 | #line 16292 "configure" |
afc31813 | 16292 | #include "confdefs.h" |
51a9faba | 16293 | |
3ace2e6d | 16294 | #include <sys/types.h> |
51a9faba | 16295 | #include <sys/socket.h> |
698dcdb6 VZ |
16296 | |
16297 | int main() { | |
51a9faba VZ |
16298 | |
16299 | socklen_t len; | |
16300 | getsockname(0, 0, &len); | |
698dcdb6 VZ |
16301 | |
16302 | ; return 0; } | |
16303 | EOF | |
3f0f0161 | 16304 | if { (eval echo configure:16305: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 | 16305 | rm -rf conftest* |
51a9faba | 16306 | wx_cv_type_getsockname3=socklen_t |
afc31813 | 16307 | else |
698dcdb6 VZ |
16308 | echo "configure: failed program was:" >&5 |
16309 | cat conftest.$ac_ext >&5 | |
16310 | rm -rf conftest* | |
16311 | cat > conftest.$ac_ext <<EOF | |
3f0f0161 | 16312 | #line 16313 "configure" |
afc31813 | 16313 | #include "confdefs.h" |
51a9faba | 16314 | |
3ace2e6d | 16315 | #include <sys/types.h> |
51a9faba | 16316 | #include <sys/socket.h> |
698dcdb6 VZ |
16317 | |
16318 | int main() { | |
51a9faba VZ |
16319 | |
16320 | size_t len; | |
16321 | getsockname(0, 0, &len); | |
698dcdb6 VZ |
16322 | |
16323 | ; return 0; } | |
16324 | EOF | |
3f0f0161 | 16325 | if { (eval echo configure:16326: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 | 16326 | rm -rf conftest* |
51a9faba | 16327 | wx_cv_type_getsockname3=size_t |
afc31813 | 16328 | else |
698dcdb6 VZ |
16329 | echo "configure: failed program was:" >&5 |
16330 | cat conftest.$ac_ext >&5 | |
16331 | rm -rf conftest* | |
16332 | cat > conftest.$ac_ext <<EOF | |
3f0f0161 | 16333 | #line 16334 "configure" |
afc31813 | 16334 | #include "confdefs.h" |
51a9faba | 16335 | |
3ace2e6d | 16336 | #include <sys/types.h> |
51a9faba | 16337 | #include <sys/socket.h> |
698dcdb6 VZ |
16338 | |
16339 | int main() { | |
51a9faba VZ |
16340 | |
16341 | int len; | |
16342 | getsockname(0, 0, &len); | |
698dcdb6 VZ |
16343 | |
16344 | ; return 0; } | |
16345 | EOF | |
3f0f0161 | 16346 | if { (eval echo configure:16347: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 | 16347 | rm -rf conftest* |
51a9faba | 16348 | wx_cv_type_getsockname3=int |
afc31813 | 16349 | else |
698dcdb6 VZ |
16350 | echo "configure: failed program was:" >&5 |
16351 | cat conftest.$ac_ext >&5 | |
16352 | rm -rf conftest* | |
16353 | wx_cv_type_getsockname3=unknown | |
16354 | ||
afc31813 | 16355 | fi |
698dcdb6 VZ |
16356 | rm -f conftest* |
16357 | ||
afc31813 | 16358 | fi |
698dcdb6 VZ |
16359 | rm -f conftest* |
16360 | ||
afc31813 | 16361 | fi |
698dcdb6 | 16362 | rm -f conftest* |
51a9faba VZ |
16363 | |
16364 | ac_ext=c | |
698dcdb6 | 16365 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
afc31813 | 16366 | ac_cpp='$CPP $CPPFLAGS' |
698dcdb6 VZ |
16367 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
16368 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
16369 | cross_compiling=$ac_cv_prog_cc_cross | |
afc31813 | 16370 | |
698dcdb6 | 16371 | |
51a9faba | 16372 | fi |
698dcdb6 VZ |
16373 | |
16374 | echo "$ac_t""$wx_cv_type_getsockname3" 1>&6 | |
51a9faba VZ |
16375 | |
16376 | if test "$wx_cv_type_getsockname3" = "unknown"; then | |
16377 | wxUSE_SOCKETS=no | |
698dcdb6 | 16378 | echo "configure: warning: Couldn't find socklen_t synonym for this system" 1>&2 |
51a9faba | 16379 | else |
698dcdb6 | 16380 | cat >> confdefs.h <<EOF |
51a9faba VZ |
16381 | #define SOCKLEN_T $wx_cv_type_getsockname3 |
16382 | EOF | |
16383 | ||
16384 | fi | |
16385 | fi | |
afc31813 | 16386 | |
c521c494 RL |
16387 | fi |
16388 | ||
51a9faba | 16389 | if test "$wxUSE_SOCKETS" = "yes" ; then |
698dcdb6 | 16390 | cat >> confdefs.h <<\EOF |
afc31813 VZ |
16391 | #define wxUSE_SOCKETS 1 |
16392 | EOF | |
16393 | ||
70f7a477 | 16394 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets" |
afc31813 VZ |
16395 | INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS protocol" |
16396 | fi | |
16397 | ||
698dcdb6 | 16398 | |
dc3d889d VZ |
16399 | if test "$wxUSE_GUI" = "yes"; then |
16400 | ||
b089607b VZ |
16401 | if test "$TOOLKIT" != "MSW"; then |
16402 | ||
ceded8b9 | 16403 | if test "$wxUSE_JOYSTICK" = "yes"; then |
698dcdb6 | 16404 | for ac_hdr in linux/joystick.h |
10f2d63a | 16405 | do |
698dcdb6 VZ |
16406 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
16407 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
3f0f0161 | 16408 | echo "configure:16409: checking for $ac_hdr" >&5 |
698dcdb6 VZ |
16409 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
16410 | echo $ac_n "(cached) $ac_c" 1>&6 | |
16411 | else | |
16412 | cat > conftest.$ac_ext <<EOF | |
3f0f0161 | 16413 | #line 16414 "configure" |
10f2d63a | 16414 | #include "confdefs.h" |
698dcdb6 VZ |
16415 | #include <$ac_hdr> |
16416 | EOF | |
16417 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
3f0f0161 | 16418 | { (eval echo configure:16419: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
16419 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
16420 | if test -z "$ac_err"; then | |
16421 | rm -rf conftest* | |
16422 | eval "ac_cv_header_$ac_safe=yes" | |
10f2d63a | 16423 | else |
698dcdb6 VZ |
16424 | echo "$ac_err" >&5 |
16425 | echo "configure: failed program was:" >&5 | |
10f2d63a | 16426 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
16427 | rm -rf conftest* |
16428 | eval "ac_cv_header_$ac_safe=no" | |
10f2d63a | 16429 | fi |
698dcdb6 | 16430 | rm -f conftest* |
10f2d63a | 16431 | fi |
698dcdb6 VZ |
16432 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
16433 | echo "$ac_t""yes" 1>&6 | |
16434 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
16435 | cat >> confdefs.h <<EOF | |
16436 | #define $ac_tr_hdr 1 | |
10f2d63a | 16437 | EOF |
698dcdb6 VZ |
16438 | |
16439 | else | |
16440 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
16441 | fi |
16442 | done | |
16443 | ||
b089607b | 16444 | if test "$ac_cv_header_linux_joystick_h" != "yes"; then |
ceded8b9 | 16445 | wxUSE_JOYSTICK=no |
698dcdb6 | 16446 | echo "configure: warning: Joystick not supported by this system" 1>&2 |
b089607b VZ |
16447 | fi |
16448 | fi | |
16449 | ||
16450 | fi | |
16451 | ||
ceded8b9 | 16452 | if test "$wxUSE_JOYSTICK" = "yes"; then |
698dcdb6 | 16453 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16454 | #define wxUSE_JOYSTICK 1 |
16455 | EOF | |
16456 | ||
16457 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest" | |
10f2d63a VZ |
16458 | fi |
16459 | ||
dc3d889d VZ |
16460 | fi |
16461 | ||
698dcdb6 | 16462 | |
b089607b VZ |
16463 | if test "$TOOLKIT" != "MSW"; then |
16464 | ||
10f2d63a VZ |
16465 | HAVE_DL_FUNCS=0 |
16466 | HAVE_SHL_FUNCS=0 | |
16467 | if test "$wxUSE_DYNLIB_CLASS" = "yes"; then | |
f11bdd03 | 16468 | if test "$USE_DARWIN" = 1; then |
b4085ce6 GD |
16469 | HAVE_DL_FUNCS=1 |
16470 | else | |
698dcdb6 | 16471 | for ac_func in dlopen |
10f2d63a | 16472 | do |
698dcdb6 | 16473 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
3f0f0161 | 16474 | echo "configure:16475: checking for $ac_func" >&5 |
698dcdb6 VZ |
16475 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
16476 | echo $ac_n "(cached) $ac_c" 1>&6 | |
16477 | else | |
16478 | cat > conftest.$ac_ext <<EOF | |
3f0f0161 | 16479 | #line 16480 "configure" |
10f2d63a VZ |
16480 | #include "confdefs.h" |
16481 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 16482 | which can conflict with char $ac_func(); below. */ |
10f2d63a VZ |
16483 | #include <assert.h> |
16484 | /* Override any gcc2 internal prototype to avoid an error. */ | |
16485 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
16486 | builtin and then its argument prototype would still apply. */ |
16487 | char $ac_func(); | |
16488 | ||
16489 | int main() { | |
10f2d63a VZ |
16490 | |
16491 | /* The GNU C library defines this for functions which it implements | |
16492 | to always fail with ENOSYS. Some functions are actually named | |
16493 | something starting with __ and the normal name is an alias. */ | |
16494 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
16495 | choke me | |
16496 | #else | |
698dcdb6 | 16497 | $ac_func(); |
10f2d63a VZ |
16498 | #endif |
16499 | ||
698dcdb6 VZ |
16500 | ; return 0; } |
16501 | EOF | |
3f0f0161 | 16502 | if { (eval echo configure:16503: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
16503 | rm -rf conftest* |
16504 | eval "ac_cv_func_$ac_func=yes" | |
16505 | else | |
16506 | echo "configure: failed program was:" >&5 | |
16507 | cat conftest.$ac_ext >&5 | |
16508 | rm -rf conftest* | |
16509 | eval "ac_cv_func_$ac_func=no" | |
16510 | fi | |
16511 | rm -f conftest* | |
16512 | fi | |
16513 | ||
16514 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
16515 | echo "$ac_t""yes" 1>&6 | |
16516 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
16517 | cat >> confdefs.h <<EOF | |
16518 | #define $ac_tr_func 1 | |
16519 | EOF | |
16520 | ||
16521 | cat >> confdefs.h <<\EOF | |
10f2d63a VZ |
16522 | #define HAVE_DLOPEN 1 |
16523 | EOF | |
16524 | ||
16525 | HAVE_DL_FUNCS=1 | |
698dcdb6 | 16526 | |
10f2d63a | 16527 | else |
698dcdb6 VZ |
16528 | echo "$ac_t""no" 1>&6 |
16529 | echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6 | |
3f0f0161 | 16530 | echo "configure:16531: checking for dlopen in -ldl" >&5 |
698dcdb6 VZ |
16531 | ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'` |
16532 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
16533 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 16534 | else |
698dcdb6 | 16535 | ac_save_LIBS="$LIBS" |
10f2d63a | 16536 | LIBS="-ldl $LIBS" |
698dcdb6 | 16537 | cat > conftest.$ac_ext <<EOF |
3f0f0161 | 16538 | #line 16539 "configure" |
10f2d63a VZ |
16539 | #include "confdefs.h" |
16540 | /* Override any gcc2 internal prototype to avoid an error. */ | |
16541 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
16542 | builtin and then its argument prototype would still apply. */ |
16543 | char dlopen(); | |
16544 | ||
16545 | int main() { | |
16546 | dlopen() | |
16547 | ; return 0; } | |
16548 | EOF | |
3f0f0161 | 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_lib_$ac_lib_var=yes" | |
16552 | else | |
16553 | echo "configure: failed program was:" >&5 | |
16554 | cat conftest.$ac_ext >&5 | |
16555 | rm -rf conftest* | |
16556 | eval "ac_cv_lib_$ac_lib_var=no" | |
16557 | fi | |
16558 | rm -f conftest* | |
16559 | LIBS="$ac_save_LIBS" | |
16560 | ||
16561 | fi | |
16562 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
16563 | echo "$ac_t""yes" 1>&6 | |
16564 | ||
16565 | cat >> confdefs.h <<\EOF | |
10f2d63a VZ |
16566 | #define HAVE_DLOPEN 1 |
16567 | EOF | |
16568 | ||
16569 | HAVE_DL_FUNCS=1 | |
16570 | LIBS="$LIBS -ldl" | |
698dcdb6 | 16571 | |
10f2d63a | 16572 | else |
698dcdb6 | 16573 | echo "$ac_t""no" 1>&6 |
10f2d63a | 16574 | |
698dcdb6 | 16575 | for ac_func in shl_load |
10f2d63a | 16576 | do |
698dcdb6 | 16577 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
3f0f0161 | 16578 | echo "configure:16579: checking for $ac_func" >&5 |
698dcdb6 VZ |
16579 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
16580 | echo $ac_n "(cached) $ac_c" 1>&6 | |
16581 | else | |
16582 | cat > conftest.$ac_ext <<EOF | |
3f0f0161 | 16583 | #line 16584 "configure" |
10f2d63a VZ |
16584 | #include "confdefs.h" |
16585 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 16586 | which can conflict with char $ac_func(); below. */ |
10f2d63a VZ |
16587 | #include <assert.h> |
16588 | /* Override any gcc2 internal prototype to avoid an error. */ | |
16589 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
16590 | builtin and then its argument prototype would still apply. */ |
16591 | char $ac_func(); | |
16592 | ||
16593 | int main() { | |
10f2d63a VZ |
16594 | |
16595 | /* The GNU C library defines this for functions which it implements | |
16596 | to always fail with ENOSYS. Some functions are actually named | |
16597 | something starting with __ and the normal name is an alias. */ | |
16598 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
16599 | choke me | |
16600 | #else | |
698dcdb6 | 16601 | $ac_func(); |
10f2d63a VZ |
16602 | #endif |
16603 | ||
698dcdb6 VZ |
16604 | ; return 0; } |
16605 | EOF | |
3f0f0161 | 16606 | if { (eval echo configure:16607: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
16607 | rm -rf conftest* |
16608 | eval "ac_cv_func_$ac_func=yes" | |
16609 | else | |
16610 | echo "configure: failed program was:" >&5 | |
16611 | cat conftest.$ac_ext >&5 | |
16612 | rm -rf conftest* | |
16613 | eval "ac_cv_func_$ac_func=no" | |
16614 | fi | |
16615 | rm -f conftest* | |
16616 | fi | |
16617 | ||
16618 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
16619 | echo "$ac_t""yes" 1>&6 | |
16620 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
16621 | cat >> confdefs.h <<EOF | |
16622 | #define $ac_tr_func 1 | |
16623 | EOF | |
16624 | ||
16625 | cat >> confdefs.h <<\EOF | |
10f2d63a VZ |
16626 | #define HAVE_SHL_LOAD 1 |
16627 | EOF | |
16628 | ||
16629 | HAVE_SHL_FUNCS=1 | |
698dcdb6 | 16630 | |
10f2d63a | 16631 | else |
698dcdb6 VZ |
16632 | echo "$ac_t""no" 1>&6 |
16633 | echo $ac_n "checking for dld in -lshl_load""... $ac_c" 1>&6 | |
3f0f0161 | 16634 | echo "configure:16635: checking for dld in -lshl_load" >&5 |
698dcdb6 VZ |
16635 | ac_lib_var=`echo shl_load'_'dld | sed 'y%./+-%__p_%'` |
16636 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
16637 | echo $ac_n "(cached) $ac_c" 1>&6 | |
f6bcfd97 | 16638 | else |
698dcdb6 | 16639 | ac_save_LIBS="$LIBS" |
f6bcfd97 | 16640 | LIBS="-lshl_load $LIBS" |
698dcdb6 | 16641 | cat > conftest.$ac_ext <<EOF |
3f0f0161 | 16642 | #line 16643 "configure" |
f6bcfd97 BP |
16643 | #include "confdefs.h" |
16644 | /* Override any gcc2 internal prototype to avoid an error. */ | |
16645 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
16646 | builtin and then its argument prototype would still apply. */ |
16647 | char dld(); | |
16648 | ||
16649 | int main() { | |
16650 | dld() | |
16651 | ; return 0; } | |
16652 | EOF | |
3f0f0161 | 16653 | if { (eval echo configure:16654: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
16654 | rm -rf conftest* |
16655 | eval "ac_cv_lib_$ac_lib_var=yes" | |
16656 | else | |
16657 | echo "configure: failed program was:" >&5 | |
16658 | cat conftest.$ac_ext >&5 | |
16659 | rm -rf conftest* | |
16660 | eval "ac_cv_lib_$ac_lib_var=no" | |
16661 | fi | |
16662 | rm -f conftest* | |
16663 | LIBS="$ac_save_LIBS" | |
f6bcfd97 | 16664 | |
698dcdb6 VZ |
16665 | fi |
16666 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
16667 | echo "$ac_t""yes" 1>&6 | |
16668 | ||
f6bcfd97 BP |
16669 | HAVE_SHL_FUNCS=1 |
16670 | LIBS="$LIBS -ldld" | |
698dcdb6 VZ |
16671 | |
16672 | else | |
16673 | echo "$ac_t""no" 1>&6 | |
f6bcfd97 BP |
16674 | fi |
16675 | ||
698dcdb6 | 16676 | |
10f2d63a VZ |
16677 | fi |
16678 | done | |
16679 | ||
698dcdb6 | 16680 | |
10f2d63a VZ |
16681 | fi |
16682 | ||
698dcdb6 | 16683 | |
10f2d63a VZ |
16684 | fi |
16685 | done | |
16686 | ||
1e487827 | 16687 | |
698dcdb6 VZ |
16688 | if test "$HAVE_DL_FUNCS" = 1; then |
16689 | for ac_func in dlerror | |
f6bcfd97 | 16690 | do |
698dcdb6 | 16691 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
3f0f0161 | 16692 | echo "configure:16693: checking for $ac_func" >&5 |
698dcdb6 VZ |
16693 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
16694 | echo $ac_n "(cached) $ac_c" 1>&6 | |
16695 | else | |
16696 | cat > conftest.$ac_ext <<EOF | |
3f0f0161 | 16697 | #line 16698 "configure" |
f6bcfd97 BP |
16698 | #include "confdefs.h" |
16699 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 16700 | which can conflict with char $ac_func(); below. */ |
f6bcfd97 BP |
16701 | #include <assert.h> |
16702 | /* Override any gcc2 internal prototype to avoid an error. */ | |
16703 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
16704 | builtin and then its argument prototype would still apply. */ |
16705 | char $ac_func(); | |
16706 | ||
16707 | int main() { | |
f6bcfd97 BP |
16708 | |
16709 | /* The GNU C library defines this for functions which it implements | |
16710 | to always fail with ENOSYS. Some functions are actually named | |
16711 | something starting with __ and the normal name is an alias. */ | |
16712 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
16713 | choke me | |
16714 | #else | |
698dcdb6 | 16715 | $ac_func(); |
f6bcfd97 BP |
16716 | #endif |
16717 | ||
698dcdb6 VZ |
16718 | ; return 0; } |
16719 | EOF | |
3f0f0161 | 16720 | if { (eval echo configure:16721: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
16721 | rm -rf conftest* |
16722 | eval "ac_cv_func_$ac_func=yes" | |
16723 | else | |
16724 | echo "configure: failed program was:" >&5 | |
16725 | cat conftest.$ac_ext >&5 | |
16726 | rm -rf conftest* | |
16727 | eval "ac_cv_func_$ac_func=no" | |
16728 | fi | |
16729 | rm -f conftest* | |
16730 | fi | |
16731 | ||
16732 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
16733 | echo "$ac_t""yes" 1>&6 | |
16734 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
16735 | cat >> confdefs.h <<EOF | |
16736 | #define $ac_tr_func 1 | |
16737 | EOF | |
16738 | cat >> confdefs.h <<\EOF | |
f6bcfd97 BP |
16739 | #define HAVE_DLERROR 1 |
16740 | EOF | |
16741 | ||
16742 | else | |
698dcdb6 VZ |
16743 | echo "$ac_t""no" 1>&6 |
16744 | echo $ac_n "checking for dlerror in -ldl""... $ac_c" 1>&6 | |
3f0f0161 | 16745 | echo "configure:16746: checking for dlerror in -ldl" >&5 |
698dcdb6 VZ |
16746 | ac_lib_var=`echo dl'_'dlerror | sed 'y%./+-%__p_%'` |
16747 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
16748 | echo $ac_n "(cached) $ac_c" 1>&6 | |
f6bcfd97 | 16749 | else |
698dcdb6 | 16750 | ac_save_LIBS="$LIBS" |
f6bcfd97 | 16751 | LIBS="-ldl $LIBS" |
698dcdb6 | 16752 | cat > conftest.$ac_ext <<EOF |
3f0f0161 | 16753 | #line 16754 "configure" |
f6bcfd97 BP |
16754 | #include "confdefs.h" |
16755 | /* Override any gcc2 internal prototype to avoid an error. */ | |
16756 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
16757 | builtin and then its argument prototype would still apply. */ |
16758 | char dlerror(); | |
16759 | ||
16760 | int main() { | |
16761 | dlerror() | |
16762 | ; return 0; } | |
16763 | EOF | |
3f0f0161 | 16764 | if { (eval echo configure:16765: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
16765 | rm -rf conftest* |
16766 | eval "ac_cv_lib_$ac_lib_var=yes" | |
16767 | else | |
16768 | echo "configure: failed program was:" >&5 | |
16769 | cat conftest.$ac_ext >&5 | |
16770 | rm -rf conftest* | |
16771 | eval "ac_cv_lib_$ac_lib_var=no" | |
16772 | fi | |
16773 | rm -f conftest* | |
16774 | LIBS="$ac_save_LIBS" | |
16775 | ||
16776 | fi | |
16777 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
16778 | echo "$ac_t""yes" 1>&6 | |
16779 | cat >> confdefs.h <<\EOF | |
f6bcfd97 BP |
16780 | #define HAVE_DLERROR 1 |
16781 | EOF | |
16782 | ||
698dcdb6 VZ |
16783 | else |
16784 | echo "$ac_t""no" 1>&6 | |
f6bcfd97 BP |
16785 | fi |
16786 | ||
16787 | fi | |
16788 | done | |
16789 | ||
16790 | fi | |
b4085ce6 | 16791 | fi |
f6bcfd97 | 16792 | |
10f2d63a VZ |
16793 | if test "$HAVE_DL_FUNCS" = 0; then |
16794 | if test "$HAVE_SHL_FUNCS" = 0; then | |
16795 | if test "$USE_UNIX" = 1; then | |
698dcdb6 | 16796 | echo "configure: warning: Missing dynamic loading support, several features will be disabled" 1>&2 |
10f2d63a VZ |
16797 | wxUSE_DYNLIB_CLASS=no |
16798 | else | |
698dcdb6 | 16799 | echo "configure: warning: Assuming wxLibrary class works on this platform" 1>&2 |
10f2d63a VZ |
16800 | fi |
16801 | fi | |
16802 | fi | |
16803 | fi | |
16804 | ||
b089607b VZ |
16805 | fi |
16806 | ||
10f2d63a | 16807 | if test "$wxUSE_DYNLIB_CLASS" = "yes" ; then |
698dcdb6 | 16808 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16809 | #define wxUSE_DYNLIB_CLASS 1 |
16810 | EOF | |
16811 | ||
b12915c1 VZ |
16812 | else |
16813 | wxUSE_ODBC=no | |
16814 | wxUSE_SERIAL=no | |
10f2d63a VZ |
16815 | fi |
16816 | ||
698dcdb6 | 16817 | |
1e6feb95 VZ |
16818 | if test "$wxUSE_FONTMAP" = "yes" ; then |
16819 | cat >> confdefs.h <<\EOF | |
16820 | #define wxUSE_FONTMAP 1 | |
16821 | EOF | |
16822 | ||
16823 | fi | |
16824 | ||
10f2d63a | 16825 | if test "$wxUSE_UNICODE" = "yes" ; then |
698dcdb6 | 16826 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16827 | #define wxUSE_UNICODE 1 |
16828 | EOF | |
16829 | ||
16830 | fi | |
16831 | ||
16832 | if test "$wxUSE_WCSRTOMBS" = "yes" ; then | |
698dcdb6 | 16833 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16834 | #define wxUSE_WCSRTOMBS 1 |
16835 | EOF | |
16836 | ||
16837 | fi | |
16838 | ||
16839 | if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then | |
698dcdb6 | 16840 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16841 | #define wxUSE_EXPERIMENTAL_PRINTF 1 |
16842 | EOF | |
16843 | ||
16844 | fi | |
16845 | ||
698dcdb6 | 16846 | |
b12915c1 | 16847 | if test "$wxUSE_SERIAL" = "yes" ; then |
698dcdb6 | 16848 | cat >> confdefs.h <<\EOF |
b12915c1 VZ |
16849 | #define wxUSE_SERIAL 1 |
16850 | EOF | |
16851 | ||
16852 | fi | |
16853 | ||
698dcdb6 | 16854 | |
10f2d63a VZ |
16855 | IODBC_C_SRC="" |
16856 | if test "$wxUSE_ODBC" = "yes" ; then | |
698dcdb6 | 16857 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16858 | #define wxUSE_ODBC 1 |
16859 | EOF | |
16860 | ||
16861 | WXODBCFLAG="-D_IODBC_" | |
16862 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db" | |
10f2d63a VZ |
16863 | fi |
16864 | ||
698dcdb6 | 16865 | |
10f2d63a | 16866 | if test "$wxUSE_POSTSCRIPT" = "yes" ; then |
698dcdb6 | 16867 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16868 | #define wxUSE_POSTSCRIPT 1 |
16869 | EOF | |
16870 | ||
16871 | fi | |
16872 | ||
698dcdb6 | 16873 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16874 | #define wxUSE_AFM_FOR_POSTSCRIPT 1 |
16875 | EOF | |
16876 | ||
698dcdb6 VZ |
16877 | |
16878 | cat >> confdefs.h <<\EOF | |
10f2d63a VZ |
16879 | #define wxUSE_NORMALIZED_PS_FONTS 1 |
16880 | EOF | |
16881 | ||
698dcdb6 VZ |
16882 | |
16883 | ||
10f2d63a | 16884 | if test "$wxUSE_CONSTRAINTS" = "yes"; then |
698dcdb6 | 16885 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16886 | #define wxUSE_CONSTRAINTS 1 |
16887 | EOF | |
16888 | ||
16889 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout" | |
16890 | fi | |
16891 | ||
16892 | if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then | |
698dcdb6 | 16893 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16894 | #define wxUSE_MDI_ARCHITECTURE 1 |
16895 | EOF | |
16896 | ||
16897 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi" | |
16898 | fi | |
16899 | ||
16900 | if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then | |
698dcdb6 | 16901 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16902 | #define wxUSE_DOC_VIEW_ARCHITECTURE 1 |
16903 | EOF | |
16904 | ||
16905 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview" | |
16906 | if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then | |
16907 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi" | |
16908 | fi | |
16909 | fi | |
16910 | ||
16911 | if test "$wxUSE_HELP" = "yes"; then | |
698dcdb6 | 16912 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16913 | #define wxUSE_HELP 1 |
16914 | EOF | |
16915 | ||
16916 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help" | |
3379ed37 | 16917 | |
3e44f09d | 16918 | if test "$USE_WIN32" = 1; then |
031d8228 | 16919 | if test "$wxUSE_MS_HTML_HELP" = "yes"; then |
3379ed37 | 16920 | cat >> confdefs.h <<\EOF |
031d8228 | 16921 | #define wxUSE_MS_HTML_HELP 1 |
3379ed37 VZ |
16922 | EOF |
16923 | ||
29fd3c0c VS |
16924 | ac_safe=`echo "htmlhelp.h" | sed 'y%./+-%__p_%'` |
16925 | echo $ac_n "checking for htmlhelp.h""... $ac_c" 1>&6 | |
3f0f0161 | 16926 | echo "configure:16927: checking for htmlhelp.h" >&5 |
29fd3c0c VS |
16927 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
16928 | echo $ac_n "(cached) $ac_c" 1>&6 | |
16929 | else | |
16930 | cat > conftest.$ac_ext <<EOF | |
3f0f0161 | 16931 | #line 16932 "configure" |
29fd3c0c VS |
16932 | #include "confdefs.h" |
16933 | #include <htmlhelp.h> | |
16934 | EOF | |
16935 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
3f0f0161 | 16936 | { (eval echo configure:16937: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
29fd3c0c VS |
16937 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
16938 | if test -z "$ac_err"; then | |
16939 | rm -rf conftest* | |
16940 | eval "ac_cv_header_$ac_safe=yes" | |
16941 | else | |
16942 | echo "$ac_err" >&5 | |
16943 | echo "configure: failed program was:" >&5 | |
16944 | cat conftest.$ac_ext >&5 | |
16945 | rm -rf conftest* | |
16946 | eval "ac_cv_header_$ac_safe=no" | |
16947 | fi | |
16948 | rm -f conftest* | |
16949 | fi | |
16950 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
16951 | echo "$ac_t""yes" 1>&6 | |
16952 | ||
16953 | cat >> confdefs.h <<\EOF | |
16954 | #define wxUSE_MS_HTML_HELP 1 | |
16955 | EOF | |
16956 | ||
16957 | ||
16958 | else | |
16959 | echo "$ac_t""no" 1>&6 | |
16960 | ||
16961 | echo "configure: warning: MS HTML Help cannot be used without htmlhelp.h so it won't be compiled without it" 1>&2 | |
16962 | wxUSE_MS_HTML_HELP=no | |
16963 | ||
16964 | fi | |
16965 | ||
3e44f09d | 16966 | fi |
3379ed37 | 16967 | fi |
031d8228 VS |
16968 | |
16969 | if test "$wxUSE_WXHTML_HELP" = "yes"; then | |
16970 | if test "$wxUSE_HTML" = "yes"; then | |
16971 | cat >> confdefs.h <<\EOF | |
16972 | #define wxUSE_WXHTML_HELP 1 | |
16973 | EOF | |
16974 | ||
16975 | else | |
16976 | echo "configure: warning: Cannot use wxHTML-based help without wxHTML so it won't be compiled" 1>&2 | |
16977 | wxUSE_WXHTML_HELP=no | |
16978 | fi | |
16979 | fi | |
10f2d63a VZ |
16980 | fi |
16981 | ||
16982 | if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then | |
16983 | if test "$wxUSE_CONSTRAINTS" != "yes"; then | |
698dcdb6 | 16984 | echo "configure: warning: Printing support cannot be used without constraints so it won't be compiled without it" 1>&2 |
10f2d63a | 16985 | else |
698dcdb6 | 16986 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16987 | #define wxUSE_PRINTING_ARCHITECTURE 1 |
16988 | EOF | |
16989 | ||
16990 | fi | |
16991 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing" | |
16992 | fi | |
16993 | ||
16994 | if test "$wxUSE_PROLOGIO" = "yes" ; then | |
698dcdb6 | 16995 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16996 | #define wxUSE_PROLOGIO 1 |
16997 | EOF | |
16998 | ||
16999 | fi | |
17000 | ||
17001 | if test "$wxUSE_RESOURCES" = "yes" ; then | |
3379ed37 | 17002 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17003 | #define wxUSE_RESOURCES 1 |
17004 | EOF | |
17005 | ||
3379ed37 | 17006 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS resource" |
10f2d63a VZ |
17007 | fi |
17008 | ||
17009 | if test "$wxUSE_X_RESOURCES" = "yes"; then | |
698dcdb6 | 17010 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17011 | #define wxUSE_X_RESOURCES 1 |
17012 | EOF | |
17013 | ||
17014 | fi | |
17015 | ||
698dcdb6 | 17016 | |
10f2d63a | 17017 | if test "$wxUSE_IPC" = "yes"; then |
eb4efbdc | 17018 | if test "$wxUSE_SOCKETS" != "yes"; then |
698dcdb6 | 17019 | echo "configure: warning: wxWindows IPC classes require sockets" 1>&2 |
eb4efbdc VZ |
17020 | fi |
17021 | ||
698dcdb6 | 17022 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17023 | #define wxUSE_IPC 1 |
17024 | EOF | |
17025 | ||
17026 | fi | |
17027 | ||
17028 | if test "$wxUSE_CLIPBOARD" = "yes"; then | |
698dcdb6 | 17029 | cat >> confdefs.h <<\EOF |
10f2d63a | 17030 | #define wxUSE_CLIPBOARD 1 |
1e6feb95 VZ |
17031 | EOF |
17032 | ||
17033 | cat >> confdefs.h <<\EOF | |
17034 | #define wxUSE_DATAOBJ 1 | |
10f2d63a VZ |
17035 | EOF |
17036 | ||
17037 | fi | |
17038 | ||
17039 | if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then | |
17040 | if test "$wxUSE_GTK" = 1; then | |
17041 | if test "$WXGTK12" != 1; then | |
698dcdb6 | 17042 | echo "configure: warning: Drag and drop is only supported under GTK+ 1.2" 1>&2 |
10f2d63a VZ |
17043 | wxUSE_DRAG_AND_DROP=no |
17044 | fi | |
17045 | fi | |
17046 | ||
17047 | if test "$wxUSE_MOTIF" = 1; then | |
698dcdb6 | 17048 | echo "configure: warning: Drag and drop is not yet supported under Motif" 1>&2 |
10f2d63a VZ |
17049 | wxUSE_DRAG_AND_DROP=no |
17050 | fi | |
17051 | ||
2c6025bc | 17052 | if test "$wxUSE_MAC" = 1; then |
698dcdb6 | 17053 | echo "configure: warning: Drag and drop is not yet supported under Mac OS X" 1>&2 |
2c6025bc GD |
17054 | wxUSE_DRAG_AND_DROP=no |
17055 | fi | |
17056 | ||
10f2d63a | 17057 | if test "$USE_WIN32" = 1; then |
698dcdb6 VZ |
17058 | |
17059 | for ac_hdr in ole2.h | |
10f2d63a | 17060 | do |
698dcdb6 VZ |
17061 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
17062 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
3f0f0161 | 17063 | echo "configure:17064: checking for $ac_hdr" >&5 |
698dcdb6 VZ |
17064 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
17065 | echo $ac_n "(cached) $ac_c" 1>&6 | |
17066 | else | |
17067 | cat > conftest.$ac_ext <<EOF | |
3f0f0161 | 17068 | #line 17069 "configure" |
10f2d63a | 17069 | #include "confdefs.h" |
698dcdb6 VZ |
17070 | #include <$ac_hdr> |
17071 | EOF | |
17072 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
3f0f0161 | 17073 | { (eval echo configure:17074: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
17074 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
17075 | if test -z "$ac_err"; then | |
17076 | rm -rf conftest* | |
17077 | eval "ac_cv_header_$ac_safe=yes" | |
1e487827 | 17078 | else |
698dcdb6 VZ |
17079 | echo "$ac_err" >&5 |
17080 | echo "configure: failed program was:" >&5 | |
10f2d63a | 17081 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
17082 | rm -rf conftest* |
17083 | eval "ac_cv_header_$ac_safe=no" | |
10f2d63a | 17084 | fi |
698dcdb6 | 17085 | rm -f conftest* |
10f2d63a | 17086 | fi |
698dcdb6 VZ |
17087 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
17088 | echo "$ac_t""yes" 1>&6 | |
17089 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
17090 | cat >> confdefs.h <<EOF | |
17091 | #define $ac_tr_hdr 1 | |
10f2d63a | 17092 | EOF |
698dcdb6 VZ |
17093 | |
17094 | else | |
17095 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
17096 | fi |
17097 | done | |
17098 | ||
698dcdb6 | 17099 | |
57fe5ed0 | 17100 | if test "$ac_cv_header_ole2_h" = "yes" ; then |
c521c494 | 17101 | if test "$GCC" = yes ; then |
b64f0a5f RL |
17102 | ALL_OBJECTS="$ALL_OBJECTS \$(OLEOBJS)" |
17103 | ALL_DEPFILES="$ALL_DEPFILES \$(OLEDEPS)" | |
c521c494 | 17104 | CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fvtable-thunks" |
b64f0a5f | 17105 | LIBS="$LIBS -lole32 -luuid" |
4f11a343 VS |
17106 | cat >> confdefs.h <<\EOF |
17107 | #define wxUSE_OLE 1 | |
17108 | EOF | |
17109 | ||
b64f0a5f RL |
17110 | |
17111 | if test "$wxUSE_METAFILE" = "yes"; then | |
698dcdb6 | 17112 | cat >> confdefs.h <<\EOF |
b64f0a5f RL |
17113 | #define wxUSE_METAFILE 1 |
17114 | EOF | |
17115 | ||
698dcdb6 | 17116 | cat >> confdefs.h <<\EOF |
b64f0a5f RL |
17117 | #define wxUSE_ENH_METAFILE 1 |
17118 | EOF | |
17119 | ||
17120 | fi | |
c521c494 RL |
17121 | fi |
17122 | else | |
698dcdb6 | 17123 | echo "configure: warning: Drag and drop disabled because OLE headers not found" 1>&2 |
10f2d63a VZ |
17124 | wxUSE_DRAG_AND_DROP=no |
17125 | fi | |
17126 | fi | |
17127 | ||
17128 | if test "$wxUSE_DRAG_AND_DROP" = "yes"; then | |
698dcdb6 | 17129 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17130 | #define wxUSE_DRAG_AND_DROP 1 |
17131 | EOF | |
17132 | ||
17133 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd" | |
17134 | fi | |
17135 | ||
17136 | fi | |
17137 | ||
17138 | if test "$wxUSE_SPLINES" = "yes" ; then | |
698dcdb6 | 17139 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17140 | #define wxUSE_SPLINES 1 |
17141 | EOF | |
17142 | ||
17143 | fi | |
17144 | ||
698dcdb6 | 17145 | |
1e6feb95 VZ |
17146 | USES_CONTROLS=0 |
17147 | if test "$wxUSE_CONTROLS" = "yes"; then | |
17148 | USES_CONTROLS=1 | |
17149 | fi | |
17150 | ||
10f2d63a | 17151 | if test "$wxUSE_ACCEL" = "yes"; then |
698dcdb6 | 17152 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17153 | #define wxUSE_ACCEL 1 |
17154 | EOF | |
17155 | ||
1e6feb95 VZ |
17156 | USES_CONTROLS=1 |
17157 | fi | |
17158 | ||
17159 | if test "$wxUSE_BUTTON" = "yes"; then | |
17160 | cat >> confdefs.h <<\EOF | |
17161 | #define wxUSE_BUTTON 1 | |
17162 | EOF | |
17163 | ||
17164 | USES_CONTROLS=1 | |
17165 | fi | |
17166 | ||
17167 | if test "$wxUSE_BMPBUTTON" = "yes"; then | |
17168 | cat >> confdefs.h <<\EOF | |
17169 | #define wxUSE_BMPBUTTON 1 | |
17170 | EOF | |
17171 | ||
17172 | USES_CONTROLS=1 | |
17173 | fi | |
17174 | ||
17175 | if test "$wxUSE_CALCTRL" = "yes"; then | |
17176 | cat >> confdefs.h <<\EOF | |
17177 | #define wxUSE_CALENDARCTRL 1 | |
17178 | EOF | |
17179 | ||
17180 | USES_CONTROLS=1 | |
17181 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar" | |
10f2d63a VZ |
17182 | fi |
17183 | ||
17184 | if test "$wxUSE_CARET" = "yes"; then | |
698dcdb6 | 17185 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17186 | #define wxUSE_CARET 1 |
17187 | EOF | |
17188 | ||
1e6feb95 | 17189 | USES_CONTROLS=1 |
10f2d63a VZ |
17190 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret" |
17191 | fi | |
17192 | ||
17193 | if test "$wxUSE_COMBOBOX" = "yes"; then | |
698dcdb6 | 17194 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17195 | #define wxUSE_COMBOBOX 1 |
17196 | EOF | |
17197 | ||
1e6feb95 | 17198 | USES_CONTROLS=1 |
10f2d63a VZ |
17199 | fi |
17200 | ||
17201 | if test "$wxUSE_CHOICE" = "yes"; then | |
698dcdb6 | 17202 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17203 | #define wxUSE_CHOICE 1 |
17204 | EOF | |
17205 | ||
1e6feb95 | 17206 | USES_CONTROLS=1 |
10f2d63a VZ |
17207 | fi |
17208 | ||
17209 | if test "$wxUSE_CHECKBOX" = "yes"; then | |
698dcdb6 | 17210 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17211 | #define wxUSE_CHECKBOX 1 |
17212 | EOF | |
17213 | ||
1e6feb95 | 17214 | USES_CONTROLS=1 |
10f2d63a VZ |
17215 | fi |
17216 | ||
17217 | if test "$wxUSE_CHECKLST" = "yes"; then | |
698dcdb6 | 17218 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17219 | #define wxUSE_CHECKLISTBOX 1 |
17220 | EOF | |
17221 | ||
1e6feb95 | 17222 | USES_CONTROLS=1 |
10f2d63a VZ |
17223 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst" |
17224 | fi | |
17225 | ||
17226 | if test "$wxUSE_GAUGE" = "yes"; then | |
698dcdb6 | 17227 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17228 | #define wxUSE_GAUGE 1 |
17229 | EOF | |
17230 | ||
1e6feb95 | 17231 | USES_CONTROLS=1 |
10f2d63a VZ |
17232 | fi |
17233 | ||
d6a55c4b VZ |
17234 | if test "$wxUSE_NEW_GRID" = "yes"; then |
17235 | wxUSE_GRID="yes" | |
698dcdb6 | 17236 | cat >> confdefs.h <<\EOF |
d6a55c4b | 17237 | #define wxUSE_NEW_GRID 1 |
10f2d63a VZ |
17238 | EOF |
17239 | ||
1e6feb95 | 17240 | USES_CONTROLS=1 |
d6a55c4b | 17241 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS newgrid" |
10f2d63a VZ |
17242 | fi |
17243 | ||
d6a55c4b | 17244 | if test "$wxUSE_GRID" = "yes"; then |
698dcdb6 | 17245 | cat >> confdefs.h <<\EOF |
d6a55c4b | 17246 | #define wxUSE_GRID 1 |
10f2d63a VZ |
17247 | EOF |
17248 | ||
1e6feb95 | 17249 | USES_CONTROLS=1 |
d6a55c4b | 17250 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid" |
10f2d63a VZ |
17251 | fi |
17252 | ||
17253 | if test "$wxUSE_IMAGLIST" = "yes"; then | |
698dcdb6 | 17254 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17255 | #define wxUSE_IMAGLIST 1 |
17256 | EOF | |
17257 | ||
17258 | fi | |
17259 | ||
17260 | if test "$wxUSE_LISTBOX" = "yes"; then | |
698dcdb6 | 17261 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17262 | #define wxUSE_LISTBOX 1 |
17263 | EOF | |
17264 | ||
1e6feb95 | 17265 | USES_CONTROLS=1 |
10f2d63a VZ |
17266 | fi |
17267 | ||
17268 | if test "$wxUSE_LISTCTRL" = "yes"; then | |
17269 | if test "$wxUSE_IMAGLIST" = "yes"; then | |
698dcdb6 | 17270 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17271 | #define wxUSE_LISTCTRL 1 |
17272 | EOF | |
17273 | ||
1e6feb95 | 17274 | USES_CONTROLS=1 |
10f2d63a VZ |
17275 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl" |
17276 | else | |
698dcdb6 | 17277 | echo "configure: warning: wxListCtrl requires wxImageList and won't be compiled without it" 1>&2 |
10f2d63a VZ |
17278 | fi |
17279 | fi | |
17280 | ||
17281 | if test "$wxUSE_NOTEBOOK" = "yes"; then | |
698dcdb6 | 17282 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17283 | #define wxUSE_NOTEBOOK 1 |
17284 | EOF | |
17285 | ||
1e6feb95 | 17286 | USES_CONTROLS=1 |
10f2d63a VZ |
17287 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook" |
17288 | fi | |
17289 | ||
17290 | if test "$wxUSE_RADIOBOX" = "yes"; then | |
698dcdb6 | 17291 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17292 | #define wxUSE_RADIOBOX 1 |
17293 | EOF | |
17294 | ||
1e6feb95 | 17295 | USES_CONTROLS=1 |
10f2d63a VZ |
17296 | fi |
17297 | ||
17298 | if test "$wxUSE_RADIOBTN" = "yes"; then | |
698dcdb6 | 17299 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17300 | #define wxUSE_RADIOBTN 1 |
17301 | EOF | |
17302 | ||
1e6feb95 | 17303 | USES_CONTROLS=1 |
10f2d63a VZ |
17304 | fi |
17305 | ||
17306 | if test "$wxUSE_SASH" = "yes"; then | |
698dcdb6 | 17307 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17308 | #define wxUSE_SASH 1 |
17309 | EOF | |
17310 | ||
17311 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest" | |
17312 | fi | |
17313 | ||
17314 | if test "$wxUSE_SCROLLBAR" = "yes"; then | |
698dcdb6 | 17315 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17316 | #define wxUSE_SCROLLBAR 1 |
17317 | EOF | |
17318 | ||
1e6feb95 | 17319 | USES_CONTROLS=1 |
741a9306 | 17320 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub" |
10f2d63a VZ |
17321 | fi |
17322 | ||
17323 | if test "$wxUSE_SLIDER" = "yes"; then | |
698dcdb6 | 17324 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17325 | #define wxUSE_SLIDER 1 |
17326 | EOF | |
17327 | ||
1e6feb95 | 17328 | USES_CONTROLS=1 |
10f2d63a VZ |
17329 | fi |
17330 | ||
17331 | if test "$wxUSE_SPINBTN" = "yes"; then | |
698dcdb6 | 17332 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17333 | #define wxUSE_SPINBTN 1 |
17334 | EOF | |
17335 | ||
1e6feb95 | 17336 | USES_CONTROLS=1 |
10f2d63a VZ |
17337 | fi |
17338 | ||
56cfaa52 | 17339 | if test "$wxUSE_SPINCTRL" = "yes"; then |
698dcdb6 | 17340 | cat >> confdefs.h <<\EOF |
56cfaa52 RR |
17341 | #define wxUSE_SPINCTRL 1 |
17342 | EOF | |
17343 | ||
1e6feb95 | 17344 | USES_CONTROLS=1 |
56cfaa52 RR |
17345 | fi |
17346 | ||
10f2d63a | 17347 | if test "$wxUSE_SPLITTER" = "yes"; then |
698dcdb6 | 17348 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17349 | #define wxUSE_SPLITTER 1 |
17350 | EOF | |
17351 | ||
17352 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter" | |
17353 | fi | |
17354 | ||
17355 | if test "$wxUSE_STATBMP" = "yes"; then | |
698dcdb6 | 17356 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17357 | #define wxUSE_STATBMP 1 |
17358 | EOF | |
17359 | ||
1e6feb95 | 17360 | USES_CONTROLS=1 |
10f2d63a VZ |
17361 | fi |
17362 | ||
17363 | if test "$wxUSE_STATBOX" = "yes"; then | |
698dcdb6 | 17364 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17365 | #define wxUSE_STATBOX 1 |
17366 | EOF | |
17367 | ||
1e6feb95 VZ |
17368 | USES_CONTROLS=1 |
17369 | fi | |
17370 | ||
17371 | if test "$wxUSE_STATTEXT" = "yes"; then | |
17372 | cat >> confdefs.h <<\EOF | |
17373 | #define wxUSE_STATTEXT 1 | |
17374 | EOF | |
17375 | ||
17376 | USES_CONTROLS=1 | |
10f2d63a VZ |
17377 | fi |
17378 | ||
17379 | if test "$wxUSE_STATLINE" = "yes"; then | |
17380 | if test "$wxUSE_WINE" = 1 ; then | |
698dcdb6 | 17381 | echo "configure: warning: wxStaticLine is not supported under WINE" 1>&2 |
10f2d63a | 17382 | else |
698dcdb6 | 17383 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17384 | #define wxUSE_STATLINE 1 |
17385 | EOF | |
17386 | ||
1e6feb95 | 17387 | USES_CONTROLS=1 |
10f2d63a VZ |
17388 | fi |
17389 | fi | |
17390 | ||
17391 | if test "$wxUSE_STATUSBAR" = "yes"; then | |
698dcdb6 | 17392 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17393 | #define wxUSE_STATUSBAR 1 |
17394 | EOF | |
17395 | ||
1e6feb95 | 17396 | USES_CONTROLS=1 |
698dcdb6 | 17397 | |
2286341c | 17398 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar" |
10f2d63a VZ |
17399 | fi |
17400 | ||
17401 | if test "$wxUSE_TABDIALOG" = "yes"; then | |
698dcdb6 | 17402 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17403 | #define wxUSE_TAB_DIALOG 1 |
17404 | EOF | |
17405 | ||
17406 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS tab" | |
17407 | fi | |
17408 | ||
1e6feb95 VZ |
17409 | if test "$wxUSE_TEXTCTRL" = "yes"; then |
17410 | cat >> confdefs.h <<\EOF | |
17411 | #define wxUSE_TEXTCTRL 1 | |
17412 | EOF | |
17413 | ||
17414 | USES_CONTROLS=1 | |
17415 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text" | |
17416 | fi | |
17417 | ||
1db8dc4a | 17418 | if test "$wxUSE_TOGGLEBTN" = "yes"; then |
a45d7ab7 GD |
17419 | if test "$wxUSE_MAC" = 1; then |
17420 | echo "configure: warning: Toggle button is not yet supported under Mac OS X" 1>&2 | |
17421 | wxUSE_TOGGLEBTN=no | |
17422 | fi | |
17423 | ||
17424 | if test "$wxUSE_TOGGLEBTN" = "yes"; then | |
17425 | cat >> confdefs.h <<\EOF | |
1db8dc4a VZ |
17426 | #define wxUSE_TOGGLEBTN 1 |
17427 | EOF | |
17428 | ||
1e6feb95 | 17429 | USES_CONTROLS=1 |
a45d7ab7 | 17430 | fi |
1db8dc4a VZ |
17431 | fi |
17432 | ||
360d6699 | 17433 | if test "$wxUSE_TOOLBAR_SIMPLE" = "yes"; then |
698dcdb6 | 17434 | cat >> confdefs.h <<\EOF |
360d6699 VZ |
17435 | #define wxUSE_TOOLBAR_SIMPLE 1 |
17436 | EOF | |
17437 | ||
17438 | wxUSE_TOOLBAR="yes" | |
1e6feb95 | 17439 | USES_CONTROLS=1 |
360d6699 VZ |
17440 | fi |
17441 | ||
10f2d63a | 17442 | if test "$wxUSE_TOOLBAR" = "yes"; then |
698dcdb6 | 17443 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17444 | #define wxUSE_TOOLBAR 1 |
17445 | EOF | |
17446 | ||
1e6feb95 | 17447 | USES_CONTROLS=1 |
698dcdb6 | 17448 | |
360d6699 VZ |
17449 | if test "$wxUSE_TOOLBAR_SIMPLE" != "yes"; then |
17450 | wxUSE_TOOLBAR_NATIVE="yes" | |
17451 | fi | |
17452 | ||
1e6feb95 VZ |
17453 | if test "$wxUSE_TOOLBAR_NATIVE" = "yes"; then |
17454 | cat >> confdefs.h <<\EOF | |
360d6699 VZ |
17455 | #define wxUSE_TOOLBAR_NATIVE 1 |
17456 | EOF | |
17457 | ||
1e6feb95 VZ |
17458 | USES_CONTROLS=1 |
17459 | fi | |
17460 | ||
17461 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar" | |
360d6699 VZ |
17462 | fi |
17463 | ||
10f2d63a VZ |
17464 | if test "$wxUSE_TOOLTIPS" = "yes"; then |
17465 | if test "$wxUSE_MOTIF" = 1; then | |
698dcdb6 | 17466 | echo "configure: warning: wxTooltip not supported yet under Motif" 1>&2 |
10f2d63a VZ |
17467 | else |
17468 | if test "$wxUSE_WINE" = 1; then | |
698dcdb6 | 17469 | echo "configure: warning: wxTooltip not supported under WINE" 1>&2 |
10f2d63a | 17470 | else |
698dcdb6 | 17471 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17472 | #define wxUSE_TOOLTIPS 1 |
17473 | EOF | |
17474 | ||
17475 | fi | |
17476 | fi | |
17477 | fi | |
17478 | ||
17479 | if test "$wxUSE_TREECTRL" = "yes"; then | |
17480 | if test "$wxUSE_IMAGLIST" = "yes"; then | |
698dcdb6 | 17481 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17482 | #define wxUSE_TREECTRL 1 |
17483 | EOF | |
17484 | ||
1e6feb95 | 17485 | USES_CONTROLS=1 |
10f2d63a VZ |
17486 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl" |
17487 | else | |
698dcdb6 | 17488 | echo "configure: warning: wxTreeCtrl requires wxImageList and won't be compiled without it" 1>&2 |
10f2d63a VZ |
17489 | fi |
17490 | fi | |
17491 | ||
9f41d601 | 17492 | if test "$wxUSE_POPUPWIN" = "yes"; then |
6abe4b65 GD |
17493 | if test "$wxUSE_MAC" = 1; then |
17494 | echo "configure: warning: Popup window is not yet supported under Mac OS" 1>&2 | |
17495 | else | |
17496 | cat >> confdefs.h <<\EOF | |
9f41d601 RR |
17497 | #define wxUSE_POPUPWIN 1 |
17498 | EOF | |
17499 | ||
6abe4b65 GD |
17500 | USES_CONTROLS=1 |
17501 | fi | |
9f41d601 RR |
17502 | fi |
17503 | ||
1e6feb95 VZ |
17504 | if test "$USES_CONTROLS" = 1; then |
17505 | cat >> confdefs.h <<\EOF | |
17506 | #define wxUSE_CONTROLS 1 | |
10f2d63a VZ |
17507 | EOF |
17508 | ||
10f2d63a VZ |
17509 | fi |
17510 | ||
1e6feb95 VZ |
17511 | |
17512 | ||
24fd6d87 VZ |
17513 | if test "$wxUSE_DRAGIMAGE" = "yes"; then |
17514 | cat >> confdefs.h <<\EOF | |
17515 | #define wxUSE_DRAGIMAGE 1 | |
17516 | EOF | |
17517 | ||
17518 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag" | |
17519 | fi | |
17520 | ||
1e6feb95 | 17521 | if test "$wxUSE_MENUS" = "yes"; then |
698dcdb6 | 17522 | cat >> confdefs.h <<\EOF |
1e6feb95 | 17523 | #define wxUSE_MENUS 1 |
10f2d63a VZ |
17524 | EOF |
17525 | ||
1e6feb95 | 17526 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu" |
10f2d63a VZ |
17527 | fi |
17528 | ||
1e6feb95 VZ |
17529 | if test "$wxUSE_METAFILE" = "yes"; then |
17530 | cat >> confdefs.h <<\EOF | |
17531 | #define wxUSE_METAFILE 1 | |
10f2d63a VZ |
17532 | EOF |
17533 | ||
10f2d63a VZ |
17534 | fi |
17535 | ||
1e6feb95 VZ |
17536 | if test "$wxUSE_MIMETYPE" = "yes"; then |
17537 | cat >> confdefs.h <<\EOF | |
17538 | #define wxUSE_MIMETYPE 1 | |
10f2d63a VZ |
17539 | EOF |
17540 | ||
10f2d63a VZ |
17541 | fi |
17542 | ||
3e44f09d VZ |
17543 | if test "$wxUSE_SYSTEM_OPTIONS" = "yes"; then |
17544 | cat >> confdefs.h <<\EOF | |
17545 | #define wxUSE_SYSTEM_OPTIONS 1 | |
17546 | EOF | |
17547 | ||
17548 | fi | |
17549 | ||
10f2d63a | 17550 | if test "$wxUSE_MINIFRAME" = "yes"; then |
698dcdb6 | 17551 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17552 | #define wxUSE_MINIFRAME 1 |
17553 | EOF | |
17554 | ||
17555 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram" | |
17556 | fi | |
17557 | ||
17558 | if test "$wxUSE_HTML" = "yes"; then | |
698dcdb6 | 17559 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17560 | #define wxUSE_HTML 1 |
17561 | EOF | |
17562 | ||
17563 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html" | |
17564 | INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS html" | |
17565 | fi | |
17566 | ||
17567 | if test "$wxUSE_VALIDATORS" = "yes"; then | |
698dcdb6 | 17568 | cat >> confdefs.h <<\EOF |
1e487827 VS |
17569 | #define wxUSE_VALIDATORS 1 |
17570 | EOF | |
703e0a69 | 17571 | |
698dcdb6 VZ |
17572 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate" |
17573 | fi | |
17574 | ||
17575 | if test "$wxUSE_IMAGE" = "yes" ; then | |
17576 | cat >> confdefs.h <<\EOF | |
17577 | #define wxUSE_IMAGE 1 | |
17578 | EOF | |
17579 | ||
17580 | fi | |
17581 | ||
17582 | if test "$wxUSE_GIF" = "yes" ; then | |
17583 | cat >> confdefs.h <<\EOF | |
17584 | #define wxUSE_GIF 1 | |
17585 | EOF | |
17586 | ||
17587 | fi | |
17588 | ||
17589 | if test "$wxUSE_PCX" = "yes" ; then | |
17590 | cat >> confdefs.h <<\EOF | |
17591 | #define wxUSE_PCX 1 | |
17592 | EOF | |
17593 | ||
17594 | fi | |
17595 | ||
17596 | if test "$wxUSE_PNM" = "yes" ; then | |
17597 | cat >> confdefs.h <<\EOF | |
17598 | #define wxUSE_PNM 1 | |
17599 | EOF | |
17600 | ||
17601 | fi | |
17602 | ||
17603 | if test "$wxUSE_XPM" = "yes" ; then | |
17604 | cat >> confdefs.h <<\EOF | |
17605 | #define wxUSE_XPM 1 | |
17606 | EOF | |
17607 | ||
17608 | fi | |
17609 | ||
17610 | ||
1e6feb95 VZ |
17611 | if test "$wxUSE_CHOICEDLG" = "yes"; then |
17612 | cat >> confdefs.h <<\EOF | |
17613 | #define wxUSE_CHOICEDLG 1 | |
17614 | EOF | |
17615 | ||
17616 | fi | |
17617 | ||
17618 | if test "$wxUSE_COLOURDLG" = "yes"; then | |
17619 | cat >> confdefs.h <<\EOF | |
17620 | #define wxUSE_COLOURDLG 1 | |
17621 | EOF | |
17622 | ||
17623 | fi | |
17624 | ||
17625 | if test "$wxUSE_FILEDLG" = "yes"; then | |
17626 | cat >> confdefs.h <<\EOF | |
17627 | #define wxUSE_FILEDLG 1 | |
17628 | EOF | |
17629 | ||
17630 | fi | |
17631 | ||
17632 | if test "$wxUSE_FONTDLG" = "yes"; then | |
17633 | cat >> confdefs.h <<\EOF | |
17634 | #define wxUSE_FONTDLG 1 | |
17635 | EOF | |
17636 | ||
17637 | fi | |
17638 | ||
17639 | if test "$wxUSE_DIRDLG" = "yes"; then | |
17640 | if test "$wxUSE_CONSTRAINTS" != "yes"; then | |
17641 | echo "configure: warning: wxDirDialog requires constraints so it won't be compiled without them" 1>&2 | |
17642 | else | |
17643 | if test "$wxUSE_TREECTRL" != "yes"; then | |
17644 | echo "configure: warning: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" 1>&2 | |
17645 | else | |
17646 | cat >> confdefs.h <<\EOF | |
17647 | #define wxUSE_DIRDLG 1 | |
17648 | EOF | |
17649 | ||
17650 | fi | |
17651 | fi | |
17652 | fi | |
17653 | ||
17654 | if test "$wxUSE_MSGDLG" = "yes"; then | |
17655 | cat >> confdefs.h <<\EOF | |
17656 | #define wxUSE_MSGDLG 1 | |
17657 | EOF | |
17658 | ||
17659 | fi | |
17660 | ||
17661 | if test "$wxUSE_NUMBERDLG" = "yes"; then | |
17662 | cat >> confdefs.h <<\EOF | |
17663 | #define wxUSE_NUMBERDLG 1 | |
17664 | EOF | |
17665 | ||
17666 | fi | |
17667 | ||
17668 | if test "$wxUSE_PROGRESSDLG" = "yes"; then | |
17669 | if test "$wxUSE_CONSTRAINTS" != "yes"; then | |
17670 | echo "configure: warning: wxProgressDialog requires constraints so it won't be compiled without them" 1>&2 | |
17671 | else | |
17672 | cat >> confdefs.h <<\EOF | |
17673 | #define wxUSE_PROGRESSDLG 1 | |
17674 | EOF | |
17675 | ||
17676 | fi | |
17677 | fi | |
17678 | ||
17679 | if test "$wxUSE_STARTUP_TIPS" = "yes"; then | |
17680 | if test "$wxUSE_CONSTRAINTS" != "yes"; then | |
17681 | echo "configure: warning: Startup tips requires constraints and won't be compiled without them" 1>&2 | |
17682 | else | |
17683 | cat >> confdefs.h <<\EOF | |
17684 | #define wxUSE_STARTUP_TIPS 1 | |
17685 | EOF | |
17686 | ||
17687 | fi | |
17688 | fi | |
17689 | ||
17690 | if test "$wxUSE_TEXTDLG" = "yes"; then | |
17691 | cat >> confdefs.h <<\EOF | |
17692 | #define wxUSE_TEXTDLG 1 | |
17693 | EOF | |
17694 | ||
17695 | fi | |
17696 | ||
b1f5d087 VZ |
17697 | if test "$wxUSE_WIZARDDLG" = "yes"; then |
17698 | cat >> confdefs.h <<\EOF | |
17699 | #define wxUSE_WIZARDDLG 1 | |
17700 | EOF | |
17701 | ||
17702 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wizard" | |
17703 | fi | |
17704 | ||
1e6feb95 | 17705 | |
698dcdb6 VZ |
17706 | if test "$cross_compiling" = "yes"; then |
17707 | OSINFO="\"$host\"" | |
17708 | else | |
17709 | OSINFO=`uname -s -r -m` | |
17710 | OSINFO="\"$OSINFO\"" | |
17711 | fi | |
17712 | ||
17713 | cat >> confdefs.h <<EOF | |
17714 | #define WXWIN_OS_DESCRIPTION $OSINFO | |
17715 | EOF | |
17716 | ||
17717 | ||
17718 | ||
17719 | GUILIBS="$GUI_TK_LIBRARY $TOOLKIT_LINK" | |
17720 | OPENGL_LIBS="$OPENGL_LINK" | |
17721 | ||
17722 | EXTRA_LIBS="$LIBS $POSIX4_LINK $INET_LINK $WCHAR_LINK $THREADS_LINK $DMALLOC_LINK $DL_LINK $ZLIB_LINK -lm" | |
f11bdd03 | 17723 | if test "$wxUSE_MAC" = 1 ; then |
698dcdb6 VZ |
17724 | EXTRA_LIBS="$EXTRA_LIBS -framework Carbon -framework System" |
17725 | fi | |
17726 | if test "$wxUSE_GUI" = "yes"; then | |
17727 | EXTRA_LIBS="$GUILIBS $PNG_LINK $JPEG_LINK $TIFF_LINK $FREETYPE_LINK $EXTRA_LIBS" | |
17728 | fi | |
17729 | ||
17730 | LD_LIBS="\${top_builddir}/lib/${WX_LIBRARY_NAME_STATIC} $EXTRA_LIBS" | |
17731 | ||
3e44f09d VZ |
17732 | INCLUDES="-I. -I\${top_builddir}/include -I\${top_srcdir}/include \ |
17733 | $REGEX_INCLUDE $ZLIB_INCLUDE $PNG_INCLUDE $JPEG_INCLUDE $TIFF_INCLUDE \ | |
17734 | $FREETYPE_INCLUDE $TOOLKIT_INCLUDE" | |
698dcdb6 VZ |
17735 | |
17736 | if test "$wxUSE_GTK" = 1; then | |
17737 | WXCONFIG_INCLUDE="" | |
17738 | else | |
17739 | WXCONFIG_INCLUDE="$TOOLKIT_INCLUDE" | |
17740 | fi | |
17741 | ||
17742 | if test "$GXX" = yes ; then | |
17743 | CXXWARNINGS="-Wall" | |
17744 | fi | |
17745 | EXTRA_CFLAGS="$WXDEBUG $WXODBCFLAG $PROFILE $OPTIMISE $INCLUDES" | |
17746 | ||
17747 | CFLAGS=`echo $CFLAGS $EXTRA_CFLAGS $CXXWARNINGS | sed 's/ \\+/ /g'` | |
17748 | CXXFLAGS=`echo $CXXFLAGS $EXTRA_CFLAGS $CXXWARNINGS | sed 's/ \+/ /g'` | |
17749 | ||
17750 | LDFLAGS="$LDFLAGS $PROFILE" | |
17751 | ||
17752 | if test "$wxUSE_GUI" = "yes"; then | |
17753 | ||
24fd6d87 | 17754 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS controls dialogs \ |
1e6feb95 VZ |
17755 | drawing dynamic event font fractal image \ |
17756 | minimal richedit widgets" | |
17757 | ||
17758 | if test "$wxUSE_UNIVERSAL" = "yes" ; then | |
17759 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS univ" | |
17760 | fi | |
698dcdb6 VZ |
17761 | |
17762 | CPPFLAGS="$CPPFLAGS \$(EXTRADEFS) \$(APPEXTRADEFS)" | |
17763 | else | |
17764 | SAMPLES_SUBDIRS="" | |
17765 | fi | |
17766 | ||
17767 | SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`" | |
17768 | ||
17769 | ||
17770 | ||
17771 | ||
17772 | ||
17773 | ||
17774 | ||
17775 | ||
17776 | ||
17777 | ||
17778 | ||
17779 | ||
17780 | ||
17781 | ||
17782 | ||
17783 | ||
17784 | ||
17785 | ||
17786 | ||
17787 | ||
17788 | ||
17789 | ||
17790 | ||
17791 | ||
17792 | ||
17793 | ||
17794 | ||
17795 | ||
17796 | ||
17797 | ||
17798 | ||
17799 | ||
17800 | ||
17801 | ||
17802 | ||
17803 | ||
17804 | ||
17805 | ||
17806 | ||
17807 | ||
17808 | ||
17809 | ||
17810 | ||
17811 | ||
17812 | ||
17813 | ||
17814 | ||
17815 | ||
17816 | ||
17817 | ||
17818 | ||
17819 | ||
17820 | ||
17821 | ||
17822 | ||
17823 | ||
17824 | ||
17825 | ||
17826 | ||
17827 | ||
17828 | ||
17829 | ||
17830 | ||
17831 | ||
17832 | ||
17833 | ||
17834 | ||
32832908 VZ |
17835 | |
17836 | ||
17837 | ||
17838 | ||
17839 | ||
17840 | ||
17841 | ||
2224580a | 17842 | |
dad6c0ea | 17843 | |
f6bcfd97 BP |
17844 | |
17845 | ||
17846 | ||
2f51a9ec GD |
17847 | |
17848 | ||
17849 | ||
17850 | ||
17851 | ||
17852 | ||
f6bcfd97 | 17853 | |
dad6c0ea | 17854 | |
caa2c79b | 17855 | |
3711412e | 17856 | |
1e6feb95 VZ |
17857 | |
17858 | ||
0f3f1cbc | 17859 | |
10f2d63a VZ |
17860 | |
17861 | ||
698dcdb6 | 17862 | echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6 |
3f0f0161 | 17863 | echo "configure:17864: checking whether ${MAKE-make} sets \${MAKE}" >&5 |
698dcdb6 VZ |
17864 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'` |
17865 | if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then | |
17866 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 17867 | else |
698dcdb6 | 17868 | cat > conftestmake <<\EOF |
10f2d63a VZ |
17869 | all: |
17870 | @echo 'ac_maketemp="${MAKE}"' | |
17871 | EOF | |
17872 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
698dcdb6 | 17873 | eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=` |
10f2d63a VZ |
17874 | if test -n "$ac_maketemp"; then |
17875 | eval ac_cv_prog_make_${ac_make}_set=yes | |
17876 | else | |
17877 | eval ac_cv_prog_make_${ac_make}_set=no | |
17878 | fi | |
698dcdb6 | 17879 | rm -f conftestmake |
10f2d63a VZ |
17880 | fi |
17881 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then | |
698dcdb6 | 17882 | echo "$ac_t""yes" 1>&6 |
10f2d63a VZ |
17883 | SET_MAKE= |
17884 | else | |
698dcdb6 | 17885 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
17886 | SET_MAKE="MAKE=${MAKE-make}" |
17887 | fi | |
17888 | ||
698dcdb6 | 17889 | |
00cf1208 RR |
17890 | if test -d include; then |
17891 | if test -d include/wx; then | |
1e6feb95 VZ |
17892 | if test -d include/wx/${SETUPH_DIR}; then |
17893 | if test -f include/wx/${SETUPH_DIR}/setup.h; then | |
17894 | mv -f include/wx/${SETUPH_DIR}/setup.h setup.h | |
00cf1208 RR |
17895 | fi |
17896 | fi | |
17897 | fi | |
17898 | fi | |
665bbe97 | 17899 | |
698dcdb6 | 17900 | |
10f2d63a | 17901 | |
2224580a | 17902 | if test "$wxUSE_GUI" = "yes"; then |
ec90f5e5 | 17903 | wx_cv_path_samplesubdirs=$SAMPLES_SUBDIRS |
e8482f24 GL |
17904 | wx_cv_path_ifs=$PATH_IFS |
17905 | wx_cv_program_ext=$PROGRAM_EXT | |
17906 | wx_cv_target_library=$WX_TARGET_LIBRARY | |
3711412e | 17907 | wx_cv_target_libtype=$WX_TARGET_LIBRARY_TYPE |
93a20a27 VS |
17908 | export wx_cv_path_samplesubdirs wx_cv_path_ifs wx_cv_program_ext \ |
17909 | wx_cv_target_library wx_cv_target_libtype | |
698dcdb6 | 17910 | subdirs="demos samples utils contrib" |
2224580a VZ |
17911 | |
17912 | fi | |
10f2d63a | 17913 | |
698dcdb6 VZ |
17914 | trap '' 1 2 15 |
17915 | cat > confcache <<\EOF | |
10f2d63a VZ |
17916 | # This file is a shell script that caches the results of configure |
17917 | # tests run on this system so they can be shared between configure | |
698dcdb6 VZ |
17918 | # scripts and configure runs. It is not useful on other systems. |
17919 | # If it contains results you don't want to keep, you may remove or edit it. | |
10f2d63a | 17920 | # |
698dcdb6 VZ |
17921 | # By default, configure uses ./config.cache as the cache file, |
17922 | # creating it if it does not exist already. You can give configure | |
17923 | # the --cache-file=FILE option to use a different cache file; that is | |
17924 | # what configure does when it calls configure scripts in | |
17925 | # subdirectories, so they share the cache. | |
17926 | # Giving --cache-file=/dev/null disables caching, for debugging configure. | |
17927 | # config.status only pays attention to the cache file if you give it the | |
17928 | # --recheck option to rerun configure. | |
10f2d63a | 17929 | # |
698dcdb6 | 17930 | EOF |
10f2d63a VZ |
17931 | # The following way of writing the cache mishandles newlines in values, |
17932 | # but we know of no workaround that is simple, portable, and efficient. | |
17933 | # So, don't put newlines in cache variables' values. | |
17934 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
17935 | # and sets the high bit in the cache file unless we assign to the vars. | |
698dcdb6 VZ |
17936 | (set) 2>&1 | |
17937 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
17938 | *ac_space=\ *) | |
17939 | # `set' does not quote correctly, so add quotes (double-quote substitution | |
17940 | # turns \\\\ into \\, and sed turns \\ into \). | |
17941 | sed -n \ | |
17942 | -e "s/'/'\\\\''/g" \ | |
17943 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" | |
17944 | ;; | |
17945 | *) | |
17946 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
17947 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' | |
17948 | ;; | |
17949 | esac >> confcache | |
17950 | if cmp -s $cache_file confcache; then | |
17951 | : | |
17952 | else | |
10f2d63a | 17953 | if test -w $cache_file; then |
698dcdb6 VZ |
17954 | echo "updating cache $cache_file" |
17955 | cat confcache > $cache_file | |
10f2d63a VZ |
17956 | else |
17957 | echo "not updating unwritable cache $cache_file" | |
17958 | fi | |
17959 | fi | |
17960 | rm -f confcache | |
17961 | ||
698dcdb6 VZ |
17962 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 |
17963 | ||
10f2d63a VZ |
17964 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
17965 | # Let make expand exec_prefix. | |
17966 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
17967 | ||
698dcdb6 VZ |
17968 | # Any assignment to VPATH causes Sun make to only execute |
17969 | # the first set of double-colon rules, so remove it if not needed. | |
17970 | # If there is a colon in the path, we need to keep it. | |
10f2d63a | 17971 | if test "x$srcdir" = x.; then |
698dcdb6 | 17972 | ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d' |
10f2d63a VZ |
17973 | fi |
17974 | ||
698dcdb6 VZ |
17975 | trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15 |
17976 | ||
10f2d63a VZ |
17977 | DEFS=-DHAVE_CONFIG_H |
17978 | ||
698dcdb6 | 17979 | # Without the "./", some shells look in PATH for config.status. |
10f2d63a | 17980 | : ${CONFIG_STATUS=./config.status} |
698dcdb6 VZ |
17981 | |
17982 | echo creating $CONFIG_STATUS | |
17983 | rm -f $CONFIG_STATUS | |
17984 | cat > $CONFIG_STATUS <<EOF | |
17985 | #! /bin/sh | |
10f2d63a VZ |
17986 | # Generated automatically by configure. |
17987 | # Run this file to recreate the current configuration. | |
698dcdb6 VZ |
17988 | # This directory was configured as follows, |
17989 | # on host `(hostname || uname -n) 2>/dev/null | sed 1q`: | |
17990 | # | |
17991 | # $0 $ac_configure_args | |
17992 | # | |
10f2d63a | 17993 | # Compiler output produced by configure, useful for debugging |
698dcdb6 | 17994 | # configure, is in ./config.log if it exists. |
1e487827 | 17995 | |
698dcdb6 VZ |
17996 | ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]" |
17997 | for ac_option | |
10f2d63a | 17998 | do |
698dcdb6 | 17999 | case "\$ac_option" in |
10f2d63a | 18000 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
698dcdb6 VZ |
18001 | echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion" |
18002 | exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;; | |
18003 | -version | --version | --versio | --versi | --vers | --ver | --ve | --v) | |
18004 | echo "$CONFIG_STATUS generated by autoconf version 2.13" | |
18005 | exit 0 ;; | |
18006 | -help | --help | --hel | --he | --h) | |
18007 | echo "\$ac_cs_usage"; exit 0 ;; | |
18008 | *) echo "\$ac_cs_usage"; exit 1 ;; | |
10f2d63a VZ |
18009 | esac |
18010 | done | |
18011 | ||
698dcdb6 VZ |
18012 | ac_given_srcdir=$srcdir |
18013 | ac_given_INSTALL="$INSTALL" | |
703e0a69 | 18014 | |
698dcdb6 VZ |
18015 | trap 'rm -fr `echo " |
18016 | wx-config | |
18017 | src/make.env | |
18018 | src/makeprog.env | |
18019 | src/makelib.env | |
18020 | Makefile | |
18021 | setup.h:setup.h.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15 | |
1e487827 | 18022 | EOF |
698dcdb6 | 18023 | cat >> $CONFIG_STATUS <<EOF |
1e487827 | 18024 | |
698dcdb6 VZ |
18025 | # Protect against being on the right side of a sed subst in config.status. |
18026 | sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g; | |
18027 | s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF | |
18028 | $ac_vpsub | |
18029 | $extrasub | |
18030 | s%@SHELL@%$SHELL%g | |
18031 | s%@CFLAGS@%$CFLAGS%g | |
18032 | s%@CPPFLAGS@%$CPPFLAGS%g | |
18033 | s%@CXXFLAGS@%$CXXFLAGS%g | |
18034 | s%@FFLAGS@%$FFLAGS%g | |
18035 | s%@DEFS@%$DEFS%g | |
18036 | s%@LDFLAGS@%$LDFLAGS%g | |
18037 | s%@LIBS@%$LIBS%g | |
18038 | s%@exec_prefix@%$exec_prefix%g | |
18039 | s%@prefix@%$prefix%g | |
18040 | s%@program_transform_name@%$program_transform_name%g | |
18041 | s%@bindir@%$bindir%g | |
18042 | s%@sbindir@%$sbindir%g | |
18043 | s%@libexecdir@%$libexecdir%g | |
18044 | s%@datadir@%$datadir%g | |
18045 | s%@sysconfdir@%$sysconfdir%g | |
18046 | s%@sharedstatedir@%$sharedstatedir%g | |
18047 | s%@localstatedir@%$localstatedir%g | |
18048 | s%@libdir@%$libdir%g | |
18049 | s%@includedir@%$includedir%g | |
18050 | s%@oldincludedir@%$oldincludedir%g | |
18051 | s%@infodir@%$infodir%g | |
18052 | s%@mandir@%$mandir%g | |
18053 | s%@host@%$host%g | |
18054 | s%@host_alias@%$host_alias%g | |
18055 | s%@host_cpu@%$host_cpu%g | |
18056 | s%@host_vendor@%$host_vendor%g | |
18057 | s%@host_os@%$host_os%g | |
18058 | s%@target@%$target%g | |
18059 | s%@target_alias@%$target_alias%g | |
18060 | s%@target_cpu@%$target_cpu%g | |
18061 | s%@target_vendor@%$target_vendor%g | |
18062 | s%@target_os@%$target_os%g | |
18063 | s%@build@%$build%g | |
18064 | s%@build_alias@%$build_alias%g | |
18065 | s%@build_cpu@%$build_cpu%g | |
18066 | s%@build_vendor@%$build_vendor%g | |
18067 | s%@build_os@%$build_os%g | |
18068 | s%@CC@%$CC%g | |
18069 | s%@CPP@%$CPP%g | |
18070 | s%@CXX@%$CXX%g | |
18071 | s%@CXXCPP@%$CXXCPP%g | |
18072 | s%@RANLIB@%$RANLIB%g | |
18073 | s%@AR@%$AR%g | |
18074 | s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g | |
18075 | s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g | |
18076 | s%@INSTALL_DATA@%$INSTALL_DATA%g | |
18077 | s%@STRIP@%$STRIP%g | |
18078 | s%@YACC@%$YACC%g | |
18079 | s%@LEX@%$LEX%g | |
18080 | s%@LEXLIB@%$LEXLIB%g | |
18081 | s%@LN_S@%$LN_S%g | |
18082 | s%@GTK_CONFIG_2_0@%$GTK_CONFIG_2_0%g | |
698dcdb6 VZ |
18083 | s%@GTK_CFLAGS@%$GTK_CFLAGS%g |
18084 | s%@GTK_LIBS@%$GTK_LIBS%g | |
8168de4c | 18085 | s%@GTK_CONFIG@%$GTK_CONFIG%g |
698dcdb6 VZ |
18086 | s%@X_CFLAGS@%$X_CFLAGS%g |
18087 | s%@X_PRE_LIBS@%$X_PRE_LIBS%g | |
18088 | s%@X_LIBS@%$X_LIBS%g | |
18089 | s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g | |
18090 | s%@REZ@%$REZ%g | |
18091 | s%@DEREZ@%$DEREZ%g | |
18092 | s%@LEX_STEM@%$LEX_STEM%g | |
18093 | s%@PATH_IFS@%$PATH_IFS%g | |
18094 | s%@WX_MAJOR_VERSION_NUMBER@%$WX_MAJOR_VERSION_NUMBER%g | |
18095 | s%@WX_MINOR_VERSION_NUMBER@%$WX_MINOR_VERSION_NUMBER%g | |
18096 | s%@WX_RELEASE_NUMBER@%$WX_RELEASE_NUMBER%g | |
18097 | s%@WX_LIBRARY_NAME@%$WX_LIBRARY_NAME%g | |
18098 | s%@WX_LIBRARY_NAME_STATIC@%$WX_LIBRARY_NAME_STATIC%g | |
18099 | s%@WX_LIBRARY_NAME_SHARED@%$WX_LIBRARY_NAME_SHARED%g | |
18100 | s%@WX_LIBRARY@%$WX_LIBRARY%g | |
18101 | s%@WX_TARGET_LIBRARY@%$WX_TARGET_LIBRARY%g | |
18102 | s%@WX_LIBRARY_LINK1@%$WX_LIBRARY_LINK1%g | |
18103 | s%@WX_LIBRARY_LINK2@%$WX_LIBRARY_LINK2%g | |
18104 | s%@WX_LIBRARY_LINK3@%$WX_LIBRARY_LINK3%g | |
18105 | s%@PROGRAM_EXT@%$PROGRAM_EXT%g | |
18106 | s%@WX_LIBRARY_NAME_GL@%$WX_LIBRARY_NAME_GL%g | |
18107 | s%@WX_LIBRARY_NAME_STATIC_GL@%$WX_LIBRARY_NAME_STATIC_GL%g | |
18108 | s%@WX_LIBRARY_NAME_SHARED_GL@%$WX_LIBRARY_NAME_SHARED_GL%g | |
18109 | s%@WX_LIBRARY_GL@%$WX_LIBRARY_GL%g | |
18110 | s%@WX_TARGET_LIBRARY_GL@%$WX_TARGET_LIBRARY_GL%g | |
18111 | s%@WX_LIBRARY_LINK1_GL@%$WX_LIBRARY_LINK1_GL%g | |
18112 | s%@WX_LIBRARY_LINK2_GL@%$WX_LIBRARY_LINK2_GL%g | |
18113 | s%@WX_LIBRARY_LINK3_GL@%$WX_LIBRARY_LINK3_GL%g | |
18114 | s%@WX_ALL@%$WX_ALL%g | |
18115 | s%@WX_ALL_INSTALLED@%$WX_ALL_INSTALLED%g | |
18116 | s%@SHARED_LD@%$SHARED_LD%g | |
18117 | s%@PIC_FLAG@%$PIC_FLAG%g | |
18118 | s%@DEP_INFO_FLAGS@%$DEP_INFO_FLAGS%g | |
18119 | s%@CODE_GEN_FLAGS@%$CODE_GEN_FLAGS%g | |
18120 | s%@CODE_GEN_FLAGS_CXX@%$CODE_GEN_FLAGS_CXX%g | |
18121 | s%@BURNT_LIBRARY_NAME@%$BURNT_LIBRARY_NAME%g | |
18122 | s%@BURNT_LIBRARY_NAME_GL@%$BURNT_LIBRARY_NAME_GL%g | |
18123 | s%@WX_TARGET_LIBRARY_SONAME@%$WX_TARGET_LIBRARY_SONAME%g | |
18124 | s%@WX_TARGET_LIBRARY_TYPE@%$WX_TARGET_LIBRARY_TYPE%g | |
18125 | s%@WXDEBUG_DEFINE@%$WXDEBUG_DEFINE%g | |
18126 | s%@USE_GUI@%$USE_GUI%g | |
18127 | s%@AFMINSTALL@%$AFMINSTALL%g | |
1e6feb95 | 18128 | s%@SETUPH_DIR@%$SETUPH_DIR%g |
698dcdb6 VZ |
18129 | s%@TOOLKIT@%$TOOLKIT%g |
18130 | s%@TOOLKIT_DEF@%$TOOLKIT_DEF%g | |
18131 | s%@TOOLKIT_DIR@%$TOOLKIT_DIR%g | |
18132 | s%@TOOLKIT_NAME@%$TOOLKIT_NAME%g | |
18133 | s%@TOOLKIT_INCLUDE@%$TOOLKIT_INCLUDE%g | |
1e6feb95 | 18134 | s%@TOOLKIT_VPATH@%$TOOLKIT_VPATH%g |
698dcdb6 VZ |
18135 | s%@WXCONFIG_INCLUDE@%$WXCONFIG_INCLUDE%g |
18136 | s%@ALL_OBJECTS@%$ALL_OBJECTS%g | |
18137 | s%@ALL_DEPFILES@%$ALL_DEPFILES%g | |
18138 | s%@GUIDIST@%$GUIDIST%g | |
18139 | s%@PORT_FILES@%$PORT_FILES%g | |
18140 | s%@DISTDIR@%$DISTDIR%g | |
18141 | s%@RPM_SPEC@%$RPM_SPEC%g | |
18142 | s%@RPM_FILES@%$RPM_FILES%g | |
18143 | s%@SRC_SUBDIRS@%$SRC_SUBDIRS%g | |
18144 | s%@INCLUDE_SUBDIRS@%$INCLUDE_SUBDIRS%g | |
18145 | s%@UTILS_SUBDIRS@%$UTILS_SUBDIRS%g | |
18146 | s%@DOCS_SUBDIRS@%$DOCS_SUBDIRS%g | |
18147 | s%@SAMPLES_SUBDIRS@%$SAMPLES_SUBDIRS%g | |
18148 | s%@USER_SUBDIRS@%$USER_SUBDIRS%g | |
18149 | s%@EXTRA_LIBS@%$EXTRA_LIBS%g | |
18150 | s%@OPENGL_LIBS@%$OPENGL_LIBS%g | |
18151 | s%@EXTRADEFS@%$EXTRADEFS%g | |
18152 | s%@LD_LIBS@%$LD_LIBS%g | |
18153 | s%@RCINPUTSWITCH@%$RCINPUTSWITCH%g | |
18154 | s%@RCOUTPUTSWITCH@%$RCOUTPUTSWITCH%g | |
18155 | s%@RESPROGRAM@%$RESPROGRAM%g | |
18156 | s%@RESCOMP@%$RESCOMP%g | |
18157 | s%@RESFLAGS@%$RESFLAGS%g | |
18158 | s%@REZFLAGS@%$REZFLAGS%g | |
18159 | s%@DEREZFLAGS@%$DEREZFLAGS%g | |
18160 | s%@LIBWXMACRES@%$LIBWXMACRES%g | |
18161 | s%@LIBWXMACRESCOMP@%$LIBWXMACRESCOMP%g | |
18162 | s%@DLLTOOL@%$DLLTOOL%g | |
18163 | s%@AS@%$AS%g | |
18164 | s%@NM@%$NM%g | |
18165 | s%@LD@%$LD%g | |
18166 | s%@MAKEINFO@%$MAKEINFO%g | |
18167 | s%@SET_MAKE@%$SET_MAKE%g | |
18168 | s%@subdirs@%$subdirs%g | |
1e487827 | 18169 | |
1e487827 | 18170 | CEOF |
1e487827 VS |
18171 | EOF |
18172 | ||
698dcdb6 VZ |
18173 | cat >> $CONFIG_STATUS <<\EOF |
18174 | ||
18175 | # Split the substitutions into bite-sized pieces for seds with | |
18176 | # small command number limits, like on Digital OSF/1 and HP-UX. | |
18177 | ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script. | |
18178 | ac_file=1 # Number of current file. | |
18179 | ac_beg=1 # First line for current file. | |
18180 | ac_end=$ac_max_sed_cmds # Line after last line for current file. | |
18181 | ac_more_lines=: | |
18182 | ac_sed_cmds="" | |
18183 | while $ac_more_lines; do | |
18184 | if test $ac_beg -gt 1; then | |
18185 | sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file | |
18186 | else | |
18187 | sed "${ac_end}q" conftest.subs > conftest.s$ac_file | |
18188 | fi | |
18189 | if test ! -s conftest.s$ac_file; then | |
18190 | ac_more_lines=false | |
18191 | rm -f conftest.s$ac_file | |
18192 | else | |
18193 | if test -z "$ac_sed_cmds"; then | |
18194 | ac_sed_cmds="sed -f conftest.s$ac_file" | |
10f2d63a | 18195 | else |
698dcdb6 | 18196 | ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file" |
10f2d63a | 18197 | fi |
698dcdb6 VZ |
18198 | ac_file=`expr $ac_file + 1` |
18199 | ac_beg=$ac_end | |
18200 | ac_end=`expr $ac_end + $ac_max_sed_cmds` | |
10f2d63a | 18201 | fi |
698dcdb6 VZ |
18202 | done |
18203 | if test -z "$ac_sed_cmds"; then | |
18204 | ac_sed_cmds=cat | |
18205 | fi | |
18206 | EOF | |
10f2d63a | 18207 | |
698dcdb6 VZ |
18208 | cat >> $CONFIG_STATUS <<EOF |
18209 | ||
18210 | CONFIG_FILES=\${CONFIG_FILES-"wx-config | |
18211 | src/make.env | |
18212 | src/makeprog.env | |
18213 | src/makelib.env | |
18214 | Makefile | |
18215 | "} | |
10f2d63a | 18216 | EOF |
698dcdb6 VZ |
18217 | cat >> $CONFIG_STATUS <<\EOF |
18218 | for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then | |
10f2d63a | 18219 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
698dcdb6 VZ |
18220 | case "$ac_file" in |
18221 | *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` | |
18222 | ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; | |
18223 | *) ac_file_in="${ac_file}.in" ;; | |
10f2d63a VZ |
18224 | esac |
18225 | ||
698dcdb6 | 18226 | # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories. |
1e487827 | 18227 | |
698dcdb6 VZ |
18228 | # Remove last slash and all that follows it. Not all systems have dirname. |
18229 | ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` | |
18230 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then | |
18231 | # The file is in a subdirectory. | |
18232 | test ! -d "$ac_dir" && mkdir "$ac_dir" | |
18233 | ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`" | |
10f2d63a | 18234 | # A "../" for each directory in $ac_dir_suffix. |
698dcdb6 | 18235 | ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'` |
10f2d63a VZ |
18236 | else |
18237 | ac_dir_suffix= ac_dots= | |
18238 | fi | |
18239 | ||
698dcdb6 VZ |
18240 | case "$ac_given_srcdir" in |
18241 | .) srcdir=. | |
18242 | if test -z "$ac_dots"; then top_srcdir=. | |
18243 | else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;; | |
18244 | /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;; | |
10f2d63a | 18245 | *) # Relative path. |
698dcdb6 VZ |
18246 | srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix" |
18247 | top_srcdir="$ac_dots$ac_given_srcdir" ;; | |
10f2d63a VZ |
18248 | esac |
18249 | ||
698dcdb6 VZ |
18250 | case "$ac_given_INSTALL" in |
18251 | [/$]*) INSTALL="$ac_given_INSTALL" ;; | |
18252 | *) INSTALL="$ac_dots$ac_given_INSTALL" ;; | |
10f2d63a VZ |
18253 | esac |
18254 | ||
698dcdb6 VZ |
18255 | echo creating "$ac_file" |
18256 | rm -f "$ac_file" | |
18257 | configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure." | |
18258 | case "$ac_file" in | |
18259 | *Makefile*) ac_comsub="1i\\ | |
18260 | # $configure_input" ;; | |
18261 | *) ac_comsub= ;; | |
18262 | esac | |
10f2d63a | 18263 | |
698dcdb6 VZ |
18264 | ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` |
18265 | sed -e "$ac_comsub | |
18266 | s%@configure_input@%$configure_input%g | |
18267 | s%@srcdir@%$srcdir%g | |
18268 | s%@top_srcdir@%$top_srcdir%g | |
18269 | s%@INSTALL@%$INSTALL%g | |
18270 | " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file | |
18271 | fi; done | |
18272 | rm -f conftest.s* | |
10f2d63a VZ |
18273 | |
18274 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where | |
18275 | # NAME is the cpp macro being defined and VALUE is the value it is being given. | |
18276 | # | |
18277 | # ac_d sets the value in "#define NAME VALUE" lines. | |
698dcdb6 VZ |
18278 | ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)' |
18279 | ac_dB='\([ ][ ]*\)[^ ]*%\1#\2' | |
18280 | ac_dC='\3' | |
18281 | ac_dD='%g' | |
18282 | # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE". | |
18283 | ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' | |
18284 | ac_uB='\([ ]\)%\1#\2define\3' | |
10f2d63a | 18285 | ac_uC=' ' |
698dcdb6 VZ |
18286 | ac_uD='\4%g' |
18287 | # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE". | |
18288 | ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' | |
18289 | ac_eB='$%\1#\2define\3' | |
18290 | ac_eC=' ' | |
18291 | ac_eD='%g' | |
10f2d63a | 18292 | |
698dcdb6 VZ |
18293 | if test "${CONFIG_HEADERS+set}" != set; then |
18294 | EOF | |
18295 | cat >> $CONFIG_STATUS <<EOF | |
18296 | CONFIG_HEADERS="setup.h:setup.h.in" | |
18297 | EOF | |
18298 | cat >> $CONFIG_STATUS <<\EOF | |
18299 | fi | |
18300 | for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then | |
10f2d63a | 18301 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
698dcdb6 VZ |
18302 | case "$ac_file" in |
18303 | *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` | |
18304 | ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; | |
18305 | *) ac_file_in="${ac_file}.in" ;; | |
10f2d63a VZ |
18306 | esac |
18307 | ||
698dcdb6 VZ |
18308 | echo creating $ac_file |
18309 | ||
18310 | rm -f conftest.frag conftest.in conftest.out | |
18311 | ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` | |
18312 | cat $ac_file_inputs > conftest.in | |
18313 | ||
18314 | EOF | |
18315 | ||
18316 | # Transform confdefs.h into a sed script conftest.vals that substitutes | |
18317 | # the proper values into config.h.in to produce config.h. And first: | |
18318 | # Protect against being on the right side of a sed subst in config.status. | |
18319 | # Protect against being in an unquoted here document in config.status. | |
18320 | rm -f conftest.vals | |
18321 | cat > conftest.hdr <<\EOF | |
18322 | s/[\\&%]/\\&/g | |
18323 | s%[\\$`]%\\&%g | |
18324 | s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp | |
18325 | s%ac_d%ac_u%gp | |
18326 | s%ac_u%ac_e%gp | |
18327 | EOF | |
18328 | sed -n -f conftest.hdr confdefs.h > conftest.vals | |
18329 | rm -f conftest.hdr | |
10f2d63a VZ |
18330 | |
18331 | # This sed command replaces #undef with comments. This is necessary, for | |
18332 | # example, in the case of _POSIX_SOURCE, which is predefined and required | |
18333 | # on some systems where configure will not decide to define it. | |
698dcdb6 VZ |
18334 | cat >> conftest.vals <<\EOF |
18335 | s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */% | |
10f2d63a VZ |
18336 | EOF |
18337 | ||
698dcdb6 VZ |
18338 | # Break up conftest.vals because some shells have a limit on |
18339 | # the size of here documents, and old seds have small limits too. | |
10f2d63a VZ |
18340 | |
18341 | rm -f conftest.tail | |
698dcdb6 | 18342 | while : |
10f2d63a | 18343 | do |
698dcdb6 VZ |
18344 | ac_lines=`grep -c . conftest.vals` |
18345 | # grep -c gives empty output for an empty file on some AIX systems. | |
18346 | if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi | |
18347 | # Write a limited-size here document to conftest.frag. | |
18348 | echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS | |
18349 | sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS | |
10f2d63a | 18350 | echo 'CEOF |
698dcdb6 VZ |
18351 | sed -f conftest.frag conftest.in > conftest.out |
18352 | rm -f conftest.in | |
18353 | mv conftest.out conftest.in | |
18354 | ' >> $CONFIG_STATUS | |
18355 | sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail | |
18356 | rm -f conftest.vals | |
18357 | mv conftest.tail conftest.vals | |
10f2d63a | 18358 | done |
698dcdb6 VZ |
18359 | rm -f conftest.vals |
18360 | ||
18361 | cat >> $CONFIG_STATUS <<\EOF | |
18362 | rm -f conftest.frag conftest.h | |
18363 | echo "/* $ac_file. Generated automatically by configure. */" > conftest.h | |
18364 | cat conftest.in >> conftest.h | |
18365 | rm -f conftest.in | |
18366 | if cmp -s $ac_file conftest.h 2>/dev/null; then | |
18367 | echo "$ac_file is unchanged" | |
18368 | rm -f conftest.h | |
10f2d63a | 18369 | else |
698dcdb6 VZ |
18370 | # Remove last slash and all that follows it. Not all systems have dirname. |
18371 | ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` | |
10f2d63a | 18372 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then |
698dcdb6 VZ |
18373 | # The file is in a subdirectory. |
18374 | test ! -d "$ac_dir" && mkdir "$ac_dir" | |
10f2d63a | 18375 | fi |
698dcdb6 VZ |
18376 | rm -f $ac_file |
18377 | mv conftest.h $ac_file | |
10f2d63a | 18378 | fi |
698dcdb6 VZ |
18379 | fi; done |
18380 | ||
10f2d63a | 18381 | EOF |
698dcdb6 | 18382 | cat >> $CONFIG_STATUS <<EOF |
10f2d63a | 18383 | |
1e6feb95 | 18384 | SETUPH_DIR="${SETUPH_DIR}" |
698dcdb6 VZ |
18385 | TOOLKIT_NAME="${TOOLKIT_NAME}" |
18386 | LN_S="${LN_S}" | |
18387 | ||
18388 | ||
18389 | EOF | |
18390 | cat >> $CONFIG_STATUS <<\EOF | |
10f2d63a | 18391 | |
6ef41520 | 18392 | if test ! -f wx${TOOLKIT_NAME}-config; then |
991a5759 VZ |
18393 | chmod +x wx-config |
18394 | mv wx-config wx${TOOLKIT_NAME}-config | |
18395 | ${LN_S} wx${TOOLKIT_NAME}-config wx-config | |
18396 | fi | |
665bbe97 | 18397 | |
698dcdb6 | 18398 | |
00cf1208 RR |
18399 | if test ! -d lib; then |
18400 | mkdir lib | |
18401 | fi | |
18402 | if test ! -d lib/wx; then | |
18403 | mkdir lib/wx | |
18404 | fi | |
18405 | if test ! -d lib/wx/include; then | |
18406 | mkdir lib/wx/include | |
18407 | fi | |
18408 | if test ! -d lib/wx/include/wx; then | |
18409 | mkdir lib/wx/include/wx | |
18410 | fi | |
f6bcfd97 BP |
18411 | if test ! -d lib/wx/include/wx/${TOOLKIT_NAME}; then |
18412 | mkdir lib/wx/include/wx/${TOOLKIT_NAME} | |
00cf1208 RR |
18413 | fi |
18414 | if test -f setup.h; then | |
066b00aa | 18415 | cp -fp setup.h lib/wx/include/wx/${TOOLKIT_NAME}/setup.h |
00cf1208 | 18416 | fi |
07eb77a6 | 18417 | |
698dcdb6 | 18418 | |
10f2d63a VZ |
18419 | if test ! -d include; then |
18420 | mkdir include | |
18421 | fi | |
18422 | if test ! -d include/wx; then | |
18423 | mkdir include/wx | |
18424 | fi | |
1e6feb95 VZ |
18425 | if test ! -d include/wx/${SETUPH_DIR}; then |
18426 | mkdir include/wx/${SETUPH_DIR} | |
10f2d63a | 18427 | fi |
afc31813 | 18428 | if test -f setup.h; then |
1e6feb95 | 18429 | cp -fp setup.h include/wx/${SETUPH_DIR}/setup.h |
afc31813 | 18430 | fi |
665bbe97 | 18431 | |
698dcdb6 VZ |
18432 | |
18433 | exit 0 | |
10f2d63a VZ |
18434 | EOF |
18435 | chmod +x $CONFIG_STATUS | |
698dcdb6 VZ |
18436 | rm -fr confdefs* $ac_clean_files |
18437 | test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1 | |
10f2d63a | 18438 | |
2224580a VZ |
18439 | if test "$no_recursion" != yes; then |
18440 | ||
18441 | # Remove --cache-file and --srcdir arguments so they do not pile up. | |
18442 | ac_sub_configure_args= | |
18443 | ac_prev= | |
18444 | for ac_arg in $ac_configure_args; do | |
18445 | if test -n "$ac_prev"; then | |
18446 | ac_prev= | |
18447 | continue | |
18448 | fi | |
698dcdb6 | 18449 | case "$ac_arg" in |
2224580a VZ |
18450 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
18451 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
18452 | ac_prev=cache_file ;; | |
18453 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
698dcdb6 | 18454 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
2224580a VZ |
18455 | ;; |
18456 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
18457 | ac_prev=srcdir ;; | |
18458 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
18459 | ;; | |
18460 | *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;; | |
18461 | esac | |
18462 | done | |
18463 | ||
698dcdb6 | 18464 | for ac_config_dir in demos samples utils contrib; do |
2224580a VZ |
18465 | |
18466 | # Do not complain, so a configure script can configure whichever | |
18467 | # parts of a large source tree are present. | |
698dcdb6 VZ |
18468 | if test ! -d $srcdir/$ac_config_dir; then |
18469 | continue | |
18470 | fi | |
18471 | ||
18472 | echo configuring in $ac_config_dir | |
2224580a | 18473 | |
698dcdb6 | 18474 | case "$srcdir" in |
2224580a VZ |
18475 | .) ;; |
18476 | *) | |
698dcdb6 VZ |
18477 | if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :; |
18478 | else | |
18479 | { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; } | |
18480 | fi | |
18481 | ;; | |
2224580a VZ |
18482 | esac |
18483 | ||
18484 | ac_popdir=`pwd` | |
698dcdb6 | 18485 | cd $ac_config_dir |
2224580a | 18486 | |
698dcdb6 VZ |
18487 | # A "../" for each directory in /$ac_config_dir. |
18488 | ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'` | |
2224580a | 18489 | |
698dcdb6 | 18490 | case "$srcdir" in |
2224580a VZ |
18491 | .) # No --srcdir option. We are building in place. |
18492 | ac_sub_srcdir=$srcdir ;; | |
698dcdb6 VZ |
18493 | /*) # Absolute path. |
18494 | ac_sub_srcdir=$srcdir/$ac_config_dir ;; | |
2224580a | 18495 | *) # Relative path. |
698dcdb6 | 18496 | ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;; |
2224580a VZ |
18497 | esac |
18498 | ||
18499 | # Check for guested configure; otherwise get Cygnus style configure. | |
698dcdb6 VZ |
18500 | if test -f $ac_sub_srcdir/configure; then |
18501 | ac_sub_configure=$ac_sub_srcdir/configure | |
2224580a VZ |
18502 | elif test -f $ac_sub_srcdir/configure.in; then |
18503 | ac_sub_configure=$ac_configure | |
18504 | else | |
698dcdb6 | 18505 | echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2 |
2224580a VZ |
18506 | ac_sub_configure= |
18507 | fi | |
18508 | ||
18509 | # The recursion is here. | |
18510 | if test -n "$ac_sub_configure"; then | |
698dcdb6 | 18511 | |
2224580a | 18512 | # Make the cache file name correct relative to the subdirectory. |
698dcdb6 VZ |
18513 | case "$cache_file" in |
18514 | /*) ac_sub_cache_file=$cache_file ;; | |
2224580a | 18515 | *) # Relative path. |
698dcdb6 | 18516 | ac_sub_cache_file="$ac_dots$cache_file" ;; |
2224580a | 18517 | esac |
698dcdb6 VZ |
18518 | case "$ac_given_INSTALL" in |
18519 | [/$]*) INSTALL="$ac_given_INSTALL" ;; | |
18520 | *) INSTALL="$ac_dots$ac_given_INSTALL" ;; | |
18521 | esac | |
2224580a | 18522 | |
698dcdb6 | 18523 | echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir" |
2224580a | 18524 | # The eval makes quoting arguments work. |
698dcdb6 VZ |
18525 | if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir |
18526 | then : | |
18527 | else | |
18528 | { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; } | |
18529 | fi | |
2224580a VZ |
18530 | fi |
18531 | ||
18532 | cd $ac_popdir | |
18533 | done | |
18534 | fi | |
18535 | ||
698dcdb6 | 18536 |