]> git.saurik.com Git - wxWidgets.git/blame - configure
Compile fix.
[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"
3bd8fb5f
RD
156ac_help="$ac_help
157 --enable-rpath=DIR output the rpath flag from wx-config"
698dcdb6 158ac_help="$ac_help
8168de4c 159 --enable-intl use internationalization system"
698dcdb6 160ac_help="$ac_help
8168de4c 161 --enable-config use wxConfig (and derived) classes"
a1622950
VZ
162ac_help="$ac_help
163 --enable-protocols use wxProtocol and derived classes"
164ac_help="$ac_help
165 --enable-ftp use wxFTP (requires wxProtocol"
166ac_help="$ac_help
167 --enable-http use wxHTTP (requires wxProtocol"
168ac_help="$ac_help
169 --enable-fileproto use wxFileProto class (requires wxProtocol"
698dcdb6 170ac_help="$ac_help
8168de4c 171 --enable-sockets use socket/network classes"
698dcdb6 172ac_help="$ac_help
8168de4c 173 --enable-ipc use interprocess communication (wxSocket etc.)"
698dcdb6 174ac_help="$ac_help
8168de4c 175 --enable-cmdline use wxCmdLineParser class"
1e6feb95 176ac_help="$ac_help
8168de4c 177 --enable-datetime use wxDateTime class"
1e6feb95 178ac_help="$ac_help
8168de4c 179 --enable-timedate use obsolete wxDate/wxTime classes"
1e6feb95 180ac_help="$ac_help
8168de4c 181 --enable-stopwatch use wxStopWatch class"
1e6feb95 182ac_help="$ac_help
8168de4c 183 --enable-dialupman use dialup network classes"
698dcdb6 184ac_help="$ac_help
8168de4c 185 --enable-apple_ieee use the Apple IEEE codec"
698dcdb6 186ac_help="$ac_help
8168de4c 187 --enable-timer use wxTimer class"
698dcdb6 188ac_help="$ac_help
8168de4c 189 --enable-wave use wxWave class"
698dcdb6 190ac_help="$ac_help
8168de4c 191 --enable-fraction use wxFraction class"
698dcdb6 192ac_help="$ac_help
8168de4c 193 --enable-dynlib use wxLibrary class for DLL loading"
0b9ab0bd
RL
194ac_help="$ac_help
195 --enable-dynamicloader use (new) wxDynamicLibrary class"
698dcdb6 196ac_help="$ac_help
8168de4c 197 --enable-longlong use wxLongLong class"
698dcdb6 198ac_help="$ac_help
8168de4c 199 --enable-geometry use geometry class"
698dcdb6 200ac_help="$ac_help
8168de4c 201 --enable-log use logging system"
698dcdb6 202ac_help="$ac_help
8168de4c 203 --enable-streams use wxStream etc classes"
698dcdb6 204ac_help="$ac_help
8168de4c 205 --enable-file use wxFile classes"
698dcdb6 206ac_help="$ac_help
8168de4c 207 --enable-ffile use wxFFile classes"
1e6feb95 208ac_help="$ac_help
a3a584a7
VZ
209 --enable-textbuf use wxTextBuffer class"
210ac_help="$ac_help
211 --enable-textfile use wxTextFile class"
698dcdb6 212ac_help="$ac_help
8168de4c 213 --enable-fontmap use font encodings conversion classes"
1e6feb95 214ac_help="$ac_help
8168de4c 215 --enable-unicode compile wxString with Unicode support"
a72a4bfa
VS
216ac_help="$ac_help
217 --enable-mslu use MS Layer for Unicode on Windows 9x (win32 only)"
698dcdb6 218ac_help="$ac_help
8168de4c 219 --enable-wxprintfv use wxWindows implementation of vprintf()"
698dcdb6 220ac_help="$ac_help
8168de4c 221 --enable-std_iostreams use standard C++ stream classes"
698dcdb6 222ac_help="$ac_help
8168de4c 223 --enable-filesystem use virtual file systems classes"
698dcdb6 224ac_help="$ac_help
8168de4c 225 --enable-fs_inet use virtual HTTP/FTP filesystems"
698dcdb6 226ac_help="$ac_help
8168de4c 227 --enable-fs_zip use virtual ZIP filesystems"
698dcdb6 228ac_help="$ac_help
8168de4c 229 --enable-zipstream use wxZipInputStream"
698dcdb6 230ac_help="$ac_help
8168de4c 231 --enable-catch_segvs catch signals and pass them to wxApp::OnFatalException"
698dcdb6 232ac_help="$ac_help
8168de4c 233 --enable-snglinst use wxSingleInstanceChecker class"
698dcdb6 234ac_help="$ac_help
69d27ff7 235 --enable-mimetype use wxMimeTypesManager"
3e44f09d 236ac_help="$ac_help
b3e8d00a 237 --enable-sysoptions use wxSystemOptions"
4cdb0ab0
VS
238ac_help="$ac_help
239 --enable-url use wxURL class"
240ac_help="$ac_help
241 --enable-protocol use wxProtocol class"
242ac_help="$ac_help
243 --enable-protocol-http HTTP support in wxProtocol"
244ac_help="$ac_help
245 --enable-protocol-ftp FTP support in wxProtocol"
246ac_help="$ac_help
247 --enable-protocol-file FILE support in wxProtocol"
1e6feb95 248ac_help="$ac_help
8168de4c 249 --enable-threads use threads"
698dcdb6 250ac_help="$ac_help
8168de4c 251 --enable-docview use document view architecture"
698dcdb6 252ac_help="$ac_help
3379ed37 253 --enable-help use help subsystem"
29fd3c0c
VS
254ac_help="$ac_help
255 --enable-mshtmlhelp use MS HTML Help (win32)"
3379ed37
VZ
256ac_help="$ac_help
257 --enable-html use wxHTML sub-library"
258ac_help="$ac_help
259 --enable-htmlhelp use wxHTML-based help"
698dcdb6 260ac_help="$ac_help
8168de4c 261 --enable-constraints use layout-constraints system"
698dcdb6 262ac_help="$ac_help
8168de4c 263 --enable-printarch use printing architecture"
698dcdb6 264ac_help="$ac_help
8168de4c 265 --enable-mdi use multiple document interface architecture"
698dcdb6 266ac_help="$ac_help
8168de4c 267 --enable-loggui use standard GUI logger"
1e6feb95 268ac_help="$ac_help
8168de4c 269 --enable-logwin use wxLogWindow"
69d27ff7
MB
270ac_help="$ac_help
271 --enable-logdialog use wxLogDialog"
1e6feb95 272ac_help="$ac_help
8168de4c 273 --enable-postscript use wxPostscriptDC device context (default for gtk+)"
698dcdb6 274ac_help="$ac_help
8168de4c 275 --enable-prologio use Prolog IO library"
698dcdb6 276ac_help="$ac_help
8168de4c 277 --enable-resources use wxWindows resources"
698dcdb6 278ac_help="$ac_help
8168de4c 279 --enable-xresources use X resources for save (default for gtk+)"
698dcdb6 280ac_help="$ac_help
8168de4c 281 --enable-clipboard use wxClipboard classes"
698dcdb6 282ac_help="$ac_help
8168de4c 283 --enable-dnd use Drag'n'Drop classes"
698dcdb6 284ac_help="$ac_help
8168de4c 285 --enable-metafile use win32 metafiles"
698dcdb6 286ac_help="$ac_help
24176f2c 287 --enable-treelayout use wxTreeLayout classes"
698dcdb6 288ac_help="$ac_help
8168de4c 289 --enable-controls use all usual controls"
698dcdb6 290ac_help="$ac_help
8168de4c 291 --enable-accel use accelerators"
698dcdb6 292ac_help="$ac_help
8168de4c 293 --enable-button use wxButton class"
698dcdb6 294ac_help="$ac_help
8168de4c 295 --enable-bmpbutton use wxBitmapButton class"
698dcdb6 296ac_help="$ac_help
8168de4c 297 --enable-calendar use wxCalendarCtrl class"
1e6feb95 298ac_help="$ac_help
8168de4c 299 --enable-caret use wxCaret class"
1e6feb95 300ac_help="$ac_help
8168de4c 301 --enable-checkbox use wxCheckBox class"
698dcdb6 302ac_help="$ac_help
8168de4c 303 --enable-checklst use wxCheckListBox (listbox with checkboxes) class"
698dcdb6 304ac_help="$ac_help
8168de4c 305 --enable-choice use wxChoice class"
698dcdb6 306ac_help="$ac_help
8168de4c 307 --enable-combobox use wxComboBox classes"
698dcdb6 308ac_help="$ac_help
8168de4c 309 --enable-gauge use wxGauge class"
698dcdb6 310ac_help="$ac_help
8168de4c 311 --enable-grid use wxGrid class"
698dcdb6 312ac_help="$ac_help
8168de4c 313 --enable-newgrid use new wxGrid class"
698dcdb6 314ac_help="$ac_help
8168de4c 315 --enable-imaglist use wxImageList class"
698dcdb6 316ac_help="$ac_help
8168de4c 317 --enable-listbox use wxListBox class"
698dcdb6 318ac_help="$ac_help
8168de4c 319 --enable-listctrl use wxListCtrl class"
698dcdb6 320ac_help="$ac_help
8168de4c 321 --enable-notebook use wxNotebook class"
24176f2c
GD
322ac_help="$ac_help
323 --enable-propsheet use wxPropertySheet class"
698dcdb6 324ac_help="$ac_help
8168de4c 325 --enable-radiobox use wxRadioBox class"
698dcdb6 326ac_help="$ac_help
8168de4c 327 --enable-radiobtn use wxRadioButton class"
698dcdb6 328ac_help="$ac_help
8168de4c 329 --enable-sash use wxSashWindow class"
698dcdb6 330ac_help="$ac_help
8168de4c 331 --enable-scrollbar use wxScrollBar class and scrollable windows"
698dcdb6 332ac_help="$ac_help
8168de4c 333 --enable-slider use wxSlider class"
698dcdb6 334ac_help="$ac_help
8168de4c 335 --enable-spinbtn use wxSpinButton class"
698dcdb6 336ac_help="$ac_help
8168de4c 337 --enable-spinctrl use wxSpinCtrl class"
698dcdb6 338ac_help="$ac_help
8168de4c 339 --enable-splitter use wxSplitterWindow class"
698dcdb6 340ac_help="$ac_help
8168de4c 341 --enable-statbmp use wxStaticBitmap class"
698dcdb6 342ac_help="$ac_help
8168de4c 343 --enable-statbox use wxStaticBox class"
698dcdb6 344ac_help="$ac_help
8168de4c 345 --enable-statline use wxStaticLine class"
698dcdb6 346ac_help="$ac_help
8168de4c 347 --enable-stattext use wxStaticText class"
1e6feb95 348ac_help="$ac_help
8168de4c 349 --enable-statusbar use wxStatusBar class"
698dcdb6 350ac_help="$ac_help
8168de4c 351 --enable-tabdialog use wxTabControl class"
698dcdb6 352ac_help="$ac_help
8168de4c 353 --enable-textctrl use wxTextCtrl class"
1e6feb95 354ac_help="$ac_help
8168de4c 355 --enable-togglebtn use wxToggleButton class"
698dcdb6 356ac_help="$ac_help
8168de4c 357 --enable-toolbar use wxToolBar class"
698dcdb6 358ac_help="$ac_help
8168de4c 359 --enable-tbarnative use native wxToolBar class"
698dcdb6 360ac_help="$ac_help
8168de4c 361 --enable-tbarsmpl use wxToolBarSimple class"
698dcdb6 362ac_help="$ac_help
8168de4c 363 --enable-treectrl use wxTreeCtrl class"
9926e4a4
VZ
364ac_help="$ac_help
365 --enable-tipwindow use wxTipWindow class"
9f41d601
RR
366ac_help="$ac_help
367 --enable-popupwin use wxPopUpWindow class"
698dcdb6 368ac_help="$ac_help
b3e8d00a 369 --enable-commondlg use all common dialogs"
698dcdb6 370ac_help="$ac_help
8168de4c 371 --enable-choicedlg use wxChoiceDialog"
1e6feb95 372ac_help="$ac_help
8168de4c 373 --enable-coldlg use wxColourDialog"
1e6feb95 374ac_help="$ac_help
8168de4c 375 --enable-filedlg use wxFileDialog"
8db37e06
VZ
376ac_help="$ac_help
377 --enable-finddlg use wxFindReplaceDialog"
1e6feb95 378ac_help="$ac_help
8168de4c 379 --enable-fontdlg use wxFontDialog"
1e6feb95 380ac_help="$ac_help
8168de4c 381 --enable-dirdlg use wxDirDialog"
698dcdb6 382ac_help="$ac_help
8168de4c 383 --enable-msgdlg use wxMessageDialog"
1e6feb95 384ac_help="$ac_help
8168de4c 385 --enable-numberdlg use wxNumberEntryDialog"
cbca9943
VZ
386ac_help="$ac_help
387 --enable-splash use wxSplashScreen"
1e6feb95 388ac_help="$ac_help
8168de4c 389 --enable-textdlg use wxTextDialog"
698dcdb6 390ac_help="$ac_help
8168de4c 391 --enable-tipdlg use startup tips"
698dcdb6 392ac_help="$ac_help
8168de4c 393 --enable-progressdlg use wxProgressDialog"
b1f5d087
VZ
394ac_help="$ac_help
395 --enable-wizarddlg use wxWizard"
698dcdb6 396ac_help="$ac_help
8168de4c 397 --enable-menus use wxMenu/wxMenuBar/wxMenuItem classes"
1e6feb95 398ac_help="$ac_help
8168de4c 399 --enable-miniframe use wxMiniFrame class"
698dcdb6 400ac_help="$ac_help
8168de4c 401 --enable-tooltips use wxToolTip class"
698dcdb6 402ac_help="$ac_help
8168de4c 403 --enable-splines use spline drawing code"
698dcdb6 404ac_help="$ac_help
8168de4c 405 --enable-validators use wxValidator and derived classes"
698dcdb6 406ac_help="$ac_help
8168de4c 407 --enable-busyinfo use wxBusyInfo"
698dcdb6 408ac_help="$ac_help
b3e8d00a 409 --enable-joystick use wxJoystick (Linux only)"
698dcdb6 410ac_help="$ac_help
8168de4c 411 --enable-metafiles use wxMetaFile (Windows only)"
24fd6d87
VZ
412ac_help="$ac_help
413 --enable-dragimage use wxDragImage"
edae8572
VZ
414ac_help="$ac_help
415 --enable-palette use wxPalette class"
1e6feb95 416ac_help="$ac_help
8168de4c 417 --enable-image use wxImage class"
698dcdb6 418ac_help="$ac_help
8168de4c 419 --enable-gif use gif images (GIF file format)"
698dcdb6 420ac_help="$ac_help
8168de4c 421 --enable-pcx use pcx images (PCX file format)"
4b6b4dfc
RR
422ac_help="$ac_help
423 --enable-iff use iff images (IFF file format)"
698dcdb6 424ac_help="$ac_help
8168de4c 425 --enable-pnm use pnm images (PNM file format)"
698dcdb6 426ac_help="$ac_help
8168de4c 427 --enable-xpm use xpm images (XPM file format)"
658974ae
VS
428ac_help="$ac_help
429 --enable-icocur use Windows ICO and CUR formats"
90dd450c
VZ
430ac_help="$ac_help
431 --disable-largefile omit support for large files"
698dcdb6 432ac_help="$ac_help
9e691f46 433 --disable-gtktest do not try to compile and run a test GTK+ program"
3f345b47
VZ
434ac_help="$ac_help
435 --with-gtk-prefix=PFX Prefix where GTK is installed (optional)"
436ac_help="$ac_help
437 --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)"
438ac_help="$ac_help
439 --disable-gtktest Do not try to compile and run a test GTK program"
440ac_help="$ac_help
441 --with-gtk-prefix=PFX Prefix where GTK is installed (optional)"
442ac_help="$ac_help
443 --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)"
444ac_help="$ac_help
445 --disable-gtktest Do not try to compile and run a test GTK program"
698dcdb6
VZ
446ac_help="$ac_help
447 --with-x use the X Window System"
b040e242
VS
448ac_help="$ac_help
449 --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib"
10f2d63a
VZ
450
451# Initialize some variables set by options.
452# The variables have the same names as the options, with
453# dashes changed to underlines.
698dcdb6
VZ
454build=NONE
455cache_file=./config.cache
10f2d63a 456exec_prefix=NONE
698dcdb6 457host=NONE
10f2d63a 458no_create=
698dcdb6 459nonopt=NONE
10f2d63a
VZ
460no_recursion=
461prefix=NONE
462program_prefix=NONE
463program_suffix=NONE
464program_transform_name=s,x,x,
465silent=
466site=
467srcdir=
698dcdb6 468target=NONE
10f2d63a
VZ
469verbose=
470x_includes=NONE
471x_libraries=NONE
472bindir='${exec_prefix}/bin'
473sbindir='${exec_prefix}/sbin'
474libexecdir='${exec_prefix}/libexec'
475datadir='${prefix}/share'
476sysconfdir='${prefix}/etc'
477sharedstatedir='${prefix}/com'
478localstatedir='${prefix}/var'
479libdir='${exec_prefix}/lib'
480includedir='${prefix}/include'
481oldincludedir='/usr/include'
482infodir='${prefix}/info'
483mandir='${prefix}/man'
484
698dcdb6
VZ
485# Initialize some other variables.
486subdirs=
487MFLAGS= MAKEFLAGS=
488SHELL=${CONFIG_SHELL-/bin/sh}
489# Maximum number of lines to put in a shell here document.
490ac_max_here_lines=12
10f2d63a
VZ
491
492ac_prev=
493for ac_option
494do
698dcdb6 495
10f2d63a
VZ
496 # If the previous option needs an argument, assign it.
497 if test -n "$ac_prev"; then
498 eval "$ac_prev=\$ac_option"
499 ac_prev=
500 continue
501 fi
502
698dcdb6
VZ
503 case "$ac_option" in
504 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
505 *) ac_optarg= ;;
506 esac
10f2d63a
VZ
507
508 # Accept the important Cygnus configure options, so we can diagnose typos.
509
698dcdb6 510 case "$ac_option" in
10f2d63a
VZ
511
512 -bindir | --bindir | --bindi | --bind | --bin | --bi)
513 ac_prev=bindir ;;
514 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
698dcdb6 515 bindir="$ac_optarg" ;;
10f2d63a
VZ
516
517 -build | --build | --buil | --bui | --bu)
698dcdb6 518 ac_prev=build ;;
10f2d63a 519 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
698dcdb6 520 build="$ac_optarg" ;;
10f2d63a
VZ
521
522 -cache-file | --cache-file | --cache-fil | --cache-fi \
523 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
524 ac_prev=cache_file ;;
525 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
526 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
698dcdb6 527 cache_file="$ac_optarg" ;;
10f2d63a
VZ
528
529 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
530 ac_prev=datadir ;;
531 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
532 | --da=*)
698dcdb6 533 datadir="$ac_optarg" ;;
10f2d63a
VZ
534
535 -disable-* | --disable-*)
698dcdb6 536 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
10f2d63a 537 # Reject names that are not valid shell variable names.
698dcdb6
VZ
538 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
539 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
540 fi
541 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
542 eval "enable_${ac_feature}=no" ;;
10f2d63a
VZ
543
544 -enable-* | --enable-*)
698dcdb6 545 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
10f2d63a 546 # Reject names that are not valid shell variable names.
698dcdb6
VZ
547 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
548 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
549 fi
550 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
551 case "$ac_option" in
552 *=*) ;;
10f2d63a
VZ
553 *) ac_optarg=yes ;;
554 esac
698dcdb6 555 eval "enable_${ac_feature}='$ac_optarg'" ;;
10f2d63a
VZ
556
557 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
558 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
559 | --exec | --exe | --ex)
560 ac_prev=exec_prefix ;;
561 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
562 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
563 | --exec=* | --exe=* | --ex=*)
698dcdb6 564 exec_prefix="$ac_optarg" ;;
10f2d63a
VZ
565
566 -gas | --gas | --ga | --g)
567 # Obsolete; use --with-gas.
568 with_gas=yes ;;
569
698dcdb6
VZ
570 -help | --help | --hel | --he)
571 # Omit some internal or obsolete options to make the list less imposing.
572 # This message is too long to be a string in the A/UX 3.1 sh.
573 cat << EOF
574Usage: configure [options] [host]
575Options: [defaults in brackets after descriptions]
576Configuration:
577 --cache-file=FILE cache test results in FILE
578 --help print this message
579 --no-create do not create output files
580 --quiet, --silent do not print \`checking...' messages
581 --version print the version of autoconf that created configure
582Directory and file names:
583 --prefix=PREFIX install architecture-independent files in PREFIX
584 [$ac_default_prefix]
585 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
586 [same as prefix]
587 --bindir=DIR user executables in DIR [EPREFIX/bin]
588 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
589 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
590 --datadir=DIR read-only architecture-independent data in DIR
591 [PREFIX/share]
592 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
593 --sharedstatedir=DIR modifiable architecture-independent data in DIR
594 [PREFIX/com]
595 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
596 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
597 --includedir=DIR C header files in DIR [PREFIX/include]
598 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
599 --infodir=DIR info documentation in DIR [PREFIX/info]
600 --mandir=DIR man documentation in DIR [PREFIX/man]
601 --srcdir=DIR find the sources in DIR [configure dir or ..]
602 --program-prefix=PREFIX prepend PREFIX to installed program names
603 --program-suffix=SUFFIX append SUFFIX to installed program names
604 --program-transform-name=PROGRAM
605 run sed PROGRAM on installed program names
606EOF
607 cat << EOF
608Host type:
609 --build=BUILD configure for building on BUILD [BUILD=HOST]
610 --host=HOST configure for HOST [guessed]
611 --target=TARGET configure for TARGET [TARGET=HOST]
612Features and packages:
613 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
614 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
615 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
616 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
617 --x-includes=DIR X include files are in DIR
618 --x-libraries=DIR X library files are in DIR
619EOF
620 if test -n "$ac_help"; then
621 echo "--enable and --with options recognized:$ac_help"
622 fi
623 exit 0 ;;
10f2d63a
VZ
624
625 -host | --host | --hos | --ho)
698dcdb6 626 ac_prev=host ;;
10f2d63a 627 -host=* | --host=* | --hos=* | --ho=*)
698dcdb6 628 host="$ac_optarg" ;;
10f2d63a
VZ
629
630 -includedir | --includedir | --includedi | --included | --include \
631 | --includ | --inclu | --incl | --inc)
632 ac_prev=includedir ;;
633 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
634 | --includ=* | --inclu=* | --incl=* | --inc=*)
698dcdb6 635 includedir="$ac_optarg" ;;
10f2d63a
VZ
636
637 -infodir | --infodir | --infodi | --infod | --info | --inf)
638 ac_prev=infodir ;;
639 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
698dcdb6 640 infodir="$ac_optarg" ;;
10f2d63a
VZ
641
642 -libdir | --libdir | --libdi | --libd)
643 ac_prev=libdir ;;
644 -libdir=* | --libdir=* | --libdi=* | --libd=*)
698dcdb6 645 libdir="$ac_optarg" ;;
10f2d63a
VZ
646
647 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
648 | --libexe | --libex | --libe)
649 ac_prev=libexecdir ;;
650 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
651 | --libexe=* | --libex=* | --libe=*)
698dcdb6 652 libexecdir="$ac_optarg" ;;
10f2d63a
VZ
653
654 -localstatedir | --localstatedir | --localstatedi | --localstated \
655 | --localstate | --localstat | --localsta | --localst \
656 | --locals | --local | --loca | --loc | --lo)
657 ac_prev=localstatedir ;;
658 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
659 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
660 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
698dcdb6 661 localstatedir="$ac_optarg" ;;
10f2d63a
VZ
662
663 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
664 ac_prev=mandir ;;
665 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
698dcdb6 666 mandir="$ac_optarg" ;;
10f2d63a
VZ
667
668 -nfp | --nfp | --nf)
669 # Obsolete; use --without-fp.
670 with_fp=no ;;
671
672 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
673 | --no-cr | --no-c)
674 no_create=yes ;;
675
676 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
677 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
678 no_recursion=yes ;;
679
680 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
681 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
682 | --oldin | --oldi | --old | --ol | --o)
683 ac_prev=oldincludedir ;;
684 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
685 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
686 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
698dcdb6 687 oldincludedir="$ac_optarg" ;;
10f2d63a
VZ
688
689 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
690 ac_prev=prefix ;;
691 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
698dcdb6 692 prefix="$ac_optarg" ;;
10f2d63a
VZ
693
694 -program-prefix | --program-prefix | --program-prefi | --program-pref \
695 | --program-pre | --program-pr | --program-p)
696 ac_prev=program_prefix ;;
697 -program-prefix=* | --program-prefix=* | --program-prefi=* \
698 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
698dcdb6 699 program_prefix="$ac_optarg" ;;
10f2d63a
VZ
700
701 -program-suffix | --program-suffix | --program-suffi | --program-suff \
702 | --program-suf | --program-su | --program-s)
703 ac_prev=program_suffix ;;
704 -program-suffix=* | --program-suffix=* | --program-suffi=* \
705 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
698dcdb6 706 program_suffix="$ac_optarg" ;;
10f2d63a
VZ
707
708 -program-transform-name | --program-transform-name \
709 | --program-transform-nam | --program-transform-na \
710 | --program-transform-n | --program-transform- \
711 | --program-transform | --program-transfor \
712 | --program-transfo | --program-transf \
713 | --program-trans | --program-tran \
714 | --progr-tra | --program-tr | --program-t)
715 ac_prev=program_transform_name ;;
716 -program-transform-name=* | --program-transform-name=* \
717 | --program-transform-nam=* | --program-transform-na=* \
718 | --program-transform-n=* | --program-transform-=* \
719 | --program-transform=* | --program-transfor=* \
720 | --program-transfo=* | --program-transf=* \
721 | --program-trans=* | --program-tran=* \
722 | --progr-tra=* | --program-tr=* | --program-t=*)
698dcdb6 723 program_transform_name="$ac_optarg" ;;
10f2d63a
VZ
724
725 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
726 | -silent | --silent | --silen | --sile | --sil)
727 silent=yes ;;
728
729 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
730 ac_prev=sbindir ;;
731 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
732 | --sbi=* | --sb=*)
698dcdb6 733 sbindir="$ac_optarg" ;;
10f2d63a
VZ
734
735 -sharedstatedir | --sharedstatedir | --sharedstatedi \
736 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
737 | --sharedst | --shareds | --shared | --share | --shar \
738 | --sha | --sh)
739 ac_prev=sharedstatedir ;;
740 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
741 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
742 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
743 | --sha=* | --sh=*)
698dcdb6 744 sharedstatedir="$ac_optarg" ;;
10f2d63a
VZ
745
746 -site | --site | --sit)
747 ac_prev=site ;;
748 -site=* | --site=* | --sit=*)
698dcdb6 749 site="$ac_optarg" ;;
10f2d63a
VZ
750
751 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
752 ac_prev=srcdir ;;
753 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
698dcdb6 754 srcdir="$ac_optarg" ;;
10f2d63a
VZ
755
756 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
757 | --syscon | --sysco | --sysc | --sys | --sy)
758 ac_prev=sysconfdir ;;
759 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
760 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
698dcdb6 761 sysconfdir="$ac_optarg" ;;
10f2d63a
VZ
762
763 -target | --target | --targe | --targ | --tar | --ta | --t)
698dcdb6 764 ac_prev=target ;;
10f2d63a 765 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
698dcdb6 766 target="$ac_optarg" ;;
10f2d63a
VZ
767
768 -v | -verbose | --verbose | --verbos | --verbo | --verb)
769 verbose=yes ;;
770
698dcdb6
VZ
771 -version | --version | --versio | --versi | --vers)
772 echo "configure generated by autoconf version 2.13"
773 exit 0 ;;
10f2d63a
VZ
774
775 -with-* | --with-*)
698dcdb6 776 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
10f2d63a 777 # Reject names that are not valid shell variable names.
698dcdb6
VZ
778 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
779 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
780 fi
10f2d63a 781 ac_package=`echo $ac_package| sed 's/-/_/g'`
698dcdb6
VZ
782 case "$ac_option" in
783 *=*) ;;
10f2d63a
VZ
784 *) ac_optarg=yes ;;
785 esac
698dcdb6 786 eval "with_${ac_package}='$ac_optarg'" ;;
10f2d63a
VZ
787
788 -without-* | --without-*)
698dcdb6 789 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
10f2d63a 790 # Reject names that are not valid shell variable names.
698dcdb6
VZ
791 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
792 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
793 fi
794 ac_package=`echo $ac_package| sed 's/-/_/g'`
795 eval "with_${ac_package}=no" ;;
10f2d63a
VZ
796
797 --x)
798 # Obsolete; use --with-x.
799 with_x=yes ;;
800
801 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
802 | --x-incl | --x-inc | --x-in | --x-i)
803 ac_prev=x_includes ;;
804 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
805 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
698dcdb6 806 x_includes="$ac_optarg" ;;
10f2d63a
VZ
807
808 -x-libraries | --x-libraries | --x-librarie | --x-librari \
809 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
810 ac_prev=x_libraries ;;
811 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
812 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
698dcdb6 813 x_libraries="$ac_optarg" ;;
10f2d63a 814
698dcdb6 815 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
10f2d63a
VZ
816 ;;
817
818 *)
698dcdb6
VZ
819 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
820 echo "configure: warning: $ac_option: invalid host type" 1>&2
821 fi
822 if test "x$nonopt" != xNONE; then
823 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
824 fi
825 nonopt="$ac_option"
10f2d63a
VZ
826 ;;
827
828 esac
829done
830
831if test -n "$ac_prev"; then
698dcdb6
VZ
832 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
833fi
834
835trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
836
837# File descriptor usage:
838# 0 standard input
839# 1 file creation
840# 2 errors and warnings
841# 3 some systems may open it to /dev/tty
842# 4 used on the Kubota Titan
843# 6 checking for... messages and results
844# 5 compiler messages saved in config.log
845if test "$silent" = yes; then
846 exec 6>/dev/null
847else
848 exec 6>&1
10f2d63a 849fi
698dcdb6
VZ
850exec 5>./config.log
851
852echo "\
853This file contains any messages produced by compilers while
854running configure, to aid debugging if configure makes a mistake.
855" 1>&5
10f2d63a 856
698dcdb6
VZ
857# Strip out --no-create and --no-recursion so they do not pile up.
858# Also quote any args containing shell metacharacters.
859ac_configure_args=
860for ac_arg
10f2d63a 861do
698dcdb6
VZ
862 case "$ac_arg" in
863 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
864 | --no-cr | --no-c) ;;
865 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
866 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
867 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
868 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
869 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
10f2d63a
VZ
870 esac
871done
872
698dcdb6
VZ
873# NLS nuisances.
874# Only set these to C if already set. These must not be set unconditionally
875# because not all systems understand e.g. LANG=C (notably SCO).
876# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
877# Non-C LC_CTYPE values break the ctype check.
878if test "${LANG+set}" = set; then LANG=C; export LANG; fi
879if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
880if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
881if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
10f2d63a 882
698dcdb6
VZ
883# confdefs.h avoids OS command line length limits that DEFS can exceed.
884rm -rf conftest* confdefs.h
885# AIX cpp loses on an empty file, so make sure it contains at least a newline.
886echo > confdefs.h
10f2d63a 887
698dcdb6
VZ
888# A filename unique to this package, relative to the directory that
889# configure is in, which we can look for to find out if srcdir is correct.
890ac_unique_file=wx-config.in
10f2d63a
VZ
891
892# Find the source files, if location was not specified.
893if test -z "$srcdir"; then
894 ac_srcdir_defaulted=yes
895 # Try the directory containing this script, then its parent.
896 ac_prog=$0
698dcdb6 897 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
10f2d63a
VZ
898 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
899 srcdir=$ac_confdir
900 if test ! -r $srcdir/$ac_unique_file; then
901 srcdir=..
902 fi
903else
904 ac_srcdir_defaulted=no
905fi
906if test ! -r $srcdir/$ac_unique_file; then
907 if test "$ac_srcdir_defaulted" = yes; then
698dcdb6 908 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
10f2d63a 909 else
698dcdb6 910 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
10f2d63a
VZ
911 fi
912fi
698dcdb6 913srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
10f2d63a
VZ
914
915# Prefer explicitly selected file to automatically selected ones.
916if test -z "$CONFIG_SITE"; then
917 if test "x$prefix" != xNONE; then
918 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
919 else
920 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
921 fi
922fi
923for ac_site_file in $CONFIG_SITE; do
924 if test -r "$ac_site_file"; then
698dcdb6 925 echo "loading site script $ac_site_file"
10f2d63a
VZ
926 . "$ac_site_file"
927 fi
928done
929
930if test -r "$cache_file"; then
698dcdb6
VZ
931 echo "loading cache $cache_file"
932 . $cache_file
10f2d63a 933else
698dcdb6
VZ
934 echo "creating cache $cache_file"
935 > $cache_file
10f2d63a
VZ
936fi
937
938ac_ext=c
698dcdb6 939# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10f2d63a 940ac_cpp='$CPP $CPPFLAGS'
698dcdb6
VZ
941ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
942ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
943cross_compiling=$ac_cv_prog_cc_cross
944
945ac_exeext=
946ac_objext=o
947if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
948 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
949 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
950 ac_n= ac_c='
951' ac_t=' '
952 else
953 ac_n=-n ac_c= ac_t=
954 fi
10f2d63a 955else
698dcdb6 956 ac_n= ac_c='\c' ac_t=
10f2d63a 957fi
698dcdb6
VZ
958
959
10f2d63a 960
7c66a493
VZ
961ac_aux_dir=
962for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
963 if test -f $ac_dir/install-sh; then
964 ac_aux_dir=$ac_dir
965 ac_install_sh="$ac_aux_dir/install-sh -c"
966 break
967 elif test -f $ac_dir/install.sh; then
968 ac_aux_dir=$ac_dir
969 ac_install_sh="$ac_aux_dir/install.sh -c"
970 break
971 fi
972done
973if test -z "$ac_aux_dir"; then
698dcdb6 974 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
7c66a493 975fi
698dcdb6
VZ
976ac_config_guess=$ac_aux_dir/config.guess
977ac_config_sub=$ac_aux_dir/config.sub
978ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
703e0a69 979
698dcdb6
VZ
980
981# Do some error checking and defaulting for the host and target type.
982# The inputs are:
983# configure --host=HOST --target=TARGET --build=BUILD NONOPT
984#
985# The rules are:
986# 1. You are not allowed to specify --host, --target, and nonopt at the
987# same time.
988# 2. Host defaults to nonopt.
989# 3. If nonopt is not specified, then host defaults to the current host,
990# as determined by config.guess.
991# 4. Target and build default to nonopt.
992# 5. If nonopt is not specified, then target and build default to host.
7c66a493
VZ
993
994# The aliases save the names the user supplied, while $host etc.
995# will get canonicalized.
698dcdb6
VZ
996case $host---$target---$nonopt in
997NONE---*---* | *---NONE---* | *---*---NONE) ;;
998*) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
999esac
1000
1001
1002# Make sure we can run config.sub.
1003if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
1004else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1005fi
1006
1007echo $ac_n "checking host system type""... $ac_c" 1>&6
3bd8fb5f 1008echo "configure:1009: checking host system type" >&5
698dcdb6
VZ
1009
1010host_alias=$host
1011case "$host_alias" in
1012NONE)
1013 case $nonopt in
1014 NONE)
1015 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
1016 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1017 fi ;;
1018 *) host_alias=$nonopt ;;
1019 esac ;;
1020esac
1021
1022host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
1023host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1024host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1025host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1026echo "$ac_t""$host" 1>&6
1027
1028echo $ac_n "checking target system type""... $ac_c" 1>&6
3bd8fb5f 1029echo "configure:1030: checking target system type" >&5
698dcdb6
VZ
1030
1031target_alias=$target
1032case "$target_alias" in
1033NONE)
1034 case $nonopt in
1035 NONE) target_alias=$host_alias ;;
1036 *) target_alias=$nonopt ;;
1037 esac ;;
1038esac
1039
1040target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
1041target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1042target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1043target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1044echo "$ac_t""$target" 1>&6
1045
1046echo $ac_n "checking build system type""... $ac_c" 1>&6
3bd8fb5f 1047echo "configure:1048: checking build system type" >&5
698dcdb6
VZ
1048
1049build_alias=$build
1050case "$build_alias" in
1051NONE)
1052 case $nonopt in
1053 NONE) build_alias=$host_alias ;;
1054 *) build_alias=$nonopt ;;
1055 esac ;;
1056esac
1057
1058build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1059build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1060build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1061build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1062echo "$ac_t""$build" 1>&6
1063
1064test "$host_alias" != "$target_alias" &&
7c66a493
VZ
1065 test "$program_prefix$program_suffix$program_transform_name" = \
1066 NONENONEs,x,x, &&
1067 program_prefix=${target_alias}-
1068
698dcdb6
VZ
1069
1070
10f2d63a 1071WX_MAJOR_VERSION_NUMBER=2
37d403aa 1072WX_MINOR_VERSION_NUMBER=3
a0d927d1 1073WX_RELEASE_NUMBER=3
10f2d63a 1074
10f2d63a 1075WX_VERSION=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER.$WX_RELEASE_NUMBER
10f2d63a 1076WX_RELEASE=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER
6426998c 1077
978f1259
RL
1078WX_MSW_VERSION=$WX_MAJOR_VERSION_NUMBER$WX_MINOR_VERSION_NUMBER$WX_RELEASE_NUMBER
1079
a0d927d1 1080WX_CURRENT=2
6426998c
RL
1081WX_REVISION=0
1082WX_AGE=0
1083
698dcdb6
VZ
1084
1085
10f2d63a
VZ
1086USE_UNIX=1
1087USE_WIN32=0
f9bc1684 1088USE_DOS=0
b12915c1 1089USE_BEOS=0
1216f52d 1090USE_MAC=0
b12915c1 1091
10f2d63a
VZ
1092USE_LINUX=
1093USE_SGI=
1094USE_HPUX=
1095USE_SYSV=
1096USE_SVR4=
1097USE_AIX=
1098USE_SUN=
1099USE_SOLARIS=
1100USE_SUNOS=
1101USE_ALPHA=
1102USE_OSF=
1103USE_BSD=
f11bdd03 1104USE_DARWIN=
10f2d63a 1105USE_FREEBSD=
95c8801c 1106USE_OPENBSD=
f6bcfd97 1107USE_NETBSD=
10f2d63a
VZ
1108USE_VMS=
1109USE_ULTRIX=
10f2d63a
VZ
1110USE_DATA_GENERAL=
1111
ab9b9eab
VZ
1112NEEDS_D_REENTRANT_FOR_R_FUNCS=0
1113
f79bd02d 1114ALL_TOOLKITS="GTK MAC MGL MICROWIN MOTIF MSW PM WINE X11"
10f2d63a
VZ
1115
1116DEFAULT_wxUSE_GTK=0
1e6feb95
VZ
1117DEFAULT_wxUSE_MAC=0
1118DEFAULT_wxUSE_MGL=0
1725144d 1119DEFAULT_wxUSE_MICROWIN=0
10f2d63a
VZ
1120DEFAULT_wxUSE_MOTIF=0
1121DEFAULT_wxUSE_MSW=0
e07802fc 1122DEFAULT_wxUSE_PM=0
1e6feb95 1123DEFAULT_wxUSE_WINE=0
f79bd02d 1124DEFAULT_wxUSE_X11=0
10f2d63a
VZ
1125
1126DEFAULT_DEFAULT_wxUSE_GTK=0
1e6feb95
VZ
1127DEFAULT_DEFAULT_wxUSE_MAC=0
1128DEFAULT_DEFAULT_wxUSE_MGL=0
1725144d 1129DEFAULT_DEFAULT_wxUSE_MICROWIN=0
10f2d63a
VZ
1130DEFAULT_DEFAULT_wxUSE_MOTIF=0
1131DEFAULT_DEFAULT_wxUSE_MSW=0
e07802fc 1132DEFAULT_DEFAULT_wxUSE_PM=0
1e6feb95 1133DEFAULT_DEFAULT_wxUSE_WINE=0
f79bd02d 1134DEFAULT_DEFAULT_wxUSE_X11=0
10f2d63a 1135
d6a55c4b 1136PROGRAM_EXT=
3a922bb4 1137SO_SUFFIX=so
d6a55c4b 1138
10f2d63a
VZ
1139case "${host}" in
1140 *-hp-hpux* )
1141 USE_HPUX=1
1142 DEFAULT_DEFAULT_wxUSE_MOTIF=1
ab9b9eab 1143 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
3a922bb4 1144 SO_SUFFIX=sl
698dcdb6 1145 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1146#define __HPUX__ 1
1147EOF
1148
1149 ;;
1150 *-*-linux* )
1151 USE_LINUX=1
698dcdb6 1152 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1153#define __LINUX__ 1
1154EOF
1155
1156 TMP=`uname -m`
1157 if test "x$TMP" = "xalpha"; then
1158 USE_ALPHA=1
698dcdb6 1159 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1160#define __ALPHA__ 1
1161EOF
1162
1163 fi
1164 DEFAULT_DEFAULT_wxUSE_GTK=1
1165 ;;
1166 *-*-irix5* | *-*-irix6* )
1167 USE_SGI=1
1168 USE_SVR4=1
698dcdb6 1169 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1170#define __SGI__ 1
1171EOF
1172
698dcdb6 1173 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1174#define __SVR4__ 1
1175EOF
1176
1177 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1178 ;;
1179 *-*-solaris2* )
1180 USE_SUN=1
1181 USE_SOLARIS=1
1182 USE_SVR4=1
698dcdb6 1183 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1184#define __SUN__ 1
1185EOF
1186
698dcdb6 1187 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1188#define __SOLARIS__ 1
1189EOF
1190
698dcdb6 1191 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1192#define __SVR4__ 1
1193EOF
1194
1195 DEFAULT_DEFAULT_wxUSE_MOTIF=1
ab9b9eab 1196 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
10f2d63a
VZ
1197 ;;
1198 *-*-sunos4* )
1199 USE_SUN=1
1200 USE_SUNOS=1
1201 USE_BSD=1
698dcdb6 1202 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1203#define __SUN__ 1
1204EOF
1205
698dcdb6 1206 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1207#define __SUNOS__ 1
1208EOF
1209
698dcdb6 1210 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1211#define __BSD__ 1
1212EOF
1213
1214 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1215 ;;
f6bcfd97 1216 *-*-freebsd*)
10f2d63a
VZ
1217 USE_BSD=1
1218 USE_FREEBSD=1
698dcdb6 1219 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1220#define __FREEBSD__ 1
1221EOF
1222
698dcdb6 1223 cat >> confdefs.h <<\EOF
10f2d63a 1224#define __BSD__ 1
95c8801c
VS
1225EOF
1226
1227 DEFAULT_DEFAULT_wxUSE_GTK=1
1228 ;;
1229 *-*-openbsd*)
1230 USE_BSD=1
1231 USE_OPENBSD=1
698dcdb6 1232 cat >> confdefs.h <<\EOF
95c8801c
VS
1233#define __FREEBSD__ 1
1234EOF
1235
698dcdb6 1236 cat >> confdefs.h <<\EOF
95c8801c 1237#define __OPENBSD__ 1
f6bcfd97
BP
1238EOF
1239
1240 DEFAULT_DEFAULT_wxUSE_GTK=1
1241 ;;
1242 *-*-netbsd*)
1243 USE_BSD=1
1244 USE_NETBSD=1
698dcdb6 1245 cat >> confdefs.h <<\EOF
f6bcfd97
BP
1246#define __FREEBSD__ 1
1247EOF
1248
698dcdb6 1249 cat >> confdefs.h <<\EOF
f6bcfd97 1250#define __NETBSD__ 1
10f2d63a
VZ
1251EOF
1252
1253 DEFAULT_DEFAULT_wxUSE_GTK=1
1254 ;;
1255 *-*-osf* )
1256 USE_ALPHA=1
1257 USE_OSF=1
698dcdb6 1258 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1259#define __ALPHA__ 1
1260EOF
1261
698dcdb6 1262 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1263#define __OSF__ 1
1264EOF
1265
1266 DEFAULT_DEFAULT_wxUSE_MOTIF=1
f6bcfd97 1267 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
10f2d63a
VZ
1268 ;;
1269 *-*-dgux5* )
1270 USE_ALPHA=1
1271 USE_SVR4=1
698dcdb6 1272 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1273#define __ALPHA__ 1
1274EOF
1275
698dcdb6 1276 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1277#define __SVR4__ 1
1278EOF
1279
1280 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1281 ;;
1282 *-*-sysv5* )
1283 USE_SYSV=1
1284 USE_SVR4=1
698dcdb6 1285 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1286#define __SYSV__ 1
1287EOF
1288
698dcdb6 1289 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1290#define __SVR4__ 1
1291EOF
1292
1293 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1294 ;;
1295 *-*-aix* )
1296 USE_AIX=1
1297 USE_SYSV=1
1298 USE_SVR4=1
321d2b14 1299 SO_SUFFIX=a
698dcdb6 1300 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1301#define __AIX__ 1
1302EOF
1303
698dcdb6 1304 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1305#define __SYSV__ 1
1306EOF
1307
698dcdb6 1308 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1309#define __SVR4__ 1
1310EOF
1311
1312 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1313 ;;
1314
1c8183e2 1315 *-*-cygwin* | *-*-mingw32* )
17234b26 1316 SO_SUFFIX=dll
cf27ef00 1317 PROGRAM_EXT=".exe"
7b7a7637 1318 RESCOMP=windres
10f2d63a
VZ
1319 DEFAULT_DEFAULT_wxUSE_MSW=1
1320 ;;
1321
f9bc1684
VS
1322 *-pc-msdosdjgpp )
1323 USE_UNIX=0
1324 USE_DOS=1
1325 cat >> confdefs.h <<\EOF
1326#define __DOS__ 1
1327EOF
1328
1329 PROGRAM_EXT=".exe"
1330 DEFAULT_DEFAULT_wxUSE_MGL=1
24f5e003 1331 LIBS="$LIBS -lstdc++"
f9bc1684
VS
1332 ;;
1333
6fa882bd 1334 *-pc-os2_emx | *-pc-os2-emx )
698dcdb6 1335 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1336#define __EMX__ 1
1337EOF
1338
cf27ef00 1339 PROGRAM_EXT=".exe"
e07802fc 1340 DEFAULT_DEFAULT_wxUSE_PM=1
d558c907 1341 LIBS="$LIBS -lstdcpp"
10f2d63a
VZ
1342 ;;
1343
d08b457b
GD
1344 powerpc-*-darwin* )
1345 USE_BSD=1
f11bdd03 1346 USE_DARWIN=1
3a922bb4 1347 SO_SUFFIX=dylib
698dcdb6 1348 cat >> confdefs.h <<\EOF
f11bdd03 1349#define __BSD__ 1
b4085ce6
GD
1350EOF
1351
698dcdb6 1352 cat >> confdefs.h <<\EOF
f11bdd03 1353#define __DARWIN__ 1
d08b457b
GD
1354EOF
1355
1356 cat >> confdefs.h <<\EOF
1357#define __POWERPC__ 1
b4085ce6
GD
1358EOF
1359
1360 DEFAULT_DEFAULT_wxUSE_MAC=1
1361 ;;
1362
b12915c1
VZ
1363 *-*-beos* )
1364 USE_BEOS=1
698dcdb6 1365 cat >> confdefs.h <<\EOF
b12915c1
VZ
1366#define __BEOS__ 1
1367EOF
1368
1369 ;;
1370
10f2d63a 1371 *)
698dcdb6 1372 { echo "configure: error: unknown system type ${host}." 1>&2; exit 1; }
10f2d63a
VZ
1373esac
1374
1e487827 1375
1e487827 1376
6232543b 1377
10f2d63a
VZ
1378 wx_arg_cache_file="configarg.cache"
1379 echo "loading argument cache $wx_arg_cache_file"
1380 rm -f ${wx_arg_cache_file}.tmp
1381 touch ${wx_arg_cache_file}.tmp
1382 touch ${wx_arg_cache_file}
698dcdb6 1383
10f2d63a
VZ
1384
1385DEBUG_CONFIGURE=0
1386if test $DEBUG_CONFIGURE = 1; then
1e6feb95
VZ
1387 DEFAULT_wxUSE_UNIVERSAL=no
1388
d8356fa3
VZ
1389 DEFAULT_wxUSE_NANOX=no
1390
10f2d63a
VZ
1391 DEFAULT_wxUSE_THREADS=yes
1392
1393 DEFAULT_wxUSE_SHARED=yes
3a922bb4 1394 DEFAULT_wxUSE_SONAME=no
1e6feb95 1395 DEFAULT_wxUSE_OPTIMISE=no
10f2d63a
VZ
1396 DEFAULT_wxUSE_PROFILE=no
1397 DEFAULT_wxUSE_NO_DEPS=no
8f4a9a10
RR
1398 DEFAULT_wxUSE_NO_RTTI=no
1399 DEFAULT_wxUSE_NO_EXCEPTIONS=no
10f2d63a
VZ
1400 DEFAULT_wxUSE_PERMISSIVE=no
1401 DEFAULT_wxUSE_DEBUG_FLAG=yes
1402 DEFAULT_wxUSE_DEBUG_INFO=yes
1403 DEFAULT_wxUSE_DEBUG_GDB=yes
1404 DEFAULT_wxUSE_MEM_TRACING=no
1405 DEFAULT_wxUSE_DEBUG_CONTEXT=no
1406 DEFAULT_wxUSE_DMALLOC=no
a7ae7112 1407 DEFAULT_wxUSE_PRECOMP=no
10f2d63a
VZ
1408 DEFAULT_wxUSE_APPLE_IEEE=no
1409
1410 DEFAULT_wxUSE_LOG=yes
1e6feb95
VZ
1411 DEFAULT_wxUSE_LOGWINDOW=no
1412 DEFAULT_wxUSE_LOGGUI=no
69d27ff7 1413 DEFAULT_wxUSE_LOGDIALOG=no
10f2d63a
VZ
1414
1415 DEFAULT_wxUSE_GUI=yes
1e6feb95 1416 DEFAULT_wxUSE_CONTROLS=no
10f2d63a 1417
3e44f09d 1418 DEFAULT_wxUSE_REGEX=no
10f2d63a
VZ
1419 DEFAULT_wxUSE_ZLIB=no
1420 DEFAULT_wxUSE_LIBPNG=no
1421 DEFAULT_wxUSE_LIBJPEG=no
c7a2bf27 1422 DEFAULT_wxUSE_LIBTIFF=no
10f2d63a 1423 DEFAULT_wxUSE_ODBC=no
bdad4e7e 1424 DEFAULT_wxUSE_OPENGL=no
10f2d63a 1425
eb4efbdc 1426 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=no
4f3c5f06 1427 DEFAULT_wxUSE_SNGLINST_CHECKER=no
10f2d63a 1428 DEFAULT_wxUSE_STD_IOSTREAM=no
1e6feb95
VZ
1429 DEFAULT_wxUSE_CMDLINE_PARSER=no
1430 DEFAULT_wxUSE_DATETIME=no
1431 DEFAULT_wxUSE_TIMEDATE=no
1432 DEFAULT_wxUSE_TIMER=no
1433 DEFAULT_wxUSE_STOPWATCH=no
10f2d63a 1434 DEFAULT_wxUSE_FILE=no
1e6feb95 1435 DEFAULT_wxUSE_FFILE=no
a3a584a7 1436 DEFAULT_wxUSE_TEXTBUFFER=no
10f2d63a 1437 DEFAULT_wxUSE_TEXTFILE=no
10f2d63a
VZ
1438 DEFAULT_wxUSE_WAVE=no
1439 DEFAULT_wxUSE_INTL=no
1440 DEFAULT_wxUSE_CONFIG=no
1e6feb95 1441 DEFAULT_wxUSE_FONTMAP=no
10f2d63a
VZ
1442 DEFAULT_wxUSE_STREAMS=no
1443 DEFAULT_wxUSE_SOCKETS=no
1444 DEFAULT_wxUSE_DIALUP_MANAGER=no
10f2d63a 1445 DEFAULT_wxUSE_JOYSTICK=no
6bff71f8 1446 DEFAULT_wxUSE_DYNLIB_CLASS=no
0b9ab0bd 1447 DEFAULT_wxUSE_DYNAMIC_LOADER=no
10f2d63a 1448 DEFAULT_wxUSE_LONGLONG=no
e8f65ba6 1449 DEFAULT_wxUSE_GEOMETRY=no
10f2d63a
VZ
1450
1451 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no
1452 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no
1453 DEFAULT_wxUSE_POSTSCRIPT=no
1454
1455 DEFAULT_wxUSE_X_RESOURCES=no
1456 DEFAULT_wxUSE_CLIPBOARD=no
1457 DEFAULT_wxUSE_TOOLTIPS=no
1458 DEFAULT_wxUSE_DRAG_AND_DROP=no
24fd6d87 1459 DEFAULT_wxUSE_DRAGIMAGE=no
10f2d63a
VZ
1460 DEFAULT_wxUSE_SPLINES=no
1461
1462 DEFAULT_wxUSE_MDI_ARCHITECTURE=no
1463 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no
1464 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no
1465
1466 DEFAULT_wxUSE_PROLOGIO=no
1467 DEFAULT_wxUSE_RESOURCES=no
1468 DEFAULT_wxUSE_CONSTRAINTS=no
1469 DEFAULT_wxUSE_IPC=no
1470 DEFAULT_wxUSE_HELP=no
29fd3c0c 1471 DEFAULT_wxUSE_MS_HTML_HELP=no
3379ed37 1472 DEFAULT_wxUSE_WXHTML_HELP=no
24176f2c 1473 DEFAULT_wxUSE_TREELAYOUT=no
10f2d63a 1474 DEFAULT_wxUSE_METAFILE=no
1e6feb95 1475 DEFAULT_wxUSE_MIMETYPE=no
4cdb0ab0
VS
1476 DEFAULT_wxUSE_SYSTEM_OPTIONS=no
1477 DEFAULT_wxUSE_PROTOCOL=no
1478 DEFAULT_wxUSE_PROTOCOL_HTTP=no
1479 DEFAULT_wxUSE_PROTOCOL_FTP=no
1480 DEFAULT_wxUSE_PROTOCOL_FILE=no
1481 DEFAULT_wxUSE_URL=no
3bd8fb5f 1482
10f2d63a 1483 DEFAULT_wxUSE_COMMONDLGS=no
1e6feb95
VZ
1484 DEFAULT_wxUSE_CHOICEDLG=no
1485 DEFAULT_wxUSE_COLOURDLG=no
10f2d63a 1486 DEFAULT_wxUSE_DIRDLG=no
1e6feb95 1487 DEFAULT_wxUSE_FILEDLG=no
8db37e06 1488 DEFAULT_wxUSE_FINDREPLDLG=no
1e6feb95
VZ
1489 DEFAULT_wxUSE_FONTDLG=no
1490 DEFAULT_wxUSE_MSGDLG=no
1491 DEFAULT_wxUSE_NUMBERDLG=no
10f2d63a 1492 DEFAULT_wxUSE_TEXTDLG=no
cbca9943 1493 DEFAULT_wxUSE_SPLASH=no
10f2d63a
VZ
1494 DEFAULT_wxUSE_STARTUP_TIPS=no
1495 DEFAULT_wxUSE_PROGRESSDLG=no
b1f5d087
VZ
1496 DEFAULT_wxUSE_WIZARDDLG=no
1497
1e6feb95 1498 DEFAULT_wxUSE_MENUS=no
10f2d63a
VZ
1499 DEFAULT_wxUSE_MINIFRAME=no
1500 DEFAULT_wxUSE_HTML=no
24528b0c 1501 DEFAULT_wxUSE_FILESYSTEM=no
10f2d63a
VZ
1502 DEFAULT_wxUSE_FS_INET=no
1503 DEFAULT_wxUSE_FS_ZIP=no
1504 DEFAULT_wxUSE_BUSYINFO=no
1505 DEFAULT_wxUSE_ZIPSTREAM=no
1e6feb95 1506 DEFAULT_wxUSE_VALIDATORS=no
10f2d63a
VZ
1507
1508 DEFAULT_wxUSE_ACCEL=no
1e6feb95 1509 DEFAULT_wxUSE_BUTTON=no
10f2d63a 1510 DEFAULT_wxUSE_BMPBUTTON=no
1e6feb95
VZ
1511 DEFAULT_wxUSE_CALCTRL=no
1512 DEFAULT_wxUSE_CARET=no
10f2d63a
VZ
1513 DEFAULT_wxUSE_CHECKBOX=no
1514 DEFAULT_wxUSE_CHECKLST=no
1e6feb95 1515 DEFAULT_wxUSE_CHOICE=no
10f2d63a
VZ
1516 DEFAULT_wxUSE_COMBOBOX=no
1517 DEFAULT_wxUSE_GAUGE=no
1518 DEFAULT_wxUSE_GRID=no
1519 DEFAULT_wxUSE_NEW_GRID=no
1520 DEFAULT_wxUSE_IMAGLIST=no
1521 DEFAULT_wxUSE_LISTBOX=no
1522 DEFAULT_wxUSE_LISTCTRL=no
1523 DEFAULT_wxUSE_NOTEBOOK=no
24176f2c 1524 DEFAULT_wxUSE_PROPSHEET=no
10f2d63a
VZ
1525 DEFAULT_wxUSE_RADIOBOX=no
1526 DEFAULT_wxUSE_RADIOBTN=no
1527 DEFAULT_wxUSE_SASH=no
1528 DEFAULT_wxUSE_SCROLLBAR=no
1529 DEFAULT_wxUSE_SLIDER=no
1530 DEFAULT_wxUSE_SPINBTN=no
56cfaa52 1531 DEFAULT_wxUSE_SPINCTRL=no
10f2d63a
VZ
1532 DEFAULT_wxUSE_SPLITTER=no
1533 DEFAULT_wxUSE_STATBMP=no
1534 DEFAULT_wxUSE_STATBOX=no
1535 DEFAULT_wxUSE_STATLINE=no
1e6feb95 1536 DEFAULT_wxUSE_STATTEXT=no
10f2d63a
VZ
1537 DEFAULT_wxUSE_STATUSBAR=yes
1538 DEFAULT_wxUSE_TABDIALOG=no
1e6feb95 1539 DEFAULT_wxUSE_TEXTCTRL=no
1db8dc4a 1540 DEFAULT_wxUSE_TOGGLEBTN=no
10f2d63a 1541 DEFAULT_wxUSE_TOOLBAR=no
360d6699
VZ
1542 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
1543 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
10f2d63a 1544 DEFAULT_wxUSE_TREECTRL=no
9f41d601 1545 DEFAULT_wxUSE_POPUPWIN=no
9926e4a4 1546 DEFAULT_wxUSE_TIPWINDOW=no
10f2d63a
VZ
1547
1548 DEFAULT_wxUSE_UNICODE=no
a72a4bfa 1549 DEFAULT_wxUSE_UNICODE_MSLU=no
10f2d63a
VZ
1550 DEFAULT_wxUSE_WCSRTOMBS=no
1551
edae8572 1552 DEFAULT_wxUSE_PALETTE=no
0046ff7c 1553 DEFAULT_wxUSE_IMAGE=no
10f2d63a
VZ
1554 DEFAULT_wxUSE_GIF=no
1555 DEFAULT_wxUSE_PCX=no
1556 DEFAULT_wxUSE_PNM=no
4b6b4dfc 1557 DEFAULT_wxUSE_IFF=no
0046ff7c 1558 DEFAULT_wxUSE_XPM=no
658974ae 1559 DEFAULT_wxUSE_ICO_CUR=no
10f2d63a 1560else
1e6feb95
VZ
1561 DEFAULT_wxUSE_UNIVERSAL=no
1562
d8356fa3
VZ
1563 DEFAULT_wxUSE_NANOX=no
1564
10f2d63a
VZ
1565 DEFAULT_wxUSE_THREADS=yes
1566
1567 DEFAULT_wxUSE_SHARED=yes
3a922bb4 1568 DEFAULT_wxUSE_SONAME=no
10f2d63a
VZ
1569 DEFAULT_wxUSE_OPTIMISE=yes
1570 DEFAULT_wxUSE_PROFILE=no
1571 DEFAULT_wxUSE_NO_DEPS=no
8f4a9a10
RR
1572 DEFAULT_wxUSE_NO_RTTI=no
1573 DEFAULT_wxUSE_NO_EXCEPTIONS=no
10f2d63a
VZ
1574 DEFAULT_wxUSE_PERMISSIVE=no
1575 DEFAULT_wxUSE_DEBUG_FLAG=no
1576 DEFAULT_wxUSE_DEBUG_INFO=no
1577 DEFAULT_wxUSE_DEBUG_GDB=no
1578 DEFAULT_wxUSE_MEM_TRACING=no
1579 DEFAULT_wxUSE_DEBUG_CONTEXT=no
1580 DEFAULT_wxUSE_DMALLOC=no
a7ae7112 1581 DEFAULT_wxUSE_PRECOMP=no
10f2d63a
VZ
1582 DEFAULT_wxUSE_APPLE_IEEE=yes
1583
1584 DEFAULT_wxUSE_LOG=yes
d73be714
VZ
1585 DEFAULT_wxUSE_LOGWINDOW=yes
1586 DEFAULT_wxUSE_LOGGUI=yes
69d27ff7 1587 DEFAULT_wxUSE_LOGDIALOG=yes
10f2d63a
VZ
1588
1589 DEFAULT_wxUSE_GUI=yes
1590
831b3152 1591 DEFAULT_wxUSE_REGEX=yes
10f2d63a
VZ
1592 DEFAULT_wxUSE_ZLIB=yes
1593 DEFAULT_wxUSE_LIBPNG=yes
1594 DEFAULT_wxUSE_LIBJPEG=yes
b47c832e 1595 DEFAULT_wxUSE_LIBTIFF=yes
16b52fa1 1596 DEFAULT_wxUSE_ODBC=no
bdad4e7e 1597 DEFAULT_wxUSE_OPENGL=no
10f2d63a 1598
eb4efbdc 1599 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=yes
4f3c5f06 1600 DEFAULT_wxUSE_SNGLINST_CHECKER=yes
10f2d63a 1601 DEFAULT_wxUSE_STD_IOSTREAM=no
1e6feb95
VZ
1602 DEFAULT_wxUSE_CMDLINE_PARSER=yes
1603 DEFAULT_wxUSE_DATETIME=yes
1604 DEFAULT_wxUSE_TIMEDATE=no
1605 DEFAULT_wxUSE_TIMER=yes
1606 DEFAULT_wxUSE_STOPWATCH=yes
10f2d63a 1607 DEFAULT_wxUSE_FILE=yes
1e6feb95 1608 DEFAULT_wxUSE_FFILE=yes
a3a584a7 1609 DEFAULT_wxUSE_TEXTBUFFER=yes
10f2d63a 1610 DEFAULT_wxUSE_TEXTFILE=yes
10f2d63a
VZ
1611 DEFAULT_wxUSE_WAVE=no
1612 DEFAULT_wxUSE_INTL=yes
1613 DEFAULT_wxUSE_CONFIG=yes
1e6feb95 1614 DEFAULT_wxUSE_FONTMAP=yes
10f2d63a
VZ
1615 DEFAULT_wxUSE_STREAMS=yes
1616 DEFAULT_wxUSE_SOCKETS=yes
1617 DEFAULT_wxUSE_DIALUP_MANAGER=yes
10f2d63a 1618 DEFAULT_wxUSE_JOYSTICK=yes
6bff71f8 1619 DEFAULT_wxUSE_DYNLIB_CLASS=yes
9337b578 1620 DEFAULT_wxUSE_DYNAMIC_LOADER=yes
b685cd9b 1621 DEFAULT_wxUSE_LONGLONG=yes
e8f65ba6 1622 DEFAULT_wxUSE_GEOMETRY=yes
10f2d63a
VZ
1623
1624 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes
1625 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes
1626 DEFAULT_wxUSE_POSTSCRIPT=yes
1627
1628 DEFAULT_wxUSE_X_RESOURCES=no
1629 DEFAULT_wxUSE_CLIPBOARD=yes
1630 DEFAULT_wxUSE_TOOLTIPS=yes
1631 DEFAULT_wxUSE_DRAG_AND_DROP=yes
24fd6d87 1632 DEFAULT_wxUSE_DRAGIMAGE=yes
10f2d63a
VZ
1633 DEFAULT_wxUSE_SPLINES=yes
1634
1635 DEFAULT_wxUSE_MDI_ARCHITECTURE=yes
1636 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes
1637 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes
1638
1639 DEFAULT_wxUSE_PROLOGIO=yes
1640 DEFAULT_wxUSE_RESOURCES=yes
1641 DEFAULT_wxUSE_CONSTRAINTS=yes
1642 DEFAULT_wxUSE_IPC=yes
1643 DEFAULT_wxUSE_HELP=yes
29fd3c0c 1644 DEFAULT_wxUSE_MS_HTML_HELP=yes
3379ed37 1645 DEFAULT_wxUSE_WXHTML_HELP=yes
24176f2c 1646 DEFAULT_wxUSE_TREELAYOUT=yes
10f2d63a 1647 DEFAULT_wxUSE_METAFILE=yes
1e6feb95 1648 DEFAULT_wxUSE_MIMETYPE=yes
3e44f09d 1649 DEFAULT_wxUSE_SYSTEM_OPTIONS=yes
4cdb0ab0
VS
1650 DEFAULT_wxUSE_PROTOCOL=yes
1651 DEFAULT_wxUSE_PROTOCOL_HTTP=yes
1652 DEFAULT_wxUSE_PROTOCOL_FTP=yes
1653 DEFAULT_wxUSE_PROTOCOL_FILE=yes
1654 DEFAULT_wxUSE_URL=yes
10f2d63a
VZ
1655
1656 DEFAULT_wxUSE_COMMONDLGS=yes
1e6feb95
VZ
1657 DEFAULT_wxUSE_CHOICEDLG=yes
1658 DEFAULT_wxUSE_COLOURDLG=yes
10f2d63a 1659 DEFAULT_wxUSE_DIRDLG=yes
1e6feb95 1660 DEFAULT_wxUSE_FILEDLG=yes
8db37e06 1661 DEFAULT_wxUSE_FINDREPLDLG=yes
1e6feb95
VZ
1662 DEFAULT_wxUSE_FONTDLG=yes
1663 DEFAULT_wxUSE_MSGDLG=yes
1664 DEFAULT_wxUSE_NUMBERDLG=yes
10f2d63a 1665 DEFAULT_wxUSE_TEXTDLG=yes
cbca9943 1666 DEFAULT_wxUSE_SPLASH=yes
10f2d63a
VZ
1667 DEFAULT_wxUSE_STARTUP_TIPS=yes
1668 DEFAULT_wxUSE_PROGRESSDLG=yes
f33f19dd
VZ
1669 DEFAULT_wxUSE_WIZARDDLG=yes
1670
1e6feb95 1671 DEFAULT_wxUSE_MENUS=yes
10f2d63a
VZ
1672 DEFAULT_wxUSE_MINIFRAME=yes
1673 DEFAULT_wxUSE_HTML=yes
24528b0c 1674 DEFAULT_wxUSE_FILESYSTEM=yes
10f2d63a
VZ
1675 DEFAULT_wxUSE_FS_INET=yes
1676 DEFAULT_wxUSE_FS_ZIP=yes
1677 DEFAULT_wxUSE_BUSYINFO=yes
1678 DEFAULT_wxUSE_ZIPSTREAM=yes
1679 DEFAULT_wxUSE_VALIDATORS=yes
1680
1681 DEFAULT_wxUSE_ACCEL=yes
1e6feb95 1682 DEFAULT_wxUSE_BUTTON=yes
10f2d63a 1683 DEFAULT_wxUSE_BMPBUTTON=yes
1e6feb95
VZ
1684 DEFAULT_wxUSE_CALCTRL=yes
1685 DEFAULT_wxUSE_CARET=yes
10f2d63a
VZ
1686 DEFAULT_wxUSE_CHECKBOX=yes
1687 DEFAULT_wxUSE_CHECKLST=yes
1688 DEFAULT_wxUSE_CHOICE=yes
1689 DEFAULT_wxUSE_COMBOBOX=yes
1690 DEFAULT_wxUSE_GAUGE=yes
1691 DEFAULT_wxUSE_GRID=yes
cc977e5f 1692 DEFAULT_wxUSE_NEW_GRID=yes
10f2d63a
VZ
1693 DEFAULT_wxUSE_IMAGLIST=yes
1694 DEFAULT_wxUSE_LISTBOX=yes
1695 DEFAULT_wxUSE_LISTCTRL=yes
1696 DEFAULT_wxUSE_NOTEBOOK=yes
24176f2c 1697 DEFAULT_wxUSE_PROPSHEET=yes
10f2d63a
VZ
1698 DEFAULT_wxUSE_RADIOBOX=yes
1699 DEFAULT_wxUSE_RADIOBTN=yes
1700 DEFAULT_wxUSE_SASH=yes
1701 DEFAULT_wxUSE_SCROLLBAR=yes
1702 DEFAULT_wxUSE_SLIDER=yes
1703 DEFAULT_wxUSE_SPINBTN=yes
56cfaa52 1704 DEFAULT_wxUSE_SPINCTRL=yes
10f2d63a
VZ
1705 DEFAULT_wxUSE_SPLITTER=yes
1706 DEFAULT_wxUSE_STATBMP=yes
1707 DEFAULT_wxUSE_STATBOX=yes
1708 DEFAULT_wxUSE_STATLINE=yes
1e6feb95 1709 DEFAULT_wxUSE_STATTEXT=yes
10f2d63a
VZ
1710 DEFAULT_wxUSE_STATUSBAR=yes
1711 DEFAULT_wxUSE_TABDIALOG=no
1e6feb95 1712 DEFAULT_wxUSE_TEXTCTRL=yes
1db8dc4a 1713 DEFAULT_wxUSE_TOGGLEBTN=yes
10f2d63a 1714 DEFAULT_wxUSE_TOOLBAR=yes
360d6699
VZ
1715 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
1716 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
10f2d63a 1717 DEFAULT_wxUSE_TREECTRL=yes
9f41d601 1718 DEFAULT_wxUSE_POPUPWIN=yes
9926e4a4 1719 DEFAULT_wxUSE_TIPWINDOW=yes
10f2d63a
VZ
1720
1721 DEFAULT_wxUSE_UNICODE=no
a72a4bfa 1722 DEFAULT_wxUSE_UNICODE_MSLU=yes
10f2d63a
VZ
1723 DEFAULT_wxUSE_WCSRTOMBS=no
1724
edae8572 1725 DEFAULT_wxUSE_PALETTE=yes
0046ff7c 1726 DEFAULT_wxUSE_IMAGE=yes
10f2d63a
VZ
1727 DEFAULT_wxUSE_GIF=yes
1728 DEFAULT_wxUSE_PCX=yes
cc0e8480 1729 DEFAULT_wxUSE_IFF=no
10f2d63a 1730 DEFAULT_wxUSE_PNM=yes
0046ff7c 1731 DEFAULT_wxUSE_XPM=yes
658974ae 1732 DEFAULT_wxUSE_ICO_CUR=yes
10f2d63a
VZ
1733fi
1734
698dcdb6
VZ
1735
1736
10f2d63a
VZ
1737for toolkit in `echo $ALL_TOOLKITS`; do
1738 LINE=`grep "wxUSE_$toolkit" ${wx_arg_cache_file}`
1739 if test "x$LINE" != x ; then
1740 has_toolkit_in_cache=1
1741 eval "DEFAULT_$LINE"
1742 eval "CACHE_$toolkit=1"
1743 fi
1744done
1745
698dcdb6
VZ
1746
1747
1748 echo $ac_n "checking for --enable-gui""... $ac_c" 1>&6
3bd8fb5f 1749echo "configure:1750: checking for --enable-gui" >&5
10f2d63a
VZ
1750 no_cache=0
1751 # Check whether --enable-gui or --disable-gui was given.
1752if test "${enable_gui+set}" = set; then
1753 enableval="$enable_gui"
698dcdb6 1754
10f2d63a
VZ
1755 if test "$enableval" = yes; then
1756 ac_cv_use_gui='wxUSE_GUI=yes'
1757 else
1758 ac_cv_use_gui='wxUSE_GUI=no'
1759 fi
698dcdb6 1760
10f2d63a 1761else
698dcdb6 1762
10f2d63a
VZ
1763 LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}`
1764 if test "x$LINE" != x ; then
1765 eval "DEFAULT_$LINE"
1766 else
1767 no_cache=1
1768 fi
1769
1770 ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI
698dcdb6
VZ
1771
1772fi
10f2d63a
VZ
1773
1774
1775 eval "$ac_cv_use_gui"
1776 if test "$no_cache" != 1; then
1777 echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp
1778 fi
1779
1780 if test "$wxUSE_GUI" = yes; then
698dcdb6 1781 echo "$ac_t""yes" 1>&6
10f2d63a 1782 else
698dcdb6 1783 echo "$ac_t""no" 1>&6
10f2d63a 1784 fi
698dcdb6 1785
10f2d63a 1786
b12915c1 1787if test "$wxUSE_GUI" = "yes"; then
10f2d63a 1788
1e6feb95
VZ
1789
1790 echo $ac_n "checking for --enable-universal""... $ac_c" 1>&6
3bd8fb5f 1791echo "configure:1792: checking for --enable-universal" >&5
1e6feb95
VZ
1792 no_cache=0
1793 # Check whether --enable-universal or --disable-universal was given.
1794if test "${enable_universal+set}" = set; then
1795 enableval="$enable_universal"
1796
1797 if test "$enableval" = yes; then
1798 ac_cv_use_universal='wxUSE_UNIVERSAL=yes'
1799 else
1800 ac_cv_use_universal='wxUSE_UNIVERSAL=no'
1801 fi
1802
1803else
1804
1805 LINE=`grep "wxUSE_UNIVERSAL" ${wx_arg_cache_file}`
1806 if test "x$LINE" != x ; then
1807 eval "DEFAULT_$LINE"
1808 else
1809 no_cache=1
1810 fi
1811
1812 ac_cv_use_universal='wxUSE_UNIVERSAL='$DEFAULT_wxUSE_UNIVERSAL
1813
1814fi
1815
1816
1817 eval "$ac_cv_use_universal"
1818 if test "$no_cache" != 1; then
1819 echo $ac_cv_use_universal >> ${wx_arg_cache_file}.tmp
1820 fi
1821
1822 if test "$wxUSE_UNIVERSAL" = yes; then
1823 echo "$ac_t""yes" 1>&6
1824 else
1825 echo "$ac_t""no" 1>&6
1826 fi
1827
10f2d63a
VZ
1828# Check whether --with-gtk or --without-gtk was given.
1829if test "${with_gtk+set}" = set; then
1830 withval="$with_gtk"
1831 wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1
698dcdb6 1832fi
10f2d63a
VZ
1833
1834# Check whether --with-motif or --without-motif was given.
1835if test "${with_motif+set}" = set; then
1836 withval="$with_motif"
1837 wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1
698dcdb6 1838fi
10f2d63a 1839
b4085ce6
GD
1840# Check whether --with-mac or --without-mac was given.
1841if test "${with_mac+set}" = set; then
1842 withval="$with_mac"
1843 wxUSE_MAC="$withval" TOOLKIT_GIVEN=1
698dcdb6 1844fi
b4085ce6 1845
10f2d63a
VZ
1846# Check whether --with-wine or --without-wine was given.
1847if test "${with_wine+set}" = set; then
1848 withval="$with_wine"
1849 wxUSE_WINE="$withval" CACHE_WINE=1 TOOLKIT_GIVEN=1
698dcdb6 1850fi
10f2d63a 1851
77e13408
RL
1852# Check whether --with-msw or --without-msw was given.
1853if test "${with_msw+set}" = set; then
1854 withval="$with_msw"
b4efce5e 1855 wxUSE_MSW="$withval" CACHE_MSW=1 TOOLKIT_GIVEN=1
698dcdb6 1856fi
10f2d63a 1857
e07802fc
VZ
1858# Check whether --with-pm or --without-pm was given.
1859if test "${with_pm+set}" = set; then
1860 withval="$with_pm"
1861 wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1
698dcdb6
VZ
1862fi
1863
1e6feb95
VZ
1864# Check whether --with-mgl or --without-mgl was given.
1865if test "${with_mgl+set}" = set; then
1866 withval="$with_mgl"
6c657b52 1867 wxUSE_MGL="$withval" wxUSE_UNIVERSAL="yes" CACHE_MGL=1 TOOLKIT_GIVEN=1
1e6feb95
VZ
1868fi
1869
1725144d
RR
1870# Check whether --with-microwin or --without-microwin was given.
1871if test "${with_microwin+set}" = set; then
1872 withval="$with_microwin"
1873 wxUSE_MICROWIN="$withval" CACHE_MICROWIN=1 TOOLKIT_GIVEN=1
1874fi
1875
f79bd02d
JS
1876# Check whether --with-x11 or --without-x11 was given.
1877if test "${with_x11+set}" = set; then
1878 withval="$with_x11"
3c011993 1879 wxUSE_X11="$withval" wxUSE_UNIVERSAL="yes" CACHE_X11=1 TOOLKIT_GIVEN=1
f79bd02d
JS
1880fi
1881
10f2d63a 1882
ba875e66 1883 echo $ac_n "checking for --enable-nanox""... $ac_c" 1>&6
3bd8fb5f 1884echo "configure:1885: checking for --enable-nanox" >&5
d8356fa3 1885 no_cache=0
ba875e66
VZ
1886 # Check whether --enable-nanox or --disable-nanox was given.
1887if test "${enable_nanox+set}" = set; then
1888 enableval="$enable_nanox"
d8356fa3
VZ
1889
1890 if test "$enableval" = yes; then
ba875e66 1891 ac_cv_use_nanox='wxUSE_NANOX=yes'
d8356fa3 1892 else
ba875e66 1893 ac_cv_use_nanox='wxUSE_NANOX=no'
d8356fa3
VZ
1894 fi
1895
1896else
1897
1898 LINE=`grep "wxUSE_NANOX" ${wx_arg_cache_file}`
1899 if test "x$LINE" != x ; then
1900 eval "DEFAULT_$LINE"
1901 else
1902 no_cache=1
1903 fi
1904
ba875e66 1905 ac_cv_use_nanox='wxUSE_NANOX='$DEFAULT_wxUSE_NANOX
d8356fa3
VZ
1906
1907fi
1908
1909
ba875e66 1910 eval "$ac_cv_use_nanox"
d8356fa3 1911 if test "$no_cache" != 1; then
ba875e66 1912 echo $ac_cv_use_nanox >> ${wx_arg_cache_file}.tmp
d8356fa3
VZ
1913 fi
1914
1915 if test "$wxUSE_NANOX" = yes; then
1916 echo "$ac_t""yes" 1>&6
1917 else
1918 echo "$ac_t""no" 1>&6
1919 fi
1920
1921
8168de4c
VZ
1922# Check whether --enable-gtk2 or --disable-gtk2 was given.
1923if test "${enable_gtk2+set}" = set; then
1924 enableval="$enable_gtk2"
9e691f46 1925 wxUSE_GTK2="yes"
10f2d63a 1926else
9e691f46 1927 wxUSE_GTK2="no"
698dcdb6
VZ
1928fi
1929
703e0a69 1930
1e487827 1931
698dcdb6 1932 echo $ac_n "checking for --with-libpng""... $ac_c" 1>&6
3bd8fb5f 1933echo "configure:1934: checking for --with-libpng" >&5
698dcdb6
VZ
1934 no_cache=0
1935 # Check whether --with-libpng or --without-libpng was given.
b12915c1
VZ
1936if test "${with_libpng+set}" = set; then
1937 withval="$with_libpng"
698dcdb6 1938
10f2d63a 1939 if test "$withval" = yes; then
b12915c1 1940 ac_cv_use_libpng='wxUSE_LIBPNG=yes'
422107f9 1941 elif test "$withval" = no; then
b12915c1 1942 ac_cv_use_libpng='wxUSE_LIBPNG=no'
422107f9
VZ
1943 elif test "$withval" = sys; then
1944 ac_cv_use_libpng='wxUSE_LIBPNG=sys'
4f14bcd8
GD
1945 elif test "$withval" = builtin; then
1946 ac_cv_use_libpng='wxUSE_LIBPNG=builtin'
422107f9 1947 else
4f14bcd8 1948 { echo "configure: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" 1>&2; exit 1; }
10f2d63a 1949 fi
698dcdb6 1950
10f2d63a 1951else
698dcdb6 1952
b12915c1 1953 LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}`
10f2d63a
VZ
1954 if test "x$LINE" != x ; then
1955 eval "DEFAULT_$LINE"
1956 else
1957 no_cache=1
1958 fi
1959
b12915c1 1960 ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG
698dcdb6
VZ
1961
1962fi
10f2d63a
VZ
1963
1964
b12915c1 1965 eval "$ac_cv_use_libpng"
10f2d63a 1966 if test "$no_cache" != 1; then
b12915c1 1967 echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
1968 fi
1969
b12915c1 1970 if test "$wxUSE_LIBPNG" = yes; then
698dcdb6 1971 echo "$ac_t""yes" 1>&6
422107f9 1972 elif test "$wxUSE_LIBPNG" = no; then
698dcdb6 1973 echo "$ac_t""no" 1>&6
422107f9 1974 elif test "$wxUSE_LIBPNG" = sys; then
698dcdb6 1975 echo "$ac_t""system version" 1>&6
4f14bcd8
GD
1976 elif test "$wxUSE_LIBPNG" = builtin; then
1977 echo "$ac_t""builtin version" 1>&6
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 1982
698dcdb6 1983 echo $ac_n "checking for --with-libjpeg""... $ac_c" 1>&6
3bd8fb5f 1984echo "configure:1985: checking for --with-libjpeg" >&5
10f2d63a 1985 no_cache=0
698dcdb6 1986 # Check whether --with-libjpeg or --without-libjpeg was given.
b12915c1
VZ
1987if test "${with_libjpeg+set}" = set; then
1988 withval="$with_libjpeg"
698dcdb6 1989
10f2d63a 1990 if test "$withval" = yes; then
b12915c1 1991 ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes'
422107f9 1992 elif test "$withval" = no; then
b12915c1 1993 ac_cv_use_libjpeg='wxUSE_LIBJPEG=no'
422107f9
VZ
1994 elif test "$withval" = sys; then
1995 ac_cv_use_libjpeg='wxUSE_LIBJPEG=sys'
4f14bcd8
GD
1996 elif test "$withval" = builtin; then
1997 ac_cv_use_libjpeg='wxUSE_LIBJPEG=builtin'
422107f9 1998 else
4f14bcd8 1999 { echo "configure: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" 1>&2; exit 1; }
10f2d63a 2000 fi
698dcdb6 2001
10f2d63a 2002else
698dcdb6 2003
b12915c1 2004 LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}`
10f2d63a
VZ
2005 if test "x$LINE" != x ; then
2006 eval "DEFAULT_$LINE"
2007 else
2008 no_cache=1
2009 fi
2010
b12915c1 2011 ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG
698dcdb6
VZ
2012
2013fi
10f2d63a
VZ
2014
2015
b12915c1 2016 eval "$ac_cv_use_libjpeg"
10f2d63a 2017 if test "$no_cache" != 1; then
b12915c1 2018 echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
2019 fi
2020
b12915c1 2021 if test "$wxUSE_LIBJPEG" = yes; then
698dcdb6 2022 echo "$ac_t""yes" 1>&6
422107f9 2023 elif test "$wxUSE_LIBJPEG" = no; then
698dcdb6 2024 echo "$ac_t""no" 1>&6
422107f9 2025 elif test "$wxUSE_LIBJPEG" = sys; then
698dcdb6 2026 echo "$ac_t""system version" 1>&6
4f14bcd8
GD
2027 elif test "$wxUSE_LIBJPEG" = builtin; then
2028 echo "$ac_t""builtin version" 1>&6
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 2033
698dcdb6 2034 echo $ac_n "checking for --with-libtiff""... $ac_c" 1>&6
3bd8fb5f 2035echo "configure:2036: checking for --with-libtiff" >&5
10f2d63a 2036 no_cache=0
698dcdb6 2037 # Check whether --with-libtiff or --without-libtiff was given.
b12915c1
VZ
2038if test "${with_libtiff+set}" = set; then
2039 withval="$with_libtiff"
698dcdb6 2040
10f2d63a 2041 if test "$withval" = yes; then
b12915c1 2042 ac_cv_use_libtiff='wxUSE_LIBTIFF=yes'
0dcf9893 2043 elif test "$withval" = no; then
b12915c1 2044 ac_cv_use_libtiff='wxUSE_LIBTIFF=no'
0dcf9893
VZ
2045 elif test "$withval" = sys; then
2046 ac_cv_use_libtiff='wxUSE_LIBTIFF=sys'
4f14bcd8
GD
2047 elif test "$withval" = builtin; then
2048 ac_cv_use_libtiff='wxUSE_LIBTIFF=builtin'
0dcf9893 2049 else
4f14bcd8 2050 { echo "configure: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" 1>&2; exit 1; }
10f2d63a 2051 fi
698dcdb6 2052
10f2d63a 2053else
698dcdb6 2054
b12915c1 2055 LINE=`grep "wxUSE_LIBTIFF" ${wx_arg_cache_file}`
10f2d63a
VZ
2056 if test "x$LINE" != x ; then
2057 eval "DEFAULT_$LINE"
2058 else
2059 no_cache=1
2060 fi
2061
b12915c1 2062 ac_cv_use_libtiff='wxUSE_LIBTIFF='$DEFAULT_wxUSE_LIBTIFF
698dcdb6
VZ
2063
2064fi
10f2d63a
VZ
2065
2066
b12915c1 2067 eval "$ac_cv_use_libtiff"
10f2d63a 2068 if test "$no_cache" != 1; then
b12915c1 2069 echo $ac_cv_use_libtiff >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
2070 fi
2071
b12915c1 2072 if test "$wxUSE_LIBTIFF" = yes; then
698dcdb6 2073 echo "$ac_t""yes" 1>&6
0dcf9893 2074 elif test "$wxUSE_LIBTIFF" = no; then
698dcdb6 2075 echo "$ac_t""no" 1>&6
0dcf9893 2076 elif test "$wxUSE_LIBTIFF" = sys; then
698dcdb6 2077 echo "$ac_t""system version" 1>&6
4f14bcd8
GD
2078 elif test "$wxUSE_LIBTIFF" = builtin; then
2079 echo "$ac_t""builtin version" 1>&6
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 2084
698dcdb6 2085 echo $ac_n "checking for --with-opengl""... $ac_c" 1>&6
3bd8fb5f 2086echo "configure:2087: checking for --with-opengl" >&5
10f2d63a 2087 no_cache=0
698dcdb6 2088 # Check whether --with-opengl or --without-opengl was given.
b12915c1
VZ
2089if test "${with_opengl+set}" = set; then
2090 withval="$with_opengl"
698dcdb6 2091
10f2d63a 2092 if test "$withval" = yes; then
b12915c1 2093 ac_cv_use_opengl='wxUSE_OPENGL=yes'
10f2d63a 2094 else
b12915c1 2095 ac_cv_use_opengl='wxUSE_OPENGL=no'
10f2d63a 2096 fi
698dcdb6 2097
10f2d63a 2098else
698dcdb6 2099
b12915c1 2100 LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}`
10f2d63a
VZ
2101 if test "x$LINE" != x ; then
2102 eval "DEFAULT_$LINE"
2103 else
2104 no_cache=1
2105 fi
2106
b12915c1 2107 ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL
698dcdb6
VZ
2108
2109fi
10f2d63a
VZ
2110
2111
b12915c1 2112 eval "$ac_cv_use_opengl"
10f2d63a 2113 if test "$no_cache" != 1; then
b12915c1 2114 echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
2115 fi
2116
b12915c1 2117 if test "$wxUSE_OPENGL" = yes; then
698dcdb6 2118 echo "$ac_t""yes" 1>&6
10f2d63a 2119 else
698dcdb6 2120 echo "$ac_t""no" 1>&6
10f2d63a 2121 fi
698dcdb6 2122
10f2d63a 2123
b12915c1
VZ
2124fi
2125
1e487827 2126
698dcdb6 2127 echo $ac_n "checking for --with-dmalloc""... $ac_c" 1>&6
3bd8fb5f 2128echo "configure:2129: checking for --with-dmalloc" >&5
698dcdb6
VZ
2129 no_cache=0
2130 # Check whether --with-dmalloc or --without-dmalloc was given.
b12915c1
VZ
2131if test "${with_dmalloc+set}" = set; then
2132 withval="$with_dmalloc"
698dcdb6 2133
c7a2bf27 2134 if test "$withval" = yes; then
b12915c1 2135 ac_cv_use_dmalloc='wxUSE_DMALLOC=yes'
c7a2bf27 2136 else
b12915c1 2137 ac_cv_use_dmalloc='wxUSE_DMALLOC=no'
c7a2bf27 2138 fi
698dcdb6 2139
c7a2bf27 2140else
698dcdb6 2141
b12915c1 2142 LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}`
c7a2bf27
RR
2143 if test "x$LINE" != x ; then
2144 eval "DEFAULT_$LINE"
2145 else
2146 no_cache=1
2147 fi
2148
b12915c1 2149 ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC
698dcdb6
VZ
2150
2151fi
c7a2bf27
RR
2152
2153
b12915c1 2154 eval "$ac_cv_use_dmalloc"
c7a2bf27 2155 if test "$no_cache" != 1; then
b12915c1 2156 echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp
c7a2bf27
RR
2157 fi
2158
b12915c1 2159 if test "$wxUSE_DMALLOC" = yes; then
698dcdb6 2160 echo "$ac_t""yes" 1>&6
c7a2bf27 2161 else
698dcdb6 2162 echo "$ac_t""no" 1>&6
c7a2bf27 2163 fi
698dcdb6 2164
c7a2bf27 2165
3e44f09d 2166 echo $ac_n "checking for --with-regex""... $ac_c" 1>&6
3bd8fb5f 2167echo "configure:2168: checking for --with-regex" >&5
3e44f09d
VZ
2168 no_cache=0
2169 # Check whether --with-regex or --without-regex was given.
2170if test "${with_regex+set}" = set; then
2171 withval="$with_regex"
2172
2173 if test "$withval" = yes; then
2174 ac_cv_use_regex='wxUSE_REGEX=yes'
2175 elif test "$withval" = no; then
2176 ac_cv_use_regex='wxUSE_REGEX=no'
2177 elif test "$withval" = sys; then
2178 ac_cv_use_regex='wxUSE_REGEX=sys'
4f14bcd8
GD
2179 elif test "$withval" = builtin; then
2180 ac_cv_use_regex='wxUSE_REGEX=builtin'
3e44f09d 2181 else
4f14bcd8 2182 { echo "configure: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" 1>&2; exit 1; }
3e44f09d
VZ
2183 fi
2184
2185else
2186
2187 LINE=`grep "wxUSE_REGEX" ${wx_arg_cache_file}`
2188 if test "x$LINE" != x ; then
2189 eval "DEFAULT_$LINE"
2190 else
2191 no_cache=1
2192 fi
2193
2194 ac_cv_use_regex='wxUSE_REGEX='$DEFAULT_wxUSE_REGEX
2195
2196fi
2197
2198
2199 eval "$ac_cv_use_regex"
2200 if test "$no_cache" != 1; then
2201 echo $ac_cv_use_regex >> ${wx_arg_cache_file}.tmp
2202 fi
2203
2204 if test "$wxUSE_REGEX" = yes; then
2205 echo "$ac_t""yes" 1>&6
2206 elif test "$wxUSE_REGEX" = no; then
2207 echo "$ac_t""no" 1>&6
2208 elif test "$wxUSE_REGEX" = sys; then
2209 echo "$ac_t""system version" 1>&6
4f14bcd8
GD
2210 elif test "$wxUSE_REGEX" = builtin; then
2211 echo "$ac_t""builtin version" 1>&6
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
2216
698dcdb6 2217 echo $ac_n "checking for --with-zlib""... $ac_c" 1>&6
3bd8fb5f 2218echo "configure:2219: checking for --with-zlib" >&5
10f2d63a 2219 no_cache=0
698dcdb6 2220 # Check whether --with-zlib or --without-zlib was given.
b12915c1
VZ
2221if test "${with_zlib+set}" = set; then
2222 withval="$with_zlib"
698dcdb6 2223
10f2d63a 2224 if test "$withval" = yes; then
b12915c1 2225 ac_cv_use_zlib='wxUSE_ZLIB=yes'
422107f9 2226 elif test "$withval" = no; then
b12915c1 2227 ac_cv_use_zlib='wxUSE_ZLIB=no'
422107f9
VZ
2228 elif test "$withval" = sys; then
2229 ac_cv_use_zlib='wxUSE_ZLIB=sys'
4f14bcd8
GD
2230 elif test "$withval" = builtin; then
2231 ac_cv_use_zlib='wxUSE_ZLIB=builtin'
422107f9 2232 else
4f14bcd8 2233 { echo "configure: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" 1>&2; exit 1; }
10f2d63a 2234 fi
698dcdb6 2235
10f2d63a 2236else
698dcdb6 2237
b12915c1 2238 LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}`
10f2d63a
VZ
2239 if test "x$LINE" != x ; then
2240 eval "DEFAULT_$LINE"
2241 else
2242 no_cache=1
2243 fi
2244
b12915c1 2245 ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB
698dcdb6
VZ
2246
2247fi
10f2d63a
VZ
2248
2249
b12915c1 2250 eval "$ac_cv_use_zlib"
10f2d63a 2251 if test "$no_cache" != 1; then
b12915c1 2252 echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
2253 fi
2254
b12915c1 2255 if test "$wxUSE_ZLIB" = yes; then
698dcdb6 2256 echo "$ac_t""yes" 1>&6
422107f9 2257 elif test "$wxUSE_ZLIB" = no; then
698dcdb6 2258 echo "$ac_t""no" 1>&6
422107f9 2259 elif test "$wxUSE_ZLIB" = sys; then
698dcdb6 2260 echo "$ac_t""system version" 1>&6
4f14bcd8
GD
2261 elif test "$wxUSE_ZLIB" = builtin; then
2262 echo "$ac_t""builtin version" 1>&6
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 2267
698dcdb6 2268 echo $ac_n "checking for --with-odbc""... $ac_c" 1>&6
3bd8fb5f 2269echo "configure:2270: checking for --with-odbc" >&5
10f2d63a 2270 no_cache=0
698dcdb6 2271 # Check whether --with-odbc or --without-odbc was given.
10f2d63a
VZ
2272if test "${with_odbc+set}" = set; then
2273 withval="$with_odbc"
698dcdb6 2274
10f2d63a
VZ
2275 if test "$withval" = yes; then
2276 ac_cv_use_odbc='wxUSE_ODBC=yes'
2277 else
2278 ac_cv_use_odbc='wxUSE_ODBC=no'
2279 fi
698dcdb6 2280
10f2d63a 2281else
698dcdb6 2282
10f2d63a
VZ
2283 LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}`
2284 if test "x$LINE" != x ; then
2285 eval "DEFAULT_$LINE"
2286 else
2287 no_cache=1
2288 fi
2289
2290 ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC
698dcdb6
VZ
2291
2292fi
10f2d63a
VZ
2293
2294
2295 eval "$ac_cv_use_odbc"
2296 if test "$no_cache" != 1; then
2297 echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp
2298 fi
2299
2300 if test "$wxUSE_ODBC" = yes; then
698dcdb6 2301 echo "$ac_t""yes" 1>&6
10f2d63a 2302 else
698dcdb6 2303 echo "$ac_t""no" 1>&6
10f2d63a 2304 fi
698dcdb6
VZ
2305
2306
10f2d63a 2307
698dcdb6 2308
698dcdb6 2309 echo $ac_n "checking for --enable-shared""... $ac_c" 1>&6
3bd8fb5f 2310echo "configure:2311: checking for --enable-shared" >&5
10f2d63a
VZ
2311 no_cache=0
2312 # Check whether --enable-shared or --disable-shared was given.
2313if test "${enable_shared+set}" = set; then
2314 enableval="$enable_shared"
698dcdb6 2315
10f2d63a
VZ
2316 if test "$enableval" = yes; then
2317 ac_cv_use_shared='wxUSE_SHARED=yes'
2318 else
2319 ac_cv_use_shared='wxUSE_SHARED=no'
2320 fi
698dcdb6 2321
10f2d63a 2322else
698dcdb6 2323
10f2d63a
VZ
2324 LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}`
2325 if test "x$LINE" != x ; then
2326 eval "DEFAULT_$LINE"
2327 else
2328 no_cache=1
2329 fi
2330
2331 ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED
698dcdb6
VZ
2332
2333fi
10f2d63a
VZ
2334
2335
2336 eval "$ac_cv_use_shared"
2337 if test "$no_cache" != 1; then
2338 echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp
2339 fi
2340
2341 if test "$wxUSE_SHARED" = yes; then
698dcdb6 2342 echo "$ac_t""yes" 1>&6
10f2d63a 2343 else
698dcdb6 2344 echo "$ac_t""no" 1>&6
10f2d63a 2345 fi
698dcdb6 2346
10f2d63a 2347
3a922bb4 2348 echo $ac_n "checking for --enable-soname""... $ac_c" 1>&6
3bd8fb5f 2349echo "configure:2350: checking for --enable-soname" >&5
00cf1208 2350 no_cache=0
3a922bb4
RL
2351 # Check whether --enable-soname or --disable-soname was given.
2352if test "${enable_soname+set}" = set; then
2353 enableval="$enable_soname"
698dcdb6 2354
00cf1208 2355 if test "$enableval" = yes; then
3a922bb4 2356 ac_cv_use_soname='wxUSE_SONAME=yes'
00cf1208 2357 else
3a922bb4 2358 ac_cv_use_soname='wxUSE_SONAME=no'
00cf1208 2359 fi
698dcdb6 2360
00cf1208 2361else
698dcdb6 2362
3a922bb4 2363 LINE=`grep "wxUSE_SONAME" ${wx_arg_cache_file}`
00cf1208
RR
2364 if test "x$LINE" != x ; then
2365 eval "DEFAULT_$LINE"
2366 else
2367 no_cache=1
2368 fi
2369
3a922bb4 2370 ac_cv_use_soname='wxUSE_SONAME='$DEFAULT_wxUSE_SONAME
698dcdb6
VZ
2371
2372fi
00cf1208
RR
2373
2374
3a922bb4 2375 eval "$ac_cv_use_soname"
00cf1208 2376 if test "$no_cache" != 1; then
3a922bb4 2377 echo $ac_cv_use_soname >> ${wx_arg_cache_file}.tmp
00cf1208
RR
2378 fi
2379
3a922bb4 2380 if test "$wxUSE_SONAME" = yes; then
698dcdb6 2381 echo "$ac_t""yes" 1>&6
00cf1208 2382 else
698dcdb6 2383 echo "$ac_t""no" 1>&6
00cf1208 2384 fi
698dcdb6 2385
00cf1208 2386
698dcdb6 2387 echo $ac_n "checking for --enable-optimise""... $ac_c" 1>&6
3bd8fb5f 2388echo "configure:2389: checking for --enable-optimise" >&5
10f2d63a
VZ
2389 no_cache=0
2390 # Check whether --enable-optimise or --disable-optimise was given.
2391if test "${enable_optimise+set}" = set; then
2392 enableval="$enable_optimise"
698dcdb6 2393
10f2d63a
VZ
2394 if test "$enableval" = yes; then
2395 ac_cv_use_optimise='wxUSE_OPTIMISE=yes'
2396 else
2397 ac_cv_use_optimise='wxUSE_OPTIMISE=no'
2398 fi
698dcdb6 2399
10f2d63a 2400else
698dcdb6 2401
10f2d63a
VZ
2402 LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}`
2403 if test "x$LINE" != x ; then
2404 eval "DEFAULT_$LINE"
2405 else
2406 no_cache=1
2407 fi
2408
2409 ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE
698dcdb6
VZ
2410
2411fi
10f2d63a
VZ
2412
2413
2414 eval "$ac_cv_use_optimise"
2415 if test "$no_cache" != 1; then
2416 echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp
2417 fi
2418
2419 if test "$wxUSE_OPTIMISE" = yes; then
698dcdb6 2420 echo "$ac_t""yes" 1>&6
10f2d63a 2421 else
698dcdb6 2422 echo "$ac_t""no" 1>&6
10f2d63a 2423 fi
698dcdb6 2424
10f2d63a 2425
698dcdb6 2426 echo $ac_n "checking for --enable-debug""... $ac_c" 1>&6
3bd8fb5f 2427echo "configure:2428: checking for --enable-debug" >&5
10f2d63a
VZ
2428 no_cache=0
2429 # Check whether --enable-debug or --disable-debug was given.
2430if test "${enable_debug+set}" = set; then
2431 enableval="$enable_debug"
698dcdb6 2432
10f2d63a
VZ
2433 if test "$enableval" = yes; then
2434 ac_cv_use_debug='wxUSE_DEBUG=yes'
2435 else
2436 ac_cv_use_debug='wxUSE_DEBUG=no'
2437 fi
698dcdb6 2438
10f2d63a 2439else
698dcdb6 2440
10f2d63a
VZ
2441 LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}`
2442 if test "x$LINE" != x ; then
2443 eval "DEFAULT_$LINE"
2444 else
2445 no_cache=1
2446 fi
2447
2448 ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG
698dcdb6
VZ
2449
2450fi
10f2d63a
VZ
2451
2452
2453 eval "$ac_cv_use_debug"
2454 if test "$no_cache" != 1; then
2455 echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp
2456 fi
2457
2458 if test "$wxUSE_DEBUG" = yes; then
698dcdb6 2459 echo "$ac_t""yes" 1>&6
10f2d63a 2460 else
698dcdb6 2461 echo "$ac_t""no" 1>&6
10f2d63a 2462 fi
698dcdb6 2463
10f2d63a 2464
683dccda
GD
2465
2466 echo $ac_n "checking for --enable-precomp""... $ac_c" 1>&6
3bd8fb5f 2467echo "configure:2468: checking for --enable-precomp" >&5
683dccda
GD
2468 no_cache=0
2469 # Check whether --enable-precomp or --disable-precomp was given.
2470if test "${enable_precomp+set}" = set; then
2471 enableval="$enable_precomp"
2472
2473 if test "$enableval" = yes; then
2474 ac_cv_use_precomp='wxUSE_PRECOMP=yes'
2475 else
2476 ac_cv_use_precomp='wxUSE_PRECOMP=no'
2477 fi
2478
2479else
2480
2481 LINE=`grep "wxUSE_PRECOMP" ${wx_arg_cache_file}`
2482 if test "x$LINE" != x ; then
2483 eval "DEFAULT_$LINE"
2484 else
2485 no_cache=1
2486 fi
2487
2488 ac_cv_use_precomp='wxUSE_PRECOMP='$DEFAULT_wxUSE_PRECOMP
2489
2490fi
2491
2492
2493 eval "$ac_cv_use_precomp"
2494 if test "$no_cache" != 1; then
2495 echo $ac_cv_use_precomp >> ${wx_arg_cache_file}.tmp
2496 fi
2497
2498 if test "$wxUSE_PRECOMP" = yes; then
2499 echo "$ac_t""yes" 1>&6
2500 else
2501 echo "$ac_t""no" 1>&6
2502 fi
2503
2504
10f2d63a
VZ
2505if test "$wxUSE_DEBUG" = "yes"; then
2506 DEFAULT_wxUSE_DEBUG_FLAG=yes
2507 DEFAULT_wxUSE_DEBUG_INFO=yes
2508elif test "$wxUSE_DEBUG" = "no"; then
2509 DEFAULT_wxUSE_DEBUG_FLAG=no
2510 DEFAULT_wxUSE_DEBUG_INFO=no
2511fi
2512
698dcdb6
VZ
2513
2514 echo $ac_n "checking for --enable-debug_flag""... $ac_c" 1>&6
3bd8fb5f 2515echo "configure:2516: checking for --enable-debug_flag" >&5
10f2d63a
VZ
2516 no_cache=0
2517 # Check whether --enable-debug_flag or --disable-debug_flag was given.
2518if test "${enable_debug_flag+set}" = set; then
2519 enableval="$enable_debug_flag"
698dcdb6 2520
10f2d63a
VZ
2521 if test "$enableval" = yes; then
2522 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes'
2523 else
2524 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no'
2525 fi
698dcdb6 2526
10f2d63a 2527else
698dcdb6 2528
10f2d63a
VZ
2529 LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}`
2530 if test "x$LINE" != x ; then
2531 eval "DEFAULT_$LINE"
2532 else
2533 no_cache=1
2534 fi
2535
2536 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG
698dcdb6
VZ
2537
2538fi
10f2d63a
VZ
2539
2540
2541 eval "$ac_cv_use_debug_flag"
2542 if test "$no_cache" != 1; then
2543 echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp
2544 fi
2545
2546 if test "$wxUSE_DEBUG_FLAG" = yes; then
698dcdb6 2547 echo "$ac_t""yes" 1>&6
10f2d63a 2548 else
698dcdb6 2549 echo "$ac_t""no" 1>&6
10f2d63a 2550 fi
698dcdb6 2551
10f2d63a 2552
698dcdb6 2553 echo $ac_n "checking for --enable-debug_info""... $ac_c" 1>&6
3bd8fb5f 2554echo "configure:2555: checking for --enable-debug_info" >&5
10f2d63a
VZ
2555 no_cache=0
2556 # Check whether --enable-debug_info or --disable-debug_info was given.
2557if test "${enable_debug_info+set}" = set; then
2558 enableval="$enable_debug_info"
698dcdb6 2559
10f2d63a
VZ
2560 if test "$enableval" = yes; then
2561 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes'
2562 else
2563 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no'
2564 fi
698dcdb6 2565
10f2d63a 2566else
698dcdb6 2567
10f2d63a
VZ
2568 LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}`
2569 if test "x$LINE" != x ; then
2570 eval "DEFAULT_$LINE"
2571 else
2572 no_cache=1
2573 fi
2574
2575 ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO
698dcdb6
VZ
2576
2577fi
10f2d63a
VZ
2578
2579
2580 eval "$ac_cv_use_debug_info"
2581 if test "$no_cache" != 1; then
2582 echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp
2583 fi
2584
2585 if test "$wxUSE_DEBUG_INFO" = yes; then
698dcdb6 2586 echo "$ac_t""yes" 1>&6
10f2d63a 2587 else
698dcdb6 2588 echo "$ac_t""no" 1>&6
10f2d63a 2589 fi
698dcdb6 2590
10f2d63a 2591
698dcdb6 2592 echo $ac_n "checking for --enable-debug_gdb""... $ac_c" 1>&6
3bd8fb5f 2593echo "configure:2594: checking for --enable-debug_gdb" >&5
10f2d63a
VZ
2594 no_cache=0
2595 # Check whether --enable-debug_gdb or --disable-debug_gdb was given.
2596if test "${enable_debug_gdb+set}" = set; then
2597 enableval="$enable_debug_gdb"
698dcdb6 2598
10f2d63a
VZ
2599 if test "$enableval" = yes; then
2600 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes'
2601 else
2602 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no'
2603 fi
698dcdb6 2604
10f2d63a 2605else
698dcdb6 2606
10f2d63a
VZ
2607 LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}`
2608 if test "x$LINE" != x ; then
2609 eval "DEFAULT_$LINE"
2610 else
2611 no_cache=1
2612 fi
2613
2614 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB
698dcdb6
VZ
2615
2616fi
10f2d63a
VZ
2617
2618
2619 eval "$ac_cv_use_debug_gdb"
2620 if test "$no_cache" != 1; then
2621 echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp
2622 fi
2623
2624 if test "$wxUSE_DEBUG_GDB" = yes; then
698dcdb6 2625 echo "$ac_t""yes" 1>&6
10f2d63a 2626 else
698dcdb6 2627 echo "$ac_t""no" 1>&6
10f2d63a 2628 fi
698dcdb6 2629
10f2d63a 2630
698dcdb6 2631 echo $ac_n "checking for --enable-debug_cntxt""... $ac_c" 1>&6
3bd8fb5f 2632echo "configure:2633: checking for --enable-debug_cntxt" >&5
10f2d63a
VZ
2633 no_cache=0
2634 # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given.
2635if test "${enable_debug_cntxt+set}" = set; then
2636 enableval="$enable_debug_cntxt"
698dcdb6 2637
10f2d63a
VZ
2638 if test "$enableval" = yes; then
2639 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes'
2640 else
2641 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no'
2642 fi
698dcdb6 2643
10f2d63a 2644else
698dcdb6 2645
10f2d63a
VZ
2646 LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}`
2647 if test "x$LINE" != x ; then
2648 eval "DEFAULT_$LINE"
2649 else
2650 no_cache=1
2651 fi
2652
2653 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT
698dcdb6
VZ
2654
2655fi
10f2d63a
VZ
2656
2657
2658 eval "$ac_cv_use_debug_cntxt"
2659 if test "$no_cache" != 1; then
2660 echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp
2661 fi
2662
2663 if test "$wxUSE_DEBUG_CONTEXT" = yes; then
698dcdb6 2664 echo "$ac_t""yes" 1>&6
10f2d63a 2665 else
698dcdb6 2666 echo "$ac_t""no" 1>&6
10f2d63a 2667 fi
698dcdb6 2668
10f2d63a 2669
698dcdb6 2670 echo $ac_n "checking for --enable-mem_tracing""... $ac_c" 1>&6
3bd8fb5f 2671echo "configure:2672: checking for --enable-mem_tracing" >&5
10f2d63a
VZ
2672 no_cache=0
2673 # Check whether --enable-mem_tracing or --disable-mem_tracing was given.
2674if test "${enable_mem_tracing+set}" = set; then
2675 enableval="$enable_mem_tracing"
698dcdb6 2676
10f2d63a
VZ
2677 if test "$enableval" = yes; then
2678 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes'
2679 else
2680 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no'
2681 fi
698dcdb6 2682
10f2d63a 2683else
698dcdb6 2684
10f2d63a
VZ
2685 LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}`
2686 if test "x$LINE" != x ; then
2687 eval "DEFAULT_$LINE"
2688 else
2689 no_cache=1
2690 fi
2691
2692 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING
698dcdb6
VZ
2693
2694fi
10f2d63a
VZ
2695
2696
2697 eval "$ac_cv_use_mem_tracing"
2698 if test "$no_cache" != 1; then
2699 echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp
2700 fi
2701
2702 if test "$wxUSE_MEM_TRACING" = yes; then
698dcdb6 2703 echo "$ac_t""yes" 1>&6
10f2d63a 2704 else
698dcdb6 2705 echo "$ac_t""no" 1>&6
10f2d63a 2706 fi
698dcdb6 2707
10f2d63a 2708
698dcdb6 2709 echo $ac_n "checking for --enable-profile""... $ac_c" 1>&6
3bd8fb5f 2710echo "configure:2711: checking for --enable-profile" >&5
10f2d63a
VZ
2711 no_cache=0
2712 # Check whether --enable-profile or --disable-profile was given.
2713if test "${enable_profile+set}" = set; then
2714 enableval="$enable_profile"
698dcdb6 2715
10f2d63a
VZ
2716 if test "$enableval" = yes; then
2717 ac_cv_use_profile='wxUSE_PROFILE=yes'
2718 else
2719 ac_cv_use_profile='wxUSE_PROFILE=no'
2720 fi
698dcdb6 2721
10f2d63a 2722else
698dcdb6 2723
10f2d63a
VZ
2724 LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}`
2725 if test "x$LINE" != x ; then
2726 eval "DEFAULT_$LINE"
2727 else
2728 no_cache=1
2729 fi
2730
2731 ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE
698dcdb6
VZ
2732
2733fi
10f2d63a
VZ
2734
2735
2736 eval "$ac_cv_use_profile"
2737 if test "$no_cache" != 1; then
2738 echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp
2739 fi
2740
2741 if test "$wxUSE_PROFILE" = yes; then
698dcdb6 2742 echo "$ac_t""yes" 1>&6
10f2d63a 2743 else
698dcdb6 2744 echo "$ac_t""no" 1>&6
10f2d63a 2745 fi
698dcdb6 2746
10f2d63a 2747
698dcdb6 2748 echo $ac_n "checking for --enable-no_rtti""... $ac_c" 1>&6
3bd8fb5f 2749echo "configure:2750: checking for --enable-no_rtti" >&5
10f2d63a
VZ
2750 no_cache=0
2751 # Check whether --enable-no_rtti or --disable-no_rtti was given.
2752if test "${enable_no_rtti+set}" = set; then
2753 enableval="$enable_no_rtti"
698dcdb6 2754
10f2d63a
VZ
2755 if test "$enableval" = yes; then
2756 ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes'
2757 else
2758 ac_cv_use_no_rtti='wxUSE_NO_RTTI=no'
2759 fi
698dcdb6 2760
10f2d63a 2761else
698dcdb6 2762
10f2d63a
VZ
2763 LINE=`grep "wxUSE_NO_RTTI" ${wx_arg_cache_file}`
2764 if test "x$LINE" != x ; then
2765 eval "DEFAULT_$LINE"
2766 else
2767 no_cache=1
2768 fi
2769
2770 ac_cv_use_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI
698dcdb6
VZ
2771
2772fi
10f2d63a
VZ
2773
2774
2775 eval "$ac_cv_use_no_rtti"
2776 if test "$no_cache" != 1; then
2777 echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp
2778 fi
2779
2780 if test "$wxUSE_NO_RTTI" = yes; then
698dcdb6 2781 echo "$ac_t""yes" 1>&6
10f2d63a 2782 else
698dcdb6 2783 echo "$ac_t""no" 1>&6
10f2d63a 2784 fi
698dcdb6 2785
10f2d63a 2786
698dcdb6 2787 echo $ac_n "checking for --enable-no_exceptions""... $ac_c" 1>&6
3bd8fb5f 2788echo "configure:2789: checking for --enable-no_exceptions" >&5
10f2d63a
VZ
2789 no_cache=0
2790 # Check whether --enable-no_exceptions or --disable-no_exceptions was given.
2791if test "${enable_no_exceptions+set}" = set; then
2792 enableval="$enable_no_exceptions"
698dcdb6 2793
10f2d63a
VZ
2794 if test "$enableval" = yes; then
2795 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes'
2796 else
2797 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no'
2798 fi
698dcdb6 2799
10f2d63a 2800else
698dcdb6 2801
10f2d63a
VZ
2802 LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}`
2803 if test "x$LINE" != x ; then
2804 eval "DEFAULT_$LINE"
2805 else
2806 no_cache=1
2807 fi
2808
2809 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS
698dcdb6
VZ
2810
2811fi
10f2d63a
VZ
2812
2813
2814 eval "$ac_cv_use_no_exceptions"
2815 if test "$no_cache" != 1; then
2816 echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp
2817 fi
2818
2819 if test "$wxUSE_NO_EXCEPTIONS" = yes; then
698dcdb6 2820 echo "$ac_t""yes" 1>&6
10f2d63a 2821 else
698dcdb6 2822 echo "$ac_t""no" 1>&6
10f2d63a 2823 fi
698dcdb6 2824
10f2d63a 2825
698dcdb6 2826 echo $ac_n "checking for --enable-permissive""... $ac_c" 1>&6
3bd8fb5f 2827echo "configure:2828: checking for --enable-permissive" >&5
10f2d63a
VZ
2828 no_cache=0
2829 # Check whether --enable-permissive or --disable-permissive was given.
2830if test "${enable_permissive+set}" = set; then
2831 enableval="$enable_permissive"
698dcdb6 2832
10f2d63a
VZ
2833 if test "$enableval" = yes; then
2834 ac_cv_use_permissive='wxUSE_PERMISSIVE=yes'
2835 else
2836 ac_cv_use_permissive='wxUSE_PERMISSIVE=no'
2837 fi
698dcdb6 2838
10f2d63a 2839else
698dcdb6 2840
10f2d63a
VZ
2841 LINE=`grep "wxUSE_PERMISSIVE" ${wx_arg_cache_file}`
2842 if test "x$LINE" != x ; then
2843 eval "DEFAULT_$LINE"
2844 else
2845 no_cache=1
2846 fi
2847
2848 ac_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE
698dcdb6
VZ
2849
2850fi
10f2d63a
VZ
2851
2852
2853 eval "$ac_cv_use_permissive"
2854 if test "$no_cache" != 1; then
2855 echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp
2856 fi
2857
2858 if test "$wxUSE_PERMISSIVE" = yes; then
698dcdb6 2859 echo "$ac_t""yes" 1>&6
10f2d63a 2860 else
698dcdb6 2861 echo "$ac_t""no" 1>&6
10f2d63a 2862 fi
698dcdb6 2863
10f2d63a 2864
698dcdb6 2865 echo $ac_n "checking for --enable-no_deps""... $ac_c" 1>&6
3bd8fb5f 2866echo "configure:2867: checking for --enable-no_deps" >&5
10f2d63a
VZ
2867 no_cache=0
2868 # Check whether --enable-no_deps or --disable-no_deps was given.
2869if test "${enable_no_deps+set}" = set; then
2870 enableval="$enable_no_deps"
698dcdb6 2871
10f2d63a
VZ
2872 if test "$enableval" = yes; then
2873 ac_cv_use_no_deps='wxUSE_NO_DEPS=yes'
2874 else
2875 ac_cv_use_no_deps='wxUSE_NO_DEPS=no'
2876 fi
698dcdb6 2877
10f2d63a 2878else
698dcdb6 2879
10f2d63a
VZ
2880 LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}`
2881 if test "x$LINE" != x ; then
2882 eval "DEFAULT_$LINE"
2883 else
2884 no_cache=1
2885 fi
2886
2887 ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS
698dcdb6
VZ
2888
2889fi
10f2d63a
VZ
2890
2891
2892 eval "$ac_cv_use_no_deps"
2893 if test "$no_cache" != 1; then
2894 echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp
2895 fi
2896
2897 if test "$wxUSE_NO_DEPS" = yes; then
698dcdb6 2898 echo "$ac_t""yes" 1>&6
10f2d63a 2899 else
698dcdb6 2900 echo "$ac_t""no" 1>&6
10f2d63a 2901 fi
698dcdb6
VZ
2902
2903
10f2d63a 2904
54276ccf 2905 echo $ac_n "checking for --enable-compat20""... $ac_c" 1>&6
3bd8fb5f 2906echo "configure:2907: checking for --enable-compat20" >&5
54276ccf
VZ
2907 no_cache=0
2908 # Check whether --enable-compat20 or --disable-compat20 was given.
2909if test "${enable_compat20+set}" = set; then
2910 enableval="$enable_compat20"
2911
2912 if test "$enableval" = yes; then
2913 ac_cv_use_compat20='WXWIN_COMPATIBILITY_2=yes'
2914 else
2915 ac_cv_use_compat20='WXWIN_COMPATIBILITY_2=no'
2916 fi
2917
2918else
2919
2920 LINE=`grep "WXWIN_COMPATIBILITY_2" ${wx_arg_cache_file}`
2921 if test "x$LINE" != x ; then
2922 eval "DEFAULT_$LINE"
2923 else
2924 no_cache=1
2925 fi
2926
2927 ac_cv_use_compat20='WXWIN_COMPATIBILITY_2='$DEFAULT_WXWIN_COMPATIBILITY_2
2928
2929fi
2930
2931
2932 eval "$ac_cv_use_compat20"
2933 if test "$no_cache" != 1; then
2934 echo $ac_cv_use_compat20 >> ${wx_arg_cache_file}.tmp
2935 fi
2936
2937 if test "$WXWIN_COMPATIBILITY_2" = yes; then
2938 echo "$ac_t""yes" 1>&6
2939 else
2940 echo "$ac_t""no" 1>&6
2941 fi
2942
2943
2944 echo $ac_n "checking for --enable-compat22""... $ac_c" 1>&6
3bd8fb5f 2945echo "configure:2946: checking for --enable-compat22" >&5
54276ccf
VZ
2946 no_cache=0
2947 # Check whether --enable-compat22 or --disable-compat22 was given.
2948if test "${enable_compat22+set}" = set; then
2949 enableval="$enable_compat22"
2950
2951 if test "$enableval" = yes; then
2952 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=yes'
2953 else
2954 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=no'
2955 fi
2956
2957else
2958
2959 LINE=`grep "WXWIN_COMPATIBILITY_2_2" ${wx_arg_cache_file}`
2960 if test "x$LINE" != x ; then
2961 eval "DEFAULT_$LINE"
2962 else
2963 no_cache=1
2964 fi
2965
2966 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2='$DEFAULT_WXWIN_COMPATIBILITY_2_2
2967
2968fi
2969
2970
2971 eval "$ac_cv_use_compat22"
2972 if test "$no_cache" != 1; then
2973 echo $ac_cv_use_compat22 >> ${wx_arg_cache_file}.tmp
2974 fi
2975
2976 if test "$WXWIN_COMPATIBILITY_2_2" = yes; then
2977 echo "$ac_t""yes" 1>&6
2978 else
2979 echo "$ac_t""no" 1>&6
2980 fi
2981
2982
3bd8fb5f
RD
2983# Check whether --enable-rpath or --disable-rpath was given.
2984if test "${enable_rpath+set}" = set; then
2985 enableval="$enable_rpath"
2986 wxRPATH_DIR="$enableval"
2987fi
2988
2989
2990if test "$wxRPATH_DIR" != "" -a "$wxRPATH_DIR" != "disable"; then
2991 WXCONFIG_RPATH="-Wl,-rpath -Wl,$wxRPATH_DIR"
2992fi
2993
2994
54276ccf 2995
698dcdb6
VZ
2996
2997 echo $ac_n "checking for --enable-intl""... $ac_c" 1>&6
3bd8fb5f 2998echo "configure:2999: checking for --enable-intl" >&5
10f2d63a
VZ
2999 no_cache=0
3000 # Check whether --enable-intl or --disable-intl was given.
3001if test "${enable_intl+set}" = set; then
3002 enableval="$enable_intl"
698dcdb6 3003
10f2d63a
VZ
3004 if test "$enableval" = yes; then
3005 ac_cv_use_intl='wxUSE_INTL=yes'
3006 else
3007 ac_cv_use_intl='wxUSE_INTL=no'
3008 fi
698dcdb6 3009
10f2d63a 3010else
698dcdb6 3011
10f2d63a
VZ
3012 LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}`
3013 if test "x$LINE" != x ; then
3014 eval "DEFAULT_$LINE"
3015 else
3016 no_cache=1
3017 fi
3018
3019 ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL
698dcdb6
VZ
3020
3021fi
10f2d63a
VZ
3022
3023
3024 eval "$ac_cv_use_intl"
3025 if test "$no_cache" != 1; then
3026 echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp
3027 fi
3028
3029 if test "$wxUSE_INTL" = yes; then
698dcdb6 3030 echo "$ac_t""yes" 1>&6
10f2d63a 3031 else
698dcdb6 3032 echo "$ac_t""no" 1>&6
10f2d63a 3033 fi
698dcdb6 3034
10f2d63a 3035
698dcdb6 3036 echo $ac_n "checking for --enable-config""... $ac_c" 1>&6
3bd8fb5f 3037echo "configure:3038: checking for --enable-config" >&5
10f2d63a
VZ
3038 no_cache=0
3039 # Check whether --enable-config or --disable-config was given.
3040if test "${enable_config+set}" = set; then
3041 enableval="$enable_config"
698dcdb6 3042
10f2d63a
VZ
3043 if test "$enableval" = yes; then
3044 ac_cv_use_config='wxUSE_CONFIG=yes'
3045 else
3046 ac_cv_use_config='wxUSE_CONFIG=no'
3047 fi
698dcdb6 3048
10f2d63a 3049else
698dcdb6 3050
10f2d63a
VZ
3051 LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}`
3052 if test "x$LINE" != x ; then
3053 eval "DEFAULT_$LINE"
3054 else
3055 no_cache=1
3056 fi
3057
3058 ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG
698dcdb6
VZ
3059
3060fi
10f2d63a
VZ
3061
3062
3063 eval "$ac_cv_use_config"
3064 if test "$no_cache" != 1; then
3065 echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp
3066 fi
3067
3068 if test "$wxUSE_CONFIG" = yes; then
698dcdb6 3069 echo "$ac_t""yes" 1>&6
10f2d63a 3070 else
698dcdb6 3071 echo "$ac_t""no" 1>&6
10f2d63a 3072 fi
698dcdb6
VZ
3073
3074
b12915c1 3075
a1622950 3076 echo $ac_n "checking for --enable-protocols""... $ac_c" 1>&6
3bd8fb5f 3077echo "configure:3078: checking for --enable-protocols" >&5
a1622950
VZ
3078 no_cache=0
3079 # Check whether --enable-protocols or --disable-protocols was given.
3080if test "${enable_protocols+set}" = set; then
3081 enableval="$enable_protocols"
3082
3083 if test "$enableval" = yes; then
3084 ac_cv_use_protocols='wxUSE_PROTOCOL=yes'
3085 else
3086 ac_cv_use_protocols='wxUSE_PROTOCOL=no'
3087 fi
3088
3089else
3090
3091 LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
3092 if test "x$LINE" != x ; then
3093 eval "DEFAULT_$LINE"
3094 else
3095 no_cache=1
3096 fi
3097
3098 ac_cv_use_protocols='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
3099
3100fi
3101
3102
3103 eval "$ac_cv_use_protocols"
3104 if test "$no_cache" != 1; then
3105 echo $ac_cv_use_protocols >> ${wx_arg_cache_file}.tmp
3106 fi
3107
3108 if test "$wxUSE_PROTOCOL" = yes; then
3109 echo "$ac_t""yes" 1>&6
3110 else
3111 echo "$ac_t""no" 1>&6
3112 fi
3113
3114
3115 echo $ac_n "checking for --enable-ftp""... $ac_c" 1>&6
3bd8fb5f 3116echo "configure:3117: checking for --enable-ftp" >&5
a1622950
VZ
3117 no_cache=0
3118 # Check whether --enable-ftp or --disable-ftp was given.
3119if test "${enable_ftp+set}" = set; then
3120 enableval="$enable_ftp"
3121
3122 if test "$enableval" = yes; then
3123 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=yes'
3124 else
3125 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=no'
3126 fi
3127
3128else
3129
3130 LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
3131 if test "x$LINE" != x ; then
3132 eval "DEFAULT_$LINE"
3133 else
3134 no_cache=1
3135 fi
3136
3137 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
3138
3139fi
3140
3141
3142 eval "$ac_cv_use_ftp"
3143 if test "$no_cache" != 1; then
3144 echo $ac_cv_use_ftp >> ${wx_arg_cache_file}.tmp
3145 fi
3146
3147 if test "$wxUSE_PROTOCOL_FTP" = yes; then
3148 echo "$ac_t""yes" 1>&6
3149 else
3150 echo "$ac_t""no" 1>&6
3151 fi
3152
3153
3154 echo $ac_n "checking for --enable-http""... $ac_c" 1>&6
3bd8fb5f 3155echo "configure:3156: checking for --enable-http" >&5
a1622950
VZ
3156 no_cache=0
3157 # Check whether --enable-http or --disable-http was given.
3158if test "${enable_http+set}" = set; then
3159 enableval="$enable_http"
3160
3161 if test "$enableval" = yes; then
3162 ac_cv_use_http='wxUSE_PROTOCOL_HTTP=yes'
3163 else
3164 ac_cv_use_http='wxUSE_PROTOCOL_HTTP=no'
3165 fi
3166
3167else
3168
3169 LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
3170 if test "x$LINE" != x ; then
3171 eval "DEFAULT_$LINE"
3172 else
3173 no_cache=1
3174 fi
3175
3176 ac_cv_use_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
3177
3178fi
3179
3180
3181 eval "$ac_cv_use_http"
3182 if test "$no_cache" != 1; then
3183 echo $ac_cv_use_http >> ${wx_arg_cache_file}.tmp
3184 fi
3185
3186 if test "$wxUSE_PROTOCOL_HTTP" = yes; then
3187 echo "$ac_t""yes" 1>&6
3188 else
3189 echo "$ac_t""no" 1>&6
3190 fi
3191
3192
3193 echo $ac_n "checking for --enable-fileproto""... $ac_c" 1>&6
3bd8fb5f 3194echo "configure:3195: checking for --enable-fileproto" >&5
a1622950
VZ
3195 no_cache=0
3196 # Check whether --enable-fileproto or --disable-fileproto was given.
3197if test "${enable_fileproto+set}" = set; then
3198 enableval="$enable_fileproto"
3199
3200 if test "$enableval" = yes; then
3201 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=yes'
3202 else
3203 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=no'
3204 fi
3205
3206else
3207
3208 LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
3209 if test "x$LINE" != x ; then
3210 eval "DEFAULT_$LINE"
3211 else
3212 no_cache=1
3213 fi
3214
3215 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
3216
3217fi
3218
3219
3220 eval "$ac_cv_use_fileproto"
3221 if test "$no_cache" != 1; then
3222 echo $ac_cv_use_fileproto >> ${wx_arg_cache_file}.tmp
3223 fi
3224
3225 if test "$wxUSE_PROTOCOL_FILE" = yes; then
3226 echo "$ac_t""yes" 1>&6
3227 else
3228 echo "$ac_t""no" 1>&6
3229 fi
3230
3231
698dcdb6 3232 echo $ac_n "checking for --enable-sockets""... $ac_c" 1>&6
3bd8fb5f 3233echo "configure:3234: checking for --enable-sockets" >&5
10f2d63a
VZ
3234 no_cache=0
3235 # Check whether --enable-sockets or --disable-sockets was given.
3236if test "${enable_sockets+set}" = set; then
3237 enableval="$enable_sockets"
698dcdb6 3238
10f2d63a
VZ
3239 if test "$enableval" = yes; then
3240 ac_cv_use_sockets='wxUSE_SOCKETS=yes'
3241 else
3242 ac_cv_use_sockets='wxUSE_SOCKETS=no'
3243 fi
698dcdb6 3244
10f2d63a 3245else
698dcdb6 3246
10f2d63a
VZ
3247 LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}`
3248 if test "x$LINE" != x ; then
3249 eval "DEFAULT_$LINE"
3250 else
3251 no_cache=1
3252 fi
3253
3254 ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS
698dcdb6
VZ
3255
3256fi
10f2d63a
VZ
3257
3258
3259 eval "$ac_cv_use_sockets"
3260 if test "$no_cache" != 1; then
3261 echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp
3262 fi
3263
3264 if test "$wxUSE_SOCKETS" = yes; then
698dcdb6 3265 echo "$ac_t""yes" 1>&6
10f2d63a 3266 else
698dcdb6 3267 echo "$ac_t""no" 1>&6
10f2d63a 3268 fi
698dcdb6 3269
b12915c1 3270
698dcdb6
VZ
3271
3272 echo $ac_n "checking for --enable-ipc""... $ac_c" 1>&6
3bd8fb5f 3273echo "configure:3274: checking for --enable-ipc" >&5
10f2d63a 3274 no_cache=0
eb4efbdc
VZ
3275 # Check whether --enable-ipc or --disable-ipc was given.
3276if test "${enable_ipc+set}" = set; then
3277 enableval="$enable_ipc"
698dcdb6 3278
10f2d63a 3279 if test "$enableval" = yes; then
eb4efbdc 3280 ac_cv_use_ipc='wxUSE_IPC=yes'
10f2d63a 3281 else
eb4efbdc 3282 ac_cv_use_ipc='wxUSE_IPC=no'
10f2d63a 3283 fi
698dcdb6 3284
10f2d63a 3285else
698dcdb6 3286
eb4efbdc 3287 LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}`
10f2d63a
VZ
3288 if test "x$LINE" != x ; then
3289 eval "DEFAULT_$LINE"
3290 else
3291 no_cache=1
3292 fi
3293
eb4efbdc 3294 ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC
698dcdb6
VZ
3295
3296fi
10f2d63a
VZ
3297
3298
eb4efbdc 3299 eval "$ac_cv_use_ipc"
10f2d63a 3300 if test "$no_cache" != 1; then
eb4efbdc 3301 echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
3302 fi
3303
eb4efbdc 3304 if test "$wxUSE_IPC" = yes; then
698dcdb6 3305 echo "$ac_t""yes" 1>&6
10f2d63a 3306 else
698dcdb6 3307 echo "$ac_t""no" 1>&6
10f2d63a 3308 fi
698dcdb6
VZ
3309
3310
eb4efbdc 3311
1e6feb95 3312 echo $ac_n "checking for --enable-cmdline""... $ac_c" 1>&6
3bd8fb5f 3313echo "configure:3314: checking for --enable-cmdline" >&5
1e6feb95
VZ
3314 no_cache=0
3315 # Check whether --enable-cmdline or --disable-cmdline was given.
3316if test "${enable_cmdline+set}" = set; then
3317 enableval="$enable_cmdline"
3318
3319 if test "$enableval" = yes; then
3320 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=yes'
3321 else
3322 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=no'
3323 fi
3324
3325else
3326
3327 LINE=`grep "wxUSE_CMDLINE_PARSER" ${wx_arg_cache_file}`
3328 if test "x$LINE" != x ; then
3329 eval "DEFAULT_$LINE"
3330 else
3331 no_cache=1
3332 fi
3333
3334 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER='$DEFAULT_wxUSE_CMDLINE_PARSER
3335
3336fi
3337
3338
3339 eval "$ac_cv_use_cmdline"
3340 if test "$no_cache" != 1; then
3341 echo $ac_cv_use_cmdline >> ${wx_arg_cache_file}.tmp
3342 fi
3343
3344 if test "$wxUSE_CMDLINE_PARSER" = yes; then
3345 echo "$ac_t""yes" 1>&6
3346 else
3347 echo "$ac_t""no" 1>&6
3348 fi
3349
3350
3351 echo $ac_n "checking for --enable-datetime""... $ac_c" 1>&6
3bd8fb5f 3352echo "configure:3353: checking for --enable-datetime" >&5
1e6feb95
VZ
3353 no_cache=0
3354 # Check whether --enable-datetime or --disable-datetime was given.
3355if test "${enable_datetime+set}" = set; then
3356 enableval="$enable_datetime"
3357
3358 if test "$enableval" = yes; then
3359 ac_cv_use_datetime='wxUSE_DATETIME=yes'
3360 else
3361 ac_cv_use_datetime='wxUSE_DATETIME=no'
3362 fi
3363
3364else
3365
3366 LINE=`grep "wxUSE_DATETIME" ${wx_arg_cache_file}`
3367 if test "x$LINE" != x ; then
3368 eval "DEFAULT_$LINE"
3369 else
3370 no_cache=1
3371 fi
3372
3373 ac_cv_use_datetime='wxUSE_DATETIME='$DEFAULT_wxUSE_DATETIME
3374
3375fi
3376
3377
3378 eval "$ac_cv_use_datetime"
3379 if test "$no_cache" != 1; then
3380 echo $ac_cv_use_datetime >> ${wx_arg_cache_file}.tmp
3381 fi
3382
3383 if test "$wxUSE_DATETIME" = yes; then
3384 echo "$ac_t""yes" 1>&6
3385 else
3386 echo "$ac_t""no" 1>&6
3387 fi
3388
3389
3390 echo $ac_n "checking for --enable-timedate""... $ac_c" 1>&6
3bd8fb5f 3391echo "configure:3392: checking for --enable-timedate" >&5
1e6feb95
VZ
3392 no_cache=0
3393 # Check whether --enable-timedate or --disable-timedate was given.
3394if test "${enable_timedate+set}" = set; then
3395 enableval="$enable_timedate"
3396
3397 if test "$enableval" = yes; then
3398 ac_cv_use_timedate='wxUSE_TIMEDATE=yes'
3399 else
3400 ac_cv_use_timedate='wxUSE_TIMEDATE=no'
3401 fi
3402
3403else
3404
3405 LINE=`grep "wxUSE_TIMEDATE" ${wx_arg_cache_file}`
3406 if test "x$LINE" != x ; then
3407 eval "DEFAULT_$LINE"
3408 else
3409 no_cache=1
3410 fi
3411
3412 ac_cv_use_timedate='wxUSE_TIMEDATE='$DEFAULT_wxUSE_TIMEDATE
3413
3414fi
3415
3416
3417 eval "$ac_cv_use_timedate"
3418 if test "$no_cache" != 1; then
3419 echo $ac_cv_use_timedate >> ${wx_arg_cache_file}.tmp
3420 fi
3421
3422 if test "$wxUSE_TIMEDATE" = yes; then
3423 echo "$ac_t""yes" 1>&6
3424 else
3425 echo "$ac_t""no" 1>&6
3426 fi
3427
3428
3429 echo $ac_n "checking for --enable-stopwatch""... $ac_c" 1>&6
3bd8fb5f 3430echo "configure:3431: checking for --enable-stopwatch" >&5
1e6feb95
VZ
3431 no_cache=0
3432 # Check whether --enable-stopwatch or --disable-stopwatch was given.
3433if test "${enable_stopwatch+set}" = set; then
3434 enableval="$enable_stopwatch"
3435
3436 if test "$enableval" = yes; then
3437 ac_cv_use_stopwatch='wxUSE_STOPWATCH=yes'
3438 else
3439 ac_cv_use_stopwatch='wxUSE_STOPWATCH=no'
3440 fi
3441
3442else
3443
3444 LINE=`grep "wxUSE_STOPWATCH" ${wx_arg_cache_file}`
3445 if test "x$LINE" != x ; then
3446 eval "DEFAULT_$LINE"
3447 else
3448 no_cache=1
3449 fi
3450
3451 ac_cv_use_stopwatch='wxUSE_STOPWATCH='$DEFAULT_wxUSE_STOPWATCH
3452
3453fi
3454
3455
3456 eval "$ac_cv_use_stopwatch"
3457 if test "$no_cache" != 1; then
3458 echo $ac_cv_use_stopwatch >> ${wx_arg_cache_file}.tmp
3459 fi
3460
3461 if test "$wxUSE_STOPWATCH" = yes; then
3462 echo "$ac_t""yes" 1>&6
3463 else
3464 echo "$ac_t""no" 1>&6
3465 fi
3466
3467
698dcdb6 3468 echo $ac_n "checking for --enable-dialupman""... $ac_c" 1>&6
3bd8fb5f 3469echo "configure:3470: checking for --enable-dialupman" >&5
10f2d63a 3470 no_cache=0
eb4efbdc
VZ
3471 # Check whether --enable-dialupman or --disable-dialupman was given.
3472if test "${enable_dialupman+set}" = set; then
3473 enableval="$enable_dialupman"
698dcdb6 3474
10f2d63a 3475 if test "$enableval" = yes; then
eb4efbdc 3476 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes'
10f2d63a 3477 else
eb4efbdc 3478 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no'
10f2d63a 3479 fi
698dcdb6 3480
10f2d63a 3481else
698dcdb6 3482
eb4efbdc 3483 LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}`
10f2d63a
VZ
3484 if test "x$LINE" != x ; then
3485 eval "DEFAULT_$LINE"
3486 else
3487 no_cache=1
3488 fi
3489
eb4efbdc 3490 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER
698dcdb6
VZ
3491
3492fi
10f2d63a
VZ
3493
3494
eb4efbdc 3495 eval "$ac_cv_use_dialupman"
10f2d63a 3496 if test "$no_cache" != 1; then
eb4efbdc 3497 echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
3498 fi
3499
eb4efbdc 3500 if test "$wxUSE_DIALUP_MANAGER" = yes; then
698dcdb6 3501 echo "$ac_t""yes" 1>&6
10f2d63a 3502 else
698dcdb6 3503 echo "$ac_t""no" 1>&6
10f2d63a 3504 fi
698dcdb6 3505
10f2d63a 3506
698dcdb6 3507 echo $ac_n "checking for --enable-apple_ieee""... $ac_c" 1>&6
3bd8fb5f 3508echo "configure:3509: checking for --enable-apple_ieee" >&5
10f2d63a
VZ
3509 no_cache=0
3510 # Check whether --enable-apple_ieee or --disable-apple_ieee was given.
3511if test "${enable_apple_ieee+set}" = set; then
3512 enableval="$enable_apple_ieee"
698dcdb6 3513
10f2d63a
VZ
3514 if test "$enableval" = yes; then
3515 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes'
3516 else
3517 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no'
3518 fi
698dcdb6 3519
10f2d63a 3520else
698dcdb6 3521
10f2d63a
VZ
3522 LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}`
3523 if test "x$LINE" != x ; then
3524 eval "DEFAULT_$LINE"
3525 else
3526 no_cache=1
3527 fi
3528
3529 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE
698dcdb6
VZ
3530
3531fi
10f2d63a
VZ
3532
3533
3534 eval "$ac_cv_use_apple_ieee"
3535 if test "$no_cache" != 1; then
3536 echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp
3537 fi
3538
3539 if test "$wxUSE_APPLE_IEEE" = yes; then
698dcdb6 3540 echo "$ac_t""yes" 1>&6
10f2d63a 3541 else
698dcdb6 3542 echo "$ac_t""no" 1>&6
10f2d63a 3543 fi
698dcdb6 3544
10f2d63a 3545
1e6feb95 3546 echo $ac_n "checking for --enable-timer""... $ac_c" 1>&6
3bd8fb5f 3547echo "configure:3548: checking for --enable-timer" >&5
10f2d63a 3548 no_cache=0
1e6feb95
VZ
3549 # Check whether --enable-timer or --disable-timer was given.
3550if test "${enable_timer+set}" = set; then
3551 enableval="$enable_timer"
698dcdb6 3552
10f2d63a 3553 if test "$enableval" = yes; then
1e6feb95 3554 ac_cv_use_timer='wxUSE_TIMER=yes'
10f2d63a 3555 else
1e6feb95 3556 ac_cv_use_timer='wxUSE_TIMER=no'
10f2d63a 3557 fi
698dcdb6 3558
10f2d63a 3559else
698dcdb6 3560
1e6feb95 3561 LINE=`grep "wxUSE_TIMER" ${wx_arg_cache_file}`
10f2d63a
VZ
3562 if test "x$LINE" != x ; then
3563 eval "DEFAULT_$LINE"
3564 else
3565 no_cache=1
3566 fi
3567
1e6feb95 3568 ac_cv_use_timer='wxUSE_TIMER='$DEFAULT_wxUSE_TIMER
698dcdb6
VZ
3569
3570fi
10f2d63a
VZ
3571
3572
1e6feb95 3573 eval "$ac_cv_use_timer"
10f2d63a 3574 if test "$no_cache" != 1; then
1e6feb95 3575 echo $ac_cv_use_timer >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
3576 fi
3577
1e6feb95 3578 if test "$wxUSE_TIMER" = yes; then
698dcdb6 3579 echo "$ac_t""yes" 1>&6
10f2d63a 3580 else
698dcdb6 3581 echo "$ac_t""no" 1>&6
10f2d63a 3582 fi
698dcdb6 3583
10f2d63a 3584
698dcdb6 3585 echo $ac_n "checking for --enable-wave""... $ac_c" 1>&6
3bd8fb5f 3586echo "configure:3587: checking for --enable-wave" >&5
10f2d63a
VZ
3587 no_cache=0
3588 # Check whether --enable-wave or --disable-wave was given.
3589if test "${enable_wave+set}" = set; then
3590 enableval="$enable_wave"
698dcdb6 3591
10f2d63a
VZ
3592 if test "$enableval" = yes; then
3593 ac_cv_use_wave='wxUSE_WAVE=yes'
3594 else
3595 ac_cv_use_wave='wxUSE_WAVE=no'
3596 fi
698dcdb6 3597
10f2d63a 3598else
698dcdb6 3599
10f2d63a
VZ
3600 LINE=`grep "wxUSE_WAVE" ${wx_arg_cache_file}`
3601 if test "x$LINE" != x ; then
3602 eval "DEFAULT_$LINE"
3603 else
3604 no_cache=1
3605 fi
3606
3607 ac_cv_use_wave='wxUSE_WAVE='$DEFAULT_wxUSE_WAVE
698dcdb6
VZ
3608
3609fi
10f2d63a
VZ
3610
3611
3612 eval "$ac_cv_use_wave"
3613 if test "$no_cache" != 1; then
3614 echo $ac_cv_use_wave >> ${wx_arg_cache_file}.tmp
3615 fi
3616
3617 if test "$wxUSE_WAVE" = yes; then
698dcdb6 3618 echo "$ac_t""yes" 1>&6
10f2d63a 3619 else
698dcdb6 3620 echo "$ac_t""no" 1>&6
10f2d63a 3621 fi
698dcdb6 3622
10f2d63a 3623
698dcdb6 3624 echo $ac_n "checking for --enable-fraction""... $ac_c" 1>&6
3bd8fb5f 3625echo "configure:3626: checking for --enable-fraction" >&5
10f2d63a
VZ
3626 no_cache=0
3627 # Check whether --enable-fraction or --disable-fraction was given.
3628if test "${enable_fraction+set}" = set; then
3629 enableval="$enable_fraction"
698dcdb6 3630
10f2d63a
VZ
3631 if test "$enableval" = yes; then
3632 ac_cv_use_fraction='wxUSE_FRACTION=yes'
3633 else
3634 ac_cv_use_fraction='wxUSE_FRACTION=no'
3635 fi
698dcdb6 3636
10f2d63a 3637else
698dcdb6 3638
10f2d63a
VZ
3639 LINE=`grep "wxUSE_FRACTION" ${wx_arg_cache_file}`
3640 if test "x$LINE" != x ; then
3641 eval "DEFAULT_$LINE"
3642 else
3643 no_cache=1
3644 fi
3645
3646 ac_cv_use_fraction='wxUSE_FRACTION='$DEFAULT_wxUSE_FRACTION
698dcdb6
VZ
3647
3648fi
10f2d63a
VZ
3649
3650
3651 eval "$ac_cv_use_fraction"
3652 if test "$no_cache" != 1; then
3653 echo $ac_cv_use_fraction >> ${wx_arg_cache_file}.tmp
3654 fi
3655
3656 if test "$wxUSE_FRACTION" = yes; then
698dcdb6 3657 echo "$ac_t""yes" 1>&6
10f2d63a 3658 else
698dcdb6 3659 echo "$ac_t""no" 1>&6
10f2d63a 3660 fi
698dcdb6 3661
10f2d63a 3662
698dcdb6 3663 echo $ac_n "checking for --enable-dynlib""... $ac_c" 1>&6
3bd8fb5f 3664echo "configure:3665: checking for --enable-dynlib" >&5
10f2d63a
VZ
3665 no_cache=0
3666 # Check whether --enable-dynlib or --disable-dynlib was given.
3667if test "${enable_dynlib+set}" = set; then
3668 enableval="$enable_dynlib"
698dcdb6 3669
10f2d63a
VZ
3670 if test "$enableval" = yes; then
3671 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes'
3672 else
3673 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no'
3674 fi
698dcdb6 3675
10f2d63a 3676else
698dcdb6 3677
10f2d63a
VZ
3678 LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}`
3679 if test "x$LINE" != x ; then
3680 eval "DEFAULT_$LINE"
3681 else
3682 no_cache=1
3683 fi
3684
3685 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS
698dcdb6
VZ
3686
3687fi
10f2d63a
VZ
3688
3689
3690 eval "$ac_cv_use_dynlib"
3691 if test "$no_cache" != 1; then
3692 echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp
3693 fi
3694
3695 if test "$wxUSE_DYNLIB_CLASS" = yes; then
698dcdb6 3696 echo "$ac_t""yes" 1>&6
10f2d63a 3697 else
698dcdb6 3698 echo "$ac_t""no" 1>&6
10f2d63a 3699 fi
698dcdb6 3700
10f2d63a 3701
0b9ab0bd 3702 echo $ac_n "checking for --enable-dynamicloader""... $ac_c" 1>&6
3bd8fb5f 3703echo "configure:3704: checking for --enable-dynamicloader" >&5
0b9ab0bd
RL
3704 no_cache=0
3705 # Check whether --enable-dynamicloader or --disable-dynamicloader was given.
3706if test "${enable_dynamicloader+set}" = set; then
3707 enableval="$enable_dynamicloader"
3708
3709 if test "$enableval" = yes; then
3710 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=yes'
3711 else
3712 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=no'
3713 fi
3714
3715else
3716
3717 LINE=`grep "wxUSE_DYNAMIC_LOADER" ${wx_arg_cache_file}`
3718 if test "x$LINE" != x ; then
3719 eval "DEFAULT_$LINE"
3720 else
3721 no_cache=1
3722 fi
3723
3724 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER='$DEFAULT_wxUSE_DYNAMIC_LOADER
3725
3726fi
3727
3728
3729 eval "$ac_cv_use_dynamicloader"
3730 if test "$no_cache" != 1; then
3731 echo $ac_cv_use_dynamicloader >> ${wx_arg_cache_file}.tmp
3732 fi
3733
3734 if test "$wxUSE_DYNAMIC_LOADER" = yes; then
3735 echo "$ac_t""yes" 1>&6
3736 else
3737 echo "$ac_t""no" 1>&6
3738 fi
3739
3740
698dcdb6 3741 echo $ac_n "checking for --enable-longlong""... $ac_c" 1>&6
3bd8fb5f 3742echo "configure:3743: checking for --enable-longlong" >&5
10f2d63a
VZ
3743 no_cache=0
3744 # Check whether --enable-longlong or --disable-longlong was given.
3745if test "${enable_longlong+set}" = set; then
3746 enableval="$enable_longlong"
698dcdb6 3747
10f2d63a
VZ
3748 if test "$enableval" = yes; then
3749 ac_cv_use_longlong='wxUSE_LONGLONG=yes'
3750 else
3751 ac_cv_use_longlong='wxUSE_LONGLONG=no'
3752 fi
698dcdb6 3753
10f2d63a 3754else
698dcdb6 3755
10f2d63a
VZ
3756 LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}`
3757 if test "x$LINE" != x ; then
3758 eval "DEFAULT_$LINE"
3759 else
3760 no_cache=1
3761 fi
3762
3763 ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG
698dcdb6
VZ
3764
3765fi
10f2d63a
VZ
3766
3767
3768 eval "$ac_cv_use_longlong"
3769 if test "$no_cache" != 1; then
3770 echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp
3771 fi
3772
3773 if test "$wxUSE_LONGLONG" = yes; then
698dcdb6 3774 echo "$ac_t""yes" 1>&6
10f2d63a 3775 else
698dcdb6 3776 echo "$ac_t""no" 1>&6
10f2d63a 3777 fi
698dcdb6 3778
10f2d63a 3779
698dcdb6 3780 echo $ac_n "checking for --enable-geometry""... $ac_c" 1>&6
3bd8fb5f 3781echo "configure:3782: checking for --enable-geometry" >&5
e8f65ba6
RR
3782 no_cache=0
3783 # Check whether --enable-geometry or --disable-geometry was given.
3784if test "${enable_geometry+set}" = set; then
3785 enableval="$enable_geometry"
698dcdb6 3786
e8f65ba6
RR
3787 if test "$enableval" = yes; then
3788 ac_cv_use_geometry='wxUSE_GEOMETRY=yes'
3789 else
3790 ac_cv_use_geometry='wxUSE_GEOMETRY=no'
3791 fi
698dcdb6 3792
e8f65ba6 3793else
698dcdb6 3794
e8f65ba6
RR
3795 LINE=`grep "wxUSE_GEOMETRY" ${wx_arg_cache_file}`
3796 if test "x$LINE" != x ; then
3797 eval "DEFAULT_$LINE"
3798 else
3799 no_cache=1
3800 fi
3801
3802 ac_cv_use_geometry='wxUSE_GEOMETRY='$DEFAULT_wxUSE_GEOMETRY
698dcdb6
VZ
3803
3804fi
e8f65ba6
RR
3805
3806
3807 eval "$ac_cv_use_geometry"
3808 if test "$no_cache" != 1; then
3809 echo $ac_cv_use_geometry >> ${wx_arg_cache_file}.tmp
3810 fi
3811
3812 if test "$wxUSE_GEOMETRY" = yes; then
698dcdb6 3813 echo "$ac_t""yes" 1>&6
e8f65ba6 3814 else
698dcdb6 3815 echo "$ac_t""no" 1>&6
e8f65ba6 3816 fi
698dcdb6 3817
e8f65ba6 3818
698dcdb6 3819 echo $ac_n "checking for --enable-log""... $ac_c" 1>&6
3bd8fb5f 3820echo "configure:3821: checking for --enable-log" >&5
10f2d63a
VZ
3821 no_cache=0
3822 # Check whether --enable-log or --disable-log was given.
3823if test "${enable_log+set}" = set; then
3824 enableval="$enable_log"
698dcdb6 3825
10f2d63a
VZ
3826 if test "$enableval" = yes; then
3827 ac_cv_use_log='wxUSE_LOG=yes'
3828 else
3829 ac_cv_use_log='wxUSE_LOG=no'
3830 fi
698dcdb6 3831
10f2d63a 3832else
698dcdb6 3833
10f2d63a
VZ
3834 LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}`
3835 if test "x$LINE" != x ; then
3836 eval "DEFAULT_$LINE"
3837 else
3838 no_cache=1
3839 fi
3840
3841 ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG
698dcdb6
VZ
3842
3843fi
10f2d63a
VZ
3844
3845
3846 eval "$ac_cv_use_log"
3847 if test "$no_cache" != 1; then
3848 echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp
3849 fi
3850
3851 if test "$wxUSE_LOG" = yes; then
698dcdb6 3852 echo "$ac_t""yes" 1>&6
10f2d63a 3853 else
698dcdb6 3854 echo "$ac_t""no" 1>&6
10f2d63a 3855 fi
698dcdb6 3856
10f2d63a 3857
698dcdb6 3858 echo $ac_n "checking for --enable-streams""... $ac_c" 1>&6
3bd8fb5f 3859echo "configure:3860: checking for --enable-streams" >&5
10f2d63a
VZ
3860 no_cache=0
3861 # Check whether --enable-streams or --disable-streams was given.
3862if test "${enable_streams+set}" = set; then
3863 enableval="$enable_streams"
698dcdb6 3864
10f2d63a
VZ
3865 if test "$enableval" = yes; then
3866 ac_cv_use_streams='wxUSE_STREAMS=yes'
3867 else
3868 ac_cv_use_streams='wxUSE_STREAMS=no'
3869 fi
698dcdb6 3870
10f2d63a 3871else
698dcdb6 3872
10f2d63a
VZ
3873 LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}`
3874 if test "x$LINE" != x ; then
3875 eval "DEFAULT_$LINE"
3876 else
3877 no_cache=1
3878 fi
3879
3880 ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS
698dcdb6
VZ
3881
3882fi
10f2d63a
VZ
3883
3884
3885 eval "$ac_cv_use_streams"
3886 if test "$no_cache" != 1; then
3887 echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp
3888 fi
3889
3890 if test "$wxUSE_STREAMS" = yes; then
698dcdb6 3891 echo "$ac_t""yes" 1>&6
10f2d63a 3892 else
698dcdb6 3893 echo "$ac_t""no" 1>&6
10f2d63a 3894 fi
698dcdb6 3895
10f2d63a 3896
698dcdb6 3897 echo $ac_n "checking for --enable-file""... $ac_c" 1>&6
3bd8fb5f 3898echo "configure:3899: checking for --enable-file" >&5
10f2d63a
VZ
3899 no_cache=0
3900 # Check whether --enable-file or --disable-file was given.
3901if test "${enable_file+set}" = set; then
3902 enableval="$enable_file"
698dcdb6 3903
10f2d63a
VZ
3904 if test "$enableval" = yes; then
3905 ac_cv_use_file='wxUSE_FILE=yes'
3906 else
3907 ac_cv_use_file='wxUSE_FILE=no'
3908 fi
698dcdb6 3909
10f2d63a 3910else
698dcdb6 3911
10f2d63a
VZ
3912 LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}`
3913 if test "x$LINE" != x ; then
3914 eval "DEFAULT_$LINE"
3915 else
3916 no_cache=1
3917 fi
3918
3919 ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE
698dcdb6
VZ
3920
3921fi
10f2d63a
VZ
3922
3923
3924 eval "$ac_cv_use_file"
3925 if test "$no_cache" != 1; then
3926 echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp
3927 fi
3928
3929 if test "$wxUSE_FILE" = yes; then
698dcdb6 3930 echo "$ac_t""yes" 1>&6
10f2d63a 3931 else
698dcdb6 3932 echo "$ac_t""no" 1>&6
10f2d63a 3933 fi
698dcdb6 3934
10f2d63a 3935
1e6feb95 3936 echo $ac_n "checking for --enable-ffile""... $ac_c" 1>&6
3bd8fb5f 3937echo "configure:3938: checking for --enable-ffile" >&5
10f2d63a 3938 no_cache=0
1e6feb95
VZ
3939 # Check whether --enable-ffile or --disable-ffile was given.
3940if test "${enable_ffile+set}" = set; then
3941 enableval="$enable_ffile"
698dcdb6 3942
10f2d63a 3943 if test "$enableval" = yes; then
1e6feb95 3944 ac_cv_use_ffile='wxUSE_FFILE=yes'
10f2d63a 3945 else
1e6feb95 3946 ac_cv_use_ffile='wxUSE_FFILE=no'
10f2d63a 3947 fi
698dcdb6 3948
10f2d63a 3949else
698dcdb6 3950
1e6feb95 3951 LINE=`grep "wxUSE_FFILE" ${wx_arg_cache_file}`
10f2d63a
VZ
3952 if test "x$LINE" != x ; then
3953 eval "DEFAULT_$LINE"
3954 else
3955 no_cache=1
3956 fi
3957
1e6feb95 3958 ac_cv_use_ffile='wxUSE_FFILE='$DEFAULT_wxUSE_FFILE
698dcdb6
VZ
3959
3960fi
10f2d63a
VZ
3961
3962
1e6feb95 3963 eval "$ac_cv_use_ffile"
10f2d63a 3964 if test "$no_cache" != 1; then
1e6feb95 3965 echo $ac_cv_use_ffile >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
3966 fi
3967
1e6feb95 3968 if test "$wxUSE_FFILE" = yes; then
698dcdb6 3969 echo "$ac_t""yes" 1>&6
10f2d63a 3970 else
698dcdb6 3971 echo "$ac_t""no" 1>&6
10f2d63a 3972 fi
698dcdb6 3973
10f2d63a 3974
a3a584a7 3975 echo $ac_n "checking for --enable-textbuf""... $ac_c" 1>&6
3bd8fb5f 3976echo "configure:3977: checking for --enable-textbuf" >&5
a3a584a7
VZ
3977 no_cache=0
3978 # Check whether --enable-textbuf or --disable-textbuf was given.
3979if test "${enable_textbuf+set}" = set; then
3980 enableval="$enable_textbuf"
3981
3982 if test "$enableval" = yes; then
3983 ac_cv_use_textbuf='wxUSE_TEXTBUFFER=yes'
3984 else
3985 ac_cv_use_textbuf='wxUSE_TEXTBUFFER=no'
3986 fi
3987
3988else
3989
3990 LINE=`grep "wxUSE_TEXTBUFFER" ${wx_arg_cache_file}`
3991 if test "x$LINE" != x ; then
3992 eval "DEFAULT_$LINE"
3993 else
3994 no_cache=1
3995 fi
3996
3997 ac_cv_use_textbuf='wxUSE_TEXTBUFFER='$DEFAULT_wxUSE_TEXTBUFFER
3998
3999fi
4000
4001
4002 eval "$ac_cv_use_textbuf"
4003 if test "$no_cache" != 1; then
4004 echo $ac_cv_use_textbuf >> ${wx_arg_cache_file}.tmp
4005 fi
4006
4007 if test "$wxUSE_TEXTBUFFER" = yes; then
4008 echo "$ac_t""yes" 1>&6
4009 else
4010 echo "$ac_t""no" 1>&6
4011 fi
4012
4013
1e6feb95 4014 echo $ac_n "checking for --enable-textfile""... $ac_c" 1>&6
3bd8fb5f 4015echo "configure:4016: checking for --enable-textfile" >&5
10f2d63a 4016 no_cache=0
1e6feb95
VZ
4017 # Check whether --enable-textfile or --disable-textfile was given.
4018if test "${enable_textfile+set}" = set; then
4019 enableval="$enable_textfile"
698dcdb6 4020
10f2d63a 4021 if test "$enableval" = yes; then
1e6feb95 4022 ac_cv_use_textfile='wxUSE_TEXTFILE=yes'
10f2d63a 4023 else
1e6feb95 4024 ac_cv_use_textfile='wxUSE_TEXTFILE=no'
10f2d63a 4025 fi
698dcdb6 4026
10f2d63a 4027else
698dcdb6 4028
1e6feb95 4029 LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}`
10f2d63a
VZ
4030 if test "x$LINE" != x ; then
4031 eval "DEFAULT_$LINE"
4032 else
4033 no_cache=1
4034 fi
4035
1e6feb95 4036 ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE
698dcdb6
VZ
4037
4038fi
10f2d63a
VZ
4039
4040
1e6feb95 4041 eval "$ac_cv_use_textfile"
10f2d63a 4042 if test "$no_cache" != 1; then
1e6feb95 4043 echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
4044 fi
4045
1e6feb95 4046 if test "$wxUSE_TEXTFILE" = yes; then
698dcdb6 4047 echo "$ac_t""yes" 1>&6
10f2d63a 4048 else
698dcdb6 4049 echo "$ac_t""no" 1>&6
10f2d63a 4050 fi
698dcdb6 4051
10f2d63a 4052
1e6feb95 4053 echo $ac_n "checking for --enable-fontmap""... $ac_c" 1>&6
3bd8fb5f 4054echo "configure:4055: checking for --enable-fontmap" >&5
10f2d63a 4055 no_cache=0
1e6feb95
VZ
4056 # Check whether --enable-fontmap or --disable-fontmap was given.
4057if test "${enable_fontmap+set}" = set; then
4058 enableval="$enable_fontmap"
698dcdb6 4059
10f2d63a 4060 if test "$enableval" = yes; then
1e6feb95 4061 ac_cv_use_fontmap='wxUSE_FONTMAP=yes'
10f2d63a 4062 else
1e6feb95 4063 ac_cv_use_fontmap='wxUSE_FONTMAP=no'
10f2d63a 4064 fi
698dcdb6 4065
10f2d63a 4066else
698dcdb6 4067
1e6feb95 4068 LINE=`grep "wxUSE_FONTMAP" ${wx_arg_cache_file}`
10f2d63a
VZ
4069 if test "x$LINE" != x ; then
4070 eval "DEFAULT_$LINE"
4071 else
4072 no_cache=1
4073 fi
4074
1e6feb95 4075 ac_cv_use_fontmap='wxUSE_FONTMAP='$DEFAULT_wxUSE_FONTMAP
698dcdb6
VZ
4076
4077fi
10f2d63a
VZ
4078
4079
1e6feb95 4080 eval "$ac_cv_use_fontmap"
10f2d63a 4081 if test "$no_cache" != 1; then
1e6feb95 4082 echo $ac_cv_use_fontmap >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
4083 fi
4084
1e6feb95 4085 if test "$wxUSE_FONTMAP" = yes; then
698dcdb6 4086 echo "$ac_t""yes" 1>&6
10f2d63a 4087 else
698dcdb6 4088 echo "$ac_t""no" 1>&6
10f2d63a 4089 fi
698dcdb6 4090
10f2d63a 4091
1e6feb95 4092 echo $ac_n "checking for --enable-unicode""... $ac_c" 1>&6
3bd8fb5f 4093echo "configure:4094: checking for --enable-unicode" >&5
10f2d63a 4094 no_cache=0
1e6feb95
VZ
4095 # Check whether --enable-unicode or --disable-unicode was given.
4096if test "${enable_unicode+set}" = set; then
4097 enableval="$enable_unicode"
4098
4099 if test "$enableval" = yes; then
4100 ac_cv_use_unicode='wxUSE_UNICODE=yes'
4101 else
4102 ac_cv_use_unicode='wxUSE_UNICODE=no'
4103 fi
4104
4105else
4106
4107 LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}`
4108 if test "x$LINE" != x ; then
4109 eval "DEFAULT_$LINE"
4110 else
4111 no_cache=1
4112 fi
4113
4114 ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE
4115
4116fi
4117
4118
4119 eval "$ac_cv_use_unicode"
4120 if test "$no_cache" != 1; then
4121 echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp
4122 fi
4123
4124 if test "$wxUSE_UNICODE" = yes; then
4125 echo "$ac_t""yes" 1>&6
4126 else
4127 echo "$ac_t""no" 1>&6
4128 fi
4129
4130
a72a4bfa 4131 echo $ac_n "checking for --enable-mslu""... $ac_c" 1>&6
3bd8fb5f 4132echo "configure:4133: checking for --enable-mslu" >&5
a72a4bfa
VS
4133 no_cache=0
4134 # Check whether --enable-mslu or --disable-mslu was given.
4135if test "${enable_mslu+set}" = set; then
4136 enableval="$enable_mslu"
4137
4138 if test "$enableval" = yes; then
4139 ac_cv_use_mslu='wxUSE_UNICODE_MSLU=yes'
4140 else
4141 ac_cv_use_mslu='wxUSE_UNICODE_MSLU=no'
4142 fi
4143
4144else
4145
4146 LINE=`grep "wxUSE_UNICODE_MSLU" ${wx_arg_cache_file}`
4147 if test "x$LINE" != x ; then
4148 eval "DEFAULT_$LINE"
4149 else
4150 no_cache=1
4151 fi
4152
4153 ac_cv_use_mslu='wxUSE_UNICODE_MSLU='$DEFAULT_wxUSE_UNICODE_MSLU
4154
4155fi
4156
4157
4158 eval "$ac_cv_use_mslu"
4159 if test "$no_cache" != 1; then
4160 echo $ac_cv_use_mslu >> ${wx_arg_cache_file}.tmp
4161 fi
4162
4163 if test "$wxUSE_UNICODE_MSLU" = yes; then
4164 echo "$ac_t""yes" 1>&6
4165 else
4166 echo "$ac_t""no" 1>&6
4167 fi
4168
4169
1e6feb95 4170 echo $ac_n "checking for --enable-wxprintfv""... $ac_c" 1>&6
3bd8fb5f 4171echo "configure:4172: checking for --enable-wxprintfv" >&5
1e6feb95
VZ
4172 no_cache=0
4173 # Check whether --enable-wxprintfv or --disable-wxprintfv was given.
4174if test "${enable_wxprintfv+set}" = set; then
4175 enableval="$enable_wxprintfv"
4176
4177 if test "$enableval" = yes; then
10f2d63a
VZ
4178 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=yes'
4179 else
4180 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=no'
4181 fi
698dcdb6 4182
10f2d63a 4183else
698dcdb6 4184
10f2d63a
VZ
4185 LINE=`grep "wxUSE_EXPERIMENTAL_PRINTF" ${wx_arg_cache_file}`
4186 if test "x$LINE" != x ; then
4187 eval "DEFAULT_$LINE"
4188 else
4189 no_cache=1
4190 fi
4191
4192 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF='$DEFAULT_wxUSE_EXPERIMENTAL_PRINTF
698dcdb6
VZ
4193
4194fi
10f2d63a
VZ
4195
4196
4197 eval "$ac_cv_use_wxprintfv"
4198 if test "$no_cache" != 1; then
4199 echo $ac_cv_use_wxprintfv >> ${wx_arg_cache_file}.tmp
4200 fi
4201
4202 if test "$wxUSE_EXPERIMENTAL_PRINTF" = yes; then
698dcdb6 4203 echo "$ac_t""yes" 1>&6
10f2d63a 4204 else
698dcdb6 4205 echo "$ac_t""no" 1>&6
10f2d63a 4206 fi
698dcdb6 4207
10f2d63a 4208
698dcdb6 4209 echo $ac_n "checking for --enable-std_iostreams""... $ac_c" 1>&6
3bd8fb5f 4210echo "configure:4211: checking for --enable-std_iostreams" >&5
10f2d63a
VZ
4211 no_cache=0
4212 # Check whether --enable-std_iostreams or --disable-std_iostreams was given.
4213if test "${enable_std_iostreams+set}" = set; then
4214 enableval="$enable_std_iostreams"
698dcdb6 4215
10f2d63a
VZ
4216 if test "$enableval" = yes; then
4217 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes'
4218 else
4219 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no'
4220 fi
698dcdb6 4221
10f2d63a 4222else
698dcdb6 4223
10f2d63a
VZ
4224 LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}`
4225 if test "x$LINE" != x ; then
4226 eval "DEFAULT_$LINE"
4227 else
4228 no_cache=1
4229 fi
4230
4231 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM
698dcdb6
VZ
4232
4233fi
10f2d63a
VZ
4234
4235
4236 eval "$ac_cv_use_std_iostreams"
4237 if test "$no_cache" != 1; then
4238 echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp
4239 fi
4240
4241 if test "$wxUSE_STD_IOSTREAM" = yes; then
698dcdb6 4242 echo "$ac_t""yes" 1>&6
10f2d63a 4243 else
698dcdb6 4244 echo "$ac_t""no" 1>&6
10f2d63a 4245 fi
698dcdb6 4246
10f2d63a 4247
698dcdb6 4248 echo $ac_n "checking for --enable-filesystem""... $ac_c" 1>&6
3bd8fb5f 4249echo "configure:4250: checking for --enable-filesystem" >&5
24528b0c
VS
4250 no_cache=0
4251 # Check whether --enable-filesystem or --disable-filesystem was given.
4252if test "${enable_filesystem+set}" = set; then
4253 enableval="$enable_filesystem"
698dcdb6 4254
24528b0c
VS
4255 if test "$enableval" = yes; then
4256 ac_cv_use_filesystem='wxUSE_FILESYSTEM=yes'
4257 else
4258 ac_cv_use_filesystem='wxUSE_FILESYSTEM=no'
4259 fi
698dcdb6 4260
24528b0c 4261else
698dcdb6 4262
24528b0c
VS
4263 LINE=`grep "wxUSE_FILESYSTEM" ${wx_arg_cache_file}`
4264 if test "x$LINE" != x ; then
4265 eval "DEFAULT_$LINE"
4266 else
4267 no_cache=1
4268 fi
4269
4270 ac_cv_use_filesystem='wxUSE_FILESYSTEM='$DEFAULT_wxUSE_FILESYSTEM
698dcdb6
VZ
4271
4272fi
24528b0c
VS
4273
4274
4275 eval "$ac_cv_use_filesystem"
4276 if test "$no_cache" != 1; then
4277 echo $ac_cv_use_filesystem >> ${wx_arg_cache_file}.tmp
4278 fi
4279
4280 if test "$wxUSE_FILESYSTEM" = yes; then
698dcdb6 4281 echo "$ac_t""yes" 1>&6
24528b0c 4282 else
698dcdb6 4283 echo "$ac_t""no" 1>&6
24528b0c 4284 fi
698dcdb6 4285
24528b0c 4286
698dcdb6 4287 echo $ac_n "checking for --enable-fs_inet""... $ac_c" 1>&6
3bd8fb5f 4288echo "configure:4289: checking for --enable-fs_inet" >&5
10f2d63a
VZ
4289 no_cache=0
4290 # Check whether --enable-fs_inet or --disable-fs_inet was given.
4291if test "${enable_fs_inet+set}" = set; then
4292 enableval="$enable_fs_inet"
698dcdb6 4293
10f2d63a
VZ
4294 if test "$enableval" = yes; then
4295 ac_cv_use_fs_inet='wxUSE_FS_INET=yes'
4296 else
4297 ac_cv_use_fs_inet='wxUSE_FS_INET=no'
4298 fi
698dcdb6 4299
10f2d63a 4300else
698dcdb6 4301
10f2d63a
VZ
4302 LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}`
4303 if test "x$LINE" != x ; then
4304 eval "DEFAULT_$LINE"
4305 else
4306 no_cache=1
4307 fi
4308
4309 ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET
698dcdb6
VZ
4310
4311fi
10f2d63a
VZ
4312
4313
4314 eval "$ac_cv_use_fs_inet"
4315 if test "$no_cache" != 1; then
4316 echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp
4317 fi
4318
4319 if test "$wxUSE_FS_INET" = yes; then
698dcdb6 4320 echo "$ac_t""yes" 1>&6
10f2d63a 4321 else
698dcdb6 4322 echo "$ac_t""no" 1>&6
10f2d63a 4323 fi
698dcdb6 4324
10f2d63a 4325
698dcdb6 4326 echo $ac_n "checking for --enable-fs_zip""... $ac_c" 1>&6
3bd8fb5f 4327echo "configure:4328: checking for --enable-fs_zip" >&5
10f2d63a
VZ
4328 no_cache=0
4329 # Check whether --enable-fs_zip or --disable-fs_zip was given.
4330if test "${enable_fs_zip+set}" = set; then
4331 enableval="$enable_fs_zip"
698dcdb6 4332
10f2d63a
VZ
4333 if test "$enableval" = yes; then
4334 ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes'
4335 else
4336 ac_cv_use_fs_zip='wxUSE_FS_ZIP=no'
4337 fi
698dcdb6 4338
10f2d63a 4339else
698dcdb6 4340
10f2d63a
VZ
4341 LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}`
4342 if test "x$LINE" != x ; then
4343 eval "DEFAULT_$LINE"
4344 else
4345 no_cache=1
4346 fi
4347
4348 ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP
698dcdb6
VZ
4349
4350fi
10f2d63a
VZ
4351
4352
4353 eval "$ac_cv_use_fs_zip"
4354 if test "$no_cache" != 1; then
4355 echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp
4356 fi
4357
4358 if test "$wxUSE_FS_ZIP" = yes; then
698dcdb6 4359 echo "$ac_t""yes" 1>&6
10f2d63a 4360 else
698dcdb6 4361 echo "$ac_t""no" 1>&6
10f2d63a 4362 fi
698dcdb6 4363
10f2d63a 4364
698dcdb6 4365 echo $ac_n "checking for --enable-zipstream""... $ac_c" 1>&6
3bd8fb5f 4366echo "configure:4367: checking for --enable-zipstream" >&5
10f2d63a
VZ
4367 no_cache=0
4368 # Check whether --enable-zipstream or --disable-zipstream was given.
4369if test "${enable_zipstream+set}" = set; then
4370 enableval="$enable_zipstream"
698dcdb6 4371
10f2d63a
VZ
4372 if test "$enableval" = yes; then
4373 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes'
4374 else
4375 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no'
4376 fi
698dcdb6 4377
10f2d63a 4378else
698dcdb6 4379
10f2d63a
VZ
4380 LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}`
4381 if test "x$LINE" != x ; then
4382 eval "DEFAULT_$LINE"
4383 else
4384 no_cache=1
4385 fi
4386
4387 ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM
698dcdb6
VZ
4388
4389fi
10f2d63a
VZ
4390
4391
4392 eval "$ac_cv_use_zipstream"
4393 if test "$no_cache" != 1; then
4394 echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp
4395 fi
4396
4397 if test "$wxUSE_ZIPSTREAM" = yes; then
698dcdb6 4398 echo "$ac_t""yes" 1>&6
10f2d63a 4399 else
698dcdb6 4400 echo "$ac_t""no" 1>&6
10f2d63a 4401 fi
698dcdb6 4402
10f2d63a 4403
698dcdb6
VZ
4404
4405 echo $ac_n "checking for --enable-catch_segvs""... $ac_c" 1>&6
3bd8fb5f 4406echo "configure:4407: checking for --enable-catch_segvs" >&5
eb4efbdc
VZ
4407 no_cache=0
4408 # Check whether --enable-catch_segvs or --disable-catch_segvs was given.
4409if test "${enable_catch_segvs+set}" = set; then
4410 enableval="$enable_catch_segvs"
698dcdb6 4411
eb4efbdc
VZ
4412 if test "$enableval" = yes; then
4413 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes'
4414 else
4415 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no'
4416 fi
698dcdb6 4417
eb4efbdc 4418else
698dcdb6 4419
eb4efbdc
VZ
4420 LINE=`grep "wxUSE_ON_FATAL_EXCEPTION" ${wx_arg_cache_file}`
4421 if test "x$LINE" != x ; then
4422 eval "DEFAULT_$LINE"
4423 else
4424 no_cache=1
4425 fi
4426
4427 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION='$DEFAULT_wxUSE_ON_FATAL_EXCEPTION
698dcdb6
VZ
4428
4429fi
eb4efbdc
VZ
4430
4431
4432 eval "$ac_cv_use_catch_segvs"
4433 if test "$no_cache" != 1; then
4434 echo $ac_cv_use_catch_segvs >> ${wx_arg_cache_file}.tmp
4435 fi
4436
4437 if test "$wxUSE_ON_FATAL_EXCEPTION" = yes; then
698dcdb6 4438 echo "$ac_t""yes" 1>&6
eb4efbdc 4439 else
698dcdb6 4440 echo "$ac_t""no" 1>&6
eb4efbdc 4441 fi
698dcdb6 4442
eb4efbdc 4443
698dcdb6 4444 echo $ac_n "checking for --enable-snglinst""... $ac_c" 1>&6
3bd8fb5f 4445echo "configure:4446: checking for --enable-snglinst" >&5
4f3c5f06
VZ
4446 no_cache=0
4447 # Check whether --enable-snglinst or --disable-snglinst was given.
4448if test "${enable_snglinst+set}" = set; then
4449 enableval="$enable_snglinst"
698dcdb6 4450
4f3c5f06
VZ
4451 if test "$enableval" = yes; then
4452 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=yes'
4453 else
4454 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=no'
4455 fi
698dcdb6 4456
4f3c5f06 4457else
698dcdb6 4458
4f3c5f06
VZ
4459 LINE=`grep "wxUSE_SNGLINST_CHECKER" ${wx_arg_cache_file}`
4460 if test "x$LINE" != x ; then
4461 eval "DEFAULT_$LINE"
4462 else
4463 no_cache=1
4464 fi
4465
4466 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER='$DEFAULT_wxUSE_SNGLINST_CHECKER
698dcdb6
VZ
4467
4468fi
4f3c5f06
VZ
4469
4470
4471 eval "$ac_cv_use_snglinst"
4472 if test "$no_cache" != 1; then
4473 echo $ac_cv_use_snglinst >> ${wx_arg_cache_file}.tmp
4474 fi
4475
4476 if test "$wxUSE_SNGLINST_CHECKER" = yes; then
698dcdb6 4477 echo "$ac_t""yes" 1>&6
4f3c5f06 4478 else
698dcdb6 4479 echo "$ac_t""no" 1>&6
4f3c5f06 4480 fi
698dcdb6
VZ
4481
4482
eb4efbdc 4483
1e6feb95 4484 echo $ac_n "checking for --enable-mimetype""... $ac_c" 1>&6
3bd8fb5f 4485echo "configure:4486: checking for --enable-mimetype" >&5
1e6feb95
VZ
4486 no_cache=0
4487 # Check whether --enable-mimetype or --disable-mimetype was given.
4488if test "${enable_mimetype+set}" = set; then
4489 enableval="$enable_mimetype"
4490
4491 if test "$enableval" = yes; then
4492 ac_cv_use_mimetype='wxUSE_MIMETYPE=yes'
4493 else
4494 ac_cv_use_mimetype='wxUSE_MIMETYPE=no'
4495 fi
4496
4497else
4498
4499 LINE=`grep "wxUSE_MIMETYPE" ${wx_arg_cache_file}`
4500 if test "x$LINE" != x ; then
4501 eval "DEFAULT_$LINE"
4502 else
4503 no_cache=1
4504 fi
4505
4506 ac_cv_use_mimetype='wxUSE_MIMETYPE='$DEFAULT_wxUSE_MIMETYPE
4507
4508fi
4509
4510
4511 eval "$ac_cv_use_mimetype"
4512 if test "$no_cache" != 1; then
4513 echo $ac_cv_use_mimetype >> ${wx_arg_cache_file}.tmp
4514 fi
4515
4516 if test "$wxUSE_MIMETYPE" = yes; then
4517 echo "$ac_t""yes" 1>&6
4518 else
4519 echo "$ac_t""no" 1>&6
4520 fi
4521
4522
3e44f09d 4523 echo $ac_n "checking for --enable-system_options""... $ac_c" 1>&6
3bd8fb5f 4524echo "configure:4525: checking for --enable-system_options" >&5
3e44f09d
VZ
4525 no_cache=0
4526 # Check whether --enable-system_options or --disable-system_options was given.
4527if test "${enable_system_options+set}" = set; then
4528 enableval="$enable_system_options"
4529
4530 if test "$enableval" = yes; then
4531 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=yes'
4532 else
4533 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=no'
4534 fi
4535
4536else
4537
4538 LINE=`grep "wxUSE_SYSTEM_OPTIONS" ${wx_arg_cache_file}`
4539 if test "x$LINE" != x ; then
4540 eval "DEFAULT_$LINE"
4541 else
4542 no_cache=1
4543 fi
4544
4545 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS='$DEFAULT_wxUSE_SYSTEM_OPTIONS
4546
4547fi
4548
4549
4550 eval "$ac_cv_use_system_options"
4551 if test "$no_cache" != 1; then
4552 echo $ac_cv_use_system_options >> ${wx_arg_cache_file}.tmp
4553 fi
4554
4555 if test "$wxUSE_SYSTEM_OPTIONS" = yes; then
4556 echo "$ac_t""yes" 1>&6
4557 else
4558 echo "$ac_t""no" 1>&6
4559 fi
4560
4561
1e6feb95 4562
4cdb0ab0 4563 echo $ac_n "checking for --enable-url""... $ac_c" 1>&6
3bd8fb5f 4564echo "configure:4565: checking for --enable-url" >&5
4cdb0ab0
VS
4565 no_cache=0
4566 # Check whether --enable-url or --disable-url was given.
4567if test "${enable_url+set}" = set; then
4568 enableval="$enable_url"
4569
4570 if test "$enableval" = yes; then
4571 ac_cv_use_url='wxUSE_URL=yes'
4572 else
4573 ac_cv_use_url='wxUSE_URL=no'
4574 fi
4575
4576else
4577
4578 LINE=`grep "wxUSE_URL" ${wx_arg_cache_file}`
4579 if test "x$LINE" != x ; then
4580 eval "DEFAULT_$LINE"
4581 else
4582 no_cache=1
4583 fi
4584
4585 ac_cv_use_url='wxUSE_URL='$DEFAULT_wxUSE_URL
4586
4587fi
4588
4589
4590 eval "$ac_cv_use_url"
4591 if test "$no_cache" != 1; then
4592 echo $ac_cv_use_url >> ${wx_arg_cache_file}.tmp
4593 fi
4594
4595 if test "$wxUSE_URL" = yes; then
4596 echo "$ac_t""yes" 1>&6
4597 else
4598 echo "$ac_t""no" 1>&6
4599 fi
4600
4601
4602 echo $ac_n "checking for --enable-protocol""... $ac_c" 1>&6
3bd8fb5f 4603echo "configure:4604: checking for --enable-protocol" >&5
4cdb0ab0
VS
4604 no_cache=0
4605 # Check whether --enable-protocol or --disable-protocol was given.
4606if test "${enable_protocol+set}" = set; then
4607 enableval="$enable_protocol"
4608
4609 if test "$enableval" = yes; then
4610 ac_cv_use_protocol='wxUSE_PROTOCOL=yes'
4611 else
4612 ac_cv_use_protocol='wxUSE_PROTOCOL=no'
4613 fi
4614
4615else
4616
4617 LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
4618 if test "x$LINE" != x ; then
4619 eval "DEFAULT_$LINE"
4620 else
4621 no_cache=1
4622 fi
4623
4624 ac_cv_use_protocol='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
4625
4626fi
4627
4628
4629 eval "$ac_cv_use_protocol"
4630 if test "$no_cache" != 1; then
4631 echo $ac_cv_use_protocol >> ${wx_arg_cache_file}.tmp
4632 fi
4633
4634 if test "$wxUSE_PROTOCOL" = yes; then
4635 echo "$ac_t""yes" 1>&6
4636 else
4637 echo "$ac_t""no" 1>&6
4638 fi
4639
4640
4641 echo $ac_n "checking for --enable-protocol_http""... $ac_c" 1>&6
3bd8fb5f 4642echo "configure:4643: checking for --enable-protocol_http" >&5
4cdb0ab0
VS
4643 no_cache=0
4644 # Check whether --enable-protocol_http or --disable-protocol_http was given.
4645if test "${enable_protocol_http+set}" = set; then
4646 enableval="$enable_protocol_http"
4647
4648 if test "$enableval" = yes; then
4649 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=yes'
4650 else
4651 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=no'
4652 fi
4653
4654else
4655
4656 LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
4657 if test "x$LINE" != x ; then
4658 eval "DEFAULT_$LINE"
4659 else
4660 no_cache=1
4661 fi
4662
4663 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
4664
4665fi
4666
4667
4668 eval "$ac_cv_use_protocol_http"
4669 if test "$no_cache" != 1; then
4670 echo $ac_cv_use_protocol_http >> ${wx_arg_cache_file}.tmp
4671 fi
4672
4673 if test "$wxUSE_PROTOCOL_HTTP" = yes; then
4674 echo "$ac_t""yes" 1>&6
4675 else
4676 echo "$ac_t""no" 1>&6
4677 fi
4678
4679
4680 echo $ac_n "checking for --enable-protocol_ftp""... $ac_c" 1>&6
3bd8fb5f 4681echo "configure:4682: checking for --enable-protocol_ftp" >&5
4cdb0ab0
VS
4682 no_cache=0
4683 # Check whether --enable-protocol_ftp or --disable-protocol_ftp was given.
4684if test "${enable_protocol_ftp+set}" = set; then
4685 enableval="$enable_protocol_ftp"
4686
4687 if test "$enableval" = yes; then
4688 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=yes'
4689 else
4690 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=no'
4691 fi
4692
4693else
4694
4695 LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
4696 if test "x$LINE" != x ; then
4697 eval "DEFAULT_$LINE"
4698 else
4699 no_cache=1
4700 fi
4701
4702 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
4703
4704fi
4705
4706
4707 eval "$ac_cv_use_protocol_ftp"
4708 if test "$no_cache" != 1; then
4709 echo $ac_cv_use_protocol_ftp >> ${wx_arg_cache_file}.tmp
4710 fi
4711
4712 if test "$wxUSE_PROTOCOL_FTP" = yes; then
4713 echo "$ac_t""yes" 1>&6
4714 else
4715 echo "$ac_t""no" 1>&6
4716 fi
4717
4718
4719 echo $ac_n "checking for --enable-protocol_file""... $ac_c" 1>&6
3bd8fb5f 4720echo "configure:4721: checking for --enable-protocol_file" >&5
4cdb0ab0
VS
4721 no_cache=0
4722 # Check whether --enable-protocol_file or --disable-protocol_file was given.
4723if test "${enable_protocol_file+set}" = set; then
4724 enableval="$enable_protocol_file"
4725
4726 if test "$enableval" = yes; then
4727 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=yes'
4728 else
4729 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=no'
4730 fi
4731
4732else
4733
4734 LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
4735 if test "x$LINE" != x ; then
4736 eval "DEFAULT_$LINE"
4737 else
4738 no_cache=1
4739 fi
4740
4741 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
4742
4743fi
4744
4745
4746 eval "$ac_cv_use_protocol_file"
4747 if test "$no_cache" != 1; then
4748 echo $ac_cv_use_protocol_file >> ${wx_arg_cache_file}.tmp
4749 fi
4750
4751 if test "$wxUSE_PROTOCOL_FILE" = yes; then
4752 echo "$ac_t""yes" 1>&6
4753 else
4754 echo "$ac_t""no" 1>&6
4755 fi
4756
4757
4758
4759
698dcdb6
VZ
4760
4761 echo $ac_n "checking for --enable-threads""... $ac_c" 1>&6
3bd8fb5f 4762echo "configure:4763: checking for --enable-threads" >&5
10f2d63a
VZ
4763 no_cache=0
4764 # Check whether --enable-threads or --disable-threads was given.
4765if test "${enable_threads+set}" = set; then
4766 enableval="$enable_threads"
698dcdb6 4767
10f2d63a
VZ
4768 if test "$enableval" = yes; then
4769 ac_cv_use_threads='wxUSE_THREADS=yes'
4770 else
4771 ac_cv_use_threads='wxUSE_THREADS=no'
4772 fi
698dcdb6 4773
10f2d63a 4774else
698dcdb6 4775
10f2d63a
VZ
4776 LINE=`grep "wxUSE_THREADS" ${wx_arg_cache_file}`
4777 if test "x$LINE" != x ; then
4778 eval "DEFAULT_$LINE"
4779 else
4780 no_cache=1
4781 fi
4782
4783 ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS
698dcdb6
VZ
4784
4785fi
10f2d63a
VZ
4786
4787
4788 eval "$ac_cv_use_threads"
4789 if test "$no_cache" != 1; then
4790 echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp
4791 fi
4792
4793 if test "$wxUSE_THREADS" = yes; then
698dcdb6 4794 echo "$ac_t""yes" 1>&6
10f2d63a 4795 else
698dcdb6 4796 echo "$ac_t""no" 1>&6
10f2d63a 4797 fi
698dcdb6 4798
10f2d63a 4799
b12915c1
VZ
4800if test "$wxUSE_GUI" = "yes"; then
4801
698dcdb6
VZ
4802
4803
4804 echo $ac_n "checking for --enable-docview""... $ac_c" 1>&6
3bd8fb5f 4805echo "configure:4806: checking for --enable-docview" >&5
10f2d63a
VZ
4806 no_cache=0
4807 # Check whether --enable-docview or --disable-docview was given.
4808if test "${enable_docview+set}" = set; then
4809 enableval="$enable_docview"
698dcdb6 4810
10f2d63a
VZ
4811 if test "$enableval" = yes; then
4812 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes'
4813 else
4814 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no'
4815 fi
698dcdb6 4816
10f2d63a 4817else
698dcdb6 4818
10f2d63a
VZ
4819 LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}`
4820 if test "x$LINE" != x ; then
4821 eval "DEFAULT_$LINE"
4822 else
4823 no_cache=1
4824 fi
4825
4826 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE
698dcdb6
VZ
4827
4828fi
10f2d63a
VZ
4829
4830
4831 eval "$ac_cv_use_docview"
4832 if test "$no_cache" != 1; then
4833 echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp
4834 fi
4835
4836 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then
698dcdb6 4837 echo "$ac_t""yes" 1>&6
10f2d63a 4838 else
698dcdb6 4839 echo "$ac_t""no" 1>&6
10f2d63a 4840 fi
698dcdb6 4841
10f2d63a 4842
698dcdb6 4843 echo $ac_n "checking for --enable-help""... $ac_c" 1>&6
3bd8fb5f 4844echo "configure:4845: checking for --enable-help" >&5
10f2d63a
VZ
4845 no_cache=0
4846 # Check whether --enable-help or --disable-help was given.
4847if test "${enable_help+set}" = set; then
4848 enableval="$enable_help"
698dcdb6 4849
10f2d63a
VZ
4850 if test "$enableval" = yes; then
4851 ac_cv_use_help='wxUSE_HELP=yes'
4852 else
4853 ac_cv_use_help='wxUSE_HELP=no'
4854 fi
698dcdb6 4855
10f2d63a 4856else
698dcdb6 4857
10f2d63a
VZ
4858 LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}`
4859 if test "x$LINE" != x ; then
4860 eval "DEFAULT_$LINE"
4861 else
4862 no_cache=1
4863 fi
4864
4865 ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP
698dcdb6
VZ
4866
4867fi
10f2d63a
VZ
4868
4869
4870 eval "$ac_cv_use_help"
4871 if test "$no_cache" != 1; then
4872 echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp
4873 fi
4874
4875 if test "$wxUSE_HELP" = yes; then
698dcdb6 4876 echo "$ac_t""yes" 1>&6
10f2d63a 4877 else
698dcdb6 4878 echo "$ac_t""no" 1>&6
10f2d63a 4879 fi
698dcdb6 4880
10f2d63a 4881
29fd3c0c 4882 echo $ac_n "checking for --enable-mshtmlhelp""... $ac_c" 1>&6
3bd8fb5f 4883echo "configure:4884: checking for --enable-mshtmlhelp" >&5
29fd3c0c
VS
4884 no_cache=0
4885 # Check whether --enable-mshtmlhelp or --disable-mshtmlhelp was given.
4886if test "${enable_mshtmlhelp+set}" = set; then
4887 enableval="$enable_mshtmlhelp"
4888
4889 if test "$enableval" = yes; then
4890 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=yes'
4891 else
4892 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=no'
4893 fi
4894
4895else
4896
4897 LINE=`grep "wxUSE_MS_HTML_HELP" ${wx_arg_cache_file}`
4898 if test "x$LINE" != x ; then
4899 eval "DEFAULT_$LINE"
4900 else
4901 no_cache=1
4902 fi
4903
4904 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP='$DEFAULT_wxUSE_MS_HTML_HELP
4905
4906fi
4907
4908
4909 eval "$ac_cv_use_mshtmlhelp"
4910 if test "$no_cache" != 1; then
4911 echo $ac_cv_use_mshtmlhelp >> ${wx_arg_cache_file}.tmp
4912 fi
4913
4914 if test "$wxUSE_MS_HTML_HELP" = yes; then
4915 echo "$ac_t""yes" 1>&6
4916 else
4917 echo "$ac_t""no" 1>&6
4918 fi
4919
4920
3379ed37 4921 echo $ac_n "checking for --enable-html""... $ac_c" 1>&6
3bd8fb5f 4922echo "configure:4923: checking for --enable-html" >&5
3379ed37
VZ
4923 no_cache=0
4924 # Check whether --enable-html or --disable-html was given.
4925if test "${enable_html+set}" = set; then
4926 enableval="$enable_html"
4927
4928 if test "$enableval" = yes; then
4929 ac_cv_use_html='wxUSE_HTML=yes'
4930 else
4931 ac_cv_use_html='wxUSE_HTML=no'
4932 fi
4933
4934else
4935
4936 LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}`
4937 if test "x$LINE" != x ; then
4938 eval "DEFAULT_$LINE"
4939 else
4940 no_cache=1
4941 fi
4942
4943 ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML
4944
4945fi
4946
4947
4948 eval "$ac_cv_use_html"
4949 if test "$no_cache" != 1; then
4950 echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp
4951 fi
4952
4953 if test "$wxUSE_HTML" = yes; then
4954 echo "$ac_t""yes" 1>&6
4955 else
4956 echo "$ac_t""no" 1>&6
4957 fi
4958
4959
4960 echo $ac_n "checking for --enable-htmlhelp""... $ac_c" 1>&6
3bd8fb5f 4961echo "configure:4962: checking for --enable-htmlhelp" >&5
3379ed37
VZ
4962 no_cache=0
4963 # Check whether --enable-htmlhelp or --disable-htmlhelp was given.
4964if test "${enable_htmlhelp+set}" = set; then
4965 enableval="$enable_htmlhelp"
4966
4967 if test "$enableval" = yes; then
4968 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=yes'
4969 else
4970 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=no'
4971 fi
4972
4973else
4974
4975 LINE=`grep "wxUSE_WXHTML_HELP" ${wx_arg_cache_file}`
4976 if test "x$LINE" != x ; then
4977 eval "DEFAULT_$LINE"
4978 else
4979 no_cache=1
4980 fi
4981
4982 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP='$DEFAULT_wxUSE_WXHTML_HELP
4983
4984fi
4985
4986
4987 eval "$ac_cv_use_htmlhelp"
4988 if test "$no_cache" != 1; then
4989 echo $ac_cv_use_htmlhelp >> ${wx_arg_cache_file}.tmp
4990 fi
4991
4992 if test "$wxUSE_WXHTML_HELP" = yes; then
4993 echo "$ac_t""yes" 1>&6
4994 else
4995 echo "$ac_t""no" 1>&6
4996 fi
4997
4998
698dcdb6 4999 echo $ac_n "checking for --enable-constraints""... $ac_c" 1>&6
3bd8fb5f 5000echo "configure:5001: checking for --enable-constraints" >&5
10f2d63a
VZ
5001 no_cache=0
5002 # Check whether --enable-constraints or --disable-constraints was given.
5003if test "${enable_constraints+set}" = set; then
5004 enableval="$enable_constraints"
698dcdb6 5005
10f2d63a
VZ
5006 if test "$enableval" = yes; then
5007 ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes'
5008 else
5009 ac_cv_use_constraints='wxUSE_CONSTRAINTS=no'
5010 fi
698dcdb6 5011
10f2d63a 5012else
698dcdb6 5013
10f2d63a
VZ
5014 LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}`
5015 if test "x$LINE" != x ; then
5016 eval "DEFAULT_$LINE"
5017 else
5018 no_cache=1
5019 fi
5020
5021 ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS
698dcdb6
VZ
5022
5023fi
10f2d63a
VZ
5024
5025
5026 eval "$ac_cv_use_constraints"
5027 if test "$no_cache" != 1; then
5028 echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp
5029 fi
5030
5031 if test "$wxUSE_CONSTRAINTS" = yes; then
698dcdb6 5032 echo "$ac_t""yes" 1>&6
10f2d63a 5033 else
698dcdb6 5034 echo "$ac_t""no" 1>&6
10f2d63a 5035 fi
698dcdb6 5036
10f2d63a 5037
698dcdb6 5038 echo $ac_n "checking for --enable-printarch""... $ac_c" 1>&6
3bd8fb5f 5039echo "configure:5040: checking for --enable-printarch" >&5
10f2d63a
VZ
5040 no_cache=0
5041 # Check whether --enable-printarch or --disable-printarch was given.
5042if test "${enable_printarch+set}" = set; then
5043 enableval="$enable_printarch"
698dcdb6 5044
10f2d63a
VZ
5045 if test "$enableval" = yes; then
5046 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes'
5047 else
5048 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no'
5049 fi
698dcdb6 5050
10f2d63a 5051else
698dcdb6 5052
10f2d63a
VZ
5053 LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}`
5054 if test "x$LINE" != x ; then
5055 eval "DEFAULT_$LINE"
5056 else
5057 no_cache=1
5058 fi
5059
5060 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE
698dcdb6
VZ
5061
5062fi
10f2d63a
VZ
5063
5064
5065 eval "$ac_cv_use_printarch"
5066 if test "$no_cache" != 1; then
5067 echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp
5068 fi
5069
5070 if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then
698dcdb6 5071 echo "$ac_t""yes" 1>&6
10f2d63a 5072 else
698dcdb6 5073 echo "$ac_t""no" 1>&6
10f2d63a 5074 fi
698dcdb6 5075
10f2d63a 5076
698dcdb6 5077 echo $ac_n "checking for --enable-mdi""... $ac_c" 1>&6
3bd8fb5f 5078echo "configure:5079: checking for --enable-mdi" >&5
10f2d63a
VZ
5079 no_cache=0
5080 # Check whether --enable-mdi or --disable-mdi was given.
5081if test "${enable_mdi+set}" = set; then
5082 enableval="$enable_mdi"
698dcdb6 5083
10f2d63a
VZ
5084 if test "$enableval" = yes; then
5085 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=yes'
5086 else
5087 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=no'
5088 fi
698dcdb6 5089
10f2d63a 5090else
698dcdb6 5091
10f2d63a
VZ
5092 LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}`
5093 if test "x$LINE" != x ; then
5094 eval "DEFAULT_$LINE"
5095 else
5096 no_cache=1
5097 fi
5098
5099 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE
698dcdb6
VZ
5100
5101fi
10f2d63a
VZ
5102
5103
5104 eval "$ac_cv_use_mdi"
5105 if test "$no_cache" != 1; then
5106 echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp
5107 fi
5108
5109 if test "$wxUSE_MDI_ARCHITECTURE" = yes; then
698dcdb6 5110 echo "$ac_t""yes" 1>&6
10f2d63a 5111 else
698dcdb6 5112 echo "$ac_t""no" 1>&6
10f2d63a 5113 fi
698dcdb6
VZ
5114
5115
1e6feb95 5116 echo $ac_n "checking for --enable-loggui""... $ac_c" 1>&6
3bd8fb5f 5117echo "configure:5118: checking for --enable-loggui" >&5
1e6feb95
VZ
5118 no_cache=0
5119 # Check whether --enable-loggui or --disable-loggui was given.
5120if test "${enable_loggui+set}" = set; then
5121 enableval="$enable_loggui"
5122
5123 if test "$enableval" = yes; then
5124 ac_cv_use_loggui='wxUSE_LOGGUI=yes'
5125 else
5126 ac_cv_use_loggui='wxUSE_LOGGUI=no'
5127 fi
5128
5129else
5130
5131 LINE=`grep "wxUSE_LOGGUI" ${wx_arg_cache_file}`
5132 if test "x$LINE" != x ; then
5133 eval "DEFAULT_$LINE"
5134 else
5135 no_cache=1
5136 fi
5137
5138 ac_cv_use_loggui='wxUSE_LOGGUI='$DEFAULT_wxUSE_LOGGUI
5139
5140fi
5141
5142
5143 eval "$ac_cv_use_loggui"
5144 if test "$no_cache" != 1; then
5145 echo $ac_cv_use_loggui >> ${wx_arg_cache_file}.tmp
5146 fi
5147
5148 if test "$wxUSE_LOGGUI" = yes; then
5149 echo "$ac_t""yes" 1>&6
5150 else
5151 echo "$ac_t""no" 1>&6
5152 fi
5153
5154
5155 echo $ac_n "checking for --enable-logwin""... $ac_c" 1>&6
3bd8fb5f 5156echo "configure:5157: checking for --enable-logwin" >&5
1e6feb95
VZ
5157 no_cache=0
5158 # Check whether --enable-logwin or --disable-logwin was given.
5159if test "${enable_logwin+set}" = set; then
5160 enableval="$enable_logwin"
5161
5162 if test "$enableval" = yes; then
5163 ac_cv_use_logwin='wxUSE_LOGWINDOW=yes'
5164 else
5165 ac_cv_use_logwin='wxUSE_LOGWINDOW=no'
5166 fi
5167
5168else
5169
5170 LINE=`grep "wxUSE_LOGWINDOW" ${wx_arg_cache_file}`
5171 if test "x$LINE" != x ; then
5172 eval "DEFAULT_$LINE"
5173 else
5174 no_cache=1
5175 fi
5176
5177 ac_cv_use_logwin='wxUSE_LOGWINDOW='$DEFAULT_wxUSE_LOGWINDOW
5178
5179fi
5180
5181
5182 eval "$ac_cv_use_logwin"
5183 if test "$no_cache" != 1; then
5184 echo $ac_cv_use_logwin >> ${wx_arg_cache_file}.tmp
5185 fi
5186
5187 if test "$wxUSE_LOGWINDOW" = yes; then
5188 echo "$ac_t""yes" 1>&6
5189 else
5190 echo "$ac_t""no" 1>&6
5191 fi
5192
5193
69d27ff7 5194 echo $ac_n "checking for --enable-logdialog""... $ac_c" 1>&6
3bd8fb5f 5195echo "configure:5196: checking for --enable-logdialog" >&5
69d27ff7
MB
5196 no_cache=0
5197 # Check whether --enable-logdialog or --disable-logdialog was given.
5198if test "${enable_logdialog+set}" = set; then
5199 enableval="$enable_logdialog"
5200
5201 if test "$enableval" = yes; then
5202 ac_cv_use_logdialog='wxUSE_LOGDIALOG=yes'
5203 else
5204 ac_cv_use_logdialog='wxUSE_LOGDIALOG=no'
5205 fi
5206
5207else
5208
5209 LINE=`grep "wxUSE_LOGDIALOG" ${wx_arg_cache_file}`
5210 if test "x$LINE" != x ; then
5211 eval "DEFAULT_$LINE"
5212 else
5213 no_cache=1
5214 fi
5215
5216 ac_cv_use_logdialog='wxUSE_LOGDIALOG='$DEFAULT_wxUSE_LOGDIALOG
5217
5218fi
5219
5220
5221 eval "$ac_cv_use_logdialog"
5222 if test "$no_cache" != 1; then
5223 echo $ac_cv_use_logdialog >> ${wx_arg_cache_file}.tmp
5224 fi
5225
5226 if test "$wxUSE_LOGDIALOG" = yes; then
5227 echo "$ac_t""yes" 1>&6
5228 else
5229 echo "$ac_t""no" 1>&6
5230 fi
5231
5232
10f2d63a 5233
698dcdb6 5234 echo $ac_n "checking for --enable-postscript""... $ac_c" 1>&6
3bd8fb5f 5235echo "configure:5236: checking for --enable-postscript" >&5
10f2d63a
VZ
5236 no_cache=0
5237 # Check whether --enable-postscript or --disable-postscript was given.
5238if test "${enable_postscript+set}" = set; then
5239 enableval="$enable_postscript"
698dcdb6 5240
10f2d63a
VZ
5241 if test "$enableval" = yes; then
5242 ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes'
5243 else
5244 ac_cv_use_postscript='wxUSE_POSTSCRIPT=no'
5245 fi
698dcdb6 5246
10f2d63a 5247else
698dcdb6 5248
10f2d63a
VZ
5249 LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}`
5250 if test "x$LINE" != x ; then
5251 eval "DEFAULT_$LINE"
5252 else
5253 no_cache=1
5254 fi
5255
5256 ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT
698dcdb6
VZ
5257
5258fi
10f2d63a
VZ
5259
5260
5261 eval "$ac_cv_use_postscript"
5262 if test "$no_cache" != 1; then
5263 echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp
5264 fi
5265
5266 if test "$wxUSE_POSTSCRIPT" = yes; then
698dcdb6 5267 echo "$ac_t""yes" 1>&6
10f2d63a 5268 else
698dcdb6 5269 echo "$ac_t""no" 1>&6
10f2d63a 5270 fi
698dcdb6
VZ
5271
5272
5273
10f2d63a 5274
1e6feb95 5275
698dcdb6 5276 echo $ac_n "checking for --enable-prologio""... $ac_c" 1>&6
3bd8fb5f 5277echo "configure:5278: checking for --enable-prologio" >&5
10f2d63a
VZ
5278 no_cache=0
5279 # Check whether --enable-prologio or --disable-prologio was given.
5280if test "${enable_prologio+set}" = set; then
5281 enableval="$enable_prologio"
698dcdb6 5282
10f2d63a
VZ
5283 if test "$enableval" = yes; then
5284 ac_cv_use_prologio='wxUSE_PROLOGIO=yes'
5285 else
5286 ac_cv_use_prologio='wxUSE_PROLOGIO=no'
5287 fi
698dcdb6 5288
10f2d63a 5289else
698dcdb6 5290
10f2d63a
VZ
5291 LINE=`grep "wxUSE_PROLOGIO" ${wx_arg_cache_file}`
5292 if test "x$LINE" != x ; then
5293 eval "DEFAULT_$LINE"
5294 else
5295 no_cache=1
5296 fi
5297
5298 ac_cv_use_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO
698dcdb6
VZ
5299
5300fi
10f2d63a
VZ
5301
5302
5303 eval "$ac_cv_use_prologio"
5304 if test "$no_cache" != 1; then
5305 echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp
5306 fi
5307
5308 if test "$wxUSE_PROLOGIO" = yes; then
698dcdb6 5309 echo "$ac_t""yes" 1>&6
10f2d63a 5310 else
698dcdb6 5311 echo "$ac_t""no" 1>&6
10f2d63a 5312 fi
698dcdb6 5313
10f2d63a 5314
698dcdb6 5315 echo $ac_n "checking for --enable-resources""... $ac_c" 1>&6
3bd8fb5f 5316echo "configure:5317: checking for --enable-resources" >&5
10f2d63a
VZ
5317 no_cache=0
5318 # Check whether --enable-resources or --disable-resources was given.
5319if test "${enable_resources+set}" = set; then
5320 enableval="$enable_resources"
698dcdb6 5321
10f2d63a
VZ
5322 if test "$enableval" = yes; then
5323 ac_cv_use_resources='wxUSE_RESOURCES=yes'
5324 else
5325 ac_cv_use_resources='wxUSE_RESOURCES=no'
5326 fi
698dcdb6 5327
10f2d63a 5328else
698dcdb6 5329
10f2d63a
VZ
5330 LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}`
5331 if test "x$LINE" != x ; then
5332 eval "DEFAULT_$LINE"
5333 else
5334 no_cache=1
5335 fi
5336
5337 ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES
698dcdb6
VZ
5338
5339fi
10f2d63a
VZ
5340
5341
5342 eval "$ac_cv_use_resources"
5343 if test "$no_cache" != 1; then
5344 echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp
5345 fi
5346
5347 if test "$wxUSE_RESOURCES" = yes; then
698dcdb6 5348 echo "$ac_t""yes" 1>&6
10f2d63a 5349 else
698dcdb6 5350 echo "$ac_t""no" 1>&6
10f2d63a 5351 fi
698dcdb6 5352
10f2d63a 5353
698dcdb6
VZ
5354
5355 echo $ac_n "checking for --enable-xresources""... $ac_c" 1>&6
3bd8fb5f 5356echo "configure:5357: checking for --enable-xresources" >&5
10f2d63a
VZ
5357 no_cache=0
5358 # Check whether --enable-xresources or --disable-xresources was given.
5359if test "${enable_xresources+set}" = set; then
5360 enableval="$enable_xresources"
698dcdb6 5361
10f2d63a
VZ
5362 if test "$enableval" = yes; then
5363 ac_cv_use_xresources='wxUSE_X_RESOURCES=yes'
5364 else
5365 ac_cv_use_xresources='wxUSE_X_RESOURCES=no'
5366 fi
698dcdb6 5367
10f2d63a 5368else
698dcdb6 5369
10f2d63a
VZ
5370 LINE=`grep "wxUSE_X_RESOURCES" ${wx_arg_cache_file}`
5371 if test "x$LINE" != x ; then
5372 eval "DEFAULT_$LINE"
5373 else
5374 no_cache=1
5375 fi
5376
5377 ac_cv_use_xresources='wxUSE_X_RESOURCES='$DEFAULT_wxUSE_X_RESOURCES
698dcdb6
VZ
5378
5379fi
10f2d63a
VZ
5380
5381
5382 eval "$ac_cv_use_xresources"
5383 if test "$no_cache" != 1; then
5384 echo $ac_cv_use_xresources >> ${wx_arg_cache_file}.tmp
5385 fi
5386
5387 if test "$wxUSE_X_RESOURCES" = yes; then
698dcdb6 5388 echo "$ac_t""yes" 1>&6
10f2d63a 5389 else
698dcdb6 5390 echo "$ac_t""no" 1>&6
10f2d63a 5391 fi
698dcdb6
VZ
5392
5393
10f2d63a 5394
698dcdb6
VZ
5395
5396 echo $ac_n "checking for --enable-clipboard""... $ac_c" 1>&6
3bd8fb5f 5397echo "configure:5398: checking for --enable-clipboard" >&5
10f2d63a
VZ
5398 no_cache=0
5399 # Check whether --enable-clipboard or --disable-clipboard was given.
5400if test "${enable_clipboard+set}" = set; then
5401 enableval="$enable_clipboard"
698dcdb6 5402
10f2d63a
VZ
5403 if test "$enableval" = yes; then
5404 ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes'
5405 else
5406 ac_cv_use_clipboard='wxUSE_CLIPBOARD=no'
5407 fi
698dcdb6 5408
10f2d63a 5409else
698dcdb6 5410
10f2d63a
VZ
5411 LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}`
5412 if test "x$LINE" != x ; then
5413 eval "DEFAULT_$LINE"
5414 else
5415 no_cache=1
5416 fi
5417
5418 ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD
698dcdb6
VZ
5419
5420fi
10f2d63a
VZ
5421
5422
5423 eval "$ac_cv_use_clipboard"
5424 if test "$no_cache" != 1; then
5425 echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp
5426 fi
5427
5428 if test "$wxUSE_CLIPBOARD" = yes; then
698dcdb6 5429 echo "$ac_t""yes" 1>&6
10f2d63a 5430 else
698dcdb6 5431 echo "$ac_t""no" 1>&6
10f2d63a 5432 fi
698dcdb6 5433
10f2d63a 5434
698dcdb6 5435 echo $ac_n "checking for --enable-dnd""... $ac_c" 1>&6
3bd8fb5f 5436echo "configure:5437: checking for --enable-dnd" >&5
10f2d63a
VZ
5437 no_cache=0
5438 # Check whether --enable-dnd or --disable-dnd was given.
5439if test "${enable_dnd+set}" = set; then
5440 enableval="$enable_dnd"
698dcdb6 5441
10f2d63a
VZ
5442 if test "$enableval" = yes; then
5443 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes'
5444 else
5445 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no'
5446 fi
698dcdb6 5447
10f2d63a 5448else
698dcdb6 5449
10f2d63a
VZ
5450 LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}`
5451 if test "x$LINE" != x ; then
5452 eval "DEFAULT_$LINE"
5453 else
5454 no_cache=1
5455 fi
5456
5457 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP
698dcdb6
VZ
5458
5459fi
10f2d63a
VZ
5460
5461
5462 eval "$ac_cv_use_dnd"
5463 if test "$no_cache" != 1; then
5464 echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp
5465 fi
5466
5467 if test "$wxUSE_DRAG_AND_DROP" = yes; then
698dcdb6 5468 echo "$ac_t""yes" 1>&6
10f2d63a 5469 else
698dcdb6 5470 echo "$ac_t""no" 1>&6
10f2d63a 5471 fi
698dcdb6 5472
10f2d63a 5473
698dcdb6 5474 echo $ac_n "checking for --enable-metafile""... $ac_c" 1>&6
3bd8fb5f 5475echo "configure:5476: checking for --enable-metafile" >&5
b64f0a5f
RL
5476 no_cache=0
5477 # Check whether --enable-metafile or --disable-metafile was given.
5478if test "${enable_metafile+set}" = set; then
5479 enableval="$enable_metafile"
698dcdb6 5480
b64f0a5f
RL
5481 if test "$enableval" = yes; then
5482 ac_cv_use_metafile='wxUSE_METAFILE=yes'
5483 else
5484 ac_cv_use_metafile='wxUSE_METAFILE=no'
5485 fi
698dcdb6 5486
b64f0a5f 5487else
698dcdb6 5488
b64f0a5f
RL
5489 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
5490 if test "x$LINE" != x ; then
5491 eval "DEFAULT_$LINE"
5492 else
5493 no_cache=1
5494 fi
5495
5496 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
698dcdb6
VZ
5497
5498fi
b64f0a5f
RL
5499
5500
5501 eval "$ac_cv_use_metafile"
5502 if test "$no_cache" != 1; then
5503 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
5504 fi
5505
5506 if test "$wxUSE_METAFILE" = yes; then
698dcdb6 5507 echo "$ac_t""yes" 1>&6
b64f0a5f 5508 else
698dcdb6 5509 echo "$ac_t""no" 1>&6
b64f0a5f 5510 fi
698dcdb6
VZ
5511
5512
10f2d63a 5513
24176f2c 5514 echo $ac_n "checking for --enable-treelayout""... $ac_c" 1>&6
3bd8fb5f 5515echo "configure:5516: checking for --enable-treelayout" >&5
10f2d63a 5516 no_cache=0
24176f2c
GD
5517 # Check whether --enable-treelayout or --disable-treelayout was given.
5518if test "${enable_treelayout+set}" = set; then
5519 enableval="$enable_treelayout"
698dcdb6 5520
10f2d63a 5521 if test "$enableval" = yes; then
24176f2c 5522 ac_cv_use_treelayout='wxUSE_TREELAYOUT=yes'
10f2d63a 5523 else
24176f2c 5524 ac_cv_use_treelayout='wxUSE_TREELAYOUT=no'
10f2d63a 5525 fi
698dcdb6 5526
10f2d63a 5527else
698dcdb6 5528
24176f2c 5529 LINE=`grep "wxUSE_TREELAYOUT" ${wx_arg_cache_file}`
10f2d63a
VZ
5530 if test "x$LINE" != x ; then
5531 eval "DEFAULT_$LINE"
5532 else
5533 no_cache=1
5534 fi
5535
24176f2c 5536 ac_cv_use_treelayout='wxUSE_TREELAYOUT='$DEFAULT_wxUSE_TREELAYOUT
698dcdb6
VZ
5537
5538fi
10f2d63a
VZ
5539
5540
24176f2c 5541 eval "$ac_cv_use_treelayout"
10f2d63a 5542 if test "$no_cache" != 1; then
24176f2c 5543 echo $ac_cv_use_treelayout >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
5544 fi
5545
24176f2c 5546 if test "$wxUSE_TREELAYOUT" = yes; then
698dcdb6 5547 echo "$ac_t""yes" 1>&6
10f2d63a 5548 else
698dcdb6 5549 echo "$ac_t""no" 1>&6
10f2d63a 5550 fi
698dcdb6 5551
10f2d63a 5552
698dcdb6
VZ
5553
5554
5555 echo $ac_n "checking for --enable-controls""... $ac_c" 1>&6
3bd8fb5f 5556echo "configure:5557: checking for --enable-controls" >&5
10f2d63a
VZ
5557 no_cache=0
5558 # Check whether --enable-controls or --disable-controls was given.
5559if test "${enable_controls+set}" = set; then
5560 enableval="$enable_controls"
698dcdb6 5561
10f2d63a
VZ
5562 if test "$enableval" = yes; then
5563 ac_cv_use_controls='wxUSE_CONTROLS=yes'
5564 else
5565 ac_cv_use_controls='wxUSE_CONTROLS=no'
5566 fi
698dcdb6 5567
10f2d63a 5568else
698dcdb6 5569
10f2d63a
VZ
5570 LINE=`grep "wxUSE_CONTROLS" ${wx_arg_cache_file}`
5571 if test "x$LINE" != x ; then
5572 eval "DEFAULT_$LINE"
5573 else
5574 no_cache=1
5575 fi
5576
5577 ac_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS
698dcdb6
VZ
5578
5579fi
10f2d63a
VZ
5580
5581
5582 eval "$ac_cv_use_controls"
5583 if test "$no_cache" != 1; then
5584 echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp
5585 fi
5586
5587 if test "$wxUSE_CONTROLS" = yes; then
698dcdb6 5588 echo "$ac_t""yes" 1>&6
10f2d63a 5589 else
698dcdb6 5590 echo "$ac_t""no" 1>&6
10f2d63a 5591 fi
698dcdb6 5592
10f2d63a
VZ
5593
5594if test "$wxUSE_CONTROLS" = "yes"; then
5595 DEFAULT_wxUSE_ACCEL=yes
1e6feb95
VZ
5596 DEFAULT_wxUSE_BMPBUTTON=yes
5597 DEFAULT_wxUSE_BUTTON=yes
5598 DEFAULT_wxUSE_CALCTRL=no
10f2d63a
VZ
5599 DEFAULT_wxUSE_CARET=yes
5600 DEFAULT_wxUSE_COMBOBOX=yes
10f2d63a
VZ
5601 DEFAULT_wxUSE_CHECKBOX=yes
5602 DEFAULT_wxUSE_CHECKLISTBOX=yes
5603 DEFAULT_wxUSE_CHOICE=yes
5604 DEFAULT_wxUSE_GAUGE=yes
5605 DEFAULT_wxUSE_GRID=yes
cc977e5f 5606 DEFAULT_wxUSE_NEW_GRID=yes
10f2d63a
VZ
5607 DEFAULT_wxUSE_IMAGLIST=yes
5608 DEFAULT_wxUSE_LISTBOX=yes
5609 DEFAULT_wxUSE_LISTCTRL=yes
5610 DEFAULT_wxUSE_NOTEBOOK=yes
24176f2c 5611 DEFAULT_wxUSE_PROPSHEET=yes
10f2d63a
VZ
5612 DEFAULT_wxUSE_RADIOBOX=yes
5613 DEFAULT_wxUSE_RADIOBTN=yes
5614 DEFAULT_wxUSE_SASH=yes
5615 DEFAULT_wxUSE_SCROLLBAR=yes
5616 DEFAULT_wxUSE_SLIDER=yes
5617 DEFAULT_wxUSE_SPINBTN=yes
56cfaa52 5618 DEFAULT_wxUSE_SPINCTRL=yes
10f2d63a
VZ
5619 DEFAULT_wxUSE_SPLITTER=yes
5620 DEFAULT_wxUSE_STATBMP=yes
5621 DEFAULT_wxUSE_STATBOX=yes
5622 DEFAULT_wxUSE_STATLINE=yes
5623 DEFAULT_wxUSE_STATUSBAR=yes
5624 DEFAULT_wxUSE_TAB_DIALOG=yes
1db8dc4a 5625 DEFAULT_wxUSE_TOGGLEBTN=yes
10f2d63a 5626 DEFAULT_wxUSE_TOOLBAR=yes
360d6699
VZ
5627 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
5628 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
10f2d63a
VZ
5629 DEFAULT_wxUSE_TOOLTIPS=yes
5630 DEFAULT_wxUSE_TREECTRL=yes
9f41d601 5631 DEFAULT_wxUSE_POPUPWIN=yes
9926e4a4 5632 DEFAULT_wxUSE_TIPWINDOW=yes
10f2d63a
VZ
5633elif test "$wxUSE_CONTROLS" = "no"; then
5634 DEFAULT_wxUSE_ACCEL=no
1e6feb95
VZ
5635 DEFAULT_wxUSE_BMPBUTTON=no
5636 DEFAULT_wxUSE_BUTTON=no
5637 DEFAULT_wxUSE_CALCTRL=no
10f2d63a
VZ
5638 DEFAULT_wxUSE_CARET=no
5639 DEFAULT_wxUSE_COMBOBOX=no
10f2d63a
VZ
5640 DEFAULT_wxUSE_CHECKBOX=no
5641 DEFAULT_wxUSE_CHECKLISTBOX=no
5642 DEFAULT_wxUSE_CHOICE=no
5643 DEFAULT_wxUSE_GAUGE=no
5644 DEFAULT_wxUSE_GRID=no
5645 DEFAULT_wxUSE_NEW_GRID=no
5646 DEFAULT_wxUSE_IMAGLIST=no
5647 DEFAULT_wxUSE_LISTBOX=no
5648 DEFAULT_wxUSE_LISTCTRL=no
5649 DEFAULT_wxUSE_NOTEBOOK=no
24176f2c 5650 DEFAULT_wxUSE_PROPSHEET=no
10f2d63a
VZ
5651 DEFAULT_wxUSE_RADIOBOX=no
5652 DEFAULT_wxUSE_RADIOBTN=no
5653 DEFAULT_wxUSE_SASH=no
5654 DEFAULT_wxUSE_SCROLLBAR=no
5655 DEFAULT_wxUSE_SLIDER=no
5656 DEFAULT_wxUSE_SPINBTN=no
56cfaa52 5657 DEFAULT_wxUSE_SPINCTRL=no
10f2d63a
VZ
5658 DEFAULT_wxUSE_SPLITTER=no
5659 DEFAULT_wxUSE_STATBMP=no
5660 DEFAULT_wxUSE_STATBOX=no
5661 DEFAULT_wxUSE_STATLINE=no
5662 DEFAULT_wxUSE_STATUSBAR=no
5663 DEFAULT_wxUSE_TAB_DIALOG=no
1db8dc4a 5664 DEFAULT_wxUSE_TOGGLEBTN=no
10f2d63a 5665 DEFAULT_wxUSE_TOOLBAR=no
360d6699
VZ
5666 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
5667 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
10f2d63a
VZ
5668 DEFAULT_wxUSE_TOOLTIPS=no
5669 DEFAULT_wxUSE_TREECTRL=no
9f41d601 5670 DEFAULT_wxUSE_POPUPWIN=no
9926e4a4 5671 DEFAULT_wxUSE_TIPWINDOW=no
10f2d63a
VZ
5672fi
5673
698dcdb6
VZ
5674
5675 echo $ac_n "checking for --enable-accel""... $ac_c" 1>&6
3bd8fb5f 5676echo "configure:5677: checking for --enable-accel" >&5
10f2d63a
VZ
5677 no_cache=0
5678 # Check whether --enable-accel or --disable-accel was given.
5679if test "${enable_accel+set}" = set; then
5680 enableval="$enable_accel"
698dcdb6 5681
10f2d63a
VZ
5682 if test "$enableval" = yes; then
5683 ac_cv_use_accel='wxUSE_ACCEL=yes'
5684 else
5685 ac_cv_use_accel='wxUSE_ACCEL=no'
5686 fi
698dcdb6 5687
10f2d63a 5688else
698dcdb6 5689
10f2d63a
VZ
5690 LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}`
5691 if test "x$LINE" != x ; then
5692 eval "DEFAULT_$LINE"
5693 else
5694 no_cache=1
5695 fi
5696
5697 ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL
698dcdb6
VZ
5698
5699fi
10f2d63a
VZ
5700
5701
5702 eval "$ac_cv_use_accel"
5703 if test "$no_cache" != 1; then
5704 echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp
5705 fi
5706
5707 if test "$wxUSE_ACCEL" = yes; then
698dcdb6 5708 echo "$ac_t""yes" 1>&6
10f2d63a 5709 else
698dcdb6 5710 echo "$ac_t""no" 1>&6
10f2d63a 5711 fi
698dcdb6 5712
10f2d63a 5713
1e6feb95 5714 echo $ac_n "checking for --enable-button""... $ac_c" 1>&6
3bd8fb5f 5715echo "configure:5716: checking for --enable-button" >&5
10f2d63a 5716 no_cache=0
1e6feb95
VZ
5717 # Check whether --enable-button or --disable-button was given.
5718if test "${enable_button+set}" = set; then
5719 enableval="$enable_button"
698dcdb6 5720
10f2d63a 5721 if test "$enableval" = yes; then
1e6feb95 5722 ac_cv_use_button='wxUSE_BUTTON=yes'
10f2d63a 5723 else
1e6feb95 5724 ac_cv_use_button='wxUSE_BUTTON=no'
10f2d63a 5725 fi
698dcdb6 5726
10f2d63a 5727else
698dcdb6 5728
1e6feb95 5729 LINE=`grep "wxUSE_BUTTON" ${wx_arg_cache_file}`
10f2d63a
VZ
5730 if test "x$LINE" != x ; then
5731 eval "DEFAULT_$LINE"
5732 else
5733 no_cache=1
5734 fi
5735
1e6feb95 5736 ac_cv_use_button='wxUSE_BUTTON='$DEFAULT_wxUSE_BUTTON
698dcdb6
VZ
5737
5738fi
10f2d63a
VZ
5739
5740
1e6feb95 5741 eval "$ac_cv_use_button"
10f2d63a 5742 if test "$no_cache" != 1; then
1e6feb95 5743 echo $ac_cv_use_button >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
5744 fi
5745
1e6feb95 5746 if test "$wxUSE_BUTTON" = yes; then
698dcdb6 5747 echo "$ac_t""yes" 1>&6
10f2d63a 5748 else
698dcdb6 5749 echo "$ac_t""no" 1>&6
10f2d63a 5750 fi
698dcdb6 5751
10f2d63a 5752
698dcdb6 5753 echo $ac_n "checking for --enable-bmpbutton""... $ac_c" 1>&6
3bd8fb5f 5754echo "configure:5755: checking for --enable-bmpbutton" >&5
10f2d63a
VZ
5755 no_cache=0
5756 # Check whether --enable-bmpbutton or --disable-bmpbutton was given.
5757if test "${enable_bmpbutton+set}" = set; then
5758 enableval="$enable_bmpbutton"
698dcdb6 5759
10f2d63a
VZ
5760 if test "$enableval" = yes; then
5761 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes'
5762 else
5763 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no'
5764 fi
698dcdb6 5765
10f2d63a 5766else
698dcdb6 5767
10f2d63a
VZ
5768 LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}`
5769 if test "x$LINE" != x ; then
5770 eval "DEFAULT_$LINE"
5771 else
5772 no_cache=1
5773 fi
5774
5775 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON
698dcdb6
VZ
5776
5777fi
10f2d63a
VZ
5778
5779
5780 eval "$ac_cv_use_bmpbutton"
5781 if test "$no_cache" != 1; then
5782 echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp
5783 fi
5784
5785 if test "$wxUSE_BMPBUTTON" = yes; then
698dcdb6 5786 echo "$ac_t""yes" 1>&6
10f2d63a 5787 else
698dcdb6 5788 echo "$ac_t""no" 1>&6
10f2d63a 5789 fi
698dcdb6 5790
10f2d63a 5791
1e6feb95 5792 echo $ac_n "checking for --enable-calendar""... $ac_c" 1>&6
3bd8fb5f 5793echo "configure:5794: checking for --enable-calendar" >&5
1e6feb95
VZ
5794 no_cache=0
5795 # Check whether --enable-calendar or --disable-calendar was given.
5796if test "${enable_calendar+set}" = set; then
5797 enableval="$enable_calendar"
5798
5799 if test "$enableval" = yes; then
5800 ac_cv_use_calendar='wxUSE_CALCTRL=yes'
5801 else
5802 ac_cv_use_calendar='wxUSE_CALCTRL=no'
5803 fi
5804
5805else
5806
5807 LINE=`grep "wxUSE_CALCTRL" ${wx_arg_cache_file}`
5808 if test "x$LINE" != x ; then
5809 eval "DEFAULT_$LINE"
5810 else
5811 no_cache=1
5812 fi
5813
5814 ac_cv_use_calendar='wxUSE_CALCTRL='$DEFAULT_wxUSE_CALCTRL
5815
5816fi
5817
5818
5819 eval "$ac_cv_use_calendar"
5820 if test "$no_cache" != 1; then
5821 echo $ac_cv_use_calendar >> ${wx_arg_cache_file}.tmp
5822 fi
5823
5824 if test "$wxUSE_CALCTRL" = yes; then
5825 echo "$ac_t""yes" 1>&6
5826 else
5827 echo "$ac_t""no" 1>&6
5828 fi
5829
5830
5831 echo $ac_n "checking for --enable-caret""... $ac_c" 1>&6
3bd8fb5f 5832echo "configure:5833: checking for --enable-caret" >&5
1e6feb95
VZ
5833 no_cache=0
5834 # Check whether --enable-caret or --disable-caret was given.
5835if test "${enable_caret+set}" = set; then
5836 enableval="$enable_caret"
5837
5838 if test "$enableval" = yes; then
5839 ac_cv_use_caret='wxUSE_CARET=yes'
5840 else
5841 ac_cv_use_caret='wxUSE_CARET=no'
5842 fi
5843
5844else
5845
5846 LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}`
5847 if test "x$LINE" != x ; then
5848 eval "DEFAULT_$LINE"
5849 else
5850 no_cache=1
5851 fi
5852
5853 ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET
5854
5855fi
5856
5857
5858 eval "$ac_cv_use_caret"
5859 if test "$no_cache" != 1; then
5860 echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp
5861 fi
5862
5863 if test "$wxUSE_CARET" = yes; then
5864 echo "$ac_t""yes" 1>&6
5865 else
5866 echo "$ac_t""no" 1>&6
5867 fi
5868
5869
698dcdb6 5870 echo $ac_n "checking for --enable-checkbox""... $ac_c" 1>&6
3bd8fb5f 5871echo "configure:5872: checking for --enable-checkbox" >&5
10f2d63a
VZ
5872 no_cache=0
5873 # Check whether --enable-checkbox or --disable-checkbox was given.
5874if test "${enable_checkbox+set}" = set; then
5875 enableval="$enable_checkbox"
698dcdb6 5876
10f2d63a
VZ
5877 if test "$enableval" = yes; then
5878 ac_cv_use_checkbox='wxUSE_CHECKBOX=yes'
5879 else
5880 ac_cv_use_checkbox='wxUSE_CHECKBOX=no'
5881 fi
698dcdb6 5882
10f2d63a 5883else
698dcdb6 5884
10f2d63a
VZ
5885 LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}`
5886 if test "x$LINE" != x ; then
5887 eval "DEFAULT_$LINE"
5888 else
5889 no_cache=1
5890 fi
5891
5892 ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX
698dcdb6
VZ
5893
5894fi
10f2d63a
VZ
5895
5896
5897 eval "$ac_cv_use_checkbox"
5898 if test "$no_cache" != 1; then
5899 echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp
5900 fi
5901
5902 if test "$wxUSE_CHECKBOX" = yes; then
698dcdb6 5903 echo "$ac_t""yes" 1>&6
10f2d63a 5904 else
698dcdb6 5905 echo "$ac_t""no" 1>&6
10f2d63a 5906 fi
698dcdb6 5907
10f2d63a 5908
698dcdb6 5909 echo $ac_n "checking for --enable-checklst""... $ac_c" 1>&6
3bd8fb5f 5910echo "configure:5911: checking for --enable-checklst" >&5
10f2d63a
VZ
5911 no_cache=0
5912 # Check whether --enable-checklst or --disable-checklst was given.
5913if test "${enable_checklst+set}" = set; then
5914 enableval="$enable_checklst"
698dcdb6 5915
10f2d63a
VZ
5916 if test "$enableval" = yes; then
5917 ac_cv_use_checklst='wxUSE_CHECKLST=yes'
5918 else
5919 ac_cv_use_checklst='wxUSE_CHECKLST=no'
5920 fi
698dcdb6 5921
10f2d63a 5922else
698dcdb6 5923
10f2d63a
VZ
5924 LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}`
5925 if test "x$LINE" != x ; then
5926 eval "DEFAULT_$LINE"
5927 else
5928 no_cache=1
5929 fi
5930
5931 ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST
698dcdb6
VZ
5932
5933fi
10f2d63a
VZ
5934
5935
5936 eval "$ac_cv_use_checklst"
5937 if test "$no_cache" != 1; then
5938 echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp
5939 fi
5940
5941 if test "$wxUSE_CHECKLST" = yes; then
698dcdb6 5942 echo "$ac_t""yes" 1>&6
10f2d63a 5943 else
698dcdb6 5944 echo "$ac_t""no" 1>&6
10f2d63a 5945 fi
698dcdb6 5946
10f2d63a 5947
698dcdb6 5948 echo $ac_n "checking for --enable-choice""... $ac_c" 1>&6
3bd8fb5f 5949echo "configure:5950: checking for --enable-choice" >&5
10f2d63a
VZ
5950 no_cache=0
5951 # Check whether --enable-choice or --disable-choice was given.
5952if test "${enable_choice+set}" = set; then
5953 enableval="$enable_choice"
698dcdb6 5954
10f2d63a
VZ
5955 if test "$enableval" = yes; then
5956 ac_cv_use_choice='wxUSE_CHOICE=yes'
5957 else
5958 ac_cv_use_choice='wxUSE_CHOICE=no'
5959 fi
698dcdb6 5960
10f2d63a 5961else
698dcdb6 5962
10f2d63a
VZ
5963 LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}`
5964 if test "x$LINE" != x ; then
5965 eval "DEFAULT_$LINE"
5966 else
5967 no_cache=1
5968 fi
5969
5970 ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE
698dcdb6
VZ
5971
5972fi
10f2d63a
VZ
5973
5974
5975 eval "$ac_cv_use_choice"
5976 if test "$no_cache" != 1; then
5977 echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp
5978 fi
5979
5980 if test "$wxUSE_CHOICE" = yes; then
698dcdb6 5981 echo "$ac_t""yes" 1>&6
10f2d63a 5982 else
698dcdb6 5983 echo "$ac_t""no" 1>&6
10f2d63a 5984 fi
698dcdb6 5985
10f2d63a 5986
698dcdb6 5987 echo $ac_n "checking for --enable-combobox""... $ac_c" 1>&6
3bd8fb5f 5988echo "configure:5989: checking for --enable-combobox" >&5
10f2d63a
VZ
5989 no_cache=0
5990 # Check whether --enable-combobox or --disable-combobox was given.
5991if test "${enable_combobox+set}" = set; then
5992 enableval="$enable_combobox"
698dcdb6 5993
10f2d63a
VZ
5994 if test "$enableval" = yes; then
5995 ac_cv_use_combobox='wxUSE_COMBOBOX=yes'
5996 else
5997 ac_cv_use_combobox='wxUSE_COMBOBOX=no'
5998 fi
698dcdb6 5999
10f2d63a 6000else
698dcdb6 6001
10f2d63a
VZ
6002 LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}`
6003 if test "x$LINE" != x ; then
6004 eval "DEFAULT_$LINE"
6005 else
6006 no_cache=1
6007 fi
6008
6009 ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX
698dcdb6
VZ
6010
6011fi
10f2d63a
VZ
6012
6013
6014 eval "$ac_cv_use_combobox"
6015 if test "$no_cache" != 1; then
6016 echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp
6017 fi
6018
6019 if test "$wxUSE_COMBOBOX" = yes; then
698dcdb6 6020 echo "$ac_t""yes" 1>&6
10f2d63a 6021 else
698dcdb6 6022 echo "$ac_t""no" 1>&6
10f2d63a 6023 fi
698dcdb6 6024
10f2d63a 6025
698dcdb6 6026 echo $ac_n "checking for --enable-gauge""... $ac_c" 1>&6
3bd8fb5f 6027echo "configure:6028: checking for --enable-gauge" >&5
10f2d63a
VZ
6028 no_cache=0
6029 # Check whether --enable-gauge or --disable-gauge was given.
6030if test "${enable_gauge+set}" = set; then
6031 enableval="$enable_gauge"
698dcdb6 6032
10f2d63a
VZ
6033 if test "$enableval" = yes; then
6034 ac_cv_use_gauge='wxUSE_GAUGE=yes'
6035 else
6036 ac_cv_use_gauge='wxUSE_GAUGE=no'
6037 fi
698dcdb6 6038
10f2d63a 6039else
698dcdb6 6040
10f2d63a
VZ
6041 LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}`
6042 if test "x$LINE" != x ; then
6043 eval "DEFAULT_$LINE"
6044 else
6045 no_cache=1
6046 fi
6047
6048 ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE
698dcdb6
VZ
6049
6050fi
10f2d63a
VZ
6051
6052
6053 eval "$ac_cv_use_gauge"
6054 if test "$no_cache" != 1; then
6055 echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp
6056 fi
6057
6058 if test "$wxUSE_GAUGE" = yes; then
698dcdb6 6059 echo "$ac_t""yes" 1>&6
10f2d63a 6060 else
698dcdb6 6061 echo "$ac_t""no" 1>&6
10f2d63a 6062 fi
698dcdb6 6063
10f2d63a 6064
698dcdb6 6065 echo $ac_n "checking for --enable-grid""... $ac_c" 1>&6
3bd8fb5f 6066echo "configure:6067: checking for --enable-grid" >&5
10f2d63a
VZ
6067 no_cache=0
6068 # Check whether --enable-grid or --disable-grid was given.
6069if test "${enable_grid+set}" = set; then
6070 enableval="$enable_grid"
698dcdb6 6071
10f2d63a
VZ
6072 if test "$enableval" = yes; then
6073 ac_cv_use_grid='wxUSE_GRID=yes'
6074 else
6075 ac_cv_use_grid='wxUSE_GRID=no'
6076 fi
698dcdb6 6077
10f2d63a 6078else
698dcdb6 6079
10f2d63a
VZ
6080 LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}`
6081 if test "x$LINE" != x ; then
6082 eval "DEFAULT_$LINE"
6083 else
6084 no_cache=1
6085 fi
6086
6087 ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID
698dcdb6
VZ
6088
6089fi
10f2d63a
VZ
6090
6091
6092 eval "$ac_cv_use_grid"
6093 if test "$no_cache" != 1; then
6094 echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp
6095 fi
6096
6097 if test "$wxUSE_GRID" = yes; then
698dcdb6 6098 echo "$ac_t""yes" 1>&6
10f2d63a 6099 else
698dcdb6 6100 echo "$ac_t""no" 1>&6
10f2d63a 6101 fi
698dcdb6 6102
10f2d63a 6103
698dcdb6 6104 echo $ac_n "checking for --enable-newgrid""... $ac_c" 1>&6
3bd8fb5f 6105echo "configure:6106: checking for --enable-newgrid" >&5
10f2d63a
VZ
6106 no_cache=0
6107 # Check whether --enable-newgrid or --disable-newgrid was given.
6108if test "${enable_newgrid+set}" = set; then
6109 enableval="$enable_newgrid"
698dcdb6 6110
10f2d63a
VZ
6111 if test "$enableval" = yes; then
6112 ac_cv_use_newgrid='wxUSE_NEW_GRID=yes'
6113 else
6114 ac_cv_use_newgrid='wxUSE_NEW_GRID=no'
6115 fi
698dcdb6 6116
10f2d63a 6117else
698dcdb6 6118
10f2d63a
VZ
6119 LINE=`grep "wxUSE_NEW_GRID" ${wx_arg_cache_file}`
6120 if test "x$LINE" != x ; then
6121 eval "DEFAULT_$LINE"
6122 else
6123 no_cache=1
6124 fi
6125
6126 ac_cv_use_newgrid='wxUSE_NEW_GRID='$DEFAULT_wxUSE_NEW_GRID
698dcdb6
VZ
6127
6128fi
10f2d63a
VZ
6129
6130
6131 eval "$ac_cv_use_newgrid"
6132 if test "$no_cache" != 1; then
6133 echo $ac_cv_use_newgrid >> ${wx_arg_cache_file}.tmp
6134 fi
6135
6136 if test "$wxUSE_NEW_GRID" = yes; then
698dcdb6 6137 echo "$ac_t""yes" 1>&6
10f2d63a 6138 else
698dcdb6 6139 echo "$ac_t""no" 1>&6
10f2d63a 6140 fi
698dcdb6 6141
10f2d63a 6142
698dcdb6 6143 echo $ac_n "checking for --enable-imaglist""... $ac_c" 1>&6
3bd8fb5f 6144echo "configure:6145: checking for --enable-imaglist" >&5
10f2d63a
VZ
6145 no_cache=0
6146 # Check whether --enable-imaglist or --disable-imaglist was given.
6147if test "${enable_imaglist+set}" = set; then
6148 enableval="$enable_imaglist"
698dcdb6 6149
10f2d63a
VZ
6150 if test "$enableval" = yes; then
6151 ac_cv_use_imaglist='wxUSE_IMAGLIST=yes'
6152 else
6153 ac_cv_use_imaglist='wxUSE_IMAGLIST=no'
6154 fi
698dcdb6 6155
10f2d63a 6156else
698dcdb6 6157
10f2d63a
VZ
6158 LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}`
6159 if test "x$LINE" != x ; then
6160 eval "DEFAULT_$LINE"
6161 else
6162 no_cache=1
6163 fi
6164
6165 ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST
698dcdb6
VZ
6166
6167fi
10f2d63a
VZ
6168
6169
6170 eval "$ac_cv_use_imaglist"
6171 if test "$no_cache" != 1; then
6172 echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp
6173 fi
6174
6175 if test "$wxUSE_IMAGLIST" = yes; then
698dcdb6 6176 echo "$ac_t""yes" 1>&6
10f2d63a 6177 else
698dcdb6 6178 echo "$ac_t""no" 1>&6
10f2d63a 6179 fi
698dcdb6 6180
10f2d63a 6181
698dcdb6 6182 echo $ac_n "checking for --enable-listbox""... $ac_c" 1>&6
3bd8fb5f 6183echo "configure:6184: checking for --enable-listbox" >&5
10f2d63a
VZ
6184 no_cache=0
6185 # Check whether --enable-listbox or --disable-listbox was given.
6186if test "${enable_listbox+set}" = set; then
6187 enableval="$enable_listbox"
698dcdb6 6188
10f2d63a
VZ
6189 if test "$enableval" = yes; then
6190 ac_cv_use_listbox='wxUSE_LISTBOX=yes'
6191 else
6192 ac_cv_use_listbox='wxUSE_LISTBOX=no'
6193 fi
698dcdb6 6194
10f2d63a 6195else
698dcdb6 6196
10f2d63a
VZ
6197 LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}`
6198 if test "x$LINE" != x ; then
6199 eval "DEFAULT_$LINE"
6200 else
6201 no_cache=1
6202 fi
6203
6204 ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX
698dcdb6
VZ
6205
6206fi
10f2d63a
VZ
6207
6208
6209 eval "$ac_cv_use_listbox"
6210 if test "$no_cache" != 1; then
6211 echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp
6212 fi
6213
6214 if test "$wxUSE_LISTBOX" = yes; then
698dcdb6 6215 echo "$ac_t""yes" 1>&6
10f2d63a 6216 else
698dcdb6 6217 echo "$ac_t""no" 1>&6
10f2d63a 6218 fi
698dcdb6 6219
10f2d63a 6220
698dcdb6 6221 echo $ac_n "checking for --enable-listctrl""... $ac_c" 1>&6
3bd8fb5f 6222echo "configure:6223: checking for --enable-listctrl" >&5
10f2d63a
VZ
6223 no_cache=0
6224 # Check whether --enable-listctrl or --disable-listctrl was given.
6225if test "${enable_listctrl+set}" = set; then
6226 enableval="$enable_listctrl"
698dcdb6 6227
10f2d63a
VZ
6228 if test "$enableval" = yes; then
6229 ac_cv_use_listctrl='wxUSE_LISTCTRL=yes'
6230 else
6231 ac_cv_use_listctrl='wxUSE_LISTCTRL=no'
6232 fi
698dcdb6 6233
10f2d63a 6234else
698dcdb6 6235
10f2d63a
VZ
6236 LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}`
6237 if test "x$LINE" != x ; then
6238 eval "DEFAULT_$LINE"
6239 else
6240 no_cache=1
6241 fi
6242
6243 ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL
698dcdb6
VZ
6244
6245fi
10f2d63a
VZ
6246
6247
6248 eval "$ac_cv_use_listctrl"
6249 if test "$no_cache" != 1; then
6250 echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp
6251 fi
6252
6253 if test "$wxUSE_LISTCTRL" = yes; then
698dcdb6 6254 echo "$ac_t""yes" 1>&6
10f2d63a 6255 else
698dcdb6 6256 echo "$ac_t""no" 1>&6
10f2d63a 6257 fi
698dcdb6 6258
10f2d63a 6259
698dcdb6 6260 echo $ac_n "checking for --enable-notebook""... $ac_c" 1>&6
3bd8fb5f 6261echo "configure:6262: checking for --enable-notebook" >&5
10f2d63a
VZ
6262 no_cache=0
6263 # Check whether --enable-notebook or --disable-notebook was given.
6264if test "${enable_notebook+set}" = set; then
6265 enableval="$enable_notebook"
698dcdb6 6266
10f2d63a
VZ
6267 if test "$enableval" = yes; then
6268 ac_cv_use_notebook='wxUSE_NOTEBOOK=yes'
6269 else
6270 ac_cv_use_notebook='wxUSE_NOTEBOOK=no'
6271 fi
698dcdb6 6272
10f2d63a 6273else
698dcdb6 6274
10f2d63a
VZ
6275 LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}`
6276 if test "x$LINE" != x ; then
6277 eval "DEFAULT_$LINE"
6278 else
6279 no_cache=1
6280 fi
6281
6282 ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK
698dcdb6
VZ
6283
6284fi
10f2d63a
VZ
6285
6286
6287 eval "$ac_cv_use_notebook"
6288 if test "$no_cache" != 1; then
6289 echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp
6290 fi
6291
6292 if test "$wxUSE_NOTEBOOK" = yes; then
698dcdb6 6293 echo "$ac_t""yes" 1>&6
10f2d63a 6294 else
698dcdb6 6295 echo "$ac_t""no" 1>&6
10f2d63a 6296 fi
698dcdb6 6297
10f2d63a 6298
24176f2c 6299 echo $ac_n "checking for --enable-propsheet""... $ac_c" 1>&6
3bd8fb5f 6300echo "configure:6301: checking for --enable-propsheet" >&5
24176f2c
GD
6301 no_cache=0
6302 # Check whether --enable-propsheet or --disable-propsheet was given.
6303if test "${enable_propsheet+set}" = set; then
6304 enableval="$enable_propsheet"
6305
6306 if test "$enableval" = yes; then
6307 ac_cv_use_propsheet='wxUSE_PROPSHEET=yes'
6308 else
6309 ac_cv_use_propsheet='wxUSE_PROPSHEET=no'
6310 fi
6311
6312else
6313
6314 LINE=`grep "wxUSE_PROPSHEET" ${wx_arg_cache_file}`
6315 if test "x$LINE" != x ; then
6316 eval "DEFAULT_$LINE"
6317 else
6318 no_cache=1
6319 fi
6320
6321 ac_cv_use_propsheet='wxUSE_PROPSHEET='$DEFAULT_wxUSE_PROPSHEET
6322
6323fi
6324
6325
6326 eval "$ac_cv_use_propsheet"
6327 if test "$no_cache" != 1; then
6328 echo $ac_cv_use_propsheet >> ${wx_arg_cache_file}.tmp
6329 fi
6330
6331 if test "$wxUSE_PROPSHEET" = yes; then
6332 echo "$ac_t""yes" 1>&6
6333 else
6334 echo "$ac_t""no" 1>&6
6335 fi
6336
6337
698dcdb6 6338 echo $ac_n "checking for --enable-radiobox""... $ac_c" 1>&6
3bd8fb5f 6339echo "configure:6340: checking for --enable-radiobox" >&5
10f2d63a
VZ
6340 no_cache=0
6341 # Check whether --enable-radiobox or --disable-radiobox was given.
6342if test "${enable_radiobox+set}" = set; then
6343 enableval="$enable_radiobox"
698dcdb6 6344
10f2d63a
VZ
6345 if test "$enableval" = yes; then
6346 ac_cv_use_radiobox='wxUSE_RADIOBOX=yes'
6347 else
6348 ac_cv_use_radiobox='wxUSE_RADIOBOX=no'
6349 fi
698dcdb6 6350
10f2d63a 6351else
698dcdb6 6352
10f2d63a
VZ
6353 LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}`
6354 if test "x$LINE" != x ; then
6355 eval "DEFAULT_$LINE"
6356 else
6357 no_cache=1
6358 fi
6359
6360 ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX
698dcdb6
VZ
6361
6362fi
10f2d63a
VZ
6363
6364
6365 eval "$ac_cv_use_radiobox"
6366 if test "$no_cache" != 1; then
6367 echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp
6368 fi
6369
6370 if test "$wxUSE_RADIOBOX" = yes; then
698dcdb6 6371 echo "$ac_t""yes" 1>&6
10f2d63a 6372 else
698dcdb6 6373 echo "$ac_t""no" 1>&6
10f2d63a 6374 fi
698dcdb6 6375
10f2d63a 6376
698dcdb6 6377 echo $ac_n "checking for --enable-radiobtn""... $ac_c" 1>&6
3bd8fb5f 6378echo "configure:6379: checking for --enable-radiobtn" >&5
10f2d63a
VZ
6379 no_cache=0
6380 # Check whether --enable-radiobtn or --disable-radiobtn was given.
6381if test "${enable_radiobtn+set}" = set; then
6382 enableval="$enable_radiobtn"
698dcdb6 6383
10f2d63a
VZ
6384 if test "$enableval" = yes; then
6385 ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes'
6386 else
6387 ac_cv_use_radiobtn='wxUSE_RADIOBTN=no'
6388 fi
698dcdb6 6389
10f2d63a 6390else
698dcdb6 6391
10f2d63a
VZ
6392 LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}`
6393 if test "x$LINE" != x ; then
6394 eval "DEFAULT_$LINE"
6395 else
6396 no_cache=1
6397 fi
6398
6399 ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN
698dcdb6
VZ
6400
6401fi
10f2d63a
VZ
6402
6403
6404 eval "$ac_cv_use_radiobtn"
6405 if test "$no_cache" != 1; then
6406 echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp
6407 fi
6408
6409 if test "$wxUSE_RADIOBTN" = yes; then
698dcdb6 6410 echo "$ac_t""yes" 1>&6
10f2d63a 6411 else
698dcdb6 6412 echo "$ac_t""no" 1>&6
10f2d63a 6413 fi
698dcdb6 6414
10f2d63a 6415
698dcdb6 6416 echo $ac_n "checking for --enable-sash""... $ac_c" 1>&6
3bd8fb5f 6417echo "configure:6418: checking for --enable-sash" >&5
10f2d63a
VZ
6418 no_cache=0
6419 # Check whether --enable-sash or --disable-sash was given.
6420if test "${enable_sash+set}" = set; then
6421 enableval="$enable_sash"
698dcdb6 6422
10f2d63a
VZ
6423 if test "$enableval" = yes; then
6424 ac_cv_use_sash='wxUSE_SASH=yes'
6425 else
6426 ac_cv_use_sash='wxUSE_SASH=no'
6427 fi
698dcdb6 6428
10f2d63a 6429else
698dcdb6 6430
10f2d63a
VZ
6431 LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}`
6432 if test "x$LINE" != x ; then
6433 eval "DEFAULT_$LINE"
6434 else
6435 no_cache=1
6436 fi
6437
6438 ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH
698dcdb6
VZ
6439
6440fi
10f2d63a
VZ
6441
6442
6443 eval "$ac_cv_use_sash"
6444 if test "$no_cache" != 1; then
6445 echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp
6446 fi
6447
6448 if test "$wxUSE_SASH" = yes; then
698dcdb6 6449 echo "$ac_t""yes" 1>&6
10f2d63a 6450 else
698dcdb6 6451 echo "$ac_t""no" 1>&6
10f2d63a 6452 fi
698dcdb6 6453
10f2d63a 6454
698dcdb6 6455 echo $ac_n "checking for --enable-scrollbar""... $ac_c" 1>&6
3bd8fb5f 6456echo "configure:6457: checking for --enable-scrollbar" >&5
10f2d63a
VZ
6457 no_cache=0
6458 # Check whether --enable-scrollbar or --disable-scrollbar was given.
6459if test "${enable_scrollbar+set}" = set; then
6460 enableval="$enable_scrollbar"
698dcdb6 6461
10f2d63a
VZ
6462 if test "$enableval" = yes; then
6463 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes'
6464 else
6465 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no'
6466 fi
698dcdb6 6467
10f2d63a 6468else
698dcdb6 6469
10f2d63a
VZ
6470 LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}`
6471 if test "x$LINE" != x ; then
6472 eval "DEFAULT_$LINE"
6473 else
6474 no_cache=1
6475 fi
6476
6477 ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR
698dcdb6
VZ
6478
6479fi
10f2d63a
VZ
6480
6481
6482 eval "$ac_cv_use_scrollbar"
6483 if test "$no_cache" != 1; then
6484 echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp
6485 fi
6486
6487 if test "$wxUSE_SCROLLBAR" = yes; then
698dcdb6 6488 echo "$ac_t""yes" 1>&6
10f2d63a 6489 else
698dcdb6 6490 echo "$ac_t""no" 1>&6
10f2d63a 6491 fi
698dcdb6 6492
10f2d63a 6493
698dcdb6 6494 echo $ac_n "checking for --enable-slider""... $ac_c" 1>&6
3bd8fb5f 6495echo "configure:6496: checking for --enable-slider" >&5
10f2d63a
VZ
6496 no_cache=0
6497 # Check whether --enable-slider or --disable-slider was given.
6498if test "${enable_slider+set}" = set; then
6499 enableval="$enable_slider"
698dcdb6 6500
10f2d63a
VZ
6501 if test "$enableval" = yes; then
6502 ac_cv_use_slider='wxUSE_SLIDER=yes'
6503 else
6504 ac_cv_use_slider='wxUSE_SLIDER=no'
6505 fi
698dcdb6 6506
10f2d63a 6507else
698dcdb6 6508
10f2d63a
VZ
6509 LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}`
6510 if test "x$LINE" != x ; then
6511 eval "DEFAULT_$LINE"
6512 else
6513 no_cache=1
6514 fi
6515
6516 ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER
698dcdb6
VZ
6517
6518fi
10f2d63a
VZ
6519
6520
6521 eval "$ac_cv_use_slider"
6522 if test "$no_cache" != 1; then
6523 echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp
6524 fi
6525
6526 if test "$wxUSE_SLIDER" = yes; then
698dcdb6 6527 echo "$ac_t""yes" 1>&6
10f2d63a 6528 else
698dcdb6 6529 echo "$ac_t""no" 1>&6
10f2d63a 6530 fi
698dcdb6 6531
10f2d63a 6532
698dcdb6 6533 echo $ac_n "checking for --enable-spinbtn""... $ac_c" 1>&6
3bd8fb5f 6534echo "configure:6535: checking for --enable-spinbtn" >&5
10f2d63a
VZ
6535 no_cache=0
6536 # Check whether --enable-spinbtn or --disable-spinbtn was given.
6537if test "${enable_spinbtn+set}" = set; then
6538 enableval="$enable_spinbtn"
698dcdb6 6539
10f2d63a
VZ
6540 if test "$enableval" = yes; then
6541 ac_cv_use_spinbtn='wxUSE_SPINBTN=yes'
6542 else
6543 ac_cv_use_spinbtn='wxUSE_SPINBTN=no'
6544 fi
698dcdb6 6545
10f2d63a 6546else
698dcdb6 6547
10f2d63a
VZ
6548 LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}`
6549 if test "x$LINE" != x ; then
6550 eval "DEFAULT_$LINE"
6551 else
6552 no_cache=1
6553 fi
6554
6555 ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN
698dcdb6
VZ
6556
6557fi
10f2d63a
VZ
6558
6559
6560 eval "$ac_cv_use_spinbtn"
6561 if test "$no_cache" != 1; then
6562 echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp
6563 fi
6564
6565 if test "$wxUSE_SPINBTN" = yes; then
698dcdb6 6566 echo "$ac_t""yes" 1>&6
10f2d63a 6567 else
698dcdb6 6568 echo "$ac_t""no" 1>&6
10f2d63a 6569 fi
698dcdb6 6570
10f2d63a 6571
698dcdb6 6572 echo $ac_n "checking for --enable-spinctrl""... $ac_c" 1>&6
3bd8fb5f 6573echo "configure:6574: checking for --enable-spinctrl" >&5
56cfaa52
RR
6574 no_cache=0
6575 # Check whether --enable-spinctrl or --disable-spinctrl was given.
6576if test "${enable_spinctrl+set}" = set; then
6577 enableval="$enable_spinctrl"
698dcdb6 6578
56cfaa52
RR
6579 if test "$enableval" = yes; then
6580 ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes'
6581 else
6582 ac_cv_use_spinctrl='wxUSE_SPINCTRL=no'
6583 fi
698dcdb6 6584
56cfaa52 6585else
698dcdb6 6586
56cfaa52
RR
6587 LINE=`grep "wxUSE_SPINCTRL" ${wx_arg_cache_file}`
6588 if test "x$LINE" != x ; then
6589 eval "DEFAULT_$LINE"
6590 else
6591 no_cache=1
6592 fi
6593
6594 ac_cv_use_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL
698dcdb6
VZ
6595
6596fi
56cfaa52
RR
6597
6598
6599 eval "$ac_cv_use_spinctrl"
6600 if test "$no_cache" != 1; then
6601 echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp
6602 fi
6603
6604 if test "$wxUSE_SPINCTRL" = yes; then
698dcdb6 6605 echo "$ac_t""yes" 1>&6
56cfaa52 6606 else
698dcdb6 6607 echo "$ac_t""no" 1>&6
56cfaa52 6608 fi
698dcdb6 6609
56cfaa52 6610
698dcdb6 6611 echo $ac_n "checking for --enable-splitter""... $ac_c" 1>&6
3bd8fb5f 6612echo "configure:6613: checking for --enable-splitter" >&5
10f2d63a
VZ
6613 no_cache=0
6614 # Check whether --enable-splitter or --disable-splitter was given.
6615if test "${enable_splitter+set}" = set; then
6616 enableval="$enable_splitter"
698dcdb6 6617
10f2d63a
VZ
6618 if test "$enableval" = yes; then
6619 ac_cv_use_splitter='wxUSE_SPLITTER=yes'
6620 else
6621 ac_cv_use_splitter='wxUSE_SPLITTER=no'
6622 fi
698dcdb6 6623
10f2d63a 6624else
698dcdb6 6625
10f2d63a
VZ
6626 LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}`
6627 if test "x$LINE" != x ; then
6628 eval "DEFAULT_$LINE"
6629 else
6630 no_cache=1
6631 fi
6632
6633 ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER
698dcdb6
VZ
6634
6635fi
10f2d63a
VZ
6636
6637
6638 eval "$ac_cv_use_splitter"
6639 if test "$no_cache" != 1; then
6640 echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp
6641 fi
6642
6643 if test "$wxUSE_SPLITTER" = yes; then
698dcdb6 6644 echo "$ac_t""yes" 1>&6
10f2d63a 6645 else
698dcdb6 6646 echo "$ac_t""no" 1>&6
10f2d63a 6647 fi
698dcdb6 6648
10f2d63a 6649
698dcdb6 6650 echo $ac_n "checking for --enable-statbmp""... $ac_c" 1>&6
3bd8fb5f 6651echo "configure:6652: checking for --enable-statbmp" >&5
10f2d63a
VZ
6652 no_cache=0
6653 # Check whether --enable-statbmp or --disable-statbmp was given.
6654if test "${enable_statbmp+set}" = set; then
6655 enableval="$enable_statbmp"
698dcdb6 6656
10f2d63a
VZ
6657 if test "$enableval" = yes; then
6658 ac_cv_use_statbmp='wxUSE_STATBMP=yes'
6659 else
6660 ac_cv_use_statbmp='wxUSE_STATBMP=no'
6661 fi
698dcdb6 6662
10f2d63a 6663else
698dcdb6 6664
10f2d63a
VZ
6665 LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}`
6666 if test "x$LINE" != x ; then
6667 eval "DEFAULT_$LINE"
6668 else
6669 no_cache=1
6670 fi
6671
6672 ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP
698dcdb6
VZ
6673
6674fi
10f2d63a
VZ
6675
6676
6677 eval "$ac_cv_use_statbmp"
6678 if test "$no_cache" != 1; then
6679 echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp
6680 fi
6681
6682 if test "$wxUSE_STATBMP" = yes; then
698dcdb6 6683 echo "$ac_t""yes" 1>&6
10f2d63a 6684 else
698dcdb6 6685 echo "$ac_t""no" 1>&6
10f2d63a 6686 fi
698dcdb6 6687
10f2d63a 6688
698dcdb6 6689 echo $ac_n "checking for --enable-statbox""... $ac_c" 1>&6
3bd8fb5f 6690echo "configure:6691: checking for --enable-statbox" >&5
10f2d63a
VZ
6691 no_cache=0
6692 # Check whether --enable-statbox or --disable-statbox was given.
6693if test "${enable_statbox+set}" = set; then
6694 enableval="$enable_statbox"
698dcdb6 6695
10f2d63a
VZ
6696 if test "$enableval" = yes; then
6697 ac_cv_use_statbox='wxUSE_STATBOX=yes'
6698 else
6699 ac_cv_use_statbox='wxUSE_STATBOX=no'
6700 fi
698dcdb6 6701
10f2d63a 6702else
698dcdb6 6703
10f2d63a
VZ
6704 LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}`
6705 if test "x$LINE" != x ; then
6706 eval "DEFAULT_$LINE"
6707 else
6708 no_cache=1
6709 fi
6710
6711 ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX
698dcdb6
VZ
6712
6713fi
10f2d63a
VZ
6714
6715
6716 eval "$ac_cv_use_statbox"
6717 if test "$no_cache" != 1; then
6718 echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp
6719 fi
6720
6721 if test "$wxUSE_STATBOX" = yes; then
698dcdb6 6722 echo "$ac_t""yes" 1>&6
10f2d63a 6723 else
698dcdb6 6724 echo "$ac_t""no" 1>&6
10f2d63a 6725 fi
698dcdb6 6726
10f2d63a 6727
698dcdb6 6728 echo $ac_n "checking for --enable-statline""... $ac_c" 1>&6
3bd8fb5f 6729echo "configure:6730: checking for --enable-statline" >&5
10f2d63a
VZ
6730 no_cache=0
6731 # Check whether --enable-statline or --disable-statline was given.
6732if test "${enable_statline+set}" = set; then
6733 enableval="$enable_statline"
698dcdb6 6734
10f2d63a
VZ
6735 if test "$enableval" = yes; then
6736 ac_cv_use_statline='wxUSE_STATLINE=yes'
6737 else
6738 ac_cv_use_statline='wxUSE_STATLINE=no'
6739 fi
698dcdb6 6740
10f2d63a 6741else
698dcdb6 6742
10f2d63a
VZ
6743 LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}`
6744 if test "x$LINE" != x ; then
6745 eval "DEFAULT_$LINE"
6746 else
6747 no_cache=1
6748 fi
6749
6750 ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE
698dcdb6
VZ
6751
6752fi
10f2d63a
VZ
6753
6754
6755 eval "$ac_cv_use_statline"
6756 if test "$no_cache" != 1; then
6757 echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp
6758 fi
6759
6760 if test "$wxUSE_STATLINE" = yes; then
698dcdb6 6761 echo "$ac_t""yes" 1>&6
10f2d63a 6762 else
698dcdb6 6763 echo "$ac_t""no" 1>&6
10f2d63a 6764 fi
698dcdb6 6765
10f2d63a 6766
1e6feb95 6767 echo $ac_n "checking for --enable-stattext""... $ac_c" 1>&6
3bd8fb5f 6768echo "configure:6769: checking for --enable-stattext" >&5
1e6feb95
VZ
6769 no_cache=0
6770 # Check whether --enable-stattext or --disable-stattext was given.
6771if test "${enable_stattext+set}" = set; then
6772 enableval="$enable_stattext"
6773
6774 if test "$enableval" = yes; then
6775 ac_cv_use_stattext='wxUSE_STATTEXT=yes'
6776 else
6777 ac_cv_use_stattext='wxUSE_STATTEXT=no'
6778 fi
6779
6780else
6781
6782 LINE=`grep "wxUSE_STATTEXT" ${wx_arg_cache_file}`
6783 if test "x$LINE" != x ; then
6784 eval "DEFAULT_$LINE"
6785 else
6786 no_cache=1
6787 fi
6788
6789 ac_cv_use_stattext='wxUSE_STATTEXT='$DEFAULT_wxUSE_STATTEXT
6790
6791fi
6792
6793
6794 eval "$ac_cv_use_stattext"
6795 if test "$no_cache" != 1; then
6796 echo $ac_cv_use_stattext >> ${wx_arg_cache_file}.tmp
6797 fi
6798
6799 if test "$wxUSE_STATTEXT" = yes; then
6800 echo "$ac_t""yes" 1>&6
6801 else
6802 echo "$ac_t""no" 1>&6
6803 fi
6804
6805
698dcdb6 6806 echo $ac_n "checking for --enable-statusbar""... $ac_c" 1>&6
3bd8fb5f 6807echo "configure:6808: checking for --enable-statusbar" >&5
10f2d63a
VZ
6808 no_cache=0
6809 # Check whether --enable-statusbar or --disable-statusbar was given.
6810if test "${enable_statusbar+set}" = set; then
6811 enableval="$enable_statusbar"
698dcdb6 6812
10f2d63a
VZ
6813 if test "$enableval" = yes; then
6814 ac_cv_use_statusbar='wxUSE_STATUSBAR=yes'
6815 else
6816 ac_cv_use_statusbar='wxUSE_STATUSBAR=no'
6817 fi
698dcdb6 6818
10f2d63a 6819else
698dcdb6 6820
10f2d63a
VZ
6821 LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}`
6822 if test "x$LINE" != x ; then
6823 eval "DEFAULT_$LINE"
6824 else
6825 no_cache=1
6826 fi
6827
6828 ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR
698dcdb6
VZ
6829
6830fi
10f2d63a
VZ
6831
6832
6833 eval "$ac_cv_use_statusbar"
6834 if test "$no_cache" != 1; then
6835 echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp
6836 fi
6837
6838 if test "$wxUSE_STATUSBAR" = yes; then
698dcdb6 6839 echo "$ac_t""yes" 1>&6
10f2d63a 6840 else
698dcdb6 6841 echo "$ac_t""no" 1>&6
10f2d63a 6842 fi
698dcdb6 6843
10f2d63a 6844
698dcdb6 6845 echo $ac_n "checking for --enable-tabdialog""... $ac_c" 1>&6
3bd8fb5f 6846echo "configure:6847: checking for --enable-tabdialog" >&5
10f2d63a
VZ
6847 no_cache=0
6848 # Check whether --enable-tabdialog or --disable-tabdialog was given.
6849if test "${enable_tabdialog+set}" = set; then
6850 enableval="$enable_tabdialog"
698dcdb6 6851
10f2d63a
VZ
6852 if test "$enableval" = yes; then
6853 ac_cv_use_tabdialog='wxUSE_TABDIALOG=yes'
6854 else
6855 ac_cv_use_tabdialog='wxUSE_TABDIALOG=no'
6856 fi
698dcdb6 6857
10f2d63a 6858else
698dcdb6 6859
10f2d63a
VZ
6860 LINE=`grep "wxUSE_TABDIALOG" ${wx_arg_cache_file}`
6861 if test "x$LINE" != x ; then
6862 eval "DEFAULT_$LINE"
6863 else
6864 no_cache=1
6865 fi
6866
6867 ac_cv_use_tabdialog='wxUSE_TABDIALOG='$DEFAULT_wxUSE_TABDIALOG
698dcdb6
VZ
6868
6869fi
10f2d63a
VZ
6870
6871
6872 eval "$ac_cv_use_tabdialog"
6873 if test "$no_cache" != 1; then
6874 echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp
6875 fi
6876
6877 if test "$wxUSE_TABDIALOG" = yes; then
698dcdb6 6878 echo "$ac_t""yes" 1>&6
10f2d63a 6879 else
698dcdb6 6880 echo "$ac_t""no" 1>&6
10f2d63a 6881 fi
698dcdb6 6882
10f2d63a 6883
1e6feb95 6884 echo $ac_n "checking for --enable-textctrl""... $ac_c" 1>&6
3bd8fb5f 6885echo "configure:6886: checking for --enable-textctrl" >&5
1e6feb95
VZ
6886 no_cache=0
6887 # Check whether --enable-textctrl or --disable-textctrl was given.
6888if test "${enable_textctrl+set}" = set; then
6889 enableval="$enable_textctrl"
6890
6891 if test "$enableval" = yes; then
6892 ac_cv_use_textctrl='wxUSE_TEXTCTRL=yes'
6893 else
6894 ac_cv_use_textctrl='wxUSE_TEXTCTRL=no'
6895 fi
6896
6897else
6898
6899 LINE=`grep "wxUSE_TEXTCTRL" ${wx_arg_cache_file}`
6900 if test "x$LINE" != x ; then
6901 eval "DEFAULT_$LINE"
6902 else
6903 no_cache=1
6904 fi
6905
6906 ac_cv_use_textctrl='wxUSE_TEXTCTRL='$DEFAULT_wxUSE_TEXTCTRL
6907
6908fi
6909
6910
6911 eval "$ac_cv_use_textctrl"
6912 if test "$no_cache" != 1; then
6913 echo $ac_cv_use_textctrl >> ${wx_arg_cache_file}.tmp
6914 fi
6915
6916 if test "$wxUSE_TEXTCTRL" = yes; then
6917 echo "$ac_t""yes" 1>&6
6918 else
6919 echo "$ac_t""no" 1>&6
6920 fi
6921
6922
698dcdb6 6923 echo $ac_n "checking for --enable-togglebtn""... $ac_c" 1>&6
3bd8fb5f 6924echo "configure:6925: checking for --enable-togglebtn" >&5
1db8dc4a
VZ
6925 no_cache=0
6926 # Check whether --enable-togglebtn or --disable-togglebtn was given.
6927if test "${enable_togglebtn+set}" = set; then
6928 enableval="$enable_togglebtn"
698dcdb6 6929
1db8dc4a
VZ
6930 if test "$enableval" = yes; then
6931 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes'
6932 else
6933 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=no'
6934 fi
698dcdb6 6935
1db8dc4a 6936else
698dcdb6 6937
1db8dc4a
VZ
6938 LINE=`grep "wxUSE_TOGGLEBTN" ${wx_arg_cache_file}`
6939 if test "x$LINE" != x ; then
6940 eval "DEFAULT_$LINE"
6941 else
6942 no_cache=1
6943 fi
6944
6945 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN='$DEFAULT_wxUSE_TOGGLEBTN
698dcdb6
VZ
6946
6947fi
1db8dc4a
VZ
6948
6949
6950 eval "$ac_cv_use_togglebtn"
6951 if test "$no_cache" != 1; then
6952 echo $ac_cv_use_togglebtn >> ${wx_arg_cache_file}.tmp
6953 fi
6954
6955 if test "$wxUSE_TOGGLEBTN" = yes; then
698dcdb6 6956 echo "$ac_t""yes" 1>&6
1db8dc4a 6957 else
698dcdb6 6958 echo "$ac_t""no" 1>&6
1db8dc4a 6959 fi
698dcdb6 6960
1db8dc4a 6961
698dcdb6 6962 echo $ac_n "checking for --enable-toolbar""... $ac_c" 1>&6
3bd8fb5f 6963echo "configure:6964: checking for --enable-toolbar" >&5
10f2d63a
VZ
6964 no_cache=0
6965 # Check whether --enable-toolbar or --disable-toolbar was given.
6966if test "${enable_toolbar+set}" = set; then
6967 enableval="$enable_toolbar"
698dcdb6 6968
10f2d63a
VZ
6969 if test "$enableval" = yes; then
6970 ac_cv_use_toolbar='wxUSE_TOOLBAR=yes'
6971 else
6972 ac_cv_use_toolbar='wxUSE_TOOLBAR=no'
6973 fi
698dcdb6 6974
10f2d63a 6975else
698dcdb6 6976
10f2d63a
VZ
6977 LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}`
6978 if test "x$LINE" != x ; then
6979 eval "DEFAULT_$LINE"
6980 else
6981 no_cache=1
6982 fi
6983
6984 ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR
698dcdb6
VZ
6985
6986fi
10f2d63a
VZ
6987
6988
6989 eval "$ac_cv_use_toolbar"
6990 if test "$no_cache" != 1; then
6991 echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp
6992 fi
6993
6994 if test "$wxUSE_TOOLBAR" = yes; then
698dcdb6 6995 echo "$ac_t""yes" 1>&6
10f2d63a 6996 else
698dcdb6 6997 echo "$ac_t""no" 1>&6
10f2d63a 6998 fi
698dcdb6 6999
10f2d63a 7000
698dcdb6 7001 echo $ac_n "checking for --enable-tbarnative""... $ac_c" 1>&6
3bd8fb5f 7002echo "configure:7003: checking for --enable-tbarnative" >&5
360d6699
VZ
7003 no_cache=0
7004 # Check whether --enable-tbarnative or --disable-tbarnative was given.
7005if test "${enable_tbarnative+set}" = set; then
7006 enableval="$enable_tbarnative"
698dcdb6 7007
360d6699
VZ
7008 if test "$enableval" = yes; then
7009 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes'
7010 else
7011 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no'
7012 fi
698dcdb6 7013
360d6699 7014else
698dcdb6 7015
360d6699
VZ
7016 LINE=`grep "wxUSE_TOOLBAR_NATIVE" ${wx_arg_cache_file}`
7017 if test "x$LINE" != x ; then
7018 eval "DEFAULT_$LINE"
7019 else
7020 no_cache=1
7021 fi
7022
7023 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE='$DEFAULT_wxUSE_TOOLBAR_NATIVE
698dcdb6
VZ
7024
7025fi
360d6699
VZ
7026
7027
7028 eval "$ac_cv_use_tbarnative"
7029 if test "$no_cache" != 1; then
7030 echo $ac_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp
7031 fi
7032
7033 if test "$wxUSE_TOOLBAR_NATIVE" = yes; then
698dcdb6 7034 echo "$ac_t""yes" 1>&6
360d6699 7035 else
698dcdb6 7036 echo "$ac_t""no" 1>&6
360d6699 7037 fi
698dcdb6 7038
360d6699 7039
698dcdb6 7040 echo $ac_n "checking for --enable-tbarsmpl""... $ac_c" 1>&6
3bd8fb5f 7041echo "configure:7042: checking for --enable-tbarsmpl" >&5
360d6699
VZ
7042 no_cache=0
7043 # Check whether --enable-tbarsmpl or --disable-tbarsmpl was given.
7044if test "${enable_tbarsmpl+set}" = set; then
7045 enableval="$enable_tbarsmpl"
698dcdb6 7046
360d6699
VZ
7047 if test "$enableval" = yes; then
7048 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=yes'
7049 else
7050 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=no'
7051 fi
698dcdb6 7052
360d6699 7053else
698dcdb6 7054
360d6699
VZ
7055 LINE=`grep "wxUSE_TOOLBAR_SIMPLE" ${wx_arg_cache_file}`
7056 if test "x$LINE" != x ; then
7057 eval "DEFAULT_$LINE"
7058 else
7059 no_cache=1
7060 fi
7061
7062 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE='$DEFAULT_wxUSE_TOOLBAR_SIMPLE
698dcdb6
VZ
7063
7064fi
360d6699
VZ
7065
7066
7067 eval "$ac_cv_use_tbarsmpl"
7068 if test "$no_cache" != 1; then
7069 echo $ac_cv_use_tbarsmpl >> ${wx_arg_cache_file}.tmp
7070 fi
7071
7072 if test "$wxUSE_TOOLBAR_SIMPLE" = yes; then
698dcdb6 7073 echo "$ac_t""yes" 1>&6
360d6699 7074 else
698dcdb6 7075 echo "$ac_t""no" 1>&6
360d6699 7076 fi
698dcdb6 7077
360d6699 7078
698dcdb6 7079 echo $ac_n "checking for --enable-treectrl""... $ac_c" 1>&6
3bd8fb5f 7080echo "configure:7081: checking for --enable-treectrl" >&5
10f2d63a
VZ
7081 no_cache=0
7082 # Check whether --enable-treectrl or --disable-treectrl was given.
7083if test "${enable_treectrl+set}" = set; then
7084 enableval="$enable_treectrl"
698dcdb6 7085
10f2d63a
VZ
7086 if test "$enableval" = yes; then
7087 ac_cv_use_treectrl='wxUSE_TREECTRL=yes'
7088 else
7089 ac_cv_use_treectrl='wxUSE_TREECTRL=no'
7090 fi
698dcdb6 7091
10f2d63a 7092else
698dcdb6 7093
10f2d63a
VZ
7094 LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}`
7095 if test "x$LINE" != x ; then
7096 eval "DEFAULT_$LINE"
7097 else
7098 no_cache=1
7099 fi
7100
7101 ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL
698dcdb6
VZ
7102
7103fi
10f2d63a
VZ
7104
7105
1e6feb95
VZ
7106 eval "$ac_cv_use_treectrl"
7107 if test "$no_cache" != 1; then
7108 echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp
7109 fi
7110
7111 if test "$wxUSE_TREECTRL" = yes; then
7112 echo "$ac_t""yes" 1>&6
7113 else
7114 echo "$ac_t""no" 1>&6
7115 fi
7116
7117
9926e4a4 7118 echo $ac_n "checking for --enable-tipwindow""... $ac_c" 1>&6
3bd8fb5f 7119echo "configure:7120: checking for --enable-tipwindow" >&5
9926e4a4
VZ
7120 no_cache=0
7121 # Check whether --enable-tipwindow or --disable-tipwindow was given.
7122if test "${enable_tipwindow+set}" = set; then
7123 enableval="$enable_tipwindow"
7124
7125 if test "$enableval" = yes; then
7126 ac_cv_use_tipwindow='wxUSE_TIPWINDOW=yes'
7127 else
7128 ac_cv_use_tipwindow='wxUSE_TIPWINDOW=no'
7129 fi
7130
7131else
7132
7133 LINE=`grep "wxUSE_TIPWINDOW" ${wx_arg_cache_file}`
7134 if test "x$LINE" != x ; then
7135 eval "DEFAULT_$LINE"
7136 else
7137 no_cache=1
7138 fi
7139
7140 ac_cv_use_tipwindow='wxUSE_TIPWINDOW='$DEFAULT_wxUSE_TIPWINDOW
7141
7142fi
7143
7144
7145 eval "$ac_cv_use_tipwindow"
7146 if test "$no_cache" != 1; then
7147 echo $ac_cv_use_tipwindow >> ${wx_arg_cache_file}.tmp
7148 fi
7149
7150 if test "$wxUSE_TIPWINDOW" = yes; then
7151 echo "$ac_t""yes" 1>&6
7152 else
7153 echo "$ac_t""no" 1>&6
7154 fi
7155
7156
9f41d601 7157 echo $ac_n "checking for --enable-popupwin""... $ac_c" 1>&6
3bd8fb5f 7158echo "configure:7159: checking for --enable-popupwin" >&5
9f41d601
RR
7159 no_cache=0
7160 # Check whether --enable-popupwin or --disable-popupwin was given.
7161if test "${enable_popupwin+set}" = set; then
7162 enableval="$enable_popupwin"
7163
7164 if test "$enableval" = yes; then
7165 ac_cv_use_popupwin='wxUSE_POPUPWIN=yes'
7166 else
7167 ac_cv_use_popupwin='wxUSE_POPUPWIN=no'
7168 fi
7169
7170else
7171
7172 LINE=`grep "wxUSE_POPUPWIN" ${wx_arg_cache_file}`
7173 if test "x$LINE" != x ; then
7174 eval "DEFAULT_$LINE"
7175 else
7176 no_cache=1
7177 fi
7178
7179 ac_cv_use_popupwin='wxUSE_POPUPWIN='$DEFAULT_wxUSE_POPUPWIN
7180
7181fi
7182
7183
7184 eval "$ac_cv_use_popupwin"
7185 if test "$no_cache" != 1; then
7186 echo $ac_cv_use_popupwin >> ${wx_arg_cache_file}.tmp
7187 fi
7188
7189 if test "$wxUSE_POPUPWIN" = yes; then
7190 echo "$ac_t""yes" 1>&6
7191 else
7192 echo "$ac_t""no" 1>&6
7193 fi
7194
7195
1e6feb95
VZ
7196
7197
7198 echo $ac_n "checking for --enable-commondlg""... $ac_c" 1>&6
3bd8fb5f 7199echo "configure:7200: checking for --enable-commondlg" >&5
1e6feb95
VZ
7200 no_cache=0
7201 # Check whether --enable-commondlg or --disable-commondlg was given.
7202if test "${enable_commondlg+set}" = set; then
7203 enableval="$enable_commondlg"
7204
7205 if test "$enableval" = yes; then
7206 ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes'
7207 else
7208 ac_cv_use_commondlg='wxUSE_COMMONDLGS=no'
7209 fi
7210
7211else
7212
7213 LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}`
7214 if test "x$LINE" != x ; then
7215 eval "DEFAULT_$LINE"
7216 else
7217 no_cache=1
7218 fi
7219
7220 ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS
7221
7222fi
7223
7224
7225 eval "$ac_cv_use_commondlg"
7226 if test "$no_cache" != 1; then
7227 echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp
7228 fi
7229
7230 if test "$wxUSE_COMMONDLGS" = yes; then
7231 echo "$ac_t""yes" 1>&6
7232 else
7233 echo "$ac_t""no" 1>&6
7234 fi
7235
7236
7237 echo $ac_n "checking for --enable-choicedlg""... $ac_c" 1>&6
3bd8fb5f 7238echo "configure:7239: checking for --enable-choicedlg" >&5
1e6feb95
VZ
7239 no_cache=0
7240 # Check whether --enable-choicedlg or --disable-choicedlg was given.
7241if test "${enable_choicedlg+set}" = set; then
7242 enableval="$enable_choicedlg"
7243
7244 if test "$enableval" = yes; then
7245 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=yes'
7246 else
7247 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=no'
7248 fi
7249
7250else
7251
7252 LINE=`grep "wxUSE_CHOICEDLG" ${wx_arg_cache_file}`
7253 if test "x$LINE" != x ; then
7254 eval "DEFAULT_$LINE"
7255 else
7256 no_cache=1
7257 fi
7258
7259 ac_cv_use_choicedlg='wxUSE_CHOICEDLG='$DEFAULT_wxUSE_CHOICEDLG
7260
7261fi
7262
7263
7264 eval "$ac_cv_use_choicedlg"
7265 if test "$no_cache" != 1; then
7266 echo $ac_cv_use_choicedlg >> ${wx_arg_cache_file}.tmp
7267 fi
7268
7269 if test "$wxUSE_CHOICEDLG" = yes; then
7270 echo "$ac_t""yes" 1>&6
7271 else
7272 echo "$ac_t""no" 1>&6
7273 fi
7274
7275
7276 echo $ac_n "checking for --enable-coldlg""... $ac_c" 1>&6
3bd8fb5f 7277echo "configure:7278: checking for --enable-coldlg" >&5
1e6feb95
VZ
7278 no_cache=0
7279 # Check whether --enable-coldlg or --disable-coldlg was given.
7280if test "${enable_coldlg+set}" = set; then
7281 enableval="$enable_coldlg"
7282
7283 if test "$enableval" = yes; then
7284 ac_cv_use_coldlg='wxUSE_COLOURDLG=yes'
7285 else
7286 ac_cv_use_coldlg='wxUSE_COLOURDLG=no'
7287 fi
7288
7289else
7290
7291 LINE=`grep "wxUSE_COLOURDLG" ${wx_arg_cache_file}`
7292 if test "x$LINE" != x ; then
7293 eval "DEFAULT_$LINE"
7294 else
7295 no_cache=1
7296 fi
7297
7298 ac_cv_use_coldlg='wxUSE_COLOURDLG='$DEFAULT_wxUSE_COLOURDLG
7299
7300fi
7301
7302
7303 eval "$ac_cv_use_coldlg"
7304 if test "$no_cache" != 1; then
7305 echo $ac_cv_use_coldlg >> ${wx_arg_cache_file}.tmp
7306 fi
7307
7308 if test "$wxUSE_COLOURDLG" = yes; then
7309 echo "$ac_t""yes" 1>&6
7310 else
7311 echo "$ac_t""no" 1>&6
7312 fi
7313
7314
7315 echo $ac_n "checking for --enable-filedlg""... $ac_c" 1>&6
3bd8fb5f 7316echo "configure:7317: checking for --enable-filedlg" >&5
1e6feb95
VZ
7317 no_cache=0
7318 # Check whether --enable-filedlg or --disable-filedlg was given.
7319if test "${enable_filedlg+set}" = set; then
7320 enableval="$enable_filedlg"
7321
7322 if test "$enableval" = yes; then
7323 ac_cv_use_filedlg='wxUSE_FILEDLG=yes'
7324 else
7325 ac_cv_use_filedlg='wxUSE_FILEDLG=no'
7326 fi
7327
7328else
7329
7330 LINE=`grep "wxUSE_FILEDLG" ${wx_arg_cache_file}`
7331 if test "x$LINE" != x ; then
7332 eval "DEFAULT_$LINE"
7333 else
7334 no_cache=1
7335 fi
7336
7337 ac_cv_use_filedlg='wxUSE_FILEDLG='$DEFAULT_wxUSE_FILEDLG
7338
7339fi
7340
7341
7342 eval "$ac_cv_use_filedlg"
7343 if test "$no_cache" != 1; then
7344 echo $ac_cv_use_filedlg >> ${wx_arg_cache_file}.tmp
7345 fi
7346
7347 if test "$wxUSE_FILEDLG" = yes; then
7348 echo "$ac_t""yes" 1>&6
7349 else
7350 echo "$ac_t""no" 1>&6
7351 fi
7352
7353
69d27ff7 7354 echo $ac_n "checking for --enable-finddlg""... $ac_c" 1>&6
3bd8fb5f 7355echo "configure:7356: checking for --enable-finddlg" >&5
8db37e06 7356 no_cache=0
69d27ff7
MB
7357 # Check whether --enable-finddlg or --disable-finddlg was given.
7358if test "${enable_finddlg+set}" = set; then
7359 enableval="$enable_finddlg"
8db37e06
VZ
7360
7361 if test "$enableval" = yes; then
69d27ff7 7362 ac_cv_use_finddlg='wxUSE_FINDREPLDLG=yes'
8db37e06 7363 else
69d27ff7 7364 ac_cv_use_finddlg='wxUSE_FINDREPLDLG=no'
8db37e06
VZ
7365 fi
7366
7367else
7368
7369 LINE=`grep "wxUSE_FINDREPLDLG" ${wx_arg_cache_file}`
7370 if test "x$LINE" != x ; then
7371 eval "DEFAULT_$LINE"
7372 else
7373 no_cache=1
7374 fi
7375
69d27ff7 7376 ac_cv_use_finddlg='wxUSE_FINDREPLDLG='$DEFAULT_wxUSE_FINDREPLDLG
8db37e06
VZ
7377
7378fi
7379
7380
69d27ff7 7381 eval "$ac_cv_use_finddlg"
8db37e06 7382 if test "$no_cache" != 1; then
69d27ff7 7383 echo $ac_cv_use_finddlg >> ${wx_arg_cache_file}.tmp
8db37e06
VZ
7384 fi
7385
7386 if test "$wxUSE_FINDREPLDLG" = yes; then
7387 echo "$ac_t""yes" 1>&6
7388 else
7389 echo "$ac_t""no" 1>&6
7390 fi
7391
7392
1e6feb95 7393 echo $ac_n "checking for --enable-fontdlg""... $ac_c" 1>&6
3bd8fb5f 7394echo "configure:7395: checking for --enable-fontdlg" >&5
1e6feb95
VZ
7395 no_cache=0
7396 # Check whether --enable-fontdlg or --disable-fontdlg was given.
7397if test "${enable_fontdlg+set}" = set; then
7398 enableval="$enable_fontdlg"
7399
7400 if test "$enableval" = yes; then
7401 ac_cv_use_fontdlg='wxUSE_FONTDLG=yes'
7402 else
7403 ac_cv_use_fontdlg='wxUSE_FONTDLG=no'
7404 fi
7405
7406else
7407
7408 LINE=`grep "wxUSE_FONTDLG" ${wx_arg_cache_file}`
7409 if test "x$LINE" != x ; then
7410 eval "DEFAULT_$LINE"
7411 else
7412 no_cache=1
7413 fi
7414
7415 ac_cv_use_fontdlg='wxUSE_FONTDLG='$DEFAULT_wxUSE_FONTDLG
7416
7417fi
7418
7419
7420 eval "$ac_cv_use_fontdlg"
7421 if test "$no_cache" != 1; then
7422 echo $ac_cv_use_fontdlg >> ${wx_arg_cache_file}.tmp
7423 fi
7424
7425 if test "$wxUSE_FONTDLG" = yes; then
7426 echo "$ac_t""yes" 1>&6
7427 else
7428 echo "$ac_t""no" 1>&6
7429 fi
7430
7431
7432 echo $ac_n "checking for --enable-dirdlg""... $ac_c" 1>&6
3bd8fb5f 7433echo "configure:7434: checking for --enable-dirdlg" >&5
1e6feb95
VZ
7434 no_cache=0
7435 # Check whether --enable-dirdlg or --disable-dirdlg was given.
7436if test "${enable_dirdlg+set}" = set; then
7437 enableval="$enable_dirdlg"
7438
7439 if test "$enableval" = yes; then
7440 ac_cv_use_dirdlg='wxUSE_DIRDLG=yes'
7441 else
7442 ac_cv_use_dirdlg='wxUSE_DIRDLG=no'
7443 fi
7444
7445else
7446
7447 LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}`
7448 if test "x$LINE" != x ; then
7449 eval "DEFAULT_$LINE"
7450 else
7451 no_cache=1
7452 fi
7453
7454 ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG
7455
7456fi
7457
7458
7459 eval "$ac_cv_use_dirdlg"
10f2d63a 7460 if test "$no_cache" != 1; then
1e6feb95 7461 echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
7462 fi
7463
1e6feb95 7464 if test "$wxUSE_DIRDLG" = yes; then
698dcdb6 7465 echo "$ac_t""yes" 1>&6
10f2d63a 7466 else
698dcdb6 7467 echo "$ac_t""no" 1>&6
10f2d63a 7468 fi
698dcdb6
VZ
7469
7470
1e6feb95 7471 echo $ac_n "checking for --enable-msgdlg""... $ac_c" 1>&6
3bd8fb5f 7472echo "configure:7473: checking for --enable-msgdlg" >&5
10f2d63a 7473 no_cache=0
1e6feb95
VZ
7474 # Check whether --enable-msgdlg or --disable-msgdlg was given.
7475if test "${enable_msgdlg+set}" = set; then
7476 enableval="$enable_msgdlg"
698dcdb6 7477
10f2d63a 7478 if test "$enableval" = yes; then
1e6feb95 7479 ac_cv_use_msgdlg='wxUSE_MSGDLG=yes'
10f2d63a 7480 else
1e6feb95 7481 ac_cv_use_msgdlg='wxUSE_MSGDLG=no'
10f2d63a 7482 fi
698dcdb6 7483
10f2d63a 7484else
698dcdb6 7485
1e6feb95 7486 LINE=`grep "wxUSE_MSGDLG" ${wx_arg_cache_file}`
10f2d63a
VZ
7487 if test "x$LINE" != x ; then
7488 eval "DEFAULT_$LINE"
7489 else
7490 no_cache=1
7491 fi
7492
1e6feb95 7493 ac_cv_use_msgdlg='wxUSE_MSGDLG='$DEFAULT_wxUSE_MSGDLG
698dcdb6
VZ
7494
7495fi
10f2d63a
VZ
7496
7497
1e6feb95 7498 eval "$ac_cv_use_msgdlg"
10f2d63a 7499 if test "$no_cache" != 1; then
1e6feb95 7500 echo $ac_cv_use_msgdlg >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
7501 fi
7502
1e6feb95 7503 if test "$wxUSE_MSGDLG" = yes; then
698dcdb6 7504 echo "$ac_t""yes" 1>&6
10f2d63a 7505 else
698dcdb6 7506 echo "$ac_t""no" 1>&6
10f2d63a 7507 fi
698dcdb6 7508
10f2d63a 7509
1e6feb95 7510 echo $ac_n "checking for --enable-numberdlg""... $ac_c" 1>&6
3bd8fb5f 7511echo "configure:7512: checking for --enable-numberdlg" >&5
10f2d63a 7512 no_cache=0
1e6feb95
VZ
7513 # Check whether --enable-numberdlg or --disable-numberdlg was given.
7514if test "${enable_numberdlg+set}" = set; then
7515 enableval="$enable_numberdlg"
698dcdb6 7516
10f2d63a 7517 if test "$enableval" = yes; then
1e6feb95 7518 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=yes'
10f2d63a 7519 else
1e6feb95 7520 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=no'
10f2d63a 7521 fi
698dcdb6 7522
10f2d63a 7523else
698dcdb6 7524
1e6feb95 7525 LINE=`grep "wxUSE_NUMBERDLG" ${wx_arg_cache_file}`
10f2d63a
VZ
7526 if test "x$LINE" != x ; then
7527 eval "DEFAULT_$LINE"
7528 else
7529 no_cache=1
7530 fi
7531
1e6feb95 7532 ac_cv_use_numberdlg='wxUSE_NUMBERDLG='$DEFAULT_wxUSE_NUMBERDLG
698dcdb6
VZ
7533
7534fi
10f2d63a
VZ
7535
7536
1e6feb95 7537 eval "$ac_cv_use_numberdlg"
10f2d63a 7538 if test "$no_cache" != 1; then
1e6feb95 7539 echo $ac_cv_use_numberdlg >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
7540 fi
7541
1e6feb95 7542 if test "$wxUSE_NUMBERDLG" = yes; then
698dcdb6 7543 echo "$ac_t""yes" 1>&6
10f2d63a 7544 else
698dcdb6 7545 echo "$ac_t""no" 1>&6
10f2d63a 7546 fi
698dcdb6 7547
10f2d63a 7548
cbca9943 7549 echo $ac_n "checking for --enable-splash""... $ac_c" 1>&6
3bd8fb5f 7550echo "configure:7551: checking for --enable-splash" >&5
cbca9943
VZ
7551 no_cache=0
7552 # Check whether --enable-splash or --disable-splash was given.
7553if test "${enable_splash+set}" = set; then
7554 enableval="$enable_splash"
7555
7556 if test "$enableval" = yes; then
7557 ac_cv_use_splash='wxUSE_SPLASH=yes'
7558 else
7559 ac_cv_use_splash='wxUSE_SPLASH=no'
7560 fi
7561
7562else
7563
7564 LINE=`grep "wxUSE_SPLASH" ${wx_arg_cache_file}`
7565 if test "x$LINE" != x ; then
7566 eval "DEFAULT_$LINE"
7567 else
7568 no_cache=1
7569 fi
7570
7571 ac_cv_use_splash='wxUSE_SPLASH='$DEFAULT_wxUSE_SPLASH
7572
7573fi
7574
7575
7576 eval "$ac_cv_use_splash"
7577 if test "$no_cache" != 1; then
7578 echo $ac_cv_use_splash >> ${wx_arg_cache_file}.tmp
7579 fi
7580
7581 if test "$wxUSE_SPLASH" = yes; then
7582 echo "$ac_t""yes" 1>&6
7583 else
7584 echo "$ac_t""no" 1>&6
7585 fi
7586
7587
698dcdb6 7588 echo $ac_n "checking for --enable-textdlg""... $ac_c" 1>&6
3bd8fb5f 7589echo "configure:7590: checking for --enable-textdlg" >&5
10f2d63a
VZ
7590 no_cache=0
7591 # Check whether --enable-textdlg or --disable-textdlg was given.
7592if test "${enable_textdlg+set}" = set; then
7593 enableval="$enable_textdlg"
698dcdb6 7594
10f2d63a
VZ
7595 if test "$enableval" = yes; then
7596 ac_cv_use_textdlg='wxUSE_TEXTDLG=yes'
7597 else
7598 ac_cv_use_textdlg='wxUSE_TEXTDLG=no'
7599 fi
698dcdb6 7600
10f2d63a 7601else
698dcdb6 7602
10f2d63a
VZ
7603 LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}`
7604 if test "x$LINE" != x ; then
7605 eval "DEFAULT_$LINE"
7606 else
7607 no_cache=1
7608 fi
7609
7610 ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG
698dcdb6
VZ
7611
7612fi
10f2d63a
VZ
7613
7614
7615 eval "$ac_cv_use_textdlg"
7616 if test "$no_cache" != 1; then
7617 echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp
7618 fi
7619
7620 if test "$wxUSE_TEXTDLG" = yes; then
698dcdb6 7621 echo "$ac_t""yes" 1>&6
10f2d63a 7622 else
698dcdb6 7623 echo "$ac_t""no" 1>&6
10f2d63a 7624 fi
698dcdb6 7625
10f2d63a 7626
698dcdb6 7627 echo $ac_n "checking for --enable-tipdlg""... $ac_c" 1>&6
3bd8fb5f 7628echo "configure:7629: checking for --enable-tipdlg" >&5
10f2d63a
VZ
7629 no_cache=0
7630 # Check whether --enable-tipdlg or --disable-tipdlg was given.
7631if test "${enable_tipdlg+set}" = set; then
7632 enableval="$enable_tipdlg"
698dcdb6 7633
10f2d63a
VZ
7634 if test "$enableval" = yes; then
7635 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes'
7636 else
7637 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no'
7638 fi
698dcdb6 7639
10f2d63a 7640else
698dcdb6 7641
10f2d63a
VZ
7642 LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}`
7643 if test "x$LINE" != x ; then
7644 eval "DEFAULT_$LINE"
7645 else
7646 no_cache=1
7647 fi
7648
7649 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS
698dcdb6
VZ
7650
7651fi
10f2d63a
VZ
7652
7653
7654 eval "$ac_cv_use_tipdlg"
7655 if test "$no_cache" != 1; then
7656 echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp
7657 fi
7658
7659 if test "$wxUSE_STARTUP_TIPS" = yes; then
698dcdb6 7660 echo "$ac_t""yes" 1>&6
10f2d63a 7661 else
698dcdb6 7662 echo "$ac_t""no" 1>&6
10f2d63a 7663 fi
698dcdb6 7664
10f2d63a 7665
698dcdb6 7666 echo $ac_n "checking for --enable-progressdlg""... $ac_c" 1>&6
3bd8fb5f 7667echo "configure:7668: checking for --enable-progressdlg" >&5
10f2d63a
VZ
7668 no_cache=0
7669 # Check whether --enable-progressdlg or --disable-progressdlg was given.
7670if test "${enable_progressdlg+set}" = set; then
7671 enableval="$enable_progressdlg"
698dcdb6 7672
10f2d63a
VZ
7673 if test "$enableval" = yes; then
7674 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes'
7675 else
7676 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no'
7677 fi
698dcdb6 7678
10f2d63a 7679else
698dcdb6 7680
10f2d63a
VZ
7681 LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}`
7682 if test "x$LINE" != x ; then
7683 eval "DEFAULT_$LINE"
7684 else
7685 no_cache=1
7686 fi
7687
7688 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG
698dcdb6
VZ
7689
7690fi
10f2d63a
VZ
7691
7692
7693 eval "$ac_cv_use_progressdlg"
7694 if test "$no_cache" != 1; then
7695 echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp
7696 fi
7697
7698 if test "$wxUSE_PROGRESSDLG" = yes; then
698dcdb6 7699 echo "$ac_t""yes" 1>&6
10f2d63a 7700 else
698dcdb6 7701 echo "$ac_t""no" 1>&6
10f2d63a 7702 fi
698dcdb6 7703
10f2d63a 7704
b1f5d087 7705 echo $ac_n "checking for --enable-wizarddlg""... $ac_c" 1>&6
3bd8fb5f 7706echo "configure:7707: checking for --enable-wizarddlg" >&5
b1f5d087
VZ
7707 no_cache=0
7708 # Check whether --enable-wizarddlg or --disable-wizarddlg was given.
7709if test "${enable_wizarddlg+set}" = set; then
7710 enableval="$enable_wizarddlg"
7711
7712 if test "$enableval" = yes; then
7713 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=yes'
7714 else
7715 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=no'
7716 fi
7717
7718else
7719
7720 LINE=`grep "wxUSE_WIZARDDLG" ${wx_arg_cache_file}`
7721 if test "x$LINE" != x ; then
7722 eval "DEFAULT_$LINE"
7723 else
7724 no_cache=1
7725 fi
7726
7727 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG='$DEFAULT_wxUSE_WIZARDDLG
7728
7729fi
7730
7731
7732 eval "$ac_cv_use_wizarddlg"
7733 if test "$no_cache" != 1; then
7734 echo $ac_cv_use_wizarddlg >> ${wx_arg_cache_file}.tmp
7735 fi
7736
7737 if test "$wxUSE_WIZARDDLG" = yes; then
7738 echo "$ac_t""yes" 1>&6
7739 else
7740 echo "$ac_t""no" 1>&6
7741 fi
7742
7743
7744
7745
1e6feb95 7746 echo $ac_n "checking for --enable-menus""... $ac_c" 1>&6
3bd8fb5f 7747echo "configure:7748: checking for --enable-menus" >&5
1e6feb95
VZ
7748 no_cache=0
7749 # Check whether --enable-menus or --disable-menus was given.
7750if test "${enable_menus+set}" = set; then
7751 enableval="$enable_menus"
7752
7753 if test "$enableval" = yes; then
7754 ac_cv_use_menus='wxUSE_MENUS=yes'
7755 else
7756 ac_cv_use_menus='wxUSE_MENUS=no'
7757 fi
7758
7759else
7760
7761 LINE=`grep "wxUSE_MENUS" ${wx_arg_cache_file}`
7762 if test "x$LINE" != x ; then
7763 eval "DEFAULT_$LINE"
7764 else
7765 no_cache=1
7766 fi
7767
7768 ac_cv_use_menus='wxUSE_MENUS='$DEFAULT_wxUSE_MENUS
7769
7770fi
7771
7772
7773 eval "$ac_cv_use_menus"
7774 if test "$no_cache" != 1; then
7775 echo $ac_cv_use_menus >> ${wx_arg_cache_file}.tmp
7776 fi
7777
7778 if test "$wxUSE_MENUS" = yes; then
7779 echo "$ac_t""yes" 1>&6
7780 else
7781 echo "$ac_t""no" 1>&6
7782 fi
7783
7784
698dcdb6 7785 echo $ac_n "checking for --enable-miniframe""... $ac_c" 1>&6
3bd8fb5f 7786echo "configure:7787: checking for --enable-miniframe" >&5
10f2d63a
VZ
7787 no_cache=0
7788 # Check whether --enable-miniframe or --disable-miniframe was given.
7789if test "${enable_miniframe+set}" = set; then
7790 enableval="$enable_miniframe"
698dcdb6 7791
10f2d63a
VZ
7792 if test "$enableval" = yes; then
7793 ac_cv_use_miniframe='wxUSE_MINIFRAME=yes'
7794 else
7795 ac_cv_use_miniframe='wxUSE_MINIFRAME=no'
7796 fi
698dcdb6 7797
10f2d63a 7798else
698dcdb6 7799
10f2d63a
VZ
7800 LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}`
7801 if test "x$LINE" != x ; then
7802 eval "DEFAULT_$LINE"
7803 else
7804 no_cache=1
7805 fi
7806
7807 ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME
698dcdb6
VZ
7808
7809fi
10f2d63a
VZ
7810
7811
7812 eval "$ac_cv_use_miniframe"
7813 if test "$no_cache" != 1; then
7814 echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp
7815 fi
7816
7817 if test "$wxUSE_MINIFRAME" = yes; then
698dcdb6 7818 echo "$ac_t""yes" 1>&6
10f2d63a 7819 else
698dcdb6 7820 echo "$ac_t""no" 1>&6
10f2d63a 7821 fi
698dcdb6 7822
10f2d63a 7823
698dcdb6 7824 echo $ac_n "checking for --enable-tooltips""... $ac_c" 1>&6
3bd8fb5f 7825echo "configure:7826: checking for --enable-tooltips" >&5
10f2d63a
VZ
7826 no_cache=0
7827 # Check whether --enable-tooltips or --disable-tooltips was given.
7828if test "${enable_tooltips+set}" = set; then
7829 enableval="$enable_tooltips"
698dcdb6 7830
10f2d63a
VZ
7831 if test "$enableval" = yes; then
7832 ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes'
7833 else
7834 ac_cv_use_tooltips='wxUSE_TOOLTIPS=no'
7835 fi
698dcdb6 7836
10f2d63a 7837else
698dcdb6 7838
10f2d63a
VZ
7839 LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}`
7840 if test "x$LINE" != x ; then
7841 eval "DEFAULT_$LINE"
7842 else
7843 no_cache=1
7844 fi
7845
7846 ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS
698dcdb6
VZ
7847
7848fi
10f2d63a
VZ
7849
7850
7851 eval "$ac_cv_use_tooltips"
7852 if test "$no_cache" != 1; then
7853 echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp
7854 fi
7855
7856 if test "$wxUSE_TOOLTIPS" = yes; then
698dcdb6 7857 echo "$ac_t""yes" 1>&6
10f2d63a 7858 else
698dcdb6 7859 echo "$ac_t""no" 1>&6
10f2d63a 7860 fi
698dcdb6 7861
10f2d63a 7862
698dcdb6 7863 echo $ac_n "checking for --enable-splines""... $ac_c" 1>&6
3bd8fb5f 7864echo "configure:7865: checking for --enable-splines" >&5
10f2d63a
VZ
7865 no_cache=0
7866 # Check whether --enable-splines or --disable-splines was given.
7867if test "${enable_splines+set}" = set; then
7868 enableval="$enable_splines"
698dcdb6 7869
10f2d63a
VZ
7870 if test "$enableval" = yes; then
7871 ac_cv_use_splines='wxUSE_SPLINES=yes'
7872 else
7873 ac_cv_use_splines='wxUSE_SPLINES=no'
7874 fi
698dcdb6 7875
10f2d63a 7876else
698dcdb6 7877
10f2d63a
VZ
7878 LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}`
7879 if test "x$LINE" != x ; then
7880 eval "DEFAULT_$LINE"
7881 else
7882 no_cache=1
7883 fi
7884
7885 ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES
698dcdb6
VZ
7886
7887fi
10f2d63a
VZ
7888
7889
7890 eval "$ac_cv_use_splines"
7891 if test "$no_cache" != 1; then
7892 echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp
7893 fi
7894
7895 if test "$wxUSE_SPLINES" = yes; then
698dcdb6 7896 echo "$ac_t""yes" 1>&6
10f2d63a 7897 else
698dcdb6 7898 echo "$ac_t""no" 1>&6
10f2d63a 7899 fi
698dcdb6 7900
10f2d63a 7901
698dcdb6 7902 echo $ac_n "checking for --enable-validators""... $ac_c" 1>&6
3bd8fb5f 7903echo "configure:7904: checking for --enable-validators" >&5
10f2d63a
VZ
7904 no_cache=0
7905 # Check whether --enable-validators or --disable-validators was given.
7906if test "${enable_validators+set}" = set; then
7907 enableval="$enable_validators"
698dcdb6 7908
10f2d63a
VZ
7909 if test "$enableval" = yes; then
7910 ac_cv_use_validators='wxUSE_VALIDATORS=yes'
7911 else
7912 ac_cv_use_validators='wxUSE_VALIDATORS=no'
7913 fi
698dcdb6 7914
10f2d63a 7915else
698dcdb6 7916
10f2d63a
VZ
7917 LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}`
7918 if test "x$LINE" != x ; then
7919 eval "DEFAULT_$LINE"
7920 else
7921 no_cache=1
7922 fi
7923
7924 ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS
698dcdb6
VZ
7925
7926fi
10f2d63a
VZ
7927
7928
7929 eval "$ac_cv_use_validators"
7930 if test "$no_cache" != 1; then
7931 echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp
7932 fi
7933
7934 if test "$wxUSE_VALIDATORS" = yes; then
698dcdb6 7935 echo "$ac_t""yes" 1>&6
10f2d63a 7936 else
698dcdb6 7937 echo "$ac_t""no" 1>&6
10f2d63a 7938 fi
698dcdb6 7939
10f2d63a 7940
698dcdb6 7941 echo $ac_n "checking for --enable-busyinfo""... $ac_c" 1>&6
3bd8fb5f 7942echo "configure:7943: checking for --enable-busyinfo" >&5
10f2d63a
VZ
7943 no_cache=0
7944 # Check whether --enable-busyinfo or --disable-busyinfo was given.
7945if test "${enable_busyinfo+set}" = set; then
7946 enableval="$enable_busyinfo"
698dcdb6 7947
10f2d63a
VZ
7948 if test "$enableval" = yes; then
7949 ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes'
7950 else
7951 ac_cv_use_busyinfo='wxUSE_BUSYINFO=no'
7952 fi
698dcdb6 7953
10f2d63a 7954else
698dcdb6 7955
10f2d63a
VZ
7956 LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}`
7957 if test "x$LINE" != x ; then
7958 eval "DEFAULT_$LINE"
7959 else
7960 no_cache=1
7961 fi
7962
7963 ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO
698dcdb6
VZ
7964
7965fi
10f2d63a
VZ
7966
7967
7968 eval "$ac_cv_use_busyinfo"
7969 if test "$no_cache" != 1; then
7970 echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp
7971 fi
7972
7973 if test "$wxUSE_BUSYINFO" = yes; then
698dcdb6 7974 echo "$ac_t""yes" 1>&6
10f2d63a 7975 else
698dcdb6 7976 echo "$ac_t""no" 1>&6
10f2d63a 7977 fi
698dcdb6 7978
10f2d63a 7979
698dcdb6 7980 echo $ac_n "checking for --enable-joystick""... $ac_c" 1>&6
3bd8fb5f 7981echo "configure:7982: checking for --enable-joystick" >&5
f6bcfd97
BP
7982 no_cache=0
7983 # Check whether --enable-joystick or --disable-joystick was given.
7984if test "${enable_joystick+set}" = set; then
7985 enableval="$enable_joystick"
698dcdb6 7986
f6bcfd97
BP
7987 if test "$enableval" = yes; then
7988 ac_cv_use_joystick='wxUSE_JOYSTICK=yes'
7989 else
7990 ac_cv_use_joystick='wxUSE_JOYSTICK=no'
7991 fi
698dcdb6 7992
f6bcfd97 7993else
698dcdb6 7994
f6bcfd97
BP
7995 LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}`
7996 if test "x$LINE" != x ; then
7997 eval "DEFAULT_$LINE"
7998 else
7999 no_cache=1
8000 fi
8001
8002 ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK
698dcdb6
VZ
8003
8004fi
f6bcfd97
BP
8005
8006
8007 eval "$ac_cv_use_joystick"
8008 if test "$no_cache" != 1; then
8009 echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp
8010 fi
8011
8012 if test "$wxUSE_JOYSTICK" = yes; then
698dcdb6 8013 echo "$ac_t""yes" 1>&6
f6bcfd97 8014 else
698dcdb6 8015 echo "$ac_t""no" 1>&6
f6bcfd97 8016 fi
698dcdb6
VZ
8017
8018
1e6feb95 8019 echo $ac_n "checking for --enable-metafile""... $ac_c" 1>&6
3bd8fb5f 8020echo "configure:8021: checking for --enable-metafile" >&5
1e6feb95
VZ
8021 no_cache=0
8022 # Check whether --enable-metafile or --disable-metafile was given.
8023if test "${enable_metafile+set}" = set; then
8024 enableval="$enable_metafile"
8025
8026 if test "$enableval" = yes; then
8027 ac_cv_use_metafile='wxUSE_METAFILE=yes'
8028 else
8029 ac_cv_use_metafile='wxUSE_METAFILE=no'
8030 fi
8031
8032else
8033
8034 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
8035 if test "x$LINE" != x ; then
8036 eval "DEFAULT_$LINE"
8037 else
8038 no_cache=1
8039 fi
8040
8041 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
8042
8043fi
8044
8045
8046 eval "$ac_cv_use_metafile"
8047 if test "$no_cache" != 1; then
8048 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
8049 fi
8050
8051 if test "$wxUSE_METAFILE" = yes; then
8052 echo "$ac_t""yes" 1>&6
8053 else
8054 echo "$ac_t""no" 1>&6
8055 fi
8056
8057
24fd6d87 8058 echo $ac_n "checking for --enable-dragimage""... $ac_c" 1>&6
3bd8fb5f 8059echo "configure:8060: checking for --enable-dragimage" >&5
24fd6d87
VZ
8060 no_cache=0
8061 # Check whether --enable-dragimage or --disable-dragimage was given.
8062if test "${enable_dragimage+set}" = set; then
8063 enableval="$enable_dragimage"
8064
8065 if test "$enableval" = yes; then
8066 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=yes'
8067 else
8068 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=no'
8069 fi
8070
8071else
8072
8073 LINE=`grep "wxUSE_DRAGIMAGE" ${wx_arg_cache_file}`
8074 if test "x$LINE" != x ; then
8075 eval "DEFAULT_$LINE"
8076 else
8077 no_cache=1
8078 fi
8079
8080 ac_cv_use_dragimage='wxUSE_DRAGIMAGE='$DEFAULT_wxUSE_DRAGIMAGE
8081
8082fi
8083
8084
8085 eval "$ac_cv_use_dragimage"
8086 if test "$no_cache" != 1; then
8087 echo $ac_cv_use_dragimage >> ${wx_arg_cache_file}.tmp
8088 fi
8089
8090 if test "$wxUSE_DRAGIMAGE" = yes; then
8091 echo "$ac_t""yes" 1>&6
8092 else
8093 echo "$ac_t""no" 1>&6
8094 fi
8095
8096
10f2d63a 8097
698dcdb6 8098
edae8572 8099 echo $ac_n "checking for --enable-palette""... $ac_c" 1>&6
3bd8fb5f 8100echo "configure:8101: checking for --enable-palette" >&5
edae8572
VZ
8101 no_cache=0
8102 # Check whether --enable-palette or --disable-palette was given.
8103if test "${enable_palette+set}" = set; then
8104 enableval="$enable_palette"
8105
8106 if test "$enableval" = yes; then
8107 ac_cv_use_palette='wxUSE_PALETTE=yes'
8108 else
8109 ac_cv_use_palette='wxUSE_PALETTE=no'
8110 fi
8111
8112else
8113
8114 LINE=`grep "wxUSE_PALETTE" ${wx_arg_cache_file}`
8115 if test "x$LINE" != x ; then
8116 eval "DEFAULT_$LINE"
8117 else
8118 no_cache=1
8119 fi
8120
8121 ac_cv_use_palette='wxUSE_PALETTE='$DEFAULT_wxUSE_PALETTE
8122
8123fi
8124
8125
8126 eval "$ac_cv_use_palette"
8127 if test "$no_cache" != 1; then
8128 echo $ac_cv_use_palette >> ${wx_arg_cache_file}.tmp
8129 fi
8130
8131 if test "$wxUSE_PALETTE" = yes; then
8132 echo "$ac_t""yes" 1>&6
8133 else
8134 echo "$ac_t""no" 1>&6
8135 fi
8136
8137
698dcdb6 8138 echo $ac_n "checking for --enable-image""... $ac_c" 1>&6
3bd8fb5f 8139echo "configure:8140: checking for --enable-image" >&5
0046ff7c
VS
8140 no_cache=0
8141 # Check whether --enable-image or --disable-image was given.
8142if test "${enable_image+set}" = set; then
8143 enableval="$enable_image"
698dcdb6 8144
0046ff7c
VS
8145 if test "$enableval" = yes; then
8146 ac_cv_use_image='wxUSE_IMAGE=yes'
8147 else
8148 ac_cv_use_image='wxUSE_IMAGE=no'
8149 fi
698dcdb6 8150
0046ff7c 8151else
698dcdb6 8152
0046ff7c
VS
8153 LINE=`grep "wxUSE_IMAGE" ${wx_arg_cache_file}`
8154 if test "x$LINE" != x ; then
8155 eval "DEFAULT_$LINE"
8156 else
8157 no_cache=1
8158 fi
8159
8160 ac_cv_use_image='wxUSE_IMAGE='$DEFAULT_wxUSE_IMAGE
698dcdb6
VZ
8161
8162fi
0046ff7c
VS
8163
8164
8165 eval "$ac_cv_use_image"
8166 if test "$no_cache" != 1; then
8167 echo $ac_cv_use_image >> ${wx_arg_cache_file}.tmp
8168 fi
8169
8170 if test "$wxUSE_IMAGE" = yes; then
698dcdb6 8171 echo "$ac_t""yes" 1>&6
0046ff7c 8172 else
698dcdb6 8173 echo "$ac_t""no" 1>&6
0046ff7c 8174 fi
698dcdb6 8175
0046ff7c 8176
698dcdb6 8177 echo $ac_n "checking for --enable-gif""... $ac_c" 1>&6
3bd8fb5f 8178echo "configure:8179: checking for --enable-gif" >&5
10f2d63a
VZ
8179 no_cache=0
8180 # Check whether --enable-gif or --disable-gif was given.
8181if test "${enable_gif+set}" = set; then
8182 enableval="$enable_gif"
698dcdb6 8183
10f2d63a
VZ
8184 if test "$enableval" = yes; then
8185 ac_cv_use_gif='wxUSE_GIF=yes'
8186 else
8187 ac_cv_use_gif='wxUSE_GIF=no'
8188 fi
698dcdb6 8189
10f2d63a 8190else
698dcdb6 8191
10f2d63a
VZ
8192 LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}`
8193 if test "x$LINE" != x ; then
8194 eval "DEFAULT_$LINE"
8195 else
8196 no_cache=1
8197 fi
8198
8199 ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF
698dcdb6
VZ
8200
8201fi
10f2d63a
VZ
8202
8203
8204 eval "$ac_cv_use_gif"
8205 if test "$no_cache" != 1; then
8206 echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp
8207 fi
8208
8209 if test "$wxUSE_GIF" = yes; then
698dcdb6 8210 echo "$ac_t""yes" 1>&6
10f2d63a 8211 else
698dcdb6 8212 echo "$ac_t""no" 1>&6
10f2d63a 8213 fi
698dcdb6 8214
10f2d63a 8215
698dcdb6 8216 echo $ac_n "checking for --enable-pcx""... $ac_c" 1>&6
3bd8fb5f 8217echo "configure:8218: checking for --enable-pcx" >&5
10f2d63a
VZ
8218 no_cache=0
8219 # Check whether --enable-pcx or --disable-pcx was given.
8220if test "${enable_pcx+set}" = set; then
8221 enableval="$enable_pcx"
698dcdb6 8222
10f2d63a
VZ
8223 if test "$enableval" = yes; then
8224 ac_cv_use_pcx='wxUSE_PCX=yes'
8225 else
8226 ac_cv_use_pcx='wxUSE_PCX=no'
8227 fi
698dcdb6 8228
10f2d63a 8229else
698dcdb6 8230
10f2d63a
VZ
8231 LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}`
8232 if test "x$LINE" != x ; then
8233 eval "DEFAULT_$LINE"
8234 else
8235 no_cache=1
8236 fi
8237
8238 ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX
698dcdb6
VZ
8239
8240fi
10f2d63a
VZ
8241
8242
8243 eval "$ac_cv_use_pcx"
8244 if test "$no_cache" != 1; then
8245 echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp
8246 fi
8247
8248 if test "$wxUSE_PCX" = yes; then
698dcdb6 8249 echo "$ac_t""yes" 1>&6
10f2d63a 8250 else
698dcdb6 8251 echo "$ac_t""no" 1>&6
10f2d63a 8252 fi
698dcdb6 8253
10f2d63a 8254
4b6b4dfc 8255 echo $ac_n "checking for --enable-iff""... $ac_c" 1>&6
3bd8fb5f 8256echo "configure:8257: checking for --enable-iff" >&5
4b6b4dfc
RR
8257 no_cache=0
8258 # Check whether --enable-iff or --disable-iff was given.
8259if test "${enable_iff+set}" = set; then
8260 enableval="$enable_iff"
8261
8262 if test "$enableval" = yes; then
8263 ac_cv_use_iff='wxUSE_IFF=yes'
8264 else
8265 ac_cv_use_iff='wxUSE_IFF=no'
8266 fi
8267
8268else
8269
8270 LINE=`grep "wxUSE_IFF" ${wx_arg_cache_file}`
8271 if test "x$LINE" != x ; then
8272 eval "DEFAULT_$LINE"
8273 else
8274 no_cache=1
8275 fi
8276
8277 ac_cv_use_iff='wxUSE_IFF='$DEFAULT_wxUSE_IFF
8278
8279fi
8280
8281
8282 eval "$ac_cv_use_iff"
8283 if test "$no_cache" != 1; then
8284 echo $ac_cv_use_iff >> ${wx_arg_cache_file}.tmp
8285 fi
8286
8287 if test "$wxUSE_IFF" = yes; then
8288 echo "$ac_t""yes" 1>&6
8289 else
8290 echo "$ac_t""no" 1>&6
8291 fi
8292
8293
698dcdb6 8294 echo $ac_n "checking for --enable-pnm""... $ac_c" 1>&6
3bd8fb5f 8295echo "configure:8296: checking for --enable-pnm" >&5
10f2d63a
VZ
8296 no_cache=0
8297 # Check whether --enable-pnm or --disable-pnm was given.
8298if test "${enable_pnm+set}" = set; then
8299 enableval="$enable_pnm"
698dcdb6 8300
10f2d63a
VZ
8301 if test "$enableval" = yes; then
8302 ac_cv_use_pnm='wxUSE_PNM=yes'
8303 else
8304 ac_cv_use_pnm='wxUSE_PNM=no'
8305 fi
698dcdb6 8306
10f2d63a 8307else
698dcdb6 8308
10f2d63a
VZ
8309 LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}`
8310 if test "x$LINE" != x ; then
8311 eval "DEFAULT_$LINE"
8312 else
8313 no_cache=1
8314 fi
8315
8316 ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM
698dcdb6
VZ
8317
8318fi
10f2d63a
VZ
8319
8320
8321 eval "$ac_cv_use_pnm"
8322 if test "$no_cache" != 1; then
8323 echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp
8324 fi
8325
8326 if test "$wxUSE_PNM" = yes; then
698dcdb6 8327 echo "$ac_t""yes" 1>&6
10f2d63a 8328 else
698dcdb6 8329 echo "$ac_t""no" 1>&6
10f2d63a 8330 fi
698dcdb6 8331
10f2d63a 8332
69d27ff7 8333 echo $ac_n "checking for --enable-xpm""... $ac_c" 1>&6
3bd8fb5f 8334echo "configure:8335: checking for --enable-xpm" >&5
0046ff7c 8335 no_cache=0
69d27ff7
MB
8336 # Check whether --enable-xpm or --disable-xpm was given.
8337if test "${enable_xpm+set}" = set; then
8338 enableval="$enable_xpm"
698dcdb6 8339
0046ff7c 8340 if test "$enableval" = yes; then
69d27ff7 8341 ac_cv_use_xpm='wxUSE_XPM=yes'
0046ff7c 8342 else
69d27ff7 8343 ac_cv_use_xpm='wxUSE_XPM=no'
0046ff7c 8344 fi
698dcdb6 8345
0046ff7c 8346else
698dcdb6 8347
0046ff7c
VS
8348 LINE=`grep "wxUSE_XPM" ${wx_arg_cache_file}`
8349 if test "x$LINE" != x ; then
8350 eval "DEFAULT_$LINE"
8351 else
8352 no_cache=1
8353 fi
8354
69d27ff7 8355 ac_cv_use_xpm='wxUSE_XPM='$DEFAULT_wxUSE_XPM
698dcdb6
VZ
8356
8357fi
0046ff7c
VS
8358
8359
69d27ff7 8360 eval "$ac_cv_use_xpm"
0046ff7c 8361 if test "$no_cache" != 1; then
69d27ff7 8362 echo $ac_cv_use_xpm >> ${wx_arg_cache_file}.tmp
0046ff7c
VS
8363 fi
8364
8365 if test "$wxUSE_XPM" = yes; then
698dcdb6 8366 echo "$ac_t""yes" 1>&6
0046ff7c 8367 else
698dcdb6 8368 echo "$ac_t""no" 1>&6
0046ff7c 8369 fi
698dcdb6 8370
0046ff7c 8371
c7206e64 8372 echo $ac_n "checking for --enable-ico_cur""... $ac_c" 1>&6
3bd8fb5f 8373echo "configure:8374: checking for --enable-ico_cur" >&5
658974ae 8374 no_cache=0
c7206e64
VS
8375 # Check whether --enable-ico_cur or --disable-ico_cur was given.
8376if test "${enable_ico_cur+set}" = set; then
8377 enableval="$enable_ico_cur"
658974ae
VS
8378
8379 if test "$enableval" = yes; then
c7206e64 8380 ac_cv_use_ico_cur='wxUSE_ICO_CUR=yes'
658974ae 8381 else
c7206e64 8382 ac_cv_use_ico_cur='wxUSE_ICO_CUR=no'
658974ae
VS
8383 fi
8384
8385else
8386
8387 LINE=`grep "wxUSE_ICO_CUR" ${wx_arg_cache_file}`
8388 if test "x$LINE" != x ; then
8389 eval "DEFAULT_$LINE"
8390 else
8391 no_cache=1
8392 fi
8393
c7206e64 8394 ac_cv_use_ico_cur='wxUSE_ICO_CUR='$DEFAULT_wxUSE_ICO_CUR
658974ae
VS
8395
8396fi
8397
8398
c7206e64 8399 eval "$ac_cv_use_ico_cur"
658974ae 8400 if test "$no_cache" != 1; then
c7206e64 8401 echo $ac_cv_use_ico_cur >> ${wx_arg_cache_file}.tmp
658974ae
VS
8402 fi
8403
8404 if test "$wxUSE_ICO_CUR" = yes; then
8405 echo "$ac_t""yes" 1>&6
8406 else
8407 echo "$ac_t""no" 1>&6
8408 fi
8409
8410
b12915c1
VZ
8411fi
8412
d558c907
VS
8413case "${host}" in
8414 *-pc-os2_emx | *-pc-os2-emx )
8415 LEX_STEM="lexyy"
8416 ;;
8417 *)
8418 PATH_IFS=':'
8419 LEX_STEM="lex.yy"
8420 ;;
8421esac
8422
8423
698dcdb6 8424
10f2d63a
VZ
8425 echo "saving argument cache $wx_arg_cache_file"
8426 mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file}
698dcdb6 8427
10f2d63a 8428
698dcdb6
VZ
8429
8430echo $ac_n "checking for toolkit""... $ac_c" 1>&6
3bd8fb5f 8431echo "configure:8432: checking for toolkit" >&5
10f2d63a
VZ
8432
8433if test "$wxUSE_GUI" = "yes"; then
8434
3a922bb4
RL
8435 if test "$USE_BEOS" = 1; then
8436 { echo "configure: error: BeOS GUI is not supported yet, use --disable-gui" 1>&2; exit 1; }
8437 fi
b12915c1 8438
3a922bb4
RL
8439 if test "$TOOLKIT_GIVEN" = 1; then
8440 for toolkit in `echo $ALL_TOOLKITS`; do
8441 var=wxUSE_$toolkit
8442 eval "value=\$${var}"
8443 eval "$var=`echo \$value | sed -e "s/yes/1/" -e "s/no/0/"`"
8444 done
10f2d63a 8445 else
3a922bb4
RL
8446 for toolkit in `echo $ALL_TOOLKITS`; do
8447 if test "$has_toolkit_in_cache" != 1; then
8448 var=DEFAULT_DEFAULT_wxUSE_$toolkit
8449 else
8450 var=DEFAULT_wxUSE_$toolkit
8451 fi
8452 eval "wxUSE_$toolkit=\$${var}"
8453 done
10f2d63a 8454 fi
10f2d63a 8455
3a922bb4 8456 NUM_TOOLKITS=`expr ${wxUSE_GTK:-0} + ${wxUSE_MOTIF:-0} + ${wxUSE_MAC:-0} \
f79bd02d 8457 + ${wxUSE_WINE:-0} + ${wxUSE_MSW:-0} + ${wxUSE_MGL:-0} + ${wxUSE_MICROWIN:-0} + ${wxUSE_X11:-0}`
10f2d63a 8458
d558c907 8459 case "${host}" in
6fa882bd 8460 *-pc-os2_emx | *-pc-os2-emx )
3a922bb4 8461 NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}`
3a922bb4 8462 esac
10f2d63a 8463
3a922bb4
RL
8464 case "$NUM_TOOLKITS" in
8465 1)
8466 ;;
8467 0)
8468 { echo "configure: error: Please specify a toolkit - cannot determine the default for ${host}" 1>&2; exit 1; }
8469 ;;
8470 *)
8471 { echo "configure: error: Please specify at most one toolkit (may be some are cached?)" 1>&2; exit 1; }
8472 esac
10f2d63a 8473
3a922bb4
RL
8474 for toolkit in `echo $ALL_TOOLKITS`; do
8475 var=wxUSE_$toolkit
8476 eval "value=\$${var}"
8477 if test "x$value" != x; then
8478 cache_var=CACHE_$toolkit
8479 eval "cache=\$${cache_var}"
8480 if test "$cache" = 1; then
8481 echo "$var=$value" >> ${wx_arg_cache_file}
8482 fi
8483 if test "$value" = 1; then
8484 toolkit_echo=`echo $toolkit | tr [A-Z] [a-z]`
8485 echo "$ac_t""$toolkit_echo" 1>&6
8486 fi
8487 fi
8488 done
10f2d63a 8489else
3a922bb4 8490 echo "$ac_t""base ($host_alias hosted) only" 1>&6
10f2d63a
VZ
8491fi
8492
698dcdb6 8493
17234b26
MB
8494define_win32=0
8495case "${host}" in
8496 *-*-cygwin*)
8497 if test "$wxUSE_MSW" = 1 ; then
8498 define_win32=1
8499 fi
8500 ;;
8501 *-*-mingw*)
8502 define_win32=1
8503 ;;
8504esac
8505
8506if test "$define_win32" = 1 ; then
8507 USE_UNIX=0
8508 USE_WIN32=1
8509 cat >> confdefs.h <<\EOF
8510#define __WIN32__ 1
8511EOF
8512
8513 cat >> confdefs.h <<\EOF
8514#define __WIN95__ 1
8515EOF
8516
8517 cat >> confdefs.h <<\EOF
8518#define __WINDOWS__ 1
8519EOF
8520
8521 cat >> confdefs.h <<\EOF
8522#define __GNUWIN32__ 1
8523EOF
8524
8525 cat >> confdefs.h <<\EOF
8526#define STRICT 1
8527EOF
8528
8529 cat >> confdefs.h <<\EOF
8530#define WINVER 0x0400
8531EOF
8532
8533else
8534 USE_UNIX=1
8535 USE_WIN32=0
8536fi
8537
8538if test "$USE_UNIX" = 1 ; then
8539 wxUSE_UNIX=yes
8540 cat >> confdefs.h <<\EOF
8541#define __UNIX__ 1
8542EOF
8543
8544fi
8545
8546
698dcdb6 8547cat > confcache <<\EOF
10f2d63a
VZ
8548# This file is a shell script that caches the results of configure
8549# tests run on this system so they can be shared between configure
698dcdb6
VZ
8550# scripts and configure runs. It is not useful on other systems.
8551# If it contains results you don't want to keep, you may remove or edit it.
10f2d63a 8552#
698dcdb6
VZ
8553# By default, configure uses ./config.cache as the cache file,
8554# creating it if it does not exist already. You can give configure
8555# the --cache-file=FILE option to use a different cache file; that is
8556# what configure does when it calls configure scripts in
8557# subdirectories, so they share the cache.
8558# Giving --cache-file=/dev/null disables caching, for debugging configure.
8559# config.status only pays attention to the cache file if you give it the
8560# --recheck option to rerun configure.
10f2d63a 8561#
698dcdb6 8562EOF
10f2d63a
VZ
8563# The following way of writing the cache mishandles newlines in values,
8564# but we know of no workaround that is simple, portable, and efficient.
8565# So, don't put newlines in cache variables' values.
8566# Ultrix sh set writes to stderr and can't be redirected directly,
8567# and sets the high bit in the cache file unless we assign to the vars.
698dcdb6
VZ
8568(set) 2>&1 |
8569 case `(ac_space=' '; set | grep ac_space) 2>&1` in
8570 *ac_space=\ *)
8571 # `set' does not quote correctly, so add quotes (double-quote substitution
8572 # turns \\\\ into \\, and sed turns \\ into \).
8573 sed -n \
8574 -e "s/'/'\\\\''/g" \
8575 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
8576 ;;
8577 *)
8578 # `set' quotes correctly as required by POSIX, so do not add quotes.
8579 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
8580 ;;
8581 esac >> confcache
8582if cmp -s $cache_file confcache; then
8583 :
8584else
10f2d63a 8585 if test -w $cache_file; then
698dcdb6
VZ
8586 echo "updating cache $cache_file"
8587 cat confcache > $cache_file
10f2d63a
VZ
8588 else
8589 echo "not updating unwritable cache $cache_file"
8590 fi
8591fi
8592rm -f confcache
8593
698dcdb6 8594
e59890c3 8595if test "$build" != "$host" ; then
9d353d4a 8596 if test "$USE_WIN32" = 1 -o "$USE_DOS" = 1 -o "$USE_UNIX"; then
3a922bb4
RL
8597 CC=$host_alias-gcc
8598 CXX=$host_alias-c++
8599 AR=$host_alias-ar
8600 RANLIB=$host_alias-ranlib
8601 DLLTOOL=$host_alias-dlltool
8602 RESCOMP=$host_alias-windres
8603 LD=$host_alias-ld
8604 NM=$host_alias-nm
8605 STRIP=$host_alias-strip
8606 else
8607 { echo "configure: error: $build_alias -> $host_alias cross compilation not supported yet." 1>&2; exit 1; }
8608 fi
10f2d63a
VZ
8609fi
8610
ec603395 8611CFLAGS=${CFLAGS:=}
698dcdb6 8612# Extract the first word of "gcc", so it can be a program name with args.
1e487827 8613set dummy gcc; ac_word=$2
698dcdb6 8614echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3bd8fb5f 8615echo "configure:8616: checking for $ac_word" >&5
698dcdb6
VZ
8616if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
8617 echo $ac_n "(cached) $ac_c" 1>&6
6232543b
VS
8618else
8619 if test -n "$CC"; then
8620 ac_cv_prog_CC="$CC" # Let the user override the test.
10f2d63a 8621else
698dcdb6
VZ
8622 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8623 ac_dummy="$PATH"
8624 for ac_dir in $ac_dummy; do
8625 test -z "$ac_dir" && ac_dir=.
8626 if test -f $ac_dir/$ac_word; then
8627 ac_cv_prog_CC="gcc"
8628 break
8629 fi
8630 done
8631 IFS="$ac_save_ifs"
10f2d63a 8632fi
6232543b 8633fi
698dcdb6 8634CC="$ac_cv_prog_CC"
6232543b 8635if test -n "$CC"; then
698dcdb6 8636 echo "$ac_t""$CC" 1>&6
1e487827 8637else
698dcdb6 8638 echo "$ac_t""no" 1>&6
1e487827 8639fi
6232543b 8640
1e487827
VS
8641if test -z "$CC"; then
8642 # Extract the first word of "cc", so it can be a program name with args.
8643set dummy cc; ac_word=$2
698dcdb6 8644echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3bd8fb5f 8645echo "configure:8646: checking for $ac_word" >&5
698dcdb6
VZ
8646if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
8647 echo $ac_n "(cached) $ac_c" 1>&6
1e487827
VS
8648else
8649 if test -n "$CC"; then
8650 ac_cv_prog_CC="$CC" # Let the user override the test.
8651else
698dcdb6 8652 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1e487827 8653 ac_prog_rejected=no
698dcdb6
VZ
8654 ac_dummy="$PATH"
8655 for ac_dir in $ac_dummy; do
8656 test -z "$ac_dir" && ac_dir=.
8657 if test -f $ac_dir/$ac_word; then
8658 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
8659 ac_prog_rejected=yes
8660 continue
8661 fi
8662 ac_cv_prog_CC="cc"
8663 break
8664 fi
8665 done
8666 IFS="$ac_save_ifs"
1e487827
VS
8667if test $ac_prog_rejected = yes; then
8668 # We found a bogon in the path, so make sure we never use it.
8669 set dummy $ac_cv_prog_CC
8670 shift
698dcdb6 8671 if test $# -gt 0; then
1e487827
VS
8672 # We chose a different compiler from the bogus one.
8673 # However, it has the same basename, so the bogon will be chosen
8674 # first if we set CC to just the basename; use the full file name.
8675 shift
698dcdb6 8676 set dummy "$ac_dir/$ac_word" "$@"
1e487827
VS
8677 shift
8678 ac_cv_prog_CC="$@"
703e0a69 8679 fi
1e487827
VS
8680fi
8681fi
8682fi
698dcdb6 8683CC="$ac_cv_prog_CC"
1e487827 8684if test -n "$CC"; then
698dcdb6 8685 echo "$ac_t""$CC" 1>&6
703e0a69 8686else
698dcdb6 8687 echo "$ac_t""no" 1>&6
703e0a69 8688fi
1e487827 8689
698dcdb6
VZ
8690 if test -z "$CC"; then
8691 case "`uname -s`" in
8692 *win32* | *WIN32*)
8693 # Extract the first word of "cl", so it can be a program name with args.
8694set dummy cl; ac_word=$2
8695echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3bd8fb5f 8696echo "configure:8697: checking for $ac_word" >&5
698dcdb6
VZ
8697if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
8698 echo $ac_n "(cached) $ac_c" 1>&6
1e487827
VS
8699else
8700 if test -n "$CC"; then
8701 ac_cv_prog_CC="$CC" # Let the user override the test.
703e0a69 8702else
698dcdb6
VZ
8703 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8704 ac_dummy="$PATH"
8705 for ac_dir in $ac_dummy; do
8706 test -z "$ac_dir" && ac_dir=.
8707 if test -f $ac_dir/$ac_word; then
8708 ac_cv_prog_CC="cl"
8709 break
8710 fi
8711 done
8712 IFS="$ac_save_ifs"
703e0a69 8713fi
1e487827 8714fi
698dcdb6 8715CC="$ac_cv_prog_CC"
1e487827 8716if test -n "$CC"; then
698dcdb6 8717 echo "$ac_t""$CC" 1>&6
1e487827 8718else
698dcdb6 8719 echo "$ac_t""no" 1>&6
1e487827 8720fi
698dcdb6
VZ
8721 ;;
8722 esac
8723 fi
8724 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1e487827
VS
8725fi
8726
698dcdb6 8727echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
3bd8fb5f 8728echo "configure:8729: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1e487827 8729
698dcdb6
VZ
8730ac_ext=c
8731# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8732ac_cpp='$CPP $CPPFLAGS'
8733ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8734ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8735cross_compiling=$ac_cv_prog_cc_cross
6232543b 8736
698dcdb6 8737cat > conftest.$ac_ext << EOF
1e487827 8738
3bd8fb5f 8739#line 8740 "configure"
1e487827
VS
8740#include "confdefs.h"
8741
698dcdb6
VZ
8742main(){return(0);}
8743EOF
3bd8fb5f 8744if { (eval echo configure:8745: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
8745 ac_cv_prog_cc_works=yes
8746 # If we can't run a trivial program, we are probably using a cross compiler.
8747 if (./conftest; exit) 2>/dev/null; then
8748 ac_cv_prog_cc_cross=no
8749 else
8750 ac_cv_prog_cc_cross=yes
8751 fi
8752else
8753 echo "configure: failed program was:" >&5
8754 cat conftest.$ac_ext >&5
8755 ac_cv_prog_cc_works=no
8756fi
8757rm -fr conftest*
8758ac_ext=c
8759# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8760ac_cpp='$CPP $CPPFLAGS'
8761ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8762ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8763cross_compiling=$ac_cv_prog_cc_cross
8764
8765echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
8766if test $ac_cv_prog_cc_works = no; then
8767 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
8768fi
8769echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
3bd8fb5f 8770echo "configure:8771: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
698dcdb6
VZ
8771echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
8772cross_compiling=$ac_cv_prog_cc_cross
8773
8774echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
3bd8fb5f 8775echo "configure:8776: checking whether we are using GNU C" >&5
698dcdb6
VZ
8776if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
8777 echo $ac_n "(cached) $ac_c" 1>&6
8778else
8779 cat > conftest.c <<EOF
8780#ifdef __GNUC__
8781 yes;
1e487827 8782#endif
698dcdb6 8783EOF
3bd8fb5f 8784if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:8785: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
698dcdb6
VZ
8785 ac_cv_prog_gcc=yes
8786else
8787 ac_cv_prog_gcc=no
8788fi
8789fi
1e487827 8790
698dcdb6 8791echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1e487827 8792
698dcdb6
VZ
8793if test $ac_cv_prog_gcc = yes; then
8794 GCC=yes
8795else
8796 GCC=
8797fi
1e487827 8798
698dcdb6
VZ
8799ac_test_CFLAGS="${CFLAGS+set}"
8800ac_save_CFLAGS="$CFLAGS"
8801CFLAGS=
8802echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
3bd8fb5f 8803echo "configure:8804: checking whether ${CC-cc} accepts -g" >&5
698dcdb6
VZ
8804if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
8805 echo $ac_n "(cached) $ac_c" 1>&6
8806else
8807 echo 'void f(){}' > conftest.c
8808if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
10f2d63a
VZ
8809 ac_cv_prog_cc_g=yes
8810else
698dcdb6 8811 ac_cv_prog_cc_g=no
10f2d63a 8812fi
698dcdb6
VZ
8813rm -f conftest*
8814
10f2d63a 8815fi
698dcdb6
VZ
8816
8817echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
10f2d63a 8818if test "$ac_test_CFLAGS" = set; then
698dcdb6 8819 CFLAGS="$ac_save_CFLAGS"
10f2d63a
VZ
8820elif test $ac_cv_prog_cc_g = yes; then
8821 if test "$GCC" = yes; then
8822 CFLAGS="-g -O2"
8823 else
8824 CFLAGS="-g"
8825 fi
8826else
8827 if test "$GCC" = yes; then
8828 CFLAGS="-O2"
8829 else
8830 CFLAGS=
8831 fi
8832fi
8833
8834
698dcdb6 8835echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
3bd8fb5f 8836echo "configure:8837: checking how to run the C preprocessor" >&5
10f2d63a
VZ
8837# On Suns, sometimes $CPP names a directory.
8838if test -n "$CPP" && test -d "$CPP"; then
8839 CPP=
8840fi
8841if test -z "$CPP"; then
698dcdb6
VZ
8842if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
8843 echo $ac_n "(cached) $ac_c" 1>&6
8844else
8845 # This must be in double quotes, not single quotes, because CPP may get
8846 # substituted into the Makefile and "${CC-cc}" will confuse make.
8847 CPP="${CC-cc} -E"
10f2d63a 8848 # On the NeXT, cc -E runs the code through the compiler's parser,
698dcdb6
VZ
8849 # not just through cpp.
8850 cat > conftest.$ac_ext <<EOF
3bd8fb5f 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"
3bd8fb5f 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="${CC-cc} -E -traditional-cpp"
8867 cat > conftest.$ac_ext <<EOF
3bd8fb5f 8868#line 8869 "configure"
10f2d63a 8869#include "confdefs.h"
698dcdb6
VZ
8870#include <assert.h>
8871Syntax Error
8872EOF
8873ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3bd8fb5f 8874{ (eval echo configure:8875: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
8875ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8876if test -z "$ac_err"; then
8877 :
10f2d63a 8878else
698dcdb6
VZ
8879 echo "$ac_err" >&5
8880 echo "configure: failed program was:" >&5
10f2d63a 8881 cat conftest.$ac_ext >&5
698dcdb6
VZ
8882 rm -rf conftest*
8883 CPP="${CC-cc} -nologo -E"
8884 cat > conftest.$ac_ext <<EOF
3bd8fb5f 8885#line 8886 "configure"
10f2d63a
VZ
8886#include "confdefs.h"
8887#include <assert.h>
698dcdb6
VZ
8888Syntax Error
8889EOF
8890ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3bd8fb5f 8891{ (eval echo configure:8892: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
8892ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8893if test -z "$ac_err"; then
10f2d63a
VZ
8894 :
8895else
698dcdb6
VZ
8896 echo "$ac_err" >&5
8897 echo "configure: failed program was:" >&5
10f2d63a 8898 cat conftest.$ac_ext >&5
698dcdb6
VZ
8899 rm -rf conftest*
8900 CPP=/lib/cpp
10f2d63a 8901fi
698dcdb6 8902rm -f conftest*
10f2d63a 8903fi
698dcdb6 8904rm -f conftest*
703e0a69 8905fi
698dcdb6
VZ
8906rm -f conftest*
8907 ac_cv_prog_CPP="$CPP"
8908fi
8909 CPP="$ac_cv_prog_CPP"
10f2d63a 8910else
698dcdb6 8911 ac_cv_prog_CPP="$CPP"
10f2d63a 8912fi
698dcdb6 8913echo "$ac_t""$CPP" 1>&6
10f2d63a 8914
698dcdb6
VZ
8915if test $ac_cv_prog_gcc = yes; then
8916 echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
3bd8fb5f 8917echo "configure:8918: checking whether ${CC-cc} needs -traditional" >&5
698dcdb6
VZ
8918if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
8919 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a
VZ
8920else
8921 ac_pattern="Autoconf.*'x'"
698dcdb6 8922 cat > conftest.$ac_ext <<EOF
3bd8fb5f 8923#line 8924 "configure"
10f2d63a
VZ
8924#include "confdefs.h"
8925#include <sgtty.h>
8926Autoconf TIOCGETP
698dcdb6 8927EOF
10f2d63a
VZ
8928if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8929 egrep "$ac_pattern" >/dev/null 2>&1; then
698dcdb6 8930 rm -rf conftest*
10f2d63a
VZ
8931 ac_cv_prog_gcc_traditional=yes
8932else
698dcdb6 8933 rm -rf conftest*
10f2d63a
VZ
8934 ac_cv_prog_gcc_traditional=no
8935fi
8936rm -f conftest*
8937
698dcdb6 8938
10f2d63a 8939 if test $ac_cv_prog_gcc_traditional = no; then
698dcdb6 8940 cat > conftest.$ac_ext <<EOF
3bd8fb5f 8941#line 8942 "configure"
10f2d63a
VZ
8942#include "confdefs.h"
8943#include <termio.h>
8944Autoconf TCGETA
698dcdb6 8945EOF
10f2d63a
VZ
8946if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8947 egrep "$ac_pattern" >/dev/null 2>&1; then
698dcdb6 8948 rm -rf conftest*
10f2d63a
VZ
8949 ac_cv_prog_gcc_traditional=yes
8950fi
8951rm -f conftest*
8952
8953 fi
8954fi
698dcdb6
VZ
8955
8956echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6
10f2d63a
VZ
8957 if test $ac_cv_prog_gcc_traditional = yes; then
8958 CC="$CC -traditional"
8959 fi
8960fi
8961
703e0a69 8962
698dcdb6
VZ
8963
8964ac_ext=C
8965# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1e487827 8966ac_cpp='$CXXCPP $CPPFLAGS'
698dcdb6
VZ
8967ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8968ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8969cross_compiling=$ac_cv_prog_cxx_cross
8970
8971
ec603395 8972CXXFLAGS=${CXXFLAGS:=}
698dcdb6
VZ
8973for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
8974do
8975# Extract the first word of "$ac_prog", so it can be a program name with args.
8976set dummy $ac_prog; ac_word=$2
8977echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3bd8fb5f 8978echo "configure:8979: checking for $ac_word" >&5
698dcdb6
VZ
8979if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
8980 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a
VZ
8981else
8982 if test -n "$CXX"; then
8983 ac_cv_prog_CXX="$CXX" # Let the user override the test.
8984else
698dcdb6
VZ
8985 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8986 ac_dummy="$PATH"
8987 for ac_dir in $ac_dummy; do
8988 test -z "$ac_dir" && ac_dir=.
8989 if test -f $ac_dir/$ac_word; then
8990 ac_cv_prog_CXX="$ac_prog"
8991 break
8992 fi
8993 done
8994 IFS="$ac_save_ifs"
10f2d63a
VZ
8995fi
8996fi
698dcdb6 8997CXX="$ac_cv_prog_CXX"
10f2d63a 8998if test -n "$CXX"; then
698dcdb6 8999 echo "$ac_t""$CXX" 1>&6
10f2d63a 9000else
698dcdb6 9001 echo "$ac_t""no" 1>&6
10f2d63a
VZ
9002fi
9003
698dcdb6 9004test -n "$CXX" && break
10f2d63a 9005done
698dcdb6 9006test -n "$CXX" || CXX="gcc"
10f2d63a
VZ
9007
9008
698dcdb6 9009echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
3bd8fb5f 9010echo "configure:9011: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
10f2d63a 9011
698dcdb6
VZ
9012ac_ext=C
9013# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9014ac_cpp='$CXXCPP $CPPFLAGS'
9015ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9016ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9017cross_compiling=$ac_cv_prog_cxx_cross
703e0a69 9018
698dcdb6
VZ
9019cat > conftest.$ac_ext << EOF
9020
3bd8fb5f 9021#line 9022 "configure"
10f2d63a
VZ
9022#include "confdefs.h"
9023
698dcdb6
VZ
9024int main(){return(0);}
9025EOF
3bd8fb5f 9026if { (eval echo configure:9027: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
9027 ac_cv_prog_cxx_works=yes
9028 # If we can't run a trivial program, we are probably using a cross compiler.
9029 if (./conftest; exit) 2>/dev/null; then
9030 ac_cv_prog_cxx_cross=no
9031 else
9032 ac_cv_prog_cxx_cross=yes
9033 fi
9034else
9035 echo "configure: failed program was:" >&5
9036 cat conftest.$ac_ext >&5
9037 ac_cv_prog_cxx_works=no
9038fi
9039rm -fr conftest*
9040ac_ext=C
9041# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9042ac_cpp='$CXXCPP $CPPFLAGS'
9043ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9044ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9045cross_compiling=$ac_cv_prog_cxx_cross
9046
9047echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
9048if test $ac_cv_prog_cxx_works = no; then
9049 { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
9050fi
9051echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
3bd8fb5f 9052echo "configure:9053: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
698dcdb6
VZ
9053echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
9054cross_compiling=$ac_cv_prog_cxx_cross
9055
9056echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
3bd8fb5f 9057echo "configure:9058: checking whether we are using GNU C++" >&5
698dcdb6
VZ
9058if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
9059 echo $ac_n "(cached) $ac_c" 1>&6
9060else
9061 cat > conftest.C <<EOF
9062#ifdef __GNUC__
9063 yes;
10f2d63a 9064#endif
698dcdb6 9065EOF
3bd8fb5f 9066if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:9067: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
698dcdb6
VZ
9067 ac_cv_prog_gxx=yes
9068else
9069 ac_cv_prog_gxx=no
9070fi
9071fi
10f2d63a 9072
698dcdb6 9073echo "$ac_t""$ac_cv_prog_gxx" 1>&6
10f2d63a 9074
698dcdb6
VZ
9075if test $ac_cv_prog_gxx = yes; then
9076 GXX=yes
9077else
9078 GXX=
9079fi
10f2d63a 9080
698dcdb6
VZ
9081ac_test_CXXFLAGS="${CXXFLAGS+set}"
9082ac_save_CXXFLAGS="$CXXFLAGS"
9083CXXFLAGS=
9084echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
3bd8fb5f 9085echo "configure:9086: checking whether ${CXX-g++} accepts -g" >&5
698dcdb6
VZ
9086if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
9087 echo $ac_n "(cached) $ac_c" 1>&6
9088else
9089 echo 'void f(){}' > conftest.cc
9090if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
10f2d63a
VZ
9091 ac_cv_prog_cxx_g=yes
9092else
698dcdb6 9093 ac_cv_prog_cxx_g=no
10f2d63a 9094fi
698dcdb6
VZ
9095rm -f conftest*
9096
10f2d63a 9097fi
698dcdb6
VZ
9098
9099echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
10f2d63a 9100if test "$ac_test_CXXFLAGS" = set; then
698dcdb6 9101 CXXFLAGS="$ac_save_CXXFLAGS"
10f2d63a
VZ
9102elif test $ac_cv_prog_cxx_g = yes; then
9103 if test "$GXX" = yes; then
9104 CXXFLAGS="-g -O2"
9105 else
9106 CXXFLAGS="-g"
9107 fi
9108else
9109 if test "$GXX" = yes; then
9110 CXXFLAGS="-O2"
9111 else
9112 CXXFLAGS=
9113 fi
9114fi
9115
9116
10f2d63a 9117ac_ext=c
698dcdb6 9118# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10f2d63a 9119ac_cpp='$CPP $CPPFLAGS'
698dcdb6
VZ
9120ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9121ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9122cross_compiling=$ac_cv_prog_cc_cross
9123
9124
9125# Extract the first word of "ranlib", so it can be a program name with args.
9126set dummy ranlib; ac_word=$2
9127echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3bd8fb5f 9128echo "configure:9129: checking for $ac_word" >&5
698dcdb6
VZ
9129if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
9130 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a
VZ
9131else
9132 if test -n "$RANLIB"; then
9133 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9134else
698dcdb6
VZ
9135 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9136 ac_dummy="$PATH"
9137 for ac_dir in $ac_dummy; do
9138 test -z "$ac_dir" && ac_dir=.
9139 if test -f $ac_dir/$ac_word; then
9140 ac_cv_prog_RANLIB="ranlib"
9141 break
9142 fi
9143 done
9144 IFS="$ac_save_ifs"
9145 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
10f2d63a
VZ
9146fi
9147fi
698dcdb6 9148RANLIB="$ac_cv_prog_RANLIB"
10f2d63a 9149if test -n "$RANLIB"; then
698dcdb6 9150 echo "$ac_t""$RANLIB" 1>&6
10f2d63a 9151else
698dcdb6 9152 echo "$ac_t""no" 1>&6
10f2d63a
VZ
9153fi
9154
9155
9156# Extract the first word of "ar", so it can be a program name with args.
9157set dummy ar; ac_word=$2
698dcdb6 9158echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3bd8fb5f 9159echo "configure:9160: checking for $ac_word" >&5
698dcdb6
VZ
9160if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
9161 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a
VZ
9162else
9163 if test -n "$AR"; then
9164 ac_cv_prog_AR="$AR" # Let the user override the test.
9165else
698dcdb6
VZ
9166 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9167 ac_dummy="$PATH"
9168 for ac_dir in $ac_dummy; do
9169 test -z "$ac_dir" && ac_dir=.
9170 if test -f $ac_dir/$ac_word; then
9171 ac_cv_prog_AR="ar"
9172 break
9173 fi
9174 done
9175 IFS="$ac_save_ifs"
10f2d63a
VZ
9176 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
9177fi
9178fi
698dcdb6 9179AR="$ac_cv_prog_AR"
10f2d63a 9180if test -n "$AR"; then
698dcdb6 9181 echo "$ac_t""$AR" 1>&6
10f2d63a 9182else
698dcdb6 9183 echo "$ac_t""no" 1>&6
10f2d63a
VZ
9184fi
9185
698dcdb6 9186
6054113a 9187# Find a good install program. We prefer a C program (faster),
10f2d63a
VZ
9188# so one script is as good as another. But avoid the broken or
9189# incompatible versions:
9190# SysV /etc/install, /usr/sbin/install
9191# SunOS /usr/etc/install
9192# IRIX /sbin/install
9193# AIX /bin/install
9194# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
9195# AFS /usr/afsws/bin/install, which mishandles nonexistent args
9196# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
9197# ./install, which can be erroneously created by make from ./install.sh.
698dcdb6 9198echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
3bd8fb5f 9199echo "configure:9200: checking for a BSD compatible install" >&5
10f2d63a 9200if test -z "$INSTALL"; then
698dcdb6
VZ
9201if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
9202 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 9203else
698dcdb6 9204 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
10f2d63a
VZ
9205 for ac_dir in $PATH; do
9206 # Account for people who put trailing slashes in PATH elements.
698dcdb6
VZ
9207 case "$ac_dir/" in
9208 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
10f2d63a
VZ
9209 *)
9210 # OSF1 and SCO ODT 3.0 have their own names for install.
9211 # Don't use installbsd from OSF since it installs stuff as root
9212 # by default.
9213 for ac_prog in ginstall scoinst install; do
698dcdb6 9214 if test -f $ac_dir/$ac_prog; then
10f2d63a 9215 if test $ac_prog = install &&
698dcdb6 9216 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
10f2d63a
VZ
9217 # AIX install. It has an incompatible calling convention.
9218 :
9219 else
9220 ac_cv_path_install="$ac_dir/$ac_prog -c"
9221 break 2
9222 fi
9223 fi
9224 done
9225 ;;
9226 esac
9227 done
698dcdb6 9228 IFS="$ac_save_IFS"
10f2d63a
VZ
9229
9230fi
9231 if test "${ac_cv_path_install+set}" = set; then
698dcdb6 9232 INSTALL="$ac_cv_path_install"
10f2d63a
VZ
9233 else
9234 # As a last resort, use the slow shell script. We don't cache a
9235 # path for INSTALL within a source directory, because that will
9236 # break other packages using the cache if that directory is
9237 # removed, or if the path is relative.
698dcdb6 9238 INSTALL="$ac_install_sh"
10f2d63a
VZ
9239 fi
9240fi
698dcdb6 9241echo "$ac_t""$INSTALL" 1>&6
10f2d63a
VZ
9242
9243# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
9244# It thinks the first close brace ends the variable substitution.
9245test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
9246
698dcdb6 9247test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
10f2d63a
VZ
9248
9249test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
9250
1d1b75ac
VZ
9251
9252case ${INSTALL} in
9253 /* ) # Absolute
9254 ;;
3bd8fb5f 9255 *)
1d1b75ac
VZ
9256 INSTALL=`pwd`/${INSTALL} ;;
9257esac
9258
9259
6054113a
GD
9260case "${host}" in
9261
b5853384 9262 powerpc-*-darwin* )
eb99ae0b
GD
9263 INSTALL_PROGRAM="cp -fp"
9264 INSTALL_DATA="cp -fp"
6054113a
GD
9265 ;;
9266 *)
9267 ;;
d6853540 9268esac
698dcdb6 9269
10f2d63a
VZ
9270# Extract the first word of "strip", so it can be a program name with args.
9271set dummy strip; ac_word=$2
698dcdb6 9272echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3bd8fb5f 9273echo "configure:9274: checking for $ac_word" >&5
698dcdb6
VZ
9274if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
9275 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a
VZ
9276else
9277 if test -n "$STRIP"; then
9278 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9279else
698dcdb6
VZ
9280 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9281 ac_dummy="$PATH"
9282 for ac_dir in $ac_dummy; do
9283 test -z "$ac_dir" && ac_dir=.
9284 if test -f $ac_dir/$ac_word; then
9285 ac_cv_prog_STRIP="strip"
9286 break
9287 fi
9288 done
9289 IFS="$ac_save_ifs"
10f2d63a
VZ
9290 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="true"
9291fi
9292fi
698dcdb6 9293STRIP="$ac_cv_prog_STRIP"
10f2d63a 9294if test -n "$STRIP"; then
698dcdb6 9295 echo "$ac_t""$STRIP" 1>&6
10f2d63a 9296else
698dcdb6 9297 echo "$ac_t""no" 1>&6
10f2d63a
VZ
9298fi
9299
698dcdb6 9300
414eab6d 9301echo $ac_n "checking if make is GNU make""... $ac_c" 1>&6
3bd8fb5f 9302echo "configure:9303: checking if make is GNU make" >&5
414eab6d
VZ
9303if eval "test \"`echo '$''{'wx_cv_prog_makeisgnu'+set}'`\" = set"; then
9304 echo $ac_n "(cached) $ac_c" 1>&6
9305else
9306
9307 if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
d558c907 9308 egrep -s GNU > /dev/null); then
414eab6d
VZ
9309 wx_cv_prog_makeisgnu="yes"
9310 else
9311 wx_cv_prog_makeisgnu="no"
9312 fi
9313
9314fi
9315
9316echo "$ac_t""$wx_cv_prog_makeisgnu" 1>&6
9317
9318if test "x$wx_cv_prog_makeisgnu" = "xyes"; then
9319 IF_GNU_MAKE=""
9320else
9321 IF_GNU_MAKE="#"
9322fi
9323
9324
9325
9326if test "x$wx_cv_prog_makeisgnu" != "xyes"; then
04e7a216 9327echo $ac_n "checking if make supports VPATH""... $ac_c" 1>&6
3bd8fb5f 9328echo "configure:9329: checking if make supports VPATH" >&5
04e7a216
VZ
9329if eval "test \"`echo '$''{'wx_cv_prog_makevpath'+set}'`\" = set"; then
9330 echo $ac_n "(cached) $ac_c" 1>&6
9331else
9332
10f2d63a
VZ
9333cat - << EOF > confMake
9334check : file
9335 cp \$? \$@
9336 cp \$? final_file
9337EOF
9338
9339if test ! -d sub ; then
9340 mkdir sub
9341fi
9342echo dummy > sub/file
f6bcfd97 9343${MAKE-make} -f confMake VPATH=sub 2>&5 > /dev/null
10f2d63a
VZ
9344RESULT=$?
9345rm -f sub/file check final_file confMake
9346rmdir sub
9347if test "$RESULT" = 0; then
04e7a216 9348 wx_cv_prog_makevpath="yes"
10f2d63a 9349else
04e7a216
VZ
9350 wx_cv_prog_makevpath="no"
9351fi
9352
9353fi
9354
9355echo "$ac_t""$wx_cv_prog_makevpath" 1>&6
9356
9357if test "x$wx_cv_prog_makevpath" != "xyes"; then
9358{ echo "configure: error:
1e487827
VS
9359You need a make-utility that is able to use the variable
9360VPATH correctly.
9361If your version of make does not support VPATH correctly,
9362please install GNU-make (possibly as gmake), and start
9363configure with the following command:
9364export MAKE=gmake; ./configure for sh-type shells
9365setenv MAKE gmake; ./configure for csh-type shells
9366Also please do remember to use gmake in this case every time
9367you are trying to compile.
698dcdb6 9368" 1>&2; exit 1; }
414eab6d 9369fi fi
10f2d63a
VZ
9370for ac_prog in 'bison -y' byacc
9371do
698dcdb6 9372# Extract the first word of "$ac_prog", so it can be a program name with args.
10f2d63a 9373set dummy $ac_prog; ac_word=$2
698dcdb6 9374echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3bd8fb5f 9375echo "configure:9376: checking for $ac_word" >&5
698dcdb6
VZ
9376if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
9377 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a
VZ
9378else
9379 if test -n "$YACC"; then
9380 ac_cv_prog_YACC="$YACC" # 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_YACC="$ac_prog"
9388 break
9389 fi
9390 done
9391 IFS="$ac_save_ifs"
10f2d63a
VZ
9392fi
9393fi
698dcdb6 9394YACC="$ac_cv_prog_YACC"
10f2d63a 9395if test -n "$YACC"; then
698dcdb6 9396 echo "$ac_t""$YACC" 1>&6
10f2d63a 9397else
698dcdb6 9398 echo "$ac_t""no" 1>&6
10f2d63a
VZ
9399fi
9400
698dcdb6 9401test -n "$YACC" && break
10f2d63a
VZ
9402done
9403test -n "$YACC" || YACC="yacc"
9404
698dcdb6
VZ
9405
9406# Extract the first word of "flex", so it can be a program name with args.
9407set dummy flex; ac_word=$2
9408echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3bd8fb5f 9409echo "configure:9410: checking for $ac_word" >&5
698dcdb6
VZ
9410if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
9411 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a
VZ
9412else
9413 if test -n "$LEX"; then
9414 ac_cv_prog_LEX="$LEX" # Let the user override the test.
9415else
698dcdb6
VZ
9416 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9417 ac_dummy="$PATH"
9418 for ac_dir in $ac_dummy; do
9419 test -z "$ac_dir" && ac_dir=.
9420 if test -f $ac_dir/$ac_word; then
9421 ac_cv_prog_LEX="flex"
9422 break
9423 fi
9424 done
9425 IFS="$ac_save_ifs"
9426 test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex"
10f2d63a
VZ
9427fi
9428fi
698dcdb6 9429LEX="$ac_cv_prog_LEX"
10f2d63a 9430if test -n "$LEX"; then
698dcdb6 9431 echo "$ac_t""$LEX" 1>&6
10f2d63a 9432else
698dcdb6 9433 echo "$ac_t""no" 1>&6
10f2d63a
VZ
9434fi
9435
9436if test -z "$LEXLIB"
9437then
698dcdb6
VZ
9438 case "$LEX" in
9439 flex*) ac_lib=fl ;;
9440 *) ac_lib=l ;;
9441 esac
9442 echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
3bd8fb5f 9443echo "configure:9444: checking for yywrap in -l$ac_lib" >&5
698dcdb6
VZ
9444ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
9445if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9446 echo $ac_n "(cached) $ac_c" 1>&6
9447else
9448 ac_save_LIBS="$LIBS"
9449LIBS="-l$ac_lib $LIBS"
9450cat > conftest.$ac_ext <<EOF
3bd8fb5f 9451#line 9452 "configure"
10f2d63a
VZ
9452#include "confdefs.h"
9453/* Override any gcc2 internal prototype to avoid an error. */
9454/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
9455 builtin and then its argument prototype would still apply. */
9456char yywrap();
10f2d63a 9457
698dcdb6
VZ
9458int main() {
9459yywrap()
9460; return 0; }
9461EOF
3bd8fb5f 9462if { (eval echo configure:9463: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
9463 rm -rf conftest*
9464 eval "ac_cv_lib_$ac_lib_var=yes"
10f2d63a 9465else
698dcdb6
VZ
9466 echo "configure: failed program was:" >&5
9467 cat conftest.$ac_ext >&5
9468 rm -rf conftest*
9469 eval "ac_cv_lib_$ac_lib_var=no"
10f2d63a 9470fi
698dcdb6
VZ
9471rm -f conftest*
9472LIBS="$ac_save_LIBS"
9473
10f2d63a 9474fi
698dcdb6
VZ
9475if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9476 echo "$ac_t""yes" 1>&6
9477 LEXLIB="-l$ac_lib"
9478else
9479 echo "$ac_t""no" 1>&6
10f2d63a
VZ
9480fi
9481
9482fi
9483
9484
698dcdb6 9485echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
3bd8fb5f 9486echo "configure:9487: checking whether ln -s works" >&5
698dcdb6
VZ
9487if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
9488 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 9489else
698dcdb6
VZ
9490 rm -f conftestdata
9491if ln -s X conftestdata 2>/dev/null
9492then
9493 rm -f conftestdata
9494 ac_cv_prog_LN_S="ln -s"
10f2d63a 9495else
698dcdb6 9496 ac_cv_prog_LN_S=ln
10f2d63a
VZ
9497fi
9498fi
698dcdb6
VZ
9499LN_S="$ac_cv_prog_LN_S"
9500if test "$ac_cv_prog_LN_S" = "ln -s"; then
9501 echo "$ac_t""yes" 1>&6
10f2d63a 9502else
698dcdb6 9503 echo "$ac_t""no" 1>&6
10f2d63a
VZ
9504fi
9505
9506
9507
21d1c967
GD
9508if test "$wxUSE_MAC" != 1; then
9509 for ac_hdr in strings.h
9510do
9511ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9512echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3bd8fb5f 9513echo "configure:9514: checking for $ac_hdr" >&5
21d1c967 9514if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
19bc6aad
VZ
9515 echo $ac_n "(cached) $ac_c" 1>&6
9516else
90dd450c 9517 cat > conftest.$ac_ext <<EOF
3bd8fb5f 9518#line 9519 "configure"
19bc6aad 9519#include "confdefs.h"
21d1c967 9520#include <$ac_hdr>
19bc6aad 9521EOF
21d1c967 9522ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3bd8fb5f 9523{ (eval echo configure:9524: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
21d1c967
GD
9524ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9525if test -z "$ac_err"; then
19bc6aad 9526 rm -rf conftest*
21d1c967 9527 eval "ac_cv_header_$ac_safe=yes"
19bc6aad 9528else
21d1c967 9529 echo "$ac_err" >&5
19bc6aad
VZ
9530 echo "configure: failed program was:" >&5
9531 cat conftest.$ac_ext >&5
9532 rm -rf conftest*
21d1c967 9533 eval "ac_cv_header_$ac_safe=no"
19bc6aad
VZ
9534fi
9535rm -f conftest*
19bc6aad 9536fi
21d1c967
GD
9537if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9538 echo "$ac_t""yes" 1>&6
9539 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9540 cat >> confdefs.h <<EOF
9541#define $ac_tr_hdr 1
19bc6aad 9542EOF
21d1c967
GD
9543
9544else
9545 echo "$ac_t""no" 1>&6
9546fi
9547done
19bc6aad 9548
19bc6aad
VZ
9549fi
9550
21d1c967
GD
9551for ac_hdr in stdlib.h
9552do
9553ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9554echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3bd8fb5f 9555echo "configure:9556: checking for $ac_hdr" >&5
21d1c967 9556if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
18dbb1f6
VZ
9557 echo $ac_n "(cached) $ac_c" 1>&6
9558else
9559 cat > conftest.$ac_ext <<EOF
3bd8fb5f 9560#line 9561 "configure"
18dbb1f6 9561#include "confdefs.h"
21d1c967 9562#include <$ac_hdr>
18dbb1f6 9563EOF
21d1c967 9564ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3bd8fb5f 9565{ (eval echo configure:9566: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
21d1c967
GD
9566ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9567if test -z "$ac_err"; then
18dbb1f6 9568 rm -rf conftest*
21d1c967 9569 eval "ac_cv_header_$ac_safe=yes"
18dbb1f6 9570else
21d1c967 9571 echo "$ac_err" >&5
18dbb1f6
VZ
9572 echo "configure: failed program was:" >&5
9573 cat conftest.$ac_ext >&5
21d1c967
GD
9574 rm -rf conftest*
9575 eval "ac_cv_header_$ac_safe=no"
18dbb1f6
VZ
9576fi
9577rm -f conftest*
90dd450c 9578fi
21d1c967
GD
9579if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9580 echo "$ac_t""yes" 1>&6
9581 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9582 cat >> confdefs.h <<EOF
9583#define $ac_tr_hdr 1
90dd450c 9584EOF
21d1c967
GD
9585
9586else
9587 echo "$ac_t""no" 1>&6
9588fi
9589done
90dd450c 9590
21d1c967
GD
9591for ac_hdr in malloc.h
9592do
9593ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9594echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3bd8fb5f 9595echo "configure:9596: checking for $ac_hdr" >&5
21d1c967 9596if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
90dd450c 9597 echo $ac_n "(cached) $ac_c" 1>&6
90dd450c
VZ
9598else
9599 cat > conftest.$ac_ext <<EOF
3bd8fb5f 9600#line 9601 "configure"
90dd450c 9601#include "confdefs.h"
21d1c967 9602#include <$ac_hdr>
18dbb1f6 9603EOF
21d1c967 9604ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3bd8fb5f 9605{ (eval echo configure:9606: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
21d1c967
GD
9606ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9607if test -z "$ac_err"; then
9608 rm -rf conftest*
9609 eval "ac_cv_header_$ac_safe=yes"
18dbb1f6 9610else
21d1c967 9611 echo "$ac_err" >&5
18dbb1f6
VZ
9612 echo "configure: failed program was:" >&5
9613 cat conftest.$ac_ext >&5
21d1c967
GD
9614 rm -rf conftest*
9615 eval "ac_cv_header_$ac_safe=no"
18dbb1f6 9616fi
21d1c967 9617rm -f conftest*
18dbb1f6 9618fi
21d1c967
GD
9619if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9620 echo "$ac_t""yes" 1>&6
9621 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9622 cat >> confdefs.h <<EOF
9623#define $ac_tr_hdr 1
4f14bcd8 9624EOF
21d1c967
GD
9625
9626else
9627 echo "$ac_t""no" 1>&6
9628fi
9629done
dad6c0ea 9630
21d1c967
GD
9631for ac_hdr in unistd.h
9632do
9633ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9634echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3bd8fb5f 9635echo "configure:9636: checking for $ac_hdr" >&5
21d1c967 9636if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3a922bb4
RL
9637 echo $ac_n "(cached) $ac_c" 1>&6
9638else
9639 cat > conftest.$ac_ext <<EOF
3bd8fb5f 9640#line 9641 "configure"
3a922bb4 9641#include "confdefs.h"
21d1c967 9642#include <$ac_hdr>
3a922bb4 9643EOF
21d1c967 9644ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3bd8fb5f 9645{ (eval echo configure:9646: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
21d1c967
GD
9646ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9647if test -z "$ac_err"; then
9648 rm -rf conftest*
9649 eval "ac_cv_header_$ac_safe=yes"
3a922bb4 9650else
21d1c967 9651 echo "$ac_err" >&5
3a922bb4
RL
9652 echo "configure: failed program was:" >&5
9653 cat conftest.$ac_ext >&5
21d1c967
GD
9654 rm -rf conftest*
9655 eval "ac_cv_header_$ac_safe=no"
3a922bb4 9656fi
21d1c967 9657rm -f conftest*
90dd450c 9658fi
21d1c967
GD
9659if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9660 echo "$ac_t""yes" 1>&6
9661 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9662 cat >> confdefs.h <<EOF
9663#define $ac_tr_hdr 1
90dd450c 9664EOF
21d1c967
GD
9665
9666else
9667 echo "$ac_t""no" 1>&6
9668fi
9669done
90dd450c 9670
21d1c967
GD
9671for ac_hdr in wchar.h
9672do
9673ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9674echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3bd8fb5f 9675echo "configure:9676: checking for $ac_hdr" >&5
21d1c967 9676if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4f14bcd8 9677 echo $ac_n "(cached) $ac_c" 1>&6
90dd450c
VZ
9678else
9679 cat > conftest.$ac_ext <<EOF
3bd8fb5f 9680#line 9681 "configure"
4f14bcd8 9681#include "confdefs.h"
21d1c967 9682#include <$ac_hdr>
3a922bb4 9683EOF
21d1c967 9684ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3bd8fb5f 9685{ (eval echo configure:9686: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
21d1c967
GD
9686ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9687if test -z "$ac_err"; then
9688 rm -rf conftest*
9689 eval "ac_cv_header_$ac_safe=yes"
4f14bcd8 9690else
21d1c967 9691 echo "$ac_err" >&5
4f14bcd8
GD
9692 echo "configure: failed program was:" >&5
9693 cat conftest.$ac_ext >&5
21d1c967
GD
9694 rm -rf conftest*
9695 eval "ac_cv_header_$ac_safe=no"
3a922bb4 9696fi
21d1c967 9697rm -f conftest*
4f14bcd8 9698fi
21d1c967
GD
9699if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9700 echo "$ac_t""yes" 1>&6
9701 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9702 cat >> confdefs.h <<EOF
9703#define $ac_tr_hdr 1
4f14bcd8 9704EOF
21d1c967
GD
9705
9706else
9707 echo "$ac_t""no" 1>&6
9708fi
9709done
4f14bcd8 9710
4f14bcd8 9711
21d1c967
GD
9712if test "$ac_cv_header_wchar_h" != "yes"; then
9713 for ac_hdr in wcstr.h
9714do
9715ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9716echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3bd8fb5f 9717echo "configure:9718: checking for $ac_hdr" >&5
21d1c967 9718if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
d4158b5d
VS
9719 echo $ac_n "(cached) $ac_c" 1>&6
9720else
9721 cat > conftest.$ac_ext <<EOF
3bd8fb5f 9722#line 9723 "configure"
d4158b5d 9723#include "confdefs.h"
21d1c967 9724#include <$ac_hdr>
d4158b5d 9725EOF
21d1c967 9726ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3bd8fb5f 9727{ (eval echo configure:9728: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
21d1c967
GD
9728ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9729if test -z "$ac_err"; then
9730 rm -rf conftest*
9731 eval "ac_cv_header_$ac_safe=yes"
d4158b5d 9732else
21d1c967 9733 echo "$ac_err" >&5
d4158b5d
VS
9734 echo "configure: failed program was:" >&5
9735 cat conftest.$ac_ext >&5
21d1c967
GD
9736 rm -rf conftest*
9737 eval "ac_cv_header_$ac_safe=no"
d4158b5d 9738fi
21d1c967
GD
9739rm -f conftest*
9740fi
9741if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9742 echo "$ac_t""yes" 1>&6
9743 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9744 cat >> confdefs.h <<EOF
9745#define $ac_tr_hdr 1
9746EOF
9747
9748else
9749 echo "$ac_t""no" 1>&6
d4158b5d 9750fi
21d1c967 9751done
f6bcfd97 9752
90dd450c 9753fi
90dd450c
VZ
9754
9755
21d1c967
GD
9756for ac_hdr in fnmatch.h
9757do
9758ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9759echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3bd8fb5f 9760echo "configure:9761: checking for $ac_hdr" >&5
21d1c967 9761if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
90dd450c 9762 echo $ac_n "(cached) $ac_c" 1>&6
90dd450c
VZ
9763else
9764 cat > conftest.$ac_ext <<EOF
3bd8fb5f 9765#line 9766 "configure"
90dd450c 9766#include "confdefs.h"
21d1c967 9767#include <$ac_hdr>
90dd450c 9768EOF
21d1c967 9769ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3bd8fb5f 9770{ (eval echo configure:9771: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
21d1c967
GD
9771ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9772if test -z "$ac_err"; then
9773 rm -rf conftest*
9774 eval "ac_cv_header_$ac_safe=yes"
3a922bb4 9775else
21d1c967 9776 echo "$ac_err" >&5
3a922bb4
RL
9777 echo "configure: failed program was:" >&5
9778 cat conftest.$ac_ext >&5
21d1c967
GD
9779 rm -rf conftest*
9780 eval "ac_cv_header_$ac_safe=no"
3a922bb4 9781fi
21d1c967 9782rm -f conftest*
4f14bcd8 9783fi
21d1c967
GD
9784if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9785 echo "$ac_t""yes" 1>&6
9786 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9787 cat >> confdefs.h <<EOF
9788#define $ac_tr_hdr 1
90dd450c 9789EOF
21d1c967
GD
9790
9791else
9792 echo "$ac_t""no" 1>&6
9793fi
9794done
90dd450c
VZ
9795
9796
21d1c967
GD
9797if test "x$ac_cv_header_fnmatch_h" = "xyes"; then
9798 for ac_func in fnmatch
9799do
9800echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3bd8fb5f 9801echo "configure:9802: checking for $ac_func" >&5
21d1c967 9802if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
90dd450c 9803 echo $ac_n "(cached) $ac_c" 1>&6
90dd450c
VZ
9804else
9805 cat > conftest.$ac_ext <<EOF
3bd8fb5f 9806#line 9807 "configure"
90dd450c 9807#include "confdefs.h"
21d1c967
GD
9808/* System header to define __stub macros and hopefully few prototypes,
9809 which can conflict with char $ac_func(); below. */
9810#include <assert.h>
9811/* Override any gcc2 internal prototype to avoid an error. */
9812/* We use char because int might match the return type of a gcc2
9813 builtin and then its argument prototype would still apply. */
9814char $ac_func();
9815
9816int main() {
9817
9818/* The GNU C library defines this for functions which it implements
9819 to always fail with ENOSYS. Some functions are actually named
9820 something starting with __ and the normal name is an alias. */
9821#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9822choke me
9823#else
9824$ac_func();
9825#endif
9826
9827; return 0; }
90dd450c 9828EOF
3bd8fb5f 9829if { (eval echo configure:9830: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21d1c967
GD
9830 rm -rf conftest*
9831 eval "ac_cv_func_$ac_func=yes"
90dd450c
VZ
9832else
9833 echo "configure: failed program was:" >&5
9834 cat conftest.$ac_ext >&5
21d1c967
GD
9835 rm -rf conftest*
9836 eval "ac_cv_func_$ac_func=no"
90dd450c 9837fi
21d1c967 9838rm -f conftest*
4f14bcd8 9839fi
32832908 9840
21d1c967
GD
9841if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9842 echo "$ac_t""yes" 1>&6
9843 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9844 cat >> confdefs.h <<EOF
9845#define $ac_tr_func 1
90dd450c 9846EOF
21d1c967
GD
9847
9848else
9849 echo "$ac_t""no" 1>&6
9850fi
9851done
90dd450c 9852
21d1c967 9853fi
90dd450c 9854
21d1c967
GD
9855for ac_hdr in langinfo.h
9856do
9857ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9858echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3bd8fb5f 9859echo "configure:9860: checking for $ac_hdr" >&5
21d1c967 9860if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
90dd450c 9861 echo $ac_n "(cached) $ac_c" 1>&6
90dd450c
VZ
9862else
9863 cat > conftest.$ac_ext <<EOF
3bd8fb5f 9864#line 9865 "configure"
90dd450c 9865#include "confdefs.h"
21d1c967 9866#include <$ac_hdr>
90dd450c 9867EOF
21d1c967 9868ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3bd8fb5f 9869{ (eval echo configure:9870: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
21d1c967
GD
9870ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9871if test -z "$ac_err"; then
9872 rm -rf conftest*
9873 eval "ac_cv_header_$ac_safe=yes"
90dd450c 9874else
21d1c967 9875 echo "$ac_err" >&5
90dd450c
VZ
9876 echo "configure: failed program was:" >&5
9877 cat conftest.$ac_ext >&5
21d1c967
GD
9878 rm -rf conftest*
9879 eval "ac_cv_header_$ac_safe=no"
90dd450c 9880fi
21d1c967 9881rm -f conftest*
4f14bcd8 9882fi
21d1c967
GD
9883if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9884 echo "$ac_t""yes" 1>&6
9885 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9886 cat >> confdefs.h <<EOF
9887#define $ac_tr_hdr 1
90dd450c 9888EOF
21d1c967
GD
9889
9890else
9891 echo "$ac_t""no" 1>&6
9892fi
9893done
3a922bb4 9894
7b7a7637 9895
21d1c967
GD
9896if test "$wxUSE_GUI" = "yes"; then
9897 if test "$wxUSE_UNIX" = "yes"; then
9898 for ac_hdr in X11/XKBlib.h
9899do
9900ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9901echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3bd8fb5f 9902echo "configure:9903: checking for $ac_hdr" >&5
21d1c967 9903if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
90dd450c 9904 echo $ac_n "(cached) $ac_c" 1>&6
90dd450c
VZ
9905else
9906 cat > conftest.$ac_ext <<EOF
3bd8fb5f 9907#line 9908 "configure"
90dd450c 9908#include "confdefs.h"
21d1c967 9909#include <$ac_hdr>
90dd450c 9910EOF
21d1c967 9911ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3bd8fb5f 9912{ (eval echo configure:9913: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
21d1c967
GD
9913ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9914if test -z "$ac_err"; then
9915 rm -rf conftest*
9916 eval "ac_cv_header_$ac_safe=yes"
90dd450c 9917else
21d1c967 9918 echo "$ac_err" >&5
90dd450c
VZ
9919 echo "configure: failed program was:" >&5
9920 cat conftest.$ac_ext >&5
21d1c967
GD
9921 rm -rf conftest*
9922 eval "ac_cv_header_$ac_safe=no"
3a922bb4 9923fi
21d1c967 9924rm -f conftest*
90dd450c 9925fi
21d1c967
GD
9926if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9927 echo "$ac_t""yes" 1>&6
9928 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9929 cat >> confdefs.h <<EOF
9930#define $ac_tr_hdr 1
4f14bcd8 9931EOF
21d1c967
GD
9932
9933else
9934 echo "$ac_t""no" 1>&6
9935fi
9936done
10f2d63a 9937
21d1c967 9938 fi
90dd450c 9939fi
81809c07 9940
21d1c967
GD
9941
9942echo $ac_n "checking for working const""... $ac_c" 1>&6
3bd8fb5f 9943echo "configure:9944: checking for working const" >&5
21d1c967 9944if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
8168de4c
VZ
9945 echo $ac_n "(cached) $ac_c" 1>&6
9946else
21d1c967 9947 cat > conftest.$ac_ext <<EOF
3bd8fb5f 9948#line 9949 "configure"
4f14bcd8 9949#include "confdefs.h"
21d1c967 9950
4f14bcd8 9951int main() {
21d1c967
GD
9952
9953/* Ultrix mips cc rejects this. */
9954typedef int charset[2]; const charset x;
9955/* SunOS 4.1.1 cc rejects this. */
9956char const *const *ccp;
9957char **p;
9958/* NEC SVR4.0.2 mips cc rejects this. */
9959struct point {int x, y;};
9960static struct point const zero = {0,0};
9961/* AIX XL C 1.02.0.0 rejects this.
9962 It does not let you subtract one const X* pointer from another in an arm
9963 of an if-expression whose if-part is not a constant expression */
9964const char *g = "string";
9965ccp = &g + (g ? g-g : 0);
9966/* HPUX 7.0 cc rejects these. */
9967++ccp;
9968p = (char**) ccp;
9969ccp = (char const *const *) p;
9970{ /* SCO 3.2v4 cc rejects this. */
9971 char *t;
9972 char const *s = 0 ? (char *) 0 : (char const *) 0;
9973
9974 *t++ = 0;
9975}
9976{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
9977 int x[] = {25, 17};
9978 const int *foo = &x[0];
9979 ++foo;
9980}
9981{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
9982 typedef const int *iptr;
9983 iptr p = 0;
9984 ++p;
9985}
9986{ /* AIX XL C 1.02.0.0 rejects this saying
9987 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
9988 struct s { int j; const int *ap[3]; };
9989 struct s *b; b->j = 5;
9990}
9991{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
9992 const int foo = 10;
9993}
4f14bcd8 9994
4f14bcd8
GD
9995; return 0; }
9996EOF
3bd8fb5f 9997if { (eval echo configure:9998: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4f14bcd8 9998 rm -rf conftest*
21d1c967 9999 ac_cv_c_const=yes
6f72b082 10000else
4f14bcd8
GD
10001 echo "configure: failed program was:" >&5
10002 cat conftest.$ac_ext >&5
10003 rm -rf conftest*
21d1c967 10004 ac_cv_c_const=no
4f14bcd8
GD
10005fi
10006rm -f conftest*
698dcdb6 10007fi
6f72b082 10008
21d1c967
GD
10009echo "$ac_t""$ac_cv_c_const" 1>&6
10010if test $ac_cv_c_const = no; then
10011 cat >> confdefs.h <<\EOF
10012#define const
90dd450c
VZ
10013EOF
10014
21d1c967 10015fi
90dd450c 10016
21d1c967 10017echo $ac_n "checking for inline""... $ac_c" 1>&6
3bd8fb5f 10018echo "configure:10019: checking for inline" >&5
21d1c967 10019if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
4f14bcd8 10020 echo $ac_n "(cached) $ac_c" 1>&6
6f72b082 10021else
21d1c967
GD
10022 ac_cv_c_inline=no
10023for ac_kw in inline __inline__ __inline; do
10024 cat > conftest.$ac_ext <<EOF
3bd8fb5f 10025#line 10026 "configure"
4f14bcd8 10026#include "confdefs.h"
90dd450c 10027
21d1c967
GD
10028int main() {
10029} $ac_kw foo() {
4f14bcd8
GD
10030; return 0; }
10031EOF
3bd8fb5f 10032if { (eval echo configure:10033: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4f14bcd8 10033 rm -rf conftest*
21d1c967 10034 ac_cv_c_inline=$ac_kw; break
6f72b082 10035else
4f14bcd8
GD
10036 echo "configure: failed program was:" >&5
10037 cat conftest.$ac_ext >&5
698dcdb6 10038fi
4f14bcd8 10039rm -f conftest*
21d1c967 10040done
4f14bcd8 10041
21d1c967 10042fi
4f14bcd8 10043
21d1c967
GD
10044echo "$ac_t""$ac_cv_c_inline" 1>&6
10045case "$ac_cv_c_inline" in
10046 inline | yes) ;;
10047 no) cat >> confdefs.h <<\EOF
10048#define inline
90dd450c 10049EOF
21d1c967
GD
10050 ;;
10051 *) cat >> confdefs.h <<EOF
10052#define inline $ac_cv_c_inline
4f14bcd8 10053EOF
21d1c967
GD
10054 ;;
10055esac
4f14bcd8 10056
90dd450c 10057
21d1c967 10058echo $ac_n "checking size of char""... $ac_c" 1>&6
3bd8fb5f 10059echo "configure:10060: checking size of char" >&5
21d1c967 10060if eval "test \"`echo '$''{'ac_cv_sizeof_char'+set}'`\" = set"; then
4f14bcd8
GD
10061 echo $ac_n "(cached) $ac_c" 1>&6
10062else
21d1c967
GD
10063 if test "$cross_compiling" = yes; then
10064 ac_cv_sizeof_char=1
4f14bcd8 10065else
90dd450c 10066 cat > conftest.$ac_ext <<EOF
3bd8fb5f 10067#line 10068 "configure"
4f14bcd8 10068#include "confdefs.h"
21d1c967
GD
10069#include <stdio.h>
10070main()
10071{
10072 FILE *f=fopen("conftestval", "w");
10073 if (!f) exit(1);
10074 fprintf(f, "%d\n", sizeof(char));
10075 exit(0);
90dd450c 10076}
4f14bcd8 10077EOF
3bd8fb5f 10078if { (eval echo configure:10079: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
90dd450c 10079then
21d1c967 10080 ac_cv_sizeof_char=`cat conftestval`
4f14bcd8
GD
10081else
10082 echo "configure: failed program was:" >&5
10083 cat conftest.$ac_ext >&5
90dd450c 10084 rm -fr conftest*
21d1c967 10085 ac_cv_sizeof_char=0
90dd450c
VZ
10086fi
10087rm -fr conftest*
4f14bcd8 10088fi
4f14bcd8
GD
10089
10090fi
21d1c967
GD
10091echo "$ac_t""$ac_cv_sizeof_char" 1>&6
10092cat >> confdefs.h <<EOF
10093#define SIZEOF_CHAR $ac_cv_sizeof_char
10094EOF
4f14bcd8 10095
21d1c967
GD
10096
10097echo $ac_n "checking size of short""... $ac_c" 1>&6
3bd8fb5f 10098echo "configure:10099: checking size of short" >&5
21d1c967
GD
10099if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
10100 echo $ac_n "(cached) $ac_c" 1>&6
10101else
10102 if test "$cross_compiling" = yes; then
10103 ac_cv_sizeof_short=2
10104else
10105 cat > conftest.$ac_ext <<EOF
3bd8fb5f 10106#line 10107 "configure"
21d1c967
GD
10107#include "confdefs.h"
10108#include <stdio.h>
10109main()
10110{
10111 FILE *f=fopen("conftestval", "w");
10112 if (!f) exit(1);
10113 fprintf(f, "%d\n", sizeof(short));
10114 exit(0);
10115}
90dd450c 10116EOF
3bd8fb5f 10117if { (eval echo configure:10118: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
21d1c967
GD
10118then
10119 ac_cv_sizeof_short=`cat conftestval`
10120else
10121 echo "configure: failed program was:" >&5
10122 cat conftest.$ac_ext >&5
10123 rm -fr conftest*
10124 ac_cv_sizeof_short=0
10125fi
10126rm -fr conftest*
10127fi
4f14bcd8 10128
4f14bcd8 10129fi
21d1c967
GD
10130echo "$ac_t""$ac_cv_sizeof_short" 1>&6
10131cat >> confdefs.h <<EOF
10132#define SIZEOF_SHORT $ac_cv_sizeof_short
10133EOF
4f14bcd8
GD
10134
10135
21d1c967 10136echo $ac_n "checking size of void *""... $ac_c" 1>&6
3bd8fb5f 10137echo "configure:10138: checking size of void *" >&5
21d1c967 10138if eval "test \"`echo '$''{'ac_cv_sizeof_void_p'+set}'`\" = set"; then
4f14bcd8
GD
10139 echo $ac_n "(cached) $ac_c" 1>&6
10140else
21d1c967
GD
10141 if test "$cross_compiling" = yes; then
10142 ac_cv_sizeof_void_p=4
10143else
4f14bcd8 10144 cat > conftest.$ac_ext <<EOF
3bd8fb5f 10145#line 10146 "configure"
4f14bcd8 10146#include "confdefs.h"
21d1c967
GD
10147#include <stdio.h>
10148main()
10149{
10150 FILE *f=fopen("conftestval", "w");
10151 if (!f) exit(1);
10152 fprintf(f, "%d\n", sizeof(void *));
10153 exit(0);
10154}
4f14bcd8 10155EOF
3bd8fb5f 10156if { (eval echo configure:10157: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
21d1c967
GD
10157then
10158 ac_cv_sizeof_void_p=`cat conftestval`
4f14bcd8 10159else
4f14bcd8
GD
10160 echo "configure: failed program was:" >&5
10161 cat conftest.$ac_ext >&5
21d1c967
GD
10162 rm -fr conftest*
10163 ac_cv_sizeof_void_p=0
4f14bcd8 10164fi
21d1c967 10165rm -fr conftest*
4f14bcd8 10166fi
4f14bcd8 10167
21d1c967
GD
10168fi
10169echo "$ac_t""$ac_cv_sizeof_void_p" 1>&6
10170cat >> confdefs.h <<EOF
10171#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
90dd450c
VZ
10172EOF
10173
90dd450c 10174
21d1c967 10175echo $ac_n "checking size of int""... $ac_c" 1>&6
3bd8fb5f 10176echo "configure:10177: checking size of int" >&5
21d1c967 10177if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
4f14bcd8 10178 echo $ac_n "(cached) $ac_c" 1>&6
21d1c967
GD
10179else
10180 if test "$cross_compiling" = yes; then
10181 ac_cv_sizeof_int=4
4f14bcd8
GD
10182else
10183 cat > conftest.$ac_ext <<EOF
3bd8fb5f 10184#line 10185 "configure"
4f14bcd8 10185#include "confdefs.h"
21d1c967
GD
10186#include <stdio.h>
10187main()
10188{
10189 FILE *f=fopen("conftestval", "w");
10190 if (!f) exit(1);
10191 fprintf(f, "%d\n", sizeof(int));
10192 exit(0);
10193}
4f14bcd8 10194EOF
3bd8fb5f 10195if { (eval echo configure:10196: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
21d1c967
GD
10196then
10197 ac_cv_sizeof_int=`cat conftestval`
4f14bcd8 10198else
4f14bcd8
GD
10199 echo "configure: failed program was:" >&5
10200 cat conftest.$ac_ext >&5
21d1c967
GD
10201 rm -fr conftest*
10202 ac_cv_sizeof_int=0
4f14bcd8 10203fi
21d1c967 10204rm -fr conftest*
4f14bcd8 10205fi
4f14bcd8 10206
21d1c967
GD
10207fi
10208echo "$ac_t""$ac_cv_sizeof_int" 1>&6
10209cat >> confdefs.h <<EOF
10210#define SIZEOF_INT $ac_cv_sizeof_int
90dd450c
VZ
10211EOF
10212
90dd450c 10213
21d1c967 10214echo $ac_n "checking size of long""... $ac_c" 1>&6
3bd8fb5f 10215echo "configure:10216: checking size of long" >&5
21d1c967 10216if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
4f14bcd8
GD
10217 echo $ac_n "(cached) $ac_c" 1>&6
10218else
21d1c967
GD
10219 if test "$cross_compiling" = yes; then
10220 ac_cv_sizeof_long=4
10221else
10222 cat > conftest.$ac_ext <<EOF
3bd8fb5f 10223#line 10224 "configure"
90dd450c 10224#include "confdefs.h"
21d1c967
GD
10225#include <stdio.h>
10226main()
10227{
10228 FILE *f=fopen("conftestval", "w");
10229 if (!f) exit(1);
10230 fprintf(f, "%d\n", sizeof(long));
10231 exit(0);
10232}
4f14bcd8 10233EOF
3bd8fb5f 10234if { (eval echo configure:10235: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
21d1c967
GD
10235then
10236 ac_cv_sizeof_long=`cat conftestval`
4f14bcd8
GD
10237else
10238 echo "configure: failed program was:" >&5
10239 cat conftest.$ac_ext >&5
21d1c967
GD
10240 rm -fr conftest*
10241 ac_cv_sizeof_long=0
4f14bcd8 10242fi
21d1c967 10243rm -fr conftest*
90dd450c 10244fi
4f14bcd8 10245
21d1c967
GD
10246fi
10247echo "$ac_t""$ac_cv_sizeof_long" 1>&6
10248cat >> confdefs.h <<EOF
10249#define SIZEOF_LONG $ac_cv_sizeof_long
90dd450c 10250EOF
4f14bcd8 10251
4f14bcd8 10252
4f14bcd8 10253
21d1c967
GD
10254case "${host}" in
10255 arm-*-linux* )
10256 echo $ac_n "checking size of long long""... $ac_c" 1>&6
3bd8fb5f 10257echo "configure:10258: checking size of long long" >&5
21d1c967
GD
10258if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
10259 echo $ac_n "(cached) $ac_c" 1>&6
10260else
10261 if test "$cross_compiling" = yes; then
10262 ac_cv_sizeof_long_long=8
10263else
10264 cat > conftest.$ac_ext <<EOF
3bd8fb5f 10265#line 10266 "configure"
21d1c967
GD
10266#include "confdefs.h"
10267#include <stdio.h>
10268main()
10269{
10270 FILE *f=fopen("conftestval", "w");
10271 if (!f) exit(1);
10272 fprintf(f, "%d\n", sizeof(long long));
10273 exit(0);
10274}
90dd450c 10275EOF
3bd8fb5f 10276if { (eval echo configure:10277: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
21d1c967
GD
10277then
10278 ac_cv_sizeof_long_long=`cat conftestval`
90dd450c 10279else
21d1c967
GD
10280 echo "configure: failed program was:" >&5
10281 cat conftest.$ac_ext >&5
10282 rm -fr conftest*
10283 ac_cv_sizeof_long_long=0
10284fi
10285rm -fr conftest*
90dd450c 10286fi
4f14bcd8 10287
21d1c967
GD
10288fi
10289echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
10290cat >> confdefs.h <<EOF
10291#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
10292EOF
90dd450c 10293
21d1c967
GD
10294
10295 ;;
10296 * )
10297 echo $ac_n "checking size of long long""... $ac_c" 1>&6
3bd8fb5f 10298echo "configure:10299: checking size of long long" >&5
21d1c967 10299if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
4f14bcd8
GD
10300 echo $ac_n "(cached) $ac_c" 1>&6
10301else
21d1c967
GD
10302 if test "$cross_compiling" = yes; then
10303 ac_cv_sizeof_long_long=0
10304else
10305 cat > conftest.$ac_ext <<EOF
3bd8fb5f 10306#line 10307 "configure"
90dd450c 10307#include "confdefs.h"
21d1c967
GD
10308#include <stdio.h>
10309main()
10310{
10311 FILE *f=fopen("conftestval", "w");
10312 if (!f) exit(1);
10313 fprintf(f, "%d\n", sizeof(long long));
10314 exit(0);
10315}
90dd450c 10316EOF
3bd8fb5f 10317if { (eval echo configure:10318: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
21d1c967
GD
10318then
10319 ac_cv_sizeof_long_long=`cat conftestval`
4f14bcd8 10320else
90dd450c
VZ
10321 echo "configure: failed program was:" >&5
10322 cat conftest.$ac_ext >&5
21d1c967
GD
10323 rm -fr conftest*
10324 ac_cv_sizeof_long_long=0
90dd450c 10325fi
21d1c967 10326rm -fr conftest*
4f14bcd8
GD
10327fi
10328
90dd450c 10329fi
21d1c967
GD
10330echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
10331cat >> confdefs.h <<EOF
10332#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
90dd450c 10333EOF
9e691f46 10334
9e691f46 10335
21d1c967
GD
10336esac
10337
10338echo $ac_n "checking size of wchar_t""... $ac_c" 1>&6
3bd8fb5f 10339echo "configure:10340: checking size of wchar_t" >&5
21d1c967 10340if eval "test \"`echo '$''{'wx_cv_sizeof_wchar_t'+set}'`\" = set"; then
90dd450c 10341 echo $ac_n "(cached) $ac_c" 1>&6
21d1c967
GD
10342else
10343
10344 if test "$cross_compiling" = yes; then
10345 wx_cv_sizeof_wchar_t=4
10346
6f72b082 10347else
698dcdb6 10348 cat > conftest.$ac_ext <<EOF
3bd8fb5f 10349#line 10350 "configure"
6f72b082 10350#include "confdefs.h"
21d1c967
GD
10351
10352 #ifdef HAVE_WCHAR_H
10353 # ifdef __CYGWIN__
10354 # include <stddef.h>
10355 # endif
10356 # include <wchar.h>
10357 #endif
10358 #ifdef HAVE_STDLIB_H
10359 # include <stdlib.h>
10360 #endif
10361 #include <stdio.h>
10362 int main()
10363 {
10364 FILE *f=fopen("conftestval", "w");
10365 if (!f) exit(1);
10366 fprintf(f, "%i", sizeof(wchar_t));
10367 exit(0);
10368 }
10369
698dcdb6 10370EOF
3bd8fb5f 10371if { (eval echo configure:10372: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
21d1c967
GD
10372then
10373 wx_cv_sizeof_wchar_t=`cat conftestval`
6f72b082 10374else
698dcdb6
VZ
10375 echo "configure: failed program was:" >&5
10376 cat conftest.$ac_ext >&5
21d1c967
GD
10377 rm -fr conftest*
10378 wx_cv_sizeof_wchar_t=0
6f72b082 10379fi
21d1c967 10380rm -fr conftest*
6f72b082 10381fi
6f72b082 10382
90dd450c 10383
3f345b47
VZ
10384fi
10385
21d1c967 10386echo "$ac_t""$wx_cv_sizeof_wchar_t" 1>&6
3f345b47 10387
21d1c967
GD
10388cat >> confdefs.h <<EOF
10389#define SIZEOF_WCHAR_T $wx_cv_sizeof_wchar_t
10390EOF
90dd450c 10391
90dd450c 10392
21d1c967
GD
10393# Check whether --enable-largefile or --disable-largefile was given.
10394if test "${enable_largefile+set}" = set; then
10395 enableval="$enable_largefile"
10396 :
3f345b47
VZ
10397fi
10398
21d1c967
GD
10399if test "$enable_largefile" != no; then
10400 wx_largefile=no
10401
10402 echo $ac_n "checking for _FILE_OFFSET_BITS value needed for large files""... $ac_c" 1>&6
3bd8fb5f 10403echo "configure:10404: checking for _FILE_OFFSET_BITS value needed for large files" >&5
21d1c967 10404if eval "test \"`echo '$''{'ac_cv_sys_file_offset_bits'+set}'`\" = set"; then
698dcdb6 10405 echo $ac_n "(cached) $ac_c" 1>&6
f6bcfd97 10406else
21d1c967
GD
10407
10408 cat > conftest.$ac_ext <<EOF
3bd8fb5f 10409#line 10410 "configure"
90dd450c 10410#include "confdefs.h"
21d1c967
GD
10411#define _FILE_OFFSET_BITS 64
10412 #include <sys/types.h>
10413int main() {
10414typedef struct {
10415 unsigned int field: sizeof(off_t) == 8;
10416} wxlf;
10417
10418; return 0; }
90dd450c 10419EOF
3bd8fb5f 10420if { (eval echo configure:10421: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
90dd450c 10421 rm -rf conftest*
21d1c967 10422 ac_cv_sys_file_offset_bits=64
f6bcfd97 10423else
90dd450c
VZ
10424 echo "configure: failed program was:" >&5
10425 cat conftest.$ac_ext >&5
10426 rm -rf conftest*
21d1c967 10427 ac_cv_sys_file_offset_bits=no
f6bcfd97 10428fi
90dd450c 10429rm -f conftest*
21d1c967
GD
10430
10431
90dd450c 10432fi
21d1c967
GD
10433
10434echo "$ac_t""$ac_cv_sys_file_offset_bits" 1>&6
10435
10436 if test "$ac_cv_sys_file_offset_bits" != no; then
10437 wx_largefile=yes
10438 cat >> confdefs.h <<EOF
10439#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
10440EOF
10441
10442 fi
10443
10444 if test "x$wx_largefile" != "xyes"; then
10445
10446 echo $ac_n "checking for _LARGE_FILES value needed for large files""... $ac_c" 1>&6
3bd8fb5f 10447echo "configure:10448: checking for _LARGE_FILES value needed for large files" >&5
21d1c967 10448if eval "test \"`echo '$''{'ac_cv_sys_large_files'+set}'`\" = set"; then
90dd450c 10449 echo $ac_n "(cached) $ac_c" 1>&6
f6bcfd97 10450else
21d1c967
GD
10451
10452 cat > conftest.$ac_ext <<EOF
3bd8fb5f 10453#line 10454 "configure"
f6bcfd97 10454#include "confdefs.h"
21d1c967
GD
10455#define _LARGE_FILES 1
10456 #include <sys/types.h>
90dd450c 10457int main() {
21d1c967
GD
10458typedef struct {
10459 unsigned int field: sizeof(off_t) == 8;
10460} wxlf;
10461
90dd450c 10462; return 0; }
698dcdb6 10463EOF
3bd8fb5f 10464if { (eval echo configure:10465: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
90dd450c 10465 rm -rf conftest*
21d1c967 10466 ac_cv_sys_large_files=1
f6bcfd97 10467else
698dcdb6
VZ
10468 echo "configure: failed program was:" >&5
10469 cat conftest.$ac_ext >&5
90dd450c 10470 rm -rf conftest*
21d1c967 10471 ac_cv_sys_large_files=no
f6bcfd97 10472fi
90dd450c 10473rm -f conftest*
21d1c967
GD
10474
10475
f6bcfd97 10476fi
698dcdb6 10477
21d1c967 10478echo "$ac_t""$ac_cv_sys_large_files" 1>&6
3f345b47 10479
21d1c967
GD
10480 if test "$ac_cv_sys_large_files" != no; then
10481 wx_largefile=yes
10482 cat >> confdefs.h <<EOF
10483#define _LARGE_FILES $ac_cv_sys_large_files
10484EOF
90dd450c 10485
90dd450c
VZ
10486 fi
10487
90dd450c 10488 fi
90dd450c 10489
21d1c967 10490 echo $ac_n "checking if large file support is available""... $ac_c" 1>&6
3bd8fb5f 10491echo "configure:10492: checking if large file support is available" >&5
21d1c967
GD
10492 if test "x$wx_largefile" = "xyes"; then
10493 cat >> confdefs.h <<\EOF
10494#define HAVE_LARGEFILE_SUPPORT 1
90dd450c
VZ
10495EOF
10496
90dd450c 10497 fi
21d1c967
GD
10498 echo "$ac_t""$wx_largefile" 1>&6
10499fi
90dd450c 10500
90dd450c 10501
21d1c967 10502echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
3bd8fb5f 10503echo "configure:10504: checking whether byte ordering is bigendian" >&5
21d1c967 10504if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
90dd450c
VZ
10505 echo $ac_n "(cached) $ac_c" 1>&6
10506else
21d1c967
GD
10507 ac_cv_c_bigendian=unknown
10508# See if sys/param.h defines the BYTE_ORDER macro.
10509cat > conftest.$ac_ext <<EOF
3bd8fb5f 10510#line 10511 "configure"
90dd450c 10511#include "confdefs.h"
21d1c967
GD
10512#include <sys/types.h>
10513#include <sys/param.h>
10514int main() {
10515
10516#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
10517 bogus endian macros
10518#endif
10519; return 0; }
90dd450c 10520EOF
3bd8fb5f 10521if { (eval echo configure:10522: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
90dd450c 10522 rm -rf conftest*
21d1c967 10523 # It does; now see whether it defined to BIG_ENDIAN or not.
90dd450c 10524cat > conftest.$ac_ext <<EOF
3bd8fb5f 10525#line 10526 "configure"
90dd450c 10526#include "confdefs.h"
21d1c967
GD
10527#include <sys/types.h>
10528#include <sys/param.h>
3f345b47 10529int main() {
21d1c967
GD
10530
10531#if BYTE_ORDER != BIG_ENDIAN
10532 not big endian
10533#endif
3f345b47
VZ
10534; return 0; }
10535EOF
3bd8fb5f 10536if { (eval echo configure:10537: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3f345b47 10537 rm -rf conftest*
21d1c967 10538 ac_cv_c_bigendian=yes
3f345b47
VZ
10539else
10540 echo "configure: failed program was:" >&5
10541 cat conftest.$ac_ext >&5
10542 rm -rf conftest*
21d1c967 10543 ac_cv_c_bigendian=no
3f345b47
VZ
10544fi
10545rm -f conftest*
3f345b47 10546else
21d1c967
GD
10547 echo "configure: failed program was:" >&5
10548 cat conftest.$ac_ext >&5
3f345b47 10549fi
21d1c967
GD
10550rm -f conftest*
10551if test $ac_cv_c_bigendian = unknown; then
10552if test "$cross_compiling" = yes; then
10553 ac_cv_c_bigendian=unknown
10f2d63a 10554else
90dd450c 10555 cat > conftest.$ac_ext <<EOF
3bd8fb5f 10556#line 10557 "configure"
90dd450c 10557#include "confdefs.h"
21d1c967
GD
10558main () {
10559 /* Are we little or big endian? From Harbison&Steele. */
10560 union
10561 {
10562 long l;
10563 char c[sizeof (long)];
10564 } u;
10565 u.l = 1;
10566 exit (u.c[sizeof (long) - 1] == 1);
10567}
3f345b47 10568EOF
3bd8fb5f 10569if { (eval echo configure:10570: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
21d1c967
GD
10570then
10571 ac_cv_c_bigendian=no
3f345b47
VZ
10572else
10573 echo "configure: failed program was:" >&5
10574 cat conftest.$ac_ext >&5
21d1c967
GD
10575 rm -fr conftest*
10576 ac_cv_c_bigendian=yes
3f345b47 10577fi
21d1c967 10578rm -fr conftest*
8168de4c 10579fi
703e0a69 10580
21d1c967
GD
10581fi
10582fi
698dcdb6 10583
21d1c967
GD
10584echo "$ac_t""$ac_cv_c_bigendian" 1>&6
10585if test $ac_cv_c_bigendian = unknown; then
10586 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
10587fi
10588if test $ac_cv_c_bigendian = yes; then
10589 cat >> confdefs.h <<\EOF
10590#define WORDS_BIGENDIAN 1
10591EOF
10592
10593fi
10594
10595
10596echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
3bd8fb5f 10597echo "configure:10598: checking how to run the C++ preprocessor" >&5
21d1c967
GD
10598if test -z "$CXXCPP"; then
10599if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
698dcdb6 10600 echo $ac_n "(cached) $ac_c" 1>&6
7ec2881a 10601else
21d1c967
GD
10602 ac_ext=C
10603# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10604ac_cpp='$CXXCPP $CPPFLAGS'
10605ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10606ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10607cross_compiling=$ac_cv_prog_cxx_cross
10608 CXXCPP="${CXX-g++} -E"
10609 cat > conftest.$ac_ext <<EOF
3bd8fb5f 10610#line 10611 "configure"
7ec2881a 10611#include "confdefs.h"
21d1c967 10612#include <stdlib.h>
698dcdb6 10613EOF
21d1c967 10614ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3bd8fb5f 10615{ (eval echo configure:10616: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
21d1c967
GD
10616ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10617if test -z "$ac_err"; then
10618 :
698dcdb6 10619else
21d1c967 10620 echo "$ac_err" >&5
698dcdb6
VZ
10621 echo "configure: failed program was:" >&5
10622 cat conftest.$ac_ext >&5
10623 rm -rf conftest*
21d1c967 10624 CXXCPP=/lib/cpp
698dcdb6
VZ
10625fi
10626rm -f conftest*
21d1c967
GD
10627 ac_cv_prog_CXXCPP="$CXXCPP"
10628ac_ext=C
10629# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10630ac_cpp='$CXXCPP $CPPFLAGS'
10631ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10632ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10633cross_compiling=$ac_cv_prog_cxx_cross
7ec2881a 10634fi
90dd450c 10635fi
21d1c967
GD
10636CXXCPP="$ac_cv_prog_CXXCPP"
10637echo "$ac_t""$CXXCPP" 1>&6
1e6feb95 10638
1725144d 10639
21d1c967 10640 if test "$cross_compiling" = "yes"; then
90dd450c 10641 cat >> confdefs.h <<\EOF
21d1c967 10642#define wxUSE_IOSTREAMH 1
90dd450c 10643EOF
ab9b9eab 10644
21d1c967
GD
10645 else
10646
10647 ac_ext=C
10648# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10649ac_cpp='$CXXCPP $CPPFLAGS'
10650ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10651ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10652cross_compiling=$ac_cv_prog_cxx_cross
10653
ba337fe7 10654
21d1c967
GD
10655 for ac_hdr in iostream
10656do
10657ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10658echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3bd8fb5f 10659echo "configure:10660: checking for $ac_hdr" >&5
90dd450c 10660if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
698dcdb6 10661 echo $ac_n "(cached) $ac_c" 1>&6
ab9b9eab 10662else
90dd450c 10663 cat > conftest.$ac_ext <<EOF
3bd8fb5f 10664#line 10665 "configure"
ab9b9eab 10665#include "confdefs.h"
21d1c967 10666#include <$ac_hdr>
698dcdb6
VZ
10667EOF
10668ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3bd8fb5f 10669{ (eval echo configure:10670: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
10670ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10671if test -z "$ac_err"; then
10672 rm -rf conftest*
90dd450c 10673 eval "ac_cv_header_$ac_safe=yes"
ab9b9eab 10674else
698dcdb6
VZ
10675 echo "$ac_err" >&5
10676 echo "configure: failed program was:" >&5
ab9b9eab 10677 cat conftest.$ac_ext >&5
698dcdb6 10678 rm -rf conftest*
90dd450c 10679 eval "ac_cv_header_$ac_safe=no"
ab9b9eab 10680fi
698dcdb6 10681rm -f conftest*
90dd450c
VZ
10682fi
10683if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10684 echo "$ac_t""yes" 1>&6
21d1c967
GD
10685 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10686 cat >> confdefs.h <<EOF
10687#define $ac_tr_hdr 1
698dcdb6 10688EOF
21d1c967 10689
ab9b9eab 10690else
90dd450c
VZ
10691 echo "$ac_t""no" 1>&6
10692fi
21d1c967 10693done
10f2d63a 10694
10f2d63a 10695
21d1c967
GD
10696 if test "$ac_cv_header_iostream" = "yes" ; then
10697 :
10698 else
10699 cat >> confdefs.h <<\EOF
10700#define wxUSE_IOSTREAMH 1
10701EOF
788deba1 10702
90dd450c 10703 fi
ab9b9eab 10704
21d1c967
GD
10705 ac_ext=c
10706# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10707ac_cpp='$CPP $CPPFLAGS'
10708ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10709ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10710cross_compiling=$ac_cv_prog_cc_cross
ab9b9eab 10711
21d1c967 10712 fi
ab9b9eab 10713
21d1c967
GD
10714
10715
10716 echo $ac_n "checking if C++ compiler supports bool""... $ac_c" 1>&6
3bd8fb5f 10717echo "configure:10718: checking if C++ compiler supports bool" >&5
21d1c967 10718if eval "test \"`echo '$''{'wx_cv_cpp_bool'+set}'`\" = set"; then
698dcdb6 10719 echo $ac_n "(cached) $ac_c" 1>&6
ab9b9eab 10720else
21d1c967
GD
10721
10722
10723 ac_ext=C
10724# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10725ac_cpp='$CXXCPP $CPPFLAGS'
10726ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10727ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10728cross_compiling=$ac_cv_prog_cxx_cross
10729
10730
10731 cat > conftest.$ac_ext <<EOF
3bd8fb5f 10732#line 10733 "configure"
ab9b9eab 10733#include "confdefs.h"
21d1c967
GD
10734
10735
10736int main() {
10737
10738 bool b = true;
10739
10740 return 0;
10741
10742; return 0; }
698dcdb6 10743EOF
3bd8fb5f 10744if { (eval echo configure:10745: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6 10745 rm -rf conftest*
21d1c967
GD
10746
10747 wx_cv_cpp_bool=yes
10748
698dcdb6
VZ
10749else
10750 echo "configure: failed program was:" >&5
10751 cat conftest.$ac_ext >&5
10752 rm -rf conftest*
21d1c967
GD
10753
10754 wx_cv_cpp_bool=no
10755
10756
698dcdb6
VZ
10757fi
10758rm -f conftest*
21d1c967
GD
10759
10760 ac_ext=c
10761# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10762ac_cpp='$CPP $CPPFLAGS'
10763ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10764ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10765cross_compiling=$ac_cv_prog_cc_cross
10766
10767
698dcdb6 10768fi
21d1c967
GD
10769
10770echo "$ac_t""$wx_cv_cpp_bool" 1>&6
10771
10772 if test "$wx_cv_cpp_bool" = "yes"; then
10773 cat >> confdefs.h <<\EOF
10774#define HAVE_BOOL 1
90dd450c 10775EOF
ab9b9eab 10776
21d1c967
GD
10777 fi
10778
10779
10780
986ecc86 10781 echo $ac_n "checking if C++ compiler supports the explicit keyword""... $ac_c" 1>&6
3bd8fb5f 10782echo "configure:10783: checking if C++ compiler supports the explicit keyword" >&5
986ecc86
VZ
10783if eval "test \"`echo '$''{'wx_cv_explicit'+set}'`\" = set"; then
10784 echo $ac_n "(cached) $ac_c" 1>&6
10785else
10786
10787
10788 ac_ext=C
10789# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10790ac_cpp='$CXXCPP $CPPFLAGS'
10791ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10792ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10793cross_compiling=$ac_cv_prog_cxx_cross
10794
10795
10796 cat > conftest.$ac_ext <<EOF
3bd8fb5f 10797#line 10798 "configure"
986ecc86
VZ
10798#include "confdefs.h"
10799
10800 class Foo { public: explicit Foo(int) {} };
10801
10802int main() {
10803
10804 return 0;
10805
10806; return 0; }
10807EOF
3bd8fb5f 10808if { (eval echo configure:10809: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
986ecc86
VZ
10809 rm -rf conftest*
10810
10811 cat > conftest.$ac_ext <<EOF
3bd8fb5f 10812#line 10813 "configure"
986ecc86
VZ
10813#include "confdefs.h"
10814
10815 class Foo { public: explicit Foo(int) {} };
10816 static void TakeFoo(const Foo& foo) { }
10817
10818int main() {
10819
10820 TakeFoo(17);
10821 return 0;
10822
10823; return 0; }
10824EOF
3bd8fb5f 10825if { (eval echo configure:10826: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
986ecc86
VZ
10826 rm -rf conftest*
10827 wx_cv_explicit=no
10828else
10829 echo "configure: failed program was:" >&5
10830 cat conftest.$ac_ext >&5
10831 rm -rf conftest*
10832 wx_cv_explicit=yes
10833
10834fi
10835rm -f conftest*
10836
10837else
10838 echo "configure: failed program was:" >&5
10839 cat conftest.$ac_ext >&5
10840 rm -rf conftest*
10841 wx_cv_explicit=no
10842
10843fi
10844rm -f conftest*
10845
10846 ac_ext=c
10847# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10848ac_cpp='$CPP $CPPFLAGS'
10849ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10850ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10851cross_compiling=$ac_cv_prog_cc_cross
10852
10853
10854fi
10855
10856echo "$ac_t""$wx_cv_explicit" 1>&6
10857
10858 if test "$wx_cv_explicit" = "yes"; then
10859 cat >> confdefs.h <<\EOF
10860#define HAVE_EXPLICIT 1
10861EOF
10862
10863 fi
10864
10865
10866
21d1c967
GD
10867SEARCH_INCLUDE="\
10868 /usr/local/include \
10869 \
10870 /usr/Motif-1.2/include \
10871 /usr/Motif-2.1/include \
10872 \
10873 /usr/include/Motif1.2 \
10874 /opt/xpm/include/X11 \
10875 /opt/GBxpm/include/ \
10876 /opt/GBxpm/X11/include/ \
10877 \
10878 /usr/Motif1.2/include \
10879 /usr/dt/include \
10880 /usr/openwin/include \
10881 \
10882 /usr/include/Xm \
10883 \
10884 /usr/X11R6/include \
10885 /usr/X11R6.4/include \
10886 /usr/X11R5/include \
10887 /usr/X11R4/include \
10888 \
10889 /usr/include/X11R6 \
10890 /usr/include/X11R5 \
10891 /usr/include/X11R4 \
10892 \
10893 /usr/local/X11R6/include \
10894 /usr/local/X11R5/include \
10895 /usr/local/X11R4/include \
10896 \
10897 /usr/local/include/X11R6 \
10898 /usr/local/include/X11R5 \
10899 /usr/local/include/X11R4 \
10900 \
10901 /usr/X11/include \
10902 /usr/include/X11 \
10903 /usr/local/X11/include \
10904 /usr/local/include/X11 \
10905 \
10906 /usr/X386/include \
10907 /usr/x386/include \
10908 /usr/XFree86/include/X11 \
10909 \
10910 X:/XFree86/include \
10911 X:/XFree86/include/X11 \
10912 \
10913 /usr/include/gtk \
10914 /usr/local/include/gtk \
10915 /usr/include/glib \
10916 /usr/local/include/glib \
10917 \
10918 /usr/include/qt \
10919 /usr/local/include/qt \
10920 \
10921 /usr/include/windows \
10922 /usr/include/wine \
10923 /usr/local/include/wine \
10924 \
10925 /usr/unsupported/include \
10926 /usr/athena/include \
10927 /usr/local/x11r5/include \
10928 /usr/lpp/Xamples/include \
10929 \
10930 /usr/openwin/share/include \
10931 \
10932 /usr/include"
10933
10934SEARCH_LIB="`echo "$SEARCH_INCLUDE" | sed s/include/lib/g` "
10935
10936
10937cat > confcache <<\EOF
10938# This file is a shell script that caches the results of configure
10939# tests run on this system so they can be shared between configure
10940# scripts and configure runs. It is not useful on other systems.
10941# If it contains results you don't want to keep, you may remove or edit it.
10942#
10943# By default, configure uses ./config.cache as the cache file,
10944# creating it if it does not exist already. You can give configure
10945# the --cache-file=FILE option to use a different cache file; that is
10946# what configure does when it calls configure scripts in
10947# subdirectories, so they share the cache.
10948# Giving --cache-file=/dev/null disables caching, for debugging configure.
10949# config.status only pays attention to the cache file if you give it the
10950# --recheck option to rerun configure.
10951#
698dcdb6 10952EOF
21d1c967
GD
10953# The following way of writing the cache mishandles newlines in values,
10954# but we know of no workaround that is simple, portable, and efficient.
10955# So, don't put newlines in cache variables' values.
10956# Ultrix sh set writes to stderr and can't be redirected directly,
10957# and sets the high bit in the cache file unless we assign to the vars.
10958(set) 2>&1 |
10959 case `(ac_space=' '; set | grep ac_space) 2>&1` in
10960 *ac_space=\ *)
10961 # `set' does not quote correctly, so add quotes (double-quote substitution
10962 # turns \\\\ into \\, and sed turns \\ into \).
10963 sed -n \
10964 -e "s/'/'\\\\''/g" \
10965 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
10966 ;;
10967 *)
10968 # `set' quotes correctly as required by POSIX, so do not add quotes.
10969 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
10970 ;;
10971 esac >> confcache
10972if cmp -s $cache_file confcache; then
90dd450c 10973 :
698dcdb6 10974else
21d1c967
GD
10975 if test -w $cache_file; then
10976 echo "updating cache $cache_file"
10977 cat confcache > $cache_file
10978 else
10979 echo "not updating unwritable cache $cache_file"
10980 fi
ab9b9eab 10981fi
21d1c967 10982rm -f confcache
ab9b9eab 10983
ab9b9eab 10984
21d1c967
GD
10985if test "$USE_LINUX" = 1; then
10986 echo $ac_n "checking for glibc 2.1 or later""... $ac_c" 1>&6
3bd8fb5f 10987echo "configure:10988: checking for glibc 2.1 or later" >&5
21d1c967 10988if eval "test \"`echo '$''{'wx_cv_lib_glibc21'+set}'`\" = set"; then
698dcdb6
VZ
10989 echo $ac_n "(cached) $ac_c" 1>&6
10990else
90dd450c 10991
21d1c967 10992 cat > conftest.$ac_ext <<EOF
3bd8fb5f 10993#line 10994 "configure"
ab9b9eab 10994#include "confdefs.h"
21d1c967 10995#include <features.h>
698dcdb6 10996int main() {
ab9b9eab 10997
21d1c967
GD
10998 #if (__GLIBC__ < 2) || (__GLIBC_MINOR__ < 1)
10999 #error not glibc2.1
11000 #endif
11001
698dcdb6
VZ
11002; return 0; }
11003EOF
3bd8fb5f 11004if { (eval echo configure:11005: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6 11005 rm -rf conftest*
90dd450c 11006
21d1c967
GD
11007 wx_cv_lib_glibc21=yes
11008
698dcdb6
VZ
11009else
11010 echo "configure: failed program was:" >&5
11011 cat conftest.$ac_ext >&5
11012 rm -rf conftest*
90dd450c 11013
21d1c967
GD
11014 wx_cv_lib_glibc21=no
11015
11016
698dcdb6
VZ
11017fi
11018rm -f conftest*
90dd450c 11019
698dcdb6
VZ
11020fi
11021
21d1c967
GD
11022echo "$ac_t""$wx_cv_lib_glibc21" 1>&6
11023 if test "$wx_cv_lib_glibc21" = "yes"; then
11024 cat >> confdefs.h <<\EOF
11025#define wxHAVE_GLIBC2 1
11026EOF
1e487827 11027
90dd450c 11028 fi
ab9b9eab
VZ
11029fi
11030
ab9b9eab 11031
ab9b9eab 11032
21d1c967
GD
11033REGEX_INCLUDE=
11034if test "$wxUSE_REGEX" != "no"; then
11035 cat >> confdefs.h <<\EOF
11036#define wxUSE_REGEX 1
11037EOF
698dcdb6 11038
ab9b9eab 11039
21d1c967
GD
11040 if test "$wxUSE_REGEX" = "sys" -o "$wxUSE_REGEX" = "yes" ; then
11041 ac_safe=`echo "regex.h" | sed 'y%./+-%__p_%'`
11042echo $ac_n "checking for regex.h""... $ac_c" 1>&6
3bd8fb5f 11043echo "configure:11044: checking for regex.h" >&5
21d1c967 11044if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
698dcdb6 11045 echo $ac_n "(cached) $ac_c" 1>&6
ab9b9eab 11046else
21d1c967 11047 cat > conftest.$ac_ext <<EOF
3bd8fb5f 11048#line 11049 "configure"
21d1c967
GD
11049#include "confdefs.h"
11050#include <regex.h>
11051EOF
11052ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3bd8fb5f 11053{ (eval echo configure:11054: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
21d1c967
GD
11054ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11055if test -z "$ac_err"; then
11056 rm -rf conftest*
11057 eval "ac_cv_header_$ac_safe=yes"
698dcdb6 11058else
21d1c967
GD
11059 echo "$ac_err" >&5
11060 echo "configure: failed program was:" >&5
11061 cat conftest.$ac_ext >&5
11062 rm -rf conftest*
11063 eval "ac_cv_header_$ac_safe=no"
11064fi
11065rm -f conftest*
698dcdb6 11066fi
21d1c967
GD
11067if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11068 echo "$ac_t""yes" 1>&6
11069 for ac_func in regcomp
11070do
11071echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3bd8fb5f 11072echo "configure:11073: checking for $ac_func" >&5
21d1c967
GD
11073if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11074 echo $ac_n "(cached) $ac_c" 1>&6
11075else
11076 cat > conftest.$ac_ext <<EOF
3bd8fb5f 11077#line 11078 "configure"
21d1c967
GD
11078#include "confdefs.h"
11079/* System header to define __stub macros and hopefully few prototypes,
11080 which can conflict with char $ac_func(); below. */
11081#include <assert.h>
11082/* Override any gcc2 internal prototype to avoid an error. */
11083/* We use char because int might match the return type of a gcc2
11084 builtin and then its argument prototype would still apply. */
11085char $ac_func();
698dcdb6 11086
21d1c967 11087int main() {
90dd450c 11088
21d1c967
GD
11089/* The GNU C library defines this for functions which it implements
11090 to always fail with ENOSYS. Some functions are actually named
11091 something starting with __ and the normal name is an alias. */
11092#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11093choke me
11094#else
11095$ac_func();
11096#endif
90dd450c 11097
21d1c967
GD
11098; return 0; }
11099EOF
3bd8fb5f 11100if { (eval echo configure:11101: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21d1c967
GD
11101 rm -rf conftest*
11102 eval "ac_cv_func_$ac_func=yes"
11103else
11104 echo "configure: failed program was:" >&5
11105 cat conftest.$ac_ext >&5
11106 rm -rf conftest*
11107 eval "ac_cv_func_$ac_func=no"
11108fi
11109rm -f conftest*
11110fi
90dd450c 11111
21d1c967
GD
11112if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11113 echo "$ac_t""yes" 1>&6
11114 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11115 cat >> confdefs.h <<EOF
11116#define $ac_tr_func 1
11117EOF
11118
90dd450c 11119else
21d1c967 11120 echo "$ac_t""no" 1>&6
698dcdb6 11121fi
21d1c967
GD
11122done
11123
698dcdb6
VZ
11124else
11125 echo "$ac_t""no" 1>&6
ab9b9eab
VZ
11126fi
11127
90dd450c 11128
21d1c967
GD
11129 if test "x$ac_cv_func_regcomp" != "xyes"; then
11130 if test "$wxUSE_REGEX" = "sys" ; then
11131 { echo "configure: error: system regex library not found! Use --with-regex to use built-in version" 1>&2; exit 1; }
11132 else
11133 echo "configure: warning: system regex library not found, will use built-in instead" 1>&2
11134 wxUSE_REGEX=builtin
11135 fi
11136 else
11137 wxUSE_REGEX=sys
11138 fi
ab9b9eab 11139 fi
90dd450c 11140
21d1c967
GD
11141 if test "$wxUSE_REGEX" = "builtin" ; then
11142 REGEX_INCLUDE="-I\${top_srcdir}/src/regex"
90dd450c 11143 fi
21d1c967 11144fi
90dd450c 11145
90dd450c 11146
21d1c967
GD
11147ZLIB_INCLUDE=
11148ZLIB_LINK=
11149if test "$wxUSE_ZLIB" != "no" ; then
11150 cat >> confdefs.h <<\EOF
11151#define wxUSE_ZLIB 1
11152EOF
11153
11154
11155 if test "$wxUSE_ZLIB" = "sys" -o "$wxUSE_ZLIB" = "yes" ; then
11156 ac_safe=`echo "zlib.h" | sed 'y%./+-%__p_%'`
11157echo $ac_n "checking for zlib.h""... $ac_c" 1>&6
3bd8fb5f 11158echo "configure:11159: checking for zlib.h" >&5
21d1c967
GD
11159if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11160 echo $ac_n "(cached) $ac_c" 1>&6
ab9b9eab 11161else
698dcdb6 11162 cat > conftest.$ac_ext <<EOF
3bd8fb5f 11163#line 11164 "configure"
ab9b9eab 11164#include "confdefs.h"
21d1c967 11165#include <zlib.h>
698dcdb6 11166EOF
21d1c967 11167ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3bd8fb5f 11168{ (eval echo configure:11169: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
21d1c967
GD
11169ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11170if test -z "$ac_err"; then
11171 rm -rf conftest*
11172 eval "ac_cv_header_$ac_safe=yes"
698dcdb6 11173else
21d1c967 11174 echo "$ac_err" >&5
698dcdb6
VZ
11175 echo "configure: failed program was:" >&5
11176 cat conftest.$ac_ext >&5
21d1c967
GD
11177 rm -rf conftest*
11178 eval "ac_cv_header_$ac_safe=no"
698dcdb6 11179fi
21d1c967 11180rm -f conftest*
ab9b9eab 11181fi
21d1c967
GD
11182if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11183 echo "$ac_t""yes" 1>&6
11184 echo $ac_n "checking for deflate in -lz""... $ac_c" 1>&6
3bd8fb5f 11185echo "configure:11186: checking for deflate in -lz" >&5
21d1c967
GD
11186ac_lib_var=`echo z'_'deflate | sed 'y%./+-%__p_%'`
11187if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11188 echo $ac_n "(cached) $ac_c" 1>&6
11189else
11190 ac_save_LIBS="$LIBS"
11191LIBS="-lz $LIBS"
11192cat > conftest.$ac_ext <<EOF
3bd8fb5f 11193#line 11194 "configure"
ab9b9eab 11194#include "confdefs.h"
21d1c967
GD
11195/* Override any gcc2 internal prototype to avoid an error. */
11196/* We use char because int might match the return type of a gcc2
11197 builtin and then its argument prototype would still apply. */
11198char deflate();
ab9b9eab 11199
90dd450c 11200int main() {
21d1c967 11201deflate()
698dcdb6
VZ
11202; return 0; }
11203EOF
3bd8fb5f 11204if { (eval echo configure:11205: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6 11205 rm -rf conftest*
21d1c967 11206 eval "ac_cv_lib_$ac_lib_var=yes"
698dcdb6
VZ
11207else
11208 echo "configure: failed program was:" >&5
11209 cat conftest.$ac_ext >&5
11210 rm -rf conftest*
21d1c967 11211 eval "ac_cv_lib_$ac_lib_var=no"
698dcdb6
VZ
11212fi
11213rm -f conftest*
21d1c967 11214LIBS="$ac_save_LIBS"
ab9b9eab 11215
21d1c967
GD
11216fi
11217if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11218 echo "$ac_t""yes" 1>&6
11219 ZLIB_LINK=" -lz"
ab9b9eab 11220else
21d1c967 11221 echo "$ac_t""no" 1>&6
90dd450c 11222fi
698dcdb6 11223
698dcdb6 11224else
21d1c967 11225 echo "$ac_t""no" 1>&6
698dcdb6 11226fi
698dcdb6 11227
21d1c967
GD
11228
11229 if test "x$ZLIB_LINK" = "x" ; then
11230 if test "$wxUSE_ZLIB" = "sys" ; then
11231 { echo "configure: error: system zlib compression library not found! Use --with-zlib=builtin to use built-in version" 1>&2; exit 1; }
11232 else
11233 echo "configure: warning: system zlib compression library not found, will use built-in instead" 1>&2
11234 wxUSE_ZLIB=builtin
11235 fi
11236 else
11237 wxUSE_ZLIB=sys
11238 fi
11239 fi
11240
11241 if test "$wxUSE_ZLIB" = "builtin" ; then
11242 ZLIB_INCLUDE="-I\${top_srcdir}/src/zlib"
11243 fi
ab9b9eab
VZ
11244fi
11245
ab9b9eab 11246
21d1c967
GD
11247PNG_INCLUDE=
11248PNG_LINK=
11249if test "$wxUSE_LIBPNG" != "no" ; then
11250 cat >> confdefs.h <<\EOF
11251#define wxUSE_LIBPNG 1
11252EOF
90dd450c 11253
3bd8fb5f 11254
21d1c967
GD
11255 if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBPNG" = "builtin" ; then
11256 echo "configure: warning: wxMGL doesn't work with builtin png library, will use MGL one instead" 1>&2
11257 wxUSE_LIBPNG=sys
11258 fi
90dd450c 11259
21d1c967
GD
11260 if test "$wxUSE_MGL" != 1 -a "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then
11261 echo "configure: warning: system png library doesn't work without system zlib, will use built-in instead" 1>&2
11262 wxUSE_LIBPNG=builtin
11263 fi
11264
11265 if test "$wxUSE_MGL" != 1 ; then
11266 if test "$wxUSE_LIBPNG" = "sys" -o "$wxUSE_LIBPNG" = "yes" ; then
11267 ac_safe=`echo "png.h" | sed 'y%./+-%__p_%'`
11268echo $ac_n "checking for png.h""... $ac_c" 1>&6
3bd8fb5f 11269echo "configure:11270: checking for png.h" >&5
21d1c967 11270if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
90dd450c
VZ
11271 echo $ac_n "(cached) $ac_c" 1>&6
11272else
21d1c967 11273 cat > conftest.$ac_ext <<EOF
3bd8fb5f 11274#line 11275 "configure"
21d1c967
GD
11275#include "confdefs.h"
11276#include <png.h>
11277EOF
11278ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3bd8fb5f 11279{ (eval echo configure:11280: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
21d1c967
GD
11280ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11281if test -z "$ac_err"; then
11282 rm -rf conftest*
11283 eval "ac_cv_header_$ac_safe=yes"
90dd450c 11284else
21d1c967 11285 echo "$ac_err" >&5
90dd450c
VZ
11286 echo "configure: failed program was:" >&5
11287 cat conftest.$ac_ext >&5
21d1c967
GD
11288 rm -rf conftest*
11289 eval "ac_cv_header_$ac_safe=no"
90dd450c 11290fi
21d1c967 11291rm -f conftest*
90dd450c 11292fi
21d1c967
GD
11293if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11294 echo "$ac_t""yes" 1>&6
11295 echo $ac_n "checking for png_check_sig in -lpng""... $ac_c" 1>&6
3bd8fb5f 11296echo "configure:11297: checking for png_check_sig in -lpng" >&5
21d1c967
GD
11297ac_lib_var=`echo png'_'png_check_sig | sed 'y%./+-%__p_%'`
11298if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11299 echo $ac_n "(cached) $ac_c" 1>&6
11300else
11301 ac_save_LIBS="$LIBS"
11302LIBS="-lpng -lz -lm $LIBS"
11303cat > conftest.$ac_ext <<EOF
3bd8fb5f 11304#line 11305 "configure"
90dd450c 11305#include "confdefs.h"
21d1c967
GD
11306/* Override any gcc2 internal prototype to avoid an error. */
11307/* We use char because int might match the return type of a gcc2
11308 builtin and then its argument prototype would still apply. */
11309char png_check_sig();
90dd450c
VZ
11310
11311int main() {
21d1c967 11312png_check_sig()
90dd450c
VZ
11313; return 0; }
11314EOF
3bd8fb5f 11315if { (eval echo configure:11316: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
90dd450c 11316 rm -rf conftest*
21d1c967 11317 eval "ac_cv_lib_$ac_lib_var=yes"
90dd450c
VZ
11318else
11319 echo "configure: failed program was:" >&5
11320 cat conftest.$ac_ext >&5
11321 rm -rf conftest*
21d1c967 11322 eval "ac_cv_lib_$ac_lib_var=no"
90dd450c
VZ
11323fi
11324rm -f conftest*
21d1c967 11325LIBS="$ac_save_LIBS"
90dd450c 11326
90dd450c 11327fi
21d1c967
GD
11328if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11329 echo "$ac_t""yes" 1>&6
11330 PNG_LINK=" -lpng"
90dd450c 11331else
21d1c967 11332 echo "$ac_t""no" 1>&6
90dd450c
VZ
11333fi
11334
21d1c967 11335
90dd450c 11336else
21d1c967 11337 echo "$ac_t""no" 1>&6
90dd450c
VZ
11338fi
11339
11340
21d1c967
GD
11341 if test "x$PNG_LINK" = "x" ; then
11342 if test "$wxUSE_LIBPNG" = "sys" ; then
11343 { echo "configure: error: system png library not found! Use --with-libpng=builtin to use built-in version" 1>&2; exit 1; }
11344 else
11345 echo "configure: warning: system png library not found, will use built-in instead" 1>&2
11346 wxUSE_LIBPNG=builtin
11347 fi
11348 else
11349 wxUSE_LIBPNG=yes
11350 fi
11351 fi
11352 fi
90dd450c 11353
21d1c967
GD
11354 if test "$wxUSE_LIBPNG" = "builtin" ; then
11355 PNG_INCLUDE="-I\${top_srcdir}/src/png"
11356 fi
90dd450c 11357
21d1c967 11358 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png"
90dd450c
VZ
11359fi
11360
90dd450c 11361
21d1c967
GD
11362JPEG_INCLUDE=
11363JPEG_LINK=
11364if test "$wxUSE_LIBJPEG" != "no" ; then
11365 cat >> confdefs.h <<\EOF
11366#define wxUSE_LIBJPEG 1
11367EOF
90dd450c 11368
90dd450c 11369
21d1c967
GD
11370 if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBJPEG" = "builtin" ; then
11371 echo "configure: warning: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" 1>&2
11372 wxUSE_LIBJPEG=sys
11373 fi
90dd450c 11374
21d1c967
GD
11375 if test "$wxUSE_MGL" != 1 ; then
11376 if test "$wxUSE_LIBJPEG" = "sys" -o "$wxUSE_LIBJPEG" = "yes" ; then
11377 echo $ac_n "checking for jpeglib.h""... $ac_c" 1>&6
3bd8fb5f 11378echo "configure:11379: checking for jpeglib.h" >&5
21d1c967
GD
11379 if eval "test \"`echo '$''{'ac_cv_header_jpeglib_h'+set}'`\" = set"; then
11380 echo $ac_n "(cached) $ac_c" 1>&6
11381else
11382 cat > conftest.$ac_ext <<EOF
3bd8fb5f 11383#line 11384 "configure"
21d1c967 11384#include "confdefs.h"
90dd450c 11385
21d1c967
GD
11386 #undef HAVE_STDLIB_H
11387 #include <stdio.h>
11388 #include <jpeglib.h>
11389
11390int main() {
90dd450c 11391
21d1c967
GD
11392
11393; return 0; }
90dd450c 11394EOF
3bd8fb5f 11395if { (eval echo configure:11396: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21d1c967
GD
11396 rm -rf conftest*
11397 ac_cv_header_jpeglib_h=yes
90dd450c
VZ
11398else
11399 echo "configure: failed program was:" >&5
11400 cat conftest.$ac_ext >&5
21d1c967
GD
11401 rm -rf conftest*
11402 ac_cv_header_jpeglib_h=no
11403
90dd450c 11404fi
21d1c967
GD
11405rm -f conftest*
11406
90dd450c
VZ
11407fi
11408
21d1c967 11409 echo "$ac_t""$ac_cv_header_jpeglib_h" 1>&6
90dd450c 11410
21d1c967
GD
11411 if test "$ac_cv_header_jpeglib_h" = "yes"; then
11412 echo $ac_n "checking for jpeg_read_header in -ljpeg""... $ac_c" 1>&6
3bd8fb5f 11413echo "configure:11414: checking for jpeg_read_header in -ljpeg" >&5
21d1c967
GD
11414ac_lib_var=`echo jpeg'_'jpeg_read_header | sed 'y%./+-%__p_%'`
11415if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11416 echo $ac_n "(cached) $ac_c" 1>&6
11417else
11418 ac_save_LIBS="$LIBS"
11419LIBS="-ljpeg $LIBS"
11420cat > conftest.$ac_ext <<EOF
3bd8fb5f 11421#line 11422 "configure"
21d1c967
GD
11422#include "confdefs.h"
11423/* Override any gcc2 internal prototype to avoid an error. */
11424/* We use char because int might match the return type of a gcc2
11425 builtin and then its argument prototype would still apply. */
11426char jpeg_read_header();
90dd450c
VZ
11427
11428int main() {
21d1c967 11429jpeg_read_header()
90dd450c
VZ
11430; return 0; }
11431EOF
3bd8fb5f 11432if { (eval echo configure:11433: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
90dd450c 11433 rm -rf conftest*
21d1c967 11434 eval "ac_cv_lib_$ac_lib_var=yes"
90dd450c
VZ
11435else
11436 echo "configure: failed program was:" >&5
11437 cat conftest.$ac_ext >&5
11438 rm -rf conftest*
21d1c967 11439 eval "ac_cv_lib_$ac_lib_var=no"
90dd450c
VZ
11440fi
11441rm -f conftest*
21d1c967 11442LIBS="$ac_save_LIBS"
90dd450c 11443
21d1c967
GD
11444fi
11445if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11446 echo "$ac_t""yes" 1>&6
11447 JPEG_LINK=" -ljpeg"
11448else
11449 echo "$ac_t""no" 1>&6
90dd450c
VZ
11450fi
11451
21d1c967 11452 fi
90dd450c 11453
21d1c967
GD
11454 if test "x$JPEG_LINK" = "x" ; then
11455 if test "$wxUSE_LIBJPEG" = "sys" ; then
11456 { echo "configure: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" 1>&2; exit 1; }
11457 else
11458 echo "configure: warning: system jpeg library not found, will use built-in instead" 1>&2
11459 wxUSE_LIBJPEG=builtin
11460 fi
11461 else
11462 wxUSE_LIBJPEG=sys
11463 fi
11464 fi
11465 fi
90dd450c 11466
21d1c967
GD
11467 if test "$wxUSE_LIBJPEG" = "builtin" ; then
11468 JPEG_INCLUDE="-I\${top_srcdir}/src/jpeg"
11469 fi
11470fi
90dd450c 11471
90dd450c 11472
21d1c967
GD
11473TIFF_INCLUDE=
11474TIFF_LINK=
11475if test "$wxUSE_LIBTIFF" != "no" ; then
11476 cat >> confdefs.h <<\EOF
11477#define wxUSE_LIBTIFF 1
11478EOF
11479
11480
11481 if test "$wxUSE_LIBTIFF" = "sys" -o "$wxUSE_LIBTIFF" = "yes" ; then
11482 ac_safe=`echo "tiffio.h" | sed 'y%./+-%__p_%'`
11483echo $ac_n "checking for tiffio.h""... $ac_c" 1>&6
3bd8fb5f 11484echo "configure:11485: checking for tiffio.h" >&5
21d1c967
GD
11485if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11486 echo $ac_n "(cached) $ac_c" 1>&6
11487else
11488 cat > conftest.$ac_ext <<EOF
3bd8fb5f 11489#line 11490 "configure"
21d1c967
GD
11490#include "confdefs.h"
11491#include <tiffio.h>
11492EOF
11493ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3bd8fb5f 11494{ (eval echo configure:11495: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
21d1c967
GD
11495ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11496if test -z "$ac_err"; then
11497 rm -rf conftest*
11498 eval "ac_cv_header_$ac_safe=yes"
11499else
11500 echo "$ac_err" >&5
11501 echo "configure: failed program was:" >&5
11502 cat conftest.$ac_ext >&5
11503 rm -rf conftest*
11504 eval "ac_cv_header_$ac_safe=no"
11505fi
11506rm -f conftest*
11507fi
11508if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11509 echo "$ac_t""yes" 1>&6
11510 echo $ac_n "checking for TIFFError in -ltiff""... $ac_c" 1>&6
3bd8fb5f 11511echo "configure:11512: checking for TIFFError in -ltiff" >&5
21d1c967 11512ac_lib_var=`echo tiff'_'TIFFError | sed 'y%./+-%__p_%'`
698dcdb6
VZ
11513if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11514 echo $ac_n "(cached) $ac_c" 1>&6
11515else
11516 ac_save_LIBS="$LIBS"
21d1c967 11517LIBS="-ltiff -lm $LIBS"
698dcdb6 11518cat > conftest.$ac_ext <<EOF
3bd8fb5f 11519#line 11520 "configure"
ab9b9eab
VZ
11520#include "confdefs.h"
11521/* Override any gcc2 internal prototype to avoid an error. */
11522/* We use char because int might match the return type of a gcc2
698dcdb6 11523 builtin and then its argument prototype would still apply. */
21d1c967 11524char TIFFError();
698dcdb6
VZ
11525
11526int main() {
21d1c967 11527TIFFError()
698dcdb6
VZ
11528; return 0; }
11529EOF
3bd8fb5f 11530if { (eval echo configure:11531: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
11531 rm -rf conftest*
11532 eval "ac_cv_lib_$ac_lib_var=yes"
11533else
11534 echo "configure: failed program was:" >&5
11535 cat conftest.$ac_ext >&5
11536 rm -rf conftest*
11537 eval "ac_cv_lib_$ac_lib_var=no"
11538fi
11539rm -f conftest*
11540LIBS="$ac_save_LIBS"
11541
11542fi
11543if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11544 echo "$ac_t""yes" 1>&6
21d1c967 11545 TIFF_LINK=" -ltiff"
698dcdb6
VZ
11546else
11547 echo "$ac_t""no" 1>&6
ab9b9eab
VZ
11548fi
11549
21d1c967
GD
11550
11551else
11552 echo "$ac_t""no" 1>&6
11553fi
cd6d6d5b 11554
c79a329d 11555
21d1c967
GD
11556 if test "x$TIFF_LINK" = "x" ; then
11557 if test "$wxUSE_LIBTIFF" = "sys" ; then
11558 { echo "configure: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" 1>&2; exit 1; }
90dd450c 11559 else
21d1c967
GD
11560 echo "configure: warning: system tiff library not found, will use built-in instead" 1>&2
11561 wxUSE_LIBTIFF=builtin
d8356fa3 11562 fi
d8356fa3 11563 else
21d1c967 11564 wxUSE_LIBTIFF=sys
d8356fa3 11565 fi
21d1c967 11566 fi
d8356fa3 11567
21d1c967
GD
11568 if test "$wxUSE_LIBTIFF" = "builtin" ; then
11569 TIFF_INCLUDE="-I\${top_srcdir}/src/tiff"
1e6feb95 11570 fi
21d1c967 11571fi
10f2d63a 11572
90dd450c 11573
21d1c967 11574AFMINSTALL=
90dd450c 11575
21d1c967
GD
11576TOOLKIT=
11577TOOLKIT_INCLUDE=
11578WIDGET_SET=
11579
11580if test "$USE_WIN32" = 1 ; then
11581 for ac_hdr in w32api.h
11582do
11583ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11584echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3bd8fb5f 11585echo "configure:11586: checking for $ac_hdr" >&5
21d1c967 11586if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
f79bd02d
JS
11587 echo $ac_n "(cached) $ac_c" 1>&6
11588else
21d1c967 11589 cat > conftest.$ac_ext <<EOF
3bd8fb5f 11590#line 11591 "configure"
f79bd02d 11591#include "confdefs.h"
21d1c967 11592#include <$ac_hdr>
f79bd02d
JS
11593EOF
11594ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3bd8fb5f 11595{ (eval echo configure:11596: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
f79bd02d
JS
11596ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11597if test -z "$ac_err"; then
11598 rm -rf conftest*
21d1c967 11599 eval "ac_cv_header_$ac_safe=yes"
f79bd02d
JS
11600else
11601 echo "$ac_err" >&5
11602 echo "configure: failed program was:" >&5
11603 cat conftest.$ac_ext >&5
11604 rm -rf conftest*
21d1c967 11605 eval "ac_cv_header_$ac_safe=no"
f79bd02d
JS
11606fi
11607rm -f conftest*
21d1c967
GD
11608fi
11609if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11610 echo "$ac_t""yes" 1>&6
11611 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11612 cat >> confdefs.h <<EOF
11613#define $ac_tr_hdr 1
11614EOF
11615
11616else
11617 echo "$ac_t""no" 1>&6
11618fi
11619done
f79bd02d 11620
21d1c967
GD
11621 ac_safe=`echo "windows.h" | sed 'y%./+-%__p_%'`
11622echo $ac_n "checking for windows.h""... $ac_c" 1>&6
3bd8fb5f 11623echo "configure:11624: checking for windows.h" >&5
21d1c967
GD
11624if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11625 echo $ac_n "(cached) $ac_c" 1>&6
11626else
11627 cat > conftest.$ac_ext <<EOF
3bd8fb5f 11628#line 11629 "configure"
90dd450c 11629#include "confdefs.h"
21d1c967 11630#include <windows.h>
f79bd02d 11631EOF
21d1c967 11632ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3bd8fb5f 11633{ (eval echo configure:11634: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
21d1c967
GD
11634ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11635if test -z "$ac_err"; then
90dd450c 11636 rm -rf conftest*
21d1c967 11637 eval "ac_cv_header_$ac_safe=yes"
90dd450c 11638else
21d1c967 11639 echo "$ac_err" >&5
90dd450c
VZ
11640 echo "configure: failed program was:" >&5
11641 cat conftest.$ac_ext >&5
11642 rm -rf conftest*
21d1c967 11643 eval "ac_cv_header_$ac_safe=no"
90dd450c
VZ
11644fi
11645rm -f conftest*
90dd450c 11646fi
21d1c967
GD
11647if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11648 echo "$ac_t""yes" 1>&6
11649 :
90dd450c 11650else
21d1c967
GD
11651 echo "$ac_t""no" 1>&6
11652
11653 { echo "configure: error: please set CFLAGS to contain the location of windows.h" 1>&2; exit 1; }
11654
90dd450c 11655fi
f79bd02d 11656
f79bd02d 11657
21d1c967 11658 echo $ac_n "checking if w32api has good enough MSIE support""... $ac_c" 1>&6
3bd8fb5f 11659echo "configure:11660: checking if w32api has good enough MSIE support" >&5
21d1c967
GD
11660if eval "test \"`echo '$''{'wx_cv_w32api_win32_ie'+set}'`\" = set"; then
11661 echo $ac_n "(cached) $ac_c" 1>&6
f79bd02d 11662else
21d1c967 11663
f79bd02d 11664 cat > conftest.$ac_ext <<EOF
3bd8fb5f 11665#line 11666 "configure"
f79bd02d 11666#include "confdefs.h"
21d1c967 11667#include <w32api.h>
f79bd02d
JS
11668int main() {
11669
21d1c967
GD
11670 #define wxCHECK_W32API_VERSION( major, minor ) \
11671 ( defined( __W32API_MAJOR_VERSION ) && defined( __W32API_MINOR_VERSION ) \
11672 && ( ( __W32API_MAJOR_VERSION > (major) ) \
11673 || ( __W32API_MAJOR_VERSION == (major) && __W32API_MINOR_VERSION >= (minor))))
11674
11675 #if !wxCHECK_W32API_VERSION(1,1)
11676 #error You need w32api 1.1 or newer
11677 #endif
11678
f79bd02d
JS
11679; return 0; }
11680EOF
3bd8fb5f 11681if { (eval echo configure:11682: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
f79bd02d 11682 rm -rf conftest*
21d1c967
GD
11683
11684 wx_cv_w32api_win32_ie=yes
11685
f79bd02d
JS
11686else
11687 echo "configure: failed program was:" >&5
11688 cat conftest.$ac_ext >&5
11689 rm -rf conftest*
21d1c967
GD
11690
11691 wx_cv_w32api_win32_ie=no
11692
f79bd02d
JS
11693fi
11694rm -f conftest*
21d1c967
GD
11695
11696fi
f79bd02d 11697
21d1c967
GD
11698echo "$ac_t""$wx_cv_w32api_win32_ie" 1>&6
11699 if test "$wx_cv_w32api_win32_ie" = "yes" ; then
11700 CPPFLAGS="$CPPFLAGS -D_WIN32_IE=0x400"
11701 fi
f79bd02d 11702
21d1c967
GD
11703 LIBS="$LIBS -lwinspool -lwinmm -lshell32 -lcomctl32 -lctl3d32 -ladvapi32 -lwsock32"
11704
11705 case "${host}" in
11706 *-*-cygwin* )
11707 LIBS="$LIBS -lkernel32 -luser32 -lgdi32 -lcomdlg32"
11708 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WIN95__"
f79bd02d 11709 esac
f79bd02d 11710
21d1c967
GD
11711 if test "$wxUSE_ODBC" = "yes" ; then
11712 LIBS=" -lodbc32 -lole32 -loleaut32 $LIBS"
11713 fi
f79bd02d 11714
21d1c967
GD
11715 RESFLAGS="--include-dir \$(top_srcdir)/include --include-dir \$(top_srcdir)/\$(program_dir) --define __WIN32__ --define __WIN95__ --define __GNUWIN32__"
11716 RESPROGRAMOBJ="\$(PROGRAM)_resources.o"
f79bd02d 11717fi
f79bd02d 11718
21d1c967
GD
11719if test "$wxUSE_GUI" = "yes"; then
11720 USE_GUI=1
f79bd02d 11721
21d1c967 11722 GUI_TK_LIBRARY=
f79bd02d 11723
21d1c967
GD
11724 WXGTK12=
11725 WXGTK127=
11726 WXGTK20=
f79bd02d 11727
21d1c967
GD
11728 if test "$wxUSE_MSW" = 1 ; then
11729 TOOLKIT=MSW
11730 GUIDIST=MSW_DIST
f79bd02d 11731
21d1c967
GD
11732 case "${host}" in
11733 *-*-mingw32* )
11734 LDFLAGS="$LDFLAGS -Wl,--subsystem,windows -mwindows"
11735 esac
f79bd02d
JS
11736 fi
11737
21d1c967
GD
11738 if test "$wxUSE_GTK" = 1; then
11739 echo $ac_n "checking for GTK+ version""... $ac_c" 1>&6
3bd8fb5f 11740echo "configure:11741: checking for GTK+ version" >&5
21d1c967
GD
11741
11742 gtk_version_cached=1
11743 if eval "test \"`echo '$''{'wx_cv_lib_gtk'+set}'`\" = set"; then
f79bd02d
JS
11744 echo $ac_n "(cached) $ac_c" 1>&6
11745else
21d1c967
GD
11746
11747 gtk_version_cached=0
11748 echo "$ac_t""" 1>&6
f79bd02d 11749
21d1c967
GD
11750 GTK_MODULES=
11751 if test "$wxUSE_THREADS" = "yes"; then
11752 GTK_MODULES=gthread
11753 fi
f79bd02d 11754
21d1c967
GD
11755 wx_cv_lib_gtk=
11756 if test "x$wxUSE_GTK2" = "xyes"; then
11757 # Check whether --enable-gtktest or --disable-gtktest was given.
11758if test "${enable_gtktest+set}" = set; then
11759 enableval="$enable_gtktest"
f79bd02d
JS
11760 :
11761else
21d1c967 11762 enable_gtktest=yes
f79bd02d
JS
11763fi
11764
f79bd02d 11765
21d1c967
GD
11766 pkg_config_args=gtk+-2.0
11767 for module in . $GTK_MODULES
11768 do
11769 case "$module" in
11770 gthread)
11771 pkg_config_args="$pkg_config_args gthread-2.0"
11772 ;;
11773 esac
11774 done
11775
11776 no_gtk=""
f79bd02d 11777
21d1c967
GD
11778 # Extract the first word of "pkg-config", so it can be a program name with args.
11779set dummy pkg-config; ac_word=$2
11780echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3bd8fb5f 11781echo "configure:11782: checking for $ac_word" >&5
21d1c967
GD
11782if eval "test \"`echo '$''{'ac_cv_path_PKG_CONFIG'+set}'`\" = set"; then
11783 echo $ac_n "(cached) $ac_c" 1>&6
11784else
11785 case "$PKG_CONFIG" in
11786 /*)
11787 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11788 ;;
11789 ?:/*)
11790 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a dos path.
11791 ;;
11792 *)
11793 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
11794 ac_dummy="$PATH"
11795 for ac_dir in $ac_dummy; do
11796 test -z "$ac_dir" && ac_dir=.
11797 if test -f $ac_dir/$ac_word; then
11798 ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word"
11799 break
11800 fi
11801 done
11802 IFS="$ac_save_ifs"
11803 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11804 ;;
11805esac
f79bd02d 11806fi
21d1c967
GD
11807PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
11808if test -n "$PKG_CONFIG"; then
11809 echo "$ac_t""$PKG_CONFIG" 1>&6
f79bd02d
JS
11810else
11811 echo "$ac_t""no" 1>&6
11812fi
11813
f79bd02d 11814
21d1c967
GD
11815 if test x$PKG_CONFIG != xno ; then
11816 if pkg-config --atleast-pkgconfig-version 0.7 ; then
11817 :
11818 else
11819 echo *** pkg-config too old; version 0.7 or better required.
11820 no_gtk=yes
11821 PKG_CONFIG=no
11822 fi
11823 else
11824 no_gtk=yes
11825 fi
f79bd02d 11826
21d1c967
GD
11827 min_gtk_version=2.0.0
11828 echo $ac_n "checking for GTK+ - version >= $min_gtk_version""... $ac_c" 1>&6
3bd8fb5f 11829echo "configure:11830: checking for GTK+ - version >= $min_gtk_version" >&5
f79bd02d 11830
21d1c967
GD
11831 if test x$PKG_CONFIG != xno ; then
11832 ## don't try to run the test against uninstalled libtool libs
11833 if $PKG_CONFIG --uninstalled $pkg_config_args; then
11834 echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH"
11835 enable_gtktest=no
11836 fi
f79bd02d 11837
21d1c967
GD
11838 if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then
11839 :
11840 else
11841 no_gtk=yes
11842 fi
11843 fi
f79bd02d 11844
21d1c967
GD
11845 if test x"$no_gtk" = x ; then
11846 GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags`
11847 GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs`
11848 gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
11849 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
11850 gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
11851 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
11852 gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
11853 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
11854 if test "x$enable_gtktest" = "xyes" ; then
11855 ac_save_CFLAGS="$CFLAGS"
11856 ac_save_LIBS="$LIBS"
11857 CFLAGS="$CFLAGS $GTK_CFLAGS"
11858 LIBS="$GTK_LIBS $LIBS"
11859 rm -f conf.gtktest
11860 if test "$cross_compiling" = yes; then
11861 echo $ac_n "cross compiling; assumed OK... $ac_c"
f79bd02d 11862else
21d1c967 11863 cat > conftest.$ac_ext <<EOF
3bd8fb5f 11864#line 11865 "configure"
f79bd02d 11865#include "confdefs.h"
f79bd02d 11866
21d1c967
GD
11867#include <gtk/gtk.h>
11868#include <stdio.h>
11869#include <stdlib.h>
f79bd02d 11870
21d1c967
GD
11871int
11872main ()
11873{
11874 int major, minor, micro;
11875 char *tmp_version;
f79bd02d 11876
21d1c967 11877 system ("touch conf.gtktest");
f79bd02d 11878
21d1c967
GD
11879 /* HP/UX 9 (%@#!) writes to sscanf strings */
11880 tmp_version = g_strdup("$min_gtk_version");
11881 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
11882 printf("%s, bad version string\n", "$min_gtk_version");
11883 exit(1);
11884 }
f79bd02d 11885
21d1c967
GD
11886 if ((gtk_major_version != $gtk_config_major_version) ||
11887 (gtk_minor_version != $gtk_config_minor_version) ||
11888 (gtk_micro_version != $gtk_config_micro_version))
11889 {
11890 printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
11891 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
11892 gtk_major_version, gtk_minor_version, gtk_micro_version);
11893 printf ("*** was found! If pkg-config was correct, then it is best\n");
11894 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
11895 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
11896 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
11897 printf("*** required on your system.\n");
11898 printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
11899 printf("*** to point to the correct configuration files\n");
11900 }
11901 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
11902 (gtk_minor_version != GTK_MINOR_VERSION) ||
11903 (gtk_micro_version != GTK_MICRO_VERSION))
11904 {
11905 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
11906 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
11907 printf("*** library (version %d.%d.%d)\n",
11908 gtk_major_version, gtk_minor_version, gtk_micro_version);
11909 }
11910 else
11911 {
11912 if ((gtk_major_version > major) ||
11913 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
11914 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
11915 {
11916 return 0;
11917 }
11918 else
11919 {
11920 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
11921 gtk_major_version, gtk_minor_version, gtk_micro_version);
11922 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
11923 major, minor, micro);
11924 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
11925 printf("***\n");
11926 printf("*** If you have already installed a sufficiently new version, this error\n");
11927 printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
11928 printf("*** being found. The easiest way to fix this is to remove the old version\n");
11929 printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n");
11930 printf("*** correct copy of pkg-config. (In this case, you will have to\n");
11931 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
11932 printf("*** so that the correct libraries are found at run-time))\n");
11933 }
11934 }
11935 return 1;
11936}
f79bd02d 11937
f79bd02d 11938EOF
3bd8fb5f 11939if { (eval echo configure:11940: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
21d1c967
GD
11940then
11941 :
f79bd02d
JS
11942else
11943 echo "configure: failed program was:" >&5
11944 cat conftest.$ac_ext >&5
21d1c967
GD
11945 rm -fr conftest*
11946 no_gtk=yes
f79bd02d 11947fi
21d1c967 11948rm -fr conftest*
f79bd02d
JS
11949fi
11950
21d1c967
GD
11951 CFLAGS="$ac_save_CFLAGS"
11952 LIBS="$ac_save_LIBS"
11953 fi
11954 fi
11955 if test "x$no_gtk" = x ; then
11956 echo "$ac_t""yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" 1>&6
11957 wx_cv_lib_gtk=2.0
11958 else
11959 echo "$ac_t""no" 1>&6
11960 if test "$PKG_CONFIG" = "no" ; then
11961 echo "*** A new enough version of pkg-config was not found."
11962 echo "*** See http://pkgconfig.sourceforge.net"
11963 else
11964 if test -f conf.gtktest ; then
11965 :
11966 else
11967 echo "*** Could not run GTK+ test program, checking why..."
11968 CFLAGS="$CFLAGS $GTK_CFLAGS"
11969 LIBS="$LIBS $GTK_LIBS"
11970 cat > conftest.$ac_ext <<EOF
3bd8fb5f 11971#line 11972 "configure"
f79bd02d 11972#include "confdefs.h"
21d1c967
GD
11973
11974#include <gtk/gtk.h>
11975#include <stdio.h>
f79bd02d
JS
11976
11977int main() {
21d1c967 11978 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
f79bd02d
JS
11979; return 0; }
11980EOF
3bd8fb5f 11981if { (eval echo configure:11982: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
f79bd02d 11982 rm -rf conftest*
21d1c967
GD
11983 echo "*** The test program compiled, but did not run. This usually means"
11984 echo "*** that the run-time linker is not finding GTK+ or finding the wrong"
11985 echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your"
11986 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
11987 echo "*** to the installed location Also, make sure you have run ldconfig if that"
11988 echo "*** is required on your system"
11989 echo "***"
11990 echo "*** If you have an old version installed, it is best to remove it, although"
11991 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
f79bd02d
JS
11992else
11993 echo "configure: failed program was:" >&5
11994 cat conftest.$ac_ext >&5
11995 rm -rf conftest*
21d1c967
GD
11996 echo "*** The test program failed to compile or link. See the file config.log for the"
11997 echo "*** exact error that occured. This usually means GTK+ was incorrectly installed"
11998 echo "*** or that you have moved GTK+ since it was installed. In the latter case, you"
11999 echo "*** may want to edit the pkg-config script: $PKG_CONFIG"
f79bd02d
JS
12000fi
12001rm -f conftest*
21d1c967
GD
12002 CFLAGS="$ac_save_CFLAGS"
12003 LIBS="$ac_save_LIBS"
12004 fi
12005 fi
12006 GTK_CFLAGS=""
12007 GTK_LIBS=""
12008 :
12009 fi
12010
12011
12012 rm -f conf.gtktest
f79bd02d 12013
21d1c967 12014 fi
f79bd02d 12015
21d1c967
GD
12016 if test -z "$wx_cv_lib_gtk"; then
12017 # Check whether --with-gtk-prefix or --without-gtk-prefix was given.
12018if test "${with_gtk_prefix+set}" = set; then
12019 withval="$with_gtk_prefix"
12020 gtk_config_prefix="$withval"
12021else
12022 gtk_config_prefix=""
12023fi
f79bd02d 12024
21d1c967
GD
12025# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
12026if test "${with_gtk_exec_prefix+set}" = set; then
12027 withval="$with_gtk_exec_prefix"
12028 gtk_config_exec_prefix="$withval"
12029else
12030 gtk_config_exec_prefix=""
12031fi
12032
12033# Check whether --enable-gtktest or --disable-gtktest was given.
12034if test "${enable_gtktest+set}" = set; then
12035 enableval="$enable_gtktest"
12036 :
12037else
12038 enable_gtktest=yes
12039fi
12040
12041
12042 for module in . $GTK_MODULES
12043 do
12044 case "$module" in
12045 gthread)
12046 gtk_config_args="$gtk_config_args gthread"
12047 ;;
12048 esac
12049 done
12050
12051 if test x$gtk_config_exec_prefix != x ; then
12052 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
12053 if test x${GTK_CONFIG+set} != xset ; then
12054 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
12055 fi
12056 fi
12057 if test x$gtk_config_prefix != x ; then
12058 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
12059 if test x${GTK_CONFIG+set} != xset ; then
12060 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
12061 fi
12062 fi
12063
12064 # Extract the first word of "gtk-config", so it can be a program name with args.
12065set dummy gtk-config; ac_word=$2
12066echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3bd8fb5f 12067echo "configure:12068: checking for $ac_word" >&5
21d1c967 12068if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
f79bd02d 12069 echo $ac_n "(cached) $ac_c" 1>&6
21d1c967
GD
12070else
12071 case "$GTK_CONFIG" in
12072 /*)
12073 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
12074 ;;
12075 ?:/*)
12076 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path.
12077 ;;
12078 *)
12079 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
12080 ac_dummy="$PATH"
12081 for ac_dir in $ac_dummy; do
12082 test -z "$ac_dir" && ac_dir=.
12083 if test -f $ac_dir/$ac_word; then
12084 ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
12085 break
12086 fi
12087 done
12088 IFS="$ac_save_ifs"
12089 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
12090 ;;
12091esac
12092fi
12093GTK_CONFIG="$ac_cv_path_GTK_CONFIG"
12094if test -n "$GTK_CONFIG"; then
12095 echo "$ac_t""$GTK_CONFIG" 1>&6
12096else
12097 echo "$ac_t""no" 1>&6
12098fi
12099
12100 min_gtk_version=1.2.7
12101 echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
3bd8fb5f 12102echo "configure:12103: checking for GTK - version >= $min_gtk_version" >&5
21d1c967
GD
12103 no_gtk=""
12104 if test "$GTK_CONFIG" = "no" ; then
12105 no_gtk=yes
12106 else
12107 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
12108 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
12109 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
12110 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
12111 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
12112 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
12113 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
12114 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
12115 if test "x$enable_gtktest" = "xyes" ; then
12116 ac_save_CFLAGS="$CFLAGS"
12117 ac_save_LIBS="$LIBS"
12118 CFLAGS="$CFLAGS $GTK_CFLAGS"
12119 LIBS="$GTK_LIBS $LIBS"
12120 rm -f conf.gtktest
12121 if test "$cross_compiling" = yes; then
12122 echo $ac_n "cross compiling; assumed OK... $ac_c"
f79bd02d 12123else
90dd450c 12124 cat > conftest.$ac_ext <<EOF
3bd8fb5f 12125#line 12126 "configure"
f79bd02d
JS
12126#include "confdefs.h"
12127
21d1c967
GD
12128#include <gtk/gtk.h>
12129#include <stdio.h>
12130#include <stdlib.h>
f79bd02d 12131
21d1c967
GD
12132int
12133main ()
12134{
12135 int major, minor, micro;
12136 char *tmp_version;
12137
12138 system ("touch conf.gtktest");
12139
12140 /* HP/UX 9 (%@#!) writes to sscanf strings */
12141 tmp_version = g_strdup("$min_gtk_version");
12142 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
12143 printf("%s, bad version string\n", "$min_gtk_version");
12144 exit(1);
12145 }
90dd450c 12146
21d1c967
GD
12147 if ((gtk_major_version != $gtk_config_major_version) ||
12148 (gtk_minor_version != $gtk_config_minor_version) ||
12149 (gtk_micro_version != $gtk_config_micro_version))
12150 {
12151 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
12152 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
12153 gtk_major_version, gtk_minor_version, gtk_micro_version);
12154 printf ("*** was found! If gtk-config was correct, then it is best\n");
12155 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
12156 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
12157 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
12158 printf("*** required on your system.\n");
12159 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
12160 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
12161 printf("*** before re-running configure\n");
12162 }
12163#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
12164 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
12165 (gtk_minor_version != GTK_MINOR_VERSION) ||
12166 (gtk_micro_version != GTK_MICRO_VERSION))
12167 {
12168 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
12169 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
12170 printf("*** library (version %d.%d.%d)\n",
12171 gtk_major_version, gtk_minor_version, gtk_micro_version);
12172 }
12173#endif /* defined (GTK_MAJOR_VERSION) ... */
12174 else
12175 {
12176 if ((gtk_major_version > major) ||
12177 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
12178 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
12179 {
12180 return 0;
12181 }
12182 else
12183 {
12184 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
12185 gtk_major_version, gtk_minor_version, gtk_micro_version);
12186 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
12187 major, minor, micro);
12188 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
12189 printf("***\n");
12190 printf("*** If you have already installed a sufficiently new version, this error\n");
12191 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
12192 printf("*** being found. The easiest way to fix this is to remove the old version\n");
12193 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
12194 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
12195 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
12196 printf("*** so that the correct libraries are found at run-time))\n");
12197 }
12198 }
12199 return 1;
12200}
12201
12202EOF
3bd8fb5f 12203if { (eval echo configure:12204: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
21d1c967
GD
12204then
12205 :
12206else
12207 echo "configure: failed program was:" >&5
12208 cat conftest.$ac_ext >&5
12209 rm -fr conftest*
12210 no_gtk=yes
12211fi
12212rm -fr conftest*
12213fi
12214
12215 CFLAGS="$ac_save_CFLAGS"
12216 LIBS="$ac_save_LIBS"
12217 fi
12218 fi
12219 if test "x$no_gtk" = x ; then
12220 echo "$ac_t""yes" 1>&6
12221 wx_cv_lib_gtk=1.2.7
12222 else
12223 echo "$ac_t""no" 1>&6
12224 if test "$GTK_CONFIG" = "no" ; then
12225 echo "*** The gtk-config script installed by GTK could not be found"
12226 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
12227 echo "*** your path, or set the GTK_CONFIG environment variable to the"
12228 echo "*** full path to gtk-config."
12229 else
12230 if test -f conf.gtktest ; then
12231 :
12232 else
12233 echo "*** Could not run GTK test program, checking why..."
12234 CFLAGS="$CFLAGS $GTK_CFLAGS"
12235 LIBS="$LIBS $GTK_LIBS"
12236 cat > conftest.$ac_ext <<EOF
3bd8fb5f 12237#line 12238 "configure"
21d1c967
GD
12238#include "confdefs.h"
12239
12240#include <gtk/gtk.h>
12241#include <stdio.h>
12242
12243int main() {
12244 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
f79bd02d
JS
12245; return 0; }
12246EOF
3bd8fb5f 12247if { (eval echo configure:12248: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
f79bd02d 12248 rm -rf conftest*
21d1c967
GD
12249 echo "*** The test program compiled, but did not run. This usually means"
12250 echo "*** that the run-time linker is not finding GTK or finding the wrong"
12251 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
12252 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
12253 echo "*** to the installed location Also, make sure you have run ldconfig if that"
12254 echo "*** is required on your system"
12255 echo "***"
12256 echo "*** If you have an old version installed, it is best to remove it, although"
12257 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
12258 echo "***"
12259 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
12260 echo "*** came with the system with the command"
12261 echo "***"
12262 echo "*** rpm --erase --nodeps gtk gtk-devel"
f79bd02d
JS
12263else
12264 echo "configure: failed program was:" >&5
12265 cat conftest.$ac_ext >&5
12266 rm -rf conftest*
21d1c967
GD
12267 echo "*** The test program failed to compile or link. See the file config.log for the"
12268 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
12269 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
12270 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
f79bd02d
JS
12271fi
12272rm -f conftest*
21d1c967
GD
12273 CFLAGS="$ac_save_CFLAGS"
12274 LIBS="$ac_save_LIBS"
12275 fi
12276 fi
12277 GTK_CFLAGS=""
12278 GTK_LIBS=""
12279 :
12280 fi
12281
12282
12283 rm -f conf.gtktest
12284
12285 fi
12286
12287 if test -z "$wx_cv_lib_gtk"; then
12288 # Check whether --with-gtk-prefix or --without-gtk-prefix was given.
12289if test "${with_gtk_prefix+set}" = set; then
12290 withval="$with_gtk_prefix"
12291 gtk_config_prefix="$withval"
12292else
12293 gtk_config_prefix=""
90dd450c 12294fi
f79bd02d 12295
21d1c967
GD
12296# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
12297if test "${with_gtk_exec_prefix+set}" = set; then
12298 withval="$with_gtk_exec_prefix"
12299 gtk_config_exec_prefix="$withval"
12300else
12301 gtk_config_exec_prefix=""
12302fi
12303
12304# Check whether --enable-gtktest or --disable-gtktest was given.
12305if test "${enable_gtktest+set}" = set; then
12306 enableval="$enable_gtktest"
90dd450c
VZ
12307 :
12308else
21d1c967 12309 enable_gtktest=yes
90dd450c 12310fi
f79bd02d 12311
21d1c967
GD
12312
12313 for module in . $GTK_MODULES
12314 do
12315 case "$module" in
12316 gthread)
12317 gtk_config_args="$gtk_config_args gthread"
12318 ;;
12319 esac
12320 done
12321
12322 if test x$gtk_config_exec_prefix != x ; then
12323 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
12324 if test x${GTK_CONFIG+set} != xset ; then
12325 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
12326 fi
12327 fi
12328 if test x$gtk_config_prefix != x ; then
12329 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
12330 if test x${GTK_CONFIG+set} != xset ; then
12331 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
12332 fi
12333 fi
12334
12335 # Extract the first word of "gtk-config", so it can be a program name with args.
12336set dummy gtk-config; ac_word=$2
12337echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3bd8fb5f 12338echo "configure:12339: checking for $ac_word" >&5
21d1c967 12339if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
90dd450c
VZ
12340 echo $ac_n "(cached) $ac_c" 1>&6
12341else
21d1c967
GD
12342 case "$GTK_CONFIG" in
12343 /*)
12344 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
12345 ;;
12346 ?:/*)
12347 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path.
12348 ;;
12349 *)
12350 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
12351 ac_dummy="$PATH"
12352 for ac_dir in $ac_dummy; do
12353 test -z "$ac_dir" && ac_dir=.
12354 if test -f $ac_dir/$ac_word; then
12355 ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
12356 break
12357 fi
12358 done
12359 IFS="$ac_save_ifs"
12360 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
12361 ;;
12362esac
12363fi
12364GTK_CONFIG="$ac_cv_path_GTK_CONFIG"
12365if test -n "$GTK_CONFIG"; then
12366 echo "$ac_t""$GTK_CONFIG" 1>&6
12367else
12368 echo "$ac_t""no" 1>&6
12369fi
12370
12371 min_gtk_version=1.2.3
12372 echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
3bd8fb5f 12373echo "configure:12374: checking for GTK - version >= $min_gtk_version" >&5
21d1c967
GD
12374 no_gtk=""
12375 if test "$GTK_CONFIG" = "no" ; then
12376 no_gtk=yes
12377 else
12378 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
12379 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
12380 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
12381 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
12382 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
12383 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
12384 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
12385 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
12386 if test "x$enable_gtktest" = "xyes" ; then
12387 ac_save_CFLAGS="$CFLAGS"
12388 ac_save_LIBS="$LIBS"
12389 CFLAGS="$CFLAGS $GTK_CFLAGS"
12390 LIBS="$GTK_LIBS $LIBS"
12391 rm -f conf.gtktest
12392 if test "$cross_compiling" = yes; then
12393 echo $ac_n "cross compiling; assumed OK... $ac_c"
12394else
12395 cat > conftest.$ac_ext <<EOF
3bd8fb5f 12396#line 12397 "configure"
f79bd02d 12397#include "confdefs.h"
21d1c967
GD
12398
12399#include <gtk/gtk.h>
12400#include <stdio.h>
12401#include <stdlib.h>
12402
12403int
12404main ()
12405{
12406 int major, minor, micro;
12407 char *tmp_version;
12408
12409 system ("touch conf.gtktest");
12410
12411 /* HP/UX 9 (%@#!) writes to sscanf strings */
12412 tmp_version = g_strdup("$min_gtk_version");
12413 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
12414 printf("%s, bad version string\n", "$min_gtk_version");
12415 exit(1);
12416 }
12417
12418 if ((gtk_major_version != $gtk_config_major_version) ||
12419 (gtk_minor_version != $gtk_config_minor_version) ||
12420 (gtk_micro_version != $gtk_config_micro_version))
12421 {
12422 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
12423 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
12424 gtk_major_version, gtk_minor_version, gtk_micro_version);
12425 printf ("*** was found! If gtk-config was correct, then it is best\n");
12426 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
12427 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
12428 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
12429 printf("*** required on your system.\n");
12430 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
12431 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
12432 printf("*** before re-running configure\n");
12433 }
12434#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
12435 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
12436 (gtk_minor_version != GTK_MINOR_VERSION) ||
12437 (gtk_micro_version != GTK_MICRO_VERSION))
12438 {
12439 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
12440 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
12441 printf("*** library (version %d.%d.%d)\n",
12442 gtk_major_version, gtk_minor_version, gtk_micro_version);
12443 }
12444#endif /* defined (GTK_MAJOR_VERSION) ... */
12445 else
12446 {
12447 if ((gtk_major_version > major) ||
12448 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
12449 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
12450 {
12451 return 0;
12452 }
12453 else
12454 {
12455 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
12456 gtk_major_version, gtk_minor_version, gtk_micro_version);
12457 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
12458 major, minor, micro);
12459 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
12460 printf("***\n");
12461 printf("*** If you have already installed a sufficiently new version, this error\n");
12462 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
12463 printf("*** being found. The easiest way to fix this is to remove the old version\n");
12464 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
12465 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
12466 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
12467 printf("*** so that the correct libraries are found at run-time))\n");
12468 }
12469 }
12470 return 1;
12471}
12472
12473EOF
3bd8fb5f 12474if { (eval echo configure:12475: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
21d1c967
GD
12475then
12476 :
12477else
12478 echo "configure: failed program was:" >&5
12479 cat conftest.$ac_ext >&5
12480 rm -fr conftest*
12481 no_gtk=yes
12482fi
12483rm -fr conftest*
12484fi
12485
12486 CFLAGS="$ac_save_CFLAGS"
12487 LIBS="$ac_save_LIBS"
12488 fi
12489 fi
12490 if test "x$no_gtk" = x ; then
12491 echo "$ac_t""yes" 1>&6
12492 wx_cv_lib_gtk=1.2.3
12493 else
12494 echo "$ac_t""no" 1>&6
12495 if test "$GTK_CONFIG" = "no" ; then
12496 echo "*** The gtk-config script installed by GTK could not be found"
12497 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
12498 echo "*** your path, or set the GTK_CONFIG environment variable to the"
12499 echo "*** full path to gtk-config."
12500 else
12501 if test -f conf.gtktest ; then
12502 :
12503 else
12504 echo "*** Could not run GTK test program, checking why..."
12505 CFLAGS="$CFLAGS $GTK_CFLAGS"
12506 LIBS="$LIBS $GTK_LIBS"
12507 cat > conftest.$ac_ext <<EOF
3bd8fb5f 12508#line 12509 "configure"
21d1c967
GD
12509#include "confdefs.h"
12510
12511#include <gtk/gtk.h>
12512#include <stdio.h>
f79bd02d 12513
f79bd02d 12514int main() {
21d1c967 12515 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
f79bd02d
JS
12516; return 0; }
12517EOF
3bd8fb5f 12518if { (eval echo configure:12519: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
f79bd02d 12519 rm -rf conftest*
21d1c967
GD
12520 echo "*** The test program compiled, but did not run. This usually means"
12521 echo "*** that the run-time linker is not finding GTK or finding the wrong"
12522 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
12523 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
12524 echo "*** to the installed location Also, make sure you have run ldconfig if that"
12525 echo "*** is required on your system"
12526 echo "***"
12527 echo "*** If you have an old version installed, it is best to remove it, although"
12528 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
12529 echo "***"
12530 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
12531 echo "*** came with the system with the command"
12532 echo "***"
12533 echo "*** rpm --erase --nodeps gtk gtk-devel"
f79bd02d
JS
12534else
12535 echo "configure: failed program was:" >&5
12536 cat conftest.$ac_ext >&5
12537 rm -rf conftest*
21d1c967
GD
12538 echo "*** The test program failed to compile or link. See the file config.log for the"
12539 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
12540 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
12541 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
f79bd02d
JS
12542fi
12543rm -f conftest*
21d1c967
GD
12544 CFLAGS="$ac_save_CFLAGS"
12545 LIBS="$ac_save_LIBS"
12546 fi
12547 fi
12548 GTK_CFLAGS=""
12549 GTK_LIBS=""
12550 :
12551 fi
12552
12553
12554 rm -f conf.gtktest
f79bd02d 12555
21d1c967
GD
12556 fi
12557
12558 if test -z "$wx_cv_lib_gtk"; then
12559 wx_cv_lib_gtk=none
12560 else
12561 wx_cv_cflags_gtk=$GTK_CFLAGS
12562 wx_cv_libs_gtk=$GTK_LIBS
12563 fi
12564
12565
90dd450c 12566fi
b4085ce6 12567
e07802fc 12568
21d1c967
GD
12569 if test "$gtk_version_cached" = 1; then
12570 echo "$ac_t""$wx_cv_lib_gtk" 1>&6
12571 fi
12572
12573 case "$wx_cv_lib_gtk" in
12574 2.0) WXGTK20=1
12575 ;;
12576 1.2.7) WXGTK127=1
12577 WXGTK12=1
12578 ;;
12579 1.2.3) WXGTK12=1
12580 ;;
12581 *) { echo "configure: error:
12582Please check that gtk-config is in path, the directory
12583where GTK+ libraries are installed (returned by
12584'gtk-config --libs' command) is in LD_LIBRARY_PATH or
12585equivalent variable and GTK+ is version 1.2.3 or above.
12586 " 1>&2; exit 1; }
12587 ;;
12588 esac
12589
12590 TOOLKIT_INCLUDE="$wx_cv_cflags_gtk"
12591 GUI_TK_LIBRARY="$wx_cv_libs_gtk"
12592
12593 AFMINSTALL=afminstall
12594 TOOLKIT=GTK
12595 GUIDIST=GTK_DIST
12596
12597 echo $ac_n "checking for gdk_im_open in -lgdk""... $ac_c" 1>&6
3bd8fb5f 12598echo "configure:12599: checking for gdk_im_open in -lgdk" >&5
21d1c967 12599ac_lib_var=`echo gdk'_'gdk_im_open | sed 'y%./+-%__p_%'`
90dd450c
VZ
12600if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12601 echo $ac_n "(cached) $ac_c" 1>&6
12602else
12603 ac_save_LIBS="$LIBS"
21d1c967 12604LIBS="-lgdk $LIBS"
90dd450c 12605cat > conftest.$ac_ext <<EOF
3bd8fb5f 12606#line 12607 "configure"
90dd450c
VZ
12607#include "confdefs.h"
12608/* Override any gcc2 internal prototype to avoid an error. */
12609/* We use char because int might match the return type of a gcc2
12610 builtin and then its argument prototype would still apply. */
21d1c967 12611char gdk_im_open();
9b695262 12612
90dd450c 12613int main() {
21d1c967 12614gdk_im_open()
90dd450c
VZ
12615; return 0; }
12616EOF
3bd8fb5f 12617if { (eval echo configure:12618: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
90dd450c
VZ
12618 rm -rf conftest*
12619 eval "ac_cv_lib_$ac_lib_var=yes"
12620else
12621 echo "configure: failed program was:" >&5
12622 cat conftest.$ac_ext >&5
12623 rm -rf conftest*
12624 eval "ac_cv_lib_$ac_lib_var=no"
12625fi
12626rm -f conftest*
12627LIBS="$ac_save_LIBS"
9b695262 12628
90dd450c
VZ
12629fi
12630if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12631 echo "$ac_t""yes" 1>&6
21d1c967
GD
12632 cat >> confdefs.h <<\EOF
12633#define HAVE_XIM 1
12634EOF
12635
90dd450c
VZ
12636else
12637 echo "$ac_t""no" 1>&6
12638fi
1e6feb95 12639
21d1c967 12640 fi
1e6feb95 12641
21d1c967
GD
12642 if test "$wxUSE_MGL" = 1; then
12643 echo $ac_n "checking for SciTech MGL library""... $ac_c" 1>&6
3bd8fb5f 12644echo "configure:12645: checking for SciTech MGL library" >&5
21d1c967
GD
12645 if test "x$MGL_ROOT" = x ; then
12646 echo "$ac_t""not found" 1>&6
12647 { echo "configure: error: Cannot find MGL library. Make sure MGL_ROOT is set." 1>&2; exit 1; }
12648 else
12649 echo "$ac_t""$MGL_ROOT" 1>&6
12650 fi
12651
12652 case "${host}" in
12653 *-*-linux* )
12654 mgl_os=linux/gcc/glibc
12655 ;;
12656 *-pc-msdosdjgpp )
12657 mgl_os=dos32/dj2
12658 ;;
12659 *)
12660 { echo "configure: error: This system type ${host} is not yet supported by wxMGL." 1>&2; exit 1; }
12661 esac
1e6feb95 12662
21d1c967 12663 mgl_lib_type=""
3fcdd07b 12664
21d1c967
GD
12665 if test "$wxUSE_DEBUG_FLAG" = yes ; then
12666 if test -f $MGL_ROOT/lib/debug/$mgl_os/libmgl.a -o \
12667 -f $MGL_ROOT/lib/debug/$mgl_os/libmgl.so; then
12668 mgl_lib_type=debug
12669 fi
12670 fi
12671 if test "x$mgl_lib_type" = x ; then
12672 if test -f $MGL_ROOT/lib/release/$mgl_os/libmgl.a -o \
12673 -f $MGL_ROOT/lib/release/$mgl_os/libmgl.so; then
12674 mgl_lib_type=release
12675 else
12676 { echo "configure: error: Cannot find MGL libraries, make sure they are compiled." 1>&2; exit 1; }
12677 fi
90dd450c 12678 fi
2224580a 12679
1d1b75ac
VZ
12680 wxUSE_UNIVERSAL="yes"
12681
21d1c967
GD
12682 TOOLKIT_INCLUDE="-I$MGL_ROOT/include"
12683 GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$mgl_lib_type/$mgl_os -lmgl -lmglcpp -lpm"
12684
90dd450c 12685 AFMINSTALL=afminstall
21d1c967
GD
12686 TOOLKIT=MGL
12687 GUIDIST=MGL_DIST
12688 fi
dad6c0ea 12689
21d1c967
GD
12690 if test "$wxUSE_MICROWIN" = 1; then
12691 echo $ac_n "checking for MicroWindows""... $ac_c" 1>&6
3bd8fb5f 12692echo "configure:12693: checking for MicroWindows" >&5
21d1c967
GD
12693 if test "x$MICROWINDOWS" = x ; then
12694 echo "$ac_t""not found" 1>&6
12695 { echo "configure: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." 1>&2; exit 1; }
12696 else
12697 echo "$ac_t""$MICROWINDOWS" 1>&6
12698 fi
f6bcfd97 12699
21d1c967
GD
12700 if test -f $MICROWINDOWS/lib/libmwin.a; then
12701 echo "$ac_t""MicroWindows' libraries found." 1>&6
12702 else
12703 { echo "configure: error: Cannot find MicroWindows libraries, make sure they are compiled." 1>&2; exit 1; }
90dd450c 12704 fi
0b2effe9 12705
21d1c967
GD
12706 TOOLKIT_INCLUDE="-I$MICROWINDOWS/include"
12707 GUI_TK_LIBRARY="-L$MICROWINDOWS/lib -lmwin -lmwengine -mwfonts -mwdrivers -mwinlib"
12708
1d1b75ac
VZ
12709 wxUSE_UNIVERSAL="yes"
12710
21d1c967
GD
12711 AFMINSTALL=afminstall
12712 TOOLKIT=MICROWIN
12713 GUIDIST=MICROWIN_DIST
1d1b75ac
VZ
12714
12715 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXMSW__ -D__WIN95__ -D__WIN32__ -DMWIN -DMICROWIN_NOCONTROLS -DMICROWIN_TODO=1"
21d1c967 12716 fi
f6bcfd97 12717
21d1c967
GD
12718 if test "$wxUSE_X11" = 1; then
12719 # If we find X, set shell vars x_includes and x_libraries to the
12720# paths, otherwise set no_x=yes.
12721# Uses ac_ vars as temps to allow command line to override cache and checks.
12722# --without-x overrides everything else, but does not touch the cache.
12723echo $ac_n "checking for X""... $ac_c" 1>&6
3bd8fb5f 12724echo "configure:12725: checking for X" >&5
d8356fa3 12725
21d1c967
GD
12726# Check whether --with-x or --without-x was given.
12727if test "${with_x+set}" = set; then
12728 withval="$with_x"
12729 :
12730fi
2224580a 12731
21d1c967
GD
12732# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
12733if test "x$with_x" = xno; then
12734 # The user explicitly disabled X.
12735 have_x=disabled
12736else
12737 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
12738 # Both variables are already set.
12739 have_x=yes
12740 else
12741if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
12742 echo $ac_n "(cached) $ac_c" 1>&6
12743else
12744 # One or both of the vars are not set, and there is no cached value.
12745ac_x_includes=NO ac_x_libraries=NO
12746rm -fr conftestdir
12747if mkdir conftestdir; then
12748 cd conftestdir
12749 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
12750 cat > Imakefile <<'EOF'
12751acfindx:
12752 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
12753EOF
12754 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
12755 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
12756 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
12757 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
12758 for ac_extension in a so sl; do
12759 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
12760 test -f $ac_im_libdir/libX11.$ac_extension; then
12761 ac_im_usrlibdir=$ac_im_libdir; break
12762 fi
12763 done
12764 # Screen out bogus values from the imake configuration. They are
12765 # bogus both because they are the default anyway, and because
12766 # using them would break gcc on systems where it needs fixed includes.
12767 case "$ac_im_incroot" in
12768 /usr/include) ;;
12769 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
12770 esac
12771 case "$ac_im_usrlibdir" in
12772 /usr/lib | /lib) ;;
12773 *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
12774 esac
12775 fi
12776 cd ..
12777 rm -fr conftestdir
12778fi
10f2d63a 12779
21d1c967
GD
12780if test "$ac_x_includes" = NO; then
12781 # Guess where to find include files, by looking for this one X11 .h file.
12782 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
e45387bf 12783
21d1c967
GD
12784 # First, try using that file with no special directory specified.
12785cat > conftest.$ac_ext <<EOF
3bd8fb5f 12786#line 12787 "configure"
21d1c967
GD
12787#include "confdefs.h"
12788#include <$x_direct_test_include>
90dd450c 12789EOF
21d1c967 12790ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3bd8fb5f 12791{ (eval echo configure:12792: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
21d1c967
GD
12792ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12793if test -z "$ac_err"; then
90dd450c 12794 rm -rf conftest*
21d1c967
GD
12795 # We can compile using X headers with no special include directory.
12796ac_x_includes=
90dd450c 12797else
21d1c967 12798 echo "$ac_err" >&5
90dd450c
VZ
12799 echo "configure: failed program was:" >&5
12800 cat conftest.$ac_ext >&5
12801 rm -rf conftest*
21d1c967
GD
12802 # Look for the header file in a standard set of common directories.
12803# Check X11 before X11Rn because it is often a symlink to the current release.
12804 for ac_dir in \
12805 /usr/X11/include \
12806 /usr/X11R6/include \
12807 /usr/X11R5/include \
12808 /usr/X11R4/include \
12809 \
12810 /usr/include/X11 \
12811 /usr/include/X11R6 \
12812 /usr/include/X11R5 \
12813 /usr/include/X11R4 \
12814 \
12815 /usr/local/X11/include \
12816 /usr/local/X11R6/include \
12817 /usr/local/X11R5/include \
12818 /usr/local/X11R4/include \
12819 \
12820 /usr/local/include/X11 \
12821 /usr/local/include/X11R6 \
12822 /usr/local/include/X11R5 \
12823 /usr/local/include/X11R4 \
12824 \
12825 /usr/X386/include \
12826 /usr/x386/include \
12827 /usr/XFree86/include/X11 \
12828 \
12829 /usr/include \
12830 /usr/local/include \
12831 /usr/unsupported/include \
12832 /usr/athena/include \
12833 /usr/local/x11r5/include \
12834 /usr/lpp/Xamples/include \
12835 \
12836 /usr/openwin/include \
12837 /usr/openwin/share/include \
12838 ; \
12839 do
12840 if test -r "$ac_dir/$x_direct_test_include"; then
12841 ac_x_includes=$ac_dir
12842 break
12843 fi
12844 done
3a922bb4 12845fi
90dd450c 12846rm -f conftest*
21d1c967 12847fi # $ac_x_includes = NO
10f2d63a 12848
21d1c967
GD
12849if test "$ac_x_libraries" = NO; then
12850 # Check for the libraries.
be505a65 12851
21d1c967
GD
12852 test -z "$x_direct_test_library" && x_direct_test_library=Xt
12853 test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
90dd450c 12854
21d1c967
GD
12855 # See if we find them without any special options.
12856 # Don't add to $LIBS permanently.
12857 ac_save_LIBS="$LIBS"
12858 LIBS="-l$x_direct_test_library $LIBS"
12859cat > conftest.$ac_ext <<EOF
3bd8fb5f 12860#line 12861 "configure"
3a922bb4 12861#include "confdefs.h"
21d1c967
GD
12862
12863int main() {
12864${x_direct_test_function}()
12865; return 0; }
3a922bb4 12866EOF
3bd8fb5f 12867if { (eval echo configure:12868: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3a922bb4 12868 rm -rf conftest*
21d1c967
GD
12869 LIBS="$ac_save_LIBS"
12870# We can link X programs with no special library path.
12871ac_x_libraries=
3a922bb4 12872else
3a922bb4
RL
12873 echo "configure: failed program was:" >&5
12874 cat conftest.$ac_ext >&5
12875 rm -rf conftest*
21d1c967
GD
12876 LIBS="$ac_save_LIBS"
12877# First see if replacing the include by lib works.
12878# Check X11 before X11Rn because it is often a symlink to the current release.
12879for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
12880 /usr/X11/lib \
12881 /usr/X11R6/lib \
12882 /usr/X11R5/lib \
12883 /usr/X11R4/lib \
12884 \
12885 /usr/lib/X11 \
12886 /usr/lib/X11R6 \
12887 /usr/lib/X11R5 \
12888 /usr/lib/X11R4 \
12889 \
12890 /usr/local/X11/lib \
12891 /usr/local/X11R6/lib \
12892 /usr/local/X11R5/lib \
12893 /usr/local/X11R4/lib \
12894 \
12895 /usr/local/lib/X11 \
12896 /usr/local/lib/X11R6 \
12897 /usr/local/lib/X11R5 \
12898 /usr/local/lib/X11R4 \
12899 \
12900 /usr/X386/lib \
12901 /usr/x386/lib \
12902 /usr/XFree86/lib/X11 \
12903 \
12904 /usr/lib \
12905 /usr/local/lib \
12906 /usr/unsupported/lib \
12907 /usr/athena/lib \
12908 /usr/local/x11r5/lib \
12909 /usr/lpp/Xamples/lib \
12910 /lib/usr/lib/X11 \
12911 \
12912 /usr/openwin/lib \
12913 /usr/openwin/share/lib \
12914 ; \
12915do
12916 for ac_extension in a so sl; do
12917 if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
12918 ac_x_libraries=$ac_dir
12919 break 2
12920 fi
12921 done
12922done
3a922bb4
RL
12923fi
12924rm -f conftest*
21d1c967 12925fi # $ac_x_libraries = NO
90dd450c 12926
21d1c967
GD
12927if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
12928 # Didn't find X anywhere. Cache the known absence of X.
12929 ac_cv_have_x="have_x=no"
12930else
12931 # Record where we found X for the cache.
12932 ac_cv_have_x="have_x=yes \
12933 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
90dd450c 12934fi
21d1c967
GD
12935fi
12936 fi
12937 eval "$ac_cv_have_x"
12938fi # $with_x != no
90dd450c 12939
21d1c967
GD
12940if test "$have_x" != yes; then
12941 echo "$ac_t""$have_x" 1>&6
12942 no_x=yes
12943else
12944 # If each of the values was on the command line, it overrides each guess.
12945 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
12946 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
12947 # Update the cache value to reflect the command line values.
12948 ac_cv_have_x="have_x=yes \
12949 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
12950 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
12951fi
90dd450c 12952
21d1c967 12953if test "$no_x" = yes; then
90dd450c
VZ
12954 # Not all programs may use this symbol, but it does not hurt to define it.
12955 cat >> confdefs.h <<\EOF
12956#define X_DISPLAY_MISSING 1
12957EOF
12958
12959 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
12960else
12961 if test -n "$x_includes"; then
12962 X_CFLAGS="$X_CFLAGS -I$x_includes"
62d0491b 12963 fi
3a922bb4 12964
90dd450c
VZ
12965 # It would also be nice to do this for all -L options, not just this one.
12966 if test -n "$x_libraries"; then
12967 X_LIBS="$X_LIBS -L$x_libraries"
12968 # For Solaris; some versions of Sun CC require a space after -R and
12969 # others require no space. Words are not sufficient . . . .
12970 case "`(uname -sr) 2>/dev/null`" in
12971 "SunOS 5"*)
12972 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
3bd8fb5f 12973echo "configure:12974: checking whether -R must be followed by a space" >&5
90dd450c
VZ
12974 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
12975 cat > conftest.$ac_ext <<EOF
3bd8fb5f 12976#line 12977 "configure"
90dd450c
VZ
12977#include "confdefs.h"
12978
12979int main() {
12980
12981; return 0; }
12982EOF
3bd8fb5f 12983if { (eval echo configure:12984: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
90dd450c
VZ
12984 rm -rf conftest*
12985 ac_R_nospace=yes
3a922bb4 12986else
90dd450c
VZ
12987 echo "configure: failed program was:" >&5
12988 cat conftest.$ac_ext >&5
12989 rm -rf conftest*
12990 ac_R_nospace=no
3a922bb4 12991fi
90dd450c
VZ
12992rm -f conftest*
12993 if test $ac_R_nospace = yes; then
12994 echo "$ac_t""no" 1>&6
12995 X_LIBS="$X_LIBS -R$x_libraries"
12996 else
12997 LIBS="$ac_xsave_LIBS -R $x_libraries"
12998 cat > conftest.$ac_ext <<EOF
3bd8fb5f 12999#line 13000 "configure"
90dd450c 13000#include "confdefs.h"
3a922bb4 13001
90dd450c 13002int main() {
6f754473 13003
90dd450c
VZ
13004; return 0; }
13005EOF
3bd8fb5f 13006if { (eval echo configure:13007: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
90dd450c
VZ
13007 rm -rf conftest*
13008 ac_R_space=yes
13009else
13010 echo "configure: failed program was:" >&5
13011 cat conftest.$ac_ext >&5
13012 rm -rf conftest*
13013 ac_R_space=no
13014fi
13015rm -f conftest*
13016 if test $ac_R_space = yes; then
13017 echo "$ac_t""yes" 1>&6
13018 X_LIBS="$X_LIBS -R $x_libraries"
13019 else
13020 echo "$ac_t""neither works" 1>&6
13021 fi
13022 fi
13023 LIBS="$ac_xsave_LIBS"
13024 esac
13025 fi
13026
13027 # Check for system-dependent libraries X programs must link with.
13028 # Do this before checking for the system-independent R6 libraries
13029 # (-lICE), since we may need -lsocket or whatever for X linking.
6f754473 13030
90dd450c
VZ
13031 if test "$ISC" = yes; then
13032 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
13033 else
13034 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
13035 # libraries were built with DECnet support. And karl@cs.umb.edu says
13036 # the Alpha needs dnet_stub (dnet does not exist).
13037 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
3bd8fb5f 13038echo "configure:13039: checking for dnet_ntoa in -ldnet" >&5
90dd450c
VZ
13039ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
13040if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13041 echo $ac_n "(cached) $ac_c" 1>&6
13042else
13043 ac_save_LIBS="$LIBS"
13044LIBS="-ldnet $LIBS"
13045cat > conftest.$ac_ext <<EOF
3bd8fb5f 13046#line 13047 "configure"
90dd450c
VZ
13047#include "confdefs.h"
13048/* Override any gcc2 internal prototype to avoid an error. */
13049/* We use char because int might match the return type of a gcc2
13050 builtin and then its argument prototype would still apply. */
13051char dnet_ntoa();
6f754473 13052
90dd450c
VZ
13053int main() {
13054dnet_ntoa()
13055; return 0; }
6f754473 13056EOF
3bd8fb5f 13057if { (eval echo configure:13058: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
90dd450c
VZ
13058 rm -rf conftest*
13059 eval "ac_cv_lib_$ac_lib_var=yes"
13060else
13061 echo "configure: failed program was:" >&5
13062 cat conftest.$ac_ext >&5
13063 rm -rf conftest*
13064 eval "ac_cv_lib_$ac_lib_var=no"
3a922bb4 13065fi
90dd450c
VZ
13066rm -f conftest*
13067LIBS="$ac_save_LIBS"
3a922bb4 13068
3a922bb4 13069fi
90dd450c
VZ
13070if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13071 echo "$ac_t""yes" 1>&6
13072 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
13073else
13074 echo "$ac_t""no" 1>&6
3a922bb4
RL
13075fi
13076
90dd450c
VZ
13077 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
13078 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
3bd8fb5f 13079echo "configure:13080: checking for dnet_ntoa in -ldnet_stub" >&5
90dd450c
VZ
13080ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
13081if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13082 echo $ac_n "(cached) $ac_c" 1>&6
13083else
13084 ac_save_LIBS="$LIBS"
13085LIBS="-ldnet_stub $LIBS"
13086cat > conftest.$ac_ext <<EOF
3bd8fb5f 13087#line 13088 "configure"
90dd450c
VZ
13088#include "confdefs.h"
13089/* Override any gcc2 internal prototype to avoid an error. */
13090/* We use char because int might match the return type of a gcc2
13091 builtin and then its argument prototype would still apply. */
13092char dnet_ntoa();
f676c7ff 13093
90dd450c
VZ
13094int main() {
13095dnet_ntoa()
13096; return 0; }
13097EOF
3bd8fb5f 13098if { (eval echo configure:13099: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
90dd450c
VZ
13099 rm -rf conftest*
13100 eval "ac_cv_lib_$ac_lib_var=yes"
13101else
13102 echo "configure: failed program was:" >&5
13103 cat conftest.$ac_ext >&5
13104 rm -rf conftest*
13105 eval "ac_cv_lib_$ac_lib_var=no"
3a922bb4 13106fi
90dd450c
VZ
13107rm -f conftest*
13108LIBS="$ac_save_LIBS"
3a922bb4 13109
90dd450c
VZ
13110fi
13111if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13112 echo "$ac_t""yes" 1>&6
13113 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
13114else
13115 echo "$ac_t""no" 1>&6
3a922bb4
RL
13116fi
13117
90dd450c 13118 fi
978f1259 13119
90dd450c
VZ
13120 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
13121 # to get the SysV transport functions.
13122 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
13123 # needs -lnsl.
13124 # The nsl library prevents programs from opening the X display
13125 # on Irix 5.2, according to dickey@clark.net.
13126 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
3bd8fb5f 13127echo "configure:13128: checking for gethostbyname" >&5
90dd450c
VZ
13128if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
13129 echo $ac_n "(cached) $ac_c" 1>&6
13130else
13131 cat > conftest.$ac_ext <<EOF
3bd8fb5f 13132#line 13133 "configure"
90dd450c
VZ
13133#include "confdefs.h"
13134/* System header to define __stub macros and hopefully few prototypes,
13135 which can conflict with char gethostbyname(); below. */
13136#include <assert.h>
13137/* Override any gcc2 internal prototype to avoid an error. */
13138/* We use char because int might match the return type of a gcc2
13139 builtin and then its argument prototype would still apply. */
13140char gethostbyname();
978f1259 13141
90dd450c 13142int main() {
978f1259 13143
90dd450c
VZ
13144/* The GNU C library defines this for functions which it implements
13145 to always fail with ENOSYS. Some functions are actually named
13146 something starting with __ and the normal name is an alias. */
13147#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
13148choke me
13149#else
13150gethostbyname();
13151#endif
978f1259 13152
90dd450c
VZ
13153; return 0; }
13154EOF
3bd8fb5f 13155if { (eval echo configure:13156: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
90dd450c
VZ
13156 rm -rf conftest*
13157 eval "ac_cv_func_gethostbyname=yes"
13158else
13159 echo "configure: failed program was:" >&5
13160 cat conftest.$ac_ext >&5
13161 rm -rf conftest*
13162 eval "ac_cv_func_gethostbyname=no"
978f1259 13163fi
90dd450c 13164rm -f conftest*
4222829b
VS
13165fi
13166
90dd450c
VZ
13167if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
13168 echo "$ac_t""yes" 1>&6
13169 :
13170else
13171 echo "$ac_t""no" 1>&6
13172fi
698dcdb6 13173
90dd450c
VZ
13174 if test $ac_cv_func_gethostbyname = no; then
13175 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
3bd8fb5f 13176echo "configure:13177: checking for gethostbyname in -lnsl" >&5
90dd450c
VZ
13177ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
13178if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13179 echo $ac_n "(cached) $ac_c" 1>&6
13180else
13181 ac_save_LIBS="$LIBS"
13182LIBS="-lnsl $LIBS"
13183cat > conftest.$ac_ext <<EOF
3bd8fb5f 13184#line 13185 "configure"
90dd450c
VZ
13185#include "confdefs.h"
13186/* Override any gcc2 internal prototype to avoid an error. */
13187/* We use char because int might match the return type of a gcc2
13188 builtin and then its argument prototype would still apply. */
13189char gethostbyname();
f6bcfd97 13190
90dd450c
VZ
13191int main() {
13192gethostbyname()
13193; return 0; }
13194EOF
3bd8fb5f 13195if { (eval echo configure:13196: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
90dd450c
VZ
13196 rm -rf conftest*
13197 eval "ac_cv_lib_$ac_lib_var=yes"
13198else
13199 echo "configure: failed program was:" >&5
13200 cat conftest.$ac_ext >&5
13201 rm -rf conftest*
13202 eval "ac_cv_lib_$ac_lib_var=no"
13203fi
13204rm -f conftest*
13205LIBS="$ac_save_LIBS"
55e80573 13206
90dd450c
VZ
13207fi
13208if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13209 echo "$ac_t""yes" 1>&6
13210 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
13211else
13212 echo "$ac_t""no" 1>&6
13213fi
b12915c1 13214
90dd450c
VZ
13215 fi
13216
13217 # lieder@skyler.mavd.honeywell.com says without -lsocket,
13218 # socket/setsockopt and other routines are undefined under SCO ODT
13219 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
13220 # on later versions), says simon@lia.di.epfl.ch: it contains
13221 # gethostby* variants that don't use the nameserver (or something).
13222 # -lsocket must be given before -lnsl if both are needed.
13223 # We assume that if connect needs -lnsl, so does gethostbyname.
13224 echo $ac_n "checking for connect""... $ac_c" 1>&6
3bd8fb5f 13225echo "configure:13226: checking for connect" >&5
90dd450c 13226if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
55e80573
VZ
13227 echo $ac_n "(cached) $ac_c" 1>&6
13228else
90dd450c 13229 cat > conftest.$ac_ext <<EOF
3bd8fb5f 13230#line 13231 "configure"
55e80573 13231#include "confdefs.h"
90dd450c
VZ
13232/* System header to define __stub macros and hopefully few prototypes,
13233 which can conflict with char connect(); below. */
13234#include <assert.h>
13235/* Override any gcc2 internal prototype to avoid an error. */
13236/* We use char because int might match the return type of a gcc2
13237 builtin and then its argument prototype would still apply. */
13238char connect();
55e80573
VZ
13239
13240int main() {
13241
90dd450c
VZ
13242/* The GNU C library defines this for functions which it implements
13243 to always fail with ENOSYS. Some functions are actually named
13244 something starting with __ and the normal name is an alias. */
13245#if defined (__stub_connect) || defined (__stub___connect)
13246choke me
13247#else
13248connect();
13249#endif
13250
55e80573
VZ
13251; return 0; }
13252EOF
3bd8fb5f 13253if { (eval echo configure:13254: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
55e80573 13254 rm -rf conftest*
90dd450c 13255 eval "ac_cv_func_connect=yes"
55e80573
VZ
13256else
13257 echo "configure: failed program was:" >&5
13258 cat conftest.$ac_ext >&5
13259 rm -rf conftest*
90dd450c 13260 eval "ac_cv_func_connect=no"
55e80573
VZ
13261fi
13262rm -f conftest*
55e80573
VZ
13263fi
13264
90dd450c
VZ
13265if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
13266 echo "$ac_t""yes" 1>&6
13267 :
13268else
13269 echo "$ac_t""no" 1>&6
13270fi
55e80573 13271
90dd450c
VZ
13272 if test $ac_cv_func_connect = no; then
13273 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
3bd8fb5f 13274echo "configure:13275: checking for connect in -lsocket" >&5
90dd450c
VZ
13275ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
13276if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13277 echo $ac_n "(cached) $ac_c" 1>&6
13278else
13279 ac_save_LIBS="$LIBS"
13280LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
13281cat > conftest.$ac_ext <<EOF
3bd8fb5f 13282#line 13283 "configure"
90dd450c
VZ
13283#include "confdefs.h"
13284/* Override any gcc2 internal prototype to avoid an error. */
13285/* We use char because int might match the return type of a gcc2
13286 builtin and then its argument prototype would still apply. */
13287char connect();
55e80573 13288
90dd450c
VZ
13289int main() {
13290connect()
13291; return 0; }
13292EOF
3bd8fb5f 13293if { (eval echo configure:13294: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
90dd450c
VZ
13294 rm -rf conftest*
13295 eval "ac_cv_lib_$ac_lib_var=yes"
13296else
13297 echo "configure: failed program was:" >&5
13298 cat conftest.$ac_ext >&5
13299 rm -rf conftest*
13300 eval "ac_cv_lib_$ac_lib_var=no"
13301fi
13302rm -f conftest*
13303LIBS="$ac_save_LIBS"
77e13408 13304
90dd450c
VZ
13305fi
13306if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13307 echo "$ac_t""yes" 1>&6
13308 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
13309else
13310 echo "$ac_t""no" 1>&6
13311fi
77e13408 13312
90dd450c 13313 fi
25d0687a 13314
90dd450c
VZ
13315 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
13316 echo $ac_n "checking for remove""... $ac_c" 1>&6
3bd8fb5f 13317echo "configure:13318: checking for remove" >&5
90dd450c
VZ
13318if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
13319 echo $ac_n "(cached) $ac_c" 1>&6
13320else
13321 cat > conftest.$ac_ext <<EOF
3bd8fb5f 13322#line 13323 "configure"
90dd450c
VZ
13323#include "confdefs.h"
13324/* System header to define __stub macros and hopefully few prototypes,
13325 which can conflict with char remove(); below. */
13326#include <assert.h>
13327/* Override any gcc2 internal prototype to avoid an error. */
13328/* We use char because int might match the return type of a gcc2
13329 builtin and then its argument prototype would still apply. */
13330char remove();
7b7a7637 13331
90dd450c 13332int main() {
55e80573 13333
90dd450c
VZ
13334/* The GNU C library defines this for functions which it implements
13335 to always fail with ENOSYS. Some functions are actually named
13336 something starting with __ and the normal name is an alias. */
13337#if defined (__stub_remove) || defined (__stub___remove)
13338choke me
13339#else
13340remove();
13341#endif
55e80573 13342
90dd450c
VZ
13343; return 0; }
13344EOF
3bd8fb5f 13345if { (eval echo configure:13346: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
90dd450c
VZ
13346 rm -rf conftest*
13347 eval "ac_cv_func_remove=yes"
13348else
13349 echo "configure: failed program was:" >&5
13350 cat conftest.$ac_ext >&5
13351 rm -rf conftest*
13352 eval "ac_cv_func_remove=no"
13353fi
13354rm -f conftest*
13355fi
55e80573 13356
90dd450c
VZ
13357if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
13358 echo "$ac_t""yes" 1>&6
13359 :
13360else
13361 echo "$ac_t""no" 1>&6
13362fi
10f2d63a 13363
90dd450c
VZ
13364 if test $ac_cv_func_remove = no; then
13365 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
3bd8fb5f 13366echo "configure:13367: checking for remove in -lposix" >&5
90dd450c
VZ
13367ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
13368if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13369 echo $ac_n "(cached) $ac_c" 1>&6
13370else
13371 ac_save_LIBS="$LIBS"
13372LIBS="-lposix $LIBS"
13373cat > conftest.$ac_ext <<EOF
3bd8fb5f 13374#line 13375 "configure"
90dd450c
VZ
13375#include "confdefs.h"
13376/* Override any gcc2 internal prototype to avoid an error. */
13377/* We use char because int might match the return type of a gcc2
13378 builtin and then its argument prototype would still apply. */
13379char remove();
55e80573 13380
90dd450c
VZ
13381int main() {
13382remove()
13383; return 0; }
13384EOF
3bd8fb5f 13385if { (eval echo configure:13386: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
90dd450c
VZ
13386 rm -rf conftest*
13387 eval "ac_cv_lib_$ac_lib_var=yes"
13388else
13389 echo "configure: failed program was:" >&5
13390 cat conftest.$ac_ext >&5
13391 rm -rf conftest*
13392 eval "ac_cv_lib_$ac_lib_var=no"
3a922bb4 13393fi
90dd450c
VZ
13394rm -f conftest*
13395LIBS="$ac_save_LIBS"
f6bcfd97 13396
90dd450c
VZ
13397fi
13398if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13399 echo "$ac_t""yes" 1>&6
13400 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
13401else
13402 echo "$ac_t""no" 1>&6
13403fi
f6bcfd97 13404
6fa882bd
RR
13405 fi
13406
90dd450c
VZ
13407 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
13408 echo $ac_n "checking for shmat""... $ac_c" 1>&6
3bd8fb5f 13409echo "configure:13410: checking for shmat" >&5
90dd450c
VZ
13410if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
13411 echo $ac_n "(cached) $ac_c" 1>&6
13412else
13413 cat > conftest.$ac_ext <<EOF
3bd8fb5f 13414#line 13415 "configure"
90dd450c
VZ
13415#include "confdefs.h"
13416/* System header to define __stub macros and hopefully few prototypes,
13417 which can conflict with char shmat(); below. */
13418#include <assert.h>
13419/* Override any gcc2 internal prototype to avoid an error. */
13420/* We use char because int might match the return type of a gcc2
13421 builtin and then its argument prototype would still apply. */
13422char shmat();
698dcdb6 13423
90dd450c 13424int main() {
3a922bb4 13425
90dd450c
VZ
13426/* The GNU C library defines this for functions which it implements
13427 to always fail with ENOSYS. Some functions are actually named
13428 something starting with __ and the normal name is an alias. */
13429#if defined (__stub_shmat) || defined (__stub___shmat)
13430choke me
13431#else
13432shmat();
13433#endif
10f2d63a 13434
90dd450c
VZ
13435; return 0; }
13436EOF
3bd8fb5f 13437if { (eval echo configure:13438: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
90dd450c
VZ
13438 rm -rf conftest*
13439 eval "ac_cv_func_shmat=yes"
d08b457b 13440else
90dd450c
VZ
13441 echo "configure: failed program was:" >&5
13442 cat conftest.$ac_ext >&5
13443 rm -rf conftest*
13444 eval "ac_cv_func_shmat=no"
d08b457b 13445fi
90dd450c 13446rm -f conftest*
d08b457b 13447fi
90dd450c
VZ
13448
13449if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
13450 echo "$ac_t""yes" 1>&6
13451 :
d08b457b
GD
13452else
13453 echo "$ac_t""no" 1>&6
13454fi
13455
90dd450c
VZ
13456 if test $ac_cv_func_shmat = no; then
13457 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
3bd8fb5f 13458echo "configure:13459: checking for shmat in -lipc" >&5
90dd450c
VZ
13459ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
13460if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
d08b457b
GD
13461 echo $ac_n "(cached) $ac_c" 1>&6
13462else
90dd450c
VZ
13463 ac_save_LIBS="$LIBS"
13464LIBS="-lipc $LIBS"
13465cat > conftest.$ac_ext <<EOF
3bd8fb5f 13466#line 13467 "configure"
90dd450c
VZ
13467#include "confdefs.h"
13468/* Override any gcc2 internal prototype to avoid an error. */
13469/* We use char because int might match the return type of a gcc2
13470 builtin and then its argument prototype would still apply. */
13471char shmat();
13472
13473int main() {
13474shmat()
13475; return 0; }
13476EOF
3bd8fb5f 13477if { (eval echo configure:13478: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
90dd450c
VZ
13478 rm -rf conftest*
13479 eval "ac_cv_lib_$ac_lib_var=yes"
d08b457b 13480else
90dd450c
VZ
13481 echo "configure: failed program was:" >&5
13482 cat conftest.$ac_ext >&5
13483 rm -rf conftest*
13484 eval "ac_cv_lib_$ac_lib_var=no"
d08b457b 13485fi
90dd450c
VZ
13486rm -f conftest*
13487LIBS="$ac_save_LIBS"
13488
d08b457b 13489fi
90dd450c
VZ
13490if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13491 echo "$ac_t""yes" 1>&6
13492 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
d08b457b
GD
13493else
13494 echo "$ac_t""no" 1>&6
13495fi
13496
d558c907 13497 fi
90dd450c 13498 fi
3a922bb4 13499
90dd450c
VZ
13500 # Check for libraries that X11R6 Xt/Xaw programs need.
13501 ac_save_LDFLAGS="$LDFLAGS"
13502 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
13503 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
13504 # check for ICE first), but we must link in the order -lSM -lICE or
13505 # we get undefined symbols. So assume we have SM if we have ICE.
13506 # These have to be linked with before -lX11, unlike the other
13507 # libraries we check for below, so use a different variable.
13508 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
13509 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
3bd8fb5f 13510echo "configure:13511: checking for IceConnectionNumber in -lICE" >&5
90dd450c
VZ
13511ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
13512if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
698dcdb6
VZ
13513 echo $ac_n "(cached) $ac_c" 1>&6
13514else
90dd450c
VZ
13515 ac_save_LIBS="$LIBS"
13516LIBS="-lICE $X_EXTRA_LIBS $LIBS"
13517cat > conftest.$ac_ext <<EOF
3bd8fb5f 13518#line 13519 "configure"
9cfadba2 13519#include "confdefs.h"
90dd450c
VZ
13520/* Override any gcc2 internal prototype to avoid an error. */
13521/* We use char because int might match the return type of a gcc2
13522 builtin and then its argument prototype would still apply. */
13523char IceConnectionNumber();
13524
13525int main() {
13526IceConnectionNumber()
13527; return 0; }
698dcdb6 13528EOF
3bd8fb5f 13529if { (eval echo configure:13530: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6 13530 rm -rf conftest*
90dd450c 13531 eval "ac_cv_lib_$ac_lib_var=yes"
6232543b 13532else
698dcdb6 13533 echo "configure: failed program was:" >&5
9cfadba2 13534 cat conftest.$ac_ext >&5
698dcdb6 13535 rm -rf conftest*
90dd450c 13536 eval "ac_cv_lib_$ac_lib_var=no"
9cfadba2 13537fi
698dcdb6 13538rm -f conftest*
90dd450c
VZ
13539LIBS="$ac_save_LIBS"
13540
9cfadba2 13541fi
90dd450c 13542if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
698dcdb6 13543 echo "$ac_t""yes" 1>&6
90dd450c 13544 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
698dcdb6
VZ
13545else
13546 echo "$ac_t""no" 1>&6
9cfadba2 13547fi
10f2d63a 13548
90dd450c
VZ
13549 LDFLAGS="$ac_save_LDFLAGS"
13550
13551fi
13552
13553
13554 if test "$no_x" = "yes"; then
13555 { echo "configure: error: X11 not found" 1>&2; exit 1; }
13556 fi
13557
13558 GUI_TK_LIBRARY="$X_LIBS"
13559 TOOLKIT_INCLUDE="$X_CFLAGS"
13560 AFMINSTALL=afminstall
13561 COMPILED_X_PROGRAM=0
13562
21d1c967
GD
13563 if test "$wxUSE_NANOX" = "yes"; then
13564 echo $ac_n "checking for MicroWindows/NanoX distribution""... $ac_c" 1>&6
3bd8fb5f 13565echo "configure:13566: checking for MicroWindows/NanoX distribution" >&5
21d1c967
GD
13566 if test "x$MICROWIN" = x ; then
13567 echo "$ac_t""not found" 1>&6
13568 { echo "configure: error: Cannot find MicroWindows library. Make sure MICROWIN is set." 1>&2; exit 1; }
90dd450c 13569 else
21d1c967
GD
13570 echo "$ac_t""$MICROWIN" 1>&6
13571 cat >> confdefs.h <<\EOF
13572#define wxUSE_NANOX 1
698dcdb6 13573EOF
21d1c967 13574
90dd450c
VZ
13575 fi
13576 fi
13577
13578 xpm_link=
13579 echo $ac_n "checking for Xpm library""... $ac_c" 1>&6
3bd8fb5f 13580echo "configure:13581: checking for Xpm library" >&5
90dd450c
VZ
13581
13582ac_find_libraries=
13583for ac_dir in $SEARCH_LIB;
13584 do
13585 for ac_extension in a so sl dylib; do
13586 if test -f "$ac_dir/libXpm.$ac_extension"; then
13587 ac_find_libraries=$ac_dir
13588 break 2
13589 fi
13590 done
13591 done
13592
13593 if test "$ac_find_libraries" != "" ; then
13594
13595 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
13596 result=$?
13597 if test $result = 0; then
13598 ac_path_to_link=""
13599 else
13600 ac_path_to_link=" -L$ac_find_libraries"
21d1c967 13601 fi
90dd450c 13602
21d1c967
GD
13603 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
13604 xpm_link=" -lXpm"
13605 cat >> confdefs.h <<\EOF
13606#define wxHAVE_LIB_XPM 1
13607EOF
90dd450c 13608
21d1c967
GD
13609 echo "$ac_t""found at $ac_find_libraries" 1>&6
13610 else
13611 cat > conftest.$ac_ext <<EOF
3bd8fb5f 13612#line 13613 "configure"
21d1c967 13613#include "confdefs.h"
90dd450c 13614
21d1c967
GD
13615 #include <X11/xpm.h>
13616
13617int main() {
6f72b082 13618
21d1c967
GD
13619 int version;
13620 version = XpmLibraryVersion();
13621
13622; return 0; }
13623EOF
3bd8fb5f 13624if { (eval echo configure:13625: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21d1c967
GD
13625 rm -rf conftest*
13626
13627 xpm_link=" -lXpm"
13628 cat >> confdefs.h <<\EOF
13629#define wxHAVE_LIB_XPM 1
13630EOF
90dd450c 13631
21d1c967
GD
13632 echo "$ac_t""found in default search path" 1>&6
13633 COMPILED_X_PROGRAM=0
13634
13635else
13636 echo "configure: failed program was:" >&5
13637 cat conftest.$ac_ext >&5
13638 rm -rf conftest*
13639
13640 echo "$ac_t""no" 1>&6
13641 echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2
13642
13643
6f72b082 13644fi
21d1c967
GD
13645rm -f conftest*
13646 fi
90dd450c 13647
1d1b75ac
VZ
13648 wxUSE_UNIVERSAL="yes"
13649
21d1c967
GD
13650 if test "$wxUSE_NANOX" = "yes"; then
13651 TOOLKIT_INCLUDE="-I\$(top_srcdir)/include/wx/x11/nanox -I\$(MICROWIN)/src/include $TOOLKIT_INCLUDE"
13652 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"
13653 GUI_TK_LIBRARY="$GUI_TK_LIBRARY \$(MICROWIN)/src/lib/libnano-X.a"
13654 else
13655 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lX11$xpm_link"
13656 fi
6f72b082 13657
21d1c967
GD
13658 TOOLKIT_VPATH="\${top_srcdir}/src/x11"
13659 TOOLKIT=X11
13660 GUIDIST=X11_DIST
13661 fi
90dd450c 13662
21d1c967
GD
13663 if test "$wxUSE_WINE" = 1; then
13664 ac_safe=`echo "windows.h" | sed 'y%./+-%__p_%'`
13665echo $ac_n "checking for windows.h""... $ac_c" 1>&6
3bd8fb5f 13666echo "configure:13667: checking for windows.h" >&5
698dcdb6
VZ
13667if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
13668 echo $ac_n "(cached) $ac_c" 1>&6
13669else
13670 cat > conftest.$ac_ext <<EOF
3bd8fb5f 13671#line 13672 "configure"
6f72b082 13672#include "confdefs.h"
21d1c967 13673#include <windows.h>
698dcdb6
VZ
13674EOF
13675ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3bd8fb5f 13676{ (eval echo configure:13677: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
13677ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13678if test -z "$ac_err"; then
13679 rm -rf conftest*
13680 eval "ac_cv_header_$ac_safe=yes"
10f2d63a 13681else
698dcdb6
VZ
13682 echo "$ac_err" >&5
13683 echo "configure: failed program was:" >&5
10f2d63a 13684 cat conftest.$ac_ext >&5
698dcdb6
VZ
13685 rm -rf conftest*
13686 eval "ac_cv_header_$ac_safe=no"
10f2d63a 13687fi
698dcdb6 13688rm -f conftest*
10f2d63a 13689fi
698dcdb6
VZ
13690if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13691 echo "$ac_t""yes" 1>&6
21d1c967
GD
13692 :
13693else
13694 echo "$ac_t""no" 1>&6
13695
13696 { echo "configure: error: please set CFLAGS to contain the location of windows.h" 1>&2; exit 1; }
13697
13698fi
13699
13700
13701 xpm_link=
13702 echo $ac_n "checking for Xpm library""... $ac_c" 1>&6
3bd8fb5f 13703echo "configure:13704: checking for Xpm library" >&5
21d1c967 13704
90dd450c
VZ
13705ac_find_libraries=
13706for ac_dir in $SEARCH_LIB;
13707 do
13708 for ac_extension in a so sl dylib; do
21d1c967 13709 if test -f "$ac_dir/libXpm.$ac_extension"; then
90dd450c
VZ
13710 ac_find_libraries=$ac_dir
13711 break 2
13712 fi
13713 done
13714 done
13715
21d1c967
GD
13716 if test "$ac_find_libraries" != "" ; then
13717 GUI_TK_LIBRARY="-L$ac_find_libraries"
13718 xpm_link=" -lXpm"
13719 cat >> confdefs.h <<\EOF
13720#define wxHAVE_LIB_XPM 1
13721EOF
90dd450c 13722
21d1c967
GD
13723 echo "$ac_t""found at $ac_find_libraries" 1>&6
13724 else
13725 echo "$ac_t""no" 1>&6
13726 echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2
13727 fi
13728
13729 mesa_link=
13730 echo $ac_n "checking for Mesa library""... $ac_c" 1>&6
3bd8fb5f 13731echo "configure:13732: checking for Mesa library" >&5
21d1c967 13732
90dd450c
VZ
13733ac_find_libraries=
13734for ac_dir in $SEARCH_LIB;
13735 do
13736 for ac_extension in a so sl dylib; do
13737 if test -f "$ac_dir/libMesaGL.$ac_extension"; then
13738 ac_find_libraries=$ac_dir
13739 break 2
13740 fi
13741 done
13742 done
13743
21d1c967
GD
13744 if test "$ac_find_libraries" != "" ; then
13745 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -L$ac_find_libraries"
13746 mesa_link=" -lMesaGL"
13747 echo "$ac_t""found at $ac_find_libraries" 1>&6
13748 else
13749 { echo "configure: error: no" 1>&2; exit 1; }
13750 fi
13751
13752 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lwine$mesa_link$xpm_link -lXxf86dga -lXxf86vm -lSM -lICE -lXext -lXmu -lX11 -lncurses"
13753 TOOLKIT=MSW
13754 GUIDIST=MSW_DIST
13755 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXWINE__"
13756 fi
13757
13758 if test "$wxUSE_MOTIF" = 1; then
13759 if test "$no_x" = yes; then
13760 # Not all programs may use this symbol, but it does not hurt to define it.
13761 cat >> confdefs.h <<\EOF
13762#define X_DISPLAY_MISSING 1
13763EOF
13764
13765 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
13766else
13767 if test -n "$x_includes"; then
13768 X_CFLAGS="$X_CFLAGS -I$x_includes"
90dd450c
VZ
13769 fi
13770
21d1c967
GD
13771 # It would also be nice to do this for all -L options, not just this one.
13772 if test -n "$x_libraries"; then
13773 X_LIBS="$X_LIBS -L$x_libraries"
13774 # For Solaris; some versions of Sun CC require a space after -R and
13775 # others require no space. Words are not sufficient . . . .
13776 case "`(uname -sr) 2>/dev/null`" in
13777 "SunOS 5"*)
13778 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
3bd8fb5f 13779echo "configure:13780: checking whether -R must be followed by a space" >&5
21d1c967
GD
13780 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
13781 cat > conftest.$ac_ext <<EOF
3bd8fb5f 13782#line 13783 "configure"
21d1c967
GD
13783#include "confdefs.h"
13784
13785int main() {
13786
13787; return 0; }
13788EOF
3bd8fb5f 13789if { (eval echo configure:13790: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21d1c967
GD
13790 rm -rf conftest*
13791 ac_R_nospace=yes
698dcdb6 13792else
21d1c967
GD
13793 echo "configure: failed program was:" >&5
13794 cat conftest.$ac_ext >&5
13795 rm -rf conftest*
13796 ac_R_nospace=no
10f2d63a 13797fi
21d1c967
GD
13798rm -f conftest*
13799 if test $ac_R_nospace = yes; then
13800 echo "$ac_t""no" 1>&6
13801 X_LIBS="$X_LIBS -R$x_libraries"
13802 else
13803 LIBS="$ac_xsave_LIBS -R $x_libraries"
13804 cat > conftest.$ac_ext <<EOF
3bd8fb5f 13805#line 13806 "configure"
21d1c967 13806#include "confdefs.h"
10f2d63a 13807
21d1c967 13808int main() {
f0c87536 13809
21d1c967 13810; return 0; }
698dcdb6 13811EOF
3bd8fb5f 13812if { (eval echo configure:13813: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21d1c967
GD
13813 rm -rf conftest*
13814 ac_R_space=yes
13815else
13816 echo "configure: failed program was:" >&5
13817 cat conftest.$ac_ext >&5
13818 rm -rf conftest*
13819 ac_R_space=no
13820fi
13821rm -f conftest*
13822 if test $ac_R_space = yes; then
13823 echo "$ac_t""yes" 1>&6
13824 X_LIBS="$X_LIBS -R $x_libraries"
13825 else
13826 echo "$ac_t""neither works" 1>&6
13827 fi
13828 fi
13829 LIBS="$ac_xsave_LIBS"
13830 esac
13831 fi
90dd450c 13832
21d1c967
GD
13833 # Check for system-dependent libraries X programs must link with.
13834 # Do this before checking for the system-independent R6 libraries
13835 # (-lICE), since we may need -lsocket or whatever for X linking.
13836
13837 if test "$ISC" = yes; then
13838 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
13839 else
13840 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
13841 # libraries were built with DECnet support. And karl@cs.umb.edu says
13842 # the Alpha needs dnet_stub (dnet does not exist).
13843 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
3bd8fb5f 13844echo "configure:13845: checking for dnet_ntoa in -ldnet" >&5
21d1c967
GD
13845ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
13846if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13847 echo $ac_n "(cached) $ac_c" 1>&6
13848else
13849 ac_save_LIBS="$LIBS"
13850LIBS="-ldnet $LIBS"
13851cat > conftest.$ac_ext <<EOF
3bd8fb5f 13852#line 13853 "configure"
21d1c967
GD
13853#include "confdefs.h"
13854/* Override any gcc2 internal prototype to avoid an error. */
13855/* We use char because int might match the return type of a gcc2
13856 builtin and then its argument prototype would still apply. */
13857char dnet_ntoa();
13858
13859int main() {
13860dnet_ntoa()
13861; return 0; }
90dd450c 13862EOF
3bd8fb5f 13863if { (eval echo configure:13864: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21d1c967
GD
13864 rm -rf conftest*
13865 eval "ac_cv_lib_$ac_lib_var=yes"
13866else
13867 echo "configure: failed program was:" >&5
13868 cat conftest.$ac_ext >&5
13869 rm -rf conftest*
13870 eval "ac_cv_lib_$ac_lib_var=no"
0fb0dd83 13871fi
21d1c967
GD
13872rm -f conftest*
13873LIBS="$ac_save_LIBS"
90dd450c 13874
0fb0dd83 13875fi
21d1c967
GD
13876if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13877 echo "$ac_t""yes" 1>&6
13878 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
13879else
13880 echo "$ac_t""no" 1>&6
0fb0dd83 13881fi
0fb0dd83 13882
21d1c967
GD
13883 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
13884 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
3bd8fb5f 13885echo "configure:13886: checking for dnet_ntoa in -ldnet_stub" >&5
21d1c967
GD
13886ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
13887if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13888 echo $ac_n "(cached) $ac_c" 1>&6
13889else
13890 ac_save_LIBS="$LIBS"
13891LIBS="-ldnet_stub $LIBS"
13892cat > conftest.$ac_ext <<EOF
3bd8fb5f 13893#line 13894 "configure"
21d1c967
GD
13894#include "confdefs.h"
13895/* Override any gcc2 internal prototype to avoid an error. */
13896/* We use char because int might match the return type of a gcc2
13897 builtin and then its argument prototype would still apply. */
13898char dnet_ntoa();
90dd450c 13899
21d1c967
GD
13900int main() {
13901dnet_ntoa()
13902; return 0; }
13903EOF
3bd8fb5f 13904if { (eval echo configure:13905: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21d1c967
GD
13905 rm -rf conftest*
13906 eval "ac_cv_lib_$ac_lib_var=yes"
13907else
13908 echo "configure: failed program was:" >&5
13909 cat conftest.$ac_ext >&5
13910 rm -rf conftest*
13911 eval "ac_cv_lib_$ac_lib_var=no"
90dd450c 13912fi
21d1c967
GD
13913rm -f conftest*
13914LIBS="$ac_save_LIBS"
90dd450c 13915
21d1c967
GD
13916fi
13917if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13918 echo "$ac_t""yes" 1>&6
13919 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
13920else
13921 echo "$ac_t""no" 1>&6
90dd450c
VZ
13922fi
13923
21d1c967 13924 fi
90dd450c 13925
21d1c967
GD
13926 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
13927 # to get the SysV transport functions.
13928 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
13929 # needs -lnsl.
13930 # The nsl library prevents programs from opening the X display
13931 # on Irix 5.2, according to dickey@clark.net.
13932 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
3bd8fb5f 13933echo "configure:13934: checking for gethostbyname" >&5
21d1c967
GD
13934if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
13935 echo $ac_n "(cached) $ac_c" 1>&6
13936else
13937 cat > conftest.$ac_ext <<EOF
3bd8fb5f 13938#line 13939 "configure"
21d1c967
GD
13939#include "confdefs.h"
13940/* System header to define __stub macros and hopefully few prototypes,
13941 which can conflict with char gethostbyname(); below. */
13942#include <assert.h>
13943/* Override any gcc2 internal prototype to avoid an error. */
13944/* We use char because int might match the return type of a gcc2
13945 builtin and then its argument prototype would still apply. */
13946char gethostbyname();
90dd450c 13947
21d1c967 13948int main() {
90dd450c 13949
21d1c967
GD
13950/* The GNU C library defines this for functions which it implements
13951 to always fail with ENOSYS. Some functions are actually named
13952 something starting with __ and the normal name is an alias. */
13953#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
13954choke me
13955#else
13956gethostbyname();
13957#endif
90dd450c 13958
21d1c967
GD
13959; return 0; }
13960EOF
3bd8fb5f 13961if { (eval echo configure:13962: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21d1c967
GD
13962 rm -rf conftest*
13963 eval "ac_cv_func_gethostbyname=yes"
13964else
13965 echo "configure: failed program was:" >&5
13966 cat conftest.$ac_ext >&5
13967 rm -rf conftest*
13968 eval "ac_cv_func_gethostbyname=no"
13969fi
13970rm -f conftest*
90dd450c
VZ
13971fi
13972
21d1c967
GD
13973if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
13974 echo "$ac_t""yes" 1>&6
13975 :
13976else
13977 echo "$ac_t""no" 1>&6
13978fi
90dd450c 13979
21d1c967
GD
13980 if test $ac_cv_func_gethostbyname = no; then
13981 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
3bd8fb5f 13982echo "configure:13983: checking for gethostbyname in -lnsl" >&5
21d1c967
GD
13983ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
13984if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13985 echo $ac_n "(cached) $ac_c" 1>&6
13986else
13987 ac_save_LIBS="$LIBS"
13988LIBS="-lnsl $LIBS"
13989cat > conftest.$ac_ext <<EOF
3bd8fb5f 13990#line 13991 "configure"
21d1c967
GD
13991#include "confdefs.h"
13992/* Override any gcc2 internal prototype to avoid an error. */
13993/* We use char because int might match the return type of a gcc2
13994 builtin and then its argument prototype would still apply. */
13995char gethostbyname();
90dd450c 13996
21d1c967
GD
13997int main() {
13998gethostbyname()
13999; return 0; }
14000EOF
3bd8fb5f 14001if { (eval echo configure:14002: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21d1c967
GD
14002 rm -rf conftest*
14003 eval "ac_cv_lib_$ac_lib_var=yes"
14004else
14005 echo "configure: failed program was:" >&5
14006 cat conftest.$ac_ext >&5
14007 rm -rf conftest*
14008 eval "ac_cv_lib_$ac_lib_var=no"
1f8ae82f 14009fi
21d1c967
GD
14010rm -f conftest*
14011LIBS="$ac_save_LIBS"
f0c87536 14012
21d1c967
GD
14013fi
14014if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14015 echo "$ac_t""yes" 1>&6
14016 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
14017else
14018 echo "$ac_t""no" 1>&6
14019fi
90dd450c 14020
90dd450c
VZ
14021 fi
14022
21d1c967
GD
14023 # lieder@skyler.mavd.honeywell.com says without -lsocket,
14024 # socket/setsockopt and other routines are undefined under SCO ODT
14025 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
14026 # on later versions), says simon@lia.di.epfl.ch: it contains
14027 # gethostby* variants that don't use the nameserver (or something).
14028 # -lsocket must be given before -lnsl if both are needed.
14029 # We assume that if connect needs -lnsl, so does gethostbyname.
14030 echo $ac_n "checking for connect""... $ac_c" 1>&6
3bd8fb5f 14031echo "configure:14032: checking for connect" >&5
21d1c967
GD
14032if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
14033 echo $ac_n "(cached) $ac_c" 1>&6
14034else
14035 cat > conftest.$ac_ext <<EOF
3bd8fb5f 14036#line 14037 "configure"
21d1c967
GD
14037#include "confdefs.h"
14038/* System header to define __stub macros and hopefully few prototypes,
14039 which can conflict with char connect(); below. */
14040#include <assert.h>
14041/* Override any gcc2 internal prototype to avoid an error. */
14042/* We use char because int might match the return type of a gcc2
14043 builtin and then its argument prototype would still apply. */
14044char connect();
90dd450c 14045
21d1c967 14046int main() {
90dd450c 14047
21d1c967
GD
14048/* The GNU C library defines this for functions which it implements
14049 to always fail with ENOSYS. Some functions are actually named
14050 something starting with __ and the normal name is an alias. */
14051#if defined (__stub_connect) || defined (__stub___connect)
14052choke me
14053#else
14054connect();
14055#endif
90dd450c 14056
21d1c967
GD
14057; return 0; }
14058EOF
3bd8fb5f 14059if { (eval echo configure:14060: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21d1c967
GD
14060 rm -rf conftest*
14061 eval "ac_cv_func_connect=yes"
14062else
14063 echo "configure: failed program was:" >&5
14064 cat conftest.$ac_ext >&5
14065 rm -rf conftest*
14066 eval "ac_cv_func_connect=no"
14067fi
14068rm -f conftest*
14069fi
90dd450c 14070
21d1c967
GD
14071if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
14072 echo "$ac_t""yes" 1>&6
14073 :
14074else
14075 echo "$ac_t""no" 1>&6
14076fi
1f8ae82f 14077
21d1c967
GD
14078 if test $ac_cv_func_connect = no; then
14079 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
3bd8fb5f 14080echo "configure:14081: checking for connect in -lsocket" >&5
21d1c967
GD
14081ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
14082if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
0fbb762e
MB
14083 echo $ac_n "(cached) $ac_c" 1>&6
14084else
21d1c967
GD
14085 ac_save_LIBS="$LIBS"
14086LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
14087cat > conftest.$ac_ext <<EOF
3bd8fb5f 14088#line 14089 "configure"
0fbb762e 14089#include "confdefs.h"
21d1c967
GD
14090/* Override any gcc2 internal prototype to avoid an error. */
14091/* We use char because int might match the return type of a gcc2
14092 builtin and then its argument prototype would still apply. */
14093char connect();
90dd450c
VZ
14094
14095int main() {
21d1c967 14096connect()
90dd450c 14097; return 0; }
0fbb762e 14098EOF
3bd8fb5f 14099if { (eval echo configure:14100: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
0fbb762e 14100 rm -rf conftest*
21d1c967 14101 eval "ac_cv_lib_$ac_lib_var=yes"
0fbb762e 14102else
0fbb762e
MB
14103 echo "configure: failed program was:" >&5
14104 cat conftest.$ac_ext >&5
14105 rm -rf conftest*
21d1c967 14106 eval "ac_cv_lib_$ac_lib_var=no"
0fbb762e
MB
14107fi
14108rm -f conftest*
21d1c967 14109LIBS="$ac_save_LIBS"
90dd450c 14110
21d1c967
GD
14111fi
14112if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14113 echo "$ac_t""yes" 1>&6
14114 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
14115else
14116 echo "$ac_t""no" 1>&6
14117fi
90dd450c 14118
21d1c967 14119 fi
90dd450c 14120
21d1c967
GD
14121 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
14122 echo $ac_n "checking for remove""... $ac_c" 1>&6
3bd8fb5f 14123echo "configure:14124: checking for remove" >&5
21d1c967
GD
14124if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
14125 echo $ac_n "(cached) $ac_c" 1>&6
14126else
14127 cat > conftest.$ac_ext <<EOF
3bd8fb5f 14128#line 14129 "configure"
21d1c967
GD
14129#include "confdefs.h"
14130/* System header to define __stub macros and hopefully few prototypes,
14131 which can conflict with char remove(); below. */
14132#include <assert.h>
14133/* Override any gcc2 internal prototype to avoid an error. */
14134/* We use char because int might match the return type of a gcc2
14135 builtin and then its argument prototype would still apply. */
14136char remove();
90dd450c 14137
21d1c967 14138int main() {
90dd450c 14139
21d1c967
GD
14140/* The GNU C library defines this for functions which it implements
14141 to always fail with ENOSYS. Some functions are actually named
14142 something starting with __ and the normal name is an alias. */
14143#if defined (__stub_remove) || defined (__stub___remove)
14144choke me
14145#else
14146remove();
14147#endif
90dd450c 14148
21d1c967
GD
14149; return 0; }
14150EOF
3bd8fb5f 14151if { (eval echo configure:14152: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21d1c967
GD
14152 rm -rf conftest*
14153 eval "ac_cv_func_remove=yes"
14154else
14155 echo "configure: failed program was:" >&5
14156 cat conftest.$ac_ext >&5
14157 rm -rf conftest*
14158 eval "ac_cv_func_remove=no"
14159fi
14160rm -f conftest*
14161fi
90dd450c 14162
21d1c967
GD
14163if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
14164 echo "$ac_t""yes" 1>&6
14165 :
14166else
14167 echo "$ac_t""no" 1>&6
14168fi
90dd450c 14169
21d1c967
GD
14170 if test $ac_cv_func_remove = no; then
14171 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
3bd8fb5f 14172echo "configure:14173: checking for remove in -lposix" >&5
21d1c967
GD
14173ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
14174if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14175 echo $ac_n "(cached) $ac_c" 1>&6
14176else
14177 ac_save_LIBS="$LIBS"
14178LIBS="-lposix $LIBS"
14179cat > conftest.$ac_ext <<EOF
3bd8fb5f 14180#line 14181 "configure"
21d1c967
GD
14181#include "confdefs.h"
14182/* Override any gcc2 internal prototype to avoid an error. */
14183/* We use char because int might match the return type of a gcc2
14184 builtin and then its argument prototype would still apply. */
14185char remove();
90dd450c 14186
21d1c967
GD
14187int main() {
14188remove()
14189; return 0; }
14190EOF
3bd8fb5f 14191if { (eval echo configure:14192: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21d1c967
GD
14192 rm -rf conftest*
14193 eval "ac_cv_lib_$ac_lib_var=yes"
14194else
14195 echo "configure: failed program was:" >&5
14196 cat conftest.$ac_ext >&5
14197 rm -rf conftest*
14198 eval "ac_cv_lib_$ac_lib_var=no"
0fbb762e 14199fi
21d1c967
GD
14200rm -f conftest*
14201LIBS="$ac_save_LIBS"
0fbb762e 14202
21d1c967
GD
14203fi
14204if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14205 echo "$ac_t""yes" 1>&6
14206 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
14207else
14208 echo "$ac_t""no" 1>&6
14209fi
19bc6aad 14210
90dd450c 14211 fi
19bc6aad 14212
21d1c967
GD
14213 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
14214 echo $ac_n "checking for shmat""... $ac_c" 1>&6
3bd8fb5f 14215echo "configure:14216: checking for shmat" >&5
21d1c967
GD
14216if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
14217 echo $ac_n "(cached) $ac_c" 1>&6
14218else
14219 cat > conftest.$ac_ext <<EOF
3bd8fb5f 14220#line 14221 "configure"
21d1c967
GD
14221#include "confdefs.h"
14222/* System header to define __stub macros and hopefully few prototypes,
14223 which can conflict with char shmat(); below. */
14224#include <assert.h>
14225/* Override any gcc2 internal prototype to avoid an error. */
14226/* We use char because int might match the return type of a gcc2
14227 builtin and then its argument prototype would still apply. */
14228char shmat();
19bc6aad 14229
21d1c967 14230int main() {
90dd450c 14231
21d1c967
GD
14232/* The GNU C library defines this for functions which it implements
14233 to always fail with ENOSYS. Some functions are actually named
14234 something starting with __ and the normal name is an alias. */
14235#if defined (__stub_shmat) || defined (__stub___shmat)
14236choke me
14237#else
14238shmat();
14239#endif
90dd450c 14240
21d1c967
GD
14241; return 0; }
14242EOF
3bd8fb5f 14243if { (eval echo configure:14244: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21d1c967
GD
14244 rm -rf conftest*
14245 eval "ac_cv_func_shmat=yes"
90dd450c 14246else
21d1c967
GD
14247 echo "configure: failed program was:" >&5
14248 cat conftest.$ac_ext >&5
14249 rm -rf conftest*
14250 eval "ac_cv_func_shmat=no"
19bc6aad 14251fi
21d1c967 14252rm -f conftest*
19bc6aad 14253fi
21d1c967
GD
14254
14255if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
14256 echo "$ac_t""yes" 1>&6
14257 :
19bc6aad
VZ
14258else
14259 echo "$ac_t""no" 1>&6
14260fi
19bc6aad 14261
21d1c967
GD
14262 if test $ac_cv_func_shmat = no; then
14263 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
3bd8fb5f 14264echo "configure:14265: checking for shmat in -lipc" >&5
21d1c967
GD
14265ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
14266if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9f8148b1
GD
14267 echo $ac_n "(cached) $ac_c" 1>&6
14268else
21d1c967
GD
14269 ac_save_LIBS="$LIBS"
14270LIBS="-lipc $LIBS"
14271cat > conftest.$ac_ext <<EOF
3bd8fb5f 14272#line 14273 "configure"
21d1c967
GD
14273#include "confdefs.h"
14274/* Override any gcc2 internal prototype to avoid an error. */
14275/* We use char because int might match the return type of a gcc2
14276 builtin and then its argument prototype would still apply. */
14277char shmat();
14278
14279int main() {
14280shmat()
14281; return 0; }
14282EOF
3bd8fb5f 14283if { (eval echo configure:14284: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21d1c967
GD
14284 rm -rf conftest*
14285 eval "ac_cv_lib_$ac_lib_var=yes"
9f8148b1 14286else
21d1c967
GD
14287 echo "configure: failed program was:" >&5
14288 cat conftest.$ac_ext >&5
14289 rm -rf conftest*
14290 eval "ac_cv_lib_$ac_lib_var=no"
9f8148b1 14291fi
21d1c967
GD
14292rm -f conftest*
14293LIBS="$ac_save_LIBS"
14294
9f8148b1 14295fi
21d1c967
GD
14296if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14297 echo "$ac_t""yes" 1>&6
14298 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
9f8148b1
GD
14299else
14300 echo "$ac_t""no" 1>&6
14301fi
90dd450c 14302
90dd450c 14303 fi
21d1c967 14304 fi
10f2d63a 14305
21d1c967
GD
14306 # Check for libraries that X11R6 Xt/Xaw programs need.
14307 ac_save_LDFLAGS="$LDFLAGS"
14308 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
14309 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
14310 # check for ICE first), but we must link in the order -lSM -lICE or
14311 # we get undefined symbols. So assume we have SM if we have ICE.
14312 # These have to be linked with before -lX11, unlike the other
14313 # libraries we check for below, so use a different variable.
14314 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
14315 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
3bd8fb5f 14316echo "configure:14317: checking for IceConnectionNumber in -lICE" >&5
21d1c967
GD
14317ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
14318if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
29fd3c0c
VS
14319 echo $ac_n "(cached) $ac_c" 1>&6
14320else
21d1c967
GD
14321 ac_save_LIBS="$LIBS"
14322LIBS="-lICE $X_EXTRA_LIBS $LIBS"
14323cat > conftest.$ac_ext <<EOF
3bd8fb5f 14324#line 14325 "configure"
29fd3c0c 14325#include "confdefs.h"
21d1c967
GD
14326/* Override any gcc2 internal prototype to avoid an error. */
14327/* We use char because int might match the return type of a gcc2
14328 builtin and then its argument prototype would still apply. */
14329char IceConnectionNumber();
14330
14331int main() {
14332IceConnectionNumber()
14333; return 0; }
29fd3c0c 14334EOF
3bd8fb5f 14335if { (eval echo configure:14336: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
29fd3c0c 14336 rm -rf conftest*
21d1c967 14337 eval "ac_cv_lib_$ac_lib_var=yes"
29fd3c0c 14338else
29fd3c0c
VS
14339 echo "configure: failed program was:" >&5
14340 cat conftest.$ac_ext >&5
14341 rm -rf conftest*
21d1c967 14342 eval "ac_cv_lib_$ac_lib_var=no"
29fd3c0c
VS
14343fi
14344rm -f conftest*
21d1c967
GD
14345LIBS="$ac_save_LIBS"
14346
29fd3c0c 14347fi
21d1c967 14348if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
29fd3c0c 14349 echo "$ac_t""yes" 1>&6
21d1c967 14350 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
29fd3c0c
VS
14351else
14352 echo "$ac_t""no" 1>&6
14353fi
21d1c967
GD
14354
14355 LDFLAGS="$ac_save_LDFLAGS"
29fd3c0c 14356
10f2d63a
VZ
14357fi
14358
21d1c967
GD
14359
14360 if test "$no_x" = "yes"; then
14361 { echo "configure: error: X11 not found" 1>&2; exit 1; }
14362 fi
14363
14364 GUI_TK_LIBRARY="$X_LIBS"
14365 TOOLKIT_INCLUDE="$X_CFLAGS"
14366 AFMINSTALL=afminstall
14367 COMPILED_X_PROGRAM=0
14368
14369 echo $ac_n "checking for Motif/Lesstif headers""... $ac_c" 1>&6
3bd8fb5f 14370echo "configure:14371: checking for Motif/Lesstif headers" >&5
21d1c967
GD
14371
14372ac_find_includes=
14373for ac_dir in $SEARCH_INCLUDE;
14374 do
14375 if test -f "$ac_dir/Xm/Xm.h"; then
14376 ac_find_includes=$ac_dir
14377 break
14378 fi
14379 done
14380
14381 if test "$ac_find_includes" != "" ; then
14382 echo "$ac_t""found $ac_find_includes" 1>&6
14383 else
14384 cat > conftest.$ac_ext <<EOF
3bd8fb5f 14385#line 14386 "configure"
10f2d63a 14386#include "confdefs.h"
21d1c967
GD
14387
14388 #include <Xm/Xm.h>
14389
14390int main() {
14391
14392 int version;
14393 version = xmUseVersion;
14394
14395; return 0; }
698dcdb6 14396EOF
3bd8fb5f 14397if { (eval echo configure:14398: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6 14398 rm -rf conftest*
21d1c967
GD
14399
14400 echo "$ac_t""found in default search path" 1>&6
14401 COMPILED_X_PROGRAM=1
14402
10f2d63a 14403else
90dd450c
VZ
14404 echo "configure: failed program was:" >&5
14405 cat conftest.$ac_ext >&5
698dcdb6 14406 rm -rf conftest*
21d1c967
GD
14407
14408 echo "$ac_t""no" 1>&6
14409 { echo "configure: error: please set CFLAGS to contain the location of Xm/Xm.h" 1>&2; exit 1; }
14410
14411
10f2d63a
VZ
14412fi
14413rm -f conftest*
21d1c967 14414 fi
10f2d63a 14415
21d1c967
GD
14416 if test "$COMPILED_X_PROGRAM" = 0; then
14417 echo $ac_n "checking for Motif/Lesstif library""... $ac_c" 1>&6
3bd8fb5f 14418echo "configure:14419: checking for Motif/Lesstif library" >&5
21d1c967
GD
14419
14420ac_find_libraries=
14421for ac_dir in $SEARCH_LIB;
14422 do
14423 for ac_extension in a so sl dylib; do
14424 if test -f "$ac_dir/libXm.$ac_extension"; then
14425 ac_find_libraries=$ac_dir
14426 break 2
14427 fi
14428 done
14429 done
14430
14431 if test "$ac_find_libraries" != "" ; then
14432
14433 ac_path_to_include=$ac_find_includes
14434 echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null
14435 result=$?
14436 if test $result = 0; then
14437 ac_path_to_include=""
14438 else
14439 ac_path_to_include=" -I$ac_find_includes"
14440 fi
14441
14442
14443 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
14444 result=$?
14445 if test $result = 0; then
14446 ac_path_to_link=""
14447 else
14448 ac_path_to_link=" -L$ac_find_libraries"
14449 fi
14450
14451
14452 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
14453 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE$ac_path_to_include"
14454 echo "$ac_t""found at $ac_find_libraries" 1>&6
14455 else
14456 cat > conftest.$ac_ext <<EOF
3bd8fb5f 14457#line 14458 "configure"
d836ee96 14458#include "confdefs.h"
21d1c967
GD
14459
14460 #include <Xm/Xm.h>
14461
14462int main() {
14463
14464 int version;
14465 version = xmUseVersion;
14466
14467; return 0; }
d836ee96 14468EOF
3bd8fb5f 14469if { (eval echo configure:14470: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d836ee96 14470 rm -rf conftest*
21d1c967
GD
14471
14472 echo "$ac_t""found in default search path" 1>&6
14473 COMPILED_X_PROGRAM=1
14474
d836ee96
VZ
14475else
14476 echo "configure: failed program was:" >&5
14477 cat conftest.$ac_ext >&5
14478 rm -rf conftest*
21d1c967
GD
14479
14480 echo "$ac_t""no" 1>&6
14481 { echo "configure: error: please set LDFLAGS to contain the location of libXm" 1>&2; exit 1; }
14482
14483
d836ee96
VZ
14484fi
14485rm -f conftest*
21d1c967
GD
14486 fi
14487 fi
14488
14489 xpm_link=
14490 echo $ac_n "checking for Xpm library""... $ac_c" 1>&6
3bd8fb5f 14491echo "configure:14492: checking for Xpm library" >&5
21d1c967
GD
14492
14493ac_find_libraries=
14494for ac_dir in $SEARCH_LIB;
14495 do
14496 for ac_extension in a so sl dylib; do
14497 if test -f "$ac_dir/libXpm.$ac_extension"; then
14498 ac_find_libraries=$ac_dir
14499 break 2
14500 fi
14501 done
14502 done
14503
14504 if test "$ac_find_libraries" != "" ; then
14505
14506 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
14507 result=$?
14508 if test $result = 0; then
14509 ac_path_to_link=""
14510 else
14511 ac_path_to_link=" -L$ac_find_libraries"
14512 fi
14513
14514 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
14515 xpm_link=" -lXpm"
14516 cat >> confdefs.h <<\EOF
14517#define wxHAVE_LIB_XPM 1
d836ee96 14518EOF
90dd450c 14519
21d1c967
GD
14520 echo "$ac_t""found at $ac_find_libraries" 1>&6
14521 else
14522 cat > conftest.$ac_ext <<EOF
3bd8fb5f 14523#line 14524 "configure"
d836ee96 14524#include "confdefs.h"
21d1c967
GD
14525
14526 #include <X11/xpm.h>
14527
14528int main() {
14529
14530 int version;
14531 version = XpmLibraryVersion();
14532
14533; return 0; }
d836ee96 14534EOF
3bd8fb5f 14535if { (eval echo configure:14536: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d836ee96 14536 rm -rf conftest*
21d1c967
GD
14537
14538 xpm_link=" -lXpm"
14539 cat >> confdefs.h <<\EOF
14540#define wxHAVE_LIB_XPM 1
14541EOF
14542
14543 echo "$ac_t""found in default search path" 1>&6
14544 COMPILED_X_PROGRAM=0
14545
d836ee96
VZ
14546else
14547 echo "configure: failed program was:" >&5
14548 cat conftest.$ac_ext >&5
14549 rm -rf conftest*
21d1c967
GD
14550
14551 echo "$ac_t""no" 1>&6
14552 echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2
14553
14554
d836ee96
VZ
14555fi
14556rm -f conftest*
21d1c967
GD
14557 fi
14558
17234b26
MB
14559 xt_needs_sm_ice=
14560 case "${host}" in
14561 *-*-cygwin* )
14562 xt_needs_sm_ice=" -lSM -lICE"
14563 ;;
14564 esac
14565
14566 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXm$xpm_link -lXmu -lXext -lXt${xt_needs_sm_ice} -lX11"
21d1c967
GD
14567 TOOLKIT_VPATH="\${top_srcdir}/src/motif${PATH_IFS}\${top_srcdir}/src/motif/xmcombo"
14568 TOOLKIT=MOTIF
14569 GUIDIST=MOTIF_DIST
14570 fi
14571
14572 if test "$wxUSE_MAC" = 1; then
14573 if test "$wxUSE_PRECOMP" = "yes"; then
14574 CPPFLAGS="$CPPFLAGS -cpp-precomp"
14575 else
14576 CPPFLAGS="$CPPFLAGS -no-cpp-precomp"
14577 fi
14578 CPPFLAGS="$CPPFLAGS -I/Developer/Headers/FlatCarbon -I\${top_srcdir}/src/mac/morefile"
14579 CFLAGS="$CFLAGS -fpascal-strings"
14580 CXXFLAGS="$CXXFLAGS -fpascal-strings"
14581
14582 TOOLKIT_VPATH="\${top_srcdir}/src/mac${PATH_IFS}\${top_srcdir}/src/mac/morefile"
14583 TOOLKIT=MAC
14584 GUIDIST=MACX_DIST
14585 fi
14586
14587 if test "$wxUSE_PM" = 1; then
14588 TOOLKIT=PM
14589 GUIDIST=GTK_DIST
14590 fi
14591
14592 if test "$TOOLKIT" = "PM" ; then
14593 TOOLKIT_DIR="os2"
14594 else
14595 TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"`
14596 fi
14597
14598 PORT_FILES="\${top_srcdir}/src/\$(TOOLKITDIR)/files.lst"
14599
14600 if test "$wxUSE_UNIVERSAL" = "yes"; then
14601 ALL_OBJECTS="\$(GUI_LOWLEVEL_OBJS) \${UNIVOBJS}"
14602
14603 ALL_SOURCES="\$(ALL_SOURCES) \${UNIV_SOURCES}"
14604 ALL_HEADERS="\$(ALL_HEADERS) \${UNIV_HEADERS}"
14605
14606 PORT_FILES="${PORT_FILES} \${top_srcdir}/src/univ/files.lst"
14607 if test "$wxUSE_X11" = 1; then
14608 TOOLKIT_VPATH="\${top_srcdir}/src/${TOOLKIT_DIR}${PATH_IFS}\${top_srcdir}/src/univ${PATH_IFS}\${top_srcdir}/src/univ/themes"
14609 else
14610 TOOLKIT_VPATH="\${top_srcdir}/src/univ${PATH_IFS}\${top_srcdir}/src/univ/themes${PATH_IFS}\${top_srcdir}/src/${TOOLKIT_DIR}"
14611 fi
14612 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__"
14613 WIDGET_SET=univ
14614 else
14615 ALL_OBJECTS="\$(GUIOBJS)"
14616 ALL_SOURCES="\$(ALL_SOURCES)"
14617 ALL_HEADERS="\$(ALL_HEADERS)"
14618 fi
14619
14620 ALL_OBJECTS="${ALL_OBJECTS} \$(COMMONOBJS) \$(GENERICOBJS)"
14621
14622 if test "$TOOLKIT" != "MSW" -a "$USE_DOS" != 1; then
14623 ALL_OBJECTS="${ALL_OBJECTS} \$(UNIXOBJS)"
14624 fi
14625
14626 if test "$wxUSE_HTML" = "yes"; then
14627 ALL_OBJECTS="${ALL_OBJECTS} \$(HTMLOBJS)"
14628 fi
14629
14630 if test "$wxUSE_LIBJPEG" = "builtin" ; then
14631 ALL_OBJECTS="${ALL_OBJECTS} \$(JPEGOBJS)"
14632 fi
14633 if test "$wxUSE_LIBTIFF" = "builtin" ; then
14634 ALL_OBJECTS="${ALL_OBJECTS} \$(TIFFOBJS)"
14635 fi
14636 if test "$wxUSE_LIBPNG" = "builtin" ; then
14637 ALL_OBJECTS="${ALL_OBJECTS} \$(PNGOBJS)"
14638 fi
14639
14640 GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST"
14641 DISTDIR="wx\$(TOOLKIT)"
90dd450c 14642else
21d1c967
GD
14643 USE_GUI=0
14644
14645 TOOLKIT_DIR="base"
14646
14647 if test "$USE_WIN32" = 1 ; then
14648 ALL_OBJECTS="\${BASE_OBJS} \${BASE_MSW_OBJS}"
14649 TOOLKIT_VPATH="\${top_srcdir}/src/msw"
14650
14651 TOOLKIT="MSW"
14652 else
14653 ALL_OBJECTS="\${BASE_OBJS} \${BASE_UNIX_OBJS}"
14654 TOOLKIT_VPATH="\${top_srcdir}/src/unix"
14655 fi
14656
14657 ALL_SOURCES="\$(ALL_SOURCES)"
14658 ALL_HEADERS="\$(ALL_HEADERS)"
14659
14660 PORT_FILES="\${top_srcdir}/src/files.lst"
14661
14662 GUIDIST="BASE_DIST"
14663 DISTDIR="wxBase"
d836ee96
VZ
14664fi
14665
21d1c967
GD
14666
14667if test "$TOOLKIT" != "MSW" -a "$wxUSE_ODBC" = "yes" ; then
14668 ALL_OBJECTS="${ALL_OBJECTS} \$(IODBCOBJS)"
6232543b 14669fi
21d1c967
GD
14670
14671if test "$wxUSE_REGEX" = "builtin" ; then
14672 ALL_OBJECTS="${ALL_OBJECTS} \$(REGEXOBJS)"
1e487827 14673fi
21d1c967
GD
14674if test "$wxUSE_ZLIB" = "builtin" ; then
14675 ALL_OBJECTS="${ALL_OBJECTS} \$(ZLIBOBJS)"
bd3277fe
VZ
14676fi
14677
698dcdb6 14678
21d1c967
GD
14679if test "$wxUSE_OPENGL" = "yes"; then
14680 if test "$wxUSE_MAC" = 1; then
14681 OPENGL_LIBS="-framework OpenGL -framework AGL"
14682 elif test "$wxUSE_MSW" = 1; then
14683 OPENGL_LIBS="-lopengl32 -lglu32"
14684 else
14685 ac_safe=`echo "GL/gl.h" | sed 'y%./+-%__p_%'`
14686echo $ac_n "checking for GL/gl.h""... $ac_c" 1>&6
3bd8fb5f 14687echo "configure:14688: checking for GL/gl.h" >&5
90dd450c 14688if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
698dcdb6 14689 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 14690else
698dcdb6 14691 cat > conftest.$ac_ext <<EOF
3bd8fb5f 14692#line 14693 "configure"
10f2d63a 14693#include "confdefs.h"
21d1c967 14694#include <GL/gl.h>
698dcdb6 14695EOF
90dd450c 14696ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3bd8fb5f 14697{ (eval echo configure:14698: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
90dd450c
VZ
14698ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
14699if test -z "$ac_err"; then
4f14bcd8 14700 rm -rf conftest*
90dd450c 14701 eval "ac_cv_header_$ac_safe=yes"
698dcdb6 14702else
90dd450c 14703 echo "$ac_err" >&5
698dcdb6
VZ
14704 echo "configure: failed program was:" >&5
14705 cat conftest.$ac_ext >&5
4f14bcd8 14706 rm -rf conftest*
90dd450c 14707 eval "ac_cv_header_$ac_safe=no"
703e0a69 14708fi
4f14bcd8 14709rm -f conftest*
698dcdb6 14710fi
90dd450c
VZ
14711if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
14712 echo "$ac_t""yes" 1>&6
21d1c967
GD
14713
14714 echo $ac_n "checking for -lGL""... $ac_c" 1>&6
3bd8fb5f 14715echo "configure:14716: checking for -lGL" >&5
21d1c967
GD
14716
14717ac_find_libraries=
14718for ac_dir in $SEARCH_LIB;
14719 do
14720 for ac_extension in a so sl dylib; do
14721 if test -f "$ac_dir/libGL.$ac_extension"; then
14722 ac_find_libraries=$ac_dir
14723 break 2
14724 fi
14725 done
14726 done
14727
14728 if test "$ac_find_libraries" != "" ; then
14729
14730 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
14731 result=$?
14732 if test $result = 0; then
14733 ac_path_to_link=""
14734 else
14735 ac_path_to_link=" -L$ac_find_libraries"
14736 fi
14737
14738 if test "$ac_path_to_link" = " -L/usr/lib" ; then
14739 LDFLAGS_GL="$LDFLAGS"
14740 else
14741 LDFLAGS_GL="$LDFLAGS$ac_path_to_link"
14742 fi
14743 OPENGL_LIBS="-lGL -lGLU"
14744 echo "$ac_t""yes" 1>&6
14745 else
14746 echo "$ac_t""no" 1>&6
14747 echo $ac_n "checking for -lMesaGL""... $ac_c" 1>&6
3bd8fb5f 14748echo "configure:14749: checking for -lMesaGL" >&5
21d1c967
GD
14749
14750ac_find_libraries=
14751for ac_dir in $SEARCH_LIB;
14752 do
14753 for ac_extension in a so sl dylib; do
14754 if test -f "$ac_dir/libMesaGL.$ac_extension"; then
14755 ac_find_libraries=$ac_dir
14756 break 2
14757 fi
14758 done
14759 done
14760
14761 if test "$ac_find_libraries" != "" ; then
14762
14763 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
14764 result=$?
14765 if test $result = 0; then
14766 ac_path_to_link=""
14767 else
14768 ac_path_to_link=" -L$ac_find_libraries"
14769 fi
14770
14771 LDFLAGS_GL="$LDFLAGS$ac_path_to_link"
14772 OPENGL_LIBS="-lMesaGL -lMesaGLU"
14773 echo "$ac_t""yes" 1>&6
14774 else
14775 echo "$ac_t""no" 1>&6
14776 fi
14777 fi
14778
90dd450c
VZ
14779else
14780 echo "$ac_t""no" 1>&6
14781fi
698dcdb6
VZ
14782
14783
21d1c967
GD
14784 if test "x$OPENGL_LIBS" = "x"; then
14785 { echo "configure: error: OpenGL libraries not available" 1>&2; exit 1; }
14786 fi
14787 fi
90dd450c 14788
21d1c967
GD
14789 if test "$wxUSE_OPENGL" = "yes"; then
14790 cat >> confdefs.h <<\EOF
14791#define wxUSE_OPENGL 1
698dcdb6 14792EOF
21d1c967
GD
14793
14794 cat >> confdefs.h <<\EOF
14795#define wxUSE_GLCANVAS 1
14796EOF
14797
14798 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl"
14799 fi
10f2d63a 14800fi
21d1c967
GD
14801
14802if test -z "$TOOLKIT_VPATH" ; then
14803 TOOLKIT_VPATH="\${top_srcdir}/src/${TOOLKIT_DIR}"
10f2d63a 14804fi
21d1c967
GD
14805
14806if test -n "$TOOLKIT" ; then
14807 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WX${TOOLKIT}__"
14808fi
14809
14810lib_unicode_suffix=
14811if test "$wxUSE_UNICODE" = "yes"; then
14812 lib_unicode_suffix=u
90dd450c 14813fi
698dcdb6 14814
21d1c967
GD
14815lib_debug_suffix=
14816if test "$wxUSE_DEBUG_FLAG" = "yes"; then
14817 lib_debug_suffix=d
14818fi
698dcdb6 14819
21d1c967
GD
14820TOOLCHAIN_NAME="${TOOLKIT_DIR}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}-${WX_RELEASE}"
14821TOOLCHAIN_NAME_GL="${TOOLKIT_DIR}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}_gl-${WX_RELEASE}"
14822
14823if test "$cross_compiling" = "yes"; then
14824 TOOLCHAIN_NAME="${TOOLCHAIN_NAME}-${host_alias}"
14825 TOOLCHAIN_NAME_GL="${TOOLCHAIN_NAME_GL}-${host_alias}"
14826fi
14827
14828WX_LIBRARY="wx_${TOOLCHAIN_NAME}"
14829WX_LIBRARY_GL="wx_${TOOLCHAIN_NAME_GL}"
14830
14831WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
14832WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
14833
14834WX_LIBRARY_LINK1="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}"
14835WX_LIBRARY_LINK2="lib${WX_LIBRARY}.${SO_SUFFIX}"
14836WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}"
14837WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}"
14838
14839case "${host}" in
14840 *-*-cygwin* | *-*-mingw32* )
14841
14842
14843
17234b26 14844 if test "$cross_compiling" != "yes" -a "$TOOLKIT_DIR" = "msw"; then
21d1c967
GD
14845 WX_LIBRARY="wxmsw${WX_MSW_VERSION}${lib_unicode_suffix}${lib_debug_suffix}"
14846 WX_LIBRARY_GL="wxmsw_gl${WX_MSW_VERSION}${lib_unicode_suffix}${lib_debug_suffix}"
14847 WX_LIBRARY_NAME_SHARED="${WX_LIBRARY}.${SO_SUFFIX}"
14848 WX_LIBRARY_NAME_SHARED_GL="${WX_LIBRARY_GL}.${SO_SUFFIX}"
14849 else
14850 WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${SO_SUFFIX}"
14851 WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}"
14852 fi
14853 ;;
14854
14855 *-*-darwin* )
14856 if test "$wxUSE_MAC" = 1; then
3bd8fb5f 14857 WX_RESOURCES_MACOSX_ASCII="lib${WX_LIBRARY}.r"
21d1c967
GD
14858 WX_RESOURCES_MACOSX_DATA="lib${WX_LIBRARY}.rsrc"
14859 fi
14860 ;;
14861esac
14862
14863WX_LIBRARY_NAME_STATIC="lib${WX_LIBRARY}.a"
14864WX_LIBRARY_NAME_STATIC_GL="lib${WX_LIBRARY_GL}.a"
14865
14866WXCONFIG_LIBS="-l${WX_LIBRARY}"
14867WXCONFIG_LIBS_STATIC="lib${WX_LIBRARY}.a"
14868
14869if test "$wxUSE_OPENGL" = "yes"; then
14870 WXCONFIG_LIBS_GL="-l${WX_LIBRARY_GL} ${OPENGL_LIBS}"
14871 WXCONFIG_LIBS_STATIC_GL="lib${WX_LIBRARY_GL}.a ${OPENGL_LIBS}"
14872fi
14873
14874
14875
14876if test "$wxUSE_SHARED" = "yes"; then
14877 case "${host}" in
14878 *-pc-os2_emx | *-pc-os2-emx | \
14879 *-pc-msdosdjgpp )
14880 wxUSE_SHARED=no
14881 echo "configure: warning: Host system doesn't support shared libraries, disabling" 1>&2
14882 ;;
14883 esac
14884fi
14885
14886if test "$wxUSE_SHARED" = "yes"; then
14887
14888 if test "$wxUSE_OPENGL" = "yes"; then
14889 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL"
14890 WX_ALL="\$(build_libdir)/${WX_LIBRARY_LINK1} \$(build_libdir)/${WX_LIBRARY_LINK1_GL}"
14891 else
14892 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
14893 WX_ALL="\$(build_libdir)/${WX_LIBRARY_LINK1}"
14894 fi
14895
14896 if test "$GCC" = "yes"; then
14897 PIC_FLAG="-fPIC"
14898 fi
14899
14900 SHARED_LD="${CXX} -shared -o"
14901
14902 case "${host}" in
14903 *-hp-hpux* )
14904 if test "$GCC" == "yes"; then
14905 SHARED_LD="${SHARED_LD} ${PIC_FLAG}"
14906 else
14907 LDFLAGS="$LDFLAGS -L/usr/lib"
14908
14909 SHARED_LD="${CXX} -b -o"
14910 PIC_FLAG="+Z"
14911 fi
14912
14913 if test "$wxUSE_OPENGL" = "yes"; then
14914 WX_ALL_INSTALLED="preinstall_gl"
14915 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED} \$(build_libdir)/${WX_LIBRARY_NAME_SHARED_GL}"
14916 else
14917 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED}"
14918 fi
14919 ;;
14920
14921 *-*-linux* )
14922 if test "$GCC" != "yes"; then
14923 echo $ac_n "checking for Intel compiler""... $ac_c" 1>&6
3bd8fb5f 14924echo "configure:14925: checking for Intel compiler" >&5
21d1c967 14925if eval "test \"`echo '$''{'wx_cv_prog_icc'+set}'`\" = set"; then
698dcdb6 14926 echo $ac_n "(cached) $ac_c" 1>&6
698dcdb6 14927else
21d1c967
GD
14928
14929 cat > conftest.$ac_ext <<EOF
3bd8fb5f 14930#line 14931 "configure"
698dcdb6 14931#include "confdefs.h"
90dd450c
VZ
14932
14933int main() {
14934
21d1c967
GD
14935 #ifndef __INTEL_COMPILER
14936 #error Not icc
14937 #endif
14938
90dd450c 14939; return 0; }
698dcdb6 14940EOF
3bd8fb5f 14941if { (eval echo configure:14942: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
90dd450c 14942 rm -rf conftest*
21d1c967 14943 wx_cv_prog_icc=yes
6232543b 14944else
698dcdb6
VZ
14945 echo "configure: failed program was:" >&5
14946 cat conftest.$ac_ext >&5
90dd450c 14947 rm -rf conftest*
21d1c967
GD
14948 wx_cv_prog_icc=no
14949
6232543b 14950fi
90dd450c 14951rm -f conftest*
21d1c967 14952
698dcdb6
VZ
14953fi
14954
21d1c967
GD
14955echo "$ac_t""$wx_cv_prog_icc" 1>&6
14956 if test "$wx_cv_prog_icc" = "yes"; then
14957 PIC_FLAG="-KPIC"
14958 fi
14959 fi
14960
14961 if test "$wxUSE_SONAME" = "yes" ; then
14962 SONAME_FLAGS="-Wl,-soname,${WX_LIBRARY_LINK1}"
14963 SONAME_FLAGS_GL="-Wl,-soname,${WX_LIBRARY_LINK1_GL}"
14964 WX_TARGET_LIBRARY_SONAME="-Wl,-soname,\$(TARGETLIB_LINK1)"
14965 fi
14966 ;;
14967
14968 *-*-solaris2* )
14969 if test "$GCC" = yes ; then
14970 CPPFLAGS="$CPPFLAGS -isystem /usr/openwin/include"
14971 else
14972 SHARED_LD="${CXX} -G -o"
14973 PIC_FLAG="-KPIC"
14974 SONAME_FLAGS="-h ${WX_LIBRARY_NAME_SHARED}"
14975 SONAME_FLAGS_GL="-h ${WX_LIBRARY_NAME_SHARED_GL}"
14976 fi
14977 ;;
14978
14979 *-*-darwin* )
14980 CFLAGS="$CFLAGS -fno-common -DWXMAKINGDLL"
14981 CXXFLAGS="$CXXFLAGS -fno-common -DWXMAKINGDLL"
14982 SHARED_LD="\${top_srcdir}/distrib/mac/shared-ld-sh -undefined suppress -flat_namespace -o"
14983 PIC_FLAG="-dynamic -fPIC"
14984 SONAME_FLAGS="-compatibility_version ${WX_RELEASE} -current_version ${WX_VERSION}"
14985 SONAME_FLAGS_GL=${SONAME_FLAGS}
14986 ;;
14987
14988 *-*-aix* )
321d2b14
VZ
14989 # Extract the first word of "makeC++SharedLib", so it can be a program name with args.
14990set dummy makeC++SharedLib; ac_word=$2
14991echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3bd8fb5f 14992echo "configure:14993: checking for $ac_word" >&5
321d2b14
VZ
14993if eval "test \"`echo '$''{'ac_cv_prog_AIX_CXX_LD'+set}'`\" = set"; then
14994 echo $ac_n "(cached) $ac_c" 1>&6
14995else
14996 if test -n "$AIX_CXX_LD"; then
14997 ac_cv_prog_AIX_CXX_LD="$AIX_CXX_LD" # Let the user override the test.
14998else
14999 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
15000 ac_dummy="$PATH"
15001 for ac_dir in $ac_dummy; do
15002 test -z "$ac_dir" && ac_dir=.
15003 if test -f $ac_dir/$ac_word; then
15004 ac_cv_prog_AIX_CXX_LD="makeC++SharedLib"
15005 break
15006 fi
15007 done
15008 IFS="$ac_save_ifs"
15009 test -z "$ac_cv_prog_AIX_CXX_LD" && ac_cv_prog_AIX_CXX_LD="/usr/lpp/xlC/bin/makeC++SharedLib"
15010fi
15011fi
15012AIX_CXX_LD="$ac_cv_prog_AIX_CXX_LD"
15013if test -n "$AIX_CXX_LD"; then
15014 echo "$ac_t""$AIX_CXX_LD" 1>&6
15015else
15016 echo "$ac_t""no" 1>&6
15017fi
15018
15019
15020 SHARED_LD="$(AIX_CXX_LD) -p 0 -o"
21d1c967
GD
15021 ;;
15022
15023 *-*-cygwin* | *-*-mingw32* )
15024
15025 WX_LIBRARY_IMPORTLIB="${WX_LIBRARY_NAME_SHARED}.a"
15026
15027 SHARED_LD="${CXX} -shared -Wl,--out-implib,lib/${WX_LIBRARY_IMPORTLIB} -o"
15028 TOOLCHAIN_DLL_DEFS="${TOOLCHAIN_DLL_DEFS} -DWXUSINGDLL=1"
15029
15030 PIC_FLAG="-UWXUSINGDLL -DWXMAKINGDLL=1 -D_DLL=1 -D_WINDLL=1"
15031
15032 if test "$wxUSE_OPENGL" = "yes"; then
15033 WX_ALL_INSTALLED="preinstall_gl"
15034 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED} \$(build_libdir)/${WX_LIBRARY_NAME_SHARED_GL}"
15035 else
15036 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED}"
15037 fi
15038 ;;
15039
15040 *-*-beos* )
15041 SHARED_LD="${LD} -shared -o"
15042 ;;
15043
15044 *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | \
15045 *-*-sunos4* | \
15046 *-*-irix5* | *-*-irix6* | \
15047 *-*-osf* | \
15048 *-*-dgux5* | \
15049 *-*-sysv5* )
15050 ;;
15051
15052 *)
15053 { echo "configure: error: unknown system type $host." 1>&2; exit 1; }
15054 esac
15055
15056 if test "x$WX_TARGET_LIBRARY" = "x"; then
15057 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_SHARED}"
15058 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_SHARED_GL}"
15059 fi
15060
15061 WX_TARGET_LIBRARY_TYPE="so"
15062 INSTALL_LIBRARY='$(INSTALL_PROGRAM)'
90dd450c 15063fi
10f2d63a 15064
21d1c967
GD
15065if test "$wxUSE_SHARED" = "no"; then
15066
15067 if test "$wxUSE_GUI" = "no" -o "$USE_WIN32" = 1 ; then
15068 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall"
15069 fi
15070
15071 if test "$wxUSE_MAC" = 1; then
15072 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall"
15073 fi
15074
15075 if test "$wxUSE_OPENGL" = "yes"; then
15076 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall_gl"
15077 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC} \$(build_libdir)/${WX_LIBRARY_NAME_STATIC_GL}"
15078 else
15079 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC}"
15080 fi
15081
15082 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}"
15083 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_STATIC_GL}"
15084
15085 WX_TARGET_LIBRARY_TYPE="a"
15086 INSTALL_LIBRARY='$(INSTALL_DATA)'
90dd450c 15087fi
1e487827 15088
21d1c967
GD
15089if test "$wxUSE_MAC" = 1; then
15090 LIBWXMACRES="\$(top_builddir)/lib/${WX_RESOURCES_MACOSX_ASCII}"
15091 WX_ALL="${WX_ALL} ${LIBWXMACRES}"
15092 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall_res"
15093 # Extract the first word of "Rez", so it can be a program name with args.
15094set dummy Rez; ac_word=$2
15095echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3bd8fb5f 15096echo "configure:15097: checking for $ac_word" >&5
21d1c967 15097if eval "test \"`echo '$''{'ac_cv_prog_RESCOMP'+set}'`\" = set"; then
698dcdb6 15098 echo $ac_n "(cached) $ac_c" 1>&6
b93d0d08 15099else
21d1c967
GD
15100 if test -n "$RESCOMP"; then
15101 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
b93d0d08 15102else
21d1c967
GD
15103 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
15104 ac_dummy="$PATH"
15105 for ac_dir in $ac_dummy; do
15106 test -z "$ac_dir" && ac_dir=.
15107 if test -f $ac_dir/$ac_word; then
15108 ac_cv_prog_RESCOMP="Rez"
15109 break
15110 fi
15111 done
15112 IFS="$ac_save_ifs"
15113 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez"
b93d0d08 15114fi
b93d0d08 15115fi
21d1c967
GD
15116RESCOMP="$ac_cv_prog_RESCOMP"
15117if test -n "$RESCOMP"; then
15118 echo "$ac_t""$RESCOMP" 1>&6
90dd450c
VZ
15119else
15120 echo "$ac_t""no" 1>&6
15121fi
b93d0d08 15122
21d1c967
GD
15123 # Extract the first word of "DeRez", so it can be a program name with args.
15124set dummy DeRez; ac_word=$2
15125echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3bd8fb5f 15126echo "configure:15127: checking for $ac_word" >&5
21d1c967 15127if eval "test \"`echo '$''{'ac_cv_prog_DEREZ'+set}'`\" = set"; then
698dcdb6 15128 echo $ac_n "(cached) $ac_c" 1>&6
3a922bb4 15129else
21d1c967
GD
15130 if test -n "$DEREZ"; then
15131 ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test.
4f14bcd8 15132else
21d1c967
GD
15133 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
15134 ac_dummy="$PATH"
15135 for ac_dir in $ac_dummy; do
15136 test -z "$ac_dir" && ac_dir=.
15137 if test -f $ac_dir/$ac_word; then
15138 ac_cv_prog_DEREZ="DeRez"
15139 break
15140 fi
15141 done
15142 IFS="$ac_save_ifs"
15143 test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/DeRez"
3a922bb4 15144fi
90dd450c 15145fi
21d1c967
GD
15146DEREZ="$ac_cv_prog_DEREZ"
15147if test -n "$DEREZ"; then
15148 echo "$ac_t""$DEREZ" 1>&6
90dd450c
VZ
15149else
15150 echo "$ac_t""no" 1>&6
3a922bb4 15151fi
698dcdb6 15152
21d1c967
GD
15153 MACOSX_BUNDLE="bundle"
15154 if test "$wxUSE_SHARED" = "yes"; then
15155 LIBWXMACRESCOMP="\$(RESCOMP) -t APPL Carbon.r -o \$(BIN_PROGRAM)"
15156 LIBWXMACRESWXCONFIG="${RESCOMP} -t APPL Carbon.r -o"
15157 else
15158 LIBWXMACRESCOMP="\$(RESCOMP) -t APPL Carbon.r ${LIBWXMACRES} -o \$(BIN_PROGRAM)"
15159 LIBWXMACRESWXCONFIG="${RESCOMP} -t APPL Carbon.r \${prefix}/lib/${WX_RESOURCES_MACOSX_ASCII} -o"
15160 fi
15161else
15162 if test "$wxUSE_PM" = 1; then
15163 LIBWXMACRESCOMP="emxbind -ep \$(BIN_PROGRAM)"
90dd450c 15164 fi
4f14bcd8 15165fi
10f2d63a 15166
703e0a69 15167
90dd450c 15168echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
3bd8fb5f 15169echo "configure:15170: checking for ANSI C header files" >&5
90dd450c 15170if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
698dcdb6
VZ
15171 echo $ac_n "(cached) $ac_c" 1>&6
15172else
15173 cat > conftest.$ac_ext <<EOF
3bd8fb5f 15174#line 15175 "configure"
10f2d63a 15175#include "confdefs.h"
90dd450c
VZ
15176#include <stdlib.h>
15177#include <stdarg.h>
15178#include <string.h>
15179#include <float.h>
698dcdb6 15180EOF
90dd450c 15181ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3bd8fb5f 15182{ (eval echo configure:15183: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
90dd450c
VZ
15183ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15184if test -z "$ac_err"; then
15185 rm -rf conftest*
15186 ac_cv_header_stdc=yes
10f2d63a 15187else
90dd450c 15188 echo "$ac_err" >&5
698dcdb6 15189 echo "configure: failed program was:" >&5
10f2d63a 15190 cat conftest.$ac_ext >&5
90dd450c
VZ
15191 rm -rf conftest*
15192 ac_cv_header_stdc=no
10f2d63a 15193fi
90dd450c
VZ
15194rm -f conftest*
15195
15196if test $ac_cv_header_stdc = yes; then
15197 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
15198cat > conftest.$ac_ext <<EOF
3bd8fb5f 15199#line 15200 "configure"
90dd450c
VZ
15200#include "confdefs.h"
15201#include <string.h>
15202EOF
15203if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15204 egrep "memchr" >/dev/null 2>&1; then
15205 :
15206else
15207 rm -rf conftest*
15208 ac_cv_header_stdc=no
10f2d63a 15209fi
90dd450c 15210rm -f conftest*
10f2d63a 15211
4f14bcd8 15212fi
90dd450c
VZ
15213
15214if test $ac_cv_header_stdc = yes; then
15215 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
15216cat > conftest.$ac_ext <<EOF
3bd8fb5f 15217#line 15218 "configure"
90dd450c
VZ
15218#include "confdefs.h"
15219#include <stdlib.h>
10f2d63a 15220EOF
90dd450c
VZ
15221if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15222 egrep "free" >/dev/null 2>&1; then
15223 :
15224else
15225 rm -rf conftest*
15226 ac_cv_header_stdc=no
15227fi
15228rm -f conftest*
10f2d63a 15229
90dd450c 15230fi
698dcdb6 15231
90dd450c
VZ
15232if test $ac_cv_header_stdc = yes; then
15233 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
15234if test "$cross_compiling" = yes; then
15235 :
4f14bcd8
GD
15236else
15237 cat > conftest.$ac_ext <<EOF
3bd8fb5f 15238#line 15239 "configure"
10f2d63a 15239#include "confdefs.h"
90dd450c
VZ
15240#include <ctype.h>
15241#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
15242#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
15243#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
15244int main () { int i; for (i = 0; i < 256; i++)
15245if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
15246exit (0); }
15247
698dcdb6 15248EOF
3bd8fb5f 15249if { (eval echo configure:15250: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4f14bcd8 15250then
90dd450c 15251 :
10f2d63a 15252else
698dcdb6
VZ
15253 echo "configure: failed program was:" >&5
15254 cat conftest.$ac_ext >&5
4f14bcd8 15255 rm -fr conftest*
90dd450c 15256 ac_cv_header_stdc=no
10f2d63a 15257fi
4f14bcd8 15258rm -fr conftest*
10f2d63a 15259fi
698dcdb6 15260
4f14bcd8 15261fi
90dd450c 15262fi
10f2d63a 15263
90dd450c
VZ
15264echo "$ac_t""$ac_cv_header_stdc" 1>&6
15265if test $ac_cv_header_stdc = yes; then
15266 cat >> confdefs.h <<\EOF
15267#define STDC_HEADERS 1
15268EOF
698dcdb6 15269
90dd450c 15270fi
9d353d4a 15271
90dd450c 15272echo $ac_n "checking for mode_t""... $ac_c" 1>&6
3bd8fb5f 15273echo "configure:15274: checking for mode_t" >&5
90dd450c 15274if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
9d353d4a 15275 echo $ac_n "(cached) $ac_c" 1>&6
9d353d4a
RR
15276else
15277 cat > conftest.$ac_ext <<EOF
3bd8fb5f 15278#line 15279 "configure"
9d353d4a 15279#include "confdefs.h"
90dd450c
VZ
15280#include <sys/types.h>
15281#if STDC_HEADERS
15282#include <stdlib.h>
15283#include <stddef.h>
15284#endif
9d353d4a 15285EOF
90dd450c
VZ
15286if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15287 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
15288 rm -rf conftest*
15289 ac_cv_type_mode_t=yes
9d353d4a 15290else
90dd450c
VZ
15291 rm -rf conftest*
15292 ac_cv_type_mode_t=no
9d353d4a 15293fi
90dd450c 15294rm -f conftest*
9d353d4a
RR
15295
15296fi
90dd450c
VZ
15297echo "$ac_t""$ac_cv_type_mode_t" 1>&6
15298if test $ac_cv_type_mode_t = no; then
15299 cat >> confdefs.h <<\EOF
15300#define mode_t int
9d353d4a
RR
15301EOF
15302
90dd450c 15303fi
9d353d4a 15304
90dd450c 15305echo $ac_n "checking for off_t""... $ac_c" 1>&6
3bd8fb5f 15306echo "configure:15307: checking for off_t" >&5
90dd450c 15307if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
698dcdb6 15308 echo $ac_n "(cached) $ac_c" 1>&6
4f14bcd8
GD
15309else
15310 cat > conftest.$ac_ext <<EOF
3bd8fb5f 15311#line 15312 "configure"
10f2d63a 15312#include "confdefs.h"
90dd450c
VZ
15313#include <sys/types.h>
15314#if STDC_HEADERS
15315#include <stdlib.h>
15316#include <stddef.h>
15317#endif
698dcdb6 15318EOF
90dd450c
VZ
15319if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15320 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
15321 rm -rf conftest*
15322 ac_cv_type_off_t=yes
698dcdb6 15323else
90dd450c
VZ
15324 rm -rf conftest*
15325 ac_cv_type_off_t=no
698dcdb6 15326fi
90dd450c 15327rm -f conftest*
698dcdb6
VZ
15328
15329fi
90dd450c
VZ
15330echo "$ac_t""$ac_cv_type_off_t" 1>&6
15331if test $ac_cv_type_off_t = no; then
15332 cat >> confdefs.h <<\EOF
15333#define off_t long
10f2d63a
VZ
15334EOF
15335
90dd450c 15336fi
10f2d63a 15337
90dd450c 15338echo $ac_n "checking for pid_t""... $ac_c" 1>&6
3bd8fb5f 15339echo "configure:15340: checking for pid_t" >&5
90dd450c 15340if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
698dcdb6 15341 echo $ac_n "(cached) $ac_c" 1>&6
4f14bcd8
GD
15342else
15343 cat > conftest.$ac_ext <<EOF
3bd8fb5f 15344#line 15345 "configure"
10f2d63a 15345#include "confdefs.h"
90dd450c
VZ
15346#include <sys/types.h>
15347#if STDC_HEADERS
15348#include <stdlib.h>
15349#include <stddef.h>
15350#endif
698dcdb6 15351EOF
90dd450c
VZ
15352if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15353 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
15354 rm -rf conftest*
15355 ac_cv_type_pid_t=yes
698dcdb6 15356else
90dd450c
VZ
15357 rm -rf conftest*
15358 ac_cv_type_pid_t=no
4f14bcd8 15359fi
90dd450c 15360rm -f conftest*
698dcdb6
VZ
15361
15362fi
90dd450c
VZ
15363echo "$ac_t""$ac_cv_type_pid_t" 1>&6
15364if test $ac_cv_type_pid_t = no; then
15365 cat >> confdefs.h <<\EOF
15366#define pid_t int
10f2d63a
VZ
15367EOF
15368
90dd450c 15369fi
18dbb1f6 15370
90dd450c 15371echo $ac_n "checking for size_t""... $ac_c" 1>&6
3bd8fb5f 15372echo "configure:15373: checking for size_t" >&5
90dd450c 15373if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
18dbb1f6 15374 echo $ac_n "(cached) $ac_c" 1>&6
90dd450c
VZ
15375else
15376 cat > conftest.$ac_ext <<EOF
3bd8fb5f 15377#line 15378 "configure"
4f14bcd8
GD
15378#include "confdefs.h"
15379#include <sys/types.h>
90dd450c
VZ
15380#if STDC_HEADERS
15381#include <stdlib.h>
15382#include <stddef.h>
4f14bcd8 15383#endif
18dbb1f6 15384EOF
90dd450c
VZ
15385if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15386 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
18dbb1f6 15387 rm -rf conftest*
90dd450c 15388 ac_cv_type_size_t=yes
18dbb1f6 15389else
18dbb1f6 15390 rm -rf conftest*
90dd450c 15391 ac_cv_type_size_t=no
18dbb1f6
VZ
15392fi
15393rm -f conftest*
90dd450c 15394
1e487827 15395fi
90dd450c
VZ
15396echo "$ac_t""$ac_cv_type_size_t" 1>&6
15397if test $ac_cv_type_size_t = no; then
15398 cat >> confdefs.h <<\EOF
15399#define size_t unsigned
15400EOF
15401
15402fi
15403
15404echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
3bd8fb5f 15405echo "configure:15406: checking for uid_t in sys/types.h" >&5
90dd450c
VZ
15406if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
15407 echo $ac_n "(cached) $ac_c" 1>&6
b3e8d00a
VZ
15408else
15409 cat > conftest.$ac_ext <<EOF
3bd8fb5f 15410#line 15411 "configure"
b3e8d00a 15411#include "confdefs.h"
90dd450c 15412#include <sys/types.h>
b3e8d00a 15413EOF
90dd450c
VZ
15414if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15415 egrep "uid_t" >/dev/null 2>&1; then
15416 rm -rf conftest*
15417 ac_cv_type_uid_t=yes
b3e8d00a 15418else
90dd450c
VZ
15419 rm -rf conftest*
15420 ac_cv_type_uid_t=no
b3e8d00a 15421fi
90dd450c 15422rm -f conftest*
b3e8d00a 15423
4f14bcd8
GD
15424fi
15425
90dd450c
VZ
15426echo "$ac_t""$ac_cv_type_uid_t" 1>&6
15427if test $ac_cv_type_uid_t = no; then
4f14bcd8 15428 cat >> confdefs.h <<\EOF
90dd450c
VZ
15429#define uid_t int
15430EOF
15431
15432 cat >> confdefs.h <<\EOF
15433#define gid_t int
b3e8d00a 15434EOF
4f14bcd8 15435
b3e8d00a 15436fi
b3e8d00a
VZ
15437
15438
90dd450c
VZ
15439
15440ac_ext=C
4f14bcd8
GD
15441# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15442ac_cpp='$CXXCPP $CPPFLAGS'
15443ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15444ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15445cross_compiling=$ac_cv_prog_cxx_cross
90dd450c
VZ
15446
15447echo $ac_n "checking if size_t is unsigned int""... $ac_c" 1>&6
3bd8fb5f 15448echo "configure:15449: checking if size_t is unsigned int" >&5
90dd450c
VZ
15449if eval "test \"`echo '$''{'wx_cv_size_t_is_uint'+set}'`\" = set"; then
15450 echo $ac_n "(cached) $ac_c" 1>&6
15451else
15452 cat > conftest.$ac_ext <<EOF
3bd8fb5f 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 int); };
15461
15462 int bar() {
15463
15464; return 0; }
698dcdb6 15465EOF
3bd8fb5f 15466if { (eval echo configure:15467: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
90dd450c
VZ
15467 rm -rf conftest*
15468 wx_cv_size_t_is_uint=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_uint=yes
15474
698dcdb6
VZ
15475fi
15476rm -f conftest*
90dd450c 15477
698dcdb6
VZ
15478fi
15479
90dd450c 15480echo "$ac_t""$wx_cv_size_t_is_uint" 1>&6
4f14bcd8 15481
90dd450c 15482if test "$wx_cv_size_t_is_uint" = "yes"; then
4f14bcd8 15483 cat >> confdefs.h <<\EOF
90dd450c 15484#define wxSIZE_T_IS_UINT 1
698dcdb6
VZ
15485EOF
15486
90dd450c
VZ
15487else
15488 echo $ac_n "checking if size_t is unsigned long""... $ac_c" 1>&6
3bd8fb5f 15489echo "configure:15490: checking if size_t is unsigned long" >&5
90dd450c 15490if eval "test \"`echo '$''{'wx_cv_size_t_is_ulong'+set}'`\" = set"; then
698dcdb6
VZ
15491 echo $ac_n "(cached) $ac_c" 1>&6
15492else
15493 cat > conftest.$ac_ext <<EOF
3bd8fb5f 15494#line 15495 "configure"
10f2d63a 15495#include "confdefs.h"
90dd450c
VZ
15496#include <stddef.h>
15497int main() {
15498
15499 return 0; }
15500
15501 struct Foo { void foo(size_t); void foo(unsigned long); };
15502
15503 int bar() {
15504
15505; return 0; }
698dcdb6 15506EOF
3bd8fb5f 15507if { (eval echo configure:15508: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6 15508 rm -rf conftest*
90dd450c 15509 wx_cv_size_t_is_ulong=no
698dcdb6
VZ
15510else
15511 echo "configure: failed program was:" >&5
15512 cat conftest.$ac_ext >&5
15513 rm -rf conftest*
90dd450c
VZ
15514 wx_cv_size_t_is_ulong=yes
15515
698dcdb6
VZ
15516fi
15517rm -f conftest*
90dd450c 15518
698dcdb6 15519fi
10f2d63a 15520
90dd450c 15521echo "$ac_t""$wx_cv_size_t_is_ulong" 1>&6
10f2d63a 15522
90dd450c
VZ
15523 if test "$wx_cv_size_t_is_ulong" = "yes"; then
15524 cat >> confdefs.h <<\EOF
15525#define wxSIZE_T_IS_ULONG 1
4f14bcd8
GD
15526EOF
15527
15528 fi
90dd450c 15529fi
1e487827 15530
90dd450c 15531ac_ext=c
4f14bcd8
GD
15532# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15533ac_cpp='$CPP $CPPFLAGS'
15534ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15535ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15536cross_compiling=$ac_cv_prog_cc_cross
698dcdb6 15537
698dcdb6
VZ
15538
15539
90dd450c 15540echo $ac_n "checking for pw_gecos in struct passwd""... $ac_c" 1>&6
3bd8fb5f 15541echo "configure:15542: checking for pw_gecos in struct passwd" >&5
90dd450c 15542if eval "test \"`echo '$''{'wx_cv_struct_pw_gecos'+set}'`\" = set"; then
698dcdb6
VZ
15543 echo $ac_n "(cached) $ac_c" 1>&6
15544else
15545
90dd450c 15546 cat > conftest.$ac_ext <<EOF
3bd8fb5f 15547#line 15548 "configure"
4f14bcd8 15548#include "confdefs.h"
90dd450c 15549#include <pwd.h>
4f14bcd8 15550int main() {
f6bcfd97 15551
90dd450c
VZ
15552 char *p;
15553 struct passwd *pw;
15554 p = pw->pw_gecos;
15555
698dcdb6
VZ
15556; return 0; }
15557EOF
3bd8fb5f 15558if { (eval echo configure:15559: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6
VZ
15559 rm -rf conftest*
15560
90dd450c
VZ
15561 wx_cv_struct_pw_gecos=yes
15562
10f2d63a 15563else
698dcdb6
VZ
15564 echo "configure: failed program was:" >&5
15565 cat conftest.$ac_ext >&5
15566 rm -rf conftest*
15567
90dd450c
VZ
15568 wx_cv_struct_pw_gecos=no
15569
15570
4f14bcd8
GD
15571fi
15572rm -f conftest*
90dd450c 15573
c521c494 15574
4f14bcd8 15575fi
c521c494 15576
90dd450c 15577echo "$ac_t""$wx_cv_struct_pw_gecos" 1>&6
c521c494 15578
90dd450c 15579if test "$wx_cv_struct_pw_gecos" = "yes"; then
4f14bcd8 15580 cat >> confdefs.h <<\EOF
90dd450c 15581#define HAVE_PW_GECOS 1
4f14bcd8 15582EOF
c521c494 15583
90dd450c 15584fi
4f14bcd8
GD
15585
15586
d29b553b
VZ
15587WCHAR_OK=0
15588if test "$wx_cv_sizeof_wchar_t" != "0"; then
15589 WCHAR_LINK=
7a30264c
VZ
15590 for ac_func in wcslen
15591do
15592echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3bd8fb5f 15593echo "configure:15594: checking for $ac_func" >&5
7a30264c 15594if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4f14bcd8
GD
15595 echo $ac_n "(cached) $ac_c" 1>&6
15596else
7a30264c 15597 cat > conftest.$ac_ext <<EOF
3bd8fb5f 15598#line 15599 "configure"
4f14bcd8 15599#include "confdefs.h"
7a30264c
VZ
15600/* System header to define __stub macros and hopefully few prototypes,
15601 which can conflict with char $ac_func(); below. */
15602#include <assert.h>
4f14bcd8
GD
15603/* Override any gcc2 internal prototype to avoid an error. */
15604/* We use char because int might match the return type of a gcc2
15605 builtin and then its argument prototype would still apply. */
7a30264c 15606char $ac_func();
4f14bcd8
GD
15607
15608int main() {
7a30264c
VZ
15609
15610/* The GNU C library defines this for functions which it implements
15611 to always fail with ENOSYS. Some functions are actually named
15612 something starting with __ and the normal name is an alias. */
15613#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15614choke me
15615#else
15616$ac_func();
15617#endif
15618
698dcdb6
VZ
15619; return 0; }
15620EOF
3bd8fb5f 15621if { (eval echo configure:15622: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6 15622 rm -rf conftest*
7a30264c 15623 eval "ac_cv_func_$ac_func=yes"
c521c494 15624else
698dcdb6
VZ
15625 echo "configure: failed program was:" >&5
15626 cat conftest.$ac_ext >&5
15627 rm -rf conftest*
7a30264c 15628 eval "ac_cv_func_$ac_func=no"
6232543b 15629fi
698dcdb6 15630rm -f conftest*
1e487827 15631fi
7a30264c
VZ
15632
15633if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4f14bcd8 15634 echo "$ac_t""yes" 1>&6
7a30264c
VZ
15635 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15636 cat >> confdefs.h <<EOF
15637#define $ac_tr_func 1
15638EOF
15639
15640 cat >> confdefs.h <<\EOF
4f14bcd8 15641#define HAVE_WCSLEN 1
9d8deca0
VZ
15642EOF
15643
7a30264c
VZ
15644 WCHAR_OK=1
15645
9d8deca0 15646else
4f14bcd8 15647 echo "$ac_t""no" 1>&6
7a30264c
VZ
15648fi
15649done
9d8deca0 15650
7a30264c
VZ
15651
15652 if test "$WCHAR_OK" = 0; then
15653 if test "$TOOLKIT" = "MSW"; then
15654 echo $ac_n "checking for wcslen in -lmsvcrt""... $ac_c" 1>&6
3bd8fb5f 15655echo "configure:15656: checking for wcslen in -lmsvcrt" >&5
7a30264c 15656ac_lib_var=`echo msvcrt'_'wcslen | sed 'y%./+-%__p_%'`
4f14bcd8 15657if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
698dcdb6 15658 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 15659else
4f14bcd8 15660 ac_save_LIBS="$LIBS"
7a30264c 15661LIBS="-lmsvcrt $LIBS"
4f14bcd8 15662cat > conftest.$ac_ext <<EOF
3bd8fb5f 15663#line 15664 "configure"
10f2d63a 15664#include "confdefs.h"
4f14bcd8
GD
15665/* Override any gcc2 internal prototype to avoid an error. */
15666/* We use char because int might match the return type of a gcc2
15667 builtin and then its argument prototype would still apply. */
15668char wcslen();
10f2d63a 15669
698dcdb6 15670int main() {
4f14bcd8 15671wcslen()
698dcdb6
VZ
15672; return 0; }
15673EOF
3bd8fb5f 15674if { (eval echo configure:15675: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6 15675 rm -rf conftest*
4f14bcd8 15676 eval "ac_cv_lib_$ac_lib_var=yes"
10f2d63a 15677else
698dcdb6
VZ
15678 echo "configure: failed program was:" >&5
15679 cat conftest.$ac_ext >&5
15680 rm -rf conftest*
4f14bcd8 15681 eval "ac_cv_lib_$ac_lib_var=no"
6232543b 15682fi
698dcdb6 15683rm -f conftest*
4f14bcd8 15684LIBS="$ac_save_LIBS"
703e0a69 15685
1e487827 15686fi
4f14bcd8
GD
15687if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15688 echo "$ac_t""yes" 1>&6
15689
7a30264c 15690 cat >> confdefs.h <<\EOF
4f14bcd8 15691#define HAVE_WCSLEN 1
9d8deca0
VZ
15692EOF
15693
7a30264c
VZ
15694 WCHAR_OK=1
15695
4f14bcd8
GD
15696else
15697 echo "$ac_t""no" 1>&6
d29b553b 15698fi
698dcdb6 15699
7a30264c
VZ
15700 else
15701 echo $ac_n "checking for wcslen in -lw""... $ac_c" 1>&6
3bd8fb5f 15702echo "configure:15703: checking for wcslen in -lw" >&5
7a30264c 15703ac_lib_var=`echo w'_'wcslen | sed 'y%./+-%__p_%'`
4f14bcd8 15704if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
698dcdb6
VZ
15705 echo $ac_n "(cached) $ac_c" 1>&6
15706else
4f14bcd8 15707 ac_save_LIBS="$LIBS"
7a30264c 15708LIBS="-lw $LIBS"
4f14bcd8 15709cat > conftest.$ac_ext <<EOF
3bd8fb5f 15710#line 15711 "configure"
95c8801c 15711#include "confdefs.h"
4f14bcd8
GD
15712/* Override any gcc2 internal prototype to avoid an error. */
15713/* We use char because int might match the return type of a gcc2
15714 builtin and then its argument prototype would still apply. */
15715char wcslen();
95c8801c 15716
4f14bcd8
GD
15717int main() {
15718wcslen()
698dcdb6
VZ
15719; return 0; }
15720EOF
3bd8fb5f 15721if { (eval echo configure:15722: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6 15722 rm -rf conftest*
4f14bcd8 15723 eval "ac_cv_lib_$ac_lib_var=yes"
95c8801c 15724else
698dcdb6
VZ
15725 echo "configure: failed program was:" >&5
15726 cat conftest.$ac_ext >&5
15727 rm -rf conftest*
4f14bcd8 15728 eval "ac_cv_lib_$ac_lib_var=no"
95c8801c 15729fi
698dcdb6 15730rm -f conftest*
4f14bcd8 15731LIBS="$ac_save_LIBS"
95c8801c
VS
15732
15733fi
4f14bcd8
GD
15734if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15735 echo "$ac_t""yes" 1>&6
15736
7a30264c 15737 cat >> confdefs.h <<\EOF
4f14bcd8
GD
15738#define HAVE_WCSLEN 1
15739EOF
698dcdb6 15740
7a30264c
VZ
15741 WCHAR_LINK=" -lw"
15742 WCHAR_OK=1
15743
4f14bcd8
GD
15744else
15745 echo "$ac_t""no" 1>&6
15746fi
10f2d63a 15747
7a30264c 15748 fi
d29b553b 15749 fi
4f14bcd8 15750fi
95c8801c 15751
d29b553b
VZ
15752if test "$WCHAR_OK" = 1; then
15753 cat >> confdefs.h <<\EOF
15754#define wxUSE_WCHAR_T 1
15755EOF
10f2d63a 15756
1e487827 15757
d29b553b 15758 for ac_func in wcsrtombs
eb4efbdc 15759do
698dcdb6 15760echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3bd8fb5f 15761echo "configure:15762: checking for $ac_func" >&5
698dcdb6
VZ
15762if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15763 echo $ac_n "(cached) $ac_c" 1>&6
15764else
15765 cat > conftest.$ac_ext <<EOF
3bd8fb5f 15766#line 15767 "configure"
eb4efbdc
VZ
15767#include "confdefs.h"
15768/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 15769 which can conflict with char $ac_func(); below. */
eb4efbdc
VZ
15770#include <assert.h>
15771/* Override any gcc2 internal prototype to avoid an error. */
15772/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
15773 builtin and then its argument prototype would still apply. */
15774char $ac_func();
15775
15776int main() {
eb4efbdc
VZ
15777
15778/* The GNU C library defines this for functions which it implements
15779 to always fail with ENOSYS. Some functions are actually named
15780 something starting with __ and the normal name is an alias. */
15781#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15782choke me
15783#else
698dcdb6 15784$ac_func();
eb4efbdc
VZ
15785#endif
15786
698dcdb6 15787; return 0; }
eb4efbdc 15788EOF
3bd8fb5f 15789if { (eval echo configure:15790: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
15790 rm -rf conftest*
15791 eval "ac_cv_func_$ac_func=yes"
15792else
15793 echo "configure: failed program was:" >&5
15794 cat conftest.$ac_ext >&5
15795 rm -rf conftest*
15796 eval "ac_cv_func_$ac_func=no"
15797fi
15798rm -f conftest*
15799fi
eb4efbdc 15800
698dcdb6
VZ
15801if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15802 echo "$ac_t""yes" 1>&6
15803 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15804 cat >> confdefs.h <<EOF
15805#define $ac_tr_func 1
15806EOF
15807
15808else
15809 echo "$ac_t""no" 1>&6
eb4efbdc
VZ
15810fi
15811done
15812
d29b553b 15813else
a1ea5055
GD
15814 if test "$USE_DARWIN" = 1; then
15815 cat >> confdefs.h <<\EOF
15816#define wxUSE_WCHAR_T 1
15817EOF
15818
15819 else
15820 echo "configure: warning: Wide character support is unavailable" 1>&2
15821 fi
d29b553b 15822fi
698dcdb6 15823
4f14bcd8 15824echo $ac_n "checking for vprintf""... $ac_c" 1>&6
3bd8fb5f 15825echo "configure:15826: checking for vprintf" >&5
4f14bcd8 15826if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
698dcdb6
VZ
15827 echo $ac_n "(cached) $ac_c" 1>&6
15828else
4f14bcd8 15829 cat > conftest.$ac_ext <<EOF
3bd8fb5f 15830#line 15831 "configure"
f6bcfd97 15831#include "confdefs.h"
4f14bcd8
GD
15832/* System header to define __stub macros and hopefully few prototypes,
15833 which can conflict with char vprintf(); below. */
15834#include <assert.h>
15835/* Override any gcc2 internal prototype to avoid an error. */
15836/* We use char because int might match the return type of a gcc2
15837 builtin and then its argument prototype would still apply. */
15838char vprintf();
15839
698dcdb6 15840int main() {
f6bcfd97 15841
4f14bcd8
GD
15842/* The GNU C library defines this for functions which it implements
15843 to always fail with ENOSYS. Some functions are actually named
15844 something starting with __ and the normal name is an alias. */
15845#if defined (__stub_vprintf) || defined (__stub___vprintf)
15846choke me
15847#else
15848vprintf();
15849#endif
f6bcfd97 15850
698dcdb6
VZ
15851; return 0; }
15852EOF
3bd8fb5f 15853if { (eval echo configure:15854: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6 15854 rm -rf conftest*
4f14bcd8 15855 eval "ac_cv_func_vprintf=yes"
f6bcfd97 15856else
698dcdb6
VZ
15857 echo "configure: failed program was:" >&5
15858 cat conftest.$ac_ext >&5
15859 rm -rf conftest*
4f14bcd8 15860 eval "ac_cv_func_vprintf=no"
6232543b 15861fi
698dcdb6 15862rm -f conftest*
1e487827 15863fi
698dcdb6 15864
4f14bcd8
GD
15865if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
15866 echo "$ac_t""yes" 1>&6
15867 cat >> confdefs.h <<\EOF
15868#define HAVE_VPRINTF 1
f6bcfd97
BP
15869EOF
15870
4f14bcd8
GD
15871else
15872 echo "$ac_t""no" 1>&6
eb4efbdc
VZ
15873fi
15874
4f14bcd8
GD
15875if test "$ac_cv_func_vprintf" != yes; then
15876echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
3bd8fb5f 15877echo "configure:15878: checking for _doprnt" >&5
4f14bcd8 15878if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
698dcdb6
VZ
15879 echo $ac_n "(cached) $ac_c" 1>&6
15880else
15881 cat > conftest.$ac_ext <<EOF
3bd8fb5f 15882#line 15883 "configure"
10f2d63a
VZ
15883#include "confdefs.h"
15884/* System header to define __stub macros and hopefully few prototypes,
4f14bcd8 15885 which can conflict with char _doprnt(); below. */
10f2d63a
VZ
15886#include <assert.h>
15887/* Override any gcc2 internal prototype to avoid an error. */
15888/* We use char because int might match the return type of a gcc2
698dcdb6 15889 builtin and then its argument prototype would still apply. */
4f14bcd8 15890char _doprnt();
698dcdb6
VZ
15891
15892int main() {
10f2d63a
VZ
15893
15894/* The GNU C library defines this for functions which it implements
15895 to always fail with ENOSYS. Some functions are actually named
15896 something starting with __ and the normal name is an alias. */
4f14bcd8 15897#if defined (__stub__doprnt) || defined (__stub____doprnt)
10f2d63a
VZ
15898choke me
15899#else
4f14bcd8 15900_doprnt();
10f2d63a
VZ
15901#endif
15902
698dcdb6 15903; return 0; }
10f2d63a 15904EOF
3bd8fb5f 15905if { (eval echo configure:15906: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6 15906 rm -rf conftest*
4f14bcd8 15907 eval "ac_cv_func__doprnt=yes"
698dcdb6
VZ
15908else
15909 echo "configure: failed program was:" >&5
15910 cat conftest.$ac_ext >&5
15911 rm -rf conftest*
4f14bcd8 15912 eval "ac_cv_func__doprnt=no"
698dcdb6
VZ
15913fi
15914rm -f conftest*
15915fi
270a909e 15916
4f14bcd8 15917if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
698dcdb6 15918 echo "$ac_t""yes" 1>&6
4f14bcd8
GD
15919 cat >> confdefs.h <<\EOF
15920#define HAVE_DOPRNT 1
698dcdb6 15921EOF
4f14bcd8 15922
698dcdb6
VZ
15923else
15924 echo "$ac_t""no" 1>&6
270a909e 15925fi
270a909e 15926
4f14bcd8 15927fi
1e487827 15928
52e8b690 15929
52e8b690 15930
52e8b690 15931
52e8b690 15932
52e8b690 15933
4f14bcd8 15934echo $ac_n "checking for vsnprintf""... $ac_c" 1>&6
3bd8fb5f 15935echo "configure:15936: checking for vsnprintf" >&5
4f14bcd8 15936if eval "test \"`echo '$''{'wx_cv_func_vsnprintf'+set}'`\" = set"; then
698dcdb6 15937 echo $ac_n "(cached) $ac_c" 1>&6
c63c7106 15938else
4f14bcd8 15939
af15babd 15940 cat > conftest.$ac_ext <<EOF
3bd8fb5f 15941#line 15942 "configure"
c63c7106 15942#include "confdefs.h"
698dcdb6 15943
4f14bcd8
GD
15944 #include <stdio.h>
15945 #include <stdarg.h>
15946
af15babd
VZ
15947int main() {
15948
4f14bcd8
GD
15949 int wx_test_vsnprintf(const char *, ...);
15950
15951 wx_test_vsnprintf("%s");
15952 return 0;
15953 }
15954
15955 int wx_test_vsnprintf(const char *fmt, ...)
15956 {
15957 char *s;
15958
15959 va_list argp;
15960 va_start(argp, fmt);
15961 vsnprintf(s, 42, fmt, argp);
15962 va_end(argp);
15963
af15babd
VZ
15964; return 0; }
15965EOF
3bd8fb5f 15966if { (eval echo configure:15967: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
af15babd
VZ
15967 rm -rf conftest*
15968
4f14bcd8
GD
15969 wx_cv_func_vsnprintf=yes
15970
af15babd
VZ
15971else
15972 echo "configure: failed program was:" >&5
15973 cat conftest.$ac_ext >&5
15974 rm -rf conftest*
15975
4f14bcd8 15976 cat > conftest.$ac_ext <<EOF
3bd8fb5f 15977#line 15978 "configure"
af15babd 15978#include "confdefs.h"
af15babd 15979
4f14bcd8
GD
15980 #include <stdio.h>
15981 #include <stdarg.h>
15982
af15babd
VZ
15983int main() {
15984
4f14bcd8
GD
15985 int wx_test_vsnprintf(const char *, ...);
15986
15987 wx_test_vsnprintf("%s");
15988 return 0;
15989 }
15990
15991 int wx_test_vsnprintf(const char *fmt, ...)
15992 {
15993 char *s;
af15babd 15994
4f14bcd8
GD
15995 va_list argp;
15996 va_start(argp, fmt);
15997 _vsnprintf(s, 42, fmt, argp);
15998 va_end(argp);
15999
af15babd
VZ
16000; return 0; }
16001EOF
3bd8fb5f 16002if { (eval echo configure:16003: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
af15babd 16003 rm -rf conftest*
4f14bcd8
GD
16004
16005 wx_cv_func_vsnprintf=yes
16006
af15babd
VZ
16007else
16008 echo "configure: failed program was:" >&5
16009 cat conftest.$ac_ext >&5
16010 rm -rf conftest*
4f14bcd8
GD
16011
16012 wx_cv_func_vsnprintf=no
16013
af15babd
VZ
16014fi
16015rm -f conftest*
4f14bcd8 16016
af15babd 16017fi
4f14bcd8 16018rm -f conftest*
af15babd 16019
af15babd 16020fi
af15babd 16021
4f14bcd8 16022echo "$ac_t""$wx_cv_func_vsnprintf" 1>&6
af15babd 16023
4f14bcd8
GD
16024if test "$wx_cv_func_vsnprintf" = yes; then
16025 cat >> confdefs.h <<\EOF
16026#define HAVE_VSNPRINTF 1
16027EOF
16028
16029else
f9bc1684 16030 echo "configure: warning: unsafe function vsprintf will be used instead of vsnprintf" 1>&2
af15babd
VZ
16031fi
16032
4f14bcd8 16033echo $ac_n "checking for vsscanf""... $ac_c" 1>&6
3bd8fb5f 16034echo "configure:16035: checking for vsscanf" >&5
4f14bcd8 16035if eval "test \"`echo '$''{'wx_cv_func_vsscanf'+set}'`\" = set"; then
af15babd
VZ
16036 echo $ac_n "(cached) $ac_c" 1>&6
16037else
4f14bcd8 16038
af15babd 16039 cat > conftest.$ac_ext <<EOF
3bd8fb5f 16040#line 16041 "configure"
af15babd 16041#include "confdefs.h"
af15babd 16042
4f14bcd8
GD
16043 #include <stdio.h>
16044 #include <stdarg.h>
16045
af15babd
VZ
16046int main() {
16047
4f14bcd8
GD
16048 int wx_test_vsscanf(const char *, ...);
16049
16050 wx_test_vsscanf("%d");
16051 return 0;
16052 }
af15babd 16053
4f14bcd8
GD
16054 int wx_test_vsscanf(const char *fmt, ...)
16055 {
16056 va_list argp;
16057 va_start(argp, fmt);
16058 vsscanf("42", fmt, argp);
16059 va_end(argp);
16060
af15babd
VZ
16061; return 0; }
16062EOF
3bd8fb5f 16063if { (eval echo configure:16064: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
af15babd 16064 rm -rf conftest*
4f14bcd8
GD
16065
16066 wx_cv_func_vsscanf=yes
16067
af15babd
VZ
16068else
16069 echo "configure: failed program was:" >&5
16070 cat conftest.$ac_ext >&5
16071 rm -rf conftest*
4f14bcd8
GD
16072
16073 wx_cv_func_vsscanf=no
16074
af15babd
VZ
16075fi
16076rm -f conftest*
4f14bcd8 16077
af15babd
VZ
16078fi
16079
4f14bcd8
GD
16080echo "$ac_t""$wx_cv_func_vsscanf" 1>&6
16081
16082if test "$wx_cv_func_vsscanf" = yes; then
16083 cat >> confdefs.h <<\EOF
16084#define HAVE_VSSCANF 1
af15babd 16085EOF
4f14bcd8 16086
af15babd 16087fi
af15babd 16088
4f14bcd8 16089if test "$TOOLKIT" != "MSW"; then
af15babd 16090
4f14bcd8
GD
16091
16092
16093ac_ext=C
16094# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16095ac_cpp='$CXXCPP $CPPFLAGS'
16096ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16097ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16098cross_compiling=$ac_cv_prog_cxx_cross
16099
b040e242
VS
16100
16101
16102 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
16103if test "${with_libiconv_prefix+set}" = set; then
16104 withval="$with_libiconv_prefix"
16105
16106 for dir in `echo "$withval" | tr : ' '`; do
16107 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
16108 if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
16109 done
16110
16111fi
16112
16113
16114 echo $ac_n "checking for iconv""... $ac_c" 1>&6
3bd8fb5f 16115echo "configure:16116: checking for iconv" >&5
b040e242 16116if eval "test \"`echo '$''{'am_cv_func_iconv'+set}'`\" = set"; then
af15babd
VZ
16117 echo $ac_n "(cached) $ac_c" 1>&6
16118else
4f14bcd8 16119
b040e242
VS
16120 am_cv_func_iconv="no, consider installing GNU libiconv"
16121 am_cv_lib_iconv=no
4f14bcd8 16122 cat > conftest.$ac_ext <<EOF
3bd8fb5f 16123#line 16124 "configure"
af15babd 16124#include "confdefs.h"
b040e242 16125#include <stdlib.h>
4f14bcd8 16126#include <iconv.h>
af15babd 16127int main() {
b040e242
VS
16128iconv_t cd = iconv_open("","");
16129 iconv(cd,NULL,NULL,NULL,NULL);
16130 iconv_close(cd);
af15babd
VZ
16131; return 0; }
16132EOF
3bd8fb5f 16133if { (eval echo configure:16134: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
af15babd 16134 rm -rf conftest*
b040e242 16135 am_cv_func_iconv=yes
af15babd
VZ
16136else
16137 echo "configure: failed program was:" >&5
16138 cat conftest.$ac_ext >&5
b040e242
VS
16139fi
16140rm -f conftest*
16141 if test "$am_cv_func_iconv" != yes; then
16142 am_save_LIBS="$LIBS"
16143 LIBS="$LIBS -liconv"
16144 cat > conftest.$ac_ext <<EOF
3bd8fb5f 16145#line 16146 "configure"
b040e242
VS
16146#include "confdefs.h"
16147#include <stdlib.h>
16148#include <iconv.h>
16149int main() {
16150iconv_t cd = iconv_open("","");
16151 iconv(cd,NULL,NULL,NULL,NULL);
16152 iconv_close(cd);
16153; return 0; }
16154EOF
3bd8fb5f 16155if { (eval echo configure:16156: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
af15babd 16156 rm -rf conftest*
b040e242
VS
16157 am_cv_lib_iconv=yes
16158 am_cv_func_iconv=yes
16159else
16160 echo "configure: failed program was:" >&5
16161 cat conftest.$ac_ext >&5
af15babd
VZ
16162fi
16163rm -f conftest*
b040e242
VS
16164 LIBS="$am_save_LIBS"
16165 fi
16166
16167fi
16168
16169echo "$ac_t""$am_cv_func_iconv" 1>&6
16170 if test "$am_cv_func_iconv" = yes; then
16171 cat >> confdefs.h <<\EOF
16172#define HAVE_ICONV 1
16173EOF
16174
b7043674 16175 echo $ac_n "checking if iconv needs const""... $ac_c" 1>&6
3bd8fb5f 16176echo "configure:16177: checking if iconv needs const" >&5
b7043674 16177if eval "test \"`echo '$''{'wx_cv_func_iconv_const'+set}'`\" = set"; then
b040e242
VS
16178 echo $ac_n "(cached) $ac_c" 1>&6
16179else
b7043674 16180 cat > conftest.$ac_ext <<EOF
3bd8fb5f 16181#line 16182 "configure"
b040e242
VS
16182#include "confdefs.h"
16183
16184#include <stdlib.h>
16185#include <iconv.h>
16186extern
16187#ifdef __cplusplus
16188"C"
16189#endif
16190#if defined(__STDC__) || defined(__cplusplus)
16191size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
16192#else
16193size_t iconv();
16194#endif
b7043674 16195
b040e242 16196int main() {
af15babd 16197
b040e242
VS
16198; return 0; }
16199EOF
3bd8fb5f 16200if { (eval echo configure:16201: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
b040e242 16201 rm -rf conftest*
b7043674 16202 wx_cv_func_iconv_const="no"
b040e242
VS
16203else
16204 echo "configure: failed program was:" >&5
16205 cat conftest.$ac_ext >&5
16206 rm -rf conftest*
b7043674
VZ
16207 wx_cv_func_iconv_const="yes"
16208
b040e242
VS
16209fi
16210rm -f conftest*
b7043674 16211
af15babd 16212fi
af15babd 16213
b7043674
VZ
16214echo "$ac_t""$wx_cv_func_iconv_const" 1>&6
16215
16216 iconv_const=
1c405bb5 16217 if test "x$wx_cv_func_iconv_const" = "xyes"; then
b7043674
VZ
16218 iconv_const="const"
16219 fi
16220
b040e242 16221 cat >> confdefs.h <<EOF
b7043674 16222#define ICONV_CONST $iconv_const
b040e242
VS
16223EOF
16224
16225 fi
16226 LIBICONV=
16227 if test "$am_cv_lib_iconv" = yes; then
16228 LIBICONV="-liconv"
16229 fi
16230
16231
16232LIBS="$LIBICONV $LIBS"
4f14bcd8
GD
16233ac_ext=c
16234# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16235ac_cpp='$CPP $CPPFLAGS'
16236ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16237ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16238cross_compiling=$ac_cv_prog_cc_cross
af15babd 16239
af15babd 16240
4f14bcd8
GD
16241if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then
16242 for ac_func in sigaction
af15babd
VZ
16243do
16244echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3bd8fb5f 16245echo "configure:16246: checking for $ac_func" >&5
af15babd
VZ
16246if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16247 echo $ac_n "(cached) $ac_c" 1>&6
16248else
16249 cat > conftest.$ac_ext <<EOF
3bd8fb5f 16250#line 16251 "configure"
af15babd
VZ
16251#include "confdefs.h"
16252/* System header to define __stub macros and hopefully few prototypes,
16253 which can conflict with char $ac_func(); below. */
16254#include <assert.h>
16255/* Override any gcc2 internal prototype to avoid an error. */
16256/* We use char because int might match the return type of a gcc2
16257 builtin and then its argument prototype would still apply. */
16258char $ac_func();
16259
16260int main() {
16261
16262/* The GNU C library defines this for functions which it implements
16263 to always fail with ENOSYS. Some functions are actually named
16264 something starting with __ and the normal name is an alias. */
16265#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16266choke me
16267#else
16268$ac_func();
16269#endif
16270
16271; return 0; }
16272EOF
3bd8fb5f 16273if { (eval echo configure:16274: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
af15babd
VZ
16274 rm -rf conftest*
16275 eval "ac_cv_func_$ac_func=yes"
16276else
16277 echo "configure: failed program was:" >&5
16278 cat conftest.$ac_ext >&5
16279 rm -rf conftest*
16280 eval "ac_cv_func_$ac_func=no"
16281fi
16282rm -f conftest*
16283fi
16284
16285if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16286 echo "$ac_t""yes" 1>&6
16287 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16288 cat >> confdefs.h <<EOF
16289#define $ac_tr_func 1
16290EOF
4f14bcd8 16291
af15babd
VZ
16292else
16293 echo "$ac_t""no" 1>&6
4f14bcd8
GD
16294fi
16295done
16296
16297
16298 if test "$ac_cv_func_sigaction" = "no"; then
16299 echo "configure: warning: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" 1>&2
16300 wxUSE_ON_FATAL_EXCEPTION=no
16301 fi
16302
16303 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
16304
16305 ac_ext=C
16306# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16307ac_cpp='$CXXCPP $CPPFLAGS'
16308ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16309ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16310cross_compiling=$ac_cv_prog_cxx_cross
16311
16312
16313 echo $ac_n "checking for sa_handler type""... $ac_c" 1>&6
3bd8fb5f 16314echo "configure:16315: checking for sa_handler type" >&5
4f14bcd8 16315if eval "test \"`echo '$''{'wx_cv_type_sa_handler'+set}'`\" = set"; then
af15babd
VZ
16316 echo $ac_n "(cached) $ac_c" 1>&6
16317else
4f14bcd8
GD
16318
16319 cat > conftest.$ac_ext <<EOF
3bd8fb5f 16320#line 16321 "configure"
af15babd 16321#include "confdefs.h"
4f14bcd8 16322#include <signal.h>
af15babd 16323int main() {
4f14bcd8
GD
16324
16325 extern void testSigHandler(int);
16326
16327 struct sigaction sa;
16328 sa.sa_handler = testSigHandler;
16329
af15babd
VZ
16330; return 0; }
16331EOF
3bd8fb5f 16332if { (eval echo configure:16333: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
af15babd 16333 rm -rf conftest*
4f14bcd8
GD
16334
16335 wx_cv_type_sa_handler=int
16336
af15babd
VZ
16337else
16338 echo "configure: failed program was:" >&5
16339 cat conftest.$ac_ext >&5
16340 rm -rf conftest*
4f14bcd8
GD
16341
16342 wx_cv_type_sa_handler=void
16343
af15babd
VZ
16344fi
16345rm -f conftest*
4f14bcd8
GD
16346
16347fi
16348
16349echo "$ac_t""$wx_cv_type_sa_handler" 1>&6
16350
16351 ac_ext=c
16352# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16353ac_cpp='$CPP $CPPFLAGS'
16354ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16355ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16356cross_compiling=$ac_cv_prog_cc_cross
af15babd 16357
4f14bcd8
GD
16358
16359 cat >> confdefs.h <<EOF
16360#define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler
af15babd
VZ
16361EOF
16362
4f14bcd8
GD
16363 fi
16364fi
af15babd 16365
4f14bcd8 16366for ac_func in vfork
af15babd
VZ
16367do
16368echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3bd8fb5f 16369echo "configure:16370: checking for $ac_func" >&5
af15babd
VZ
16370if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16371 echo $ac_n "(cached) $ac_c" 1>&6
16372else
16373 cat > conftest.$ac_ext <<EOF
3bd8fb5f 16374#line 16375 "configure"
af15babd
VZ
16375#include "confdefs.h"
16376/* System header to define __stub macros and hopefully few prototypes,
16377 which can conflict with char $ac_func(); below. */
16378#include <assert.h>
16379/* Override any gcc2 internal prototype to avoid an error. */
16380/* We use char because int might match the return type of a gcc2
16381 builtin and then its argument prototype would still apply. */
16382char $ac_func();
16383
16384int main() {
16385
16386/* The GNU C library defines this for functions which it implements
16387 to always fail with ENOSYS. Some functions are actually named
16388 something starting with __ and the normal name is an alias. */
16389#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16390choke me
16391#else
16392$ac_func();
16393#endif
16394
16395; return 0; }
16396EOF
3bd8fb5f 16397if { (eval echo configure:16398: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
af15babd
VZ
16398 rm -rf conftest*
16399 eval "ac_cv_func_$ac_func=yes"
16400else
16401 echo "configure: failed program was:" >&5
16402 cat conftest.$ac_ext >&5
16403 rm -rf conftest*
16404 eval "ac_cv_func_$ac_func=no"
16405fi
16406rm -f conftest*
16407fi
16408
16409if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16410 echo "$ac_t""yes" 1>&6
16411 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16412 cat >> confdefs.h <<EOF
16413#define $ac_tr_func 1
16414EOF
4f14bcd8 16415
af15babd
VZ
16416else
16417 echo "$ac_t""no" 1>&6
af15babd
VZ
16418fi
16419done
16420
af15babd 16421
ade35f11
VZ
16422for ac_func in mkstemp mktemp
16423do
16424echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3bd8fb5f 16425echo "configure:16426: checking for $ac_func" >&5
ade35f11
VZ
16426if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16427 echo $ac_n "(cached) $ac_c" 1>&6
16428else
16429 cat > conftest.$ac_ext <<EOF
3bd8fb5f 16430#line 16431 "configure"
ade35f11
VZ
16431#include "confdefs.h"
16432/* System header to define __stub macros and hopefully few prototypes,
16433 which can conflict with char $ac_func(); below. */
16434#include <assert.h>
16435/* Override any gcc2 internal prototype to avoid an error. */
16436/* We use char because int might match the return type of a gcc2
16437 builtin and then its argument prototype would still apply. */
16438char $ac_func();
16439
16440int main() {
16441
16442/* The GNU C library defines this for functions which it implements
16443 to always fail with ENOSYS. Some functions are actually named
16444 something starting with __ and the normal name is an alias. */
16445#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16446choke me
16447#else
16448$ac_func();
16449#endif
16450
16451; return 0; }
16452EOF
3bd8fb5f 16453if { (eval echo configure:16454: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ade35f11
VZ
16454 rm -rf conftest*
16455 eval "ac_cv_func_$ac_func=yes"
16456else
16457 echo "configure: failed program was:" >&5
16458 cat conftest.$ac_ext >&5
16459 rm -rf conftest*
16460 eval "ac_cv_func_$ac_func=no"
16461fi
16462rm -f conftest*
16463fi
16464
16465if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16466 echo "$ac_t""yes" 1>&6
16467 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16468 cat >> confdefs.h <<EOF
16469#define $ac_tr_func 1
16470EOF
16471 break
16472else
16473 echo "$ac_t""no" 1>&6
16474fi
16475done
16476
16477
4f14bcd8 16478echo $ac_n "checking for statfs""... $ac_c" 1>&6
3bd8fb5f 16479echo "configure:16480: checking for statfs" >&5
4f14bcd8
GD
16480if eval "test \"`echo '$''{'wx_cv_func_statfs'+set}'`\" = set"; then
16481 echo $ac_n "(cached) $ac_c" 1>&6
16482else
16483 cat > conftest.$ac_ext <<EOF
3bd8fb5f 16484#line 16485 "configure"
4f14bcd8
GD
16485#include "confdefs.h"
16486
16487 #if defined(__BSD__)
16488 #include <sys/param.h>
16489 #include <sys/mount.h>
16490 #else
16491 #include <sys/vfs.h>
16492 #endif
16493
16494int main() {
16495
16496 long l;
16497 struct statfs fs;
16498 statfs("/", &fs);
16499 l = fs.f_bsize;
16500 l += fs.f_blocks;
16501 l += fs.f_bavail;
16502
16503; return 0; }
16504EOF
3bd8fb5f 16505if { (eval echo configure:16506: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4f14bcd8
GD
16506 rm -rf conftest*
16507
16508 wx_cv_func_statfs=yes
16509
16510else
16511 echo "configure: failed program was:" >&5
16512 cat conftest.$ac_ext >&5
16513 rm -rf conftest*
16514
16515 wx_cv_func_statfs=no
af15babd
VZ
16516
16517
16518fi
4f14bcd8 16519rm -f conftest*
af15babd
VZ
16520
16521fi
16522
4f14bcd8
GD
16523echo "$ac_t""$wx_cv_func_statfs" 1>&6
16524
16525if test "$wx_cv_func_statfs" = "yes"; then
16526 cat >> confdefs.h <<\EOF
16527#define HAVE_STATFS 1
16528EOF
16529
16530else
16531 echo $ac_n "checking for statvfs""... $ac_c" 1>&6
3bd8fb5f 16532echo "configure:16533: checking for statvfs" >&5
4f14bcd8 16533if eval "test \"`echo '$''{'wx_cv_func_statvfs'+set}'`\" = set"; then
af15babd
VZ
16534 echo $ac_n "(cached) $ac_c" 1>&6
16535else
16536 cat > conftest.$ac_ext <<EOF
3bd8fb5f 16537#line 16538 "configure"
af15babd 16538#include "confdefs.h"
af15babd 16539
4f14bcd8
GD
16540 #include <sys/statvfs.h>
16541
af15babd
VZ
16542int main() {
16543
4f14bcd8
GD
16544 long l;
16545 struct statvfs fs;
16546 statvfs("/", &fs);
16547 l = fs.f_bsize;
16548 l += fs.f_blocks;
16549 l += fs.f_bavail;
16550
af15babd
VZ
16551; return 0; }
16552EOF
3bd8fb5f 16553if { (eval echo configure:16554: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
af15babd 16554 rm -rf conftest*
4f14bcd8
GD
16555
16556 wx_cv_func_statvfs=yes
16557
af15babd
VZ
16558else
16559 echo "configure: failed program was:" >&5
16560 cat conftest.$ac_ext >&5
16561 rm -rf conftest*
4f14bcd8
GD
16562
16563 wx_cv_func_statvfs=no
16564
16565
af15babd
VZ
16566fi
16567rm -f conftest*
4f14bcd8 16568
af15babd
VZ
16569fi
16570
4f14bcd8 16571echo "$ac_t""$wx_cv_func_statvfs" 1>&6
af15babd 16572
4f14bcd8
GD
16573 if test "$wx_cv_func_statvfs" = "yes"; then
16574 cat >> confdefs.h <<\EOF
16575#define HAVE_STATVFS 1
16576EOF
af15babd 16577
4f14bcd8
GD
16578 else
16579 echo "configure: warning: wxGetDiskSpace() function won't work without statfs()" 1>&2
16580 fi
16581fi
af15babd 16582
4f14bcd8
GD
16583if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
16584 for ac_func in fcntl flock
af15babd
VZ
16585do
16586echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3bd8fb5f 16587echo "configure:16588: checking for $ac_func" >&5
af15babd
VZ
16588if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16589 echo $ac_n "(cached) $ac_c" 1>&6
16590else
16591 cat > conftest.$ac_ext <<EOF
3bd8fb5f 16592#line 16593 "configure"
af15babd
VZ
16593#include "confdefs.h"
16594/* System header to define __stub macros and hopefully few prototypes,
16595 which can conflict with char $ac_func(); below. */
16596#include <assert.h>
16597/* Override any gcc2 internal prototype to avoid an error. */
af15babd
VZ
16598/* We use char because int might match the return type of a gcc2
16599 builtin and then its argument prototype would still apply. */
16600char $ac_func();
16601
16602int main() {
16603
16604/* The GNU C library defines this for functions which it implements
16605 to always fail with ENOSYS. Some functions are actually named
16606 something starting with __ and the normal name is an alias. */
16607#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16608choke me
16609#else
16610$ac_func();
16611#endif
16612
16613; return 0; }
16614EOF
3bd8fb5f 16615if { (eval echo configure:16616: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
af15babd
VZ
16616 rm -rf conftest*
16617 eval "ac_cv_func_$ac_func=yes"
16618else
16619 echo "configure: failed program was:" >&5
16620 cat conftest.$ac_ext >&5
16621 rm -rf conftest*
16622 eval "ac_cv_func_$ac_func=no"
16623fi
16624rm -f conftest*
16625fi
16626
16627if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16628 echo "$ac_t""yes" 1>&6
16629 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16630 cat >> confdefs.h <<EOF
16631#define $ac_tr_func 1
16632EOF
4f14bcd8 16633 break
af15babd
VZ
16634else
16635 echo "$ac_t""no" 1>&6
16636fi
16637done
16638
16639
4f14bcd8
GD
16640 if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then
16641 echo "configure: warning: wxSingleInstanceChecker not available" 1>&2
16642 wxUSE_SNGLINST_CHECKER=no
16643 fi
16644fi
af15babd 16645
4f14bcd8 16646for ac_func in timegm
af15babd
VZ
16647do
16648echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3bd8fb5f 16649echo "configure:16650: checking for $ac_func" >&5
af15babd
VZ
16650if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16651 echo $ac_n "(cached) $ac_c" 1>&6
16652else
16653 cat > conftest.$ac_ext <<EOF
3bd8fb5f 16654#line 16655 "configure"
af15babd
VZ
16655#include "confdefs.h"
16656/* System header to define __stub macros and hopefully few prototypes,
16657 which can conflict with char $ac_func(); below. */
16658#include <assert.h>
16659/* Override any gcc2 internal prototype to avoid an error. */
16660/* We use char because int might match the return type of a gcc2
16661 builtin and then its argument prototype would still apply. */
16662char $ac_func();
16663
698dcdb6 16664int main() {
698dcdb6 16665
af15babd
VZ
16666/* The GNU C library defines this for functions which it implements
16667 to always fail with ENOSYS. Some functions are actually named
16668 something starting with __ and the normal name is an alias. */
16669#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16670choke me
16671#else
16672$ac_func();
16673#endif
16674
698dcdb6
VZ
16675; return 0; }
16676EOF
3bd8fb5f 16677if { (eval echo configure:16678: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6 16678 rm -rf conftest*
af15babd 16679 eval "ac_cv_func_$ac_func=yes"
698dcdb6
VZ
16680else
16681 echo "configure: failed program was:" >&5
16682 cat conftest.$ac_ext >&5
16683 rm -rf conftest*
af15babd 16684 eval "ac_cv_func_$ac_func=no"
1e487827 16685fi
9952adac 16686rm -f conftest*
af15babd 16687fi
703e0a69 16688
af15babd
VZ
16689if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16690 echo "$ac_t""yes" 1>&6
16691 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4f14bcd8
GD
16692 cat >> confdefs.h <<EOF
16693#define $ac_tr_func 1
16694EOF
16695
16696else
16697 echo "$ac_t""no" 1>&6
af15babd
VZ
16698fi
16699done
16700
16701
4f14bcd8 16702for ac_func in putenv setenv
10f2d63a 16703do
698dcdb6 16704echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3bd8fb5f 16705echo "configure:16706: checking for $ac_func" >&5
698dcdb6
VZ
16706if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16707 echo $ac_n "(cached) $ac_c" 1>&6
16708else
16709 cat > conftest.$ac_ext <<EOF
3bd8fb5f 16710#line 16711 "configure"
af15babd
VZ
16711#include "confdefs.h"
16712/* System header to define __stub macros and hopefully few prototypes,
16713 which can conflict with char $ac_func(); below. */
16714#include <assert.h>
16715/* Override any gcc2 internal prototype to avoid an error. */
16716/* We use char because int might match the return type of a gcc2
16717 builtin and then its argument prototype would still apply. */
16718char $ac_func();
16719
16720int main() {
16721
16722/* The GNU C library defines this for functions which it implements
16723 to always fail with ENOSYS. Some functions are actually named
16724 something starting with __ and the normal name is an alias. */
16725#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16726choke me
16727#else
16728$ac_func();
16729#endif
16730
16731; return 0; }
16732EOF
3bd8fb5f 16733if { (eval echo configure:16734: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
af15babd
VZ
16734 rm -rf conftest*
16735 eval "ac_cv_func_$ac_func=yes"
16736else
16737 echo "configure: failed program was:" >&5
16738 cat conftest.$ac_ext >&5
16739 rm -rf conftest*
16740 eval "ac_cv_func_$ac_func=no"
16741fi
16742rm -f conftest*
16743fi
16744
16745if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16746 echo "$ac_t""yes" 1>&6
16747 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16748 cat >> confdefs.h <<EOF
16749#define $ac_tr_func 1
16750EOF
4f14bcd8 16751 break
af15babd
VZ
16752else
16753 echo "$ac_t""no" 1>&6
16754fi
af15babd
VZ
16755done
16756
16757
4f14bcd8
GD
16758HAVE_SOME_SLEEP_FUNC=0
16759if test "$USE_BEOS" = 1; then
16760 cat >> confdefs.h <<\EOF
16761#define HAVE_SLEEP 1
af15babd
VZ
16762EOF
16763
4f14bcd8 16764 HAVE_SOME_SLEEP_FUNC=1
10f2d63a
VZ
16765fi
16766
4f14bcd8
GD
16767if test "$USE_DARWIN" = 1; then
16768 cat >> confdefs.h <<\EOF
16769#define HAVE_USLEEP 1
af15babd 16770EOF
10f2d63a 16771
4f14bcd8 16772 HAVE_SOME_SLEEP_FUNC=1
10f2d63a
VZ
16773fi
16774
4f14bcd8
GD
16775if test "$HAVE_SOME_SLEEP_FUNC" != 1; then
16776 POSIX4_LINK=
16777 for ac_func in nanosleep
16778do
16779echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3bd8fb5f 16780echo "configure:16781: checking for $ac_func" >&5
4f14bcd8 16781if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
698dcdb6 16782 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 16783else
4f14bcd8 16784 cat > conftest.$ac_ext <<EOF
3bd8fb5f 16785#line 16786 "configure"
10f2d63a 16786#include "confdefs.h"
4f14bcd8
GD
16787/* System header to define __stub macros and hopefully few prototypes,
16788 which can conflict with char $ac_func(); below. */
16789#include <assert.h>
10f2d63a
VZ
16790/* Override any gcc2 internal prototype to avoid an error. */
16791/* We use char because int might match the return type of a gcc2
698dcdb6 16792 builtin and then its argument prototype would still apply. */
4f14bcd8 16793char $ac_func();
698dcdb6
VZ
16794
16795int main() {
4f14bcd8
GD
16796
16797/* The GNU C library defines this for functions which it implements
16798 to always fail with ENOSYS. Some functions are actually named
16799 something starting with __ and the normal name is an alias. */
16800#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16801choke me
16802#else
16803$ac_func();
16804#endif
16805
698dcdb6
VZ
16806; return 0; }
16807EOF
3bd8fb5f 16808if { (eval echo configure:16809: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6 16809 rm -rf conftest*
4f14bcd8 16810 eval "ac_cv_func_$ac_func=yes"
698dcdb6
VZ
16811else
16812 echo "configure: failed program was:" >&5
16813 cat conftest.$ac_ext >&5
16814 rm -rf conftest*
4f14bcd8 16815 eval "ac_cv_func_$ac_func=no"
698dcdb6
VZ
16816fi
16817rm -f conftest*
698dcdb6 16818fi
4f14bcd8
GD
16819
16820if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
698dcdb6 16821 echo "$ac_t""yes" 1>&6
4f14bcd8
GD
16822 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16823 cat >> confdefs.h <<EOF
16824#define $ac_tr_func 1
16825EOF
16826 cat >> confdefs.h <<\EOF
16827#define HAVE_NANOSLEEP 1
16828EOF
16829
10f2d63a 16830else
698dcdb6 16831 echo "$ac_t""no" 1>&6
4f14bcd8 16832echo $ac_n "checking for nanosleep in -lposix4""... $ac_c" 1>&6
3bd8fb5f 16833echo "configure:16834: checking for nanosleep in -lposix4" >&5
4f14bcd8 16834ac_lib_var=`echo posix4'_'nanosleep | sed 'y%./+-%__p_%'`
698dcdb6
VZ
16835if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
16836 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 16837else
698dcdb6 16838 ac_save_LIBS="$LIBS"
4f14bcd8 16839LIBS="-lposix4 $LIBS"
698dcdb6 16840cat > conftest.$ac_ext <<EOF
3bd8fb5f 16841#line 16842 "configure"
10f2d63a
VZ
16842#include "confdefs.h"
16843/* Override any gcc2 internal prototype to avoid an error. */
16844/* We use char because int might match the return type of a gcc2
698dcdb6 16845 builtin and then its argument prototype would still apply. */
4f14bcd8 16846char nanosleep();
698dcdb6
VZ
16847
16848int main() {
4f14bcd8 16849nanosleep()
698dcdb6
VZ
16850; return 0; }
16851EOF
3bd8fb5f 16852if { (eval echo configure:16853: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
16853 rm -rf conftest*
16854 eval "ac_cv_lib_$ac_lib_var=yes"
16855else
16856 echo "configure: failed program was:" >&5
16857 cat conftest.$ac_ext >&5
16858 rm -rf conftest*
16859 eval "ac_cv_lib_$ac_lib_var=no"
16860fi
16861rm -f conftest*
16862LIBS="$ac_save_LIBS"
10f2d63a 16863
698dcdb6
VZ
16864fi
16865if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
16866 echo "$ac_t""yes" 1>&6
16867
4f14bcd8
GD
16868 cat >> confdefs.h <<\EOF
16869#define HAVE_NANOSLEEP 1
16870EOF
16871
3d63bc3a 16872 POSIX4_LINK=" -lposix4"
4f14bcd8 16873
10f2d63a 16874else
698dcdb6 16875 echo "$ac_t""no" 1>&6
10f2d63a 16876
4f14bcd8
GD
16877 for ac_func in usleep
16878do
16879echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3bd8fb5f 16880echo "configure:16881: checking for $ac_func" >&5
4f14bcd8 16881if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
698dcdb6 16882 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 16883else
698dcdb6 16884 cat > conftest.$ac_ext <<EOF
3bd8fb5f 16885#line 16886 "configure"
10f2d63a 16886#include "confdefs.h"
4f14bcd8
GD
16887/* System header to define __stub macros and hopefully few prototypes,
16888 which can conflict with char $ac_func(); below. */
16889#include <assert.h>
16890/* Override any gcc2 internal prototype to avoid an error. */
16891/* We use char because int might match the return type of a gcc2
16892 builtin and then its argument prototype would still apply. */
16893char $ac_func();
16894
16895int main() {
16896
16897/* The GNU C library defines this for functions which it implements
16898 to always fail with ENOSYS. Some functions are actually named
16899 something starting with __ and the normal name is an alias. */
16900#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16901choke me
16902#else
16903$ac_func();
16904#endif
16905
16906; return 0; }
698dcdb6 16907EOF
3bd8fb5f 16908if { (eval echo configure:16909: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6 16909 rm -rf conftest*
4f14bcd8 16910 eval "ac_cv_func_$ac_func=yes"
1e487827 16911else
698dcdb6 16912 echo "configure: failed program was:" >&5
10f2d63a 16913 cat conftest.$ac_ext >&5
698dcdb6 16914 rm -rf conftest*
4f14bcd8 16915 eval "ac_cv_func_$ac_func=no"
10f2d63a 16916fi
698dcdb6 16917rm -f conftest*
10f2d63a 16918fi
4f14bcd8
GD
16919
16920if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
698dcdb6 16921 echo "$ac_t""yes" 1>&6
4f14bcd8
GD
16922 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16923 cat >> confdefs.h <<EOF
16924#define $ac_tr_func 1
16925EOF
16926 cat >> confdefs.h <<\EOF
16927#define HAVE_USLEEP 1
16928EOF
16929
698dcdb6
VZ
16930else
16931 echo "$ac_t""no" 1>&6
4f14bcd8
GD
16932echo "configure: warning: wxSleep() function will not work" 1>&2
16933
10f2d63a 16934fi
4f14bcd8 16935done
10f2d63a 16936
4f14bcd8 16937
698dcdb6 16938
6232543b 16939fi
10f2d63a 16940
698dcdb6 16941
4f14bcd8 16942
1e487827 16943fi
4f14bcd8 16944done
703e0a69 16945
10f2d63a
VZ
16946fi
16947
4f14bcd8 16948for ac_func in uname gethostname
70846f0a 16949do
698dcdb6 16950echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3bd8fb5f 16951echo "configure:16952: checking for $ac_func" >&5
698dcdb6
VZ
16952if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16953 echo $ac_n "(cached) $ac_c" 1>&6
16954else
16955 cat > conftest.$ac_ext <<EOF
3bd8fb5f 16956#line 16957 "configure"
70846f0a
VZ
16957#include "confdefs.h"
16958/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 16959 which can conflict with char $ac_func(); below. */
70846f0a
VZ
16960#include <assert.h>
16961/* Override any gcc2 internal prototype to avoid an error. */
16962/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
16963 builtin and then its argument prototype would still apply. */
16964char $ac_func();
16965
16966int main() {
70846f0a
VZ
16967
16968/* The GNU C library defines this for functions which it implements
16969 to always fail with ENOSYS. Some functions are actually named
16970 something starting with __ and the normal name is an alias. */
16971#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16972choke me
16973#else
698dcdb6 16974$ac_func();
70846f0a
VZ
16975#endif
16976
698dcdb6 16977; return 0; }
70846f0a 16978EOF
3bd8fb5f 16979if { (eval echo configure:16980: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
16980 rm -rf conftest*
16981 eval "ac_cv_func_$ac_func=yes"
16982else
16983 echo "configure: failed program was:" >&5
16984 cat conftest.$ac_ext >&5
16985 rm -rf conftest*
16986 eval "ac_cv_func_$ac_func=no"
16987fi
16988rm -f conftest*
16989fi
70846f0a 16990
698dcdb6
VZ
16991if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16992 echo "$ac_t""yes" 1>&6
16993 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16994 cat >> confdefs.h <<EOF
16995#define $ac_tr_func 1
16996EOF
4f14bcd8 16997 break
698dcdb6
VZ
16998else
16999 echo "$ac_t""no" 1>&6
70846f0a
VZ
17000fi
17001done
17002
698dcdb6 17003
4f14bcd8
GD
17004
17005ac_ext=C
17006# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17007ac_cpp='$CXXCPP $CPPFLAGS'
17008ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17009ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17010cross_compiling=$ac_cv_prog_cxx_cross
17011
17012
17013for ac_func in strtok_r
10f2d63a 17014do
4f14bcd8 17015echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3bd8fb5f 17016echo "configure:17017: checking for $ac_func" >&5
4f14bcd8 17017if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
698dcdb6
VZ
17018 echo $ac_n "(cached) $ac_c" 1>&6
17019else
17020 cat > conftest.$ac_ext <<EOF
3bd8fb5f 17021#line 17022 "configure"
10f2d63a 17022#include "confdefs.h"
4f14bcd8
GD
17023/* System header to define __stub macros and hopefully few prototypes,
17024 which can conflict with char $ac_func(); below. */
17025#include <assert.h>
17026/* Override any gcc2 internal prototype to avoid an error. */
17027#ifdef __cplusplus
17028extern "C"
17029#endif
17030/* We use char because int might match the return type of a gcc2
17031 builtin and then its argument prototype would still apply. */
17032char $ac_func();
17033
17034int main() {
17035
17036/* The GNU C library defines this for functions which it implements
17037 to always fail with ENOSYS. Some functions are actually named
17038 something starting with __ and the normal name is an alias. */
17039#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17040choke me
17041#else
17042$ac_func();
17043#endif
17044
17045; return 0; }
698dcdb6 17046EOF
3bd8fb5f 17047if { (eval echo configure:17048: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6 17048 rm -rf conftest*
4f14bcd8 17049 eval "ac_cv_func_$ac_func=yes"
1e487827 17050else
698dcdb6 17051 echo "configure: failed program was:" >&5
10f2d63a 17052 cat conftest.$ac_ext >&5
698dcdb6 17053 rm -rf conftest*
4f14bcd8 17054 eval "ac_cv_func_$ac_func=no"
10f2d63a 17055fi
698dcdb6 17056rm -f conftest*
10f2d63a 17057fi
4f14bcd8
GD
17058
17059if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
698dcdb6 17060 echo "$ac_t""yes" 1>&6
4f14bcd8 17061 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
698dcdb6 17062 cat >> confdefs.h <<EOF
4f14bcd8 17063#define $ac_tr_func 1
10f2d63a 17064EOF
698dcdb6
VZ
17065
17066else
17067 echo "$ac_t""no" 1>&6
10f2d63a
VZ
17068fi
17069done
17070
698dcdb6 17071
4f14bcd8
GD
17072ac_ext=c
17073# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17074ac_cpp='$CPP $CPPFLAGS'
17075ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17076ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17077cross_compiling=$ac_cv_prog_cc_cross
17078
17079
17080INET_LINK=
17081for ac_func in inet_addr
17082do
17083echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3bd8fb5f 17084echo "configure:17085: checking for $ac_func" >&5
4f14bcd8 17085if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
698dcdb6 17086 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 17087else
4f14bcd8 17088 cat > conftest.$ac_ext <<EOF
3bd8fb5f 17089#line 17090 "configure"
10f2d63a 17090#include "confdefs.h"
4f14bcd8
GD
17091/* System header to define __stub macros and hopefully few prototypes,
17092 which can conflict with char $ac_func(); below. */
17093#include <assert.h>
10f2d63a
VZ
17094/* Override any gcc2 internal prototype to avoid an error. */
17095/* We use char because int might match the return type of a gcc2
698dcdb6 17096 builtin and then its argument prototype would still apply. */
4f14bcd8 17097char $ac_func();
698dcdb6
VZ
17098
17099int main() {
4f14bcd8
GD
17100
17101/* The GNU C library defines this for functions which it implements
17102 to always fail with ENOSYS. Some functions are actually named
17103 something starting with __ and the normal name is an alias. */
17104#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17105choke me
17106#else
17107$ac_func();
17108#endif
17109
698dcdb6
VZ
17110; return 0; }
17111EOF
3bd8fb5f 17112if { (eval echo configure:17113: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6 17113 rm -rf conftest*
4f14bcd8 17114 eval "ac_cv_func_$ac_func=yes"
698dcdb6
VZ
17115else
17116 echo "configure: failed program was:" >&5
17117 cat conftest.$ac_ext >&5
17118 rm -rf conftest*
4f14bcd8 17119 eval "ac_cv_func_$ac_func=no"
698dcdb6
VZ
17120fi
17121rm -f conftest*
698dcdb6 17122fi
4f14bcd8
GD
17123
17124if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
698dcdb6 17125 echo "$ac_t""yes" 1>&6
4f14bcd8
GD
17126 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17127 cat >> confdefs.h <<EOF
17128#define $ac_tr_func 1
17129EOF
17130 cat >> confdefs.h <<\EOF
17131#define HAVE_INET_ADDR 1
10f2d63a
VZ
17132EOF
17133
17134else
698dcdb6 17135 echo "$ac_t""no" 1>&6
4f14bcd8 17136echo $ac_n "checking for inet_addr in -lnsl""... $ac_c" 1>&6
3bd8fb5f 17137echo "configure:17138: checking for inet_addr in -lnsl" >&5
4f14bcd8 17138ac_lib_var=`echo nsl'_'inet_addr | sed 'y%./+-%__p_%'`
698dcdb6
VZ
17139if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
17140 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 17141else
698dcdb6 17142 ac_save_LIBS="$LIBS"
4f14bcd8 17143LIBS="-lnsl $LIBS"
698dcdb6 17144cat > conftest.$ac_ext <<EOF
3bd8fb5f 17145#line 17146 "configure"
10f2d63a
VZ
17146#include "confdefs.h"
17147/* Override any gcc2 internal prototype to avoid an error. */
17148/* We use char because int might match the return type of a gcc2
698dcdb6 17149 builtin and then its argument prototype would still apply. */
4f14bcd8 17150char inet_addr();
698dcdb6
VZ
17151
17152int main() {
4f14bcd8 17153inet_addr()
698dcdb6
VZ
17154; return 0; }
17155EOF
3bd8fb5f 17156if { (eval echo configure:17157: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
17157 rm -rf conftest*
17158 eval "ac_cv_lib_$ac_lib_var=yes"
17159else
17160 echo "configure: failed program was:" >&5
17161 cat conftest.$ac_ext >&5
17162 rm -rf conftest*
17163 eval "ac_cv_lib_$ac_lib_var=no"
17164fi
17165rm -f conftest*
17166LIBS="$ac_save_LIBS"
17167
17168fi
17169if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
17170 echo "$ac_t""yes" 1>&6
4f14bcd8 17171 INET_LINK="nsl"
10f2d63a 17172else
698dcdb6 17173 echo "$ac_t""no" 1>&6
4f14bcd8 17174echo $ac_n "checking for inet_addr in -lresolv""... $ac_c" 1>&6
3bd8fb5f 17175echo "configure:17176: checking for inet_addr in -lresolv" >&5
4f14bcd8 17176ac_lib_var=`echo resolv'_'inet_addr | sed 'y%./+-%__p_%'`
698dcdb6
VZ
17177if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
17178 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 17179else
698dcdb6 17180 ac_save_LIBS="$LIBS"
4f14bcd8 17181LIBS="-lresolv $LIBS"
698dcdb6 17182cat > conftest.$ac_ext <<EOF
3bd8fb5f 17183#line 17184 "configure"
10f2d63a
VZ
17184#include "confdefs.h"
17185/* Override any gcc2 internal prototype to avoid an error. */
17186/* We use char because int might match the return type of a gcc2
698dcdb6 17187 builtin and then its argument prototype would still apply. */
4f14bcd8 17188char inet_addr();
698dcdb6
VZ
17189
17190int main() {
4f14bcd8 17191inet_addr()
698dcdb6
VZ
17192; return 0; }
17193EOF
3bd8fb5f 17194if { (eval echo configure:17195: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
17195 rm -rf conftest*
17196 eval "ac_cv_lib_$ac_lib_var=yes"
17197else
17198 echo "configure: failed program was:" >&5
17199 cat conftest.$ac_ext >&5
17200 rm -rf conftest*
17201 eval "ac_cv_lib_$ac_lib_var=no"
17202fi
17203rm -f conftest*
17204LIBS="$ac_save_LIBS"
17205
17206fi
17207if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
17208 echo "$ac_t""yes" 1>&6
4f14bcd8 17209 INET_LINK="resolv"
698dcdb6 17210else
4f14bcd8 17211 echo "$ac_t""no" 1>&6
3c011993 17212echo $ac_n "checking for inet_addr in -lsocket""... $ac_c" 1>&6
3bd8fb5f 17213echo "configure:17214: checking for inet_addr in -lsocket" >&5
3c011993
VZ
17214ac_lib_var=`echo socket'_'inet_addr | sed 'y%./+-%__p_%'`
17215if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
17216 echo $ac_n "(cached) $ac_c" 1>&6
17217else
17218 ac_save_LIBS="$LIBS"
17219LIBS="-lsocket $LIBS"
17220cat > conftest.$ac_ext <<EOF
3bd8fb5f 17221#line 17222 "configure"
3c011993
VZ
17222#include "confdefs.h"
17223/* Override any gcc2 internal prototype to avoid an error. */
17224/* We use char because int might match the return type of a gcc2
17225 builtin and then its argument prototype would still apply. */
17226char inet_addr();
17227
17228int main() {
17229inet_addr()
17230; return 0; }
17231EOF
3bd8fb5f 17232if { (eval echo configure:17233: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3c011993
VZ
17233 rm -rf conftest*
17234 eval "ac_cv_lib_$ac_lib_var=yes"
17235else
17236 echo "configure: failed program was:" >&5
17237 cat conftest.$ac_ext >&5
17238 rm -rf conftest*
17239 eval "ac_cv_lib_$ac_lib_var=no"
17240fi
17241rm -f conftest*
17242LIBS="$ac_save_LIBS"
17243
17244fi
17245if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
17246 echo "$ac_t""yes" 1>&6
17247 INET_LINK="socket"
17248
17249else
17250 echo "$ac_t""no" 1>&6
17251fi
17252
17253
4f14bcd8 17254fi
698dcdb6 17255
4f14bcd8 17256
698dcdb6 17257fi
4f14bcd8
GD
17258
17259
698dcdb6
VZ
17260
17261fi
4f14bcd8
GD
17262done
17263
17264
17265for ac_func in inet_aton
17266do
17267echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3bd8fb5f 17268echo "configure:17269: checking for $ac_func" >&5
4f14bcd8 17269if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
698dcdb6
VZ
17270 echo $ac_n "(cached) $ac_c" 1>&6
17271else
4f14bcd8 17272 cat > conftest.$ac_ext <<EOF
3bd8fb5f 17273#line 17274 "configure"
f6bcfd97 17274#include "confdefs.h"
4f14bcd8
GD
17275/* System header to define __stub macros and hopefully few prototypes,
17276 which can conflict with char $ac_func(); below. */
17277#include <assert.h>
f6bcfd97
BP
17278/* Override any gcc2 internal prototype to avoid an error. */
17279/* We use char because int might match the return type of a gcc2
698dcdb6 17280 builtin and then its argument prototype would still apply. */
4f14bcd8 17281char $ac_func();
698dcdb6
VZ
17282
17283int main() {
4f14bcd8
GD
17284
17285/* The GNU C library defines this for functions which it implements
17286 to always fail with ENOSYS. Some functions are actually named
17287 something starting with __ and the normal name is an alias. */
17288#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17289choke me
17290#else
17291$ac_func();
17292#endif
17293
698dcdb6
VZ
17294; return 0; }
17295EOF
3bd8fb5f 17296if { (eval echo configure:17297: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6 17297 rm -rf conftest*
4f14bcd8 17298 eval "ac_cv_func_$ac_func=yes"
698dcdb6
VZ
17299else
17300 echo "configure: failed program was:" >&5
17301 cat conftest.$ac_ext >&5
17302 rm -rf conftest*
4f14bcd8 17303 eval "ac_cv_func_$ac_func=no"
698dcdb6
VZ
17304fi
17305rm -f conftest*
698dcdb6 17306fi
4f14bcd8
GD
17307
17308if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
698dcdb6 17309 echo "$ac_t""yes" 1>&6
4f14bcd8
GD
17310 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17311 cat >> confdefs.h <<EOF
17312#define $ac_tr_func 1
17313EOF
17314 cat >> confdefs.h <<\EOF
17315#define HAVE_INET_ATON 1
17316EOF
17317
10f2d63a 17318else
698dcdb6 17319 echo "$ac_t""no" 1>&6
4f14bcd8 17320 echo $ac_n "checking for inet_aton in -l$INET_LINK""... $ac_c" 1>&6
3bd8fb5f 17321echo "configure:17322: checking for inet_aton in -l$INET_LINK" >&5
4f14bcd8 17322ac_lib_var=`echo $INET_LINK'_'inet_aton | sed 'y%./+-%__p_%'`
698dcdb6
VZ
17323if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
17324 echo $ac_n "(cached) $ac_c" 1>&6
1e487827 17325else
698dcdb6 17326 ac_save_LIBS="$LIBS"
4f14bcd8 17327LIBS="-l$INET_LINK $LIBS"
698dcdb6 17328cat > conftest.$ac_ext <<EOF
3bd8fb5f 17329#line 17330 "configure"
10f2d63a 17330#include "confdefs.h"
6232543b 17331/* Override any gcc2 internal prototype to avoid an error. */
6232543b 17332/* We use char because int might match the return type of a gcc2
698dcdb6 17333 builtin and then its argument prototype would still apply. */
4f14bcd8 17334char inet_aton();
698dcdb6
VZ
17335
17336int main() {
4f14bcd8 17337inet_aton()
698dcdb6
VZ
17338; return 0; }
17339EOF
3bd8fb5f 17340if { (eval echo configure:17341: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
17341 rm -rf conftest*
17342 eval "ac_cv_lib_$ac_lib_var=yes"
17343else
17344 echo "configure: failed program was:" >&5
17345 cat conftest.$ac_ext >&5
17346 rm -rf conftest*
17347 eval "ac_cv_lib_$ac_lib_var=no"
17348fi
17349rm -f conftest*
17350LIBS="$ac_save_LIBS"
10f2d63a 17351
698dcdb6
VZ
17352fi
17353if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
17354 echo "$ac_t""yes" 1>&6
4f14bcd8
GD
17355 cat >> confdefs.h <<\EOF
17356#define HAVE_INET_ATON 1
17357EOF
17358
698dcdb6
VZ
17359else
17360 echo "$ac_t""no" 1>&6
10f2d63a
VZ
17361fi
17362
4f14bcd8 17363
10f2d63a 17364fi
4f14bcd8 17365done
10f2d63a 17366
4f14bcd8
GD
17367
17368if test "x$INET_LINK" != "x"; then
17369 cat >> confdefs.h <<\EOF
17370#define HAVE_INET_ADDR 1
17371EOF
17372
3d63bc3a 17373 INET_LINK=" -l$INET_LINK"
6232543b 17374fi
10f2d63a 17375
1e487827 17376fi
703e0a69 17377
698dcdb6 17378
4f14bcd8
GD
17379cat > confcache <<\EOF
17380# This file is a shell script that caches the results of configure
17381# tests run on this system so they can be shared between configure
17382# scripts and configure runs. It is not useful on other systems.
17383# If it contains results you don't want to keep, you may remove or edit it.
17384#
17385# By default, configure uses ./config.cache as the cache file,
17386# creating it if it does not exist already. You can give configure
17387# the --cache-file=FILE option to use a different cache file; that is
17388# what configure does when it calls configure scripts in
17389# subdirectories, so they share the cache.
17390# Giving --cache-file=/dev/null disables caching, for debugging configure.
17391# config.status only pays attention to the cache file if you give it the
17392# --recheck option to rerun configure.
17393#
f6bcfd97 17394EOF
4f14bcd8
GD
17395# The following way of writing the cache mishandles newlines in values,
17396# but we know of no workaround that is simple, portable, and efficient.
17397# So, don't put newlines in cache variables' values.
17398# Ultrix sh set writes to stderr and can't be redirected directly,
17399# and sets the high bit in the cache file unless we assign to the vars.
17400(set) 2>&1 |
17401 case `(ac_space=' '; set | grep ac_space) 2>&1` in
17402 *ac_space=\ *)
17403 # `set' does not quote correctly, so add quotes (double-quote substitution
17404 # turns \\\\ into \\, and sed turns \\ into \).
17405 sed -n \
17406 -e "s/'/'\\\\''/g" \
17407 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
17408 ;;
17409 *)
17410 # `set' quotes correctly as required by POSIX, so do not add quotes.
17411 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
17412 ;;
17413 esac >> confcache
17414if cmp -s $cache_file confcache; then
17415 :
17416else
17417 if test -w $cache_file; then
17418 echo "updating cache $cache_file"
17419 cat confcache > $cache_file
f6bcfd97 17420 else
4f14bcd8 17421 echo "not updating unwritable cache $cache_file"
f6bcfd97 17422 fi
4f14bcd8
GD
17423fi
17424rm -f confcache
f6bcfd97 17425
4f14bcd8
GD
17426
17427
009fead0 17428CPP_MT_FLAG=
4f14bcd8
GD
17429if test "$TOOLKIT" != "MSW"; then
17430
009fead0 17431
7274f1c7 17432 THREADS_LINK=
009fead0 17433 THREADS_CFLAGS=
7274f1c7
RL
17434
17435 if test "$wxUSE_THREADS" = "yes" ; then
17436 if test "$wxUSE_WINE" = 1 ; then
156b2523 17437 echo "configure: warning: Threads are not supported under WINE... disabled" 1>&2
7274f1c7
RL
17438 wxUSE_THREADS="no"
17439 elif test "$USE_BEOS" = 1; then
156b2523 17440 echo "configure: warning: BeOS threads are not yet supported... disabled" 1>&2
7274f1c7
RL
17441 wxUSE_THREADS="no"
17442 fi
4f14bcd8 17443 fi
4f14bcd8 17444
7274f1c7 17445 if test "$wxUSE_THREADS" = "yes" ; then
009fead0 17446
3010d50a 17447
009fead0
VZ
17448 THREAD_OPTS="-pthread"
17449 case "${host}" in
17450 *-*-solaris2* | *-*-sunos4* )
17451 if test "x$GCC" = "xyes"; then
126be6b4 17452 THREAD_OPTS="-pthreads $THREAD_OPTS"
009fead0
VZ
17453 else
17454 THREAD_OPTS="-mt $THREAD_OPTS"
17455 fi
17456 ;;
17457 *-*-freebsd*)
17458 THREAD_OPTS="-kthread lthread $THREAD_OPTS c_r"
17459 ;;
17234b26
MB
17460 *-*-darwin* | *-*-cygwin* )
17461 THREAD_OPTS=""
4101db81 17462 ;;
8f4a9a10 17463 *-*-aix*)
009fead0
VZ
17464 THREAD_OPTS="pthreads"
17465 ;;
009fead0 17466 esac
4f14bcd8 17467
02a1dfba 17468 THREAD_OPTS="$THREAD_OPTS pthread none"
595e0e44 17469
009fead0
VZ
17470 THREADS_OK=no
17471 for flag in $THREAD_OPTS; do
17472 case $flag in
17473 none)
17474 echo $ac_n "checking whether pthreads work without any flags""... $ac_c" 1>&6
3bd8fb5f 17475echo "configure:17476: checking whether pthreads work without any flags" >&5
009fead0 17476 ;;
698dcdb6 17477
009fead0
VZ
17478 -*)
17479 echo $ac_n "checking whether pthreads work with $flag""... $ac_c" 1>&6
3bd8fb5f 17480echo "configure:17481: checking whether pthreads work with $flag" >&5
009fead0
VZ
17481 THREADS_CFLAGS="$flag"
17482 ;;
698dcdb6 17483
009fead0
VZ
17484 *)
17485 echo $ac_n "checking for the pthreads library -l$flag""... $ac_c" 1>&6
3bd8fb5f 17486echo "configure:17487: checking for the pthreads library -l$flag" >&5
009fead0
VZ
17487 THREADS_LINK="-l$flag"
17488 ;;
17489 esac
10f2d63a 17490
009fead0
VZ
17491 save_LIBS="$LIBS"
17492 save_CFLAGS="$CFLAGS"
17493 LIBS="$THREADS_LINK $LIBS"
04727afd 17494 CFLAGS="$THREADS_CFLAGS $CFLAGS"
10f2d63a 17495
009fead0 17496 cat > conftest.$ac_ext <<EOF
3bd8fb5f 17497#line 17498 "configure"
009fead0
VZ
17498#include "confdefs.h"
17499#include <pthread.h>
4f14bcd8 17500int main() {
009fead0 17501pthread_create(0,0,0,0);
698dcdb6
VZ
17502; return 0; }
17503EOF
3bd8fb5f 17504if { (eval echo configure:17505: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6 17505 rm -rf conftest*
009fead0 17506 THREADS_OK=yes
10f2d63a 17507else
698dcdb6
VZ
17508 echo "configure: failed program was:" >&5
17509 cat conftest.$ac_ext >&5
6232543b 17510fi
698dcdb6 17511rm -f conftest*
698dcdb6 17512
009fead0
VZ
17513 LIBS="$save_LIBS"
17514 CFLAGS="$save_CFLAGS"
d9b9876f 17515
009fead0
VZ
17516 echo "$ac_t""$THREADS_OK" 1>&6
17517 if test "x$THREADS_OK" = "xyes"; then
17518 break;
17519 fi
d9b9876f 17520
009fead0
VZ
17521 THREADS_LINK=""
17522 THREADS_CFLAGS=""
17523 done
4f14bcd8 17524
009fead0
VZ
17525 if test "x$THREADS_OK" != "xyes"; then
17526 wxUSE_THREADS=no
17527 echo "configure: warning: No thread support on this system... disabled" 1>&2
17528 else
fe5a9cab
VZ
17529 LIBS="$THREADS_LINK $THREADS_CFLAGS $LIBS"
17530
009fead0 17531 echo $ac_n "checking if more special flags are required for pthreads""... $ac_c" 1>&6
3bd8fb5f 17532echo "configure:17533: checking if more special flags are required for pthreads" >&5
009fead0
VZ
17533 flag=no
17534 case "${host}" in
17535 *-aix* | *-freebsd*)
17536 flag="-D_THREAD_SAFE"
17537 ;;
17538 *solaris* | alpha*-osf*)
17539 flag="-D_REENTRANT"
17540 ;;
17541 esac
17542 echo "$ac_t""${flag}" 1>&6
17543 if test "x$flag" != xno; then
04727afd 17544 THREADS_CFLAGS="$THREADS_CFLAGS $flag"
009fead0
VZ
17545 fi
17546
009fead0 17547 if test "x$THREADS_CFLAGS" != "x"; then
04727afd 17548 CFLAGS="$CFLAGS $THREADS_CFLAGS"
009fead0
VZ
17549 CXXFLAGS="$CXXFLAGS $THREADS_CFLAGS"
17550 fi
17551 fi
4f14bcd8 17552 fi
4f14bcd8 17553
7274f1c7
RL
17554 if test "$wxUSE_THREADS" = "yes" ; then
17555 for ac_func in thr_setconcurrency
4f14bcd8
GD
17556do
17557echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3bd8fb5f 17558echo "configure:17559: checking for $ac_func" >&5
4f14bcd8 17559if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
698dcdb6
VZ
17560 echo $ac_n "(cached) $ac_c" 1>&6
17561else
4f14bcd8 17562 cat > conftest.$ac_ext <<EOF
3bd8fb5f 17563#line 17564 "configure"
d9b9876f 17564#include "confdefs.h"
4f14bcd8
GD
17565/* System header to define __stub macros and hopefully few prototypes,
17566 which can conflict with char $ac_func(); below. */
17567#include <assert.h>
17568/* Override any gcc2 internal prototype to avoid an error. */
17569/* We use char because int might match the return type of a gcc2
17570 builtin and then its argument prototype would still apply. */
17571char $ac_func();
17572
698dcdb6 17573int main() {
d9b9876f 17574
4f14bcd8
GD
17575/* The GNU C library defines this for functions which it implements
17576 to always fail with ENOSYS. Some functions are actually named
17577 something starting with __ and the normal name is an alias. */
17578#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17579choke me
17580#else
17581$ac_func();
17582#endif
17583
698dcdb6
VZ
17584; return 0; }
17585EOF
3bd8fb5f 17586if { (eval echo configure:17587: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6 17587 rm -rf conftest*
4f14bcd8 17588 eval "ac_cv_func_$ac_func=yes"
d9b9876f 17589else
698dcdb6
VZ
17590 echo "configure: failed program was:" >&5
17591 cat conftest.$ac_ext >&5
17592 rm -rf conftest*
4f14bcd8 17593 eval "ac_cv_func_$ac_func=no"
6232543b 17594fi
698dcdb6 17595rm -f conftest*
1e487827 17596fi
698dcdb6 17597
4f14bcd8
GD
17598if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17599 echo "$ac_t""yes" 1>&6
17600 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17601 cat >> confdefs.h <<EOF
17602#define $ac_tr_func 1
d9b9876f 17603EOF
4f14bcd8
GD
17604
17605else
17606 echo "$ac_t""no" 1>&6
10f2d63a 17607fi
4f14bcd8 17608done
10f2d63a 17609
10f2d63a 17610
7274f1c7 17611 for ac_hdr in sched.h
4f14bcd8
GD
17612do
17613ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
17614echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3bd8fb5f 17615echo "configure:17616: checking for $ac_hdr" >&5
4f14bcd8
GD
17616if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
17617 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 17618else
4f14bcd8 17619 cat > conftest.$ac_ext <<EOF
3bd8fb5f 17620#line 17621 "configure"
4f14bcd8
GD
17621#include "confdefs.h"
17622#include <$ac_hdr>
13111b2a 17623EOF
4f14bcd8 17624ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3bd8fb5f 17625{ (eval echo configure:17626: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4f14bcd8
GD
17626ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
17627if test -z "$ac_err"; then
17628 rm -rf conftest*
17629 eval "ac_cv_header_$ac_safe=yes"
17630else
17631 echo "$ac_err" >&5
17632 echo "configure: failed program was:" >&5
17633 cat conftest.$ac_ext >&5
17634 rm -rf conftest*
17635 eval "ac_cv_header_$ac_safe=no"
13111b2a 17636fi
4f14bcd8 17637rm -f conftest*
10f2d63a 17638fi
4f14bcd8
GD
17639if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
17640 echo "$ac_t""yes" 1>&6
17641 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
698dcdb6 17642 cat >> confdefs.h <<EOF
4f14bcd8 17643#define $ac_tr_hdr 1
f6bcfd97 17644EOF
4f14bcd8
GD
17645
17646else
17647 echo "$ac_t""no" 1>&6
f6bcfd97 17648fi
4f14bcd8 17649done
f6bcfd97 17650
009fead0
VZ
17651 if test "$ac_cv_header_sched_h" = "yes"; then
17652 echo $ac_n "checking for sched_yield""... $ac_c" 1>&6
3bd8fb5f 17653echo "configure:17654: checking for sched_yield" >&5
009fead0 17654if eval "test \"`echo '$''{'ac_cv_func_sched_yield'+set}'`\" = set"; then
4f14bcd8
GD
17655 echo $ac_n "(cached) $ac_c" 1>&6
17656else
009fead0 17657 cat > conftest.$ac_ext <<EOF
3bd8fb5f 17658#line 17659 "configure"
4f14bcd8 17659#include "confdefs.h"
009fead0
VZ
17660/* System header to define __stub macros and hopefully few prototypes,
17661 which can conflict with char sched_yield(); below. */
17662#include <assert.h>
4f14bcd8
GD
17663/* Override any gcc2 internal prototype to avoid an error. */
17664/* We use char because int might match the return type of a gcc2
17665 builtin and then its argument prototype would still apply. */
17666char sched_yield();
10f2d63a 17667
4f14bcd8 17668int main() {
009fead0
VZ
17669
17670/* The GNU C library defines this for functions which it implements
17671 to always fail with ENOSYS. Some functions are actually named
17672 something starting with __ and the normal name is an alias. */
17673#if defined (__stub_sched_yield) || defined (__stub___sched_yield)
17674choke me
17675#else
17676sched_yield();
17677#endif
17678
4f14bcd8 17679; return 0; }
10f2d63a 17680EOF
3bd8fb5f 17681if { (eval echo configure:17682: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4f14bcd8 17682 rm -rf conftest*
009fead0 17683 eval "ac_cv_func_sched_yield=yes"
10f2d63a 17684else
4f14bcd8
GD
17685 echo "configure: failed program was:" >&5
17686 cat conftest.$ac_ext >&5
17687 rm -rf conftest*
009fead0 17688 eval "ac_cv_func_sched_yield=no"
10f2d63a 17689fi
4f14bcd8 17690rm -f conftest*
4f14bcd8 17691fi
009fead0
VZ
17692
17693if eval "test \"`echo '$ac_cv_func_'sched_yield`\" = yes"; then
4f14bcd8
GD
17694 echo "$ac_t""yes" 1>&6
17695 cat >> confdefs.h <<\EOF
17696#define HAVE_SCHED_YIELD 1
10f2d63a
VZ
17697EOF
17698
4f14bcd8
GD
17699else
17700 echo "$ac_t""no" 1>&6
009fead0
VZ
17701
17702 echo $ac_n "checking for sched_yield in -lposix4""... $ac_c" 1>&6
3bd8fb5f 17703echo "configure:17704: checking for sched_yield in -lposix4" >&5
4f14bcd8
GD
17704ac_lib_var=`echo posix4'_'sched_yield | sed 'y%./+-%__p_%'`
17705if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
17706 echo $ac_n "(cached) $ac_c" 1>&6
17707else
17708 ac_save_LIBS="$LIBS"
17709LIBS="-lposix4 $LIBS"
17710cat > conftest.$ac_ext <<EOF
3bd8fb5f 17711#line 17712 "configure"
4f14bcd8
GD
17712#include "confdefs.h"
17713/* Override any gcc2 internal prototype to avoid an error. */
17714/* We use char because int might match the return type of a gcc2
17715 builtin and then its argument prototype would still apply. */
17716char sched_yield();
47c13eb7 17717
4f14bcd8
GD
17718int main() {
17719sched_yield()
17720; return 0; }
10f2d63a 17721EOF
3bd8fb5f 17722if { (eval echo configure:17723: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4f14bcd8
GD
17723 rm -rf conftest*
17724 eval "ac_cv_lib_$ac_lib_var=yes"
10f2d63a 17725else
4f14bcd8
GD
17726 echo "configure: failed program was:" >&5
17727 cat conftest.$ac_ext >&5
17728 rm -rf conftest*
17729 eval "ac_cv_lib_$ac_lib_var=no"
10f2d63a 17730fi
4f14bcd8
GD
17731rm -f conftest*
17732LIBS="$ac_save_LIBS"
10f2d63a 17733
54276ccf 17734fi
4f14bcd8
GD
17735if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
17736 echo "$ac_t""yes" 1>&6
17737 cat >> confdefs.h <<\EOF
17738#define HAVE_SCHED_YIELD 1
54276ccf 17739EOF
3d63bc3a 17740 POSIX4_LINK=" -lposix4"
4f14bcd8
GD
17741else
17742 echo "$ac_t""no" 1>&6
17743echo "configure: warning: wxThread::Yield will not work properly" 1>&2
009fead0 17744
54276ccf
VZ
17745fi
17746
009fead0
VZ
17747
17748
4f14bcd8 17749fi
698dcdb6 17750
009fead0 17751 fi
10f2d63a 17752
7274f1c7 17753 HAVE_PRIOR_FUNCS=0
009fead0 17754 echo $ac_n "checking for pthread_attr_getschedpolicy""... $ac_c" 1>&6
3bd8fb5f 17755echo "configure:17756: checking for pthread_attr_getschedpolicy" >&5
009fead0 17756if eval "test \"`echo '$''{'ac_cv_func_pthread_attr_getschedpolicy'+set}'`\" = set"; then
698dcdb6
VZ
17757 echo $ac_n "(cached) $ac_c" 1>&6
17758else
009fead0 17759 cat > conftest.$ac_ext <<EOF
3bd8fb5f 17760#line 17761 "configure"
422107f9 17761#include "confdefs.h"
009fead0
VZ
17762/* System header to define __stub macros and hopefully few prototypes,
17763 which can conflict with char pthread_attr_getschedpolicy(); below. */
17764#include <assert.h>
4f14bcd8
GD
17765/* Override any gcc2 internal prototype to avoid an error. */
17766/* We use char because int might match the return type of a gcc2
17767 builtin and then its argument prototype would still apply. */
17768char pthread_attr_getschedpolicy();
17769
17770int main() {
009fead0
VZ
17771
17772/* The GNU C library defines this for functions which it implements
17773 to always fail with ENOSYS. Some functions are actually named
17774 something starting with __ and the normal name is an alias. */
17775#if defined (__stub_pthread_attr_getschedpolicy) || defined (__stub___pthread_attr_getschedpolicy)
17776choke me
17777#else
17778pthread_attr_getschedpolicy();
17779#endif
17780
4f14bcd8 17781; return 0; }
698dcdb6 17782EOF
3bd8fb5f 17783if { (eval echo configure:17784: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6 17784 rm -rf conftest*
009fead0 17785 eval "ac_cv_func_pthread_attr_getschedpolicy=yes"
422107f9 17786else
698dcdb6 17787 echo "configure: failed program was:" >&5
422107f9 17788 cat conftest.$ac_ext >&5
698dcdb6 17789 rm -rf conftest*
009fead0 17790 eval "ac_cv_func_pthread_attr_getschedpolicy=no"
422107f9 17791fi
698dcdb6 17792rm -f conftest*
422107f9 17793fi
009fead0
VZ
17794
17795if eval "test \"`echo '$ac_cv_func_'pthread_attr_getschedpolicy`\" = yes"; then
698dcdb6 17796 echo "$ac_t""yes" 1>&6
009fead0 17797 echo $ac_n "checking for pthread_attr_setschedparam""... $ac_c" 1>&6
3bd8fb5f 17798echo "configure:17799: checking for pthread_attr_setschedparam" >&5
009fead0 17799if eval "test \"`echo '$''{'ac_cv_func_pthread_attr_setschedparam'+set}'`\" = set"; then
698dcdb6 17800 echo $ac_n "(cached) $ac_c" 1>&6
422107f9 17801else
009fead0 17802 cat > conftest.$ac_ext <<EOF
3bd8fb5f 17803#line 17804 "configure"
422107f9 17804#include "confdefs.h"
009fead0
VZ
17805/* System header to define __stub macros and hopefully few prototypes,
17806 which can conflict with char pthread_attr_setschedparam(); below. */
17807#include <assert.h>
422107f9
VZ
17808/* Override any gcc2 internal prototype to avoid an error. */
17809/* We use char because int might match the return type of a gcc2
698dcdb6 17810 builtin and then its argument prototype would still apply. */
4f14bcd8 17811char pthread_attr_setschedparam();
698dcdb6
VZ
17812
17813int main() {
009fead0
VZ
17814
17815/* The GNU C library defines this for functions which it implements
17816 to always fail with ENOSYS. Some functions are actually named
17817 something starting with __ and the normal name is an alias. */
17818#if defined (__stub_pthread_attr_setschedparam) || defined (__stub___pthread_attr_setschedparam)
17819choke me
17820#else
17821pthread_attr_setschedparam();
17822#endif
17823
698dcdb6
VZ
17824; return 0; }
17825EOF
3bd8fb5f 17826if { (eval echo configure:17827: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6 17827 rm -rf conftest*
009fead0 17828 eval "ac_cv_func_pthread_attr_setschedparam=yes"
698dcdb6
VZ
17829else
17830 echo "configure: failed program was:" >&5
17831 cat conftest.$ac_ext >&5
17832 rm -rf conftest*
009fead0 17833 eval "ac_cv_func_pthread_attr_setschedparam=no"
698dcdb6
VZ
17834fi
17835rm -f conftest*
698dcdb6 17836fi
009fead0
VZ
17837
17838if eval "test \"`echo '$ac_cv_func_'pthread_attr_setschedparam`\" = yes"; then
698dcdb6 17839 echo "$ac_t""yes" 1>&6
009fead0 17840 echo $ac_n "checking for sched_get_priority_max""... $ac_c" 1>&6
3bd8fb5f 17841echo "configure:17842: checking for sched_get_priority_max" >&5
009fead0 17842if eval "test \"`echo '$''{'ac_cv_func_sched_get_priority_max'+set}'`\" = set"; then
698dcdb6
VZ
17843 echo $ac_n "(cached) $ac_c" 1>&6
17844else
009fead0 17845 cat > conftest.$ac_ext <<EOF
3bd8fb5f 17846#line 17847 "configure"
422107f9 17847#include "confdefs.h"
009fead0
VZ
17848/* System header to define __stub macros and hopefully few prototypes
17849else
17850 echo "$ac_t""no" 1>&6
17851which can conflict with char sched_get_priority_max(); below. */
17852#include <assert.h>
4f14bcd8
GD
17853/* Override any gcc2 internal prototype to avoid an error. */
17854/* We use char because int might match the return type of a gcc2
17855 builtin and then its argument prototype would still apply. */
17856char sched_get_priority_max();
17857
17858int main() {
009fead0
VZ
17859
17860/* The GNU C library defines this for functions which it implements
17861 to always fail with ENOSYS. Some functions are actually named
17862 something starting with __ and the normal name is an alias. */
17863#if defined (__stub_sched_get_priority_max) || defined (__stub___sched_get_priority_max)
17864choke me
17865#else
17866sched_get_priority_max();
17867#endif
17868
4f14bcd8 17869; return 0; }
698dcdb6 17870EOF
3bd8fb5f 17871if { (eval echo configure:17872: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6 17872 rm -rf conftest*
009fead0 17873 eval "ac_cv_func_sched_get_priority_max=yes"
422107f9 17874else
698dcdb6 17875 echo "configure: failed program was:" >&5
422107f9 17876 cat conftest.$ac_ext >&5
698dcdb6 17877 rm -rf conftest*
009fead0 17878 eval "ac_cv_func_sched_get_priority_max=no"
422107f9 17879fi
698dcdb6 17880rm -f conftest*
422107f9 17881fi
009fead0
VZ
17882
17883if eval "test \"`echo '$ac_cv_func_'sched_get_priority_max`\" = yes"; then
698dcdb6 17884 echo "$ac_t""yes" 1>&6
4f14bcd8
GD
17885 HAVE_PRIOR_FUNCS=1
17886else
17887 echo "$ac_t""no" 1>&6
17888echo $ac_n "checking for sched_get_priority_max in -lposix4""... $ac_c" 1>&6
3bd8fb5f 17889echo "configure:17890: checking for sched_get_priority_max in -lposix4" >&5
4f14bcd8 17890ac_lib_var=`echo posix4'_'sched_get_priority_max | sed 'y%./+-%__p_%'`
698dcdb6
VZ
17891if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
17892 echo $ac_n "(cached) $ac_c" 1>&6
422107f9 17893else
698dcdb6 17894 ac_save_LIBS="$LIBS"
4f14bcd8 17895LIBS="-lposix4 $LIBS"
698dcdb6 17896cat > conftest.$ac_ext <<EOF
3bd8fb5f 17897#line 17898 "configure"
422107f9
VZ
17898#include "confdefs.h"
17899/* Override any gcc2 internal prototype to avoid an error. */
17900/* We use char because int might match the return type of a gcc2
698dcdb6 17901 builtin and then its argument prototype would still apply. */
4f14bcd8 17902char sched_get_priority_max();
698dcdb6
VZ
17903
17904int main() {
4f14bcd8 17905sched_get_priority_max()
698dcdb6
VZ
17906; return 0; }
17907EOF
3bd8fb5f 17908if { (eval echo configure:17909: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
17909 rm -rf conftest*
17910 eval "ac_cv_lib_$ac_lib_var=yes"
17911else
17912 echo "configure: failed program was:" >&5
17913 cat conftest.$ac_ext >&5
17914 rm -rf conftest*
17915 eval "ac_cv_lib_$ac_lib_var=no"
17916fi
17917rm -f conftest*
17918LIBS="$ac_save_LIBS"
17919
17920fi
17921if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
17922 echo "$ac_t""yes" 1>&6
4f14bcd8 17923
7274f1c7
RL
17924 HAVE_PRIOR_FUNCS=1
17925 POSIX4_LINK=" -lposix4"
17926
698dcdb6
VZ
17927else
17928 echo "$ac_t""no" 1>&6
422107f9
VZ
17929fi
17930
7274f1c7 17931
422107f9
VZ
17932fi
17933
7274f1c7 17934
4f14bcd8
GD
17935else
17936 echo "$ac_t""no" 1>&6
10f2d63a
VZ
17937fi
17938
7274f1c7 17939
4f14bcd8 17940fi
463abc64 17941
463abc64 17942
7274f1c7
RL
17943 if test "$HAVE_PRIOR_FUNCS" = 1; then
17944 cat >> confdefs.h <<\EOF
4f14bcd8 17945#define HAVE_THREAD_PRIORITY_FUNCTIONS 1
698dcdb6 17946EOF
463abc64 17947
7274f1c7
RL
17948 else
17949 echo "configure: warning: Setting thread priority will not work" 1>&2
17950 fi
463abc64 17951
009fead0 17952 echo $ac_n "checking for pthread_cancel""... $ac_c" 1>&6
3bd8fb5f 17953echo "configure:17954: checking for pthread_cancel" >&5
009fead0 17954if eval "test \"`echo '$''{'ac_cv_func_pthread_cancel'+set}'`\" = set"; then
698dcdb6 17955 echo $ac_n "(cached) $ac_c" 1>&6
422107f9 17956else
009fead0 17957 cat > conftest.$ac_ext <<EOF
3bd8fb5f 17958#line 17959 "configure"
422107f9 17959#include "confdefs.h"
009fead0
VZ
17960/* System header to define __stub macros and hopefully few prototypes,
17961 which can conflict with char pthread_cancel(); below. */
17962#include <assert.h>
422107f9
VZ
17963/* Override any gcc2 internal prototype to avoid an error. */
17964/* We use char because int might match the return type of a gcc2
698dcdb6 17965 builtin and then its argument prototype would still apply. */
4f14bcd8 17966char pthread_cancel();
698dcdb6
VZ
17967
17968int main() {
009fead0
VZ
17969
17970/* The GNU C library defines this for functions which it implements
17971 to always fail with ENOSYS. Some functions are actually named
17972 something starting with __ and the normal name is an alias. */
17973#if defined (__stub_pthread_cancel) || defined (__stub___pthread_cancel)
17974choke me
17975#else
17976pthread_cancel();
17977#endif
17978
698dcdb6
VZ
17979; return 0; }
17980EOF
3bd8fb5f 17981if { (eval echo configure:17982: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6 17982 rm -rf conftest*
009fead0 17983 eval "ac_cv_func_pthread_cancel=yes"
698dcdb6
VZ
17984else
17985 echo "configure: failed program was:" >&5
17986 cat conftest.$ac_ext >&5
17987 rm -rf conftest*
009fead0 17988 eval "ac_cv_func_pthread_cancel=no"
698dcdb6
VZ
17989fi
17990rm -f conftest*
698dcdb6 17991fi
009fead0
VZ
17992
17993if eval "test \"`echo '$ac_cv_func_'pthread_cancel`\" = yes"; then
698dcdb6 17994 echo "$ac_t""yes" 1>&6
4f14bcd8
GD
17995 cat >> confdefs.h <<\EOF
17996#define HAVE_PTHREAD_CANCEL 1
17997EOF
17998
698dcdb6
VZ
17999else
18000 echo "$ac_t""no" 1>&6
4f14bcd8 18001echo "configure: warning: wxThread::Kill() will not work properly" 1>&2
422107f9
VZ
18002fi
18003
422107f9 18004
7274f1c7 18005 echo $ac_n "checking for pthread_cleanup_push/pop""... $ac_c" 1>&6
3bd8fb5f 18006echo "configure:18007: checking for pthread_cleanup_push/pop" >&5
4f14bcd8
GD
18007if eval "test \"`echo '$''{'wx_cv_func_pthread_cleanup_push'+set}'`\" = set"; then
18008 echo $ac_n "(cached) $ac_c" 1>&6
18009else
18010
7274f1c7 18011 cat > conftest.$ac_ext <<EOF
3bd8fb5f 18012#line 18013 "configure"
4f14bcd8
GD
18013#include "confdefs.h"
18014#include <pthread.h>
18015int main() {
18016
7274f1c7
RL
18017 pthread_cleanup_push(NULL, NULL);
18018 pthread_cleanup_pop(0);
18019
4f14bcd8
GD
18020; return 0; }
18021EOF
3bd8fb5f 18022if { (eval echo configure:18023: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4f14bcd8
GD
18023 rm -rf conftest*
18024
7274f1c7
RL
18025 wx_cv_func_pthread_cleanup_push=yes
18026
4f14bcd8
GD
18027else
18028 echo "configure: failed program was:" >&5
18029 cat conftest.$ac_ext >&5
18030 rm -rf conftest*
18031
7274f1c7
RL
18032 wx_cv_func_pthread_cleanup_push=no
18033
4f14bcd8
GD
18034fi
18035rm -f conftest*
7274f1c7 18036
10f2d63a
VZ
18037fi
18038
4f14bcd8
GD
18039echo "$ac_t""$wx_cv_func_pthread_cleanup_push" 1>&6
18040
7274f1c7
RL
18041 if test "$wx_cv_func_pthread_cleanup_push" = "yes"; then
18042 cat >> confdefs.h <<\EOF
4f14bcd8 18043#define HAVE_THREAD_CLEANUP_FUNCTIONS 1
c7a2bf27
RR
18044EOF
18045
7274f1c7 18046 fi
4f14bcd8 18047
7274f1c7 18048
19bc6aad 18049 if test "x$wx_cv_lib_glibc21" = "xyes"; then
7274f1c7
RL
18050 CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE"
18051 fi
4f14bcd8 18052
7274f1c7 18053 echo $ac_n "checking for pthread_mutexattr_t""... $ac_c" 1>&6
3bd8fb5f 18054echo "configure:18055: checking for pthread_mutexattr_t" >&5
4f14bcd8 18055if eval "test \"`echo '$''{'wx_cv_type_pthread_mutexattr_t'+set}'`\" = set"; then
698dcdb6
VZ
18056 echo $ac_n "(cached) $ac_c" 1>&6
18057else
4f14bcd8 18058
7274f1c7 18059 cat > conftest.$ac_ext <<EOF
3bd8fb5f 18060#line 18061 "configure"
0dcf9893 18061#include "confdefs.h"
4f14bcd8
GD
18062#include <pthread.h>
18063int main() {
18064
7274f1c7
RL
18065 pthread_mutexattr_t attr;
18066 pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
18067
4f14bcd8 18068; return 0; }
698dcdb6 18069EOF
3bd8fb5f 18070if { (eval echo configure:18071: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6 18071 rm -rf conftest*
4f14bcd8 18072
7274f1c7
RL
18073 wx_cv_type_pthread_mutexattr_t=yes
18074
3fed1840 18075else
698dcdb6 18076 echo "configure: failed program was:" >&5
3fed1840 18077 cat conftest.$ac_ext >&5
698dcdb6 18078 rm -rf conftest*
4f14bcd8 18079
7274f1c7
RL
18080 wx_cv_type_pthread_mutexattr_t=no
18081
4f14bcd8 18082
3fed1840 18083fi
698dcdb6 18084rm -f conftest*
7274f1c7 18085
3fed1840 18086fi
4f14bcd8
GD
18087
18088echo "$ac_t""$wx_cv_type_pthread_mutexattr_t" 1>&6
18089
7274f1c7
RL
18090 if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then
18091 cat >> confdefs.h <<\EOF
4f14bcd8
GD
18092#define HAVE_PTHREAD_MUTEXATTR_T 1
18093EOF
18094
7274f1c7
RL
18095 else
18096 echo $ac_n "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER""... $ac_c" 1>&6
3bd8fb5f 18097echo "configure:18098: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5
4f14bcd8 18098if eval "test \"`echo '$''{'wx_cv_type_pthread_rec_mutex_init'+set}'`\" = set"; then
698dcdb6 18099 echo $ac_n "(cached) $ac_c" 1>&6
3fed1840 18100else
4f14bcd8 18101
7274f1c7 18102 cat > conftest.$ac_ext <<EOF
3bd8fb5f 18103#line 18104 "configure"
3fed1840 18104#include "confdefs.h"
4f14bcd8 18105#include <pthread.h>
698dcdb6 18106int main() {
4f14bcd8 18107
7274f1c7
RL
18108 pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;
18109
698dcdb6
VZ
18110; return 0; }
18111EOF
3bd8fb5f 18112if { (eval echo configure:18113: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6 18113 rm -rf conftest*
4f14bcd8 18114
7274f1c7
RL
18115 wx_cv_type_pthread_rec_mutex_init=yes
18116
698dcdb6
VZ
18117else
18118 echo "configure: failed program was:" >&5
18119 cat conftest.$ac_ext >&5
18120 rm -rf conftest*
4f14bcd8 18121
7274f1c7
RL
18122 wx_cv_type_pthread_rec_mutex_init=no
18123
4f14bcd8 18124
698dcdb6
VZ
18125fi
18126rm -f conftest*
7274f1c7 18127
3fed1840
RR
18128fi
18129
4f14bcd8 18130echo "$ac_t""$wx_cv_type_pthread_rec_mutex_init" 1>&6
7274f1c7
RL
18131 if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then
18132 cat >> confdefs.h <<\EOF
4f14bcd8
GD
18133#define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1
18134EOF
3fed1840 18135
7274f1c7
RL
18136 else
18137 echo "configure: warning: wxMutex won't be recursive on this platform" 1>&2
18138 fi
18139 fi
7274f1c7 18140 fi
3fed1840 18141
4f14bcd8
GD
18142fi
18143
18144if test "$wxUSE_THREADS" = "yes"; then
3a922bb4 18145 cat >> confdefs.h <<\EOF
4f14bcd8 18146#define wxUSE_THREADS 1
7b6058cd
GD
18147EOF
18148
4f14bcd8 18149
4f14bcd8 18150 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread"
698dcdb6 18151else
4f14bcd8
GD
18152 if test "$ac_cv_func_strtok_r" = "yes"; then
18153 echo $ac_n "checking if -D_REENTRANT is needed""... $ac_c" 1>&6
3bd8fb5f 18154echo "configure:18155: checking if -D_REENTRANT is needed" >&5
4f14bcd8
GD
18155 if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then
18156 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D_REENTRANT"
18157 echo "$ac_t""yes" 1>&6
18158 else
18159 echo "$ac_t""no" 1>&6
18160 fi
18161 fi
18162fi
18163
18164if test "$WXGTK20" = 1 ; then
18165 cat >> confdefs.h <<EOF
18166#define __WXGTK20__ $WXGTK20
698dcdb6 18167EOF
4f14bcd8
GD
18168
18169 WXGTK12=1
10f2d63a 18170fi
4f14bcd8
GD
18171
18172if test "$WXGTK12" = 1 ; then
18173 cat >> confdefs.h <<EOF
18174#define __WXGTK12__ $WXGTK12
18175EOF
18176
10f2d63a 18177fi
698dcdb6 18178
4f14bcd8
GD
18179if test "$WXGTK127" = 1 ; then
18180 cat >> confdefs.h <<EOF
18181#define __WXGTK127__ $WXGTK127
698dcdb6 18182EOF
4f14bcd8 18183
698dcdb6 18184fi
10f2d63a 18185
4f14bcd8
GD
18186WXDEBUG=
18187
18188if test "$wxUSE_DEBUG_INFO" = "yes" ; then
18189 WXDEBUG="-g"
18190 wxUSE_OPTIMISE=no
698dcdb6 18191fi
4f14bcd8
GD
18192
18193if test "$wxUSE_DEBUG_GDB" = "yes" ; then
18194 wxUSE_DEBUG_INFO=yes
18195 WXDEBUG="-ggdb"
10f2d63a
VZ
18196fi
18197
4f14bcd8
GD
18198if test "$wxUSE_DEBUG_FLAG" = "yes" ; then
18199 cat >> confdefs.h <<\EOF
18200#define WXDEBUG 1
18201EOF
18202
18203 WXDEBUG_DEFINE="-D__WXDEBUG__"
10f2d63a 18204else
4f14bcd8
GD
18205 if test "$wxUSE_GTK" = 1 ; then
18206 WXDEBUG_DEFINE="-DGTK_NO_CHECK_CASTS"
18207 fi
18208fi
18209
18210if test "$wxUSE_MEM_TRACING" = "yes" ; then
18211 cat >> confdefs.h <<\EOF
18212#define wxUSE_MEMORY_TRACING 1
18213EOF
18214
18215 cat >> confdefs.h <<\EOF
18216#define wxUSE_GLOBAL_MEMORY_OPERATORS 1
18217EOF
18218
18219 cat >> confdefs.h <<\EOF
18220#define wxUSE_DEBUG_NEW_ALWAYS 1
18221EOF
18222
18223 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck"
18224fi
18225
18226if test "$wxUSE_DMALLOC" = "yes" ; then
3d63bc3a 18227 DMALLOC_LIBS="-ldmalloc"
4f14bcd8
GD
18228fi
18229
18230PROFILE=
18231if test "$wxUSE_PROFILE" = "yes" ; then
3d63bc3a 18232 PROFILE=" -pg"
10f2d63a
VZ
18233fi
18234
009fead0
VZ
18235CODE_GEN_FLAGS=
18236CODE_GEN_FLAGS_CXX=
88e30f2b 18237if test "$GCC" = "yes" ; then
4f14bcd8
GD
18238 if test "$wxUSE_NO_RTTI" = "yes" ; then
18239 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-rtti"
3a922bb4 18240 fi
4f14bcd8
GD
18241 if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
18242 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-exceptions"
18243 fi
18244 if test "$wxUSE_PERMISSIVE" = "yes" ; then
18245 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fpermissive"
18246 fi
4f14bcd8
GD
18247 if test "$USE_WIN32" = 1 ; then
18248 # I'm not even really sure what this was ever added to solve,
18249 # but someone added it for mingw native builds, so I guess
18250 # they had a reason, right??
18251 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fno-pcc-struct-return"
18252 fi
1d1b75ac
VZ
18253
18254 case "${host}" in
18255 powerpc*-*-aix* )
18256 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -mminimal-toc"
18257 ;;
18258 esac
4f14bcd8
GD
18259fi
18260
4f14bcd8
GD
18261if test "$wxUSE_OPTIMISE" = "no" ; then
18262 OPTIMISE=
18263else
18264 if test "$GCC" = yes ; then
18265 OPTIMISE="-O2"
18266 case "${host}" in
18267 i586-*-*|i686-*-* )
18268 OPTIMISE="${OPTIMISE} "
18269 ;;
18270 esac
18271 else
18272 OPTIMISE="-O"
18273 fi
18274fi
18275
18276if test "$WXWIN_COMPATIBILITY_2" = "yes"; then
18277 cat >> confdefs.h <<\EOF
18278#define WXWIN_COMPATIBILITY_2 1
18279EOF
18280
18281
18282 WXWIN_COMPATIBILITY_2_2="yes"
18283fi
18284
0c9a1c32 18285if test "x$WXWIN_COMPATIBILITY_2_2" != "xno"; then
4f14bcd8
GD
18286 cat >> confdefs.h <<\EOF
18287#define WXWIN_COMPATIBILITY_2_2 1
18288EOF
18289
10f2d63a
VZ
18290fi
18291
698dcdb6 18292
10f2d63a 18293if test "$wxUSE_GUI" = "yes"; then
698dcdb6 18294 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18295#define wxUSE_GUI 1
18296EOF
18297
698dcdb6 18298
10f2d63a 18299 else
698dcdb6 18300 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18301#define wxUSE_NOGUI 1
18302EOF
18303
18304fi
18305
698dcdb6 18306
10f2d63a 18307if test "$wxUSE_UNIX" = "yes"; then
698dcdb6 18308 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18309#define wxUSE_UNIX 1
18310EOF
18311
18312fi
18313
698dcdb6 18314
10f2d63a 18315if test "$wxUSE_APPLE_IEEE" = "yes"; then
698dcdb6 18316 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18317#define wxUSE_APPLE_IEEE 1
18318EOF
18319
18320fi
18321
1e6feb95
VZ
18322if test "$wxUSE_TIMER" = "yes"; then
18323 cat >> confdefs.h <<\EOF
18324#define wxUSE_TIMER 1
18325EOF
18326
18327fi
18328
10f2d63a 18329if test "$wxUSE_WAVE" = "yes"; then
698dcdb6 18330 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18331#define wxUSE_WAVE 1
18332EOF
18333
18334fi
18335
1e6feb95
VZ
18336if test "$wxUSE_CMDLINE_PARSER" = "yes"; then
18337 cat >> confdefs.h <<\EOF
18338#define wxUSE_CMDLINE_PARSER 1
18339EOF
18340
18341fi
18342
18343if test "$wxUSE_STOPWATCH" = "yes"; then
18344 cat >> confdefs.h <<\EOF
18345#define wxUSE_STOPWATCH 1
18346EOF
18347
18348fi
18349
18350if test "$wxUSE_DATETIME" = "yes"; then
18351 cat >> confdefs.h <<\EOF
18352#define wxUSE_DATETIME 1
18353EOF
18354
18355fi
18356
18357if test "$wxUSE_TIMEDATE" = "yes"; then
18358 cat >> confdefs.h <<\EOF
18359#define wxUSE_TIMEDATE 1
18360EOF
18361
18362fi
18363
10f2d63a 18364if test "$wxUSE_FILE" = "yes"; then
698dcdb6 18365 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18366#define wxUSE_FILE 1
18367EOF
18368
18369fi
18370
1e6feb95
VZ
18371if test "$wxUSE_FFILE" = "yes"; then
18372 cat >> confdefs.h <<\EOF
18373#define wxUSE_FFILE 1
18374EOF
18375
18376fi
18377
24528b0c 18378if test "$wxUSE_FILESYSTEM" = "yes"; then
698dcdb6 18379 cat >> confdefs.h <<\EOF
24528b0c
VS
18380#define wxUSE_FILESYSTEM 1
18381EOF
18382
18383fi
18384
10f2d63a 18385if test "$wxUSE_FS_INET" = "yes"; then
698dcdb6 18386 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18387#define wxUSE_FS_INET 1
18388EOF
18389
18390fi
18391
18392if test "$wxUSE_FS_ZIP" = "yes"; then
698dcdb6 18393 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18394#define wxUSE_FS_ZIP 1
18395EOF
18396
18397fi
18398
18399if test "$wxUSE_ZIPSTREAM" = "yes"; then
698dcdb6 18400 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18401#define wxUSE_ZIPSTREAM 1
18402EOF
18403
18404fi
18405
eb4efbdc 18406if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
698dcdb6 18407 cat >> confdefs.h <<\EOF
eb4efbdc
VZ
18408#define wxUSE_ON_FATAL_EXCEPTION 1
18409EOF
18410
18411fi
18412
4f3c5f06 18413if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
698dcdb6 18414 cat >> confdefs.h <<\EOF
4f3c5f06
VZ
18415#define wxUSE_SNGLINST_CHECKER 1
18416EOF
18417
18418fi
18419
10f2d63a 18420if test "$wxUSE_BUSYINFO" = "yes"; then
698dcdb6 18421 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18422#define wxUSE_BUSYINFO 1
18423EOF
18424
18425fi
18426
18427if test "$wxUSE_STD_IOSTREAM" = "yes"; then
698dcdb6 18428 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18429#define wxUSE_STD_IOSTREAM 1
18430EOF
18431
18432fi
18433
a3a584a7
VZ
18434if test "$wxUSE_TEXTBUFFER" = "yes"; then
18435 cat >> confdefs.h <<\EOF
18436#define wxUSE_TEXTBUFFER 1
18437EOF
18438
18439fi
18440
10f2d63a 18441if test "$wxUSE_TEXTFILE" = "yes"; then
a3a584a7 18442 if test "$wxUSE_FILE" != "yes" -o "$wxUSE_TEXTBUFFER" != "yes" ; then
156b2523 18443 echo "configure: warning: wxTextFile requires wxFile and wxTextBuffer... disabled" 1>&2
10f2d63a 18444 else
698dcdb6 18445 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18446#define wxUSE_TEXTFILE 1
18447EOF
18448
18449 fi
18450fi
18451
18452if test "$wxUSE_CONFIG" = "yes" ; then
18453 if test "$wxUSE_TEXTFILE" != "yes"; then
156b2523 18454 echo "configure: warning: wxConfig requires wxTextFile... disabled" 1>&2
10f2d63a 18455 else
698dcdb6 18456 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18457#define wxUSE_CONFIG 1
18458EOF
18459
18460 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config"
18461 fi
18462fi
18463
18464if test "$wxUSE_INTL" = "yes" ; then
18465 if test "$wxUSE_FILE" != "yes"; then
156b2523 18466 echo "configure: warning: I18n code requires wxFile... disabled" 1>&2
10f2d63a 18467 else
698dcdb6 18468 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18469#define wxUSE_INTL 1
18470EOF
18471
18472 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat"
f6bcfd97 18473 GUIDIST="$GUIDIST INTL_DIST"
10f2d63a
VZ
18474 fi
18475fi
18476
18477if test "$wxUSE_LOG" = "yes"; then
698dcdb6 18478 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18479#define wxUSE_LOG 1
18480EOF
18481
d73be714
VZ
18482
18483 if test "$wxUSE_LOGGUI" = "yes"; then
18484 cat >> confdefs.h <<\EOF
18485#define wxUSE_LOGGUI 1
18486EOF
18487
18488 fi
18489
18490 if test "$wxUSE_LOGWINDOW" = "yes"; then
18491 cat >> confdefs.h <<\EOF
18492#define wxUSE_LOGWINDOW 1
69d27ff7
MB
18493EOF
18494
18495 fi
18496
18497 if test "$wxUSE_LOGDIALOG" = "yes"; then
18498 cat >> confdefs.h <<\EOF
18499#define wxUSE_LOG_DIALOG 1
d73be714
VZ
18500EOF
18501
18502 fi
10f2d63a
VZ
18503fi
18504
18505if test "$wxUSE_LONGLONG" = "yes"; then
698dcdb6 18506 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18507#define wxUSE_LONGLONG 1
18508EOF
18509
18510fi
18511
e8f65ba6 18512if test "$wxUSE_GEOMETRY" = "yes"; then
698dcdb6 18513 cat >> confdefs.h <<\EOF
e8f65ba6
RR
18514#define wxUSE_GEOMETRY 1
18515EOF
18516
18517fi
18518
10f2d63a 18519if test "$wxUSE_DIALUP_MANAGER" = "yes" ; then
698dcdb6 18520 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18521#define wxUSE_DIALUP_MANAGER 1
18522EOF
18523
70f7a477 18524 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup"
10f2d63a
VZ
18525fi
18526
18527if test "$wxUSE_STREAMS" = "yes" ; then
698dcdb6 18528 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18529#define wxUSE_STREAMS 1
18530EOF
18531
18532fi
18533
1e487827 18534
1e6feb95 18535if test "$wxUSE_DATETIME" = "yes"; then
698dcdb6 18536 for ac_func in strptime
83307f33 18537do
698dcdb6 18538echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3bd8fb5f 18539echo "configure:18540: checking for $ac_func" >&5
698dcdb6
VZ
18540if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18541 echo $ac_n "(cached) $ac_c" 1>&6
18542else
18543 cat > conftest.$ac_ext <<EOF
3bd8fb5f 18544#line 18545 "configure"
83307f33
VZ
18545#include "confdefs.h"
18546/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 18547 which can conflict with char $ac_func(); below. */
83307f33
VZ
18548#include <assert.h>
18549/* Override any gcc2 internal prototype to avoid an error. */
18550/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
18551 builtin and then its argument prototype would still apply. */
18552char $ac_func();
18553
18554int main() {
83307f33
VZ
18555
18556/* The GNU C library defines this for functions which it implements
18557 to always fail with ENOSYS. Some functions are actually named
18558 something starting with __ and the normal name is an alias. */
18559#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18560choke me
18561#else
698dcdb6 18562$ac_func();
83307f33
VZ
18563#endif
18564
698dcdb6 18565; return 0; }
83307f33 18566EOF
3bd8fb5f 18567if { (eval echo configure:18568: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
18568 rm -rf conftest*
18569 eval "ac_cv_func_$ac_func=yes"
18570else
18571 echo "configure: failed program was:" >&5
18572 cat conftest.$ac_ext >&5
18573 rm -rf conftest*
18574 eval "ac_cv_func_$ac_func=no"
18575fi
18576rm -f conftest*
18577fi
83307f33 18578
698dcdb6
VZ
18579if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18580 echo "$ac_t""yes" 1>&6
18581 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18582 cat >> confdefs.h <<EOF
18583#define $ac_tr_func 1
18584EOF
18585
18586else
18587 echo "$ac_t""no" 1>&6
83307f33
VZ
18588fi
18589done
18590
1e487827 18591
62cc730f 18592 echo $ac_n "checking for timezone variable in <time.h>""... $ac_c" 1>&6
3bd8fb5f 18593echo "configure:18594: checking for timezone variable in <time.h>" >&5
698dcdb6
VZ
18594if eval "test \"`echo '$''{'wx_cv_var_timezone'+set}'`\" = set"; then
18595 echo $ac_n "(cached) $ac_c" 1>&6
18596else
18597
18598 cat > conftest.$ac_ext <<EOF
3bd8fb5f 18599#line 18600 "configure"
360d6699
VZ
18600#include "confdefs.h"
18601
b4085ce6 18602 #include <time.h>
698dcdb6
VZ
18603
18604int main() {
360d6699
VZ
18605
18606 int tz;
4f11a343 18607 tz = timezone;
698dcdb6
VZ
18608
18609; return 0; }
18610EOF
3bd8fb5f 18611if { (eval echo configure:18612: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6
VZ
18612 rm -rf conftest*
18613
4f11a343 18614 wx_cv_var_timezone=timezone
698dcdb6 18615
360d6699 18616else
698dcdb6
VZ
18617 echo "configure: failed program was:" >&5
18618 cat conftest.$ac_ext >&5
18619 rm -rf conftest*
18620
18621 cat > conftest.$ac_ext <<EOF
3bd8fb5f 18622#line 18623 "configure"
360d6699
VZ
18623#include "confdefs.h"
18624
b4085ce6 18625 #include <time.h>
698dcdb6
VZ
18626
18627int main() {
360d6699
VZ
18628
18629 int tz;
18630 tz = _timezone;
698dcdb6
VZ
18631
18632; return 0; }
18633EOF
3bd8fb5f 18634if { (eval echo configure:18635: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6
VZ
18635 rm -rf conftest*
18636
360d6699 18637 wx_cv_var_timezone=_timezone
698dcdb6 18638
5357c8e8 18639else
698dcdb6
VZ
18640 echo "configure: failed program was:" >&5
18641 cat conftest.$ac_ext >&5
18642 rm -rf conftest*
18643
18644 cat > conftest.$ac_ext <<EOF
3bd8fb5f 18645#line 18646 "configure"
5357c8e8
VZ
18646#include "confdefs.h"
18647
b4085ce6 18648 #include <time.h>
698dcdb6
VZ
18649
18650int main() {
5357c8e8
VZ
18651
18652 int tz;
4f11a343 18653 tz = __timezone;
698dcdb6
VZ
18654
18655; return 0; }
18656EOF
3bd8fb5f 18657if { (eval echo configure:18658: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6
VZ
18658 rm -rf conftest*
18659
4f11a343 18660 wx_cv_var_timezone=__timezone
698dcdb6 18661
360d6699 18662else
698dcdb6
VZ
18663 echo "configure: failed program was:" >&5
18664 cat conftest.$ac_ext >&5
18665 rm -rf conftest*
f9bc1684
VS
18666
18667 if test "$USE_DOS" = 0 ; then
62cc730f 18668 echo "configure: warning: no timezone variable" 1>&2
f9bc1684
VS
18669 fi
18670
698dcdb6 18671
360d6699 18672fi
698dcdb6
VZ
18673rm -f conftest*
18674
18675
360d6699 18676fi
698dcdb6
VZ
18677rm -f conftest*
18678
18679
6232543b 18680fi
698dcdb6
VZ
18681rm -f conftest*
18682
18683
1e487827 18684fi
703e0a69 18685
698dcdb6
VZ
18686echo "$ac_t""$wx_cv_var_timezone" 1>&6
18687
f9bc1684 18688 if test "x$wx_cv_var_timezone" != x ; then
698dcdb6 18689 cat >> confdefs.h <<EOF
360d6699
VZ
18690#define WX_TIMEZONE $wx_cv_var_timezone
18691EOF
18692
f9bc1684 18693 fi
698dcdb6
VZ
18694
18695 for ac_func in localtime
afc31813 18696do
698dcdb6 18697echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3bd8fb5f 18698echo "configure:18699: checking for $ac_func" >&5
698dcdb6
VZ
18699if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18700 echo $ac_n "(cached) $ac_c" 1>&6
18701else
18702 cat > conftest.$ac_ext <<EOF
3bd8fb5f 18703#line 18704 "configure"
10f2d63a 18704#include "confdefs.h"
afc31813 18705/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 18706 which can conflict with char $ac_func(); below. */
afc31813
VZ
18707#include <assert.h>
18708/* Override any gcc2 internal prototype to avoid an error. */
18709/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
18710 builtin and then its argument prototype would still apply. */
18711char $ac_func();
18712
18713int main() {
afc31813
VZ
18714
18715/* The GNU C library defines this for functions which it implements
18716 to always fail with ENOSYS. Some functions are actually named
18717 something starting with __ and the normal name is an alias. */
18718#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18719choke me
18720#else
698dcdb6 18721$ac_func();
afc31813
VZ
18722#endif
18723
698dcdb6 18724; return 0; }
10f2d63a 18725EOF
3bd8fb5f 18726if { (eval echo configure:18727: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
18727 rm -rf conftest*
18728 eval "ac_cv_func_$ac_func=yes"
18729else
18730 echo "configure: failed program was:" >&5
18731 cat conftest.$ac_ext >&5
18732 rm -rf conftest*
18733 eval "ac_cv_func_$ac_func=no"
18734fi
18735rm -f conftest*
18736fi
afc31813 18737
698dcdb6
VZ
18738if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18739 echo "$ac_t""yes" 1>&6
18740 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18741 cat >> confdefs.h <<EOF
18742#define $ac_tr_func 1
18743EOF
18744
18745else
18746 echo "$ac_t""no" 1>&6
afc31813
VZ
18747fi
18748done
18749
1e487827 18750
698dcdb6
VZ
18751 if test "$ac_cv_func_localtime" = "yes"; then
18752 echo $ac_n "checking for tm_gmtoff in struct tm""... $ac_c" 1>&6
3bd8fb5f 18753echo "configure:18754: checking for tm_gmtoff in struct tm" >&5
698dcdb6
VZ
18754if eval "test \"`echo '$''{'wx_cv_struct_tm_has_gmtoff'+set}'`\" = set"; then
18755 echo $ac_n "(cached) $ac_c" 1>&6
18756else
18757
18758 cat > conftest.$ac_ext <<EOF
3bd8fb5f 18759#line 18760 "configure"
0470b1e6
VZ
18760#include "confdefs.h"
18761
b4085ce6 18762 #include <time.h>
698dcdb6
VZ
18763
18764int main() {
0470b1e6
VZ
18765
18766 struct tm tm;
18767 tm.tm_gmtoff++;
698dcdb6
VZ
18768
18769; return 0; }
18770EOF
3bd8fb5f 18771if { (eval echo configure:18772: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6
VZ
18772 rm -rf conftest*
18773
f03a98d8 18774 wx_cv_struct_tm_has_gmtoff=yes
698dcdb6 18775
0470b1e6 18776else
698dcdb6
VZ
18777 echo "configure: failed program was:" >&5
18778 cat conftest.$ac_ext >&5
18779 rm -rf conftest*
18780 wx_cv_struct_tm_has_gmtoff=no
18781
0470b1e6 18782fi
698dcdb6
VZ
18783rm -f conftest*
18784
1e487827 18785fi
698dcdb6
VZ
18786
18787echo "$ac_t""$wx_cv_struct_tm_has_gmtoff" 1>&6
6232543b
VS
18788 fi
18789
18790 if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then
698dcdb6 18791 cat >> confdefs.h <<\EOF
6232543b
VS
18792#define WX_GMTOFF_IN_TM 1
18793EOF
0470b1e6 18794
3fcdd07b
VZ
18795 fi
18796
698dcdb6 18797 for ac_func in gettimeofday ftime
3fcdd07b 18798do
698dcdb6 18799echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3bd8fb5f 18800echo "configure:18801: checking for $ac_func" >&5
698dcdb6
VZ
18801if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18802 echo $ac_n "(cached) $ac_c" 1>&6
18803else
18804 cat > conftest.$ac_ext <<EOF
3bd8fb5f 18805#line 18806 "configure"
3fcdd07b
VZ
18806#include "confdefs.h"
18807/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 18808 which can conflict with char $ac_func(); below. */
3fcdd07b
VZ
18809#include <assert.h>
18810/* Override any gcc2 internal prototype to avoid an error. */
18811/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
18812 builtin and then its argument prototype would still apply. */
18813char $ac_func();
18814
18815int main() {
3fcdd07b
VZ
18816
18817/* The GNU C library defines this for functions which it implements
18818 to always fail with ENOSYS. Some functions are actually named
18819 something starting with __ and the normal name is an alias. */
18820#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18821choke me
18822#else
698dcdb6 18823$ac_func();
3fcdd07b
VZ
18824#endif
18825
698dcdb6
VZ
18826; return 0; }
18827EOF
3bd8fb5f 18828if { (eval echo configure:18829: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
18829 rm -rf conftest*
18830 eval "ac_cv_func_$ac_func=yes"
18831else
18832 echo "configure: failed program was:" >&5
18833 cat conftest.$ac_ext >&5
18834 rm -rf conftest*
18835 eval "ac_cv_func_$ac_func=no"
18836fi
18837rm -f conftest*
18838fi
18839
18840if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18841 echo "$ac_t""yes" 1>&6
18842 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18843 cat >> confdefs.h <<EOF
18844#define $ac_tr_func 1
3fcdd07b
VZ
18845EOF
18846 break
698dcdb6
VZ
18847else
18848 echo "$ac_t""no" 1>&6
3fcdd07b
VZ
18849fi
18850done
18851
afc31813 18852
698dcdb6
VZ
18853 if test "$ac_cv_func_gettimeofday" = "yes"; then
18854 echo $ac_n "checking whether gettimeofday takes two arguments""... $ac_c" 1>&6
3bd8fb5f 18855echo "configure:18856: checking whether gettimeofday takes two arguments" >&5
698dcdb6
VZ
18856if eval "test \"`echo '$''{'wx_cv_func_gettimeofday_has_2_args'+set}'`\" = set"; then
18857 echo $ac_n "(cached) $ac_c" 1>&6
18858else
18859
18860
18861 ac_ext=C
18862# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1e487827 18863ac_cpp='$CXXCPP $CPPFLAGS'
698dcdb6
VZ
18864ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18865ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18866cross_compiling=$ac_cv_prog_cxx_cross
703e0a69 18867
698dcdb6
VZ
18868
18869 cat > conftest.$ac_ext <<EOF
3bd8fb5f 18870#line 18871 "configure"
10f2d63a 18871#include "confdefs.h"
afc31813
VZ
18872
18873 #include <sys/time.h>
18874 #include <unistd.h>
698dcdb6
VZ
18875
18876int main() {
afc31813
VZ
18877
18878 struct timeval tv;
776862b4 18879 gettimeofday(&tv, NULL);
698dcdb6
VZ
18880
18881; return 0; }
18882EOF
3bd8fb5f 18883if { (eval echo configure:18884: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6 18884 rm -rf conftest*
afc31813 18885 wx_cv_func_gettimeofday_has_2_args=yes
10f2d63a 18886else
698dcdb6
VZ
18887 echo "configure: failed program was:" >&5
18888 cat conftest.$ac_ext >&5
18889 rm -rf conftest*
18890 cat > conftest.$ac_ext <<EOF
3bd8fb5f 18891#line 18892 "configure"
10f2d63a 18892#include "confdefs.h"
afc31813
VZ
18893
18894 #include <sys/time.h>
18895 #include <unistd.h>
698dcdb6
VZ
18896
18897int main() {
afc31813
VZ
18898
18899 struct timeval tv;
18900 gettimeofday(&tv);
698dcdb6
VZ
18901
18902; return 0; }
18903EOF
3bd8fb5f 18904if { (eval echo configure:18905: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6 18905 rm -rf conftest*
afc31813 18906 wx_cv_func_gettimeofday_has_2_args=no
10f2d63a 18907else
698dcdb6
VZ
18908 echo "configure: failed program was:" >&5
18909 cat conftest.$ac_ext >&5
18910 rm -rf conftest*
776862b4
VZ
18911
18912 echo "configure: warning: failed to determine number of gettimeofday() arguments" 1>&2
18913 wx_cv_func_gettimeofday_has_2_args=unknown
18914
698dcdb6 18915
10f2d63a 18916fi
698dcdb6
VZ
18917rm -f conftest*
18918
10f2d63a 18919fi
698dcdb6 18920rm -f conftest*
afc31813 18921 ac_ext=c
698dcdb6 18922# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10f2d63a 18923ac_cpp='$CPP $CPPFLAGS'
698dcdb6
VZ
18924ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18925ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18926cross_compiling=$ac_cv_prog_cc_cross
10f2d63a 18927
698dcdb6 18928
afc31813 18929fi
698dcdb6
VZ
18930
18931echo "$ac_t""$wx_cv_func_gettimeofday_has_2_args" 1>&6
c63c7106 18932
afc31813 18933 if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then
698dcdb6 18934 cat >> confdefs.h <<\EOF
afc31813
VZ
18935#define WX_GETTIMEOFDAY_NO_TZ 1
18936EOF
18937
18938 fi
18939 fi
18940
698dcdb6 18941 cat >> confdefs.h <<\EOF
afc31813
VZ
18942#define wxUSE_TIMEDATE 1
18943EOF
18944
18945 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest"
18946fi
18947
698dcdb6 18948
0feee163 18949if test "$wxUSE_SOCKETS" = "yes"; then
6c657b52 18950 if test "$wxUSE_X11" = "1"; then
0feee163
VZ
18951 echo "configure: warning: wxSocket not yet supported under X11... disabled" 1>&2
18952 wxUSE_SOCKETS="no"
18953 fi
6c657b52
VS
18954
18955 if test "$wxUSE_MGL" = "1"; then
18956 echo "configure: warning: wxSocket not yet supported under MGL... disabled" 1>&2
18957 wxUSE_SOCKETS="no"
18958 fi
0feee163 18959fi
b089607b 18960
0feee163
VZ
18961if test "$wxUSE_SOCKETS" = "yes"; then
18962 if test "$TOOLKIT" != "MSW"; then
3a922bb4 18963 echo $ac_n "checking for socket""... $ac_c" 1>&6
3bd8fb5f 18964echo "configure:18965: checking for socket" >&5
698dcdb6
VZ
18965if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then
18966 echo $ac_n "(cached) $ac_c" 1>&6
c63c7106 18967else
698dcdb6 18968 cat > conftest.$ac_ext <<EOF
3bd8fb5f 18969#line 18970 "configure"
c63c7106
VZ
18970#include "confdefs.h"
18971/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 18972 which can conflict with char socket(); below. */
c63c7106
VZ
18973#include <assert.h>
18974/* Override any gcc2 internal prototype to avoid an error. */
18975/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
18976 builtin and then its argument prototype would still apply. */
18977char socket();
18978
18979int main() {
c63c7106
VZ
18980
18981/* The GNU C library defines this for functions which it implements
18982 to always fail with ENOSYS. Some functions are actually named
18983 something starting with __ and the normal name is an alias. */
18984#if defined (__stub_socket) || defined (__stub___socket)
18985choke me
18986#else
698dcdb6 18987socket();
c63c7106
VZ
18988#endif
18989
698dcdb6
VZ
18990; return 0; }
18991EOF
3bd8fb5f 18992if { (eval echo configure:18993: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
18993 rm -rf conftest*
18994 eval "ac_cv_func_socket=yes"
18995else
18996 echo "configure: failed program was:" >&5
18997 cat conftest.$ac_ext >&5
18998 rm -rf conftest*
18999 eval "ac_cv_func_socket=no"
19000fi
19001rm -f conftest*
19002fi
19003
19004if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
19005 echo "$ac_t""yes" 1>&6
c63c7106
VZ
19006 :
19007else
698dcdb6
VZ
19008 echo "$ac_t""no" 1>&6
19009echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
3bd8fb5f 19010echo "configure:19011: checking for socket in -lsocket" >&5
698dcdb6
VZ
19011ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'`
19012if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
19013 echo $ac_n "(cached) $ac_c" 1>&6
c63c7106 19014else
698dcdb6 19015 ac_save_LIBS="$LIBS"
c63c7106 19016LIBS="-lsocket $LIBS"
698dcdb6 19017cat > conftest.$ac_ext <<EOF
3bd8fb5f 19018#line 19019 "configure"
c63c7106
VZ
19019#include "confdefs.h"
19020/* Override any gcc2 internal prototype to avoid an error. */
19021/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
19022 builtin and then its argument prototype would still apply. */
19023char socket();
19024
19025int main() {
19026socket()
19027; return 0; }
19028EOF
3bd8fb5f 19029if { (eval echo configure:19030: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
19030 rm -rf conftest*
19031 eval "ac_cv_lib_$ac_lib_var=yes"
19032else
19033 echo "configure: failed program was:" >&5
19034 cat conftest.$ac_ext >&5
19035 rm -rf conftest*
19036 eval "ac_cv_lib_$ac_lib_var=no"
19037fi
19038rm -f conftest*
19039LIBS="$ac_save_LIBS"
19040
19041fi
19042if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
19043 echo "$ac_t""yes" 1>&6
d558c907
VS
19044 if test "$INET_LINK" != " -lsocket"; then
19045 INET_LINK="$INET_LINK -lsocket"
19046 fi
c63c7106 19047else
698dcdb6 19048 echo "$ac_t""no" 1>&6
afc31813 19049
3a922bb4
RL
19050 echo "configure: warning: socket library not found - sockets will be disabled" 1>&2
19051 wxUSE_SOCKETS=no
19052
698dcdb6 19053
6232543b 19054fi
b089607b 19055
3a922bb4 19056
1e487827 19057fi
afc31813 19058
3a922bb4 19059 fi
0feee163 19060fi
51a9faba 19061
0feee163
VZ
19062if test "$wxUSE_SOCKETS" = "yes" ; then
19063 if test "$TOOLKIT" != "MSW"; then
3a922bb4 19064 echo $ac_n "checking what is the type of the third argument of getsockname""... $ac_c" 1>&6
3bd8fb5f 19065echo "configure:19066: checking what is the type of the third argument of getsockname" >&5
698dcdb6
VZ
19066if eval "test \"`echo '$''{'wx_cv_type_getsockname3'+set}'`\" = set"; then
19067 echo $ac_n "(cached) $ac_c" 1>&6
19068else
19069
3a922bb4
RL
19070
19071 ac_ext=C
698dcdb6 19072# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1e487827 19073ac_cpp='$CXXCPP $CPPFLAGS'
698dcdb6
VZ
19074ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19075ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19076cross_compiling=$ac_cv_prog_cxx_cross
703e0a69 19077
698dcdb6 19078
3a922bb4 19079 cat > conftest.$ac_ext <<EOF
3bd8fb5f 19080#line 19081 "configure"
afc31813 19081#include "confdefs.h"
51a9faba 19082
3a922bb4
RL
19083 #include <sys/types.h>
19084 #include <sys/socket.h>
19085
698dcdb6 19086int main() {
51a9faba 19087
3a922bb4
RL
19088 socklen_t len;
19089 getsockname(0, 0, &len);
19090
698dcdb6
VZ
19091; return 0; }
19092EOF
3bd8fb5f 19093if { (eval echo configure:19094: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6 19094 rm -rf conftest*
51a9faba 19095 wx_cv_type_getsockname3=socklen_t
afc31813 19096else
698dcdb6
VZ
19097 echo "configure: failed program was:" >&5
19098 cat conftest.$ac_ext >&5
19099 rm -rf conftest*
19100 cat > conftest.$ac_ext <<EOF
3bd8fb5f 19101#line 19102 "configure"
afc31813 19102#include "confdefs.h"
51a9faba 19103
3a922bb4
RL
19104 #include <sys/types.h>
19105 #include <sys/socket.h>
19106
698dcdb6 19107int main() {
51a9faba 19108
3a922bb4
RL
19109 size_t len;
19110 getsockname(0, 0, &len);
19111
698dcdb6
VZ
19112; return 0; }
19113EOF
3bd8fb5f 19114if { (eval echo configure:19115: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6 19115 rm -rf conftest*
51a9faba 19116 wx_cv_type_getsockname3=size_t
afc31813 19117else
698dcdb6
VZ
19118 echo "configure: failed program was:" >&5
19119 cat conftest.$ac_ext >&5
19120 rm -rf conftest*
19121 cat > conftest.$ac_ext <<EOF
3bd8fb5f 19122#line 19123 "configure"
afc31813 19123#include "confdefs.h"
51a9faba 19124
3a922bb4
RL
19125 #include <sys/types.h>
19126 #include <sys/socket.h>
19127
698dcdb6 19128int main() {
51a9faba 19129
3a922bb4
RL
19130 int len;
19131 getsockname(0, 0, &len);
19132
698dcdb6
VZ
19133; return 0; }
19134EOF
3bd8fb5f 19135if { (eval echo configure:19136: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6 19136 rm -rf conftest*
51a9faba 19137 wx_cv_type_getsockname3=int
afc31813 19138else
698dcdb6
VZ
19139 echo "configure: failed program was:" >&5
19140 cat conftest.$ac_ext >&5
19141 rm -rf conftest*
19142 wx_cv_type_getsockname3=unknown
3a922bb4 19143
afc31813 19144fi
698dcdb6 19145rm -f conftest*
3a922bb4 19146
afc31813 19147fi
698dcdb6 19148rm -f conftest*
3a922bb4 19149
afc31813 19150fi
698dcdb6 19151rm -f conftest*
51a9faba 19152
3a922bb4 19153 ac_ext=c
698dcdb6 19154# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
afc31813 19155ac_cpp='$CPP $CPPFLAGS'
698dcdb6
VZ
19156ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19157ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19158cross_compiling=$ac_cv_prog_cc_cross
afc31813 19159
3a922bb4 19160
51a9faba 19161fi
698dcdb6
VZ
19162
19163echo "$ac_t""$wx_cv_type_getsockname3" 1>&6
51a9faba 19164
3a922bb4
RL
19165 if test "$wx_cv_type_getsockname3" = "unknown"; then
19166 wxUSE_SOCKETS=no
19167 echo "configure: warning: Couldn't find socklen_t synonym for this system" 1>&2
19168 else
19169 cat >> confdefs.h <<EOF
51a9faba
VZ
19170#define SOCKLEN_T $wx_cv_type_getsockname3
19171EOF
19172
3a922bb4 19173 fi
51a9faba
VZ
19174 fi
19175fi
afc31813 19176
51a9faba 19177if test "$wxUSE_SOCKETS" = "yes" ; then
698dcdb6 19178 cat >> confdefs.h <<\EOF
afc31813
VZ
19179#define wxUSE_SOCKETS 1
19180EOF
19181
70f7a477 19182 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets"
afc31813
VZ
19183fi
19184
698dcdb6 19185
dc3d889d
VZ
19186if test "$wxUSE_GUI" = "yes"; then
19187
156b2523
GD
19188 if test "$TOOLKIT" = "MAC"; then
19189 echo "configure: warning: Joystick not yet supported under Mac OS X... disabled" 1>&2
19190 wxUSE_JOYSTICK=no
19191 fi
19192 if test "$TOOLKIT" = "MOTIF"; then
19193 echo "configure: warning: Joystick not yet supported under Motif... disabled" 1>&2
19194 wxUSE_JOYSTICK=no
f79bd02d
JS
19195 fi
19196 if test "$TOOLKIT" = "X11"; then
19197 echo "configure: warning: Joystick not yet supported under X11... disabled" 1>&2
19198 wxUSE_JOYSTICK=no
156b2523
GD
19199 fi
19200
3a922bb4
RL
19201 if test "$TOOLKIT" != "MSW"; then
19202 if test "$wxUSE_JOYSTICK" = "yes"; then
19203 for ac_hdr in linux/joystick.h
10f2d63a 19204do
698dcdb6
VZ
19205ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
19206echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3bd8fb5f 19207echo "configure:19208: checking for $ac_hdr" >&5
698dcdb6
VZ
19208if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
19209 echo $ac_n "(cached) $ac_c" 1>&6
19210else
19211 cat > conftest.$ac_ext <<EOF
3bd8fb5f 19212#line 19213 "configure"
10f2d63a 19213#include "confdefs.h"
698dcdb6
VZ
19214#include <$ac_hdr>
19215EOF
19216ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3bd8fb5f 19217{ (eval echo configure:19218: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
19218ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
19219if test -z "$ac_err"; then
19220 rm -rf conftest*
19221 eval "ac_cv_header_$ac_safe=yes"
10f2d63a 19222else
698dcdb6
VZ
19223 echo "$ac_err" >&5
19224 echo "configure: failed program was:" >&5
10f2d63a 19225 cat conftest.$ac_ext >&5
698dcdb6
VZ
19226 rm -rf conftest*
19227 eval "ac_cv_header_$ac_safe=no"
10f2d63a 19228fi
698dcdb6 19229rm -f conftest*
10f2d63a 19230fi
698dcdb6
VZ
19231if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
19232 echo "$ac_t""yes" 1>&6
19233 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
19234 cat >> confdefs.h <<EOF
19235#define $ac_tr_hdr 1
10f2d63a 19236EOF
698dcdb6
VZ
19237
19238else
19239 echo "$ac_t""no" 1>&6
10f2d63a
VZ
19240fi
19241done
19242
3a922bb4
RL
19243 if test "$ac_cv_header_linux_joystick_h" != "yes"; then
19244 wxUSE_JOYSTICK=no
156b2523 19245 echo "configure: warning: Joystick not supported by this system... disabled" 1>&2
3a922bb4
RL
19246 fi
19247 fi
19248 fi
b089607b 19249
3a922bb4
RL
19250 if test "$wxUSE_JOYSTICK" = "yes"; then
19251 cat >> confdefs.h <<\EOF
10f2d63a
VZ
19252#define wxUSE_JOYSTICK 1
19253EOF
19254
3a922bb4
RL
19255 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest"
19256 fi
dc3d889d
VZ
19257fi
19258
698dcdb6 19259
b089607b
VZ
19260if test "$TOOLKIT" != "MSW"; then
19261
3a922bb4
RL
19262 HAVE_DL_FUNCS=0
19263 HAVE_SHL_FUNCS=0
0b9ab0bd 19264 if test "$wxUSE_DYNAMIC_LOADER" = "yes" -o "$wxUSE_DYNLIB_CLASS" = "yes" ; then
3a922bb4
RL
19265 if test "$USE_DARWIN" = 1; then
19266 HAVE_DL_FUNCS=1
19267 else
19268 for ac_func in dlopen
10f2d63a 19269do
698dcdb6 19270echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3bd8fb5f 19271echo "configure:19272: checking for $ac_func" >&5
698dcdb6
VZ
19272if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19273 echo $ac_n "(cached) $ac_c" 1>&6
19274else
19275 cat > conftest.$ac_ext <<EOF
3bd8fb5f 19276#line 19277 "configure"
10f2d63a
VZ
19277#include "confdefs.h"
19278/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 19279 which can conflict with char $ac_func(); below. */
10f2d63a
VZ
19280#include <assert.h>
19281/* Override any gcc2 internal prototype to avoid an error. */
19282/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
19283 builtin and then its argument prototype would still apply. */
19284char $ac_func();
19285
19286int main() {
10f2d63a
VZ
19287
19288/* The GNU C library defines this for functions which it implements
19289 to always fail with ENOSYS. Some functions are actually named
19290 something starting with __ and the normal name is an alias. */
19291#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19292choke me
19293#else
698dcdb6 19294$ac_func();
10f2d63a
VZ
19295#endif
19296
698dcdb6
VZ
19297; return 0; }
19298EOF
3bd8fb5f 19299if { (eval echo configure:19300: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
19300 rm -rf conftest*
19301 eval "ac_cv_func_$ac_func=yes"
19302else
19303 echo "configure: failed program was:" >&5
19304 cat conftest.$ac_ext >&5
19305 rm -rf conftest*
19306 eval "ac_cv_func_$ac_func=no"
19307fi
19308rm -f conftest*
19309fi
19310
19311if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19312 echo "$ac_t""yes" 1>&6
19313 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19314 cat >> confdefs.h <<EOF
19315#define $ac_tr_func 1
19316EOF
19317
3a922bb4 19318 cat >> confdefs.h <<\EOF
10f2d63a
VZ
19319#define HAVE_DLOPEN 1
19320EOF
19321
3a922bb4
RL
19322 HAVE_DL_FUNCS=1
19323
10f2d63a 19324else
698dcdb6
VZ
19325 echo "$ac_t""no" 1>&6
19326echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
3bd8fb5f 19327echo "configure:19328: checking for dlopen in -ldl" >&5
698dcdb6
VZ
19328ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
19329if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
19330 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 19331else
698dcdb6 19332 ac_save_LIBS="$LIBS"
10f2d63a 19333LIBS="-ldl $LIBS"
698dcdb6 19334cat > conftest.$ac_ext <<EOF
3bd8fb5f 19335#line 19336 "configure"
10f2d63a
VZ
19336#include "confdefs.h"
19337/* Override any gcc2 internal prototype to avoid an error. */
19338/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
19339 builtin and then its argument prototype would still apply. */
19340char dlopen();
19341
19342int main() {
19343dlopen()
19344; return 0; }
19345EOF
3bd8fb5f 19346if { (eval echo configure:19347: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
19347 rm -rf conftest*
19348 eval "ac_cv_lib_$ac_lib_var=yes"
19349else
19350 echo "configure: failed program was:" >&5
19351 cat conftest.$ac_ext >&5
19352 rm -rf conftest*
19353 eval "ac_cv_lib_$ac_lib_var=no"
19354fi
19355rm -f conftest*
19356LIBS="$ac_save_LIBS"
19357
19358fi
19359if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
19360 echo "$ac_t""yes" 1>&6
19361
3a922bb4 19362 cat >> confdefs.h <<\EOF
10f2d63a
VZ
19363#define HAVE_DLOPEN 1
19364EOF
19365
3a922bb4 19366 HAVE_DL_FUNCS=1
3d63bc3a 19367 DL_LINK=" -ldl$DL_LINK"
3a922bb4 19368
10f2d63a 19369else
698dcdb6 19370 echo "$ac_t""no" 1>&6
10f2d63a 19371
3a922bb4 19372 for ac_func in shl_load
10f2d63a 19373do
698dcdb6 19374echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3bd8fb5f 19375echo "configure:19376: checking for $ac_func" >&5
698dcdb6
VZ
19376if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19377 echo $ac_n "(cached) $ac_c" 1>&6
19378else
19379 cat > conftest.$ac_ext <<EOF
3bd8fb5f 19380#line 19381 "configure"
10f2d63a
VZ
19381#include "confdefs.h"
19382/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 19383 which can conflict with char $ac_func(); below. */
10f2d63a
VZ
19384#include <assert.h>
19385/* Override any gcc2 internal prototype to avoid an error. */
19386/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
19387 builtin and then its argument prototype would still apply. */
19388char $ac_func();
19389
19390int main() {
10f2d63a
VZ
19391
19392/* The GNU C library defines this for functions which it implements
19393 to always fail with ENOSYS. Some functions are actually named
19394 something starting with __ and the normal name is an alias. */
19395#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19396choke me
19397#else
698dcdb6 19398$ac_func();
10f2d63a
VZ
19399#endif
19400
698dcdb6
VZ
19401; return 0; }
19402EOF
3bd8fb5f 19403if { (eval echo configure:19404: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
19404 rm -rf conftest*
19405 eval "ac_cv_func_$ac_func=yes"
19406else
19407 echo "configure: failed program was:" >&5
19408 cat conftest.$ac_ext >&5
19409 rm -rf conftest*
19410 eval "ac_cv_func_$ac_func=no"
19411fi
19412rm -f conftest*
19413fi
19414
19415if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19416 echo "$ac_t""yes" 1>&6
19417 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19418 cat >> confdefs.h <<EOF
19419#define $ac_tr_func 1
19420EOF
19421
3a922bb4 19422 cat >> confdefs.h <<\EOF
10f2d63a
VZ
19423#define HAVE_SHL_LOAD 1
19424EOF
19425
3a922bb4
RL
19426 HAVE_SHL_FUNCS=1
19427
10f2d63a 19428else
698dcdb6
VZ
19429 echo "$ac_t""no" 1>&6
19430echo $ac_n "checking for dld in -lshl_load""... $ac_c" 1>&6
3bd8fb5f 19431echo "configure:19432: checking for dld in -lshl_load" >&5
698dcdb6
VZ
19432ac_lib_var=`echo shl_load'_'dld | sed 'y%./+-%__p_%'`
19433if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
19434 echo $ac_n "(cached) $ac_c" 1>&6
f6bcfd97 19435else
698dcdb6 19436 ac_save_LIBS="$LIBS"
f6bcfd97 19437LIBS="-lshl_load $LIBS"
698dcdb6 19438cat > conftest.$ac_ext <<EOF
3bd8fb5f 19439#line 19440 "configure"
f6bcfd97
BP
19440#include "confdefs.h"
19441/* Override any gcc2 internal prototype to avoid an error. */
19442/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
19443 builtin and then its argument prototype would still apply. */
19444char dld();
19445
19446int main() {
19447dld()
19448; return 0; }
19449EOF
3bd8fb5f 19450if { (eval echo configure:19451: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
19451 rm -rf conftest*
19452 eval "ac_cv_lib_$ac_lib_var=yes"
19453else
19454 echo "configure: failed program was:" >&5
19455 cat conftest.$ac_ext >&5
19456 rm -rf conftest*
19457 eval "ac_cv_lib_$ac_lib_var=no"
19458fi
19459rm -f conftest*
19460LIBS="$ac_save_LIBS"
f6bcfd97 19461
698dcdb6
VZ
19462fi
19463if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
19464 echo "$ac_t""yes" 1>&6
19465
3a922bb4 19466 HAVE_SHL_FUNCS=1
3d63bc3a 19467 DL_LINK=" -ldld$DL_LINK"
3a922bb4 19468
698dcdb6
VZ
19469else
19470 echo "$ac_t""no" 1>&6
f6bcfd97
BP
19471fi
19472
3a922bb4 19473
10f2d63a
VZ
19474fi
19475done
19476
3a922bb4 19477
10f2d63a
VZ
19478fi
19479
3a922bb4 19480
10f2d63a
VZ
19481fi
19482done
19483
1e487827 19484
3a922bb4
RL
19485 if test "$HAVE_DL_FUNCS" = 1; then
19486 for ac_func in dlerror
f6bcfd97 19487do
698dcdb6 19488echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3bd8fb5f 19489echo "configure:19490: checking for $ac_func" >&5
698dcdb6
VZ
19490if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19491 echo $ac_n "(cached) $ac_c" 1>&6
19492else
19493 cat > conftest.$ac_ext <<EOF
3bd8fb5f 19494#line 19495 "configure"
f6bcfd97
BP
19495#include "confdefs.h"
19496/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 19497 which can conflict with char $ac_func(); below. */
f6bcfd97
BP
19498#include <assert.h>
19499/* Override any gcc2 internal prototype to avoid an error. */
19500/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
19501 builtin and then its argument prototype would still apply. */
19502char $ac_func();
19503
19504int main() {
f6bcfd97
BP
19505
19506/* The GNU C library defines this for functions which it implements
19507 to always fail with ENOSYS. Some functions are actually named
19508 something starting with __ and the normal name is an alias. */
19509#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19510choke me
19511#else
698dcdb6 19512$ac_func();
f6bcfd97
BP
19513#endif
19514
698dcdb6
VZ
19515; return 0; }
19516EOF
3bd8fb5f 19517if { (eval echo configure:19518: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
19518 rm -rf conftest*
19519 eval "ac_cv_func_$ac_func=yes"
19520else
19521 echo "configure: failed program was:" >&5
19522 cat conftest.$ac_ext >&5
19523 rm -rf conftest*
19524 eval "ac_cv_func_$ac_func=no"
19525fi
19526rm -f conftest*
19527fi
19528
19529if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19530 echo "$ac_t""yes" 1>&6
19531 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19532 cat >> confdefs.h <<EOF
19533#define $ac_tr_func 1
19534EOF
19535 cat >> confdefs.h <<\EOF
f6bcfd97
BP
19536#define HAVE_DLERROR 1
19537EOF
19538
19539else
698dcdb6
VZ
19540 echo "$ac_t""no" 1>&6
19541echo $ac_n "checking for dlerror in -ldl""... $ac_c" 1>&6
3bd8fb5f 19542echo "configure:19543: checking for dlerror in -ldl" >&5
698dcdb6
VZ
19543ac_lib_var=`echo dl'_'dlerror | sed 'y%./+-%__p_%'`
19544if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
19545 echo $ac_n "(cached) $ac_c" 1>&6
f6bcfd97 19546else
698dcdb6 19547 ac_save_LIBS="$LIBS"
f6bcfd97 19548LIBS="-ldl $LIBS"
698dcdb6 19549cat > conftest.$ac_ext <<EOF
3bd8fb5f 19550#line 19551 "configure"
f6bcfd97
BP
19551#include "confdefs.h"
19552/* Override any gcc2 internal prototype to avoid an error. */
19553/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
19554 builtin and then its argument prototype would still apply. */
19555char dlerror();
19556
19557int main() {
19558dlerror()
19559; return 0; }
19560EOF
3bd8fb5f 19561if { (eval echo configure:19562: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
19562 rm -rf conftest*
19563 eval "ac_cv_lib_$ac_lib_var=yes"
19564else
19565 echo "configure: failed program was:" >&5
19566 cat conftest.$ac_ext >&5
19567 rm -rf conftest*
19568 eval "ac_cv_lib_$ac_lib_var=no"
19569fi
19570rm -f conftest*
19571LIBS="$ac_save_LIBS"
19572
19573fi
19574if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
19575 echo "$ac_t""yes" 1>&6
19576 cat >> confdefs.h <<\EOF
f6bcfd97
BP
19577#define HAVE_DLERROR 1
19578EOF
19579
698dcdb6
VZ
19580else
19581 echo "$ac_t""no" 1>&6
f6bcfd97
BP
19582fi
19583
19584fi
19585done
19586
3a922bb4
RL
19587 fi
19588 fi
f6bcfd97 19589
3a922bb4
RL
19590 if test "$HAVE_DL_FUNCS" = 0; then
19591 if test "$HAVE_SHL_FUNCS" = 0; then
19592 if test "$USE_UNIX" = 1; then
19593 echo "configure: warning: Missing dynamic loading support, several features will be disabled" 1>&2
0b9ab0bd 19594 wxUSE_DYNAMIC_LOADER=no
3a922bb4
RL
19595 wxUSE_DYNLIB_CLASS=no
19596 else
19597 echo "configure: warning: Assuming wxLibrary class works on this platform" 1>&2
19598 fi
19599 fi
10f2d63a
VZ
19600 fi
19601 fi
19602fi
19603
0b9ab0bd
RL
19604if test "$wxUSE_DYNAMIC_LOADER" = "yes" ; then
19605 cat >> confdefs.h <<\EOF
19606#define wxUSE_DYNAMIC_LOADER 1
19607EOF
19608
19609elif test "$wxUSE_DYNLIB_CLASS" = "yes" ; then
698dcdb6 19610 cat >> confdefs.h <<\EOF
10f2d63a
VZ
19611#define wxUSE_DYNLIB_CLASS 1
19612EOF
19613
19614fi
19615
698dcdb6 19616
1e6feb95
VZ
19617if test "$wxUSE_FONTMAP" = "yes" ; then
19618 cat >> confdefs.h <<\EOF
19619#define wxUSE_FONTMAP 1
19620EOF
19621
19622fi
19623
10f2d63a 19624if test "$wxUSE_UNICODE" = "yes" ; then
698dcdb6 19625 cat >> confdefs.h <<\EOF
10f2d63a
VZ
19626#define wxUSE_UNICODE 1
19627EOF
19628
3bd8fb5f 19629
bbc3925a
VS
19630 if test "$wxUSE_MSW" != 1; then
19631 wxUSE_UNICODE_MSLU=no
19632 fi
a72a4bfa
VS
19633
19634 if test "$wxUSE_MSW" = 1 -a "$wxUSE_UNICODE_MSLU" = "yes"; then
19635 echo $ac_n "checking for main in -lunicows""... $ac_c" 1>&6
3bd8fb5f 19636echo "configure:19637: checking for main in -lunicows" >&5
a72a4bfa
VS
19637ac_lib_var=`echo unicows'_'main | sed 'y%./+-%__p_%'`
19638if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
19639 echo $ac_n "(cached) $ac_c" 1>&6
19640else
19641 ac_save_LIBS="$LIBS"
19642LIBS="-lunicows $LIBS"
19643cat > conftest.$ac_ext <<EOF
3bd8fb5f 19644#line 19645 "configure"
a72a4bfa
VS
19645#include "confdefs.h"
19646
19647int main() {
19648main()
19649; return 0; }
19650EOF
3bd8fb5f 19651if { (eval echo configure:19652: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a72a4bfa
VS
19652 rm -rf conftest*
19653 eval "ac_cv_lib_$ac_lib_var=yes"
19654else
19655 echo "configure: failed program was:" >&5
19656 cat conftest.$ac_ext >&5
19657 rm -rf conftest*
19658 eval "ac_cv_lib_$ac_lib_var=no"
19659fi
19660rm -f conftest*
19661LIBS="$ac_save_LIBS"
19662
19663fi
19664if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
19665 echo "$ac_t""yes" 1>&6
19666
19667 cat >> confdefs.h <<\EOF
19668#define wxUSE_UNICODE_MSLU 1
19669EOF
19670
19671
19672else
19673 echo "$ac_t""no" 1>&6
19674
19675 echo "configure: warning: Compiler doesn't support MSLU (libunicows.a), disabled.
19676 Applications will only run on Windows NT/2000/XP!" 1>&2
19677 wxUSE_UNICODE_MSLU=no
19678
19679fi
19680
19681 fi
10f2d63a
VZ
19682fi
19683
10f2d63a 19684if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then
698dcdb6 19685 cat >> confdefs.h <<\EOF
10f2d63a
VZ
19686#define wxUSE_EXPERIMENTAL_PRINTF 1
19687EOF
19688
19689fi
19690
698dcdb6 19691
698dcdb6 19692
10f2d63a
VZ
19693IODBC_C_SRC=""
19694if test "$wxUSE_ODBC" = "yes" ; then
698dcdb6 19695 cat >> confdefs.h <<\EOF
10f2d63a
VZ
19696#define wxUSE_ODBC 1
19697EOF
19698
19699 WXODBCFLAG="-D_IODBC_"
19700 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db"
10f2d63a
VZ
19701fi
19702
698dcdb6 19703
10f2d63a 19704if test "$wxUSE_POSTSCRIPT" = "yes" ; then
698dcdb6 19705 cat >> confdefs.h <<\EOF
10f2d63a
VZ
19706#define wxUSE_POSTSCRIPT 1
19707EOF
19708
19709fi
19710
698dcdb6 19711cat >> confdefs.h <<\EOF
10f2d63a
VZ
19712#define wxUSE_AFM_FOR_POSTSCRIPT 1
19713EOF
19714
698dcdb6
VZ
19715
19716cat >> confdefs.h <<\EOF
10f2d63a
VZ
19717#define wxUSE_NORMALIZED_PS_FONTS 1
19718EOF
19719
698dcdb6
VZ
19720
19721
10f2d63a 19722if test "$wxUSE_CONSTRAINTS" = "yes"; then
698dcdb6 19723 cat >> confdefs.h <<\EOF
10f2d63a
VZ
19724#define wxUSE_CONSTRAINTS 1
19725EOF
19726
19727 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout"
19728fi
19729
19730if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
fc26f4ab 19731 if test "$wxUSE_UNIVERSAL" = "yes"; then
0feee163 19732 echo "configure: warning: MDI not yet supported for wxUniversal... disabled" 1>&2
fc26f4ab
RL
19733 wxUSE_MDI_ARCHITECTURE=no
19734 fi
19735
19736 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
19737 cat >> confdefs.h <<\EOF
10f2d63a
VZ
19738#define wxUSE_MDI_ARCHITECTURE 1
19739EOF
19740
fc26f4ab
RL
19741 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi"
19742 fi
10f2d63a
VZ
19743fi
19744
19745if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then
698dcdb6 19746 cat >> confdefs.h <<\EOF
10f2d63a
VZ
19747#define wxUSE_DOC_VIEW_ARCHITECTURE 1
19748EOF
19749
19750 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview"
19751 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
19752 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi"
19753 fi
19754fi
19755
19756if test "$wxUSE_HELP" = "yes"; then
698dcdb6 19757 cat >> confdefs.h <<\EOF
10f2d63a
VZ
19758#define wxUSE_HELP 1
19759EOF
19760
19761 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help"
3379ed37 19762
77e13408 19763 if test "$wxUSE_MSW" = 1; then
031d8228 19764 if test "$wxUSE_MS_HTML_HELP" = "yes"; then
3b7bc64a 19765 cat >> confdefs.h <<\EOF
29fd3c0c
VS
19766#define wxUSE_MS_HTML_HELP 1
19767EOF
19768
3e44f09d 19769 fi
3379ed37 19770 fi
031d8228
VS
19771
19772 if test "$wxUSE_WXHTML_HELP" = "yes"; then
19773 if test "$wxUSE_HTML" = "yes"; then
19774 cat >> confdefs.h <<\EOF
19775#define wxUSE_WXHTML_HELP 1
19776EOF
19777
19778 else
19779 echo "configure: warning: Cannot use wxHTML-based help without wxHTML so it won't be compiled" 1>&2
19780 wxUSE_WXHTML_HELP=no
19781 fi
19782 fi
10f2d63a
VZ
19783fi
19784
19785if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
19786 if test "$wxUSE_CONSTRAINTS" != "yes"; then
698dcdb6 19787 echo "configure: warning: Printing support cannot be used without constraints so it won't be compiled without it" 1>&2
10f2d63a 19788 else
698dcdb6 19789 cat >> confdefs.h <<\EOF
10f2d63a
VZ
19790#define wxUSE_PRINTING_ARCHITECTURE 1
19791EOF
19792
19793 fi
19794 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing"
19795fi
19796
19797if test "$wxUSE_PROLOGIO" = "yes" ; then
698dcdb6 19798 cat >> confdefs.h <<\EOF
10f2d63a
VZ
19799#define wxUSE_PROLOGIO 1
19800EOF
19801
19802fi
19803
19804if test "$wxUSE_RESOURCES" = "yes" ; then
e334d0ea
JS
19805 if test "$wxUSE_NANOX" = "yes"; then
19806 echo "configure: warning: Cannot use resource database functions in NanoX" 1>&2
19807 else
19808 cat >> confdefs.h <<\EOF
10f2d63a
VZ
19809#define wxUSE_RESOURCES 1
19810EOF
19811
e334d0ea
JS
19812 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS resource"
19813 fi
10f2d63a
VZ
19814fi
19815
19816if test "$wxUSE_X_RESOURCES" = "yes"; then
698dcdb6 19817 cat >> confdefs.h <<\EOF
10f2d63a
VZ
19818#define wxUSE_X_RESOURCES 1
19819EOF
19820
19821fi
19822
698dcdb6 19823
77e13408
RL
19824if test "$wxUSE_MSW" = 1 -a \( "$wxUSE_DATAOBJ" = "yes" \
19825 -o "$wxUSE_CLIPBOARD" = "yes" \
19826 -o "$wxUSE_DRAG_AND_DROP" = "yes" \) ; then
2b9bdf71 19827 for ac_hdr in ole2.h
10f2d63a 19828do
698dcdb6
VZ
19829ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
19830echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3bd8fb5f 19831echo "configure:19832: checking for $ac_hdr" >&5
698dcdb6
VZ
19832if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
19833 echo $ac_n "(cached) $ac_c" 1>&6
19834else
19835 cat > conftest.$ac_ext <<EOF
3bd8fb5f 19836#line 19837 "configure"
10f2d63a 19837#include "confdefs.h"
698dcdb6
VZ
19838#include <$ac_hdr>
19839EOF
19840ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3bd8fb5f 19841{ (eval echo configure:19842: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
19842ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
19843if test -z "$ac_err"; then
19844 rm -rf conftest*
19845 eval "ac_cv_header_$ac_safe=yes"
1e487827 19846else
698dcdb6
VZ
19847 echo "$ac_err" >&5
19848 echo "configure: failed program was:" >&5
10f2d63a 19849 cat conftest.$ac_ext >&5
698dcdb6
VZ
19850 rm -rf conftest*
19851 eval "ac_cv_header_$ac_safe=no"
10f2d63a 19852fi
698dcdb6 19853rm -f conftest*
10f2d63a 19854fi
698dcdb6
VZ
19855if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
19856 echo "$ac_t""yes" 1>&6
19857 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
19858 cat >> confdefs.h <<EOF
19859#define $ac_tr_hdr 1
10f2d63a 19860EOF
698dcdb6
VZ
19861
19862else
19863 echo "$ac_t""no" 1>&6
10f2d63a
VZ
19864fi
19865done
19866
698dcdb6 19867
2b9bdf71
VZ
19868 if test "$ac_cv_header_ole2_h" = "yes" ; then
19869 if test "$GCC" = yes ; then
19870 ALL_OBJECTS="$ALL_OBJECTS \$(OLEOBJS)"
2b9bdf71 19871 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fvtable-thunks"
3d63bc3a 19872 LIBS=" -lrpcrt4 -loleaut32 -lole32 -luuid$LIBS"
2b9bdf71 19873 cat >> confdefs.h <<\EOF
4f11a343
VS
19874#define wxUSE_OLE 1
19875EOF
19876
b64f0a5f 19877
2b9bdf71
VZ
19878 fi
19879
19880 cat >> confdefs.h <<\EOF
19881#define wxUSE_DATAOBJ 1
19882EOF
19883
19884 else
19885 echo "configure: warning: Some features disabled because OLE headers not found" 1>&2
19886
19887 wxUSE_CLIPBOARD=no
19888 wxUSE_DRAG_AND_DROP=no
19889 wxUSE_DATAOBJ=no
19890 fi
19891
77e13408 19892 if test "$wxUSE_METAFILE" = "yes"; then
2b9bdf71 19893 cat >> confdefs.h <<\EOF
b64f0a5f
RL
19894#define wxUSE_METAFILE 1
19895EOF
19896
2b9bdf71
VZ
19897
19898 cat >> confdefs.h <<\EOF
b64f0a5f
RL
19899#define wxUSE_ENH_METAFILE 1
19900EOF
19901
2b9bdf71
VZ
19902 fi
19903fi
19904
19905if test "$wxUSE_IPC" = "yes"; then
19906 if test "$wxUSE_SOCKETS" != "yes"; then
156b2523 19907 echo "configure: warning: wxWindows IPC classes require sockets... disabled" 1>&2
2b9bdf71
VZ
19908 fi
19909
19910 cat >> confdefs.h <<\EOF
19911#define wxUSE_IPC 1
19912EOF
19913
19914fi
19915
19916if test "$wxUSE_CLIPBOARD" = "yes"; then
6c657b52
VS
19917 if test "$wxUSE_MGL" = 1; then
19918 echo "configure: warning: Clipboard not yet supported under MGL... disabled" 1>&2
19919 wxUSE_CLIPBOARD=no
19920 fi
19921
19922 if test "$wxUSE_CLIPBOARD" = "yes"; then
19923 cat >> confdefs.h <<\EOF
2b9bdf71
VZ
19924#define wxUSE_CLIPBOARD 1
19925EOF
19926
673f4220 19927
6c657b52 19928 cat >> confdefs.h <<\EOF
673f4220
VZ
19929#define wxUSE_DATAOBJ 1
19930EOF
19931
6c657b52 19932 fi
2b9bdf71
VZ
19933fi
19934
19935if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then
19936 if test "$wxUSE_GTK" = 1; then
19937 if test "$WXGTK12" != 1; then
156b2523 19938 echo "configure: warning: Drag and drop is only supported under GTK+ 1.2... disabled" 1>&2
10f2d63a
VZ
19939 wxUSE_DRAG_AND_DROP=no
19940 fi
19941 fi
19942
2b9bdf71 19943 if test "$wxUSE_MOTIF" = 1; then
156b2523 19944 echo "configure: warning: Drag and drop not yet supported under Motif... disabled" 1>&2
2b9bdf71
VZ
19945 wxUSE_DRAG_AND_DROP=no
19946 fi
19947
f79bd02d
JS
19948 if test "$wxUSE_X11" = 1; then
19949 echo "configure: warning: Drag and drop not yet supported under X11... disabled" 1>&2
19950 wxUSE_DRAG_AND_DROP=no
19951 fi
19952
6c657b52
VS
19953 if test "$wxUSE_MGL" = 1; then
19954 echo "configure: warning: Drag and drop not yet supported under MGL... disabled" 1>&2
19955 wxUSE_DRAG_AND_DROP=no
19956 fi
19957
10f2d63a 19958 if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
698dcdb6 19959 cat >> confdefs.h <<\EOF
10f2d63a
VZ
19960#define wxUSE_DRAG_AND_DROP 1
19961EOF
19962
19963 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd"
19964 fi
19965
19966fi
19967
19968if test "$wxUSE_SPLINES" = "yes" ; then
698dcdb6 19969 cat >> confdefs.h <<\EOF
10f2d63a
VZ
19970#define wxUSE_SPLINES 1
19971EOF
19972
19973fi
19974
698dcdb6 19975
1e6feb95
VZ
19976USES_CONTROLS=0
19977if test "$wxUSE_CONTROLS" = "yes"; then
19978 USES_CONTROLS=1
19979fi
19980
10f2d63a 19981if test "$wxUSE_ACCEL" = "yes"; then
698dcdb6 19982 cat >> confdefs.h <<\EOF
10f2d63a
VZ
19983#define wxUSE_ACCEL 1
19984EOF
19985
1e6feb95
VZ
19986 USES_CONTROLS=1
19987fi
19988
19989if test "$wxUSE_BUTTON" = "yes"; then
19990 cat >> confdefs.h <<\EOF
19991#define wxUSE_BUTTON 1
19992EOF
19993
19994 USES_CONTROLS=1
19995fi
19996
19997if test "$wxUSE_BMPBUTTON" = "yes"; then
19998 cat >> confdefs.h <<\EOF
19999#define wxUSE_BMPBUTTON 1
20000EOF
20001
20002 USES_CONTROLS=1
20003fi
20004
20005if test "$wxUSE_CALCTRL" = "yes"; then
20006 cat >> confdefs.h <<\EOF
20007#define wxUSE_CALENDARCTRL 1
20008EOF
20009
20010 USES_CONTROLS=1
20011 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar"
10f2d63a
VZ
20012fi
20013
20014if test "$wxUSE_CARET" = "yes"; then
698dcdb6 20015 cat >> confdefs.h <<\EOF
10f2d63a
VZ
20016#define wxUSE_CARET 1
20017EOF
20018
1e6feb95 20019 USES_CONTROLS=1
10f2d63a
VZ
20020 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret"
20021fi
20022
20023if test "$wxUSE_COMBOBOX" = "yes"; then
698dcdb6 20024 cat >> confdefs.h <<\EOF
10f2d63a
VZ
20025#define wxUSE_COMBOBOX 1
20026EOF
20027
1e6feb95 20028 USES_CONTROLS=1
10f2d63a
VZ
20029fi
20030
20031if test "$wxUSE_CHOICE" = "yes"; then
698dcdb6 20032 cat >> confdefs.h <<\EOF
10f2d63a
VZ
20033#define wxUSE_CHOICE 1
20034EOF
20035
1e6feb95 20036 USES_CONTROLS=1
10f2d63a
VZ
20037fi
20038
20039if test "$wxUSE_CHECKBOX" = "yes"; then
698dcdb6 20040 cat >> confdefs.h <<\EOF
10f2d63a
VZ
20041#define wxUSE_CHECKBOX 1
20042EOF
20043
1e6feb95 20044 USES_CONTROLS=1
10f2d63a
VZ
20045fi
20046
20047if test "$wxUSE_CHECKLST" = "yes"; then
698dcdb6 20048 cat >> confdefs.h <<\EOF
10f2d63a
VZ
20049#define wxUSE_CHECKLISTBOX 1
20050EOF
20051
1e6feb95 20052 USES_CONTROLS=1
10f2d63a
VZ
20053 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst"
20054fi
20055
20056if test "$wxUSE_GAUGE" = "yes"; then
698dcdb6 20057 cat >> confdefs.h <<\EOF
10f2d63a
VZ
20058#define wxUSE_GAUGE 1
20059EOF
20060
1e6feb95 20061 USES_CONTROLS=1
10f2d63a
VZ
20062fi
20063
d6a55c4b
VZ
20064if test "$wxUSE_NEW_GRID" = "yes"; then
20065 wxUSE_GRID="yes"
698dcdb6 20066 cat >> confdefs.h <<\EOF
d6a55c4b 20067#define wxUSE_NEW_GRID 1
10f2d63a
VZ
20068EOF
20069
1e6feb95 20070 USES_CONTROLS=1
d6a55c4b 20071 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS newgrid"
10f2d63a
VZ
20072fi
20073
d6a55c4b 20074if test "$wxUSE_GRID" = "yes"; then
698dcdb6 20075 cat >> confdefs.h <<\EOF
d6a55c4b 20076#define wxUSE_GRID 1
10f2d63a
VZ
20077EOF
20078
1e6feb95 20079 USES_CONTROLS=1
d6a55c4b 20080 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid"
10f2d63a
VZ
20081fi
20082
20083if test "$wxUSE_IMAGLIST" = "yes"; then
698dcdb6 20084 cat >> confdefs.h <<\EOF
10f2d63a
VZ
20085#define wxUSE_IMAGLIST 1
20086EOF
20087
20088fi
20089
20090if test "$wxUSE_LISTBOX" = "yes"; then
698dcdb6 20091 cat >> confdefs.h <<\EOF
10f2d63a
VZ
20092#define wxUSE_LISTBOX 1
20093EOF
20094
1e6feb95 20095 USES_CONTROLS=1
10f2d63a
VZ
20096fi
20097
20098if test "$wxUSE_LISTCTRL" = "yes"; then
20099 if test "$wxUSE_IMAGLIST" = "yes"; then
698dcdb6 20100 cat >> confdefs.h <<\EOF
10f2d63a
VZ
20101#define wxUSE_LISTCTRL 1
20102EOF
20103
1e6feb95 20104 USES_CONTROLS=1
10f2d63a
VZ
20105 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl"
20106 else
698dcdb6 20107 echo "configure: warning: wxListCtrl requires wxImageList and won't be compiled without it" 1>&2
10f2d63a
VZ
20108 fi
20109fi
20110
20111if test "$wxUSE_NOTEBOOK" = "yes"; then
698dcdb6 20112 cat >> confdefs.h <<\EOF
10f2d63a
VZ
20113#define wxUSE_NOTEBOOK 1
20114EOF
20115
1e6feb95 20116 USES_CONTROLS=1
10f2d63a
VZ
20117 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook"
20118fi
20119
24176f2c
GD
20120if test "$wxUSE_PROPSHEET" = "yes"; then
20121 cat >> confdefs.h <<\EOF
20122#define wxUSE_PROPSHEET 1
20123EOF
20124
20125 USES_CONTROLS=1
20126 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS proplist"
20127fi
20128
10f2d63a 20129if test "$wxUSE_RADIOBOX" = "yes"; then
698dcdb6 20130 cat >> confdefs.h <<\EOF
10f2d63a
VZ
20131#define wxUSE_RADIOBOX 1
20132EOF
20133
1e6feb95 20134 USES_CONTROLS=1
10f2d63a
VZ
20135fi
20136
20137if test "$wxUSE_RADIOBTN" = "yes"; then
698dcdb6 20138 cat >> confdefs.h <<\EOF
10f2d63a
VZ
20139#define wxUSE_RADIOBTN 1
20140EOF
20141
1e6feb95 20142 USES_CONTROLS=1
10f2d63a
VZ
20143fi
20144
20145if test "$wxUSE_SASH" = "yes"; then
698dcdb6 20146 cat >> confdefs.h <<\EOF
10f2d63a
VZ
20147#define wxUSE_SASH 1
20148EOF
20149
20150 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest"
20151fi
20152
20153if test "$wxUSE_SCROLLBAR" = "yes"; then
698dcdb6 20154 cat >> confdefs.h <<\EOF
10f2d63a
VZ
20155#define wxUSE_SCROLLBAR 1
20156EOF
20157
1e6feb95 20158 USES_CONTROLS=1
741a9306 20159 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub"
10f2d63a
VZ
20160fi
20161
20162if test "$wxUSE_SLIDER" = "yes"; then
698dcdb6 20163 cat >> confdefs.h <<\EOF
10f2d63a
VZ
20164#define wxUSE_SLIDER 1
20165EOF
20166
1e6feb95 20167 USES_CONTROLS=1
10f2d63a
VZ
20168fi
20169
20170if test "$wxUSE_SPINBTN" = "yes"; then
698dcdb6 20171 cat >> confdefs.h <<\EOF
10f2d63a
VZ
20172#define wxUSE_SPINBTN 1
20173EOF
20174
1e6feb95 20175 USES_CONTROLS=1
10f2d63a
VZ
20176fi
20177
56cfaa52 20178if test "$wxUSE_SPINCTRL" = "yes"; then
698dcdb6 20179 cat >> confdefs.h <<\EOF
56cfaa52
RR
20180#define wxUSE_SPINCTRL 1
20181EOF
20182
1e6feb95 20183 USES_CONTROLS=1
56cfaa52
RR
20184fi
20185
10f2d63a 20186if test "$wxUSE_SPLITTER" = "yes"; then
698dcdb6 20187 cat >> confdefs.h <<\EOF
10f2d63a
VZ
20188#define wxUSE_SPLITTER 1
20189EOF
20190
20191 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter"
20192fi
20193
20194if test "$wxUSE_STATBMP" = "yes"; then
698dcdb6 20195 cat >> confdefs.h <<\EOF
10f2d63a
VZ
20196#define wxUSE_STATBMP 1
20197EOF
20198
1e6feb95 20199 USES_CONTROLS=1
10f2d63a
VZ
20200fi
20201
20202if test "$wxUSE_STATBOX" = "yes"; then
698dcdb6 20203 cat >> confdefs.h <<\EOF
10f2d63a
VZ
20204#define wxUSE_STATBOX 1
20205EOF
20206
1e6feb95
VZ
20207 USES_CONTROLS=1
20208fi
20209
20210if test "$wxUSE_STATTEXT" = "yes"; then
20211 cat >> confdefs.h <<\EOF
20212#define wxUSE_STATTEXT 1
20213EOF
20214
20215 USES_CONTROLS=1
10f2d63a
VZ
20216fi
20217
20218if test "$wxUSE_STATLINE" = "yes"; then
20219 if test "$wxUSE_WINE" = 1 ; then
698dcdb6 20220 echo "configure: warning: wxStaticLine is not supported under WINE" 1>&2
10f2d63a 20221 else
698dcdb6 20222 cat >> confdefs.h <<\EOF
10f2d63a
VZ
20223#define wxUSE_STATLINE 1
20224EOF
20225
1e6feb95 20226 USES_CONTROLS=1
10f2d63a
VZ
20227 fi
20228fi
20229
20230if test "$wxUSE_STATUSBAR" = "yes"; then
698dcdb6 20231 cat >> confdefs.h <<\EOF
10f2d63a
VZ
20232#define wxUSE_STATUSBAR 1
20233EOF
20234
1e6feb95 20235 USES_CONTROLS=1
698dcdb6 20236
2286341c 20237 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar"
10f2d63a
VZ
20238fi
20239
20240if test "$wxUSE_TABDIALOG" = "yes"; then
698dcdb6 20241 cat >> confdefs.h <<\EOF
10f2d63a
VZ
20242#define wxUSE_TAB_DIALOG 1
20243EOF
20244
20245 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS tab"
20246fi
20247
1e6feb95
VZ
20248if test "$wxUSE_TEXTCTRL" = "yes"; then
20249 cat >> confdefs.h <<\EOF
20250#define wxUSE_TEXTCTRL 1
20251EOF
20252
20253 USES_CONTROLS=1
20254 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text"
20255fi
20256
1db8dc4a 20257if test "$wxUSE_TOGGLEBTN" = "yes"; then
156b2523
GD
20258 if test "$wxUSE_MAC" = 1; then
20259 echo "configure: warning: Toggle button not yet supported under Mac OS X... disabled" 1>&2
20260 wxUSE_TOGGLEBTN=no
20261 fi
20262 if test "$wxUSE_UNIVERSAL" = "yes"; then
0feee163 20263 echo "configure: warning: Toggle button not yet supported under wxUniversal... disabled" 1>&2
a45d7ab7
GD
20264 wxUSE_TOGGLEBTN=no
20265 fi
20266
20267 if test "$wxUSE_TOGGLEBTN" = "yes"; then
20268 cat >> confdefs.h <<\EOF
1db8dc4a
VZ
20269#define wxUSE_TOGGLEBTN 1
20270EOF
20271
1e6feb95 20272 USES_CONTROLS=1
a45d7ab7 20273 fi
1db8dc4a
VZ
20274fi
20275
360d6699 20276if test "$wxUSE_TOOLBAR_SIMPLE" = "yes"; then
698dcdb6 20277 cat >> confdefs.h <<\EOF
360d6699
VZ
20278#define wxUSE_TOOLBAR_SIMPLE 1
20279EOF
20280
20281 wxUSE_TOOLBAR="yes"
1e6feb95 20282 USES_CONTROLS=1
360d6699
VZ
20283fi
20284
10f2d63a 20285if test "$wxUSE_TOOLBAR" = "yes"; then
698dcdb6 20286 cat >> confdefs.h <<\EOF
10f2d63a
VZ
20287#define wxUSE_TOOLBAR 1
20288EOF
20289
1e6feb95 20290 USES_CONTROLS=1
698dcdb6 20291
360d6699
VZ
20292 if test "$wxUSE_TOOLBAR_SIMPLE" != "yes"; then
20293 wxUSE_TOOLBAR_NATIVE="yes"
20294 fi
20295
1e6feb95
VZ
20296 if test "$wxUSE_TOOLBAR_NATIVE" = "yes"; then
20297 cat >> confdefs.h <<\EOF
360d6699
VZ
20298#define wxUSE_TOOLBAR_NATIVE 1
20299EOF
20300
1e6feb95
VZ
20301 USES_CONTROLS=1
20302 fi
20303
20304 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar"
360d6699
VZ
20305fi
20306
10f2d63a
VZ
20307if test "$wxUSE_TOOLTIPS" = "yes"; then
20308 if test "$wxUSE_MOTIF" = 1; then
156b2523 20309 echo "configure: warning: wxTooltip not supported yet under Motif... disabled" 1>&2
10f2d63a
VZ
20310 else
20311 if test "$wxUSE_WINE" = 1; then
156b2523 20312 echo "configure: warning: wxTooltip not supported under WINE... disabled" 1>&2
10f2d63a 20313 else
69d27ff7 20314 if test "$wxUSE_UNIVERSAL" = "yes"; then
0feee163 20315 echo "configure: warning: wxTooltip not supported yet in wxUniversal... disabled" 1>&2
69d27ff7 20316 else
3c011993 20317 cat >> confdefs.h <<\EOF
10f2d63a
VZ
20318#define wxUSE_TOOLTIPS 1
20319EOF
20320
69d27ff7 20321 fi
10f2d63a
VZ
20322 fi
20323 fi
20324fi
20325
20326if test "$wxUSE_TREECTRL" = "yes"; then
20327 if test "$wxUSE_IMAGLIST" = "yes"; then
698dcdb6 20328 cat >> confdefs.h <<\EOF
10f2d63a
VZ
20329#define wxUSE_TREECTRL 1
20330EOF
20331
1e6feb95 20332 USES_CONTROLS=1
10f2d63a
VZ
20333 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl"
20334 else
698dcdb6 20335 echo "configure: warning: wxTreeCtrl requires wxImageList and won't be compiled without it" 1>&2
10f2d63a
VZ
20336 fi
20337fi
20338
9f41d601 20339if test "$wxUSE_POPUPWIN" = "yes"; then
6abe4b65 20340 if test "$wxUSE_MAC" = 1; then
156b2523 20341 echo "configure: warning: Popup window not yet supported under Mac OS X... disabled" 1>&2
6abe4b65 20342 else
485cf710
VZ
20343 if test "$wxUSE_MOTIF" = 1; then
20344 echo "configure: warning: wxPopupWindow not yet supported under Motif... disabled" 1>&2
20345 else
3c011993
VZ
20346 if test "$wxUSE_PM" = 1; then
20347 echo "configure: warning: wxPopupWindow not yet supported under PM... disabled" 1>&2
3bd8fb5f 20348 else
3c011993 20349 cat >> confdefs.h <<\EOF
9f41d601
RR
20350#define wxUSE_POPUPWIN 1
20351EOF
20352
9926e4a4 20353
3c011993
VZ
20354 USES_CONTROLS=1
20355 fi
485cf710 20356 fi
6abe4b65 20357 fi
9f41d601
RR
20358fi
20359
dd964dcc 20360if test "$wxUSE_TIPWINDOW" = "yes"; then
3c011993
VZ
20361 if test "$wxUSE_PM" = 1; then
20362 echo "configure: warning: wxTipWindow not yet supported under PM... disabled" 1>&2
3bd8fb5f 20363 else
3c011993 20364 cat >> confdefs.h <<\EOF
dd964dcc
VZ
20365#define wxUSE_TIPWINDOW 1
20366EOF
20367
3c011993 20368 fi
dd964dcc
VZ
20369fi
20370
1e6feb95
VZ
20371if test "$USES_CONTROLS" = 1; then
20372 cat >> confdefs.h <<\EOF
20373#define wxUSE_CONTROLS 1
10f2d63a
VZ
20374EOF
20375
10f2d63a
VZ
20376fi
20377
1e6feb95 20378
24176f2c
GD
20379if test "$wxUSE_TREELAYOUT" = "yes"; then
20380 cat >> confdefs.h <<\EOF
20381#define wxUSE_TREELAYOUT 1
20382EOF
20383
20384 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treelay"
20385fi
1e6feb95 20386
24fd6d87
VZ
20387if test "$wxUSE_DRAGIMAGE" = "yes"; then
20388 cat >> confdefs.h <<\EOF
20389#define wxUSE_DRAGIMAGE 1
20390EOF
20391
20392 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag"
20393fi
20394
1e6feb95 20395if test "$wxUSE_MENUS" = "yes"; then
698dcdb6 20396 cat >> confdefs.h <<\EOF
1e6feb95 20397#define wxUSE_MENUS 1
10f2d63a
VZ
20398EOF
20399
1e6feb95 20400 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu"
10f2d63a
VZ
20401fi
20402
1e6feb95
VZ
20403if test "$wxUSE_METAFILE" = "yes"; then
20404 cat >> confdefs.h <<\EOF
20405#define wxUSE_METAFILE 1
10f2d63a
VZ
20406EOF
20407
10f2d63a
VZ
20408fi
20409
1e6feb95
VZ
20410if test "$wxUSE_MIMETYPE" = "yes"; then
20411 cat >> confdefs.h <<\EOF
20412#define wxUSE_MIMETYPE 1
10f2d63a
VZ
20413EOF
20414
10f2d63a
VZ
20415fi
20416
3e44f09d
VZ
20417if test "$wxUSE_SYSTEM_OPTIONS" = "yes"; then
20418 cat >> confdefs.h <<\EOF
20419#define wxUSE_SYSTEM_OPTIONS 1
20420EOF
20421
321d2b14
VZ
20422if test "$TOOLKIT" = "MSW"; then
20423 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS taskbar"
20424fi
20425
3e44f09d
VZ
20426fi
20427
4cdb0ab0 20428if test "$wxUSE_PROTOCOL" = "yes"; then
3954f9ca
VS
20429 if test "$wxUSE_SOCKETS" != "yes"; then
20430 echo "configure: warning: Protocol classes require sockets... disabled" 1>&2
20431 wxUSE_PROTOCOL=no
20432 fi
20433
20434 if test "$wxUSE_PROTOCOL" = "yes"; then
20435 cat >> confdefs.h <<\EOF
4cdb0ab0
VS
20436#define wxUSE_PROTOCOL 1
20437EOF
20438
20439
3954f9ca
VS
20440 if test "$wxUSE_PROTOCOL_HTTP" = "yes"; then
20441 cat >> confdefs.h <<\EOF
4cdb0ab0
VS
20442#define wxUSE_PROTOCOL_HTTP 1
20443EOF
20444
3954f9ca
VS
20445 fi
20446 if test "$wxUSE_PROTOCOL_FTP" = "yes"; then
20447 cat >> confdefs.h <<\EOF
4cdb0ab0
VS
20448#define wxUSE_PROTOCOL_FTP 1
20449EOF
20450
3954f9ca
VS
20451 fi
20452 if test "$wxUSE_PROTOCOL_FILE" = "yes"; then
20453 cat >> confdefs.h <<\EOF
20454#define wxUSE_PROTOCOL_FILE 1
20455EOF
20456
20457 fi
4cdb0ab0 20458 fi
3954f9ca
VS
20459fi
20460
20461if test "$wxUSE_URL" = "yes"; then
20462 if test "$wxUSE_PROTOCOL" != "yes"; then
20463 echo "configure: warning: wxURL class requires wxProtocol... disabled" 1>&2
20464 wxUSE_URL=no
20465 fi
20466 if test "$wxUSE_URL" = "yes"; then
4cdb0ab0 20467 cat >> confdefs.h <<\EOF
3954f9ca 20468#define wxUSE_URL 1
4cdb0ab0
VS
20469EOF
20470
20471 fi
20472fi
20473
10f2d63a 20474if test "$wxUSE_MINIFRAME" = "yes"; then
698dcdb6 20475 cat >> confdefs.h <<\EOF
10f2d63a
VZ
20476#define wxUSE_MINIFRAME 1
20477EOF
20478
20479 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram"
20480fi
20481
20482if test "$wxUSE_HTML" = "yes"; then
698dcdb6 20483 cat >> confdefs.h <<\EOF
10f2d63a
VZ
20484#define wxUSE_HTML 1
20485EOF
20486
20487 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html"
10f2d63a
VZ
20488fi
20489
20490if test "$wxUSE_VALIDATORS" = "yes"; then
698dcdb6 20491 cat >> confdefs.h <<\EOF
1e487827
VS
20492#define wxUSE_VALIDATORS 1
20493EOF
703e0a69 20494
698dcdb6
VZ
20495 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate"
20496fi
20497
edae8572
VZ
20498if test "$wxUSE_PALETTE" = "yes" ; then
20499 cat >> confdefs.h <<\EOF
20500#define wxUSE_PALETTE 1
20501EOF
20502
20503fi
20504
698dcdb6
VZ
20505if test "$wxUSE_IMAGE" = "yes" ; then
20506 cat >> confdefs.h <<\EOF
20507#define wxUSE_IMAGE 1
20508EOF
20509
20510fi
20511
20512if test "$wxUSE_GIF" = "yes" ; then
20513 cat >> confdefs.h <<\EOF
20514#define wxUSE_GIF 1
20515EOF
20516
20517fi
20518
20519if test "$wxUSE_PCX" = "yes" ; then
20520 cat >> confdefs.h <<\EOF
20521#define wxUSE_PCX 1
20522EOF
20523
20524fi
20525
4b6b4dfc
RR
20526if test "$wxUSE_IFF" = "yes" ; then
20527 cat >> confdefs.h <<\EOF
20528#define wxUSE_IFF 1
20529EOF
20530
20531fi
20532
698dcdb6
VZ
20533if test "$wxUSE_PNM" = "yes" ; then
20534 cat >> confdefs.h <<\EOF
20535#define wxUSE_PNM 1
20536EOF
20537
20538fi
20539
20540if test "$wxUSE_XPM" = "yes" ; then
20541 cat >> confdefs.h <<\EOF
20542#define wxUSE_XPM 1
20543EOF
20544
20545fi
20546
658974ae
VS
20547if test "$wxUSE_ICO_CUR" = "yes" ; then
20548 cat >> confdefs.h <<\EOF
20549#define wxUSE_ICO_CUR 1
20550EOF
20551
20552fi
20553
a72a4bfa
VS
20554if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_MSLU" = "yes" ; then
20555 LIBS=" -lunicows $LIBS"
20556fi
20557
698dcdb6 20558
1e6feb95
VZ
20559if test "$wxUSE_CHOICEDLG" = "yes"; then
20560 cat >> confdefs.h <<\EOF
20561#define wxUSE_CHOICEDLG 1
20562EOF
20563
20564fi
20565
20566if test "$wxUSE_COLOURDLG" = "yes"; then
20567 cat >> confdefs.h <<\EOF
20568#define wxUSE_COLOURDLG 1
20569EOF
20570
20571fi
20572
20573if test "$wxUSE_FILEDLG" = "yes"; then
20574 cat >> confdefs.h <<\EOF
20575#define wxUSE_FILEDLG 1
20576EOF
20577
20578fi
20579
8db37e06
VZ
20580if test "$wxUSE_FINDREPLDLG" = "yes"; then
20581 cat >> confdefs.h <<\EOF
20582#define wxUSE_FINDREPLDLG 1
20583EOF
20584
20585fi
20586
1e6feb95
VZ
20587if test "$wxUSE_FONTDLG" = "yes"; then
20588 cat >> confdefs.h <<\EOF
20589#define wxUSE_FONTDLG 1
20590EOF
20591
20592fi
20593
20594if test "$wxUSE_DIRDLG" = "yes"; then
ae1daed0
JS
20595 if test "$wxUSE_TREECTRL" != "yes"; then
20596 echo "configure: warning: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" 1>&2
1e6feb95 20597 else
ae1daed0 20598 cat >> confdefs.h <<\EOF
1e6feb95
VZ
20599#define wxUSE_DIRDLG 1
20600EOF
20601
1e6feb95
VZ
20602 fi
20603fi
20604
20605if test "$wxUSE_MSGDLG" = "yes"; then
20606 cat >> confdefs.h <<\EOF
20607#define wxUSE_MSGDLG 1
20608EOF
20609
20610fi
20611
20612if test "$wxUSE_NUMBERDLG" = "yes"; then
20613 cat >> confdefs.h <<\EOF
20614#define wxUSE_NUMBERDLG 1
20615EOF
20616
20617fi
20618
20619if test "$wxUSE_PROGRESSDLG" = "yes"; then
20620 if test "$wxUSE_CONSTRAINTS" != "yes"; then
20621 echo "configure: warning: wxProgressDialog requires constraints so it won't be compiled without them" 1>&2
20622 else
20623 cat >> confdefs.h <<\EOF
20624#define wxUSE_PROGRESSDLG 1
20625EOF
20626
20627 fi
20628fi
20629
cbca9943
VZ
20630if test "$wxUSE_SPLASH" = "yes"; then
20631 cat >> confdefs.h <<\EOF
20632#define wxUSE_SPLASH 1
20633EOF
20634
20635fi
20636
1e6feb95
VZ
20637if test "$wxUSE_STARTUP_TIPS" = "yes"; then
20638 if test "$wxUSE_CONSTRAINTS" != "yes"; then
20639 echo "configure: warning: Startup tips requires constraints and won't be compiled without them" 1>&2
20640 else
20641 cat >> confdefs.h <<\EOF
20642#define wxUSE_STARTUP_TIPS 1
20643EOF
20644
20645 fi
20646fi
20647
20648if test "$wxUSE_TEXTDLG" = "yes"; then
20649 cat >> confdefs.h <<\EOF
20650#define wxUSE_TEXTDLG 1
20651EOF
20652
20653fi
20654
b1f5d087
VZ
20655if test "$wxUSE_WIZARDDLG" = "yes"; then
20656 cat >> confdefs.h <<\EOF
20657#define wxUSE_WIZARDDLG 1
20658EOF
20659
20660 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wizard"
20661fi
20662
1e6feb95 20663
698dcdb6
VZ
20664if test "$cross_compiling" = "yes"; then
20665 OSINFO="\"$host\""
20666else
20667 OSINFO=`uname -s -r -m`
20668 OSINFO="\"$OSINFO\""
20669fi
20670
20671cat >> confdefs.h <<EOF
20672#define WXWIN_OS_DESCRIPTION $OSINFO
20673EOF
20674
20675
20676
06dda230
VZ
20677if test "x$prefix" != "xNONE"; then
20678 wxPREFIX=$prefix
20679else
20680 wxPREFIX=$ac_default_prefix
20681fi
20682
7e67ed0d 20683cat >> confdefs.h <<EOF
06dda230 20684#define wxINSTALL_PREFIX "$wxPREFIX"
7e67ed0d
VZ
20685EOF
20686
20687
20688
698dcdb6 20689
3a922bb4 20690
f11bdd03 20691if test "$wxUSE_MAC" = 1 ; then
3d63bc3a 20692 LDFLAGS="$LDFLAGS -framework Carbon -framework System"
698dcdb6 20693fi
3a922bb4 20694
3d63bc3a 20695
009fead0 20696LIBS="$ZLIB_LINK $POSIX4_LINK $INET_LINK $WCHAR_LINK $DL_LINK -lm $LIBS"
3d63bc3a 20697
698dcdb6 20698if test "$wxUSE_GUI" = "yes"; then
3d63bc3a 20699
cb61c62d 20700 LIBS="$GUI_TK_LIBRARY $PNG_LINK $JPEG_LINK $TIFF_LINK $LIBS"
3a922bb4
RL
20701
20702
867a54b6 20703 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS artprov controls dialogs \
3a922bb4
RL
20704 drawing dynamic erase event exec font image \
20705 minimal richedit rotate widgets"
20706
3a922bb4
RL
20707 CPPFLAGS="$CPPFLAGS \$(EXTRADEFS) \$(APPEXTRADEFS)"
20708else
20709 SAMPLES_SUBDIRS="console"
698dcdb6
VZ
20710fi
20711
698dcdb6 20712
57973b9c
VZ
20713INCLUDES="-I\${top_builddir}/lib/wx/include/${TOOLCHAIN_NAME} \
20714-I\${top_srcdir}/include \
20715$REGEX_INCLUDE $ZLIB_INCLUDE $PNG_INCLUDE $JPEG_INCLUDE $TIFF_INCLUDE \
20716$TOOLKIT_INCLUDE"
698dcdb6 20717
63e7762e 20718if test "$wxUSE_GTK" = 1; then
3d63bc3a 20719 WXCONFIG_INCLUDE=
698dcdb6
VZ
20720else
20721 WXCONFIG_INCLUDE="$TOOLKIT_INCLUDE"
20722fi
20723
20724if test "$GXX" = yes ; then
20725 CXXWARNINGS="-Wall"
88e30f2b
RL
20726
20727 if test "$wxUSE_NO_DEPS" = "no" ; then
20728 CFLAGS="-MMD $CFLAGS"
20729 CXXFLAGS="-MMD $CXXFLAGS"
20730 fi
20731fi
20732
1725144d 20733EXTRA_CFLAGS="$WXDEBUG $WXODBCFLAG $PROFILE $OPTIMISE $INCLUDES"
698dcdb6
VZ
20734
20735CFLAGS=`echo $CFLAGS $EXTRA_CFLAGS $CXXWARNINGS | sed 's/ \\+/ /g'`
20736CXXFLAGS=`echo $CXXFLAGS $EXTRA_CFLAGS $CXXWARNINGS | sed 's/ \+/ /g'`
fe5a9cab 20737LIBS=`echo $LIBS | sed 's/ \+/ /g'`
698dcdb6 20738
fe5a9cab 20739LDFLAGS="$LDFLAGS $PROFILE"
698dcdb6 20740
698dcdb6
VZ
20741SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`"
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
20768
20769
20770
20771
20772
20773
20774
20775
20776
20777
20778
20779
20780
20781
20782
20783
20784
20785
20786
20787
20788
20789
20790
20791
20792
20793
20794
20795
20796
20797
20798
20799
20800
20801
20802
20803
20804
20805
20806
20807
20808
32832908 20809
2f51a9ec
GD
20810
20811
20812
20813
f6bcfd97 20814
dad6c0ea 20815
caa2c79b 20816
3711412e 20817
1e6feb95
VZ
20818
20819
885d4bf5
VS
20820
20821
20822
20823
9b695262
VZ
20824
20825
62d0491b 20826
ef7f2189 20827
40f7145c 20828
3bd8fb5f 20829
10f2d63a
VZ
20830
20831
698dcdb6 20832echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
3bd8fb5f 20833echo "configure:20834: checking whether ${MAKE-make} sets \${MAKE}" >&5
698dcdb6
VZ
20834set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
20835if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
20836 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 20837else
698dcdb6 20838 cat > conftestmake <<\EOF
10f2d63a
VZ
20839all:
20840 @echo 'ac_maketemp="${MAKE}"'
20841EOF
20842# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
698dcdb6 20843eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
10f2d63a
VZ
20844if test -n "$ac_maketemp"; then
20845 eval ac_cv_prog_make_${ac_make}_set=yes
20846else
20847 eval ac_cv_prog_make_${ac_make}_set=no
20848fi
698dcdb6 20849rm -f conftestmake
10f2d63a
VZ
20850fi
20851if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
698dcdb6 20852 echo "$ac_t""yes" 1>&6
10f2d63a
VZ
20853 SET_MAKE=
20854else
698dcdb6 20855 echo "$ac_t""no" 1>&6
10f2d63a
VZ
20856 SET_MAKE="MAKE=${MAKE-make}"
20857fi
20858
698dcdb6 20859
3a922bb4
RL
20860if test -f lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h; then
20861 mv -f lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h setup.h
00cf1208 20862fi
665bbe97 20863
698dcdb6 20864
10f2d63a 20865
57973b9c
VZ
20866wx_cv_path_samplesubdirs=$SAMPLES_SUBDIRS
20867wx_cv_if_gnu_make=$IF_GNU_MAKE
20868wx_cv_path_ifs=$PATH_IFS
20869wx_cv_program_ext=$PROGRAM_EXT
20870wx_cv_target_library=$WX_TARGET_LIBRARY
20871wx_cv_target_library_gl=$WX_TARGET_LIBRARY_GL
20872wx_cv_target_libtype=$WX_TARGET_LIBRARY_TYPE
20873export wx_cv_path_samplesubdirs wx_cv_if_gnu_make \
20874 wx_cv_path_ifs wx_cv_program_ext \
20875 wx_cv_target_library wx_cv_target_library_gl wx_cv_target_libtype
20876
20877subdirs="demos samples utils contrib"
2224580a 20878
10f2d63a 20879
698dcdb6
VZ
20880trap '' 1 2 15
20881cat > confcache <<\EOF
10f2d63a
VZ
20882# This file is a shell script that caches the results of configure
20883# tests run on this system so they can be shared between configure
698dcdb6
VZ
20884# scripts and configure runs. It is not useful on other systems.
20885# If it contains results you don't want to keep, you may remove or edit it.
10f2d63a 20886#
698dcdb6
VZ
20887# By default, configure uses ./config.cache as the cache file,
20888# creating it if it does not exist already. You can give configure
20889# the --cache-file=FILE option to use a different cache file; that is
20890# what configure does when it calls configure scripts in
20891# subdirectories, so they share the cache.
20892# Giving --cache-file=/dev/null disables caching, for debugging configure.
20893# config.status only pays attention to the cache file if you give it the
20894# --recheck option to rerun configure.
10f2d63a 20895#
698dcdb6 20896EOF
10f2d63a
VZ
20897# The following way of writing the cache mishandles newlines in values,
20898# but we know of no workaround that is simple, portable, and efficient.
20899# So, don't put newlines in cache variables' values.
20900# Ultrix sh set writes to stderr and can't be redirected directly,
20901# and sets the high bit in the cache file unless we assign to the vars.
698dcdb6
VZ
20902(set) 2>&1 |
20903 case `(ac_space=' '; set | grep ac_space) 2>&1` in
20904 *ac_space=\ *)
20905 # `set' does not quote correctly, so add quotes (double-quote substitution
20906 # turns \\\\ into \\, and sed turns \\ into \).
20907 sed -n \
20908 -e "s/'/'\\\\''/g" \
20909 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
20910 ;;
20911 *)
20912 # `set' quotes correctly as required by POSIX, so do not add quotes.
20913 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
20914 ;;
20915 esac >> confcache
20916if cmp -s $cache_file confcache; then
20917 :
20918else
10f2d63a 20919 if test -w $cache_file; then
698dcdb6
VZ
20920 echo "updating cache $cache_file"
20921 cat confcache > $cache_file
10f2d63a
VZ
20922 else
20923 echo "not updating unwritable cache $cache_file"
20924 fi
20925fi
20926rm -f confcache
20927
698dcdb6
VZ
20928trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
20929
10f2d63a
VZ
20930test "x$prefix" = xNONE && prefix=$ac_default_prefix
20931# Let make expand exec_prefix.
20932test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20933
698dcdb6
VZ
20934# Any assignment to VPATH causes Sun make to only execute
20935# the first set of double-colon rules, so remove it if not needed.
20936# If there is a colon in the path, we need to keep it.
10f2d63a 20937if test "x$srcdir" = x.; then
698dcdb6 20938 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
10f2d63a
VZ
20939fi
20940
698dcdb6
VZ
20941trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
20942
10f2d63a
VZ
20943DEFS=-DHAVE_CONFIG_H
20944
698dcdb6 20945# Without the "./", some shells look in PATH for config.status.
10f2d63a 20946: ${CONFIG_STATUS=./config.status}
698dcdb6
VZ
20947
20948echo creating $CONFIG_STATUS
20949rm -f $CONFIG_STATUS
20950cat > $CONFIG_STATUS <<EOF
20951#! /bin/sh
10f2d63a
VZ
20952# Generated automatically by configure.
20953# Run this file to recreate the current configuration.
698dcdb6
VZ
20954# This directory was configured as follows,
20955# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20956#
20957# $0 $ac_configure_args
20958#
10f2d63a 20959# Compiler output produced by configure, useful for debugging
698dcdb6 20960# configure, is in ./config.log if it exists.
1e487827 20961
698dcdb6
VZ
20962ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
20963for ac_option
10f2d63a 20964do
698dcdb6 20965 case "\$ac_option" in
10f2d63a 20966 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
698dcdb6
VZ
20967 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
20968 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
20969 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
20970 echo "$CONFIG_STATUS generated by autoconf version 2.13"
20971 exit 0 ;;
20972 -help | --help | --hel | --he | --h)
20973 echo "\$ac_cs_usage"; exit 0 ;;
20974 *) echo "\$ac_cs_usage"; exit 1 ;;
10f2d63a
VZ
20975 esac
20976done
20977
698dcdb6
VZ
20978ac_given_srcdir=$srcdir
20979ac_given_INSTALL="$INSTALL"
703e0a69 20980
698dcdb6
VZ
20981trap 'rm -fr `echo "
20982 wx-config
20983 src/make.env
20984 src/makeprog.env
20985 src/makelib.env
20986 Makefile
20987 setup.h:setup.h.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
1e487827 20988EOF
698dcdb6 20989cat >> $CONFIG_STATUS <<EOF
1e487827 20990
698dcdb6
VZ
20991# Protect against being on the right side of a sed subst in config.status.
20992sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
20993 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
20994$ac_vpsub
20995$extrasub
20996s%@SHELL@%$SHELL%g
20997s%@CFLAGS@%$CFLAGS%g
20998s%@CPPFLAGS@%$CPPFLAGS%g
20999s%@CXXFLAGS@%$CXXFLAGS%g
21000s%@FFLAGS@%$FFLAGS%g
21001s%@DEFS@%$DEFS%g
21002s%@LDFLAGS@%$LDFLAGS%g
21003s%@LIBS@%$LIBS%g
21004s%@exec_prefix@%$exec_prefix%g
21005s%@prefix@%$prefix%g
21006s%@program_transform_name@%$program_transform_name%g
21007s%@bindir@%$bindir%g
21008s%@sbindir@%$sbindir%g
21009s%@libexecdir@%$libexecdir%g
21010s%@datadir@%$datadir%g
21011s%@sysconfdir@%$sysconfdir%g
21012s%@sharedstatedir@%$sharedstatedir%g
21013s%@localstatedir@%$localstatedir%g
21014s%@libdir@%$libdir%g
21015s%@includedir@%$includedir%g
21016s%@oldincludedir@%$oldincludedir%g
21017s%@infodir@%$infodir%g
21018s%@mandir@%$mandir%g
21019s%@host@%$host%g
21020s%@host_alias@%$host_alias%g
21021s%@host_cpu@%$host_cpu%g
21022s%@host_vendor@%$host_vendor%g
21023s%@host_os@%$host_os%g
21024s%@target@%$target%g
21025s%@target_alias@%$target_alias%g
21026s%@target_cpu@%$target_cpu%g
21027s%@target_vendor@%$target_vendor%g
21028s%@target_os@%$target_os%g
21029s%@build@%$build%g
21030s%@build_alias@%$build_alias%g
21031s%@build_cpu@%$build_cpu%g
21032s%@build_vendor@%$build_vendor%g
21033s%@build_os@%$build_os%g
21034s%@CC@%$CC%g
21035s%@CPP@%$CPP%g
21036s%@CXX@%$CXX%g
698dcdb6
VZ
21037s%@RANLIB@%$RANLIB%g
21038s%@AR@%$AR%g
21039s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
d6853540 21040s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
6054113a 21041s%@INSTALL_DATA@%$INSTALL_DATA%g
698dcdb6 21042s%@STRIP@%$STRIP%g
613d0995 21043s%@IF_GNU_MAKE@%$IF_GNU_MAKE%g
698dcdb6
VZ
21044s%@YACC@%$YACC%g
21045s%@LEX@%$LEX%g
21046s%@LEXLIB@%$LEXLIB%g
21047s%@LN_S@%$LN_S%g
90dd450c 21048s%@CXXCPP@%$CXXCPP%g
9e691f46 21049s%@PKG_CONFIG@%$PKG_CONFIG%g
698dcdb6
VZ
21050s%@GTK_CFLAGS@%$GTK_CFLAGS%g
21051s%@GTK_LIBS@%$GTK_LIBS%g
8168de4c 21052s%@GTK_CONFIG@%$GTK_CONFIG%g
698dcdb6
VZ
21053s%@X_CFLAGS@%$X_CFLAGS%g
21054s%@X_PRE_LIBS@%$X_PRE_LIBS%g
21055s%@X_LIBS@%$X_LIBS%g
21056s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
321d2b14 21057s%@AIX_CXX_LD@%$AIX_CXX_LD%g
3a922bb4 21058s%@RESCOMP@%$RESCOMP%g
698dcdb6 21059s%@DEREZ@%$DEREZ%g
b040e242 21060s%@LIBICONV@%$LIBICONV%g
698dcdb6
VZ
21061s%@LEX_STEM@%$LEX_STEM%g
21062s%@PATH_IFS@%$PATH_IFS%g
21063s%@WX_MAJOR_VERSION_NUMBER@%$WX_MAJOR_VERSION_NUMBER%g
21064s%@WX_MINOR_VERSION_NUMBER@%$WX_MINOR_VERSION_NUMBER%g
21065s%@WX_RELEASE_NUMBER@%$WX_RELEASE_NUMBER%g
698dcdb6
VZ
21066s%@WX_LIBRARY_NAME_STATIC@%$WX_LIBRARY_NAME_STATIC%g
21067s%@WX_LIBRARY_NAME_SHARED@%$WX_LIBRARY_NAME_SHARED%g
77e13408 21068s%@WX_LIBRARY_IMPORTLIB@%$WX_LIBRARY_IMPORTLIB%g
698dcdb6
VZ
21069s%@WX_TARGET_LIBRARY@%$WX_TARGET_LIBRARY%g
21070s%@WX_LIBRARY_LINK1@%$WX_LIBRARY_LINK1%g
21071s%@WX_LIBRARY_LINK2@%$WX_LIBRARY_LINK2%g
698dcdb6 21072s%@PROGRAM_EXT@%$PROGRAM_EXT%g
698dcdb6
VZ
21073s%@WX_LIBRARY_NAME_STATIC_GL@%$WX_LIBRARY_NAME_STATIC_GL%g
21074s%@WX_LIBRARY_NAME_SHARED_GL@%$WX_LIBRARY_NAME_SHARED_GL%g
698dcdb6
VZ
21075s%@WX_TARGET_LIBRARY_GL@%$WX_TARGET_LIBRARY_GL%g
21076s%@WX_LIBRARY_LINK1_GL@%$WX_LIBRARY_LINK1_GL%g
21077s%@WX_LIBRARY_LINK2_GL@%$WX_LIBRARY_LINK2_GL%g
698dcdb6
VZ
21078s%@WX_ALL@%$WX_ALL%g
21079s%@WX_ALL_INSTALLED@%$WX_ALL_INSTALLED%g
21080s%@SHARED_LD@%$SHARED_LD%g
21081s%@PIC_FLAG@%$PIC_FLAG%g
698dcdb6
VZ
21082s%@CODE_GEN_FLAGS@%$CODE_GEN_FLAGS%g
21083s%@CODE_GEN_FLAGS_CXX@%$CODE_GEN_FLAGS_CXX%g
3a922bb4
RL
21084s%@SONAME_FLAGS@%$SONAME_FLAGS%g
21085s%@SONAME_FLAGS_GL@%$SONAME_FLAGS_GL%g
698dcdb6
VZ
21086s%@WX_TARGET_LIBRARY_SONAME@%$WX_TARGET_LIBRARY_SONAME%g
21087s%@WX_TARGET_LIBRARY_TYPE@%$WX_TARGET_LIBRARY_TYPE%g
21088s%@WXDEBUG_DEFINE@%$WXDEBUG_DEFINE%g
21089s%@USE_GUI@%$USE_GUI%g
21090s%@AFMINSTALL@%$AFMINSTALL%g
21091s%@TOOLKIT@%$TOOLKIT%g
698dcdb6 21092s%@TOOLKIT_DIR@%$TOOLKIT_DIR%g
1e6feb95 21093s%@TOOLKIT_VPATH@%$TOOLKIT_VPATH%g
3a922bb4
RL
21094s%@TOOLCHAIN_NAME@%$TOOLCHAIN_NAME%g
21095s%@TOOLCHAIN_DEFS@%$TOOLCHAIN_DEFS%g
00c81359 21096s%@TOOLCHAIN_DLL_DEFS@%$TOOLCHAIN_DLL_DEFS%g
3a922bb4
RL
21097s%@cross_compiling@%$cross_compiling%g
21098s%@WXCONFIG_LIBS@%$WXCONFIG_LIBS%g
21099s%@WXCONFIG_LIBS_GL@%$WXCONFIG_LIBS_GL%g
885d4bf5
VS
21100s%@WXCONFIG_LIBS_STATIC@%$WXCONFIG_LIBS_STATIC%g
21101s%@WXCONFIG_LIBS_STATIC_GL@%$WXCONFIG_LIBS_STATIC_GL%g
698dcdb6 21102s%@WXCONFIG_INCLUDE@%$WXCONFIG_INCLUDE%g
3bd8fb5f 21103s%@WXCONFIG_RPATH@%$WXCONFIG_RPATH%g
698dcdb6 21104s%@ALL_OBJECTS@%$ALL_OBJECTS%g
9b695262
VZ
21105s%@ALL_HEADERS@%$ALL_HEADERS%g
21106s%@ALL_SOURCES@%$ALL_SOURCES%g
698dcdb6
VZ
21107s%@GUIDIST@%$GUIDIST%g
21108s%@PORT_FILES@%$PORT_FILES%g
21109s%@DISTDIR@%$DISTDIR%g
698dcdb6 21110s%@SAMPLES_SUBDIRS@%$SAMPLES_SUBDIRS%g
62d0491b 21111s%@LDFLAGS_GL@%$LDFLAGS_GL%g
40f7145c 21112s%@LDFLAGS_EXE@%$LDFLAGS_EXE%g
698dcdb6 21113s%@OPENGL_LIBS@%$OPENGL_LIBS%g
3d63bc3a 21114s%@DMALLOC_LIBS@%$DMALLOC_LIBS%g
698dcdb6 21115s%@EXTRADEFS@%$EXTRADEFS%g
698dcdb6 21116s%@RESFLAGS@%$RESFLAGS%g
3a922bb4 21117s%@RESPROGRAMOBJ@%$RESPROGRAMOBJ%g
e95edd8d
GD
21118s%@WX_RESOURCES_MACOSX_ASCII@%$WX_RESOURCES_MACOSX_ASCII%g
21119s%@WX_RESOURCES_MACOSX_DATA@%$WX_RESOURCES_MACOSX_DATA%g
ef7f2189 21120s%@MACOSX_BUNDLE@%$MACOSX_BUNDLE%g
698dcdb6
VZ
21121s%@LIBWXMACRES@%$LIBWXMACRES%g
21122s%@LIBWXMACRESCOMP@%$LIBWXMACRESCOMP%g
2baaf735 21123s%@LIBWXMACRESWXCONFIG@%$LIBWXMACRESWXCONFIG%g
698dcdb6
VZ
21124s%@DLLTOOL@%$DLLTOOL%g
21125s%@AS@%$AS%g
21126s%@NM@%$NM%g
21127s%@LD@%$LD%g
21128s%@MAKEINFO@%$MAKEINFO%g
885d4bf5 21129s%@INSTALL_LIBRARY@%$INSTALL_LIBRARY%g
698dcdb6
VZ
21130s%@SET_MAKE@%$SET_MAKE%g
21131s%@subdirs@%$subdirs%g
1e487827 21132
1e487827 21133CEOF
1e487827
VS
21134EOF
21135
698dcdb6
VZ
21136cat >> $CONFIG_STATUS <<\EOF
21137
21138# Split the substitutions into bite-sized pieces for seds with
21139# small command number limits, like on Digital OSF/1 and HP-UX.
21140ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
21141ac_file=1 # Number of current file.
21142ac_beg=1 # First line for current file.
21143ac_end=$ac_max_sed_cmds # Line after last line for current file.
21144ac_more_lines=:
21145ac_sed_cmds=""
21146while $ac_more_lines; do
21147 if test $ac_beg -gt 1; then
21148 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
21149 else
21150 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
21151 fi
21152 if test ! -s conftest.s$ac_file; then
21153 ac_more_lines=false
21154 rm -f conftest.s$ac_file
21155 else
21156 if test -z "$ac_sed_cmds"; then
21157 ac_sed_cmds="sed -f conftest.s$ac_file"
10f2d63a 21158 else
698dcdb6 21159 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
10f2d63a 21160 fi
698dcdb6
VZ
21161 ac_file=`expr $ac_file + 1`
21162 ac_beg=$ac_end
21163 ac_end=`expr $ac_end + $ac_max_sed_cmds`
10f2d63a 21164 fi
698dcdb6
VZ
21165done
21166if test -z "$ac_sed_cmds"; then
21167 ac_sed_cmds=cat
21168fi
21169EOF
10f2d63a 21170
698dcdb6
VZ
21171cat >> $CONFIG_STATUS <<EOF
21172
21173CONFIG_FILES=\${CONFIG_FILES-"wx-config
21174 src/make.env
21175 src/makeprog.env
21176 src/makelib.env
21177 Makefile
21178 "}
10f2d63a 21179EOF
698dcdb6
VZ
21180cat >> $CONFIG_STATUS <<\EOF
21181for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
10f2d63a 21182 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
698dcdb6
VZ
21183 case "$ac_file" in
21184 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
21185 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
21186 *) ac_file_in="${ac_file}.in" ;;
10f2d63a
VZ
21187 esac
21188
698dcdb6 21189 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
1e487827 21190
698dcdb6
VZ
21191 # Remove last slash and all that follows it. Not all systems have dirname.
21192 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
21193 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
21194 # The file is in a subdirectory.
21195 test ! -d "$ac_dir" && mkdir "$ac_dir"
21196 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
10f2d63a 21197 # A "../" for each directory in $ac_dir_suffix.
698dcdb6 21198 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
10f2d63a
VZ
21199 else
21200 ac_dir_suffix= ac_dots=
21201 fi
21202
698dcdb6
VZ
21203 case "$ac_given_srcdir" in
21204 .) srcdir=.
21205 if test -z "$ac_dots"; then top_srcdir=.
21206 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
21207 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
10f2d63a 21208 *) # Relative path.
698dcdb6
VZ
21209 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
21210 top_srcdir="$ac_dots$ac_given_srcdir" ;;
10f2d63a
VZ
21211 esac
21212
698dcdb6
VZ
21213 case "$ac_given_INSTALL" in
21214 [/$]*) INSTALL="$ac_given_INSTALL" ;;
21215 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
10f2d63a
VZ
21216 esac
21217
698dcdb6
VZ
21218 echo creating "$ac_file"
21219 rm -f "$ac_file"
21220 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
21221 case "$ac_file" in
21222 *Makefile*) ac_comsub="1i\\
21223# $configure_input" ;;
21224 *) ac_comsub= ;;
21225 esac
10f2d63a 21226
698dcdb6
VZ
21227 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
21228 sed -e "$ac_comsub
21229s%@configure_input@%$configure_input%g
21230s%@srcdir@%$srcdir%g
21231s%@top_srcdir@%$top_srcdir%g
21232s%@INSTALL@%$INSTALL%g
21233" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
21234fi; done
21235rm -f conftest.s*
10f2d63a
VZ
21236
21237# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
21238# NAME is the cpp macro being defined and VALUE is the value it is being given.
21239#
21240# ac_d sets the value in "#define NAME VALUE" lines.
698dcdb6
VZ
21241ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
21242ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
21243ac_dC='\3'
21244ac_dD='%g'
21245# ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
21246ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
21247ac_uB='\([ ]\)%\1#\2define\3'
10f2d63a 21248ac_uC=' '
698dcdb6
VZ
21249ac_uD='\4%g'
21250# ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
21251ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
21252ac_eB='$%\1#\2define\3'
21253ac_eC=' '
21254ac_eD='%g'
10f2d63a 21255
698dcdb6
VZ
21256if test "${CONFIG_HEADERS+set}" != set; then
21257EOF
21258cat >> $CONFIG_STATUS <<EOF
21259 CONFIG_HEADERS="setup.h:setup.h.in"
21260EOF
21261cat >> $CONFIG_STATUS <<\EOF
21262fi
21263for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
10f2d63a 21264 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
698dcdb6
VZ
21265 case "$ac_file" in
21266 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
21267 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
21268 *) ac_file_in="${ac_file}.in" ;;
10f2d63a
VZ
21269 esac
21270
698dcdb6
VZ
21271 echo creating $ac_file
21272
21273 rm -f conftest.frag conftest.in conftest.out
21274 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
21275 cat $ac_file_inputs > conftest.in
21276
21277EOF
21278
21279# Transform confdefs.h into a sed script conftest.vals that substitutes
21280# the proper values into config.h.in to produce config.h. And first:
21281# Protect against being on the right side of a sed subst in config.status.
21282# Protect against being in an unquoted here document in config.status.
21283rm -f conftest.vals
21284cat > conftest.hdr <<\EOF
21285s/[\\&%]/\\&/g
21286s%[\\$`]%\\&%g
21287s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
21288s%ac_d%ac_u%gp
21289s%ac_u%ac_e%gp
21290EOF
21291sed -n -f conftest.hdr confdefs.h > conftest.vals
21292rm -f conftest.hdr
10f2d63a
VZ
21293
21294# This sed command replaces #undef with comments. This is necessary, for
21295# example, in the case of _POSIX_SOURCE, which is predefined and required
21296# on some systems where configure will not decide to define it.
698dcdb6
VZ
21297cat >> conftest.vals <<\EOF
21298s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
10f2d63a
VZ
21299EOF
21300
698dcdb6
VZ
21301# Break up conftest.vals because some shells have a limit on
21302# the size of here documents, and old seds have small limits too.
10f2d63a
VZ
21303
21304rm -f conftest.tail
698dcdb6 21305while :
10f2d63a 21306do
698dcdb6
VZ
21307 ac_lines=`grep -c . conftest.vals`
21308 # grep -c gives empty output for an empty file on some AIX systems.
21309 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
21310 # Write a limited-size here document to conftest.frag.
21311 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
21312 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
10f2d63a 21313 echo 'CEOF
698dcdb6
VZ
21314 sed -f conftest.frag conftest.in > conftest.out
21315 rm -f conftest.in
21316 mv conftest.out conftest.in
21317' >> $CONFIG_STATUS
21318 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
21319 rm -f conftest.vals
21320 mv conftest.tail conftest.vals
10f2d63a 21321done
698dcdb6
VZ
21322rm -f conftest.vals
21323
21324cat >> $CONFIG_STATUS <<\EOF
21325 rm -f conftest.frag conftest.h
21326 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
21327 cat conftest.in >> conftest.h
21328 rm -f conftest.in
21329 if cmp -s $ac_file conftest.h 2>/dev/null; then
21330 echo "$ac_file is unchanged"
21331 rm -f conftest.h
10f2d63a 21332 else
698dcdb6
VZ
21333 # Remove last slash and all that follows it. Not all systems have dirname.
21334 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
10f2d63a 21335 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
698dcdb6
VZ
21336 # The file is in a subdirectory.
21337 test ! -d "$ac_dir" && mkdir "$ac_dir"
10f2d63a 21338 fi
698dcdb6
VZ
21339 rm -f $ac_file
21340 mv conftest.h $ac_file
10f2d63a 21341 fi
698dcdb6
VZ
21342fi; done
21343
10f2d63a 21344EOF
698dcdb6 21345cat >> $CONFIG_STATUS <<EOF
10f2d63a 21346
3a922bb4 21347 TOOLCHAIN_NAME="${TOOLCHAIN_NAME}"
698dcdb6
VZ
21348 LN_S="${LN_S}"
21349
21350
21351EOF
21352cat >> $CONFIG_STATUS <<\EOF
10f2d63a 21353
652d930d 21354 if test ! -h wx-config; then
991a5759 21355 chmod +x wx-config
3a922bb4
RL
21356 mv wx-config wx${TOOLCHAIN_NAME}-config
21357 ${LN_S} wx${TOOLCHAIN_NAME}-config wx-config
991a5759 21358 fi
665bbe97 21359
00cf1208
RR
21360 if test ! -d lib; then
21361 mkdir lib
21362 fi
21363 if test ! -d lib/wx; then
21364 mkdir lib/wx
21365 fi
21366 if test ! -d lib/wx/include; then
21367 mkdir lib/wx/include
21368 fi
3a922bb4
RL
21369 if test ! -d lib/wx/include/${TOOLCHAIN_NAME}; then
21370 mkdir lib/wx/include/${TOOLCHAIN_NAME}
00cf1208 21371 fi
3a922bb4
RL
21372 if test ! -d lib/wx/include/${TOOLCHAIN_NAME}/wx; then
21373 mkdir lib/wx/include/${TOOLCHAIN_NAME}/wx
00cf1208
RR
21374 fi
21375 if test -f setup.h; then
3a922bb4 21376 mv -f setup.h lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h
00cf1208 21377 fi
698dcdb6
VZ
21378
21379exit 0
10f2d63a
VZ
21380EOF
21381chmod +x $CONFIG_STATUS
698dcdb6
VZ
21382rm -fr confdefs* $ac_clean_files
21383test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
10f2d63a 21384
2224580a
VZ
21385if test "$no_recursion" != yes; then
21386
21387 # Remove --cache-file and --srcdir arguments so they do not pile up.
21388 ac_sub_configure_args=
21389 ac_prev=
21390 for ac_arg in $ac_configure_args; do
21391 if test -n "$ac_prev"; then
21392 ac_prev=
21393 continue
21394 fi
698dcdb6 21395 case "$ac_arg" in
2224580a
VZ
21396 -cache-file | --cache-file | --cache-fil | --cache-fi \
21397 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
21398 ac_prev=cache_file ;;
21399 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
698dcdb6 21400 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
2224580a
VZ
21401 ;;
21402 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
21403 ac_prev=srcdir ;;
21404 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
21405 ;;
21406 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
21407 esac
21408 done
21409
8f4a9a10 21410 for ac_config_dir in demos samples utils contrib; do
2224580a
VZ
21411
21412 # Do not complain, so a configure script can configure whichever
21413 # parts of a large source tree are present.
698dcdb6
VZ
21414 if test ! -d $srcdir/$ac_config_dir; then
21415 continue
21416 fi
21417
21418 echo configuring in $ac_config_dir
2224580a 21419
698dcdb6 21420 case "$srcdir" in
2224580a
VZ
21421 .) ;;
21422 *)
698dcdb6
VZ
21423 if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
21424 else
21425 { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
21426 fi
21427 ;;
2224580a
VZ
21428 esac
21429
21430 ac_popdir=`pwd`
698dcdb6 21431 cd $ac_config_dir
2224580a 21432
698dcdb6
VZ
21433 # A "../" for each directory in /$ac_config_dir.
21434 ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
2224580a 21435
698dcdb6 21436 case "$srcdir" in
2224580a
VZ
21437 .) # No --srcdir option. We are building in place.
21438 ac_sub_srcdir=$srcdir ;;
698dcdb6
VZ
21439 /*) # Absolute path.
21440 ac_sub_srcdir=$srcdir/$ac_config_dir ;;
2224580a 21441 *) # Relative path.
698dcdb6 21442 ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
2224580a
VZ
21443 esac
21444
21445 # Check for guested configure; otherwise get Cygnus style configure.
698dcdb6
VZ
21446 if test -f $ac_sub_srcdir/configure; then
21447 ac_sub_configure=$ac_sub_srcdir/configure
2224580a
VZ
21448 elif test -f $ac_sub_srcdir/configure.in; then
21449 ac_sub_configure=$ac_configure
21450 else
698dcdb6 21451 echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
2224580a
VZ
21452 ac_sub_configure=
21453 fi
21454
21455 # The recursion is here.
21456 if test -n "$ac_sub_configure"; then
698dcdb6 21457
2224580a 21458 # Make the cache file name correct relative to the subdirectory.
698dcdb6
VZ
21459 case "$cache_file" in
21460 /*) ac_sub_cache_file=$cache_file ;;
2224580a 21461 *) # Relative path.
698dcdb6 21462 ac_sub_cache_file="$ac_dots$cache_file" ;;
2224580a 21463 esac
698dcdb6
VZ
21464 case "$ac_given_INSTALL" in
21465 [/$]*) INSTALL="$ac_given_INSTALL" ;;
21466 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
21467 esac
2224580a 21468
698dcdb6 21469 echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
2224580a 21470 # The eval makes quoting arguments work.
698dcdb6
VZ
21471 if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
21472 then :
21473 else
21474 { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }
21475 fi
2224580a
VZ
21476 fi
21477
21478 cd $ac_popdir
21479 done
21480fi
21481
698dcdb6 21482