]> git.saurik.com Git - wxWidgets.git/blame - configure
Whate are these still doing here? They shoul dhav ebeen removed 2
[wxWidgets.git] / configure
CommitLineData
10f2d63a
VZ
1#! /bin/sh
2
698dcdb6 3# From configure.in Id: configure.in
703e0a69
VZ
4
5
6
7
90dd450c
VZ
8
9
10
11
12
13
14
15
703e0a69 16
703e0a69
VZ
17
18
1e487827 19
1e487827 20
698dcdb6
VZ
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
b040e242
VS
49
50
51
986ecc86
VZ
52
53
54
b040e242
VS
55
56
57
58
9e691f46
VZ
59# Configure paths for GTK+
60# Owen Taylor 1997-2001
b040e242
VS
61
62
63
64# Configure paths for GTK+
65# Owen Taylor 97-11-3
698dcdb6 66
698dcdb6
VZ
67
68
69# Guess values for system-dependent variables and create Makefiles.
70# Generated automatically using autoconf version 2.13
71# Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
72#
73# This configure script is free software; the Free Software Foundation
74# gives unlimited permission to copy, distribute and modify it.
75
76# Defaults:
77ac_help=
78ac_default_prefix=/usr/local
79# Any additions from configure.in:
80ac_help="$ac_help
8168de4c 81 --enable-gui use GUI classes"
1e6feb95 82ac_help="$ac_help
8168de4c 83 --enable-universal use wxWindows GUI controls instead of native ones"
698dcdb6
VZ
84ac_help="$ac_help
85 --with-gtk use GTK+"
86ac_help="$ac_help
87 --with-motif use Motif/Lesstif"
88ac_help="$ac_help
89 --with-mac use Mac OS X"
90ac_help="$ac_help
91 --with-wine use WINE"
92ac_help="$ac_help
77e13408 93 --with-msw use MS-Windows"
698dcdb6
VZ
94ac_help="$ac_help
95 --with-pm use OS/2 Presentation Manager"
1e6feb95 96ac_help="$ac_help
b3e8d00a 97 --with-mgl use SciTech MGL"
1725144d
RR
98ac_help="$ac_help
99 --with-microwin use MicroWindows"
f79bd02d
JS
100ac_help="$ac_help
101 --with-x11 use X11"
d8356fa3
VZ
102ac_help="$ac_help
103 --enable-nanox use NanoX"
698dcdb6 104ac_help="$ac_help
8168de4c 105 --enable-gtk2 use GTK+ 2.0 if available (EXPERIMENTAL)"
698dcdb6 106ac_help="$ac_help
8168de4c 107 --with-libpng use libpng (PNG image format)"
698dcdb6 108ac_help="$ac_help
8168de4c 109 --with-libjpeg use libjpeg (JPEG file format)"
698dcdb6 110ac_help="$ac_help
8168de4c 111 --with-libtiff use libtiff (TIFF file format)"
698dcdb6 112ac_help="$ac_help
8168de4c 113 --with-opengl use OpenGL (or Mesa)"
698dcdb6 114ac_help="$ac_help
d0e9b150 115 --with-dmalloc use dmalloc library (http://dmalloc.com/)"
3e44f09d
VZ
116ac_help="$ac_help
117 --with-regex enable support for wxRegEx class"
698dcdb6 118ac_help="$ac_help
8168de4c 119 --with-zlib use zlib for LZW compression"
698dcdb6 120ac_help="$ac_help
8168de4c 121 --with-odbc use the IODBC and wxODBC classes"
698dcdb6 122ac_help="$ac_help
8168de4c 123 --enable-shared create shared library code"
698dcdb6 124ac_help="$ac_help
3a922bb4 125 --enable-soname set the DT_SONAME field in ELF shared libraries"
698dcdb6 126ac_help="$ac_help
8168de4c 127 --enable-optimise create optimised code"
698dcdb6 128ac_help="$ac_help
8168de4c 129 --enable-debug same as debug_flag and debug_info"
683dccda
GD
130ac_help="$ac_help
131 --enable-precomp enable use of precompiled headers (Mac OS X)"
698dcdb6 132ac_help="$ac_help
8168de4c 133 --enable-debug_flag set __WXDEBUG__ flag (recommended for developers!)"
698dcdb6 134ac_help="$ac_help
8168de4c 135 --enable-debug_info create code with debugging information"
698dcdb6 136ac_help="$ac_help
8168de4c 137 --enable-debug_gdb create code with extra GDB debugging information"
698dcdb6 138ac_help="$ac_help
8168de4c 139 --enable-debug_cntxt use wxDebugContext"
698dcdb6 140ac_help="$ac_help
8168de4c 141 --enable-mem_tracing create code with memory tracing"
698dcdb6 142ac_help="$ac_help
8168de4c 143 --enable-profile create code with profiling information"
698dcdb6 144ac_help="$ac_help
8168de4c 145 --enable-no_rtti create code without RTTI information"
698dcdb6 146ac_help="$ac_help
b3e8d00a 147 --enable-no_exceptions create code without C++ exceptions handling"
698dcdb6 148ac_help="$ac_help
8168de4c 149 --enable-permissive compile code disregarding strict ANSI"
698dcdb6 150ac_help="$ac_help
8168de4c 151 --enable-no_deps create code without dependency information"
54276ccf 152ac_help="$ac_help
b3e8d00a 153 --enable-compat20 enable wxWindows 2.0 compatibility"
54276ccf 154ac_help="$ac_help
0c9a1c32 155 --disable-compat22 disable wxWindows 2.2 compatibility"
698dcdb6 156ac_help="$ac_help
8168de4c 157 --enable-intl use internationalization system"
698dcdb6 158ac_help="$ac_help
8168de4c 159 --enable-config use wxConfig (and derived) classes"
a1622950
VZ
160ac_help="$ac_help
161 --enable-protocols use wxProtocol and derived classes"
162ac_help="$ac_help
163 --enable-ftp use wxFTP (requires wxProtocol"
164ac_help="$ac_help
165 --enable-http use wxHTTP (requires wxProtocol"
166ac_help="$ac_help
167 --enable-fileproto use wxFileProto class (requires wxProtocol"
698dcdb6 168ac_help="$ac_help
8168de4c 169 --enable-sockets use socket/network classes"
698dcdb6 170ac_help="$ac_help
8168de4c 171 --enable-ipc use interprocess communication (wxSocket etc.)"
698dcdb6 172ac_help="$ac_help
8168de4c 173 --enable-cmdline use wxCmdLineParser class"
1e6feb95 174ac_help="$ac_help
8168de4c 175 --enable-datetime use wxDateTime class"
1e6feb95 176ac_help="$ac_help
8168de4c 177 --enable-timedate use obsolete wxDate/wxTime classes"
1e6feb95 178ac_help="$ac_help
8168de4c 179 --enable-stopwatch use wxStopWatch class"
1e6feb95 180ac_help="$ac_help
8168de4c 181 --enable-dialupman use dialup network classes"
698dcdb6 182ac_help="$ac_help
8168de4c 183 --enable-apple_ieee use the Apple IEEE codec"
698dcdb6 184ac_help="$ac_help
8168de4c 185 --enable-timer use wxTimer class"
698dcdb6 186ac_help="$ac_help
8168de4c 187 --enable-wave use wxWave class"
698dcdb6 188ac_help="$ac_help
8168de4c 189 --enable-fraction use wxFraction class"
698dcdb6 190ac_help="$ac_help
8168de4c 191 --enable-dynlib use wxLibrary class for DLL loading"
0b9ab0bd
RL
192ac_help="$ac_help
193 --enable-dynamicloader use (new) wxDynamicLibrary class"
698dcdb6 194ac_help="$ac_help
8168de4c 195 --enable-longlong use wxLongLong class"
698dcdb6 196ac_help="$ac_help
8168de4c 197 --enable-geometry use geometry class"
698dcdb6 198ac_help="$ac_help
8168de4c 199 --enable-log use logging system"
698dcdb6 200ac_help="$ac_help
8168de4c 201 --enable-streams use wxStream etc classes"
698dcdb6 202ac_help="$ac_help
8168de4c 203 --enable-file use wxFile classes"
698dcdb6 204ac_help="$ac_help
8168de4c 205 --enable-ffile use wxFFile classes"
1e6feb95 206ac_help="$ac_help
a3a584a7
VZ
207 --enable-textbuf use wxTextBuffer class"
208ac_help="$ac_help
209 --enable-textfile use wxTextFile class"
698dcdb6 210ac_help="$ac_help
8168de4c 211 --enable-fontmap use font encodings conversion classes"
1e6feb95 212ac_help="$ac_help
8168de4c 213 --enable-unicode compile wxString with Unicode support"
a72a4bfa
VS
214ac_help="$ac_help
215 --enable-mslu use MS Layer for Unicode on Windows 9x (win32 only)"
698dcdb6 216ac_help="$ac_help
8168de4c 217 --enable-wxprintfv use wxWindows implementation of vprintf()"
698dcdb6 218ac_help="$ac_help
8168de4c 219 --enable-std_iostreams use standard C++ stream classes"
698dcdb6 220ac_help="$ac_help
8168de4c 221 --enable-filesystem use virtual file systems classes"
698dcdb6 222ac_help="$ac_help
8168de4c 223 --enable-fs_inet use virtual HTTP/FTP filesystems"
698dcdb6 224ac_help="$ac_help
8168de4c 225 --enable-fs_zip use virtual ZIP filesystems"
698dcdb6 226ac_help="$ac_help
8168de4c 227 --enable-zipstream use wxZipInputStream"
698dcdb6 228ac_help="$ac_help
8168de4c 229 --enable-catch_segvs catch signals and pass them to wxApp::OnFatalException"
698dcdb6 230ac_help="$ac_help
8168de4c 231 --enable-snglinst use wxSingleInstanceChecker class"
698dcdb6 232ac_help="$ac_help
69d27ff7 233 --enable-mimetype use wxMimeTypesManager"
3e44f09d 234ac_help="$ac_help
b3e8d00a 235 --enable-sysoptions use wxSystemOptions"
4cdb0ab0
VS
236ac_help="$ac_help
237 --enable-url use wxURL class"
238ac_help="$ac_help
239 --enable-protocol use wxProtocol class"
240ac_help="$ac_help
241 --enable-protocol-http HTTP support in wxProtocol"
242ac_help="$ac_help
243 --enable-protocol-ftp FTP support in wxProtocol"
244ac_help="$ac_help
245 --enable-protocol-file FILE support in wxProtocol"
1e6feb95 246ac_help="$ac_help
8168de4c 247 --enable-threads use threads"
698dcdb6 248ac_help="$ac_help
8168de4c 249 --enable-docview use document view architecture"
698dcdb6 250ac_help="$ac_help
3379ed37 251 --enable-help use help subsystem"
29fd3c0c
VS
252ac_help="$ac_help
253 --enable-mshtmlhelp use MS HTML Help (win32)"
3379ed37
VZ
254ac_help="$ac_help
255 --enable-html use wxHTML sub-library"
256ac_help="$ac_help
257 --enable-htmlhelp use wxHTML-based help"
698dcdb6 258ac_help="$ac_help
8168de4c 259 --enable-constraints use layout-constraints system"
698dcdb6 260ac_help="$ac_help
8168de4c 261 --enable-printarch use printing architecture"
698dcdb6 262ac_help="$ac_help
8168de4c 263 --enable-mdi use multiple document interface architecture"
698dcdb6 264ac_help="$ac_help
8168de4c 265 --enable-loggui use standard GUI logger"
1e6feb95 266ac_help="$ac_help
8168de4c 267 --enable-logwin use wxLogWindow"
69d27ff7
MB
268ac_help="$ac_help
269 --enable-logdialog use wxLogDialog"
1e6feb95 270ac_help="$ac_help
8168de4c 271 --enable-postscript use wxPostscriptDC device context (default for gtk+)"
698dcdb6 272ac_help="$ac_help
8168de4c 273 --enable-prologio use Prolog IO library"
698dcdb6 274ac_help="$ac_help
8168de4c 275 --enable-resources use wxWindows resources"
698dcdb6 276ac_help="$ac_help
8168de4c 277 --enable-xresources use X resources for save (default for gtk+)"
698dcdb6 278ac_help="$ac_help
8168de4c 279 --enable-clipboard use wxClipboard classes"
698dcdb6 280ac_help="$ac_help
8168de4c 281 --enable-dnd use Drag'n'Drop classes"
698dcdb6 282ac_help="$ac_help
8168de4c 283 --enable-metafile use win32 metafiles"
698dcdb6 284ac_help="$ac_help
24176f2c 285 --enable-treelayout use wxTreeLayout classes"
698dcdb6 286ac_help="$ac_help
8168de4c 287 --enable-controls use all usual controls"
698dcdb6 288ac_help="$ac_help
8168de4c 289 --enable-accel use accelerators"
698dcdb6 290ac_help="$ac_help
8168de4c 291 --enable-button use wxButton class"
698dcdb6 292ac_help="$ac_help
8168de4c 293 --enable-bmpbutton use wxBitmapButton class"
698dcdb6 294ac_help="$ac_help
8168de4c 295 --enable-calendar use wxCalendarCtrl class"
1e6feb95 296ac_help="$ac_help
8168de4c 297 --enable-caret use wxCaret class"
1e6feb95 298ac_help="$ac_help
8168de4c 299 --enable-checkbox use wxCheckBox class"
698dcdb6 300ac_help="$ac_help
8168de4c 301 --enable-checklst use wxCheckListBox (listbox with checkboxes) class"
698dcdb6 302ac_help="$ac_help
8168de4c 303 --enable-choice use wxChoice class"
698dcdb6 304ac_help="$ac_help
8168de4c 305 --enable-combobox use wxComboBox classes"
698dcdb6 306ac_help="$ac_help
8168de4c 307 --enable-gauge use wxGauge class"
698dcdb6 308ac_help="$ac_help
8168de4c 309 --enable-grid use wxGrid class"
698dcdb6 310ac_help="$ac_help
8168de4c 311 --enable-newgrid use new wxGrid class"
698dcdb6 312ac_help="$ac_help
8168de4c 313 --enable-imaglist use wxImageList class"
698dcdb6 314ac_help="$ac_help
8168de4c 315 --enable-listbox use wxListBox class"
698dcdb6 316ac_help="$ac_help
8168de4c 317 --enable-listctrl use wxListCtrl class"
698dcdb6 318ac_help="$ac_help
8168de4c 319 --enable-notebook use wxNotebook class"
24176f2c
GD
320ac_help="$ac_help
321 --enable-propsheet use wxPropertySheet class"
698dcdb6 322ac_help="$ac_help
8168de4c 323 --enable-radiobox use wxRadioBox class"
698dcdb6 324ac_help="$ac_help
8168de4c 325 --enable-radiobtn use wxRadioButton class"
698dcdb6 326ac_help="$ac_help
8168de4c 327 --enable-sash use wxSashWindow class"
698dcdb6 328ac_help="$ac_help
8168de4c 329 --enable-scrollbar use wxScrollBar class and scrollable windows"
698dcdb6 330ac_help="$ac_help
8168de4c 331 --enable-slider use wxSlider class"
698dcdb6 332ac_help="$ac_help
8168de4c 333 --enable-spinbtn use wxSpinButton class"
698dcdb6 334ac_help="$ac_help
8168de4c 335 --enable-spinctrl use wxSpinCtrl class"
698dcdb6 336ac_help="$ac_help
8168de4c 337 --enable-splitter use wxSplitterWindow class"
698dcdb6 338ac_help="$ac_help
8168de4c 339 --enable-statbmp use wxStaticBitmap class"
698dcdb6 340ac_help="$ac_help
8168de4c 341 --enable-statbox use wxStaticBox class"
698dcdb6 342ac_help="$ac_help
8168de4c 343 --enable-statline use wxStaticLine class"
698dcdb6 344ac_help="$ac_help
8168de4c 345 --enable-stattext use wxStaticText class"
1e6feb95 346ac_help="$ac_help
8168de4c 347 --enable-statusbar use wxStatusBar class"
698dcdb6 348ac_help="$ac_help
8168de4c 349 --enable-tabdialog use wxTabControl class"
698dcdb6 350ac_help="$ac_help
8168de4c 351 --enable-textctrl use wxTextCtrl class"
1e6feb95 352ac_help="$ac_help
8168de4c 353 --enable-togglebtn use wxToggleButton class"
698dcdb6 354ac_help="$ac_help
8168de4c 355 --enable-toolbar use wxToolBar class"
698dcdb6 356ac_help="$ac_help
8168de4c 357 --enable-tbarnative use native wxToolBar class"
698dcdb6 358ac_help="$ac_help
8168de4c 359 --enable-tbarsmpl use wxToolBarSimple class"
698dcdb6 360ac_help="$ac_help
8168de4c 361 --enable-treectrl use wxTreeCtrl class"
9926e4a4
VZ
362ac_help="$ac_help
363 --enable-tipwindow use wxTipWindow class"
9f41d601
RR
364ac_help="$ac_help
365 --enable-popupwin use wxPopUpWindow class"
698dcdb6 366ac_help="$ac_help
b3e8d00a 367 --enable-commondlg use all common dialogs"
698dcdb6 368ac_help="$ac_help
8168de4c 369 --enable-choicedlg use wxChoiceDialog"
1e6feb95 370ac_help="$ac_help
8168de4c 371 --enable-coldlg use wxColourDialog"
1e6feb95 372ac_help="$ac_help
8168de4c 373 --enable-filedlg use wxFileDialog"
8db37e06
VZ
374ac_help="$ac_help
375 --enable-finddlg use wxFindReplaceDialog"
1e6feb95 376ac_help="$ac_help
8168de4c 377 --enable-fontdlg use wxFontDialog"
1e6feb95 378ac_help="$ac_help
8168de4c 379 --enable-dirdlg use wxDirDialog"
698dcdb6 380ac_help="$ac_help
8168de4c 381 --enable-msgdlg use wxMessageDialog"
1e6feb95 382ac_help="$ac_help
8168de4c 383 --enable-numberdlg use wxNumberEntryDialog"
cbca9943
VZ
384ac_help="$ac_help
385 --enable-splash use wxSplashScreen"
1e6feb95 386ac_help="$ac_help
8168de4c 387 --enable-textdlg use wxTextDialog"
698dcdb6 388ac_help="$ac_help
8168de4c 389 --enable-tipdlg use startup tips"
698dcdb6 390ac_help="$ac_help
8168de4c 391 --enable-progressdlg use wxProgressDialog"
b1f5d087
VZ
392ac_help="$ac_help
393 --enable-wizarddlg use wxWizard"
698dcdb6 394ac_help="$ac_help
8168de4c 395 --enable-menus use wxMenu/wxMenuBar/wxMenuItem classes"
1e6feb95 396ac_help="$ac_help
8168de4c 397 --enable-miniframe use wxMiniFrame class"
698dcdb6 398ac_help="$ac_help
8168de4c 399 --enable-tooltips use wxToolTip class"
698dcdb6 400ac_help="$ac_help
8168de4c 401 --enable-splines use spline drawing code"
698dcdb6 402ac_help="$ac_help
8168de4c 403 --enable-validators use wxValidator and derived classes"
698dcdb6 404ac_help="$ac_help
8168de4c 405 --enable-busyinfo use wxBusyInfo"
698dcdb6 406ac_help="$ac_help
b3e8d00a 407 --enable-joystick use wxJoystick (Linux only)"
698dcdb6 408ac_help="$ac_help
8168de4c 409 --enable-metafiles use wxMetaFile (Windows only)"
24fd6d87
VZ
410ac_help="$ac_help
411 --enable-dragimage use wxDragImage"
edae8572
VZ
412ac_help="$ac_help
413 --enable-palette use wxPalette class"
1e6feb95 414ac_help="$ac_help
8168de4c 415 --enable-image use wxImage class"
698dcdb6 416ac_help="$ac_help
8168de4c 417 --enable-gif use gif images (GIF file format)"
698dcdb6 418ac_help="$ac_help
8168de4c 419 --enable-pcx use pcx images (PCX file format)"
4b6b4dfc
RR
420ac_help="$ac_help
421 --enable-iff use iff images (IFF file format)"
698dcdb6 422ac_help="$ac_help
8168de4c 423 --enable-pnm use pnm images (PNM file format)"
698dcdb6 424ac_help="$ac_help
8168de4c 425 --enable-xpm use xpm images (XPM file format)"
658974ae
VS
426ac_help="$ac_help
427 --enable-icocur use Windows ICO and CUR formats"
90dd450c
VZ
428ac_help="$ac_help
429 --disable-largefile omit support for large files"
698dcdb6 430ac_help="$ac_help
9e691f46 431 --disable-gtktest do not try to compile and run a test GTK+ program"
3f345b47
VZ
432ac_help="$ac_help
433 --with-gtk-prefix=PFX Prefix where GTK is installed (optional)"
434ac_help="$ac_help
435 --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)"
436ac_help="$ac_help
437 --disable-gtktest Do not try to compile and run a test GTK program"
438ac_help="$ac_help
439 --with-gtk-prefix=PFX Prefix where GTK is installed (optional)"
440ac_help="$ac_help
441 --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)"
442ac_help="$ac_help
443 --disable-gtktest Do not try to compile and run a test GTK program"
698dcdb6
VZ
444ac_help="$ac_help
445 --with-x use the X Window System"
b040e242
VS
446ac_help="$ac_help
447 --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib"
10f2d63a
VZ
448
449# Initialize some variables set by options.
450# The variables have the same names as the options, with
451# dashes changed to underlines.
698dcdb6
VZ
452build=NONE
453cache_file=./config.cache
10f2d63a 454exec_prefix=NONE
698dcdb6 455host=NONE
10f2d63a 456no_create=
698dcdb6 457nonopt=NONE
10f2d63a
VZ
458no_recursion=
459prefix=NONE
460program_prefix=NONE
461program_suffix=NONE
462program_transform_name=s,x,x,
463silent=
464site=
465srcdir=
698dcdb6 466target=NONE
10f2d63a
VZ
467verbose=
468x_includes=NONE
469x_libraries=NONE
470bindir='${exec_prefix}/bin'
471sbindir='${exec_prefix}/sbin'
472libexecdir='${exec_prefix}/libexec'
473datadir='${prefix}/share'
474sysconfdir='${prefix}/etc'
475sharedstatedir='${prefix}/com'
476localstatedir='${prefix}/var'
477libdir='${exec_prefix}/lib'
478includedir='${prefix}/include'
479oldincludedir='/usr/include'
480infodir='${prefix}/info'
481mandir='${prefix}/man'
482
698dcdb6
VZ
483# Initialize some other variables.
484subdirs=
485MFLAGS= MAKEFLAGS=
486SHELL=${CONFIG_SHELL-/bin/sh}
487# Maximum number of lines to put in a shell here document.
488ac_max_here_lines=12
10f2d63a
VZ
489
490ac_prev=
491for ac_option
492do
698dcdb6 493
10f2d63a
VZ
494 # If the previous option needs an argument, assign it.
495 if test -n "$ac_prev"; then
496 eval "$ac_prev=\$ac_option"
497 ac_prev=
498 continue
499 fi
500
698dcdb6
VZ
501 case "$ac_option" in
502 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
503 *) ac_optarg= ;;
504 esac
10f2d63a
VZ
505
506 # Accept the important Cygnus configure options, so we can diagnose typos.
507
698dcdb6 508 case "$ac_option" in
10f2d63a
VZ
509
510 -bindir | --bindir | --bindi | --bind | --bin | --bi)
511 ac_prev=bindir ;;
512 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
698dcdb6 513 bindir="$ac_optarg" ;;
10f2d63a
VZ
514
515 -build | --build | --buil | --bui | --bu)
698dcdb6 516 ac_prev=build ;;
10f2d63a 517 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
698dcdb6 518 build="$ac_optarg" ;;
10f2d63a
VZ
519
520 -cache-file | --cache-file | --cache-fil | --cache-fi \
521 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
522 ac_prev=cache_file ;;
523 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
524 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
698dcdb6 525 cache_file="$ac_optarg" ;;
10f2d63a
VZ
526
527 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
528 ac_prev=datadir ;;
529 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
530 | --da=*)
698dcdb6 531 datadir="$ac_optarg" ;;
10f2d63a
VZ
532
533 -disable-* | --disable-*)
698dcdb6 534 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
10f2d63a 535 # Reject names that are not valid shell variable names.
698dcdb6
VZ
536 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
537 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
538 fi
539 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
540 eval "enable_${ac_feature}=no" ;;
10f2d63a
VZ
541
542 -enable-* | --enable-*)
698dcdb6 543 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
10f2d63a 544 # Reject names that are not valid shell variable names.
698dcdb6
VZ
545 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
546 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
547 fi
548 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
549 case "$ac_option" in
550 *=*) ;;
10f2d63a
VZ
551 *) ac_optarg=yes ;;
552 esac
698dcdb6 553 eval "enable_${ac_feature}='$ac_optarg'" ;;
10f2d63a
VZ
554
555 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
556 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
557 | --exec | --exe | --ex)
558 ac_prev=exec_prefix ;;
559 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
560 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
561 | --exec=* | --exe=* | --ex=*)
698dcdb6 562 exec_prefix="$ac_optarg" ;;
10f2d63a
VZ
563
564 -gas | --gas | --ga | --g)
565 # Obsolete; use --with-gas.
566 with_gas=yes ;;
567
698dcdb6
VZ
568 -help | --help | --hel | --he)
569 # Omit some internal or obsolete options to make the list less imposing.
570 # This message is too long to be a string in the A/UX 3.1 sh.
571 cat << EOF
572Usage: configure [options] [host]
573Options: [defaults in brackets after descriptions]
574Configuration:
575 --cache-file=FILE cache test results in FILE
576 --help print this message
577 --no-create do not create output files
578 --quiet, --silent do not print \`checking...' messages
579 --version print the version of autoconf that created configure
580Directory and file names:
581 --prefix=PREFIX install architecture-independent files in PREFIX
582 [$ac_default_prefix]
583 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
584 [same as prefix]
585 --bindir=DIR user executables in DIR [EPREFIX/bin]
586 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
587 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
588 --datadir=DIR read-only architecture-independent data in DIR
589 [PREFIX/share]
590 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
591 --sharedstatedir=DIR modifiable architecture-independent data in DIR
592 [PREFIX/com]
593 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
594 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
595 --includedir=DIR C header files in DIR [PREFIX/include]
596 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
597 --infodir=DIR info documentation in DIR [PREFIX/info]
598 --mandir=DIR man documentation in DIR [PREFIX/man]
599 --srcdir=DIR find the sources in DIR [configure dir or ..]
600 --program-prefix=PREFIX prepend PREFIX to installed program names
601 --program-suffix=SUFFIX append SUFFIX to installed program names
602 --program-transform-name=PROGRAM
603 run sed PROGRAM on installed program names
604EOF
605 cat << EOF
606Host type:
607 --build=BUILD configure for building on BUILD [BUILD=HOST]
608 --host=HOST configure for HOST [guessed]
609 --target=TARGET configure for TARGET [TARGET=HOST]
610Features and packages:
611 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
612 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
613 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
614 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
615 --x-includes=DIR X include files are in DIR
616 --x-libraries=DIR X library files are in DIR
617EOF
618 if test -n "$ac_help"; then
619 echo "--enable and --with options recognized:$ac_help"
620 fi
621 exit 0 ;;
10f2d63a
VZ
622
623 -host | --host | --hos | --ho)
698dcdb6 624 ac_prev=host ;;
10f2d63a 625 -host=* | --host=* | --hos=* | --ho=*)
698dcdb6 626 host="$ac_optarg" ;;
10f2d63a
VZ
627
628 -includedir | --includedir | --includedi | --included | --include \
629 | --includ | --inclu | --incl | --inc)
630 ac_prev=includedir ;;
631 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
632 | --includ=* | --inclu=* | --incl=* | --inc=*)
698dcdb6 633 includedir="$ac_optarg" ;;
10f2d63a
VZ
634
635 -infodir | --infodir | --infodi | --infod | --info | --inf)
636 ac_prev=infodir ;;
637 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
698dcdb6 638 infodir="$ac_optarg" ;;
10f2d63a
VZ
639
640 -libdir | --libdir | --libdi | --libd)
641 ac_prev=libdir ;;
642 -libdir=* | --libdir=* | --libdi=* | --libd=*)
698dcdb6 643 libdir="$ac_optarg" ;;
10f2d63a
VZ
644
645 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
646 | --libexe | --libex | --libe)
647 ac_prev=libexecdir ;;
648 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
649 | --libexe=* | --libex=* | --libe=*)
698dcdb6 650 libexecdir="$ac_optarg" ;;
10f2d63a
VZ
651
652 -localstatedir | --localstatedir | --localstatedi | --localstated \
653 | --localstate | --localstat | --localsta | --localst \
654 | --locals | --local | --loca | --loc | --lo)
655 ac_prev=localstatedir ;;
656 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
657 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
658 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
698dcdb6 659 localstatedir="$ac_optarg" ;;
10f2d63a
VZ
660
661 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
662 ac_prev=mandir ;;
663 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
698dcdb6 664 mandir="$ac_optarg" ;;
10f2d63a
VZ
665
666 -nfp | --nfp | --nf)
667 # Obsolete; use --without-fp.
668 with_fp=no ;;
669
670 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
671 | --no-cr | --no-c)
672 no_create=yes ;;
673
674 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
675 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
676 no_recursion=yes ;;
677
678 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
679 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
680 | --oldin | --oldi | --old | --ol | --o)
681 ac_prev=oldincludedir ;;
682 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
683 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
684 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
698dcdb6 685 oldincludedir="$ac_optarg" ;;
10f2d63a
VZ
686
687 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
688 ac_prev=prefix ;;
689 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
698dcdb6 690 prefix="$ac_optarg" ;;
10f2d63a
VZ
691
692 -program-prefix | --program-prefix | --program-prefi | --program-pref \
693 | --program-pre | --program-pr | --program-p)
694 ac_prev=program_prefix ;;
695 -program-prefix=* | --program-prefix=* | --program-prefi=* \
696 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
698dcdb6 697 program_prefix="$ac_optarg" ;;
10f2d63a
VZ
698
699 -program-suffix | --program-suffix | --program-suffi | --program-suff \
700 | --program-suf | --program-su | --program-s)
701 ac_prev=program_suffix ;;
702 -program-suffix=* | --program-suffix=* | --program-suffi=* \
703 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
698dcdb6 704 program_suffix="$ac_optarg" ;;
10f2d63a
VZ
705
706 -program-transform-name | --program-transform-name \
707 | --program-transform-nam | --program-transform-na \
708 | --program-transform-n | --program-transform- \
709 | --program-transform | --program-transfor \
710 | --program-transfo | --program-transf \
711 | --program-trans | --program-tran \
712 | --progr-tra | --program-tr | --program-t)
713 ac_prev=program_transform_name ;;
714 -program-transform-name=* | --program-transform-name=* \
715 | --program-transform-nam=* | --program-transform-na=* \
716 | --program-transform-n=* | --program-transform-=* \
717 | --program-transform=* | --program-transfor=* \
718 | --program-transfo=* | --program-transf=* \
719 | --program-trans=* | --program-tran=* \
720 | --progr-tra=* | --program-tr=* | --program-t=*)
698dcdb6 721 program_transform_name="$ac_optarg" ;;
10f2d63a
VZ
722
723 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
724 | -silent | --silent | --silen | --sile | --sil)
725 silent=yes ;;
726
727 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
728 ac_prev=sbindir ;;
729 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
730 | --sbi=* | --sb=*)
698dcdb6 731 sbindir="$ac_optarg" ;;
10f2d63a
VZ
732
733 -sharedstatedir | --sharedstatedir | --sharedstatedi \
734 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
735 | --sharedst | --shareds | --shared | --share | --shar \
736 | --sha | --sh)
737 ac_prev=sharedstatedir ;;
738 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
739 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
740 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
741 | --sha=* | --sh=*)
698dcdb6 742 sharedstatedir="$ac_optarg" ;;
10f2d63a
VZ
743
744 -site | --site | --sit)
745 ac_prev=site ;;
746 -site=* | --site=* | --sit=*)
698dcdb6 747 site="$ac_optarg" ;;
10f2d63a
VZ
748
749 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
750 ac_prev=srcdir ;;
751 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
698dcdb6 752 srcdir="$ac_optarg" ;;
10f2d63a
VZ
753
754 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
755 | --syscon | --sysco | --sysc | --sys | --sy)
756 ac_prev=sysconfdir ;;
757 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
758 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
698dcdb6 759 sysconfdir="$ac_optarg" ;;
10f2d63a
VZ
760
761 -target | --target | --targe | --targ | --tar | --ta | --t)
698dcdb6 762 ac_prev=target ;;
10f2d63a 763 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
698dcdb6 764 target="$ac_optarg" ;;
10f2d63a
VZ
765
766 -v | -verbose | --verbose | --verbos | --verbo | --verb)
767 verbose=yes ;;
768
698dcdb6
VZ
769 -version | --version | --versio | --versi | --vers)
770 echo "configure generated by autoconf version 2.13"
771 exit 0 ;;
10f2d63a
VZ
772
773 -with-* | --with-*)
698dcdb6 774 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
10f2d63a 775 # Reject names that are not valid shell variable names.
698dcdb6
VZ
776 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
777 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
778 fi
10f2d63a 779 ac_package=`echo $ac_package| sed 's/-/_/g'`
698dcdb6
VZ
780 case "$ac_option" in
781 *=*) ;;
10f2d63a
VZ
782 *) ac_optarg=yes ;;
783 esac
698dcdb6 784 eval "with_${ac_package}='$ac_optarg'" ;;
10f2d63a
VZ
785
786 -without-* | --without-*)
698dcdb6 787 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
10f2d63a 788 # Reject names that are not valid shell variable names.
698dcdb6
VZ
789 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
790 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
791 fi
792 ac_package=`echo $ac_package| sed 's/-/_/g'`
793 eval "with_${ac_package}=no" ;;
10f2d63a
VZ
794
795 --x)
796 # Obsolete; use --with-x.
797 with_x=yes ;;
798
799 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
800 | --x-incl | --x-inc | --x-in | --x-i)
801 ac_prev=x_includes ;;
802 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
803 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
698dcdb6 804 x_includes="$ac_optarg" ;;
10f2d63a
VZ
805
806 -x-libraries | --x-libraries | --x-librarie | --x-librari \
807 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
808 ac_prev=x_libraries ;;
809 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
810 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
698dcdb6 811 x_libraries="$ac_optarg" ;;
10f2d63a 812
698dcdb6 813 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
10f2d63a
VZ
814 ;;
815
816 *)
698dcdb6
VZ
817 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
818 echo "configure: warning: $ac_option: invalid host type" 1>&2
819 fi
820 if test "x$nonopt" != xNONE; then
821 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
822 fi
823 nonopt="$ac_option"
10f2d63a
VZ
824 ;;
825
826 esac
827done
828
829if test -n "$ac_prev"; then
698dcdb6
VZ
830 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
831fi
832
833trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
834
835# File descriptor usage:
836# 0 standard input
837# 1 file creation
838# 2 errors and warnings
839# 3 some systems may open it to /dev/tty
840# 4 used on the Kubota Titan
841# 6 checking for... messages and results
842# 5 compiler messages saved in config.log
843if test "$silent" = yes; then
844 exec 6>/dev/null
845else
846 exec 6>&1
10f2d63a 847fi
698dcdb6
VZ
848exec 5>./config.log
849
850echo "\
851This file contains any messages produced by compilers while
852running configure, to aid debugging if configure makes a mistake.
853" 1>&5
10f2d63a 854
698dcdb6
VZ
855# Strip out --no-create and --no-recursion so they do not pile up.
856# Also quote any args containing shell metacharacters.
857ac_configure_args=
858for ac_arg
10f2d63a 859do
698dcdb6
VZ
860 case "$ac_arg" in
861 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
862 | --no-cr | --no-c) ;;
863 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
864 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
865 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
866 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
867 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
10f2d63a
VZ
868 esac
869done
870
698dcdb6
VZ
871# NLS nuisances.
872# Only set these to C if already set. These must not be set unconditionally
873# because not all systems understand e.g. LANG=C (notably SCO).
874# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
875# Non-C LC_CTYPE values break the ctype check.
876if test "${LANG+set}" = set; then LANG=C; export LANG; fi
877if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
878if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
879if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
10f2d63a 880
698dcdb6
VZ
881# confdefs.h avoids OS command line length limits that DEFS can exceed.
882rm -rf conftest* confdefs.h
883# AIX cpp loses on an empty file, so make sure it contains at least a newline.
884echo > confdefs.h
10f2d63a 885
698dcdb6
VZ
886# A filename unique to this package, relative to the directory that
887# configure is in, which we can look for to find out if srcdir is correct.
888ac_unique_file=wx-config.in
10f2d63a
VZ
889
890# Find the source files, if location was not specified.
891if test -z "$srcdir"; then
892 ac_srcdir_defaulted=yes
893 # Try the directory containing this script, then its parent.
894 ac_prog=$0
698dcdb6 895 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
10f2d63a
VZ
896 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
897 srcdir=$ac_confdir
898 if test ! -r $srcdir/$ac_unique_file; then
899 srcdir=..
900 fi
901else
902 ac_srcdir_defaulted=no
903fi
904if test ! -r $srcdir/$ac_unique_file; then
905 if test "$ac_srcdir_defaulted" = yes; then
698dcdb6 906 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
10f2d63a 907 else
698dcdb6 908 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
10f2d63a
VZ
909 fi
910fi
698dcdb6 911srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
10f2d63a
VZ
912
913# Prefer explicitly selected file to automatically selected ones.
914if test -z "$CONFIG_SITE"; then
915 if test "x$prefix" != xNONE; then
916 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
917 else
918 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
919 fi
920fi
921for ac_site_file in $CONFIG_SITE; do
922 if test -r "$ac_site_file"; then
698dcdb6 923 echo "loading site script $ac_site_file"
10f2d63a
VZ
924 . "$ac_site_file"
925 fi
926done
927
928if test -r "$cache_file"; then
698dcdb6
VZ
929 echo "loading cache $cache_file"
930 . $cache_file
10f2d63a 931else
698dcdb6
VZ
932 echo "creating cache $cache_file"
933 > $cache_file
10f2d63a
VZ
934fi
935
936ac_ext=c
698dcdb6 937# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10f2d63a 938ac_cpp='$CPP $CPPFLAGS'
698dcdb6
VZ
939ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
940ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
941cross_compiling=$ac_cv_prog_cc_cross
942
943ac_exeext=
944ac_objext=o
945if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
946 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
947 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
948 ac_n= ac_c='
949' ac_t=' '
950 else
951 ac_n=-n ac_c= ac_t=
952 fi
10f2d63a 953else
698dcdb6 954 ac_n= ac_c='\c' ac_t=
10f2d63a 955fi
698dcdb6
VZ
956
957
10f2d63a 958
7c66a493
VZ
959ac_aux_dir=
960for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
961 if test -f $ac_dir/install-sh; then
962 ac_aux_dir=$ac_dir
963 ac_install_sh="$ac_aux_dir/install-sh -c"
964 break
965 elif test -f $ac_dir/install.sh; then
966 ac_aux_dir=$ac_dir
967 ac_install_sh="$ac_aux_dir/install.sh -c"
968 break
969 fi
970done
971if test -z "$ac_aux_dir"; then
698dcdb6 972 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
7c66a493 973fi
698dcdb6
VZ
974ac_config_guess=$ac_aux_dir/config.guess
975ac_config_sub=$ac_aux_dir/config.sub
976ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
703e0a69 977
698dcdb6
VZ
978
979# Do some error checking and defaulting for the host and target type.
980# The inputs are:
981# configure --host=HOST --target=TARGET --build=BUILD NONOPT
982#
983# The rules are:
984# 1. You are not allowed to specify --host, --target, and nonopt at the
985# same time.
986# 2. Host defaults to nonopt.
987# 3. If nonopt is not specified, then host defaults to the current host,
988# as determined by config.guess.
989# 4. Target and build default to nonopt.
990# 5. If nonopt is not specified, then target and build default to host.
7c66a493
VZ
991
992# The aliases save the names the user supplied, while $host etc.
993# will get canonicalized.
698dcdb6
VZ
994case $host---$target---$nonopt in
995NONE---*---* | *---NONE---* | *---*---NONE) ;;
996*) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
997esac
998
999
1000# Make sure we can run config.sub.
1001if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
1002else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1003fi
1004
1005echo $ac_n "checking host system type""... $ac_c" 1>&6
986ecc86 1006echo "configure:1007: checking host system type" >&5
698dcdb6
VZ
1007
1008host_alias=$host
1009case "$host_alias" in
1010NONE)
1011 case $nonopt in
1012 NONE)
1013 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
1014 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1015 fi ;;
1016 *) host_alias=$nonopt ;;
1017 esac ;;
1018esac
1019
1020host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
1021host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1022host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1023host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1024echo "$ac_t""$host" 1>&6
1025
1026echo $ac_n "checking target system type""... $ac_c" 1>&6
986ecc86 1027echo "configure:1028: checking target system type" >&5
698dcdb6
VZ
1028
1029target_alias=$target
1030case "$target_alias" in
1031NONE)
1032 case $nonopt in
1033 NONE) target_alias=$host_alias ;;
1034 *) target_alias=$nonopt ;;
1035 esac ;;
1036esac
1037
1038target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
1039target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1040target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1041target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1042echo "$ac_t""$target" 1>&6
1043
1044echo $ac_n "checking build system type""... $ac_c" 1>&6
986ecc86 1045echo "configure:1046: checking build system type" >&5
698dcdb6
VZ
1046
1047build_alias=$build
1048case "$build_alias" in
1049NONE)
1050 case $nonopt in
1051 NONE) build_alias=$host_alias ;;
1052 *) build_alias=$nonopt ;;
1053 esac ;;
1054esac
1055
1056build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1057build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1058build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1059build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1060echo "$ac_t""$build" 1>&6
1061
1062test "$host_alias" != "$target_alias" &&
7c66a493
VZ
1063 test "$program_prefix$program_suffix$program_transform_name" = \
1064 NONENONEs,x,x, &&
1065 program_prefix=${target_alias}-
1066
698dcdb6
VZ
1067
1068
10f2d63a 1069WX_MAJOR_VERSION_NUMBER=2
37d403aa 1070WX_MINOR_VERSION_NUMBER=3
a0d927d1 1071WX_RELEASE_NUMBER=3
10f2d63a 1072
10f2d63a 1073WX_VERSION=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER.$WX_RELEASE_NUMBER
10f2d63a 1074WX_RELEASE=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER
6426998c 1075
978f1259
RL
1076WX_MSW_VERSION=$WX_MAJOR_VERSION_NUMBER$WX_MINOR_VERSION_NUMBER$WX_RELEASE_NUMBER
1077
a0d927d1 1078WX_CURRENT=2
6426998c
RL
1079WX_REVISION=0
1080WX_AGE=0
1081
698dcdb6
VZ
1082
1083
10f2d63a
VZ
1084USE_UNIX=1
1085USE_WIN32=0
f9bc1684 1086USE_DOS=0
b12915c1 1087USE_BEOS=0
1216f52d 1088USE_MAC=0
b12915c1 1089
10f2d63a
VZ
1090USE_LINUX=
1091USE_SGI=
1092USE_HPUX=
1093USE_SYSV=
1094USE_SVR4=
1095USE_AIX=
1096USE_SUN=
1097USE_SOLARIS=
1098USE_SUNOS=
1099USE_ALPHA=
1100USE_OSF=
1101USE_BSD=
f11bdd03 1102USE_DARWIN=
10f2d63a 1103USE_FREEBSD=
95c8801c 1104USE_OPENBSD=
f6bcfd97 1105USE_NETBSD=
10f2d63a
VZ
1106USE_VMS=
1107USE_ULTRIX=
10f2d63a
VZ
1108USE_DATA_GENERAL=
1109
ab9b9eab
VZ
1110NEEDS_D_REENTRANT_FOR_R_FUNCS=0
1111
f79bd02d 1112ALL_TOOLKITS="GTK MAC MGL MICROWIN MOTIF MSW PM WINE X11"
10f2d63a
VZ
1113
1114DEFAULT_wxUSE_GTK=0
1e6feb95
VZ
1115DEFAULT_wxUSE_MAC=0
1116DEFAULT_wxUSE_MGL=0
1725144d 1117DEFAULT_wxUSE_MICROWIN=0
10f2d63a
VZ
1118DEFAULT_wxUSE_MOTIF=0
1119DEFAULT_wxUSE_MSW=0
e07802fc 1120DEFAULT_wxUSE_PM=0
1e6feb95 1121DEFAULT_wxUSE_WINE=0
f79bd02d 1122DEFAULT_wxUSE_X11=0
10f2d63a
VZ
1123
1124DEFAULT_DEFAULT_wxUSE_GTK=0
1e6feb95
VZ
1125DEFAULT_DEFAULT_wxUSE_MAC=0
1126DEFAULT_DEFAULT_wxUSE_MGL=0
1725144d 1127DEFAULT_DEFAULT_wxUSE_MICROWIN=0
10f2d63a
VZ
1128DEFAULT_DEFAULT_wxUSE_MOTIF=0
1129DEFAULT_DEFAULT_wxUSE_MSW=0
e07802fc 1130DEFAULT_DEFAULT_wxUSE_PM=0
1e6feb95 1131DEFAULT_DEFAULT_wxUSE_WINE=0
f79bd02d 1132DEFAULT_DEFAULT_wxUSE_X11=0
10f2d63a 1133
d6a55c4b 1134PROGRAM_EXT=
3a922bb4 1135SO_SUFFIX=so
d6a55c4b 1136
10f2d63a
VZ
1137case "${host}" in
1138 *-hp-hpux* )
1139 USE_HPUX=1
1140 DEFAULT_DEFAULT_wxUSE_MOTIF=1
ab9b9eab 1141 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
3a922bb4 1142 SO_SUFFIX=sl
698dcdb6 1143 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1144#define __HPUX__ 1
1145EOF
1146
1147 ;;
1148 *-*-linux* )
1149 USE_LINUX=1
698dcdb6 1150 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1151#define __LINUX__ 1
1152EOF
1153
1154 TMP=`uname -m`
1155 if test "x$TMP" = "xalpha"; then
1156 USE_ALPHA=1
698dcdb6 1157 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1158#define __ALPHA__ 1
1159EOF
1160
1161 fi
1162 DEFAULT_DEFAULT_wxUSE_GTK=1
1163 ;;
1164 *-*-irix5* | *-*-irix6* )
1165 USE_SGI=1
1166 USE_SVR4=1
698dcdb6 1167 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1168#define __SGI__ 1
1169EOF
1170
698dcdb6 1171 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1172#define __SVR4__ 1
1173EOF
1174
1175 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1176 ;;
1177 *-*-solaris2* )
1178 USE_SUN=1
1179 USE_SOLARIS=1
1180 USE_SVR4=1
698dcdb6 1181 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1182#define __SUN__ 1
1183EOF
1184
698dcdb6 1185 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1186#define __SOLARIS__ 1
1187EOF
1188
698dcdb6 1189 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1190#define __SVR4__ 1
1191EOF
1192
1193 DEFAULT_DEFAULT_wxUSE_MOTIF=1
ab9b9eab 1194 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
10f2d63a
VZ
1195 ;;
1196 *-*-sunos4* )
1197 USE_SUN=1
1198 USE_SUNOS=1
1199 USE_BSD=1
698dcdb6 1200 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1201#define __SUN__ 1
1202EOF
1203
698dcdb6 1204 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1205#define __SUNOS__ 1
1206EOF
1207
698dcdb6 1208 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1209#define __BSD__ 1
1210EOF
1211
1212 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1213 ;;
f6bcfd97 1214 *-*-freebsd*)
10f2d63a
VZ
1215 USE_BSD=1
1216 USE_FREEBSD=1
698dcdb6 1217 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1218#define __FREEBSD__ 1
1219EOF
1220
698dcdb6 1221 cat >> confdefs.h <<\EOF
10f2d63a 1222#define __BSD__ 1
95c8801c
VS
1223EOF
1224
1225 DEFAULT_DEFAULT_wxUSE_GTK=1
1226 ;;
1227 *-*-openbsd*)
1228 USE_BSD=1
1229 USE_OPENBSD=1
698dcdb6 1230 cat >> confdefs.h <<\EOF
95c8801c
VS
1231#define __FREEBSD__ 1
1232EOF
1233
698dcdb6 1234 cat >> confdefs.h <<\EOF
95c8801c 1235#define __OPENBSD__ 1
f6bcfd97
BP
1236EOF
1237
1238 DEFAULT_DEFAULT_wxUSE_GTK=1
1239 ;;
1240 *-*-netbsd*)
1241 USE_BSD=1
1242 USE_NETBSD=1
698dcdb6 1243 cat >> confdefs.h <<\EOF
f6bcfd97
BP
1244#define __FREEBSD__ 1
1245EOF
1246
698dcdb6 1247 cat >> confdefs.h <<\EOF
f6bcfd97 1248#define __NETBSD__ 1
10f2d63a
VZ
1249EOF
1250
1251 DEFAULT_DEFAULT_wxUSE_GTK=1
1252 ;;
1253 *-*-osf* )
1254 USE_ALPHA=1
1255 USE_OSF=1
698dcdb6 1256 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1257#define __ALPHA__ 1
1258EOF
1259
698dcdb6 1260 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1261#define __OSF__ 1
1262EOF
1263
1264 DEFAULT_DEFAULT_wxUSE_MOTIF=1
f6bcfd97 1265 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
10f2d63a
VZ
1266 ;;
1267 *-*-dgux5* )
1268 USE_ALPHA=1
1269 USE_SVR4=1
698dcdb6 1270 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1271#define __ALPHA__ 1
1272EOF
1273
698dcdb6 1274 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1275#define __SVR4__ 1
1276EOF
1277
1278 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1279 ;;
1280 *-*-sysv5* )
1281 USE_SYSV=1
1282 USE_SVR4=1
698dcdb6 1283 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1284#define __SYSV__ 1
1285EOF
1286
698dcdb6 1287 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1288#define __SVR4__ 1
1289EOF
1290
1291 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1292 ;;
1293 *-*-aix* )
1294 USE_AIX=1
1295 USE_SYSV=1
1296 USE_SVR4=1
321d2b14 1297 SO_SUFFIX=a
698dcdb6 1298 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1299#define __AIX__ 1
1300EOF
1301
698dcdb6 1302 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1303#define __SYSV__ 1
1304EOF
1305
698dcdb6 1306 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1307#define __SVR4__ 1
1308EOF
1309
1310 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1311 ;;
1312
1c8183e2 1313 *-*-cygwin* | *-*-mingw32* )
10f2d63a
VZ
1314 USE_UNIX=0
1315 USE_WIN32=1
3a922bb4 1316 SO_SUFFIX=dll
698dcdb6 1317 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1318#define __WIN32__ 1
1319EOF
1320
698dcdb6 1321 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1322#define __WIN95__ 1
1323EOF
1324
698dcdb6 1325 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1326#define __WINDOWS__ 1
1327EOF
1328
698dcdb6 1329 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1330#define __GNUWIN32__ 1
1331EOF
1332
698dcdb6 1333 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1334#define STRICT 1
1335EOF
1336
698dcdb6 1337 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1338#define WINVER 0x0400
1339EOF
1340
cf27ef00 1341 PROGRAM_EXT=".exe"
7b7a7637 1342 RESCOMP=windres
10f2d63a
VZ
1343 DEFAULT_DEFAULT_wxUSE_MSW=1
1344 ;;
1345
f9bc1684
VS
1346 *-pc-msdosdjgpp )
1347 USE_UNIX=0
1348 USE_DOS=1
1349 cat >> confdefs.h <<\EOF
1350#define __DOS__ 1
1351EOF
1352
1353 PROGRAM_EXT=".exe"
1354 DEFAULT_DEFAULT_wxUSE_MGL=1
f9bc1684
VS
1355 ;;
1356
6fa882bd 1357 *-pc-os2_emx | *-pc-os2-emx )
698dcdb6 1358 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1359#define __EMX__ 1
1360EOF
1361
cf27ef00 1362 PROGRAM_EXT=".exe"
e07802fc 1363 DEFAULT_DEFAULT_wxUSE_PM=1
d558c907 1364 LIBS="$LIBS -lstdcpp"
10f2d63a
VZ
1365 ;;
1366
d08b457b
GD
1367 powerpc-*-darwin* )
1368 USE_BSD=1
f11bdd03 1369 USE_DARWIN=1
3a922bb4 1370 SO_SUFFIX=dylib
698dcdb6 1371 cat >> confdefs.h <<\EOF
f11bdd03 1372#define __BSD__ 1
b4085ce6
GD
1373EOF
1374
698dcdb6 1375 cat >> confdefs.h <<\EOF
f11bdd03 1376#define __DARWIN__ 1
d08b457b
GD
1377EOF
1378
1379 cat >> confdefs.h <<\EOF
1380#define __POWERPC__ 1
b4085ce6
GD
1381EOF
1382
1383 DEFAULT_DEFAULT_wxUSE_MAC=1
1384 ;;
1385
b12915c1
VZ
1386 *-*-beos* )
1387 USE_BEOS=1
698dcdb6 1388 cat >> confdefs.h <<\EOF
b12915c1
VZ
1389#define __BEOS__ 1
1390EOF
1391
1392 ;;
1393
10f2d63a 1394 *)
698dcdb6 1395 { echo "configure: error: unknown system type ${host}." 1>&2; exit 1; }
10f2d63a
VZ
1396esac
1397
1398if test "$USE_UNIX" = 1 ; then
b12915c1 1399 wxUSE_UNIX=yes
698dcdb6 1400 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1401#define __UNIX__ 1
1402EOF
1403
10f2d63a
VZ
1404fi
1405
1e487827 1406
1e487827 1407
6232543b 1408
10f2d63a
VZ
1409 wx_arg_cache_file="configarg.cache"
1410 echo "loading argument cache $wx_arg_cache_file"
1411 rm -f ${wx_arg_cache_file}.tmp
1412 touch ${wx_arg_cache_file}.tmp
1413 touch ${wx_arg_cache_file}
698dcdb6 1414
10f2d63a
VZ
1415
1416DEBUG_CONFIGURE=0
1417if test $DEBUG_CONFIGURE = 1; then
1e6feb95
VZ
1418 DEFAULT_wxUSE_UNIVERSAL=no
1419
d8356fa3
VZ
1420 DEFAULT_wxUSE_NANOX=no
1421
10f2d63a
VZ
1422 DEFAULT_wxUSE_THREADS=yes
1423
1424 DEFAULT_wxUSE_SHARED=yes
3a922bb4 1425 DEFAULT_wxUSE_SONAME=no
1e6feb95 1426 DEFAULT_wxUSE_OPTIMISE=no
10f2d63a
VZ
1427 DEFAULT_wxUSE_PROFILE=no
1428 DEFAULT_wxUSE_NO_DEPS=no
8f4a9a10
RR
1429 DEFAULT_wxUSE_NO_RTTI=no
1430 DEFAULT_wxUSE_NO_EXCEPTIONS=no
10f2d63a
VZ
1431 DEFAULT_wxUSE_PERMISSIVE=no
1432 DEFAULT_wxUSE_DEBUG_FLAG=yes
1433 DEFAULT_wxUSE_DEBUG_INFO=yes
1434 DEFAULT_wxUSE_DEBUG_GDB=yes
1435 DEFAULT_wxUSE_MEM_TRACING=no
1436 DEFAULT_wxUSE_DEBUG_CONTEXT=no
1437 DEFAULT_wxUSE_DMALLOC=no
a7ae7112 1438 DEFAULT_wxUSE_PRECOMP=no
10f2d63a
VZ
1439 DEFAULT_wxUSE_APPLE_IEEE=no
1440
1441 DEFAULT_wxUSE_LOG=yes
1e6feb95
VZ
1442 DEFAULT_wxUSE_LOGWINDOW=no
1443 DEFAULT_wxUSE_LOGGUI=no
69d27ff7 1444 DEFAULT_wxUSE_LOGDIALOG=no
10f2d63a
VZ
1445
1446 DEFAULT_wxUSE_GUI=yes
1e6feb95 1447 DEFAULT_wxUSE_CONTROLS=no
10f2d63a 1448
3e44f09d 1449 DEFAULT_wxUSE_REGEX=no
10f2d63a
VZ
1450 DEFAULT_wxUSE_ZLIB=no
1451 DEFAULT_wxUSE_LIBPNG=no
1452 DEFAULT_wxUSE_LIBJPEG=no
c7a2bf27 1453 DEFAULT_wxUSE_LIBTIFF=no
10f2d63a 1454 DEFAULT_wxUSE_ODBC=no
bdad4e7e 1455 DEFAULT_wxUSE_OPENGL=no
10f2d63a 1456
eb4efbdc 1457 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=no
4f3c5f06 1458 DEFAULT_wxUSE_SNGLINST_CHECKER=no
10f2d63a 1459 DEFAULT_wxUSE_STD_IOSTREAM=no
1e6feb95
VZ
1460 DEFAULT_wxUSE_CMDLINE_PARSER=no
1461 DEFAULT_wxUSE_DATETIME=no
1462 DEFAULT_wxUSE_TIMEDATE=no
1463 DEFAULT_wxUSE_TIMER=no
1464 DEFAULT_wxUSE_STOPWATCH=no
10f2d63a 1465 DEFAULT_wxUSE_FILE=no
1e6feb95 1466 DEFAULT_wxUSE_FFILE=no
a3a584a7 1467 DEFAULT_wxUSE_TEXTBUFFER=no
10f2d63a 1468 DEFAULT_wxUSE_TEXTFILE=no
10f2d63a
VZ
1469 DEFAULT_wxUSE_WAVE=no
1470 DEFAULT_wxUSE_INTL=no
1471 DEFAULT_wxUSE_CONFIG=no
1e6feb95 1472 DEFAULT_wxUSE_FONTMAP=no
10f2d63a
VZ
1473 DEFAULT_wxUSE_STREAMS=no
1474 DEFAULT_wxUSE_SOCKETS=no
1475 DEFAULT_wxUSE_DIALUP_MANAGER=no
10f2d63a 1476 DEFAULT_wxUSE_JOYSTICK=no
6bff71f8 1477 DEFAULT_wxUSE_DYNLIB_CLASS=no
0b9ab0bd 1478 DEFAULT_wxUSE_DYNAMIC_LOADER=no
10f2d63a 1479 DEFAULT_wxUSE_LONGLONG=no
e8f65ba6 1480 DEFAULT_wxUSE_GEOMETRY=no
10f2d63a
VZ
1481
1482 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no
1483 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no
1484 DEFAULT_wxUSE_POSTSCRIPT=no
1485
1486 DEFAULT_wxUSE_X_RESOURCES=no
1487 DEFAULT_wxUSE_CLIPBOARD=no
1488 DEFAULT_wxUSE_TOOLTIPS=no
1489 DEFAULT_wxUSE_DRAG_AND_DROP=no
24fd6d87 1490 DEFAULT_wxUSE_DRAGIMAGE=no
10f2d63a
VZ
1491 DEFAULT_wxUSE_SPLINES=no
1492
1493 DEFAULT_wxUSE_MDI_ARCHITECTURE=no
1494 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no
1495 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no
1496
1497 DEFAULT_wxUSE_PROLOGIO=no
1498 DEFAULT_wxUSE_RESOURCES=no
1499 DEFAULT_wxUSE_CONSTRAINTS=no
1500 DEFAULT_wxUSE_IPC=no
1501 DEFAULT_wxUSE_HELP=no
29fd3c0c 1502 DEFAULT_wxUSE_MS_HTML_HELP=no
3379ed37 1503 DEFAULT_wxUSE_WXHTML_HELP=no
24176f2c 1504 DEFAULT_wxUSE_TREELAYOUT=no
10f2d63a 1505 DEFAULT_wxUSE_METAFILE=no
1e6feb95 1506 DEFAULT_wxUSE_MIMETYPE=no
4cdb0ab0
VS
1507 DEFAULT_wxUSE_SYSTEM_OPTIONS=no
1508 DEFAULT_wxUSE_PROTOCOL=no
1509 DEFAULT_wxUSE_PROTOCOL_HTTP=no
1510 DEFAULT_wxUSE_PROTOCOL_FTP=no
1511 DEFAULT_wxUSE_PROTOCOL_FILE=no
1512 DEFAULT_wxUSE_URL=no
1513
10f2d63a 1514 DEFAULT_wxUSE_COMMONDLGS=no
1e6feb95
VZ
1515 DEFAULT_wxUSE_CHOICEDLG=no
1516 DEFAULT_wxUSE_COLOURDLG=no
10f2d63a 1517 DEFAULT_wxUSE_DIRDLG=no
1e6feb95 1518 DEFAULT_wxUSE_FILEDLG=no
8db37e06 1519 DEFAULT_wxUSE_FINDREPLDLG=no
1e6feb95
VZ
1520 DEFAULT_wxUSE_FONTDLG=no
1521 DEFAULT_wxUSE_MSGDLG=no
1522 DEFAULT_wxUSE_NUMBERDLG=no
10f2d63a 1523 DEFAULT_wxUSE_TEXTDLG=no
cbca9943 1524 DEFAULT_wxUSE_SPLASH=no
10f2d63a
VZ
1525 DEFAULT_wxUSE_STARTUP_TIPS=no
1526 DEFAULT_wxUSE_PROGRESSDLG=no
b1f5d087
VZ
1527 DEFAULT_wxUSE_WIZARDDLG=no
1528
1e6feb95 1529 DEFAULT_wxUSE_MENUS=no
10f2d63a
VZ
1530 DEFAULT_wxUSE_MINIFRAME=no
1531 DEFAULT_wxUSE_HTML=no
24528b0c 1532 DEFAULT_wxUSE_FILESYSTEM=no
10f2d63a
VZ
1533 DEFAULT_wxUSE_FS_INET=no
1534 DEFAULT_wxUSE_FS_ZIP=no
1535 DEFAULT_wxUSE_BUSYINFO=no
1536 DEFAULT_wxUSE_ZIPSTREAM=no
1e6feb95 1537 DEFAULT_wxUSE_VALIDATORS=no
10f2d63a
VZ
1538
1539 DEFAULT_wxUSE_ACCEL=no
1e6feb95 1540 DEFAULT_wxUSE_BUTTON=no
10f2d63a 1541 DEFAULT_wxUSE_BMPBUTTON=no
1e6feb95
VZ
1542 DEFAULT_wxUSE_CALCTRL=no
1543 DEFAULT_wxUSE_CARET=no
10f2d63a
VZ
1544 DEFAULT_wxUSE_CHECKBOX=no
1545 DEFAULT_wxUSE_CHECKLST=no
1e6feb95 1546 DEFAULT_wxUSE_CHOICE=no
10f2d63a
VZ
1547 DEFAULT_wxUSE_COMBOBOX=no
1548 DEFAULT_wxUSE_GAUGE=no
1549 DEFAULT_wxUSE_GRID=no
1550 DEFAULT_wxUSE_NEW_GRID=no
1551 DEFAULT_wxUSE_IMAGLIST=no
1552 DEFAULT_wxUSE_LISTBOX=no
1553 DEFAULT_wxUSE_LISTCTRL=no
1554 DEFAULT_wxUSE_NOTEBOOK=no
24176f2c 1555 DEFAULT_wxUSE_PROPSHEET=no
10f2d63a
VZ
1556 DEFAULT_wxUSE_RADIOBOX=no
1557 DEFAULT_wxUSE_RADIOBTN=no
1558 DEFAULT_wxUSE_SASH=no
1559 DEFAULT_wxUSE_SCROLLBAR=no
1560 DEFAULT_wxUSE_SLIDER=no
1561 DEFAULT_wxUSE_SPINBTN=no
56cfaa52 1562 DEFAULT_wxUSE_SPINCTRL=no
10f2d63a
VZ
1563 DEFAULT_wxUSE_SPLITTER=no
1564 DEFAULT_wxUSE_STATBMP=no
1565 DEFAULT_wxUSE_STATBOX=no
1566 DEFAULT_wxUSE_STATLINE=no
1e6feb95 1567 DEFAULT_wxUSE_STATTEXT=no
10f2d63a
VZ
1568 DEFAULT_wxUSE_STATUSBAR=yes
1569 DEFAULT_wxUSE_TABDIALOG=no
1e6feb95 1570 DEFAULT_wxUSE_TEXTCTRL=no
1db8dc4a 1571 DEFAULT_wxUSE_TOGGLEBTN=no
10f2d63a 1572 DEFAULT_wxUSE_TOOLBAR=no
360d6699
VZ
1573 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
1574 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
10f2d63a 1575 DEFAULT_wxUSE_TREECTRL=no
9f41d601 1576 DEFAULT_wxUSE_POPUPWIN=no
9926e4a4 1577 DEFAULT_wxUSE_TIPWINDOW=no
10f2d63a
VZ
1578
1579 DEFAULT_wxUSE_UNICODE=no
a72a4bfa 1580 DEFAULT_wxUSE_UNICODE_MSLU=no
10f2d63a
VZ
1581 DEFAULT_wxUSE_WCSRTOMBS=no
1582
edae8572 1583 DEFAULT_wxUSE_PALETTE=no
0046ff7c 1584 DEFAULT_wxUSE_IMAGE=no
10f2d63a
VZ
1585 DEFAULT_wxUSE_GIF=no
1586 DEFAULT_wxUSE_PCX=no
1587 DEFAULT_wxUSE_PNM=no
4b6b4dfc 1588 DEFAULT_wxUSE_IFF=no
0046ff7c 1589 DEFAULT_wxUSE_XPM=no
658974ae 1590 DEFAULT_wxUSE_ICO_CUR=no
10f2d63a 1591else
1e6feb95
VZ
1592 DEFAULT_wxUSE_UNIVERSAL=no
1593
d8356fa3
VZ
1594 DEFAULT_wxUSE_NANOX=no
1595
10f2d63a
VZ
1596 DEFAULT_wxUSE_THREADS=yes
1597
1598 DEFAULT_wxUSE_SHARED=yes
3a922bb4 1599 DEFAULT_wxUSE_SONAME=no
10f2d63a
VZ
1600 DEFAULT_wxUSE_OPTIMISE=yes
1601 DEFAULT_wxUSE_PROFILE=no
1602 DEFAULT_wxUSE_NO_DEPS=no
8f4a9a10
RR
1603 DEFAULT_wxUSE_NO_RTTI=no
1604 DEFAULT_wxUSE_NO_EXCEPTIONS=no
10f2d63a
VZ
1605 DEFAULT_wxUSE_PERMISSIVE=no
1606 DEFAULT_wxUSE_DEBUG_FLAG=no
1607 DEFAULT_wxUSE_DEBUG_INFO=no
1608 DEFAULT_wxUSE_DEBUG_GDB=no
1609 DEFAULT_wxUSE_MEM_TRACING=no
1610 DEFAULT_wxUSE_DEBUG_CONTEXT=no
1611 DEFAULT_wxUSE_DMALLOC=no
a7ae7112 1612 DEFAULT_wxUSE_PRECOMP=no
10f2d63a
VZ
1613 DEFAULT_wxUSE_APPLE_IEEE=yes
1614
1615 DEFAULT_wxUSE_LOG=yes
d73be714
VZ
1616 DEFAULT_wxUSE_LOGWINDOW=yes
1617 DEFAULT_wxUSE_LOGGUI=yes
69d27ff7 1618 DEFAULT_wxUSE_LOGDIALOG=yes
10f2d63a
VZ
1619
1620 DEFAULT_wxUSE_GUI=yes
1621
831b3152 1622 DEFAULT_wxUSE_REGEX=yes
10f2d63a
VZ
1623 DEFAULT_wxUSE_ZLIB=yes
1624 DEFAULT_wxUSE_LIBPNG=yes
1625 DEFAULT_wxUSE_LIBJPEG=yes
b47c832e 1626 DEFAULT_wxUSE_LIBTIFF=yes
16b52fa1 1627 DEFAULT_wxUSE_ODBC=no
bdad4e7e 1628 DEFAULT_wxUSE_OPENGL=no
10f2d63a 1629
eb4efbdc 1630 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=yes
4f3c5f06 1631 DEFAULT_wxUSE_SNGLINST_CHECKER=yes
10f2d63a 1632 DEFAULT_wxUSE_STD_IOSTREAM=no
1e6feb95
VZ
1633 DEFAULT_wxUSE_CMDLINE_PARSER=yes
1634 DEFAULT_wxUSE_DATETIME=yes
1635 DEFAULT_wxUSE_TIMEDATE=no
1636 DEFAULT_wxUSE_TIMER=yes
1637 DEFAULT_wxUSE_STOPWATCH=yes
10f2d63a 1638 DEFAULT_wxUSE_FILE=yes
1e6feb95 1639 DEFAULT_wxUSE_FFILE=yes
a3a584a7 1640 DEFAULT_wxUSE_TEXTBUFFER=yes
10f2d63a 1641 DEFAULT_wxUSE_TEXTFILE=yes
10f2d63a
VZ
1642 DEFAULT_wxUSE_WAVE=no
1643 DEFAULT_wxUSE_INTL=yes
1644 DEFAULT_wxUSE_CONFIG=yes
1e6feb95 1645 DEFAULT_wxUSE_FONTMAP=yes
10f2d63a
VZ
1646 DEFAULT_wxUSE_STREAMS=yes
1647 DEFAULT_wxUSE_SOCKETS=yes
1648 DEFAULT_wxUSE_DIALUP_MANAGER=yes
10f2d63a 1649 DEFAULT_wxUSE_JOYSTICK=yes
6bff71f8 1650 DEFAULT_wxUSE_DYNLIB_CLASS=yes
9337b578 1651 DEFAULT_wxUSE_DYNAMIC_LOADER=yes
b685cd9b 1652 DEFAULT_wxUSE_LONGLONG=yes
e8f65ba6 1653 DEFAULT_wxUSE_GEOMETRY=yes
10f2d63a
VZ
1654
1655 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes
1656 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes
1657 DEFAULT_wxUSE_POSTSCRIPT=yes
1658
1659 DEFAULT_wxUSE_X_RESOURCES=no
1660 DEFAULT_wxUSE_CLIPBOARD=yes
1661 DEFAULT_wxUSE_TOOLTIPS=yes
1662 DEFAULT_wxUSE_DRAG_AND_DROP=yes
24fd6d87 1663 DEFAULT_wxUSE_DRAGIMAGE=yes
10f2d63a
VZ
1664 DEFAULT_wxUSE_SPLINES=yes
1665
1666 DEFAULT_wxUSE_MDI_ARCHITECTURE=yes
1667 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes
1668 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes
1669
1670 DEFAULT_wxUSE_PROLOGIO=yes
1671 DEFAULT_wxUSE_RESOURCES=yes
1672 DEFAULT_wxUSE_CONSTRAINTS=yes
1673 DEFAULT_wxUSE_IPC=yes
1674 DEFAULT_wxUSE_HELP=yes
29fd3c0c 1675 DEFAULT_wxUSE_MS_HTML_HELP=yes
3379ed37 1676 DEFAULT_wxUSE_WXHTML_HELP=yes
24176f2c 1677 DEFAULT_wxUSE_TREELAYOUT=yes
10f2d63a 1678 DEFAULT_wxUSE_METAFILE=yes
1e6feb95 1679 DEFAULT_wxUSE_MIMETYPE=yes
3e44f09d 1680 DEFAULT_wxUSE_SYSTEM_OPTIONS=yes
4cdb0ab0
VS
1681 DEFAULT_wxUSE_PROTOCOL=yes
1682 DEFAULT_wxUSE_PROTOCOL_HTTP=yes
1683 DEFAULT_wxUSE_PROTOCOL_FTP=yes
1684 DEFAULT_wxUSE_PROTOCOL_FILE=yes
1685 DEFAULT_wxUSE_URL=yes
10f2d63a
VZ
1686
1687 DEFAULT_wxUSE_COMMONDLGS=yes
1e6feb95
VZ
1688 DEFAULT_wxUSE_CHOICEDLG=yes
1689 DEFAULT_wxUSE_COLOURDLG=yes
10f2d63a 1690 DEFAULT_wxUSE_DIRDLG=yes
1e6feb95 1691 DEFAULT_wxUSE_FILEDLG=yes
8db37e06 1692 DEFAULT_wxUSE_FINDREPLDLG=yes
1e6feb95
VZ
1693 DEFAULT_wxUSE_FONTDLG=yes
1694 DEFAULT_wxUSE_MSGDLG=yes
1695 DEFAULT_wxUSE_NUMBERDLG=yes
10f2d63a 1696 DEFAULT_wxUSE_TEXTDLG=yes
cbca9943 1697 DEFAULT_wxUSE_SPLASH=yes
10f2d63a
VZ
1698 DEFAULT_wxUSE_STARTUP_TIPS=yes
1699 DEFAULT_wxUSE_PROGRESSDLG=yes
f33f19dd
VZ
1700 DEFAULT_wxUSE_WIZARDDLG=yes
1701
1e6feb95 1702 DEFAULT_wxUSE_MENUS=yes
10f2d63a
VZ
1703 DEFAULT_wxUSE_MINIFRAME=yes
1704 DEFAULT_wxUSE_HTML=yes
24528b0c 1705 DEFAULT_wxUSE_FILESYSTEM=yes
10f2d63a
VZ
1706 DEFAULT_wxUSE_FS_INET=yes
1707 DEFAULT_wxUSE_FS_ZIP=yes
1708 DEFAULT_wxUSE_BUSYINFO=yes
1709 DEFAULT_wxUSE_ZIPSTREAM=yes
1710 DEFAULT_wxUSE_VALIDATORS=yes
1711
1712 DEFAULT_wxUSE_ACCEL=yes
1e6feb95 1713 DEFAULT_wxUSE_BUTTON=yes
10f2d63a 1714 DEFAULT_wxUSE_BMPBUTTON=yes
1e6feb95
VZ
1715 DEFAULT_wxUSE_CALCTRL=yes
1716 DEFAULT_wxUSE_CARET=yes
10f2d63a
VZ
1717 DEFAULT_wxUSE_CHECKBOX=yes
1718 DEFAULT_wxUSE_CHECKLST=yes
1719 DEFAULT_wxUSE_CHOICE=yes
1720 DEFAULT_wxUSE_COMBOBOX=yes
1721 DEFAULT_wxUSE_GAUGE=yes
1722 DEFAULT_wxUSE_GRID=yes
cc977e5f 1723 DEFAULT_wxUSE_NEW_GRID=yes
10f2d63a
VZ
1724 DEFAULT_wxUSE_IMAGLIST=yes
1725 DEFAULT_wxUSE_LISTBOX=yes
1726 DEFAULT_wxUSE_LISTCTRL=yes
1727 DEFAULT_wxUSE_NOTEBOOK=yes
24176f2c 1728 DEFAULT_wxUSE_PROPSHEET=yes
10f2d63a
VZ
1729 DEFAULT_wxUSE_RADIOBOX=yes
1730 DEFAULT_wxUSE_RADIOBTN=yes
1731 DEFAULT_wxUSE_SASH=yes
1732 DEFAULT_wxUSE_SCROLLBAR=yes
1733 DEFAULT_wxUSE_SLIDER=yes
1734 DEFAULT_wxUSE_SPINBTN=yes
56cfaa52 1735 DEFAULT_wxUSE_SPINCTRL=yes
10f2d63a
VZ
1736 DEFAULT_wxUSE_SPLITTER=yes
1737 DEFAULT_wxUSE_STATBMP=yes
1738 DEFAULT_wxUSE_STATBOX=yes
1739 DEFAULT_wxUSE_STATLINE=yes
1e6feb95 1740 DEFAULT_wxUSE_STATTEXT=yes
10f2d63a
VZ
1741 DEFAULT_wxUSE_STATUSBAR=yes
1742 DEFAULT_wxUSE_TABDIALOG=no
1e6feb95 1743 DEFAULT_wxUSE_TEXTCTRL=yes
1db8dc4a 1744 DEFAULT_wxUSE_TOGGLEBTN=yes
10f2d63a 1745 DEFAULT_wxUSE_TOOLBAR=yes
360d6699
VZ
1746 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
1747 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
10f2d63a 1748 DEFAULT_wxUSE_TREECTRL=yes
9f41d601 1749 DEFAULT_wxUSE_POPUPWIN=yes
9926e4a4 1750 DEFAULT_wxUSE_TIPWINDOW=yes
10f2d63a
VZ
1751
1752 DEFAULT_wxUSE_UNICODE=no
a72a4bfa 1753 DEFAULT_wxUSE_UNICODE_MSLU=yes
10f2d63a
VZ
1754 DEFAULT_wxUSE_WCSRTOMBS=no
1755
edae8572 1756 DEFAULT_wxUSE_PALETTE=yes
0046ff7c 1757 DEFAULT_wxUSE_IMAGE=yes
10f2d63a
VZ
1758 DEFAULT_wxUSE_GIF=yes
1759 DEFAULT_wxUSE_PCX=yes
cc0e8480 1760 DEFAULT_wxUSE_IFF=no
10f2d63a 1761 DEFAULT_wxUSE_PNM=yes
0046ff7c 1762 DEFAULT_wxUSE_XPM=yes
658974ae 1763 DEFAULT_wxUSE_ICO_CUR=yes
10f2d63a
VZ
1764fi
1765
698dcdb6
VZ
1766
1767
10f2d63a
VZ
1768for toolkit in `echo $ALL_TOOLKITS`; do
1769 LINE=`grep "wxUSE_$toolkit" ${wx_arg_cache_file}`
1770 if test "x$LINE" != x ; then
1771 has_toolkit_in_cache=1
1772 eval "DEFAULT_$LINE"
1773 eval "CACHE_$toolkit=1"
1774 fi
1775done
1776
698dcdb6
VZ
1777
1778
1779 echo $ac_n "checking for --enable-gui""... $ac_c" 1>&6
986ecc86 1780echo "configure:1781: checking for --enable-gui" >&5
10f2d63a
VZ
1781 no_cache=0
1782 # Check whether --enable-gui or --disable-gui was given.
1783if test "${enable_gui+set}" = set; then
1784 enableval="$enable_gui"
698dcdb6 1785
10f2d63a
VZ
1786 if test "$enableval" = yes; then
1787 ac_cv_use_gui='wxUSE_GUI=yes'
1788 else
1789 ac_cv_use_gui='wxUSE_GUI=no'
1790 fi
698dcdb6 1791
10f2d63a 1792else
698dcdb6 1793
10f2d63a
VZ
1794 LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}`
1795 if test "x$LINE" != x ; then
1796 eval "DEFAULT_$LINE"
1797 else
1798 no_cache=1
1799 fi
1800
1801 ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI
698dcdb6
VZ
1802
1803fi
10f2d63a
VZ
1804
1805
1806 eval "$ac_cv_use_gui"
1807 if test "$no_cache" != 1; then
1808 echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp
1809 fi
1810
1811 if test "$wxUSE_GUI" = yes; then
698dcdb6 1812 echo "$ac_t""yes" 1>&6
10f2d63a 1813 else
698dcdb6 1814 echo "$ac_t""no" 1>&6
10f2d63a 1815 fi
698dcdb6 1816
10f2d63a 1817
b12915c1 1818if test "$wxUSE_GUI" = "yes"; then
10f2d63a 1819
1e6feb95
VZ
1820
1821 echo $ac_n "checking for --enable-universal""... $ac_c" 1>&6
986ecc86 1822echo "configure:1823: checking for --enable-universal" >&5
1e6feb95
VZ
1823 no_cache=0
1824 # Check whether --enable-universal or --disable-universal was given.
1825if test "${enable_universal+set}" = set; then
1826 enableval="$enable_universal"
1827
1828 if test "$enableval" = yes; then
1829 ac_cv_use_universal='wxUSE_UNIVERSAL=yes'
1830 else
1831 ac_cv_use_universal='wxUSE_UNIVERSAL=no'
1832 fi
1833
1834else
1835
1836 LINE=`grep "wxUSE_UNIVERSAL" ${wx_arg_cache_file}`
1837 if test "x$LINE" != x ; then
1838 eval "DEFAULT_$LINE"
1839 else
1840 no_cache=1
1841 fi
1842
1843 ac_cv_use_universal='wxUSE_UNIVERSAL='$DEFAULT_wxUSE_UNIVERSAL
1844
1845fi
1846
1847
1848 eval "$ac_cv_use_universal"
1849 if test "$no_cache" != 1; then
1850 echo $ac_cv_use_universal >> ${wx_arg_cache_file}.tmp
1851 fi
1852
1853 if test "$wxUSE_UNIVERSAL" = yes; then
1854 echo "$ac_t""yes" 1>&6
1855 else
1856 echo "$ac_t""no" 1>&6
1857 fi
1858
10f2d63a
VZ
1859# Check whether --with-gtk or --without-gtk was given.
1860if test "${with_gtk+set}" = set; then
1861 withval="$with_gtk"
1862 wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1
698dcdb6 1863fi
10f2d63a
VZ
1864
1865# Check whether --with-motif or --without-motif was given.
1866if test "${with_motif+set}" = set; then
1867 withval="$with_motif"
1868 wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1
698dcdb6 1869fi
10f2d63a 1870
b4085ce6
GD
1871# Check whether --with-mac or --without-mac was given.
1872if test "${with_mac+set}" = set; then
1873 withval="$with_mac"
1874 wxUSE_MAC="$withval" TOOLKIT_GIVEN=1
698dcdb6 1875fi
b4085ce6 1876
10f2d63a
VZ
1877# Check whether --with-wine or --without-wine was given.
1878if test "${with_wine+set}" = set; then
1879 withval="$with_wine"
1880 wxUSE_WINE="$withval" CACHE_WINE=1 TOOLKIT_GIVEN=1
698dcdb6 1881fi
10f2d63a 1882
77e13408
RL
1883# Check whether --with-msw or --without-msw was given.
1884if test "${with_msw+set}" = set; then
1885 withval="$with_msw"
b4efce5e 1886 wxUSE_MSW="$withval" CACHE_MSW=1 TOOLKIT_GIVEN=1
698dcdb6 1887fi
10f2d63a 1888
e07802fc
VZ
1889# Check whether --with-pm or --without-pm was given.
1890if test "${with_pm+set}" = set; then
1891 withval="$with_pm"
1892 wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1
698dcdb6
VZ
1893fi
1894
1e6feb95
VZ
1895# Check whether --with-mgl or --without-mgl was given.
1896if test "${with_mgl+set}" = set; then
1897 withval="$with_mgl"
6c657b52 1898 wxUSE_MGL="$withval" wxUSE_UNIVERSAL="yes" CACHE_MGL=1 TOOLKIT_GIVEN=1
1e6feb95
VZ
1899fi
1900
1725144d
RR
1901# Check whether --with-microwin or --without-microwin was given.
1902if test "${with_microwin+set}" = set; then
1903 withval="$with_microwin"
1904 wxUSE_MICROWIN="$withval" CACHE_MICROWIN=1 TOOLKIT_GIVEN=1
1905fi
1906
f79bd02d
JS
1907# Check whether --with-x11 or --without-x11 was given.
1908if test "${with_x11+set}" = set; then
1909 withval="$with_x11"
3c011993 1910 wxUSE_X11="$withval" wxUSE_UNIVERSAL="yes" CACHE_X11=1 TOOLKIT_GIVEN=1
f79bd02d
JS
1911fi
1912
10f2d63a 1913
ba875e66 1914 echo $ac_n "checking for --enable-nanox""... $ac_c" 1>&6
986ecc86 1915echo "configure:1916: checking for --enable-nanox" >&5
d8356fa3 1916 no_cache=0
ba875e66
VZ
1917 # Check whether --enable-nanox or --disable-nanox was given.
1918if test "${enable_nanox+set}" = set; then
1919 enableval="$enable_nanox"
d8356fa3
VZ
1920
1921 if test "$enableval" = yes; then
ba875e66 1922 ac_cv_use_nanox='wxUSE_NANOX=yes'
d8356fa3 1923 else
ba875e66 1924 ac_cv_use_nanox='wxUSE_NANOX=no'
d8356fa3
VZ
1925 fi
1926
1927else
1928
1929 LINE=`grep "wxUSE_NANOX" ${wx_arg_cache_file}`
1930 if test "x$LINE" != x ; then
1931 eval "DEFAULT_$LINE"
1932 else
1933 no_cache=1
1934 fi
1935
ba875e66 1936 ac_cv_use_nanox='wxUSE_NANOX='$DEFAULT_wxUSE_NANOX
d8356fa3
VZ
1937
1938fi
1939
1940
ba875e66 1941 eval "$ac_cv_use_nanox"
d8356fa3 1942 if test "$no_cache" != 1; then
ba875e66 1943 echo $ac_cv_use_nanox >> ${wx_arg_cache_file}.tmp
d8356fa3
VZ
1944 fi
1945
1946 if test "$wxUSE_NANOX" = yes; then
1947 echo "$ac_t""yes" 1>&6
1948 else
1949 echo "$ac_t""no" 1>&6
1950 fi
1951
1952
8168de4c
VZ
1953# Check whether --enable-gtk2 or --disable-gtk2 was given.
1954if test "${enable_gtk2+set}" = set; then
1955 enableval="$enable_gtk2"
9e691f46 1956 wxUSE_GTK2="yes"
10f2d63a 1957else
9e691f46 1958 wxUSE_GTK2="no"
698dcdb6
VZ
1959fi
1960
703e0a69 1961
1e487827 1962
698dcdb6 1963 echo $ac_n "checking for --with-libpng""... $ac_c" 1>&6
986ecc86 1964echo "configure:1965: checking for --with-libpng" >&5
698dcdb6
VZ
1965 no_cache=0
1966 # Check whether --with-libpng or --without-libpng was given.
b12915c1
VZ
1967if test "${with_libpng+set}" = set; then
1968 withval="$with_libpng"
698dcdb6 1969
10f2d63a 1970 if test "$withval" = yes; then
b12915c1 1971 ac_cv_use_libpng='wxUSE_LIBPNG=yes'
422107f9 1972 elif test "$withval" = no; then
b12915c1 1973 ac_cv_use_libpng='wxUSE_LIBPNG=no'
422107f9
VZ
1974 elif test "$withval" = sys; then
1975 ac_cv_use_libpng='wxUSE_LIBPNG=sys'
4f14bcd8
GD
1976 elif test "$withval" = builtin; then
1977 ac_cv_use_libpng='wxUSE_LIBPNG=builtin'
422107f9 1978 else
4f14bcd8 1979 { echo "configure: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" 1>&2; exit 1; }
10f2d63a 1980 fi
698dcdb6 1981
10f2d63a 1982else
698dcdb6 1983
b12915c1 1984 LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}`
10f2d63a
VZ
1985 if test "x$LINE" != x ; then
1986 eval "DEFAULT_$LINE"
1987 else
1988 no_cache=1
1989 fi
1990
b12915c1 1991 ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG
698dcdb6
VZ
1992
1993fi
10f2d63a
VZ
1994
1995
b12915c1 1996 eval "$ac_cv_use_libpng"
10f2d63a 1997 if test "$no_cache" != 1; then
b12915c1 1998 echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
1999 fi
2000
b12915c1 2001 if test "$wxUSE_LIBPNG" = yes; then
698dcdb6 2002 echo "$ac_t""yes" 1>&6
422107f9 2003 elif test "$wxUSE_LIBPNG" = no; then
698dcdb6 2004 echo "$ac_t""no" 1>&6
422107f9 2005 elif test "$wxUSE_LIBPNG" = sys; then
698dcdb6 2006 echo "$ac_t""system version" 1>&6
4f14bcd8
GD
2007 elif test "$wxUSE_LIBPNG" = builtin; then
2008 echo "$ac_t""builtin version" 1>&6
422107f9 2009 else
4f14bcd8 2010 { echo "configure: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" 1>&2; exit 1; }
10f2d63a 2011 fi
698dcdb6 2012
10f2d63a 2013
698dcdb6 2014 echo $ac_n "checking for --with-libjpeg""... $ac_c" 1>&6
986ecc86 2015echo "configure:2016: checking for --with-libjpeg" >&5
10f2d63a 2016 no_cache=0
698dcdb6 2017 # Check whether --with-libjpeg or --without-libjpeg was given.
b12915c1
VZ
2018if test "${with_libjpeg+set}" = set; then
2019 withval="$with_libjpeg"
698dcdb6 2020
10f2d63a 2021 if test "$withval" = yes; then
b12915c1 2022 ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes'
422107f9 2023 elif test "$withval" = no; then
b12915c1 2024 ac_cv_use_libjpeg='wxUSE_LIBJPEG=no'
422107f9
VZ
2025 elif test "$withval" = sys; then
2026 ac_cv_use_libjpeg='wxUSE_LIBJPEG=sys'
4f14bcd8
GD
2027 elif test "$withval" = builtin; then
2028 ac_cv_use_libjpeg='wxUSE_LIBJPEG=builtin'
422107f9 2029 else
4f14bcd8 2030 { echo "configure: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" 1>&2; exit 1; }
10f2d63a 2031 fi
698dcdb6 2032
10f2d63a 2033else
698dcdb6 2034
b12915c1 2035 LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}`
10f2d63a
VZ
2036 if test "x$LINE" != x ; then
2037 eval "DEFAULT_$LINE"
2038 else
2039 no_cache=1
2040 fi
2041
b12915c1 2042 ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG
698dcdb6
VZ
2043
2044fi
10f2d63a
VZ
2045
2046
b12915c1 2047 eval "$ac_cv_use_libjpeg"
10f2d63a 2048 if test "$no_cache" != 1; then
b12915c1 2049 echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
2050 fi
2051
b12915c1 2052 if test "$wxUSE_LIBJPEG" = yes; then
698dcdb6 2053 echo "$ac_t""yes" 1>&6
422107f9 2054 elif test "$wxUSE_LIBJPEG" = no; then
698dcdb6 2055 echo "$ac_t""no" 1>&6
422107f9 2056 elif test "$wxUSE_LIBJPEG" = sys; then
698dcdb6 2057 echo "$ac_t""system version" 1>&6
4f14bcd8
GD
2058 elif test "$wxUSE_LIBJPEG" = builtin; then
2059 echo "$ac_t""builtin version" 1>&6
422107f9 2060 else
4f14bcd8 2061 { echo "configure: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" 1>&2; exit 1; }
10f2d63a 2062 fi
698dcdb6 2063
10f2d63a 2064
698dcdb6 2065 echo $ac_n "checking for --with-libtiff""... $ac_c" 1>&6
986ecc86 2066echo "configure:2067: checking for --with-libtiff" >&5
10f2d63a 2067 no_cache=0
698dcdb6 2068 # Check whether --with-libtiff or --without-libtiff was given.
b12915c1
VZ
2069if test "${with_libtiff+set}" = set; then
2070 withval="$with_libtiff"
698dcdb6 2071
10f2d63a 2072 if test "$withval" = yes; then
b12915c1 2073 ac_cv_use_libtiff='wxUSE_LIBTIFF=yes'
0dcf9893 2074 elif test "$withval" = no; then
b12915c1 2075 ac_cv_use_libtiff='wxUSE_LIBTIFF=no'
0dcf9893
VZ
2076 elif test "$withval" = sys; then
2077 ac_cv_use_libtiff='wxUSE_LIBTIFF=sys'
4f14bcd8
GD
2078 elif test "$withval" = builtin; then
2079 ac_cv_use_libtiff='wxUSE_LIBTIFF=builtin'
0dcf9893 2080 else
4f14bcd8 2081 { echo "configure: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" 1>&2; exit 1; }
10f2d63a 2082 fi
698dcdb6 2083
10f2d63a 2084else
698dcdb6 2085
b12915c1 2086 LINE=`grep "wxUSE_LIBTIFF" ${wx_arg_cache_file}`
10f2d63a
VZ
2087 if test "x$LINE" != x ; then
2088 eval "DEFAULT_$LINE"
2089 else
2090 no_cache=1
2091 fi
2092
b12915c1 2093 ac_cv_use_libtiff='wxUSE_LIBTIFF='$DEFAULT_wxUSE_LIBTIFF
698dcdb6
VZ
2094
2095fi
10f2d63a
VZ
2096
2097
b12915c1 2098 eval "$ac_cv_use_libtiff"
10f2d63a 2099 if test "$no_cache" != 1; then
b12915c1 2100 echo $ac_cv_use_libtiff >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
2101 fi
2102
b12915c1 2103 if test "$wxUSE_LIBTIFF" = yes; then
698dcdb6 2104 echo "$ac_t""yes" 1>&6
0dcf9893 2105 elif test "$wxUSE_LIBTIFF" = no; then
698dcdb6 2106 echo "$ac_t""no" 1>&6
0dcf9893 2107 elif test "$wxUSE_LIBTIFF" = sys; then
698dcdb6 2108 echo "$ac_t""system version" 1>&6
4f14bcd8
GD
2109 elif test "$wxUSE_LIBTIFF" = builtin; then
2110 echo "$ac_t""builtin version" 1>&6
0dcf9893 2111 else
4f14bcd8 2112 { echo "configure: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" 1>&2; exit 1; }
10f2d63a 2113 fi
698dcdb6 2114
10f2d63a 2115
698dcdb6 2116 echo $ac_n "checking for --with-opengl""... $ac_c" 1>&6
986ecc86 2117echo "configure:2118: checking for --with-opengl" >&5
10f2d63a 2118 no_cache=0
698dcdb6 2119 # Check whether --with-opengl or --without-opengl was given.
b12915c1
VZ
2120if test "${with_opengl+set}" = set; then
2121 withval="$with_opengl"
698dcdb6 2122
10f2d63a 2123 if test "$withval" = yes; then
b12915c1 2124 ac_cv_use_opengl='wxUSE_OPENGL=yes'
10f2d63a 2125 else
b12915c1 2126 ac_cv_use_opengl='wxUSE_OPENGL=no'
10f2d63a 2127 fi
698dcdb6 2128
10f2d63a 2129else
698dcdb6 2130
b12915c1 2131 LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}`
10f2d63a
VZ
2132 if test "x$LINE" != x ; then
2133 eval "DEFAULT_$LINE"
2134 else
2135 no_cache=1
2136 fi
2137
b12915c1 2138 ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL
698dcdb6
VZ
2139
2140fi
10f2d63a
VZ
2141
2142
b12915c1 2143 eval "$ac_cv_use_opengl"
10f2d63a 2144 if test "$no_cache" != 1; then
b12915c1 2145 echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
2146 fi
2147
b12915c1 2148 if test "$wxUSE_OPENGL" = yes; then
698dcdb6 2149 echo "$ac_t""yes" 1>&6
10f2d63a 2150 else
698dcdb6 2151 echo "$ac_t""no" 1>&6
10f2d63a 2152 fi
698dcdb6 2153
10f2d63a 2154
b12915c1
VZ
2155fi
2156
1e487827 2157
698dcdb6 2158 echo $ac_n "checking for --with-dmalloc""... $ac_c" 1>&6
986ecc86 2159echo "configure:2160: checking for --with-dmalloc" >&5
698dcdb6
VZ
2160 no_cache=0
2161 # Check whether --with-dmalloc or --without-dmalloc was given.
b12915c1
VZ
2162if test "${with_dmalloc+set}" = set; then
2163 withval="$with_dmalloc"
698dcdb6 2164
c7a2bf27 2165 if test "$withval" = yes; then
b12915c1 2166 ac_cv_use_dmalloc='wxUSE_DMALLOC=yes'
c7a2bf27 2167 else
b12915c1 2168 ac_cv_use_dmalloc='wxUSE_DMALLOC=no'
c7a2bf27 2169 fi
698dcdb6 2170
c7a2bf27 2171else
698dcdb6 2172
b12915c1 2173 LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}`
c7a2bf27
RR
2174 if test "x$LINE" != x ; then
2175 eval "DEFAULT_$LINE"
2176 else
2177 no_cache=1
2178 fi
2179
b12915c1 2180 ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC
698dcdb6
VZ
2181
2182fi
c7a2bf27
RR
2183
2184
b12915c1 2185 eval "$ac_cv_use_dmalloc"
c7a2bf27 2186 if test "$no_cache" != 1; then
b12915c1 2187 echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp
c7a2bf27
RR
2188 fi
2189
b12915c1 2190 if test "$wxUSE_DMALLOC" = yes; then
698dcdb6 2191 echo "$ac_t""yes" 1>&6
c7a2bf27 2192 else
698dcdb6 2193 echo "$ac_t""no" 1>&6
c7a2bf27 2194 fi
698dcdb6 2195
c7a2bf27 2196
3e44f09d 2197 echo $ac_n "checking for --with-regex""... $ac_c" 1>&6
986ecc86 2198echo "configure:2199: checking for --with-regex" >&5
3e44f09d
VZ
2199 no_cache=0
2200 # Check whether --with-regex or --without-regex was given.
2201if test "${with_regex+set}" = set; then
2202 withval="$with_regex"
2203
2204 if test "$withval" = yes; then
2205 ac_cv_use_regex='wxUSE_REGEX=yes'
2206 elif test "$withval" = no; then
2207 ac_cv_use_regex='wxUSE_REGEX=no'
2208 elif test "$withval" = sys; then
2209 ac_cv_use_regex='wxUSE_REGEX=sys'
4f14bcd8
GD
2210 elif test "$withval" = builtin; then
2211 ac_cv_use_regex='wxUSE_REGEX=builtin'
3e44f09d 2212 else
4f14bcd8 2213 { echo "configure: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" 1>&2; exit 1; }
3e44f09d
VZ
2214 fi
2215
2216else
2217
2218 LINE=`grep "wxUSE_REGEX" ${wx_arg_cache_file}`
2219 if test "x$LINE" != x ; then
2220 eval "DEFAULT_$LINE"
2221 else
2222 no_cache=1
2223 fi
2224
2225 ac_cv_use_regex='wxUSE_REGEX='$DEFAULT_wxUSE_REGEX
2226
2227fi
2228
2229
2230 eval "$ac_cv_use_regex"
2231 if test "$no_cache" != 1; then
2232 echo $ac_cv_use_regex >> ${wx_arg_cache_file}.tmp
2233 fi
2234
2235 if test "$wxUSE_REGEX" = yes; then
2236 echo "$ac_t""yes" 1>&6
2237 elif test "$wxUSE_REGEX" = no; then
2238 echo "$ac_t""no" 1>&6
2239 elif test "$wxUSE_REGEX" = sys; then
2240 echo "$ac_t""system version" 1>&6
4f14bcd8
GD
2241 elif test "$wxUSE_REGEX" = builtin; then
2242 echo "$ac_t""builtin version" 1>&6
3e44f09d 2243 else
4f14bcd8 2244 { echo "configure: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" 1>&2; exit 1; }
3e44f09d
VZ
2245 fi
2246
2247
698dcdb6 2248 echo $ac_n "checking for --with-zlib""... $ac_c" 1>&6
986ecc86 2249echo "configure:2250: checking for --with-zlib" >&5
10f2d63a 2250 no_cache=0
698dcdb6 2251 # Check whether --with-zlib or --without-zlib was given.
b12915c1
VZ
2252if test "${with_zlib+set}" = set; then
2253 withval="$with_zlib"
698dcdb6 2254
10f2d63a 2255 if test "$withval" = yes; then
b12915c1 2256 ac_cv_use_zlib='wxUSE_ZLIB=yes'
422107f9 2257 elif test "$withval" = no; then
b12915c1 2258 ac_cv_use_zlib='wxUSE_ZLIB=no'
422107f9
VZ
2259 elif test "$withval" = sys; then
2260 ac_cv_use_zlib='wxUSE_ZLIB=sys'
4f14bcd8
GD
2261 elif test "$withval" = builtin; then
2262 ac_cv_use_zlib='wxUSE_ZLIB=builtin'
422107f9 2263 else
4f14bcd8 2264 { echo "configure: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" 1>&2; exit 1; }
10f2d63a 2265 fi
698dcdb6 2266
10f2d63a 2267else
698dcdb6 2268
b12915c1 2269 LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}`
10f2d63a
VZ
2270 if test "x$LINE" != x ; then
2271 eval "DEFAULT_$LINE"
2272 else
2273 no_cache=1
2274 fi
2275
b12915c1 2276 ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB
698dcdb6
VZ
2277
2278fi
10f2d63a
VZ
2279
2280
b12915c1 2281 eval "$ac_cv_use_zlib"
10f2d63a 2282 if test "$no_cache" != 1; then
b12915c1 2283 echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
2284 fi
2285
b12915c1 2286 if test "$wxUSE_ZLIB" = yes; then
698dcdb6 2287 echo "$ac_t""yes" 1>&6
422107f9 2288 elif test "$wxUSE_ZLIB" = no; then
698dcdb6 2289 echo "$ac_t""no" 1>&6
422107f9 2290 elif test "$wxUSE_ZLIB" = sys; then
698dcdb6 2291 echo "$ac_t""system version" 1>&6
4f14bcd8
GD
2292 elif test "$wxUSE_ZLIB" = builtin; then
2293 echo "$ac_t""builtin version" 1>&6
422107f9 2294 else
4f14bcd8 2295 { echo "configure: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" 1>&2; exit 1; }
10f2d63a 2296 fi
698dcdb6 2297
10f2d63a 2298
698dcdb6 2299 echo $ac_n "checking for --with-odbc""... $ac_c" 1>&6
986ecc86 2300echo "configure:2301: checking for --with-odbc" >&5
10f2d63a 2301 no_cache=0
698dcdb6 2302 # Check whether --with-odbc or --without-odbc was given.
10f2d63a
VZ
2303if test "${with_odbc+set}" = set; then
2304 withval="$with_odbc"
698dcdb6 2305
10f2d63a
VZ
2306 if test "$withval" = yes; then
2307 ac_cv_use_odbc='wxUSE_ODBC=yes'
2308 else
2309 ac_cv_use_odbc='wxUSE_ODBC=no'
2310 fi
698dcdb6 2311
10f2d63a 2312else
698dcdb6 2313
10f2d63a
VZ
2314 LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}`
2315 if test "x$LINE" != x ; then
2316 eval "DEFAULT_$LINE"
2317 else
2318 no_cache=1
2319 fi
2320
2321 ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC
698dcdb6
VZ
2322
2323fi
10f2d63a
VZ
2324
2325
2326 eval "$ac_cv_use_odbc"
2327 if test "$no_cache" != 1; then
2328 echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp
2329 fi
2330
2331 if test "$wxUSE_ODBC" = yes; then
698dcdb6 2332 echo "$ac_t""yes" 1>&6
10f2d63a 2333 else
698dcdb6 2334 echo "$ac_t""no" 1>&6
10f2d63a 2335 fi
698dcdb6
VZ
2336
2337
10f2d63a 2338
698dcdb6 2339
698dcdb6 2340 echo $ac_n "checking for --enable-shared""... $ac_c" 1>&6
986ecc86 2341echo "configure:2342: checking for --enable-shared" >&5
10f2d63a
VZ
2342 no_cache=0
2343 # Check whether --enable-shared or --disable-shared was given.
2344if test "${enable_shared+set}" = set; then
2345 enableval="$enable_shared"
698dcdb6 2346
10f2d63a
VZ
2347 if test "$enableval" = yes; then
2348 ac_cv_use_shared='wxUSE_SHARED=yes'
2349 else
2350 ac_cv_use_shared='wxUSE_SHARED=no'
2351 fi
698dcdb6 2352
10f2d63a 2353else
698dcdb6 2354
10f2d63a
VZ
2355 LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}`
2356 if test "x$LINE" != x ; then
2357 eval "DEFAULT_$LINE"
2358 else
2359 no_cache=1
2360 fi
2361
2362 ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED
698dcdb6
VZ
2363
2364fi
10f2d63a
VZ
2365
2366
2367 eval "$ac_cv_use_shared"
2368 if test "$no_cache" != 1; then
2369 echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp
2370 fi
2371
2372 if test "$wxUSE_SHARED" = yes; then
698dcdb6 2373 echo "$ac_t""yes" 1>&6
10f2d63a 2374 else
698dcdb6 2375 echo "$ac_t""no" 1>&6
10f2d63a 2376 fi
698dcdb6 2377
10f2d63a 2378
3a922bb4 2379 echo $ac_n "checking for --enable-soname""... $ac_c" 1>&6
986ecc86 2380echo "configure:2381: checking for --enable-soname" >&5
00cf1208 2381 no_cache=0
3a922bb4
RL
2382 # Check whether --enable-soname or --disable-soname was given.
2383if test "${enable_soname+set}" = set; then
2384 enableval="$enable_soname"
698dcdb6 2385
00cf1208 2386 if test "$enableval" = yes; then
3a922bb4 2387 ac_cv_use_soname='wxUSE_SONAME=yes'
00cf1208 2388 else
3a922bb4 2389 ac_cv_use_soname='wxUSE_SONAME=no'
00cf1208 2390 fi
698dcdb6 2391
00cf1208 2392else
698dcdb6 2393
3a922bb4 2394 LINE=`grep "wxUSE_SONAME" ${wx_arg_cache_file}`
00cf1208
RR
2395 if test "x$LINE" != x ; then
2396 eval "DEFAULT_$LINE"
2397 else
2398 no_cache=1
2399 fi
2400
3a922bb4 2401 ac_cv_use_soname='wxUSE_SONAME='$DEFAULT_wxUSE_SONAME
698dcdb6
VZ
2402
2403fi
00cf1208
RR
2404
2405
3a922bb4 2406 eval "$ac_cv_use_soname"
00cf1208 2407 if test "$no_cache" != 1; then
3a922bb4 2408 echo $ac_cv_use_soname >> ${wx_arg_cache_file}.tmp
00cf1208
RR
2409 fi
2410
3a922bb4 2411 if test "$wxUSE_SONAME" = yes; then
698dcdb6 2412 echo "$ac_t""yes" 1>&6
00cf1208 2413 else
698dcdb6 2414 echo "$ac_t""no" 1>&6
00cf1208 2415 fi
698dcdb6 2416
00cf1208 2417
698dcdb6 2418 echo $ac_n "checking for --enable-optimise""... $ac_c" 1>&6
986ecc86 2419echo "configure:2420: checking for --enable-optimise" >&5
10f2d63a
VZ
2420 no_cache=0
2421 # Check whether --enable-optimise or --disable-optimise was given.
2422if test "${enable_optimise+set}" = set; then
2423 enableval="$enable_optimise"
698dcdb6 2424
10f2d63a
VZ
2425 if test "$enableval" = yes; then
2426 ac_cv_use_optimise='wxUSE_OPTIMISE=yes'
2427 else
2428 ac_cv_use_optimise='wxUSE_OPTIMISE=no'
2429 fi
698dcdb6 2430
10f2d63a 2431else
698dcdb6 2432
10f2d63a
VZ
2433 LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}`
2434 if test "x$LINE" != x ; then
2435 eval "DEFAULT_$LINE"
2436 else
2437 no_cache=1
2438 fi
2439
2440 ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE
698dcdb6
VZ
2441
2442fi
10f2d63a
VZ
2443
2444
2445 eval "$ac_cv_use_optimise"
2446 if test "$no_cache" != 1; then
2447 echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp
2448 fi
2449
2450 if test "$wxUSE_OPTIMISE" = yes; then
698dcdb6 2451 echo "$ac_t""yes" 1>&6
10f2d63a 2452 else
698dcdb6 2453 echo "$ac_t""no" 1>&6
10f2d63a 2454 fi
698dcdb6 2455
10f2d63a 2456
698dcdb6 2457 echo $ac_n "checking for --enable-debug""... $ac_c" 1>&6
986ecc86 2458echo "configure:2459: checking for --enable-debug" >&5
10f2d63a
VZ
2459 no_cache=0
2460 # Check whether --enable-debug or --disable-debug was given.
2461if test "${enable_debug+set}" = set; then
2462 enableval="$enable_debug"
698dcdb6 2463
10f2d63a
VZ
2464 if test "$enableval" = yes; then
2465 ac_cv_use_debug='wxUSE_DEBUG=yes'
2466 else
2467 ac_cv_use_debug='wxUSE_DEBUG=no'
2468 fi
698dcdb6 2469
10f2d63a 2470else
698dcdb6 2471
10f2d63a
VZ
2472 LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}`
2473 if test "x$LINE" != x ; then
2474 eval "DEFAULT_$LINE"
2475 else
2476 no_cache=1
2477 fi
2478
2479 ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG
698dcdb6
VZ
2480
2481fi
10f2d63a
VZ
2482
2483
2484 eval "$ac_cv_use_debug"
2485 if test "$no_cache" != 1; then
2486 echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp
2487 fi
2488
2489 if test "$wxUSE_DEBUG" = yes; then
698dcdb6 2490 echo "$ac_t""yes" 1>&6
10f2d63a 2491 else
698dcdb6 2492 echo "$ac_t""no" 1>&6
10f2d63a 2493 fi
698dcdb6 2494
10f2d63a 2495
683dccda
GD
2496
2497 echo $ac_n "checking for --enable-precomp""... $ac_c" 1>&6
986ecc86 2498echo "configure:2499: checking for --enable-precomp" >&5
683dccda
GD
2499 no_cache=0
2500 # Check whether --enable-precomp or --disable-precomp was given.
2501if test "${enable_precomp+set}" = set; then
2502 enableval="$enable_precomp"
2503
2504 if test "$enableval" = yes; then
2505 ac_cv_use_precomp='wxUSE_PRECOMP=yes'
2506 else
2507 ac_cv_use_precomp='wxUSE_PRECOMP=no'
2508 fi
2509
2510else
2511
2512 LINE=`grep "wxUSE_PRECOMP" ${wx_arg_cache_file}`
2513 if test "x$LINE" != x ; then
2514 eval "DEFAULT_$LINE"
2515 else
2516 no_cache=1
2517 fi
2518
2519 ac_cv_use_precomp='wxUSE_PRECOMP='$DEFAULT_wxUSE_PRECOMP
2520
2521fi
2522
2523
2524 eval "$ac_cv_use_precomp"
2525 if test "$no_cache" != 1; then
2526 echo $ac_cv_use_precomp >> ${wx_arg_cache_file}.tmp
2527 fi
2528
2529 if test "$wxUSE_PRECOMP" = yes; then
2530 echo "$ac_t""yes" 1>&6
2531 else
2532 echo "$ac_t""no" 1>&6
2533 fi
2534
2535
10f2d63a
VZ
2536if test "$wxUSE_DEBUG" = "yes"; then
2537 DEFAULT_wxUSE_DEBUG_FLAG=yes
2538 DEFAULT_wxUSE_DEBUG_INFO=yes
2539elif test "$wxUSE_DEBUG" = "no"; then
2540 DEFAULT_wxUSE_DEBUG_FLAG=no
2541 DEFAULT_wxUSE_DEBUG_INFO=no
2542fi
2543
698dcdb6
VZ
2544
2545 echo $ac_n "checking for --enable-debug_flag""... $ac_c" 1>&6
986ecc86 2546echo "configure:2547: checking for --enable-debug_flag" >&5
10f2d63a
VZ
2547 no_cache=0
2548 # Check whether --enable-debug_flag or --disable-debug_flag was given.
2549if test "${enable_debug_flag+set}" = set; then
2550 enableval="$enable_debug_flag"
698dcdb6 2551
10f2d63a
VZ
2552 if test "$enableval" = yes; then
2553 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes'
2554 else
2555 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no'
2556 fi
698dcdb6 2557
10f2d63a 2558else
698dcdb6 2559
10f2d63a
VZ
2560 LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}`
2561 if test "x$LINE" != x ; then
2562 eval "DEFAULT_$LINE"
2563 else
2564 no_cache=1
2565 fi
2566
2567 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG
698dcdb6
VZ
2568
2569fi
10f2d63a
VZ
2570
2571
2572 eval "$ac_cv_use_debug_flag"
2573 if test "$no_cache" != 1; then
2574 echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp
2575 fi
2576
2577 if test "$wxUSE_DEBUG_FLAG" = yes; then
698dcdb6 2578 echo "$ac_t""yes" 1>&6
10f2d63a 2579 else
698dcdb6 2580 echo "$ac_t""no" 1>&6
10f2d63a 2581 fi
698dcdb6 2582
10f2d63a 2583
698dcdb6 2584 echo $ac_n "checking for --enable-debug_info""... $ac_c" 1>&6
986ecc86 2585echo "configure:2586: checking for --enable-debug_info" >&5
10f2d63a
VZ
2586 no_cache=0
2587 # Check whether --enable-debug_info or --disable-debug_info was given.
2588if test "${enable_debug_info+set}" = set; then
2589 enableval="$enable_debug_info"
698dcdb6 2590
10f2d63a
VZ
2591 if test "$enableval" = yes; then
2592 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes'
2593 else
2594 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no'
2595 fi
698dcdb6 2596
10f2d63a 2597else
698dcdb6 2598
10f2d63a
VZ
2599 LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}`
2600 if test "x$LINE" != x ; then
2601 eval "DEFAULT_$LINE"
2602 else
2603 no_cache=1
2604 fi
2605
2606 ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO
698dcdb6
VZ
2607
2608fi
10f2d63a
VZ
2609
2610
2611 eval "$ac_cv_use_debug_info"
2612 if test "$no_cache" != 1; then
2613 echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp
2614 fi
2615
2616 if test "$wxUSE_DEBUG_INFO" = yes; then
698dcdb6 2617 echo "$ac_t""yes" 1>&6
10f2d63a 2618 else
698dcdb6 2619 echo "$ac_t""no" 1>&6
10f2d63a 2620 fi
698dcdb6 2621
10f2d63a 2622
698dcdb6 2623 echo $ac_n "checking for --enable-debug_gdb""... $ac_c" 1>&6
986ecc86 2624echo "configure:2625: checking for --enable-debug_gdb" >&5
10f2d63a
VZ
2625 no_cache=0
2626 # Check whether --enable-debug_gdb or --disable-debug_gdb was given.
2627if test "${enable_debug_gdb+set}" = set; then
2628 enableval="$enable_debug_gdb"
698dcdb6 2629
10f2d63a
VZ
2630 if test "$enableval" = yes; then
2631 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes'
2632 else
2633 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no'
2634 fi
698dcdb6 2635
10f2d63a 2636else
698dcdb6 2637
10f2d63a
VZ
2638 LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}`
2639 if test "x$LINE" != x ; then
2640 eval "DEFAULT_$LINE"
2641 else
2642 no_cache=1
2643 fi
2644
2645 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB
698dcdb6
VZ
2646
2647fi
10f2d63a
VZ
2648
2649
2650 eval "$ac_cv_use_debug_gdb"
2651 if test "$no_cache" != 1; then
2652 echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp
2653 fi
2654
2655 if test "$wxUSE_DEBUG_GDB" = yes; then
698dcdb6 2656 echo "$ac_t""yes" 1>&6
10f2d63a 2657 else
698dcdb6 2658 echo "$ac_t""no" 1>&6
10f2d63a 2659 fi
698dcdb6 2660
10f2d63a 2661
698dcdb6 2662 echo $ac_n "checking for --enable-debug_cntxt""... $ac_c" 1>&6
986ecc86 2663echo "configure:2664: checking for --enable-debug_cntxt" >&5
10f2d63a
VZ
2664 no_cache=0
2665 # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given.
2666if test "${enable_debug_cntxt+set}" = set; then
2667 enableval="$enable_debug_cntxt"
698dcdb6 2668
10f2d63a
VZ
2669 if test "$enableval" = yes; then
2670 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes'
2671 else
2672 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no'
2673 fi
698dcdb6 2674
10f2d63a 2675else
698dcdb6 2676
10f2d63a
VZ
2677 LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}`
2678 if test "x$LINE" != x ; then
2679 eval "DEFAULT_$LINE"
2680 else
2681 no_cache=1
2682 fi
2683
2684 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT
698dcdb6
VZ
2685
2686fi
10f2d63a
VZ
2687
2688
2689 eval "$ac_cv_use_debug_cntxt"
2690 if test "$no_cache" != 1; then
2691 echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp
2692 fi
2693
2694 if test "$wxUSE_DEBUG_CONTEXT" = yes; then
698dcdb6 2695 echo "$ac_t""yes" 1>&6
10f2d63a 2696 else
698dcdb6 2697 echo "$ac_t""no" 1>&6
10f2d63a 2698 fi
698dcdb6 2699
10f2d63a 2700
698dcdb6 2701 echo $ac_n "checking for --enable-mem_tracing""... $ac_c" 1>&6
986ecc86 2702echo "configure:2703: checking for --enable-mem_tracing" >&5
10f2d63a
VZ
2703 no_cache=0
2704 # Check whether --enable-mem_tracing or --disable-mem_tracing was given.
2705if test "${enable_mem_tracing+set}" = set; then
2706 enableval="$enable_mem_tracing"
698dcdb6 2707
10f2d63a
VZ
2708 if test "$enableval" = yes; then
2709 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes'
2710 else
2711 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no'
2712 fi
698dcdb6 2713
10f2d63a 2714else
698dcdb6 2715
10f2d63a
VZ
2716 LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}`
2717 if test "x$LINE" != x ; then
2718 eval "DEFAULT_$LINE"
2719 else
2720 no_cache=1
2721 fi
2722
2723 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING
698dcdb6
VZ
2724
2725fi
10f2d63a
VZ
2726
2727
2728 eval "$ac_cv_use_mem_tracing"
2729 if test "$no_cache" != 1; then
2730 echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp
2731 fi
2732
2733 if test "$wxUSE_MEM_TRACING" = yes; then
698dcdb6 2734 echo "$ac_t""yes" 1>&6
10f2d63a 2735 else
698dcdb6 2736 echo "$ac_t""no" 1>&6
10f2d63a 2737 fi
698dcdb6 2738
10f2d63a 2739
698dcdb6 2740 echo $ac_n "checking for --enable-profile""... $ac_c" 1>&6
986ecc86 2741echo "configure:2742: checking for --enable-profile" >&5
10f2d63a
VZ
2742 no_cache=0
2743 # Check whether --enable-profile or --disable-profile was given.
2744if test "${enable_profile+set}" = set; then
2745 enableval="$enable_profile"
698dcdb6 2746
10f2d63a
VZ
2747 if test "$enableval" = yes; then
2748 ac_cv_use_profile='wxUSE_PROFILE=yes'
2749 else
2750 ac_cv_use_profile='wxUSE_PROFILE=no'
2751 fi
698dcdb6 2752
10f2d63a 2753else
698dcdb6 2754
10f2d63a
VZ
2755 LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}`
2756 if test "x$LINE" != x ; then
2757 eval "DEFAULT_$LINE"
2758 else
2759 no_cache=1
2760 fi
2761
2762 ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE
698dcdb6
VZ
2763
2764fi
10f2d63a
VZ
2765
2766
2767 eval "$ac_cv_use_profile"
2768 if test "$no_cache" != 1; then
2769 echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp
2770 fi
2771
2772 if test "$wxUSE_PROFILE" = yes; then
698dcdb6 2773 echo "$ac_t""yes" 1>&6
10f2d63a 2774 else
698dcdb6 2775 echo "$ac_t""no" 1>&6
10f2d63a 2776 fi
698dcdb6 2777
10f2d63a 2778
698dcdb6 2779 echo $ac_n "checking for --enable-no_rtti""... $ac_c" 1>&6
986ecc86 2780echo "configure:2781: checking for --enable-no_rtti" >&5
10f2d63a
VZ
2781 no_cache=0
2782 # Check whether --enable-no_rtti or --disable-no_rtti was given.
2783if test "${enable_no_rtti+set}" = set; then
2784 enableval="$enable_no_rtti"
698dcdb6 2785
10f2d63a
VZ
2786 if test "$enableval" = yes; then
2787 ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes'
2788 else
2789 ac_cv_use_no_rtti='wxUSE_NO_RTTI=no'
2790 fi
698dcdb6 2791
10f2d63a 2792else
698dcdb6 2793
10f2d63a
VZ
2794 LINE=`grep "wxUSE_NO_RTTI" ${wx_arg_cache_file}`
2795 if test "x$LINE" != x ; then
2796 eval "DEFAULT_$LINE"
2797 else
2798 no_cache=1
2799 fi
2800
2801 ac_cv_use_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI
698dcdb6
VZ
2802
2803fi
10f2d63a
VZ
2804
2805
2806 eval "$ac_cv_use_no_rtti"
2807 if test "$no_cache" != 1; then
2808 echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp
2809 fi
2810
2811 if test "$wxUSE_NO_RTTI" = yes; then
698dcdb6 2812 echo "$ac_t""yes" 1>&6
10f2d63a 2813 else
698dcdb6 2814 echo "$ac_t""no" 1>&6
10f2d63a 2815 fi
698dcdb6 2816
10f2d63a 2817
698dcdb6 2818 echo $ac_n "checking for --enable-no_exceptions""... $ac_c" 1>&6
986ecc86 2819echo "configure:2820: checking for --enable-no_exceptions" >&5
10f2d63a
VZ
2820 no_cache=0
2821 # Check whether --enable-no_exceptions or --disable-no_exceptions was given.
2822if test "${enable_no_exceptions+set}" = set; then
2823 enableval="$enable_no_exceptions"
698dcdb6 2824
10f2d63a
VZ
2825 if test "$enableval" = yes; then
2826 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes'
2827 else
2828 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no'
2829 fi
698dcdb6 2830
10f2d63a 2831else
698dcdb6 2832
10f2d63a
VZ
2833 LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}`
2834 if test "x$LINE" != x ; then
2835 eval "DEFAULT_$LINE"
2836 else
2837 no_cache=1
2838 fi
2839
2840 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS
698dcdb6
VZ
2841
2842fi
10f2d63a
VZ
2843
2844
2845 eval "$ac_cv_use_no_exceptions"
2846 if test "$no_cache" != 1; then
2847 echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp
2848 fi
2849
2850 if test "$wxUSE_NO_EXCEPTIONS" = yes; then
698dcdb6 2851 echo "$ac_t""yes" 1>&6
10f2d63a 2852 else
698dcdb6 2853 echo "$ac_t""no" 1>&6
10f2d63a 2854 fi
698dcdb6 2855
10f2d63a 2856
698dcdb6 2857 echo $ac_n "checking for --enable-permissive""... $ac_c" 1>&6
986ecc86 2858echo "configure:2859: checking for --enable-permissive" >&5
10f2d63a
VZ
2859 no_cache=0
2860 # Check whether --enable-permissive or --disable-permissive was given.
2861if test "${enable_permissive+set}" = set; then
2862 enableval="$enable_permissive"
698dcdb6 2863
10f2d63a
VZ
2864 if test "$enableval" = yes; then
2865 ac_cv_use_permissive='wxUSE_PERMISSIVE=yes'
2866 else
2867 ac_cv_use_permissive='wxUSE_PERMISSIVE=no'
2868 fi
698dcdb6 2869
10f2d63a 2870else
698dcdb6 2871
10f2d63a
VZ
2872 LINE=`grep "wxUSE_PERMISSIVE" ${wx_arg_cache_file}`
2873 if test "x$LINE" != x ; then
2874 eval "DEFAULT_$LINE"
2875 else
2876 no_cache=1
2877 fi
2878
2879 ac_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE
698dcdb6
VZ
2880
2881fi
10f2d63a
VZ
2882
2883
2884 eval "$ac_cv_use_permissive"
2885 if test "$no_cache" != 1; then
2886 echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp
2887 fi
2888
2889 if test "$wxUSE_PERMISSIVE" = yes; then
698dcdb6 2890 echo "$ac_t""yes" 1>&6
10f2d63a 2891 else
698dcdb6 2892 echo "$ac_t""no" 1>&6
10f2d63a 2893 fi
698dcdb6 2894
10f2d63a 2895
698dcdb6 2896 echo $ac_n "checking for --enable-no_deps""... $ac_c" 1>&6
986ecc86 2897echo "configure:2898: checking for --enable-no_deps" >&5
10f2d63a
VZ
2898 no_cache=0
2899 # Check whether --enable-no_deps or --disable-no_deps was given.
2900if test "${enable_no_deps+set}" = set; then
2901 enableval="$enable_no_deps"
698dcdb6 2902
10f2d63a
VZ
2903 if test "$enableval" = yes; then
2904 ac_cv_use_no_deps='wxUSE_NO_DEPS=yes'
2905 else
2906 ac_cv_use_no_deps='wxUSE_NO_DEPS=no'
2907 fi
698dcdb6 2908
10f2d63a 2909else
698dcdb6 2910
10f2d63a
VZ
2911 LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}`
2912 if test "x$LINE" != x ; then
2913 eval "DEFAULT_$LINE"
2914 else
2915 no_cache=1
2916 fi
2917
2918 ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS
698dcdb6
VZ
2919
2920fi
10f2d63a
VZ
2921
2922
2923 eval "$ac_cv_use_no_deps"
2924 if test "$no_cache" != 1; then
2925 echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp
2926 fi
2927
2928 if test "$wxUSE_NO_DEPS" = yes; then
698dcdb6 2929 echo "$ac_t""yes" 1>&6
10f2d63a 2930 else
698dcdb6 2931 echo "$ac_t""no" 1>&6
10f2d63a 2932 fi
698dcdb6
VZ
2933
2934
10f2d63a 2935
54276ccf 2936 echo $ac_n "checking for --enable-compat20""... $ac_c" 1>&6
986ecc86 2937echo "configure:2938: checking for --enable-compat20" >&5
54276ccf
VZ
2938 no_cache=0
2939 # Check whether --enable-compat20 or --disable-compat20 was given.
2940if test "${enable_compat20+set}" = set; then
2941 enableval="$enable_compat20"
2942
2943 if test "$enableval" = yes; then
2944 ac_cv_use_compat20='WXWIN_COMPATIBILITY_2=yes'
2945 else
2946 ac_cv_use_compat20='WXWIN_COMPATIBILITY_2=no'
2947 fi
2948
2949else
2950
2951 LINE=`grep "WXWIN_COMPATIBILITY_2" ${wx_arg_cache_file}`
2952 if test "x$LINE" != x ; then
2953 eval "DEFAULT_$LINE"
2954 else
2955 no_cache=1
2956 fi
2957
2958 ac_cv_use_compat20='WXWIN_COMPATIBILITY_2='$DEFAULT_WXWIN_COMPATIBILITY_2
2959
2960fi
2961
2962
2963 eval "$ac_cv_use_compat20"
2964 if test "$no_cache" != 1; then
2965 echo $ac_cv_use_compat20 >> ${wx_arg_cache_file}.tmp
2966 fi
2967
2968 if test "$WXWIN_COMPATIBILITY_2" = yes; then
2969 echo "$ac_t""yes" 1>&6
2970 else
2971 echo "$ac_t""no" 1>&6
2972 fi
2973
2974
2975 echo $ac_n "checking for --enable-compat22""... $ac_c" 1>&6
986ecc86 2976echo "configure:2977: checking for --enable-compat22" >&5
54276ccf
VZ
2977 no_cache=0
2978 # Check whether --enable-compat22 or --disable-compat22 was given.
2979if test "${enable_compat22+set}" = set; then
2980 enableval="$enable_compat22"
2981
2982 if test "$enableval" = yes; then
2983 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=yes'
2984 else
2985 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=no'
2986 fi
2987
2988else
2989
2990 LINE=`grep "WXWIN_COMPATIBILITY_2_2" ${wx_arg_cache_file}`
2991 if test "x$LINE" != x ; then
2992 eval "DEFAULT_$LINE"
2993 else
2994 no_cache=1
2995 fi
2996
2997 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2='$DEFAULT_WXWIN_COMPATIBILITY_2_2
2998
2999fi
3000
3001
3002 eval "$ac_cv_use_compat22"
3003 if test "$no_cache" != 1; then
3004 echo $ac_cv_use_compat22 >> ${wx_arg_cache_file}.tmp
3005 fi
3006
3007 if test "$WXWIN_COMPATIBILITY_2_2" = yes; then
3008 echo "$ac_t""yes" 1>&6
3009 else
3010 echo "$ac_t""no" 1>&6
3011 fi
3012
3013
3014
698dcdb6
VZ
3015
3016 echo $ac_n "checking for --enable-intl""... $ac_c" 1>&6
986ecc86 3017echo "configure:3018: checking for --enable-intl" >&5
10f2d63a
VZ
3018 no_cache=0
3019 # Check whether --enable-intl or --disable-intl was given.
3020if test "${enable_intl+set}" = set; then
3021 enableval="$enable_intl"
698dcdb6 3022
10f2d63a
VZ
3023 if test "$enableval" = yes; then
3024 ac_cv_use_intl='wxUSE_INTL=yes'
3025 else
3026 ac_cv_use_intl='wxUSE_INTL=no'
3027 fi
698dcdb6 3028
10f2d63a 3029else
698dcdb6 3030
10f2d63a
VZ
3031 LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}`
3032 if test "x$LINE" != x ; then
3033 eval "DEFAULT_$LINE"
3034 else
3035 no_cache=1
3036 fi
3037
3038 ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL
698dcdb6
VZ
3039
3040fi
10f2d63a
VZ
3041
3042
3043 eval "$ac_cv_use_intl"
3044 if test "$no_cache" != 1; then
3045 echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp
3046 fi
3047
3048 if test "$wxUSE_INTL" = yes; then
698dcdb6 3049 echo "$ac_t""yes" 1>&6
10f2d63a 3050 else
698dcdb6 3051 echo "$ac_t""no" 1>&6
10f2d63a 3052 fi
698dcdb6 3053
10f2d63a 3054
698dcdb6 3055 echo $ac_n "checking for --enable-config""... $ac_c" 1>&6
986ecc86 3056echo "configure:3057: checking for --enable-config" >&5
10f2d63a
VZ
3057 no_cache=0
3058 # Check whether --enable-config or --disable-config was given.
3059if test "${enable_config+set}" = set; then
3060 enableval="$enable_config"
698dcdb6 3061
10f2d63a
VZ
3062 if test "$enableval" = yes; then
3063 ac_cv_use_config='wxUSE_CONFIG=yes'
3064 else
3065 ac_cv_use_config='wxUSE_CONFIG=no'
3066 fi
698dcdb6 3067
10f2d63a 3068else
698dcdb6 3069
10f2d63a
VZ
3070 LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}`
3071 if test "x$LINE" != x ; then
3072 eval "DEFAULT_$LINE"
3073 else
3074 no_cache=1
3075 fi
3076
3077 ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG
698dcdb6
VZ
3078
3079fi
10f2d63a
VZ
3080
3081
3082 eval "$ac_cv_use_config"
3083 if test "$no_cache" != 1; then
3084 echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp
3085 fi
3086
3087 if test "$wxUSE_CONFIG" = yes; then
698dcdb6 3088 echo "$ac_t""yes" 1>&6
10f2d63a 3089 else
698dcdb6 3090 echo "$ac_t""no" 1>&6
10f2d63a 3091 fi
698dcdb6
VZ
3092
3093
b12915c1 3094
a1622950 3095 echo $ac_n "checking for --enable-protocols""... $ac_c" 1>&6
986ecc86 3096echo "configure:3097: checking for --enable-protocols" >&5
a1622950
VZ
3097 no_cache=0
3098 # Check whether --enable-protocols or --disable-protocols was given.
3099if test "${enable_protocols+set}" = set; then
3100 enableval="$enable_protocols"
3101
3102 if test "$enableval" = yes; then
3103 ac_cv_use_protocols='wxUSE_PROTOCOL=yes'
3104 else
3105 ac_cv_use_protocols='wxUSE_PROTOCOL=no'
3106 fi
3107
3108else
3109
3110 LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
3111 if test "x$LINE" != x ; then
3112 eval "DEFAULT_$LINE"
3113 else
3114 no_cache=1
3115 fi
3116
3117 ac_cv_use_protocols='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
3118
3119fi
3120
3121
3122 eval "$ac_cv_use_protocols"
3123 if test "$no_cache" != 1; then
3124 echo $ac_cv_use_protocols >> ${wx_arg_cache_file}.tmp
3125 fi
3126
3127 if test "$wxUSE_PROTOCOL" = yes; then
3128 echo "$ac_t""yes" 1>&6
3129 else
3130 echo "$ac_t""no" 1>&6
3131 fi
3132
3133
3134 echo $ac_n "checking for --enable-ftp""... $ac_c" 1>&6
986ecc86 3135echo "configure:3136: checking for --enable-ftp" >&5
a1622950
VZ
3136 no_cache=0
3137 # Check whether --enable-ftp or --disable-ftp was given.
3138if test "${enable_ftp+set}" = set; then
3139 enableval="$enable_ftp"
3140
3141 if test "$enableval" = yes; then
3142 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=yes'
3143 else
3144 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=no'
3145 fi
3146
3147else
3148
3149 LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
3150 if test "x$LINE" != x ; then
3151 eval "DEFAULT_$LINE"
3152 else
3153 no_cache=1
3154 fi
3155
3156 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
3157
3158fi
3159
3160
3161 eval "$ac_cv_use_ftp"
3162 if test "$no_cache" != 1; then
3163 echo $ac_cv_use_ftp >> ${wx_arg_cache_file}.tmp
3164 fi
3165
3166 if test "$wxUSE_PROTOCOL_FTP" = yes; then
3167 echo "$ac_t""yes" 1>&6
3168 else
3169 echo "$ac_t""no" 1>&6
3170 fi
3171
3172
3173 echo $ac_n "checking for --enable-http""... $ac_c" 1>&6
986ecc86 3174echo "configure:3175: checking for --enable-http" >&5
a1622950
VZ
3175 no_cache=0
3176 # Check whether --enable-http or --disable-http was given.
3177if test "${enable_http+set}" = set; then
3178 enableval="$enable_http"
3179
3180 if test "$enableval" = yes; then
3181 ac_cv_use_http='wxUSE_PROTOCOL_HTTP=yes'
3182 else
3183 ac_cv_use_http='wxUSE_PROTOCOL_HTTP=no'
3184 fi
3185
3186else
3187
3188 LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
3189 if test "x$LINE" != x ; then
3190 eval "DEFAULT_$LINE"
3191 else
3192 no_cache=1
3193 fi
3194
3195 ac_cv_use_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
3196
3197fi
3198
3199
3200 eval "$ac_cv_use_http"
3201 if test "$no_cache" != 1; then
3202 echo $ac_cv_use_http >> ${wx_arg_cache_file}.tmp
3203 fi
3204
3205 if test "$wxUSE_PROTOCOL_HTTP" = yes; then
3206 echo "$ac_t""yes" 1>&6
3207 else
3208 echo "$ac_t""no" 1>&6
3209 fi
3210
3211
3212 echo $ac_n "checking for --enable-fileproto""... $ac_c" 1>&6
986ecc86 3213echo "configure:3214: checking for --enable-fileproto" >&5
a1622950
VZ
3214 no_cache=0
3215 # Check whether --enable-fileproto or --disable-fileproto was given.
3216if test "${enable_fileproto+set}" = set; then
3217 enableval="$enable_fileproto"
3218
3219 if test "$enableval" = yes; then
3220 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=yes'
3221 else
3222 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=no'
3223 fi
3224
3225else
3226
3227 LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
3228 if test "x$LINE" != x ; then
3229 eval "DEFAULT_$LINE"
3230 else
3231 no_cache=1
3232 fi
3233
3234 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
3235
3236fi
3237
3238
3239 eval "$ac_cv_use_fileproto"
3240 if test "$no_cache" != 1; then
3241 echo $ac_cv_use_fileproto >> ${wx_arg_cache_file}.tmp
3242 fi
3243
3244 if test "$wxUSE_PROTOCOL_FILE" = yes; then
3245 echo "$ac_t""yes" 1>&6
3246 else
3247 echo "$ac_t""no" 1>&6
3248 fi
3249
3250
698dcdb6 3251 echo $ac_n "checking for --enable-sockets""... $ac_c" 1>&6
986ecc86 3252echo "configure:3253: checking for --enable-sockets" >&5
10f2d63a
VZ
3253 no_cache=0
3254 # Check whether --enable-sockets or --disable-sockets was given.
3255if test "${enable_sockets+set}" = set; then
3256 enableval="$enable_sockets"
698dcdb6 3257
10f2d63a
VZ
3258 if test "$enableval" = yes; then
3259 ac_cv_use_sockets='wxUSE_SOCKETS=yes'
3260 else
3261 ac_cv_use_sockets='wxUSE_SOCKETS=no'
3262 fi
698dcdb6 3263
10f2d63a 3264else
698dcdb6 3265
10f2d63a
VZ
3266 LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}`
3267 if test "x$LINE" != x ; then
3268 eval "DEFAULT_$LINE"
3269 else
3270 no_cache=1
3271 fi
3272
3273 ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS
698dcdb6
VZ
3274
3275fi
10f2d63a
VZ
3276
3277
3278 eval "$ac_cv_use_sockets"
3279 if test "$no_cache" != 1; then
3280 echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp
3281 fi
3282
3283 if test "$wxUSE_SOCKETS" = yes; then
698dcdb6 3284 echo "$ac_t""yes" 1>&6
10f2d63a 3285 else
698dcdb6 3286 echo "$ac_t""no" 1>&6
10f2d63a 3287 fi
698dcdb6 3288
b12915c1 3289
698dcdb6
VZ
3290
3291 echo $ac_n "checking for --enable-ipc""... $ac_c" 1>&6
986ecc86 3292echo "configure:3293: checking for --enable-ipc" >&5
10f2d63a 3293 no_cache=0
eb4efbdc
VZ
3294 # Check whether --enable-ipc or --disable-ipc was given.
3295if test "${enable_ipc+set}" = set; then
3296 enableval="$enable_ipc"
698dcdb6 3297
10f2d63a 3298 if test "$enableval" = yes; then
eb4efbdc 3299 ac_cv_use_ipc='wxUSE_IPC=yes'
10f2d63a 3300 else
eb4efbdc 3301 ac_cv_use_ipc='wxUSE_IPC=no'
10f2d63a 3302 fi
698dcdb6 3303
10f2d63a 3304else
698dcdb6 3305
eb4efbdc 3306 LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}`
10f2d63a
VZ
3307 if test "x$LINE" != x ; then
3308 eval "DEFAULT_$LINE"
3309 else
3310 no_cache=1
3311 fi
3312
eb4efbdc 3313 ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC
698dcdb6
VZ
3314
3315fi
10f2d63a
VZ
3316
3317
eb4efbdc 3318 eval "$ac_cv_use_ipc"
10f2d63a 3319 if test "$no_cache" != 1; then
eb4efbdc 3320 echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
3321 fi
3322
eb4efbdc 3323 if test "$wxUSE_IPC" = yes; then
698dcdb6 3324 echo "$ac_t""yes" 1>&6
10f2d63a 3325 else
698dcdb6 3326 echo "$ac_t""no" 1>&6
10f2d63a 3327 fi
698dcdb6
VZ
3328
3329
eb4efbdc 3330
1e6feb95 3331 echo $ac_n "checking for --enable-cmdline""... $ac_c" 1>&6
986ecc86 3332echo "configure:3333: checking for --enable-cmdline" >&5
1e6feb95
VZ
3333 no_cache=0
3334 # Check whether --enable-cmdline or --disable-cmdline was given.
3335if test "${enable_cmdline+set}" = set; then
3336 enableval="$enable_cmdline"
3337
3338 if test "$enableval" = yes; then
3339 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=yes'
3340 else
3341 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=no'
3342 fi
3343
3344else
3345
3346 LINE=`grep "wxUSE_CMDLINE_PARSER" ${wx_arg_cache_file}`
3347 if test "x$LINE" != x ; then
3348 eval "DEFAULT_$LINE"
3349 else
3350 no_cache=1
3351 fi
3352
3353 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER='$DEFAULT_wxUSE_CMDLINE_PARSER
3354
3355fi
3356
3357
3358 eval "$ac_cv_use_cmdline"
3359 if test "$no_cache" != 1; then
3360 echo $ac_cv_use_cmdline >> ${wx_arg_cache_file}.tmp
3361 fi
3362
3363 if test "$wxUSE_CMDLINE_PARSER" = yes; then
3364 echo "$ac_t""yes" 1>&6
3365 else
3366 echo "$ac_t""no" 1>&6
3367 fi
3368
3369
3370 echo $ac_n "checking for --enable-datetime""... $ac_c" 1>&6
986ecc86 3371echo "configure:3372: checking for --enable-datetime" >&5
1e6feb95
VZ
3372 no_cache=0
3373 # Check whether --enable-datetime or --disable-datetime was given.
3374if test "${enable_datetime+set}" = set; then
3375 enableval="$enable_datetime"
3376
3377 if test "$enableval" = yes; then
3378 ac_cv_use_datetime='wxUSE_DATETIME=yes'
3379 else
3380 ac_cv_use_datetime='wxUSE_DATETIME=no'
3381 fi
3382
3383else
3384
3385 LINE=`grep "wxUSE_DATETIME" ${wx_arg_cache_file}`
3386 if test "x$LINE" != x ; then
3387 eval "DEFAULT_$LINE"
3388 else
3389 no_cache=1
3390 fi
3391
3392 ac_cv_use_datetime='wxUSE_DATETIME='$DEFAULT_wxUSE_DATETIME
3393
3394fi
3395
3396
3397 eval "$ac_cv_use_datetime"
3398 if test "$no_cache" != 1; then
3399 echo $ac_cv_use_datetime >> ${wx_arg_cache_file}.tmp
3400 fi
3401
3402 if test "$wxUSE_DATETIME" = yes; then
3403 echo "$ac_t""yes" 1>&6
3404 else
3405 echo "$ac_t""no" 1>&6
3406 fi
3407
3408
3409 echo $ac_n "checking for --enable-timedate""... $ac_c" 1>&6
986ecc86 3410echo "configure:3411: checking for --enable-timedate" >&5
1e6feb95
VZ
3411 no_cache=0
3412 # Check whether --enable-timedate or --disable-timedate was given.
3413if test "${enable_timedate+set}" = set; then
3414 enableval="$enable_timedate"
3415
3416 if test "$enableval" = yes; then
3417 ac_cv_use_timedate='wxUSE_TIMEDATE=yes'
3418 else
3419 ac_cv_use_timedate='wxUSE_TIMEDATE=no'
3420 fi
3421
3422else
3423
3424 LINE=`grep "wxUSE_TIMEDATE" ${wx_arg_cache_file}`
3425 if test "x$LINE" != x ; then
3426 eval "DEFAULT_$LINE"
3427 else
3428 no_cache=1
3429 fi
3430
3431 ac_cv_use_timedate='wxUSE_TIMEDATE='$DEFAULT_wxUSE_TIMEDATE
3432
3433fi
3434
3435
3436 eval "$ac_cv_use_timedate"
3437 if test "$no_cache" != 1; then
3438 echo $ac_cv_use_timedate >> ${wx_arg_cache_file}.tmp
3439 fi
3440
3441 if test "$wxUSE_TIMEDATE" = yes; then
3442 echo "$ac_t""yes" 1>&6
3443 else
3444 echo "$ac_t""no" 1>&6
3445 fi
3446
3447
3448 echo $ac_n "checking for --enable-stopwatch""... $ac_c" 1>&6
986ecc86 3449echo "configure:3450: checking for --enable-stopwatch" >&5
1e6feb95
VZ
3450 no_cache=0
3451 # Check whether --enable-stopwatch or --disable-stopwatch was given.
3452if test "${enable_stopwatch+set}" = set; then
3453 enableval="$enable_stopwatch"
3454
3455 if test "$enableval" = yes; then
3456 ac_cv_use_stopwatch='wxUSE_STOPWATCH=yes'
3457 else
3458 ac_cv_use_stopwatch='wxUSE_STOPWATCH=no'
3459 fi
3460
3461else
3462
3463 LINE=`grep "wxUSE_STOPWATCH" ${wx_arg_cache_file}`
3464 if test "x$LINE" != x ; then
3465 eval "DEFAULT_$LINE"
3466 else
3467 no_cache=1
3468 fi
3469
3470 ac_cv_use_stopwatch='wxUSE_STOPWATCH='$DEFAULT_wxUSE_STOPWATCH
3471
3472fi
3473
3474
3475 eval "$ac_cv_use_stopwatch"
3476 if test "$no_cache" != 1; then
3477 echo $ac_cv_use_stopwatch >> ${wx_arg_cache_file}.tmp
3478 fi
3479
3480 if test "$wxUSE_STOPWATCH" = yes; then
3481 echo "$ac_t""yes" 1>&6
3482 else
3483 echo "$ac_t""no" 1>&6
3484 fi
3485
3486
698dcdb6 3487 echo $ac_n "checking for --enable-dialupman""... $ac_c" 1>&6
986ecc86 3488echo "configure:3489: checking for --enable-dialupman" >&5
10f2d63a 3489 no_cache=0
eb4efbdc
VZ
3490 # Check whether --enable-dialupman or --disable-dialupman was given.
3491if test "${enable_dialupman+set}" = set; then
3492 enableval="$enable_dialupman"
698dcdb6 3493
10f2d63a 3494 if test "$enableval" = yes; then
eb4efbdc 3495 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes'
10f2d63a 3496 else
eb4efbdc 3497 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no'
10f2d63a 3498 fi
698dcdb6 3499
10f2d63a 3500else
698dcdb6 3501
eb4efbdc 3502 LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}`
10f2d63a
VZ
3503 if test "x$LINE" != x ; then
3504 eval "DEFAULT_$LINE"
3505 else
3506 no_cache=1
3507 fi
3508
eb4efbdc 3509 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER
698dcdb6
VZ
3510
3511fi
10f2d63a
VZ
3512
3513
eb4efbdc 3514 eval "$ac_cv_use_dialupman"
10f2d63a 3515 if test "$no_cache" != 1; then
eb4efbdc 3516 echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
3517 fi
3518
eb4efbdc 3519 if test "$wxUSE_DIALUP_MANAGER" = yes; then
698dcdb6 3520 echo "$ac_t""yes" 1>&6
10f2d63a 3521 else
698dcdb6 3522 echo "$ac_t""no" 1>&6
10f2d63a 3523 fi
698dcdb6 3524
10f2d63a 3525
698dcdb6 3526 echo $ac_n "checking for --enable-apple_ieee""... $ac_c" 1>&6
986ecc86 3527echo "configure:3528: checking for --enable-apple_ieee" >&5
10f2d63a
VZ
3528 no_cache=0
3529 # Check whether --enable-apple_ieee or --disable-apple_ieee was given.
3530if test "${enable_apple_ieee+set}" = set; then
3531 enableval="$enable_apple_ieee"
698dcdb6 3532
10f2d63a
VZ
3533 if test "$enableval" = yes; then
3534 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes'
3535 else
3536 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no'
3537 fi
698dcdb6 3538
10f2d63a 3539else
698dcdb6 3540
10f2d63a
VZ
3541 LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}`
3542 if test "x$LINE" != x ; then
3543 eval "DEFAULT_$LINE"
3544 else
3545 no_cache=1
3546 fi
3547
3548 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE
698dcdb6
VZ
3549
3550fi
10f2d63a
VZ
3551
3552
3553 eval "$ac_cv_use_apple_ieee"
3554 if test "$no_cache" != 1; then
3555 echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp
3556 fi
3557
3558 if test "$wxUSE_APPLE_IEEE" = yes; then
698dcdb6 3559 echo "$ac_t""yes" 1>&6
10f2d63a 3560 else
698dcdb6 3561 echo "$ac_t""no" 1>&6
10f2d63a 3562 fi
698dcdb6 3563
10f2d63a 3564
1e6feb95 3565 echo $ac_n "checking for --enable-timer""... $ac_c" 1>&6
986ecc86 3566echo "configure:3567: checking for --enable-timer" >&5
10f2d63a 3567 no_cache=0
1e6feb95
VZ
3568 # Check whether --enable-timer or --disable-timer was given.
3569if test "${enable_timer+set}" = set; then
3570 enableval="$enable_timer"
698dcdb6 3571
10f2d63a 3572 if test "$enableval" = yes; then
1e6feb95 3573 ac_cv_use_timer='wxUSE_TIMER=yes'
10f2d63a 3574 else
1e6feb95 3575 ac_cv_use_timer='wxUSE_TIMER=no'
10f2d63a 3576 fi
698dcdb6 3577
10f2d63a 3578else
698dcdb6 3579
1e6feb95 3580 LINE=`grep "wxUSE_TIMER" ${wx_arg_cache_file}`
10f2d63a
VZ
3581 if test "x$LINE" != x ; then
3582 eval "DEFAULT_$LINE"
3583 else
3584 no_cache=1
3585 fi
3586
1e6feb95 3587 ac_cv_use_timer='wxUSE_TIMER='$DEFAULT_wxUSE_TIMER
698dcdb6
VZ
3588
3589fi
10f2d63a
VZ
3590
3591
1e6feb95 3592 eval "$ac_cv_use_timer"
10f2d63a 3593 if test "$no_cache" != 1; then
1e6feb95 3594 echo $ac_cv_use_timer >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
3595 fi
3596
1e6feb95 3597 if test "$wxUSE_TIMER" = yes; then
698dcdb6 3598 echo "$ac_t""yes" 1>&6
10f2d63a 3599 else
698dcdb6 3600 echo "$ac_t""no" 1>&6
10f2d63a 3601 fi
698dcdb6 3602
10f2d63a 3603
698dcdb6 3604 echo $ac_n "checking for --enable-wave""... $ac_c" 1>&6
986ecc86 3605echo "configure:3606: checking for --enable-wave" >&5
10f2d63a
VZ
3606 no_cache=0
3607 # Check whether --enable-wave or --disable-wave was given.
3608if test "${enable_wave+set}" = set; then
3609 enableval="$enable_wave"
698dcdb6 3610
10f2d63a
VZ
3611 if test "$enableval" = yes; then
3612 ac_cv_use_wave='wxUSE_WAVE=yes'
3613 else
3614 ac_cv_use_wave='wxUSE_WAVE=no'
3615 fi
698dcdb6 3616
10f2d63a 3617else
698dcdb6 3618
10f2d63a
VZ
3619 LINE=`grep "wxUSE_WAVE" ${wx_arg_cache_file}`
3620 if test "x$LINE" != x ; then
3621 eval "DEFAULT_$LINE"
3622 else
3623 no_cache=1
3624 fi
3625
3626 ac_cv_use_wave='wxUSE_WAVE='$DEFAULT_wxUSE_WAVE
698dcdb6
VZ
3627
3628fi
10f2d63a
VZ
3629
3630
3631 eval "$ac_cv_use_wave"
3632 if test "$no_cache" != 1; then
3633 echo $ac_cv_use_wave >> ${wx_arg_cache_file}.tmp
3634 fi
3635
3636 if test "$wxUSE_WAVE" = yes; then
698dcdb6 3637 echo "$ac_t""yes" 1>&6
10f2d63a 3638 else
698dcdb6 3639 echo "$ac_t""no" 1>&6
10f2d63a 3640 fi
698dcdb6 3641
10f2d63a 3642
698dcdb6 3643 echo $ac_n "checking for --enable-fraction""... $ac_c" 1>&6
986ecc86 3644echo "configure:3645: checking for --enable-fraction" >&5
10f2d63a
VZ
3645 no_cache=0
3646 # Check whether --enable-fraction or --disable-fraction was given.
3647if test "${enable_fraction+set}" = set; then
3648 enableval="$enable_fraction"
698dcdb6 3649
10f2d63a
VZ
3650 if test "$enableval" = yes; then
3651 ac_cv_use_fraction='wxUSE_FRACTION=yes'
3652 else
3653 ac_cv_use_fraction='wxUSE_FRACTION=no'
3654 fi
698dcdb6 3655
10f2d63a 3656else
698dcdb6 3657
10f2d63a
VZ
3658 LINE=`grep "wxUSE_FRACTION" ${wx_arg_cache_file}`
3659 if test "x$LINE" != x ; then
3660 eval "DEFAULT_$LINE"
3661 else
3662 no_cache=1
3663 fi
3664
3665 ac_cv_use_fraction='wxUSE_FRACTION='$DEFAULT_wxUSE_FRACTION
698dcdb6
VZ
3666
3667fi
10f2d63a
VZ
3668
3669
3670 eval "$ac_cv_use_fraction"
3671 if test "$no_cache" != 1; then
3672 echo $ac_cv_use_fraction >> ${wx_arg_cache_file}.tmp
3673 fi
3674
3675 if test "$wxUSE_FRACTION" = yes; then
698dcdb6 3676 echo "$ac_t""yes" 1>&6
10f2d63a 3677 else
698dcdb6 3678 echo "$ac_t""no" 1>&6
10f2d63a 3679 fi
698dcdb6 3680
10f2d63a 3681
698dcdb6 3682 echo $ac_n "checking for --enable-dynlib""... $ac_c" 1>&6
986ecc86 3683echo "configure:3684: checking for --enable-dynlib" >&5
10f2d63a
VZ
3684 no_cache=0
3685 # Check whether --enable-dynlib or --disable-dynlib was given.
3686if test "${enable_dynlib+set}" = set; then
3687 enableval="$enable_dynlib"
698dcdb6 3688
10f2d63a
VZ
3689 if test "$enableval" = yes; then
3690 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes'
3691 else
3692 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no'
3693 fi
698dcdb6 3694
10f2d63a 3695else
698dcdb6 3696
10f2d63a
VZ
3697 LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}`
3698 if test "x$LINE" != x ; then
3699 eval "DEFAULT_$LINE"
3700 else
3701 no_cache=1
3702 fi
3703
3704 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS
698dcdb6
VZ
3705
3706fi
10f2d63a
VZ
3707
3708
3709 eval "$ac_cv_use_dynlib"
3710 if test "$no_cache" != 1; then
3711 echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp
3712 fi
3713
3714 if test "$wxUSE_DYNLIB_CLASS" = yes; then
698dcdb6 3715 echo "$ac_t""yes" 1>&6
10f2d63a 3716 else
698dcdb6 3717 echo "$ac_t""no" 1>&6
10f2d63a 3718 fi
698dcdb6 3719
10f2d63a 3720
0b9ab0bd 3721 echo $ac_n "checking for --enable-dynamicloader""... $ac_c" 1>&6
986ecc86 3722echo "configure:3723: checking for --enable-dynamicloader" >&5
0b9ab0bd
RL
3723 no_cache=0
3724 # Check whether --enable-dynamicloader or --disable-dynamicloader was given.
3725if test "${enable_dynamicloader+set}" = set; then
3726 enableval="$enable_dynamicloader"
3727
3728 if test "$enableval" = yes; then
3729 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=yes'
3730 else
3731 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=no'
3732 fi
3733
3734else
3735
3736 LINE=`grep "wxUSE_DYNAMIC_LOADER" ${wx_arg_cache_file}`
3737 if test "x$LINE" != x ; then
3738 eval "DEFAULT_$LINE"
3739 else
3740 no_cache=1
3741 fi
3742
3743 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER='$DEFAULT_wxUSE_DYNAMIC_LOADER
3744
3745fi
3746
3747
3748 eval "$ac_cv_use_dynamicloader"
3749 if test "$no_cache" != 1; then
3750 echo $ac_cv_use_dynamicloader >> ${wx_arg_cache_file}.tmp
3751 fi
3752
3753 if test "$wxUSE_DYNAMIC_LOADER" = yes; then
3754 echo "$ac_t""yes" 1>&6
3755 else
3756 echo "$ac_t""no" 1>&6
3757 fi
3758
3759
698dcdb6 3760 echo $ac_n "checking for --enable-longlong""... $ac_c" 1>&6
986ecc86 3761echo "configure:3762: checking for --enable-longlong" >&5
10f2d63a
VZ
3762 no_cache=0
3763 # Check whether --enable-longlong or --disable-longlong was given.
3764if test "${enable_longlong+set}" = set; then
3765 enableval="$enable_longlong"
698dcdb6 3766
10f2d63a
VZ
3767 if test "$enableval" = yes; then
3768 ac_cv_use_longlong='wxUSE_LONGLONG=yes'
3769 else
3770 ac_cv_use_longlong='wxUSE_LONGLONG=no'
3771 fi
698dcdb6 3772
10f2d63a 3773else
698dcdb6 3774
10f2d63a
VZ
3775 LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}`
3776 if test "x$LINE" != x ; then
3777 eval "DEFAULT_$LINE"
3778 else
3779 no_cache=1
3780 fi
3781
3782 ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG
698dcdb6
VZ
3783
3784fi
10f2d63a
VZ
3785
3786
3787 eval "$ac_cv_use_longlong"
3788 if test "$no_cache" != 1; then
3789 echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp
3790 fi
3791
3792 if test "$wxUSE_LONGLONG" = yes; then
698dcdb6 3793 echo "$ac_t""yes" 1>&6
10f2d63a 3794 else
698dcdb6 3795 echo "$ac_t""no" 1>&6
10f2d63a 3796 fi
698dcdb6 3797
10f2d63a 3798
698dcdb6 3799 echo $ac_n "checking for --enable-geometry""... $ac_c" 1>&6
986ecc86 3800echo "configure:3801: checking for --enable-geometry" >&5
e8f65ba6
RR
3801 no_cache=0
3802 # Check whether --enable-geometry or --disable-geometry was given.
3803if test "${enable_geometry+set}" = set; then
3804 enableval="$enable_geometry"
698dcdb6 3805
e8f65ba6
RR
3806 if test "$enableval" = yes; then
3807 ac_cv_use_geometry='wxUSE_GEOMETRY=yes'
3808 else
3809 ac_cv_use_geometry='wxUSE_GEOMETRY=no'
3810 fi
698dcdb6 3811
e8f65ba6 3812else
698dcdb6 3813
e8f65ba6
RR
3814 LINE=`grep "wxUSE_GEOMETRY" ${wx_arg_cache_file}`
3815 if test "x$LINE" != x ; then
3816 eval "DEFAULT_$LINE"
3817 else
3818 no_cache=1
3819 fi
3820
3821 ac_cv_use_geometry='wxUSE_GEOMETRY='$DEFAULT_wxUSE_GEOMETRY
698dcdb6
VZ
3822
3823fi
e8f65ba6
RR
3824
3825
3826 eval "$ac_cv_use_geometry"
3827 if test "$no_cache" != 1; then
3828 echo $ac_cv_use_geometry >> ${wx_arg_cache_file}.tmp
3829 fi
3830
3831 if test "$wxUSE_GEOMETRY" = yes; then
698dcdb6 3832 echo "$ac_t""yes" 1>&6
e8f65ba6 3833 else
698dcdb6 3834 echo "$ac_t""no" 1>&6
e8f65ba6 3835 fi
698dcdb6 3836
e8f65ba6 3837
698dcdb6 3838 echo $ac_n "checking for --enable-log""... $ac_c" 1>&6
986ecc86 3839echo "configure:3840: checking for --enable-log" >&5
10f2d63a
VZ
3840 no_cache=0
3841 # Check whether --enable-log or --disable-log was given.
3842if test "${enable_log+set}" = set; then
3843 enableval="$enable_log"
698dcdb6 3844
10f2d63a
VZ
3845 if test "$enableval" = yes; then
3846 ac_cv_use_log='wxUSE_LOG=yes'
3847 else
3848 ac_cv_use_log='wxUSE_LOG=no'
3849 fi
698dcdb6 3850
10f2d63a 3851else
698dcdb6 3852
10f2d63a
VZ
3853 LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}`
3854 if test "x$LINE" != x ; then
3855 eval "DEFAULT_$LINE"
3856 else
3857 no_cache=1
3858 fi
3859
3860 ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG
698dcdb6
VZ
3861
3862fi
10f2d63a
VZ
3863
3864
3865 eval "$ac_cv_use_log"
3866 if test "$no_cache" != 1; then
3867 echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp
3868 fi
3869
3870 if test "$wxUSE_LOG" = yes; then
698dcdb6 3871 echo "$ac_t""yes" 1>&6
10f2d63a 3872 else
698dcdb6 3873 echo "$ac_t""no" 1>&6
10f2d63a 3874 fi
698dcdb6 3875
10f2d63a 3876
698dcdb6 3877 echo $ac_n "checking for --enable-streams""... $ac_c" 1>&6
986ecc86 3878echo "configure:3879: checking for --enable-streams" >&5
10f2d63a
VZ
3879 no_cache=0
3880 # Check whether --enable-streams or --disable-streams was given.
3881if test "${enable_streams+set}" = set; then
3882 enableval="$enable_streams"
698dcdb6 3883
10f2d63a
VZ
3884 if test "$enableval" = yes; then
3885 ac_cv_use_streams='wxUSE_STREAMS=yes'
3886 else
3887 ac_cv_use_streams='wxUSE_STREAMS=no'
3888 fi
698dcdb6 3889
10f2d63a 3890else
698dcdb6 3891
10f2d63a
VZ
3892 LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}`
3893 if test "x$LINE" != x ; then
3894 eval "DEFAULT_$LINE"
3895 else
3896 no_cache=1
3897 fi
3898
3899 ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS
698dcdb6
VZ
3900
3901fi
10f2d63a
VZ
3902
3903
3904 eval "$ac_cv_use_streams"
3905 if test "$no_cache" != 1; then
3906 echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp
3907 fi
3908
3909 if test "$wxUSE_STREAMS" = yes; then
698dcdb6 3910 echo "$ac_t""yes" 1>&6
10f2d63a 3911 else
698dcdb6 3912 echo "$ac_t""no" 1>&6
10f2d63a 3913 fi
698dcdb6 3914
10f2d63a 3915
698dcdb6 3916 echo $ac_n "checking for --enable-file""... $ac_c" 1>&6
986ecc86 3917echo "configure:3918: checking for --enable-file" >&5
10f2d63a
VZ
3918 no_cache=0
3919 # Check whether --enable-file or --disable-file was given.
3920if test "${enable_file+set}" = set; then
3921 enableval="$enable_file"
698dcdb6 3922
10f2d63a
VZ
3923 if test "$enableval" = yes; then
3924 ac_cv_use_file='wxUSE_FILE=yes'
3925 else
3926 ac_cv_use_file='wxUSE_FILE=no'
3927 fi
698dcdb6 3928
10f2d63a 3929else
698dcdb6 3930
10f2d63a
VZ
3931 LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}`
3932 if test "x$LINE" != x ; then
3933 eval "DEFAULT_$LINE"
3934 else
3935 no_cache=1
3936 fi
3937
3938 ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE
698dcdb6
VZ
3939
3940fi
10f2d63a
VZ
3941
3942
3943 eval "$ac_cv_use_file"
3944 if test "$no_cache" != 1; then
3945 echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp
3946 fi
3947
3948 if test "$wxUSE_FILE" = yes; then
698dcdb6 3949 echo "$ac_t""yes" 1>&6
10f2d63a 3950 else
698dcdb6 3951 echo "$ac_t""no" 1>&6
10f2d63a 3952 fi
698dcdb6 3953
10f2d63a 3954
1e6feb95 3955 echo $ac_n "checking for --enable-ffile""... $ac_c" 1>&6
986ecc86 3956echo "configure:3957: checking for --enable-ffile" >&5
10f2d63a 3957 no_cache=0
1e6feb95
VZ
3958 # Check whether --enable-ffile or --disable-ffile was given.
3959if test "${enable_ffile+set}" = set; then
3960 enableval="$enable_ffile"
698dcdb6 3961
10f2d63a 3962 if test "$enableval" = yes; then
1e6feb95 3963 ac_cv_use_ffile='wxUSE_FFILE=yes'
10f2d63a 3964 else
1e6feb95 3965 ac_cv_use_ffile='wxUSE_FFILE=no'
10f2d63a 3966 fi
698dcdb6 3967
10f2d63a 3968else
698dcdb6 3969
1e6feb95 3970 LINE=`grep "wxUSE_FFILE" ${wx_arg_cache_file}`
10f2d63a
VZ
3971 if test "x$LINE" != x ; then
3972 eval "DEFAULT_$LINE"
3973 else
3974 no_cache=1
3975 fi
3976
1e6feb95 3977 ac_cv_use_ffile='wxUSE_FFILE='$DEFAULT_wxUSE_FFILE
698dcdb6
VZ
3978
3979fi
10f2d63a
VZ
3980
3981
1e6feb95 3982 eval "$ac_cv_use_ffile"
10f2d63a 3983 if test "$no_cache" != 1; then
1e6feb95 3984 echo $ac_cv_use_ffile >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
3985 fi
3986
1e6feb95 3987 if test "$wxUSE_FFILE" = yes; then
698dcdb6 3988 echo "$ac_t""yes" 1>&6
10f2d63a 3989 else
698dcdb6 3990 echo "$ac_t""no" 1>&6
10f2d63a 3991 fi
698dcdb6 3992
10f2d63a 3993
a3a584a7 3994 echo $ac_n "checking for --enable-textbuf""... $ac_c" 1>&6
986ecc86 3995echo "configure:3996: checking for --enable-textbuf" >&5
a3a584a7
VZ
3996 no_cache=0
3997 # Check whether --enable-textbuf or --disable-textbuf was given.
3998if test "${enable_textbuf+set}" = set; then
3999 enableval="$enable_textbuf"
4000
4001 if test "$enableval" = yes; then
4002 ac_cv_use_textbuf='wxUSE_TEXTBUFFER=yes'
4003 else
4004 ac_cv_use_textbuf='wxUSE_TEXTBUFFER=no'
4005 fi
4006
4007else
4008
4009 LINE=`grep "wxUSE_TEXTBUFFER" ${wx_arg_cache_file}`
4010 if test "x$LINE" != x ; then
4011 eval "DEFAULT_$LINE"
4012 else
4013 no_cache=1
4014 fi
4015
4016 ac_cv_use_textbuf='wxUSE_TEXTBUFFER='$DEFAULT_wxUSE_TEXTBUFFER
4017
4018fi
4019
4020
4021 eval "$ac_cv_use_textbuf"
4022 if test "$no_cache" != 1; then
4023 echo $ac_cv_use_textbuf >> ${wx_arg_cache_file}.tmp
4024 fi
4025
4026 if test "$wxUSE_TEXTBUFFER" = yes; then
4027 echo "$ac_t""yes" 1>&6
4028 else
4029 echo "$ac_t""no" 1>&6
4030 fi
4031
4032
1e6feb95 4033 echo $ac_n "checking for --enable-textfile""... $ac_c" 1>&6
986ecc86 4034echo "configure:4035: checking for --enable-textfile" >&5
10f2d63a 4035 no_cache=0
1e6feb95
VZ
4036 # Check whether --enable-textfile or --disable-textfile was given.
4037if test "${enable_textfile+set}" = set; then
4038 enableval="$enable_textfile"
698dcdb6 4039
10f2d63a 4040 if test "$enableval" = yes; then
1e6feb95 4041 ac_cv_use_textfile='wxUSE_TEXTFILE=yes'
10f2d63a 4042 else
1e6feb95 4043 ac_cv_use_textfile='wxUSE_TEXTFILE=no'
10f2d63a 4044 fi
698dcdb6 4045
10f2d63a 4046else
698dcdb6 4047
1e6feb95 4048 LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}`
10f2d63a
VZ
4049 if test "x$LINE" != x ; then
4050 eval "DEFAULT_$LINE"
4051 else
4052 no_cache=1
4053 fi
4054
1e6feb95 4055 ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE
698dcdb6
VZ
4056
4057fi
10f2d63a
VZ
4058
4059
1e6feb95 4060 eval "$ac_cv_use_textfile"
10f2d63a 4061 if test "$no_cache" != 1; then
1e6feb95 4062 echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
4063 fi
4064
1e6feb95 4065 if test "$wxUSE_TEXTFILE" = yes; then
698dcdb6 4066 echo "$ac_t""yes" 1>&6
10f2d63a 4067 else
698dcdb6 4068 echo "$ac_t""no" 1>&6
10f2d63a 4069 fi
698dcdb6 4070
10f2d63a 4071
1e6feb95 4072 echo $ac_n "checking for --enable-fontmap""... $ac_c" 1>&6
986ecc86 4073echo "configure:4074: checking for --enable-fontmap" >&5
10f2d63a 4074 no_cache=0
1e6feb95
VZ
4075 # Check whether --enable-fontmap or --disable-fontmap was given.
4076if test "${enable_fontmap+set}" = set; then
4077 enableval="$enable_fontmap"
698dcdb6 4078
10f2d63a 4079 if test "$enableval" = yes; then
1e6feb95 4080 ac_cv_use_fontmap='wxUSE_FONTMAP=yes'
10f2d63a 4081 else
1e6feb95 4082 ac_cv_use_fontmap='wxUSE_FONTMAP=no'
10f2d63a 4083 fi
698dcdb6 4084
10f2d63a 4085else
698dcdb6 4086
1e6feb95 4087 LINE=`grep "wxUSE_FONTMAP" ${wx_arg_cache_file}`
10f2d63a
VZ
4088 if test "x$LINE" != x ; then
4089 eval "DEFAULT_$LINE"
4090 else
4091 no_cache=1
4092 fi
4093
1e6feb95 4094 ac_cv_use_fontmap='wxUSE_FONTMAP='$DEFAULT_wxUSE_FONTMAP
698dcdb6
VZ
4095
4096fi
10f2d63a
VZ
4097
4098
1e6feb95 4099 eval "$ac_cv_use_fontmap"
10f2d63a 4100 if test "$no_cache" != 1; then
1e6feb95 4101 echo $ac_cv_use_fontmap >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
4102 fi
4103
1e6feb95 4104 if test "$wxUSE_FONTMAP" = yes; then
698dcdb6 4105 echo "$ac_t""yes" 1>&6
10f2d63a 4106 else
698dcdb6 4107 echo "$ac_t""no" 1>&6
10f2d63a 4108 fi
698dcdb6 4109
10f2d63a 4110
1e6feb95 4111 echo $ac_n "checking for --enable-unicode""... $ac_c" 1>&6
986ecc86 4112echo "configure:4113: checking for --enable-unicode" >&5
10f2d63a 4113 no_cache=0
1e6feb95
VZ
4114 # Check whether --enable-unicode or --disable-unicode was given.
4115if test "${enable_unicode+set}" = set; then
4116 enableval="$enable_unicode"
4117
4118 if test "$enableval" = yes; then
4119 ac_cv_use_unicode='wxUSE_UNICODE=yes'
4120 else
4121 ac_cv_use_unicode='wxUSE_UNICODE=no'
4122 fi
4123
4124else
4125
4126 LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}`
4127 if test "x$LINE" != x ; then
4128 eval "DEFAULT_$LINE"
4129 else
4130 no_cache=1
4131 fi
4132
4133 ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE
4134
4135fi
4136
4137
4138 eval "$ac_cv_use_unicode"
4139 if test "$no_cache" != 1; then
4140 echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp
4141 fi
4142
4143 if test "$wxUSE_UNICODE" = yes; then
4144 echo "$ac_t""yes" 1>&6
4145 else
4146 echo "$ac_t""no" 1>&6
4147 fi
4148
4149
a72a4bfa 4150 echo $ac_n "checking for --enable-mslu""... $ac_c" 1>&6
986ecc86 4151echo "configure:4152: checking for --enable-mslu" >&5
a72a4bfa
VS
4152 no_cache=0
4153 # Check whether --enable-mslu or --disable-mslu was given.
4154if test "${enable_mslu+set}" = set; then
4155 enableval="$enable_mslu"
4156
4157 if test "$enableval" = yes; then
4158 ac_cv_use_mslu='wxUSE_UNICODE_MSLU=yes'
4159 else
4160 ac_cv_use_mslu='wxUSE_UNICODE_MSLU=no'
4161 fi
4162
4163else
4164
4165 LINE=`grep "wxUSE_UNICODE_MSLU" ${wx_arg_cache_file}`
4166 if test "x$LINE" != x ; then
4167 eval "DEFAULT_$LINE"
4168 else
4169 no_cache=1
4170 fi
4171
4172 ac_cv_use_mslu='wxUSE_UNICODE_MSLU='$DEFAULT_wxUSE_UNICODE_MSLU
4173
4174fi
4175
4176
4177 eval "$ac_cv_use_mslu"
4178 if test "$no_cache" != 1; then
4179 echo $ac_cv_use_mslu >> ${wx_arg_cache_file}.tmp
4180 fi
4181
4182 if test "$wxUSE_UNICODE_MSLU" = yes; then
4183 echo "$ac_t""yes" 1>&6
4184 else
4185 echo "$ac_t""no" 1>&6
4186 fi
4187
4188
1e6feb95 4189 echo $ac_n "checking for --enable-wxprintfv""... $ac_c" 1>&6
986ecc86 4190echo "configure:4191: checking for --enable-wxprintfv" >&5
1e6feb95
VZ
4191 no_cache=0
4192 # Check whether --enable-wxprintfv or --disable-wxprintfv was given.
4193if test "${enable_wxprintfv+set}" = set; then
4194 enableval="$enable_wxprintfv"
4195
4196 if test "$enableval" = yes; then
10f2d63a
VZ
4197 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=yes'
4198 else
4199 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=no'
4200 fi
698dcdb6 4201
10f2d63a 4202else
698dcdb6 4203
10f2d63a
VZ
4204 LINE=`grep "wxUSE_EXPERIMENTAL_PRINTF" ${wx_arg_cache_file}`
4205 if test "x$LINE" != x ; then
4206 eval "DEFAULT_$LINE"
4207 else
4208 no_cache=1
4209 fi
4210
4211 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF='$DEFAULT_wxUSE_EXPERIMENTAL_PRINTF
698dcdb6
VZ
4212
4213fi
10f2d63a
VZ
4214
4215
4216 eval "$ac_cv_use_wxprintfv"
4217 if test "$no_cache" != 1; then
4218 echo $ac_cv_use_wxprintfv >> ${wx_arg_cache_file}.tmp
4219 fi
4220
4221 if test "$wxUSE_EXPERIMENTAL_PRINTF" = yes; then
698dcdb6 4222 echo "$ac_t""yes" 1>&6
10f2d63a 4223 else
698dcdb6 4224 echo "$ac_t""no" 1>&6
10f2d63a 4225 fi
698dcdb6 4226
10f2d63a 4227
698dcdb6 4228 echo $ac_n "checking for --enable-std_iostreams""... $ac_c" 1>&6
986ecc86 4229echo "configure:4230: checking for --enable-std_iostreams" >&5
10f2d63a
VZ
4230 no_cache=0
4231 # Check whether --enable-std_iostreams or --disable-std_iostreams was given.
4232if test "${enable_std_iostreams+set}" = set; then
4233 enableval="$enable_std_iostreams"
698dcdb6 4234
10f2d63a
VZ
4235 if test "$enableval" = yes; then
4236 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes'
4237 else
4238 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no'
4239 fi
698dcdb6 4240
10f2d63a 4241else
698dcdb6 4242
10f2d63a
VZ
4243 LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}`
4244 if test "x$LINE" != x ; then
4245 eval "DEFAULT_$LINE"
4246 else
4247 no_cache=1
4248 fi
4249
4250 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM
698dcdb6
VZ
4251
4252fi
10f2d63a
VZ
4253
4254
4255 eval "$ac_cv_use_std_iostreams"
4256 if test "$no_cache" != 1; then
4257 echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp
4258 fi
4259
4260 if test "$wxUSE_STD_IOSTREAM" = yes; then
698dcdb6 4261 echo "$ac_t""yes" 1>&6
10f2d63a 4262 else
698dcdb6 4263 echo "$ac_t""no" 1>&6
10f2d63a 4264 fi
698dcdb6 4265
10f2d63a 4266
698dcdb6 4267 echo $ac_n "checking for --enable-filesystem""... $ac_c" 1>&6
986ecc86 4268echo "configure:4269: checking for --enable-filesystem" >&5
24528b0c
VS
4269 no_cache=0
4270 # Check whether --enable-filesystem or --disable-filesystem was given.
4271if test "${enable_filesystem+set}" = set; then
4272 enableval="$enable_filesystem"
698dcdb6 4273
24528b0c
VS
4274 if test "$enableval" = yes; then
4275 ac_cv_use_filesystem='wxUSE_FILESYSTEM=yes'
4276 else
4277 ac_cv_use_filesystem='wxUSE_FILESYSTEM=no'
4278 fi
698dcdb6 4279
24528b0c 4280else
698dcdb6 4281
24528b0c
VS
4282 LINE=`grep "wxUSE_FILESYSTEM" ${wx_arg_cache_file}`
4283 if test "x$LINE" != x ; then
4284 eval "DEFAULT_$LINE"
4285 else
4286 no_cache=1
4287 fi
4288
4289 ac_cv_use_filesystem='wxUSE_FILESYSTEM='$DEFAULT_wxUSE_FILESYSTEM
698dcdb6
VZ
4290
4291fi
24528b0c
VS
4292
4293
4294 eval "$ac_cv_use_filesystem"
4295 if test "$no_cache" != 1; then
4296 echo $ac_cv_use_filesystem >> ${wx_arg_cache_file}.tmp
4297 fi
4298
4299 if test "$wxUSE_FILESYSTEM" = yes; then
698dcdb6 4300 echo "$ac_t""yes" 1>&6
24528b0c 4301 else
698dcdb6 4302 echo "$ac_t""no" 1>&6
24528b0c 4303 fi
698dcdb6 4304
24528b0c 4305
698dcdb6 4306 echo $ac_n "checking for --enable-fs_inet""... $ac_c" 1>&6
986ecc86 4307echo "configure:4308: checking for --enable-fs_inet" >&5
10f2d63a
VZ
4308 no_cache=0
4309 # Check whether --enable-fs_inet or --disable-fs_inet was given.
4310if test "${enable_fs_inet+set}" = set; then
4311 enableval="$enable_fs_inet"
698dcdb6 4312
10f2d63a
VZ
4313 if test "$enableval" = yes; then
4314 ac_cv_use_fs_inet='wxUSE_FS_INET=yes'
4315 else
4316 ac_cv_use_fs_inet='wxUSE_FS_INET=no'
4317 fi
698dcdb6 4318
10f2d63a 4319else
698dcdb6 4320
10f2d63a
VZ
4321 LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}`
4322 if test "x$LINE" != x ; then
4323 eval "DEFAULT_$LINE"
4324 else
4325 no_cache=1
4326 fi
4327
4328 ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET
698dcdb6
VZ
4329
4330fi
10f2d63a
VZ
4331
4332
4333 eval "$ac_cv_use_fs_inet"
4334 if test "$no_cache" != 1; then
4335 echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp
4336 fi
4337
4338 if test "$wxUSE_FS_INET" = yes; then
698dcdb6 4339 echo "$ac_t""yes" 1>&6
10f2d63a 4340 else
698dcdb6 4341 echo "$ac_t""no" 1>&6
10f2d63a 4342 fi
698dcdb6 4343
10f2d63a 4344
698dcdb6 4345 echo $ac_n "checking for --enable-fs_zip""... $ac_c" 1>&6
986ecc86 4346echo "configure:4347: checking for --enable-fs_zip" >&5
10f2d63a
VZ
4347 no_cache=0
4348 # Check whether --enable-fs_zip or --disable-fs_zip was given.
4349if test "${enable_fs_zip+set}" = set; then
4350 enableval="$enable_fs_zip"
698dcdb6 4351
10f2d63a
VZ
4352 if test "$enableval" = yes; then
4353 ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes'
4354 else
4355 ac_cv_use_fs_zip='wxUSE_FS_ZIP=no'
4356 fi
698dcdb6 4357
10f2d63a 4358else
698dcdb6 4359
10f2d63a
VZ
4360 LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}`
4361 if test "x$LINE" != x ; then
4362 eval "DEFAULT_$LINE"
4363 else
4364 no_cache=1
4365 fi
4366
4367 ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP
698dcdb6
VZ
4368
4369fi
10f2d63a
VZ
4370
4371
4372 eval "$ac_cv_use_fs_zip"
4373 if test "$no_cache" != 1; then
4374 echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp
4375 fi
4376
4377 if test "$wxUSE_FS_ZIP" = yes; then
698dcdb6 4378 echo "$ac_t""yes" 1>&6
10f2d63a 4379 else
698dcdb6 4380 echo "$ac_t""no" 1>&6
10f2d63a 4381 fi
698dcdb6 4382
10f2d63a 4383
698dcdb6 4384 echo $ac_n "checking for --enable-zipstream""... $ac_c" 1>&6
986ecc86 4385echo "configure:4386: checking for --enable-zipstream" >&5
10f2d63a
VZ
4386 no_cache=0
4387 # Check whether --enable-zipstream or --disable-zipstream was given.
4388if test "${enable_zipstream+set}" = set; then
4389 enableval="$enable_zipstream"
698dcdb6 4390
10f2d63a
VZ
4391 if test "$enableval" = yes; then
4392 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes'
4393 else
4394 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no'
4395 fi
698dcdb6 4396
10f2d63a 4397else
698dcdb6 4398
10f2d63a
VZ
4399 LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}`
4400 if test "x$LINE" != x ; then
4401 eval "DEFAULT_$LINE"
4402 else
4403 no_cache=1
4404 fi
4405
4406 ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM
698dcdb6
VZ
4407
4408fi
10f2d63a
VZ
4409
4410
4411 eval "$ac_cv_use_zipstream"
4412 if test "$no_cache" != 1; then
4413 echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp
4414 fi
4415
4416 if test "$wxUSE_ZIPSTREAM" = yes; then
698dcdb6 4417 echo "$ac_t""yes" 1>&6
10f2d63a 4418 else
698dcdb6 4419 echo "$ac_t""no" 1>&6
10f2d63a 4420 fi
698dcdb6 4421
10f2d63a 4422
698dcdb6
VZ
4423
4424 echo $ac_n "checking for --enable-catch_segvs""... $ac_c" 1>&6
986ecc86 4425echo "configure:4426: checking for --enable-catch_segvs" >&5
eb4efbdc
VZ
4426 no_cache=0
4427 # Check whether --enable-catch_segvs or --disable-catch_segvs was given.
4428if test "${enable_catch_segvs+set}" = set; then
4429 enableval="$enable_catch_segvs"
698dcdb6 4430
eb4efbdc
VZ
4431 if test "$enableval" = yes; then
4432 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes'
4433 else
4434 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no'
4435 fi
698dcdb6 4436
eb4efbdc 4437else
698dcdb6 4438
eb4efbdc
VZ
4439 LINE=`grep "wxUSE_ON_FATAL_EXCEPTION" ${wx_arg_cache_file}`
4440 if test "x$LINE" != x ; then
4441 eval "DEFAULT_$LINE"
4442 else
4443 no_cache=1
4444 fi
4445
4446 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION='$DEFAULT_wxUSE_ON_FATAL_EXCEPTION
698dcdb6
VZ
4447
4448fi
eb4efbdc
VZ
4449
4450
4451 eval "$ac_cv_use_catch_segvs"
4452 if test "$no_cache" != 1; then
4453 echo $ac_cv_use_catch_segvs >> ${wx_arg_cache_file}.tmp
4454 fi
4455
4456 if test "$wxUSE_ON_FATAL_EXCEPTION" = yes; then
698dcdb6 4457 echo "$ac_t""yes" 1>&6
eb4efbdc 4458 else
698dcdb6 4459 echo "$ac_t""no" 1>&6
eb4efbdc 4460 fi
698dcdb6 4461
eb4efbdc 4462
698dcdb6 4463 echo $ac_n "checking for --enable-snglinst""... $ac_c" 1>&6
986ecc86 4464echo "configure:4465: checking for --enable-snglinst" >&5
4f3c5f06
VZ
4465 no_cache=0
4466 # Check whether --enable-snglinst or --disable-snglinst was given.
4467if test "${enable_snglinst+set}" = set; then
4468 enableval="$enable_snglinst"
698dcdb6 4469
4f3c5f06
VZ
4470 if test "$enableval" = yes; then
4471 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=yes'
4472 else
4473 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=no'
4474 fi
698dcdb6 4475
4f3c5f06 4476else
698dcdb6 4477
4f3c5f06
VZ
4478 LINE=`grep "wxUSE_SNGLINST_CHECKER" ${wx_arg_cache_file}`
4479 if test "x$LINE" != x ; then
4480 eval "DEFAULT_$LINE"
4481 else
4482 no_cache=1
4483 fi
4484
4485 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER='$DEFAULT_wxUSE_SNGLINST_CHECKER
698dcdb6
VZ
4486
4487fi
4f3c5f06
VZ
4488
4489
4490 eval "$ac_cv_use_snglinst"
4491 if test "$no_cache" != 1; then
4492 echo $ac_cv_use_snglinst >> ${wx_arg_cache_file}.tmp
4493 fi
4494
4495 if test "$wxUSE_SNGLINST_CHECKER" = yes; then
698dcdb6 4496 echo "$ac_t""yes" 1>&6
4f3c5f06 4497 else
698dcdb6 4498 echo "$ac_t""no" 1>&6
4f3c5f06 4499 fi
698dcdb6
VZ
4500
4501
eb4efbdc 4502
1e6feb95 4503 echo $ac_n "checking for --enable-mimetype""... $ac_c" 1>&6
986ecc86 4504echo "configure:4505: checking for --enable-mimetype" >&5
1e6feb95
VZ
4505 no_cache=0
4506 # Check whether --enable-mimetype or --disable-mimetype was given.
4507if test "${enable_mimetype+set}" = set; then
4508 enableval="$enable_mimetype"
4509
4510 if test "$enableval" = yes; then
4511 ac_cv_use_mimetype='wxUSE_MIMETYPE=yes'
4512 else
4513 ac_cv_use_mimetype='wxUSE_MIMETYPE=no'
4514 fi
4515
4516else
4517
4518 LINE=`grep "wxUSE_MIMETYPE" ${wx_arg_cache_file}`
4519 if test "x$LINE" != x ; then
4520 eval "DEFAULT_$LINE"
4521 else
4522 no_cache=1
4523 fi
4524
4525 ac_cv_use_mimetype='wxUSE_MIMETYPE='$DEFAULT_wxUSE_MIMETYPE
4526
4527fi
4528
4529
4530 eval "$ac_cv_use_mimetype"
4531 if test "$no_cache" != 1; then
4532 echo $ac_cv_use_mimetype >> ${wx_arg_cache_file}.tmp
4533 fi
4534
4535 if test "$wxUSE_MIMETYPE" = yes; then
4536 echo "$ac_t""yes" 1>&6
4537 else
4538 echo "$ac_t""no" 1>&6
4539 fi
4540
4541
3e44f09d 4542 echo $ac_n "checking for --enable-system_options""... $ac_c" 1>&6
986ecc86 4543echo "configure:4544: checking for --enable-system_options" >&5
3e44f09d
VZ
4544 no_cache=0
4545 # Check whether --enable-system_options or --disable-system_options was given.
4546if test "${enable_system_options+set}" = set; then
4547 enableval="$enable_system_options"
4548
4549 if test "$enableval" = yes; then
4550 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=yes'
4551 else
4552 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=no'
4553 fi
4554
4555else
4556
4557 LINE=`grep "wxUSE_SYSTEM_OPTIONS" ${wx_arg_cache_file}`
4558 if test "x$LINE" != x ; then
4559 eval "DEFAULT_$LINE"
4560 else
4561 no_cache=1
4562 fi
4563
4564 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS='$DEFAULT_wxUSE_SYSTEM_OPTIONS
4565
4566fi
4567
4568
4569 eval "$ac_cv_use_system_options"
4570 if test "$no_cache" != 1; then
4571 echo $ac_cv_use_system_options >> ${wx_arg_cache_file}.tmp
4572 fi
4573
4574 if test "$wxUSE_SYSTEM_OPTIONS" = yes; then
4575 echo "$ac_t""yes" 1>&6
4576 else
4577 echo "$ac_t""no" 1>&6
4578 fi
4579
4580
1e6feb95 4581
4cdb0ab0 4582 echo $ac_n "checking for --enable-url""... $ac_c" 1>&6
986ecc86 4583echo "configure:4584: checking for --enable-url" >&5
4cdb0ab0
VS
4584 no_cache=0
4585 # Check whether --enable-url or --disable-url was given.
4586if test "${enable_url+set}" = set; then
4587 enableval="$enable_url"
4588
4589 if test "$enableval" = yes; then
4590 ac_cv_use_url='wxUSE_URL=yes'
4591 else
4592 ac_cv_use_url='wxUSE_URL=no'
4593 fi
4594
4595else
4596
4597 LINE=`grep "wxUSE_URL" ${wx_arg_cache_file}`
4598 if test "x$LINE" != x ; then
4599 eval "DEFAULT_$LINE"
4600 else
4601 no_cache=1
4602 fi
4603
4604 ac_cv_use_url='wxUSE_URL='$DEFAULT_wxUSE_URL
4605
4606fi
4607
4608
4609 eval "$ac_cv_use_url"
4610 if test "$no_cache" != 1; then
4611 echo $ac_cv_use_url >> ${wx_arg_cache_file}.tmp
4612 fi
4613
4614 if test "$wxUSE_URL" = yes; then
4615 echo "$ac_t""yes" 1>&6
4616 else
4617 echo "$ac_t""no" 1>&6
4618 fi
4619
4620
4621 echo $ac_n "checking for --enable-protocol""... $ac_c" 1>&6
986ecc86 4622echo "configure:4623: checking for --enable-protocol" >&5
4cdb0ab0
VS
4623 no_cache=0
4624 # Check whether --enable-protocol or --disable-protocol was given.
4625if test "${enable_protocol+set}" = set; then
4626 enableval="$enable_protocol"
4627
4628 if test "$enableval" = yes; then
4629 ac_cv_use_protocol='wxUSE_PROTOCOL=yes'
4630 else
4631 ac_cv_use_protocol='wxUSE_PROTOCOL=no'
4632 fi
4633
4634else
4635
4636 LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
4637 if test "x$LINE" != x ; then
4638 eval "DEFAULT_$LINE"
4639 else
4640 no_cache=1
4641 fi
4642
4643 ac_cv_use_protocol='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
4644
4645fi
4646
4647
4648 eval "$ac_cv_use_protocol"
4649 if test "$no_cache" != 1; then
4650 echo $ac_cv_use_protocol >> ${wx_arg_cache_file}.tmp
4651 fi
4652
4653 if test "$wxUSE_PROTOCOL" = yes; then
4654 echo "$ac_t""yes" 1>&6
4655 else
4656 echo "$ac_t""no" 1>&6
4657 fi
4658
4659
4660 echo $ac_n "checking for --enable-protocol_http""... $ac_c" 1>&6
986ecc86 4661echo "configure:4662: checking for --enable-protocol_http" >&5
4cdb0ab0
VS
4662 no_cache=0
4663 # Check whether --enable-protocol_http or --disable-protocol_http was given.
4664if test "${enable_protocol_http+set}" = set; then
4665 enableval="$enable_protocol_http"
4666
4667 if test "$enableval" = yes; then
4668 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=yes'
4669 else
4670 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=no'
4671 fi
4672
4673else
4674
4675 LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
4676 if test "x$LINE" != x ; then
4677 eval "DEFAULT_$LINE"
4678 else
4679 no_cache=1
4680 fi
4681
4682 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
4683
4684fi
4685
4686
4687 eval "$ac_cv_use_protocol_http"
4688 if test "$no_cache" != 1; then
4689 echo $ac_cv_use_protocol_http >> ${wx_arg_cache_file}.tmp
4690 fi
4691
4692 if test "$wxUSE_PROTOCOL_HTTP" = yes; then
4693 echo "$ac_t""yes" 1>&6
4694 else
4695 echo "$ac_t""no" 1>&6
4696 fi
4697
4698
4699 echo $ac_n "checking for --enable-protocol_ftp""... $ac_c" 1>&6
986ecc86 4700echo "configure:4701: checking for --enable-protocol_ftp" >&5
4cdb0ab0
VS
4701 no_cache=0
4702 # Check whether --enable-protocol_ftp or --disable-protocol_ftp was given.
4703if test "${enable_protocol_ftp+set}" = set; then
4704 enableval="$enable_protocol_ftp"
4705
4706 if test "$enableval" = yes; then
4707 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=yes'
4708 else
4709 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=no'
4710 fi
4711
4712else
4713
4714 LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
4715 if test "x$LINE" != x ; then
4716 eval "DEFAULT_$LINE"
4717 else
4718 no_cache=1
4719 fi
4720
4721 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
4722
4723fi
4724
4725
4726 eval "$ac_cv_use_protocol_ftp"
4727 if test "$no_cache" != 1; then
4728 echo $ac_cv_use_protocol_ftp >> ${wx_arg_cache_file}.tmp
4729 fi
4730
4731 if test "$wxUSE_PROTOCOL_FTP" = yes; then
4732 echo "$ac_t""yes" 1>&6
4733 else
4734 echo "$ac_t""no" 1>&6
4735 fi
4736
4737
4738 echo $ac_n "checking for --enable-protocol_file""... $ac_c" 1>&6
986ecc86 4739echo "configure:4740: checking for --enable-protocol_file" >&5
4cdb0ab0
VS
4740 no_cache=0
4741 # Check whether --enable-protocol_file or --disable-protocol_file was given.
4742if test "${enable_protocol_file+set}" = set; then
4743 enableval="$enable_protocol_file"
4744
4745 if test "$enableval" = yes; then
4746 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=yes'
4747 else
4748 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=no'
4749 fi
4750
4751else
4752
4753 LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
4754 if test "x$LINE" != x ; then
4755 eval "DEFAULT_$LINE"
4756 else
4757 no_cache=1
4758 fi
4759
4760 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
4761
4762fi
4763
4764
4765 eval "$ac_cv_use_protocol_file"
4766 if test "$no_cache" != 1; then
4767 echo $ac_cv_use_protocol_file >> ${wx_arg_cache_file}.tmp
4768 fi
4769
4770 if test "$wxUSE_PROTOCOL_FILE" = yes; then
4771 echo "$ac_t""yes" 1>&6
4772 else
4773 echo "$ac_t""no" 1>&6
4774 fi
4775
4776
4777
4778
698dcdb6
VZ
4779
4780 echo $ac_n "checking for --enable-threads""... $ac_c" 1>&6
986ecc86 4781echo "configure:4782: checking for --enable-threads" >&5
10f2d63a
VZ
4782 no_cache=0
4783 # Check whether --enable-threads or --disable-threads was given.
4784if test "${enable_threads+set}" = set; then
4785 enableval="$enable_threads"
698dcdb6 4786
10f2d63a
VZ
4787 if test "$enableval" = yes; then
4788 ac_cv_use_threads='wxUSE_THREADS=yes'
4789 else
4790 ac_cv_use_threads='wxUSE_THREADS=no'
4791 fi
698dcdb6 4792
10f2d63a 4793else
698dcdb6 4794
10f2d63a
VZ
4795 LINE=`grep "wxUSE_THREADS" ${wx_arg_cache_file}`
4796 if test "x$LINE" != x ; then
4797 eval "DEFAULT_$LINE"
4798 else
4799 no_cache=1
4800 fi
4801
4802 ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS
698dcdb6
VZ
4803
4804fi
10f2d63a
VZ
4805
4806
4807 eval "$ac_cv_use_threads"
4808 if test "$no_cache" != 1; then
4809 echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp
4810 fi
4811
4812 if test "$wxUSE_THREADS" = yes; then
698dcdb6 4813 echo "$ac_t""yes" 1>&6
10f2d63a 4814 else
698dcdb6 4815 echo "$ac_t""no" 1>&6
10f2d63a 4816 fi
698dcdb6 4817
10f2d63a 4818
b12915c1
VZ
4819if test "$wxUSE_GUI" = "yes"; then
4820
698dcdb6
VZ
4821
4822
4823 echo $ac_n "checking for --enable-docview""... $ac_c" 1>&6
986ecc86 4824echo "configure:4825: checking for --enable-docview" >&5
10f2d63a
VZ
4825 no_cache=0
4826 # Check whether --enable-docview or --disable-docview was given.
4827if test "${enable_docview+set}" = set; then
4828 enableval="$enable_docview"
698dcdb6 4829
10f2d63a
VZ
4830 if test "$enableval" = yes; then
4831 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes'
4832 else
4833 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no'
4834 fi
698dcdb6 4835
10f2d63a 4836else
698dcdb6 4837
10f2d63a
VZ
4838 LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}`
4839 if test "x$LINE" != x ; then
4840 eval "DEFAULT_$LINE"
4841 else
4842 no_cache=1
4843 fi
4844
4845 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE
698dcdb6
VZ
4846
4847fi
10f2d63a
VZ
4848
4849
4850 eval "$ac_cv_use_docview"
4851 if test "$no_cache" != 1; then
4852 echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp
4853 fi
4854
4855 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then
698dcdb6 4856 echo "$ac_t""yes" 1>&6
10f2d63a 4857 else
698dcdb6 4858 echo "$ac_t""no" 1>&6
10f2d63a 4859 fi
698dcdb6 4860
10f2d63a 4861
698dcdb6 4862 echo $ac_n "checking for --enable-help""... $ac_c" 1>&6
986ecc86 4863echo "configure:4864: checking for --enable-help" >&5
10f2d63a
VZ
4864 no_cache=0
4865 # Check whether --enable-help or --disable-help was given.
4866if test "${enable_help+set}" = set; then
4867 enableval="$enable_help"
698dcdb6 4868
10f2d63a
VZ
4869 if test "$enableval" = yes; then
4870 ac_cv_use_help='wxUSE_HELP=yes'
4871 else
4872 ac_cv_use_help='wxUSE_HELP=no'
4873 fi
698dcdb6 4874
10f2d63a 4875else
698dcdb6 4876
10f2d63a
VZ
4877 LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}`
4878 if test "x$LINE" != x ; then
4879 eval "DEFAULT_$LINE"
4880 else
4881 no_cache=1
4882 fi
4883
4884 ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP
698dcdb6
VZ
4885
4886fi
10f2d63a
VZ
4887
4888
4889 eval "$ac_cv_use_help"
4890 if test "$no_cache" != 1; then
4891 echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp
4892 fi
4893
4894 if test "$wxUSE_HELP" = yes; then
698dcdb6 4895 echo "$ac_t""yes" 1>&6
10f2d63a 4896 else
698dcdb6 4897 echo "$ac_t""no" 1>&6
10f2d63a 4898 fi
698dcdb6 4899
10f2d63a 4900
29fd3c0c 4901 echo $ac_n "checking for --enable-mshtmlhelp""... $ac_c" 1>&6
986ecc86 4902echo "configure:4903: checking for --enable-mshtmlhelp" >&5
29fd3c0c
VS
4903 no_cache=0
4904 # Check whether --enable-mshtmlhelp or --disable-mshtmlhelp was given.
4905if test "${enable_mshtmlhelp+set}" = set; then
4906 enableval="$enable_mshtmlhelp"
4907
4908 if test "$enableval" = yes; then
4909 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=yes'
4910 else
4911 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=no'
4912 fi
4913
4914else
4915
4916 LINE=`grep "wxUSE_MS_HTML_HELP" ${wx_arg_cache_file}`
4917 if test "x$LINE" != x ; then
4918 eval "DEFAULT_$LINE"
4919 else
4920 no_cache=1
4921 fi
4922
4923 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP='$DEFAULT_wxUSE_MS_HTML_HELP
4924
4925fi
4926
4927
4928 eval "$ac_cv_use_mshtmlhelp"
4929 if test "$no_cache" != 1; then
4930 echo $ac_cv_use_mshtmlhelp >> ${wx_arg_cache_file}.tmp
4931 fi
4932
4933 if test "$wxUSE_MS_HTML_HELP" = yes; then
4934 echo "$ac_t""yes" 1>&6
4935 else
4936 echo "$ac_t""no" 1>&6
4937 fi
4938
4939
3379ed37 4940 echo $ac_n "checking for --enable-html""... $ac_c" 1>&6
986ecc86 4941echo "configure:4942: checking for --enable-html" >&5
3379ed37
VZ
4942 no_cache=0
4943 # Check whether --enable-html or --disable-html was given.
4944if test "${enable_html+set}" = set; then
4945 enableval="$enable_html"
4946
4947 if test "$enableval" = yes; then
4948 ac_cv_use_html='wxUSE_HTML=yes'
4949 else
4950 ac_cv_use_html='wxUSE_HTML=no'
4951 fi
4952
4953else
4954
4955 LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}`
4956 if test "x$LINE" != x ; then
4957 eval "DEFAULT_$LINE"
4958 else
4959 no_cache=1
4960 fi
4961
4962 ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML
4963
4964fi
4965
4966
4967 eval "$ac_cv_use_html"
4968 if test "$no_cache" != 1; then
4969 echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp
4970 fi
4971
4972 if test "$wxUSE_HTML" = yes; then
4973 echo "$ac_t""yes" 1>&6
4974 else
4975 echo "$ac_t""no" 1>&6
4976 fi
4977
4978
4979 echo $ac_n "checking for --enable-htmlhelp""... $ac_c" 1>&6
986ecc86 4980echo "configure:4981: checking for --enable-htmlhelp" >&5
3379ed37
VZ
4981 no_cache=0
4982 # Check whether --enable-htmlhelp or --disable-htmlhelp was given.
4983if test "${enable_htmlhelp+set}" = set; then
4984 enableval="$enable_htmlhelp"
4985
4986 if test "$enableval" = yes; then
4987 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=yes'
4988 else
4989 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=no'
4990 fi
4991
4992else
4993
4994 LINE=`grep "wxUSE_WXHTML_HELP" ${wx_arg_cache_file}`
4995 if test "x$LINE" != x ; then
4996 eval "DEFAULT_$LINE"
4997 else
4998 no_cache=1
4999 fi
5000
5001 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP='$DEFAULT_wxUSE_WXHTML_HELP
5002
5003fi
5004
5005
5006 eval "$ac_cv_use_htmlhelp"
5007 if test "$no_cache" != 1; then
5008 echo $ac_cv_use_htmlhelp >> ${wx_arg_cache_file}.tmp
5009 fi
5010
5011 if test "$wxUSE_WXHTML_HELP" = yes; then
5012 echo "$ac_t""yes" 1>&6
5013 else
5014 echo "$ac_t""no" 1>&6
5015 fi
5016
5017
698dcdb6 5018 echo $ac_n "checking for --enable-constraints""... $ac_c" 1>&6
986ecc86 5019echo "configure:5020: checking for --enable-constraints" >&5
10f2d63a
VZ
5020 no_cache=0
5021 # Check whether --enable-constraints or --disable-constraints was given.
5022if test "${enable_constraints+set}" = set; then
5023 enableval="$enable_constraints"
698dcdb6 5024
10f2d63a
VZ
5025 if test "$enableval" = yes; then
5026 ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes'
5027 else
5028 ac_cv_use_constraints='wxUSE_CONSTRAINTS=no'
5029 fi
698dcdb6 5030
10f2d63a 5031else
698dcdb6 5032
10f2d63a
VZ
5033 LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}`
5034 if test "x$LINE" != x ; then
5035 eval "DEFAULT_$LINE"
5036 else
5037 no_cache=1
5038 fi
5039
5040 ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS
698dcdb6
VZ
5041
5042fi
10f2d63a
VZ
5043
5044
5045 eval "$ac_cv_use_constraints"
5046 if test "$no_cache" != 1; then
5047 echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp
5048 fi
5049
5050 if test "$wxUSE_CONSTRAINTS" = yes; then
698dcdb6 5051 echo "$ac_t""yes" 1>&6
10f2d63a 5052 else
698dcdb6 5053 echo "$ac_t""no" 1>&6
10f2d63a 5054 fi
698dcdb6 5055
10f2d63a 5056
698dcdb6 5057 echo $ac_n "checking for --enable-printarch""... $ac_c" 1>&6
986ecc86 5058echo "configure:5059: checking for --enable-printarch" >&5
10f2d63a
VZ
5059 no_cache=0
5060 # Check whether --enable-printarch or --disable-printarch was given.
5061if test "${enable_printarch+set}" = set; then
5062 enableval="$enable_printarch"
698dcdb6 5063
10f2d63a
VZ
5064 if test "$enableval" = yes; then
5065 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes'
5066 else
5067 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no'
5068 fi
698dcdb6 5069
10f2d63a 5070else
698dcdb6 5071
10f2d63a
VZ
5072 LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}`
5073 if test "x$LINE" != x ; then
5074 eval "DEFAULT_$LINE"
5075 else
5076 no_cache=1
5077 fi
5078
5079 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE
698dcdb6
VZ
5080
5081fi
10f2d63a
VZ
5082
5083
5084 eval "$ac_cv_use_printarch"
5085 if test "$no_cache" != 1; then
5086 echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp
5087 fi
5088
5089 if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then
698dcdb6 5090 echo "$ac_t""yes" 1>&6
10f2d63a 5091 else
698dcdb6 5092 echo "$ac_t""no" 1>&6
10f2d63a 5093 fi
698dcdb6 5094
10f2d63a 5095
698dcdb6 5096 echo $ac_n "checking for --enable-mdi""... $ac_c" 1>&6
986ecc86 5097echo "configure:5098: checking for --enable-mdi" >&5
10f2d63a
VZ
5098 no_cache=0
5099 # Check whether --enable-mdi or --disable-mdi was given.
5100if test "${enable_mdi+set}" = set; then
5101 enableval="$enable_mdi"
698dcdb6 5102
10f2d63a
VZ
5103 if test "$enableval" = yes; then
5104 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=yes'
5105 else
5106 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=no'
5107 fi
698dcdb6 5108
10f2d63a 5109else
698dcdb6 5110
10f2d63a
VZ
5111 LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}`
5112 if test "x$LINE" != x ; then
5113 eval "DEFAULT_$LINE"
5114 else
5115 no_cache=1
5116 fi
5117
5118 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE
698dcdb6
VZ
5119
5120fi
10f2d63a
VZ
5121
5122
5123 eval "$ac_cv_use_mdi"
5124 if test "$no_cache" != 1; then
5125 echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp
5126 fi
5127
5128 if test "$wxUSE_MDI_ARCHITECTURE" = yes; then
698dcdb6 5129 echo "$ac_t""yes" 1>&6
10f2d63a 5130 else
698dcdb6 5131 echo "$ac_t""no" 1>&6
10f2d63a 5132 fi
698dcdb6
VZ
5133
5134
1e6feb95 5135 echo $ac_n "checking for --enable-loggui""... $ac_c" 1>&6
986ecc86 5136echo "configure:5137: checking for --enable-loggui" >&5
1e6feb95
VZ
5137 no_cache=0
5138 # Check whether --enable-loggui or --disable-loggui was given.
5139if test "${enable_loggui+set}" = set; then
5140 enableval="$enable_loggui"
5141
5142 if test "$enableval" = yes; then
5143 ac_cv_use_loggui='wxUSE_LOGGUI=yes'
5144 else
5145 ac_cv_use_loggui='wxUSE_LOGGUI=no'
5146 fi
5147
5148else
5149
5150 LINE=`grep "wxUSE_LOGGUI" ${wx_arg_cache_file}`
5151 if test "x$LINE" != x ; then
5152 eval "DEFAULT_$LINE"
5153 else
5154 no_cache=1
5155 fi
5156
5157 ac_cv_use_loggui='wxUSE_LOGGUI='$DEFAULT_wxUSE_LOGGUI
5158
5159fi
5160
5161
5162 eval "$ac_cv_use_loggui"
5163 if test "$no_cache" != 1; then
5164 echo $ac_cv_use_loggui >> ${wx_arg_cache_file}.tmp
5165 fi
5166
5167 if test "$wxUSE_LOGGUI" = yes; then
5168 echo "$ac_t""yes" 1>&6
5169 else
5170 echo "$ac_t""no" 1>&6
5171 fi
5172
5173
5174 echo $ac_n "checking for --enable-logwin""... $ac_c" 1>&6
986ecc86 5175echo "configure:5176: checking for --enable-logwin" >&5
1e6feb95
VZ
5176 no_cache=0
5177 # Check whether --enable-logwin or --disable-logwin was given.
5178if test "${enable_logwin+set}" = set; then
5179 enableval="$enable_logwin"
5180
5181 if test "$enableval" = yes; then
5182 ac_cv_use_logwin='wxUSE_LOGWINDOW=yes'
5183 else
5184 ac_cv_use_logwin='wxUSE_LOGWINDOW=no'
5185 fi
5186
5187else
5188
5189 LINE=`grep "wxUSE_LOGWINDOW" ${wx_arg_cache_file}`
5190 if test "x$LINE" != x ; then
5191 eval "DEFAULT_$LINE"
5192 else
5193 no_cache=1
5194 fi
5195
5196 ac_cv_use_logwin='wxUSE_LOGWINDOW='$DEFAULT_wxUSE_LOGWINDOW
5197
5198fi
5199
5200
5201 eval "$ac_cv_use_logwin"
5202 if test "$no_cache" != 1; then
5203 echo $ac_cv_use_logwin >> ${wx_arg_cache_file}.tmp
5204 fi
5205
5206 if test "$wxUSE_LOGWINDOW" = yes; then
5207 echo "$ac_t""yes" 1>&6
5208 else
5209 echo "$ac_t""no" 1>&6
5210 fi
5211
5212
69d27ff7 5213 echo $ac_n "checking for --enable-logdialog""... $ac_c" 1>&6
986ecc86 5214echo "configure:5215: checking for --enable-logdialog" >&5
69d27ff7
MB
5215 no_cache=0
5216 # Check whether --enable-logdialog or --disable-logdialog was given.
5217if test "${enable_logdialog+set}" = set; then
5218 enableval="$enable_logdialog"
5219
5220 if test "$enableval" = yes; then
5221 ac_cv_use_logdialog='wxUSE_LOGDIALOG=yes'
5222 else
5223 ac_cv_use_logdialog='wxUSE_LOGDIALOG=no'
5224 fi
5225
5226else
5227
5228 LINE=`grep "wxUSE_LOGDIALOG" ${wx_arg_cache_file}`
5229 if test "x$LINE" != x ; then
5230 eval "DEFAULT_$LINE"
5231 else
5232 no_cache=1
5233 fi
5234
5235 ac_cv_use_logdialog='wxUSE_LOGDIALOG='$DEFAULT_wxUSE_LOGDIALOG
5236
5237fi
5238
5239
5240 eval "$ac_cv_use_logdialog"
5241 if test "$no_cache" != 1; then
5242 echo $ac_cv_use_logdialog >> ${wx_arg_cache_file}.tmp
5243 fi
5244
5245 if test "$wxUSE_LOGDIALOG" = yes; then
5246 echo "$ac_t""yes" 1>&6
5247 else
5248 echo "$ac_t""no" 1>&6
5249 fi
5250
5251
10f2d63a 5252
698dcdb6 5253 echo $ac_n "checking for --enable-postscript""... $ac_c" 1>&6
986ecc86 5254echo "configure:5255: checking for --enable-postscript" >&5
10f2d63a
VZ
5255 no_cache=0
5256 # Check whether --enable-postscript or --disable-postscript was given.
5257if test "${enable_postscript+set}" = set; then
5258 enableval="$enable_postscript"
698dcdb6 5259
10f2d63a
VZ
5260 if test "$enableval" = yes; then
5261 ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes'
5262 else
5263 ac_cv_use_postscript='wxUSE_POSTSCRIPT=no'
5264 fi
698dcdb6 5265
10f2d63a 5266else
698dcdb6 5267
10f2d63a
VZ
5268 LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}`
5269 if test "x$LINE" != x ; then
5270 eval "DEFAULT_$LINE"
5271 else
5272 no_cache=1
5273 fi
5274
5275 ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT
698dcdb6
VZ
5276
5277fi
10f2d63a
VZ
5278
5279
5280 eval "$ac_cv_use_postscript"
5281 if test "$no_cache" != 1; then
5282 echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp
5283 fi
5284
5285 if test "$wxUSE_POSTSCRIPT" = yes; then
698dcdb6 5286 echo "$ac_t""yes" 1>&6
10f2d63a 5287 else
698dcdb6 5288 echo "$ac_t""no" 1>&6
10f2d63a 5289 fi
698dcdb6
VZ
5290
5291
5292
10f2d63a 5293
1e6feb95 5294
698dcdb6 5295 echo $ac_n "checking for --enable-prologio""... $ac_c" 1>&6
986ecc86 5296echo "configure:5297: checking for --enable-prologio" >&5
10f2d63a
VZ
5297 no_cache=0
5298 # Check whether --enable-prologio or --disable-prologio was given.
5299if test "${enable_prologio+set}" = set; then
5300 enableval="$enable_prologio"
698dcdb6 5301
10f2d63a
VZ
5302 if test "$enableval" = yes; then
5303 ac_cv_use_prologio='wxUSE_PROLOGIO=yes'
5304 else
5305 ac_cv_use_prologio='wxUSE_PROLOGIO=no'
5306 fi
698dcdb6 5307
10f2d63a 5308else
698dcdb6 5309
10f2d63a
VZ
5310 LINE=`grep "wxUSE_PROLOGIO" ${wx_arg_cache_file}`
5311 if test "x$LINE" != x ; then
5312 eval "DEFAULT_$LINE"
5313 else
5314 no_cache=1
5315 fi
5316
5317 ac_cv_use_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO
698dcdb6
VZ
5318
5319fi
10f2d63a
VZ
5320
5321
5322 eval "$ac_cv_use_prologio"
5323 if test "$no_cache" != 1; then
5324 echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp
5325 fi
5326
5327 if test "$wxUSE_PROLOGIO" = yes; then
698dcdb6 5328 echo "$ac_t""yes" 1>&6
10f2d63a 5329 else
698dcdb6 5330 echo "$ac_t""no" 1>&6
10f2d63a 5331 fi
698dcdb6 5332
10f2d63a 5333
698dcdb6 5334 echo $ac_n "checking for --enable-resources""... $ac_c" 1>&6
986ecc86 5335echo "configure:5336: checking for --enable-resources" >&5
10f2d63a
VZ
5336 no_cache=0
5337 # Check whether --enable-resources or --disable-resources was given.
5338if test "${enable_resources+set}" = set; then
5339 enableval="$enable_resources"
698dcdb6 5340
10f2d63a
VZ
5341 if test "$enableval" = yes; then
5342 ac_cv_use_resources='wxUSE_RESOURCES=yes'
5343 else
5344 ac_cv_use_resources='wxUSE_RESOURCES=no'
5345 fi
698dcdb6 5346
10f2d63a 5347else
698dcdb6 5348
10f2d63a
VZ
5349 LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}`
5350 if test "x$LINE" != x ; then
5351 eval "DEFAULT_$LINE"
5352 else
5353 no_cache=1
5354 fi
5355
5356 ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES
698dcdb6
VZ
5357
5358fi
10f2d63a
VZ
5359
5360
5361 eval "$ac_cv_use_resources"
5362 if test "$no_cache" != 1; then
5363 echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp
5364 fi
5365
5366 if test "$wxUSE_RESOURCES" = yes; then
698dcdb6 5367 echo "$ac_t""yes" 1>&6
10f2d63a 5368 else
698dcdb6 5369 echo "$ac_t""no" 1>&6
10f2d63a 5370 fi
698dcdb6 5371
10f2d63a 5372
698dcdb6
VZ
5373
5374 echo $ac_n "checking for --enable-xresources""... $ac_c" 1>&6
986ecc86 5375echo "configure:5376: checking for --enable-xresources" >&5
10f2d63a
VZ
5376 no_cache=0
5377 # Check whether --enable-xresources or --disable-xresources was given.
5378if test "${enable_xresources+set}" = set; then
5379 enableval="$enable_xresources"
698dcdb6 5380
10f2d63a
VZ
5381 if test "$enableval" = yes; then
5382 ac_cv_use_xresources='wxUSE_X_RESOURCES=yes'
5383 else
5384 ac_cv_use_xresources='wxUSE_X_RESOURCES=no'
5385 fi
698dcdb6 5386
10f2d63a 5387else
698dcdb6 5388
10f2d63a
VZ
5389 LINE=`grep "wxUSE_X_RESOURCES" ${wx_arg_cache_file}`
5390 if test "x$LINE" != x ; then
5391 eval "DEFAULT_$LINE"
5392 else
5393 no_cache=1
5394 fi
5395
5396 ac_cv_use_xresources='wxUSE_X_RESOURCES='$DEFAULT_wxUSE_X_RESOURCES
698dcdb6
VZ
5397
5398fi
10f2d63a
VZ
5399
5400
5401 eval "$ac_cv_use_xresources"
5402 if test "$no_cache" != 1; then
5403 echo $ac_cv_use_xresources >> ${wx_arg_cache_file}.tmp
5404 fi
5405
5406 if test "$wxUSE_X_RESOURCES" = yes; then
698dcdb6 5407 echo "$ac_t""yes" 1>&6
10f2d63a 5408 else
698dcdb6 5409 echo "$ac_t""no" 1>&6
10f2d63a 5410 fi
698dcdb6
VZ
5411
5412
10f2d63a 5413
698dcdb6
VZ
5414
5415 echo $ac_n "checking for --enable-clipboard""... $ac_c" 1>&6
986ecc86 5416echo "configure:5417: checking for --enable-clipboard" >&5
10f2d63a
VZ
5417 no_cache=0
5418 # Check whether --enable-clipboard or --disable-clipboard was given.
5419if test "${enable_clipboard+set}" = set; then
5420 enableval="$enable_clipboard"
698dcdb6 5421
10f2d63a
VZ
5422 if test "$enableval" = yes; then
5423 ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes'
5424 else
5425 ac_cv_use_clipboard='wxUSE_CLIPBOARD=no'
5426 fi
698dcdb6 5427
10f2d63a 5428else
698dcdb6 5429
10f2d63a
VZ
5430 LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}`
5431 if test "x$LINE" != x ; then
5432 eval "DEFAULT_$LINE"
5433 else
5434 no_cache=1
5435 fi
5436
5437 ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD
698dcdb6
VZ
5438
5439fi
10f2d63a
VZ
5440
5441
5442 eval "$ac_cv_use_clipboard"
5443 if test "$no_cache" != 1; then
5444 echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp
5445 fi
5446
5447 if test "$wxUSE_CLIPBOARD" = yes; then
698dcdb6 5448 echo "$ac_t""yes" 1>&6
10f2d63a 5449 else
698dcdb6 5450 echo "$ac_t""no" 1>&6
10f2d63a 5451 fi
698dcdb6 5452
10f2d63a 5453
698dcdb6 5454 echo $ac_n "checking for --enable-dnd""... $ac_c" 1>&6
986ecc86 5455echo "configure:5456: checking for --enable-dnd" >&5
10f2d63a
VZ
5456 no_cache=0
5457 # Check whether --enable-dnd or --disable-dnd was given.
5458if test "${enable_dnd+set}" = set; then
5459 enableval="$enable_dnd"
698dcdb6 5460
10f2d63a
VZ
5461 if test "$enableval" = yes; then
5462 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes'
5463 else
5464 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no'
5465 fi
698dcdb6 5466
10f2d63a 5467else
698dcdb6 5468
10f2d63a
VZ
5469 LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}`
5470 if test "x$LINE" != x ; then
5471 eval "DEFAULT_$LINE"
5472 else
5473 no_cache=1
5474 fi
5475
5476 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP
698dcdb6
VZ
5477
5478fi
10f2d63a
VZ
5479
5480
5481 eval "$ac_cv_use_dnd"
5482 if test "$no_cache" != 1; then
5483 echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp
5484 fi
5485
5486 if test "$wxUSE_DRAG_AND_DROP" = yes; then
698dcdb6 5487 echo "$ac_t""yes" 1>&6
10f2d63a 5488 else
698dcdb6 5489 echo "$ac_t""no" 1>&6
10f2d63a 5490 fi
698dcdb6 5491
10f2d63a 5492
698dcdb6 5493 echo $ac_n "checking for --enable-metafile""... $ac_c" 1>&6
986ecc86 5494echo "configure:5495: checking for --enable-metafile" >&5
b64f0a5f
RL
5495 no_cache=0
5496 # Check whether --enable-metafile or --disable-metafile was given.
5497if test "${enable_metafile+set}" = set; then
5498 enableval="$enable_metafile"
698dcdb6 5499
b64f0a5f
RL
5500 if test "$enableval" = yes; then
5501 ac_cv_use_metafile='wxUSE_METAFILE=yes'
5502 else
5503 ac_cv_use_metafile='wxUSE_METAFILE=no'
5504 fi
698dcdb6 5505
b64f0a5f 5506else
698dcdb6 5507
b64f0a5f
RL
5508 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
5509 if test "x$LINE" != x ; then
5510 eval "DEFAULT_$LINE"
5511 else
5512 no_cache=1
5513 fi
5514
5515 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
698dcdb6
VZ
5516
5517fi
b64f0a5f
RL
5518
5519
5520 eval "$ac_cv_use_metafile"
5521 if test "$no_cache" != 1; then
5522 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
5523 fi
5524
5525 if test "$wxUSE_METAFILE" = yes; then
698dcdb6 5526 echo "$ac_t""yes" 1>&6
b64f0a5f 5527 else
698dcdb6 5528 echo "$ac_t""no" 1>&6
b64f0a5f 5529 fi
698dcdb6
VZ
5530
5531
10f2d63a 5532
24176f2c 5533 echo $ac_n "checking for --enable-treelayout""... $ac_c" 1>&6
986ecc86 5534echo "configure:5535: checking for --enable-treelayout" >&5
10f2d63a 5535 no_cache=0
24176f2c
GD
5536 # Check whether --enable-treelayout or --disable-treelayout was given.
5537if test "${enable_treelayout+set}" = set; then
5538 enableval="$enable_treelayout"
698dcdb6 5539
10f2d63a 5540 if test "$enableval" = yes; then
24176f2c 5541 ac_cv_use_treelayout='wxUSE_TREELAYOUT=yes'
10f2d63a 5542 else
24176f2c 5543 ac_cv_use_treelayout='wxUSE_TREELAYOUT=no'
10f2d63a 5544 fi
698dcdb6 5545
10f2d63a 5546else
698dcdb6 5547
24176f2c 5548 LINE=`grep "wxUSE_TREELAYOUT" ${wx_arg_cache_file}`
10f2d63a
VZ
5549 if test "x$LINE" != x ; then
5550 eval "DEFAULT_$LINE"
5551 else
5552 no_cache=1
5553 fi
5554
24176f2c 5555 ac_cv_use_treelayout='wxUSE_TREELAYOUT='$DEFAULT_wxUSE_TREELAYOUT
698dcdb6
VZ
5556
5557fi
10f2d63a
VZ
5558
5559
24176f2c 5560 eval "$ac_cv_use_treelayout"
10f2d63a 5561 if test "$no_cache" != 1; then
24176f2c 5562 echo $ac_cv_use_treelayout >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
5563 fi
5564
24176f2c 5565 if test "$wxUSE_TREELAYOUT" = yes; then
698dcdb6 5566 echo "$ac_t""yes" 1>&6
10f2d63a 5567 else
698dcdb6 5568 echo "$ac_t""no" 1>&6
10f2d63a 5569 fi
698dcdb6 5570
10f2d63a 5571
698dcdb6
VZ
5572
5573
5574 echo $ac_n "checking for --enable-controls""... $ac_c" 1>&6
986ecc86 5575echo "configure:5576: checking for --enable-controls" >&5
10f2d63a
VZ
5576 no_cache=0
5577 # Check whether --enable-controls or --disable-controls was given.
5578if test "${enable_controls+set}" = set; then
5579 enableval="$enable_controls"
698dcdb6 5580
10f2d63a
VZ
5581 if test "$enableval" = yes; then
5582 ac_cv_use_controls='wxUSE_CONTROLS=yes'
5583 else
5584 ac_cv_use_controls='wxUSE_CONTROLS=no'
5585 fi
698dcdb6 5586
10f2d63a 5587else
698dcdb6 5588
10f2d63a
VZ
5589 LINE=`grep "wxUSE_CONTROLS" ${wx_arg_cache_file}`
5590 if test "x$LINE" != x ; then
5591 eval "DEFAULT_$LINE"
5592 else
5593 no_cache=1
5594 fi
5595
5596 ac_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS
698dcdb6
VZ
5597
5598fi
10f2d63a
VZ
5599
5600
5601 eval "$ac_cv_use_controls"
5602 if test "$no_cache" != 1; then
5603 echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp
5604 fi
5605
5606 if test "$wxUSE_CONTROLS" = yes; then
698dcdb6 5607 echo "$ac_t""yes" 1>&6
10f2d63a 5608 else
698dcdb6 5609 echo "$ac_t""no" 1>&6
10f2d63a 5610 fi
698dcdb6 5611
10f2d63a
VZ
5612
5613if test "$wxUSE_CONTROLS" = "yes"; then
5614 DEFAULT_wxUSE_ACCEL=yes
1e6feb95
VZ
5615 DEFAULT_wxUSE_BMPBUTTON=yes
5616 DEFAULT_wxUSE_BUTTON=yes
5617 DEFAULT_wxUSE_CALCTRL=no
10f2d63a
VZ
5618 DEFAULT_wxUSE_CARET=yes
5619 DEFAULT_wxUSE_COMBOBOX=yes
10f2d63a
VZ
5620 DEFAULT_wxUSE_CHECKBOX=yes
5621 DEFAULT_wxUSE_CHECKLISTBOX=yes
5622 DEFAULT_wxUSE_CHOICE=yes
5623 DEFAULT_wxUSE_GAUGE=yes
5624 DEFAULT_wxUSE_GRID=yes
cc977e5f 5625 DEFAULT_wxUSE_NEW_GRID=yes
10f2d63a
VZ
5626 DEFAULT_wxUSE_IMAGLIST=yes
5627 DEFAULT_wxUSE_LISTBOX=yes
5628 DEFAULT_wxUSE_LISTCTRL=yes
5629 DEFAULT_wxUSE_NOTEBOOK=yes
24176f2c 5630 DEFAULT_wxUSE_PROPSHEET=yes
10f2d63a
VZ
5631 DEFAULT_wxUSE_RADIOBOX=yes
5632 DEFAULT_wxUSE_RADIOBTN=yes
5633 DEFAULT_wxUSE_SASH=yes
5634 DEFAULT_wxUSE_SCROLLBAR=yes
5635 DEFAULT_wxUSE_SLIDER=yes
5636 DEFAULT_wxUSE_SPINBTN=yes
56cfaa52 5637 DEFAULT_wxUSE_SPINCTRL=yes
10f2d63a
VZ
5638 DEFAULT_wxUSE_SPLITTER=yes
5639 DEFAULT_wxUSE_STATBMP=yes
5640 DEFAULT_wxUSE_STATBOX=yes
5641 DEFAULT_wxUSE_STATLINE=yes
5642 DEFAULT_wxUSE_STATUSBAR=yes
5643 DEFAULT_wxUSE_TAB_DIALOG=yes
1db8dc4a 5644 DEFAULT_wxUSE_TOGGLEBTN=yes
10f2d63a 5645 DEFAULT_wxUSE_TOOLBAR=yes
360d6699
VZ
5646 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
5647 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
10f2d63a
VZ
5648 DEFAULT_wxUSE_TOOLTIPS=yes
5649 DEFAULT_wxUSE_TREECTRL=yes
9f41d601 5650 DEFAULT_wxUSE_POPUPWIN=yes
9926e4a4 5651 DEFAULT_wxUSE_TIPWINDOW=yes
10f2d63a
VZ
5652elif test "$wxUSE_CONTROLS" = "no"; then
5653 DEFAULT_wxUSE_ACCEL=no
1e6feb95
VZ
5654 DEFAULT_wxUSE_BMPBUTTON=no
5655 DEFAULT_wxUSE_BUTTON=no
5656 DEFAULT_wxUSE_CALCTRL=no
10f2d63a
VZ
5657 DEFAULT_wxUSE_CARET=no
5658 DEFAULT_wxUSE_COMBOBOX=no
10f2d63a
VZ
5659 DEFAULT_wxUSE_CHECKBOX=no
5660 DEFAULT_wxUSE_CHECKLISTBOX=no
5661 DEFAULT_wxUSE_CHOICE=no
5662 DEFAULT_wxUSE_GAUGE=no
5663 DEFAULT_wxUSE_GRID=no
5664 DEFAULT_wxUSE_NEW_GRID=no
5665 DEFAULT_wxUSE_IMAGLIST=no
5666 DEFAULT_wxUSE_LISTBOX=no
5667 DEFAULT_wxUSE_LISTCTRL=no
5668 DEFAULT_wxUSE_NOTEBOOK=no
24176f2c 5669 DEFAULT_wxUSE_PROPSHEET=no
10f2d63a
VZ
5670 DEFAULT_wxUSE_RADIOBOX=no
5671 DEFAULT_wxUSE_RADIOBTN=no
5672 DEFAULT_wxUSE_SASH=no
5673 DEFAULT_wxUSE_SCROLLBAR=no
5674 DEFAULT_wxUSE_SLIDER=no
5675 DEFAULT_wxUSE_SPINBTN=no
56cfaa52 5676 DEFAULT_wxUSE_SPINCTRL=no
10f2d63a
VZ
5677 DEFAULT_wxUSE_SPLITTER=no
5678 DEFAULT_wxUSE_STATBMP=no
5679 DEFAULT_wxUSE_STATBOX=no
5680 DEFAULT_wxUSE_STATLINE=no
5681 DEFAULT_wxUSE_STATUSBAR=no
5682 DEFAULT_wxUSE_TAB_DIALOG=no
1db8dc4a 5683 DEFAULT_wxUSE_TOGGLEBTN=no
10f2d63a 5684 DEFAULT_wxUSE_TOOLBAR=no
360d6699
VZ
5685 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
5686 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
10f2d63a
VZ
5687 DEFAULT_wxUSE_TOOLTIPS=no
5688 DEFAULT_wxUSE_TREECTRL=no
9f41d601 5689 DEFAULT_wxUSE_POPUPWIN=no
9926e4a4 5690 DEFAULT_wxUSE_TIPWINDOW=no
10f2d63a
VZ
5691fi
5692
698dcdb6
VZ
5693
5694 echo $ac_n "checking for --enable-accel""... $ac_c" 1>&6
986ecc86 5695echo "configure:5696: checking for --enable-accel" >&5
10f2d63a
VZ
5696 no_cache=0
5697 # Check whether --enable-accel or --disable-accel was given.
5698if test "${enable_accel+set}" = set; then
5699 enableval="$enable_accel"
698dcdb6 5700
10f2d63a
VZ
5701 if test "$enableval" = yes; then
5702 ac_cv_use_accel='wxUSE_ACCEL=yes'
5703 else
5704 ac_cv_use_accel='wxUSE_ACCEL=no'
5705 fi
698dcdb6 5706
10f2d63a 5707else
698dcdb6 5708
10f2d63a
VZ
5709 LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}`
5710 if test "x$LINE" != x ; then
5711 eval "DEFAULT_$LINE"
5712 else
5713 no_cache=1
5714 fi
5715
5716 ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL
698dcdb6
VZ
5717
5718fi
10f2d63a
VZ
5719
5720
5721 eval "$ac_cv_use_accel"
5722 if test "$no_cache" != 1; then
5723 echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp
5724 fi
5725
5726 if test "$wxUSE_ACCEL" = yes; then
698dcdb6 5727 echo "$ac_t""yes" 1>&6
10f2d63a 5728 else
698dcdb6 5729 echo "$ac_t""no" 1>&6
10f2d63a 5730 fi
698dcdb6 5731
10f2d63a 5732
1e6feb95 5733 echo $ac_n "checking for --enable-button""... $ac_c" 1>&6
986ecc86 5734echo "configure:5735: checking for --enable-button" >&5
10f2d63a 5735 no_cache=0
1e6feb95
VZ
5736 # Check whether --enable-button or --disable-button was given.
5737if test "${enable_button+set}" = set; then
5738 enableval="$enable_button"
698dcdb6 5739
10f2d63a 5740 if test "$enableval" = yes; then
1e6feb95 5741 ac_cv_use_button='wxUSE_BUTTON=yes'
10f2d63a 5742 else
1e6feb95 5743 ac_cv_use_button='wxUSE_BUTTON=no'
10f2d63a 5744 fi
698dcdb6 5745
10f2d63a 5746else
698dcdb6 5747
1e6feb95 5748 LINE=`grep "wxUSE_BUTTON" ${wx_arg_cache_file}`
10f2d63a
VZ
5749 if test "x$LINE" != x ; then
5750 eval "DEFAULT_$LINE"
5751 else
5752 no_cache=1
5753 fi
5754
1e6feb95 5755 ac_cv_use_button='wxUSE_BUTTON='$DEFAULT_wxUSE_BUTTON
698dcdb6
VZ
5756
5757fi
10f2d63a
VZ
5758
5759
1e6feb95 5760 eval "$ac_cv_use_button"
10f2d63a 5761 if test "$no_cache" != 1; then
1e6feb95 5762 echo $ac_cv_use_button >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
5763 fi
5764
1e6feb95 5765 if test "$wxUSE_BUTTON" = yes; then
698dcdb6 5766 echo "$ac_t""yes" 1>&6
10f2d63a 5767 else
698dcdb6 5768 echo "$ac_t""no" 1>&6
10f2d63a 5769 fi
698dcdb6 5770
10f2d63a 5771
698dcdb6 5772 echo $ac_n "checking for --enable-bmpbutton""... $ac_c" 1>&6
986ecc86 5773echo "configure:5774: checking for --enable-bmpbutton" >&5
10f2d63a
VZ
5774 no_cache=0
5775 # Check whether --enable-bmpbutton or --disable-bmpbutton was given.
5776if test "${enable_bmpbutton+set}" = set; then
5777 enableval="$enable_bmpbutton"
698dcdb6 5778
10f2d63a
VZ
5779 if test "$enableval" = yes; then
5780 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes'
5781 else
5782 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no'
5783 fi
698dcdb6 5784
10f2d63a 5785else
698dcdb6 5786
10f2d63a
VZ
5787 LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}`
5788 if test "x$LINE" != x ; then
5789 eval "DEFAULT_$LINE"
5790 else
5791 no_cache=1
5792 fi
5793
5794 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON
698dcdb6
VZ
5795
5796fi
10f2d63a
VZ
5797
5798
5799 eval "$ac_cv_use_bmpbutton"
5800 if test "$no_cache" != 1; then
5801 echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp
5802 fi
5803
5804 if test "$wxUSE_BMPBUTTON" = yes; then
698dcdb6 5805 echo "$ac_t""yes" 1>&6
10f2d63a 5806 else
698dcdb6 5807 echo "$ac_t""no" 1>&6
10f2d63a 5808 fi
698dcdb6 5809
10f2d63a 5810
1e6feb95 5811 echo $ac_n "checking for --enable-calendar""... $ac_c" 1>&6
986ecc86 5812echo "configure:5813: checking for --enable-calendar" >&5
1e6feb95
VZ
5813 no_cache=0
5814 # Check whether --enable-calendar or --disable-calendar was given.
5815if test "${enable_calendar+set}" = set; then
5816 enableval="$enable_calendar"
5817
5818 if test "$enableval" = yes; then
5819 ac_cv_use_calendar='wxUSE_CALCTRL=yes'
5820 else
5821 ac_cv_use_calendar='wxUSE_CALCTRL=no'
5822 fi
5823
5824else
5825
5826 LINE=`grep "wxUSE_CALCTRL" ${wx_arg_cache_file}`
5827 if test "x$LINE" != x ; then
5828 eval "DEFAULT_$LINE"
5829 else
5830 no_cache=1
5831 fi
5832
5833 ac_cv_use_calendar='wxUSE_CALCTRL='$DEFAULT_wxUSE_CALCTRL
5834
5835fi
5836
5837
5838 eval "$ac_cv_use_calendar"
5839 if test "$no_cache" != 1; then
5840 echo $ac_cv_use_calendar >> ${wx_arg_cache_file}.tmp
5841 fi
5842
5843 if test "$wxUSE_CALCTRL" = yes; then
5844 echo "$ac_t""yes" 1>&6
5845 else
5846 echo "$ac_t""no" 1>&6
5847 fi
5848
5849
5850 echo $ac_n "checking for --enable-caret""... $ac_c" 1>&6
986ecc86 5851echo "configure:5852: checking for --enable-caret" >&5
1e6feb95
VZ
5852 no_cache=0
5853 # Check whether --enable-caret or --disable-caret was given.
5854if test "${enable_caret+set}" = set; then
5855 enableval="$enable_caret"
5856
5857 if test "$enableval" = yes; then
5858 ac_cv_use_caret='wxUSE_CARET=yes'
5859 else
5860 ac_cv_use_caret='wxUSE_CARET=no'
5861 fi
5862
5863else
5864
5865 LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}`
5866 if test "x$LINE" != x ; then
5867 eval "DEFAULT_$LINE"
5868 else
5869 no_cache=1
5870 fi
5871
5872 ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET
5873
5874fi
5875
5876
5877 eval "$ac_cv_use_caret"
5878 if test "$no_cache" != 1; then
5879 echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp
5880 fi
5881
5882 if test "$wxUSE_CARET" = yes; then
5883 echo "$ac_t""yes" 1>&6
5884 else
5885 echo "$ac_t""no" 1>&6
5886 fi
5887
5888
698dcdb6 5889 echo $ac_n "checking for --enable-checkbox""... $ac_c" 1>&6
986ecc86 5890echo "configure:5891: checking for --enable-checkbox" >&5
10f2d63a
VZ
5891 no_cache=0
5892 # Check whether --enable-checkbox or --disable-checkbox was given.
5893if test "${enable_checkbox+set}" = set; then
5894 enableval="$enable_checkbox"
698dcdb6 5895
10f2d63a
VZ
5896 if test "$enableval" = yes; then
5897 ac_cv_use_checkbox='wxUSE_CHECKBOX=yes'
5898 else
5899 ac_cv_use_checkbox='wxUSE_CHECKBOX=no'
5900 fi
698dcdb6 5901
10f2d63a 5902else
698dcdb6 5903
10f2d63a
VZ
5904 LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}`
5905 if test "x$LINE" != x ; then
5906 eval "DEFAULT_$LINE"
5907 else
5908 no_cache=1
5909 fi
5910
5911 ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX
698dcdb6
VZ
5912
5913fi
10f2d63a
VZ
5914
5915
5916 eval "$ac_cv_use_checkbox"
5917 if test "$no_cache" != 1; then
5918 echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp
5919 fi
5920
5921 if test "$wxUSE_CHECKBOX" = yes; then
698dcdb6 5922 echo "$ac_t""yes" 1>&6
10f2d63a 5923 else
698dcdb6 5924 echo "$ac_t""no" 1>&6
10f2d63a 5925 fi
698dcdb6 5926
10f2d63a 5927
698dcdb6 5928 echo $ac_n "checking for --enable-checklst""... $ac_c" 1>&6
986ecc86 5929echo "configure:5930: checking for --enable-checklst" >&5
10f2d63a
VZ
5930 no_cache=0
5931 # Check whether --enable-checklst or --disable-checklst was given.
5932if test "${enable_checklst+set}" = set; then
5933 enableval="$enable_checklst"
698dcdb6 5934
10f2d63a
VZ
5935 if test "$enableval" = yes; then
5936 ac_cv_use_checklst='wxUSE_CHECKLST=yes'
5937 else
5938 ac_cv_use_checklst='wxUSE_CHECKLST=no'
5939 fi
698dcdb6 5940
10f2d63a 5941else
698dcdb6 5942
10f2d63a
VZ
5943 LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}`
5944 if test "x$LINE" != x ; then
5945 eval "DEFAULT_$LINE"
5946 else
5947 no_cache=1
5948 fi
5949
5950 ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST
698dcdb6
VZ
5951
5952fi
10f2d63a
VZ
5953
5954
5955 eval "$ac_cv_use_checklst"
5956 if test "$no_cache" != 1; then
5957 echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp
5958 fi
5959
5960 if test "$wxUSE_CHECKLST" = yes; then
698dcdb6 5961 echo "$ac_t""yes" 1>&6
10f2d63a 5962 else
698dcdb6 5963 echo "$ac_t""no" 1>&6
10f2d63a 5964 fi
698dcdb6 5965
10f2d63a 5966
698dcdb6 5967 echo $ac_n "checking for --enable-choice""... $ac_c" 1>&6
986ecc86 5968echo "configure:5969: checking for --enable-choice" >&5
10f2d63a
VZ
5969 no_cache=0
5970 # Check whether --enable-choice or --disable-choice was given.
5971if test "${enable_choice+set}" = set; then
5972 enableval="$enable_choice"
698dcdb6 5973
10f2d63a
VZ
5974 if test "$enableval" = yes; then
5975 ac_cv_use_choice='wxUSE_CHOICE=yes'
5976 else
5977 ac_cv_use_choice='wxUSE_CHOICE=no'
5978 fi
698dcdb6 5979
10f2d63a 5980else
698dcdb6 5981
10f2d63a
VZ
5982 LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}`
5983 if test "x$LINE" != x ; then
5984 eval "DEFAULT_$LINE"
5985 else
5986 no_cache=1
5987 fi
5988
5989 ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE
698dcdb6
VZ
5990
5991fi
10f2d63a
VZ
5992
5993
5994 eval "$ac_cv_use_choice"
5995 if test "$no_cache" != 1; then
5996 echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp
5997 fi
5998
5999 if test "$wxUSE_CHOICE" = yes; then
698dcdb6 6000 echo "$ac_t""yes" 1>&6
10f2d63a 6001 else
698dcdb6 6002 echo "$ac_t""no" 1>&6
10f2d63a 6003 fi
698dcdb6 6004
10f2d63a 6005
698dcdb6 6006 echo $ac_n "checking for --enable-combobox""... $ac_c" 1>&6
986ecc86 6007echo "configure:6008: checking for --enable-combobox" >&5
10f2d63a
VZ
6008 no_cache=0
6009 # Check whether --enable-combobox or --disable-combobox was given.
6010if test "${enable_combobox+set}" = set; then
6011 enableval="$enable_combobox"
698dcdb6 6012
10f2d63a
VZ
6013 if test "$enableval" = yes; then
6014 ac_cv_use_combobox='wxUSE_COMBOBOX=yes'
6015 else
6016 ac_cv_use_combobox='wxUSE_COMBOBOX=no'
6017 fi
698dcdb6 6018
10f2d63a 6019else
698dcdb6 6020
10f2d63a
VZ
6021 LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}`
6022 if test "x$LINE" != x ; then
6023 eval "DEFAULT_$LINE"
6024 else
6025 no_cache=1
6026 fi
6027
6028 ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX
698dcdb6
VZ
6029
6030fi
10f2d63a
VZ
6031
6032
6033 eval "$ac_cv_use_combobox"
6034 if test "$no_cache" != 1; then
6035 echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp
6036 fi
6037
6038 if test "$wxUSE_COMBOBOX" = yes; then
698dcdb6 6039 echo "$ac_t""yes" 1>&6
10f2d63a 6040 else
698dcdb6 6041 echo "$ac_t""no" 1>&6
10f2d63a 6042 fi
698dcdb6 6043
10f2d63a 6044
698dcdb6 6045 echo $ac_n "checking for --enable-gauge""... $ac_c" 1>&6
986ecc86 6046echo "configure:6047: checking for --enable-gauge" >&5
10f2d63a
VZ
6047 no_cache=0
6048 # Check whether --enable-gauge or --disable-gauge was given.
6049if test "${enable_gauge+set}" = set; then
6050 enableval="$enable_gauge"
698dcdb6 6051
10f2d63a
VZ
6052 if test "$enableval" = yes; then
6053 ac_cv_use_gauge='wxUSE_GAUGE=yes'
6054 else
6055 ac_cv_use_gauge='wxUSE_GAUGE=no'
6056 fi
698dcdb6 6057
10f2d63a 6058else
698dcdb6 6059
10f2d63a
VZ
6060 LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}`
6061 if test "x$LINE" != x ; then
6062 eval "DEFAULT_$LINE"
6063 else
6064 no_cache=1
6065 fi
6066
6067 ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE
698dcdb6
VZ
6068
6069fi
10f2d63a
VZ
6070
6071
6072 eval "$ac_cv_use_gauge"
6073 if test "$no_cache" != 1; then
6074 echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp
6075 fi
6076
6077 if test "$wxUSE_GAUGE" = yes; then
698dcdb6 6078 echo "$ac_t""yes" 1>&6
10f2d63a 6079 else
698dcdb6 6080 echo "$ac_t""no" 1>&6
10f2d63a 6081 fi
698dcdb6 6082
10f2d63a 6083
698dcdb6 6084 echo $ac_n "checking for --enable-grid""... $ac_c" 1>&6
986ecc86 6085echo "configure:6086: checking for --enable-grid" >&5
10f2d63a
VZ
6086 no_cache=0
6087 # Check whether --enable-grid or --disable-grid was given.
6088if test "${enable_grid+set}" = set; then
6089 enableval="$enable_grid"
698dcdb6 6090
10f2d63a
VZ
6091 if test "$enableval" = yes; then
6092 ac_cv_use_grid='wxUSE_GRID=yes'
6093 else
6094 ac_cv_use_grid='wxUSE_GRID=no'
6095 fi
698dcdb6 6096
10f2d63a 6097else
698dcdb6 6098
10f2d63a
VZ
6099 LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}`
6100 if test "x$LINE" != x ; then
6101 eval "DEFAULT_$LINE"
6102 else
6103 no_cache=1
6104 fi
6105
6106 ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID
698dcdb6
VZ
6107
6108fi
10f2d63a
VZ
6109
6110
6111 eval "$ac_cv_use_grid"
6112 if test "$no_cache" != 1; then
6113 echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp
6114 fi
6115
6116 if test "$wxUSE_GRID" = yes; then
698dcdb6 6117 echo "$ac_t""yes" 1>&6
10f2d63a 6118 else
698dcdb6 6119 echo "$ac_t""no" 1>&6
10f2d63a 6120 fi
698dcdb6 6121
10f2d63a 6122
698dcdb6 6123 echo $ac_n "checking for --enable-newgrid""... $ac_c" 1>&6
986ecc86 6124echo "configure:6125: checking for --enable-newgrid" >&5
10f2d63a
VZ
6125 no_cache=0
6126 # Check whether --enable-newgrid or --disable-newgrid was given.
6127if test "${enable_newgrid+set}" = set; then
6128 enableval="$enable_newgrid"
698dcdb6 6129
10f2d63a
VZ
6130 if test "$enableval" = yes; then
6131 ac_cv_use_newgrid='wxUSE_NEW_GRID=yes'
6132 else
6133 ac_cv_use_newgrid='wxUSE_NEW_GRID=no'
6134 fi
698dcdb6 6135
10f2d63a 6136else
698dcdb6 6137
10f2d63a
VZ
6138 LINE=`grep "wxUSE_NEW_GRID" ${wx_arg_cache_file}`
6139 if test "x$LINE" != x ; then
6140 eval "DEFAULT_$LINE"
6141 else
6142 no_cache=1
6143 fi
6144
6145 ac_cv_use_newgrid='wxUSE_NEW_GRID='$DEFAULT_wxUSE_NEW_GRID
698dcdb6
VZ
6146
6147fi
10f2d63a
VZ
6148
6149
6150 eval "$ac_cv_use_newgrid"
6151 if test "$no_cache" != 1; then
6152 echo $ac_cv_use_newgrid >> ${wx_arg_cache_file}.tmp
6153 fi
6154
6155 if test "$wxUSE_NEW_GRID" = yes; then
698dcdb6 6156 echo "$ac_t""yes" 1>&6
10f2d63a 6157 else
698dcdb6 6158 echo "$ac_t""no" 1>&6
10f2d63a 6159 fi
698dcdb6 6160
10f2d63a 6161
698dcdb6 6162 echo $ac_n "checking for --enable-imaglist""... $ac_c" 1>&6
986ecc86 6163echo "configure:6164: checking for --enable-imaglist" >&5
10f2d63a
VZ
6164 no_cache=0
6165 # Check whether --enable-imaglist or --disable-imaglist was given.
6166if test "${enable_imaglist+set}" = set; then
6167 enableval="$enable_imaglist"
698dcdb6 6168
10f2d63a
VZ
6169 if test "$enableval" = yes; then
6170 ac_cv_use_imaglist='wxUSE_IMAGLIST=yes'
6171 else
6172 ac_cv_use_imaglist='wxUSE_IMAGLIST=no'
6173 fi
698dcdb6 6174
10f2d63a 6175else
698dcdb6 6176
10f2d63a
VZ
6177 LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}`
6178 if test "x$LINE" != x ; then
6179 eval "DEFAULT_$LINE"
6180 else
6181 no_cache=1
6182 fi
6183
6184 ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST
698dcdb6
VZ
6185
6186fi
10f2d63a
VZ
6187
6188
6189 eval "$ac_cv_use_imaglist"
6190 if test "$no_cache" != 1; then
6191 echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp
6192 fi
6193
6194 if test "$wxUSE_IMAGLIST" = yes; then
698dcdb6 6195 echo "$ac_t""yes" 1>&6
10f2d63a 6196 else
698dcdb6 6197 echo "$ac_t""no" 1>&6
10f2d63a 6198 fi
698dcdb6 6199
10f2d63a 6200
698dcdb6 6201 echo $ac_n "checking for --enable-listbox""... $ac_c" 1>&6
986ecc86 6202echo "configure:6203: checking for --enable-listbox" >&5
10f2d63a
VZ
6203 no_cache=0
6204 # Check whether --enable-listbox or --disable-listbox was given.
6205if test "${enable_listbox+set}" = set; then
6206 enableval="$enable_listbox"
698dcdb6 6207
10f2d63a
VZ
6208 if test "$enableval" = yes; then
6209 ac_cv_use_listbox='wxUSE_LISTBOX=yes'
6210 else
6211 ac_cv_use_listbox='wxUSE_LISTBOX=no'
6212 fi
698dcdb6 6213
10f2d63a 6214else
698dcdb6 6215
10f2d63a
VZ
6216 LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}`
6217 if test "x$LINE" != x ; then
6218 eval "DEFAULT_$LINE"
6219 else
6220 no_cache=1
6221 fi
6222
6223 ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX
698dcdb6
VZ
6224
6225fi
10f2d63a
VZ
6226
6227
6228 eval "$ac_cv_use_listbox"
6229 if test "$no_cache" != 1; then
6230 echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp
6231 fi
6232
6233 if test "$wxUSE_LISTBOX" = yes; then
698dcdb6 6234 echo "$ac_t""yes" 1>&6
10f2d63a 6235 else
698dcdb6 6236 echo "$ac_t""no" 1>&6
10f2d63a 6237 fi
698dcdb6 6238
10f2d63a 6239
698dcdb6 6240 echo $ac_n "checking for --enable-listctrl""... $ac_c" 1>&6
986ecc86 6241echo "configure:6242: checking for --enable-listctrl" >&5
10f2d63a
VZ
6242 no_cache=0
6243 # Check whether --enable-listctrl or --disable-listctrl was given.
6244if test "${enable_listctrl+set}" = set; then
6245 enableval="$enable_listctrl"
698dcdb6 6246
10f2d63a
VZ
6247 if test "$enableval" = yes; then
6248 ac_cv_use_listctrl='wxUSE_LISTCTRL=yes'
6249 else
6250 ac_cv_use_listctrl='wxUSE_LISTCTRL=no'
6251 fi
698dcdb6 6252
10f2d63a 6253else
698dcdb6 6254
10f2d63a
VZ
6255 LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}`
6256 if test "x$LINE" != x ; then
6257 eval "DEFAULT_$LINE"
6258 else
6259 no_cache=1
6260 fi
6261
6262 ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL
698dcdb6
VZ
6263
6264fi
10f2d63a
VZ
6265
6266
6267 eval "$ac_cv_use_listctrl"
6268 if test "$no_cache" != 1; then
6269 echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp
6270 fi
6271
6272 if test "$wxUSE_LISTCTRL" = yes; then
698dcdb6 6273 echo "$ac_t""yes" 1>&6
10f2d63a 6274 else
698dcdb6 6275 echo "$ac_t""no" 1>&6
10f2d63a 6276 fi
698dcdb6 6277
10f2d63a 6278
698dcdb6 6279 echo $ac_n "checking for --enable-notebook""... $ac_c" 1>&6
986ecc86 6280echo "configure:6281: checking for --enable-notebook" >&5
10f2d63a
VZ
6281 no_cache=0
6282 # Check whether --enable-notebook or --disable-notebook was given.
6283if test "${enable_notebook+set}" = set; then
6284 enableval="$enable_notebook"
698dcdb6 6285
10f2d63a
VZ
6286 if test "$enableval" = yes; then
6287 ac_cv_use_notebook='wxUSE_NOTEBOOK=yes'
6288 else
6289 ac_cv_use_notebook='wxUSE_NOTEBOOK=no'
6290 fi
698dcdb6 6291
10f2d63a 6292else
698dcdb6 6293
10f2d63a
VZ
6294 LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}`
6295 if test "x$LINE" != x ; then
6296 eval "DEFAULT_$LINE"
6297 else
6298 no_cache=1
6299 fi
6300
6301 ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK
698dcdb6
VZ
6302
6303fi
10f2d63a
VZ
6304
6305
6306 eval "$ac_cv_use_notebook"
6307 if test "$no_cache" != 1; then
6308 echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp
6309 fi
6310
6311 if test "$wxUSE_NOTEBOOK" = yes; then
698dcdb6 6312 echo "$ac_t""yes" 1>&6
10f2d63a 6313 else
698dcdb6 6314 echo "$ac_t""no" 1>&6
10f2d63a 6315 fi
698dcdb6 6316
10f2d63a 6317
24176f2c 6318 echo $ac_n "checking for --enable-propsheet""... $ac_c" 1>&6
986ecc86 6319echo "configure:6320: checking for --enable-propsheet" >&5
24176f2c
GD
6320 no_cache=0
6321 # Check whether --enable-propsheet or --disable-propsheet was given.
6322if test "${enable_propsheet+set}" = set; then
6323 enableval="$enable_propsheet"
6324
6325 if test "$enableval" = yes; then
6326 ac_cv_use_propsheet='wxUSE_PROPSHEET=yes'
6327 else
6328 ac_cv_use_propsheet='wxUSE_PROPSHEET=no'
6329 fi
6330
6331else
6332
6333 LINE=`grep "wxUSE_PROPSHEET" ${wx_arg_cache_file}`
6334 if test "x$LINE" != x ; then
6335 eval "DEFAULT_$LINE"
6336 else
6337 no_cache=1
6338 fi
6339
6340 ac_cv_use_propsheet='wxUSE_PROPSHEET='$DEFAULT_wxUSE_PROPSHEET
6341
6342fi
6343
6344
6345 eval "$ac_cv_use_propsheet"
6346 if test "$no_cache" != 1; then
6347 echo $ac_cv_use_propsheet >> ${wx_arg_cache_file}.tmp
6348 fi
6349
6350 if test "$wxUSE_PROPSHEET" = yes; then
6351 echo "$ac_t""yes" 1>&6
6352 else
6353 echo "$ac_t""no" 1>&6
6354 fi
6355
6356
698dcdb6 6357 echo $ac_n "checking for --enable-radiobox""... $ac_c" 1>&6
986ecc86 6358echo "configure:6359: checking for --enable-radiobox" >&5
10f2d63a
VZ
6359 no_cache=0
6360 # Check whether --enable-radiobox or --disable-radiobox was given.
6361if test "${enable_radiobox+set}" = set; then
6362 enableval="$enable_radiobox"
698dcdb6 6363
10f2d63a
VZ
6364 if test "$enableval" = yes; then
6365 ac_cv_use_radiobox='wxUSE_RADIOBOX=yes'
6366 else
6367 ac_cv_use_radiobox='wxUSE_RADIOBOX=no'
6368 fi
698dcdb6 6369
10f2d63a 6370else
698dcdb6 6371
10f2d63a
VZ
6372 LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}`
6373 if test "x$LINE" != x ; then
6374 eval "DEFAULT_$LINE"
6375 else
6376 no_cache=1
6377 fi
6378
6379 ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX
698dcdb6
VZ
6380
6381fi
10f2d63a
VZ
6382
6383
6384 eval "$ac_cv_use_radiobox"
6385 if test "$no_cache" != 1; then
6386 echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp
6387 fi
6388
6389 if test "$wxUSE_RADIOBOX" = yes; then
698dcdb6 6390 echo "$ac_t""yes" 1>&6
10f2d63a 6391 else
698dcdb6 6392 echo "$ac_t""no" 1>&6
10f2d63a 6393 fi
698dcdb6 6394
10f2d63a 6395
698dcdb6 6396 echo $ac_n "checking for --enable-radiobtn""... $ac_c" 1>&6
986ecc86 6397echo "configure:6398: checking for --enable-radiobtn" >&5
10f2d63a
VZ
6398 no_cache=0
6399 # Check whether --enable-radiobtn or --disable-radiobtn was given.
6400if test "${enable_radiobtn+set}" = set; then
6401 enableval="$enable_radiobtn"
698dcdb6 6402
10f2d63a
VZ
6403 if test "$enableval" = yes; then
6404 ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes'
6405 else
6406 ac_cv_use_radiobtn='wxUSE_RADIOBTN=no'
6407 fi
698dcdb6 6408
10f2d63a 6409else
698dcdb6 6410
10f2d63a
VZ
6411 LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}`
6412 if test "x$LINE" != x ; then
6413 eval "DEFAULT_$LINE"
6414 else
6415 no_cache=1
6416 fi
6417
6418 ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN
698dcdb6
VZ
6419
6420fi
10f2d63a
VZ
6421
6422
6423 eval "$ac_cv_use_radiobtn"
6424 if test "$no_cache" != 1; then
6425 echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp
6426 fi
6427
6428 if test "$wxUSE_RADIOBTN" = yes; then
698dcdb6 6429 echo "$ac_t""yes" 1>&6
10f2d63a 6430 else
698dcdb6 6431 echo "$ac_t""no" 1>&6
10f2d63a 6432 fi
698dcdb6 6433
10f2d63a 6434
698dcdb6 6435 echo $ac_n "checking for --enable-sash""... $ac_c" 1>&6
986ecc86 6436echo "configure:6437: checking for --enable-sash" >&5
10f2d63a
VZ
6437 no_cache=0
6438 # Check whether --enable-sash or --disable-sash was given.
6439if test "${enable_sash+set}" = set; then
6440 enableval="$enable_sash"
698dcdb6 6441
10f2d63a
VZ
6442 if test "$enableval" = yes; then
6443 ac_cv_use_sash='wxUSE_SASH=yes'
6444 else
6445 ac_cv_use_sash='wxUSE_SASH=no'
6446 fi
698dcdb6 6447
10f2d63a 6448else
698dcdb6 6449
10f2d63a
VZ
6450 LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}`
6451 if test "x$LINE" != x ; then
6452 eval "DEFAULT_$LINE"
6453 else
6454 no_cache=1
6455 fi
6456
6457 ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH
698dcdb6
VZ
6458
6459fi
10f2d63a
VZ
6460
6461
6462 eval "$ac_cv_use_sash"
6463 if test "$no_cache" != 1; then
6464 echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp
6465 fi
6466
6467 if test "$wxUSE_SASH" = yes; then
698dcdb6 6468 echo "$ac_t""yes" 1>&6
10f2d63a 6469 else
698dcdb6 6470 echo "$ac_t""no" 1>&6
10f2d63a 6471 fi
698dcdb6 6472
10f2d63a 6473
698dcdb6 6474 echo $ac_n "checking for --enable-scrollbar""... $ac_c" 1>&6
986ecc86 6475echo "configure:6476: checking for --enable-scrollbar" >&5
10f2d63a
VZ
6476 no_cache=0
6477 # Check whether --enable-scrollbar or --disable-scrollbar was given.
6478if test "${enable_scrollbar+set}" = set; then
6479 enableval="$enable_scrollbar"
698dcdb6 6480
10f2d63a
VZ
6481 if test "$enableval" = yes; then
6482 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes'
6483 else
6484 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no'
6485 fi
698dcdb6 6486
10f2d63a 6487else
698dcdb6 6488
10f2d63a
VZ
6489 LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}`
6490 if test "x$LINE" != x ; then
6491 eval "DEFAULT_$LINE"
6492 else
6493 no_cache=1
6494 fi
6495
6496 ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR
698dcdb6
VZ
6497
6498fi
10f2d63a
VZ
6499
6500
6501 eval "$ac_cv_use_scrollbar"
6502 if test "$no_cache" != 1; then
6503 echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp
6504 fi
6505
6506 if test "$wxUSE_SCROLLBAR" = yes; then
698dcdb6 6507 echo "$ac_t""yes" 1>&6
10f2d63a 6508 else
698dcdb6 6509 echo "$ac_t""no" 1>&6
10f2d63a 6510 fi
698dcdb6 6511
10f2d63a 6512
698dcdb6 6513 echo $ac_n "checking for --enable-slider""... $ac_c" 1>&6
986ecc86 6514echo "configure:6515: checking for --enable-slider" >&5
10f2d63a
VZ
6515 no_cache=0
6516 # Check whether --enable-slider or --disable-slider was given.
6517if test "${enable_slider+set}" = set; then
6518 enableval="$enable_slider"
698dcdb6 6519
10f2d63a
VZ
6520 if test "$enableval" = yes; then
6521 ac_cv_use_slider='wxUSE_SLIDER=yes'
6522 else
6523 ac_cv_use_slider='wxUSE_SLIDER=no'
6524 fi
698dcdb6 6525
10f2d63a 6526else
698dcdb6 6527
10f2d63a
VZ
6528 LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}`
6529 if test "x$LINE" != x ; then
6530 eval "DEFAULT_$LINE"
6531 else
6532 no_cache=1
6533 fi
6534
6535 ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER
698dcdb6
VZ
6536
6537fi
10f2d63a
VZ
6538
6539
6540 eval "$ac_cv_use_slider"
6541 if test "$no_cache" != 1; then
6542 echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp
6543 fi
6544
6545 if test "$wxUSE_SLIDER" = yes; then
698dcdb6 6546 echo "$ac_t""yes" 1>&6
10f2d63a 6547 else
698dcdb6 6548 echo "$ac_t""no" 1>&6
10f2d63a 6549 fi
698dcdb6 6550
10f2d63a 6551
698dcdb6 6552 echo $ac_n "checking for --enable-spinbtn""... $ac_c" 1>&6
986ecc86 6553echo "configure:6554: checking for --enable-spinbtn" >&5
10f2d63a
VZ
6554 no_cache=0
6555 # Check whether --enable-spinbtn or --disable-spinbtn was given.
6556if test "${enable_spinbtn+set}" = set; then
6557 enableval="$enable_spinbtn"
698dcdb6 6558
10f2d63a
VZ
6559 if test "$enableval" = yes; then
6560 ac_cv_use_spinbtn='wxUSE_SPINBTN=yes'
6561 else
6562 ac_cv_use_spinbtn='wxUSE_SPINBTN=no'
6563 fi
698dcdb6 6564
10f2d63a 6565else
698dcdb6 6566
10f2d63a
VZ
6567 LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}`
6568 if test "x$LINE" != x ; then
6569 eval "DEFAULT_$LINE"
6570 else
6571 no_cache=1
6572 fi
6573
6574 ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN
698dcdb6
VZ
6575
6576fi
10f2d63a
VZ
6577
6578
6579 eval "$ac_cv_use_spinbtn"
6580 if test "$no_cache" != 1; then
6581 echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp
6582 fi
6583
6584 if test "$wxUSE_SPINBTN" = yes; then
698dcdb6 6585 echo "$ac_t""yes" 1>&6
10f2d63a 6586 else
698dcdb6 6587 echo "$ac_t""no" 1>&6
10f2d63a 6588 fi
698dcdb6 6589
10f2d63a 6590
698dcdb6 6591 echo $ac_n "checking for --enable-spinctrl""... $ac_c" 1>&6
986ecc86 6592echo "configure:6593: checking for --enable-spinctrl" >&5
56cfaa52
RR
6593 no_cache=0
6594 # Check whether --enable-spinctrl or --disable-spinctrl was given.
6595if test "${enable_spinctrl+set}" = set; then
6596 enableval="$enable_spinctrl"
698dcdb6 6597
56cfaa52
RR
6598 if test "$enableval" = yes; then
6599 ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes'
6600 else
6601 ac_cv_use_spinctrl='wxUSE_SPINCTRL=no'
6602 fi
698dcdb6 6603
56cfaa52 6604else
698dcdb6 6605
56cfaa52
RR
6606 LINE=`grep "wxUSE_SPINCTRL" ${wx_arg_cache_file}`
6607 if test "x$LINE" != x ; then
6608 eval "DEFAULT_$LINE"
6609 else
6610 no_cache=1
6611 fi
6612
6613 ac_cv_use_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL
698dcdb6
VZ
6614
6615fi
56cfaa52
RR
6616
6617
6618 eval "$ac_cv_use_spinctrl"
6619 if test "$no_cache" != 1; then
6620 echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp
6621 fi
6622
6623 if test "$wxUSE_SPINCTRL" = yes; then
698dcdb6 6624 echo "$ac_t""yes" 1>&6
56cfaa52 6625 else
698dcdb6 6626 echo "$ac_t""no" 1>&6
56cfaa52 6627 fi
698dcdb6 6628
56cfaa52 6629
698dcdb6 6630 echo $ac_n "checking for --enable-splitter""... $ac_c" 1>&6
986ecc86 6631echo "configure:6632: checking for --enable-splitter" >&5
10f2d63a
VZ
6632 no_cache=0
6633 # Check whether --enable-splitter or --disable-splitter was given.
6634if test "${enable_splitter+set}" = set; then
6635 enableval="$enable_splitter"
698dcdb6 6636
10f2d63a
VZ
6637 if test "$enableval" = yes; then
6638 ac_cv_use_splitter='wxUSE_SPLITTER=yes'
6639 else
6640 ac_cv_use_splitter='wxUSE_SPLITTER=no'
6641 fi
698dcdb6 6642
10f2d63a 6643else
698dcdb6 6644
10f2d63a
VZ
6645 LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}`
6646 if test "x$LINE" != x ; then
6647 eval "DEFAULT_$LINE"
6648 else
6649 no_cache=1
6650 fi
6651
6652 ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER
698dcdb6
VZ
6653
6654fi
10f2d63a
VZ
6655
6656
6657 eval "$ac_cv_use_splitter"
6658 if test "$no_cache" != 1; then
6659 echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp
6660 fi
6661
6662 if test "$wxUSE_SPLITTER" = yes; then
698dcdb6 6663 echo "$ac_t""yes" 1>&6
10f2d63a 6664 else
698dcdb6 6665 echo "$ac_t""no" 1>&6
10f2d63a 6666 fi
698dcdb6 6667
10f2d63a 6668
698dcdb6 6669 echo $ac_n "checking for --enable-statbmp""... $ac_c" 1>&6
986ecc86 6670echo "configure:6671: checking for --enable-statbmp" >&5
10f2d63a
VZ
6671 no_cache=0
6672 # Check whether --enable-statbmp or --disable-statbmp was given.
6673if test "${enable_statbmp+set}" = set; then
6674 enableval="$enable_statbmp"
698dcdb6 6675
10f2d63a
VZ
6676 if test "$enableval" = yes; then
6677 ac_cv_use_statbmp='wxUSE_STATBMP=yes'
6678 else
6679 ac_cv_use_statbmp='wxUSE_STATBMP=no'
6680 fi
698dcdb6 6681
10f2d63a 6682else
698dcdb6 6683
10f2d63a
VZ
6684 LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}`
6685 if test "x$LINE" != x ; then
6686 eval "DEFAULT_$LINE"
6687 else
6688 no_cache=1
6689 fi
6690
6691 ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP
698dcdb6
VZ
6692
6693fi
10f2d63a
VZ
6694
6695
6696 eval "$ac_cv_use_statbmp"
6697 if test "$no_cache" != 1; then
6698 echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp
6699 fi
6700
6701 if test "$wxUSE_STATBMP" = yes; then
698dcdb6 6702 echo "$ac_t""yes" 1>&6
10f2d63a 6703 else
698dcdb6 6704 echo "$ac_t""no" 1>&6
10f2d63a 6705 fi
698dcdb6 6706
10f2d63a 6707
698dcdb6 6708 echo $ac_n "checking for --enable-statbox""... $ac_c" 1>&6
986ecc86 6709echo "configure:6710: checking for --enable-statbox" >&5
10f2d63a
VZ
6710 no_cache=0
6711 # Check whether --enable-statbox or --disable-statbox was given.
6712if test "${enable_statbox+set}" = set; then
6713 enableval="$enable_statbox"
698dcdb6 6714
10f2d63a
VZ
6715 if test "$enableval" = yes; then
6716 ac_cv_use_statbox='wxUSE_STATBOX=yes'
6717 else
6718 ac_cv_use_statbox='wxUSE_STATBOX=no'
6719 fi
698dcdb6 6720
10f2d63a 6721else
698dcdb6 6722
10f2d63a
VZ
6723 LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}`
6724 if test "x$LINE" != x ; then
6725 eval "DEFAULT_$LINE"
6726 else
6727 no_cache=1
6728 fi
6729
6730 ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX
698dcdb6
VZ
6731
6732fi
10f2d63a
VZ
6733
6734
6735 eval "$ac_cv_use_statbox"
6736 if test "$no_cache" != 1; then
6737 echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp
6738 fi
6739
6740 if test "$wxUSE_STATBOX" = yes; then
698dcdb6 6741 echo "$ac_t""yes" 1>&6
10f2d63a 6742 else
698dcdb6 6743 echo "$ac_t""no" 1>&6
10f2d63a 6744 fi
698dcdb6 6745
10f2d63a 6746
698dcdb6 6747 echo $ac_n "checking for --enable-statline""... $ac_c" 1>&6
986ecc86 6748echo "configure:6749: checking for --enable-statline" >&5
10f2d63a
VZ
6749 no_cache=0
6750 # Check whether --enable-statline or --disable-statline was given.
6751if test "${enable_statline+set}" = set; then
6752 enableval="$enable_statline"
698dcdb6 6753
10f2d63a
VZ
6754 if test "$enableval" = yes; then
6755 ac_cv_use_statline='wxUSE_STATLINE=yes'
6756 else
6757 ac_cv_use_statline='wxUSE_STATLINE=no'
6758 fi
698dcdb6 6759
10f2d63a 6760else
698dcdb6 6761
10f2d63a
VZ
6762 LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}`
6763 if test "x$LINE" != x ; then
6764 eval "DEFAULT_$LINE"
6765 else
6766 no_cache=1
6767 fi
6768
6769 ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE
698dcdb6
VZ
6770
6771fi
10f2d63a
VZ
6772
6773
6774 eval "$ac_cv_use_statline"
6775 if test "$no_cache" != 1; then
6776 echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp
6777 fi
6778
6779 if test "$wxUSE_STATLINE" = yes; then
698dcdb6 6780 echo "$ac_t""yes" 1>&6
10f2d63a 6781 else
698dcdb6 6782 echo "$ac_t""no" 1>&6
10f2d63a 6783 fi
698dcdb6 6784
10f2d63a 6785
1e6feb95 6786 echo $ac_n "checking for --enable-stattext""... $ac_c" 1>&6
986ecc86 6787echo "configure:6788: checking for --enable-stattext" >&5
1e6feb95
VZ
6788 no_cache=0
6789 # Check whether --enable-stattext or --disable-stattext was given.
6790if test "${enable_stattext+set}" = set; then
6791 enableval="$enable_stattext"
6792
6793 if test "$enableval" = yes; then
6794 ac_cv_use_stattext='wxUSE_STATTEXT=yes'
6795 else
6796 ac_cv_use_stattext='wxUSE_STATTEXT=no'
6797 fi
6798
6799else
6800
6801 LINE=`grep "wxUSE_STATTEXT" ${wx_arg_cache_file}`
6802 if test "x$LINE" != x ; then
6803 eval "DEFAULT_$LINE"
6804 else
6805 no_cache=1
6806 fi
6807
6808 ac_cv_use_stattext='wxUSE_STATTEXT='$DEFAULT_wxUSE_STATTEXT
6809
6810fi
6811
6812
6813 eval "$ac_cv_use_stattext"
6814 if test "$no_cache" != 1; then
6815 echo $ac_cv_use_stattext >> ${wx_arg_cache_file}.tmp
6816 fi
6817
6818 if test "$wxUSE_STATTEXT" = yes; then
6819 echo "$ac_t""yes" 1>&6
6820 else
6821 echo "$ac_t""no" 1>&6
6822 fi
6823
6824
698dcdb6 6825 echo $ac_n "checking for --enable-statusbar""... $ac_c" 1>&6
986ecc86 6826echo "configure:6827: checking for --enable-statusbar" >&5
10f2d63a
VZ
6827 no_cache=0
6828 # Check whether --enable-statusbar or --disable-statusbar was given.
6829if test "${enable_statusbar+set}" = set; then
6830 enableval="$enable_statusbar"
698dcdb6 6831
10f2d63a
VZ
6832 if test "$enableval" = yes; then
6833 ac_cv_use_statusbar='wxUSE_STATUSBAR=yes'
6834 else
6835 ac_cv_use_statusbar='wxUSE_STATUSBAR=no'
6836 fi
698dcdb6 6837
10f2d63a 6838else
698dcdb6 6839
10f2d63a
VZ
6840 LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}`
6841 if test "x$LINE" != x ; then
6842 eval "DEFAULT_$LINE"
6843 else
6844 no_cache=1
6845 fi
6846
6847 ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR
698dcdb6
VZ
6848
6849fi
10f2d63a
VZ
6850
6851
6852 eval "$ac_cv_use_statusbar"
6853 if test "$no_cache" != 1; then
6854 echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp
6855 fi
6856
6857 if test "$wxUSE_STATUSBAR" = yes; then
698dcdb6 6858 echo "$ac_t""yes" 1>&6
10f2d63a 6859 else
698dcdb6 6860 echo "$ac_t""no" 1>&6
10f2d63a 6861 fi
698dcdb6 6862
10f2d63a 6863
698dcdb6 6864 echo $ac_n "checking for --enable-tabdialog""... $ac_c" 1>&6
986ecc86 6865echo "configure:6866: checking for --enable-tabdialog" >&5
10f2d63a
VZ
6866 no_cache=0
6867 # Check whether --enable-tabdialog or --disable-tabdialog was given.
6868if test "${enable_tabdialog+set}" = set; then
6869 enableval="$enable_tabdialog"
698dcdb6 6870
10f2d63a
VZ
6871 if test "$enableval" = yes; then
6872 ac_cv_use_tabdialog='wxUSE_TABDIALOG=yes'
6873 else
6874 ac_cv_use_tabdialog='wxUSE_TABDIALOG=no'
6875 fi
698dcdb6 6876
10f2d63a 6877else
698dcdb6 6878
10f2d63a
VZ
6879 LINE=`grep "wxUSE_TABDIALOG" ${wx_arg_cache_file}`
6880 if test "x$LINE" != x ; then
6881 eval "DEFAULT_$LINE"
6882 else
6883 no_cache=1
6884 fi
6885
6886 ac_cv_use_tabdialog='wxUSE_TABDIALOG='$DEFAULT_wxUSE_TABDIALOG
698dcdb6
VZ
6887
6888fi
10f2d63a
VZ
6889
6890
6891 eval "$ac_cv_use_tabdialog"
6892 if test "$no_cache" != 1; then
6893 echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp
6894 fi
6895
6896 if test "$wxUSE_TABDIALOG" = yes; then
698dcdb6 6897 echo "$ac_t""yes" 1>&6
10f2d63a 6898 else
698dcdb6 6899 echo "$ac_t""no" 1>&6
10f2d63a 6900 fi
698dcdb6 6901
10f2d63a 6902
1e6feb95 6903 echo $ac_n "checking for --enable-textctrl""... $ac_c" 1>&6
986ecc86 6904echo "configure:6905: checking for --enable-textctrl" >&5
1e6feb95
VZ
6905 no_cache=0
6906 # Check whether --enable-textctrl or --disable-textctrl was given.
6907if test "${enable_textctrl+set}" = set; then
6908 enableval="$enable_textctrl"
6909
6910 if test "$enableval" = yes; then
6911 ac_cv_use_textctrl='wxUSE_TEXTCTRL=yes'
6912 else
6913 ac_cv_use_textctrl='wxUSE_TEXTCTRL=no'
6914 fi
6915
6916else
6917
6918 LINE=`grep "wxUSE_TEXTCTRL" ${wx_arg_cache_file}`
6919 if test "x$LINE" != x ; then
6920 eval "DEFAULT_$LINE"
6921 else
6922 no_cache=1
6923 fi
6924
6925 ac_cv_use_textctrl='wxUSE_TEXTCTRL='$DEFAULT_wxUSE_TEXTCTRL
6926
6927fi
6928
6929
6930 eval "$ac_cv_use_textctrl"
6931 if test "$no_cache" != 1; then
6932 echo $ac_cv_use_textctrl >> ${wx_arg_cache_file}.tmp
6933 fi
6934
6935 if test "$wxUSE_TEXTCTRL" = yes; then
6936 echo "$ac_t""yes" 1>&6
6937 else
6938 echo "$ac_t""no" 1>&6
6939 fi
6940
6941
698dcdb6 6942 echo $ac_n "checking for --enable-togglebtn""... $ac_c" 1>&6
986ecc86 6943echo "configure:6944: checking for --enable-togglebtn" >&5
1db8dc4a
VZ
6944 no_cache=0
6945 # Check whether --enable-togglebtn or --disable-togglebtn was given.
6946if test "${enable_togglebtn+set}" = set; then
6947 enableval="$enable_togglebtn"
698dcdb6 6948
1db8dc4a
VZ
6949 if test "$enableval" = yes; then
6950 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes'
6951 else
6952 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=no'
6953 fi
698dcdb6 6954
1db8dc4a 6955else
698dcdb6 6956
1db8dc4a
VZ
6957 LINE=`grep "wxUSE_TOGGLEBTN" ${wx_arg_cache_file}`
6958 if test "x$LINE" != x ; then
6959 eval "DEFAULT_$LINE"
6960 else
6961 no_cache=1
6962 fi
6963
6964 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN='$DEFAULT_wxUSE_TOGGLEBTN
698dcdb6
VZ
6965
6966fi
1db8dc4a
VZ
6967
6968
6969 eval "$ac_cv_use_togglebtn"
6970 if test "$no_cache" != 1; then
6971 echo $ac_cv_use_togglebtn >> ${wx_arg_cache_file}.tmp
6972 fi
6973
6974 if test "$wxUSE_TOGGLEBTN" = yes; then
698dcdb6 6975 echo "$ac_t""yes" 1>&6
1db8dc4a 6976 else
698dcdb6 6977 echo "$ac_t""no" 1>&6
1db8dc4a 6978 fi
698dcdb6 6979
1db8dc4a 6980
698dcdb6 6981 echo $ac_n "checking for --enable-toolbar""... $ac_c" 1>&6
986ecc86 6982echo "configure:6983: checking for --enable-toolbar" >&5
10f2d63a
VZ
6983 no_cache=0
6984 # Check whether --enable-toolbar or --disable-toolbar was given.
6985if test "${enable_toolbar+set}" = set; then
6986 enableval="$enable_toolbar"
698dcdb6 6987
10f2d63a
VZ
6988 if test "$enableval" = yes; then
6989 ac_cv_use_toolbar='wxUSE_TOOLBAR=yes'
6990 else
6991 ac_cv_use_toolbar='wxUSE_TOOLBAR=no'
6992 fi
698dcdb6 6993
10f2d63a 6994else
698dcdb6 6995
10f2d63a
VZ
6996 LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}`
6997 if test "x$LINE" != x ; then
6998 eval "DEFAULT_$LINE"
6999 else
7000 no_cache=1
7001 fi
7002
7003 ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR
698dcdb6
VZ
7004
7005fi
10f2d63a
VZ
7006
7007
7008 eval "$ac_cv_use_toolbar"
7009 if test "$no_cache" != 1; then
7010 echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp
7011 fi
7012
7013 if test "$wxUSE_TOOLBAR" = yes; then
698dcdb6 7014 echo "$ac_t""yes" 1>&6
10f2d63a 7015 else
698dcdb6 7016 echo "$ac_t""no" 1>&6
10f2d63a 7017 fi
698dcdb6 7018
10f2d63a 7019
698dcdb6 7020 echo $ac_n "checking for --enable-tbarnative""... $ac_c" 1>&6
986ecc86 7021echo "configure:7022: checking for --enable-tbarnative" >&5
360d6699
VZ
7022 no_cache=0
7023 # Check whether --enable-tbarnative or --disable-tbarnative was given.
7024if test "${enable_tbarnative+set}" = set; then
7025 enableval="$enable_tbarnative"
698dcdb6 7026
360d6699
VZ
7027 if test "$enableval" = yes; then
7028 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes'
7029 else
7030 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no'
7031 fi
698dcdb6 7032
360d6699 7033else
698dcdb6 7034
360d6699
VZ
7035 LINE=`grep "wxUSE_TOOLBAR_NATIVE" ${wx_arg_cache_file}`
7036 if test "x$LINE" != x ; then
7037 eval "DEFAULT_$LINE"
7038 else
7039 no_cache=1
7040 fi
7041
7042 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE='$DEFAULT_wxUSE_TOOLBAR_NATIVE
698dcdb6
VZ
7043
7044fi
360d6699
VZ
7045
7046
7047 eval "$ac_cv_use_tbarnative"
7048 if test "$no_cache" != 1; then
7049 echo $ac_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp
7050 fi
7051
7052 if test "$wxUSE_TOOLBAR_NATIVE" = yes; then
698dcdb6 7053 echo "$ac_t""yes" 1>&6
360d6699 7054 else
698dcdb6 7055 echo "$ac_t""no" 1>&6
360d6699 7056 fi
698dcdb6 7057
360d6699 7058
698dcdb6 7059 echo $ac_n "checking for --enable-tbarsmpl""... $ac_c" 1>&6
986ecc86 7060echo "configure:7061: checking for --enable-tbarsmpl" >&5
360d6699
VZ
7061 no_cache=0
7062 # Check whether --enable-tbarsmpl or --disable-tbarsmpl was given.
7063if test "${enable_tbarsmpl+set}" = set; then
7064 enableval="$enable_tbarsmpl"
698dcdb6 7065
360d6699
VZ
7066 if test "$enableval" = yes; then
7067 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=yes'
7068 else
7069 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=no'
7070 fi
698dcdb6 7071
360d6699 7072else
698dcdb6 7073
360d6699
VZ
7074 LINE=`grep "wxUSE_TOOLBAR_SIMPLE" ${wx_arg_cache_file}`
7075 if test "x$LINE" != x ; then
7076 eval "DEFAULT_$LINE"
7077 else
7078 no_cache=1
7079 fi
7080
7081 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE='$DEFAULT_wxUSE_TOOLBAR_SIMPLE
698dcdb6
VZ
7082
7083fi
360d6699
VZ
7084
7085
7086 eval "$ac_cv_use_tbarsmpl"
7087 if test "$no_cache" != 1; then
7088 echo $ac_cv_use_tbarsmpl >> ${wx_arg_cache_file}.tmp
7089 fi
7090
7091 if test "$wxUSE_TOOLBAR_SIMPLE" = yes; then
698dcdb6 7092 echo "$ac_t""yes" 1>&6
360d6699 7093 else
698dcdb6 7094 echo "$ac_t""no" 1>&6
360d6699 7095 fi
698dcdb6 7096
360d6699 7097
698dcdb6 7098 echo $ac_n "checking for --enable-treectrl""... $ac_c" 1>&6
986ecc86 7099echo "configure:7100: checking for --enable-treectrl" >&5
10f2d63a
VZ
7100 no_cache=0
7101 # Check whether --enable-treectrl or --disable-treectrl was given.
7102if test "${enable_treectrl+set}" = set; then
7103 enableval="$enable_treectrl"
698dcdb6 7104
10f2d63a
VZ
7105 if test "$enableval" = yes; then
7106 ac_cv_use_treectrl='wxUSE_TREECTRL=yes'
7107 else
7108 ac_cv_use_treectrl='wxUSE_TREECTRL=no'
7109 fi
698dcdb6 7110
10f2d63a 7111else
698dcdb6 7112
10f2d63a
VZ
7113 LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}`
7114 if test "x$LINE" != x ; then
7115 eval "DEFAULT_$LINE"
7116 else
7117 no_cache=1
7118 fi
7119
7120 ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL
698dcdb6
VZ
7121
7122fi
10f2d63a
VZ
7123
7124
1e6feb95
VZ
7125 eval "$ac_cv_use_treectrl"
7126 if test "$no_cache" != 1; then
7127 echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp
7128 fi
7129
7130 if test "$wxUSE_TREECTRL" = yes; then
7131 echo "$ac_t""yes" 1>&6
7132 else
7133 echo "$ac_t""no" 1>&6
7134 fi
7135
7136
9926e4a4 7137 echo $ac_n "checking for --enable-tipwindow""... $ac_c" 1>&6
986ecc86 7138echo "configure:7139: checking for --enable-tipwindow" >&5
9926e4a4
VZ
7139 no_cache=0
7140 # Check whether --enable-tipwindow or --disable-tipwindow was given.
7141if test "${enable_tipwindow+set}" = set; then
7142 enableval="$enable_tipwindow"
7143
7144 if test "$enableval" = yes; then
7145 ac_cv_use_tipwindow='wxUSE_TIPWINDOW=yes'
7146 else
7147 ac_cv_use_tipwindow='wxUSE_TIPWINDOW=no'
7148 fi
7149
7150else
7151
7152 LINE=`grep "wxUSE_TIPWINDOW" ${wx_arg_cache_file}`
7153 if test "x$LINE" != x ; then
7154 eval "DEFAULT_$LINE"
7155 else
7156 no_cache=1
7157 fi
7158
7159 ac_cv_use_tipwindow='wxUSE_TIPWINDOW='$DEFAULT_wxUSE_TIPWINDOW
7160
7161fi
7162
7163
7164 eval "$ac_cv_use_tipwindow"
7165 if test "$no_cache" != 1; then
7166 echo $ac_cv_use_tipwindow >> ${wx_arg_cache_file}.tmp
7167 fi
7168
7169 if test "$wxUSE_TIPWINDOW" = yes; then
7170 echo "$ac_t""yes" 1>&6
7171 else
7172 echo "$ac_t""no" 1>&6
7173 fi
7174
7175
9f41d601 7176 echo $ac_n "checking for --enable-popupwin""... $ac_c" 1>&6
986ecc86 7177echo "configure:7178: checking for --enable-popupwin" >&5
9f41d601
RR
7178 no_cache=0
7179 # Check whether --enable-popupwin or --disable-popupwin was given.
7180if test "${enable_popupwin+set}" = set; then
7181 enableval="$enable_popupwin"
7182
7183 if test "$enableval" = yes; then
7184 ac_cv_use_popupwin='wxUSE_POPUPWIN=yes'
7185 else
7186 ac_cv_use_popupwin='wxUSE_POPUPWIN=no'
7187 fi
7188
7189else
7190
7191 LINE=`grep "wxUSE_POPUPWIN" ${wx_arg_cache_file}`
7192 if test "x$LINE" != x ; then
7193 eval "DEFAULT_$LINE"
7194 else
7195 no_cache=1
7196 fi
7197
7198 ac_cv_use_popupwin='wxUSE_POPUPWIN='$DEFAULT_wxUSE_POPUPWIN
7199
7200fi
7201
7202
7203 eval "$ac_cv_use_popupwin"
7204 if test "$no_cache" != 1; then
7205 echo $ac_cv_use_popupwin >> ${wx_arg_cache_file}.tmp
7206 fi
7207
7208 if test "$wxUSE_POPUPWIN" = yes; then
7209 echo "$ac_t""yes" 1>&6
7210 else
7211 echo "$ac_t""no" 1>&6
7212 fi
7213
7214
1e6feb95
VZ
7215
7216
7217 echo $ac_n "checking for --enable-commondlg""... $ac_c" 1>&6
986ecc86 7218echo "configure:7219: checking for --enable-commondlg" >&5
1e6feb95
VZ
7219 no_cache=0
7220 # Check whether --enable-commondlg or --disable-commondlg was given.
7221if test "${enable_commondlg+set}" = set; then
7222 enableval="$enable_commondlg"
7223
7224 if test "$enableval" = yes; then
7225 ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes'
7226 else
7227 ac_cv_use_commondlg='wxUSE_COMMONDLGS=no'
7228 fi
7229
7230else
7231
7232 LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}`
7233 if test "x$LINE" != x ; then
7234 eval "DEFAULT_$LINE"
7235 else
7236 no_cache=1
7237 fi
7238
7239 ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS
7240
7241fi
7242
7243
7244 eval "$ac_cv_use_commondlg"
7245 if test "$no_cache" != 1; then
7246 echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp
7247 fi
7248
7249 if test "$wxUSE_COMMONDLGS" = yes; then
7250 echo "$ac_t""yes" 1>&6
7251 else
7252 echo "$ac_t""no" 1>&6
7253 fi
7254
7255
7256 echo $ac_n "checking for --enable-choicedlg""... $ac_c" 1>&6
986ecc86 7257echo "configure:7258: checking for --enable-choicedlg" >&5
1e6feb95
VZ
7258 no_cache=0
7259 # Check whether --enable-choicedlg or --disable-choicedlg was given.
7260if test "${enable_choicedlg+set}" = set; then
7261 enableval="$enable_choicedlg"
7262
7263 if test "$enableval" = yes; then
7264 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=yes'
7265 else
7266 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=no'
7267 fi
7268
7269else
7270
7271 LINE=`grep "wxUSE_CHOICEDLG" ${wx_arg_cache_file}`
7272 if test "x$LINE" != x ; then
7273 eval "DEFAULT_$LINE"
7274 else
7275 no_cache=1
7276 fi
7277
7278 ac_cv_use_choicedlg='wxUSE_CHOICEDLG='$DEFAULT_wxUSE_CHOICEDLG
7279
7280fi
7281
7282
7283 eval "$ac_cv_use_choicedlg"
7284 if test "$no_cache" != 1; then
7285 echo $ac_cv_use_choicedlg >> ${wx_arg_cache_file}.tmp
7286 fi
7287
7288 if test "$wxUSE_CHOICEDLG" = yes; then
7289 echo "$ac_t""yes" 1>&6
7290 else
7291 echo "$ac_t""no" 1>&6
7292 fi
7293
7294
7295 echo $ac_n "checking for --enable-coldlg""... $ac_c" 1>&6
986ecc86 7296echo "configure:7297: checking for --enable-coldlg" >&5
1e6feb95
VZ
7297 no_cache=0
7298 # Check whether --enable-coldlg or --disable-coldlg was given.
7299if test "${enable_coldlg+set}" = set; then
7300 enableval="$enable_coldlg"
7301
7302 if test "$enableval" = yes; then
7303 ac_cv_use_coldlg='wxUSE_COLOURDLG=yes'
7304 else
7305 ac_cv_use_coldlg='wxUSE_COLOURDLG=no'
7306 fi
7307
7308else
7309
7310 LINE=`grep "wxUSE_COLOURDLG" ${wx_arg_cache_file}`
7311 if test "x$LINE" != x ; then
7312 eval "DEFAULT_$LINE"
7313 else
7314 no_cache=1
7315 fi
7316
7317 ac_cv_use_coldlg='wxUSE_COLOURDLG='$DEFAULT_wxUSE_COLOURDLG
7318
7319fi
7320
7321
7322 eval "$ac_cv_use_coldlg"
7323 if test "$no_cache" != 1; then
7324 echo $ac_cv_use_coldlg >> ${wx_arg_cache_file}.tmp
7325 fi
7326
7327 if test "$wxUSE_COLOURDLG" = yes; then
7328 echo "$ac_t""yes" 1>&6
7329 else
7330 echo "$ac_t""no" 1>&6
7331 fi
7332
7333
7334 echo $ac_n "checking for --enable-filedlg""... $ac_c" 1>&6
986ecc86 7335echo "configure:7336: checking for --enable-filedlg" >&5
1e6feb95
VZ
7336 no_cache=0
7337 # Check whether --enable-filedlg or --disable-filedlg was given.
7338if test "${enable_filedlg+set}" = set; then
7339 enableval="$enable_filedlg"
7340
7341 if test "$enableval" = yes; then
7342 ac_cv_use_filedlg='wxUSE_FILEDLG=yes'
7343 else
7344 ac_cv_use_filedlg='wxUSE_FILEDLG=no'
7345 fi
7346
7347else
7348
7349 LINE=`grep "wxUSE_FILEDLG" ${wx_arg_cache_file}`
7350 if test "x$LINE" != x ; then
7351 eval "DEFAULT_$LINE"
7352 else
7353 no_cache=1
7354 fi
7355
7356 ac_cv_use_filedlg='wxUSE_FILEDLG='$DEFAULT_wxUSE_FILEDLG
7357
7358fi
7359
7360
7361 eval "$ac_cv_use_filedlg"
7362 if test "$no_cache" != 1; then
7363 echo $ac_cv_use_filedlg >> ${wx_arg_cache_file}.tmp
7364 fi
7365
7366 if test "$wxUSE_FILEDLG" = yes; then
7367 echo "$ac_t""yes" 1>&6
7368 else
7369 echo "$ac_t""no" 1>&6
7370 fi
7371
7372
69d27ff7 7373 echo $ac_n "checking for --enable-finddlg""... $ac_c" 1>&6
986ecc86 7374echo "configure:7375: checking for --enable-finddlg" >&5
8db37e06 7375 no_cache=0
69d27ff7
MB
7376 # Check whether --enable-finddlg or --disable-finddlg was given.
7377if test "${enable_finddlg+set}" = set; then
7378 enableval="$enable_finddlg"
8db37e06
VZ
7379
7380 if test "$enableval" = yes; then
69d27ff7 7381 ac_cv_use_finddlg='wxUSE_FINDREPLDLG=yes'
8db37e06 7382 else
69d27ff7 7383 ac_cv_use_finddlg='wxUSE_FINDREPLDLG=no'
8db37e06
VZ
7384 fi
7385
7386else
7387
7388 LINE=`grep "wxUSE_FINDREPLDLG" ${wx_arg_cache_file}`
7389 if test "x$LINE" != x ; then
7390 eval "DEFAULT_$LINE"
7391 else
7392 no_cache=1
7393 fi
7394
69d27ff7 7395 ac_cv_use_finddlg='wxUSE_FINDREPLDLG='$DEFAULT_wxUSE_FINDREPLDLG
8db37e06
VZ
7396
7397fi
7398
7399
69d27ff7 7400 eval "$ac_cv_use_finddlg"
8db37e06 7401 if test "$no_cache" != 1; then
69d27ff7 7402 echo $ac_cv_use_finddlg >> ${wx_arg_cache_file}.tmp
8db37e06
VZ
7403 fi
7404
7405 if test "$wxUSE_FINDREPLDLG" = yes; then
7406 echo "$ac_t""yes" 1>&6
7407 else
7408 echo "$ac_t""no" 1>&6
7409 fi
7410
7411
1e6feb95 7412 echo $ac_n "checking for --enable-fontdlg""... $ac_c" 1>&6
986ecc86 7413echo "configure:7414: checking for --enable-fontdlg" >&5
1e6feb95
VZ
7414 no_cache=0
7415 # Check whether --enable-fontdlg or --disable-fontdlg was given.
7416if test "${enable_fontdlg+set}" = set; then
7417 enableval="$enable_fontdlg"
7418
7419 if test "$enableval" = yes; then
7420 ac_cv_use_fontdlg='wxUSE_FONTDLG=yes'
7421 else
7422 ac_cv_use_fontdlg='wxUSE_FONTDLG=no'
7423 fi
7424
7425else
7426
7427 LINE=`grep "wxUSE_FONTDLG" ${wx_arg_cache_file}`
7428 if test "x$LINE" != x ; then
7429 eval "DEFAULT_$LINE"
7430 else
7431 no_cache=1
7432 fi
7433
7434 ac_cv_use_fontdlg='wxUSE_FONTDLG='$DEFAULT_wxUSE_FONTDLG
7435
7436fi
7437
7438
7439 eval "$ac_cv_use_fontdlg"
7440 if test "$no_cache" != 1; then
7441 echo $ac_cv_use_fontdlg >> ${wx_arg_cache_file}.tmp
7442 fi
7443
7444 if test "$wxUSE_FONTDLG" = yes; then
7445 echo "$ac_t""yes" 1>&6
7446 else
7447 echo "$ac_t""no" 1>&6
7448 fi
7449
7450
7451 echo $ac_n "checking for --enable-dirdlg""... $ac_c" 1>&6
986ecc86 7452echo "configure:7453: checking for --enable-dirdlg" >&5
1e6feb95
VZ
7453 no_cache=0
7454 # Check whether --enable-dirdlg or --disable-dirdlg was given.
7455if test "${enable_dirdlg+set}" = set; then
7456 enableval="$enable_dirdlg"
7457
7458 if test "$enableval" = yes; then
7459 ac_cv_use_dirdlg='wxUSE_DIRDLG=yes'
7460 else
7461 ac_cv_use_dirdlg='wxUSE_DIRDLG=no'
7462 fi
7463
7464else
7465
7466 LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}`
7467 if test "x$LINE" != x ; then
7468 eval "DEFAULT_$LINE"
7469 else
7470 no_cache=1
7471 fi
7472
7473 ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG
7474
7475fi
7476
7477
7478 eval "$ac_cv_use_dirdlg"
10f2d63a 7479 if test "$no_cache" != 1; then
1e6feb95 7480 echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
7481 fi
7482
1e6feb95 7483 if test "$wxUSE_DIRDLG" = yes; then
698dcdb6 7484 echo "$ac_t""yes" 1>&6
10f2d63a 7485 else
698dcdb6 7486 echo "$ac_t""no" 1>&6
10f2d63a 7487 fi
698dcdb6
VZ
7488
7489
1e6feb95 7490 echo $ac_n "checking for --enable-msgdlg""... $ac_c" 1>&6
986ecc86 7491echo "configure:7492: checking for --enable-msgdlg" >&5
10f2d63a 7492 no_cache=0
1e6feb95
VZ
7493 # Check whether --enable-msgdlg or --disable-msgdlg was given.
7494if test "${enable_msgdlg+set}" = set; then
7495 enableval="$enable_msgdlg"
698dcdb6 7496
10f2d63a 7497 if test "$enableval" = yes; then
1e6feb95 7498 ac_cv_use_msgdlg='wxUSE_MSGDLG=yes'
10f2d63a 7499 else
1e6feb95 7500 ac_cv_use_msgdlg='wxUSE_MSGDLG=no'
10f2d63a 7501 fi
698dcdb6 7502
10f2d63a 7503else
698dcdb6 7504
1e6feb95 7505 LINE=`grep "wxUSE_MSGDLG" ${wx_arg_cache_file}`
10f2d63a
VZ
7506 if test "x$LINE" != x ; then
7507 eval "DEFAULT_$LINE"
7508 else
7509 no_cache=1
7510 fi
7511
1e6feb95 7512 ac_cv_use_msgdlg='wxUSE_MSGDLG='$DEFAULT_wxUSE_MSGDLG
698dcdb6
VZ
7513
7514fi
10f2d63a
VZ
7515
7516
1e6feb95 7517 eval "$ac_cv_use_msgdlg"
10f2d63a 7518 if test "$no_cache" != 1; then
1e6feb95 7519 echo $ac_cv_use_msgdlg >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
7520 fi
7521
1e6feb95 7522 if test "$wxUSE_MSGDLG" = yes; then
698dcdb6 7523 echo "$ac_t""yes" 1>&6
10f2d63a 7524 else
698dcdb6 7525 echo "$ac_t""no" 1>&6
10f2d63a 7526 fi
698dcdb6 7527
10f2d63a 7528
1e6feb95 7529 echo $ac_n "checking for --enable-numberdlg""... $ac_c" 1>&6
986ecc86 7530echo "configure:7531: checking for --enable-numberdlg" >&5
10f2d63a 7531 no_cache=0
1e6feb95
VZ
7532 # Check whether --enable-numberdlg or --disable-numberdlg was given.
7533if test "${enable_numberdlg+set}" = set; then
7534 enableval="$enable_numberdlg"
698dcdb6 7535
10f2d63a 7536 if test "$enableval" = yes; then
1e6feb95 7537 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=yes'
10f2d63a 7538 else
1e6feb95 7539 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=no'
10f2d63a 7540 fi
698dcdb6 7541
10f2d63a 7542else
698dcdb6 7543
1e6feb95 7544 LINE=`grep "wxUSE_NUMBERDLG" ${wx_arg_cache_file}`
10f2d63a
VZ
7545 if test "x$LINE" != x ; then
7546 eval "DEFAULT_$LINE"
7547 else
7548 no_cache=1
7549 fi
7550
1e6feb95 7551 ac_cv_use_numberdlg='wxUSE_NUMBERDLG='$DEFAULT_wxUSE_NUMBERDLG
698dcdb6
VZ
7552
7553fi
10f2d63a
VZ
7554
7555
1e6feb95 7556 eval "$ac_cv_use_numberdlg"
10f2d63a 7557 if test "$no_cache" != 1; then
1e6feb95 7558 echo $ac_cv_use_numberdlg >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
7559 fi
7560
1e6feb95 7561 if test "$wxUSE_NUMBERDLG" = yes; then
698dcdb6 7562 echo "$ac_t""yes" 1>&6
10f2d63a 7563 else
698dcdb6 7564 echo "$ac_t""no" 1>&6
10f2d63a 7565 fi
698dcdb6 7566
10f2d63a 7567
cbca9943 7568 echo $ac_n "checking for --enable-splash""... $ac_c" 1>&6
986ecc86 7569echo "configure:7570: checking for --enable-splash" >&5
cbca9943
VZ
7570 no_cache=0
7571 # Check whether --enable-splash or --disable-splash was given.
7572if test "${enable_splash+set}" = set; then
7573 enableval="$enable_splash"
7574
7575 if test "$enableval" = yes; then
7576 ac_cv_use_splash='wxUSE_SPLASH=yes'
7577 else
7578 ac_cv_use_splash='wxUSE_SPLASH=no'
7579 fi
7580
7581else
7582
7583 LINE=`grep "wxUSE_SPLASH" ${wx_arg_cache_file}`
7584 if test "x$LINE" != x ; then
7585 eval "DEFAULT_$LINE"
7586 else
7587 no_cache=1
7588 fi
7589
7590 ac_cv_use_splash='wxUSE_SPLASH='$DEFAULT_wxUSE_SPLASH
7591
7592fi
7593
7594
7595 eval "$ac_cv_use_splash"
7596 if test "$no_cache" != 1; then
7597 echo $ac_cv_use_splash >> ${wx_arg_cache_file}.tmp
7598 fi
7599
7600 if test "$wxUSE_SPLASH" = yes; then
7601 echo "$ac_t""yes" 1>&6
7602 else
7603 echo "$ac_t""no" 1>&6
7604 fi
7605
7606
698dcdb6 7607 echo $ac_n "checking for --enable-textdlg""... $ac_c" 1>&6
986ecc86 7608echo "configure:7609: checking for --enable-textdlg" >&5
10f2d63a
VZ
7609 no_cache=0
7610 # Check whether --enable-textdlg or --disable-textdlg was given.
7611if test "${enable_textdlg+set}" = set; then
7612 enableval="$enable_textdlg"
698dcdb6 7613
10f2d63a
VZ
7614 if test "$enableval" = yes; then
7615 ac_cv_use_textdlg='wxUSE_TEXTDLG=yes'
7616 else
7617 ac_cv_use_textdlg='wxUSE_TEXTDLG=no'
7618 fi
698dcdb6 7619
10f2d63a 7620else
698dcdb6 7621
10f2d63a
VZ
7622 LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}`
7623 if test "x$LINE" != x ; then
7624 eval "DEFAULT_$LINE"
7625 else
7626 no_cache=1
7627 fi
7628
7629 ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG
698dcdb6
VZ
7630
7631fi
10f2d63a
VZ
7632
7633
7634 eval "$ac_cv_use_textdlg"
7635 if test "$no_cache" != 1; then
7636 echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp
7637 fi
7638
7639 if test "$wxUSE_TEXTDLG" = yes; then
698dcdb6 7640 echo "$ac_t""yes" 1>&6
10f2d63a 7641 else
698dcdb6 7642 echo "$ac_t""no" 1>&6
10f2d63a 7643 fi
698dcdb6 7644
10f2d63a 7645
698dcdb6 7646 echo $ac_n "checking for --enable-tipdlg""... $ac_c" 1>&6
986ecc86 7647echo "configure:7648: checking for --enable-tipdlg" >&5
10f2d63a
VZ
7648 no_cache=0
7649 # Check whether --enable-tipdlg or --disable-tipdlg was given.
7650if test "${enable_tipdlg+set}" = set; then
7651 enableval="$enable_tipdlg"
698dcdb6 7652
10f2d63a
VZ
7653 if test "$enableval" = yes; then
7654 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes'
7655 else
7656 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no'
7657 fi
698dcdb6 7658
10f2d63a 7659else
698dcdb6 7660
10f2d63a
VZ
7661 LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}`
7662 if test "x$LINE" != x ; then
7663 eval "DEFAULT_$LINE"
7664 else
7665 no_cache=1
7666 fi
7667
7668 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS
698dcdb6
VZ
7669
7670fi
10f2d63a
VZ
7671
7672
7673 eval "$ac_cv_use_tipdlg"
7674 if test "$no_cache" != 1; then
7675 echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp
7676 fi
7677
7678 if test "$wxUSE_STARTUP_TIPS" = yes; then
698dcdb6 7679 echo "$ac_t""yes" 1>&6
10f2d63a 7680 else
698dcdb6 7681 echo "$ac_t""no" 1>&6
10f2d63a 7682 fi
698dcdb6 7683
10f2d63a 7684
698dcdb6 7685 echo $ac_n "checking for --enable-progressdlg""... $ac_c" 1>&6
986ecc86 7686echo "configure:7687: checking for --enable-progressdlg" >&5
10f2d63a
VZ
7687 no_cache=0
7688 # Check whether --enable-progressdlg or --disable-progressdlg was given.
7689if test "${enable_progressdlg+set}" = set; then
7690 enableval="$enable_progressdlg"
698dcdb6 7691
10f2d63a
VZ
7692 if test "$enableval" = yes; then
7693 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes'
7694 else
7695 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no'
7696 fi
698dcdb6 7697
10f2d63a 7698else
698dcdb6 7699
10f2d63a
VZ
7700 LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}`
7701 if test "x$LINE" != x ; then
7702 eval "DEFAULT_$LINE"
7703 else
7704 no_cache=1
7705 fi
7706
7707 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG
698dcdb6
VZ
7708
7709fi
10f2d63a
VZ
7710
7711
7712 eval "$ac_cv_use_progressdlg"
7713 if test "$no_cache" != 1; then
7714 echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp
7715 fi
7716
7717 if test "$wxUSE_PROGRESSDLG" = yes; then
698dcdb6 7718 echo "$ac_t""yes" 1>&6
10f2d63a 7719 else
698dcdb6 7720 echo "$ac_t""no" 1>&6
10f2d63a 7721 fi
698dcdb6 7722
10f2d63a 7723
b1f5d087 7724 echo $ac_n "checking for --enable-wizarddlg""... $ac_c" 1>&6
986ecc86 7725echo "configure:7726: checking for --enable-wizarddlg" >&5
b1f5d087
VZ
7726 no_cache=0
7727 # Check whether --enable-wizarddlg or --disable-wizarddlg was given.
7728if test "${enable_wizarddlg+set}" = set; then
7729 enableval="$enable_wizarddlg"
7730
7731 if test "$enableval" = yes; then
7732 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=yes'
7733 else
7734 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=no'
7735 fi
7736
7737else
7738
7739 LINE=`grep "wxUSE_WIZARDDLG" ${wx_arg_cache_file}`
7740 if test "x$LINE" != x ; then
7741 eval "DEFAULT_$LINE"
7742 else
7743 no_cache=1
7744 fi
7745
7746 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG='$DEFAULT_wxUSE_WIZARDDLG
7747
7748fi
7749
7750
7751 eval "$ac_cv_use_wizarddlg"
7752 if test "$no_cache" != 1; then
7753 echo $ac_cv_use_wizarddlg >> ${wx_arg_cache_file}.tmp
7754 fi
7755
7756 if test "$wxUSE_WIZARDDLG" = yes; then
7757 echo "$ac_t""yes" 1>&6
7758 else
7759 echo "$ac_t""no" 1>&6
7760 fi
7761
7762
7763
7764
1e6feb95 7765 echo $ac_n "checking for --enable-menus""... $ac_c" 1>&6
986ecc86 7766echo "configure:7767: checking for --enable-menus" >&5
1e6feb95
VZ
7767 no_cache=0
7768 # Check whether --enable-menus or --disable-menus was given.
7769if test "${enable_menus+set}" = set; then
7770 enableval="$enable_menus"
7771
7772 if test "$enableval" = yes; then
7773 ac_cv_use_menus='wxUSE_MENUS=yes'
7774 else
7775 ac_cv_use_menus='wxUSE_MENUS=no'
7776 fi
7777
7778else
7779
7780 LINE=`grep "wxUSE_MENUS" ${wx_arg_cache_file}`
7781 if test "x$LINE" != x ; then
7782 eval "DEFAULT_$LINE"
7783 else
7784 no_cache=1
7785 fi
7786
7787 ac_cv_use_menus='wxUSE_MENUS='$DEFAULT_wxUSE_MENUS
7788
7789fi
7790
7791
7792 eval "$ac_cv_use_menus"
7793 if test "$no_cache" != 1; then
7794 echo $ac_cv_use_menus >> ${wx_arg_cache_file}.tmp
7795 fi
7796
7797 if test "$wxUSE_MENUS" = yes; then
7798 echo "$ac_t""yes" 1>&6
7799 else
7800 echo "$ac_t""no" 1>&6
7801 fi
7802
7803
698dcdb6 7804 echo $ac_n "checking for --enable-miniframe""... $ac_c" 1>&6
986ecc86 7805echo "configure:7806: checking for --enable-miniframe" >&5
10f2d63a
VZ
7806 no_cache=0
7807 # Check whether --enable-miniframe or --disable-miniframe was given.
7808if test "${enable_miniframe+set}" = set; then
7809 enableval="$enable_miniframe"
698dcdb6 7810
10f2d63a
VZ
7811 if test "$enableval" = yes; then
7812 ac_cv_use_miniframe='wxUSE_MINIFRAME=yes'
7813 else
7814 ac_cv_use_miniframe='wxUSE_MINIFRAME=no'
7815 fi
698dcdb6 7816
10f2d63a 7817else
698dcdb6 7818
10f2d63a
VZ
7819 LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}`
7820 if test "x$LINE" != x ; then
7821 eval "DEFAULT_$LINE"
7822 else
7823 no_cache=1
7824 fi
7825
7826 ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME
698dcdb6
VZ
7827
7828fi
10f2d63a
VZ
7829
7830
7831 eval "$ac_cv_use_miniframe"
7832 if test "$no_cache" != 1; then
7833 echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp
7834 fi
7835
7836 if test "$wxUSE_MINIFRAME" = yes; then
698dcdb6 7837 echo "$ac_t""yes" 1>&6
10f2d63a 7838 else
698dcdb6 7839 echo "$ac_t""no" 1>&6
10f2d63a 7840 fi
698dcdb6 7841
10f2d63a 7842
698dcdb6 7843 echo $ac_n "checking for --enable-tooltips""... $ac_c" 1>&6
986ecc86 7844echo "configure:7845: checking for --enable-tooltips" >&5
10f2d63a
VZ
7845 no_cache=0
7846 # Check whether --enable-tooltips or --disable-tooltips was given.
7847if test "${enable_tooltips+set}" = set; then
7848 enableval="$enable_tooltips"
698dcdb6 7849
10f2d63a
VZ
7850 if test "$enableval" = yes; then
7851 ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes'
7852 else
7853 ac_cv_use_tooltips='wxUSE_TOOLTIPS=no'
7854 fi
698dcdb6 7855
10f2d63a 7856else
698dcdb6 7857
10f2d63a
VZ
7858 LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}`
7859 if test "x$LINE" != x ; then
7860 eval "DEFAULT_$LINE"
7861 else
7862 no_cache=1
7863 fi
7864
7865 ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS
698dcdb6
VZ
7866
7867fi
10f2d63a
VZ
7868
7869
7870 eval "$ac_cv_use_tooltips"
7871 if test "$no_cache" != 1; then
7872 echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp
7873 fi
7874
7875 if test "$wxUSE_TOOLTIPS" = yes; then
698dcdb6 7876 echo "$ac_t""yes" 1>&6
10f2d63a 7877 else
698dcdb6 7878 echo "$ac_t""no" 1>&6
10f2d63a 7879 fi
698dcdb6 7880
10f2d63a 7881
698dcdb6 7882 echo $ac_n "checking for --enable-splines""... $ac_c" 1>&6
986ecc86 7883echo "configure:7884: checking for --enable-splines" >&5
10f2d63a
VZ
7884 no_cache=0
7885 # Check whether --enable-splines or --disable-splines was given.
7886if test "${enable_splines+set}" = set; then
7887 enableval="$enable_splines"
698dcdb6 7888
10f2d63a
VZ
7889 if test "$enableval" = yes; then
7890 ac_cv_use_splines='wxUSE_SPLINES=yes'
7891 else
7892 ac_cv_use_splines='wxUSE_SPLINES=no'
7893 fi
698dcdb6 7894
10f2d63a 7895else
698dcdb6 7896
10f2d63a
VZ
7897 LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}`
7898 if test "x$LINE" != x ; then
7899 eval "DEFAULT_$LINE"
7900 else
7901 no_cache=1
7902 fi
7903
7904 ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES
698dcdb6
VZ
7905
7906fi
10f2d63a
VZ
7907
7908
7909 eval "$ac_cv_use_splines"
7910 if test "$no_cache" != 1; then
7911 echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp
7912 fi
7913
7914 if test "$wxUSE_SPLINES" = yes; then
698dcdb6 7915 echo "$ac_t""yes" 1>&6
10f2d63a 7916 else
698dcdb6 7917 echo "$ac_t""no" 1>&6
10f2d63a 7918 fi
698dcdb6 7919
10f2d63a 7920
698dcdb6 7921 echo $ac_n "checking for --enable-validators""... $ac_c" 1>&6
986ecc86 7922echo "configure:7923: checking for --enable-validators" >&5
10f2d63a
VZ
7923 no_cache=0
7924 # Check whether --enable-validators or --disable-validators was given.
7925if test "${enable_validators+set}" = set; then
7926 enableval="$enable_validators"
698dcdb6 7927
10f2d63a
VZ
7928 if test "$enableval" = yes; then
7929 ac_cv_use_validators='wxUSE_VALIDATORS=yes'
7930 else
7931 ac_cv_use_validators='wxUSE_VALIDATORS=no'
7932 fi
698dcdb6 7933
10f2d63a 7934else
698dcdb6 7935
10f2d63a
VZ
7936 LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}`
7937 if test "x$LINE" != x ; then
7938 eval "DEFAULT_$LINE"
7939 else
7940 no_cache=1
7941 fi
7942
7943 ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS
698dcdb6
VZ
7944
7945fi
10f2d63a
VZ
7946
7947
7948 eval "$ac_cv_use_validators"
7949 if test "$no_cache" != 1; then
7950 echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp
7951 fi
7952
7953 if test "$wxUSE_VALIDATORS" = yes; then
698dcdb6 7954 echo "$ac_t""yes" 1>&6
10f2d63a 7955 else
698dcdb6 7956 echo "$ac_t""no" 1>&6
10f2d63a 7957 fi
698dcdb6 7958
10f2d63a 7959
698dcdb6 7960 echo $ac_n "checking for --enable-busyinfo""... $ac_c" 1>&6
986ecc86 7961echo "configure:7962: checking for --enable-busyinfo" >&5
10f2d63a
VZ
7962 no_cache=0
7963 # Check whether --enable-busyinfo or --disable-busyinfo was given.
7964if test "${enable_busyinfo+set}" = set; then
7965 enableval="$enable_busyinfo"
698dcdb6 7966
10f2d63a
VZ
7967 if test "$enableval" = yes; then
7968 ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes'
7969 else
7970 ac_cv_use_busyinfo='wxUSE_BUSYINFO=no'
7971 fi
698dcdb6 7972
10f2d63a 7973else
698dcdb6 7974
10f2d63a
VZ
7975 LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}`
7976 if test "x$LINE" != x ; then
7977 eval "DEFAULT_$LINE"
7978 else
7979 no_cache=1
7980 fi
7981
7982 ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO
698dcdb6
VZ
7983
7984fi
10f2d63a
VZ
7985
7986
7987 eval "$ac_cv_use_busyinfo"
7988 if test "$no_cache" != 1; then
7989 echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp
7990 fi
7991
7992 if test "$wxUSE_BUSYINFO" = yes; then
698dcdb6 7993 echo "$ac_t""yes" 1>&6
10f2d63a 7994 else
698dcdb6 7995 echo "$ac_t""no" 1>&6
10f2d63a 7996 fi
698dcdb6 7997
10f2d63a 7998
698dcdb6 7999 echo $ac_n "checking for --enable-joystick""... $ac_c" 1>&6
986ecc86 8000echo "configure:8001: checking for --enable-joystick" >&5
f6bcfd97
BP
8001 no_cache=0
8002 # Check whether --enable-joystick or --disable-joystick was given.
8003if test "${enable_joystick+set}" = set; then
8004 enableval="$enable_joystick"
698dcdb6 8005
f6bcfd97
BP
8006 if test "$enableval" = yes; then
8007 ac_cv_use_joystick='wxUSE_JOYSTICK=yes'
8008 else
8009 ac_cv_use_joystick='wxUSE_JOYSTICK=no'
8010 fi
698dcdb6 8011
f6bcfd97 8012else
698dcdb6 8013
f6bcfd97
BP
8014 LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}`
8015 if test "x$LINE" != x ; then
8016 eval "DEFAULT_$LINE"
8017 else
8018 no_cache=1
8019 fi
8020
8021 ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK
698dcdb6
VZ
8022
8023fi
f6bcfd97
BP
8024
8025
8026 eval "$ac_cv_use_joystick"
8027 if test "$no_cache" != 1; then
8028 echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp
8029 fi
8030
8031 if test "$wxUSE_JOYSTICK" = yes; then
698dcdb6 8032 echo "$ac_t""yes" 1>&6
f6bcfd97 8033 else
698dcdb6 8034 echo "$ac_t""no" 1>&6
f6bcfd97 8035 fi
698dcdb6
VZ
8036
8037
1e6feb95 8038 echo $ac_n "checking for --enable-metafile""... $ac_c" 1>&6
986ecc86 8039echo "configure:8040: checking for --enable-metafile" >&5
1e6feb95
VZ
8040 no_cache=0
8041 # Check whether --enable-metafile or --disable-metafile was given.
8042if test "${enable_metafile+set}" = set; then
8043 enableval="$enable_metafile"
8044
8045 if test "$enableval" = yes; then
8046 ac_cv_use_metafile='wxUSE_METAFILE=yes'
8047 else
8048 ac_cv_use_metafile='wxUSE_METAFILE=no'
8049 fi
8050
8051else
8052
8053 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
8054 if test "x$LINE" != x ; then
8055 eval "DEFAULT_$LINE"
8056 else
8057 no_cache=1
8058 fi
8059
8060 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
8061
8062fi
8063
8064
8065 eval "$ac_cv_use_metafile"
8066 if test "$no_cache" != 1; then
8067 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
8068 fi
8069
8070 if test "$wxUSE_METAFILE" = yes; then
8071 echo "$ac_t""yes" 1>&6
8072 else
8073 echo "$ac_t""no" 1>&6
8074 fi
8075
8076
24fd6d87 8077 echo $ac_n "checking for --enable-dragimage""... $ac_c" 1>&6
986ecc86 8078echo "configure:8079: checking for --enable-dragimage" >&5
24fd6d87
VZ
8079 no_cache=0
8080 # Check whether --enable-dragimage or --disable-dragimage was given.
8081if test "${enable_dragimage+set}" = set; then
8082 enableval="$enable_dragimage"
8083
8084 if test "$enableval" = yes; then
8085 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=yes'
8086 else
8087 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=no'
8088 fi
8089
8090else
8091
8092 LINE=`grep "wxUSE_DRAGIMAGE" ${wx_arg_cache_file}`
8093 if test "x$LINE" != x ; then
8094 eval "DEFAULT_$LINE"
8095 else
8096 no_cache=1
8097 fi
8098
8099 ac_cv_use_dragimage='wxUSE_DRAGIMAGE='$DEFAULT_wxUSE_DRAGIMAGE
8100
8101fi
8102
8103
8104 eval "$ac_cv_use_dragimage"
8105 if test "$no_cache" != 1; then
8106 echo $ac_cv_use_dragimage >> ${wx_arg_cache_file}.tmp
8107 fi
8108
8109 if test "$wxUSE_DRAGIMAGE" = yes; then
8110 echo "$ac_t""yes" 1>&6
8111 else
8112 echo "$ac_t""no" 1>&6
8113 fi
8114
8115
10f2d63a 8116
698dcdb6 8117
edae8572 8118 echo $ac_n "checking for --enable-palette""... $ac_c" 1>&6
986ecc86 8119echo "configure:8120: checking for --enable-palette" >&5
edae8572
VZ
8120 no_cache=0
8121 # Check whether --enable-palette or --disable-palette was given.
8122if test "${enable_palette+set}" = set; then
8123 enableval="$enable_palette"
8124
8125 if test "$enableval" = yes; then
8126 ac_cv_use_palette='wxUSE_PALETTE=yes'
8127 else
8128 ac_cv_use_palette='wxUSE_PALETTE=no'
8129 fi
8130
8131else
8132
8133 LINE=`grep "wxUSE_PALETTE" ${wx_arg_cache_file}`
8134 if test "x$LINE" != x ; then
8135 eval "DEFAULT_$LINE"
8136 else
8137 no_cache=1
8138 fi
8139
8140 ac_cv_use_palette='wxUSE_PALETTE='$DEFAULT_wxUSE_PALETTE
8141
8142fi
8143
8144
8145 eval "$ac_cv_use_palette"
8146 if test "$no_cache" != 1; then
8147 echo $ac_cv_use_palette >> ${wx_arg_cache_file}.tmp
8148 fi
8149
8150 if test "$wxUSE_PALETTE" = yes; then
8151 echo "$ac_t""yes" 1>&6
8152 else
8153 echo "$ac_t""no" 1>&6
8154 fi
8155
8156
698dcdb6 8157 echo $ac_n "checking for --enable-image""... $ac_c" 1>&6
986ecc86 8158echo "configure:8159: checking for --enable-image" >&5
0046ff7c
VS
8159 no_cache=0
8160 # Check whether --enable-image or --disable-image was given.
8161if test "${enable_image+set}" = set; then
8162 enableval="$enable_image"
698dcdb6 8163
0046ff7c
VS
8164 if test "$enableval" = yes; then
8165 ac_cv_use_image='wxUSE_IMAGE=yes'
8166 else
8167 ac_cv_use_image='wxUSE_IMAGE=no'
8168 fi
698dcdb6 8169
0046ff7c 8170else
698dcdb6 8171
0046ff7c
VS
8172 LINE=`grep "wxUSE_IMAGE" ${wx_arg_cache_file}`
8173 if test "x$LINE" != x ; then
8174 eval "DEFAULT_$LINE"
8175 else
8176 no_cache=1
8177 fi
8178
8179 ac_cv_use_image='wxUSE_IMAGE='$DEFAULT_wxUSE_IMAGE
698dcdb6
VZ
8180
8181fi
0046ff7c
VS
8182
8183
8184 eval "$ac_cv_use_image"
8185 if test "$no_cache" != 1; then
8186 echo $ac_cv_use_image >> ${wx_arg_cache_file}.tmp
8187 fi
8188
8189 if test "$wxUSE_IMAGE" = yes; then
698dcdb6 8190 echo "$ac_t""yes" 1>&6
0046ff7c 8191 else
698dcdb6 8192 echo "$ac_t""no" 1>&6
0046ff7c 8193 fi
698dcdb6 8194
0046ff7c 8195
698dcdb6 8196 echo $ac_n "checking for --enable-gif""... $ac_c" 1>&6
986ecc86 8197echo "configure:8198: checking for --enable-gif" >&5
10f2d63a
VZ
8198 no_cache=0
8199 # Check whether --enable-gif or --disable-gif was given.
8200if test "${enable_gif+set}" = set; then
8201 enableval="$enable_gif"
698dcdb6 8202
10f2d63a
VZ
8203 if test "$enableval" = yes; then
8204 ac_cv_use_gif='wxUSE_GIF=yes'
8205 else
8206 ac_cv_use_gif='wxUSE_GIF=no'
8207 fi
698dcdb6 8208
10f2d63a 8209else
698dcdb6 8210
10f2d63a
VZ
8211 LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}`
8212 if test "x$LINE" != x ; then
8213 eval "DEFAULT_$LINE"
8214 else
8215 no_cache=1
8216 fi
8217
8218 ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF
698dcdb6
VZ
8219
8220fi
10f2d63a
VZ
8221
8222
8223 eval "$ac_cv_use_gif"
8224 if test "$no_cache" != 1; then
8225 echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp
8226 fi
8227
8228 if test "$wxUSE_GIF" = yes; then
698dcdb6 8229 echo "$ac_t""yes" 1>&6
10f2d63a 8230 else
698dcdb6 8231 echo "$ac_t""no" 1>&6
10f2d63a 8232 fi
698dcdb6 8233
10f2d63a 8234
698dcdb6 8235 echo $ac_n "checking for --enable-pcx""... $ac_c" 1>&6
986ecc86 8236echo "configure:8237: checking for --enable-pcx" >&5
10f2d63a
VZ
8237 no_cache=0
8238 # Check whether --enable-pcx or --disable-pcx was given.
8239if test "${enable_pcx+set}" = set; then
8240 enableval="$enable_pcx"
698dcdb6 8241
10f2d63a
VZ
8242 if test "$enableval" = yes; then
8243 ac_cv_use_pcx='wxUSE_PCX=yes'
8244 else
8245 ac_cv_use_pcx='wxUSE_PCX=no'
8246 fi
698dcdb6 8247
10f2d63a 8248else
698dcdb6 8249
10f2d63a
VZ
8250 LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}`
8251 if test "x$LINE" != x ; then
8252 eval "DEFAULT_$LINE"
8253 else
8254 no_cache=1
8255 fi
8256
8257 ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX
698dcdb6
VZ
8258
8259fi
10f2d63a
VZ
8260
8261
8262 eval "$ac_cv_use_pcx"
8263 if test "$no_cache" != 1; then
8264 echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp
8265 fi
8266
8267 if test "$wxUSE_PCX" = yes; then
698dcdb6 8268 echo "$ac_t""yes" 1>&6
10f2d63a 8269 else
698dcdb6 8270 echo "$ac_t""no" 1>&6
10f2d63a 8271 fi
698dcdb6 8272
10f2d63a 8273
4b6b4dfc 8274 echo $ac_n "checking for --enable-iff""... $ac_c" 1>&6
986ecc86 8275echo "configure:8276: checking for --enable-iff" >&5
4b6b4dfc
RR
8276 no_cache=0
8277 # Check whether --enable-iff or --disable-iff was given.
8278if test "${enable_iff+set}" = set; then
8279 enableval="$enable_iff"
8280
8281 if test "$enableval" = yes; then
8282 ac_cv_use_iff='wxUSE_IFF=yes'
8283 else
8284 ac_cv_use_iff='wxUSE_IFF=no'
8285 fi
8286
8287else
8288
8289 LINE=`grep "wxUSE_IFF" ${wx_arg_cache_file}`
8290 if test "x$LINE" != x ; then
8291 eval "DEFAULT_$LINE"
8292 else
8293 no_cache=1
8294 fi
8295
8296 ac_cv_use_iff='wxUSE_IFF='$DEFAULT_wxUSE_IFF
8297
8298fi
8299
8300
8301 eval "$ac_cv_use_iff"
8302 if test "$no_cache" != 1; then
8303 echo $ac_cv_use_iff >> ${wx_arg_cache_file}.tmp
8304 fi
8305
8306 if test "$wxUSE_IFF" = yes; then
8307 echo "$ac_t""yes" 1>&6
8308 else
8309 echo "$ac_t""no" 1>&6
8310 fi
8311
8312
698dcdb6 8313 echo $ac_n "checking for --enable-pnm""... $ac_c" 1>&6
986ecc86 8314echo "configure:8315: checking for --enable-pnm" >&5
10f2d63a
VZ
8315 no_cache=0
8316 # Check whether --enable-pnm or --disable-pnm was given.
8317if test "${enable_pnm+set}" = set; then
8318 enableval="$enable_pnm"
698dcdb6 8319
10f2d63a
VZ
8320 if test "$enableval" = yes; then
8321 ac_cv_use_pnm='wxUSE_PNM=yes'
8322 else
8323 ac_cv_use_pnm='wxUSE_PNM=no'
8324 fi
698dcdb6 8325
10f2d63a 8326else
698dcdb6 8327
10f2d63a
VZ
8328 LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}`
8329 if test "x$LINE" != x ; then
8330 eval "DEFAULT_$LINE"
8331 else
8332 no_cache=1
8333 fi
8334
8335 ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM
698dcdb6
VZ
8336
8337fi
10f2d63a
VZ
8338
8339
8340 eval "$ac_cv_use_pnm"
8341 if test "$no_cache" != 1; then
8342 echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp
8343 fi
8344
8345 if test "$wxUSE_PNM" = yes; then
698dcdb6 8346 echo "$ac_t""yes" 1>&6
10f2d63a 8347 else
698dcdb6 8348 echo "$ac_t""no" 1>&6
10f2d63a 8349 fi
698dcdb6 8350
10f2d63a 8351
69d27ff7 8352 echo $ac_n "checking for --enable-xpm""... $ac_c" 1>&6
986ecc86 8353echo "configure:8354: checking for --enable-xpm" >&5
0046ff7c 8354 no_cache=0
69d27ff7
MB
8355 # Check whether --enable-xpm or --disable-xpm was given.
8356if test "${enable_xpm+set}" = set; then
8357 enableval="$enable_xpm"
698dcdb6 8358
0046ff7c 8359 if test "$enableval" = yes; then
69d27ff7 8360 ac_cv_use_xpm='wxUSE_XPM=yes'
0046ff7c 8361 else
69d27ff7 8362 ac_cv_use_xpm='wxUSE_XPM=no'
0046ff7c 8363 fi
698dcdb6 8364
0046ff7c 8365else
698dcdb6 8366
0046ff7c
VS
8367 LINE=`grep "wxUSE_XPM" ${wx_arg_cache_file}`
8368 if test "x$LINE" != x ; then
8369 eval "DEFAULT_$LINE"
8370 else
8371 no_cache=1
8372 fi
8373
69d27ff7 8374 ac_cv_use_xpm='wxUSE_XPM='$DEFAULT_wxUSE_XPM
698dcdb6
VZ
8375
8376fi
0046ff7c
VS
8377
8378
69d27ff7 8379 eval "$ac_cv_use_xpm"
0046ff7c 8380 if test "$no_cache" != 1; then
69d27ff7 8381 echo $ac_cv_use_xpm >> ${wx_arg_cache_file}.tmp
0046ff7c
VS
8382 fi
8383
8384 if test "$wxUSE_XPM" = yes; then
698dcdb6 8385 echo "$ac_t""yes" 1>&6
0046ff7c 8386 else
698dcdb6 8387 echo "$ac_t""no" 1>&6
0046ff7c 8388 fi
698dcdb6 8389
0046ff7c 8390
c7206e64 8391 echo $ac_n "checking for --enable-ico_cur""... $ac_c" 1>&6
986ecc86 8392echo "configure:8393: checking for --enable-ico_cur" >&5
658974ae 8393 no_cache=0
c7206e64
VS
8394 # Check whether --enable-ico_cur or --disable-ico_cur was given.
8395if test "${enable_ico_cur+set}" = set; then
8396 enableval="$enable_ico_cur"
658974ae
VS
8397
8398 if test "$enableval" = yes; then
c7206e64 8399 ac_cv_use_ico_cur='wxUSE_ICO_CUR=yes'
658974ae 8400 else
c7206e64 8401 ac_cv_use_ico_cur='wxUSE_ICO_CUR=no'
658974ae
VS
8402 fi
8403
8404else
8405
8406 LINE=`grep "wxUSE_ICO_CUR" ${wx_arg_cache_file}`
8407 if test "x$LINE" != x ; then
8408 eval "DEFAULT_$LINE"
8409 else
8410 no_cache=1
8411 fi
8412
c7206e64 8413 ac_cv_use_ico_cur='wxUSE_ICO_CUR='$DEFAULT_wxUSE_ICO_CUR
658974ae
VS
8414
8415fi
8416
8417
c7206e64 8418 eval "$ac_cv_use_ico_cur"
658974ae 8419 if test "$no_cache" != 1; then
c7206e64 8420 echo $ac_cv_use_ico_cur >> ${wx_arg_cache_file}.tmp
658974ae
VS
8421 fi
8422
8423 if test "$wxUSE_ICO_CUR" = yes; then
8424 echo "$ac_t""yes" 1>&6
8425 else
8426 echo "$ac_t""no" 1>&6
8427 fi
8428
8429
b12915c1
VZ
8430fi
8431
d558c907
VS
8432case "${host}" in
8433 *-pc-os2_emx | *-pc-os2-emx )
8434 LEX_STEM="lexyy"
8435 ;;
8436 *)
8437 PATH_IFS=':'
8438 LEX_STEM="lex.yy"
8439 ;;
8440esac
8441
8442
698dcdb6 8443
10f2d63a
VZ
8444 echo "saving argument cache $wx_arg_cache_file"
8445 mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file}
698dcdb6 8446
10f2d63a 8447
698dcdb6
VZ
8448
8449echo $ac_n "checking for toolkit""... $ac_c" 1>&6
986ecc86 8450echo "configure:8451: checking for toolkit" >&5
10f2d63a
VZ
8451
8452if test "$wxUSE_GUI" = "yes"; then
8453
3a922bb4
RL
8454 if test "$USE_BEOS" = 1; then
8455 { echo "configure: error: BeOS GUI is not supported yet, use --disable-gui" 1>&2; exit 1; }
8456 fi
b12915c1 8457
3a922bb4
RL
8458 if test "$TOOLKIT_GIVEN" = 1; then
8459 for toolkit in `echo $ALL_TOOLKITS`; do
8460 var=wxUSE_$toolkit
8461 eval "value=\$${var}"
8462 eval "$var=`echo \$value | sed -e "s/yes/1/" -e "s/no/0/"`"
8463 done
10f2d63a 8464 else
3a922bb4
RL
8465 for toolkit in `echo $ALL_TOOLKITS`; do
8466 if test "$has_toolkit_in_cache" != 1; then
8467 var=DEFAULT_DEFAULT_wxUSE_$toolkit
8468 else
8469 var=DEFAULT_wxUSE_$toolkit
8470 fi
8471 eval "wxUSE_$toolkit=\$${var}"
8472 done
10f2d63a 8473 fi
10f2d63a 8474
3a922bb4 8475 NUM_TOOLKITS=`expr ${wxUSE_GTK:-0} + ${wxUSE_MOTIF:-0} + ${wxUSE_MAC:-0} \
f79bd02d 8476 + ${wxUSE_WINE:-0} + ${wxUSE_MSW:-0} + ${wxUSE_MGL:-0} + ${wxUSE_MICROWIN:-0} + ${wxUSE_X11:-0}`
10f2d63a 8477
d558c907 8478 case "${host}" in
6fa882bd 8479 *-pc-os2_emx | *-pc-os2-emx )
3a922bb4 8480 NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}`
3a922bb4 8481 esac
10f2d63a 8482
3a922bb4
RL
8483 case "$NUM_TOOLKITS" in
8484 1)
8485 ;;
8486 0)
8487 { echo "configure: error: Please specify a toolkit - cannot determine the default for ${host}" 1>&2; exit 1; }
8488 ;;
8489 *)
8490 { echo "configure: error: Please specify at most one toolkit (may be some are cached?)" 1>&2; exit 1; }
8491 esac
10f2d63a 8492
3a922bb4
RL
8493 for toolkit in `echo $ALL_TOOLKITS`; do
8494 var=wxUSE_$toolkit
8495 eval "value=\$${var}"
8496 if test "x$value" != x; then
8497 cache_var=CACHE_$toolkit
8498 eval "cache=\$${cache_var}"
8499 if test "$cache" = 1; then
8500 echo "$var=$value" >> ${wx_arg_cache_file}
8501 fi
8502 if test "$value" = 1; then
8503 toolkit_echo=`echo $toolkit | tr [A-Z] [a-z]`
8504 echo "$ac_t""$toolkit_echo" 1>&6
8505 fi
8506 fi
8507 done
10f2d63a 8508else
3a922bb4 8509 echo "$ac_t""base ($host_alias hosted) only" 1>&6
10f2d63a
VZ
8510fi
8511
698dcdb6
VZ
8512
8513cat > confcache <<\EOF
10f2d63a
VZ
8514# This file is a shell script that caches the results of configure
8515# tests run on this system so they can be shared between configure
698dcdb6
VZ
8516# scripts and configure runs. It is not useful on other systems.
8517# If it contains results you don't want to keep, you may remove or edit it.
10f2d63a 8518#
698dcdb6
VZ
8519# By default, configure uses ./config.cache as the cache file,
8520# creating it if it does not exist already. You can give configure
8521# the --cache-file=FILE option to use a different cache file; that is
8522# what configure does when it calls configure scripts in
8523# subdirectories, so they share the cache.
8524# Giving --cache-file=/dev/null disables caching, for debugging configure.
8525# config.status only pays attention to the cache file if you give it the
8526# --recheck option to rerun configure.
10f2d63a 8527#
698dcdb6 8528EOF
10f2d63a
VZ
8529# The following way of writing the cache mishandles newlines in values,
8530# but we know of no workaround that is simple, portable, and efficient.
8531# So, don't put newlines in cache variables' values.
8532# Ultrix sh set writes to stderr and can't be redirected directly,
8533# and sets the high bit in the cache file unless we assign to the vars.
698dcdb6
VZ
8534(set) 2>&1 |
8535 case `(ac_space=' '; set | grep ac_space) 2>&1` in
8536 *ac_space=\ *)
8537 # `set' does not quote correctly, so add quotes (double-quote substitution
8538 # turns \\\\ into \\, and sed turns \\ into \).
8539 sed -n \
8540 -e "s/'/'\\\\''/g" \
8541 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
8542 ;;
8543 *)
8544 # `set' quotes correctly as required by POSIX, so do not add quotes.
8545 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
8546 ;;
8547 esac >> confcache
8548if cmp -s $cache_file confcache; then
8549 :
8550else
10f2d63a 8551 if test -w $cache_file; then
698dcdb6
VZ
8552 echo "updating cache $cache_file"
8553 cat confcache > $cache_file
10f2d63a
VZ
8554 else
8555 echo "not updating unwritable cache $cache_file"
8556 fi
8557fi
8558rm -f confcache
8559
698dcdb6 8560
e59890c3 8561if test "$build" != "$host" ; then
9d353d4a 8562 if test "$USE_WIN32" = 1 -o "$USE_DOS" = 1 -o "$USE_UNIX"; then
3a922bb4
RL
8563 CC=$host_alias-gcc
8564 CXX=$host_alias-c++
8565 AR=$host_alias-ar
8566 RANLIB=$host_alias-ranlib
8567 DLLTOOL=$host_alias-dlltool
8568 RESCOMP=$host_alias-windres
8569 LD=$host_alias-ld
8570 NM=$host_alias-nm
8571 STRIP=$host_alias-strip
8572 else
8573 { echo "configure: error: $build_alias -> $host_alias cross compilation not supported yet." 1>&2; exit 1; }
8574 fi
10f2d63a
VZ
8575fi
8576
ec603395 8577CFLAGS=${CFLAGS:=}
698dcdb6 8578# Extract the first word of "gcc", so it can be a program name with args.
1e487827 8579set dummy gcc; ac_word=$2
698dcdb6 8580echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
986ecc86 8581echo "configure:8582: checking for $ac_word" >&5
698dcdb6
VZ
8582if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
8583 echo $ac_n "(cached) $ac_c" 1>&6
6232543b
VS
8584else
8585 if test -n "$CC"; then
8586 ac_cv_prog_CC="$CC" # Let the user override the test.
10f2d63a 8587else
698dcdb6
VZ
8588 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8589 ac_dummy="$PATH"
8590 for ac_dir in $ac_dummy; do
8591 test -z "$ac_dir" && ac_dir=.
8592 if test -f $ac_dir/$ac_word; then
8593 ac_cv_prog_CC="gcc"
8594 break
8595 fi
8596 done
8597 IFS="$ac_save_ifs"
10f2d63a 8598fi
6232543b 8599fi
698dcdb6 8600CC="$ac_cv_prog_CC"
6232543b 8601if test -n "$CC"; then
698dcdb6 8602 echo "$ac_t""$CC" 1>&6
1e487827 8603else
698dcdb6 8604 echo "$ac_t""no" 1>&6
1e487827 8605fi
6232543b 8606
1e487827
VS
8607if test -z "$CC"; then
8608 # Extract the first word of "cc", so it can be a program name with args.
8609set dummy cc; ac_word=$2
698dcdb6 8610echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
986ecc86 8611echo "configure:8612: checking for $ac_word" >&5
698dcdb6
VZ
8612if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
8613 echo $ac_n "(cached) $ac_c" 1>&6
1e487827
VS
8614else
8615 if test -n "$CC"; then
8616 ac_cv_prog_CC="$CC" # Let the user override the test.
8617else
698dcdb6 8618 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1e487827 8619 ac_prog_rejected=no
698dcdb6
VZ
8620 ac_dummy="$PATH"
8621 for ac_dir in $ac_dummy; do
8622 test -z "$ac_dir" && ac_dir=.
8623 if test -f $ac_dir/$ac_word; then
8624 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
8625 ac_prog_rejected=yes
8626 continue
8627 fi
8628 ac_cv_prog_CC="cc"
8629 break
8630 fi
8631 done
8632 IFS="$ac_save_ifs"
1e487827
VS
8633if test $ac_prog_rejected = yes; then
8634 # We found a bogon in the path, so make sure we never use it.
8635 set dummy $ac_cv_prog_CC
8636 shift
698dcdb6 8637 if test $# -gt 0; then
1e487827
VS
8638 # We chose a different compiler from the bogus one.
8639 # However, it has the same basename, so the bogon will be chosen
8640 # first if we set CC to just the basename; use the full file name.
8641 shift
698dcdb6 8642 set dummy "$ac_dir/$ac_word" "$@"
1e487827
VS
8643 shift
8644 ac_cv_prog_CC="$@"
703e0a69 8645 fi
1e487827
VS
8646fi
8647fi
8648fi
698dcdb6 8649CC="$ac_cv_prog_CC"
1e487827 8650if test -n "$CC"; then
698dcdb6 8651 echo "$ac_t""$CC" 1>&6
703e0a69 8652else
698dcdb6 8653 echo "$ac_t""no" 1>&6
703e0a69 8654fi
1e487827 8655
698dcdb6
VZ
8656 if test -z "$CC"; then
8657 case "`uname -s`" in
8658 *win32* | *WIN32*)
8659 # Extract the first word of "cl", so it can be a program name with args.
8660set dummy cl; ac_word=$2
8661echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
986ecc86 8662echo "configure:8663: checking for $ac_word" >&5
698dcdb6
VZ
8663if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
8664 echo $ac_n "(cached) $ac_c" 1>&6
1e487827
VS
8665else
8666 if test -n "$CC"; then
8667 ac_cv_prog_CC="$CC" # Let the user override the test.
703e0a69 8668else
698dcdb6
VZ
8669 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8670 ac_dummy="$PATH"
8671 for ac_dir in $ac_dummy; do
8672 test -z "$ac_dir" && ac_dir=.
8673 if test -f $ac_dir/$ac_word; then
8674 ac_cv_prog_CC="cl"
8675 break
8676 fi
8677 done
8678 IFS="$ac_save_ifs"
703e0a69 8679fi
1e487827 8680fi
698dcdb6 8681CC="$ac_cv_prog_CC"
1e487827 8682if test -n "$CC"; then
698dcdb6 8683 echo "$ac_t""$CC" 1>&6
1e487827 8684else
698dcdb6 8685 echo "$ac_t""no" 1>&6
1e487827 8686fi
698dcdb6
VZ
8687 ;;
8688 esac
8689 fi
8690 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1e487827
VS
8691fi
8692
698dcdb6 8693echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
986ecc86 8694echo "configure:8695: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1e487827 8695
698dcdb6
VZ
8696ac_ext=c
8697# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8698ac_cpp='$CPP $CPPFLAGS'
8699ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8700ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8701cross_compiling=$ac_cv_prog_cc_cross
6232543b 8702
698dcdb6 8703cat > conftest.$ac_ext << EOF
1e487827 8704
986ecc86 8705#line 8706 "configure"
1e487827
VS
8706#include "confdefs.h"
8707
698dcdb6
VZ
8708main(){return(0);}
8709EOF
986ecc86 8710if { (eval echo configure:8711: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
8711 ac_cv_prog_cc_works=yes
8712 # If we can't run a trivial program, we are probably using a cross compiler.
8713 if (./conftest; exit) 2>/dev/null; then
8714 ac_cv_prog_cc_cross=no
8715 else
8716 ac_cv_prog_cc_cross=yes
8717 fi
8718else
8719 echo "configure: failed program was:" >&5
8720 cat conftest.$ac_ext >&5
8721 ac_cv_prog_cc_works=no
8722fi
8723rm -fr conftest*
8724ac_ext=c
8725# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8726ac_cpp='$CPP $CPPFLAGS'
8727ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8728ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8729cross_compiling=$ac_cv_prog_cc_cross
8730
8731echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
8732if test $ac_cv_prog_cc_works = no; then
8733 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
8734fi
8735echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
986ecc86 8736echo "configure:8737: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
698dcdb6
VZ
8737echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
8738cross_compiling=$ac_cv_prog_cc_cross
8739
8740echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
986ecc86 8741echo "configure:8742: checking whether we are using GNU C" >&5
698dcdb6
VZ
8742if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
8743 echo $ac_n "(cached) $ac_c" 1>&6
8744else
8745 cat > conftest.c <<EOF
8746#ifdef __GNUC__
8747 yes;
1e487827 8748#endif
698dcdb6 8749EOF
986ecc86 8750if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:8751: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
698dcdb6
VZ
8751 ac_cv_prog_gcc=yes
8752else
8753 ac_cv_prog_gcc=no
8754fi
8755fi
1e487827 8756
698dcdb6 8757echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1e487827 8758
698dcdb6
VZ
8759if test $ac_cv_prog_gcc = yes; then
8760 GCC=yes
8761else
8762 GCC=
8763fi
1e487827 8764
698dcdb6
VZ
8765ac_test_CFLAGS="${CFLAGS+set}"
8766ac_save_CFLAGS="$CFLAGS"
8767CFLAGS=
8768echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
986ecc86 8769echo "configure:8770: checking whether ${CC-cc} accepts -g" >&5
698dcdb6
VZ
8770if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
8771 echo $ac_n "(cached) $ac_c" 1>&6
8772else
8773 echo 'void f(){}' > conftest.c
8774if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
10f2d63a
VZ
8775 ac_cv_prog_cc_g=yes
8776else
698dcdb6 8777 ac_cv_prog_cc_g=no
10f2d63a 8778fi
698dcdb6
VZ
8779rm -f conftest*
8780
10f2d63a 8781fi
698dcdb6
VZ
8782
8783echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
10f2d63a 8784if test "$ac_test_CFLAGS" = set; then
698dcdb6 8785 CFLAGS="$ac_save_CFLAGS"
10f2d63a
VZ
8786elif test $ac_cv_prog_cc_g = yes; then
8787 if test "$GCC" = yes; then
8788 CFLAGS="-g -O2"
8789 else
8790 CFLAGS="-g"
8791 fi
8792else
8793 if test "$GCC" = yes; then
8794 CFLAGS="-O2"
8795 else
8796 CFLAGS=
8797 fi
8798fi
8799
8800
698dcdb6 8801echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
986ecc86 8802echo "configure:8803: checking how to run the C preprocessor" >&5
10f2d63a
VZ
8803# On Suns, sometimes $CPP names a directory.
8804if test -n "$CPP" && test -d "$CPP"; then
8805 CPP=
8806fi
8807if test -z "$CPP"; then
698dcdb6
VZ
8808if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
8809 echo $ac_n "(cached) $ac_c" 1>&6
8810else
8811 # This must be in double quotes, not single quotes, because CPP may get
8812 # substituted into the Makefile and "${CC-cc}" will confuse make.
8813 CPP="${CC-cc} -E"
10f2d63a 8814 # On the NeXT, cc -E runs the code through the compiler's parser,
698dcdb6
VZ
8815 # not just through cpp.
8816 cat > conftest.$ac_ext <<EOF
986ecc86 8817#line 8818 "configure"
10f2d63a
VZ
8818#include "confdefs.h"
8819#include <assert.h>
698dcdb6
VZ
8820Syntax Error
8821EOF
8822ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
986ecc86 8823{ (eval echo configure:8824: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
8824ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8825if test -z "$ac_err"; then
10f2d63a
VZ
8826 :
8827else
698dcdb6
VZ
8828 echo "$ac_err" >&5
8829 echo "configure: failed program was:" >&5
10f2d63a 8830 cat conftest.$ac_ext >&5
698dcdb6
VZ
8831 rm -rf conftest*
8832 CPP="${CC-cc} -E -traditional-cpp"
8833 cat > conftest.$ac_ext <<EOF
986ecc86 8834#line 8835 "configure"
10f2d63a 8835#include "confdefs.h"
698dcdb6
VZ
8836#include <assert.h>
8837Syntax Error
8838EOF
8839ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
986ecc86 8840{ (eval echo configure:8841: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
8841ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8842if test -z "$ac_err"; then
8843 :
10f2d63a 8844else
698dcdb6
VZ
8845 echo "$ac_err" >&5
8846 echo "configure: failed program was:" >&5
10f2d63a 8847 cat conftest.$ac_ext >&5
698dcdb6
VZ
8848 rm -rf conftest*
8849 CPP="${CC-cc} -nologo -E"
8850 cat > conftest.$ac_ext <<EOF
986ecc86 8851#line 8852 "configure"
10f2d63a
VZ
8852#include "confdefs.h"
8853#include <assert.h>
698dcdb6
VZ
8854Syntax Error
8855EOF
8856ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
986ecc86 8857{ (eval echo configure:8858: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
8858ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8859if test -z "$ac_err"; then
10f2d63a
VZ
8860 :
8861else
698dcdb6
VZ
8862 echo "$ac_err" >&5
8863 echo "configure: failed program was:" >&5
10f2d63a 8864 cat conftest.$ac_ext >&5
698dcdb6
VZ
8865 rm -rf conftest*
8866 CPP=/lib/cpp
10f2d63a 8867fi
698dcdb6 8868rm -f conftest*
10f2d63a 8869fi
698dcdb6 8870rm -f conftest*
703e0a69 8871fi
698dcdb6
VZ
8872rm -f conftest*
8873 ac_cv_prog_CPP="$CPP"
8874fi
8875 CPP="$ac_cv_prog_CPP"
10f2d63a 8876else
698dcdb6 8877 ac_cv_prog_CPP="$CPP"
10f2d63a 8878fi
698dcdb6 8879echo "$ac_t""$CPP" 1>&6
10f2d63a 8880
698dcdb6
VZ
8881if test $ac_cv_prog_gcc = yes; then
8882 echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
986ecc86 8883echo "configure:8884: checking whether ${CC-cc} needs -traditional" >&5
698dcdb6
VZ
8884if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
8885 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a
VZ
8886else
8887 ac_pattern="Autoconf.*'x'"
698dcdb6 8888 cat > conftest.$ac_ext <<EOF
986ecc86 8889#line 8890 "configure"
10f2d63a
VZ
8890#include "confdefs.h"
8891#include <sgtty.h>
8892Autoconf TIOCGETP
698dcdb6 8893EOF
10f2d63a
VZ
8894if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8895 egrep "$ac_pattern" >/dev/null 2>&1; then
698dcdb6 8896 rm -rf conftest*
10f2d63a
VZ
8897 ac_cv_prog_gcc_traditional=yes
8898else
698dcdb6 8899 rm -rf conftest*
10f2d63a
VZ
8900 ac_cv_prog_gcc_traditional=no
8901fi
8902rm -f conftest*
8903
698dcdb6 8904
10f2d63a 8905 if test $ac_cv_prog_gcc_traditional = no; then
698dcdb6 8906 cat > conftest.$ac_ext <<EOF
986ecc86 8907#line 8908 "configure"
10f2d63a
VZ
8908#include "confdefs.h"
8909#include <termio.h>
8910Autoconf TCGETA
698dcdb6 8911EOF
10f2d63a
VZ
8912if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8913 egrep "$ac_pattern" >/dev/null 2>&1; then
698dcdb6 8914 rm -rf conftest*
10f2d63a
VZ
8915 ac_cv_prog_gcc_traditional=yes
8916fi
8917rm -f conftest*
8918
8919 fi
8920fi
698dcdb6
VZ
8921
8922echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6
10f2d63a
VZ
8923 if test $ac_cv_prog_gcc_traditional = yes; then
8924 CC="$CC -traditional"
8925 fi
8926fi
8927
703e0a69 8928
698dcdb6
VZ
8929
8930ac_ext=C
8931# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1e487827 8932ac_cpp='$CXXCPP $CPPFLAGS'
698dcdb6
VZ
8933ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8934ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8935cross_compiling=$ac_cv_prog_cxx_cross
8936
8937
ec603395 8938CXXFLAGS=${CXXFLAGS:=}
698dcdb6
VZ
8939for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
8940do
8941# Extract the first word of "$ac_prog", so it can be a program name with args.
8942set dummy $ac_prog; ac_word=$2
8943echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
986ecc86 8944echo "configure:8945: checking for $ac_word" >&5
698dcdb6
VZ
8945if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
8946 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a
VZ
8947else
8948 if test -n "$CXX"; then
8949 ac_cv_prog_CXX="$CXX" # Let the user override the test.
8950else
698dcdb6
VZ
8951 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8952 ac_dummy="$PATH"
8953 for ac_dir in $ac_dummy; do
8954 test -z "$ac_dir" && ac_dir=.
8955 if test -f $ac_dir/$ac_word; then
8956 ac_cv_prog_CXX="$ac_prog"
8957 break
8958 fi
8959 done
8960 IFS="$ac_save_ifs"
10f2d63a
VZ
8961fi
8962fi
698dcdb6 8963CXX="$ac_cv_prog_CXX"
10f2d63a 8964if test -n "$CXX"; then
698dcdb6 8965 echo "$ac_t""$CXX" 1>&6
10f2d63a 8966else
698dcdb6 8967 echo "$ac_t""no" 1>&6
10f2d63a
VZ
8968fi
8969
698dcdb6 8970test -n "$CXX" && break
10f2d63a 8971done
698dcdb6 8972test -n "$CXX" || CXX="gcc"
10f2d63a
VZ
8973
8974
698dcdb6 8975echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
986ecc86 8976echo "configure:8977: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
10f2d63a 8977
698dcdb6
VZ
8978ac_ext=C
8979# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8980ac_cpp='$CXXCPP $CPPFLAGS'
8981ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8982ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8983cross_compiling=$ac_cv_prog_cxx_cross
703e0a69 8984
698dcdb6
VZ
8985cat > conftest.$ac_ext << EOF
8986
986ecc86 8987#line 8988 "configure"
10f2d63a
VZ
8988#include "confdefs.h"
8989
698dcdb6
VZ
8990int main(){return(0);}
8991EOF
986ecc86 8992if { (eval echo configure:8993: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
8993 ac_cv_prog_cxx_works=yes
8994 # If we can't run a trivial program, we are probably using a cross compiler.
8995 if (./conftest; exit) 2>/dev/null; then
8996 ac_cv_prog_cxx_cross=no
8997 else
8998 ac_cv_prog_cxx_cross=yes
8999 fi
9000else
9001 echo "configure: failed program was:" >&5
9002 cat conftest.$ac_ext >&5
9003 ac_cv_prog_cxx_works=no
9004fi
9005rm -fr conftest*
9006ac_ext=C
9007# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9008ac_cpp='$CXXCPP $CPPFLAGS'
9009ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9010ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9011cross_compiling=$ac_cv_prog_cxx_cross
9012
9013echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
9014if test $ac_cv_prog_cxx_works = no; then
9015 { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
9016fi
9017echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
986ecc86 9018echo "configure:9019: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
698dcdb6
VZ
9019echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
9020cross_compiling=$ac_cv_prog_cxx_cross
9021
9022echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
986ecc86 9023echo "configure:9024: checking whether we are using GNU C++" >&5
698dcdb6
VZ
9024if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
9025 echo $ac_n "(cached) $ac_c" 1>&6
9026else
9027 cat > conftest.C <<EOF
9028#ifdef __GNUC__
9029 yes;
10f2d63a 9030#endif
698dcdb6 9031EOF
986ecc86 9032if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:9033: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
698dcdb6
VZ
9033 ac_cv_prog_gxx=yes
9034else
9035 ac_cv_prog_gxx=no
9036fi
9037fi
10f2d63a 9038
698dcdb6 9039echo "$ac_t""$ac_cv_prog_gxx" 1>&6
10f2d63a 9040
698dcdb6
VZ
9041if test $ac_cv_prog_gxx = yes; then
9042 GXX=yes
9043else
9044 GXX=
9045fi
10f2d63a 9046
698dcdb6
VZ
9047ac_test_CXXFLAGS="${CXXFLAGS+set}"
9048ac_save_CXXFLAGS="$CXXFLAGS"
9049CXXFLAGS=
9050echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
986ecc86 9051echo "configure:9052: checking whether ${CXX-g++} accepts -g" >&5
698dcdb6
VZ
9052if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
9053 echo $ac_n "(cached) $ac_c" 1>&6
9054else
9055 echo 'void f(){}' > conftest.cc
9056if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
10f2d63a
VZ
9057 ac_cv_prog_cxx_g=yes
9058else
698dcdb6 9059 ac_cv_prog_cxx_g=no
10f2d63a 9060fi
698dcdb6
VZ
9061rm -f conftest*
9062
10f2d63a 9063fi
698dcdb6
VZ
9064
9065echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
10f2d63a 9066if test "$ac_test_CXXFLAGS" = set; then
698dcdb6 9067 CXXFLAGS="$ac_save_CXXFLAGS"
10f2d63a
VZ
9068elif test $ac_cv_prog_cxx_g = yes; then
9069 if test "$GXX" = yes; then
9070 CXXFLAGS="-g -O2"
9071 else
9072 CXXFLAGS="-g"
9073 fi
9074else
9075 if test "$GXX" = yes; then
9076 CXXFLAGS="-O2"
9077 else
9078 CXXFLAGS=
9079 fi
9080fi
9081
9082
10f2d63a 9083ac_ext=c
698dcdb6 9084# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10f2d63a 9085ac_cpp='$CPP $CPPFLAGS'
698dcdb6
VZ
9086ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9087ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9088cross_compiling=$ac_cv_prog_cc_cross
9089
9090
9091# Extract the first word of "ranlib", so it can be a program name with args.
9092set dummy ranlib; ac_word=$2
9093echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
986ecc86 9094echo "configure:9095: checking for $ac_word" >&5
698dcdb6
VZ
9095if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
9096 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a
VZ
9097else
9098 if test -n "$RANLIB"; then
9099 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9100else
698dcdb6
VZ
9101 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9102 ac_dummy="$PATH"
9103 for ac_dir in $ac_dummy; do
9104 test -z "$ac_dir" && ac_dir=.
9105 if test -f $ac_dir/$ac_word; then
9106 ac_cv_prog_RANLIB="ranlib"
9107 break
9108 fi
9109 done
9110 IFS="$ac_save_ifs"
9111 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
10f2d63a
VZ
9112fi
9113fi
698dcdb6 9114RANLIB="$ac_cv_prog_RANLIB"
10f2d63a 9115if test -n "$RANLIB"; then
698dcdb6 9116 echo "$ac_t""$RANLIB" 1>&6
10f2d63a 9117else
698dcdb6 9118 echo "$ac_t""no" 1>&6
10f2d63a
VZ
9119fi
9120
9121
9122# Extract the first word of "ar", so it can be a program name with args.
9123set dummy ar; ac_word=$2
698dcdb6 9124echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
986ecc86 9125echo "configure:9126: checking for $ac_word" >&5
698dcdb6
VZ
9126if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
9127 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a
VZ
9128else
9129 if test -n "$AR"; then
9130 ac_cv_prog_AR="$AR" # Let the user override the test.
9131else
698dcdb6
VZ
9132 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9133 ac_dummy="$PATH"
9134 for ac_dir in $ac_dummy; do
9135 test -z "$ac_dir" && ac_dir=.
9136 if test -f $ac_dir/$ac_word; then
9137 ac_cv_prog_AR="ar"
9138 break
9139 fi
9140 done
9141 IFS="$ac_save_ifs"
10f2d63a
VZ
9142 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
9143fi
9144fi
698dcdb6 9145AR="$ac_cv_prog_AR"
10f2d63a 9146if test -n "$AR"; then
698dcdb6 9147 echo "$ac_t""$AR" 1>&6
10f2d63a 9148else
698dcdb6 9149 echo "$ac_t""no" 1>&6
10f2d63a
VZ
9150fi
9151
698dcdb6 9152
6054113a 9153# Find a good install program. We prefer a C program (faster),
10f2d63a
VZ
9154# so one script is as good as another. But avoid the broken or
9155# incompatible versions:
9156# SysV /etc/install, /usr/sbin/install
9157# SunOS /usr/etc/install
9158# IRIX /sbin/install
9159# AIX /bin/install
9160# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
9161# AFS /usr/afsws/bin/install, which mishandles nonexistent args
9162# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
9163# ./install, which can be erroneously created by make from ./install.sh.
698dcdb6 9164echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
986ecc86 9165echo "configure:9166: checking for a BSD compatible install" >&5
10f2d63a 9166if test -z "$INSTALL"; then
698dcdb6
VZ
9167if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
9168 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 9169else
698dcdb6 9170 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
10f2d63a
VZ
9171 for ac_dir in $PATH; do
9172 # Account for people who put trailing slashes in PATH elements.
698dcdb6
VZ
9173 case "$ac_dir/" in
9174 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
10f2d63a
VZ
9175 *)
9176 # OSF1 and SCO ODT 3.0 have their own names for install.
9177 # Don't use installbsd from OSF since it installs stuff as root
9178 # by default.
9179 for ac_prog in ginstall scoinst install; do
698dcdb6 9180 if test -f $ac_dir/$ac_prog; then
10f2d63a 9181 if test $ac_prog = install &&
698dcdb6 9182 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
10f2d63a
VZ
9183 # AIX install. It has an incompatible calling convention.
9184 :
9185 else
9186 ac_cv_path_install="$ac_dir/$ac_prog -c"
9187 break 2
9188 fi
9189 fi
9190 done
9191 ;;
9192 esac
9193 done
698dcdb6 9194 IFS="$ac_save_IFS"
10f2d63a
VZ
9195
9196fi
9197 if test "${ac_cv_path_install+set}" = set; then
698dcdb6 9198 INSTALL="$ac_cv_path_install"
10f2d63a
VZ
9199 else
9200 # As a last resort, use the slow shell script. We don't cache a
9201 # path for INSTALL within a source directory, because that will
9202 # break other packages using the cache if that directory is
9203 # removed, or if the path is relative.
698dcdb6 9204 INSTALL="$ac_install_sh"
10f2d63a
VZ
9205 fi
9206fi
698dcdb6 9207echo "$ac_t""$INSTALL" 1>&6
10f2d63a
VZ
9208
9209# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
9210# It thinks the first close brace ends the variable substitution.
9211test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
9212
698dcdb6 9213test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
10f2d63a
VZ
9214
9215test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
9216
1d1b75ac
VZ
9217
9218case ${INSTALL} in
9219 /* ) # Absolute
9220 ;;
9221 *)
9222 INSTALL=`pwd`/${INSTALL} ;;
9223esac
9224
9225
6054113a
GD
9226case "${host}" in
9227
b5853384 9228 powerpc-*-darwin* )
eb99ae0b
GD
9229 INSTALL_PROGRAM="cp -fp"
9230 INSTALL_DATA="cp -fp"
6054113a
GD
9231 ;;
9232 *)
9233 ;;
d6853540 9234esac
698dcdb6 9235
10f2d63a
VZ
9236# Extract the first word of "strip", so it can be a program name with args.
9237set dummy strip; ac_word=$2
698dcdb6 9238echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
986ecc86 9239echo "configure:9240: checking for $ac_word" >&5
698dcdb6
VZ
9240if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
9241 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a
VZ
9242else
9243 if test -n "$STRIP"; then
9244 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9245else
698dcdb6
VZ
9246 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9247 ac_dummy="$PATH"
9248 for ac_dir in $ac_dummy; do
9249 test -z "$ac_dir" && ac_dir=.
9250 if test -f $ac_dir/$ac_word; then
9251 ac_cv_prog_STRIP="strip"
9252 break
9253 fi
9254 done
9255 IFS="$ac_save_ifs"
10f2d63a
VZ
9256 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="true"
9257fi
9258fi
698dcdb6 9259STRIP="$ac_cv_prog_STRIP"
10f2d63a 9260if test -n "$STRIP"; then
698dcdb6 9261 echo "$ac_t""$STRIP" 1>&6
10f2d63a 9262else
698dcdb6 9263 echo "$ac_t""no" 1>&6
10f2d63a
VZ
9264fi
9265
698dcdb6 9266
414eab6d 9267echo $ac_n "checking if make is GNU make""... $ac_c" 1>&6
986ecc86 9268echo "configure:9269: checking if make is GNU make" >&5
414eab6d
VZ
9269if eval "test \"`echo '$''{'wx_cv_prog_makeisgnu'+set}'`\" = set"; then
9270 echo $ac_n "(cached) $ac_c" 1>&6
9271else
9272
9273 if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
d558c907 9274 egrep -s GNU > /dev/null); then
414eab6d
VZ
9275 wx_cv_prog_makeisgnu="yes"
9276 else
9277 wx_cv_prog_makeisgnu="no"
9278 fi
9279
9280fi
9281
9282echo "$ac_t""$wx_cv_prog_makeisgnu" 1>&6
9283
9284if test "x$wx_cv_prog_makeisgnu" = "xyes"; then
9285 IF_GNU_MAKE=""
9286else
9287 IF_GNU_MAKE="#"
9288fi
9289
9290
9291
9292if test "x$wx_cv_prog_makeisgnu" != "xyes"; then
04e7a216 9293echo $ac_n "checking if make supports VPATH""... $ac_c" 1>&6
986ecc86 9294echo "configure:9295: checking if make supports VPATH" >&5
04e7a216
VZ
9295if eval "test \"`echo '$''{'wx_cv_prog_makevpath'+set}'`\" = set"; then
9296 echo $ac_n "(cached) $ac_c" 1>&6
9297else
9298
10f2d63a
VZ
9299cat - << EOF > confMake
9300check : file
9301 cp \$? \$@
9302 cp \$? final_file
9303EOF
9304
9305if test ! -d sub ; then
9306 mkdir sub
9307fi
9308echo dummy > sub/file
f6bcfd97 9309${MAKE-make} -f confMake VPATH=sub 2>&5 > /dev/null
10f2d63a
VZ
9310RESULT=$?
9311rm -f sub/file check final_file confMake
9312rmdir sub
9313if test "$RESULT" = 0; then
04e7a216 9314 wx_cv_prog_makevpath="yes"
10f2d63a 9315else
04e7a216
VZ
9316 wx_cv_prog_makevpath="no"
9317fi
9318
9319fi
9320
9321echo "$ac_t""$wx_cv_prog_makevpath" 1>&6
9322
9323if test "x$wx_cv_prog_makevpath" != "xyes"; then
9324{ echo "configure: error:
1e487827
VS
9325You need a make-utility that is able to use the variable
9326VPATH correctly.
9327If your version of make does not support VPATH correctly,
9328please install GNU-make (possibly as gmake), and start
9329configure with the following command:
9330export MAKE=gmake; ./configure for sh-type shells
9331setenv MAKE gmake; ./configure for csh-type shells
9332Also please do remember to use gmake in this case every time
9333you are trying to compile.
698dcdb6 9334" 1>&2; exit 1; }
414eab6d 9335fi fi
10f2d63a
VZ
9336for ac_prog in 'bison -y' byacc
9337do
698dcdb6 9338# Extract the first word of "$ac_prog", so it can be a program name with args.
10f2d63a 9339set dummy $ac_prog; ac_word=$2
698dcdb6 9340echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
986ecc86 9341echo "configure:9342: checking for $ac_word" >&5
698dcdb6
VZ
9342if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
9343 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a
VZ
9344else
9345 if test -n "$YACC"; then
9346 ac_cv_prog_YACC="$YACC" # Let the user override the test.
9347else
698dcdb6
VZ
9348 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9349 ac_dummy="$PATH"
9350 for ac_dir in $ac_dummy; do
9351 test -z "$ac_dir" && ac_dir=.
9352 if test -f $ac_dir/$ac_word; then
9353 ac_cv_prog_YACC="$ac_prog"
9354 break
9355 fi
9356 done
9357 IFS="$ac_save_ifs"
10f2d63a
VZ
9358fi
9359fi
698dcdb6 9360YACC="$ac_cv_prog_YACC"
10f2d63a 9361if test -n "$YACC"; then
698dcdb6 9362 echo "$ac_t""$YACC" 1>&6
10f2d63a 9363else
698dcdb6 9364 echo "$ac_t""no" 1>&6
10f2d63a
VZ
9365fi
9366
698dcdb6 9367test -n "$YACC" && break
10f2d63a
VZ
9368done
9369test -n "$YACC" || YACC="yacc"
9370
698dcdb6
VZ
9371
9372# Extract the first word of "flex", so it can be a program name with args.
9373set dummy flex; ac_word=$2
9374echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
986ecc86 9375echo "configure:9376: checking for $ac_word" >&5
698dcdb6
VZ
9376if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
9377 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a
VZ
9378else
9379 if test -n "$LEX"; then
9380 ac_cv_prog_LEX="$LEX" # Let the user override the test.
9381else
698dcdb6
VZ
9382 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9383 ac_dummy="$PATH"
9384 for ac_dir in $ac_dummy; do
9385 test -z "$ac_dir" && ac_dir=.
9386 if test -f $ac_dir/$ac_word; then
9387 ac_cv_prog_LEX="flex"
9388 break
9389 fi
9390 done
9391 IFS="$ac_save_ifs"
9392 test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex"
10f2d63a
VZ
9393fi
9394fi
698dcdb6 9395LEX="$ac_cv_prog_LEX"
10f2d63a 9396if test -n "$LEX"; then
698dcdb6 9397 echo "$ac_t""$LEX" 1>&6
10f2d63a 9398else
698dcdb6 9399 echo "$ac_t""no" 1>&6
10f2d63a
VZ
9400fi
9401
9402if test -z "$LEXLIB"
9403then
698dcdb6
VZ
9404 case "$LEX" in
9405 flex*) ac_lib=fl ;;
9406 *) ac_lib=l ;;
9407 esac
9408 echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
986ecc86 9409echo "configure:9410: checking for yywrap in -l$ac_lib" >&5
698dcdb6
VZ
9410ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
9411if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9412 echo $ac_n "(cached) $ac_c" 1>&6
9413else
9414 ac_save_LIBS="$LIBS"
9415LIBS="-l$ac_lib $LIBS"
9416cat > conftest.$ac_ext <<EOF
986ecc86 9417#line 9418 "configure"
10f2d63a
VZ
9418#include "confdefs.h"
9419/* Override any gcc2 internal prototype to avoid an error. */
9420/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
9421 builtin and then its argument prototype would still apply. */
9422char yywrap();
10f2d63a 9423
698dcdb6
VZ
9424int main() {
9425yywrap()
9426; return 0; }
9427EOF
986ecc86 9428if { (eval echo configure:9429: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
9429 rm -rf conftest*
9430 eval "ac_cv_lib_$ac_lib_var=yes"
10f2d63a 9431else
698dcdb6
VZ
9432 echo "configure: failed program was:" >&5
9433 cat conftest.$ac_ext >&5
9434 rm -rf conftest*
9435 eval "ac_cv_lib_$ac_lib_var=no"
10f2d63a 9436fi
698dcdb6
VZ
9437rm -f conftest*
9438LIBS="$ac_save_LIBS"
9439
10f2d63a 9440fi
698dcdb6
VZ
9441if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9442 echo "$ac_t""yes" 1>&6
9443 LEXLIB="-l$ac_lib"
9444else
9445 echo "$ac_t""no" 1>&6
10f2d63a
VZ
9446fi
9447
9448fi
9449
9450
698dcdb6 9451echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
986ecc86 9452echo "configure:9453: checking whether ln -s works" >&5
698dcdb6
VZ
9453if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
9454 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 9455else
698dcdb6
VZ
9456 rm -f conftestdata
9457if ln -s X conftestdata 2>/dev/null
9458then
9459 rm -f conftestdata
9460 ac_cv_prog_LN_S="ln -s"
10f2d63a 9461else
698dcdb6 9462 ac_cv_prog_LN_S=ln
10f2d63a
VZ
9463fi
9464fi
698dcdb6
VZ
9465LN_S="$ac_cv_prog_LN_S"
9466if test "$ac_cv_prog_LN_S" = "ln -s"; then
9467 echo "$ac_t""yes" 1>&6
10f2d63a 9468else
698dcdb6 9469 echo "$ac_t""no" 1>&6
10f2d63a
VZ
9470fi
9471
9472
9473
21d1c967
GD
9474if test "$wxUSE_MAC" != 1; then
9475 for ac_hdr in strings.h
9476do
9477ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9478echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
986ecc86 9479echo "configure:9480: checking for $ac_hdr" >&5
21d1c967 9480if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
19bc6aad
VZ
9481 echo $ac_n "(cached) $ac_c" 1>&6
9482else
90dd450c 9483 cat > conftest.$ac_ext <<EOF
986ecc86 9484#line 9485 "configure"
19bc6aad 9485#include "confdefs.h"
21d1c967 9486#include <$ac_hdr>
19bc6aad 9487EOF
21d1c967 9488ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
986ecc86 9489{ (eval echo configure:9490: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
21d1c967
GD
9490ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9491if test -z "$ac_err"; then
19bc6aad 9492 rm -rf conftest*
21d1c967 9493 eval "ac_cv_header_$ac_safe=yes"
19bc6aad 9494else
21d1c967 9495 echo "$ac_err" >&5
19bc6aad
VZ
9496 echo "configure: failed program was:" >&5
9497 cat conftest.$ac_ext >&5
9498 rm -rf conftest*
21d1c967 9499 eval "ac_cv_header_$ac_safe=no"
19bc6aad
VZ
9500fi
9501rm -f conftest*
19bc6aad 9502fi
21d1c967
GD
9503if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9504 echo "$ac_t""yes" 1>&6
9505 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9506 cat >> confdefs.h <<EOF
9507#define $ac_tr_hdr 1
19bc6aad 9508EOF
21d1c967
GD
9509
9510else
9511 echo "$ac_t""no" 1>&6
9512fi
9513done
19bc6aad 9514
19bc6aad
VZ
9515fi
9516
21d1c967
GD
9517for ac_hdr in stdlib.h
9518do
9519ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9520echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
986ecc86 9521echo "configure:9522: checking for $ac_hdr" >&5
21d1c967 9522if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
18dbb1f6
VZ
9523 echo $ac_n "(cached) $ac_c" 1>&6
9524else
9525 cat > conftest.$ac_ext <<EOF
986ecc86 9526#line 9527 "configure"
18dbb1f6 9527#include "confdefs.h"
21d1c967 9528#include <$ac_hdr>
18dbb1f6 9529EOF
21d1c967 9530ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
986ecc86 9531{ (eval echo configure:9532: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
21d1c967
GD
9532ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9533if test -z "$ac_err"; then
18dbb1f6 9534 rm -rf conftest*
21d1c967 9535 eval "ac_cv_header_$ac_safe=yes"
18dbb1f6 9536else
21d1c967 9537 echo "$ac_err" >&5
18dbb1f6
VZ
9538 echo "configure: failed program was:" >&5
9539 cat conftest.$ac_ext >&5
21d1c967
GD
9540 rm -rf conftest*
9541 eval "ac_cv_header_$ac_safe=no"
18dbb1f6
VZ
9542fi
9543rm -f conftest*
90dd450c 9544fi
21d1c967
GD
9545if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9546 echo "$ac_t""yes" 1>&6
9547 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9548 cat >> confdefs.h <<EOF
9549#define $ac_tr_hdr 1
90dd450c 9550EOF
21d1c967
GD
9551
9552else
9553 echo "$ac_t""no" 1>&6
9554fi
9555done
90dd450c 9556
21d1c967
GD
9557for ac_hdr in malloc.h
9558do
9559ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9560echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
986ecc86 9561echo "configure:9562: checking for $ac_hdr" >&5
21d1c967 9562if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
90dd450c 9563 echo $ac_n "(cached) $ac_c" 1>&6
90dd450c
VZ
9564else
9565 cat > conftest.$ac_ext <<EOF
986ecc86 9566#line 9567 "configure"
90dd450c 9567#include "confdefs.h"
21d1c967 9568#include <$ac_hdr>
18dbb1f6 9569EOF
21d1c967 9570ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
986ecc86 9571{ (eval echo configure:9572: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
21d1c967
GD
9572ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9573if test -z "$ac_err"; then
9574 rm -rf conftest*
9575 eval "ac_cv_header_$ac_safe=yes"
18dbb1f6 9576else
21d1c967 9577 echo "$ac_err" >&5
18dbb1f6
VZ
9578 echo "configure: failed program was:" >&5
9579 cat conftest.$ac_ext >&5
21d1c967
GD
9580 rm -rf conftest*
9581 eval "ac_cv_header_$ac_safe=no"
18dbb1f6 9582fi
21d1c967 9583rm -f conftest*
18dbb1f6 9584fi
21d1c967
GD
9585if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9586 echo "$ac_t""yes" 1>&6
9587 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9588 cat >> confdefs.h <<EOF
9589#define $ac_tr_hdr 1
4f14bcd8 9590EOF
21d1c967
GD
9591
9592else
9593 echo "$ac_t""no" 1>&6
9594fi
9595done
dad6c0ea 9596
21d1c967
GD
9597for ac_hdr in unistd.h
9598do
9599ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9600echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
986ecc86 9601echo "configure:9602: checking for $ac_hdr" >&5
21d1c967 9602if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3a922bb4
RL
9603 echo $ac_n "(cached) $ac_c" 1>&6
9604else
9605 cat > conftest.$ac_ext <<EOF
986ecc86 9606#line 9607 "configure"
3a922bb4 9607#include "confdefs.h"
21d1c967 9608#include <$ac_hdr>
3a922bb4 9609EOF
21d1c967 9610ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
986ecc86 9611{ (eval echo configure:9612: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
21d1c967
GD
9612ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9613if test -z "$ac_err"; then
9614 rm -rf conftest*
9615 eval "ac_cv_header_$ac_safe=yes"
3a922bb4 9616else
21d1c967 9617 echo "$ac_err" >&5
3a922bb4
RL
9618 echo "configure: failed program was:" >&5
9619 cat conftest.$ac_ext >&5
21d1c967
GD
9620 rm -rf conftest*
9621 eval "ac_cv_header_$ac_safe=no"
3a922bb4 9622fi
21d1c967 9623rm -f conftest*
90dd450c 9624fi
21d1c967
GD
9625if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9626 echo "$ac_t""yes" 1>&6
9627 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9628 cat >> confdefs.h <<EOF
9629#define $ac_tr_hdr 1
90dd450c 9630EOF
21d1c967
GD
9631
9632else
9633 echo "$ac_t""no" 1>&6
9634fi
9635done
90dd450c 9636
21d1c967
GD
9637for ac_hdr in wchar.h
9638do
9639ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9640echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
986ecc86 9641echo "configure:9642: checking for $ac_hdr" >&5
21d1c967 9642if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4f14bcd8 9643 echo $ac_n "(cached) $ac_c" 1>&6
90dd450c
VZ
9644else
9645 cat > conftest.$ac_ext <<EOF
986ecc86 9646#line 9647 "configure"
4f14bcd8 9647#include "confdefs.h"
21d1c967 9648#include <$ac_hdr>
3a922bb4 9649EOF
21d1c967 9650ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
986ecc86 9651{ (eval echo configure:9652: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
21d1c967
GD
9652ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9653if test -z "$ac_err"; then
9654 rm -rf conftest*
9655 eval "ac_cv_header_$ac_safe=yes"
4f14bcd8 9656else
21d1c967 9657 echo "$ac_err" >&5
4f14bcd8
GD
9658 echo "configure: failed program was:" >&5
9659 cat conftest.$ac_ext >&5
21d1c967
GD
9660 rm -rf conftest*
9661 eval "ac_cv_header_$ac_safe=no"
3a922bb4 9662fi
21d1c967 9663rm -f conftest*
4f14bcd8 9664fi
21d1c967
GD
9665if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9666 echo "$ac_t""yes" 1>&6
9667 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9668 cat >> confdefs.h <<EOF
9669#define $ac_tr_hdr 1
4f14bcd8 9670EOF
21d1c967
GD
9671
9672else
9673 echo "$ac_t""no" 1>&6
9674fi
9675done
4f14bcd8 9676
4f14bcd8 9677
21d1c967
GD
9678if test "$ac_cv_header_wchar_h" != "yes"; then
9679 for ac_hdr in wcstr.h
9680do
9681ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9682echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
986ecc86 9683echo "configure:9684: checking for $ac_hdr" >&5
21d1c967 9684if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
d4158b5d
VS
9685 echo $ac_n "(cached) $ac_c" 1>&6
9686else
9687 cat > conftest.$ac_ext <<EOF
986ecc86 9688#line 9689 "configure"
d4158b5d 9689#include "confdefs.h"
21d1c967 9690#include <$ac_hdr>
d4158b5d 9691EOF
21d1c967 9692ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
986ecc86 9693{ (eval echo configure:9694: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
21d1c967
GD
9694ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9695if test -z "$ac_err"; then
9696 rm -rf conftest*
9697 eval "ac_cv_header_$ac_safe=yes"
d4158b5d 9698else
21d1c967 9699 echo "$ac_err" >&5
d4158b5d
VS
9700 echo "configure: failed program was:" >&5
9701 cat conftest.$ac_ext >&5
21d1c967
GD
9702 rm -rf conftest*
9703 eval "ac_cv_header_$ac_safe=no"
d4158b5d 9704fi
21d1c967
GD
9705rm -f conftest*
9706fi
9707if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9708 echo "$ac_t""yes" 1>&6
9709 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9710 cat >> confdefs.h <<EOF
9711#define $ac_tr_hdr 1
9712EOF
9713
9714else
9715 echo "$ac_t""no" 1>&6
d4158b5d 9716fi
21d1c967 9717done
f6bcfd97 9718
90dd450c 9719fi
90dd450c
VZ
9720
9721
21d1c967
GD
9722for ac_hdr in fnmatch.h
9723do
9724ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9725echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
986ecc86 9726echo "configure:9727: checking for $ac_hdr" >&5
21d1c967 9727if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
90dd450c 9728 echo $ac_n "(cached) $ac_c" 1>&6
90dd450c
VZ
9729else
9730 cat > conftest.$ac_ext <<EOF
986ecc86 9731#line 9732 "configure"
90dd450c 9732#include "confdefs.h"
21d1c967 9733#include <$ac_hdr>
90dd450c 9734EOF
21d1c967 9735ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
986ecc86 9736{ (eval echo configure:9737: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
21d1c967
GD
9737ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9738if test -z "$ac_err"; then
9739 rm -rf conftest*
9740 eval "ac_cv_header_$ac_safe=yes"
3a922bb4 9741else
21d1c967 9742 echo "$ac_err" >&5
3a922bb4
RL
9743 echo "configure: failed program was:" >&5
9744 cat conftest.$ac_ext >&5
21d1c967
GD
9745 rm -rf conftest*
9746 eval "ac_cv_header_$ac_safe=no"
3a922bb4 9747fi
21d1c967 9748rm -f conftest*
4f14bcd8 9749fi
21d1c967
GD
9750if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9751 echo "$ac_t""yes" 1>&6
9752 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9753 cat >> confdefs.h <<EOF
9754#define $ac_tr_hdr 1
90dd450c 9755EOF
21d1c967
GD
9756
9757else
9758 echo "$ac_t""no" 1>&6
9759fi
9760done
90dd450c
VZ
9761
9762
21d1c967
GD
9763if test "x$ac_cv_header_fnmatch_h" = "xyes"; then
9764 for ac_func in fnmatch
9765do
9766echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
986ecc86 9767echo "configure:9768: checking for $ac_func" >&5
21d1c967 9768if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
90dd450c 9769 echo $ac_n "(cached) $ac_c" 1>&6
90dd450c
VZ
9770else
9771 cat > conftest.$ac_ext <<EOF
986ecc86 9772#line 9773 "configure"
90dd450c 9773#include "confdefs.h"
21d1c967
GD
9774/* System header to define __stub macros and hopefully few prototypes,
9775 which can conflict with char $ac_func(); below. */
9776#include <assert.h>
9777/* Override any gcc2 internal prototype to avoid an error. */
9778/* We use char because int might match the return type of a gcc2
9779 builtin and then its argument prototype would still apply. */
9780char $ac_func();
9781
9782int main() {
9783
9784/* The GNU C library defines this for functions which it implements
9785 to always fail with ENOSYS. Some functions are actually named
9786 something starting with __ and the normal name is an alias. */
9787#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9788choke me
9789#else
9790$ac_func();
9791#endif
9792
9793; return 0; }
90dd450c 9794EOF
986ecc86 9795if { (eval echo configure:9796: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21d1c967
GD
9796 rm -rf conftest*
9797 eval "ac_cv_func_$ac_func=yes"
90dd450c
VZ
9798else
9799 echo "configure: failed program was:" >&5
9800 cat conftest.$ac_ext >&5
21d1c967
GD
9801 rm -rf conftest*
9802 eval "ac_cv_func_$ac_func=no"
90dd450c 9803fi
21d1c967 9804rm -f conftest*
4f14bcd8 9805fi
32832908 9806
21d1c967
GD
9807if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9808 echo "$ac_t""yes" 1>&6
9809 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9810 cat >> confdefs.h <<EOF
9811#define $ac_tr_func 1
90dd450c 9812EOF
21d1c967
GD
9813
9814else
9815 echo "$ac_t""no" 1>&6
9816fi
9817done
90dd450c 9818
21d1c967 9819fi
90dd450c 9820
21d1c967
GD
9821for ac_hdr in langinfo.h
9822do
9823ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9824echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
986ecc86 9825echo "configure:9826: checking for $ac_hdr" >&5
21d1c967 9826if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
90dd450c 9827 echo $ac_n "(cached) $ac_c" 1>&6
90dd450c
VZ
9828else
9829 cat > conftest.$ac_ext <<EOF
986ecc86 9830#line 9831 "configure"
90dd450c 9831#include "confdefs.h"
21d1c967 9832#include <$ac_hdr>
90dd450c 9833EOF
21d1c967 9834ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
986ecc86 9835{ (eval echo configure:9836: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
21d1c967
GD
9836ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9837if test -z "$ac_err"; then
9838 rm -rf conftest*
9839 eval "ac_cv_header_$ac_safe=yes"
90dd450c 9840else
21d1c967 9841 echo "$ac_err" >&5
90dd450c
VZ
9842 echo "configure: failed program was:" >&5
9843 cat conftest.$ac_ext >&5
21d1c967
GD
9844 rm -rf conftest*
9845 eval "ac_cv_header_$ac_safe=no"
90dd450c 9846fi
21d1c967 9847rm -f conftest*
4f14bcd8 9848fi
21d1c967
GD
9849if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9850 echo "$ac_t""yes" 1>&6
9851 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9852 cat >> confdefs.h <<EOF
9853#define $ac_tr_hdr 1
90dd450c 9854EOF
21d1c967
GD
9855
9856else
9857 echo "$ac_t""no" 1>&6
9858fi
9859done
3a922bb4 9860
7b7a7637 9861
21d1c967
GD
9862if test "$wxUSE_GUI" = "yes"; then
9863 if test "$wxUSE_UNIX" = "yes"; then
9864 for ac_hdr in X11/XKBlib.h
9865do
9866ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9867echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
986ecc86 9868echo "configure:9869: checking for $ac_hdr" >&5
21d1c967 9869if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
90dd450c 9870 echo $ac_n "(cached) $ac_c" 1>&6
90dd450c
VZ
9871else
9872 cat > conftest.$ac_ext <<EOF
986ecc86 9873#line 9874 "configure"
90dd450c 9874#include "confdefs.h"
21d1c967 9875#include <$ac_hdr>
90dd450c 9876EOF
21d1c967 9877ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
986ecc86 9878{ (eval echo configure:9879: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
21d1c967
GD
9879ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9880if test -z "$ac_err"; then
9881 rm -rf conftest*
9882 eval "ac_cv_header_$ac_safe=yes"
90dd450c 9883else
21d1c967 9884 echo "$ac_err" >&5
90dd450c
VZ
9885 echo "configure: failed program was:" >&5
9886 cat conftest.$ac_ext >&5
21d1c967
GD
9887 rm -rf conftest*
9888 eval "ac_cv_header_$ac_safe=no"
3a922bb4 9889fi
21d1c967 9890rm -f conftest*
90dd450c 9891fi
21d1c967
GD
9892if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9893 echo "$ac_t""yes" 1>&6
9894 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9895 cat >> confdefs.h <<EOF
9896#define $ac_tr_hdr 1
4f14bcd8 9897EOF
21d1c967
GD
9898
9899else
9900 echo "$ac_t""no" 1>&6
9901fi
9902done
10f2d63a 9903
21d1c967 9904 fi
90dd450c 9905fi
81809c07 9906
21d1c967
GD
9907
9908echo $ac_n "checking for working const""... $ac_c" 1>&6
986ecc86 9909echo "configure:9910: checking for working const" >&5
21d1c967 9910if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
8168de4c
VZ
9911 echo $ac_n "(cached) $ac_c" 1>&6
9912else
21d1c967 9913 cat > conftest.$ac_ext <<EOF
986ecc86 9914#line 9915 "configure"
4f14bcd8 9915#include "confdefs.h"
21d1c967 9916
4f14bcd8 9917int main() {
21d1c967
GD
9918
9919/* Ultrix mips cc rejects this. */
9920typedef int charset[2]; const charset x;
9921/* SunOS 4.1.1 cc rejects this. */
9922char const *const *ccp;
9923char **p;
9924/* NEC SVR4.0.2 mips cc rejects this. */
9925struct point {int x, y;};
9926static struct point const zero = {0,0};
9927/* AIX XL C 1.02.0.0 rejects this.
9928 It does not let you subtract one const X* pointer from another in an arm
9929 of an if-expression whose if-part is not a constant expression */
9930const char *g = "string";
9931ccp = &g + (g ? g-g : 0);
9932/* HPUX 7.0 cc rejects these. */
9933++ccp;
9934p = (char**) ccp;
9935ccp = (char const *const *) p;
9936{ /* SCO 3.2v4 cc rejects this. */
9937 char *t;
9938 char const *s = 0 ? (char *) 0 : (char const *) 0;
9939
9940 *t++ = 0;
9941}
9942{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
9943 int x[] = {25, 17};
9944 const int *foo = &x[0];
9945 ++foo;
9946}
9947{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
9948 typedef const int *iptr;
9949 iptr p = 0;
9950 ++p;
9951}
9952{ /* AIX XL C 1.02.0.0 rejects this saying
9953 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
9954 struct s { int j; const int *ap[3]; };
9955 struct s *b; b->j = 5;
9956}
9957{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
9958 const int foo = 10;
9959}
4f14bcd8 9960
4f14bcd8
GD
9961; return 0; }
9962EOF
986ecc86 9963if { (eval echo configure:9964: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4f14bcd8 9964 rm -rf conftest*
21d1c967 9965 ac_cv_c_const=yes
6f72b082 9966else
4f14bcd8
GD
9967 echo "configure: failed program was:" >&5
9968 cat conftest.$ac_ext >&5
9969 rm -rf conftest*
21d1c967 9970 ac_cv_c_const=no
4f14bcd8
GD
9971fi
9972rm -f conftest*
698dcdb6 9973fi
6f72b082 9974
21d1c967
GD
9975echo "$ac_t""$ac_cv_c_const" 1>&6
9976if test $ac_cv_c_const = no; then
9977 cat >> confdefs.h <<\EOF
9978#define const
90dd450c
VZ
9979EOF
9980
21d1c967 9981fi
90dd450c 9982
21d1c967 9983echo $ac_n "checking for inline""... $ac_c" 1>&6
986ecc86 9984echo "configure:9985: checking for inline" >&5
21d1c967 9985if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
4f14bcd8 9986 echo $ac_n "(cached) $ac_c" 1>&6
6f72b082 9987else
21d1c967
GD
9988 ac_cv_c_inline=no
9989for ac_kw in inline __inline__ __inline; do
9990 cat > conftest.$ac_ext <<EOF
986ecc86 9991#line 9992 "configure"
4f14bcd8 9992#include "confdefs.h"
90dd450c 9993
21d1c967
GD
9994int main() {
9995} $ac_kw foo() {
4f14bcd8
GD
9996; return 0; }
9997EOF
986ecc86 9998if { (eval echo configure:9999: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4f14bcd8 9999 rm -rf conftest*
21d1c967 10000 ac_cv_c_inline=$ac_kw; break
6f72b082 10001else
4f14bcd8
GD
10002 echo "configure: failed program was:" >&5
10003 cat conftest.$ac_ext >&5
698dcdb6 10004fi
4f14bcd8 10005rm -f conftest*
21d1c967 10006done
4f14bcd8 10007
21d1c967 10008fi
4f14bcd8 10009
21d1c967
GD
10010echo "$ac_t""$ac_cv_c_inline" 1>&6
10011case "$ac_cv_c_inline" in
10012 inline | yes) ;;
10013 no) cat >> confdefs.h <<\EOF
10014#define inline
90dd450c 10015EOF
21d1c967
GD
10016 ;;
10017 *) cat >> confdefs.h <<EOF
10018#define inline $ac_cv_c_inline
4f14bcd8 10019EOF
21d1c967
GD
10020 ;;
10021esac
4f14bcd8 10022
90dd450c 10023
21d1c967 10024echo $ac_n "checking size of char""... $ac_c" 1>&6
986ecc86 10025echo "configure:10026: checking size of char" >&5
21d1c967 10026if eval "test \"`echo '$''{'ac_cv_sizeof_char'+set}'`\" = set"; then
4f14bcd8
GD
10027 echo $ac_n "(cached) $ac_c" 1>&6
10028else
21d1c967
GD
10029 if test "$cross_compiling" = yes; then
10030 ac_cv_sizeof_char=1
4f14bcd8 10031else
90dd450c 10032 cat > conftest.$ac_ext <<EOF
986ecc86 10033#line 10034 "configure"
4f14bcd8 10034#include "confdefs.h"
21d1c967
GD
10035#include <stdio.h>
10036main()
10037{
10038 FILE *f=fopen("conftestval", "w");
10039 if (!f) exit(1);
10040 fprintf(f, "%d\n", sizeof(char));
10041 exit(0);
90dd450c 10042}
4f14bcd8 10043EOF
986ecc86 10044if { (eval echo configure:10045: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
90dd450c 10045then
21d1c967 10046 ac_cv_sizeof_char=`cat conftestval`
4f14bcd8
GD
10047else
10048 echo "configure: failed program was:" >&5
10049 cat conftest.$ac_ext >&5
90dd450c 10050 rm -fr conftest*
21d1c967 10051 ac_cv_sizeof_char=0
90dd450c
VZ
10052fi
10053rm -fr conftest*
4f14bcd8 10054fi
4f14bcd8
GD
10055
10056fi
21d1c967
GD
10057echo "$ac_t""$ac_cv_sizeof_char" 1>&6
10058cat >> confdefs.h <<EOF
10059#define SIZEOF_CHAR $ac_cv_sizeof_char
10060EOF
4f14bcd8 10061
21d1c967
GD
10062
10063echo $ac_n "checking size of short""... $ac_c" 1>&6
986ecc86 10064echo "configure:10065: checking size of short" >&5
21d1c967
GD
10065if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
10066 echo $ac_n "(cached) $ac_c" 1>&6
10067else
10068 if test "$cross_compiling" = yes; then
10069 ac_cv_sizeof_short=2
10070else
10071 cat > conftest.$ac_ext <<EOF
986ecc86 10072#line 10073 "configure"
21d1c967
GD
10073#include "confdefs.h"
10074#include <stdio.h>
10075main()
10076{
10077 FILE *f=fopen("conftestval", "w");
10078 if (!f) exit(1);
10079 fprintf(f, "%d\n", sizeof(short));
10080 exit(0);
10081}
90dd450c 10082EOF
986ecc86 10083if { (eval echo configure:10084: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
21d1c967
GD
10084then
10085 ac_cv_sizeof_short=`cat conftestval`
10086else
10087 echo "configure: failed program was:" >&5
10088 cat conftest.$ac_ext >&5
10089 rm -fr conftest*
10090 ac_cv_sizeof_short=0
10091fi
10092rm -fr conftest*
10093fi
4f14bcd8 10094
4f14bcd8 10095fi
21d1c967
GD
10096echo "$ac_t""$ac_cv_sizeof_short" 1>&6
10097cat >> confdefs.h <<EOF
10098#define SIZEOF_SHORT $ac_cv_sizeof_short
10099EOF
4f14bcd8
GD
10100
10101
21d1c967 10102echo $ac_n "checking size of void *""... $ac_c" 1>&6
986ecc86 10103echo "configure:10104: checking size of void *" >&5
21d1c967 10104if eval "test \"`echo '$''{'ac_cv_sizeof_void_p'+set}'`\" = set"; then
4f14bcd8
GD
10105 echo $ac_n "(cached) $ac_c" 1>&6
10106else
21d1c967
GD
10107 if test "$cross_compiling" = yes; then
10108 ac_cv_sizeof_void_p=4
10109else
4f14bcd8 10110 cat > conftest.$ac_ext <<EOF
986ecc86 10111#line 10112 "configure"
4f14bcd8 10112#include "confdefs.h"
21d1c967
GD
10113#include <stdio.h>
10114main()
10115{
10116 FILE *f=fopen("conftestval", "w");
10117 if (!f) exit(1);
10118 fprintf(f, "%d\n", sizeof(void *));
10119 exit(0);
10120}
4f14bcd8 10121EOF
986ecc86 10122if { (eval echo configure:10123: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
21d1c967
GD
10123then
10124 ac_cv_sizeof_void_p=`cat conftestval`
4f14bcd8 10125else
4f14bcd8
GD
10126 echo "configure: failed program was:" >&5
10127 cat conftest.$ac_ext >&5
21d1c967
GD
10128 rm -fr conftest*
10129 ac_cv_sizeof_void_p=0
4f14bcd8 10130fi
21d1c967 10131rm -fr conftest*
4f14bcd8 10132fi
4f14bcd8 10133
21d1c967
GD
10134fi
10135echo "$ac_t""$ac_cv_sizeof_void_p" 1>&6
10136cat >> confdefs.h <<EOF
10137#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
90dd450c
VZ
10138EOF
10139
90dd450c 10140
21d1c967 10141echo $ac_n "checking size of int""... $ac_c" 1>&6
986ecc86 10142echo "configure:10143: checking size of int" >&5
21d1c967 10143if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
4f14bcd8 10144 echo $ac_n "(cached) $ac_c" 1>&6
21d1c967
GD
10145else
10146 if test "$cross_compiling" = yes; then
10147 ac_cv_sizeof_int=4
4f14bcd8
GD
10148else
10149 cat > conftest.$ac_ext <<EOF
986ecc86 10150#line 10151 "configure"
4f14bcd8 10151#include "confdefs.h"
21d1c967
GD
10152#include <stdio.h>
10153main()
10154{
10155 FILE *f=fopen("conftestval", "w");
10156 if (!f) exit(1);
10157 fprintf(f, "%d\n", sizeof(int));
10158 exit(0);
10159}
4f14bcd8 10160EOF
986ecc86 10161if { (eval echo configure:10162: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
21d1c967
GD
10162then
10163 ac_cv_sizeof_int=`cat conftestval`
4f14bcd8 10164else
4f14bcd8
GD
10165 echo "configure: failed program was:" >&5
10166 cat conftest.$ac_ext >&5
21d1c967
GD
10167 rm -fr conftest*
10168 ac_cv_sizeof_int=0
4f14bcd8 10169fi
21d1c967 10170rm -fr conftest*
4f14bcd8 10171fi
4f14bcd8 10172
21d1c967
GD
10173fi
10174echo "$ac_t""$ac_cv_sizeof_int" 1>&6
10175cat >> confdefs.h <<EOF
10176#define SIZEOF_INT $ac_cv_sizeof_int
90dd450c
VZ
10177EOF
10178
90dd450c 10179
21d1c967 10180echo $ac_n "checking size of long""... $ac_c" 1>&6
986ecc86 10181echo "configure:10182: checking size of long" >&5
21d1c967 10182if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
4f14bcd8
GD
10183 echo $ac_n "(cached) $ac_c" 1>&6
10184else
21d1c967
GD
10185 if test "$cross_compiling" = yes; then
10186 ac_cv_sizeof_long=4
10187else
10188 cat > conftest.$ac_ext <<EOF
986ecc86 10189#line 10190 "configure"
90dd450c 10190#include "confdefs.h"
21d1c967
GD
10191#include <stdio.h>
10192main()
10193{
10194 FILE *f=fopen("conftestval", "w");
10195 if (!f) exit(1);
10196 fprintf(f, "%d\n", sizeof(long));
10197 exit(0);
10198}
4f14bcd8 10199EOF
986ecc86 10200if { (eval echo configure:10201: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
21d1c967
GD
10201then
10202 ac_cv_sizeof_long=`cat conftestval`
4f14bcd8
GD
10203else
10204 echo "configure: failed program was:" >&5
10205 cat conftest.$ac_ext >&5
21d1c967
GD
10206 rm -fr conftest*
10207 ac_cv_sizeof_long=0
4f14bcd8 10208fi
21d1c967 10209rm -fr conftest*
90dd450c 10210fi
4f14bcd8 10211
21d1c967
GD
10212fi
10213echo "$ac_t""$ac_cv_sizeof_long" 1>&6
10214cat >> confdefs.h <<EOF
10215#define SIZEOF_LONG $ac_cv_sizeof_long
90dd450c 10216EOF
4f14bcd8 10217
4f14bcd8 10218
4f14bcd8 10219
21d1c967
GD
10220case "${host}" in
10221 arm-*-linux* )
10222 echo $ac_n "checking size of long long""... $ac_c" 1>&6
986ecc86 10223echo "configure:10224: checking size of long long" >&5
21d1c967
GD
10224if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
10225 echo $ac_n "(cached) $ac_c" 1>&6
10226else
10227 if test "$cross_compiling" = yes; then
10228 ac_cv_sizeof_long_long=8
10229else
10230 cat > conftest.$ac_ext <<EOF
986ecc86 10231#line 10232 "configure"
21d1c967
GD
10232#include "confdefs.h"
10233#include <stdio.h>
10234main()
10235{
10236 FILE *f=fopen("conftestval", "w");
10237 if (!f) exit(1);
10238 fprintf(f, "%d\n", sizeof(long long));
10239 exit(0);
10240}
90dd450c 10241EOF
986ecc86 10242if { (eval echo configure:10243: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
21d1c967
GD
10243then
10244 ac_cv_sizeof_long_long=`cat conftestval`
90dd450c 10245else
21d1c967
GD
10246 echo "configure: failed program was:" >&5
10247 cat conftest.$ac_ext >&5
10248 rm -fr conftest*
10249 ac_cv_sizeof_long_long=0
10250fi
10251rm -fr conftest*
90dd450c 10252fi
4f14bcd8 10253
21d1c967
GD
10254fi
10255echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
10256cat >> confdefs.h <<EOF
10257#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
10258EOF
90dd450c 10259
21d1c967
GD
10260
10261 ;;
10262 * )
10263 echo $ac_n "checking size of long long""... $ac_c" 1>&6
986ecc86 10264echo "configure:10265: checking size of long long" >&5
21d1c967 10265if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
4f14bcd8
GD
10266 echo $ac_n "(cached) $ac_c" 1>&6
10267else
21d1c967
GD
10268 if test "$cross_compiling" = yes; then
10269 ac_cv_sizeof_long_long=0
10270else
10271 cat > conftest.$ac_ext <<EOF
986ecc86 10272#line 10273 "configure"
90dd450c 10273#include "confdefs.h"
21d1c967
GD
10274#include <stdio.h>
10275main()
10276{
10277 FILE *f=fopen("conftestval", "w");
10278 if (!f) exit(1);
10279 fprintf(f, "%d\n", sizeof(long long));
10280 exit(0);
10281}
90dd450c 10282EOF
986ecc86 10283if { (eval echo configure:10284: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
21d1c967
GD
10284then
10285 ac_cv_sizeof_long_long=`cat conftestval`
4f14bcd8 10286else
90dd450c
VZ
10287 echo "configure: failed program was:" >&5
10288 cat conftest.$ac_ext >&5
21d1c967
GD
10289 rm -fr conftest*
10290 ac_cv_sizeof_long_long=0
90dd450c 10291fi
21d1c967 10292rm -fr conftest*
4f14bcd8
GD
10293fi
10294
90dd450c 10295fi
21d1c967
GD
10296echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
10297cat >> confdefs.h <<EOF
10298#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
90dd450c 10299EOF
9e691f46 10300
9e691f46 10301
21d1c967
GD
10302esac
10303
10304echo $ac_n "checking size of wchar_t""... $ac_c" 1>&6
986ecc86 10305echo "configure:10306: checking size of wchar_t" >&5
21d1c967 10306if eval "test \"`echo '$''{'wx_cv_sizeof_wchar_t'+set}'`\" = set"; then
90dd450c 10307 echo $ac_n "(cached) $ac_c" 1>&6
21d1c967
GD
10308else
10309
10310 if test "$cross_compiling" = yes; then
10311 wx_cv_sizeof_wchar_t=4
10312
6f72b082 10313else
698dcdb6 10314 cat > conftest.$ac_ext <<EOF
986ecc86 10315#line 10316 "configure"
6f72b082 10316#include "confdefs.h"
21d1c967
GD
10317
10318 #ifdef HAVE_WCHAR_H
10319 # ifdef __CYGWIN__
10320 # include <stddef.h>
10321 # endif
10322 # include <wchar.h>
10323 #endif
10324 #ifdef HAVE_STDLIB_H
10325 # include <stdlib.h>
10326 #endif
10327 #include <stdio.h>
10328 int main()
10329 {
10330 FILE *f=fopen("conftestval", "w");
10331 if (!f) exit(1);
10332 fprintf(f, "%i", sizeof(wchar_t));
10333 exit(0);
10334 }
10335
698dcdb6 10336EOF
986ecc86 10337if { (eval echo configure:10338: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
21d1c967
GD
10338then
10339 wx_cv_sizeof_wchar_t=`cat conftestval`
6f72b082 10340else
698dcdb6
VZ
10341 echo "configure: failed program was:" >&5
10342 cat conftest.$ac_ext >&5
21d1c967
GD
10343 rm -fr conftest*
10344 wx_cv_sizeof_wchar_t=0
6f72b082 10345fi
21d1c967 10346rm -fr conftest*
6f72b082 10347fi
6f72b082 10348
90dd450c 10349
3f345b47
VZ
10350fi
10351
21d1c967 10352echo "$ac_t""$wx_cv_sizeof_wchar_t" 1>&6
3f345b47 10353
21d1c967
GD
10354cat >> confdefs.h <<EOF
10355#define SIZEOF_WCHAR_T $wx_cv_sizeof_wchar_t
10356EOF
90dd450c 10357
90dd450c 10358
21d1c967
GD
10359# Check whether --enable-largefile or --disable-largefile was given.
10360if test "${enable_largefile+set}" = set; then
10361 enableval="$enable_largefile"
10362 :
3f345b47
VZ
10363fi
10364
21d1c967
GD
10365if test "$enable_largefile" != no; then
10366 wx_largefile=no
10367
10368 echo $ac_n "checking for _FILE_OFFSET_BITS value needed for large files""... $ac_c" 1>&6
986ecc86 10369echo "configure:10370: checking for _FILE_OFFSET_BITS value needed for large files" >&5
21d1c967 10370if eval "test \"`echo '$''{'ac_cv_sys_file_offset_bits'+set}'`\" = set"; then
698dcdb6 10371 echo $ac_n "(cached) $ac_c" 1>&6
f6bcfd97 10372else
21d1c967
GD
10373
10374 cat > conftest.$ac_ext <<EOF
986ecc86 10375#line 10376 "configure"
90dd450c 10376#include "confdefs.h"
21d1c967
GD
10377#define _FILE_OFFSET_BITS 64
10378 #include <sys/types.h>
10379int main() {
10380typedef struct {
10381 unsigned int field: sizeof(off_t) == 8;
10382} wxlf;
10383
10384; return 0; }
90dd450c 10385EOF
986ecc86 10386if { (eval echo configure:10387: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
90dd450c 10387 rm -rf conftest*
21d1c967 10388 ac_cv_sys_file_offset_bits=64
f6bcfd97 10389else
90dd450c
VZ
10390 echo "configure: failed program was:" >&5
10391 cat conftest.$ac_ext >&5
10392 rm -rf conftest*
21d1c967 10393 ac_cv_sys_file_offset_bits=no
f6bcfd97 10394fi
90dd450c 10395rm -f conftest*
21d1c967
GD
10396
10397
90dd450c 10398fi
21d1c967
GD
10399
10400echo "$ac_t""$ac_cv_sys_file_offset_bits" 1>&6
10401
10402 if test "$ac_cv_sys_file_offset_bits" != no; then
10403 wx_largefile=yes
10404 cat >> confdefs.h <<EOF
10405#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
10406EOF
10407
10408 fi
10409
10410 if test "x$wx_largefile" != "xyes"; then
10411
10412 echo $ac_n "checking for _LARGE_FILES value needed for large files""... $ac_c" 1>&6
986ecc86 10413echo "configure:10414: checking for _LARGE_FILES value needed for large files" >&5
21d1c967 10414if eval "test \"`echo '$''{'ac_cv_sys_large_files'+set}'`\" = set"; then
90dd450c 10415 echo $ac_n "(cached) $ac_c" 1>&6
f6bcfd97 10416else
21d1c967
GD
10417
10418 cat > conftest.$ac_ext <<EOF
986ecc86 10419#line 10420 "configure"
f6bcfd97 10420#include "confdefs.h"
21d1c967
GD
10421#define _LARGE_FILES 1
10422 #include <sys/types.h>
90dd450c 10423int main() {
21d1c967
GD
10424typedef struct {
10425 unsigned int field: sizeof(off_t) == 8;
10426} wxlf;
10427
90dd450c 10428; return 0; }
698dcdb6 10429EOF
986ecc86 10430if { (eval echo configure:10431: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
90dd450c 10431 rm -rf conftest*
21d1c967 10432 ac_cv_sys_large_files=1
f6bcfd97 10433else
698dcdb6
VZ
10434 echo "configure: failed program was:" >&5
10435 cat conftest.$ac_ext >&5
90dd450c 10436 rm -rf conftest*
21d1c967 10437 ac_cv_sys_large_files=no
f6bcfd97 10438fi
90dd450c 10439rm -f conftest*
21d1c967
GD
10440
10441
f6bcfd97 10442fi
698dcdb6 10443
21d1c967 10444echo "$ac_t""$ac_cv_sys_large_files" 1>&6
3f345b47 10445
21d1c967
GD
10446 if test "$ac_cv_sys_large_files" != no; then
10447 wx_largefile=yes
10448 cat >> confdefs.h <<EOF
10449#define _LARGE_FILES $ac_cv_sys_large_files
10450EOF
90dd450c 10451
90dd450c
VZ
10452 fi
10453
90dd450c 10454 fi
90dd450c 10455
21d1c967 10456 echo $ac_n "checking if large file support is available""... $ac_c" 1>&6
986ecc86 10457echo "configure:10458: checking if large file support is available" >&5
21d1c967
GD
10458 if test "x$wx_largefile" = "xyes"; then
10459 cat >> confdefs.h <<\EOF
10460#define HAVE_LARGEFILE_SUPPORT 1
90dd450c
VZ
10461EOF
10462
90dd450c 10463 fi
21d1c967
GD
10464 echo "$ac_t""$wx_largefile" 1>&6
10465fi
90dd450c 10466
90dd450c 10467
21d1c967 10468echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
986ecc86 10469echo "configure:10470: checking whether byte ordering is bigendian" >&5
21d1c967 10470if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
90dd450c
VZ
10471 echo $ac_n "(cached) $ac_c" 1>&6
10472else
21d1c967
GD
10473 ac_cv_c_bigendian=unknown
10474# See if sys/param.h defines the BYTE_ORDER macro.
10475cat > conftest.$ac_ext <<EOF
986ecc86 10476#line 10477 "configure"
90dd450c 10477#include "confdefs.h"
21d1c967
GD
10478#include <sys/types.h>
10479#include <sys/param.h>
10480int main() {
10481
10482#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
10483 bogus endian macros
10484#endif
10485; return 0; }
90dd450c 10486EOF
986ecc86 10487if { (eval echo configure:10488: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
90dd450c 10488 rm -rf conftest*
21d1c967 10489 # It does; now see whether it defined to BIG_ENDIAN or not.
90dd450c 10490cat > conftest.$ac_ext <<EOF
986ecc86 10491#line 10492 "configure"
90dd450c 10492#include "confdefs.h"
21d1c967
GD
10493#include <sys/types.h>
10494#include <sys/param.h>
3f345b47 10495int main() {
21d1c967
GD
10496
10497#if BYTE_ORDER != BIG_ENDIAN
10498 not big endian
10499#endif
3f345b47
VZ
10500; return 0; }
10501EOF
986ecc86 10502if { (eval echo configure:10503: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3f345b47 10503 rm -rf conftest*
21d1c967 10504 ac_cv_c_bigendian=yes
3f345b47
VZ
10505else
10506 echo "configure: failed program was:" >&5
10507 cat conftest.$ac_ext >&5
10508 rm -rf conftest*
21d1c967 10509 ac_cv_c_bigendian=no
3f345b47
VZ
10510fi
10511rm -f conftest*
3f345b47 10512else
21d1c967
GD
10513 echo "configure: failed program was:" >&5
10514 cat conftest.$ac_ext >&5
3f345b47 10515fi
21d1c967
GD
10516rm -f conftest*
10517if test $ac_cv_c_bigendian = unknown; then
10518if test "$cross_compiling" = yes; then
10519 ac_cv_c_bigendian=unknown
10f2d63a 10520else
90dd450c 10521 cat > conftest.$ac_ext <<EOF
986ecc86 10522#line 10523 "configure"
90dd450c 10523#include "confdefs.h"
21d1c967
GD
10524main () {
10525 /* Are we little or big endian? From Harbison&Steele. */
10526 union
10527 {
10528 long l;
10529 char c[sizeof (long)];
10530 } u;
10531 u.l = 1;
10532 exit (u.c[sizeof (long) - 1] == 1);
10533}
3f345b47 10534EOF
986ecc86 10535if { (eval echo configure:10536: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
21d1c967
GD
10536then
10537 ac_cv_c_bigendian=no
3f345b47
VZ
10538else
10539 echo "configure: failed program was:" >&5
10540 cat conftest.$ac_ext >&5
21d1c967
GD
10541 rm -fr conftest*
10542 ac_cv_c_bigendian=yes
3f345b47 10543fi
21d1c967 10544rm -fr conftest*
8168de4c 10545fi
703e0a69 10546
21d1c967
GD
10547fi
10548fi
698dcdb6 10549
21d1c967
GD
10550echo "$ac_t""$ac_cv_c_bigendian" 1>&6
10551if test $ac_cv_c_bigendian = unknown; then
10552 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
10553fi
10554if test $ac_cv_c_bigendian = yes; then
10555 cat >> confdefs.h <<\EOF
10556#define WORDS_BIGENDIAN 1
10557EOF
10558
10559fi
10560
10561
10562echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
986ecc86 10563echo "configure:10564: checking how to run the C++ preprocessor" >&5
21d1c967
GD
10564if test -z "$CXXCPP"; then
10565if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
698dcdb6 10566 echo $ac_n "(cached) $ac_c" 1>&6
7ec2881a 10567else
21d1c967
GD
10568 ac_ext=C
10569# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10570ac_cpp='$CXXCPP $CPPFLAGS'
10571ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10572ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10573cross_compiling=$ac_cv_prog_cxx_cross
10574 CXXCPP="${CXX-g++} -E"
10575 cat > conftest.$ac_ext <<EOF
986ecc86 10576#line 10577 "configure"
7ec2881a 10577#include "confdefs.h"
21d1c967 10578#include <stdlib.h>
698dcdb6 10579EOF
21d1c967 10580ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
986ecc86 10581{ (eval echo configure:10582: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
21d1c967
GD
10582ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10583if test -z "$ac_err"; then
10584 :
698dcdb6 10585else
21d1c967 10586 echo "$ac_err" >&5
698dcdb6
VZ
10587 echo "configure: failed program was:" >&5
10588 cat conftest.$ac_ext >&5
10589 rm -rf conftest*
21d1c967 10590 CXXCPP=/lib/cpp
698dcdb6
VZ
10591fi
10592rm -f conftest*
21d1c967
GD
10593 ac_cv_prog_CXXCPP="$CXXCPP"
10594ac_ext=C
10595# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10596ac_cpp='$CXXCPP $CPPFLAGS'
10597ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10598ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10599cross_compiling=$ac_cv_prog_cxx_cross
7ec2881a 10600fi
90dd450c 10601fi
21d1c967
GD
10602CXXCPP="$ac_cv_prog_CXXCPP"
10603echo "$ac_t""$CXXCPP" 1>&6
1e6feb95 10604
1725144d 10605
21d1c967 10606 if test "$cross_compiling" = "yes"; then
90dd450c 10607 cat >> confdefs.h <<\EOF
21d1c967 10608#define wxUSE_IOSTREAMH 1
90dd450c 10609EOF
ab9b9eab 10610
21d1c967
GD
10611 else
10612
10613 ac_ext=C
10614# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10615ac_cpp='$CXXCPP $CPPFLAGS'
10616ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10617ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10618cross_compiling=$ac_cv_prog_cxx_cross
10619
ba337fe7 10620
21d1c967
GD
10621 for ac_hdr in iostream
10622do
10623ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10624echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
986ecc86 10625echo "configure:10626: checking for $ac_hdr" >&5
90dd450c 10626if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
698dcdb6 10627 echo $ac_n "(cached) $ac_c" 1>&6
ab9b9eab 10628else
90dd450c 10629 cat > conftest.$ac_ext <<EOF
986ecc86 10630#line 10631 "configure"
ab9b9eab 10631#include "confdefs.h"
21d1c967 10632#include <$ac_hdr>
698dcdb6
VZ
10633EOF
10634ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
986ecc86 10635{ (eval echo configure:10636: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
10636ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10637if test -z "$ac_err"; then
10638 rm -rf conftest*
90dd450c 10639 eval "ac_cv_header_$ac_safe=yes"
ab9b9eab 10640else
698dcdb6
VZ
10641 echo "$ac_err" >&5
10642 echo "configure: failed program was:" >&5
ab9b9eab 10643 cat conftest.$ac_ext >&5
698dcdb6 10644 rm -rf conftest*
90dd450c 10645 eval "ac_cv_header_$ac_safe=no"
ab9b9eab 10646fi
698dcdb6 10647rm -f conftest*
90dd450c
VZ
10648fi
10649if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10650 echo "$ac_t""yes" 1>&6
21d1c967
GD
10651 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10652 cat >> confdefs.h <<EOF
10653#define $ac_tr_hdr 1
698dcdb6 10654EOF
21d1c967 10655
ab9b9eab 10656else
90dd450c
VZ
10657 echo "$ac_t""no" 1>&6
10658fi
21d1c967 10659done
10f2d63a 10660
10f2d63a 10661
21d1c967
GD
10662 if test "$ac_cv_header_iostream" = "yes" ; then
10663 :
10664 else
10665 cat >> confdefs.h <<\EOF
10666#define wxUSE_IOSTREAMH 1
10667EOF
788deba1 10668
90dd450c 10669 fi
ab9b9eab 10670
21d1c967
GD
10671 ac_ext=c
10672# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10673ac_cpp='$CPP $CPPFLAGS'
10674ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10675ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10676cross_compiling=$ac_cv_prog_cc_cross
ab9b9eab 10677
21d1c967 10678 fi
ab9b9eab 10679
21d1c967
GD
10680
10681
10682 echo $ac_n "checking if C++ compiler supports bool""... $ac_c" 1>&6
986ecc86 10683echo "configure:10684: checking if C++ compiler supports bool" >&5
21d1c967 10684if eval "test \"`echo '$''{'wx_cv_cpp_bool'+set}'`\" = set"; then
698dcdb6 10685 echo $ac_n "(cached) $ac_c" 1>&6
ab9b9eab 10686else
21d1c967
GD
10687
10688
10689 ac_ext=C
10690# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10691ac_cpp='$CXXCPP $CPPFLAGS'
10692ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10693ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10694cross_compiling=$ac_cv_prog_cxx_cross
10695
10696
10697 cat > conftest.$ac_ext <<EOF
986ecc86 10698#line 10699 "configure"
ab9b9eab 10699#include "confdefs.h"
21d1c967
GD
10700
10701
10702int main() {
10703
10704 bool b = true;
10705
10706 return 0;
10707
10708; return 0; }
698dcdb6 10709EOF
986ecc86 10710if { (eval echo configure:10711: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6 10711 rm -rf conftest*
21d1c967
GD
10712
10713 wx_cv_cpp_bool=yes
10714
698dcdb6
VZ
10715else
10716 echo "configure: failed program was:" >&5
10717 cat conftest.$ac_ext >&5
10718 rm -rf conftest*
21d1c967
GD
10719
10720 wx_cv_cpp_bool=no
10721
10722
698dcdb6
VZ
10723fi
10724rm -f conftest*
21d1c967
GD
10725
10726 ac_ext=c
10727# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10728ac_cpp='$CPP $CPPFLAGS'
10729ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10730ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10731cross_compiling=$ac_cv_prog_cc_cross
10732
10733
698dcdb6 10734fi
21d1c967
GD
10735
10736echo "$ac_t""$wx_cv_cpp_bool" 1>&6
10737
10738 if test "$wx_cv_cpp_bool" = "yes"; then
10739 cat >> confdefs.h <<\EOF
10740#define HAVE_BOOL 1
90dd450c 10741EOF
ab9b9eab 10742
21d1c967
GD
10743 fi
10744
10745
10746
986ecc86
VZ
10747 echo $ac_n "checking if C++ compiler supports the explicit keyword""... $ac_c" 1>&6
10748echo "configure:10749: checking if C++ compiler supports the explicit keyword" >&5
10749if eval "test \"`echo '$''{'wx_cv_explicit'+set}'`\" = set"; then
10750 echo $ac_n "(cached) $ac_c" 1>&6
10751else
10752
10753
10754 ac_ext=C
10755# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10756ac_cpp='$CXXCPP $CPPFLAGS'
10757ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10758ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10759cross_compiling=$ac_cv_prog_cxx_cross
10760
10761
10762 cat > conftest.$ac_ext <<EOF
10763#line 10764 "configure"
10764#include "confdefs.h"
10765
10766 class Foo { public: explicit Foo(int) {} };
10767
10768int main() {
10769
10770 return 0;
10771
10772; return 0; }
10773EOF
10774if { (eval echo configure:10775: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10775 rm -rf conftest*
10776
10777 cat > conftest.$ac_ext <<EOF
10778#line 10779 "configure"
10779#include "confdefs.h"
10780
10781 class Foo { public: explicit Foo(int) {} };
10782 static void TakeFoo(const Foo& foo) { }
10783
10784int main() {
10785
10786 TakeFoo(17);
10787 return 0;
10788
10789; return 0; }
10790EOF
10791if { (eval echo configure:10792: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10792 rm -rf conftest*
10793 wx_cv_explicit=no
10794else
10795 echo "configure: failed program was:" >&5
10796 cat conftest.$ac_ext >&5
10797 rm -rf conftest*
10798 wx_cv_explicit=yes
10799
10800fi
10801rm -f conftest*
10802
10803else
10804 echo "configure: failed program was:" >&5
10805 cat conftest.$ac_ext >&5
10806 rm -rf conftest*
10807 wx_cv_explicit=no
10808
10809fi
10810rm -f conftest*
10811
10812 ac_ext=c
10813# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10814ac_cpp='$CPP $CPPFLAGS'
10815ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10816ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10817cross_compiling=$ac_cv_prog_cc_cross
10818
10819
10820fi
10821
10822echo "$ac_t""$wx_cv_explicit" 1>&6
10823
10824 if test "$wx_cv_explicit" = "yes"; then
10825 cat >> confdefs.h <<\EOF
10826#define HAVE_EXPLICIT 1
10827EOF
10828
10829 fi
10830
10831
10832
21d1c967
GD
10833SEARCH_INCLUDE="\
10834 /usr/local/include \
10835 \
10836 /usr/Motif-1.2/include \
10837 /usr/Motif-2.1/include \
10838 \
10839 /usr/include/Motif1.2 \
10840 /opt/xpm/include/X11 \
10841 /opt/GBxpm/include/ \
10842 /opt/GBxpm/X11/include/ \
10843 \
10844 /usr/Motif1.2/include \
10845 /usr/dt/include \
10846 /usr/openwin/include \
10847 \
10848 /usr/include/Xm \
10849 \
10850 /usr/X11R6/include \
10851 /usr/X11R6.4/include \
10852 /usr/X11R5/include \
10853 /usr/X11R4/include \
10854 \
10855 /usr/include/X11R6 \
10856 /usr/include/X11R5 \
10857 /usr/include/X11R4 \
10858 \
10859 /usr/local/X11R6/include \
10860 /usr/local/X11R5/include \
10861 /usr/local/X11R4/include \
10862 \
10863 /usr/local/include/X11R6 \
10864 /usr/local/include/X11R5 \
10865 /usr/local/include/X11R4 \
10866 \
10867 /usr/X11/include \
10868 /usr/include/X11 \
10869 /usr/local/X11/include \
10870 /usr/local/include/X11 \
10871 \
10872 /usr/X386/include \
10873 /usr/x386/include \
10874 /usr/XFree86/include/X11 \
10875 \
10876 X:/XFree86/include \
10877 X:/XFree86/include/X11 \
10878 \
10879 /usr/include/gtk \
10880 /usr/local/include/gtk \
10881 /usr/include/glib \
10882 /usr/local/include/glib \
10883 \
10884 /usr/include/qt \
10885 /usr/local/include/qt \
10886 \
10887 /usr/include/windows \
10888 /usr/include/wine \
10889 /usr/local/include/wine \
10890 \
10891 /usr/unsupported/include \
10892 /usr/athena/include \
10893 /usr/local/x11r5/include \
10894 /usr/lpp/Xamples/include \
10895 \
10896 /usr/openwin/share/include \
10897 \
10898 /usr/include"
10899
10900SEARCH_LIB="`echo "$SEARCH_INCLUDE" | sed s/include/lib/g` "
10901
10902
10903cat > confcache <<\EOF
10904# This file is a shell script that caches the results of configure
10905# tests run on this system so they can be shared between configure
10906# scripts and configure runs. It is not useful on other systems.
10907# If it contains results you don't want to keep, you may remove or edit it.
10908#
10909# By default, configure uses ./config.cache as the cache file,
10910# creating it if it does not exist already. You can give configure
10911# the --cache-file=FILE option to use a different cache file; that is
10912# what configure does when it calls configure scripts in
10913# subdirectories, so they share the cache.
10914# Giving --cache-file=/dev/null disables caching, for debugging configure.
10915# config.status only pays attention to the cache file if you give it the
10916# --recheck option to rerun configure.
10917#
698dcdb6 10918EOF
21d1c967
GD
10919# The following way of writing the cache mishandles newlines in values,
10920# but we know of no workaround that is simple, portable, and efficient.
10921# So, don't put newlines in cache variables' values.
10922# Ultrix sh set writes to stderr and can't be redirected directly,
10923# and sets the high bit in the cache file unless we assign to the vars.
10924(set) 2>&1 |
10925 case `(ac_space=' '; set | grep ac_space) 2>&1` in
10926 *ac_space=\ *)
10927 # `set' does not quote correctly, so add quotes (double-quote substitution
10928 # turns \\\\ into \\, and sed turns \\ into \).
10929 sed -n \
10930 -e "s/'/'\\\\''/g" \
10931 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
10932 ;;
10933 *)
10934 # `set' quotes correctly as required by POSIX, so do not add quotes.
10935 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
10936 ;;
10937 esac >> confcache
10938if cmp -s $cache_file confcache; then
90dd450c 10939 :
698dcdb6 10940else
21d1c967
GD
10941 if test -w $cache_file; then
10942 echo "updating cache $cache_file"
10943 cat confcache > $cache_file
10944 else
10945 echo "not updating unwritable cache $cache_file"
10946 fi
ab9b9eab 10947fi
21d1c967 10948rm -f confcache
ab9b9eab 10949
ab9b9eab 10950
21d1c967
GD
10951if test "$USE_LINUX" = 1; then
10952 echo $ac_n "checking for glibc 2.1 or later""... $ac_c" 1>&6
986ecc86 10953echo "configure:10954: checking for glibc 2.1 or later" >&5
21d1c967 10954if eval "test \"`echo '$''{'wx_cv_lib_glibc21'+set}'`\" = set"; then
698dcdb6
VZ
10955 echo $ac_n "(cached) $ac_c" 1>&6
10956else
90dd450c 10957
21d1c967 10958 cat > conftest.$ac_ext <<EOF
986ecc86 10959#line 10960 "configure"
ab9b9eab 10960#include "confdefs.h"
21d1c967 10961#include <features.h>
698dcdb6 10962int main() {
ab9b9eab 10963
21d1c967
GD
10964 #if (__GLIBC__ < 2) || (__GLIBC_MINOR__ < 1)
10965 #error not glibc2.1
10966 #endif
10967
698dcdb6
VZ
10968; return 0; }
10969EOF
986ecc86 10970if { (eval echo configure:10971: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6 10971 rm -rf conftest*
90dd450c 10972
21d1c967
GD
10973 wx_cv_lib_glibc21=yes
10974
698dcdb6
VZ
10975else
10976 echo "configure: failed program was:" >&5
10977 cat conftest.$ac_ext >&5
10978 rm -rf conftest*
90dd450c 10979
21d1c967
GD
10980 wx_cv_lib_glibc21=no
10981
10982
698dcdb6
VZ
10983fi
10984rm -f conftest*
90dd450c 10985
698dcdb6
VZ
10986fi
10987
21d1c967
GD
10988echo "$ac_t""$wx_cv_lib_glibc21" 1>&6
10989 if test "$wx_cv_lib_glibc21" = "yes"; then
10990 cat >> confdefs.h <<\EOF
10991#define wxHAVE_GLIBC2 1
10992EOF
1e487827 10993
90dd450c 10994 fi
ab9b9eab
VZ
10995fi
10996
ab9b9eab 10997
ab9b9eab 10998
21d1c967
GD
10999REGEX_INCLUDE=
11000if test "$wxUSE_REGEX" != "no"; then
11001 cat >> confdefs.h <<\EOF
11002#define wxUSE_REGEX 1
11003EOF
698dcdb6 11004
ab9b9eab 11005
21d1c967
GD
11006 if test "$wxUSE_REGEX" = "sys" -o "$wxUSE_REGEX" = "yes" ; then
11007 ac_safe=`echo "regex.h" | sed 'y%./+-%__p_%'`
11008echo $ac_n "checking for regex.h""... $ac_c" 1>&6
986ecc86 11009echo "configure:11010: checking for regex.h" >&5
21d1c967 11010if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
698dcdb6 11011 echo $ac_n "(cached) $ac_c" 1>&6
ab9b9eab 11012else
21d1c967 11013 cat > conftest.$ac_ext <<EOF
986ecc86 11014#line 11015 "configure"
21d1c967
GD
11015#include "confdefs.h"
11016#include <regex.h>
11017EOF
11018ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
986ecc86 11019{ (eval echo configure:11020: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
21d1c967
GD
11020ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11021if test -z "$ac_err"; then
11022 rm -rf conftest*
11023 eval "ac_cv_header_$ac_safe=yes"
698dcdb6 11024else
21d1c967
GD
11025 echo "$ac_err" >&5
11026 echo "configure: failed program was:" >&5
11027 cat conftest.$ac_ext >&5
11028 rm -rf conftest*
11029 eval "ac_cv_header_$ac_safe=no"
11030fi
11031rm -f conftest*
698dcdb6 11032fi
21d1c967
GD
11033if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11034 echo "$ac_t""yes" 1>&6
11035 for ac_func in regcomp
11036do
11037echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
986ecc86 11038echo "configure:11039: checking for $ac_func" >&5
21d1c967
GD
11039if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11040 echo $ac_n "(cached) $ac_c" 1>&6
11041else
11042 cat > conftest.$ac_ext <<EOF
986ecc86 11043#line 11044 "configure"
21d1c967
GD
11044#include "confdefs.h"
11045/* System header to define __stub macros and hopefully few prototypes,
11046 which can conflict with char $ac_func(); below. */
11047#include <assert.h>
11048/* Override any gcc2 internal prototype to avoid an error. */
11049/* We use char because int might match the return type of a gcc2
11050 builtin and then its argument prototype would still apply. */
11051char $ac_func();
698dcdb6 11052
21d1c967 11053int main() {
90dd450c 11054
21d1c967
GD
11055/* The GNU C library defines this for functions which it implements
11056 to always fail with ENOSYS. Some functions are actually named
11057 something starting with __ and the normal name is an alias. */
11058#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11059choke me
11060#else
11061$ac_func();
11062#endif
90dd450c 11063
21d1c967
GD
11064; return 0; }
11065EOF
986ecc86 11066if { (eval echo configure:11067: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21d1c967
GD
11067 rm -rf conftest*
11068 eval "ac_cv_func_$ac_func=yes"
11069else
11070 echo "configure: failed program was:" >&5
11071 cat conftest.$ac_ext >&5
11072 rm -rf conftest*
11073 eval "ac_cv_func_$ac_func=no"
11074fi
11075rm -f conftest*
11076fi
90dd450c 11077
21d1c967
GD
11078if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11079 echo "$ac_t""yes" 1>&6
11080 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11081 cat >> confdefs.h <<EOF
11082#define $ac_tr_func 1
11083EOF
11084
90dd450c 11085else
21d1c967 11086 echo "$ac_t""no" 1>&6
698dcdb6 11087fi
21d1c967
GD
11088done
11089
698dcdb6
VZ
11090else
11091 echo "$ac_t""no" 1>&6
ab9b9eab
VZ
11092fi
11093
90dd450c 11094
21d1c967
GD
11095 if test "x$ac_cv_func_regcomp" != "xyes"; then
11096 if test "$wxUSE_REGEX" = "sys" ; then
11097 { echo "configure: error: system regex library not found! Use --with-regex to use built-in version" 1>&2; exit 1; }
11098 else
11099 echo "configure: warning: system regex library not found, will use built-in instead" 1>&2
11100 wxUSE_REGEX=builtin
11101 fi
11102 else
11103 wxUSE_REGEX=sys
11104 fi
ab9b9eab 11105 fi
90dd450c 11106
21d1c967
GD
11107 if test "$wxUSE_REGEX" = "builtin" ; then
11108 REGEX_INCLUDE="-I\${top_srcdir}/src/regex"
90dd450c 11109 fi
21d1c967 11110fi
90dd450c 11111
90dd450c 11112
21d1c967
GD
11113ZLIB_INCLUDE=
11114ZLIB_LINK=
11115if test "$wxUSE_ZLIB" != "no" ; then
11116 cat >> confdefs.h <<\EOF
11117#define wxUSE_ZLIB 1
11118EOF
11119
11120
11121 if test "$wxUSE_ZLIB" = "sys" -o "$wxUSE_ZLIB" = "yes" ; then
11122 ac_safe=`echo "zlib.h" | sed 'y%./+-%__p_%'`
11123echo $ac_n "checking for zlib.h""... $ac_c" 1>&6
986ecc86 11124echo "configure:11125: checking for zlib.h" >&5
21d1c967
GD
11125if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11126 echo $ac_n "(cached) $ac_c" 1>&6
ab9b9eab 11127else
698dcdb6 11128 cat > conftest.$ac_ext <<EOF
986ecc86 11129#line 11130 "configure"
ab9b9eab 11130#include "confdefs.h"
21d1c967 11131#include <zlib.h>
698dcdb6 11132EOF
21d1c967 11133ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
986ecc86 11134{ (eval echo configure:11135: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
21d1c967
GD
11135ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11136if test -z "$ac_err"; then
11137 rm -rf conftest*
11138 eval "ac_cv_header_$ac_safe=yes"
698dcdb6 11139else
21d1c967 11140 echo "$ac_err" >&5
698dcdb6
VZ
11141 echo "configure: failed program was:" >&5
11142 cat conftest.$ac_ext >&5
21d1c967
GD
11143 rm -rf conftest*
11144 eval "ac_cv_header_$ac_safe=no"
698dcdb6 11145fi
21d1c967 11146rm -f conftest*
ab9b9eab 11147fi
21d1c967
GD
11148if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11149 echo "$ac_t""yes" 1>&6
11150 echo $ac_n "checking for deflate in -lz""... $ac_c" 1>&6
986ecc86 11151echo "configure:11152: checking for deflate in -lz" >&5
21d1c967
GD
11152ac_lib_var=`echo z'_'deflate | sed 'y%./+-%__p_%'`
11153if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11154 echo $ac_n "(cached) $ac_c" 1>&6
11155else
11156 ac_save_LIBS="$LIBS"
11157LIBS="-lz $LIBS"
11158cat > conftest.$ac_ext <<EOF
986ecc86 11159#line 11160 "configure"
ab9b9eab 11160#include "confdefs.h"
21d1c967
GD
11161/* Override any gcc2 internal prototype to avoid an error. */
11162/* We use char because int might match the return type of a gcc2
11163 builtin and then its argument prototype would still apply. */
11164char deflate();
ab9b9eab 11165
90dd450c 11166int main() {
21d1c967 11167deflate()
698dcdb6
VZ
11168; return 0; }
11169EOF
986ecc86 11170if { (eval echo configure:11171: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6 11171 rm -rf conftest*
21d1c967 11172 eval "ac_cv_lib_$ac_lib_var=yes"
698dcdb6
VZ
11173else
11174 echo "configure: failed program was:" >&5
11175 cat conftest.$ac_ext >&5
11176 rm -rf conftest*
21d1c967 11177 eval "ac_cv_lib_$ac_lib_var=no"
698dcdb6
VZ
11178fi
11179rm -f conftest*
21d1c967 11180LIBS="$ac_save_LIBS"
ab9b9eab 11181
21d1c967
GD
11182fi
11183if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11184 echo "$ac_t""yes" 1>&6
11185 ZLIB_LINK=" -lz"
ab9b9eab 11186else
21d1c967 11187 echo "$ac_t""no" 1>&6
90dd450c 11188fi
698dcdb6 11189
698dcdb6 11190else
21d1c967 11191 echo "$ac_t""no" 1>&6
698dcdb6 11192fi
698dcdb6 11193
21d1c967
GD
11194
11195 if test "x$ZLIB_LINK" = "x" ; then
11196 if test "$wxUSE_ZLIB" = "sys" ; then
11197 { echo "configure: error: system zlib compression library not found! Use --with-zlib=builtin to use built-in version" 1>&2; exit 1; }
11198 else
11199 echo "configure: warning: system zlib compression library not found, will use built-in instead" 1>&2
11200 wxUSE_ZLIB=builtin
11201 fi
11202 else
11203 wxUSE_ZLIB=sys
11204 fi
11205 fi
11206
11207 if test "$wxUSE_ZLIB" = "builtin" ; then
11208 ZLIB_INCLUDE="-I\${top_srcdir}/src/zlib"
11209 fi
ab9b9eab
VZ
11210fi
11211
ab9b9eab 11212
21d1c967
GD
11213PNG_INCLUDE=
11214PNG_LINK=
11215if test "$wxUSE_LIBPNG" != "no" ; then
11216 cat >> confdefs.h <<\EOF
11217#define wxUSE_LIBPNG 1
11218EOF
90dd450c 11219
21d1c967
GD
11220
11221 if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBPNG" = "builtin" ; then
11222 echo "configure: warning: wxMGL doesn't work with builtin png library, will use MGL one instead" 1>&2
11223 wxUSE_LIBPNG=sys
11224 fi
90dd450c 11225
21d1c967
GD
11226 if test "$wxUSE_MGL" != 1 -a "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then
11227 echo "configure: warning: system png library doesn't work without system zlib, will use built-in instead" 1>&2
11228 wxUSE_LIBPNG=builtin
11229 fi
11230
11231 if test "$wxUSE_MGL" != 1 ; then
11232 if test "$wxUSE_LIBPNG" = "sys" -o "$wxUSE_LIBPNG" = "yes" ; then
11233 ac_safe=`echo "png.h" | sed 'y%./+-%__p_%'`
11234echo $ac_n "checking for png.h""... $ac_c" 1>&6
986ecc86 11235echo "configure:11236: checking for png.h" >&5
21d1c967 11236if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
90dd450c
VZ
11237 echo $ac_n "(cached) $ac_c" 1>&6
11238else
21d1c967 11239 cat > conftest.$ac_ext <<EOF
986ecc86 11240#line 11241 "configure"
21d1c967
GD
11241#include "confdefs.h"
11242#include <png.h>
11243EOF
11244ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
986ecc86 11245{ (eval echo configure:11246: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
21d1c967
GD
11246ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11247if test -z "$ac_err"; then
11248 rm -rf conftest*
11249 eval "ac_cv_header_$ac_safe=yes"
90dd450c 11250else
21d1c967 11251 echo "$ac_err" >&5
90dd450c
VZ
11252 echo "configure: failed program was:" >&5
11253 cat conftest.$ac_ext >&5
21d1c967
GD
11254 rm -rf conftest*
11255 eval "ac_cv_header_$ac_safe=no"
90dd450c 11256fi
21d1c967 11257rm -f conftest*
90dd450c 11258fi
21d1c967
GD
11259if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11260 echo "$ac_t""yes" 1>&6
11261 echo $ac_n "checking for png_check_sig in -lpng""... $ac_c" 1>&6
986ecc86 11262echo "configure:11263: checking for png_check_sig in -lpng" >&5
21d1c967
GD
11263ac_lib_var=`echo png'_'png_check_sig | sed 'y%./+-%__p_%'`
11264if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11265 echo $ac_n "(cached) $ac_c" 1>&6
11266else
11267 ac_save_LIBS="$LIBS"
11268LIBS="-lpng -lz -lm $LIBS"
11269cat > conftest.$ac_ext <<EOF
986ecc86 11270#line 11271 "configure"
90dd450c 11271#include "confdefs.h"
21d1c967
GD
11272/* Override any gcc2 internal prototype to avoid an error. */
11273/* We use char because int might match the return type of a gcc2
11274 builtin and then its argument prototype would still apply. */
11275char png_check_sig();
90dd450c
VZ
11276
11277int main() {
21d1c967 11278png_check_sig()
90dd450c
VZ
11279; return 0; }
11280EOF
986ecc86 11281if { (eval echo configure:11282: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
90dd450c 11282 rm -rf conftest*
21d1c967 11283 eval "ac_cv_lib_$ac_lib_var=yes"
90dd450c
VZ
11284else
11285 echo "configure: failed program was:" >&5
11286 cat conftest.$ac_ext >&5
11287 rm -rf conftest*
21d1c967 11288 eval "ac_cv_lib_$ac_lib_var=no"
90dd450c
VZ
11289fi
11290rm -f conftest*
21d1c967 11291LIBS="$ac_save_LIBS"
90dd450c 11292
90dd450c 11293fi
21d1c967
GD
11294if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11295 echo "$ac_t""yes" 1>&6
11296 PNG_LINK=" -lpng"
90dd450c 11297else
21d1c967 11298 echo "$ac_t""no" 1>&6
90dd450c
VZ
11299fi
11300
21d1c967 11301
90dd450c 11302else
21d1c967 11303 echo "$ac_t""no" 1>&6
90dd450c
VZ
11304fi
11305
11306
21d1c967
GD
11307 if test "x$PNG_LINK" = "x" ; then
11308 if test "$wxUSE_LIBPNG" = "sys" ; then
11309 { echo "configure: error: system png library not found! Use --with-libpng=builtin to use built-in version" 1>&2; exit 1; }
11310 else
11311 echo "configure: warning: system png library not found, will use built-in instead" 1>&2
11312 wxUSE_LIBPNG=builtin
11313 fi
11314 else
11315 wxUSE_LIBPNG=yes
11316 fi
11317 fi
11318 fi
90dd450c 11319
21d1c967
GD
11320 if test "$wxUSE_LIBPNG" = "builtin" ; then
11321 PNG_INCLUDE="-I\${top_srcdir}/src/png"
11322 fi
90dd450c 11323
21d1c967 11324 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png"
90dd450c
VZ
11325fi
11326
90dd450c 11327
21d1c967
GD
11328JPEG_INCLUDE=
11329JPEG_LINK=
11330if test "$wxUSE_LIBJPEG" != "no" ; then
11331 cat >> confdefs.h <<\EOF
11332#define wxUSE_LIBJPEG 1
11333EOF
90dd450c 11334
90dd450c 11335
21d1c967
GD
11336 if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBJPEG" = "builtin" ; then
11337 echo "configure: warning: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" 1>&2
11338 wxUSE_LIBJPEG=sys
11339 fi
90dd450c 11340
21d1c967
GD
11341 if test "$wxUSE_MGL" != 1 ; then
11342 if test "$wxUSE_LIBJPEG" = "sys" -o "$wxUSE_LIBJPEG" = "yes" ; then
11343 echo $ac_n "checking for jpeglib.h""... $ac_c" 1>&6
986ecc86 11344echo "configure:11345: checking for jpeglib.h" >&5
21d1c967
GD
11345 if eval "test \"`echo '$''{'ac_cv_header_jpeglib_h'+set}'`\" = set"; then
11346 echo $ac_n "(cached) $ac_c" 1>&6
11347else
11348 cat > conftest.$ac_ext <<EOF
986ecc86 11349#line 11350 "configure"
21d1c967 11350#include "confdefs.h"
90dd450c 11351
21d1c967
GD
11352 #undef HAVE_STDLIB_H
11353 #include <stdio.h>
11354 #include <jpeglib.h>
11355
11356int main() {
90dd450c 11357
21d1c967
GD
11358
11359; return 0; }
90dd450c 11360EOF
986ecc86 11361if { (eval echo configure:11362: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21d1c967
GD
11362 rm -rf conftest*
11363 ac_cv_header_jpeglib_h=yes
90dd450c
VZ
11364else
11365 echo "configure: failed program was:" >&5
11366 cat conftest.$ac_ext >&5
21d1c967
GD
11367 rm -rf conftest*
11368 ac_cv_header_jpeglib_h=no
11369
90dd450c 11370fi
21d1c967
GD
11371rm -f conftest*
11372
90dd450c
VZ
11373fi
11374
21d1c967 11375 echo "$ac_t""$ac_cv_header_jpeglib_h" 1>&6
90dd450c 11376
21d1c967
GD
11377 if test "$ac_cv_header_jpeglib_h" = "yes"; then
11378 echo $ac_n "checking for jpeg_read_header in -ljpeg""... $ac_c" 1>&6
986ecc86 11379echo "configure:11380: checking for jpeg_read_header in -ljpeg" >&5
21d1c967
GD
11380ac_lib_var=`echo jpeg'_'jpeg_read_header | sed 'y%./+-%__p_%'`
11381if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11382 echo $ac_n "(cached) $ac_c" 1>&6
11383else
11384 ac_save_LIBS="$LIBS"
11385LIBS="-ljpeg $LIBS"
11386cat > conftest.$ac_ext <<EOF
986ecc86 11387#line 11388 "configure"
21d1c967
GD
11388#include "confdefs.h"
11389/* Override any gcc2 internal prototype to avoid an error. */
11390/* We use char because int might match the return type of a gcc2
11391 builtin and then its argument prototype would still apply. */
11392char jpeg_read_header();
90dd450c
VZ
11393
11394int main() {
21d1c967 11395jpeg_read_header()
90dd450c
VZ
11396; return 0; }
11397EOF
986ecc86 11398if { (eval echo configure:11399: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
90dd450c 11399 rm -rf conftest*
21d1c967 11400 eval "ac_cv_lib_$ac_lib_var=yes"
90dd450c
VZ
11401else
11402 echo "configure: failed program was:" >&5
11403 cat conftest.$ac_ext >&5
11404 rm -rf conftest*
21d1c967 11405 eval "ac_cv_lib_$ac_lib_var=no"
90dd450c
VZ
11406fi
11407rm -f conftest*
21d1c967 11408LIBS="$ac_save_LIBS"
90dd450c 11409
21d1c967
GD
11410fi
11411if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11412 echo "$ac_t""yes" 1>&6
11413 JPEG_LINK=" -ljpeg"
11414else
11415 echo "$ac_t""no" 1>&6
90dd450c
VZ
11416fi
11417
21d1c967 11418 fi
90dd450c 11419
21d1c967
GD
11420 if test "x$JPEG_LINK" = "x" ; then
11421 if test "$wxUSE_LIBJPEG" = "sys" ; then
11422 { echo "configure: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" 1>&2; exit 1; }
11423 else
11424 echo "configure: warning: system jpeg library not found, will use built-in instead" 1>&2
11425 wxUSE_LIBJPEG=builtin
11426 fi
11427 else
11428 wxUSE_LIBJPEG=sys
11429 fi
11430 fi
11431 fi
90dd450c 11432
21d1c967
GD
11433 if test "$wxUSE_LIBJPEG" = "builtin" ; then
11434 JPEG_INCLUDE="-I\${top_srcdir}/src/jpeg"
11435 fi
11436fi
90dd450c 11437
90dd450c 11438
21d1c967
GD
11439TIFF_INCLUDE=
11440TIFF_LINK=
11441if test "$wxUSE_LIBTIFF" != "no" ; then
11442 cat >> confdefs.h <<\EOF
11443#define wxUSE_LIBTIFF 1
11444EOF
11445
11446
11447 if test "$wxUSE_LIBTIFF" = "sys" -o "$wxUSE_LIBTIFF" = "yes" ; then
11448 ac_safe=`echo "tiffio.h" | sed 'y%./+-%__p_%'`
11449echo $ac_n "checking for tiffio.h""... $ac_c" 1>&6
986ecc86 11450echo "configure:11451: checking for tiffio.h" >&5
21d1c967
GD
11451if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11452 echo $ac_n "(cached) $ac_c" 1>&6
11453else
11454 cat > conftest.$ac_ext <<EOF
986ecc86 11455#line 11456 "configure"
21d1c967
GD
11456#include "confdefs.h"
11457#include <tiffio.h>
11458EOF
11459ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
986ecc86 11460{ (eval echo configure:11461: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
21d1c967
GD
11461ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11462if test -z "$ac_err"; then
11463 rm -rf conftest*
11464 eval "ac_cv_header_$ac_safe=yes"
11465else
11466 echo "$ac_err" >&5
11467 echo "configure: failed program was:" >&5
11468 cat conftest.$ac_ext >&5
11469 rm -rf conftest*
11470 eval "ac_cv_header_$ac_safe=no"
11471fi
11472rm -f conftest*
11473fi
11474if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11475 echo "$ac_t""yes" 1>&6
11476 echo $ac_n "checking for TIFFError in -ltiff""... $ac_c" 1>&6
986ecc86 11477echo "configure:11478: checking for TIFFError in -ltiff" >&5
21d1c967 11478ac_lib_var=`echo tiff'_'TIFFError | sed 'y%./+-%__p_%'`
698dcdb6
VZ
11479if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11480 echo $ac_n "(cached) $ac_c" 1>&6
11481else
11482 ac_save_LIBS="$LIBS"
21d1c967 11483LIBS="-ltiff -lm $LIBS"
698dcdb6 11484cat > conftest.$ac_ext <<EOF
986ecc86 11485#line 11486 "configure"
ab9b9eab
VZ
11486#include "confdefs.h"
11487/* Override any gcc2 internal prototype to avoid an error. */
11488/* We use char because int might match the return type of a gcc2
698dcdb6 11489 builtin and then its argument prototype would still apply. */
21d1c967 11490char TIFFError();
698dcdb6
VZ
11491
11492int main() {
21d1c967 11493TIFFError()
698dcdb6
VZ
11494; return 0; }
11495EOF
986ecc86 11496if { (eval echo configure:11497: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
11497 rm -rf conftest*
11498 eval "ac_cv_lib_$ac_lib_var=yes"
11499else
11500 echo "configure: failed program was:" >&5
11501 cat conftest.$ac_ext >&5
11502 rm -rf conftest*
11503 eval "ac_cv_lib_$ac_lib_var=no"
11504fi
11505rm -f conftest*
11506LIBS="$ac_save_LIBS"
11507
11508fi
11509if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11510 echo "$ac_t""yes" 1>&6
21d1c967 11511 TIFF_LINK=" -ltiff"
698dcdb6
VZ
11512else
11513 echo "$ac_t""no" 1>&6
ab9b9eab
VZ
11514fi
11515
21d1c967
GD
11516
11517else
11518 echo "$ac_t""no" 1>&6
11519fi
cd6d6d5b 11520
c79a329d 11521
21d1c967
GD
11522 if test "x$TIFF_LINK" = "x" ; then
11523 if test "$wxUSE_LIBTIFF" = "sys" ; then
11524 { echo "configure: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" 1>&2; exit 1; }
90dd450c 11525 else
21d1c967
GD
11526 echo "configure: warning: system tiff library not found, will use built-in instead" 1>&2
11527 wxUSE_LIBTIFF=builtin
d8356fa3 11528 fi
d8356fa3 11529 else
21d1c967 11530 wxUSE_LIBTIFF=sys
d8356fa3 11531 fi
21d1c967 11532 fi
d8356fa3 11533
21d1c967
GD
11534 if test "$wxUSE_LIBTIFF" = "builtin" ; then
11535 TIFF_INCLUDE="-I\${top_srcdir}/src/tiff"
1e6feb95 11536 fi
21d1c967 11537fi
10f2d63a 11538
90dd450c 11539
21d1c967 11540AFMINSTALL=
90dd450c 11541
21d1c967
GD
11542TOOLKIT=
11543TOOLKIT_INCLUDE=
11544WIDGET_SET=
11545
11546if test "$USE_WIN32" = 1 ; then
11547 for ac_hdr in w32api.h
11548do
11549ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11550echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
986ecc86 11551echo "configure:11552: checking for $ac_hdr" >&5
21d1c967 11552if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
f79bd02d
JS
11553 echo $ac_n "(cached) $ac_c" 1>&6
11554else
21d1c967 11555 cat > conftest.$ac_ext <<EOF
986ecc86 11556#line 11557 "configure"
f79bd02d 11557#include "confdefs.h"
21d1c967 11558#include <$ac_hdr>
f79bd02d
JS
11559EOF
11560ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
986ecc86 11561{ (eval echo configure:11562: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
f79bd02d
JS
11562ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11563if test -z "$ac_err"; then
11564 rm -rf conftest*
21d1c967 11565 eval "ac_cv_header_$ac_safe=yes"
f79bd02d
JS
11566else
11567 echo "$ac_err" >&5
11568 echo "configure: failed program was:" >&5
11569 cat conftest.$ac_ext >&5
11570 rm -rf conftest*
21d1c967 11571 eval "ac_cv_header_$ac_safe=no"
f79bd02d
JS
11572fi
11573rm -f conftest*
21d1c967
GD
11574fi
11575if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11576 echo "$ac_t""yes" 1>&6
11577 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11578 cat >> confdefs.h <<EOF
11579#define $ac_tr_hdr 1
11580EOF
11581
11582else
11583 echo "$ac_t""no" 1>&6
11584fi
11585done
f79bd02d 11586
21d1c967
GD
11587 ac_safe=`echo "windows.h" | sed 'y%./+-%__p_%'`
11588echo $ac_n "checking for windows.h""... $ac_c" 1>&6
986ecc86 11589echo "configure:11590: checking for windows.h" >&5
21d1c967
GD
11590if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11591 echo $ac_n "(cached) $ac_c" 1>&6
11592else
11593 cat > conftest.$ac_ext <<EOF
986ecc86 11594#line 11595 "configure"
90dd450c 11595#include "confdefs.h"
21d1c967 11596#include <windows.h>
f79bd02d 11597EOF
21d1c967 11598ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
986ecc86 11599{ (eval echo configure:11600: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
21d1c967
GD
11600ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11601if test -z "$ac_err"; then
90dd450c 11602 rm -rf conftest*
21d1c967 11603 eval "ac_cv_header_$ac_safe=yes"
90dd450c 11604else
21d1c967 11605 echo "$ac_err" >&5
90dd450c
VZ
11606 echo "configure: failed program was:" >&5
11607 cat conftest.$ac_ext >&5
11608 rm -rf conftest*
21d1c967 11609 eval "ac_cv_header_$ac_safe=no"
90dd450c
VZ
11610fi
11611rm -f conftest*
90dd450c 11612fi
21d1c967
GD
11613if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11614 echo "$ac_t""yes" 1>&6
11615 :
90dd450c 11616else
21d1c967
GD
11617 echo "$ac_t""no" 1>&6
11618
11619 { echo "configure: error: please set CFLAGS to contain the location of windows.h" 1>&2; exit 1; }
11620
90dd450c 11621fi
f79bd02d 11622
f79bd02d 11623
21d1c967 11624 echo $ac_n "checking if w32api has good enough MSIE support""... $ac_c" 1>&6
986ecc86 11625echo "configure:11626: checking if w32api has good enough MSIE support" >&5
21d1c967
GD
11626if eval "test \"`echo '$''{'wx_cv_w32api_win32_ie'+set}'`\" = set"; then
11627 echo $ac_n "(cached) $ac_c" 1>&6
f79bd02d 11628else
21d1c967 11629
f79bd02d 11630 cat > conftest.$ac_ext <<EOF
986ecc86 11631#line 11632 "configure"
f79bd02d 11632#include "confdefs.h"
21d1c967 11633#include <w32api.h>
f79bd02d
JS
11634int main() {
11635
21d1c967
GD
11636 #define wxCHECK_W32API_VERSION( major, minor ) \
11637 ( defined( __W32API_MAJOR_VERSION ) && defined( __W32API_MINOR_VERSION ) \
11638 && ( ( __W32API_MAJOR_VERSION > (major) ) \
11639 || ( __W32API_MAJOR_VERSION == (major) && __W32API_MINOR_VERSION >= (minor))))
11640
11641 #if !wxCHECK_W32API_VERSION(1,1)
11642 #error You need w32api 1.1 or newer
11643 #endif
11644
f79bd02d
JS
11645; return 0; }
11646EOF
986ecc86 11647if { (eval echo configure:11648: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
f79bd02d 11648 rm -rf conftest*
21d1c967
GD
11649
11650 wx_cv_w32api_win32_ie=yes
11651
f79bd02d
JS
11652else
11653 echo "configure: failed program was:" >&5
11654 cat conftest.$ac_ext >&5
11655 rm -rf conftest*
21d1c967
GD
11656
11657 wx_cv_w32api_win32_ie=no
11658
f79bd02d
JS
11659fi
11660rm -f conftest*
21d1c967
GD
11661
11662fi
f79bd02d 11663
21d1c967
GD
11664echo "$ac_t""$wx_cv_w32api_win32_ie" 1>&6
11665 if test "$wx_cv_w32api_win32_ie" = "yes" ; then
11666 CPPFLAGS="$CPPFLAGS -D_WIN32_IE=0x400"
11667 fi
f79bd02d 11668
21d1c967
GD
11669 LIBS="$LIBS -lwinspool -lwinmm -lshell32 -lcomctl32 -lctl3d32 -ladvapi32 -lwsock32"
11670
11671 case "${host}" in
11672 *-*-cygwin* )
11673 LIBS="$LIBS -lkernel32 -luser32 -lgdi32 -lcomdlg32"
11674 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WIN95__"
f79bd02d 11675 esac
f79bd02d 11676
21d1c967
GD
11677 if test "$wxUSE_ODBC" = "yes" ; then
11678 LIBS=" -lodbc32 -lole32 -loleaut32 $LIBS"
11679 fi
f79bd02d 11680
21d1c967
GD
11681 RESFLAGS="--include-dir \$(top_srcdir)/include --include-dir \$(top_srcdir)/\$(program_dir) --define __WIN32__ --define __WIN95__ --define __GNUWIN32__"
11682 RESPROGRAMOBJ="\$(PROGRAM)_resources.o"
f79bd02d 11683fi
f79bd02d 11684
21d1c967
GD
11685if test "$wxUSE_GUI" = "yes"; then
11686 USE_GUI=1
f79bd02d 11687
21d1c967 11688 GUI_TK_LIBRARY=
f79bd02d 11689
21d1c967
GD
11690 WXGTK12=
11691 WXGTK127=
11692 WXGTK20=
f79bd02d 11693
21d1c967
GD
11694 if test "$wxUSE_MSW" = 1 ; then
11695 TOOLKIT=MSW
11696 GUIDIST=MSW_DIST
f79bd02d 11697
21d1c967
GD
11698 case "${host}" in
11699 *-*-mingw32* )
11700 LDFLAGS="$LDFLAGS -Wl,--subsystem,windows -mwindows"
11701 esac
f79bd02d
JS
11702 fi
11703
21d1c967
GD
11704 if test "$wxUSE_GTK" = 1; then
11705 echo $ac_n "checking for GTK+ version""... $ac_c" 1>&6
986ecc86 11706echo "configure:11707: checking for GTK+ version" >&5
21d1c967
GD
11707
11708 gtk_version_cached=1
11709 if eval "test \"`echo '$''{'wx_cv_lib_gtk'+set}'`\" = set"; then
f79bd02d
JS
11710 echo $ac_n "(cached) $ac_c" 1>&6
11711else
21d1c967
GD
11712
11713 gtk_version_cached=0
11714 echo "$ac_t""" 1>&6
f79bd02d 11715
21d1c967
GD
11716 GTK_MODULES=
11717 if test "$wxUSE_THREADS" = "yes"; then
11718 GTK_MODULES=gthread
11719 fi
f79bd02d 11720
21d1c967
GD
11721 wx_cv_lib_gtk=
11722 if test "x$wxUSE_GTK2" = "xyes"; then
11723 # Check whether --enable-gtktest or --disable-gtktest was given.
11724if test "${enable_gtktest+set}" = set; then
11725 enableval="$enable_gtktest"
f79bd02d
JS
11726 :
11727else
21d1c967 11728 enable_gtktest=yes
f79bd02d
JS
11729fi
11730
f79bd02d 11731
21d1c967
GD
11732 pkg_config_args=gtk+-2.0
11733 for module in . $GTK_MODULES
11734 do
11735 case "$module" in
11736 gthread)
11737 pkg_config_args="$pkg_config_args gthread-2.0"
11738 ;;
11739 esac
11740 done
11741
11742 no_gtk=""
f79bd02d 11743
21d1c967
GD
11744 # Extract the first word of "pkg-config", so it can be a program name with args.
11745set dummy pkg-config; ac_word=$2
11746echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
986ecc86 11747echo "configure:11748: checking for $ac_word" >&5
21d1c967
GD
11748if eval "test \"`echo '$''{'ac_cv_path_PKG_CONFIG'+set}'`\" = set"; then
11749 echo $ac_n "(cached) $ac_c" 1>&6
11750else
11751 case "$PKG_CONFIG" in
11752 /*)
11753 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11754 ;;
11755 ?:/*)
11756 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a dos path.
11757 ;;
11758 *)
11759 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
11760 ac_dummy="$PATH"
11761 for ac_dir in $ac_dummy; do
11762 test -z "$ac_dir" && ac_dir=.
11763 if test -f $ac_dir/$ac_word; then
11764 ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word"
11765 break
11766 fi
11767 done
11768 IFS="$ac_save_ifs"
11769 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11770 ;;
11771esac
f79bd02d 11772fi
21d1c967
GD
11773PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
11774if test -n "$PKG_CONFIG"; then
11775 echo "$ac_t""$PKG_CONFIG" 1>&6
f79bd02d
JS
11776else
11777 echo "$ac_t""no" 1>&6
11778fi
11779
f79bd02d 11780
21d1c967
GD
11781 if test x$PKG_CONFIG != xno ; then
11782 if pkg-config --atleast-pkgconfig-version 0.7 ; then
11783 :
11784 else
11785 echo *** pkg-config too old; version 0.7 or better required.
11786 no_gtk=yes
11787 PKG_CONFIG=no
11788 fi
11789 else
11790 no_gtk=yes
11791 fi
f79bd02d 11792
21d1c967
GD
11793 min_gtk_version=2.0.0
11794 echo $ac_n "checking for GTK+ - version >= $min_gtk_version""... $ac_c" 1>&6
986ecc86 11795echo "configure:11796: checking for GTK+ - version >= $min_gtk_version" >&5
f79bd02d 11796
21d1c967
GD
11797 if test x$PKG_CONFIG != xno ; then
11798 ## don't try to run the test against uninstalled libtool libs
11799 if $PKG_CONFIG --uninstalled $pkg_config_args; then
11800 echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH"
11801 enable_gtktest=no
11802 fi
f79bd02d 11803
21d1c967
GD
11804 if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then
11805 :
11806 else
11807 no_gtk=yes
11808 fi
11809 fi
f79bd02d 11810
21d1c967
GD
11811 if test x"$no_gtk" = x ; then
11812 GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags`
11813 GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs`
11814 gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
11815 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
11816 gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
11817 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
11818 gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
11819 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
11820 if test "x$enable_gtktest" = "xyes" ; then
11821 ac_save_CFLAGS="$CFLAGS"
11822 ac_save_LIBS="$LIBS"
11823 CFLAGS="$CFLAGS $GTK_CFLAGS"
11824 LIBS="$GTK_LIBS $LIBS"
11825 rm -f conf.gtktest
11826 if test "$cross_compiling" = yes; then
11827 echo $ac_n "cross compiling; assumed OK... $ac_c"
f79bd02d 11828else
21d1c967 11829 cat > conftest.$ac_ext <<EOF
986ecc86 11830#line 11831 "configure"
f79bd02d 11831#include "confdefs.h"
f79bd02d 11832
21d1c967
GD
11833#include <gtk/gtk.h>
11834#include <stdio.h>
11835#include <stdlib.h>
f79bd02d 11836
21d1c967
GD
11837int
11838main ()
11839{
11840 int major, minor, micro;
11841 char *tmp_version;
f79bd02d 11842
21d1c967 11843 system ("touch conf.gtktest");
f79bd02d 11844
21d1c967
GD
11845 /* HP/UX 9 (%@#!) writes to sscanf strings */
11846 tmp_version = g_strdup("$min_gtk_version");
11847 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
11848 printf("%s, bad version string\n", "$min_gtk_version");
11849 exit(1);
11850 }
f79bd02d 11851
21d1c967
GD
11852 if ((gtk_major_version != $gtk_config_major_version) ||
11853 (gtk_minor_version != $gtk_config_minor_version) ||
11854 (gtk_micro_version != $gtk_config_micro_version))
11855 {
11856 printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
11857 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
11858 gtk_major_version, gtk_minor_version, gtk_micro_version);
11859 printf ("*** was found! If pkg-config was correct, then it is best\n");
11860 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
11861 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
11862 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
11863 printf("*** required on your system.\n");
11864 printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
11865 printf("*** to point to the correct configuration files\n");
11866 }
11867 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
11868 (gtk_minor_version != GTK_MINOR_VERSION) ||
11869 (gtk_micro_version != GTK_MICRO_VERSION))
11870 {
11871 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
11872 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
11873 printf("*** library (version %d.%d.%d)\n",
11874 gtk_major_version, gtk_minor_version, gtk_micro_version);
11875 }
11876 else
11877 {
11878 if ((gtk_major_version > major) ||
11879 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
11880 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
11881 {
11882 return 0;
11883 }
11884 else
11885 {
11886 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
11887 gtk_major_version, gtk_minor_version, gtk_micro_version);
11888 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
11889 major, minor, micro);
11890 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
11891 printf("***\n");
11892 printf("*** If you have already installed a sufficiently new version, this error\n");
11893 printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
11894 printf("*** being found. The easiest way to fix this is to remove the old version\n");
11895 printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n");
11896 printf("*** correct copy of pkg-config. (In this case, you will have to\n");
11897 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
11898 printf("*** so that the correct libraries are found at run-time))\n");
11899 }
11900 }
11901 return 1;
11902}
f79bd02d 11903
f79bd02d 11904EOF
986ecc86 11905if { (eval echo configure:11906: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
21d1c967
GD
11906then
11907 :
f79bd02d
JS
11908else
11909 echo "configure: failed program was:" >&5
11910 cat conftest.$ac_ext >&5
21d1c967
GD
11911 rm -fr conftest*
11912 no_gtk=yes
f79bd02d 11913fi
21d1c967 11914rm -fr conftest*
f79bd02d
JS
11915fi
11916
21d1c967
GD
11917 CFLAGS="$ac_save_CFLAGS"
11918 LIBS="$ac_save_LIBS"
11919 fi
11920 fi
11921 if test "x$no_gtk" = x ; then
11922 echo "$ac_t""yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" 1>&6
11923 wx_cv_lib_gtk=2.0
11924 else
11925 echo "$ac_t""no" 1>&6
11926 if test "$PKG_CONFIG" = "no" ; then
11927 echo "*** A new enough version of pkg-config was not found."
11928 echo "*** See http://pkgconfig.sourceforge.net"
11929 else
11930 if test -f conf.gtktest ; then
11931 :
11932 else
11933 echo "*** Could not run GTK+ test program, checking why..."
11934 CFLAGS="$CFLAGS $GTK_CFLAGS"
11935 LIBS="$LIBS $GTK_LIBS"
11936 cat > conftest.$ac_ext <<EOF
986ecc86 11937#line 11938 "configure"
f79bd02d 11938#include "confdefs.h"
21d1c967
GD
11939
11940#include <gtk/gtk.h>
11941#include <stdio.h>
f79bd02d
JS
11942
11943int main() {
21d1c967 11944 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
f79bd02d
JS
11945; return 0; }
11946EOF
986ecc86 11947if { (eval echo configure:11948: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
f79bd02d 11948 rm -rf conftest*
21d1c967
GD
11949 echo "*** The test program compiled, but did not run. This usually means"
11950 echo "*** that the run-time linker is not finding GTK+ or finding the wrong"
11951 echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your"
11952 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
11953 echo "*** to the installed location Also, make sure you have run ldconfig if that"
11954 echo "*** is required on your system"
11955 echo "***"
11956 echo "*** If you have an old version installed, it is best to remove it, although"
11957 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
f79bd02d
JS
11958else
11959 echo "configure: failed program was:" >&5
11960 cat conftest.$ac_ext >&5
11961 rm -rf conftest*
21d1c967
GD
11962 echo "*** The test program failed to compile or link. See the file config.log for the"
11963 echo "*** exact error that occured. This usually means GTK+ was incorrectly installed"
11964 echo "*** or that you have moved GTK+ since it was installed. In the latter case, you"
11965 echo "*** may want to edit the pkg-config script: $PKG_CONFIG"
f79bd02d
JS
11966fi
11967rm -f conftest*
21d1c967
GD
11968 CFLAGS="$ac_save_CFLAGS"
11969 LIBS="$ac_save_LIBS"
11970 fi
11971 fi
11972 GTK_CFLAGS=""
11973 GTK_LIBS=""
11974 :
11975 fi
11976
11977
11978 rm -f conf.gtktest
f79bd02d 11979
21d1c967 11980 fi
f79bd02d 11981
21d1c967
GD
11982 if test -z "$wx_cv_lib_gtk"; then
11983 # Check whether --with-gtk-prefix or --without-gtk-prefix was given.
11984if test "${with_gtk_prefix+set}" = set; then
11985 withval="$with_gtk_prefix"
11986 gtk_config_prefix="$withval"
11987else
11988 gtk_config_prefix=""
11989fi
f79bd02d 11990
21d1c967
GD
11991# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
11992if test "${with_gtk_exec_prefix+set}" = set; then
11993 withval="$with_gtk_exec_prefix"
11994 gtk_config_exec_prefix="$withval"
11995else
11996 gtk_config_exec_prefix=""
11997fi
11998
11999# Check whether --enable-gtktest or --disable-gtktest was given.
12000if test "${enable_gtktest+set}" = set; then
12001 enableval="$enable_gtktest"
12002 :
12003else
12004 enable_gtktest=yes
12005fi
12006
12007
12008 for module in . $GTK_MODULES
12009 do
12010 case "$module" in
12011 gthread)
12012 gtk_config_args="$gtk_config_args gthread"
12013 ;;
12014 esac
12015 done
12016
12017 if test x$gtk_config_exec_prefix != x ; then
12018 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
12019 if test x${GTK_CONFIG+set} != xset ; then
12020 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
12021 fi
12022 fi
12023 if test x$gtk_config_prefix != x ; then
12024 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
12025 if test x${GTK_CONFIG+set} != xset ; then
12026 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
12027 fi
12028 fi
12029
12030 # Extract the first word of "gtk-config", so it can be a program name with args.
12031set dummy gtk-config; ac_word=$2
12032echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
986ecc86 12033echo "configure:12034: checking for $ac_word" >&5
21d1c967 12034if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
f79bd02d 12035 echo $ac_n "(cached) $ac_c" 1>&6
21d1c967
GD
12036else
12037 case "$GTK_CONFIG" in
12038 /*)
12039 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
12040 ;;
12041 ?:/*)
12042 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path.
12043 ;;
12044 *)
12045 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
12046 ac_dummy="$PATH"
12047 for ac_dir in $ac_dummy; do
12048 test -z "$ac_dir" && ac_dir=.
12049 if test -f $ac_dir/$ac_word; then
12050 ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
12051 break
12052 fi
12053 done
12054 IFS="$ac_save_ifs"
12055 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
12056 ;;
12057esac
12058fi
12059GTK_CONFIG="$ac_cv_path_GTK_CONFIG"
12060if test -n "$GTK_CONFIG"; then
12061 echo "$ac_t""$GTK_CONFIG" 1>&6
12062else
12063 echo "$ac_t""no" 1>&6
12064fi
12065
12066 min_gtk_version=1.2.7
12067 echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
986ecc86 12068echo "configure:12069: checking for GTK - version >= $min_gtk_version" >&5
21d1c967
GD
12069 no_gtk=""
12070 if test "$GTK_CONFIG" = "no" ; then
12071 no_gtk=yes
12072 else
12073 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
12074 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
12075 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
12076 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
12077 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
12078 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
12079 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
12080 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
12081 if test "x$enable_gtktest" = "xyes" ; then
12082 ac_save_CFLAGS="$CFLAGS"
12083 ac_save_LIBS="$LIBS"
12084 CFLAGS="$CFLAGS $GTK_CFLAGS"
12085 LIBS="$GTK_LIBS $LIBS"
12086 rm -f conf.gtktest
12087 if test "$cross_compiling" = yes; then
12088 echo $ac_n "cross compiling; assumed OK... $ac_c"
f79bd02d 12089else
90dd450c 12090 cat > conftest.$ac_ext <<EOF
986ecc86 12091#line 12092 "configure"
f79bd02d
JS
12092#include "confdefs.h"
12093
21d1c967
GD
12094#include <gtk/gtk.h>
12095#include <stdio.h>
12096#include <stdlib.h>
f79bd02d 12097
21d1c967
GD
12098int
12099main ()
12100{
12101 int major, minor, micro;
12102 char *tmp_version;
12103
12104 system ("touch conf.gtktest");
12105
12106 /* HP/UX 9 (%@#!) writes to sscanf strings */
12107 tmp_version = g_strdup("$min_gtk_version");
12108 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
12109 printf("%s, bad version string\n", "$min_gtk_version");
12110 exit(1);
12111 }
90dd450c 12112
21d1c967
GD
12113 if ((gtk_major_version != $gtk_config_major_version) ||
12114 (gtk_minor_version != $gtk_config_minor_version) ||
12115 (gtk_micro_version != $gtk_config_micro_version))
12116 {
12117 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
12118 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
12119 gtk_major_version, gtk_minor_version, gtk_micro_version);
12120 printf ("*** was found! If gtk-config was correct, then it is best\n");
12121 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
12122 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
12123 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
12124 printf("*** required on your system.\n");
12125 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
12126 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
12127 printf("*** before re-running configure\n");
12128 }
12129#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
12130 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
12131 (gtk_minor_version != GTK_MINOR_VERSION) ||
12132 (gtk_micro_version != GTK_MICRO_VERSION))
12133 {
12134 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
12135 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
12136 printf("*** library (version %d.%d.%d)\n",
12137 gtk_major_version, gtk_minor_version, gtk_micro_version);
12138 }
12139#endif /* defined (GTK_MAJOR_VERSION) ... */
12140 else
12141 {
12142 if ((gtk_major_version > major) ||
12143 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
12144 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
12145 {
12146 return 0;
12147 }
12148 else
12149 {
12150 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
12151 gtk_major_version, gtk_minor_version, gtk_micro_version);
12152 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
12153 major, minor, micro);
12154 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
12155 printf("***\n");
12156 printf("*** If you have already installed a sufficiently new version, this error\n");
12157 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
12158 printf("*** being found. The easiest way to fix this is to remove the old version\n");
12159 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
12160 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
12161 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
12162 printf("*** so that the correct libraries are found at run-time))\n");
12163 }
12164 }
12165 return 1;
12166}
12167
12168EOF
986ecc86 12169if { (eval echo configure:12170: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
21d1c967
GD
12170then
12171 :
12172else
12173 echo "configure: failed program was:" >&5
12174 cat conftest.$ac_ext >&5
12175 rm -fr conftest*
12176 no_gtk=yes
12177fi
12178rm -fr conftest*
12179fi
12180
12181 CFLAGS="$ac_save_CFLAGS"
12182 LIBS="$ac_save_LIBS"
12183 fi
12184 fi
12185 if test "x$no_gtk" = x ; then
12186 echo "$ac_t""yes" 1>&6
12187 wx_cv_lib_gtk=1.2.7
12188 else
12189 echo "$ac_t""no" 1>&6
12190 if test "$GTK_CONFIG" = "no" ; then
12191 echo "*** The gtk-config script installed by GTK could not be found"
12192 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
12193 echo "*** your path, or set the GTK_CONFIG environment variable to the"
12194 echo "*** full path to gtk-config."
12195 else
12196 if test -f conf.gtktest ; then
12197 :
12198 else
12199 echo "*** Could not run GTK test program, checking why..."
12200 CFLAGS="$CFLAGS $GTK_CFLAGS"
12201 LIBS="$LIBS $GTK_LIBS"
12202 cat > conftest.$ac_ext <<EOF
986ecc86 12203#line 12204 "configure"
21d1c967
GD
12204#include "confdefs.h"
12205
12206#include <gtk/gtk.h>
12207#include <stdio.h>
12208
12209int main() {
12210 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
f79bd02d
JS
12211; return 0; }
12212EOF
986ecc86 12213if { (eval echo configure:12214: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
f79bd02d 12214 rm -rf conftest*
21d1c967
GD
12215 echo "*** The test program compiled, but did not run. This usually means"
12216 echo "*** that the run-time linker is not finding GTK or finding the wrong"
12217 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
12218 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
12219 echo "*** to the installed location Also, make sure you have run ldconfig if that"
12220 echo "*** is required on your system"
12221 echo "***"
12222 echo "*** If you have an old version installed, it is best to remove it, although"
12223 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
12224 echo "***"
12225 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
12226 echo "*** came with the system with the command"
12227 echo "***"
12228 echo "*** rpm --erase --nodeps gtk gtk-devel"
f79bd02d
JS
12229else
12230 echo "configure: failed program was:" >&5
12231 cat conftest.$ac_ext >&5
12232 rm -rf conftest*
21d1c967
GD
12233 echo "*** The test program failed to compile or link. See the file config.log for the"
12234 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
12235 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
12236 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
f79bd02d
JS
12237fi
12238rm -f conftest*
21d1c967
GD
12239 CFLAGS="$ac_save_CFLAGS"
12240 LIBS="$ac_save_LIBS"
12241 fi
12242 fi
12243 GTK_CFLAGS=""
12244 GTK_LIBS=""
12245 :
12246 fi
12247
12248
12249 rm -f conf.gtktest
12250
12251 fi
12252
12253 if test -z "$wx_cv_lib_gtk"; then
12254 # Check whether --with-gtk-prefix or --without-gtk-prefix was given.
12255if test "${with_gtk_prefix+set}" = set; then
12256 withval="$with_gtk_prefix"
12257 gtk_config_prefix="$withval"
12258else
12259 gtk_config_prefix=""
90dd450c 12260fi
f79bd02d 12261
21d1c967
GD
12262# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
12263if test "${with_gtk_exec_prefix+set}" = set; then
12264 withval="$with_gtk_exec_prefix"
12265 gtk_config_exec_prefix="$withval"
12266else
12267 gtk_config_exec_prefix=""
12268fi
12269
12270# Check whether --enable-gtktest or --disable-gtktest was given.
12271if test "${enable_gtktest+set}" = set; then
12272 enableval="$enable_gtktest"
90dd450c
VZ
12273 :
12274else
21d1c967 12275 enable_gtktest=yes
90dd450c 12276fi
f79bd02d 12277
21d1c967
GD
12278
12279 for module in . $GTK_MODULES
12280 do
12281 case "$module" in
12282 gthread)
12283 gtk_config_args="$gtk_config_args gthread"
12284 ;;
12285 esac
12286 done
12287
12288 if test x$gtk_config_exec_prefix != x ; then
12289 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
12290 if test x${GTK_CONFIG+set} != xset ; then
12291 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
12292 fi
12293 fi
12294 if test x$gtk_config_prefix != x ; then
12295 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
12296 if test x${GTK_CONFIG+set} != xset ; then
12297 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
12298 fi
12299 fi
12300
12301 # Extract the first word of "gtk-config", so it can be a program name with args.
12302set dummy gtk-config; ac_word=$2
12303echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
986ecc86 12304echo "configure:12305: checking for $ac_word" >&5
21d1c967 12305if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
90dd450c
VZ
12306 echo $ac_n "(cached) $ac_c" 1>&6
12307else
21d1c967
GD
12308 case "$GTK_CONFIG" in
12309 /*)
12310 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
12311 ;;
12312 ?:/*)
12313 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path.
12314 ;;
12315 *)
12316 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
12317 ac_dummy="$PATH"
12318 for ac_dir in $ac_dummy; do
12319 test -z "$ac_dir" && ac_dir=.
12320 if test -f $ac_dir/$ac_word; then
12321 ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
12322 break
12323 fi
12324 done
12325 IFS="$ac_save_ifs"
12326 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
12327 ;;
12328esac
12329fi
12330GTK_CONFIG="$ac_cv_path_GTK_CONFIG"
12331if test -n "$GTK_CONFIG"; then
12332 echo "$ac_t""$GTK_CONFIG" 1>&6
12333else
12334 echo "$ac_t""no" 1>&6
12335fi
12336
12337 min_gtk_version=1.2.3
12338 echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
986ecc86 12339echo "configure:12340: checking for GTK - version >= $min_gtk_version" >&5
21d1c967
GD
12340 no_gtk=""
12341 if test "$GTK_CONFIG" = "no" ; then
12342 no_gtk=yes
12343 else
12344 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
12345 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
12346 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
12347 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
12348 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
12349 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
12350 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
12351 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
12352 if test "x$enable_gtktest" = "xyes" ; then
12353 ac_save_CFLAGS="$CFLAGS"
12354 ac_save_LIBS="$LIBS"
12355 CFLAGS="$CFLAGS $GTK_CFLAGS"
12356 LIBS="$GTK_LIBS $LIBS"
12357 rm -f conf.gtktest
12358 if test "$cross_compiling" = yes; then
12359 echo $ac_n "cross compiling; assumed OK... $ac_c"
12360else
12361 cat > conftest.$ac_ext <<EOF
986ecc86 12362#line 12363 "configure"
f79bd02d 12363#include "confdefs.h"
21d1c967
GD
12364
12365#include <gtk/gtk.h>
12366#include <stdio.h>
12367#include <stdlib.h>
12368
12369int
12370main ()
12371{
12372 int major, minor, micro;
12373 char *tmp_version;
12374
12375 system ("touch conf.gtktest");
12376
12377 /* HP/UX 9 (%@#!) writes to sscanf strings */
12378 tmp_version = g_strdup("$min_gtk_version");
12379 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
12380 printf("%s, bad version string\n", "$min_gtk_version");
12381 exit(1);
12382 }
12383
12384 if ((gtk_major_version != $gtk_config_major_version) ||
12385 (gtk_minor_version != $gtk_config_minor_version) ||
12386 (gtk_micro_version != $gtk_config_micro_version))
12387 {
12388 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
12389 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
12390 gtk_major_version, gtk_minor_version, gtk_micro_version);
12391 printf ("*** was found! If gtk-config was correct, then it is best\n");
12392 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
12393 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
12394 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
12395 printf("*** required on your system.\n");
12396 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
12397 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
12398 printf("*** before re-running configure\n");
12399 }
12400#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
12401 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
12402 (gtk_minor_version != GTK_MINOR_VERSION) ||
12403 (gtk_micro_version != GTK_MICRO_VERSION))
12404 {
12405 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
12406 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
12407 printf("*** library (version %d.%d.%d)\n",
12408 gtk_major_version, gtk_minor_version, gtk_micro_version);
12409 }
12410#endif /* defined (GTK_MAJOR_VERSION) ... */
12411 else
12412 {
12413 if ((gtk_major_version > major) ||
12414 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
12415 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
12416 {
12417 return 0;
12418 }
12419 else
12420 {
12421 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
12422 gtk_major_version, gtk_minor_version, gtk_micro_version);
12423 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
12424 major, minor, micro);
12425 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
12426 printf("***\n");
12427 printf("*** If you have already installed a sufficiently new version, this error\n");
12428 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
12429 printf("*** being found. The easiest way to fix this is to remove the old version\n");
12430 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
12431 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
12432 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
12433 printf("*** so that the correct libraries are found at run-time))\n");
12434 }
12435 }
12436 return 1;
12437}
12438
12439EOF
986ecc86 12440if { (eval echo configure:12441: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
21d1c967
GD
12441then
12442 :
12443else
12444 echo "configure: failed program was:" >&5
12445 cat conftest.$ac_ext >&5
12446 rm -fr conftest*
12447 no_gtk=yes
12448fi
12449rm -fr conftest*
12450fi
12451
12452 CFLAGS="$ac_save_CFLAGS"
12453 LIBS="$ac_save_LIBS"
12454 fi
12455 fi
12456 if test "x$no_gtk" = x ; then
12457 echo "$ac_t""yes" 1>&6
12458 wx_cv_lib_gtk=1.2.3
12459 else
12460 echo "$ac_t""no" 1>&6
12461 if test "$GTK_CONFIG" = "no" ; then
12462 echo "*** The gtk-config script installed by GTK could not be found"
12463 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
12464 echo "*** your path, or set the GTK_CONFIG environment variable to the"
12465 echo "*** full path to gtk-config."
12466 else
12467 if test -f conf.gtktest ; then
12468 :
12469 else
12470 echo "*** Could not run GTK test program, checking why..."
12471 CFLAGS="$CFLAGS $GTK_CFLAGS"
12472 LIBS="$LIBS $GTK_LIBS"
12473 cat > conftest.$ac_ext <<EOF
986ecc86 12474#line 12475 "configure"
21d1c967
GD
12475#include "confdefs.h"
12476
12477#include <gtk/gtk.h>
12478#include <stdio.h>
f79bd02d 12479
f79bd02d 12480int main() {
21d1c967 12481 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
f79bd02d
JS
12482; return 0; }
12483EOF
986ecc86 12484if { (eval echo configure:12485: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
f79bd02d 12485 rm -rf conftest*
21d1c967
GD
12486 echo "*** The test program compiled, but did not run. This usually means"
12487 echo "*** that the run-time linker is not finding GTK or finding the wrong"
12488 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
12489 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
12490 echo "*** to the installed location Also, make sure you have run ldconfig if that"
12491 echo "*** is required on your system"
12492 echo "***"
12493 echo "*** If you have an old version installed, it is best to remove it, although"
12494 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
12495 echo "***"
12496 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
12497 echo "*** came with the system with the command"
12498 echo "***"
12499 echo "*** rpm --erase --nodeps gtk gtk-devel"
f79bd02d
JS
12500else
12501 echo "configure: failed program was:" >&5
12502 cat conftest.$ac_ext >&5
12503 rm -rf conftest*
21d1c967
GD
12504 echo "*** The test program failed to compile or link. See the file config.log for the"
12505 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
12506 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
12507 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
f79bd02d
JS
12508fi
12509rm -f conftest*
21d1c967
GD
12510 CFLAGS="$ac_save_CFLAGS"
12511 LIBS="$ac_save_LIBS"
12512 fi
12513 fi
12514 GTK_CFLAGS=""
12515 GTK_LIBS=""
12516 :
12517 fi
12518
12519
12520 rm -f conf.gtktest
f79bd02d 12521
21d1c967
GD
12522 fi
12523
12524 if test -z "$wx_cv_lib_gtk"; then
12525 wx_cv_lib_gtk=none
12526 else
12527 wx_cv_cflags_gtk=$GTK_CFLAGS
12528 wx_cv_libs_gtk=$GTK_LIBS
12529 fi
12530
12531
90dd450c 12532fi
b4085ce6 12533
e07802fc 12534
21d1c967
GD
12535 if test "$gtk_version_cached" = 1; then
12536 echo "$ac_t""$wx_cv_lib_gtk" 1>&6
12537 fi
12538
12539 case "$wx_cv_lib_gtk" in
12540 2.0) WXGTK20=1
12541 ;;
12542 1.2.7) WXGTK127=1
12543 WXGTK12=1
12544 ;;
12545 1.2.3) WXGTK12=1
12546 ;;
12547 *) { echo "configure: error:
12548Please check that gtk-config is in path, the directory
12549where GTK+ libraries are installed (returned by
12550'gtk-config --libs' command) is in LD_LIBRARY_PATH or
12551equivalent variable and GTK+ is version 1.2.3 or above.
12552 " 1>&2; exit 1; }
12553 ;;
12554 esac
12555
12556 TOOLKIT_INCLUDE="$wx_cv_cflags_gtk"
12557 GUI_TK_LIBRARY="$wx_cv_libs_gtk"
12558
12559 AFMINSTALL=afminstall
12560 TOOLKIT=GTK
12561 GUIDIST=GTK_DIST
12562
12563 echo $ac_n "checking for gdk_im_open in -lgdk""... $ac_c" 1>&6
986ecc86 12564echo "configure:12565: checking for gdk_im_open in -lgdk" >&5
21d1c967 12565ac_lib_var=`echo gdk'_'gdk_im_open | sed 'y%./+-%__p_%'`
90dd450c
VZ
12566if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12567 echo $ac_n "(cached) $ac_c" 1>&6
12568else
12569 ac_save_LIBS="$LIBS"
21d1c967 12570LIBS="-lgdk $LIBS"
90dd450c 12571cat > conftest.$ac_ext <<EOF
986ecc86 12572#line 12573 "configure"
90dd450c
VZ
12573#include "confdefs.h"
12574/* Override any gcc2 internal prototype to avoid an error. */
12575/* We use char because int might match the return type of a gcc2
12576 builtin and then its argument prototype would still apply. */
21d1c967 12577char gdk_im_open();
9b695262 12578
90dd450c 12579int main() {
21d1c967 12580gdk_im_open()
90dd450c
VZ
12581; return 0; }
12582EOF
986ecc86 12583if { (eval echo configure:12584: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
90dd450c
VZ
12584 rm -rf conftest*
12585 eval "ac_cv_lib_$ac_lib_var=yes"
12586else
12587 echo "configure: failed program was:" >&5
12588 cat conftest.$ac_ext >&5
12589 rm -rf conftest*
12590 eval "ac_cv_lib_$ac_lib_var=no"
12591fi
12592rm -f conftest*
12593LIBS="$ac_save_LIBS"
9b695262 12594
90dd450c
VZ
12595fi
12596if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12597 echo "$ac_t""yes" 1>&6
21d1c967
GD
12598 cat >> confdefs.h <<\EOF
12599#define HAVE_XIM 1
12600EOF
12601
90dd450c
VZ
12602else
12603 echo "$ac_t""no" 1>&6
12604fi
1e6feb95 12605
21d1c967 12606 fi
1e6feb95 12607
21d1c967
GD
12608 if test "$wxUSE_MGL" = 1; then
12609 echo $ac_n "checking for SciTech MGL library""... $ac_c" 1>&6
986ecc86 12610echo "configure:12611: checking for SciTech MGL library" >&5
21d1c967
GD
12611 if test "x$MGL_ROOT" = x ; then
12612 echo "$ac_t""not found" 1>&6
12613 { echo "configure: error: Cannot find MGL library. Make sure MGL_ROOT is set." 1>&2; exit 1; }
12614 else
12615 echo "$ac_t""$MGL_ROOT" 1>&6
12616 fi
12617
12618 case "${host}" in
12619 *-*-linux* )
12620 mgl_os=linux/gcc/glibc
12621 ;;
12622 *-pc-msdosdjgpp )
12623 mgl_os=dos32/dj2
12624 ;;
12625 *)
12626 { echo "configure: error: This system type ${host} is not yet supported by wxMGL." 1>&2; exit 1; }
12627 esac
1e6feb95 12628
21d1c967 12629 mgl_lib_type=""
3fcdd07b 12630
21d1c967
GD
12631 if test "$wxUSE_DEBUG_FLAG" = yes ; then
12632 if test -f $MGL_ROOT/lib/debug/$mgl_os/libmgl.a -o \
12633 -f $MGL_ROOT/lib/debug/$mgl_os/libmgl.so; then
12634 mgl_lib_type=debug
12635 fi
12636 fi
12637 if test "x$mgl_lib_type" = x ; then
12638 if test -f $MGL_ROOT/lib/release/$mgl_os/libmgl.a -o \
12639 -f $MGL_ROOT/lib/release/$mgl_os/libmgl.so; then
12640 mgl_lib_type=release
12641 else
12642 { echo "configure: error: Cannot find MGL libraries, make sure they are compiled." 1>&2; exit 1; }
12643 fi
90dd450c 12644 fi
2224580a 12645
1d1b75ac
VZ
12646 wxUSE_UNIVERSAL="yes"
12647
21d1c967
GD
12648 TOOLKIT_INCLUDE="-I$MGL_ROOT/include"
12649 GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$mgl_lib_type/$mgl_os -lmgl -lmglcpp -lpm"
12650
90dd450c 12651 AFMINSTALL=afminstall
21d1c967
GD
12652 TOOLKIT=MGL
12653 GUIDIST=MGL_DIST
12654 fi
dad6c0ea 12655
21d1c967
GD
12656 if test "$wxUSE_MICROWIN" = 1; then
12657 echo $ac_n "checking for MicroWindows""... $ac_c" 1>&6
986ecc86 12658echo "configure:12659: checking for MicroWindows" >&5
21d1c967
GD
12659 if test "x$MICROWINDOWS" = x ; then
12660 echo "$ac_t""not found" 1>&6
12661 { echo "configure: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." 1>&2; exit 1; }
12662 else
12663 echo "$ac_t""$MICROWINDOWS" 1>&6
12664 fi
f6bcfd97 12665
21d1c967
GD
12666 if test -f $MICROWINDOWS/lib/libmwin.a; then
12667 echo "$ac_t""MicroWindows' libraries found." 1>&6
12668 else
12669 { echo "configure: error: Cannot find MicroWindows libraries, make sure they are compiled." 1>&2; exit 1; }
90dd450c 12670 fi
0b2effe9 12671
21d1c967
GD
12672 TOOLKIT_INCLUDE="-I$MICROWINDOWS/include"
12673 GUI_TK_LIBRARY="-L$MICROWINDOWS/lib -lmwin -lmwengine -mwfonts -mwdrivers -mwinlib"
12674
1d1b75ac
VZ
12675 wxUSE_UNIVERSAL="yes"
12676
21d1c967
GD
12677 AFMINSTALL=afminstall
12678 TOOLKIT=MICROWIN
12679 GUIDIST=MICROWIN_DIST
1d1b75ac
VZ
12680
12681 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXMSW__ -D__WIN95__ -D__WIN32__ -DMWIN -DMICROWIN_NOCONTROLS -DMICROWIN_TODO=1"
21d1c967 12682 fi
f6bcfd97 12683
21d1c967
GD
12684 if test "$wxUSE_X11" = 1; then
12685 # If we find X, set shell vars x_includes and x_libraries to the
12686# paths, otherwise set no_x=yes.
12687# Uses ac_ vars as temps to allow command line to override cache and checks.
12688# --without-x overrides everything else, but does not touch the cache.
12689echo $ac_n "checking for X""... $ac_c" 1>&6
986ecc86 12690echo "configure:12691: checking for X" >&5
d8356fa3 12691
21d1c967
GD
12692# Check whether --with-x or --without-x was given.
12693if test "${with_x+set}" = set; then
12694 withval="$with_x"
12695 :
12696fi
2224580a 12697
21d1c967
GD
12698# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
12699if test "x$with_x" = xno; then
12700 # The user explicitly disabled X.
12701 have_x=disabled
12702else
12703 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
12704 # Both variables are already set.
12705 have_x=yes
12706 else
12707if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
12708 echo $ac_n "(cached) $ac_c" 1>&6
12709else
12710 # One or both of the vars are not set, and there is no cached value.
12711ac_x_includes=NO ac_x_libraries=NO
12712rm -fr conftestdir
12713if mkdir conftestdir; then
12714 cd conftestdir
12715 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
12716 cat > Imakefile <<'EOF'
12717acfindx:
12718 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
12719EOF
12720 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
12721 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
12722 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
12723 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
12724 for ac_extension in a so sl; do
12725 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
12726 test -f $ac_im_libdir/libX11.$ac_extension; then
12727 ac_im_usrlibdir=$ac_im_libdir; break
12728 fi
12729 done
12730 # Screen out bogus values from the imake configuration. They are
12731 # bogus both because they are the default anyway, and because
12732 # using them would break gcc on systems where it needs fixed includes.
12733 case "$ac_im_incroot" in
12734 /usr/include) ;;
12735 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
12736 esac
12737 case "$ac_im_usrlibdir" in
12738 /usr/lib | /lib) ;;
12739 *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
12740 esac
12741 fi
12742 cd ..
12743 rm -fr conftestdir
12744fi
10f2d63a 12745
21d1c967
GD
12746if test "$ac_x_includes" = NO; then
12747 # Guess where to find include files, by looking for this one X11 .h file.
12748 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
e45387bf 12749
21d1c967
GD
12750 # First, try using that file with no special directory specified.
12751cat > conftest.$ac_ext <<EOF
986ecc86 12752#line 12753 "configure"
21d1c967
GD
12753#include "confdefs.h"
12754#include <$x_direct_test_include>
90dd450c 12755EOF
21d1c967 12756ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
986ecc86 12757{ (eval echo configure:12758: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
21d1c967
GD
12758ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12759if test -z "$ac_err"; then
90dd450c 12760 rm -rf conftest*
21d1c967
GD
12761 # We can compile using X headers with no special include directory.
12762ac_x_includes=
90dd450c 12763else
21d1c967 12764 echo "$ac_err" >&5
90dd450c
VZ
12765 echo "configure: failed program was:" >&5
12766 cat conftest.$ac_ext >&5
12767 rm -rf conftest*
21d1c967
GD
12768 # Look for the header file in a standard set of common directories.
12769# Check X11 before X11Rn because it is often a symlink to the current release.
12770 for ac_dir in \
12771 /usr/X11/include \
12772 /usr/X11R6/include \
12773 /usr/X11R5/include \
12774 /usr/X11R4/include \
12775 \
12776 /usr/include/X11 \
12777 /usr/include/X11R6 \
12778 /usr/include/X11R5 \
12779 /usr/include/X11R4 \
12780 \
12781 /usr/local/X11/include \
12782 /usr/local/X11R6/include \
12783 /usr/local/X11R5/include \
12784 /usr/local/X11R4/include \
12785 \
12786 /usr/local/include/X11 \
12787 /usr/local/include/X11R6 \
12788 /usr/local/include/X11R5 \
12789 /usr/local/include/X11R4 \
12790 \
12791 /usr/X386/include \
12792 /usr/x386/include \
12793 /usr/XFree86/include/X11 \
12794 \
12795 /usr/include \
12796 /usr/local/include \
12797 /usr/unsupported/include \
12798 /usr/athena/include \
12799 /usr/local/x11r5/include \
12800 /usr/lpp/Xamples/include \
12801 \
12802 /usr/openwin/include \
12803 /usr/openwin/share/include \
12804 ; \
12805 do
12806 if test -r "$ac_dir/$x_direct_test_include"; then
12807 ac_x_includes=$ac_dir
12808 break
12809 fi
12810 done
3a922bb4 12811fi
90dd450c 12812rm -f conftest*
21d1c967 12813fi # $ac_x_includes = NO
10f2d63a 12814
21d1c967
GD
12815if test "$ac_x_libraries" = NO; then
12816 # Check for the libraries.
be505a65 12817
21d1c967
GD
12818 test -z "$x_direct_test_library" && x_direct_test_library=Xt
12819 test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
90dd450c 12820
21d1c967
GD
12821 # See if we find them without any special options.
12822 # Don't add to $LIBS permanently.
12823 ac_save_LIBS="$LIBS"
12824 LIBS="-l$x_direct_test_library $LIBS"
12825cat > conftest.$ac_ext <<EOF
986ecc86 12826#line 12827 "configure"
3a922bb4 12827#include "confdefs.h"
21d1c967
GD
12828
12829int main() {
12830${x_direct_test_function}()
12831; return 0; }
3a922bb4 12832EOF
986ecc86 12833if { (eval echo configure:12834: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3a922bb4 12834 rm -rf conftest*
21d1c967
GD
12835 LIBS="$ac_save_LIBS"
12836# We can link X programs with no special library path.
12837ac_x_libraries=
3a922bb4 12838else
3a922bb4
RL
12839 echo "configure: failed program was:" >&5
12840 cat conftest.$ac_ext >&5
12841 rm -rf conftest*
21d1c967
GD
12842 LIBS="$ac_save_LIBS"
12843# First see if replacing the include by lib works.
12844# Check X11 before X11Rn because it is often a symlink to the current release.
12845for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
12846 /usr/X11/lib \
12847 /usr/X11R6/lib \
12848 /usr/X11R5/lib \
12849 /usr/X11R4/lib \
12850 \
12851 /usr/lib/X11 \
12852 /usr/lib/X11R6 \
12853 /usr/lib/X11R5 \
12854 /usr/lib/X11R4 \
12855 \
12856 /usr/local/X11/lib \
12857 /usr/local/X11R6/lib \
12858 /usr/local/X11R5/lib \
12859 /usr/local/X11R4/lib \
12860 \
12861 /usr/local/lib/X11 \
12862 /usr/local/lib/X11R6 \
12863 /usr/local/lib/X11R5 \
12864 /usr/local/lib/X11R4 \
12865 \
12866 /usr/X386/lib \
12867 /usr/x386/lib \
12868 /usr/XFree86/lib/X11 \
12869 \
12870 /usr/lib \
12871 /usr/local/lib \
12872 /usr/unsupported/lib \
12873 /usr/athena/lib \
12874 /usr/local/x11r5/lib \
12875 /usr/lpp/Xamples/lib \
12876 /lib/usr/lib/X11 \
12877 \
12878 /usr/openwin/lib \
12879 /usr/openwin/share/lib \
12880 ; \
12881do
12882 for ac_extension in a so sl; do
12883 if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
12884 ac_x_libraries=$ac_dir
12885 break 2
12886 fi
12887 done
12888done
3a922bb4
RL
12889fi
12890rm -f conftest*
21d1c967 12891fi # $ac_x_libraries = NO
90dd450c 12892
21d1c967
GD
12893if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
12894 # Didn't find X anywhere. Cache the known absence of X.
12895 ac_cv_have_x="have_x=no"
12896else
12897 # Record where we found X for the cache.
12898 ac_cv_have_x="have_x=yes \
12899 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
90dd450c 12900fi
21d1c967
GD
12901fi
12902 fi
12903 eval "$ac_cv_have_x"
12904fi # $with_x != no
90dd450c 12905
21d1c967
GD
12906if test "$have_x" != yes; then
12907 echo "$ac_t""$have_x" 1>&6
12908 no_x=yes
12909else
12910 # If each of the values was on the command line, it overrides each guess.
12911 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
12912 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
12913 # Update the cache value to reflect the command line values.
12914 ac_cv_have_x="have_x=yes \
12915 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
12916 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
12917fi
90dd450c 12918
21d1c967 12919if test "$no_x" = yes; then
90dd450c
VZ
12920 # Not all programs may use this symbol, but it does not hurt to define it.
12921 cat >> confdefs.h <<\EOF
12922#define X_DISPLAY_MISSING 1
12923EOF
12924
12925 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
12926else
12927 if test -n "$x_includes"; then
12928 X_CFLAGS="$X_CFLAGS -I$x_includes"
62d0491b 12929 fi
3a922bb4 12930
90dd450c
VZ
12931 # It would also be nice to do this for all -L options, not just this one.
12932 if test -n "$x_libraries"; then
12933 X_LIBS="$X_LIBS -L$x_libraries"
12934 # For Solaris; some versions of Sun CC require a space after -R and
12935 # others require no space. Words are not sufficient . . . .
12936 case "`(uname -sr) 2>/dev/null`" in
12937 "SunOS 5"*)
12938 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
986ecc86 12939echo "configure:12940: checking whether -R must be followed by a space" >&5
90dd450c
VZ
12940 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
12941 cat > conftest.$ac_ext <<EOF
986ecc86 12942#line 12943 "configure"
90dd450c
VZ
12943#include "confdefs.h"
12944
12945int main() {
12946
12947; return 0; }
12948EOF
986ecc86 12949if { (eval echo configure:12950: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
90dd450c
VZ
12950 rm -rf conftest*
12951 ac_R_nospace=yes
3a922bb4 12952else
90dd450c
VZ
12953 echo "configure: failed program was:" >&5
12954 cat conftest.$ac_ext >&5
12955 rm -rf conftest*
12956 ac_R_nospace=no
3a922bb4 12957fi
90dd450c
VZ
12958rm -f conftest*
12959 if test $ac_R_nospace = yes; then
12960 echo "$ac_t""no" 1>&6
12961 X_LIBS="$X_LIBS -R$x_libraries"
12962 else
12963 LIBS="$ac_xsave_LIBS -R $x_libraries"
12964 cat > conftest.$ac_ext <<EOF
986ecc86 12965#line 12966 "configure"
90dd450c 12966#include "confdefs.h"
3a922bb4 12967
90dd450c 12968int main() {
6f754473 12969
90dd450c
VZ
12970; return 0; }
12971EOF
986ecc86 12972if { (eval echo configure:12973: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
90dd450c
VZ
12973 rm -rf conftest*
12974 ac_R_space=yes
12975else
12976 echo "configure: failed program was:" >&5
12977 cat conftest.$ac_ext >&5
12978 rm -rf conftest*
12979 ac_R_space=no
12980fi
12981rm -f conftest*
12982 if test $ac_R_space = yes; then
12983 echo "$ac_t""yes" 1>&6
12984 X_LIBS="$X_LIBS -R $x_libraries"
12985 else
12986 echo "$ac_t""neither works" 1>&6
12987 fi
12988 fi
12989 LIBS="$ac_xsave_LIBS"
12990 esac
12991 fi
12992
12993 # Check for system-dependent libraries X programs must link with.
12994 # Do this before checking for the system-independent R6 libraries
12995 # (-lICE), since we may need -lsocket or whatever for X linking.
6f754473 12996
90dd450c
VZ
12997 if test "$ISC" = yes; then
12998 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
12999 else
13000 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
13001 # libraries were built with DECnet support. And karl@cs.umb.edu says
13002 # the Alpha needs dnet_stub (dnet does not exist).
13003 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
986ecc86 13004echo "configure:13005: checking for dnet_ntoa in -ldnet" >&5
90dd450c
VZ
13005ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
13006if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13007 echo $ac_n "(cached) $ac_c" 1>&6
13008else
13009 ac_save_LIBS="$LIBS"
13010LIBS="-ldnet $LIBS"
13011cat > conftest.$ac_ext <<EOF
986ecc86 13012#line 13013 "configure"
90dd450c
VZ
13013#include "confdefs.h"
13014/* Override any gcc2 internal prototype to avoid an error. */
13015/* We use char because int might match the return type of a gcc2
13016 builtin and then its argument prototype would still apply. */
13017char dnet_ntoa();
6f754473 13018
90dd450c
VZ
13019int main() {
13020dnet_ntoa()
13021; return 0; }
6f754473 13022EOF
986ecc86 13023if { (eval echo configure:13024: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
90dd450c
VZ
13024 rm -rf conftest*
13025 eval "ac_cv_lib_$ac_lib_var=yes"
13026else
13027 echo "configure: failed program was:" >&5
13028 cat conftest.$ac_ext >&5
13029 rm -rf conftest*
13030 eval "ac_cv_lib_$ac_lib_var=no"
3a922bb4 13031fi
90dd450c
VZ
13032rm -f conftest*
13033LIBS="$ac_save_LIBS"
3a922bb4 13034
3a922bb4 13035fi
90dd450c
VZ
13036if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13037 echo "$ac_t""yes" 1>&6
13038 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
13039else
13040 echo "$ac_t""no" 1>&6
3a922bb4
RL
13041fi
13042
90dd450c
VZ
13043 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
13044 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
986ecc86 13045echo "configure:13046: checking for dnet_ntoa in -ldnet_stub" >&5
90dd450c
VZ
13046ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
13047if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13048 echo $ac_n "(cached) $ac_c" 1>&6
13049else
13050 ac_save_LIBS="$LIBS"
13051LIBS="-ldnet_stub $LIBS"
13052cat > conftest.$ac_ext <<EOF
986ecc86 13053#line 13054 "configure"
90dd450c
VZ
13054#include "confdefs.h"
13055/* Override any gcc2 internal prototype to avoid an error. */
13056/* We use char because int might match the return type of a gcc2
13057 builtin and then its argument prototype would still apply. */
13058char dnet_ntoa();
f676c7ff 13059
90dd450c
VZ
13060int main() {
13061dnet_ntoa()
13062; return 0; }
13063EOF
986ecc86 13064if { (eval echo configure:13065: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
90dd450c
VZ
13065 rm -rf conftest*
13066 eval "ac_cv_lib_$ac_lib_var=yes"
13067else
13068 echo "configure: failed program was:" >&5
13069 cat conftest.$ac_ext >&5
13070 rm -rf conftest*
13071 eval "ac_cv_lib_$ac_lib_var=no"
3a922bb4 13072fi
90dd450c
VZ
13073rm -f conftest*
13074LIBS="$ac_save_LIBS"
3a922bb4 13075
90dd450c
VZ
13076fi
13077if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13078 echo "$ac_t""yes" 1>&6
13079 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
13080else
13081 echo "$ac_t""no" 1>&6
3a922bb4
RL
13082fi
13083
90dd450c 13084 fi
978f1259 13085
90dd450c
VZ
13086 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
13087 # to get the SysV transport functions.
13088 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
13089 # needs -lnsl.
13090 # The nsl library prevents programs from opening the X display
13091 # on Irix 5.2, according to dickey@clark.net.
13092 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
986ecc86 13093echo "configure:13094: checking for gethostbyname" >&5
90dd450c
VZ
13094if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
13095 echo $ac_n "(cached) $ac_c" 1>&6
13096else
13097 cat > conftest.$ac_ext <<EOF
986ecc86 13098#line 13099 "configure"
90dd450c
VZ
13099#include "confdefs.h"
13100/* System header to define __stub macros and hopefully few prototypes,
13101 which can conflict with char gethostbyname(); below. */
13102#include <assert.h>
13103/* Override any gcc2 internal prototype to avoid an error. */
13104/* We use char because int might match the return type of a gcc2
13105 builtin and then its argument prototype would still apply. */
13106char gethostbyname();
978f1259 13107
90dd450c 13108int main() {
978f1259 13109
90dd450c
VZ
13110/* The GNU C library defines this for functions which it implements
13111 to always fail with ENOSYS. Some functions are actually named
13112 something starting with __ and the normal name is an alias. */
13113#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
13114choke me
13115#else
13116gethostbyname();
13117#endif
978f1259 13118
90dd450c
VZ
13119; return 0; }
13120EOF
986ecc86 13121if { (eval echo configure:13122: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
90dd450c
VZ
13122 rm -rf conftest*
13123 eval "ac_cv_func_gethostbyname=yes"
13124else
13125 echo "configure: failed program was:" >&5
13126 cat conftest.$ac_ext >&5
13127 rm -rf conftest*
13128 eval "ac_cv_func_gethostbyname=no"
978f1259 13129fi
90dd450c 13130rm -f conftest*
4222829b
VS
13131fi
13132
90dd450c
VZ
13133if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
13134 echo "$ac_t""yes" 1>&6
13135 :
13136else
13137 echo "$ac_t""no" 1>&6
13138fi
698dcdb6 13139
90dd450c
VZ
13140 if test $ac_cv_func_gethostbyname = no; then
13141 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
986ecc86 13142echo "configure:13143: checking for gethostbyname in -lnsl" >&5
90dd450c
VZ
13143ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
13144if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13145 echo $ac_n "(cached) $ac_c" 1>&6
13146else
13147 ac_save_LIBS="$LIBS"
13148LIBS="-lnsl $LIBS"
13149cat > conftest.$ac_ext <<EOF
986ecc86 13150#line 13151 "configure"
90dd450c
VZ
13151#include "confdefs.h"
13152/* Override any gcc2 internal prototype to avoid an error. */
13153/* We use char because int might match the return type of a gcc2
13154 builtin and then its argument prototype would still apply. */
13155char gethostbyname();
f6bcfd97 13156
90dd450c
VZ
13157int main() {
13158gethostbyname()
13159; return 0; }
13160EOF
986ecc86 13161if { (eval echo configure:13162: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
90dd450c
VZ
13162 rm -rf conftest*
13163 eval "ac_cv_lib_$ac_lib_var=yes"
13164else
13165 echo "configure: failed program was:" >&5
13166 cat conftest.$ac_ext >&5
13167 rm -rf conftest*
13168 eval "ac_cv_lib_$ac_lib_var=no"
13169fi
13170rm -f conftest*
13171LIBS="$ac_save_LIBS"
55e80573 13172
90dd450c
VZ
13173fi
13174if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13175 echo "$ac_t""yes" 1>&6
13176 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
13177else
13178 echo "$ac_t""no" 1>&6
13179fi
b12915c1 13180
90dd450c
VZ
13181 fi
13182
13183 # lieder@skyler.mavd.honeywell.com says without -lsocket,
13184 # socket/setsockopt and other routines are undefined under SCO ODT
13185 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
13186 # on later versions), says simon@lia.di.epfl.ch: it contains
13187 # gethostby* variants that don't use the nameserver (or something).
13188 # -lsocket must be given before -lnsl if both are needed.
13189 # We assume that if connect needs -lnsl, so does gethostbyname.
13190 echo $ac_n "checking for connect""... $ac_c" 1>&6
986ecc86 13191echo "configure:13192: checking for connect" >&5
90dd450c 13192if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
55e80573
VZ
13193 echo $ac_n "(cached) $ac_c" 1>&6
13194else
90dd450c 13195 cat > conftest.$ac_ext <<EOF
986ecc86 13196#line 13197 "configure"
55e80573 13197#include "confdefs.h"
90dd450c
VZ
13198/* System header to define __stub macros and hopefully few prototypes,
13199 which can conflict with char connect(); below. */
13200#include <assert.h>
13201/* Override any gcc2 internal prototype to avoid an error. */
13202/* We use char because int might match the return type of a gcc2
13203 builtin and then its argument prototype would still apply. */
13204char connect();
55e80573
VZ
13205
13206int main() {
13207
90dd450c
VZ
13208/* The GNU C library defines this for functions which it implements
13209 to always fail with ENOSYS. Some functions are actually named
13210 something starting with __ and the normal name is an alias. */
13211#if defined (__stub_connect) || defined (__stub___connect)
13212choke me
13213#else
13214connect();
13215#endif
13216
55e80573
VZ
13217; return 0; }
13218EOF
986ecc86 13219if { (eval echo configure:13220: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
55e80573 13220 rm -rf conftest*
90dd450c 13221 eval "ac_cv_func_connect=yes"
55e80573
VZ
13222else
13223 echo "configure: failed program was:" >&5
13224 cat conftest.$ac_ext >&5
13225 rm -rf conftest*
90dd450c 13226 eval "ac_cv_func_connect=no"
55e80573
VZ
13227fi
13228rm -f conftest*
55e80573
VZ
13229fi
13230
90dd450c
VZ
13231if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
13232 echo "$ac_t""yes" 1>&6
13233 :
13234else
13235 echo "$ac_t""no" 1>&6
13236fi
55e80573 13237
90dd450c
VZ
13238 if test $ac_cv_func_connect = no; then
13239 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
986ecc86 13240echo "configure:13241: checking for connect in -lsocket" >&5
90dd450c
VZ
13241ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
13242if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13243 echo $ac_n "(cached) $ac_c" 1>&6
13244else
13245 ac_save_LIBS="$LIBS"
13246LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
13247cat > conftest.$ac_ext <<EOF
986ecc86 13248#line 13249 "configure"
90dd450c
VZ
13249#include "confdefs.h"
13250/* Override any gcc2 internal prototype to avoid an error. */
13251/* We use char because int might match the return type of a gcc2
13252 builtin and then its argument prototype would still apply. */
13253char connect();
55e80573 13254
90dd450c
VZ
13255int main() {
13256connect()
13257; return 0; }
13258EOF
986ecc86 13259if { (eval echo configure:13260: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
90dd450c
VZ
13260 rm -rf conftest*
13261 eval "ac_cv_lib_$ac_lib_var=yes"
13262else
13263 echo "configure: failed program was:" >&5
13264 cat conftest.$ac_ext >&5
13265 rm -rf conftest*
13266 eval "ac_cv_lib_$ac_lib_var=no"
13267fi
13268rm -f conftest*
13269LIBS="$ac_save_LIBS"
77e13408 13270
90dd450c
VZ
13271fi
13272if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13273 echo "$ac_t""yes" 1>&6
13274 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
13275else
13276 echo "$ac_t""no" 1>&6
13277fi
77e13408 13278
90dd450c 13279 fi
25d0687a 13280
90dd450c
VZ
13281 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
13282 echo $ac_n "checking for remove""... $ac_c" 1>&6
986ecc86 13283echo "configure:13284: checking for remove" >&5
90dd450c
VZ
13284if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
13285 echo $ac_n "(cached) $ac_c" 1>&6
13286else
13287 cat > conftest.$ac_ext <<EOF
986ecc86 13288#line 13289 "configure"
90dd450c
VZ
13289#include "confdefs.h"
13290/* System header to define __stub macros and hopefully few prototypes,
13291 which can conflict with char remove(); below. */
13292#include <assert.h>
13293/* Override any gcc2 internal prototype to avoid an error. */
13294/* We use char because int might match the return type of a gcc2
13295 builtin and then its argument prototype would still apply. */
13296char remove();
7b7a7637 13297
90dd450c 13298int main() {
55e80573 13299
90dd450c
VZ
13300/* The GNU C library defines this for functions which it implements
13301 to always fail with ENOSYS. Some functions are actually named
13302 something starting with __ and the normal name is an alias. */
13303#if defined (__stub_remove) || defined (__stub___remove)
13304choke me
13305#else
13306remove();
13307#endif
55e80573 13308
90dd450c
VZ
13309; return 0; }
13310EOF
986ecc86 13311if { (eval echo configure:13312: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
90dd450c
VZ
13312 rm -rf conftest*
13313 eval "ac_cv_func_remove=yes"
13314else
13315 echo "configure: failed program was:" >&5
13316 cat conftest.$ac_ext >&5
13317 rm -rf conftest*
13318 eval "ac_cv_func_remove=no"
13319fi
13320rm -f conftest*
13321fi
55e80573 13322
90dd450c
VZ
13323if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
13324 echo "$ac_t""yes" 1>&6
13325 :
13326else
13327 echo "$ac_t""no" 1>&6
13328fi
10f2d63a 13329
90dd450c
VZ
13330 if test $ac_cv_func_remove = no; then
13331 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
986ecc86 13332echo "configure:13333: checking for remove in -lposix" >&5
90dd450c
VZ
13333ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
13334if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13335 echo $ac_n "(cached) $ac_c" 1>&6
13336else
13337 ac_save_LIBS="$LIBS"
13338LIBS="-lposix $LIBS"
13339cat > conftest.$ac_ext <<EOF
986ecc86 13340#line 13341 "configure"
90dd450c
VZ
13341#include "confdefs.h"
13342/* Override any gcc2 internal prototype to avoid an error. */
13343/* We use char because int might match the return type of a gcc2
13344 builtin and then its argument prototype would still apply. */
13345char remove();
55e80573 13346
90dd450c
VZ
13347int main() {
13348remove()
13349; return 0; }
13350EOF
986ecc86 13351if { (eval echo configure:13352: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
90dd450c
VZ
13352 rm -rf conftest*
13353 eval "ac_cv_lib_$ac_lib_var=yes"
13354else
13355 echo "configure: failed program was:" >&5
13356 cat conftest.$ac_ext >&5
13357 rm -rf conftest*
13358 eval "ac_cv_lib_$ac_lib_var=no"
3a922bb4 13359fi
90dd450c
VZ
13360rm -f conftest*
13361LIBS="$ac_save_LIBS"
f6bcfd97 13362
90dd450c
VZ
13363fi
13364if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13365 echo "$ac_t""yes" 1>&6
13366 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
13367else
13368 echo "$ac_t""no" 1>&6
13369fi
f6bcfd97 13370
6fa882bd
RR
13371 fi
13372
90dd450c
VZ
13373 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
13374 echo $ac_n "checking for shmat""... $ac_c" 1>&6
986ecc86 13375echo "configure:13376: checking for shmat" >&5
90dd450c
VZ
13376if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
13377 echo $ac_n "(cached) $ac_c" 1>&6
13378else
13379 cat > conftest.$ac_ext <<EOF
986ecc86 13380#line 13381 "configure"
90dd450c
VZ
13381#include "confdefs.h"
13382/* System header to define __stub macros and hopefully few prototypes,
13383 which can conflict with char shmat(); below. */
13384#include <assert.h>
13385/* Override any gcc2 internal prototype to avoid an error. */
13386/* We use char because int might match the return type of a gcc2
13387 builtin and then its argument prototype would still apply. */
13388char shmat();
698dcdb6 13389
90dd450c 13390int main() {
3a922bb4 13391
90dd450c
VZ
13392/* The GNU C library defines this for functions which it implements
13393 to always fail with ENOSYS. Some functions are actually named
13394 something starting with __ and the normal name is an alias. */
13395#if defined (__stub_shmat) || defined (__stub___shmat)
13396choke me
13397#else
13398shmat();
13399#endif
10f2d63a 13400
90dd450c
VZ
13401; return 0; }
13402EOF
986ecc86 13403if { (eval echo configure:13404: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
90dd450c
VZ
13404 rm -rf conftest*
13405 eval "ac_cv_func_shmat=yes"
d08b457b 13406else
90dd450c
VZ
13407 echo "configure: failed program was:" >&5
13408 cat conftest.$ac_ext >&5
13409 rm -rf conftest*
13410 eval "ac_cv_func_shmat=no"
d08b457b 13411fi
90dd450c 13412rm -f conftest*
d08b457b 13413fi
90dd450c
VZ
13414
13415if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
13416 echo "$ac_t""yes" 1>&6
13417 :
d08b457b
GD
13418else
13419 echo "$ac_t""no" 1>&6
13420fi
13421
90dd450c
VZ
13422 if test $ac_cv_func_shmat = no; then
13423 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
986ecc86 13424echo "configure:13425: checking for shmat in -lipc" >&5
90dd450c
VZ
13425ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
13426if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
d08b457b
GD
13427 echo $ac_n "(cached) $ac_c" 1>&6
13428else
90dd450c
VZ
13429 ac_save_LIBS="$LIBS"
13430LIBS="-lipc $LIBS"
13431cat > conftest.$ac_ext <<EOF
986ecc86 13432#line 13433 "configure"
90dd450c
VZ
13433#include "confdefs.h"
13434/* Override any gcc2 internal prototype to avoid an error. */
13435/* We use char because int might match the return type of a gcc2
13436 builtin and then its argument prototype would still apply. */
13437char shmat();
13438
13439int main() {
13440shmat()
13441; return 0; }
13442EOF
986ecc86 13443if { (eval echo configure:13444: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
90dd450c
VZ
13444 rm -rf conftest*
13445 eval "ac_cv_lib_$ac_lib_var=yes"
d08b457b 13446else
90dd450c
VZ
13447 echo "configure: failed program was:" >&5
13448 cat conftest.$ac_ext >&5
13449 rm -rf conftest*
13450 eval "ac_cv_lib_$ac_lib_var=no"
d08b457b 13451fi
90dd450c
VZ
13452rm -f conftest*
13453LIBS="$ac_save_LIBS"
13454
d08b457b 13455fi
90dd450c
VZ
13456if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13457 echo "$ac_t""yes" 1>&6
13458 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
d08b457b
GD
13459else
13460 echo "$ac_t""no" 1>&6
13461fi
13462
d558c907 13463 fi
90dd450c 13464 fi
3a922bb4 13465
90dd450c
VZ
13466 # Check for libraries that X11R6 Xt/Xaw programs need.
13467 ac_save_LDFLAGS="$LDFLAGS"
13468 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
13469 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
13470 # check for ICE first), but we must link in the order -lSM -lICE or
13471 # we get undefined symbols. So assume we have SM if we have ICE.
13472 # These have to be linked with before -lX11, unlike the other
13473 # libraries we check for below, so use a different variable.
13474 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
13475 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
986ecc86 13476echo "configure:13477: checking for IceConnectionNumber in -lICE" >&5
90dd450c
VZ
13477ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
13478if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
698dcdb6
VZ
13479 echo $ac_n "(cached) $ac_c" 1>&6
13480else
90dd450c
VZ
13481 ac_save_LIBS="$LIBS"
13482LIBS="-lICE $X_EXTRA_LIBS $LIBS"
13483cat > conftest.$ac_ext <<EOF
986ecc86 13484#line 13485 "configure"
9cfadba2 13485#include "confdefs.h"
90dd450c
VZ
13486/* Override any gcc2 internal prototype to avoid an error. */
13487/* We use char because int might match the return type of a gcc2
13488 builtin and then its argument prototype would still apply. */
13489char IceConnectionNumber();
13490
13491int main() {
13492IceConnectionNumber()
13493; return 0; }
698dcdb6 13494EOF
986ecc86 13495if { (eval echo configure:13496: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6 13496 rm -rf conftest*
90dd450c 13497 eval "ac_cv_lib_$ac_lib_var=yes"
6232543b 13498else
698dcdb6 13499 echo "configure: failed program was:" >&5
9cfadba2 13500 cat conftest.$ac_ext >&5
698dcdb6 13501 rm -rf conftest*
90dd450c 13502 eval "ac_cv_lib_$ac_lib_var=no"
9cfadba2 13503fi
698dcdb6 13504rm -f conftest*
90dd450c
VZ
13505LIBS="$ac_save_LIBS"
13506
9cfadba2 13507fi
90dd450c 13508if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
698dcdb6 13509 echo "$ac_t""yes" 1>&6
90dd450c 13510 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
698dcdb6
VZ
13511else
13512 echo "$ac_t""no" 1>&6
9cfadba2 13513fi
10f2d63a 13514
90dd450c
VZ
13515 LDFLAGS="$ac_save_LDFLAGS"
13516
13517fi
13518
13519
13520 if test "$no_x" = "yes"; then
13521 { echo "configure: error: X11 not found" 1>&2; exit 1; }
13522 fi
13523
13524 GUI_TK_LIBRARY="$X_LIBS"
13525 TOOLKIT_INCLUDE="$X_CFLAGS"
13526 AFMINSTALL=afminstall
13527 COMPILED_X_PROGRAM=0
13528
21d1c967
GD
13529 if test "$wxUSE_NANOX" = "yes"; then
13530 echo $ac_n "checking for MicroWindows/NanoX distribution""... $ac_c" 1>&6
986ecc86 13531echo "configure:13532: checking for MicroWindows/NanoX distribution" >&5
21d1c967
GD
13532 if test "x$MICROWIN" = x ; then
13533 echo "$ac_t""not found" 1>&6
13534 { echo "configure: error: Cannot find MicroWindows library. Make sure MICROWIN is set." 1>&2; exit 1; }
90dd450c 13535 else
21d1c967
GD
13536 echo "$ac_t""$MICROWIN" 1>&6
13537 cat >> confdefs.h <<\EOF
13538#define wxUSE_NANOX 1
698dcdb6 13539EOF
21d1c967 13540
90dd450c
VZ
13541 fi
13542 fi
13543
13544 xpm_link=
13545 echo $ac_n "checking for Xpm library""... $ac_c" 1>&6
986ecc86 13546echo "configure:13547: checking for Xpm library" >&5
90dd450c
VZ
13547
13548ac_find_libraries=
13549for ac_dir in $SEARCH_LIB;
13550 do
13551 for ac_extension in a so sl dylib; do
13552 if test -f "$ac_dir/libXpm.$ac_extension"; then
13553 ac_find_libraries=$ac_dir
13554 break 2
13555 fi
13556 done
13557 done
13558
13559 if test "$ac_find_libraries" != "" ; then
13560
13561 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
13562 result=$?
13563 if test $result = 0; then
13564 ac_path_to_link=""
13565 else
13566 ac_path_to_link=" -L$ac_find_libraries"
21d1c967 13567 fi
90dd450c 13568
21d1c967
GD
13569 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
13570 xpm_link=" -lXpm"
13571 cat >> confdefs.h <<\EOF
13572#define wxHAVE_LIB_XPM 1
13573EOF
90dd450c 13574
21d1c967
GD
13575 echo "$ac_t""found at $ac_find_libraries" 1>&6
13576 else
13577 cat > conftest.$ac_ext <<EOF
986ecc86 13578#line 13579 "configure"
21d1c967 13579#include "confdefs.h"
90dd450c 13580
21d1c967
GD
13581 #include <X11/xpm.h>
13582
13583int main() {
6f72b082 13584
21d1c967
GD
13585 int version;
13586 version = XpmLibraryVersion();
13587
13588; return 0; }
13589EOF
986ecc86 13590if { (eval echo configure:13591: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21d1c967
GD
13591 rm -rf conftest*
13592
13593 xpm_link=" -lXpm"
13594 cat >> confdefs.h <<\EOF
13595#define wxHAVE_LIB_XPM 1
13596EOF
90dd450c 13597
21d1c967
GD
13598 echo "$ac_t""found in default search path" 1>&6
13599 COMPILED_X_PROGRAM=0
13600
13601else
13602 echo "configure: failed program was:" >&5
13603 cat conftest.$ac_ext >&5
13604 rm -rf conftest*
13605
13606 echo "$ac_t""no" 1>&6
13607 echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2
13608
13609
6f72b082 13610fi
21d1c967
GD
13611rm -f conftest*
13612 fi
90dd450c 13613
1d1b75ac
VZ
13614 wxUSE_UNIVERSAL="yes"
13615
21d1c967
GD
13616 if test "$wxUSE_NANOX" = "yes"; then
13617 TOOLKIT_INCLUDE="-I\$(top_srcdir)/include/wx/x11/nanox -I\$(MICROWIN)/src/include $TOOLKIT_INCLUDE"
13618 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__NANOX__ -DMWPIXEL_FORMAT=MWPF_TRUECOLOR0888 -DHAVE_FILEIO -DHAVE_BMP_SUPPORT=1 -DHAVE_GIF_SUPPORT=1 -DHAVE_PNM_SUPPORT=1 -DHAVE_XPM_SUPPORT=1 -DLINUX=1 -DUNIX=1 -DUSE_EXPOSURE -DSCREEN_HEIGHT=480 -DSCREEN_WIDTH=640 -DSCREEN_DEPTH=4 -DX11=1"
13619 GUI_TK_LIBRARY="$GUI_TK_LIBRARY \$(MICROWIN)/src/lib/libnano-X.a"
13620 else
13621 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lX11$xpm_link"
13622 fi
6f72b082 13623
21d1c967
GD
13624 TOOLKIT_VPATH="\${top_srcdir}/src/x11"
13625 TOOLKIT=X11
13626 GUIDIST=X11_DIST
13627 fi
90dd450c 13628
21d1c967
GD
13629 if test "$wxUSE_WINE" = 1; then
13630 ac_safe=`echo "windows.h" | sed 'y%./+-%__p_%'`
13631echo $ac_n "checking for windows.h""... $ac_c" 1>&6
986ecc86 13632echo "configure:13633: checking for windows.h" >&5
698dcdb6
VZ
13633if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
13634 echo $ac_n "(cached) $ac_c" 1>&6
13635else
13636 cat > conftest.$ac_ext <<EOF
986ecc86 13637#line 13638 "configure"
6f72b082 13638#include "confdefs.h"
21d1c967 13639#include <windows.h>
698dcdb6
VZ
13640EOF
13641ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
986ecc86 13642{ (eval echo configure:13643: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
13643ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13644if test -z "$ac_err"; then
13645 rm -rf conftest*
13646 eval "ac_cv_header_$ac_safe=yes"
10f2d63a 13647else
698dcdb6
VZ
13648 echo "$ac_err" >&5
13649 echo "configure: failed program was:" >&5
10f2d63a 13650 cat conftest.$ac_ext >&5
698dcdb6
VZ
13651 rm -rf conftest*
13652 eval "ac_cv_header_$ac_safe=no"
10f2d63a 13653fi
698dcdb6 13654rm -f conftest*
10f2d63a 13655fi
698dcdb6
VZ
13656if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13657 echo "$ac_t""yes" 1>&6
21d1c967
GD
13658 :
13659else
13660 echo "$ac_t""no" 1>&6
13661
13662 { echo "configure: error: please set CFLAGS to contain the location of windows.h" 1>&2; exit 1; }
13663
13664fi
13665
13666
13667 xpm_link=
13668 echo $ac_n "checking for Xpm library""... $ac_c" 1>&6
986ecc86 13669echo "configure:13670: checking for Xpm library" >&5
21d1c967 13670
90dd450c
VZ
13671ac_find_libraries=
13672for ac_dir in $SEARCH_LIB;
13673 do
13674 for ac_extension in a so sl dylib; do
21d1c967 13675 if test -f "$ac_dir/libXpm.$ac_extension"; then
90dd450c
VZ
13676 ac_find_libraries=$ac_dir
13677 break 2
13678 fi
13679 done
13680 done
13681
21d1c967
GD
13682 if test "$ac_find_libraries" != "" ; then
13683 GUI_TK_LIBRARY="-L$ac_find_libraries"
13684 xpm_link=" -lXpm"
13685 cat >> confdefs.h <<\EOF
13686#define wxHAVE_LIB_XPM 1
13687EOF
90dd450c 13688
21d1c967
GD
13689 echo "$ac_t""found at $ac_find_libraries" 1>&6
13690 else
13691 echo "$ac_t""no" 1>&6
13692 echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2
13693 fi
13694
13695 mesa_link=
13696 echo $ac_n "checking for Mesa library""... $ac_c" 1>&6
986ecc86 13697echo "configure:13698: checking for Mesa library" >&5
21d1c967 13698
90dd450c
VZ
13699ac_find_libraries=
13700for ac_dir in $SEARCH_LIB;
13701 do
13702 for ac_extension in a so sl dylib; do
13703 if test -f "$ac_dir/libMesaGL.$ac_extension"; then
13704 ac_find_libraries=$ac_dir
13705 break 2
13706 fi
13707 done
13708 done
13709
21d1c967
GD
13710 if test "$ac_find_libraries" != "" ; then
13711 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -L$ac_find_libraries"
13712 mesa_link=" -lMesaGL"
13713 echo "$ac_t""found at $ac_find_libraries" 1>&6
13714 else
13715 { echo "configure: error: no" 1>&2; exit 1; }
13716 fi
13717
13718 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lwine$mesa_link$xpm_link -lXxf86dga -lXxf86vm -lSM -lICE -lXext -lXmu -lX11 -lncurses"
13719 TOOLKIT=MSW
13720 GUIDIST=MSW_DIST
13721 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXWINE__"
13722 fi
13723
13724 if test "$wxUSE_MOTIF" = 1; then
13725 if test "$no_x" = yes; then
13726 # Not all programs may use this symbol, but it does not hurt to define it.
13727 cat >> confdefs.h <<\EOF
13728#define X_DISPLAY_MISSING 1
13729EOF
13730
13731 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
13732else
13733 if test -n "$x_includes"; then
13734 X_CFLAGS="$X_CFLAGS -I$x_includes"
90dd450c
VZ
13735 fi
13736
21d1c967
GD
13737 # It would also be nice to do this for all -L options, not just this one.
13738 if test -n "$x_libraries"; then
13739 X_LIBS="$X_LIBS -L$x_libraries"
13740 # For Solaris; some versions of Sun CC require a space after -R and
13741 # others require no space. Words are not sufficient . . . .
13742 case "`(uname -sr) 2>/dev/null`" in
13743 "SunOS 5"*)
13744 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
986ecc86 13745echo "configure:13746: checking whether -R must be followed by a space" >&5
21d1c967
GD
13746 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
13747 cat > conftest.$ac_ext <<EOF
986ecc86 13748#line 13749 "configure"
21d1c967
GD
13749#include "confdefs.h"
13750
13751int main() {
13752
13753; return 0; }
13754EOF
986ecc86 13755if { (eval echo configure:13756: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21d1c967
GD
13756 rm -rf conftest*
13757 ac_R_nospace=yes
698dcdb6 13758else
21d1c967
GD
13759 echo "configure: failed program was:" >&5
13760 cat conftest.$ac_ext >&5
13761 rm -rf conftest*
13762 ac_R_nospace=no
10f2d63a 13763fi
21d1c967
GD
13764rm -f conftest*
13765 if test $ac_R_nospace = yes; then
13766 echo "$ac_t""no" 1>&6
13767 X_LIBS="$X_LIBS -R$x_libraries"
13768 else
13769 LIBS="$ac_xsave_LIBS -R $x_libraries"
13770 cat > conftest.$ac_ext <<EOF
986ecc86 13771#line 13772 "configure"
21d1c967 13772#include "confdefs.h"
10f2d63a 13773
21d1c967 13774int main() {
f0c87536 13775
21d1c967 13776; return 0; }
698dcdb6 13777EOF
986ecc86 13778if { (eval echo configure:13779: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21d1c967
GD
13779 rm -rf conftest*
13780 ac_R_space=yes
13781else
13782 echo "configure: failed program was:" >&5
13783 cat conftest.$ac_ext >&5
13784 rm -rf conftest*
13785 ac_R_space=no
13786fi
13787rm -f conftest*
13788 if test $ac_R_space = yes; then
13789 echo "$ac_t""yes" 1>&6
13790 X_LIBS="$X_LIBS -R $x_libraries"
13791 else
13792 echo "$ac_t""neither works" 1>&6
13793 fi
13794 fi
13795 LIBS="$ac_xsave_LIBS"
13796 esac
13797 fi
90dd450c 13798
21d1c967
GD
13799 # Check for system-dependent libraries X programs must link with.
13800 # Do this before checking for the system-independent R6 libraries
13801 # (-lICE), since we may need -lsocket or whatever for X linking.
13802
13803 if test "$ISC" = yes; then
13804 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
13805 else
13806 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
13807 # libraries were built with DECnet support. And karl@cs.umb.edu says
13808 # the Alpha needs dnet_stub (dnet does not exist).
13809 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
986ecc86 13810echo "configure:13811: checking for dnet_ntoa in -ldnet" >&5
21d1c967
GD
13811ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
13812if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13813 echo $ac_n "(cached) $ac_c" 1>&6
13814else
13815 ac_save_LIBS="$LIBS"
13816LIBS="-ldnet $LIBS"
13817cat > conftest.$ac_ext <<EOF
986ecc86 13818#line 13819 "configure"
21d1c967
GD
13819#include "confdefs.h"
13820/* Override any gcc2 internal prototype to avoid an error. */
13821/* We use char because int might match the return type of a gcc2
13822 builtin and then its argument prototype would still apply. */
13823char dnet_ntoa();
13824
13825int main() {
13826dnet_ntoa()
13827; return 0; }
90dd450c 13828EOF
986ecc86 13829if { (eval echo configure:13830: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21d1c967
GD
13830 rm -rf conftest*
13831 eval "ac_cv_lib_$ac_lib_var=yes"
13832else
13833 echo "configure: failed program was:" >&5
13834 cat conftest.$ac_ext >&5
13835 rm -rf conftest*
13836 eval "ac_cv_lib_$ac_lib_var=no"
0fb0dd83 13837fi
21d1c967
GD
13838rm -f conftest*
13839LIBS="$ac_save_LIBS"
90dd450c 13840
0fb0dd83 13841fi
21d1c967
GD
13842if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13843 echo "$ac_t""yes" 1>&6
13844 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
13845else
13846 echo "$ac_t""no" 1>&6
0fb0dd83 13847fi
0fb0dd83 13848
21d1c967
GD
13849 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
13850 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
986ecc86 13851echo "configure:13852: checking for dnet_ntoa in -ldnet_stub" >&5
21d1c967
GD
13852ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
13853if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13854 echo $ac_n "(cached) $ac_c" 1>&6
13855else
13856 ac_save_LIBS="$LIBS"
13857LIBS="-ldnet_stub $LIBS"
13858cat > conftest.$ac_ext <<EOF
986ecc86 13859#line 13860 "configure"
21d1c967
GD
13860#include "confdefs.h"
13861/* Override any gcc2 internal prototype to avoid an error. */
13862/* We use char because int might match the return type of a gcc2
13863 builtin and then its argument prototype would still apply. */
13864char dnet_ntoa();
90dd450c 13865
21d1c967
GD
13866int main() {
13867dnet_ntoa()
13868; return 0; }
13869EOF
986ecc86 13870if { (eval echo configure:13871: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21d1c967
GD
13871 rm -rf conftest*
13872 eval "ac_cv_lib_$ac_lib_var=yes"
13873else
13874 echo "configure: failed program was:" >&5
13875 cat conftest.$ac_ext >&5
13876 rm -rf conftest*
13877 eval "ac_cv_lib_$ac_lib_var=no"
90dd450c 13878fi
21d1c967
GD
13879rm -f conftest*
13880LIBS="$ac_save_LIBS"
90dd450c 13881
21d1c967
GD
13882fi
13883if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13884 echo "$ac_t""yes" 1>&6
13885 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
13886else
13887 echo "$ac_t""no" 1>&6
90dd450c
VZ
13888fi
13889
21d1c967 13890 fi
90dd450c 13891
21d1c967
GD
13892 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
13893 # to get the SysV transport functions.
13894 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
13895 # needs -lnsl.
13896 # The nsl library prevents programs from opening the X display
13897 # on Irix 5.2, according to dickey@clark.net.
13898 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
986ecc86 13899echo "configure:13900: checking for gethostbyname" >&5
21d1c967
GD
13900if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
13901 echo $ac_n "(cached) $ac_c" 1>&6
13902else
13903 cat > conftest.$ac_ext <<EOF
986ecc86 13904#line 13905 "configure"
21d1c967
GD
13905#include "confdefs.h"
13906/* System header to define __stub macros and hopefully few prototypes,
13907 which can conflict with char gethostbyname(); below. */
13908#include <assert.h>
13909/* Override any gcc2 internal prototype to avoid an error. */
13910/* We use char because int might match the return type of a gcc2
13911 builtin and then its argument prototype would still apply. */
13912char gethostbyname();
90dd450c 13913
21d1c967 13914int main() {
90dd450c 13915
21d1c967
GD
13916/* The GNU C library defines this for functions which it implements
13917 to always fail with ENOSYS. Some functions are actually named
13918 something starting with __ and the normal name is an alias. */
13919#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
13920choke me
13921#else
13922gethostbyname();
13923#endif
90dd450c 13924
21d1c967
GD
13925; return 0; }
13926EOF
986ecc86 13927if { (eval echo configure:13928: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21d1c967
GD
13928 rm -rf conftest*
13929 eval "ac_cv_func_gethostbyname=yes"
13930else
13931 echo "configure: failed program was:" >&5
13932 cat conftest.$ac_ext >&5
13933 rm -rf conftest*
13934 eval "ac_cv_func_gethostbyname=no"
13935fi
13936rm -f conftest*
90dd450c
VZ
13937fi
13938
21d1c967
GD
13939if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
13940 echo "$ac_t""yes" 1>&6
13941 :
13942else
13943 echo "$ac_t""no" 1>&6
13944fi
90dd450c 13945
21d1c967
GD
13946 if test $ac_cv_func_gethostbyname = no; then
13947 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
986ecc86 13948echo "configure:13949: checking for gethostbyname in -lnsl" >&5
21d1c967
GD
13949ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
13950if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13951 echo $ac_n "(cached) $ac_c" 1>&6
13952else
13953 ac_save_LIBS="$LIBS"
13954LIBS="-lnsl $LIBS"
13955cat > conftest.$ac_ext <<EOF
986ecc86 13956#line 13957 "configure"
21d1c967
GD
13957#include "confdefs.h"
13958/* Override any gcc2 internal prototype to avoid an error. */
13959/* We use char because int might match the return type of a gcc2
13960 builtin and then its argument prototype would still apply. */
13961char gethostbyname();
90dd450c 13962
21d1c967
GD
13963int main() {
13964gethostbyname()
13965; return 0; }
13966EOF
986ecc86 13967if { (eval echo configure:13968: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21d1c967
GD
13968 rm -rf conftest*
13969 eval "ac_cv_lib_$ac_lib_var=yes"
13970else
13971 echo "configure: failed program was:" >&5
13972 cat conftest.$ac_ext >&5
13973 rm -rf conftest*
13974 eval "ac_cv_lib_$ac_lib_var=no"
1f8ae82f 13975fi
21d1c967
GD
13976rm -f conftest*
13977LIBS="$ac_save_LIBS"
f0c87536 13978
21d1c967
GD
13979fi
13980if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13981 echo "$ac_t""yes" 1>&6
13982 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
13983else
13984 echo "$ac_t""no" 1>&6
13985fi
90dd450c 13986
90dd450c
VZ
13987 fi
13988
21d1c967
GD
13989 # lieder@skyler.mavd.honeywell.com says without -lsocket,
13990 # socket/setsockopt and other routines are undefined under SCO ODT
13991 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
13992 # on later versions), says simon@lia.di.epfl.ch: it contains
13993 # gethostby* variants that don't use the nameserver (or something).
13994 # -lsocket must be given before -lnsl if both are needed.
13995 # We assume that if connect needs -lnsl, so does gethostbyname.
13996 echo $ac_n "checking for connect""... $ac_c" 1>&6
986ecc86 13997echo "configure:13998: checking for connect" >&5
21d1c967
GD
13998if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
13999 echo $ac_n "(cached) $ac_c" 1>&6
14000else
14001 cat > conftest.$ac_ext <<EOF
986ecc86 14002#line 14003 "configure"
21d1c967
GD
14003#include "confdefs.h"
14004/* System header to define __stub macros and hopefully few prototypes,
14005 which can conflict with char connect(); below. */
14006#include <assert.h>
14007/* Override any gcc2 internal prototype to avoid an error. */
14008/* We use char because int might match the return type of a gcc2
14009 builtin and then its argument prototype would still apply. */
14010char connect();
90dd450c 14011
21d1c967 14012int main() {
90dd450c 14013
21d1c967
GD
14014/* The GNU C library defines this for functions which it implements
14015 to always fail with ENOSYS. Some functions are actually named
14016 something starting with __ and the normal name is an alias. */
14017#if defined (__stub_connect) || defined (__stub___connect)
14018choke me
14019#else
14020connect();
14021#endif
90dd450c 14022
21d1c967
GD
14023; return 0; }
14024EOF
986ecc86 14025if { (eval echo configure:14026: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21d1c967
GD
14026 rm -rf conftest*
14027 eval "ac_cv_func_connect=yes"
14028else
14029 echo "configure: failed program was:" >&5
14030 cat conftest.$ac_ext >&5
14031 rm -rf conftest*
14032 eval "ac_cv_func_connect=no"
14033fi
14034rm -f conftest*
14035fi
90dd450c 14036
21d1c967
GD
14037if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
14038 echo "$ac_t""yes" 1>&6
14039 :
14040else
14041 echo "$ac_t""no" 1>&6
14042fi
1f8ae82f 14043
21d1c967
GD
14044 if test $ac_cv_func_connect = no; then
14045 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
986ecc86 14046echo "configure:14047: checking for connect in -lsocket" >&5
21d1c967
GD
14047ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
14048if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
0fbb762e
MB
14049 echo $ac_n "(cached) $ac_c" 1>&6
14050else
21d1c967
GD
14051 ac_save_LIBS="$LIBS"
14052LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
14053cat > conftest.$ac_ext <<EOF
986ecc86 14054#line 14055 "configure"
0fbb762e 14055#include "confdefs.h"
21d1c967
GD
14056/* Override any gcc2 internal prototype to avoid an error. */
14057/* We use char because int might match the return type of a gcc2
14058 builtin and then its argument prototype would still apply. */
14059char connect();
90dd450c
VZ
14060
14061int main() {
21d1c967 14062connect()
90dd450c 14063; return 0; }
0fbb762e 14064EOF
986ecc86 14065if { (eval echo configure:14066: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
0fbb762e 14066 rm -rf conftest*
21d1c967 14067 eval "ac_cv_lib_$ac_lib_var=yes"
0fbb762e 14068else
0fbb762e
MB
14069 echo "configure: failed program was:" >&5
14070 cat conftest.$ac_ext >&5
14071 rm -rf conftest*
21d1c967 14072 eval "ac_cv_lib_$ac_lib_var=no"
0fbb762e
MB
14073fi
14074rm -f conftest*
21d1c967 14075LIBS="$ac_save_LIBS"
90dd450c 14076
21d1c967
GD
14077fi
14078if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14079 echo "$ac_t""yes" 1>&6
14080 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
14081else
14082 echo "$ac_t""no" 1>&6
14083fi
90dd450c 14084
21d1c967 14085 fi
90dd450c 14086
21d1c967
GD
14087 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
14088 echo $ac_n "checking for remove""... $ac_c" 1>&6
986ecc86 14089echo "configure:14090: checking for remove" >&5
21d1c967
GD
14090if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
14091 echo $ac_n "(cached) $ac_c" 1>&6
14092else
14093 cat > conftest.$ac_ext <<EOF
986ecc86 14094#line 14095 "configure"
21d1c967
GD
14095#include "confdefs.h"
14096/* System header to define __stub macros and hopefully few prototypes,
14097 which can conflict with char remove(); below. */
14098#include <assert.h>
14099/* Override any gcc2 internal prototype to avoid an error. */
14100/* We use char because int might match the return type of a gcc2
14101 builtin and then its argument prototype would still apply. */
14102char remove();
90dd450c 14103
21d1c967 14104int main() {
90dd450c 14105
21d1c967
GD
14106/* The GNU C library defines this for functions which it implements
14107 to always fail with ENOSYS. Some functions are actually named
14108 something starting with __ and the normal name is an alias. */
14109#if defined (__stub_remove) || defined (__stub___remove)
14110choke me
14111#else
14112remove();
14113#endif
90dd450c 14114
21d1c967
GD
14115; return 0; }
14116EOF
986ecc86 14117if { (eval echo configure:14118: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21d1c967
GD
14118 rm -rf conftest*
14119 eval "ac_cv_func_remove=yes"
14120else
14121 echo "configure: failed program was:" >&5
14122 cat conftest.$ac_ext >&5
14123 rm -rf conftest*
14124 eval "ac_cv_func_remove=no"
14125fi
14126rm -f conftest*
14127fi
90dd450c 14128
21d1c967
GD
14129if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
14130 echo "$ac_t""yes" 1>&6
14131 :
14132else
14133 echo "$ac_t""no" 1>&6
14134fi
90dd450c 14135
21d1c967
GD
14136 if test $ac_cv_func_remove = no; then
14137 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
986ecc86 14138echo "configure:14139: checking for remove in -lposix" >&5
21d1c967
GD
14139ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
14140if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14141 echo $ac_n "(cached) $ac_c" 1>&6
14142else
14143 ac_save_LIBS="$LIBS"
14144LIBS="-lposix $LIBS"
14145cat > conftest.$ac_ext <<EOF
986ecc86 14146#line 14147 "configure"
21d1c967
GD
14147#include "confdefs.h"
14148/* Override any gcc2 internal prototype to avoid an error. */
14149/* We use char because int might match the return type of a gcc2
14150 builtin and then its argument prototype would still apply. */
14151char remove();
90dd450c 14152
21d1c967
GD
14153int main() {
14154remove()
14155; return 0; }
14156EOF
986ecc86 14157if { (eval echo configure:14158: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21d1c967
GD
14158 rm -rf conftest*
14159 eval "ac_cv_lib_$ac_lib_var=yes"
14160else
14161 echo "configure: failed program was:" >&5
14162 cat conftest.$ac_ext >&5
14163 rm -rf conftest*
14164 eval "ac_cv_lib_$ac_lib_var=no"
0fbb762e 14165fi
21d1c967
GD
14166rm -f conftest*
14167LIBS="$ac_save_LIBS"
0fbb762e 14168
21d1c967
GD
14169fi
14170if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14171 echo "$ac_t""yes" 1>&6
14172 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
14173else
14174 echo "$ac_t""no" 1>&6
14175fi
19bc6aad 14176
90dd450c 14177 fi
19bc6aad 14178
21d1c967
GD
14179 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
14180 echo $ac_n "checking for shmat""... $ac_c" 1>&6
986ecc86 14181echo "configure:14182: checking for shmat" >&5
21d1c967
GD
14182if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
14183 echo $ac_n "(cached) $ac_c" 1>&6
14184else
14185 cat > conftest.$ac_ext <<EOF
986ecc86 14186#line 14187 "configure"
21d1c967
GD
14187#include "confdefs.h"
14188/* System header to define __stub macros and hopefully few prototypes,
14189 which can conflict with char shmat(); below. */
14190#include <assert.h>
14191/* Override any gcc2 internal prototype to avoid an error. */
14192/* We use char because int might match the return type of a gcc2
14193 builtin and then its argument prototype would still apply. */
14194char shmat();
19bc6aad 14195
21d1c967 14196int main() {
90dd450c 14197
21d1c967
GD
14198/* The GNU C library defines this for functions which it implements
14199 to always fail with ENOSYS. Some functions are actually named
14200 something starting with __ and the normal name is an alias. */
14201#if defined (__stub_shmat) || defined (__stub___shmat)
14202choke me
14203#else
14204shmat();
14205#endif
90dd450c 14206
21d1c967
GD
14207; return 0; }
14208EOF
986ecc86 14209if { (eval echo configure:14210: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21d1c967
GD
14210 rm -rf conftest*
14211 eval "ac_cv_func_shmat=yes"
90dd450c 14212else
21d1c967
GD
14213 echo "configure: failed program was:" >&5
14214 cat conftest.$ac_ext >&5
14215 rm -rf conftest*
14216 eval "ac_cv_func_shmat=no"
19bc6aad 14217fi
21d1c967 14218rm -f conftest*
19bc6aad 14219fi
21d1c967
GD
14220
14221if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
14222 echo "$ac_t""yes" 1>&6
14223 :
19bc6aad
VZ
14224else
14225 echo "$ac_t""no" 1>&6
14226fi
19bc6aad 14227
21d1c967
GD
14228 if test $ac_cv_func_shmat = no; then
14229 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
986ecc86 14230echo "configure:14231: checking for shmat in -lipc" >&5
21d1c967
GD
14231ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
14232if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9f8148b1
GD
14233 echo $ac_n "(cached) $ac_c" 1>&6
14234else
21d1c967
GD
14235 ac_save_LIBS="$LIBS"
14236LIBS="-lipc $LIBS"
14237cat > conftest.$ac_ext <<EOF
986ecc86 14238#line 14239 "configure"
21d1c967
GD
14239#include "confdefs.h"
14240/* Override any gcc2 internal prototype to avoid an error. */
14241/* We use char because int might match the return type of a gcc2
14242 builtin and then its argument prototype would still apply. */
14243char shmat();
14244
14245int main() {
14246shmat()
14247; return 0; }
14248EOF
986ecc86 14249if { (eval echo configure:14250: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21d1c967
GD
14250 rm -rf conftest*
14251 eval "ac_cv_lib_$ac_lib_var=yes"
9f8148b1 14252else
21d1c967
GD
14253 echo "configure: failed program was:" >&5
14254 cat conftest.$ac_ext >&5
14255 rm -rf conftest*
14256 eval "ac_cv_lib_$ac_lib_var=no"
9f8148b1 14257fi
21d1c967
GD
14258rm -f conftest*
14259LIBS="$ac_save_LIBS"
14260
9f8148b1 14261fi
21d1c967
GD
14262if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14263 echo "$ac_t""yes" 1>&6
14264 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
9f8148b1
GD
14265else
14266 echo "$ac_t""no" 1>&6
14267fi
90dd450c 14268
90dd450c 14269 fi
21d1c967 14270 fi
10f2d63a 14271
21d1c967
GD
14272 # Check for libraries that X11R6 Xt/Xaw programs need.
14273 ac_save_LDFLAGS="$LDFLAGS"
14274 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
14275 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
14276 # check for ICE first), but we must link in the order -lSM -lICE or
14277 # we get undefined symbols. So assume we have SM if we have ICE.
14278 # These have to be linked with before -lX11, unlike the other
14279 # libraries we check for below, so use a different variable.
14280 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
14281 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
986ecc86 14282echo "configure:14283: checking for IceConnectionNumber in -lICE" >&5
21d1c967
GD
14283ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
14284if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
29fd3c0c
VS
14285 echo $ac_n "(cached) $ac_c" 1>&6
14286else
21d1c967
GD
14287 ac_save_LIBS="$LIBS"
14288LIBS="-lICE $X_EXTRA_LIBS $LIBS"
14289cat > conftest.$ac_ext <<EOF
986ecc86 14290#line 14291 "configure"
29fd3c0c 14291#include "confdefs.h"
21d1c967
GD
14292/* Override any gcc2 internal prototype to avoid an error. */
14293/* We use char because int might match the return type of a gcc2
14294 builtin and then its argument prototype would still apply. */
14295char IceConnectionNumber();
14296
14297int main() {
14298IceConnectionNumber()
14299; return 0; }
29fd3c0c 14300EOF
986ecc86 14301if { (eval echo configure:14302: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
29fd3c0c 14302 rm -rf conftest*
21d1c967 14303 eval "ac_cv_lib_$ac_lib_var=yes"
29fd3c0c 14304else
29fd3c0c
VS
14305 echo "configure: failed program was:" >&5
14306 cat conftest.$ac_ext >&5
14307 rm -rf conftest*
21d1c967 14308 eval "ac_cv_lib_$ac_lib_var=no"
29fd3c0c
VS
14309fi
14310rm -f conftest*
21d1c967
GD
14311LIBS="$ac_save_LIBS"
14312
29fd3c0c 14313fi
21d1c967 14314if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
29fd3c0c 14315 echo "$ac_t""yes" 1>&6
21d1c967 14316 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
29fd3c0c
VS
14317else
14318 echo "$ac_t""no" 1>&6
14319fi
21d1c967
GD
14320
14321 LDFLAGS="$ac_save_LDFLAGS"
29fd3c0c 14322
10f2d63a
VZ
14323fi
14324
21d1c967
GD
14325
14326 if test "$no_x" = "yes"; then
14327 { echo "configure: error: X11 not found" 1>&2; exit 1; }
14328 fi
14329
14330 GUI_TK_LIBRARY="$X_LIBS"
14331 TOOLKIT_INCLUDE="$X_CFLAGS"
14332 AFMINSTALL=afminstall
14333 COMPILED_X_PROGRAM=0
14334
14335 echo $ac_n "checking for Motif/Lesstif headers""... $ac_c" 1>&6
986ecc86 14336echo "configure:14337: checking for Motif/Lesstif headers" >&5
21d1c967
GD
14337
14338ac_find_includes=
14339for ac_dir in $SEARCH_INCLUDE;
14340 do
14341 if test -f "$ac_dir/Xm/Xm.h"; then
14342 ac_find_includes=$ac_dir
14343 break
14344 fi
14345 done
14346
14347 if test "$ac_find_includes" != "" ; then
14348 echo "$ac_t""found $ac_find_includes" 1>&6
14349 else
14350 cat > conftest.$ac_ext <<EOF
986ecc86 14351#line 14352 "configure"
10f2d63a 14352#include "confdefs.h"
21d1c967
GD
14353
14354 #include <Xm/Xm.h>
14355
14356int main() {
14357
14358 int version;
14359 version = xmUseVersion;
14360
14361; return 0; }
698dcdb6 14362EOF
986ecc86 14363if { (eval echo configure:14364: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6 14364 rm -rf conftest*
21d1c967
GD
14365
14366 echo "$ac_t""found in default search path" 1>&6
14367 COMPILED_X_PROGRAM=1
14368
10f2d63a 14369else
90dd450c
VZ
14370 echo "configure: failed program was:" >&5
14371 cat conftest.$ac_ext >&5
698dcdb6 14372 rm -rf conftest*
21d1c967
GD
14373
14374 echo "$ac_t""no" 1>&6
14375 { echo "configure: error: please set CFLAGS to contain the location of Xm/Xm.h" 1>&2; exit 1; }
14376
14377
10f2d63a
VZ
14378fi
14379rm -f conftest*
21d1c967 14380 fi
10f2d63a 14381
21d1c967
GD
14382 if test "$COMPILED_X_PROGRAM" = 0; then
14383 echo $ac_n "checking for Motif/Lesstif library""... $ac_c" 1>&6
986ecc86 14384echo "configure:14385: checking for Motif/Lesstif library" >&5
21d1c967
GD
14385
14386ac_find_libraries=
14387for ac_dir in $SEARCH_LIB;
14388 do
14389 for ac_extension in a so sl dylib; do
14390 if test -f "$ac_dir/libXm.$ac_extension"; then
14391 ac_find_libraries=$ac_dir
14392 break 2
14393 fi
14394 done
14395 done
14396
14397 if test "$ac_find_libraries" != "" ; then
14398
14399 ac_path_to_include=$ac_find_includes
14400 echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null
14401 result=$?
14402 if test $result = 0; then
14403 ac_path_to_include=""
14404 else
14405 ac_path_to_include=" -I$ac_find_includes"
14406 fi
14407
14408
14409 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
14410 result=$?
14411 if test $result = 0; then
14412 ac_path_to_link=""
14413 else
14414 ac_path_to_link=" -L$ac_find_libraries"
14415 fi
14416
14417
14418 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
14419 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE$ac_path_to_include"
14420 echo "$ac_t""found at $ac_find_libraries" 1>&6
14421 else
14422 cat > conftest.$ac_ext <<EOF
986ecc86 14423#line 14424 "configure"
d836ee96 14424#include "confdefs.h"
21d1c967
GD
14425
14426 #include <Xm/Xm.h>
14427
14428int main() {
14429
14430 int version;
14431 version = xmUseVersion;
14432
14433; return 0; }
d836ee96 14434EOF
986ecc86 14435if { (eval echo configure:14436: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d836ee96 14436 rm -rf conftest*
21d1c967
GD
14437
14438 echo "$ac_t""found in default search path" 1>&6
14439 COMPILED_X_PROGRAM=1
14440
d836ee96
VZ
14441else
14442 echo "configure: failed program was:" >&5
14443 cat conftest.$ac_ext >&5
14444 rm -rf conftest*
21d1c967
GD
14445
14446 echo "$ac_t""no" 1>&6
14447 { echo "configure: error: please set LDFLAGS to contain the location of libXm" 1>&2; exit 1; }
14448
14449
d836ee96
VZ
14450fi
14451rm -f conftest*
21d1c967
GD
14452 fi
14453 fi
14454
14455 xpm_link=
14456 echo $ac_n "checking for Xpm library""... $ac_c" 1>&6
986ecc86 14457echo "configure:14458: checking for Xpm library" >&5
21d1c967
GD
14458
14459ac_find_libraries=
14460for ac_dir in $SEARCH_LIB;
14461 do
14462 for ac_extension in a so sl dylib; do
14463 if test -f "$ac_dir/libXpm.$ac_extension"; then
14464 ac_find_libraries=$ac_dir
14465 break 2
14466 fi
14467 done
14468 done
14469
14470 if test "$ac_find_libraries" != "" ; then
14471
14472 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
14473 result=$?
14474 if test $result = 0; then
14475 ac_path_to_link=""
14476 else
14477 ac_path_to_link=" -L$ac_find_libraries"
14478 fi
14479
14480 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
14481 xpm_link=" -lXpm"
14482 cat >> confdefs.h <<\EOF
14483#define wxHAVE_LIB_XPM 1
d836ee96 14484EOF
90dd450c 14485
21d1c967
GD
14486 echo "$ac_t""found at $ac_find_libraries" 1>&6
14487 else
14488 cat > conftest.$ac_ext <<EOF
986ecc86 14489#line 14490 "configure"
d836ee96 14490#include "confdefs.h"
21d1c967
GD
14491
14492 #include <X11/xpm.h>
14493
14494int main() {
14495
14496 int version;
14497 version = XpmLibraryVersion();
14498
14499; return 0; }
d836ee96 14500EOF
986ecc86 14501if { (eval echo configure:14502: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d836ee96 14502 rm -rf conftest*
21d1c967
GD
14503
14504 xpm_link=" -lXpm"
14505 cat >> confdefs.h <<\EOF
14506#define wxHAVE_LIB_XPM 1
14507EOF
14508
14509 echo "$ac_t""found in default search path" 1>&6
14510 COMPILED_X_PROGRAM=0
14511
d836ee96
VZ
14512else
14513 echo "configure: failed program was:" >&5
14514 cat conftest.$ac_ext >&5
14515 rm -rf conftest*
21d1c967
GD
14516
14517 echo "$ac_t""no" 1>&6
14518 echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2
14519
14520
d836ee96
VZ
14521fi
14522rm -f conftest*
21d1c967
GD
14523 fi
14524
14525 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXm$xpm_link -lXmu -lXext -lXt -lX11"
14526 TOOLKIT_VPATH="\${top_srcdir}/src/motif${PATH_IFS}\${top_srcdir}/src/motif/xmcombo"
14527 TOOLKIT=MOTIF
14528 GUIDIST=MOTIF_DIST
14529 fi
14530
14531 if test "$wxUSE_MAC" = 1; then
14532 if test "$wxUSE_PRECOMP" = "yes"; then
14533 CPPFLAGS="$CPPFLAGS -cpp-precomp"
14534 else
14535 CPPFLAGS="$CPPFLAGS -no-cpp-precomp"
14536 fi
14537 CPPFLAGS="$CPPFLAGS -I/Developer/Headers/FlatCarbon -I\${top_srcdir}/src/mac/morefile"
14538 CFLAGS="$CFLAGS -fpascal-strings"
14539 CXXFLAGS="$CXXFLAGS -fpascal-strings"
14540
14541 TOOLKIT_VPATH="\${top_srcdir}/src/mac${PATH_IFS}\${top_srcdir}/src/mac/morefile"
14542 TOOLKIT=MAC
14543 GUIDIST=MACX_DIST
14544 fi
14545
14546 if test "$wxUSE_PM" = 1; then
14547 TOOLKIT=PM
14548 GUIDIST=GTK_DIST
14549 fi
14550
14551 if test "$TOOLKIT" = "PM" ; then
14552 TOOLKIT_DIR="os2"
14553 else
14554 TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"`
14555 fi
14556
14557 PORT_FILES="\${top_srcdir}/src/\$(TOOLKITDIR)/files.lst"
14558
14559 if test "$wxUSE_UNIVERSAL" = "yes"; then
14560 ALL_OBJECTS="\$(GUI_LOWLEVEL_OBJS) \${UNIVOBJS}"
14561
14562 ALL_SOURCES="\$(ALL_SOURCES) \${UNIV_SOURCES}"
14563 ALL_HEADERS="\$(ALL_HEADERS) \${UNIV_HEADERS}"
14564
14565 PORT_FILES="${PORT_FILES} \${top_srcdir}/src/univ/files.lst"
14566 if test "$wxUSE_X11" = 1; then
14567 TOOLKIT_VPATH="\${top_srcdir}/src/${TOOLKIT_DIR}${PATH_IFS}\${top_srcdir}/src/univ${PATH_IFS}\${top_srcdir}/src/univ/themes"
14568 else
14569 TOOLKIT_VPATH="\${top_srcdir}/src/univ${PATH_IFS}\${top_srcdir}/src/univ/themes${PATH_IFS}\${top_srcdir}/src/${TOOLKIT_DIR}"
14570 fi
14571 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__"
14572 WIDGET_SET=univ
14573 else
14574 ALL_OBJECTS="\$(GUIOBJS)"
14575 ALL_SOURCES="\$(ALL_SOURCES)"
14576 ALL_HEADERS="\$(ALL_HEADERS)"
14577 fi
14578
14579 ALL_OBJECTS="${ALL_OBJECTS} \$(COMMONOBJS) \$(GENERICOBJS)"
14580
14581 if test "$TOOLKIT" != "MSW" -a "$USE_DOS" != 1; then
14582 ALL_OBJECTS="${ALL_OBJECTS} \$(UNIXOBJS)"
14583 fi
14584
14585 if test "$wxUSE_HTML" = "yes"; then
14586 ALL_OBJECTS="${ALL_OBJECTS} \$(HTMLOBJS)"
14587 fi
14588
14589 if test "$wxUSE_LIBJPEG" = "builtin" ; then
14590 ALL_OBJECTS="${ALL_OBJECTS} \$(JPEGOBJS)"
14591 fi
14592 if test "$wxUSE_LIBTIFF" = "builtin" ; then
14593 ALL_OBJECTS="${ALL_OBJECTS} \$(TIFFOBJS)"
14594 fi
14595 if test "$wxUSE_LIBPNG" = "builtin" ; then
14596 ALL_OBJECTS="${ALL_OBJECTS} \$(PNGOBJS)"
14597 fi
14598
14599 GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST"
14600 DISTDIR="wx\$(TOOLKIT)"
90dd450c 14601else
21d1c967
GD
14602 USE_GUI=0
14603
14604 TOOLKIT_DIR="base"
14605
14606 if test "$USE_WIN32" = 1 ; then
14607 ALL_OBJECTS="\${BASE_OBJS} \${BASE_MSW_OBJS}"
14608 TOOLKIT_VPATH="\${top_srcdir}/src/msw"
14609
14610 TOOLKIT="MSW"
14611 else
14612 ALL_OBJECTS="\${BASE_OBJS} \${BASE_UNIX_OBJS}"
14613 TOOLKIT_VPATH="\${top_srcdir}/src/unix"
14614 fi
14615
14616 ALL_SOURCES="\$(ALL_SOURCES)"
14617 ALL_HEADERS="\$(ALL_HEADERS)"
14618
14619 PORT_FILES="\${top_srcdir}/src/files.lst"
14620
14621 GUIDIST="BASE_DIST"
14622 DISTDIR="wxBase"
d836ee96
VZ
14623fi
14624
21d1c967
GD
14625
14626if test "$TOOLKIT" != "MSW" -a "$wxUSE_ODBC" = "yes" ; then
14627 ALL_OBJECTS="${ALL_OBJECTS} \$(IODBCOBJS)"
6232543b 14628fi
21d1c967
GD
14629
14630if test "$wxUSE_REGEX" = "builtin" ; then
14631 ALL_OBJECTS="${ALL_OBJECTS} \$(REGEXOBJS)"
1e487827 14632fi
21d1c967
GD
14633if test "$wxUSE_ZLIB" = "builtin" ; then
14634 ALL_OBJECTS="${ALL_OBJECTS} \$(ZLIBOBJS)"
bd3277fe
VZ
14635fi
14636
698dcdb6 14637
21d1c967
GD
14638if test "$wxUSE_OPENGL" = "yes"; then
14639 if test "$wxUSE_MAC" = 1; then
14640 OPENGL_LIBS="-framework OpenGL -framework AGL"
14641 elif test "$wxUSE_MSW" = 1; then
14642 OPENGL_LIBS="-lopengl32 -lglu32"
14643 else
14644 ac_safe=`echo "GL/gl.h" | sed 'y%./+-%__p_%'`
14645echo $ac_n "checking for GL/gl.h""... $ac_c" 1>&6
986ecc86 14646echo "configure:14647: checking for GL/gl.h" >&5
90dd450c 14647if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
698dcdb6 14648 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 14649else
698dcdb6 14650 cat > conftest.$ac_ext <<EOF
986ecc86 14651#line 14652 "configure"
10f2d63a 14652#include "confdefs.h"
21d1c967 14653#include <GL/gl.h>
698dcdb6 14654EOF
90dd450c 14655ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
986ecc86 14656{ (eval echo configure:14657: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
90dd450c
VZ
14657ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
14658if test -z "$ac_err"; then
4f14bcd8 14659 rm -rf conftest*
90dd450c 14660 eval "ac_cv_header_$ac_safe=yes"
698dcdb6 14661else
90dd450c 14662 echo "$ac_err" >&5
698dcdb6
VZ
14663 echo "configure: failed program was:" >&5
14664 cat conftest.$ac_ext >&5
4f14bcd8 14665 rm -rf conftest*
90dd450c 14666 eval "ac_cv_header_$ac_safe=no"
703e0a69 14667fi
4f14bcd8 14668rm -f conftest*
698dcdb6 14669fi
90dd450c
VZ
14670if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
14671 echo "$ac_t""yes" 1>&6
21d1c967
GD
14672
14673 echo $ac_n "checking for -lGL""... $ac_c" 1>&6
986ecc86 14674echo "configure:14675: checking for -lGL" >&5
21d1c967
GD
14675
14676ac_find_libraries=
14677for ac_dir in $SEARCH_LIB;
14678 do
14679 for ac_extension in a so sl dylib; do
14680 if test -f "$ac_dir/libGL.$ac_extension"; then
14681 ac_find_libraries=$ac_dir
14682 break 2
14683 fi
14684 done
14685 done
14686
14687 if test "$ac_find_libraries" != "" ; then
14688
14689 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
14690 result=$?
14691 if test $result = 0; then
14692 ac_path_to_link=""
14693 else
14694 ac_path_to_link=" -L$ac_find_libraries"
14695 fi
14696
14697 if test "$ac_path_to_link" = " -L/usr/lib" ; then
14698 LDFLAGS_GL="$LDFLAGS"
14699 else
14700 LDFLAGS_GL="$LDFLAGS$ac_path_to_link"
14701 fi
14702 OPENGL_LIBS="-lGL -lGLU"
14703 echo "$ac_t""yes" 1>&6
14704 else
14705 echo "$ac_t""no" 1>&6
14706 echo $ac_n "checking for -lMesaGL""... $ac_c" 1>&6
986ecc86 14707echo "configure:14708: checking for -lMesaGL" >&5
21d1c967
GD
14708
14709ac_find_libraries=
14710for ac_dir in $SEARCH_LIB;
14711 do
14712 for ac_extension in a so sl dylib; do
14713 if test -f "$ac_dir/libMesaGL.$ac_extension"; then
14714 ac_find_libraries=$ac_dir
14715 break 2
14716 fi
14717 done
14718 done
14719
14720 if test "$ac_find_libraries" != "" ; then
14721
14722 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
14723 result=$?
14724 if test $result = 0; then
14725 ac_path_to_link=""
14726 else
14727 ac_path_to_link=" -L$ac_find_libraries"
14728 fi
14729
14730 LDFLAGS_GL="$LDFLAGS$ac_path_to_link"
14731 OPENGL_LIBS="-lMesaGL -lMesaGLU"
14732 echo "$ac_t""yes" 1>&6
14733 else
14734 echo "$ac_t""no" 1>&6
14735 fi
14736 fi
14737
90dd450c
VZ
14738else
14739 echo "$ac_t""no" 1>&6
14740fi
698dcdb6
VZ
14741
14742
21d1c967
GD
14743 if test "x$OPENGL_LIBS" = "x"; then
14744 { echo "configure: error: OpenGL libraries not available" 1>&2; exit 1; }
14745 fi
14746 fi
90dd450c 14747
21d1c967
GD
14748 if test "$wxUSE_OPENGL" = "yes"; then
14749 cat >> confdefs.h <<\EOF
14750#define wxUSE_OPENGL 1
698dcdb6 14751EOF
21d1c967
GD
14752
14753 cat >> confdefs.h <<\EOF
14754#define wxUSE_GLCANVAS 1
14755EOF
14756
14757 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl"
14758 fi
10f2d63a 14759fi
21d1c967
GD
14760
14761if test -z "$TOOLKIT_VPATH" ; then
14762 TOOLKIT_VPATH="\${top_srcdir}/src/${TOOLKIT_DIR}"
10f2d63a 14763fi
21d1c967
GD
14764
14765if test -n "$TOOLKIT" ; then
14766 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WX${TOOLKIT}__"
14767fi
14768
14769lib_unicode_suffix=
14770if test "$wxUSE_UNICODE" = "yes"; then
14771 lib_unicode_suffix=u
90dd450c 14772fi
698dcdb6 14773
21d1c967
GD
14774lib_debug_suffix=
14775if test "$wxUSE_DEBUG_FLAG" = "yes"; then
14776 lib_debug_suffix=d
14777fi
698dcdb6 14778
21d1c967
GD
14779TOOLCHAIN_NAME="${TOOLKIT_DIR}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}-${WX_RELEASE}"
14780TOOLCHAIN_NAME_GL="${TOOLKIT_DIR}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}_gl-${WX_RELEASE}"
14781
14782if test "$cross_compiling" = "yes"; then
14783 TOOLCHAIN_NAME="${TOOLCHAIN_NAME}-${host_alias}"
14784 TOOLCHAIN_NAME_GL="${TOOLCHAIN_NAME_GL}-${host_alias}"
14785fi
14786
14787WX_LIBRARY="wx_${TOOLCHAIN_NAME}"
14788WX_LIBRARY_GL="wx_${TOOLCHAIN_NAME_GL}"
14789
14790WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
14791WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
14792
14793WX_LIBRARY_LINK1="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}"
14794WX_LIBRARY_LINK2="lib${WX_LIBRARY}.${SO_SUFFIX}"
14795WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}"
14796WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}"
14797
14798case "${host}" in
14799 *-*-cygwin* | *-*-mingw32* )
14800
14801
14802
14803 if test "$cross_compiling" != "yes"; then
14804 WX_LIBRARY="wxmsw${WX_MSW_VERSION}${lib_unicode_suffix}${lib_debug_suffix}"
14805 WX_LIBRARY_GL="wxmsw_gl${WX_MSW_VERSION}${lib_unicode_suffix}${lib_debug_suffix}"
14806 WX_LIBRARY_NAME_SHARED="${WX_LIBRARY}.${SO_SUFFIX}"
14807 WX_LIBRARY_NAME_SHARED_GL="${WX_LIBRARY_GL}.${SO_SUFFIX}"
14808 else
14809 WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${SO_SUFFIX}"
14810 WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}"
14811 fi
14812 ;;
14813
14814 *-*-darwin* )
14815 if test "$wxUSE_MAC" = 1; then
14816 WX_RESOURCES_MACOSX_ASCII="lib${WX_LIBRARY}.r"
14817 WX_RESOURCES_MACOSX_DATA="lib${WX_LIBRARY}.rsrc"
14818 fi
14819 ;;
14820esac
14821
14822WX_LIBRARY_NAME_STATIC="lib${WX_LIBRARY}.a"
14823WX_LIBRARY_NAME_STATIC_GL="lib${WX_LIBRARY_GL}.a"
14824
14825WXCONFIG_LIBS="-l${WX_LIBRARY}"
14826WXCONFIG_LIBS_STATIC="lib${WX_LIBRARY}.a"
14827
14828if test "$wxUSE_OPENGL" = "yes"; then
14829 WXCONFIG_LIBS_GL="-l${WX_LIBRARY_GL} ${OPENGL_LIBS}"
14830 WXCONFIG_LIBS_STATIC_GL="lib${WX_LIBRARY_GL}.a ${OPENGL_LIBS}"
14831fi
14832
14833
14834
14835if test "$wxUSE_SHARED" = "yes"; then
14836 case "${host}" in
14837 *-pc-os2_emx | *-pc-os2-emx | \
14838 *-pc-msdosdjgpp )
14839 wxUSE_SHARED=no
14840 echo "configure: warning: Host system doesn't support shared libraries, disabling" 1>&2
14841 ;;
14842 esac
14843fi
14844
14845if test "$wxUSE_SHARED" = "yes"; then
14846
14847 if test "$wxUSE_OPENGL" = "yes"; then
14848 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL"
14849 WX_ALL="\$(build_libdir)/${WX_LIBRARY_LINK1} \$(build_libdir)/${WX_LIBRARY_LINK1_GL}"
14850 else
14851 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
14852 WX_ALL="\$(build_libdir)/${WX_LIBRARY_LINK1}"
14853 fi
14854
14855 if test "$GCC" = "yes"; then
14856 PIC_FLAG="-fPIC"
14857 fi
14858
14859 SHARED_LD="${CXX} -shared -o"
14860
14861 case "${host}" in
14862 *-hp-hpux* )
14863 if test "$GCC" == "yes"; then
14864 SHARED_LD="${SHARED_LD} ${PIC_FLAG}"
14865 else
14866 LDFLAGS="$LDFLAGS -L/usr/lib"
14867
14868 SHARED_LD="${CXX} -b -o"
14869 PIC_FLAG="+Z"
14870 fi
14871
14872 if test "$wxUSE_OPENGL" = "yes"; then
14873 WX_ALL_INSTALLED="preinstall_gl"
14874 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED} \$(build_libdir)/${WX_LIBRARY_NAME_SHARED_GL}"
14875 else
14876 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED}"
14877 fi
14878 ;;
14879
14880 *-*-linux* )
14881 if test "$GCC" != "yes"; then
14882 echo $ac_n "checking for Intel compiler""... $ac_c" 1>&6
986ecc86 14883echo "configure:14884: checking for Intel compiler" >&5
21d1c967 14884if eval "test \"`echo '$''{'wx_cv_prog_icc'+set}'`\" = set"; then
698dcdb6 14885 echo $ac_n "(cached) $ac_c" 1>&6
698dcdb6 14886else
21d1c967
GD
14887
14888 cat > conftest.$ac_ext <<EOF
986ecc86 14889#line 14890 "configure"
698dcdb6 14890#include "confdefs.h"
90dd450c
VZ
14891
14892int main() {
14893
21d1c967
GD
14894 #ifndef __INTEL_COMPILER
14895 #error Not icc
14896 #endif
14897
90dd450c 14898; return 0; }
698dcdb6 14899EOF
986ecc86 14900if { (eval echo configure:14901: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
90dd450c 14901 rm -rf conftest*
21d1c967 14902 wx_cv_prog_icc=yes
6232543b 14903else
698dcdb6
VZ
14904 echo "configure: failed program was:" >&5
14905 cat conftest.$ac_ext >&5
90dd450c 14906 rm -rf conftest*
21d1c967
GD
14907 wx_cv_prog_icc=no
14908
6232543b 14909fi
90dd450c 14910rm -f conftest*
21d1c967 14911
698dcdb6
VZ
14912fi
14913
21d1c967
GD
14914echo "$ac_t""$wx_cv_prog_icc" 1>&6
14915 if test "$wx_cv_prog_icc" = "yes"; then
14916 PIC_FLAG="-KPIC"
14917 fi
14918 fi
14919
14920 if test "$wxUSE_SONAME" = "yes" ; then
14921 SONAME_FLAGS="-Wl,-soname,${WX_LIBRARY_LINK1}"
14922 SONAME_FLAGS_GL="-Wl,-soname,${WX_LIBRARY_LINK1_GL}"
14923 WX_TARGET_LIBRARY_SONAME="-Wl,-soname,\$(TARGETLIB_LINK1)"
14924 fi
14925 ;;
14926
14927 *-*-solaris2* )
14928 if test "$GCC" = yes ; then
14929 CPPFLAGS="$CPPFLAGS -isystem /usr/openwin/include"
14930 else
14931 SHARED_LD="${CXX} -G -o"
14932 PIC_FLAG="-KPIC"
14933 SONAME_FLAGS="-h ${WX_LIBRARY_NAME_SHARED}"
14934 SONAME_FLAGS_GL="-h ${WX_LIBRARY_NAME_SHARED_GL}"
14935 fi
14936 ;;
14937
14938 *-*-darwin* )
14939 CFLAGS="$CFLAGS -fno-common -DWXMAKINGDLL"
14940 CXXFLAGS="$CXXFLAGS -fno-common -DWXMAKINGDLL"
14941 SHARED_LD="\${top_srcdir}/distrib/mac/shared-ld-sh -undefined suppress -flat_namespace -o"
14942 PIC_FLAG="-dynamic -fPIC"
14943 SONAME_FLAGS="-compatibility_version ${WX_RELEASE} -current_version ${WX_VERSION}"
14944 SONAME_FLAGS_GL=${SONAME_FLAGS}
14945 ;;
14946
14947 *-*-aix* )
321d2b14
VZ
14948 # Extract the first word of "makeC++SharedLib", so it can be a program name with args.
14949set dummy makeC++SharedLib; ac_word=$2
14950echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
986ecc86 14951echo "configure:14952: checking for $ac_word" >&5
321d2b14
VZ
14952if eval "test \"`echo '$''{'ac_cv_prog_AIX_CXX_LD'+set}'`\" = set"; then
14953 echo $ac_n "(cached) $ac_c" 1>&6
14954else
14955 if test -n "$AIX_CXX_LD"; then
14956 ac_cv_prog_AIX_CXX_LD="$AIX_CXX_LD" # Let the user override the test.
14957else
14958 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
14959 ac_dummy="$PATH"
14960 for ac_dir in $ac_dummy; do
14961 test -z "$ac_dir" && ac_dir=.
14962 if test -f $ac_dir/$ac_word; then
14963 ac_cv_prog_AIX_CXX_LD="makeC++SharedLib"
14964 break
14965 fi
14966 done
14967 IFS="$ac_save_ifs"
14968 test -z "$ac_cv_prog_AIX_CXX_LD" && ac_cv_prog_AIX_CXX_LD="/usr/lpp/xlC/bin/makeC++SharedLib"
14969fi
14970fi
14971AIX_CXX_LD="$ac_cv_prog_AIX_CXX_LD"
14972if test -n "$AIX_CXX_LD"; then
14973 echo "$ac_t""$AIX_CXX_LD" 1>&6
14974else
14975 echo "$ac_t""no" 1>&6
14976fi
14977
14978
14979 SHARED_LD="$(AIX_CXX_LD) -p 0 -o"
21d1c967
GD
14980 ;;
14981
14982 *-*-cygwin* | *-*-mingw32* )
14983
14984 WX_LIBRARY_IMPORTLIB="${WX_LIBRARY_NAME_SHARED}.a"
14985
14986 SHARED_LD="${CXX} -shared -Wl,--out-implib,lib/${WX_LIBRARY_IMPORTLIB} -o"
14987 TOOLCHAIN_DLL_DEFS="${TOOLCHAIN_DLL_DEFS} -DWXUSINGDLL=1"
14988
14989 PIC_FLAG="-UWXUSINGDLL -DWXMAKINGDLL=1 -D_DLL=1 -D_WINDLL=1"
14990
14991 if test "$wxUSE_OPENGL" = "yes"; then
14992 WX_ALL_INSTALLED="preinstall_gl"
14993 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED} \$(build_libdir)/${WX_LIBRARY_NAME_SHARED_GL}"
14994 else
14995 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED}"
14996 fi
14997 ;;
14998
14999 *-*-beos* )
15000 SHARED_LD="${LD} -shared -o"
15001 ;;
15002
15003 *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | \
15004 *-*-sunos4* | \
15005 *-*-irix5* | *-*-irix6* | \
15006 *-*-osf* | \
15007 *-*-dgux5* | \
15008 *-*-sysv5* )
15009 ;;
15010
15011 *)
15012 { echo "configure: error: unknown system type $host." 1>&2; exit 1; }
15013 esac
15014
15015 if test "x$WX_TARGET_LIBRARY" = "x"; then
15016 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_SHARED}"
15017 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_SHARED_GL}"
15018 fi
15019
15020 WX_TARGET_LIBRARY_TYPE="so"
15021 INSTALL_LIBRARY='$(INSTALL_PROGRAM)'
90dd450c 15022fi
10f2d63a 15023
21d1c967
GD
15024if test "$wxUSE_SHARED" = "no"; then
15025
15026 if test "$wxUSE_GUI" = "no" -o "$USE_WIN32" = 1 ; then
15027 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall"
15028 fi
15029
15030 if test "$wxUSE_MAC" = 1; then
15031 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall"
15032 fi
15033
15034 if test "$wxUSE_OPENGL" = "yes"; then
15035 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall_gl"
15036 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC} \$(build_libdir)/${WX_LIBRARY_NAME_STATIC_GL}"
15037 else
15038 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC}"
15039 fi
15040
15041 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}"
15042 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_STATIC_GL}"
15043
15044 WX_TARGET_LIBRARY_TYPE="a"
15045 INSTALL_LIBRARY='$(INSTALL_DATA)'
90dd450c 15046fi
1e487827 15047
21d1c967
GD
15048if test "$wxUSE_MAC" = 1; then
15049 LIBWXMACRES="\$(top_builddir)/lib/${WX_RESOURCES_MACOSX_ASCII}"
15050 WX_ALL="${WX_ALL} ${LIBWXMACRES}"
15051 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall_res"
15052 # Extract the first word of "Rez", so it can be a program name with args.
15053set dummy Rez; ac_word=$2
15054echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
986ecc86 15055echo "configure:15056: checking for $ac_word" >&5
21d1c967 15056if eval "test \"`echo '$''{'ac_cv_prog_RESCOMP'+set}'`\" = set"; then
698dcdb6 15057 echo $ac_n "(cached) $ac_c" 1>&6
b93d0d08 15058else
21d1c967
GD
15059 if test -n "$RESCOMP"; then
15060 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
b93d0d08 15061else
21d1c967
GD
15062 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
15063 ac_dummy="$PATH"
15064 for ac_dir in $ac_dummy; do
15065 test -z "$ac_dir" && ac_dir=.
15066 if test -f $ac_dir/$ac_word; then
15067 ac_cv_prog_RESCOMP="Rez"
15068 break
15069 fi
15070 done
15071 IFS="$ac_save_ifs"
15072 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez"
b93d0d08 15073fi
b93d0d08 15074fi
21d1c967
GD
15075RESCOMP="$ac_cv_prog_RESCOMP"
15076if test -n "$RESCOMP"; then
15077 echo "$ac_t""$RESCOMP" 1>&6
90dd450c
VZ
15078else
15079 echo "$ac_t""no" 1>&6
15080fi
b93d0d08 15081
21d1c967
GD
15082 # Extract the first word of "DeRez", so it can be a program name with args.
15083set dummy DeRez; ac_word=$2
15084echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
986ecc86 15085echo "configure:15086: checking for $ac_word" >&5
21d1c967 15086if eval "test \"`echo '$''{'ac_cv_prog_DEREZ'+set}'`\" = set"; then
698dcdb6 15087 echo $ac_n "(cached) $ac_c" 1>&6
3a922bb4 15088else
21d1c967
GD
15089 if test -n "$DEREZ"; then
15090 ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test.
4f14bcd8 15091else
21d1c967
GD
15092 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
15093 ac_dummy="$PATH"
15094 for ac_dir in $ac_dummy; do
15095 test -z "$ac_dir" && ac_dir=.
15096 if test -f $ac_dir/$ac_word; then
15097 ac_cv_prog_DEREZ="DeRez"
15098 break
15099 fi
15100 done
15101 IFS="$ac_save_ifs"
15102 test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/DeRez"
3a922bb4 15103fi
90dd450c 15104fi
21d1c967
GD
15105DEREZ="$ac_cv_prog_DEREZ"
15106if test -n "$DEREZ"; then
15107 echo "$ac_t""$DEREZ" 1>&6
90dd450c
VZ
15108else
15109 echo "$ac_t""no" 1>&6
3a922bb4 15110fi
698dcdb6 15111
21d1c967
GD
15112 MACOSX_BUNDLE="bundle"
15113 if test "$wxUSE_SHARED" = "yes"; then
15114 LIBWXMACRESCOMP="\$(RESCOMP) -t APPL Carbon.r -o \$(BIN_PROGRAM)"
15115 LIBWXMACRESWXCONFIG="${RESCOMP} -t APPL Carbon.r -o"
15116 else
15117 LIBWXMACRESCOMP="\$(RESCOMP) -t APPL Carbon.r ${LIBWXMACRES} -o \$(BIN_PROGRAM)"
15118 LIBWXMACRESWXCONFIG="${RESCOMP} -t APPL Carbon.r \${prefix}/lib/${WX_RESOURCES_MACOSX_ASCII} -o"
15119 fi
15120else
15121 if test "$wxUSE_PM" = 1; then
15122 LIBWXMACRESCOMP="emxbind -ep \$(BIN_PROGRAM)"
90dd450c 15123 fi
4f14bcd8 15124fi
10f2d63a 15125
703e0a69 15126
90dd450c 15127echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
986ecc86 15128echo "configure:15129: checking for ANSI C header files" >&5
90dd450c 15129if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
698dcdb6
VZ
15130 echo $ac_n "(cached) $ac_c" 1>&6
15131else
15132 cat > conftest.$ac_ext <<EOF
986ecc86 15133#line 15134 "configure"
10f2d63a 15134#include "confdefs.h"
90dd450c
VZ
15135#include <stdlib.h>
15136#include <stdarg.h>
15137#include <string.h>
15138#include <float.h>
698dcdb6 15139EOF
90dd450c 15140ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
986ecc86 15141{ (eval echo configure:15142: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
90dd450c
VZ
15142ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15143if test -z "$ac_err"; then
15144 rm -rf conftest*
15145 ac_cv_header_stdc=yes
10f2d63a 15146else
90dd450c 15147 echo "$ac_err" >&5
698dcdb6 15148 echo "configure: failed program was:" >&5
10f2d63a 15149 cat conftest.$ac_ext >&5
90dd450c
VZ
15150 rm -rf conftest*
15151 ac_cv_header_stdc=no
10f2d63a 15152fi
90dd450c
VZ
15153rm -f conftest*
15154
15155if test $ac_cv_header_stdc = yes; then
15156 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
15157cat > conftest.$ac_ext <<EOF
986ecc86 15158#line 15159 "configure"
90dd450c
VZ
15159#include "confdefs.h"
15160#include <string.h>
15161EOF
15162if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15163 egrep "memchr" >/dev/null 2>&1; then
15164 :
15165else
15166 rm -rf conftest*
15167 ac_cv_header_stdc=no
10f2d63a 15168fi
90dd450c 15169rm -f conftest*
10f2d63a 15170
4f14bcd8 15171fi
90dd450c
VZ
15172
15173if test $ac_cv_header_stdc = yes; then
15174 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
15175cat > conftest.$ac_ext <<EOF
986ecc86 15176#line 15177 "configure"
90dd450c
VZ
15177#include "confdefs.h"
15178#include <stdlib.h>
10f2d63a 15179EOF
90dd450c
VZ
15180if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15181 egrep "free" >/dev/null 2>&1; then
15182 :
15183else
15184 rm -rf conftest*
15185 ac_cv_header_stdc=no
15186fi
15187rm -f conftest*
10f2d63a 15188
90dd450c 15189fi
698dcdb6 15190
90dd450c
VZ
15191if test $ac_cv_header_stdc = yes; then
15192 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
15193if test "$cross_compiling" = yes; then
15194 :
4f14bcd8
GD
15195else
15196 cat > conftest.$ac_ext <<EOF
986ecc86 15197#line 15198 "configure"
10f2d63a 15198#include "confdefs.h"
90dd450c
VZ
15199#include <ctype.h>
15200#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
15201#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
15202#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
15203int main () { int i; for (i = 0; i < 256; i++)
15204if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
15205exit (0); }
15206
698dcdb6 15207EOF
986ecc86 15208if { (eval echo configure:15209: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4f14bcd8 15209then
90dd450c 15210 :
10f2d63a 15211else
698dcdb6
VZ
15212 echo "configure: failed program was:" >&5
15213 cat conftest.$ac_ext >&5
4f14bcd8 15214 rm -fr conftest*
90dd450c 15215 ac_cv_header_stdc=no
10f2d63a 15216fi
4f14bcd8 15217rm -fr conftest*
10f2d63a 15218fi
698dcdb6 15219
4f14bcd8 15220fi
90dd450c 15221fi
10f2d63a 15222
90dd450c
VZ
15223echo "$ac_t""$ac_cv_header_stdc" 1>&6
15224if test $ac_cv_header_stdc = yes; then
15225 cat >> confdefs.h <<\EOF
15226#define STDC_HEADERS 1
15227EOF
698dcdb6 15228
90dd450c 15229fi
9d353d4a 15230
90dd450c 15231echo $ac_n "checking for mode_t""... $ac_c" 1>&6
986ecc86 15232echo "configure:15233: checking for mode_t" >&5
90dd450c 15233if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
9d353d4a 15234 echo $ac_n "(cached) $ac_c" 1>&6
9d353d4a
RR
15235else
15236 cat > conftest.$ac_ext <<EOF
986ecc86 15237#line 15238 "configure"
9d353d4a 15238#include "confdefs.h"
90dd450c
VZ
15239#include <sys/types.h>
15240#if STDC_HEADERS
15241#include <stdlib.h>
15242#include <stddef.h>
15243#endif
9d353d4a 15244EOF
90dd450c
VZ
15245if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15246 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
15247 rm -rf conftest*
15248 ac_cv_type_mode_t=yes
9d353d4a 15249else
90dd450c
VZ
15250 rm -rf conftest*
15251 ac_cv_type_mode_t=no
9d353d4a 15252fi
90dd450c 15253rm -f conftest*
9d353d4a
RR
15254
15255fi
90dd450c
VZ
15256echo "$ac_t""$ac_cv_type_mode_t" 1>&6
15257if test $ac_cv_type_mode_t = no; then
15258 cat >> confdefs.h <<\EOF
15259#define mode_t int
9d353d4a
RR
15260EOF
15261
90dd450c 15262fi
9d353d4a 15263
90dd450c 15264echo $ac_n "checking for off_t""... $ac_c" 1>&6
986ecc86 15265echo "configure:15266: checking for off_t" >&5
90dd450c 15266if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
698dcdb6 15267 echo $ac_n "(cached) $ac_c" 1>&6
4f14bcd8
GD
15268else
15269 cat > conftest.$ac_ext <<EOF
986ecc86 15270#line 15271 "configure"
10f2d63a 15271#include "confdefs.h"
90dd450c
VZ
15272#include <sys/types.h>
15273#if STDC_HEADERS
15274#include <stdlib.h>
15275#include <stddef.h>
15276#endif
698dcdb6 15277EOF
90dd450c
VZ
15278if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15279 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
15280 rm -rf conftest*
15281 ac_cv_type_off_t=yes
698dcdb6 15282else
90dd450c
VZ
15283 rm -rf conftest*
15284 ac_cv_type_off_t=no
698dcdb6 15285fi
90dd450c 15286rm -f conftest*
698dcdb6
VZ
15287
15288fi
90dd450c
VZ
15289echo "$ac_t""$ac_cv_type_off_t" 1>&6
15290if test $ac_cv_type_off_t = no; then
15291 cat >> confdefs.h <<\EOF
15292#define off_t long
10f2d63a
VZ
15293EOF
15294
90dd450c 15295fi
10f2d63a 15296
90dd450c 15297echo $ac_n "checking for pid_t""... $ac_c" 1>&6
986ecc86 15298echo "configure:15299: checking for pid_t" >&5
90dd450c 15299if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
698dcdb6 15300 echo $ac_n "(cached) $ac_c" 1>&6
4f14bcd8
GD
15301else
15302 cat > conftest.$ac_ext <<EOF
986ecc86 15303#line 15304 "configure"
10f2d63a 15304#include "confdefs.h"
90dd450c
VZ
15305#include <sys/types.h>
15306#if STDC_HEADERS
15307#include <stdlib.h>
15308#include <stddef.h>
15309#endif
698dcdb6 15310EOF
90dd450c
VZ
15311if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15312 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
15313 rm -rf conftest*
15314 ac_cv_type_pid_t=yes
698dcdb6 15315else
90dd450c
VZ
15316 rm -rf conftest*
15317 ac_cv_type_pid_t=no
4f14bcd8 15318fi
90dd450c 15319rm -f conftest*
698dcdb6
VZ
15320
15321fi
90dd450c
VZ
15322echo "$ac_t""$ac_cv_type_pid_t" 1>&6
15323if test $ac_cv_type_pid_t = no; then
15324 cat >> confdefs.h <<\EOF
15325#define pid_t int
10f2d63a
VZ
15326EOF
15327
90dd450c 15328fi
18dbb1f6 15329
90dd450c 15330echo $ac_n "checking for size_t""... $ac_c" 1>&6
986ecc86 15331echo "configure:15332: checking for size_t" >&5
90dd450c 15332if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
18dbb1f6 15333 echo $ac_n "(cached) $ac_c" 1>&6
90dd450c
VZ
15334else
15335 cat > conftest.$ac_ext <<EOF
986ecc86 15336#line 15337 "configure"
4f14bcd8
GD
15337#include "confdefs.h"
15338#include <sys/types.h>
90dd450c
VZ
15339#if STDC_HEADERS
15340#include <stdlib.h>
15341#include <stddef.h>
4f14bcd8 15342#endif
18dbb1f6 15343EOF
90dd450c
VZ
15344if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15345 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
18dbb1f6 15346 rm -rf conftest*
90dd450c 15347 ac_cv_type_size_t=yes
18dbb1f6 15348else
18dbb1f6 15349 rm -rf conftest*
90dd450c 15350 ac_cv_type_size_t=no
18dbb1f6
VZ
15351fi
15352rm -f conftest*
90dd450c 15353
1e487827 15354fi
90dd450c
VZ
15355echo "$ac_t""$ac_cv_type_size_t" 1>&6
15356if test $ac_cv_type_size_t = no; then
15357 cat >> confdefs.h <<\EOF
15358#define size_t unsigned
15359EOF
15360
15361fi
15362
15363echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
986ecc86 15364echo "configure:15365: checking for uid_t in sys/types.h" >&5
90dd450c
VZ
15365if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
15366 echo $ac_n "(cached) $ac_c" 1>&6
b3e8d00a
VZ
15367else
15368 cat > conftest.$ac_ext <<EOF
986ecc86 15369#line 15370 "configure"
b3e8d00a 15370#include "confdefs.h"
90dd450c 15371#include <sys/types.h>
b3e8d00a 15372EOF
90dd450c
VZ
15373if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15374 egrep "uid_t" >/dev/null 2>&1; then
15375 rm -rf conftest*
15376 ac_cv_type_uid_t=yes
b3e8d00a 15377else
90dd450c
VZ
15378 rm -rf conftest*
15379 ac_cv_type_uid_t=no
b3e8d00a 15380fi
90dd450c 15381rm -f conftest*
b3e8d00a 15382
4f14bcd8
GD
15383fi
15384
90dd450c
VZ
15385echo "$ac_t""$ac_cv_type_uid_t" 1>&6
15386if test $ac_cv_type_uid_t = no; then
4f14bcd8 15387 cat >> confdefs.h <<\EOF
90dd450c
VZ
15388#define uid_t int
15389EOF
15390
15391 cat >> confdefs.h <<\EOF
15392#define gid_t int
b3e8d00a 15393EOF
4f14bcd8 15394
b3e8d00a 15395fi
b3e8d00a
VZ
15396
15397
90dd450c
VZ
15398
15399ac_ext=C
4f14bcd8
GD
15400# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15401ac_cpp='$CXXCPP $CPPFLAGS'
15402ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15403ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15404cross_compiling=$ac_cv_prog_cxx_cross
90dd450c
VZ
15405
15406echo $ac_n "checking if size_t is unsigned int""... $ac_c" 1>&6
986ecc86 15407echo "configure:15408: checking if size_t is unsigned int" >&5
90dd450c
VZ
15408if eval "test \"`echo '$''{'wx_cv_size_t_is_uint'+set}'`\" = set"; then
15409 echo $ac_n "(cached) $ac_c" 1>&6
15410else
15411 cat > conftest.$ac_ext <<EOF
986ecc86 15412#line 15413 "configure"
10f2d63a 15413#include "confdefs.h"
90dd450c
VZ
15414#include <stddef.h>
15415int main() {
15416
15417 return 0; }
15418
15419 struct Foo { void foo(size_t); void foo(unsigned int); };
15420
15421 int bar() {
15422
15423; return 0; }
698dcdb6 15424EOF
986ecc86 15425if { (eval echo configure:15426: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
90dd450c
VZ
15426 rm -rf conftest*
15427 wx_cv_size_t_is_uint=no
698dcdb6
VZ
15428else
15429 echo "configure: failed program was:" >&5
15430 cat conftest.$ac_ext >&5
15431 rm -rf conftest*
90dd450c
VZ
15432 wx_cv_size_t_is_uint=yes
15433
698dcdb6
VZ
15434fi
15435rm -f conftest*
90dd450c 15436
698dcdb6
VZ
15437fi
15438
90dd450c 15439echo "$ac_t""$wx_cv_size_t_is_uint" 1>&6
4f14bcd8 15440
90dd450c 15441if test "$wx_cv_size_t_is_uint" = "yes"; then
4f14bcd8 15442 cat >> confdefs.h <<\EOF
90dd450c 15443#define wxSIZE_T_IS_UINT 1
698dcdb6
VZ
15444EOF
15445
90dd450c
VZ
15446else
15447 echo $ac_n "checking if size_t is unsigned long""... $ac_c" 1>&6
986ecc86 15448echo "configure:15449: checking if size_t is unsigned long" >&5
90dd450c 15449if eval "test \"`echo '$''{'wx_cv_size_t_is_ulong'+set}'`\" = set"; then
698dcdb6
VZ
15450 echo $ac_n "(cached) $ac_c" 1>&6
15451else
15452 cat > conftest.$ac_ext <<EOF
986ecc86 15453#line 15454 "configure"
10f2d63a 15454#include "confdefs.h"
90dd450c
VZ
15455#include <stddef.h>
15456int main() {
15457
15458 return 0; }
15459
15460 struct Foo { void foo(size_t); void foo(unsigned long); };
15461
15462 int bar() {
15463
15464; return 0; }
698dcdb6 15465EOF
986ecc86 15466if { (eval echo configure:15467: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6 15467 rm -rf conftest*
90dd450c 15468 wx_cv_size_t_is_ulong=no
698dcdb6
VZ
15469else
15470 echo "configure: failed program was:" >&5
15471 cat conftest.$ac_ext >&5
15472 rm -rf conftest*
90dd450c
VZ
15473 wx_cv_size_t_is_ulong=yes
15474
698dcdb6
VZ
15475fi
15476rm -f conftest*
90dd450c 15477
698dcdb6 15478fi
10f2d63a 15479
90dd450c 15480echo "$ac_t""$wx_cv_size_t_is_ulong" 1>&6
10f2d63a 15481
90dd450c
VZ
15482 if test "$wx_cv_size_t_is_ulong" = "yes"; then
15483 cat >> confdefs.h <<\EOF
15484#define wxSIZE_T_IS_ULONG 1
4f14bcd8
GD
15485EOF
15486
15487 fi
90dd450c 15488fi
1e487827 15489
90dd450c 15490ac_ext=c
4f14bcd8
GD
15491# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15492ac_cpp='$CPP $CPPFLAGS'
15493ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15494ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15495cross_compiling=$ac_cv_prog_cc_cross
698dcdb6 15496
698dcdb6
VZ
15497
15498
90dd450c 15499echo $ac_n "checking for pw_gecos in struct passwd""... $ac_c" 1>&6
986ecc86 15500echo "configure:15501: checking for pw_gecos in struct passwd" >&5
90dd450c 15501if eval "test \"`echo '$''{'wx_cv_struct_pw_gecos'+set}'`\" = set"; then
698dcdb6
VZ
15502 echo $ac_n "(cached) $ac_c" 1>&6
15503else
15504
90dd450c 15505 cat > conftest.$ac_ext <<EOF
986ecc86 15506#line 15507 "configure"
4f14bcd8 15507#include "confdefs.h"
90dd450c 15508#include <pwd.h>
4f14bcd8 15509int main() {
f6bcfd97 15510
90dd450c
VZ
15511 char *p;
15512 struct passwd *pw;
15513 p = pw->pw_gecos;
15514
698dcdb6
VZ
15515; return 0; }
15516EOF
986ecc86 15517if { (eval echo configure:15518: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6
VZ
15518 rm -rf conftest*
15519
90dd450c
VZ
15520 wx_cv_struct_pw_gecos=yes
15521
10f2d63a 15522else
698dcdb6
VZ
15523 echo "configure: failed program was:" >&5
15524 cat conftest.$ac_ext >&5
15525 rm -rf conftest*
15526
90dd450c
VZ
15527 wx_cv_struct_pw_gecos=no
15528
15529
4f14bcd8
GD
15530fi
15531rm -f conftest*
90dd450c 15532
c521c494 15533
4f14bcd8 15534fi
c521c494 15535
90dd450c 15536echo "$ac_t""$wx_cv_struct_pw_gecos" 1>&6
c521c494 15537
90dd450c 15538if test "$wx_cv_struct_pw_gecos" = "yes"; then
4f14bcd8 15539 cat >> confdefs.h <<\EOF
90dd450c 15540#define HAVE_PW_GECOS 1
4f14bcd8 15541EOF
c521c494 15542
90dd450c 15543fi
4f14bcd8
GD
15544
15545
d29b553b
VZ
15546WCHAR_OK=0
15547if test "$wx_cv_sizeof_wchar_t" != "0"; then
15548 WCHAR_LINK=
7a30264c
VZ
15549 for ac_func in wcslen
15550do
15551echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
986ecc86 15552echo "configure:15553: checking for $ac_func" >&5
7a30264c 15553if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4f14bcd8
GD
15554 echo $ac_n "(cached) $ac_c" 1>&6
15555else
7a30264c 15556 cat > conftest.$ac_ext <<EOF
986ecc86 15557#line 15558 "configure"
4f14bcd8 15558#include "confdefs.h"
7a30264c
VZ
15559/* System header to define __stub macros and hopefully few prototypes,
15560 which can conflict with char $ac_func(); below. */
15561#include <assert.h>
4f14bcd8
GD
15562/* Override any gcc2 internal prototype to avoid an error. */
15563/* We use char because int might match the return type of a gcc2
15564 builtin and then its argument prototype would still apply. */
7a30264c 15565char $ac_func();
4f14bcd8
GD
15566
15567int main() {
7a30264c
VZ
15568
15569/* The GNU C library defines this for functions which it implements
15570 to always fail with ENOSYS. Some functions are actually named
15571 something starting with __ and the normal name is an alias. */
15572#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15573choke me
15574#else
15575$ac_func();
15576#endif
15577
698dcdb6
VZ
15578; return 0; }
15579EOF
986ecc86 15580if { (eval echo configure:15581: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6 15581 rm -rf conftest*
7a30264c 15582 eval "ac_cv_func_$ac_func=yes"
c521c494 15583else
698dcdb6
VZ
15584 echo "configure: failed program was:" >&5
15585 cat conftest.$ac_ext >&5
15586 rm -rf conftest*
7a30264c 15587 eval "ac_cv_func_$ac_func=no"
6232543b 15588fi
698dcdb6 15589rm -f conftest*
1e487827 15590fi
7a30264c
VZ
15591
15592if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4f14bcd8 15593 echo "$ac_t""yes" 1>&6
7a30264c
VZ
15594 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15595 cat >> confdefs.h <<EOF
15596#define $ac_tr_func 1
15597EOF
15598
15599 cat >> confdefs.h <<\EOF
4f14bcd8 15600#define HAVE_WCSLEN 1
9d8deca0
VZ
15601EOF
15602
7a30264c
VZ
15603 WCHAR_OK=1
15604
9d8deca0 15605else
4f14bcd8 15606 echo "$ac_t""no" 1>&6
7a30264c
VZ
15607fi
15608done
9d8deca0 15609
7a30264c
VZ
15610
15611 if test "$WCHAR_OK" = 0; then
15612 if test "$TOOLKIT" = "MSW"; then
15613 echo $ac_n "checking for wcslen in -lmsvcrt""... $ac_c" 1>&6
986ecc86 15614echo "configure:15615: checking for wcslen in -lmsvcrt" >&5
7a30264c 15615ac_lib_var=`echo msvcrt'_'wcslen | sed 'y%./+-%__p_%'`
4f14bcd8 15616if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
698dcdb6 15617 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 15618else
4f14bcd8 15619 ac_save_LIBS="$LIBS"
7a30264c 15620LIBS="-lmsvcrt $LIBS"
4f14bcd8 15621cat > conftest.$ac_ext <<EOF
986ecc86 15622#line 15623 "configure"
10f2d63a 15623#include "confdefs.h"
4f14bcd8
GD
15624/* Override any gcc2 internal prototype to avoid an error. */
15625/* We use char because int might match the return type of a gcc2
15626 builtin and then its argument prototype would still apply. */
15627char wcslen();
10f2d63a 15628
698dcdb6 15629int main() {
4f14bcd8 15630wcslen()
698dcdb6
VZ
15631; return 0; }
15632EOF
986ecc86 15633if { (eval echo configure:15634: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6 15634 rm -rf conftest*
4f14bcd8 15635 eval "ac_cv_lib_$ac_lib_var=yes"
10f2d63a 15636else
698dcdb6
VZ
15637 echo "configure: failed program was:" >&5
15638 cat conftest.$ac_ext >&5
15639 rm -rf conftest*
4f14bcd8 15640 eval "ac_cv_lib_$ac_lib_var=no"
6232543b 15641fi
698dcdb6 15642rm -f conftest*
4f14bcd8 15643LIBS="$ac_save_LIBS"
703e0a69 15644
1e487827 15645fi
4f14bcd8
GD
15646if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15647 echo "$ac_t""yes" 1>&6
15648
7a30264c 15649 cat >> confdefs.h <<\EOF
4f14bcd8 15650#define HAVE_WCSLEN 1
9d8deca0
VZ
15651EOF
15652
7a30264c
VZ
15653 WCHAR_OK=1
15654
4f14bcd8
GD
15655else
15656 echo "$ac_t""no" 1>&6
d29b553b 15657fi
698dcdb6 15658
7a30264c
VZ
15659 else
15660 echo $ac_n "checking for wcslen in -lw""... $ac_c" 1>&6
986ecc86 15661echo "configure:15662: checking for wcslen in -lw" >&5
7a30264c 15662ac_lib_var=`echo w'_'wcslen | sed 'y%./+-%__p_%'`
4f14bcd8 15663if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
698dcdb6
VZ
15664 echo $ac_n "(cached) $ac_c" 1>&6
15665else
4f14bcd8 15666 ac_save_LIBS="$LIBS"
7a30264c 15667LIBS="-lw $LIBS"
4f14bcd8 15668cat > conftest.$ac_ext <<EOF
986ecc86 15669#line 15670 "configure"
95c8801c 15670#include "confdefs.h"
4f14bcd8
GD
15671/* Override any gcc2 internal prototype to avoid an error. */
15672/* We use char because int might match the return type of a gcc2
15673 builtin and then its argument prototype would still apply. */
15674char wcslen();
95c8801c 15675
4f14bcd8
GD
15676int main() {
15677wcslen()
698dcdb6
VZ
15678; return 0; }
15679EOF
986ecc86 15680if { (eval echo configure:15681: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6 15681 rm -rf conftest*
4f14bcd8 15682 eval "ac_cv_lib_$ac_lib_var=yes"
95c8801c 15683else
698dcdb6
VZ
15684 echo "configure: failed program was:" >&5
15685 cat conftest.$ac_ext >&5
15686 rm -rf conftest*
4f14bcd8 15687 eval "ac_cv_lib_$ac_lib_var=no"
95c8801c 15688fi
698dcdb6 15689rm -f conftest*
4f14bcd8 15690LIBS="$ac_save_LIBS"
95c8801c
VS
15691
15692fi
4f14bcd8
GD
15693if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15694 echo "$ac_t""yes" 1>&6
15695
7a30264c 15696 cat >> confdefs.h <<\EOF
4f14bcd8
GD
15697#define HAVE_WCSLEN 1
15698EOF
698dcdb6 15699
7a30264c
VZ
15700 WCHAR_LINK=" -lw"
15701 WCHAR_OK=1
15702
4f14bcd8
GD
15703else
15704 echo "$ac_t""no" 1>&6
15705fi
10f2d63a 15706
7a30264c 15707 fi
d29b553b 15708 fi
4f14bcd8 15709fi
95c8801c 15710
d29b553b
VZ
15711if test "$WCHAR_OK" = 1; then
15712 cat >> confdefs.h <<\EOF
15713#define wxUSE_WCHAR_T 1
15714EOF
10f2d63a 15715
1e487827 15716
d29b553b 15717 for ac_func in wcsrtombs
eb4efbdc 15718do
698dcdb6 15719echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
986ecc86 15720echo "configure:15721: checking for $ac_func" >&5
698dcdb6
VZ
15721if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15722 echo $ac_n "(cached) $ac_c" 1>&6
15723else
15724 cat > conftest.$ac_ext <<EOF
986ecc86 15725#line 15726 "configure"
eb4efbdc
VZ
15726#include "confdefs.h"
15727/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 15728 which can conflict with char $ac_func(); below. */
eb4efbdc
VZ
15729#include <assert.h>
15730/* Override any gcc2 internal prototype to avoid an error. */
15731/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
15732 builtin and then its argument prototype would still apply. */
15733char $ac_func();
15734
15735int main() {
eb4efbdc
VZ
15736
15737/* The GNU C library defines this for functions which it implements
15738 to always fail with ENOSYS. Some functions are actually named
15739 something starting with __ and the normal name is an alias. */
15740#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15741choke me
15742#else
698dcdb6 15743$ac_func();
eb4efbdc
VZ
15744#endif
15745
698dcdb6 15746; return 0; }
eb4efbdc 15747EOF
986ecc86 15748if { (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_func_$ac_func=yes"
15751else
15752 echo "configure: failed program was:" >&5
15753 cat conftest.$ac_ext >&5
15754 rm -rf conftest*
15755 eval "ac_cv_func_$ac_func=no"
15756fi
15757rm -f conftest*
15758fi
eb4efbdc 15759
698dcdb6
VZ
15760if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15761 echo "$ac_t""yes" 1>&6
15762 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15763 cat >> confdefs.h <<EOF
15764#define $ac_tr_func 1
15765EOF
15766
15767else
15768 echo "$ac_t""no" 1>&6
eb4efbdc
VZ
15769fi
15770done
15771
d29b553b 15772else
a1ea5055
GD
15773 if test "$USE_DARWIN" = 1; then
15774 cat >> confdefs.h <<\EOF
15775#define wxUSE_WCHAR_T 1
15776EOF
15777
15778 else
15779 echo "configure: warning: Wide character support is unavailable" 1>&2
15780 fi
d29b553b 15781fi
698dcdb6 15782
4f14bcd8 15783echo $ac_n "checking for vprintf""... $ac_c" 1>&6
986ecc86 15784echo "configure:15785: checking for vprintf" >&5
4f14bcd8 15785if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
698dcdb6
VZ
15786 echo $ac_n "(cached) $ac_c" 1>&6
15787else
4f14bcd8 15788 cat > conftest.$ac_ext <<EOF
986ecc86 15789#line 15790 "configure"
f6bcfd97 15790#include "confdefs.h"
4f14bcd8
GD
15791/* System header to define __stub macros and hopefully few prototypes,
15792 which can conflict with char vprintf(); below. */
15793#include <assert.h>
15794/* Override any gcc2 internal prototype to avoid an error. */
15795/* We use char because int might match the return type of a gcc2
15796 builtin and then its argument prototype would still apply. */
15797char vprintf();
15798
698dcdb6 15799int main() {
f6bcfd97 15800
4f14bcd8
GD
15801/* The GNU C library defines this for functions which it implements
15802 to always fail with ENOSYS. Some functions are actually named
15803 something starting with __ and the normal name is an alias. */
15804#if defined (__stub_vprintf) || defined (__stub___vprintf)
15805choke me
15806#else
15807vprintf();
15808#endif
f6bcfd97 15809
698dcdb6
VZ
15810; return 0; }
15811EOF
986ecc86 15812if { (eval echo configure:15813: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6 15813 rm -rf conftest*
4f14bcd8 15814 eval "ac_cv_func_vprintf=yes"
f6bcfd97 15815else
698dcdb6
VZ
15816 echo "configure: failed program was:" >&5
15817 cat conftest.$ac_ext >&5
15818 rm -rf conftest*
4f14bcd8 15819 eval "ac_cv_func_vprintf=no"
6232543b 15820fi
698dcdb6 15821rm -f conftest*
1e487827 15822fi
698dcdb6 15823
4f14bcd8
GD
15824if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
15825 echo "$ac_t""yes" 1>&6
15826 cat >> confdefs.h <<\EOF
15827#define HAVE_VPRINTF 1
f6bcfd97
BP
15828EOF
15829
4f14bcd8
GD
15830else
15831 echo "$ac_t""no" 1>&6
eb4efbdc
VZ
15832fi
15833
4f14bcd8
GD
15834if test "$ac_cv_func_vprintf" != yes; then
15835echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
986ecc86 15836echo "configure:15837: checking for _doprnt" >&5
4f14bcd8 15837if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
698dcdb6
VZ
15838 echo $ac_n "(cached) $ac_c" 1>&6
15839else
15840 cat > conftest.$ac_ext <<EOF
986ecc86 15841#line 15842 "configure"
10f2d63a
VZ
15842#include "confdefs.h"
15843/* System header to define __stub macros and hopefully few prototypes,
4f14bcd8 15844 which can conflict with char _doprnt(); below. */
10f2d63a
VZ
15845#include <assert.h>
15846/* Override any gcc2 internal prototype to avoid an error. */
15847/* We use char because int might match the return type of a gcc2
698dcdb6 15848 builtin and then its argument prototype would still apply. */
4f14bcd8 15849char _doprnt();
698dcdb6
VZ
15850
15851int main() {
10f2d63a
VZ
15852
15853/* The GNU C library defines this for functions which it implements
15854 to always fail with ENOSYS. Some functions are actually named
15855 something starting with __ and the normal name is an alias. */
4f14bcd8 15856#if defined (__stub__doprnt) || defined (__stub____doprnt)
10f2d63a
VZ
15857choke me
15858#else
4f14bcd8 15859_doprnt();
10f2d63a
VZ
15860#endif
15861
698dcdb6 15862; return 0; }
10f2d63a 15863EOF
986ecc86 15864if { (eval echo configure:15865: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6 15865 rm -rf conftest*
4f14bcd8 15866 eval "ac_cv_func__doprnt=yes"
698dcdb6
VZ
15867else
15868 echo "configure: failed program was:" >&5
15869 cat conftest.$ac_ext >&5
15870 rm -rf conftest*
4f14bcd8 15871 eval "ac_cv_func__doprnt=no"
698dcdb6
VZ
15872fi
15873rm -f conftest*
15874fi
270a909e 15875
4f14bcd8 15876if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
698dcdb6 15877 echo "$ac_t""yes" 1>&6
4f14bcd8
GD
15878 cat >> confdefs.h <<\EOF
15879#define HAVE_DOPRNT 1
698dcdb6 15880EOF
4f14bcd8 15881
698dcdb6
VZ
15882else
15883 echo "$ac_t""no" 1>&6
270a909e 15884fi
270a909e 15885
4f14bcd8 15886fi
1e487827 15887
52e8b690 15888
52e8b690 15889
52e8b690 15890
52e8b690 15891
52e8b690 15892
4f14bcd8 15893echo $ac_n "checking for vsnprintf""... $ac_c" 1>&6
986ecc86 15894echo "configure:15895: checking for vsnprintf" >&5
4f14bcd8 15895if eval "test \"`echo '$''{'wx_cv_func_vsnprintf'+set}'`\" = set"; then
698dcdb6 15896 echo $ac_n "(cached) $ac_c" 1>&6
c63c7106 15897else
4f14bcd8 15898
af15babd 15899 cat > conftest.$ac_ext <<EOF
986ecc86 15900#line 15901 "configure"
c63c7106 15901#include "confdefs.h"
698dcdb6 15902
4f14bcd8
GD
15903 #include <stdio.h>
15904 #include <stdarg.h>
15905
af15babd
VZ
15906int main() {
15907
4f14bcd8
GD
15908 int wx_test_vsnprintf(const char *, ...);
15909
15910 wx_test_vsnprintf("%s");
15911 return 0;
15912 }
15913
15914 int wx_test_vsnprintf(const char *fmt, ...)
15915 {
15916 char *s;
15917
15918 va_list argp;
15919 va_start(argp, fmt);
15920 vsnprintf(s, 42, fmt, argp);
15921 va_end(argp);
15922
af15babd
VZ
15923; return 0; }
15924EOF
986ecc86 15925if { (eval echo configure:15926: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
af15babd
VZ
15926 rm -rf conftest*
15927
4f14bcd8
GD
15928 wx_cv_func_vsnprintf=yes
15929
af15babd
VZ
15930else
15931 echo "configure: failed program was:" >&5
15932 cat conftest.$ac_ext >&5
15933 rm -rf conftest*
15934
4f14bcd8 15935 cat > conftest.$ac_ext <<EOF
986ecc86 15936#line 15937 "configure"
af15babd 15937#include "confdefs.h"
af15babd 15938
4f14bcd8
GD
15939 #include <stdio.h>
15940 #include <stdarg.h>
15941
af15babd
VZ
15942int main() {
15943
4f14bcd8
GD
15944 int wx_test_vsnprintf(const char *, ...);
15945
15946 wx_test_vsnprintf("%s");
15947 return 0;
15948 }
15949
15950 int wx_test_vsnprintf(const char *fmt, ...)
15951 {
15952 char *s;
af15babd 15953
4f14bcd8
GD
15954 va_list argp;
15955 va_start(argp, fmt);
15956 _vsnprintf(s, 42, fmt, argp);
15957 va_end(argp);
15958
af15babd
VZ
15959; return 0; }
15960EOF
986ecc86 15961if { (eval echo configure:15962: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
af15babd 15962 rm -rf conftest*
4f14bcd8
GD
15963
15964 wx_cv_func_vsnprintf=yes
15965
af15babd
VZ
15966else
15967 echo "configure: failed program was:" >&5
15968 cat conftest.$ac_ext >&5
15969 rm -rf conftest*
4f14bcd8
GD
15970
15971 wx_cv_func_vsnprintf=no
15972
af15babd
VZ
15973fi
15974rm -f conftest*
4f14bcd8 15975
af15babd 15976fi
4f14bcd8 15977rm -f conftest*
af15babd 15978
af15babd 15979fi
af15babd 15980
4f14bcd8 15981echo "$ac_t""$wx_cv_func_vsnprintf" 1>&6
af15babd 15982
4f14bcd8
GD
15983if test "$wx_cv_func_vsnprintf" = yes; then
15984 cat >> confdefs.h <<\EOF
15985#define HAVE_VSNPRINTF 1
15986EOF
15987
15988else
f9bc1684 15989 echo "configure: warning: unsafe function vsprintf will be used instead of vsnprintf" 1>&2
af15babd
VZ
15990fi
15991
4f14bcd8 15992echo $ac_n "checking for vsscanf""... $ac_c" 1>&6
986ecc86 15993echo "configure:15994: checking for vsscanf" >&5
4f14bcd8 15994if eval "test \"`echo '$''{'wx_cv_func_vsscanf'+set}'`\" = set"; then
af15babd
VZ
15995 echo $ac_n "(cached) $ac_c" 1>&6
15996else
4f14bcd8 15997
af15babd 15998 cat > conftest.$ac_ext <<EOF
986ecc86 15999#line 16000 "configure"
af15babd 16000#include "confdefs.h"
af15babd 16001
4f14bcd8
GD
16002 #include <stdio.h>
16003 #include <stdarg.h>
16004
af15babd
VZ
16005int main() {
16006
4f14bcd8
GD
16007 int wx_test_vsscanf(const char *, ...);
16008
16009 wx_test_vsscanf("%d");
16010 return 0;
16011 }
af15babd 16012
4f14bcd8
GD
16013 int wx_test_vsscanf(const char *fmt, ...)
16014 {
16015 va_list argp;
16016 va_start(argp, fmt);
16017 vsscanf("42", fmt, argp);
16018 va_end(argp);
16019
af15babd
VZ
16020; return 0; }
16021EOF
986ecc86 16022if { (eval echo configure:16023: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
af15babd 16023 rm -rf conftest*
4f14bcd8
GD
16024
16025 wx_cv_func_vsscanf=yes
16026
af15babd
VZ
16027else
16028 echo "configure: failed program was:" >&5
16029 cat conftest.$ac_ext >&5
16030 rm -rf conftest*
4f14bcd8
GD
16031
16032 wx_cv_func_vsscanf=no
16033
af15babd
VZ
16034fi
16035rm -f conftest*
4f14bcd8 16036
af15babd
VZ
16037fi
16038
4f14bcd8
GD
16039echo "$ac_t""$wx_cv_func_vsscanf" 1>&6
16040
16041if test "$wx_cv_func_vsscanf" = yes; then
16042 cat >> confdefs.h <<\EOF
16043#define HAVE_VSSCANF 1
af15babd 16044EOF
4f14bcd8 16045
af15babd 16046fi
af15babd 16047
4f14bcd8 16048if test "$TOOLKIT" != "MSW"; then
af15babd 16049
4f14bcd8
GD
16050
16051
16052ac_ext=C
16053# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16054ac_cpp='$CXXCPP $CPPFLAGS'
16055ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16056ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16057cross_compiling=$ac_cv_prog_cxx_cross
16058
b040e242
VS
16059
16060
16061 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
16062if test "${with_libiconv_prefix+set}" = set; then
16063 withval="$with_libiconv_prefix"
16064
16065 for dir in `echo "$withval" | tr : ' '`; do
16066 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
16067 if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
16068 done
16069
16070fi
16071
16072
16073 echo $ac_n "checking for iconv""... $ac_c" 1>&6
986ecc86 16074echo "configure:16075: checking for iconv" >&5
b040e242 16075if eval "test \"`echo '$''{'am_cv_func_iconv'+set}'`\" = set"; then
af15babd
VZ
16076 echo $ac_n "(cached) $ac_c" 1>&6
16077else
4f14bcd8 16078
b040e242
VS
16079 am_cv_func_iconv="no, consider installing GNU libiconv"
16080 am_cv_lib_iconv=no
4f14bcd8 16081 cat > conftest.$ac_ext <<EOF
986ecc86 16082#line 16083 "configure"
af15babd 16083#include "confdefs.h"
b040e242 16084#include <stdlib.h>
4f14bcd8 16085#include <iconv.h>
af15babd 16086int main() {
b040e242
VS
16087iconv_t cd = iconv_open("","");
16088 iconv(cd,NULL,NULL,NULL,NULL);
16089 iconv_close(cd);
af15babd
VZ
16090; return 0; }
16091EOF
986ecc86 16092if { (eval echo configure:16093: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
af15babd 16093 rm -rf conftest*
b040e242 16094 am_cv_func_iconv=yes
af15babd
VZ
16095else
16096 echo "configure: failed program was:" >&5
16097 cat conftest.$ac_ext >&5
b040e242
VS
16098fi
16099rm -f conftest*
16100 if test "$am_cv_func_iconv" != yes; then
16101 am_save_LIBS="$LIBS"
16102 LIBS="$LIBS -liconv"
16103 cat > conftest.$ac_ext <<EOF
986ecc86 16104#line 16105 "configure"
b040e242
VS
16105#include "confdefs.h"
16106#include <stdlib.h>
16107#include <iconv.h>
16108int main() {
16109iconv_t cd = iconv_open("","");
16110 iconv(cd,NULL,NULL,NULL,NULL);
16111 iconv_close(cd);
16112; return 0; }
16113EOF
986ecc86 16114if { (eval echo configure:16115: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
af15babd 16115 rm -rf conftest*
b040e242
VS
16116 am_cv_lib_iconv=yes
16117 am_cv_func_iconv=yes
16118else
16119 echo "configure: failed program was:" >&5
16120 cat conftest.$ac_ext >&5
af15babd
VZ
16121fi
16122rm -f conftest*
b040e242
VS
16123 LIBS="$am_save_LIBS"
16124 fi
16125
16126fi
16127
16128echo "$ac_t""$am_cv_func_iconv" 1>&6
16129 if test "$am_cv_func_iconv" = yes; then
16130 cat >> confdefs.h <<\EOF
16131#define HAVE_ICONV 1
16132EOF
16133
b7043674 16134 echo $ac_n "checking if iconv needs const""... $ac_c" 1>&6
986ecc86 16135echo "configure:16136: checking if iconv needs const" >&5
b7043674 16136if eval "test \"`echo '$''{'wx_cv_func_iconv_const'+set}'`\" = set"; then
b040e242
VS
16137 echo $ac_n "(cached) $ac_c" 1>&6
16138else
b7043674 16139 cat > conftest.$ac_ext <<EOF
986ecc86 16140#line 16141 "configure"
b040e242
VS
16141#include "confdefs.h"
16142
16143#include <stdlib.h>
16144#include <iconv.h>
16145extern
16146#ifdef __cplusplus
16147"C"
16148#endif
16149#if defined(__STDC__) || defined(__cplusplus)
16150size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
16151#else
16152size_t iconv();
16153#endif
b7043674 16154
b040e242 16155int main() {
af15babd 16156
b040e242
VS
16157; return 0; }
16158EOF
986ecc86 16159if { (eval echo configure:16160: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
b040e242 16160 rm -rf conftest*
b7043674 16161 wx_cv_func_iconv_const="no"
b040e242
VS
16162else
16163 echo "configure: failed program was:" >&5
16164 cat conftest.$ac_ext >&5
16165 rm -rf conftest*
b7043674
VZ
16166 wx_cv_func_iconv_const="yes"
16167
b040e242
VS
16168fi
16169rm -f conftest*
b7043674 16170
af15babd 16171fi
af15babd 16172
b7043674
VZ
16173echo "$ac_t""$wx_cv_func_iconv_const" 1>&6
16174
16175 iconv_const=
1c405bb5 16176 if test "x$wx_cv_func_iconv_const" = "xyes"; then
b7043674
VZ
16177 iconv_const="const"
16178 fi
16179
b040e242 16180 cat >> confdefs.h <<EOF
b7043674 16181#define ICONV_CONST $iconv_const
b040e242
VS
16182EOF
16183
16184 fi
16185 LIBICONV=
16186 if test "$am_cv_lib_iconv" = yes; then
16187 LIBICONV="-liconv"
16188 fi
16189
16190
16191LIBS="$LIBICONV $LIBS"
4f14bcd8
GD
16192ac_ext=c
16193# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16194ac_cpp='$CPP $CPPFLAGS'
16195ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16196ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16197cross_compiling=$ac_cv_prog_cc_cross
af15babd 16198
af15babd 16199
4f14bcd8
GD
16200if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then
16201 for ac_func in sigaction
af15babd
VZ
16202do
16203echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
986ecc86 16204echo "configure:16205: checking for $ac_func" >&5
af15babd
VZ
16205if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16206 echo $ac_n "(cached) $ac_c" 1>&6
16207else
16208 cat > conftest.$ac_ext <<EOF
986ecc86 16209#line 16210 "configure"
af15babd
VZ
16210#include "confdefs.h"
16211/* System header to define __stub macros and hopefully few prototypes,
16212 which can conflict with char $ac_func(); below. */
16213#include <assert.h>
16214/* Override any gcc2 internal prototype to avoid an error. */
16215/* We use char because int might match the return type of a gcc2
16216 builtin and then its argument prototype would still apply. */
16217char $ac_func();
16218
16219int main() {
16220
16221/* The GNU C library defines this for functions which it implements
16222 to always fail with ENOSYS. Some functions are actually named
16223 something starting with __ and the normal name is an alias. */
16224#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16225choke me
16226#else
16227$ac_func();
16228#endif
16229
16230; return 0; }
16231EOF
986ecc86 16232if { (eval echo configure:16233: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
af15babd
VZ
16233 rm -rf conftest*
16234 eval "ac_cv_func_$ac_func=yes"
16235else
16236 echo "configure: failed program was:" >&5
16237 cat conftest.$ac_ext >&5
16238 rm -rf conftest*
16239 eval "ac_cv_func_$ac_func=no"
16240fi
16241rm -f conftest*
16242fi
16243
16244if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16245 echo "$ac_t""yes" 1>&6
16246 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16247 cat >> confdefs.h <<EOF
16248#define $ac_tr_func 1
16249EOF
4f14bcd8 16250
af15babd
VZ
16251else
16252 echo "$ac_t""no" 1>&6
4f14bcd8
GD
16253fi
16254done
16255
16256
16257 if test "$ac_cv_func_sigaction" = "no"; then
16258 echo "configure: warning: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" 1>&2
16259 wxUSE_ON_FATAL_EXCEPTION=no
16260 fi
16261
16262 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
16263
16264 ac_ext=C
16265# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16266ac_cpp='$CXXCPP $CPPFLAGS'
16267ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16268ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16269cross_compiling=$ac_cv_prog_cxx_cross
16270
16271
16272 echo $ac_n "checking for sa_handler type""... $ac_c" 1>&6
986ecc86 16273echo "configure:16274: checking for sa_handler type" >&5
4f14bcd8 16274if eval "test \"`echo '$''{'wx_cv_type_sa_handler'+set}'`\" = set"; then
af15babd
VZ
16275 echo $ac_n "(cached) $ac_c" 1>&6
16276else
4f14bcd8
GD
16277
16278 cat > conftest.$ac_ext <<EOF
986ecc86 16279#line 16280 "configure"
af15babd 16280#include "confdefs.h"
4f14bcd8 16281#include <signal.h>
af15babd 16282int main() {
4f14bcd8
GD
16283
16284 extern void testSigHandler(int);
16285
16286 struct sigaction sa;
16287 sa.sa_handler = testSigHandler;
16288
af15babd
VZ
16289; return 0; }
16290EOF
986ecc86 16291if { (eval echo configure:16292: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
af15babd 16292 rm -rf conftest*
4f14bcd8
GD
16293
16294 wx_cv_type_sa_handler=int
16295
af15babd
VZ
16296else
16297 echo "configure: failed program was:" >&5
16298 cat conftest.$ac_ext >&5
16299 rm -rf conftest*
4f14bcd8
GD
16300
16301 wx_cv_type_sa_handler=void
16302
af15babd
VZ
16303fi
16304rm -f conftest*
4f14bcd8
GD
16305
16306fi
16307
16308echo "$ac_t""$wx_cv_type_sa_handler" 1>&6
16309
16310 ac_ext=c
16311# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16312ac_cpp='$CPP $CPPFLAGS'
16313ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16314ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16315cross_compiling=$ac_cv_prog_cc_cross
af15babd 16316
4f14bcd8
GD
16317
16318 cat >> confdefs.h <<EOF
16319#define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler
af15babd
VZ
16320EOF
16321
4f14bcd8
GD
16322 fi
16323fi
af15babd 16324
4f14bcd8 16325for ac_func in vfork
af15babd
VZ
16326do
16327echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
986ecc86 16328echo "configure:16329: checking for $ac_func" >&5
af15babd
VZ
16329if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16330 echo $ac_n "(cached) $ac_c" 1>&6
16331else
16332 cat > conftest.$ac_ext <<EOF
986ecc86 16333#line 16334 "configure"
af15babd
VZ
16334#include "confdefs.h"
16335/* System header to define __stub macros and hopefully few prototypes,
16336 which can conflict with char $ac_func(); below. */
16337#include <assert.h>
16338/* Override any gcc2 internal prototype to avoid an error. */
16339/* We use char because int might match the return type of a gcc2
16340 builtin and then its argument prototype would still apply. */
16341char $ac_func();
16342
16343int main() {
16344
16345/* The GNU C library defines this for functions which it implements
16346 to always fail with ENOSYS. Some functions are actually named
16347 something starting with __ and the normal name is an alias. */
16348#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16349choke me
16350#else
16351$ac_func();
16352#endif
16353
16354; return 0; }
16355EOF
986ecc86 16356if { (eval echo configure:16357: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
af15babd
VZ
16357 rm -rf conftest*
16358 eval "ac_cv_func_$ac_func=yes"
16359else
16360 echo "configure: failed program was:" >&5
16361 cat conftest.$ac_ext >&5
16362 rm -rf conftest*
16363 eval "ac_cv_func_$ac_func=no"
16364fi
16365rm -f conftest*
16366fi
16367
16368if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16369 echo "$ac_t""yes" 1>&6
16370 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16371 cat >> confdefs.h <<EOF
16372#define $ac_tr_func 1
16373EOF
4f14bcd8 16374
af15babd
VZ
16375else
16376 echo "$ac_t""no" 1>&6
af15babd
VZ
16377fi
16378done
16379
af15babd 16380
ade35f11
VZ
16381for ac_func in mkstemp mktemp
16382do
16383echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
986ecc86 16384echo "configure:16385: checking for $ac_func" >&5
ade35f11
VZ
16385if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16386 echo $ac_n "(cached) $ac_c" 1>&6
16387else
16388 cat > conftest.$ac_ext <<EOF
986ecc86 16389#line 16390 "configure"
ade35f11
VZ
16390#include "confdefs.h"
16391/* System header to define __stub macros and hopefully few prototypes,
16392 which can conflict with char $ac_func(); below. */
16393#include <assert.h>
16394/* Override any gcc2 internal prototype to avoid an error. */
16395/* We use char because int might match the return type of a gcc2
16396 builtin and then its argument prototype would still apply. */
16397char $ac_func();
16398
16399int main() {
16400
16401/* The GNU C library defines this for functions which it implements
16402 to always fail with ENOSYS. Some functions are actually named
16403 something starting with __ and the normal name is an alias. */
16404#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16405choke me
16406#else
16407$ac_func();
16408#endif
16409
16410; return 0; }
16411EOF
986ecc86 16412if { (eval echo configure:16413: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ade35f11
VZ
16413 rm -rf conftest*
16414 eval "ac_cv_func_$ac_func=yes"
16415else
16416 echo "configure: failed program was:" >&5
16417 cat conftest.$ac_ext >&5
16418 rm -rf conftest*
16419 eval "ac_cv_func_$ac_func=no"
16420fi
16421rm -f conftest*
16422fi
16423
16424if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16425 echo "$ac_t""yes" 1>&6
16426 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16427 cat >> confdefs.h <<EOF
16428#define $ac_tr_func 1
16429EOF
16430 break
16431else
16432 echo "$ac_t""no" 1>&6
16433fi
16434done
16435
16436
4f14bcd8 16437echo $ac_n "checking for statfs""... $ac_c" 1>&6
986ecc86 16438echo "configure:16439: checking for statfs" >&5
4f14bcd8
GD
16439if eval "test \"`echo '$''{'wx_cv_func_statfs'+set}'`\" = set"; then
16440 echo $ac_n "(cached) $ac_c" 1>&6
16441else
16442 cat > conftest.$ac_ext <<EOF
986ecc86 16443#line 16444 "configure"
4f14bcd8
GD
16444#include "confdefs.h"
16445
16446 #if defined(__BSD__)
16447 #include <sys/param.h>
16448 #include <sys/mount.h>
16449 #else
16450 #include <sys/vfs.h>
16451 #endif
16452
16453int main() {
16454
16455 long l;
16456 struct statfs fs;
16457 statfs("/", &fs);
16458 l = fs.f_bsize;
16459 l += fs.f_blocks;
16460 l += fs.f_bavail;
16461
16462; return 0; }
16463EOF
986ecc86 16464if { (eval echo configure:16465: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4f14bcd8
GD
16465 rm -rf conftest*
16466
16467 wx_cv_func_statfs=yes
16468
16469else
16470 echo "configure: failed program was:" >&5
16471 cat conftest.$ac_ext >&5
16472 rm -rf conftest*
16473
16474 wx_cv_func_statfs=no
af15babd
VZ
16475
16476
16477fi
4f14bcd8 16478rm -f conftest*
af15babd
VZ
16479
16480fi
16481
4f14bcd8
GD
16482echo "$ac_t""$wx_cv_func_statfs" 1>&6
16483
16484if test "$wx_cv_func_statfs" = "yes"; then
16485 cat >> confdefs.h <<\EOF
16486#define HAVE_STATFS 1
16487EOF
16488
16489else
16490 echo $ac_n "checking for statvfs""... $ac_c" 1>&6
986ecc86 16491echo "configure:16492: checking for statvfs" >&5
4f14bcd8 16492if eval "test \"`echo '$''{'wx_cv_func_statvfs'+set}'`\" = set"; then
af15babd
VZ
16493 echo $ac_n "(cached) $ac_c" 1>&6
16494else
16495 cat > conftest.$ac_ext <<EOF
986ecc86 16496#line 16497 "configure"
af15babd 16497#include "confdefs.h"
af15babd 16498
4f14bcd8
GD
16499 #include <sys/statvfs.h>
16500
af15babd
VZ
16501int main() {
16502
4f14bcd8
GD
16503 long l;
16504 struct statvfs fs;
16505 statvfs("/", &fs);
16506 l = fs.f_bsize;
16507 l += fs.f_blocks;
16508 l += fs.f_bavail;
16509
af15babd
VZ
16510; return 0; }
16511EOF
986ecc86 16512if { (eval echo configure:16513: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
af15babd 16513 rm -rf conftest*
4f14bcd8
GD
16514
16515 wx_cv_func_statvfs=yes
16516
af15babd
VZ
16517else
16518 echo "configure: failed program was:" >&5
16519 cat conftest.$ac_ext >&5
16520 rm -rf conftest*
4f14bcd8
GD
16521
16522 wx_cv_func_statvfs=no
16523
16524
af15babd
VZ
16525fi
16526rm -f conftest*
4f14bcd8 16527
af15babd
VZ
16528fi
16529
4f14bcd8 16530echo "$ac_t""$wx_cv_func_statvfs" 1>&6
af15babd 16531
4f14bcd8
GD
16532 if test "$wx_cv_func_statvfs" = "yes"; then
16533 cat >> confdefs.h <<\EOF
16534#define HAVE_STATVFS 1
16535EOF
af15babd 16536
4f14bcd8
GD
16537 else
16538 echo "configure: warning: wxGetDiskSpace() function won't work without statfs()" 1>&2
16539 fi
16540fi
af15babd 16541
4f14bcd8
GD
16542if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
16543 for ac_func in fcntl flock
af15babd
VZ
16544do
16545echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
986ecc86 16546echo "configure:16547: checking for $ac_func" >&5
af15babd
VZ
16547if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16548 echo $ac_n "(cached) $ac_c" 1>&6
16549else
16550 cat > conftest.$ac_ext <<EOF
986ecc86 16551#line 16552 "configure"
af15babd
VZ
16552#include "confdefs.h"
16553/* System header to define __stub macros and hopefully few prototypes,
16554 which can conflict with char $ac_func(); below. */
16555#include <assert.h>
16556/* Override any gcc2 internal prototype to avoid an error. */
af15babd
VZ
16557/* We use char because int might match the return type of a gcc2
16558 builtin and then its argument prototype would still apply. */
16559char $ac_func();
16560
16561int main() {
16562
16563/* The GNU C library defines this for functions which it implements
16564 to always fail with ENOSYS. Some functions are actually named
16565 something starting with __ and the normal name is an alias. */
16566#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16567choke me
16568#else
16569$ac_func();
16570#endif
16571
16572; return 0; }
16573EOF
986ecc86 16574if { (eval echo configure:16575: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
af15babd
VZ
16575 rm -rf conftest*
16576 eval "ac_cv_func_$ac_func=yes"
16577else
16578 echo "configure: failed program was:" >&5
16579 cat conftest.$ac_ext >&5
16580 rm -rf conftest*
16581 eval "ac_cv_func_$ac_func=no"
16582fi
16583rm -f conftest*
16584fi
16585
16586if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16587 echo "$ac_t""yes" 1>&6
16588 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16589 cat >> confdefs.h <<EOF
16590#define $ac_tr_func 1
16591EOF
4f14bcd8 16592 break
af15babd
VZ
16593else
16594 echo "$ac_t""no" 1>&6
16595fi
16596done
16597
16598
4f14bcd8
GD
16599 if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then
16600 echo "configure: warning: wxSingleInstanceChecker not available" 1>&2
16601 wxUSE_SNGLINST_CHECKER=no
16602 fi
16603fi
af15babd 16604
4f14bcd8 16605for ac_func in timegm
af15babd
VZ
16606do
16607echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
986ecc86 16608echo "configure:16609: checking for $ac_func" >&5
af15babd
VZ
16609if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16610 echo $ac_n "(cached) $ac_c" 1>&6
16611else
16612 cat > conftest.$ac_ext <<EOF
986ecc86 16613#line 16614 "configure"
af15babd
VZ
16614#include "confdefs.h"
16615/* System header to define __stub macros and hopefully few prototypes,
16616 which can conflict with char $ac_func(); below. */
16617#include <assert.h>
16618/* Override any gcc2 internal prototype to avoid an error. */
16619/* We use char because int might match the return type of a gcc2
16620 builtin and then its argument prototype would still apply. */
16621char $ac_func();
16622
698dcdb6 16623int main() {
698dcdb6 16624
af15babd
VZ
16625/* The GNU C library defines this for functions which it implements
16626 to always fail with ENOSYS. Some functions are actually named
16627 something starting with __ and the normal name is an alias. */
16628#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16629choke me
16630#else
16631$ac_func();
16632#endif
16633
698dcdb6
VZ
16634; return 0; }
16635EOF
986ecc86 16636if { (eval echo configure:16637: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6 16637 rm -rf conftest*
af15babd 16638 eval "ac_cv_func_$ac_func=yes"
698dcdb6
VZ
16639else
16640 echo "configure: failed program was:" >&5
16641 cat conftest.$ac_ext >&5
16642 rm -rf conftest*
af15babd 16643 eval "ac_cv_func_$ac_func=no"
1e487827 16644fi
9952adac 16645rm -f conftest*
af15babd 16646fi
703e0a69 16647
af15babd
VZ
16648if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16649 echo "$ac_t""yes" 1>&6
16650 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4f14bcd8
GD
16651 cat >> confdefs.h <<EOF
16652#define $ac_tr_func 1
16653EOF
16654
16655else
16656 echo "$ac_t""no" 1>&6
af15babd
VZ
16657fi
16658done
16659
16660
4f14bcd8 16661for ac_func in putenv setenv
10f2d63a 16662do
698dcdb6 16663echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
986ecc86 16664echo "configure:16665: checking for $ac_func" >&5
698dcdb6
VZ
16665if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16666 echo $ac_n "(cached) $ac_c" 1>&6
16667else
16668 cat > conftest.$ac_ext <<EOF
986ecc86 16669#line 16670 "configure"
af15babd
VZ
16670#include "confdefs.h"
16671/* System header to define __stub macros and hopefully few prototypes,
16672 which can conflict with char $ac_func(); below. */
16673#include <assert.h>
16674/* Override any gcc2 internal prototype to avoid an error. */
16675/* We use char because int might match the return type of a gcc2
16676 builtin and then its argument prototype would still apply. */
16677char $ac_func();
16678
16679int main() {
16680
16681/* The GNU C library defines this for functions which it implements
16682 to always fail with ENOSYS. Some functions are actually named
16683 something starting with __ and the normal name is an alias. */
16684#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16685choke me
16686#else
16687$ac_func();
16688#endif
16689
16690; return 0; }
16691EOF
986ecc86 16692if { (eval echo configure:16693: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
af15babd
VZ
16693 rm -rf conftest*
16694 eval "ac_cv_func_$ac_func=yes"
16695else
16696 echo "configure: failed program was:" >&5
16697 cat conftest.$ac_ext >&5
16698 rm -rf conftest*
16699 eval "ac_cv_func_$ac_func=no"
16700fi
16701rm -f conftest*
16702fi
16703
16704if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16705 echo "$ac_t""yes" 1>&6
16706 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16707 cat >> confdefs.h <<EOF
16708#define $ac_tr_func 1
16709EOF
4f14bcd8 16710 break
af15babd
VZ
16711else
16712 echo "$ac_t""no" 1>&6
16713fi
af15babd
VZ
16714done
16715
16716
4f14bcd8
GD
16717HAVE_SOME_SLEEP_FUNC=0
16718if test "$USE_BEOS" = 1; then
16719 cat >> confdefs.h <<\EOF
16720#define HAVE_SLEEP 1
af15babd
VZ
16721EOF
16722
4f14bcd8 16723 HAVE_SOME_SLEEP_FUNC=1
10f2d63a
VZ
16724fi
16725
4f14bcd8
GD
16726if test "$USE_DARWIN" = 1; then
16727 cat >> confdefs.h <<\EOF
16728#define HAVE_USLEEP 1
af15babd 16729EOF
10f2d63a 16730
4f14bcd8 16731 HAVE_SOME_SLEEP_FUNC=1
10f2d63a
VZ
16732fi
16733
4f14bcd8
GD
16734if test "$HAVE_SOME_SLEEP_FUNC" != 1; then
16735 POSIX4_LINK=
16736 for ac_func in nanosleep
16737do
16738echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
986ecc86 16739echo "configure:16740: checking for $ac_func" >&5
4f14bcd8 16740if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
698dcdb6 16741 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 16742else
4f14bcd8 16743 cat > conftest.$ac_ext <<EOF
986ecc86 16744#line 16745 "configure"
10f2d63a 16745#include "confdefs.h"
4f14bcd8
GD
16746/* System header to define __stub macros and hopefully few prototypes,
16747 which can conflict with char $ac_func(); below. */
16748#include <assert.h>
10f2d63a
VZ
16749/* Override any gcc2 internal prototype to avoid an error. */
16750/* We use char because int might match the return type of a gcc2
698dcdb6 16751 builtin and then its argument prototype would still apply. */
4f14bcd8 16752char $ac_func();
698dcdb6
VZ
16753
16754int main() {
4f14bcd8
GD
16755
16756/* The GNU C library defines this for functions which it implements
16757 to always fail with ENOSYS. Some functions are actually named
16758 something starting with __ and the normal name is an alias. */
16759#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16760choke me
16761#else
16762$ac_func();
16763#endif
16764
698dcdb6
VZ
16765; return 0; }
16766EOF
986ecc86 16767if { (eval echo configure:16768: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6 16768 rm -rf conftest*
4f14bcd8 16769 eval "ac_cv_func_$ac_func=yes"
698dcdb6
VZ
16770else
16771 echo "configure: failed program was:" >&5
16772 cat conftest.$ac_ext >&5
16773 rm -rf conftest*
4f14bcd8 16774 eval "ac_cv_func_$ac_func=no"
698dcdb6
VZ
16775fi
16776rm -f conftest*
698dcdb6 16777fi
4f14bcd8
GD
16778
16779if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
698dcdb6 16780 echo "$ac_t""yes" 1>&6
4f14bcd8
GD
16781 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16782 cat >> confdefs.h <<EOF
16783#define $ac_tr_func 1
16784EOF
16785 cat >> confdefs.h <<\EOF
16786#define HAVE_NANOSLEEP 1
16787EOF
16788
10f2d63a 16789else
698dcdb6 16790 echo "$ac_t""no" 1>&6
4f14bcd8 16791echo $ac_n "checking for nanosleep in -lposix4""... $ac_c" 1>&6
986ecc86 16792echo "configure:16793: checking for nanosleep in -lposix4" >&5
4f14bcd8 16793ac_lib_var=`echo posix4'_'nanosleep | sed 'y%./+-%__p_%'`
698dcdb6
VZ
16794if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
16795 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 16796else
698dcdb6 16797 ac_save_LIBS="$LIBS"
4f14bcd8 16798LIBS="-lposix4 $LIBS"
698dcdb6 16799cat > conftest.$ac_ext <<EOF
986ecc86 16800#line 16801 "configure"
10f2d63a
VZ
16801#include "confdefs.h"
16802/* Override any gcc2 internal prototype to avoid an error. */
16803/* We use char because int might match the return type of a gcc2
698dcdb6 16804 builtin and then its argument prototype would still apply. */
4f14bcd8 16805char nanosleep();
698dcdb6
VZ
16806
16807int main() {
4f14bcd8 16808nanosleep()
698dcdb6
VZ
16809; return 0; }
16810EOF
986ecc86 16811if { (eval echo configure:16812: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
16812 rm -rf conftest*
16813 eval "ac_cv_lib_$ac_lib_var=yes"
16814else
16815 echo "configure: failed program was:" >&5
16816 cat conftest.$ac_ext >&5
16817 rm -rf conftest*
16818 eval "ac_cv_lib_$ac_lib_var=no"
16819fi
16820rm -f conftest*
16821LIBS="$ac_save_LIBS"
10f2d63a 16822
698dcdb6
VZ
16823fi
16824if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
16825 echo "$ac_t""yes" 1>&6
16826
4f14bcd8
GD
16827 cat >> confdefs.h <<\EOF
16828#define HAVE_NANOSLEEP 1
16829EOF
16830
3d63bc3a 16831 POSIX4_LINK=" -lposix4"
4f14bcd8 16832
10f2d63a 16833else
698dcdb6 16834 echo "$ac_t""no" 1>&6
10f2d63a 16835
4f14bcd8
GD
16836 for ac_func in usleep
16837do
16838echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
986ecc86 16839echo "configure:16840: checking for $ac_func" >&5
4f14bcd8 16840if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
698dcdb6 16841 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 16842else
698dcdb6 16843 cat > conftest.$ac_ext <<EOF
986ecc86 16844#line 16845 "configure"
10f2d63a 16845#include "confdefs.h"
4f14bcd8
GD
16846/* System header to define __stub macros and hopefully few prototypes,
16847 which can conflict with char $ac_func(); below. */
16848#include <assert.h>
16849/* Override any gcc2 internal prototype to avoid an error. */
16850/* We use char because int might match the return type of a gcc2
16851 builtin and then its argument prototype would still apply. */
16852char $ac_func();
16853
16854int main() {
16855
16856/* The GNU C library defines this for functions which it implements
16857 to always fail with ENOSYS. Some functions are actually named
16858 something starting with __ and the normal name is an alias. */
16859#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16860choke me
16861#else
16862$ac_func();
16863#endif
16864
16865; return 0; }
698dcdb6 16866EOF
986ecc86 16867if { (eval echo configure:16868: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6 16868 rm -rf conftest*
4f14bcd8 16869 eval "ac_cv_func_$ac_func=yes"
1e487827 16870else
698dcdb6 16871 echo "configure: failed program was:" >&5
10f2d63a 16872 cat conftest.$ac_ext >&5
698dcdb6 16873 rm -rf conftest*
4f14bcd8 16874 eval "ac_cv_func_$ac_func=no"
10f2d63a 16875fi
698dcdb6 16876rm -f conftest*
10f2d63a 16877fi
4f14bcd8
GD
16878
16879if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
698dcdb6 16880 echo "$ac_t""yes" 1>&6
4f14bcd8
GD
16881 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16882 cat >> confdefs.h <<EOF
16883#define $ac_tr_func 1
16884EOF
16885 cat >> confdefs.h <<\EOF
16886#define HAVE_USLEEP 1
16887EOF
16888
698dcdb6
VZ
16889else
16890 echo "$ac_t""no" 1>&6
4f14bcd8
GD
16891echo "configure: warning: wxSleep() function will not work" 1>&2
16892
10f2d63a 16893fi
4f14bcd8 16894done
10f2d63a 16895
4f14bcd8 16896
698dcdb6 16897
6232543b 16898fi
10f2d63a 16899
698dcdb6 16900
4f14bcd8 16901
1e487827 16902fi
4f14bcd8 16903done
703e0a69 16904
10f2d63a
VZ
16905fi
16906
4f14bcd8 16907for ac_func in uname gethostname
70846f0a 16908do
698dcdb6 16909echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
986ecc86 16910echo "configure:16911: checking for $ac_func" >&5
698dcdb6
VZ
16911if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16912 echo $ac_n "(cached) $ac_c" 1>&6
16913else
16914 cat > conftest.$ac_ext <<EOF
986ecc86 16915#line 16916 "configure"
70846f0a
VZ
16916#include "confdefs.h"
16917/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 16918 which can conflict with char $ac_func(); below. */
70846f0a
VZ
16919#include <assert.h>
16920/* Override any gcc2 internal prototype to avoid an error. */
16921/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
16922 builtin and then its argument prototype would still apply. */
16923char $ac_func();
16924
16925int main() {
70846f0a
VZ
16926
16927/* The GNU C library defines this for functions which it implements
16928 to always fail with ENOSYS. Some functions are actually named
16929 something starting with __ and the normal name is an alias. */
16930#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16931choke me
16932#else
698dcdb6 16933$ac_func();
70846f0a
VZ
16934#endif
16935
698dcdb6 16936; return 0; }
70846f0a 16937EOF
986ecc86 16938if { (eval echo configure:16939: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
16939 rm -rf conftest*
16940 eval "ac_cv_func_$ac_func=yes"
16941else
16942 echo "configure: failed program was:" >&5
16943 cat conftest.$ac_ext >&5
16944 rm -rf conftest*
16945 eval "ac_cv_func_$ac_func=no"
16946fi
16947rm -f conftest*
16948fi
70846f0a 16949
698dcdb6
VZ
16950if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16951 echo "$ac_t""yes" 1>&6
16952 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16953 cat >> confdefs.h <<EOF
16954#define $ac_tr_func 1
16955EOF
4f14bcd8 16956 break
698dcdb6
VZ
16957else
16958 echo "$ac_t""no" 1>&6
70846f0a
VZ
16959fi
16960done
16961
698dcdb6 16962
4f14bcd8
GD
16963
16964ac_ext=C
16965# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16966ac_cpp='$CXXCPP $CPPFLAGS'
16967ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16968ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16969cross_compiling=$ac_cv_prog_cxx_cross
16970
16971
16972for ac_func in strtok_r
10f2d63a 16973do
4f14bcd8 16974echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
986ecc86 16975echo "configure:16976: checking for $ac_func" >&5
4f14bcd8 16976if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
698dcdb6
VZ
16977 echo $ac_n "(cached) $ac_c" 1>&6
16978else
16979 cat > conftest.$ac_ext <<EOF
986ecc86 16980#line 16981 "configure"
10f2d63a 16981#include "confdefs.h"
4f14bcd8
GD
16982/* System header to define __stub macros and hopefully few prototypes,
16983 which can conflict with char $ac_func(); below. */
16984#include <assert.h>
16985/* Override any gcc2 internal prototype to avoid an error. */
16986#ifdef __cplusplus
16987extern "C"
16988#endif
16989/* We use char because int might match the return type of a gcc2
16990 builtin and then its argument prototype would still apply. */
16991char $ac_func();
16992
16993int main() {
16994
16995/* The GNU C library defines this for functions which it implements
16996 to always fail with ENOSYS. Some functions are actually named
16997 something starting with __ and the normal name is an alias. */
16998#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16999choke me
17000#else
17001$ac_func();
17002#endif
17003
17004; return 0; }
698dcdb6 17005EOF
986ecc86 17006if { (eval echo configure:17007: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6 17007 rm -rf conftest*
4f14bcd8 17008 eval "ac_cv_func_$ac_func=yes"
1e487827 17009else
698dcdb6 17010 echo "configure: failed program was:" >&5
10f2d63a 17011 cat conftest.$ac_ext >&5
698dcdb6 17012 rm -rf conftest*
4f14bcd8 17013 eval "ac_cv_func_$ac_func=no"
10f2d63a 17014fi
698dcdb6 17015rm -f conftest*
10f2d63a 17016fi
4f14bcd8
GD
17017
17018if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
698dcdb6 17019 echo "$ac_t""yes" 1>&6
4f14bcd8 17020 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
698dcdb6 17021 cat >> confdefs.h <<EOF
4f14bcd8 17022#define $ac_tr_func 1
10f2d63a 17023EOF
698dcdb6
VZ
17024
17025else
17026 echo "$ac_t""no" 1>&6
10f2d63a
VZ
17027fi
17028done
17029
698dcdb6 17030
4f14bcd8
GD
17031ac_ext=c
17032# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17033ac_cpp='$CPP $CPPFLAGS'
17034ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17035ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17036cross_compiling=$ac_cv_prog_cc_cross
17037
17038
17039INET_LINK=
17040for ac_func in inet_addr
17041do
17042echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
986ecc86 17043echo "configure:17044: checking for $ac_func" >&5
4f14bcd8 17044if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
698dcdb6 17045 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 17046else
4f14bcd8 17047 cat > conftest.$ac_ext <<EOF
986ecc86 17048#line 17049 "configure"
10f2d63a 17049#include "confdefs.h"
4f14bcd8
GD
17050/* System header to define __stub macros and hopefully few prototypes,
17051 which can conflict with char $ac_func(); below. */
17052#include <assert.h>
10f2d63a
VZ
17053/* Override any gcc2 internal prototype to avoid an error. */
17054/* We use char because int might match the return type of a gcc2
698dcdb6 17055 builtin and then its argument prototype would still apply. */
4f14bcd8 17056char $ac_func();
698dcdb6
VZ
17057
17058int main() {
4f14bcd8
GD
17059
17060/* The GNU C library defines this for functions which it implements
17061 to always fail with ENOSYS. Some functions are actually named
17062 something starting with __ and the normal name is an alias. */
17063#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17064choke me
17065#else
17066$ac_func();
17067#endif
17068
698dcdb6
VZ
17069; return 0; }
17070EOF
986ecc86 17071if { (eval echo configure:17072: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6 17072 rm -rf conftest*
4f14bcd8 17073 eval "ac_cv_func_$ac_func=yes"
698dcdb6
VZ
17074else
17075 echo "configure: failed program was:" >&5
17076 cat conftest.$ac_ext >&5
17077 rm -rf conftest*
4f14bcd8 17078 eval "ac_cv_func_$ac_func=no"
698dcdb6
VZ
17079fi
17080rm -f conftest*
698dcdb6 17081fi
4f14bcd8
GD
17082
17083if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
698dcdb6 17084 echo "$ac_t""yes" 1>&6
4f14bcd8
GD
17085 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17086 cat >> confdefs.h <<EOF
17087#define $ac_tr_func 1
17088EOF
17089 cat >> confdefs.h <<\EOF
17090#define HAVE_INET_ADDR 1
10f2d63a
VZ
17091EOF
17092
17093else
698dcdb6 17094 echo "$ac_t""no" 1>&6
4f14bcd8 17095echo $ac_n "checking for inet_addr in -lnsl""... $ac_c" 1>&6
986ecc86 17096echo "configure:17097: checking for inet_addr in -lnsl" >&5
4f14bcd8 17097ac_lib_var=`echo nsl'_'inet_addr | sed 'y%./+-%__p_%'`
698dcdb6
VZ
17098if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
17099 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 17100else
698dcdb6 17101 ac_save_LIBS="$LIBS"
4f14bcd8 17102LIBS="-lnsl $LIBS"
698dcdb6 17103cat > conftest.$ac_ext <<EOF
986ecc86 17104#line 17105 "configure"
10f2d63a
VZ
17105#include "confdefs.h"
17106/* Override any gcc2 internal prototype to avoid an error. */
17107/* We use char because int might match the return type of a gcc2
698dcdb6 17108 builtin and then its argument prototype would still apply. */
4f14bcd8 17109char inet_addr();
698dcdb6
VZ
17110
17111int main() {
4f14bcd8 17112inet_addr()
698dcdb6
VZ
17113; return 0; }
17114EOF
986ecc86 17115if { (eval echo configure:17116: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
17116 rm -rf conftest*
17117 eval "ac_cv_lib_$ac_lib_var=yes"
17118else
17119 echo "configure: failed program was:" >&5
17120 cat conftest.$ac_ext >&5
17121 rm -rf conftest*
17122 eval "ac_cv_lib_$ac_lib_var=no"
17123fi
17124rm -f conftest*
17125LIBS="$ac_save_LIBS"
17126
17127fi
17128if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
17129 echo "$ac_t""yes" 1>&6
4f14bcd8 17130 INET_LINK="nsl"
10f2d63a 17131else
698dcdb6 17132 echo "$ac_t""no" 1>&6
4f14bcd8 17133echo $ac_n "checking for inet_addr in -lresolv""... $ac_c" 1>&6
986ecc86 17134echo "configure:17135: checking for inet_addr in -lresolv" >&5
4f14bcd8 17135ac_lib_var=`echo resolv'_'inet_addr | sed 'y%./+-%__p_%'`
698dcdb6
VZ
17136if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
17137 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 17138else
698dcdb6 17139 ac_save_LIBS="$LIBS"
4f14bcd8 17140LIBS="-lresolv $LIBS"
698dcdb6 17141cat > conftest.$ac_ext <<EOF
986ecc86 17142#line 17143 "configure"
10f2d63a
VZ
17143#include "confdefs.h"
17144/* Override any gcc2 internal prototype to avoid an error. */
17145/* We use char because int might match the return type of a gcc2
698dcdb6 17146 builtin and then its argument prototype would still apply. */
4f14bcd8 17147char inet_addr();
698dcdb6
VZ
17148
17149int main() {
4f14bcd8 17150inet_addr()
698dcdb6
VZ
17151; return 0; }
17152EOF
986ecc86 17153if { (eval echo configure:17154: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
17154 rm -rf conftest*
17155 eval "ac_cv_lib_$ac_lib_var=yes"
17156else
17157 echo "configure: failed program was:" >&5
17158 cat conftest.$ac_ext >&5
17159 rm -rf conftest*
17160 eval "ac_cv_lib_$ac_lib_var=no"
17161fi
17162rm -f conftest*
17163LIBS="$ac_save_LIBS"
17164
17165fi
17166if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
17167 echo "$ac_t""yes" 1>&6
4f14bcd8 17168 INET_LINK="resolv"
698dcdb6 17169else
4f14bcd8 17170 echo "$ac_t""no" 1>&6
3c011993 17171echo $ac_n "checking for inet_addr in -lsocket""... $ac_c" 1>&6
986ecc86 17172echo "configure:17173: checking for inet_addr in -lsocket" >&5
3c011993
VZ
17173ac_lib_var=`echo socket'_'inet_addr | sed 'y%./+-%__p_%'`
17174if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
17175 echo $ac_n "(cached) $ac_c" 1>&6
17176else
17177 ac_save_LIBS="$LIBS"
17178LIBS="-lsocket $LIBS"
17179cat > conftest.$ac_ext <<EOF
986ecc86 17180#line 17181 "configure"
3c011993
VZ
17181#include "confdefs.h"
17182/* Override any gcc2 internal prototype to avoid an error. */
17183/* We use char because int might match the return type of a gcc2
17184 builtin and then its argument prototype would still apply. */
17185char inet_addr();
17186
17187int main() {
17188inet_addr()
17189; return 0; }
17190EOF
986ecc86 17191if { (eval echo configure:17192: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3c011993
VZ
17192 rm -rf conftest*
17193 eval "ac_cv_lib_$ac_lib_var=yes"
17194else
17195 echo "configure: failed program was:" >&5
17196 cat conftest.$ac_ext >&5
17197 rm -rf conftest*
17198 eval "ac_cv_lib_$ac_lib_var=no"
17199fi
17200rm -f conftest*
17201LIBS="$ac_save_LIBS"
17202
17203fi
17204if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
17205 echo "$ac_t""yes" 1>&6
17206 INET_LINK="socket"
17207
17208else
17209 echo "$ac_t""no" 1>&6
17210fi
17211
17212
4f14bcd8 17213fi
698dcdb6 17214
4f14bcd8 17215
698dcdb6 17216fi
4f14bcd8
GD
17217
17218
698dcdb6
VZ
17219
17220fi
4f14bcd8
GD
17221done
17222
17223
17224for ac_func in inet_aton
17225do
17226echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
986ecc86 17227echo "configure:17228: checking for $ac_func" >&5
4f14bcd8 17228if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
698dcdb6
VZ
17229 echo $ac_n "(cached) $ac_c" 1>&6
17230else
4f14bcd8 17231 cat > conftest.$ac_ext <<EOF
986ecc86 17232#line 17233 "configure"
f6bcfd97 17233#include "confdefs.h"
4f14bcd8
GD
17234/* System header to define __stub macros and hopefully few prototypes,
17235 which can conflict with char $ac_func(); below. */
17236#include <assert.h>
f6bcfd97
BP
17237/* Override any gcc2 internal prototype to avoid an error. */
17238/* We use char because int might match the return type of a gcc2
698dcdb6 17239 builtin and then its argument prototype would still apply. */
4f14bcd8 17240char $ac_func();
698dcdb6
VZ
17241
17242int main() {
4f14bcd8
GD
17243
17244/* The GNU C library defines this for functions which it implements
17245 to always fail with ENOSYS. Some functions are actually named
17246 something starting with __ and the normal name is an alias. */
17247#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17248choke me
17249#else
17250$ac_func();
17251#endif
17252
698dcdb6
VZ
17253; return 0; }
17254EOF
986ecc86 17255if { (eval echo configure:17256: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6 17256 rm -rf conftest*
4f14bcd8 17257 eval "ac_cv_func_$ac_func=yes"
698dcdb6
VZ
17258else
17259 echo "configure: failed program was:" >&5
17260 cat conftest.$ac_ext >&5
17261 rm -rf conftest*
4f14bcd8 17262 eval "ac_cv_func_$ac_func=no"
698dcdb6
VZ
17263fi
17264rm -f conftest*
698dcdb6 17265fi
4f14bcd8
GD
17266
17267if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
698dcdb6 17268 echo "$ac_t""yes" 1>&6
4f14bcd8
GD
17269 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17270 cat >> confdefs.h <<EOF
17271#define $ac_tr_func 1
17272EOF
17273 cat >> confdefs.h <<\EOF
17274#define HAVE_INET_ATON 1
17275EOF
17276
10f2d63a 17277else
698dcdb6 17278 echo "$ac_t""no" 1>&6
4f14bcd8 17279 echo $ac_n "checking for inet_aton in -l$INET_LINK""... $ac_c" 1>&6
986ecc86 17280echo "configure:17281: checking for inet_aton in -l$INET_LINK" >&5
4f14bcd8 17281ac_lib_var=`echo $INET_LINK'_'inet_aton | sed 'y%./+-%__p_%'`
698dcdb6
VZ
17282if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
17283 echo $ac_n "(cached) $ac_c" 1>&6
1e487827 17284else
698dcdb6 17285 ac_save_LIBS="$LIBS"
4f14bcd8 17286LIBS="-l$INET_LINK $LIBS"
698dcdb6 17287cat > conftest.$ac_ext <<EOF
986ecc86 17288#line 17289 "configure"
10f2d63a 17289#include "confdefs.h"
6232543b 17290/* Override any gcc2 internal prototype to avoid an error. */
6232543b 17291/* We use char because int might match the return type of a gcc2
698dcdb6 17292 builtin and then its argument prototype would still apply. */
4f14bcd8 17293char inet_aton();
698dcdb6
VZ
17294
17295int main() {
4f14bcd8 17296inet_aton()
698dcdb6
VZ
17297; return 0; }
17298EOF
986ecc86 17299if { (eval echo configure:17300: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
17300 rm -rf conftest*
17301 eval "ac_cv_lib_$ac_lib_var=yes"
17302else
17303 echo "configure: failed program was:" >&5
17304 cat conftest.$ac_ext >&5
17305 rm -rf conftest*
17306 eval "ac_cv_lib_$ac_lib_var=no"
17307fi
17308rm -f conftest*
17309LIBS="$ac_save_LIBS"
10f2d63a 17310
698dcdb6
VZ
17311fi
17312if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
17313 echo "$ac_t""yes" 1>&6
4f14bcd8
GD
17314 cat >> confdefs.h <<\EOF
17315#define HAVE_INET_ATON 1
17316EOF
17317
698dcdb6
VZ
17318else
17319 echo "$ac_t""no" 1>&6
10f2d63a
VZ
17320fi
17321
4f14bcd8 17322
10f2d63a 17323fi
4f14bcd8 17324done
10f2d63a 17325
4f14bcd8
GD
17326
17327if test "x$INET_LINK" != "x"; then
17328 cat >> confdefs.h <<\EOF
17329#define HAVE_INET_ADDR 1
17330EOF
17331
3d63bc3a 17332 INET_LINK=" -l$INET_LINK"
6232543b 17333fi
10f2d63a 17334
1e487827 17335fi
703e0a69 17336
698dcdb6 17337
4f14bcd8
GD
17338cat > confcache <<\EOF
17339# This file is a shell script that caches the results of configure
17340# tests run on this system so they can be shared between configure
17341# scripts and configure runs. It is not useful on other systems.
17342# If it contains results you don't want to keep, you may remove or edit it.
17343#
17344# By default, configure uses ./config.cache as the cache file,
17345# creating it if it does not exist already. You can give configure
17346# the --cache-file=FILE option to use a different cache file; that is
17347# what configure does when it calls configure scripts in
17348# subdirectories, so they share the cache.
17349# Giving --cache-file=/dev/null disables caching, for debugging configure.
17350# config.status only pays attention to the cache file if you give it the
17351# --recheck option to rerun configure.
17352#
f6bcfd97 17353EOF
4f14bcd8
GD
17354# The following way of writing the cache mishandles newlines in values,
17355# but we know of no workaround that is simple, portable, and efficient.
17356# So, don't put newlines in cache variables' values.
17357# Ultrix sh set writes to stderr and can't be redirected directly,
17358# and sets the high bit in the cache file unless we assign to the vars.
17359(set) 2>&1 |
17360 case `(ac_space=' '; set | grep ac_space) 2>&1` in
17361 *ac_space=\ *)
17362 # `set' does not quote correctly, so add quotes (double-quote substitution
17363 # turns \\\\ into \\, and sed turns \\ into \).
17364 sed -n \
17365 -e "s/'/'\\\\''/g" \
17366 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
17367 ;;
17368 *)
17369 # `set' quotes correctly as required by POSIX, so do not add quotes.
17370 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
17371 ;;
17372 esac >> confcache
17373if cmp -s $cache_file confcache; then
17374 :
17375else
17376 if test -w $cache_file; then
17377 echo "updating cache $cache_file"
17378 cat confcache > $cache_file
f6bcfd97 17379 else
4f14bcd8 17380 echo "not updating unwritable cache $cache_file"
f6bcfd97 17381 fi
4f14bcd8
GD
17382fi
17383rm -f confcache
f6bcfd97 17384
4f14bcd8
GD
17385
17386
009fead0 17387CPP_MT_FLAG=
4f14bcd8
GD
17388if test "$TOOLKIT" != "MSW"; then
17389
009fead0 17390
7274f1c7 17391 THREADS_LINK=
009fead0 17392 THREADS_CFLAGS=
7274f1c7
RL
17393
17394 if test "$wxUSE_THREADS" = "yes" ; then
17395 if test "$wxUSE_WINE" = 1 ; then
156b2523 17396 echo "configure: warning: Threads are not supported under WINE... disabled" 1>&2
7274f1c7
RL
17397 wxUSE_THREADS="no"
17398 elif test "$USE_BEOS" = 1; then
156b2523 17399 echo "configure: warning: BeOS threads are not yet supported... disabled" 1>&2
7274f1c7
RL
17400 wxUSE_THREADS="no"
17401 fi
4f14bcd8 17402 fi
4f14bcd8 17403
7274f1c7 17404 if test "$wxUSE_THREADS" = "yes" ; then
009fead0 17405
3010d50a 17406
009fead0
VZ
17407 THREAD_OPTS="-pthread"
17408 case "${host}" in
17409 *-*-solaris2* | *-*-sunos4* )
17410 if test "x$GCC" = "xyes"; then
126be6b4 17411 THREAD_OPTS="-pthreads $THREAD_OPTS"
009fead0
VZ
17412 else
17413 THREAD_OPTS="-mt $THREAD_OPTS"
17414 fi
17415 ;;
17416 *-*-freebsd*)
17417 THREAD_OPTS="-kthread lthread $THREAD_OPTS c_r"
17418 ;;
4101db81 17419 *-*-darwin*)
8f4a9a10 17420 THREAD_OPTS=""
4101db81 17421 ;;
8f4a9a10 17422 *-*-aix*)
009fead0
VZ
17423 THREAD_OPTS="pthreads"
17424 ;;
009fead0 17425 esac
4f14bcd8 17426
02a1dfba 17427 THREAD_OPTS="$THREAD_OPTS pthread none"
595e0e44 17428
009fead0
VZ
17429 THREADS_OK=no
17430 for flag in $THREAD_OPTS; do
17431 case $flag in
17432 none)
17433 echo $ac_n "checking whether pthreads work without any flags""... $ac_c" 1>&6
986ecc86 17434echo "configure:17435: checking whether pthreads work without any flags" >&5
009fead0 17435 ;;
698dcdb6 17436
009fead0
VZ
17437 -*)
17438 echo $ac_n "checking whether pthreads work with $flag""... $ac_c" 1>&6
986ecc86 17439echo "configure:17440: checking whether pthreads work with $flag" >&5
009fead0
VZ
17440 THREADS_CFLAGS="$flag"
17441 ;;
698dcdb6 17442
009fead0
VZ
17443 *)
17444 echo $ac_n "checking for the pthreads library -l$flag""... $ac_c" 1>&6
986ecc86 17445echo "configure:17446: checking for the pthreads library -l$flag" >&5
009fead0
VZ
17446 THREADS_LINK="-l$flag"
17447 ;;
17448 esac
10f2d63a 17449
009fead0
VZ
17450 save_LIBS="$LIBS"
17451 save_CFLAGS="$CFLAGS"
17452 LIBS="$THREADS_LINK $LIBS"
04727afd 17453 CFLAGS="$THREADS_CFLAGS $CFLAGS"
10f2d63a 17454
009fead0 17455 cat > conftest.$ac_ext <<EOF
986ecc86 17456#line 17457 "configure"
009fead0
VZ
17457#include "confdefs.h"
17458#include <pthread.h>
4f14bcd8 17459int main() {
009fead0 17460pthread_create(0,0,0,0);
698dcdb6
VZ
17461; return 0; }
17462EOF
986ecc86 17463if { (eval echo configure:17464: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6 17464 rm -rf conftest*
009fead0 17465 THREADS_OK=yes
10f2d63a 17466else
698dcdb6
VZ
17467 echo "configure: failed program was:" >&5
17468 cat conftest.$ac_ext >&5
6232543b 17469fi
698dcdb6 17470rm -f conftest*
698dcdb6 17471
009fead0
VZ
17472 LIBS="$save_LIBS"
17473 CFLAGS="$save_CFLAGS"
d9b9876f 17474
009fead0
VZ
17475 echo "$ac_t""$THREADS_OK" 1>&6
17476 if test "x$THREADS_OK" = "xyes"; then
17477 break;
17478 fi
d9b9876f 17479
009fead0
VZ
17480 THREADS_LINK=""
17481 THREADS_CFLAGS=""
17482 done
4f14bcd8 17483
009fead0
VZ
17484 if test "x$THREADS_OK" != "xyes"; then
17485 wxUSE_THREADS=no
17486 echo "configure: warning: No thread support on this system... disabled" 1>&2
17487 else
fe5a9cab
VZ
17488 LIBS="$THREADS_LINK $THREADS_CFLAGS $LIBS"
17489
009fead0 17490 echo $ac_n "checking if more special flags are required for pthreads""... $ac_c" 1>&6
986ecc86 17491echo "configure:17492: checking if more special flags are required for pthreads" >&5
009fead0
VZ
17492 flag=no
17493 case "${host}" in
17494 *-aix* | *-freebsd*)
17495 flag="-D_THREAD_SAFE"
17496 ;;
17497 *solaris* | alpha*-osf*)
17498 flag="-D_REENTRANT"
17499 ;;
17500 esac
17501 echo "$ac_t""${flag}" 1>&6
17502 if test "x$flag" != xno; then
04727afd 17503 THREADS_CFLAGS="$THREADS_CFLAGS $flag"
009fead0
VZ
17504 fi
17505
009fead0 17506 if test "x$THREADS_CFLAGS" != "x"; then
04727afd 17507 CFLAGS="$CFLAGS $THREADS_CFLAGS"
009fead0
VZ
17508 CXXFLAGS="$CXXFLAGS $THREADS_CFLAGS"
17509 fi
17510 fi
4f14bcd8 17511 fi
4f14bcd8 17512
7274f1c7
RL
17513 if test "$wxUSE_THREADS" = "yes" ; then
17514 for ac_func in thr_setconcurrency
4f14bcd8
GD
17515do
17516echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
986ecc86 17517echo "configure:17518: checking for $ac_func" >&5
4f14bcd8 17518if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
698dcdb6
VZ
17519 echo $ac_n "(cached) $ac_c" 1>&6
17520else
4f14bcd8 17521 cat > conftest.$ac_ext <<EOF
986ecc86 17522#line 17523 "configure"
d9b9876f 17523#include "confdefs.h"
4f14bcd8
GD
17524/* System header to define __stub macros and hopefully few prototypes,
17525 which can conflict with char $ac_func(); below. */
17526#include <assert.h>
17527/* Override any gcc2 internal prototype to avoid an error. */
17528/* We use char because int might match the return type of a gcc2
17529 builtin and then its argument prototype would still apply. */
17530char $ac_func();
17531
698dcdb6 17532int main() {
d9b9876f 17533
4f14bcd8
GD
17534/* The GNU C library defines this for functions which it implements
17535 to always fail with ENOSYS. Some functions are actually named
17536 something starting with __ and the normal name is an alias. */
17537#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17538choke me
17539#else
17540$ac_func();
17541#endif
17542
698dcdb6
VZ
17543; return 0; }
17544EOF
986ecc86 17545if { (eval echo configure:17546: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6 17546 rm -rf conftest*
4f14bcd8 17547 eval "ac_cv_func_$ac_func=yes"
d9b9876f 17548else
698dcdb6
VZ
17549 echo "configure: failed program was:" >&5
17550 cat conftest.$ac_ext >&5
17551 rm -rf conftest*
4f14bcd8 17552 eval "ac_cv_func_$ac_func=no"
6232543b 17553fi
698dcdb6 17554rm -f conftest*
1e487827 17555fi
698dcdb6 17556
4f14bcd8
GD
17557if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17558 echo "$ac_t""yes" 1>&6
17559 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17560 cat >> confdefs.h <<EOF
17561#define $ac_tr_func 1
d9b9876f 17562EOF
4f14bcd8
GD
17563
17564else
17565 echo "$ac_t""no" 1>&6
10f2d63a 17566fi
4f14bcd8 17567done
10f2d63a 17568
10f2d63a 17569
7274f1c7 17570 for ac_hdr in sched.h
4f14bcd8
GD
17571do
17572ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
17573echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
986ecc86 17574echo "configure:17575: checking for $ac_hdr" >&5
4f14bcd8
GD
17575if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
17576 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 17577else
4f14bcd8 17578 cat > conftest.$ac_ext <<EOF
986ecc86 17579#line 17580 "configure"
4f14bcd8
GD
17580#include "confdefs.h"
17581#include <$ac_hdr>
13111b2a 17582EOF
4f14bcd8 17583ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
986ecc86 17584{ (eval echo configure:17585: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4f14bcd8
GD
17585ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
17586if test -z "$ac_err"; then
17587 rm -rf conftest*
17588 eval "ac_cv_header_$ac_safe=yes"
17589else
17590 echo "$ac_err" >&5
17591 echo "configure: failed program was:" >&5
17592 cat conftest.$ac_ext >&5
17593 rm -rf conftest*
17594 eval "ac_cv_header_$ac_safe=no"
13111b2a 17595fi
4f14bcd8 17596rm -f conftest*
10f2d63a 17597fi
4f14bcd8
GD
17598if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
17599 echo "$ac_t""yes" 1>&6
17600 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
698dcdb6 17601 cat >> confdefs.h <<EOF
4f14bcd8 17602#define $ac_tr_hdr 1
f6bcfd97 17603EOF
4f14bcd8
GD
17604
17605else
17606 echo "$ac_t""no" 1>&6
f6bcfd97 17607fi
4f14bcd8 17608done
f6bcfd97 17609
009fead0
VZ
17610 if test "$ac_cv_header_sched_h" = "yes"; then
17611 echo $ac_n "checking for sched_yield""... $ac_c" 1>&6
986ecc86 17612echo "configure:17613: checking for sched_yield" >&5
009fead0 17613if eval "test \"`echo '$''{'ac_cv_func_sched_yield'+set}'`\" = set"; then
4f14bcd8
GD
17614 echo $ac_n "(cached) $ac_c" 1>&6
17615else
009fead0 17616 cat > conftest.$ac_ext <<EOF
986ecc86 17617#line 17618 "configure"
4f14bcd8 17618#include "confdefs.h"
009fead0
VZ
17619/* System header to define __stub macros and hopefully few prototypes,
17620 which can conflict with char sched_yield(); below. */
17621#include <assert.h>
4f14bcd8
GD
17622/* Override any gcc2 internal prototype to avoid an error. */
17623/* We use char because int might match the return type of a gcc2
17624 builtin and then its argument prototype would still apply. */
17625char sched_yield();
10f2d63a 17626
4f14bcd8 17627int main() {
009fead0
VZ
17628
17629/* The GNU C library defines this for functions which it implements
17630 to always fail with ENOSYS. Some functions are actually named
17631 something starting with __ and the normal name is an alias. */
17632#if defined (__stub_sched_yield) || defined (__stub___sched_yield)
17633choke me
17634#else
17635sched_yield();
17636#endif
17637
4f14bcd8 17638; return 0; }
10f2d63a 17639EOF
986ecc86 17640if { (eval echo configure:17641: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4f14bcd8 17641 rm -rf conftest*
009fead0 17642 eval "ac_cv_func_sched_yield=yes"
10f2d63a 17643else
4f14bcd8
GD
17644 echo "configure: failed program was:" >&5
17645 cat conftest.$ac_ext >&5
17646 rm -rf conftest*
009fead0 17647 eval "ac_cv_func_sched_yield=no"
10f2d63a 17648fi
4f14bcd8 17649rm -f conftest*
4f14bcd8 17650fi
009fead0
VZ
17651
17652if eval "test \"`echo '$ac_cv_func_'sched_yield`\" = yes"; then
4f14bcd8
GD
17653 echo "$ac_t""yes" 1>&6
17654 cat >> confdefs.h <<\EOF
17655#define HAVE_SCHED_YIELD 1
10f2d63a
VZ
17656EOF
17657
4f14bcd8
GD
17658else
17659 echo "$ac_t""no" 1>&6
009fead0
VZ
17660
17661 echo $ac_n "checking for sched_yield in -lposix4""... $ac_c" 1>&6
986ecc86 17662echo "configure:17663: checking for sched_yield in -lposix4" >&5
4f14bcd8
GD
17663ac_lib_var=`echo posix4'_'sched_yield | sed 'y%./+-%__p_%'`
17664if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
17665 echo $ac_n "(cached) $ac_c" 1>&6
17666else
17667 ac_save_LIBS="$LIBS"
17668LIBS="-lposix4 $LIBS"
17669cat > conftest.$ac_ext <<EOF
986ecc86 17670#line 17671 "configure"
4f14bcd8
GD
17671#include "confdefs.h"
17672/* Override any gcc2 internal prototype to avoid an error. */
17673/* We use char because int might match the return type of a gcc2
17674 builtin and then its argument prototype would still apply. */
17675char sched_yield();
47c13eb7 17676
4f14bcd8
GD
17677int main() {
17678sched_yield()
17679; return 0; }
10f2d63a 17680EOF
986ecc86 17681if { (eval echo configure:17682: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4f14bcd8
GD
17682 rm -rf conftest*
17683 eval "ac_cv_lib_$ac_lib_var=yes"
10f2d63a 17684else
4f14bcd8
GD
17685 echo "configure: failed program was:" >&5
17686 cat conftest.$ac_ext >&5
17687 rm -rf conftest*
17688 eval "ac_cv_lib_$ac_lib_var=no"
10f2d63a 17689fi
4f14bcd8
GD
17690rm -f conftest*
17691LIBS="$ac_save_LIBS"
10f2d63a 17692
54276ccf 17693fi
4f14bcd8
GD
17694if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
17695 echo "$ac_t""yes" 1>&6
17696 cat >> confdefs.h <<\EOF
17697#define HAVE_SCHED_YIELD 1
54276ccf 17698EOF
3d63bc3a 17699 POSIX4_LINK=" -lposix4"
4f14bcd8
GD
17700else
17701 echo "$ac_t""no" 1>&6
17702echo "configure: warning: wxThread::Yield will not work properly" 1>&2
009fead0 17703
54276ccf
VZ
17704fi
17705
009fead0
VZ
17706
17707
4f14bcd8 17708fi
698dcdb6 17709
009fead0 17710 fi
10f2d63a 17711
7274f1c7 17712 HAVE_PRIOR_FUNCS=0
009fead0 17713 echo $ac_n "checking for pthread_attr_getschedpolicy""... $ac_c" 1>&6
986ecc86 17714echo "configure:17715: checking for pthread_attr_getschedpolicy" >&5
009fead0 17715if eval "test \"`echo '$''{'ac_cv_func_pthread_attr_getschedpolicy'+set}'`\" = set"; then
698dcdb6
VZ
17716 echo $ac_n "(cached) $ac_c" 1>&6
17717else
009fead0 17718 cat > conftest.$ac_ext <<EOF
986ecc86 17719#line 17720 "configure"
422107f9 17720#include "confdefs.h"
009fead0
VZ
17721/* System header to define __stub macros and hopefully few prototypes,
17722 which can conflict with char pthread_attr_getschedpolicy(); below. */
17723#include <assert.h>
4f14bcd8
GD
17724/* Override any gcc2 internal prototype to avoid an error. */
17725/* We use char because int might match the return type of a gcc2
17726 builtin and then its argument prototype would still apply. */
17727char pthread_attr_getschedpolicy();
17728
17729int main() {
009fead0
VZ
17730
17731/* The GNU C library defines this for functions which it implements
17732 to always fail with ENOSYS. Some functions are actually named
17733 something starting with __ and the normal name is an alias. */
17734#if defined (__stub_pthread_attr_getschedpolicy) || defined (__stub___pthread_attr_getschedpolicy)
17735choke me
17736#else
17737pthread_attr_getschedpolicy();
17738#endif
17739
4f14bcd8 17740; return 0; }
698dcdb6 17741EOF
986ecc86 17742if { (eval echo configure:17743: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6 17743 rm -rf conftest*
009fead0 17744 eval "ac_cv_func_pthread_attr_getschedpolicy=yes"
422107f9 17745else
698dcdb6 17746 echo "configure: failed program was:" >&5
422107f9 17747 cat conftest.$ac_ext >&5
698dcdb6 17748 rm -rf conftest*
009fead0 17749 eval "ac_cv_func_pthread_attr_getschedpolicy=no"
422107f9 17750fi
698dcdb6 17751rm -f conftest*
422107f9 17752fi
009fead0
VZ
17753
17754if eval "test \"`echo '$ac_cv_func_'pthread_attr_getschedpolicy`\" = yes"; then
698dcdb6 17755 echo "$ac_t""yes" 1>&6
009fead0 17756 echo $ac_n "checking for pthread_attr_setschedparam""... $ac_c" 1>&6
986ecc86 17757echo "configure:17758: checking for pthread_attr_setschedparam" >&5
009fead0 17758if eval "test \"`echo '$''{'ac_cv_func_pthread_attr_setschedparam'+set}'`\" = set"; then
698dcdb6 17759 echo $ac_n "(cached) $ac_c" 1>&6
422107f9 17760else
009fead0 17761 cat > conftest.$ac_ext <<EOF
986ecc86 17762#line 17763 "configure"
422107f9 17763#include "confdefs.h"
009fead0
VZ
17764/* System header to define __stub macros and hopefully few prototypes,
17765 which can conflict with char pthread_attr_setschedparam(); below. */
17766#include <assert.h>
422107f9
VZ
17767/* Override any gcc2 internal prototype to avoid an error. */
17768/* We use char because int might match the return type of a gcc2
698dcdb6 17769 builtin and then its argument prototype would still apply. */
4f14bcd8 17770char pthread_attr_setschedparam();
698dcdb6
VZ
17771
17772int main() {
009fead0
VZ
17773
17774/* The GNU C library defines this for functions which it implements
17775 to always fail with ENOSYS. Some functions are actually named
17776 something starting with __ and the normal name is an alias. */
17777#if defined (__stub_pthread_attr_setschedparam) || defined (__stub___pthread_attr_setschedparam)
17778choke me
17779#else
17780pthread_attr_setschedparam();
17781#endif
17782
698dcdb6
VZ
17783; return 0; }
17784EOF
986ecc86 17785if { (eval echo configure:17786: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6 17786 rm -rf conftest*
009fead0 17787 eval "ac_cv_func_pthread_attr_setschedparam=yes"
698dcdb6
VZ
17788else
17789 echo "configure: failed program was:" >&5
17790 cat conftest.$ac_ext >&5
17791 rm -rf conftest*
009fead0 17792 eval "ac_cv_func_pthread_attr_setschedparam=no"
698dcdb6
VZ
17793fi
17794rm -f conftest*
698dcdb6 17795fi
009fead0
VZ
17796
17797if eval "test \"`echo '$ac_cv_func_'pthread_attr_setschedparam`\" = yes"; then
698dcdb6 17798 echo "$ac_t""yes" 1>&6
009fead0 17799 echo $ac_n "checking for sched_get_priority_max""... $ac_c" 1>&6
986ecc86 17800echo "configure:17801: checking for sched_get_priority_max" >&5
009fead0 17801if eval "test \"`echo '$''{'ac_cv_func_sched_get_priority_max'+set}'`\" = set"; then
698dcdb6
VZ
17802 echo $ac_n "(cached) $ac_c" 1>&6
17803else
009fead0 17804 cat > conftest.$ac_ext <<EOF
986ecc86 17805#line 17806 "configure"
422107f9 17806#include "confdefs.h"
009fead0
VZ
17807/* System header to define __stub macros and hopefully few prototypes
17808else
17809 echo "$ac_t""no" 1>&6
17810which can conflict with char sched_get_priority_max(); below. */
17811#include <assert.h>
4f14bcd8
GD
17812/* Override any gcc2 internal prototype to avoid an error. */
17813/* We use char because int might match the return type of a gcc2
17814 builtin and then its argument prototype would still apply. */
17815char sched_get_priority_max();
17816
17817int main() {
009fead0
VZ
17818
17819/* The GNU C library defines this for functions which it implements
17820 to always fail with ENOSYS. Some functions are actually named
17821 something starting with __ and the normal name is an alias. */
17822#if defined (__stub_sched_get_priority_max) || defined (__stub___sched_get_priority_max)
17823choke me
17824#else
17825sched_get_priority_max();
17826#endif
17827
4f14bcd8 17828; return 0; }
698dcdb6 17829EOF
986ecc86 17830if { (eval echo configure:17831: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6 17831 rm -rf conftest*
009fead0 17832 eval "ac_cv_func_sched_get_priority_max=yes"
422107f9 17833else
698dcdb6 17834 echo "configure: failed program was:" >&5
422107f9 17835 cat conftest.$ac_ext >&5
698dcdb6 17836 rm -rf conftest*
009fead0 17837 eval "ac_cv_func_sched_get_priority_max=no"
422107f9 17838fi
698dcdb6 17839rm -f conftest*
422107f9 17840fi
009fead0
VZ
17841
17842if eval "test \"`echo '$ac_cv_func_'sched_get_priority_max`\" = yes"; then
698dcdb6 17843 echo "$ac_t""yes" 1>&6
4f14bcd8
GD
17844 HAVE_PRIOR_FUNCS=1
17845else
17846 echo "$ac_t""no" 1>&6
17847echo $ac_n "checking for sched_get_priority_max in -lposix4""... $ac_c" 1>&6
986ecc86 17848echo "configure:17849: checking for sched_get_priority_max in -lposix4" >&5
4f14bcd8 17849ac_lib_var=`echo posix4'_'sched_get_priority_max | sed 'y%./+-%__p_%'`
698dcdb6
VZ
17850if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
17851 echo $ac_n "(cached) $ac_c" 1>&6
422107f9 17852else
698dcdb6 17853 ac_save_LIBS="$LIBS"
4f14bcd8 17854LIBS="-lposix4 $LIBS"
698dcdb6 17855cat > conftest.$ac_ext <<EOF
986ecc86 17856#line 17857 "configure"
422107f9
VZ
17857#include "confdefs.h"
17858/* Override any gcc2 internal prototype to avoid an error. */
17859/* We use char because int might match the return type of a gcc2
698dcdb6 17860 builtin and then its argument prototype would still apply. */
4f14bcd8 17861char sched_get_priority_max();
698dcdb6
VZ
17862
17863int main() {
4f14bcd8 17864sched_get_priority_max()
698dcdb6
VZ
17865; return 0; }
17866EOF
986ecc86 17867if { (eval echo configure:17868: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
17868 rm -rf conftest*
17869 eval "ac_cv_lib_$ac_lib_var=yes"
17870else
17871 echo "configure: failed program was:" >&5
17872 cat conftest.$ac_ext >&5
17873 rm -rf conftest*
17874 eval "ac_cv_lib_$ac_lib_var=no"
17875fi
17876rm -f conftest*
17877LIBS="$ac_save_LIBS"
17878
17879fi
17880if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
17881 echo "$ac_t""yes" 1>&6
4f14bcd8 17882
7274f1c7
RL
17883 HAVE_PRIOR_FUNCS=1
17884 POSIX4_LINK=" -lposix4"
17885
698dcdb6
VZ
17886else
17887 echo "$ac_t""no" 1>&6
422107f9
VZ
17888fi
17889
7274f1c7 17890
422107f9
VZ
17891fi
17892
7274f1c7 17893
4f14bcd8
GD
17894else
17895 echo "$ac_t""no" 1>&6
10f2d63a
VZ
17896fi
17897
7274f1c7 17898
4f14bcd8 17899fi
463abc64 17900
463abc64 17901
7274f1c7
RL
17902 if test "$HAVE_PRIOR_FUNCS" = 1; then
17903 cat >> confdefs.h <<\EOF
4f14bcd8 17904#define HAVE_THREAD_PRIORITY_FUNCTIONS 1
698dcdb6 17905EOF
463abc64 17906
7274f1c7
RL
17907 else
17908 echo "configure: warning: Setting thread priority will not work" 1>&2
17909 fi
463abc64 17910
009fead0 17911 echo $ac_n "checking for pthread_cancel""... $ac_c" 1>&6
986ecc86 17912echo "configure:17913: checking for pthread_cancel" >&5
009fead0 17913if eval "test \"`echo '$''{'ac_cv_func_pthread_cancel'+set}'`\" = set"; then
698dcdb6 17914 echo $ac_n "(cached) $ac_c" 1>&6
422107f9 17915else
009fead0 17916 cat > conftest.$ac_ext <<EOF
986ecc86 17917#line 17918 "configure"
422107f9 17918#include "confdefs.h"
009fead0
VZ
17919/* System header to define __stub macros and hopefully few prototypes,
17920 which can conflict with char pthread_cancel(); below. */
17921#include <assert.h>
422107f9
VZ
17922/* Override any gcc2 internal prototype to avoid an error. */
17923/* We use char because int might match the return type of a gcc2
698dcdb6 17924 builtin and then its argument prototype would still apply. */
4f14bcd8 17925char pthread_cancel();
698dcdb6
VZ
17926
17927int main() {
009fead0
VZ
17928
17929/* The GNU C library defines this for functions which it implements
17930 to always fail with ENOSYS. Some functions are actually named
17931 something starting with __ and the normal name is an alias. */
17932#if defined (__stub_pthread_cancel) || defined (__stub___pthread_cancel)
17933choke me
17934#else
17935pthread_cancel();
17936#endif
17937
698dcdb6
VZ
17938; return 0; }
17939EOF
986ecc86 17940if { (eval echo configure:17941: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6 17941 rm -rf conftest*
009fead0 17942 eval "ac_cv_func_pthread_cancel=yes"
698dcdb6
VZ
17943else
17944 echo "configure: failed program was:" >&5
17945 cat conftest.$ac_ext >&5
17946 rm -rf conftest*
009fead0 17947 eval "ac_cv_func_pthread_cancel=no"
698dcdb6
VZ
17948fi
17949rm -f conftest*
698dcdb6 17950fi
009fead0
VZ
17951
17952if eval "test \"`echo '$ac_cv_func_'pthread_cancel`\" = yes"; then
698dcdb6 17953 echo "$ac_t""yes" 1>&6
4f14bcd8
GD
17954 cat >> confdefs.h <<\EOF
17955#define HAVE_PTHREAD_CANCEL 1
17956EOF
17957
698dcdb6
VZ
17958else
17959 echo "$ac_t""no" 1>&6
4f14bcd8 17960echo "configure: warning: wxThread::Kill() will not work properly" 1>&2
422107f9
VZ
17961fi
17962
422107f9 17963
7274f1c7 17964 echo $ac_n "checking for pthread_cleanup_push/pop""... $ac_c" 1>&6
986ecc86 17965echo "configure:17966: checking for pthread_cleanup_push/pop" >&5
4f14bcd8
GD
17966if eval "test \"`echo '$''{'wx_cv_func_pthread_cleanup_push'+set}'`\" = set"; then
17967 echo $ac_n "(cached) $ac_c" 1>&6
17968else
17969
7274f1c7 17970 cat > conftest.$ac_ext <<EOF
986ecc86 17971#line 17972 "configure"
4f14bcd8
GD
17972#include "confdefs.h"
17973#include <pthread.h>
17974int main() {
17975
7274f1c7
RL
17976 pthread_cleanup_push(NULL, NULL);
17977 pthread_cleanup_pop(0);
17978
4f14bcd8
GD
17979; return 0; }
17980EOF
986ecc86 17981if { (eval echo configure:17982: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4f14bcd8
GD
17982 rm -rf conftest*
17983
7274f1c7
RL
17984 wx_cv_func_pthread_cleanup_push=yes
17985
4f14bcd8
GD
17986else
17987 echo "configure: failed program was:" >&5
17988 cat conftest.$ac_ext >&5
17989 rm -rf conftest*
17990
7274f1c7
RL
17991 wx_cv_func_pthread_cleanup_push=no
17992
4f14bcd8
GD
17993fi
17994rm -f conftest*
7274f1c7 17995
10f2d63a
VZ
17996fi
17997
4f14bcd8
GD
17998echo "$ac_t""$wx_cv_func_pthread_cleanup_push" 1>&6
17999
7274f1c7
RL
18000 if test "$wx_cv_func_pthread_cleanup_push" = "yes"; then
18001 cat >> confdefs.h <<\EOF
4f14bcd8 18002#define HAVE_THREAD_CLEANUP_FUNCTIONS 1
c7a2bf27
RR
18003EOF
18004
7274f1c7 18005 fi
4f14bcd8 18006
7274f1c7 18007
19bc6aad 18008 if test "x$wx_cv_lib_glibc21" = "xyes"; then
7274f1c7
RL
18009 CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE"
18010 fi
4f14bcd8 18011
7274f1c7 18012 echo $ac_n "checking for pthread_mutexattr_t""... $ac_c" 1>&6
986ecc86 18013echo "configure:18014: checking for pthread_mutexattr_t" >&5
4f14bcd8 18014if eval "test \"`echo '$''{'wx_cv_type_pthread_mutexattr_t'+set}'`\" = set"; then
698dcdb6
VZ
18015 echo $ac_n "(cached) $ac_c" 1>&6
18016else
4f14bcd8 18017
7274f1c7 18018 cat > conftest.$ac_ext <<EOF
986ecc86 18019#line 18020 "configure"
0dcf9893 18020#include "confdefs.h"
4f14bcd8
GD
18021#include <pthread.h>
18022int main() {
18023
7274f1c7
RL
18024 pthread_mutexattr_t attr;
18025 pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
18026
4f14bcd8 18027; return 0; }
698dcdb6 18028EOF
986ecc86 18029if { (eval echo configure:18030: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6 18030 rm -rf conftest*
4f14bcd8 18031
7274f1c7
RL
18032 wx_cv_type_pthread_mutexattr_t=yes
18033
3fed1840 18034else
698dcdb6 18035 echo "configure: failed program was:" >&5
3fed1840 18036 cat conftest.$ac_ext >&5
698dcdb6 18037 rm -rf conftest*
4f14bcd8 18038
7274f1c7
RL
18039 wx_cv_type_pthread_mutexattr_t=no
18040
4f14bcd8 18041
3fed1840 18042fi
698dcdb6 18043rm -f conftest*
7274f1c7 18044
3fed1840 18045fi
4f14bcd8
GD
18046
18047echo "$ac_t""$wx_cv_type_pthread_mutexattr_t" 1>&6
18048
7274f1c7
RL
18049 if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then
18050 cat >> confdefs.h <<\EOF
4f14bcd8
GD
18051#define HAVE_PTHREAD_MUTEXATTR_T 1
18052EOF
18053
7274f1c7
RL
18054 else
18055 echo $ac_n "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER""... $ac_c" 1>&6
986ecc86 18056echo "configure:18057: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5
4f14bcd8 18057if eval "test \"`echo '$''{'wx_cv_type_pthread_rec_mutex_init'+set}'`\" = set"; then
698dcdb6 18058 echo $ac_n "(cached) $ac_c" 1>&6
3fed1840 18059else
4f14bcd8 18060
7274f1c7 18061 cat > conftest.$ac_ext <<EOF
986ecc86 18062#line 18063 "configure"
3fed1840 18063#include "confdefs.h"
4f14bcd8 18064#include <pthread.h>
698dcdb6 18065int main() {
4f14bcd8 18066
7274f1c7
RL
18067 pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;
18068
698dcdb6
VZ
18069; return 0; }
18070EOF
986ecc86 18071if { (eval echo configure:18072: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6 18072 rm -rf conftest*
4f14bcd8 18073
7274f1c7
RL
18074 wx_cv_type_pthread_rec_mutex_init=yes
18075
698dcdb6
VZ
18076else
18077 echo "configure: failed program was:" >&5
18078 cat conftest.$ac_ext >&5
18079 rm -rf conftest*
4f14bcd8 18080
7274f1c7
RL
18081 wx_cv_type_pthread_rec_mutex_init=no
18082
4f14bcd8 18083
698dcdb6
VZ
18084fi
18085rm -f conftest*
7274f1c7 18086
3fed1840
RR
18087fi
18088
4f14bcd8 18089echo "$ac_t""$wx_cv_type_pthread_rec_mutex_init" 1>&6
7274f1c7
RL
18090 if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then
18091 cat >> confdefs.h <<\EOF
4f14bcd8
GD
18092#define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1
18093EOF
3fed1840 18094
7274f1c7
RL
18095 else
18096 echo "configure: warning: wxMutex won't be recursive on this platform" 1>&2
18097 fi
18098 fi
7274f1c7 18099 fi
3fed1840 18100
4f14bcd8
GD
18101fi
18102
18103if test "$wxUSE_THREADS" = "yes"; then
3a922bb4 18104 cat >> confdefs.h <<\EOF
4f14bcd8 18105#define wxUSE_THREADS 1
7b6058cd
GD
18106EOF
18107
4f14bcd8 18108
4f14bcd8 18109 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread"
698dcdb6 18110else
4f14bcd8
GD
18111 if test "$ac_cv_func_strtok_r" = "yes"; then
18112 echo $ac_n "checking if -D_REENTRANT is needed""... $ac_c" 1>&6
986ecc86 18113echo "configure:18114: checking if -D_REENTRANT is needed" >&5
4f14bcd8
GD
18114 if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then
18115 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D_REENTRANT"
18116 echo "$ac_t""yes" 1>&6
18117 else
18118 echo "$ac_t""no" 1>&6
18119 fi
18120 fi
18121fi
18122
18123if test "$WXGTK20" = 1 ; then
18124 cat >> confdefs.h <<EOF
18125#define __WXGTK20__ $WXGTK20
698dcdb6 18126EOF
4f14bcd8
GD
18127
18128 WXGTK12=1
10f2d63a 18129fi
4f14bcd8
GD
18130
18131if test "$WXGTK12" = 1 ; then
18132 cat >> confdefs.h <<EOF
18133#define __WXGTK12__ $WXGTK12
18134EOF
18135
10f2d63a 18136fi
698dcdb6 18137
4f14bcd8
GD
18138if test "$WXGTK127" = 1 ; then
18139 cat >> confdefs.h <<EOF
18140#define __WXGTK127__ $WXGTK127
698dcdb6 18141EOF
4f14bcd8 18142
698dcdb6 18143fi
10f2d63a 18144
4f14bcd8
GD
18145WXDEBUG=
18146
18147if test "$wxUSE_DEBUG_INFO" = "yes" ; then
18148 WXDEBUG="-g"
18149 wxUSE_OPTIMISE=no
698dcdb6 18150fi
4f14bcd8
GD
18151
18152if test "$wxUSE_DEBUG_GDB" = "yes" ; then
18153 wxUSE_DEBUG_INFO=yes
18154 WXDEBUG="-ggdb"
10f2d63a
VZ
18155fi
18156
4f14bcd8
GD
18157if test "$wxUSE_DEBUG_FLAG" = "yes" ; then
18158 cat >> confdefs.h <<\EOF
18159#define WXDEBUG 1
18160EOF
18161
18162 WXDEBUG_DEFINE="-D__WXDEBUG__"
10f2d63a 18163else
4f14bcd8
GD
18164 if test "$wxUSE_GTK" = 1 ; then
18165 WXDEBUG_DEFINE="-DGTK_NO_CHECK_CASTS"
18166 fi
18167fi
18168
18169if test "$wxUSE_MEM_TRACING" = "yes" ; then
18170 cat >> confdefs.h <<\EOF
18171#define wxUSE_MEMORY_TRACING 1
18172EOF
18173
18174 cat >> confdefs.h <<\EOF
18175#define wxUSE_GLOBAL_MEMORY_OPERATORS 1
18176EOF
18177
18178 cat >> confdefs.h <<\EOF
18179#define wxUSE_DEBUG_NEW_ALWAYS 1
18180EOF
18181
18182 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck"
18183fi
18184
18185if test "$wxUSE_DMALLOC" = "yes" ; then
3d63bc3a 18186 DMALLOC_LIBS="-ldmalloc"
4f14bcd8
GD
18187fi
18188
18189PROFILE=
18190if test "$wxUSE_PROFILE" = "yes" ; then
3d63bc3a 18191 PROFILE=" -pg"
10f2d63a
VZ
18192fi
18193
009fead0
VZ
18194CODE_GEN_FLAGS=
18195CODE_GEN_FLAGS_CXX=
88e30f2b 18196if test "$GCC" = "yes" ; then
4f14bcd8
GD
18197 if test "$wxUSE_NO_RTTI" = "yes" ; then
18198 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-rtti"
3a922bb4 18199 fi
4f14bcd8
GD
18200 if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
18201 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-exceptions"
18202 fi
18203 if test "$wxUSE_PERMISSIVE" = "yes" ; then
18204 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fpermissive"
18205 fi
4f14bcd8
GD
18206 if test "$USE_WIN32" = 1 ; then
18207 # I'm not even really sure what this was ever added to solve,
18208 # but someone added it for mingw native builds, so I guess
18209 # they had a reason, right??
18210 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fno-pcc-struct-return"
18211 fi
1d1b75ac
VZ
18212
18213 case "${host}" in
18214 powerpc*-*-aix* )
18215 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -mminimal-toc"
18216 ;;
18217 esac
4f14bcd8
GD
18218fi
18219
4f14bcd8
GD
18220if test "$wxUSE_OPTIMISE" = "no" ; then
18221 OPTIMISE=
18222else
18223 if test "$GCC" = yes ; then
18224 OPTIMISE="-O2"
18225 case "${host}" in
18226 i586-*-*|i686-*-* )
18227 OPTIMISE="${OPTIMISE} "
18228 ;;
18229 esac
18230 else
18231 OPTIMISE="-O"
18232 fi
18233fi
18234
18235if test "$WXWIN_COMPATIBILITY_2" = "yes"; then
18236 cat >> confdefs.h <<\EOF
18237#define WXWIN_COMPATIBILITY_2 1
18238EOF
18239
18240
18241 WXWIN_COMPATIBILITY_2_2="yes"
18242fi
18243
0c9a1c32 18244if test "x$WXWIN_COMPATIBILITY_2_2" != "xno"; then
4f14bcd8
GD
18245 cat >> confdefs.h <<\EOF
18246#define WXWIN_COMPATIBILITY_2_2 1
18247EOF
18248
10f2d63a
VZ
18249fi
18250
698dcdb6 18251
10f2d63a 18252if test "$wxUSE_GUI" = "yes"; then
698dcdb6 18253 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18254#define wxUSE_GUI 1
18255EOF
18256
698dcdb6 18257
10f2d63a 18258 else
698dcdb6 18259 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18260#define wxUSE_NOGUI 1
18261EOF
18262
18263fi
18264
698dcdb6 18265
10f2d63a 18266if test "$wxUSE_UNIX" = "yes"; then
698dcdb6 18267 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18268#define wxUSE_UNIX 1
18269EOF
18270
18271fi
18272
698dcdb6 18273
10f2d63a 18274if test "$wxUSE_APPLE_IEEE" = "yes"; then
698dcdb6 18275 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18276#define wxUSE_APPLE_IEEE 1
18277EOF
18278
18279fi
18280
1e6feb95
VZ
18281if test "$wxUSE_TIMER" = "yes"; then
18282 cat >> confdefs.h <<\EOF
18283#define wxUSE_TIMER 1
18284EOF
18285
18286fi
18287
10f2d63a 18288if test "$wxUSE_WAVE" = "yes"; then
698dcdb6 18289 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18290#define wxUSE_WAVE 1
18291EOF
18292
18293fi
18294
1e6feb95
VZ
18295if test "$wxUSE_CMDLINE_PARSER" = "yes"; then
18296 cat >> confdefs.h <<\EOF
18297#define wxUSE_CMDLINE_PARSER 1
18298EOF
18299
18300fi
18301
18302if test "$wxUSE_STOPWATCH" = "yes"; then
18303 cat >> confdefs.h <<\EOF
18304#define wxUSE_STOPWATCH 1
18305EOF
18306
18307fi
18308
18309if test "$wxUSE_DATETIME" = "yes"; then
18310 cat >> confdefs.h <<\EOF
18311#define wxUSE_DATETIME 1
18312EOF
18313
18314fi
18315
18316if test "$wxUSE_TIMEDATE" = "yes"; then
18317 cat >> confdefs.h <<\EOF
18318#define wxUSE_TIMEDATE 1
18319EOF
18320
18321fi
18322
10f2d63a 18323if test "$wxUSE_FILE" = "yes"; then
698dcdb6 18324 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18325#define wxUSE_FILE 1
18326EOF
18327
18328fi
18329
1e6feb95
VZ
18330if test "$wxUSE_FFILE" = "yes"; then
18331 cat >> confdefs.h <<\EOF
18332#define wxUSE_FFILE 1
18333EOF
18334
18335fi
18336
24528b0c 18337if test "$wxUSE_FILESYSTEM" = "yes"; then
698dcdb6 18338 cat >> confdefs.h <<\EOF
24528b0c
VS
18339#define wxUSE_FILESYSTEM 1
18340EOF
18341
18342fi
18343
10f2d63a 18344if test "$wxUSE_FS_INET" = "yes"; then
698dcdb6 18345 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18346#define wxUSE_FS_INET 1
18347EOF
18348
18349fi
18350
18351if test "$wxUSE_FS_ZIP" = "yes"; then
698dcdb6 18352 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18353#define wxUSE_FS_ZIP 1
18354EOF
18355
18356fi
18357
18358if test "$wxUSE_ZIPSTREAM" = "yes"; then
698dcdb6 18359 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18360#define wxUSE_ZIPSTREAM 1
18361EOF
18362
18363fi
18364
eb4efbdc 18365if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
698dcdb6 18366 cat >> confdefs.h <<\EOF
eb4efbdc
VZ
18367#define wxUSE_ON_FATAL_EXCEPTION 1
18368EOF
18369
18370fi
18371
4f3c5f06 18372if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
698dcdb6 18373 cat >> confdefs.h <<\EOF
4f3c5f06
VZ
18374#define wxUSE_SNGLINST_CHECKER 1
18375EOF
18376
18377fi
18378
10f2d63a 18379if test "$wxUSE_BUSYINFO" = "yes"; then
698dcdb6 18380 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18381#define wxUSE_BUSYINFO 1
18382EOF
18383
18384fi
18385
18386if test "$wxUSE_STD_IOSTREAM" = "yes"; then
698dcdb6 18387 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18388#define wxUSE_STD_IOSTREAM 1
18389EOF
18390
18391fi
18392
a3a584a7
VZ
18393if test "$wxUSE_TEXTBUFFER" = "yes"; then
18394 cat >> confdefs.h <<\EOF
18395#define wxUSE_TEXTBUFFER 1
18396EOF
18397
18398fi
18399
10f2d63a 18400if test "$wxUSE_TEXTFILE" = "yes"; then
a3a584a7 18401 if test "$wxUSE_FILE" != "yes" -o "$wxUSE_TEXTBUFFER" != "yes" ; then
156b2523 18402 echo "configure: warning: wxTextFile requires wxFile and wxTextBuffer... disabled" 1>&2
10f2d63a 18403 else
698dcdb6 18404 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18405#define wxUSE_TEXTFILE 1
18406EOF
18407
18408 fi
18409fi
18410
18411if test "$wxUSE_CONFIG" = "yes" ; then
18412 if test "$wxUSE_TEXTFILE" != "yes"; then
156b2523 18413 echo "configure: warning: wxConfig requires wxTextFile... disabled" 1>&2
10f2d63a 18414 else
698dcdb6 18415 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18416#define wxUSE_CONFIG 1
18417EOF
18418
18419 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config"
18420 fi
18421fi
18422
18423if test "$wxUSE_INTL" = "yes" ; then
18424 if test "$wxUSE_FILE" != "yes"; then
156b2523 18425 echo "configure: warning: I18n code requires wxFile... disabled" 1>&2
10f2d63a 18426 else
698dcdb6 18427 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18428#define wxUSE_INTL 1
18429EOF
18430
18431 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat"
f6bcfd97 18432 GUIDIST="$GUIDIST INTL_DIST"
10f2d63a
VZ
18433 fi
18434fi
18435
18436if test "$wxUSE_LOG" = "yes"; then
698dcdb6 18437 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18438#define wxUSE_LOG 1
18439EOF
18440
d73be714
VZ
18441
18442 if test "$wxUSE_LOGGUI" = "yes"; then
18443 cat >> confdefs.h <<\EOF
18444#define wxUSE_LOGGUI 1
18445EOF
18446
18447 fi
18448
18449 if test "$wxUSE_LOGWINDOW" = "yes"; then
18450 cat >> confdefs.h <<\EOF
18451#define wxUSE_LOGWINDOW 1
69d27ff7
MB
18452EOF
18453
18454 fi
18455
18456 if test "$wxUSE_LOGDIALOG" = "yes"; then
18457 cat >> confdefs.h <<\EOF
18458#define wxUSE_LOG_DIALOG 1
d73be714
VZ
18459EOF
18460
18461 fi
10f2d63a
VZ
18462fi
18463
18464if test "$wxUSE_LONGLONG" = "yes"; then
698dcdb6 18465 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18466#define wxUSE_LONGLONG 1
18467EOF
18468
18469fi
18470
e8f65ba6 18471if test "$wxUSE_GEOMETRY" = "yes"; then
698dcdb6 18472 cat >> confdefs.h <<\EOF
e8f65ba6
RR
18473#define wxUSE_GEOMETRY 1
18474EOF
18475
18476fi
18477
10f2d63a 18478if test "$wxUSE_DIALUP_MANAGER" = "yes" ; then
698dcdb6 18479 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18480#define wxUSE_DIALUP_MANAGER 1
18481EOF
18482
70f7a477 18483 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup"
10f2d63a
VZ
18484fi
18485
18486if test "$wxUSE_STREAMS" = "yes" ; then
698dcdb6 18487 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18488#define wxUSE_STREAMS 1
18489EOF
18490
18491fi
18492
1e487827 18493
1e6feb95 18494if test "$wxUSE_DATETIME" = "yes"; then
698dcdb6 18495 for ac_func in strptime
83307f33 18496do
698dcdb6 18497echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
986ecc86 18498echo "configure:18499: checking for $ac_func" >&5
698dcdb6
VZ
18499if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18500 echo $ac_n "(cached) $ac_c" 1>&6
18501else
18502 cat > conftest.$ac_ext <<EOF
986ecc86 18503#line 18504 "configure"
83307f33
VZ
18504#include "confdefs.h"
18505/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 18506 which can conflict with char $ac_func(); below. */
83307f33
VZ
18507#include <assert.h>
18508/* Override any gcc2 internal prototype to avoid an error. */
18509/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
18510 builtin and then its argument prototype would still apply. */
18511char $ac_func();
18512
18513int main() {
83307f33
VZ
18514
18515/* The GNU C library defines this for functions which it implements
18516 to always fail with ENOSYS. Some functions are actually named
18517 something starting with __ and the normal name is an alias. */
18518#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18519choke me
18520#else
698dcdb6 18521$ac_func();
83307f33
VZ
18522#endif
18523
698dcdb6 18524; return 0; }
83307f33 18525EOF
986ecc86 18526if { (eval echo configure:18527: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
18527 rm -rf conftest*
18528 eval "ac_cv_func_$ac_func=yes"
18529else
18530 echo "configure: failed program was:" >&5
18531 cat conftest.$ac_ext >&5
18532 rm -rf conftest*
18533 eval "ac_cv_func_$ac_func=no"
18534fi
18535rm -f conftest*
18536fi
83307f33 18537
698dcdb6
VZ
18538if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18539 echo "$ac_t""yes" 1>&6
18540 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18541 cat >> confdefs.h <<EOF
18542#define $ac_tr_func 1
18543EOF
18544
18545else
18546 echo "$ac_t""no" 1>&6
83307f33
VZ
18547fi
18548done
18549
1e487827 18550
62cc730f 18551 echo $ac_n "checking for timezone variable in <time.h>""... $ac_c" 1>&6
986ecc86 18552echo "configure:18553: checking for timezone variable in <time.h>" >&5
698dcdb6
VZ
18553if eval "test \"`echo '$''{'wx_cv_var_timezone'+set}'`\" = set"; then
18554 echo $ac_n "(cached) $ac_c" 1>&6
18555else
18556
18557 cat > conftest.$ac_ext <<EOF
986ecc86 18558#line 18559 "configure"
360d6699
VZ
18559#include "confdefs.h"
18560
b4085ce6 18561 #include <time.h>
698dcdb6
VZ
18562
18563int main() {
360d6699
VZ
18564
18565 int tz;
4f11a343 18566 tz = timezone;
698dcdb6
VZ
18567
18568; return 0; }
18569EOF
986ecc86 18570if { (eval echo configure:18571: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6
VZ
18571 rm -rf conftest*
18572
4f11a343 18573 wx_cv_var_timezone=timezone
698dcdb6 18574
360d6699 18575else
698dcdb6
VZ
18576 echo "configure: failed program was:" >&5
18577 cat conftest.$ac_ext >&5
18578 rm -rf conftest*
18579
18580 cat > conftest.$ac_ext <<EOF
986ecc86 18581#line 18582 "configure"
360d6699
VZ
18582#include "confdefs.h"
18583
b4085ce6 18584 #include <time.h>
698dcdb6
VZ
18585
18586int main() {
360d6699
VZ
18587
18588 int tz;
18589 tz = _timezone;
698dcdb6
VZ
18590
18591; return 0; }
18592EOF
986ecc86 18593if { (eval echo configure:18594: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6
VZ
18594 rm -rf conftest*
18595
360d6699 18596 wx_cv_var_timezone=_timezone
698dcdb6 18597
5357c8e8 18598else
698dcdb6
VZ
18599 echo "configure: failed program was:" >&5
18600 cat conftest.$ac_ext >&5
18601 rm -rf conftest*
18602
18603 cat > conftest.$ac_ext <<EOF
986ecc86 18604#line 18605 "configure"
5357c8e8
VZ
18605#include "confdefs.h"
18606
b4085ce6 18607 #include <time.h>
698dcdb6
VZ
18608
18609int main() {
5357c8e8
VZ
18610
18611 int tz;
4f11a343 18612 tz = __timezone;
698dcdb6
VZ
18613
18614; return 0; }
18615EOF
986ecc86 18616if { (eval echo configure:18617: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6
VZ
18617 rm -rf conftest*
18618
4f11a343 18619 wx_cv_var_timezone=__timezone
698dcdb6 18620
360d6699 18621else
698dcdb6
VZ
18622 echo "configure: failed program was:" >&5
18623 cat conftest.$ac_ext >&5
18624 rm -rf conftest*
f9bc1684
VS
18625
18626 if test "$USE_DOS" = 0 ; then
62cc730f 18627 echo "configure: warning: no timezone variable" 1>&2
f9bc1684
VS
18628 fi
18629
698dcdb6 18630
360d6699 18631fi
698dcdb6
VZ
18632rm -f conftest*
18633
18634
360d6699 18635fi
698dcdb6
VZ
18636rm -f conftest*
18637
18638
6232543b 18639fi
698dcdb6
VZ
18640rm -f conftest*
18641
18642
1e487827 18643fi
703e0a69 18644
698dcdb6
VZ
18645echo "$ac_t""$wx_cv_var_timezone" 1>&6
18646
f9bc1684 18647 if test "x$wx_cv_var_timezone" != x ; then
698dcdb6 18648 cat >> confdefs.h <<EOF
360d6699
VZ
18649#define WX_TIMEZONE $wx_cv_var_timezone
18650EOF
18651
f9bc1684 18652 fi
698dcdb6
VZ
18653
18654 for ac_func in localtime
afc31813 18655do
698dcdb6 18656echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
986ecc86 18657echo "configure:18658: checking for $ac_func" >&5
698dcdb6
VZ
18658if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18659 echo $ac_n "(cached) $ac_c" 1>&6
18660else
18661 cat > conftest.$ac_ext <<EOF
986ecc86 18662#line 18663 "configure"
10f2d63a 18663#include "confdefs.h"
afc31813 18664/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 18665 which can conflict with char $ac_func(); below. */
afc31813
VZ
18666#include <assert.h>
18667/* Override any gcc2 internal prototype to avoid an error. */
18668/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
18669 builtin and then its argument prototype would still apply. */
18670char $ac_func();
18671
18672int main() {
afc31813
VZ
18673
18674/* The GNU C library defines this for functions which it implements
18675 to always fail with ENOSYS. Some functions are actually named
18676 something starting with __ and the normal name is an alias. */
18677#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18678choke me
18679#else
698dcdb6 18680$ac_func();
afc31813
VZ
18681#endif
18682
698dcdb6 18683; return 0; }
10f2d63a 18684EOF
986ecc86 18685if { (eval echo configure:18686: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
18686 rm -rf conftest*
18687 eval "ac_cv_func_$ac_func=yes"
18688else
18689 echo "configure: failed program was:" >&5
18690 cat conftest.$ac_ext >&5
18691 rm -rf conftest*
18692 eval "ac_cv_func_$ac_func=no"
18693fi
18694rm -f conftest*
18695fi
afc31813 18696
698dcdb6
VZ
18697if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18698 echo "$ac_t""yes" 1>&6
18699 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18700 cat >> confdefs.h <<EOF
18701#define $ac_tr_func 1
18702EOF
18703
18704else
18705 echo "$ac_t""no" 1>&6
afc31813
VZ
18706fi
18707done
18708
1e487827 18709
698dcdb6
VZ
18710 if test "$ac_cv_func_localtime" = "yes"; then
18711 echo $ac_n "checking for tm_gmtoff in struct tm""... $ac_c" 1>&6
986ecc86 18712echo "configure:18713: checking for tm_gmtoff in struct tm" >&5
698dcdb6
VZ
18713if eval "test \"`echo '$''{'wx_cv_struct_tm_has_gmtoff'+set}'`\" = set"; then
18714 echo $ac_n "(cached) $ac_c" 1>&6
18715else
18716
18717 cat > conftest.$ac_ext <<EOF
986ecc86 18718#line 18719 "configure"
0470b1e6
VZ
18719#include "confdefs.h"
18720
b4085ce6 18721 #include <time.h>
698dcdb6
VZ
18722
18723int main() {
0470b1e6
VZ
18724
18725 struct tm tm;
18726 tm.tm_gmtoff++;
698dcdb6
VZ
18727
18728; return 0; }
18729EOF
986ecc86 18730if { (eval echo configure:18731: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6
VZ
18731 rm -rf conftest*
18732
f03a98d8 18733 wx_cv_struct_tm_has_gmtoff=yes
698dcdb6 18734
0470b1e6 18735else
698dcdb6
VZ
18736 echo "configure: failed program was:" >&5
18737 cat conftest.$ac_ext >&5
18738 rm -rf conftest*
18739 wx_cv_struct_tm_has_gmtoff=no
18740
0470b1e6 18741fi
698dcdb6
VZ
18742rm -f conftest*
18743
1e487827 18744fi
698dcdb6
VZ
18745
18746echo "$ac_t""$wx_cv_struct_tm_has_gmtoff" 1>&6
6232543b
VS
18747 fi
18748
18749 if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then
698dcdb6 18750 cat >> confdefs.h <<\EOF
6232543b
VS
18751#define WX_GMTOFF_IN_TM 1
18752EOF
0470b1e6 18753
3fcdd07b
VZ
18754 fi
18755
698dcdb6 18756 for ac_func in gettimeofday ftime
3fcdd07b 18757do
698dcdb6 18758echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
986ecc86 18759echo "configure:18760: checking for $ac_func" >&5
698dcdb6
VZ
18760if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18761 echo $ac_n "(cached) $ac_c" 1>&6
18762else
18763 cat > conftest.$ac_ext <<EOF
986ecc86 18764#line 18765 "configure"
3fcdd07b
VZ
18765#include "confdefs.h"
18766/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 18767 which can conflict with char $ac_func(); below. */
3fcdd07b
VZ
18768#include <assert.h>
18769/* Override any gcc2 internal prototype to avoid an error. */
18770/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
18771 builtin and then its argument prototype would still apply. */
18772char $ac_func();
18773
18774int main() {
3fcdd07b
VZ
18775
18776/* The GNU C library defines this for functions which it implements
18777 to always fail with ENOSYS. Some functions are actually named
18778 something starting with __ and the normal name is an alias. */
18779#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18780choke me
18781#else
698dcdb6 18782$ac_func();
3fcdd07b
VZ
18783#endif
18784
698dcdb6
VZ
18785; return 0; }
18786EOF
986ecc86 18787if { (eval echo configure:18788: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
18788 rm -rf conftest*
18789 eval "ac_cv_func_$ac_func=yes"
18790else
18791 echo "configure: failed program was:" >&5
18792 cat conftest.$ac_ext >&5
18793 rm -rf conftest*
18794 eval "ac_cv_func_$ac_func=no"
18795fi
18796rm -f conftest*
18797fi
18798
18799if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18800 echo "$ac_t""yes" 1>&6
18801 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18802 cat >> confdefs.h <<EOF
18803#define $ac_tr_func 1
3fcdd07b
VZ
18804EOF
18805 break
698dcdb6
VZ
18806else
18807 echo "$ac_t""no" 1>&6
3fcdd07b
VZ
18808fi
18809done
18810
afc31813 18811
698dcdb6
VZ
18812 if test "$ac_cv_func_gettimeofday" = "yes"; then
18813 echo $ac_n "checking whether gettimeofday takes two arguments""... $ac_c" 1>&6
986ecc86 18814echo "configure:18815: checking whether gettimeofday takes two arguments" >&5
698dcdb6
VZ
18815if eval "test \"`echo '$''{'wx_cv_func_gettimeofday_has_2_args'+set}'`\" = set"; then
18816 echo $ac_n "(cached) $ac_c" 1>&6
18817else
18818
18819
18820 ac_ext=C
18821# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1e487827 18822ac_cpp='$CXXCPP $CPPFLAGS'
698dcdb6
VZ
18823ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18824ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18825cross_compiling=$ac_cv_prog_cxx_cross
703e0a69 18826
698dcdb6
VZ
18827
18828 cat > conftest.$ac_ext <<EOF
986ecc86 18829#line 18830 "configure"
10f2d63a 18830#include "confdefs.h"
afc31813
VZ
18831
18832 #include <sys/time.h>
18833 #include <unistd.h>
698dcdb6
VZ
18834
18835int main() {
afc31813
VZ
18836
18837 struct timeval tv;
776862b4 18838 gettimeofday(&tv, NULL);
698dcdb6
VZ
18839
18840; return 0; }
18841EOF
986ecc86 18842if { (eval echo configure:18843: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6 18843 rm -rf conftest*
afc31813 18844 wx_cv_func_gettimeofday_has_2_args=yes
10f2d63a 18845else
698dcdb6
VZ
18846 echo "configure: failed program was:" >&5
18847 cat conftest.$ac_ext >&5
18848 rm -rf conftest*
18849 cat > conftest.$ac_ext <<EOF
986ecc86 18850#line 18851 "configure"
10f2d63a 18851#include "confdefs.h"
afc31813
VZ
18852
18853 #include <sys/time.h>
18854 #include <unistd.h>
698dcdb6
VZ
18855
18856int main() {
afc31813
VZ
18857
18858 struct timeval tv;
18859 gettimeofday(&tv);
698dcdb6
VZ
18860
18861; return 0; }
18862EOF
986ecc86 18863if { (eval echo configure:18864: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6 18864 rm -rf conftest*
afc31813 18865 wx_cv_func_gettimeofday_has_2_args=no
10f2d63a 18866else
698dcdb6
VZ
18867 echo "configure: failed program was:" >&5
18868 cat conftest.$ac_ext >&5
18869 rm -rf conftest*
776862b4
VZ
18870
18871 echo "configure: warning: failed to determine number of gettimeofday() arguments" 1>&2
18872 wx_cv_func_gettimeofday_has_2_args=unknown
18873
698dcdb6 18874
10f2d63a 18875fi
698dcdb6
VZ
18876rm -f conftest*
18877
10f2d63a 18878fi
698dcdb6 18879rm -f conftest*
afc31813 18880 ac_ext=c
698dcdb6 18881# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10f2d63a 18882ac_cpp='$CPP $CPPFLAGS'
698dcdb6
VZ
18883ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18884ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18885cross_compiling=$ac_cv_prog_cc_cross
10f2d63a 18886
698dcdb6 18887
afc31813 18888fi
698dcdb6
VZ
18889
18890echo "$ac_t""$wx_cv_func_gettimeofday_has_2_args" 1>&6
c63c7106 18891
afc31813 18892 if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then
698dcdb6 18893 cat >> confdefs.h <<\EOF
afc31813
VZ
18894#define WX_GETTIMEOFDAY_NO_TZ 1
18895EOF
18896
18897 fi
18898 fi
18899
698dcdb6 18900 cat >> confdefs.h <<\EOF
afc31813
VZ
18901#define wxUSE_TIMEDATE 1
18902EOF
18903
18904 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest"
18905fi
18906
698dcdb6 18907
0feee163 18908if test "$wxUSE_SOCKETS" = "yes"; then
6c657b52 18909 if test "$wxUSE_X11" = "1"; then
0feee163
VZ
18910 echo "configure: warning: wxSocket not yet supported under X11... disabled" 1>&2
18911 wxUSE_SOCKETS="no"
18912 fi
6c657b52
VS
18913
18914 if test "$wxUSE_MGL" = "1"; then
18915 echo "configure: warning: wxSocket not yet supported under MGL... disabled" 1>&2
18916 wxUSE_SOCKETS="no"
18917 fi
0feee163 18918fi
b089607b 18919
0feee163
VZ
18920if test "$wxUSE_SOCKETS" = "yes"; then
18921 if test "$TOOLKIT" != "MSW"; then
3a922bb4 18922 echo $ac_n "checking for socket""... $ac_c" 1>&6
986ecc86 18923echo "configure:18924: checking for socket" >&5
698dcdb6
VZ
18924if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then
18925 echo $ac_n "(cached) $ac_c" 1>&6
c63c7106 18926else
698dcdb6 18927 cat > conftest.$ac_ext <<EOF
986ecc86 18928#line 18929 "configure"
c63c7106
VZ
18929#include "confdefs.h"
18930/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 18931 which can conflict with char socket(); below. */
c63c7106
VZ
18932#include <assert.h>
18933/* Override any gcc2 internal prototype to avoid an error. */
18934/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
18935 builtin and then its argument prototype would still apply. */
18936char socket();
18937
18938int main() {
c63c7106
VZ
18939
18940/* The GNU C library defines this for functions which it implements
18941 to always fail with ENOSYS. Some functions are actually named
18942 something starting with __ and the normal name is an alias. */
18943#if defined (__stub_socket) || defined (__stub___socket)
18944choke me
18945#else
698dcdb6 18946socket();
c63c7106
VZ
18947#endif
18948
698dcdb6
VZ
18949; return 0; }
18950EOF
986ecc86 18951if { (eval echo configure:18952: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
18952 rm -rf conftest*
18953 eval "ac_cv_func_socket=yes"
18954else
18955 echo "configure: failed program was:" >&5
18956 cat conftest.$ac_ext >&5
18957 rm -rf conftest*
18958 eval "ac_cv_func_socket=no"
18959fi
18960rm -f conftest*
18961fi
18962
18963if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
18964 echo "$ac_t""yes" 1>&6
c63c7106
VZ
18965 :
18966else
698dcdb6
VZ
18967 echo "$ac_t""no" 1>&6
18968echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
986ecc86 18969echo "configure:18970: checking for socket in -lsocket" >&5
698dcdb6
VZ
18970ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'`
18971if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
18972 echo $ac_n "(cached) $ac_c" 1>&6
c63c7106 18973else
698dcdb6 18974 ac_save_LIBS="$LIBS"
c63c7106 18975LIBS="-lsocket $LIBS"
698dcdb6 18976cat > conftest.$ac_ext <<EOF
986ecc86 18977#line 18978 "configure"
c63c7106
VZ
18978#include "confdefs.h"
18979/* Override any gcc2 internal prototype to avoid an error. */
18980/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
18981 builtin and then its argument prototype would still apply. */
18982char socket();
18983
18984int main() {
18985socket()
18986; return 0; }
18987EOF
986ecc86 18988if { (eval echo configure:18989: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
18989 rm -rf conftest*
18990 eval "ac_cv_lib_$ac_lib_var=yes"
18991else
18992 echo "configure: failed program was:" >&5
18993 cat conftest.$ac_ext >&5
18994 rm -rf conftest*
18995 eval "ac_cv_lib_$ac_lib_var=no"
18996fi
18997rm -f conftest*
18998LIBS="$ac_save_LIBS"
18999
19000fi
19001if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
19002 echo "$ac_t""yes" 1>&6
d558c907
VS
19003 if test "$INET_LINK" != " -lsocket"; then
19004 INET_LINK="$INET_LINK -lsocket"
19005 fi
c63c7106 19006else
698dcdb6 19007 echo "$ac_t""no" 1>&6
afc31813 19008
3a922bb4
RL
19009 echo "configure: warning: socket library not found - sockets will be disabled" 1>&2
19010 wxUSE_SOCKETS=no
19011
698dcdb6 19012
6232543b 19013fi
b089607b 19014
3a922bb4 19015
1e487827 19016fi
afc31813 19017
3a922bb4 19018 fi
0feee163 19019fi
51a9faba 19020
0feee163
VZ
19021if test "$wxUSE_SOCKETS" = "yes" ; then
19022 if test "$TOOLKIT" != "MSW"; then
3a922bb4 19023 echo $ac_n "checking what is the type of the third argument of getsockname""... $ac_c" 1>&6
986ecc86 19024echo "configure:19025: checking what is the type of the third argument of getsockname" >&5
698dcdb6
VZ
19025if eval "test \"`echo '$''{'wx_cv_type_getsockname3'+set}'`\" = set"; then
19026 echo $ac_n "(cached) $ac_c" 1>&6
19027else
19028
3a922bb4
RL
19029
19030 ac_ext=C
698dcdb6 19031# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1e487827 19032ac_cpp='$CXXCPP $CPPFLAGS'
698dcdb6
VZ
19033ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19034ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19035cross_compiling=$ac_cv_prog_cxx_cross
703e0a69 19036
698dcdb6 19037
3a922bb4 19038 cat > conftest.$ac_ext <<EOF
986ecc86 19039#line 19040 "configure"
afc31813 19040#include "confdefs.h"
51a9faba 19041
3a922bb4
RL
19042 #include <sys/types.h>
19043 #include <sys/socket.h>
19044
698dcdb6 19045int main() {
51a9faba 19046
3a922bb4
RL
19047 socklen_t len;
19048 getsockname(0, 0, &len);
19049
698dcdb6
VZ
19050; return 0; }
19051EOF
986ecc86 19052if { (eval echo configure:19053: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6 19053 rm -rf conftest*
51a9faba 19054 wx_cv_type_getsockname3=socklen_t
afc31813 19055else
698dcdb6
VZ
19056 echo "configure: failed program was:" >&5
19057 cat conftest.$ac_ext >&5
19058 rm -rf conftest*
19059 cat > conftest.$ac_ext <<EOF
986ecc86 19060#line 19061 "configure"
afc31813 19061#include "confdefs.h"
51a9faba 19062
3a922bb4
RL
19063 #include <sys/types.h>
19064 #include <sys/socket.h>
19065
698dcdb6 19066int main() {
51a9faba 19067
3a922bb4
RL
19068 size_t len;
19069 getsockname(0, 0, &len);
19070
698dcdb6
VZ
19071; return 0; }
19072EOF
986ecc86 19073if { (eval echo configure:19074: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6 19074 rm -rf conftest*
51a9faba 19075 wx_cv_type_getsockname3=size_t
afc31813 19076else
698dcdb6
VZ
19077 echo "configure: failed program was:" >&5
19078 cat conftest.$ac_ext >&5
19079 rm -rf conftest*
19080 cat > conftest.$ac_ext <<EOF
986ecc86 19081#line 19082 "configure"
afc31813 19082#include "confdefs.h"
51a9faba 19083
3a922bb4
RL
19084 #include <sys/types.h>
19085 #include <sys/socket.h>
19086
698dcdb6 19087int main() {
51a9faba 19088
3a922bb4
RL
19089 int len;
19090 getsockname(0, 0, &len);
19091
698dcdb6
VZ
19092; return 0; }
19093EOF
986ecc86 19094if { (eval echo configure:19095: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6 19095 rm -rf conftest*
51a9faba 19096 wx_cv_type_getsockname3=int
afc31813 19097else
698dcdb6
VZ
19098 echo "configure: failed program was:" >&5
19099 cat conftest.$ac_ext >&5
19100 rm -rf conftest*
19101 wx_cv_type_getsockname3=unknown
3a922bb4 19102
afc31813 19103fi
698dcdb6 19104rm -f conftest*
3a922bb4 19105
afc31813 19106fi
698dcdb6 19107rm -f conftest*
3a922bb4 19108
afc31813 19109fi
698dcdb6 19110rm -f conftest*
51a9faba 19111
3a922bb4 19112 ac_ext=c
698dcdb6 19113# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
afc31813 19114ac_cpp='$CPP $CPPFLAGS'
698dcdb6
VZ
19115ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19116ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19117cross_compiling=$ac_cv_prog_cc_cross
afc31813 19118
3a922bb4 19119
51a9faba 19120fi
698dcdb6
VZ
19121
19122echo "$ac_t""$wx_cv_type_getsockname3" 1>&6
51a9faba 19123
3a922bb4
RL
19124 if test "$wx_cv_type_getsockname3" = "unknown"; then
19125 wxUSE_SOCKETS=no
19126 echo "configure: warning: Couldn't find socklen_t synonym for this system" 1>&2
19127 else
19128 cat >> confdefs.h <<EOF
51a9faba
VZ
19129#define SOCKLEN_T $wx_cv_type_getsockname3
19130EOF
19131
3a922bb4 19132 fi
51a9faba
VZ
19133 fi
19134fi
afc31813 19135
51a9faba 19136if test "$wxUSE_SOCKETS" = "yes" ; then
698dcdb6 19137 cat >> confdefs.h <<\EOF
afc31813
VZ
19138#define wxUSE_SOCKETS 1
19139EOF
19140
70f7a477 19141 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets"
afc31813
VZ
19142fi
19143
698dcdb6 19144
dc3d889d
VZ
19145if test "$wxUSE_GUI" = "yes"; then
19146
156b2523
GD
19147 if test "$TOOLKIT" = "MAC"; then
19148 echo "configure: warning: Joystick not yet supported under Mac OS X... disabled" 1>&2
19149 wxUSE_JOYSTICK=no
19150 fi
19151 if test "$TOOLKIT" = "MOTIF"; then
19152 echo "configure: warning: Joystick not yet supported under Motif... disabled" 1>&2
19153 wxUSE_JOYSTICK=no
f79bd02d
JS
19154 fi
19155 if test "$TOOLKIT" = "X11"; then
19156 echo "configure: warning: Joystick not yet supported under X11... disabled" 1>&2
19157 wxUSE_JOYSTICK=no
156b2523
GD
19158 fi
19159
3a922bb4
RL
19160 if test "$TOOLKIT" != "MSW"; then
19161 if test "$wxUSE_JOYSTICK" = "yes"; then
19162 for ac_hdr in linux/joystick.h
10f2d63a 19163do
698dcdb6
VZ
19164ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
19165echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
986ecc86 19166echo "configure:19167: checking for $ac_hdr" >&5
698dcdb6
VZ
19167if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
19168 echo $ac_n "(cached) $ac_c" 1>&6
19169else
19170 cat > conftest.$ac_ext <<EOF
986ecc86 19171#line 19172 "configure"
10f2d63a 19172#include "confdefs.h"
698dcdb6
VZ
19173#include <$ac_hdr>
19174EOF
19175ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
986ecc86 19176{ (eval echo configure:19177: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
19177ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
19178if test -z "$ac_err"; then
19179 rm -rf conftest*
19180 eval "ac_cv_header_$ac_safe=yes"
10f2d63a 19181else
698dcdb6
VZ
19182 echo "$ac_err" >&5
19183 echo "configure: failed program was:" >&5
10f2d63a 19184 cat conftest.$ac_ext >&5
698dcdb6
VZ
19185 rm -rf conftest*
19186 eval "ac_cv_header_$ac_safe=no"
10f2d63a 19187fi
698dcdb6 19188rm -f conftest*
10f2d63a 19189fi
698dcdb6
VZ
19190if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
19191 echo "$ac_t""yes" 1>&6
19192 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
19193 cat >> confdefs.h <<EOF
19194#define $ac_tr_hdr 1
10f2d63a 19195EOF
698dcdb6
VZ
19196
19197else
19198 echo "$ac_t""no" 1>&6
10f2d63a
VZ
19199fi
19200done
19201
3a922bb4
RL
19202 if test "$ac_cv_header_linux_joystick_h" != "yes"; then
19203 wxUSE_JOYSTICK=no
156b2523 19204 echo "configure: warning: Joystick not supported by this system... disabled" 1>&2
3a922bb4
RL
19205 fi
19206 fi
19207 fi
b089607b 19208
3a922bb4
RL
19209 if test "$wxUSE_JOYSTICK" = "yes"; then
19210 cat >> confdefs.h <<\EOF
10f2d63a
VZ
19211#define wxUSE_JOYSTICK 1
19212EOF
19213
3a922bb4
RL
19214 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest"
19215 fi
dc3d889d
VZ
19216fi
19217
698dcdb6 19218
b089607b
VZ
19219if test "$TOOLKIT" != "MSW"; then
19220
3a922bb4
RL
19221 HAVE_DL_FUNCS=0
19222 HAVE_SHL_FUNCS=0
0b9ab0bd 19223 if test "$wxUSE_DYNAMIC_LOADER" = "yes" -o "$wxUSE_DYNLIB_CLASS" = "yes" ; then
3a922bb4
RL
19224 if test "$USE_DARWIN" = 1; then
19225 HAVE_DL_FUNCS=1
19226 else
19227 for ac_func in dlopen
10f2d63a 19228do
698dcdb6 19229echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
986ecc86 19230echo "configure:19231: checking for $ac_func" >&5
698dcdb6
VZ
19231if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19232 echo $ac_n "(cached) $ac_c" 1>&6
19233else
19234 cat > conftest.$ac_ext <<EOF
986ecc86 19235#line 19236 "configure"
10f2d63a
VZ
19236#include "confdefs.h"
19237/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 19238 which can conflict with char $ac_func(); below. */
10f2d63a
VZ
19239#include <assert.h>
19240/* Override any gcc2 internal prototype to avoid an error. */
19241/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
19242 builtin and then its argument prototype would still apply. */
19243char $ac_func();
19244
19245int main() {
10f2d63a
VZ
19246
19247/* The GNU C library defines this for functions which it implements
19248 to always fail with ENOSYS. Some functions are actually named
19249 something starting with __ and the normal name is an alias. */
19250#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19251choke me
19252#else
698dcdb6 19253$ac_func();
10f2d63a
VZ
19254#endif
19255
698dcdb6
VZ
19256; return 0; }
19257EOF
986ecc86 19258if { (eval echo configure:19259: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
19259 rm -rf conftest*
19260 eval "ac_cv_func_$ac_func=yes"
19261else
19262 echo "configure: failed program was:" >&5
19263 cat conftest.$ac_ext >&5
19264 rm -rf conftest*
19265 eval "ac_cv_func_$ac_func=no"
19266fi
19267rm -f conftest*
19268fi
19269
19270if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19271 echo "$ac_t""yes" 1>&6
19272 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19273 cat >> confdefs.h <<EOF
19274#define $ac_tr_func 1
19275EOF
19276
3a922bb4 19277 cat >> confdefs.h <<\EOF
10f2d63a
VZ
19278#define HAVE_DLOPEN 1
19279EOF
19280
3a922bb4
RL
19281 HAVE_DL_FUNCS=1
19282
10f2d63a 19283else
698dcdb6
VZ
19284 echo "$ac_t""no" 1>&6
19285echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
986ecc86 19286echo "configure:19287: checking for dlopen in -ldl" >&5
698dcdb6
VZ
19287ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
19288if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
19289 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 19290else
698dcdb6 19291 ac_save_LIBS="$LIBS"
10f2d63a 19292LIBS="-ldl $LIBS"
698dcdb6 19293cat > conftest.$ac_ext <<EOF
986ecc86 19294#line 19295 "configure"
10f2d63a
VZ
19295#include "confdefs.h"
19296/* Override any gcc2 internal prototype to avoid an error. */
19297/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
19298 builtin and then its argument prototype would still apply. */
19299char dlopen();
19300
19301int main() {
19302dlopen()
19303; return 0; }
19304EOF
986ecc86 19305if { (eval echo configure:19306: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
19306 rm -rf conftest*
19307 eval "ac_cv_lib_$ac_lib_var=yes"
19308else
19309 echo "configure: failed program was:" >&5
19310 cat conftest.$ac_ext >&5
19311 rm -rf conftest*
19312 eval "ac_cv_lib_$ac_lib_var=no"
19313fi
19314rm -f conftest*
19315LIBS="$ac_save_LIBS"
19316
19317fi
19318if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
19319 echo "$ac_t""yes" 1>&6
19320
3a922bb4 19321 cat >> confdefs.h <<\EOF
10f2d63a
VZ
19322#define HAVE_DLOPEN 1
19323EOF
19324
3a922bb4 19325 HAVE_DL_FUNCS=1
3d63bc3a 19326 DL_LINK=" -ldl$DL_LINK"
3a922bb4 19327
10f2d63a 19328else
698dcdb6 19329 echo "$ac_t""no" 1>&6
10f2d63a 19330
3a922bb4 19331 for ac_func in shl_load
10f2d63a 19332do
698dcdb6 19333echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
986ecc86 19334echo "configure:19335: checking for $ac_func" >&5
698dcdb6
VZ
19335if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19336 echo $ac_n "(cached) $ac_c" 1>&6
19337else
19338 cat > conftest.$ac_ext <<EOF
986ecc86 19339#line 19340 "configure"
10f2d63a
VZ
19340#include "confdefs.h"
19341/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 19342 which can conflict with char $ac_func(); below. */
10f2d63a
VZ
19343#include <assert.h>
19344/* Override any gcc2 internal prototype to avoid an error. */
19345/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
19346 builtin and then its argument prototype would still apply. */
19347char $ac_func();
19348
19349int main() {
10f2d63a
VZ
19350
19351/* The GNU C library defines this for functions which it implements
19352 to always fail with ENOSYS. Some functions are actually named
19353 something starting with __ and the normal name is an alias. */
19354#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19355choke me
19356#else
698dcdb6 19357$ac_func();
10f2d63a
VZ
19358#endif
19359
698dcdb6
VZ
19360; return 0; }
19361EOF
986ecc86 19362if { (eval echo configure:19363: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
19363 rm -rf conftest*
19364 eval "ac_cv_func_$ac_func=yes"
19365else
19366 echo "configure: failed program was:" >&5
19367 cat conftest.$ac_ext >&5
19368 rm -rf conftest*
19369 eval "ac_cv_func_$ac_func=no"
19370fi
19371rm -f conftest*
19372fi
19373
19374if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19375 echo "$ac_t""yes" 1>&6
19376 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19377 cat >> confdefs.h <<EOF
19378#define $ac_tr_func 1
19379EOF
19380
3a922bb4 19381 cat >> confdefs.h <<\EOF
10f2d63a
VZ
19382#define HAVE_SHL_LOAD 1
19383EOF
19384
3a922bb4
RL
19385 HAVE_SHL_FUNCS=1
19386
10f2d63a 19387else
698dcdb6
VZ
19388 echo "$ac_t""no" 1>&6
19389echo $ac_n "checking for dld in -lshl_load""... $ac_c" 1>&6
986ecc86 19390echo "configure:19391: checking for dld in -lshl_load" >&5
698dcdb6
VZ
19391ac_lib_var=`echo shl_load'_'dld | sed 'y%./+-%__p_%'`
19392if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
19393 echo $ac_n "(cached) $ac_c" 1>&6
f6bcfd97 19394else
698dcdb6 19395 ac_save_LIBS="$LIBS"
f6bcfd97 19396LIBS="-lshl_load $LIBS"
698dcdb6 19397cat > conftest.$ac_ext <<EOF
986ecc86 19398#line 19399 "configure"
f6bcfd97
BP
19399#include "confdefs.h"
19400/* Override any gcc2 internal prototype to avoid an error. */
19401/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
19402 builtin and then its argument prototype would still apply. */
19403char dld();
19404
19405int main() {
19406dld()
19407; return 0; }
19408EOF
986ecc86 19409if { (eval echo configure:19410: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
19410 rm -rf conftest*
19411 eval "ac_cv_lib_$ac_lib_var=yes"
19412else
19413 echo "configure: failed program was:" >&5
19414 cat conftest.$ac_ext >&5
19415 rm -rf conftest*
19416 eval "ac_cv_lib_$ac_lib_var=no"
19417fi
19418rm -f conftest*
19419LIBS="$ac_save_LIBS"
f6bcfd97 19420
698dcdb6
VZ
19421fi
19422if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
19423 echo "$ac_t""yes" 1>&6
19424
3a922bb4 19425 HAVE_SHL_FUNCS=1
3d63bc3a 19426 DL_LINK=" -ldld$DL_LINK"
3a922bb4 19427
698dcdb6
VZ
19428else
19429 echo "$ac_t""no" 1>&6
f6bcfd97
BP
19430fi
19431
3a922bb4 19432
10f2d63a
VZ
19433fi
19434done
19435
3a922bb4 19436
10f2d63a
VZ
19437fi
19438
3a922bb4 19439
10f2d63a
VZ
19440fi
19441done
19442
1e487827 19443
3a922bb4
RL
19444 if test "$HAVE_DL_FUNCS" = 1; then
19445 for ac_func in dlerror
f6bcfd97 19446do
698dcdb6 19447echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
986ecc86 19448echo "configure:19449: checking for $ac_func" >&5
698dcdb6
VZ
19449if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19450 echo $ac_n "(cached) $ac_c" 1>&6
19451else
19452 cat > conftest.$ac_ext <<EOF
986ecc86 19453#line 19454 "configure"
f6bcfd97
BP
19454#include "confdefs.h"
19455/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 19456 which can conflict with char $ac_func(); below. */
f6bcfd97
BP
19457#include <assert.h>
19458/* Override any gcc2 internal prototype to avoid an error. */
19459/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
19460 builtin and then its argument prototype would still apply. */
19461char $ac_func();
19462
19463int main() {
f6bcfd97
BP
19464
19465/* The GNU C library defines this for functions which it implements
19466 to always fail with ENOSYS. Some functions are actually named
19467 something starting with __ and the normal name is an alias. */
19468#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19469choke me
19470#else
698dcdb6 19471$ac_func();
f6bcfd97
BP
19472#endif
19473
698dcdb6
VZ
19474; return 0; }
19475EOF
986ecc86 19476if { (eval echo configure:19477: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
19477 rm -rf conftest*
19478 eval "ac_cv_func_$ac_func=yes"
19479else
19480 echo "configure: failed program was:" >&5
19481 cat conftest.$ac_ext >&5
19482 rm -rf conftest*
19483 eval "ac_cv_func_$ac_func=no"
19484fi
19485rm -f conftest*
19486fi
19487
19488if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19489 echo "$ac_t""yes" 1>&6
19490 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19491 cat >> confdefs.h <<EOF
19492#define $ac_tr_func 1
19493EOF
19494 cat >> confdefs.h <<\EOF
f6bcfd97
BP
19495#define HAVE_DLERROR 1
19496EOF
19497
19498else
698dcdb6
VZ
19499 echo "$ac_t""no" 1>&6
19500echo $ac_n "checking for dlerror in -ldl""... $ac_c" 1>&6
986ecc86 19501echo "configure:19502: checking for dlerror in -ldl" >&5
698dcdb6
VZ
19502ac_lib_var=`echo dl'_'dlerror | sed 'y%./+-%__p_%'`
19503if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
19504 echo $ac_n "(cached) $ac_c" 1>&6
f6bcfd97 19505else
698dcdb6 19506 ac_save_LIBS="$LIBS"
f6bcfd97 19507LIBS="-ldl $LIBS"
698dcdb6 19508cat > conftest.$ac_ext <<EOF
986ecc86 19509#line 19510 "configure"
f6bcfd97
BP
19510#include "confdefs.h"
19511/* Override any gcc2 internal prototype to avoid an error. */
19512/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
19513 builtin and then its argument prototype would still apply. */
19514char dlerror();
19515
19516int main() {
19517dlerror()
19518; return 0; }
19519EOF
986ecc86 19520if { (eval echo configure:19521: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
19521 rm -rf conftest*
19522 eval "ac_cv_lib_$ac_lib_var=yes"
19523else
19524 echo "configure: failed program was:" >&5
19525 cat conftest.$ac_ext >&5
19526 rm -rf conftest*
19527 eval "ac_cv_lib_$ac_lib_var=no"
19528fi
19529rm -f conftest*
19530LIBS="$ac_save_LIBS"
19531
19532fi
19533if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
19534 echo "$ac_t""yes" 1>&6
19535 cat >> confdefs.h <<\EOF
f6bcfd97
BP
19536#define HAVE_DLERROR 1
19537EOF
19538
698dcdb6
VZ
19539else
19540 echo "$ac_t""no" 1>&6
f6bcfd97
BP
19541fi
19542
19543fi
19544done
19545
3a922bb4
RL
19546 fi
19547 fi
f6bcfd97 19548
3a922bb4
RL
19549 if test "$HAVE_DL_FUNCS" = 0; then
19550 if test "$HAVE_SHL_FUNCS" = 0; then
19551 if test "$USE_UNIX" = 1; then
19552 echo "configure: warning: Missing dynamic loading support, several features will be disabled" 1>&2
0b9ab0bd 19553 wxUSE_DYNAMIC_LOADER=no
3a922bb4
RL
19554 wxUSE_DYNLIB_CLASS=no
19555 else
19556 echo "configure: warning: Assuming wxLibrary class works on this platform" 1>&2
19557 fi
19558 fi
10f2d63a
VZ
19559 fi
19560 fi
19561fi
19562
0b9ab0bd
RL
19563if test "$wxUSE_DYNAMIC_LOADER" = "yes" ; then
19564 cat >> confdefs.h <<\EOF
19565#define wxUSE_DYNAMIC_LOADER 1
19566EOF
19567
19568elif test "$wxUSE_DYNLIB_CLASS" = "yes" ; then
698dcdb6 19569 cat >> confdefs.h <<\EOF
10f2d63a
VZ
19570#define wxUSE_DYNLIB_CLASS 1
19571EOF
19572
19573fi
19574
698dcdb6 19575
1e6feb95
VZ
19576if test "$wxUSE_FONTMAP" = "yes" ; then
19577 cat >> confdefs.h <<\EOF
19578#define wxUSE_FONTMAP 1
19579EOF
19580
19581fi
19582
10f2d63a 19583if test "$wxUSE_UNICODE" = "yes" ; then
698dcdb6 19584 cat >> confdefs.h <<\EOF
10f2d63a
VZ
19585#define wxUSE_UNICODE 1
19586EOF
19587
bbc3925a
VS
19588
19589 if test "$wxUSE_MSW" != 1; then
19590 wxUSE_UNICODE_MSLU=no
19591 fi
a72a4bfa
VS
19592
19593 if test "$wxUSE_MSW" = 1 -a "$wxUSE_UNICODE_MSLU" = "yes"; then
19594 echo $ac_n "checking for main in -lunicows""... $ac_c" 1>&6
986ecc86 19595echo "configure:19596: checking for main in -lunicows" >&5
a72a4bfa
VS
19596ac_lib_var=`echo unicows'_'main | sed 'y%./+-%__p_%'`
19597if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
19598 echo $ac_n "(cached) $ac_c" 1>&6
19599else
19600 ac_save_LIBS="$LIBS"
19601LIBS="-lunicows $LIBS"
19602cat > conftest.$ac_ext <<EOF
986ecc86 19603#line 19604 "configure"
a72a4bfa
VS
19604#include "confdefs.h"
19605
19606int main() {
19607main()
19608; return 0; }
19609EOF
986ecc86 19610if { (eval echo configure:19611: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a72a4bfa
VS
19611 rm -rf conftest*
19612 eval "ac_cv_lib_$ac_lib_var=yes"
19613else
19614 echo "configure: failed program was:" >&5
19615 cat conftest.$ac_ext >&5
19616 rm -rf conftest*
19617 eval "ac_cv_lib_$ac_lib_var=no"
19618fi
19619rm -f conftest*
19620LIBS="$ac_save_LIBS"
19621
19622fi
19623if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
19624 echo "$ac_t""yes" 1>&6
19625
19626 cat >> confdefs.h <<\EOF
19627#define wxUSE_UNICODE_MSLU 1
19628EOF
19629
19630
19631else
19632 echo "$ac_t""no" 1>&6
19633
19634 echo "configure: warning: Compiler doesn't support MSLU (libunicows.a), disabled.
19635 Applications will only run on Windows NT/2000/XP!" 1>&2
19636 wxUSE_UNICODE_MSLU=no
19637
19638fi
19639
19640 fi
10f2d63a
VZ
19641fi
19642
10f2d63a 19643if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then
698dcdb6 19644 cat >> confdefs.h <<\EOF
10f2d63a
VZ
19645#define wxUSE_EXPERIMENTAL_PRINTF 1
19646EOF
19647
19648fi
19649
698dcdb6 19650
698dcdb6 19651
10f2d63a
VZ
19652IODBC_C_SRC=""
19653if test "$wxUSE_ODBC" = "yes" ; then
698dcdb6 19654 cat >> confdefs.h <<\EOF
10f2d63a
VZ
19655#define wxUSE_ODBC 1
19656EOF
19657
19658 WXODBCFLAG="-D_IODBC_"
19659 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db"
10f2d63a
VZ
19660fi
19661
698dcdb6 19662
10f2d63a 19663if test "$wxUSE_POSTSCRIPT" = "yes" ; then
698dcdb6 19664 cat >> confdefs.h <<\EOF
10f2d63a
VZ
19665#define wxUSE_POSTSCRIPT 1
19666EOF
19667
19668fi
19669
698dcdb6 19670cat >> confdefs.h <<\EOF
10f2d63a
VZ
19671#define wxUSE_AFM_FOR_POSTSCRIPT 1
19672EOF
19673
698dcdb6
VZ
19674
19675cat >> confdefs.h <<\EOF
10f2d63a
VZ
19676#define wxUSE_NORMALIZED_PS_FONTS 1
19677EOF
19678
698dcdb6
VZ
19679
19680
10f2d63a 19681if test "$wxUSE_CONSTRAINTS" = "yes"; then
698dcdb6 19682 cat >> confdefs.h <<\EOF
10f2d63a
VZ
19683#define wxUSE_CONSTRAINTS 1
19684EOF
19685
19686 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout"
19687fi
19688
19689if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
fc26f4ab 19690 if test "$wxUSE_UNIVERSAL" = "yes"; then
0feee163 19691 echo "configure: warning: MDI not yet supported for wxUniversal... disabled" 1>&2
fc26f4ab
RL
19692 wxUSE_MDI_ARCHITECTURE=no
19693 fi
19694
19695 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
19696 cat >> confdefs.h <<\EOF
10f2d63a
VZ
19697#define wxUSE_MDI_ARCHITECTURE 1
19698EOF
19699
fc26f4ab
RL
19700 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi"
19701 fi
10f2d63a
VZ
19702fi
19703
19704if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then
698dcdb6 19705 cat >> confdefs.h <<\EOF
10f2d63a
VZ
19706#define wxUSE_DOC_VIEW_ARCHITECTURE 1
19707EOF
19708
19709 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview"
19710 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
19711 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi"
19712 fi
19713fi
19714
19715if test "$wxUSE_HELP" = "yes"; then
698dcdb6 19716 cat >> confdefs.h <<\EOF
10f2d63a
VZ
19717#define wxUSE_HELP 1
19718EOF
19719
19720 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help"
3379ed37 19721
77e13408 19722 if test "$wxUSE_MSW" = 1; then
031d8228 19723 if test "$wxUSE_MS_HTML_HELP" = "yes"; then
3b7bc64a 19724 cat >> confdefs.h <<\EOF
29fd3c0c
VS
19725#define wxUSE_MS_HTML_HELP 1
19726EOF
19727
3e44f09d 19728 fi
3379ed37 19729 fi
031d8228
VS
19730
19731 if test "$wxUSE_WXHTML_HELP" = "yes"; then
19732 if test "$wxUSE_HTML" = "yes"; then
19733 cat >> confdefs.h <<\EOF
19734#define wxUSE_WXHTML_HELP 1
19735EOF
19736
19737 else
19738 echo "configure: warning: Cannot use wxHTML-based help without wxHTML so it won't be compiled" 1>&2
19739 wxUSE_WXHTML_HELP=no
19740 fi
19741 fi
10f2d63a
VZ
19742fi
19743
19744if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
19745 if test "$wxUSE_CONSTRAINTS" != "yes"; then
698dcdb6 19746 echo "configure: warning: Printing support cannot be used without constraints so it won't be compiled without it" 1>&2
10f2d63a 19747 else
698dcdb6 19748 cat >> confdefs.h <<\EOF
10f2d63a
VZ
19749#define wxUSE_PRINTING_ARCHITECTURE 1
19750EOF
19751
19752 fi
19753 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing"
19754fi
19755
19756if test "$wxUSE_PROLOGIO" = "yes" ; then
698dcdb6 19757 cat >> confdefs.h <<\EOF
10f2d63a
VZ
19758#define wxUSE_PROLOGIO 1
19759EOF
19760
19761fi
19762
19763if test "$wxUSE_RESOURCES" = "yes" ; then
e334d0ea
JS
19764 if test "$wxUSE_NANOX" = "yes"; then
19765 echo "configure: warning: Cannot use resource database functions in NanoX" 1>&2
19766 else
19767 cat >> confdefs.h <<\EOF
10f2d63a
VZ
19768#define wxUSE_RESOURCES 1
19769EOF
19770
e334d0ea
JS
19771 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS resource"
19772 fi
10f2d63a
VZ
19773fi
19774
19775if test "$wxUSE_X_RESOURCES" = "yes"; then
698dcdb6 19776 cat >> confdefs.h <<\EOF
10f2d63a
VZ
19777#define wxUSE_X_RESOURCES 1
19778EOF
19779
19780fi
19781
698dcdb6 19782
77e13408
RL
19783if test "$wxUSE_MSW" = 1 -a \( "$wxUSE_DATAOBJ" = "yes" \
19784 -o "$wxUSE_CLIPBOARD" = "yes" \
19785 -o "$wxUSE_DRAG_AND_DROP" = "yes" \) ; then
2b9bdf71 19786 for ac_hdr in ole2.h
10f2d63a 19787do
698dcdb6
VZ
19788ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
19789echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
986ecc86 19790echo "configure:19791: checking for $ac_hdr" >&5
698dcdb6
VZ
19791if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
19792 echo $ac_n "(cached) $ac_c" 1>&6
19793else
19794 cat > conftest.$ac_ext <<EOF
986ecc86 19795#line 19796 "configure"
10f2d63a 19796#include "confdefs.h"
698dcdb6
VZ
19797#include <$ac_hdr>
19798EOF
19799ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
986ecc86 19800{ (eval echo configure:19801: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
19801ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
19802if test -z "$ac_err"; then
19803 rm -rf conftest*
19804 eval "ac_cv_header_$ac_safe=yes"
1e487827 19805else
698dcdb6
VZ
19806 echo "$ac_err" >&5
19807 echo "configure: failed program was:" >&5
10f2d63a 19808 cat conftest.$ac_ext >&5
698dcdb6
VZ
19809 rm -rf conftest*
19810 eval "ac_cv_header_$ac_safe=no"
10f2d63a 19811fi
698dcdb6 19812rm -f conftest*
10f2d63a 19813fi
698dcdb6
VZ
19814if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
19815 echo "$ac_t""yes" 1>&6
19816 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
19817 cat >> confdefs.h <<EOF
19818#define $ac_tr_hdr 1
10f2d63a 19819EOF
698dcdb6
VZ
19820
19821else
19822 echo "$ac_t""no" 1>&6
10f2d63a
VZ
19823fi
19824done
19825
698dcdb6 19826
2b9bdf71
VZ
19827 if test "$ac_cv_header_ole2_h" = "yes" ; then
19828 if test "$GCC" = yes ; then
19829 ALL_OBJECTS="$ALL_OBJECTS \$(OLEOBJS)"
2b9bdf71 19830 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fvtable-thunks"
3d63bc3a 19831 LIBS=" -lrpcrt4 -loleaut32 -lole32 -luuid$LIBS"
2b9bdf71 19832 cat >> confdefs.h <<\EOF
4f11a343
VS
19833#define wxUSE_OLE 1
19834EOF
19835
b64f0a5f 19836
2b9bdf71
VZ
19837 fi
19838
19839 cat >> confdefs.h <<\EOF
19840#define wxUSE_DATAOBJ 1
19841EOF
19842
19843 else
19844 echo "configure: warning: Some features disabled because OLE headers not found" 1>&2
19845
19846 wxUSE_CLIPBOARD=no
19847 wxUSE_DRAG_AND_DROP=no
19848 wxUSE_DATAOBJ=no
19849 fi
19850
77e13408 19851 if test "$wxUSE_METAFILE" = "yes"; then
2b9bdf71 19852 cat >> confdefs.h <<\EOF
b64f0a5f
RL
19853#define wxUSE_METAFILE 1
19854EOF
19855
2b9bdf71
VZ
19856
19857 cat >> confdefs.h <<\EOF
b64f0a5f
RL
19858#define wxUSE_ENH_METAFILE 1
19859EOF
19860
2b9bdf71
VZ
19861 fi
19862fi
19863
19864if test "$wxUSE_IPC" = "yes"; then
19865 if test "$wxUSE_SOCKETS" != "yes"; then
156b2523 19866 echo "configure: warning: wxWindows IPC classes require sockets... disabled" 1>&2
2b9bdf71
VZ
19867 fi
19868
19869 cat >> confdefs.h <<\EOF
19870#define wxUSE_IPC 1
19871EOF
19872
19873fi
19874
19875if test "$wxUSE_CLIPBOARD" = "yes"; then
6c657b52
VS
19876 if test "$wxUSE_MGL" = 1; then
19877 echo "configure: warning: Clipboard not yet supported under MGL... disabled" 1>&2
19878 wxUSE_CLIPBOARD=no
19879 fi
19880
19881 if test "$wxUSE_CLIPBOARD" = "yes"; then
19882 cat >> confdefs.h <<\EOF
2b9bdf71
VZ
19883#define wxUSE_CLIPBOARD 1
19884EOF
19885
673f4220 19886
6c657b52 19887 cat >> confdefs.h <<\EOF
673f4220
VZ
19888#define wxUSE_DATAOBJ 1
19889EOF
19890
6c657b52 19891 fi
2b9bdf71
VZ
19892fi
19893
19894if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then
19895 if test "$wxUSE_GTK" = 1; then
19896 if test "$WXGTK12" != 1; then
156b2523 19897 echo "configure: warning: Drag and drop is only supported under GTK+ 1.2... disabled" 1>&2
10f2d63a
VZ
19898 wxUSE_DRAG_AND_DROP=no
19899 fi
19900 fi
19901
2b9bdf71 19902 if test "$wxUSE_MOTIF" = 1; then
156b2523 19903 echo "configure: warning: Drag and drop not yet supported under Motif... disabled" 1>&2
2b9bdf71
VZ
19904 wxUSE_DRAG_AND_DROP=no
19905 fi
19906
f79bd02d
JS
19907 if test "$wxUSE_X11" = 1; then
19908 echo "configure: warning: Drag and drop not yet supported under X11... disabled" 1>&2
19909 wxUSE_DRAG_AND_DROP=no
19910 fi
19911
6c657b52
VS
19912 if test "$wxUSE_MGL" = 1; then
19913 echo "configure: warning: Drag and drop not yet supported under MGL... disabled" 1>&2
19914 wxUSE_DRAG_AND_DROP=no
19915 fi
19916
10f2d63a 19917 if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
698dcdb6 19918 cat >> confdefs.h <<\EOF
10f2d63a
VZ
19919#define wxUSE_DRAG_AND_DROP 1
19920EOF
19921
19922 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd"
19923 fi
19924
19925fi
19926
19927if test "$wxUSE_SPLINES" = "yes" ; then
698dcdb6 19928 cat >> confdefs.h <<\EOF
10f2d63a
VZ
19929#define wxUSE_SPLINES 1
19930EOF
19931
19932fi
19933
698dcdb6 19934
1e6feb95
VZ
19935USES_CONTROLS=0
19936if test "$wxUSE_CONTROLS" = "yes"; then
19937 USES_CONTROLS=1
19938fi
19939
10f2d63a 19940if test "$wxUSE_ACCEL" = "yes"; then
698dcdb6 19941 cat >> confdefs.h <<\EOF
10f2d63a
VZ
19942#define wxUSE_ACCEL 1
19943EOF
19944
1e6feb95
VZ
19945 USES_CONTROLS=1
19946fi
19947
19948if test "$wxUSE_BUTTON" = "yes"; then
19949 cat >> confdefs.h <<\EOF
19950#define wxUSE_BUTTON 1
19951EOF
19952
19953 USES_CONTROLS=1
19954fi
19955
19956if test "$wxUSE_BMPBUTTON" = "yes"; then
19957 cat >> confdefs.h <<\EOF
19958#define wxUSE_BMPBUTTON 1
19959EOF
19960
19961 USES_CONTROLS=1
19962fi
19963
19964if test "$wxUSE_CALCTRL" = "yes"; then
19965 cat >> confdefs.h <<\EOF
19966#define wxUSE_CALENDARCTRL 1
19967EOF
19968
19969 USES_CONTROLS=1
19970 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar"
10f2d63a
VZ
19971fi
19972
19973if test "$wxUSE_CARET" = "yes"; then
698dcdb6 19974 cat >> confdefs.h <<\EOF
10f2d63a
VZ
19975#define wxUSE_CARET 1
19976EOF
19977
1e6feb95 19978 USES_CONTROLS=1
10f2d63a
VZ
19979 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret"
19980fi
19981
19982if test "$wxUSE_COMBOBOX" = "yes"; then
698dcdb6 19983 cat >> confdefs.h <<\EOF
10f2d63a
VZ
19984#define wxUSE_COMBOBOX 1
19985EOF
19986
1e6feb95 19987 USES_CONTROLS=1
10f2d63a
VZ
19988fi
19989
19990if test "$wxUSE_CHOICE" = "yes"; then
698dcdb6 19991 cat >> confdefs.h <<\EOF
10f2d63a
VZ
19992#define wxUSE_CHOICE 1
19993EOF
19994
1e6feb95 19995 USES_CONTROLS=1
10f2d63a
VZ
19996fi
19997
19998if test "$wxUSE_CHECKBOX" = "yes"; then
698dcdb6 19999 cat >> confdefs.h <<\EOF
10f2d63a
VZ
20000#define wxUSE_CHECKBOX 1
20001EOF
20002
1e6feb95 20003 USES_CONTROLS=1
10f2d63a
VZ
20004fi
20005
20006if test "$wxUSE_CHECKLST" = "yes"; then
698dcdb6 20007 cat >> confdefs.h <<\EOF
10f2d63a
VZ
20008#define wxUSE_CHECKLISTBOX 1
20009EOF
20010
1e6feb95 20011 USES_CONTROLS=1
10f2d63a
VZ
20012 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst"
20013fi
20014
20015if test "$wxUSE_GAUGE" = "yes"; then
698dcdb6 20016 cat >> confdefs.h <<\EOF
10f2d63a
VZ
20017#define wxUSE_GAUGE 1
20018EOF
20019
1e6feb95 20020 USES_CONTROLS=1
10f2d63a
VZ
20021fi
20022
d6a55c4b
VZ
20023if test "$wxUSE_NEW_GRID" = "yes"; then
20024 wxUSE_GRID="yes"
698dcdb6 20025 cat >> confdefs.h <<\EOF
d6a55c4b 20026#define wxUSE_NEW_GRID 1
10f2d63a
VZ
20027EOF
20028
1e6feb95 20029 USES_CONTROLS=1
d6a55c4b 20030 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS newgrid"
10f2d63a
VZ
20031fi
20032
d6a55c4b 20033if test "$wxUSE_GRID" = "yes"; then
698dcdb6 20034 cat >> confdefs.h <<\EOF
d6a55c4b 20035#define wxUSE_GRID 1
10f2d63a
VZ
20036EOF
20037
1e6feb95 20038 USES_CONTROLS=1
d6a55c4b 20039 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid"
10f2d63a
VZ
20040fi
20041
20042if test "$wxUSE_IMAGLIST" = "yes"; then
698dcdb6 20043 cat >> confdefs.h <<\EOF
10f2d63a
VZ
20044#define wxUSE_IMAGLIST 1
20045EOF
20046
20047fi
20048
20049if test "$wxUSE_LISTBOX" = "yes"; then
698dcdb6 20050 cat >> confdefs.h <<\EOF
10f2d63a
VZ
20051#define wxUSE_LISTBOX 1
20052EOF
20053
1e6feb95 20054 USES_CONTROLS=1
10f2d63a
VZ
20055fi
20056
20057if test "$wxUSE_LISTCTRL" = "yes"; then
20058 if test "$wxUSE_IMAGLIST" = "yes"; then
698dcdb6 20059 cat >> confdefs.h <<\EOF
10f2d63a
VZ
20060#define wxUSE_LISTCTRL 1
20061EOF
20062
1e6feb95 20063 USES_CONTROLS=1
10f2d63a
VZ
20064 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl"
20065 else
698dcdb6 20066 echo "configure: warning: wxListCtrl requires wxImageList and won't be compiled without it" 1>&2
10f2d63a
VZ
20067 fi
20068fi
20069
20070if test "$wxUSE_NOTEBOOK" = "yes"; then
698dcdb6 20071 cat >> confdefs.h <<\EOF
10f2d63a
VZ
20072#define wxUSE_NOTEBOOK 1
20073EOF
20074
1e6feb95 20075 USES_CONTROLS=1
10f2d63a
VZ
20076 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook"
20077fi
20078
24176f2c
GD
20079if test "$wxUSE_PROPSHEET" = "yes"; then
20080 cat >> confdefs.h <<\EOF
20081#define wxUSE_PROPSHEET 1
20082EOF
20083
20084 USES_CONTROLS=1
20085 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS proplist"
20086fi
20087
10f2d63a 20088if test "$wxUSE_RADIOBOX" = "yes"; then
698dcdb6 20089 cat >> confdefs.h <<\EOF
10f2d63a
VZ
20090#define wxUSE_RADIOBOX 1
20091EOF
20092
1e6feb95 20093 USES_CONTROLS=1
10f2d63a
VZ
20094fi
20095
20096if test "$wxUSE_RADIOBTN" = "yes"; then
698dcdb6 20097 cat >> confdefs.h <<\EOF
10f2d63a
VZ
20098#define wxUSE_RADIOBTN 1
20099EOF
20100
1e6feb95 20101 USES_CONTROLS=1
10f2d63a
VZ
20102fi
20103
20104if test "$wxUSE_SASH" = "yes"; then
698dcdb6 20105 cat >> confdefs.h <<\EOF
10f2d63a
VZ
20106#define wxUSE_SASH 1
20107EOF
20108
20109 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest"
20110fi
20111
20112if test "$wxUSE_SCROLLBAR" = "yes"; then
698dcdb6 20113 cat >> confdefs.h <<\EOF
10f2d63a
VZ
20114#define wxUSE_SCROLLBAR 1
20115EOF
20116
1e6feb95 20117 USES_CONTROLS=1
741a9306 20118 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub"
10f2d63a
VZ
20119fi
20120
20121if test "$wxUSE_SLIDER" = "yes"; then
698dcdb6 20122 cat >> confdefs.h <<\EOF
10f2d63a
VZ
20123#define wxUSE_SLIDER 1
20124EOF
20125
1e6feb95 20126 USES_CONTROLS=1
10f2d63a
VZ
20127fi
20128
20129if test "$wxUSE_SPINBTN" = "yes"; then
698dcdb6 20130 cat >> confdefs.h <<\EOF
10f2d63a
VZ
20131#define wxUSE_SPINBTN 1
20132EOF
20133
1e6feb95 20134 USES_CONTROLS=1
10f2d63a
VZ
20135fi
20136
56cfaa52 20137if test "$wxUSE_SPINCTRL" = "yes"; then
698dcdb6 20138 cat >> confdefs.h <<\EOF
56cfaa52
RR
20139#define wxUSE_SPINCTRL 1
20140EOF
20141
1e6feb95 20142 USES_CONTROLS=1
56cfaa52
RR
20143fi
20144
10f2d63a 20145if test "$wxUSE_SPLITTER" = "yes"; then
698dcdb6 20146 cat >> confdefs.h <<\EOF
10f2d63a
VZ
20147#define wxUSE_SPLITTER 1
20148EOF
20149
20150 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter"
20151fi
20152
20153if test "$wxUSE_STATBMP" = "yes"; then
698dcdb6 20154 cat >> confdefs.h <<\EOF
10f2d63a
VZ
20155#define wxUSE_STATBMP 1
20156EOF
20157
1e6feb95 20158 USES_CONTROLS=1
10f2d63a
VZ
20159fi
20160
20161if test "$wxUSE_STATBOX" = "yes"; then
698dcdb6 20162 cat >> confdefs.h <<\EOF
10f2d63a
VZ
20163#define wxUSE_STATBOX 1
20164EOF
20165
1e6feb95
VZ
20166 USES_CONTROLS=1
20167fi
20168
20169if test "$wxUSE_STATTEXT" = "yes"; then
20170 cat >> confdefs.h <<\EOF
20171#define wxUSE_STATTEXT 1
20172EOF
20173
20174 USES_CONTROLS=1
10f2d63a
VZ
20175fi
20176
20177if test "$wxUSE_STATLINE" = "yes"; then
20178 if test "$wxUSE_WINE" = 1 ; then
698dcdb6 20179 echo "configure: warning: wxStaticLine is not supported under WINE" 1>&2
10f2d63a 20180 else
698dcdb6 20181 cat >> confdefs.h <<\EOF
10f2d63a
VZ
20182#define wxUSE_STATLINE 1
20183EOF
20184
1e6feb95 20185 USES_CONTROLS=1
10f2d63a
VZ
20186 fi
20187fi
20188
20189if test "$wxUSE_STATUSBAR" = "yes"; then
698dcdb6 20190 cat >> confdefs.h <<\EOF
10f2d63a
VZ
20191#define wxUSE_STATUSBAR 1
20192EOF
20193
1e6feb95 20194 USES_CONTROLS=1
698dcdb6 20195
2286341c 20196 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar"
10f2d63a
VZ
20197fi
20198
20199if test "$wxUSE_TABDIALOG" = "yes"; then
698dcdb6 20200 cat >> confdefs.h <<\EOF
10f2d63a
VZ
20201#define wxUSE_TAB_DIALOG 1
20202EOF
20203
20204 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS tab"
20205fi
20206
1e6feb95
VZ
20207if test "$wxUSE_TEXTCTRL" = "yes"; then
20208 cat >> confdefs.h <<\EOF
20209#define wxUSE_TEXTCTRL 1
20210EOF
20211
20212 USES_CONTROLS=1
20213 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text"
20214fi
20215
1db8dc4a 20216if test "$wxUSE_TOGGLEBTN" = "yes"; then
156b2523
GD
20217 if test "$wxUSE_MAC" = 1; then
20218 echo "configure: warning: Toggle button not yet supported under Mac OS X... disabled" 1>&2
20219 wxUSE_TOGGLEBTN=no
20220 fi
20221 if test "$wxUSE_UNIVERSAL" = "yes"; then
0feee163 20222 echo "configure: warning: Toggle button not yet supported under wxUniversal... disabled" 1>&2
a45d7ab7
GD
20223 wxUSE_TOGGLEBTN=no
20224 fi
20225
20226 if test "$wxUSE_TOGGLEBTN" = "yes"; then
20227 cat >> confdefs.h <<\EOF
1db8dc4a
VZ
20228#define wxUSE_TOGGLEBTN 1
20229EOF
20230
1e6feb95 20231 USES_CONTROLS=1
a45d7ab7 20232 fi
1db8dc4a
VZ
20233fi
20234
360d6699 20235if test "$wxUSE_TOOLBAR_SIMPLE" = "yes"; then
698dcdb6 20236 cat >> confdefs.h <<\EOF
360d6699
VZ
20237#define wxUSE_TOOLBAR_SIMPLE 1
20238EOF
20239
20240 wxUSE_TOOLBAR="yes"
1e6feb95 20241 USES_CONTROLS=1
360d6699
VZ
20242fi
20243
10f2d63a 20244if test "$wxUSE_TOOLBAR" = "yes"; then
698dcdb6 20245 cat >> confdefs.h <<\EOF
10f2d63a
VZ
20246#define wxUSE_TOOLBAR 1
20247EOF
20248
1e6feb95 20249 USES_CONTROLS=1
698dcdb6 20250
360d6699
VZ
20251 if test "$wxUSE_TOOLBAR_SIMPLE" != "yes"; then
20252 wxUSE_TOOLBAR_NATIVE="yes"
20253 fi
20254
1e6feb95
VZ
20255 if test "$wxUSE_TOOLBAR_NATIVE" = "yes"; then
20256 cat >> confdefs.h <<\EOF
360d6699
VZ
20257#define wxUSE_TOOLBAR_NATIVE 1
20258EOF
20259
1e6feb95
VZ
20260 USES_CONTROLS=1
20261 fi
20262
20263 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar"
360d6699
VZ
20264fi
20265
10f2d63a
VZ
20266if test "$wxUSE_TOOLTIPS" = "yes"; then
20267 if test "$wxUSE_MOTIF" = 1; then
156b2523 20268 echo "configure: warning: wxTooltip not supported yet under Motif... disabled" 1>&2
10f2d63a
VZ
20269 else
20270 if test "$wxUSE_WINE" = 1; then
156b2523 20271 echo "configure: warning: wxTooltip not supported under WINE... disabled" 1>&2
10f2d63a 20272 else
69d27ff7 20273 if test "$wxUSE_UNIVERSAL" = "yes"; then
0feee163 20274 echo "configure: warning: wxTooltip not supported yet in wxUniversal... disabled" 1>&2
69d27ff7 20275 else
3c011993 20276 cat >> confdefs.h <<\EOF
10f2d63a
VZ
20277#define wxUSE_TOOLTIPS 1
20278EOF
20279
69d27ff7 20280 fi
10f2d63a
VZ
20281 fi
20282 fi
20283fi
20284
20285if test "$wxUSE_TREECTRL" = "yes"; then
20286 if test "$wxUSE_IMAGLIST" = "yes"; then
698dcdb6 20287 cat >> confdefs.h <<\EOF
10f2d63a
VZ
20288#define wxUSE_TREECTRL 1
20289EOF
20290
1e6feb95 20291 USES_CONTROLS=1
10f2d63a
VZ
20292 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl"
20293 else
698dcdb6 20294 echo "configure: warning: wxTreeCtrl requires wxImageList and won't be compiled without it" 1>&2
10f2d63a
VZ
20295 fi
20296fi
20297
9f41d601 20298if test "$wxUSE_POPUPWIN" = "yes"; then
6abe4b65 20299 if test "$wxUSE_MAC" = 1; then
156b2523 20300 echo "configure: warning: Popup window not yet supported under Mac OS X... disabled" 1>&2
6abe4b65 20301 else
485cf710
VZ
20302 if test "$wxUSE_MOTIF" = 1; then
20303 echo "configure: warning: wxPopupWindow not yet supported under Motif... disabled" 1>&2
20304 else
3c011993
VZ
20305 if test "$wxUSE_PM" = 1; then
20306 echo "configure: warning: wxPopupWindow not yet supported under PM... disabled" 1>&2
20307 else
20308 cat >> confdefs.h <<\EOF
9f41d601
RR
20309#define wxUSE_POPUPWIN 1
20310EOF
20311
9926e4a4 20312
3c011993
VZ
20313 USES_CONTROLS=1
20314 fi
485cf710 20315 fi
6abe4b65 20316 fi
9f41d601
RR
20317fi
20318
dd964dcc 20319if test "$wxUSE_TIPWINDOW" = "yes"; then
3c011993
VZ
20320 if test "$wxUSE_PM" = 1; then
20321 echo "configure: warning: wxTipWindow not yet supported under PM... disabled" 1>&2
20322 else
20323 cat >> confdefs.h <<\EOF
dd964dcc
VZ
20324#define wxUSE_TIPWINDOW 1
20325EOF
20326
3c011993 20327 fi
dd964dcc
VZ
20328fi
20329
1e6feb95
VZ
20330if test "$USES_CONTROLS" = 1; then
20331 cat >> confdefs.h <<\EOF
20332#define wxUSE_CONTROLS 1
10f2d63a
VZ
20333EOF
20334
10f2d63a
VZ
20335fi
20336
1e6feb95 20337
24176f2c
GD
20338if test "$wxUSE_TREELAYOUT" = "yes"; then
20339 cat >> confdefs.h <<\EOF
20340#define wxUSE_TREELAYOUT 1
20341EOF
20342
20343 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treelay"
20344fi
1e6feb95 20345
24fd6d87
VZ
20346if test "$wxUSE_DRAGIMAGE" = "yes"; then
20347 cat >> confdefs.h <<\EOF
20348#define wxUSE_DRAGIMAGE 1
20349EOF
20350
20351 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag"
20352fi
20353
1e6feb95 20354if test "$wxUSE_MENUS" = "yes"; then
698dcdb6 20355 cat >> confdefs.h <<\EOF
1e6feb95 20356#define wxUSE_MENUS 1
10f2d63a
VZ
20357EOF
20358
1e6feb95 20359 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu"
10f2d63a
VZ
20360fi
20361
1e6feb95
VZ
20362if test "$wxUSE_METAFILE" = "yes"; then
20363 cat >> confdefs.h <<\EOF
20364#define wxUSE_METAFILE 1
10f2d63a
VZ
20365EOF
20366
10f2d63a
VZ
20367fi
20368
1e6feb95
VZ
20369if test "$wxUSE_MIMETYPE" = "yes"; then
20370 cat >> confdefs.h <<\EOF
20371#define wxUSE_MIMETYPE 1
10f2d63a
VZ
20372EOF
20373
10f2d63a
VZ
20374fi
20375
3e44f09d
VZ
20376if test "$wxUSE_SYSTEM_OPTIONS" = "yes"; then
20377 cat >> confdefs.h <<\EOF
20378#define wxUSE_SYSTEM_OPTIONS 1
20379EOF
20380
321d2b14
VZ
20381if test "$TOOLKIT" = "MSW"; then
20382 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS taskbar"
20383fi
20384
3e44f09d
VZ
20385fi
20386
4cdb0ab0 20387if test "$wxUSE_PROTOCOL" = "yes"; then
3954f9ca
VS
20388 if test "$wxUSE_SOCKETS" != "yes"; then
20389 echo "configure: warning: Protocol classes require sockets... disabled" 1>&2
20390 wxUSE_PROTOCOL=no
20391 fi
20392
20393 if test "$wxUSE_PROTOCOL" = "yes"; then
20394 cat >> confdefs.h <<\EOF
4cdb0ab0
VS
20395#define wxUSE_PROTOCOL 1
20396EOF
20397
20398
3954f9ca
VS
20399 if test "$wxUSE_PROTOCOL_HTTP" = "yes"; then
20400 cat >> confdefs.h <<\EOF
4cdb0ab0
VS
20401#define wxUSE_PROTOCOL_HTTP 1
20402EOF
20403
3954f9ca
VS
20404 fi
20405 if test "$wxUSE_PROTOCOL_FTP" = "yes"; then
20406 cat >> confdefs.h <<\EOF
4cdb0ab0
VS
20407#define wxUSE_PROTOCOL_FTP 1
20408EOF
20409
3954f9ca
VS
20410 fi
20411 if test "$wxUSE_PROTOCOL_FILE" = "yes"; then
20412 cat >> confdefs.h <<\EOF
20413#define wxUSE_PROTOCOL_FILE 1
20414EOF
20415
20416 fi
4cdb0ab0 20417 fi
3954f9ca
VS
20418fi
20419
20420if test "$wxUSE_URL" = "yes"; then
20421 if test "$wxUSE_PROTOCOL" != "yes"; then
20422 echo "configure: warning: wxURL class requires wxProtocol... disabled" 1>&2
20423 wxUSE_URL=no
20424 fi
20425 if test "$wxUSE_URL" = "yes"; then
4cdb0ab0 20426 cat >> confdefs.h <<\EOF
3954f9ca 20427#define wxUSE_URL 1
4cdb0ab0
VS
20428EOF
20429
20430 fi
20431fi
20432
10f2d63a 20433if test "$wxUSE_MINIFRAME" = "yes"; then
698dcdb6 20434 cat >> confdefs.h <<\EOF
10f2d63a
VZ
20435#define wxUSE_MINIFRAME 1
20436EOF
20437
20438 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram"
20439fi
20440
20441if test "$wxUSE_HTML" = "yes"; then
698dcdb6 20442 cat >> confdefs.h <<\EOF
10f2d63a
VZ
20443#define wxUSE_HTML 1
20444EOF
20445
20446 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html"
10f2d63a
VZ
20447fi
20448
20449if test "$wxUSE_VALIDATORS" = "yes"; then
698dcdb6 20450 cat >> confdefs.h <<\EOF
1e487827
VS
20451#define wxUSE_VALIDATORS 1
20452EOF
703e0a69 20453
698dcdb6
VZ
20454 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate"
20455fi
20456
edae8572
VZ
20457if test "$wxUSE_PALETTE" = "yes" ; then
20458 cat >> confdefs.h <<\EOF
20459#define wxUSE_PALETTE 1
20460EOF
20461
20462fi
20463
698dcdb6
VZ
20464if test "$wxUSE_IMAGE" = "yes" ; then
20465 cat >> confdefs.h <<\EOF
20466#define wxUSE_IMAGE 1
20467EOF
20468
20469fi
20470
20471if test "$wxUSE_GIF" = "yes" ; then
20472 cat >> confdefs.h <<\EOF
20473#define wxUSE_GIF 1
20474EOF
20475
20476fi
20477
20478if test "$wxUSE_PCX" = "yes" ; then
20479 cat >> confdefs.h <<\EOF
20480#define wxUSE_PCX 1
20481EOF
20482
20483fi
20484
4b6b4dfc
RR
20485if test "$wxUSE_IFF" = "yes" ; then
20486 cat >> confdefs.h <<\EOF
20487#define wxUSE_IFF 1
20488EOF
20489
20490fi
20491
698dcdb6
VZ
20492if test "$wxUSE_PNM" = "yes" ; then
20493 cat >> confdefs.h <<\EOF
20494#define wxUSE_PNM 1
20495EOF
20496
20497fi
20498
20499if test "$wxUSE_XPM" = "yes" ; then
20500 cat >> confdefs.h <<\EOF
20501#define wxUSE_XPM 1
20502EOF
20503
20504fi
20505
658974ae
VS
20506if test "$wxUSE_ICO_CUR" = "yes" ; then
20507 cat >> confdefs.h <<\EOF
20508#define wxUSE_ICO_CUR 1
20509EOF
20510
20511fi
20512
a72a4bfa
VS
20513if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_MSLU" = "yes" ; then
20514 LIBS=" -lunicows $LIBS"
20515fi
20516
698dcdb6 20517
1e6feb95
VZ
20518if test "$wxUSE_CHOICEDLG" = "yes"; then
20519 cat >> confdefs.h <<\EOF
20520#define wxUSE_CHOICEDLG 1
20521EOF
20522
20523fi
20524
20525if test "$wxUSE_COLOURDLG" = "yes"; then
20526 cat >> confdefs.h <<\EOF
20527#define wxUSE_COLOURDLG 1
20528EOF
20529
20530fi
20531
20532if test "$wxUSE_FILEDLG" = "yes"; then
20533 cat >> confdefs.h <<\EOF
20534#define wxUSE_FILEDLG 1
20535EOF
20536
20537fi
20538
8db37e06
VZ
20539if test "$wxUSE_FINDREPLDLG" = "yes"; then
20540 cat >> confdefs.h <<\EOF
20541#define wxUSE_FINDREPLDLG 1
20542EOF
20543
20544fi
20545
1e6feb95
VZ
20546if test "$wxUSE_FONTDLG" = "yes"; then
20547 cat >> confdefs.h <<\EOF
20548#define wxUSE_FONTDLG 1
20549EOF
20550
20551fi
20552
20553if test "$wxUSE_DIRDLG" = "yes"; then
ae1daed0
JS
20554 if test "$wxUSE_TREECTRL" != "yes"; then
20555 echo "configure: warning: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" 1>&2
1e6feb95 20556 else
ae1daed0 20557 cat >> confdefs.h <<\EOF
1e6feb95
VZ
20558#define wxUSE_DIRDLG 1
20559EOF
20560
1e6feb95
VZ
20561 fi
20562fi
20563
20564if test "$wxUSE_MSGDLG" = "yes"; then
20565 cat >> confdefs.h <<\EOF
20566#define wxUSE_MSGDLG 1
20567EOF
20568
20569fi
20570
20571if test "$wxUSE_NUMBERDLG" = "yes"; then
20572 cat >> confdefs.h <<\EOF
20573#define wxUSE_NUMBERDLG 1
20574EOF
20575
20576fi
20577
20578if test "$wxUSE_PROGRESSDLG" = "yes"; then
20579 if test "$wxUSE_CONSTRAINTS" != "yes"; then
20580 echo "configure: warning: wxProgressDialog requires constraints so it won't be compiled without them" 1>&2
20581 else
20582 cat >> confdefs.h <<\EOF
20583#define wxUSE_PROGRESSDLG 1
20584EOF
20585
20586 fi
20587fi
20588
cbca9943
VZ
20589if test "$wxUSE_SPLASH" = "yes"; then
20590 cat >> confdefs.h <<\EOF
20591#define wxUSE_SPLASH 1
20592EOF
20593
20594fi
20595
1e6feb95
VZ
20596if test "$wxUSE_STARTUP_TIPS" = "yes"; then
20597 if test "$wxUSE_CONSTRAINTS" != "yes"; then
20598 echo "configure: warning: Startup tips requires constraints and won't be compiled without them" 1>&2
20599 else
20600 cat >> confdefs.h <<\EOF
20601#define wxUSE_STARTUP_TIPS 1
20602EOF
20603
20604 fi
20605fi
20606
20607if test "$wxUSE_TEXTDLG" = "yes"; then
20608 cat >> confdefs.h <<\EOF
20609#define wxUSE_TEXTDLG 1
20610EOF
20611
20612fi
20613
b1f5d087
VZ
20614if test "$wxUSE_WIZARDDLG" = "yes"; then
20615 cat >> confdefs.h <<\EOF
20616#define wxUSE_WIZARDDLG 1
20617EOF
20618
20619 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wizard"
20620fi
20621
1e6feb95 20622
698dcdb6
VZ
20623if test "$cross_compiling" = "yes"; then
20624 OSINFO="\"$host\""
20625else
20626 OSINFO=`uname -s -r -m`
20627 OSINFO="\"$OSINFO\""
20628fi
20629
20630cat >> confdefs.h <<EOF
20631#define WXWIN_OS_DESCRIPTION $OSINFO
20632EOF
20633
20634
20635
06dda230
VZ
20636if test "x$prefix" != "xNONE"; then
20637 wxPREFIX=$prefix
20638else
20639 wxPREFIX=$ac_default_prefix
20640fi
20641
7e67ed0d 20642cat >> confdefs.h <<EOF
06dda230 20643#define wxINSTALL_PREFIX "$wxPREFIX"
7e67ed0d
VZ
20644EOF
20645
20646
20647
698dcdb6 20648
3a922bb4 20649
f11bdd03 20650if test "$wxUSE_MAC" = 1 ; then
3d63bc3a 20651 LDFLAGS="$LDFLAGS -framework Carbon -framework System"
698dcdb6 20652fi
3a922bb4 20653
3d63bc3a 20654
009fead0 20655LIBS="$ZLIB_LINK $POSIX4_LINK $INET_LINK $WCHAR_LINK $DL_LINK -lm $LIBS"
3d63bc3a 20656
698dcdb6 20657if test "$wxUSE_GUI" = "yes"; then
3d63bc3a 20658
cb61c62d 20659 LIBS="$GUI_TK_LIBRARY $PNG_LINK $JPEG_LINK $TIFF_LINK $LIBS"
3a922bb4
RL
20660
20661
867a54b6 20662 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS artprov controls dialogs \
3a922bb4
RL
20663 drawing dynamic erase event exec font image \
20664 minimal richedit rotate widgets"
20665
3a922bb4
RL
20666 CPPFLAGS="$CPPFLAGS \$(EXTRADEFS) \$(APPEXTRADEFS)"
20667else
20668 SAMPLES_SUBDIRS="console"
698dcdb6
VZ
20669fi
20670
698dcdb6 20671
57973b9c
VZ
20672INCLUDES="-I\${top_builddir}/lib/wx/include/${TOOLCHAIN_NAME} \
20673-I\${top_srcdir}/include \
20674$REGEX_INCLUDE $ZLIB_INCLUDE $PNG_INCLUDE $JPEG_INCLUDE $TIFF_INCLUDE \
20675$TOOLKIT_INCLUDE"
698dcdb6 20676
63e7762e 20677if test "$wxUSE_GTK" = 1; then
3d63bc3a 20678 WXCONFIG_INCLUDE=
698dcdb6
VZ
20679else
20680 WXCONFIG_INCLUDE="$TOOLKIT_INCLUDE"
20681fi
20682
20683if test "$GXX" = yes ; then
20684 CXXWARNINGS="-Wall"
88e30f2b
RL
20685
20686 if test "$wxUSE_NO_DEPS" = "no" ; then
20687 CFLAGS="-MMD $CFLAGS"
20688 CXXFLAGS="-MMD $CXXFLAGS"
20689 fi
20690fi
20691
1725144d 20692EXTRA_CFLAGS="$WXDEBUG $WXODBCFLAG $PROFILE $OPTIMISE $INCLUDES"
698dcdb6
VZ
20693
20694CFLAGS=`echo $CFLAGS $EXTRA_CFLAGS $CXXWARNINGS | sed 's/ \\+/ /g'`
20695CXXFLAGS=`echo $CXXFLAGS $EXTRA_CFLAGS $CXXWARNINGS | sed 's/ \+/ /g'`
fe5a9cab 20696LIBS=`echo $LIBS | sed 's/ \+/ /g'`
698dcdb6 20697
fe5a9cab 20698LDFLAGS="$LDFLAGS $PROFILE"
698dcdb6 20699
698dcdb6
VZ
20700SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`"
20701
20702
20703
20704
20705
20706
20707
20708
20709
20710
20711
20712
20713
20714
20715
20716
20717
20718
20719
20720
20721
20722
20723
20724
20725
20726
20727
20728
20729
20730
20731
20732
20733
20734
20735
20736
20737
20738
20739
20740
20741
20742
20743
20744
20745
20746
20747
20748
20749
20750
20751
20752
20753
20754
20755
20756
20757
20758
20759
20760
20761
20762
20763
20764
20765
20766
20767
32832908 20768
2f51a9ec
GD
20769
20770
20771
20772
f6bcfd97 20773
dad6c0ea 20774
caa2c79b 20775
3711412e 20776
1e6feb95
VZ
20777
20778
885d4bf5
VS
20779
20780
20781
20782
9b695262
VZ
20783
20784
62d0491b 20785
ef7f2189 20786
40f7145c 20787
10f2d63a
VZ
20788
20789
698dcdb6 20790echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
986ecc86 20791echo "configure:20792: checking whether ${MAKE-make} sets \${MAKE}" >&5
698dcdb6
VZ
20792set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
20793if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
20794 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 20795else
698dcdb6 20796 cat > conftestmake <<\EOF
10f2d63a
VZ
20797all:
20798 @echo 'ac_maketemp="${MAKE}"'
20799EOF
20800# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
698dcdb6 20801eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
10f2d63a
VZ
20802if test -n "$ac_maketemp"; then
20803 eval ac_cv_prog_make_${ac_make}_set=yes
20804else
20805 eval ac_cv_prog_make_${ac_make}_set=no
20806fi
698dcdb6 20807rm -f conftestmake
10f2d63a
VZ
20808fi
20809if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
698dcdb6 20810 echo "$ac_t""yes" 1>&6
10f2d63a
VZ
20811 SET_MAKE=
20812else
698dcdb6 20813 echo "$ac_t""no" 1>&6
10f2d63a
VZ
20814 SET_MAKE="MAKE=${MAKE-make}"
20815fi
20816
698dcdb6 20817
3a922bb4
RL
20818if test -f lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h; then
20819 mv -f lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h setup.h
00cf1208 20820fi
665bbe97 20821
698dcdb6 20822
10f2d63a 20823
57973b9c
VZ
20824wx_cv_path_samplesubdirs=$SAMPLES_SUBDIRS
20825wx_cv_if_gnu_make=$IF_GNU_MAKE
20826wx_cv_path_ifs=$PATH_IFS
20827wx_cv_program_ext=$PROGRAM_EXT
20828wx_cv_target_library=$WX_TARGET_LIBRARY
20829wx_cv_target_library_gl=$WX_TARGET_LIBRARY_GL
20830wx_cv_target_libtype=$WX_TARGET_LIBRARY_TYPE
20831export wx_cv_path_samplesubdirs wx_cv_if_gnu_make \
20832 wx_cv_path_ifs wx_cv_program_ext \
20833 wx_cv_target_library wx_cv_target_library_gl wx_cv_target_libtype
20834
20835subdirs="demos samples utils contrib"
2224580a 20836
10f2d63a 20837
698dcdb6
VZ
20838trap '' 1 2 15
20839cat > confcache <<\EOF
10f2d63a
VZ
20840# This file is a shell script that caches the results of configure
20841# tests run on this system so they can be shared between configure
698dcdb6
VZ
20842# scripts and configure runs. It is not useful on other systems.
20843# If it contains results you don't want to keep, you may remove or edit it.
10f2d63a 20844#
698dcdb6
VZ
20845# By default, configure uses ./config.cache as the cache file,
20846# creating it if it does not exist already. You can give configure
20847# the --cache-file=FILE option to use a different cache file; that is
20848# what configure does when it calls configure scripts in
20849# subdirectories, so they share the cache.
20850# Giving --cache-file=/dev/null disables caching, for debugging configure.
20851# config.status only pays attention to the cache file if you give it the
20852# --recheck option to rerun configure.
10f2d63a 20853#
698dcdb6 20854EOF
10f2d63a
VZ
20855# The following way of writing the cache mishandles newlines in values,
20856# but we know of no workaround that is simple, portable, and efficient.
20857# So, don't put newlines in cache variables' values.
20858# Ultrix sh set writes to stderr and can't be redirected directly,
20859# and sets the high bit in the cache file unless we assign to the vars.
698dcdb6
VZ
20860(set) 2>&1 |
20861 case `(ac_space=' '; set | grep ac_space) 2>&1` in
20862 *ac_space=\ *)
20863 # `set' does not quote correctly, so add quotes (double-quote substitution
20864 # turns \\\\ into \\, and sed turns \\ into \).
20865 sed -n \
20866 -e "s/'/'\\\\''/g" \
20867 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
20868 ;;
20869 *)
20870 # `set' quotes correctly as required by POSIX, so do not add quotes.
20871 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
20872 ;;
20873 esac >> confcache
20874if cmp -s $cache_file confcache; then
20875 :
20876else
10f2d63a 20877 if test -w $cache_file; then
698dcdb6
VZ
20878 echo "updating cache $cache_file"
20879 cat confcache > $cache_file
10f2d63a
VZ
20880 else
20881 echo "not updating unwritable cache $cache_file"
20882 fi
20883fi
20884rm -f confcache
20885
698dcdb6
VZ
20886trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
20887
10f2d63a
VZ
20888test "x$prefix" = xNONE && prefix=$ac_default_prefix
20889# Let make expand exec_prefix.
20890test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20891
698dcdb6
VZ
20892# Any assignment to VPATH causes Sun make to only execute
20893# the first set of double-colon rules, so remove it if not needed.
20894# If there is a colon in the path, we need to keep it.
10f2d63a 20895if test "x$srcdir" = x.; then
698dcdb6 20896 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
10f2d63a
VZ
20897fi
20898
698dcdb6
VZ
20899trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
20900
10f2d63a
VZ
20901DEFS=-DHAVE_CONFIG_H
20902
698dcdb6 20903# Without the "./", some shells look in PATH for config.status.
10f2d63a 20904: ${CONFIG_STATUS=./config.status}
698dcdb6
VZ
20905
20906echo creating $CONFIG_STATUS
20907rm -f $CONFIG_STATUS
20908cat > $CONFIG_STATUS <<EOF
20909#! /bin/sh
10f2d63a
VZ
20910# Generated automatically by configure.
20911# Run this file to recreate the current configuration.
698dcdb6
VZ
20912# This directory was configured as follows,
20913# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20914#
20915# $0 $ac_configure_args
20916#
10f2d63a 20917# Compiler output produced by configure, useful for debugging
698dcdb6 20918# configure, is in ./config.log if it exists.
1e487827 20919
698dcdb6
VZ
20920ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
20921for ac_option
10f2d63a 20922do
698dcdb6 20923 case "\$ac_option" in
10f2d63a 20924 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
698dcdb6
VZ
20925 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
20926 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
20927 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
20928 echo "$CONFIG_STATUS generated by autoconf version 2.13"
20929 exit 0 ;;
20930 -help | --help | --hel | --he | --h)
20931 echo "\$ac_cs_usage"; exit 0 ;;
20932 *) echo "\$ac_cs_usage"; exit 1 ;;
10f2d63a
VZ
20933 esac
20934done
20935
698dcdb6
VZ
20936ac_given_srcdir=$srcdir
20937ac_given_INSTALL="$INSTALL"
703e0a69 20938
698dcdb6
VZ
20939trap 'rm -fr `echo "
20940 wx-config
20941 src/make.env
20942 src/makeprog.env
20943 src/makelib.env
20944 Makefile
20945 setup.h:setup.h.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
1e487827 20946EOF
698dcdb6 20947cat >> $CONFIG_STATUS <<EOF
1e487827 20948
698dcdb6
VZ
20949# Protect against being on the right side of a sed subst in config.status.
20950sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
20951 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
20952$ac_vpsub
20953$extrasub
20954s%@SHELL@%$SHELL%g
20955s%@CFLAGS@%$CFLAGS%g
20956s%@CPPFLAGS@%$CPPFLAGS%g
20957s%@CXXFLAGS@%$CXXFLAGS%g
20958s%@FFLAGS@%$FFLAGS%g
20959s%@DEFS@%$DEFS%g
20960s%@LDFLAGS@%$LDFLAGS%g
20961s%@LIBS@%$LIBS%g
20962s%@exec_prefix@%$exec_prefix%g
20963s%@prefix@%$prefix%g
20964s%@program_transform_name@%$program_transform_name%g
20965s%@bindir@%$bindir%g
20966s%@sbindir@%$sbindir%g
20967s%@libexecdir@%$libexecdir%g
20968s%@datadir@%$datadir%g
20969s%@sysconfdir@%$sysconfdir%g
20970s%@sharedstatedir@%$sharedstatedir%g
20971s%@localstatedir@%$localstatedir%g
20972s%@libdir@%$libdir%g
20973s%@includedir@%$includedir%g
20974s%@oldincludedir@%$oldincludedir%g
20975s%@infodir@%$infodir%g
20976s%@mandir@%$mandir%g
20977s%@host@%$host%g
20978s%@host_alias@%$host_alias%g
20979s%@host_cpu@%$host_cpu%g
20980s%@host_vendor@%$host_vendor%g
20981s%@host_os@%$host_os%g
20982s%@target@%$target%g
20983s%@target_alias@%$target_alias%g
20984s%@target_cpu@%$target_cpu%g
20985s%@target_vendor@%$target_vendor%g
20986s%@target_os@%$target_os%g
20987s%@build@%$build%g
20988s%@build_alias@%$build_alias%g
20989s%@build_cpu@%$build_cpu%g
20990s%@build_vendor@%$build_vendor%g
20991s%@build_os@%$build_os%g
20992s%@CC@%$CC%g
20993s%@CPP@%$CPP%g
20994s%@CXX@%$CXX%g
698dcdb6
VZ
20995s%@RANLIB@%$RANLIB%g
20996s%@AR@%$AR%g
20997s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
d6853540 20998s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
6054113a 20999s%@INSTALL_DATA@%$INSTALL_DATA%g
698dcdb6 21000s%@STRIP@%$STRIP%g
613d0995 21001s%@IF_GNU_MAKE@%$IF_GNU_MAKE%g
698dcdb6
VZ
21002s%@YACC@%$YACC%g
21003s%@LEX@%$LEX%g
21004s%@LEXLIB@%$LEXLIB%g
21005s%@LN_S@%$LN_S%g
90dd450c 21006s%@CXXCPP@%$CXXCPP%g
9e691f46 21007s%@PKG_CONFIG@%$PKG_CONFIG%g
698dcdb6
VZ
21008s%@GTK_CFLAGS@%$GTK_CFLAGS%g
21009s%@GTK_LIBS@%$GTK_LIBS%g
8168de4c 21010s%@GTK_CONFIG@%$GTK_CONFIG%g
698dcdb6
VZ
21011s%@X_CFLAGS@%$X_CFLAGS%g
21012s%@X_PRE_LIBS@%$X_PRE_LIBS%g
21013s%@X_LIBS@%$X_LIBS%g
21014s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
321d2b14 21015s%@AIX_CXX_LD@%$AIX_CXX_LD%g
3a922bb4 21016s%@RESCOMP@%$RESCOMP%g
698dcdb6 21017s%@DEREZ@%$DEREZ%g
b040e242 21018s%@LIBICONV@%$LIBICONV%g
698dcdb6
VZ
21019s%@LEX_STEM@%$LEX_STEM%g
21020s%@PATH_IFS@%$PATH_IFS%g
21021s%@WX_MAJOR_VERSION_NUMBER@%$WX_MAJOR_VERSION_NUMBER%g
21022s%@WX_MINOR_VERSION_NUMBER@%$WX_MINOR_VERSION_NUMBER%g
21023s%@WX_RELEASE_NUMBER@%$WX_RELEASE_NUMBER%g
698dcdb6
VZ
21024s%@WX_LIBRARY_NAME_STATIC@%$WX_LIBRARY_NAME_STATIC%g
21025s%@WX_LIBRARY_NAME_SHARED@%$WX_LIBRARY_NAME_SHARED%g
77e13408 21026s%@WX_LIBRARY_IMPORTLIB@%$WX_LIBRARY_IMPORTLIB%g
698dcdb6
VZ
21027s%@WX_TARGET_LIBRARY@%$WX_TARGET_LIBRARY%g
21028s%@WX_LIBRARY_LINK1@%$WX_LIBRARY_LINK1%g
21029s%@WX_LIBRARY_LINK2@%$WX_LIBRARY_LINK2%g
698dcdb6 21030s%@PROGRAM_EXT@%$PROGRAM_EXT%g
698dcdb6
VZ
21031s%@WX_LIBRARY_NAME_STATIC_GL@%$WX_LIBRARY_NAME_STATIC_GL%g
21032s%@WX_LIBRARY_NAME_SHARED_GL@%$WX_LIBRARY_NAME_SHARED_GL%g
698dcdb6
VZ
21033s%@WX_TARGET_LIBRARY_GL@%$WX_TARGET_LIBRARY_GL%g
21034s%@WX_LIBRARY_LINK1_GL@%$WX_LIBRARY_LINK1_GL%g
21035s%@WX_LIBRARY_LINK2_GL@%$WX_LIBRARY_LINK2_GL%g
698dcdb6
VZ
21036s%@WX_ALL@%$WX_ALL%g
21037s%@WX_ALL_INSTALLED@%$WX_ALL_INSTALLED%g
21038s%@SHARED_LD@%$SHARED_LD%g
21039s%@PIC_FLAG@%$PIC_FLAG%g
698dcdb6
VZ
21040s%@CODE_GEN_FLAGS@%$CODE_GEN_FLAGS%g
21041s%@CODE_GEN_FLAGS_CXX@%$CODE_GEN_FLAGS_CXX%g
3a922bb4
RL
21042s%@SONAME_FLAGS@%$SONAME_FLAGS%g
21043s%@SONAME_FLAGS_GL@%$SONAME_FLAGS_GL%g
698dcdb6
VZ
21044s%@WX_TARGET_LIBRARY_SONAME@%$WX_TARGET_LIBRARY_SONAME%g
21045s%@WX_TARGET_LIBRARY_TYPE@%$WX_TARGET_LIBRARY_TYPE%g
21046s%@WXDEBUG_DEFINE@%$WXDEBUG_DEFINE%g
21047s%@USE_GUI@%$USE_GUI%g
21048s%@AFMINSTALL@%$AFMINSTALL%g
21049s%@TOOLKIT@%$TOOLKIT%g
698dcdb6 21050s%@TOOLKIT_DIR@%$TOOLKIT_DIR%g
1e6feb95 21051s%@TOOLKIT_VPATH@%$TOOLKIT_VPATH%g
3a922bb4
RL
21052s%@TOOLCHAIN_NAME@%$TOOLCHAIN_NAME%g
21053s%@TOOLCHAIN_DEFS@%$TOOLCHAIN_DEFS%g
00c81359 21054s%@TOOLCHAIN_DLL_DEFS@%$TOOLCHAIN_DLL_DEFS%g
3a922bb4
RL
21055s%@cross_compiling@%$cross_compiling%g
21056s%@WXCONFIG_LIBS@%$WXCONFIG_LIBS%g
21057s%@WXCONFIG_LIBS_GL@%$WXCONFIG_LIBS_GL%g
885d4bf5
VS
21058s%@WXCONFIG_LIBS_STATIC@%$WXCONFIG_LIBS_STATIC%g
21059s%@WXCONFIG_LIBS_STATIC_GL@%$WXCONFIG_LIBS_STATIC_GL%g
698dcdb6
VZ
21060s%@WXCONFIG_INCLUDE@%$WXCONFIG_INCLUDE%g
21061s%@ALL_OBJECTS@%$ALL_OBJECTS%g
9b695262
VZ
21062s%@ALL_HEADERS@%$ALL_HEADERS%g
21063s%@ALL_SOURCES@%$ALL_SOURCES%g
698dcdb6
VZ
21064s%@GUIDIST@%$GUIDIST%g
21065s%@PORT_FILES@%$PORT_FILES%g
21066s%@DISTDIR@%$DISTDIR%g
698dcdb6 21067s%@SAMPLES_SUBDIRS@%$SAMPLES_SUBDIRS%g
62d0491b 21068s%@LDFLAGS_GL@%$LDFLAGS_GL%g
40f7145c 21069s%@LDFLAGS_EXE@%$LDFLAGS_EXE%g
698dcdb6 21070s%@OPENGL_LIBS@%$OPENGL_LIBS%g
3d63bc3a 21071s%@DMALLOC_LIBS@%$DMALLOC_LIBS%g
698dcdb6 21072s%@EXTRADEFS@%$EXTRADEFS%g
698dcdb6 21073s%@RESFLAGS@%$RESFLAGS%g
3a922bb4 21074s%@RESPROGRAMOBJ@%$RESPROGRAMOBJ%g
e95edd8d
GD
21075s%@WX_RESOURCES_MACOSX_ASCII@%$WX_RESOURCES_MACOSX_ASCII%g
21076s%@WX_RESOURCES_MACOSX_DATA@%$WX_RESOURCES_MACOSX_DATA%g
ef7f2189 21077s%@MACOSX_BUNDLE@%$MACOSX_BUNDLE%g
698dcdb6
VZ
21078s%@LIBWXMACRES@%$LIBWXMACRES%g
21079s%@LIBWXMACRESCOMP@%$LIBWXMACRESCOMP%g
2baaf735 21080s%@LIBWXMACRESWXCONFIG@%$LIBWXMACRESWXCONFIG%g
698dcdb6
VZ
21081s%@DLLTOOL@%$DLLTOOL%g
21082s%@AS@%$AS%g
21083s%@NM@%$NM%g
21084s%@LD@%$LD%g
21085s%@MAKEINFO@%$MAKEINFO%g
885d4bf5 21086s%@INSTALL_LIBRARY@%$INSTALL_LIBRARY%g
698dcdb6
VZ
21087s%@SET_MAKE@%$SET_MAKE%g
21088s%@subdirs@%$subdirs%g
1e487827 21089
1e487827 21090CEOF
1e487827
VS
21091EOF
21092
698dcdb6
VZ
21093cat >> $CONFIG_STATUS <<\EOF
21094
21095# Split the substitutions into bite-sized pieces for seds with
21096# small command number limits, like on Digital OSF/1 and HP-UX.
21097ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
21098ac_file=1 # Number of current file.
21099ac_beg=1 # First line for current file.
21100ac_end=$ac_max_sed_cmds # Line after last line for current file.
21101ac_more_lines=:
21102ac_sed_cmds=""
21103while $ac_more_lines; do
21104 if test $ac_beg -gt 1; then
21105 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
21106 else
21107 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
21108 fi
21109 if test ! -s conftest.s$ac_file; then
21110 ac_more_lines=false
21111 rm -f conftest.s$ac_file
21112 else
21113 if test -z "$ac_sed_cmds"; then
21114 ac_sed_cmds="sed -f conftest.s$ac_file"
10f2d63a 21115 else
698dcdb6 21116 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
10f2d63a 21117 fi
698dcdb6
VZ
21118 ac_file=`expr $ac_file + 1`
21119 ac_beg=$ac_end
21120 ac_end=`expr $ac_end + $ac_max_sed_cmds`
10f2d63a 21121 fi
698dcdb6
VZ
21122done
21123if test -z "$ac_sed_cmds"; then
21124 ac_sed_cmds=cat
21125fi
21126EOF
10f2d63a 21127
698dcdb6
VZ
21128cat >> $CONFIG_STATUS <<EOF
21129
21130CONFIG_FILES=\${CONFIG_FILES-"wx-config
21131 src/make.env
21132 src/makeprog.env
21133 src/makelib.env
21134 Makefile
21135 "}
10f2d63a 21136EOF
698dcdb6
VZ
21137cat >> $CONFIG_STATUS <<\EOF
21138for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
10f2d63a 21139 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
698dcdb6
VZ
21140 case "$ac_file" in
21141 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
21142 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
21143 *) ac_file_in="${ac_file}.in" ;;
10f2d63a
VZ
21144 esac
21145
698dcdb6 21146 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
1e487827 21147
698dcdb6
VZ
21148 # Remove last slash and all that follows it. Not all systems have dirname.
21149 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
21150 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
21151 # The file is in a subdirectory.
21152 test ! -d "$ac_dir" && mkdir "$ac_dir"
21153 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
10f2d63a 21154 # A "../" for each directory in $ac_dir_suffix.
698dcdb6 21155 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
10f2d63a
VZ
21156 else
21157 ac_dir_suffix= ac_dots=
21158 fi
21159
698dcdb6
VZ
21160 case "$ac_given_srcdir" in
21161 .) srcdir=.
21162 if test -z "$ac_dots"; then top_srcdir=.
21163 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
21164 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
10f2d63a 21165 *) # Relative path.
698dcdb6
VZ
21166 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
21167 top_srcdir="$ac_dots$ac_given_srcdir" ;;
10f2d63a
VZ
21168 esac
21169
698dcdb6
VZ
21170 case "$ac_given_INSTALL" in
21171 [/$]*) INSTALL="$ac_given_INSTALL" ;;
21172 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
10f2d63a
VZ
21173 esac
21174
698dcdb6
VZ
21175 echo creating "$ac_file"
21176 rm -f "$ac_file"
21177 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
21178 case "$ac_file" in
21179 *Makefile*) ac_comsub="1i\\
21180# $configure_input" ;;
21181 *) ac_comsub= ;;
21182 esac
10f2d63a 21183
698dcdb6
VZ
21184 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
21185 sed -e "$ac_comsub
21186s%@configure_input@%$configure_input%g
21187s%@srcdir@%$srcdir%g
21188s%@top_srcdir@%$top_srcdir%g
21189s%@INSTALL@%$INSTALL%g
21190" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
21191fi; done
21192rm -f conftest.s*
10f2d63a
VZ
21193
21194# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
21195# NAME is the cpp macro being defined and VALUE is the value it is being given.
21196#
21197# ac_d sets the value in "#define NAME VALUE" lines.
698dcdb6
VZ
21198ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
21199ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
21200ac_dC='\3'
21201ac_dD='%g'
21202# ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
21203ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
21204ac_uB='\([ ]\)%\1#\2define\3'
10f2d63a 21205ac_uC=' '
698dcdb6
VZ
21206ac_uD='\4%g'
21207# ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
21208ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
21209ac_eB='$%\1#\2define\3'
21210ac_eC=' '
21211ac_eD='%g'
10f2d63a 21212
698dcdb6
VZ
21213if test "${CONFIG_HEADERS+set}" != set; then
21214EOF
21215cat >> $CONFIG_STATUS <<EOF
21216 CONFIG_HEADERS="setup.h:setup.h.in"
21217EOF
21218cat >> $CONFIG_STATUS <<\EOF
21219fi
21220for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
10f2d63a 21221 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
698dcdb6
VZ
21222 case "$ac_file" in
21223 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
21224 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
21225 *) ac_file_in="${ac_file}.in" ;;
10f2d63a
VZ
21226 esac
21227
698dcdb6
VZ
21228 echo creating $ac_file
21229
21230 rm -f conftest.frag conftest.in conftest.out
21231 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
21232 cat $ac_file_inputs > conftest.in
21233
21234EOF
21235
21236# Transform confdefs.h into a sed script conftest.vals that substitutes
21237# the proper values into config.h.in to produce config.h. And first:
21238# Protect against being on the right side of a sed subst in config.status.
21239# Protect against being in an unquoted here document in config.status.
21240rm -f conftest.vals
21241cat > conftest.hdr <<\EOF
21242s/[\\&%]/\\&/g
21243s%[\\$`]%\\&%g
21244s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
21245s%ac_d%ac_u%gp
21246s%ac_u%ac_e%gp
21247EOF
21248sed -n -f conftest.hdr confdefs.h > conftest.vals
21249rm -f conftest.hdr
10f2d63a
VZ
21250
21251# This sed command replaces #undef with comments. This is necessary, for
21252# example, in the case of _POSIX_SOURCE, which is predefined and required
21253# on some systems where configure will not decide to define it.
698dcdb6
VZ
21254cat >> conftest.vals <<\EOF
21255s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
10f2d63a
VZ
21256EOF
21257
698dcdb6
VZ
21258# Break up conftest.vals because some shells have a limit on
21259# the size of here documents, and old seds have small limits too.
10f2d63a
VZ
21260
21261rm -f conftest.tail
698dcdb6 21262while :
10f2d63a 21263do
698dcdb6
VZ
21264 ac_lines=`grep -c . conftest.vals`
21265 # grep -c gives empty output for an empty file on some AIX systems.
21266 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
21267 # Write a limited-size here document to conftest.frag.
21268 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
21269 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
10f2d63a 21270 echo 'CEOF
698dcdb6
VZ
21271 sed -f conftest.frag conftest.in > conftest.out
21272 rm -f conftest.in
21273 mv conftest.out conftest.in
21274' >> $CONFIG_STATUS
21275 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
21276 rm -f conftest.vals
21277 mv conftest.tail conftest.vals
10f2d63a 21278done
698dcdb6
VZ
21279rm -f conftest.vals
21280
21281cat >> $CONFIG_STATUS <<\EOF
21282 rm -f conftest.frag conftest.h
21283 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
21284 cat conftest.in >> conftest.h
21285 rm -f conftest.in
21286 if cmp -s $ac_file conftest.h 2>/dev/null; then
21287 echo "$ac_file is unchanged"
21288 rm -f conftest.h
10f2d63a 21289 else
698dcdb6
VZ
21290 # Remove last slash and all that follows it. Not all systems have dirname.
21291 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
10f2d63a 21292 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
698dcdb6
VZ
21293 # The file is in a subdirectory.
21294 test ! -d "$ac_dir" && mkdir "$ac_dir"
10f2d63a 21295 fi
698dcdb6
VZ
21296 rm -f $ac_file
21297 mv conftest.h $ac_file
10f2d63a 21298 fi
698dcdb6
VZ
21299fi; done
21300
10f2d63a 21301EOF
698dcdb6 21302cat >> $CONFIG_STATUS <<EOF
10f2d63a 21303
3a922bb4 21304 TOOLCHAIN_NAME="${TOOLCHAIN_NAME}"
698dcdb6
VZ
21305 LN_S="${LN_S}"
21306
21307
21308EOF
21309cat >> $CONFIG_STATUS <<\EOF
10f2d63a 21310
652d930d 21311 if test ! -h wx-config; then
991a5759 21312 chmod +x wx-config
3a922bb4
RL
21313 mv wx-config wx${TOOLCHAIN_NAME}-config
21314 ${LN_S} wx${TOOLCHAIN_NAME}-config wx-config
991a5759 21315 fi
665bbe97 21316
00cf1208
RR
21317 if test ! -d lib; then
21318 mkdir lib
21319 fi
21320 if test ! -d lib/wx; then
21321 mkdir lib/wx
21322 fi
21323 if test ! -d lib/wx/include; then
21324 mkdir lib/wx/include
21325 fi
3a922bb4
RL
21326 if test ! -d lib/wx/include/${TOOLCHAIN_NAME}; then
21327 mkdir lib/wx/include/${TOOLCHAIN_NAME}
00cf1208 21328 fi
3a922bb4
RL
21329 if test ! -d lib/wx/include/${TOOLCHAIN_NAME}/wx; then
21330 mkdir lib/wx/include/${TOOLCHAIN_NAME}/wx
00cf1208
RR
21331 fi
21332 if test -f setup.h; then
3a922bb4 21333 mv -f setup.h lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h
00cf1208 21334 fi
698dcdb6
VZ
21335
21336exit 0
10f2d63a
VZ
21337EOF
21338chmod +x $CONFIG_STATUS
698dcdb6
VZ
21339rm -fr confdefs* $ac_clean_files
21340test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
10f2d63a 21341
2224580a
VZ
21342if test "$no_recursion" != yes; then
21343
21344 # Remove --cache-file and --srcdir arguments so they do not pile up.
21345 ac_sub_configure_args=
21346 ac_prev=
21347 for ac_arg in $ac_configure_args; do
21348 if test -n "$ac_prev"; then
21349 ac_prev=
21350 continue
21351 fi
698dcdb6 21352 case "$ac_arg" in
2224580a
VZ
21353 -cache-file | --cache-file | --cache-fil | --cache-fi \
21354 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
21355 ac_prev=cache_file ;;
21356 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
698dcdb6 21357 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
2224580a
VZ
21358 ;;
21359 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
21360 ac_prev=srcdir ;;
21361 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
21362 ;;
21363 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
21364 esac
21365 done
21366
8f4a9a10 21367 for ac_config_dir in demos samples utils contrib; do
2224580a
VZ
21368
21369 # Do not complain, so a configure script can configure whichever
21370 # parts of a large source tree are present.
698dcdb6
VZ
21371 if test ! -d $srcdir/$ac_config_dir; then
21372 continue
21373 fi
21374
21375 echo configuring in $ac_config_dir
2224580a 21376
698dcdb6 21377 case "$srcdir" in
2224580a
VZ
21378 .) ;;
21379 *)
698dcdb6
VZ
21380 if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
21381 else
21382 { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
21383 fi
21384 ;;
2224580a
VZ
21385 esac
21386
21387 ac_popdir=`pwd`
698dcdb6 21388 cd $ac_config_dir
2224580a 21389
698dcdb6
VZ
21390 # A "../" for each directory in /$ac_config_dir.
21391 ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
2224580a 21392
698dcdb6 21393 case "$srcdir" in
2224580a
VZ
21394 .) # No --srcdir option. We are building in place.
21395 ac_sub_srcdir=$srcdir ;;
698dcdb6
VZ
21396 /*) # Absolute path.
21397 ac_sub_srcdir=$srcdir/$ac_config_dir ;;
2224580a 21398 *) # Relative path.
698dcdb6 21399 ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
2224580a
VZ
21400 esac
21401
21402 # Check for guested configure; otherwise get Cygnus style configure.
698dcdb6
VZ
21403 if test -f $ac_sub_srcdir/configure; then
21404 ac_sub_configure=$ac_sub_srcdir/configure
2224580a
VZ
21405 elif test -f $ac_sub_srcdir/configure.in; then
21406 ac_sub_configure=$ac_configure
21407 else
698dcdb6 21408 echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
2224580a
VZ
21409 ac_sub_configure=
21410 fi
21411
21412 # The recursion is here.
21413 if test -n "$ac_sub_configure"; then
698dcdb6 21414
2224580a 21415 # Make the cache file name correct relative to the subdirectory.
698dcdb6
VZ
21416 case "$cache_file" in
21417 /*) ac_sub_cache_file=$cache_file ;;
2224580a 21418 *) # Relative path.
698dcdb6 21419 ac_sub_cache_file="$ac_dots$cache_file" ;;
2224580a 21420 esac
698dcdb6
VZ
21421 case "$ac_given_INSTALL" in
21422 [/$]*) INSTALL="$ac_given_INSTALL" ;;
21423 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
21424 esac
2224580a 21425
698dcdb6 21426 echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
2224580a 21427 # The eval makes quoting arguments work.
698dcdb6
VZ
21428 if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
21429 then :
21430 else
21431 { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }
21432 fi
2224580a
VZ
21433 fi
21434
21435 cd $ac_popdir
21436 done
21437fi
21438
698dcdb6 21439