]>
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)" |
698dcdb6 | 92 | ac_help="$ac_help |
8168de4c | 93 | --with-zlib use zlib for LZW compression" |
698dcdb6 | 94 | ac_help="$ac_help |
8168de4c | 95 | --with-odbc use the IODBC and wxODBC classes" |
698dcdb6 | 96 | ac_help="$ac_help |
8168de4c | 97 | --enable-shared create shared library code" |
698dcdb6 | 98 | ac_help="$ac_help |
8168de4c | 99 | --enable-burnt_name create set name in shared library " |
698dcdb6 | 100 | ac_help="$ac_help |
8168de4c | 101 | --enable-optimise create optimised code" |
698dcdb6 | 102 | ac_help="$ac_help |
8168de4c | 103 | --enable-debug same as debug_flag and debug_info" |
698dcdb6 | 104 | ac_help="$ac_help |
8168de4c | 105 | --enable-debug_flag set __WXDEBUG__ flag (recommended for developers!)" |
698dcdb6 | 106 | ac_help="$ac_help |
8168de4c | 107 | --enable-debug_info create code with debugging information" |
698dcdb6 | 108 | ac_help="$ac_help |
8168de4c | 109 | --enable-debug_gdb create code with extra GDB debugging information" |
698dcdb6 | 110 | ac_help="$ac_help |
8168de4c | 111 | --enable-debug_cntxt use wxDebugContext" |
698dcdb6 | 112 | ac_help="$ac_help |
8168de4c | 113 | --enable-mem_tracing create code with memory tracing" |
698dcdb6 | 114 | ac_help="$ac_help |
8168de4c | 115 | --enable-profile create code with profiling information" |
698dcdb6 | 116 | ac_help="$ac_help |
8168de4c | 117 | --enable-no_rtti create code without RTTI information" |
698dcdb6 | 118 | ac_help="$ac_help |
8168de4c | 119 | --enable-no_exceptions create code without exceptions information" |
698dcdb6 | 120 | ac_help="$ac_help |
8168de4c | 121 | --enable-permissive compile code disregarding strict ANSI" |
698dcdb6 | 122 | ac_help="$ac_help |
8168de4c | 123 | --enable-no_deps create code without dependency information" |
54276ccf VZ |
124 | ac_help="$ac_help |
125 | --enable-compat20 enable wxWin 2.0 compatibility" | |
126 | ac_help="$ac_help | |
127 | --enable-compat22 enable wxWin 2.2 compatibility" | |
698dcdb6 | 128 | ac_help="$ac_help |
8168de4c | 129 | --enable-intl use internationalization system" |
698dcdb6 | 130 | ac_help="$ac_help |
8168de4c | 131 | --enable-config use wxConfig (and derived) classes" |
698dcdb6 | 132 | ac_help="$ac_help |
8168de4c | 133 | --enable-sockets use socket/network classes" |
698dcdb6 | 134 | ac_help="$ac_help |
8168de4c | 135 | --enable-ipc use interprocess communication (wxSocket etc.)" |
698dcdb6 | 136 | ac_help="$ac_help |
8168de4c | 137 | --enable-cmdline use wxCmdLineParser class" |
1e6feb95 | 138 | ac_help="$ac_help |
8168de4c | 139 | --enable-datetime use wxDateTime class" |
1e6feb95 | 140 | ac_help="$ac_help |
8168de4c | 141 | --enable-timedate use obsolete wxDate/wxTime classes" |
1e6feb95 | 142 | ac_help="$ac_help |
8168de4c | 143 | --enable-stopwatch use wxStopWatch class" |
1e6feb95 | 144 | ac_help="$ac_help |
8168de4c | 145 | --enable-dialupman use dialup network classes" |
698dcdb6 | 146 | ac_help="$ac_help |
8168de4c | 147 | --enable-apple_ieee use the Apple IEEE codec" |
698dcdb6 | 148 | ac_help="$ac_help |
8168de4c | 149 | --enable-timer use wxTimer class" |
698dcdb6 | 150 | ac_help="$ac_help |
8168de4c | 151 | --enable-wave use wxWave class" |
698dcdb6 | 152 | ac_help="$ac_help |
8168de4c | 153 | --enable-fraction use wxFraction class" |
698dcdb6 | 154 | ac_help="$ac_help |
8168de4c | 155 | --enable-dynlib use wxLibrary class for DLL loading" |
698dcdb6 | 156 | ac_help="$ac_help |
8168de4c | 157 | --enable-longlong use wxLongLong class" |
698dcdb6 | 158 | ac_help="$ac_help |
8168de4c | 159 | --enable-geometry use geometry class" |
698dcdb6 | 160 | ac_help="$ac_help |
8168de4c | 161 | --enable-log use logging system" |
698dcdb6 | 162 | ac_help="$ac_help |
8168de4c | 163 | --enable-streams use wxStream etc classes" |
698dcdb6 | 164 | ac_help="$ac_help |
8168de4c | 165 | --enable-file use wxFile classes" |
698dcdb6 | 166 | ac_help="$ac_help |
8168de4c | 167 | --enable-ffile use wxFFile classes" |
1e6feb95 | 168 | ac_help="$ac_help |
8168de4c | 169 | --enable-textfile use wxTextFile classes" |
698dcdb6 | 170 | ac_help="$ac_help |
8168de4c | 171 | --enable-fontmap use font encodings conversion classes" |
1e6feb95 | 172 | ac_help="$ac_help |
8168de4c | 173 | --enable-unicode compile wxString with Unicode support" |
698dcdb6 | 174 | ac_help="$ac_help |
8168de4c | 175 | --enable-wcsrtombs use wcsrtombs instead of buggy (GNU libc1/Linux libc5) wcstombs" |
698dcdb6 | 176 | ac_help="$ac_help |
8168de4c | 177 | --enable-wxprintfv use wxWindows implementation of vprintf()" |
698dcdb6 | 178 | ac_help="$ac_help |
8168de4c | 179 | --enable-std_iostreams use standard C++ stream classes" |
698dcdb6 | 180 | ac_help="$ac_help |
8168de4c | 181 | --enable-filesystem use virtual file systems classes" |
698dcdb6 | 182 | ac_help="$ac_help |
8168de4c | 183 | --enable-fs_inet use virtual HTTP/FTP filesystems" |
698dcdb6 | 184 | ac_help="$ac_help |
8168de4c | 185 | --enable-fs_zip use virtual ZIP filesystems" |
698dcdb6 | 186 | ac_help="$ac_help |
8168de4c | 187 | --enable-zipstream use wxZipInputStream" |
698dcdb6 | 188 | ac_help="$ac_help |
8168de4c | 189 | --enable-catch_segvs catch signals and pass them to wxApp::OnFatalException" |
698dcdb6 | 190 | ac_help="$ac_help |
8168de4c | 191 | --enable-snglinst use wxSingleInstanceChecker class" |
698dcdb6 | 192 | ac_help="$ac_help |
8168de4c | 193 | --enable-mimetypes use wxMimeTypesManager" |
1e6feb95 | 194 | ac_help="$ac_help |
8168de4c | 195 | --enable-threads use threads" |
698dcdb6 | 196 | ac_help="$ac_help |
8168de4c | 197 | --enable-serial use class serialization" |
698dcdb6 | 198 | ac_help="$ac_help |
8168de4c | 199 | --enable-docview use document view architecture" |
698dcdb6 | 200 | ac_help="$ac_help |
8168de4c | 201 | --enable-help use help (using external browser at present)" |
698dcdb6 | 202 | ac_help="$ac_help |
8168de4c | 203 | --enable-constraints use layout-constraints system" |
698dcdb6 | 204 | ac_help="$ac_help |
8168de4c | 205 | --enable-printarch use printing architecture" |
698dcdb6 | 206 | ac_help="$ac_help |
8168de4c | 207 | --enable-mdi use multiple document interface architecture" |
698dcdb6 | 208 | ac_help="$ac_help |
8168de4c | 209 | --enable-loggui use standard GUI logger" |
1e6feb95 | 210 | ac_help="$ac_help |
8168de4c | 211 | --enable-logwin use wxLogWindow" |
1e6feb95 | 212 | ac_help="$ac_help |
8168de4c | 213 | --enable-postscript use wxPostscriptDC device context (default for gtk+)" |
698dcdb6 | 214 | ac_help="$ac_help |
8168de4c | 215 | --enable-prologio use Prolog IO library" |
698dcdb6 | 216 | ac_help="$ac_help |
8168de4c | 217 | --enable-resources use wxWindows resources" |
698dcdb6 | 218 | ac_help="$ac_help |
8168de4c | 219 | --enable-xresources use X resources for save (default for gtk+)" |
698dcdb6 | 220 | ac_help="$ac_help |
8168de4c | 221 | --enable-clipboard use wxClipboard classes" |
698dcdb6 | 222 | ac_help="$ac_help |
8168de4c | 223 | --enable-dnd use Drag'n'Drop classes" |
698dcdb6 | 224 | ac_help="$ac_help |
8168de4c | 225 | --enable-metafile use win32 metafiles" |
698dcdb6 | 226 | ac_help="$ac_help |
8168de4c | 227 | --enable-wxtree make wxTree library" |
698dcdb6 | 228 | ac_help="$ac_help |
8168de4c | 229 | --enable-controls use all usual controls" |
698dcdb6 | 230 | ac_help="$ac_help |
8168de4c | 231 | --enable-accel use accelerators" |
698dcdb6 | 232 | ac_help="$ac_help |
8168de4c | 233 | --enable-button use wxButton class" |
698dcdb6 | 234 | ac_help="$ac_help |
8168de4c | 235 | --enable-bmpbutton use wxBitmapButton class" |
698dcdb6 | 236 | ac_help="$ac_help |
8168de4c | 237 | --enable-calendar use wxCalendarCtrl class" |
1e6feb95 | 238 | ac_help="$ac_help |
8168de4c | 239 | --enable-caret use wxCaret class" |
1e6feb95 | 240 | ac_help="$ac_help |
8168de4c | 241 | --enable-checkbox use wxCheckBox class" |
698dcdb6 | 242 | ac_help="$ac_help |
8168de4c | 243 | --enable-checklst use wxCheckListBox (listbox with checkboxes) class" |
698dcdb6 | 244 | ac_help="$ac_help |
8168de4c | 245 | --enable-choice use wxChoice class" |
698dcdb6 | 246 | ac_help="$ac_help |
8168de4c | 247 | --enable-combobox use wxComboBox classes" |
698dcdb6 | 248 | ac_help="$ac_help |
8168de4c | 249 | --enable-gauge use wxGauge class" |
698dcdb6 | 250 | ac_help="$ac_help |
8168de4c | 251 | --enable-grid use wxGrid class" |
698dcdb6 | 252 | ac_help="$ac_help |
8168de4c | 253 | --enable-newgrid use new wxGrid class" |
698dcdb6 | 254 | ac_help="$ac_help |
8168de4c | 255 | --enable-imaglist use wxImageList class" |
698dcdb6 | 256 | ac_help="$ac_help |
8168de4c | 257 | --enable-listbox use wxListBox class" |
698dcdb6 | 258 | ac_help="$ac_help |
8168de4c | 259 | --enable-listctrl use wxListCtrl class" |
698dcdb6 | 260 | ac_help="$ac_help |
8168de4c | 261 | --enable-notebook use wxNotebook class" |
698dcdb6 | 262 | ac_help="$ac_help |
8168de4c | 263 | --enable-radiobox use wxRadioBox class" |
698dcdb6 | 264 | ac_help="$ac_help |
8168de4c | 265 | --enable-radiobtn use wxRadioButton class" |
698dcdb6 | 266 | ac_help="$ac_help |
8168de4c | 267 | --enable-sash use wxSashWindow class" |
698dcdb6 | 268 | ac_help="$ac_help |
8168de4c | 269 | --enable-scrollbar use wxScrollBar class and scrollable windows" |
698dcdb6 | 270 | ac_help="$ac_help |
8168de4c | 271 | --enable-slider use wxSlider class" |
698dcdb6 | 272 | ac_help="$ac_help |
8168de4c | 273 | --enable-spinbtn use wxSpinButton class" |
698dcdb6 | 274 | ac_help="$ac_help |
8168de4c | 275 | --enable-spinctrl use wxSpinCtrl class" |
698dcdb6 | 276 | ac_help="$ac_help |
8168de4c | 277 | --enable-splitter use wxSplitterWindow class" |
698dcdb6 | 278 | ac_help="$ac_help |
8168de4c | 279 | --enable-statbmp use wxStaticBitmap class" |
698dcdb6 | 280 | ac_help="$ac_help |
8168de4c | 281 | --enable-statbox use wxStaticBox class" |
698dcdb6 | 282 | ac_help="$ac_help |
8168de4c | 283 | --enable-statline use wxStaticLine class" |
698dcdb6 | 284 | ac_help="$ac_help |
8168de4c | 285 | --enable-stattext use wxStaticText class" |
1e6feb95 | 286 | ac_help="$ac_help |
8168de4c | 287 | --enable-statusbar use wxStatusBar class" |
698dcdb6 | 288 | ac_help="$ac_help |
8168de4c | 289 | --enable-tabdialog use wxTabControl class" |
698dcdb6 | 290 | ac_help="$ac_help |
8168de4c | 291 | --enable-textctrl use wxTextCtrl class" |
1e6feb95 | 292 | ac_help="$ac_help |
8168de4c | 293 | --enable-togglebtn use wxToggleButton class" |
698dcdb6 | 294 | ac_help="$ac_help |
8168de4c | 295 | --enable-toolbar use wxToolBar class" |
698dcdb6 | 296 | ac_help="$ac_help |
8168de4c | 297 | --enable-tbarnative use native wxToolBar class" |
698dcdb6 | 298 | ac_help="$ac_help |
8168de4c | 299 | --enable-tbarsmpl use wxToolBarSimple class" |
698dcdb6 | 300 | ac_help="$ac_help |
8168de4c | 301 | --enable-treectrl use wxTreeCtrl class" |
698dcdb6 | 302 | ac_help="$ac_help |
8168de4c | 303 | --enable-commondlg use common dialogs (wxDirDialog, wxProgressDialog, wxTextDialog, ...)" |
698dcdb6 | 304 | ac_help="$ac_help |
8168de4c | 305 | --enable-choicedlg use wxChoiceDialog" |
1e6feb95 | 306 | ac_help="$ac_help |
8168de4c | 307 | --enable-coldlg use wxColourDialog" |
1e6feb95 | 308 | ac_help="$ac_help |
8168de4c | 309 | --enable-filedlg use wxFileDialog" |
1e6feb95 | 310 | ac_help="$ac_help |
8168de4c | 311 | --enable-fontdlg use wxFontDialog" |
1e6feb95 | 312 | ac_help="$ac_help |
8168de4c | 313 | --enable-dirdlg use wxDirDialog" |
698dcdb6 | 314 | ac_help="$ac_help |
8168de4c | 315 | --enable-msgdlg use wxMessageDialog" |
1e6feb95 | 316 | ac_help="$ac_help |
8168de4c | 317 | --enable-numberdlg use wxNumberEntryDialog" |
1e6feb95 | 318 | ac_help="$ac_help |
8168de4c | 319 | --enable-textdlg use wxTextDialog" |
698dcdb6 | 320 | ac_help="$ac_help |
8168de4c | 321 | --enable-tipdlg use startup tips" |
698dcdb6 | 322 | ac_help="$ac_help |
8168de4c | 323 | --enable-progressdlg use wxProgressDialog" |
698dcdb6 | 324 | ac_help="$ac_help |
8168de4c | 325 | --enable-menus use wxMenu/wxMenuBar/wxMenuItem classes" |
1e6feb95 | 326 | ac_help="$ac_help |
8168de4c | 327 | --enable-miniframe use wxMiniFrame class" |
698dcdb6 | 328 | ac_help="$ac_help |
8168de4c | 329 | --enable-html use wxHTML sub-library" |
698dcdb6 | 330 | ac_help="$ac_help |
8168de4c | 331 | --enable-tooltips use wxToolTip class" |
698dcdb6 | 332 | ac_help="$ac_help |
8168de4c | 333 | --enable-splines use spline drawing code" |
698dcdb6 | 334 | ac_help="$ac_help |
8168de4c | 335 | --enable-validators use wxValidator and derived classes" |
698dcdb6 | 336 | ac_help="$ac_help |
8168de4c | 337 | --enable-busyinfo use wxBusyInfo" |
698dcdb6 | 338 | ac_help="$ac_help |
8168de4c | 339 | --enable-joystick compile in joystick support (Linux only)" |
698dcdb6 | 340 | ac_help="$ac_help |
8168de4c | 341 | --enable-metafiles use wxMetaFile (Windows only)" |
1e6feb95 | 342 | ac_help="$ac_help |
8168de4c | 343 | --enable-image use wxImage class" |
698dcdb6 | 344 | ac_help="$ac_help |
8168de4c | 345 | --enable-gif use gif images (GIF file format)" |
698dcdb6 | 346 | ac_help="$ac_help |
8168de4c | 347 | --enable-pcx use pcx images (PCX file format)" |
698dcdb6 | 348 | ac_help="$ac_help |
8168de4c | 349 | --enable-pnm use pnm images (PNM file format)" |
698dcdb6 | 350 | ac_help="$ac_help |
8168de4c | 351 | --enable-xpm use xpm images (XPM file format)" |
698dcdb6 VZ |
352 | ac_help="$ac_help |
353 | --with-gtk-prefix=PFX Prefix where GTK is installed (optional)" | |
354 | ac_help="$ac_help | |
355 | --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)" | |
356 | ac_help="$ac_help | |
357 | --disable-gtktest Do not try to compile and run a test GTK program" | |
358 | ac_help="$ac_help | |
359 | --with-x use the X Window System" | |
10f2d63a VZ |
360 | |
361 | # Initialize some variables set by options. | |
362 | # The variables have the same names as the options, with | |
363 | # dashes changed to underlines. | |
698dcdb6 VZ |
364 | build=NONE |
365 | cache_file=./config.cache | |
10f2d63a | 366 | exec_prefix=NONE |
698dcdb6 | 367 | host=NONE |
10f2d63a | 368 | no_create= |
698dcdb6 | 369 | nonopt=NONE |
10f2d63a VZ |
370 | no_recursion= |
371 | prefix=NONE | |
372 | program_prefix=NONE | |
373 | program_suffix=NONE | |
374 | program_transform_name=s,x,x, | |
375 | silent= | |
376 | site= | |
377 | srcdir= | |
698dcdb6 | 378 | target=NONE |
10f2d63a VZ |
379 | verbose= |
380 | x_includes=NONE | |
381 | x_libraries=NONE | |
382 | bindir='${exec_prefix}/bin' | |
383 | sbindir='${exec_prefix}/sbin' | |
384 | libexecdir='${exec_prefix}/libexec' | |
385 | datadir='${prefix}/share' | |
386 | sysconfdir='${prefix}/etc' | |
387 | sharedstatedir='${prefix}/com' | |
388 | localstatedir='${prefix}/var' | |
389 | libdir='${exec_prefix}/lib' | |
390 | includedir='${prefix}/include' | |
391 | oldincludedir='/usr/include' | |
392 | infodir='${prefix}/info' | |
393 | mandir='${prefix}/man' | |
394 | ||
698dcdb6 VZ |
395 | # Initialize some other variables. |
396 | subdirs= | |
397 | MFLAGS= MAKEFLAGS= | |
398 | SHELL=${CONFIG_SHELL-/bin/sh} | |
399 | # Maximum number of lines to put in a shell here document. | |
400 | ac_max_here_lines=12 | |
10f2d63a VZ |
401 | |
402 | ac_prev= | |
403 | for ac_option | |
404 | do | |
698dcdb6 | 405 | |
10f2d63a VZ |
406 | # If the previous option needs an argument, assign it. |
407 | if test -n "$ac_prev"; then | |
408 | eval "$ac_prev=\$ac_option" | |
409 | ac_prev= | |
410 | continue | |
411 | fi | |
412 | ||
698dcdb6 VZ |
413 | case "$ac_option" in |
414 | -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;; | |
415 | *) ac_optarg= ;; | |
416 | esac | |
10f2d63a VZ |
417 | |
418 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
419 | ||
698dcdb6 | 420 | case "$ac_option" in |
10f2d63a VZ |
421 | |
422 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
423 | ac_prev=bindir ;; | |
424 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
698dcdb6 | 425 | bindir="$ac_optarg" ;; |
10f2d63a VZ |
426 | |
427 | -build | --build | --buil | --bui | --bu) | |
698dcdb6 | 428 | ac_prev=build ;; |
10f2d63a | 429 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
698dcdb6 | 430 | build="$ac_optarg" ;; |
10f2d63a VZ |
431 | |
432 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
433 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
434 | ac_prev=cache_file ;; | |
435 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
436 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
698dcdb6 | 437 | cache_file="$ac_optarg" ;; |
10f2d63a VZ |
438 | |
439 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da) | |
440 | ac_prev=datadir ;; | |
441 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ | |
442 | | --da=*) | |
698dcdb6 | 443 | datadir="$ac_optarg" ;; |
10f2d63a VZ |
444 | |
445 | -disable-* | --disable-*) | |
698dcdb6 | 446 | ac_feature=`echo $ac_option|sed -e 's/-*disable-//'` |
10f2d63a | 447 | # Reject names that are not valid shell variable names. |
698dcdb6 VZ |
448 | if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then |
449 | { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } | |
450 | fi | |
451 | ac_feature=`echo $ac_feature| sed 's/-/_/g'` | |
452 | eval "enable_${ac_feature}=no" ;; | |
10f2d63a VZ |
453 | |
454 | -enable-* | --enable-*) | |
698dcdb6 | 455 | ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'` |
10f2d63a | 456 | # Reject names that are not valid shell variable names. |
698dcdb6 VZ |
457 | if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then |
458 | { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } | |
459 | fi | |
460 | ac_feature=`echo $ac_feature| sed 's/-/_/g'` | |
461 | case "$ac_option" in | |
462 | *=*) ;; | |
10f2d63a VZ |
463 | *) ac_optarg=yes ;; |
464 | esac | |
698dcdb6 | 465 | eval "enable_${ac_feature}='$ac_optarg'" ;; |
10f2d63a VZ |
466 | |
467 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
468 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
469 | | --exec | --exe | --ex) | |
470 | ac_prev=exec_prefix ;; | |
471 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
472 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
473 | | --exec=* | --exe=* | --ex=*) | |
698dcdb6 | 474 | exec_prefix="$ac_optarg" ;; |
10f2d63a VZ |
475 | |
476 | -gas | --gas | --ga | --g) | |
477 | # Obsolete; use --with-gas. | |
478 | with_gas=yes ;; | |
479 | ||
698dcdb6 VZ |
480 | -help | --help | --hel | --he) |
481 | # Omit some internal or obsolete options to make the list less imposing. | |
482 | # This message is too long to be a string in the A/UX 3.1 sh. | |
483 | cat << EOF | |
484 | Usage: configure [options] [host] | |
485 | Options: [defaults in brackets after descriptions] | |
486 | Configuration: | |
487 | --cache-file=FILE cache test results in FILE | |
488 | --help print this message | |
489 | --no-create do not create output files | |
490 | --quiet, --silent do not print \`checking...' messages | |
491 | --version print the version of autoconf that created configure | |
492 | Directory and file names: | |
493 | --prefix=PREFIX install architecture-independent files in PREFIX | |
494 | [$ac_default_prefix] | |
495 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX | |
496 | [same as prefix] | |
497 | --bindir=DIR user executables in DIR [EPREFIX/bin] | |
498 | --sbindir=DIR system admin executables in DIR [EPREFIX/sbin] | |
499 | --libexecdir=DIR program executables in DIR [EPREFIX/libexec] | |
500 | --datadir=DIR read-only architecture-independent data in DIR | |
501 | [PREFIX/share] | |
502 | --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc] | |
503 | --sharedstatedir=DIR modifiable architecture-independent data in DIR | |
504 | [PREFIX/com] | |
505 | --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var] | |
506 | --libdir=DIR object code libraries in DIR [EPREFIX/lib] | |
507 | --includedir=DIR C header files in DIR [PREFIX/include] | |
508 | --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include] | |
509 | --infodir=DIR info documentation in DIR [PREFIX/info] | |
510 | --mandir=DIR man documentation in DIR [PREFIX/man] | |
511 | --srcdir=DIR find the sources in DIR [configure dir or ..] | |
512 | --program-prefix=PREFIX prepend PREFIX to installed program names | |
513 | --program-suffix=SUFFIX append SUFFIX to installed program names | |
514 | --program-transform-name=PROGRAM | |
515 | run sed PROGRAM on installed program names | |
516 | EOF | |
517 | cat << EOF | |
518 | Host type: | |
519 | --build=BUILD configure for building on BUILD [BUILD=HOST] | |
520 | --host=HOST configure for HOST [guessed] | |
521 | --target=TARGET configure for TARGET [TARGET=HOST] | |
522 | Features and packages: | |
523 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) | |
524 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
525 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
526 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
527 | --x-includes=DIR X include files are in DIR | |
528 | --x-libraries=DIR X library files are in DIR | |
529 | EOF | |
530 | if test -n "$ac_help"; then | |
531 | echo "--enable and --with options recognized:$ac_help" | |
532 | fi | |
533 | exit 0 ;; | |
10f2d63a VZ |
534 | |
535 | -host | --host | --hos | --ho) | |
698dcdb6 | 536 | ac_prev=host ;; |
10f2d63a | 537 | -host=* | --host=* | --hos=* | --ho=*) |
698dcdb6 | 538 | host="$ac_optarg" ;; |
10f2d63a VZ |
539 | |
540 | -includedir | --includedir | --includedi | --included | --include \ | |
541 | | --includ | --inclu | --incl | --inc) | |
542 | ac_prev=includedir ;; | |
543 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
544 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
698dcdb6 | 545 | includedir="$ac_optarg" ;; |
10f2d63a VZ |
546 | |
547 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
548 | ac_prev=infodir ;; | |
549 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
698dcdb6 | 550 | infodir="$ac_optarg" ;; |
10f2d63a VZ |
551 | |
552 | -libdir | --libdir | --libdi | --libd) | |
553 | ac_prev=libdir ;; | |
554 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
698dcdb6 | 555 | libdir="$ac_optarg" ;; |
10f2d63a VZ |
556 | |
557 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
558 | | --libexe | --libex | --libe) | |
559 | ac_prev=libexecdir ;; | |
560 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
561 | | --libexe=* | --libex=* | --libe=*) | |
698dcdb6 | 562 | libexecdir="$ac_optarg" ;; |
10f2d63a VZ |
563 | |
564 | -localstatedir | --localstatedir | --localstatedi | --localstated \ | |
565 | | --localstate | --localstat | --localsta | --localst \ | |
566 | | --locals | --local | --loca | --loc | --lo) | |
567 | ac_prev=localstatedir ;; | |
568 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
569 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \ | |
570 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) | |
698dcdb6 | 571 | localstatedir="$ac_optarg" ;; |
10f2d63a VZ |
572 | |
573 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
574 | ac_prev=mandir ;; | |
575 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
698dcdb6 | 576 | mandir="$ac_optarg" ;; |
10f2d63a VZ |
577 | |
578 | -nfp | --nfp | --nf) | |
579 | # Obsolete; use --without-fp. | |
580 | with_fp=no ;; | |
581 | ||
582 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
583 | | --no-cr | --no-c) | |
584 | no_create=yes ;; | |
585 | ||
586 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
587 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
588 | no_recursion=yes ;; | |
589 | ||
590 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
591 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
592 | | --oldin | --oldi | --old | --ol | --o) | |
593 | ac_prev=oldincludedir ;; | |
594 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
595 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
596 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
698dcdb6 | 597 | oldincludedir="$ac_optarg" ;; |
10f2d63a VZ |
598 | |
599 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
600 | ac_prev=prefix ;; | |
601 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
698dcdb6 | 602 | prefix="$ac_optarg" ;; |
10f2d63a VZ |
603 | |
604 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
605 | | --program-pre | --program-pr | --program-p) | |
606 | ac_prev=program_prefix ;; | |
607 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
608 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
698dcdb6 | 609 | program_prefix="$ac_optarg" ;; |
10f2d63a VZ |
610 | |
611 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
612 | | --program-suf | --program-su | --program-s) | |
613 | ac_prev=program_suffix ;; | |
614 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
615 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
698dcdb6 | 616 | program_suffix="$ac_optarg" ;; |
10f2d63a VZ |
617 | |
618 | -program-transform-name | --program-transform-name \ | |
619 | | --program-transform-nam | --program-transform-na \ | |
620 | | --program-transform-n | --program-transform- \ | |
621 | | --program-transform | --program-transfor \ | |
622 | | --program-transfo | --program-transf \ | |
623 | | --program-trans | --program-tran \ | |
624 | | --progr-tra | --program-tr | --program-t) | |
625 | ac_prev=program_transform_name ;; | |
626 | -program-transform-name=* | --program-transform-name=* \ | |
627 | | --program-transform-nam=* | --program-transform-na=* \ | |
628 | | --program-transform-n=* | --program-transform-=* \ | |
629 | | --program-transform=* | --program-transfor=* \ | |
630 | | --program-transfo=* | --program-transf=* \ | |
631 | | --program-trans=* | --program-tran=* \ | |
632 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
698dcdb6 | 633 | program_transform_name="$ac_optarg" ;; |
10f2d63a VZ |
634 | |
635 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
636 | | -silent | --silent | --silen | --sile | --sil) | |
637 | silent=yes ;; | |
638 | ||
639 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
640 | ac_prev=sbindir ;; | |
641 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
642 | | --sbi=* | --sb=*) | |
698dcdb6 | 643 | sbindir="$ac_optarg" ;; |
10f2d63a VZ |
644 | |
645 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
646 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
647 | | --sharedst | --shareds | --shared | --share | --shar \ | |
648 | | --sha | --sh) | |
649 | ac_prev=sharedstatedir ;; | |
650 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
651 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
652 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
653 | | --sha=* | --sh=*) | |
698dcdb6 | 654 | sharedstatedir="$ac_optarg" ;; |
10f2d63a VZ |
655 | |
656 | -site | --site | --sit) | |
657 | ac_prev=site ;; | |
658 | -site=* | --site=* | --sit=*) | |
698dcdb6 | 659 | site="$ac_optarg" ;; |
10f2d63a VZ |
660 | |
661 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
662 | ac_prev=srcdir ;; | |
663 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
698dcdb6 | 664 | srcdir="$ac_optarg" ;; |
10f2d63a VZ |
665 | |
666 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
667 | | --syscon | --sysco | --sysc | --sys | --sy) | |
668 | ac_prev=sysconfdir ;; | |
669 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
670 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
698dcdb6 | 671 | sysconfdir="$ac_optarg" ;; |
10f2d63a VZ |
672 | |
673 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
698dcdb6 | 674 | ac_prev=target ;; |
10f2d63a | 675 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
698dcdb6 | 676 | target="$ac_optarg" ;; |
10f2d63a VZ |
677 | |
678 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
679 | verbose=yes ;; | |
680 | ||
698dcdb6 VZ |
681 | -version | --version | --versio | --versi | --vers) |
682 | echo "configure generated by autoconf version 2.13" | |
683 | exit 0 ;; | |
10f2d63a VZ |
684 | |
685 | -with-* | --with-*) | |
698dcdb6 | 686 | ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'` |
10f2d63a | 687 | # Reject names that are not valid shell variable names. |
698dcdb6 VZ |
688 | if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then |
689 | { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } | |
690 | fi | |
10f2d63a | 691 | ac_package=`echo $ac_package| sed 's/-/_/g'` |
698dcdb6 VZ |
692 | case "$ac_option" in |
693 | *=*) ;; | |
10f2d63a VZ |
694 | *) ac_optarg=yes ;; |
695 | esac | |
698dcdb6 | 696 | eval "with_${ac_package}='$ac_optarg'" ;; |
10f2d63a VZ |
697 | |
698 | -without-* | --without-*) | |
698dcdb6 | 699 | ac_package=`echo $ac_option|sed -e 's/-*without-//'` |
10f2d63a | 700 | # Reject names that are not valid shell variable names. |
698dcdb6 VZ |
701 | if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then |
702 | { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } | |
703 | fi | |
704 | ac_package=`echo $ac_package| sed 's/-/_/g'` | |
705 | eval "with_${ac_package}=no" ;; | |
10f2d63a VZ |
706 | |
707 | --x) | |
708 | # Obsolete; use --with-x. | |
709 | with_x=yes ;; | |
710 | ||
711 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
712 | | --x-incl | --x-inc | --x-in | --x-i) | |
713 | ac_prev=x_includes ;; | |
714 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
715 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
698dcdb6 | 716 | x_includes="$ac_optarg" ;; |
10f2d63a VZ |
717 | |
718 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
719 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
720 | ac_prev=x_libraries ;; | |
721 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
722 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
698dcdb6 | 723 | x_libraries="$ac_optarg" ;; |
10f2d63a | 724 | |
698dcdb6 | 725 | -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; } |
10f2d63a VZ |
726 | ;; |
727 | ||
728 | *) | |
698dcdb6 VZ |
729 | if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then |
730 | echo "configure: warning: $ac_option: invalid host type" 1>&2 | |
731 | fi | |
732 | if test "x$nonopt" != xNONE; then | |
733 | { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } | |
734 | fi | |
735 | nonopt="$ac_option" | |
10f2d63a VZ |
736 | ;; |
737 | ||
738 | esac | |
739 | done | |
740 | ||
741 | if test -n "$ac_prev"; then | |
698dcdb6 VZ |
742 | { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; } |
743 | fi | |
744 | ||
745 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 | |
746 | ||
747 | # File descriptor usage: | |
748 | # 0 standard input | |
749 | # 1 file creation | |
750 | # 2 errors and warnings | |
751 | # 3 some systems may open it to /dev/tty | |
752 | # 4 used on the Kubota Titan | |
753 | # 6 checking for... messages and results | |
754 | # 5 compiler messages saved in config.log | |
755 | if test "$silent" = yes; then | |
756 | exec 6>/dev/null | |
757 | else | |
758 | exec 6>&1 | |
10f2d63a | 759 | fi |
698dcdb6 VZ |
760 | exec 5>./config.log |
761 | ||
762 | echo "\ | |
763 | This file contains any messages produced by compilers while | |
764 | running configure, to aid debugging if configure makes a mistake. | |
765 | " 1>&5 | |
10f2d63a | 766 | |
698dcdb6 VZ |
767 | # Strip out --no-create and --no-recursion so they do not pile up. |
768 | # Also quote any args containing shell metacharacters. | |
769 | ac_configure_args= | |
770 | for ac_arg | |
10f2d63a | 771 | do |
698dcdb6 VZ |
772 | case "$ac_arg" in |
773 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
774 | | --no-cr | --no-c) ;; | |
775 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
776 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;; | |
777 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*) | |
778 | ac_configure_args="$ac_configure_args '$ac_arg'" ;; | |
779 | *) ac_configure_args="$ac_configure_args $ac_arg" ;; | |
10f2d63a VZ |
780 | esac |
781 | done | |
782 | ||
698dcdb6 VZ |
783 | # NLS nuisances. |
784 | # Only set these to C if already set. These must not be set unconditionally | |
785 | # because not all systems understand e.g. LANG=C (notably SCO). | |
786 | # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'! | |
787 | # Non-C LC_CTYPE values break the ctype check. | |
788 | if test "${LANG+set}" = set; then LANG=C; export LANG; fi | |
789 | if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi | |
790 | if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi | |
791 | if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi | |
10f2d63a | 792 | |
698dcdb6 VZ |
793 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
794 | rm -rf conftest* confdefs.h | |
795 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. | |
796 | echo > confdefs.h | |
10f2d63a | 797 | |
698dcdb6 VZ |
798 | # A filename unique to this package, relative to the directory that |
799 | # configure is in, which we can look for to find out if srcdir is correct. | |
800 | ac_unique_file=wx-config.in | |
10f2d63a VZ |
801 | |
802 | # Find the source files, if location was not specified. | |
803 | if test -z "$srcdir"; then | |
804 | ac_srcdir_defaulted=yes | |
805 | # Try the directory containing this script, then its parent. | |
806 | ac_prog=$0 | |
698dcdb6 | 807 | ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'` |
10f2d63a VZ |
808 | test "x$ac_confdir" = "x$ac_prog" && ac_confdir=. |
809 | srcdir=$ac_confdir | |
810 | if test ! -r $srcdir/$ac_unique_file; then | |
811 | srcdir=.. | |
812 | fi | |
813 | else | |
814 | ac_srcdir_defaulted=no | |
815 | fi | |
816 | if test ! -r $srcdir/$ac_unique_file; then | |
817 | if test "$ac_srcdir_defaulted" = yes; then | |
698dcdb6 | 818 | { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; } |
10f2d63a | 819 | else |
698dcdb6 | 820 | { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; } |
10f2d63a VZ |
821 | fi |
822 | fi | |
698dcdb6 | 823 | srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'` |
10f2d63a VZ |
824 | |
825 | # Prefer explicitly selected file to automatically selected ones. | |
826 | if test -z "$CONFIG_SITE"; then | |
827 | if test "x$prefix" != xNONE; then | |
828 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" | |
829 | else | |
830 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" | |
831 | fi | |
832 | fi | |
833 | for ac_site_file in $CONFIG_SITE; do | |
834 | if test -r "$ac_site_file"; then | |
698dcdb6 | 835 | echo "loading site script $ac_site_file" |
10f2d63a VZ |
836 | . "$ac_site_file" |
837 | fi | |
838 | done | |
839 | ||
840 | if test -r "$cache_file"; then | |
698dcdb6 VZ |
841 | echo "loading cache $cache_file" |
842 | . $cache_file | |
10f2d63a | 843 | else |
698dcdb6 VZ |
844 | echo "creating cache $cache_file" |
845 | > $cache_file | |
10f2d63a VZ |
846 | fi |
847 | ||
848 | ac_ext=c | |
698dcdb6 | 849 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
10f2d63a | 850 | ac_cpp='$CPP $CPPFLAGS' |
698dcdb6 VZ |
851 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
852 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
853 | cross_compiling=$ac_cv_prog_cc_cross | |
854 | ||
855 | ac_exeext= | |
856 | ac_objext=o | |
857 | if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then | |
858 | # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu. | |
859 | if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then | |
860 | ac_n= ac_c=' | |
861 | ' ac_t=' ' | |
862 | else | |
863 | ac_n=-n ac_c= ac_t= | |
864 | fi | |
10f2d63a | 865 | else |
698dcdb6 | 866 | ac_n= ac_c='\c' ac_t= |
10f2d63a | 867 | fi |
698dcdb6 VZ |
868 | |
869 | ||
10f2d63a | 870 | |
7c66a493 VZ |
871 | ac_aux_dir= |
872 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do | |
873 | if test -f $ac_dir/install-sh; then | |
874 | ac_aux_dir=$ac_dir | |
875 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
876 | break | |
877 | elif test -f $ac_dir/install.sh; then | |
878 | ac_aux_dir=$ac_dir | |
879 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
880 | break | |
881 | fi | |
882 | done | |
883 | if test -z "$ac_aux_dir"; then | |
698dcdb6 | 884 | { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; } |
7c66a493 | 885 | fi |
698dcdb6 VZ |
886 | ac_config_guess=$ac_aux_dir/config.guess |
887 | ac_config_sub=$ac_aux_dir/config.sub | |
888 | ac_configure=$ac_aux_dir/configure # This should be Cygnus configure. | |
703e0a69 | 889 | |
698dcdb6 VZ |
890 | |
891 | # Do some error checking and defaulting for the host and target type. | |
892 | # The inputs are: | |
893 | # configure --host=HOST --target=TARGET --build=BUILD NONOPT | |
894 | # | |
895 | # The rules are: | |
896 | # 1. You are not allowed to specify --host, --target, and nonopt at the | |
897 | # same time. | |
898 | # 2. Host defaults to nonopt. | |
899 | # 3. If nonopt is not specified, then host defaults to the current host, | |
900 | # as determined by config.guess. | |
901 | # 4. Target and build default to nonopt. | |
902 | # 5. If nonopt is not specified, then target and build default to host. | |
7c66a493 VZ |
903 | |
904 | # The aliases save the names the user supplied, while $host etc. | |
905 | # will get canonicalized. | |
698dcdb6 VZ |
906 | case $host---$target---$nonopt in |
907 | NONE---*---* | *---NONE---* | *---*---NONE) ;; | |
908 | *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;; | |
909 | esac | |
910 | ||
911 | ||
912 | # Make sure we can run config.sub. | |
913 | if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then : | |
914 | else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; } | |
915 | fi | |
916 | ||
917 | echo $ac_n "checking host system type""... $ac_c" 1>&6 | |
54276ccf | 918 | echo "configure:919: checking host system type" >&5 |
698dcdb6 VZ |
919 | |
920 | host_alias=$host | |
921 | case "$host_alias" in | |
922 | NONE) | |
923 | case $nonopt in | |
924 | NONE) | |
925 | if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then : | |
926 | else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; } | |
927 | fi ;; | |
928 | *) host_alias=$nonopt ;; | |
929 | esac ;; | |
930 | esac | |
931 | ||
932 | host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias` | |
933 | host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
934 | host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
935 | host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
936 | echo "$ac_t""$host" 1>&6 | |
937 | ||
938 | echo $ac_n "checking target system type""... $ac_c" 1>&6 | |
54276ccf | 939 | echo "configure:940: checking target system type" >&5 |
698dcdb6 VZ |
940 | |
941 | target_alias=$target | |
942 | case "$target_alias" in | |
943 | NONE) | |
944 | case $nonopt in | |
945 | NONE) target_alias=$host_alias ;; | |
946 | *) target_alias=$nonopt ;; | |
947 | esac ;; | |
948 | esac | |
949 | ||
950 | target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias` | |
951 | target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
952 | target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
953 | target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
954 | echo "$ac_t""$target" 1>&6 | |
955 | ||
956 | echo $ac_n "checking build system type""... $ac_c" 1>&6 | |
54276ccf | 957 | echo "configure:958: checking build system type" >&5 |
698dcdb6 VZ |
958 | |
959 | build_alias=$build | |
960 | case "$build_alias" in | |
961 | NONE) | |
962 | case $nonopt in | |
963 | NONE) build_alias=$host_alias ;; | |
964 | *) build_alias=$nonopt ;; | |
965 | esac ;; | |
966 | esac | |
967 | ||
968 | build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias` | |
969 | build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
970 | build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
971 | build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
972 | echo "$ac_t""$build" 1>&6 | |
973 | ||
974 | test "$host_alias" != "$target_alias" && | |
7c66a493 VZ |
975 | test "$program_prefix$program_suffix$program_transform_name" = \ |
976 | NONENONEs,x,x, && | |
977 | program_prefix=${target_alias}- | |
978 | ||
698dcdb6 VZ |
979 | |
980 | ||
10f2d63a | 981 | WX_MAJOR_VERSION_NUMBER=2 |
37d403aa | 982 | WX_MINOR_VERSION_NUMBER=3 |
665bbe97 | 983 | WX_RELEASE_NUMBER=1 |
10f2d63a | 984 | |
10f2d63a | 985 | WX_VERSION=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER.$WX_RELEASE_NUMBER |
10f2d63a | 986 | WX_RELEASE=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER |
6426998c RL |
987 | |
988 | WX_CURRENT=0 | |
989 | WX_REVISION=0 | |
990 | WX_AGE=0 | |
991 | ||
698dcdb6 VZ |
992 | |
993 | ||
10f2d63a VZ |
994 | USE_UNIX=1 |
995 | USE_WIN32=0 | |
b12915c1 | 996 | USE_BEOS=0 |
1216f52d | 997 | USE_MAC=0 |
b12915c1 | 998 | |
10f2d63a VZ |
999 | USE_LINUX= |
1000 | USE_SGI= | |
1001 | USE_HPUX= | |
1002 | USE_SYSV= | |
1003 | USE_SVR4= | |
1004 | USE_AIX= | |
1005 | USE_SUN= | |
1006 | USE_SOLARIS= | |
1007 | USE_SUNOS= | |
1008 | USE_ALPHA= | |
1009 | USE_OSF= | |
1010 | USE_BSD= | |
1011 | USE_FREEBSD= | |
95c8801c | 1012 | USE_OPENBSD= |
f6bcfd97 | 1013 | USE_NETBSD= |
10f2d63a VZ |
1014 | USE_VMS= |
1015 | USE_ULTRIX= | |
1016 | USE_CYGWIN= | |
1017 | USE_MINGW= | |
1018 | USE_DATA_GENERAL= | |
1019 | ||
ab9b9eab VZ |
1020 | NEEDS_D_REENTRANT_FOR_R_FUNCS=0 |
1021 | ||
1e6feb95 | 1022 | ALL_TOOLKITS="CYGWIN GTK MAC MGL MINGW MOTIF PM WINE" |
10f2d63a VZ |
1023 | |
1024 | DEFAULT_wxUSE_GTK=0 | |
1e6feb95 VZ |
1025 | DEFAULT_wxUSE_MAC=0 |
1026 | DEFAULT_wxUSE_MGL=0 | |
10f2d63a VZ |
1027 | DEFAULT_wxUSE_MOTIF=0 |
1028 | DEFAULT_wxUSE_MSW=0 | |
e07802fc | 1029 | DEFAULT_wxUSE_PM=0 |
1e6feb95 | 1030 | DEFAULT_wxUSE_WINE=0 |
10f2d63a VZ |
1031 | |
1032 | DEFAULT_DEFAULT_wxUSE_GTK=0 | |
1e6feb95 VZ |
1033 | DEFAULT_DEFAULT_wxUSE_MAC=0 |
1034 | DEFAULT_DEFAULT_wxUSE_MGL=0 | |
10f2d63a VZ |
1035 | DEFAULT_DEFAULT_wxUSE_MOTIF=0 |
1036 | DEFAULT_DEFAULT_wxUSE_MSW=0 | |
e07802fc | 1037 | DEFAULT_DEFAULT_wxUSE_PM=0 |
1e6feb95 | 1038 | DEFAULT_DEFAULT_wxUSE_WINE=0 |
10f2d63a | 1039 | |
d6a55c4b VZ |
1040 | PROGRAM_EXT= |
1041 | ||
10f2d63a VZ |
1042 | case "${host}" in |
1043 | *-hp-hpux* ) | |
1044 | USE_HPUX=1 | |
1045 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
ab9b9eab | 1046 | NEEDS_D_REENTRANT_FOR_R_FUNCS=1 |
698dcdb6 | 1047 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1048 | #define __HPUX__ 1 |
1049 | EOF | |
1050 | ||
1051 | ;; | |
1052 | *-*-linux* ) | |
1053 | USE_LINUX=1 | |
698dcdb6 | 1054 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1055 | #define __LINUX__ 1 |
1056 | EOF | |
1057 | ||
1058 | TMP=`uname -m` | |
1059 | if test "x$TMP" = "xalpha"; then | |
1060 | USE_ALPHA=1 | |
698dcdb6 | 1061 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1062 | #define __ALPHA__ 1 |
1063 | EOF | |
1064 | ||
1065 | fi | |
1066 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1067 | ;; | |
1068 | *-*-irix5* | *-*-irix6* ) | |
1069 | USE_SGI=1 | |
1070 | USE_SVR4=1 | |
698dcdb6 | 1071 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1072 | #define __SGI__ 1 |
1073 | EOF | |
1074 | ||
698dcdb6 | 1075 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1076 | #define __SVR4__ 1 |
1077 | EOF | |
1078 | ||
1079 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1080 | ;; | |
1081 | *-*-solaris2* ) | |
1082 | USE_SUN=1 | |
1083 | USE_SOLARIS=1 | |
1084 | USE_SVR4=1 | |
698dcdb6 | 1085 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1086 | #define __SUN__ 1 |
1087 | EOF | |
1088 | ||
698dcdb6 | 1089 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1090 | #define __SOLARIS__ 1 |
1091 | EOF | |
1092 | ||
698dcdb6 | 1093 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1094 | #define __SVR4__ 1 |
1095 | EOF | |
1096 | ||
1097 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
ab9b9eab | 1098 | NEEDS_D_REENTRANT_FOR_R_FUNCS=1 |
10f2d63a VZ |
1099 | ;; |
1100 | *-*-sunos4* ) | |
1101 | USE_SUN=1 | |
1102 | USE_SUNOS=1 | |
1103 | USE_BSD=1 | |
698dcdb6 | 1104 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1105 | #define __SUN__ 1 |
1106 | EOF | |
1107 | ||
698dcdb6 | 1108 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1109 | #define __SUNOS__ 1 |
1110 | EOF | |
1111 | ||
698dcdb6 | 1112 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1113 | #define __BSD__ 1 |
1114 | EOF | |
1115 | ||
1116 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1117 | ;; | |
f6bcfd97 | 1118 | *-*-freebsd*) |
10f2d63a VZ |
1119 | USE_BSD=1 |
1120 | USE_FREEBSD=1 | |
698dcdb6 | 1121 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1122 | #define __FREEBSD__ 1 |
1123 | EOF | |
1124 | ||
698dcdb6 | 1125 | cat >> confdefs.h <<\EOF |
10f2d63a | 1126 | #define __BSD__ 1 |
95c8801c VS |
1127 | EOF |
1128 | ||
1129 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1130 | ;; | |
1131 | *-*-openbsd*) | |
1132 | USE_BSD=1 | |
1133 | USE_OPENBSD=1 | |
698dcdb6 | 1134 | cat >> confdefs.h <<\EOF |
95c8801c VS |
1135 | #define __FREEBSD__ 1 |
1136 | EOF | |
1137 | ||
698dcdb6 | 1138 | cat >> confdefs.h <<\EOF |
95c8801c | 1139 | #define __OPENBSD__ 1 |
f6bcfd97 BP |
1140 | EOF |
1141 | ||
1142 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1143 | ;; | |
1144 | *-*-netbsd*) | |
1145 | USE_BSD=1 | |
1146 | USE_NETBSD=1 | |
698dcdb6 | 1147 | cat >> confdefs.h <<\EOF |
f6bcfd97 BP |
1148 | #define __FREEBSD__ 1 |
1149 | EOF | |
1150 | ||
698dcdb6 | 1151 | cat >> confdefs.h <<\EOF |
f6bcfd97 | 1152 | #define __NETBSD__ 1 |
10f2d63a VZ |
1153 | EOF |
1154 | ||
1155 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1156 | ;; | |
1157 | *-*-osf* ) | |
1158 | USE_ALPHA=1 | |
1159 | USE_OSF=1 | |
698dcdb6 | 1160 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1161 | #define __ALPHA__ 1 |
1162 | EOF | |
1163 | ||
698dcdb6 | 1164 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1165 | #define __OSF__ 1 |
1166 | EOF | |
1167 | ||
1168 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
f6bcfd97 | 1169 | NEEDS_D_REENTRANT_FOR_R_FUNCS=1 |
10f2d63a VZ |
1170 | ;; |
1171 | *-*-dgux5* ) | |
1172 | USE_ALPHA=1 | |
1173 | USE_SVR4=1 | |
698dcdb6 | 1174 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1175 | #define __ALPHA__ 1 |
1176 | EOF | |
1177 | ||
698dcdb6 | 1178 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1179 | #define __SVR4__ 1 |
1180 | EOF | |
1181 | ||
1182 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1183 | ;; | |
1184 | *-*-sysv5* ) | |
1185 | USE_SYSV=1 | |
1186 | USE_SVR4=1 | |
698dcdb6 | 1187 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1188 | #define __SYSV__ 1 |
1189 | EOF | |
1190 | ||
698dcdb6 | 1191 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1192 | #define __SVR4__ 1 |
1193 | EOF | |
1194 | ||
1195 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1196 | ;; | |
1197 | *-*-aix* ) | |
1198 | USE_AIX=1 | |
1199 | USE_SYSV=1 | |
1200 | USE_SVR4=1 | |
698dcdb6 | 1201 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1202 | #define __AIX__ 1 |
1203 | EOF | |
1204 | ||
698dcdb6 | 1205 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1206 | #define __SYSV__ 1 |
1207 | EOF | |
1208 | ||
698dcdb6 | 1209 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1210 | #define __SVR4__ 1 |
1211 | EOF | |
1212 | ||
1213 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1214 | ;; | |
1215 | ||
1c8183e2 | 1216 | *-*-cygwin* | *-*-mingw32* ) |
10f2d63a VZ |
1217 | USE_UNIX=0 |
1218 | USE_WIN32=1 | |
698dcdb6 | 1219 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1220 | #define __WIN32__ 1 |
1221 | EOF | |
1222 | ||
698dcdb6 | 1223 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1224 | #define __WIN95__ 1 |
1225 | EOF | |
1226 | ||
698dcdb6 | 1227 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1228 | #define __WINDOWS__ 1 |
1229 | EOF | |
1230 | ||
698dcdb6 | 1231 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1232 | #define __GNUWIN32__ 1 |
1233 | EOF | |
1234 | ||
698dcdb6 | 1235 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1236 | #define STRICT 1 |
1237 | EOF | |
1238 | ||
698dcdb6 | 1239 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1240 | #define WINVER 0x0400 |
1241 | EOF | |
1242 | ||
cf27ef00 | 1243 | PROGRAM_EXT=".exe" |
10f2d63a VZ |
1244 | DEFAULT_DEFAULT_wxUSE_MSW=1 |
1245 | ;; | |
1246 | ||
1247 | *-pc-os2_emx ) | |
698dcdb6 | 1248 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1249 | #define __EMX__ 1 |
1250 | EOF | |
1251 | ||
cf27ef00 | 1252 | PROGRAM_EXT=".exe" |
e07802fc | 1253 | DEFAULT_DEFAULT_wxUSE_PM=1 |
10f2d63a VZ |
1254 | ;; |
1255 | ||
b4085ce6 GD |
1256 | *-*-darwin* ) |
1257 | USE_BSD=1 | |
1258 | USE_MAC=1 | |
698dcdb6 | 1259 | cat >> confdefs.h <<\EOF |
b4085ce6 GD |
1260 | #define __MAC__ 1 |
1261 | EOF | |
1262 | ||
698dcdb6 | 1263 | cat >> confdefs.h <<\EOF |
b4085ce6 GD |
1264 | #define __BSD__ 1 |
1265 | EOF | |
1266 | ||
698dcdb6 | 1267 | cat >> confdefs.h <<\EOF |
b4085ce6 GD |
1268 | #define __UNIX__ 1 |
1269 | EOF | |
1270 | ||
1271 | DEFAULT_DEFAULT_wxUSE_MAC=1 | |
1272 | ;; | |
1273 | ||
b12915c1 VZ |
1274 | *-*-beos* ) |
1275 | USE_BEOS=1 | |
698dcdb6 | 1276 | cat >> confdefs.h <<\EOF |
b12915c1 VZ |
1277 | #define __BEOS__ 1 |
1278 | EOF | |
1279 | ||
1280 | ;; | |
1281 | ||
10f2d63a | 1282 | *) |
698dcdb6 | 1283 | { echo "configure: error: unknown system type ${host}." 1>&2; exit 1; } |
10f2d63a VZ |
1284 | esac |
1285 | ||
1286 | if test "$USE_UNIX" = 1 ; then | |
b12915c1 | 1287 | wxUSE_UNIX=yes |
698dcdb6 | 1288 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1289 | #define __UNIX__ 1 |
1290 | EOF | |
1291 | ||
698dcdb6 | 1292 | |
b12915c1 VZ |
1293 | SRC_SUBDIRS="$SRC_SUBDIRS unix" |
1294 | INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS unix" | |
1295 | fi | |
1296 | ||
1297 | if test "$USE_BEOS" = 1; then | |
1298 | SRC_SUBDIRS="$SRC_SUBDIRS be" | |
1299 | INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS be" | |
10f2d63a VZ |
1300 | fi |
1301 | ||
1302 | if test "$USE_LINUX" = 1; then | |
698dcdb6 | 1303 | echo $ac_n "checking for gettext in -lc""... $ac_c" 1>&6 |
54276ccf | 1304 | echo "configure:1305: checking for gettext in -lc" >&5 |
698dcdb6 VZ |
1305 | ac_lib_var=`echo c'_'gettext | sed 'y%./+-%__p_%'` |
1306 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
1307 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1e487827 | 1308 | else |
698dcdb6 VZ |
1309 | ac_save_LIBS="$LIBS" |
1310 | LIBS="-lc $LIBS" | |
1311 | cat > conftest.$ac_ext <<EOF | |
54276ccf | 1312 | #line 1313 "configure" |
698dcdb6 VZ |
1313 | #include "confdefs.h" |
1314 | /* Override any gcc2 internal prototype to avoid an error. */ | |
1315 | /* We use char because int might match the return type of a gcc2 | |
1316 | builtin and then its argument prototype would still apply. */ | |
1317 | char gettext(); | |
10f2d63a | 1318 | |
698dcdb6 VZ |
1319 | int main() { |
1320 | gettext() | |
1321 | ; return 0; } | |
1322 | EOF | |
54276ccf | 1323 | if { (eval echo configure:1324: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
1324 | rm -rf conftest* |
1325 | eval "ac_cv_lib_$ac_lib_var=yes" | |
10f2d63a | 1326 | else |
698dcdb6 VZ |
1327 | echo "configure: failed program was:" >&5 |
1328 | cat conftest.$ac_ext >&5 | |
1329 | rm -rf conftest* | |
1330 | eval "ac_cv_lib_$ac_lib_var=no" | |
10f2d63a | 1331 | fi |
698dcdb6 VZ |
1332 | rm -f conftest* |
1333 | LIBS="$ac_save_LIBS" | |
10f2d63a VZ |
1334 | |
1335 | fi | |
698dcdb6 VZ |
1336 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
1337 | echo "$ac_t""yes" 1>&6 | |
1338 | cat >> confdefs.h <<\EOF | |
1339 | #define wxHAVE_GLIBC2 1 | |
1340 | EOF | |
10f2d63a VZ |
1341 | |
1342 | else | |
698dcdb6 | 1343 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
1344 | fi |
1345 | ||
1346 | fi | |
1347 | ||
1e487827 | 1348 | |
1e487827 | 1349 | |
6232543b | 1350 | |
10f2d63a VZ |
1351 | wx_arg_cache_file="configarg.cache" |
1352 | echo "loading argument cache $wx_arg_cache_file" | |
1353 | rm -f ${wx_arg_cache_file}.tmp | |
1354 | touch ${wx_arg_cache_file}.tmp | |
1355 | touch ${wx_arg_cache_file} | |
698dcdb6 | 1356 | |
10f2d63a VZ |
1357 | |
1358 | DEBUG_CONFIGURE=0 | |
1359 | if test $DEBUG_CONFIGURE = 1; then | |
1e6feb95 VZ |
1360 | DEFAULT_wxUSE_UNIVERSAL=no |
1361 | ||
10f2d63a VZ |
1362 | DEFAULT_wxUSE_THREADS=yes |
1363 | ||
1364 | DEFAULT_wxUSE_SHARED=yes | |
00cf1208 | 1365 | DEFAULT_wxUSE_BURNT_NAME=no |
1e6feb95 | 1366 | DEFAULT_wxUSE_OPTIMISE=no |
10f2d63a VZ |
1367 | DEFAULT_wxUSE_PROFILE=no |
1368 | DEFAULT_wxUSE_NO_DEPS=no | |
1369 | DEFAULT_wxUSE_NO_RTTI=no | |
1370 | DEFAULT_wxUSE_NO_EXCEPTIONS=no | |
1371 | DEFAULT_wxUSE_PERMISSIVE=no | |
1372 | DEFAULT_wxUSE_DEBUG_FLAG=yes | |
1373 | DEFAULT_wxUSE_DEBUG_INFO=yes | |
1374 | DEFAULT_wxUSE_DEBUG_GDB=yes | |
1375 | DEFAULT_wxUSE_MEM_TRACING=no | |
1376 | DEFAULT_wxUSE_DEBUG_CONTEXT=no | |
1377 | DEFAULT_wxUSE_DMALLOC=no | |
1378 | DEFAULT_wxUSE_APPLE_IEEE=no | |
1379 | ||
1380 | DEFAULT_wxUSE_LOG=yes | |
1e6feb95 VZ |
1381 | DEFAULT_wxUSE_LOGWINDOW=no |
1382 | DEFAULT_wxUSE_LOGGUI=no | |
10f2d63a VZ |
1383 | |
1384 | DEFAULT_wxUSE_GUI=yes | |
1e6feb95 | 1385 | DEFAULT_wxUSE_CONTROLS=no |
10f2d63a VZ |
1386 | |
1387 | DEFAULT_wxUSE_ZLIB=no | |
1388 | DEFAULT_wxUSE_LIBPNG=no | |
1389 | DEFAULT_wxUSE_LIBJPEG=no | |
c7a2bf27 | 1390 | DEFAULT_wxUSE_LIBTIFF=no |
10f2d63a | 1391 | DEFAULT_wxUSE_ODBC=no |
3fed1840 | 1392 | DEFAULT_wxUSE_FREETYPE=no |
bdad4e7e | 1393 | DEFAULT_wxUSE_OPENGL=no |
10f2d63a | 1394 | |
eb4efbdc | 1395 | DEFAULT_wxUSE_ON_FATAL_EXCEPTION=no |
4f3c5f06 | 1396 | DEFAULT_wxUSE_SNGLINST_CHECKER=no |
10f2d63a | 1397 | DEFAULT_wxUSE_STD_IOSTREAM=no |
1e6feb95 VZ |
1398 | DEFAULT_wxUSE_CMDLINE_PARSER=no |
1399 | DEFAULT_wxUSE_DATETIME=no | |
1400 | DEFAULT_wxUSE_TIMEDATE=no | |
1401 | DEFAULT_wxUSE_TIMER=no | |
1402 | DEFAULT_wxUSE_STOPWATCH=no | |
10f2d63a | 1403 | DEFAULT_wxUSE_FILE=no |
1e6feb95 | 1404 | DEFAULT_wxUSE_FFILE=no |
10f2d63a | 1405 | DEFAULT_wxUSE_TEXTFILE=no |
10f2d63a VZ |
1406 | DEFAULT_wxUSE_WAVE=no |
1407 | DEFAULT_wxUSE_INTL=no | |
1408 | DEFAULT_wxUSE_CONFIG=no | |
1e6feb95 | 1409 | DEFAULT_wxUSE_FONTMAP=no |
10f2d63a VZ |
1410 | DEFAULT_wxUSE_STREAMS=no |
1411 | DEFAULT_wxUSE_SOCKETS=no | |
1412 | DEFAULT_wxUSE_DIALUP_MANAGER=no | |
1413 | DEFAULT_wxUSE_SERIAL=no | |
1414 | DEFAULT_wxUSE_JOYSTICK=no | |
1415 | DEFAULT_wxUSE_DYNLIB_CLASS=no | |
1416 | DEFAULT_wxUSE_LONGLONG=no | |
e8f65ba6 | 1417 | DEFAULT_wxUSE_GEOMETRY=no |
10f2d63a VZ |
1418 | |
1419 | DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no | |
1420 | DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no | |
1421 | DEFAULT_wxUSE_POSTSCRIPT=no | |
1422 | ||
1423 | DEFAULT_wxUSE_X_RESOURCES=no | |
1424 | DEFAULT_wxUSE_CLIPBOARD=no | |
1425 | DEFAULT_wxUSE_TOOLTIPS=no | |
1426 | DEFAULT_wxUSE_DRAG_AND_DROP=no | |
1427 | DEFAULT_wxUSE_SPLINES=no | |
1428 | ||
1429 | DEFAULT_wxUSE_MDI_ARCHITECTURE=no | |
1430 | DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no | |
1431 | DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no | |
1432 | ||
1433 | DEFAULT_wxUSE_PROLOGIO=no | |
1434 | DEFAULT_wxUSE_RESOURCES=no | |
1435 | DEFAULT_wxUSE_CONSTRAINTS=no | |
1436 | DEFAULT_wxUSE_IPC=no | |
1437 | DEFAULT_wxUSE_HELP=no | |
1438 | DEFAULT_wxUSE_WXTREE=no | |
1439 | DEFAULT_wxUSE_METAFILE=no | |
1e6feb95 | 1440 | DEFAULT_wxUSE_MIMETYPE=no |
10f2d63a VZ |
1441 | |
1442 | DEFAULT_wxUSE_COMMONDLGS=no | |
1e6feb95 VZ |
1443 | DEFAULT_wxUSE_CHOICEDLG=no |
1444 | DEFAULT_wxUSE_COLOURDLG=no | |
10f2d63a | 1445 | DEFAULT_wxUSE_DIRDLG=no |
1e6feb95 VZ |
1446 | DEFAULT_wxUSE_FILEDLG=no |
1447 | DEFAULT_wxUSE_FONTDLG=no | |
1448 | DEFAULT_wxUSE_MSGDLG=no | |
1449 | DEFAULT_wxUSE_NUMBERDLG=no | |
10f2d63a VZ |
1450 | DEFAULT_wxUSE_TEXTDLG=no |
1451 | DEFAULT_wxUSE_STARTUP_TIPS=no | |
1452 | DEFAULT_wxUSE_PROGRESSDLG=no | |
1e6feb95 | 1453 | DEFAULT_wxUSE_MENUS=no |
10f2d63a VZ |
1454 | DEFAULT_wxUSE_MINIFRAME=no |
1455 | DEFAULT_wxUSE_HTML=no | |
24528b0c | 1456 | DEFAULT_wxUSE_FILESYSTEM=no |
10f2d63a VZ |
1457 | DEFAULT_wxUSE_FS_INET=no |
1458 | DEFAULT_wxUSE_FS_ZIP=no | |
1459 | DEFAULT_wxUSE_BUSYINFO=no | |
1460 | DEFAULT_wxUSE_ZIPSTREAM=no | |
1e6feb95 | 1461 | DEFAULT_wxUSE_VALIDATORS=no |
10f2d63a VZ |
1462 | |
1463 | DEFAULT_wxUSE_ACCEL=no | |
1e6feb95 | 1464 | DEFAULT_wxUSE_BUTTON=no |
10f2d63a | 1465 | DEFAULT_wxUSE_BMPBUTTON=no |
1e6feb95 VZ |
1466 | DEFAULT_wxUSE_CALCTRL=no |
1467 | DEFAULT_wxUSE_CARET=no | |
10f2d63a VZ |
1468 | DEFAULT_wxUSE_CHECKBOX=no |
1469 | DEFAULT_wxUSE_CHECKLST=no | |
1e6feb95 | 1470 | DEFAULT_wxUSE_CHOICE=no |
10f2d63a VZ |
1471 | DEFAULT_wxUSE_COMBOBOX=no |
1472 | DEFAULT_wxUSE_GAUGE=no | |
1473 | DEFAULT_wxUSE_GRID=no | |
1474 | DEFAULT_wxUSE_NEW_GRID=no | |
1475 | DEFAULT_wxUSE_IMAGLIST=no | |
1476 | DEFAULT_wxUSE_LISTBOX=no | |
1477 | DEFAULT_wxUSE_LISTCTRL=no | |
1478 | DEFAULT_wxUSE_NOTEBOOK=no | |
1479 | DEFAULT_wxUSE_RADIOBOX=no | |
1480 | DEFAULT_wxUSE_RADIOBTN=no | |
1481 | DEFAULT_wxUSE_SASH=no | |
1482 | DEFAULT_wxUSE_SCROLLBAR=no | |
1483 | DEFAULT_wxUSE_SLIDER=no | |
1484 | DEFAULT_wxUSE_SPINBTN=no | |
56cfaa52 | 1485 | DEFAULT_wxUSE_SPINCTRL=no |
10f2d63a VZ |
1486 | DEFAULT_wxUSE_SPLITTER=no |
1487 | DEFAULT_wxUSE_STATBMP=no | |
1488 | DEFAULT_wxUSE_STATBOX=no | |
1489 | DEFAULT_wxUSE_STATLINE=no | |
1e6feb95 | 1490 | DEFAULT_wxUSE_STATTEXT=no |
10f2d63a VZ |
1491 | DEFAULT_wxUSE_STATUSBAR=yes |
1492 | DEFAULT_wxUSE_TABDIALOG=no | |
1e6feb95 | 1493 | DEFAULT_wxUSE_TEXTCTRL=no |
1db8dc4a | 1494 | DEFAULT_wxUSE_TOGGLEBTN=no |
10f2d63a | 1495 | DEFAULT_wxUSE_TOOLBAR=no |
360d6699 VZ |
1496 | DEFAULT_wxUSE_TOOLBAR_NATIVE=no |
1497 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=no | |
10f2d63a VZ |
1498 | DEFAULT_wxUSE_TREECTRL=no |
1499 | ||
1500 | DEFAULT_wxUSE_UNICODE=no | |
1501 | DEFAULT_wxUSE_WCSRTOMBS=no | |
1502 | ||
0046ff7c | 1503 | DEFAULT_wxUSE_IMAGE=no |
10f2d63a VZ |
1504 | DEFAULT_wxUSE_GIF=no |
1505 | DEFAULT_wxUSE_PCX=no | |
1506 | DEFAULT_wxUSE_PNM=no | |
0046ff7c | 1507 | DEFAULT_wxUSE_XPM=no |
10f2d63a | 1508 | else |
1e6feb95 VZ |
1509 | DEFAULT_wxUSE_UNIVERSAL=no |
1510 | ||
10f2d63a VZ |
1511 | DEFAULT_wxUSE_THREADS=yes |
1512 | ||
1513 | DEFAULT_wxUSE_SHARED=yes | |
00cf1208 | 1514 | DEFAULT_wxUSE_BURNT_NAME=no |
10f2d63a VZ |
1515 | DEFAULT_wxUSE_OPTIMISE=yes |
1516 | DEFAULT_wxUSE_PROFILE=no | |
1517 | DEFAULT_wxUSE_NO_DEPS=no | |
1518 | DEFAULT_wxUSE_NO_RTTI=no | |
1519 | DEFAULT_wxUSE_NO_EXCEPTIONS=no | |
1520 | DEFAULT_wxUSE_PERMISSIVE=no | |
1521 | DEFAULT_wxUSE_DEBUG_FLAG=no | |
1522 | DEFAULT_wxUSE_DEBUG_INFO=no | |
1523 | DEFAULT_wxUSE_DEBUG_GDB=no | |
1524 | DEFAULT_wxUSE_MEM_TRACING=no | |
1525 | DEFAULT_wxUSE_DEBUG_CONTEXT=no | |
1526 | DEFAULT_wxUSE_DMALLOC=no | |
1527 | DEFAULT_wxUSE_APPLE_IEEE=yes | |
1528 | ||
1529 | DEFAULT_wxUSE_LOG=yes | |
d73be714 VZ |
1530 | DEFAULT_wxUSE_LOGWINDOW=yes |
1531 | DEFAULT_wxUSE_LOGGUI=yes | |
10f2d63a VZ |
1532 | |
1533 | DEFAULT_wxUSE_GUI=yes | |
1534 | ||
1535 | DEFAULT_wxUSE_ZLIB=yes | |
1536 | DEFAULT_wxUSE_LIBPNG=yes | |
1537 | DEFAULT_wxUSE_LIBJPEG=yes | |
b47c832e | 1538 | DEFAULT_wxUSE_LIBTIFF=yes |
16b52fa1 | 1539 | DEFAULT_wxUSE_ODBC=no |
3fed1840 | 1540 | DEFAULT_wxUSE_FREETYPE=no |
bdad4e7e | 1541 | DEFAULT_wxUSE_OPENGL=no |
10f2d63a | 1542 | |
eb4efbdc | 1543 | DEFAULT_wxUSE_ON_FATAL_EXCEPTION=yes |
4f3c5f06 | 1544 | DEFAULT_wxUSE_SNGLINST_CHECKER=yes |
10f2d63a | 1545 | DEFAULT_wxUSE_STD_IOSTREAM=no |
1e6feb95 VZ |
1546 | DEFAULT_wxUSE_CMDLINE_PARSER=yes |
1547 | DEFAULT_wxUSE_DATETIME=yes | |
1548 | DEFAULT_wxUSE_TIMEDATE=no | |
1549 | DEFAULT_wxUSE_TIMER=yes | |
1550 | DEFAULT_wxUSE_STOPWATCH=yes | |
10f2d63a | 1551 | DEFAULT_wxUSE_FILE=yes |
1e6feb95 | 1552 | DEFAULT_wxUSE_FFILE=yes |
10f2d63a | 1553 | DEFAULT_wxUSE_TEXTFILE=yes |
10f2d63a VZ |
1554 | DEFAULT_wxUSE_WAVE=no |
1555 | DEFAULT_wxUSE_INTL=yes | |
1556 | DEFAULT_wxUSE_CONFIG=yes | |
1e6feb95 | 1557 | DEFAULT_wxUSE_FONTMAP=yes |
10f2d63a VZ |
1558 | DEFAULT_wxUSE_STREAMS=yes |
1559 | DEFAULT_wxUSE_SOCKETS=yes | |
1560 | DEFAULT_wxUSE_DIALUP_MANAGER=yes | |
1561 | DEFAULT_wxUSE_SERIAL=yes | |
1562 | DEFAULT_wxUSE_JOYSTICK=yes | |
1563 | DEFAULT_wxUSE_DYNLIB_CLASS=yes | |
b685cd9b | 1564 | DEFAULT_wxUSE_LONGLONG=yes |
e8f65ba6 | 1565 | DEFAULT_wxUSE_GEOMETRY=yes |
10f2d63a VZ |
1566 | |
1567 | DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes | |
1568 | DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes | |
1569 | DEFAULT_wxUSE_POSTSCRIPT=yes | |
1570 | ||
1571 | DEFAULT_wxUSE_X_RESOURCES=no | |
1572 | DEFAULT_wxUSE_CLIPBOARD=yes | |
1573 | DEFAULT_wxUSE_TOOLTIPS=yes | |
1574 | DEFAULT_wxUSE_DRAG_AND_DROP=yes | |
1575 | DEFAULT_wxUSE_SPLINES=yes | |
1576 | ||
1577 | DEFAULT_wxUSE_MDI_ARCHITECTURE=yes | |
1578 | DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes | |
1579 | DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes | |
1580 | ||
1581 | DEFAULT_wxUSE_PROLOGIO=yes | |
1582 | DEFAULT_wxUSE_RESOURCES=yes | |
1583 | DEFAULT_wxUSE_CONSTRAINTS=yes | |
1584 | DEFAULT_wxUSE_IPC=yes | |
1585 | DEFAULT_wxUSE_HELP=yes | |
1586 | DEFAULT_wxUSE_WXTREE=yes | |
1587 | DEFAULT_wxUSE_METAFILE=yes | |
1e6feb95 | 1588 | DEFAULT_wxUSE_MIMETYPE=yes |
10f2d63a VZ |
1589 | |
1590 | DEFAULT_wxUSE_COMMONDLGS=yes | |
1e6feb95 VZ |
1591 | DEFAULT_wxUSE_CHOICEDLG=yes |
1592 | DEFAULT_wxUSE_COLOURDLG=yes | |
10f2d63a | 1593 | DEFAULT_wxUSE_DIRDLG=yes |
1e6feb95 VZ |
1594 | DEFAULT_wxUSE_FILEDLG=yes |
1595 | DEFAULT_wxUSE_FONTDLG=yes | |
1596 | DEFAULT_wxUSE_MSGDLG=yes | |
1597 | DEFAULT_wxUSE_NUMBERDLG=yes | |
10f2d63a VZ |
1598 | DEFAULT_wxUSE_TEXTDLG=yes |
1599 | DEFAULT_wxUSE_STARTUP_TIPS=yes | |
1600 | DEFAULT_wxUSE_PROGRESSDLG=yes | |
1e6feb95 | 1601 | DEFAULT_wxUSE_MENUS=yes |
10f2d63a VZ |
1602 | DEFAULT_wxUSE_MINIFRAME=yes |
1603 | DEFAULT_wxUSE_HTML=yes | |
24528b0c | 1604 | DEFAULT_wxUSE_FILESYSTEM=yes |
10f2d63a VZ |
1605 | DEFAULT_wxUSE_FS_INET=yes |
1606 | DEFAULT_wxUSE_FS_ZIP=yes | |
1607 | DEFAULT_wxUSE_BUSYINFO=yes | |
1608 | DEFAULT_wxUSE_ZIPSTREAM=yes | |
1609 | DEFAULT_wxUSE_VALIDATORS=yes | |
1610 | ||
1611 | DEFAULT_wxUSE_ACCEL=yes | |
1e6feb95 | 1612 | DEFAULT_wxUSE_BUTTON=yes |
10f2d63a | 1613 | DEFAULT_wxUSE_BMPBUTTON=yes |
1e6feb95 VZ |
1614 | DEFAULT_wxUSE_CALCTRL=yes |
1615 | DEFAULT_wxUSE_CARET=yes | |
10f2d63a VZ |
1616 | DEFAULT_wxUSE_CHECKBOX=yes |
1617 | DEFAULT_wxUSE_CHECKLST=yes | |
1618 | DEFAULT_wxUSE_CHOICE=yes | |
1619 | DEFAULT_wxUSE_COMBOBOX=yes | |
1620 | DEFAULT_wxUSE_GAUGE=yes | |
1621 | DEFAULT_wxUSE_GRID=yes | |
cc977e5f | 1622 | DEFAULT_wxUSE_NEW_GRID=yes |
10f2d63a VZ |
1623 | DEFAULT_wxUSE_IMAGLIST=yes |
1624 | DEFAULT_wxUSE_LISTBOX=yes | |
1625 | DEFAULT_wxUSE_LISTCTRL=yes | |
1626 | DEFAULT_wxUSE_NOTEBOOK=yes | |
1627 | DEFAULT_wxUSE_RADIOBOX=yes | |
1628 | DEFAULT_wxUSE_RADIOBTN=yes | |
1629 | DEFAULT_wxUSE_SASH=yes | |
1630 | DEFAULT_wxUSE_SCROLLBAR=yes | |
1631 | DEFAULT_wxUSE_SLIDER=yes | |
1632 | DEFAULT_wxUSE_SPINBTN=yes | |
56cfaa52 | 1633 | DEFAULT_wxUSE_SPINCTRL=yes |
10f2d63a VZ |
1634 | DEFAULT_wxUSE_SPLITTER=yes |
1635 | DEFAULT_wxUSE_STATBMP=yes | |
1636 | DEFAULT_wxUSE_STATBOX=yes | |
1637 | DEFAULT_wxUSE_STATLINE=yes | |
1e6feb95 | 1638 | DEFAULT_wxUSE_STATTEXT=yes |
10f2d63a VZ |
1639 | DEFAULT_wxUSE_STATUSBAR=yes |
1640 | DEFAULT_wxUSE_TABDIALOG=no | |
1e6feb95 | 1641 | DEFAULT_wxUSE_TEXTCTRL=yes |
1db8dc4a | 1642 | DEFAULT_wxUSE_TOGGLEBTN=yes |
10f2d63a | 1643 | DEFAULT_wxUSE_TOOLBAR=yes |
360d6699 VZ |
1644 | DEFAULT_wxUSE_TOOLBAR_NATIVE=yes |
1645 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes | |
10f2d63a VZ |
1646 | DEFAULT_wxUSE_TREECTRL=yes |
1647 | ||
1648 | DEFAULT_wxUSE_UNICODE=no | |
1649 | DEFAULT_wxUSE_WCSRTOMBS=no | |
1650 | ||
0046ff7c | 1651 | DEFAULT_wxUSE_IMAGE=yes |
10f2d63a VZ |
1652 | DEFAULT_wxUSE_GIF=yes |
1653 | DEFAULT_wxUSE_PCX=yes | |
1654 | DEFAULT_wxUSE_PNM=yes | |
0046ff7c | 1655 | DEFAULT_wxUSE_XPM=yes |
10f2d63a VZ |
1656 | fi |
1657 | ||
698dcdb6 VZ |
1658 | |
1659 | ||
10f2d63a VZ |
1660 | for toolkit in `echo $ALL_TOOLKITS`; do |
1661 | LINE=`grep "wxUSE_$toolkit" ${wx_arg_cache_file}` | |
1662 | if test "x$LINE" != x ; then | |
1663 | has_toolkit_in_cache=1 | |
1664 | eval "DEFAULT_$LINE" | |
1665 | eval "CACHE_$toolkit=1" | |
1666 | fi | |
1667 | done | |
1668 | ||
698dcdb6 VZ |
1669 | |
1670 | ||
1671 | echo $ac_n "checking for --enable-gui""... $ac_c" 1>&6 | |
d73be714 | 1672 | echo "configure:1673: checking for --enable-gui" >&5 |
10f2d63a VZ |
1673 | no_cache=0 |
1674 | # Check whether --enable-gui or --disable-gui was given. | |
1675 | if test "${enable_gui+set}" = set; then | |
1676 | enableval="$enable_gui" | |
698dcdb6 | 1677 | |
10f2d63a VZ |
1678 | if test "$enableval" = yes; then |
1679 | ac_cv_use_gui='wxUSE_GUI=yes' | |
1680 | else | |
1681 | ac_cv_use_gui='wxUSE_GUI=no' | |
1682 | fi | |
698dcdb6 | 1683 | |
10f2d63a | 1684 | else |
698dcdb6 | 1685 | |
10f2d63a VZ |
1686 | LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}` |
1687 | if test "x$LINE" != x ; then | |
1688 | eval "DEFAULT_$LINE" | |
1689 | else | |
1690 | no_cache=1 | |
1691 | fi | |
1692 | ||
1693 | ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI | |
698dcdb6 VZ |
1694 | |
1695 | fi | |
10f2d63a VZ |
1696 | |
1697 | ||
1698 | eval "$ac_cv_use_gui" | |
1699 | if test "$no_cache" != 1; then | |
1700 | echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp | |
1701 | fi | |
1702 | ||
1703 | if test "$wxUSE_GUI" = yes; then | |
698dcdb6 | 1704 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 1705 | else |
698dcdb6 | 1706 | echo "$ac_t""no" 1>&6 |
10f2d63a | 1707 | fi |
698dcdb6 | 1708 | |
10f2d63a | 1709 | |
b12915c1 | 1710 | if test "$wxUSE_GUI" = "yes"; then |
10f2d63a | 1711 | |
1e6feb95 VZ |
1712 | |
1713 | echo $ac_n "checking for --enable-universal""... $ac_c" 1>&6 | |
d73be714 | 1714 | echo "configure:1715: checking for --enable-universal" >&5 |
1e6feb95 VZ |
1715 | no_cache=0 |
1716 | # Check whether --enable-universal or --disable-universal was given. | |
1717 | if test "${enable_universal+set}" = set; then | |
1718 | enableval="$enable_universal" | |
1719 | ||
1720 | if test "$enableval" = yes; then | |
1721 | ac_cv_use_universal='wxUSE_UNIVERSAL=yes' | |
1722 | else | |
1723 | ac_cv_use_universal='wxUSE_UNIVERSAL=no' | |
1724 | fi | |
1725 | ||
1726 | else | |
1727 | ||
1728 | LINE=`grep "wxUSE_UNIVERSAL" ${wx_arg_cache_file}` | |
1729 | if test "x$LINE" != x ; then | |
1730 | eval "DEFAULT_$LINE" | |
1731 | else | |
1732 | no_cache=1 | |
1733 | fi | |
1734 | ||
1735 | ac_cv_use_universal='wxUSE_UNIVERSAL='$DEFAULT_wxUSE_UNIVERSAL | |
1736 | ||
1737 | fi | |
1738 | ||
1739 | ||
1740 | eval "$ac_cv_use_universal" | |
1741 | if test "$no_cache" != 1; then | |
1742 | echo $ac_cv_use_universal >> ${wx_arg_cache_file}.tmp | |
1743 | fi | |
1744 | ||
1745 | if test "$wxUSE_UNIVERSAL" = yes; then | |
1746 | echo "$ac_t""yes" 1>&6 | |
1747 | else | |
1748 | echo "$ac_t""no" 1>&6 | |
1749 | fi | |
1750 | ||
10f2d63a VZ |
1751 | # Check whether --with-gtk or --without-gtk was given. |
1752 | if test "${with_gtk+set}" = set; then | |
1753 | withval="$with_gtk" | |
1754 | wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1 | |
698dcdb6 | 1755 | fi |
10f2d63a VZ |
1756 | |
1757 | # Check whether --with-motif or --without-motif was given. | |
1758 | if test "${with_motif+set}" = set; then | |
1759 | withval="$with_motif" | |
1760 | wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1 | |
698dcdb6 | 1761 | fi |
10f2d63a | 1762 | |
b4085ce6 GD |
1763 | # Check whether --with-mac or --without-mac was given. |
1764 | if test "${with_mac+set}" = set; then | |
1765 | withval="$with_mac" | |
1766 | wxUSE_MAC="$withval" TOOLKIT_GIVEN=1 | |
698dcdb6 | 1767 | fi |
b4085ce6 | 1768 | |
10f2d63a VZ |
1769 | # Check whether --with-wine or --without-wine was given. |
1770 | if test "${with_wine+set}" = set; then | |
1771 | withval="$with_wine" | |
1772 | wxUSE_WINE="$withval" CACHE_WINE=1 TOOLKIT_GIVEN=1 | |
698dcdb6 | 1773 | fi |
10f2d63a VZ |
1774 | |
1775 | # Check whether --with-cygwin or --without-cygwin was given. | |
1776 | if test "${with_cygwin+set}" = set; then | |
1777 | withval="$with_cygwin" | |
1778 | wxUSE_CYGWIN="$withval" CACHE_CYGWIN=1 TOOLKIT_GIVEN=1 | |
698dcdb6 | 1779 | fi |
10f2d63a VZ |
1780 | |
1781 | # Check whether --with-mingw or --without-mingw was given. | |
1782 | if test "${with_mingw+set}" = set; then | |
1783 | withval="$with_mingw" | |
1784 | wxUSE_MINGW="$withval" CACHE_MINGW=1 TOOLKIT_GIVEN=1 | |
698dcdb6 | 1785 | fi |
10f2d63a | 1786 | |
e07802fc VZ |
1787 | # Check whether --with-pm or --without-pm was given. |
1788 | if test "${with_pm+set}" = set; then | |
1789 | withval="$with_pm" | |
1790 | wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1 | |
698dcdb6 VZ |
1791 | fi |
1792 | ||
1e6feb95 VZ |
1793 | # Check whether --with-mgl or --without-mgl was given. |
1794 | if test "${with_mgl+set}" = set; then | |
1795 | withval="$with_mgl" | |
1796 | wxUSE_MGL="$withval" CACHE_MGL=1 TOOLKIT_GIVEN=1 | |
1797 | fi | |
1798 | ||
10f2d63a | 1799 | |
8168de4c VZ |
1800 | # Check whether --enable-gtk2 or --disable-gtk2 was given. |
1801 | if test "${enable_gtk2+set}" = set; then | |
1802 | enableval="$enable_gtk2" | |
1803 | wxUSE_GTK2=1 | |
10f2d63a | 1804 | else |
8168de4c | 1805 | wxUSE_GTK2=0 |
698dcdb6 VZ |
1806 | fi |
1807 | ||
703e0a69 | 1808 | |
1e487827 | 1809 | |
698dcdb6 | 1810 | echo $ac_n "checking for --with-libpng""... $ac_c" 1>&6 |
d73be714 | 1811 | echo "configure:1812: checking for --with-libpng" >&5 |
698dcdb6 VZ |
1812 | no_cache=0 |
1813 | # Check whether --with-libpng or --without-libpng was given. | |
b12915c1 VZ |
1814 | if test "${with_libpng+set}" = set; then |
1815 | withval="$with_libpng" | |
698dcdb6 | 1816 | |
10f2d63a | 1817 | if test "$withval" = yes; then |
b12915c1 | 1818 | ac_cv_use_libpng='wxUSE_LIBPNG=yes' |
422107f9 | 1819 | elif test "$withval" = no; then |
b12915c1 | 1820 | ac_cv_use_libpng='wxUSE_LIBPNG=no' |
422107f9 VZ |
1821 | elif test "$withval" = sys; then |
1822 | ac_cv_use_libpng='wxUSE_LIBPNG=sys' | |
1823 | else | |
698dcdb6 | 1824 | { echo "configure: error: Invalid value for --with-libpng: should be yes, no or sys" 1>&2; exit 1; } |
10f2d63a | 1825 | fi |
698dcdb6 | 1826 | |
10f2d63a | 1827 | else |
698dcdb6 | 1828 | |
b12915c1 | 1829 | LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}` |
10f2d63a VZ |
1830 | if test "x$LINE" != x ; then |
1831 | eval "DEFAULT_$LINE" | |
1832 | else | |
1833 | no_cache=1 | |
1834 | fi | |
1835 | ||
b12915c1 | 1836 | ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG |
698dcdb6 VZ |
1837 | |
1838 | fi | |
10f2d63a VZ |
1839 | |
1840 | ||
b12915c1 | 1841 | eval "$ac_cv_use_libpng" |
10f2d63a | 1842 | if test "$no_cache" != 1; then |
b12915c1 | 1843 | echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
1844 | fi |
1845 | ||
b12915c1 | 1846 | if test "$wxUSE_LIBPNG" = yes; then |
698dcdb6 | 1847 | echo "$ac_t""yes" 1>&6 |
422107f9 | 1848 | elif test "$wxUSE_LIBPNG" = no; then |
698dcdb6 | 1849 | echo "$ac_t""no" 1>&6 |
422107f9 | 1850 | elif test "$wxUSE_LIBPNG" = sys; then |
698dcdb6 | 1851 | echo "$ac_t""system version" 1>&6 |
422107f9 | 1852 | else |
698dcdb6 | 1853 | { echo "configure: error: Invalid value for --with-libpng: should be yes, no or sys" 1>&2; exit 1; } |
10f2d63a | 1854 | fi |
698dcdb6 | 1855 | |
10f2d63a | 1856 | |
698dcdb6 | 1857 | echo $ac_n "checking for --with-libjpeg""... $ac_c" 1>&6 |
d73be714 | 1858 | echo "configure:1859: checking for --with-libjpeg" >&5 |
10f2d63a | 1859 | no_cache=0 |
698dcdb6 | 1860 | # Check whether --with-libjpeg or --without-libjpeg was given. |
b12915c1 VZ |
1861 | if test "${with_libjpeg+set}" = set; then |
1862 | withval="$with_libjpeg" | |
698dcdb6 | 1863 | |
10f2d63a | 1864 | if test "$withval" = yes; then |
b12915c1 | 1865 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes' |
422107f9 | 1866 | elif test "$withval" = no; then |
b12915c1 | 1867 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=no' |
422107f9 VZ |
1868 | elif test "$withval" = sys; then |
1869 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=sys' | |
1870 | else | |
698dcdb6 | 1871 | { echo "configure: error: Invalid value for --with-libjpeg: should be yes, no or sys" 1>&2; exit 1; } |
10f2d63a | 1872 | fi |
698dcdb6 | 1873 | |
10f2d63a | 1874 | else |
698dcdb6 | 1875 | |
b12915c1 | 1876 | LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}` |
10f2d63a VZ |
1877 | if test "x$LINE" != x ; then |
1878 | eval "DEFAULT_$LINE" | |
1879 | else | |
1880 | no_cache=1 | |
1881 | fi | |
1882 | ||
b12915c1 | 1883 | ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG |
698dcdb6 VZ |
1884 | |
1885 | fi | |
10f2d63a VZ |
1886 | |
1887 | ||
b12915c1 | 1888 | eval "$ac_cv_use_libjpeg" |
10f2d63a | 1889 | if test "$no_cache" != 1; then |
b12915c1 | 1890 | echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
1891 | fi |
1892 | ||
b12915c1 | 1893 | if test "$wxUSE_LIBJPEG" = yes; then |
698dcdb6 | 1894 | echo "$ac_t""yes" 1>&6 |
422107f9 | 1895 | elif test "$wxUSE_LIBJPEG" = no; then |
698dcdb6 | 1896 | echo "$ac_t""no" 1>&6 |
422107f9 | 1897 | elif test "$wxUSE_LIBJPEG" = sys; then |
698dcdb6 | 1898 | echo "$ac_t""system version" 1>&6 |
422107f9 | 1899 | else |
698dcdb6 | 1900 | { echo "configure: error: Invalid value for --with-libjpeg: should be yes, no or sys" 1>&2; exit 1; } |
10f2d63a | 1901 | fi |
698dcdb6 | 1902 | |
10f2d63a | 1903 | |
698dcdb6 | 1904 | echo $ac_n "checking for --with-libtiff""... $ac_c" 1>&6 |
d73be714 | 1905 | echo "configure:1906: checking for --with-libtiff" >&5 |
10f2d63a | 1906 | no_cache=0 |
698dcdb6 | 1907 | # Check whether --with-libtiff or --without-libtiff was given. |
b12915c1 VZ |
1908 | if test "${with_libtiff+set}" = set; then |
1909 | withval="$with_libtiff" | |
698dcdb6 | 1910 | |
10f2d63a | 1911 | if test "$withval" = yes; then |
b12915c1 | 1912 | ac_cv_use_libtiff='wxUSE_LIBTIFF=yes' |
0dcf9893 | 1913 | elif test "$withval" = no; then |
b12915c1 | 1914 | ac_cv_use_libtiff='wxUSE_LIBTIFF=no' |
0dcf9893 VZ |
1915 | elif test "$withval" = sys; then |
1916 | ac_cv_use_libtiff='wxUSE_LIBTIFF=sys' | |
1917 | else | |
698dcdb6 | 1918 | { echo "configure: error: Invalid value for --with-libtiff: should be yes, no or sys" 1>&2; exit 1; } |
10f2d63a | 1919 | fi |
698dcdb6 | 1920 | |
10f2d63a | 1921 | else |
698dcdb6 | 1922 | |
b12915c1 | 1923 | LINE=`grep "wxUSE_LIBTIFF" ${wx_arg_cache_file}` |
10f2d63a VZ |
1924 | if test "x$LINE" != x ; then |
1925 | eval "DEFAULT_$LINE" | |
1926 | else | |
1927 | no_cache=1 | |
1928 | fi | |
1929 | ||
b12915c1 | 1930 | ac_cv_use_libtiff='wxUSE_LIBTIFF='$DEFAULT_wxUSE_LIBTIFF |
698dcdb6 VZ |
1931 | |
1932 | fi | |
10f2d63a VZ |
1933 | |
1934 | ||
b12915c1 | 1935 | eval "$ac_cv_use_libtiff" |
10f2d63a | 1936 | if test "$no_cache" != 1; then |
b12915c1 | 1937 | echo $ac_cv_use_libtiff >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
1938 | fi |
1939 | ||
b12915c1 | 1940 | if test "$wxUSE_LIBTIFF" = yes; then |
698dcdb6 | 1941 | echo "$ac_t""yes" 1>&6 |
0dcf9893 | 1942 | elif test "$wxUSE_LIBTIFF" = no; then |
698dcdb6 | 1943 | echo "$ac_t""no" 1>&6 |
0dcf9893 | 1944 | elif test "$wxUSE_LIBTIFF" = sys; then |
698dcdb6 | 1945 | echo "$ac_t""system version" 1>&6 |
0dcf9893 | 1946 | else |
698dcdb6 | 1947 | { echo "configure: error: Invalid value for --with-libtiff: should be yes, no or sys" 1>&2; exit 1; } |
10f2d63a | 1948 | fi |
698dcdb6 | 1949 | |
10f2d63a | 1950 | |
698dcdb6 | 1951 | echo $ac_n "checking for --with-freetype""... $ac_c" 1>&6 |
d73be714 | 1952 | echo "configure:1953: checking for --with-freetype" >&5 |
3fed1840 | 1953 | no_cache=0 |
698dcdb6 | 1954 | # Check whether --with-freetype or --without-freetype was given. |
3fed1840 RR |
1955 | if test "${with_freetype+set}" = set; then |
1956 | withval="$with_freetype" | |
698dcdb6 | 1957 | |
3fed1840 RR |
1958 | if test "$withval" = yes; then |
1959 | ac_cv_use_freetype='wxUSE_FREETYPE=yes' | |
1960 | elif test "$withval" = no; then | |
1961 | ac_cv_use_freetype='wxUSE_FREETYPE=no' | |
1962 | elif test "$withval" = sys; then | |
1963 | ac_cv_use_freetype='wxUSE_FREETYPE=sys' | |
1964 | else | |
698dcdb6 | 1965 | { echo "configure: error: Invalid value for --with-freetype: should be yes, no or sys" 1>&2; exit 1; } |
3fed1840 | 1966 | fi |
698dcdb6 | 1967 | |
3fed1840 | 1968 | else |
698dcdb6 | 1969 | |
3fed1840 RR |
1970 | LINE=`grep "wxUSE_FREETYPE" ${wx_arg_cache_file}` |
1971 | if test "x$LINE" != x ; then | |
1972 | eval "DEFAULT_$LINE" | |
1973 | else | |
1974 | no_cache=1 | |
1975 | fi | |
1976 | ||
1977 | ac_cv_use_freetype='wxUSE_FREETYPE='$DEFAULT_wxUSE_FREETYPE | |
698dcdb6 VZ |
1978 | |
1979 | fi | |
3fed1840 RR |
1980 | |
1981 | ||
1982 | eval "$ac_cv_use_freetype" | |
1983 | if test "$no_cache" != 1; then | |
1984 | echo $ac_cv_use_freetype >> ${wx_arg_cache_file}.tmp | |
1985 | fi | |
1986 | ||
1987 | if test "$wxUSE_FREETYPE" = yes; then | |
698dcdb6 | 1988 | echo "$ac_t""yes" 1>&6 |
3fed1840 | 1989 | elif test "$wxUSE_FREETYPE" = no; then |
698dcdb6 | 1990 | echo "$ac_t""no" 1>&6 |
3fed1840 | 1991 | elif test "$wxUSE_FREETYPE" = sys; then |
698dcdb6 | 1992 | echo "$ac_t""system version" 1>&6 |
3fed1840 | 1993 | else |
698dcdb6 | 1994 | { echo "configure: error: Invalid value for --with-freetype: should be yes, no or sys" 1>&2; exit 1; } |
3fed1840 | 1995 | fi |
698dcdb6 | 1996 | |
3fed1840 | 1997 | |
698dcdb6 | 1998 | echo $ac_n "checking for --with-opengl""... $ac_c" 1>&6 |
d73be714 | 1999 | echo "configure:2000: checking for --with-opengl" >&5 |
10f2d63a | 2000 | no_cache=0 |
698dcdb6 | 2001 | # Check whether --with-opengl or --without-opengl was given. |
b12915c1 VZ |
2002 | if test "${with_opengl+set}" = set; then |
2003 | withval="$with_opengl" | |
698dcdb6 | 2004 | |
10f2d63a | 2005 | if test "$withval" = yes; then |
b12915c1 | 2006 | ac_cv_use_opengl='wxUSE_OPENGL=yes' |
10f2d63a | 2007 | else |
b12915c1 | 2008 | ac_cv_use_opengl='wxUSE_OPENGL=no' |
10f2d63a | 2009 | fi |
698dcdb6 | 2010 | |
10f2d63a | 2011 | else |
698dcdb6 | 2012 | |
b12915c1 | 2013 | LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}` |
10f2d63a VZ |
2014 | if test "x$LINE" != x ; then |
2015 | eval "DEFAULT_$LINE" | |
2016 | else | |
2017 | no_cache=1 | |
2018 | fi | |
2019 | ||
b12915c1 | 2020 | ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL |
698dcdb6 VZ |
2021 | |
2022 | fi | |
10f2d63a VZ |
2023 | |
2024 | ||
b12915c1 | 2025 | eval "$ac_cv_use_opengl" |
10f2d63a | 2026 | if test "$no_cache" != 1; then |
b12915c1 | 2027 | echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
2028 | fi |
2029 | ||
b12915c1 | 2030 | if test "$wxUSE_OPENGL" = yes; then |
698dcdb6 | 2031 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2032 | else |
698dcdb6 | 2033 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2034 | fi |
698dcdb6 | 2035 | |
10f2d63a | 2036 | |
b12915c1 VZ |
2037 | fi |
2038 | ||
1e487827 | 2039 | |
698dcdb6 | 2040 | echo $ac_n "checking for --with-dmalloc""... $ac_c" 1>&6 |
d73be714 | 2041 | echo "configure:2042: checking for --with-dmalloc" >&5 |
698dcdb6 VZ |
2042 | no_cache=0 |
2043 | # Check whether --with-dmalloc or --without-dmalloc was given. | |
b12915c1 VZ |
2044 | if test "${with_dmalloc+set}" = set; then |
2045 | withval="$with_dmalloc" | |
698dcdb6 | 2046 | |
c7a2bf27 | 2047 | if test "$withval" = yes; then |
b12915c1 | 2048 | ac_cv_use_dmalloc='wxUSE_DMALLOC=yes' |
c7a2bf27 | 2049 | else |
b12915c1 | 2050 | ac_cv_use_dmalloc='wxUSE_DMALLOC=no' |
c7a2bf27 | 2051 | fi |
698dcdb6 | 2052 | |
c7a2bf27 | 2053 | else |
698dcdb6 | 2054 | |
b12915c1 | 2055 | LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}` |
c7a2bf27 RR |
2056 | if test "x$LINE" != x ; then |
2057 | eval "DEFAULT_$LINE" | |
2058 | else | |
2059 | no_cache=1 | |
2060 | fi | |
2061 | ||
b12915c1 | 2062 | ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC |
698dcdb6 VZ |
2063 | |
2064 | fi | |
c7a2bf27 RR |
2065 | |
2066 | ||
b12915c1 | 2067 | eval "$ac_cv_use_dmalloc" |
c7a2bf27 | 2068 | if test "$no_cache" != 1; then |
b12915c1 | 2069 | echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp |
c7a2bf27 RR |
2070 | fi |
2071 | ||
b12915c1 | 2072 | if test "$wxUSE_DMALLOC" = yes; then |
698dcdb6 | 2073 | echo "$ac_t""yes" 1>&6 |
c7a2bf27 | 2074 | else |
698dcdb6 | 2075 | echo "$ac_t""no" 1>&6 |
c7a2bf27 | 2076 | fi |
698dcdb6 | 2077 | |
c7a2bf27 | 2078 | |
698dcdb6 | 2079 | echo $ac_n "checking for --with-zlib""... $ac_c" 1>&6 |
d73be714 | 2080 | echo "configure:2081: checking for --with-zlib" >&5 |
10f2d63a | 2081 | no_cache=0 |
698dcdb6 | 2082 | # Check whether --with-zlib or --without-zlib was given. |
b12915c1 VZ |
2083 | if test "${with_zlib+set}" = set; then |
2084 | withval="$with_zlib" | |
698dcdb6 | 2085 | |
10f2d63a | 2086 | if test "$withval" = yes; then |
b12915c1 | 2087 | ac_cv_use_zlib='wxUSE_ZLIB=yes' |
422107f9 | 2088 | elif test "$withval" = no; then |
b12915c1 | 2089 | ac_cv_use_zlib='wxUSE_ZLIB=no' |
422107f9 VZ |
2090 | elif test "$withval" = sys; then |
2091 | ac_cv_use_zlib='wxUSE_ZLIB=sys' | |
2092 | else | |
698dcdb6 | 2093 | { echo "configure: error: Invalid value for --with-zlib: should be yes, no or sys" 1>&2; exit 1; } |
10f2d63a | 2094 | fi |
698dcdb6 | 2095 | |
10f2d63a | 2096 | else |
698dcdb6 | 2097 | |
b12915c1 | 2098 | LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}` |
10f2d63a VZ |
2099 | if test "x$LINE" != x ; then |
2100 | eval "DEFAULT_$LINE" | |
2101 | else | |
2102 | no_cache=1 | |
2103 | fi | |
2104 | ||
b12915c1 | 2105 | ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB |
698dcdb6 VZ |
2106 | |
2107 | fi | |
10f2d63a VZ |
2108 | |
2109 | ||
b12915c1 | 2110 | eval "$ac_cv_use_zlib" |
10f2d63a | 2111 | if test "$no_cache" != 1; then |
b12915c1 | 2112 | echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
2113 | fi |
2114 | ||
b12915c1 | 2115 | if test "$wxUSE_ZLIB" = yes; then |
698dcdb6 | 2116 | echo "$ac_t""yes" 1>&6 |
422107f9 | 2117 | elif test "$wxUSE_ZLIB" = no; then |
698dcdb6 | 2118 | echo "$ac_t""no" 1>&6 |
422107f9 | 2119 | elif test "$wxUSE_ZLIB" = sys; then |
698dcdb6 | 2120 | echo "$ac_t""system version" 1>&6 |
422107f9 | 2121 | else |
698dcdb6 | 2122 | { echo "configure: error: Invalid value for --with-zlib: should be yes, no or sys" 1>&2; exit 1; } |
10f2d63a | 2123 | fi |
698dcdb6 | 2124 | |
10f2d63a | 2125 | |
698dcdb6 | 2126 | echo $ac_n "checking for --with-odbc""... $ac_c" 1>&6 |
d73be714 | 2127 | echo "configure:2128: checking for --with-odbc" >&5 |
10f2d63a | 2128 | no_cache=0 |
698dcdb6 | 2129 | # Check whether --with-odbc or --without-odbc was given. |
10f2d63a VZ |
2130 | if test "${with_odbc+set}" = set; then |
2131 | withval="$with_odbc" | |
698dcdb6 | 2132 | |
10f2d63a VZ |
2133 | if test "$withval" = yes; then |
2134 | ac_cv_use_odbc='wxUSE_ODBC=yes' | |
2135 | else | |
2136 | ac_cv_use_odbc='wxUSE_ODBC=no' | |
2137 | fi | |
698dcdb6 | 2138 | |
10f2d63a | 2139 | else |
698dcdb6 | 2140 | |
10f2d63a VZ |
2141 | LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}` |
2142 | if test "x$LINE" != x ; then | |
2143 | eval "DEFAULT_$LINE" | |
2144 | else | |
2145 | no_cache=1 | |
2146 | fi | |
2147 | ||
2148 | ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC | |
698dcdb6 VZ |
2149 | |
2150 | fi | |
10f2d63a VZ |
2151 | |
2152 | ||
2153 | eval "$ac_cv_use_odbc" | |
2154 | if test "$no_cache" != 1; then | |
2155 | echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp | |
2156 | fi | |
2157 | ||
2158 | if test "$wxUSE_ODBC" = yes; then | |
698dcdb6 | 2159 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2160 | else |
698dcdb6 | 2161 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2162 | fi |
698dcdb6 VZ |
2163 | |
2164 | ||
10f2d63a | 2165 | |
698dcdb6 VZ |
2166 | |
2167 | ||
2168 | echo $ac_n "checking for --enable-shared""... $ac_c" 1>&6 | |
d73be714 | 2169 | echo "configure:2170: checking for --enable-shared" >&5 |
10f2d63a VZ |
2170 | no_cache=0 |
2171 | # Check whether --enable-shared or --disable-shared was given. | |
2172 | if test "${enable_shared+set}" = set; then | |
2173 | enableval="$enable_shared" | |
698dcdb6 | 2174 | |
10f2d63a VZ |
2175 | if test "$enableval" = yes; then |
2176 | ac_cv_use_shared='wxUSE_SHARED=yes' | |
2177 | else | |
2178 | ac_cv_use_shared='wxUSE_SHARED=no' | |
2179 | fi | |
698dcdb6 | 2180 | |
10f2d63a | 2181 | else |
698dcdb6 | 2182 | |
10f2d63a VZ |
2183 | LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}` |
2184 | if test "x$LINE" != x ; then | |
2185 | eval "DEFAULT_$LINE" | |
2186 | else | |
2187 | no_cache=1 | |
2188 | fi | |
2189 | ||
2190 | ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED | |
698dcdb6 VZ |
2191 | |
2192 | fi | |
10f2d63a VZ |
2193 | |
2194 | ||
2195 | eval "$ac_cv_use_shared" | |
2196 | if test "$no_cache" != 1; then | |
2197 | echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp | |
2198 | fi | |
2199 | ||
2200 | if test "$wxUSE_SHARED" = yes; then | |
698dcdb6 | 2201 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2202 | else |
698dcdb6 | 2203 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2204 | fi |
698dcdb6 | 2205 | |
10f2d63a | 2206 | |
698dcdb6 | 2207 | echo $ac_n "checking for --enable-burnt_name""... $ac_c" 1>&6 |
d73be714 | 2208 | echo "configure:2209: checking for --enable-burnt_name" >&5 |
00cf1208 RR |
2209 | no_cache=0 |
2210 | # Check whether --enable-burnt_name or --disable-burnt_name was given. | |
2211 | if test "${enable_burnt_name+set}" = set; then | |
2212 | enableval="$enable_burnt_name" | |
698dcdb6 | 2213 | |
00cf1208 RR |
2214 | if test "$enableval" = yes; then |
2215 | ac_cv_use_burnt_name='wxUSE_BURNT_NAME=yes' | |
2216 | else | |
2217 | ac_cv_use_burnt_name='wxUSE_BURNT_NAME=no' | |
2218 | fi | |
698dcdb6 | 2219 | |
00cf1208 | 2220 | else |
698dcdb6 | 2221 | |
00cf1208 RR |
2222 | LINE=`grep "wxUSE_BURNT_NAME" ${wx_arg_cache_file}` |
2223 | if test "x$LINE" != x ; then | |
2224 | eval "DEFAULT_$LINE" | |
2225 | else | |
2226 | no_cache=1 | |
2227 | fi | |
2228 | ||
2229 | ac_cv_use_burnt_name='wxUSE_BURNT_NAME='$DEFAULT_wxUSE_BURNT_NAME | |
698dcdb6 VZ |
2230 | |
2231 | fi | |
00cf1208 RR |
2232 | |
2233 | ||
2234 | eval "$ac_cv_use_burnt_name" | |
2235 | if test "$no_cache" != 1; then | |
2236 | echo $ac_cv_use_burnt_name >> ${wx_arg_cache_file}.tmp | |
2237 | fi | |
2238 | ||
2239 | if test "$wxUSE_BURNT_NAME" = yes; then | |
698dcdb6 | 2240 | echo "$ac_t""yes" 1>&6 |
00cf1208 | 2241 | else |
698dcdb6 | 2242 | echo "$ac_t""no" 1>&6 |
00cf1208 | 2243 | fi |
698dcdb6 | 2244 | |
00cf1208 | 2245 | |
698dcdb6 | 2246 | echo $ac_n "checking for --enable-optimise""... $ac_c" 1>&6 |
d73be714 | 2247 | echo "configure:2248: checking for --enable-optimise" >&5 |
10f2d63a VZ |
2248 | no_cache=0 |
2249 | # Check whether --enable-optimise or --disable-optimise was given. | |
2250 | if test "${enable_optimise+set}" = set; then | |
2251 | enableval="$enable_optimise" | |
698dcdb6 | 2252 | |
10f2d63a VZ |
2253 | if test "$enableval" = yes; then |
2254 | ac_cv_use_optimise='wxUSE_OPTIMISE=yes' | |
2255 | else | |
2256 | ac_cv_use_optimise='wxUSE_OPTIMISE=no' | |
2257 | fi | |
698dcdb6 | 2258 | |
10f2d63a | 2259 | else |
698dcdb6 | 2260 | |
10f2d63a VZ |
2261 | LINE=`grep "wxUSE_OPTIMISE" ${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_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE | |
698dcdb6 VZ |
2269 | |
2270 | fi | |
10f2d63a VZ |
2271 | |
2272 | ||
2273 | eval "$ac_cv_use_optimise" | |
2274 | if test "$no_cache" != 1; then | |
2275 | echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp | |
2276 | fi | |
2277 | ||
2278 | if test "$wxUSE_OPTIMISE" = 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-debug""... $ac_c" 1>&6 |
d73be714 | 2286 | echo "configure:2287: checking for --enable-debug" >&5 |
10f2d63a VZ |
2287 | no_cache=0 |
2288 | # Check whether --enable-debug or --disable-debug was given. | |
2289 | if test "${enable_debug+set}" = set; then | |
2290 | enableval="$enable_debug" | |
698dcdb6 | 2291 | |
10f2d63a VZ |
2292 | if test "$enableval" = yes; then |
2293 | ac_cv_use_debug='wxUSE_DEBUG=yes' | |
2294 | else | |
2295 | ac_cv_use_debug='wxUSE_DEBUG=no' | |
2296 | fi | |
698dcdb6 | 2297 | |
10f2d63a | 2298 | else |
698dcdb6 | 2299 | |
10f2d63a VZ |
2300 | LINE=`grep "wxUSE_DEBUG" ${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_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG | |
698dcdb6 VZ |
2308 | |
2309 | fi | |
10f2d63a VZ |
2310 | |
2311 | ||
2312 | eval "$ac_cv_use_debug" | |
2313 | if test "$no_cache" != 1; then | |
2314 | echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp | |
2315 | fi | |
2316 | ||
2317 | if test "$wxUSE_DEBUG" = yes; then | |
698dcdb6 | 2318 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2319 | else |
698dcdb6 | 2320 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2321 | fi |
698dcdb6 | 2322 | |
10f2d63a VZ |
2323 | |
2324 | if test "$wxUSE_DEBUG" = "yes"; then | |
2325 | DEFAULT_wxUSE_DEBUG_FLAG=yes | |
2326 | DEFAULT_wxUSE_DEBUG_INFO=yes | |
2327 | elif test "$wxUSE_DEBUG" = "no"; then | |
2328 | DEFAULT_wxUSE_DEBUG_FLAG=no | |
2329 | DEFAULT_wxUSE_DEBUG_INFO=no | |
2330 | fi | |
2331 | ||
698dcdb6 VZ |
2332 | |
2333 | echo $ac_n "checking for --enable-debug_flag""... $ac_c" 1>&6 | |
d73be714 | 2334 | echo "configure:2335: checking for --enable-debug_flag" >&5 |
10f2d63a VZ |
2335 | no_cache=0 |
2336 | # Check whether --enable-debug_flag or --disable-debug_flag was given. | |
2337 | if test "${enable_debug_flag+set}" = set; then | |
2338 | enableval="$enable_debug_flag" | |
698dcdb6 | 2339 | |
10f2d63a VZ |
2340 | if test "$enableval" = yes; then |
2341 | ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes' | |
2342 | else | |
2343 | ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no' | |
2344 | fi | |
698dcdb6 | 2345 | |
10f2d63a | 2346 | else |
698dcdb6 | 2347 | |
10f2d63a VZ |
2348 | LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}` |
2349 | if test "x$LINE" != x ; then | |
2350 | eval "DEFAULT_$LINE" | |
2351 | else | |
2352 | no_cache=1 | |
2353 | fi | |
2354 | ||
2355 | ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG | |
698dcdb6 VZ |
2356 | |
2357 | fi | |
10f2d63a VZ |
2358 | |
2359 | ||
2360 | eval "$ac_cv_use_debug_flag" | |
2361 | if test "$no_cache" != 1; then | |
2362 | echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp | |
2363 | fi | |
2364 | ||
2365 | if test "$wxUSE_DEBUG_FLAG" = yes; then | |
698dcdb6 | 2366 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2367 | else |
698dcdb6 | 2368 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2369 | fi |
698dcdb6 | 2370 | |
10f2d63a | 2371 | |
698dcdb6 | 2372 | echo $ac_n "checking for --enable-debug_info""... $ac_c" 1>&6 |
d73be714 | 2373 | echo "configure:2374: checking for --enable-debug_info" >&5 |
10f2d63a VZ |
2374 | no_cache=0 |
2375 | # Check whether --enable-debug_info or --disable-debug_info was given. | |
2376 | if test "${enable_debug_info+set}" = set; then | |
2377 | enableval="$enable_debug_info" | |
698dcdb6 | 2378 | |
10f2d63a VZ |
2379 | if test "$enableval" = yes; then |
2380 | ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes' | |
2381 | else | |
2382 | ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no' | |
2383 | fi | |
698dcdb6 | 2384 | |
10f2d63a | 2385 | else |
698dcdb6 | 2386 | |
10f2d63a VZ |
2387 | LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}` |
2388 | if test "x$LINE" != x ; then | |
2389 | eval "DEFAULT_$LINE" | |
2390 | else | |
2391 | no_cache=1 | |
2392 | fi | |
2393 | ||
2394 | ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO | |
698dcdb6 VZ |
2395 | |
2396 | fi | |
10f2d63a VZ |
2397 | |
2398 | ||
2399 | eval "$ac_cv_use_debug_info" | |
2400 | if test "$no_cache" != 1; then | |
2401 | echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp | |
2402 | fi | |
2403 | ||
2404 | if test "$wxUSE_DEBUG_INFO" = yes; then | |
698dcdb6 | 2405 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2406 | else |
698dcdb6 | 2407 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2408 | fi |
698dcdb6 | 2409 | |
10f2d63a | 2410 | |
698dcdb6 | 2411 | echo $ac_n "checking for --enable-debug_gdb""... $ac_c" 1>&6 |
d73be714 | 2412 | echo "configure:2413: checking for --enable-debug_gdb" >&5 |
10f2d63a VZ |
2413 | no_cache=0 |
2414 | # Check whether --enable-debug_gdb or --disable-debug_gdb was given. | |
2415 | if test "${enable_debug_gdb+set}" = set; then | |
2416 | enableval="$enable_debug_gdb" | |
698dcdb6 | 2417 | |
10f2d63a VZ |
2418 | if test "$enableval" = yes; then |
2419 | ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes' | |
2420 | else | |
2421 | ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no' | |
2422 | fi | |
698dcdb6 | 2423 | |
10f2d63a | 2424 | else |
698dcdb6 | 2425 | |
10f2d63a VZ |
2426 | LINE=`grep "wxUSE_DEBUG_GDB" ${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_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB | |
698dcdb6 VZ |
2434 | |
2435 | fi | |
10f2d63a VZ |
2436 | |
2437 | ||
2438 | eval "$ac_cv_use_debug_gdb" | |
2439 | if test "$no_cache" != 1; then | |
2440 | echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp | |
2441 | fi | |
2442 | ||
2443 | if test "$wxUSE_DEBUG_GDB" = 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_cntxt""... $ac_c" 1>&6 |
d73be714 | 2451 | echo "configure:2452: checking for --enable-debug_cntxt" >&5 |
10f2d63a VZ |
2452 | no_cache=0 |
2453 | # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given. | |
2454 | if test "${enable_debug_cntxt+set}" = set; then | |
2455 | enableval="$enable_debug_cntxt" | |
698dcdb6 | 2456 | |
10f2d63a VZ |
2457 | if test "$enableval" = yes; then |
2458 | ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes' | |
2459 | else | |
2460 | ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no' | |
2461 | fi | |
698dcdb6 | 2462 | |
10f2d63a | 2463 | else |
698dcdb6 | 2464 | |
10f2d63a VZ |
2465 | LINE=`grep "wxUSE_DEBUG_CONTEXT" ${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_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT | |
698dcdb6 VZ |
2473 | |
2474 | fi | |
10f2d63a VZ |
2475 | |
2476 | ||
2477 | eval "$ac_cv_use_debug_cntxt" | |
2478 | if test "$no_cache" != 1; then | |
2479 | echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp | |
2480 | fi | |
2481 | ||
2482 | if test "$wxUSE_DEBUG_CONTEXT" = 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-mem_tracing""... $ac_c" 1>&6 |
d73be714 | 2490 | echo "configure:2491: checking for --enable-mem_tracing" >&5 |
10f2d63a VZ |
2491 | no_cache=0 |
2492 | # Check whether --enable-mem_tracing or --disable-mem_tracing was given. | |
2493 | if test "${enable_mem_tracing+set}" = set; then | |
2494 | enableval="$enable_mem_tracing" | |
698dcdb6 | 2495 | |
10f2d63a VZ |
2496 | if test "$enableval" = yes; then |
2497 | ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes' | |
2498 | else | |
2499 | ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no' | |
2500 | fi | |
698dcdb6 | 2501 | |
10f2d63a | 2502 | else |
698dcdb6 | 2503 | |
10f2d63a VZ |
2504 | LINE=`grep "wxUSE_MEM_TRACING" ${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_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING | |
698dcdb6 VZ |
2512 | |
2513 | fi | |
10f2d63a VZ |
2514 | |
2515 | ||
2516 | eval "$ac_cv_use_mem_tracing" | |
2517 | if test "$no_cache" != 1; then | |
2518 | echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp | |
2519 | fi | |
2520 | ||
2521 | if test "$wxUSE_MEM_TRACING" = 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-profile""... $ac_c" 1>&6 |
d73be714 | 2529 | echo "configure:2530: checking for --enable-profile" >&5 |
10f2d63a VZ |
2530 | no_cache=0 |
2531 | # Check whether --enable-profile or --disable-profile was given. | |
2532 | if test "${enable_profile+set}" = set; then | |
2533 | enableval="$enable_profile" | |
698dcdb6 | 2534 | |
10f2d63a VZ |
2535 | if test "$enableval" = yes; then |
2536 | ac_cv_use_profile='wxUSE_PROFILE=yes' | |
2537 | else | |
2538 | ac_cv_use_profile='wxUSE_PROFILE=no' | |
2539 | fi | |
698dcdb6 | 2540 | |
10f2d63a | 2541 | else |
698dcdb6 | 2542 | |
10f2d63a VZ |
2543 | LINE=`grep "wxUSE_PROFILE" ${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_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE | |
698dcdb6 VZ |
2551 | |
2552 | fi | |
10f2d63a VZ |
2553 | |
2554 | ||
2555 | eval "$ac_cv_use_profile" | |
2556 | if test "$no_cache" != 1; then | |
2557 | echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp | |
2558 | fi | |
2559 | ||
2560 | if test "$wxUSE_PROFILE" = 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-no_rtti""... $ac_c" 1>&6 |
d73be714 | 2568 | echo "configure:2569: checking for --enable-no_rtti" >&5 |
10f2d63a VZ |
2569 | no_cache=0 |
2570 | # Check whether --enable-no_rtti or --disable-no_rtti was given. | |
2571 | if test "${enable_no_rtti+set}" = set; then | |
2572 | enableval="$enable_no_rtti" | |
698dcdb6 | 2573 | |
10f2d63a VZ |
2574 | if test "$enableval" = yes; then |
2575 | ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes' | |
2576 | else | |
2577 | ac_cv_use_no_rtti='wxUSE_NO_RTTI=no' | |
2578 | fi | |
698dcdb6 | 2579 | |
10f2d63a | 2580 | else |
698dcdb6 | 2581 | |
10f2d63a VZ |
2582 | LINE=`grep "wxUSE_NO_RTTI" ${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_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI | |
698dcdb6 VZ |
2590 | |
2591 | fi | |
10f2d63a VZ |
2592 | |
2593 | ||
2594 | eval "$ac_cv_use_no_rtti" | |
2595 | if test "$no_cache" != 1; then | |
2596 | echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp | |
2597 | fi | |
2598 | ||
2599 | if test "$wxUSE_NO_RTTI" = 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-no_exceptions""... $ac_c" 1>&6 |
d73be714 | 2607 | echo "configure:2608: checking for --enable-no_exceptions" >&5 |
10f2d63a VZ |
2608 | no_cache=0 |
2609 | # Check whether --enable-no_exceptions or --disable-no_exceptions was given. | |
2610 | if test "${enable_no_exceptions+set}" = set; then | |
2611 | enableval="$enable_no_exceptions" | |
698dcdb6 | 2612 | |
10f2d63a VZ |
2613 | if test "$enableval" = yes; then |
2614 | ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes' | |
2615 | else | |
2616 | ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no' | |
2617 | fi | |
698dcdb6 | 2618 | |
10f2d63a | 2619 | else |
698dcdb6 | 2620 | |
10f2d63a VZ |
2621 | LINE=`grep "wxUSE_NO_EXCEPTIONS" ${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_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS | |
698dcdb6 VZ |
2629 | |
2630 | fi | |
10f2d63a VZ |
2631 | |
2632 | ||
2633 | eval "$ac_cv_use_no_exceptions" | |
2634 | if test "$no_cache" != 1; then | |
2635 | echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp | |
2636 | fi | |
2637 | ||
2638 | if test "$wxUSE_NO_EXCEPTIONS" = 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-permissive""... $ac_c" 1>&6 |
d73be714 | 2646 | echo "configure:2647: checking for --enable-permissive" >&5 |
10f2d63a VZ |
2647 | no_cache=0 |
2648 | # Check whether --enable-permissive or --disable-permissive was given. | |
2649 | if test "${enable_permissive+set}" = set; then | |
2650 | enableval="$enable_permissive" | |
698dcdb6 | 2651 | |
10f2d63a VZ |
2652 | if test "$enableval" = yes; then |
2653 | ac_cv_use_permissive='wxUSE_PERMISSIVE=yes' | |
2654 | else | |
2655 | ac_cv_use_permissive='wxUSE_PERMISSIVE=no' | |
2656 | fi | |
698dcdb6 | 2657 | |
10f2d63a | 2658 | else |
698dcdb6 | 2659 | |
10f2d63a VZ |
2660 | LINE=`grep "wxUSE_PERMISSIVE" ${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_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE | |
698dcdb6 VZ |
2668 | |
2669 | fi | |
10f2d63a VZ |
2670 | |
2671 | ||
2672 | eval "$ac_cv_use_permissive" | |
2673 | if test "$no_cache" != 1; then | |
2674 | echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp | |
2675 | fi | |
2676 | ||
2677 | if test "$wxUSE_PERMISSIVE" = 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_deps""... $ac_c" 1>&6 |
d73be714 | 2685 | echo "configure:2686: checking for --enable-no_deps" >&5 |
10f2d63a VZ |
2686 | no_cache=0 |
2687 | # Check whether --enable-no_deps or --disable-no_deps was given. | |
2688 | if test "${enable_no_deps+set}" = set; then | |
2689 | enableval="$enable_no_deps" | |
698dcdb6 | 2690 | |
10f2d63a VZ |
2691 | if test "$enableval" = yes; then |
2692 | ac_cv_use_no_deps='wxUSE_NO_DEPS=yes' | |
2693 | else | |
2694 | ac_cv_use_no_deps='wxUSE_NO_DEPS=no' | |
2695 | fi | |
698dcdb6 | 2696 | |
10f2d63a | 2697 | else |
698dcdb6 | 2698 | |
10f2d63a VZ |
2699 | LINE=`grep "wxUSE_NO_DEPS" ${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_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS | |
698dcdb6 VZ |
2707 | |
2708 | fi | |
10f2d63a VZ |
2709 | |
2710 | ||
2711 | eval "$ac_cv_use_no_deps" | |
2712 | if test "$no_cache" != 1; then | |
2713 | echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp | |
2714 | fi | |
2715 | ||
2716 | if test "$wxUSE_NO_DEPS" = 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 VZ |
2721 | |
2722 | ||
10f2d63a | 2723 | |
54276ccf | 2724 | echo $ac_n "checking for --enable-compat20""... $ac_c" 1>&6 |
d73be714 | 2725 | echo "configure:2726: checking for --enable-compat20" >&5 |
54276ccf VZ |
2726 | no_cache=0 |
2727 | # Check whether --enable-compat20 or --disable-compat20 was given. | |
2728 | if test "${enable_compat20+set}" = set; then | |
2729 | enableval="$enable_compat20" | |
2730 | ||
2731 | if test "$enableval" = yes; then | |
2732 | ac_cv_use_compat20='WXWIN_COMPATIBILITY_2=yes' | |
2733 | else | |
2734 | ac_cv_use_compat20='WXWIN_COMPATIBILITY_2=no' | |
2735 | fi | |
2736 | ||
2737 | else | |
2738 | ||
2739 | LINE=`grep "WXWIN_COMPATIBILITY_2" ${wx_arg_cache_file}` | |
2740 | if test "x$LINE" != x ; then | |
2741 | eval "DEFAULT_$LINE" | |
2742 | else | |
2743 | no_cache=1 | |
2744 | fi | |
2745 | ||
2746 | ac_cv_use_compat20='WXWIN_COMPATIBILITY_2='$DEFAULT_WXWIN_COMPATIBILITY_2 | |
2747 | ||
2748 | fi | |
2749 | ||
2750 | ||
2751 | eval "$ac_cv_use_compat20" | |
2752 | if test "$no_cache" != 1; then | |
2753 | echo $ac_cv_use_compat20 >> ${wx_arg_cache_file}.tmp | |
2754 | fi | |
2755 | ||
2756 | if test "$WXWIN_COMPATIBILITY_2" = yes; then | |
2757 | echo "$ac_t""yes" 1>&6 | |
2758 | else | |
2759 | echo "$ac_t""no" 1>&6 | |
2760 | fi | |
2761 | ||
2762 | ||
2763 | echo $ac_n "checking for --enable-compat22""... $ac_c" 1>&6 | |
d73be714 | 2764 | echo "configure:2765: checking for --enable-compat22" >&5 |
54276ccf VZ |
2765 | no_cache=0 |
2766 | # Check whether --enable-compat22 or --disable-compat22 was given. | |
2767 | if test "${enable_compat22+set}" = set; then | |
2768 | enableval="$enable_compat22" | |
2769 | ||
2770 | if test "$enableval" = yes; then | |
2771 | ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=yes' | |
2772 | else | |
2773 | ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=no' | |
2774 | fi | |
2775 | ||
2776 | else | |
2777 | ||
2778 | LINE=`grep "WXWIN_COMPATIBILITY_2_2" ${wx_arg_cache_file}` | |
2779 | if test "x$LINE" != x ; then | |
2780 | eval "DEFAULT_$LINE" | |
2781 | else | |
2782 | no_cache=1 | |
2783 | fi | |
2784 | ||
2785 | ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2='$DEFAULT_WXWIN_COMPATIBILITY_2_2 | |
2786 | ||
2787 | fi | |
2788 | ||
2789 | ||
2790 | eval "$ac_cv_use_compat22" | |
2791 | if test "$no_cache" != 1; then | |
2792 | echo $ac_cv_use_compat22 >> ${wx_arg_cache_file}.tmp | |
2793 | fi | |
2794 | ||
2795 | if test "$WXWIN_COMPATIBILITY_2_2" = yes; then | |
2796 | echo "$ac_t""yes" 1>&6 | |
2797 | else | |
2798 | echo "$ac_t""no" 1>&6 | |
2799 | fi | |
2800 | ||
2801 | ||
2802 | ||
698dcdb6 VZ |
2803 | |
2804 | echo $ac_n "checking for --enable-intl""... $ac_c" 1>&6 | |
d73be714 | 2805 | echo "configure:2806: checking for --enable-intl" >&5 |
10f2d63a VZ |
2806 | no_cache=0 |
2807 | # Check whether --enable-intl or --disable-intl was given. | |
2808 | if test "${enable_intl+set}" = set; then | |
2809 | enableval="$enable_intl" | |
698dcdb6 | 2810 | |
10f2d63a VZ |
2811 | if test "$enableval" = yes; then |
2812 | ac_cv_use_intl='wxUSE_INTL=yes' | |
2813 | else | |
2814 | ac_cv_use_intl='wxUSE_INTL=no' | |
2815 | fi | |
698dcdb6 | 2816 | |
10f2d63a | 2817 | else |
698dcdb6 | 2818 | |
10f2d63a VZ |
2819 | LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}` |
2820 | if test "x$LINE" != x ; then | |
2821 | eval "DEFAULT_$LINE" | |
2822 | else | |
2823 | no_cache=1 | |
2824 | fi | |
2825 | ||
2826 | ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL | |
698dcdb6 VZ |
2827 | |
2828 | fi | |
10f2d63a VZ |
2829 | |
2830 | ||
2831 | eval "$ac_cv_use_intl" | |
2832 | if test "$no_cache" != 1; then | |
2833 | echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp | |
2834 | fi | |
2835 | ||
2836 | if test "$wxUSE_INTL" = yes; then | |
698dcdb6 | 2837 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2838 | else |
698dcdb6 | 2839 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2840 | fi |
698dcdb6 | 2841 | |
10f2d63a | 2842 | |
698dcdb6 | 2843 | echo $ac_n "checking for --enable-config""... $ac_c" 1>&6 |
d73be714 | 2844 | echo "configure:2845: checking for --enable-config" >&5 |
10f2d63a VZ |
2845 | no_cache=0 |
2846 | # Check whether --enable-config or --disable-config was given. | |
2847 | if test "${enable_config+set}" = set; then | |
2848 | enableval="$enable_config" | |
698dcdb6 | 2849 | |
10f2d63a VZ |
2850 | if test "$enableval" = yes; then |
2851 | ac_cv_use_config='wxUSE_CONFIG=yes' | |
2852 | else | |
2853 | ac_cv_use_config='wxUSE_CONFIG=no' | |
2854 | fi | |
698dcdb6 | 2855 | |
10f2d63a | 2856 | else |
698dcdb6 | 2857 | |
10f2d63a VZ |
2858 | LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}` |
2859 | if test "x$LINE" != x ; then | |
2860 | eval "DEFAULT_$LINE" | |
2861 | else | |
2862 | no_cache=1 | |
2863 | fi | |
2864 | ||
2865 | ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG | |
698dcdb6 VZ |
2866 | |
2867 | fi | |
10f2d63a VZ |
2868 | |
2869 | ||
2870 | eval "$ac_cv_use_config" | |
2871 | if test "$no_cache" != 1; then | |
2872 | echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp | |
2873 | fi | |
2874 | ||
2875 | if test "$wxUSE_CONFIG" = yes; then | |
698dcdb6 | 2876 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2877 | else |
698dcdb6 | 2878 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2879 | fi |
698dcdb6 VZ |
2880 | |
2881 | ||
b12915c1 | 2882 | |
698dcdb6 | 2883 | echo $ac_n "checking for --enable-sockets""... $ac_c" 1>&6 |
d73be714 | 2884 | echo "configure:2885: checking for --enable-sockets" >&5 |
10f2d63a VZ |
2885 | no_cache=0 |
2886 | # Check whether --enable-sockets or --disable-sockets was given. | |
2887 | if test "${enable_sockets+set}" = set; then | |
2888 | enableval="$enable_sockets" | |
698dcdb6 | 2889 | |
10f2d63a VZ |
2890 | if test "$enableval" = yes; then |
2891 | ac_cv_use_sockets='wxUSE_SOCKETS=yes' | |
2892 | else | |
2893 | ac_cv_use_sockets='wxUSE_SOCKETS=no' | |
2894 | fi | |
698dcdb6 | 2895 | |
10f2d63a | 2896 | else |
698dcdb6 | 2897 | |
10f2d63a VZ |
2898 | LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}` |
2899 | if test "x$LINE" != x ; then | |
2900 | eval "DEFAULT_$LINE" | |
2901 | else | |
2902 | no_cache=1 | |
2903 | fi | |
2904 | ||
2905 | ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS | |
698dcdb6 VZ |
2906 | |
2907 | fi | |
10f2d63a VZ |
2908 | |
2909 | ||
2910 | eval "$ac_cv_use_sockets" | |
2911 | if test "$no_cache" != 1; then | |
2912 | echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp | |
2913 | fi | |
2914 | ||
2915 | if test "$wxUSE_SOCKETS" = yes; then | |
698dcdb6 | 2916 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2917 | else |
698dcdb6 | 2918 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2919 | fi |
698dcdb6 | 2920 | |
b12915c1 | 2921 | |
698dcdb6 VZ |
2922 | |
2923 | echo $ac_n "checking for --enable-ipc""... $ac_c" 1>&6 | |
d73be714 | 2924 | echo "configure:2925: checking for --enable-ipc" >&5 |
10f2d63a | 2925 | no_cache=0 |
eb4efbdc VZ |
2926 | # Check whether --enable-ipc or --disable-ipc was given. |
2927 | if test "${enable_ipc+set}" = set; then | |
2928 | enableval="$enable_ipc" | |
698dcdb6 | 2929 | |
10f2d63a | 2930 | if test "$enableval" = yes; then |
eb4efbdc | 2931 | ac_cv_use_ipc='wxUSE_IPC=yes' |
10f2d63a | 2932 | else |
eb4efbdc | 2933 | ac_cv_use_ipc='wxUSE_IPC=no' |
10f2d63a | 2934 | fi |
698dcdb6 | 2935 | |
10f2d63a | 2936 | else |
698dcdb6 | 2937 | |
eb4efbdc | 2938 | LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}` |
10f2d63a VZ |
2939 | if test "x$LINE" != x ; then |
2940 | eval "DEFAULT_$LINE" | |
2941 | else | |
2942 | no_cache=1 | |
2943 | fi | |
2944 | ||
eb4efbdc | 2945 | ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC |
698dcdb6 VZ |
2946 | |
2947 | fi | |
10f2d63a VZ |
2948 | |
2949 | ||
eb4efbdc | 2950 | eval "$ac_cv_use_ipc" |
10f2d63a | 2951 | if test "$no_cache" != 1; then |
eb4efbdc | 2952 | echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
2953 | fi |
2954 | ||
eb4efbdc | 2955 | if test "$wxUSE_IPC" = yes; then |
698dcdb6 | 2956 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2957 | else |
698dcdb6 | 2958 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2959 | fi |
698dcdb6 VZ |
2960 | |
2961 | ||
eb4efbdc | 2962 | |
1e6feb95 | 2963 | echo $ac_n "checking for --enable-cmdline""... $ac_c" 1>&6 |
d73be714 | 2964 | echo "configure:2965: checking for --enable-cmdline" >&5 |
1e6feb95 VZ |
2965 | no_cache=0 |
2966 | # Check whether --enable-cmdline or --disable-cmdline was given. | |
2967 | if test "${enable_cmdline+set}" = set; then | |
2968 | enableval="$enable_cmdline" | |
2969 | ||
2970 | if test "$enableval" = yes; then | |
2971 | ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=yes' | |
2972 | else | |
2973 | ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=no' | |
2974 | fi | |
2975 | ||
2976 | else | |
2977 | ||
2978 | LINE=`grep "wxUSE_CMDLINE_PARSER" ${wx_arg_cache_file}` | |
2979 | if test "x$LINE" != x ; then | |
2980 | eval "DEFAULT_$LINE" | |
2981 | else | |
2982 | no_cache=1 | |
2983 | fi | |
2984 | ||
2985 | ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER='$DEFAULT_wxUSE_CMDLINE_PARSER | |
2986 | ||
2987 | fi | |
2988 | ||
2989 | ||
2990 | eval "$ac_cv_use_cmdline" | |
2991 | if test "$no_cache" != 1; then | |
2992 | echo $ac_cv_use_cmdline >> ${wx_arg_cache_file}.tmp | |
2993 | fi | |
2994 | ||
2995 | if test "$wxUSE_CMDLINE_PARSER" = yes; then | |
2996 | echo "$ac_t""yes" 1>&6 | |
2997 | else | |
2998 | echo "$ac_t""no" 1>&6 | |
2999 | fi | |
3000 | ||
3001 | ||
3002 | echo $ac_n "checking for --enable-datetime""... $ac_c" 1>&6 | |
d73be714 | 3003 | echo "configure:3004: checking for --enable-datetime" >&5 |
1e6feb95 VZ |
3004 | no_cache=0 |
3005 | # Check whether --enable-datetime or --disable-datetime was given. | |
3006 | if test "${enable_datetime+set}" = set; then | |
3007 | enableval="$enable_datetime" | |
3008 | ||
3009 | if test "$enableval" = yes; then | |
3010 | ac_cv_use_datetime='wxUSE_DATETIME=yes' | |
3011 | else | |
3012 | ac_cv_use_datetime='wxUSE_DATETIME=no' | |
3013 | fi | |
3014 | ||
3015 | else | |
3016 | ||
3017 | LINE=`grep "wxUSE_DATETIME" ${wx_arg_cache_file}` | |
3018 | if test "x$LINE" != x ; then | |
3019 | eval "DEFAULT_$LINE" | |
3020 | else | |
3021 | no_cache=1 | |
3022 | fi | |
3023 | ||
3024 | ac_cv_use_datetime='wxUSE_DATETIME='$DEFAULT_wxUSE_DATETIME | |
3025 | ||
3026 | fi | |
3027 | ||
3028 | ||
3029 | eval "$ac_cv_use_datetime" | |
3030 | if test "$no_cache" != 1; then | |
3031 | echo $ac_cv_use_datetime >> ${wx_arg_cache_file}.tmp | |
3032 | fi | |
3033 | ||
3034 | if test "$wxUSE_DATETIME" = yes; then | |
3035 | echo "$ac_t""yes" 1>&6 | |
3036 | else | |
3037 | echo "$ac_t""no" 1>&6 | |
3038 | fi | |
3039 | ||
3040 | ||
3041 | echo $ac_n "checking for --enable-timedate""... $ac_c" 1>&6 | |
d73be714 | 3042 | echo "configure:3043: checking for --enable-timedate" >&5 |
1e6feb95 VZ |
3043 | no_cache=0 |
3044 | # Check whether --enable-timedate or --disable-timedate was given. | |
3045 | if test "${enable_timedate+set}" = set; then | |
3046 | enableval="$enable_timedate" | |
3047 | ||
3048 | if test "$enableval" = yes; then | |
3049 | ac_cv_use_timedate='wxUSE_TIMEDATE=yes' | |
3050 | else | |
3051 | ac_cv_use_timedate='wxUSE_TIMEDATE=no' | |
3052 | fi | |
3053 | ||
3054 | else | |
3055 | ||
3056 | LINE=`grep "wxUSE_TIMEDATE" ${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_timedate='wxUSE_TIMEDATE='$DEFAULT_wxUSE_TIMEDATE | |
3064 | ||
3065 | fi | |
3066 | ||
3067 | ||
3068 | eval "$ac_cv_use_timedate" | |
3069 | if test "$no_cache" != 1; then | |
3070 | echo $ac_cv_use_timedate >> ${wx_arg_cache_file}.tmp | |
3071 | fi | |
3072 | ||
3073 | if test "$wxUSE_TIMEDATE" = 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-stopwatch""... $ac_c" 1>&6 | |
d73be714 | 3081 | echo "configure:3082: checking for --enable-stopwatch" >&5 |
1e6feb95 VZ |
3082 | no_cache=0 |
3083 | # Check whether --enable-stopwatch or --disable-stopwatch was given. | |
3084 | if test "${enable_stopwatch+set}" = set; then | |
3085 | enableval="$enable_stopwatch" | |
3086 | ||
3087 | if test "$enableval" = yes; then | |
3088 | ac_cv_use_stopwatch='wxUSE_STOPWATCH=yes' | |
3089 | else | |
3090 | ac_cv_use_stopwatch='wxUSE_STOPWATCH=no' | |
3091 | fi | |
3092 | ||
3093 | else | |
3094 | ||
3095 | LINE=`grep "wxUSE_STOPWATCH" ${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_stopwatch='wxUSE_STOPWATCH='$DEFAULT_wxUSE_STOPWATCH | |
3103 | ||
3104 | fi | |
3105 | ||
3106 | ||
3107 | eval "$ac_cv_use_stopwatch" | |
3108 | if test "$no_cache" != 1; then | |
3109 | echo $ac_cv_use_stopwatch >> ${wx_arg_cache_file}.tmp | |
3110 | fi | |
3111 | ||
3112 | if test "$wxUSE_STOPWATCH" = yes; then | |
3113 | echo "$ac_t""yes" 1>&6 | |
3114 | else | |
3115 | echo "$ac_t""no" 1>&6 | |
3116 | fi | |
3117 | ||
3118 | ||
698dcdb6 | 3119 | echo $ac_n "checking for --enable-dialupman""... $ac_c" 1>&6 |
d73be714 | 3120 | echo "configure:3121: checking for --enable-dialupman" >&5 |
10f2d63a | 3121 | no_cache=0 |
eb4efbdc VZ |
3122 | # Check whether --enable-dialupman or --disable-dialupman was given. |
3123 | if test "${enable_dialupman+set}" = set; then | |
3124 | enableval="$enable_dialupman" | |
698dcdb6 | 3125 | |
10f2d63a | 3126 | if test "$enableval" = yes; then |
eb4efbdc | 3127 | ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes' |
10f2d63a | 3128 | else |
eb4efbdc | 3129 | ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no' |
10f2d63a | 3130 | fi |
698dcdb6 | 3131 | |
10f2d63a | 3132 | else |
698dcdb6 | 3133 | |
eb4efbdc | 3134 | LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}` |
10f2d63a VZ |
3135 | if test "x$LINE" != x ; then |
3136 | eval "DEFAULT_$LINE" | |
3137 | else | |
3138 | no_cache=1 | |
3139 | fi | |
3140 | ||
eb4efbdc | 3141 | ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER |
698dcdb6 VZ |
3142 | |
3143 | fi | |
10f2d63a VZ |
3144 | |
3145 | ||
eb4efbdc | 3146 | eval "$ac_cv_use_dialupman" |
10f2d63a | 3147 | if test "$no_cache" != 1; then |
eb4efbdc | 3148 | echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
3149 | fi |
3150 | ||
eb4efbdc | 3151 | if test "$wxUSE_DIALUP_MANAGER" = yes; then |
698dcdb6 | 3152 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3153 | else |
698dcdb6 | 3154 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3155 | fi |
698dcdb6 | 3156 | |
10f2d63a | 3157 | |
698dcdb6 | 3158 | echo $ac_n "checking for --enable-apple_ieee""... $ac_c" 1>&6 |
d73be714 | 3159 | echo "configure:3160: checking for --enable-apple_ieee" >&5 |
10f2d63a VZ |
3160 | no_cache=0 |
3161 | # Check whether --enable-apple_ieee or --disable-apple_ieee was given. | |
3162 | if test "${enable_apple_ieee+set}" = set; then | |
3163 | enableval="$enable_apple_ieee" | |
698dcdb6 | 3164 | |
10f2d63a VZ |
3165 | if test "$enableval" = yes; then |
3166 | ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes' | |
3167 | else | |
3168 | ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no' | |
3169 | fi | |
698dcdb6 | 3170 | |
10f2d63a | 3171 | else |
698dcdb6 | 3172 | |
10f2d63a VZ |
3173 | LINE=`grep "wxUSE_APPLE_IEEE" ${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_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE | |
698dcdb6 VZ |
3181 | |
3182 | fi | |
10f2d63a VZ |
3183 | |
3184 | ||
3185 | eval "$ac_cv_use_apple_ieee" | |
3186 | if test "$no_cache" != 1; then | |
3187 | echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp | |
3188 | fi | |
3189 | ||
3190 | if test "$wxUSE_APPLE_IEEE" = yes; then | |
698dcdb6 | 3191 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3192 | else |
698dcdb6 | 3193 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3194 | fi |
698dcdb6 | 3195 | |
10f2d63a | 3196 | |
1e6feb95 | 3197 | echo $ac_n "checking for --enable-timer""... $ac_c" 1>&6 |
d73be714 | 3198 | echo "configure:3199: checking for --enable-timer" >&5 |
10f2d63a | 3199 | no_cache=0 |
1e6feb95 VZ |
3200 | # Check whether --enable-timer or --disable-timer was given. |
3201 | if test "${enable_timer+set}" = set; then | |
3202 | enableval="$enable_timer" | |
698dcdb6 | 3203 | |
10f2d63a | 3204 | if test "$enableval" = yes; then |
1e6feb95 | 3205 | ac_cv_use_timer='wxUSE_TIMER=yes' |
10f2d63a | 3206 | else |
1e6feb95 | 3207 | ac_cv_use_timer='wxUSE_TIMER=no' |
10f2d63a | 3208 | fi |
698dcdb6 | 3209 | |
10f2d63a | 3210 | else |
698dcdb6 | 3211 | |
1e6feb95 | 3212 | LINE=`grep "wxUSE_TIMER" ${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 | ||
1e6feb95 | 3219 | ac_cv_use_timer='wxUSE_TIMER='$DEFAULT_wxUSE_TIMER |
698dcdb6 VZ |
3220 | |
3221 | fi | |
10f2d63a VZ |
3222 | |
3223 | ||
1e6feb95 | 3224 | eval "$ac_cv_use_timer" |
10f2d63a | 3225 | if test "$no_cache" != 1; then |
1e6feb95 | 3226 | echo $ac_cv_use_timer >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
3227 | fi |
3228 | ||
1e6feb95 | 3229 | if test "$wxUSE_TIMER" = 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-wave""... $ac_c" 1>&6 |
d73be714 | 3237 | echo "configure:3238: checking for --enable-wave" >&5 |
10f2d63a VZ |
3238 | no_cache=0 |
3239 | # Check whether --enable-wave or --disable-wave was given. | |
3240 | if test "${enable_wave+set}" = set; then | |
3241 | enableval="$enable_wave" | |
698dcdb6 | 3242 | |
10f2d63a VZ |
3243 | if test "$enableval" = yes; then |
3244 | ac_cv_use_wave='wxUSE_WAVE=yes' | |
3245 | else | |
3246 | ac_cv_use_wave='wxUSE_WAVE=no' | |
3247 | fi | |
698dcdb6 | 3248 | |
10f2d63a | 3249 | else |
698dcdb6 | 3250 | |
10f2d63a VZ |
3251 | LINE=`grep "wxUSE_WAVE" ${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_wave='wxUSE_WAVE='$DEFAULT_wxUSE_WAVE | |
698dcdb6 VZ |
3259 | |
3260 | fi | |
10f2d63a VZ |
3261 | |
3262 | ||
3263 | eval "$ac_cv_use_wave" | |
3264 | if test "$no_cache" != 1; then | |
3265 | echo $ac_cv_use_wave >> ${wx_arg_cache_file}.tmp | |
3266 | fi | |
3267 | ||
3268 | if test "$wxUSE_WAVE" = 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 | |
698dcdb6 | 3275 | echo $ac_n "checking for --enable-fraction""... $ac_c" 1>&6 |
d73be714 | 3276 | echo "configure:3277: checking for --enable-fraction" >&5 |
10f2d63a VZ |
3277 | no_cache=0 |
3278 | # Check whether --enable-fraction or --disable-fraction was given. | |
3279 | if test "${enable_fraction+set}" = set; then | |
3280 | enableval="$enable_fraction" | |
698dcdb6 | 3281 | |
10f2d63a VZ |
3282 | if test "$enableval" = yes; then |
3283 | ac_cv_use_fraction='wxUSE_FRACTION=yes' | |
3284 | else | |
3285 | ac_cv_use_fraction='wxUSE_FRACTION=no' | |
3286 | fi | |
698dcdb6 | 3287 | |
10f2d63a | 3288 | else |
698dcdb6 | 3289 | |
10f2d63a VZ |
3290 | LINE=`grep "wxUSE_FRACTION" ${wx_arg_cache_file}` |
3291 | if test "x$LINE" != x ; then | |
3292 | eval "DEFAULT_$LINE" | |
3293 | else | |
3294 | no_cache=1 | |
3295 | fi | |
3296 | ||
3297 | ac_cv_use_fraction='wxUSE_FRACTION='$DEFAULT_wxUSE_FRACTION | |
698dcdb6 VZ |
3298 | |
3299 | fi | |
10f2d63a VZ |
3300 | |
3301 | ||
3302 | eval "$ac_cv_use_fraction" | |
3303 | if test "$no_cache" != 1; then | |
3304 | echo $ac_cv_use_fraction >> ${wx_arg_cache_file}.tmp | |
3305 | fi | |
3306 | ||
3307 | if test "$wxUSE_FRACTION" = 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-dynlib""... $ac_c" 1>&6 |
d73be714 | 3315 | echo "configure:3316: checking for --enable-dynlib" >&5 |
10f2d63a VZ |
3316 | no_cache=0 |
3317 | # Check whether --enable-dynlib or --disable-dynlib was given. | |
3318 | if test "${enable_dynlib+set}" = set; then | |
3319 | enableval="$enable_dynlib" | |
698dcdb6 | 3320 | |
10f2d63a VZ |
3321 | if test "$enableval" = yes; then |
3322 | ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes' | |
3323 | else | |
3324 | ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no' | |
3325 | fi | |
698dcdb6 | 3326 | |
10f2d63a | 3327 | else |
698dcdb6 | 3328 | |
10f2d63a VZ |
3329 | LINE=`grep "wxUSE_DYNLIB_CLASS" ${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_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS | |
698dcdb6 VZ |
3337 | |
3338 | fi | |
10f2d63a VZ |
3339 | |
3340 | ||
3341 | eval "$ac_cv_use_dynlib" | |
3342 | if test "$no_cache" != 1; then | |
3343 | echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp | |
3344 | fi | |
3345 | ||
3346 | if test "$wxUSE_DYNLIB_CLASS" = 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-longlong""... $ac_c" 1>&6 |
d73be714 | 3354 | echo "configure:3355: checking for --enable-longlong" >&5 |
10f2d63a VZ |
3355 | no_cache=0 |
3356 | # Check whether --enable-longlong or --disable-longlong was given. | |
3357 | if test "${enable_longlong+set}" = set; then | |
3358 | enableval="$enable_longlong" | |
698dcdb6 | 3359 | |
10f2d63a VZ |
3360 | if test "$enableval" = yes; then |
3361 | ac_cv_use_longlong='wxUSE_LONGLONG=yes' | |
3362 | else | |
3363 | ac_cv_use_longlong='wxUSE_LONGLONG=no' | |
3364 | fi | |
698dcdb6 | 3365 | |
10f2d63a | 3366 | else |
698dcdb6 | 3367 | |
10f2d63a VZ |
3368 | LINE=`grep "wxUSE_LONGLONG" ${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_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG | |
698dcdb6 VZ |
3376 | |
3377 | fi | |
10f2d63a VZ |
3378 | |
3379 | ||
3380 | eval "$ac_cv_use_longlong" | |
3381 | if test "$no_cache" != 1; then | |
3382 | echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp | |
3383 | fi | |
3384 | ||
3385 | if test "$wxUSE_LONGLONG" = 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-geometry""... $ac_c" 1>&6 |
d73be714 | 3393 | echo "configure:3394: checking for --enable-geometry" >&5 |
e8f65ba6 RR |
3394 | no_cache=0 |
3395 | # Check whether --enable-geometry or --disable-geometry was given. | |
3396 | if test "${enable_geometry+set}" = set; then | |
3397 | enableval="$enable_geometry" | |
698dcdb6 | 3398 | |
e8f65ba6 RR |
3399 | if test "$enableval" = yes; then |
3400 | ac_cv_use_geometry='wxUSE_GEOMETRY=yes' | |
3401 | else | |
3402 | ac_cv_use_geometry='wxUSE_GEOMETRY=no' | |
3403 | fi | |
698dcdb6 | 3404 | |
e8f65ba6 | 3405 | else |
698dcdb6 | 3406 | |
e8f65ba6 RR |
3407 | LINE=`grep "wxUSE_GEOMETRY" ${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_geometry='wxUSE_GEOMETRY='$DEFAULT_wxUSE_GEOMETRY | |
698dcdb6 VZ |
3415 | |
3416 | fi | |
e8f65ba6 RR |
3417 | |
3418 | ||
3419 | eval "$ac_cv_use_geometry" | |
3420 | if test "$no_cache" != 1; then | |
3421 | echo $ac_cv_use_geometry >> ${wx_arg_cache_file}.tmp | |
3422 | fi | |
3423 | ||
3424 | if test "$wxUSE_GEOMETRY" = yes; then | |
698dcdb6 | 3425 | echo "$ac_t""yes" 1>&6 |
e8f65ba6 | 3426 | else |
698dcdb6 | 3427 | echo "$ac_t""no" 1>&6 |
e8f65ba6 | 3428 | fi |
698dcdb6 | 3429 | |
e8f65ba6 | 3430 | |
698dcdb6 | 3431 | echo $ac_n "checking for --enable-log""... $ac_c" 1>&6 |
d73be714 | 3432 | echo "configure:3433: checking for --enable-log" >&5 |
10f2d63a VZ |
3433 | no_cache=0 |
3434 | # Check whether --enable-log or --disable-log was given. | |
3435 | if test "${enable_log+set}" = set; then | |
3436 | enableval="$enable_log" | |
698dcdb6 | 3437 | |
10f2d63a VZ |
3438 | if test "$enableval" = yes; then |
3439 | ac_cv_use_log='wxUSE_LOG=yes' | |
3440 | else | |
3441 | ac_cv_use_log='wxUSE_LOG=no' | |
3442 | fi | |
698dcdb6 | 3443 | |
10f2d63a | 3444 | else |
698dcdb6 | 3445 | |
10f2d63a VZ |
3446 | LINE=`grep "wxUSE_LOG" ${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_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG | |
698dcdb6 VZ |
3454 | |
3455 | fi | |
10f2d63a VZ |
3456 | |
3457 | ||
3458 | eval "$ac_cv_use_log" | |
3459 | if test "$no_cache" != 1; then | |
3460 | echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp | |
3461 | fi | |
3462 | ||
3463 | if test "$wxUSE_LOG" = 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-streams""... $ac_c" 1>&6 |
d73be714 | 3471 | echo "configure:3472: checking for --enable-streams" >&5 |
10f2d63a VZ |
3472 | no_cache=0 |
3473 | # Check whether --enable-streams or --disable-streams was given. | |
3474 | if test "${enable_streams+set}" = set; then | |
3475 | enableval="$enable_streams" | |
698dcdb6 | 3476 | |
10f2d63a VZ |
3477 | if test "$enableval" = yes; then |
3478 | ac_cv_use_streams='wxUSE_STREAMS=yes' | |
3479 | else | |
3480 | ac_cv_use_streams='wxUSE_STREAMS=no' | |
3481 | fi | |
698dcdb6 | 3482 | |
10f2d63a | 3483 | else |
698dcdb6 | 3484 | |
10f2d63a VZ |
3485 | LINE=`grep "wxUSE_STREAMS" ${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_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS | |
698dcdb6 VZ |
3493 | |
3494 | fi | |
10f2d63a VZ |
3495 | |
3496 | ||
3497 | eval "$ac_cv_use_streams" | |
3498 | if test "$no_cache" != 1; then | |
3499 | echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp | |
3500 | fi | |
3501 | ||
3502 | if test "$wxUSE_STREAMS" = yes; then | |
698dcdb6 | 3503 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3504 | else |
698dcdb6 | 3505 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3506 | fi |
698dcdb6 | 3507 | |
10f2d63a | 3508 | |
698dcdb6 | 3509 | echo $ac_n "checking for --enable-file""... $ac_c" 1>&6 |
d73be714 | 3510 | echo "configure:3511: checking for --enable-file" >&5 |
10f2d63a VZ |
3511 | no_cache=0 |
3512 | # Check whether --enable-file or --disable-file was given. | |
3513 | if test "${enable_file+set}" = set; then | |
3514 | enableval="$enable_file" | |
698dcdb6 | 3515 | |
10f2d63a VZ |
3516 | if test "$enableval" = yes; then |
3517 | ac_cv_use_file='wxUSE_FILE=yes' | |
3518 | else | |
3519 | ac_cv_use_file='wxUSE_FILE=no' | |
3520 | fi | |
698dcdb6 | 3521 | |
10f2d63a | 3522 | else |
698dcdb6 | 3523 | |
10f2d63a VZ |
3524 | LINE=`grep "wxUSE_FILE" ${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_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE | |
698dcdb6 VZ |
3532 | |
3533 | fi | |
10f2d63a VZ |
3534 | |
3535 | ||
3536 | eval "$ac_cv_use_file" | |
3537 | if test "$no_cache" != 1; then | |
3538 | echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp | |
3539 | fi | |
3540 | ||
3541 | if test "$wxUSE_FILE" = 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 | |
1e6feb95 | 3548 | echo $ac_n "checking for --enable-ffile""... $ac_c" 1>&6 |
d73be714 | 3549 | echo "configure:3550: checking for --enable-ffile" >&5 |
10f2d63a | 3550 | no_cache=0 |
1e6feb95 VZ |
3551 | # Check whether --enable-ffile or --disable-ffile was given. |
3552 | if test "${enable_ffile+set}" = set; then | |
3553 | enableval="$enable_ffile" | |
698dcdb6 | 3554 | |
10f2d63a | 3555 | if test "$enableval" = yes; then |
1e6feb95 | 3556 | ac_cv_use_ffile='wxUSE_FFILE=yes' |
10f2d63a | 3557 | else |
1e6feb95 | 3558 | ac_cv_use_ffile='wxUSE_FFILE=no' |
10f2d63a | 3559 | fi |
698dcdb6 | 3560 | |
10f2d63a | 3561 | else |
698dcdb6 | 3562 | |
1e6feb95 | 3563 | LINE=`grep "wxUSE_FFILE" ${wx_arg_cache_file}` |
10f2d63a VZ |
3564 | if test "x$LINE" != x ; then |
3565 | eval "DEFAULT_$LINE" | |
3566 | else | |
3567 | no_cache=1 | |
3568 | fi | |
3569 | ||
1e6feb95 | 3570 | ac_cv_use_ffile='wxUSE_FFILE='$DEFAULT_wxUSE_FFILE |
698dcdb6 VZ |
3571 | |
3572 | fi | |
10f2d63a VZ |
3573 | |
3574 | ||
1e6feb95 | 3575 | eval "$ac_cv_use_ffile" |
10f2d63a | 3576 | if test "$no_cache" != 1; then |
1e6feb95 | 3577 | echo $ac_cv_use_ffile >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
3578 | fi |
3579 | ||
1e6feb95 | 3580 | if test "$wxUSE_FFILE" = 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 | |
1e6feb95 | 3587 | echo $ac_n "checking for --enable-textfile""... $ac_c" 1>&6 |
d73be714 | 3588 | echo "configure:3589: checking for --enable-textfile" >&5 |
10f2d63a | 3589 | no_cache=0 |
1e6feb95 VZ |
3590 | # Check whether --enable-textfile or --disable-textfile was given. |
3591 | if test "${enable_textfile+set}" = set; then | |
3592 | enableval="$enable_textfile" | |
698dcdb6 | 3593 | |
10f2d63a | 3594 | if test "$enableval" = yes; then |
1e6feb95 | 3595 | ac_cv_use_textfile='wxUSE_TEXTFILE=yes' |
10f2d63a | 3596 | else |
1e6feb95 | 3597 | ac_cv_use_textfile='wxUSE_TEXTFILE=no' |
10f2d63a | 3598 | fi |
698dcdb6 | 3599 | |
10f2d63a | 3600 | else |
698dcdb6 | 3601 | |
1e6feb95 | 3602 | LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}` |
10f2d63a VZ |
3603 | if test "x$LINE" != x ; then |
3604 | eval "DEFAULT_$LINE" | |
3605 | else | |
3606 | no_cache=1 | |
3607 | fi | |
3608 | ||
1e6feb95 | 3609 | ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE |
698dcdb6 VZ |
3610 | |
3611 | fi | |
10f2d63a VZ |
3612 | |
3613 | ||
1e6feb95 | 3614 | eval "$ac_cv_use_textfile" |
10f2d63a | 3615 | if test "$no_cache" != 1; then |
1e6feb95 | 3616 | echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
3617 | fi |
3618 | ||
1e6feb95 | 3619 | if test "$wxUSE_TEXTFILE" = 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-fontmap""... $ac_c" 1>&6 |
d73be714 | 3627 | echo "configure:3628: checking for --enable-fontmap" >&5 |
10f2d63a | 3628 | no_cache=0 |
1e6feb95 VZ |
3629 | # Check whether --enable-fontmap or --disable-fontmap was given. |
3630 | if test "${enable_fontmap+set}" = set; then | |
3631 | enableval="$enable_fontmap" | |
698dcdb6 | 3632 | |
10f2d63a | 3633 | if test "$enableval" = yes; then |
1e6feb95 | 3634 | ac_cv_use_fontmap='wxUSE_FONTMAP=yes' |
10f2d63a | 3635 | else |
1e6feb95 | 3636 | ac_cv_use_fontmap='wxUSE_FONTMAP=no' |
10f2d63a | 3637 | fi |
698dcdb6 | 3638 | |
10f2d63a | 3639 | else |
698dcdb6 | 3640 | |
1e6feb95 | 3641 | LINE=`grep "wxUSE_FONTMAP" ${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_fontmap='wxUSE_FONTMAP='$DEFAULT_wxUSE_FONTMAP |
698dcdb6 VZ |
3649 | |
3650 | fi | |
10f2d63a VZ |
3651 | |
3652 | ||
1e6feb95 | 3653 | eval "$ac_cv_use_fontmap" |
10f2d63a | 3654 | if test "$no_cache" != 1; then |
1e6feb95 | 3655 | echo $ac_cv_use_fontmap >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
3656 | fi |
3657 | ||
1e6feb95 | 3658 | if test "$wxUSE_FONTMAP" = 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-unicode""... $ac_c" 1>&6 |
d73be714 | 3666 | echo "configure:3667: checking for --enable-unicode" >&5 |
10f2d63a | 3667 | no_cache=0 |
1e6feb95 VZ |
3668 | # Check whether --enable-unicode or --disable-unicode was given. |
3669 | if test "${enable_unicode+set}" = set; then | |
3670 | enableval="$enable_unicode" | |
3671 | ||
3672 | if test "$enableval" = yes; then | |
3673 | ac_cv_use_unicode='wxUSE_UNICODE=yes' | |
3674 | else | |
3675 | ac_cv_use_unicode='wxUSE_UNICODE=no' | |
3676 | fi | |
3677 | ||
3678 | else | |
3679 | ||
3680 | LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}` | |
3681 | if test "x$LINE" != x ; then | |
3682 | eval "DEFAULT_$LINE" | |
3683 | else | |
3684 | no_cache=1 | |
3685 | fi | |
3686 | ||
3687 | ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE | |
3688 | ||
3689 | fi | |
3690 | ||
3691 | ||
3692 | eval "$ac_cv_use_unicode" | |
3693 | if test "$no_cache" != 1; then | |
3694 | echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp | |
3695 | fi | |
3696 | ||
3697 | if test "$wxUSE_UNICODE" = yes; then | |
3698 | echo "$ac_t""yes" 1>&6 | |
3699 | else | |
3700 | echo "$ac_t""no" 1>&6 | |
3701 | fi | |
3702 | ||
3703 | ||
3704 | echo $ac_n "checking for --enable-wcsrtombs""... $ac_c" 1>&6 | |
d73be714 | 3705 | echo "configure:3706: checking for --enable-wcsrtombs" >&5 |
1e6feb95 VZ |
3706 | no_cache=0 |
3707 | # Check whether --enable-wcsrtombs or --disable-wcsrtombs was given. | |
3708 | if test "${enable_wcsrtombs+set}" = set; then | |
3709 | enableval="$enable_wcsrtombs" | |
3710 | ||
3711 | if test "$enableval" = yes; then | |
3712 | ac_cv_use_wcsrtombs='wxUSE_WCSRTOMBS=yes' | |
3713 | else | |
3714 | ac_cv_use_wcsrtombs='wxUSE_WCSRTOMBS=no' | |
3715 | fi | |
3716 | ||
3717 | else | |
3718 | ||
3719 | LINE=`grep "wxUSE_WCSRTOMBS" ${wx_arg_cache_file}` | |
3720 | if test "x$LINE" != x ; then | |
3721 | eval "DEFAULT_$LINE" | |
3722 | else | |
3723 | no_cache=1 | |
3724 | fi | |
3725 | ||
3726 | ac_cv_use_wcsrtombs='wxUSE_WCSRTOMBS='$DEFAULT_wxUSE_WCSRTOMBS | |
3727 | ||
3728 | fi | |
3729 | ||
3730 | ||
3731 | eval "$ac_cv_use_wcsrtombs" | |
3732 | if test "$no_cache" != 1; then | |
3733 | echo $ac_cv_use_wcsrtombs >> ${wx_arg_cache_file}.tmp | |
3734 | fi | |
3735 | ||
3736 | if test "$wxUSE_WCSRTOMBS" = yes; then | |
3737 | echo "$ac_t""yes" 1>&6 | |
3738 | else | |
3739 | echo "$ac_t""no" 1>&6 | |
3740 | fi | |
3741 | ||
3742 | ||
3743 | echo $ac_n "checking for --enable-wxprintfv""... $ac_c" 1>&6 | |
d73be714 | 3744 | echo "configure:3745: checking for --enable-wxprintfv" >&5 |
1e6feb95 VZ |
3745 | no_cache=0 |
3746 | # Check whether --enable-wxprintfv or --disable-wxprintfv was given. | |
3747 | if test "${enable_wxprintfv+set}" = set; then | |
3748 | enableval="$enable_wxprintfv" | |
3749 | ||
3750 | if test "$enableval" = yes; then | |
10f2d63a VZ |
3751 | ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=yes' |
3752 | else | |
3753 | ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=no' | |
3754 | fi | |
698dcdb6 | 3755 | |
10f2d63a | 3756 | else |
698dcdb6 | 3757 | |
10f2d63a VZ |
3758 | LINE=`grep "wxUSE_EXPERIMENTAL_PRINTF" ${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_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF='$DEFAULT_wxUSE_EXPERIMENTAL_PRINTF | |
698dcdb6 VZ |
3766 | |
3767 | fi | |
10f2d63a VZ |
3768 | |
3769 | ||
3770 | eval "$ac_cv_use_wxprintfv" | |
3771 | if test "$no_cache" != 1; then | |
3772 | echo $ac_cv_use_wxprintfv >> ${wx_arg_cache_file}.tmp | |
3773 | fi | |
3774 | ||
3775 | if test "$wxUSE_EXPERIMENTAL_PRINTF" = yes; then | |
698dcdb6 | 3776 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3777 | else |
698dcdb6 | 3778 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3779 | fi |
698dcdb6 | 3780 | |
10f2d63a | 3781 | |
698dcdb6 | 3782 | echo $ac_n "checking for --enable-std_iostreams""... $ac_c" 1>&6 |
d73be714 | 3783 | echo "configure:3784: checking for --enable-std_iostreams" >&5 |
10f2d63a VZ |
3784 | no_cache=0 |
3785 | # Check whether --enable-std_iostreams or --disable-std_iostreams was given. | |
3786 | if test "${enable_std_iostreams+set}" = set; then | |
3787 | enableval="$enable_std_iostreams" | |
698dcdb6 | 3788 | |
10f2d63a VZ |
3789 | if test "$enableval" = yes; then |
3790 | ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes' | |
3791 | else | |
3792 | ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no' | |
3793 | fi | |
698dcdb6 | 3794 | |
10f2d63a | 3795 | else |
698dcdb6 | 3796 | |
10f2d63a VZ |
3797 | LINE=`grep "wxUSE_STD_IOSTREAM" ${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_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM | |
698dcdb6 VZ |
3805 | |
3806 | fi | |
10f2d63a VZ |
3807 | |
3808 | ||
3809 | eval "$ac_cv_use_std_iostreams" | |
3810 | if test "$no_cache" != 1; then | |
3811 | echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp | |
3812 | fi | |
3813 | ||
3814 | if test "$wxUSE_STD_IOSTREAM" = yes; then | |
698dcdb6 | 3815 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3816 | else |
698dcdb6 | 3817 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3818 | fi |
698dcdb6 | 3819 | |
10f2d63a | 3820 | |
698dcdb6 | 3821 | echo $ac_n "checking for --enable-filesystem""... $ac_c" 1>&6 |
d73be714 | 3822 | echo "configure:3823: checking for --enable-filesystem" >&5 |
24528b0c VS |
3823 | no_cache=0 |
3824 | # Check whether --enable-filesystem or --disable-filesystem was given. | |
3825 | if test "${enable_filesystem+set}" = set; then | |
3826 | enableval="$enable_filesystem" | |
698dcdb6 | 3827 | |
24528b0c VS |
3828 | if test "$enableval" = yes; then |
3829 | ac_cv_use_filesystem='wxUSE_FILESYSTEM=yes' | |
3830 | else | |
3831 | ac_cv_use_filesystem='wxUSE_FILESYSTEM=no' | |
3832 | fi | |
698dcdb6 | 3833 | |
24528b0c | 3834 | else |
698dcdb6 | 3835 | |
24528b0c VS |
3836 | LINE=`grep "wxUSE_FILESYSTEM" ${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_filesystem='wxUSE_FILESYSTEM='$DEFAULT_wxUSE_FILESYSTEM | |
698dcdb6 VZ |
3844 | |
3845 | fi | |
24528b0c VS |
3846 | |
3847 | ||
3848 | eval "$ac_cv_use_filesystem" | |
3849 | if test "$no_cache" != 1; then | |
3850 | echo $ac_cv_use_filesystem >> ${wx_arg_cache_file}.tmp | |
3851 | fi | |
3852 | ||
3853 | if test "$wxUSE_FILESYSTEM" = yes; then | |
698dcdb6 | 3854 | echo "$ac_t""yes" 1>&6 |
24528b0c | 3855 | else |
698dcdb6 | 3856 | echo "$ac_t""no" 1>&6 |
24528b0c | 3857 | fi |
698dcdb6 | 3858 | |
24528b0c | 3859 | |
698dcdb6 | 3860 | echo $ac_n "checking for --enable-fs_inet""... $ac_c" 1>&6 |
d73be714 | 3861 | echo "configure:3862: checking for --enable-fs_inet" >&5 |
10f2d63a VZ |
3862 | no_cache=0 |
3863 | # Check whether --enable-fs_inet or --disable-fs_inet was given. | |
3864 | if test "${enable_fs_inet+set}" = set; then | |
3865 | enableval="$enable_fs_inet" | |
698dcdb6 | 3866 | |
10f2d63a VZ |
3867 | if test "$enableval" = yes; then |
3868 | ac_cv_use_fs_inet='wxUSE_FS_INET=yes' | |
3869 | else | |
3870 | ac_cv_use_fs_inet='wxUSE_FS_INET=no' | |
3871 | fi | |
698dcdb6 | 3872 | |
10f2d63a | 3873 | else |
698dcdb6 | 3874 | |
10f2d63a VZ |
3875 | LINE=`grep "wxUSE_FS_INET" ${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_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET | |
698dcdb6 VZ |
3883 | |
3884 | fi | |
10f2d63a VZ |
3885 | |
3886 | ||
3887 | eval "$ac_cv_use_fs_inet" | |
3888 | if test "$no_cache" != 1; then | |
3889 | echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp | |
3890 | fi | |
3891 | ||
3892 | if test "$wxUSE_FS_INET" = 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-fs_zip""... $ac_c" 1>&6 |
d73be714 | 3900 | echo "configure:3901: checking for --enable-fs_zip" >&5 |
10f2d63a VZ |
3901 | no_cache=0 |
3902 | # Check whether --enable-fs_zip or --disable-fs_zip was given. | |
3903 | if test "${enable_fs_zip+set}" = set; then | |
3904 | enableval="$enable_fs_zip" | |
698dcdb6 | 3905 | |
10f2d63a VZ |
3906 | if test "$enableval" = yes; then |
3907 | ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes' | |
3908 | else | |
3909 | ac_cv_use_fs_zip='wxUSE_FS_ZIP=no' | |
3910 | fi | |
698dcdb6 | 3911 | |
10f2d63a | 3912 | else |
698dcdb6 | 3913 | |
10f2d63a VZ |
3914 | LINE=`grep "wxUSE_FS_ZIP" ${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_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP | |
698dcdb6 VZ |
3922 | |
3923 | fi | |
10f2d63a VZ |
3924 | |
3925 | ||
3926 | eval "$ac_cv_use_fs_zip" | |
3927 | if test "$no_cache" != 1; then | |
3928 | echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp | |
3929 | fi | |
3930 | ||
3931 | if test "$wxUSE_FS_ZIP" = yes; then | |
698dcdb6 | 3932 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3933 | else |
698dcdb6 | 3934 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3935 | fi |
698dcdb6 | 3936 | |
10f2d63a | 3937 | |
698dcdb6 | 3938 | echo $ac_n "checking for --enable-zipstream""... $ac_c" 1>&6 |
d73be714 | 3939 | echo "configure:3940: checking for --enable-zipstream" >&5 |
10f2d63a VZ |
3940 | no_cache=0 |
3941 | # Check whether --enable-zipstream or --disable-zipstream was given. | |
3942 | if test "${enable_zipstream+set}" = set; then | |
3943 | enableval="$enable_zipstream" | |
698dcdb6 | 3944 | |
10f2d63a VZ |
3945 | if test "$enableval" = yes; then |
3946 | ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes' | |
3947 | else | |
3948 | ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no' | |
3949 | fi | |
698dcdb6 | 3950 | |
10f2d63a | 3951 | else |
698dcdb6 | 3952 | |
10f2d63a VZ |
3953 | LINE=`grep "wxUSE_ZIPSTREAM" ${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_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM | |
698dcdb6 VZ |
3961 | |
3962 | fi | |
10f2d63a VZ |
3963 | |
3964 | ||
3965 | eval "$ac_cv_use_zipstream" | |
3966 | if test "$no_cache" != 1; then | |
3967 | echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp | |
3968 | fi | |
3969 | ||
3970 | if test "$wxUSE_ZIPSTREAM" = 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 VZ |
3977 | |
3978 | echo $ac_n "checking for --enable-catch_segvs""... $ac_c" 1>&6 | |
d73be714 | 3979 | echo "configure:3980: checking for --enable-catch_segvs" >&5 |
eb4efbdc VZ |
3980 | no_cache=0 |
3981 | # Check whether --enable-catch_segvs or --disable-catch_segvs was given. | |
3982 | if test "${enable_catch_segvs+set}" = set; then | |
3983 | enableval="$enable_catch_segvs" | |
698dcdb6 | 3984 | |
eb4efbdc VZ |
3985 | if test "$enableval" = yes; then |
3986 | ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes' | |
3987 | else | |
3988 | ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no' | |
3989 | fi | |
698dcdb6 | 3990 | |
eb4efbdc | 3991 | else |
698dcdb6 | 3992 | |
eb4efbdc VZ |
3993 | LINE=`grep "wxUSE_ON_FATAL_EXCEPTION" ${wx_arg_cache_file}` |
3994 | if test "x$LINE" != x ; then | |
3995 | eval "DEFAULT_$LINE" | |
3996 | else | |
3997 | no_cache=1 | |
3998 | fi | |
3999 | ||
4000 | ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION='$DEFAULT_wxUSE_ON_FATAL_EXCEPTION | |
698dcdb6 VZ |
4001 | |
4002 | fi | |
eb4efbdc VZ |
4003 | |
4004 | ||
4005 | eval "$ac_cv_use_catch_segvs" | |
4006 | if test "$no_cache" != 1; then | |
4007 | echo $ac_cv_use_catch_segvs >> ${wx_arg_cache_file}.tmp | |
4008 | fi | |
4009 | ||
4010 | if test "$wxUSE_ON_FATAL_EXCEPTION" = yes; then | |
698dcdb6 | 4011 | echo "$ac_t""yes" 1>&6 |
eb4efbdc | 4012 | else |
698dcdb6 | 4013 | echo "$ac_t""no" 1>&6 |
eb4efbdc | 4014 | fi |
698dcdb6 | 4015 | |
eb4efbdc | 4016 | |
698dcdb6 | 4017 | echo $ac_n "checking for --enable-snglinst""... $ac_c" 1>&6 |
d73be714 | 4018 | echo "configure:4019: checking for --enable-snglinst" >&5 |
4f3c5f06 VZ |
4019 | no_cache=0 |
4020 | # Check whether --enable-snglinst or --disable-snglinst was given. | |
4021 | if test "${enable_snglinst+set}" = set; then | |
4022 | enableval="$enable_snglinst" | |
698dcdb6 | 4023 | |
4f3c5f06 VZ |
4024 | if test "$enableval" = yes; then |
4025 | ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=yes' | |
4026 | else | |
4027 | ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=no' | |
4028 | fi | |
698dcdb6 | 4029 | |
4f3c5f06 | 4030 | else |
698dcdb6 | 4031 | |
4f3c5f06 VZ |
4032 | LINE=`grep "wxUSE_SNGLINST_CHECKER" ${wx_arg_cache_file}` |
4033 | if test "x$LINE" != x ; then | |
4034 | eval "DEFAULT_$LINE" | |
4035 | else | |
4036 | no_cache=1 | |
4037 | fi | |
4038 | ||
4039 | ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER='$DEFAULT_wxUSE_SNGLINST_CHECKER | |
698dcdb6 VZ |
4040 | |
4041 | fi | |
4f3c5f06 VZ |
4042 | |
4043 | ||
4044 | eval "$ac_cv_use_snglinst" | |
4045 | if test "$no_cache" != 1; then | |
4046 | echo $ac_cv_use_snglinst >> ${wx_arg_cache_file}.tmp | |
4047 | fi | |
4048 | ||
4049 | if test "$wxUSE_SNGLINST_CHECKER" = yes; then | |
698dcdb6 | 4050 | echo "$ac_t""yes" 1>&6 |
4f3c5f06 | 4051 | else |
698dcdb6 | 4052 | echo "$ac_t""no" 1>&6 |
4f3c5f06 | 4053 | fi |
698dcdb6 VZ |
4054 | |
4055 | ||
eb4efbdc | 4056 | |
1e6feb95 | 4057 | echo $ac_n "checking for --enable-mimetype""... $ac_c" 1>&6 |
d73be714 | 4058 | echo "configure:4059: checking for --enable-mimetype" >&5 |
1e6feb95 VZ |
4059 | no_cache=0 |
4060 | # Check whether --enable-mimetype or --disable-mimetype was given. | |
4061 | if test "${enable_mimetype+set}" = set; then | |
4062 | enableval="$enable_mimetype" | |
4063 | ||
4064 | if test "$enableval" = yes; then | |
4065 | ac_cv_use_mimetype='wxUSE_MIMETYPE=yes' | |
4066 | else | |
4067 | ac_cv_use_mimetype='wxUSE_MIMETYPE=no' | |
4068 | fi | |
4069 | ||
4070 | else | |
4071 | ||
4072 | LINE=`grep "wxUSE_MIMETYPE" ${wx_arg_cache_file}` | |
4073 | if test "x$LINE" != x ; then | |
4074 | eval "DEFAULT_$LINE" | |
4075 | else | |
4076 | no_cache=1 | |
4077 | fi | |
4078 | ||
4079 | ac_cv_use_mimetype='wxUSE_MIMETYPE='$DEFAULT_wxUSE_MIMETYPE | |
4080 | ||
4081 | fi | |
4082 | ||
4083 | ||
4084 | eval "$ac_cv_use_mimetype" | |
4085 | if test "$no_cache" != 1; then | |
4086 | echo $ac_cv_use_mimetype >> ${wx_arg_cache_file}.tmp | |
4087 | fi | |
4088 | ||
4089 | if test "$wxUSE_MIMETYPE" = yes; then | |
4090 | echo "$ac_t""yes" 1>&6 | |
4091 | else | |
4092 | echo "$ac_t""no" 1>&6 | |
4093 | fi | |
4094 | ||
4095 | ||
4096 | ||
698dcdb6 VZ |
4097 | |
4098 | echo $ac_n "checking for --enable-threads""... $ac_c" 1>&6 | |
d73be714 | 4099 | echo "configure:4100: checking for --enable-threads" >&5 |
10f2d63a VZ |
4100 | no_cache=0 |
4101 | # Check whether --enable-threads or --disable-threads was given. | |
4102 | if test "${enable_threads+set}" = set; then | |
4103 | enableval="$enable_threads" | |
698dcdb6 | 4104 | |
10f2d63a VZ |
4105 | if test "$enableval" = yes; then |
4106 | ac_cv_use_threads='wxUSE_THREADS=yes' | |
4107 | else | |
4108 | ac_cv_use_threads='wxUSE_THREADS=no' | |
4109 | fi | |
698dcdb6 | 4110 | |
10f2d63a | 4111 | else |
698dcdb6 | 4112 | |
10f2d63a VZ |
4113 | LINE=`grep "wxUSE_THREADS" ${wx_arg_cache_file}` |
4114 | if test "x$LINE" != x ; then | |
4115 | eval "DEFAULT_$LINE" | |
4116 | else | |
4117 | no_cache=1 | |
4118 | fi | |
4119 | ||
4120 | ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS | |
698dcdb6 VZ |
4121 | |
4122 | fi | |
10f2d63a VZ |
4123 | |
4124 | ||
4125 | eval "$ac_cv_use_threads" | |
4126 | if test "$no_cache" != 1; then | |
4127 | echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp | |
4128 | fi | |
4129 | ||
4130 | if test "$wxUSE_THREADS" = yes; then | |
698dcdb6 | 4131 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4132 | else |
698dcdb6 | 4133 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4134 | fi |
698dcdb6 | 4135 | |
10f2d63a | 4136 | |
698dcdb6 | 4137 | echo $ac_n "checking for --enable-serial""... $ac_c" 1>&6 |
d73be714 | 4138 | echo "configure:4139: checking for --enable-serial" >&5 |
10f2d63a VZ |
4139 | no_cache=0 |
4140 | # Check whether --enable-serial or --disable-serial was given. | |
4141 | if test "${enable_serial+set}" = set; then | |
4142 | enableval="$enable_serial" | |
698dcdb6 | 4143 | |
10f2d63a VZ |
4144 | if test "$enableval" = yes; then |
4145 | ac_cv_use_serial='wxUSE_SERIAL=yes' | |
4146 | else | |
4147 | ac_cv_use_serial='wxUSE_SERIAL=no' | |
4148 | fi | |
698dcdb6 | 4149 | |
10f2d63a | 4150 | else |
698dcdb6 | 4151 | |
10f2d63a VZ |
4152 | LINE=`grep "wxUSE_SERIAL" ${wx_arg_cache_file}` |
4153 | if test "x$LINE" != x ; then | |
4154 | eval "DEFAULT_$LINE" | |
4155 | else | |
4156 | no_cache=1 | |
4157 | fi | |
4158 | ||
4159 | ac_cv_use_serial='wxUSE_SERIAL='$DEFAULT_wxUSE_SERIAL | |
698dcdb6 VZ |
4160 | |
4161 | fi | |
10f2d63a VZ |
4162 | |
4163 | ||
4164 | eval "$ac_cv_use_serial" | |
4165 | if test "$no_cache" != 1; then | |
4166 | echo $ac_cv_use_serial >> ${wx_arg_cache_file}.tmp | |
4167 | fi | |
4168 | ||
4169 | if test "$wxUSE_SERIAL" = yes; then | |
698dcdb6 | 4170 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4171 | else |
698dcdb6 | 4172 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4173 | fi |
698dcdb6 | 4174 | |
10f2d63a | 4175 | |
b12915c1 VZ |
4176 | if test "$wxUSE_GUI" = "yes"; then |
4177 | ||
698dcdb6 VZ |
4178 | |
4179 | ||
4180 | echo $ac_n "checking for --enable-docview""... $ac_c" 1>&6 | |
d73be714 | 4181 | echo "configure:4182: checking for --enable-docview" >&5 |
10f2d63a VZ |
4182 | no_cache=0 |
4183 | # Check whether --enable-docview or --disable-docview was given. | |
4184 | if test "${enable_docview+set}" = set; then | |
4185 | enableval="$enable_docview" | |
698dcdb6 | 4186 | |
10f2d63a VZ |
4187 | if test "$enableval" = yes; then |
4188 | ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes' | |
4189 | else | |
4190 | ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no' | |
4191 | fi | |
698dcdb6 | 4192 | |
10f2d63a | 4193 | else |
698dcdb6 | 4194 | |
10f2d63a VZ |
4195 | LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}` |
4196 | if test "x$LINE" != x ; then | |
4197 | eval "DEFAULT_$LINE" | |
4198 | else | |
4199 | no_cache=1 | |
4200 | fi | |
4201 | ||
4202 | ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE | |
698dcdb6 VZ |
4203 | |
4204 | fi | |
10f2d63a VZ |
4205 | |
4206 | ||
4207 | eval "$ac_cv_use_docview" | |
4208 | if test "$no_cache" != 1; then | |
4209 | echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp | |
4210 | fi | |
4211 | ||
4212 | if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then | |
698dcdb6 | 4213 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4214 | else |
698dcdb6 | 4215 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4216 | fi |
698dcdb6 | 4217 | |
10f2d63a | 4218 | |
698dcdb6 | 4219 | echo $ac_n "checking for --enable-help""... $ac_c" 1>&6 |
d73be714 | 4220 | echo "configure:4221: checking for --enable-help" >&5 |
10f2d63a VZ |
4221 | no_cache=0 |
4222 | # Check whether --enable-help or --disable-help was given. | |
4223 | if test "${enable_help+set}" = set; then | |
4224 | enableval="$enable_help" | |
698dcdb6 | 4225 | |
10f2d63a VZ |
4226 | if test "$enableval" = yes; then |
4227 | ac_cv_use_help='wxUSE_HELP=yes' | |
4228 | else | |
4229 | ac_cv_use_help='wxUSE_HELP=no' | |
4230 | fi | |
698dcdb6 | 4231 | |
10f2d63a | 4232 | else |
698dcdb6 | 4233 | |
10f2d63a VZ |
4234 | LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}` |
4235 | if test "x$LINE" != x ; then | |
4236 | eval "DEFAULT_$LINE" | |
4237 | else | |
4238 | no_cache=1 | |
4239 | fi | |
4240 | ||
4241 | ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP | |
698dcdb6 VZ |
4242 | |
4243 | fi | |
10f2d63a VZ |
4244 | |
4245 | ||
4246 | eval "$ac_cv_use_help" | |
4247 | if test "$no_cache" != 1; then | |
4248 | echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp | |
4249 | fi | |
4250 | ||
4251 | if test "$wxUSE_HELP" = yes; then | |
698dcdb6 | 4252 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4253 | else |
698dcdb6 | 4254 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4255 | fi |
698dcdb6 | 4256 | |
10f2d63a | 4257 | |
698dcdb6 | 4258 | echo $ac_n "checking for --enable-constraints""... $ac_c" 1>&6 |
d73be714 | 4259 | echo "configure:4260: checking for --enable-constraints" >&5 |
10f2d63a VZ |
4260 | no_cache=0 |
4261 | # Check whether --enable-constraints or --disable-constraints was given. | |
4262 | if test "${enable_constraints+set}" = set; then | |
4263 | enableval="$enable_constraints" | |
698dcdb6 | 4264 | |
10f2d63a VZ |
4265 | if test "$enableval" = yes; then |
4266 | ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes' | |
4267 | else | |
4268 | ac_cv_use_constraints='wxUSE_CONSTRAINTS=no' | |
4269 | fi | |
698dcdb6 | 4270 | |
10f2d63a | 4271 | else |
698dcdb6 | 4272 | |
10f2d63a VZ |
4273 | LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}` |
4274 | if test "x$LINE" != x ; then | |
4275 | eval "DEFAULT_$LINE" | |
4276 | else | |
4277 | no_cache=1 | |
4278 | fi | |
4279 | ||
4280 | ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS | |
698dcdb6 VZ |
4281 | |
4282 | fi | |
10f2d63a VZ |
4283 | |
4284 | ||
4285 | eval "$ac_cv_use_constraints" | |
4286 | if test "$no_cache" != 1; then | |
4287 | echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp | |
4288 | fi | |
4289 | ||
4290 | if test "$wxUSE_CONSTRAINTS" = yes; then | |
698dcdb6 | 4291 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4292 | else |
698dcdb6 | 4293 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4294 | fi |
698dcdb6 | 4295 | |
10f2d63a | 4296 | |
698dcdb6 | 4297 | echo $ac_n "checking for --enable-printarch""... $ac_c" 1>&6 |
d73be714 | 4298 | echo "configure:4299: checking for --enable-printarch" >&5 |
10f2d63a VZ |
4299 | no_cache=0 |
4300 | # Check whether --enable-printarch or --disable-printarch was given. | |
4301 | if test "${enable_printarch+set}" = set; then | |
4302 | enableval="$enable_printarch" | |
698dcdb6 | 4303 | |
10f2d63a VZ |
4304 | if test "$enableval" = yes; then |
4305 | ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes' | |
4306 | else | |
4307 | ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no' | |
4308 | fi | |
698dcdb6 | 4309 | |
10f2d63a | 4310 | else |
698dcdb6 | 4311 | |
10f2d63a VZ |
4312 | LINE=`grep "wxUSE_PRINTING_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_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE | |
698dcdb6 VZ |
4320 | |
4321 | fi | |
10f2d63a VZ |
4322 | |
4323 | ||
4324 | eval "$ac_cv_use_printarch" | |
4325 | if test "$no_cache" != 1; then | |
4326 | echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp | |
4327 | fi | |
4328 | ||
4329 | if test "$wxUSE_PRINTING_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-mdi""... $ac_c" 1>&6 |
d73be714 | 4337 | echo "configure:4338: checking for --enable-mdi" >&5 |
10f2d63a VZ |
4338 | no_cache=0 |
4339 | # Check whether --enable-mdi or --disable-mdi was given. | |
4340 | if test "${enable_mdi+set}" = set; then | |
4341 | enableval="$enable_mdi" | |
698dcdb6 | 4342 | |
10f2d63a VZ |
4343 | if test "$enableval" = yes; then |
4344 | ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=yes' | |
4345 | else | |
4346 | ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=no' | |
4347 | fi | |
698dcdb6 | 4348 | |
10f2d63a | 4349 | else |
698dcdb6 | 4350 | |
10f2d63a VZ |
4351 | LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${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_mdi='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE | |
698dcdb6 VZ |
4359 | |
4360 | fi | |
10f2d63a VZ |
4361 | |
4362 | ||
4363 | eval "$ac_cv_use_mdi" | |
4364 | if test "$no_cache" != 1; then | |
4365 | echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp | |
4366 | fi | |
4367 | ||
4368 | if test "$wxUSE_MDI_ARCHITECTURE" = 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 VZ |
4373 | |
4374 | ||
1e6feb95 | 4375 | echo $ac_n "checking for --enable-loggui""... $ac_c" 1>&6 |
d73be714 | 4376 | echo "configure:4377: checking for --enable-loggui" >&5 |
1e6feb95 VZ |
4377 | no_cache=0 |
4378 | # Check whether --enable-loggui or --disable-loggui was given. | |
4379 | if test "${enable_loggui+set}" = set; then | |
4380 | enableval="$enable_loggui" | |
4381 | ||
4382 | if test "$enableval" = yes; then | |
4383 | ac_cv_use_loggui='wxUSE_LOGGUI=yes' | |
4384 | else | |
4385 | ac_cv_use_loggui='wxUSE_LOGGUI=no' | |
4386 | fi | |
4387 | ||
4388 | else | |
4389 | ||
4390 | LINE=`grep "wxUSE_LOGGUI" ${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_loggui='wxUSE_LOGGUI='$DEFAULT_wxUSE_LOGGUI | |
4398 | ||
4399 | fi | |
4400 | ||
4401 | ||
4402 | eval "$ac_cv_use_loggui" | |
4403 | if test "$no_cache" != 1; then | |
4404 | echo $ac_cv_use_loggui >> ${wx_arg_cache_file}.tmp | |
4405 | fi | |
4406 | ||
4407 | if test "$wxUSE_LOGGUI" = yes; then | |
4408 | echo "$ac_t""yes" 1>&6 | |
4409 | else | |
4410 | echo "$ac_t""no" 1>&6 | |
4411 | fi | |
4412 | ||
4413 | ||
4414 | echo $ac_n "checking for --enable-logwin""... $ac_c" 1>&6 | |
d73be714 | 4415 | echo "configure:4416: checking for --enable-logwin" >&5 |
1e6feb95 VZ |
4416 | no_cache=0 |
4417 | # Check whether --enable-logwin or --disable-logwin was given. | |
4418 | if test "${enable_logwin+set}" = set; then | |
4419 | enableval="$enable_logwin" | |
4420 | ||
4421 | if test "$enableval" = yes; then | |
4422 | ac_cv_use_logwin='wxUSE_LOGWINDOW=yes' | |
4423 | else | |
4424 | ac_cv_use_logwin='wxUSE_LOGWINDOW=no' | |
4425 | fi | |
4426 | ||
4427 | else | |
4428 | ||
4429 | LINE=`grep "wxUSE_LOGWINDOW" ${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_logwin='wxUSE_LOGWINDOW='$DEFAULT_wxUSE_LOGWINDOW | |
4437 | ||
4438 | fi | |
4439 | ||
4440 | ||
4441 | eval "$ac_cv_use_logwin" | |
4442 | if test "$no_cache" != 1; then | |
4443 | echo $ac_cv_use_logwin >> ${wx_arg_cache_file}.tmp | |
4444 | fi | |
4445 | ||
4446 | if test "$wxUSE_LOGWINDOW" = yes; then | |
4447 | echo "$ac_t""yes" 1>&6 | |
4448 | else | |
4449 | echo "$ac_t""no" 1>&6 | |
4450 | fi | |
4451 | ||
4452 | ||
10f2d63a | 4453 | |
698dcdb6 | 4454 | echo $ac_n "checking for --enable-postscript""... $ac_c" 1>&6 |
d73be714 | 4455 | echo "configure:4456: checking for --enable-postscript" >&5 |
10f2d63a VZ |
4456 | no_cache=0 |
4457 | # Check whether --enable-postscript or --disable-postscript was given. | |
4458 | if test "${enable_postscript+set}" = set; then | |
4459 | enableval="$enable_postscript" | |
698dcdb6 | 4460 | |
10f2d63a VZ |
4461 | if test "$enableval" = yes; then |
4462 | ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes' | |
4463 | else | |
4464 | ac_cv_use_postscript='wxUSE_POSTSCRIPT=no' | |
4465 | fi | |
698dcdb6 | 4466 | |
10f2d63a | 4467 | else |
698dcdb6 | 4468 | |
10f2d63a VZ |
4469 | LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}` |
4470 | if test "x$LINE" != x ; then | |
4471 | eval "DEFAULT_$LINE" | |
4472 | else | |
4473 | no_cache=1 | |
4474 | fi | |
4475 | ||
4476 | ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT | |
698dcdb6 VZ |
4477 | |
4478 | fi | |
10f2d63a VZ |
4479 | |
4480 | ||
4481 | eval "$ac_cv_use_postscript" | |
4482 | if test "$no_cache" != 1; then | |
4483 | echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp | |
4484 | fi | |
4485 | ||
4486 | if test "$wxUSE_POSTSCRIPT" = yes; then | |
698dcdb6 | 4487 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4488 | else |
698dcdb6 | 4489 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4490 | fi |
698dcdb6 VZ |
4491 | |
4492 | ||
4493 | ||
10f2d63a | 4494 | |
1e6feb95 | 4495 | |
698dcdb6 | 4496 | echo $ac_n "checking for --enable-prologio""... $ac_c" 1>&6 |
d73be714 | 4497 | echo "configure:4498: checking for --enable-prologio" >&5 |
10f2d63a VZ |
4498 | no_cache=0 |
4499 | # Check whether --enable-prologio or --disable-prologio was given. | |
4500 | if test "${enable_prologio+set}" = set; then | |
4501 | enableval="$enable_prologio" | |
698dcdb6 | 4502 | |
10f2d63a VZ |
4503 | if test "$enableval" = yes; then |
4504 | ac_cv_use_prologio='wxUSE_PROLOGIO=yes' | |
4505 | else | |
4506 | ac_cv_use_prologio='wxUSE_PROLOGIO=no' | |
4507 | fi | |
698dcdb6 | 4508 | |
10f2d63a | 4509 | else |
698dcdb6 | 4510 | |
10f2d63a VZ |
4511 | LINE=`grep "wxUSE_PROLOGIO" ${wx_arg_cache_file}` |
4512 | if test "x$LINE" != x ; then | |
4513 | eval "DEFAULT_$LINE" | |
4514 | else | |
4515 | no_cache=1 | |
4516 | fi | |
4517 | ||
4518 | ac_cv_use_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO | |
698dcdb6 VZ |
4519 | |
4520 | fi | |
10f2d63a VZ |
4521 | |
4522 | ||
4523 | eval "$ac_cv_use_prologio" | |
4524 | if test "$no_cache" != 1; then | |
4525 | echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp | |
4526 | fi | |
4527 | ||
4528 | if test "$wxUSE_PROLOGIO" = yes; then | |
698dcdb6 | 4529 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4530 | else |
698dcdb6 | 4531 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4532 | fi |
698dcdb6 | 4533 | |
10f2d63a | 4534 | |
698dcdb6 | 4535 | echo $ac_n "checking for --enable-resources""... $ac_c" 1>&6 |
d73be714 | 4536 | echo "configure:4537: checking for --enable-resources" >&5 |
10f2d63a VZ |
4537 | no_cache=0 |
4538 | # Check whether --enable-resources or --disable-resources was given. | |
4539 | if test "${enable_resources+set}" = set; then | |
4540 | enableval="$enable_resources" | |
698dcdb6 | 4541 | |
10f2d63a VZ |
4542 | if test "$enableval" = yes; then |
4543 | ac_cv_use_resources='wxUSE_RESOURCES=yes' | |
4544 | else | |
4545 | ac_cv_use_resources='wxUSE_RESOURCES=no' | |
4546 | fi | |
698dcdb6 | 4547 | |
10f2d63a | 4548 | else |
698dcdb6 | 4549 | |
10f2d63a VZ |
4550 | LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}` |
4551 | if test "x$LINE" != x ; then | |
4552 | eval "DEFAULT_$LINE" | |
4553 | else | |
4554 | no_cache=1 | |
4555 | fi | |
4556 | ||
4557 | ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES | |
698dcdb6 VZ |
4558 | |
4559 | fi | |
10f2d63a VZ |
4560 | |
4561 | ||
4562 | eval "$ac_cv_use_resources" | |
4563 | if test "$no_cache" != 1; then | |
4564 | echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp | |
4565 | fi | |
4566 | ||
4567 | if test "$wxUSE_RESOURCES" = yes; then | |
698dcdb6 | 4568 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4569 | else |
698dcdb6 | 4570 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4571 | fi |
698dcdb6 | 4572 | |
10f2d63a | 4573 | |
698dcdb6 VZ |
4574 | |
4575 | echo $ac_n "checking for --enable-xresources""... $ac_c" 1>&6 | |
d73be714 | 4576 | echo "configure:4577: checking for --enable-xresources" >&5 |
10f2d63a VZ |
4577 | no_cache=0 |
4578 | # Check whether --enable-xresources or --disable-xresources was given. | |
4579 | if test "${enable_xresources+set}" = set; then | |
4580 | enableval="$enable_xresources" | |
698dcdb6 | 4581 | |
10f2d63a VZ |
4582 | if test "$enableval" = yes; then |
4583 | ac_cv_use_xresources='wxUSE_X_RESOURCES=yes' | |
4584 | else | |
4585 | ac_cv_use_xresources='wxUSE_X_RESOURCES=no' | |
4586 | fi | |
698dcdb6 | 4587 | |
10f2d63a | 4588 | else |
698dcdb6 | 4589 | |
10f2d63a VZ |
4590 | LINE=`grep "wxUSE_X_RESOURCES" ${wx_arg_cache_file}` |
4591 | if test "x$LINE" != x ; then | |
4592 | eval "DEFAULT_$LINE" | |
4593 | else | |
4594 | no_cache=1 | |
4595 | fi | |
4596 | ||
4597 | ac_cv_use_xresources='wxUSE_X_RESOURCES='$DEFAULT_wxUSE_X_RESOURCES | |
698dcdb6 VZ |
4598 | |
4599 | fi | |
10f2d63a VZ |
4600 | |
4601 | ||
4602 | eval "$ac_cv_use_xresources" | |
4603 | if test "$no_cache" != 1; then | |
4604 | echo $ac_cv_use_xresources >> ${wx_arg_cache_file}.tmp | |
4605 | fi | |
4606 | ||
4607 | if test "$wxUSE_X_RESOURCES" = yes; then | |
698dcdb6 | 4608 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4609 | else |
698dcdb6 | 4610 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4611 | fi |
698dcdb6 VZ |
4612 | |
4613 | ||
10f2d63a | 4614 | |
698dcdb6 VZ |
4615 | |
4616 | echo $ac_n "checking for --enable-clipboard""... $ac_c" 1>&6 | |
d73be714 | 4617 | echo "configure:4618: checking for --enable-clipboard" >&5 |
10f2d63a VZ |
4618 | no_cache=0 |
4619 | # Check whether --enable-clipboard or --disable-clipboard was given. | |
4620 | if test "${enable_clipboard+set}" = set; then | |
4621 | enableval="$enable_clipboard" | |
698dcdb6 | 4622 | |
10f2d63a VZ |
4623 | if test "$enableval" = yes; then |
4624 | ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes' | |
4625 | else | |
4626 | ac_cv_use_clipboard='wxUSE_CLIPBOARD=no' | |
4627 | fi | |
698dcdb6 | 4628 | |
10f2d63a | 4629 | else |
698dcdb6 | 4630 | |
10f2d63a VZ |
4631 | LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}` |
4632 | if test "x$LINE" != x ; then | |
4633 | eval "DEFAULT_$LINE" | |
4634 | else | |
4635 | no_cache=1 | |
4636 | fi | |
4637 | ||
4638 | ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD | |
698dcdb6 VZ |
4639 | |
4640 | fi | |
10f2d63a VZ |
4641 | |
4642 | ||
4643 | eval "$ac_cv_use_clipboard" | |
4644 | if test "$no_cache" != 1; then | |
4645 | echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp | |
4646 | fi | |
4647 | ||
4648 | if test "$wxUSE_CLIPBOARD" = yes; then | |
698dcdb6 | 4649 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4650 | else |
698dcdb6 | 4651 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4652 | fi |
698dcdb6 | 4653 | |
10f2d63a | 4654 | |
698dcdb6 | 4655 | echo $ac_n "checking for --enable-dnd""... $ac_c" 1>&6 |
d73be714 | 4656 | echo "configure:4657: checking for --enable-dnd" >&5 |
10f2d63a VZ |
4657 | no_cache=0 |
4658 | # Check whether --enable-dnd or --disable-dnd was given. | |
4659 | if test "${enable_dnd+set}" = set; then | |
4660 | enableval="$enable_dnd" | |
698dcdb6 | 4661 | |
10f2d63a VZ |
4662 | if test "$enableval" = yes; then |
4663 | ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes' | |
4664 | else | |
4665 | ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no' | |
4666 | fi | |
698dcdb6 | 4667 | |
10f2d63a | 4668 | else |
698dcdb6 | 4669 | |
10f2d63a VZ |
4670 | LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}` |
4671 | if test "x$LINE" != x ; then | |
4672 | eval "DEFAULT_$LINE" | |
4673 | else | |
4674 | no_cache=1 | |
4675 | fi | |
4676 | ||
4677 | ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP | |
698dcdb6 VZ |
4678 | |
4679 | fi | |
10f2d63a VZ |
4680 | |
4681 | ||
4682 | eval "$ac_cv_use_dnd" | |
4683 | if test "$no_cache" != 1; then | |
4684 | echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp | |
4685 | fi | |
4686 | ||
4687 | if test "$wxUSE_DRAG_AND_DROP" = yes; then | |
698dcdb6 | 4688 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4689 | else |
698dcdb6 | 4690 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4691 | fi |
698dcdb6 | 4692 | |
10f2d63a | 4693 | |
698dcdb6 | 4694 | echo $ac_n "checking for --enable-metafile""... $ac_c" 1>&6 |
d73be714 | 4695 | echo "configure:4696: checking for --enable-metafile" >&5 |
b64f0a5f RL |
4696 | no_cache=0 |
4697 | # Check whether --enable-metafile or --disable-metafile was given. | |
4698 | if test "${enable_metafile+set}" = set; then | |
4699 | enableval="$enable_metafile" | |
698dcdb6 | 4700 | |
b64f0a5f RL |
4701 | if test "$enableval" = yes; then |
4702 | ac_cv_use_metafile='wxUSE_METAFILE=yes' | |
4703 | else | |
4704 | ac_cv_use_metafile='wxUSE_METAFILE=no' | |
4705 | fi | |
698dcdb6 | 4706 | |
b64f0a5f | 4707 | else |
698dcdb6 | 4708 | |
b64f0a5f RL |
4709 | LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}` |
4710 | if test "x$LINE" != x ; then | |
4711 | eval "DEFAULT_$LINE" | |
4712 | else | |
4713 | no_cache=1 | |
4714 | fi | |
4715 | ||
4716 | ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE | |
698dcdb6 VZ |
4717 | |
4718 | fi | |
b64f0a5f RL |
4719 | |
4720 | ||
4721 | eval "$ac_cv_use_metafile" | |
4722 | if test "$no_cache" != 1; then | |
4723 | echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp | |
4724 | fi | |
4725 | ||
4726 | if test "$wxUSE_METAFILE" = yes; then | |
698dcdb6 | 4727 | echo "$ac_t""yes" 1>&6 |
b64f0a5f | 4728 | else |
698dcdb6 | 4729 | echo "$ac_t""no" 1>&6 |
b64f0a5f | 4730 | fi |
698dcdb6 VZ |
4731 | |
4732 | ||
10f2d63a | 4733 | |
698dcdb6 | 4734 | echo $ac_n "checking for --enable-wxtree""... $ac_c" 1>&6 |
d73be714 | 4735 | echo "configure:4736: checking for --enable-wxtree" >&5 |
10f2d63a VZ |
4736 | no_cache=0 |
4737 | # Check whether --enable-wxtree or --disable-wxtree was given. | |
4738 | if test "${enable_wxtree+set}" = set; then | |
4739 | enableval="$enable_wxtree" | |
698dcdb6 | 4740 | |
10f2d63a VZ |
4741 | if test "$enableval" = yes; then |
4742 | ac_cv_use_wxtree='wxUSE_WXTREE=yes' | |
4743 | else | |
4744 | ac_cv_use_wxtree='wxUSE_WXTREE=no' | |
4745 | fi | |
698dcdb6 | 4746 | |
10f2d63a | 4747 | else |
698dcdb6 | 4748 | |
10f2d63a VZ |
4749 | LINE=`grep "wxUSE_WXTREE" ${wx_arg_cache_file}` |
4750 | if test "x$LINE" != x ; then | |
4751 | eval "DEFAULT_$LINE" | |
4752 | else | |
4753 | no_cache=1 | |
4754 | fi | |
4755 | ||
4756 | ac_cv_use_wxtree='wxUSE_WXTREE='$DEFAULT_wxUSE_WXTREE | |
698dcdb6 VZ |
4757 | |
4758 | fi | |
10f2d63a VZ |
4759 | |
4760 | ||
4761 | eval "$ac_cv_use_wxtree" | |
4762 | if test "$no_cache" != 1; then | |
4763 | echo $ac_cv_use_wxtree >> ${wx_arg_cache_file}.tmp | |
4764 | fi | |
4765 | ||
4766 | if test "$wxUSE_WXTREE" = yes; then | |
698dcdb6 | 4767 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4768 | else |
698dcdb6 | 4769 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4770 | fi |
698dcdb6 | 4771 | |
10f2d63a | 4772 | |
698dcdb6 VZ |
4773 | |
4774 | ||
4775 | echo $ac_n "checking for --enable-controls""... $ac_c" 1>&6 | |
d73be714 | 4776 | echo "configure:4777: checking for --enable-controls" >&5 |
10f2d63a VZ |
4777 | no_cache=0 |
4778 | # Check whether --enable-controls or --disable-controls was given. | |
4779 | if test "${enable_controls+set}" = set; then | |
4780 | enableval="$enable_controls" | |
698dcdb6 | 4781 | |
10f2d63a VZ |
4782 | if test "$enableval" = yes; then |
4783 | ac_cv_use_controls='wxUSE_CONTROLS=yes' | |
4784 | else | |
4785 | ac_cv_use_controls='wxUSE_CONTROLS=no' | |
4786 | fi | |
698dcdb6 | 4787 | |
10f2d63a | 4788 | else |
698dcdb6 | 4789 | |
10f2d63a VZ |
4790 | LINE=`grep "wxUSE_CONTROLS" ${wx_arg_cache_file}` |
4791 | if test "x$LINE" != x ; then | |
4792 | eval "DEFAULT_$LINE" | |
4793 | else | |
4794 | no_cache=1 | |
4795 | fi | |
4796 | ||
4797 | ac_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS | |
698dcdb6 VZ |
4798 | |
4799 | fi | |
10f2d63a VZ |
4800 | |
4801 | ||
4802 | eval "$ac_cv_use_controls" | |
4803 | if test "$no_cache" != 1; then | |
4804 | echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp | |
4805 | fi | |
4806 | ||
4807 | if test "$wxUSE_CONTROLS" = yes; then | |
698dcdb6 | 4808 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4809 | else |
698dcdb6 | 4810 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4811 | fi |
698dcdb6 | 4812 | |
10f2d63a VZ |
4813 | |
4814 | if test "$wxUSE_CONTROLS" = "yes"; then | |
4815 | DEFAULT_wxUSE_ACCEL=yes | |
1e6feb95 VZ |
4816 | DEFAULT_wxUSE_BMPBUTTON=yes |
4817 | DEFAULT_wxUSE_BUTTON=yes | |
4818 | DEFAULT_wxUSE_CALCTRL=no | |
10f2d63a VZ |
4819 | DEFAULT_wxUSE_CARET=yes |
4820 | DEFAULT_wxUSE_COMBOBOX=yes | |
10f2d63a VZ |
4821 | DEFAULT_wxUSE_CHECKBOX=yes |
4822 | DEFAULT_wxUSE_CHECKLISTBOX=yes | |
4823 | DEFAULT_wxUSE_CHOICE=yes | |
4824 | DEFAULT_wxUSE_GAUGE=yes | |
4825 | DEFAULT_wxUSE_GRID=yes | |
cc977e5f | 4826 | DEFAULT_wxUSE_NEW_GRID=yes |
10f2d63a VZ |
4827 | DEFAULT_wxUSE_IMAGLIST=yes |
4828 | DEFAULT_wxUSE_LISTBOX=yes | |
4829 | DEFAULT_wxUSE_LISTCTRL=yes | |
4830 | DEFAULT_wxUSE_NOTEBOOK=yes | |
4831 | DEFAULT_wxUSE_RADIOBOX=yes | |
4832 | DEFAULT_wxUSE_RADIOBTN=yes | |
4833 | DEFAULT_wxUSE_SASH=yes | |
4834 | DEFAULT_wxUSE_SCROLLBAR=yes | |
4835 | DEFAULT_wxUSE_SLIDER=yes | |
4836 | DEFAULT_wxUSE_SPINBTN=yes | |
56cfaa52 | 4837 | DEFAULT_wxUSE_SPINCTRL=yes |
10f2d63a VZ |
4838 | DEFAULT_wxUSE_SPLITTER=yes |
4839 | DEFAULT_wxUSE_STATBMP=yes | |
4840 | DEFAULT_wxUSE_STATBOX=yes | |
4841 | DEFAULT_wxUSE_STATLINE=yes | |
4842 | DEFAULT_wxUSE_STATUSBAR=yes | |
4843 | DEFAULT_wxUSE_TAB_DIALOG=yes | |
1db8dc4a | 4844 | DEFAULT_wxUSE_TOGGLEBTN=yes |
10f2d63a | 4845 | DEFAULT_wxUSE_TOOLBAR=yes |
360d6699 VZ |
4846 | DEFAULT_wxUSE_TOOLBAR_NATIVE=yes |
4847 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes | |
10f2d63a VZ |
4848 | DEFAULT_wxUSE_TOOLTIPS=yes |
4849 | DEFAULT_wxUSE_TREECTRL=yes | |
4850 | elif test "$wxUSE_CONTROLS" = "no"; then | |
4851 | DEFAULT_wxUSE_ACCEL=no | |
1e6feb95 VZ |
4852 | DEFAULT_wxUSE_BMPBUTTON=no |
4853 | DEFAULT_wxUSE_BUTTON=no | |
4854 | DEFAULT_wxUSE_CALCTRL=no | |
10f2d63a VZ |
4855 | DEFAULT_wxUSE_CARET=no |
4856 | DEFAULT_wxUSE_COMBOBOX=no | |
10f2d63a VZ |
4857 | DEFAULT_wxUSE_CHECKBOX=no |
4858 | DEFAULT_wxUSE_CHECKLISTBOX=no | |
4859 | DEFAULT_wxUSE_CHOICE=no | |
4860 | DEFAULT_wxUSE_GAUGE=no | |
4861 | DEFAULT_wxUSE_GRID=no | |
4862 | DEFAULT_wxUSE_NEW_GRID=no | |
4863 | DEFAULT_wxUSE_IMAGLIST=no | |
4864 | DEFAULT_wxUSE_LISTBOX=no | |
4865 | DEFAULT_wxUSE_LISTCTRL=no | |
4866 | DEFAULT_wxUSE_NOTEBOOK=no | |
4867 | DEFAULT_wxUSE_RADIOBOX=no | |
4868 | DEFAULT_wxUSE_RADIOBTN=no | |
4869 | DEFAULT_wxUSE_SASH=no | |
4870 | DEFAULT_wxUSE_SCROLLBAR=no | |
4871 | DEFAULT_wxUSE_SLIDER=no | |
4872 | DEFAULT_wxUSE_SPINBTN=no | |
56cfaa52 | 4873 | DEFAULT_wxUSE_SPINCTRL=no |
10f2d63a VZ |
4874 | DEFAULT_wxUSE_SPLITTER=no |
4875 | DEFAULT_wxUSE_STATBMP=no | |
4876 | DEFAULT_wxUSE_STATBOX=no | |
4877 | DEFAULT_wxUSE_STATLINE=no | |
4878 | DEFAULT_wxUSE_STATUSBAR=no | |
4879 | DEFAULT_wxUSE_TAB_DIALOG=no | |
1db8dc4a | 4880 | DEFAULT_wxUSE_TOGGLEBTN=no |
10f2d63a | 4881 | DEFAULT_wxUSE_TOOLBAR=no |
360d6699 VZ |
4882 | DEFAULT_wxUSE_TOOLBAR_NATIVE=no |
4883 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=no | |
10f2d63a VZ |
4884 | DEFAULT_wxUSE_TOOLTIPS=no |
4885 | DEFAULT_wxUSE_TREECTRL=no | |
4886 | fi | |
4887 | ||
698dcdb6 VZ |
4888 | |
4889 | echo $ac_n "checking for --enable-accel""... $ac_c" 1>&6 | |
d73be714 | 4890 | echo "configure:4891: checking for --enable-accel" >&5 |
10f2d63a VZ |
4891 | no_cache=0 |
4892 | # Check whether --enable-accel or --disable-accel was given. | |
4893 | if test "${enable_accel+set}" = set; then | |
4894 | enableval="$enable_accel" | |
698dcdb6 | 4895 | |
10f2d63a VZ |
4896 | if test "$enableval" = yes; then |
4897 | ac_cv_use_accel='wxUSE_ACCEL=yes' | |
4898 | else | |
4899 | ac_cv_use_accel='wxUSE_ACCEL=no' | |
4900 | fi | |
698dcdb6 | 4901 | |
10f2d63a | 4902 | else |
698dcdb6 | 4903 | |
10f2d63a VZ |
4904 | LINE=`grep "wxUSE_ACCEL" ${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_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL | |
698dcdb6 VZ |
4912 | |
4913 | fi | |
10f2d63a VZ |
4914 | |
4915 | ||
4916 | eval "$ac_cv_use_accel" | |
4917 | if test "$no_cache" != 1; then | |
4918 | echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp | |
4919 | fi | |
4920 | ||
4921 | if test "$wxUSE_ACCEL" = 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 | |
1e6feb95 | 4928 | echo $ac_n "checking for --enable-button""... $ac_c" 1>&6 |
d73be714 | 4929 | echo "configure:4930: checking for --enable-button" >&5 |
10f2d63a | 4930 | no_cache=0 |
1e6feb95 VZ |
4931 | # Check whether --enable-button or --disable-button was given. |
4932 | if test "${enable_button+set}" = set; then | |
4933 | enableval="$enable_button" | |
698dcdb6 | 4934 | |
10f2d63a | 4935 | if test "$enableval" = yes; then |
1e6feb95 | 4936 | ac_cv_use_button='wxUSE_BUTTON=yes' |
10f2d63a | 4937 | else |
1e6feb95 | 4938 | ac_cv_use_button='wxUSE_BUTTON=no' |
10f2d63a | 4939 | fi |
698dcdb6 | 4940 | |
10f2d63a | 4941 | else |
698dcdb6 | 4942 | |
1e6feb95 | 4943 | LINE=`grep "wxUSE_BUTTON" ${wx_arg_cache_file}` |
10f2d63a VZ |
4944 | if test "x$LINE" != x ; then |
4945 | eval "DEFAULT_$LINE" | |
4946 | else | |
4947 | no_cache=1 | |
4948 | fi | |
4949 | ||
1e6feb95 | 4950 | ac_cv_use_button='wxUSE_BUTTON='$DEFAULT_wxUSE_BUTTON |
698dcdb6 VZ |
4951 | |
4952 | fi | |
10f2d63a VZ |
4953 | |
4954 | ||
1e6feb95 | 4955 | eval "$ac_cv_use_button" |
10f2d63a | 4956 | if test "$no_cache" != 1; then |
1e6feb95 | 4957 | echo $ac_cv_use_button >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
4958 | fi |
4959 | ||
1e6feb95 | 4960 | if test "$wxUSE_BUTTON" = yes; then |
698dcdb6 | 4961 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4962 | else |
698dcdb6 | 4963 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4964 | fi |
698dcdb6 | 4965 | |
10f2d63a | 4966 | |
698dcdb6 | 4967 | echo $ac_n "checking for --enable-bmpbutton""... $ac_c" 1>&6 |
d73be714 | 4968 | echo "configure:4969: checking for --enable-bmpbutton" >&5 |
10f2d63a VZ |
4969 | no_cache=0 |
4970 | # Check whether --enable-bmpbutton or --disable-bmpbutton was given. | |
4971 | if test "${enable_bmpbutton+set}" = set; then | |
4972 | enableval="$enable_bmpbutton" | |
698dcdb6 | 4973 | |
10f2d63a VZ |
4974 | if test "$enableval" = yes; then |
4975 | ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes' | |
4976 | else | |
4977 | ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no' | |
4978 | fi | |
698dcdb6 | 4979 | |
10f2d63a | 4980 | else |
698dcdb6 | 4981 | |
10f2d63a VZ |
4982 | LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}` |
4983 | if test "x$LINE" != x ; then | |
4984 | eval "DEFAULT_$LINE" | |
4985 | else | |
4986 | no_cache=1 | |
4987 | fi | |
4988 | ||
4989 | ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON | |
698dcdb6 VZ |
4990 | |
4991 | fi | |
10f2d63a VZ |
4992 | |
4993 | ||
4994 | eval "$ac_cv_use_bmpbutton" | |
4995 | if test "$no_cache" != 1; then | |
4996 | echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp | |
4997 | fi | |
4998 | ||
4999 | if test "$wxUSE_BMPBUTTON" = yes; then | |
698dcdb6 | 5000 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5001 | else |
698dcdb6 | 5002 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5003 | fi |
698dcdb6 | 5004 | |
10f2d63a | 5005 | |
1e6feb95 | 5006 | echo $ac_n "checking for --enable-calendar""... $ac_c" 1>&6 |
d73be714 | 5007 | echo "configure:5008: checking for --enable-calendar" >&5 |
1e6feb95 VZ |
5008 | no_cache=0 |
5009 | # Check whether --enable-calendar or --disable-calendar was given. | |
5010 | if test "${enable_calendar+set}" = set; then | |
5011 | enableval="$enable_calendar" | |
5012 | ||
5013 | if test "$enableval" = yes; then | |
5014 | ac_cv_use_calendar='wxUSE_CALCTRL=yes' | |
5015 | else | |
5016 | ac_cv_use_calendar='wxUSE_CALCTRL=no' | |
5017 | fi | |
5018 | ||
5019 | else | |
5020 | ||
5021 | LINE=`grep "wxUSE_CALCTRL" ${wx_arg_cache_file}` | |
5022 | if test "x$LINE" != x ; then | |
5023 | eval "DEFAULT_$LINE" | |
5024 | else | |
5025 | no_cache=1 | |
5026 | fi | |
5027 | ||
5028 | ac_cv_use_calendar='wxUSE_CALCTRL='$DEFAULT_wxUSE_CALCTRL | |
5029 | ||
5030 | fi | |
5031 | ||
5032 | ||
5033 | eval "$ac_cv_use_calendar" | |
5034 | if test "$no_cache" != 1; then | |
5035 | echo $ac_cv_use_calendar >> ${wx_arg_cache_file}.tmp | |
5036 | fi | |
5037 | ||
5038 | if test "$wxUSE_CALCTRL" = yes; then | |
5039 | echo "$ac_t""yes" 1>&6 | |
5040 | else | |
5041 | echo "$ac_t""no" 1>&6 | |
5042 | fi | |
5043 | ||
5044 | ||
5045 | echo $ac_n "checking for --enable-caret""... $ac_c" 1>&6 | |
d73be714 | 5046 | echo "configure:5047: checking for --enable-caret" >&5 |
1e6feb95 VZ |
5047 | no_cache=0 |
5048 | # Check whether --enable-caret or --disable-caret was given. | |
5049 | if test "${enable_caret+set}" = set; then | |
5050 | enableval="$enable_caret" | |
5051 | ||
5052 | if test "$enableval" = yes; then | |
5053 | ac_cv_use_caret='wxUSE_CARET=yes' | |
5054 | else | |
5055 | ac_cv_use_caret='wxUSE_CARET=no' | |
5056 | fi | |
5057 | ||
5058 | else | |
5059 | ||
5060 | LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}` | |
5061 | if test "x$LINE" != x ; then | |
5062 | eval "DEFAULT_$LINE" | |
5063 | else | |
5064 | no_cache=1 | |
5065 | fi | |
5066 | ||
5067 | ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET | |
5068 | ||
5069 | fi | |
5070 | ||
5071 | ||
5072 | eval "$ac_cv_use_caret" | |
5073 | if test "$no_cache" != 1; then | |
5074 | echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp | |
5075 | fi | |
5076 | ||
5077 | if test "$wxUSE_CARET" = yes; then | |
5078 | echo "$ac_t""yes" 1>&6 | |
5079 | else | |
5080 | echo "$ac_t""no" 1>&6 | |
5081 | fi | |
5082 | ||
5083 | ||
698dcdb6 | 5084 | echo $ac_n "checking for --enable-checkbox""... $ac_c" 1>&6 |
d73be714 | 5085 | echo "configure:5086: checking for --enable-checkbox" >&5 |
10f2d63a VZ |
5086 | no_cache=0 |
5087 | # Check whether --enable-checkbox or --disable-checkbox was given. | |
5088 | if test "${enable_checkbox+set}" = set; then | |
5089 | enableval="$enable_checkbox" | |
698dcdb6 | 5090 | |
10f2d63a VZ |
5091 | if test "$enableval" = yes; then |
5092 | ac_cv_use_checkbox='wxUSE_CHECKBOX=yes' | |
5093 | else | |
5094 | ac_cv_use_checkbox='wxUSE_CHECKBOX=no' | |
5095 | fi | |
698dcdb6 | 5096 | |
10f2d63a | 5097 | else |
698dcdb6 | 5098 | |
10f2d63a VZ |
5099 | LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}` |
5100 | if test "x$LINE" != x ; then | |
5101 | eval "DEFAULT_$LINE" | |
5102 | else | |
5103 | no_cache=1 | |
5104 | fi | |
5105 | ||
5106 | ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX | |
698dcdb6 VZ |
5107 | |
5108 | fi | |
10f2d63a VZ |
5109 | |
5110 | ||
5111 | eval "$ac_cv_use_checkbox" | |
5112 | if test "$no_cache" != 1; then | |
5113 | echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp | |
5114 | fi | |
5115 | ||
5116 | if test "$wxUSE_CHECKBOX" = yes; then | |
698dcdb6 | 5117 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5118 | else |
698dcdb6 | 5119 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5120 | fi |
698dcdb6 | 5121 | |
10f2d63a | 5122 | |
698dcdb6 | 5123 | echo $ac_n "checking for --enable-checklst""... $ac_c" 1>&6 |
d73be714 | 5124 | echo "configure:5125: checking for --enable-checklst" >&5 |
10f2d63a VZ |
5125 | no_cache=0 |
5126 | # Check whether --enable-checklst or --disable-checklst was given. | |
5127 | if test "${enable_checklst+set}" = set; then | |
5128 | enableval="$enable_checklst" | |
698dcdb6 | 5129 | |
10f2d63a VZ |
5130 | if test "$enableval" = yes; then |
5131 | ac_cv_use_checklst='wxUSE_CHECKLST=yes' | |
5132 | else | |
5133 | ac_cv_use_checklst='wxUSE_CHECKLST=no' | |
5134 | fi | |
698dcdb6 | 5135 | |
10f2d63a | 5136 | else |
698dcdb6 | 5137 | |
10f2d63a VZ |
5138 | LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}` |
5139 | if test "x$LINE" != x ; then | |
5140 | eval "DEFAULT_$LINE" | |
5141 | else | |
5142 | no_cache=1 | |
5143 | fi | |
5144 | ||
5145 | ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST | |
698dcdb6 VZ |
5146 | |
5147 | fi | |
10f2d63a VZ |
5148 | |
5149 | ||
5150 | eval "$ac_cv_use_checklst" | |
5151 | if test "$no_cache" != 1; then | |
5152 | echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp | |
5153 | fi | |
5154 | ||
5155 | if test "$wxUSE_CHECKLST" = yes; then | |
698dcdb6 | 5156 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5157 | else |
698dcdb6 | 5158 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5159 | fi |
698dcdb6 | 5160 | |
10f2d63a | 5161 | |
698dcdb6 | 5162 | echo $ac_n "checking for --enable-choice""... $ac_c" 1>&6 |
d73be714 | 5163 | echo "configure:5164: checking for --enable-choice" >&5 |
10f2d63a VZ |
5164 | no_cache=0 |
5165 | # Check whether --enable-choice or --disable-choice was given. | |
5166 | if test "${enable_choice+set}" = set; then | |
5167 | enableval="$enable_choice" | |
698dcdb6 | 5168 | |
10f2d63a VZ |
5169 | if test "$enableval" = yes; then |
5170 | ac_cv_use_choice='wxUSE_CHOICE=yes' | |
5171 | else | |
5172 | ac_cv_use_choice='wxUSE_CHOICE=no' | |
5173 | fi | |
698dcdb6 | 5174 | |
10f2d63a | 5175 | else |
698dcdb6 | 5176 | |
10f2d63a VZ |
5177 | LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}` |
5178 | if test "x$LINE" != x ; then | |
5179 | eval "DEFAULT_$LINE" | |
5180 | else | |
5181 | no_cache=1 | |
5182 | fi | |
5183 | ||
5184 | ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE | |
698dcdb6 VZ |
5185 | |
5186 | fi | |
10f2d63a VZ |
5187 | |
5188 | ||
5189 | eval "$ac_cv_use_choice" | |
5190 | if test "$no_cache" != 1; then | |
5191 | echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp | |
5192 | fi | |
5193 | ||
5194 | if test "$wxUSE_CHOICE" = yes; then | |
698dcdb6 | 5195 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5196 | else |
698dcdb6 | 5197 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5198 | fi |
698dcdb6 | 5199 | |
10f2d63a | 5200 | |
698dcdb6 | 5201 | echo $ac_n "checking for --enable-combobox""... $ac_c" 1>&6 |
d73be714 | 5202 | echo "configure:5203: checking for --enable-combobox" >&5 |
10f2d63a VZ |
5203 | no_cache=0 |
5204 | # Check whether --enable-combobox or --disable-combobox was given. | |
5205 | if test "${enable_combobox+set}" = set; then | |
5206 | enableval="$enable_combobox" | |
698dcdb6 | 5207 | |
10f2d63a VZ |
5208 | if test "$enableval" = yes; then |
5209 | ac_cv_use_combobox='wxUSE_COMBOBOX=yes' | |
5210 | else | |
5211 | ac_cv_use_combobox='wxUSE_COMBOBOX=no' | |
5212 | fi | |
698dcdb6 | 5213 | |
10f2d63a | 5214 | else |
698dcdb6 | 5215 | |
10f2d63a VZ |
5216 | LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}` |
5217 | if test "x$LINE" != x ; then | |
5218 | eval "DEFAULT_$LINE" | |
5219 | else | |
5220 | no_cache=1 | |
5221 | fi | |
5222 | ||
5223 | ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX | |
698dcdb6 VZ |
5224 | |
5225 | fi | |
10f2d63a VZ |
5226 | |
5227 | ||
5228 | eval "$ac_cv_use_combobox" | |
5229 | if test "$no_cache" != 1; then | |
5230 | echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp | |
5231 | fi | |
5232 | ||
5233 | if test "$wxUSE_COMBOBOX" = yes; then | |
698dcdb6 | 5234 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5235 | else |
698dcdb6 | 5236 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5237 | fi |
698dcdb6 | 5238 | |
10f2d63a | 5239 | |
698dcdb6 | 5240 | echo $ac_n "checking for --enable-gauge""... $ac_c" 1>&6 |
d73be714 | 5241 | echo "configure:5242: checking for --enable-gauge" >&5 |
10f2d63a VZ |
5242 | no_cache=0 |
5243 | # Check whether --enable-gauge or --disable-gauge was given. | |
5244 | if test "${enable_gauge+set}" = set; then | |
5245 | enableval="$enable_gauge" | |
698dcdb6 | 5246 | |
10f2d63a VZ |
5247 | if test "$enableval" = yes; then |
5248 | ac_cv_use_gauge='wxUSE_GAUGE=yes' | |
5249 | else | |
5250 | ac_cv_use_gauge='wxUSE_GAUGE=no' | |
5251 | fi | |
698dcdb6 | 5252 | |
10f2d63a | 5253 | else |
698dcdb6 | 5254 | |
10f2d63a VZ |
5255 | LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}` |
5256 | if test "x$LINE" != x ; then | |
5257 | eval "DEFAULT_$LINE" | |
5258 | else | |
5259 | no_cache=1 | |
5260 | fi | |
5261 | ||
5262 | ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE | |
698dcdb6 VZ |
5263 | |
5264 | fi | |
10f2d63a VZ |
5265 | |
5266 | ||
5267 | eval "$ac_cv_use_gauge" | |
5268 | if test "$no_cache" != 1; then | |
5269 | echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp | |
5270 | fi | |
5271 | ||
5272 | if test "$wxUSE_GAUGE" = yes; then | |
698dcdb6 | 5273 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5274 | else |
698dcdb6 | 5275 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5276 | fi |
698dcdb6 | 5277 | |
10f2d63a | 5278 | |
698dcdb6 | 5279 | echo $ac_n "checking for --enable-grid""... $ac_c" 1>&6 |
d73be714 | 5280 | echo "configure:5281: checking for --enable-grid" >&5 |
10f2d63a VZ |
5281 | no_cache=0 |
5282 | # Check whether --enable-grid or --disable-grid was given. | |
5283 | if test "${enable_grid+set}" = set; then | |
5284 | enableval="$enable_grid" | |
698dcdb6 | 5285 | |
10f2d63a VZ |
5286 | if test "$enableval" = yes; then |
5287 | ac_cv_use_grid='wxUSE_GRID=yes' | |
5288 | else | |
5289 | ac_cv_use_grid='wxUSE_GRID=no' | |
5290 | fi | |
698dcdb6 | 5291 | |
10f2d63a | 5292 | else |
698dcdb6 | 5293 | |
10f2d63a VZ |
5294 | LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}` |
5295 | if test "x$LINE" != x ; then | |
5296 | eval "DEFAULT_$LINE" | |
5297 | else | |
5298 | no_cache=1 | |
5299 | fi | |
5300 | ||
5301 | ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID | |
698dcdb6 VZ |
5302 | |
5303 | fi | |
10f2d63a VZ |
5304 | |
5305 | ||
5306 | eval "$ac_cv_use_grid" | |
5307 | if test "$no_cache" != 1; then | |
5308 | echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp | |
5309 | fi | |
5310 | ||
5311 | if test "$wxUSE_GRID" = yes; then | |
698dcdb6 | 5312 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5313 | else |
698dcdb6 | 5314 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5315 | fi |
698dcdb6 | 5316 | |
10f2d63a | 5317 | |
698dcdb6 | 5318 | echo $ac_n "checking for --enable-newgrid""... $ac_c" 1>&6 |
d73be714 | 5319 | echo "configure:5320: checking for --enable-newgrid" >&5 |
10f2d63a VZ |
5320 | no_cache=0 |
5321 | # Check whether --enable-newgrid or --disable-newgrid was given. | |
5322 | if test "${enable_newgrid+set}" = set; then | |
5323 | enableval="$enable_newgrid" | |
698dcdb6 | 5324 | |
10f2d63a VZ |
5325 | if test "$enableval" = yes; then |
5326 | ac_cv_use_newgrid='wxUSE_NEW_GRID=yes' | |
5327 | else | |
5328 | ac_cv_use_newgrid='wxUSE_NEW_GRID=no' | |
5329 | fi | |
698dcdb6 | 5330 | |
10f2d63a | 5331 | else |
698dcdb6 | 5332 | |
10f2d63a VZ |
5333 | LINE=`grep "wxUSE_NEW_GRID" ${wx_arg_cache_file}` |
5334 | if test "x$LINE" != x ; then | |
5335 | eval "DEFAULT_$LINE" | |
5336 | else | |
5337 | no_cache=1 | |
5338 | fi | |
5339 | ||
5340 | ac_cv_use_newgrid='wxUSE_NEW_GRID='$DEFAULT_wxUSE_NEW_GRID | |
698dcdb6 VZ |
5341 | |
5342 | fi | |
10f2d63a VZ |
5343 | |
5344 | ||
5345 | eval "$ac_cv_use_newgrid" | |
5346 | if test "$no_cache" != 1; then | |
5347 | echo $ac_cv_use_newgrid >> ${wx_arg_cache_file}.tmp | |
5348 | fi | |
5349 | ||
5350 | if test "$wxUSE_NEW_GRID" = yes; then | |
698dcdb6 | 5351 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5352 | else |
698dcdb6 | 5353 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5354 | fi |
698dcdb6 | 5355 | |
10f2d63a | 5356 | |
698dcdb6 | 5357 | echo $ac_n "checking for --enable-imaglist""... $ac_c" 1>&6 |
d73be714 | 5358 | echo "configure:5359: checking for --enable-imaglist" >&5 |
10f2d63a VZ |
5359 | no_cache=0 |
5360 | # Check whether --enable-imaglist or --disable-imaglist was given. | |
5361 | if test "${enable_imaglist+set}" = set; then | |
5362 | enableval="$enable_imaglist" | |
698dcdb6 | 5363 | |
10f2d63a VZ |
5364 | if test "$enableval" = yes; then |
5365 | ac_cv_use_imaglist='wxUSE_IMAGLIST=yes' | |
5366 | else | |
5367 | ac_cv_use_imaglist='wxUSE_IMAGLIST=no' | |
5368 | fi | |
698dcdb6 | 5369 | |
10f2d63a | 5370 | else |
698dcdb6 | 5371 | |
10f2d63a VZ |
5372 | LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}` |
5373 | if test "x$LINE" != x ; then | |
5374 | eval "DEFAULT_$LINE" | |
5375 | else | |
5376 | no_cache=1 | |
5377 | fi | |
5378 | ||
5379 | ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST | |
698dcdb6 VZ |
5380 | |
5381 | fi | |
10f2d63a VZ |
5382 | |
5383 | ||
5384 | eval "$ac_cv_use_imaglist" | |
5385 | if test "$no_cache" != 1; then | |
5386 | echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp | |
5387 | fi | |
5388 | ||
5389 | if test "$wxUSE_IMAGLIST" = yes; then | |
698dcdb6 | 5390 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5391 | else |
698dcdb6 | 5392 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5393 | fi |
698dcdb6 | 5394 | |
10f2d63a | 5395 | |
698dcdb6 | 5396 | echo $ac_n "checking for --enable-listbox""... $ac_c" 1>&6 |
d73be714 | 5397 | echo "configure:5398: checking for --enable-listbox" >&5 |
10f2d63a VZ |
5398 | no_cache=0 |
5399 | # Check whether --enable-listbox or --disable-listbox was given. | |
5400 | if test "${enable_listbox+set}" = set; then | |
5401 | enableval="$enable_listbox" | |
698dcdb6 | 5402 | |
10f2d63a VZ |
5403 | if test "$enableval" = yes; then |
5404 | ac_cv_use_listbox='wxUSE_LISTBOX=yes' | |
5405 | else | |
5406 | ac_cv_use_listbox='wxUSE_LISTBOX=no' | |
5407 | fi | |
698dcdb6 | 5408 | |
10f2d63a | 5409 | else |
698dcdb6 | 5410 | |
10f2d63a VZ |
5411 | LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}` |
5412 | if test "x$LINE" != x ; then | |
5413 | eval "DEFAULT_$LINE" | |
5414 | else | |
5415 | no_cache=1 | |
5416 | fi | |
5417 | ||
5418 | ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX | |
698dcdb6 VZ |
5419 | |
5420 | fi | |
10f2d63a VZ |
5421 | |
5422 | ||
5423 | eval "$ac_cv_use_listbox" | |
5424 | if test "$no_cache" != 1; then | |
5425 | echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp | |
5426 | fi | |
5427 | ||
5428 | if test "$wxUSE_LISTBOX" = yes; then | |
698dcdb6 | 5429 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5430 | else |
698dcdb6 | 5431 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5432 | fi |
698dcdb6 | 5433 | |
10f2d63a | 5434 | |
698dcdb6 | 5435 | echo $ac_n "checking for --enable-listctrl""... $ac_c" 1>&6 |
d73be714 | 5436 | echo "configure:5437: checking for --enable-listctrl" >&5 |
10f2d63a VZ |
5437 | no_cache=0 |
5438 | # Check whether --enable-listctrl or --disable-listctrl was given. | |
5439 | if test "${enable_listctrl+set}" = set; then | |
5440 | enableval="$enable_listctrl" | |
698dcdb6 | 5441 | |
10f2d63a VZ |
5442 | if test "$enableval" = yes; then |
5443 | ac_cv_use_listctrl='wxUSE_LISTCTRL=yes' | |
5444 | else | |
5445 | ac_cv_use_listctrl='wxUSE_LISTCTRL=no' | |
5446 | fi | |
698dcdb6 | 5447 | |
10f2d63a | 5448 | else |
698dcdb6 | 5449 | |
10f2d63a VZ |
5450 | LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}` |
5451 | if test "x$LINE" != x ; then | |
5452 | eval "DEFAULT_$LINE" | |
5453 | else | |
5454 | no_cache=1 | |
5455 | fi | |
5456 | ||
5457 | ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL | |
698dcdb6 VZ |
5458 | |
5459 | fi | |
10f2d63a VZ |
5460 | |
5461 | ||
5462 | eval "$ac_cv_use_listctrl" | |
5463 | if test "$no_cache" != 1; then | |
5464 | echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp | |
5465 | fi | |
5466 | ||
5467 | if test "$wxUSE_LISTCTRL" = yes; then | |
698dcdb6 | 5468 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5469 | else |
698dcdb6 | 5470 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5471 | fi |
698dcdb6 | 5472 | |
10f2d63a | 5473 | |
698dcdb6 | 5474 | echo $ac_n "checking for --enable-notebook""... $ac_c" 1>&6 |
d73be714 | 5475 | echo "configure:5476: checking for --enable-notebook" >&5 |
10f2d63a VZ |
5476 | no_cache=0 |
5477 | # Check whether --enable-notebook or --disable-notebook was given. | |
5478 | if test "${enable_notebook+set}" = set; then | |
5479 | enableval="$enable_notebook" | |
698dcdb6 | 5480 | |
10f2d63a VZ |
5481 | if test "$enableval" = yes; then |
5482 | ac_cv_use_notebook='wxUSE_NOTEBOOK=yes' | |
5483 | else | |
5484 | ac_cv_use_notebook='wxUSE_NOTEBOOK=no' | |
5485 | fi | |
698dcdb6 | 5486 | |
10f2d63a | 5487 | else |
698dcdb6 | 5488 | |
10f2d63a VZ |
5489 | LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}` |
5490 | if test "x$LINE" != x ; then | |
5491 | eval "DEFAULT_$LINE" | |
5492 | else | |
5493 | no_cache=1 | |
5494 | fi | |
5495 | ||
5496 | ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK | |
698dcdb6 VZ |
5497 | |
5498 | fi | |
10f2d63a VZ |
5499 | |
5500 | ||
5501 | eval "$ac_cv_use_notebook" | |
5502 | if test "$no_cache" != 1; then | |
5503 | echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp | |
5504 | fi | |
5505 | ||
5506 | if test "$wxUSE_NOTEBOOK" = yes; then | |
698dcdb6 | 5507 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5508 | else |
698dcdb6 | 5509 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5510 | fi |
698dcdb6 | 5511 | |
10f2d63a | 5512 | |
698dcdb6 | 5513 | echo $ac_n "checking for --enable-radiobox""... $ac_c" 1>&6 |
d73be714 | 5514 | echo "configure:5515: checking for --enable-radiobox" >&5 |
10f2d63a VZ |
5515 | no_cache=0 |
5516 | # Check whether --enable-radiobox or --disable-radiobox was given. | |
5517 | if test "${enable_radiobox+set}" = set; then | |
5518 | enableval="$enable_radiobox" | |
698dcdb6 | 5519 | |
10f2d63a VZ |
5520 | if test "$enableval" = yes; then |
5521 | ac_cv_use_radiobox='wxUSE_RADIOBOX=yes' | |
5522 | else | |
5523 | ac_cv_use_radiobox='wxUSE_RADIOBOX=no' | |
5524 | fi | |
698dcdb6 | 5525 | |
10f2d63a | 5526 | else |
698dcdb6 | 5527 | |
10f2d63a VZ |
5528 | LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}` |
5529 | if test "x$LINE" != x ; then | |
5530 | eval "DEFAULT_$LINE" | |
5531 | else | |
5532 | no_cache=1 | |
5533 | fi | |
5534 | ||
5535 | ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX | |
698dcdb6 VZ |
5536 | |
5537 | fi | |
10f2d63a VZ |
5538 | |
5539 | ||
5540 | eval "$ac_cv_use_radiobox" | |
5541 | if test "$no_cache" != 1; then | |
5542 | echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp | |
5543 | fi | |
5544 | ||
5545 | if test "$wxUSE_RADIOBOX" = yes; then | |
698dcdb6 | 5546 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5547 | else |
698dcdb6 | 5548 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5549 | fi |
698dcdb6 | 5550 | |
10f2d63a | 5551 | |
698dcdb6 | 5552 | echo $ac_n "checking for --enable-radiobtn""... $ac_c" 1>&6 |
d73be714 | 5553 | echo "configure:5554: checking for --enable-radiobtn" >&5 |
10f2d63a VZ |
5554 | no_cache=0 |
5555 | # Check whether --enable-radiobtn or --disable-radiobtn was given. | |
5556 | if test "${enable_radiobtn+set}" = set; then | |
5557 | enableval="$enable_radiobtn" | |
698dcdb6 | 5558 | |
10f2d63a VZ |
5559 | if test "$enableval" = yes; then |
5560 | ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes' | |
5561 | else | |
5562 | ac_cv_use_radiobtn='wxUSE_RADIOBTN=no' | |
5563 | fi | |
698dcdb6 | 5564 | |
10f2d63a | 5565 | else |
698dcdb6 | 5566 | |
10f2d63a VZ |
5567 | LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}` |
5568 | if test "x$LINE" != x ; then | |
5569 | eval "DEFAULT_$LINE" | |
5570 | else | |
5571 | no_cache=1 | |
5572 | fi | |
5573 | ||
5574 | ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN | |
698dcdb6 VZ |
5575 | |
5576 | fi | |
10f2d63a VZ |
5577 | |
5578 | ||
5579 | eval "$ac_cv_use_radiobtn" | |
5580 | if test "$no_cache" != 1; then | |
5581 | echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp | |
5582 | fi | |
5583 | ||
5584 | if test "$wxUSE_RADIOBTN" = yes; then | |
698dcdb6 | 5585 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5586 | else |
698dcdb6 | 5587 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5588 | fi |
698dcdb6 | 5589 | |
10f2d63a | 5590 | |
698dcdb6 | 5591 | echo $ac_n "checking for --enable-sash""... $ac_c" 1>&6 |
d73be714 | 5592 | echo "configure:5593: checking for --enable-sash" >&5 |
10f2d63a VZ |
5593 | no_cache=0 |
5594 | # Check whether --enable-sash or --disable-sash was given. | |
5595 | if test "${enable_sash+set}" = set; then | |
5596 | enableval="$enable_sash" | |
698dcdb6 | 5597 | |
10f2d63a VZ |
5598 | if test "$enableval" = yes; then |
5599 | ac_cv_use_sash='wxUSE_SASH=yes' | |
5600 | else | |
5601 | ac_cv_use_sash='wxUSE_SASH=no' | |
5602 | fi | |
698dcdb6 | 5603 | |
10f2d63a | 5604 | else |
698dcdb6 | 5605 | |
10f2d63a VZ |
5606 | LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}` |
5607 | if test "x$LINE" != x ; then | |
5608 | eval "DEFAULT_$LINE" | |
5609 | else | |
5610 | no_cache=1 | |
5611 | fi | |
5612 | ||
5613 | ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH | |
698dcdb6 VZ |
5614 | |
5615 | fi | |
10f2d63a VZ |
5616 | |
5617 | ||
5618 | eval "$ac_cv_use_sash" | |
5619 | if test "$no_cache" != 1; then | |
5620 | echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp | |
5621 | fi | |
5622 | ||
5623 | if test "$wxUSE_SASH" = yes; then | |
698dcdb6 | 5624 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5625 | else |
698dcdb6 | 5626 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5627 | fi |
698dcdb6 | 5628 | |
10f2d63a | 5629 | |
698dcdb6 | 5630 | echo $ac_n "checking for --enable-scrollbar""... $ac_c" 1>&6 |
d73be714 | 5631 | echo "configure:5632: checking for --enable-scrollbar" >&5 |
10f2d63a VZ |
5632 | no_cache=0 |
5633 | # Check whether --enable-scrollbar or --disable-scrollbar was given. | |
5634 | if test "${enable_scrollbar+set}" = set; then | |
5635 | enableval="$enable_scrollbar" | |
698dcdb6 | 5636 | |
10f2d63a VZ |
5637 | if test "$enableval" = yes; then |
5638 | ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes' | |
5639 | else | |
5640 | ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no' | |
5641 | fi | |
698dcdb6 | 5642 | |
10f2d63a | 5643 | else |
698dcdb6 | 5644 | |
10f2d63a VZ |
5645 | LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}` |
5646 | if test "x$LINE" != x ; then | |
5647 | eval "DEFAULT_$LINE" | |
5648 | else | |
5649 | no_cache=1 | |
5650 | fi | |
5651 | ||
5652 | ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR | |
698dcdb6 VZ |
5653 | |
5654 | fi | |
10f2d63a VZ |
5655 | |
5656 | ||
5657 | eval "$ac_cv_use_scrollbar" | |
5658 | if test "$no_cache" != 1; then | |
5659 | echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp | |
5660 | fi | |
5661 | ||
5662 | if test "$wxUSE_SCROLLBAR" = yes; then | |
698dcdb6 | 5663 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5664 | else |
698dcdb6 | 5665 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5666 | fi |
698dcdb6 | 5667 | |
10f2d63a | 5668 | |
698dcdb6 | 5669 | echo $ac_n "checking for --enable-slider""... $ac_c" 1>&6 |
d73be714 | 5670 | echo "configure:5671: checking for --enable-slider" >&5 |
10f2d63a VZ |
5671 | no_cache=0 |
5672 | # Check whether --enable-slider or --disable-slider was given. | |
5673 | if test "${enable_slider+set}" = set; then | |
5674 | enableval="$enable_slider" | |
698dcdb6 | 5675 | |
10f2d63a VZ |
5676 | if test "$enableval" = yes; then |
5677 | ac_cv_use_slider='wxUSE_SLIDER=yes' | |
5678 | else | |
5679 | ac_cv_use_slider='wxUSE_SLIDER=no' | |
5680 | fi | |
698dcdb6 | 5681 | |
10f2d63a | 5682 | else |
698dcdb6 | 5683 | |
10f2d63a VZ |
5684 | LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}` |
5685 | if test "x$LINE" != x ; then | |
5686 | eval "DEFAULT_$LINE" | |
5687 | else | |
5688 | no_cache=1 | |
5689 | fi | |
5690 | ||
5691 | ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER | |
698dcdb6 VZ |
5692 | |
5693 | fi | |
10f2d63a VZ |
5694 | |
5695 | ||
5696 | eval "$ac_cv_use_slider" | |
5697 | if test "$no_cache" != 1; then | |
5698 | echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp | |
5699 | fi | |
5700 | ||
5701 | if test "$wxUSE_SLIDER" = yes; then | |
698dcdb6 | 5702 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5703 | else |
698dcdb6 | 5704 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5705 | fi |
698dcdb6 | 5706 | |
10f2d63a | 5707 | |
698dcdb6 | 5708 | echo $ac_n "checking for --enable-spinbtn""... $ac_c" 1>&6 |
d73be714 | 5709 | echo "configure:5710: checking for --enable-spinbtn" >&5 |
10f2d63a VZ |
5710 | no_cache=0 |
5711 | # Check whether --enable-spinbtn or --disable-spinbtn was given. | |
5712 | if test "${enable_spinbtn+set}" = set; then | |
5713 | enableval="$enable_spinbtn" | |
698dcdb6 | 5714 | |
10f2d63a VZ |
5715 | if test "$enableval" = yes; then |
5716 | ac_cv_use_spinbtn='wxUSE_SPINBTN=yes' | |
5717 | else | |
5718 | ac_cv_use_spinbtn='wxUSE_SPINBTN=no' | |
5719 | fi | |
698dcdb6 | 5720 | |
10f2d63a | 5721 | else |
698dcdb6 | 5722 | |
10f2d63a VZ |
5723 | LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}` |
5724 | if test "x$LINE" != x ; then | |
5725 | eval "DEFAULT_$LINE" | |
5726 | else | |
5727 | no_cache=1 | |
5728 | fi | |
5729 | ||
5730 | ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN | |
698dcdb6 VZ |
5731 | |
5732 | fi | |
10f2d63a VZ |
5733 | |
5734 | ||
5735 | eval "$ac_cv_use_spinbtn" | |
5736 | if test "$no_cache" != 1; then | |
5737 | echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp | |
5738 | fi | |
5739 | ||
5740 | if test "$wxUSE_SPINBTN" = yes; then | |
698dcdb6 | 5741 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5742 | else |
698dcdb6 | 5743 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5744 | fi |
698dcdb6 | 5745 | |
10f2d63a | 5746 | |
698dcdb6 | 5747 | echo $ac_n "checking for --enable-spinctrl""... $ac_c" 1>&6 |
d73be714 | 5748 | echo "configure:5749: checking for --enable-spinctrl" >&5 |
56cfaa52 RR |
5749 | no_cache=0 |
5750 | # Check whether --enable-spinctrl or --disable-spinctrl was given. | |
5751 | if test "${enable_spinctrl+set}" = set; then | |
5752 | enableval="$enable_spinctrl" | |
698dcdb6 | 5753 | |
56cfaa52 RR |
5754 | if test "$enableval" = yes; then |
5755 | ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes' | |
5756 | else | |
5757 | ac_cv_use_spinctrl='wxUSE_SPINCTRL=no' | |
5758 | fi | |
698dcdb6 | 5759 | |
56cfaa52 | 5760 | else |
698dcdb6 | 5761 | |
56cfaa52 RR |
5762 | LINE=`grep "wxUSE_SPINCTRL" ${wx_arg_cache_file}` |
5763 | if test "x$LINE" != x ; then | |
5764 | eval "DEFAULT_$LINE" | |
5765 | else | |
5766 | no_cache=1 | |
5767 | fi | |
5768 | ||
5769 | ac_cv_use_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL | |
698dcdb6 VZ |
5770 | |
5771 | fi | |
56cfaa52 RR |
5772 | |
5773 | ||
5774 | eval "$ac_cv_use_spinctrl" | |
5775 | if test "$no_cache" != 1; then | |
5776 | echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp | |
5777 | fi | |
5778 | ||
5779 | if test "$wxUSE_SPINCTRL" = yes; then | |
698dcdb6 | 5780 | echo "$ac_t""yes" 1>&6 |
56cfaa52 | 5781 | else |
698dcdb6 | 5782 | echo "$ac_t""no" 1>&6 |
56cfaa52 | 5783 | fi |
698dcdb6 | 5784 | |
56cfaa52 | 5785 | |
698dcdb6 | 5786 | echo $ac_n "checking for --enable-splitter""... $ac_c" 1>&6 |
d73be714 | 5787 | echo "configure:5788: checking for --enable-splitter" >&5 |
10f2d63a VZ |
5788 | no_cache=0 |
5789 | # Check whether --enable-splitter or --disable-splitter was given. | |
5790 | if test "${enable_splitter+set}" = set; then | |
5791 | enableval="$enable_splitter" | |
698dcdb6 | 5792 | |
10f2d63a VZ |
5793 | if test "$enableval" = yes; then |
5794 | ac_cv_use_splitter='wxUSE_SPLITTER=yes' | |
5795 | else | |
5796 | ac_cv_use_splitter='wxUSE_SPLITTER=no' | |
5797 | fi | |
698dcdb6 | 5798 | |
10f2d63a | 5799 | else |
698dcdb6 | 5800 | |
10f2d63a VZ |
5801 | LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}` |
5802 | if test "x$LINE" != x ; then | |
5803 | eval "DEFAULT_$LINE" | |
5804 | else | |
5805 | no_cache=1 | |
5806 | fi | |
5807 | ||
5808 | ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER | |
698dcdb6 VZ |
5809 | |
5810 | fi | |
10f2d63a VZ |
5811 | |
5812 | ||
5813 | eval "$ac_cv_use_splitter" | |
5814 | if test "$no_cache" != 1; then | |
5815 | echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp | |
5816 | fi | |
5817 | ||
5818 | if test "$wxUSE_SPLITTER" = yes; then | |
698dcdb6 | 5819 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5820 | else |
698dcdb6 | 5821 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5822 | fi |
698dcdb6 | 5823 | |
10f2d63a | 5824 | |
698dcdb6 | 5825 | echo $ac_n "checking for --enable-statbmp""... $ac_c" 1>&6 |
d73be714 | 5826 | echo "configure:5827: checking for --enable-statbmp" >&5 |
10f2d63a VZ |
5827 | no_cache=0 |
5828 | # Check whether --enable-statbmp or --disable-statbmp was given. | |
5829 | if test "${enable_statbmp+set}" = set; then | |
5830 | enableval="$enable_statbmp" | |
698dcdb6 | 5831 | |
10f2d63a VZ |
5832 | if test "$enableval" = yes; then |
5833 | ac_cv_use_statbmp='wxUSE_STATBMP=yes' | |
5834 | else | |
5835 | ac_cv_use_statbmp='wxUSE_STATBMP=no' | |
5836 | fi | |
698dcdb6 | 5837 | |
10f2d63a | 5838 | else |
698dcdb6 | 5839 | |
10f2d63a VZ |
5840 | LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}` |
5841 | if test "x$LINE" != x ; then | |
5842 | eval "DEFAULT_$LINE" | |
5843 | else | |
5844 | no_cache=1 | |
5845 | fi | |
5846 | ||
5847 | ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP | |
698dcdb6 VZ |
5848 | |
5849 | fi | |
10f2d63a VZ |
5850 | |
5851 | ||
5852 | eval "$ac_cv_use_statbmp" | |
5853 | if test "$no_cache" != 1; then | |
5854 | echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp | |
5855 | fi | |
5856 | ||
5857 | if test "$wxUSE_STATBMP" = yes; then | |
698dcdb6 | 5858 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5859 | else |
698dcdb6 | 5860 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5861 | fi |
698dcdb6 | 5862 | |
10f2d63a | 5863 | |
698dcdb6 | 5864 | echo $ac_n "checking for --enable-statbox""... $ac_c" 1>&6 |
d73be714 | 5865 | echo "configure:5866: checking for --enable-statbox" >&5 |
10f2d63a VZ |
5866 | no_cache=0 |
5867 | # Check whether --enable-statbox or --disable-statbox was given. | |
5868 | if test "${enable_statbox+set}" = set; then | |
5869 | enableval="$enable_statbox" | |
698dcdb6 | 5870 | |
10f2d63a VZ |
5871 | if test "$enableval" = yes; then |
5872 | ac_cv_use_statbox='wxUSE_STATBOX=yes' | |
5873 | else | |
5874 | ac_cv_use_statbox='wxUSE_STATBOX=no' | |
5875 | fi | |
698dcdb6 | 5876 | |
10f2d63a | 5877 | else |
698dcdb6 | 5878 | |
10f2d63a VZ |
5879 | LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}` |
5880 | if test "x$LINE" != x ; then | |
5881 | eval "DEFAULT_$LINE" | |
5882 | else | |
5883 | no_cache=1 | |
5884 | fi | |
5885 | ||
5886 | ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX | |
698dcdb6 VZ |
5887 | |
5888 | fi | |
10f2d63a VZ |
5889 | |
5890 | ||
5891 | eval "$ac_cv_use_statbox" | |
5892 | if test "$no_cache" != 1; then | |
5893 | echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp | |
5894 | fi | |
5895 | ||
5896 | if test "$wxUSE_STATBOX" = yes; then | |
698dcdb6 | 5897 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5898 | else |
698dcdb6 | 5899 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5900 | fi |
698dcdb6 | 5901 | |
10f2d63a | 5902 | |
698dcdb6 | 5903 | echo $ac_n "checking for --enable-statline""... $ac_c" 1>&6 |
d73be714 | 5904 | echo "configure:5905: checking for --enable-statline" >&5 |
10f2d63a VZ |
5905 | no_cache=0 |
5906 | # Check whether --enable-statline or --disable-statline was given. | |
5907 | if test "${enable_statline+set}" = set; then | |
5908 | enableval="$enable_statline" | |
698dcdb6 | 5909 | |
10f2d63a VZ |
5910 | if test "$enableval" = yes; then |
5911 | ac_cv_use_statline='wxUSE_STATLINE=yes' | |
5912 | else | |
5913 | ac_cv_use_statline='wxUSE_STATLINE=no' | |
5914 | fi | |
698dcdb6 | 5915 | |
10f2d63a | 5916 | else |
698dcdb6 | 5917 | |
10f2d63a VZ |
5918 | LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}` |
5919 | if test "x$LINE" != x ; then | |
5920 | eval "DEFAULT_$LINE" | |
5921 | else | |
5922 | no_cache=1 | |
5923 | fi | |
5924 | ||
5925 | ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE | |
698dcdb6 VZ |
5926 | |
5927 | fi | |
10f2d63a VZ |
5928 | |
5929 | ||
5930 | eval "$ac_cv_use_statline" | |
5931 | if test "$no_cache" != 1; then | |
5932 | echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp | |
5933 | fi | |
5934 | ||
5935 | if test "$wxUSE_STATLINE" = yes; then | |
698dcdb6 | 5936 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5937 | else |
698dcdb6 | 5938 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5939 | fi |
698dcdb6 | 5940 | |
10f2d63a | 5941 | |
1e6feb95 | 5942 | echo $ac_n "checking for --enable-stattext""... $ac_c" 1>&6 |
d73be714 | 5943 | echo "configure:5944: checking for --enable-stattext" >&5 |
1e6feb95 VZ |
5944 | no_cache=0 |
5945 | # Check whether --enable-stattext or --disable-stattext was given. | |
5946 | if test "${enable_stattext+set}" = set; then | |
5947 | enableval="$enable_stattext" | |
5948 | ||
5949 | if test "$enableval" = yes; then | |
5950 | ac_cv_use_stattext='wxUSE_STATTEXT=yes' | |
5951 | else | |
5952 | ac_cv_use_stattext='wxUSE_STATTEXT=no' | |
5953 | fi | |
5954 | ||
5955 | else | |
5956 | ||
5957 | LINE=`grep "wxUSE_STATTEXT" ${wx_arg_cache_file}` | |
5958 | if test "x$LINE" != x ; then | |
5959 | eval "DEFAULT_$LINE" | |
5960 | else | |
5961 | no_cache=1 | |
5962 | fi | |
5963 | ||
5964 | ac_cv_use_stattext='wxUSE_STATTEXT='$DEFAULT_wxUSE_STATTEXT | |
5965 | ||
5966 | fi | |
5967 | ||
5968 | ||
5969 | eval "$ac_cv_use_stattext" | |
5970 | if test "$no_cache" != 1; then | |
5971 | echo $ac_cv_use_stattext >> ${wx_arg_cache_file}.tmp | |
5972 | fi | |
5973 | ||
5974 | if test "$wxUSE_STATTEXT" = yes; then | |
5975 | echo "$ac_t""yes" 1>&6 | |
5976 | else | |
5977 | echo "$ac_t""no" 1>&6 | |
5978 | fi | |
5979 | ||
5980 | ||
698dcdb6 | 5981 | echo $ac_n "checking for --enable-statusbar""... $ac_c" 1>&6 |
d73be714 | 5982 | echo "configure:5983: checking for --enable-statusbar" >&5 |
10f2d63a VZ |
5983 | no_cache=0 |
5984 | # Check whether --enable-statusbar or --disable-statusbar was given. | |
5985 | if test "${enable_statusbar+set}" = set; then | |
5986 | enableval="$enable_statusbar" | |
698dcdb6 | 5987 | |
10f2d63a VZ |
5988 | if test "$enableval" = yes; then |
5989 | ac_cv_use_statusbar='wxUSE_STATUSBAR=yes' | |
5990 | else | |
5991 | ac_cv_use_statusbar='wxUSE_STATUSBAR=no' | |
5992 | fi | |
698dcdb6 | 5993 | |
10f2d63a | 5994 | else |
698dcdb6 | 5995 | |
10f2d63a VZ |
5996 | LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}` |
5997 | if test "x$LINE" != x ; then | |
5998 | eval "DEFAULT_$LINE" | |
5999 | else | |
6000 | no_cache=1 | |
6001 | fi | |
6002 | ||
6003 | ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR | |
698dcdb6 VZ |
6004 | |
6005 | fi | |
10f2d63a VZ |
6006 | |
6007 | ||
6008 | eval "$ac_cv_use_statusbar" | |
6009 | if test "$no_cache" != 1; then | |
6010 | echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp | |
6011 | fi | |
6012 | ||
6013 | if test "$wxUSE_STATUSBAR" = yes; then | |
698dcdb6 | 6014 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6015 | else |
698dcdb6 | 6016 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6017 | fi |
698dcdb6 | 6018 | |
10f2d63a | 6019 | |
698dcdb6 | 6020 | echo $ac_n "checking for --enable-tabdialog""... $ac_c" 1>&6 |
d73be714 | 6021 | echo "configure:6022: checking for --enable-tabdialog" >&5 |
10f2d63a VZ |
6022 | no_cache=0 |
6023 | # Check whether --enable-tabdialog or --disable-tabdialog was given. | |
6024 | if test "${enable_tabdialog+set}" = set; then | |
6025 | enableval="$enable_tabdialog" | |
698dcdb6 | 6026 | |
10f2d63a VZ |
6027 | if test "$enableval" = yes; then |
6028 | ac_cv_use_tabdialog='wxUSE_TABDIALOG=yes' | |
6029 | else | |
6030 | ac_cv_use_tabdialog='wxUSE_TABDIALOG=no' | |
6031 | fi | |
698dcdb6 | 6032 | |
10f2d63a | 6033 | else |
698dcdb6 | 6034 | |
10f2d63a VZ |
6035 | LINE=`grep "wxUSE_TABDIALOG" ${wx_arg_cache_file}` |
6036 | if test "x$LINE" != x ; then | |
6037 | eval "DEFAULT_$LINE" | |
6038 | else | |
6039 | no_cache=1 | |
6040 | fi | |
6041 | ||
6042 | ac_cv_use_tabdialog='wxUSE_TABDIALOG='$DEFAULT_wxUSE_TABDIALOG | |
698dcdb6 VZ |
6043 | |
6044 | fi | |
10f2d63a VZ |
6045 | |
6046 | ||
6047 | eval "$ac_cv_use_tabdialog" | |
6048 | if test "$no_cache" != 1; then | |
6049 | echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp | |
6050 | fi | |
6051 | ||
6052 | if test "$wxUSE_TABDIALOG" = yes; then | |
698dcdb6 | 6053 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6054 | else |
698dcdb6 | 6055 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6056 | fi |
698dcdb6 | 6057 | |
10f2d63a | 6058 | |
1e6feb95 | 6059 | echo $ac_n "checking for --enable-textctrl""... $ac_c" 1>&6 |
d73be714 | 6060 | echo "configure:6061: checking for --enable-textctrl" >&5 |
1e6feb95 VZ |
6061 | no_cache=0 |
6062 | # Check whether --enable-textctrl or --disable-textctrl was given. | |
6063 | if test "${enable_textctrl+set}" = set; then | |
6064 | enableval="$enable_textctrl" | |
6065 | ||
6066 | if test "$enableval" = yes; then | |
6067 | ac_cv_use_textctrl='wxUSE_TEXTCTRL=yes' | |
6068 | else | |
6069 | ac_cv_use_textctrl='wxUSE_TEXTCTRL=no' | |
6070 | fi | |
6071 | ||
6072 | else | |
6073 | ||
6074 | LINE=`grep "wxUSE_TEXTCTRL" ${wx_arg_cache_file}` | |
6075 | if test "x$LINE" != x ; then | |
6076 | eval "DEFAULT_$LINE" | |
6077 | else | |
6078 | no_cache=1 | |
6079 | fi | |
6080 | ||
6081 | ac_cv_use_textctrl='wxUSE_TEXTCTRL='$DEFAULT_wxUSE_TEXTCTRL | |
6082 | ||
6083 | fi | |
6084 | ||
6085 | ||
6086 | eval "$ac_cv_use_textctrl" | |
6087 | if test "$no_cache" != 1; then | |
6088 | echo $ac_cv_use_textctrl >> ${wx_arg_cache_file}.tmp | |
6089 | fi | |
6090 | ||
6091 | if test "$wxUSE_TEXTCTRL" = yes; then | |
6092 | echo "$ac_t""yes" 1>&6 | |
6093 | else | |
6094 | echo "$ac_t""no" 1>&6 | |
6095 | fi | |
6096 | ||
6097 | ||
698dcdb6 | 6098 | echo $ac_n "checking for --enable-togglebtn""... $ac_c" 1>&6 |
d73be714 | 6099 | echo "configure:6100: checking for --enable-togglebtn" >&5 |
1db8dc4a VZ |
6100 | no_cache=0 |
6101 | # Check whether --enable-togglebtn or --disable-togglebtn was given. | |
6102 | if test "${enable_togglebtn+set}" = set; then | |
6103 | enableval="$enable_togglebtn" | |
698dcdb6 | 6104 | |
1db8dc4a VZ |
6105 | if test "$enableval" = yes; then |
6106 | ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes' | |
6107 | else | |
6108 | ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=no' | |
6109 | fi | |
698dcdb6 | 6110 | |
1db8dc4a | 6111 | else |
698dcdb6 | 6112 | |
1db8dc4a VZ |
6113 | LINE=`grep "wxUSE_TOGGLEBTN" ${wx_arg_cache_file}` |
6114 | if test "x$LINE" != x ; then | |
6115 | eval "DEFAULT_$LINE" | |
6116 | else | |
6117 | no_cache=1 | |
6118 | fi | |
6119 | ||
6120 | ac_cv_use_togglebtn='wxUSE_TOGGLEBTN='$DEFAULT_wxUSE_TOGGLEBTN | |
698dcdb6 VZ |
6121 | |
6122 | fi | |
1db8dc4a VZ |
6123 | |
6124 | ||
6125 | eval "$ac_cv_use_togglebtn" | |
6126 | if test "$no_cache" != 1; then | |
6127 | echo $ac_cv_use_togglebtn >> ${wx_arg_cache_file}.tmp | |
6128 | fi | |
6129 | ||
6130 | if test "$wxUSE_TOGGLEBTN" = yes; then | |
698dcdb6 | 6131 | echo "$ac_t""yes" 1>&6 |
1db8dc4a | 6132 | else |
698dcdb6 | 6133 | echo "$ac_t""no" 1>&6 |
1db8dc4a | 6134 | fi |
698dcdb6 | 6135 | |
1db8dc4a | 6136 | |
698dcdb6 | 6137 | echo $ac_n "checking for --enable-toolbar""... $ac_c" 1>&6 |
d73be714 | 6138 | echo "configure:6139: checking for --enable-toolbar" >&5 |
10f2d63a VZ |
6139 | no_cache=0 |
6140 | # Check whether --enable-toolbar or --disable-toolbar was given. | |
6141 | if test "${enable_toolbar+set}" = set; then | |
6142 | enableval="$enable_toolbar" | |
698dcdb6 | 6143 | |
10f2d63a VZ |
6144 | if test "$enableval" = yes; then |
6145 | ac_cv_use_toolbar='wxUSE_TOOLBAR=yes' | |
6146 | else | |
6147 | ac_cv_use_toolbar='wxUSE_TOOLBAR=no' | |
6148 | fi | |
698dcdb6 | 6149 | |
10f2d63a | 6150 | else |
698dcdb6 | 6151 | |
10f2d63a VZ |
6152 | LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}` |
6153 | if test "x$LINE" != x ; then | |
6154 | eval "DEFAULT_$LINE" | |
6155 | else | |
6156 | no_cache=1 | |
6157 | fi | |
6158 | ||
6159 | ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR | |
698dcdb6 VZ |
6160 | |
6161 | fi | |
10f2d63a VZ |
6162 | |
6163 | ||
6164 | eval "$ac_cv_use_toolbar" | |
6165 | if test "$no_cache" != 1; then | |
6166 | echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp | |
6167 | fi | |
6168 | ||
6169 | if test "$wxUSE_TOOLBAR" = yes; then | |
698dcdb6 | 6170 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6171 | else |
698dcdb6 | 6172 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6173 | fi |
698dcdb6 | 6174 | |
10f2d63a | 6175 | |
698dcdb6 | 6176 | echo $ac_n "checking for --enable-tbarnative""... $ac_c" 1>&6 |
d73be714 | 6177 | echo "configure:6178: checking for --enable-tbarnative" >&5 |
360d6699 VZ |
6178 | no_cache=0 |
6179 | # Check whether --enable-tbarnative or --disable-tbarnative was given. | |
6180 | if test "${enable_tbarnative+set}" = set; then | |
6181 | enableval="$enable_tbarnative" | |
698dcdb6 | 6182 | |
360d6699 VZ |
6183 | if test "$enableval" = yes; then |
6184 | ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes' | |
6185 | else | |
6186 | ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no' | |
6187 | fi | |
698dcdb6 | 6188 | |
360d6699 | 6189 | else |
698dcdb6 | 6190 | |
360d6699 VZ |
6191 | LINE=`grep "wxUSE_TOOLBAR_NATIVE" ${wx_arg_cache_file}` |
6192 | if test "x$LINE" != x ; then | |
6193 | eval "DEFAULT_$LINE" | |
6194 | else | |
6195 | no_cache=1 | |
6196 | fi | |
6197 | ||
6198 | ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE='$DEFAULT_wxUSE_TOOLBAR_NATIVE | |
698dcdb6 VZ |
6199 | |
6200 | fi | |
360d6699 VZ |
6201 | |
6202 | ||
6203 | eval "$ac_cv_use_tbarnative" | |
6204 | if test "$no_cache" != 1; then | |
6205 | echo $ac_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp | |
6206 | fi | |
6207 | ||
6208 | if test "$wxUSE_TOOLBAR_NATIVE" = yes; then | |
698dcdb6 | 6209 | echo "$ac_t""yes" 1>&6 |
360d6699 | 6210 | else |
698dcdb6 | 6211 | echo "$ac_t""no" 1>&6 |
360d6699 | 6212 | fi |
698dcdb6 | 6213 | |
360d6699 | 6214 | |
698dcdb6 | 6215 | echo $ac_n "checking for --enable-tbarsmpl""... $ac_c" 1>&6 |
d73be714 | 6216 | echo "configure:6217: checking for --enable-tbarsmpl" >&5 |
360d6699 VZ |
6217 | no_cache=0 |
6218 | # Check whether --enable-tbarsmpl or --disable-tbarsmpl was given. | |
6219 | if test "${enable_tbarsmpl+set}" = set; then | |
6220 | enableval="$enable_tbarsmpl" | |
698dcdb6 | 6221 | |
360d6699 VZ |
6222 | if test "$enableval" = yes; then |
6223 | ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=yes' | |
6224 | else | |
6225 | ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=no' | |
6226 | fi | |
698dcdb6 | 6227 | |
360d6699 | 6228 | else |
698dcdb6 | 6229 | |
360d6699 VZ |
6230 | LINE=`grep "wxUSE_TOOLBAR_SIMPLE" ${wx_arg_cache_file}` |
6231 | if test "x$LINE" != x ; then | |
6232 | eval "DEFAULT_$LINE" | |
6233 | else | |
6234 | no_cache=1 | |
6235 | fi | |
6236 | ||
6237 | ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE='$DEFAULT_wxUSE_TOOLBAR_SIMPLE | |
698dcdb6 VZ |
6238 | |
6239 | fi | |
360d6699 VZ |
6240 | |
6241 | ||
6242 | eval "$ac_cv_use_tbarsmpl" | |
6243 | if test "$no_cache" != 1; then | |
6244 | echo $ac_cv_use_tbarsmpl >> ${wx_arg_cache_file}.tmp | |
6245 | fi | |
6246 | ||
6247 | if test "$wxUSE_TOOLBAR_SIMPLE" = yes; then | |
698dcdb6 | 6248 | echo "$ac_t""yes" 1>&6 |
360d6699 | 6249 | else |
698dcdb6 | 6250 | echo "$ac_t""no" 1>&6 |
360d6699 | 6251 | fi |
698dcdb6 | 6252 | |
360d6699 | 6253 | |
698dcdb6 | 6254 | echo $ac_n "checking for --enable-treectrl""... $ac_c" 1>&6 |
d73be714 | 6255 | echo "configure:6256: checking for --enable-treectrl" >&5 |
10f2d63a VZ |
6256 | no_cache=0 |
6257 | # Check whether --enable-treectrl or --disable-treectrl was given. | |
6258 | if test "${enable_treectrl+set}" = set; then | |
6259 | enableval="$enable_treectrl" | |
698dcdb6 | 6260 | |
10f2d63a VZ |
6261 | if test "$enableval" = yes; then |
6262 | ac_cv_use_treectrl='wxUSE_TREECTRL=yes' | |
6263 | else | |
6264 | ac_cv_use_treectrl='wxUSE_TREECTRL=no' | |
6265 | fi | |
698dcdb6 | 6266 | |
10f2d63a | 6267 | else |
698dcdb6 | 6268 | |
10f2d63a VZ |
6269 | LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}` |
6270 | if test "x$LINE" != x ; then | |
6271 | eval "DEFAULT_$LINE" | |
6272 | else | |
6273 | no_cache=1 | |
6274 | fi | |
6275 | ||
6276 | ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL | |
698dcdb6 VZ |
6277 | |
6278 | fi | |
10f2d63a VZ |
6279 | |
6280 | ||
1e6feb95 VZ |
6281 | eval "$ac_cv_use_treectrl" |
6282 | if test "$no_cache" != 1; then | |
6283 | echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp | |
6284 | fi | |
6285 | ||
6286 | if test "$wxUSE_TREECTRL" = yes; then | |
6287 | echo "$ac_t""yes" 1>&6 | |
6288 | else | |
6289 | echo "$ac_t""no" 1>&6 | |
6290 | fi | |
6291 | ||
6292 | ||
6293 | ||
6294 | ||
6295 | echo $ac_n "checking for --enable-commondlg""... $ac_c" 1>&6 | |
d73be714 | 6296 | echo "configure:6297: checking for --enable-commondlg" >&5 |
1e6feb95 VZ |
6297 | no_cache=0 |
6298 | # Check whether --enable-commondlg or --disable-commondlg was given. | |
6299 | if test "${enable_commondlg+set}" = set; then | |
6300 | enableval="$enable_commondlg" | |
6301 | ||
6302 | if test "$enableval" = yes; then | |
6303 | ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes' | |
6304 | else | |
6305 | ac_cv_use_commondlg='wxUSE_COMMONDLGS=no' | |
6306 | fi | |
6307 | ||
6308 | else | |
6309 | ||
6310 | LINE=`grep "wxUSE_COMMONDLGS" ${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_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS | |
6318 | ||
6319 | fi | |
6320 | ||
6321 | ||
6322 | eval "$ac_cv_use_commondlg" | |
6323 | if test "$no_cache" != 1; then | |
6324 | echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp | |
6325 | fi | |
6326 | ||
6327 | if test "$wxUSE_COMMONDLGS" = yes; then | |
6328 | echo "$ac_t""yes" 1>&6 | |
6329 | else | |
6330 | echo "$ac_t""no" 1>&6 | |
6331 | fi | |
6332 | ||
6333 | ||
6334 | echo $ac_n "checking for --enable-choicedlg""... $ac_c" 1>&6 | |
d73be714 | 6335 | echo "configure:6336: checking for --enable-choicedlg" >&5 |
1e6feb95 VZ |
6336 | no_cache=0 |
6337 | # Check whether --enable-choicedlg or --disable-choicedlg was given. | |
6338 | if test "${enable_choicedlg+set}" = set; then | |
6339 | enableval="$enable_choicedlg" | |
6340 | ||
6341 | if test "$enableval" = yes; then | |
6342 | ac_cv_use_choicedlg='wxUSE_CHOICEDLG=yes' | |
6343 | else | |
6344 | ac_cv_use_choicedlg='wxUSE_CHOICEDLG=no' | |
6345 | fi | |
6346 | ||
6347 | else | |
6348 | ||
6349 | LINE=`grep "wxUSE_CHOICEDLG" ${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_choicedlg='wxUSE_CHOICEDLG='$DEFAULT_wxUSE_CHOICEDLG | |
6357 | ||
6358 | fi | |
6359 | ||
6360 | ||
6361 | eval "$ac_cv_use_choicedlg" | |
6362 | if test "$no_cache" != 1; then | |
6363 | echo $ac_cv_use_choicedlg >> ${wx_arg_cache_file}.tmp | |
6364 | fi | |
6365 | ||
6366 | if test "$wxUSE_CHOICEDLG" = yes; then | |
6367 | echo "$ac_t""yes" 1>&6 | |
6368 | else | |
6369 | echo "$ac_t""no" 1>&6 | |
6370 | fi | |
6371 | ||
6372 | ||
6373 | echo $ac_n "checking for --enable-coldlg""... $ac_c" 1>&6 | |
d73be714 | 6374 | echo "configure:6375: checking for --enable-coldlg" >&5 |
1e6feb95 VZ |
6375 | no_cache=0 |
6376 | # Check whether --enable-coldlg or --disable-coldlg was given. | |
6377 | if test "${enable_coldlg+set}" = set; then | |
6378 | enableval="$enable_coldlg" | |
6379 | ||
6380 | if test "$enableval" = yes; then | |
6381 | ac_cv_use_coldlg='wxUSE_COLOURDLG=yes' | |
6382 | else | |
6383 | ac_cv_use_coldlg='wxUSE_COLOURDLG=no' | |
6384 | fi | |
6385 | ||
6386 | else | |
6387 | ||
6388 | LINE=`grep "wxUSE_COLOURDLG" ${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_coldlg='wxUSE_COLOURDLG='$DEFAULT_wxUSE_COLOURDLG | |
6396 | ||
6397 | fi | |
6398 | ||
6399 | ||
6400 | eval "$ac_cv_use_coldlg" | |
6401 | if test "$no_cache" != 1; then | |
6402 | echo $ac_cv_use_coldlg >> ${wx_arg_cache_file}.tmp | |
6403 | fi | |
6404 | ||
6405 | if test "$wxUSE_COLOURDLG" = yes; then | |
6406 | echo "$ac_t""yes" 1>&6 | |
6407 | else | |
6408 | echo "$ac_t""no" 1>&6 | |
6409 | fi | |
6410 | ||
6411 | ||
6412 | echo $ac_n "checking for --enable-filedlg""... $ac_c" 1>&6 | |
d73be714 | 6413 | echo "configure:6414: checking for --enable-filedlg" >&5 |
1e6feb95 VZ |
6414 | no_cache=0 |
6415 | # Check whether --enable-filedlg or --disable-filedlg was given. | |
6416 | if test "${enable_filedlg+set}" = set; then | |
6417 | enableval="$enable_filedlg" | |
6418 | ||
6419 | if test "$enableval" = yes; then | |
6420 | ac_cv_use_filedlg='wxUSE_FILEDLG=yes' | |
6421 | else | |
6422 | ac_cv_use_filedlg='wxUSE_FILEDLG=no' | |
6423 | fi | |
6424 | ||
6425 | else | |
6426 | ||
6427 | LINE=`grep "wxUSE_FILEDLG" ${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_filedlg='wxUSE_FILEDLG='$DEFAULT_wxUSE_FILEDLG | |
6435 | ||
6436 | fi | |
6437 | ||
6438 | ||
6439 | eval "$ac_cv_use_filedlg" | |
6440 | if test "$no_cache" != 1; then | |
6441 | echo $ac_cv_use_filedlg >> ${wx_arg_cache_file}.tmp | |
6442 | fi | |
6443 | ||
6444 | if test "$wxUSE_FILEDLG" = yes; then | |
6445 | echo "$ac_t""yes" 1>&6 | |
6446 | else | |
6447 | echo "$ac_t""no" 1>&6 | |
6448 | fi | |
6449 | ||
6450 | ||
6451 | echo $ac_n "checking for --enable-fontdlg""... $ac_c" 1>&6 | |
d73be714 | 6452 | echo "configure:6453: checking for --enable-fontdlg" >&5 |
1e6feb95 VZ |
6453 | no_cache=0 |
6454 | # Check whether --enable-fontdlg or --disable-fontdlg was given. | |
6455 | if test "${enable_fontdlg+set}" = set; then | |
6456 | enableval="$enable_fontdlg" | |
6457 | ||
6458 | if test "$enableval" = yes; then | |
6459 | ac_cv_use_fontdlg='wxUSE_FONTDLG=yes' | |
6460 | else | |
6461 | ac_cv_use_fontdlg='wxUSE_FONTDLG=no' | |
6462 | fi | |
6463 | ||
6464 | else | |
6465 | ||
6466 | LINE=`grep "wxUSE_FONTDLG" ${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_fontdlg='wxUSE_FONTDLG='$DEFAULT_wxUSE_FONTDLG | |
6474 | ||
6475 | fi | |
6476 | ||
6477 | ||
6478 | eval "$ac_cv_use_fontdlg" | |
6479 | if test "$no_cache" != 1; then | |
6480 | echo $ac_cv_use_fontdlg >> ${wx_arg_cache_file}.tmp | |
6481 | fi | |
6482 | ||
6483 | if test "$wxUSE_FONTDLG" = yes; then | |
6484 | echo "$ac_t""yes" 1>&6 | |
6485 | else | |
6486 | echo "$ac_t""no" 1>&6 | |
6487 | fi | |
6488 | ||
6489 | ||
6490 | echo $ac_n "checking for --enable-dirdlg""... $ac_c" 1>&6 | |
d73be714 | 6491 | echo "configure:6492: checking for --enable-dirdlg" >&5 |
1e6feb95 VZ |
6492 | no_cache=0 |
6493 | # Check whether --enable-dirdlg or --disable-dirdlg was given. | |
6494 | if test "${enable_dirdlg+set}" = set; then | |
6495 | enableval="$enable_dirdlg" | |
6496 | ||
6497 | if test "$enableval" = yes; then | |
6498 | ac_cv_use_dirdlg='wxUSE_DIRDLG=yes' | |
6499 | else | |
6500 | ac_cv_use_dirdlg='wxUSE_DIRDLG=no' | |
6501 | fi | |
6502 | ||
6503 | else | |
6504 | ||
6505 | LINE=`grep "wxUSE_DIRDLG" ${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_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG | |
6513 | ||
6514 | fi | |
6515 | ||
6516 | ||
6517 | eval "$ac_cv_use_dirdlg" | |
10f2d63a | 6518 | if test "$no_cache" != 1; then |
1e6feb95 | 6519 | echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
6520 | fi |
6521 | ||
1e6feb95 | 6522 | if test "$wxUSE_DIRDLG" = yes; then |
698dcdb6 | 6523 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6524 | else |
698dcdb6 | 6525 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6526 | fi |
698dcdb6 VZ |
6527 | |
6528 | ||
1e6feb95 | 6529 | echo $ac_n "checking for --enable-msgdlg""... $ac_c" 1>&6 |
d73be714 | 6530 | echo "configure:6531: checking for --enable-msgdlg" >&5 |
10f2d63a | 6531 | no_cache=0 |
1e6feb95 VZ |
6532 | # Check whether --enable-msgdlg or --disable-msgdlg was given. |
6533 | if test "${enable_msgdlg+set}" = set; then | |
6534 | enableval="$enable_msgdlg" | |
698dcdb6 | 6535 | |
10f2d63a | 6536 | if test "$enableval" = yes; then |
1e6feb95 | 6537 | ac_cv_use_msgdlg='wxUSE_MSGDLG=yes' |
10f2d63a | 6538 | else |
1e6feb95 | 6539 | ac_cv_use_msgdlg='wxUSE_MSGDLG=no' |
10f2d63a | 6540 | fi |
698dcdb6 | 6541 | |
10f2d63a | 6542 | else |
698dcdb6 | 6543 | |
1e6feb95 | 6544 | LINE=`grep "wxUSE_MSGDLG" ${wx_arg_cache_file}` |
10f2d63a VZ |
6545 | if test "x$LINE" != x ; then |
6546 | eval "DEFAULT_$LINE" | |
6547 | else | |
6548 | no_cache=1 | |
6549 | fi | |
6550 | ||
1e6feb95 | 6551 | ac_cv_use_msgdlg='wxUSE_MSGDLG='$DEFAULT_wxUSE_MSGDLG |
698dcdb6 VZ |
6552 | |
6553 | fi | |
10f2d63a VZ |
6554 | |
6555 | ||
1e6feb95 | 6556 | eval "$ac_cv_use_msgdlg" |
10f2d63a | 6557 | if test "$no_cache" != 1; then |
1e6feb95 | 6558 | echo $ac_cv_use_msgdlg >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
6559 | fi |
6560 | ||
1e6feb95 | 6561 | if test "$wxUSE_MSGDLG" = yes; then |
698dcdb6 | 6562 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6563 | else |
698dcdb6 | 6564 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6565 | fi |
698dcdb6 | 6566 | |
10f2d63a | 6567 | |
1e6feb95 | 6568 | echo $ac_n "checking for --enable-numberdlg""... $ac_c" 1>&6 |
d73be714 | 6569 | echo "configure:6570: checking for --enable-numberdlg" >&5 |
10f2d63a | 6570 | no_cache=0 |
1e6feb95 VZ |
6571 | # Check whether --enable-numberdlg or --disable-numberdlg was given. |
6572 | if test "${enable_numberdlg+set}" = set; then | |
6573 | enableval="$enable_numberdlg" | |
698dcdb6 | 6574 | |
10f2d63a | 6575 | if test "$enableval" = yes; then |
1e6feb95 | 6576 | ac_cv_use_numberdlg='wxUSE_NUMBERDLG=yes' |
10f2d63a | 6577 | else |
1e6feb95 | 6578 | ac_cv_use_numberdlg='wxUSE_NUMBERDLG=no' |
10f2d63a | 6579 | fi |
698dcdb6 | 6580 | |
10f2d63a | 6581 | else |
698dcdb6 | 6582 | |
1e6feb95 | 6583 | LINE=`grep "wxUSE_NUMBERDLG" ${wx_arg_cache_file}` |
10f2d63a VZ |
6584 | if test "x$LINE" != x ; then |
6585 | eval "DEFAULT_$LINE" | |
6586 | else | |
6587 | no_cache=1 | |
6588 | fi | |
6589 | ||
1e6feb95 | 6590 | ac_cv_use_numberdlg='wxUSE_NUMBERDLG='$DEFAULT_wxUSE_NUMBERDLG |
698dcdb6 VZ |
6591 | |
6592 | fi | |
10f2d63a VZ |
6593 | |
6594 | ||
1e6feb95 | 6595 | eval "$ac_cv_use_numberdlg" |
10f2d63a | 6596 | if test "$no_cache" != 1; then |
1e6feb95 | 6597 | echo $ac_cv_use_numberdlg >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
6598 | fi |
6599 | ||
1e6feb95 | 6600 | if test "$wxUSE_NUMBERDLG" = yes; then |
698dcdb6 | 6601 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6602 | else |
698dcdb6 | 6603 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6604 | fi |
698dcdb6 | 6605 | |
10f2d63a | 6606 | |
698dcdb6 | 6607 | echo $ac_n "checking for --enable-textdlg""... $ac_c" 1>&6 |
d73be714 | 6608 | echo "configure:6609: checking for --enable-textdlg" >&5 |
10f2d63a VZ |
6609 | no_cache=0 |
6610 | # Check whether --enable-textdlg or --disable-textdlg was given. | |
6611 | if test "${enable_textdlg+set}" = set; then | |
6612 | enableval="$enable_textdlg" | |
698dcdb6 | 6613 | |
10f2d63a VZ |
6614 | if test "$enableval" = yes; then |
6615 | ac_cv_use_textdlg='wxUSE_TEXTDLG=yes' | |
6616 | else | |
6617 | ac_cv_use_textdlg='wxUSE_TEXTDLG=no' | |
6618 | fi | |
698dcdb6 | 6619 | |
10f2d63a | 6620 | else |
698dcdb6 | 6621 | |
10f2d63a VZ |
6622 | LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}` |
6623 | if test "x$LINE" != x ; then | |
6624 | eval "DEFAULT_$LINE" | |
6625 | else | |
6626 | no_cache=1 | |
6627 | fi | |
6628 | ||
6629 | ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG | |
698dcdb6 VZ |
6630 | |
6631 | fi | |
10f2d63a VZ |
6632 | |
6633 | ||
6634 | eval "$ac_cv_use_textdlg" | |
6635 | if test "$no_cache" != 1; then | |
6636 | echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp | |
6637 | fi | |
6638 | ||
6639 | if test "$wxUSE_TEXTDLG" = yes; then | |
698dcdb6 | 6640 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6641 | else |
698dcdb6 | 6642 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6643 | fi |
698dcdb6 | 6644 | |
10f2d63a | 6645 | |
698dcdb6 | 6646 | echo $ac_n "checking for --enable-tipdlg""... $ac_c" 1>&6 |
d73be714 | 6647 | echo "configure:6648: checking for --enable-tipdlg" >&5 |
10f2d63a VZ |
6648 | no_cache=0 |
6649 | # Check whether --enable-tipdlg or --disable-tipdlg was given. | |
6650 | if test "${enable_tipdlg+set}" = set; then | |
6651 | enableval="$enable_tipdlg" | |
698dcdb6 | 6652 | |
10f2d63a VZ |
6653 | if test "$enableval" = yes; then |
6654 | ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes' | |
6655 | else | |
6656 | ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no' | |
6657 | fi | |
698dcdb6 | 6658 | |
10f2d63a | 6659 | else |
698dcdb6 | 6660 | |
10f2d63a VZ |
6661 | LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}` |
6662 | if test "x$LINE" != x ; then | |
6663 | eval "DEFAULT_$LINE" | |
6664 | else | |
6665 | no_cache=1 | |
6666 | fi | |
6667 | ||
6668 | ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS | |
698dcdb6 VZ |
6669 | |
6670 | fi | |
10f2d63a VZ |
6671 | |
6672 | ||
6673 | eval "$ac_cv_use_tipdlg" | |
6674 | if test "$no_cache" != 1; then | |
6675 | echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp | |
6676 | fi | |
6677 | ||
6678 | if test "$wxUSE_STARTUP_TIPS" = yes; then | |
698dcdb6 | 6679 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6680 | else |
698dcdb6 | 6681 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6682 | fi |
698dcdb6 | 6683 | |
10f2d63a | 6684 | |
698dcdb6 | 6685 | echo $ac_n "checking for --enable-progressdlg""... $ac_c" 1>&6 |
d73be714 | 6686 | echo "configure:6687: checking for --enable-progressdlg" >&5 |
10f2d63a VZ |
6687 | no_cache=0 |
6688 | # Check whether --enable-progressdlg or --disable-progressdlg was given. | |
6689 | if test "${enable_progressdlg+set}" = set; then | |
6690 | enableval="$enable_progressdlg" | |
698dcdb6 | 6691 | |
10f2d63a VZ |
6692 | if test "$enableval" = yes; then |
6693 | ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes' | |
6694 | else | |
6695 | ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no' | |
6696 | fi | |
698dcdb6 | 6697 | |
10f2d63a | 6698 | else |
698dcdb6 | 6699 | |
10f2d63a VZ |
6700 | LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}` |
6701 | if test "x$LINE" != x ; then | |
6702 | eval "DEFAULT_$LINE" | |
6703 | else | |
6704 | no_cache=1 | |
6705 | fi | |
6706 | ||
6707 | ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG | |
698dcdb6 VZ |
6708 | |
6709 | fi | |
10f2d63a VZ |
6710 | |
6711 | ||
6712 | eval "$ac_cv_use_progressdlg" | |
6713 | if test "$no_cache" != 1; then | |
6714 | echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp | |
6715 | fi | |
6716 | ||
6717 | if test "$wxUSE_PROGRESSDLG" = yes; then | |
698dcdb6 | 6718 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6719 | else |
698dcdb6 | 6720 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6721 | fi |
698dcdb6 | 6722 | |
10f2d63a | 6723 | |
1e6feb95 | 6724 | echo $ac_n "checking for --enable-menus""... $ac_c" 1>&6 |
d73be714 | 6725 | echo "configure:6726: checking for --enable-menus" >&5 |
1e6feb95 VZ |
6726 | no_cache=0 |
6727 | # Check whether --enable-menus or --disable-menus was given. | |
6728 | if test "${enable_menus+set}" = set; then | |
6729 | enableval="$enable_menus" | |
6730 | ||
6731 | if test "$enableval" = yes; then | |
6732 | ac_cv_use_menus='wxUSE_MENUS=yes' | |
6733 | else | |
6734 | ac_cv_use_menus='wxUSE_MENUS=no' | |
6735 | fi | |
6736 | ||
6737 | else | |
6738 | ||
6739 | LINE=`grep "wxUSE_MENUS" ${wx_arg_cache_file}` | |
6740 | if test "x$LINE" != x ; then | |
6741 | eval "DEFAULT_$LINE" | |
6742 | else | |
6743 | no_cache=1 | |
6744 | fi | |
6745 | ||
6746 | ac_cv_use_menus='wxUSE_MENUS='$DEFAULT_wxUSE_MENUS | |
6747 | ||
6748 | fi | |
6749 | ||
6750 | ||
6751 | eval "$ac_cv_use_menus" | |
6752 | if test "$no_cache" != 1; then | |
6753 | echo $ac_cv_use_menus >> ${wx_arg_cache_file}.tmp | |
6754 | fi | |
6755 | ||
6756 | if test "$wxUSE_MENUS" = yes; then | |
6757 | echo "$ac_t""yes" 1>&6 | |
6758 | else | |
6759 | echo "$ac_t""no" 1>&6 | |
6760 | fi | |
6761 | ||
6762 | ||
698dcdb6 | 6763 | echo $ac_n "checking for --enable-miniframe""... $ac_c" 1>&6 |
d73be714 | 6764 | echo "configure:6765: checking for --enable-miniframe" >&5 |
10f2d63a VZ |
6765 | no_cache=0 |
6766 | # Check whether --enable-miniframe or --disable-miniframe was given. | |
6767 | if test "${enable_miniframe+set}" = set; then | |
6768 | enableval="$enable_miniframe" | |
698dcdb6 | 6769 | |
10f2d63a VZ |
6770 | if test "$enableval" = yes; then |
6771 | ac_cv_use_miniframe='wxUSE_MINIFRAME=yes' | |
6772 | else | |
6773 | ac_cv_use_miniframe='wxUSE_MINIFRAME=no' | |
6774 | fi | |
698dcdb6 | 6775 | |
10f2d63a | 6776 | else |
698dcdb6 | 6777 | |
10f2d63a VZ |
6778 | LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}` |
6779 | if test "x$LINE" != x ; then | |
6780 | eval "DEFAULT_$LINE" | |
6781 | else | |
6782 | no_cache=1 | |
6783 | fi | |
6784 | ||
6785 | ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME | |
698dcdb6 VZ |
6786 | |
6787 | fi | |
10f2d63a VZ |
6788 | |
6789 | ||
6790 | eval "$ac_cv_use_miniframe" | |
6791 | if test "$no_cache" != 1; then | |
6792 | echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp | |
6793 | fi | |
6794 | ||
6795 | if test "$wxUSE_MINIFRAME" = yes; then | |
698dcdb6 | 6796 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6797 | else |
698dcdb6 | 6798 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6799 | fi |
698dcdb6 | 6800 | |
10f2d63a | 6801 | |
698dcdb6 | 6802 | echo $ac_n "checking for --enable-html""... $ac_c" 1>&6 |
d73be714 | 6803 | echo "configure:6804: checking for --enable-html" >&5 |
10f2d63a VZ |
6804 | no_cache=0 |
6805 | # Check whether --enable-html or --disable-html was given. | |
6806 | if test "${enable_html+set}" = set; then | |
6807 | enableval="$enable_html" | |
698dcdb6 | 6808 | |
10f2d63a VZ |
6809 | if test "$enableval" = yes; then |
6810 | ac_cv_use_html='wxUSE_HTML=yes' | |
6811 | else | |
6812 | ac_cv_use_html='wxUSE_HTML=no' | |
6813 | fi | |
698dcdb6 | 6814 | |
10f2d63a | 6815 | else |
698dcdb6 | 6816 | |
10f2d63a VZ |
6817 | LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}` |
6818 | if test "x$LINE" != x ; then | |
6819 | eval "DEFAULT_$LINE" | |
6820 | else | |
6821 | no_cache=1 | |
6822 | fi | |
6823 | ||
6824 | ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML | |
698dcdb6 VZ |
6825 | |
6826 | fi | |
10f2d63a VZ |
6827 | |
6828 | ||
6829 | eval "$ac_cv_use_html" | |
6830 | if test "$no_cache" != 1; then | |
6831 | echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp | |
6832 | fi | |
6833 | ||
6834 | if test "$wxUSE_HTML" = yes; then | |
698dcdb6 | 6835 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6836 | else |
698dcdb6 | 6837 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6838 | fi |
698dcdb6 | 6839 | |
10f2d63a | 6840 | |
698dcdb6 | 6841 | echo $ac_n "checking for --enable-tooltips""... $ac_c" 1>&6 |
d73be714 | 6842 | echo "configure:6843: checking for --enable-tooltips" >&5 |
10f2d63a VZ |
6843 | no_cache=0 |
6844 | # Check whether --enable-tooltips or --disable-tooltips was given. | |
6845 | if test "${enable_tooltips+set}" = set; then | |
6846 | enableval="$enable_tooltips" | |
698dcdb6 | 6847 | |
10f2d63a VZ |
6848 | if test "$enableval" = yes; then |
6849 | ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes' | |
6850 | else | |
6851 | ac_cv_use_tooltips='wxUSE_TOOLTIPS=no' | |
6852 | fi | |
698dcdb6 | 6853 | |
10f2d63a | 6854 | else |
698dcdb6 | 6855 | |
10f2d63a VZ |
6856 | LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}` |
6857 | if test "x$LINE" != x ; then | |
6858 | eval "DEFAULT_$LINE" | |
6859 | else | |
6860 | no_cache=1 | |
6861 | fi | |
6862 | ||
6863 | ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS | |
698dcdb6 VZ |
6864 | |
6865 | fi | |
10f2d63a VZ |
6866 | |
6867 | ||
6868 | eval "$ac_cv_use_tooltips" | |
6869 | if test "$no_cache" != 1; then | |
6870 | echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp | |
6871 | fi | |
6872 | ||
6873 | if test "$wxUSE_TOOLTIPS" = yes; then | |
698dcdb6 | 6874 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6875 | else |
698dcdb6 | 6876 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6877 | fi |
698dcdb6 | 6878 | |
10f2d63a | 6879 | |
698dcdb6 | 6880 | echo $ac_n "checking for --enable-splines""... $ac_c" 1>&6 |
d73be714 | 6881 | echo "configure:6882: checking for --enable-splines" >&5 |
10f2d63a VZ |
6882 | no_cache=0 |
6883 | # Check whether --enable-splines or --disable-splines was given. | |
6884 | if test "${enable_splines+set}" = set; then | |
6885 | enableval="$enable_splines" | |
698dcdb6 | 6886 | |
10f2d63a VZ |
6887 | if test "$enableval" = yes; then |
6888 | ac_cv_use_splines='wxUSE_SPLINES=yes' | |
6889 | else | |
6890 | ac_cv_use_splines='wxUSE_SPLINES=no' | |
6891 | fi | |
698dcdb6 | 6892 | |
10f2d63a | 6893 | else |
698dcdb6 | 6894 | |
10f2d63a VZ |
6895 | LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}` |
6896 | if test "x$LINE" != x ; then | |
6897 | eval "DEFAULT_$LINE" | |
6898 | else | |
6899 | no_cache=1 | |
6900 | fi | |
6901 | ||
6902 | ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES | |
698dcdb6 VZ |
6903 | |
6904 | fi | |
10f2d63a VZ |
6905 | |
6906 | ||
6907 | eval "$ac_cv_use_splines" | |
6908 | if test "$no_cache" != 1; then | |
6909 | echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp | |
6910 | fi | |
6911 | ||
6912 | if test "$wxUSE_SPLINES" = yes; then | |
698dcdb6 | 6913 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6914 | else |
698dcdb6 | 6915 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6916 | fi |
698dcdb6 | 6917 | |
10f2d63a | 6918 | |
698dcdb6 | 6919 | echo $ac_n "checking for --enable-validators""... $ac_c" 1>&6 |
d73be714 | 6920 | echo "configure:6921: checking for --enable-validators" >&5 |
10f2d63a VZ |
6921 | no_cache=0 |
6922 | # Check whether --enable-validators or --disable-validators was given. | |
6923 | if test "${enable_validators+set}" = set; then | |
6924 | enableval="$enable_validators" | |
698dcdb6 | 6925 | |
10f2d63a VZ |
6926 | if test "$enableval" = yes; then |
6927 | ac_cv_use_validators='wxUSE_VALIDATORS=yes' | |
6928 | else | |
6929 | ac_cv_use_validators='wxUSE_VALIDATORS=no' | |
6930 | fi | |
698dcdb6 | 6931 | |
10f2d63a | 6932 | else |
698dcdb6 | 6933 | |
10f2d63a VZ |
6934 | LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}` |
6935 | if test "x$LINE" != x ; then | |
6936 | eval "DEFAULT_$LINE" | |
6937 | else | |
6938 | no_cache=1 | |
6939 | fi | |
6940 | ||
6941 | ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS | |
698dcdb6 VZ |
6942 | |
6943 | fi | |
10f2d63a VZ |
6944 | |
6945 | ||
6946 | eval "$ac_cv_use_validators" | |
6947 | if test "$no_cache" != 1; then | |
6948 | echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp | |
6949 | fi | |
6950 | ||
6951 | if test "$wxUSE_VALIDATORS" = yes; then | |
698dcdb6 | 6952 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6953 | else |
698dcdb6 | 6954 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6955 | fi |
698dcdb6 | 6956 | |
10f2d63a | 6957 | |
698dcdb6 | 6958 | echo $ac_n "checking for --enable-busyinfo""... $ac_c" 1>&6 |
d73be714 | 6959 | echo "configure:6960: checking for --enable-busyinfo" >&5 |
10f2d63a VZ |
6960 | no_cache=0 |
6961 | # Check whether --enable-busyinfo or --disable-busyinfo was given. | |
6962 | if test "${enable_busyinfo+set}" = set; then | |
6963 | enableval="$enable_busyinfo" | |
698dcdb6 | 6964 | |
10f2d63a VZ |
6965 | if test "$enableval" = yes; then |
6966 | ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes' | |
6967 | else | |
6968 | ac_cv_use_busyinfo='wxUSE_BUSYINFO=no' | |
6969 | fi | |
698dcdb6 | 6970 | |
10f2d63a | 6971 | else |
698dcdb6 | 6972 | |
10f2d63a VZ |
6973 | LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}` |
6974 | if test "x$LINE" != x ; then | |
6975 | eval "DEFAULT_$LINE" | |
6976 | else | |
6977 | no_cache=1 | |
6978 | fi | |
6979 | ||
6980 | ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO | |
698dcdb6 VZ |
6981 | |
6982 | fi | |
10f2d63a VZ |
6983 | |
6984 | ||
6985 | eval "$ac_cv_use_busyinfo" | |
6986 | if test "$no_cache" != 1; then | |
6987 | echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp | |
6988 | fi | |
6989 | ||
6990 | if test "$wxUSE_BUSYINFO" = yes; then | |
698dcdb6 | 6991 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6992 | else |
698dcdb6 | 6993 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6994 | fi |
698dcdb6 | 6995 | |
10f2d63a | 6996 | |
698dcdb6 | 6997 | echo $ac_n "checking for --enable-joystick""... $ac_c" 1>&6 |
d73be714 | 6998 | echo "configure:6999: checking for --enable-joystick" >&5 |
f6bcfd97 BP |
6999 | no_cache=0 |
7000 | # Check whether --enable-joystick or --disable-joystick was given. | |
7001 | if test "${enable_joystick+set}" = set; then | |
7002 | enableval="$enable_joystick" | |
698dcdb6 | 7003 | |
f6bcfd97 BP |
7004 | if test "$enableval" = yes; then |
7005 | ac_cv_use_joystick='wxUSE_JOYSTICK=yes' | |
7006 | else | |
7007 | ac_cv_use_joystick='wxUSE_JOYSTICK=no' | |
7008 | fi | |
698dcdb6 | 7009 | |
f6bcfd97 | 7010 | else |
698dcdb6 | 7011 | |
f6bcfd97 BP |
7012 | LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}` |
7013 | if test "x$LINE" != x ; then | |
7014 | eval "DEFAULT_$LINE" | |
7015 | else | |
7016 | no_cache=1 | |
7017 | fi | |
7018 | ||
7019 | ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK | |
698dcdb6 VZ |
7020 | |
7021 | fi | |
f6bcfd97 BP |
7022 | |
7023 | ||
7024 | eval "$ac_cv_use_joystick" | |
7025 | if test "$no_cache" != 1; then | |
7026 | echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp | |
7027 | fi | |
7028 | ||
7029 | if test "$wxUSE_JOYSTICK" = yes; then | |
698dcdb6 | 7030 | echo "$ac_t""yes" 1>&6 |
f6bcfd97 | 7031 | else |
698dcdb6 | 7032 | echo "$ac_t""no" 1>&6 |
f6bcfd97 | 7033 | fi |
698dcdb6 VZ |
7034 | |
7035 | ||
1e6feb95 | 7036 | echo $ac_n "checking for --enable-metafile""... $ac_c" 1>&6 |
d73be714 | 7037 | echo "configure:7038: checking for --enable-metafile" >&5 |
1e6feb95 VZ |
7038 | no_cache=0 |
7039 | # Check whether --enable-metafile or --disable-metafile was given. | |
7040 | if test "${enable_metafile+set}" = set; then | |
7041 | enableval="$enable_metafile" | |
7042 | ||
7043 | if test "$enableval" = yes; then | |
7044 | ac_cv_use_metafile='wxUSE_METAFILE=yes' | |
7045 | else | |
7046 | ac_cv_use_metafile='wxUSE_METAFILE=no' | |
7047 | fi | |
7048 | ||
7049 | else | |
7050 | ||
7051 | LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}` | |
7052 | if test "x$LINE" != x ; then | |
7053 | eval "DEFAULT_$LINE" | |
7054 | else | |
7055 | no_cache=1 | |
7056 | fi | |
7057 | ||
7058 | ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE | |
7059 | ||
7060 | fi | |
7061 | ||
7062 | ||
7063 | eval "$ac_cv_use_metafile" | |
7064 | if test "$no_cache" != 1; then | |
7065 | echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp | |
7066 | fi | |
7067 | ||
7068 | if test "$wxUSE_METAFILE" = yes; then | |
7069 | echo "$ac_t""yes" 1>&6 | |
7070 | else | |
7071 | echo "$ac_t""no" 1>&6 | |
7072 | fi | |
7073 | ||
7074 | ||
10f2d63a | 7075 | |
698dcdb6 VZ |
7076 | |
7077 | echo $ac_n "checking for --enable-image""... $ac_c" 1>&6 | |
d73be714 | 7078 | echo "configure:7079: checking for --enable-image" >&5 |
0046ff7c VS |
7079 | no_cache=0 |
7080 | # Check whether --enable-image or --disable-image was given. | |
7081 | if test "${enable_image+set}" = set; then | |
7082 | enableval="$enable_image" | |
698dcdb6 | 7083 | |
0046ff7c VS |
7084 | if test "$enableval" = yes; then |
7085 | ac_cv_use_image='wxUSE_IMAGE=yes' | |
7086 | else | |
7087 | ac_cv_use_image='wxUSE_IMAGE=no' | |
7088 | fi | |
698dcdb6 | 7089 | |
0046ff7c | 7090 | else |
698dcdb6 | 7091 | |
0046ff7c VS |
7092 | LINE=`grep "wxUSE_IMAGE" ${wx_arg_cache_file}` |
7093 | if test "x$LINE" != x ; then | |
7094 | eval "DEFAULT_$LINE" | |
7095 | else | |
7096 | no_cache=1 | |
7097 | fi | |
7098 | ||
7099 | ac_cv_use_image='wxUSE_IMAGE='$DEFAULT_wxUSE_IMAGE | |
698dcdb6 VZ |
7100 | |
7101 | fi | |
0046ff7c VS |
7102 | |
7103 | ||
7104 | eval "$ac_cv_use_image" | |
7105 | if test "$no_cache" != 1; then | |
7106 | echo $ac_cv_use_image >> ${wx_arg_cache_file}.tmp | |
7107 | fi | |
7108 | ||
7109 | if test "$wxUSE_IMAGE" = yes; then | |
698dcdb6 | 7110 | echo "$ac_t""yes" 1>&6 |
0046ff7c | 7111 | else |
698dcdb6 | 7112 | echo "$ac_t""no" 1>&6 |
0046ff7c | 7113 | fi |
698dcdb6 | 7114 | |
0046ff7c | 7115 | |
698dcdb6 | 7116 | echo $ac_n "checking for --enable-gif""... $ac_c" 1>&6 |
d73be714 | 7117 | echo "configure:7118: checking for --enable-gif" >&5 |
10f2d63a VZ |
7118 | no_cache=0 |
7119 | # Check whether --enable-gif or --disable-gif was given. | |
7120 | if test "${enable_gif+set}" = set; then | |
7121 | enableval="$enable_gif" | |
698dcdb6 | 7122 | |
10f2d63a VZ |
7123 | if test "$enableval" = yes; then |
7124 | ac_cv_use_gif='wxUSE_GIF=yes' | |
7125 | else | |
7126 | ac_cv_use_gif='wxUSE_GIF=no' | |
7127 | fi | |
698dcdb6 | 7128 | |
10f2d63a | 7129 | else |
698dcdb6 | 7130 | |
10f2d63a VZ |
7131 | LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}` |
7132 | if test "x$LINE" != x ; then | |
7133 | eval "DEFAULT_$LINE" | |
7134 | else | |
7135 | no_cache=1 | |
7136 | fi | |
7137 | ||
7138 | ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF | |
698dcdb6 VZ |
7139 | |
7140 | fi | |
10f2d63a VZ |
7141 | |
7142 | ||
7143 | eval "$ac_cv_use_gif" | |
7144 | if test "$no_cache" != 1; then | |
7145 | echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp | |
7146 | fi | |
7147 | ||
7148 | if test "$wxUSE_GIF" = yes; then | |
698dcdb6 | 7149 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7150 | else |
698dcdb6 | 7151 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7152 | fi |
698dcdb6 | 7153 | |
10f2d63a | 7154 | |
698dcdb6 | 7155 | echo $ac_n "checking for --enable-pcx""... $ac_c" 1>&6 |
d73be714 | 7156 | echo "configure:7157: checking for --enable-pcx" >&5 |
10f2d63a VZ |
7157 | no_cache=0 |
7158 | # Check whether --enable-pcx or --disable-pcx was given. | |
7159 | if test "${enable_pcx+set}" = set; then | |
7160 | enableval="$enable_pcx" | |
698dcdb6 | 7161 | |
10f2d63a VZ |
7162 | if test "$enableval" = yes; then |
7163 | ac_cv_use_pcx='wxUSE_PCX=yes' | |
7164 | else | |
7165 | ac_cv_use_pcx='wxUSE_PCX=no' | |
7166 | fi | |
698dcdb6 | 7167 | |
10f2d63a | 7168 | else |
698dcdb6 | 7169 | |
10f2d63a VZ |
7170 | LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}` |
7171 | if test "x$LINE" != x ; then | |
7172 | eval "DEFAULT_$LINE" | |
7173 | else | |
7174 | no_cache=1 | |
7175 | fi | |
7176 | ||
7177 | ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX | |
698dcdb6 VZ |
7178 | |
7179 | fi | |
10f2d63a VZ |
7180 | |
7181 | ||
7182 | eval "$ac_cv_use_pcx" | |
7183 | if test "$no_cache" != 1; then | |
7184 | echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp | |
7185 | fi | |
7186 | ||
7187 | if test "$wxUSE_PCX" = yes; then | |
698dcdb6 | 7188 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7189 | else |
698dcdb6 | 7190 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7191 | fi |
698dcdb6 | 7192 | |
10f2d63a | 7193 | |
698dcdb6 | 7194 | echo $ac_n "checking for --enable-pnm""... $ac_c" 1>&6 |
d73be714 | 7195 | echo "configure:7196: checking for --enable-pnm" >&5 |
10f2d63a VZ |
7196 | no_cache=0 |
7197 | # Check whether --enable-pnm or --disable-pnm was given. | |
7198 | if test "${enable_pnm+set}" = set; then | |
7199 | enableval="$enable_pnm" | |
698dcdb6 | 7200 | |
10f2d63a VZ |
7201 | if test "$enableval" = yes; then |
7202 | ac_cv_use_pnm='wxUSE_PNM=yes' | |
7203 | else | |
7204 | ac_cv_use_pnm='wxUSE_PNM=no' | |
7205 | fi | |
698dcdb6 | 7206 | |
10f2d63a | 7207 | else |
698dcdb6 | 7208 | |
10f2d63a VZ |
7209 | LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}` |
7210 | if test "x$LINE" != x ; then | |
7211 | eval "DEFAULT_$LINE" | |
7212 | else | |
7213 | no_cache=1 | |
7214 | fi | |
7215 | ||
7216 | ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM | |
698dcdb6 VZ |
7217 | |
7218 | fi | |
10f2d63a VZ |
7219 | |
7220 | ||
7221 | eval "$ac_cv_use_pnm" | |
7222 | if test "$no_cache" != 1; then | |
7223 | echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp | |
7224 | fi | |
7225 | ||
7226 | if test "$wxUSE_PNM" = yes; then | |
698dcdb6 | 7227 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7228 | else |
698dcdb6 | 7229 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7230 | fi |
698dcdb6 | 7231 | |
10f2d63a | 7232 | |
698dcdb6 | 7233 | echo $ac_n "checking for --enable-pnm""... $ac_c" 1>&6 |
d73be714 | 7234 | echo "configure:7235: checking for --enable-pnm" >&5 |
0046ff7c VS |
7235 | no_cache=0 |
7236 | # Check whether --enable-pnm or --disable-pnm was given. | |
7237 | if test "${enable_pnm+set}" = set; then | |
7238 | enableval="$enable_pnm" | |
698dcdb6 | 7239 | |
0046ff7c VS |
7240 | if test "$enableval" = yes; then |
7241 | ac_cv_use_pnm='wxUSE_XPM=yes' | |
7242 | else | |
7243 | ac_cv_use_pnm='wxUSE_XPM=no' | |
7244 | fi | |
698dcdb6 | 7245 | |
0046ff7c | 7246 | else |
698dcdb6 | 7247 | |
0046ff7c VS |
7248 | LINE=`grep "wxUSE_XPM" ${wx_arg_cache_file}` |
7249 | if test "x$LINE" != x ; then | |
7250 | eval "DEFAULT_$LINE" | |
7251 | else | |
7252 | no_cache=1 | |
7253 | fi | |
7254 | ||
7255 | ac_cv_use_pnm='wxUSE_XPM='$DEFAULT_wxUSE_XPM | |
698dcdb6 VZ |
7256 | |
7257 | fi | |
0046ff7c VS |
7258 | |
7259 | ||
7260 | eval "$ac_cv_use_pnm" | |
7261 | if test "$no_cache" != 1; then | |
7262 | echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp | |
7263 | fi | |
7264 | ||
7265 | if test "$wxUSE_XPM" = yes; then | |
698dcdb6 | 7266 | echo "$ac_t""yes" 1>&6 |
0046ff7c | 7267 | else |
698dcdb6 | 7268 | echo "$ac_t""no" 1>&6 |
0046ff7c | 7269 | fi |
698dcdb6 | 7270 | |
0046ff7c | 7271 | |
b12915c1 VZ |
7272 | fi |
7273 | ||
698dcdb6 | 7274 | |
10f2d63a VZ |
7275 | echo "saving argument cache $wx_arg_cache_file" |
7276 | mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file} | |
698dcdb6 | 7277 | |
10f2d63a | 7278 | |
698dcdb6 VZ |
7279 | |
7280 | echo $ac_n "checking for toolkit""... $ac_c" 1>&6 | |
d73be714 | 7281 | echo "configure:7282: checking for toolkit" >&5 |
10f2d63a VZ |
7282 | |
7283 | if test "$wxUSE_GUI" = "yes"; then | |
7284 | ||
b12915c1 | 7285 | if test "$USE_BEOS" = 1; then |
698dcdb6 | 7286 | { echo "configure: error: BeOS GUI is not supported yet, use --disable-gui" 1>&2; exit 1; } |
b12915c1 VZ |
7287 | fi |
7288 | ||
10f2d63a VZ |
7289 | if test "$TOOLKIT_GIVEN" = 1; then |
7290 | for toolkit in `echo $ALL_TOOLKITS`; do | |
7291 | var=wxUSE_$toolkit | |
7292 | eval "value=\$${var}" | |
7293 | eval "$var=`echo \$value | sed -e "s/yes/1/" -e "s/no/0/"`" | |
7294 | done | |
7295 | else | |
7296 | for toolkit in `echo $ALL_TOOLKITS`; do | |
7297 | if test "$has_toolkit_in_cache" != 1; then | |
7298 | var=DEFAULT_DEFAULT_wxUSE_$toolkit | |
7299 | else | |
7300 | var=DEFAULT_wxUSE_$toolkit | |
7301 | fi | |
7302 | eval "wxUSE_$toolkit=\$${var}" | |
7303 | done | |
7304 | fi | |
7305 | ||
1e6feb95 | 7306 | 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 | 7307 | |
ec14dd32 VZ |
7308 | case "${host}" in |
7309 | *-pc-os2_emx ) | |
7310 | NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}` | |
7311 | # PATH_IFS is autodetected by OS/2's configure (usually ';') | |
7312 | LEX_STEM="lexyy" | |
7313 | ;; | |
7314 | *) | |
7315 | PATH_IFS=':' | |
7316 | LEX_STEM="lex.yy" | |
7317 | ;; | |
7318 | esac | |
10f2d63a VZ |
7319 | |
7320 | case "$NUM_TOOLKITS" in | |
7321 | 1) | |
7322 | ;; | |
7323 | 0) | |
698dcdb6 | 7324 | { echo "configure: error: Please specify a toolkit - cannot determine the default for ${host}" 1>&2; exit 1; } |
10f2d63a VZ |
7325 | ;; |
7326 | *) | |
698dcdb6 | 7327 | { echo "configure: error: Please specify at most one toolkit (may be some are cached?)" 1>&2; exit 1; } |
10f2d63a VZ |
7328 | esac |
7329 | ||
7330 | for toolkit in `echo $ALL_TOOLKITS`; do | |
7331 | var=wxUSE_$toolkit | |
7332 | eval "value=\$${var}" | |
7333 | if test "x$value" != x; then | |
7334 | cache_var=CACHE_$toolkit | |
7335 | eval "cache=\$${cache_var}" | |
7336 | if test "$cache" = 1; then | |
7337 | echo "$var=$value" >> ${wx_arg_cache_file} | |
7338 | fi | |
7339 | if test "$value" = 1; then | |
8168de4c VZ |
7340 | toolkit_echo=`echo $toolkit | tr [A-Z] [a-z]` |
7341 | echo "$ac_t""$toolkit_echo" 1>&6 | |
10f2d63a VZ |
7342 | fi |
7343 | fi | |
7344 | done | |
7345 | ||
7346 | else | |
cf27ef00 | 7347 | PATH_IFS=':' |
698dcdb6 | 7348 | echo "$ac_t""base only" 1>&6 |
10f2d63a VZ |
7349 | fi |
7350 | ||
698dcdb6 VZ |
7351 | |
7352 | cat > confcache <<\EOF | |
10f2d63a VZ |
7353 | # This file is a shell script that caches the results of configure |
7354 | # tests run on this system so they can be shared between configure | |
698dcdb6 VZ |
7355 | # scripts and configure runs. It is not useful on other systems. |
7356 | # If it contains results you don't want to keep, you may remove or edit it. | |
10f2d63a | 7357 | # |
698dcdb6 VZ |
7358 | # By default, configure uses ./config.cache as the cache file, |
7359 | # creating it if it does not exist already. You can give configure | |
7360 | # the --cache-file=FILE option to use a different cache file; that is | |
7361 | # what configure does when it calls configure scripts in | |
7362 | # subdirectories, so they share the cache. | |
7363 | # Giving --cache-file=/dev/null disables caching, for debugging configure. | |
7364 | # config.status only pays attention to the cache file if you give it the | |
7365 | # --recheck option to rerun configure. | |
10f2d63a | 7366 | # |
698dcdb6 | 7367 | EOF |
10f2d63a VZ |
7368 | # The following way of writing the cache mishandles newlines in values, |
7369 | # but we know of no workaround that is simple, portable, and efficient. | |
7370 | # So, don't put newlines in cache variables' values. | |
7371 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
7372 | # and sets the high bit in the cache file unless we assign to the vars. | |
698dcdb6 VZ |
7373 | (set) 2>&1 | |
7374 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
7375 | *ac_space=\ *) | |
7376 | # `set' does not quote correctly, so add quotes (double-quote substitution | |
7377 | # turns \\\\ into \\, and sed turns \\ into \). | |
7378 | sed -n \ | |
7379 | -e "s/'/'\\\\''/g" \ | |
7380 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" | |
7381 | ;; | |
7382 | *) | |
7383 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
7384 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' | |
7385 | ;; | |
7386 | esac >> confcache | |
7387 | if cmp -s $cache_file confcache; then | |
7388 | : | |
7389 | else | |
10f2d63a | 7390 | if test -w $cache_file; then |
698dcdb6 VZ |
7391 | echo "updating cache $cache_file" |
7392 | cat confcache > $cache_file | |
10f2d63a VZ |
7393 | else |
7394 | echo "not updating unwritable cache $cache_file" | |
7395 | fi | |
7396 | fi | |
7397 | rm -f confcache | |
7398 | ||
698dcdb6 | 7399 | |
e59890c3 | 7400 | if test "$build" != "$host" ; then |
10f2d63a VZ |
7401 | CC=$host_alias-gcc |
7402 | CXX=$host_alias-c++ | |
7403 | AR=$host_alias-ar | |
7404 | RANLIB=$host_alias-ranlib | |
7405 | DLLTOOL=$host_alias-dlltool | |
32832908 | 7406 | RESCOMP=$host_alias-windres |
10f2d63a VZ |
7407 | LD=$host_alias-ld |
7408 | NM=$host_alias-nm | |
7409 | STRIP=$host_alias-strip | |
10f2d63a VZ |
7410 | fi |
7411 | ||
698dcdb6 | 7412 | # Extract the first word of "gcc", so it can be a program name with args. |
1e487827 | 7413 | set dummy gcc; ac_word=$2 |
698dcdb6 | 7414 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
d73be714 | 7415 | echo "configure:7416: checking for $ac_word" >&5 |
698dcdb6 VZ |
7416 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
7417 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6232543b VS |
7418 | else |
7419 | if test -n "$CC"; then | |
7420 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
10f2d63a | 7421 | else |
698dcdb6 VZ |
7422 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
7423 | ac_dummy="$PATH" | |
7424 | for ac_dir in $ac_dummy; do | |
7425 | test -z "$ac_dir" && ac_dir=. | |
7426 | if test -f $ac_dir/$ac_word; then | |
7427 | ac_cv_prog_CC="gcc" | |
7428 | break | |
7429 | fi | |
7430 | done | |
7431 | IFS="$ac_save_ifs" | |
10f2d63a | 7432 | fi |
6232543b | 7433 | fi |
698dcdb6 | 7434 | CC="$ac_cv_prog_CC" |
6232543b | 7435 | if test -n "$CC"; then |
698dcdb6 | 7436 | echo "$ac_t""$CC" 1>&6 |
1e487827 | 7437 | else |
698dcdb6 | 7438 | echo "$ac_t""no" 1>&6 |
1e487827 | 7439 | fi |
6232543b | 7440 | |
1e487827 VS |
7441 | if test -z "$CC"; then |
7442 | # Extract the first word of "cc", so it can be a program name with args. | |
7443 | set dummy cc; ac_word=$2 | |
698dcdb6 | 7444 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
d73be714 | 7445 | echo "configure:7446: checking for $ac_word" >&5 |
698dcdb6 VZ |
7446 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
7447 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1e487827 VS |
7448 | else |
7449 | if test -n "$CC"; then | |
7450 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
7451 | else | |
698dcdb6 | 7452 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
1e487827 | 7453 | ac_prog_rejected=no |
698dcdb6 VZ |
7454 | ac_dummy="$PATH" |
7455 | for ac_dir in $ac_dummy; do | |
7456 | test -z "$ac_dir" && ac_dir=. | |
7457 | if test -f $ac_dir/$ac_word; then | |
7458 | if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then | |
7459 | ac_prog_rejected=yes | |
7460 | continue | |
7461 | fi | |
7462 | ac_cv_prog_CC="cc" | |
7463 | break | |
7464 | fi | |
7465 | done | |
7466 | IFS="$ac_save_ifs" | |
1e487827 VS |
7467 | if test $ac_prog_rejected = yes; then |
7468 | # We found a bogon in the path, so make sure we never use it. | |
7469 | set dummy $ac_cv_prog_CC | |
7470 | shift | |
698dcdb6 | 7471 | if test $# -gt 0; then |
1e487827 VS |
7472 | # We chose a different compiler from the bogus one. |
7473 | # However, it has the same basename, so the bogon will be chosen | |
7474 | # first if we set CC to just the basename; use the full file name. | |
7475 | shift | |
698dcdb6 | 7476 | set dummy "$ac_dir/$ac_word" "$@" |
1e487827 VS |
7477 | shift |
7478 | ac_cv_prog_CC="$@" | |
703e0a69 | 7479 | fi |
1e487827 VS |
7480 | fi |
7481 | fi | |
7482 | fi | |
698dcdb6 | 7483 | CC="$ac_cv_prog_CC" |
1e487827 | 7484 | if test -n "$CC"; then |
698dcdb6 | 7485 | echo "$ac_t""$CC" 1>&6 |
703e0a69 | 7486 | else |
698dcdb6 | 7487 | echo "$ac_t""no" 1>&6 |
703e0a69 | 7488 | fi |
1e487827 | 7489 | |
698dcdb6 VZ |
7490 | if test -z "$CC"; then |
7491 | case "`uname -s`" in | |
7492 | *win32* | *WIN32*) | |
7493 | # Extract the first word of "cl", so it can be a program name with args. | |
7494 | set dummy cl; ac_word=$2 | |
7495 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
d73be714 | 7496 | echo "configure:7497: checking for $ac_word" >&5 |
698dcdb6 VZ |
7497 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
7498 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1e487827 VS |
7499 | else |
7500 | if test -n "$CC"; then | |
7501 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
703e0a69 | 7502 | else |
698dcdb6 VZ |
7503 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
7504 | ac_dummy="$PATH" | |
7505 | for ac_dir in $ac_dummy; do | |
7506 | test -z "$ac_dir" && ac_dir=. | |
7507 | if test -f $ac_dir/$ac_word; then | |
7508 | ac_cv_prog_CC="cl" | |
7509 | break | |
7510 | fi | |
7511 | done | |
7512 | IFS="$ac_save_ifs" | |
703e0a69 | 7513 | fi |
1e487827 | 7514 | fi |
698dcdb6 | 7515 | CC="$ac_cv_prog_CC" |
1e487827 | 7516 | if test -n "$CC"; then |
698dcdb6 | 7517 | echo "$ac_t""$CC" 1>&6 |
1e487827 | 7518 | else |
698dcdb6 | 7519 | echo "$ac_t""no" 1>&6 |
1e487827 | 7520 | fi |
698dcdb6 VZ |
7521 | ;; |
7522 | esac | |
7523 | fi | |
7524 | test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } | |
1e487827 VS |
7525 | fi |
7526 | ||
698dcdb6 | 7527 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 |
d73be714 | 7528 | echo "configure:7529: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 |
1e487827 | 7529 | |
698dcdb6 VZ |
7530 | ac_ext=c |
7531 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
7532 | ac_cpp='$CPP $CPPFLAGS' | |
7533 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
7534 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
7535 | cross_compiling=$ac_cv_prog_cc_cross | |
6232543b | 7536 | |
698dcdb6 | 7537 | cat > conftest.$ac_ext << EOF |
1e487827 | 7538 | |
d73be714 | 7539 | #line 7540 "configure" |
1e487827 VS |
7540 | #include "confdefs.h" |
7541 | ||
698dcdb6 VZ |
7542 | main(){return(0);} |
7543 | EOF | |
d73be714 | 7544 | if { (eval echo configure:7545: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
7545 | ac_cv_prog_cc_works=yes |
7546 | # If we can't run a trivial program, we are probably using a cross compiler. | |
7547 | if (./conftest; exit) 2>/dev/null; then | |
7548 | ac_cv_prog_cc_cross=no | |
7549 | else | |
7550 | ac_cv_prog_cc_cross=yes | |
7551 | fi | |
7552 | else | |
7553 | echo "configure: failed program was:" >&5 | |
7554 | cat conftest.$ac_ext >&5 | |
7555 | ac_cv_prog_cc_works=no | |
7556 | fi | |
7557 | rm -fr conftest* | |
7558 | ac_ext=c | |
7559 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
7560 | ac_cpp='$CPP $CPPFLAGS' | |
7561 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
7562 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
7563 | cross_compiling=$ac_cv_prog_cc_cross | |
7564 | ||
7565 | echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 | |
7566 | if test $ac_cv_prog_cc_works = no; then | |
7567 | { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } | |
7568 | fi | |
7569 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 | |
d73be714 | 7570 | echo "configure:7571: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 |
698dcdb6 VZ |
7571 | echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 |
7572 | cross_compiling=$ac_cv_prog_cc_cross | |
7573 | ||
7574 | echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 | |
d73be714 | 7575 | echo "configure:7576: checking whether we are using GNU C" >&5 |
698dcdb6 VZ |
7576 | if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then |
7577 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7578 | else | |
7579 | cat > conftest.c <<EOF | |
7580 | #ifdef __GNUC__ | |
7581 | yes; | |
1e487827 | 7582 | #endif |
698dcdb6 | 7583 | EOF |
d73be714 | 7584 | if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:7585: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then |
698dcdb6 VZ |
7585 | ac_cv_prog_gcc=yes |
7586 | else | |
7587 | ac_cv_prog_gcc=no | |
7588 | fi | |
7589 | fi | |
1e487827 | 7590 | |
698dcdb6 | 7591 | echo "$ac_t""$ac_cv_prog_gcc" 1>&6 |
1e487827 | 7592 | |
698dcdb6 VZ |
7593 | if test $ac_cv_prog_gcc = yes; then |
7594 | GCC=yes | |
7595 | else | |
7596 | GCC= | |
7597 | fi | |
1e487827 | 7598 | |
698dcdb6 VZ |
7599 | ac_test_CFLAGS="${CFLAGS+set}" |
7600 | ac_save_CFLAGS="$CFLAGS" | |
7601 | CFLAGS= | |
7602 | echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 | |
d73be714 | 7603 | echo "configure:7604: checking whether ${CC-cc} accepts -g" >&5 |
698dcdb6 VZ |
7604 | if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then |
7605 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7606 | else | |
7607 | echo 'void f(){}' > conftest.c | |
7608 | if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then | |
10f2d63a VZ |
7609 | ac_cv_prog_cc_g=yes |
7610 | else | |
698dcdb6 | 7611 | ac_cv_prog_cc_g=no |
10f2d63a | 7612 | fi |
698dcdb6 VZ |
7613 | rm -f conftest* |
7614 | ||
10f2d63a | 7615 | fi |
698dcdb6 VZ |
7616 | |
7617 | echo "$ac_t""$ac_cv_prog_cc_g" 1>&6 | |
10f2d63a | 7618 | if test "$ac_test_CFLAGS" = set; then |
698dcdb6 | 7619 | CFLAGS="$ac_save_CFLAGS" |
10f2d63a VZ |
7620 | elif test $ac_cv_prog_cc_g = yes; then |
7621 | if test "$GCC" = yes; then | |
7622 | CFLAGS="-g -O2" | |
7623 | else | |
7624 | CFLAGS="-g" | |
7625 | fi | |
7626 | else | |
7627 | if test "$GCC" = yes; then | |
7628 | CFLAGS="-O2" | |
7629 | else | |
7630 | CFLAGS= | |
7631 | fi | |
7632 | fi | |
7633 | ||
7634 | ||
7635 | CFLAGS=`echo "$CFLAGS" | sed 's/-g//g'` | |
7636 | ||
698dcdb6 | 7637 | echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 |
d73be714 | 7638 | echo "configure:7639: checking how to run the C preprocessor" >&5 |
10f2d63a VZ |
7639 | # On Suns, sometimes $CPP names a directory. |
7640 | if test -n "$CPP" && test -d "$CPP"; then | |
7641 | CPP= | |
7642 | fi | |
7643 | if test -z "$CPP"; then | |
698dcdb6 VZ |
7644 | if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then |
7645 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7646 | else | |
7647 | # This must be in double quotes, not single quotes, because CPP may get | |
7648 | # substituted into the Makefile and "${CC-cc}" will confuse make. | |
7649 | CPP="${CC-cc} -E" | |
10f2d63a | 7650 | # On the NeXT, cc -E runs the code through the compiler's parser, |
698dcdb6 VZ |
7651 | # not just through cpp. |
7652 | cat > conftest.$ac_ext <<EOF | |
d73be714 | 7653 | #line 7654 "configure" |
10f2d63a VZ |
7654 | #include "confdefs.h" |
7655 | #include <assert.h> | |
698dcdb6 VZ |
7656 | Syntax Error |
7657 | EOF | |
7658 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
d73be714 | 7659 | { (eval echo configure:7660: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
7660 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
7661 | if test -z "$ac_err"; then | |
10f2d63a VZ |
7662 | : |
7663 | else | |
698dcdb6 VZ |
7664 | echo "$ac_err" >&5 |
7665 | echo "configure: failed program was:" >&5 | |
10f2d63a | 7666 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
7667 | rm -rf conftest* |
7668 | CPP="${CC-cc} -E -traditional-cpp" | |
7669 | cat > conftest.$ac_ext <<EOF | |
d73be714 | 7670 | #line 7671 "configure" |
10f2d63a | 7671 | #include "confdefs.h" |
698dcdb6 VZ |
7672 | #include <assert.h> |
7673 | Syntax Error | |
7674 | EOF | |
7675 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
d73be714 | 7676 | { (eval echo configure:7677: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
7677 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
7678 | if test -z "$ac_err"; then | |
7679 | : | |
10f2d63a | 7680 | else |
698dcdb6 VZ |
7681 | echo "$ac_err" >&5 |
7682 | echo "configure: failed program was:" >&5 | |
10f2d63a | 7683 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
7684 | rm -rf conftest* |
7685 | CPP="${CC-cc} -nologo -E" | |
7686 | cat > conftest.$ac_ext <<EOF | |
d73be714 | 7687 | #line 7688 "configure" |
10f2d63a VZ |
7688 | #include "confdefs.h" |
7689 | #include <assert.h> | |
698dcdb6 VZ |
7690 | Syntax Error |
7691 | EOF | |
7692 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
d73be714 | 7693 | { (eval echo configure:7694: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
7694 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
7695 | if test -z "$ac_err"; then | |
10f2d63a VZ |
7696 | : |
7697 | else | |
698dcdb6 VZ |
7698 | echo "$ac_err" >&5 |
7699 | echo "configure: failed program was:" >&5 | |
10f2d63a | 7700 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
7701 | rm -rf conftest* |
7702 | CPP=/lib/cpp | |
10f2d63a | 7703 | fi |
698dcdb6 | 7704 | rm -f conftest* |
10f2d63a | 7705 | fi |
698dcdb6 | 7706 | rm -f conftest* |
703e0a69 | 7707 | fi |
698dcdb6 VZ |
7708 | rm -f conftest* |
7709 | ac_cv_prog_CPP="$CPP" | |
7710 | fi | |
7711 | CPP="$ac_cv_prog_CPP" | |
10f2d63a | 7712 | else |
698dcdb6 | 7713 | ac_cv_prog_CPP="$CPP" |
10f2d63a | 7714 | fi |
698dcdb6 | 7715 | echo "$ac_t""$CPP" 1>&6 |
10f2d63a VZ |
7716 | |
7717 | ||
698dcdb6 VZ |
7718 | if test $ac_cv_prog_gcc = yes; then |
7719 | echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6 | |
d73be714 | 7720 | echo "configure:7721: checking whether ${CC-cc} needs -traditional" >&5 |
698dcdb6 VZ |
7721 | if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then |
7722 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a VZ |
7723 | else |
7724 | ac_pattern="Autoconf.*'x'" | |
698dcdb6 | 7725 | cat > conftest.$ac_ext <<EOF |
d73be714 | 7726 | #line 7727 "configure" |
10f2d63a VZ |
7727 | #include "confdefs.h" |
7728 | #include <sgtty.h> | |
7729 | Autoconf TIOCGETP | |
698dcdb6 | 7730 | EOF |
10f2d63a VZ |
7731 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
7732 | egrep "$ac_pattern" >/dev/null 2>&1; then | |
698dcdb6 | 7733 | rm -rf conftest* |
10f2d63a VZ |
7734 | ac_cv_prog_gcc_traditional=yes |
7735 | else | |
698dcdb6 | 7736 | rm -rf conftest* |
10f2d63a VZ |
7737 | ac_cv_prog_gcc_traditional=no |
7738 | fi | |
7739 | rm -f conftest* | |
7740 | ||
698dcdb6 | 7741 | |
10f2d63a | 7742 | if test $ac_cv_prog_gcc_traditional = no; then |
698dcdb6 | 7743 | cat > conftest.$ac_ext <<EOF |
d73be714 | 7744 | #line 7745 "configure" |
10f2d63a VZ |
7745 | #include "confdefs.h" |
7746 | #include <termio.h> | |
7747 | Autoconf TCGETA | |
698dcdb6 | 7748 | EOF |
10f2d63a VZ |
7749 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
7750 | egrep "$ac_pattern" >/dev/null 2>&1; then | |
698dcdb6 | 7751 | rm -rf conftest* |
10f2d63a VZ |
7752 | ac_cv_prog_gcc_traditional=yes |
7753 | fi | |
7754 | rm -f conftest* | |
7755 | ||
7756 | fi | |
7757 | fi | |
698dcdb6 VZ |
7758 | |
7759 | echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6 | |
10f2d63a VZ |
7760 | if test $ac_cv_prog_gcc_traditional = yes; then |
7761 | CC="$CC -traditional" | |
7762 | fi | |
7763 | fi | |
7764 | ||
703e0a69 | 7765 | |
698dcdb6 VZ |
7766 | |
7767 | ac_ext=C | |
7768 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
1e487827 | 7769 | ac_cpp='$CXXCPP $CPPFLAGS' |
698dcdb6 VZ |
7770 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
7771 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
7772 | cross_compiling=$ac_cv_prog_cxx_cross | |
7773 | ||
7774 | ||
7775 | for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl | |
7776 | do | |
7777 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
7778 | set dummy $ac_prog; ac_word=$2 | |
7779 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
d73be714 | 7780 | echo "configure:7781: checking for $ac_word" >&5 |
698dcdb6 VZ |
7781 | if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then |
7782 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a VZ |
7783 | else |
7784 | if test -n "$CXX"; then | |
7785 | ac_cv_prog_CXX="$CXX" # Let the user override the test. | |
7786 | else | |
698dcdb6 VZ |
7787 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
7788 | ac_dummy="$PATH" | |
7789 | for ac_dir in $ac_dummy; do | |
7790 | test -z "$ac_dir" && ac_dir=. | |
7791 | if test -f $ac_dir/$ac_word; then | |
7792 | ac_cv_prog_CXX="$ac_prog" | |
7793 | break | |
7794 | fi | |
7795 | done | |
7796 | IFS="$ac_save_ifs" | |
10f2d63a VZ |
7797 | fi |
7798 | fi | |
698dcdb6 | 7799 | CXX="$ac_cv_prog_CXX" |
10f2d63a | 7800 | if test -n "$CXX"; then |
698dcdb6 | 7801 | echo "$ac_t""$CXX" 1>&6 |
10f2d63a | 7802 | else |
698dcdb6 | 7803 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
7804 | fi |
7805 | ||
698dcdb6 | 7806 | test -n "$CXX" && break |
10f2d63a | 7807 | done |
698dcdb6 | 7808 | test -n "$CXX" || CXX="gcc" |
10f2d63a VZ |
7809 | |
7810 | ||
698dcdb6 | 7811 | echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6 |
d73be714 | 7812 | echo "configure:7813: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5 |
10f2d63a | 7813 | |
698dcdb6 VZ |
7814 | ac_ext=C |
7815 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
7816 | ac_cpp='$CXXCPP $CPPFLAGS' | |
7817 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
7818 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
7819 | cross_compiling=$ac_cv_prog_cxx_cross | |
703e0a69 | 7820 | |
698dcdb6 VZ |
7821 | cat > conftest.$ac_ext << EOF |
7822 | ||
d73be714 | 7823 | #line 7824 "configure" |
10f2d63a VZ |
7824 | #include "confdefs.h" |
7825 | ||
698dcdb6 VZ |
7826 | int main(){return(0);} |
7827 | EOF | |
d73be714 | 7828 | if { (eval echo configure:7829: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
7829 | ac_cv_prog_cxx_works=yes |
7830 | # If we can't run a trivial program, we are probably using a cross compiler. | |
7831 | if (./conftest; exit) 2>/dev/null; then | |
7832 | ac_cv_prog_cxx_cross=no | |
7833 | else | |
7834 | ac_cv_prog_cxx_cross=yes | |
7835 | fi | |
7836 | else | |
7837 | echo "configure: failed program was:" >&5 | |
7838 | cat conftest.$ac_ext >&5 | |
7839 | ac_cv_prog_cxx_works=no | |
7840 | fi | |
7841 | rm -fr conftest* | |
7842 | ac_ext=C | |
7843 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
7844 | ac_cpp='$CXXCPP $CPPFLAGS' | |
7845 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
7846 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
7847 | cross_compiling=$ac_cv_prog_cxx_cross | |
7848 | ||
7849 | echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6 | |
7850 | if test $ac_cv_prog_cxx_works = no; then | |
7851 | { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; } | |
7852 | fi | |
7853 | echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 | |
d73be714 | 7854 | echo "configure:7855: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5 |
698dcdb6 VZ |
7855 | echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6 |
7856 | cross_compiling=$ac_cv_prog_cxx_cross | |
7857 | ||
7858 | echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6 | |
d73be714 | 7859 | echo "configure:7860: checking whether we are using GNU C++" >&5 |
698dcdb6 VZ |
7860 | if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then |
7861 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7862 | else | |
7863 | cat > conftest.C <<EOF | |
7864 | #ifdef __GNUC__ | |
7865 | yes; | |
10f2d63a | 7866 | #endif |
698dcdb6 | 7867 | EOF |
d73be714 | 7868 | if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:7869: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then |
698dcdb6 VZ |
7869 | ac_cv_prog_gxx=yes |
7870 | else | |
7871 | ac_cv_prog_gxx=no | |
7872 | fi | |
7873 | fi | |
10f2d63a | 7874 | |
698dcdb6 | 7875 | echo "$ac_t""$ac_cv_prog_gxx" 1>&6 |
10f2d63a | 7876 | |
698dcdb6 VZ |
7877 | if test $ac_cv_prog_gxx = yes; then |
7878 | GXX=yes | |
7879 | else | |
7880 | GXX= | |
7881 | fi | |
10f2d63a | 7882 | |
698dcdb6 VZ |
7883 | ac_test_CXXFLAGS="${CXXFLAGS+set}" |
7884 | ac_save_CXXFLAGS="$CXXFLAGS" | |
7885 | CXXFLAGS= | |
7886 | echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6 | |
d73be714 | 7887 | echo "configure:7888: checking whether ${CXX-g++} accepts -g" >&5 |
698dcdb6 VZ |
7888 | if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then |
7889 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7890 | else | |
7891 | echo 'void f(){}' > conftest.cc | |
7892 | if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then | |
10f2d63a VZ |
7893 | ac_cv_prog_cxx_g=yes |
7894 | else | |
698dcdb6 | 7895 | ac_cv_prog_cxx_g=no |
10f2d63a | 7896 | fi |
698dcdb6 VZ |
7897 | rm -f conftest* |
7898 | ||
10f2d63a | 7899 | fi |
698dcdb6 VZ |
7900 | |
7901 | echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6 | |
10f2d63a | 7902 | if test "$ac_test_CXXFLAGS" = set; then |
698dcdb6 | 7903 | CXXFLAGS="$ac_save_CXXFLAGS" |
10f2d63a VZ |
7904 | elif test $ac_cv_prog_cxx_g = yes; then |
7905 | if test "$GXX" = yes; then | |
7906 | CXXFLAGS="-g -O2" | |
7907 | else | |
7908 | CXXFLAGS="-g" | |
7909 | fi | |
7910 | else | |
7911 | if test "$GXX" = yes; then | |
7912 | CXXFLAGS="-O2" | |
7913 | else | |
7914 | CXXFLAGS= | |
7915 | fi | |
7916 | fi | |
7917 | ||
7918 | ||
698dcdb6 | 7919 | echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6 |
d73be714 | 7920 | echo "configure:7921: checking how to run the C++ preprocessor" >&5 |
1e487827 | 7921 | if test -z "$CXXCPP"; then |
698dcdb6 VZ |
7922 | if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then |
7923 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1e487827 | 7924 | else |
698dcdb6 VZ |
7925 | ac_ext=C |
7926 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
7927 | ac_cpp='$CXXCPP $CPPFLAGS' | |
7928 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
7929 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
7930 | cross_compiling=$ac_cv_prog_cxx_cross | |
7931 | CXXCPP="${CXX-g++} -E" | |
7932 | cat > conftest.$ac_ext <<EOF | |
d73be714 | 7933 | #line 7934 "configure" |
1e487827 | 7934 | #include "confdefs.h" |
698dcdb6 VZ |
7935 | #include <stdlib.h> |
7936 | EOF | |
7937 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
d73be714 | 7938 | { (eval echo configure:7939: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
7939 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
7940 | if test -z "$ac_err"; then | |
1e487827 VS |
7941 | : |
7942 | else | |
698dcdb6 VZ |
7943 | echo "$ac_err" >&5 |
7944 | echo "configure: failed program was:" >&5 | |
1e487827 | 7945 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
7946 | rm -rf conftest* |
7947 | CXXCPP=/lib/cpp | |
1e487827 | 7948 | fi |
698dcdb6 VZ |
7949 | rm -f conftest* |
7950 | ac_cv_prog_CXXCPP="$CXXCPP" | |
7951 | ac_ext=C | |
7952 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
7953 | ac_cpp='$CXXCPP $CPPFLAGS' | |
7954 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
7955 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
7956 | cross_compiling=$ac_cv_prog_cxx_cross | |
1e487827 | 7957 | fi |
1e487827 | 7958 | fi |
698dcdb6 VZ |
7959 | CXXCPP="$ac_cv_prog_CXXCPP" |
7960 | echo "$ac_t""$CXXCPP" 1>&6 | |
1e487827 | 7961 | |
10f2d63a VZ |
7962 | |
7963 | CXXFLAGS=`echo "$CXXFLAGS" | sed 's/-g//g'` | |
7964 | ||
7965 | ac_ext=c | |
698dcdb6 | 7966 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
10f2d63a | 7967 | ac_cpp='$CPP $CPPFLAGS' |
698dcdb6 VZ |
7968 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
7969 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
7970 | cross_compiling=$ac_cv_prog_cc_cross | |
7971 | ||
7972 | ||
7973 | # Extract the first word of "ranlib", so it can be a program name with args. | |
7974 | set dummy ranlib; ac_word=$2 | |
7975 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
d73be714 | 7976 | echo "configure:7977: checking for $ac_word" >&5 |
698dcdb6 VZ |
7977 | if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then |
7978 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a VZ |
7979 | else |
7980 | if test -n "$RANLIB"; then | |
7981 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
7982 | else | |
698dcdb6 VZ |
7983 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
7984 | ac_dummy="$PATH" | |
7985 | for ac_dir in $ac_dummy; do | |
7986 | test -z "$ac_dir" && ac_dir=. | |
7987 | if test -f $ac_dir/$ac_word; then | |
7988 | ac_cv_prog_RANLIB="ranlib" | |
7989 | break | |
7990 | fi | |
7991 | done | |
7992 | IFS="$ac_save_ifs" | |
7993 | test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":" | |
10f2d63a VZ |
7994 | fi |
7995 | fi | |
698dcdb6 | 7996 | RANLIB="$ac_cv_prog_RANLIB" |
10f2d63a | 7997 | if test -n "$RANLIB"; then |
698dcdb6 | 7998 | echo "$ac_t""$RANLIB" 1>&6 |
10f2d63a | 7999 | else |
698dcdb6 | 8000 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
8001 | fi |
8002 | ||
8003 | ||
8004 | # Extract the first word of "ar", so it can be a program name with args. | |
8005 | set dummy ar; ac_word=$2 | |
698dcdb6 | 8006 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
d73be714 | 8007 | echo "configure:8008: checking for $ac_word" >&5 |
698dcdb6 VZ |
8008 | if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then |
8009 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a VZ |
8010 | else |
8011 | if test -n "$AR"; then | |
8012 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
8013 | else | |
698dcdb6 VZ |
8014 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
8015 | ac_dummy="$PATH" | |
8016 | for ac_dir in $ac_dummy; do | |
8017 | test -z "$ac_dir" && ac_dir=. | |
8018 | if test -f $ac_dir/$ac_word; then | |
8019 | ac_cv_prog_AR="ar" | |
8020 | break | |
8021 | fi | |
8022 | done | |
8023 | IFS="$ac_save_ifs" | |
10f2d63a VZ |
8024 | test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar" |
8025 | fi | |
8026 | fi | |
698dcdb6 | 8027 | AR="$ac_cv_prog_AR" |
10f2d63a | 8028 | if test -n "$AR"; then |
698dcdb6 | 8029 | echo "$ac_t""$AR" 1>&6 |
10f2d63a | 8030 | else |
698dcdb6 | 8031 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
8032 | fi |
8033 | ||
698dcdb6 | 8034 | |
10f2d63a VZ |
8035 | # Find a good install program. We prefer a C program (faster), |
8036 | # so one script is as good as another. But avoid the broken or | |
8037 | # incompatible versions: | |
8038 | # SysV /etc/install, /usr/sbin/install | |
8039 | # SunOS /usr/etc/install | |
8040 | # IRIX /sbin/install | |
8041 | # AIX /bin/install | |
8042 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
8043 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
8044 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
8045 | # ./install, which can be erroneously created by make from ./install.sh. | |
698dcdb6 | 8046 | echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 |
d73be714 | 8047 | echo "configure:8048: checking for a BSD compatible install" >&5 |
10f2d63a | 8048 | if test -z "$INSTALL"; then |
698dcdb6 VZ |
8049 | if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then |
8050 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 8051 | else |
698dcdb6 | 8052 | IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":" |
10f2d63a VZ |
8053 | for ac_dir in $PATH; do |
8054 | # Account for people who put trailing slashes in PATH elements. | |
698dcdb6 VZ |
8055 | case "$ac_dir/" in |
8056 | /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;; | |
10f2d63a VZ |
8057 | *) |
8058 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
8059 | # Don't use installbsd from OSF since it installs stuff as root | |
8060 | # by default. | |
8061 | for ac_prog in ginstall scoinst install; do | |
698dcdb6 | 8062 | if test -f $ac_dir/$ac_prog; then |
10f2d63a | 8063 | if test $ac_prog = install && |
698dcdb6 | 8064 | grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then |
10f2d63a VZ |
8065 | # AIX install. It has an incompatible calling convention. |
8066 | : | |
8067 | else | |
8068 | ac_cv_path_install="$ac_dir/$ac_prog -c" | |
8069 | break 2 | |
8070 | fi | |
8071 | fi | |
8072 | done | |
8073 | ;; | |
8074 | esac | |
8075 | done | |
698dcdb6 | 8076 | IFS="$ac_save_IFS" |
10f2d63a VZ |
8077 | |
8078 | fi | |
8079 | if test "${ac_cv_path_install+set}" = set; then | |
698dcdb6 | 8080 | INSTALL="$ac_cv_path_install" |
10f2d63a VZ |
8081 | else |
8082 | # As a last resort, use the slow shell script. We don't cache a | |
8083 | # path for INSTALL within a source directory, because that will | |
8084 | # break other packages using the cache if that directory is | |
8085 | # removed, or if the path is relative. | |
698dcdb6 | 8086 | INSTALL="$ac_install_sh" |
10f2d63a VZ |
8087 | fi |
8088 | fi | |
698dcdb6 | 8089 | echo "$ac_t""$INSTALL" 1>&6 |
10f2d63a VZ |
8090 | |
8091 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
8092 | # It thinks the first close brace ends the variable substitution. | |
8093 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
8094 | ||
698dcdb6 | 8095 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}' |
10f2d63a VZ |
8096 | |
8097 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
8098 | ||
698dcdb6 | 8099 | |
10f2d63a VZ |
8100 | # Extract the first word of "strip", so it can be a program name with args. |
8101 | set dummy strip; ac_word=$2 | |
698dcdb6 | 8102 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
d73be714 | 8103 | echo "configure:8104: checking for $ac_word" >&5 |
698dcdb6 VZ |
8104 | if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then |
8105 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a VZ |
8106 | else |
8107 | if test -n "$STRIP"; then | |
8108 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
8109 | else | |
698dcdb6 VZ |
8110 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
8111 | ac_dummy="$PATH" | |
8112 | for ac_dir in $ac_dummy; do | |
8113 | test -z "$ac_dir" && ac_dir=. | |
8114 | if test -f $ac_dir/$ac_word; then | |
8115 | ac_cv_prog_STRIP="strip" | |
8116 | break | |
8117 | fi | |
8118 | done | |
8119 | IFS="$ac_save_ifs" | |
10f2d63a VZ |
8120 | test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="true" |
8121 | fi | |
8122 | fi | |
698dcdb6 | 8123 | STRIP="$ac_cv_prog_STRIP" |
10f2d63a | 8124 | if test -n "$STRIP"; then |
698dcdb6 | 8125 | echo "$ac_t""$STRIP" 1>&6 |
10f2d63a | 8126 | else |
698dcdb6 | 8127 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
8128 | fi |
8129 | ||
698dcdb6 VZ |
8130 | |
8131 | echo $ac_n "checking make for VPATH support""... $ac_c" 1>&6 | |
d73be714 | 8132 | echo "configure:8133: checking make for VPATH support" >&5 |
10f2d63a VZ |
8133 | cat - << EOF > confMake |
8134 | check : file | |
8135 | cp \$? \$@ | |
8136 | cp \$? final_file | |
8137 | EOF | |
8138 | ||
8139 | if test ! -d sub ; then | |
8140 | mkdir sub | |
8141 | fi | |
8142 | echo dummy > sub/file | |
f6bcfd97 | 8143 | ${MAKE-make} -f confMake VPATH=sub 2>&5 > /dev/null |
10f2d63a VZ |
8144 | RESULT=$? |
8145 | rm -f sub/file check final_file confMake | |
8146 | rmdir sub | |
8147 | if test "$RESULT" = 0; then | |
698dcdb6 | 8148 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 8149 | else |
698dcdb6 VZ |
8150 | echo "$ac_t""no" 1>&6 |
8151 | { echo "configure: error: | |
1e487827 VS |
8152 | You need a make-utility that is able to use the variable |
8153 | VPATH correctly. | |
8154 | If your version of make does not support VPATH correctly, | |
8155 | please install GNU-make (possibly as gmake), and start | |
8156 | configure with the following command: | |
8157 | export MAKE=gmake; ./configure for sh-type shells | |
8158 | setenv MAKE gmake; ./configure for csh-type shells | |
8159 | Also please do remember to use gmake in this case every time | |
8160 | you are trying to compile. | |
698dcdb6 | 8161 | " 1>&2; exit 1; } |
10f2d63a VZ |
8162 | fi |
8163 | ||
8164 | for ac_prog in 'bison -y' byacc | |
8165 | do | |
698dcdb6 | 8166 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
10f2d63a | 8167 | set dummy $ac_prog; ac_word=$2 |
698dcdb6 | 8168 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
d73be714 | 8169 | echo "configure:8170: checking for $ac_word" >&5 |
698dcdb6 VZ |
8170 | if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then |
8171 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a VZ |
8172 | else |
8173 | if test -n "$YACC"; then | |
8174 | ac_cv_prog_YACC="$YACC" # Let the user override the test. | |
8175 | else | |
698dcdb6 VZ |
8176 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
8177 | ac_dummy="$PATH" | |
8178 | for ac_dir in $ac_dummy; do | |
8179 | test -z "$ac_dir" && ac_dir=. | |
8180 | if test -f $ac_dir/$ac_word; then | |
8181 | ac_cv_prog_YACC="$ac_prog" | |
8182 | break | |
8183 | fi | |
8184 | done | |
8185 | IFS="$ac_save_ifs" | |
10f2d63a VZ |
8186 | fi |
8187 | fi | |
698dcdb6 | 8188 | YACC="$ac_cv_prog_YACC" |
10f2d63a | 8189 | if test -n "$YACC"; then |
698dcdb6 | 8190 | echo "$ac_t""$YACC" 1>&6 |
10f2d63a | 8191 | else |
698dcdb6 | 8192 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
8193 | fi |
8194 | ||
698dcdb6 | 8195 | test -n "$YACC" && break |
10f2d63a VZ |
8196 | done |
8197 | test -n "$YACC" || YACC="yacc" | |
8198 | ||
698dcdb6 VZ |
8199 | |
8200 | # Extract the first word of "flex", so it can be a program name with args. | |
8201 | set dummy flex; ac_word=$2 | |
8202 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
d73be714 | 8203 | echo "configure:8204: checking for $ac_word" >&5 |
698dcdb6 VZ |
8204 | if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then |
8205 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a VZ |
8206 | else |
8207 | if test -n "$LEX"; then | |
8208 | ac_cv_prog_LEX="$LEX" # Let the user override the test. | |
8209 | else | |
698dcdb6 VZ |
8210 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
8211 | ac_dummy="$PATH" | |
8212 | for ac_dir in $ac_dummy; do | |
8213 | test -z "$ac_dir" && ac_dir=. | |
8214 | if test -f $ac_dir/$ac_word; then | |
8215 | ac_cv_prog_LEX="flex" | |
8216 | break | |
8217 | fi | |
8218 | done | |
8219 | IFS="$ac_save_ifs" | |
8220 | test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex" | |
10f2d63a VZ |
8221 | fi |
8222 | fi | |
698dcdb6 | 8223 | LEX="$ac_cv_prog_LEX" |
10f2d63a | 8224 | if test -n "$LEX"; then |
698dcdb6 | 8225 | echo "$ac_t""$LEX" 1>&6 |
10f2d63a | 8226 | else |
698dcdb6 | 8227 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
8228 | fi |
8229 | ||
8230 | if test -z "$LEXLIB" | |
8231 | then | |
698dcdb6 VZ |
8232 | case "$LEX" in |
8233 | flex*) ac_lib=fl ;; | |
8234 | *) ac_lib=l ;; | |
8235 | esac | |
8236 | echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6 | |
d73be714 | 8237 | echo "configure:8238: checking for yywrap in -l$ac_lib" >&5 |
698dcdb6 VZ |
8238 | ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'` |
8239 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
8240 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8241 | else | |
8242 | ac_save_LIBS="$LIBS" | |
8243 | LIBS="-l$ac_lib $LIBS" | |
8244 | cat > conftest.$ac_ext <<EOF | |
d73be714 | 8245 | #line 8246 "configure" |
10f2d63a VZ |
8246 | #include "confdefs.h" |
8247 | /* Override any gcc2 internal prototype to avoid an error. */ | |
8248 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
8249 | builtin and then its argument prototype would still apply. */ |
8250 | char yywrap(); | |
10f2d63a | 8251 | |
698dcdb6 VZ |
8252 | int main() { |
8253 | yywrap() | |
8254 | ; return 0; } | |
8255 | EOF | |
d73be714 | 8256 | if { (eval echo configure:8257: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
8257 | rm -rf conftest* |
8258 | eval "ac_cv_lib_$ac_lib_var=yes" | |
10f2d63a | 8259 | else |
698dcdb6 VZ |
8260 | echo "configure: failed program was:" >&5 |
8261 | cat conftest.$ac_ext >&5 | |
8262 | rm -rf conftest* | |
8263 | eval "ac_cv_lib_$ac_lib_var=no" | |
10f2d63a | 8264 | fi |
698dcdb6 VZ |
8265 | rm -f conftest* |
8266 | LIBS="$ac_save_LIBS" | |
8267 | ||
10f2d63a | 8268 | fi |
698dcdb6 VZ |
8269 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
8270 | echo "$ac_t""yes" 1>&6 | |
8271 | LEXLIB="-l$ac_lib" | |
8272 | else | |
8273 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
8274 | fi |
8275 | ||
8276 | fi | |
8277 | ||
8278 | ||
698dcdb6 | 8279 | echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6 |
d73be714 | 8280 | echo "configure:8281: checking whether ln -s works" >&5 |
698dcdb6 VZ |
8281 | if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then |
8282 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 8283 | else |
698dcdb6 VZ |
8284 | rm -f conftestdata |
8285 | if ln -s X conftestdata 2>/dev/null | |
8286 | then | |
8287 | rm -f conftestdata | |
8288 | ac_cv_prog_LN_S="ln -s" | |
10f2d63a | 8289 | else |
698dcdb6 | 8290 | ac_cv_prog_LN_S=ln |
10f2d63a VZ |
8291 | fi |
8292 | fi | |
698dcdb6 VZ |
8293 | LN_S="$ac_cv_prog_LN_S" |
8294 | if test "$ac_cv_prog_LN_S" = "ln -s"; then | |
8295 | echo "$ac_t""yes" 1>&6 | |
10f2d63a | 8296 | else |
698dcdb6 | 8297 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
8298 | fi |
8299 | ||
8300 | ||
8301 | ||
8302 | SEARCH_INCLUDE="\ | |
8303 | /usr/local/include \ | |
8304 | \ | |
8305 | /usr/Motif-1.2/include \ | |
8306 | /usr/Motif-2.1/include \ | |
8307 | \ | |
8308 | /usr/include/Motif1.2 \ | |
8309 | /opt/xpm/include/X11 \ | |
8310 | /opt/GBxpm/include/ \ | |
8311 | /opt/GBxpm/X11/include/ \ | |
8312 | \ | |
8313 | /usr/Motif1.2/include \ | |
8314 | /usr/dt/include \ | |
afc31813 VZ |
8315 | /usr/openwin/include \ |
8316 | \ | |
10f2d63a VZ |
8317 | /usr/include/Xm \ |
8318 | \ | |
8319 | /usr/X11R6/include \ | |
afc31813 | 8320 | /usr/X11R6.4/include \ |
10f2d63a VZ |
8321 | /usr/X11R5/include \ |
8322 | /usr/X11R4/include \ | |
8323 | \ | |
10f2d63a VZ |
8324 | /usr/include/X11R6 \ |
8325 | /usr/include/X11R5 \ | |
8326 | /usr/include/X11R4 \ | |
8327 | \ | |
8328 | /usr/local/X11R6/include \ | |
8329 | /usr/local/X11R5/include \ | |
8330 | /usr/local/X11R4/include \ | |
8331 | \ | |
8332 | /usr/local/include/X11R6 \ | |
8333 | /usr/local/include/X11R5 \ | |
8334 | /usr/local/include/X11R4 \ | |
8335 | \ | |
8336 | /usr/X11/include \ | |
8337 | /usr/include/X11 \ | |
8338 | /usr/local/X11/include \ | |
8339 | /usr/local/include/X11 \ | |
8340 | \ | |
8341 | /usr/X386/include \ | |
8342 | /usr/x386/include \ | |
8343 | /usr/XFree86/include/X11 \ | |
8344 | \ | |
cf27ef00 | 8345 | X:/XFree86/include \ |
ec14dd32 VZ |
8346 | X:/XFree86/include/X11 \ |
8347 | \ | |
10f2d63a VZ |
8348 | /usr/include/gtk \ |
8349 | /usr/local/include/gtk \ | |
8350 | /usr/include/glib \ | |
8351 | /usr/local/include/glib \ | |
8352 | \ | |
8353 | /usr/include/qt \ | |
8354 | /usr/local/include/qt \ | |
8355 | \ | |
8356 | /usr/include/windows \ | |
8357 | /usr/include/wine \ | |
8358 | /usr/local/include/wine \ | |
8359 | \ | |
8360 | /usr/unsupported/include \ | |
8361 | /usr/athena/include \ | |
8362 | /usr/local/x11r5/include \ | |
8363 | /usr/lpp/Xamples/include \ | |
8364 | \ | |
10f2d63a | 8365 | /usr/openwin/share/include \ |
928b5c08 VZ |
8366 | \ |
8367 | /usr/include" | |
10f2d63a VZ |
8368 | |
8369 | SEARCH_LIB="`echo "$SEARCH_INCLUDE" | sed s/include/lib/g` " | |
8370 | ||
698dcdb6 VZ |
8371 | |
8372 | cat > confcache <<\EOF | |
10f2d63a VZ |
8373 | # This file is a shell script that caches the results of configure |
8374 | # tests run on this system so they can be shared between configure | |
698dcdb6 VZ |
8375 | # scripts and configure runs. It is not useful on other systems. |
8376 | # If it contains results you don't want to keep, you may remove or edit it. | |
10f2d63a | 8377 | # |
698dcdb6 VZ |
8378 | # By default, configure uses ./config.cache as the cache file, |
8379 | # creating it if it does not exist already. You can give configure | |
8380 | # the --cache-file=FILE option to use a different cache file; that is | |
8381 | # what configure does when it calls configure scripts in | |
8382 | # subdirectories, so they share the cache. | |
8383 | # Giving --cache-file=/dev/null disables caching, for debugging configure. | |
8384 | # config.status only pays attention to the cache file if you give it the | |
8385 | # --recheck option to rerun configure. | |
10f2d63a | 8386 | # |
698dcdb6 | 8387 | EOF |
10f2d63a VZ |
8388 | # The following way of writing the cache mishandles newlines in values, |
8389 | # but we know of no workaround that is simple, portable, and efficient. | |
8390 | # So, don't put newlines in cache variables' values. | |
8391 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
8392 | # and sets the high bit in the cache file unless we assign to the vars. | |
698dcdb6 VZ |
8393 | (set) 2>&1 | |
8394 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
8395 | *ac_space=\ *) | |
8396 | # `set' does not quote correctly, so add quotes (double-quote substitution | |
8397 | # turns \\\\ into \\, and sed turns \\ into \). | |
8398 | sed -n \ | |
8399 | -e "s/'/'\\\\''/g" \ | |
8400 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" | |
8401 | ;; | |
8402 | *) | |
8403 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
8404 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' | |
8405 | ;; | |
8406 | esac >> confcache | |
8407 | if cmp -s $cache_file confcache; then | |
8408 | : | |
8409 | else | |
10f2d63a | 8410 | if test -w $cache_file; then |
698dcdb6 VZ |
8411 | echo "updating cache $cache_file" |
8412 | cat confcache > $cache_file | |
10f2d63a VZ |
8413 | else |
8414 | echo "not updating unwritable cache $cache_file" | |
8415 | fi | |
8416 | fi | |
8417 | rm -f confcache | |
8418 | ||
698dcdb6 VZ |
8419 | |
8420 | ||
dad6c0ea VZ |
8421 | AFMINSTALL= |
8422 | ||
10f2d63a | 8423 | if test "$wxUSE_GUI" = "yes"; then |
1e6feb95 | 8424 | USE_GUI=1 |
10f2d63a | 8425 | |
1e6feb95 VZ |
8426 | TOOLKIT= |
8427 | TOOLKIT_INCLUDE= | |
10f2d63a | 8428 | |
1e6feb95 VZ |
8429 | GUI_TK_LIBRARY= |
8430 | GUI_TK_LINK= | |
10f2d63a | 8431 | |
1e6feb95 VZ |
8432 | WXGTK12= |
8433 | WXGTK127= | |
8434 | WXGTK20= | |
10f2d63a | 8435 | |
1e6feb95 | 8436 | WXWINE= |
10f2d63a | 8437 | |
1e6feb95 VZ |
8438 | if test "$wxUSE_CYGWIN" = 1 || test "$wxUSE_MINGW" = 1 ; then |
8439 | if test "$cross_compiling" = "yes" ; then | |
8440 | echo "configure: warning: skipping windows.h check for cross-compilation" 1>&2 | |
8441 | else | |
8442 | echo $ac_n "checking for Windows headers""... $ac_c" 1>&6 | |
d73be714 | 8443 | echo "configure:8444: checking for Windows headers" >&5 |
1e6feb95 | 8444 | |
10f2d63a VZ |
8445 | ac_find_includes= |
8446 | for ac_dir in $SEARCH_INCLUDE; | |
8447 | do | |
8448 | if test -f "$ac_dir/windows.h"; then | |
8449 | ac_find_includes=$ac_dir | |
8450 | break | |
8451 | fi | |
8452 | done | |
8453 | ||
1e6feb95 VZ |
8454 | if test "$ac_find_includes" != "" ; then |
8455 | echo "$ac_t""found $ac_find_includes" 1>&6 | |
8456 | TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE -I$ac_find_includes" | |
8457 | else | |
8458 | echo "$ac_t""no" 1>&6 | |
8459 | { echo "configure: error: please set CFLAGS to contain the location of windows.h" 1>&2; exit 1; } | |
8460 | fi | |
10f2d63a | 8461 | fi |
10f2d63a | 8462 | |
1e6feb95 VZ |
8463 | INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS msw" |
8464 | LIBS="$LIBS -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lwinspool -lwinmm -lshell32 -lcomctl32 -lctl3d32 -lcrtdll -ladvapi32 -lwsock32" | |
f6bcfd97 | 8465 | |
1e6feb95 VZ |
8466 | if test "$wxUSE_ODBC" = "yes" ; then |
8467 | LIBS="$LIBS -lodbc32 -lole32 -loleaut32" | |
8468 | fi | |
10f2d63a | 8469 | |
1e6feb95 VZ |
8470 | if test "$wxUSE_MINGW" = 1; then |
8471 | LDFLAGS="$LDFLAGS -mwindows" | |
8472 | fi | |
32832908 | 8473 | |
1e6feb95 VZ |
8474 | TOOLKIT=MSW |
8475 | GUIDIST=MSW_DIST | |
32832908 | 8476 | |
1e6feb95 VZ |
8477 | RCINCSWITCH="--include-dir" |
8478 | RCDEFSWITCH="--define" | |
8479 | RCPREPROCESSOR="--preprocessor \"\$(CC) -c -E -xc-header -DRC_INVOKED\"" | |
8480 | RCINPUTSWITCH="-i" | |
8481 | RCOUTPUTSWITCH="-o" | |
8482 | RESFLAGS="$RCPREPROCESSOR $RCINCSWITCH \$(top_srcdir)/include $RCINCSWITCH \$(top_srcdir)/\$(program_dir) $RCDEFSWITCH __WIN32__ $RCDEFSWITCH __WIN95__ $RCDEFSWITCH __GNUWIN32__" | |
32832908 | 8483 | |
1e6feb95 VZ |
8484 | RESPROGRAM="\$(RES_PROGRAM)" |
8485 | fi | |
10f2d63a | 8486 | |
1e6feb95 | 8487 | if test "$wxUSE_GTK" = 1; then |
8168de4c | 8488 | echo $ac_n "checking for GTK+ version""... $ac_c" 1>&6 |
d73be714 | 8489 | echo "configure:8490: checking for GTK+ version" >&5 |
8168de4c VZ |
8490 | |
8491 | gtk_version_cached=1 | |
8492 | if eval "test \"`echo '$''{'wx_cv_lib_gtk'+set}'`\" = set"; then | |
8493 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8494 | else | |
8495 | ||
8496 | gtk_version_cached=0 | |
8497 | echo "$ac_t""""" 1>&6 | |
8498 | ||
8499 | wx_cv_lib_gtk= | |
8500 | if test "x$wxUSE_GTK2" = "xyes"; then | |
8501 | # Check whether --with-gtk-prefix or --without-gtk-prefix was given. | |
6f72b082 OK |
8502 | if test "${with_gtk_prefix+set}" = set; then |
8503 | withval="$with_gtk_prefix" | |
8504 | gtk_config_prefix="$withval" | |
8505 | else | |
8506 | gtk_config_prefix="" | |
698dcdb6 | 8507 | fi |
6f72b082 OK |
8508 | |
8509 | # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given. | |
8510 | if test "${with_gtk_exec_prefix+set}" = set; then | |
8511 | withval="$with_gtk_exec_prefix" | |
8512 | gtk_config_exec_prefix="$withval" | |
8513 | else | |
8514 | gtk_config_exec_prefix="" | |
698dcdb6 VZ |
8515 | fi |
8516 | ||
6f72b082 OK |
8517 | # Check whether --enable-gtktest or --disable-gtktest was given. |
8518 | if test "${enable_gtktest+set}" = set; then | |
8519 | enableval="$enable_gtktest" | |
698dcdb6 | 8520 | : |
6f72b082 OK |
8521 | else |
8522 | enable_gtktest=yes | |
698dcdb6 VZ |
8523 | fi |
8524 | ||
6f72b082 | 8525 | |
8168de4c | 8526 | for module in . |
6f72b082 OK |
8527 | do |
8528 | case "$module" in | |
8168de4c | 8529 | gthread) |
6f72b082 OK |
8530 | gtk_config_args="$gtk_config_args gthread" |
8531 | ;; | |
8532 | esac | |
8533 | done | |
8534 | ||
8535 | if test x$gtk_config_exec_prefix != x ; then | |
8536 | gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix" | |
8537 | if test x${GTK_CONFIG_2_0+set} != xset ; then | |
8538 | GTK_CONFIG_2_0=$gtk_config_exec_prefix/bin/gtk-config-2.0 | |
8539 | fi | |
8540 | fi | |
8541 | if test x$gtk_config_prefix != x ; then | |
8542 | gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix" | |
8543 | if test x${GTK_CONFIG_2_0+set} != xset ; then | |
8544 | GTK_CONFIG_2_0=$gtk_config_prefix/bin/gtk-config-2.0 | |
8545 | fi | |
8546 | fi | |
8547 | ||
8548 | # Extract the first word of "gtk-config-2.0", so it can be a program name with args. | |
8549 | set dummy gtk-config-2.0; ac_word=$2 | |
698dcdb6 | 8550 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
d73be714 | 8551 | echo "configure:8552: checking for $ac_word" >&5 |
698dcdb6 VZ |
8552 | if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG_2_0'+set}'`\" = set"; then |
8553 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6f72b082 | 8554 | else |
698dcdb6 VZ |
8555 | case "$GTK_CONFIG_2_0" in |
8556 | /*) | |
6f72b082 OK |
8557 | ac_cv_path_GTK_CONFIG_2_0="$GTK_CONFIG_2_0" # Let the user override the test with a path. |
8558 | ;; | |
698dcdb6 VZ |
8559 | ?:/*) |
8560 | ac_cv_path_GTK_CONFIG_2_0="$GTK_CONFIG_2_0" # Let the user override the test with a dos path. | |
8561 | ;; | |
6f72b082 | 8562 | *) |
698dcdb6 VZ |
8563 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
8564 | ac_dummy="$PATH" | |
8565 | for ac_dir in $ac_dummy; do | |
8566 | test -z "$ac_dir" && ac_dir=. | |
8567 | if test -f $ac_dir/$ac_word; then | |
8568 | ac_cv_path_GTK_CONFIG_2_0="$ac_dir/$ac_word" | |
8569 | break | |
8570 | fi | |
8571 | done | |
8572 | IFS="$ac_save_ifs" | |
6f72b082 OK |
8573 | test -z "$ac_cv_path_GTK_CONFIG_2_0" && ac_cv_path_GTK_CONFIG_2_0="no" |
8574 | ;; | |
8575 | esac | |
8576 | fi | |
698dcdb6 | 8577 | GTK_CONFIG_2_0="$ac_cv_path_GTK_CONFIG_2_0" |
6f72b082 | 8578 | if test -n "$GTK_CONFIG_2_0"; then |
698dcdb6 | 8579 | echo "$ac_t""$GTK_CONFIG_2_0" 1>&6 |
6f72b082 | 8580 | else |
698dcdb6 | 8581 | echo "$ac_t""no" 1>&6 |
6f72b082 OK |
8582 | fi |
8583 | ||
8584 | min_gtk_version=1.3.1 | |
698dcdb6 | 8585 | echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6 |
d73be714 | 8586 | echo "configure:8587: checking for GTK - version >= $min_gtk_version" >&5 |
6f72b082 OK |
8587 | no_gtk="" |
8588 | if test "$GTK_CONFIG_2_0" = "no" ; then | |
8589 | no_gtk=yes | |
8590 | else | |
8591 | GTK_CFLAGS=`$GTK_CONFIG_2_0 $gtk_config_args --cflags` | |
8592 | GTK_LIBS=`$GTK_CONFIG_2_0 $gtk_config_args --libs` | |
8593 | gtk_config_major_version=`$GTK_CONFIG_2_0 $gtk_config_args --version | \ | |
8594 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` | |
8595 | gtk_config_minor_version=`$GTK_CONFIG_2_0 $gtk_config_args --version | \ | |
8596 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` | |
8597 | gtk_config_micro_version=`$GTK_CONFIG_2_0 $gtk_config_args --version | \ | |
8598 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` | |
8599 | if test "x$enable_gtktest" = "xyes" ; then | |
8600 | ac_save_CFLAGS="$CFLAGS" | |
8601 | ac_save_LIBS="$LIBS" | |
8602 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
8603 | LIBS="$GTK_LIBS $LIBS" | |
8604 | rm -f conf.gtktest | |
8605 | if test "$cross_compiling" = yes; then | |
8606 | echo $ac_n "cross compiling; assumed OK... $ac_c" | |
8607 | else | |
698dcdb6 | 8608 | cat > conftest.$ac_ext <<EOF |
d73be714 | 8609 | #line 8610 "configure" |
6f72b082 OK |
8610 | #include "confdefs.h" |
8611 | ||
8612 | #include <gtk/gtk.h> | |
8613 | #include <stdio.h> | |
8614 | #include <stdlib.h> | |
8615 | ||
8168de4c | 8616 | int |
6f72b082 OK |
8617 | main () |
8618 | { | |
8619 | int major, minor, micro; | |
8620 | char *tmp_version; | |
8621 | ||
8622 | system ("touch conf.gtktest"); | |
8623 | ||
8624 | /* HP/UX 9 (%@#!) writes to sscanf strings */ | |
8625 | tmp_version = g_strdup("$min_gtk_version"); | |
8626 | if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { | |
8627 | printf("%s, bad version string\n", "$min_gtk_version"); | |
8628 | exit(1); | |
8629 | } | |
8630 | ||
8631 | if ((gtk_major_version != $gtk_config_major_version) || | |
8632 | (gtk_minor_version != $gtk_config_minor_version) || | |
8633 | (gtk_micro_version != $gtk_config_micro_version)) | |
8634 | { | |
8168de4c | 8635 | printf("\n*** 'gtk-config-2.0 --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n", |
6f72b082 OK |
8636 | $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version, |
8637 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
8638 | printf ("*** was found! If gtk-config-2.0 was correct, then it is best\n"); | |
8639 | printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n"); | |
8640 | printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n"); | |
8641 | printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n"); | |
8642 | printf("*** required on your system.\n"); | |
8643 | printf("*** If gtk-config-2.0 was wrong, set the environment variable GTK_CONFIG_2_0\n"); | |
8644 | printf("*** to point to the correct copy of gtk-config-2.0, and remove the file config.cache\n"); | |
8645 | printf("*** before re-running configure\n"); | |
8168de4c | 8646 | } |
6f72b082 OK |
8647 | #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION) |
8648 | else if ((gtk_major_version != GTK_MAJOR_VERSION) || | |
8168de4c | 8649 | (gtk_minor_version != GTK_MINOR_VERSION) || |
6f72b082 OK |
8650 | (gtk_micro_version != GTK_MICRO_VERSION)) |
8651 | { | |
8652 | printf("*** GTK+ header files (version %d.%d.%d) do not match\n", | |
8168de4c | 8653 | GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION); |
6f72b082 | 8654 | printf("*** library (version %d.%d.%d)\n", |
8168de4c | 8655 | gtk_major_version, gtk_minor_version, gtk_micro_version); |
6f72b082 OK |
8656 | } |
8657 | #endif /* defined (GTK_MAJOR_VERSION) ... */ | |
8658 | else | |
8659 | { | |
8660 | if ((gtk_major_version > major) || | |
8661 | ((gtk_major_version == major) && (gtk_minor_version > minor)) || | |
8662 | ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro))) | |
8663 | { | |
8664 | return 0; | |
8665 | } | |
8666 | else | |
8667 | { | |
8668 | printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n", | |
8669 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
8670 | printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n", | |
8168de4c | 8671 | major, minor, micro); |
6f72b082 OK |
8672 | printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n"); |
8673 | printf("***\n"); | |
8674 | printf("*** If you have already installed a sufficiently new version, this error\n"); | |
8675 | printf("*** probably means that the wrong copy of the gtk-config-2.0 shell script is\n"); | |
8676 | printf("*** being found. The easiest way to fix this is to remove the old version\n"); | |
8677 | printf("*** of GTK+, but you can also set the GTK_CONFIG_2_0 environment to point to the\n"); | |
8678 | printf("*** correct copy of gtk-config-2.0. (In this case, you will have to\n"); | |
8679 | printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n"); | |
8680 | printf("*** so that the correct libraries are found at run-time))\n"); | |
8681 | } | |
8682 | } | |
8683 | return 1; | |
8684 | } | |
8685 | ||
698dcdb6 | 8686 | EOF |
d73be714 | 8687 | if { (eval echo configure:8688: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
698dcdb6 | 8688 | then |
6f72b082 OK |
8689 | : |
8690 | else | |
698dcdb6 VZ |
8691 | echo "configure: failed program was:" >&5 |
8692 | cat conftest.$ac_ext >&5 | |
8693 | rm -fr conftest* | |
8694 | no_gtk=yes | |
6f72b082 | 8695 | fi |
698dcdb6 | 8696 | rm -fr conftest* |
6f72b082 | 8697 | fi |
698dcdb6 | 8698 | |
6f72b082 OK |
8699 | CFLAGS="$ac_save_CFLAGS" |
8700 | LIBS="$ac_save_LIBS" | |
8701 | fi | |
8702 | fi | |
8703 | if test "x$no_gtk" = x ; then | |
698dcdb6 | 8704 | echo "$ac_t""yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" 1>&6 |
8168de4c | 8705 | wx_cv_lib_gtk=2.0 |
6f72b082 | 8706 | else |
698dcdb6 | 8707 | echo "$ac_t""no" 1>&6 |
6f72b082 OK |
8708 | if test "$GTK_CONFIG_2_0" = "no" ; then |
8709 | echo "*** The gtk-config-2.0 script installed by GTK could not be found" | |
8710 | echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in" | |
8711 | echo "*** your path, or set the GTK_CONFIG_2_0 environment variable to the" | |
8712 | echo "*** full path to gtk-config-2.0." | |
8713 | else | |
8714 | if test -f conf.gtktest ; then | |
8715 | : | |
8716 | else | |
8717 | echo "*** Could not run GTK test program, checking why..." | |
8718 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
8719 | LIBS="$LIBS $GTK_LIBS" | |
698dcdb6 | 8720 | cat > conftest.$ac_ext <<EOF |
d73be714 | 8721 | #line 8722 "configure" |
6f72b082 OK |
8722 | #include "confdefs.h" |
8723 | ||
8724 | #include <gtk/gtk.h> | |
8725 | #include <stdio.h> | |
8726 | ||
698dcdb6 VZ |
8727 | int main() { |
8728 | return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version)); | |
8729 | ; return 0; } | |
8730 | EOF | |
d73be714 | 8731 | if { (eval echo configure:8732: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 | 8732 | rm -rf conftest* |
6f72b082 OK |
8733 | echo "*** The test program compiled, but did not run. This usually means" |
8734 | echo "*** that the run-time linker is not finding GTK or finding the wrong" | |
8735 | echo "*** version of GTK. If it is not finding GTK, you'll need to set your" | |
8736 | echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" | |
8737 | echo "*** to the installed location Also, make sure you have run ldconfig if that" | |
8738 | echo "*** is required on your system" | |
8168de4c | 8739 | echo "***" |
6f72b082 OK |
8740 | echo "*** If you have an old version installed, it is best to remove it, although" |
8741 | echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" | |
8742 | echo "***" | |
8743 | echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that" | |
8744 | echo "*** came with the system with the command" | |
8745 | echo "***" | |
698dcdb6 | 8746 | echo "*** rpm --erase --nodeps gtk gtk-devel" |
6f72b082 | 8747 | else |
698dcdb6 VZ |
8748 | echo "configure: failed program was:" >&5 |
8749 | cat conftest.$ac_ext >&5 | |
8750 | rm -rf conftest* | |
8751 | echo "*** The test program failed to compile or link. See the file config.log for the" | |
6f72b082 OK |
8752 | echo "*** exact error that occured. This usually means GTK was incorrectly installed" |
8753 | echo "*** or that you have moved GTK since it was installed. In the latter case, you" | |
698dcdb6 | 8754 | echo "*** may want to edit the gtk-config-2.0 script: $GTK_CONFIG_2_0" |
6f72b082 | 8755 | fi |
698dcdb6 | 8756 | rm -f conftest* |
6f72b082 OK |
8757 | CFLAGS="$ac_save_CFLAGS" |
8758 | LIBS="$ac_save_LIBS" | |
8759 | fi | |
8760 | fi | |
8761 | GTK_CFLAGS="" | |
8762 | GTK_LIBS="" | |
8168de4c VZ |
8763 | gthread |
8764 | fi | |
8765 | ||
8766 | ||
8767 | rm -f conf.gtktest | |
8768 | ||
8769 | fi | |
8770 | ||
8771 | if test -z "$wx_cv_lib_gtk"; then | |
8772 | ||
10f2d63a VZ |
8773 | if test x$gtk_config_exec_prefix != x ; then |
8774 | gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix" | |
8775 | if test x${GTK_CONFIG+set} != xset ; then | |
8776 | GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config | |
8777 | fi | |
8778 | fi | |
8779 | if test x$gtk_config_prefix != x ; then | |
8780 | gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix" | |
8781 | if test x${GTK_CONFIG+set} != xset ; then | |
8782 | GTK_CONFIG=$gtk_config_prefix/bin/gtk-config | |
8783 | fi | |
8784 | fi | |
8785 | ||
8786 | # Extract the first word of "gtk-config", so it can be a program name with args. | |
8787 | set dummy gtk-config; ac_word=$2 | |
698dcdb6 | 8788 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
d73be714 | 8789 | echo "configure:8790: checking for $ac_word" >&5 |
698dcdb6 VZ |
8790 | if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then |
8791 | echo $ac_n "(cached) $ac_c" 1>&6 | |
f6bcfd97 | 8792 | else |
698dcdb6 VZ |
8793 | case "$GTK_CONFIG" in |
8794 | /*) | |
f6bcfd97 BP |
8795 | ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path. |
8796 | ;; | |
698dcdb6 VZ |
8797 | ?:/*) |
8798 | ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path. | |
8799 | ;; | |
f6bcfd97 | 8800 | *) |
698dcdb6 VZ |
8801 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
8802 | ac_dummy="$PATH" | |
8803 | for ac_dir in $ac_dummy; do | |
8804 | test -z "$ac_dir" && ac_dir=. | |
8805 | if test -f $ac_dir/$ac_word; then | |
8806 | ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word" | |
8807 | break | |
8808 | fi | |
8809 | done | |
8810 | IFS="$ac_save_ifs" | |
f6bcfd97 BP |
8811 | test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no" |
8812 | ;; | |
8813 | esac | |
8814 | fi | |
698dcdb6 | 8815 | GTK_CONFIG="$ac_cv_path_GTK_CONFIG" |
f6bcfd97 | 8816 | if test -n "$GTK_CONFIG"; then |
698dcdb6 | 8817 | echo "$ac_t""$GTK_CONFIG" 1>&6 |
f6bcfd97 | 8818 | else |
698dcdb6 | 8819 | echo "$ac_t""no" 1>&6 |
f6bcfd97 BP |
8820 | fi |
8821 | ||
8822 | min_gtk_version=1.2.7 | |
698dcdb6 | 8823 | echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6 |
d73be714 | 8824 | echo "configure:8825: checking for GTK - version >= $min_gtk_version" >&5 |
f6bcfd97 BP |
8825 | no_gtk="" |
8826 | if test "$GTK_CONFIG" != "no" ; then | |
8827 | GTK_CFLAGS=`$GTK_CONFIG --cflags` | |
8828 | GTK_LIBS=`$GTK_CONFIG --libs gthread` | |
8829 | ac_save_CFLAGS="$CFLAGS" | |
8830 | ac_save_LIBS="$LIBS" | |
8831 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
8832 | LIBS="$LIBS $GTK_LIBS" | |
8833 | if test "$cross_compiling" = yes; then | |
8834 | echo $ac_n "cross compiling; assumed OK... $ac_c" | |
8835 | else | |
698dcdb6 | 8836 | cat > conftest.$ac_ext <<EOF |
d73be714 | 8837 | #line 8838 "configure" |
f6bcfd97 BP |
8838 | #include "confdefs.h" |
8839 | ||
8840 | #include <gtk/gtk.h> | |
8841 | #include <gtk/gtkfeatures.h> | |
8842 | #include <stdio.h> | |
8843 | #include <stdlib.h> | |
8844 | ||
8845 | int | |
8846 | main () | |
8847 | { | |
8848 | int major, minor, micro; | |
8849 | ||
8850 | if (sscanf("$min_gtk_version", "%d.%d.%d", &major, &minor, µ) != 3) { | |
8851 | printf("%s, bad version string\n", "$min_gtk_version"); | |
8852 | exit(1); | |
8853 | } | |
8854 | ||
8855 | if ((GTK_MAJOR_VERSION != gtk_major_version) || | |
8856 | (GTK_MINOR_VERSION != gtk_minor_version) || | |
8857 | (GTK_MICRO_VERSION != gtk_micro_version)) { | |
8858 | printf("Headers vs. library version mismatch!\n"); | |
8859 | exit(1); | |
8860 | } | |
8861 | ||
8862 | if (gtk_minor_version == 1) return FALSE; | |
8863 | ||
8864 | return !((gtk_major_version > major) || | |
8865 | ((gtk_major_version == major) && (gtk_minor_version > minor)) || | |
8866 | ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro))); | |
8867 | } | |
8868 | ||
698dcdb6 | 8869 | EOF |
d73be714 | 8870 | if { (eval echo configure:8871: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
698dcdb6 | 8871 | then |
f6bcfd97 BP |
8872 | : |
8873 | else | |
698dcdb6 VZ |
8874 | echo "configure: failed program was:" >&5 |
8875 | cat conftest.$ac_ext >&5 | |
8876 | rm -fr conftest* | |
8877 | no_gtk=yes | |
f6bcfd97 | 8878 | fi |
698dcdb6 | 8879 | rm -fr conftest* |
f6bcfd97 | 8880 | fi |
698dcdb6 | 8881 | |
f6bcfd97 BP |
8882 | CFLAGS="$ac_save_CFLAGS" |
8883 | LIBS="$ac_save_LIBS" | |
8884 | else | |
8885 | no_gtk=yes | |
8886 | fi | |
8887 | if test "x$no_gtk" = x ; then | |
698dcdb6 | 8888 | echo "$ac_t""yes" 1>&6 |
8168de4c | 8889 | wx_cv_lib_gtk=1.2.7 |
f6bcfd97 | 8890 | else |
698dcdb6 | 8891 | echo "$ac_t""no" 1>&6 |
f6bcfd97 BP |
8892 | GTK_CFLAGS="" |
8893 | GTK_LIBS="" | |
8894 | : | |
8895 | fi | |
698dcdb6 VZ |
8896 | |
8897 | ||
f6bcfd97 | 8898 | |
8168de4c VZ |
8899 | fi |
8900 | ||
8901 | if test -z "$wx_cv_lib_gtk"; then | |
8902 | ||
f6bcfd97 BP |
8903 | if test x$gtk_config_exec_prefix != x ; then |
8904 | gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix" | |
8905 | if test x${GTK_CONFIG+set} != xset ; then | |
8906 | GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config | |
8907 | fi | |
8908 | fi | |
8909 | if test x$gtk_config_prefix != x ; then | |
8910 | gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix" | |
8911 | if test x${GTK_CONFIG+set} != xset ; then | |
8912 | GTK_CONFIG=$gtk_config_prefix/bin/gtk-config | |
8913 | fi | |
8914 | fi | |
8915 | ||
8916 | # Extract the first word of "gtk-config", so it can be a program name with args. | |
8917 | set dummy gtk-config; ac_word=$2 | |
698dcdb6 | 8918 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
d73be714 | 8919 | echo "configure:8920: checking for $ac_word" >&5 |
698dcdb6 VZ |
8920 | if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then |
8921 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 8922 | else |
698dcdb6 VZ |
8923 | case "$GTK_CONFIG" in |
8924 | /*) | |
10f2d63a VZ |
8925 | ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path. |
8926 | ;; | |
698dcdb6 VZ |
8927 | ?:/*) |
8928 | ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path. | |
8929 | ;; | |
10f2d63a | 8930 | *) |
698dcdb6 VZ |
8931 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
8932 | ac_dummy="$PATH" | |
8933 | for ac_dir in $ac_dummy; do | |
8934 | test -z "$ac_dir" && ac_dir=. | |
8935 | if test -f $ac_dir/$ac_word; then | |
8936 | ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word" | |
8937 | break | |
8938 | fi | |
8939 | done | |
8940 | IFS="$ac_save_ifs" | |
10f2d63a VZ |
8941 | test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no" |
8942 | ;; | |
8943 | esac | |
8944 | fi | |
698dcdb6 | 8945 | GTK_CONFIG="$ac_cv_path_GTK_CONFIG" |
10f2d63a | 8946 | if test -n "$GTK_CONFIG"; then |
698dcdb6 | 8947 | echo "$ac_t""$GTK_CONFIG" 1>&6 |
10f2d63a | 8948 | else |
698dcdb6 | 8949 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
8950 | fi |
8951 | ||
04165bec | 8952 | min_gtk_version=1.2.3 |
698dcdb6 | 8953 | echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6 |
d73be714 | 8954 | echo "configure:8955: checking for GTK - version >= $min_gtk_version" >&5 |
10f2d63a VZ |
8955 | no_gtk="" |
8956 | if test "$GTK_CONFIG" != "no" ; then | |
8957 | GTK_CFLAGS=`$GTK_CONFIG --cflags` | |
2224580a | 8958 | GTK_LIBS=`$GTK_CONFIG --libs gthread` |
10f2d63a VZ |
8959 | ac_save_CFLAGS="$CFLAGS" |
8960 | ac_save_LIBS="$LIBS" | |
8961 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
8962 | LIBS="$LIBS $GTK_LIBS" | |
8963 | if test "$cross_compiling" = yes; then | |
8964 | echo $ac_n "cross compiling; assumed OK... $ac_c" | |
8965 | else | |
698dcdb6 | 8966 | cat > conftest.$ac_ext <<EOF |
d73be714 | 8967 | #line 8968 "configure" |
10f2d63a VZ |
8968 | #include "confdefs.h" |
8969 | ||
8970 | #include <gtk/gtk.h> | |
f49f2b0c | 8971 | #include <gtk/gtkfeatures.h> |
10f2d63a | 8972 | #include <stdio.h> |
32832908 | 8973 | #include <stdlib.h> |
10f2d63a VZ |
8974 | |
8975 | int | |
8976 | main () | |
8977 | { | |
8978 | int major, minor, micro; | |
8979 | ||
8980 | if (sscanf("$min_gtk_version", "%d.%d.%d", &major, &minor, µ) != 3) { | |
8981 | printf("%s, bad version string\n", "$min_gtk_version"); | |
8982 | exit(1); | |
8983 | } | |
8984 | ||
f49f2b0c RR |
8985 | if ((GTK_MAJOR_VERSION != gtk_major_version) || |
8986 | (GTK_MINOR_VERSION != gtk_minor_version) || | |
8987 | (GTK_MICRO_VERSION != gtk_micro_version)) { | |
8988 | printf("Headers vs. library version mismatch!\n"); | |
8989 | exit(1); | |
8990 | } | |
8991 | ||
10f2d63a VZ |
8992 | if (gtk_minor_version == 1) return FALSE; |
8993 | ||
8994 | return !((gtk_major_version > major) || | |
8995 | ((gtk_major_version == major) && (gtk_minor_version > minor)) || | |
8996 | ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro))); | |
8997 | } | |
8998 | ||
698dcdb6 | 8999 | EOF |
d73be714 | 9000 | if { (eval echo configure:9001: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
698dcdb6 | 9001 | then |
10f2d63a VZ |
9002 | : |
9003 | else | |
698dcdb6 VZ |
9004 | echo "configure: failed program was:" >&5 |
9005 | cat conftest.$ac_ext >&5 | |
9006 | rm -fr conftest* | |
9007 | no_gtk=yes | |
10f2d63a | 9008 | fi |
698dcdb6 | 9009 | rm -fr conftest* |
10f2d63a | 9010 | fi |
698dcdb6 | 9011 | |
10f2d63a VZ |
9012 | CFLAGS="$ac_save_CFLAGS" |
9013 | LIBS="$ac_save_LIBS" | |
9014 | else | |
9015 | no_gtk=yes | |
9016 | fi | |
9017 | if test "x$no_gtk" = x ; then | |
698dcdb6 | 9018 | echo "$ac_t""yes" 1>&6 |
8168de4c | 9019 | wx_cv_lib_gtk=1.2.3 |
10f2d63a | 9020 | else |
698dcdb6 | 9021 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
9022 | GTK_CFLAGS="" |
9023 | GTK_LIBS="" | |
7e99ad86 | 9024 | : |
10f2d63a | 9025 | fi |
698dcdb6 VZ |
9026 | |
9027 | ||
10f2d63a | 9028 | |
8168de4c VZ |
9029 | fi |
9030 | ||
9031 | if test -z "$wx_cv_lib_gtk"; then | |
9032 | wx_cv_lib_gtk=none | |
138be253 VZ |
9033 | else |
9034 | wx_cv_cflags_gtk=$GTK_CFLAGS | |
9035 | wx_cv_libs_gtk=$GTK_LIBS | |
8168de4c VZ |
9036 | fi |
9037 | ||
1e6feb95 | 9038 | |
8168de4c | 9039 | fi |
703e0a69 | 9040 | |
698dcdb6 | 9041 | |
8168de4c VZ |
9042 | if test "$gtk_version_cached" = 1; then |
9043 | echo "$ac_t""$wx_cv_lib_gtk" 1>&6 | |
1e6feb95 | 9044 | fi |
698dcdb6 | 9045 | |
8168de4c VZ |
9046 | case "$wx_cv_lib_gtk" in |
9047 | 2.0) WXGTK20=1 | |
9048 | ;; | |
9049 | 1.2.7) WXGTK127=1 | |
9050 | ;; | |
9051 | 1.2.3) WXGTK12=1 | |
9052 | ;; | |
9053 | *) { echo "configure: error: | |
9054 | Please check that gtk-config is in path, the directory | |
9055 | where GTK+ libraries are installed (returned by | |
9056 | 'gtk-config --libs' command) is in LD_LIBRARY_PATH or | |
9057 | equivalent variable and GTK+ is version 1.2.3 or above. | |
9058 | " 1>&2; exit 1; } | |
9059 | ;; | |
9060 | esac | |
2224580a | 9061 | |
138be253 | 9062 | TOOLKIT_INCLUDE="$wx_cv_cflags_gtk" |
11dfaa5f | 9063 | GUI_TK_LIBRARY="$wx_cv_libs_gtk" |
698dcdb6 | 9064 | |
1e6feb95 VZ |
9065 | AFMINSTALL=afminstall |
9066 | TOOLKIT=GTK | |
9067 | GUIDIST=GTK_DIST | |
7ec2881a | 9068 | |
1e6feb95 | 9069 | echo $ac_n "checking for gdk_im_open in -lgdk""... $ac_c" 1>&6 |
d73be714 | 9070 | echo "configure:9071: checking for gdk_im_open in -lgdk" >&5 |
698dcdb6 VZ |
9071 | ac_lib_var=`echo gdk'_'gdk_im_open | sed 'y%./+-%__p_%'` |
9072 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
9073 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7ec2881a | 9074 | else |
698dcdb6 | 9075 | ac_save_LIBS="$LIBS" |
7ec2881a | 9076 | LIBS="-lgdk $LIBS" |
698dcdb6 | 9077 | cat > conftest.$ac_ext <<EOF |
d73be714 | 9078 | #line 9079 "configure" |
7ec2881a RR |
9079 | #include "confdefs.h" |
9080 | /* Override any gcc2 internal prototype to avoid an error. */ | |
9081 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
9082 | builtin and then its argument prototype would still apply. */ |
9083 | char gdk_im_open(); | |
9084 | ||
9085 | int main() { | |
9086 | gdk_im_open() | |
9087 | ; return 0; } | |
9088 | EOF | |
d73be714 | 9089 | if { (eval echo configure:9090: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
9090 | rm -rf conftest* |
9091 | eval "ac_cv_lib_$ac_lib_var=yes" | |
9092 | else | |
9093 | echo "configure: failed program was:" >&5 | |
9094 | cat conftest.$ac_ext >&5 | |
9095 | rm -rf conftest* | |
9096 | eval "ac_cv_lib_$ac_lib_var=no" | |
9097 | fi | |
9098 | rm -f conftest* | |
9099 | LIBS="$ac_save_LIBS" | |
9100 | ||
9101 | fi | |
9102 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
9103 | echo "$ac_t""yes" 1>&6 | |
9104 | cat >> confdefs.h <<\EOF | |
7ec2881a RR |
9105 | #define HAVE_XIM 1 |
9106 | EOF | |
9107 | ||
698dcdb6 VZ |
9108 | else |
9109 | echo "$ac_t""no" 1>&6 | |
7ec2881a RR |
9110 | fi |
9111 | ||
1e6feb95 | 9112 | fi |
10f2d63a | 9113 | |
1e6feb95 VZ |
9114 | if test "$wxUSE_MGL" = 1; then |
9115 | ||
9116 | echo $ac_n "checking for SciTech MGL library""... $ac_c" 1>&6 | |
d73be714 | 9117 | echo "configure:9118: checking for SciTech MGL library" >&5 |
1e6feb95 VZ |
9118 | if test "x$MGL_ROOT" = x ; then |
9119 | echo "$ac_t""not found" 1>&6 | |
9120 | { echo "configure: error: Cannot find MGL library. Make sure MGL_ROOT is set." 1>&2; exit 1; } | |
9121 | else | |
9122 | echo "$ac_t""$MGL_ROOT" 1>&6 | |
9123 | fi | |
9124 | ||
9125 | MGL_OS=linux/gcc/glibc | |
9126 | MGL_LIB_TYPE="" | |
9127 | ||
9128 | if test "$wxUSE_DEBUG_FLAG" = yes ; then | |
9129 | if test -f $MGL_ROOT/lib/debug/$MGL_OS/libmgl.a ; then | |
9130 | MGL_LIB_TYPE=debug | |
9131 | fi | |
9132 | fi | |
9133 | if test "x$MGL_LIB_TYPE" = x ; then | |
9134 | if test -f $MGL_ROOT/lib/release/$MGL_OS/libmgl.a ; then | |
9135 | MGL_LIB_TYPE=release | |
9136 | else | |
9137 | { echo "configure: error: Cannot find MGL libraries, make sure they are compiled." 1>&2; exit 1; } | |
9138 | fi | |
9139 | fi | |
9140 | ||
9141 | TOOLKIT_INCLUDE="-I$MGL_ROOT/include" | |
9142 | GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$MGL_LIB_TYPE/$MGL_OS -lmgl -lmglcpp -lpm" | |
9143 | ||
9144 | AFMINSTALL=afminstall | |
9145 | TOOLKIT=MGL | |
9146 | GUIDIST=MGL_DIST | |
9147 | fi | |
9148 | ||
9149 | if test "$wxUSE_WINE" = 1; then | |
9150 | echo $ac_n "checking for WINE includes""... $ac_c" 1>&6 | |
d73be714 | 9151 | echo "configure:9152: checking for WINE includes" >&5 |
1e6feb95 | 9152 | |
10f2d63a VZ |
9153 | ac_find_includes= |
9154 | for ac_dir in $SEARCH_INCLUDE; | |
9155 | do | |
9156 | if test -f "$ac_dir/windows.h"; then | |
9157 | ac_find_includes=$ac_dir | |
9158 | break | |
9159 | fi | |
9160 | done | |
9161 | ||
1e6feb95 VZ |
9162 | if test "$ac_find_includes" != "" ; then |
9163 | echo "$ac_t""found $ac_find_includes" 1>&6 | |
9164 | TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE -I$ac_find_includes" | |
9165 | else | |
9166 | echo "$ac_t""no" 1>&6 | |
9167 | { echo "configure: error: please set CFLAGS to contain the location of windows.h" 1>&2; exit 1; } | |
9168 | fi | |
10f2d63a | 9169 | |
1e6feb95 VZ |
9170 | XPM_LINK="" |
9171 | echo $ac_n "checking for Xpm library""... $ac_c" 1>&6 | |
d73be714 | 9172 | echo "configure:9173: checking for Xpm library" >&5 |
1e6feb95 | 9173 | |
10f2d63a VZ |
9174 | ac_find_libraries= |
9175 | for ac_dir in $SEARCH_LIB; | |
9176 | do | |
9177 | for ac_extension in a so sl; do | |
9178 | if test -f "$ac_dir/libXpm.$ac_extension"; then | |
9179 | ac_find_libraries=$ac_dir | |
9180 | break 2 | |
9181 | fi | |
9182 | done | |
9183 | done | |
9184 | ||
1e6feb95 VZ |
9185 | if test "$ac_find_libraries" != "" ; then |
9186 | GUI_TK_LIBRARY="-L$ac_find_libraries" | |
9187 | XPM_LINK="-lXpm" | |
9188 | cat >> confdefs.h <<\EOF | |
10f2d63a VZ |
9189 | #define wxHAVE_LIB_XPM 1 |
9190 | EOF | |
9191 | ||
1e6feb95 VZ |
9192 | echo "$ac_t""found at $ac_find_libraries" 1>&6 |
9193 | else | |
9194 | echo "$ac_t""no" 1>&6 | |
9195 | echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2 | |
9196 | fi | |
10f2d63a | 9197 | |
1e6feb95 VZ |
9198 | MESA_LINK="" |
9199 | echo $ac_n "checking for Mesa library""... $ac_c" 1>&6 | |
d73be714 | 9200 | echo "configure:9201: checking for Mesa library" >&5 |
1e6feb95 | 9201 | |
10f2d63a VZ |
9202 | ac_find_libraries= |
9203 | for ac_dir in $SEARCH_LIB; | |
9204 | do | |
9205 | for ac_extension in a so sl; do | |
9206 | if test -f "$ac_dir/libMesaGL.$ac_extension"; then | |
9207 | ac_find_libraries=$ac_dir | |
9208 | break 2 | |
9209 | fi | |
9210 | done | |
9211 | done | |
9212 | ||
1e6feb95 VZ |
9213 | if test "$ac_find_libraries" != "" ; then |
9214 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -L$ac_find_libraries" | |
9215 | MESA_LINK="-lMesaGL" | |
9216 | echo "$ac_t""found at $ac_find_libraries" 1>&6 | |
9217 | else | |
9218 | { echo "configure: error: no" 1>&2; exit 1; } | |
9219 | fi | |
10f2d63a | 9220 | |
1e6feb95 VZ |
9221 | GUI_TK_LINK="-lwine $MESA_LINK $XPM_LINK -lXxf86dga -lXxf86vm -lSM -lICE -lXext -lXmu -lX11 -lncurses" |
9222 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY $GUI_TK_LINK" | |
9223 | WXWINE=1 | |
9224 | TOOLKIT=MSW | |
9225 | GUIDIST=MSW_DIST | |
9226 | fi | |
698dcdb6 | 9227 | |
1e6feb95 VZ |
9228 | |
9229 | # If we find X, set shell vars x_includes and x_libraries to the | |
698dcdb6 VZ |
9230 | # paths, otherwise set no_x=yes. |
9231 | # Uses ac_ vars as temps to allow command line to override cache and checks. | |
9232 | # --without-x overrides everything else, but does not touch the cache. | |
9233 | echo $ac_n "checking for X""... $ac_c" 1>&6 | |
d73be714 | 9234 | echo "configure:9235: checking for X" >&5 |
ab9b9eab VZ |
9235 | |
9236 | # Check whether --with-x or --without-x was given. | |
9237 | if test "${with_x+set}" = set; then | |
9238 | withval="$with_x" | |
698dcdb6 VZ |
9239 | : |
9240 | fi | |
ba337fe7 | 9241 | |
ab9b9eab VZ |
9242 | # $have_x is `yes', `no', `disabled', or empty when we do not yet know. |
9243 | if test "x$with_x" = xno; then | |
9244 | # The user explicitly disabled X. | |
9245 | have_x=disabled | |
9246 | else | |
9247 | if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then | |
9248 | # Both variables are already set. | |
9249 | have_x=yes | |
9250 | else | |
698dcdb6 VZ |
9251 | if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then |
9252 | echo $ac_n "(cached) $ac_c" 1>&6 | |
ab9b9eab VZ |
9253 | else |
9254 | # One or both of the vars are not set, and there is no cached value. | |
698dcdb6 VZ |
9255 | ac_x_includes=NO ac_x_libraries=NO |
9256 | rm -fr conftestdir | |
9257 | if mkdir conftestdir; then | |
9258 | cd conftestdir | |
ab9b9eab | 9259 | # Make sure to not put "make" in the Imakefile rules, since we grep it out. |
698dcdb6 | 9260 | cat > Imakefile <<'EOF' |
ab9b9eab VZ |
9261 | acfindx: |
9262 | @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"' | |
9263 | EOF | |
9264 | if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then | |
9265 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
9266 | eval `${MAKE-make} acfindx 2>/dev/null | grep -v make` | |
9267 | # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. | |
10f2d63a | 9268 | for ac_extension in a so sl; do |
ab9b9eab | 9269 | if test ! -f $ac_im_usrlibdir/libX11.$ac_extension && |
698dcdb6 | 9270 | test -f $ac_im_libdir/libX11.$ac_extension; then |
ab9b9eab | 9271 | ac_im_usrlibdir=$ac_im_libdir; break |
10f2d63a VZ |
9272 | fi |
9273 | done | |
ab9b9eab VZ |
9274 | # Screen out bogus values from the imake configuration. They are |
9275 | # bogus both because they are the default anyway, and because | |
9276 | # using them would break gcc on systems where it needs fixed includes. | |
698dcdb6 | 9277 | case "$ac_im_incroot" in |
ab9b9eab | 9278 | /usr/include) ;; |
698dcdb6 | 9279 | *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;; |
ab9b9eab | 9280 | esac |
698dcdb6 | 9281 | case "$ac_im_usrlibdir" in |
ab9b9eab | 9282 | /usr/lib | /lib) ;; |
698dcdb6 | 9283 | *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;; |
ab9b9eab | 9284 | esac |
ba337fe7 | 9285 | fi |
ab9b9eab | 9286 | cd .. |
698dcdb6 | 9287 | rm -fr conftestdir |
ab9b9eab | 9288 | fi |
10f2d63a | 9289 | |
698dcdb6 VZ |
9290 | if test "$ac_x_includes" = NO; then |
9291 | # Guess where to find include files, by looking for this one X11 .h file. | |
9292 | test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h | |
9293 | ||
ab9b9eab | 9294 | # First, try using that file with no special directory specified. |
698dcdb6 | 9295 | cat > conftest.$ac_ext <<EOF |
d73be714 | 9296 | #line 9297 "configure" |
ab9b9eab | 9297 | #include "confdefs.h" |
698dcdb6 VZ |
9298 | #include <$x_direct_test_include> |
9299 | EOF | |
9300 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
d73be714 | 9301 | { (eval echo configure:9302: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
9302 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
9303 | if test -z "$ac_err"; then | |
9304 | rm -rf conftest* | |
ab9b9eab VZ |
9305 | # We can compile using X headers with no special include directory. |
9306 | ac_x_includes= | |
9307 | else | |
698dcdb6 VZ |
9308 | echo "$ac_err" >&5 |
9309 | echo "configure: failed program was:" >&5 | |
ab9b9eab | 9310 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
9311 | rm -rf conftest* |
9312 | # Look for the header file in a standard set of common directories. | |
9313 | # Check X11 before X11Rn because it is often a symlink to the current release. | |
9314 | for ac_dir in \ | |
9315 | /usr/X11/include \ | |
9316 | /usr/X11R6/include \ | |
9317 | /usr/X11R5/include \ | |
9318 | /usr/X11R4/include \ | |
9319 | \ | |
9320 | /usr/include/X11 \ | |
9321 | /usr/include/X11R6 \ | |
9322 | /usr/include/X11R5 \ | |
9323 | /usr/include/X11R4 \ | |
9324 | \ | |
9325 | /usr/local/X11/include \ | |
9326 | /usr/local/X11R6/include \ | |
9327 | /usr/local/X11R5/include \ | |
9328 | /usr/local/X11R4/include \ | |
9329 | \ | |
9330 | /usr/local/include/X11 \ | |
9331 | /usr/local/include/X11R6 \ | |
9332 | /usr/local/include/X11R5 \ | |
9333 | /usr/local/include/X11R4 \ | |
9334 | \ | |
9335 | /usr/X386/include \ | |
9336 | /usr/x386/include \ | |
9337 | /usr/XFree86/include/X11 \ | |
9338 | \ | |
9339 | /usr/include \ | |
9340 | /usr/local/include \ | |
9341 | /usr/unsupported/include \ | |
9342 | /usr/athena/include \ | |
9343 | /usr/local/x11r5/include \ | |
9344 | /usr/lpp/Xamples/include \ | |
9345 | \ | |
9346 | /usr/openwin/include \ | |
9347 | /usr/openwin/share/include \ | |
9348 | ; \ | |
9349 | do | |
9350 | if test -r "$ac_dir/$x_direct_test_include"; then | |
9351 | ac_x_includes=$ac_dir | |
9352 | break | |
9353 | fi | |
9354 | done | |
ab9b9eab | 9355 | fi |
698dcdb6 VZ |
9356 | rm -f conftest* |
9357 | fi # $ac_x_includes = NO | |
10f2d63a | 9358 | |
698dcdb6 | 9359 | if test "$ac_x_libraries" = NO; then |
ab9b9eab | 9360 | # Check for the libraries. |
698dcdb6 VZ |
9361 | |
9362 | test -z "$x_direct_test_library" && x_direct_test_library=Xt | |
9363 | test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc | |
9364 | ||
ab9b9eab VZ |
9365 | # See if we find them without any special options. |
9366 | # Don't add to $LIBS permanently. | |
698dcdb6 VZ |
9367 | ac_save_LIBS="$LIBS" |
9368 | LIBS="-l$x_direct_test_library $LIBS" | |
9369 | cat > conftest.$ac_ext <<EOF | |
d73be714 | 9370 | #line 9371 "configure" |
ab9b9eab | 9371 | #include "confdefs.h" |
698dcdb6 VZ |
9372 | |
9373 | int main() { | |
9374 | ${x_direct_test_function}() | |
9375 | ; return 0; } | |
9376 | EOF | |
d73be714 | 9377 | if { (eval echo configure:9378: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
9378 | rm -rf conftest* |
9379 | LIBS="$ac_save_LIBS" | |
ab9b9eab VZ |
9380 | # We can link X programs with no special library path. |
9381 | ac_x_libraries= | |
9382 | else | |
698dcdb6 VZ |
9383 | echo "configure: failed program was:" >&5 |
9384 | cat conftest.$ac_ext >&5 | |
9385 | rm -rf conftest* | |
9386 | LIBS="$ac_save_LIBS" | |
9387 | # First see if replacing the include by lib works. | |
9388 | # Check X11 before X11Rn because it is often a symlink to the current release. | |
9389 | for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \ | |
9390 | /usr/X11/lib \ | |
9391 | /usr/X11R6/lib \ | |
9392 | /usr/X11R5/lib \ | |
9393 | /usr/X11R4/lib \ | |
9394 | \ | |
9395 | /usr/lib/X11 \ | |
9396 | /usr/lib/X11R6 \ | |
9397 | /usr/lib/X11R5 \ | |
9398 | /usr/lib/X11R4 \ | |
9399 | \ | |
9400 | /usr/local/X11/lib \ | |
9401 | /usr/local/X11R6/lib \ | |
9402 | /usr/local/X11R5/lib \ | |
9403 | /usr/local/X11R4/lib \ | |
9404 | \ | |
9405 | /usr/local/lib/X11 \ | |
9406 | /usr/local/lib/X11R6 \ | |
9407 | /usr/local/lib/X11R5 \ | |
9408 | /usr/local/lib/X11R4 \ | |
9409 | \ | |
9410 | /usr/X386/lib \ | |
9411 | /usr/x386/lib \ | |
9412 | /usr/XFree86/lib/X11 \ | |
9413 | \ | |
9414 | /usr/lib \ | |
9415 | /usr/local/lib \ | |
9416 | /usr/unsupported/lib \ | |
9417 | /usr/athena/lib \ | |
9418 | /usr/local/x11r5/lib \ | |
9419 | /usr/lpp/Xamples/lib \ | |
9420 | /lib/usr/lib/X11 \ | |
9421 | \ | |
9422 | /usr/openwin/lib \ | |
9423 | /usr/openwin/share/lib \ | |
9424 | ; \ | |
ab9b9eab VZ |
9425 | do |
9426 | for ac_extension in a so sl; do | |
698dcdb6 | 9427 | if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then |
ab9b9eab VZ |
9428 | ac_x_libraries=$ac_dir |
9429 | break 2 | |
10f2d63a | 9430 | fi |
10f2d63a | 9431 | done |
ab9b9eab VZ |
9432 | done |
9433 | fi | |
698dcdb6 VZ |
9434 | rm -f conftest* |
9435 | fi # $ac_x_libraries = NO | |
10f2d63a | 9436 | |
698dcdb6 | 9437 | if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then |
ab9b9eab VZ |
9438 | # Didn't find X anywhere. Cache the known absence of X. |
9439 | ac_cv_have_x="have_x=no" | |
9440 | else | |
9441 | # Record where we found X for the cache. | |
9442 | ac_cv_have_x="have_x=yes \ | |
9443 | ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries" | |
9444 | fi | |
9445 | fi | |
10f2d63a | 9446 | fi |
ab9b9eab VZ |
9447 | eval "$ac_cv_have_x" |
9448 | fi # $with_x != no | |
10f2d63a | 9449 | |
ab9b9eab | 9450 | if test "$have_x" != yes; then |
698dcdb6 | 9451 | echo "$ac_t""$have_x" 1>&6 |
ab9b9eab VZ |
9452 | no_x=yes |
9453 | else | |
9454 | # If each of the values was on the command line, it overrides each guess. | |
9455 | test "x$x_includes" = xNONE && x_includes=$ac_x_includes | |
9456 | test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries | |
9457 | # Update the cache value to reflect the command line values. | |
9458 | ac_cv_have_x="have_x=yes \ | |
9459 | ac_x_includes=$x_includes ac_x_libraries=$x_libraries" | |
698dcdb6 | 9460 | echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6 |
ab9b9eab | 9461 | fi |
10f2d63a | 9462 | |
ab9b9eab VZ |
9463 | if test "$no_x" = yes; then |
9464 | # Not all programs may use this symbol, but it does not hurt to define it. | |
698dcdb6 | 9465 | cat >> confdefs.h <<\EOF |
ab9b9eab VZ |
9466 | #define X_DISPLAY_MISSING 1 |
9467 | EOF | |
10f2d63a | 9468 | |
ab9b9eab VZ |
9469 | X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= |
9470 | else | |
9471 | if test -n "$x_includes"; then | |
9472 | X_CFLAGS="$X_CFLAGS -I$x_includes" | |
10f2d63a VZ |
9473 | fi |
9474 | ||
ab9b9eab VZ |
9475 | # It would also be nice to do this for all -L options, not just this one. |
9476 | if test -n "$x_libraries"; then | |
9477 | X_LIBS="$X_LIBS -L$x_libraries" | |
9478 | # For Solaris; some versions of Sun CC require a space after -R and | |
9479 | # others require no space. Words are not sufficient . . . . | |
698dcdb6 | 9480 | case "`(uname -sr) 2>/dev/null`" in |
ab9b9eab | 9481 | "SunOS 5"*) |
698dcdb6 | 9482 | echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6 |
d73be714 | 9483 | echo "configure:9484: checking whether -R must be followed by a space" >&5 |
698dcdb6 VZ |
9484 | ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries" |
9485 | cat > conftest.$ac_ext <<EOF | |
d73be714 | 9486 | #line 9487 "configure" |
ab9b9eab | 9487 | #include "confdefs.h" |
10f2d63a | 9488 | |
698dcdb6 | 9489 | int main() { |
788deba1 | 9490 | |
698dcdb6 VZ |
9491 | ; return 0; } |
9492 | EOF | |
d73be714 | 9493 | if { (eval echo configure:9494: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 | 9494 | rm -rf conftest* |
ab9b9eab VZ |
9495 | ac_R_nospace=yes |
9496 | else | |
698dcdb6 VZ |
9497 | echo "configure: failed program was:" >&5 |
9498 | cat conftest.$ac_ext >&5 | |
9499 | rm -rf conftest* | |
9500 | ac_R_nospace=no | |
ab9b9eab | 9501 | fi |
698dcdb6 | 9502 | rm -f conftest* |
ab9b9eab | 9503 | if test $ac_R_nospace = yes; then |
698dcdb6 | 9504 | echo "$ac_t""no" 1>&6 |
ab9b9eab VZ |
9505 | X_LIBS="$X_LIBS -R$x_libraries" |
9506 | else | |
9507 | LIBS="$ac_xsave_LIBS -R $x_libraries" | |
698dcdb6 | 9508 | cat > conftest.$ac_ext <<EOF |
d73be714 | 9509 | #line 9510 "configure" |
ab9b9eab | 9510 | #include "confdefs.h" |
788deba1 | 9511 | |
698dcdb6 | 9512 | int main() { |
ab9b9eab | 9513 | |
698dcdb6 VZ |
9514 | ; return 0; } |
9515 | EOF | |
d73be714 | 9516 | if { (eval echo configure:9517: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 | 9517 | rm -rf conftest* |
ab9b9eab VZ |
9518 | ac_R_space=yes |
9519 | else | |
698dcdb6 VZ |
9520 | echo "configure: failed program was:" >&5 |
9521 | cat conftest.$ac_ext >&5 | |
9522 | rm -rf conftest* | |
9523 | ac_R_space=no | |
ab9b9eab | 9524 | fi |
698dcdb6 | 9525 | rm -f conftest* |
ab9b9eab | 9526 | if test $ac_R_space = yes; then |
698dcdb6 | 9527 | echo "$ac_t""yes" 1>&6 |
ab9b9eab VZ |
9528 | X_LIBS="$X_LIBS -R $x_libraries" |
9529 | else | |
698dcdb6 | 9530 | echo "$ac_t""neither works" 1>&6 |
ab9b9eab VZ |
9531 | fi |
9532 | fi | |
698dcdb6 | 9533 | LIBS="$ac_xsave_LIBS" |
ab9b9eab VZ |
9534 | esac |
9535 | fi | |
9536 | ||
9537 | # Check for system-dependent libraries X programs must link with. | |
9538 | # Do this before checking for the system-independent R6 libraries | |
9539 | # (-lICE), since we may need -lsocket or whatever for X linking. | |
9540 | ||
9541 | if test "$ISC" = yes; then | |
9542 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" | |
9543 | else | |
698dcdb6 VZ |
9544 | # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X |
9545 | # libraries were built with DECnet support. And karl@cs.umb.edu says | |
ab9b9eab | 9546 | # the Alpha needs dnet_stub (dnet does not exist). |
698dcdb6 | 9547 | echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6 |
d73be714 | 9548 | echo "configure:9549: checking for dnet_ntoa in -ldnet" >&5 |
698dcdb6 VZ |
9549 | ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'` |
9550 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
9551 | echo $ac_n "(cached) $ac_c" 1>&6 | |
ab9b9eab | 9552 | else |
698dcdb6 | 9553 | ac_save_LIBS="$LIBS" |
ab9b9eab | 9554 | LIBS="-ldnet $LIBS" |
698dcdb6 | 9555 | cat > conftest.$ac_ext <<EOF |
d73be714 | 9556 | #line 9557 "configure" |
ab9b9eab VZ |
9557 | #include "confdefs.h" |
9558 | /* Override any gcc2 internal prototype to avoid an error. */ | |
9559 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
9560 | builtin and then its argument prototype would still apply. */ |
9561 | char dnet_ntoa(); | |
9562 | ||
9563 | int main() { | |
9564 | dnet_ntoa() | |
9565 | ; return 0; } | |
9566 | EOF | |
d73be714 | 9567 | if { (eval echo configure:9568: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
9568 | rm -rf conftest* |
9569 | eval "ac_cv_lib_$ac_lib_var=yes" | |
9570 | else | |
9571 | echo "configure: failed program was:" >&5 | |
9572 | cat conftest.$ac_ext >&5 | |
9573 | rm -rf conftest* | |
9574 | eval "ac_cv_lib_$ac_lib_var=no" | |
9575 | fi | |
9576 | rm -f conftest* | |
9577 | LIBS="$ac_save_LIBS" | |
9578 | ||
9579 | fi | |
9580 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
9581 | echo "$ac_t""yes" 1>&6 | |
ab9b9eab | 9582 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" |
698dcdb6 VZ |
9583 | else |
9584 | echo "$ac_t""no" 1>&6 | |
ab9b9eab VZ |
9585 | fi |
9586 | ||
9587 | if test $ac_cv_lib_dnet_dnet_ntoa = no; then | |
698dcdb6 | 9588 | echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6 |
d73be714 | 9589 | echo "configure:9590: checking for dnet_ntoa in -ldnet_stub" >&5 |
698dcdb6 VZ |
9590 | ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'` |
9591 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
9592 | echo $ac_n "(cached) $ac_c" 1>&6 | |
ab9b9eab | 9593 | else |
698dcdb6 | 9594 | ac_save_LIBS="$LIBS" |
ab9b9eab | 9595 | LIBS="-ldnet_stub $LIBS" |
698dcdb6 | 9596 | cat > conftest.$ac_ext <<EOF |
d73be714 | 9597 | #line 9598 "configure" |
ab9b9eab VZ |
9598 | #include "confdefs.h" |
9599 | /* Override any gcc2 internal prototype to avoid an error. */ | |
9600 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
9601 | builtin and then its argument prototype would still apply. */ |
9602 | char dnet_ntoa(); | |
9603 | ||
9604 | int main() { | |
9605 | dnet_ntoa() | |
9606 | ; return 0; } | |
9607 | EOF | |
d73be714 | 9608 | if { (eval echo configure:9609: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
9609 | rm -rf conftest* |
9610 | eval "ac_cv_lib_$ac_lib_var=yes" | |
9611 | else | |
9612 | echo "configure: failed program was:" >&5 | |
9613 | cat conftest.$ac_ext >&5 | |
9614 | rm -rf conftest* | |
9615 | eval "ac_cv_lib_$ac_lib_var=no" | |
9616 | fi | |
9617 | rm -f conftest* | |
9618 | LIBS="$ac_save_LIBS" | |
9619 | ||
9620 | fi | |
9621 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
9622 | echo "$ac_t""yes" 1>&6 | |
ab9b9eab | 9623 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" |
698dcdb6 VZ |
9624 | else |
9625 | echo "$ac_t""no" 1>&6 | |
ab9b9eab VZ |
9626 | fi |
9627 | ||
9628 | fi | |
9629 | ||
9630 | # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT, | |
9631 | # to get the SysV transport functions. | |
698dcdb6 | 9632 | # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4) |
ab9b9eab VZ |
9633 | # needs -lnsl. |
9634 | # The nsl library prevents programs from opening the X display | |
698dcdb6 VZ |
9635 | # on Irix 5.2, according to dickey@clark.net. |
9636 | echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6 | |
d73be714 | 9637 | echo "configure:9638: checking for gethostbyname" >&5 |
698dcdb6 VZ |
9638 | if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then |
9639 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9640 | else | |
9641 | cat > conftest.$ac_ext <<EOF | |
d73be714 | 9642 | #line 9643 "configure" |
ab9b9eab VZ |
9643 | #include "confdefs.h" |
9644 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 9645 | which can conflict with char gethostbyname(); below. */ |
ab9b9eab VZ |
9646 | #include <assert.h> |
9647 | /* Override any gcc2 internal prototype to avoid an error. */ | |
9648 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
9649 | builtin and then its argument prototype would still apply. */ |
9650 | char gethostbyname(); | |
9651 | ||
9652 | int main() { | |
ab9b9eab VZ |
9653 | |
9654 | /* The GNU C library defines this for functions which it implements | |
9655 | to always fail with ENOSYS. Some functions are actually named | |
9656 | something starting with __ and the normal name is an alias. */ | |
9657 | #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname) | |
9658 | choke me | |
9659 | #else | |
698dcdb6 | 9660 | gethostbyname(); |
ab9b9eab VZ |
9661 | #endif |
9662 | ||
698dcdb6 VZ |
9663 | ; return 0; } |
9664 | EOF | |
d73be714 | 9665 | if { (eval echo configure:9666: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
9666 | rm -rf conftest* |
9667 | eval "ac_cv_func_gethostbyname=yes" | |
9668 | else | |
9669 | echo "configure: failed program was:" >&5 | |
9670 | cat conftest.$ac_ext >&5 | |
9671 | rm -rf conftest* | |
9672 | eval "ac_cv_func_gethostbyname=no" | |
9673 | fi | |
9674 | rm -f conftest* | |
9675 | fi | |
9676 | ||
9677 | if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then | |
9678 | echo "$ac_t""yes" 1>&6 | |
9679 | : | |
9680 | else | |
9681 | echo "$ac_t""no" 1>&6 | |
9682 | fi | |
ab9b9eab VZ |
9683 | |
9684 | if test $ac_cv_func_gethostbyname = no; then | |
698dcdb6 | 9685 | echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6 |
d73be714 | 9686 | echo "configure:9687: checking for gethostbyname in -lnsl" >&5 |
698dcdb6 VZ |
9687 | ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'` |
9688 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
9689 | echo $ac_n "(cached) $ac_c" 1>&6 | |
ab9b9eab | 9690 | else |
698dcdb6 | 9691 | ac_save_LIBS="$LIBS" |
ab9b9eab | 9692 | LIBS="-lnsl $LIBS" |
698dcdb6 | 9693 | cat > conftest.$ac_ext <<EOF |
d73be714 | 9694 | #line 9695 "configure" |
ab9b9eab VZ |
9695 | #include "confdefs.h" |
9696 | /* Override any gcc2 internal prototype to avoid an error. */ | |
9697 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
9698 | builtin and then its argument prototype would still apply. */ |
9699 | char gethostbyname(); | |
6232543b | 9700 | |
698dcdb6 VZ |
9701 | int main() { |
9702 | gethostbyname() | |
9703 | ; return 0; } | |
9704 | EOF | |
d73be714 | 9705 | if { (eval echo configure:9706: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
9706 | rm -rf conftest* |
9707 | eval "ac_cv_lib_$ac_lib_var=yes" | |
703e0a69 | 9708 | else |
698dcdb6 VZ |
9709 | echo "configure: failed program was:" >&5 |
9710 | cat conftest.$ac_ext >&5 | |
9711 | rm -rf conftest* | |
9712 | eval "ac_cv_lib_$ac_lib_var=no" | |
9713 | fi | |
9714 | rm -f conftest* | |
9715 | LIBS="$ac_save_LIBS" | |
1e487827 | 9716 | |
698dcdb6 VZ |
9717 | fi |
9718 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
9719 | echo "$ac_t""yes" 1>&6 | |
9720 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" | |
9721 | else | |
9722 | echo "$ac_t""no" 1>&6 | |
ab9b9eab VZ |
9723 | fi |
9724 | ||
9725 | fi | |
9726 | ||
9727 | # lieder@skyler.mavd.honeywell.com says without -lsocket, | |
9728 | # socket/setsockopt and other routines are undefined under SCO ODT | |
9729 | # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary | |
698dcdb6 VZ |
9730 | # on later versions), says simon@lia.di.epfl.ch: it contains |
9731 | # gethostby* variants that don't use the nameserver (or something). | |
9732 | # -lsocket must be given before -lnsl if both are needed. | |
9733 | # We assume that if connect needs -lnsl, so does gethostbyname. | |
9734 | echo $ac_n "checking for connect""... $ac_c" 1>&6 | |
d73be714 | 9735 | echo "configure:9736: checking for connect" >&5 |
698dcdb6 VZ |
9736 | if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then |
9737 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9738 | else | |
9739 | cat > conftest.$ac_ext <<EOF | |
d73be714 | 9740 | #line 9741 "configure" |
ab9b9eab VZ |
9741 | #include "confdefs.h" |
9742 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 9743 | which can conflict with char connect(); below. */ |
ab9b9eab VZ |
9744 | #include <assert.h> |
9745 | /* Override any gcc2 internal prototype to avoid an error. */ | |
9746 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
9747 | builtin and then its argument prototype would still apply. */ |
9748 | char connect(); | |
9749 | ||
9750 | int main() { | |
ab9b9eab VZ |
9751 | |
9752 | /* The GNU C library defines this for functions which it implements | |
9753 | to always fail with ENOSYS. Some functions are actually named | |
9754 | something starting with __ and the normal name is an alias. */ | |
9755 | #if defined (__stub_connect) || defined (__stub___connect) | |
9756 | choke me | |
9757 | #else | |
698dcdb6 | 9758 | connect(); |
ab9b9eab VZ |
9759 | #endif |
9760 | ||
698dcdb6 VZ |
9761 | ; return 0; } |
9762 | EOF | |
d73be714 | 9763 | if { (eval echo configure:9764: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
9764 | rm -rf conftest* |
9765 | eval "ac_cv_func_connect=yes" | |
9766 | else | |
9767 | echo "configure: failed program was:" >&5 | |
9768 | cat conftest.$ac_ext >&5 | |
9769 | rm -rf conftest* | |
9770 | eval "ac_cv_func_connect=no" | |
9771 | fi | |
9772 | rm -f conftest* | |
9773 | fi | |
9774 | ||
9775 | if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then | |
9776 | echo "$ac_t""yes" 1>&6 | |
9777 | : | |
9778 | else | |
9779 | echo "$ac_t""no" 1>&6 | |
9780 | fi | |
ab9b9eab VZ |
9781 | |
9782 | if test $ac_cv_func_connect = no; then | |
698dcdb6 | 9783 | echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6 |
d73be714 | 9784 | echo "configure:9785: checking for connect in -lsocket" >&5 |
698dcdb6 VZ |
9785 | ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'` |
9786 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
9787 | echo $ac_n "(cached) $ac_c" 1>&6 | |
ab9b9eab | 9788 | else |
698dcdb6 | 9789 | ac_save_LIBS="$LIBS" |
ab9b9eab | 9790 | LIBS="-lsocket $X_EXTRA_LIBS $LIBS" |
698dcdb6 | 9791 | cat > conftest.$ac_ext <<EOF |
d73be714 | 9792 | #line 9793 "configure" |
ab9b9eab VZ |
9793 | #include "confdefs.h" |
9794 | /* Override any gcc2 internal prototype to avoid an error. */ | |
9795 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
9796 | builtin and then its argument prototype would still apply. */ |
9797 | char connect(); | |
9798 | ||
9799 | int main() { | |
9800 | connect() | |
9801 | ; return 0; } | |
9802 | EOF | |
d73be714 | 9803 | if { (eval echo configure:9804: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
9804 | rm -rf conftest* |
9805 | eval "ac_cv_lib_$ac_lib_var=yes" | |
9806 | else | |
9807 | echo "configure: failed program was:" >&5 | |
9808 | cat conftest.$ac_ext >&5 | |
9809 | rm -rf conftest* | |
9810 | eval "ac_cv_lib_$ac_lib_var=no" | |
9811 | fi | |
9812 | rm -f conftest* | |
9813 | LIBS="$ac_save_LIBS" | |
9814 | ||
9815 | fi | |
9816 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
9817 | echo "$ac_t""yes" 1>&6 | |
ab9b9eab | 9818 | X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" |
698dcdb6 VZ |
9819 | else |
9820 | echo "$ac_t""no" 1>&6 | |
ab9b9eab VZ |
9821 | fi |
9822 | ||
9823 | fi | |
9824 | ||
698dcdb6 VZ |
9825 | # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX. |
9826 | echo $ac_n "checking for remove""... $ac_c" 1>&6 | |
d73be714 | 9827 | echo "configure:9828: checking for remove" >&5 |
698dcdb6 VZ |
9828 | if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then |
9829 | echo $ac_n "(cached) $ac_c" 1>&6 | |
ab9b9eab | 9830 | else |
698dcdb6 | 9831 | cat > conftest.$ac_ext <<EOF |
d73be714 | 9832 | #line 9833 "configure" |
ab9b9eab VZ |
9833 | #include "confdefs.h" |
9834 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 9835 | which can conflict with char remove(); below. */ |
ab9b9eab VZ |
9836 | #include <assert.h> |
9837 | /* Override any gcc2 internal prototype to avoid an error. */ | |
9838 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
9839 | builtin and then its argument prototype would still apply. */ |
9840 | char remove(); | |
9841 | ||
9842 | int main() { | |
ab9b9eab VZ |
9843 | |
9844 | /* The GNU C library defines this for functions which it implements | |
9845 | to always fail with ENOSYS. Some functions are actually named | |
9846 | something starting with __ and the normal name is an alias. */ | |
9847 | #if defined (__stub_remove) || defined (__stub___remove) | |
9848 | choke me | |
9849 | #else | |
698dcdb6 | 9850 | remove(); |
ab9b9eab VZ |
9851 | #endif |
9852 | ||
698dcdb6 VZ |
9853 | ; return 0; } |
9854 | EOF | |
d73be714 | 9855 | if { (eval echo configure:9856: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
9856 | rm -rf conftest* |
9857 | eval "ac_cv_func_remove=yes" | |
9858 | else | |
9859 | echo "configure: failed program was:" >&5 | |
9860 | cat conftest.$ac_ext >&5 | |
9861 | rm -rf conftest* | |
9862 | eval "ac_cv_func_remove=no" | |
9863 | fi | |
9864 | rm -f conftest* | |
9865 | fi | |
9866 | ||
9867 | if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then | |
9868 | echo "$ac_t""yes" 1>&6 | |
9869 | : | |
9870 | else | |
9871 | echo "$ac_t""no" 1>&6 | |
9872 | fi | |
ab9b9eab VZ |
9873 | |
9874 | if test $ac_cv_func_remove = no; then | |
698dcdb6 | 9875 | echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6 |
d73be714 | 9876 | echo "configure:9877: checking for remove in -lposix" >&5 |
698dcdb6 VZ |
9877 | ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'` |
9878 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
9879 | echo $ac_n "(cached) $ac_c" 1>&6 | |
ab9b9eab | 9880 | else |
698dcdb6 | 9881 | ac_save_LIBS="$LIBS" |
ab9b9eab | 9882 | LIBS="-lposix $LIBS" |
698dcdb6 | 9883 | cat > conftest.$ac_ext <<EOF |
d73be714 | 9884 | #line 9885 "configure" |
ab9b9eab VZ |
9885 | #include "confdefs.h" |
9886 | /* Override any gcc2 internal prototype to avoid an error. */ | |
9887 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
9888 | builtin and then its argument prototype would still apply. */ |
9889 | char remove(); | |
9890 | ||
9891 | int main() { | |
9892 | remove() | |
9893 | ; return 0; } | |
9894 | EOF | |
d73be714 | 9895 | if { (eval echo configure:9896: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
9896 | rm -rf conftest* |
9897 | eval "ac_cv_lib_$ac_lib_var=yes" | |
9898 | else | |
9899 | echo "configure: failed program was:" >&5 | |
9900 | cat conftest.$ac_ext >&5 | |
9901 | rm -rf conftest* | |
9902 | eval "ac_cv_lib_$ac_lib_var=no" | |
9903 | fi | |
9904 | rm -f conftest* | |
9905 | LIBS="$ac_save_LIBS" | |
9906 | ||
9907 | fi | |
9908 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
9909 | echo "$ac_t""yes" 1>&6 | |
ab9b9eab | 9910 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" |
698dcdb6 VZ |
9911 | else |
9912 | echo "$ac_t""no" 1>&6 | |
ab9b9eab VZ |
9913 | fi |
9914 | ||
9915 | fi | |
9916 | ||
9917 | # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. | |
698dcdb6 | 9918 | echo $ac_n "checking for shmat""... $ac_c" 1>&6 |
d73be714 | 9919 | echo "configure:9920: checking for shmat" >&5 |
698dcdb6 VZ |
9920 | if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then |
9921 | echo $ac_n "(cached) $ac_c" 1>&6 | |
ab9b9eab | 9922 | else |
698dcdb6 | 9923 | cat > conftest.$ac_ext <<EOF |
d73be714 | 9924 | #line 9925 "configure" |
ab9b9eab VZ |
9925 | #include "confdefs.h" |
9926 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 9927 | which can conflict with char shmat(); below. */ |
ab9b9eab VZ |
9928 | #include <assert.h> |
9929 | /* Override any gcc2 internal prototype to avoid an error. */ | |
9930 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
9931 | builtin and then its argument prototype would still apply. */ |
9932 | char shmat(); | |
9933 | ||
9934 | int main() { | |
ab9b9eab VZ |
9935 | |
9936 | /* The GNU C library defines this for functions which it implements | |
9937 | to always fail with ENOSYS. Some functions are actually named | |
9938 | something starting with __ and the normal name is an alias. */ | |
9939 | #if defined (__stub_shmat) || defined (__stub___shmat) | |
9940 | choke me | |
9941 | #else | |
698dcdb6 | 9942 | shmat(); |
ab9b9eab VZ |
9943 | #endif |
9944 | ||
698dcdb6 VZ |
9945 | ; return 0; } |
9946 | EOF | |
d73be714 | 9947 | if { (eval echo configure:9948: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
9948 | rm -rf conftest* |
9949 | eval "ac_cv_func_shmat=yes" | |
9950 | else | |
9951 | echo "configure: failed program was:" >&5 | |
9952 | cat conftest.$ac_ext >&5 | |
9953 | rm -rf conftest* | |
9954 | eval "ac_cv_func_shmat=no" | |
9955 | fi | |
9956 | rm -f conftest* | |
9957 | fi | |
9958 | ||
9959 | if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then | |
9960 | echo "$ac_t""yes" 1>&6 | |
9961 | : | |
9962 | else | |
9963 | echo "$ac_t""no" 1>&6 | |
9964 | fi | |
ab9b9eab VZ |
9965 | |
9966 | if test $ac_cv_func_shmat = no; then | |
698dcdb6 | 9967 | echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6 |
d73be714 | 9968 | echo "configure:9969: checking for shmat in -lipc" >&5 |
698dcdb6 VZ |
9969 | ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'` |
9970 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
9971 | echo $ac_n "(cached) $ac_c" 1>&6 | |
ab9b9eab | 9972 | else |
698dcdb6 | 9973 | ac_save_LIBS="$LIBS" |
ab9b9eab | 9974 | LIBS="-lipc $LIBS" |
698dcdb6 | 9975 | cat > conftest.$ac_ext <<EOF |
d73be714 | 9976 | #line 9977 "configure" |
ab9b9eab VZ |
9977 | #include "confdefs.h" |
9978 | /* Override any gcc2 internal prototype to avoid an error. */ | |
9979 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
9980 | builtin and then its argument prototype would still apply. */ |
9981 | char shmat(); | |
9982 | ||
9983 | int main() { | |
9984 | shmat() | |
9985 | ; return 0; } | |
9986 | EOF | |
d73be714 | 9987 | if { (eval echo configure:9988: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
9988 | rm -rf conftest* |
9989 | eval "ac_cv_lib_$ac_lib_var=yes" | |
9990 | else | |
9991 | echo "configure: failed program was:" >&5 | |
9992 | cat conftest.$ac_ext >&5 | |
9993 | rm -rf conftest* | |
9994 | eval "ac_cv_lib_$ac_lib_var=no" | |
9995 | fi | |
9996 | rm -f conftest* | |
9997 | LIBS="$ac_save_LIBS" | |
9998 | ||
9999 | fi | |
10000 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
10001 | echo "$ac_t""yes" 1>&6 | |
ab9b9eab | 10002 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" |
698dcdb6 VZ |
10003 | else |
10004 | echo "$ac_t""no" 1>&6 | |
ab9b9eab VZ |
10005 | fi |
10006 | ||
10007 | fi | |
10008 | fi | |
10009 | ||
10010 | # Check for libraries that X11R6 Xt/Xaw programs need. | |
698dcdb6 | 10011 | ac_save_LDFLAGS="$LDFLAGS" |
ab9b9eab VZ |
10012 | test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" |
10013 | # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to | |
10014 | # check for ICE first), but we must link in the order -lSM -lICE or | |
10015 | # we get undefined symbols. So assume we have SM if we have ICE. | |
10016 | # These have to be linked with before -lX11, unlike the other | |
10017 | # libraries we check for below, so use a different variable. | |
698dcdb6 VZ |
10018 | # --interran@uluru.Stanford.EDU, kb@cs.umb.edu. |
10019 | echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6 | |
d73be714 | 10020 | echo "configure:10021: checking for IceConnectionNumber in -lICE" >&5 |
698dcdb6 VZ |
10021 | ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'` |
10022 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
10023 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10024 | else | |
10025 | ac_save_LIBS="$LIBS" | |
ab9b9eab | 10026 | LIBS="-lICE $X_EXTRA_LIBS $LIBS" |
698dcdb6 | 10027 | cat > conftest.$ac_ext <<EOF |
d73be714 | 10028 | #line 10029 "configure" |
ab9b9eab VZ |
10029 | #include "confdefs.h" |
10030 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10031 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
10032 | builtin and then its argument prototype would still apply. */ |
10033 | char IceConnectionNumber(); | |
10034 | ||
10035 | int main() { | |
10036 | IceConnectionNumber() | |
10037 | ; return 0; } | |
10038 | EOF | |
d73be714 | 10039 | if { (eval echo configure:10040: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
10040 | rm -rf conftest* |
10041 | eval "ac_cv_lib_$ac_lib_var=yes" | |
10042 | else | |
10043 | echo "configure: failed program was:" >&5 | |
10044 | cat conftest.$ac_ext >&5 | |
10045 | rm -rf conftest* | |
10046 | eval "ac_cv_lib_$ac_lib_var=no" | |
10047 | fi | |
10048 | rm -f conftest* | |
10049 | LIBS="$ac_save_LIBS" | |
10050 | ||
10051 | fi | |
10052 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
10053 | echo "$ac_t""yes" 1>&6 | |
ab9b9eab | 10054 | X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" |
698dcdb6 VZ |
10055 | else |
10056 | echo "$ac_t""no" 1>&6 | |
ab9b9eab VZ |
10057 | fi |
10058 | ||
698dcdb6 | 10059 | LDFLAGS="$ac_save_LDFLAGS" |
ab9b9eab VZ |
10060 | |
10061 | fi | |
10062 | ||
1e6feb95 VZ |
10063 | CPPFLAGS="$CPPFLAGS $X_CFLAGS" |
10064 | LDFLAGS="$LDFLAGS $X_LIBS" | |
ab9b9eab | 10065 | |
1e6feb95 VZ |
10066 | if test "$wxUSE_MOTIF" = 1; then |
10067 | if test "$no_x" = "yes"; then | |
10068 | { echo "configure: error: X11 not found" 1>&2; exit 1; } | |
10069 | fi | |
ab9b9eab | 10070 | |
1e6feb95 VZ |
10071 | GUI_TK_LIBRARY="$X_LIBS" |
10072 | TOOLKIT_INCLUDE="$X_CFLAGS" | |
ab9b9eab | 10073 | |
1e6feb95 | 10074 | AFMINSTALL=afminstall |
dad6c0ea | 10075 | |
1e6feb95 VZ |
10076 | |
10077 | COMPILED_X_PROGRAM=0 | |
cd6d6d5b | 10078 | |
1e6feb95 | 10079 | echo $ac_n "checking for Motif/Lesstif headers""... $ac_c" 1>&6 |
d73be714 | 10080 | echo "configure:10081: checking for Motif/Lesstif headers" >&5 |
1e6feb95 | 10081 | |
ab9b9eab VZ |
10082 | ac_find_includes= |
10083 | for ac_dir in $SEARCH_INCLUDE; | |
10084 | do | |
10085 | if test -f "$ac_dir/Xm/Xm.h"; then | |
10086 | ac_find_includes=$ac_dir | |
10087 | break | |
10088 | fi | |
10089 | done | |
10090 | ||
1e6feb95 VZ |
10091 | if test "$ac_find_includes" != "" ; then |
10092 | echo "$ac_t""found $ac_find_includes" 1>&6 | |
10093 | else | |
10094 | cat > conftest.$ac_ext <<EOF | |
d73be714 | 10095 | #line 10096 "configure" |
cd6d6d5b VZ |
10096 | #include "confdefs.h" |
10097 | ||
1e6feb95 VZ |
10098 | #include <Xm/Xm.h> |
10099 | ||
698dcdb6 | 10100 | int main() { |
cd6d6d5b | 10101 | |
1e6feb95 | 10102 | int version; |
cd6d6d5b | 10103 | |
1e6feb95 VZ |
10104 | version = xmUseVersion; |
10105 | ||
698dcdb6 VZ |
10106 | ; return 0; } |
10107 | EOF | |
d73be714 | 10108 | if { (eval echo configure:10109: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 VZ |
10109 | rm -rf conftest* |
10110 | ||
1e6feb95 VZ |
10111 | echo "$ac_t""found in default search path" 1>&6 |
10112 | COMPILED_X_PROGRAM=1 | |
10113 | ||
cd6d6d5b | 10114 | else |
698dcdb6 VZ |
10115 | echo "configure: failed program was:" >&5 |
10116 | cat conftest.$ac_ext >&5 | |
10117 | rm -rf conftest* | |
10118 | ||
1e6feb95 VZ |
10119 | echo "$ac_t""no" 1>&6 |
10120 | { echo "configure: error: please set CFLAGS to contain the location of Xm/Xm.h" 1>&2; exit 1; } | |
10121 | ||
698dcdb6 | 10122 | |
cd6d6d5b | 10123 | fi |
698dcdb6 | 10124 | rm -f conftest* |
1e6feb95 | 10125 | fi |
ab9b9eab | 10126 | |
1e6feb95 VZ |
10127 | if test "$COMPILED_X_PROGRAM" = 0; then |
10128 | echo $ac_n "checking for Motif/Lesstif library""... $ac_c" 1>&6 | |
d73be714 | 10129 | echo "configure:10130: checking for Motif/Lesstif library" >&5 |
1e6feb95 | 10130 | |
ab9b9eab VZ |
10131 | ac_find_libraries= |
10132 | for ac_dir in $SEARCH_LIB; | |
10133 | do | |
10134 | for ac_extension in a so sl; do | |
10135 | if test -f "$ac_dir/libXm.$ac_extension"; then | |
10136 | ac_find_libraries=$ac_dir | |
10137 | break 2 | |
10138 | fi | |
10139 | done | |
10140 | done | |
10141 | ||
1e6feb95 VZ |
10142 | if test "$ac_find_libraries" != "" ; then |
10143 | ||
ab9b9eab VZ |
10144 | ac_path_to_include=$ac_find_includes |
10145 | echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null | |
10146 | result=$? | |
10147 | if test $result = 0; then | |
10148 | ac_path_to_include="" | |
10149 | else | |
10150 | ac_path_to_include="-I$ac_find_includes" | |
10151 | fi | |
10152 | ||
1e6feb95 | 10153 | |
ab9b9eab VZ |
10154 | echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null |
10155 | result=$? | |
10156 | if test $result = 0; then | |
10157 | ac_path_to_link="" | |
10158 | else | |
10159 | ac_path_to_link="-L$ac_find_libraries" | |
10160 | fi | |
10161 | ||
698dcdb6 | 10162 | |
1e6feb95 VZ |
10163 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY $ac_path_to_link" |
10164 | TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE $ac_path_to_include" | |
10165 | echo "$ac_t""found at $ac_find_libraries" 1>&6 | |
10166 | else | |
10167 | cat > conftest.$ac_ext <<EOF | |
d73be714 | 10168 | #line 10169 "configure" |
cd6d6d5b | 10169 | #include "confdefs.h" |
ab9b9eab | 10170 | |
1e6feb95 VZ |
10171 | #include <Xm/Xm.h> |
10172 | ||
698dcdb6 | 10173 | int main() { |
ab9b9eab | 10174 | |
1e6feb95 | 10175 | int version; |
ab9b9eab | 10176 | |
1e6feb95 VZ |
10177 | version = xmUseVersion; |
10178 | ||
698dcdb6 VZ |
10179 | ; return 0; } |
10180 | EOF | |
d73be714 | 10181 | if { (eval echo configure:10182: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 VZ |
10182 | rm -rf conftest* |
10183 | ||
1e6feb95 VZ |
10184 | echo "$ac_t""found in default search path" 1>&6 |
10185 | COMPILED_X_PROGRAM=1 | |
10186 | ||
cd6d6d5b | 10187 | else |
698dcdb6 VZ |
10188 | echo "configure: failed program was:" >&5 |
10189 | cat conftest.$ac_ext >&5 | |
10190 | rm -rf conftest* | |
10191 | ||
1e6feb95 VZ |
10192 | echo "$ac_t""no" 1>&6 |
10193 | { echo "configure: error: please set LDFLAGS to contain the location of libXm" 1>&2; exit 1; } | |
10194 | ||
698dcdb6 | 10195 | |
cd6d6d5b | 10196 | fi |
698dcdb6 | 10197 | rm -f conftest* |
1e6feb95 | 10198 | fi |
cd6d6d5b | 10199 | fi |
ab9b9eab | 10200 | |
1e6feb95 VZ |
10201 | |
10202 | XPM_LINK="" | |
10203 | echo $ac_n "checking for Xpm library""... $ac_c" 1>&6 | |
d73be714 | 10204 | echo "configure:10205: checking for Xpm library" >&5 |
1e6feb95 | 10205 | |
ab9b9eab VZ |
10206 | ac_find_libraries= |
10207 | for ac_dir in $SEARCH_LIB; | |
10208 | do | |
10209 | for ac_extension in a so sl; do | |
10210 | if test -f "$ac_dir/libXpm.$ac_extension"; then | |
10211 | ac_find_libraries=$ac_dir | |
10212 | break 2 | |
10213 | fi | |
10214 | done | |
10215 | done | |
10216 | ||
1e6feb95 VZ |
10217 | if test "$ac_find_libraries" != "" ; then |
10218 | ||
ab9b9eab VZ |
10219 | echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null |
10220 | result=$? | |
10221 | if test $result = 0; then | |
10222 | ac_path_to_link="" | |
10223 | else | |
10224 | ac_path_to_link="-L$ac_find_libraries" | |
10225 | fi | |
10226 | ||
1e6feb95 VZ |
10227 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY $ac_path_to_link" |
10228 | XPM_LINK="-lXpm " | |
10229 | cat >> confdefs.h <<\EOF | |
ab9b9eab VZ |
10230 | #define wxHAVE_LIB_XPM 1 |
10231 | EOF | |
10232 | ||
1e6feb95 VZ |
10233 | echo "$ac_t""found at $ac_find_libraries" 1>&6 |
10234 | else | |
10235 | cat > conftest.$ac_ext <<EOF | |
d73be714 | 10236 | #line 10237 "configure" |
cd6d6d5b VZ |
10237 | #include "confdefs.h" |
10238 | ||
1e6feb95 VZ |
10239 | #include <X11/xpm.h> |
10240 | ||
698dcdb6 | 10241 | int main() { |
cd6d6d5b | 10242 | |
1e6feb95 | 10243 | int version; |
cd6d6d5b | 10244 | |
1e6feb95 VZ |
10245 | version = XpmLibraryVersion(); |
10246 | ||
698dcdb6 VZ |
10247 | ; return 0; } |
10248 | EOF | |
d73be714 | 10249 | if { (eval echo configure:10250: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 VZ |
10250 | rm -rf conftest* |
10251 | ||
1e6feb95 VZ |
10252 | XPM_LINK="-lXpm " |
10253 | cat >> confdefs.h <<\EOF | |
3ace2e6d SN |
10254 | #define wxHAVE_LIB_XPM 1 |
10255 | EOF | |
10256 | ||
1e6feb95 VZ |
10257 | echo "$ac_t""found in default search path" 1>&6 |
10258 | COMPILED_X_PROGRAM=0 | |
10259 | ||
cd6d6d5b | 10260 | else |
698dcdb6 VZ |
10261 | echo "configure: failed program was:" >&5 |
10262 | cat conftest.$ac_ext >&5 | |
10263 | rm -rf conftest* | |
10264 | ||
1e6feb95 VZ |
10265 | echo "$ac_t""no" 1>&6 |
10266 | echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2 | |
10267 | ||
698dcdb6 | 10268 | |
cd6d6d5b | 10269 | fi |
698dcdb6 | 10270 | rm -f conftest* |
1e6feb95 VZ |
10271 | fi |
10272 | ||
10273 | GUI_TK_LINK="-lXm $XPM_LINK -lXmu -lXext -lXt -lX11" | |
10274 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY $GUI_TK_LINK" | |
10275 | TOOLKIT=MOTIF | |
10276 | GUIDIST=MOTIF_DIST | |
ab9b9eab VZ |
10277 | fi |
10278 | ||
1e6feb95 VZ |
10279 | if test "$wxUSE_MAC" = 1; then |
10280 | TOOLKIT=MAC | |
10281 | GUIDIST=MACX_DIST | |
10282 | fi | |
10f2d63a | 10283 | |
1e6feb95 VZ |
10284 | if test "$wxUSE_PM" = 1; then |
10285 | TOOLKIT=PM | |
10286 | GUIDIST=GTK_DIST | |
10287 | fi | |
b4085ce6 | 10288 | |
1e6feb95 VZ |
10289 | if test "$TOOLKIT" != "PM" ; then |
10290 | TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"` | |
10291 | else | |
10292 | TOOLKIT_DIR="os2" | |
10293 | fi | |
e07802fc | 10294 | |
1e6feb95 | 10295 | TOOLKIT_NAME="${TOOLKIT_DIR}" |
10f2d63a | 10296 | |
1e6feb95 VZ |
10297 | TOOLKIT_VPATH="\${top_srcdir}/src/${TOOLKIT_DIR}" |
10298 | ||
10299 | if test "$TOOLKIT_NAME" = "motif"; then | |
10300 | TOOLKIT_VPATH="${TOOLKIT_VPATH}${PATH_IFS}\${top_srcdir}/src/motif/xmcombo" | |
10301 | fi | |
10302 | ||
10303 | if test "$wxUSE_UNIVERSAL" = "yes"; then | |
10304 | TOOLKIT_NAME="${TOOLKIT_NAME}univ" | |
10305 | UNIV_VPATH="\${top_srcdir}/src/univ${PATH_IFS}\${top_srcdir}/src/univ/themes" | |
10306 | TOOLKIT_VPATH="${UNIV_VPATH}${PATH_IFS}${TOOLKIT_VPATH}" | |
10307 | SETUPH_DIR="univ" | |
f6bcfd97 | 10308 | else |
1e6feb95 VZ |
10309 | SETUPH_DIR="${TOOLKIT_DIR}" |
10310 | fi | |
10311 | ||
10312 | if test "$wxUSE_DEBUG_FLAG" = "yes"; then | |
10313 | TOOLKIT_NAME="${TOOLKIT_NAME}d" | |
f6bcfd97 BP |
10314 | fi |
10315 | ||
2224580a | 10316 | TOOLKIT_DEF="-D__WX${TOOLKIT}__" |
1e6feb95 VZ |
10317 | if test "$wxUSE_UNIVERSAL" = "yes"; then |
10318 | TOOLKIT_DEF="${TOOLKIT_DEF} -D__WXUNIVERSAL__" | |
10319 | fi | |
10f2d63a | 10320 | |
f6bcfd97 | 10321 | WX_LIBRARY="wx_${TOOLKIT_NAME}" |
10f2d63a | 10322 | |
1e6feb95 VZ |
10323 | if test "$wxUSE_UNIVERSAL" = "yes"; then |
10324 | ALL_OBJECTS="\$(GUI_LOWLEVEL_OBJS) \${UNIVOBJS}" | |
10325 | else | |
10326 | ALL_OBJECTS="\$(GUIOBJS)" | |
10327 | fi | |
10328 | ||
10329 | ALL_OBJECTS="${ALL_OBJECTS} \$(COMMONOBJS) \$(GENERICOBJS)" | |
10330 | ||
10331 | if test "$TOOLKIT" != "MSW"; then | |
10332 | ALL_OBJECTS="${ALL_OBJECTS} \$(UNIXOBJS)" | |
10333 | fi | |
10334 | ||
10335 | if test "$wxUSE_HTML" = "yes"; then | |
10336 | ALL_OBJECTS="${ALL_OBJECTS} \$(HTMLOBJS)" | |
10337 | fi | |
3fcdd07b | 10338 | |
1e6feb95 VZ |
10339 | if test "$TOOLKIT" != "MSW"; then |
10340 | if test "$wxUSE_ODBC" = "yes" ; then | |
10341 | ALL_OBJECTS="${ALL_OBJECTS} \$(IODBCOBJS)" | |
10342 | fi | |
3fcdd07b VZ |
10343 | fi |
10344 | ||
d9d8273d | 10345 | if test "$wxUSE_LIBJPEG" = "yes" ; then |
2224580a | 10346 | ALL_OBJECTS="${ALL_OBJECTS} \$(JPEGOBJS)" |
d9d8273d RR |
10347 | fi |
10348 | if test "$wxUSE_LIBTIFF" = "yes" ; then | |
10349 | ALL_OBJECTS="${ALL_OBJECTS} \$(TIFFOBJS)" | |
10350 | fi | |
10351 | if test "$wxUSE_LIBPNG" = "yes" ; then | |
10352 | ALL_OBJECTS="${ALL_OBJECTS} \$(PNGOBJS)" | |
10353 | fi | |
10354 | if test "$wxUSE_ZLIB" = "yes" ; then | |
10355 | ALL_OBJECTS="${ALL_OBJECTS} \$(ZLIBOBJS)" | |
10356 | fi | |
3fed1840 RR |
10357 | if test "$wxUSE_FREETYPE" = "yes" ; then |
10358 | ALL_OBJECTS="${ALL_OBJECTS} \$(FREETYPEOBJS)" | |
10359 | fi | |
2224580a | 10360 | |
1e6feb95 VZ |
10361 | if test "$wxUSE_UNIVERSAL" = "yes"; then |
10362 | ALL_DEPFILES="\$(GUI_LOWLEVEL_DEPS) \$(UNIVDEPS)" | |
10363 | else | |
10364 | ALL_DEPFILES="\$(GUIDEPS)" | |
10365 | fi | |
10366 | ||
10367 | ALL_DEPFILES="${ALL_DEPFILES} \$(COMMONDEPS) \$(GENERICDEPS)" | |
10368 | ||
10369 | if test "$TOOLKIT" != "MSW"; then | |
10370 | ALL_DEPFILES="${ALL_DEPFILES} \$(UNIXDEPS)" | |
10371 | fi | |
10372 | ||
10373 | if test "$wxUSE_HTML" = "yes"; then | |
10374 | ALL_DEPFILES="${ALL_DEPFILES} \$(HTMLDEPS)" | |
10375 | fi | |
10376 | ||
10377 | PORT_FILES="src/\$(TOOLKITDIR)/files.lst" | |
10378 | if test "$wxUSE_UNIVERSAL" = "yes"; then | |
10379 | PORT_FILES="${PORT_FILES} \${top_srcdir}/src/univ/files.lst" | |
10380 | fi | |
2224580a VZ |
10381 | RPM_FILES="src/\$(TOOLKITDIR)/rpmfiles.lst" |
10382 | RPM_SPEC="wx\$(TOOLKIT).spec" | |
10383 | ||
10384 | GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST" | |
10385 | DISTDIR="wx\$(TOOLKIT)" | |
10f2d63a | 10386 | else |
dad6c0ea VZ |
10387 | USE_GUI=0 |
10388 | ||
f6bcfd97 BP |
10389 | TOOLKIT_DIR="base" |
10390 | ||
10391 | if test "$wxUSE_DEBUG_FLAG" = "yes"; then | |
10392 | TOOLKIT_NAME="${TOOLKIT_DIR}d" | |
10393 | else | |
10394 | TOOLKIT_NAME="${TOOLKIT_DIR}" | |
10395 | fi | |
10396 | ||
07eb77a6 RL |
10397 | TOOLKIT_DEF="-D__WXBASE__" |
10398 | ||
b4085ce6 GD |
10399 | ALL_OBJECTS="\$(BASE_OBJS) \$(BASE_UNIX_OBJS)" |
10400 | ALL_DEPFILES="\$(BASE_DEPS) \$(BASE_UNIX_DEPS)" | |
10f2d63a | 10401 | |
a20b6d3a VZ |
10402 | if test "$wxUSE_ZLIB" = "yes" ; then |
10403 | ALL_OBJECTS="${ALL_OBJECTS} \$(ZLIBOBJS)" | |
10404 | fi | |
10405 | ||
f6bcfd97 | 10406 | WX_LIBRARY="wx_${TOOLKIT_NAME}" |
2224580a VZ |
10407 | |
10408 | PORT_FILES="src/files.lst" | |
10409 | RPM_FILES="src/rpmfiles.lst" | |
10410 | RPM_SPEC="wxBase.spec" | |
10411 | ||
10412 | GUIDIST="BASE_DIST" | |
10413 | DISTDIR="wxBase" | |
10f2d63a VZ |
10414 | fi |
10415 | ||
10416 | WX_LIBRARY_NAME="lib${WX_LIBRARY}.la" | |
bdad4e7e | 10417 | WX_LIBRARY_NAME_GL="lib${WX_LIBRARY}_gl.la" |
10f2d63a VZ |
10418 | |
10419 | WX_LIBRARY_NAME_STATIC="lib${WX_LIBRARY}.a" | |
bdad4e7e | 10420 | WX_LIBRARY_NAME_STATIC_GL="lib${WX_LIBRARY}_gl.a" |
10f2d63a VZ |
10421 | |
10422 | WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}-${WX_RELEASE}.so.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}" | |
bdad4e7e | 10423 | WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY}_gl-${WX_RELEASE}.so.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}" |
10f2d63a VZ |
10424 | |
10425 | WX_LIBRARY_LINK1="lib${WX_LIBRARY}-${WX_RELEASE}.so.${WX_CURRENT}" | |
10426 | WX_LIBRARY_LINK2="lib${WX_LIBRARY}-${WX_RELEASE}.so" | |
10427 | WX_LIBRARY_LINK3="lib${WX_LIBRARY}.so" | |
bdad4e7e RR |
10428 | WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY}_gl-${WX_RELEASE}.so.${WX_CURRENT}" |
10429 | WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY}_gl-${WX_RELEASE}.so" | |
10430 | WX_LIBRARY_LINK3_GL="lib${WX_LIBRARY}_gl.so" | |
10f2d63a VZ |
10431 | |
10432 | SHARED_LD= | |
10433 | PIC_FLAG= | |
10434 | WX_ALL= | |
10435 | WX_ALL_INSTALLED= | |
1d62a8b4 | 10436 | BURNT_LIBRARY_NAME= |
f6bcfd97 | 10437 | WX_TARGET_LIBRARY_SONAME= |
10f2d63a | 10438 | |
698dcdb6 | 10439 | |
10f2d63a VZ |
10440 | if test "$wxUSE_SHARED" = "yes"; then |
10441 | case "${host}" in | |
10442 | *-hp-hpux* ) | |
10443 | if test "$GCC" = yes ; then | |
69ffe1d2 | 10444 | SHARED_LD="${CC} -shared -fPIC -o" |
10f2d63a VZ |
10445 | PIC_FLAG="-fPIC" |
10446 | else | |
f6bcfd97 BP |
10447 | LDFLAGS="-L/usr/lib" |
10448 | ||
10f2d63a VZ |
10449 | SHARED_LD="${CXX} -b -o" |
10450 | PIC_FLAG="+Z" | |
10451 | fi | |
f6bcfd97 BP |
10452 | WX_LIBRARY_NAME_SHARED="libwx_${TOOLKIT_NAME}.sl" |
10453 | WX_LIBRARY_NAME_SHARED_GL="libwx_${TOOLKIT_NAME}_gl.sl" | |
c661ecca | 10454 | if test "$wxUSE_OPENGL" = "yes"; then |
f6bcfd97 | 10455 | WX_ALL_INSTALLED="preinstall_gl" |
c661ecca RR |
10456 | WX_ALL="${WX_LIBRARY_NAME_SHARED} ${WX_LIBRARY_NAME_SHARED_GL}" |
10457 | else | |
10458 | WX_ALL="${WX_LIBRARY_NAME_SHARED}" | |
10459 | fi | |
10f2d63a | 10460 | ;; |
b12915c1 VZ |
10461 | |
10462 | *-*-linux* ) | |
10f2d63a VZ |
10463 | SHARED_LD="${CC} -shared -o" |
10464 | PIC_FLAG="-fPIC" | |
00cf1208 | 10465 | if test "$wxUSE_BURNT_NAME" = "yes" ; then |
05cdfc6f | 10466 | BURNT_LIBRARY_NAME="-Wl,-soname,${WX_LIBRARY_LINK1}" |
bdad4e7e | 10467 | BURNT_LIBRARY_NAME_GL="-Wl,-soname,${WX_LIBRARY_LINK1_GL}" |
f6bcfd97 | 10468 | WX_TARGET_LIBRARY_SONAME="-Wl,-soname,\$(TARGETLIB_LINK1)" |
00cf1208 | 10469 | fi |
c661ecca RR |
10470 | if test "$wxUSE_OPENGL" = "yes"; then |
10471 | WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL" | |
10472 | WX_ALL="CREATE_LINKS CREATE_LINKS_GL" | |
10473 | else | |
10474 | WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS" | |
10475 | WX_ALL="CREATE_LINKS" | |
422107f9 | 10476 | fi |
00cf1208 | 10477 | ;; |
10f2d63a VZ |
10478 | *-*-irix5* | *-*-irix6* ) |
10479 | if test "$GCC" = yes ; then | |
10480 | SHARED_LD="${CC} -shared -o" | |
10481 | PIC_FLAG="-fPIC" | |
10482 | else | |
10483 | SHARED_LD="${CXX} -shared -o" | |
10484 | fi | |
c661ecca RR |
10485 | if test "$wxUSE_OPENGL" = "yes"; then |
10486 | WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL" | |
10487 | WX_ALL="CREATE_LINKS CREATE_LINKS_GL" | |
10488 | else | |
10489 | WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS" | |
10490 | WX_ALL="CREATE_LINKS" | |
422107f9 | 10491 | fi |
10f2d63a VZ |
10492 | ;; |
10493 | *-*-solaris2* ) | |
10494 | if test "$GCC" = yes ; then | |
10495 | SHARED_LD="${CC} -shared -o" | |
10496 | PIC_FLAG="-fPIC" | |
f6bcfd97 BP |
10497 | |
10498 | CPPFLAGS="$CPPFLAGS -isystem /usr/openwin/include" | |
10f2d63a VZ |
10499 | else |
10500 | SHARED_LD="${CXX} -G -o" | |
10501 | PIC_FLAG="-KPIC" | |
10502 | fi | |
c661ecca RR |
10503 | if test "$wxUSE_OPENGL" = "yes"; then |
10504 | WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL" | |
10505 | WX_ALL="CREATE_LINKS CREATE_LINKS_GL" | |
10506 | else | |
10507 | WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS" | |
10508 | WX_ALL="CREATE_LINKS" | |
10509 | fi | |
10f2d63a VZ |
10510 | ;; |
10511 | *-*-sunos4* ) | |
10512 | SHARED_LD="${CC} -shared -o" | |
10513 | PIC_FLAG="-fPIC" | |
10514 | WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS" | |
10515 | WX_ALL="CREATE_LINKS" | |
10516 | ;; | |
95c8801c | 10517 | *-*-freebsd* | *-*-openbsd* | *-*-netbsd* ) |
10f2d63a VZ |
10518 | SHARED_LD="${CC} -shared -o" |
10519 | PIC_FLAG="-fPIC" | |
37d403aa JS |
10520 | if test "$wxUSE_OPENGL" = "yes"; then |
10521 | WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL" | |
10522 | WX_ALL="CREATE_LINKS CREATE_LINKS_GL" | |
10523 | else | |
10524 | WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS" | |
10525 | WX_ALL="CREATE_LINKS" | |
10526 | fi | |
10f2d63a | 10527 | ;; |
b4085ce6 | 10528 | *-*-darwin* ) |
ea5999b9 GD |
10529 | SHARED_LD="${CXX} -dynamiclib -o" |
10530 | PIC_FLAG="-dynamic -fPIC" | |
b4085ce6 GD |
10531 | if test "$wxUSE_OPENGL" = "yes"; then |
10532 | WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL" | |
10533 | WX_ALL="CREATE_LINKS CREATE_LINKS_GL" | |
10534 | else | |
10535 | WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS" | |
10536 | WX_ALL="CREATE_LINKS" | |
10537 | fi | |
1e6feb95 VZ |
10538 | WX_ALL="${WX_ALL} ./lib/lib${WX_LIBRARY}-${WX_RELEASE}.r" |
10539 | WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}-${WX_RELEASE}.dylib.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}" | |
10540 | WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY}_gl-${WX_RELEASE}.dylib.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}" | |
10541 | WX_LIBRARY_LINK1="lib${WX_LIBRARY}-${WX_RELEASE}.dylib.${WX_CURRENT}" | |
10542 | WX_LIBRARY_LINK2="lib${WX_LIBRARY}-${WX_RELEASE}.dylib" | |
10543 | WX_LIBRARY_LINK3="lib${WX_LIBRARY}.dylib" | |
10544 | WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY}_gl-${WX_RELEASE}.dylib.${WX_CURRENT}" | |
10545 | WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY}_gl-${WX_RELEASE}.dylib" | |
10546 | WX_LIBRARY_LINK3_GL="lib${WX_LIBRARY}_gl.dylib" | |
b4085ce6 | 10547 | ;; |
10f2d63a VZ |
10548 | *-*-osf* ) |
10549 | SHARED_LD="${CXX} -shared -o" | |
10550 | PIC_FLAG="-fPIC" | |
10551 | WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS" | |
10552 | WX_ALL="CREATE_LINKS" | |
10553 | ;; | |
10554 | *-*-dgux5* ) | |
10555 | SHARED_LD="${CXX} -shared -o" | |
10556 | PIC_FLAG="-fPIC" | |
10557 | WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS" | |
10558 | WX_ALL="CREATE_LINKS" | |
10559 | ;; | |
10560 | *-*-sysv5* ) | |
10561 | SHARED_LD="${CC} -shared -o" | |
10562 | PIC_FLAG="-fPIC" | |
10563 | WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS" | |
10564 | WX_ALL="CREATE_LINKS" | |
10565 | ;; | |
10566 | *-*-aix* ) | |
10567 | SHARED_LD="/usr/lpp/xlC/bin/makeC++SharedLib -p 0 -o" | |
10568 | WX_ALL=${WX_LIBRARY_NAME_SHARED} | |
10569 | ;; | |
1c8183e2 | 10570 | *-*-cygwin* ) |
10f2d63a | 10571 | WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}" |
bdad4e7e | 10572 | WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_STATIC_GL}" |
f6bcfd97 BP |
10573 | if test "$wxUSE_OPENGL" = "yes"; then |
10574 | WX_ALL_INSTALLED="preinstall_gl" | |
10575 | WX_ALL="${WX_LIBRARY_NAME_STATIC} ${WX_LIBRARY_NAME_STATIC_GL}" | |
10576 | else | |
10577 | WX_ALL="${WX_LIBRARY_NAME_STATIC}" | |
10578 | fi | |
10f2d63a | 10579 | ;; |
b12915c1 | 10580 | *-*-mingw32* ) |
10f2d63a | 10581 | WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}" |
bdad4e7e | 10582 | WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_STATIC_GL}" |
f6bcfd97 BP |
10583 | if test "$wxUSE_OPENGL" = "yes"; then |
10584 | WX_ALL_INSTALLED="preinstall_gl" | |
10585 | WX_ALL="${WX_LIBRARY_NAME_STATIC} ${WX_LIBRARY_NAME_STATIC_GL}" | |
10586 | else | |
10587 | WX_ALL="${WX_LIBRARY_NAME_STATIC}" | |
10588 | fi | |
10f2d63a VZ |
10589 | ;; |
10590 | *-pc-os2_emx ) | |
e07802fc VZ |
10591 | WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}" |
10592 | WX_ALL="${WX_LIBRARY_NAME_STATIC}" | |
10f2d63a | 10593 | ;; |
b12915c1 | 10594 | *-*-beos* ) |
e2b8b066 | 10595 | SHARED_LD="${LD} -shared -o" |
b12915c1 VZ |
10596 | PIC_FLAG="-fPIC" |
10597 | WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS" | |
10598 | WX_ALL="CREATE_LINKS" | |
10599 | ;; | |
10f2d63a | 10600 | *) |
698dcdb6 | 10601 | { echo "configure: error: unknown system type ${host}." 1>&2; exit 1; } |
10f2d63a VZ |
10602 | esac |
10603 | ||
10604 | if test "x$WX_TARGET_LIBRARY" = "x"; then | |
10605 | WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_SHARED}" | |
bdad4e7e | 10606 | WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_SHARED_GL}" |
10f2d63a | 10607 | fi |
3711412e | 10608 | WX_TARGET_LIBRARY_TYPE="so" |
10f2d63a VZ |
10609 | else |
10610 | WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}" | |
bdad4e7e | 10611 | WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_STATIC_GL}" |
f6bcfd97 BP |
10612 | |
10613 | if test "$wxUSE_OPENGL" = "yes"; then | |
10614 | WX_ALL_INSTALLED="preinstall_gl" | |
10615 | WX_ALL="${WX_LIBRARY_NAME_STATIC} ${WX_LIBRARY_NAME_STATIC_GL}" | |
10616 | else | |
10617 | WX_ALL="${WX_LIBRARY_NAME_STATIC}" | |
10618 | fi | |
10619 | ||
10620 | if test "$wxUSE_GUI" = "no"; then | |
10621 | WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall" | |
10622 | fi | |
10623 | ||
3711412e | 10624 | WX_TARGET_LIBRARY_TYPE="a" |
10f2d63a VZ |
10625 | fi |
10626 | ||
698dcdb6 VZ |
10627 | |
10628 | for ac_hdr in strings.h | |
10f2d63a | 10629 | do |
698dcdb6 VZ |
10630 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
10631 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
d73be714 | 10632 | echo "configure:10633: checking for $ac_hdr" >&5 |
698dcdb6 VZ |
10633 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
10634 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10635 | else | |
10636 | cat > conftest.$ac_ext <<EOF | |
d73be714 | 10637 | #line 10638 "configure" |
10f2d63a | 10638 | #include "confdefs.h" |
698dcdb6 VZ |
10639 | #include <$ac_hdr> |
10640 | EOF | |
10641 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
d73be714 | 10642 | { (eval echo configure:10643: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
10643 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
10644 | if test -z "$ac_err"; then | |
10645 | rm -rf conftest* | |
10646 | eval "ac_cv_header_$ac_safe=yes" | |
10f2d63a | 10647 | else |
698dcdb6 VZ |
10648 | echo "$ac_err" >&5 |
10649 | echo "configure: failed program was:" >&5 | |
10f2d63a | 10650 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
10651 | rm -rf conftest* |
10652 | eval "ac_cv_header_$ac_safe=no" | |
10f2d63a | 10653 | fi |
698dcdb6 | 10654 | rm -f conftest* |
10f2d63a | 10655 | fi |
698dcdb6 VZ |
10656 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
10657 | echo "$ac_t""yes" 1>&6 | |
10658 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
10659 | cat >> confdefs.h <<EOF | |
10660 | #define $ac_tr_hdr 1 | |
10f2d63a | 10661 | EOF |
698dcdb6 VZ |
10662 | |
10663 | else | |
10664 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
10665 | fi |
10666 | done | |
10667 | ||
698dcdb6 | 10668 | for ac_hdr in stdlib.h |
9cfadba2 | 10669 | do |
698dcdb6 VZ |
10670 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
10671 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
d73be714 | 10672 | echo "configure:10673: checking for $ac_hdr" >&5 |
698dcdb6 VZ |
10673 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
10674 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10675 | else | |
10676 | cat > conftest.$ac_ext <<EOF | |
d73be714 | 10677 | #line 10678 "configure" |
9cfadba2 | 10678 | #include "confdefs.h" |
698dcdb6 VZ |
10679 | #include <$ac_hdr> |
10680 | EOF | |
10681 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
d73be714 | 10682 | { (eval echo configure:10683: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
10683 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
10684 | if test -z "$ac_err"; then | |
10685 | rm -rf conftest* | |
10686 | eval "ac_cv_header_$ac_safe=yes" | |
6232543b | 10687 | else |
698dcdb6 VZ |
10688 | echo "$ac_err" >&5 |
10689 | echo "configure: failed program was:" >&5 | |
9cfadba2 | 10690 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
10691 | rm -rf conftest* |
10692 | eval "ac_cv_header_$ac_safe=no" | |
9cfadba2 | 10693 | fi |
698dcdb6 | 10694 | rm -f conftest* |
9cfadba2 | 10695 | fi |
698dcdb6 VZ |
10696 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
10697 | echo "$ac_t""yes" 1>&6 | |
10698 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
10699 | cat >> confdefs.h <<EOF | |
10700 | #define $ac_tr_hdr 1 | |
9cfadba2 | 10701 | EOF |
698dcdb6 VZ |
10702 | |
10703 | else | |
10704 | echo "$ac_t""no" 1>&6 | |
9cfadba2 VZ |
10705 | fi |
10706 | done | |
10f2d63a | 10707 | |
698dcdb6 | 10708 | for ac_hdr in unistd.h |
10f2d63a | 10709 | do |
698dcdb6 VZ |
10710 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
10711 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
d73be714 | 10712 | echo "configure:10713: checking for $ac_hdr" >&5 |
698dcdb6 VZ |
10713 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
10714 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10715 | else | |
10716 | cat > conftest.$ac_ext <<EOF | |
d73be714 | 10717 | #line 10718 "configure" |
10f2d63a | 10718 | #include "confdefs.h" |
698dcdb6 VZ |
10719 | #include <$ac_hdr> |
10720 | EOF | |
10721 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
d73be714 | 10722 | { (eval echo configure:10723: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
10723 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
10724 | if test -z "$ac_err"; then | |
10725 | rm -rf conftest* | |
10726 | eval "ac_cv_header_$ac_safe=yes" | |
6232543b | 10727 | else |
698dcdb6 VZ |
10728 | echo "$ac_err" >&5 |
10729 | echo "configure: failed program was:" >&5 | |
10f2d63a | 10730 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
10731 | rm -rf conftest* |
10732 | eval "ac_cv_header_$ac_safe=no" | |
10f2d63a | 10733 | fi |
698dcdb6 | 10734 | rm -f conftest* |
10f2d63a | 10735 | fi |
698dcdb6 VZ |
10736 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
10737 | echo "$ac_t""yes" 1>&6 | |
10738 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
10739 | cat >> confdefs.h <<EOF | |
10740 | #define $ac_tr_hdr 1 | |
10f2d63a | 10741 | EOF |
698dcdb6 VZ |
10742 | |
10743 | else | |
10744 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
10745 | fi |
10746 | done | |
10747 | ||
698dcdb6 | 10748 | for ac_hdr in wchar.h |
10f2d63a | 10749 | do |
698dcdb6 VZ |
10750 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
10751 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
d73be714 | 10752 | echo "configure:10753: checking for $ac_hdr" >&5 |
698dcdb6 VZ |
10753 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
10754 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10755 | else | |
10756 | cat > conftest.$ac_ext <<EOF | |
d73be714 | 10757 | #line 10758 "configure" |
10f2d63a | 10758 | #include "confdefs.h" |
698dcdb6 VZ |
10759 | #include <$ac_hdr> |
10760 | EOF | |
10761 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
d73be714 | 10762 | { (eval echo configure:10763: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
10763 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
10764 | if test -z "$ac_err"; then | |
10765 | rm -rf conftest* | |
10766 | eval "ac_cv_header_$ac_safe=yes" | |
6f72b082 | 10767 | else |
698dcdb6 VZ |
10768 | echo "$ac_err" >&5 |
10769 | echo "configure: failed program was:" >&5 | |
6f72b082 | 10770 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
10771 | rm -rf conftest* |
10772 | eval "ac_cv_header_$ac_safe=no" | |
6f72b082 | 10773 | fi |
698dcdb6 | 10774 | rm -f conftest* |
6f72b082 | 10775 | fi |
698dcdb6 VZ |
10776 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
10777 | echo "$ac_t""yes" 1>&6 | |
10778 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
10779 | cat >> confdefs.h <<EOF | |
10780 | #define $ac_tr_hdr 1 | |
6f72b082 | 10781 | EOF |
698dcdb6 VZ |
10782 | |
10783 | else | |
10784 | echo "$ac_t""no" 1>&6 | |
6f72b082 OK |
10785 | fi |
10786 | done | |
10787 | ||
698dcdb6 | 10788 | for ac_hdr in wcstr.h |
6f72b082 | 10789 | do |
698dcdb6 VZ |
10790 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
10791 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
d73be714 | 10792 | echo "configure:10793: checking for $ac_hdr" >&5 |
698dcdb6 VZ |
10793 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
10794 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10795 | else | |
10796 | cat > conftest.$ac_ext <<EOF | |
d73be714 | 10797 | #line 10798 "configure" |
6f72b082 | 10798 | #include "confdefs.h" |
698dcdb6 VZ |
10799 | #include <$ac_hdr> |
10800 | EOF | |
10801 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
d73be714 | 10802 | { (eval echo configure:10803: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
10803 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
10804 | if test -z "$ac_err"; then | |
10805 | rm -rf conftest* | |
10806 | eval "ac_cv_header_$ac_safe=yes" | |
6f72b082 | 10807 | else |
698dcdb6 VZ |
10808 | echo "$ac_err" >&5 |
10809 | echo "configure: failed program was:" >&5 | |
6f72b082 | 10810 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
10811 | rm -rf conftest* |
10812 | eval "ac_cv_header_$ac_safe=no" | |
6f72b082 | 10813 | fi |
698dcdb6 | 10814 | rm -f conftest* |
6f72b082 | 10815 | fi |
698dcdb6 VZ |
10816 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
10817 | echo "$ac_t""yes" 1>&6 | |
10818 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
10819 | cat >> confdefs.h <<EOF | |
10820 | #define $ac_tr_hdr 1 | |
6f72b082 | 10821 | EOF |
698dcdb6 VZ |
10822 | |
10823 | else | |
10824 | echo "$ac_t""no" 1>&6 | |
6f72b082 OK |
10825 | fi |
10826 | done | |
10827 | ||
698dcdb6 | 10828 | for ac_hdr in fnmatch.h |
6f72b082 | 10829 | do |
698dcdb6 VZ |
10830 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
10831 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
d73be714 | 10832 | echo "configure:10833: checking for $ac_hdr" >&5 |
698dcdb6 VZ |
10833 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
10834 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10835 | else | |
10836 | cat > conftest.$ac_ext <<EOF | |
d73be714 | 10837 | #line 10838 "configure" |
6f72b082 | 10838 | #include "confdefs.h" |
698dcdb6 VZ |
10839 | #include <$ac_hdr> |
10840 | EOF | |
10841 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
d73be714 | 10842 | { (eval echo configure:10843: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
10843 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
10844 | if test -z "$ac_err"; then | |
10845 | rm -rf conftest* | |
10846 | eval "ac_cv_header_$ac_safe=yes" | |
10f2d63a | 10847 | else |
698dcdb6 VZ |
10848 | echo "$ac_err" >&5 |
10849 | echo "configure: failed program was:" >&5 | |
10f2d63a | 10850 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
10851 | rm -rf conftest* |
10852 | eval "ac_cv_header_$ac_safe=no" | |
10f2d63a | 10853 | fi |
698dcdb6 | 10854 | rm -f conftest* |
10f2d63a | 10855 | fi |
698dcdb6 VZ |
10856 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
10857 | echo "$ac_t""yes" 1>&6 | |
10858 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
10859 | cat >> confdefs.h <<EOF | |
10860 | #define $ac_tr_hdr 1 | |
10f2d63a | 10861 | EOF |
698dcdb6 VZ |
10862 | |
10863 | else | |
10864 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
10865 | fi |
10866 | done | |
10867 | ||
698dcdb6 | 10868 | for ac_hdr in iconv.h |
0fb0dd83 | 10869 | do |
698dcdb6 VZ |
10870 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
10871 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
d73be714 | 10872 | echo "configure:10873: checking for $ac_hdr" >&5 |
698dcdb6 VZ |
10873 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
10874 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10875 | else | |
10876 | cat > conftest.$ac_ext <<EOF | |
d73be714 | 10877 | #line 10878 "configure" |
0fb0dd83 | 10878 | #include "confdefs.h" |
698dcdb6 VZ |
10879 | #include <$ac_hdr> |
10880 | EOF | |
10881 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
d73be714 | 10882 | { (eval echo configure:10883: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
10883 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
10884 | if test -z "$ac_err"; then | |
10885 | rm -rf conftest* | |
10886 | eval "ac_cv_header_$ac_safe=yes" | |
0fb0dd83 | 10887 | else |
698dcdb6 VZ |
10888 | echo "$ac_err" >&5 |
10889 | echo "configure: failed program was:" >&5 | |
0fb0dd83 | 10890 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
10891 | rm -rf conftest* |
10892 | eval "ac_cv_header_$ac_safe=no" | |
0fb0dd83 | 10893 | fi |
698dcdb6 | 10894 | rm -f conftest* |
0fb0dd83 | 10895 | fi |
698dcdb6 VZ |
10896 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
10897 | echo "$ac_t""yes" 1>&6 | |
10898 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
10899 | cat >> confdefs.h <<EOF | |
10900 | #define $ac_tr_hdr 1 | |
0fb0dd83 | 10901 | EOF |
698dcdb6 VZ |
10902 | |
10903 | else | |
10904 | echo "$ac_t""no" 1>&6 | |
0fb0dd83 RR |
10905 | fi |
10906 | done | |
10907 | ||
698dcdb6 | 10908 | for ac_hdr in langinfo.h |
1f8ae82f | 10909 | do |
698dcdb6 VZ |
10910 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
10911 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
d73be714 | 10912 | echo "configure:10913: checking for $ac_hdr" >&5 |
698dcdb6 VZ |
10913 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
10914 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10915 | else | |
10916 | cat > conftest.$ac_ext <<EOF | |
d73be714 | 10917 | #line 10918 "configure" |
1f8ae82f | 10918 | #include "confdefs.h" |
698dcdb6 VZ |
10919 | #include <$ac_hdr> |
10920 | EOF | |
10921 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
d73be714 | 10922 | { (eval echo configure:10923: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
10923 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
10924 | if test -z "$ac_err"; then | |
10925 | rm -rf conftest* | |
10926 | eval "ac_cv_header_$ac_safe=yes" | |
1f8ae82f | 10927 | else |
698dcdb6 VZ |
10928 | echo "$ac_err" >&5 |
10929 | echo "configure: failed program was:" >&5 | |
1f8ae82f | 10930 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
10931 | rm -rf conftest* |
10932 | eval "ac_cv_header_$ac_safe=no" | |
1f8ae82f | 10933 | fi |
698dcdb6 | 10934 | rm -f conftest* |
1f8ae82f | 10935 | fi |
698dcdb6 VZ |
10936 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
10937 | echo "$ac_t""yes" 1>&6 | |
10938 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
10939 | cat >> confdefs.h <<EOF | |
10940 | #define $ac_tr_hdr 1 | |
1f8ae82f | 10941 | EOF |
698dcdb6 VZ |
10942 | |
10943 | else | |
10944 | echo "$ac_t""no" 1>&6 | |
1f8ae82f GD |
10945 | fi |
10946 | done | |
10947 | ||
698dcdb6 | 10948 | |
73fd4a60 VZ |
10949 | if test "$wxUSE_GUI" = "yes"; then |
10950 | if test "$wxUSE_UNIX" = "yes"; then | |
698dcdb6 | 10951 | for ac_hdr in X11/XKBlib.h |
10f2d63a | 10952 | do |
698dcdb6 VZ |
10953 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
10954 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
d73be714 | 10955 | echo "configure:10956: checking for $ac_hdr" >&5 |
698dcdb6 VZ |
10956 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
10957 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10958 | else | |
10959 | cat > conftest.$ac_ext <<EOF | |
d73be714 | 10960 | #line 10961 "configure" |
10f2d63a | 10961 | #include "confdefs.h" |
698dcdb6 VZ |
10962 | #include <$ac_hdr> |
10963 | EOF | |
10964 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
d73be714 | 10965 | { (eval echo configure:10966: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
10966 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
10967 | if test -z "$ac_err"; then | |
10968 | rm -rf conftest* | |
10969 | eval "ac_cv_header_$ac_safe=yes" | |
10f2d63a | 10970 | else |
698dcdb6 VZ |
10971 | echo "$ac_err" >&5 |
10972 | echo "configure: failed program was:" >&5 | |
10f2d63a | 10973 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
10974 | rm -rf conftest* |
10975 | eval "ac_cv_header_$ac_safe=no" | |
10f2d63a | 10976 | fi |
698dcdb6 | 10977 | rm -f conftest* |
10f2d63a | 10978 | fi |
698dcdb6 VZ |
10979 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
10980 | echo "$ac_t""yes" 1>&6 | |
10981 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
10982 | cat >> confdefs.h <<EOF | |
10983 | #define $ac_tr_hdr 1 | |
10f2d63a | 10984 | EOF |
698dcdb6 VZ |
10985 | |
10986 | else | |
10987 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
10988 | fi |
10989 | done | |
10990 | ||
73fd4a60 | 10991 | fi |
10f2d63a VZ |
10992 | fi |
10993 | ||
698dcdb6 VZ |
10994 | |
10995 | echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6 | |
d73be714 | 10996 | echo "configure:10997: checking for ANSI C header files" >&5 |
698dcdb6 VZ |
10997 | if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then |
10998 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 10999 | else |
698dcdb6 | 11000 | cat > conftest.$ac_ext <<EOF |
d73be714 | 11001 | #line 11002 "configure" |
10f2d63a VZ |
11002 | #include "confdefs.h" |
11003 | #include <stdlib.h> | |
11004 | #include <stdarg.h> | |
11005 | #include <string.h> | |
11006 | #include <float.h> | |
698dcdb6 VZ |
11007 | EOF |
11008 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
d73be714 | 11009 | { (eval echo configure:11010: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
11010 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
11011 | if test -z "$ac_err"; then | |
11012 | rm -rf conftest* | |
10f2d63a VZ |
11013 | ac_cv_header_stdc=yes |
11014 | else | |
698dcdb6 VZ |
11015 | echo "$ac_err" >&5 |
11016 | echo "configure: failed program was:" >&5 | |
10f2d63a | 11017 | cat conftest.$ac_ext >&5 |
698dcdb6 | 11018 | rm -rf conftest* |
10f2d63a VZ |
11019 | ac_cv_header_stdc=no |
11020 | fi | |
698dcdb6 | 11021 | rm -f conftest* |
10f2d63a VZ |
11022 | |
11023 | if test $ac_cv_header_stdc = yes; then | |
11024 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
698dcdb6 | 11025 | cat > conftest.$ac_ext <<EOF |
d73be714 | 11026 | #line 11027 "configure" |
10f2d63a VZ |
11027 | #include "confdefs.h" |
11028 | #include <string.h> | |
698dcdb6 | 11029 | EOF |
10f2d63a VZ |
11030 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
11031 | egrep "memchr" >/dev/null 2>&1; then | |
11032 | : | |
11033 | else | |
698dcdb6 | 11034 | rm -rf conftest* |
10f2d63a VZ |
11035 | ac_cv_header_stdc=no |
11036 | fi | |
11037 | rm -f conftest* | |
11038 | ||
11039 | fi | |
11040 | ||
11041 | if test $ac_cv_header_stdc = yes; then | |
11042 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
698dcdb6 | 11043 | cat > conftest.$ac_ext <<EOF |
d73be714 | 11044 | #line 11045 "configure" |
10f2d63a VZ |
11045 | #include "confdefs.h" |
11046 | #include <stdlib.h> | |
698dcdb6 | 11047 | EOF |
10f2d63a VZ |
11048 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
11049 | egrep "free" >/dev/null 2>&1; then | |
11050 | : | |
11051 | else | |
698dcdb6 | 11052 | rm -rf conftest* |
10f2d63a VZ |
11053 | ac_cv_header_stdc=no |
11054 | fi | |
11055 | rm -f conftest* | |
11056 | ||
11057 | fi | |
11058 | ||
11059 | if test $ac_cv_header_stdc = yes; then | |
11060 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
698dcdb6 | 11061 | if test "$cross_compiling" = yes; then |
10f2d63a VZ |
11062 | : |
11063 | else | |
698dcdb6 | 11064 | cat > conftest.$ac_ext <<EOF |
d73be714 | 11065 | #line 11066 "configure" |
10f2d63a VZ |
11066 | #include "confdefs.h" |
11067 | #include <ctype.h> | |
698dcdb6 VZ |
11068 | #define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
11069 | #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
1e487827 | 11070 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
698dcdb6 VZ |
11071 | int main () { int i; for (i = 0; i < 256; i++) |
11072 | if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2); | |
11073 | exit (0); } | |
11074 | ||
11075 | EOF | |
d73be714 | 11076 | if { (eval echo configure:11077: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
698dcdb6 | 11077 | then |
10f2d63a VZ |
11078 | : |
11079 | else | |
698dcdb6 VZ |
11080 | echo "configure: failed program was:" >&5 |
11081 | cat conftest.$ac_ext >&5 | |
11082 | rm -fr conftest* | |
11083 | ac_cv_header_stdc=no | |
10f2d63a | 11084 | fi |
698dcdb6 | 11085 | rm -fr conftest* |
10f2d63a | 11086 | fi |
698dcdb6 | 11087 | |
10f2d63a VZ |
11088 | fi |
11089 | fi | |
1e487827 | 11090 | |
698dcdb6 VZ |
11091 | echo "$ac_t""$ac_cv_header_stdc" 1>&6 |
11092 | if test $ac_cv_header_stdc = yes; then | |
11093 | cat >> confdefs.h <<\EOF | |
10f2d63a VZ |
11094 | #define STDC_HEADERS 1 |
11095 | EOF | |
11096 | ||
11097 | fi | |
11098 | ||
698dcdb6 | 11099 | echo $ac_n "checking for mode_t""... $ac_c" 1>&6 |
d73be714 | 11100 | echo "configure:11101: checking for mode_t" >&5 |
698dcdb6 VZ |
11101 | if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then |
11102 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1e487827 | 11103 | else |
698dcdb6 | 11104 | cat > conftest.$ac_ext <<EOF |
d73be714 | 11105 | #line 11106 "configure" |
1e487827 | 11106 | #include "confdefs.h" |
698dcdb6 VZ |
11107 | #include <sys/types.h> |
11108 | #if STDC_HEADERS | |
11109 | #include <stdlib.h> | |
11110 | #include <stddef.h> | |
11111 | #endif | |
11112 | EOF | |
11113 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
11114 | egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then | |
11115 | rm -rf conftest* | |
10f2d63a VZ |
11116 | ac_cv_type_mode_t=yes |
11117 | else | |
698dcdb6 VZ |
11118 | rm -rf conftest* |
11119 | ac_cv_type_mode_t=no | |
703e0a69 | 11120 | fi |
698dcdb6 | 11121 | rm -f conftest* |
1e487827 | 11122 | |
698dcdb6 VZ |
11123 | fi |
11124 | echo "$ac_t""$ac_cv_type_mode_t" 1>&6 | |
11125 | if test $ac_cv_type_mode_t = no; then | |
11126 | cat >> confdefs.h <<\EOF | |
10f2d63a VZ |
11127 | #define mode_t int |
11128 | EOF | |
11129 | ||
11130 | fi | |
11131 | ||
698dcdb6 | 11132 | echo $ac_n "checking for off_t""... $ac_c" 1>&6 |
d73be714 | 11133 | echo "configure:11134: checking for off_t" >&5 |
698dcdb6 VZ |
11134 | if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then |
11135 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 11136 | else |
698dcdb6 | 11137 | cat > conftest.$ac_ext <<EOF |
d73be714 | 11138 | #line 11139 "configure" |
10f2d63a | 11139 | #include "confdefs.h" |
698dcdb6 VZ |
11140 | #include <sys/types.h> |
11141 | #if STDC_HEADERS | |
11142 | #include <stdlib.h> | |
11143 | #include <stddef.h> | |
11144 | #endif | |
11145 | EOF | |
11146 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
11147 | egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then | |
11148 | rm -rf conftest* | |
10f2d63a VZ |
11149 | ac_cv_type_off_t=yes |
11150 | else | |
698dcdb6 VZ |
11151 | rm -rf conftest* |
11152 | ac_cv_type_off_t=no | |
703e0a69 | 11153 | fi |
698dcdb6 | 11154 | rm -f conftest* |
1e487827 | 11155 | |
698dcdb6 VZ |
11156 | fi |
11157 | echo "$ac_t""$ac_cv_type_off_t" 1>&6 | |
11158 | if test $ac_cv_type_off_t = no; then | |
11159 | cat >> confdefs.h <<\EOF | |
10f2d63a VZ |
11160 | #define off_t long |
11161 | EOF | |
11162 | ||
11163 | fi | |
11164 | ||
698dcdb6 | 11165 | echo $ac_n "checking for pid_t""... $ac_c" 1>&6 |
d73be714 | 11166 | echo "configure:11167: checking for pid_t" >&5 |
698dcdb6 VZ |
11167 | if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then |
11168 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 11169 | else |
698dcdb6 | 11170 | cat > conftest.$ac_ext <<EOF |
d73be714 | 11171 | #line 11172 "configure" |
10f2d63a | 11172 | #include "confdefs.h" |
698dcdb6 VZ |
11173 | #include <sys/types.h> |
11174 | #if STDC_HEADERS | |
11175 | #include <stdlib.h> | |
11176 | #include <stddef.h> | |
11177 | #endif | |
11178 | EOF | |
11179 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
11180 | egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then | |
11181 | rm -rf conftest* | |
10f2d63a VZ |
11182 | ac_cv_type_pid_t=yes |
11183 | else | |
698dcdb6 VZ |
11184 | rm -rf conftest* |
11185 | ac_cv_type_pid_t=no | |
703e0a69 | 11186 | fi |
698dcdb6 | 11187 | rm -f conftest* |
1e487827 | 11188 | |
698dcdb6 VZ |
11189 | fi |
11190 | echo "$ac_t""$ac_cv_type_pid_t" 1>&6 | |
11191 | if test $ac_cv_type_pid_t = no; then | |
11192 | cat >> confdefs.h <<\EOF | |
10f2d63a VZ |
11193 | #define pid_t int |
11194 | EOF | |
11195 | ||
11196 | fi | |
11197 | ||
698dcdb6 | 11198 | echo $ac_n "checking for size_t""... $ac_c" 1>&6 |
d73be714 | 11199 | echo "configure:11200: checking for size_t" >&5 |
698dcdb6 VZ |
11200 | if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then |
11201 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 11202 | else |
698dcdb6 | 11203 | cat > conftest.$ac_ext <<EOF |
d73be714 | 11204 | #line 11205 "configure" |
10f2d63a | 11205 | #include "confdefs.h" |
698dcdb6 VZ |
11206 | #include <sys/types.h> |
11207 | #if STDC_HEADERS | |
11208 | #include <stdlib.h> | |
11209 | #include <stddef.h> | |
11210 | #endif | |
11211 | EOF | |
11212 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
11213 | egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then | |
11214 | rm -rf conftest* | |
10f2d63a VZ |
11215 | ac_cv_type_size_t=yes |
11216 | else | |
698dcdb6 VZ |
11217 | rm -rf conftest* |
11218 | ac_cv_type_size_t=no | |
703e0a69 | 11219 | fi |
698dcdb6 | 11220 | rm -f conftest* |
1e487827 | 11221 | |
698dcdb6 VZ |
11222 | fi |
11223 | echo "$ac_t""$ac_cv_type_size_t" 1>&6 | |
11224 | if test $ac_cv_type_size_t = no; then | |
11225 | cat >> confdefs.h <<\EOF | |
10f2d63a VZ |
11226 | #define size_t unsigned |
11227 | EOF | |
11228 | ||
11229 | fi | |
11230 | ||
698dcdb6 | 11231 | echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6 |
d73be714 | 11232 | echo "configure:11233: checking for uid_t in sys/types.h" >&5 |
698dcdb6 VZ |
11233 | if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then |
11234 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 11235 | else |
698dcdb6 | 11236 | cat > conftest.$ac_ext <<EOF |
d73be714 | 11237 | #line 11238 "configure" |
10f2d63a VZ |
11238 | #include "confdefs.h" |
11239 | #include <sys/types.h> | |
698dcdb6 | 11240 | EOF |
10f2d63a VZ |
11241 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
11242 | egrep "uid_t" >/dev/null 2>&1; then | |
698dcdb6 | 11243 | rm -rf conftest* |
10f2d63a VZ |
11244 | ac_cv_type_uid_t=yes |
11245 | else | |
698dcdb6 | 11246 | rm -rf conftest* |
10f2d63a VZ |
11247 | ac_cv_type_uid_t=no |
11248 | fi | |
11249 | rm -f conftest* | |
11250 | ||
11251 | fi | |
1e487827 | 11252 | |
698dcdb6 VZ |
11253 | echo "$ac_t""$ac_cv_type_uid_t" 1>&6 |
11254 | if test $ac_cv_type_uid_t = no; then | |
11255 | cat >> confdefs.h <<\EOF | |
10f2d63a VZ |
11256 | #define uid_t int |
11257 | EOF | |
11258 | ||
698dcdb6 | 11259 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
11260 | #define gid_t int |
11261 | EOF | |
11262 | ||
11263 | fi | |
11264 | ||
1e487827 | 11265 | |
698dcdb6 | 11266 | echo $ac_n "checking for wchar_t""... $ac_c" 1>&6 |
d73be714 | 11267 | echo "configure:11268: checking for wchar_t" >&5 |
698dcdb6 VZ |
11268 | if eval "test \"`echo '$''{'wx_cv_type_wchar_t'+set}'`\" = set"; then |
11269 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11270 | else | |
11271 | ||
11272 | cat > conftest.$ac_ext <<EOF | |
d73be714 | 11273 | #line 11274 "configure" |
0046ff7c VS |
11274 | #include "confdefs.h" |
11275 | #include <wchar.h> | |
698dcdb6 | 11276 | int main() { |
0046ff7c | 11277 | |
d836ee96 VZ |
11278 | wchar_t wc, *ws; |
11279 | wc = L'a'; | |
11280 | ws = L"Hello, world!"; | |
698dcdb6 VZ |
11281 | |
11282 | ; return 0; } | |
11283 | EOF | |
d73be714 | 11284 | if { (eval echo configure:11285: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 | 11285 | rm -rf conftest* |
1f8ae82f GD |
11286 | wx_cv_type_wchar_t=yes |
11287 | else | |
698dcdb6 VZ |
11288 | echo "configure: failed program was:" >&5 |
11289 | cat conftest.$ac_ext >&5 | |
11290 | rm -rf conftest* | |
11291 | cat > conftest.$ac_ext <<EOF | |
d73be714 | 11292 | #line 11293 "configure" |
1f8ae82f GD |
11293 | #include "confdefs.h" |
11294 | #include <stdlib.h> | |
698dcdb6 | 11295 | int main() { |
1f8ae82f | 11296 | |
d836ee96 VZ |
11297 | wchar_t wc, *ws; |
11298 | wc = L'a'; | |
11299 | ws = L"Hello, world!"; | |
698dcdb6 VZ |
11300 | |
11301 | ; return 0; } | |
11302 | EOF | |
d73be714 | 11303 | if { (eval echo configure:11304: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 | 11304 | rm -rf conftest* |
0046ff7c VS |
11305 | wx_cv_type_wchar_t=yes |
11306 | else | |
698dcdb6 VZ |
11307 | echo "configure: failed program was:" >&5 |
11308 | cat conftest.$ac_ext >&5 | |
11309 | rm -rf conftest* | |
11310 | wx_cv_type_wchar_t=no | |
0046ff7c | 11311 | fi |
698dcdb6 | 11312 | rm -f conftest* |
d836ee96 | 11313 | |
6232543b | 11314 | fi |
698dcdb6 | 11315 | rm -f conftest* |
703e0a69 | 11316 | |
1e487827 | 11317 | fi |
698dcdb6 VZ |
11318 | |
11319 | echo "$ac_t""$wx_cv_type_wchar_t" 1>&6 | |
d836ee96 VZ |
11320 | |
11321 | if test "$wx_cv_type_wchar_t" = "yes"; then | |
698dcdb6 | 11322 | cat >> confdefs.h <<\EOF |
0046ff7c VS |
11323 | #define wxUSE_WCHAR_T 1 |
11324 | EOF | |
11325 | ||
11326 | fi | |
11327 | ||
19af3b06 VZ |
11328 | |
11329 | ac_ext=C | |
11330 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
11331 | ac_cpp='$CXXCPP $CPPFLAGS' | |
11332 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
11333 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
11334 | cross_compiling=$ac_cv_prog_cxx_cross | |
11335 | ||
d836ee96 | 11336 | echo $ac_n "checking if size_t is unsigned int""... $ac_c" 1>&6 |
d73be714 | 11337 | echo "configure:11338: checking if size_t is unsigned int" >&5 |
d836ee96 VZ |
11338 | if eval "test \"`echo '$''{'wx_cv_size_t_is_uint'+set}'`\" = set"; then |
11339 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11340 | else | |
dd2c8b7c | 11341 | cat > conftest.$ac_ext <<EOF |
d73be714 | 11342 | #line 11343 "configure" |
d836ee96 VZ |
11343 | #include "confdefs.h" |
11344 | #include <stddef.h> | |
11345 | int main() { | |
11346 | ||
dd2c8b7c VZ |
11347 | return 0; } |
11348 | ||
d836ee96 | 11349 | struct Foo { void foo(size_t); void foo(unsigned int); }; |
dd2c8b7c VZ |
11350 | |
11351 | int bar() { | |
d836ee96 VZ |
11352 | |
11353 | ; return 0; } | |
11354 | EOF | |
d73be714 | 11355 | if { (eval echo configure:11356: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
d836ee96 VZ |
11356 | rm -rf conftest* |
11357 | wx_cv_size_t_is_uint=no | |
11358 | else | |
11359 | echo "configure: failed program was:" >&5 | |
11360 | cat conftest.$ac_ext >&5 | |
11361 | rm -rf conftest* | |
11362 | wx_cv_size_t_is_uint=yes | |
11363 | ||
11364 | fi | |
11365 | rm -f conftest* | |
11366 | ||
11367 | fi | |
11368 | ||
11369 | echo "$ac_t""$wx_cv_size_t_is_uint" 1>&6 | |
11370 | ||
11371 | if test "$wx_cv_size_t_is_uint" = "yes"; then | |
11372 | cat >> confdefs.h <<\EOF | |
11373 | #define wxSIZE_T_IS_UINT 1 | |
11374 | EOF | |
11375 | ||
11376 | else | |
11377 | echo $ac_n "checking if size_t is unsigned long""... $ac_c" 1>&6 | |
d73be714 | 11378 | echo "configure:11379: checking if size_t is unsigned long" >&5 |
d836ee96 VZ |
11379 | if eval "test \"`echo '$''{'wx_cv_size_t_is_ulong'+set}'`\" = set"; then |
11380 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11381 | else | |
11382 | cat > conftest.$ac_ext <<EOF | |
d73be714 | 11383 | #line 11384 "configure" |
d836ee96 VZ |
11384 | #include "confdefs.h" |
11385 | #include <stddef.h> | |
11386 | int main() { | |
11387 | ||
dd2c8b7c VZ |
11388 | return 0; } |
11389 | ||
d836ee96 | 11390 | struct Foo { void foo(size_t); void foo(unsigned long); }; |
dd2c8b7c VZ |
11391 | |
11392 | int bar() { | |
d836ee96 VZ |
11393 | |
11394 | ; return 0; } | |
11395 | EOF | |
d73be714 | 11396 | if { (eval echo configure:11397: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
d836ee96 VZ |
11397 | rm -rf conftest* |
11398 | wx_cv_size_t_is_ulong=no | |
11399 | else | |
11400 | echo "configure: failed program was:" >&5 | |
11401 | cat conftest.$ac_ext >&5 | |
11402 | rm -rf conftest* | |
11403 | wx_cv_size_t_is_ulong=yes | |
11404 | ||
11405 | fi | |
11406 | rm -f conftest* | |
11407 | ||
11408 | fi | |
11409 | ||
11410 | echo "$ac_t""$wx_cv_size_t_is_ulong" 1>&6 | |
11411 | ||
11412 | if test "$wx_cv_size_t_is_ulong" = "yes"; then | |
11413 | cat >> confdefs.h <<\EOF | |
11414 | #define wxSIZE_T_IS_ULONG 1 | |
11415 | EOF | |
11416 | ||
11417 | fi | |
11418 | fi | |
11419 | ||
19af3b06 VZ |
11420 | ac_ext=c |
11421 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
11422 | ac_cpp='$CPP $CPPFLAGS' | |
11423 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
11424 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
11425 | cross_compiling=$ac_cv_prog_cc_cross | |
11426 | ||
11427 | ||
1e487827 | 11428 | |
698dcdb6 | 11429 | echo $ac_n "checking for pw_gecos in struct passwd""... $ac_c" 1>&6 |
d73be714 | 11430 | echo "configure:11431: checking for pw_gecos in struct passwd" >&5 |
698dcdb6 VZ |
11431 | if eval "test \"`echo '$''{'wx_cv_struct_pw_gecos'+set}'`\" = set"; then |
11432 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11433 | else | |
11434 | ||
11435 | cat > conftest.$ac_ext <<EOF | |
d73be714 | 11436 | #line 11437 "configure" |
b12915c1 VZ |
11437 | #include "confdefs.h" |
11438 | #include <pwd.h> | |
698dcdb6 | 11439 | int main() { |
b12915c1 VZ |
11440 | |
11441 | char *p; | |
11442 | struct passwd *pw; | |
11443 | p = pw->pw_gecos; | |
698dcdb6 VZ |
11444 | |
11445 | ; return 0; } | |
11446 | EOF | |
d73be714 | 11447 | if { (eval echo configure:11448: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 VZ |
11448 | rm -rf conftest* |
11449 | ||
b12915c1 | 11450 | wx_cv_struct_pw_gecos=yes |
698dcdb6 | 11451 | |
b12915c1 | 11452 | else |
698dcdb6 VZ |
11453 | echo "configure: failed program was:" >&5 |
11454 | cat conftest.$ac_ext >&5 | |
11455 | rm -rf conftest* | |
11456 | ||
b12915c1 | 11457 | wx_cv_struct_pw_gecos=no |
698dcdb6 VZ |
11458 | |
11459 | ||
6232543b | 11460 | fi |
698dcdb6 VZ |
11461 | rm -f conftest* |
11462 | ||
703e0a69 | 11463 | |
1e487827 | 11464 | fi |
698dcdb6 VZ |
11465 | |
11466 | echo "$ac_t""$wx_cv_struct_pw_gecos" 1>&6 | |
b12915c1 | 11467 | |
bd3277fe | 11468 | if test "$wx_cv_struct_pw_gecos" = "yes"; then |
698dcdb6 | 11469 | cat >> confdefs.h <<\EOF |
bd3277fe VZ |
11470 | #define HAVE_PW_GECOS 1 |
11471 | EOF | |
11472 | ||
11473 | fi | |
11474 | ||
698dcdb6 VZ |
11475 | |
11476 | echo $ac_n "checking for working const""... $ac_c" 1>&6 | |
d73be714 | 11477 | echo "configure:11478: checking for working const" >&5 |
698dcdb6 VZ |
11478 | if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then |
11479 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 11480 | else |
698dcdb6 | 11481 | cat > conftest.$ac_ext <<EOF |
d73be714 | 11482 | #line 11483 "configure" |
10f2d63a | 11483 | #include "confdefs.h" |
698dcdb6 VZ |
11484 | |
11485 | int main() { | |
11486 | ||
11487 | /* Ultrix mips cc rejects this. */ | |
11488 | typedef int charset[2]; const charset x; | |
11489 | /* SunOS 4.1.1 cc rejects this. */ | |
11490 | char const *const *ccp; | |
11491 | char **p; | |
11492 | /* NEC SVR4.0.2 mips cc rejects this. */ | |
11493 | struct point {int x, y;}; | |
11494 | static struct point const zero = {0,0}; | |
11495 | /* AIX XL C 1.02.0.0 rejects this. | |
11496 | It does not let you subtract one const X* pointer from another in an arm | |
11497 | of an if-expression whose if-part is not a constant expression */ | |
11498 | const char *g = "string"; | |
11499 | ccp = &g + (g ? g-g : 0); | |
11500 | /* HPUX 7.0 cc rejects these. */ | |
11501 | ++ccp; | |
11502 | p = (char**) ccp; | |
11503 | ccp = (char const *const *) p; | |
11504 | { /* SCO 3.2v4 cc rejects this. */ | |
11505 | char *t; | |
11506 | char const *s = 0 ? (char *) 0 : (char const *) 0; | |
11507 | ||
11508 | *t++ = 0; | |
10f2d63a | 11509 | } |
698dcdb6 VZ |
11510 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ |
11511 | int x[] = {25, 17}; | |
11512 | const int *foo = &x[0]; | |
11513 | ++foo; | |
703e0a69 | 11514 | } |
698dcdb6 VZ |
11515 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ |
11516 | typedef const int *iptr; | |
11517 | iptr p = 0; | |
11518 | ++p; | |
6232543b | 11519 | } |
698dcdb6 VZ |
11520 | { /* AIX XL C 1.02.0.0 rejects this saying |
11521 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ | |
11522 | struct s { int j; const int *ap[3]; }; | |
11523 | struct s *b; b->j = 5; | |
1e487827 | 11524 | } |
698dcdb6 VZ |
11525 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ |
11526 | const int foo = 10; | |
11527 | } | |
11528 | ||
11529 | ; return 0; } | |
11530 | EOF | |
d73be714 | 11531 | if { (eval echo configure:11532: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 | 11532 | rm -rf conftest* |
10f2d63a VZ |
11533 | ac_cv_c_const=yes |
11534 | else | |
698dcdb6 VZ |
11535 | echo "configure: failed program was:" >&5 |
11536 | cat conftest.$ac_ext >&5 | |
11537 | rm -rf conftest* | |
11538 | ac_cv_c_const=no | |
10f2d63a | 11539 | fi |
698dcdb6 | 11540 | rm -f conftest* |
10f2d63a | 11541 | fi |
1e487827 | 11542 | |
698dcdb6 VZ |
11543 | echo "$ac_t""$ac_cv_c_const" 1>&6 |
11544 | if test $ac_cv_c_const = no; then | |
11545 | cat >> confdefs.h <<\EOF | |
11546 | #define const | |
10f2d63a VZ |
11547 | EOF |
11548 | ||
11549 | fi | |
11550 | ||
698dcdb6 | 11551 | echo $ac_n "checking for inline""... $ac_c" 1>&6 |
d73be714 | 11552 | echo "configure:11553: checking for inline" >&5 |
698dcdb6 VZ |
11553 | if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then |
11554 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a VZ |
11555 | else |
11556 | ac_cv_c_inline=no | |
11557 | for ac_kw in inline __inline__ __inline; do | |
698dcdb6 | 11558 | cat > conftest.$ac_ext <<EOF |
d73be714 | 11559 | #line 11560 "configure" |
10f2d63a VZ |
11560 | #include "confdefs.h" |
11561 | ||
698dcdb6 VZ |
11562 | int main() { |
11563 | } $ac_kw foo() { | |
11564 | ; return 0; } | |
11565 | EOF | |
d73be714 | 11566 | if { (eval echo configure:11567: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 | 11567 | rm -rf conftest* |
10f2d63a VZ |
11568 | ac_cv_c_inline=$ac_kw; break |
11569 | else | |
698dcdb6 VZ |
11570 | echo "configure: failed program was:" >&5 |
11571 | cat conftest.$ac_ext >&5 | |
10f2d63a | 11572 | fi |
698dcdb6 | 11573 | rm -f conftest* |
10f2d63a VZ |
11574 | done |
11575 | ||
11576 | fi | |
698dcdb6 VZ |
11577 | |
11578 | echo "$ac_t""$ac_cv_c_inline" 1>&6 | |
11579 | case "$ac_cv_c_inline" in | |
10f2d63a | 11580 | inline | yes) ;; |
698dcdb6 VZ |
11581 | no) cat >> confdefs.h <<\EOF |
11582 | #define inline | |
10f2d63a VZ |
11583 | EOF |
11584 | ;; | |
698dcdb6 | 11585 | *) cat >> confdefs.h <<EOF |
10f2d63a VZ |
11586 | #define inline $ac_cv_c_inline |
11587 | EOF | |
11588 | ;; | |
11589 | esac | |
11590 | ||
698dcdb6 VZ |
11591 | |
11592 | echo $ac_n "checking size of char""... $ac_c" 1>&6 | |
d73be714 | 11593 | echo "configure:11594: checking size of char" >&5 |
698dcdb6 VZ |
11594 | if eval "test \"`echo '$''{'ac_cv_sizeof_char'+set}'`\" = set"; then |
11595 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6232543b | 11596 | else |
1e487827 | 11597 | if test "$cross_compiling" = yes; then |
698dcdb6 | 11598 | ac_cv_sizeof_char=1 |
1e487827 | 11599 | else |
698dcdb6 | 11600 | cat > conftest.$ac_ext <<EOF |
d73be714 | 11601 | #line 11602 "configure" |
1e487827 | 11602 | #include "confdefs.h" |
698dcdb6 VZ |
11603 | #include <stdio.h> |
11604 | main() | |
1e487827 | 11605 | { |
698dcdb6 VZ |
11606 | FILE *f=fopen("conftestval", "w"); |
11607 | if (!f) exit(1); | |
11608 | fprintf(f, "%d\n", sizeof(char)); | |
11609 | exit(0); | |
1e487827 | 11610 | } |
698dcdb6 | 11611 | EOF |
d73be714 | 11612 | if { (eval echo configure:11613: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
698dcdb6 VZ |
11613 | then |
11614 | ac_cv_sizeof_char=`cat conftestval` | |
1e487827 | 11615 | else |
698dcdb6 VZ |
11616 | echo "configure: failed program was:" >&5 |
11617 | cat conftest.$ac_ext >&5 | |
11618 | rm -fr conftest* | |
1e487827 VS |
11619 | ac_cv_sizeof_char=0 |
11620 | fi | |
698dcdb6 | 11621 | rm -fr conftest* |
1e487827 | 11622 | fi |
10f2d63a | 11623 | |
1e487827 | 11624 | fi |
698dcdb6 VZ |
11625 | echo "$ac_t""$ac_cv_sizeof_char" 1>&6 |
11626 | cat >> confdefs.h <<EOF | |
11627 | #define SIZEOF_CHAR $ac_cv_sizeof_char | |
1e487827 | 11628 | EOF |
6232543b | 11629 | |
703e0a69 | 11630 | |
698dcdb6 | 11631 | echo $ac_n "checking size of short""... $ac_c" 1>&6 |
d73be714 | 11632 | echo "configure:11633: checking size of short" >&5 |
698dcdb6 VZ |
11633 | if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then |
11634 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1e487827 | 11635 | else |
1e487827 | 11636 | if test "$cross_compiling" = yes; then |
698dcdb6 | 11637 | ac_cv_sizeof_short=2 |
1e487827 | 11638 | else |
698dcdb6 | 11639 | cat > conftest.$ac_ext <<EOF |
d73be714 | 11640 | #line 11641 "configure" |
1e487827 | 11641 | #include "confdefs.h" |
698dcdb6 VZ |
11642 | #include <stdio.h> |
11643 | main() | |
1e487827 | 11644 | { |
698dcdb6 VZ |
11645 | FILE *f=fopen("conftestval", "w"); |
11646 | if (!f) exit(1); | |
11647 | fprintf(f, "%d\n", sizeof(short)); | |
11648 | exit(0); | |
1e487827 | 11649 | } |
698dcdb6 | 11650 | EOF |
d73be714 | 11651 | if { (eval echo configure:11652: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
698dcdb6 VZ |
11652 | then |
11653 | ac_cv_sizeof_short=`cat conftestval` | |
1e487827 | 11654 | else |
698dcdb6 VZ |
11655 | echo "configure: failed program was:" >&5 |
11656 | cat conftest.$ac_ext >&5 | |
11657 | rm -fr conftest* | |
11658 | ac_cv_sizeof_short=0 | |
1e487827 | 11659 | fi |
698dcdb6 | 11660 | rm -fr conftest* |
1e487827 | 11661 | fi |
698dcdb6 | 11662 | |
1e487827 | 11663 | fi |
698dcdb6 VZ |
11664 | echo "$ac_t""$ac_cv_sizeof_short" 1>&6 |
11665 | cat >> confdefs.h <<EOF | |
11666 | #define SIZEOF_SHORT $ac_cv_sizeof_short | |
11667 | EOF | |
11668 | ||
11669 | ||
11670 | echo $ac_n "checking size of int *""... $ac_c" 1>&6 | |
d73be714 | 11671 | echo "configure:11672: checking size of int *" >&5 |
698dcdb6 VZ |
11672 | if eval "test \"`echo '$''{'ac_cv_sizeof_int_p'+set}'`\" = set"; then |
11673 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a VZ |
11674 | else |
11675 | if test "$cross_compiling" = yes; then | |
698dcdb6 | 11676 | ac_cv_sizeof_int_p=4 |
10f2d63a | 11677 | else |
698dcdb6 | 11678 | cat > conftest.$ac_ext <<EOF |
d73be714 | 11679 | #line 11680 "configure" |
10f2d63a | 11680 | #include "confdefs.h" |
698dcdb6 VZ |
11681 | #include <stdio.h> |
11682 | main() | |
10f2d63a | 11683 | { |
698dcdb6 VZ |
11684 | FILE *f=fopen("conftestval", "w"); |
11685 | if (!f) exit(1); | |
11686 | fprintf(f, "%d\n", sizeof(int *)); | |
11687 | exit(0); | |
10f2d63a | 11688 | } |
698dcdb6 | 11689 | EOF |
d73be714 | 11690 | if { (eval echo configure:11691: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
698dcdb6 VZ |
11691 | then |
11692 | ac_cv_sizeof_int_p=`cat conftestval` | |
10f2d63a | 11693 | else |
698dcdb6 VZ |
11694 | echo "configure: failed program was:" >&5 |
11695 | cat conftest.$ac_ext >&5 | |
11696 | rm -fr conftest* | |
11697 | ac_cv_sizeof_int_p=0 | |
6232543b | 11698 | fi |
698dcdb6 | 11699 | rm -fr conftest* |
1e487827 | 11700 | fi |
698dcdb6 | 11701 | |
1e487827 | 11702 | fi |
698dcdb6 VZ |
11703 | echo "$ac_t""$ac_cv_sizeof_int_p" 1>&6 |
11704 | cat >> confdefs.h <<EOF | |
11705 | #define SIZEOF_INT_P $ac_cv_sizeof_int_p | |
10f2d63a VZ |
11706 | EOF |
11707 | ||
698dcdb6 VZ |
11708 | |
11709 | echo $ac_n "checking size of int""... $ac_c" 1>&6 | |
d73be714 | 11710 | echo "configure:11711: checking size of int" >&5 |
698dcdb6 VZ |
11711 | if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then |
11712 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a VZ |
11713 | else |
11714 | if test "$cross_compiling" = yes; then | |
698dcdb6 | 11715 | ac_cv_sizeof_int=4 |
703e0a69 | 11716 | else |
698dcdb6 | 11717 | cat > conftest.$ac_ext <<EOF |
d73be714 | 11718 | #line 11719 "configure" |
1e487827 | 11719 | #include "confdefs.h" |
698dcdb6 VZ |
11720 | #include <stdio.h> |
11721 | main() | |
1e487827 | 11722 | { |
698dcdb6 VZ |
11723 | FILE *f=fopen("conftestval", "w"); |
11724 | if (!f) exit(1); | |
11725 | fprintf(f, "%d\n", sizeof(int)); | |
11726 | exit(0); | |
1e487827 | 11727 | } |
698dcdb6 | 11728 | EOF |
d73be714 | 11729 | if { (eval echo configure:11730: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
698dcdb6 VZ |
11730 | then |
11731 | ac_cv_sizeof_int=`cat conftestval` | |
11732 | else | |
11733 | echo "configure: failed program was:" >&5 | |
11734 | cat conftest.$ac_ext >&5 | |
11735 | rm -fr conftest* | |
11736 | ac_cv_sizeof_int=0 | |
703e0a69 | 11737 | fi |
698dcdb6 VZ |
11738 | rm -fr conftest* |
11739 | fi | |
11740 | ||
11741 | fi | |
11742 | echo "$ac_t""$ac_cv_sizeof_int" 1>&6 | |
11743 | cat >> confdefs.h <<EOF | |
11744 | #define SIZEOF_INT $ac_cv_sizeof_int | |
11745 | EOF | |
11746 | ||
11747 | ||
11748 | echo $ac_n "checking size of long""... $ac_c" 1>&6 | |
d73be714 | 11749 | echo "configure:11750: checking size of long" >&5 |
698dcdb6 VZ |
11750 | if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then |
11751 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a VZ |
11752 | else |
11753 | if test "$cross_compiling" = yes; then | |
698dcdb6 | 11754 | ac_cv_sizeof_long=4 |
10f2d63a | 11755 | else |
698dcdb6 | 11756 | cat > conftest.$ac_ext <<EOF |
d73be714 | 11757 | #line 11758 "configure" |
10f2d63a | 11758 | #include "confdefs.h" |
698dcdb6 VZ |
11759 | #include <stdio.h> |
11760 | main() | |
10f2d63a | 11761 | { |
698dcdb6 VZ |
11762 | FILE *f=fopen("conftestval", "w"); |
11763 | if (!f) exit(1); | |
11764 | fprintf(f, "%d\n", sizeof(long)); | |
11765 | exit(0); | |
10f2d63a | 11766 | } |
698dcdb6 | 11767 | EOF |
d73be714 | 11768 | if { (eval echo configure:11769: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
698dcdb6 VZ |
11769 | then |
11770 | ac_cv_sizeof_long=`cat conftestval` | |
10f2d63a | 11771 | else |
698dcdb6 VZ |
11772 | echo "configure: failed program was:" >&5 |
11773 | cat conftest.$ac_ext >&5 | |
11774 | rm -fr conftest* | |
11775 | ac_cv_sizeof_long=0 | |
10f2d63a | 11776 | fi |
698dcdb6 | 11777 | rm -fr conftest* |
10f2d63a | 11778 | fi |
698dcdb6 | 11779 | |
10f2d63a | 11780 | fi |
698dcdb6 VZ |
11781 | echo "$ac_t""$ac_cv_sizeof_long" 1>&6 |
11782 | cat >> confdefs.h <<EOF | |
11783 | #define SIZEOF_LONG $ac_cv_sizeof_long | |
11784 | EOF | |
11785 | ||
11786 | ||
11787 | echo $ac_n "checking size of long long""... $ac_c" 1>&6 | |
d73be714 | 11788 | echo "configure:11789: checking size of long long" >&5 |
698dcdb6 VZ |
11789 | if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then |
11790 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11791 | else | |
11792 | if test "$cross_compiling" = yes; then | |
11793 | ac_cv_sizeof_long_long=0 | |
11794 | else | |
11795 | cat > conftest.$ac_ext <<EOF | |
d73be714 | 11796 | #line 11797 "configure" |
698dcdb6 VZ |
11797 | #include "confdefs.h" |
11798 | #include <stdio.h> | |
11799 | main() | |
11800 | { | |
11801 | FILE *f=fopen("conftestval", "w"); | |
11802 | if (!f) exit(1); | |
11803 | fprintf(f, "%d\n", sizeof(long long)); | |
11804 | exit(0); | |
11805 | } | |
11806 | EOF | |
d73be714 | 11807 | if { (eval echo configure:11808: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
698dcdb6 VZ |
11808 | then |
11809 | ac_cv_sizeof_long_long=`cat conftestval` | |
6232543b | 11810 | else |
698dcdb6 VZ |
11811 | echo "configure: failed program was:" >&5 |
11812 | cat conftest.$ac_ext >&5 | |
11813 | rm -fr conftest* | |
6232543b VS |
11814 | ac_cv_sizeof_long_long=0 |
11815 | fi | |
698dcdb6 VZ |
11816 | rm -fr conftest* |
11817 | fi | |
11818 | ||
703e0a69 | 11819 | fi |
698dcdb6 VZ |
11820 | echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6 |
11821 | cat >> confdefs.h <<EOF | |
10f2d63a VZ |
11822 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long |
11823 | EOF | |
11824 | ||
1e487827 | 11825 | |
698dcdb6 VZ |
11826 | |
11827 | echo $ac_n "checking size of wchar_t""... $ac_c" 1>&6 | |
d73be714 | 11828 | echo "configure:11829: checking size of wchar_t" >&5 |
698dcdb6 VZ |
11829 | if eval "test \"`echo '$''{'wx_cv_sizeof_wchar_t'+set}'`\" = set"; then |
11830 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11831 | else | |
11832 | ||
b93d0d08 VS |
11833 | if test "$cross_compiling" = yes; then |
11834 | wx_cv_sizeof_wchar_t=4 | |
1e6feb95 | 11835 | |
b93d0d08 | 11836 | else |
698dcdb6 | 11837 | cat > conftest.$ac_ext <<EOF |
d73be714 | 11838 | #line 11839 "configure" |
b93d0d08 VS |
11839 | #include "confdefs.h" |
11840 | ||
1e6feb95 VZ |
11841 | #ifdef HAVE_WCHAR_H |
11842 | # include <wchar.h> | |
11843 | #endif | |
11844 | #ifdef HAVE_STDLIB_H | |
11845 | # include <stdlib.h> | |
11846 | #endif | |
11847 | #include <stdio.h> | |
11848 | int main() | |
11849 | { | |
11850 | FILE *f=fopen("conftestval", "w"); | |
11851 | if (!f) exit(1); | |
11852 | fprintf(f, "%i", sizeof(wchar_t)); | |
11853 | exit(0); | |
11854 | } | |
698dcdb6 VZ |
11855 | |
11856 | EOF | |
d73be714 | 11857 | if { (eval echo configure:11858: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
698dcdb6 | 11858 | then |
b93d0d08 VS |
11859 | wx_cv_sizeof_wchar_t=`cat conftestval` |
11860 | else | |
698dcdb6 VZ |
11861 | echo "configure: failed program was:" >&5 |
11862 | cat conftest.$ac_ext >&5 | |
11863 | rm -fr conftest* | |
11864 | wx_cv_sizeof_wchar_t=0 | |
b93d0d08 | 11865 | fi |
698dcdb6 | 11866 | rm -fr conftest* |
b93d0d08 VS |
11867 | fi |
11868 | ||
698dcdb6 | 11869 | |
b93d0d08 VS |
11870 | fi |
11871 | ||
698dcdb6 VZ |
11872 | echo "$ac_t""$wx_cv_sizeof_wchar_t" 1>&6 |
11873 | ||
11874 | cat >> confdefs.h <<EOF | |
28c6addc | 11875 | #define SIZEOF_WCHAR_T $wx_cv_sizeof_wchar_t |
b93d0d08 VS |
11876 | EOF |
11877 | ||
698dcdb6 | 11878 | |
698dcdb6 | 11879 | echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6 |
d73be714 | 11880 | echo "configure:11881: checking whether byte ordering is bigendian" >&5 |
698dcdb6 VZ |
11881 | if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then |
11882 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a VZ |
11883 | else |
11884 | ac_cv_c_bigendian=unknown | |
11885 | # See if sys/param.h defines the BYTE_ORDER macro. | |
698dcdb6 | 11886 | cat > conftest.$ac_ext <<EOF |
d73be714 | 11887 | #line 11888 "configure" |
10f2d63a VZ |
11888 | #include "confdefs.h" |
11889 | #include <sys/types.h> | |
11890 | #include <sys/param.h> | |
698dcdb6 | 11891 | int main() { |
10f2d63a VZ |
11892 | |
11893 | #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN | |
11894 | bogus endian macros | |
11895 | #endif | |
698dcdb6 VZ |
11896 | ; return 0; } |
11897 | EOF | |
d73be714 | 11898 | if { (eval echo configure:11899: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 | 11899 | rm -rf conftest* |
10f2d63a | 11900 | # It does; now see whether it defined to BIG_ENDIAN or not. |
698dcdb6 | 11901 | cat > conftest.$ac_ext <<EOF |
d73be714 | 11902 | #line 11903 "configure" |
10f2d63a VZ |
11903 | #include "confdefs.h" |
11904 | #include <sys/types.h> | |
11905 | #include <sys/param.h> | |
698dcdb6 | 11906 | int main() { |
10f2d63a VZ |
11907 | |
11908 | #if BYTE_ORDER != BIG_ENDIAN | |
11909 | not big endian | |
11910 | #endif | |
698dcdb6 VZ |
11911 | ; return 0; } |
11912 | EOF | |
d73be714 | 11913 | if { (eval echo configure:11914: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 | 11914 | rm -rf conftest* |
10f2d63a VZ |
11915 | ac_cv_c_bigendian=yes |
11916 | else | |
698dcdb6 VZ |
11917 | echo "configure: failed program was:" >&5 |
11918 | cat conftest.$ac_ext >&5 | |
11919 | rm -rf conftest* | |
11920 | ac_cv_c_bigendian=no | |
10f2d63a | 11921 | fi |
698dcdb6 | 11922 | rm -f conftest* |
10f2d63a | 11923 | else |
698dcdb6 VZ |
11924 | echo "configure: failed program was:" >&5 |
11925 | cat conftest.$ac_ext >&5 | |
10f2d63a | 11926 | fi |
698dcdb6 | 11927 | rm -f conftest* |
10f2d63a VZ |
11928 | if test $ac_cv_c_bigendian = unknown; then |
11929 | if test "$cross_compiling" = yes; then | |
11930 | ac_cv_c_bigendian=unknown | |
11931 | else | |
698dcdb6 | 11932 | cat > conftest.$ac_ext <<EOF |
d73be714 | 11933 | #line 11934 "configure" |
10f2d63a VZ |
11934 | #include "confdefs.h" |
11935 | main () { | |
11936 | /* Are we little or big endian? From Harbison&Steele. */ | |
11937 | union | |
11938 | { | |
11939 | long l; | |
11940 | char c[sizeof (long)]; | |
11941 | } u; | |
11942 | u.l = 1; | |
11943 | exit (u.c[sizeof (long) - 1] == 1); | |
11944 | } | |
698dcdb6 | 11945 | EOF |
d73be714 | 11946 | if { (eval echo configure:11947: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
698dcdb6 | 11947 | then |
10f2d63a VZ |
11948 | ac_cv_c_bigendian=no |
11949 | else | |
698dcdb6 VZ |
11950 | echo "configure: failed program was:" >&5 |
11951 | cat conftest.$ac_ext >&5 | |
11952 | rm -fr conftest* | |
11953 | ac_cv_c_bigendian=yes | |
10f2d63a | 11954 | fi |
698dcdb6 | 11955 | rm -fr conftest* |
10f2d63a | 11956 | fi |
698dcdb6 | 11957 | |
10f2d63a VZ |
11958 | fi |
11959 | fi | |
698dcdb6 VZ |
11960 | |
11961 | echo "$ac_t""$ac_cv_c_bigendian" 1>&6 | |
10f2d63a | 11962 | if test $ac_cv_c_bigendian = unknown; then |
698dcdb6 | 11963 | 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 |
11964 | fi |
11965 | if test $ac_cv_c_bigendian = yes; then | |
698dcdb6 | 11966 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
11967 | #define WORDS_BIGENDIAN 1 |
11968 | EOF | |
11969 | ||
11970 | fi | |
11971 | ||
698dcdb6 VZ |
11972 | |
11973 | ||
10f2d63a | 11974 | if test "$cross_compiling" = "yes"; then |
698dcdb6 | 11975 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
11976 | #define wxUSE_IOSTREAMH 1 |
11977 | EOF | |
11978 | ||
11979 | else | |
698dcdb6 VZ |
11980 | |
11981 | ac_ext=C | |
11982 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
1e487827 | 11983 | ac_cpp='$CXXCPP $CPPFLAGS' |
698dcdb6 VZ |
11984 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
11985 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
11986 | cross_compiling=$ac_cv_prog_cxx_cross | |
11987 | ||
703e0a69 | 11988 | |
698dcdb6 | 11989 | for ac_hdr in iostream |
10f2d63a | 11990 | do |
698dcdb6 VZ |
11991 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
11992 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
d73be714 | 11993 | echo "configure:11994: checking for $ac_hdr" >&5 |
698dcdb6 VZ |
11994 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
11995 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11996 | else | |
11997 | cat > conftest.$ac_ext <<EOF | |
d73be714 | 11998 | #line 11999 "configure" |
10f2d63a | 11999 | #include "confdefs.h" |
698dcdb6 VZ |
12000 | #include <$ac_hdr> |
12001 | EOF | |
12002 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
d73be714 | 12003 | { (eval echo configure:12004: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
12004 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
12005 | if test -z "$ac_err"; then | |
12006 | rm -rf conftest* | |
12007 | eval "ac_cv_header_$ac_safe=yes" | |
10f2d63a | 12008 | else |
698dcdb6 VZ |
12009 | echo "$ac_err" >&5 |
12010 | echo "configure: failed program was:" >&5 | |
10f2d63a | 12011 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
12012 | rm -rf conftest* |
12013 | eval "ac_cv_header_$ac_safe=no" | |
10f2d63a | 12014 | fi |
698dcdb6 | 12015 | rm -f conftest* |
10f2d63a | 12016 | fi |
698dcdb6 VZ |
12017 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
12018 | echo "$ac_t""yes" 1>&6 | |
12019 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
12020 | cat >> confdefs.h <<EOF | |
12021 | #define $ac_tr_hdr 1 | |
10f2d63a | 12022 | EOF |
698dcdb6 VZ |
12023 | |
12024 | else | |
12025 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
12026 | fi |
12027 | done | |
12028 | ||
698dcdb6 | 12029 | |
57fe5ed0 VZ |
12030 | if test "$ac_cv_header_iostream" = "yes" ; then |
12031 | : | |
12032 | else | |
698dcdb6 | 12033 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
12034 | #define wxUSE_IOSTREAMH 1 |
12035 | EOF | |
12036 | ||
10f2d63a VZ |
12037 | fi |
12038 | ||
12039 | ac_ext=c | |
698dcdb6 | 12040 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
10f2d63a | 12041 | ac_cpp='$CPP $CPPFLAGS' |
698dcdb6 VZ |
12042 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
12043 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
12044 | cross_compiling=$ac_cv_prog_cc_cross | |
10f2d63a VZ |
12045 | |
12046 | fi | |
12047 | ||
703e0a69 | 12048 | |
698dcdb6 VZ |
12049 | |
12050 | echo $ac_n "checking if C++ compiler supports bool""... $ac_c" 1>&6 | |
d73be714 | 12051 | echo "configure:12052: checking if C++ compiler supports bool" >&5 |
698dcdb6 VZ |
12052 | if eval "test \"`echo '$''{'wx_cv_cpp_bool'+set}'`\" = set"; then |
12053 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12054 | else | |
12055 | ||
12056 | ||
12057 | ac_ext=C | |
12058 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
1e487827 | 12059 | ac_cpp='$CXXCPP $CPPFLAGS' |
698dcdb6 VZ |
12060 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
12061 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
12062 | cross_compiling=$ac_cv_prog_cxx_cross | |
10f2d63a | 12063 | |
698dcdb6 VZ |
12064 | |
12065 | cat > conftest.$ac_ext <<EOF | |
d73be714 | 12066 | #line 12067 "configure" |
10f2d63a VZ |
12067 | #include "confdefs.h" |
12068 | ||
698dcdb6 VZ |
12069 | |
12070 | int main() { | |
10f2d63a VZ |
12071 | |
12072 | bool b = true; | |
12073 | ||
12074 | return 0; | |
698dcdb6 VZ |
12075 | |
12076 | ; return 0; } | |
12077 | EOF | |
d73be714 | 12078 | if { (eval echo configure:12079: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 VZ |
12079 | rm -rf conftest* |
12080 | ||
10f2d63a | 12081 | wx_cv_cpp_bool=yes |
698dcdb6 | 12082 | |
10f2d63a | 12083 | else |
698dcdb6 VZ |
12084 | echo "configure: failed program was:" >&5 |
12085 | cat conftest.$ac_ext >&5 | |
12086 | rm -rf conftest* | |
12087 | ||
10f2d63a | 12088 | wx_cv_cpp_bool=no |
698dcdb6 VZ |
12089 | |
12090 | ||
10f2d63a | 12091 | fi |
698dcdb6 | 12092 | rm -f conftest* |
10f2d63a VZ |
12093 | |
12094 | ac_ext=c | |
698dcdb6 | 12095 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
10f2d63a | 12096 | ac_cpp='$CPP $CPPFLAGS' |
698dcdb6 VZ |
12097 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
12098 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
12099 | cross_compiling=$ac_cv_prog_cc_cross | |
10f2d63a | 12100 | |
698dcdb6 | 12101 | |
10f2d63a | 12102 | fi |
698dcdb6 VZ |
12103 | |
12104 | echo "$ac_t""$wx_cv_cpp_bool" 1>&6 | |
10f2d63a VZ |
12105 | |
12106 | if test "$wx_cv_cpp_bool" = "yes"; then | |
698dcdb6 | 12107 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
12108 | #define HAVE_BOOL 1 |
12109 | EOF | |
12110 | ||
12111 | fi | |
12112 | ||
1e487827 | 12113 | |
698dcdb6 | 12114 | |
698dcdb6 | 12115 | echo $ac_n "checking for wcslen in -lc""... $ac_c" 1>&6 |
d73be714 | 12116 | echo "configure:12117: checking for wcslen in -lc" >&5 |
698dcdb6 VZ |
12117 | ac_lib_var=`echo c'_'wcslen | sed 'y%./+-%__p_%'` |
12118 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
12119 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 12120 | else |
698dcdb6 | 12121 | ac_save_LIBS="$LIBS" |
10f2d63a | 12122 | LIBS="-lc $LIBS" |
698dcdb6 | 12123 | cat > conftest.$ac_ext <<EOF |
d73be714 | 12124 | #line 12125 "configure" |
10f2d63a VZ |
12125 | #include "confdefs.h" |
12126 | /* Override any gcc2 internal prototype to avoid an error. */ | |
12127 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
12128 | builtin and then its argument prototype would still apply. */ |
12129 | char wcslen(); | |
12130 | ||
12131 | int main() { | |
12132 | wcslen() | |
12133 | ; return 0; } | |
12134 | EOF | |
d73be714 | 12135 | if { (eval echo configure:12136: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
12136 | rm -rf conftest* |
12137 | eval "ac_cv_lib_$ac_lib_var=yes" | |
12138 | else | |
12139 | echo "configure: failed program was:" >&5 | |
12140 | cat conftest.$ac_ext >&5 | |
12141 | rm -rf conftest* | |
12142 | eval "ac_cv_lib_$ac_lib_var=no" | |
12143 | fi | |
12144 | rm -f conftest* | |
12145 | LIBS="$ac_save_LIBS" | |
12146 | ||
12147 | fi | |
12148 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
12149 | echo "$ac_t""yes" 1>&6 | |
12150 | ||
12151 | cat >> confdefs.h <<\EOF | |
10f2d63a VZ |
12152 | #define HAVE_WCSLEN 1 |
12153 | EOF | |
12154 | ||
12155 | WCHAR_LINK="" | |
698dcdb6 | 12156 | |
10f2d63a | 12157 | else |
698dcdb6 | 12158 | echo "$ac_t""no" 1>&6 |
10f2d63a | 12159 | |
698dcdb6 | 12160 | echo $ac_n "checking for wcslen in -lw""... $ac_c" 1>&6 |
d73be714 | 12161 | echo "configure:12162: checking for wcslen in -lw" >&5 |
698dcdb6 VZ |
12162 | ac_lib_var=`echo w'_'wcslen | sed 'y%./+-%__p_%'` |
12163 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
12164 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 12165 | else |
698dcdb6 | 12166 | ac_save_LIBS="$LIBS" |
10f2d63a | 12167 | LIBS="-lw $LIBS" |
698dcdb6 | 12168 | cat > conftest.$ac_ext <<EOF |
d73be714 | 12169 | #line 12170 "configure" |
10f2d63a VZ |
12170 | #include "confdefs.h" |
12171 | /* Override any gcc2 internal prototype to avoid an error. */ | |
12172 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
12173 | builtin and then its argument prototype would still apply. */ |
12174 | char wcslen(); | |
12175 | ||
12176 | int main() { | |
12177 | wcslen() | |
12178 | ; return 0; } | |
12179 | EOF | |
d73be714 | 12180 | if { (eval echo configure:12181: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
12181 | rm -rf conftest* |
12182 | eval "ac_cv_lib_$ac_lib_var=yes" | |
12183 | else | |
12184 | echo "configure: failed program was:" >&5 | |
12185 | cat conftest.$ac_ext >&5 | |
12186 | rm -rf conftest* | |
12187 | eval "ac_cv_lib_$ac_lib_var=no" | |
12188 | fi | |
12189 | rm -f conftest* | |
12190 | LIBS="$ac_save_LIBS" | |
12191 | ||
12192 | fi | |
12193 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
12194 | echo "$ac_t""yes" 1>&6 | |
12195 | ||
12196 | cat >> confdefs.h <<\EOF | |
10f2d63a VZ |
12197 | #define HAVE_WCSLEN 1 |
12198 | EOF | |
12199 | ||
12200 | WCHAR_LINK="-lw" | |
698dcdb6 VZ |
12201 | |
12202 | else | |
12203 | echo "$ac_t""no" 1>&6 | |
6232543b | 12204 | fi |
10f2d63a | 12205 | |
698dcdb6 | 12206 | |
1e487827 | 12207 | fi |
703e0a69 | 12208 | |
698dcdb6 VZ |
12209 | |
12210 | echo $ac_n "checking for vprintf""... $ac_c" 1>&6 | |
d73be714 | 12211 | echo "configure:12212: checking for vprintf" >&5 |
698dcdb6 VZ |
12212 | if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then |
12213 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12214 | else | |
12215 | cat > conftest.$ac_ext <<EOF | |
d73be714 | 12216 | #line 12217 "configure" |
10f2d63a VZ |
12217 | #include "confdefs.h" |
12218 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 12219 | which can conflict with char vprintf(); below. */ |
10f2d63a VZ |
12220 | #include <assert.h> |
12221 | /* Override any gcc2 internal prototype to avoid an error. */ | |
12222 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
12223 | builtin and then its argument prototype would still apply. */ |
12224 | char vprintf(); | |
12225 | ||
12226 | int main() { | |
10f2d63a VZ |
12227 | |
12228 | /* The GNU C library defines this for functions which it implements | |
12229 | to always fail with ENOSYS. Some functions are actually named | |
12230 | something starting with __ and the normal name is an alias. */ | |
698dcdb6 | 12231 | #if defined (__stub_vprintf) || defined (__stub___vprintf) |
10f2d63a VZ |
12232 | choke me |
12233 | #else | |
698dcdb6 | 12234 | vprintf(); |
10f2d63a VZ |
12235 | #endif |
12236 | ||
698dcdb6 VZ |
12237 | ; return 0; } |
12238 | EOF | |
d73be714 | 12239 | if { (eval echo configure:12240: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
12240 | rm -rf conftest* |
12241 | eval "ac_cv_func_vprintf=yes" | |
12242 | else | |
12243 | echo "configure: failed program was:" >&5 | |
12244 | cat conftest.$ac_ext >&5 | |
12245 | rm -rf conftest* | |
12246 | eval "ac_cv_func_vprintf=no" | |
12247 | fi | |
12248 | rm -f conftest* | |
12249 | fi | |
12250 | ||
12251 | if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then | |
12252 | echo "$ac_t""yes" 1>&6 | |
12253 | cat >> confdefs.h <<\EOF | |
12254 | #define HAVE_VPRINTF 1 | |
12255 | EOF | |
12256 | ||
12257 | else | |
12258 | echo "$ac_t""no" 1>&6 | |
12259 | fi | |
12260 | ||
12261 | if test "$ac_cv_func_vprintf" != yes; then | |
12262 | echo $ac_n "checking for _doprnt""... $ac_c" 1>&6 | |
d73be714 | 12263 | echo "configure:12264: checking for _doprnt" >&5 |
698dcdb6 VZ |
12264 | if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then |
12265 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12266 | else | |
12267 | cat > conftest.$ac_ext <<EOF | |
d73be714 | 12268 | #line 12269 "configure" |
10f2d63a VZ |
12269 | #include "confdefs.h" |
12270 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 12271 | which can conflict with char _doprnt(); below. */ |
10f2d63a VZ |
12272 | #include <assert.h> |
12273 | /* Override any gcc2 internal prototype to avoid an error. */ | |
12274 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
12275 | builtin and then its argument prototype would still apply. */ |
12276 | char _doprnt(); | |
12277 | ||
12278 | int main() { | |
10f2d63a VZ |
12279 | |
12280 | /* The GNU C library defines this for functions which it implements | |
12281 | to always fail with ENOSYS. Some functions are actually named | |
12282 | something starting with __ and the normal name is an alias. */ | |
12283 | #if defined (__stub__doprnt) || defined (__stub____doprnt) | |
12284 | choke me | |
12285 | #else | |
698dcdb6 | 12286 | _doprnt(); |
10f2d63a VZ |
12287 | #endif |
12288 | ||
698dcdb6 VZ |
12289 | ; return 0; } |
12290 | EOF | |
d73be714 | 12291 | if { (eval echo configure:12292: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
12292 | rm -rf conftest* |
12293 | eval "ac_cv_func__doprnt=yes" | |
12294 | else | |
12295 | echo "configure: failed program was:" >&5 | |
12296 | cat conftest.$ac_ext >&5 | |
12297 | rm -rf conftest* | |
12298 | eval "ac_cv_func__doprnt=no" | |
12299 | fi | |
12300 | rm -f conftest* | |
12301 | fi | |
12302 | ||
12303 | if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then | |
12304 | echo "$ac_t""yes" 1>&6 | |
12305 | cat >> confdefs.h <<\EOF | |
10f2d63a VZ |
12306 | #define HAVE_DOPRNT 1 |
12307 | EOF | |
12308 | ||
698dcdb6 VZ |
12309 | else |
12310 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
12311 | fi |
12312 | ||
12313 | fi | |
12314 | ||
1e487827 | 12315 | |
698dcdb6 VZ |
12316 | |
12317 | ||
12318 | ||
12319 | ||
12320 | ||
12321 | echo $ac_n "checking for vsnprintf""... $ac_c" 1>&6 | |
d73be714 | 12322 | echo "configure:12323: checking for vsnprintf" >&5 |
698dcdb6 VZ |
12323 | if eval "test \"`echo '$''{'wx_cv_func_vsnprintf'+set}'`\" = set"; then |
12324 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12325 | else | |
12326 | ||
12327 | cat > conftest.$ac_ext <<EOF | |
d73be714 | 12328 | #line 12329 "configure" |
f6bcfd97 BP |
12329 | #include "confdefs.h" |
12330 | ||
12331 | #include <stdio.h> | |
698dcdb6 VZ |
12332 | #include <stdarg.h> |
12333 | ||
12334 | int main() { | |
10f2d63a | 12335 | |
f6bcfd97 | 12336 | int wx_test_vsnprintf(const char *, ...); |
10f2d63a | 12337 | |
f6bcfd97 BP |
12338 | wx_test_vsnprintf("%s"); |
12339 | return 0; | |
12340 | } | |
12341 | ||
12342 | int wx_test_vsnprintf(const char *fmt, ...) | |
12343 | { | |
12344 | char *s; | |
12345 | ||
12346 | va_list argp; | |
12347 | va_start(argp, fmt); | |
12348 | vsnprintf(s, 42, fmt, argp); | |
12349 | va_end(argp); | |
698dcdb6 VZ |
12350 | |
12351 | ; return 0; } | |
12352 | EOF | |
d73be714 | 12353 | if { (eval echo configure:12354: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 VZ |
12354 | rm -rf conftest* |
12355 | ||
f6bcfd97 | 12356 | wx_cv_func_vsnprintf=yes |
698dcdb6 | 12357 | |
10f2d63a | 12358 | else |
698dcdb6 VZ |
12359 | echo "configure: failed program was:" >&5 |
12360 | cat conftest.$ac_ext >&5 | |
12361 | rm -rf conftest* | |
12362 | ||
12363 | cat > conftest.$ac_ext <<EOF | |
d73be714 | 12364 | #line 12365 "configure" |
c521c494 RL |
12365 | #include "confdefs.h" |
12366 | ||
12367 | #include <stdio.h> | |
12368 | #include <stdarg.h> | |
698dcdb6 VZ |
12369 | |
12370 | int main() { | |
c521c494 RL |
12371 | |
12372 | int wx_test_vsnprintf(const char *, ...); | |
12373 | ||
12374 | wx_test_vsnprintf("%s"); | |
12375 | return 0; | |
12376 | } | |
12377 | ||
12378 | int wx_test_vsnprintf(const char *fmt, ...) | |
12379 | { | |
12380 | char *s; | |
12381 | ||
12382 | va_list argp; | |
12383 | va_start(argp, fmt); | |
12384 | _vsnprintf(s, 42, fmt, argp); | |
12385 | va_end(argp); | |
698dcdb6 VZ |
12386 | |
12387 | ; return 0; } | |
12388 | EOF | |
d73be714 | 12389 | if { (eval echo configure:12390: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 VZ |
12390 | rm -rf conftest* |
12391 | ||
c521c494 | 12392 | wx_cv_func_vsnprintf=yes |
698dcdb6 | 12393 | |
c521c494 | 12394 | else |
698dcdb6 VZ |
12395 | echo "configure: failed program was:" >&5 |
12396 | cat conftest.$ac_ext >&5 | |
12397 | rm -rf conftest* | |
12398 | ||
c521c494 | 12399 | wx_cv_func_vsnprintf=no |
698dcdb6 | 12400 | |
10f2d63a | 12401 | fi |
698dcdb6 VZ |
12402 | rm -f conftest* |
12403 | ||
6232543b | 12404 | fi |
698dcdb6 | 12405 | rm -f conftest* |
703e0a69 | 12406 | |
1e487827 | 12407 | fi |
698dcdb6 VZ |
12408 | |
12409 | echo "$ac_t""$wx_cv_func_vsnprintf" 1>&6 | |
10f2d63a | 12410 | |
9d8deca0 | 12411 | if test "$wx_cv_func_vsnprintf" = yes; then |
698dcdb6 | 12412 | cat >> confdefs.h <<\EOF |
9d8deca0 VZ |
12413 | #define HAVE_VSNPRINTF 1 |
12414 | EOF | |
12415 | ||
12416 | else | |
698dcdb6 | 12417 | echo "configure: warning: unsafe function sprintf will be used instead of snprintf" 1>&2 |
9d8deca0 VZ |
12418 | fi |
12419 | ||
698dcdb6 | 12420 | echo $ac_n "checking for vsscanf""... $ac_c" 1>&6 |
d73be714 | 12421 | echo "configure:12422: checking for vsscanf" >&5 |
698dcdb6 VZ |
12422 | if eval "test \"`echo '$''{'wx_cv_func_vsscanf'+set}'`\" = set"; then |
12423 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 12424 | else |
698dcdb6 VZ |
12425 | |
12426 | cat > conftest.$ac_ext <<EOF | |
d73be714 | 12427 | #line 12428 "configure" |
10f2d63a | 12428 | #include "confdefs.h" |
10f2d63a | 12429 | |
f6bcfd97 BP |
12430 | #include <stdio.h> |
12431 | #include <stdarg.h> | |
698dcdb6 VZ |
12432 | |
12433 | int main() { | |
10f2d63a | 12434 | |
f6bcfd97 | 12435 | int wx_test_vsscanf(const char *, ...); |
10f2d63a | 12436 | |
f6bcfd97 BP |
12437 | wx_test_vsscanf("%d"); |
12438 | return 0; | |
10f2d63a VZ |
12439 | } |
12440 | ||
f6bcfd97 | 12441 | int wx_test_vsscanf(const char *fmt, ...) |
10f2d63a | 12442 | { |
f6bcfd97 BP |
12443 | va_list argp; |
12444 | va_start(argp, fmt); | |
12445 | vsscanf("42", fmt, argp); | |
12446 | va_end(argp); | |
698dcdb6 VZ |
12447 | |
12448 | ; return 0; } | |
12449 | EOF | |
d73be714 | 12450 | if { (eval echo configure:12451: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 VZ |
12451 | rm -rf conftest* |
12452 | ||
f6bcfd97 | 12453 | wx_cv_func_vsscanf=yes |
698dcdb6 | 12454 | |
10f2d63a | 12455 | else |
698dcdb6 VZ |
12456 | echo "configure: failed program was:" >&5 |
12457 | cat conftest.$ac_ext >&5 | |
12458 | rm -rf conftest* | |
12459 | ||
f6bcfd97 | 12460 | wx_cv_func_vsscanf=no |
698dcdb6 | 12461 | |
6232543b | 12462 | fi |
698dcdb6 | 12463 | rm -f conftest* |
703e0a69 | 12464 | |
1e487827 | 12465 | fi |
698dcdb6 VZ |
12466 | |
12467 | echo "$ac_t""$wx_cv_func_vsscanf" 1>&6 | |
10f2d63a | 12468 | |
9d8deca0 | 12469 | if test "$wx_cv_func_vsscanf" = yes; then |
698dcdb6 | 12470 | cat >> confdefs.h <<\EOF |
9d8deca0 VZ |
12471 | #define HAVE_VSSCANF 1 |
12472 | EOF | |
12473 | ||
12474 | fi | |
12475 | ||
95c8801c VS |
12476 | if test "$TOOLKIT" != "MSW"; then |
12477 | ||
12478 | ||
12479 | ||
698dcdb6 VZ |
12480 | ac_ext=C |
12481 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
12482 | ac_cpp='$CXXCPP $CPPFLAGS' | |
12483 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
12484 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
12485 | cross_compiling=$ac_cv_prog_cxx_cross | |
12486 | ||
12487 | echo $ac_n "checking if iconv() takes char**""... $ac_c" 1>&6 | |
d73be714 | 12488 | echo "configure:12489: checking if iconv() takes char**" >&5 |
698dcdb6 VZ |
12489 | if eval "test \"`echo '$''{'wx_cv_iconv_takes_char'+set}'`\" = set"; then |
12490 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12491 | else | |
12492 | ||
12493 | cat > conftest.$ac_ext <<EOF | |
d73be714 | 12494 | #line 12495 "configure" |
95c8801c VS |
12495 | #include "confdefs.h" |
12496 | #include <iconv.h> | |
698dcdb6 | 12497 | int main() { |
95c8801c VS |
12498 | |
12499 | char **inbuf, **outbuf; | |
19af3b06 VZ |
12500 | iconv_t cd; |
12501 | size_t insz, outsz; | |
12502 | iconv(cd, inbuf, &insz, outbuf, &outsz); | |
698dcdb6 VZ |
12503 | |
12504 | ; return 0; } | |
12505 | EOF | |
d73be714 | 12506 | if { (eval echo configure:12507: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 | 12507 | rm -rf conftest* |
95c8801c VS |
12508 | wx_cv_iconv_takes_char=yes |
12509 | else | |
698dcdb6 VZ |
12510 | echo "configure: failed program was:" >&5 |
12511 | cat conftest.$ac_ext >&5 | |
12512 | rm -rf conftest* | |
12513 | wx_cv_iconv_takes_char=no | |
95c8801c | 12514 | fi |
698dcdb6 | 12515 | rm -f conftest* |
95c8801c VS |
12516 | |
12517 | fi | |
698dcdb6 VZ |
12518 | |
12519 | echo "$ac_t""$wx_cv_iconv_takes_char" 1>&6 | |
10f2d63a | 12520 | ac_ext=c |
698dcdb6 | 12521 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
10f2d63a | 12522 | ac_cpp='$CPP $CPPFLAGS' |
698dcdb6 VZ |
12523 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
12524 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
12525 | cross_compiling=$ac_cv_prog_cc_cross | |
10f2d63a | 12526 | |
95c8801c | 12527 | if test "$wx_cv_iconv_takes_char" = yes ; then |
698dcdb6 | 12528 | cat >> confdefs.h <<\EOF |
95c8801c VS |
12529 | #define WX_ICONV_TAKES_CHAR 1 |
12530 | EOF | |
12531 | ||
12532 | fi | |
10f2d63a | 12533 | |
1e487827 | 12534 | |
698dcdb6 VZ |
12535 | if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then |
12536 | for ac_func in sigaction | |
eb4efbdc | 12537 | do |
698dcdb6 | 12538 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
d73be714 | 12539 | echo "configure:12540: checking for $ac_func" >&5 |
698dcdb6 VZ |
12540 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
12541 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12542 | else | |
12543 | cat > conftest.$ac_ext <<EOF | |
d73be714 | 12544 | #line 12545 "configure" |
eb4efbdc VZ |
12545 | #include "confdefs.h" |
12546 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 12547 | which can conflict with char $ac_func(); below. */ |
eb4efbdc VZ |
12548 | #include <assert.h> |
12549 | /* Override any gcc2 internal prototype to avoid an error. */ | |
12550 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
12551 | builtin and then its argument prototype would still apply. */ |
12552 | char $ac_func(); | |
12553 | ||
12554 | int main() { | |
eb4efbdc VZ |
12555 | |
12556 | /* The GNU C library defines this for functions which it implements | |
12557 | to always fail with ENOSYS. Some functions are actually named | |
12558 | something starting with __ and the normal name is an alias. */ | |
12559 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
12560 | choke me | |
12561 | #else | |
698dcdb6 | 12562 | $ac_func(); |
eb4efbdc VZ |
12563 | #endif |
12564 | ||
698dcdb6 | 12565 | ; return 0; } |
eb4efbdc | 12566 | EOF |
d73be714 | 12567 | if { (eval echo configure:12568: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
12568 | rm -rf conftest* |
12569 | eval "ac_cv_func_$ac_func=yes" | |
12570 | else | |
12571 | echo "configure: failed program was:" >&5 | |
12572 | cat conftest.$ac_ext >&5 | |
12573 | rm -rf conftest* | |
12574 | eval "ac_cv_func_$ac_func=no" | |
12575 | fi | |
12576 | rm -f conftest* | |
12577 | fi | |
eb4efbdc | 12578 | |
698dcdb6 VZ |
12579 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
12580 | echo "$ac_t""yes" 1>&6 | |
12581 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
12582 | cat >> confdefs.h <<EOF | |
12583 | #define $ac_tr_func 1 | |
12584 | EOF | |
12585 | ||
12586 | else | |
12587 | echo "$ac_t""no" 1>&6 | |
eb4efbdc VZ |
12588 | fi |
12589 | done | |
12590 | ||
698dcdb6 | 12591 | |
eb4efbdc | 12592 | if test "$ac_cv_func_sigaction" = "no"; then |
698dcdb6 | 12593 | echo "configure: warning: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" 1>&2 |
eb4efbdc VZ |
12594 | wxUSE_ON_FATAL_EXCEPTION=no |
12595 | fi | |
f6bcfd97 BP |
12596 | |
12597 | if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then | |
698dcdb6 VZ |
12598 | |
12599 | ac_ext=C | |
12600 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
1e487827 | 12601 | ac_cpp='$CXXCPP $CPPFLAGS' |
698dcdb6 VZ |
12602 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
12603 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
12604 | cross_compiling=$ac_cv_prog_cxx_cross | |
6232543b | 12605 | |
1e487827 | 12606 | |
698dcdb6 | 12607 | echo $ac_n "checking for sa_handler type""... $ac_c" 1>&6 |
d73be714 | 12608 | echo "configure:12609: checking for sa_handler type" >&5 |
698dcdb6 VZ |
12609 | if eval "test \"`echo '$''{'wx_cv_type_sa_handler'+set}'`\" = set"; then |
12610 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12611 | else | |
12612 | ||
12613 | cat > conftest.$ac_ext <<EOF | |
d73be714 | 12614 | #line 12615 "configure" |
f6bcfd97 BP |
12615 | #include "confdefs.h" |
12616 | #include <signal.h> | |
698dcdb6 | 12617 | int main() { |
f6bcfd97 BP |
12618 | |
12619 | extern void testSigHandler(int); | |
12620 | ||
12621 | struct sigaction sa; | |
12622 | sa.sa_handler = testSigHandler; | |
698dcdb6 VZ |
12623 | |
12624 | ; return 0; } | |
12625 | EOF | |
d73be714 | 12626 | if { (eval echo configure:12627: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 VZ |
12627 | rm -rf conftest* |
12628 | ||
f6bcfd97 | 12629 | wx_cv_type_sa_handler=int |
698dcdb6 | 12630 | |
f6bcfd97 | 12631 | else |
698dcdb6 VZ |
12632 | echo "configure: failed program was:" >&5 |
12633 | cat conftest.$ac_ext >&5 | |
12634 | rm -rf conftest* | |
12635 | ||
f6bcfd97 | 12636 | wx_cv_type_sa_handler=void |
698dcdb6 | 12637 | |
6232543b | 12638 | fi |
698dcdb6 VZ |
12639 | rm -f conftest* |
12640 | ||
1e487827 | 12641 | fi |
698dcdb6 VZ |
12642 | |
12643 | echo "$ac_t""$wx_cv_type_sa_handler" 1>&6 | |
f6bcfd97 BP |
12644 | |
12645 | ac_ext=c | |
698dcdb6 | 12646 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
f6bcfd97 | 12647 | ac_cpp='$CPP $CPPFLAGS' |
698dcdb6 VZ |
12648 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
12649 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
12650 | cross_compiling=$ac_cv_prog_cc_cross | |
12651 | ||
703e0a69 | 12652 | |
698dcdb6 | 12653 | cat >> confdefs.h <<EOF |
f6bcfd97 BP |
12654 | #define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler |
12655 | EOF | |
12656 | ||
12657 | fi | |
eb4efbdc VZ |
12658 | fi |
12659 | ||
10f2d63a VZ |
12660 | for ac_func in vfork |
12661 | do | |
698dcdb6 | 12662 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
d73be714 | 12663 | echo "configure:12664: checking for $ac_func" >&5 |
698dcdb6 VZ |
12664 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
12665 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12666 | else | |
12667 | cat > conftest.$ac_ext <<EOF | |
d73be714 | 12668 | #line 12669 "configure" |
10f2d63a VZ |
12669 | #include "confdefs.h" |
12670 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 12671 | which can conflict with char $ac_func(); below. */ |
10f2d63a VZ |
12672 | #include <assert.h> |
12673 | /* Override any gcc2 internal prototype to avoid an error. */ | |
12674 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
12675 | builtin and then its argument prototype would still apply. */ |
12676 | char $ac_func(); | |
12677 | ||
12678 | int main() { | |
10f2d63a VZ |
12679 | |
12680 | /* The GNU C library defines this for functions which it implements | |
12681 | to always fail with ENOSYS. Some functions are actually named | |
12682 | something starting with __ and the normal name is an alias. */ | |
12683 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
12684 | choke me | |
12685 | #else | |
698dcdb6 | 12686 | $ac_func(); |
10f2d63a VZ |
12687 | #endif |
12688 | ||
698dcdb6 | 12689 | ; return 0; } |
10f2d63a | 12690 | EOF |
d73be714 | 12691 | if { (eval echo configure:12692: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
12692 | rm -rf conftest* |
12693 | eval "ac_cv_func_$ac_func=yes" | |
12694 | else | |
12695 | echo "configure: failed program was:" >&5 | |
12696 | cat conftest.$ac_ext >&5 | |
12697 | rm -rf conftest* | |
12698 | eval "ac_cv_func_$ac_func=no" | |
12699 | fi | |
12700 | rm -f conftest* | |
12701 | fi | |
270a909e | 12702 | |
698dcdb6 VZ |
12703 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
12704 | echo "$ac_t""yes" 1>&6 | |
12705 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
12706 | cat >> confdefs.h <<EOF | |
12707 | #define $ac_tr_func 1 | |
12708 | EOF | |
12709 | ||
12710 | else | |
12711 | echo "$ac_t""no" 1>&6 | |
270a909e VZ |
12712 | fi |
12713 | done | |
12714 | ||
1e487827 | 12715 | |
698dcdb6 VZ |
12716 | if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then |
12717 | for ac_func in fcntl flock | |
4f3c5f06 | 12718 | do |
698dcdb6 | 12719 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
d73be714 | 12720 | echo "configure:12721: checking for $ac_func" >&5 |
698dcdb6 VZ |
12721 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
12722 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12723 | else | |
12724 | cat > conftest.$ac_ext <<EOF | |
d73be714 | 12725 | #line 12726 "configure" |
4f3c5f06 VZ |
12726 | #include "confdefs.h" |
12727 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 12728 | which can conflict with char $ac_func(); below. */ |
4f3c5f06 VZ |
12729 | #include <assert.h> |
12730 | /* Override any gcc2 internal prototype to avoid an error. */ | |
12731 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
12732 | builtin and then its argument prototype would still apply. */ |
12733 | char $ac_func(); | |
12734 | ||
12735 | int main() { | |
4f3c5f06 VZ |
12736 | |
12737 | /* The GNU C library defines this for functions which it implements | |
12738 | to always fail with ENOSYS. Some functions are actually named | |
12739 | something starting with __ and the normal name is an alias. */ | |
12740 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
12741 | choke me | |
12742 | #else | |
698dcdb6 | 12743 | $ac_func(); |
4f3c5f06 VZ |
12744 | #endif |
12745 | ||
698dcdb6 VZ |
12746 | ; return 0; } |
12747 | EOF | |
d73be714 | 12748 | if { (eval echo configure:12749: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
12749 | rm -rf conftest* |
12750 | eval "ac_cv_func_$ac_func=yes" | |
12751 | else | |
12752 | echo "configure: failed program was:" >&5 | |
12753 | cat conftest.$ac_ext >&5 | |
12754 | rm -rf conftest* | |
12755 | eval "ac_cv_func_$ac_func=no" | |
12756 | fi | |
12757 | rm -f conftest* | |
12758 | fi | |
12759 | ||
12760 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
12761 | echo "$ac_t""yes" 1>&6 | |
12762 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
12763 | cat >> confdefs.h <<EOF | |
12764 | #define $ac_tr_func 1 | |
4f3c5f06 VZ |
12765 | EOF |
12766 | break | |
698dcdb6 VZ |
12767 | else |
12768 | echo "$ac_t""no" 1>&6 | |
4f3c5f06 VZ |
12769 | fi |
12770 | done | |
12771 | ||
698dcdb6 | 12772 | |
4f3c5f06 | 12773 | if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then |
698dcdb6 | 12774 | echo "configure: warning: wxSingleInstanceChecker not available" 1>&2 |
4f3c5f06 VZ |
12775 | wxUSE_SNGLINST_CHECKER=no |
12776 | fi | |
12777 | fi | |
12778 | ||
270a909e VZ |
12779 | for ac_func in timegm |
12780 | do | |
698dcdb6 | 12781 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
d73be714 | 12782 | echo "configure:12783: checking for $ac_func" >&5 |
698dcdb6 VZ |
12783 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
12784 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12785 | else | |
12786 | cat > conftest.$ac_ext <<EOF | |
d73be714 | 12787 | #line 12788 "configure" |
270a909e VZ |
12788 | #include "confdefs.h" |
12789 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 12790 | which can conflict with char $ac_func(); below. */ |
270a909e VZ |
12791 | #include <assert.h> |
12792 | /* Override any gcc2 internal prototype to avoid an error. */ | |
12793 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
12794 | builtin and then its argument prototype would still apply. */ |
12795 | char $ac_func(); | |
12796 | ||
12797 | int main() { | |
270a909e VZ |
12798 | |
12799 | /* The GNU C library defines this for functions which it implements | |
12800 | to always fail with ENOSYS. Some functions are actually named | |
12801 | something starting with __ and the normal name is an alias. */ | |
12802 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
12803 | choke me | |
12804 | #else | |
698dcdb6 | 12805 | $ac_func(); |
270a909e VZ |
12806 | #endif |
12807 | ||
698dcdb6 | 12808 | ; return 0; } |
270a909e | 12809 | EOF |
d73be714 | 12810 | if { (eval echo configure:12811: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
12811 | rm -rf conftest* |
12812 | eval "ac_cv_func_$ac_func=yes" | |
12813 | else | |
12814 | echo "configure: failed program was:" >&5 | |
12815 | cat conftest.$ac_ext >&5 | |
12816 | rm -rf conftest* | |
12817 | eval "ac_cv_func_$ac_func=no" | |
12818 | fi | |
12819 | rm -f conftest* | |
12820 | fi | |
10f2d63a | 12821 | |
698dcdb6 VZ |
12822 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
12823 | echo "$ac_t""yes" 1>&6 | |
12824 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
12825 | cat >> confdefs.h <<EOF | |
12826 | #define $ac_tr_func 1 | |
12827 | EOF | |
12828 | ||
12829 | else | |
12830 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
12831 | fi |
12832 | done | |
12833 | ||
698dcdb6 | 12834 | |
8fd0d89b VZ |
12835 | for ac_func in putenv setenv |
12836 | do | |
698dcdb6 | 12837 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
d73be714 | 12838 | echo "configure:12839: checking for $ac_func" >&5 |
698dcdb6 VZ |
12839 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
12840 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12841 | else | |
12842 | cat > conftest.$ac_ext <<EOF | |
d73be714 | 12843 | #line 12844 "configure" |
8fd0d89b VZ |
12844 | #include "confdefs.h" |
12845 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 12846 | which can conflict with char $ac_func(); below. */ |
8fd0d89b VZ |
12847 | #include <assert.h> |
12848 | /* Override any gcc2 internal prototype to avoid an error. */ | |
12849 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
12850 | builtin and then its argument prototype would still apply. */ |
12851 | char $ac_func(); | |
12852 | ||
12853 | int main() { | |
8fd0d89b VZ |
12854 | |
12855 | /* The GNU C library defines this for functions which it implements | |
12856 | to always fail with ENOSYS. Some functions are actually named | |
12857 | something starting with __ and the normal name is an alias. */ | |
12858 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
12859 | choke me | |
12860 | #else | |
698dcdb6 | 12861 | $ac_func(); |
8fd0d89b VZ |
12862 | #endif |
12863 | ||
698dcdb6 VZ |
12864 | ; return 0; } |
12865 | EOF | |
d73be714 | 12866 | if { (eval echo configure:12867: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
12867 | rm -rf conftest* |
12868 | eval "ac_cv_func_$ac_func=yes" | |
12869 | else | |
12870 | echo "configure: failed program was:" >&5 | |
12871 | cat conftest.$ac_ext >&5 | |
12872 | rm -rf conftest* | |
12873 | eval "ac_cv_func_$ac_func=no" | |
12874 | fi | |
12875 | rm -f conftest* | |
12876 | fi | |
12877 | ||
12878 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
12879 | echo "$ac_t""yes" 1>&6 | |
12880 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
12881 | cat >> confdefs.h <<EOF | |
12882 | #define $ac_tr_func 1 | |
8fd0d89b VZ |
12883 | EOF |
12884 | break | |
698dcdb6 VZ |
12885 | else |
12886 | echo "$ac_t""no" 1>&6 | |
8fd0d89b VZ |
12887 | fi |
12888 | done | |
12889 | ||
698dcdb6 | 12890 | |
b12915c1 VZ |
12891 | HAVE_SOME_SLEEP_FUNC=0 |
12892 | if test "$USE_BEOS" = 1; then | |
698dcdb6 | 12893 | cat >> confdefs.h <<\EOF |
b12915c1 VZ |
12894 | #define HAVE_SLEEP 1 |
12895 | EOF | |
12896 | ||
12897 | HAVE_SOME_SLEEP_FUNC=1 | |
12898 | fi | |
12899 | ||
b4085ce6 | 12900 | if test "$USE_MAC" = 1; then |
698dcdb6 | 12901 | cat >> confdefs.h <<\EOF |
b4085ce6 GD |
12902 | #define HAVE_USLEEP 1 |
12903 | EOF | |
12904 | ||
12905 | HAVE_SOME_SLEEP_FUNC=1 | |
12906 | fi | |
12907 | ||
b12915c1 VZ |
12908 | if test "$HAVE_SOME_SLEEP_FUNC" != 1; then |
12909 | POSIX4_LINK= | |
698dcdb6 | 12910 | for ac_func in nanosleep |
10f2d63a | 12911 | do |
698dcdb6 | 12912 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
d73be714 | 12913 | echo "configure:12914: checking for $ac_func" >&5 |
698dcdb6 VZ |
12914 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
12915 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12916 | else | |
12917 | cat > conftest.$ac_ext <<EOF | |
d73be714 | 12918 | #line 12919 "configure" |
10f2d63a VZ |
12919 | #include "confdefs.h" |
12920 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 12921 | which can conflict with char $ac_func(); below. */ |
10f2d63a VZ |
12922 | #include <assert.h> |
12923 | /* Override any gcc2 internal prototype to avoid an error. */ | |
12924 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
12925 | builtin and then its argument prototype would still apply. */ |
12926 | char $ac_func(); | |
12927 | ||
12928 | int main() { | |
10f2d63a VZ |
12929 | |
12930 | /* The GNU C library defines this for functions which it implements | |
12931 | to always fail with ENOSYS. Some functions are actually named | |
12932 | something starting with __ and the normal name is an alias. */ | |
12933 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
12934 | choke me | |
12935 | #else | |
698dcdb6 | 12936 | $ac_func(); |
10f2d63a VZ |
12937 | #endif |
12938 | ||
698dcdb6 VZ |
12939 | ; return 0; } |
12940 | EOF | |
d73be714 | 12941 | if { (eval echo configure:12942: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
12942 | rm -rf conftest* |
12943 | eval "ac_cv_func_$ac_func=yes" | |
12944 | else | |
12945 | echo "configure: failed program was:" >&5 | |
12946 | cat conftest.$ac_ext >&5 | |
12947 | rm -rf conftest* | |
12948 | eval "ac_cv_func_$ac_func=no" | |
12949 | fi | |
12950 | rm -f conftest* | |
12951 | fi | |
12952 | ||
12953 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
12954 | echo "$ac_t""yes" 1>&6 | |
12955 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
12956 | cat >> confdefs.h <<EOF | |
12957 | #define $ac_tr_func 1 | |
12958 | EOF | |
12959 | cat >> confdefs.h <<\EOF | |
10f2d63a VZ |
12960 | #define HAVE_NANOSLEEP 1 |
12961 | EOF | |
12962 | ||
12963 | else | |
698dcdb6 VZ |
12964 | echo "$ac_t""no" 1>&6 |
12965 | echo $ac_n "checking for nanosleep in -lposix4""... $ac_c" 1>&6 | |
d73be714 | 12966 | echo "configure:12967: checking for nanosleep in -lposix4" >&5 |
698dcdb6 VZ |
12967 | ac_lib_var=`echo posix4'_'nanosleep | sed 'y%./+-%__p_%'` |
12968 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
12969 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 12970 | else |
698dcdb6 | 12971 | ac_save_LIBS="$LIBS" |
10f2d63a | 12972 | LIBS="-lposix4 $LIBS" |
698dcdb6 | 12973 | cat > conftest.$ac_ext <<EOF |
d73be714 | 12974 | #line 12975 "configure" |
10f2d63a VZ |
12975 | #include "confdefs.h" |
12976 | /* Override any gcc2 internal prototype to avoid an error. */ | |
12977 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
12978 | builtin and then its argument prototype would still apply. */ |
12979 | char nanosleep(); | |
12980 | ||
12981 | int main() { | |
12982 | nanosleep() | |
12983 | ; return 0; } | |
12984 | EOF | |
d73be714 | 12985 | if { (eval echo configure:12986: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
12986 | rm -rf conftest* |
12987 | eval "ac_cv_lib_$ac_lib_var=yes" | |
12988 | else | |
12989 | echo "configure: failed program was:" >&5 | |
12990 | cat conftest.$ac_ext >&5 | |
12991 | rm -rf conftest* | |
12992 | eval "ac_cv_lib_$ac_lib_var=no" | |
12993 | fi | |
12994 | rm -f conftest* | |
12995 | LIBS="$ac_save_LIBS" | |
12996 | ||
12997 | fi | |
12998 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
12999 | echo "$ac_t""yes" 1>&6 | |
13000 | ||
13001 | cat >> confdefs.h <<\EOF | |
10f2d63a VZ |
13002 | #define HAVE_NANOSLEEP 1 |
13003 | EOF | |
13004 | ||
b12915c1 | 13005 | POSIX4_LINK="-lposix4" |
698dcdb6 | 13006 | |
10f2d63a | 13007 | else |
698dcdb6 | 13008 | echo "$ac_t""no" 1>&6 |
10f2d63a | 13009 | |
698dcdb6 | 13010 | for ac_func in usleep |
10f2d63a | 13011 | do |
698dcdb6 | 13012 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
d73be714 | 13013 | echo "configure:13014: checking for $ac_func" >&5 |
698dcdb6 VZ |
13014 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
13015 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13016 | else | |
13017 | cat > conftest.$ac_ext <<EOF | |
d73be714 | 13018 | #line 13019 "configure" |
10f2d63a VZ |
13019 | #include "confdefs.h" |
13020 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 13021 | which can conflict with char $ac_func(); below. */ |
10f2d63a VZ |
13022 | #include <assert.h> |
13023 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13024 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
13025 | builtin and then its argument prototype would still apply. */ |
13026 | char $ac_func(); | |
13027 | ||
13028 | int main() { | |
10f2d63a VZ |
13029 | |
13030 | /* The GNU C library defines this for functions which it implements | |
13031 | to always fail with ENOSYS. Some functions are actually named | |
13032 | something starting with __ and the normal name is an alias. */ | |
13033 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
13034 | choke me | |
13035 | #else | |
698dcdb6 | 13036 | $ac_func(); |
10f2d63a VZ |
13037 | #endif |
13038 | ||
698dcdb6 VZ |
13039 | ; return 0; } |
13040 | EOF | |
d73be714 | 13041 | if { (eval echo configure:13042: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
13042 | rm -rf conftest* |
13043 | eval "ac_cv_func_$ac_func=yes" | |
13044 | else | |
13045 | echo "configure: failed program was:" >&5 | |
13046 | cat conftest.$ac_ext >&5 | |
13047 | rm -rf conftest* | |
13048 | eval "ac_cv_func_$ac_func=no" | |
13049 | fi | |
13050 | rm -f conftest* | |
13051 | fi | |
13052 | ||
13053 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
13054 | echo "$ac_t""yes" 1>&6 | |
13055 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
13056 | cat >> confdefs.h <<EOF | |
13057 | #define $ac_tr_func 1 | |
13058 | EOF | |
13059 | cat >> confdefs.h <<\EOF | |
b4085ce6 GD |
13060 | #define HAVE_USLEEP 1 |
13061 | EOF | |
13062 | ||
10f2d63a | 13063 | else |
698dcdb6 VZ |
13064 | echo "$ac_t""no" 1>&6 |
13065 | echo "configure: warning: wxSleep() function will not work" 1>&2 | |
13066 | ||
10f2d63a VZ |
13067 | fi |
13068 | done | |
13069 | ||
698dcdb6 VZ |
13070 | |
13071 | ||
10f2d63a VZ |
13072 | fi |
13073 | ||
698dcdb6 VZ |
13074 | |
13075 | ||
10f2d63a VZ |
13076 | fi |
13077 | done | |
13078 | ||
b12915c1 | 13079 | fi |
10f2d63a VZ |
13080 | |
13081 | for ac_func in uname gethostname | |
13082 | do | |
698dcdb6 | 13083 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
d73be714 | 13084 | echo "configure:13085: checking for $ac_func" >&5 |
698dcdb6 VZ |
13085 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
13086 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13087 | else | |
13088 | cat > conftest.$ac_ext <<EOF | |
d73be714 | 13089 | #line 13090 "configure" |
10f2d63a VZ |
13090 | #include "confdefs.h" |
13091 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 13092 | which can conflict with char $ac_func(); below. */ |
10f2d63a VZ |
13093 | #include <assert.h> |
13094 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13095 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
13096 | builtin and then its argument prototype would still apply. */ |
13097 | char $ac_func(); | |
13098 | ||
13099 | int main() { | |
10f2d63a VZ |
13100 | |
13101 | /* The GNU C library defines this for functions which it implements | |
13102 | to always fail with ENOSYS. Some functions are actually named | |
13103 | something starting with __ and the normal name is an alias. */ | |
13104 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
13105 | choke me | |
13106 | #else | |
698dcdb6 | 13107 | $ac_func(); |
10f2d63a VZ |
13108 | #endif |
13109 | ||
698dcdb6 VZ |
13110 | ; return 0; } |
13111 | EOF | |
d73be714 | 13112 | if { (eval echo configure:13113: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
13113 | rm -rf conftest* |
13114 | eval "ac_cv_func_$ac_func=yes" | |
13115 | else | |
13116 | echo "configure: failed program was:" >&5 | |
13117 | cat conftest.$ac_ext >&5 | |
13118 | rm -rf conftest* | |
13119 | eval "ac_cv_func_$ac_func=no" | |
13120 | fi | |
13121 | rm -f conftest* | |
13122 | fi | |
13123 | ||
13124 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
13125 | echo "$ac_t""yes" 1>&6 | |
13126 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
13127 | cat >> confdefs.h <<EOF | |
13128 | #define $ac_tr_func 1 | |
10f2d63a VZ |
13129 | EOF |
13130 | break | |
698dcdb6 VZ |
13131 | else |
13132 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
13133 | fi |
13134 | done | |
13135 | ||
698dcdb6 VZ |
13136 | |
13137 | ||
13138 | ac_ext=C | |
13139 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
6098c7f9 | 13140 | ac_cpp='$CXXCPP $CPPFLAGS' |
698dcdb6 VZ |
13141 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
13142 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
13143 | cross_compiling=$ac_cv_prog_cxx_cross | |
13144 | ||
6098c7f9 | 13145 | |
10f2d63a VZ |
13146 | for ac_func in strtok_r |
13147 | do | |
698dcdb6 | 13148 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
d73be714 | 13149 | echo "configure:13150: checking for $ac_func" >&5 |
698dcdb6 VZ |
13150 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
13151 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13152 | else | |
13153 | cat > conftest.$ac_ext <<EOF | |
d73be714 | 13154 | #line 13155 "configure" |
10f2d63a VZ |
13155 | #include "confdefs.h" |
13156 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 13157 | which can conflict with char $ac_func(); below. */ |
10f2d63a VZ |
13158 | #include <assert.h> |
13159 | /* Override any gcc2 internal prototype to avoid an error. */ | |
6098c7f9 VZ |
13160 | #ifdef __cplusplus |
13161 | extern "C" | |
13162 | #endif | |
10f2d63a | 13163 | /* We use char because int might match the return type of a gcc2 |
698dcdb6 VZ |
13164 | builtin and then its argument prototype would still apply. */ |
13165 | char $ac_func(); | |
13166 | ||
13167 | int main() { | |
10f2d63a VZ |
13168 | |
13169 | /* The GNU C library defines this for functions which it implements | |
13170 | to always fail with ENOSYS. Some functions are actually named | |
13171 | something starting with __ and the normal name is an alias. */ | |
13172 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
13173 | choke me | |
13174 | #else | |
698dcdb6 | 13175 | $ac_func(); |
10f2d63a VZ |
13176 | #endif |
13177 | ||
698dcdb6 | 13178 | ; return 0; } |
10f2d63a | 13179 | EOF |
d73be714 | 13180 | if { (eval echo configure:13181: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
13181 | rm -rf conftest* |
13182 | eval "ac_cv_func_$ac_func=yes" | |
13183 | else | |
13184 | echo "configure: failed program was:" >&5 | |
13185 | cat conftest.$ac_ext >&5 | |
13186 | rm -rf conftest* | |
13187 | eval "ac_cv_func_$ac_func=no" | |
13188 | fi | |
13189 | rm -f conftest* | |
13190 | fi | |
10f2d63a | 13191 | |
698dcdb6 VZ |
13192 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
13193 | echo "$ac_t""yes" 1>&6 | |
13194 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
13195 | cat >> confdefs.h <<EOF | |
13196 | #define $ac_tr_func 1 | |
13197 | EOF | |
13198 | ||
13199 | else | |
13200 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
13201 | fi |
13202 | done | |
13203 | ||
698dcdb6 | 13204 | |
6098c7f9 | 13205 | ac_ext=c |
698dcdb6 | 13206 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
6098c7f9 | 13207 | ac_cpp='$CPP $CPPFLAGS' |
698dcdb6 VZ |
13208 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
13209 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
13210 | cross_compiling=$ac_cv_prog_cc_cross | |
6232543b | 13211 | |
1e487827 | 13212 | |
698dcdb6 | 13213 | INET_LINK= |
10f2d63a VZ |
13214 | for ac_func in inet_addr |
13215 | do | |
698dcdb6 | 13216 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
d73be714 | 13217 | echo "configure:13218: checking for $ac_func" >&5 |
698dcdb6 VZ |
13218 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
13219 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13220 | else | |
13221 | cat > conftest.$ac_ext <<EOF | |
d73be714 | 13222 | #line 13223 "configure" |
10f2d63a VZ |
13223 | #include "confdefs.h" |
13224 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 VZ |
13225 | which can conflict with char $ac_func(); below. */ |
13226 | #include <assert.h> | |
13227 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10f2d63a | 13228 | /* We use char because int might match the return type of a gcc2 |
698dcdb6 VZ |
13229 | builtin and then its argument prototype would still apply. */ |
13230 | char $ac_func(); | |
13231 | ||
13232 | int main() { | |
10f2d63a VZ |
13233 | |
13234 | /* The GNU C library defines this for functions which it implements | |
13235 | to always fail with ENOSYS. Some functions are actually named | |
1e487827 VS |
13236 | something starting with __ and the normal name is an alias. */ |
13237 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
13238 | choke me | |
13239 | #else | |
698dcdb6 | 13240 | $ac_func(); |
1e487827 | 13241 | #endif |
703e0a69 | 13242 | |
698dcdb6 VZ |
13243 | ; return 0; } |
13244 | EOF | |
d73be714 | 13245 | if { (eval echo configure:13246: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
13246 | rm -rf conftest* |
13247 | eval "ac_cv_func_$ac_func=yes" | |
13248 | else | |
13249 | echo "configure: failed program was:" >&5 | |
13250 | cat conftest.$ac_ext >&5 | |
13251 | rm -rf conftest* | |
13252 | eval "ac_cv_func_$ac_func=no" | |
13253 | fi | |
13254 | rm -f conftest* | |
13255 | fi | |
13256 | ||
13257 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
13258 | echo "$ac_t""yes" 1>&6 | |
13259 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
13260 | cat >> confdefs.h <<EOF | |
13261 | #define $ac_tr_func 1 | |
13262 | EOF | |
13263 | cat >> confdefs.h <<\EOF | |
c63c7106 VZ |
13264 | #define HAVE_INET_ADDR 1 |
13265 | EOF | |
13266 | ||
10f2d63a | 13267 | else |
698dcdb6 VZ |
13268 | echo "$ac_t""no" 1>&6 |
13269 | echo $ac_n "checking for inet_addr in -lnsl""... $ac_c" 1>&6 | |
d73be714 | 13270 | echo "configure:13271: checking for inet_addr in -lnsl" >&5 |
698dcdb6 VZ |
13271 | ac_lib_var=`echo nsl'_'inet_addr | sed 'y%./+-%__p_%'` |
13272 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
13273 | echo $ac_n "(cached) $ac_c" 1>&6 | |
c63c7106 | 13274 | else |
698dcdb6 | 13275 | ac_save_LIBS="$LIBS" |
c63c7106 | 13276 | LIBS="-lnsl $LIBS" |
698dcdb6 | 13277 | cat > conftest.$ac_ext <<EOF |
d73be714 | 13278 | #line 13279 "configure" |
c63c7106 VZ |
13279 | #include "confdefs.h" |
13280 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13281 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
13282 | builtin and then its argument prototype would still apply. */ |
13283 | char inet_addr(); | |
13284 | ||
13285 | int main() { | |
13286 | inet_addr() | |
13287 | ; return 0; } | |
13288 | EOF | |
d73be714 | 13289 | if { (eval echo configure:13290: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
13290 | rm -rf conftest* |
13291 | eval "ac_cv_lib_$ac_lib_var=yes" | |
13292 | else | |
13293 | echo "configure: failed program was:" >&5 | |
13294 | cat conftest.$ac_ext >&5 | |
13295 | rm -rf conftest* | |
13296 | eval "ac_cv_lib_$ac_lib_var=no" | |
13297 | fi | |
13298 | rm -f conftest* | |
13299 | LIBS="$ac_save_LIBS" | |
13300 | ||
13301 | fi | |
13302 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
13303 | echo "$ac_t""yes" 1>&6 | |
c63c7106 VZ |
13304 | INET_LINK="nsl" |
13305 | else | |
698dcdb6 VZ |
13306 | echo "$ac_t""no" 1>&6 |
13307 | echo $ac_n "checking for inet_addr in -lresolv""... $ac_c" 1>&6 | |
d73be714 | 13308 | echo "configure:13309: checking for inet_addr in -lresolv" >&5 |
698dcdb6 VZ |
13309 | ac_lib_var=`echo resolv'_'inet_addr | sed 'y%./+-%__p_%'` |
13310 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
13311 | echo $ac_n "(cached) $ac_c" 1>&6 | |
c63c7106 | 13312 | else |
698dcdb6 | 13313 | ac_save_LIBS="$LIBS" |
c63c7106 | 13314 | LIBS="-lresolv $LIBS" |
698dcdb6 | 13315 | cat > conftest.$ac_ext <<EOF |
d73be714 | 13316 | #line 13317 "configure" |
c63c7106 VZ |
13317 | #include "confdefs.h" |
13318 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13319 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
13320 | builtin and then its argument prototype would still apply. */ |
13321 | char inet_addr(); | |
13322 | ||
13323 | int main() { | |
13324 | inet_addr() | |
13325 | ; return 0; } | |
13326 | EOF | |
d73be714 | 13327 | if { (eval echo configure:13328: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
13328 | rm -rf conftest* |
13329 | eval "ac_cv_lib_$ac_lib_var=yes" | |
13330 | else | |
13331 | echo "configure: failed program was:" >&5 | |
13332 | cat conftest.$ac_ext >&5 | |
13333 | rm -rf conftest* | |
13334 | eval "ac_cv_lib_$ac_lib_var=no" | |
13335 | fi | |
13336 | rm -f conftest* | |
13337 | LIBS="$ac_save_LIBS" | |
c63c7106 | 13338 | |
6232543b | 13339 | fi |
698dcdb6 VZ |
13340 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
13341 | echo "$ac_t""yes" 1>&6 | |
13342 | INET_LINK="resolv" | |
13343 | ||
13344 | else | |
13345 | echo "$ac_t""no" 1>&6 | |
13346 | fi | |
c63c7106 | 13347 | |
698dcdb6 | 13348 | |
1e487827 | 13349 | fi |
703e0a69 | 13350 | |
698dcdb6 VZ |
13351 | |
13352 | ||
10f2d63a VZ |
13353 | fi |
13354 | done | |
13355 | ||
698dcdb6 | 13356 | |
10f2d63a VZ |
13357 | for ac_func in inet_aton |
13358 | do | |
698dcdb6 | 13359 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
d73be714 | 13360 | echo "configure:13361: checking for $ac_func" >&5 |
698dcdb6 VZ |
13361 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
13362 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13363 | else | |
13364 | cat > conftest.$ac_ext <<EOF | |
d73be714 | 13365 | #line 13366 "configure" |
10f2d63a VZ |
13366 | #include "confdefs.h" |
13367 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 13368 | which can conflict with char $ac_func(); below. */ |
10f2d63a VZ |
13369 | #include <assert.h> |
13370 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13371 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
13372 | builtin and then its argument prototype would still apply. */ |
13373 | char $ac_func(); | |
13374 | ||
13375 | int main() { | |
10f2d63a VZ |
13376 | |
13377 | /* The GNU C library defines this for functions which it implements | |
13378 | to always fail with ENOSYS. Some functions are actually named | |
13379 | something starting with __ and the normal name is an alias. */ | |
13380 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
13381 | choke me | |
13382 | #else | |
698dcdb6 | 13383 | $ac_func(); |
10f2d63a VZ |
13384 | #endif |
13385 | ||
698dcdb6 VZ |
13386 | ; return 0; } |
13387 | EOF | |
d73be714 | 13388 | if { (eval echo configure:13389: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
13389 | rm -rf conftest* |
13390 | eval "ac_cv_func_$ac_func=yes" | |
13391 | else | |
13392 | echo "configure: failed program was:" >&5 | |
13393 | cat conftest.$ac_ext >&5 | |
13394 | rm -rf conftest* | |
13395 | eval "ac_cv_func_$ac_func=no" | |
13396 | fi | |
13397 | rm -f conftest* | |
13398 | fi | |
13399 | ||
13400 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
13401 | echo "$ac_t""yes" 1>&6 | |
13402 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
13403 | cat >> confdefs.h <<EOF | |
13404 | #define $ac_tr_func 1 | |
13405 | EOF | |
13406 | cat >> confdefs.h <<\EOF | |
c63c7106 VZ |
13407 | #define HAVE_INET_ATON 1 |
13408 | EOF | |
13409 | ||
10f2d63a | 13410 | else |
698dcdb6 VZ |
13411 | echo "$ac_t""no" 1>&6 |
13412 | echo $ac_n "checking for inet_aton in -l$INET_LINK""... $ac_c" 1>&6 | |
d73be714 | 13413 | echo "configure:13414: checking for inet_aton in -l$INET_LINK" >&5 |
698dcdb6 VZ |
13414 | ac_lib_var=`echo $INET_LINK'_'inet_aton | sed 'y%./+-%__p_%'` |
13415 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
13416 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 13417 | else |
698dcdb6 | 13418 | ac_save_LIBS="$LIBS" |
c63c7106 | 13419 | LIBS="-l$INET_LINK $LIBS" |
698dcdb6 | 13420 | cat > conftest.$ac_ext <<EOF |
d73be714 | 13421 | #line 13422 "configure" |
10f2d63a VZ |
13422 | #include "confdefs.h" |
13423 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13424 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
13425 | builtin and then its argument prototype would still apply. */ |
13426 | char inet_aton(); | |
13427 | ||
13428 | int main() { | |
13429 | inet_aton() | |
13430 | ; return 0; } | |
13431 | EOF | |
d73be714 | 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_lib_$ac_lib_var=yes" | |
13435 | else | |
13436 | echo "configure: failed program was:" >&5 | |
13437 | cat conftest.$ac_ext >&5 | |
13438 | rm -rf conftest* | |
13439 | eval "ac_cv_lib_$ac_lib_var=no" | |
13440 | fi | |
13441 | rm -f conftest* | |
13442 | LIBS="$ac_save_LIBS" | |
13443 | ||
13444 | fi | |
13445 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
13446 | echo "$ac_t""yes" 1>&6 | |
13447 | cat >> confdefs.h <<\EOF | |
c63c7106 | 13448 | #define HAVE_INET_ATON 1 |
10f2d63a VZ |
13449 | EOF |
13450 | ||
698dcdb6 VZ |
13451 | else |
13452 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
13453 | fi |
13454 | ||
698dcdb6 | 13455 | |
c63c7106 VZ |
13456 | fi |
13457 | done | |
13458 | ||
698dcdb6 | 13459 | |
c63c7106 | 13460 | if test "x$INET_LINK" != "x"; then |
698dcdb6 | 13461 | cat >> confdefs.h <<\EOF |
c63c7106 VZ |
13462 | #define HAVE_INET_ADDR 1 |
13463 | EOF | |
13464 | ||
13465 | INET_LINK="-l$INET_LINK" | |
13466 | fi | |
10f2d63a VZ |
13467 | |
13468 | fi | |
13469 | ||
698dcdb6 VZ |
13470 | |
13471 | cat > confcache <<\EOF | |
10f2d63a VZ |
13472 | # This file is a shell script that caches the results of configure |
13473 | # tests run on this system so they can be shared between configure | |
698dcdb6 VZ |
13474 | # scripts and configure runs. It is not useful on other systems. |
13475 | # If it contains results you don't want to keep, you may remove or edit it. | |
10f2d63a | 13476 | # |
698dcdb6 VZ |
13477 | # By default, configure uses ./config.cache as the cache file, |
13478 | # creating it if it does not exist already. You can give configure | |
13479 | # the --cache-file=FILE option to use a different cache file; that is | |
13480 | # what configure does when it calls configure scripts in | |
13481 | # subdirectories, so they share the cache. | |
13482 | # Giving --cache-file=/dev/null disables caching, for debugging configure. | |
13483 | # config.status only pays attention to the cache file if you give it the | |
13484 | # --recheck option to rerun configure. | |
10f2d63a | 13485 | # |
698dcdb6 | 13486 | EOF |
10f2d63a VZ |
13487 | # The following way of writing the cache mishandles newlines in values, |
13488 | # but we know of no workaround that is simple, portable, and efficient. | |
13489 | # So, don't put newlines in cache variables' values. | |
13490 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
13491 | # and sets the high bit in the cache file unless we assign to the vars. | |
698dcdb6 VZ |
13492 | (set) 2>&1 | |
13493 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
13494 | *ac_space=\ *) | |
13495 | # `set' does not quote correctly, so add quotes (double-quote substitution | |
13496 | # turns \\\\ into \\, and sed turns \\ into \). | |
13497 | sed -n \ | |
13498 | -e "s/'/'\\\\''/g" \ | |
13499 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" | |
13500 | ;; | |
13501 | *) | |
13502 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
13503 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' | |
13504 | ;; | |
13505 | esac >> confcache | |
13506 | if cmp -s $cache_file confcache; then | |
13507 | : | |
13508 | else | |
10f2d63a | 13509 | if test -w $cache_file; then |
698dcdb6 VZ |
13510 | echo "updating cache $cache_file" |
13511 | cat confcache > $cache_file | |
10f2d63a VZ |
13512 | else |
13513 | echo "not updating unwritable cache $cache_file" | |
13514 | fi | |
13515 | fi | |
13516 | rm -f confcache | |
13517 | ||
698dcdb6 VZ |
13518 | |
13519 | ||
b089607b | 13520 | if test "$TOOLKIT" != "MSW"; then |
10f2d63a | 13521 | |
698dcdb6 | 13522 | |
10f2d63a VZ |
13523 | THREADS_LINK="" |
13524 | THREADS_OBJ="" | |
13525 | ||
13526 | if test "$wxUSE_THREADS" = "yes" ; then | |
13527 | if test "$wxUSE_WINE" = 1 ; then | |
698dcdb6 | 13528 | echo "configure: warning: Threads are not supported under WINE" 1>&2 |
10f2d63a | 13529 | wxUSE_THREADS="no" |
b12915c1 | 13530 | elif test "$USE_BEOS" = 1; then |
698dcdb6 | 13531 | echo "configure: warning: BeOS threads are not yet supported" 1>&2 |
b12915c1 | 13532 | wxUSE_THREADS="no" |
10f2d63a VZ |
13533 | fi |
13534 | fi | |
13535 | ||
13536 | if test "$wxUSE_THREADS" = "yes" ; then | |
698dcdb6 | 13537 | |
186837b0 | 13538 | if test "$USE_AIX" = 1; then |
f6bcfd97 BP |
13539 | THREADS_LIB=pthreads |
13540 | else | |
13541 | THREADS_LIB=pthread | |
13542 | fi | |
13543 | ||
698dcdb6 | 13544 | echo $ac_n "checking for pthread_create in -l$THREADS_LIB""... $ac_c" 1>&6 |
d73be714 | 13545 | echo "configure:13546: checking for pthread_create in -l$THREADS_LIB" >&5 |
698dcdb6 VZ |
13546 | ac_lib_var=`echo $THREADS_LIB'_'pthread_create | sed 'y%./+-%__p_%'` |
13547 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
13548 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 13549 | else |
698dcdb6 | 13550 | ac_save_LIBS="$LIBS" |
f6bcfd97 | 13551 | LIBS="-l$THREADS_LIB $LIBS" |
698dcdb6 | 13552 | cat > conftest.$ac_ext <<EOF |
d73be714 | 13553 | #line 13554 "configure" |
10f2d63a VZ |
13554 | #include "confdefs.h" |
13555 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13556 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
13557 | builtin and then its argument prototype would still apply. */ |
13558 | char pthread_create(); | |
13559 | ||
13560 | int main() { | |
13561 | pthread_create() | |
13562 | ; return 0; } | |
13563 | EOF | |
d73be714 | 13564 | if { (eval echo configure:13565: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
13565 | rm -rf conftest* |
13566 | eval "ac_cv_lib_$ac_lib_var=yes" | |
13567 | else | |
13568 | echo "configure: failed program was:" >&5 | |
13569 | cat conftest.$ac_ext >&5 | |
13570 | rm -rf conftest* | |
13571 | eval "ac_cv_lib_$ac_lib_var=no" | |
13572 | fi | |
13573 | rm -f conftest* | |
13574 | LIBS="$ac_save_LIBS" | |
10f2d63a | 13575 | |
698dcdb6 VZ |
13576 | fi |
13577 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
13578 | echo "$ac_t""yes" 1>&6 | |
13579 | ||
10f2d63a | 13580 | THREADS_OBJ="threadpsx.lo" |
f6bcfd97 | 13581 | THREADS_LINK=$THREADS_LIB |
698dcdb6 | 13582 | |
10f2d63a | 13583 | else |
698dcdb6 | 13584 | echo "$ac_t""no" 1>&6 |
10f2d63a | 13585 | |
698dcdb6 | 13586 | echo $ac_n "checking for pthread_create in -lc_r""... $ac_c" 1>&6 |
d73be714 | 13587 | echo "configure:13588: checking for pthread_create in -lc_r" >&5 |
698dcdb6 VZ |
13588 | ac_lib_var=`echo c_r'_'pthread_create | sed 'y%./+-%__p_%'` |
13589 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
13590 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 13591 | else |
698dcdb6 | 13592 | ac_save_LIBS="$LIBS" |
10f2d63a | 13593 | LIBS="-lc_r $LIBS" |
698dcdb6 | 13594 | cat > conftest.$ac_ext <<EOF |
d73be714 | 13595 | #line 13596 "configure" |
10f2d63a VZ |
13596 | #include "confdefs.h" |
13597 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13598 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
13599 | builtin and then its argument prototype would still apply. */ |
13600 | char pthread_create(); | |
13601 | ||
13602 | int main() { | |
13603 | pthread_create() | |
13604 | ; return 0; } | |
13605 | EOF | |
d73be714 | 13606 | if { (eval echo configure:13607: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
13607 | rm -rf conftest* |
13608 | eval "ac_cv_lib_$ac_lib_var=yes" | |
13609 | else | |
13610 | echo "configure: failed program was:" >&5 | |
13611 | cat conftest.$ac_ext >&5 | |
13612 | rm -rf conftest* | |
13613 | eval "ac_cv_lib_$ac_lib_var=no" | |
13614 | fi | |
13615 | rm -f conftest* | |
13616 | LIBS="$ac_save_LIBS" | |
10f2d63a | 13617 | |
698dcdb6 VZ |
13618 | fi |
13619 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
13620 | echo "$ac_t""yes" 1>&6 | |
13621 | ||
10f2d63a VZ |
13622 | THREADS_OBJ="threadpsx.lo" |
13623 | THREADS_LINK="c_r" | |
698dcdb6 | 13624 | |
10f2d63a | 13625 | else |
698dcdb6 | 13626 | echo "$ac_t""no" 1>&6 |
10f2d63a | 13627 | |
698dcdb6 VZ |
13628 | ac_safe=`echo "sys/prctl.h" | sed 'y%./+-%__p_%'` |
13629 | echo $ac_n "checking for sys/prctl.h""... $ac_c" 1>&6 | |
d73be714 | 13630 | echo "configure:13631: checking for sys/prctl.h" >&5 |
698dcdb6 VZ |
13631 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
13632 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 13633 | else |
698dcdb6 | 13634 | cat > conftest.$ac_ext <<EOF |
d73be714 | 13635 | #line 13636 "configure" |
10f2d63a VZ |
13636 | #include "confdefs.h" |
13637 | #include <sys/prctl.h> | |
698dcdb6 VZ |
13638 | EOF |
13639 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
d73be714 | 13640 | { (eval echo configure:13641: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
13641 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
13642 | if test -z "$ac_err"; then | |
13643 | rm -rf conftest* | |
13644 | eval "ac_cv_header_$ac_safe=yes" | |
1e487827 | 13645 | else |
698dcdb6 VZ |
13646 | echo "$ac_err" >&5 |
13647 | echo "configure: failed program was:" >&5 | |
10f2d63a | 13648 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
13649 | rm -rf conftest* |
13650 | eval "ac_cv_header_$ac_safe=no" | |
10f2d63a | 13651 | fi |
698dcdb6 | 13652 | rm -f conftest* |
10f2d63a | 13653 | fi |
698dcdb6 VZ |
13654 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
13655 | echo "$ac_t""yes" 1>&6 | |
13656 | ||
1f8ae82f | 13657 | THREADS_OBJ="threadsgi.lo" |
698dcdb6 VZ |
13658 | |
13659 | else | |
13660 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
13661 | fi |
13662 | ||
698dcdb6 | 13663 | |
6232543b | 13664 | fi |
10f2d63a | 13665 | |
698dcdb6 | 13666 | |
1e487827 | 13667 | fi |
703e0a69 | 13668 | |
698dcdb6 | 13669 | |
10f2d63a VZ |
13670 | if test -z "$THREADS_OBJ" ; then |
13671 | wxUSE_THREADS=no | |
698dcdb6 | 13672 | echo "configure: warning: No thread support on this system" 1>&2 |
10f2d63a VZ |
13673 | fi |
13674 | fi | |
13675 | ||
13676 | if test "$wxUSE_THREADS" = "yes" ; then | |
698dcdb6 | 13677 | for ac_func in thr_setconcurrency |
70846f0a | 13678 | do |
698dcdb6 | 13679 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
d73be714 | 13680 | echo "configure:13681: checking for $ac_func" >&5 |
698dcdb6 VZ |
13681 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
13682 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13683 | else | |
13684 | cat > conftest.$ac_ext <<EOF | |
d73be714 | 13685 | #line 13686 "configure" |
70846f0a VZ |
13686 | #include "confdefs.h" |
13687 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 13688 | which can conflict with char $ac_func(); below. */ |
70846f0a VZ |
13689 | #include <assert.h> |
13690 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13691 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
13692 | builtin and then its argument prototype would still apply. */ |
13693 | char $ac_func(); | |
13694 | ||
13695 | int main() { | |
70846f0a VZ |
13696 | |
13697 | /* The GNU C library defines this for functions which it implements | |
13698 | to always fail with ENOSYS. Some functions are actually named | |
13699 | something starting with __ and the normal name is an alias. */ | |
13700 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
13701 | choke me | |
13702 | #else | |
698dcdb6 | 13703 | $ac_func(); |
70846f0a VZ |
13704 | #endif |
13705 | ||
698dcdb6 | 13706 | ; return 0; } |
70846f0a | 13707 | EOF |
d73be714 | 13708 | if { (eval echo configure:13709: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
13709 | rm -rf conftest* |
13710 | eval "ac_cv_func_$ac_func=yes" | |
13711 | else | |
13712 | echo "configure: failed program was:" >&5 | |
13713 | cat conftest.$ac_ext >&5 | |
13714 | rm -rf conftest* | |
13715 | eval "ac_cv_func_$ac_func=no" | |
13716 | fi | |
13717 | rm -f conftest* | |
13718 | fi | |
70846f0a | 13719 | |
698dcdb6 VZ |
13720 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
13721 | echo "$ac_t""yes" 1>&6 | |
13722 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
13723 | cat >> confdefs.h <<EOF | |
13724 | #define $ac_tr_func 1 | |
13725 | EOF | |
13726 | ||
13727 | else | |
13728 | echo "$ac_t""no" 1>&6 | |
70846f0a VZ |
13729 | fi |
13730 | done | |
13731 | ||
698dcdb6 VZ |
13732 | |
13733 | ||
13734 | for ac_hdr in sched.h | |
10f2d63a | 13735 | do |
698dcdb6 VZ |
13736 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
13737 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
d73be714 | 13738 | echo "configure:13739: checking for $ac_hdr" >&5 |
698dcdb6 VZ |
13739 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
13740 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13741 | else | |
13742 | cat > conftest.$ac_ext <<EOF | |
d73be714 | 13743 | #line 13744 "configure" |
10f2d63a | 13744 | #include "confdefs.h" |
698dcdb6 VZ |
13745 | #include <$ac_hdr> |
13746 | EOF | |
13747 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
d73be714 | 13748 | { (eval echo configure:13749: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
13749 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
13750 | if test -z "$ac_err"; then | |
13751 | rm -rf conftest* | |
13752 | eval "ac_cv_header_$ac_safe=yes" | |
1e487827 | 13753 | else |
698dcdb6 VZ |
13754 | echo "$ac_err" >&5 |
13755 | echo "configure: failed program was:" >&5 | |
10f2d63a | 13756 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
13757 | rm -rf conftest* |
13758 | eval "ac_cv_header_$ac_safe=no" | |
10f2d63a | 13759 | fi |
698dcdb6 | 13760 | rm -f conftest* |
10f2d63a | 13761 | fi |
698dcdb6 VZ |
13762 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
13763 | echo "$ac_t""yes" 1>&6 | |
13764 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
13765 | cat >> confdefs.h <<EOF | |
13766 | #define $ac_tr_hdr 1 | |
10f2d63a | 13767 | EOF |
698dcdb6 VZ |
13768 | |
13769 | else | |
13770 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
13771 | fi |
13772 | done | |
13773 | ||
698dcdb6 VZ |
13774 | |
13775 | echo $ac_n "checking for sched_yield in -l$THREADS_LINK""... $ac_c" 1>&6 | |
d73be714 | 13776 | echo "configure:13777: checking for sched_yield in -l$THREADS_LINK" >&5 |
698dcdb6 VZ |
13777 | ac_lib_var=`echo $THREADS_LINK'_'sched_yield | sed 'y%./+-%__p_%'` |
13778 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
13779 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 13780 | else |
698dcdb6 | 13781 | ac_save_LIBS="$LIBS" |
10f2d63a | 13782 | LIBS="-l$THREADS_LINK $LIBS" |
698dcdb6 | 13783 | cat > conftest.$ac_ext <<EOF |
d73be714 | 13784 | #line 13785 "configure" |
10f2d63a VZ |
13785 | #include "confdefs.h" |
13786 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13787 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
13788 | builtin and then its argument prototype would still apply. */ |
13789 | char sched_yield(); | |
13790 | ||
13791 | int main() { | |
13792 | sched_yield() | |
13793 | ; return 0; } | |
13794 | EOF | |
d73be714 | 13795 | if { (eval echo configure:13796: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
13796 | rm -rf conftest* |
13797 | eval "ac_cv_lib_$ac_lib_var=yes" | |
13798 | else | |
13799 | echo "configure: failed program was:" >&5 | |
13800 | cat conftest.$ac_ext >&5 | |
13801 | rm -rf conftest* | |
13802 | eval "ac_cv_lib_$ac_lib_var=no" | |
13803 | fi | |
13804 | rm -f conftest* | |
13805 | LIBS="$ac_save_LIBS" | |
13806 | ||
13807 | fi | |
13808 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
13809 | echo "$ac_t""yes" 1>&6 | |
13810 | cat >> confdefs.h <<\EOF | |
10f2d63a VZ |
13811 | #define HAVE_SCHED_YIELD 1 |
13812 | EOF | |
13813 | ||
13814 | else | |
698dcdb6 VZ |
13815 | echo "$ac_t""no" 1>&6 |
13816 | echo $ac_n "checking for sched_yield in -lposix4""... $ac_c" 1>&6 | |
d73be714 | 13817 | echo "configure:13818: checking for sched_yield in -lposix4" >&5 |
698dcdb6 VZ |
13818 | ac_lib_var=`echo posix4'_'sched_yield | sed 'y%./+-%__p_%'` |
13819 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
13820 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 13821 | else |
698dcdb6 | 13822 | ac_save_LIBS="$LIBS" |
1e487827 | 13823 | LIBS="-lposix4 $LIBS" |
698dcdb6 | 13824 | cat > conftest.$ac_ext <<EOF |
d73be714 | 13825 | #line 13826 "configure" |
10f2d63a VZ |
13826 | #include "confdefs.h" |
13827 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13828 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
13829 | builtin and then its argument prototype would still apply. */ |
13830 | char sched_yield(); | |
13831 | ||
13832 | int main() { | |
13833 | sched_yield() | |
13834 | ; return 0; } | |
13835 | EOF | |
d73be714 | 13836 | if { (eval echo configure:13837: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
13837 | rm -rf conftest* |
13838 | eval "ac_cv_lib_$ac_lib_var=yes" | |
13839 | else | |
13840 | echo "configure: failed program was:" >&5 | |
13841 | cat conftest.$ac_ext >&5 | |
13842 | rm -rf conftest* | |
13843 | eval "ac_cv_lib_$ac_lib_var=no" | |
13844 | fi | |
13845 | rm -f conftest* | |
13846 | LIBS="$ac_save_LIBS" | |
13847 | ||
13848 | fi | |
13849 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
13850 | echo "$ac_t""yes" 1>&6 | |
13851 | cat >> confdefs.h <<\EOF | |
10f2d63a VZ |
13852 | #define HAVE_SCHED_YIELD 1 |
13853 | EOF | |
13854 | POSIX4_LINK="-lposix4" | |
13855 | else | |
698dcdb6 VZ |
13856 | echo "$ac_t""no" 1>&6 |
13857 | echo "configure: warning: wxThread::Yield will not work properly" 1>&2 | |
13858 | ||
6232543b | 13859 | fi |
10f2d63a | 13860 | |
698dcdb6 | 13861 | |
1e487827 | 13862 | fi |
703e0a69 | 13863 | |
698dcdb6 | 13864 | |
f6bcfd97 | 13865 | HAVE_PRIOR_FUNCS=0 |
698dcdb6 | 13866 | echo $ac_n "checking for pthread_attr_getschedpolicy in -l$THREADS_LINK""... $ac_c" 1>&6 |
d73be714 | 13867 | echo "configure:13868: checking for pthread_attr_getschedpolicy in -l$THREADS_LINK" >&5 |
698dcdb6 VZ |
13868 | ac_lib_var=`echo $THREADS_LINK'_'pthread_attr_getschedpolicy | sed 'y%./+-%__p_%'` |
13869 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
13870 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 13871 | else |
698dcdb6 | 13872 | ac_save_LIBS="$LIBS" |
10f2d63a | 13873 | LIBS="-l$THREADS_LINK $LIBS" |
698dcdb6 | 13874 | cat > conftest.$ac_ext <<EOF |
d73be714 | 13875 | #line 13876 "configure" |
10f2d63a VZ |
13876 | #include "confdefs.h" |
13877 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13878 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
13879 | builtin and then its argument prototype would still apply. */ |
13880 | char pthread_attr_getschedpolicy(); | |
13881 | ||
13882 | int main() { | |
13883 | pthread_attr_getschedpolicy() | |
13884 | ; return 0; } | |
13885 | EOF | |
d73be714 | 13886 | if { (eval echo configure:13887: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
13887 | rm -rf conftest* |
13888 | eval "ac_cv_lib_$ac_lib_var=yes" | |
13889 | else | |
13890 | echo "configure: failed program was:" >&5 | |
13891 | cat conftest.$ac_ext >&5 | |
13892 | rm -rf conftest* | |
13893 | eval "ac_cv_lib_$ac_lib_var=no" | |
13894 | fi | |
13895 | rm -f conftest* | |
13896 | LIBS="$ac_save_LIBS" | |
13897 | ||
13898 | fi | |
13899 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
13900 | echo "$ac_t""yes" 1>&6 | |
13901 | echo $ac_n "checking for pthread_attr_setschedparam in -l$THREADS_LINK""... $ac_c" 1>&6 | |
d73be714 | 13902 | echo "configure:13903: checking for pthread_attr_setschedparam in -l$THREADS_LINK" >&5 |
698dcdb6 VZ |
13903 | ac_lib_var=`echo $THREADS_LINK'_'pthread_attr_setschedparam | sed 'y%./+-%__p_%'` |
13904 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
13905 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13906 | else | |
13907 | ac_save_LIBS="$LIBS" | |
f6bcfd97 | 13908 | LIBS="-l$THREADS_LINK $LIBS" |
698dcdb6 | 13909 | cat > conftest.$ac_ext <<EOF |
d73be714 | 13910 | #line 13911 "configure" |
f6bcfd97 BP |
13911 | #include "confdefs.h" |
13912 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13913 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
13914 | builtin and then its argument prototype would still apply. */ |
13915 | char pthread_attr_setschedparam(); | |
13916 | ||
13917 | int main() { | |
13918 | pthread_attr_setschedparam() | |
13919 | ; return 0; } | |
13920 | EOF | |
d73be714 | 13921 | if { (eval echo configure:13922: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
13922 | rm -rf conftest* |
13923 | eval "ac_cv_lib_$ac_lib_var=yes" | |
13924 | else | |
13925 | echo "configure: failed program was:" >&5 | |
13926 | cat conftest.$ac_ext >&5 | |
13927 | rm -rf conftest* | |
13928 | eval "ac_cv_lib_$ac_lib_var=no" | |
13929 | fi | |
13930 | rm -f conftest* | |
13931 | LIBS="$ac_save_LIBS" | |
13932 | ||
13933 | fi | |
13934 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
13935 | echo "$ac_t""yes" 1>&6 | |
13936 | echo $ac_n "checking for sched_get_priority_max in -l$THREADS_LINK""... $ac_c" 1>&6 | |
d73be714 | 13937 | echo "configure:13938: checking for sched_get_priority_max in -l$THREADS_LINK" >&5 |
698dcdb6 VZ |
13938 | ac_lib_var=`echo $THREADS_LINK'_'sched_get_priority_max | sed 'y%./+-%__p_%'` |
13939 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
13940 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13941 | else | |
13942 | ac_save_LIBS="$LIBS" | |
f6bcfd97 | 13943 | LIBS="-l$THREADS_LINK $LIBS" |
698dcdb6 | 13944 | cat > conftest.$ac_ext <<EOF |
d73be714 | 13945 | #line 13946 "configure" |
f6bcfd97 BP |
13946 | #include "confdefs.h" |
13947 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13948 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
13949 | builtin and then its argument prototype would still apply. */ |
13950 | char sched_get_priority_max(); | |
13951 | ||
13952 | int main() { | |
13953 | sched_get_priority_max() | |
13954 | ; return 0; } | |
13955 | EOF | |
d73be714 | 13956 | if { (eval echo configure:13957: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
13957 | rm -rf conftest* |
13958 | eval "ac_cv_lib_$ac_lib_var=yes" | |
13959 | else | |
13960 | echo "configure: failed program was:" >&5 | |
13961 | cat conftest.$ac_ext >&5 | |
13962 | rm -rf conftest* | |
13963 | eval "ac_cv_lib_$ac_lib_var=no" | |
13964 | fi | |
13965 | rm -f conftest* | |
13966 | LIBS="$ac_save_LIBS" | |
13967 | ||
13968 | fi | |
13969 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
13970 | echo "$ac_t""yes" 1>&6 | |
f6bcfd97 | 13971 | HAVE_PRIOR_FUNCS=1 |
10f2d63a | 13972 | else |
698dcdb6 VZ |
13973 | echo "$ac_t""no" 1>&6 |
13974 | echo $ac_n "checking for sched_get_priority_max in -lposix4""... $ac_c" 1>&6 | |
d73be714 | 13975 | echo "configure:13976: checking for sched_get_priority_max in -lposix4" >&5 |
698dcdb6 VZ |
13976 | ac_lib_var=`echo posix4'_'sched_get_priority_max | sed 'y%./+-%__p_%'` |
13977 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
13978 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1e487827 | 13979 | else |
698dcdb6 | 13980 | ac_save_LIBS="$LIBS" |
1e487827 | 13981 | LIBS="-lposix4 $LIBS" |
698dcdb6 | 13982 | cat > conftest.$ac_ext <<EOF |
d73be714 | 13983 | #line 13984 "configure" |
10f2d63a | 13984 | #include "confdefs.h" |
6232543b | 13985 | /* Override any gcc2 internal prototype to avoid an error. */ |
6232543b | 13986 | /* We use char because int might match the return type of a gcc2 |
698dcdb6 VZ |
13987 | builtin and then its argument prototype would still apply. */ |
13988 | char sched_get_priority_max(); | |
13989 | ||
13990 | int main() { | |
13991 | sched_get_priority_max() | |
13992 | ; return 0; } | |
13993 | EOF | |
d73be714 | 13994 | if { (eval echo configure:13995: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
13995 | rm -rf conftest* |
13996 | eval "ac_cv_lib_$ac_lib_var=yes" | |
13997 | else | |
13998 | echo "configure: failed program was:" >&5 | |
13999 | cat conftest.$ac_ext >&5 | |
14000 | rm -rf conftest* | |
14001 | eval "ac_cv_lib_$ac_lib_var=no" | |
14002 | fi | |
14003 | rm -f conftest* | |
14004 | LIBS="$ac_save_LIBS" | |
10f2d63a | 14005 | |
698dcdb6 VZ |
14006 | fi |
14007 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
14008 | echo "$ac_t""yes" 1>&6 | |
14009 | ||
f6bcfd97 BP |
14010 | HAVE_PRIOR_FUNCS=1 |
14011 | POSIX4_LINK="-lposix4" | |
698dcdb6 VZ |
14012 | |
14013 | else | |
14014 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
14015 | fi |
14016 | ||
698dcdb6 | 14017 | |
10f2d63a VZ |
14018 | fi |
14019 | ||
698dcdb6 VZ |
14020 | |
14021 | else | |
14022 | echo "$ac_t""no" 1>&6 | |
6232543b | 14023 | fi |
10f2d63a | 14024 | |
698dcdb6 VZ |
14025 | |
14026 | else | |
14027 | echo "$ac_t""no" 1>&6 | |
1e487827 | 14028 | fi |
703e0a69 | 14029 | |
698dcdb6 | 14030 | |
f6bcfd97 | 14031 | if test "$HAVE_PRIOR_FUNCS" = 1; then |
698dcdb6 | 14032 | cat >> confdefs.h <<\EOF |
f6bcfd97 BP |
14033 | #define HAVE_THREAD_PRIORITY_FUNCTIONS 1 |
14034 | EOF | |
14035 | ||
14036 | else | |
698dcdb6 | 14037 | echo "configure: warning: Setting thread priority will not work" 1>&2 |
f6bcfd97 BP |
14038 | fi |
14039 | ||
698dcdb6 | 14040 | echo $ac_n "checking for pthread_cancel in -l$THREADS_LINK""... $ac_c" 1>&6 |
d73be714 | 14041 | echo "configure:14042: checking for pthread_cancel in -l$THREADS_LINK" >&5 |
698dcdb6 VZ |
14042 | ac_lib_var=`echo $THREADS_LINK'_'pthread_cancel | sed 'y%./+-%__p_%'` |
14043 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
14044 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 14045 | else |
698dcdb6 | 14046 | ac_save_LIBS="$LIBS" |
10f2d63a | 14047 | LIBS="-l$THREADS_LINK $LIBS" |
698dcdb6 | 14048 | cat > conftest.$ac_ext <<EOF |
d73be714 | 14049 | #line 14050 "configure" |
10f2d63a VZ |
14050 | #include "confdefs.h" |
14051 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14052 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
14053 | builtin and then its argument prototype would still apply. */ |
14054 | char pthread_cancel(); | |
14055 | ||
14056 | int main() { | |
14057 | pthread_cancel() | |
14058 | ; return 0; } | |
14059 | EOF | |
d73be714 | 14060 | if { (eval echo configure:14061: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
14061 | rm -rf conftest* |
14062 | eval "ac_cv_lib_$ac_lib_var=yes" | |
14063 | else | |
14064 | echo "configure: failed program was:" >&5 | |
14065 | cat conftest.$ac_ext >&5 | |
14066 | rm -rf conftest* | |
14067 | eval "ac_cv_lib_$ac_lib_var=no" | |
14068 | fi | |
14069 | rm -f conftest* | |
14070 | LIBS="$ac_save_LIBS" | |
14071 | ||
14072 | fi | |
14073 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
14074 | echo "$ac_t""yes" 1>&6 | |
14075 | cat >> confdefs.h <<\EOF | |
10f2d63a VZ |
14076 | #define HAVE_PTHREAD_CANCEL 1 |
14077 | EOF | |
14078 | ||
14079 | else | |
698dcdb6 VZ |
14080 | echo "$ac_t""no" 1>&6 |
14081 | echo "configure: warning: wxThread::Kill() will not work properly" 1>&2 | |
10f2d63a VZ |
14082 | fi |
14083 | ||
1e487827 | 14084 | |
698dcdb6 | 14085 | echo $ac_n "checking for pthread_cleanup_push/pop""... $ac_c" 1>&6 |
d73be714 | 14086 | echo "configure:14087: checking for pthread_cleanup_push/pop" >&5 |
698dcdb6 VZ |
14087 | if eval "test \"`echo '$''{'wx_cv_func_pthread_cleanup_push'+set}'`\" = set"; then |
14088 | echo $ac_n "(cached) $ac_c" 1>&6 | |
14089 | else | |
14090 | ||
14091 | cat > conftest.$ac_ext <<EOF | |
d73be714 | 14092 | #line 14093 "configure" |
10f2d63a VZ |
14093 | #include "confdefs.h" |
14094 | #include <pthread.h> | |
698dcdb6 | 14095 | int main() { |
10f2d63a VZ |
14096 | |
14097 | pthread_cleanup_push(NULL, NULL); | |
14098 | pthread_cleanup_pop(0); | |
698dcdb6 VZ |
14099 | |
14100 | ; return 0; } | |
14101 | EOF | |
d73be714 | 14102 | if { (eval echo configure:14103: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 VZ |
14103 | rm -rf conftest* |
14104 | ||
10f2d63a | 14105 | wx_cv_func_pthread_cleanup_push=yes |
698dcdb6 | 14106 | |
10f2d63a | 14107 | else |
698dcdb6 VZ |
14108 | echo "configure: failed program was:" >&5 |
14109 | cat conftest.$ac_ext >&5 | |
14110 | rm -rf conftest* | |
14111 | ||
10f2d63a | 14112 | wx_cv_func_pthread_cleanup_push=no |
698dcdb6 | 14113 | |
6232543b | 14114 | fi |
698dcdb6 VZ |
14115 | rm -f conftest* |
14116 | ||
1e487827 | 14117 | fi |
698dcdb6 VZ |
14118 | |
14119 | echo "$ac_t""$wx_cv_func_pthread_cleanup_push" 1>&6 | |
10f2d63a | 14120 | |
d9b9876f | 14121 | if test "$wx_cv_func_pthread_cleanup_push" = "yes"; then |
698dcdb6 | 14122 | cat >> confdefs.h <<\EOF |
d9b9876f VZ |
14123 | #define HAVE_THREAD_CLEANUP_FUNCTIONS 1 |
14124 | EOF | |
14125 | ||
14126 | fi | |
14127 | ||
698dcdb6 VZ |
14128 | |
14129 | echo $ac_n "checking for pthread_mutexattr_t""... $ac_c" 1>&6 | |
d73be714 | 14130 | echo "configure:14131: checking for pthread_mutexattr_t" >&5 |
698dcdb6 VZ |
14131 | if eval "test \"`echo '$''{'wx_cv_type_pthread_mutexattr_t'+set}'`\" = set"; then |
14132 | echo $ac_n "(cached) $ac_c" 1>&6 | |
d9b9876f | 14133 | else |
698dcdb6 VZ |
14134 | |
14135 | cat > conftest.$ac_ext <<EOF | |
d73be714 | 14136 | #line 14137 "configure" |
d9b9876f VZ |
14137 | #include "confdefs.h" |
14138 | #include <pthread.h> | |
698dcdb6 | 14139 | int main() { |
d9b9876f VZ |
14140 | |
14141 | pthread_mutexattr_t attr; | |
14142 | pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE); | |
698dcdb6 VZ |
14143 | |
14144 | ; return 0; } | |
14145 | EOF | |
d73be714 | 14146 | if { (eval echo configure:14147: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 VZ |
14147 | rm -rf conftest* |
14148 | ||
d9b9876f | 14149 | wx_cv_type_pthread_mutexattr_t=yes |
698dcdb6 | 14150 | |
d9b9876f | 14151 | else |
698dcdb6 VZ |
14152 | echo "configure: failed program was:" >&5 |
14153 | cat conftest.$ac_ext >&5 | |
14154 | rm -rf conftest* | |
14155 | ||
d9b9876f | 14156 | wx_cv_type_pthread_mutexattr_t=no |
698dcdb6 VZ |
14157 | |
14158 | ||
6232543b | 14159 | fi |
698dcdb6 VZ |
14160 | rm -f conftest* |
14161 | ||
1e487827 | 14162 | fi |
698dcdb6 VZ |
14163 | |
14164 | echo "$ac_t""$wx_cv_type_pthread_mutexattr_t" 1>&6 | |
d9b9876f VZ |
14165 | |
14166 | if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then | |
698dcdb6 | 14167 | cat >> confdefs.h <<\EOF |
d9b9876f VZ |
14168 | #define HAVE_PTHREAD_MUTEXATTR_T 1 |
14169 | EOF | |
14170 | ||
14171 | else | |
698dcdb6 | 14172 | echo $ac_n "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER""... $ac_c" 1>&6 |
d73be714 | 14173 | echo "configure:14174: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5 |
698dcdb6 VZ |
14174 | if eval "test \"`echo '$''{'wx_cv_type_pthread_rec_mutex_init'+set}'`\" = set"; then |
14175 | echo $ac_n "(cached) $ac_c" 1>&6 | |
14176 | else | |
14177 | ||
14178 | cat > conftest.$ac_ext <<EOF | |
d73be714 | 14179 | #line 14180 "configure" |
d9b9876f VZ |
14180 | #include "confdefs.h" |
14181 | #include <pthread.h> | |
698dcdb6 | 14182 | int main() { |
d9b9876f VZ |
14183 | |
14184 | pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP; | |
698dcdb6 VZ |
14185 | |
14186 | ; return 0; } | |
14187 | EOF | |
d73be714 | 14188 | if { (eval echo configure:14189: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 VZ |
14189 | rm -rf conftest* |
14190 | ||
d9b9876f | 14191 | wx_cv_type_pthread_rec_mutex_init=yes |
698dcdb6 | 14192 | |
d9b9876f | 14193 | else |
698dcdb6 VZ |
14194 | echo "configure: failed program was:" >&5 |
14195 | cat conftest.$ac_ext >&5 | |
14196 | rm -rf conftest* | |
14197 | ||
d9b9876f | 14198 | wx_cv_type_pthread_rec_mutex_init=no |
698dcdb6 VZ |
14199 | |
14200 | ||
6232543b | 14201 | fi |
698dcdb6 VZ |
14202 | rm -f conftest* |
14203 | ||
1e487827 | 14204 | fi |
698dcdb6 VZ |
14205 | |
14206 | echo "$ac_t""$wx_cv_type_pthread_rec_mutex_init" 1>&6 | |
3765e936 | 14207 | if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then |
698dcdb6 | 14208 | cat >> confdefs.h <<\EOF |
d9b9876f VZ |
14209 | #define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1 |
14210 | EOF | |
14211 | ||
14212 | else | |
698dcdb6 | 14213 | echo "configure: warning: wxMutex won't be recursive on this platform" 1>&2 |
d9b9876f VZ |
14214 | fi |
14215 | fi | |
14216 | ||
10f2d63a | 14217 | THREADS_LINK="-l$THREADS_LINK" |
186837b0 VZ |
14218 | |
14219 | if test "$USE_SOLARIS" = "yes" -a "$GCC" != "yes"; then | |
14220 | CFLAGS="${CFLAGS} -mt" | |
14221 | CXXFLAGS="${CXXFLAGS} -mt" | |
14222 | LDFLAGS="${LDFLAGS} -mt" | |
14223 | fi | |
10f2d63a VZ |
14224 | fi |
14225 | ||
14226 | fi | |
14227 | ||
14228 | if test "$wxUSE_THREADS" = "yes"; then | |
698dcdb6 | 14229 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
14230 | #define wxUSE_THREADS 1 |
14231 | EOF | |
14232 | ||
698dcdb6 | 14233 | |
2c6025bc | 14234 | if test "$wxUSE_MAC" = "0"; then |
10f2d63a | 14235 | CFLAGS="${CFLAGS} -D_REENTRANT" |
2c6025bc GD |
14236 | CXXFLAGS="${CXXFLAGS} -D_REENTRANT" |
14237 | fi | |
10f2d63a VZ |
14238 | |
14239 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread" | |
14240 | else | |
14241 | if test "$ac_cv_func_strtok_r" = "yes"; then | |
698dcdb6 | 14242 | echo $ac_n "checking if -D_REENTRANT is needed""... $ac_c" 1>&6 |
d73be714 | 14243 | echo "configure:14244: checking if -D_REENTRANT is needed" >&5 |
ab9b9eab VZ |
14244 | if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then |
14245 | CFLAGS="${CFLAGS} -D_REENTRANT" | |
14246 | CXXFLAGS="${CXXFLAGS} -D_REENTRANT" | |
698dcdb6 | 14247 | echo "$ac_t""yes" 1>&6 |
ab9b9eab | 14248 | else |
698dcdb6 | 14249 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
14250 | fi |
14251 | fi | |
14252 | fi | |
14253 | ||
6f72b082 | 14254 | if test "$WXGTK20" = 1 ; then |
698dcdb6 | 14255 | cat >> confdefs.h <<EOF |
6f72b082 | 14256 | #define __WXGTK20__ $WXGTK20 |
13111b2a VZ |
14257 | EOF |
14258 | ||
14259 | WXGTK12=1 | |
14260 | fi | |
14261 | ||
10f2d63a | 14262 | if test "$WXGTK12" = 1 ; then |
698dcdb6 | 14263 | cat >> confdefs.h <<EOF |
10f2d63a VZ |
14264 | #define __WXGTK12__ $WXGTK12 |
14265 | EOF | |
14266 | ||
14267 | fi | |
14268 | ||
f6bcfd97 | 14269 | if test "$WXGTK127" = 1 ; then |
698dcdb6 | 14270 | cat >> confdefs.h <<EOF |
f6bcfd97 BP |
14271 | #define __WXGTK127__ $WXGTK127 |
14272 | EOF | |
14273 | ||
14274 | fi | |
14275 | ||
10f2d63a VZ |
14276 | if test "$WXWINE" = 1 ; then |
14277 | TOOLKIT_DEF="${TOOLKIT_DEF} -D__WXWINE__" | |
14278 | fi | |
14279 | ||
b4085ce6 | 14280 | if test "$wxUSE_MAC" = 1 ; then |
2c6025bc | 14281 | TOOLKIT_DEF="${TOOLKIT_DEF} -D__UNIX__ -D__POWERPC__ -DTARGET_CARBON" |
ea5999b9 | 14282 | CFLAGS="${CFLAGS} -fno-common -fpascal-strings" |
0c451ef3 | 14283 | CPPFLAGS="${CPPFLAGS} -cpp-precomp -fno-common -fpascal-strings" |
2f51a9ec GD |
14284 | # Extract the first word of "Rez", so it can be a program name with args. |
14285 | set dummy Rez; ac_word=$2 | |
698dcdb6 | 14286 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
d73be714 | 14287 | echo "configure:14288: checking for $ac_word" >&5 |
698dcdb6 VZ |
14288 | if eval "test \"`echo '$''{'ac_cv_prog_REZ'+set}'`\" = set"; then |
14289 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2f51a9ec GD |
14290 | else |
14291 | if test -n "$REZ"; then | |
14292 | ac_cv_prog_REZ="$REZ" # Let the user override the test. | |
14293 | else | |
698dcdb6 VZ |
14294 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
14295 | ac_dummy="$PATH" | |
14296 | for ac_dir in $ac_dummy; do | |
14297 | test -z "$ac_dir" && ac_dir=. | |
14298 | if test -f $ac_dir/$ac_word; then | |
14299 | ac_cv_prog_REZ="Rez" | |
14300 | break | |
14301 | fi | |
14302 | done | |
14303 | IFS="$ac_save_ifs" | |
2f51a9ec GD |
14304 | test -z "$ac_cv_prog_REZ" && ac_cv_prog_REZ="/Developer/Tools/Rez" |
14305 | fi | |
14306 | fi | |
698dcdb6 | 14307 | REZ="$ac_cv_prog_REZ" |
2f51a9ec | 14308 | if test -n "$REZ"; then |
698dcdb6 | 14309 | echo "$ac_t""$REZ" 1>&6 |
2f51a9ec | 14310 | else |
698dcdb6 | 14311 | echo "$ac_t""no" 1>&6 |
2f51a9ec GD |
14312 | fi |
14313 | ||
14314 | # Extract the first word of "Derez", so it can be a program name with args. | |
14315 | set dummy Derez; ac_word=$2 | |
698dcdb6 | 14316 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
d73be714 | 14317 | echo "configure:14318: checking for $ac_word" >&5 |
698dcdb6 VZ |
14318 | if eval "test \"`echo '$''{'ac_cv_prog_DEREZ'+set}'`\" = set"; then |
14319 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2f51a9ec GD |
14320 | else |
14321 | if test -n "$DEREZ"; then | |
14322 | ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test. | |
14323 | else | |
698dcdb6 VZ |
14324 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
14325 | ac_dummy="$PATH" | |
14326 | for ac_dir in $ac_dummy; do | |
14327 | test -z "$ac_dir" && ac_dir=. | |
14328 | if test -f $ac_dir/$ac_word; then | |
14329 | ac_cv_prog_DEREZ="Derez" | |
14330 | break | |
14331 | fi | |
14332 | done | |
14333 | IFS="$ac_save_ifs" | |
2f51a9ec GD |
14334 | test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/Derez" |
14335 | fi | |
14336 | fi | |
698dcdb6 | 14337 | DEREZ="$ac_cv_prog_DEREZ" |
2f51a9ec | 14338 | if test -n "$DEREZ"; then |
698dcdb6 | 14339 | echo "$ac_t""$DEREZ" 1>&6 |
2f51a9ec | 14340 | else |
698dcdb6 | 14341 | echo "$ac_t""no" 1>&6 |
2f51a9ec GD |
14342 | fi |
14343 | ||
14344 | RESCOMP=${REZ} | |
14345 | REZFLAGS="-d __UNIX__ -useDF" | |
14346 | DEREZFLAGS="Carbon.r -useDF" | |
14347 | RESFLAGS="Carbon.r -t APPL" | |
14348 | LIBWXMACRES="\$(LIBWX_MACRES)" | |
14349 | LIBWXMACRESCOMP="\$(LIBWX_MACRESCOMP)" | |
b4085ce6 GD |
14350 | fi |
14351 | ||
10f2d63a VZ |
14352 | if test "$wxUSE_CYGWIN" = 1 ; then |
14353 | TOOLKIT_DEF="${TOOLKIT_DEF} -D__WIN95__" | |
14354 | fi | |
14355 | ||
14356 | WXDEBUG= | |
14357 | ||
14358 | if test "$wxUSE_DEBUG_INFO" = "yes" ; then | |
14359 | WXDEBUG="-g" | |
14360 | wxUSE_OPTIMISE=no | |
14361 | fi | |
14362 | ||
14363 | if test "$wxUSE_DEBUG_GDB" = "yes" ; then | |
14364 | wxUSE_DEBUG_INFO=yes | |
14365 | WXDEBUG="-ggdb" | |
14366 | fi | |
14367 | ||
14368 | if test "$wxUSE_DEBUG_FLAG" = "yes" ; then | |
698dcdb6 | 14369 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
14370 | #define WXDEBUG 1 |
14371 | EOF | |
14372 | ||
14373 | WXDEBUG_DEFINE="-D__WXDEBUG__" | |
14374 | else | |
14375 | if test "$wxUSE_GTK" = 1 ; then | |
14376 | WXDEBUG_DEFINE="-DGTK_NO_CHECK_CASTS" | |
14377 | fi | |
14378 | fi | |
14379 | ||
14380 | if test "$wxUSE_MEM_TRACING" = "yes" ; then | |
698dcdb6 | 14381 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
14382 | #define wxUSE_MEMORY_TRACING 1 |
14383 | EOF | |
14384 | ||
698dcdb6 | 14385 | cat >> confdefs.h <<\EOF |
10f2d63a | 14386 | #define wxUSE_GLOBAL_MEMORY_OPERATORS 1 |
47c13eb7 VS |
14387 | EOF |
14388 | ||
698dcdb6 | 14389 | cat >> confdefs.h <<\EOF |
47c13eb7 | 14390 | #define wxUSE_DEBUG_NEW_ALWAYS 1 |
10f2d63a VZ |
14391 | EOF |
14392 | ||
14393 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck" | |
14394 | fi | |
14395 | ||
14396 | if test "$wxUSE_DMALLOC" = "yes" ; then | |
14397 | DMALLOC_LINK="-ldmalloc" | |
14398 | fi | |
14399 | ||
14400 | PROFILE= | |
14401 | if test "$wxUSE_PROFILE" = "yes" ; then | |
14402 | PROFILE="-pg" | |
14403 | fi | |
14404 | ||
14405 | DEP_INFO_FLAGS= | |
caa2c79b | 14406 | CODE_GEN_FLAGS= |
0f3f1cbc | 14407 | CODE_GEN_FLAGS_CXX= |
10f2d63a VZ |
14408 | if test "$GCC" = yes ; then |
14409 | if test "$wxUSE_NO_RTTI" = "yes" ; then | |
0f3f1cbc | 14410 | CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS -fno-rtti" |
10f2d63a VZ |
14411 | fi |
14412 | if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then | |
0f3f1cbc | 14413 | CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS -fno-exceptions" |
10f2d63a VZ |
14414 | fi |
14415 | if test "$wxUSE_PERMISSIVE" = "yes" ; then | |
caa2c79b | 14416 | CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fpermissive" |
10f2d63a VZ |
14417 | fi |
14418 | if test "$wxUSE_NO_DEPS" = "no" ; then | |
14419 | DEP_INFO_FLAGS="-MMD" | |
14420 | fi | |
14421 | fi | |
14422 | ||
698dcdb6 | 14423 | |
10f2d63a VZ |
14424 | CXXFLAGS=`echo "${CXXFLAGS}" | sed "s/\-O.//g" ` |
14425 | CFLAGS=`echo "${CFLAGS}" | sed "s/\-O.//g" ` | |
14426 | if test "$wxUSE_OPTIMISE" = "no" ; then | |
14427 | OPTIMISE= | |
14428 | else | |
14429 | if test "$GCC" = yes ; then | |
14430 | OPTIMISE="-O2" | |
14431 | case "${host}" in | |
14432 | i586-*-*|i686-*-* ) | |
14433 | OPTIMISE="${OPTIMISE} " | |
14434 | ;; | |
14435 | esac | |
14436 | else | |
14437 | OPTIMISE="-O" | |
14438 | fi | |
14439 | fi | |
14440 | ||
54276ccf VZ |
14441 | if test "$WXWIN_COMPATIBILITY_2" = "yes"; then |
14442 | cat >> confdefs.h <<\EOF | |
14443 | #define WXWIN_COMPATIBILITY_2 1 | |
14444 | EOF | |
14445 | ||
14446 | ||
14447 | WXWIN_COMPATIBILITY_2_2="yes" | |
14448 | fi | |
14449 | ||
14450 | if test "$WXWIN_COMPATIBILITY_2_2" = "yes"; then | |
14451 | cat >> confdefs.h <<\EOF | |
14452 | #define WXWIN_COMPATIBILITY_2_2 1 | |
14453 | EOF | |
14454 | ||
14455 | fi | |
14456 | ||
698dcdb6 | 14457 | |
10f2d63a | 14458 | ZLIB_INCLUDE= |
422107f9 | 14459 | if test "$wxUSE_ZLIB" = "yes" -o "$wxUSE_ZLIB" = "sys" ; then |
698dcdb6 | 14460 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
14461 | #define wxUSE_ZLIB 1 |
14462 | EOF | |
14463 | ||
422107f9 VZ |
14464 | if test "$wxUSE_ZLIB" = "yes" ; then |
14465 | ZLIB_INCLUDE="-I\${top_srcdir}/src/zlib" | |
14466 | else | |
14467 | ZLIB_LINK= | |
698dcdb6 VZ |
14468 | ac_safe=`echo "zlib.h" | sed 'y%./+-%__p_%'` |
14469 | echo $ac_n "checking for zlib.h""... $ac_c" 1>&6 | |
d73be714 | 14470 | echo "configure:14471: checking for zlib.h" >&5 |
698dcdb6 VZ |
14471 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
14472 | echo $ac_n "(cached) $ac_c" 1>&6 | |
14473 | else | |
14474 | cat > conftest.$ac_ext <<EOF | |
d73be714 | 14475 | #line 14476 "configure" |
422107f9 VZ |
14476 | #include "confdefs.h" |
14477 | #include <zlib.h> | |
698dcdb6 VZ |
14478 | EOF |
14479 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
d73be714 | 14480 | { (eval echo configure:14481: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
14481 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
14482 | if test -z "$ac_err"; then | |
14483 | rm -rf conftest* | |
14484 | eval "ac_cv_header_$ac_safe=yes" | |
422107f9 | 14485 | else |
698dcdb6 VZ |
14486 | echo "$ac_err" >&5 |
14487 | echo "configure: failed program was:" >&5 | |
422107f9 | 14488 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
14489 | rm -rf conftest* |
14490 | eval "ac_cv_header_$ac_safe=no" | |
422107f9 | 14491 | fi |
698dcdb6 | 14492 | rm -f conftest* |
422107f9 | 14493 | fi |
698dcdb6 VZ |
14494 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
14495 | echo "$ac_t""yes" 1>&6 | |
14496 | echo $ac_n "checking for deflate in -lz""... $ac_c" 1>&6 | |
d73be714 | 14497 | echo "configure:14498: checking for deflate in -lz" >&5 |
698dcdb6 VZ |
14498 | ac_lib_var=`echo z'_'deflate | sed 'y%./+-%__p_%'` |
14499 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
14500 | echo $ac_n "(cached) $ac_c" 1>&6 | |
422107f9 | 14501 | else |
698dcdb6 | 14502 | ac_save_LIBS="$LIBS" |
422107f9 | 14503 | LIBS="-lz $LIBS" |
698dcdb6 | 14504 | cat > conftest.$ac_ext <<EOF |
d73be714 | 14505 | #line 14506 "configure" |
422107f9 VZ |
14506 | #include "confdefs.h" |
14507 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14508 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
14509 | builtin and then its argument prototype would still apply. */ |
14510 | char deflate(); | |
14511 | ||
14512 | int main() { | |
14513 | deflate() | |
14514 | ; return 0; } | |
14515 | EOF | |
d73be714 | 14516 | if { (eval echo configure:14517: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
14517 | rm -rf conftest* |
14518 | eval "ac_cv_lib_$ac_lib_var=yes" | |
14519 | else | |
14520 | echo "configure: failed program was:" >&5 | |
14521 | cat conftest.$ac_ext >&5 | |
14522 | rm -rf conftest* | |
14523 | eval "ac_cv_lib_$ac_lib_var=no" | |
14524 | fi | |
14525 | rm -f conftest* | |
14526 | LIBS="$ac_save_LIBS" | |
14527 | ||
14528 | fi | |
14529 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
14530 | echo "$ac_t""yes" 1>&6 | |
422107f9 | 14531 | ZLIB_LINK="-lz" |
698dcdb6 VZ |
14532 | else |
14533 | echo "$ac_t""no" 1>&6 | |
422107f9 VZ |
14534 | fi |
14535 | ||
698dcdb6 VZ |
14536 | else |
14537 | echo "$ac_t""no" 1>&6 | |
422107f9 VZ |
14538 | fi |
14539 | ||
14540 | if test "x$ZLIB_LINK" = "x" ; then | |
698dcdb6 | 14541 | { echo "configure: error: system zlib compression library not found! Use --with-zlib=yes to use built-in zlib" 1>&2; exit 1; } |
422107f9 VZ |
14542 | fi |
14543 | fi | |
10f2d63a VZ |
14544 | fi |
14545 | ||
14546 | PNG_INCLUDE= | |
422107f9 | 14547 | if test "$wxUSE_LIBPNG" = "yes" -o "$wxUSE_LIBPNG" = "sys" ; then |
698dcdb6 | 14548 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
14549 | #define wxUSE_LIBPNG 1 |
14550 | EOF | |
14551 | ||
41fd4136 | 14552 | if test "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then |
698dcdb6 | 14553 | echo "configure: warning: --with-libpng=sys doesn't work without --with-zlib=sys, will compile the built-in libpng instead" 1>&2 |
422107f9 VZ |
14554 | wxUSE_LIBPNG=yes |
14555 | fi | |
14556 | ||
14557 | if test "$wxUSE_LIBPNG" = "yes" ; then | |
14558 | PNG_INCLUDE="-I\${top_srcdir}/src/png" | |
14559 | else | |
14560 | PNG_LINK= | |
698dcdb6 VZ |
14561 | ac_safe=`echo "png.h" | sed 'y%./+-%__p_%'` |
14562 | echo $ac_n "checking for png.h""... $ac_c" 1>&6 | |
d73be714 | 14563 | echo "configure:14564: checking for png.h" >&5 |
698dcdb6 VZ |
14564 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
14565 | echo $ac_n "(cached) $ac_c" 1>&6 | |
14566 | else | |
14567 | cat > conftest.$ac_ext <<EOF | |
d73be714 | 14568 | #line 14569 "configure" |
422107f9 VZ |
14569 | #include "confdefs.h" |
14570 | #include <png.h> | |
698dcdb6 VZ |
14571 | EOF |
14572 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
d73be714 | 14573 | { (eval echo configure:14574: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
14574 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
14575 | if test -z "$ac_err"; then | |
14576 | rm -rf conftest* | |
14577 | eval "ac_cv_header_$ac_safe=yes" | |
422107f9 | 14578 | else |
698dcdb6 VZ |
14579 | echo "$ac_err" >&5 |
14580 | echo "configure: failed program was:" >&5 | |
422107f9 | 14581 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
14582 | rm -rf conftest* |
14583 | eval "ac_cv_header_$ac_safe=no" | |
422107f9 | 14584 | fi |
698dcdb6 | 14585 | rm -f conftest* |
422107f9 | 14586 | fi |
698dcdb6 VZ |
14587 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
14588 | echo "$ac_t""yes" 1>&6 | |
14589 | echo $ac_n "checking for png_check_sig in -lpng""... $ac_c" 1>&6 | |
d73be714 | 14590 | echo "configure:14591: checking for png_check_sig in -lpng" >&5 |
698dcdb6 VZ |
14591 | ac_lib_var=`echo png'_'png_check_sig | sed 'y%./+-%__p_%'` |
14592 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
14593 | echo $ac_n "(cached) $ac_c" 1>&6 | |
422107f9 | 14594 | else |
698dcdb6 | 14595 | ac_save_LIBS="$LIBS" |
422107f9 | 14596 | LIBS="-lpng -lz -lm $LIBS" |
698dcdb6 | 14597 | cat > conftest.$ac_ext <<EOF |
d73be714 | 14598 | #line 14599 "configure" |
422107f9 VZ |
14599 | #include "confdefs.h" |
14600 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14601 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
14602 | builtin and then its argument prototype would still apply. */ |
14603 | char png_check_sig(); | |
14604 | ||
14605 | int main() { | |
14606 | png_check_sig() | |
14607 | ; return 0; } | |
14608 | EOF | |
d73be714 | 14609 | if { (eval echo configure:14610: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
14610 | rm -rf conftest* |
14611 | eval "ac_cv_lib_$ac_lib_var=yes" | |
14612 | else | |
14613 | echo "configure: failed program was:" >&5 | |
14614 | cat conftest.$ac_ext >&5 | |
14615 | rm -rf conftest* | |
14616 | eval "ac_cv_lib_$ac_lib_var=no" | |
14617 | fi | |
14618 | rm -f conftest* | |
14619 | LIBS="$ac_save_LIBS" | |
14620 | ||
14621 | fi | |
14622 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
14623 | echo "$ac_t""yes" 1>&6 | |
422107f9 | 14624 | PNG_LINK="-lpng" |
698dcdb6 VZ |
14625 | else |
14626 | echo "$ac_t""no" 1>&6 | |
422107f9 VZ |
14627 | fi |
14628 | ||
698dcdb6 VZ |
14629 | |
14630 | else | |
14631 | echo "$ac_t""no" 1>&6 | |
422107f9 VZ |
14632 | fi |
14633 | ||
14634 | if test "x$PNG_LINK" = "x" ; then | |
698dcdb6 | 14635 | { echo "configure: error: system png library not found! Use --with-libpng=yes to use the built-in libpng" 1>&2; exit 1; } |
422107f9 VZ |
14636 | fi |
14637 | fi | |
14638 | ||
10f2d63a VZ |
14639 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png" |
14640 | fi | |
14641 | ||
14642 | JPEG_INCLUDE= | |
422107f9 | 14643 | if test "$wxUSE_LIBJPEG" = "yes" -o "$wxUSE_LIBJPEG" = "sys" ; then |
698dcdb6 | 14644 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
14645 | #define wxUSE_LIBJPEG 1 |
14646 | EOF | |
14647 | ||
422107f9 VZ |
14648 | if test "$wxUSE_LIBJPEG" = "yes" ; then |
14649 | JPEG_INCLUDE="-I\${top_srcdir}/src/jpeg" | |
14650 | else | |
14651 | JPEG_LINK= | |
463abc64 | 14652 | echo $ac_n "checking for jpeglib.h""... $ac_c" 1>&6 |
d73be714 | 14653 | echo "configure:14654: checking for jpeglib.h" >&5 |
463abc64 | 14654 | if eval "test \"`echo '$''{'ac_cv_header_jpeglib_h'+set}'`\" = set"; then |
698dcdb6 VZ |
14655 | echo $ac_n "(cached) $ac_c" 1>&6 |
14656 | else | |
14657 | cat > conftest.$ac_ext <<EOF | |
d73be714 | 14658 | #line 14659 "configure" |
422107f9 | 14659 | #include "confdefs.h" |
463abc64 VZ |
14660 | |
14661 | #undef HAVE_STDLIB_H | |
14662 | #include <stdio.h> | |
14663 | #include <jpeglib.h> | |
14664 | ||
14665 | int main() { | |
14666 | ||
14667 | ||
14668 | ; return 0; } | |
698dcdb6 | 14669 | EOF |
d73be714 | 14670 | if { (eval echo configure:14671: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 | 14671 | rm -rf conftest* |
463abc64 | 14672 | ac_cv_header_jpeglib_h=yes |
6232543b | 14673 | else |
698dcdb6 | 14674 | echo "configure: failed program was:" >&5 |
422107f9 | 14675 | cat conftest.$ac_ext >&5 |
698dcdb6 | 14676 | rm -rf conftest* |
463abc64 VZ |
14677 | ac_cv_header_jpeglib_h=no |
14678 | ||
422107f9 | 14679 | fi |
698dcdb6 | 14680 | rm -f conftest* |
463abc64 | 14681 | |
422107f9 | 14682 | fi |
463abc64 VZ |
14683 | |
14684 | echo "$ac_t""$ac_cv_header_jpeglib_h" 1>&6 | |
14685 | ||
14686 | if test "$ac_cv_header_jpeglib_h" = "yes"; then | |
14687 | echo $ac_n "checking for jpeg_read_header in -ljpeg""... $ac_c" 1>&6 | |
d73be714 | 14688 | echo "configure:14689: checking for jpeg_read_header in -ljpeg" >&5 |
698dcdb6 VZ |
14689 | ac_lib_var=`echo jpeg'_'jpeg_read_header | sed 'y%./+-%__p_%'` |
14690 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
14691 | echo $ac_n "(cached) $ac_c" 1>&6 | |
422107f9 | 14692 | else |
698dcdb6 | 14693 | ac_save_LIBS="$LIBS" |
422107f9 | 14694 | LIBS="-ljpeg $LIBS" |
698dcdb6 | 14695 | cat > conftest.$ac_ext <<EOF |
d73be714 | 14696 | #line 14697 "configure" |
422107f9 VZ |
14697 | #include "confdefs.h" |
14698 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14699 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
14700 | builtin and then its argument prototype would still apply. */ |
14701 | char jpeg_read_header(); | |
14702 | ||
14703 | int main() { | |
14704 | jpeg_read_header() | |
14705 | ; return 0; } | |
14706 | EOF | |
d73be714 | 14707 | if { (eval echo configure:14708: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
14708 | rm -rf conftest* |
14709 | eval "ac_cv_lib_$ac_lib_var=yes" | |
14710 | else | |
14711 | echo "configure: failed program was:" >&5 | |
14712 | cat conftest.$ac_ext >&5 | |
14713 | rm -rf conftest* | |
14714 | eval "ac_cv_lib_$ac_lib_var=no" | |
14715 | fi | |
14716 | rm -f conftest* | |
14717 | LIBS="$ac_save_LIBS" | |
14718 | ||
14719 | fi | |
14720 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
14721 | echo "$ac_t""yes" 1>&6 | |
422107f9 | 14722 | JPEG_LINK="-ljpeg" |
698dcdb6 VZ |
14723 | else |
14724 | echo "$ac_t""no" 1>&6 | |
422107f9 VZ |
14725 | fi |
14726 | ||
463abc64 | 14727 | fi |
422107f9 VZ |
14728 | |
14729 | if test "x$JPEG_LINK" = "x" ; then | |
698dcdb6 | 14730 | { echo "configure: error: system jpeg library not found! Use --with-libjpeg=yes to use the built-in one" 1>&2; exit 1; } |
422107f9 VZ |
14731 | fi |
14732 | fi | |
10f2d63a VZ |
14733 | fi |
14734 | ||
c7a2bf27 | 14735 | TIFF_INCLUDE= |
0dcf9893 | 14736 | if test "$wxUSE_LIBTIFF" = "yes" -o "$wxUSE_LIBTIFF" = "sys" ; then |
698dcdb6 | 14737 | cat >> confdefs.h <<\EOF |
c7a2bf27 RR |
14738 | #define wxUSE_LIBTIFF 1 |
14739 | EOF | |
14740 | ||
665bbe97 | 14741 | if test "$wxUSE_LIBTIFF" = "yes" ; then |
0dcf9893 VZ |
14742 | TIFF_INCLUDE="-I\${top_srcdir}/src/tiff" |
14743 | else | |
14744 | TIFF_LINK= | |
698dcdb6 VZ |
14745 | ac_safe=`echo "tiffio.h" | sed 'y%./+-%__p_%'` |
14746 | echo $ac_n "checking for tiffio.h""... $ac_c" 1>&6 | |
d73be714 | 14747 | echo "configure:14748: checking for tiffio.h" >&5 |
698dcdb6 VZ |
14748 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
14749 | echo $ac_n "(cached) $ac_c" 1>&6 | |
14750 | else | |
14751 | cat > conftest.$ac_ext <<EOF | |
d73be714 | 14752 | #line 14753 "configure" |
0dcf9893 VZ |
14753 | #include "confdefs.h" |
14754 | #include <tiffio.h> | |
698dcdb6 VZ |
14755 | EOF |
14756 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
d73be714 | 14757 | { (eval echo configure:14758: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
14758 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
14759 | if test -z "$ac_err"; then | |
14760 | rm -rf conftest* | |
14761 | eval "ac_cv_header_$ac_safe=yes" | |
1e487827 | 14762 | else |
698dcdb6 VZ |
14763 | echo "$ac_err" >&5 |
14764 | echo "configure: failed program was:" >&5 | |
0dcf9893 | 14765 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
14766 | rm -rf conftest* |
14767 | eval "ac_cv_header_$ac_safe=no" | |
0dcf9893 | 14768 | fi |
698dcdb6 | 14769 | rm -f conftest* |
0dcf9893 | 14770 | fi |
698dcdb6 VZ |
14771 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
14772 | echo "$ac_t""yes" 1>&6 | |
14773 | echo $ac_n "checking for TIFFError in -ltiff""... $ac_c" 1>&6 | |
d73be714 | 14774 | echo "configure:14775: checking for TIFFError in -ltiff" >&5 |
698dcdb6 VZ |
14775 | ac_lib_var=`echo tiff'_'TIFFError | sed 'y%./+-%__p_%'` |
14776 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
14777 | echo $ac_n "(cached) $ac_c" 1>&6 | |
0dcf9893 | 14778 | else |
698dcdb6 | 14779 | ac_save_LIBS="$LIBS" |
0dcf9893 | 14780 | LIBS="-ltiff -lm $LIBS" |
698dcdb6 | 14781 | cat > conftest.$ac_ext <<EOF |
d73be714 | 14782 | #line 14783 "configure" |
0dcf9893 VZ |
14783 | #include "confdefs.h" |
14784 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14785 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
14786 | builtin and then its argument prototype would still apply. */ |
14787 | char TIFFError(); | |
14788 | ||
14789 | int main() { | |
14790 | TIFFError() | |
14791 | ; return 0; } | |
14792 | EOF | |
d73be714 | 14793 | if { (eval echo configure:14794: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
14794 | rm -rf conftest* |
14795 | eval "ac_cv_lib_$ac_lib_var=yes" | |
14796 | else | |
14797 | echo "configure: failed program was:" >&5 | |
14798 | cat conftest.$ac_ext >&5 | |
14799 | rm -rf conftest* | |
14800 | eval "ac_cv_lib_$ac_lib_var=no" | |
14801 | fi | |
14802 | rm -f conftest* | |
14803 | LIBS="$ac_save_LIBS" | |
14804 | ||
14805 | fi | |
14806 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
14807 | echo "$ac_t""yes" 1>&6 | |
0dcf9893 | 14808 | TIFF_LINK="-ltiff" |
698dcdb6 VZ |
14809 | else |
14810 | echo "$ac_t""no" 1>&6 | |
0dcf9893 VZ |
14811 | fi |
14812 | ||
698dcdb6 VZ |
14813 | else |
14814 | echo "$ac_t""no" 1>&6 | |
0dcf9893 VZ |
14815 | fi |
14816 | ||
14817 | if test "x$TIFF_LINK" = "x" ; then | |
698dcdb6 | 14818 | { echo "configure: error: system tiff library not found! Use --with-libtiff=yes to use the built-in one" 1>&2; exit 1; } |
0dcf9893 VZ |
14819 | fi |
14820 | fi | |
c7a2bf27 RR |
14821 | fi |
14822 | ||
3fed1840 RR |
14823 | FREETYPE_INCLUDE= |
14824 | if test "$wxUSE_FREETYPE" = "yes" -o "$wxUSE_FREETYPE" = "sys" ; then | |
698dcdb6 | 14825 | cat >> confdefs.h <<\EOF |
3fed1840 RR |
14826 | #define wxUSE_FREETYPE 1 |
14827 | EOF | |
14828 | ||
14829 | if test "$wxUSE_FREETYPE" = "yes" ; then | |
14830 | FREETYPE_INCLUDE="-I\${top_srcdir}/src/freetype" | |
14831 | else | |
14832 | FREETYPE_LINK= | |
698dcdb6 VZ |
14833 | ac_safe=`echo "freetype.h" | sed 'y%./+-%__p_%'` |
14834 | echo $ac_n "checking for freetype.h""... $ac_c" 1>&6 | |
d73be714 | 14835 | echo "configure:14836: checking for freetype.h" >&5 |
698dcdb6 VZ |
14836 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
14837 | echo $ac_n "(cached) $ac_c" 1>&6 | |
14838 | else | |
14839 | cat > conftest.$ac_ext <<EOF | |
d73be714 | 14840 | #line 14841 "configure" |
3fed1840 RR |
14841 | #include "confdefs.h" |
14842 | #include <freetype.h> | |
698dcdb6 VZ |
14843 | EOF |
14844 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
d73be714 | 14845 | { (eval echo configure:14846: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
14846 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
14847 | if test -z "$ac_err"; then | |
14848 | rm -rf conftest* | |
14849 | eval "ac_cv_header_$ac_safe=yes" | |
3fed1840 | 14850 | else |
698dcdb6 VZ |
14851 | echo "$ac_err" >&5 |
14852 | echo "configure: failed program was:" >&5 | |
3fed1840 | 14853 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
14854 | rm -rf conftest* |
14855 | eval "ac_cv_header_$ac_safe=no" | |
3fed1840 | 14856 | fi |
698dcdb6 | 14857 | rm -f conftest* |
3fed1840 | 14858 | fi |
698dcdb6 VZ |
14859 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
14860 | echo "$ac_t""yes" 1>&6 | |
14861 | echo $ac_n "checking for FT_Render_Glyph in -lfreetype""... $ac_c" 1>&6 | |
d73be714 | 14862 | echo "configure:14863: checking for FT_Render_Glyph in -lfreetype" >&5 |
698dcdb6 VZ |
14863 | ac_lib_var=`echo freetype'_'FT_Render_Glyph | sed 'y%./+-%__p_%'` |
14864 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
14865 | echo $ac_n "(cached) $ac_c" 1>&6 | |
3fed1840 | 14866 | else |
698dcdb6 | 14867 | ac_save_LIBS="$LIBS" |
3fed1840 | 14868 | LIBS="-lfreetype -lm $LIBS" |
698dcdb6 | 14869 | cat > conftest.$ac_ext <<EOF |
d73be714 | 14870 | #line 14871 "configure" |
3fed1840 RR |
14871 | #include "confdefs.h" |
14872 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14873 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
14874 | builtin and then its argument prototype would still apply. */ |
14875 | char FT_Render_Glyph(); | |
14876 | ||
14877 | int main() { | |
14878 | FT_Render_Glyph() | |
14879 | ; return 0; } | |
14880 | EOF | |
d73be714 | 14881 | if { (eval echo configure:14882: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
14882 | rm -rf conftest* |
14883 | eval "ac_cv_lib_$ac_lib_var=yes" | |
14884 | else | |
14885 | echo "configure: failed program was:" >&5 | |
14886 | cat conftest.$ac_ext >&5 | |
14887 | rm -rf conftest* | |
14888 | eval "ac_cv_lib_$ac_lib_var=no" | |
14889 | fi | |
14890 | rm -f conftest* | |
14891 | LIBS="$ac_save_LIBS" | |
14892 | ||
14893 | fi | |
14894 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
14895 | echo "$ac_t""yes" 1>&6 | |
3fed1840 | 14896 | FREETYPE_LINK="-lfreetype" |
698dcdb6 VZ |
14897 | else |
14898 | echo "$ac_t""no" 1>&6 | |
3fed1840 RR |
14899 | fi |
14900 | ||
698dcdb6 VZ |
14901 | |
14902 | else | |
14903 | echo "$ac_t""no" 1>&6 | |
3fed1840 RR |
14904 | fi |
14905 | ||
14906 | if test "x$FREETYPE_LINK" = "x" ; then | |
698dcdb6 | 14907 | { echo "configure: error: system freetype library not found! Use --with-freetype=yes to use the built-in freetype" 1>&2; exit 1; } |
3fed1840 RR |
14908 | fi |
14909 | fi | |
14910 | fi | |
14911 | ||
10f2d63a | 14912 | if test "$wxUSE_OPENGL" = "yes"; then |
698dcdb6 VZ |
14913 | ac_safe=`echo "GL/gl.h" | sed 'y%./+-%__p_%'` |
14914 | echo $ac_n "checking for GL/gl.h""... $ac_c" 1>&6 | |
d73be714 | 14915 | echo "configure:14916: checking for GL/gl.h" >&5 |
698dcdb6 VZ |
14916 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
14917 | echo $ac_n "(cached) $ac_c" 1>&6 | |
14918 | else | |
14919 | cat > conftest.$ac_ext <<EOF | |
d73be714 | 14920 | #line 14921 "configure" |
10f2d63a VZ |
14921 | #include "confdefs.h" |
14922 | #include <GL/gl.h> | |
698dcdb6 VZ |
14923 | EOF |
14924 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
d73be714 | 14925 | { (eval echo configure:14926: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
14926 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
14927 | if test -z "$ac_err"; then | |
14928 | rm -rf conftest* | |
14929 | eval "ac_cv_header_$ac_safe=yes" | |
10f2d63a | 14930 | else |
698dcdb6 VZ |
14931 | echo "$ac_err" >&5 |
14932 | echo "configure: failed program was:" >&5 | |
10f2d63a | 14933 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
14934 | rm -rf conftest* |
14935 | eval "ac_cv_header_$ac_safe=no" | |
10f2d63a | 14936 | fi |
698dcdb6 | 14937 | rm -f conftest* |
10f2d63a | 14938 | fi |
698dcdb6 VZ |
14939 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
14940 | echo "$ac_t""yes" 1>&6 | |
14941 | ||
14942 | cat >> confdefs.h <<\EOF | |
bdad4e7e RR |
14943 | #define wxUSE_OPENGL 1 |
14944 | EOF | |
14945 | ||
698dcdb6 | 14946 | cat >> confdefs.h <<\EOF |
bdad4e7e RR |
14947 | #define wxUSE_GLCANVAS 1 |
14948 | EOF | |
14949 | ||
698dcdb6 | 14950 | echo $ac_n "checking for glFlush in -lGL""... $ac_c" 1>&6 |
d73be714 | 14951 | echo "configure:14952: checking for glFlush in -lGL" >&5 |
698dcdb6 VZ |
14952 | ac_lib_var=`echo GL'_'glFlush | sed 'y%./+-%__p_%'` |
14953 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
14954 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 14955 | else |
698dcdb6 | 14956 | ac_save_LIBS="$LIBS" |
bdad4e7e | 14957 | LIBS="-lGL $LIBS" |
698dcdb6 | 14958 | cat > conftest.$ac_ext <<EOF |
d73be714 | 14959 | #line 14960 "configure" |
10f2d63a VZ |
14960 | #include "confdefs.h" |
14961 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14962 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
14963 | builtin and then its argument prototype would still apply. */ |
14964 | char glFlush(); | |
6232543b | 14965 | |
698dcdb6 VZ |
14966 | int main() { |
14967 | glFlush() | |
14968 | ; return 0; } | |
14969 | EOF | |
d73be714 | 14970 | if { (eval echo configure:14971: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
14971 | rm -rf conftest* |
14972 | eval "ac_cv_lib_$ac_lib_var=yes" | |
14973 | else | |
14974 | echo "configure: failed program was:" >&5 | |
14975 | cat conftest.$ac_ext >&5 | |
14976 | rm -rf conftest* | |
14977 | eval "ac_cv_lib_$ac_lib_var=no" | |
14978 | fi | |
14979 | rm -f conftest* | |
14980 | LIBS="$ac_save_LIBS" | |
1e487827 | 14981 | |
698dcdb6 VZ |
14982 | fi |
14983 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
14984 | echo "$ac_t""yes" 1>&6 | |
14985 | ||
14986 | OPENGL_LINK="-lGL -lGLU" | |
14987 | ||
10f2d63a | 14988 | else |
698dcdb6 | 14989 | echo "$ac_t""no" 1>&6 |
10f2d63a | 14990 | |
698dcdb6 | 14991 | echo $ac_n "checking for glFlush in -lMesaGL""... $ac_c" 1>&6 |
d73be714 | 14992 | echo "configure:14993: checking for glFlush in -lMesaGL" >&5 |
698dcdb6 VZ |
14993 | ac_lib_var=`echo MesaGL'_'glFlush | 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 | |
10f2d63a | 14996 | else |
698dcdb6 | 14997 | ac_save_LIBS="$LIBS" |
10f2d63a | 14998 | LIBS="-lMesaGL $LIBS" |
698dcdb6 | 14999 | cat > conftest.$ac_ext <<EOF |
d73be714 | 15000 | #line 15001 "configure" |
10f2d63a 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 glFlush(); | |
15006 | ||
15007 | int main() { | |
15008 | glFlush() | |
15009 | ; return 0; } | |
15010 | EOF | |
d73be714 | 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" | |
10f2d63a | 15022 | |
698dcdb6 VZ |
15023 | fi |
15024 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
15025 | echo "$ac_t""yes" 1>&6 | |
15026 | ||
f6bcfd97 | 15027 | OPENGL_LINK="-lMesaGL -lMesaGLU" |
698dcdb6 VZ |
15028 | |
15029 | else | |
15030 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
15031 | fi |
15032 | ||
698dcdb6 | 15033 | |
10f2d63a VZ |
15034 | fi |
15035 | ||
698dcdb6 | 15036 | |
10f2d63a | 15037 | else |
698dcdb6 VZ |
15038 | echo "$ac_t""no" 1>&6 |
15039 | wxUSE_OPENGL=0 | |
10f2d63a VZ |
15040 | fi |
15041 | ||
15042 | fi | |
15043 | ||
698dcdb6 | 15044 | |
10f2d63a | 15045 | if test "$wxUSE_GUI" = "yes"; then |
698dcdb6 | 15046 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
15047 | #define wxUSE_GUI 1 |
15048 | EOF | |
15049 | ||
698dcdb6 | 15050 | |
10f2d63a | 15051 | else |
698dcdb6 | 15052 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
15053 | #define wxUSE_NOGUI 1 |
15054 | EOF | |
15055 | ||
15056 | fi | |
15057 | ||
698dcdb6 | 15058 | |
10f2d63a | 15059 | if test "$wxUSE_UNIX" = "yes"; then |
698dcdb6 | 15060 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
15061 | #define wxUSE_UNIX 1 |
15062 | EOF | |
15063 | ||
15064 | fi | |
15065 | ||
698dcdb6 | 15066 | |
10f2d63a | 15067 | if test "$wxUSE_APPLE_IEEE" = "yes"; then |
698dcdb6 | 15068 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
15069 | #define wxUSE_APPLE_IEEE 1 |
15070 | EOF | |
15071 | ||
15072 | fi | |
15073 | ||
1e6feb95 VZ |
15074 | if test "$wxUSE_TIMER" = "yes"; then |
15075 | cat >> confdefs.h <<\EOF | |
15076 | #define wxUSE_TIMER 1 | |
15077 | EOF | |
15078 | ||
15079 | fi | |
15080 | ||
10f2d63a | 15081 | if test "$wxUSE_WAVE" = "yes"; then |
698dcdb6 | 15082 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
15083 | #define wxUSE_WAVE 1 |
15084 | EOF | |
15085 | ||
15086 | fi | |
15087 | ||
1e6feb95 VZ |
15088 | if test "$wxUSE_CMDLINE_PARSER" = "yes"; then |
15089 | cat >> confdefs.h <<\EOF | |
15090 | #define wxUSE_CMDLINE_PARSER 1 | |
15091 | EOF | |
15092 | ||
15093 | fi | |
15094 | ||
15095 | if test "$wxUSE_STOPWATCH" = "yes"; then | |
15096 | cat >> confdefs.h <<\EOF | |
15097 | #define wxUSE_STOPWATCH 1 | |
15098 | EOF | |
15099 | ||
15100 | fi | |
15101 | ||
15102 | if test "$wxUSE_DATETIME" = "yes"; then | |
15103 | cat >> confdefs.h <<\EOF | |
15104 | #define wxUSE_DATETIME 1 | |
15105 | EOF | |
15106 | ||
15107 | fi | |
15108 | ||
15109 | if test "$wxUSE_TIMEDATE" = "yes"; then | |
15110 | cat >> confdefs.h <<\EOF | |
15111 | #define wxUSE_TIMEDATE 1 | |
15112 | EOF | |
15113 | ||
15114 | fi | |
15115 | ||
10f2d63a | 15116 | if test "$wxUSE_FILE" = "yes"; then |
698dcdb6 | 15117 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
15118 | #define wxUSE_FILE 1 |
15119 | EOF | |
15120 | ||
15121 | fi | |
15122 | ||
1e6feb95 VZ |
15123 | if test "$wxUSE_FFILE" = "yes"; then |
15124 | cat >> confdefs.h <<\EOF | |
15125 | #define wxUSE_FFILE 1 | |
15126 | EOF | |
15127 | ||
15128 | fi | |
15129 | ||
24528b0c | 15130 | if test "$wxUSE_FILESYSTEM" = "yes"; then |
698dcdb6 | 15131 | cat >> confdefs.h <<\EOF |
24528b0c VS |
15132 | #define wxUSE_FILESYSTEM 1 |
15133 | EOF | |
15134 | ||
15135 | fi | |
15136 | ||
10f2d63a | 15137 | if test "$wxUSE_FS_INET" = "yes"; then |
698dcdb6 | 15138 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
15139 | #define wxUSE_FS_INET 1 |
15140 | EOF | |
15141 | ||
15142 | fi | |
15143 | ||
15144 | if test "$wxUSE_FS_ZIP" = "yes"; then | |
698dcdb6 | 15145 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
15146 | #define wxUSE_FS_ZIP 1 |
15147 | EOF | |
15148 | ||
15149 | fi | |
15150 | ||
15151 | if test "$wxUSE_ZIPSTREAM" = "yes"; then | |
698dcdb6 | 15152 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
15153 | #define wxUSE_ZIPSTREAM 1 |
15154 | EOF | |
15155 | ||
15156 | fi | |
15157 | ||
eb4efbdc | 15158 | if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then |
698dcdb6 | 15159 | cat >> confdefs.h <<\EOF |
eb4efbdc VZ |
15160 | #define wxUSE_ON_FATAL_EXCEPTION 1 |
15161 | EOF | |
15162 | ||
15163 | fi | |
15164 | ||
4f3c5f06 | 15165 | if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then |
698dcdb6 | 15166 | cat >> confdefs.h <<\EOF |
4f3c5f06 VZ |
15167 | #define wxUSE_SNGLINST_CHECKER 1 |
15168 | EOF | |
15169 | ||
15170 | fi | |
15171 | ||
10f2d63a | 15172 | if test "$wxUSE_BUSYINFO" = "yes"; then |
698dcdb6 | 15173 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
15174 | #define wxUSE_BUSYINFO 1 |
15175 | EOF | |
15176 | ||
15177 | fi | |
15178 | ||
15179 | if test "$wxUSE_STD_IOSTREAM" = "yes"; then | |
698dcdb6 | 15180 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
15181 | #define wxUSE_STD_IOSTREAM 1 |
15182 | EOF | |
15183 | ||
15184 | fi | |
15185 | ||
15186 | if test "$wxUSE_TEXTFILE" = "yes"; then | |
15187 | if test "$wxUSE_FILE" != "yes"; then | |
698dcdb6 | 15188 | echo "configure: warning: wxTextFile requires wxFile and it won't be compiled without it" 1>&2 |
10f2d63a | 15189 | else |
698dcdb6 | 15190 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
15191 | #define wxUSE_TEXTFILE 1 |
15192 | EOF | |
15193 | ||
15194 | fi | |
15195 | fi | |
15196 | ||
15197 | if test "$wxUSE_CONFIG" = "yes" ; then | |
15198 | if test "$wxUSE_TEXTFILE" != "yes"; then | |
698dcdb6 | 15199 | echo "configure: warning: wxConfig requires wxTextFile and it won't be compiled without it" 1>&2 |
10f2d63a | 15200 | else |
698dcdb6 | 15201 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
15202 | #define wxUSE_CONFIG 1 |
15203 | EOF | |
15204 | ||
15205 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config" | |
15206 | fi | |
15207 | fi | |
15208 | ||
15209 | if test "$wxUSE_INTL" = "yes" ; then | |
15210 | if test "$wxUSE_FILE" != "yes"; then | |
698dcdb6 | 15211 | echo "configure: warning: I18n code requires wxFile and it won't be compiled without it" 1>&2 |
10f2d63a | 15212 | else |
698dcdb6 | 15213 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
15214 | #define wxUSE_INTL 1 |
15215 | EOF | |
15216 | ||
15217 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat" | |
f6bcfd97 | 15218 | GUIDIST="$GUIDIST INTL_DIST" |
10f2d63a VZ |
15219 | fi |
15220 | fi | |
15221 | ||
15222 | if test "$wxUSE_LOG" = "yes"; then | |
698dcdb6 | 15223 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
15224 | #define wxUSE_LOG 1 |
15225 | EOF | |
15226 | ||
d73be714 VZ |
15227 | |
15228 | if test "$wxUSE_LOGGUI" = "yes"; then | |
15229 | cat >> confdefs.h <<\EOF | |
15230 | #define wxUSE_LOGGUI 1 | |
15231 | EOF | |
15232 | ||
15233 | fi | |
15234 | ||
15235 | if test "$wxUSE_LOGWINDOW" = "yes"; then | |
15236 | cat >> confdefs.h <<\EOF | |
15237 | #define wxUSE_LOGWINDOW 1 | |
15238 | EOF | |
15239 | ||
15240 | fi | |
10f2d63a VZ |
15241 | fi |
15242 | ||
15243 | if test "$wxUSE_LONGLONG" = "yes"; then | |
698dcdb6 | 15244 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
15245 | #define wxUSE_LONGLONG 1 |
15246 | EOF | |
15247 | ||
15248 | fi | |
15249 | ||
e8f65ba6 | 15250 | if test "$wxUSE_GEOMETRY" = "yes"; then |
698dcdb6 | 15251 | cat >> confdefs.h <<\EOF |
e8f65ba6 RR |
15252 | #define wxUSE_GEOMETRY 1 |
15253 | EOF | |
15254 | ||
15255 | fi | |
15256 | ||
10f2d63a | 15257 | if test "$wxUSE_DIALUP_MANAGER" = "yes" ; then |
698dcdb6 | 15258 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
15259 | #define wxUSE_DIALUP_MANAGER 1 |
15260 | EOF | |
15261 | ||
70f7a477 | 15262 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup" |
10f2d63a VZ |
15263 | fi |
15264 | ||
15265 | if test "$wxUSE_STREAMS" = "yes" ; then | |
698dcdb6 | 15266 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
15267 | #define wxUSE_STREAMS 1 |
15268 | EOF | |
15269 | ||
15270 | fi | |
15271 | ||
1e487827 | 15272 | |
1e6feb95 | 15273 | if test "$wxUSE_DATETIME" = "yes"; then |
698dcdb6 | 15274 | for ac_func in strptime |
83307f33 | 15275 | do |
698dcdb6 | 15276 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
d73be714 | 15277 | echo "configure:15278: checking for $ac_func" >&5 |
698dcdb6 VZ |
15278 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
15279 | echo $ac_n "(cached) $ac_c" 1>&6 | |
15280 | else | |
15281 | cat > conftest.$ac_ext <<EOF | |
d73be714 | 15282 | #line 15283 "configure" |
83307f33 VZ |
15283 | #include "confdefs.h" |
15284 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 15285 | which can conflict with char $ac_func(); below. */ |
83307f33 VZ |
15286 | #include <assert.h> |
15287 | /* Override any gcc2 internal prototype to avoid an error. */ | |
15288 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
15289 | builtin and then its argument prototype would still apply. */ |
15290 | char $ac_func(); | |
15291 | ||
15292 | int main() { | |
83307f33 VZ |
15293 | |
15294 | /* The GNU C library defines this for functions which it implements | |
15295 | to always fail with ENOSYS. Some functions are actually named | |
15296 | something starting with __ and the normal name is an alias. */ | |
15297 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
15298 | choke me | |
15299 | #else | |
698dcdb6 | 15300 | $ac_func(); |
83307f33 VZ |
15301 | #endif |
15302 | ||
698dcdb6 | 15303 | ; return 0; } |
83307f33 | 15304 | EOF |
d73be714 | 15305 | if { (eval echo configure:15306: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
15306 | rm -rf conftest* |
15307 | eval "ac_cv_func_$ac_func=yes" | |
15308 | else | |
15309 | echo "configure: failed program was:" >&5 | |
15310 | cat conftest.$ac_ext >&5 | |
15311 | rm -rf conftest* | |
15312 | eval "ac_cv_func_$ac_func=no" | |
15313 | fi | |
15314 | rm -f conftest* | |
15315 | fi | |
83307f33 | 15316 | |
698dcdb6 VZ |
15317 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
15318 | echo "$ac_t""yes" 1>&6 | |
15319 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
15320 | cat >> confdefs.h <<EOF | |
15321 | #define $ac_tr_func 1 | |
15322 | EOF | |
15323 | ||
15324 | else | |
15325 | echo "$ac_t""no" 1>&6 | |
83307f33 VZ |
15326 | fi |
15327 | done | |
15328 | ||
1e487827 | 15329 | |
698dcdb6 | 15330 | echo $ac_n "checking for timezone variable in <time.h>""... $ac_c" 1>&6 |
d73be714 | 15331 | echo "configure:15332: checking for timezone variable in <time.h>" >&5 |
698dcdb6 VZ |
15332 | if eval "test \"`echo '$''{'wx_cv_var_timezone'+set}'`\" = set"; then |
15333 | echo $ac_n "(cached) $ac_c" 1>&6 | |
15334 | else | |
15335 | ||
15336 | cat > conftest.$ac_ext <<EOF | |
d73be714 | 15337 | #line 15338 "configure" |
360d6699 VZ |
15338 | #include "confdefs.h" |
15339 | ||
b4085ce6 | 15340 | #include <time.h> |
698dcdb6 VZ |
15341 | |
15342 | int main() { | |
360d6699 VZ |
15343 | |
15344 | int tz; | |
15345 | tz = __timezone; | |
698dcdb6 VZ |
15346 | |
15347 | ; return 0; } | |
15348 | EOF | |
d73be714 | 15349 | if { (eval echo configure:15350: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 VZ |
15350 | rm -rf conftest* |
15351 | ||
360d6699 | 15352 | wx_cv_var_timezone=__timezone |
698dcdb6 | 15353 | |
360d6699 | 15354 | else |
698dcdb6 VZ |
15355 | echo "configure: failed program was:" >&5 |
15356 | cat conftest.$ac_ext >&5 | |
15357 | rm -rf conftest* | |
15358 | ||
15359 | cat > conftest.$ac_ext <<EOF | |
d73be714 | 15360 | #line 15361 "configure" |
360d6699 VZ |
15361 | #include "confdefs.h" |
15362 | ||
b4085ce6 | 15363 | #include <time.h> |
698dcdb6 VZ |
15364 | |
15365 | int main() { | |
360d6699 VZ |
15366 | |
15367 | int tz; | |
15368 | tz = _timezone; | |
698dcdb6 VZ |
15369 | |
15370 | ; return 0; } | |
15371 | EOF | |
d73be714 | 15372 | if { (eval echo configure:15373: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 VZ |
15373 | rm -rf conftest* |
15374 | ||
360d6699 | 15375 | wx_cv_var_timezone=_timezone |
698dcdb6 | 15376 | |
5357c8e8 | 15377 | else |
698dcdb6 VZ |
15378 | echo "configure: failed program was:" >&5 |
15379 | cat conftest.$ac_ext >&5 | |
15380 | rm -rf conftest* | |
15381 | ||
15382 | cat > conftest.$ac_ext <<EOF | |
d73be714 | 15383 | #line 15384 "configure" |
5357c8e8 VZ |
15384 | #include "confdefs.h" |
15385 | ||
b4085ce6 | 15386 | #include <time.h> |
698dcdb6 VZ |
15387 | |
15388 | int main() { | |
5357c8e8 VZ |
15389 | |
15390 | int tz; | |
15391 | tz = timezone; | |
698dcdb6 VZ |
15392 | |
15393 | ; return 0; } | |
15394 | EOF | |
d73be714 | 15395 | if { (eval echo configure:15396: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 VZ |
15396 | rm -rf conftest* |
15397 | ||
5357c8e8 | 15398 | wx_cv_var_timezone=timezone |
698dcdb6 | 15399 | |
360d6699 | 15400 | else |
698dcdb6 VZ |
15401 | echo "configure: failed program was:" >&5 |
15402 | cat conftest.$ac_ext >&5 | |
15403 | rm -rf conftest* | |
15404 | { echo "configure: error: no timezone variable" 1>&2; exit 1; } | |
15405 | ||
360d6699 | 15406 | fi |
698dcdb6 VZ |
15407 | rm -f conftest* |
15408 | ||
15409 | ||
360d6699 | 15410 | fi |
698dcdb6 VZ |
15411 | rm -f conftest* |
15412 | ||
15413 | ||
6232543b | 15414 | fi |
698dcdb6 VZ |
15415 | rm -f conftest* |
15416 | ||
15417 | ||
1e487827 | 15418 | fi |
703e0a69 | 15419 | |
698dcdb6 VZ |
15420 | echo "$ac_t""$wx_cv_var_timezone" 1>&6 |
15421 | ||
15422 | cat >> confdefs.h <<EOF | |
360d6699 VZ |
15423 | #define WX_TIMEZONE $wx_cv_var_timezone |
15424 | EOF | |
15425 | ||
698dcdb6 VZ |
15426 | |
15427 | for ac_func in localtime | |
afc31813 | 15428 | do |
698dcdb6 | 15429 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
d73be714 | 15430 | echo "configure:15431: checking for $ac_func" >&5 |
698dcdb6 VZ |
15431 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
15432 | echo $ac_n "(cached) $ac_c" 1>&6 | |
15433 | else | |
15434 | cat > conftest.$ac_ext <<EOF | |
d73be714 | 15435 | #line 15436 "configure" |
10f2d63a | 15436 | #include "confdefs.h" |
afc31813 | 15437 | /* System header to define __stub macros and hopefully few prototypes, |
698dcdb6 | 15438 | which can conflict with char $ac_func(); below. */ |
afc31813 VZ |
15439 | #include <assert.h> |
15440 | /* Override any gcc2 internal prototype to avoid an error. */ | |
15441 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
15442 | builtin and then its argument prototype would still apply. */ |
15443 | char $ac_func(); | |
15444 | ||
15445 | int main() { | |
afc31813 VZ |
15446 | |
15447 | /* The GNU C library defines this for functions which it implements | |
15448 | to always fail with ENOSYS. Some functions are actually named | |
15449 | something starting with __ and the normal name is an alias. */ | |
15450 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
15451 | choke me | |
15452 | #else | |
698dcdb6 | 15453 | $ac_func(); |
afc31813 VZ |
15454 | #endif |
15455 | ||
698dcdb6 | 15456 | ; return 0; } |
10f2d63a | 15457 | EOF |
d73be714 | 15458 | if { (eval echo configure:15459: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
15459 | rm -rf conftest* |
15460 | eval "ac_cv_func_$ac_func=yes" | |
15461 | else | |
15462 | echo "configure: failed program was:" >&5 | |
15463 | cat conftest.$ac_ext >&5 | |
15464 | rm -rf conftest* | |
15465 | eval "ac_cv_func_$ac_func=no" | |
15466 | fi | |
15467 | rm -f conftest* | |
15468 | fi | |
afc31813 | 15469 | |
698dcdb6 VZ |
15470 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
15471 | echo "$ac_t""yes" 1>&6 | |
15472 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
15473 | cat >> confdefs.h <<EOF | |
15474 | #define $ac_tr_func 1 | |
15475 | EOF | |
15476 | ||
15477 | else | |
15478 | echo "$ac_t""no" 1>&6 | |
afc31813 VZ |
15479 | fi |
15480 | done | |
15481 | ||
1e487827 | 15482 | |
698dcdb6 VZ |
15483 | if test "$ac_cv_func_localtime" = "yes"; then |
15484 | echo $ac_n "checking for tm_gmtoff in struct tm""... $ac_c" 1>&6 | |
d73be714 | 15485 | echo "configure:15486: checking for tm_gmtoff in struct tm" >&5 |
698dcdb6 VZ |
15486 | if eval "test \"`echo '$''{'wx_cv_struct_tm_has_gmtoff'+set}'`\" = set"; then |
15487 | echo $ac_n "(cached) $ac_c" 1>&6 | |
15488 | else | |
15489 | ||
15490 | cat > conftest.$ac_ext <<EOF | |
d73be714 | 15491 | #line 15492 "configure" |
0470b1e6 VZ |
15492 | #include "confdefs.h" |
15493 | ||
b4085ce6 | 15494 | #include <time.h> |
698dcdb6 VZ |
15495 | |
15496 | int main() { | |
0470b1e6 VZ |
15497 | |
15498 | struct tm tm; | |
15499 | tm.tm_gmtoff++; | |
698dcdb6 VZ |
15500 | |
15501 | ; return 0; } | |
15502 | EOF | |
d73be714 | 15503 | if { (eval echo configure:15504: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 VZ |
15504 | rm -rf conftest* |
15505 | ||
f03a98d8 | 15506 | wx_cv_struct_tm_has_gmtoff=yes |
698dcdb6 | 15507 | |
0470b1e6 | 15508 | else |
698dcdb6 VZ |
15509 | echo "configure: failed program was:" >&5 |
15510 | cat conftest.$ac_ext >&5 | |
15511 | rm -rf conftest* | |
15512 | wx_cv_struct_tm_has_gmtoff=no | |
15513 | ||
0470b1e6 | 15514 | fi |
698dcdb6 VZ |
15515 | rm -f conftest* |
15516 | ||
1e487827 | 15517 | fi |
698dcdb6 VZ |
15518 | |
15519 | echo "$ac_t""$wx_cv_struct_tm_has_gmtoff" 1>&6 | |
6232543b VS |
15520 | fi |
15521 | ||
15522 | if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then | |
698dcdb6 | 15523 | cat >> confdefs.h <<\EOF |
6232543b VS |
15524 | #define WX_GMTOFF_IN_TM 1 |
15525 | EOF | |
0470b1e6 | 15526 | |
3fcdd07b VZ |
15527 | fi |
15528 | ||
698dcdb6 | 15529 | for ac_func in gettimeofday ftime |
3fcdd07b | 15530 | do |
698dcdb6 | 15531 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
d73be714 | 15532 | echo "configure:15533: checking for $ac_func" >&5 |
698dcdb6 VZ |
15533 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
15534 | echo $ac_n "(cached) $ac_c" 1>&6 | |
15535 | else | |
15536 | cat > conftest.$ac_ext <<EOF | |
d73be714 | 15537 | #line 15538 "configure" |
3fcdd07b VZ |
15538 | #include "confdefs.h" |
15539 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 15540 | which can conflict with char $ac_func(); below. */ |
3fcdd07b VZ |
15541 | #include <assert.h> |
15542 | /* Override any gcc2 internal prototype to avoid an error. */ | |
15543 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
15544 | builtin and then its argument prototype would still apply. */ |
15545 | char $ac_func(); | |
15546 | ||
15547 | int main() { | |
3fcdd07b VZ |
15548 | |
15549 | /* The GNU C library defines this for functions which it implements | |
15550 | to always fail with ENOSYS. Some functions are actually named | |
15551 | something starting with __ and the normal name is an alias. */ | |
15552 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
15553 | choke me | |
15554 | #else | |
698dcdb6 | 15555 | $ac_func(); |
3fcdd07b VZ |
15556 | #endif |
15557 | ||
698dcdb6 VZ |
15558 | ; return 0; } |
15559 | EOF | |
d73be714 | 15560 | if { (eval echo configure:15561: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
15561 | rm -rf conftest* |
15562 | eval "ac_cv_func_$ac_func=yes" | |
15563 | else | |
15564 | echo "configure: failed program was:" >&5 | |
15565 | cat conftest.$ac_ext >&5 | |
15566 | rm -rf conftest* | |
15567 | eval "ac_cv_func_$ac_func=no" | |
15568 | fi | |
15569 | rm -f conftest* | |
15570 | fi | |
15571 | ||
15572 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
15573 | echo "$ac_t""yes" 1>&6 | |
15574 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
15575 | cat >> confdefs.h <<EOF | |
15576 | #define $ac_tr_func 1 | |
3fcdd07b VZ |
15577 | EOF |
15578 | break | |
698dcdb6 VZ |
15579 | else |
15580 | echo "$ac_t""no" 1>&6 | |
3fcdd07b VZ |
15581 | fi |
15582 | done | |
15583 | ||
afc31813 | 15584 | |
698dcdb6 VZ |
15585 | if test "$ac_cv_func_gettimeofday" = "yes"; then |
15586 | echo $ac_n "checking whether gettimeofday takes two arguments""... $ac_c" 1>&6 | |
d73be714 | 15587 | echo "configure:15588: checking whether gettimeofday takes two arguments" >&5 |
698dcdb6 VZ |
15588 | if eval "test \"`echo '$''{'wx_cv_func_gettimeofday_has_2_args'+set}'`\" = set"; then |
15589 | echo $ac_n "(cached) $ac_c" 1>&6 | |
15590 | else | |
15591 | ||
15592 | ||
15593 | ac_ext=C | |
15594 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
1e487827 | 15595 | ac_cpp='$CXXCPP $CPPFLAGS' |
698dcdb6 VZ |
15596 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
15597 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
15598 | cross_compiling=$ac_cv_prog_cxx_cross | |
703e0a69 | 15599 | |
698dcdb6 VZ |
15600 | |
15601 | cat > conftest.$ac_ext <<EOF | |
d73be714 | 15602 | #line 15603 "configure" |
10f2d63a | 15603 | #include "confdefs.h" |
afc31813 VZ |
15604 | |
15605 | #include <sys/time.h> | |
15606 | #include <unistd.h> | |
698dcdb6 VZ |
15607 | |
15608 | int main() { | |
afc31813 VZ |
15609 | |
15610 | struct timeval tv; | |
15611 | struct timezone tz; | |
15612 | gettimeofday(&tv, &tz); | |
698dcdb6 VZ |
15613 | |
15614 | ; return 0; } | |
15615 | EOF | |
d73be714 | 15616 | if { (eval echo configure:15617: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 | 15617 | rm -rf conftest* |
afc31813 | 15618 | wx_cv_func_gettimeofday_has_2_args=yes |
10f2d63a | 15619 | else |
698dcdb6 VZ |
15620 | echo "configure: failed program was:" >&5 |
15621 | cat conftest.$ac_ext >&5 | |
15622 | rm -rf conftest* | |
15623 | cat > conftest.$ac_ext <<EOF | |
d73be714 | 15624 | #line 15625 "configure" |
10f2d63a | 15625 | #include "confdefs.h" |
afc31813 VZ |
15626 | |
15627 | #include <sys/time.h> | |
15628 | #include <unistd.h> | |
698dcdb6 VZ |
15629 | |
15630 | int main() { | |
afc31813 VZ |
15631 | |
15632 | struct timeval tv; | |
15633 | gettimeofday(&tv); | |
698dcdb6 VZ |
15634 | |
15635 | ; return 0; } | |
15636 | EOF | |
d73be714 | 15637 | if { (eval echo configure:15638: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 | 15638 | rm -rf conftest* |
afc31813 | 15639 | wx_cv_func_gettimeofday_has_2_args=no |
10f2d63a | 15640 | else |
698dcdb6 VZ |
15641 | echo "configure: failed program was:" >&5 |
15642 | cat conftest.$ac_ext >&5 | |
15643 | rm -rf conftest* | |
15644 | wx_cv_func_gettimeofday_has_2_args=unknown | |
15645 | ||
10f2d63a | 15646 | fi |
698dcdb6 VZ |
15647 | rm -f conftest* |
15648 | ||
10f2d63a | 15649 | fi |
698dcdb6 | 15650 | rm -f conftest* |
afc31813 | 15651 | ac_ext=c |
698dcdb6 | 15652 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
10f2d63a | 15653 | ac_cpp='$CPP $CPPFLAGS' |
698dcdb6 VZ |
15654 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
15655 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
15656 | cross_compiling=$ac_cv_prog_cc_cross | |
10f2d63a | 15657 | |
698dcdb6 | 15658 | |
afc31813 | 15659 | fi |
698dcdb6 VZ |
15660 | |
15661 | echo "$ac_t""$wx_cv_func_gettimeofday_has_2_args" 1>&6 | |
c63c7106 | 15662 | |
afc31813 | 15663 | if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then |
698dcdb6 | 15664 | cat >> confdefs.h <<\EOF |
afc31813 VZ |
15665 | #define WX_GETTIMEOFDAY_NO_TZ 1 |
15666 | EOF | |
15667 | ||
15668 | fi | |
15669 | fi | |
15670 | ||
698dcdb6 | 15671 | cat >> confdefs.h <<\EOF |
afc31813 VZ |
15672 | #define wxUSE_TIMEDATE 1 |
15673 | EOF | |
15674 | ||
15675 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest" | |
15676 | fi | |
15677 | ||
698dcdb6 | 15678 | |
b089607b VZ |
15679 | if test "$TOOLKIT" != "MSW"; then |
15680 | ||
afc31813 | 15681 | if test "$wxUSE_SOCKETS" = "yes"; then |
698dcdb6 | 15682 | echo $ac_n "checking for socket""... $ac_c" 1>&6 |
d73be714 | 15683 | echo "configure:15684: checking for socket" >&5 |
698dcdb6 VZ |
15684 | if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then |
15685 | echo $ac_n "(cached) $ac_c" 1>&6 | |
c63c7106 | 15686 | else |
698dcdb6 | 15687 | cat > conftest.$ac_ext <<EOF |
d73be714 | 15688 | #line 15689 "configure" |
c63c7106 VZ |
15689 | #include "confdefs.h" |
15690 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 15691 | which can conflict with char socket(); below. */ |
c63c7106 VZ |
15692 | #include <assert.h> |
15693 | /* Override any gcc2 internal prototype to avoid an error. */ | |
15694 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
15695 | builtin and then its argument prototype would still apply. */ |
15696 | char socket(); | |
15697 | ||
15698 | int main() { | |
c63c7106 VZ |
15699 | |
15700 | /* The GNU C library defines this for functions which it implements | |
15701 | to always fail with ENOSYS. Some functions are actually named | |
15702 | something starting with __ and the normal name is an alias. */ | |
15703 | #if defined (__stub_socket) || defined (__stub___socket) | |
15704 | choke me | |
15705 | #else | |
698dcdb6 | 15706 | socket(); |
c63c7106 VZ |
15707 | #endif |
15708 | ||
698dcdb6 VZ |
15709 | ; return 0; } |
15710 | EOF | |
d73be714 | 15711 | if { (eval echo configure:15712: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
15712 | rm -rf conftest* |
15713 | eval "ac_cv_func_socket=yes" | |
15714 | else | |
15715 | echo "configure: failed program was:" >&5 | |
15716 | cat conftest.$ac_ext >&5 | |
15717 | rm -rf conftest* | |
15718 | eval "ac_cv_func_socket=no" | |
15719 | fi | |
15720 | rm -f conftest* | |
15721 | fi | |
15722 | ||
15723 | if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then | |
15724 | echo "$ac_t""yes" 1>&6 | |
c63c7106 VZ |
15725 | : |
15726 | else | |
698dcdb6 VZ |
15727 | echo "$ac_t""no" 1>&6 |
15728 | echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6 | |
d73be714 | 15729 | echo "configure:15730: checking for socket in -lsocket" >&5 |
698dcdb6 VZ |
15730 | ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'` |
15731 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
15732 | echo $ac_n "(cached) $ac_c" 1>&6 | |
c63c7106 | 15733 | else |
698dcdb6 | 15734 | ac_save_LIBS="$LIBS" |
c63c7106 | 15735 | LIBS="-lsocket $LIBS" |
698dcdb6 | 15736 | cat > conftest.$ac_ext <<EOF |
d73be714 | 15737 | #line 15738 "configure" |
c63c7106 VZ |
15738 | #include "confdefs.h" |
15739 | /* Override any gcc2 internal prototype to avoid an error. */ | |
15740 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
15741 | builtin and then its argument prototype would still apply. */ |
15742 | char socket(); | |
15743 | ||
15744 | int main() { | |
15745 | socket() | |
15746 | ; return 0; } | |
15747 | EOF | |
d73be714 | 15748 | if { (eval echo configure:15749: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
15749 | rm -rf conftest* |
15750 | eval "ac_cv_lib_$ac_lib_var=yes" | |
15751 | else | |
15752 | echo "configure: failed program was:" >&5 | |
15753 | cat conftest.$ac_ext >&5 | |
15754 | rm -rf conftest* | |
15755 | eval "ac_cv_lib_$ac_lib_var=no" | |
15756 | fi | |
15757 | rm -f conftest* | |
15758 | LIBS="$ac_save_LIBS" | |
15759 | ||
15760 | fi | |
15761 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
15762 | echo "$ac_t""yes" 1>&6 | |
c63c7106 | 15763 | INET_LINK="$INET_LINK -lsocket" |
c63c7106 | 15764 | else |
698dcdb6 | 15765 | echo "$ac_t""no" 1>&6 |
afc31813 | 15766 | |
698dcdb6 | 15767 | echo "configure: warning: socket library not found - sockets will be disabled" 1>&2 |
afc31813 | 15768 | wxUSE_SOCKETS=no |
698dcdb6 VZ |
15769 | |
15770 | ||
10f2d63a VZ |
15771 | fi |
15772 | ||
698dcdb6 | 15773 | |
6232543b | 15774 | fi |
b089607b | 15775 | |
1e487827 | 15776 | fi |
afc31813 | 15777 | |
51a9faba | 15778 | |
698dcdb6 VZ |
15779 | if test "$wxUSE_SOCKETS" = "yes" ; then |
15780 | echo $ac_n "checking what is the type of the third argument of getsockname""... $ac_c" 1>&6 | |
d73be714 | 15781 | echo "configure:15782: checking what is the type of the third argument of getsockname" >&5 |
698dcdb6 VZ |
15782 | if eval "test \"`echo '$''{'wx_cv_type_getsockname3'+set}'`\" = set"; then |
15783 | echo $ac_n "(cached) $ac_c" 1>&6 | |
15784 | else | |
15785 | ||
15786 | ||
15787 | ac_ext=C | |
15788 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
1e487827 | 15789 | ac_cpp='$CXXCPP $CPPFLAGS' |
698dcdb6 VZ |
15790 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
15791 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
15792 | cross_compiling=$ac_cv_prog_cxx_cross | |
703e0a69 | 15793 | |
698dcdb6 VZ |
15794 | |
15795 | cat > conftest.$ac_ext <<EOF | |
d73be714 | 15796 | #line 15797 "configure" |
afc31813 | 15797 | #include "confdefs.h" |
51a9faba | 15798 | |
3ace2e6d | 15799 | #include <sys/types.h> |
51a9faba | 15800 | #include <sys/socket.h> |
698dcdb6 VZ |
15801 | |
15802 | int main() { | |
51a9faba VZ |
15803 | |
15804 | socklen_t len; | |
15805 | getsockname(0, 0, &len); | |
698dcdb6 VZ |
15806 | |
15807 | ; return 0; } | |
15808 | EOF | |
d73be714 | 15809 | if { (eval echo configure:15810: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 | 15810 | rm -rf conftest* |
51a9faba | 15811 | wx_cv_type_getsockname3=socklen_t |
afc31813 | 15812 | else |
698dcdb6 VZ |
15813 | echo "configure: failed program was:" >&5 |
15814 | cat conftest.$ac_ext >&5 | |
15815 | rm -rf conftest* | |
15816 | cat > conftest.$ac_ext <<EOF | |
d73be714 | 15817 | #line 15818 "configure" |
afc31813 | 15818 | #include "confdefs.h" |
51a9faba | 15819 | |
3ace2e6d | 15820 | #include <sys/types.h> |
51a9faba | 15821 | #include <sys/socket.h> |
698dcdb6 VZ |
15822 | |
15823 | int main() { | |
51a9faba VZ |
15824 | |
15825 | size_t len; | |
15826 | getsockname(0, 0, &len); | |
698dcdb6 VZ |
15827 | |
15828 | ; return 0; } | |
15829 | EOF | |
d73be714 | 15830 | if { (eval echo configure:15831: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 | 15831 | rm -rf conftest* |
51a9faba | 15832 | wx_cv_type_getsockname3=size_t |
afc31813 | 15833 | else |
698dcdb6 VZ |
15834 | echo "configure: failed program was:" >&5 |
15835 | cat conftest.$ac_ext >&5 | |
15836 | rm -rf conftest* | |
15837 | cat > conftest.$ac_ext <<EOF | |
d73be714 | 15838 | #line 15839 "configure" |
afc31813 | 15839 | #include "confdefs.h" |
51a9faba | 15840 | |
3ace2e6d | 15841 | #include <sys/types.h> |
51a9faba | 15842 | #include <sys/socket.h> |
698dcdb6 VZ |
15843 | |
15844 | int main() { | |
51a9faba VZ |
15845 | |
15846 | int len; | |
15847 | getsockname(0, 0, &len); | |
698dcdb6 VZ |
15848 | |
15849 | ; return 0; } | |
15850 | EOF | |
d73be714 | 15851 | if { (eval echo configure:15852: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 | 15852 | rm -rf conftest* |
51a9faba | 15853 | wx_cv_type_getsockname3=int |
afc31813 | 15854 | else |
698dcdb6 VZ |
15855 | echo "configure: failed program was:" >&5 |
15856 | cat conftest.$ac_ext >&5 | |
15857 | rm -rf conftest* | |
15858 | wx_cv_type_getsockname3=unknown | |
15859 | ||
afc31813 | 15860 | fi |
698dcdb6 VZ |
15861 | rm -f conftest* |
15862 | ||
afc31813 | 15863 | fi |
698dcdb6 VZ |
15864 | rm -f conftest* |
15865 | ||
afc31813 | 15866 | fi |
698dcdb6 | 15867 | rm -f conftest* |
51a9faba VZ |
15868 | |
15869 | ac_ext=c | |
698dcdb6 | 15870 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
afc31813 | 15871 | ac_cpp='$CPP $CPPFLAGS' |
698dcdb6 VZ |
15872 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
15873 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
15874 | cross_compiling=$ac_cv_prog_cc_cross | |
afc31813 | 15875 | |
698dcdb6 | 15876 | |
51a9faba | 15877 | fi |
698dcdb6 VZ |
15878 | |
15879 | echo "$ac_t""$wx_cv_type_getsockname3" 1>&6 | |
51a9faba VZ |
15880 | |
15881 | if test "$wx_cv_type_getsockname3" = "unknown"; then | |
15882 | wxUSE_SOCKETS=no | |
698dcdb6 | 15883 | echo "configure: warning: Couldn't find socklen_t synonym for this system" 1>&2 |
51a9faba | 15884 | else |
698dcdb6 | 15885 | cat >> confdefs.h <<EOF |
51a9faba VZ |
15886 | #define SOCKLEN_T $wx_cv_type_getsockname3 |
15887 | EOF | |
15888 | ||
15889 | fi | |
15890 | fi | |
afc31813 | 15891 | |
c521c494 RL |
15892 | fi |
15893 | ||
51a9faba | 15894 | if test "$wxUSE_SOCKETS" = "yes" ; then |
698dcdb6 | 15895 | cat >> confdefs.h <<\EOF |
afc31813 VZ |
15896 | #define wxUSE_SOCKETS 1 |
15897 | EOF | |
15898 | ||
70f7a477 | 15899 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets" |
afc31813 VZ |
15900 | INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS protocol" |
15901 | fi | |
15902 | ||
698dcdb6 | 15903 | |
dc3d889d VZ |
15904 | if test "$wxUSE_GUI" = "yes"; then |
15905 | ||
b089607b VZ |
15906 | if test "$TOOLKIT" != "MSW"; then |
15907 | ||
ceded8b9 | 15908 | if test "$wxUSE_JOYSTICK" = "yes"; then |
698dcdb6 | 15909 | for ac_hdr in linux/joystick.h |
10f2d63a | 15910 | do |
698dcdb6 VZ |
15911 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
15912 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
d73be714 | 15913 | echo "configure:15914: checking for $ac_hdr" >&5 |
698dcdb6 VZ |
15914 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
15915 | echo $ac_n "(cached) $ac_c" 1>&6 | |
15916 | else | |
15917 | cat > conftest.$ac_ext <<EOF | |
d73be714 | 15918 | #line 15919 "configure" |
10f2d63a | 15919 | #include "confdefs.h" |
698dcdb6 VZ |
15920 | #include <$ac_hdr> |
15921 | EOF | |
15922 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
d73be714 | 15923 | { (eval echo configure:15924: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
15924 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
15925 | if test -z "$ac_err"; then | |
15926 | rm -rf conftest* | |
15927 | eval "ac_cv_header_$ac_safe=yes" | |
10f2d63a | 15928 | else |
698dcdb6 VZ |
15929 | echo "$ac_err" >&5 |
15930 | echo "configure: failed program was:" >&5 | |
10f2d63a | 15931 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
15932 | rm -rf conftest* |
15933 | eval "ac_cv_header_$ac_safe=no" | |
10f2d63a | 15934 | fi |
698dcdb6 | 15935 | rm -f conftest* |
10f2d63a | 15936 | fi |
698dcdb6 VZ |
15937 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
15938 | echo "$ac_t""yes" 1>&6 | |
15939 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
15940 | cat >> confdefs.h <<EOF | |
15941 | #define $ac_tr_hdr 1 | |
10f2d63a | 15942 | EOF |
698dcdb6 VZ |
15943 | |
15944 | else | |
15945 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
15946 | fi |
15947 | done | |
15948 | ||
b089607b | 15949 | if test "$ac_cv_header_linux_joystick_h" != "yes"; then |
ceded8b9 | 15950 | wxUSE_JOYSTICK=no |
698dcdb6 | 15951 | echo "configure: warning: Joystick not supported by this system" 1>&2 |
b089607b VZ |
15952 | fi |
15953 | fi | |
15954 | ||
15955 | fi | |
15956 | ||
ceded8b9 | 15957 | if test "$wxUSE_JOYSTICK" = "yes"; then |
698dcdb6 | 15958 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
15959 | #define wxUSE_JOYSTICK 1 |
15960 | EOF | |
15961 | ||
15962 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest" | |
10f2d63a VZ |
15963 | fi |
15964 | ||
dc3d889d VZ |
15965 | fi |
15966 | ||
698dcdb6 | 15967 | |
b089607b VZ |
15968 | if test "$TOOLKIT" != "MSW"; then |
15969 | ||
10f2d63a VZ |
15970 | HAVE_DL_FUNCS=0 |
15971 | HAVE_SHL_FUNCS=0 | |
15972 | if test "$wxUSE_DYNLIB_CLASS" = "yes"; then | |
b4085ce6 GD |
15973 | if test "$USE_MAC" = 1; then |
15974 | HAVE_DL_FUNCS=1 | |
15975 | else | |
698dcdb6 | 15976 | for ac_func in dlopen |
10f2d63a | 15977 | do |
698dcdb6 | 15978 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
d73be714 | 15979 | echo "configure:15980: checking for $ac_func" >&5 |
698dcdb6 VZ |
15980 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
15981 | echo $ac_n "(cached) $ac_c" 1>&6 | |
15982 | else | |
15983 | cat > conftest.$ac_ext <<EOF | |
d73be714 | 15984 | #line 15985 "configure" |
10f2d63a VZ |
15985 | #include "confdefs.h" |
15986 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 15987 | which can conflict with char $ac_func(); below. */ |
10f2d63a VZ |
15988 | #include <assert.h> |
15989 | /* Override any gcc2 internal prototype to avoid an error. */ | |
15990 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
15991 | builtin and then its argument prototype would still apply. */ |
15992 | char $ac_func(); | |
15993 | ||
15994 | int main() { | |
10f2d63a VZ |
15995 | |
15996 | /* The GNU C library defines this for functions which it implements | |
15997 | to always fail with ENOSYS. Some functions are actually named | |
15998 | something starting with __ and the normal name is an alias. */ | |
15999 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
16000 | choke me | |
16001 | #else | |
698dcdb6 | 16002 | $ac_func(); |
10f2d63a VZ |
16003 | #endif |
16004 | ||
698dcdb6 VZ |
16005 | ; return 0; } |
16006 | EOF | |
d73be714 | 16007 | if { (eval echo configure:16008: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
16008 | rm -rf conftest* |
16009 | eval "ac_cv_func_$ac_func=yes" | |
16010 | else | |
16011 | echo "configure: failed program was:" >&5 | |
16012 | cat conftest.$ac_ext >&5 | |
16013 | rm -rf conftest* | |
16014 | eval "ac_cv_func_$ac_func=no" | |
16015 | fi | |
16016 | rm -f conftest* | |
16017 | fi | |
16018 | ||
16019 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
16020 | echo "$ac_t""yes" 1>&6 | |
16021 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
16022 | cat >> confdefs.h <<EOF | |
16023 | #define $ac_tr_func 1 | |
16024 | EOF | |
16025 | ||
16026 | cat >> confdefs.h <<\EOF | |
10f2d63a VZ |
16027 | #define HAVE_DLOPEN 1 |
16028 | EOF | |
16029 | ||
16030 | HAVE_DL_FUNCS=1 | |
698dcdb6 | 16031 | |
10f2d63a | 16032 | else |
698dcdb6 VZ |
16033 | echo "$ac_t""no" 1>&6 |
16034 | echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6 | |
d73be714 | 16035 | echo "configure:16036: checking for dlopen in -ldl" >&5 |
698dcdb6 VZ |
16036 | ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'` |
16037 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
16038 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 16039 | else |
698dcdb6 | 16040 | ac_save_LIBS="$LIBS" |
10f2d63a | 16041 | LIBS="-ldl $LIBS" |
698dcdb6 | 16042 | cat > conftest.$ac_ext <<EOF |
d73be714 | 16043 | #line 16044 "configure" |
10f2d63a VZ |
16044 | #include "confdefs.h" |
16045 | /* Override any gcc2 internal prototype to avoid an error. */ | |
16046 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
16047 | builtin and then its argument prototype would still apply. */ |
16048 | char dlopen(); | |
16049 | ||
16050 | int main() { | |
16051 | dlopen() | |
16052 | ; return 0; } | |
16053 | EOF | |
d73be714 | 16054 | if { (eval echo configure:16055: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
16055 | rm -rf conftest* |
16056 | eval "ac_cv_lib_$ac_lib_var=yes" | |
16057 | else | |
16058 | echo "configure: failed program was:" >&5 | |
16059 | cat conftest.$ac_ext >&5 | |
16060 | rm -rf conftest* | |
16061 | eval "ac_cv_lib_$ac_lib_var=no" | |
16062 | fi | |
16063 | rm -f conftest* | |
16064 | LIBS="$ac_save_LIBS" | |
16065 | ||
16066 | fi | |
16067 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
16068 | echo "$ac_t""yes" 1>&6 | |
16069 | ||
16070 | cat >> confdefs.h <<\EOF | |
10f2d63a VZ |
16071 | #define HAVE_DLOPEN 1 |
16072 | EOF | |
16073 | ||
16074 | HAVE_DL_FUNCS=1 | |
16075 | LIBS="$LIBS -ldl" | |
698dcdb6 | 16076 | |
10f2d63a | 16077 | else |
698dcdb6 | 16078 | echo "$ac_t""no" 1>&6 |
10f2d63a | 16079 | |
698dcdb6 | 16080 | for ac_func in shl_load |
10f2d63a | 16081 | do |
698dcdb6 | 16082 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
d73be714 | 16083 | echo "configure:16084: checking for $ac_func" >&5 |
698dcdb6 VZ |
16084 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
16085 | echo $ac_n "(cached) $ac_c" 1>&6 | |
16086 | else | |
16087 | cat > conftest.$ac_ext <<EOF | |
d73be714 | 16088 | #line 16089 "configure" |
10f2d63a VZ |
16089 | #include "confdefs.h" |
16090 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 16091 | which can conflict with char $ac_func(); below. */ |
10f2d63a VZ |
16092 | #include <assert.h> |
16093 | /* Override any gcc2 internal prototype to avoid an error. */ | |
16094 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
16095 | builtin and then its argument prototype would still apply. */ |
16096 | char $ac_func(); | |
16097 | ||
16098 | int main() { | |
10f2d63a VZ |
16099 | |
16100 | /* The GNU C library defines this for functions which it implements | |
16101 | to always fail with ENOSYS. Some functions are actually named | |
16102 | something starting with __ and the normal name is an alias. */ | |
16103 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
16104 | choke me | |
16105 | #else | |
698dcdb6 | 16106 | $ac_func(); |
10f2d63a VZ |
16107 | #endif |
16108 | ||
698dcdb6 VZ |
16109 | ; return 0; } |
16110 | EOF | |
d73be714 | 16111 | if { (eval echo configure:16112: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
16112 | rm -rf conftest* |
16113 | eval "ac_cv_func_$ac_func=yes" | |
16114 | else | |
16115 | echo "configure: failed program was:" >&5 | |
16116 | cat conftest.$ac_ext >&5 | |
16117 | rm -rf conftest* | |
16118 | eval "ac_cv_func_$ac_func=no" | |
16119 | fi | |
16120 | rm -f conftest* | |
16121 | fi | |
16122 | ||
16123 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
16124 | echo "$ac_t""yes" 1>&6 | |
16125 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
16126 | cat >> confdefs.h <<EOF | |
16127 | #define $ac_tr_func 1 | |
16128 | EOF | |
16129 | ||
16130 | cat >> confdefs.h <<\EOF | |
10f2d63a VZ |
16131 | #define HAVE_SHL_LOAD 1 |
16132 | EOF | |
16133 | ||
16134 | HAVE_SHL_FUNCS=1 | |
698dcdb6 | 16135 | |
10f2d63a | 16136 | else |
698dcdb6 VZ |
16137 | echo "$ac_t""no" 1>&6 |
16138 | echo $ac_n "checking for dld in -lshl_load""... $ac_c" 1>&6 | |
d73be714 | 16139 | echo "configure:16140: checking for dld in -lshl_load" >&5 |
698dcdb6 VZ |
16140 | ac_lib_var=`echo shl_load'_'dld | sed 'y%./+-%__p_%'` |
16141 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
16142 | echo $ac_n "(cached) $ac_c" 1>&6 | |
f6bcfd97 | 16143 | else |
698dcdb6 | 16144 | ac_save_LIBS="$LIBS" |
f6bcfd97 | 16145 | LIBS="-lshl_load $LIBS" |
698dcdb6 | 16146 | cat > conftest.$ac_ext <<EOF |
d73be714 | 16147 | #line 16148 "configure" |
f6bcfd97 BP |
16148 | #include "confdefs.h" |
16149 | /* Override any gcc2 internal prototype to avoid an error. */ | |
16150 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
16151 | builtin and then its argument prototype would still apply. */ |
16152 | char dld(); | |
16153 | ||
16154 | int main() { | |
16155 | dld() | |
16156 | ; return 0; } | |
16157 | EOF | |
d73be714 | 16158 | if { (eval echo configure:16159: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
16159 | rm -rf conftest* |
16160 | eval "ac_cv_lib_$ac_lib_var=yes" | |
16161 | else | |
16162 | echo "configure: failed program was:" >&5 | |
16163 | cat conftest.$ac_ext >&5 | |
16164 | rm -rf conftest* | |
16165 | eval "ac_cv_lib_$ac_lib_var=no" | |
16166 | fi | |
16167 | rm -f conftest* | |
16168 | LIBS="$ac_save_LIBS" | |
f6bcfd97 | 16169 | |
698dcdb6 VZ |
16170 | fi |
16171 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
16172 | echo "$ac_t""yes" 1>&6 | |
16173 | ||
f6bcfd97 BP |
16174 | HAVE_SHL_FUNCS=1 |
16175 | LIBS="$LIBS -ldld" | |
698dcdb6 VZ |
16176 | |
16177 | else | |
16178 | echo "$ac_t""no" 1>&6 | |
f6bcfd97 BP |
16179 | fi |
16180 | ||
698dcdb6 | 16181 | |
10f2d63a VZ |
16182 | fi |
16183 | done | |
16184 | ||
698dcdb6 | 16185 | |
10f2d63a VZ |
16186 | fi |
16187 | ||
698dcdb6 | 16188 | |
10f2d63a VZ |
16189 | fi |
16190 | done | |
16191 | ||
1e487827 | 16192 | |
698dcdb6 VZ |
16193 | if test "$HAVE_DL_FUNCS" = 1; then |
16194 | for ac_func in dlerror | |
f6bcfd97 | 16195 | do |
698dcdb6 | 16196 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
d73be714 | 16197 | echo "configure:16198: checking for $ac_func" >&5 |
698dcdb6 VZ |
16198 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
16199 | echo $ac_n "(cached) $ac_c" 1>&6 | |
16200 | else | |
16201 | cat > conftest.$ac_ext <<EOF | |
d73be714 | 16202 | #line 16203 "configure" |
f6bcfd97 BP |
16203 | #include "confdefs.h" |
16204 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 16205 | which can conflict with char $ac_func(); below. */ |
f6bcfd97 BP |
16206 | #include <assert.h> |
16207 | /* Override any gcc2 internal prototype to avoid an error. */ | |
16208 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
16209 | builtin and then its argument prototype would still apply. */ |
16210 | char $ac_func(); | |
16211 | ||
16212 | int main() { | |
f6bcfd97 BP |
16213 | |
16214 | /* The GNU C library defines this for functions which it implements | |
16215 | to always fail with ENOSYS. Some functions are actually named | |
16216 | something starting with __ and the normal name is an alias. */ | |
16217 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
16218 | choke me | |
16219 | #else | |
698dcdb6 | 16220 | $ac_func(); |
f6bcfd97 BP |
16221 | #endif |
16222 | ||
698dcdb6 VZ |
16223 | ; return 0; } |
16224 | EOF | |
d73be714 | 16225 | if { (eval echo configure:16226: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
16226 | rm -rf conftest* |
16227 | eval "ac_cv_func_$ac_func=yes" | |
16228 | else | |
16229 | echo "configure: failed program was:" >&5 | |
16230 | cat conftest.$ac_ext >&5 | |
16231 | rm -rf conftest* | |
16232 | eval "ac_cv_func_$ac_func=no" | |
16233 | fi | |
16234 | rm -f conftest* | |
16235 | fi | |
16236 | ||
16237 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
16238 | echo "$ac_t""yes" 1>&6 | |
16239 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
16240 | cat >> confdefs.h <<EOF | |
16241 | #define $ac_tr_func 1 | |
16242 | EOF | |
16243 | cat >> confdefs.h <<\EOF | |
f6bcfd97 BP |
16244 | #define HAVE_DLERROR 1 |
16245 | EOF | |
16246 | ||
16247 | else | |
698dcdb6 VZ |
16248 | echo "$ac_t""no" 1>&6 |
16249 | echo $ac_n "checking for dlerror in -ldl""... $ac_c" 1>&6 | |
d73be714 | 16250 | echo "configure:16251: checking for dlerror in -ldl" >&5 |
698dcdb6 VZ |
16251 | ac_lib_var=`echo dl'_'dlerror | sed 'y%./+-%__p_%'` |
16252 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
16253 | echo $ac_n "(cached) $ac_c" 1>&6 | |
f6bcfd97 | 16254 | else |
698dcdb6 | 16255 | ac_save_LIBS="$LIBS" |
f6bcfd97 | 16256 | LIBS="-ldl $LIBS" |
698dcdb6 | 16257 | cat > conftest.$ac_ext <<EOF |
d73be714 | 16258 | #line 16259 "configure" |
f6bcfd97 BP |
16259 | #include "confdefs.h" |
16260 | /* Override any gcc2 internal prototype to avoid an error. */ | |
16261 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
16262 | builtin and then its argument prototype would still apply. */ |
16263 | char dlerror(); | |
16264 | ||
16265 | int main() { | |
16266 | dlerror() | |
16267 | ; return 0; } | |
16268 | EOF | |
d73be714 | 16269 | if { (eval echo configure:16270: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
16270 | rm -rf conftest* |
16271 | eval "ac_cv_lib_$ac_lib_var=yes" | |
16272 | else | |
16273 | echo "configure: failed program was:" >&5 | |
16274 | cat conftest.$ac_ext >&5 | |
16275 | rm -rf conftest* | |
16276 | eval "ac_cv_lib_$ac_lib_var=no" | |
16277 | fi | |
16278 | rm -f conftest* | |
16279 | LIBS="$ac_save_LIBS" | |
16280 | ||
16281 | fi | |
16282 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
16283 | echo "$ac_t""yes" 1>&6 | |
16284 | cat >> confdefs.h <<\EOF | |
f6bcfd97 BP |
16285 | #define HAVE_DLERROR 1 |
16286 | EOF | |
16287 | ||
698dcdb6 VZ |
16288 | else |
16289 | echo "$ac_t""no" 1>&6 | |
f6bcfd97 BP |
16290 | fi |
16291 | ||
16292 | fi | |
16293 | done | |
16294 | ||
16295 | fi | |
b4085ce6 | 16296 | fi |
f6bcfd97 | 16297 | |
10f2d63a VZ |
16298 | if test "$HAVE_DL_FUNCS" = 0; then |
16299 | if test "$HAVE_SHL_FUNCS" = 0; then | |
16300 | if test "$USE_UNIX" = 1; then | |
698dcdb6 | 16301 | echo "configure: warning: Missing dynamic loading support, several features will be disabled" 1>&2 |
10f2d63a VZ |
16302 | wxUSE_DYNLIB_CLASS=no |
16303 | else | |
698dcdb6 | 16304 | echo "configure: warning: Assuming wxLibrary class works on this platform" 1>&2 |
10f2d63a VZ |
16305 | fi |
16306 | fi | |
16307 | fi | |
16308 | fi | |
16309 | ||
b089607b VZ |
16310 | fi |
16311 | ||
10f2d63a | 16312 | if test "$wxUSE_DYNLIB_CLASS" = "yes" ; then |
698dcdb6 | 16313 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16314 | #define wxUSE_DYNLIB_CLASS 1 |
16315 | EOF | |
16316 | ||
b12915c1 VZ |
16317 | else |
16318 | wxUSE_ODBC=no | |
16319 | wxUSE_SERIAL=no | |
10f2d63a VZ |
16320 | fi |
16321 | ||
698dcdb6 | 16322 | |
1e6feb95 VZ |
16323 | if test "$wxUSE_FONTMAP" = "yes" ; then |
16324 | cat >> confdefs.h <<\EOF | |
16325 | #define wxUSE_FONTMAP 1 | |
16326 | EOF | |
16327 | ||
16328 | fi | |
16329 | ||
10f2d63a | 16330 | if test "$wxUSE_UNICODE" = "yes" ; then |
698dcdb6 | 16331 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16332 | #define wxUSE_UNICODE 1 |
16333 | EOF | |
16334 | ||
16335 | fi | |
16336 | ||
16337 | if test "$wxUSE_WCSRTOMBS" = "yes" ; then | |
698dcdb6 | 16338 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16339 | #define wxUSE_WCSRTOMBS 1 |
16340 | EOF | |
16341 | ||
16342 | fi | |
16343 | ||
16344 | if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then | |
698dcdb6 | 16345 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16346 | #define wxUSE_EXPERIMENTAL_PRINTF 1 |
16347 | EOF | |
16348 | ||
16349 | fi | |
16350 | ||
698dcdb6 | 16351 | |
b12915c1 | 16352 | if test "$wxUSE_SERIAL" = "yes" ; then |
698dcdb6 | 16353 | cat >> confdefs.h <<\EOF |
b12915c1 VZ |
16354 | #define wxUSE_SERIAL 1 |
16355 | EOF | |
16356 | ||
16357 | fi | |
16358 | ||
698dcdb6 | 16359 | |
10f2d63a VZ |
16360 | IODBC_C_SRC="" |
16361 | if test "$wxUSE_ODBC" = "yes" ; then | |
698dcdb6 | 16362 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16363 | #define wxUSE_ODBC 1 |
16364 | EOF | |
16365 | ||
16366 | WXODBCFLAG="-D_IODBC_" | |
16367 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db" | |
10f2d63a VZ |
16368 | fi |
16369 | ||
698dcdb6 | 16370 | |
10f2d63a | 16371 | if test "$wxUSE_POSTSCRIPT" = "yes" ; then |
698dcdb6 | 16372 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16373 | #define wxUSE_POSTSCRIPT 1 |
16374 | EOF | |
16375 | ||
16376 | fi | |
16377 | ||
698dcdb6 | 16378 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16379 | #define wxUSE_AFM_FOR_POSTSCRIPT 1 |
16380 | EOF | |
16381 | ||
698dcdb6 VZ |
16382 | |
16383 | cat >> confdefs.h <<\EOF | |
10f2d63a VZ |
16384 | #define wxUSE_NORMALIZED_PS_FONTS 1 |
16385 | EOF | |
16386 | ||
698dcdb6 VZ |
16387 | |
16388 | ||
10f2d63a | 16389 | if test "$wxUSE_CONSTRAINTS" = "yes"; then |
698dcdb6 | 16390 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16391 | #define wxUSE_CONSTRAINTS 1 |
16392 | EOF | |
16393 | ||
16394 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout" | |
16395 | fi | |
16396 | ||
16397 | if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then | |
698dcdb6 | 16398 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16399 | #define wxUSE_MDI_ARCHITECTURE 1 |
16400 | EOF | |
16401 | ||
16402 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi" | |
16403 | fi | |
16404 | ||
16405 | if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then | |
698dcdb6 | 16406 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16407 | #define wxUSE_DOC_VIEW_ARCHITECTURE 1 |
16408 | EOF | |
16409 | ||
16410 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview" | |
16411 | if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then | |
16412 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi" | |
16413 | fi | |
16414 | fi | |
16415 | ||
16416 | if test "$wxUSE_HELP" = "yes"; then | |
698dcdb6 | 16417 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16418 | #define wxUSE_HELP 1 |
16419 | EOF | |
16420 | ||
16421 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help" | |
16422 | fi | |
16423 | ||
16424 | if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then | |
16425 | if test "$wxUSE_CONSTRAINTS" != "yes"; then | |
698dcdb6 | 16426 | echo "configure: warning: Printing support cannot be used without constraints so it won't be compiled without it" 1>&2 |
10f2d63a | 16427 | else |
698dcdb6 | 16428 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16429 | #define wxUSE_PRINTING_ARCHITECTURE 1 |
16430 | EOF | |
16431 | ||
16432 | fi | |
16433 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing" | |
16434 | fi | |
16435 | ||
16436 | if test "$wxUSE_PROLOGIO" = "yes" ; then | |
698dcdb6 | 16437 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16438 | #define wxUSE_PROLOGIO 1 |
16439 | EOF | |
16440 | ||
16441 | fi | |
16442 | ||
16443 | if test "$wxUSE_RESOURCES" = "yes" ; then | |
16444 | if test "$wxUSE_PROLOGIO" = "yes" ; then | |
698dcdb6 | 16445 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16446 | #define wxUSE_RESOURCES 1 |
16447 | EOF | |
16448 | ||
16449 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS resource" | |
16450 | else | |
698dcdb6 | 16451 | echo "configure: warning: wxWindows ressource system requires PrologIO and can't be compiled without it." 1>&2 |
10f2d63a VZ |
16452 | fi |
16453 | fi | |
16454 | ||
16455 | if test "$wxUSE_X_RESOURCES" = "yes"; then | |
698dcdb6 | 16456 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16457 | #define wxUSE_X_RESOURCES 1 |
16458 | EOF | |
16459 | ||
16460 | fi | |
16461 | ||
698dcdb6 | 16462 | |
10f2d63a | 16463 | if test "$wxUSE_IPC" = "yes"; then |
eb4efbdc | 16464 | if test "$wxUSE_SOCKETS" != "yes"; then |
698dcdb6 | 16465 | echo "configure: warning: wxWindows IPC classes require sockets" 1>&2 |
eb4efbdc VZ |
16466 | fi |
16467 | ||
698dcdb6 | 16468 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16469 | #define wxUSE_IPC 1 |
16470 | EOF | |
16471 | ||
16472 | fi | |
16473 | ||
16474 | if test "$wxUSE_CLIPBOARD" = "yes"; then | |
698dcdb6 | 16475 | cat >> confdefs.h <<\EOF |
10f2d63a | 16476 | #define wxUSE_CLIPBOARD 1 |
1e6feb95 VZ |
16477 | EOF |
16478 | ||
16479 | cat >> confdefs.h <<\EOF | |
16480 | #define wxUSE_DATAOBJ 1 | |
10f2d63a VZ |
16481 | EOF |
16482 | ||
16483 | fi | |
16484 | ||
16485 | if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then | |
16486 | if test "$wxUSE_GTK" = 1; then | |
16487 | if test "$WXGTK12" != 1; then | |
698dcdb6 | 16488 | echo "configure: warning: Drag and drop is only supported under GTK+ 1.2" 1>&2 |
10f2d63a VZ |
16489 | wxUSE_DRAG_AND_DROP=no |
16490 | fi | |
16491 | fi | |
16492 | ||
16493 | if test "$wxUSE_MOTIF" = 1; then | |
698dcdb6 | 16494 | echo "configure: warning: Drag and drop is not yet supported under Motif" 1>&2 |
10f2d63a VZ |
16495 | wxUSE_DRAG_AND_DROP=no |
16496 | fi | |
16497 | ||
2c6025bc | 16498 | if test "$wxUSE_MAC" = 1; then |
698dcdb6 | 16499 | echo "configure: warning: Drag and drop is not yet supported under Mac OS X" 1>&2 |
2c6025bc GD |
16500 | wxUSE_DRAG_AND_DROP=no |
16501 | fi | |
16502 | ||
10f2d63a | 16503 | if test "$USE_WIN32" = 1; then |
698dcdb6 VZ |
16504 | |
16505 | for ac_hdr in ole2.h | |
10f2d63a | 16506 | do |
698dcdb6 VZ |
16507 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
16508 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
d73be714 | 16509 | echo "configure:16510: checking for $ac_hdr" >&5 |
698dcdb6 VZ |
16510 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
16511 | echo $ac_n "(cached) $ac_c" 1>&6 | |
16512 | else | |
16513 | cat > conftest.$ac_ext <<EOF | |
d73be714 | 16514 | #line 16515 "configure" |
10f2d63a | 16515 | #include "confdefs.h" |
698dcdb6 VZ |
16516 | #include <$ac_hdr> |
16517 | EOF | |
16518 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
d73be714 | 16519 | { (eval echo configure:16520: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
16520 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
16521 | if test -z "$ac_err"; then | |
16522 | rm -rf conftest* | |
16523 | eval "ac_cv_header_$ac_safe=yes" | |
1e487827 | 16524 | else |
698dcdb6 VZ |
16525 | echo "$ac_err" >&5 |
16526 | echo "configure: failed program was:" >&5 | |
10f2d63a | 16527 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
16528 | rm -rf conftest* |
16529 | eval "ac_cv_header_$ac_safe=no" | |
10f2d63a | 16530 | fi |
698dcdb6 | 16531 | rm -f conftest* |
10f2d63a | 16532 | fi |
698dcdb6 VZ |
16533 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
16534 | echo "$ac_t""yes" 1>&6 | |
16535 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
16536 | cat >> confdefs.h <<EOF | |
16537 | #define $ac_tr_hdr 1 | |
10f2d63a | 16538 | EOF |
698dcdb6 VZ |
16539 | |
16540 | else | |
16541 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
16542 | fi |
16543 | done | |
16544 | ||
698dcdb6 | 16545 | |
57fe5ed0 | 16546 | if test "$ac_cv_header_ole2_h" = "yes" ; then |
c521c494 | 16547 | if test "$GCC" = yes ; then |
b64f0a5f RL |
16548 | ALL_OBJECTS="$ALL_OBJECTS \$(OLEOBJS)" |
16549 | ALL_DEPFILES="$ALL_DEPFILES \$(OLEDEPS)" | |
c521c494 | 16550 | CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fvtable-thunks" |
b64f0a5f RL |
16551 | LIBS="$LIBS -lole32 -luuid" |
16552 | ||
16553 | if test "$wxUSE_METAFILE" = "yes"; then | |
698dcdb6 | 16554 | cat >> confdefs.h <<\EOF |
b64f0a5f RL |
16555 | #define wxUSE_METAFILE 1 |
16556 | EOF | |
16557 | ||
698dcdb6 | 16558 | cat >> confdefs.h <<\EOF |
b64f0a5f RL |
16559 | #define wxUSE_ENH_METAFILE 1 |
16560 | EOF | |
16561 | ||
16562 | fi | |
c521c494 RL |
16563 | fi |
16564 | else | |
698dcdb6 | 16565 | echo "configure: warning: Drag and drop disabled because OLE headers not found" 1>&2 |
10f2d63a VZ |
16566 | wxUSE_DRAG_AND_DROP=no |
16567 | fi | |
16568 | fi | |
16569 | ||
16570 | if test "$wxUSE_DRAG_AND_DROP" = "yes"; then | |
698dcdb6 | 16571 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16572 | #define wxUSE_DRAG_AND_DROP 1 |
16573 | EOF | |
16574 | ||
16575 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd" | |
16576 | fi | |
16577 | ||
16578 | fi | |
16579 | ||
16580 | if test "$wxUSE_SPLINES" = "yes" ; then | |
698dcdb6 | 16581 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16582 | #define wxUSE_SPLINES 1 |
16583 | EOF | |
16584 | ||
16585 | fi | |
16586 | ||
698dcdb6 | 16587 | |
1e6feb95 VZ |
16588 | USES_CONTROLS=0 |
16589 | if test "$wxUSE_CONTROLS" = "yes"; then | |
16590 | USES_CONTROLS=1 | |
16591 | fi | |
16592 | ||
10f2d63a | 16593 | if test "$wxUSE_ACCEL" = "yes"; then |
698dcdb6 | 16594 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16595 | #define wxUSE_ACCEL 1 |
16596 | EOF | |
16597 | ||
1e6feb95 VZ |
16598 | USES_CONTROLS=1 |
16599 | fi | |
16600 | ||
16601 | if test "$wxUSE_BUTTON" = "yes"; then | |
16602 | cat >> confdefs.h <<\EOF | |
16603 | #define wxUSE_BUTTON 1 | |
16604 | EOF | |
16605 | ||
16606 | USES_CONTROLS=1 | |
16607 | fi | |
16608 | ||
16609 | if test "$wxUSE_BMPBUTTON" = "yes"; then | |
16610 | cat >> confdefs.h <<\EOF | |
16611 | #define wxUSE_BMPBUTTON 1 | |
16612 | EOF | |
16613 | ||
16614 | USES_CONTROLS=1 | |
16615 | fi | |
16616 | ||
16617 | if test "$wxUSE_CALCTRL" = "yes"; then | |
16618 | cat >> confdefs.h <<\EOF | |
16619 | #define wxUSE_CALENDARCTRL 1 | |
16620 | EOF | |
16621 | ||
16622 | USES_CONTROLS=1 | |
16623 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar" | |
10f2d63a VZ |
16624 | fi |
16625 | ||
16626 | if test "$wxUSE_CARET" = "yes"; then | |
698dcdb6 | 16627 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16628 | #define wxUSE_CARET 1 |
16629 | EOF | |
16630 | ||
1e6feb95 | 16631 | USES_CONTROLS=1 |
10f2d63a VZ |
16632 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret" |
16633 | fi | |
16634 | ||
16635 | if test "$wxUSE_COMBOBOX" = "yes"; then | |
698dcdb6 | 16636 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16637 | #define wxUSE_COMBOBOX 1 |
16638 | EOF | |
16639 | ||
1e6feb95 | 16640 | USES_CONTROLS=1 |
10f2d63a VZ |
16641 | fi |
16642 | ||
16643 | if test "$wxUSE_CHOICE" = "yes"; then | |
698dcdb6 | 16644 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16645 | #define wxUSE_CHOICE 1 |
16646 | EOF | |
16647 | ||
1e6feb95 | 16648 | USES_CONTROLS=1 |
10f2d63a VZ |
16649 | fi |
16650 | ||
16651 | if test "$wxUSE_CHECKBOX" = "yes"; then | |
698dcdb6 | 16652 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16653 | #define wxUSE_CHECKBOX 1 |
16654 | EOF | |
16655 | ||
1e6feb95 | 16656 | USES_CONTROLS=1 |
10f2d63a VZ |
16657 | fi |
16658 | ||
16659 | if test "$wxUSE_CHECKLST" = "yes"; then | |
698dcdb6 | 16660 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16661 | #define wxUSE_CHECKLISTBOX 1 |
16662 | EOF | |
16663 | ||
1e6feb95 | 16664 | USES_CONTROLS=1 |
10f2d63a VZ |
16665 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst" |
16666 | fi | |
16667 | ||
16668 | if test "$wxUSE_GAUGE" = "yes"; then | |
698dcdb6 | 16669 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16670 | #define wxUSE_GAUGE 1 |
16671 | EOF | |
16672 | ||
1e6feb95 | 16673 | USES_CONTROLS=1 |
10f2d63a VZ |
16674 | fi |
16675 | ||
d6a55c4b VZ |
16676 | if test "$wxUSE_NEW_GRID" = "yes"; then |
16677 | wxUSE_GRID="yes" | |
698dcdb6 | 16678 | cat >> confdefs.h <<\EOF |
d6a55c4b | 16679 | #define wxUSE_NEW_GRID 1 |
10f2d63a VZ |
16680 | EOF |
16681 | ||
1e6feb95 | 16682 | USES_CONTROLS=1 |
d6a55c4b | 16683 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS newgrid" |
10f2d63a VZ |
16684 | fi |
16685 | ||
d6a55c4b | 16686 | if test "$wxUSE_GRID" = "yes"; then |
698dcdb6 | 16687 | cat >> confdefs.h <<\EOF |
d6a55c4b | 16688 | #define wxUSE_GRID 1 |
10f2d63a VZ |
16689 | EOF |
16690 | ||
1e6feb95 | 16691 | USES_CONTROLS=1 |
d6a55c4b | 16692 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid" |
10f2d63a VZ |
16693 | fi |
16694 | ||
16695 | if test "$wxUSE_IMAGLIST" = "yes"; then | |
698dcdb6 | 16696 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16697 | #define wxUSE_IMAGLIST 1 |
16698 | EOF | |
16699 | ||
16700 | fi | |
16701 | ||
16702 | if test "$wxUSE_LISTBOX" = "yes"; then | |
698dcdb6 | 16703 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16704 | #define wxUSE_LISTBOX 1 |
16705 | EOF | |
16706 | ||
1e6feb95 | 16707 | USES_CONTROLS=1 |
10f2d63a VZ |
16708 | fi |
16709 | ||
16710 | if test "$wxUSE_LISTCTRL" = "yes"; then | |
16711 | if test "$wxUSE_IMAGLIST" = "yes"; then | |
698dcdb6 | 16712 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16713 | #define wxUSE_LISTCTRL 1 |
16714 | EOF | |
16715 | ||
1e6feb95 | 16716 | USES_CONTROLS=1 |
10f2d63a VZ |
16717 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl" |
16718 | else | |
698dcdb6 | 16719 | echo "configure: warning: wxListCtrl requires wxImageList and won't be compiled without it" 1>&2 |
10f2d63a VZ |
16720 | fi |
16721 | fi | |
16722 | ||
16723 | if test "$wxUSE_NOTEBOOK" = "yes"; then | |
698dcdb6 | 16724 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16725 | #define wxUSE_NOTEBOOK 1 |
16726 | EOF | |
16727 | ||
1e6feb95 | 16728 | USES_CONTROLS=1 |
10f2d63a VZ |
16729 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook" |
16730 | fi | |
16731 | ||
16732 | if test "$wxUSE_RADIOBOX" = "yes"; then | |
698dcdb6 | 16733 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16734 | #define wxUSE_RADIOBOX 1 |
16735 | EOF | |
16736 | ||
1e6feb95 | 16737 | USES_CONTROLS=1 |
10f2d63a VZ |
16738 | fi |
16739 | ||
16740 | if test "$wxUSE_RADIOBTN" = "yes"; then | |
698dcdb6 | 16741 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16742 | #define wxUSE_RADIOBTN 1 |
16743 | EOF | |
16744 | ||
1e6feb95 | 16745 | USES_CONTROLS=1 |
10f2d63a VZ |
16746 | fi |
16747 | ||
16748 | if test "$wxUSE_SASH" = "yes"; then | |
698dcdb6 | 16749 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16750 | #define wxUSE_SASH 1 |
16751 | EOF | |
16752 | ||
16753 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest" | |
16754 | fi | |
16755 | ||
16756 | if test "$wxUSE_SCROLLBAR" = "yes"; then | |
698dcdb6 | 16757 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16758 | #define wxUSE_SCROLLBAR 1 |
16759 | EOF | |
16760 | ||
1e6feb95 | 16761 | USES_CONTROLS=1 |
741a9306 | 16762 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub" |
10f2d63a VZ |
16763 | fi |
16764 | ||
16765 | if test "$wxUSE_SLIDER" = "yes"; then | |
698dcdb6 | 16766 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16767 | #define wxUSE_SLIDER 1 |
16768 | EOF | |
16769 | ||
1e6feb95 | 16770 | USES_CONTROLS=1 |
10f2d63a VZ |
16771 | fi |
16772 | ||
16773 | if test "$wxUSE_SPINBTN" = "yes"; then | |
698dcdb6 | 16774 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16775 | #define wxUSE_SPINBTN 1 |
16776 | EOF | |
16777 | ||
1e6feb95 | 16778 | USES_CONTROLS=1 |
10f2d63a VZ |
16779 | fi |
16780 | ||
56cfaa52 | 16781 | if test "$wxUSE_SPINCTRL" = "yes"; then |
698dcdb6 | 16782 | cat >> confdefs.h <<\EOF |
56cfaa52 RR |
16783 | #define wxUSE_SPINCTRL 1 |
16784 | EOF | |
16785 | ||
1e6feb95 | 16786 | USES_CONTROLS=1 |
56cfaa52 RR |
16787 | fi |
16788 | ||
10f2d63a | 16789 | if test "$wxUSE_SPLITTER" = "yes"; then |
698dcdb6 | 16790 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16791 | #define wxUSE_SPLITTER 1 |
16792 | EOF | |
16793 | ||
16794 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter" | |
16795 | fi | |
16796 | ||
16797 | if test "$wxUSE_STATBMP" = "yes"; then | |
698dcdb6 | 16798 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16799 | #define wxUSE_STATBMP 1 |
16800 | EOF | |
16801 | ||
1e6feb95 | 16802 | USES_CONTROLS=1 |
10f2d63a VZ |
16803 | fi |
16804 | ||
16805 | if test "$wxUSE_STATBOX" = "yes"; then | |
698dcdb6 | 16806 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16807 | #define wxUSE_STATBOX 1 |
16808 | EOF | |
16809 | ||
1e6feb95 VZ |
16810 | USES_CONTROLS=1 |
16811 | fi | |
16812 | ||
16813 | if test "$wxUSE_STATTEXT" = "yes"; then | |
16814 | cat >> confdefs.h <<\EOF | |
16815 | #define wxUSE_STATTEXT 1 | |
16816 | EOF | |
16817 | ||
16818 | USES_CONTROLS=1 | |
10f2d63a VZ |
16819 | fi |
16820 | ||
16821 | if test "$wxUSE_STATLINE" = "yes"; then | |
16822 | if test "$wxUSE_WINE" = 1 ; then | |
698dcdb6 | 16823 | echo "configure: warning: wxStaticLine is not supported under WINE" 1>&2 |
10f2d63a | 16824 | else |
698dcdb6 | 16825 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16826 | #define wxUSE_STATLINE 1 |
16827 | EOF | |
16828 | ||
1e6feb95 | 16829 | USES_CONTROLS=1 |
10f2d63a VZ |
16830 | fi |
16831 | fi | |
16832 | ||
16833 | if test "$wxUSE_STATUSBAR" = "yes"; then | |
698dcdb6 | 16834 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16835 | #define wxUSE_STATUSBAR 1 |
16836 | EOF | |
16837 | ||
1e6feb95 | 16838 | USES_CONTROLS=1 |
698dcdb6 | 16839 | |
2286341c | 16840 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar" |
10f2d63a VZ |
16841 | fi |
16842 | ||
16843 | if test "$wxUSE_TABDIALOG" = "yes"; then | |
698dcdb6 | 16844 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16845 | #define wxUSE_TAB_DIALOG 1 |
16846 | EOF | |
16847 | ||
16848 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS tab" | |
16849 | fi | |
16850 | ||
1e6feb95 VZ |
16851 | if test "$wxUSE_TEXTCTRL" = "yes"; then |
16852 | cat >> confdefs.h <<\EOF | |
16853 | #define wxUSE_TEXTCTRL 1 | |
16854 | EOF | |
16855 | ||
16856 | USES_CONTROLS=1 | |
16857 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text" | |
16858 | fi | |
16859 | ||
1db8dc4a | 16860 | if test "$wxUSE_TOGGLEBTN" = "yes"; then |
a45d7ab7 GD |
16861 | if test "$wxUSE_MAC" = 1; then |
16862 | echo "configure: warning: Toggle button is not yet supported under Mac OS X" 1>&2 | |
16863 | wxUSE_TOGGLEBTN=no | |
16864 | fi | |
16865 | ||
16866 | if test "$wxUSE_TOGGLEBTN" = "yes"; then | |
16867 | cat >> confdefs.h <<\EOF | |
1db8dc4a VZ |
16868 | #define wxUSE_TOGGLEBTN 1 |
16869 | EOF | |
16870 | ||
1e6feb95 | 16871 | USES_CONTROLS=1 |
a45d7ab7 | 16872 | fi |
1db8dc4a VZ |
16873 | fi |
16874 | ||
360d6699 | 16875 | if test "$wxUSE_TOOLBAR_SIMPLE" = "yes"; then |
698dcdb6 | 16876 | cat >> confdefs.h <<\EOF |
360d6699 VZ |
16877 | #define wxUSE_TOOLBAR_SIMPLE 1 |
16878 | EOF | |
16879 | ||
16880 | wxUSE_TOOLBAR="yes" | |
1e6feb95 | 16881 | USES_CONTROLS=1 |
360d6699 VZ |
16882 | fi |
16883 | ||
10f2d63a | 16884 | if test "$wxUSE_TOOLBAR" = "yes"; then |
698dcdb6 | 16885 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16886 | #define wxUSE_TOOLBAR 1 |
16887 | EOF | |
16888 | ||
1e6feb95 | 16889 | USES_CONTROLS=1 |
698dcdb6 | 16890 | |
360d6699 VZ |
16891 | if test "$wxUSE_TOOLBAR_SIMPLE" != "yes"; then |
16892 | wxUSE_TOOLBAR_NATIVE="yes" | |
16893 | fi | |
16894 | ||
1e6feb95 VZ |
16895 | if test "$wxUSE_TOOLBAR_NATIVE" = "yes"; then |
16896 | cat >> confdefs.h <<\EOF | |
360d6699 VZ |
16897 | #define wxUSE_TOOLBAR_NATIVE 1 |
16898 | EOF | |
16899 | ||
1e6feb95 VZ |
16900 | USES_CONTROLS=1 |
16901 | fi | |
16902 | ||
16903 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar" | |
360d6699 VZ |
16904 | fi |
16905 | ||
10f2d63a VZ |
16906 | if test "$wxUSE_TOOLTIPS" = "yes"; then |
16907 | if test "$wxUSE_MOTIF" = 1; then | |
698dcdb6 | 16908 | echo "configure: warning: wxTooltip not supported yet under Motif" 1>&2 |
10f2d63a VZ |
16909 | else |
16910 | if test "$wxUSE_WINE" = 1; then | |
698dcdb6 | 16911 | echo "configure: warning: wxTooltip not supported under WINE" 1>&2 |
10f2d63a | 16912 | else |
698dcdb6 | 16913 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16914 | #define wxUSE_TOOLTIPS 1 |
16915 | EOF | |
16916 | ||
16917 | fi | |
16918 | fi | |
16919 | fi | |
16920 | ||
16921 | if test "$wxUSE_TREECTRL" = "yes"; then | |
16922 | if test "$wxUSE_IMAGLIST" = "yes"; then | |
698dcdb6 | 16923 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16924 | #define wxUSE_TREECTRL 1 |
16925 | EOF | |
16926 | ||
1e6feb95 | 16927 | USES_CONTROLS=1 |
10f2d63a VZ |
16928 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl" |
16929 | else | |
698dcdb6 | 16930 | echo "configure: warning: wxTreeCtrl requires wxImageList and won't be compiled without it" 1>&2 |
10f2d63a VZ |
16931 | fi |
16932 | fi | |
16933 | ||
1e6feb95 VZ |
16934 | if test "$USES_CONTROLS" = 1; then |
16935 | cat >> confdefs.h <<\EOF | |
16936 | #define wxUSE_CONTROLS 1 | |
10f2d63a VZ |
16937 | EOF |
16938 | ||
10f2d63a VZ |
16939 | fi |
16940 | ||
1e6feb95 VZ |
16941 | |
16942 | ||
16943 | if test "$wxUSE_MENUS" = "yes"; then | |
698dcdb6 | 16944 | cat >> confdefs.h <<\EOF |
1e6feb95 | 16945 | #define wxUSE_MENUS 1 |
10f2d63a VZ |
16946 | EOF |
16947 | ||
1e6feb95 | 16948 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu" |
10f2d63a VZ |
16949 | fi |
16950 | ||
1e6feb95 VZ |
16951 | if test "$wxUSE_METAFILE" = "yes"; then |
16952 | cat >> confdefs.h <<\EOF | |
16953 | #define wxUSE_METAFILE 1 | |
10f2d63a VZ |
16954 | EOF |
16955 | ||
10f2d63a VZ |
16956 | fi |
16957 | ||
1e6feb95 VZ |
16958 | if test "$wxUSE_MIMETYPE" = "yes"; then |
16959 | cat >> confdefs.h <<\EOF | |
16960 | #define wxUSE_MIMETYPE 1 | |
10f2d63a VZ |
16961 | EOF |
16962 | ||
10f2d63a VZ |
16963 | fi |
16964 | ||
16965 | if test "$wxUSE_MINIFRAME" = "yes"; then | |
698dcdb6 | 16966 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16967 | #define wxUSE_MINIFRAME 1 |
16968 | EOF | |
16969 | ||
16970 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram" | |
16971 | fi | |
16972 | ||
16973 | if test "$wxUSE_HTML" = "yes"; then | |
698dcdb6 | 16974 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16975 | #define wxUSE_HTML 1 |
16976 | EOF | |
16977 | ||
16978 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html" | |
16979 | INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS html" | |
16980 | fi | |
16981 | ||
16982 | if test "$wxUSE_VALIDATORS" = "yes"; then | |
698dcdb6 | 16983 | cat >> confdefs.h <<\EOF |
1e487827 VS |
16984 | #define wxUSE_VALIDATORS 1 |
16985 | EOF | |
703e0a69 | 16986 | |
698dcdb6 VZ |
16987 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate" |
16988 | fi | |
16989 | ||
16990 | if test "$wxUSE_IMAGE" = "yes" ; then | |
16991 | cat >> confdefs.h <<\EOF | |
16992 | #define wxUSE_IMAGE 1 | |
16993 | EOF | |
16994 | ||
16995 | fi | |
16996 | ||
16997 | if test "$wxUSE_GIF" = "yes" ; then | |
16998 | cat >> confdefs.h <<\EOF | |
16999 | #define wxUSE_GIF 1 | |
17000 | EOF | |
17001 | ||
17002 | fi | |
17003 | ||
17004 | if test "$wxUSE_PCX" = "yes" ; then | |
17005 | cat >> confdefs.h <<\EOF | |
17006 | #define wxUSE_PCX 1 | |
17007 | EOF | |
17008 | ||
17009 | fi | |
17010 | ||
17011 | if test "$wxUSE_PNM" = "yes" ; then | |
17012 | cat >> confdefs.h <<\EOF | |
17013 | #define wxUSE_PNM 1 | |
17014 | EOF | |
17015 | ||
17016 | fi | |
17017 | ||
17018 | if test "$wxUSE_XPM" = "yes" ; then | |
17019 | cat >> confdefs.h <<\EOF | |
17020 | #define wxUSE_XPM 1 | |
17021 | EOF | |
17022 | ||
17023 | fi | |
17024 | ||
17025 | ||
1e6feb95 VZ |
17026 | if test "$wxUSE_CHOICEDLG" = "yes"; then |
17027 | cat >> confdefs.h <<\EOF | |
17028 | #define wxUSE_CHOICEDLG 1 | |
17029 | EOF | |
17030 | ||
17031 | fi | |
17032 | ||
17033 | if test "$wxUSE_COLOURDLG" = "yes"; then | |
17034 | cat >> confdefs.h <<\EOF | |
17035 | #define wxUSE_COLOURDLG 1 | |
17036 | EOF | |
17037 | ||
17038 | fi | |
17039 | ||
17040 | if test "$wxUSE_FILEDLG" = "yes"; then | |
17041 | cat >> confdefs.h <<\EOF | |
17042 | #define wxUSE_FILEDLG 1 | |
17043 | EOF | |
17044 | ||
17045 | fi | |
17046 | ||
17047 | if test "$wxUSE_FONTDLG" = "yes"; then | |
17048 | cat >> confdefs.h <<\EOF | |
17049 | #define wxUSE_FONTDLG 1 | |
17050 | EOF | |
17051 | ||
17052 | fi | |
17053 | ||
17054 | if test "$wxUSE_DIRDLG" = "yes"; then | |
17055 | if test "$wxUSE_CONSTRAINTS" != "yes"; then | |
17056 | echo "configure: warning: wxDirDialog requires constraints so it won't be compiled without them" 1>&2 | |
17057 | else | |
17058 | if test "$wxUSE_TREECTRL" != "yes"; then | |
17059 | echo "configure: warning: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" 1>&2 | |
17060 | else | |
17061 | cat >> confdefs.h <<\EOF | |
17062 | #define wxUSE_DIRDLG 1 | |
17063 | EOF | |
17064 | ||
17065 | fi | |
17066 | fi | |
17067 | fi | |
17068 | ||
17069 | if test "$wxUSE_MSGDLG" = "yes"; then | |
17070 | cat >> confdefs.h <<\EOF | |
17071 | #define wxUSE_MSGDLG 1 | |
17072 | EOF | |
17073 | ||
17074 | fi | |
17075 | ||
17076 | if test "$wxUSE_NUMBERDLG" = "yes"; then | |
17077 | cat >> confdefs.h <<\EOF | |
17078 | #define wxUSE_NUMBERDLG 1 | |
17079 | EOF | |
17080 | ||
17081 | fi | |
17082 | ||
17083 | if test "$wxUSE_PROGRESSDLG" = "yes"; then | |
17084 | if test "$wxUSE_CONSTRAINTS" != "yes"; then | |
17085 | echo "configure: warning: wxProgressDialog requires constraints so it won't be compiled without them" 1>&2 | |
17086 | else | |
17087 | cat >> confdefs.h <<\EOF | |
17088 | #define wxUSE_PROGRESSDLG 1 | |
17089 | EOF | |
17090 | ||
17091 | fi | |
17092 | fi | |
17093 | ||
17094 | if test "$wxUSE_STARTUP_TIPS" = "yes"; then | |
17095 | if test "$wxUSE_CONSTRAINTS" != "yes"; then | |
17096 | echo "configure: warning: Startup tips requires constraints and won't be compiled without them" 1>&2 | |
17097 | else | |
17098 | cat >> confdefs.h <<\EOF | |
17099 | #define wxUSE_STARTUP_TIPS 1 | |
17100 | EOF | |
17101 | ||
17102 | fi | |
17103 | fi | |
17104 | ||
17105 | if test "$wxUSE_TEXTDLG" = "yes"; then | |
17106 | cat >> confdefs.h <<\EOF | |
17107 | #define wxUSE_TEXTDLG 1 | |
17108 | EOF | |
17109 | ||
17110 | fi | |
17111 | ||
17112 | ||
698dcdb6 VZ |
17113 | if test "$cross_compiling" = "yes"; then |
17114 | OSINFO="\"$host\"" | |
17115 | else | |
17116 | OSINFO=`uname -s -r -m` | |
17117 | OSINFO="\"$OSINFO\"" | |
17118 | fi | |
17119 | ||
17120 | cat >> confdefs.h <<EOF | |
17121 | #define WXWIN_OS_DESCRIPTION $OSINFO | |
17122 | EOF | |
17123 | ||
17124 | ||
17125 | ||
17126 | GUILIBS="$GUI_TK_LIBRARY $TOOLKIT_LINK" | |
17127 | OPENGL_LIBS="$OPENGL_LINK" | |
17128 | ||
17129 | EXTRA_LIBS="$LIBS $POSIX4_LINK $INET_LINK $WCHAR_LINK $THREADS_LINK $DMALLOC_LINK $DL_LINK $ZLIB_LINK -lm" | |
17130 | if test "$USE_MAC" = 1 ; then | |
17131 | EXTRA_LIBS="$EXTRA_LIBS -framework Carbon -framework System" | |
17132 | fi | |
17133 | if test "$wxUSE_GUI" = "yes"; then | |
17134 | EXTRA_LIBS="$GUILIBS $PNG_LINK $JPEG_LINK $TIFF_LINK $FREETYPE_LINK $EXTRA_LIBS" | |
17135 | fi | |
17136 | ||
17137 | LD_LIBS="\${top_builddir}/lib/${WX_LIBRARY_NAME_STATIC} $EXTRA_LIBS" | |
17138 | ||
17139 | INCLUDES="-I. -I\${top_builddir}/include -I\${top_srcdir}/include $ZLIB_INCLUDE $PNG_INCLUDE $JPEG_INCLUDE $TIFF_INCLUDE $FREETYPE_INCLUDE $TOOLKIT_INCLUDE" | |
17140 | ||
17141 | if test "$wxUSE_GTK" = 1; then | |
17142 | WXCONFIG_INCLUDE="" | |
17143 | else | |
17144 | WXCONFIG_INCLUDE="$TOOLKIT_INCLUDE" | |
17145 | fi | |
17146 | ||
17147 | if test "$GXX" = yes ; then | |
17148 | CXXWARNINGS="-Wall" | |
17149 | fi | |
17150 | EXTRA_CFLAGS="$WXDEBUG $WXODBCFLAG $PROFILE $OPTIMISE $INCLUDES" | |
17151 | ||
17152 | CFLAGS=`echo $CFLAGS $EXTRA_CFLAGS $CXXWARNINGS | sed 's/ \\+/ /g'` | |
17153 | CXXFLAGS=`echo $CXXFLAGS $EXTRA_CFLAGS $CXXWARNINGS | sed 's/ \+/ /g'` | |
17154 | ||
17155 | LDFLAGS="$LDFLAGS $PROFILE" | |
17156 | ||
17157 | if test "$wxUSE_GUI" = "yes"; then | |
17158 | ||
17159 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS controls dialogs dragimag \ | |
1e6feb95 VZ |
17160 | drawing dynamic event font fractal image \ |
17161 | minimal richedit widgets" | |
17162 | ||
17163 | if test "$wxUSE_UNIVERSAL" = "yes" ; then | |
17164 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS univ" | |
17165 | fi | |
698dcdb6 VZ |
17166 | |
17167 | CPPFLAGS="$CPPFLAGS \$(EXTRADEFS) \$(APPEXTRADEFS)" | |
17168 | else | |
17169 | SAMPLES_SUBDIRS="" | |
17170 | fi | |
17171 | ||
17172 | SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`" | |
17173 | ||
17174 | ||
17175 | ||
17176 | ||
17177 | ||
17178 | ||
17179 | ||
17180 | ||
17181 | ||
17182 | ||
17183 | ||
17184 | ||
17185 | ||
17186 | ||
17187 | ||
17188 | ||
17189 | ||
17190 | ||
17191 | ||
17192 | ||
17193 | ||
17194 | ||
17195 | ||
17196 | ||
17197 | ||
17198 | ||
17199 | ||
17200 | ||
17201 | ||
17202 | ||
17203 | ||
17204 | ||
17205 | ||
17206 | ||
17207 | ||
17208 | ||
17209 | ||
17210 | ||
17211 | ||
17212 | ||
17213 | ||
17214 | ||
17215 | ||
17216 | ||
17217 | ||
17218 | ||
17219 | ||
17220 | ||
17221 | ||
17222 | ||
17223 | ||
17224 | ||
17225 | ||
17226 | ||
17227 | ||
17228 | ||
17229 | ||
17230 | ||
17231 | ||
17232 | ||
17233 | ||
17234 | ||
17235 | ||
17236 | ||
17237 | ||
17238 | ||
17239 | ||
32832908 VZ |
17240 | |
17241 | ||
17242 | ||
17243 | ||
17244 | ||
17245 | ||
17246 | ||
2224580a | 17247 | |
dad6c0ea | 17248 | |
f6bcfd97 BP |
17249 | |
17250 | ||
17251 | ||
2f51a9ec GD |
17252 | |
17253 | ||
17254 | ||
17255 | ||
17256 | ||
17257 | ||
f6bcfd97 | 17258 | |
dad6c0ea | 17259 | |
caa2c79b | 17260 | |
3711412e | 17261 | |
1e6feb95 VZ |
17262 | |
17263 | ||
0f3f1cbc | 17264 | |
10f2d63a VZ |
17265 | |
17266 | ||
698dcdb6 | 17267 | echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6 |
d73be714 | 17268 | echo "configure:17269: checking whether ${MAKE-make} sets \${MAKE}" >&5 |
698dcdb6 VZ |
17269 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'` |
17270 | if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then | |
17271 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 17272 | else |
698dcdb6 | 17273 | cat > conftestmake <<\EOF |
10f2d63a VZ |
17274 | all: |
17275 | @echo 'ac_maketemp="${MAKE}"' | |
17276 | EOF | |
17277 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
698dcdb6 | 17278 | eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=` |
10f2d63a VZ |
17279 | if test -n "$ac_maketemp"; then |
17280 | eval ac_cv_prog_make_${ac_make}_set=yes | |
17281 | else | |
17282 | eval ac_cv_prog_make_${ac_make}_set=no | |
17283 | fi | |
698dcdb6 | 17284 | rm -f conftestmake |
10f2d63a VZ |
17285 | fi |
17286 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then | |
698dcdb6 | 17287 | echo "$ac_t""yes" 1>&6 |
10f2d63a VZ |
17288 | SET_MAKE= |
17289 | else | |
698dcdb6 | 17290 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
17291 | SET_MAKE="MAKE=${MAKE-make}" |
17292 | fi | |
17293 | ||
698dcdb6 | 17294 | |
00cf1208 RR |
17295 | if test -d include; then |
17296 | if test -d include/wx; then | |
1e6feb95 VZ |
17297 | if test -d include/wx/${SETUPH_DIR}; then |
17298 | if test -f include/wx/${SETUPH_DIR}/setup.h; then | |
17299 | mv -f include/wx/${SETUPH_DIR}/setup.h setup.h | |
00cf1208 RR |
17300 | fi |
17301 | fi | |
17302 | fi | |
17303 | fi | |
665bbe97 | 17304 | |
698dcdb6 | 17305 | |
10f2d63a | 17306 | |
2224580a | 17307 | if test "$wxUSE_GUI" = "yes"; then |
ec90f5e5 | 17308 | wx_cv_path_samplesubdirs=$SAMPLES_SUBDIRS |
e8482f24 GL |
17309 | wx_cv_path_ifs=$PATH_IFS |
17310 | wx_cv_program_ext=$PROGRAM_EXT | |
17311 | wx_cv_target_library=$WX_TARGET_LIBRARY | |
3711412e | 17312 | wx_cv_target_libtype=$WX_TARGET_LIBRARY_TYPE |
93a20a27 VS |
17313 | export wx_cv_path_samplesubdirs wx_cv_path_ifs wx_cv_program_ext \ |
17314 | wx_cv_target_library wx_cv_target_libtype | |
698dcdb6 | 17315 | subdirs="demos samples utils contrib" |
2224580a VZ |
17316 | |
17317 | fi | |
10f2d63a | 17318 | |
698dcdb6 VZ |
17319 | trap '' 1 2 15 |
17320 | cat > confcache <<\EOF | |
10f2d63a VZ |
17321 | # This file is a shell script that caches the results of configure |
17322 | # tests run on this system so they can be shared between configure | |
698dcdb6 VZ |
17323 | # scripts and configure runs. It is not useful on other systems. |
17324 | # If it contains results you don't want to keep, you may remove or edit it. | |
10f2d63a | 17325 | # |
698dcdb6 VZ |
17326 | # By default, configure uses ./config.cache as the cache file, |
17327 | # creating it if it does not exist already. You can give configure | |
17328 | # the --cache-file=FILE option to use a different cache file; that is | |
17329 | # what configure does when it calls configure scripts in | |
17330 | # subdirectories, so they share the cache. | |
17331 | # Giving --cache-file=/dev/null disables caching, for debugging configure. | |
17332 | # config.status only pays attention to the cache file if you give it the | |
17333 | # --recheck option to rerun configure. | |
10f2d63a | 17334 | # |
698dcdb6 | 17335 | EOF |
10f2d63a VZ |
17336 | # The following way of writing the cache mishandles newlines in values, |
17337 | # but we know of no workaround that is simple, portable, and efficient. | |
17338 | # So, don't put newlines in cache variables' values. | |
17339 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
17340 | # and sets the high bit in the cache file unless we assign to the vars. | |
698dcdb6 VZ |
17341 | (set) 2>&1 | |
17342 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
17343 | *ac_space=\ *) | |
17344 | # `set' does not quote correctly, so add quotes (double-quote substitution | |
17345 | # turns \\\\ into \\, and sed turns \\ into \). | |
17346 | sed -n \ | |
17347 | -e "s/'/'\\\\''/g" \ | |
17348 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" | |
17349 | ;; | |
17350 | *) | |
17351 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
17352 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' | |
17353 | ;; | |
17354 | esac >> confcache | |
17355 | if cmp -s $cache_file confcache; then | |
17356 | : | |
17357 | else | |
10f2d63a | 17358 | if test -w $cache_file; then |
698dcdb6 VZ |
17359 | echo "updating cache $cache_file" |
17360 | cat confcache > $cache_file | |
10f2d63a VZ |
17361 | else |
17362 | echo "not updating unwritable cache $cache_file" | |
17363 | fi | |
17364 | fi | |
17365 | rm -f confcache | |
17366 | ||
698dcdb6 VZ |
17367 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 |
17368 | ||
10f2d63a VZ |
17369 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
17370 | # Let make expand exec_prefix. | |
17371 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
17372 | ||
698dcdb6 VZ |
17373 | # Any assignment to VPATH causes Sun make to only execute |
17374 | # the first set of double-colon rules, so remove it if not needed. | |
17375 | # If there is a colon in the path, we need to keep it. | |
10f2d63a | 17376 | if test "x$srcdir" = x.; then |
698dcdb6 | 17377 | ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d' |
10f2d63a VZ |
17378 | fi |
17379 | ||
698dcdb6 VZ |
17380 | trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15 |
17381 | ||
10f2d63a VZ |
17382 | DEFS=-DHAVE_CONFIG_H |
17383 | ||
698dcdb6 | 17384 | # Without the "./", some shells look in PATH for config.status. |
10f2d63a | 17385 | : ${CONFIG_STATUS=./config.status} |
698dcdb6 VZ |
17386 | |
17387 | echo creating $CONFIG_STATUS | |
17388 | rm -f $CONFIG_STATUS | |
17389 | cat > $CONFIG_STATUS <<EOF | |
17390 | #! /bin/sh | |
10f2d63a VZ |
17391 | # Generated automatically by configure. |
17392 | # Run this file to recreate the current configuration. | |
698dcdb6 VZ |
17393 | # This directory was configured as follows, |
17394 | # on host `(hostname || uname -n) 2>/dev/null | sed 1q`: | |
17395 | # | |
17396 | # $0 $ac_configure_args | |
17397 | # | |
10f2d63a | 17398 | # Compiler output produced by configure, useful for debugging |
698dcdb6 | 17399 | # configure, is in ./config.log if it exists. |
1e487827 | 17400 | |
698dcdb6 VZ |
17401 | ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]" |
17402 | for ac_option | |
10f2d63a | 17403 | do |
698dcdb6 | 17404 | case "\$ac_option" in |
10f2d63a | 17405 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
698dcdb6 VZ |
17406 | echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion" |
17407 | exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;; | |
17408 | -version | --version | --versio | --versi | --vers | --ver | --ve | --v) | |
17409 | echo "$CONFIG_STATUS generated by autoconf version 2.13" | |
17410 | exit 0 ;; | |
17411 | -help | --help | --hel | --he | --h) | |
17412 | echo "\$ac_cs_usage"; exit 0 ;; | |
17413 | *) echo "\$ac_cs_usage"; exit 1 ;; | |
10f2d63a VZ |
17414 | esac |
17415 | done | |
17416 | ||
698dcdb6 VZ |
17417 | ac_given_srcdir=$srcdir |
17418 | ac_given_INSTALL="$INSTALL" | |
703e0a69 | 17419 | |
698dcdb6 VZ |
17420 | trap 'rm -fr `echo " |
17421 | wx-config | |
17422 | src/make.env | |
17423 | src/makeprog.env | |
17424 | src/makelib.env | |
17425 | Makefile | |
17426 | setup.h:setup.h.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15 | |
1e487827 | 17427 | EOF |
698dcdb6 | 17428 | cat >> $CONFIG_STATUS <<EOF |
1e487827 | 17429 | |
698dcdb6 VZ |
17430 | # Protect against being on the right side of a sed subst in config.status. |
17431 | sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g; | |
17432 | s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF | |
17433 | $ac_vpsub | |
17434 | $extrasub | |
17435 | s%@SHELL@%$SHELL%g | |
17436 | s%@CFLAGS@%$CFLAGS%g | |
17437 | s%@CPPFLAGS@%$CPPFLAGS%g | |
17438 | s%@CXXFLAGS@%$CXXFLAGS%g | |
17439 | s%@FFLAGS@%$FFLAGS%g | |
17440 | s%@DEFS@%$DEFS%g | |
17441 | s%@LDFLAGS@%$LDFLAGS%g | |
17442 | s%@LIBS@%$LIBS%g | |
17443 | s%@exec_prefix@%$exec_prefix%g | |
17444 | s%@prefix@%$prefix%g | |
17445 | s%@program_transform_name@%$program_transform_name%g | |
17446 | s%@bindir@%$bindir%g | |
17447 | s%@sbindir@%$sbindir%g | |
17448 | s%@libexecdir@%$libexecdir%g | |
17449 | s%@datadir@%$datadir%g | |
17450 | s%@sysconfdir@%$sysconfdir%g | |
17451 | s%@sharedstatedir@%$sharedstatedir%g | |
17452 | s%@localstatedir@%$localstatedir%g | |
17453 | s%@libdir@%$libdir%g | |
17454 | s%@includedir@%$includedir%g | |
17455 | s%@oldincludedir@%$oldincludedir%g | |
17456 | s%@infodir@%$infodir%g | |
17457 | s%@mandir@%$mandir%g | |
17458 | s%@host@%$host%g | |
17459 | s%@host_alias@%$host_alias%g | |
17460 | s%@host_cpu@%$host_cpu%g | |
17461 | s%@host_vendor@%$host_vendor%g | |
17462 | s%@host_os@%$host_os%g | |
17463 | s%@target@%$target%g | |
17464 | s%@target_alias@%$target_alias%g | |
17465 | s%@target_cpu@%$target_cpu%g | |
17466 | s%@target_vendor@%$target_vendor%g | |
17467 | s%@target_os@%$target_os%g | |
17468 | s%@build@%$build%g | |
17469 | s%@build_alias@%$build_alias%g | |
17470 | s%@build_cpu@%$build_cpu%g | |
17471 | s%@build_vendor@%$build_vendor%g | |
17472 | s%@build_os@%$build_os%g | |
17473 | s%@CC@%$CC%g | |
17474 | s%@CPP@%$CPP%g | |
17475 | s%@CXX@%$CXX%g | |
17476 | s%@CXXCPP@%$CXXCPP%g | |
17477 | s%@RANLIB@%$RANLIB%g | |
17478 | s%@AR@%$AR%g | |
17479 | s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g | |
17480 | s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g | |
17481 | s%@INSTALL_DATA@%$INSTALL_DATA%g | |
17482 | s%@STRIP@%$STRIP%g | |
17483 | s%@YACC@%$YACC%g | |
17484 | s%@LEX@%$LEX%g | |
17485 | s%@LEXLIB@%$LEXLIB%g | |
17486 | s%@LN_S@%$LN_S%g | |
17487 | s%@GTK_CONFIG_2_0@%$GTK_CONFIG_2_0%g | |
698dcdb6 VZ |
17488 | s%@GTK_CFLAGS@%$GTK_CFLAGS%g |
17489 | s%@GTK_LIBS@%$GTK_LIBS%g | |
8168de4c | 17490 | s%@GTK_CONFIG@%$GTK_CONFIG%g |
698dcdb6 VZ |
17491 | s%@X_CFLAGS@%$X_CFLAGS%g |
17492 | s%@X_PRE_LIBS@%$X_PRE_LIBS%g | |
17493 | s%@X_LIBS@%$X_LIBS%g | |
17494 | s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g | |
17495 | s%@REZ@%$REZ%g | |
17496 | s%@DEREZ@%$DEREZ%g | |
17497 | s%@LEX_STEM@%$LEX_STEM%g | |
17498 | s%@PATH_IFS@%$PATH_IFS%g | |
17499 | s%@WX_MAJOR_VERSION_NUMBER@%$WX_MAJOR_VERSION_NUMBER%g | |
17500 | s%@WX_MINOR_VERSION_NUMBER@%$WX_MINOR_VERSION_NUMBER%g | |
17501 | s%@WX_RELEASE_NUMBER@%$WX_RELEASE_NUMBER%g | |
17502 | s%@WX_LIBRARY_NAME@%$WX_LIBRARY_NAME%g | |
17503 | s%@WX_LIBRARY_NAME_STATIC@%$WX_LIBRARY_NAME_STATIC%g | |
17504 | s%@WX_LIBRARY_NAME_SHARED@%$WX_LIBRARY_NAME_SHARED%g | |
17505 | s%@WX_LIBRARY@%$WX_LIBRARY%g | |
17506 | s%@WX_TARGET_LIBRARY@%$WX_TARGET_LIBRARY%g | |
17507 | s%@WX_LIBRARY_LINK1@%$WX_LIBRARY_LINK1%g | |
17508 | s%@WX_LIBRARY_LINK2@%$WX_LIBRARY_LINK2%g | |
17509 | s%@WX_LIBRARY_LINK3@%$WX_LIBRARY_LINK3%g | |
17510 | s%@PROGRAM_EXT@%$PROGRAM_EXT%g | |
17511 | s%@WX_LIBRARY_NAME_GL@%$WX_LIBRARY_NAME_GL%g | |
17512 | s%@WX_LIBRARY_NAME_STATIC_GL@%$WX_LIBRARY_NAME_STATIC_GL%g | |
17513 | s%@WX_LIBRARY_NAME_SHARED_GL@%$WX_LIBRARY_NAME_SHARED_GL%g | |
17514 | s%@WX_LIBRARY_GL@%$WX_LIBRARY_GL%g | |
17515 | s%@WX_TARGET_LIBRARY_GL@%$WX_TARGET_LIBRARY_GL%g | |
17516 | s%@WX_LIBRARY_LINK1_GL@%$WX_LIBRARY_LINK1_GL%g | |
17517 | s%@WX_LIBRARY_LINK2_GL@%$WX_LIBRARY_LINK2_GL%g | |
17518 | s%@WX_LIBRARY_LINK3_GL@%$WX_LIBRARY_LINK3_GL%g | |
17519 | s%@WX_ALL@%$WX_ALL%g | |
17520 | s%@WX_ALL_INSTALLED@%$WX_ALL_INSTALLED%g | |
17521 | s%@SHARED_LD@%$SHARED_LD%g | |
17522 | s%@PIC_FLAG@%$PIC_FLAG%g | |
17523 | s%@DEP_INFO_FLAGS@%$DEP_INFO_FLAGS%g | |
17524 | s%@CODE_GEN_FLAGS@%$CODE_GEN_FLAGS%g | |
17525 | s%@CODE_GEN_FLAGS_CXX@%$CODE_GEN_FLAGS_CXX%g | |
17526 | s%@BURNT_LIBRARY_NAME@%$BURNT_LIBRARY_NAME%g | |
17527 | s%@BURNT_LIBRARY_NAME_GL@%$BURNT_LIBRARY_NAME_GL%g | |
17528 | s%@WX_TARGET_LIBRARY_SONAME@%$WX_TARGET_LIBRARY_SONAME%g | |
17529 | s%@WX_TARGET_LIBRARY_TYPE@%$WX_TARGET_LIBRARY_TYPE%g | |
17530 | s%@WXDEBUG_DEFINE@%$WXDEBUG_DEFINE%g | |
17531 | s%@USE_GUI@%$USE_GUI%g | |
17532 | s%@AFMINSTALL@%$AFMINSTALL%g | |
1e6feb95 | 17533 | s%@SETUPH_DIR@%$SETUPH_DIR%g |
698dcdb6 VZ |
17534 | s%@TOOLKIT@%$TOOLKIT%g |
17535 | s%@TOOLKIT_DEF@%$TOOLKIT_DEF%g | |
17536 | s%@TOOLKIT_DIR@%$TOOLKIT_DIR%g | |
17537 | s%@TOOLKIT_NAME@%$TOOLKIT_NAME%g | |
17538 | s%@TOOLKIT_INCLUDE@%$TOOLKIT_INCLUDE%g | |
1e6feb95 | 17539 | s%@TOOLKIT_VPATH@%$TOOLKIT_VPATH%g |
698dcdb6 VZ |
17540 | s%@WXCONFIG_INCLUDE@%$WXCONFIG_INCLUDE%g |
17541 | s%@ALL_OBJECTS@%$ALL_OBJECTS%g | |
17542 | s%@ALL_DEPFILES@%$ALL_DEPFILES%g | |
17543 | s%@GUIDIST@%$GUIDIST%g | |
17544 | s%@PORT_FILES@%$PORT_FILES%g | |
17545 | s%@DISTDIR@%$DISTDIR%g | |
17546 | s%@RPM_SPEC@%$RPM_SPEC%g | |
17547 | s%@RPM_FILES@%$RPM_FILES%g | |
17548 | s%@SRC_SUBDIRS@%$SRC_SUBDIRS%g | |
17549 | s%@INCLUDE_SUBDIRS@%$INCLUDE_SUBDIRS%g | |
17550 | s%@UTILS_SUBDIRS@%$UTILS_SUBDIRS%g | |
17551 | s%@DOCS_SUBDIRS@%$DOCS_SUBDIRS%g | |
17552 | s%@SAMPLES_SUBDIRS@%$SAMPLES_SUBDIRS%g | |
17553 | s%@USER_SUBDIRS@%$USER_SUBDIRS%g | |
17554 | s%@EXTRA_LIBS@%$EXTRA_LIBS%g | |
17555 | s%@OPENGL_LIBS@%$OPENGL_LIBS%g | |
17556 | s%@EXTRADEFS@%$EXTRADEFS%g | |
17557 | s%@LD_LIBS@%$LD_LIBS%g | |
17558 | s%@RCINPUTSWITCH@%$RCINPUTSWITCH%g | |
17559 | s%@RCOUTPUTSWITCH@%$RCOUTPUTSWITCH%g | |
17560 | s%@RESPROGRAM@%$RESPROGRAM%g | |
17561 | s%@RESCOMP@%$RESCOMP%g | |
17562 | s%@RESFLAGS@%$RESFLAGS%g | |
17563 | s%@REZFLAGS@%$REZFLAGS%g | |
17564 | s%@DEREZFLAGS@%$DEREZFLAGS%g | |
17565 | s%@LIBWXMACRES@%$LIBWXMACRES%g | |
17566 | s%@LIBWXMACRESCOMP@%$LIBWXMACRESCOMP%g | |
17567 | s%@DLLTOOL@%$DLLTOOL%g | |
17568 | s%@AS@%$AS%g | |
17569 | s%@NM@%$NM%g | |
17570 | s%@LD@%$LD%g | |
17571 | s%@MAKEINFO@%$MAKEINFO%g | |
17572 | s%@SET_MAKE@%$SET_MAKE%g | |
17573 | s%@subdirs@%$subdirs%g | |
1e487827 | 17574 | |
1e487827 | 17575 | CEOF |
1e487827 VS |
17576 | EOF |
17577 | ||
698dcdb6 VZ |
17578 | cat >> $CONFIG_STATUS <<\EOF |
17579 | ||
17580 | # Split the substitutions into bite-sized pieces for seds with | |
17581 | # small command number limits, like on Digital OSF/1 and HP-UX. | |
17582 | ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script. | |
17583 | ac_file=1 # Number of current file. | |
17584 | ac_beg=1 # First line for current file. | |
17585 | ac_end=$ac_max_sed_cmds # Line after last line for current file. | |
17586 | ac_more_lines=: | |
17587 | ac_sed_cmds="" | |
17588 | while $ac_more_lines; do | |
17589 | if test $ac_beg -gt 1; then | |
17590 | sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file | |
17591 | else | |
17592 | sed "${ac_end}q" conftest.subs > conftest.s$ac_file | |
17593 | fi | |
17594 | if test ! -s conftest.s$ac_file; then | |
17595 | ac_more_lines=false | |
17596 | rm -f conftest.s$ac_file | |
17597 | else | |
17598 | if test -z "$ac_sed_cmds"; then | |
17599 | ac_sed_cmds="sed -f conftest.s$ac_file" | |
10f2d63a | 17600 | else |
698dcdb6 | 17601 | ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file" |
10f2d63a | 17602 | fi |
698dcdb6 VZ |
17603 | ac_file=`expr $ac_file + 1` |
17604 | ac_beg=$ac_end | |
17605 | ac_end=`expr $ac_end + $ac_max_sed_cmds` | |
10f2d63a | 17606 | fi |
698dcdb6 VZ |
17607 | done |
17608 | if test -z "$ac_sed_cmds"; then | |
17609 | ac_sed_cmds=cat | |
17610 | fi | |
17611 | EOF | |
10f2d63a | 17612 | |
698dcdb6 VZ |
17613 | cat >> $CONFIG_STATUS <<EOF |
17614 | ||
17615 | CONFIG_FILES=\${CONFIG_FILES-"wx-config | |
17616 | src/make.env | |
17617 | src/makeprog.env | |
17618 | src/makelib.env | |
17619 | Makefile | |
17620 | "} | |
10f2d63a | 17621 | EOF |
698dcdb6 VZ |
17622 | cat >> $CONFIG_STATUS <<\EOF |
17623 | for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then | |
10f2d63a | 17624 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
698dcdb6 VZ |
17625 | case "$ac_file" in |
17626 | *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` | |
17627 | ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; | |
17628 | *) ac_file_in="${ac_file}.in" ;; | |
10f2d63a VZ |
17629 | esac |
17630 | ||
698dcdb6 | 17631 | # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories. |
1e487827 | 17632 | |
698dcdb6 VZ |
17633 | # Remove last slash and all that follows it. Not all systems have dirname. |
17634 | ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` | |
17635 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then | |
17636 | # The file is in a subdirectory. | |
17637 | test ! -d "$ac_dir" && mkdir "$ac_dir" | |
17638 | ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`" | |
10f2d63a | 17639 | # A "../" for each directory in $ac_dir_suffix. |
698dcdb6 | 17640 | ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'` |
10f2d63a VZ |
17641 | else |
17642 | ac_dir_suffix= ac_dots= | |
17643 | fi | |
17644 | ||
698dcdb6 VZ |
17645 | case "$ac_given_srcdir" in |
17646 | .) srcdir=. | |
17647 | if test -z "$ac_dots"; then top_srcdir=. | |
17648 | else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;; | |
17649 | /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;; | |
10f2d63a | 17650 | *) # Relative path. |
698dcdb6 VZ |
17651 | srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix" |
17652 | top_srcdir="$ac_dots$ac_given_srcdir" ;; | |
10f2d63a VZ |
17653 | esac |
17654 | ||
698dcdb6 VZ |
17655 | case "$ac_given_INSTALL" in |
17656 | [/$]*) INSTALL="$ac_given_INSTALL" ;; | |
17657 | *) INSTALL="$ac_dots$ac_given_INSTALL" ;; | |
10f2d63a VZ |
17658 | esac |
17659 | ||
698dcdb6 VZ |
17660 | echo creating "$ac_file" |
17661 | rm -f "$ac_file" | |
17662 | configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure." | |
17663 | case "$ac_file" in | |
17664 | *Makefile*) ac_comsub="1i\\ | |
17665 | # $configure_input" ;; | |
17666 | *) ac_comsub= ;; | |
17667 | esac | |
10f2d63a | 17668 | |
698dcdb6 VZ |
17669 | ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` |
17670 | sed -e "$ac_comsub | |
17671 | s%@configure_input@%$configure_input%g | |
17672 | s%@srcdir@%$srcdir%g | |
17673 | s%@top_srcdir@%$top_srcdir%g | |
17674 | s%@INSTALL@%$INSTALL%g | |
17675 | " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file | |
17676 | fi; done | |
17677 | rm -f conftest.s* | |
10f2d63a VZ |
17678 | |
17679 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where | |
17680 | # NAME is the cpp macro being defined and VALUE is the value it is being given. | |
17681 | # | |
17682 | # ac_d sets the value in "#define NAME VALUE" lines. | |
698dcdb6 VZ |
17683 | ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)' |
17684 | ac_dB='\([ ][ ]*\)[^ ]*%\1#\2' | |
17685 | ac_dC='\3' | |
17686 | ac_dD='%g' | |
17687 | # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE". | |
17688 | ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' | |
17689 | ac_uB='\([ ]\)%\1#\2define\3' | |
10f2d63a | 17690 | ac_uC=' ' |
698dcdb6 VZ |
17691 | ac_uD='\4%g' |
17692 | # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE". | |
17693 | ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' | |
17694 | ac_eB='$%\1#\2define\3' | |
17695 | ac_eC=' ' | |
17696 | ac_eD='%g' | |
10f2d63a | 17697 | |
698dcdb6 VZ |
17698 | if test "${CONFIG_HEADERS+set}" != set; then |
17699 | EOF | |
17700 | cat >> $CONFIG_STATUS <<EOF | |
17701 | CONFIG_HEADERS="setup.h:setup.h.in" | |
17702 | EOF | |
17703 | cat >> $CONFIG_STATUS <<\EOF | |
17704 | fi | |
17705 | for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then | |
10f2d63a | 17706 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
698dcdb6 VZ |
17707 | case "$ac_file" in |
17708 | *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` | |
17709 | ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; | |
17710 | *) ac_file_in="${ac_file}.in" ;; | |
10f2d63a VZ |
17711 | esac |
17712 | ||
698dcdb6 VZ |
17713 | echo creating $ac_file |
17714 | ||
17715 | rm -f conftest.frag conftest.in conftest.out | |
17716 | ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` | |
17717 | cat $ac_file_inputs > conftest.in | |
17718 | ||
17719 | EOF | |
17720 | ||
17721 | # Transform confdefs.h into a sed script conftest.vals that substitutes | |
17722 | # the proper values into config.h.in to produce config.h. And first: | |
17723 | # Protect against being on the right side of a sed subst in config.status. | |
17724 | # Protect against being in an unquoted here document in config.status. | |
17725 | rm -f conftest.vals | |
17726 | cat > conftest.hdr <<\EOF | |
17727 | s/[\\&%]/\\&/g | |
17728 | s%[\\$`]%\\&%g | |
17729 | s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp | |
17730 | s%ac_d%ac_u%gp | |
17731 | s%ac_u%ac_e%gp | |
17732 | EOF | |
17733 | sed -n -f conftest.hdr confdefs.h > conftest.vals | |
17734 | rm -f conftest.hdr | |
10f2d63a VZ |
17735 | |
17736 | # This sed command replaces #undef with comments. This is necessary, for | |
17737 | # example, in the case of _POSIX_SOURCE, which is predefined and required | |
17738 | # on some systems where configure will not decide to define it. | |
698dcdb6 VZ |
17739 | cat >> conftest.vals <<\EOF |
17740 | s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */% | |
10f2d63a VZ |
17741 | EOF |
17742 | ||
698dcdb6 VZ |
17743 | # Break up conftest.vals because some shells have a limit on |
17744 | # the size of here documents, and old seds have small limits too. | |
10f2d63a VZ |
17745 | |
17746 | rm -f conftest.tail | |
698dcdb6 | 17747 | while : |
10f2d63a | 17748 | do |
698dcdb6 VZ |
17749 | ac_lines=`grep -c . conftest.vals` |
17750 | # grep -c gives empty output for an empty file on some AIX systems. | |
17751 | if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi | |
17752 | # Write a limited-size here document to conftest.frag. | |
17753 | echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS | |
17754 | sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS | |
10f2d63a | 17755 | echo 'CEOF |
698dcdb6 VZ |
17756 | sed -f conftest.frag conftest.in > conftest.out |
17757 | rm -f conftest.in | |
17758 | mv conftest.out conftest.in | |
17759 | ' >> $CONFIG_STATUS | |
17760 | sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail | |
17761 | rm -f conftest.vals | |
17762 | mv conftest.tail conftest.vals | |
10f2d63a | 17763 | done |
698dcdb6 VZ |
17764 | rm -f conftest.vals |
17765 | ||
17766 | cat >> $CONFIG_STATUS <<\EOF | |
17767 | rm -f conftest.frag conftest.h | |
17768 | echo "/* $ac_file. Generated automatically by configure. */" > conftest.h | |
17769 | cat conftest.in >> conftest.h | |
17770 | rm -f conftest.in | |
17771 | if cmp -s $ac_file conftest.h 2>/dev/null; then | |
17772 | echo "$ac_file is unchanged" | |
17773 | rm -f conftest.h | |
10f2d63a | 17774 | else |
698dcdb6 VZ |
17775 | # Remove last slash and all that follows it. Not all systems have dirname. |
17776 | ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` | |
10f2d63a | 17777 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then |
698dcdb6 VZ |
17778 | # The file is in a subdirectory. |
17779 | test ! -d "$ac_dir" && mkdir "$ac_dir" | |
10f2d63a | 17780 | fi |
698dcdb6 VZ |
17781 | rm -f $ac_file |
17782 | mv conftest.h $ac_file | |
10f2d63a | 17783 | fi |
698dcdb6 VZ |
17784 | fi; done |
17785 | ||
10f2d63a | 17786 | EOF |
698dcdb6 | 17787 | cat >> $CONFIG_STATUS <<EOF |
10f2d63a | 17788 | |
1e6feb95 | 17789 | SETUPH_DIR="${SETUPH_DIR}" |
698dcdb6 VZ |
17790 | TOOLKIT_NAME="${TOOLKIT_NAME}" |
17791 | LN_S="${LN_S}" | |
17792 | ||
17793 | ||
17794 | EOF | |
17795 | cat >> $CONFIG_STATUS <<\EOF | |
10f2d63a | 17796 | |
6ef41520 | 17797 | if test ! -f wx${TOOLKIT_NAME}-config; then |
991a5759 VZ |
17798 | chmod +x wx-config |
17799 | mv wx-config wx${TOOLKIT_NAME}-config | |
17800 | ${LN_S} wx${TOOLKIT_NAME}-config wx-config | |
17801 | fi | |
665bbe97 | 17802 | |
698dcdb6 | 17803 | |
00cf1208 RR |
17804 | if test ! -d lib; then |
17805 | mkdir lib | |
17806 | fi | |
17807 | if test ! -d lib/wx; then | |
17808 | mkdir lib/wx | |
17809 | fi | |
17810 | if test ! -d lib/wx/include; then | |
17811 | mkdir lib/wx/include | |
17812 | fi | |
17813 | if test ! -d lib/wx/include/wx; then | |
17814 | mkdir lib/wx/include/wx | |
17815 | fi | |
f6bcfd97 BP |
17816 | if test ! -d lib/wx/include/wx/${TOOLKIT_NAME}; then |
17817 | mkdir lib/wx/include/wx/${TOOLKIT_NAME} | |
00cf1208 RR |
17818 | fi |
17819 | if test -f setup.h; then | |
066b00aa | 17820 | cp -fp setup.h lib/wx/include/wx/${TOOLKIT_NAME}/setup.h |
00cf1208 | 17821 | fi |
07eb77a6 | 17822 | |
698dcdb6 | 17823 | |
10f2d63a VZ |
17824 | if test ! -d include; then |
17825 | mkdir include | |
17826 | fi | |
17827 | if test ! -d include/wx; then | |
17828 | mkdir include/wx | |
17829 | fi | |
1e6feb95 VZ |
17830 | if test ! -d include/wx/${SETUPH_DIR}; then |
17831 | mkdir include/wx/${SETUPH_DIR} | |
10f2d63a | 17832 | fi |
afc31813 | 17833 | if test -f setup.h; then |
1e6feb95 | 17834 | cp -fp setup.h include/wx/${SETUPH_DIR}/setup.h |
afc31813 | 17835 | fi |
665bbe97 | 17836 | |
698dcdb6 VZ |
17837 | |
17838 | exit 0 | |
10f2d63a VZ |
17839 | EOF |
17840 | chmod +x $CONFIG_STATUS | |
698dcdb6 VZ |
17841 | rm -fr confdefs* $ac_clean_files |
17842 | test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1 | |
10f2d63a | 17843 | |
2224580a VZ |
17844 | if test "$no_recursion" != yes; then |
17845 | ||
17846 | # Remove --cache-file and --srcdir arguments so they do not pile up. | |
17847 | ac_sub_configure_args= | |
17848 | ac_prev= | |
17849 | for ac_arg in $ac_configure_args; do | |
17850 | if test -n "$ac_prev"; then | |
17851 | ac_prev= | |
17852 | continue | |
17853 | fi | |
698dcdb6 | 17854 | case "$ac_arg" in |
2224580a VZ |
17855 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
17856 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
17857 | ac_prev=cache_file ;; | |
17858 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
698dcdb6 | 17859 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
2224580a VZ |
17860 | ;; |
17861 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
17862 | ac_prev=srcdir ;; | |
17863 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
17864 | ;; | |
17865 | *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;; | |
17866 | esac | |
17867 | done | |
17868 | ||
698dcdb6 | 17869 | for ac_config_dir in demos samples utils contrib; do |
2224580a VZ |
17870 | |
17871 | # Do not complain, so a configure script can configure whichever | |
17872 | # parts of a large source tree are present. | |
698dcdb6 VZ |
17873 | if test ! -d $srcdir/$ac_config_dir; then |
17874 | continue | |
17875 | fi | |
17876 | ||
17877 | echo configuring in $ac_config_dir | |
2224580a | 17878 | |
698dcdb6 | 17879 | case "$srcdir" in |
2224580a VZ |
17880 | .) ;; |
17881 | *) | |
698dcdb6 VZ |
17882 | if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :; |
17883 | else | |
17884 | { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; } | |
17885 | fi | |
17886 | ;; | |
2224580a VZ |
17887 | esac |
17888 | ||
17889 | ac_popdir=`pwd` | |
698dcdb6 | 17890 | cd $ac_config_dir |
2224580a | 17891 | |
698dcdb6 VZ |
17892 | # A "../" for each directory in /$ac_config_dir. |
17893 | ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'` | |
2224580a | 17894 | |
698dcdb6 | 17895 | case "$srcdir" in |
2224580a VZ |
17896 | .) # No --srcdir option. We are building in place. |
17897 | ac_sub_srcdir=$srcdir ;; | |
698dcdb6 VZ |
17898 | /*) # Absolute path. |
17899 | ac_sub_srcdir=$srcdir/$ac_config_dir ;; | |
2224580a | 17900 | *) # Relative path. |
698dcdb6 | 17901 | ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;; |
2224580a VZ |
17902 | esac |
17903 | ||
17904 | # Check for guested configure; otherwise get Cygnus style configure. | |
698dcdb6 VZ |
17905 | if test -f $ac_sub_srcdir/configure; then |
17906 | ac_sub_configure=$ac_sub_srcdir/configure | |
2224580a VZ |
17907 | elif test -f $ac_sub_srcdir/configure.in; then |
17908 | ac_sub_configure=$ac_configure | |
17909 | else | |
698dcdb6 | 17910 | echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2 |
2224580a VZ |
17911 | ac_sub_configure= |
17912 | fi | |
17913 | ||
17914 | # The recursion is here. | |
17915 | if test -n "$ac_sub_configure"; then | |
698dcdb6 | 17916 | |
2224580a | 17917 | # Make the cache file name correct relative to the subdirectory. |
698dcdb6 VZ |
17918 | case "$cache_file" in |
17919 | /*) ac_sub_cache_file=$cache_file ;; | |
2224580a | 17920 | *) # Relative path. |
698dcdb6 | 17921 | ac_sub_cache_file="$ac_dots$cache_file" ;; |
2224580a | 17922 | esac |
698dcdb6 VZ |
17923 | case "$ac_given_INSTALL" in |
17924 | [/$]*) INSTALL="$ac_given_INSTALL" ;; | |
17925 | *) INSTALL="$ac_dots$ac_given_INSTALL" ;; | |
17926 | esac | |
2224580a | 17927 | |
698dcdb6 | 17928 | echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir" |
2224580a | 17929 | # The eval makes quoting arguments work. |
698dcdb6 VZ |
17930 | if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir |
17931 | then : | |
17932 | else | |
17933 | { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; } | |
17934 | fi | |
2224580a VZ |
17935 | fi |
17936 | ||
17937 | cd $ac_popdir | |
17938 | done | |
17939 | fi | |
17940 | ||
698dcdb6 | 17941 |