]> git.saurik.com Git - wxWidgets.git/blame - configure
use wxFileInput/OutputStreams instead of reproducing their functionality in wxProcess...
[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
b040e242
VS
52
53
54
55
9e691f46
VZ
56# Configure paths for GTK+
57# Owen Taylor 1997-2001
b040e242
VS
58
59
60
61# Configure paths for GTK+
62# Owen Taylor 97-11-3
698dcdb6 63
698dcdb6
VZ
64
65
66# Guess values for system-dependent variables and create Makefiles.
67# Generated automatically using autoconf version 2.13
68# Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
69#
70# This configure script is free software; the Free Software Foundation
71# gives unlimited permission to copy, distribute and modify it.
72
73# Defaults:
74ac_help=
75ac_default_prefix=/usr/local
76# Any additions from configure.in:
77ac_help="$ac_help
8168de4c 78 --enable-gui use GUI classes"
1e6feb95 79ac_help="$ac_help
8168de4c 80 --enable-universal use wxWindows GUI controls instead of native ones"
698dcdb6
VZ
81ac_help="$ac_help
82 --with-gtk use GTK+"
83ac_help="$ac_help
84 --with-motif use Motif/Lesstif"
85ac_help="$ac_help
86 --with-mac use Mac OS X"
87ac_help="$ac_help
88 --with-wine use WINE"
89ac_help="$ac_help
77e13408 90 --with-msw use MS-Windows"
698dcdb6
VZ
91ac_help="$ac_help
92 --with-pm use OS/2 Presentation Manager"
1e6feb95 93ac_help="$ac_help
b3e8d00a 94 --with-mgl use SciTech MGL"
1725144d
RR
95ac_help="$ac_help
96 --with-microwin use MicroWindows"
f79bd02d
JS
97ac_help="$ac_help
98 --with-x11 use X11"
d8356fa3
VZ
99ac_help="$ac_help
100 --enable-nanox use NanoX"
698dcdb6 101ac_help="$ac_help
8168de4c 102 --enable-gtk2 use GTK+ 2.0 if available (EXPERIMENTAL)"
698dcdb6 103ac_help="$ac_help
8168de4c 104 --with-libpng use libpng (PNG image format)"
698dcdb6 105ac_help="$ac_help
8168de4c 106 --with-libjpeg use libjpeg (JPEG file format)"
698dcdb6 107ac_help="$ac_help
8168de4c 108 --with-libtiff use libtiff (TIFF file format)"
698dcdb6 109ac_help="$ac_help
8168de4c 110 --with-opengl use OpenGL (or Mesa)"
698dcdb6 111ac_help="$ac_help
d0e9b150 112 --with-dmalloc use dmalloc library (http://dmalloc.com/)"
3e44f09d
VZ
113ac_help="$ac_help
114 --with-regex enable support for wxRegEx class"
698dcdb6 115ac_help="$ac_help
8168de4c 116 --with-zlib use zlib for LZW compression"
698dcdb6 117ac_help="$ac_help
8168de4c 118 --with-odbc use the IODBC and wxODBC classes"
698dcdb6 119ac_help="$ac_help
8168de4c 120 --enable-shared create shared library code"
698dcdb6 121ac_help="$ac_help
3a922bb4 122 --enable-soname set the DT_SONAME field in ELF shared libraries"
698dcdb6 123ac_help="$ac_help
8168de4c 124 --enable-optimise create optimised code"
698dcdb6 125ac_help="$ac_help
8168de4c 126 --enable-debug same as debug_flag and debug_info"
683dccda
GD
127ac_help="$ac_help
128 --enable-precomp enable use of precompiled headers (Mac OS X)"
698dcdb6 129ac_help="$ac_help
8168de4c 130 --enable-debug_flag set __WXDEBUG__ flag (recommended for developers!)"
698dcdb6 131ac_help="$ac_help
8168de4c 132 --enable-debug_info create code with debugging information"
698dcdb6 133ac_help="$ac_help
8168de4c 134 --enable-debug_gdb create code with extra GDB debugging information"
698dcdb6 135ac_help="$ac_help
8168de4c 136 --enable-debug_cntxt use wxDebugContext"
698dcdb6 137ac_help="$ac_help
8168de4c 138 --enable-mem_tracing create code with memory tracing"
698dcdb6 139ac_help="$ac_help
8168de4c 140 --enable-profile create code with profiling information"
698dcdb6 141ac_help="$ac_help
8168de4c 142 --enable-no_rtti create code without RTTI information"
698dcdb6 143ac_help="$ac_help
b3e8d00a 144 --enable-no_exceptions create code without C++ exceptions handling"
698dcdb6 145ac_help="$ac_help
8168de4c 146 --enable-permissive compile code disregarding strict ANSI"
698dcdb6 147ac_help="$ac_help
8168de4c 148 --enable-no_deps create code without dependency information"
54276ccf 149ac_help="$ac_help
b3e8d00a 150 --enable-compat20 enable wxWindows 2.0 compatibility"
54276ccf 151ac_help="$ac_help
0c9a1c32 152 --disable-compat22 disable wxWindows 2.2 compatibility"
698dcdb6 153ac_help="$ac_help
8168de4c 154 --enable-intl use internationalization system"
698dcdb6 155ac_help="$ac_help
8168de4c 156 --enable-config use wxConfig (and derived) classes"
a1622950
VZ
157ac_help="$ac_help
158 --enable-protocols use wxProtocol and derived classes"
159ac_help="$ac_help
160 --enable-ftp use wxFTP (requires wxProtocol"
161ac_help="$ac_help
162 --enable-http use wxHTTP (requires wxProtocol"
163ac_help="$ac_help
164 --enable-fileproto use wxFileProto class (requires wxProtocol"
698dcdb6 165ac_help="$ac_help
8168de4c 166 --enable-sockets use socket/network classes"
698dcdb6 167ac_help="$ac_help
8168de4c 168 --enable-ipc use interprocess communication (wxSocket etc.)"
698dcdb6 169ac_help="$ac_help
8168de4c 170 --enable-cmdline use wxCmdLineParser class"
1e6feb95 171ac_help="$ac_help
8168de4c 172 --enable-datetime use wxDateTime class"
1e6feb95 173ac_help="$ac_help
8168de4c 174 --enable-timedate use obsolete wxDate/wxTime classes"
1e6feb95 175ac_help="$ac_help
8168de4c 176 --enable-stopwatch use wxStopWatch class"
1e6feb95 177ac_help="$ac_help
8168de4c 178 --enable-dialupman use dialup network classes"
698dcdb6 179ac_help="$ac_help
8168de4c 180 --enable-apple_ieee use the Apple IEEE codec"
698dcdb6 181ac_help="$ac_help
8168de4c 182 --enable-timer use wxTimer class"
698dcdb6 183ac_help="$ac_help
8168de4c 184 --enable-wave use wxWave class"
698dcdb6 185ac_help="$ac_help
8168de4c 186 --enable-fraction use wxFraction class"
698dcdb6 187ac_help="$ac_help
8168de4c 188 --enable-dynlib use wxLibrary class for DLL loading"
0b9ab0bd
RL
189ac_help="$ac_help
190 --enable-dynamicloader use (new) wxDynamicLibrary class"
698dcdb6 191ac_help="$ac_help
8168de4c 192 --enable-longlong use wxLongLong class"
698dcdb6 193ac_help="$ac_help
8168de4c 194 --enable-geometry use geometry class"
698dcdb6 195ac_help="$ac_help
8168de4c 196 --enable-log use logging system"
698dcdb6 197ac_help="$ac_help
8168de4c 198 --enable-streams use wxStream etc classes"
698dcdb6 199ac_help="$ac_help
8168de4c 200 --enable-file use wxFile classes"
698dcdb6 201ac_help="$ac_help
8168de4c 202 --enable-ffile use wxFFile classes"
1e6feb95 203ac_help="$ac_help
a3a584a7
VZ
204 --enable-textbuf use wxTextBuffer class"
205ac_help="$ac_help
206 --enable-textfile use wxTextFile class"
698dcdb6 207ac_help="$ac_help
8168de4c 208 --enable-fontmap use font encodings conversion classes"
1e6feb95 209ac_help="$ac_help
8168de4c 210 --enable-unicode compile wxString with Unicode support"
a72a4bfa
VS
211ac_help="$ac_help
212 --enable-mslu use MS Layer for Unicode on Windows 9x (win32 only)"
698dcdb6 213ac_help="$ac_help
8168de4c 214 --enable-wxprintfv use wxWindows implementation of vprintf()"
698dcdb6 215ac_help="$ac_help
8168de4c 216 --enable-std_iostreams use standard C++ stream classes"
698dcdb6 217ac_help="$ac_help
8168de4c 218 --enable-filesystem use virtual file systems classes"
698dcdb6 219ac_help="$ac_help
8168de4c 220 --enable-fs_inet use virtual HTTP/FTP filesystems"
698dcdb6 221ac_help="$ac_help
8168de4c 222 --enable-fs_zip use virtual ZIP filesystems"
698dcdb6 223ac_help="$ac_help
8168de4c 224 --enable-zipstream use wxZipInputStream"
698dcdb6 225ac_help="$ac_help
8168de4c 226 --enable-catch_segvs catch signals and pass them to wxApp::OnFatalException"
698dcdb6 227ac_help="$ac_help
8168de4c 228 --enable-snglinst use wxSingleInstanceChecker class"
698dcdb6 229ac_help="$ac_help
69d27ff7 230 --enable-mimetype use wxMimeTypesManager"
3e44f09d 231ac_help="$ac_help
b3e8d00a 232 --enable-sysoptions use wxSystemOptions"
4cdb0ab0
VS
233ac_help="$ac_help
234 --enable-url use wxURL class"
235ac_help="$ac_help
236 --enable-protocol use wxProtocol class"
237ac_help="$ac_help
238 --enable-protocol-http HTTP support in wxProtocol"
239ac_help="$ac_help
240 --enable-protocol-ftp FTP support in wxProtocol"
241ac_help="$ac_help
242 --enable-protocol-file FILE support in wxProtocol"
1e6feb95 243ac_help="$ac_help
8168de4c 244 --enable-threads use threads"
698dcdb6 245ac_help="$ac_help
8168de4c 246 --enable-docview use document view architecture"
698dcdb6 247ac_help="$ac_help
3379ed37 248 --enable-help use help subsystem"
29fd3c0c
VS
249ac_help="$ac_help
250 --enable-mshtmlhelp use MS HTML Help (win32)"
3379ed37
VZ
251ac_help="$ac_help
252 --enable-html use wxHTML sub-library"
253ac_help="$ac_help
254 --enable-htmlhelp use wxHTML-based help"
698dcdb6 255ac_help="$ac_help
8168de4c 256 --enable-constraints use layout-constraints system"
698dcdb6 257ac_help="$ac_help
8168de4c 258 --enable-printarch use printing architecture"
698dcdb6 259ac_help="$ac_help
8168de4c 260 --enable-mdi use multiple document interface architecture"
698dcdb6 261ac_help="$ac_help
8168de4c 262 --enable-loggui use standard GUI logger"
1e6feb95 263ac_help="$ac_help
8168de4c 264 --enable-logwin use wxLogWindow"
69d27ff7
MB
265ac_help="$ac_help
266 --enable-logdialog use wxLogDialog"
1e6feb95 267ac_help="$ac_help
8168de4c 268 --enable-postscript use wxPostscriptDC device context (default for gtk+)"
698dcdb6 269ac_help="$ac_help
8168de4c 270 --enable-prologio use Prolog IO library"
698dcdb6 271ac_help="$ac_help
8168de4c 272 --enable-resources use wxWindows resources"
698dcdb6 273ac_help="$ac_help
8168de4c 274 --enable-xresources use X resources for save (default for gtk+)"
698dcdb6 275ac_help="$ac_help
8168de4c 276 --enable-clipboard use wxClipboard classes"
698dcdb6 277ac_help="$ac_help
8168de4c 278 --enable-dnd use Drag'n'Drop classes"
698dcdb6 279ac_help="$ac_help
8168de4c 280 --enable-metafile use win32 metafiles"
698dcdb6 281ac_help="$ac_help
24176f2c 282 --enable-treelayout use wxTreeLayout classes"
698dcdb6 283ac_help="$ac_help
8168de4c 284 --enable-controls use all usual controls"
698dcdb6 285ac_help="$ac_help
8168de4c 286 --enable-accel use accelerators"
698dcdb6 287ac_help="$ac_help
8168de4c 288 --enable-button use wxButton class"
698dcdb6 289ac_help="$ac_help
8168de4c 290 --enable-bmpbutton use wxBitmapButton class"
698dcdb6 291ac_help="$ac_help
8168de4c 292 --enable-calendar use wxCalendarCtrl class"
1e6feb95 293ac_help="$ac_help
8168de4c 294 --enable-caret use wxCaret class"
1e6feb95 295ac_help="$ac_help
8168de4c 296 --enable-checkbox use wxCheckBox class"
698dcdb6 297ac_help="$ac_help
8168de4c 298 --enable-checklst use wxCheckListBox (listbox with checkboxes) class"
698dcdb6 299ac_help="$ac_help
8168de4c 300 --enable-choice use wxChoice class"
698dcdb6 301ac_help="$ac_help
8168de4c 302 --enable-combobox use wxComboBox classes"
698dcdb6 303ac_help="$ac_help
8168de4c 304 --enable-gauge use wxGauge class"
698dcdb6 305ac_help="$ac_help
8168de4c 306 --enable-grid use wxGrid class"
698dcdb6 307ac_help="$ac_help
8168de4c 308 --enable-newgrid use new wxGrid class"
698dcdb6 309ac_help="$ac_help
8168de4c 310 --enable-imaglist use wxImageList class"
698dcdb6 311ac_help="$ac_help
8168de4c 312 --enable-listbox use wxListBox class"
698dcdb6 313ac_help="$ac_help
8168de4c 314 --enable-listctrl use wxListCtrl class"
698dcdb6 315ac_help="$ac_help
8168de4c 316 --enable-notebook use wxNotebook class"
24176f2c
GD
317ac_help="$ac_help
318 --enable-propsheet use wxPropertySheet class"
698dcdb6 319ac_help="$ac_help
8168de4c 320 --enable-radiobox use wxRadioBox class"
698dcdb6 321ac_help="$ac_help
8168de4c 322 --enable-radiobtn use wxRadioButton class"
698dcdb6 323ac_help="$ac_help
8168de4c 324 --enable-sash use wxSashWindow class"
698dcdb6 325ac_help="$ac_help
8168de4c 326 --enable-scrollbar use wxScrollBar class and scrollable windows"
698dcdb6 327ac_help="$ac_help
8168de4c 328 --enable-slider use wxSlider class"
698dcdb6 329ac_help="$ac_help
8168de4c 330 --enable-spinbtn use wxSpinButton class"
698dcdb6 331ac_help="$ac_help
8168de4c 332 --enable-spinctrl use wxSpinCtrl class"
698dcdb6 333ac_help="$ac_help
8168de4c 334 --enable-splitter use wxSplitterWindow class"
698dcdb6 335ac_help="$ac_help
8168de4c 336 --enable-statbmp use wxStaticBitmap class"
698dcdb6 337ac_help="$ac_help
8168de4c 338 --enable-statbox use wxStaticBox class"
698dcdb6 339ac_help="$ac_help
8168de4c 340 --enable-statline use wxStaticLine class"
698dcdb6 341ac_help="$ac_help
8168de4c 342 --enable-stattext use wxStaticText class"
1e6feb95 343ac_help="$ac_help
8168de4c 344 --enable-statusbar use wxStatusBar class"
698dcdb6 345ac_help="$ac_help
8168de4c 346 --enable-tabdialog use wxTabControl class"
698dcdb6 347ac_help="$ac_help
8168de4c 348 --enable-textctrl use wxTextCtrl class"
1e6feb95 349ac_help="$ac_help
8168de4c 350 --enable-togglebtn use wxToggleButton class"
698dcdb6 351ac_help="$ac_help
8168de4c 352 --enable-toolbar use wxToolBar class"
698dcdb6 353ac_help="$ac_help
8168de4c 354 --enable-tbarnative use native wxToolBar class"
698dcdb6 355ac_help="$ac_help
8168de4c 356 --enable-tbarsmpl use wxToolBarSimple class"
698dcdb6 357ac_help="$ac_help
8168de4c 358 --enable-treectrl use wxTreeCtrl class"
9926e4a4
VZ
359ac_help="$ac_help
360 --enable-tipwindow use wxTipWindow class"
9f41d601
RR
361ac_help="$ac_help
362 --enable-popupwin use wxPopUpWindow class"
698dcdb6 363ac_help="$ac_help
b3e8d00a 364 --enable-commondlg use all common dialogs"
698dcdb6 365ac_help="$ac_help
8168de4c 366 --enable-choicedlg use wxChoiceDialog"
1e6feb95 367ac_help="$ac_help
8168de4c 368 --enable-coldlg use wxColourDialog"
1e6feb95 369ac_help="$ac_help
8168de4c 370 --enable-filedlg use wxFileDialog"
8db37e06
VZ
371ac_help="$ac_help
372 --enable-finddlg use wxFindReplaceDialog"
1e6feb95 373ac_help="$ac_help
8168de4c 374 --enable-fontdlg use wxFontDialog"
1e6feb95 375ac_help="$ac_help
8168de4c 376 --enable-dirdlg use wxDirDialog"
698dcdb6 377ac_help="$ac_help
8168de4c 378 --enable-msgdlg use wxMessageDialog"
1e6feb95 379ac_help="$ac_help
8168de4c 380 --enable-numberdlg use wxNumberEntryDialog"
cbca9943
VZ
381ac_help="$ac_help
382 --enable-splash use wxSplashScreen"
1e6feb95 383ac_help="$ac_help
8168de4c 384 --enable-textdlg use wxTextDialog"
698dcdb6 385ac_help="$ac_help
8168de4c 386 --enable-tipdlg use startup tips"
698dcdb6 387ac_help="$ac_help
8168de4c 388 --enable-progressdlg use wxProgressDialog"
b1f5d087
VZ
389ac_help="$ac_help
390 --enable-wizarddlg use wxWizard"
698dcdb6 391ac_help="$ac_help
8168de4c 392 --enable-menus use wxMenu/wxMenuBar/wxMenuItem classes"
1e6feb95 393ac_help="$ac_help
8168de4c 394 --enable-miniframe use wxMiniFrame class"
698dcdb6 395ac_help="$ac_help
8168de4c 396 --enable-tooltips use wxToolTip class"
698dcdb6 397ac_help="$ac_help
8168de4c 398 --enable-splines use spline drawing code"
698dcdb6 399ac_help="$ac_help
8168de4c 400 --enable-validators use wxValidator and derived classes"
698dcdb6 401ac_help="$ac_help
8168de4c 402 --enable-busyinfo use wxBusyInfo"
698dcdb6 403ac_help="$ac_help
b3e8d00a 404 --enable-joystick use wxJoystick (Linux only)"
698dcdb6 405ac_help="$ac_help
8168de4c 406 --enable-metafiles use wxMetaFile (Windows only)"
24fd6d87
VZ
407ac_help="$ac_help
408 --enable-dragimage use wxDragImage"
edae8572
VZ
409ac_help="$ac_help
410 --enable-palette use wxPalette class"
1e6feb95 411ac_help="$ac_help
8168de4c 412 --enable-image use wxImage class"
698dcdb6 413ac_help="$ac_help
8168de4c 414 --enable-gif use gif images (GIF file format)"
698dcdb6 415ac_help="$ac_help
8168de4c 416 --enable-pcx use pcx images (PCX file format)"
4b6b4dfc
RR
417ac_help="$ac_help
418 --enable-iff use iff images (IFF file format)"
698dcdb6 419ac_help="$ac_help
8168de4c 420 --enable-pnm use pnm images (PNM file format)"
698dcdb6 421ac_help="$ac_help
8168de4c 422 --enable-xpm use xpm images (XPM file format)"
658974ae
VS
423ac_help="$ac_help
424 --enable-icocur use Windows ICO and CUR formats"
90dd450c
VZ
425ac_help="$ac_help
426 --disable-largefile omit support for large files"
698dcdb6 427ac_help="$ac_help
9e691f46 428 --disable-gtktest do not try to compile and run a test GTK+ program"
3f345b47
VZ
429ac_help="$ac_help
430 --with-gtk-prefix=PFX Prefix where GTK is installed (optional)"
431ac_help="$ac_help
432 --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)"
433ac_help="$ac_help
434 --disable-gtktest Do not try to compile and run a test GTK program"
435ac_help="$ac_help
436 --with-gtk-prefix=PFX Prefix where GTK is installed (optional)"
437ac_help="$ac_help
438 --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)"
439ac_help="$ac_help
440 --disable-gtktest Do not try to compile and run a test GTK program"
698dcdb6
VZ
441ac_help="$ac_help
442 --with-x use the X Window System"
b040e242
VS
443ac_help="$ac_help
444 --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib"
10f2d63a
VZ
445
446# Initialize some variables set by options.
447# The variables have the same names as the options, with
448# dashes changed to underlines.
698dcdb6
VZ
449build=NONE
450cache_file=./config.cache
10f2d63a 451exec_prefix=NONE
698dcdb6 452host=NONE
10f2d63a 453no_create=
698dcdb6 454nonopt=NONE
10f2d63a
VZ
455no_recursion=
456prefix=NONE
457program_prefix=NONE
458program_suffix=NONE
459program_transform_name=s,x,x,
460silent=
461site=
462srcdir=
698dcdb6 463target=NONE
10f2d63a
VZ
464verbose=
465x_includes=NONE
466x_libraries=NONE
467bindir='${exec_prefix}/bin'
468sbindir='${exec_prefix}/sbin'
469libexecdir='${exec_prefix}/libexec'
470datadir='${prefix}/share'
471sysconfdir='${prefix}/etc'
472sharedstatedir='${prefix}/com'
473localstatedir='${prefix}/var'
474libdir='${exec_prefix}/lib'
475includedir='${prefix}/include'
476oldincludedir='/usr/include'
477infodir='${prefix}/info'
478mandir='${prefix}/man'
479
698dcdb6
VZ
480# Initialize some other variables.
481subdirs=
482MFLAGS= MAKEFLAGS=
483SHELL=${CONFIG_SHELL-/bin/sh}
484# Maximum number of lines to put in a shell here document.
485ac_max_here_lines=12
10f2d63a
VZ
486
487ac_prev=
488for ac_option
489do
698dcdb6 490
10f2d63a
VZ
491 # If the previous option needs an argument, assign it.
492 if test -n "$ac_prev"; then
493 eval "$ac_prev=\$ac_option"
494 ac_prev=
495 continue
496 fi
497
698dcdb6
VZ
498 case "$ac_option" in
499 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
500 *) ac_optarg= ;;
501 esac
10f2d63a
VZ
502
503 # Accept the important Cygnus configure options, so we can diagnose typos.
504
698dcdb6 505 case "$ac_option" in
10f2d63a
VZ
506
507 -bindir | --bindir | --bindi | --bind | --bin | --bi)
508 ac_prev=bindir ;;
509 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
698dcdb6 510 bindir="$ac_optarg" ;;
10f2d63a
VZ
511
512 -build | --build | --buil | --bui | --bu)
698dcdb6 513 ac_prev=build ;;
10f2d63a 514 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
698dcdb6 515 build="$ac_optarg" ;;
10f2d63a
VZ
516
517 -cache-file | --cache-file | --cache-fil | --cache-fi \
518 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
519 ac_prev=cache_file ;;
520 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
521 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
698dcdb6 522 cache_file="$ac_optarg" ;;
10f2d63a
VZ
523
524 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
525 ac_prev=datadir ;;
526 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
527 | --da=*)
698dcdb6 528 datadir="$ac_optarg" ;;
10f2d63a
VZ
529
530 -disable-* | --disable-*)
698dcdb6 531 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
10f2d63a 532 # Reject names that are not valid shell variable names.
698dcdb6
VZ
533 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
534 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
535 fi
536 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
537 eval "enable_${ac_feature}=no" ;;
10f2d63a
VZ
538
539 -enable-* | --enable-*)
698dcdb6 540 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
10f2d63a 541 # Reject names that are not valid shell variable names.
698dcdb6
VZ
542 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
543 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
544 fi
545 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
546 case "$ac_option" in
547 *=*) ;;
10f2d63a
VZ
548 *) ac_optarg=yes ;;
549 esac
698dcdb6 550 eval "enable_${ac_feature}='$ac_optarg'" ;;
10f2d63a
VZ
551
552 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
553 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
554 | --exec | --exe | --ex)
555 ac_prev=exec_prefix ;;
556 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
557 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
558 | --exec=* | --exe=* | --ex=*)
698dcdb6 559 exec_prefix="$ac_optarg" ;;
10f2d63a
VZ
560
561 -gas | --gas | --ga | --g)
562 # Obsolete; use --with-gas.
563 with_gas=yes ;;
564
698dcdb6
VZ
565 -help | --help | --hel | --he)
566 # Omit some internal or obsolete options to make the list less imposing.
567 # This message is too long to be a string in the A/UX 3.1 sh.
568 cat << EOF
569Usage: configure [options] [host]
570Options: [defaults in brackets after descriptions]
571Configuration:
572 --cache-file=FILE cache test results in FILE
573 --help print this message
574 --no-create do not create output files
575 --quiet, --silent do not print \`checking...' messages
576 --version print the version of autoconf that created configure
577Directory and file names:
578 --prefix=PREFIX install architecture-independent files in PREFIX
579 [$ac_default_prefix]
580 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
581 [same as prefix]
582 --bindir=DIR user executables in DIR [EPREFIX/bin]
583 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
584 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
585 --datadir=DIR read-only architecture-independent data in DIR
586 [PREFIX/share]
587 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
588 --sharedstatedir=DIR modifiable architecture-independent data in DIR
589 [PREFIX/com]
590 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
591 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
592 --includedir=DIR C header files in DIR [PREFIX/include]
593 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
594 --infodir=DIR info documentation in DIR [PREFIX/info]
595 --mandir=DIR man documentation in DIR [PREFIX/man]
596 --srcdir=DIR find the sources in DIR [configure dir or ..]
597 --program-prefix=PREFIX prepend PREFIX to installed program names
598 --program-suffix=SUFFIX append SUFFIX to installed program names
599 --program-transform-name=PROGRAM
600 run sed PROGRAM on installed program names
601EOF
602 cat << EOF
603Host type:
604 --build=BUILD configure for building on BUILD [BUILD=HOST]
605 --host=HOST configure for HOST [guessed]
606 --target=TARGET configure for TARGET [TARGET=HOST]
607Features and packages:
608 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
609 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
610 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
611 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
612 --x-includes=DIR X include files are in DIR
613 --x-libraries=DIR X library files are in DIR
614EOF
615 if test -n "$ac_help"; then
616 echo "--enable and --with options recognized:$ac_help"
617 fi
618 exit 0 ;;
10f2d63a
VZ
619
620 -host | --host | --hos | --ho)
698dcdb6 621 ac_prev=host ;;
10f2d63a 622 -host=* | --host=* | --hos=* | --ho=*)
698dcdb6 623 host="$ac_optarg" ;;
10f2d63a
VZ
624
625 -includedir | --includedir | --includedi | --included | --include \
626 | --includ | --inclu | --incl | --inc)
627 ac_prev=includedir ;;
628 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
629 | --includ=* | --inclu=* | --incl=* | --inc=*)
698dcdb6 630 includedir="$ac_optarg" ;;
10f2d63a
VZ
631
632 -infodir | --infodir | --infodi | --infod | --info | --inf)
633 ac_prev=infodir ;;
634 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
698dcdb6 635 infodir="$ac_optarg" ;;
10f2d63a
VZ
636
637 -libdir | --libdir | --libdi | --libd)
638 ac_prev=libdir ;;
639 -libdir=* | --libdir=* | --libdi=* | --libd=*)
698dcdb6 640 libdir="$ac_optarg" ;;
10f2d63a
VZ
641
642 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
643 | --libexe | --libex | --libe)
644 ac_prev=libexecdir ;;
645 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
646 | --libexe=* | --libex=* | --libe=*)
698dcdb6 647 libexecdir="$ac_optarg" ;;
10f2d63a
VZ
648
649 -localstatedir | --localstatedir | --localstatedi | --localstated \
650 | --localstate | --localstat | --localsta | --localst \
651 | --locals | --local | --loca | --loc | --lo)
652 ac_prev=localstatedir ;;
653 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
654 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
655 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
698dcdb6 656 localstatedir="$ac_optarg" ;;
10f2d63a
VZ
657
658 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
659 ac_prev=mandir ;;
660 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
698dcdb6 661 mandir="$ac_optarg" ;;
10f2d63a
VZ
662
663 -nfp | --nfp | --nf)
664 # Obsolete; use --without-fp.
665 with_fp=no ;;
666
667 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
668 | --no-cr | --no-c)
669 no_create=yes ;;
670
671 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
672 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
673 no_recursion=yes ;;
674
675 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
676 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
677 | --oldin | --oldi | --old | --ol | --o)
678 ac_prev=oldincludedir ;;
679 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
680 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
681 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
698dcdb6 682 oldincludedir="$ac_optarg" ;;
10f2d63a
VZ
683
684 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
685 ac_prev=prefix ;;
686 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
698dcdb6 687 prefix="$ac_optarg" ;;
10f2d63a
VZ
688
689 -program-prefix | --program-prefix | --program-prefi | --program-pref \
690 | --program-pre | --program-pr | --program-p)
691 ac_prev=program_prefix ;;
692 -program-prefix=* | --program-prefix=* | --program-prefi=* \
693 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
698dcdb6 694 program_prefix="$ac_optarg" ;;
10f2d63a
VZ
695
696 -program-suffix | --program-suffix | --program-suffi | --program-suff \
697 | --program-suf | --program-su | --program-s)
698 ac_prev=program_suffix ;;
699 -program-suffix=* | --program-suffix=* | --program-suffi=* \
700 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
698dcdb6 701 program_suffix="$ac_optarg" ;;
10f2d63a
VZ
702
703 -program-transform-name | --program-transform-name \
704 | --program-transform-nam | --program-transform-na \
705 | --program-transform-n | --program-transform- \
706 | --program-transform | --program-transfor \
707 | --program-transfo | --program-transf \
708 | --program-trans | --program-tran \
709 | --progr-tra | --program-tr | --program-t)
710 ac_prev=program_transform_name ;;
711 -program-transform-name=* | --program-transform-name=* \
712 | --program-transform-nam=* | --program-transform-na=* \
713 | --program-transform-n=* | --program-transform-=* \
714 | --program-transform=* | --program-transfor=* \
715 | --program-transfo=* | --program-transf=* \
716 | --program-trans=* | --program-tran=* \
717 | --progr-tra=* | --program-tr=* | --program-t=*)
698dcdb6 718 program_transform_name="$ac_optarg" ;;
10f2d63a
VZ
719
720 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
721 | -silent | --silent | --silen | --sile | --sil)
722 silent=yes ;;
723
724 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
725 ac_prev=sbindir ;;
726 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
727 | --sbi=* | --sb=*)
698dcdb6 728 sbindir="$ac_optarg" ;;
10f2d63a
VZ
729
730 -sharedstatedir | --sharedstatedir | --sharedstatedi \
731 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
732 | --sharedst | --shareds | --shared | --share | --shar \
733 | --sha | --sh)
734 ac_prev=sharedstatedir ;;
735 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
736 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
737 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
738 | --sha=* | --sh=*)
698dcdb6 739 sharedstatedir="$ac_optarg" ;;
10f2d63a
VZ
740
741 -site | --site | --sit)
742 ac_prev=site ;;
743 -site=* | --site=* | --sit=*)
698dcdb6 744 site="$ac_optarg" ;;
10f2d63a
VZ
745
746 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
747 ac_prev=srcdir ;;
748 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
698dcdb6 749 srcdir="$ac_optarg" ;;
10f2d63a
VZ
750
751 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
752 | --syscon | --sysco | --sysc | --sys | --sy)
753 ac_prev=sysconfdir ;;
754 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
755 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
698dcdb6 756 sysconfdir="$ac_optarg" ;;
10f2d63a
VZ
757
758 -target | --target | --targe | --targ | --tar | --ta | --t)
698dcdb6 759 ac_prev=target ;;
10f2d63a 760 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
698dcdb6 761 target="$ac_optarg" ;;
10f2d63a
VZ
762
763 -v | -verbose | --verbose | --verbos | --verbo | --verb)
764 verbose=yes ;;
765
698dcdb6
VZ
766 -version | --version | --versio | --versi | --vers)
767 echo "configure generated by autoconf version 2.13"
768 exit 0 ;;
10f2d63a
VZ
769
770 -with-* | --with-*)
698dcdb6 771 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
10f2d63a 772 # Reject names that are not valid shell variable names.
698dcdb6
VZ
773 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
774 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
775 fi
10f2d63a 776 ac_package=`echo $ac_package| sed 's/-/_/g'`
698dcdb6
VZ
777 case "$ac_option" in
778 *=*) ;;
10f2d63a
VZ
779 *) ac_optarg=yes ;;
780 esac
698dcdb6 781 eval "with_${ac_package}='$ac_optarg'" ;;
10f2d63a
VZ
782
783 -without-* | --without-*)
698dcdb6 784 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
10f2d63a 785 # Reject names that are not valid shell variable names.
698dcdb6
VZ
786 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
787 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
788 fi
789 ac_package=`echo $ac_package| sed 's/-/_/g'`
790 eval "with_${ac_package}=no" ;;
10f2d63a
VZ
791
792 --x)
793 # Obsolete; use --with-x.
794 with_x=yes ;;
795
796 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
797 | --x-incl | --x-inc | --x-in | --x-i)
798 ac_prev=x_includes ;;
799 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
800 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
698dcdb6 801 x_includes="$ac_optarg" ;;
10f2d63a
VZ
802
803 -x-libraries | --x-libraries | --x-librarie | --x-librari \
804 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
805 ac_prev=x_libraries ;;
806 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
807 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
698dcdb6 808 x_libraries="$ac_optarg" ;;
10f2d63a 809
698dcdb6 810 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
10f2d63a
VZ
811 ;;
812
813 *)
698dcdb6
VZ
814 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
815 echo "configure: warning: $ac_option: invalid host type" 1>&2
816 fi
817 if test "x$nonopt" != xNONE; then
818 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
819 fi
820 nonopt="$ac_option"
10f2d63a
VZ
821 ;;
822
823 esac
824done
825
826if test -n "$ac_prev"; then
698dcdb6
VZ
827 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
828fi
829
830trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
831
832# File descriptor usage:
833# 0 standard input
834# 1 file creation
835# 2 errors and warnings
836# 3 some systems may open it to /dev/tty
837# 4 used on the Kubota Titan
838# 6 checking for... messages and results
839# 5 compiler messages saved in config.log
840if test "$silent" = yes; then
841 exec 6>/dev/null
842else
843 exec 6>&1
10f2d63a 844fi
698dcdb6
VZ
845exec 5>./config.log
846
847echo "\
848This file contains any messages produced by compilers while
849running configure, to aid debugging if configure makes a mistake.
850" 1>&5
10f2d63a 851
698dcdb6
VZ
852# Strip out --no-create and --no-recursion so they do not pile up.
853# Also quote any args containing shell metacharacters.
854ac_configure_args=
855for ac_arg
10f2d63a 856do
698dcdb6
VZ
857 case "$ac_arg" in
858 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
859 | --no-cr | --no-c) ;;
860 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
861 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
862 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
863 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
864 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
10f2d63a
VZ
865 esac
866done
867
698dcdb6
VZ
868# NLS nuisances.
869# Only set these to C if already set. These must not be set unconditionally
870# because not all systems understand e.g. LANG=C (notably SCO).
871# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
872# Non-C LC_CTYPE values break the ctype check.
873if test "${LANG+set}" = set; then LANG=C; export LANG; fi
874if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
875if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
876if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
10f2d63a 877
698dcdb6
VZ
878# confdefs.h avoids OS command line length limits that DEFS can exceed.
879rm -rf conftest* confdefs.h
880# AIX cpp loses on an empty file, so make sure it contains at least a newline.
881echo > confdefs.h
10f2d63a 882
698dcdb6
VZ
883# A filename unique to this package, relative to the directory that
884# configure is in, which we can look for to find out if srcdir is correct.
885ac_unique_file=wx-config.in
10f2d63a
VZ
886
887# Find the source files, if location was not specified.
888if test -z "$srcdir"; then
889 ac_srcdir_defaulted=yes
890 # Try the directory containing this script, then its parent.
891 ac_prog=$0
698dcdb6 892 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
10f2d63a
VZ
893 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
894 srcdir=$ac_confdir
895 if test ! -r $srcdir/$ac_unique_file; then
896 srcdir=..
897 fi
898else
899 ac_srcdir_defaulted=no
900fi
901if test ! -r $srcdir/$ac_unique_file; then
902 if test "$ac_srcdir_defaulted" = yes; then
698dcdb6 903 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
10f2d63a 904 else
698dcdb6 905 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
10f2d63a
VZ
906 fi
907fi
698dcdb6 908srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
10f2d63a
VZ
909
910# Prefer explicitly selected file to automatically selected ones.
911if test -z "$CONFIG_SITE"; then
912 if test "x$prefix" != xNONE; then
913 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
914 else
915 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
916 fi
917fi
918for ac_site_file in $CONFIG_SITE; do
919 if test -r "$ac_site_file"; then
698dcdb6 920 echo "loading site script $ac_site_file"
10f2d63a
VZ
921 . "$ac_site_file"
922 fi
923done
924
925if test -r "$cache_file"; then
698dcdb6
VZ
926 echo "loading cache $cache_file"
927 . $cache_file
10f2d63a 928else
698dcdb6
VZ
929 echo "creating cache $cache_file"
930 > $cache_file
10f2d63a
VZ
931fi
932
933ac_ext=c
698dcdb6 934# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10f2d63a 935ac_cpp='$CPP $CPPFLAGS'
698dcdb6
VZ
936ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
937ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
938cross_compiling=$ac_cv_prog_cc_cross
939
940ac_exeext=
941ac_objext=o
942if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
943 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
944 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
945 ac_n= ac_c='
946' ac_t=' '
947 else
948 ac_n=-n ac_c= ac_t=
949 fi
10f2d63a 950else
698dcdb6 951 ac_n= ac_c='\c' ac_t=
10f2d63a 952fi
698dcdb6
VZ
953
954
10f2d63a 955
7c66a493
VZ
956ac_aux_dir=
957for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
958 if test -f $ac_dir/install-sh; then
959 ac_aux_dir=$ac_dir
960 ac_install_sh="$ac_aux_dir/install-sh -c"
961 break
962 elif test -f $ac_dir/install.sh; then
963 ac_aux_dir=$ac_dir
964 ac_install_sh="$ac_aux_dir/install.sh -c"
965 break
966 fi
967done
968if test -z "$ac_aux_dir"; then
698dcdb6 969 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
7c66a493 970fi
698dcdb6
VZ
971ac_config_guess=$ac_aux_dir/config.guess
972ac_config_sub=$ac_aux_dir/config.sub
973ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
703e0a69 974
698dcdb6
VZ
975
976# Do some error checking and defaulting for the host and target type.
977# The inputs are:
978# configure --host=HOST --target=TARGET --build=BUILD NONOPT
979#
980# The rules are:
981# 1. You are not allowed to specify --host, --target, and nonopt at the
982# same time.
983# 2. Host defaults to nonopt.
984# 3. If nonopt is not specified, then host defaults to the current host,
985# as determined by config.guess.
986# 4. Target and build default to nonopt.
987# 5. If nonopt is not specified, then target and build default to host.
7c66a493
VZ
988
989# The aliases save the names the user supplied, while $host etc.
990# will get canonicalized.
698dcdb6
VZ
991case $host---$target---$nonopt in
992NONE---*---* | *---NONE---* | *---*---NONE) ;;
993*) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
994esac
995
996
997# Make sure we can run config.sub.
998if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
999else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1000fi
1001
1002echo $ac_n "checking host system type""... $ac_c" 1>&6
9e691f46 1003echo "configure:1004: checking host system type" >&5
698dcdb6
VZ
1004
1005host_alias=$host
1006case "$host_alias" in
1007NONE)
1008 case $nonopt in
1009 NONE)
1010 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
1011 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1012 fi ;;
1013 *) host_alias=$nonopt ;;
1014 esac ;;
1015esac
1016
1017host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
1018host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1019host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1020host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1021echo "$ac_t""$host" 1>&6
1022
1023echo $ac_n "checking target system type""... $ac_c" 1>&6
9e691f46 1024echo "configure:1025: checking target system type" >&5
698dcdb6
VZ
1025
1026target_alias=$target
1027case "$target_alias" in
1028NONE)
1029 case $nonopt in
1030 NONE) target_alias=$host_alias ;;
1031 *) target_alias=$nonopt ;;
1032 esac ;;
1033esac
1034
1035target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
1036target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1037target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1038target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1039echo "$ac_t""$target" 1>&6
1040
1041echo $ac_n "checking build system type""... $ac_c" 1>&6
9e691f46 1042echo "configure:1043: checking build system type" >&5
698dcdb6
VZ
1043
1044build_alias=$build
1045case "$build_alias" in
1046NONE)
1047 case $nonopt in
1048 NONE) build_alias=$host_alias ;;
1049 *) build_alias=$nonopt ;;
1050 esac ;;
1051esac
1052
1053build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1054build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1055build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1056build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1057echo "$ac_t""$build" 1>&6
1058
1059test "$host_alias" != "$target_alias" &&
7c66a493
VZ
1060 test "$program_prefix$program_suffix$program_transform_name" = \
1061 NONENONEs,x,x, &&
1062 program_prefix=${target_alias}-
1063
698dcdb6
VZ
1064
1065
10f2d63a 1066WX_MAJOR_VERSION_NUMBER=2
37d403aa 1067WX_MINOR_VERSION_NUMBER=3
a0d927d1 1068WX_RELEASE_NUMBER=3
10f2d63a 1069
10f2d63a 1070WX_VERSION=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER.$WX_RELEASE_NUMBER
10f2d63a 1071WX_RELEASE=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER
6426998c 1072
978f1259
RL
1073WX_MSW_VERSION=$WX_MAJOR_VERSION_NUMBER$WX_MINOR_VERSION_NUMBER$WX_RELEASE_NUMBER
1074
a0d927d1 1075WX_CURRENT=2
6426998c
RL
1076WX_REVISION=0
1077WX_AGE=0
1078
698dcdb6
VZ
1079
1080
10f2d63a
VZ
1081USE_UNIX=1
1082USE_WIN32=0
f9bc1684 1083USE_DOS=0
b12915c1 1084USE_BEOS=0
1216f52d 1085USE_MAC=0
b12915c1 1086
10f2d63a
VZ
1087USE_LINUX=
1088USE_SGI=
1089USE_HPUX=
1090USE_SYSV=
1091USE_SVR4=
1092USE_AIX=
1093USE_SUN=
1094USE_SOLARIS=
1095USE_SUNOS=
1096USE_ALPHA=
1097USE_OSF=
1098USE_BSD=
f11bdd03 1099USE_DARWIN=
10f2d63a 1100USE_FREEBSD=
95c8801c 1101USE_OPENBSD=
f6bcfd97 1102USE_NETBSD=
10f2d63a
VZ
1103USE_VMS=
1104USE_ULTRIX=
10f2d63a
VZ
1105USE_DATA_GENERAL=
1106
ab9b9eab
VZ
1107NEEDS_D_REENTRANT_FOR_R_FUNCS=0
1108
f79bd02d 1109ALL_TOOLKITS="GTK MAC MGL MICROWIN MOTIF MSW PM WINE X11"
10f2d63a
VZ
1110
1111DEFAULT_wxUSE_GTK=0
1e6feb95
VZ
1112DEFAULT_wxUSE_MAC=0
1113DEFAULT_wxUSE_MGL=0
1725144d 1114DEFAULT_wxUSE_MICROWIN=0
10f2d63a
VZ
1115DEFAULT_wxUSE_MOTIF=0
1116DEFAULT_wxUSE_MSW=0
e07802fc 1117DEFAULT_wxUSE_PM=0
1e6feb95 1118DEFAULT_wxUSE_WINE=0
f79bd02d 1119DEFAULT_wxUSE_X11=0
10f2d63a
VZ
1120
1121DEFAULT_DEFAULT_wxUSE_GTK=0
1e6feb95
VZ
1122DEFAULT_DEFAULT_wxUSE_MAC=0
1123DEFAULT_DEFAULT_wxUSE_MGL=0
1725144d 1124DEFAULT_DEFAULT_wxUSE_MICROWIN=0
10f2d63a
VZ
1125DEFAULT_DEFAULT_wxUSE_MOTIF=0
1126DEFAULT_DEFAULT_wxUSE_MSW=0
e07802fc 1127DEFAULT_DEFAULT_wxUSE_PM=0
1e6feb95 1128DEFAULT_DEFAULT_wxUSE_WINE=0
f79bd02d 1129DEFAULT_DEFAULT_wxUSE_X11=0
10f2d63a 1130
d6a55c4b 1131PROGRAM_EXT=
3a922bb4 1132SO_SUFFIX=so
d6a55c4b 1133
10f2d63a
VZ
1134case "${host}" in
1135 *-hp-hpux* )
1136 USE_HPUX=1
1137 DEFAULT_DEFAULT_wxUSE_MOTIF=1
ab9b9eab 1138 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
3a922bb4 1139 SO_SUFFIX=sl
698dcdb6 1140 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1141#define __HPUX__ 1
1142EOF
1143
1144 ;;
1145 *-*-linux* )
1146 USE_LINUX=1
698dcdb6 1147 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1148#define __LINUX__ 1
1149EOF
1150
1151 TMP=`uname -m`
1152 if test "x$TMP" = "xalpha"; then
1153 USE_ALPHA=1
698dcdb6 1154 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1155#define __ALPHA__ 1
1156EOF
1157
1158 fi
1159 DEFAULT_DEFAULT_wxUSE_GTK=1
1160 ;;
1161 *-*-irix5* | *-*-irix6* )
1162 USE_SGI=1
1163 USE_SVR4=1
698dcdb6 1164 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1165#define __SGI__ 1
1166EOF
1167
698dcdb6 1168 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1169#define __SVR4__ 1
1170EOF
1171
1172 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1173 ;;
1174 *-*-solaris2* )
1175 USE_SUN=1
1176 USE_SOLARIS=1
1177 USE_SVR4=1
698dcdb6 1178 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1179#define __SUN__ 1
1180EOF
1181
698dcdb6 1182 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1183#define __SOLARIS__ 1
1184EOF
1185
698dcdb6 1186 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1187#define __SVR4__ 1
1188EOF
1189
1190 DEFAULT_DEFAULT_wxUSE_MOTIF=1
ab9b9eab 1191 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
10f2d63a
VZ
1192 ;;
1193 *-*-sunos4* )
1194 USE_SUN=1
1195 USE_SUNOS=1
1196 USE_BSD=1
698dcdb6 1197 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1198#define __SUN__ 1
1199EOF
1200
698dcdb6 1201 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1202#define __SUNOS__ 1
1203EOF
1204
698dcdb6 1205 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1206#define __BSD__ 1
1207EOF
1208
1209 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1210 ;;
f6bcfd97 1211 *-*-freebsd*)
10f2d63a
VZ
1212 USE_BSD=1
1213 USE_FREEBSD=1
698dcdb6 1214 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1215#define __FREEBSD__ 1
1216EOF
1217
698dcdb6 1218 cat >> confdefs.h <<\EOF
10f2d63a 1219#define __BSD__ 1
95c8801c
VS
1220EOF
1221
1222 DEFAULT_DEFAULT_wxUSE_GTK=1
1223 ;;
1224 *-*-openbsd*)
1225 USE_BSD=1
1226 USE_OPENBSD=1
698dcdb6 1227 cat >> confdefs.h <<\EOF
95c8801c
VS
1228#define __FREEBSD__ 1
1229EOF
1230
698dcdb6 1231 cat >> confdefs.h <<\EOF
95c8801c 1232#define __OPENBSD__ 1
f6bcfd97
BP
1233EOF
1234
1235 DEFAULT_DEFAULT_wxUSE_GTK=1
1236 ;;
1237 *-*-netbsd*)
1238 USE_BSD=1
1239 USE_NETBSD=1
698dcdb6 1240 cat >> confdefs.h <<\EOF
f6bcfd97
BP
1241#define __FREEBSD__ 1
1242EOF
1243
698dcdb6 1244 cat >> confdefs.h <<\EOF
f6bcfd97 1245#define __NETBSD__ 1
10f2d63a
VZ
1246EOF
1247
1248 DEFAULT_DEFAULT_wxUSE_GTK=1
1249 ;;
1250 *-*-osf* )
1251 USE_ALPHA=1
1252 USE_OSF=1
698dcdb6 1253 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1254#define __ALPHA__ 1
1255EOF
1256
698dcdb6 1257 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1258#define __OSF__ 1
1259EOF
1260
1261 DEFAULT_DEFAULT_wxUSE_MOTIF=1
f6bcfd97 1262 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
10f2d63a
VZ
1263 ;;
1264 *-*-dgux5* )
1265 USE_ALPHA=1
1266 USE_SVR4=1
698dcdb6 1267 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1268#define __ALPHA__ 1
1269EOF
1270
698dcdb6 1271 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1272#define __SVR4__ 1
1273EOF
1274
1275 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1276 ;;
1277 *-*-sysv5* )
1278 USE_SYSV=1
1279 USE_SVR4=1
698dcdb6 1280 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1281#define __SYSV__ 1
1282EOF
1283
698dcdb6 1284 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1285#define __SVR4__ 1
1286EOF
1287
1288 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1289 ;;
1290 *-*-aix* )
1291 USE_AIX=1
1292 USE_SYSV=1
1293 USE_SVR4=1
321d2b14 1294 SO_SUFFIX=a
698dcdb6 1295 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1296#define __AIX__ 1
1297EOF
1298
698dcdb6 1299 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1300#define __SYSV__ 1
1301EOF
1302
698dcdb6 1303 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1304#define __SVR4__ 1
1305EOF
1306
1307 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1308 ;;
1309
1c8183e2 1310 *-*-cygwin* | *-*-mingw32* )
10f2d63a
VZ
1311 USE_UNIX=0
1312 USE_WIN32=1
3a922bb4 1313 SO_SUFFIX=dll
698dcdb6 1314 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1315#define __WIN32__ 1
1316EOF
1317
698dcdb6 1318 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1319#define __WIN95__ 1
1320EOF
1321
698dcdb6 1322 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1323#define __WINDOWS__ 1
1324EOF
1325
698dcdb6 1326 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1327#define __GNUWIN32__ 1
1328EOF
1329
698dcdb6 1330 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1331#define STRICT 1
1332EOF
1333
698dcdb6 1334 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1335#define WINVER 0x0400
1336EOF
1337
cf27ef00 1338 PROGRAM_EXT=".exe"
7b7a7637 1339 RESCOMP=windres
10f2d63a
VZ
1340 DEFAULT_DEFAULT_wxUSE_MSW=1
1341 ;;
1342
f9bc1684
VS
1343 *-pc-msdosdjgpp )
1344 USE_UNIX=0
1345 USE_DOS=1
1346 cat >> confdefs.h <<\EOF
1347#define __DOS__ 1
1348EOF
1349
1350 PROGRAM_EXT=".exe"
1351 DEFAULT_DEFAULT_wxUSE_MGL=1
f9bc1684
VS
1352 ;;
1353
6fa882bd 1354 *-pc-os2_emx | *-pc-os2-emx )
698dcdb6 1355 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1356#define __EMX__ 1
1357EOF
1358
cf27ef00 1359 PROGRAM_EXT=".exe"
e07802fc 1360 DEFAULT_DEFAULT_wxUSE_PM=1
d558c907 1361 LIBS="$LIBS -lstdcpp"
10f2d63a
VZ
1362 ;;
1363
d08b457b
GD
1364 powerpc-*-darwin* )
1365 USE_BSD=1
f11bdd03 1366 USE_DARWIN=1
3a922bb4 1367 SO_SUFFIX=dylib
698dcdb6 1368 cat >> confdefs.h <<\EOF
f11bdd03 1369#define __BSD__ 1
b4085ce6
GD
1370EOF
1371
698dcdb6 1372 cat >> confdefs.h <<\EOF
f11bdd03 1373#define __DARWIN__ 1
d08b457b
GD
1374EOF
1375
1376 cat >> confdefs.h <<\EOF
1377#define __POWERPC__ 1
b4085ce6
GD
1378EOF
1379
1380 DEFAULT_DEFAULT_wxUSE_MAC=1
1381 ;;
1382
b12915c1
VZ
1383 *-*-beos* )
1384 USE_BEOS=1
698dcdb6 1385 cat >> confdefs.h <<\EOF
b12915c1
VZ
1386#define __BEOS__ 1
1387EOF
1388
1389 ;;
1390
10f2d63a 1391 *)
698dcdb6 1392 { echo "configure: error: unknown system type ${host}." 1>&2; exit 1; }
10f2d63a
VZ
1393esac
1394
1395if test "$USE_UNIX" = 1 ; then
b12915c1 1396 wxUSE_UNIX=yes
698dcdb6 1397 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1398#define __UNIX__ 1
1399EOF
1400
10f2d63a
VZ
1401fi
1402
1e487827 1403
1e487827 1404
6232543b 1405
10f2d63a
VZ
1406 wx_arg_cache_file="configarg.cache"
1407 echo "loading argument cache $wx_arg_cache_file"
1408 rm -f ${wx_arg_cache_file}.tmp
1409 touch ${wx_arg_cache_file}.tmp
1410 touch ${wx_arg_cache_file}
698dcdb6 1411
10f2d63a
VZ
1412
1413DEBUG_CONFIGURE=0
1414if test $DEBUG_CONFIGURE = 1; then
1e6feb95
VZ
1415 DEFAULT_wxUSE_UNIVERSAL=no
1416
d8356fa3
VZ
1417 DEFAULT_wxUSE_NANOX=no
1418
10f2d63a
VZ
1419 DEFAULT_wxUSE_THREADS=yes
1420
1421 DEFAULT_wxUSE_SHARED=yes
3a922bb4 1422 DEFAULT_wxUSE_SONAME=no
1e6feb95 1423 DEFAULT_wxUSE_OPTIMISE=no
10f2d63a
VZ
1424 DEFAULT_wxUSE_PROFILE=no
1425 DEFAULT_wxUSE_NO_DEPS=no
8f4a9a10
RR
1426 DEFAULT_wxUSE_NO_RTTI=no
1427 DEFAULT_wxUSE_NO_EXCEPTIONS=no
10f2d63a
VZ
1428 DEFAULT_wxUSE_PERMISSIVE=no
1429 DEFAULT_wxUSE_DEBUG_FLAG=yes
1430 DEFAULT_wxUSE_DEBUG_INFO=yes
1431 DEFAULT_wxUSE_DEBUG_GDB=yes
1432 DEFAULT_wxUSE_MEM_TRACING=no
1433 DEFAULT_wxUSE_DEBUG_CONTEXT=no
1434 DEFAULT_wxUSE_DMALLOC=no
a7ae7112 1435 DEFAULT_wxUSE_PRECOMP=no
10f2d63a
VZ
1436 DEFAULT_wxUSE_APPLE_IEEE=no
1437
1438 DEFAULT_wxUSE_LOG=yes
1e6feb95
VZ
1439 DEFAULT_wxUSE_LOGWINDOW=no
1440 DEFAULT_wxUSE_LOGGUI=no
69d27ff7 1441 DEFAULT_wxUSE_LOGDIALOG=no
10f2d63a
VZ
1442
1443 DEFAULT_wxUSE_GUI=yes
1e6feb95 1444 DEFAULT_wxUSE_CONTROLS=no
10f2d63a 1445
3e44f09d 1446 DEFAULT_wxUSE_REGEX=no
10f2d63a
VZ
1447 DEFAULT_wxUSE_ZLIB=no
1448 DEFAULT_wxUSE_LIBPNG=no
1449 DEFAULT_wxUSE_LIBJPEG=no
c7a2bf27 1450 DEFAULT_wxUSE_LIBTIFF=no
10f2d63a 1451 DEFAULT_wxUSE_ODBC=no
bdad4e7e 1452 DEFAULT_wxUSE_OPENGL=no
10f2d63a 1453
eb4efbdc 1454 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=no
4f3c5f06 1455 DEFAULT_wxUSE_SNGLINST_CHECKER=no
10f2d63a 1456 DEFAULT_wxUSE_STD_IOSTREAM=no
1e6feb95
VZ
1457 DEFAULT_wxUSE_CMDLINE_PARSER=no
1458 DEFAULT_wxUSE_DATETIME=no
1459 DEFAULT_wxUSE_TIMEDATE=no
1460 DEFAULT_wxUSE_TIMER=no
1461 DEFAULT_wxUSE_STOPWATCH=no
10f2d63a 1462 DEFAULT_wxUSE_FILE=no
1e6feb95 1463 DEFAULT_wxUSE_FFILE=no
a3a584a7 1464 DEFAULT_wxUSE_TEXTBUFFER=no
10f2d63a 1465 DEFAULT_wxUSE_TEXTFILE=no
10f2d63a
VZ
1466 DEFAULT_wxUSE_WAVE=no
1467 DEFAULT_wxUSE_INTL=no
1468 DEFAULT_wxUSE_CONFIG=no
1e6feb95 1469 DEFAULT_wxUSE_FONTMAP=no
10f2d63a
VZ
1470 DEFAULT_wxUSE_STREAMS=no
1471 DEFAULT_wxUSE_SOCKETS=no
1472 DEFAULT_wxUSE_DIALUP_MANAGER=no
10f2d63a 1473 DEFAULT_wxUSE_JOYSTICK=no
6bff71f8 1474 DEFAULT_wxUSE_DYNLIB_CLASS=no
0b9ab0bd 1475 DEFAULT_wxUSE_DYNAMIC_LOADER=no
10f2d63a 1476 DEFAULT_wxUSE_LONGLONG=no
e8f65ba6 1477 DEFAULT_wxUSE_GEOMETRY=no
10f2d63a
VZ
1478
1479 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no
1480 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no
1481 DEFAULT_wxUSE_POSTSCRIPT=no
1482
1483 DEFAULT_wxUSE_X_RESOURCES=no
1484 DEFAULT_wxUSE_CLIPBOARD=no
1485 DEFAULT_wxUSE_TOOLTIPS=no
1486 DEFAULT_wxUSE_DRAG_AND_DROP=no
24fd6d87 1487 DEFAULT_wxUSE_DRAGIMAGE=no
10f2d63a
VZ
1488 DEFAULT_wxUSE_SPLINES=no
1489
1490 DEFAULT_wxUSE_MDI_ARCHITECTURE=no
1491 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no
1492 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no
1493
1494 DEFAULT_wxUSE_PROLOGIO=no
1495 DEFAULT_wxUSE_RESOURCES=no
1496 DEFAULT_wxUSE_CONSTRAINTS=no
1497 DEFAULT_wxUSE_IPC=no
1498 DEFAULT_wxUSE_HELP=no
29fd3c0c 1499 DEFAULT_wxUSE_MS_HTML_HELP=no
3379ed37 1500 DEFAULT_wxUSE_WXHTML_HELP=no
24176f2c 1501 DEFAULT_wxUSE_TREELAYOUT=no
10f2d63a 1502 DEFAULT_wxUSE_METAFILE=no
1e6feb95 1503 DEFAULT_wxUSE_MIMETYPE=no
4cdb0ab0
VS
1504 DEFAULT_wxUSE_SYSTEM_OPTIONS=no
1505 DEFAULT_wxUSE_PROTOCOL=no
1506 DEFAULT_wxUSE_PROTOCOL_HTTP=no
1507 DEFAULT_wxUSE_PROTOCOL_FTP=no
1508 DEFAULT_wxUSE_PROTOCOL_FILE=no
1509 DEFAULT_wxUSE_URL=no
1510
10f2d63a 1511 DEFAULT_wxUSE_COMMONDLGS=no
1e6feb95
VZ
1512 DEFAULT_wxUSE_CHOICEDLG=no
1513 DEFAULT_wxUSE_COLOURDLG=no
10f2d63a 1514 DEFAULT_wxUSE_DIRDLG=no
1e6feb95 1515 DEFAULT_wxUSE_FILEDLG=no
8db37e06 1516 DEFAULT_wxUSE_FINDREPLDLG=no
1e6feb95
VZ
1517 DEFAULT_wxUSE_FONTDLG=no
1518 DEFAULT_wxUSE_MSGDLG=no
1519 DEFAULT_wxUSE_NUMBERDLG=no
10f2d63a 1520 DEFAULT_wxUSE_TEXTDLG=no
cbca9943 1521 DEFAULT_wxUSE_SPLASH=no
10f2d63a
VZ
1522 DEFAULT_wxUSE_STARTUP_TIPS=no
1523 DEFAULT_wxUSE_PROGRESSDLG=no
b1f5d087
VZ
1524 DEFAULT_wxUSE_WIZARDDLG=no
1525
1e6feb95 1526 DEFAULT_wxUSE_MENUS=no
10f2d63a
VZ
1527 DEFAULT_wxUSE_MINIFRAME=no
1528 DEFAULT_wxUSE_HTML=no
24528b0c 1529 DEFAULT_wxUSE_FILESYSTEM=no
10f2d63a
VZ
1530 DEFAULT_wxUSE_FS_INET=no
1531 DEFAULT_wxUSE_FS_ZIP=no
1532 DEFAULT_wxUSE_BUSYINFO=no
1533 DEFAULT_wxUSE_ZIPSTREAM=no
1e6feb95 1534 DEFAULT_wxUSE_VALIDATORS=no
10f2d63a
VZ
1535
1536 DEFAULT_wxUSE_ACCEL=no
1e6feb95 1537 DEFAULT_wxUSE_BUTTON=no
10f2d63a 1538 DEFAULT_wxUSE_BMPBUTTON=no
1e6feb95
VZ
1539 DEFAULT_wxUSE_CALCTRL=no
1540 DEFAULT_wxUSE_CARET=no
10f2d63a
VZ
1541 DEFAULT_wxUSE_CHECKBOX=no
1542 DEFAULT_wxUSE_CHECKLST=no
1e6feb95 1543 DEFAULT_wxUSE_CHOICE=no
10f2d63a
VZ
1544 DEFAULT_wxUSE_COMBOBOX=no
1545 DEFAULT_wxUSE_GAUGE=no
1546 DEFAULT_wxUSE_GRID=no
1547 DEFAULT_wxUSE_NEW_GRID=no
1548 DEFAULT_wxUSE_IMAGLIST=no
1549 DEFAULT_wxUSE_LISTBOX=no
1550 DEFAULT_wxUSE_LISTCTRL=no
1551 DEFAULT_wxUSE_NOTEBOOK=no
24176f2c 1552 DEFAULT_wxUSE_PROPSHEET=no
10f2d63a
VZ
1553 DEFAULT_wxUSE_RADIOBOX=no
1554 DEFAULT_wxUSE_RADIOBTN=no
1555 DEFAULT_wxUSE_SASH=no
1556 DEFAULT_wxUSE_SCROLLBAR=no
1557 DEFAULT_wxUSE_SLIDER=no
1558 DEFAULT_wxUSE_SPINBTN=no
56cfaa52 1559 DEFAULT_wxUSE_SPINCTRL=no
10f2d63a
VZ
1560 DEFAULT_wxUSE_SPLITTER=no
1561 DEFAULT_wxUSE_STATBMP=no
1562 DEFAULT_wxUSE_STATBOX=no
1563 DEFAULT_wxUSE_STATLINE=no
1e6feb95 1564 DEFAULT_wxUSE_STATTEXT=no
10f2d63a
VZ
1565 DEFAULT_wxUSE_STATUSBAR=yes
1566 DEFAULT_wxUSE_TABDIALOG=no
1e6feb95 1567 DEFAULT_wxUSE_TEXTCTRL=no
1db8dc4a 1568 DEFAULT_wxUSE_TOGGLEBTN=no
10f2d63a 1569 DEFAULT_wxUSE_TOOLBAR=no
360d6699
VZ
1570 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
1571 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
10f2d63a 1572 DEFAULT_wxUSE_TREECTRL=no
9f41d601 1573 DEFAULT_wxUSE_POPUPWIN=no
9926e4a4 1574 DEFAULT_wxUSE_TIPWINDOW=no
10f2d63a
VZ
1575
1576 DEFAULT_wxUSE_UNICODE=no
a72a4bfa 1577 DEFAULT_wxUSE_UNICODE_MSLU=no
10f2d63a
VZ
1578 DEFAULT_wxUSE_WCSRTOMBS=no
1579
edae8572 1580 DEFAULT_wxUSE_PALETTE=no
0046ff7c 1581 DEFAULT_wxUSE_IMAGE=no
10f2d63a
VZ
1582 DEFAULT_wxUSE_GIF=no
1583 DEFAULT_wxUSE_PCX=no
1584 DEFAULT_wxUSE_PNM=no
4b6b4dfc 1585 DEFAULT_wxUSE_IFF=no
0046ff7c 1586 DEFAULT_wxUSE_XPM=no
658974ae 1587 DEFAULT_wxUSE_ICO_CUR=no
10f2d63a 1588else
1e6feb95
VZ
1589 DEFAULT_wxUSE_UNIVERSAL=no
1590
d8356fa3
VZ
1591 DEFAULT_wxUSE_NANOX=no
1592
10f2d63a
VZ
1593 DEFAULT_wxUSE_THREADS=yes
1594
1595 DEFAULT_wxUSE_SHARED=yes
3a922bb4 1596 DEFAULT_wxUSE_SONAME=no
10f2d63a
VZ
1597 DEFAULT_wxUSE_OPTIMISE=yes
1598 DEFAULT_wxUSE_PROFILE=no
1599 DEFAULT_wxUSE_NO_DEPS=no
8f4a9a10
RR
1600 DEFAULT_wxUSE_NO_RTTI=no
1601 DEFAULT_wxUSE_NO_EXCEPTIONS=no
10f2d63a
VZ
1602 DEFAULT_wxUSE_PERMISSIVE=no
1603 DEFAULT_wxUSE_DEBUG_FLAG=no
1604 DEFAULT_wxUSE_DEBUG_INFO=no
1605 DEFAULT_wxUSE_DEBUG_GDB=no
1606 DEFAULT_wxUSE_MEM_TRACING=no
1607 DEFAULT_wxUSE_DEBUG_CONTEXT=no
1608 DEFAULT_wxUSE_DMALLOC=no
a7ae7112 1609 DEFAULT_wxUSE_PRECOMP=no
10f2d63a
VZ
1610 DEFAULT_wxUSE_APPLE_IEEE=yes
1611
1612 DEFAULT_wxUSE_LOG=yes
d73be714
VZ
1613 DEFAULT_wxUSE_LOGWINDOW=yes
1614 DEFAULT_wxUSE_LOGGUI=yes
69d27ff7 1615 DEFAULT_wxUSE_LOGDIALOG=yes
10f2d63a
VZ
1616
1617 DEFAULT_wxUSE_GUI=yes
1618
831b3152 1619 DEFAULT_wxUSE_REGEX=yes
10f2d63a
VZ
1620 DEFAULT_wxUSE_ZLIB=yes
1621 DEFAULT_wxUSE_LIBPNG=yes
1622 DEFAULT_wxUSE_LIBJPEG=yes
b47c832e 1623 DEFAULT_wxUSE_LIBTIFF=yes
16b52fa1 1624 DEFAULT_wxUSE_ODBC=no
bdad4e7e 1625 DEFAULT_wxUSE_OPENGL=no
10f2d63a 1626
eb4efbdc 1627 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=yes
4f3c5f06 1628 DEFAULT_wxUSE_SNGLINST_CHECKER=yes
10f2d63a 1629 DEFAULT_wxUSE_STD_IOSTREAM=no
1e6feb95
VZ
1630 DEFAULT_wxUSE_CMDLINE_PARSER=yes
1631 DEFAULT_wxUSE_DATETIME=yes
1632 DEFAULT_wxUSE_TIMEDATE=no
1633 DEFAULT_wxUSE_TIMER=yes
1634 DEFAULT_wxUSE_STOPWATCH=yes
10f2d63a 1635 DEFAULT_wxUSE_FILE=yes
1e6feb95 1636 DEFAULT_wxUSE_FFILE=yes
a3a584a7 1637 DEFAULT_wxUSE_TEXTBUFFER=yes
10f2d63a 1638 DEFAULT_wxUSE_TEXTFILE=yes
10f2d63a
VZ
1639 DEFAULT_wxUSE_WAVE=no
1640 DEFAULT_wxUSE_INTL=yes
1641 DEFAULT_wxUSE_CONFIG=yes
1e6feb95 1642 DEFAULT_wxUSE_FONTMAP=yes
10f2d63a
VZ
1643 DEFAULT_wxUSE_STREAMS=yes
1644 DEFAULT_wxUSE_SOCKETS=yes
1645 DEFAULT_wxUSE_DIALUP_MANAGER=yes
10f2d63a 1646 DEFAULT_wxUSE_JOYSTICK=yes
6bff71f8 1647 DEFAULT_wxUSE_DYNLIB_CLASS=yes
9337b578 1648 DEFAULT_wxUSE_DYNAMIC_LOADER=yes
b685cd9b 1649 DEFAULT_wxUSE_LONGLONG=yes
e8f65ba6 1650 DEFAULT_wxUSE_GEOMETRY=yes
10f2d63a
VZ
1651
1652 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes
1653 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes
1654 DEFAULT_wxUSE_POSTSCRIPT=yes
1655
1656 DEFAULT_wxUSE_X_RESOURCES=no
1657 DEFAULT_wxUSE_CLIPBOARD=yes
1658 DEFAULT_wxUSE_TOOLTIPS=yes
1659 DEFAULT_wxUSE_DRAG_AND_DROP=yes
24fd6d87 1660 DEFAULT_wxUSE_DRAGIMAGE=yes
10f2d63a
VZ
1661 DEFAULT_wxUSE_SPLINES=yes
1662
1663 DEFAULT_wxUSE_MDI_ARCHITECTURE=yes
1664 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes
1665 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes
1666
1667 DEFAULT_wxUSE_PROLOGIO=yes
1668 DEFAULT_wxUSE_RESOURCES=yes
1669 DEFAULT_wxUSE_CONSTRAINTS=yes
1670 DEFAULT_wxUSE_IPC=yes
1671 DEFAULT_wxUSE_HELP=yes
29fd3c0c 1672 DEFAULT_wxUSE_MS_HTML_HELP=yes
3379ed37 1673 DEFAULT_wxUSE_WXHTML_HELP=yes
24176f2c 1674 DEFAULT_wxUSE_TREELAYOUT=yes
10f2d63a 1675 DEFAULT_wxUSE_METAFILE=yes
1e6feb95 1676 DEFAULT_wxUSE_MIMETYPE=yes
3e44f09d 1677 DEFAULT_wxUSE_SYSTEM_OPTIONS=yes
4cdb0ab0
VS
1678 DEFAULT_wxUSE_PROTOCOL=yes
1679 DEFAULT_wxUSE_PROTOCOL_HTTP=yes
1680 DEFAULT_wxUSE_PROTOCOL_FTP=yes
1681 DEFAULT_wxUSE_PROTOCOL_FILE=yes
1682 DEFAULT_wxUSE_URL=yes
10f2d63a
VZ
1683
1684 DEFAULT_wxUSE_COMMONDLGS=yes
1e6feb95
VZ
1685 DEFAULT_wxUSE_CHOICEDLG=yes
1686 DEFAULT_wxUSE_COLOURDLG=yes
10f2d63a 1687 DEFAULT_wxUSE_DIRDLG=yes
1e6feb95 1688 DEFAULT_wxUSE_FILEDLG=yes
8db37e06 1689 DEFAULT_wxUSE_FINDREPLDLG=yes
1e6feb95
VZ
1690 DEFAULT_wxUSE_FONTDLG=yes
1691 DEFAULT_wxUSE_MSGDLG=yes
1692 DEFAULT_wxUSE_NUMBERDLG=yes
10f2d63a 1693 DEFAULT_wxUSE_TEXTDLG=yes
cbca9943 1694 DEFAULT_wxUSE_SPLASH=yes
10f2d63a
VZ
1695 DEFAULT_wxUSE_STARTUP_TIPS=yes
1696 DEFAULT_wxUSE_PROGRESSDLG=yes
f33f19dd
VZ
1697 DEFAULT_wxUSE_WIZARDDLG=yes
1698
1e6feb95 1699 DEFAULT_wxUSE_MENUS=yes
10f2d63a
VZ
1700 DEFAULT_wxUSE_MINIFRAME=yes
1701 DEFAULT_wxUSE_HTML=yes
24528b0c 1702 DEFAULT_wxUSE_FILESYSTEM=yes
10f2d63a
VZ
1703 DEFAULT_wxUSE_FS_INET=yes
1704 DEFAULT_wxUSE_FS_ZIP=yes
1705 DEFAULT_wxUSE_BUSYINFO=yes
1706 DEFAULT_wxUSE_ZIPSTREAM=yes
1707 DEFAULT_wxUSE_VALIDATORS=yes
1708
1709 DEFAULT_wxUSE_ACCEL=yes
1e6feb95 1710 DEFAULT_wxUSE_BUTTON=yes
10f2d63a 1711 DEFAULT_wxUSE_BMPBUTTON=yes
1e6feb95
VZ
1712 DEFAULT_wxUSE_CALCTRL=yes
1713 DEFAULT_wxUSE_CARET=yes
10f2d63a
VZ
1714 DEFAULT_wxUSE_CHECKBOX=yes
1715 DEFAULT_wxUSE_CHECKLST=yes
1716 DEFAULT_wxUSE_CHOICE=yes
1717 DEFAULT_wxUSE_COMBOBOX=yes
1718 DEFAULT_wxUSE_GAUGE=yes
1719 DEFAULT_wxUSE_GRID=yes
cc977e5f 1720 DEFAULT_wxUSE_NEW_GRID=yes
10f2d63a
VZ
1721 DEFAULT_wxUSE_IMAGLIST=yes
1722 DEFAULT_wxUSE_LISTBOX=yes
1723 DEFAULT_wxUSE_LISTCTRL=yes
1724 DEFAULT_wxUSE_NOTEBOOK=yes
24176f2c 1725 DEFAULT_wxUSE_PROPSHEET=yes
10f2d63a
VZ
1726 DEFAULT_wxUSE_RADIOBOX=yes
1727 DEFAULT_wxUSE_RADIOBTN=yes
1728 DEFAULT_wxUSE_SASH=yes
1729 DEFAULT_wxUSE_SCROLLBAR=yes
1730 DEFAULT_wxUSE_SLIDER=yes
1731 DEFAULT_wxUSE_SPINBTN=yes
56cfaa52 1732 DEFAULT_wxUSE_SPINCTRL=yes
10f2d63a
VZ
1733 DEFAULT_wxUSE_SPLITTER=yes
1734 DEFAULT_wxUSE_STATBMP=yes
1735 DEFAULT_wxUSE_STATBOX=yes
1736 DEFAULT_wxUSE_STATLINE=yes
1e6feb95 1737 DEFAULT_wxUSE_STATTEXT=yes
10f2d63a
VZ
1738 DEFAULT_wxUSE_STATUSBAR=yes
1739 DEFAULT_wxUSE_TABDIALOG=no
1e6feb95 1740 DEFAULT_wxUSE_TEXTCTRL=yes
1db8dc4a 1741 DEFAULT_wxUSE_TOGGLEBTN=yes
10f2d63a 1742 DEFAULT_wxUSE_TOOLBAR=yes
360d6699
VZ
1743 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
1744 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
10f2d63a 1745 DEFAULT_wxUSE_TREECTRL=yes
9f41d601 1746 DEFAULT_wxUSE_POPUPWIN=yes
9926e4a4 1747 DEFAULT_wxUSE_TIPWINDOW=yes
10f2d63a
VZ
1748
1749 DEFAULT_wxUSE_UNICODE=no
a72a4bfa 1750 DEFAULT_wxUSE_UNICODE_MSLU=yes
10f2d63a
VZ
1751 DEFAULT_wxUSE_WCSRTOMBS=no
1752
edae8572 1753 DEFAULT_wxUSE_PALETTE=yes
0046ff7c 1754 DEFAULT_wxUSE_IMAGE=yes
10f2d63a
VZ
1755 DEFAULT_wxUSE_GIF=yes
1756 DEFAULT_wxUSE_PCX=yes
cc0e8480 1757 DEFAULT_wxUSE_IFF=no
10f2d63a 1758 DEFAULT_wxUSE_PNM=yes
0046ff7c 1759 DEFAULT_wxUSE_XPM=yes
658974ae 1760 DEFAULT_wxUSE_ICO_CUR=yes
10f2d63a
VZ
1761fi
1762
698dcdb6
VZ
1763
1764
10f2d63a
VZ
1765for toolkit in `echo $ALL_TOOLKITS`; do
1766 LINE=`grep "wxUSE_$toolkit" ${wx_arg_cache_file}`
1767 if test "x$LINE" != x ; then
1768 has_toolkit_in_cache=1
1769 eval "DEFAULT_$LINE"
1770 eval "CACHE_$toolkit=1"
1771 fi
1772done
1773
698dcdb6
VZ
1774
1775
1776 echo $ac_n "checking for --enable-gui""... $ac_c" 1>&6
321d2b14 1777echo "configure:1778: checking for --enable-gui" >&5
10f2d63a
VZ
1778 no_cache=0
1779 # Check whether --enable-gui or --disable-gui was given.
1780if test "${enable_gui+set}" = set; then
1781 enableval="$enable_gui"
698dcdb6 1782
10f2d63a
VZ
1783 if test "$enableval" = yes; then
1784 ac_cv_use_gui='wxUSE_GUI=yes'
1785 else
1786 ac_cv_use_gui='wxUSE_GUI=no'
1787 fi
698dcdb6 1788
10f2d63a 1789else
698dcdb6 1790
10f2d63a
VZ
1791 LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}`
1792 if test "x$LINE" != x ; then
1793 eval "DEFAULT_$LINE"
1794 else
1795 no_cache=1
1796 fi
1797
1798 ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI
698dcdb6
VZ
1799
1800fi
10f2d63a
VZ
1801
1802
1803 eval "$ac_cv_use_gui"
1804 if test "$no_cache" != 1; then
1805 echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp
1806 fi
1807
1808 if test "$wxUSE_GUI" = yes; then
698dcdb6 1809 echo "$ac_t""yes" 1>&6
10f2d63a 1810 else
698dcdb6 1811 echo "$ac_t""no" 1>&6
10f2d63a 1812 fi
698dcdb6 1813
10f2d63a 1814
b12915c1 1815if test "$wxUSE_GUI" = "yes"; then
10f2d63a 1816
1e6feb95
VZ
1817
1818 echo $ac_n "checking for --enable-universal""... $ac_c" 1>&6
321d2b14 1819echo "configure:1820: checking for --enable-universal" >&5
1e6feb95
VZ
1820 no_cache=0
1821 # Check whether --enable-universal or --disable-universal was given.
1822if test "${enable_universal+set}" = set; then
1823 enableval="$enable_universal"
1824
1825 if test "$enableval" = yes; then
1826 ac_cv_use_universal='wxUSE_UNIVERSAL=yes'
1827 else
1828 ac_cv_use_universal='wxUSE_UNIVERSAL=no'
1829 fi
1830
1831else
1832
1833 LINE=`grep "wxUSE_UNIVERSAL" ${wx_arg_cache_file}`
1834 if test "x$LINE" != x ; then
1835 eval "DEFAULT_$LINE"
1836 else
1837 no_cache=1
1838 fi
1839
1840 ac_cv_use_universal='wxUSE_UNIVERSAL='$DEFAULT_wxUSE_UNIVERSAL
1841
1842fi
1843
1844
1845 eval "$ac_cv_use_universal"
1846 if test "$no_cache" != 1; then
1847 echo $ac_cv_use_universal >> ${wx_arg_cache_file}.tmp
1848 fi
1849
1850 if test "$wxUSE_UNIVERSAL" = yes; then
1851 echo "$ac_t""yes" 1>&6
1852 else
1853 echo "$ac_t""no" 1>&6
1854 fi
1855
10f2d63a
VZ
1856# Check whether --with-gtk or --without-gtk was given.
1857if test "${with_gtk+set}" = set; then
1858 withval="$with_gtk"
1859 wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1
698dcdb6 1860fi
10f2d63a
VZ
1861
1862# Check whether --with-motif or --without-motif was given.
1863if test "${with_motif+set}" = set; then
1864 withval="$with_motif"
1865 wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1
698dcdb6 1866fi
10f2d63a 1867
b4085ce6
GD
1868# Check whether --with-mac or --without-mac was given.
1869if test "${with_mac+set}" = set; then
1870 withval="$with_mac"
1871 wxUSE_MAC="$withval" TOOLKIT_GIVEN=1
698dcdb6 1872fi
b4085ce6 1873
10f2d63a
VZ
1874# Check whether --with-wine or --without-wine was given.
1875if test "${with_wine+set}" = set; then
1876 withval="$with_wine"
1877 wxUSE_WINE="$withval" CACHE_WINE=1 TOOLKIT_GIVEN=1
698dcdb6 1878fi
10f2d63a 1879
77e13408
RL
1880# Check whether --with-msw or --without-msw was given.
1881if test "${with_msw+set}" = set; then
1882 withval="$with_msw"
b4efce5e 1883 wxUSE_MSW="$withval" CACHE_MSW=1 TOOLKIT_GIVEN=1
698dcdb6 1884fi
10f2d63a 1885
e07802fc
VZ
1886# Check whether --with-pm or --without-pm was given.
1887if test "${with_pm+set}" = set; then
1888 withval="$with_pm"
1889 wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1
698dcdb6
VZ
1890fi
1891
1e6feb95
VZ
1892# Check whether --with-mgl or --without-mgl was given.
1893if test "${with_mgl+set}" = set; then
1894 withval="$with_mgl"
1895 wxUSE_MGL="$withval" CACHE_MGL=1 TOOLKIT_GIVEN=1
1896fi
1897
1725144d
RR
1898# Check whether --with-microwin or --without-microwin was given.
1899if test "${with_microwin+set}" = set; then
1900 withval="$with_microwin"
1901 wxUSE_MICROWIN="$withval" CACHE_MICROWIN=1 TOOLKIT_GIVEN=1
1902fi
1903
f79bd02d
JS
1904# Check whether --with-x11 or --without-x11 was given.
1905if test "${with_x11+set}" = set; then
1906 withval="$with_x11"
3c011993 1907 wxUSE_X11="$withval" wxUSE_UNIVERSAL="yes" CACHE_X11=1 TOOLKIT_GIVEN=1
f79bd02d
JS
1908fi
1909
10f2d63a 1910
ba875e66 1911 echo $ac_n "checking for --enable-nanox""... $ac_c" 1>&6
321d2b14 1912echo "configure:1913: checking for --enable-nanox" >&5
d8356fa3 1913 no_cache=0
ba875e66
VZ
1914 # Check whether --enable-nanox or --disable-nanox was given.
1915if test "${enable_nanox+set}" = set; then
1916 enableval="$enable_nanox"
d8356fa3
VZ
1917
1918 if test "$enableval" = yes; then
ba875e66 1919 ac_cv_use_nanox='wxUSE_NANOX=yes'
d8356fa3 1920 else
ba875e66 1921 ac_cv_use_nanox='wxUSE_NANOX=no'
d8356fa3
VZ
1922 fi
1923
1924else
1925
1926 LINE=`grep "wxUSE_NANOX" ${wx_arg_cache_file}`
1927 if test "x$LINE" != x ; then
1928 eval "DEFAULT_$LINE"
1929 else
1930 no_cache=1
1931 fi
1932
ba875e66 1933 ac_cv_use_nanox='wxUSE_NANOX='$DEFAULT_wxUSE_NANOX
d8356fa3
VZ
1934
1935fi
1936
1937
ba875e66 1938 eval "$ac_cv_use_nanox"
d8356fa3 1939 if test "$no_cache" != 1; then
ba875e66 1940 echo $ac_cv_use_nanox >> ${wx_arg_cache_file}.tmp
d8356fa3
VZ
1941 fi
1942
1943 if test "$wxUSE_NANOX" = yes; then
1944 echo "$ac_t""yes" 1>&6
1945 else
1946 echo "$ac_t""no" 1>&6
1947 fi
1948
1949
8168de4c
VZ
1950# Check whether --enable-gtk2 or --disable-gtk2 was given.
1951if test "${enable_gtk2+set}" = set; then
1952 enableval="$enable_gtk2"
9e691f46 1953 wxUSE_GTK2="yes"
10f2d63a 1954else
9e691f46 1955 wxUSE_GTK2="no"
698dcdb6
VZ
1956fi
1957
703e0a69 1958
1e487827 1959
698dcdb6 1960 echo $ac_n "checking for --with-libpng""... $ac_c" 1>&6
321d2b14 1961echo "configure:1962: checking for --with-libpng" >&5
698dcdb6
VZ
1962 no_cache=0
1963 # Check whether --with-libpng or --without-libpng was given.
b12915c1
VZ
1964if test "${with_libpng+set}" = set; then
1965 withval="$with_libpng"
698dcdb6 1966
10f2d63a 1967 if test "$withval" = yes; then
b12915c1 1968 ac_cv_use_libpng='wxUSE_LIBPNG=yes'
422107f9 1969 elif test "$withval" = no; then
b12915c1 1970 ac_cv_use_libpng='wxUSE_LIBPNG=no'
422107f9
VZ
1971 elif test "$withval" = sys; then
1972 ac_cv_use_libpng='wxUSE_LIBPNG=sys'
4f14bcd8
GD
1973 elif test "$withval" = builtin; then
1974 ac_cv_use_libpng='wxUSE_LIBPNG=builtin'
422107f9 1975 else
4f14bcd8 1976 { echo "configure: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" 1>&2; exit 1; }
10f2d63a 1977 fi
698dcdb6 1978
10f2d63a 1979else
698dcdb6 1980
b12915c1 1981 LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}`
10f2d63a
VZ
1982 if test "x$LINE" != x ; then
1983 eval "DEFAULT_$LINE"
1984 else
1985 no_cache=1
1986 fi
1987
b12915c1 1988 ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG
698dcdb6
VZ
1989
1990fi
10f2d63a
VZ
1991
1992
b12915c1 1993 eval "$ac_cv_use_libpng"
10f2d63a 1994 if test "$no_cache" != 1; then
b12915c1 1995 echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
1996 fi
1997
b12915c1 1998 if test "$wxUSE_LIBPNG" = yes; then
698dcdb6 1999 echo "$ac_t""yes" 1>&6
422107f9 2000 elif test "$wxUSE_LIBPNG" = no; then
698dcdb6 2001 echo "$ac_t""no" 1>&6
422107f9 2002 elif test "$wxUSE_LIBPNG" = sys; then
698dcdb6 2003 echo "$ac_t""system version" 1>&6
4f14bcd8
GD
2004 elif test "$wxUSE_LIBPNG" = builtin; then
2005 echo "$ac_t""builtin version" 1>&6
422107f9 2006 else
4f14bcd8 2007 { echo "configure: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" 1>&2; exit 1; }
10f2d63a 2008 fi
698dcdb6 2009
10f2d63a 2010
698dcdb6 2011 echo $ac_n "checking for --with-libjpeg""... $ac_c" 1>&6
321d2b14 2012echo "configure:2013: checking for --with-libjpeg" >&5
10f2d63a 2013 no_cache=0
698dcdb6 2014 # Check whether --with-libjpeg or --without-libjpeg was given.
b12915c1
VZ
2015if test "${with_libjpeg+set}" = set; then
2016 withval="$with_libjpeg"
698dcdb6 2017
10f2d63a 2018 if test "$withval" = yes; then
b12915c1 2019 ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes'
422107f9 2020 elif test "$withval" = no; then
b12915c1 2021 ac_cv_use_libjpeg='wxUSE_LIBJPEG=no'
422107f9
VZ
2022 elif test "$withval" = sys; then
2023 ac_cv_use_libjpeg='wxUSE_LIBJPEG=sys'
4f14bcd8
GD
2024 elif test "$withval" = builtin; then
2025 ac_cv_use_libjpeg='wxUSE_LIBJPEG=builtin'
422107f9 2026 else
4f14bcd8 2027 { echo "configure: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" 1>&2; exit 1; }
10f2d63a 2028 fi
698dcdb6 2029
10f2d63a 2030else
698dcdb6 2031
b12915c1 2032 LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}`
10f2d63a
VZ
2033 if test "x$LINE" != x ; then
2034 eval "DEFAULT_$LINE"
2035 else
2036 no_cache=1
2037 fi
2038
b12915c1 2039 ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG
698dcdb6
VZ
2040
2041fi
10f2d63a
VZ
2042
2043
b12915c1 2044 eval "$ac_cv_use_libjpeg"
10f2d63a 2045 if test "$no_cache" != 1; then
b12915c1 2046 echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
2047 fi
2048
b12915c1 2049 if test "$wxUSE_LIBJPEG" = yes; then
698dcdb6 2050 echo "$ac_t""yes" 1>&6
422107f9 2051 elif test "$wxUSE_LIBJPEG" = no; then
698dcdb6 2052 echo "$ac_t""no" 1>&6
422107f9 2053 elif test "$wxUSE_LIBJPEG" = sys; then
698dcdb6 2054 echo "$ac_t""system version" 1>&6
4f14bcd8
GD
2055 elif test "$wxUSE_LIBJPEG" = builtin; then
2056 echo "$ac_t""builtin version" 1>&6
422107f9 2057 else
4f14bcd8 2058 { echo "configure: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" 1>&2; exit 1; }
10f2d63a 2059 fi
698dcdb6 2060
10f2d63a 2061
698dcdb6 2062 echo $ac_n "checking for --with-libtiff""... $ac_c" 1>&6
321d2b14 2063echo "configure:2064: checking for --with-libtiff" >&5
10f2d63a 2064 no_cache=0
698dcdb6 2065 # Check whether --with-libtiff or --without-libtiff was given.
b12915c1
VZ
2066if test "${with_libtiff+set}" = set; then
2067 withval="$with_libtiff"
698dcdb6 2068
10f2d63a 2069 if test "$withval" = yes; then
b12915c1 2070 ac_cv_use_libtiff='wxUSE_LIBTIFF=yes'
0dcf9893 2071 elif test "$withval" = no; then
b12915c1 2072 ac_cv_use_libtiff='wxUSE_LIBTIFF=no'
0dcf9893
VZ
2073 elif test "$withval" = sys; then
2074 ac_cv_use_libtiff='wxUSE_LIBTIFF=sys'
4f14bcd8
GD
2075 elif test "$withval" = builtin; then
2076 ac_cv_use_libtiff='wxUSE_LIBTIFF=builtin'
0dcf9893 2077 else
4f14bcd8 2078 { echo "configure: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" 1>&2; exit 1; }
10f2d63a 2079 fi
698dcdb6 2080
10f2d63a 2081else
698dcdb6 2082
b12915c1 2083 LINE=`grep "wxUSE_LIBTIFF" ${wx_arg_cache_file}`
10f2d63a
VZ
2084 if test "x$LINE" != x ; then
2085 eval "DEFAULT_$LINE"
2086 else
2087 no_cache=1
2088 fi
2089
b12915c1 2090 ac_cv_use_libtiff='wxUSE_LIBTIFF='$DEFAULT_wxUSE_LIBTIFF
698dcdb6
VZ
2091
2092fi
10f2d63a
VZ
2093
2094
b12915c1 2095 eval "$ac_cv_use_libtiff"
10f2d63a 2096 if test "$no_cache" != 1; then
b12915c1 2097 echo $ac_cv_use_libtiff >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
2098 fi
2099
b12915c1 2100 if test "$wxUSE_LIBTIFF" = yes; then
698dcdb6 2101 echo "$ac_t""yes" 1>&6
0dcf9893 2102 elif test "$wxUSE_LIBTIFF" = no; then
698dcdb6 2103 echo "$ac_t""no" 1>&6
0dcf9893 2104 elif test "$wxUSE_LIBTIFF" = sys; then
698dcdb6 2105 echo "$ac_t""system version" 1>&6
4f14bcd8
GD
2106 elif test "$wxUSE_LIBTIFF" = builtin; then
2107 echo "$ac_t""builtin version" 1>&6
0dcf9893 2108 else
4f14bcd8 2109 { echo "configure: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" 1>&2; exit 1; }
10f2d63a 2110 fi
698dcdb6 2111
10f2d63a 2112
698dcdb6 2113 echo $ac_n "checking for --with-opengl""... $ac_c" 1>&6
321d2b14 2114echo "configure:2115: checking for --with-opengl" >&5
10f2d63a 2115 no_cache=0
698dcdb6 2116 # Check whether --with-opengl or --without-opengl was given.
b12915c1
VZ
2117if test "${with_opengl+set}" = set; then
2118 withval="$with_opengl"
698dcdb6 2119
10f2d63a 2120 if test "$withval" = yes; then
b12915c1 2121 ac_cv_use_opengl='wxUSE_OPENGL=yes'
10f2d63a 2122 else
b12915c1 2123 ac_cv_use_opengl='wxUSE_OPENGL=no'
10f2d63a 2124 fi
698dcdb6 2125
10f2d63a 2126else
698dcdb6 2127
b12915c1 2128 LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}`
10f2d63a
VZ
2129 if test "x$LINE" != x ; then
2130 eval "DEFAULT_$LINE"
2131 else
2132 no_cache=1
2133 fi
2134
b12915c1 2135 ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL
698dcdb6
VZ
2136
2137fi
10f2d63a
VZ
2138
2139
b12915c1 2140 eval "$ac_cv_use_opengl"
10f2d63a 2141 if test "$no_cache" != 1; then
b12915c1 2142 echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
2143 fi
2144
b12915c1 2145 if test "$wxUSE_OPENGL" = yes; then
698dcdb6 2146 echo "$ac_t""yes" 1>&6
10f2d63a 2147 else
698dcdb6 2148 echo "$ac_t""no" 1>&6
10f2d63a 2149 fi
698dcdb6 2150
10f2d63a 2151
b12915c1
VZ
2152fi
2153
1e487827 2154
698dcdb6 2155 echo $ac_n "checking for --with-dmalloc""... $ac_c" 1>&6
321d2b14 2156echo "configure:2157: checking for --with-dmalloc" >&5
698dcdb6
VZ
2157 no_cache=0
2158 # Check whether --with-dmalloc or --without-dmalloc was given.
b12915c1
VZ
2159if test "${with_dmalloc+set}" = set; then
2160 withval="$with_dmalloc"
698dcdb6 2161
c7a2bf27 2162 if test "$withval" = yes; then
b12915c1 2163 ac_cv_use_dmalloc='wxUSE_DMALLOC=yes'
c7a2bf27 2164 else
b12915c1 2165 ac_cv_use_dmalloc='wxUSE_DMALLOC=no'
c7a2bf27 2166 fi
698dcdb6 2167
c7a2bf27 2168else
698dcdb6 2169
b12915c1 2170 LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}`
c7a2bf27
RR
2171 if test "x$LINE" != x ; then
2172 eval "DEFAULT_$LINE"
2173 else
2174 no_cache=1
2175 fi
2176
b12915c1 2177 ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC
698dcdb6
VZ
2178
2179fi
c7a2bf27
RR
2180
2181
b12915c1 2182 eval "$ac_cv_use_dmalloc"
c7a2bf27 2183 if test "$no_cache" != 1; then
b12915c1 2184 echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp
c7a2bf27
RR
2185 fi
2186
b12915c1 2187 if test "$wxUSE_DMALLOC" = yes; then
698dcdb6 2188 echo "$ac_t""yes" 1>&6
c7a2bf27 2189 else
698dcdb6 2190 echo "$ac_t""no" 1>&6
c7a2bf27 2191 fi
698dcdb6 2192
c7a2bf27 2193
3e44f09d 2194 echo $ac_n "checking for --with-regex""... $ac_c" 1>&6
321d2b14 2195echo "configure:2196: checking for --with-regex" >&5
3e44f09d
VZ
2196 no_cache=0
2197 # Check whether --with-regex or --without-regex was given.
2198if test "${with_regex+set}" = set; then
2199 withval="$with_regex"
2200
2201 if test "$withval" = yes; then
2202 ac_cv_use_regex='wxUSE_REGEX=yes'
2203 elif test "$withval" = no; then
2204 ac_cv_use_regex='wxUSE_REGEX=no'
2205 elif test "$withval" = sys; then
2206 ac_cv_use_regex='wxUSE_REGEX=sys'
4f14bcd8
GD
2207 elif test "$withval" = builtin; then
2208 ac_cv_use_regex='wxUSE_REGEX=builtin'
3e44f09d 2209 else
4f14bcd8 2210 { echo "configure: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" 1>&2; exit 1; }
3e44f09d
VZ
2211 fi
2212
2213else
2214
2215 LINE=`grep "wxUSE_REGEX" ${wx_arg_cache_file}`
2216 if test "x$LINE" != x ; then
2217 eval "DEFAULT_$LINE"
2218 else
2219 no_cache=1
2220 fi
2221
2222 ac_cv_use_regex='wxUSE_REGEX='$DEFAULT_wxUSE_REGEX
2223
2224fi
2225
2226
2227 eval "$ac_cv_use_regex"
2228 if test "$no_cache" != 1; then
2229 echo $ac_cv_use_regex >> ${wx_arg_cache_file}.tmp
2230 fi
2231
2232 if test "$wxUSE_REGEX" = yes; then
2233 echo "$ac_t""yes" 1>&6
2234 elif test "$wxUSE_REGEX" = no; then
2235 echo "$ac_t""no" 1>&6
2236 elif test "$wxUSE_REGEX" = sys; then
2237 echo "$ac_t""system version" 1>&6
4f14bcd8
GD
2238 elif test "$wxUSE_REGEX" = builtin; then
2239 echo "$ac_t""builtin version" 1>&6
3e44f09d 2240 else
4f14bcd8 2241 { echo "configure: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" 1>&2; exit 1; }
3e44f09d
VZ
2242 fi
2243
2244
698dcdb6 2245 echo $ac_n "checking for --with-zlib""... $ac_c" 1>&6
321d2b14 2246echo "configure:2247: checking for --with-zlib" >&5
10f2d63a 2247 no_cache=0
698dcdb6 2248 # Check whether --with-zlib or --without-zlib was given.
b12915c1
VZ
2249if test "${with_zlib+set}" = set; then
2250 withval="$with_zlib"
698dcdb6 2251
10f2d63a 2252 if test "$withval" = yes; then
b12915c1 2253 ac_cv_use_zlib='wxUSE_ZLIB=yes'
422107f9 2254 elif test "$withval" = no; then
b12915c1 2255 ac_cv_use_zlib='wxUSE_ZLIB=no'
422107f9
VZ
2256 elif test "$withval" = sys; then
2257 ac_cv_use_zlib='wxUSE_ZLIB=sys'
4f14bcd8
GD
2258 elif test "$withval" = builtin; then
2259 ac_cv_use_zlib='wxUSE_ZLIB=builtin'
422107f9 2260 else
4f14bcd8 2261 { echo "configure: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" 1>&2; exit 1; }
10f2d63a 2262 fi
698dcdb6 2263
10f2d63a 2264else
698dcdb6 2265
b12915c1 2266 LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}`
10f2d63a
VZ
2267 if test "x$LINE" != x ; then
2268 eval "DEFAULT_$LINE"
2269 else
2270 no_cache=1
2271 fi
2272
b12915c1 2273 ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB
698dcdb6
VZ
2274
2275fi
10f2d63a
VZ
2276
2277
b12915c1 2278 eval "$ac_cv_use_zlib"
10f2d63a 2279 if test "$no_cache" != 1; then
b12915c1 2280 echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
2281 fi
2282
b12915c1 2283 if test "$wxUSE_ZLIB" = yes; then
698dcdb6 2284 echo "$ac_t""yes" 1>&6
422107f9 2285 elif test "$wxUSE_ZLIB" = no; then
698dcdb6 2286 echo "$ac_t""no" 1>&6
422107f9 2287 elif test "$wxUSE_ZLIB" = sys; then
698dcdb6 2288 echo "$ac_t""system version" 1>&6
4f14bcd8
GD
2289 elif test "$wxUSE_ZLIB" = builtin; then
2290 echo "$ac_t""builtin version" 1>&6
422107f9 2291 else
4f14bcd8 2292 { echo "configure: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" 1>&2; exit 1; }
10f2d63a 2293 fi
698dcdb6 2294
10f2d63a 2295
698dcdb6 2296 echo $ac_n "checking for --with-odbc""... $ac_c" 1>&6
321d2b14 2297echo "configure:2298: checking for --with-odbc" >&5
10f2d63a 2298 no_cache=0
698dcdb6 2299 # Check whether --with-odbc or --without-odbc was given.
10f2d63a
VZ
2300if test "${with_odbc+set}" = set; then
2301 withval="$with_odbc"
698dcdb6 2302
10f2d63a
VZ
2303 if test "$withval" = yes; then
2304 ac_cv_use_odbc='wxUSE_ODBC=yes'
2305 else
2306 ac_cv_use_odbc='wxUSE_ODBC=no'
2307 fi
698dcdb6 2308
10f2d63a 2309else
698dcdb6 2310
10f2d63a
VZ
2311 LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}`
2312 if test "x$LINE" != x ; then
2313 eval "DEFAULT_$LINE"
2314 else
2315 no_cache=1
2316 fi
2317
2318 ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC
698dcdb6
VZ
2319
2320fi
10f2d63a
VZ
2321
2322
2323 eval "$ac_cv_use_odbc"
2324 if test "$no_cache" != 1; then
2325 echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp
2326 fi
2327
2328 if test "$wxUSE_ODBC" = yes; then
698dcdb6 2329 echo "$ac_t""yes" 1>&6
10f2d63a 2330 else
698dcdb6 2331 echo "$ac_t""no" 1>&6
10f2d63a 2332 fi
698dcdb6
VZ
2333
2334
10f2d63a 2335
698dcdb6 2336
698dcdb6 2337 echo $ac_n "checking for --enable-shared""... $ac_c" 1>&6
321d2b14 2338echo "configure:2339: checking for --enable-shared" >&5
10f2d63a
VZ
2339 no_cache=0
2340 # Check whether --enable-shared or --disable-shared was given.
2341if test "${enable_shared+set}" = set; then
2342 enableval="$enable_shared"
698dcdb6 2343
10f2d63a
VZ
2344 if test "$enableval" = yes; then
2345 ac_cv_use_shared='wxUSE_SHARED=yes'
2346 else
2347 ac_cv_use_shared='wxUSE_SHARED=no'
2348 fi
698dcdb6 2349
10f2d63a 2350else
698dcdb6 2351
10f2d63a
VZ
2352 LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}`
2353 if test "x$LINE" != x ; then
2354 eval "DEFAULT_$LINE"
2355 else
2356 no_cache=1
2357 fi
2358
2359 ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED
698dcdb6
VZ
2360
2361fi
10f2d63a
VZ
2362
2363
2364 eval "$ac_cv_use_shared"
2365 if test "$no_cache" != 1; then
2366 echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp
2367 fi
2368
2369 if test "$wxUSE_SHARED" = yes; then
698dcdb6 2370 echo "$ac_t""yes" 1>&6
10f2d63a 2371 else
698dcdb6 2372 echo "$ac_t""no" 1>&6
10f2d63a 2373 fi
698dcdb6 2374
10f2d63a 2375
3a922bb4 2376 echo $ac_n "checking for --enable-soname""... $ac_c" 1>&6
321d2b14 2377echo "configure:2378: checking for --enable-soname" >&5
00cf1208 2378 no_cache=0
3a922bb4
RL
2379 # Check whether --enable-soname or --disable-soname was given.
2380if test "${enable_soname+set}" = set; then
2381 enableval="$enable_soname"
698dcdb6 2382
00cf1208 2383 if test "$enableval" = yes; then
3a922bb4 2384 ac_cv_use_soname='wxUSE_SONAME=yes'
00cf1208 2385 else
3a922bb4 2386 ac_cv_use_soname='wxUSE_SONAME=no'
00cf1208 2387 fi
698dcdb6 2388
00cf1208 2389else
698dcdb6 2390
3a922bb4 2391 LINE=`grep "wxUSE_SONAME" ${wx_arg_cache_file}`
00cf1208
RR
2392 if test "x$LINE" != x ; then
2393 eval "DEFAULT_$LINE"
2394 else
2395 no_cache=1
2396 fi
2397
3a922bb4 2398 ac_cv_use_soname='wxUSE_SONAME='$DEFAULT_wxUSE_SONAME
698dcdb6
VZ
2399
2400fi
00cf1208
RR
2401
2402
3a922bb4 2403 eval "$ac_cv_use_soname"
00cf1208 2404 if test "$no_cache" != 1; then
3a922bb4 2405 echo $ac_cv_use_soname >> ${wx_arg_cache_file}.tmp
00cf1208
RR
2406 fi
2407
3a922bb4 2408 if test "$wxUSE_SONAME" = yes; then
698dcdb6 2409 echo "$ac_t""yes" 1>&6
00cf1208 2410 else
698dcdb6 2411 echo "$ac_t""no" 1>&6
00cf1208 2412 fi
698dcdb6 2413
00cf1208 2414
698dcdb6 2415 echo $ac_n "checking for --enable-optimise""... $ac_c" 1>&6
321d2b14 2416echo "configure:2417: checking for --enable-optimise" >&5
10f2d63a
VZ
2417 no_cache=0
2418 # Check whether --enable-optimise or --disable-optimise was given.
2419if test "${enable_optimise+set}" = set; then
2420 enableval="$enable_optimise"
698dcdb6 2421
10f2d63a
VZ
2422 if test "$enableval" = yes; then
2423 ac_cv_use_optimise='wxUSE_OPTIMISE=yes'
2424 else
2425 ac_cv_use_optimise='wxUSE_OPTIMISE=no'
2426 fi
698dcdb6 2427
10f2d63a 2428else
698dcdb6 2429
10f2d63a
VZ
2430 LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}`
2431 if test "x$LINE" != x ; then
2432 eval "DEFAULT_$LINE"
2433 else
2434 no_cache=1
2435 fi
2436
2437 ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE
698dcdb6
VZ
2438
2439fi
10f2d63a
VZ
2440
2441
2442 eval "$ac_cv_use_optimise"
2443 if test "$no_cache" != 1; then
2444 echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp
2445 fi
2446
2447 if test "$wxUSE_OPTIMISE" = yes; then
698dcdb6 2448 echo "$ac_t""yes" 1>&6
10f2d63a 2449 else
698dcdb6 2450 echo "$ac_t""no" 1>&6
10f2d63a 2451 fi
698dcdb6 2452
10f2d63a 2453
698dcdb6 2454 echo $ac_n "checking for --enable-debug""... $ac_c" 1>&6
321d2b14 2455echo "configure:2456: checking for --enable-debug" >&5
10f2d63a
VZ
2456 no_cache=0
2457 # Check whether --enable-debug or --disable-debug was given.
2458if test "${enable_debug+set}" = set; then
2459 enableval="$enable_debug"
698dcdb6 2460
10f2d63a
VZ
2461 if test "$enableval" = yes; then
2462 ac_cv_use_debug='wxUSE_DEBUG=yes'
2463 else
2464 ac_cv_use_debug='wxUSE_DEBUG=no'
2465 fi
698dcdb6 2466
10f2d63a 2467else
698dcdb6 2468
10f2d63a
VZ
2469 LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}`
2470 if test "x$LINE" != x ; then
2471 eval "DEFAULT_$LINE"
2472 else
2473 no_cache=1
2474 fi
2475
2476 ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG
698dcdb6
VZ
2477
2478fi
10f2d63a
VZ
2479
2480
2481 eval "$ac_cv_use_debug"
2482 if test "$no_cache" != 1; then
2483 echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp
2484 fi
2485
2486 if test "$wxUSE_DEBUG" = yes; then
698dcdb6 2487 echo "$ac_t""yes" 1>&6
10f2d63a 2488 else
698dcdb6 2489 echo "$ac_t""no" 1>&6
10f2d63a 2490 fi
698dcdb6 2491
10f2d63a 2492
683dccda
GD
2493
2494 echo $ac_n "checking for --enable-precomp""... $ac_c" 1>&6
321d2b14 2495echo "configure:2496: checking for --enable-precomp" >&5
683dccda
GD
2496 no_cache=0
2497 # Check whether --enable-precomp or --disable-precomp was given.
2498if test "${enable_precomp+set}" = set; then
2499 enableval="$enable_precomp"
2500
2501 if test "$enableval" = yes; then
2502 ac_cv_use_precomp='wxUSE_PRECOMP=yes'
2503 else
2504 ac_cv_use_precomp='wxUSE_PRECOMP=no'
2505 fi
2506
2507else
2508
2509 LINE=`grep "wxUSE_PRECOMP" ${wx_arg_cache_file}`
2510 if test "x$LINE" != x ; then
2511 eval "DEFAULT_$LINE"
2512 else
2513 no_cache=1
2514 fi
2515
2516 ac_cv_use_precomp='wxUSE_PRECOMP='$DEFAULT_wxUSE_PRECOMP
2517
2518fi
2519
2520
2521 eval "$ac_cv_use_precomp"
2522 if test "$no_cache" != 1; then
2523 echo $ac_cv_use_precomp >> ${wx_arg_cache_file}.tmp
2524 fi
2525
2526 if test "$wxUSE_PRECOMP" = yes; then
2527 echo "$ac_t""yes" 1>&6
2528 else
2529 echo "$ac_t""no" 1>&6
2530 fi
2531
2532
10f2d63a
VZ
2533if test "$wxUSE_DEBUG" = "yes"; then
2534 DEFAULT_wxUSE_DEBUG_FLAG=yes
2535 DEFAULT_wxUSE_DEBUG_INFO=yes
2536elif test "$wxUSE_DEBUG" = "no"; then
2537 DEFAULT_wxUSE_DEBUG_FLAG=no
2538 DEFAULT_wxUSE_DEBUG_INFO=no
2539fi
2540
698dcdb6
VZ
2541
2542 echo $ac_n "checking for --enable-debug_flag""... $ac_c" 1>&6
321d2b14 2543echo "configure:2544: checking for --enable-debug_flag" >&5
10f2d63a
VZ
2544 no_cache=0
2545 # Check whether --enable-debug_flag or --disable-debug_flag was given.
2546if test "${enable_debug_flag+set}" = set; then
2547 enableval="$enable_debug_flag"
698dcdb6 2548
10f2d63a
VZ
2549 if test "$enableval" = yes; then
2550 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes'
2551 else
2552 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no'
2553 fi
698dcdb6 2554
10f2d63a 2555else
698dcdb6 2556
10f2d63a
VZ
2557 LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}`
2558 if test "x$LINE" != x ; then
2559 eval "DEFAULT_$LINE"
2560 else
2561 no_cache=1
2562 fi
2563
2564 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG
698dcdb6
VZ
2565
2566fi
10f2d63a
VZ
2567
2568
2569 eval "$ac_cv_use_debug_flag"
2570 if test "$no_cache" != 1; then
2571 echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp
2572 fi
2573
2574 if test "$wxUSE_DEBUG_FLAG" = yes; then
698dcdb6 2575 echo "$ac_t""yes" 1>&6
10f2d63a 2576 else
698dcdb6 2577 echo "$ac_t""no" 1>&6
10f2d63a 2578 fi
698dcdb6 2579
10f2d63a 2580
698dcdb6 2581 echo $ac_n "checking for --enable-debug_info""... $ac_c" 1>&6
321d2b14 2582echo "configure:2583: checking for --enable-debug_info" >&5
10f2d63a
VZ
2583 no_cache=0
2584 # Check whether --enable-debug_info or --disable-debug_info was given.
2585if test "${enable_debug_info+set}" = set; then
2586 enableval="$enable_debug_info"
698dcdb6 2587
10f2d63a
VZ
2588 if test "$enableval" = yes; then
2589 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes'
2590 else
2591 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no'
2592 fi
698dcdb6 2593
10f2d63a 2594else
698dcdb6 2595
10f2d63a
VZ
2596 LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}`
2597 if test "x$LINE" != x ; then
2598 eval "DEFAULT_$LINE"
2599 else
2600 no_cache=1
2601 fi
2602
2603 ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO
698dcdb6
VZ
2604
2605fi
10f2d63a
VZ
2606
2607
2608 eval "$ac_cv_use_debug_info"
2609 if test "$no_cache" != 1; then
2610 echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp
2611 fi
2612
2613 if test "$wxUSE_DEBUG_INFO" = yes; then
698dcdb6 2614 echo "$ac_t""yes" 1>&6
10f2d63a 2615 else
698dcdb6 2616 echo "$ac_t""no" 1>&6
10f2d63a 2617 fi
698dcdb6 2618
10f2d63a 2619
698dcdb6 2620 echo $ac_n "checking for --enable-debug_gdb""... $ac_c" 1>&6
321d2b14 2621echo "configure:2622: checking for --enable-debug_gdb" >&5
10f2d63a
VZ
2622 no_cache=0
2623 # Check whether --enable-debug_gdb or --disable-debug_gdb was given.
2624if test "${enable_debug_gdb+set}" = set; then
2625 enableval="$enable_debug_gdb"
698dcdb6 2626
10f2d63a
VZ
2627 if test "$enableval" = yes; then
2628 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes'
2629 else
2630 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no'
2631 fi
698dcdb6 2632
10f2d63a 2633else
698dcdb6 2634
10f2d63a
VZ
2635 LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}`
2636 if test "x$LINE" != x ; then
2637 eval "DEFAULT_$LINE"
2638 else
2639 no_cache=1
2640 fi
2641
2642 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB
698dcdb6
VZ
2643
2644fi
10f2d63a
VZ
2645
2646
2647 eval "$ac_cv_use_debug_gdb"
2648 if test "$no_cache" != 1; then
2649 echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp
2650 fi
2651
2652 if test "$wxUSE_DEBUG_GDB" = yes; then
698dcdb6 2653 echo "$ac_t""yes" 1>&6
10f2d63a 2654 else
698dcdb6 2655 echo "$ac_t""no" 1>&6
10f2d63a 2656 fi
698dcdb6 2657
10f2d63a 2658
698dcdb6 2659 echo $ac_n "checking for --enable-debug_cntxt""... $ac_c" 1>&6
321d2b14 2660echo "configure:2661: checking for --enable-debug_cntxt" >&5
10f2d63a
VZ
2661 no_cache=0
2662 # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given.
2663if test "${enable_debug_cntxt+set}" = set; then
2664 enableval="$enable_debug_cntxt"
698dcdb6 2665
10f2d63a
VZ
2666 if test "$enableval" = yes; then
2667 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes'
2668 else
2669 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no'
2670 fi
698dcdb6 2671
10f2d63a 2672else
698dcdb6 2673
10f2d63a
VZ
2674 LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}`
2675 if test "x$LINE" != x ; then
2676 eval "DEFAULT_$LINE"
2677 else
2678 no_cache=1
2679 fi
2680
2681 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT
698dcdb6
VZ
2682
2683fi
10f2d63a
VZ
2684
2685
2686 eval "$ac_cv_use_debug_cntxt"
2687 if test "$no_cache" != 1; then
2688 echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp
2689 fi
2690
2691 if test "$wxUSE_DEBUG_CONTEXT" = yes; then
698dcdb6 2692 echo "$ac_t""yes" 1>&6
10f2d63a 2693 else
698dcdb6 2694 echo "$ac_t""no" 1>&6
10f2d63a 2695 fi
698dcdb6 2696
10f2d63a 2697
698dcdb6 2698 echo $ac_n "checking for --enable-mem_tracing""... $ac_c" 1>&6
321d2b14 2699echo "configure:2700: checking for --enable-mem_tracing" >&5
10f2d63a
VZ
2700 no_cache=0
2701 # Check whether --enable-mem_tracing or --disable-mem_tracing was given.
2702if test "${enable_mem_tracing+set}" = set; then
2703 enableval="$enable_mem_tracing"
698dcdb6 2704
10f2d63a
VZ
2705 if test "$enableval" = yes; then
2706 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes'
2707 else
2708 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no'
2709 fi
698dcdb6 2710
10f2d63a 2711else
698dcdb6 2712
10f2d63a
VZ
2713 LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}`
2714 if test "x$LINE" != x ; then
2715 eval "DEFAULT_$LINE"
2716 else
2717 no_cache=1
2718 fi
2719
2720 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING
698dcdb6
VZ
2721
2722fi
10f2d63a
VZ
2723
2724
2725 eval "$ac_cv_use_mem_tracing"
2726 if test "$no_cache" != 1; then
2727 echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp
2728 fi
2729
2730 if test "$wxUSE_MEM_TRACING" = yes; then
698dcdb6 2731 echo "$ac_t""yes" 1>&6
10f2d63a 2732 else
698dcdb6 2733 echo "$ac_t""no" 1>&6
10f2d63a 2734 fi
698dcdb6 2735
10f2d63a 2736
698dcdb6 2737 echo $ac_n "checking for --enable-profile""... $ac_c" 1>&6
321d2b14 2738echo "configure:2739: checking for --enable-profile" >&5
10f2d63a
VZ
2739 no_cache=0
2740 # Check whether --enable-profile or --disable-profile was given.
2741if test "${enable_profile+set}" = set; then
2742 enableval="$enable_profile"
698dcdb6 2743
10f2d63a
VZ
2744 if test "$enableval" = yes; then
2745 ac_cv_use_profile='wxUSE_PROFILE=yes'
2746 else
2747 ac_cv_use_profile='wxUSE_PROFILE=no'
2748 fi
698dcdb6 2749
10f2d63a 2750else
698dcdb6 2751
10f2d63a
VZ
2752 LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}`
2753 if test "x$LINE" != x ; then
2754 eval "DEFAULT_$LINE"
2755 else
2756 no_cache=1
2757 fi
2758
2759 ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE
698dcdb6
VZ
2760
2761fi
10f2d63a
VZ
2762
2763
2764 eval "$ac_cv_use_profile"
2765 if test "$no_cache" != 1; then
2766 echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp
2767 fi
2768
2769 if test "$wxUSE_PROFILE" = yes; then
698dcdb6 2770 echo "$ac_t""yes" 1>&6
10f2d63a 2771 else
698dcdb6 2772 echo "$ac_t""no" 1>&6
10f2d63a 2773 fi
698dcdb6 2774
10f2d63a 2775
698dcdb6 2776 echo $ac_n "checking for --enable-no_rtti""... $ac_c" 1>&6
321d2b14 2777echo "configure:2778: checking for --enable-no_rtti" >&5
10f2d63a
VZ
2778 no_cache=0
2779 # Check whether --enable-no_rtti or --disable-no_rtti was given.
2780if test "${enable_no_rtti+set}" = set; then
2781 enableval="$enable_no_rtti"
698dcdb6 2782
10f2d63a
VZ
2783 if test "$enableval" = yes; then
2784 ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes'
2785 else
2786 ac_cv_use_no_rtti='wxUSE_NO_RTTI=no'
2787 fi
698dcdb6 2788
10f2d63a 2789else
698dcdb6 2790
10f2d63a
VZ
2791 LINE=`grep "wxUSE_NO_RTTI" ${wx_arg_cache_file}`
2792 if test "x$LINE" != x ; then
2793 eval "DEFAULT_$LINE"
2794 else
2795 no_cache=1
2796 fi
2797
2798 ac_cv_use_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI
698dcdb6
VZ
2799
2800fi
10f2d63a
VZ
2801
2802
2803 eval "$ac_cv_use_no_rtti"
2804 if test "$no_cache" != 1; then
2805 echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp
2806 fi
2807
2808 if test "$wxUSE_NO_RTTI" = yes; then
698dcdb6 2809 echo "$ac_t""yes" 1>&6
10f2d63a 2810 else
698dcdb6 2811 echo "$ac_t""no" 1>&6
10f2d63a 2812 fi
698dcdb6 2813
10f2d63a 2814
698dcdb6 2815 echo $ac_n "checking for --enable-no_exceptions""... $ac_c" 1>&6
321d2b14 2816echo "configure:2817: checking for --enable-no_exceptions" >&5
10f2d63a
VZ
2817 no_cache=0
2818 # Check whether --enable-no_exceptions or --disable-no_exceptions was given.
2819if test "${enable_no_exceptions+set}" = set; then
2820 enableval="$enable_no_exceptions"
698dcdb6 2821
10f2d63a
VZ
2822 if test "$enableval" = yes; then
2823 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes'
2824 else
2825 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no'
2826 fi
698dcdb6 2827
10f2d63a 2828else
698dcdb6 2829
10f2d63a
VZ
2830 LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}`
2831 if test "x$LINE" != x ; then
2832 eval "DEFAULT_$LINE"
2833 else
2834 no_cache=1
2835 fi
2836
2837 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS
698dcdb6
VZ
2838
2839fi
10f2d63a
VZ
2840
2841
2842 eval "$ac_cv_use_no_exceptions"
2843 if test "$no_cache" != 1; then
2844 echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp
2845 fi
2846
2847 if test "$wxUSE_NO_EXCEPTIONS" = yes; then
698dcdb6 2848 echo "$ac_t""yes" 1>&6
10f2d63a 2849 else
698dcdb6 2850 echo "$ac_t""no" 1>&6
10f2d63a 2851 fi
698dcdb6 2852
10f2d63a 2853
698dcdb6 2854 echo $ac_n "checking for --enable-permissive""... $ac_c" 1>&6
321d2b14 2855echo "configure:2856: checking for --enable-permissive" >&5
10f2d63a
VZ
2856 no_cache=0
2857 # Check whether --enable-permissive or --disable-permissive was given.
2858if test "${enable_permissive+set}" = set; then
2859 enableval="$enable_permissive"
698dcdb6 2860
10f2d63a
VZ
2861 if test "$enableval" = yes; then
2862 ac_cv_use_permissive='wxUSE_PERMISSIVE=yes'
2863 else
2864 ac_cv_use_permissive='wxUSE_PERMISSIVE=no'
2865 fi
698dcdb6 2866
10f2d63a 2867else
698dcdb6 2868
10f2d63a
VZ
2869 LINE=`grep "wxUSE_PERMISSIVE" ${wx_arg_cache_file}`
2870 if test "x$LINE" != x ; then
2871 eval "DEFAULT_$LINE"
2872 else
2873 no_cache=1
2874 fi
2875
2876 ac_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE
698dcdb6
VZ
2877
2878fi
10f2d63a
VZ
2879
2880
2881 eval "$ac_cv_use_permissive"
2882 if test "$no_cache" != 1; then
2883 echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp
2884 fi
2885
2886 if test "$wxUSE_PERMISSIVE" = yes; then
698dcdb6 2887 echo "$ac_t""yes" 1>&6
10f2d63a 2888 else
698dcdb6 2889 echo "$ac_t""no" 1>&6
10f2d63a 2890 fi
698dcdb6 2891
10f2d63a 2892
698dcdb6 2893 echo $ac_n "checking for --enable-no_deps""... $ac_c" 1>&6
321d2b14 2894echo "configure:2895: checking for --enable-no_deps" >&5
10f2d63a
VZ
2895 no_cache=0
2896 # Check whether --enable-no_deps or --disable-no_deps was given.
2897if test "${enable_no_deps+set}" = set; then
2898 enableval="$enable_no_deps"
698dcdb6 2899
10f2d63a
VZ
2900 if test "$enableval" = yes; then
2901 ac_cv_use_no_deps='wxUSE_NO_DEPS=yes'
2902 else
2903 ac_cv_use_no_deps='wxUSE_NO_DEPS=no'
2904 fi
698dcdb6 2905
10f2d63a 2906else
698dcdb6 2907
10f2d63a
VZ
2908 LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}`
2909 if test "x$LINE" != x ; then
2910 eval "DEFAULT_$LINE"
2911 else
2912 no_cache=1
2913 fi
2914
2915 ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS
698dcdb6
VZ
2916
2917fi
10f2d63a
VZ
2918
2919
2920 eval "$ac_cv_use_no_deps"
2921 if test "$no_cache" != 1; then
2922 echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp
2923 fi
2924
2925 if test "$wxUSE_NO_DEPS" = yes; then
698dcdb6 2926 echo "$ac_t""yes" 1>&6
10f2d63a 2927 else
698dcdb6 2928 echo "$ac_t""no" 1>&6
10f2d63a 2929 fi
698dcdb6
VZ
2930
2931
10f2d63a 2932
54276ccf 2933 echo $ac_n "checking for --enable-compat20""... $ac_c" 1>&6
321d2b14 2934echo "configure:2935: checking for --enable-compat20" >&5
54276ccf
VZ
2935 no_cache=0
2936 # Check whether --enable-compat20 or --disable-compat20 was given.
2937if test "${enable_compat20+set}" = set; then
2938 enableval="$enable_compat20"
2939
2940 if test "$enableval" = yes; then
2941 ac_cv_use_compat20='WXWIN_COMPATIBILITY_2=yes'
2942 else
2943 ac_cv_use_compat20='WXWIN_COMPATIBILITY_2=no'
2944 fi
2945
2946else
2947
2948 LINE=`grep "WXWIN_COMPATIBILITY_2" ${wx_arg_cache_file}`
2949 if test "x$LINE" != x ; then
2950 eval "DEFAULT_$LINE"
2951 else
2952 no_cache=1
2953 fi
2954
2955 ac_cv_use_compat20='WXWIN_COMPATIBILITY_2='$DEFAULT_WXWIN_COMPATIBILITY_2
2956
2957fi
2958
2959
2960 eval "$ac_cv_use_compat20"
2961 if test "$no_cache" != 1; then
2962 echo $ac_cv_use_compat20 >> ${wx_arg_cache_file}.tmp
2963 fi
2964
2965 if test "$WXWIN_COMPATIBILITY_2" = yes; then
2966 echo "$ac_t""yes" 1>&6
2967 else
2968 echo "$ac_t""no" 1>&6
2969 fi
2970
2971
2972 echo $ac_n "checking for --enable-compat22""... $ac_c" 1>&6
321d2b14 2973echo "configure:2974: checking for --enable-compat22" >&5
54276ccf
VZ
2974 no_cache=0
2975 # Check whether --enable-compat22 or --disable-compat22 was given.
2976if test "${enable_compat22+set}" = set; then
2977 enableval="$enable_compat22"
2978
2979 if test "$enableval" = yes; then
2980 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=yes'
2981 else
2982 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=no'
2983 fi
2984
2985else
2986
2987 LINE=`grep "WXWIN_COMPATIBILITY_2_2" ${wx_arg_cache_file}`
2988 if test "x$LINE" != x ; then
2989 eval "DEFAULT_$LINE"
2990 else
2991 no_cache=1
2992 fi
2993
2994 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2='$DEFAULT_WXWIN_COMPATIBILITY_2_2
2995
2996fi
2997
2998
2999 eval "$ac_cv_use_compat22"
3000 if test "$no_cache" != 1; then
3001 echo $ac_cv_use_compat22 >> ${wx_arg_cache_file}.tmp
3002 fi
3003
3004 if test "$WXWIN_COMPATIBILITY_2_2" = yes; then
3005 echo "$ac_t""yes" 1>&6
3006 else
3007 echo "$ac_t""no" 1>&6
3008 fi
3009
3010
3011
698dcdb6
VZ
3012
3013 echo $ac_n "checking for --enable-intl""... $ac_c" 1>&6
321d2b14 3014echo "configure:3015: checking for --enable-intl" >&5
10f2d63a
VZ
3015 no_cache=0
3016 # Check whether --enable-intl or --disable-intl was given.
3017if test "${enable_intl+set}" = set; then
3018 enableval="$enable_intl"
698dcdb6 3019
10f2d63a
VZ
3020 if test "$enableval" = yes; then
3021 ac_cv_use_intl='wxUSE_INTL=yes'
3022 else
3023 ac_cv_use_intl='wxUSE_INTL=no'
3024 fi
698dcdb6 3025
10f2d63a 3026else
698dcdb6 3027
10f2d63a
VZ
3028 LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}`
3029 if test "x$LINE" != x ; then
3030 eval "DEFAULT_$LINE"
3031 else
3032 no_cache=1
3033 fi
3034
3035 ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL
698dcdb6
VZ
3036
3037fi
10f2d63a
VZ
3038
3039
3040 eval "$ac_cv_use_intl"
3041 if test "$no_cache" != 1; then
3042 echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp
3043 fi
3044
3045 if test "$wxUSE_INTL" = yes; then
698dcdb6 3046 echo "$ac_t""yes" 1>&6
10f2d63a 3047 else
698dcdb6 3048 echo "$ac_t""no" 1>&6
10f2d63a 3049 fi
698dcdb6 3050
10f2d63a 3051
698dcdb6 3052 echo $ac_n "checking for --enable-config""... $ac_c" 1>&6
321d2b14 3053echo "configure:3054: checking for --enable-config" >&5
10f2d63a
VZ
3054 no_cache=0
3055 # Check whether --enable-config or --disable-config was given.
3056if test "${enable_config+set}" = set; then
3057 enableval="$enable_config"
698dcdb6 3058
10f2d63a
VZ
3059 if test "$enableval" = yes; then
3060 ac_cv_use_config='wxUSE_CONFIG=yes'
3061 else
3062 ac_cv_use_config='wxUSE_CONFIG=no'
3063 fi
698dcdb6 3064
10f2d63a 3065else
698dcdb6 3066
10f2d63a
VZ
3067 LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}`
3068 if test "x$LINE" != x ; then
3069 eval "DEFAULT_$LINE"
3070 else
3071 no_cache=1
3072 fi
3073
3074 ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG
698dcdb6
VZ
3075
3076fi
10f2d63a
VZ
3077
3078
3079 eval "$ac_cv_use_config"
3080 if test "$no_cache" != 1; then
3081 echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp
3082 fi
3083
3084 if test "$wxUSE_CONFIG" = yes; then
698dcdb6 3085 echo "$ac_t""yes" 1>&6
10f2d63a 3086 else
698dcdb6 3087 echo "$ac_t""no" 1>&6
10f2d63a 3088 fi
698dcdb6
VZ
3089
3090
b12915c1 3091
a1622950 3092 echo $ac_n "checking for --enable-protocols""... $ac_c" 1>&6
321d2b14 3093echo "configure:3094: checking for --enable-protocols" >&5
a1622950
VZ
3094 no_cache=0
3095 # Check whether --enable-protocols or --disable-protocols was given.
3096if test "${enable_protocols+set}" = set; then
3097 enableval="$enable_protocols"
3098
3099 if test "$enableval" = yes; then
3100 ac_cv_use_protocols='wxUSE_PROTOCOL=yes'
3101 else
3102 ac_cv_use_protocols='wxUSE_PROTOCOL=no'
3103 fi
3104
3105else
3106
3107 LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
3108 if test "x$LINE" != x ; then
3109 eval "DEFAULT_$LINE"
3110 else
3111 no_cache=1
3112 fi
3113
3114 ac_cv_use_protocols='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
3115
3116fi
3117
3118
3119 eval "$ac_cv_use_protocols"
3120 if test "$no_cache" != 1; then
3121 echo $ac_cv_use_protocols >> ${wx_arg_cache_file}.tmp
3122 fi
3123
3124 if test "$wxUSE_PROTOCOL" = yes; then
3125 echo "$ac_t""yes" 1>&6
3126 else
3127 echo "$ac_t""no" 1>&6
3128 fi
3129
3130
3131 echo $ac_n "checking for --enable-ftp""... $ac_c" 1>&6
321d2b14 3132echo "configure:3133: checking for --enable-ftp" >&5
a1622950
VZ
3133 no_cache=0
3134 # Check whether --enable-ftp or --disable-ftp was given.
3135if test "${enable_ftp+set}" = set; then
3136 enableval="$enable_ftp"
3137
3138 if test "$enableval" = yes; then
3139 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=yes'
3140 else
3141 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=no'
3142 fi
3143
3144else
3145
3146 LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
3147 if test "x$LINE" != x ; then
3148 eval "DEFAULT_$LINE"
3149 else
3150 no_cache=1
3151 fi
3152
3153 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
3154
3155fi
3156
3157
3158 eval "$ac_cv_use_ftp"
3159 if test "$no_cache" != 1; then
3160 echo $ac_cv_use_ftp >> ${wx_arg_cache_file}.tmp
3161 fi
3162
3163 if test "$wxUSE_PROTOCOL_FTP" = yes; then
3164 echo "$ac_t""yes" 1>&6
3165 else
3166 echo "$ac_t""no" 1>&6
3167 fi
3168
3169
3170 echo $ac_n "checking for --enable-http""... $ac_c" 1>&6
321d2b14 3171echo "configure:3172: checking for --enable-http" >&5
a1622950
VZ
3172 no_cache=0
3173 # Check whether --enable-http or --disable-http was given.
3174if test "${enable_http+set}" = set; then
3175 enableval="$enable_http"
3176
3177 if test "$enableval" = yes; then
3178 ac_cv_use_http='wxUSE_PROTOCOL_HTTP=yes'
3179 else
3180 ac_cv_use_http='wxUSE_PROTOCOL_HTTP=no'
3181 fi
3182
3183else
3184
3185 LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
3186 if test "x$LINE" != x ; then
3187 eval "DEFAULT_$LINE"
3188 else
3189 no_cache=1
3190 fi
3191
3192 ac_cv_use_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
3193
3194fi
3195
3196
3197 eval "$ac_cv_use_http"
3198 if test "$no_cache" != 1; then
3199 echo $ac_cv_use_http >> ${wx_arg_cache_file}.tmp
3200 fi
3201
3202 if test "$wxUSE_PROTOCOL_HTTP" = yes; then
3203 echo "$ac_t""yes" 1>&6
3204 else
3205 echo "$ac_t""no" 1>&6
3206 fi
3207
3208
3209 echo $ac_n "checking for --enable-fileproto""... $ac_c" 1>&6
321d2b14 3210echo "configure:3211: checking for --enable-fileproto" >&5
a1622950
VZ
3211 no_cache=0
3212 # Check whether --enable-fileproto or --disable-fileproto was given.
3213if test "${enable_fileproto+set}" = set; then
3214 enableval="$enable_fileproto"
3215
3216 if test "$enableval" = yes; then
3217 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=yes'
3218 else
3219 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=no'
3220 fi
3221
3222else
3223
3224 LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
3225 if test "x$LINE" != x ; then
3226 eval "DEFAULT_$LINE"
3227 else
3228 no_cache=1
3229 fi
3230
3231 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
3232
3233fi
3234
3235
3236 eval "$ac_cv_use_fileproto"
3237 if test "$no_cache" != 1; then
3238 echo $ac_cv_use_fileproto >> ${wx_arg_cache_file}.tmp
3239 fi
3240
3241 if test "$wxUSE_PROTOCOL_FILE" = yes; then
3242 echo "$ac_t""yes" 1>&6
3243 else
3244 echo "$ac_t""no" 1>&6
3245 fi
3246
3247
698dcdb6 3248 echo $ac_n "checking for --enable-sockets""... $ac_c" 1>&6
321d2b14 3249echo "configure:3250: checking for --enable-sockets" >&5
10f2d63a
VZ
3250 no_cache=0
3251 # Check whether --enable-sockets or --disable-sockets was given.
3252if test "${enable_sockets+set}" = set; then
3253 enableval="$enable_sockets"
698dcdb6 3254
10f2d63a
VZ
3255 if test "$enableval" = yes; then
3256 ac_cv_use_sockets='wxUSE_SOCKETS=yes'
3257 else
3258 ac_cv_use_sockets='wxUSE_SOCKETS=no'
3259 fi
698dcdb6 3260
10f2d63a 3261else
698dcdb6 3262
10f2d63a
VZ
3263 LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}`
3264 if test "x$LINE" != x ; then
3265 eval "DEFAULT_$LINE"
3266 else
3267 no_cache=1
3268 fi
3269
3270 ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS
698dcdb6
VZ
3271
3272fi
10f2d63a
VZ
3273
3274
3275 eval "$ac_cv_use_sockets"
3276 if test "$no_cache" != 1; then
3277 echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp
3278 fi
3279
3280 if test "$wxUSE_SOCKETS" = yes; then
698dcdb6 3281 echo "$ac_t""yes" 1>&6
10f2d63a 3282 else
698dcdb6 3283 echo "$ac_t""no" 1>&6
10f2d63a 3284 fi
698dcdb6 3285
b12915c1 3286
698dcdb6
VZ
3287
3288 echo $ac_n "checking for --enable-ipc""... $ac_c" 1>&6
321d2b14 3289echo "configure:3290: checking for --enable-ipc" >&5
10f2d63a 3290 no_cache=0
eb4efbdc
VZ
3291 # Check whether --enable-ipc or --disable-ipc was given.
3292if test "${enable_ipc+set}" = set; then
3293 enableval="$enable_ipc"
698dcdb6 3294
10f2d63a 3295 if test "$enableval" = yes; then
eb4efbdc 3296 ac_cv_use_ipc='wxUSE_IPC=yes'
10f2d63a 3297 else
eb4efbdc 3298 ac_cv_use_ipc='wxUSE_IPC=no'
10f2d63a 3299 fi
698dcdb6 3300
10f2d63a 3301else
698dcdb6 3302
eb4efbdc 3303 LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}`
10f2d63a
VZ
3304 if test "x$LINE" != x ; then
3305 eval "DEFAULT_$LINE"
3306 else
3307 no_cache=1
3308 fi
3309
eb4efbdc 3310 ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC
698dcdb6
VZ
3311
3312fi
10f2d63a
VZ
3313
3314
eb4efbdc 3315 eval "$ac_cv_use_ipc"
10f2d63a 3316 if test "$no_cache" != 1; then
eb4efbdc 3317 echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
3318 fi
3319
eb4efbdc 3320 if test "$wxUSE_IPC" = yes; then
698dcdb6 3321 echo "$ac_t""yes" 1>&6
10f2d63a 3322 else
698dcdb6 3323 echo "$ac_t""no" 1>&6
10f2d63a 3324 fi
698dcdb6
VZ
3325
3326
eb4efbdc 3327
1e6feb95 3328 echo $ac_n "checking for --enable-cmdline""... $ac_c" 1>&6
321d2b14 3329echo "configure:3330: checking for --enable-cmdline" >&5
1e6feb95
VZ
3330 no_cache=0
3331 # Check whether --enable-cmdline or --disable-cmdline was given.
3332if test "${enable_cmdline+set}" = set; then
3333 enableval="$enable_cmdline"
3334
3335 if test "$enableval" = yes; then
3336 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=yes'
3337 else
3338 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=no'
3339 fi
3340
3341else
3342
3343 LINE=`grep "wxUSE_CMDLINE_PARSER" ${wx_arg_cache_file}`
3344 if test "x$LINE" != x ; then
3345 eval "DEFAULT_$LINE"
3346 else
3347 no_cache=1
3348 fi
3349
3350 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER='$DEFAULT_wxUSE_CMDLINE_PARSER
3351
3352fi
3353
3354
3355 eval "$ac_cv_use_cmdline"
3356 if test "$no_cache" != 1; then
3357 echo $ac_cv_use_cmdline >> ${wx_arg_cache_file}.tmp
3358 fi
3359
3360 if test "$wxUSE_CMDLINE_PARSER" = yes; then
3361 echo "$ac_t""yes" 1>&6
3362 else
3363 echo "$ac_t""no" 1>&6
3364 fi
3365
3366
3367 echo $ac_n "checking for --enable-datetime""... $ac_c" 1>&6
321d2b14 3368echo "configure:3369: checking for --enable-datetime" >&5
1e6feb95
VZ
3369 no_cache=0
3370 # Check whether --enable-datetime or --disable-datetime was given.
3371if test "${enable_datetime+set}" = set; then
3372 enableval="$enable_datetime"
3373
3374 if test "$enableval" = yes; then
3375 ac_cv_use_datetime='wxUSE_DATETIME=yes'
3376 else
3377 ac_cv_use_datetime='wxUSE_DATETIME=no'
3378 fi
3379
3380else
3381
3382 LINE=`grep "wxUSE_DATETIME" ${wx_arg_cache_file}`
3383 if test "x$LINE" != x ; then
3384 eval "DEFAULT_$LINE"
3385 else
3386 no_cache=1
3387 fi
3388
3389 ac_cv_use_datetime='wxUSE_DATETIME='$DEFAULT_wxUSE_DATETIME
3390
3391fi
3392
3393
3394 eval "$ac_cv_use_datetime"
3395 if test "$no_cache" != 1; then
3396 echo $ac_cv_use_datetime >> ${wx_arg_cache_file}.tmp
3397 fi
3398
3399 if test "$wxUSE_DATETIME" = yes; then
3400 echo "$ac_t""yes" 1>&6
3401 else
3402 echo "$ac_t""no" 1>&6
3403 fi
3404
3405
3406 echo $ac_n "checking for --enable-timedate""... $ac_c" 1>&6
321d2b14 3407echo "configure:3408: checking for --enable-timedate" >&5
1e6feb95
VZ
3408 no_cache=0
3409 # Check whether --enable-timedate or --disable-timedate was given.
3410if test "${enable_timedate+set}" = set; then
3411 enableval="$enable_timedate"
3412
3413 if test "$enableval" = yes; then
3414 ac_cv_use_timedate='wxUSE_TIMEDATE=yes'
3415 else
3416 ac_cv_use_timedate='wxUSE_TIMEDATE=no'
3417 fi
3418
3419else
3420
3421 LINE=`grep "wxUSE_TIMEDATE" ${wx_arg_cache_file}`
3422 if test "x$LINE" != x ; then
3423 eval "DEFAULT_$LINE"
3424 else
3425 no_cache=1
3426 fi
3427
3428 ac_cv_use_timedate='wxUSE_TIMEDATE='$DEFAULT_wxUSE_TIMEDATE
3429
3430fi
3431
3432
3433 eval "$ac_cv_use_timedate"
3434 if test "$no_cache" != 1; then
3435 echo $ac_cv_use_timedate >> ${wx_arg_cache_file}.tmp
3436 fi
3437
3438 if test "$wxUSE_TIMEDATE" = yes; then
3439 echo "$ac_t""yes" 1>&6
3440 else
3441 echo "$ac_t""no" 1>&6
3442 fi
3443
3444
3445 echo $ac_n "checking for --enable-stopwatch""... $ac_c" 1>&6
321d2b14 3446echo "configure:3447: checking for --enable-stopwatch" >&5
1e6feb95
VZ
3447 no_cache=0
3448 # Check whether --enable-stopwatch or --disable-stopwatch was given.
3449if test "${enable_stopwatch+set}" = set; then
3450 enableval="$enable_stopwatch"
3451
3452 if test "$enableval" = yes; then
3453 ac_cv_use_stopwatch='wxUSE_STOPWATCH=yes'
3454 else
3455 ac_cv_use_stopwatch='wxUSE_STOPWATCH=no'
3456 fi
3457
3458else
3459
3460 LINE=`grep "wxUSE_STOPWATCH" ${wx_arg_cache_file}`
3461 if test "x$LINE" != x ; then
3462 eval "DEFAULT_$LINE"
3463 else
3464 no_cache=1
3465 fi
3466
3467 ac_cv_use_stopwatch='wxUSE_STOPWATCH='$DEFAULT_wxUSE_STOPWATCH
3468
3469fi
3470
3471
3472 eval "$ac_cv_use_stopwatch"
3473 if test "$no_cache" != 1; then
3474 echo $ac_cv_use_stopwatch >> ${wx_arg_cache_file}.tmp
3475 fi
3476
3477 if test "$wxUSE_STOPWATCH" = yes; then
3478 echo "$ac_t""yes" 1>&6
3479 else
3480 echo "$ac_t""no" 1>&6
3481 fi
3482
3483
698dcdb6 3484 echo $ac_n "checking for --enable-dialupman""... $ac_c" 1>&6
321d2b14 3485echo "configure:3486: checking for --enable-dialupman" >&5
10f2d63a 3486 no_cache=0
eb4efbdc
VZ
3487 # Check whether --enable-dialupman or --disable-dialupman was given.
3488if test "${enable_dialupman+set}" = set; then
3489 enableval="$enable_dialupman"
698dcdb6 3490
10f2d63a 3491 if test "$enableval" = yes; then
eb4efbdc 3492 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes'
10f2d63a 3493 else
eb4efbdc 3494 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no'
10f2d63a 3495 fi
698dcdb6 3496
10f2d63a 3497else
698dcdb6 3498
eb4efbdc 3499 LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}`
10f2d63a
VZ
3500 if test "x$LINE" != x ; then
3501 eval "DEFAULT_$LINE"
3502 else
3503 no_cache=1
3504 fi
3505
eb4efbdc 3506 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER
698dcdb6
VZ
3507
3508fi
10f2d63a
VZ
3509
3510
eb4efbdc 3511 eval "$ac_cv_use_dialupman"
10f2d63a 3512 if test "$no_cache" != 1; then
eb4efbdc 3513 echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
3514 fi
3515
eb4efbdc 3516 if test "$wxUSE_DIALUP_MANAGER" = yes; then
698dcdb6 3517 echo "$ac_t""yes" 1>&6
10f2d63a 3518 else
698dcdb6 3519 echo "$ac_t""no" 1>&6
10f2d63a 3520 fi
698dcdb6 3521
10f2d63a 3522
698dcdb6 3523 echo $ac_n "checking for --enable-apple_ieee""... $ac_c" 1>&6
321d2b14 3524echo "configure:3525: checking for --enable-apple_ieee" >&5
10f2d63a
VZ
3525 no_cache=0
3526 # Check whether --enable-apple_ieee or --disable-apple_ieee was given.
3527if test "${enable_apple_ieee+set}" = set; then
3528 enableval="$enable_apple_ieee"
698dcdb6 3529
10f2d63a
VZ
3530 if test "$enableval" = yes; then
3531 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes'
3532 else
3533 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no'
3534 fi
698dcdb6 3535
10f2d63a 3536else
698dcdb6 3537
10f2d63a
VZ
3538 LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}`
3539 if test "x$LINE" != x ; then
3540 eval "DEFAULT_$LINE"
3541 else
3542 no_cache=1
3543 fi
3544
3545 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE
698dcdb6
VZ
3546
3547fi
10f2d63a
VZ
3548
3549
3550 eval "$ac_cv_use_apple_ieee"
3551 if test "$no_cache" != 1; then
3552 echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp
3553 fi
3554
3555 if test "$wxUSE_APPLE_IEEE" = yes; then
698dcdb6 3556 echo "$ac_t""yes" 1>&6
10f2d63a 3557 else
698dcdb6 3558 echo "$ac_t""no" 1>&6
10f2d63a 3559 fi
698dcdb6 3560
10f2d63a 3561
1e6feb95 3562 echo $ac_n "checking for --enable-timer""... $ac_c" 1>&6
321d2b14 3563echo "configure:3564: checking for --enable-timer" >&5
10f2d63a 3564 no_cache=0
1e6feb95
VZ
3565 # Check whether --enable-timer or --disable-timer was given.
3566if test "${enable_timer+set}" = set; then
3567 enableval="$enable_timer"
698dcdb6 3568
10f2d63a 3569 if test "$enableval" = yes; then
1e6feb95 3570 ac_cv_use_timer='wxUSE_TIMER=yes'
10f2d63a 3571 else
1e6feb95 3572 ac_cv_use_timer='wxUSE_TIMER=no'
10f2d63a 3573 fi
698dcdb6 3574
10f2d63a 3575else
698dcdb6 3576
1e6feb95 3577 LINE=`grep "wxUSE_TIMER" ${wx_arg_cache_file}`
10f2d63a
VZ
3578 if test "x$LINE" != x ; then
3579 eval "DEFAULT_$LINE"
3580 else
3581 no_cache=1
3582 fi
3583
1e6feb95 3584 ac_cv_use_timer='wxUSE_TIMER='$DEFAULT_wxUSE_TIMER
698dcdb6
VZ
3585
3586fi
10f2d63a
VZ
3587
3588
1e6feb95 3589 eval "$ac_cv_use_timer"
10f2d63a 3590 if test "$no_cache" != 1; then
1e6feb95 3591 echo $ac_cv_use_timer >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
3592 fi
3593
1e6feb95 3594 if test "$wxUSE_TIMER" = yes; then
698dcdb6 3595 echo "$ac_t""yes" 1>&6
10f2d63a 3596 else
698dcdb6 3597 echo "$ac_t""no" 1>&6
10f2d63a 3598 fi
698dcdb6 3599
10f2d63a 3600
698dcdb6 3601 echo $ac_n "checking for --enable-wave""... $ac_c" 1>&6
321d2b14 3602echo "configure:3603: checking for --enable-wave" >&5
10f2d63a
VZ
3603 no_cache=0
3604 # Check whether --enable-wave or --disable-wave was given.
3605if test "${enable_wave+set}" = set; then
3606 enableval="$enable_wave"
698dcdb6 3607
10f2d63a
VZ
3608 if test "$enableval" = yes; then
3609 ac_cv_use_wave='wxUSE_WAVE=yes'
3610 else
3611 ac_cv_use_wave='wxUSE_WAVE=no'
3612 fi
698dcdb6 3613
10f2d63a 3614else
698dcdb6 3615
10f2d63a
VZ
3616 LINE=`grep "wxUSE_WAVE" ${wx_arg_cache_file}`
3617 if test "x$LINE" != x ; then
3618 eval "DEFAULT_$LINE"
3619 else
3620 no_cache=1
3621 fi
3622
3623 ac_cv_use_wave='wxUSE_WAVE='$DEFAULT_wxUSE_WAVE
698dcdb6
VZ
3624
3625fi
10f2d63a
VZ
3626
3627
3628 eval "$ac_cv_use_wave"
3629 if test "$no_cache" != 1; then
3630 echo $ac_cv_use_wave >> ${wx_arg_cache_file}.tmp
3631 fi
3632
3633 if test "$wxUSE_WAVE" = yes; then
698dcdb6 3634 echo "$ac_t""yes" 1>&6
10f2d63a 3635 else
698dcdb6 3636 echo "$ac_t""no" 1>&6
10f2d63a 3637 fi
698dcdb6 3638
10f2d63a 3639
698dcdb6 3640 echo $ac_n "checking for --enable-fraction""... $ac_c" 1>&6
321d2b14 3641echo "configure:3642: checking for --enable-fraction" >&5
10f2d63a
VZ
3642 no_cache=0
3643 # Check whether --enable-fraction or --disable-fraction was given.
3644if test "${enable_fraction+set}" = set; then
3645 enableval="$enable_fraction"
698dcdb6 3646
10f2d63a
VZ
3647 if test "$enableval" = yes; then
3648 ac_cv_use_fraction='wxUSE_FRACTION=yes'
3649 else
3650 ac_cv_use_fraction='wxUSE_FRACTION=no'
3651 fi
698dcdb6 3652
10f2d63a 3653else
698dcdb6 3654
10f2d63a
VZ
3655 LINE=`grep "wxUSE_FRACTION" ${wx_arg_cache_file}`
3656 if test "x$LINE" != x ; then
3657 eval "DEFAULT_$LINE"
3658 else
3659 no_cache=1
3660 fi
3661
3662 ac_cv_use_fraction='wxUSE_FRACTION='$DEFAULT_wxUSE_FRACTION
698dcdb6
VZ
3663
3664fi
10f2d63a
VZ
3665
3666
3667 eval "$ac_cv_use_fraction"
3668 if test "$no_cache" != 1; then
3669 echo $ac_cv_use_fraction >> ${wx_arg_cache_file}.tmp
3670 fi
3671
3672 if test "$wxUSE_FRACTION" = yes; then
698dcdb6 3673 echo "$ac_t""yes" 1>&6
10f2d63a 3674 else
698dcdb6 3675 echo "$ac_t""no" 1>&6
10f2d63a 3676 fi
698dcdb6 3677
10f2d63a 3678
698dcdb6 3679 echo $ac_n "checking for --enable-dynlib""... $ac_c" 1>&6
321d2b14 3680echo "configure:3681: checking for --enable-dynlib" >&5
10f2d63a
VZ
3681 no_cache=0
3682 # Check whether --enable-dynlib or --disable-dynlib was given.
3683if test "${enable_dynlib+set}" = set; then
3684 enableval="$enable_dynlib"
698dcdb6 3685
10f2d63a
VZ
3686 if test "$enableval" = yes; then
3687 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes'
3688 else
3689 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no'
3690 fi
698dcdb6 3691
10f2d63a 3692else
698dcdb6 3693
10f2d63a
VZ
3694 LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}`
3695 if test "x$LINE" != x ; then
3696 eval "DEFAULT_$LINE"
3697 else
3698 no_cache=1
3699 fi
3700
3701 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS
698dcdb6
VZ
3702
3703fi
10f2d63a
VZ
3704
3705
3706 eval "$ac_cv_use_dynlib"
3707 if test "$no_cache" != 1; then
3708 echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp
3709 fi
3710
3711 if test "$wxUSE_DYNLIB_CLASS" = yes; then
698dcdb6 3712 echo "$ac_t""yes" 1>&6
10f2d63a 3713 else
698dcdb6 3714 echo "$ac_t""no" 1>&6
10f2d63a 3715 fi
698dcdb6 3716
10f2d63a 3717
0b9ab0bd 3718 echo $ac_n "checking for --enable-dynamicloader""... $ac_c" 1>&6
321d2b14 3719echo "configure:3720: checking for --enable-dynamicloader" >&5
0b9ab0bd
RL
3720 no_cache=0
3721 # Check whether --enable-dynamicloader or --disable-dynamicloader was given.
3722if test "${enable_dynamicloader+set}" = set; then
3723 enableval="$enable_dynamicloader"
3724
3725 if test "$enableval" = yes; then
3726 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=yes'
3727 else
3728 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=no'
3729 fi
3730
3731else
3732
3733 LINE=`grep "wxUSE_DYNAMIC_LOADER" ${wx_arg_cache_file}`
3734 if test "x$LINE" != x ; then
3735 eval "DEFAULT_$LINE"
3736 else
3737 no_cache=1
3738 fi
3739
3740 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER='$DEFAULT_wxUSE_DYNAMIC_LOADER
3741
3742fi
3743
3744
3745 eval "$ac_cv_use_dynamicloader"
3746 if test "$no_cache" != 1; then
3747 echo $ac_cv_use_dynamicloader >> ${wx_arg_cache_file}.tmp
3748 fi
3749
3750 if test "$wxUSE_DYNAMIC_LOADER" = yes; then
3751 echo "$ac_t""yes" 1>&6
3752 else
3753 echo "$ac_t""no" 1>&6
3754 fi
3755
3756
698dcdb6 3757 echo $ac_n "checking for --enable-longlong""... $ac_c" 1>&6
321d2b14 3758echo "configure:3759: checking for --enable-longlong" >&5
10f2d63a
VZ
3759 no_cache=0
3760 # Check whether --enable-longlong or --disable-longlong was given.
3761if test "${enable_longlong+set}" = set; then
3762 enableval="$enable_longlong"
698dcdb6 3763
10f2d63a
VZ
3764 if test "$enableval" = yes; then
3765 ac_cv_use_longlong='wxUSE_LONGLONG=yes'
3766 else
3767 ac_cv_use_longlong='wxUSE_LONGLONG=no'
3768 fi
698dcdb6 3769
10f2d63a 3770else
698dcdb6 3771
10f2d63a
VZ
3772 LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}`
3773 if test "x$LINE" != x ; then
3774 eval "DEFAULT_$LINE"
3775 else
3776 no_cache=1
3777 fi
3778
3779 ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG
698dcdb6
VZ
3780
3781fi
10f2d63a
VZ
3782
3783
3784 eval "$ac_cv_use_longlong"
3785 if test "$no_cache" != 1; then
3786 echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp
3787 fi
3788
3789 if test "$wxUSE_LONGLONG" = yes; then
698dcdb6 3790 echo "$ac_t""yes" 1>&6
10f2d63a 3791 else
698dcdb6 3792 echo "$ac_t""no" 1>&6
10f2d63a 3793 fi
698dcdb6 3794
10f2d63a 3795
698dcdb6 3796 echo $ac_n "checking for --enable-geometry""... $ac_c" 1>&6
321d2b14 3797echo "configure:3798: checking for --enable-geometry" >&5
e8f65ba6
RR
3798 no_cache=0
3799 # Check whether --enable-geometry or --disable-geometry was given.
3800if test "${enable_geometry+set}" = set; then
3801 enableval="$enable_geometry"
698dcdb6 3802
e8f65ba6
RR
3803 if test "$enableval" = yes; then
3804 ac_cv_use_geometry='wxUSE_GEOMETRY=yes'
3805 else
3806 ac_cv_use_geometry='wxUSE_GEOMETRY=no'
3807 fi
698dcdb6 3808
e8f65ba6 3809else
698dcdb6 3810
e8f65ba6
RR
3811 LINE=`grep "wxUSE_GEOMETRY" ${wx_arg_cache_file}`
3812 if test "x$LINE" != x ; then
3813 eval "DEFAULT_$LINE"
3814 else
3815 no_cache=1
3816 fi
3817
3818 ac_cv_use_geometry='wxUSE_GEOMETRY='$DEFAULT_wxUSE_GEOMETRY
698dcdb6
VZ
3819
3820fi
e8f65ba6
RR
3821
3822
3823 eval "$ac_cv_use_geometry"
3824 if test "$no_cache" != 1; then
3825 echo $ac_cv_use_geometry >> ${wx_arg_cache_file}.tmp
3826 fi
3827
3828 if test "$wxUSE_GEOMETRY" = yes; then
698dcdb6 3829 echo "$ac_t""yes" 1>&6
e8f65ba6 3830 else
698dcdb6 3831 echo "$ac_t""no" 1>&6
e8f65ba6 3832 fi
698dcdb6 3833
e8f65ba6 3834
698dcdb6 3835 echo $ac_n "checking for --enable-log""... $ac_c" 1>&6
321d2b14 3836echo "configure:3837: checking for --enable-log" >&5
10f2d63a
VZ
3837 no_cache=0
3838 # Check whether --enable-log or --disable-log was given.
3839if test "${enable_log+set}" = set; then
3840 enableval="$enable_log"
698dcdb6 3841
10f2d63a
VZ
3842 if test "$enableval" = yes; then
3843 ac_cv_use_log='wxUSE_LOG=yes'
3844 else
3845 ac_cv_use_log='wxUSE_LOG=no'
3846 fi
698dcdb6 3847
10f2d63a 3848else
698dcdb6 3849
10f2d63a
VZ
3850 LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}`
3851 if test "x$LINE" != x ; then
3852 eval "DEFAULT_$LINE"
3853 else
3854 no_cache=1
3855 fi
3856
3857 ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG
698dcdb6
VZ
3858
3859fi
10f2d63a
VZ
3860
3861
3862 eval "$ac_cv_use_log"
3863 if test "$no_cache" != 1; then
3864 echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp
3865 fi
3866
3867 if test "$wxUSE_LOG" = yes; then
698dcdb6 3868 echo "$ac_t""yes" 1>&6
10f2d63a 3869 else
698dcdb6 3870 echo "$ac_t""no" 1>&6
10f2d63a 3871 fi
698dcdb6 3872
10f2d63a 3873
698dcdb6 3874 echo $ac_n "checking for --enable-streams""... $ac_c" 1>&6
321d2b14 3875echo "configure:3876: checking for --enable-streams" >&5
10f2d63a
VZ
3876 no_cache=0
3877 # Check whether --enable-streams or --disable-streams was given.
3878if test "${enable_streams+set}" = set; then
3879 enableval="$enable_streams"
698dcdb6 3880
10f2d63a
VZ
3881 if test "$enableval" = yes; then
3882 ac_cv_use_streams='wxUSE_STREAMS=yes'
3883 else
3884 ac_cv_use_streams='wxUSE_STREAMS=no'
3885 fi
698dcdb6 3886
10f2d63a 3887else
698dcdb6 3888
10f2d63a
VZ
3889 LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}`
3890 if test "x$LINE" != x ; then
3891 eval "DEFAULT_$LINE"
3892 else
3893 no_cache=1
3894 fi
3895
3896 ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS
698dcdb6
VZ
3897
3898fi
10f2d63a
VZ
3899
3900
3901 eval "$ac_cv_use_streams"
3902 if test "$no_cache" != 1; then
3903 echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp
3904 fi
3905
3906 if test "$wxUSE_STREAMS" = yes; then
698dcdb6 3907 echo "$ac_t""yes" 1>&6
10f2d63a 3908 else
698dcdb6 3909 echo "$ac_t""no" 1>&6
10f2d63a 3910 fi
698dcdb6 3911
10f2d63a 3912
698dcdb6 3913 echo $ac_n "checking for --enable-file""... $ac_c" 1>&6
321d2b14 3914echo "configure:3915: checking for --enable-file" >&5
10f2d63a
VZ
3915 no_cache=0
3916 # Check whether --enable-file or --disable-file was given.
3917if test "${enable_file+set}" = set; then
3918 enableval="$enable_file"
698dcdb6 3919
10f2d63a
VZ
3920 if test "$enableval" = yes; then
3921 ac_cv_use_file='wxUSE_FILE=yes'
3922 else
3923 ac_cv_use_file='wxUSE_FILE=no'
3924 fi
698dcdb6 3925
10f2d63a 3926else
698dcdb6 3927
10f2d63a
VZ
3928 LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}`
3929 if test "x$LINE" != x ; then
3930 eval "DEFAULT_$LINE"
3931 else
3932 no_cache=1
3933 fi
3934
3935 ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE
698dcdb6
VZ
3936
3937fi
10f2d63a
VZ
3938
3939
3940 eval "$ac_cv_use_file"
3941 if test "$no_cache" != 1; then
3942 echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp
3943 fi
3944
3945 if test "$wxUSE_FILE" = yes; then
698dcdb6 3946 echo "$ac_t""yes" 1>&6
10f2d63a 3947 else
698dcdb6 3948 echo "$ac_t""no" 1>&6
10f2d63a 3949 fi
698dcdb6 3950
10f2d63a 3951
1e6feb95 3952 echo $ac_n "checking for --enable-ffile""... $ac_c" 1>&6
321d2b14 3953echo "configure:3954: checking for --enable-ffile" >&5
10f2d63a 3954 no_cache=0
1e6feb95
VZ
3955 # Check whether --enable-ffile or --disable-ffile was given.
3956if test "${enable_ffile+set}" = set; then
3957 enableval="$enable_ffile"
698dcdb6 3958
10f2d63a 3959 if test "$enableval" = yes; then
1e6feb95 3960 ac_cv_use_ffile='wxUSE_FFILE=yes'
10f2d63a 3961 else
1e6feb95 3962 ac_cv_use_ffile='wxUSE_FFILE=no'
10f2d63a 3963 fi
698dcdb6 3964
10f2d63a 3965else
698dcdb6 3966
1e6feb95 3967 LINE=`grep "wxUSE_FFILE" ${wx_arg_cache_file}`
10f2d63a
VZ
3968 if test "x$LINE" != x ; then
3969 eval "DEFAULT_$LINE"
3970 else
3971 no_cache=1
3972 fi
3973
1e6feb95 3974 ac_cv_use_ffile='wxUSE_FFILE='$DEFAULT_wxUSE_FFILE
698dcdb6
VZ
3975
3976fi
10f2d63a
VZ
3977
3978
1e6feb95 3979 eval "$ac_cv_use_ffile"
10f2d63a 3980 if test "$no_cache" != 1; then
1e6feb95 3981 echo $ac_cv_use_ffile >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
3982 fi
3983
1e6feb95 3984 if test "$wxUSE_FFILE" = yes; then
698dcdb6 3985 echo "$ac_t""yes" 1>&6
10f2d63a 3986 else
698dcdb6 3987 echo "$ac_t""no" 1>&6
10f2d63a 3988 fi
698dcdb6 3989
10f2d63a 3990
a3a584a7 3991 echo $ac_n "checking for --enable-textbuf""... $ac_c" 1>&6
321d2b14 3992echo "configure:3993: checking for --enable-textbuf" >&5
a3a584a7
VZ
3993 no_cache=0
3994 # Check whether --enable-textbuf or --disable-textbuf was given.
3995if test "${enable_textbuf+set}" = set; then
3996 enableval="$enable_textbuf"
3997
3998 if test "$enableval" = yes; then
3999 ac_cv_use_textbuf='wxUSE_TEXTBUFFER=yes'
4000 else
4001 ac_cv_use_textbuf='wxUSE_TEXTBUFFER=no'
4002 fi
4003
4004else
4005
4006 LINE=`grep "wxUSE_TEXTBUFFER" ${wx_arg_cache_file}`
4007 if test "x$LINE" != x ; then
4008 eval "DEFAULT_$LINE"
4009 else
4010 no_cache=1
4011 fi
4012
4013 ac_cv_use_textbuf='wxUSE_TEXTBUFFER='$DEFAULT_wxUSE_TEXTBUFFER
4014
4015fi
4016
4017
4018 eval "$ac_cv_use_textbuf"
4019 if test "$no_cache" != 1; then
4020 echo $ac_cv_use_textbuf >> ${wx_arg_cache_file}.tmp
4021 fi
4022
4023 if test "$wxUSE_TEXTBUFFER" = yes; then
4024 echo "$ac_t""yes" 1>&6
4025 else
4026 echo "$ac_t""no" 1>&6
4027 fi
4028
4029
1e6feb95 4030 echo $ac_n "checking for --enable-textfile""... $ac_c" 1>&6
321d2b14 4031echo "configure:4032: checking for --enable-textfile" >&5
10f2d63a 4032 no_cache=0
1e6feb95
VZ
4033 # Check whether --enable-textfile or --disable-textfile was given.
4034if test "${enable_textfile+set}" = set; then
4035 enableval="$enable_textfile"
698dcdb6 4036
10f2d63a 4037 if test "$enableval" = yes; then
1e6feb95 4038 ac_cv_use_textfile='wxUSE_TEXTFILE=yes'
10f2d63a 4039 else
1e6feb95 4040 ac_cv_use_textfile='wxUSE_TEXTFILE=no'
10f2d63a 4041 fi
698dcdb6 4042
10f2d63a 4043else
698dcdb6 4044
1e6feb95 4045 LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}`
10f2d63a
VZ
4046 if test "x$LINE" != x ; then
4047 eval "DEFAULT_$LINE"
4048 else
4049 no_cache=1
4050 fi
4051
1e6feb95 4052 ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE
698dcdb6
VZ
4053
4054fi
10f2d63a
VZ
4055
4056
1e6feb95 4057 eval "$ac_cv_use_textfile"
10f2d63a 4058 if test "$no_cache" != 1; then
1e6feb95 4059 echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
4060 fi
4061
1e6feb95 4062 if test "$wxUSE_TEXTFILE" = yes; then
698dcdb6 4063 echo "$ac_t""yes" 1>&6
10f2d63a 4064 else
698dcdb6 4065 echo "$ac_t""no" 1>&6
10f2d63a 4066 fi
698dcdb6 4067
10f2d63a 4068
1e6feb95 4069 echo $ac_n "checking for --enable-fontmap""... $ac_c" 1>&6
321d2b14 4070echo "configure:4071: checking for --enable-fontmap" >&5
10f2d63a 4071 no_cache=0
1e6feb95
VZ
4072 # Check whether --enable-fontmap or --disable-fontmap was given.
4073if test "${enable_fontmap+set}" = set; then
4074 enableval="$enable_fontmap"
698dcdb6 4075
10f2d63a 4076 if test "$enableval" = yes; then
1e6feb95 4077 ac_cv_use_fontmap='wxUSE_FONTMAP=yes'
10f2d63a 4078 else
1e6feb95 4079 ac_cv_use_fontmap='wxUSE_FONTMAP=no'
10f2d63a 4080 fi
698dcdb6 4081
10f2d63a 4082else
698dcdb6 4083
1e6feb95 4084 LINE=`grep "wxUSE_FONTMAP" ${wx_arg_cache_file}`
10f2d63a
VZ
4085 if test "x$LINE" != x ; then
4086 eval "DEFAULT_$LINE"
4087 else
4088 no_cache=1
4089 fi
4090
1e6feb95 4091 ac_cv_use_fontmap='wxUSE_FONTMAP='$DEFAULT_wxUSE_FONTMAP
698dcdb6
VZ
4092
4093fi
10f2d63a
VZ
4094
4095
1e6feb95 4096 eval "$ac_cv_use_fontmap"
10f2d63a 4097 if test "$no_cache" != 1; then
1e6feb95 4098 echo $ac_cv_use_fontmap >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
4099 fi
4100
1e6feb95 4101 if test "$wxUSE_FONTMAP" = yes; then
698dcdb6 4102 echo "$ac_t""yes" 1>&6
10f2d63a 4103 else
698dcdb6 4104 echo "$ac_t""no" 1>&6
10f2d63a 4105 fi
698dcdb6 4106
10f2d63a 4107
1e6feb95 4108 echo $ac_n "checking for --enable-unicode""... $ac_c" 1>&6
321d2b14 4109echo "configure:4110: checking for --enable-unicode" >&5
10f2d63a 4110 no_cache=0
1e6feb95
VZ
4111 # Check whether --enable-unicode or --disable-unicode was given.
4112if test "${enable_unicode+set}" = set; then
4113 enableval="$enable_unicode"
4114
4115 if test "$enableval" = yes; then
4116 ac_cv_use_unicode='wxUSE_UNICODE=yes'
4117 else
4118 ac_cv_use_unicode='wxUSE_UNICODE=no'
4119 fi
4120
4121else
4122
4123 LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}`
4124 if test "x$LINE" != x ; then
4125 eval "DEFAULT_$LINE"
4126 else
4127 no_cache=1
4128 fi
4129
4130 ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE
4131
4132fi
4133
4134
4135 eval "$ac_cv_use_unicode"
4136 if test "$no_cache" != 1; then
4137 echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp
4138 fi
4139
4140 if test "$wxUSE_UNICODE" = yes; then
4141 echo "$ac_t""yes" 1>&6
4142 else
4143 echo "$ac_t""no" 1>&6
4144 fi
4145
4146
a72a4bfa 4147 echo $ac_n "checking for --enable-mslu""... $ac_c" 1>&6
321d2b14 4148echo "configure:4149: checking for --enable-mslu" >&5
a72a4bfa
VS
4149 no_cache=0
4150 # Check whether --enable-mslu or --disable-mslu was given.
4151if test "${enable_mslu+set}" = set; then
4152 enableval="$enable_mslu"
4153
4154 if test "$enableval" = yes; then
4155 ac_cv_use_mslu='wxUSE_UNICODE_MSLU=yes'
4156 else
4157 ac_cv_use_mslu='wxUSE_UNICODE_MSLU=no'
4158 fi
4159
4160else
4161
4162 LINE=`grep "wxUSE_UNICODE_MSLU" ${wx_arg_cache_file}`
4163 if test "x$LINE" != x ; then
4164 eval "DEFAULT_$LINE"
4165 else
4166 no_cache=1
4167 fi
4168
4169 ac_cv_use_mslu='wxUSE_UNICODE_MSLU='$DEFAULT_wxUSE_UNICODE_MSLU
4170
4171fi
4172
4173
4174 eval "$ac_cv_use_mslu"
4175 if test "$no_cache" != 1; then
4176 echo $ac_cv_use_mslu >> ${wx_arg_cache_file}.tmp
4177 fi
4178
4179 if test "$wxUSE_UNICODE_MSLU" = yes; then
4180 echo "$ac_t""yes" 1>&6
4181 else
4182 echo "$ac_t""no" 1>&6
4183 fi
4184
4185
1e6feb95 4186 echo $ac_n "checking for --enable-wxprintfv""... $ac_c" 1>&6
321d2b14 4187echo "configure:4188: checking for --enable-wxprintfv" >&5
1e6feb95
VZ
4188 no_cache=0
4189 # Check whether --enable-wxprintfv or --disable-wxprintfv was given.
4190if test "${enable_wxprintfv+set}" = set; then
4191 enableval="$enable_wxprintfv"
4192
4193 if test "$enableval" = yes; then
10f2d63a
VZ
4194 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=yes'
4195 else
4196 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=no'
4197 fi
698dcdb6 4198
10f2d63a 4199else
698dcdb6 4200
10f2d63a
VZ
4201 LINE=`grep "wxUSE_EXPERIMENTAL_PRINTF" ${wx_arg_cache_file}`
4202 if test "x$LINE" != x ; then
4203 eval "DEFAULT_$LINE"
4204 else
4205 no_cache=1
4206 fi
4207
4208 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF='$DEFAULT_wxUSE_EXPERIMENTAL_PRINTF
698dcdb6
VZ
4209
4210fi
10f2d63a
VZ
4211
4212
4213 eval "$ac_cv_use_wxprintfv"
4214 if test "$no_cache" != 1; then
4215 echo $ac_cv_use_wxprintfv >> ${wx_arg_cache_file}.tmp
4216 fi
4217
4218 if test "$wxUSE_EXPERIMENTAL_PRINTF" = yes; then
698dcdb6 4219 echo "$ac_t""yes" 1>&6
10f2d63a 4220 else
698dcdb6 4221 echo "$ac_t""no" 1>&6
10f2d63a 4222 fi
698dcdb6 4223
10f2d63a 4224
698dcdb6 4225 echo $ac_n "checking for --enable-std_iostreams""... $ac_c" 1>&6
321d2b14 4226echo "configure:4227: checking for --enable-std_iostreams" >&5
10f2d63a
VZ
4227 no_cache=0
4228 # Check whether --enable-std_iostreams or --disable-std_iostreams was given.
4229if test "${enable_std_iostreams+set}" = set; then
4230 enableval="$enable_std_iostreams"
698dcdb6 4231
10f2d63a
VZ
4232 if test "$enableval" = yes; then
4233 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes'
4234 else
4235 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no'
4236 fi
698dcdb6 4237
10f2d63a 4238else
698dcdb6 4239
10f2d63a
VZ
4240 LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}`
4241 if test "x$LINE" != x ; then
4242 eval "DEFAULT_$LINE"
4243 else
4244 no_cache=1
4245 fi
4246
4247 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM
698dcdb6
VZ
4248
4249fi
10f2d63a
VZ
4250
4251
4252 eval "$ac_cv_use_std_iostreams"
4253 if test "$no_cache" != 1; then
4254 echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp
4255 fi
4256
4257 if test "$wxUSE_STD_IOSTREAM" = yes; then
698dcdb6 4258 echo "$ac_t""yes" 1>&6
10f2d63a 4259 else
698dcdb6 4260 echo "$ac_t""no" 1>&6
10f2d63a 4261 fi
698dcdb6 4262
10f2d63a 4263
698dcdb6 4264 echo $ac_n "checking for --enable-filesystem""... $ac_c" 1>&6
321d2b14 4265echo "configure:4266: checking for --enable-filesystem" >&5
24528b0c
VS
4266 no_cache=0
4267 # Check whether --enable-filesystem or --disable-filesystem was given.
4268if test "${enable_filesystem+set}" = set; then
4269 enableval="$enable_filesystem"
698dcdb6 4270
24528b0c
VS
4271 if test "$enableval" = yes; then
4272 ac_cv_use_filesystem='wxUSE_FILESYSTEM=yes'
4273 else
4274 ac_cv_use_filesystem='wxUSE_FILESYSTEM=no'
4275 fi
698dcdb6 4276
24528b0c 4277else
698dcdb6 4278
24528b0c
VS
4279 LINE=`grep "wxUSE_FILESYSTEM" ${wx_arg_cache_file}`
4280 if test "x$LINE" != x ; then
4281 eval "DEFAULT_$LINE"
4282 else
4283 no_cache=1
4284 fi
4285
4286 ac_cv_use_filesystem='wxUSE_FILESYSTEM='$DEFAULT_wxUSE_FILESYSTEM
698dcdb6
VZ
4287
4288fi
24528b0c
VS
4289
4290
4291 eval "$ac_cv_use_filesystem"
4292 if test "$no_cache" != 1; then
4293 echo $ac_cv_use_filesystem >> ${wx_arg_cache_file}.tmp
4294 fi
4295
4296 if test "$wxUSE_FILESYSTEM" = yes; then
698dcdb6 4297 echo "$ac_t""yes" 1>&6
24528b0c 4298 else
698dcdb6 4299 echo "$ac_t""no" 1>&6
24528b0c 4300 fi
698dcdb6 4301
24528b0c 4302
698dcdb6 4303 echo $ac_n "checking for --enable-fs_inet""... $ac_c" 1>&6
321d2b14 4304echo "configure:4305: checking for --enable-fs_inet" >&5
10f2d63a
VZ
4305 no_cache=0
4306 # Check whether --enable-fs_inet or --disable-fs_inet was given.
4307if test "${enable_fs_inet+set}" = set; then
4308 enableval="$enable_fs_inet"
698dcdb6 4309
10f2d63a
VZ
4310 if test "$enableval" = yes; then
4311 ac_cv_use_fs_inet='wxUSE_FS_INET=yes'
4312 else
4313 ac_cv_use_fs_inet='wxUSE_FS_INET=no'
4314 fi
698dcdb6 4315
10f2d63a 4316else
698dcdb6 4317
10f2d63a
VZ
4318 LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}`
4319 if test "x$LINE" != x ; then
4320 eval "DEFAULT_$LINE"
4321 else
4322 no_cache=1
4323 fi
4324
4325 ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET
698dcdb6
VZ
4326
4327fi
10f2d63a
VZ
4328
4329
4330 eval "$ac_cv_use_fs_inet"
4331 if test "$no_cache" != 1; then
4332 echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp
4333 fi
4334
4335 if test "$wxUSE_FS_INET" = yes; then
698dcdb6 4336 echo "$ac_t""yes" 1>&6
10f2d63a 4337 else
698dcdb6 4338 echo "$ac_t""no" 1>&6
10f2d63a 4339 fi
698dcdb6 4340
10f2d63a 4341
698dcdb6 4342 echo $ac_n "checking for --enable-fs_zip""... $ac_c" 1>&6
321d2b14 4343echo "configure:4344: checking for --enable-fs_zip" >&5
10f2d63a
VZ
4344 no_cache=0
4345 # Check whether --enable-fs_zip or --disable-fs_zip was given.
4346if test "${enable_fs_zip+set}" = set; then
4347 enableval="$enable_fs_zip"
698dcdb6 4348
10f2d63a
VZ
4349 if test "$enableval" = yes; then
4350 ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes'
4351 else
4352 ac_cv_use_fs_zip='wxUSE_FS_ZIP=no'
4353 fi
698dcdb6 4354
10f2d63a 4355else
698dcdb6 4356
10f2d63a
VZ
4357 LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}`
4358 if test "x$LINE" != x ; then
4359 eval "DEFAULT_$LINE"
4360 else
4361 no_cache=1
4362 fi
4363
4364 ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP
698dcdb6
VZ
4365
4366fi
10f2d63a
VZ
4367
4368
4369 eval "$ac_cv_use_fs_zip"
4370 if test "$no_cache" != 1; then
4371 echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp
4372 fi
4373
4374 if test "$wxUSE_FS_ZIP" = yes; then
698dcdb6 4375 echo "$ac_t""yes" 1>&6
10f2d63a 4376 else
698dcdb6 4377 echo "$ac_t""no" 1>&6
10f2d63a 4378 fi
698dcdb6 4379
10f2d63a 4380
698dcdb6 4381 echo $ac_n "checking for --enable-zipstream""... $ac_c" 1>&6
321d2b14 4382echo "configure:4383: checking for --enable-zipstream" >&5
10f2d63a
VZ
4383 no_cache=0
4384 # Check whether --enable-zipstream or --disable-zipstream was given.
4385if test "${enable_zipstream+set}" = set; then
4386 enableval="$enable_zipstream"
698dcdb6 4387
10f2d63a
VZ
4388 if test "$enableval" = yes; then
4389 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes'
4390 else
4391 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no'
4392 fi
698dcdb6 4393
10f2d63a 4394else
698dcdb6 4395
10f2d63a
VZ
4396 LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}`
4397 if test "x$LINE" != x ; then
4398 eval "DEFAULT_$LINE"
4399 else
4400 no_cache=1
4401 fi
4402
4403 ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM
698dcdb6
VZ
4404
4405fi
10f2d63a
VZ
4406
4407
4408 eval "$ac_cv_use_zipstream"
4409 if test "$no_cache" != 1; then
4410 echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp
4411 fi
4412
4413 if test "$wxUSE_ZIPSTREAM" = yes; then
698dcdb6 4414 echo "$ac_t""yes" 1>&6
10f2d63a 4415 else
698dcdb6 4416 echo "$ac_t""no" 1>&6
10f2d63a 4417 fi
698dcdb6 4418
10f2d63a 4419
698dcdb6
VZ
4420
4421 echo $ac_n "checking for --enable-catch_segvs""... $ac_c" 1>&6
321d2b14 4422echo "configure:4423: checking for --enable-catch_segvs" >&5
eb4efbdc
VZ
4423 no_cache=0
4424 # Check whether --enable-catch_segvs or --disable-catch_segvs was given.
4425if test "${enable_catch_segvs+set}" = set; then
4426 enableval="$enable_catch_segvs"
698dcdb6 4427
eb4efbdc
VZ
4428 if test "$enableval" = yes; then
4429 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes'
4430 else
4431 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no'
4432 fi
698dcdb6 4433
eb4efbdc 4434else
698dcdb6 4435
eb4efbdc
VZ
4436 LINE=`grep "wxUSE_ON_FATAL_EXCEPTION" ${wx_arg_cache_file}`
4437 if test "x$LINE" != x ; then
4438 eval "DEFAULT_$LINE"
4439 else
4440 no_cache=1
4441 fi
4442
4443 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION='$DEFAULT_wxUSE_ON_FATAL_EXCEPTION
698dcdb6
VZ
4444
4445fi
eb4efbdc
VZ
4446
4447
4448 eval "$ac_cv_use_catch_segvs"
4449 if test "$no_cache" != 1; then
4450 echo $ac_cv_use_catch_segvs >> ${wx_arg_cache_file}.tmp
4451 fi
4452
4453 if test "$wxUSE_ON_FATAL_EXCEPTION" = yes; then
698dcdb6 4454 echo "$ac_t""yes" 1>&6
eb4efbdc 4455 else
698dcdb6 4456 echo "$ac_t""no" 1>&6
eb4efbdc 4457 fi
698dcdb6 4458
eb4efbdc 4459
698dcdb6 4460 echo $ac_n "checking for --enable-snglinst""... $ac_c" 1>&6
321d2b14 4461echo "configure:4462: checking for --enable-snglinst" >&5
4f3c5f06
VZ
4462 no_cache=0
4463 # Check whether --enable-snglinst or --disable-snglinst was given.
4464if test "${enable_snglinst+set}" = set; then
4465 enableval="$enable_snglinst"
698dcdb6 4466
4f3c5f06
VZ
4467 if test "$enableval" = yes; then
4468 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=yes'
4469 else
4470 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=no'
4471 fi
698dcdb6 4472
4f3c5f06 4473else
698dcdb6 4474
4f3c5f06
VZ
4475 LINE=`grep "wxUSE_SNGLINST_CHECKER" ${wx_arg_cache_file}`
4476 if test "x$LINE" != x ; then
4477 eval "DEFAULT_$LINE"
4478 else
4479 no_cache=1
4480 fi
4481
4482 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER='$DEFAULT_wxUSE_SNGLINST_CHECKER
698dcdb6
VZ
4483
4484fi
4f3c5f06
VZ
4485
4486
4487 eval "$ac_cv_use_snglinst"
4488 if test "$no_cache" != 1; then
4489 echo $ac_cv_use_snglinst >> ${wx_arg_cache_file}.tmp
4490 fi
4491
4492 if test "$wxUSE_SNGLINST_CHECKER" = yes; then
698dcdb6 4493 echo "$ac_t""yes" 1>&6
4f3c5f06 4494 else
698dcdb6 4495 echo "$ac_t""no" 1>&6
4f3c5f06 4496 fi
698dcdb6
VZ
4497
4498
eb4efbdc 4499
1e6feb95 4500 echo $ac_n "checking for --enable-mimetype""... $ac_c" 1>&6
321d2b14 4501echo "configure:4502: checking for --enable-mimetype" >&5
1e6feb95
VZ
4502 no_cache=0
4503 # Check whether --enable-mimetype or --disable-mimetype was given.
4504if test "${enable_mimetype+set}" = set; then
4505 enableval="$enable_mimetype"
4506
4507 if test "$enableval" = yes; then
4508 ac_cv_use_mimetype='wxUSE_MIMETYPE=yes'
4509 else
4510 ac_cv_use_mimetype='wxUSE_MIMETYPE=no'
4511 fi
4512
4513else
4514
4515 LINE=`grep "wxUSE_MIMETYPE" ${wx_arg_cache_file}`
4516 if test "x$LINE" != x ; then
4517 eval "DEFAULT_$LINE"
4518 else
4519 no_cache=1
4520 fi
4521
4522 ac_cv_use_mimetype='wxUSE_MIMETYPE='$DEFAULT_wxUSE_MIMETYPE
4523
4524fi
4525
4526
4527 eval "$ac_cv_use_mimetype"
4528 if test "$no_cache" != 1; then
4529 echo $ac_cv_use_mimetype >> ${wx_arg_cache_file}.tmp
4530 fi
4531
4532 if test "$wxUSE_MIMETYPE" = yes; then
4533 echo "$ac_t""yes" 1>&6
4534 else
4535 echo "$ac_t""no" 1>&6
4536 fi
4537
4538
3e44f09d 4539 echo $ac_n "checking for --enable-system_options""... $ac_c" 1>&6
321d2b14 4540echo "configure:4541: checking for --enable-system_options" >&5
3e44f09d
VZ
4541 no_cache=0
4542 # Check whether --enable-system_options or --disable-system_options was given.
4543if test "${enable_system_options+set}" = set; then
4544 enableval="$enable_system_options"
4545
4546 if test "$enableval" = yes; then
4547 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=yes'
4548 else
4549 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=no'
4550 fi
4551
4552else
4553
4554 LINE=`grep "wxUSE_SYSTEM_OPTIONS" ${wx_arg_cache_file}`
4555 if test "x$LINE" != x ; then
4556 eval "DEFAULT_$LINE"
4557 else
4558 no_cache=1
4559 fi
4560
4561 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS='$DEFAULT_wxUSE_SYSTEM_OPTIONS
4562
4563fi
4564
4565
4566 eval "$ac_cv_use_system_options"
4567 if test "$no_cache" != 1; then
4568 echo $ac_cv_use_system_options >> ${wx_arg_cache_file}.tmp
4569 fi
4570
4571 if test "$wxUSE_SYSTEM_OPTIONS" = yes; then
4572 echo "$ac_t""yes" 1>&6
4573 else
4574 echo "$ac_t""no" 1>&6
4575 fi
4576
4577
1e6feb95 4578
4cdb0ab0 4579 echo $ac_n "checking for --enable-url""... $ac_c" 1>&6
321d2b14 4580echo "configure:4581: checking for --enable-url" >&5
4cdb0ab0
VS
4581 no_cache=0
4582 # Check whether --enable-url or --disable-url was given.
4583if test "${enable_url+set}" = set; then
4584 enableval="$enable_url"
4585
4586 if test "$enableval" = yes; then
4587 ac_cv_use_url='wxUSE_URL=yes'
4588 else
4589 ac_cv_use_url='wxUSE_URL=no'
4590 fi
4591
4592else
4593
4594 LINE=`grep "wxUSE_URL" ${wx_arg_cache_file}`
4595 if test "x$LINE" != x ; then
4596 eval "DEFAULT_$LINE"
4597 else
4598 no_cache=1
4599 fi
4600
4601 ac_cv_use_url='wxUSE_URL='$DEFAULT_wxUSE_URL
4602
4603fi
4604
4605
4606 eval "$ac_cv_use_url"
4607 if test "$no_cache" != 1; then
4608 echo $ac_cv_use_url >> ${wx_arg_cache_file}.tmp
4609 fi
4610
4611 if test "$wxUSE_URL" = yes; then
4612 echo "$ac_t""yes" 1>&6
4613 else
4614 echo "$ac_t""no" 1>&6
4615 fi
4616
4617
4618 echo $ac_n "checking for --enable-protocol""... $ac_c" 1>&6
321d2b14 4619echo "configure:4620: checking for --enable-protocol" >&5
4cdb0ab0
VS
4620 no_cache=0
4621 # Check whether --enable-protocol or --disable-protocol was given.
4622if test "${enable_protocol+set}" = set; then
4623 enableval="$enable_protocol"
4624
4625 if test "$enableval" = yes; then
4626 ac_cv_use_protocol='wxUSE_PROTOCOL=yes'
4627 else
4628 ac_cv_use_protocol='wxUSE_PROTOCOL=no'
4629 fi
4630
4631else
4632
4633 LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
4634 if test "x$LINE" != x ; then
4635 eval "DEFAULT_$LINE"
4636 else
4637 no_cache=1
4638 fi
4639
4640 ac_cv_use_protocol='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
4641
4642fi
4643
4644
4645 eval "$ac_cv_use_protocol"
4646 if test "$no_cache" != 1; then
4647 echo $ac_cv_use_protocol >> ${wx_arg_cache_file}.tmp
4648 fi
4649
4650 if test "$wxUSE_PROTOCOL" = yes; then
4651 echo "$ac_t""yes" 1>&6
4652 else
4653 echo "$ac_t""no" 1>&6
4654 fi
4655
4656
4657 echo $ac_n "checking for --enable-protocol_http""... $ac_c" 1>&6
321d2b14 4658echo "configure:4659: checking for --enable-protocol_http" >&5
4cdb0ab0
VS
4659 no_cache=0
4660 # Check whether --enable-protocol_http or --disable-protocol_http was given.
4661if test "${enable_protocol_http+set}" = set; then
4662 enableval="$enable_protocol_http"
4663
4664 if test "$enableval" = yes; then
4665 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=yes'
4666 else
4667 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=no'
4668 fi
4669
4670else
4671
4672 LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
4673 if test "x$LINE" != x ; then
4674 eval "DEFAULT_$LINE"
4675 else
4676 no_cache=1
4677 fi
4678
4679 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
4680
4681fi
4682
4683
4684 eval "$ac_cv_use_protocol_http"
4685 if test "$no_cache" != 1; then
4686 echo $ac_cv_use_protocol_http >> ${wx_arg_cache_file}.tmp
4687 fi
4688
4689 if test "$wxUSE_PROTOCOL_HTTP" = yes; then
4690 echo "$ac_t""yes" 1>&6
4691 else
4692 echo "$ac_t""no" 1>&6
4693 fi
4694
4695
4696 echo $ac_n "checking for --enable-protocol_ftp""... $ac_c" 1>&6
321d2b14 4697echo "configure:4698: checking for --enable-protocol_ftp" >&5
4cdb0ab0
VS
4698 no_cache=0
4699 # Check whether --enable-protocol_ftp or --disable-protocol_ftp was given.
4700if test "${enable_protocol_ftp+set}" = set; then
4701 enableval="$enable_protocol_ftp"
4702
4703 if test "$enableval" = yes; then
4704 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=yes'
4705 else
4706 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=no'
4707 fi
4708
4709else
4710
4711 LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
4712 if test "x$LINE" != x ; then
4713 eval "DEFAULT_$LINE"
4714 else
4715 no_cache=1
4716 fi
4717
4718 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
4719
4720fi
4721
4722
4723 eval "$ac_cv_use_protocol_ftp"
4724 if test "$no_cache" != 1; then
4725 echo $ac_cv_use_protocol_ftp >> ${wx_arg_cache_file}.tmp
4726 fi
4727
4728 if test "$wxUSE_PROTOCOL_FTP" = yes; then
4729 echo "$ac_t""yes" 1>&6
4730 else
4731 echo "$ac_t""no" 1>&6
4732 fi
4733
4734
4735 echo $ac_n "checking for --enable-protocol_file""... $ac_c" 1>&6
321d2b14 4736echo "configure:4737: checking for --enable-protocol_file" >&5
4cdb0ab0
VS
4737 no_cache=0
4738 # Check whether --enable-protocol_file or --disable-protocol_file was given.
4739if test "${enable_protocol_file+set}" = set; then
4740 enableval="$enable_protocol_file"
4741
4742 if test "$enableval" = yes; then
4743 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=yes'
4744 else
4745 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=no'
4746 fi
4747
4748else
4749
4750 LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
4751 if test "x$LINE" != x ; then
4752 eval "DEFAULT_$LINE"
4753 else
4754 no_cache=1
4755 fi
4756
4757 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
4758
4759fi
4760
4761
4762 eval "$ac_cv_use_protocol_file"
4763 if test "$no_cache" != 1; then
4764 echo $ac_cv_use_protocol_file >> ${wx_arg_cache_file}.tmp
4765 fi
4766
4767 if test "$wxUSE_PROTOCOL_FILE" = yes; then
4768 echo "$ac_t""yes" 1>&6
4769 else
4770 echo "$ac_t""no" 1>&6
4771 fi
4772
4773
4774
4775
698dcdb6
VZ
4776
4777 echo $ac_n "checking for --enable-threads""... $ac_c" 1>&6
321d2b14 4778echo "configure:4779: checking for --enable-threads" >&5
10f2d63a
VZ
4779 no_cache=0
4780 # Check whether --enable-threads or --disable-threads was given.
4781if test "${enable_threads+set}" = set; then
4782 enableval="$enable_threads"
698dcdb6 4783
10f2d63a
VZ
4784 if test "$enableval" = yes; then
4785 ac_cv_use_threads='wxUSE_THREADS=yes'
4786 else
4787 ac_cv_use_threads='wxUSE_THREADS=no'
4788 fi
698dcdb6 4789
10f2d63a 4790else
698dcdb6 4791
10f2d63a
VZ
4792 LINE=`grep "wxUSE_THREADS" ${wx_arg_cache_file}`
4793 if test "x$LINE" != x ; then
4794 eval "DEFAULT_$LINE"
4795 else
4796 no_cache=1
4797 fi
4798
4799 ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS
698dcdb6
VZ
4800
4801fi
10f2d63a
VZ
4802
4803
4804 eval "$ac_cv_use_threads"
4805 if test "$no_cache" != 1; then
4806 echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp
4807 fi
4808
4809 if test "$wxUSE_THREADS" = yes; then
698dcdb6 4810 echo "$ac_t""yes" 1>&6
10f2d63a 4811 else
698dcdb6 4812 echo "$ac_t""no" 1>&6
10f2d63a 4813 fi
698dcdb6 4814
10f2d63a 4815
b12915c1
VZ
4816if test "$wxUSE_GUI" = "yes"; then
4817
698dcdb6
VZ
4818
4819
4820 echo $ac_n "checking for --enable-docview""... $ac_c" 1>&6
321d2b14 4821echo "configure:4822: checking for --enable-docview" >&5
10f2d63a
VZ
4822 no_cache=0
4823 # Check whether --enable-docview or --disable-docview was given.
4824if test "${enable_docview+set}" = set; then
4825 enableval="$enable_docview"
698dcdb6 4826
10f2d63a
VZ
4827 if test "$enableval" = yes; then
4828 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes'
4829 else
4830 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no'
4831 fi
698dcdb6 4832
10f2d63a 4833else
698dcdb6 4834
10f2d63a
VZ
4835 LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}`
4836 if test "x$LINE" != x ; then
4837 eval "DEFAULT_$LINE"
4838 else
4839 no_cache=1
4840 fi
4841
4842 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE
698dcdb6
VZ
4843
4844fi
10f2d63a
VZ
4845
4846
4847 eval "$ac_cv_use_docview"
4848 if test "$no_cache" != 1; then
4849 echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp
4850 fi
4851
4852 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then
698dcdb6 4853 echo "$ac_t""yes" 1>&6
10f2d63a 4854 else
698dcdb6 4855 echo "$ac_t""no" 1>&6
10f2d63a 4856 fi
698dcdb6 4857
10f2d63a 4858
698dcdb6 4859 echo $ac_n "checking for --enable-help""... $ac_c" 1>&6
321d2b14 4860echo "configure:4861: checking for --enable-help" >&5
10f2d63a
VZ
4861 no_cache=0
4862 # Check whether --enable-help or --disable-help was given.
4863if test "${enable_help+set}" = set; then
4864 enableval="$enable_help"
698dcdb6 4865
10f2d63a
VZ
4866 if test "$enableval" = yes; then
4867 ac_cv_use_help='wxUSE_HELP=yes'
4868 else
4869 ac_cv_use_help='wxUSE_HELP=no'
4870 fi
698dcdb6 4871
10f2d63a 4872else
698dcdb6 4873
10f2d63a
VZ
4874 LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}`
4875 if test "x$LINE" != x ; then
4876 eval "DEFAULT_$LINE"
4877 else
4878 no_cache=1
4879 fi
4880
4881 ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP
698dcdb6
VZ
4882
4883fi
10f2d63a
VZ
4884
4885
4886 eval "$ac_cv_use_help"
4887 if test "$no_cache" != 1; then
4888 echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp
4889 fi
4890
4891 if test "$wxUSE_HELP" = yes; then
698dcdb6 4892 echo "$ac_t""yes" 1>&6
10f2d63a 4893 else
698dcdb6 4894 echo "$ac_t""no" 1>&6
10f2d63a 4895 fi
698dcdb6 4896
10f2d63a 4897
29fd3c0c 4898 echo $ac_n "checking for --enable-mshtmlhelp""... $ac_c" 1>&6
321d2b14 4899echo "configure:4900: checking for --enable-mshtmlhelp" >&5
29fd3c0c
VS
4900 no_cache=0
4901 # Check whether --enable-mshtmlhelp or --disable-mshtmlhelp was given.
4902if test "${enable_mshtmlhelp+set}" = set; then
4903 enableval="$enable_mshtmlhelp"
4904
4905 if test "$enableval" = yes; then
4906 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=yes'
4907 else
4908 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=no'
4909 fi
4910
4911else
4912
4913 LINE=`grep "wxUSE_MS_HTML_HELP" ${wx_arg_cache_file}`
4914 if test "x$LINE" != x ; then
4915 eval "DEFAULT_$LINE"
4916 else
4917 no_cache=1
4918 fi
4919
4920 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP='$DEFAULT_wxUSE_MS_HTML_HELP
4921
4922fi
4923
4924
4925 eval "$ac_cv_use_mshtmlhelp"
4926 if test "$no_cache" != 1; then
4927 echo $ac_cv_use_mshtmlhelp >> ${wx_arg_cache_file}.tmp
4928 fi
4929
4930 if test "$wxUSE_MS_HTML_HELP" = yes; then
4931 echo "$ac_t""yes" 1>&6
4932 else
4933 echo "$ac_t""no" 1>&6
4934 fi
4935
4936
3379ed37 4937 echo $ac_n "checking for --enable-html""... $ac_c" 1>&6
321d2b14 4938echo "configure:4939: checking for --enable-html" >&5
3379ed37
VZ
4939 no_cache=0
4940 # Check whether --enable-html or --disable-html was given.
4941if test "${enable_html+set}" = set; then
4942 enableval="$enable_html"
4943
4944 if test "$enableval" = yes; then
4945 ac_cv_use_html='wxUSE_HTML=yes'
4946 else
4947 ac_cv_use_html='wxUSE_HTML=no'
4948 fi
4949
4950else
4951
4952 LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}`
4953 if test "x$LINE" != x ; then
4954 eval "DEFAULT_$LINE"
4955 else
4956 no_cache=1
4957 fi
4958
4959 ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML
4960
4961fi
4962
4963
4964 eval "$ac_cv_use_html"
4965 if test "$no_cache" != 1; then
4966 echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp
4967 fi
4968
4969 if test "$wxUSE_HTML" = yes; then
4970 echo "$ac_t""yes" 1>&6
4971 else
4972 echo "$ac_t""no" 1>&6
4973 fi
4974
4975
4976 echo $ac_n "checking for --enable-htmlhelp""... $ac_c" 1>&6
321d2b14 4977echo "configure:4978: checking for --enable-htmlhelp" >&5
3379ed37
VZ
4978 no_cache=0
4979 # Check whether --enable-htmlhelp or --disable-htmlhelp was given.
4980if test "${enable_htmlhelp+set}" = set; then
4981 enableval="$enable_htmlhelp"
4982
4983 if test "$enableval" = yes; then
4984 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=yes'
4985 else
4986 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=no'
4987 fi
4988
4989else
4990
4991 LINE=`grep "wxUSE_WXHTML_HELP" ${wx_arg_cache_file}`
4992 if test "x$LINE" != x ; then
4993 eval "DEFAULT_$LINE"
4994 else
4995 no_cache=1
4996 fi
4997
4998 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP='$DEFAULT_wxUSE_WXHTML_HELP
4999
5000fi
5001
5002
5003 eval "$ac_cv_use_htmlhelp"
5004 if test "$no_cache" != 1; then
5005 echo $ac_cv_use_htmlhelp >> ${wx_arg_cache_file}.tmp
5006 fi
5007
5008 if test "$wxUSE_WXHTML_HELP" = yes; then
5009 echo "$ac_t""yes" 1>&6
5010 else
5011 echo "$ac_t""no" 1>&6
5012 fi
5013
5014
698dcdb6 5015 echo $ac_n "checking for --enable-constraints""... $ac_c" 1>&6
321d2b14 5016echo "configure:5017: checking for --enable-constraints" >&5
10f2d63a
VZ
5017 no_cache=0
5018 # Check whether --enable-constraints or --disable-constraints was given.
5019if test "${enable_constraints+set}" = set; then
5020 enableval="$enable_constraints"
698dcdb6 5021
10f2d63a
VZ
5022 if test "$enableval" = yes; then
5023 ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes'
5024 else
5025 ac_cv_use_constraints='wxUSE_CONSTRAINTS=no'
5026 fi
698dcdb6 5027
10f2d63a 5028else
698dcdb6 5029
10f2d63a
VZ
5030 LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}`
5031 if test "x$LINE" != x ; then
5032 eval "DEFAULT_$LINE"
5033 else
5034 no_cache=1
5035 fi
5036
5037 ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS
698dcdb6
VZ
5038
5039fi
10f2d63a
VZ
5040
5041
5042 eval "$ac_cv_use_constraints"
5043 if test "$no_cache" != 1; then
5044 echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp
5045 fi
5046
5047 if test "$wxUSE_CONSTRAINTS" = yes; then
698dcdb6 5048 echo "$ac_t""yes" 1>&6
10f2d63a 5049 else
698dcdb6 5050 echo "$ac_t""no" 1>&6
10f2d63a 5051 fi
698dcdb6 5052
10f2d63a 5053
698dcdb6 5054 echo $ac_n "checking for --enable-printarch""... $ac_c" 1>&6
321d2b14 5055echo "configure:5056: checking for --enable-printarch" >&5
10f2d63a
VZ
5056 no_cache=0
5057 # Check whether --enable-printarch or --disable-printarch was given.
5058if test "${enable_printarch+set}" = set; then
5059 enableval="$enable_printarch"
698dcdb6 5060
10f2d63a
VZ
5061 if test "$enableval" = yes; then
5062 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes'
5063 else
5064 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no'
5065 fi
698dcdb6 5066
10f2d63a 5067else
698dcdb6 5068
10f2d63a
VZ
5069 LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}`
5070 if test "x$LINE" != x ; then
5071 eval "DEFAULT_$LINE"
5072 else
5073 no_cache=1
5074 fi
5075
5076 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE
698dcdb6
VZ
5077
5078fi
10f2d63a
VZ
5079
5080
5081 eval "$ac_cv_use_printarch"
5082 if test "$no_cache" != 1; then
5083 echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp
5084 fi
5085
5086 if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then
698dcdb6 5087 echo "$ac_t""yes" 1>&6
10f2d63a 5088 else
698dcdb6 5089 echo "$ac_t""no" 1>&6
10f2d63a 5090 fi
698dcdb6 5091
10f2d63a 5092
698dcdb6 5093 echo $ac_n "checking for --enable-mdi""... $ac_c" 1>&6
321d2b14 5094echo "configure:5095: checking for --enable-mdi" >&5
10f2d63a
VZ
5095 no_cache=0
5096 # Check whether --enable-mdi or --disable-mdi was given.
5097if test "${enable_mdi+set}" = set; then
5098 enableval="$enable_mdi"
698dcdb6 5099
10f2d63a
VZ
5100 if test "$enableval" = yes; then
5101 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=yes'
5102 else
5103 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=no'
5104 fi
698dcdb6 5105
10f2d63a 5106else
698dcdb6 5107
10f2d63a
VZ
5108 LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}`
5109 if test "x$LINE" != x ; then
5110 eval "DEFAULT_$LINE"
5111 else
5112 no_cache=1
5113 fi
5114
5115 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE
698dcdb6
VZ
5116
5117fi
10f2d63a
VZ
5118
5119
5120 eval "$ac_cv_use_mdi"
5121 if test "$no_cache" != 1; then
5122 echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp
5123 fi
5124
5125 if test "$wxUSE_MDI_ARCHITECTURE" = yes; then
698dcdb6 5126 echo "$ac_t""yes" 1>&6
10f2d63a 5127 else
698dcdb6 5128 echo "$ac_t""no" 1>&6
10f2d63a 5129 fi
698dcdb6
VZ
5130
5131
1e6feb95 5132 echo $ac_n "checking for --enable-loggui""... $ac_c" 1>&6
321d2b14 5133echo "configure:5134: checking for --enable-loggui" >&5
1e6feb95
VZ
5134 no_cache=0
5135 # Check whether --enable-loggui or --disable-loggui was given.
5136if test "${enable_loggui+set}" = set; then
5137 enableval="$enable_loggui"
5138
5139 if test "$enableval" = yes; then
5140 ac_cv_use_loggui='wxUSE_LOGGUI=yes'
5141 else
5142 ac_cv_use_loggui='wxUSE_LOGGUI=no'
5143 fi
5144
5145else
5146
5147 LINE=`grep "wxUSE_LOGGUI" ${wx_arg_cache_file}`
5148 if test "x$LINE" != x ; then
5149 eval "DEFAULT_$LINE"
5150 else
5151 no_cache=1
5152 fi
5153
5154 ac_cv_use_loggui='wxUSE_LOGGUI='$DEFAULT_wxUSE_LOGGUI
5155
5156fi
5157
5158
5159 eval "$ac_cv_use_loggui"
5160 if test "$no_cache" != 1; then
5161 echo $ac_cv_use_loggui >> ${wx_arg_cache_file}.tmp
5162 fi
5163
5164 if test "$wxUSE_LOGGUI" = yes; then
5165 echo "$ac_t""yes" 1>&6
5166 else
5167 echo "$ac_t""no" 1>&6
5168 fi
5169
5170
5171 echo $ac_n "checking for --enable-logwin""... $ac_c" 1>&6
321d2b14 5172echo "configure:5173: checking for --enable-logwin" >&5
1e6feb95
VZ
5173 no_cache=0
5174 # Check whether --enable-logwin or --disable-logwin was given.
5175if test "${enable_logwin+set}" = set; then
5176 enableval="$enable_logwin"
5177
5178 if test "$enableval" = yes; then
5179 ac_cv_use_logwin='wxUSE_LOGWINDOW=yes'
5180 else
5181 ac_cv_use_logwin='wxUSE_LOGWINDOW=no'
5182 fi
5183
5184else
5185
5186 LINE=`grep "wxUSE_LOGWINDOW" ${wx_arg_cache_file}`
5187 if test "x$LINE" != x ; then
5188 eval "DEFAULT_$LINE"
5189 else
5190 no_cache=1
5191 fi
5192
5193 ac_cv_use_logwin='wxUSE_LOGWINDOW='$DEFAULT_wxUSE_LOGWINDOW
5194
5195fi
5196
5197
5198 eval "$ac_cv_use_logwin"
5199 if test "$no_cache" != 1; then
5200 echo $ac_cv_use_logwin >> ${wx_arg_cache_file}.tmp
5201 fi
5202
5203 if test "$wxUSE_LOGWINDOW" = yes; then
5204 echo "$ac_t""yes" 1>&6
5205 else
5206 echo "$ac_t""no" 1>&6
5207 fi
5208
5209
69d27ff7 5210 echo $ac_n "checking for --enable-logdialog""... $ac_c" 1>&6
321d2b14 5211echo "configure:5212: checking for --enable-logdialog" >&5
69d27ff7
MB
5212 no_cache=0
5213 # Check whether --enable-logdialog or --disable-logdialog was given.
5214if test "${enable_logdialog+set}" = set; then
5215 enableval="$enable_logdialog"
5216
5217 if test "$enableval" = yes; then
5218 ac_cv_use_logdialog='wxUSE_LOGDIALOG=yes'
5219 else
5220 ac_cv_use_logdialog='wxUSE_LOGDIALOG=no'
5221 fi
5222
5223else
5224
5225 LINE=`grep "wxUSE_LOGDIALOG" ${wx_arg_cache_file}`
5226 if test "x$LINE" != x ; then
5227 eval "DEFAULT_$LINE"
5228 else
5229 no_cache=1
5230 fi
5231
5232 ac_cv_use_logdialog='wxUSE_LOGDIALOG='$DEFAULT_wxUSE_LOGDIALOG
5233
5234fi
5235
5236
5237 eval "$ac_cv_use_logdialog"
5238 if test "$no_cache" != 1; then
5239 echo $ac_cv_use_logdialog >> ${wx_arg_cache_file}.tmp
5240 fi
5241
5242 if test "$wxUSE_LOGDIALOG" = yes; then
5243 echo "$ac_t""yes" 1>&6
5244 else
5245 echo "$ac_t""no" 1>&6
5246 fi
5247
5248
10f2d63a 5249
698dcdb6 5250 echo $ac_n "checking for --enable-postscript""... $ac_c" 1>&6
321d2b14 5251echo "configure:5252: checking for --enable-postscript" >&5
10f2d63a
VZ
5252 no_cache=0
5253 # Check whether --enable-postscript or --disable-postscript was given.
5254if test "${enable_postscript+set}" = set; then
5255 enableval="$enable_postscript"
698dcdb6 5256
10f2d63a
VZ
5257 if test "$enableval" = yes; then
5258 ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes'
5259 else
5260 ac_cv_use_postscript='wxUSE_POSTSCRIPT=no'
5261 fi
698dcdb6 5262
10f2d63a 5263else
698dcdb6 5264
10f2d63a
VZ
5265 LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}`
5266 if test "x$LINE" != x ; then
5267 eval "DEFAULT_$LINE"
5268 else
5269 no_cache=1
5270 fi
5271
5272 ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT
698dcdb6
VZ
5273
5274fi
10f2d63a
VZ
5275
5276
5277 eval "$ac_cv_use_postscript"
5278 if test "$no_cache" != 1; then
5279 echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp
5280 fi
5281
5282 if test "$wxUSE_POSTSCRIPT" = yes; then
698dcdb6 5283 echo "$ac_t""yes" 1>&6
10f2d63a 5284 else
698dcdb6 5285 echo "$ac_t""no" 1>&6
10f2d63a 5286 fi
698dcdb6
VZ
5287
5288
5289
10f2d63a 5290
1e6feb95 5291
698dcdb6 5292 echo $ac_n "checking for --enable-prologio""... $ac_c" 1>&6
321d2b14 5293echo "configure:5294: checking for --enable-prologio" >&5
10f2d63a
VZ
5294 no_cache=0
5295 # Check whether --enable-prologio or --disable-prologio was given.
5296if test "${enable_prologio+set}" = set; then
5297 enableval="$enable_prologio"
698dcdb6 5298
10f2d63a
VZ
5299 if test "$enableval" = yes; then
5300 ac_cv_use_prologio='wxUSE_PROLOGIO=yes'
5301 else
5302 ac_cv_use_prologio='wxUSE_PROLOGIO=no'
5303 fi
698dcdb6 5304
10f2d63a 5305else
698dcdb6 5306
10f2d63a
VZ
5307 LINE=`grep "wxUSE_PROLOGIO" ${wx_arg_cache_file}`
5308 if test "x$LINE" != x ; then
5309 eval "DEFAULT_$LINE"
5310 else
5311 no_cache=1
5312 fi
5313
5314 ac_cv_use_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO
698dcdb6
VZ
5315
5316fi
10f2d63a
VZ
5317
5318
5319 eval "$ac_cv_use_prologio"
5320 if test "$no_cache" != 1; then
5321 echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp
5322 fi
5323
5324 if test "$wxUSE_PROLOGIO" = yes; then
698dcdb6 5325 echo "$ac_t""yes" 1>&6
10f2d63a 5326 else
698dcdb6 5327 echo "$ac_t""no" 1>&6
10f2d63a 5328 fi
698dcdb6 5329
10f2d63a 5330
698dcdb6 5331 echo $ac_n "checking for --enable-resources""... $ac_c" 1>&6
321d2b14 5332echo "configure:5333: checking for --enable-resources" >&5
10f2d63a
VZ
5333 no_cache=0
5334 # Check whether --enable-resources or --disable-resources was given.
5335if test "${enable_resources+set}" = set; then
5336 enableval="$enable_resources"
698dcdb6 5337
10f2d63a
VZ
5338 if test "$enableval" = yes; then
5339 ac_cv_use_resources='wxUSE_RESOURCES=yes'
5340 else
5341 ac_cv_use_resources='wxUSE_RESOURCES=no'
5342 fi
698dcdb6 5343
10f2d63a 5344else
698dcdb6 5345
10f2d63a
VZ
5346 LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}`
5347 if test "x$LINE" != x ; then
5348 eval "DEFAULT_$LINE"
5349 else
5350 no_cache=1
5351 fi
5352
5353 ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES
698dcdb6
VZ
5354
5355fi
10f2d63a
VZ
5356
5357
5358 eval "$ac_cv_use_resources"
5359 if test "$no_cache" != 1; then
5360 echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp
5361 fi
5362
5363 if test "$wxUSE_RESOURCES" = yes; then
698dcdb6 5364 echo "$ac_t""yes" 1>&6
10f2d63a 5365 else
698dcdb6 5366 echo "$ac_t""no" 1>&6
10f2d63a 5367 fi
698dcdb6 5368
10f2d63a 5369
698dcdb6
VZ
5370
5371 echo $ac_n "checking for --enable-xresources""... $ac_c" 1>&6
321d2b14 5372echo "configure:5373: checking for --enable-xresources" >&5
10f2d63a
VZ
5373 no_cache=0
5374 # Check whether --enable-xresources or --disable-xresources was given.
5375if test "${enable_xresources+set}" = set; then
5376 enableval="$enable_xresources"
698dcdb6 5377
10f2d63a
VZ
5378 if test "$enableval" = yes; then
5379 ac_cv_use_xresources='wxUSE_X_RESOURCES=yes'
5380 else
5381 ac_cv_use_xresources='wxUSE_X_RESOURCES=no'
5382 fi
698dcdb6 5383
10f2d63a 5384else
698dcdb6 5385
10f2d63a
VZ
5386 LINE=`grep "wxUSE_X_RESOURCES" ${wx_arg_cache_file}`
5387 if test "x$LINE" != x ; then
5388 eval "DEFAULT_$LINE"
5389 else
5390 no_cache=1
5391 fi
5392
5393 ac_cv_use_xresources='wxUSE_X_RESOURCES='$DEFAULT_wxUSE_X_RESOURCES
698dcdb6
VZ
5394
5395fi
10f2d63a
VZ
5396
5397
5398 eval "$ac_cv_use_xresources"
5399 if test "$no_cache" != 1; then
5400 echo $ac_cv_use_xresources >> ${wx_arg_cache_file}.tmp
5401 fi
5402
5403 if test "$wxUSE_X_RESOURCES" = yes; then
698dcdb6 5404 echo "$ac_t""yes" 1>&6
10f2d63a 5405 else
698dcdb6 5406 echo "$ac_t""no" 1>&6
10f2d63a 5407 fi
698dcdb6
VZ
5408
5409
10f2d63a 5410
698dcdb6
VZ
5411
5412 echo $ac_n "checking for --enable-clipboard""... $ac_c" 1>&6
321d2b14 5413echo "configure:5414: checking for --enable-clipboard" >&5
10f2d63a
VZ
5414 no_cache=0
5415 # Check whether --enable-clipboard or --disable-clipboard was given.
5416if test "${enable_clipboard+set}" = set; then
5417 enableval="$enable_clipboard"
698dcdb6 5418
10f2d63a
VZ
5419 if test "$enableval" = yes; then
5420 ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes'
5421 else
5422 ac_cv_use_clipboard='wxUSE_CLIPBOARD=no'
5423 fi
698dcdb6 5424
10f2d63a 5425else
698dcdb6 5426
10f2d63a
VZ
5427 LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}`
5428 if test "x$LINE" != x ; then
5429 eval "DEFAULT_$LINE"
5430 else
5431 no_cache=1
5432 fi
5433
5434 ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD
698dcdb6
VZ
5435
5436fi
10f2d63a
VZ
5437
5438
5439 eval "$ac_cv_use_clipboard"
5440 if test "$no_cache" != 1; then
5441 echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp
5442 fi
5443
5444 if test "$wxUSE_CLIPBOARD" = yes; then
698dcdb6 5445 echo "$ac_t""yes" 1>&6
10f2d63a 5446 else
698dcdb6 5447 echo "$ac_t""no" 1>&6
10f2d63a 5448 fi
698dcdb6 5449
10f2d63a 5450
698dcdb6 5451 echo $ac_n "checking for --enable-dnd""... $ac_c" 1>&6
321d2b14 5452echo "configure:5453: checking for --enable-dnd" >&5
10f2d63a
VZ
5453 no_cache=0
5454 # Check whether --enable-dnd or --disable-dnd was given.
5455if test "${enable_dnd+set}" = set; then
5456 enableval="$enable_dnd"
698dcdb6 5457
10f2d63a
VZ
5458 if test "$enableval" = yes; then
5459 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes'
5460 else
5461 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no'
5462 fi
698dcdb6 5463
10f2d63a 5464else
698dcdb6 5465
10f2d63a
VZ
5466 LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}`
5467 if test "x$LINE" != x ; then
5468 eval "DEFAULT_$LINE"
5469 else
5470 no_cache=1
5471 fi
5472
5473 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP
698dcdb6
VZ
5474
5475fi
10f2d63a
VZ
5476
5477
5478 eval "$ac_cv_use_dnd"
5479 if test "$no_cache" != 1; then
5480 echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp
5481 fi
5482
5483 if test "$wxUSE_DRAG_AND_DROP" = yes; then
698dcdb6 5484 echo "$ac_t""yes" 1>&6
10f2d63a 5485 else
698dcdb6 5486 echo "$ac_t""no" 1>&6
10f2d63a 5487 fi
698dcdb6 5488
10f2d63a 5489
698dcdb6 5490 echo $ac_n "checking for --enable-metafile""... $ac_c" 1>&6
321d2b14 5491echo "configure:5492: checking for --enable-metafile" >&5
b64f0a5f
RL
5492 no_cache=0
5493 # Check whether --enable-metafile or --disable-metafile was given.
5494if test "${enable_metafile+set}" = set; then
5495 enableval="$enable_metafile"
698dcdb6 5496
b64f0a5f
RL
5497 if test "$enableval" = yes; then
5498 ac_cv_use_metafile='wxUSE_METAFILE=yes'
5499 else
5500 ac_cv_use_metafile='wxUSE_METAFILE=no'
5501 fi
698dcdb6 5502
b64f0a5f 5503else
698dcdb6 5504
b64f0a5f
RL
5505 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
5506 if test "x$LINE" != x ; then
5507 eval "DEFAULT_$LINE"
5508 else
5509 no_cache=1
5510 fi
5511
5512 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
698dcdb6
VZ
5513
5514fi
b64f0a5f
RL
5515
5516
5517 eval "$ac_cv_use_metafile"
5518 if test "$no_cache" != 1; then
5519 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
5520 fi
5521
5522 if test "$wxUSE_METAFILE" = yes; then
698dcdb6 5523 echo "$ac_t""yes" 1>&6
b64f0a5f 5524 else
698dcdb6 5525 echo "$ac_t""no" 1>&6
b64f0a5f 5526 fi
698dcdb6
VZ
5527
5528
10f2d63a 5529
24176f2c 5530 echo $ac_n "checking for --enable-treelayout""... $ac_c" 1>&6
321d2b14 5531echo "configure:5532: checking for --enable-treelayout" >&5
10f2d63a 5532 no_cache=0
24176f2c
GD
5533 # Check whether --enable-treelayout or --disable-treelayout was given.
5534if test "${enable_treelayout+set}" = set; then
5535 enableval="$enable_treelayout"
698dcdb6 5536
10f2d63a 5537 if test "$enableval" = yes; then
24176f2c 5538 ac_cv_use_treelayout='wxUSE_TREELAYOUT=yes'
10f2d63a 5539 else
24176f2c 5540 ac_cv_use_treelayout='wxUSE_TREELAYOUT=no'
10f2d63a 5541 fi
698dcdb6 5542
10f2d63a 5543else
698dcdb6 5544
24176f2c 5545 LINE=`grep "wxUSE_TREELAYOUT" ${wx_arg_cache_file}`
10f2d63a
VZ
5546 if test "x$LINE" != x ; then
5547 eval "DEFAULT_$LINE"
5548 else
5549 no_cache=1
5550 fi
5551
24176f2c 5552 ac_cv_use_treelayout='wxUSE_TREELAYOUT='$DEFAULT_wxUSE_TREELAYOUT
698dcdb6
VZ
5553
5554fi
10f2d63a
VZ
5555
5556
24176f2c 5557 eval "$ac_cv_use_treelayout"
10f2d63a 5558 if test "$no_cache" != 1; then
24176f2c 5559 echo $ac_cv_use_treelayout >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
5560 fi
5561
24176f2c 5562 if test "$wxUSE_TREELAYOUT" = yes; then
698dcdb6 5563 echo "$ac_t""yes" 1>&6
10f2d63a 5564 else
698dcdb6 5565 echo "$ac_t""no" 1>&6
10f2d63a 5566 fi
698dcdb6 5567
10f2d63a 5568
698dcdb6
VZ
5569
5570
5571 echo $ac_n "checking for --enable-controls""... $ac_c" 1>&6
321d2b14 5572echo "configure:5573: checking for --enable-controls" >&5
10f2d63a
VZ
5573 no_cache=0
5574 # Check whether --enable-controls or --disable-controls was given.
5575if test "${enable_controls+set}" = set; then
5576 enableval="$enable_controls"
698dcdb6 5577
10f2d63a
VZ
5578 if test "$enableval" = yes; then
5579 ac_cv_use_controls='wxUSE_CONTROLS=yes'
5580 else
5581 ac_cv_use_controls='wxUSE_CONTROLS=no'
5582 fi
698dcdb6 5583
10f2d63a 5584else
698dcdb6 5585
10f2d63a
VZ
5586 LINE=`grep "wxUSE_CONTROLS" ${wx_arg_cache_file}`
5587 if test "x$LINE" != x ; then
5588 eval "DEFAULT_$LINE"
5589 else
5590 no_cache=1
5591 fi
5592
5593 ac_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS
698dcdb6
VZ
5594
5595fi
10f2d63a
VZ
5596
5597
5598 eval "$ac_cv_use_controls"
5599 if test "$no_cache" != 1; then
5600 echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp
5601 fi
5602
5603 if test "$wxUSE_CONTROLS" = yes; then
698dcdb6 5604 echo "$ac_t""yes" 1>&6
10f2d63a 5605 else
698dcdb6 5606 echo "$ac_t""no" 1>&6
10f2d63a 5607 fi
698dcdb6 5608
10f2d63a
VZ
5609
5610if test "$wxUSE_CONTROLS" = "yes"; then
5611 DEFAULT_wxUSE_ACCEL=yes
1e6feb95
VZ
5612 DEFAULT_wxUSE_BMPBUTTON=yes
5613 DEFAULT_wxUSE_BUTTON=yes
5614 DEFAULT_wxUSE_CALCTRL=no
10f2d63a
VZ
5615 DEFAULT_wxUSE_CARET=yes
5616 DEFAULT_wxUSE_COMBOBOX=yes
10f2d63a
VZ
5617 DEFAULT_wxUSE_CHECKBOX=yes
5618 DEFAULT_wxUSE_CHECKLISTBOX=yes
5619 DEFAULT_wxUSE_CHOICE=yes
5620 DEFAULT_wxUSE_GAUGE=yes
5621 DEFAULT_wxUSE_GRID=yes
cc977e5f 5622 DEFAULT_wxUSE_NEW_GRID=yes
10f2d63a
VZ
5623 DEFAULT_wxUSE_IMAGLIST=yes
5624 DEFAULT_wxUSE_LISTBOX=yes
5625 DEFAULT_wxUSE_LISTCTRL=yes
5626 DEFAULT_wxUSE_NOTEBOOK=yes
24176f2c 5627 DEFAULT_wxUSE_PROPSHEET=yes
10f2d63a
VZ
5628 DEFAULT_wxUSE_RADIOBOX=yes
5629 DEFAULT_wxUSE_RADIOBTN=yes
5630 DEFAULT_wxUSE_SASH=yes
5631 DEFAULT_wxUSE_SCROLLBAR=yes
5632 DEFAULT_wxUSE_SLIDER=yes
5633 DEFAULT_wxUSE_SPINBTN=yes
56cfaa52 5634 DEFAULT_wxUSE_SPINCTRL=yes
10f2d63a
VZ
5635 DEFAULT_wxUSE_SPLITTER=yes
5636 DEFAULT_wxUSE_STATBMP=yes
5637 DEFAULT_wxUSE_STATBOX=yes
5638 DEFAULT_wxUSE_STATLINE=yes
5639 DEFAULT_wxUSE_STATUSBAR=yes
5640 DEFAULT_wxUSE_TAB_DIALOG=yes
1db8dc4a 5641 DEFAULT_wxUSE_TOGGLEBTN=yes
10f2d63a 5642 DEFAULT_wxUSE_TOOLBAR=yes
360d6699
VZ
5643 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
5644 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
10f2d63a
VZ
5645 DEFAULT_wxUSE_TOOLTIPS=yes
5646 DEFAULT_wxUSE_TREECTRL=yes
9f41d601 5647 DEFAULT_wxUSE_POPUPWIN=yes
9926e4a4 5648 DEFAULT_wxUSE_TIPWINDOW=yes
10f2d63a
VZ
5649elif test "$wxUSE_CONTROLS" = "no"; then
5650 DEFAULT_wxUSE_ACCEL=no
1e6feb95
VZ
5651 DEFAULT_wxUSE_BMPBUTTON=no
5652 DEFAULT_wxUSE_BUTTON=no
5653 DEFAULT_wxUSE_CALCTRL=no
10f2d63a
VZ
5654 DEFAULT_wxUSE_CARET=no
5655 DEFAULT_wxUSE_COMBOBOX=no
10f2d63a
VZ
5656 DEFAULT_wxUSE_CHECKBOX=no
5657 DEFAULT_wxUSE_CHECKLISTBOX=no
5658 DEFAULT_wxUSE_CHOICE=no
5659 DEFAULT_wxUSE_GAUGE=no
5660 DEFAULT_wxUSE_GRID=no
5661 DEFAULT_wxUSE_NEW_GRID=no
5662 DEFAULT_wxUSE_IMAGLIST=no
5663 DEFAULT_wxUSE_LISTBOX=no
5664 DEFAULT_wxUSE_LISTCTRL=no
5665 DEFAULT_wxUSE_NOTEBOOK=no
24176f2c 5666 DEFAULT_wxUSE_PROPSHEET=no
10f2d63a
VZ
5667 DEFAULT_wxUSE_RADIOBOX=no
5668 DEFAULT_wxUSE_RADIOBTN=no
5669 DEFAULT_wxUSE_SASH=no
5670 DEFAULT_wxUSE_SCROLLBAR=no
5671 DEFAULT_wxUSE_SLIDER=no
5672 DEFAULT_wxUSE_SPINBTN=no
56cfaa52 5673 DEFAULT_wxUSE_SPINCTRL=no
10f2d63a
VZ
5674 DEFAULT_wxUSE_SPLITTER=no
5675 DEFAULT_wxUSE_STATBMP=no
5676 DEFAULT_wxUSE_STATBOX=no
5677 DEFAULT_wxUSE_STATLINE=no
5678 DEFAULT_wxUSE_STATUSBAR=no
5679 DEFAULT_wxUSE_TAB_DIALOG=no
1db8dc4a 5680 DEFAULT_wxUSE_TOGGLEBTN=no
10f2d63a 5681 DEFAULT_wxUSE_TOOLBAR=no
360d6699
VZ
5682 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
5683 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
10f2d63a
VZ
5684 DEFAULT_wxUSE_TOOLTIPS=no
5685 DEFAULT_wxUSE_TREECTRL=no
9f41d601 5686 DEFAULT_wxUSE_POPUPWIN=no
9926e4a4 5687 DEFAULT_wxUSE_TIPWINDOW=no
10f2d63a
VZ
5688fi
5689
698dcdb6
VZ
5690
5691 echo $ac_n "checking for --enable-accel""... $ac_c" 1>&6
321d2b14 5692echo "configure:5693: checking for --enable-accel" >&5
10f2d63a
VZ
5693 no_cache=0
5694 # Check whether --enable-accel or --disable-accel was given.
5695if test "${enable_accel+set}" = set; then
5696 enableval="$enable_accel"
698dcdb6 5697
10f2d63a
VZ
5698 if test "$enableval" = yes; then
5699 ac_cv_use_accel='wxUSE_ACCEL=yes'
5700 else
5701 ac_cv_use_accel='wxUSE_ACCEL=no'
5702 fi
698dcdb6 5703
10f2d63a 5704else
698dcdb6 5705
10f2d63a
VZ
5706 LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}`
5707 if test "x$LINE" != x ; then
5708 eval "DEFAULT_$LINE"
5709 else
5710 no_cache=1
5711 fi
5712
5713 ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL
698dcdb6
VZ
5714
5715fi
10f2d63a
VZ
5716
5717
5718 eval "$ac_cv_use_accel"
5719 if test "$no_cache" != 1; then
5720 echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp
5721 fi
5722
5723 if test "$wxUSE_ACCEL" = yes; then
698dcdb6 5724 echo "$ac_t""yes" 1>&6
10f2d63a 5725 else
698dcdb6 5726 echo "$ac_t""no" 1>&6
10f2d63a 5727 fi
698dcdb6 5728
10f2d63a 5729
1e6feb95 5730 echo $ac_n "checking for --enable-button""... $ac_c" 1>&6
321d2b14 5731echo "configure:5732: checking for --enable-button" >&5
10f2d63a 5732 no_cache=0
1e6feb95
VZ
5733 # Check whether --enable-button or --disable-button was given.
5734if test "${enable_button+set}" = set; then
5735 enableval="$enable_button"
698dcdb6 5736
10f2d63a 5737 if test "$enableval" = yes; then
1e6feb95 5738 ac_cv_use_button='wxUSE_BUTTON=yes'
10f2d63a 5739 else
1e6feb95 5740 ac_cv_use_button='wxUSE_BUTTON=no'
10f2d63a 5741 fi
698dcdb6 5742
10f2d63a 5743else
698dcdb6 5744
1e6feb95 5745 LINE=`grep "wxUSE_BUTTON" ${wx_arg_cache_file}`
10f2d63a
VZ
5746 if test "x$LINE" != x ; then
5747 eval "DEFAULT_$LINE"
5748 else
5749 no_cache=1
5750 fi
5751
1e6feb95 5752 ac_cv_use_button='wxUSE_BUTTON='$DEFAULT_wxUSE_BUTTON
698dcdb6
VZ
5753
5754fi
10f2d63a
VZ
5755
5756
1e6feb95 5757 eval "$ac_cv_use_button"
10f2d63a 5758 if test "$no_cache" != 1; then
1e6feb95 5759 echo $ac_cv_use_button >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
5760 fi
5761
1e6feb95 5762 if test "$wxUSE_BUTTON" = yes; then
698dcdb6 5763 echo "$ac_t""yes" 1>&6
10f2d63a 5764 else
698dcdb6 5765 echo "$ac_t""no" 1>&6
10f2d63a 5766 fi
698dcdb6 5767
10f2d63a 5768
698dcdb6 5769 echo $ac_n "checking for --enable-bmpbutton""... $ac_c" 1>&6
321d2b14 5770echo "configure:5771: checking for --enable-bmpbutton" >&5
10f2d63a
VZ
5771 no_cache=0
5772 # Check whether --enable-bmpbutton or --disable-bmpbutton was given.
5773if test "${enable_bmpbutton+set}" = set; then
5774 enableval="$enable_bmpbutton"
698dcdb6 5775
10f2d63a
VZ
5776 if test "$enableval" = yes; then
5777 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes'
5778 else
5779 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no'
5780 fi
698dcdb6 5781
10f2d63a 5782else
698dcdb6 5783
10f2d63a
VZ
5784 LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}`
5785 if test "x$LINE" != x ; then
5786 eval "DEFAULT_$LINE"
5787 else
5788 no_cache=1
5789 fi
5790
5791 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON
698dcdb6
VZ
5792
5793fi
10f2d63a
VZ
5794
5795
5796 eval "$ac_cv_use_bmpbutton"
5797 if test "$no_cache" != 1; then
5798 echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp
5799 fi
5800
5801 if test "$wxUSE_BMPBUTTON" = yes; then
698dcdb6 5802 echo "$ac_t""yes" 1>&6
10f2d63a 5803 else
698dcdb6 5804 echo "$ac_t""no" 1>&6
10f2d63a 5805 fi
698dcdb6 5806
10f2d63a 5807
1e6feb95 5808 echo $ac_n "checking for --enable-calendar""... $ac_c" 1>&6
321d2b14 5809echo "configure:5810: checking for --enable-calendar" >&5
1e6feb95
VZ
5810 no_cache=0
5811 # Check whether --enable-calendar or --disable-calendar was given.
5812if test "${enable_calendar+set}" = set; then
5813 enableval="$enable_calendar"
5814
5815 if test "$enableval" = yes; then
5816 ac_cv_use_calendar='wxUSE_CALCTRL=yes'
5817 else
5818 ac_cv_use_calendar='wxUSE_CALCTRL=no'
5819 fi
5820
5821else
5822
5823 LINE=`grep "wxUSE_CALCTRL" ${wx_arg_cache_file}`
5824 if test "x$LINE" != x ; then
5825 eval "DEFAULT_$LINE"
5826 else
5827 no_cache=1
5828 fi
5829
5830 ac_cv_use_calendar='wxUSE_CALCTRL='$DEFAULT_wxUSE_CALCTRL
5831
5832fi
5833
5834
5835 eval "$ac_cv_use_calendar"
5836 if test "$no_cache" != 1; then
5837 echo $ac_cv_use_calendar >> ${wx_arg_cache_file}.tmp
5838 fi
5839
5840 if test "$wxUSE_CALCTRL" = yes; then
5841 echo "$ac_t""yes" 1>&6
5842 else
5843 echo "$ac_t""no" 1>&6
5844 fi
5845
5846
5847 echo $ac_n "checking for --enable-caret""... $ac_c" 1>&6
321d2b14 5848echo "configure:5849: checking for --enable-caret" >&5
1e6feb95
VZ
5849 no_cache=0
5850 # Check whether --enable-caret or --disable-caret was given.
5851if test "${enable_caret+set}" = set; then
5852 enableval="$enable_caret"
5853
5854 if test "$enableval" = yes; then
5855 ac_cv_use_caret='wxUSE_CARET=yes'
5856 else
5857 ac_cv_use_caret='wxUSE_CARET=no'
5858 fi
5859
5860else
5861
5862 LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}`
5863 if test "x$LINE" != x ; then
5864 eval "DEFAULT_$LINE"
5865 else
5866 no_cache=1
5867 fi
5868
5869 ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET
5870
5871fi
5872
5873
5874 eval "$ac_cv_use_caret"
5875 if test "$no_cache" != 1; then
5876 echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp
5877 fi
5878
5879 if test "$wxUSE_CARET" = yes; then
5880 echo "$ac_t""yes" 1>&6
5881 else
5882 echo "$ac_t""no" 1>&6
5883 fi
5884
5885
698dcdb6 5886 echo $ac_n "checking for --enable-checkbox""... $ac_c" 1>&6
321d2b14 5887echo "configure:5888: checking for --enable-checkbox" >&5
10f2d63a
VZ
5888 no_cache=0
5889 # Check whether --enable-checkbox or --disable-checkbox was given.
5890if test "${enable_checkbox+set}" = set; then
5891 enableval="$enable_checkbox"
698dcdb6 5892
10f2d63a
VZ
5893 if test "$enableval" = yes; then
5894 ac_cv_use_checkbox='wxUSE_CHECKBOX=yes'
5895 else
5896 ac_cv_use_checkbox='wxUSE_CHECKBOX=no'
5897 fi
698dcdb6 5898
10f2d63a 5899else
698dcdb6 5900
10f2d63a
VZ
5901 LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}`
5902 if test "x$LINE" != x ; then
5903 eval "DEFAULT_$LINE"
5904 else
5905 no_cache=1
5906 fi
5907
5908 ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX
698dcdb6
VZ
5909
5910fi
10f2d63a
VZ
5911
5912
5913 eval "$ac_cv_use_checkbox"
5914 if test "$no_cache" != 1; then
5915 echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp
5916 fi
5917
5918 if test "$wxUSE_CHECKBOX" = yes; then
698dcdb6 5919 echo "$ac_t""yes" 1>&6
10f2d63a 5920 else
698dcdb6 5921 echo "$ac_t""no" 1>&6
10f2d63a 5922 fi
698dcdb6 5923
10f2d63a 5924
698dcdb6 5925 echo $ac_n "checking for --enable-checklst""... $ac_c" 1>&6
321d2b14 5926echo "configure:5927: checking for --enable-checklst" >&5
10f2d63a
VZ
5927 no_cache=0
5928 # Check whether --enable-checklst or --disable-checklst was given.
5929if test "${enable_checklst+set}" = set; then
5930 enableval="$enable_checklst"
698dcdb6 5931
10f2d63a
VZ
5932 if test "$enableval" = yes; then
5933 ac_cv_use_checklst='wxUSE_CHECKLST=yes'
5934 else
5935 ac_cv_use_checklst='wxUSE_CHECKLST=no'
5936 fi
698dcdb6 5937
10f2d63a 5938else
698dcdb6 5939
10f2d63a
VZ
5940 LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}`
5941 if test "x$LINE" != x ; then
5942 eval "DEFAULT_$LINE"
5943 else
5944 no_cache=1
5945 fi
5946
5947 ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST
698dcdb6
VZ
5948
5949fi
10f2d63a
VZ
5950
5951
5952 eval "$ac_cv_use_checklst"
5953 if test "$no_cache" != 1; then
5954 echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp
5955 fi
5956
5957 if test "$wxUSE_CHECKLST" = yes; then
698dcdb6 5958 echo "$ac_t""yes" 1>&6
10f2d63a 5959 else
698dcdb6 5960 echo "$ac_t""no" 1>&6
10f2d63a 5961 fi
698dcdb6 5962
10f2d63a 5963
698dcdb6 5964 echo $ac_n "checking for --enable-choice""... $ac_c" 1>&6
321d2b14 5965echo "configure:5966: checking for --enable-choice" >&5
10f2d63a
VZ
5966 no_cache=0
5967 # Check whether --enable-choice or --disable-choice was given.
5968if test "${enable_choice+set}" = set; then
5969 enableval="$enable_choice"
698dcdb6 5970
10f2d63a
VZ
5971 if test "$enableval" = yes; then
5972 ac_cv_use_choice='wxUSE_CHOICE=yes'
5973 else
5974 ac_cv_use_choice='wxUSE_CHOICE=no'
5975 fi
698dcdb6 5976
10f2d63a 5977else
698dcdb6 5978
10f2d63a
VZ
5979 LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}`
5980 if test "x$LINE" != x ; then
5981 eval "DEFAULT_$LINE"
5982 else
5983 no_cache=1
5984 fi
5985
5986 ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE
698dcdb6
VZ
5987
5988fi
10f2d63a
VZ
5989
5990
5991 eval "$ac_cv_use_choice"
5992 if test "$no_cache" != 1; then
5993 echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp
5994 fi
5995
5996 if test "$wxUSE_CHOICE" = yes; then
698dcdb6 5997 echo "$ac_t""yes" 1>&6
10f2d63a 5998 else
698dcdb6 5999 echo "$ac_t""no" 1>&6
10f2d63a 6000 fi
698dcdb6 6001
10f2d63a 6002
698dcdb6 6003 echo $ac_n "checking for --enable-combobox""... $ac_c" 1>&6
321d2b14 6004echo "configure:6005: checking for --enable-combobox" >&5
10f2d63a
VZ
6005 no_cache=0
6006 # Check whether --enable-combobox or --disable-combobox was given.
6007if test "${enable_combobox+set}" = set; then
6008 enableval="$enable_combobox"
698dcdb6 6009
10f2d63a
VZ
6010 if test "$enableval" = yes; then
6011 ac_cv_use_combobox='wxUSE_COMBOBOX=yes'
6012 else
6013 ac_cv_use_combobox='wxUSE_COMBOBOX=no'
6014 fi
698dcdb6 6015
10f2d63a 6016else
698dcdb6 6017
10f2d63a
VZ
6018 LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}`
6019 if test "x$LINE" != x ; then
6020 eval "DEFAULT_$LINE"
6021 else
6022 no_cache=1
6023 fi
6024
6025 ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX
698dcdb6
VZ
6026
6027fi
10f2d63a
VZ
6028
6029
6030 eval "$ac_cv_use_combobox"
6031 if test "$no_cache" != 1; then
6032 echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp
6033 fi
6034
6035 if test "$wxUSE_COMBOBOX" = yes; then
698dcdb6 6036 echo "$ac_t""yes" 1>&6
10f2d63a 6037 else
698dcdb6 6038 echo "$ac_t""no" 1>&6
10f2d63a 6039 fi
698dcdb6 6040
10f2d63a 6041
698dcdb6 6042 echo $ac_n "checking for --enable-gauge""... $ac_c" 1>&6
321d2b14 6043echo "configure:6044: checking for --enable-gauge" >&5
10f2d63a
VZ
6044 no_cache=0
6045 # Check whether --enable-gauge or --disable-gauge was given.
6046if test "${enable_gauge+set}" = set; then
6047 enableval="$enable_gauge"
698dcdb6 6048
10f2d63a
VZ
6049 if test "$enableval" = yes; then
6050 ac_cv_use_gauge='wxUSE_GAUGE=yes'
6051 else
6052 ac_cv_use_gauge='wxUSE_GAUGE=no'
6053 fi
698dcdb6 6054
10f2d63a 6055else
698dcdb6 6056
10f2d63a
VZ
6057 LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}`
6058 if test "x$LINE" != x ; then
6059 eval "DEFAULT_$LINE"
6060 else
6061 no_cache=1
6062 fi
6063
6064 ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE
698dcdb6
VZ
6065
6066fi
10f2d63a
VZ
6067
6068
6069 eval "$ac_cv_use_gauge"
6070 if test "$no_cache" != 1; then
6071 echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp
6072 fi
6073
6074 if test "$wxUSE_GAUGE" = yes; then
698dcdb6 6075 echo "$ac_t""yes" 1>&6
10f2d63a 6076 else
698dcdb6 6077 echo "$ac_t""no" 1>&6
10f2d63a 6078 fi
698dcdb6 6079
10f2d63a 6080
698dcdb6 6081 echo $ac_n "checking for --enable-grid""... $ac_c" 1>&6
321d2b14 6082echo "configure:6083: checking for --enable-grid" >&5
10f2d63a
VZ
6083 no_cache=0
6084 # Check whether --enable-grid or --disable-grid was given.
6085if test "${enable_grid+set}" = set; then
6086 enableval="$enable_grid"
698dcdb6 6087
10f2d63a
VZ
6088 if test "$enableval" = yes; then
6089 ac_cv_use_grid='wxUSE_GRID=yes'
6090 else
6091 ac_cv_use_grid='wxUSE_GRID=no'
6092 fi
698dcdb6 6093
10f2d63a 6094else
698dcdb6 6095
10f2d63a
VZ
6096 LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}`
6097 if test "x$LINE" != x ; then
6098 eval "DEFAULT_$LINE"
6099 else
6100 no_cache=1
6101 fi
6102
6103 ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID
698dcdb6
VZ
6104
6105fi
10f2d63a
VZ
6106
6107
6108 eval "$ac_cv_use_grid"
6109 if test "$no_cache" != 1; then
6110 echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp
6111 fi
6112
6113 if test "$wxUSE_GRID" = yes; then
698dcdb6 6114 echo "$ac_t""yes" 1>&6
10f2d63a 6115 else
698dcdb6 6116 echo "$ac_t""no" 1>&6
10f2d63a 6117 fi
698dcdb6 6118
10f2d63a 6119
698dcdb6 6120 echo $ac_n "checking for --enable-newgrid""... $ac_c" 1>&6
321d2b14 6121echo "configure:6122: checking for --enable-newgrid" >&5
10f2d63a
VZ
6122 no_cache=0
6123 # Check whether --enable-newgrid or --disable-newgrid was given.
6124if test "${enable_newgrid+set}" = set; then
6125 enableval="$enable_newgrid"
698dcdb6 6126
10f2d63a
VZ
6127 if test "$enableval" = yes; then
6128 ac_cv_use_newgrid='wxUSE_NEW_GRID=yes'
6129 else
6130 ac_cv_use_newgrid='wxUSE_NEW_GRID=no'
6131 fi
698dcdb6 6132
10f2d63a 6133else
698dcdb6 6134
10f2d63a
VZ
6135 LINE=`grep "wxUSE_NEW_GRID" ${wx_arg_cache_file}`
6136 if test "x$LINE" != x ; then
6137 eval "DEFAULT_$LINE"
6138 else
6139 no_cache=1
6140 fi
6141
6142 ac_cv_use_newgrid='wxUSE_NEW_GRID='$DEFAULT_wxUSE_NEW_GRID
698dcdb6
VZ
6143
6144fi
10f2d63a
VZ
6145
6146
6147 eval "$ac_cv_use_newgrid"
6148 if test "$no_cache" != 1; then
6149 echo $ac_cv_use_newgrid >> ${wx_arg_cache_file}.tmp
6150 fi
6151
6152 if test "$wxUSE_NEW_GRID" = yes; then
698dcdb6 6153 echo "$ac_t""yes" 1>&6
10f2d63a 6154 else
698dcdb6 6155 echo "$ac_t""no" 1>&6
10f2d63a 6156 fi
698dcdb6 6157
10f2d63a 6158
698dcdb6 6159 echo $ac_n "checking for --enable-imaglist""... $ac_c" 1>&6
321d2b14 6160echo "configure:6161: checking for --enable-imaglist" >&5
10f2d63a
VZ
6161 no_cache=0
6162 # Check whether --enable-imaglist or --disable-imaglist was given.
6163if test "${enable_imaglist+set}" = set; then
6164 enableval="$enable_imaglist"
698dcdb6 6165
10f2d63a
VZ
6166 if test "$enableval" = yes; then
6167 ac_cv_use_imaglist='wxUSE_IMAGLIST=yes'
6168 else
6169 ac_cv_use_imaglist='wxUSE_IMAGLIST=no'
6170 fi
698dcdb6 6171
10f2d63a 6172else
698dcdb6 6173
10f2d63a
VZ
6174 LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}`
6175 if test "x$LINE" != x ; then
6176 eval "DEFAULT_$LINE"
6177 else
6178 no_cache=1
6179 fi
6180
6181 ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST
698dcdb6
VZ
6182
6183fi
10f2d63a
VZ
6184
6185
6186 eval "$ac_cv_use_imaglist"
6187 if test "$no_cache" != 1; then
6188 echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp
6189 fi
6190
6191 if test "$wxUSE_IMAGLIST" = yes; then
698dcdb6 6192 echo "$ac_t""yes" 1>&6
10f2d63a 6193 else
698dcdb6 6194 echo "$ac_t""no" 1>&6
10f2d63a 6195 fi
698dcdb6 6196
10f2d63a 6197
698dcdb6 6198 echo $ac_n "checking for --enable-listbox""... $ac_c" 1>&6
321d2b14 6199echo "configure:6200: checking for --enable-listbox" >&5
10f2d63a
VZ
6200 no_cache=0
6201 # Check whether --enable-listbox or --disable-listbox was given.
6202if test "${enable_listbox+set}" = set; then
6203 enableval="$enable_listbox"
698dcdb6 6204
10f2d63a
VZ
6205 if test "$enableval" = yes; then
6206 ac_cv_use_listbox='wxUSE_LISTBOX=yes'
6207 else
6208 ac_cv_use_listbox='wxUSE_LISTBOX=no'
6209 fi
698dcdb6 6210
10f2d63a 6211else
698dcdb6 6212
10f2d63a
VZ
6213 LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}`
6214 if test "x$LINE" != x ; then
6215 eval "DEFAULT_$LINE"
6216 else
6217 no_cache=1
6218 fi
6219
6220 ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX
698dcdb6
VZ
6221
6222fi
10f2d63a
VZ
6223
6224
6225 eval "$ac_cv_use_listbox"
6226 if test "$no_cache" != 1; then
6227 echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp
6228 fi
6229
6230 if test "$wxUSE_LISTBOX" = yes; then
698dcdb6 6231 echo "$ac_t""yes" 1>&6
10f2d63a 6232 else
698dcdb6 6233 echo "$ac_t""no" 1>&6
10f2d63a 6234 fi
698dcdb6 6235
10f2d63a 6236
698dcdb6 6237 echo $ac_n "checking for --enable-listctrl""... $ac_c" 1>&6
321d2b14 6238echo "configure:6239: checking for --enable-listctrl" >&5
10f2d63a
VZ
6239 no_cache=0
6240 # Check whether --enable-listctrl or --disable-listctrl was given.
6241if test "${enable_listctrl+set}" = set; then
6242 enableval="$enable_listctrl"
698dcdb6 6243
10f2d63a
VZ
6244 if test "$enableval" = yes; then
6245 ac_cv_use_listctrl='wxUSE_LISTCTRL=yes'
6246 else
6247 ac_cv_use_listctrl='wxUSE_LISTCTRL=no'
6248 fi
698dcdb6 6249
10f2d63a 6250else
698dcdb6 6251
10f2d63a
VZ
6252 LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}`
6253 if test "x$LINE" != x ; then
6254 eval "DEFAULT_$LINE"
6255 else
6256 no_cache=1
6257 fi
6258
6259 ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL
698dcdb6
VZ
6260
6261fi
10f2d63a
VZ
6262
6263
6264 eval "$ac_cv_use_listctrl"
6265 if test "$no_cache" != 1; then
6266 echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp
6267 fi
6268
6269 if test "$wxUSE_LISTCTRL" = yes; then
698dcdb6 6270 echo "$ac_t""yes" 1>&6
10f2d63a 6271 else
698dcdb6 6272 echo "$ac_t""no" 1>&6
10f2d63a 6273 fi
698dcdb6 6274
10f2d63a 6275
698dcdb6 6276 echo $ac_n "checking for --enable-notebook""... $ac_c" 1>&6
321d2b14 6277echo "configure:6278: checking for --enable-notebook" >&5
10f2d63a
VZ
6278 no_cache=0
6279 # Check whether --enable-notebook or --disable-notebook was given.
6280if test "${enable_notebook+set}" = set; then
6281 enableval="$enable_notebook"
698dcdb6 6282
10f2d63a
VZ
6283 if test "$enableval" = yes; then
6284 ac_cv_use_notebook='wxUSE_NOTEBOOK=yes'
6285 else
6286 ac_cv_use_notebook='wxUSE_NOTEBOOK=no'
6287 fi
698dcdb6 6288
10f2d63a 6289else
698dcdb6 6290
10f2d63a
VZ
6291 LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}`
6292 if test "x$LINE" != x ; then
6293 eval "DEFAULT_$LINE"
6294 else
6295 no_cache=1
6296 fi
6297
6298 ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK
698dcdb6
VZ
6299
6300fi
10f2d63a
VZ
6301
6302
6303 eval "$ac_cv_use_notebook"
6304 if test "$no_cache" != 1; then
6305 echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp
6306 fi
6307
6308 if test "$wxUSE_NOTEBOOK" = yes; then
698dcdb6 6309 echo "$ac_t""yes" 1>&6
10f2d63a 6310 else
698dcdb6 6311 echo "$ac_t""no" 1>&6
10f2d63a 6312 fi
698dcdb6 6313
10f2d63a 6314
24176f2c 6315 echo $ac_n "checking for --enable-propsheet""... $ac_c" 1>&6
321d2b14 6316echo "configure:6317: checking for --enable-propsheet" >&5
24176f2c
GD
6317 no_cache=0
6318 # Check whether --enable-propsheet or --disable-propsheet was given.
6319if test "${enable_propsheet+set}" = set; then
6320 enableval="$enable_propsheet"
6321
6322 if test "$enableval" = yes; then
6323 ac_cv_use_propsheet='wxUSE_PROPSHEET=yes'
6324 else
6325 ac_cv_use_propsheet='wxUSE_PROPSHEET=no'
6326 fi
6327
6328else
6329
6330 LINE=`grep "wxUSE_PROPSHEET" ${wx_arg_cache_file}`
6331 if test "x$LINE" != x ; then
6332 eval "DEFAULT_$LINE"
6333 else
6334 no_cache=1
6335 fi
6336
6337 ac_cv_use_propsheet='wxUSE_PROPSHEET='$DEFAULT_wxUSE_PROPSHEET
6338
6339fi
6340
6341
6342 eval "$ac_cv_use_propsheet"
6343 if test "$no_cache" != 1; then
6344 echo $ac_cv_use_propsheet >> ${wx_arg_cache_file}.tmp
6345 fi
6346
6347 if test "$wxUSE_PROPSHEET" = yes; then
6348 echo "$ac_t""yes" 1>&6
6349 else
6350 echo "$ac_t""no" 1>&6
6351 fi
6352
6353
698dcdb6 6354 echo $ac_n "checking for --enable-radiobox""... $ac_c" 1>&6
321d2b14 6355echo "configure:6356: checking for --enable-radiobox" >&5
10f2d63a
VZ
6356 no_cache=0
6357 # Check whether --enable-radiobox or --disable-radiobox was given.
6358if test "${enable_radiobox+set}" = set; then
6359 enableval="$enable_radiobox"
698dcdb6 6360
10f2d63a
VZ
6361 if test "$enableval" = yes; then
6362 ac_cv_use_radiobox='wxUSE_RADIOBOX=yes'
6363 else
6364 ac_cv_use_radiobox='wxUSE_RADIOBOX=no'
6365 fi
698dcdb6 6366
10f2d63a 6367else
698dcdb6 6368
10f2d63a
VZ
6369 LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}`
6370 if test "x$LINE" != x ; then
6371 eval "DEFAULT_$LINE"
6372 else
6373 no_cache=1
6374 fi
6375
6376 ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX
698dcdb6
VZ
6377
6378fi
10f2d63a
VZ
6379
6380
6381 eval "$ac_cv_use_radiobox"
6382 if test "$no_cache" != 1; then
6383 echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp
6384 fi
6385
6386 if test "$wxUSE_RADIOBOX" = yes; then
698dcdb6 6387 echo "$ac_t""yes" 1>&6
10f2d63a 6388 else
698dcdb6 6389 echo "$ac_t""no" 1>&6
10f2d63a 6390 fi
698dcdb6 6391
10f2d63a 6392
698dcdb6 6393 echo $ac_n "checking for --enable-radiobtn""... $ac_c" 1>&6
321d2b14 6394echo "configure:6395: checking for --enable-radiobtn" >&5
10f2d63a
VZ
6395 no_cache=0
6396 # Check whether --enable-radiobtn or --disable-radiobtn was given.
6397if test "${enable_radiobtn+set}" = set; then
6398 enableval="$enable_radiobtn"
698dcdb6 6399
10f2d63a
VZ
6400 if test "$enableval" = yes; then
6401 ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes'
6402 else
6403 ac_cv_use_radiobtn='wxUSE_RADIOBTN=no'
6404 fi
698dcdb6 6405
10f2d63a 6406else
698dcdb6 6407
10f2d63a
VZ
6408 LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}`
6409 if test "x$LINE" != x ; then
6410 eval "DEFAULT_$LINE"
6411 else
6412 no_cache=1
6413 fi
6414
6415 ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN
698dcdb6
VZ
6416
6417fi
10f2d63a
VZ
6418
6419
6420 eval "$ac_cv_use_radiobtn"
6421 if test "$no_cache" != 1; then
6422 echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp
6423 fi
6424
6425 if test "$wxUSE_RADIOBTN" = yes; then
698dcdb6 6426 echo "$ac_t""yes" 1>&6
10f2d63a 6427 else
698dcdb6 6428 echo "$ac_t""no" 1>&6
10f2d63a 6429 fi
698dcdb6 6430
10f2d63a 6431
698dcdb6 6432 echo $ac_n "checking for --enable-sash""... $ac_c" 1>&6
321d2b14 6433echo "configure:6434: checking for --enable-sash" >&5
10f2d63a
VZ
6434 no_cache=0
6435 # Check whether --enable-sash or --disable-sash was given.
6436if test "${enable_sash+set}" = set; then
6437 enableval="$enable_sash"
698dcdb6 6438
10f2d63a
VZ
6439 if test "$enableval" = yes; then
6440 ac_cv_use_sash='wxUSE_SASH=yes'
6441 else
6442 ac_cv_use_sash='wxUSE_SASH=no'
6443 fi
698dcdb6 6444
10f2d63a 6445else
698dcdb6 6446
10f2d63a
VZ
6447 LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}`
6448 if test "x$LINE" != x ; then
6449 eval "DEFAULT_$LINE"
6450 else
6451 no_cache=1
6452 fi
6453
6454 ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH
698dcdb6
VZ
6455
6456fi
10f2d63a
VZ
6457
6458
6459 eval "$ac_cv_use_sash"
6460 if test "$no_cache" != 1; then
6461 echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp
6462 fi
6463
6464 if test "$wxUSE_SASH" = yes; then
698dcdb6 6465 echo "$ac_t""yes" 1>&6
10f2d63a 6466 else
698dcdb6 6467 echo "$ac_t""no" 1>&6
10f2d63a 6468 fi
698dcdb6 6469
10f2d63a 6470
698dcdb6 6471 echo $ac_n "checking for --enable-scrollbar""... $ac_c" 1>&6
321d2b14 6472echo "configure:6473: checking for --enable-scrollbar" >&5
10f2d63a
VZ
6473 no_cache=0
6474 # Check whether --enable-scrollbar or --disable-scrollbar was given.
6475if test "${enable_scrollbar+set}" = set; then
6476 enableval="$enable_scrollbar"
698dcdb6 6477
10f2d63a
VZ
6478 if test "$enableval" = yes; then
6479 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes'
6480 else
6481 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no'
6482 fi
698dcdb6 6483
10f2d63a 6484else
698dcdb6 6485
10f2d63a
VZ
6486 LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}`
6487 if test "x$LINE" != x ; then
6488 eval "DEFAULT_$LINE"
6489 else
6490 no_cache=1
6491 fi
6492
6493 ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR
698dcdb6
VZ
6494
6495fi
10f2d63a
VZ
6496
6497
6498 eval "$ac_cv_use_scrollbar"
6499 if test "$no_cache" != 1; then
6500 echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp
6501 fi
6502
6503 if test "$wxUSE_SCROLLBAR" = yes; then
698dcdb6 6504 echo "$ac_t""yes" 1>&6
10f2d63a 6505 else
698dcdb6 6506 echo "$ac_t""no" 1>&6
10f2d63a 6507 fi
698dcdb6 6508
10f2d63a 6509
698dcdb6 6510 echo $ac_n "checking for --enable-slider""... $ac_c" 1>&6
321d2b14 6511echo "configure:6512: checking for --enable-slider" >&5
10f2d63a
VZ
6512 no_cache=0
6513 # Check whether --enable-slider or --disable-slider was given.
6514if test "${enable_slider+set}" = set; then
6515 enableval="$enable_slider"
698dcdb6 6516
10f2d63a
VZ
6517 if test "$enableval" = yes; then
6518 ac_cv_use_slider='wxUSE_SLIDER=yes'
6519 else
6520 ac_cv_use_slider='wxUSE_SLIDER=no'
6521 fi
698dcdb6 6522
10f2d63a 6523else
698dcdb6 6524
10f2d63a
VZ
6525 LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}`
6526 if test "x$LINE" != x ; then
6527 eval "DEFAULT_$LINE"
6528 else
6529 no_cache=1
6530 fi
6531
6532 ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER
698dcdb6
VZ
6533
6534fi
10f2d63a
VZ
6535
6536
6537 eval "$ac_cv_use_slider"
6538 if test "$no_cache" != 1; then
6539 echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp
6540 fi
6541
6542 if test "$wxUSE_SLIDER" = yes; then
698dcdb6 6543 echo "$ac_t""yes" 1>&6
10f2d63a 6544 else
698dcdb6 6545 echo "$ac_t""no" 1>&6
10f2d63a 6546 fi
698dcdb6 6547
10f2d63a 6548
698dcdb6 6549 echo $ac_n "checking for --enable-spinbtn""... $ac_c" 1>&6
321d2b14 6550echo "configure:6551: checking for --enable-spinbtn" >&5
10f2d63a
VZ
6551 no_cache=0
6552 # Check whether --enable-spinbtn or --disable-spinbtn was given.
6553if test "${enable_spinbtn+set}" = set; then
6554 enableval="$enable_spinbtn"
698dcdb6 6555
10f2d63a
VZ
6556 if test "$enableval" = yes; then
6557 ac_cv_use_spinbtn='wxUSE_SPINBTN=yes'
6558 else
6559 ac_cv_use_spinbtn='wxUSE_SPINBTN=no'
6560 fi
698dcdb6 6561
10f2d63a 6562else
698dcdb6 6563
10f2d63a
VZ
6564 LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}`
6565 if test "x$LINE" != x ; then
6566 eval "DEFAULT_$LINE"
6567 else
6568 no_cache=1
6569 fi
6570
6571 ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN
698dcdb6
VZ
6572
6573fi
10f2d63a
VZ
6574
6575
6576 eval "$ac_cv_use_spinbtn"
6577 if test "$no_cache" != 1; then
6578 echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp
6579 fi
6580
6581 if test "$wxUSE_SPINBTN" = yes; then
698dcdb6 6582 echo "$ac_t""yes" 1>&6
10f2d63a 6583 else
698dcdb6 6584 echo "$ac_t""no" 1>&6
10f2d63a 6585 fi
698dcdb6 6586
10f2d63a 6587
698dcdb6 6588 echo $ac_n "checking for --enable-spinctrl""... $ac_c" 1>&6
321d2b14 6589echo "configure:6590: checking for --enable-spinctrl" >&5
56cfaa52
RR
6590 no_cache=0
6591 # Check whether --enable-spinctrl or --disable-spinctrl was given.
6592if test "${enable_spinctrl+set}" = set; then
6593 enableval="$enable_spinctrl"
698dcdb6 6594
56cfaa52
RR
6595 if test "$enableval" = yes; then
6596 ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes'
6597 else
6598 ac_cv_use_spinctrl='wxUSE_SPINCTRL=no'
6599 fi
698dcdb6 6600
56cfaa52 6601else
698dcdb6 6602
56cfaa52
RR
6603 LINE=`grep "wxUSE_SPINCTRL" ${wx_arg_cache_file}`
6604 if test "x$LINE" != x ; then
6605 eval "DEFAULT_$LINE"
6606 else
6607 no_cache=1
6608 fi
6609
6610 ac_cv_use_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL
698dcdb6
VZ
6611
6612fi
56cfaa52
RR
6613
6614
6615 eval "$ac_cv_use_spinctrl"
6616 if test "$no_cache" != 1; then
6617 echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp
6618 fi
6619
6620 if test "$wxUSE_SPINCTRL" = yes; then
698dcdb6 6621 echo "$ac_t""yes" 1>&6
56cfaa52 6622 else
698dcdb6 6623 echo "$ac_t""no" 1>&6
56cfaa52 6624 fi
698dcdb6 6625
56cfaa52 6626
698dcdb6 6627 echo $ac_n "checking for --enable-splitter""... $ac_c" 1>&6
321d2b14 6628echo "configure:6629: checking for --enable-splitter" >&5
10f2d63a
VZ
6629 no_cache=0
6630 # Check whether --enable-splitter or --disable-splitter was given.
6631if test "${enable_splitter+set}" = set; then
6632 enableval="$enable_splitter"
698dcdb6 6633
10f2d63a
VZ
6634 if test "$enableval" = yes; then
6635 ac_cv_use_splitter='wxUSE_SPLITTER=yes'
6636 else
6637 ac_cv_use_splitter='wxUSE_SPLITTER=no'
6638 fi
698dcdb6 6639
10f2d63a 6640else
698dcdb6 6641
10f2d63a
VZ
6642 LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}`
6643 if test "x$LINE" != x ; then
6644 eval "DEFAULT_$LINE"
6645 else
6646 no_cache=1
6647 fi
6648
6649 ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER
698dcdb6
VZ
6650
6651fi
10f2d63a
VZ
6652
6653
6654 eval "$ac_cv_use_splitter"
6655 if test "$no_cache" != 1; then
6656 echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp
6657 fi
6658
6659 if test "$wxUSE_SPLITTER" = yes; then
698dcdb6 6660 echo "$ac_t""yes" 1>&6
10f2d63a 6661 else
698dcdb6 6662 echo "$ac_t""no" 1>&6
10f2d63a 6663 fi
698dcdb6 6664
10f2d63a 6665
698dcdb6 6666 echo $ac_n "checking for --enable-statbmp""... $ac_c" 1>&6
321d2b14 6667echo "configure:6668: checking for --enable-statbmp" >&5
10f2d63a
VZ
6668 no_cache=0
6669 # Check whether --enable-statbmp or --disable-statbmp was given.
6670if test "${enable_statbmp+set}" = set; then
6671 enableval="$enable_statbmp"
698dcdb6 6672
10f2d63a
VZ
6673 if test "$enableval" = yes; then
6674 ac_cv_use_statbmp='wxUSE_STATBMP=yes'
6675 else
6676 ac_cv_use_statbmp='wxUSE_STATBMP=no'
6677 fi
698dcdb6 6678
10f2d63a 6679else
698dcdb6 6680
10f2d63a
VZ
6681 LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}`
6682 if test "x$LINE" != x ; then
6683 eval "DEFAULT_$LINE"
6684 else
6685 no_cache=1
6686 fi
6687
6688 ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP
698dcdb6
VZ
6689
6690fi
10f2d63a
VZ
6691
6692
6693 eval "$ac_cv_use_statbmp"
6694 if test "$no_cache" != 1; then
6695 echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp
6696 fi
6697
6698 if test "$wxUSE_STATBMP" = yes; then
698dcdb6 6699 echo "$ac_t""yes" 1>&6
10f2d63a 6700 else
698dcdb6 6701 echo "$ac_t""no" 1>&6
10f2d63a 6702 fi
698dcdb6 6703
10f2d63a 6704
698dcdb6 6705 echo $ac_n "checking for --enable-statbox""... $ac_c" 1>&6
321d2b14 6706echo "configure:6707: checking for --enable-statbox" >&5
10f2d63a
VZ
6707 no_cache=0
6708 # Check whether --enable-statbox or --disable-statbox was given.
6709if test "${enable_statbox+set}" = set; then
6710 enableval="$enable_statbox"
698dcdb6 6711
10f2d63a
VZ
6712 if test "$enableval" = yes; then
6713 ac_cv_use_statbox='wxUSE_STATBOX=yes'
6714 else
6715 ac_cv_use_statbox='wxUSE_STATBOX=no'
6716 fi
698dcdb6 6717
10f2d63a 6718else
698dcdb6 6719
10f2d63a
VZ
6720 LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}`
6721 if test "x$LINE" != x ; then
6722 eval "DEFAULT_$LINE"
6723 else
6724 no_cache=1
6725 fi
6726
6727 ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX
698dcdb6
VZ
6728
6729fi
10f2d63a
VZ
6730
6731
6732 eval "$ac_cv_use_statbox"
6733 if test "$no_cache" != 1; then
6734 echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp
6735 fi
6736
6737 if test "$wxUSE_STATBOX" = yes; then
698dcdb6 6738 echo "$ac_t""yes" 1>&6
10f2d63a 6739 else
698dcdb6 6740 echo "$ac_t""no" 1>&6
10f2d63a 6741 fi
698dcdb6 6742
10f2d63a 6743
698dcdb6 6744 echo $ac_n "checking for --enable-statline""... $ac_c" 1>&6
321d2b14 6745echo "configure:6746: checking for --enable-statline" >&5
10f2d63a
VZ
6746 no_cache=0
6747 # Check whether --enable-statline or --disable-statline was given.
6748if test "${enable_statline+set}" = set; then
6749 enableval="$enable_statline"
698dcdb6 6750
10f2d63a
VZ
6751 if test "$enableval" = yes; then
6752 ac_cv_use_statline='wxUSE_STATLINE=yes'
6753 else
6754 ac_cv_use_statline='wxUSE_STATLINE=no'
6755 fi
698dcdb6 6756
10f2d63a 6757else
698dcdb6 6758
10f2d63a
VZ
6759 LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}`
6760 if test "x$LINE" != x ; then
6761 eval "DEFAULT_$LINE"
6762 else
6763 no_cache=1
6764 fi
6765
6766 ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE
698dcdb6
VZ
6767
6768fi
10f2d63a
VZ
6769
6770
6771 eval "$ac_cv_use_statline"
6772 if test "$no_cache" != 1; then
6773 echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp
6774 fi
6775
6776 if test "$wxUSE_STATLINE" = yes; then
698dcdb6 6777 echo "$ac_t""yes" 1>&6
10f2d63a 6778 else
698dcdb6 6779 echo "$ac_t""no" 1>&6
10f2d63a 6780 fi
698dcdb6 6781
10f2d63a 6782
1e6feb95 6783 echo $ac_n "checking for --enable-stattext""... $ac_c" 1>&6
321d2b14 6784echo "configure:6785: checking for --enable-stattext" >&5
1e6feb95
VZ
6785 no_cache=0
6786 # Check whether --enable-stattext or --disable-stattext was given.
6787if test "${enable_stattext+set}" = set; then
6788 enableval="$enable_stattext"
6789
6790 if test "$enableval" = yes; then
6791 ac_cv_use_stattext='wxUSE_STATTEXT=yes'
6792 else
6793 ac_cv_use_stattext='wxUSE_STATTEXT=no'
6794 fi
6795
6796else
6797
6798 LINE=`grep "wxUSE_STATTEXT" ${wx_arg_cache_file}`
6799 if test "x$LINE" != x ; then
6800 eval "DEFAULT_$LINE"
6801 else
6802 no_cache=1
6803 fi
6804
6805 ac_cv_use_stattext='wxUSE_STATTEXT='$DEFAULT_wxUSE_STATTEXT
6806
6807fi
6808
6809
6810 eval "$ac_cv_use_stattext"
6811 if test "$no_cache" != 1; then
6812 echo $ac_cv_use_stattext >> ${wx_arg_cache_file}.tmp
6813 fi
6814
6815 if test "$wxUSE_STATTEXT" = yes; then
6816 echo "$ac_t""yes" 1>&6
6817 else
6818 echo "$ac_t""no" 1>&6
6819 fi
6820
6821
698dcdb6 6822 echo $ac_n "checking for --enable-statusbar""... $ac_c" 1>&6
321d2b14 6823echo "configure:6824: checking for --enable-statusbar" >&5
10f2d63a
VZ
6824 no_cache=0
6825 # Check whether --enable-statusbar or --disable-statusbar was given.
6826if test "${enable_statusbar+set}" = set; then
6827 enableval="$enable_statusbar"
698dcdb6 6828
10f2d63a
VZ
6829 if test "$enableval" = yes; then
6830 ac_cv_use_statusbar='wxUSE_STATUSBAR=yes'
6831 else
6832 ac_cv_use_statusbar='wxUSE_STATUSBAR=no'
6833 fi
698dcdb6 6834
10f2d63a 6835else
698dcdb6 6836
10f2d63a
VZ
6837 LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}`
6838 if test "x$LINE" != x ; then
6839 eval "DEFAULT_$LINE"
6840 else
6841 no_cache=1
6842 fi
6843
6844 ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR
698dcdb6
VZ
6845
6846fi
10f2d63a
VZ
6847
6848
6849 eval "$ac_cv_use_statusbar"
6850 if test "$no_cache" != 1; then
6851 echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp
6852 fi
6853
6854 if test "$wxUSE_STATUSBAR" = yes; then
698dcdb6 6855 echo "$ac_t""yes" 1>&6
10f2d63a 6856 else
698dcdb6 6857 echo "$ac_t""no" 1>&6
10f2d63a 6858 fi
698dcdb6 6859
10f2d63a 6860
698dcdb6 6861 echo $ac_n "checking for --enable-tabdialog""... $ac_c" 1>&6
321d2b14 6862echo "configure:6863: checking for --enable-tabdialog" >&5
10f2d63a
VZ
6863 no_cache=0
6864 # Check whether --enable-tabdialog or --disable-tabdialog was given.
6865if test "${enable_tabdialog+set}" = set; then
6866 enableval="$enable_tabdialog"
698dcdb6 6867
10f2d63a
VZ
6868 if test "$enableval" = yes; then
6869 ac_cv_use_tabdialog='wxUSE_TABDIALOG=yes'
6870 else
6871 ac_cv_use_tabdialog='wxUSE_TABDIALOG=no'
6872 fi
698dcdb6 6873
10f2d63a 6874else
698dcdb6 6875
10f2d63a
VZ
6876 LINE=`grep "wxUSE_TABDIALOG" ${wx_arg_cache_file}`
6877 if test "x$LINE" != x ; then
6878 eval "DEFAULT_$LINE"
6879 else
6880 no_cache=1
6881 fi
6882
6883 ac_cv_use_tabdialog='wxUSE_TABDIALOG='$DEFAULT_wxUSE_TABDIALOG
698dcdb6
VZ
6884
6885fi
10f2d63a
VZ
6886
6887
6888 eval "$ac_cv_use_tabdialog"
6889 if test "$no_cache" != 1; then
6890 echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp
6891 fi
6892
6893 if test "$wxUSE_TABDIALOG" = yes; then
698dcdb6 6894 echo "$ac_t""yes" 1>&6
10f2d63a 6895 else
698dcdb6 6896 echo "$ac_t""no" 1>&6
10f2d63a 6897 fi
698dcdb6 6898
10f2d63a 6899
1e6feb95 6900 echo $ac_n "checking for --enable-textctrl""... $ac_c" 1>&6
321d2b14 6901echo "configure:6902: checking for --enable-textctrl" >&5
1e6feb95
VZ
6902 no_cache=0
6903 # Check whether --enable-textctrl or --disable-textctrl was given.
6904if test "${enable_textctrl+set}" = set; then
6905 enableval="$enable_textctrl"
6906
6907 if test "$enableval" = yes; then
6908 ac_cv_use_textctrl='wxUSE_TEXTCTRL=yes'
6909 else
6910 ac_cv_use_textctrl='wxUSE_TEXTCTRL=no'
6911 fi
6912
6913else
6914
6915 LINE=`grep "wxUSE_TEXTCTRL" ${wx_arg_cache_file}`
6916 if test "x$LINE" != x ; then
6917 eval "DEFAULT_$LINE"
6918 else
6919 no_cache=1
6920 fi
6921
6922 ac_cv_use_textctrl='wxUSE_TEXTCTRL='$DEFAULT_wxUSE_TEXTCTRL
6923
6924fi
6925
6926
6927 eval "$ac_cv_use_textctrl"
6928 if test "$no_cache" != 1; then
6929 echo $ac_cv_use_textctrl >> ${wx_arg_cache_file}.tmp
6930 fi
6931
6932 if test "$wxUSE_TEXTCTRL" = yes; then
6933 echo "$ac_t""yes" 1>&6
6934 else
6935 echo "$ac_t""no" 1>&6
6936 fi
6937
6938
698dcdb6 6939 echo $ac_n "checking for --enable-togglebtn""... $ac_c" 1>&6
321d2b14 6940echo "configure:6941: checking for --enable-togglebtn" >&5
1db8dc4a
VZ
6941 no_cache=0
6942 # Check whether --enable-togglebtn or --disable-togglebtn was given.
6943if test "${enable_togglebtn+set}" = set; then
6944 enableval="$enable_togglebtn"
698dcdb6 6945
1db8dc4a
VZ
6946 if test "$enableval" = yes; then
6947 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes'
6948 else
6949 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=no'
6950 fi
698dcdb6 6951
1db8dc4a 6952else
698dcdb6 6953
1db8dc4a
VZ
6954 LINE=`grep "wxUSE_TOGGLEBTN" ${wx_arg_cache_file}`
6955 if test "x$LINE" != x ; then
6956 eval "DEFAULT_$LINE"
6957 else
6958 no_cache=1
6959 fi
6960
6961 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN='$DEFAULT_wxUSE_TOGGLEBTN
698dcdb6
VZ
6962
6963fi
1db8dc4a
VZ
6964
6965
6966 eval "$ac_cv_use_togglebtn"
6967 if test "$no_cache" != 1; then
6968 echo $ac_cv_use_togglebtn >> ${wx_arg_cache_file}.tmp
6969 fi
6970
6971 if test "$wxUSE_TOGGLEBTN" = yes; then
698dcdb6 6972 echo "$ac_t""yes" 1>&6
1db8dc4a 6973 else
698dcdb6 6974 echo "$ac_t""no" 1>&6
1db8dc4a 6975 fi
698dcdb6 6976
1db8dc4a 6977
698dcdb6 6978 echo $ac_n "checking for --enable-toolbar""... $ac_c" 1>&6
321d2b14 6979echo "configure:6980: checking for --enable-toolbar" >&5
10f2d63a
VZ
6980 no_cache=0
6981 # Check whether --enable-toolbar or --disable-toolbar was given.
6982if test "${enable_toolbar+set}" = set; then
6983 enableval="$enable_toolbar"
698dcdb6 6984
10f2d63a
VZ
6985 if test "$enableval" = yes; then
6986 ac_cv_use_toolbar='wxUSE_TOOLBAR=yes'
6987 else
6988 ac_cv_use_toolbar='wxUSE_TOOLBAR=no'
6989 fi
698dcdb6 6990
10f2d63a 6991else
698dcdb6 6992
10f2d63a
VZ
6993 LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}`
6994 if test "x$LINE" != x ; then
6995 eval "DEFAULT_$LINE"
6996 else
6997 no_cache=1
6998 fi
6999
7000 ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR
698dcdb6
VZ
7001
7002fi
10f2d63a
VZ
7003
7004
7005 eval "$ac_cv_use_toolbar"
7006 if test "$no_cache" != 1; then
7007 echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp
7008 fi
7009
7010 if test "$wxUSE_TOOLBAR" = yes; then
698dcdb6 7011 echo "$ac_t""yes" 1>&6
10f2d63a 7012 else
698dcdb6 7013 echo "$ac_t""no" 1>&6
10f2d63a 7014 fi
698dcdb6 7015
10f2d63a 7016
698dcdb6 7017 echo $ac_n "checking for --enable-tbarnative""... $ac_c" 1>&6
321d2b14 7018echo "configure:7019: checking for --enable-tbarnative" >&5
360d6699
VZ
7019 no_cache=0
7020 # Check whether --enable-tbarnative or --disable-tbarnative was given.
7021if test "${enable_tbarnative+set}" = set; then
7022 enableval="$enable_tbarnative"
698dcdb6 7023
360d6699
VZ
7024 if test "$enableval" = yes; then
7025 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes'
7026 else
7027 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no'
7028 fi
698dcdb6 7029
360d6699 7030else
698dcdb6 7031
360d6699
VZ
7032 LINE=`grep "wxUSE_TOOLBAR_NATIVE" ${wx_arg_cache_file}`
7033 if test "x$LINE" != x ; then
7034 eval "DEFAULT_$LINE"
7035 else
7036 no_cache=1
7037 fi
7038
7039 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE='$DEFAULT_wxUSE_TOOLBAR_NATIVE
698dcdb6
VZ
7040
7041fi
360d6699
VZ
7042
7043
7044 eval "$ac_cv_use_tbarnative"
7045 if test "$no_cache" != 1; then
7046 echo $ac_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp
7047 fi
7048
7049 if test "$wxUSE_TOOLBAR_NATIVE" = yes; then
698dcdb6 7050 echo "$ac_t""yes" 1>&6
360d6699 7051 else
698dcdb6 7052 echo "$ac_t""no" 1>&6
360d6699 7053 fi
698dcdb6 7054
360d6699 7055
698dcdb6 7056 echo $ac_n "checking for --enable-tbarsmpl""... $ac_c" 1>&6
321d2b14 7057echo "configure:7058: checking for --enable-tbarsmpl" >&5
360d6699
VZ
7058 no_cache=0
7059 # Check whether --enable-tbarsmpl or --disable-tbarsmpl was given.
7060if test "${enable_tbarsmpl+set}" = set; then
7061 enableval="$enable_tbarsmpl"
698dcdb6 7062
360d6699
VZ
7063 if test "$enableval" = yes; then
7064 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=yes'
7065 else
7066 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=no'
7067 fi
698dcdb6 7068
360d6699 7069else
698dcdb6 7070
360d6699
VZ
7071 LINE=`grep "wxUSE_TOOLBAR_SIMPLE" ${wx_arg_cache_file}`
7072 if test "x$LINE" != x ; then
7073 eval "DEFAULT_$LINE"
7074 else
7075 no_cache=1
7076 fi
7077
7078 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE='$DEFAULT_wxUSE_TOOLBAR_SIMPLE
698dcdb6
VZ
7079
7080fi
360d6699
VZ
7081
7082
7083 eval "$ac_cv_use_tbarsmpl"
7084 if test "$no_cache" != 1; then
7085 echo $ac_cv_use_tbarsmpl >> ${wx_arg_cache_file}.tmp
7086 fi
7087
7088 if test "$wxUSE_TOOLBAR_SIMPLE" = yes; then
698dcdb6 7089 echo "$ac_t""yes" 1>&6
360d6699 7090 else
698dcdb6 7091 echo "$ac_t""no" 1>&6
360d6699 7092 fi
698dcdb6 7093
360d6699 7094
698dcdb6 7095 echo $ac_n "checking for --enable-treectrl""... $ac_c" 1>&6
321d2b14 7096echo "configure:7097: checking for --enable-treectrl" >&5
10f2d63a
VZ
7097 no_cache=0
7098 # Check whether --enable-treectrl or --disable-treectrl was given.
7099if test "${enable_treectrl+set}" = set; then
7100 enableval="$enable_treectrl"
698dcdb6 7101
10f2d63a
VZ
7102 if test "$enableval" = yes; then
7103 ac_cv_use_treectrl='wxUSE_TREECTRL=yes'
7104 else
7105 ac_cv_use_treectrl='wxUSE_TREECTRL=no'
7106 fi
698dcdb6 7107
10f2d63a 7108else
698dcdb6 7109
10f2d63a
VZ
7110 LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}`
7111 if test "x$LINE" != x ; then
7112 eval "DEFAULT_$LINE"
7113 else
7114 no_cache=1
7115 fi
7116
7117 ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL
698dcdb6
VZ
7118
7119fi
10f2d63a
VZ
7120
7121
1e6feb95
VZ
7122 eval "$ac_cv_use_treectrl"
7123 if test "$no_cache" != 1; then
7124 echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp
7125 fi
7126
7127 if test "$wxUSE_TREECTRL" = yes; then
7128 echo "$ac_t""yes" 1>&6
7129 else
7130 echo "$ac_t""no" 1>&6
7131 fi
7132
7133
9926e4a4 7134 echo $ac_n "checking for --enable-tipwindow""... $ac_c" 1>&6
321d2b14 7135echo "configure:7136: checking for --enable-tipwindow" >&5
9926e4a4
VZ
7136 no_cache=0
7137 # Check whether --enable-tipwindow or --disable-tipwindow was given.
7138if test "${enable_tipwindow+set}" = set; then
7139 enableval="$enable_tipwindow"
7140
7141 if test "$enableval" = yes; then
7142 ac_cv_use_tipwindow='wxUSE_TIPWINDOW=yes'
7143 else
7144 ac_cv_use_tipwindow='wxUSE_TIPWINDOW=no'
7145 fi
7146
7147else
7148
7149 LINE=`grep "wxUSE_TIPWINDOW" ${wx_arg_cache_file}`
7150 if test "x$LINE" != x ; then
7151 eval "DEFAULT_$LINE"
7152 else
7153 no_cache=1
7154 fi
7155
7156 ac_cv_use_tipwindow='wxUSE_TIPWINDOW='$DEFAULT_wxUSE_TIPWINDOW
7157
7158fi
7159
7160
7161 eval "$ac_cv_use_tipwindow"
7162 if test "$no_cache" != 1; then
7163 echo $ac_cv_use_tipwindow >> ${wx_arg_cache_file}.tmp
7164 fi
7165
7166 if test "$wxUSE_TIPWINDOW" = yes; then
7167 echo "$ac_t""yes" 1>&6
7168 else
7169 echo "$ac_t""no" 1>&6
7170 fi
7171
7172
9f41d601 7173 echo $ac_n "checking for --enable-popupwin""... $ac_c" 1>&6
321d2b14 7174echo "configure:7175: checking for --enable-popupwin" >&5
9f41d601
RR
7175 no_cache=0
7176 # Check whether --enable-popupwin or --disable-popupwin was given.
7177if test "${enable_popupwin+set}" = set; then
7178 enableval="$enable_popupwin"
7179
7180 if test "$enableval" = yes; then
7181 ac_cv_use_popupwin='wxUSE_POPUPWIN=yes'
7182 else
7183 ac_cv_use_popupwin='wxUSE_POPUPWIN=no'
7184 fi
7185
7186else
7187
7188 LINE=`grep "wxUSE_POPUPWIN" ${wx_arg_cache_file}`
7189 if test "x$LINE" != x ; then
7190 eval "DEFAULT_$LINE"
7191 else
7192 no_cache=1
7193 fi
7194
7195 ac_cv_use_popupwin='wxUSE_POPUPWIN='$DEFAULT_wxUSE_POPUPWIN
7196
7197fi
7198
7199
7200 eval "$ac_cv_use_popupwin"
7201 if test "$no_cache" != 1; then
7202 echo $ac_cv_use_popupwin >> ${wx_arg_cache_file}.tmp
7203 fi
7204
7205 if test "$wxUSE_POPUPWIN" = yes; then
7206 echo "$ac_t""yes" 1>&6
7207 else
7208 echo "$ac_t""no" 1>&6
7209 fi
7210
7211
1e6feb95
VZ
7212
7213
7214 echo $ac_n "checking for --enable-commondlg""... $ac_c" 1>&6
321d2b14 7215echo "configure:7216: checking for --enable-commondlg" >&5
1e6feb95
VZ
7216 no_cache=0
7217 # Check whether --enable-commondlg or --disable-commondlg was given.
7218if test "${enable_commondlg+set}" = set; then
7219 enableval="$enable_commondlg"
7220
7221 if test "$enableval" = yes; then
7222 ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes'
7223 else
7224 ac_cv_use_commondlg='wxUSE_COMMONDLGS=no'
7225 fi
7226
7227else
7228
7229 LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}`
7230 if test "x$LINE" != x ; then
7231 eval "DEFAULT_$LINE"
7232 else
7233 no_cache=1
7234 fi
7235
7236 ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS
7237
7238fi
7239
7240
7241 eval "$ac_cv_use_commondlg"
7242 if test "$no_cache" != 1; then
7243 echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp
7244 fi
7245
7246 if test "$wxUSE_COMMONDLGS" = yes; then
7247 echo "$ac_t""yes" 1>&6
7248 else
7249 echo "$ac_t""no" 1>&6
7250 fi
7251
7252
7253 echo $ac_n "checking for --enable-choicedlg""... $ac_c" 1>&6
321d2b14 7254echo "configure:7255: checking for --enable-choicedlg" >&5
1e6feb95
VZ
7255 no_cache=0
7256 # Check whether --enable-choicedlg or --disable-choicedlg was given.
7257if test "${enable_choicedlg+set}" = set; then
7258 enableval="$enable_choicedlg"
7259
7260 if test "$enableval" = yes; then
7261 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=yes'
7262 else
7263 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=no'
7264 fi
7265
7266else
7267
7268 LINE=`grep "wxUSE_CHOICEDLG" ${wx_arg_cache_file}`
7269 if test "x$LINE" != x ; then
7270 eval "DEFAULT_$LINE"
7271 else
7272 no_cache=1
7273 fi
7274
7275 ac_cv_use_choicedlg='wxUSE_CHOICEDLG='$DEFAULT_wxUSE_CHOICEDLG
7276
7277fi
7278
7279
7280 eval "$ac_cv_use_choicedlg"
7281 if test "$no_cache" != 1; then
7282 echo $ac_cv_use_choicedlg >> ${wx_arg_cache_file}.tmp
7283 fi
7284
7285 if test "$wxUSE_CHOICEDLG" = yes; then
7286 echo "$ac_t""yes" 1>&6
7287 else
7288 echo "$ac_t""no" 1>&6
7289 fi
7290
7291
7292 echo $ac_n "checking for --enable-coldlg""... $ac_c" 1>&6
321d2b14 7293echo "configure:7294: checking for --enable-coldlg" >&5
1e6feb95
VZ
7294 no_cache=0
7295 # Check whether --enable-coldlg or --disable-coldlg was given.
7296if test "${enable_coldlg+set}" = set; then
7297 enableval="$enable_coldlg"
7298
7299 if test "$enableval" = yes; then
7300 ac_cv_use_coldlg='wxUSE_COLOURDLG=yes'
7301 else
7302 ac_cv_use_coldlg='wxUSE_COLOURDLG=no'
7303 fi
7304
7305else
7306
7307 LINE=`grep "wxUSE_COLOURDLG" ${wx_arg_cache_file}`
7308 if test "x$LINE" != x ; then
7309 eval "DEFAULT_$LINE"
7310 else
7311 no_cache=1
7312 fi
7313
7314 ac_cv_use_coldlg='wxUSE_COLOURDLG='$DEFAULT_wxUSE_COLOURDLG
7315
7316fi
7317
7318
7319 eval "$ac_cv_use_coldlg"
7320 if test "$no_cache" != 1; then
7321 echo $ac_cv_use_coldlg >> ${wx_arg_cache_file}.tmp
7322 fi
7323
7324 if test "$wxUSE_COLOURDLG" = yes; then
7325 echo "$ac_t""yes" 1>&6
7326 else
7327 echo "$ac_t""no" 1>&6
7328 fi
7329
7330
7331 echo $ac_n "checking for --enable-filedlg""... $ac_c" 1>&6
321d2b14 7332echo "configure:7333: checking for --enable-filedlg" >&5
1e6feb95
VZ
7333 no_cache=0
7334 # Check whether --enable-filedlg or --disable-filedlg was given.
7335if test "${enable_filedlg+set}" = set; then
7336 enableval="$enable_filedlg"
7337
7338 if test "$enableval" = yes; then
7339 ac_cv_use_filedlg='wxUSE_FILEDLG=yes'
7340 else
7341 ac_cv_use_filedlg='wxUSE_FILEDLG=no'
7342 fi
7343
7344else
7345
7346 LINE=`grep "wxUSE_FILEDLG" ${wx_arg_cache_file}`
7347 if test "x$LINE" != x ; then
7348 eval "DEFAULT_$LINE"
7349 else
7350 no_cache=1
7351 fi
7352
7353 ac_cv_use_filedlg='wxUSE_FILEDLG='$DEFAULT_wxUSE_FILEDLG
7354
7355fi
7356
7357
7358 eval "$ac_cv_use_filedlg"
7359 if test "$no_cache" != 1; then
7360 echo $ac_cv_use_filedlg >> ${wx_arg_cache_file}.tmp
7361 fi
7362
7363 if test "$wxUSE_FILEDLG" = yes; then
7364 echo "$ac_t""yes" 1>&6
7365 else
7366 echo "$ac_t""no" 1>&6
7367 fi
7368
7369
69d27ff7 7370 echo $ac_n "checking for --enable-finddlg""... $ac_c" 1>&6
321d2b14 7371echo "configure:7372: checking for --enable-finddlg" >&5
8db37e06 7372 no_cache=0
69d27ff7
MB
7373 # Check whether --enable-finddlg or --disable-finddlg was given.
7374if test "${enable_finddlg+set}" = set; then
7375 enableval="$enable_finddlg"
8db37e06
VZ
7376
7377 if test "$enableval" = yes; then
69d27ff7 7378 ac_cv_use_finddlg='wxUSE_FINDREPLDLG=yes'
8db37e06 7379 else
69d27ff7 7380 ac_cv_use_finddlg='wxUSE_FINDREPLDLG=no'
8db37e06
VZ
7381 fi
7382
7383else
7384
7385 LINE=`grep "wxUSE_FINDREPLDLG" ${wx_arg_cache_file}`
7386 if test "x$LINE" != x ; then
7387 eval "DEFAULT_$LINE"
7388 else
7389 no_cache=1
7390 fi
7391
69d27ff7 7392 ac_cv_use_finddlg='wxUSE_FINDREPLDLG='$DEFAULT_wxUSE_FINDREPLDLG
8db37e06
VZ
7393
7394fi
7395
7396
69d27ff7 7397 eval "$ac_cv_use_finddlg"
8db37e06 7398 if test "$no_cache" != 1; then
69d27ff7 7399 echo $ac_cv_use_finddlg >> ${wx_arg_cache_file}.tmp
8db37e06
VZ
7400 fi
7401
7402 if test "$wxUSE_FINDREPLDLG" = yes; then
7403 echo "$ac_t""yes" 1>&6
7404 else
7405 echo "$ac_t""no" 1>&6
7406 fi
7407
7408
1e6feb95 7409 echo $ac_n "checking for --enable-fontdlg""... $ac_c" 1>&6
321d2b14 7410echo "configure:7411: checking for --enable-fontdlg" >&5
1e6feb95
VZ
7411 no_cache=0
7412 # Check whether --enable-fontdlg or --disable-fontdlg was given.
7413if test "${enable_fontdlg+set}" = set; then
7414 enableval="$enable_fontdlg"
7415
7416 if test "$enableval" = yes; then
7417 ac_cv_use_fontdlg='wxUSE_FONTDLG=yes'
7418 else
7419 ac_cv_use_fontdlg='wxUSE_FONTDLG=no'
7420 fi
7421
7422else
7423
7424 LINE=`grep "wxUSE_FONTDLG" ${wx_arg_cache_file}`
7425 if test "x$LINE" != x ; then
7426 eval "DEFAULT_$LINE"
7427 else
7428 no_cache=1
7429 fi
7430
7431 ac_cv_use_fontdlg='wxUSE_FONTDLG='$DEFAULT_wxUSE_FONTDLG
7432
7433fi
7434
7435
7436 eval "$ac_cv_use_fontdlg"
7437 if test "$no_cache" != 1; then
7438 echo $ac_cv_use_fontdlg >> ${wx_arg_cache_file}.tmp
7439 fi
7440
7441 if test "$wxUSE_FONTDLG" = yes; then
7442 echo "$ac_t""yes" 1>&6
7443 else
7444 echo "$ac_t""no" 1>&6
7445 fi
7446
7447
7448 echo $ac_n "checking for --enable-dirdlg""... $ac_c" 1>&6
321d2b14 7449echo "configure:7450: checking for --enable-dirdlg" >&5
1e6feb95
VZ
7450 no_cache=0
7451 # Check whether --enable-dirdlg or --disable-dirdlg was given.
7452if test "${enable_dirdlg+set}" = set; then
7453 enableval="$enable_dirdlg"
7454
7455 if test "$enableval" = yes; then
7456 ac_cv_use_dirdlg='wxUSE_DIRDLG=yes'
7457 else
7458 ac_cv_use_dirdlg='wxUSE_DIRDLG=no'
7459 fi
7460
7461else
7462
7463 LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}`
7464 if test "x$LINE" != x ; then
7465 eval "DEFAULT_$LINE"
7466 else
7467 no_cache=1
7468 fi
7469
7470 ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG
7471
7472fi
7473
7474
7475 eval "$ac_cv_use_dirdlg"
10f2d63a 7476 if test "$no_cache" != 1; then
1e6feb95 7477 echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
7478 fi
7479
1e6feb95 7480 if test "$wxUSE_DIRDLG" = yes; then
698dcdb6 7481 echo "$ac_t""yes" 1>&6
10f2d63a 7482 else
698dcdb6 7483 echo "$ac_t""no" 1>&6
10f2d63a 7484 fi
698dcdb6
VZ
7485
7486
1e6feb95 7487 echo $ac_n "checking for --enable-msgdlg""... $ac_c" 1>&6
321d2b14 7488echo "configure:7489: checking for --enable-msgdlg" >&5
10f2d63a 7489 no_cache=0
1e6feb95
VZ
7490 # Check whether --enable-msgdlg or --disable-msgdlg was given.
7491if test "${enable_msgdlg+set}" = set; then
7492 enableval="$enable_msgdlg"
698dcdb6 7493
10f2d63a 7494 if test "$enableval" = yes; then
1e6feb95 7495 ac_cv_use_msgdlg='wxUSE_MSGDLG=yes'
10f2d63a 7496 else
1e6feb95 7497 ac_cv_use_msgdlg='wxUSE_MSGDLG=no'
10f2d63a 7498 fi
698dcdb6 7499
10f2d63a 7500else
698dcdb6 7501
1e6feb95 7502 LINE=`grep "wxUSE_MSGDLG" ${wx_arg_cache_file}`
10f2d63a
VZ
7503 if test "x$LINE" != x ; then
7504 eval "DEFAULT_$LINE"
7505 else
7506 no_cache=1
7507 fi
7508
1e6feb95 7509 ac_cv_use_msgdlg='wxUSE_MSGDLG='$DEFAULT_wxUSE_MSGDLG
698dcdb6
VZ
7510
7511fi
10f2d63a
VZ
7512
7513
1e6feb95 7514 eval "$ac_cv_use_msgdlg"
10f2d63a 7515 if test "$no_cache" != 1; then
1e6feb95 7516 echo $ac_cv_use_msgdlg >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
7517 fi
7518
1e6feb95 7519 if test "$wxUSE_MSGDLG" = yes; then
698dcdb6 7520 echo "$ac_t""yes" 1>&6
10f2d63a 7521 else
698dcdb6 7522 echo "$ac_t""no" 1>&6
10f2d63a 7523 fi
698dcdb6 7524
10f2d63a 7525
1e6feb95 7526 echo $ac_n "checking for --enable-numberdlg""... $ac_c" 1>&6
321d2b14 7527echo "configure:7528: checking for --enable-numberdlg" >&5
10f2d63a 7528 no_cache=0
1e6feb95
VZ
7529 # Check whether --enable-numberdlg or --disable-numberdlg was given.
7530if test "${enable_numberdlg+set}" = set; then
7531 enableval="$enable_numberdlg"
698dcdb6 7532
10f2d63a 7533 if test "$enableval" = yes; then
1e6feb95 7534 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=yes'
10f2d63a 7535 else
1e6feb95 7536 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=no'
10f2d63a 7537 fi
698dcdb6 7538
10f2d63a 7539else
698dcdb6 7540
1e6feb95 7541 LINE=`grep "wxUSE_NUMBERDLG" ${wx_arg_cache_file}`
10f2d63a
VZ
7542 if test "x$LINE" != x ; then
7543 eval "DEFAULT_$LINE"
7544 else
7545 no_cache=1
7546 fi
7547
1e6feb95 7548 ac_cv_use_numberdlg='wxUSE_NUMBERDLG='$DEFAULT_wxUSE_NUMBERDLG
698dcdb6
VZ
7549
7550fi
10f2d63a
VZ
7551
7552
1e6feb95 7553 eval "$ac_cv_use_numberdlg"
10f2d63a 7554 if test "$no_cache" != 1; then
1e6feb95 7555 echo $ac_cv_use_numberdlg >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
7556 fi
7557
1e6feb95 7558 if test "$wxUSE_NUMBERDLG" = yes; then
698dcdb6 7559 echo "$ac_t""yes" 1>&6
10f2d63a 7560 else
698dcdb6 7561 echo "$ac_t""no" 1>&6
10f2d63a 7562 fi
698dcdb6 7563
10f2d63a 7564
cbca9943 7565 echo $ac_n "checking for --enable-splash""... $ac_c" 1>&6
321d2b14 7566echo "configure:7567: checking for --enable-splash" >&5
cbca9943
VZ
7567 no_cache=0
7568 # Check whether --enable-splash or --disable-splash was given.
7569if test "${enable_splash+set}" = set; then
7570 enableval="$enable_splash"
7571
7572 if test "$enableval" = yes; then
7573 ac_cv_use_splash='wxUSE_SPLASH=yes'
7574 else
7575 ac_cv_use_splash='wxUSE_SPLASH=no'
7576 fi
7577
7578else
7579
7580 LINE=`grep "wxUSE_SPLASH" ${wx_arg_cache_file}`
7581 if test "x$LINE" != x ; then
7582 eval "DEFAULT_$LINE"
7583 else
7584 no_cache=1
7585 fi
7586
7587 ac_cv_use_splash='wxUSE_SPLASH='$DEFAULT_wxUSE_SPLASH
7588
7589fi
7590
7591
7592 eval "$ac_cv_use_splash"
7593 if test "$no_cache" != 1; then
7594 echo $ac_cv_use_splash >> ${wx_arg_cache_file}.tmp
7595 fi
7596
7597 if test "$wxUSE_SPLASH" = yes; then
7598 echo "$ac_t""yes" 1>&6
7599 else
7600 echo "$ac_t""no" 1>&6
7601 fi
7602
7603
698dcdb6 7604 echo $ac_n "checking for --enable-textdlg""... $ac_c" 1>&6
321d2b14 7605echo "configure:7606: checking for --enable-textdlg" >&5
10f2d63a
VZ
7606 no_cache=0
7607 # Check whether --enable-textdlg or --disable-textdlg was given.
7608if test "${enable_textdlg+set}" = set; then
7609 enableval="$enable_textdlg"
698dcdb6 7610
10f2d63a
VZ
7611 if test "$enableval" = yes; then
7612 ac_cv_use_textdlg='wxUSE_TEXTDLG=yes'
7613 else
7614 ac_cv_use_textdlg='wxUSE_TEXTDLG=no'
7615 fi
698dcdb6 7616
10f2d63a 7617else
698dcdb6 7618
10f2d63a
VZ
7619 LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}`
7620 if test "x$LINE" != x ; then
7621 eval "DEFAULT_$LINE"
7622 else
7623 no_cache=1
7624 fi
7625
7626 ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG
698dcdb6
VZ
7627
7628fi
10f2d63a
VZ
7629
7630
7631 eval "$ac_cv_use_textdlg"
7632 if test "$no_cache" != 1; then
7633 echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp
7634 fi
7635
7636 if test "$wxUSE_TEXTDLG" = yes; then
698dcdb6 7637 echo "$ac_t""yes" 1>&6
10f2d63a 7638 else
698dcdb6 7639 echo "$ac_t""no" 1>&6
10f2d63a 7640 fi
698dcdb6 7641
10f2d63a 7642
698dcdb6 7643 echo $ac_n "checking for --enable-tipdlg""... $ac_c" 1>&6
321d2b14 7644echo "configure:7645: checking for --enable-tipdlg" >&5
10f2d63a
VZ
7645 no_cache=0
7646 # Check whether --enable-tipdlg or --disable-tipdlg was given.
7647if test "${enable_tipdlg+set}" = set; then
7648 enableval="$enable_tipdlg"
698dcdb6 7649
10f2d63a
VZ
7650 if test "$enableval" = yes; then
7651 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes'
7652 else
7653 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no'
7654 fi
698dcdb6 7655
10f2d63a 7656else
698dcdb6 7657
10f2d63a
VZ
7658 LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}`
7659 if test "x$LINE" != x ; then
7660 eval "DEFAULT_$LINE"
7661 else
7662 no_cache=1
7663 fi
7664
7665 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS
698dcdb6
VZ
7666
7667fi
10f2d63a
VZ
7668
7669
7670 eval "$ac_cv_use_tipdlg"
7671 if test "$no_cache" != 1; then
7672 echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp
7673 fi
7674
7675 if test "$wxUSE_STARTUP_TIPS" = yes; then
698dcdb6 7676 echo "$ac_t""yes" 1>&6
10f2d63a 7677 else
698dcdb6 7678 echo "$ac_t""no" 1>&6
10f2d63a 7679 fi
698dcdb6 7680
10f2d63a 7681
698dcdb6 7682 echo $ac_n "checking for --enable-progressdlg""... $ac_c" 1>&6
321d2b14 7683echo "configure:7684: checking for --enable-progressdlg" >&5
10f2d63a
VZ
7684 no_cache=0
7685 # Check whether --enable-progressdlg or --disable-progressdlg was given.
7686if test "${enable_progressdlg+set}" = set; then
7687 enableval="$enable_progressdlg"
698dcdb6 7688
10f2d63a
VZ
7689 if test "$enableval" = yes; then
7690 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes'
7691 else
7692 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no'
7693 fi
698dcdb6 7694
10f2d63a 7695else
698dcdb6 7696
10f2d63a
VZ
7697 LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}`
7698 if test "x$LINE" != x ; then
7699 eval "DEFAULT_$LINE"
7700 else
7701 no_cache=1
7702 fi
7703
7704 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG
698dcdb6
VZ
7705
7706fi
10f2d63a
VZ
7707
7708
7709 eval "$ac_cv_use_progressdlg"
7710 if test "$no_cache" != 1; then
7711 echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp
7712 fi
7713
7714 if test "$wxUSE_PROGRESSDLG" = yes; then
698dcdb6 7715 echo "$ac_t""yes" 1>&6
10f2d63a 7716 else
698dcdb6 7717 echo "$ac_t""no" 1>&6
10f2d63a 7718 fi
698dcdb6 7719
10f2d63a 7720
b1f5d087 7721 echo $ac_n "checking for --enable-wizarddlg""... $ac_c" 1>&6
321d2b14 7722echo "configure:7723: checking for --enable-wizarddlg" >&5
b1f5d087
VZ
7723 no_cache=0
7724 # Check whether --enable-wizarddlg or --disable-wizarddlg was given.
7725if test "${enable_wizarddlg+set}" = set; then
7726 enableval="$enable_wizarddlg"
7727
7728 if test "$enableval" = yes; then
7729 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=yes'
7730 else
7731 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=no'
7732 fi
7733
7734else
7735
7736 LINE=`grep "wxUSE_WIZARDDLG" ${wx_arg_cache_file}`
7737 if test "x$LINE" != x ; then
7738 eval "DEFAULT_$LINE"
7739 else
7740 no_cache=1
7741 fi
7742
7743 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG='$DEFAULT_wxUSE_WIZARDDLG
7744
7745fi
7746
7747
7748 eval "$ac_cv_use_wizarddlg"
7749 if test "$no_cache" != 1; then
7750 echo $ac_cv_use_wizarddlg >> ${wx_arg_cache_file}.tmp
7751 fi
7752
7753 if test "$wxUSE_WIZARDDLG" = yes; then
7754 echo "$ac_t""yes" 1>&6
7755 else
7756 echo "$ac_t""no" 1>&6
7757 fi
7758
7759
7760
7761
1e6feb95 7762 echo $ac_n "checking for --enable-menus""... $ac_c" 1>&6
321d2b14 7763echo "configure:7764: checking for --enable-menus" >&5
1e6feb95
VZ
7764 no_cache=0
7765 # Check whether --enable-menus or --disable-menus was given.
7766if test "${enable_menus+set}" = set; then
7767 enableval="$enable_menus"
7768
7769 if test "$enableval" = yes; then
7770 ac_cv_use_menus='wxUSE_MENUS=yes'
7771 else
7772 ac_cv_use_menus='wxUSE_MENUS=no'
7773 fi
7774
7775else
7776
7777 LINE=`grep "wxUSE_MENUS" ${wx_arg_cache_file}`
7778 if test "x$LINE" != x ; then
7779 eval "DEFAULT_$LINE"
7780 else
7781 no_cache=1
7782 fi
7783
7784 ac_cv_use_menus='wxUSE_MENUS='$DEFAULT_wxUSE_MENUS
7785
7786fi
7787
7788
7789 eval "$ac_cv_use_menus"
7790 if test "$no_cache" != 1; then
7791 echo $ac_cv_use_menus >> ${wx_arg_cache_file}.tmp
7792 fi
7793
7794 if test "$wxUSE_MENUS" = yes; then
7795 echo "$ac_t""yes" 1>&6
7796 else
7797 echo "$ac_t""no" 1>&6
7798 fi
7799
7800
698dcdb6 7801 echo $ac_n "checking for --enable-miniframe""... $ac_c" 1>&6
321d2b14 7802echo "configure:7803: checking for --enable-miniframe" >&5
10f2d63a
VZ
7803 no_cache=0
7804 # Check whether --enable-miniframe or --disable-miniframe was given.
7805if test "${enable_miniframe+set}" = set; then
7806 enableval="$enable_miniframe"
698dcdb6 7807
10f2d63a
VZ
7808 if test "$enableval" = yes; then
7809 ac_cv_use_miniframe='wxUSE_MINIFRAME=yes'
7810 else
7811 ac_cv_use_miniframe='wxUSE_MINIFRAME=no'
7812 fi
698dcdb6 7813
10f2d63a 7814else
698dcdb6 7815
10f2d63a
VZ
7816 LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}`
7817 if test "x$LINE" != x ; then
7818 eval "DEFAULT_$LINE"
7819 else
7820 no_cache=1
7821 fi
7822
7823 ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME
698dcdb6
VZ
7824
7825fi
10f2d63a
VZ
7826
7827
7828 eval "$ac_cv_use_miniframe"
7829 if test "$no_cache" != 1; then
7830 echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp
7831 fi
7832
7833 if test "$wxUSE_MINIFRAME" = yes; then
698dcdb6 7834 echo "$ac_t""yes" 1>&6
10f2d63a 7835 else
698dcdb6 7836 echo "$ac_t""no" 1>&6
10f2d63a 7837 fi
698dcdb6 7838
10f2d63a 7839
698dcdb6 7840 echo $ac_n "checking for --enable-tooltips""... $ac_c" 1>&6
321d2b14 7841echo "configure:7842: checking for --enable-tooltips" >&5
10f2d63a
VZ
7842 no_cache=0
7843 # Check whether --enable-tooltips or --disable-tooltips was given.
7844if test "${enable_tooltips+set}" = set; then
7845 enableval="$enable_tooltips"
698dcdb6 7846
10f2d63a
VZ
7847 if test "$enableval" = yes; then
7848 ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes'
7849 else
7850 ac_cv_use_tooltips='wxUSE_TOOLTIPS=no'
7851 fi
698dcdb6 7852
10f2d63a 7853else
698dcdb6 7854
10f2d63a
VZ
7855 LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}`
7856 if test "x$LINE" != x ; then
7857 eval "DEFAULT_$LINE"
7858 else
7859 no_cache=1
7860 fi
7861
7862 ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS
698dcdb6
VZ
7863
7864fi
10f2d63a
VZ
7865
7866
7867 eval "$ac_cv_use_tooltips"
7868 if test "$no_cache" != 1; then
7869 echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp
7870 fi
7871
7872 if test "$wxUSE_TOOLTIPS" = yes; then
698dcdb6 7873 echo "$ac_t""yes" 1>&6
10f2d63a 7874 else
698dcdb6 7875 echo "$ac_t""no" 1>&6
10f2d63a 7876 fi
698dcdb6 7877
10f2d63a 7878
698dcdb6 7879 echo $ac_n "checking for --enable-splines""... $ac_c" 1>&6
321d2b14 7880echo "configure:7881: checking for --enable-splines" >&5
10f2d63a
VZ
7881 no_cache=0
7882 # Check whether --enable-splines or --disable-splines was given.
7883if test "${enable_splines+set}" = set; then
7884 enableval="$enable_splines"
698dcdb6 7885
10f2d63a
VZ
7886 if test "$enableval" = yes; then
7887 ac_cv_use_splines='wxUSE_SPLINES=yes'
7888 else
7889 ac_cv_use_splines='wxUSE_SPLINES=no'
7890 fi
698dcdb6 7891
10f2d63a 7892else
698dcdb6 7893
10f2d63a
VZ
7894 LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}`
7895 if test "x$LINE" != x ; then
7896 eval "DEFAULT_$LINE"
7897 else
7898 no_cache=1
7899 fi
7900
7901 ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES
698dcdb6
VZ
7902
7903fi
10f2d63a
VZ
7904
7905
7906 eval "$ac_cv_use_splines"
7907 if test "$no_cache" != 1; then
7908 echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp
7909 fi
7910
7911 if test "$wxUSE_SPLINES" = yes; then
698dcdb6 7912 echo "$ac_t""yes" 1>&6
10f2d63a 7913 else
698dcdb6 7914 echo "$ac_t""no" 1>&6
10f2d63a 7915 fi
698dcdb6 7916
10f2d63a 7917
698dcdb6 7918 echo $ac_n "checking for --enable-validators""... $ac_c" 1>&6
321d2b14 7919echo "configure:7920: checking for --enable-validators" >&5
10f2d63a
VZ
7920 no_cache=0
7921 # Check whether --enable-validators or --disable-validators was given.
7922if test "${enable_validators+set}" = set; then
7923 enableval="$enable_validators"
698dcdb6 7924
10f2d63a
VZ
7925 if test "$enableval" = yes; then
7926 ac_cv_use_validators='wxUSE_VALIDATORS=yes'
7927 else
7928 ac_cv_use_validators='wxUSE_VALIDATORS=no'
7929 fi
698dcdb6 7930
10f2d63a 7931else
698dcdb6 7932
10f2d63a
VZ
7933 LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}`
7934 if test "x$LINE" != x ; then
7935 eval "DEFAULT_$LINE"
7936 else
7937 no_cache=1
7938 fi
7939
7940 ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS
698dcdb6
VZ
7941
7942fi
10f2d63a
VZ
7943
7944
7945 eval "$ac_cv_use_validators"
7946 if test "$no_cache" != 1; then
7947 echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp
7948 fi
7949
7950 if test "$wxUSE_VALIDATORS" = yes; then
698dcdb6 7951 echo "$ac_t""yes" 1>&6
10f2d63a 7952 else
698dcdb6 7953 echo "$ac_t""no" 1>&6
10f2d63a 7954 fi
698dcdb6 7955
10f2d63a 7956
698dcdb6 7957 echo $ac_n "checking for --enable-busyinfo""... $ac_c" 1>&6
321d2b14 7958echo "configure:7959: checking for --enable-busyinfo" >&5
10f2d63a
VZ
7959 no_cache=0
7960 # Check whether --enable-busyinfo or --disable-busyinfo was given.
7961if test "${enable_busyinfo+set}" = set; then
7962 enableval="$enable_busyinfo"
698dcdb6 7963
10f2d63a
VZ
7964 if test "$enableval" = yes; then
7965 ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes'
7966 else
7967 ac_cv_use_busyinfo='wxUSE_BUSYINFO=no'
7968 fi
698dcdb6 7969
10f2d63a 7970else
698dcdb6 7971
10f2d63a
VZ
7972 LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}`
7973 if test "x$LINE" != x ; then
7974 eval "DEFAULT_$LINE"
7975 else
7976 no_cache=1
7977 fi
7978
7979 ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO
698dcdb6
VZ
7980
7981fi
10f2d63a
VZ
7982
7983
7984 eval "$ac_cv_use_busyinfo"
7985 if test "$no_cache" != 1; then
7986 echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp
7987 fi
7988
7989 if test "$wxUSE_BUSYINFO" = yes; then
698dcdb6 7990 echo "$ac_t""yes" 1>&6
10f2d63a 7991 else
698dcdb6 7992 echo "$ac_t""no" 1>&6
10f2d63a 7993 fi
698dcdb6 7994
10f2d63a 7995
698dcdb6 7996 echo $ac_n "checking for --enable-joystick""... $ac_c" 1>&6
321d2b14 7997echo "configure:7998: checking for --enable-joystick" >&5
f6bcfd97
BP
7998 no_cache=0
7999 # Check whether --enable-joystick or --disable-joystick was given.
8000if test "${enable_joystick+set}" = set; then
8001 enableval="$enable_joystick"
698dcdb6 8002
f6bcfd97
BP
8003 if test "$enableval" = yes; then
8004 ac_cv_use_joystick='wxUSE_JOYSTICK=yes'
8005 else
8006 ac_cv_use_joystick='wxUSE_JOYSTICK=no'
8007 fi
698dcdb6 8008
f6bcfd97 8009else
698dcdb6 8010
f6bcfd97
BP
8011 LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}`
8012 if test "x$LINE" != x ; then
8013 eval "DEFAULT_$LINE"
8014 else
8015 no_cache=1
8016 fi
8017
8018 ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK
698dcdb6
VZ
8019
8020fi
f6bcfd97
BP
8021
8022
8023 eval "$ac_cv_use_joystick"
8024 if test "$no_cache" != 1; then
8025 echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp
8026 fi
8027
8028 if test "$wxUSE_JOYSTICK" = yes; then
698dcdb6 8029 echo "$ac_t""yes" 1>&6
f6bcfd97 8030 else
698dcdb6 8031 echo "$ac_t""no" 1>&6
f6bcfd97 8032 fi
698dcdb6
VZ
8033
8034
1e6feb95 8035 echo $ac_n "checking for --enable-metafile""... $ac_c" 1>&6
321d2b14 8036echo "configure:8037: checking for --enable-metafile" >&5
1e6feb95
VZ
8037 no_cache=0
8038 # Check whether --enable-metafile or --disable-metafile was given.
8039if test "${enable_metafile+set}" = set; then
8040 enableval="$enable_metafile"
8041
8042 if test "$enableval" = yes; then
8043 ac_cv_use_metafile='wxUSE_METAFILE=yes'
8044 else
8045 ac_cv_use_metafile='wxUSE_METAFILE=no'
8046 fi
8047
8048else
8049
8050 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
8051 if test "x$LINE" != x ; then
8052 eval "DEFAULT_$LINE"
8053 else
8054 no_cache=1
8055 fi
8056
8057 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
8058
8059fi
8060
8061
8062 eval "$ac_cv_use_metafile"
8063 if test "$no_cache" != 1; then
8064 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
8065 fi
8066
8067 if test "$wxUSE_METAFILE" = yes; then
8068 echo "$ac_t""yes" 1>&6
8069 else
8070 echo "$ac_t""no" 1>&6
8071 fi
8072
8073
24fd6d87 8074 echo $ac_n "checking for --enable-dragimage""... $ac_c" 1>&6
321d2b14 8075echo "configure:8076: checking for --enable-dragimage" >&5
24fd6d87
VZ
8076 no_cache=0
8077 # Check whether --enable-dragimage or --disable-dragimage was given.
8078if test "${enable_dragimage+set}" = set; then
8079 enableval="$enable_dragimage"
8080
8081 if test "$enableval" = yes; then
8082 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=yes'
8083 else
8084 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=no'
8085 fi
8086
8087else
8088
8089 LINE=`grep "wxUSE_DRAGIMAGE" ${wx_arg_cache_file}`
8090 if test "x$LINE" != x ; then
8091 eval "DEFAULT_$LINE"
8092 else
8093 no_cache=1
8094 fi
8095
8096 ac_cv_use_dragimage='wxUSE_DRAGIMAGE='$DEFAULT_wxUSE_DRAGIMAGE
8097
8098fi
8099
8100
8101 eval "$ac_cv_use_dragimage"
8102 if test "$no_cache" != 1; then
8103 echo $ac_cv_use_dragimage >> ${wx_arg_cache_file}.tmp
8104 fi
8105
8106 if test "$wxUSE_DRAGIMAGE" = yes; then
8107 echo "$ac_t""yes" 1>&6
8108 else
8109 echo "$ac_t""no" 1>&6
8110 fi
8111
8112
10f2d63a 8113
698dcdb6 8114
edae8572 8115 echo $ac_n "checking for --enable-palette""... $ac_c" 1>&6
321d2b14 8116echo "configure:8117: checking for --enable-palette" >&5
edae8572
VZ
8117 no_cache=0
8118 # Check whether --enable-palette or --disable-palette was given.
8119if test "${enable_palette+set}" = set; then
8120 enableval="$enable_palette"
8121
8122 if test "$enableval" = yes; then
8123 ac_cv_use_palette='wxUSE_PALETTE=yes'
8124 else
8125 ac_cv_use_palette='wxUSE_PALETTE=no'
8126 fi
8127
8128else
8129
8130 LINE=`grep "wxUSE_PALETTE" ${wx_arg_cache_file}`
8131 if test "x$LINE" != x ; then
8132 eval "DEFAULT_$LINE"
8133 else
8134 no_cache=1
8135 fi
8136
8137 ac_cv_use_palette='wxUSE_PALETTE='$DEFAULT_wxUSE_PALETTE
8138
8139fi
8140
8141
8142 eval "$ac_cv_use_palette"
8143 if test "$no_cache" != 1; then
8144 echo $ac_cv_use_palette >> ${wx_arg_cache_file}.tmp
8145 fi
8146
8147 if test "$wxUSE_PALETTE" = yes; then
8148 echo "$ac_t""yes" 1>&6
8149 else
8150 echo "$ac_t""no" 1>&6
8151 fi
8152
8153
698dcdb6 8154 echo $ac_n "checking for --enable-image""... $ac_c" 1>&6
321d2b14 8155echo "configure:8156: checking for --enable-image" >&5
0046ff7c
VS
8156 no_cache=0
8157 # Check whether --enable-image or --disable-image was given.
8158if test "${enable_image+set}" = set; then
8159 enableval="$enable_image"
698dcdb6 8160
0046ff7c
VS
8161 if test "$enableval" = yes; then
8162 ac_cv_use_image='wxUSE_IMAGE=yes'
8163 else
8164 ac_cv_use_image='wxUSE_IMAGE=no'
8165 fi
698dcdb6 8166
0046ff7c 8167else
698dcdb6 8168
0046ff7c
VS
8169 LINE=`grep "wxUSE_IMAGE" ${wx_arg_cache_file}`
8170 if test "x$LINE" != x ; then
8171 eval "DEFAULT_$LINE"
8172 else
8173 no_cache=1
8174 fi
8175
8176 ac_cv_use_image='wxUSE_IMAGE='$DEFAULT_wxUSE_IMAGE
698dcdb6
VZ
8177
8178fi
0046ff7c
VS
8179
8180
8181 eval "$ac_cv_use_image"
8182 if test "$no_cache" != 1; then
8183 echo $ac_cv_use_image >> ${wx_arg_cache_file}.tmp
8184 fi
8185
8186 if test "$wxUSE_IMAGE" = yes; then
698dcdb6 8187 echo "$ac_t""yes" 1>&6
0046ff7c 8188 else
698dcdb6 8189 echo "$ac_t""no" 1>&6
0046ff7c 8190 fi
698dcdb6 8191
0046ff7c 8192
698dcdb6 8193 echo $ac_n "checking for --enable-gif""... $ac_c" 1>&6
321d2b14 8194echo "configure:8195: checking for --enable-gif" >&5
10f2d63a
VZ
8195 no_cache=0
8196 # Check whether --enable-gif or --disable-gif was given.
8197if test "${enable_gif+set}" = set; then
8198 enableval="$enable_gif"
698dcdb6 8199
10f2d63a
VZ
8200 if test "$enableval" = yes; then
8201 ac_cv_use_gif='wxUSE_GIF=yes'
8202 else
8203 ac_cv_use_gif='wxUSE_GIF=no'
8204 fi
698dcdb6 8205
10f2d63a 8206else
698dcdb6 8207
10f2d63a
VZ
8208 LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}`
8209 if test "x$LINE" != x ; then
8210 eval "DEFAULT_$LINE"
8211 else
8212 no_cache=1
8213 fi
8214
8215 ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF
698dcdb6
VZ
8216
8217fi
10f2d63a
VZ
8218
8219
8220 eval "$ac_cv_use_gif"
8221 if test "$no_cache" != 1; then
8222 echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp
8223 fi
8224
8225 if test "$wxUSE_GIF" = yes; then
698dcdb6 8226 echo "$ac_t""yes" 1>&6
10f2d63a 8227 else
698dcdb6 8228 echo "$ac_t""no" 1>&6
10f2d63a 8229 fi
698dcdb6 8230
10f2d63a 8231
698dcdb6 8232 echo $ac_n "checking for --enable-pcx""... $ac_c" 1>&6
321d2b14 8233echo "configure:8234: checking for --enable-pcx" >&5
10f2d63a
VZ
8234 no_cache=0
8235 # Check whether --enable-pcx or --disable-pcx was given.
8236if test "${enable_pcx+set}" = set; then
8237 enableval="$enable_pcx"
698dcdb6 8238
10f2d63a
VZ
8239 if test "$enableval" = yes; then
8240 ac_cv_use_pcx='wxUSE_PCX=yes'
8241 else
8242 ac_cv_use_pcx='wxUSE_PCX=no'
8243 fi
698dcdb6 8244
10f2d63a 8245else
698dcdb6 8246
10f2d63a
VZ
8247 LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}`
8248 if test "x$LINE" != x ; then
8249 eval "DEFAULT_$LINE"
8250 else
8251 no_cache=1
8252 fi
8253
8254 ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX
698dcdb6
VZ
8255
8256fi
10f2d63a
VZ
8257
8258
8259 eval "$ac_cv_use_pcx"
8260 if test "$no_cache" != 1; then
8261 echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp
8262 fi
8263
8264 if test "$wxUSE_PCX" = yes; then
698dcdb6 8265 echo "$ac_t""yes" 1>&6
10f2d63a 8266 else
698dcdb6 8267 echo "$ac_t""no" 1>&6
10f2d63a 8268 fi
698dcdb6 8269
10f2d63a 8270
4b6b4dfc 8271 echo $ac_n "checking for --enable-iff""... $ac_c" 1>&6
321d2b14 8272echo "configure:8273: checking for --enable-iff" >&5
4b6b4dfc
RR
8273 no_cache=0
8274 # Check whether --enable-iff or --disable-iff was given.
8275if test "${enable_iff+set}" = set; then
8276 enableval="$enable_iff"
8277
8278 if test "$enableval" = yes; then
8279 ac_cv_use_iff='wxUSE_IFF=yes'
8280 else
8281 ac_cv_use_iff='wxUSE_IFF=no'
8282 fi
8283
8284else
8285
8286 LINE=`grep "wxUSE_IFF" ${wx_arg_cache_file}`
8287 if test "x$LINE" != x ; then
8288 eval "DEFAULT_$LINE"
8289 else
8290 no_cache=1
8291 fi
8292
8293 ac_cv_use_iff='wxUSE_IFF='$DEFAULT_wxUSE_IFF
8294
8295fi
8296
8297
8298 eval "$ac_cv_use_iff"
8299 if test "$no_cache" != 1; then
8300 echo $ac_cv_use_iff >> ${wx_arg_cache_file}.tmp
8301 fi
8302
8303 if test "$wxUSE_IFF" = yes; then
8304 echo "$ac_t""yes" 1>&6
8305 else
8306 echo "$ac_t""no" 1>&6
8307 fi
8308
8309
698dcdb6 8310 echo $ac_n "checking for --enable-pnm""... $ac_c" 1>&6
321d2b14 8311echo "configure:8312: checking for --enable-pnm" >&5
10f2d63a
VZ
8312 no_cache=0
8313 # Check whether --enable-pnm or --disable-pnm was given.
8314if test "${enable_pnm+set}" = set; then
8315 enableval="$enable_pnm"
698dcdb6 8316
10f2d63a
VZ
8317 if test "$enableval" = yes; then
8318 ac_cv_use_pnm='wxUSE_PNM=yes'
8319 else
8320 ac_cv_use_pnm='wxUSE_PNM=no'
8321 fi
698dcdb6 8322
10f2d63a 8323else
698dcdb6 8324
10f2d63a
VZ
8325 LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}`
8326 if test "x$LINE" != x ; then
8327 eval "DEFAULT_$LINE"
8328 else
8329 no_cache=1
8330 fi
8331
8332 ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM
698dcdb6
VZ
8333
8334fi
10f2d63a
VZ
8335
8336
8337 eval "$ac_cv_use_pnm"
8338 if test "$no_cache" != 1; then
8339 echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp
8340 fi
8341
8342 if test "$wxUSE_PNM" = yes; then
698dcdb6 8343 echo "$ac_t""yes" 1>&6
10f2d63a 8344 else
698dcdb6 8345 echo "$ac_t""no" 1>&6
10f2d63a 8346 fi
698dcdb6 8347
10f2d63a 8348
69d27ff7 8349 echo $ac_n "checking for --enable-xpm""... $ac_c" 1>&6
321d2b14 8350echo "configure:8351: checking for --enable-xpm" >&5
0046ff7c 8351 no_cache=0
69d27ff7
MB
8352 # Check whether --enable-xpm or --disable-xpm was given.
8353if test "${enable_xpm+set}" = set; then
8354 enableval="$enable_xpm"
698dcdb6 8355
0046ff7c 8356 if test "$enableval" = yes; then
69d27ff7 8357 ac_cv_use_xpm='wxUSE_XPM=yes'
0046ff7c 8358 else
69d27ff7 8359 ac_cv_use_xpm='wxUSE_XPM=no'
0046ff7c 8360 fi
698dcdb6 8361
0046ff7c 8362else
698dcdb6 8363
0046ff7c
VS
8364 LINE=`grep "wxUSE_XPM" ${wx_arg_cache_file}`
8365 if test "x$LINE" != x ; then
8366 eval "DEFAULT_$LINE"
8367 else
8368 no_cache=1
8369 fi
8370
69d27ff7 8371 ac_cv_use_xpm='wxUSE_XPM='$DEFAULT_wxUSE_XPM
698dcdb6
VZ
8372
8373fi
0046ff7c
VS
8374
8375
69d27ff7 8376 eval "$ac_cv_use_xpm"
0046ff7c 8377 if test "$no_cache" != 1; then
69d27ff7 8378 echo $ac_cv_use_xpm >> ${wx_arg_cache_file}.tmp
0046ff7c
VS
8379 fi
8380
8381 if test "$wxUSE_XPM" = yes; then
698dcdb6 8382 echo "$ac_t""yes" 1>&6
0046ff7c 8383 else
698dcdb6 8384 echo "$ac_t""no" 1>&6
0046ff7c 8385 fi
698dcdb6 8386
0046ff7c 8387
c7206e64 8388 echo $ac_n "checking for --enable-ico_cur""... $ac_c" 1>&6
321d2b14 8389echo "configure:8390: checking for --enable-ico_cur" >&5
658974ae 8390 no_cache=0
c7206e64
VS
8391 # Check whether --enable-ico_cur or --disable-ico_cur was given.
8392if test "${enable_ico_cur+set}" = set; then
8393 enableval="$enable_ico_cur"
658974ae
VS
8394
8395 if test "$enableval" = yes; then
c7206e64 8396 ac_cv_use_ico_cur='wxUSE_ICO_CUR=yes'
658974ae 8397 else
c7206e64 8398 ac_cv_use_ico_cur='wxUSE_ICO_CUR=no'
658974ae
VS
8399 fi
8400
8401else
8402
8403 LINE=`grep "wxUSE_ICO_CUR" ${wx_arg_cache_file}`
8404 if test "x$LINE" != x ; then
8405 eval "DEFAULT_$LINE"
8406 else
8407 no_cache=1
8408 fi
8409
c7206e64 8410 ac_cv_use_ico_cur='wxUSE_ICO_CUR='$DEFAULT_wxUSE_ICO_CUR
658974ae
VS
8411
8412fi
8413
8414
c7206e64 8415 eval "$ac_cv_use_ico_cur"
658974ae 8416 if test "$no_cache" != 1; then
c7206e64 8417 echo $ac_cv_use_ico_cur >> ${wx_arg_cache_file}.tmp
658974ae
VS
8418 fi
8419
8420 if test "$wxUSE_ICO_CUR" = yes; then
8421 echo "$ac_t""yes" 1>&6
8422 else
8423 echo "$ac_t""no" 1>&6
8424 fi
8425
8426
b12915c1
VZ
8427fi
8428
d558c907
VS
8429case "${host}" in
8430 *-pc-os2_emx | *-pc-os2-emx )
8431 LEX_STEM="lexyy"
8432 ;;
8433 *)
8434 PATH_IFS=':'
8435 LEX_STEM="lex.yy"
8436 ;;
8437esac
8438
8439
698dcdb6 8440
10f2d63a
VZ
8441 echo "saving argument cache $wx_arg_cache_file"
8442 mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file}
698dcdb6 8443
10f2d63a 8444
698dcdb6
VZ
8445
8446echo $ac_n "checking for toolkit""... $ac_c" 1>&6
321d2b14 8447echo "configure:8448: checking for toolkit" >&5
10f2d63a
VZ
8448
8449if test "$wxUSE_GUI" = "yes"; then
8450
3a922bb4
RL
8451 if test "$USE_BEOS" = 1; then
8452 { echo "configure: error: BeOS GUI is not supported yet, use --disable-gui" 1>&2; exit 1; }
8453 fi
b12915c1 8454
3a922bb4
RL
8455 if test "$TOOLKIT_GIVEN" = 1; then
8456 for toolkit in `echo $ALL_TOOLKITS`; do
8457 var=wxUSE_$toolkit
8458 eval "value=\$${var}"
8459 eval "$var=`echo \$value | sed -e "s/yes/1/" -e "s/no/0/"`"
8460 done
10f2d63a 8461 else
3a922bb4
RL
8462 for toolkit in `echo $ALL_TOOLKITS`; do
8463 if test "$has_toolkit_in_cache" != 1; then
8464 var=DEFAULT_DEFAULT_wxUSE_$toolkit
8465 else
8466 var=DEFAULT_wxUSE_$toolkit
8467 fi
8468 eval "wxUSE_$toolkit=\$${var}"
8469 done
10f2d63a 8470 fi
10f2d63a 8471
3a922bb4 8472 NUM_TOOLKITS=`expr ${wxUSE_GTK:-0} + ${wxUSE_MOTIF:-0} + ${wxUSE_MAC:-0} \
f79bd02d 8473 + ${wxUSE_WINE:-0} + ${wxUSE_MSW:-0} + ${wxUSE_MGL:-0} + ${wxUSE_MICROWIN:-0} + ${wxUSE_X11:-0}`
10f2d63a 8474
d558c907 8475 case "${host}" in
6fa882bd 8476 *-pc-os2_emx | *-pc-os2-emx )
3a922bb4 8477 NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}`
3a922bb4 8478 esac
10f2d63a 8479
3a922bb4
RL
8480 case "$NUM_TOOLKITS" in
8481 1)
8482 ;;
8483 0)
8484 { echo "configure: error: Please specify a toolkit - cannot determine the default for ${host}" 1>&2; exit 1; }
8485 ;;
8486 *)
8487 { echo "configure: error: Please specify at most one toolkit (may be some are cached?)" 1>&2; exit 1; }
8488 esac
10f2d63a 8489
3a922bb4
RL
8490 for toolkit in `echo $ALL_TOOLKITS`; do
8491 var=wxUSE_$toolkit
8492 eval "value=\$${var}"
8493 if test "x$value" != x; then
8494 cache_var=CACHE_$toolkit
8495 eval "cache=\$${cache_var}"
8496 if test "$cache" = 1; then
8497 echo "$var=$value" >> ${wx_arg_cache_file}
8498 fi
8499 if test "$value" = 1; then
8500 toolkit_echo=`echo $toolkit | tr [A-Z] [a-z]`
8501 echo "$ac_t""$toolkit_echo" 1>&6
8502 fi
8503 fi
8504 done
10f2d63a 8505else
3a922bb4 8506 echo "$ac_t""base ($host_alias hosted) only" 1>&6
10f2d63a
VZ
8507fi
8508
698dcdb6
VZ
8509
8510cat > confcache <<\EOF
10f2d63a
VZ
8511# This file is a shell script that caches the results of configure
8512# tests run on this system so they can be shared between configure
698dcdb6
VZ
8513# scripts and configure runs. It is not useful on other systems.
8514# If it contains results you don't want to keep, you may remove or edit it.
10f2d63a 8515#
698dcdb6
VZ
8516# By default, configure uses ./config.cache as the cache file,
8517# creating it if it does not exist already. You can give configure
8518# the --cache-file=FILE option to use a different cache file; that is
8519# what configure does when it calls configure scripts in
8520# subdirectories, so they share the cache.
8521# Giving --cache-file=/dev/null disables caching, for debugging configure.
8522# config.status only pays attention to the cache file if you give it the
8523# --recheck option to rerun configure.
10f2d63a 8524#
698dcdb6 8525EOF
10f2d63a
VZ
8526# The following way of writing the cache mishandles newlines in values,
8527# but we know of no workaround that is simple, portable, and efficient.
8528# So, don't put newlines in cache variables' values.
8529# Ultrix sh set writes to stderr and can't be redirected directly,
8530# and sets the high bit in the cache file unless we assign to the vars.
698dcdb6
VZ
8531(set) 2>&1 |
8532 case `(ac_space=' '; set | grep ac_space) 2>&1` in
8533 *ac_space=\ *)
8534 # `set' does not quote correctly, so add quotes (double-quote substitution
8535 # turns \\\\ into \\, and sed turns \\ into \).
8536 sed -n \
8537 -e "s/'/'\\\\''/g" \
8538 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
8539 ;;
8540 *)
8541 # `set' quotes correctly as required by POSIX, so do not add quotes.
8542 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
8543 ;;
8544 esac >> confcache
8545if cmp -s $cache_file confcache; then
8546 :
8547else
10f2d63a 8548 if test -w $cache_file; then
698dcdb6
VZ
8549 echo "updating cache $cache_file"
8550 cat confcache > $cache_file
10f2d63a
VZ
8551 else
8552 echo "not updating unwritable cache $cache_file"
8553 fi
8554fi
8555rm -f confcache
8556
698dcdb6 8557
e59890c3 8558if test "$build" != "$host" ; then
9d353d4a 8559 if test "$USE_WIN32" = 1 -o "$USE_DOS" = 1 -o "$USE_UNIX"; then
3a922bb4
RL
8560 CC=$host_alias-gcc
8561 CXX=$host_alias-c++
8562 AR=$host_alias-ar
8563 RANLIB=$host_alias-ranlib
8564 DLLTOOL=$host_alias-dlltool
8565 RESCOMP=$host_alias-windres
8566 LD=$host_alias-ld
8567 NM=$host_alias-nm
8568 STRIP=$host_alias-strip
8569 else
8570 { echo "configure: error: $build_alias -> $host_alias cross compilation not supported yet." 1>&2; exit 1; }
8571 fi
10f2d63a
VZ
8572fi
8573
ec603395 8574CFLAGS=${CFLAGS:=}
698dcdb6 8575# Extract the first word of "gcc", so it can be a program name with args.
1e487827 8576set dummy gcc; ac_word=$2
698dcdb6 8577echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
321d2b14 8578echo "configure:8579: checking for $ac_word" >&5
698dcdb6
VZ
8579if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
8580 echo $ac_n "(cached) $ac_c" 1>&6
6232543b
VS
8581else
8582 if test -n "$CC"; then
8583 ac_cv_prog_CC="$CC" # Let the user override the test.
10f2d63a 8584else
698dcdb6
VZ
8585 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8586 ac_dummy="$PATH"
8587 for ac_dir in $ac_dummy; do
8588 test -z "$ac_dir" && ac_dir=.
8589 if test -f $ac_dir/$ac_word; then
8590 ac_cv_prog_CC="gcc"
8591 break
8592 fi
8593 done
8594 IFS="$ac_save_ifs"
10f2d63a 8595fi
6232543b 8596fi
698dcdb6 8597CC="$ac_cv_prog_CC"
6232543b 8598if test -n "$CC"; then
698dcdb6 8599 echo "$ac_t""$CC" 1>&6
1e487827 8600else
698dcdb6 8601 echo "$ac_t""no" 1>&6
1e487827 8602fi
6232543b 8603
1e487827
VS
8604if test -z "$CC"; then
8605 # Extract the first word of "cc", so it can be a program name with args.
8606set dummy cc; ac_word=$2
698dcdb6 8607echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
321d2b14 8608echo "configure:8609: checking for $ac_word" >&5
698dcdb6
VZ
8609if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
8610 echo $ac_n "(cached) $ac_c" 1>&6
1e487827
VS
8611else
8612 if test -n "$CC"; then
8613 ac_cv_prog_CC="$CC" # Let the user override the test.
8614else
698dcdb6 8615 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1e487827 8616 ac_prog_rejected=no
698dcdb6
VZ
8617 ac_dummy="$PATH"
8618 for ac_dir in $ac_dummy; do
8619 test -z "$ac_dir" && ac_dir=.
8620 if test -f $ac_dir/$ac_word; then
8621 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
8622 ac_prog_rejected=yes
8623 continue
8624 fi
8625 ac_cv_prog_CC="cc"
8626 break
8627 fi
8628 done
8629 IFS="$ac_save_ifs"
1e487827
VS
8630if test $ac_prog_rejected = yes; then
8631 # We found a bogon in the path, so make sure we never use it.
8632 set dummy $ac_cv_prog_CC
8633 shift
698dcdb6 8634 if test $# -gt 0; then
1e487827
VS
8635 # We chose a different compiler from the bogus one.
8636 # However, it has the same basename, so the bogon will be chosen
8637 # first if we set CC to just the basename; use the full file name.
8638 shift
698dcdb6 8639 set dummy "$ac_dir/$ac_word" "$@"
1e487827
VS
8640 shift
8641 ac_cv_prog_CC="$@"
703e0a69 8642 fi
1e487827
VS
8643fi
8644fi
8645fi
698dcdb6 8646CC="$ac_cv_prog_CC"
1e487827 8647if test -n "$CC"; then
698dcdb6 8648 echo "$ac_t""$CC" 1>&6
703e0a69 8649else
698dcdb6 8650 echo "$ac_t""no" 1>&6
703e0a69 8651fi
1e487827 8652
698dcdb6
VZ
8653 if test -z "$CC"; then
8654 case "`uname -s`" in
8655 *win32* | *WIN32*)
8656 # Extract the first word of "cl", so it can be a program name with args.
8657set dummy cl; ac_word=$2
8658echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
321d2b14 8659echo "configure:8660: checking for $ac_word" >&5
698dcdb6
VZ
8660if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
8661 echo $ac_n "(cached) $ac_c" 1>&6
1e487827
VS
8662else
8663 if test -n "$CC"; then
8664 ac_cv_prog_CC="$CC" # Let the user override the test.
703e0a69 8665else
698dcdb6
VZ
8666 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8667 ac_dummy="$PATH"
8668 for ac_dir in $ac_dummy; do
8669 test -z "$ac_dir" && ac_dir=.
8670 if test -f $ac_dir/$ac_word; then
8671 ac_cv_prog_CC="cl"
8672 break
8673 fi
8674 done
8675 IFS="$ac_save_ifs"
703e0a69 8676fi
1e487827 8677fi
698dcdb6 8678CC="$ac_cv_prog_CC"
1e487827 8679if test -n "$CC"; then
698dcdb6 8680 echo "$ac_t""$CC" 1>&6
1e487827 8681else
698dcdb6 8682 echo "$ac_t""no" 1>&6
1e487827 8683fi
698dcdb6
VZ
8684 ;;
8685 esac
8686 fi
8687 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1e487827
VS
8688fi
8689
698dcdb6 8690echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
321d2b14 8691echo "configure:8692: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1e487827 8692
698dcdb6
VZ
8693ac_ext=c
8694# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8695ac_cpp='$CPP $CPPFLAGS'
8696ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8697ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8698cross_compiling=$ac_cv_prog_cc_cross
6232543b 8699
698dcdb6 8700cat > conftest.$ac_ext << EOF
1e487827 8701
321d2b14 8702#line 8703 "configure"
1e487827
VS
8703#include "confdefs.h"
8704
698dcdb6
VZ
8705main(){return(0);}
8706EOF
321d2b14 8707if { (eval echo configure:8708: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
8708 ac_cv_prog_cc_works=yes
8709 # If we can't run a trivial program, we are probably using a cross compiler.
8710 if (./conftest; exit) 2>/dev/null; then
8711 ac_cv_prog_cc_cross=no
8712 else
8713 ac_cv_prog_cc_cross=yes
8714 fi
8715else
8716 echo "configure: failed program was:" >&5
8717 cat conftest.$ac_ext >&5
8718 ac_cv_prog_cc_works=no
8719fi
8720rm -fr conftest*
8721ac_ext=c
8722# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8723ac_cpp='$CPP $CPPFLAGS'
8724ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8725ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8726cross_compiling=$ac_cv_prog_cc_cross
8727
8728echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
8729if test $ac_cv_prog_cc_works = no; then
8730 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
8731fi
8732echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
321d2b14 8733echo "configure:8734: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
698dcdb6
VZ
8734echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
8735cross_compiling=$ac_cv_prog_cc_cross
8736
8737echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
321d2b14 8738echo "configure:8739: checking whether we are using GNU C" >&5
698dcdb6
VZ
8739if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
8740 echo $ac_n "(cached) $ac_c" 1>&6
8741else
8742 cat > conftest.c <<EOF
8743#ifdef __GNUC__
8744 yes;
1e487827 8745#endif
698dcdb6 8746EOF
321d2b14 8747if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:8748: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
698dcdb6
VZ
8748 ac_cv_prog_gcc=yes
8749else
8750 ac_cv_prog_gcc=no
8751fi
8752fi
1e487827 8753
698dcdb6 8754echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1e487827 8755
698dcdb6
VZ
8756if test $ac_cv_prog_gcc = yes; then
8757 GCC=yes
8758else
8759 GCC=
8760fi
1e487827 8761
698dcdb6
VZ
8762ac_test_CFLAGS="${CFLAGS+set}"
8763ac_save_CFLAGS="$CFLAGS"
8764CFLAGS=
8765echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
321d2b14 8766echo "configure:8767: checking whether ${CC-cc} accepts -g" >&5
698dcdb6
VZ
8767if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
8768 echo $ac_n "(cached) $ac_c" 1>&6
8769else
8770 echo 'void f(){}' > conftest.c
8771if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
10f2d63a
VZ
8772 ac_cv_prog_cc_g=yes
8773else
698dcdb6 8774 ac_cv_prog_cc_g=no
10f2d63a 8775fi
698dcdb6
VZ
8776rm -f conftest*
8777
10f2d63a 8778fi
698dcdb6
VZ
8779
8780echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
10f2d63a 8781if test "$ac_test_CFLAGS" = set; then
698dcdb6 8782 CFLAGS="$ac_save_CFLAGS"
10f2d63a
VZ
8783elif test $ac_cv_prog_cc_g = yes; then
8784 if test "$GCC" = yes; then
8785 CFLAGS="-g -O2"
8786 else
8787 CFLAGS="-g"
8788 fi
8789else
8790 if test "$GCC" = yes; then
8791 CFLAGS="-O2"
8792 else
8793 CFLAGS=
8794 fi
8795fi
8796
8797
698dcdb6 8798echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
321d2b14 8799echo "configure:8800: checking how to run the C preprocessor" >&5
10f2d63a
VZ
8800# On Suns, sometimes $CPP names a directory.
8801if test -n "$CPP" && test -d "$CPP"; then
8802 CPP=
8803fi
8804if test -z "$CPP"; then
698dcdb6
VZ
8805if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
8806 echo $ac_n "(cached) $ac_c" 1>&6
8807else
8808 # This must be in double quotes, not single quotes, because CPP may get
8809 # substituted into the Makefile and "${CC-cc}" will confuse make.
8810 CPP="${CC-cc} -E"
10f2d63a 8811 # On the NeXT, cc -E runs the code through the compiler's parser,
698dcdb6
VZ
8812 # not just through cpp.
8813 cat > conftest.$ac_ext <<EOF
321d2b14 8814#line 8815 "configure"
10f2d63a
VZ
8815#include "confdefs.h"
8816#include <assert.h>
698dcdb6
VZ
8817Syntax Error
8818EOF
8819ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
321d2b14 8820{ (eval echo configure:8821: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
8821ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8822if test -z "$ac_err"; then
10f2d63a
VZ
8823 :
8824else
698dcdb6
VZ
8825 echo "$ac_err" >&5
8826 echo "configure: failed program was:" >&5
10f2d63a 8827 cat conftest.$ac_ext >&5
698dcdb6
VZ
8828 rm -rf conftest*
8829 CPP="${CC-cc} -E -traditional-cpp"
8830 cat > conftest.$ac_ext <<EOF
321d2b14 8831#line 8832 "configure"
10f2d63a 8832#include "confdefs.h"
698dcdb6
VZ
8833#include <assert.h>
8834Syntax Error
8835EOF
8836ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
321d2b14 8837{ (eval echo configure:8838: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
8838ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8839if test -z "$ac_err"; then
8840 :
10f2d63a 8841else
698dcdb6
VZ
8842 echo "$ac_err" >&5
8843 echo "configure: failed program was:" >&5
10f2d63a 8844 cat conftest.$ac_ext >&5
698dcdb6
VZ
8845 rm -rf conftest*
8846 CPP="${CC-cc} -nologo -E"
8847 cat > conftest.$ac_ext <<EOF
321d2b14 8848#line 8849 "configure"
10f2d63a
VZ
8849#include "confdefs.h"
8850#include <assert.h>
698dcdb6
VZ
8851Syntax Error
8852EOF
8853ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
321d2b14 8854{ (eval echo configure:8855: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
8855ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8856if test -z "$ac_err"; then
10f2d63a
VZ
8857 :
8858else
698dcdb6
VZ
8859 echo "$ac_err" >&5
8860 echo "configure: failed program was:" >&5
10f2d63a 8861 cat conftest.$ac_ext >&5
698dcdb6
VZ
8862 rm -rf conftest*
8863 CPP=/lib/cpp
10f2d63a 8864fi
698dcdb6 8865rm -f conftest*
10f2d63a 8866fi
698dcdb6 8867rm -f conftest*
703e0a69 8868fi
698dcdb6
VZ
8869rm -f conftest*
8870 ac_cv_prog_CPP="$CPP"
8871fi
8872 CPP="$ac_cv_prog_CPP"
10f2d63a 8873else
698dcdb6 8874 ac_cv_prog_CPP="$CPP"
10f2d63a 8875fi
698dcdb6 8876echo "$ac_t""$CPP" 1>&6
10f2d63a 8877
698dcdb6
VZ
8878if test $ac_cv_prog_gcc = yes; then
8879 echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
321d2b14 8880echo "configure:8881: checking whether ${CC-cc} needs -traditional" >&5
698dcdb6
VZ
8881if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
8882 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a
VZ
8883else
8884 ac_pattern="Autoconf.*'x'"
698dcdb6 8885 cat > conftest.$ac_ext <<EOF
321d2b14 8886#line 8887 "configure"
10f2d63a
VZ
8887#include "confdefs.h"
8888#include <sgtty.h>
8889Autoconf TIOCGETP
698dcdb6 8890EOF
10f2d63a
VZ
8891if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8892 egrep "$ac_pattern" >/dev/null 2>&1; then
698dcdb6 8893 rm -rf conftest*
10f2d63a
VZ
8894 ac_cv_prog_gcc_traditional=yes
8895else
698dcdb6 8896 rm -rf conftest*
10f2d63a
VZ
8897 ac_cv_prog_gcc_traditional=no
8898fi
8899rm -f conftest*
8900
698dcdb6 8901
10f2d63a 8902 if test $ac_cv_prog_gcc_traditional = no; then
698dcdb6 8903 cat > conftest.$ac_ext <<EOF
321d2b14 8904#line 8905 "configure"
10f2d63a
VZ
8905#include "confdefs.h"
8906#include <termio.h>
8907Autoconf TCGETA
698dcdb6 8908EOF
10f2d63a
VZ
8909if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8910 egrep "$ac_pattern" >/dev/null 2>&1; then
698dcdb6 8911 rm -rf conftest*
10f2d63a
VZ
8912 ac_cv_prog_gcc_traditional=yes
8913fi
8914rm -f conftest*
8915
8916 fi
8917fi
698dcdb6
VZ
8918
8919echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6
10f2d63a
VZ
8920 if test $ac_cv_prog_gcc_traditional = yes; then
8921 CC="$CC -traditional"
8922 fi
8923fi
8924
703e0a69 8925
698dcdb6
VZ
8926
8927ac_ext=C
8928# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1e487827 8929ac_cpp='$CXXCPP $CPPFLAGS'
698dcdb6
VZ
8930ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8931ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8932cross_compiling=$ac_cv_prog_cxx_cross
8933
8934
ec603395 8935CXXFLAGS=${CXXFLAGS:=}
698dcdb6
VZ
8936for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
8937do
8938# Extract the first word of "$ac_prog", so it can be a program name with args.
8939set dummy $ac_prog; ac_word=$2
8940echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
321d2b14 8941echo "configure:8942: checking for $ac_word" >&5
698dcdb6
VZ
8942if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
8943 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a
VZ
8944else
8945 if test -n "$CXX"; then
8946 ac_cv_prog_CXX="$CXX" # Let the user override the test.
8947else
698dcdb6
VZ
8948 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8949 ac_dummy="$PATH"
8950 for ac_dir in $ac_dummy; do
8951 test -z "$ac_dir" && ac_dir=.
8952 if test -f $ac_dir/$ac_word; then
8953 ac_cv_prog_CXX="$ac_prog"
8954 break
8955 fi
8956 done
8957 IFS="$ac_save_ifs"
10f2d63a
VZ
8958fi
8959fi
698dcdb6 8960CXX="$ac_cv_prog_CXX"
10f2d63a 8961if test -n "$CXX"; then
698dcdb6 8962 echo "$ac_t""$CXX" 1>&6
10f2d63a 8963else
698dcdb6 8964 echo "$ac_t""no" 1>&6
10f2d63a
VZ
8965fi
8966
698dcdb6 8967test -n "$CXX" && break
10f2d63a 8968done
698dcdb6 8969test -n "$CXX" || CXX="gcc"
10f2d63a
VZ
8970
8971
698dcdb6 8972echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
321d2b14 8973echo "configure:8974: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
10f2d63a 8974
698dcdb6
VZ
8975ac_ext=C
8976# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8977ac_cpp='$CXXCPP $CPPFLAGS'
8978ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8979ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8980cross_compiling=$ac_cv_prog_cxx_cross
703e0a69 8981
698dcdb6
VZ
8982cat > conftest.$ac_ext << EOF
8983
321d2b14 8984#line 8985 "configure"
10f2d63a
VZ
8985#include "confdefs.h"
8986
698dcdb6
VZ
8987int main(){return(0);}
8988EOF
321d2b14 8989if { (eval echo configure:8990: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
8990 ac_cv_prog_cxx_works=yes
8991 # If we can't run a trivial program, we are probably using a cross compiler.
8992 if (./conftest; exit) 2>/dev/null; then
8993 ac_cv_prog_cxx_cross=no
8994 else
8995 ac_cv_prog_cxx_cross=yes
8996 fi
8997else
8998 echo "configure: failed program was:" >&5
8999 cat conftest.$ac_ext >&5
9000 ac_cv_prog_cxx_works=no
9001fi
9002rm -fr conftest*
9003ac_ext=C
9004# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9005ac_cpp='$CXXCPP $CPPFLAGS'
9006ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9007ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9008cross_compiling=$ac_cv_prog_cxx_cross
9009
9010echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
9011if test $ac_cv_prog_cxx_works = no; then
9012 { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
9013fi
9014echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
321d2b14 9015echo "configure:9016: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
698dcdb6
VZ
9016echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
9017cross_compiling=$ac_cv_prog_cxx_cross
9018
9019echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
321d2b14 9020echo "configure:9021: checking whether we are using GNU C++" >&5
698dcdb6
VZ
9021if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
9022 echo $ac_n "(cached) $ac_c" 1>&6
9023else
9024 cat > conftest.C <<EOF
9025#ifdef __GNUC__
9026 yes;
10f2d63a 9027#endif
698dcdb6 9028EOF
321d2b14 9029if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:9030: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
698dcdb6
VZ
9030 ac_cv_prog_gxx=yes
9031else
9032 ac_cv_prog_gxx=no
9033fi
9034fi
10f2d63a 9035
698dcdb6 9036echo "$ac_t""$ac_cv_prog_gxx" 1>&6
10f2d63a 9037
698dcdb6
VZ
9038if test $ac_cv_prog_gxx = yes; then
9039 GXX=yes
9040else
9041 GXX=
9042fi
10f2d63a 9043
698dcdb6
VZ
9044ac_test_CXXFLAGS="${CXXFLAGS+set}"
9045ac_save_CXXFLAGS="$CXXFLAGS"
9046CXXFLAGS=
9047echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
321d2b14 9048echo "configure:9049: checking whether ${CXX-g++} accepts -g" >&5
698dcdb6
VZ
9049if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
9050 echo $ac_n "(cached) $ac_c" 1>&6
9051else
9052 echo 'void f(){}' > conftest.cc
9053if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
10f2d63a
VZ
9054 ac_cv_prog_cxx_g=yes
9055else
698dcdb6 9056 ac_cv_prog_cxx_g=no
10f2d63a 9057fi
698dcdb6
VZ
9058rm -f conftest*
9059
10f2d63a 9060fi
698dcdb6
VZ
9061
9062echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
10f2d63a 9063if test "$ac_test_CXXFLAGS" = set; then
698dcdb6 9064 CXXFLAGS="$ac_save_CXXFLAGS"
10f2d63a
VZ
9065elif test $ac_cv_prog_cxx_g = yes; then
9066 if test "$GXX" = yes; then
9067 CXXFLAGS="-g -O2"
9068 else
9069 CXXFLAGS="-g"
9070 fi
9071else
9072 if test "$GXX" = yes; then
9073 CXXFLAGS="-O2"
9074 else
9075 CXXFLAGS=
9076 fi
9077fi
9078
9079
10f2d63a 9080ac_ext=c
698dcdb6 9081# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10f2d63a 9082ac_cpp='$CPP $CPPFLAGS'
698dcdb6
VZ
9083ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9084ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9085cross_compiling=$ac_cv_prog_cc_cross
9086
9087
9088# Extract the first word of "ranlib", so it can be a program name with args.
9089set dummy ranlib; ac_word=$2
9090echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
321d2b14 9091echo "configure:9092: checking for $ac_word" >&5
698dcdb6
VZ
9092if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
9093 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a
VZ
9094else
9095 if test -n "$RANLIB"; then
9096 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9097else
698dcdb6
VZ
9098 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9099 ac_dummy="$PATH"
9100 for ac_dir in $ac_dummy; do
9101 test -z "$ac_dir" && ac_dir=.
9102 if test -f $ac_dir/$ac_word; then
9103 ac_cv_prog_RANLIB="ranlib"
9104 break
9105 fi
9106 done
9107 IFS="$ac_save_ifs"
9108 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
10f2d63a
VZ
9109fi
9110fi
698dcdb6 9111RANLIB="$ac_cv_prog_RANLIB"
10f2d63a 9112if test -n "$RANLIB"; then
698dcdb6 9113 echo "$ac_t""$RANLIB" 1>&6
10f2d63a 9114else
698dcdb6 9115 echo "$ac_t""no" 1>&6
10f2d63a
VZ
9116fi
9117
9118
9119# Extract the first word of "ar", so it can be a program name with args.
9120set dummy ar; ac_word=$2
698dcdb6 9121echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
321d2b14 9122echo "configure:9123: checking for $ac_word" >&5
698dcdb6
VZ
9123if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
9124 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a
VZ
9125else
9126 if test -n "$AR"; then
9127 ac_cv_prog_AR="$AR" # Let the user override the test.
9128else
698dcdb6
VZ
9129 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9130 ac_dummy="$PATH"
9131 for ac_dir in $ac_dummy; do
9132 test -z "$ac_dir" && ac_dir=.
9133 if test -f $ac_dir/$ac_word; then
9134 ac_cv_prog_AR="ar"
9135 break
9136 fi
9137 done
9138 IFS="$ac_save_ifs"
10f2d63a
VZ
9139 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
9140fi
9141fi
698dcdb6 9142AR="$ac_cv_prog_AR"
10f2d63a 9143if test -n "$AR"; then
698dcdb6 9144 echo "$ac_t""$AR" 1>&6
10f2d63a 9145else
698dcdb6 9146 echo "$ac_t""no" 1>&6
10f2d63a
VZ
9147fi
9148
698dcdb6 9149
6054113a 9150# Find a good install program. We prefer a C program (faster),
10f2d63a
VZ
9151# so one script is as good as another. But avoid the broken or
9152# incompatible versions:
9153# SysV /etc/install, /usr/sbin/install
9154# SunOS /usr/etc/install
9155# IRIX /sbin/install
9156# AIX /bin/install
9157# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
9158# AFS /usr/afsws/bin/install, which mishandles nonexistent args
9159# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
9160# ./install, which can be erroneously created by make from ./install.sh.
698dcdb6 9161echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
321d2b14 9162echo "configure:9163: checking for a BSD compatible install" >&5
10f2d63a 9163if test -z "$INSTALL"; then
698dcdb6
VZ
9164if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
9165 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 9166else
698dcdb6 9167 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
10f2d63a
VZ
9168 for ac_dir in $PATH; do
9169 # Account for people who put trailing slashes in PATH elements.
698dcdb6
VZ
9170 case "$ac_dir/" in
9171 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
10f2d63a
VZ
9172 *)
9173 # OSF1 and SCO ODT 3.0 have their own names for install.
9174 # Don't use installbsd from OSF since it installs stuff as root
9175 # by default.
9176 for ac_prog in ginstall scoinst install; do
698dcdb6 9177 if test -f $ac_dir/$ac_prog; then
10f2d63a 9178 if test $ac_prog = install &&
698dcdb6 9179 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
10f2d63a
VZ
9180 # AIX install. It has an incompatible calling convention.
9181 :
9182 else
9183 ac_cv_path_install="$ac_dir/$ac_prog -c"
9184 break 2
9185 fi
9186 fi
9187 done
9188 ;;
9189 esac
9190 done
698dcdb6 9191 IFS="$ac_save_IFS"
10f2d63a
VZ
9192
9193fi
9194 if test "${ac_cv_path_install+set}" = set; then
698dcdb6 9195 INSTALL="$ac_cv_path_install"
10f2d63a
VZ
9196 else
9197 # As a last resort, use the slow shell script. We don't cache a
9198 # path for INSTALL within a source directory, because that will
9199 # break other packages using the cache if that directory is
9200 # removed, or if the path is relative.
698dcdb6 9201 INSTALL="$ac_install_sh"
10f2d63a
VZ
9202 fi
9203fi
698dcdb6 9204echo "$ac_t""$INSTALL" 1>&6
10f2d63a
VZ
9205
9206# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
9207# It thinks the first close brace ends the variable substitution.
9208test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
9209
698dcdb6 9210test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
10f2d63a
VZ
9211
9212test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
9213
1d1b75ac
VZ
9214
9215case ${INSTALL} in
9216 /* ) # Absolute
9217 ;;
9218 *)
9219 INSTALL=`pwd`/${INSTALL} ;;
9220esac
9221
9222
6054113a
GD
9223case "${host}" in
9224
b5853384 9225 powerpc-*-darwin* )
eb99ae0b
GD
9226 INSTALL_PROGRAM="cp -fp"
9227 INSTALL_DATA="cp -fp"
6054113a
GD
9228 ;;
9229 *)
9230 ;;
d6853540 9231esac
698dcdb6 9232
10f2d63a
VZ
9233# Extract the first word of "strip", so it can be a program name with args.
9234set dummy strip; ac_word=$2
698dcdb6 9235echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1d1b75ac 9236echo "configure:9237: checking for $ac_word" >&5
698dcdb6
VZ
9237if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
9238 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a
VZ
9239else
9240 if test -n "$STRIP"; then
9241 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9242else
698dcdb6
VZ
9243 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9244 ac_dummy="$PATH"
9245 for ac_dir in $ac_dummy; do
9246 test -z "$ac_dir" && ac_dir=.
9247 if test -f $ac_dir/$ac_word; then
9248 ac_cv_prog_STRIP="strip"
9249 break
9250 fi
9251 done
9252 IFS="$ac_save_ifs"
10f2d63a
VZ
9253 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="true"
9254fi
9255fi
698dcdb6 9256STRIP="$ac_cv_prog_STRIP"
10f2d63a 9257if test -n "$STRIP"; then
698dcdb6 9258 echo "$ac_t""$STRIP" 1>&6
10f2d63a 9259else
698dcdb6 9260 echo "$ac_t""no" 1>&6
10f2d63a
VZ
9261fi
9262
698dcdb6 9263
414eab6d 9264echo $ac_n "checking if make is GNU make""... $ac_c" 1>&6
1d1b75ac 9265echo "configure:9266: checking if make is GNU make" >&5
414eab6d
VZ
9266if eval "test \"`echo '$''{'wx_cv_prog_makeisgnu'+set}'`\" = set"; then
9267 echo $ac_n "(cached) $ac_c" 1>&6
9268else
9269
9270 if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
d558c907 9271 egrep -s GNU > /dev/null); then
414eab6d
VZ
9272 wx_cv_prog_makeisgnu="yes"
9273 else
9274 wx_cv_prog_makeisgnu="no"
9275 fi
9276
9277fi
9278
9279echo "$ac_t""$wx_cv_prog_makeisgnu" 1>&6
9280
9281if test "x$wx_cv_prog_makeisgnu" = "xyes"; then
9282 IF_GNU_MAKE=""
9283else
9284 IF_GNU_MAKE="#"
9285fi
9286
9287
9288
9289if test "x$wx_cv_prog_makeisgnu" != "xyes"; then
04e7a216 9290echo $ac_n "checking if make supports VPATH""... $ac_c" 1>&6
1d1b75ac 9291echo "configure:9292: checking if make supports VPATH" >&5
04e7a216
VZ
9292if eval "test \"`echo '$''{'wx_cv_prog_makevpath'+set}'`\" = set"; then
9293 echo $ac_n "(cached) $ac_c" 1>&6
9294else
9295
10f2d63a
VZ
9296cat - << EOF > confMake
9297check : file
9298 cp \$? \$@
9299 cp \$? final_file
9300EOF
9301
9302if test ! -d sub ; then
9303 mkdir sub
9304fi
9305echo dummy > sub/file
f6bcfd97 9306${MAKE-make} -f confMake VPATH=sub 2>&5 > /dev/null
10f2d63a
VZ
9307RESULT=$?
9308rm -f sub/file check final_file confMake
9309rmdir sub
9310if test "$RESULT" = 0; then
04e7a216 9311 wx_cv_prog_makevpath="yes"
10f2d63a 9312else
04e7a216
VZ
9313 wx_cv_prog_makevpath="no"
9314fi
9315
9316fi
9317
9318echo "$ac_t""$wx_cv_prog_makevpath" 1>&6
9319
9320if test "x$wx_cv_prog_makevpath" != "xyes"; then
9321{ echo "configure: error:
1e487827
VS
9322You need a make-utility that is able to use the variable
9323VPATH correctly.
9324If your version of make does not support VPATH correctly,
9325please install GNU-make (possibly as gmake), and start
9326configure with the following command:
9327export MAKE=gmake; ./configure for sh-type shells
9328setenv MAKE gmake; ./configure for csh-type shells
9329Also please do remember to use gmake in this case every time
9330you are trying to compile.
698dcdb6 9331" 1>&2; exit 1; }
414eab6d 9332fi fi
10f2d63a
VZ
9333for ac_prog in 'bison -y' byacc
9334do
698dcdb6 9335# Extract the first word of "$ac_prog", so it can be a program name with args.
10f2d63a 9336set dummy $ac_prog; ac_word=$2
698dcdb6 9337echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1d1b75ac 9338echo "configure:9339: checking for $ac_word" >&5
698dcdb6
VZ
9339if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
9340 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a
VZ
9341else
9342 if test -n "$YACC"; then
9343 ac_cv_prog_YACC="$YACC" # Let the user override the test.
9344else
698dcdb6
VZ
9345 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9346 ac_dummy="$PATH"
9347 for ac_dir in $ac_dummy; do
9348 test -z "$ac_dir" && ac_dir=.
9349 if test -f $ac_dir/$ac_word; then
9350 ac_cv_prog_YACC="$ac_prog"
9351 break
9352 fi
9353 done
9354 IFS="$ac_save_ifs"
10f2d63a
VZ
9355fi
9356fi
698dcdb6 9357YACC="$ac_cv_prog_YACC"
10f2d63a 9358if test -n "$YACC"; then
698dcdb6 9359 echo "$ac_t""$YACC" 1>&6
10f2d63a 9360else
698dcdb6 9361 echo "$ac_t""no" 1>&6
10f2d63a
VZ
9362fi
9363
698dcdb6 9364test -n "$YACC" && break
10f2d63a
VZ
9365done
9366test -n "$YACC" || YACC="yacc"
9367
698dcdb6
VZ
9368
9369# Extract the first word of "flex", so it can be a program name with args.
9370set dummy flex; ac_word=$2
9371echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1d1b75ac 9372echo "configure:9373: checking for $ac_word" >&5
698dcdb6
VZ
9373if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
9374 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a
VZ
9375else
9376 if test -n "$LEX"; then
9377 ac_cv_prog_LEX="$LEX" # Let the user override the test.
9378else
698dcdb6
VZ
9379 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9380 ac_dummy="$PATH"
9381 for ac_dir in $ac_dummy; do
9382 test -z "$ac_dir" && ac_dir=.
9383 if test -f $ac_dir/$ac_word; then
9384 ac_cv_prog_LEX="flex"
9385 break
9386 fi
9387 done
9388 IFS="$ac_save_ifs"
9389 test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex"
10f2d63a
VZ
9390fi
9391fi
698dcdb6 9392LEX="$ac_cv_prog_LEX"
10f2d63a 9393if test -n "$LEX"; then
698dcdb6 9394 echo "$ac_t""$LEX" 1>&6
10f2d63a 9395else
698dcdb6 9396 echo "$ac_t""no" 1>&6
10f2d63a
VZ
9397fi
9398
9399if test -z "$LEXLIB"
9400then
698dcdb6
VZ
9401 case "$LEX" in
9402 flex*) ac_lib=fl ;;
9403 *) ac_lib=l ;;
9404 esac
9405 echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
1d1b75ac 9406echo "configure:9407: checking for yywrap in -l$ac_lib" >&5
698dcdb6
VZ
9407ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
9408if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9409 echo $ac_n "(cached) $ac_c" 1>&6
9410else
9411 ac_save_LIBS="$LIBS"
9412LIBS="-l$ac_lib $LIBS"
9413cat > conftest.$ac_ext <<EOF
1d1b75ac 9414#line 9415 "configure"
10f2d63a
VZ
9415#include "confdefs.h"
9416/* Override any gcc2 internal prototype to avoid an error. */
9417/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
9418 builtin and then its argument prototype would still apply. */
9419char yywrap();
10f2d63a 9420
698dcdb6
VZ
9421int main() {
9422yywrap()
9423; return 0; }
9424EOF
1d1b75ac 9425if { (eval echo configure:9426: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
9426 rm -rf conftest*
9427 eval "ac_cv_lib_$ac_lib_var=yes"
10f2d63a 9428else
698dcdb6
VZ
9429 echo "configure: failed program was:" >&5
9430 cat conftest.$ac_ext >&5
9431 rm -rf conftest*
9432 eval "ac_cv_lib_$ac_lib_var=no"
10f2d63a 9433fi
698dcdb6
VZ
9434rm -f conftest*
9435LIBS="$ac_save_LIBS"
9436
10f2d63a 9437fi
698dcdb6
VZ
9438if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9439 echo "$ac_t""yes" 1>&6
9440 LEXLIB="-l$ac_lib"
9441else
9442 echo "$ac_t""no" 1>&6
10f2d63a
VZ
9443fi
9444
9445fi
9446
9447
698dcdb6 9448echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1d1b75ac 9449echo "configure:9450: checking whether ln -s works" >&5
698dcdb6
VZ
9450if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
9451 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 9452else
698dcdb6
VZ
9453 rm -f conftestdata
9454if ln -s X conftestdata 2>/dev/null
9455then
9456 rm -f conftestdata
9457 ac_cv_prog_LN_S="ln -s"
10f2d63a 9458else
698dcdb6 9459 ac_cv_prog_LN_S=ln
10f2d63a
VZ
9460fi
9461fi
698dcdb6
VZ
9462LN_S="$ac_cv_prog_LN_S"
9463if test "$ac_cv_prog_LN_S" = "ln -s"; then
9464 echo "$ac_t""yes" 1>&6
10f2d63a 9465else
698dcdb6 9466 echo "$ac_t""no" 1>&6
10f2d63a
VZ
9467fi
9468
9469
9470
21d1c967
GD
9471if test "$wxUSE_MAC" != 1; then
9472 for ac_hdr in strings.h
9473do
9474ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9475echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1d1b75ac 9476echo "configure:9477: checking for $ac_hdr" >&5
21d1c967 9477if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
19bc6aad
VZ
9478 echo $ac_n "(cached) $ac_c" 1>&6
9479else
90dd450c 9480 cat > conftest.$ac_ext <<EOF
1d1b75ac 9481#line 9482 "configure"
19bc6aad 9482#include "confdefs.h"
21d1c967 9483#include <$ac_hdr>
19bc6aad 9484EOF
21d1c967 9485ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1d1b75ac 9486{ (eval echo configure:9487: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
21d1c967
GD
9487ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9488if test -z "$ac_err"; then
19bc6aad 9489 rm -rf conftest*
21d1c967 9490 eval "ac_cv_header_$ac_safe=yes"
19bc6aad 9491else
21d1c967 9492 echo "$ac_err" >&5
19bc6aad
VZ
9493 echo "configure: failed program was:" >&5
9494 cat conftest.$ac_ext >&5
9495 rm -rf conftest*
21d1c967 9496 eval "ac_cv_header_$ac_safe=no"
19bc6aad
VZ
9497fi
9498rm -f conftest*
19bc6aad 9499fi
21d1c967
GD
9500if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9501 echo "$ac_t""yes" 1>&6
9502 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9503 cat >> confdefs.h <<EOF
9504#define $ac_tr_hdr 1
19bc6aad 9505EOF
21d1c967
GD
9506
9507else
9508 echo "$ac_t""no" 1>&6
9509fi
9510done
19bc6aad 9511
19bc6aad
VZ
9512fi
9513
21d1c967
GD
9514for ac_hdr in stdlib.h
9515do
9516ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9517echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1d1b75ac 9518echo "configure:9519: checking for $ac_hdr" >&5
21d1c967 9519if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
18dbb1f6
VZ
9520 echo $ac_n "(cached) $ac_c" 1>&6
9521else
9522 cat > conftest.$ac_ext <<EOF
1d1b75ac 9523#line 9524 "configure"
18dbb1f6 9524#include "confdefs.h"
21d1c967 9525#include <$ac_hdr>
18dbb1f6 9526EOF
21d1c967 9527ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1d1b75ac 9528{ (eval echo configure:9529: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
21d1c967
GD
9529ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9530if test -z "$ac_err"; then
18dbb1f6 9531 rm -rf conftest*
21d1c967 9532 eval "ac_cv_header_$ac_safe=yes"
18dbb1f6 9533else
21d1c967 9534 echo "$ac_err" >&5
18dbb1f6
VZ
9535 echo "configure: failed program was:" >&5
9536 cat conftest.$ac_ext >&5
21d1c967
GD
9537 rm -rf conftest*
9538 eval "ac_cv_header_$ac_safe=no"
18dbb1f6
VZ
9539fi
9540rm -f conftest*
90dd450c 9541fi
21d1c967
GD
9542if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9543 echo "$ac_t""yes" 1>&6
9544 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9545 cat >> confdefs.h <<EOF
9546#define $ac_tr_hdr 1
90dd450c 9547EOF
21d1c967
GD
9548
9549else
9550 echo "$ac_t""no" 1>&6
9551fi
9552done
90dd450c 9553
21d1c967
GD
9554for ac_hdr in malloc.h
9555do
9556ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9557echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1d1b75ac 9558echo "configure:9559: checking for $ac_hdr" >&5
21d1c967 9559if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
90dd450c 9560 echo $ac_n "(cached) $ac_c" 1>&6
90dd450c
VZ
9561else
9562 cat > conftest.$ac_ext <<EOF
1d1b75ac 9563#line 9564 "configure"
90dd450c 9564#include "confdefs.h"
21d1c967 9565#include <$ac_hdr>
18dbb1f6 9566EOF
21d1c967 9567ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1d1b75ac 9568{ (eval echo configure:9569: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
21d1c967
GD
9569ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9570if test -z "$ac_err"; then
9571 rm -rf conftest*
9572 eval "ac_cv_header_$ac_safe=yes"
18dbb1f6 9573else
21d1c967 9574 echo "$ac_err" >&5
18dbb1f6
VZ
9575 echo "configure: failed program was:" >&5
9576 cat conftest.$ac_ext >&5
21d1c967
GD
9577 rm -rf conftest*
9578 eval "ac_cv_header_$ac_safe=no"
18dbb1f6 9579fi
21d1c967 9580rm -f conftest*
18dbb1f6 9581fi
21d1c967
GD
9582if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9583 echo "$ac_t""yes" 1>&6
9584 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9585 cat >> confdefs.h <<EOF
9586#define $ac_tr_hdr 1
4f14bcd8 9587EOF
21d1c967
GD
9588
9589else
9590 echo "$ac_t""no" 1>&6
9591fi
9592done
dad6c0ea 9593
21d1c967
GD
9594for ac_hdr in unistd.h
9595do
9596ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9597echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1d1b75ac 9598echo "configure:9599: checking for $ac_hdr" >&5
21d1c967 9599if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3a922bb4
RL
9600 echo $ac_n "(cached) $ac_c" 1>&6
9601else
9602 cat > conftest.$ac_ext <<EOF
1d1b75ac 9603#line 9604 "configure"
3a922bb4 9604#include "confdefs.h"
21d1c967 9605#include <$ac_hdr>
3a922bb4 9606EOF
21d1c967 9607ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1d1b75ac 9608{ (eval echo configure:9609: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
21d1c967
GD
9609ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9610if test -z "$ac_err"; then
9611 rm -rf conftest*
9612 eval "ac_cv_header_$ac_safe=yes"
3a922bb4 9613else
21d1c967 9614 echo "$ac_err" >&5
3a922bb4
RL
9615 echo "configure: failed program was:" >&5
9616 cat conftest.$ac_ext >&5
21d1c967
GD
9617 rm -rf conftest*
9618 eval "ac_cv_header_$ac_safe=no"
3a922bb4 9619fi
21d1c967 9620rm -f conftest*
90dd450c 9621fi
21d1c967
GD
9622if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9623 echo "$ac_t""yes" 1>&6
9624 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9625 cat >> confdefs.h <<EOF
9626#define $ac_tr_hdr 1
90dd450c 9627EOF
21d1c967
GD
9628
9629else
9630 echo "$ac_t""no" 1>&6
9631fi
9632done
90dd450c 9633
21d1c967
GD
9634for ac_hdr in wchar.h
9635do
9636ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9637echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1d1b75ac 9638echo "configure:9639: checking for $ac_hdr" >&5
21d1c967 9639if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4f14bcd8 9640 echo $ac_n "(cached) $ac_c" 1>&6
90dd450c
VZ
9641else
9642 cat > conftest.$ac_ext <<EOF
1d1b75ac 9643#line 9644 "configure"
4f14bcd8 9644#include "confdefs.h"
21d1c967 9645#include <$ac_hdr>
3a922bb4 9646EOF
21d1c967 9647ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1d1b75ac 9648{ (eval echo configure:9649: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
21d1c967
GD
9649ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9650if test -z "$ac_err"; then
9651 rm -rf conftest*
9652 eval "ac_cv_header_$ac_safe=yes"
4f14bcd8 9653else
21d1c967 9654 echo "$ac_err" >&5
4f14bcd8
GD
9655 echo "configure: failed program was:" >&5
9656 cat conftest.$ac_ext >&5
21d1c967
GD
9657 rm -rf conftest*
9658 eval "ac_cv_header_$ac_safe=no"
3a922bb4 9659fi
21d1c967 9660rm -f conftest*
4f14bcd8 9661fi
21d1c967
GD
9662if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9663 echo "$ac_t""yes" 1>&6
9664 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9665 cat >> confdefs.h <<EOF
9666#define $ac_tr_hdr 1
4f14bcd8 9667EOF
21d1c967
GD
9668
9669else
9670 echo "$ac_t""no" 1>&6
9671fi
9672done
4f14bcd8 9673
4f14bcd8 9674
21d1c967
GD
9675if test "$ac_cv_header_wchar_h" != "yes"; then
9676 for ac_hdr in wcstr.h
9677do
9678ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9679echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1d1b75ac 9680echo "configure:9681: checking for $ac_hdr" >&5
21d1c967 9681if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
d4158b5d
VS
9682 echo $ac_n "(cached) $ac_c" 1>&6
9683else
9684 cat > conftest.$ac_ext <<EOF
1d1b75ac 9685#line 9686 "configure"
d4158b5d 9686#include "confdefs.h"
21d1c967 9687#include <$ac_hdr>
d4158b5d 9688EOF
21d1c967 9689ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1d1b75ac 9690{ (eval echo configure:9691: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
21d1c967
GD
9691ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9692if test -z "$ac_err"; then
9693 rm -rf conftest*
9694 eval "ac_cv_header_$ac_safe=yes"
d4158b5d 9695else
21d1c967 9696 echo "$ac_err" >&5
d4158b5d
VS
9697 echo "configure: failed program was:" >&5
9698 cat conftest.$ac_ext >&5
21d1c967
GD
9699 rm -rf conftest*
9700 eval "ac_cv_header_$ac_safe=no"
d4158b5d 9701fi
21d1c967
GD
9702rm -f conftest*
9703fi
9704if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9705 echo "$ac_t""yes" 1>&6
9706 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9707 cat >> confdefs.h <<EOF
9708#define $ac_tr_hdr 1
9709EOF
9710
9711else
9712 echo "$ac_t""no" 1>&6
d4158b5d 9713fi
21d1c967 9714done
f6bcfd97 9715
90dd450c 9716fi
90dd450c
VZ
9717
9718
21d1c967
GD
9719for ac_hdr in fnmatch.h
9720do
9721ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9722echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1d1b75ac 9723echo "configure:9724: checking for $ac_hdr" >&5
21d1c967 9724if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
90dd450c 9725 echo $ac_n "(cached) $ac_c" 1>&6
90dd450c
VZ
9726else
9727 cat > conftest.$ac_ext <<EOF
1d1b75ac 9728#line 9729 "configure"
90dd450c 9729#include "confdefs.h"
21d1c967 9730#include <$ac_hdr>
90dd450c 9731EOF
21d1c967 9732ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1d1b75ac 9733{ (eval echo configure:9734: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
21d1c967
GD
9734ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9735if test -z "$ac_err"; then
9736 rm -rf conftest*
9737 eval "ac_cv_header_$ac_safe=yes"
3a922bb4 9738else
21d1c967 9739 echo "$ac_err" >&5
3a922bb4
RL
9740 echo "configure: failed program was:" >&5
9741 cat conftest.$ac_ext >&5
21d1c967
GD
9742 rm -rf conftest*
9743 eval "ac_cv_header_$ac_safe=no"
3a922bb4 9744fi
21d1c967 9745rm -f conftest*
4f14bcd8 9746fi
21d1c967
GD
9747if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9748 echo "$ac_t""yes" 1>&6
9749 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9750 cat >> confdefs.h <<EOF
9751#define $ac_tr_hdr 1
90dd450c 9752EOF
21d1c967
GD
9753
9754else
9755 echo "$ac_t""no" 1>&6
9756fi
9757done
90dd450c
VZ
9758
9759
21d1c967
GD
9760if test "x$ac_cv_header_fnmatch_h" = "xyes"; then
9761 for ac_func in fnmatch
9762do
9763echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1d1b75ac 9764echo "configure:9765: checking for $ac_func" >&5
21d1c967 9765if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
90dd450c 9766 echo $ac_n "(cached) $ac_c" 1>&6
90dd450c
VZ
9767else
9768 cat > conftest.$ac_ext <<EOF
1d1b75ac 9769#line 9770 "configure"
90dd450c 9770#include "confdefs.h"
21d1c967
GD
9771/* System header to define __stub macros and hopefully few prototypes,
9772 which can conflict with char $ac_func(); below. */
9773#include <assert.h>
9774/* Override any gcc2 internal prototype to avoid an error. */
9775/* We use char because int might match the return type of a gcc2
9776 builtin and then its argument prototype would still apply. */
9777char $ac_func();
9778
9779int main() {
9780
9781/* The GNU C library defines this for functions which it implements
9782 to always fail with ENOSYS. Some functions are actually named
9783 something starting with __ and the normal name is an alias. */
9784#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9785choke me
9786#else
9787$ac_func();
9788#endif
9789
9790; return 0; }
90dd450c 9791EOF
1d1b75ac 9792if { (eval echo configure:9793: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21d1c967
GD
9793 rm -rf conftest*
9794 eval "ac_cv_func_$ac_func=yes"
90dd450c
VZ
9795else
9796 echo "configure: failed program was:" >&5
9797 cat conftest.$ac_ext >&5
21d1c967
GD
9798 rm -rf conftest*
9799 eval "ac_cv_func_$ac_func=no"
90dd450c 9800fi
21d1c967 9801rm -f conftest*
4f14bcd8 9802fi
32832908 9803
21d1c967
GD
9804if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9805 echo "$ac_t""yes" 1>&6
9806 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9807 cat >> confdefs.h <<EOF
9808#define $ac_tr_func 1
90dd450c 9809EOF
21d1c967
GD
9810
9811else
9812 echo "$ac_t""no" 1>&6
9813fi
9814done
90dd450c 9815
21d1c967 9816fi
90dd450c 9817
21d1c967
GD
9818for ac_hdr in langinfo.h
9819do
9820ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9821echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1d1b75ac 9822echo "configure:9823: checking for $ac_hdr" >&5
21d1c967 9823if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
90dd450c 9824 echo $ac_n "(cached) $ac_c" 1>&6
90dd450c
VZ
9825else
9826 cat > conftest.$ac_ext <<EOF
1d1b75ac 9827#line 9828 "configure"
90dd450c 9828#include "confdefs.h"
21d1c967 9829#include <$ac_hdr>
90dd450c 9830EOF
21d1c967 9831ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1d1b75ac 9832{ (eval echo configure:9833: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
21d1c967
GD
9833ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9834if test -z "$ac_err"; then
9835 rm -rf conftest*
9836 eval "ac_cv_header_$ac_safe=yes"
90dd450c 9837else
21d1c967 9838 echo "$ac_err" >&5
90dd450c
VZ
9839 echo "configure: failed program was:" >&5
9840 cat conftest.$ac_ext >&5
21d1c967
GD
9841 rm -rf conftest*
9842 eval "ac_cv_header_$ac_safe=no"
90dd450c 9843fi
21d1c967 9844rm -f conftest*
4f14bcd8 9845fi
21d1c967
GD
9846if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9847 echo "$ac_t""yes" 1>&6
9848 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9849 cat >> confdefs.h <<EOF
9850#define $ac_tr_hdr 1
90dd450c 9851EOF
21d1c967
GD
9852
9853else
9854 echo "$ac_t""no" 1>&6
9855fi
9856done
3a922bb4 9857
7b7a7637 9858
21d1c967
GD
9859if test "$wxUSE_GUI" = "yes"; then
9860 if test "$wxUSE_UNIX" = "yes"; then
9861 for ac_hdr in X11/XKBlib.h
9862do
9863ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9864echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1d1b75ac 9865echo "configure:9866: checking for $ac_hdr" >&5
21d1c967 9866if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
90dd450c 9867 echo $ac_n "(cached) $ac_c" 1>&6
90dd450c
VZ
9868else
9869 cat > conftest.$ac_ext <<EOF
1d1b75ac 9870#line 9871 "configure"
90dd450c 9871#include "confdefs.h"
21d1c967 9872#include <$ac_hdr>
90dd450c 9873EOF
21d1c967 9874ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1d1b75ac 9875{ (eval echo configure:9876: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
21d1c967
GD
9876ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9877if test -z "$ac_err"; then
9878 rm -rf conftest*
9879 eval "ac_cv_header_$ac_safe=yes"
90dd450c 9880else
21d1c967 9881 echo "$ac_err" >&5
90dd450c
VZ
9882 echo "configure: failed program was:" >&5
9883 cat conftest.$ac_ext >&5
21d1c967
GD
9884 rm -rf conftest*
9885 eval "ac_cv_header_$ac_safe=no"
3a922bb4 9886fi
21d1c967 9887rm -f conftest*
90dd450c 9888fi
21d1c967
GD
9889if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9890 echo "$ac_t""yes" 1>&6
9891 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9892 cat >> confdefs.h <<EOF
9893#define $ac_tr_hdr 1
4f14bcd8 9894EOF
21d1c967
GD
9895
9896else
9897 echo "$ac_t""no" 1>&6
9898fi
9899done
10f2d63a 9900
21d1c967 9901 fi
90dd450c 9902fi
81809c07 9903
21d1c967
GD
9904
9905echo $ac_n "checking for working const""... $ac_c" 1>&6
1d1b75ac 9906echo "configure:9907: checking for working const" >&5
21d1c967 9907if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
8168de4c
VZ
9908 echo $ac_n "(cached) $ac_c" 1>&6
9909else
21d1c967 9910 cat > conftest.$ac_ext <<EOF
1d1b75ac 9911#line 9912 "configure"
4f14bcd8 9912#include "confdefs.h"
21d1c967 9913
4f14bcd8 9914int main() {
21d1c967
GD
9915
9916/* Ultrix mips cc rejects this. */
9917typedef int charset[2]; const charset x;
9918/* SunOS 4.1.1 cc rejects this. */
9919char const *const *ccp;
9920char **p;
9921/* NEC SVR4.0.2 mips cc rejects this. */
9922struct point {int x, y;};
9923static struct point const zero = {0,0};
9924/* AIX XL C 1.02.0.0 rejects this.
9925 It does not let you subtract one const X* pointer from another in an arm
9926 of an if-expression whose if-part is not a constant expression */
9927const char *g = "string";
9928ccp = &g + (g ? g-g : 0);
9929/* HPUX 7.0 cc rejects these. */
9930++ccp;
9931p = (char**) ccp;
9932ccp = (char const *const *) p;
9933{ /* SCO 3.2v4 cc rejects this. */
9934 char *t;
9935 char const *s = 0 ? (char *) 0 : (char const *) 0;
9936
9937 *t++ = 0;
9938}
9939{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
9940 int x[] = {25, 17};
9941 const int *foo = &x[0];
9942 ++foo;
9943}
9944{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
9945 typedef const int *iptr;
9946 iptr p = 0;
9947 ++p;
9948}
9949{ /* AIX XL C 1.02.0.0 rejects this saying
9950 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
9951 struct s { int j; const int *ap[3]; };
9952 struct s *b; b->j = 5;
9953}
9954{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
9955 const int foo = 10;
9956}
4f14bcd8 9957
4f14bcd8
GD
9958; return 0; }
9959EOF
1d1b75ac 9960if { (eval echo configure:9961: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4f14bcd8 9961 rm -rf conftest*
21d1c967 9962 ac_cv_c_const=yes
6f72b082 9963else
4f14bcd8
GD
9964 echo "configure: failed program was:" >&5
9965 cat conftest.$ac_ext >&5
9966 rm -rf conftest*
21d1c967 9967 ac_cv_c_const=no
4f14bcd8
GD
9968fi
9969rm -f conftest*
698dcdb6 9970fi
6f72b082 9971
21d1c967
GD
9972echo "$ac_t""$ac_cv_c_const" 1>&6
9973if test $ac_cv_c_const = no; then
9974 cat >> confdefs.h <<\EOF
9975#define const
90dd450c
VZ
9976EOF
9977
21d1c967 9978fi
90dd450c 9979
21d1c967 9980echo $ac_n "checking for inline""... $ac_c" 1>&6
1d1b75ac 9981echo "configure:9982: checking for inline" >&5
21d1c967 9982if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
4f14bcd8 9983 echo $ac_n "(cached) $ac_c" 1>&6
6f72b082 9984else
21d1c967
GD
9985 ac_cv_c_inline=no
9986for ac_kw in inline __inline__ __inline; do
9987 cat > conftest.$ac_ext <<EOF
1d1b75ac 9988#line 9989 "configure"
4f14bcd8 9989#include "confdefs.h"
90dd450c 9990
21d1c967
GD
9991int main() {
9992} $ac_kw foo() {
4f14bcd8
GD
9993; return 0; }
9994EOF
1d1b75ac 9995if { (eval echo configure:9996: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4f14bcd8 9996 rm -rf conftest*
21d1c967 9997 ac_cv_c_inline=$ac_kw; break
6f72b082 9998else
4f14bcd8
GD
9999 echo "configure: failed program was:" >&5
10000 cat conftest.$ac_ext >&5
698dcdb6 10001fi
4f14bcd8 10002rm -f conftest*
21d1c967 10003done
4f14bcd8 10004
21d1c967 10005fi
4f14bcd8 10006
21d1c967
GD
10007echo "$ac_t""$ac_cv_c_inline" 1>&6
10008case "$ac_cv_c_inline" in
10009 inline | yes) ;;
10010 no) cat >> confdefs.h <<\EOF
10011#define inline
90dd450c 10012EOF
21d1c967
GD
10013 ;;
10014 *) cat >> confdefs.h <<EOF
10015#define inline $ac_cv_c_inline
4f14bcd8 10016EOF
21d1c967
GD
10017 ;;
10018esac
4f14bcd8 10019
90dd450c 10020
21d1c967 10021echo $ac_n "checking size of char""... $ac_c" 1>&6
1d1b75ac 10022echo "configure:10023: checking size of char" >&5
21d1c967 10023if eval "test \"`echo '$''{'ac_cv_sizeof_char'+set}'`\" = set"; then
4f14bcd8
GD
10024 echo $ac_n "(cached) $ac_c" 1>&6
10025else
21d1c967
GD
10026 if test "$cross_compiling" = yes; then
10027 ac_cv_sizeof_char=1
4f14bcd8 10028else
90dd450c 10029 cat > conftest.$ac_ext <<EOF
1d1b75ac 10030#line 10031 "configure"
4f14bcd8 10031#include "confdefs.h"
21d1c967
GD
10032#include <stdio.h>
10033main()
10034{
10035 FILE *f=fopen("conftestval", "w");
10036 if (!f) exit(1);
10037 fprintf(f, "%d\n", sizeof(char));
10038 exit(0);
90dd450c 10039}
4f14bcd8 10040EOF
1d1b75ac 10041if { (eval echo configure:10042: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
90dd450c 10042then
21d1c967 10043 ac_cv_sizeof_char=`cat conftestval`
4f14bcd8
GD
10044else
10045 echo "configure: failed program was:" >&5
10046 cat conftest.$ac_ext >&5
90dd450c 10047 rm -fr conftest*
21d1c967 10048 ac_cv_sizeof_char=0
90dd450c
VZ
10049fi
10050rm -fr conftest*
4f14bcd8 10051fi
4f14bcd8
GD
10052
10053fi
21d1c967
GD
10054echo "$ac_t""$ac_cv_sizeof_char" 1>&6
10055cat >> confdefs.h <<EOF
10056#define SIZEOF_CHAR $ac_cv_sizeof_char
10057EOF
4f14bcd8 10058
21d1c967
GD
10059
10060echo $ac_n "checking size of short""... $ac_c" 1>&6
1d1b75ac 10061echo "configure:10062: checking size of short" >&5
21d1c967
GD
10062if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
10063 echo $ac_n "(cached) $ac_c" 1>&6
10064else
10065 if test "$cross_compiling" = yes; then
10066 ac_cv_sizeof_short=2
10067else
10068 cat > conftest.$ac_ext <<EOF
1d1b75ac 10069#line 10070 "configure"
21d1c967
GD
10070#include "confdefs.h"
10071#include <stdio.h>
10072main()
10073{
10074 FILE *f=fopen("conftestval", "w");
10075 if (!f) exit(1);
10076 fprintf(f, "%d\n", sizeof(short));
10077 exit(0);
10078}
90dd450c 10079EOF
1d1b75ac 10080if { (eval echo configure:10081: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
21d1c967
GD
10081then
10082 ac_cv_sizeof_short=`cat conftestval`
10083else
10084 echo "configure: failed program was:" >&5
10085 cat conftest.$ac_ext >&5
10086 rm -fr conftest*
10087 ac_cv_sizeof_short=0
10088fi
10089rm -fr conftest*
10090fi
4f14bcd8 10091
4f14bcd8 10092fi
21d1c967
GD
10093echo "$ac_t""$ac_cv_sizeof_short" 1>&6
10094cat >> confdefs.h <<EOF
10095#define SIZEOF_SHORT $ac_cv_sizeof_short
10096EOF
4f14bcd8
GD
10097
10098
21d1c967 10099echo $ac_n "checking size of void *""... $ac_c" 1>&6
1d1b75ac 10100echo "configure:10101: checking size of void *" >&5
21d1c967 10101if eval "test \"`echo '$''{'ac_cv_sizeof_void_p'+set}'`\" = set"; then
4f14bcd8
GD
10102 echo $ac_n "(cached) $ac_c" 1>&6
10103else
21d1c967
GD
10104 if test "$cross_compiling" = yes; then
10105 ac_cv_sizeof_void_p=4
10106else
4f14bcd8 10107 cat > conftest.$ac_ext <<EOF
1d1b75ac 10108#line 10109 "configure"
4f14bcd8 10109#include "confdefs.h"
21d1c967
GD
10110#include <stdio.h>
10111main()
10112{
10113 FILE *f=fopen("conftestval", "w");
10114 if (!f) exit(1);
10115 fprintf(f, "%d\n", sizeof(void *));
10116 exit(0);
10117}
4f14bcd8 10118EOF
1d1b75ac 10119if { (eval echo configure:10120: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
21d1c967
GD
10120then
10121 ac_cv_sizeof_void_p=`cat conftestval`
4f14bcd8 10122else
4f14bcd8
GD
10123 echo "configure: failed program was:" >&5
10124 cat conftest.$ac_ext >&5
21d1c967
GD
10125 rm -fr conftest*
10126 ac_cv_sizeof_void_p=0
4f14bcd8 10127fi
21d1c967 10128rm -fr conftest*
4f14bcd8 10129fi
4f14bcd8 10130
21d1c967
GD
10131fi
10132echo "$ac_t""$ac_cv_sizeof_void_p" 1>&6
10133cat >> confdefs.h <<EOF
10134#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
90dd450c
VZ
10135EOF
10136
90dd450c 10137
21d1c967 10138echo $ac_n "checking size of int""... $ac_c" 1>&6
1d1b75ac 10139echo "configure:10140: checking size of int" >&5
21d1c967 10140if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
4f14bcd8 10141 echo $ac_n "(cached) $ac_c" 1>&6
21d1c967
GD
10142else
10143 if test "$cross_compiling" = yes; then
10144 ac_cv_sizeof_int=4
4f14bcd8
GD
10145else
10146 cat > conftest.$ac_ext <<EOF
1d1b75ac 10147#line 10148 "configure"
4f14bcd8 10148#include "confdefs.h"
21d1c967
GD
10149#include <stdio.h>
10150main()
10151{
10152 FILE *f=fopen("conftestval", "w");
10153 if (!f) exit(1);
10154 fprintf(f, "%d\n", sizeof(int));
10155 exit(0);
10156}
4f14bcd8 10157EOF
1d1b75ac 10158if { (eval echo configure:10159: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
21d1c967
GD
10159then
10160 ac_cv_sizeof_int=`cat conftestval`
4f14bcd8 10161else
4f14bcd8
GD
10162 echo "configure: failed program was:" >&5
10163 cat conftest.$ac_ext >&5
21d1c967
GD
10164 rm -fr conftest*
10165 ac_cv_sizeof_int=0
4f14bcd8 10166fi
21d1c967 10167rm -fr conftest*
4f14bcd8 10168fi
4f14bcd8 10169
21d1c967
GD
10170fi
10171echo "$ac_t""$ac_cv_sizeof_int" 1>&6
10172cat >> confdefs.h <<EOF
10173#define SIZEOF_INT $ac_cv_sizeof_int
90dd450c
VZ
10174EOF
10175
90dd450c 10176
21d1c967 10177echo $ac_n "checking size of long""... $ac_c" 1>&6
1d1b75ac 10178echo "configure:10179: checking size of long" >&5
21d1c967 10179if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
4f14bcd8
GD
10180 echo $ac_n "(cached) $ac_c" 1>&6
10181else
21d1c967
GD
10182 if test "$cross_compiling" = yes; then
10183 ac_cv_sizeof_long=4
10184else
10185 cat > conftest.$ac_ext <<EOF
1d1b75ac 10186#line 10187 "configure"
90dd450c 10187#include "confdefs.h"
21d1c967
GD
10188#include <stdio.h>
10189main()
10190{
10191 FILE *f=fopen("conftestval", "w");
10192 if (!f) exit(1);
10193 fprintf(f, "%d\n", sizeof(long));
10194 exit(0);
10195}
4f14bcd8 10196EOF
1d1b75ac 10197if { (eval echo configure:10198: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
21d1c967
GD
10198then
10199 ac_cv_sizeof_long=`cat conftestval`
4f14bcd8
GD
10200else
10201 echo "configure: failed program was:" >&5
10202 cat conftest.$ac_ext >&5
21d1c967
GD
10203 rm -fr conftest*
10204 ac_cv_sizeof_long=0
4f14bcd8 10205fi
21d1c967 10206rm -fr conftest*
90dd450c 10207fi
4f14bcd8 10208
21d1c967
GD
10209fi
10210echo "$ac_t""$ac_cv_sizeof_long" 1>&6
10211cat >> confdefs.h <<EOF
10212#define SIZEOF_LONG $ac_cv_sizeof_long
90dd450c 10213EOF
4f14bcd8 10214
4f14bcd8 10215
4f14bcd8 10216
21d1c967
GD
10217case "${host}" in
10218 arm-*-linux* )
10219 echo $ac_n "checking size of long long""... $ac_c" 1>&6
1d1b75ac 10220echo "configure:10221: checking size of long long" >&5
21d1c967
GD
10221if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
10222 echo $ac_n "(cached) $ac_c" 1>&6
10223else
10224 if test "$cross_compiling" = yes; then
10225 ac_cv_sizeof_long_long=8
10226else
10227 cat > conftest.$ac_ext <<EOF
1d1b75ac 10228#line 10229 "configure"
21d1c967
GD
10229#include "confdefs.h"
10230#include <stdio.h>
10231main()
10232{
10233 FILE *f=fopen("conftestval", "w");
10234 if (!f) exit(1);
10235 fprintf(f, "%d\n", sizeof(long long));
10236 exit(0);
10237}
90dd450c 10238EOF
1d1b75ac 10239if { (eval echo configure:10240: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
21d1c967
GD
10240then
10241 ac_cv_sizeof_long_long=`cat conftestval`
90dd450c 10242else
21d1c967
GD
10243 echo "configure: failed program was:" >&5
10244 cat conftest.$ac_ext >&5
10245 rm -fr conftest*
10246 ac_cv_sizeof_long_long=0
10247fi
10248rm -fr conftest*
90dd450c 10249fi
4f14bcd8 10250
21d1c967
GD
10251fi
10252echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
10253cat >> confdefs.h <<EOF
10254#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
10255EOF
90dd450c 10256
21d1c967
GD
10257
10258 ;;
10259 * )
10260 echo $ac_n "checking size of long long""... $ac_c" 1>&6
1d1b75ac 10261echo "configure:10262: checking size of long long" >&5
21d1c967 10262if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
4f14bcd8
GD
10263 echo $ac_n "(cached) $ac_c" 1>&6
10264else
21d1c967
GD
10265 if test "$cross_compiling" = yes; then
10266 ac_cv_sizeof_long_long=0
10267else
10268 cat > conftest.$ac_ext <<EOF
1d1b75ac 10269#line 10270 "configure"
90dd450c 10270#include "confdefs.h"
21d1c967
GD
10271#include <stdio.h>
10272main()
10273{
10274 FILE *f=fopen("conftestval", "w");
10275 if (!f) exit(1);
10276 fprintf(f, "%d\n", sizeof(long long));
10277 exit(0);
10278}
90dd450c 10279EOF
1d1b75ac 10280if { (eval echo configure:10281: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
21d1c967
GD
10281then
10282 ac_cv_sizeof_long_long=`cat conftestval`
4f14bcd8 10283else
90dd450c
VZ
10284 echo "configure: failed program was:" >&5
10285 cat conftest.$ac_ext >&5
21d1c967
GD
10286 rm -fr conftest*
10287 ac_cv_sizeof_long_long=0
90dd450c 10288fi
21d1c967 10289rm -fr conftest*
4f14bcd8
GD
10290fi
10291
90dd450c 10292fi
21d1c967
GD
10293echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
10294cat >> confdefs.h <<EOF
10295#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
90dd450c 10296EOF
9e691f46 10297
9e691f46 10298
21d1c967
GD
10299esac
10300
10301echo $ac_n "checking size of wchar_t""... $ac_c" 1>&6
1d1b75ac 10302echo "configure:10303: checking size of wchar_t" >&5
21d1c967 10303if eval "test \"`echo '$''{'wx_cv_sizeof_wchar_t'+set}'`\" = set"; then
90dd450c 10304 echo $ac_n "(cached) $ac_c" 1>&6
21d1c967
GD
10305else
10306
10307 if test "$cross_compiling" = yes; then
10308 wx_cv_sizeof_wchar_t=4
10309
6f72b082 10310else
698dcdb6 10311 cat > conftest.$ac_ext <<EOF
1d1b75ac 10312#line 10313 "configure"
6f72b082 10313#include "confdefs.h"
21d1c967
GD
10314
10315 #ifdef HAVE_WCHAR_H
10316 # ifdef __CYGWIN__
10317 # include <stddef.h>
10318 # endif
10319 # include <wchar.h>
10320 #endif
10321 #ifdef HAVE_STDLIB_H
10322 # include <stdlib.h>
10323 #endif
10324 #include <stdio.h>
10325 int main()
10326 {
10327 FILE *f=fopen("conftestval", "w");
10328 if (!f) exit(1);
10329 fprintf(f, "%i", sizeof(wchar_t));
10330 exit(0);
10331 }
10332
698dcdb6 10333EOF
1d1b75ac 10334if { (eval echo configure:10335: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
21d1c967
GD
10335then
10336 wx_cv_sizeof_wchar_t=`cat conftestval`
6f72b082 10337else
698dcdb6
VZ
10338 echo "configure: failed program was:" >&5
10339 cat conftest.$ac_ext >&5
21d1c967
GD
10340 rm -fr conftest*
10341 wx_cv_sizeof_wchar_t=0
6f72b082 10342fi
21d1c967 10343rm -fr conftest*
6f72b082 10344fi
6f72b082 10345
90dd450c 10346
3f345b47
VZ
10347fi
10348
21d1c967 10349echo "$ac_t""$wx_cv_sizeof_wchar_t" 1>&6
3f345b47 10350
21d1c967
GD
10351cat >> confdefs.h <<EOF
10352#define SIZEOF_WCHAR_T $wx_cv_sizeof_wchar_t
10353EOF
90dd450c 10354
90dd450c 10355
21d1c967
GD
10356# Check whether --enable-largefile or --disable-largefile was given.
10357if test "${enable_largefile+set}" = set; then
10358 enableval="$enable_largefile"
10359 :
3f345b47
VZ
10360fi
10361
21d1c967
GD
10362if test "$enable_largefile" != no; then
10363 wx_largefile=no
10364
10365 echo $ac_n "checking for _FILE_OFFSET_BITS value needed for large files""... $ac_c" 1>&6
1d1b75ac 10366echo "configure:10367: checking for _FILE_OFFSET_BITS value needed for large files" >&5
21d1c967 10367if eval "test \"`echo '$''{'ac_cv_sys_file_offset_bits'+set}'`\" = set"; then
698dcdb6 10368 echo $ac_n "(cached) $ac_c" 1>&6
f6bcfd97 10369else
21d1c967
GD
10370
10371 cat > conftest.$ac_ext <<EOF
1d1b75ac 10372#line 10373 "configure"
90dd450c 10373#include "confdefs.h"
21d1c967
GD
10374#define _FILE_OFFSET_BITS 64
10375 #include <sys/types.h>
10376int main() {
10377typedef struct {
10378 unsigned int field: sizeof(off_t) == 8;
10379} wxlf;
10380
10381; return 0; }
90dd450c 10382EOF
1d1b75ac 10383if { (eval echo configure:10384: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
90dd450c 10384 rm -rf conftest*
21d1c967 10385 ac_cv_sys_file_offset_bits=64
f6bcfd97 10386else
90dd450c
VZ
10387 echo "configure: failed program was:" >&5
10388 cat conftest.$ac_ext >&5
10389 rm -rf conftest*
21d1c967 10390 ac_cv_sys_file_offset_bits=no
f6bcfd97 10391fi
90dd450c 10392rm -f conftest*
21d1c967
GD
10393
10394
90dd450c 10395fi
21d1c967
GD
10396
10397echo "$ac_t""$ac_cv_sys_file_offset_bits" 1>&6
10398
10399 if test "$ac_cv_sys_file_offset_bits" != no; then
10400 wx_largefile=yes
10401 cat >> confdefs.h <<EOF
10402#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
10403EOF
10404
10405 fi
10406
10407 if test "x$wx_largefile" != "xyes"; then
10408
10409 echo $ac_n "checking for _LARGE_FILES value needed for large files""... $ac_c" 1>&6
1d1b75ac 10410echo "configure:10411: checking for _LARGE_FILES value needed for large files" >&5
21d1c967 10411if eval "test \"`echo '$''{'ac_cv_sys_large_files'+set}'`\" = set"; then
90dd450c 10412 echo $ac_n "(cached) $ac_c" 1>&6
f6bcfd97 10413else
21d1c967
GD
10414
10415 cat > conftest.$ac_ext <<EOF
1d1b75ac 10416#line 10417 "configure"
f6bcfd97 10417#include "confdefs.h"
21d1c967
GD
10418#define _LARGE_FILES 1
10419 #include <sys/types.h>
90dd450c 10420int main() {
21d1c967
GD
10421typedef struct {
10422 unsigned int field: sizeof(off_t) == 8;
10423} wxlf;
10424
90dd450c 10425; return 0; }
698dcdb6 10426EOF
1d1b75ac 10427if { (eval echo configure:10428: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
90dd450c 10428 rm -rf conftest*
21d1c967 10429 ac_cv_sys_large_files=1
f6bcfd97 10430else
698dcdb6
VZ
10431 echo "configure: failed program was:" >&5
10432 cat conftest.$ac_ext >&5
90dd450c 10433 rm -rf conftest*
21d1c967 10434 ac_cv_sys_large_files=no
f6bcfd97 10435fi
90dd450c 10436rm -f conftest*
21d1c967
GD
10437
10438
f6bcfd97 10439fi
698dcdb6 10440
21d1c967 10441echo "$ac_t""$ac_cv_sys_large_files" 1>&6
3f345b47 10442
21d1c967
GD
10443 if test "$ac_cv_sys_large_files" != no; then
10444 wx_largefile=yes
10445 cat >> confdefs.h <<EOF
10446#define _LARGE_FILES $ac_cv_sys_large_files
10447EOF
90dd450c 10448
90dd450c
VZ
10449 fi
10450
90dd450c 10451 fi
90dd450c 10452
21d1c967 10453 echo $ac_n "checking if large file support is available""... $ac_c" 1>&6
1d1b75ac 10454echo "configure:10455: checking if large file support is available" >&5
21d1c967
GD
10455 if test "x$wx_largefile" = "xyes"; then
10456 cat >> confdefs.h <<\EOF
10457#define HAVE_LARGEFILE_SUPPORT 1
90dd450c
VZ
10458EOF
10459
90dd450c 10460 fi
21d1c967
GD
10461 echo "$ac_t""$wx_largefile" 1>&6
10462fi
90dd450c 10463
90dd450c 10464
21d1c967 10465echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
1d1b75ac 10466echo "configure:10467: checking whether byte ordering is bigendian" >&5
21d1c967 10467if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
90dd450c
VZ
10468 echo $ac_n "(cached) $ac_c" 1>&6
10469else
21d1c967
GD
10470 ac_cv_c_bigendian=unknown
10471# See if sys/param.h defines the BYTE_ORDER macro.
10472cat > conftest.$ac_ext <<EOF
1d1b75ac 10473#line 10474 "configure"
90dd450c 10474#include "confdefs.h"
21d1c967
GD
10475#include <sys/types.h>
10476#include <sys/param.h>
10477int main() {
10478
10479#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
10480 bogus endian macros
10481#endif
10482; return 0; }
90dd450c 10483EOF
1d1b75ac 10484if { (eval echo configure:10485: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
90dd450c 10485 rm -rf conftest*
21d1c967 10486 # It does; now see whether it defined to BIG_ENDIAN or not.
90dd450c 10487cat > conftest.$ac_ext <<EOF
1d1b75ac 10488#line 10489 "configure"
90dd450c 10489#include "confdefs.h"
21d1c967
GD
10490#include <sys/types.h>
10491#include <sys/param.h>
3f345b47 10492int main() {
21d1c967
GD
10493
10494#if BYTE_ORDER != BIG_ENDIAN
10495 not big endian
10496#endif
3f345b47
VZ
10497; return 0; }
10498EOF
1d1b75ac 10499if { (eval echo configure:10500: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3f345b47 10500 rm -rf conftest*
21d1c967 10501 ac_cv_c_bigendian=yes
3f345b47
VZ
10502else
10503 echo "configure: failed program was:" >&5
10504 cat conftest.$ac_ext >&5
10505 rm -rf conftest*
21d1c967 10506 ac_cv_c_bigendian=no
3f345b47
VZ
10507fi
10508rm -f conftest*
3f345b47 10509else
21d1c967
GD
10510 echo "configure: failed program was:" >&5
10511 cat conftest.$ac_ext >&5
3f345b47 10512fi
21d1c967
GD
10513rm -f conftest*
10514if test $ac_cv_c_bigendian = unknown; then
10515if test "$cross_compiling" = yes; then
10516 ac_cv_c_bigendian=unknown
10f2d63a 10517else
90dd450c 10518 cat > conftest.$ac_ext <<EOF
1d1b75ac 10519#line 10520 "configure"
90dd450c 10520#include "confdefs.h"
21d1c967
GD
10521main () {
10522 /* Are we little or big endian? From Harbison&Steele. */
10523 union
10524 {
10525 long l;
10526 char c[sizeof (long)];
10527 } u;
10528 u.l = 1;
10529 exit (u.c[sizeof (long) - 1] == 1);
10530}
3f345b47 10531EOF
1d1b75ac 10532if { (eval echo configure:10533: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
21d1c967
GD
10533then
10534 ac_cv_c_bigendian=no
3f345b47
VZ
10535else
10536 echo "configure: failed program was:" >&5
10537 cat conftest.$ac_ext >&5
21d1c967
GD
10538 rm -fr conftest*
10539 ac_cv_c_bigendian=yes
3f345b47 10540fi
21d1c967 10541rm -fr conftest*
8168de4c 10542fi
703e0a69 10543
21d1c967
GD
10544fi
10545fi
698dcdb6 10546
21d1c967
GD
10547echo "$ac_t""$ac_cv_c_bigendian" 1>&6
10548if test $ac_cv_c_bigendian = unknown; then
10549 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
10550fi
10551if test $ac_cv_c_bigendian = yes; then
10552 cat >> confdefs.h <<\EOF
10553#define WORDS_BIGENDIAN 1
10554EOF
10555
10556fi
10557
10558
10559echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
1d1b75ac 10560echo "configure:10561: checking how to run the C++ preprocessor" >&5
21d1c967
GD
10561if test -z "$CXXCPP"; then
10562if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
698dcdb6 10563 echo $ac_n "(cached) $ac_c" 1>&6
7ec2881a 10564else
21d1c967
GD
10565 ac_ext=C
10566# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10567ac_cpp='$CXXCPP $CPPFLAGS'
10568ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10569ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10570cross_compiling=$ac_cv_prog_cxx_cross
10571 CXXCPP="${CXX-g++} -E"
10572 cat > conftest.$ac_ext <<EOF
1d1b75ac 10573#line 10574 "configure"
7ec2881a 10574#include "confdefs.h"
21d1c967 10575#include <stdlib.h>
698dcdb6 10576EOF
21d1c967 10577ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1d1b75ac 10578{ (eval echo configure:10579: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
21d1c967
GD
10579ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10580if test -z "$ac_err"; then
10581 :
698dcdb6 10582else
21d1c967 10583 echo "$ac_err" >&5
698dcdb6
VZ
10584 echo "configure: failed program was:" >&5
10585 cat conftest.$ac_ext >&5
10586 rm -rf conftest*
21d1c967 10587 CXXCPP=/lib/cpp
698dcdb6
VZ
10588fi
10589rm -f conftest*
21d1c967
GD
10590 ac_cv_prog_CXXCPP="$CXXCPP"
10591ac_ext=C
10592# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10593ac_cpp='$CXXCPP $CPPFLAGS'
10594ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10595ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10596cross_compiling=$ac_cv_prog_cxx_cross
7ec2881a 10597fi
90dd450c 10598fi
21d1c967
GD
10599CXXCPP="$ac_cv_prog_CXXCPP"
10600echo "$ac_t""$CXXCPP" 1>&6
1e6feb95 10601
1725144d 10602
21d1c967 10603 if test "$cross_compiling" = "yes"; then
90dd450c 10604 cat >> confdefs.h <<\EOF
21d1c967 10605#define wxUSE_IOSTREAMH 1
90dd450c 10606EOF
ab9b9eab 10607
21d1c967
GD
10608 else
10609
10610 ac_ext=C
10611# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10612ac_cpp='$CXXCPP $CPPFLAGS'
10613ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10614ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10615cross_compiling=$ac_cv_prog_cxx_cross
10616
ba337fe7 10617
21d1c967
GD
10618 for ac_hdr in iostream
10619do
10620ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10621echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1d1b75ac 10622echo "configure:10623: checking for $ac_hdr" >&5
90dd450c 10623if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
698dcdb6 10624 echo $ac_n "(cached) $ac_c" 1>&6
ab9b9eab 10625else
90dd450c 10626 cat > conftest.$ac_ext <<EOF
1d1b75ac 10627#line 10628 "configure"
ab9b9eab 10628#include "confdefs.h"
21d1c967 10629#include <$ac_hdr>
698dcdb6
VZ
10630EOF
10631ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1d1b75ac 10632{ (eval echo configure:10633: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
10633ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10634if test -z "$ac_err"; then
10635 rm -rf conftest*
90dd450c 10636 eval "ac_cv_header_$ac_safe=yes"
ab9b9eab 10637else
698dcdb6
VZ
10638 echo "$ac_err" >&5
10639 echo "configure: failed program was:" >&5
ab9b9eab 10640 cat conftest.$ac_ext >&5
698dcdb6 10641 rm -rf conftest*
90dd450c 10642 eval "ac_cv_header_$ac_safe=no"
ab9b9eab 10643fi
698dcdb6 10644rm -f conftest*
90dd450c
VZ
10645fi
10646if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10647 echo "$ac_t""yes" 1>&6
21d1c967
GD
10648 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10649 cat >> confdefs.h <<EOF
10650#define $ac_tr_hdr 1
698dcdb6 10651EOF
21d1c967 10652
ab9b9eab 10653else
90dd450c
VZ
10654 echo "$ac_t""no" 1>&6
10655fi
21d1c967 10656done
10f2d63a 10657
10f2d63a 10658
21d1c967
GD
10659 if test "$ac_cv_header_iostream" = "yes" ; then
10660 :
10661 else
10662 cat >> confdefs.h <<\EOF
10663#define wxUSE_IOSTREAMH 1
10664EOF
788deba1 10665
90dd450c 10666 fi
ab9b9eab 10667
21d1c967
GD
10668 ac_ext=c
10669# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10670ac_cpp='$CPP $CPPFLAGS'
10671ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10672ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10673cross_compiling=$ac_cv_prog_cc_cross
ab9b9eab 10674
21d1c967 10675 fi
ab9b9eab 10676
21d1c967
GD
10677
10678
10679 echo $ac_n "checking if C++ compiler supports bool""... $ac_c" 1>&6
1d1b75ac 10680echo "configure:10681: checking if C++ compiler supports bool" >&5
21d1c967 10681if eval "test \"`echo '$''{'wx_cv_cpp_bool'+set}'`\" = set"; then
698dcdb6 10682 echo $ac_n "(cached) $ac_c" 1>&6
ab9b9eab 10683else
21d1c967
GD
10684
10685
10686 ac_ext=C
10687# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10688ac_cpp='$CXXCPP $CPPFLAGS'
10689ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10690ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10691cross_compiling=$ac_cv_prog_cxx_cross
10692
10693
10694 cat > conftest.$ac_ext <<EOF
1d1b75ac 10695#line 10696 "configure"
ab9b9eab 10696#include "confdefs.h"
21d1c967
GD
10697
10698
10699int main() {
10700
10701 bool b = true;
10702
10703 return 0;
10704
10705; return 0; }
698dcdb6 10706EOF
1d1b75ac 10707if { (eval echo configure:10708: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6 10708 rm -rf conftest*
21d1c967
GD
10709
10710 wx_cv_cpp_bool=yes
10711
698dcdb6
VZ
10712else
10713 echo "configure: failed program was:" >&5
10714 cat conftest.$ac_ext >&5
10715 rm -rf conftest*
21d1c967
GD
10716
10717 wx_cv_cpp_bool=no
10718
10719
698dcdb6
VZ
10720fi
10721rm -f conftest*
21d1c967
GD
10722
10723 ac_ext=c
10724# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10725ac_cpp='$CPP $CPPFLAGS'
10726ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10727ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10728cross_compiling=$ac_cv_prog_cc_cross
10729
10730
698dcdb6 10731fi
21d1c967
GD
10732
10733echo "$ac_t""$wx_cv_cpp_bool" 1>&6
10734
10735 if test "$wx_cv_cpp_bool" = "yes"; then
10736 cat >> confdefs.h <<\EOF
10737#define HAVE_BOOL 1
90dd450c 10738EOF
ab9b9eab 10739
21d1c967
GD
10740 fi
10741
10742
10743
10744SEARCH_INCLUDE="\
10745 /usr/local/include \
10746 \
10747 /usr/Motif-1.2/include \
10748 /usr/Motif-2.1/include \
10749 \
10750 /usr/include/Motif1.2 \
10751 /opt/xpm/include/X11 \
10752 /opt/GBxpm/include/ \
10753 /opt/GBxpm/X11/include/ \
10754 \
10755 /usr/Motif1.2/include \
10756 /usr/dt/include \
10757 /usr/openwin/include \
10758 \
10759 /usr/include/Xm \
10760 \
10761 /usr/X11R6/include \
10762 /usr/X11R6.4/include \
10763 /usr/X11R5/include \
10764 /usr/X11R4/include \
10765 \
10766 /usr/include/X11R6 \
10767 /usr/include/X11R5 \
10768 /usr/include/X11R4 \
10769 \
10770 /usr/local/X11R6/include \
10771 /usr/local/X11R5/include \
10772 /usr/local/X11R4/include \
10773 \
10774 /usr/local/include/X11R6 \
10775 /usr/local/include/X11R5 \
10776 /usr/local/include/X11R4 \
10777 \
10778 /usr/X11/include \
10779 /usr/include/X11 \
10780 /usr/local/X11/include \
10781 /usr/local/include/X11 \
10782 \
10783 /usr/X386/include \
10784 /usr/x386/include \
10785 /usr/XFree86/include/X11 \
10786 \
10787 X:/XFree86/include \
10788 X:/XFree86/include/X11 \
10789 \
10790 /usr/include/gtk \
10791 /usr/local/include/gtk \
10792 /usr/include/glib \
10793 /usr/local/include/glib \
10794 \
10795 /usr/include/qt \
10796 /usr/local/include/qt \
10797 \
10798 /usr/include/windows \
10799 /usr/include/wine \
10800 /usr/local/include/wine \
10801 \
10802 /usr/unsupported/include \
10803 /usr/athena/include \
10804 /usr/local/x11r5/include \
10805 /usr/lpp/Xamples/include \
10806 \
10807 /usr/openwin/share/include \
10808 \
10809 /usr/include"
10810
10811SEARCH_LIB="`echo "$SEARCH_INCLUDE" | sed s/include/lib/g` "
10812
10813
10814cat > confcache <<\EOF
10815# This file is a shell script that caches the results of configure
10816# tests run on this system so they can be shared between configure
10817# scripts and configure runs. It is not useful on other systems.
10818# If it contains results you don't want to keep, you may remove or edit it.
10819#
10820# By default, configure uses ./config.cache as the cache file,
10821# creating it if it does not exist already. You can give configure
10822# the --cache-file=FILE option to use a different cache file; that is
10823# what configure does when it calls configure scripts in
10824# subdirectories, so they share the cache.
10825# Giving --cache-file=/dev/null disables caching, for debugging configure.
10826# config.status only pays attention to the cache file if you give it the
10827# --recheck option to rerun configure.
10828#
698dcdb6 10829EOF
21d1c967
GD
10830# The following way of writing the cache mishandles newlines in values,
10831# but we know of no workaround that is simple, portable, and efficient.
10832# So, don't put newlines in cache variables' values.
10833# Ultrix sh set writes to stderr and can't be redirected directly,
10834# and sets the high bit in the cache file unless we assign to the vars.
10835(set) 2>&1 |
10836 case `(ac_space=' '; set | grep ac_space) 2>&1` in
10837 *ac_space=\ *)
10838 # `set' does not quote correctly, so add quotes (double-quote substitution
10839 # turns \\\\ into \\, and sed turns \\ into \).
10840 sed -n \
10841 -e "s/'/'\\\\''/g" \
10842 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
10843 ;;
10844 *)
10845 # `set' quotes correctly as required by POSIX, so do not add quotes.
10846 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
10847 ;;
10848 esac >> confcache
10849if cmp -s $cache_file confcache; then
90dd450c 10850 :
698dcdb6 10851else
21d1c967
GD
10852 if test -w $cache_file; then
10853 echo "updating cache $cache_file"
10854 cat confcache > $cache_file
10855 else
10856 echo "not updating unwritable cache $cache_file"
10857 fi
ab9b9eab 10858fi
21d1c967 10859rm -f confcache
ab9b9eab 10860
ab9b9eab 10861
21d1c967
GD
10862if test "$USE_LINUX" = 1; then
10863 echo $ac_n "checking for glibc 2.1 or later""... $ac_c" 1>&6
1d1b75ac 10864echo "configure:10865: checking for glibc 2.1 or later" >&5
21d1c967 10865if eval "test \"`echo '$''{'wx_cv_lib_glibc21'+set}'`\" = set"; then
698dcdb6
VZ
10866 echo $ac_n "(cached) $ac_c" 1>&6
10867else
90dd450c 10868
21d1c967 10869 cat > conftest.$ac_ext <<EOF
1d1b75ac 10870#line 10871 "configure"
ab9b9eab 10871#include "confdefs.h"
21d1c967 10872#include <features.h>
698dcdb6 10873int main() {
ab9b9eab 10874
21d1c967
GD
10875 #if (__GLIBC__ < 2) || (__GLIBC_MINOR__ < 1)
10876 #error not glibc2.1
10877 #endif
10878
698dcdb6
VZ
10879; return 0; }
10880EOF
1d1b75ac 10881if { (eval echo configure:10882: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6 10882 rm -rf conftest*
90dd450c 10883
21d1c967
GD
10884 wx_cv_lib_glibc21=yes
10885
698dcdb6
VZ
10886else
10887 echo "configure: failed program was:" >&5
10888 cat conftest.$ac_ext >&5
10889 rm -rf conftest*
90dd450c 10890
21d1c967
GD
10891 wx_cv_lib_glibc21=no
10892
10893
698dcdb6
VZ
10894fi
10895rm -f conftest*
90dd450c 10896
698dcdb6
VZ
10897fi
10898
21d1c967
GD
10899echo "$ac_t""$wx_cv_lib_glibc21" 1>&6
10900 if test "$wx_cv_lib_glibc21" = "yes"; then
10901 cat >> confdefs.h <<\EOF
10902#define wxHAVE_GLIBC2 1
10903EOF
1e487827 10904
90dd450c 10905 fi
ab9b9eab
VZ
10906fi
10907
ab9b9eab 10908
ab9b9eab 10909
21d1c967
GD
10910REGEX_INCLUDE=
10911if test "$wxUSE_REGEX" != "no"; then
10912 cat >> confdefs.h <<\EOF
10913#define wxUSE_REGEX 1
10914EOF
698dcdb6 10915
ab9b9eab 10916
21d1c967
GD
10917 if test "$wxUSE_REGEX" = "sys" -o "$wxUSE_REGEX" = "yes" ; then
10918 ac_safe=`echo "regex.h" | sed 'y%./+-%__p_%'`
10919echo $ac_n "checking for regex.h""... $ac_c" 1>&6
1d1b75ac 10920echo "configure:10921: checking for regex.h" >&5
21d1c967 10921if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
698dcdb6 10922 echo $ac_n "(cached) $ac_c" 1>&6
ab9b9eab 10923else
21d1c967 10924 cat > conftest.$ac_ext <<EOF
1d1b75ac 10925#line 10926 "configure"
21d1c967
GD
10926#include "confdefs.h"
10927#include <regex.h>
10928EOF
10929ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1d1b75ac 10930{ (eval echo configure:10931: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
21d1c967
GD
10931ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10932if test -z "$ac_err"; then
10933 rm -rf conftest*
10934 eval "ac_cv_header_$ac_safe=yes"
698dcdb6 10935else
21d1c967
GD
10936 echo "$ac_err" >&5
10937 echo "configure: failed program was:" >&5
10938 cat conftest.$ac_ext >&5
10939 rm -rf conftest*
10940 eval "ac_cv_header_$ac_safe=no"
10941fi
10942rm -f conftest*
698dcdb6 10943fi
21d1c967
GD
10944if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10945 echo "$ac_t""yes" 1>&6
10946 for ac_func in regcomp
10947do
10948echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1d1b75ac 10949echo "configure:10950: checking for $ac_func" >&5
21d1c967
GD
10950if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10951 echo $ac_n "(cached) $ac_c" 1>&6
10952else
10953 cat > conftest.$ac_ext <<EOF
1d1b75ac 10954#line 10955 "configure"
21d1c967
GD
10955#include "confdefs.h"
10956/* System header to define __stub macros and hopefully few prototypes,
10957 which can conflict with char $ac_func(); below. */
10958#include <assert.h>
10959/* Override any gcc2 internal prototype to avoid an error. */
10960/* We use char because int might match the return type of a gcc2
10961 builtin and then its argument prototype would still apply. */
10962char $ac_func();
698dcdb6 10963
21d1c967 10964int main() {
90dd450c 10965
21d1c967
GD
10966/* The GNU C library defines this for functions which it implements
10967 to always fail with ENOSYS. Some functions are actually named
10968 something starting with __ and the normal name is an alias. */
10969#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10970choke me
10971#else
10972$ac_func();
10973#endif
90dd450c 10974
21d1c967
GD
10975; return 0; }
10976EOF
1d1b75ac 10977if { (eval echo configure:10978: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21d1c967
GD
10978 rm -rf conftest*
10979 eval "ac_cv_func_$ac_func=yes"
10980else
10981 echo "configure: failed program was:" >&5
10982 cat conftest.$ac_ext >&5
10983 rm -rf conftest*
10984 eval "ac_cv_func_$ac_func=no"
10985fi
10986rm -f conftest*
10987fi
90dd450c 10988
21d1c967
GD
10989if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10990 echo "$ac_t""yes" 1>&6
10991 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10992 cat >> confdefs.h <<EOF
10993#define $ac_tr_func 1
10994EOF
10995
90dd450c 10996else
21d1c967 10997 echo "$ac_t""no" 1>&6
698dcdb6 10998fi
21d1c967
GD
10999done
11000
698dcdb6
VZ
11001else
11002 echo "$ac_t""no" 1>&6
ab9b9eab
VZ
11003fi
11004
90dd450c 11005
21d1c967
GD
11006 if test "x$ac_cv_func_regcomp" != "xyes"; then
11007 if test "$wxUSE_REGEX" = "sys" ; then
11008 { echo "configure: error: system regex library not found! Use --with-regex to use built-in version" 1>&2; exit 1; }
11009 else
11010 echo "configure: warning: system regex library not found, will use built-in instead" 1>&2
11011 wxUSE_REGEX=builtin
11012 fi
11013 else
11014 wxUSE_REGEX=sys
11015 fi
ab9b9eab 11016 fi
90dd450c 11017
21d1c967
GD
11018 if test "$wxUSE_REGEX" = "builtin" ; then
11019 REGEX_INCLUDE="-I\${top_srcdir}/src/regex"
90dd450c 11020 fi
21d1c967 11021fi
90dd450c 11022
90dd450c 11023
21d1c967
GD
11024ZLIB_INCLUDE=
11025ZLIB_LINK=
11026if test "$wxUSE_ZLIB" != "no" ; then
11027 cat >> confdefs.h <<\EOF
11028#define wxUSE_ZLIB 1
11029EOF
11030
11031
11032 if test "$wxUSE_ZLIB" = "sys" -o "$wxUSE_ZLIB" = "yes" ; then
11033 ac_safe=`echo "zlib.h" | sed 'y%./+-%__p_%'`
11034echo $ac_n "checking for zlib.h""... $ac_c" 1>&6
1d1b75ac 11035echo "configure:11036: checking for zlib.h" >&5
21d1c967
GD
11036if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11037 echo $ac_n "(cached) $ac_c" 1>&6
ab9b9eab 11038else
698dcdb6 11039 cat > conftest.$ac_ext <<EOF
1d1b75ac 11040#line 11041 "configure"
ab9b9eab 11041#include "confdefs.h"
21d1c967 11042#include <zlib.h>
698dcdb6 11043EOF
21d1c967 11044ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1d1b75ac 11045{ (eval echo configure:11046: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
21d1c967
GD
11046ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11047if test -z "$ac_err"; then
11048 rm -rf conftest*
11049 eval "ac_cv_header_$ac_safe=yes"
698dcdb6 11050else
21d1c967 11051 echo "$ac_err" >&5
698dcdb6
VZ
11052 echo "configure: failed program was:" >&5
11053 cat conftest.$ac_ext >&5
21d1c967
GD
11054 rm -rf conftest*
11055 eval "ac_cv_header_$ac_safe=no"
698dcdb6 11056fi
21d1c967 11057rm -f conftest*
ab9b9eab 11058fi
21d1c967
GD
11059if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11060 echo "$ac_t""yes" 1>&6
11061 echo $ac_n "checking for deflate in -lz""... $ac_c" 1>&6
1d1b75ac 11062echo "configure:11063: checking for deflate in -lz" >&5
21d1c967
GD
11063ac_lib_var=`echo z'_'deflate | sed 'y%./+-%__p_%'`
11064if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11065 echo $ac_n "(cached) $ac_c" 1>&6
11066else
11067 ac_save_LIBS="$LIBS"
11068LIBS="-lz $LIBS"
11069cat > conftest.$ac_ext <<EOF
1d1b75ac 11070#line 11071 "configure"
ab9b9eab 11071#include "confdefs.h"
21d1c967
GD
11072/* Override any gcc2 internal prototype to avoid an error. */
11073/* We use char because int might match the return type of a gcc2
11074 builtin and then its argument prototype would still apply. */
11075char deflate();
ab9b9eab 11076
90dd450c 11077int main() {
21d1c967 11078deflate()
698dcdb6
VZ
11079; return 0; }
11080EOF
1d1b75ac 11081if { (eval echo configure:11082: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6 11082 rm -rf conftest*
21d1c967 11083 eval "ac_cv_lib_$ac_lib_var=yes"
698dcdb6
VZ
11084else
11085 echo "configure: failed program was:" >&5
11086 cat conftest.$ac_ext >&5
11087 rm -rf conftest*
21d1c967 11088 eval "ac_cv_lib_$ac_lib_var=no"
698dcdb6
VZ
11089fi
11090rm -f conftest*
21d1c967 11091LIBS="$ac_save_LIBS"
ab9b9eab 11092
21d1c967
GD
11093fi
11094if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11095 echo "$ac_t""yes" 1>&6
11096 ZLIB_LINK=" -lz"
ab9b9eab 11097else
21d1c967 11098 echo "$ac_t""no" 1>&6
90dd450c 11099fi
698dcdb6 11100
698dcdb6 11101else
21d1c967 11102 echo "$ac_t""no" 1>&6
698dcdb6 11103fi
698dcdb6 11104
21d1c967
GD
11105
11106 if test "x$ZLIB_LINK" = "x" ; then
11107 if test "$wxUSE_ZLIB" = "sys" ; then
11108 { echo "configure: error: system zlib compression library not found! Use --with-zlib=builtin to use built-in version" 1>&2; exit 1; }
11109 else
11110 echo "configure: warning: system zlib compression library not found, will use built-in instead" 1>&2
11111 wxUSE_ZLIB=builtin
11112 fi
11113 else
11114 wxUSE_ZLIB=sys
11115 fi
11116 fi
11117
11118 if test "$wxUSE_ZLIB" = "builtin" ; then
11119 ZLIB_INCLUDE="-I\${top_srcdir}/src/zlib"
11120 fi
ab9b9eab
VZ
11121fi
11122
ab9b9eab 11123
21d1c967
GD
11124PNG_INCLUDE=
11125PNG_LINK=
11126if test "$wxUSE_LIBPNG" != "no" ; then
11127 cat >> confdefs.h <<\EOF
11128#define wxUSE_LIBPNG 1
11129EOF
90dd450c 11130
21d1c967
GD
11131
11132 if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBPNG" = "builtin" ; then
11133 echo "configure: warning: wxMGL doesn't work with builtin png library, will use MGL one instead" 1>&2
11134 wxUSE_LIBPNG=sys
11135 fi
90dd450c 11136
21d1c967
GD
11137 if test "$wxUSE_MGL" != 1 -a "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then
11138 echo "configure: warning: system png library doesn't work without system zlib, will use built-in instead" 1>&2
11139 wxUSE_LIBPNG=builtin
11140 fi
11141
11142 if test "$wxUSE_MGL" != 1 ; then
11143 if test "$wxUSE_LIBPNG" = "sys" -o "$wxUSE_LIBPNG" = "yes" ; then
11144 ac_safe=`echo "png.h" | sed 'y%./+-%__p_%'`
11145echo $ac_n "checking for png.h""... $ac_c" 1>&6
1d1b75ac 11146echo "configure:11147: checking for png.h" >&5
21d1c967 11147if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
90dd450c
VZ
11148 echo $ac_n "(cached) $ac_c" 1>&6
11149else
21d1c967 11150 cat > conftest.$ac_ext <<EOF
1d1b75ac 11151#line 11152 "configure"
21d1c967
GD
11152#include "confdefs.h"
11153#include <png.h>
11154EOF
11155ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1d1b75ac 11156{ (eval echo configure:11157: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
21d1c967
GD
11157ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11158if test -z "$ac_err"; then
11159 rm -rf conftest*
11160 eval "ac_cv_header_$ac_safe=yes"
90dd450c 11161else
21d1c967 11162 echo "$ac_err" >&5
90dd450c
VZ
11163 echo "configure: failed program was:" >&5
11164 cat conftest.$ac_ext >&5
21d1c967
GD
11165 rm -rf conftest*
11166 eval "ac_cv_header_$ac_safe=no"
90dd450c 11167fi
21d1c967 11168rm -f conftest*
90dd450c 11169fi
21d1c967
GD
11170if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11171 echo "$ac_t""yes" 1>&6
11172 echo $ac_n "checking for png_check_sig in -lpng""... $ac_c" 1>&6
1d1b75ac 11173echo "configure:11174: checking for png_check_sig in -lpng" >&5
21d1c967
GD
11174ac_lib_var=`echo png'_'png_check_sig | sed 'y%./+-%__p_%'`
11175if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11176 echo $ac_n "(cached) $ac_c" 1>&6
11177else
11178 ac_save_LIBS="$LIBS"
11179LIBS="-lpng -lz -lm $LIBS"
11180cat > conftest.$ac_ext <<EOF
1d1b75ac 11181#line 11182 "configure"
90dd450c 11182#include "confdefs.h"
21d1c967
GD
11183/* Override any gcc2 internal prototype to avoid an error. */
11184/* We use char because int might match the return type of a gcc2
11185 builtin and then its argument prototype would still apply. */
11186char png_check_sig();
90dd450c
VZ
11187
11188int main() {
21d1c967 11189png_check_sig()
90dd450c
VZ
11190; return 0; }
11191EOF
1d1b75ac 11192if { (eval echo configure:11193: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
90dd450c 11193 rm -rf conftest*
21d1c967 11194 eval "ac_cv_lib_$ac_lib_var=yes"
90dd450c
VZ
11195else
11196 echo "configure: failed program was:" >&5
11197 cat conftest.$ac_ext >&5
11198 rm -rf conftest*
21d1c967 11199 eval "ac_cv_lib_$ac_lib_var=no"
90dd450c
VZ
11200fi
11201rm -f conftest*
21d1c967 11202LIBS="$ac_save_LIBS"
90dd450c 11203
90dd450c 11204fi
21d1c967
GD
11205if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11206 echo "$ac_t""yes" 1>&6
11207 PNG_LINK=" -lpng"
90dd450c 11208else
21d1c967 11209 echo "$ac_t""no" 1>&6
90dd450c
VZ
11210fi
11211
21d1c967 11212
90dd450c 11213else
21d1c967 11214 echo "$ac_t""no" 1>&6
90dd450c
VZ
11215fi
11216
11217
21d1c967
GD
11218 if test "x$PNG_LINK" = "x" ; then
11219 if test "$wxUSE_LIBPNG" = "sys" ; then
11220 { echo "configure: error: system png library not found! Use --with-libpng=builtin to use built-in version" 1>&2; exit 1; }
11221 else
11222 echo "configure: warning: system png library not found, will use built-in instead" 1>&2
11223 wxUSE_LIBPNG=builtin
11224 fi
11225 else
11226 wxUSE_LIBPNG=yes
11227 fi
11228 fi
11229 fi
90dd450c 11230
21d1c967
GD
11231 if test "$wxUSE_LIBPNG" = "builtin" ; then
11232 PNG_INCLUDE="-I\${top_srcdir}/src/png"
11233 fi
90dd450c 11234
21d1c967 11235 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png"
90dd450c
VZ
11236fi
11237
90dd450c 11238
21d1c967
GD
11239JPEG_INCLUDE=
11240JPEG_LINK=
11241if test "$wxUSE_LIBJPEG" != "no" ; then
11242 cat >> confdefs.h <<\EOF
11243#define wxUSE_LIBJPEG 1
11244EOF
90dd450c 11245
90dd450c 11246
21d1c967
GD
11247 if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBJPEG" = "builtin" ; then
11248 echo "configure: warning: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" 1>&2
11249 wxUSE_LIBJPEG=sys
11250 fi
90dd450c 11251
21d1c967
GD
11252 if test "$wxUSE_MGL" != 1 ; then
11253 if test "$wxUSE_LIBJPEG" = "sys" -o "$wxUSE_LIBJPEG" = "yes" ; then
11254 echo $ac_n "checking for jpeglib.h""... $ac_c" 1>&6
1d1b75ac 11255echo "configure:11256: checking for jpeglib.h" >&5
21d1c967
GD
11256 if eval "test \"`echo '$''{'ac_cv_header_jpeglib_h'+set}'`\" = set"; then
11257 echo $ac_n "(cached) $ac_c" 1>&6
11258else
11259 cat > conftest.$ac_ext <<EOF
1d1b75ac 11260#line 11261 "configure"
21d1c967 11261#include "confdefs.h"
90dd450c 11262
21d1c967
GD
11263 #undef HAVE_STDLIB_H
11264 #include <stdio.h>
11265 #include <jpeglib.h>
11266
11267int main() {
90dd450c 11268
21d1c967
GD
11269
11270; return 0; }
90dd450c 11271EOF
1d1b75ac 11272if { (eval echo configure:11273: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21d1c967
GD
11273 rm -rf conftest*
11274 ac_cv_header_jpeglib_h=yes
90dd450c
VZ
11275else
11276 echo "configure: failed program was:" >&5
11277 cat conftest.$ac_ext >&5
21d1c967
GD
11278 rm -rf conftest*
11279 ac_cv_header_jpeglib_h=no
11280
90dd450c 11281fi
21d1c967
GD
11282rm -f conftest*
11283
90dd450c
VZ
11284fi
11285
21d1c967 11286 echo "$ac_t""$ac_cv_header_jpeglib_h" 1>&6
90dd450c 11287
21d1c967
GD
11288 if test "$ac_cv_header_jpeglib_h" = "yes"; then
11289 echo $ac_n "checking for jpeg_read_header in -ljpeg""... $ac_c" 1>&6
1d1b75ac 11290echo "configure:11291: checking for jpeg_read_header in -ljpeg" >&5
21d1c967
GD
11291ac_lib_var=`echo jpeg'_'jpeg_read_header | sed 'y%./+-%__p_%'`
11292if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11293 echo $ac_n "(cached) $ac_c" 1>&6
11294else
11295 ac_save_LIBS="$LIBS"
11296LIBS="-ljpeg $LIBS"
11297cat > conftest.$ac_ext <<EOF
1d1b75ac 11298#line 11299 "configure"
21d1c967
GD
11299#include "confdefs.h"
11300/* Override any gcc2 internal prototype to avoid an error. */
11301/* We use char because int might match the return type of a gcc2
11302 builtin and then its argument prototype would still apply. */
11303char jpeg_read_header();
90dd450c
VZ
11304
11305int main() {
21d1c967 11306jpeg_read_header()
90dd450c
VZ
11307; return 0; }
11308EOF
1d1b75ac 11309if { (eval echo configure:11310: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
90dd450c 11310 rm -rf conftest*
21d1c967 11311 eval "ac_cv_lib_$ac_lib_var=yes"
90dd450c
VZ
11312else
11313 echo "configure: failed program was:" >&5
11314 cat conftest.$ac_ext >&5
11315 rm -rf conftest*
21d1c967 11316 eval "ac_cv_lib_$ac_lib_var=no"
90dd450c
VZ
11317fi
11318rm -f conftest*
21d1c967 11319LIBS="$ac_save_LIBS"
90dd450c 11320
21d1c967
GD
11321fi
11322if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11323 echo "$ac_t""yes" 1>&6
11324 JPEG_LINK=" -ljpeg"
11325else
11326 echo "$ac_t""no" 1>&6
90dd450c
VZ
11327fi
11328
21d1c967 11329 fi
90dd450c 11330
21d1c967
GD
11331 if test "x$JPEG_LINK" = "x" ; then
11332 if test "$wxUSE_LIBJPEG" = "sys" ; then
11333 { echo "configure: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" 1>&2; exit 1; }
11334 else
11335 echo "configure: warning: system jpeg library not found, will use built-in instead" 1>&2
11336 wxUSE_LIBJPEG=builtin
11337 fi
11338 else
11339 wxUSE_LIBJPEG=sys
11340 fi
11341 fi
11342 fi
90dd450c 11343
21d1c967
GD
11344 if test "$wxUSE_LIBJPEG" = "builtin" ; then
11345 JPEG_INCLUDE="-I\${top_srcdir}/src/jpeg"
11346 fi
11347fi
90dd450c 11348
90dd450c 11349
21d1c967
GD
11350TIFF_INCLUDE=
11351TIFF_LINK=
11352if test "$wxUSE_LIBTIFF" != "no" ; then
11353 cat >> confdefs.h <<\EOF
11354#define wxUSE_LIBTIFF 1
11355EOF
11356
11357
11358 if test "$wxUSE_LIBTIFF" = "sys" -o "$wxUSE_LIBTIFF" = "yes" ; then
11359 ac_safe=`echo "tiffio.h" | sed 'y%./+-%__p_%'`
11360echo $ac_n "checking for tiffio.h""... $ac_c" 1>&6
1d1b75ac 11361echo "configure:11362: checking for tiffio.h" >&5
21d1c967
GD
11362if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11363 echo $ac_n "(cached) $ac_c" 1>&6
11364else
11365 cat > conftest.$ac_ext <<EOF
1d1b75ac 11366#line 11367 "configure"
21d1c967
GD
11367#include "confdefs.h"
11368#include <tiffio.h>
11369EOF
11370ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1d1b75ac 11371{ (eval echo configure:11372: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
21d1c967
GD
11372ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11373if test -z "$ac_err"; then
11374 rm -rf conftest*
11375 eval "ac_cv_header_$ac_safe=yes"
11376else
11377 echo "$ac_err" >&5
11378 echo "configure: failed program was:" >&5
11379 cat conftest.$ac_ext >&5
11380 rm -rf conftest*
11381 eval "ac_cv_header_$ac_safe=no"
11382fi
11383rm -f conftest*
11384fi
11385if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11386 echo "$ac_t""yes" 1>&6
11387 echo $ac_n "checking for TIFFError in -ltiff""... $ac_c" 1>&6
1d1b75ac 11388echo "configure:11389: checking for TIFFError in -ltiff" >&5
21d1c967 11389ac_lib_var=`echo tiff'_'TIFFError | sed 'y%./+-%__p_%'`
698dcdb6
VZ
11390if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11391 echo $ac_n "(cached) $ac_c" 1>&6
11392else
11393 ac_save_LIBS="$LIBS"
21d1c967 11394LIBS="-ltiff -lm $LIBS"
698dcdb6 11395cat > conftest.$ac_ext <<EOF
1d1b75ac 11396#line 11397 "configure"
ab9b9eab
VZ
11397#include "confdefs.h"
11398/* Override any gcc2 internal prototype to avoid an error. */
11399/* We use char because int might match the return type of a gcc2
698dcdb6 11400 builtin and then its argument prototype would still apply. */
21d1c967 11401char TIFFError();
698dcdb6
VZ
11402
11403int main() {
21d1c967 11404TIFFError()
698dcdb6
VZ
11405; return 0; }
11406EOF
1d1b75ac 11407if { (eval echo configure:11408: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
11408 rm -rf conftest*
11409 eval "ac_cv_lib_$ac_lib_var=yes"
11410else
11411 echo "configure: failed program was:" >&5
11412 cat conftest.$ac_ext >&5
11413 rm -rf conftest*
11414 eval "ac_cv_lib_$ac_lib_var=no"
11415fi
11416rm -f conftest*
11417LIBS="$ac_save_LIBS"
11418
11419fi
11420if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11421 echo "$ac_t""yes" 1>&6
21d1c967 11422 TIFF_LINK=" -ltiff"
698dcdb6
VZ
11423else
11424 echo "$ac_t""no" 1>&6
ab9b9eab
VZ
11425fi
11426
21d1c967
GD
11427
11428else
11429 echo "$ac_t""no" 1>&6
11430fi
cd6d6d5b 11431
c79a329d 11432
21d1c967
GD
11433 if test "x$TIFF_LINK" = "x" ; then
11434 if test "$wxUSE_LIBTIFF" = "sys" ; then
11435 { echo "configure: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" 1>&2; exit 1; }
90dd450c 11436 else
21d1c967
GD
11437 echo "configure: warning: system tiff library not found, will use built-in instead" 1>&2
11438 wxUSE_LIBTIFF=builtin
d8356fa3 11439 fi
d8356fa3 11440 else
21d1c967 11441 wxUSE_LIBTIFF=sys
d8356fa3 11442 fi
21d1c967 11443 fi
d8356fa3 11444
21d1c967
GD
11445 if test "$wxUSE_LIBTIFF" = "builtin" ; then
11446 TIFF_INCLUDE="-I\${top_srcdir}/src/tiff"
1e6feb95 11447 fi
21d1c967 11448fi
10f2d63a 11449
90dd450c 11450
21d1c967 11451AFMINSTALL=
90dd450c 11452
21d1c967
GD
11453TOOLKIT=
11454TOOLKIT_INCLUDE=
11455WIDGET_SET=
11456
11457if test "$USE_WIN32" = 1 ; then
11458 for ac_hdr in w32api.h
11459do
11460ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11461echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1d1b75ac 11462echo "configure:11463: checking for $ac_hdr" >&5
21d1c967 11463if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
f79bd02d
JS
11464 echo $ac_n "(cached) $ac_c" 1>&6
11465else
21d1c967 11466 cat > conftest.$ac_ext <<EOF
1d1b75ac 11467#line 11468 "configure"
f79bd02d 11468#include "confdefs.h"
21d1c967 11469#include <$ac_hdr>
f79bd02d
JS
11470EOF
11471ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1d1b75ac 11472{ (eval echo configure:11473: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
f79bd02d
JS
11473ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11474if test -z "$ac_err"; then
11475 rm -rf conftest*
21d1c967 11476 eval "ac_cv_header_$ac_safe=yes"
f79bd02d
JS
11477else
11478 echo "$ac_err" >&5
11479 echo "configure: failed program was:" >&5
11480 cat conftest.$ac_ext >&5
11481 rm -rf conftest*
21d1c967 11482 eval "ac_cv_header_$ac_safe=no"
f79bd02d
JS
11483fi
11484rm -f conftest*
21d1c967
GD
11485fi
11486if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11487 echo "$ac_t""yes" 1>&6
11488 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11489 cat >> confdefs.h <<EOF
11490#define $ac_tr_hdr 1
11491EOF
11492
11493else
11494 echo "$ac_t""no" 1>&6
11495fi
11496done
f79bd02d 11497
21d1c967
GD
11498 ac_safe=`echo "windows.h" | sed 'y%./+-%__p_%'`
11499echo $ac_n "checking for windows.h""... $ac_c" 1>&6
1d1b75ac 11500echo "configure:11501: checking for windows.h" >&5
21d1c967
GD
11501if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11502 echo $ac_n "(cached) $ac_c" 1>&6
11503else
11504 cat > conftest.$ac_ext <<EOF
1d1b75ac 11505#line 11506 "configure"
90dd450c 11506#include "confdefs.h"
21d1c967 11507#include <windows.h>
f79bd02d 11508EOF
21d1c967 11509ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1d1b75ac 11510{ (eval echo configure:11511: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
21d1c967
GD
11511ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11512if test -z "$ac_err"; then
90dd450c 11513 rm -rf conftest*
21d1c967 11514 eval "ac_cv_header_$ac_safe=yes"
90dd450c 11515else
21d1c967 11516 echo "$ac_err" >&5
90dd450c
VZ
11517 echo "configure: failed program was:" >&5
11518 cat conftest.$ac_ext >&5
11519 rm -rf conftest*
21d1c967 11520 eval "ac_cv_header_$ac_safe=no"
90dd450c
VZ
11521fi
11522rm -f conftest*
90dd450c 11523fi
21d1c967
GD
11524if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11525 echo "$ac_t""yes" 1>&6
11526 :
90dd450c 11527else
21d1c967
GD
11528 echo "$ac_t""no" 1>&6
11529
11530 { echo "configure: error: please set CFLAGS to contain the location of windows.h" 1>&2; exit 1; }
11531
90dd450c 11532fi
f79bd02d 11533
f79bd02d 11534
21d1c967 11535 echo $ac_n "checking if w32api has good enough MSIE support""... $ac_c" 1>&6
1d1b75ac 11536echo "configure:11537: checking if w32api has good enough MSIE support" >&5
21d1c967
GD
11537if eval "test \"`echo '$''{'wx_cv_w32api_win32_ie'+set}'`\" = set"; then
11538 echo $ac_n "(cached) $ac_c" 1>&6
f79bd02d 11539else
21d1c967 11540
f79bd02d 11541 cat > conftest.$ac_ext <<EOF
1d1b75ac 11542#line 11543 "configure"
f79bd02d 11543#include "confdefs.h"
21d1c967 11544#include <w32api.h>
f79bd02d
JS
11545int main() {
11546
21d1c967
GD
11547 #define wxCHECK_W32API_VERSION( major, minor ) \
11548 ( defined( __W32API_MAJOR_VERSION ) && defined( __W32API_MINOR_VERSION ) \
11549 && ( ( __W32API_MAJOR_VERSION > (major) ) \
11550 || ( __W32API_MAJOR_VERSION == (major) && __W32API_MINOR_VERSION >= (minor))))
11551
11552 #if !wxCHECK_W32API_VERSION(1,1)
11553 #error You need w32api 1.1 or newer
11554 #endif
11555
f79bd02d
JS
11556; return 0; }
11557EOF
1d1b75ac 11558if { (eval echo configure:11559: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
f79bd02d 11559 rm -rf conftest*
21d1c967
GD
11560
11561 wx_cv_w32api_win32_ie=yes
11562
f79bd02d
JS
11563else
11564 echo "configure: failed program was:" >&5
11565 cat conftest.$ac_ext >&5
11566 rm -rf conftest*
21d1c967
GD
11567
11568 wx_cv_w32api_win32_ie=no
11569
f79bd02d
JS
11570fi
11571rm -f conftest*
21d1c967
GD
11572
11573fi
f79bd02d 11574
21d1c967
GD
11575echo "$ac_t""$wx_cv_w32api_win32_ie" 1>&6
11576 if test "$wx_cv_w32api_win32_ie" = "yes" ; then
11577 CPPFLAGS="$CPPFLAGS -D_WIN32_IE=0x400"
11578 fi
f79bd02d 11579
21d1c967
GD
11580 LIBS="$LIBS -lwinspool -lwinmm -lshell32 -lcomctl32 -lctl3d32 -ladvapi32 -lwsock32"
11581
11582 case "${host}" in
11583 *-*-cygwin* )
11584 LIBS="$LIBS -lkernel32 -luser32 -lgdi32 -lcomdlg32"
11585 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WIN95__"
f79bd02d 11586 esac
f79bd02d 11587
21d1c967
GD
11588 if test "$wxUSE_ODBC" = "yes" ; then
11589 LIBS=" -lodbc32 -lole32 -loleaut32 $LIBS"
11590 fi
f79bd02d 11591
21d1c967
GD
11592 RESFLAGS="--include-dir \$(top_srcdir)/include --include-dir \$(top_srcdir)/\$(program_dir) --define __WIN32__ --define __WIN95__ --define __GNUWIN32__"
11593 RESPROGRAMOBJ="\$(PROGRAM)_resources.o"
f79bd02d 11594fi
f79bd02d 11595
21d1c967
GD
11596if test "$wxUSE_GUI" = "yes"; then
11597 USE_GUI=1
f79bd02d 11598
21d1c967 11599 GUI_TK_LIBRARY=
f79bd02d 11600
21d1c967
GD
11601 WXGTK12=
11602 WXGTK127=
11603 WXGTK20=
f79bd02d 11604
21d1c967
GD
11605 if test "$wxUSE_MSW" = 1 ; then
11606 TOOLKIT=MSW
11607 GUIDIST=MSW_DIST
f79bd02d 11608
21d1c967
GD
11609 case "${host}" in
11610 *-*-mingw32* )
11611 LDFLAGS="$LDFLAGS -Wl,--subsystem,windows -mwindows"
11612 esac
f79bd02d
JS
11613 fi
11614
21d1c967
GD
11615 if test "$wxUSE_GTK" = 1; then
11616 echo $ac_n "checking for GTK+ version""... $ac_c" 1>&6
1d1b75ac 11617echo "configure:11618: checking for GTK+ version" >&5
21d1c967
GD
11618
11619 gtk_version_cached=1
11620 if eval "test \"`echo '$''{'wx_cv_lib_gtk'+set}'`\" = set"; then
f79bd02d
JS
11621 echo $ac_n "(cached) $ac_c" 1>&6
11622else
21d1c967
GD
11623
11624 gtk_version_cached=0
11625 echo "$ac_t""" 1>&6
f79bd02d 11626
21d1c967
GD
11627 GTK_MODULES=
11628 if test "$wxUSE_THREADS" = "yes"; then
11629 GTK_MODULES=gthread
11630 fi
f79bd02d 11631
21d1c967
GD
11632 wx_cv_lib_gtk=
11633 if test "x$wxUSE_GTK2" = "xyes"; then
11634 # Check whether --enable-gtktest or --disable-gtktest was given.
11635if test "${enable_gtktest+set}" = set; then
11636 enableval="$enable_gtktest"
f79bd02d
JS
11637 :
11638else
21d1c967 11639 enable_gtktest=yes
f79bd02d
JS
11640fi
11641
f79bd02d 11642
21d1c967
GD
11643 pkg_config_args=gtk+-2.0
11644 for module in . $GTK_MODULES
11645 do
11646 case "$module" in
11647 gthread)
11648 pkg_config_args="$pkg_config_args gthread-2.0"
11649 ;;
11650 esac
11651 done
11652
11653 no_gtk=""
f79bd02d 11654
21d1c967
GD
11655 # Extract the first word of "pkg-config", so it can be a program name with args.
11656set dummy pkg-config; ac_word=$2
11657echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1d1b75ac 11658echo "configure:11659: checking for $ac_word" >&5
21d1c967
GD
11659if eval "test \"`echo '$''{'ac_cv_path_PKG_CONFIG'+set}'`\" = set"; then
11660 echo $ac_n "(cached) $ac_c" 1>&6
11661else
11662 case "$PKG_CONFIG" in
11663 /*)
11664 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11665 ;;
11666 ?:/*)
11667 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a dos path.
11668 ;;
11669 *)
11670 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
11671 ac_dummy="$PATH"
11672 for ac_dir in $ac_dummy; do
11673 test -z "$ac_dir" && ac_dir=.
11674 if test -f $ac_dir/$ac_word; then
11675 ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word"
11676 break
11677 fi
11678 done
11679 IFS="$ac_save_ifs"
11680 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11681 ;;
11682esac
f79bd02d 11683fi
21d1c967
GD
11684PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
11685if test -n "$PKG_CONFIG"; then
11686 echo "$ac_t""$PKG_CONFIG" 1>&6
f79bd02d
JS
11687else
11688 echo "$ac_t""no" 1>&6
11689fi
11690
f79bd02d 11691
21d1c967
GD
11692 if test x$PKG_CONFIG != xno ; then
11693 if pkg-config --atleast-pkgconfig-version 0.7 ; then
11694 :
11695 else
11696 echo *** pkg-config too old; version 0.7 or better required.
11697 no_gtk=yes
11698 PKG_CONFIG=no
11699 fi
11700 else
11701 no_gtk=yes
11702 fi
f79bd02d 11703
21d1c967
GD
11704 min_gtk_version=2.0.0
11705 echo $ac_n "checking for GTK+ - version >= $min_gtk_version""... $ac_c" 1>&6
1d1b75ac 11706echo "configure:11707: checking for GTK+ - version >= $min_gtk_version" >&5
f79bd02d 11707
21d1c967
GD
11708 if test x$PKG_CONFIG != xno ; then
11709 ## don't try to run the test against uninstalled libtool libs
11710 if $PKG_CONFIG --uninstalled $pkg_config_args; then
11711 echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH"
11712 enable_gtktest=no
11713 fi
f79bd02d 11714
21d1c967
GD
11715 if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then
11716 :
11717 else
11718 no_gtk=yes
11719 fi
11720 fi
f79bd02d 11721
21d1c967
GD
11722 if test x"$no_gtk" = x ; then
11723 GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags`
11724 GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs`
11725 gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
11726 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
11727 gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
11728 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
11729 gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
11730 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
11731 if test "x$enable_gtktest" = "xyes" ; then
11732 ac_save_CFLAGS="$CFLAGS"
11733 ac_save_LIBS="$LIBS"
11734 CFLAGS="$CFLAGS $GTK_CFLAGS"
11735 LIBS="$GTK_LIBS $LIBS"
11736 rm -f conf.gtktest
11737 if test "$cross_compiling" = yes; then
11738 echo $ac_n "cross compiling; assumed OK... $ac_c"
f79bd02d 11739else
21d1c967 11740 cat > conftest.$ac_ext <<EOF
1d1b75ac 11741#line 11742 "configure"
f79bd02d 11742#include "confdefs.h"
f79bd02d 11743
21d1c967
GD
11744#include <gtk/gtk.h>
11745#include <stdio.h>
11746#include <stdlib.h>
f79bd02d 11747
21d1c967
GD
11748int
11749main ()
11750{
11751 int major, minor, micro;
11752 char *tmp_version;
f79bd02d 11753
21d1c967 11754 system ("touch conf.gtktest");
f79bd02d 11755
21d1c967
GD
11756 /* HP/UX 9 (%@#!) writes to sscanf strings */
11757 tmp_version = g_strdup("$min_gtk_version");
11758 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
11759 printf("%s, bad version string\n", "$min_gtk_version");
11760 exit(1);
11761 }
f79bd02d 11762
21d1c967
GD
11763 if ((gtk_major_version != $gtk_config_major_version) ||
11764 (gtk_minor_version != $gtk_config_minor_version) ||
11765 (gtk_micro_version != $gtk_config_micro_version))
11766 {
11767 printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
11768 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
11769 gtk_major_version, gtk_minor_version, gtk_micro_version);
11770 printf ("*** was found! If pkg-config was correct, then it is best\n");
11771 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
11772 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
11773 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
11774 printf("*** required on your system.\n");
11775 printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
11776 printf("*** to point to the correct configuration files\n");
11777 }
11778 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
11779 (gtk_minor_version != GTK_MINOR_VERSION) ||
11780 (gtk_micro_version != GTK_MICRO_VERSION))
11781 {
11782 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
11783 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
11784 printf("*** library (version %d.%d.%d)\n",
11785 gtk_major_version, gtk_minor_version, gtk_micro_version);
11786 }
11787 else
11788 {
11789 if ((gtk_major_version > major) ||
11790 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
11791 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
11792 {
11793 return 0;
11794 }
11795 else
11796 {
11797 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
11798 gtk_major_version, gtk_minor_version, gtk_micro_version);
11799 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
11800 major, minor, micro);
11801 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
11802 printf("***\n");
11803 printf("*** If you have already installed a sufficiently new version, this error\n");
11804 printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
11805 printf("*** being found. The easiest way to fix this is to remove the old version\n");
11806 printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n");
11807 printf("*** correct copy of pkg-config. (In this case, you will have to\n");
11808 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
11809 printf("*** so that the correct libraries are found at run-time))\n");
11810 }
11811 }
11812 return 1;
11813}
f79bd02d 11814
f79bd02d 11815EOF
1d1b75ac 11816if { (eval echo configure:11817: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
21d1c967
GD
11817then
11818 :
f79bd02d
JS
11819else
11820 echo "configure: failed program was:" >&5
11821 cat conftest.$ac_ext >&5
21d1c967
GD
11822 rm -fr conftest*
11823 no_gtk=yes
f79bd02d 11824fi
21d1c967 11825rm -fr conftest*
f79bd02d
JS
11826fi
11827
21d1c967
GD
11828 CFLAGS="$ac_save_CFLAGS"
11829 LIBS="$ac_save_LIBS"
11830 fi
11831 fi
11832 if test "x$no_gtk" = x ; then
11833 echo "$ac_t""yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" 1>&6
11834 wx_cv_lib_gtk=2.0
11835 else
11836 echo "$ac_t""no" 1>&6
11837 if test "$PKG_CONFIG" = "no" ; then
11838 echo "*** A new enough version of pkg-config was not found."
11839 echo "*** See http://pkgconfig.sourceforge.net"
11840 else
11841 if test -f conf.gtktest ; then
11842 :
11843 else
11844 echo "*** Could not run GTK+ test program, checking why..."
11845 CFLAGS="$CFLAGS $GTK_CFLAGS"
11846 LIBS="$LIBS $GTK_LIBS"
11847 cat > conftest.$ac_ext <<EOF
1d1b75ac 11848#line 11849 "configure"
f79bd02d 11849#include "confdefs.h"
21d1c967
GD
11850
11851#include <gtk/gtk.h>
11852#include <stdio.h>
f79bd02d
JS
11853
11854int main() {
21d1c967 11855 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
f79bd02d
JS
11856; return 0; }
11857EOF
1d1b75ac 11858if { (eval echo configure:11859: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
f79bd02d 11859 rm -rf conftest*
21d1c967
GD
11860 echo "*** The test program compiled, but did not run. This usually means"
11861 echo "*** that the run-time linker is not finding GTK+ or finding the wrong"
11862 echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your"
11863 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
11864 echo "*** to the installed location Also, make sure you have run ldconfig if that"
11865 echo "*** is required on your system"
11866 echo "***"
11867 echo "*** If you have an old version installed, it is best to remove it, although"
11868 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
f79bd02d
JS
11869else
11870 echo "configure: failed program was:" >&5
11871 cat conftest.$ac_ext >&5
11872 rm -rf conftest*
21d1c967
GD
11873 echo "*** The test program failed to compile or link. See the file config.log for the"
11874 echo "*** exact error that occured. This usually means GTK+ was incorrectly installed"
11875 echo "*** or that you have moved GTK+ since it was installed. In the latter case, you"
11876 echo "*** may want to edit the pkg-config script: $PKG_CONFIG"
f79bd02d
JS
11877fi
11878rm -f conftest*
21d1c967
GD
11879 CFLAGS="$ac_save_CFLAGS"
11880 LIBS="$ac_save_LIBS"
11881 fi
11882 fi
11883 GTK_CFLAGS=""
11884 GTK_LIBS=""
11885 :
11886 fi
11887
11888
11889 rm -f conf.gtktest
f79bd02d 11890
21d1c967 11891 fi
f79bd02d 11892
21d1c967
GD
11893 if test -z "$wx_cv_lib_gtk"; then
11894 # Check whether --with-gtk-prefix or --without-gtk-prefix was given.
11895if test "${with_gtk_prefix+set}" = set; then
11896 withval="$with_gtk_prefix"
11897 gtk_config_prefix="$withval"
11898else
11899 gtk_config_prefix=""
11900fi
f79bd02d 11901
21d1c967
GD
11902# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
11903if test "${with_gtk_exec_prefix+set}" = set; then
11904 withval="$with_gtk_exec_prefix"
11905 gtk_config_exec_prefix="$withval"
11906else
11907 gtk_config_exec_prefix=""
11908fi
11909
11910# Check whether --enable-gtktest or --disable-gtktest was given.
11911if test "${enable_gtktest+set}" = set; then
11912 enableval="$enable_gtktest"
11913 :
11914else
11915 enable_gtktest=yes
11916fi
11917
11918
11919 for module in . $GTK_MODULES
11920 do
11921 case "$module" in
11922 gthread)
11923 gtk_config_args="$gtk_config_args gthread"
11924 ;;
11925 esac
11926 done
11927
11928 if test x$gtk_config_exec_prefix != x ; then
11929 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
11930 if test x${GTK_CONFIG+set} != xset ; then
11931 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
11932 fi
11933 fi
11934 if test x$gtk_config_prefix != x ; then
11935 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
11936 if test x${GTK_CONFIG+set} != xset ; then
11937 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
11938 fi
11939 fi
11940
11941 # Extract the first word of "gtk-config", so it can be a program name with args.
11942set dummy gtk-config; ac_word=$2
11943echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1d1b75ac 11944echo "configure:11945: checking for $ac_word" >&5
21d1c967 11945if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
f79bd02d 11946 echo $ac_n "(cached) $ac_c" 1>&6
21d1c967
GD
11947else
11948 case "$GTK_CONFIG" in
11949 /*)
11950 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
11951 ;;
11952 ?:/*)
11953 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path.
11954 ;;
11955 *)
11956 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
11957 ac_dummy="$PATH"
11958 for ac_dir in $ac_dummy; do
11959 test -z "$ac_dir" && ac_dir=.
11960 if test -f $ac_dir/$ac_word; then
11961 ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
11962 break
11963 fi
11964 done
11965 IFS="$ac_save_ifs"
11966 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
11967 ;;
11968esac
11969fi
11970GTK_CONFIG="$ac_cv_path_GTK_CONFIG"
11971if test -n "$GTK_CONFIG"; then
11972 echo "$ac_t""$GTK_CONFIG" 1>&6
11973else
11974 echo "$ac_t""no" 1>&6
11975fi
11976
11977 min_gtk_version=1.2.7
11978 echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
1d1b75ac 11979echo "configure:11980: checking for GTK - version >= $min_gtk_version" >&5
21d1c967
GD
11980 no_gtk=""
11981 if test "$GTK_CONFIG" = "no" ; then
11982 no_gtk=yes
11983 else
11984 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
11985 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
11986 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
11987 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
11988 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
11989 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
11990 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
11991 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
11992 if test "x$enable_gtktest" = "xyes" ; then
11993 ac_save_CFLAGS="$CFLAGS"
11994 ac_save_LIBS="$LIBS"
11995 CFLAGS="$CFLAGS $GTK_CFLAGS"
11996 LIBS="$GTK_LIBS $LIBS"
11997 rm -f conf.gtktest
11998 if test "$cross_compiling" = yes; then
11999 echo $ac_n "cross compiling; assumed OK... $ac_c"
f79bd02d 12000else
90dd450c 12001 cat > conftest.$ac_ext <<EOF
1d1b75ac 12002#line 12003 "configure"
f79bd02d
JS
12003#include "confdefs.h"
12004
21d1c967
GD
12005#include <gtk/gtk.h>
12006#include <stdio.h>
12007#include <stdlib.h>
f79bd02d 12008
21d1c967
GD
12009int
12010main ()
12011{
12012 int major, minor, micro;
12013 char *tmp_version;
12014
12015 system ("touch conf.gtktest");
12016
12017 /* HP/UX 9 (%@#!) writes to sscanf strings */
12018 tmp_version = g_strdup("$min_gtk_version");
12019 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
12020 printf("%s, bad version string\n", "$min_gtk_version");
12021 exit(1);
12022 }
90dd450c 12023
21d1c967
GD
12024 if ((gtk_major_version != $gtk_config_major_version) ||
12025 (gtk_minor_version != $gtk_config_minor_version) ||
12026 (gtk_micro_version != $gtk_config_micro_version))
12027 {
12028 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
12029 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
12030 gtk_major_version, gtk_minor_version, gtk_micro_version);
12031 printf ("*** was found! If gtk-config was correct, then it is best\n");
12032 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
12033 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
12034 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
12035 printf("*** required on your system.\n");
12036 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
12037 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
12038 printf("*** before re-running configure\n");
12039 }
12040#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
12041 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
12042 (gtk_minor_version != GTK_MINOR_VERSION) ||
12043 (gtk_micro_version != GTK_MICRO_VERSION))
12044 {
12045 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
12046 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
12047 printf("*** library (version %d.%d.%d)\n",
12048 gtk_major_version, gtk_minor_version, gtk_micro_version);
12049 }
12050#endif /* defined (GTK_MAJOR_VERSION) ... */
12051 else
12052 {
12053 if ((gtk_major_version > major) ||
12054 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
12055 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
12056 {
12057 return 0;
12058 }
12059 else
12060 {
12061 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
12062 gtk_major_version, gtk_minor_version, gtk_micro_version);
12063 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
12064 major, minor, micro);
12065 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
12066 printf("***\n");
12067 printf("*** If you have already installed a sufficiently new version, this error\n");
12068 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
12069 printf("*** being found. The easiest way to fix this is to remove the old version\n");
12070 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
12071 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
12072 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
12073 printf("*** so that the correct libraries are found at run-time))\n");
12074 }
12075 }
12076 return 1;
12077}
12078
12079EOF
1d1b75ac 12080if { (eval echo configure:12081: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
21d1c967
GD
12081then
12082 :
12083else
12084 echo "configure: failed program was:" >&5
12085 cat conftest.$ac_ext >&5
12086 rm -fr conftest*
12087 no_gtk=yes
12088fi
12089rm -fr conftest*
12090fi
12091
12092 CFLAGS="$ac_save_CFLAGS"
12093 LIBS="$ac_save_LIBS"
12094 fi
12095 fi
12096 if test "x$no_gtk" = x ; then
12097 echo "$ac_t""yes" 1>&6
12098 wx_cv_lib_gtk=1.2.7
12099 else
12100 echo "$ac_t""no" 1>&6
12101 if test "$GTK_CONFIG" = "no" ; then
12102 echo "*** The gtk-config script installed by GTK could not be found"
12103 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
12104 echo "*** your path, or set the GTK_CONFIG environment variable to the"
12105 echo "*** full path to gtk-config."
12106 else
12107 if test -f conf.gtktest ; then
12108 :
12109 else
12110 echo "*** Could not run GTK test program, checking why..."
12111 CFLAGS="$CFLAGS $GTK_CFLAGS"
12112 LIBS="$LIBS $GTK_LIBS"
12113 cat > conftest.$ac_ext <<EOF
1d1b75ac 12114#line 12115 "configure"
21d1c967
GD
12115#include "confdefs.h"
12116
12117#include <gtk/gtk.h>
12118#include <stdio.h>
12119
12120int main() {
12121 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
f79bd02d
JS
12122; return 0; }
12123EOF
1d1b75ac 12124if { (eval echo configure:12125: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
f79bd02d 12125 rm -rf conftest*
21d1c967
GD
12126 echo "*** The test program compiled, but did not run. This usually means"
12127 echo "*** that the run-time linker is not finding GTK or finding the wrong"
12128 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
12129 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
12130 echo "*** to the installed location Also, make sure you have run ldconfig if that"
12131 echo "*** is required on your system"
12132 echo "***"
12133 echo "*** If you have an old version installed, it is best to remove it, although"
12134 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
12135 echo "***"
12136 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
12137 echo "*** came with the system with the command"
12138 echo "***"
12139 echo "*** rpm --erase --nodeps gtk gtk-devel"
f79bd02d
JS
12140else
12141 echo "configure: failed program was:" >&5
12142 cat conftest.$ac_ext >&5
12143 rm -rf conftest*
21d1c967
GD
12144 echo "*** The test program failed to compile or link. See the file config.log for the"
12145 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
12146 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
12147 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
f79bd02d
JS
12148fi
12149rm -f conftest*
21d1c967
GD
12150 CFLAGS="$ac_save_CFLAGS"
12151 LIBS="$ac_save_LIBS"
12152 fi
12153 fi
12154 GTK_CFLAGS=""
12155 GTK_LIBS=""
12156 :
12157 fi
12158
12159
12160 rm -f conf.gtktest
12161
12162 fi
12163
12164 if test -z "$wx_cv_lib_gtk"; then
12165 # Check whether --with-gtk-prefix or --without-gtk-prefix was given.
12166if test "${with_gtk_prefix+set}" = set; then
12167 withval="$with_gtk_prefix"
12168 gtk_config_prefix="$withval"
12169else
12170 gtk_config_prefix=""
90dd450c 12171fi
f79bd02d 12172
21d1c967
GD
12173# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
12174if test "${with_gtk_exec_prefix+set}" = set; then
12175 withval="$with_gtk_exec_prefix"
12176 gtk_config_exec_prefix="$withval"
12177else
12178 gtk_config_exec_prefix=""
12179fi
12180
12181# Check whether --enable-gtktest or --disable-gtktest was given.
12182if test "${enable_gtktest+set}" = set; then
12183 enableval="$enable_gtktest"
90dd450c
VZ
12184 :
12185else
21d1c967 12186 enable_gtktest=yes
90dd450c 12187fi
f79bd02d 12188
21d1c967
GD
12189
12190 for module in . $GTK_MODULES
12191 do
12192 case "$module" in
12193 gthread)
12194 gtk_config_args="$gtk_config_args gthread"
12195 ;;
12196 esac
12197 done
12198
12199 if test x$gtk_config_exec_prefix != x ; then
12200 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
12201 if test x${GTK_CONFIG+set} != xset ; then
12202 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
12203 fi
12204 fi
12205 if test x$gtk_config_prefix != x ; then
12206 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
12207 if test x${GTK_CONFIG+set} != xset ; then
12208 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
12209 fi
12210 fi
12211
12212 # Extract the first word of "gtk-config", so it can be a program name with args.
12213set dummy gtk-config; ac_word=$2
12214echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1d1b75ac 12215echo "configure:12216: checking for $ac_word" >&5
21d1c967 12216if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
90dd450c
VZ
12217 echo $ac_n "(cached) $ac_c" 1>&6
12218else
21d1c967
GD
12219 case "$GTK_CONFIG" in
12220 /*)
12221 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
12222 ;;
12223 ?:/*)
12224 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path.
12225 ;;
12226 *)
12227 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
12228 ac_dummy="$PATH"
12229 for ac_dir in $ac_dummy; do
12230 test -z "$ac_dir" && ac_dir=.
12231 if test -f $ac_dir/$ac_word; then
12232 ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
12233 break
12234 fi
12235 done
12236 IFS="$ac_save_ifs"
12237 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
12238 ;;
12239esac
12240fi
12241GTK_CONFIG="$ac_cv_path_GTK_CONFIG"
12242if test -n "$GTK_CONFIG"; then
12243 echo "$ac_t""$GTK_CONFIG" 1>&6
12244else
12245 echo "$ac_t""no" 1>&6
12246fi
12247
12248 min_gtk_version=1.2.3
12249 echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
1d1b75ac 12250echo "configure:12251: checking for GTK - version >= $min_gtk_version" >&5
21d1c967
GD
12251 no_gtk=""
12252 if test "$GTK_CONFIG" = "no" ; then
12253 no_gtk=yes
12254 else
12255 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
12256 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
12257 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
12258 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
12259 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
12260 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
12261 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
12262 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
12263 if test "x$enable_gtktest" = "xyes" ; then
12264 ac_save_CFLAGS="$CFLAGS"
12265 ac_save_LIBS="$LIBS"
12266 CFLAGS="$CFLAGS $GTK_CFLAGS"
12267 LIBS="$GTK_LIBS $LIBS"
12268 rm -f conf.gtktest
12269 if test "$cross_compiling" = yes; then
12270 echo $ac_n "cross compiling; assumed OK... $ac_c"
12271else
12272 cat > conftest.$ac_ext <<EOF
1d1b75ac 12273#line 12274 "configure"
f79bd02d 12274#include "confdefs.h"
21d1c967
GD
12275
12276#include <gtk/gtk.h>
12277#include <stdio.h>
12278#include <stdlib.h>
12279
12280int
12281main ()
12282{
12283 int major, minor, micro;
12284 char *tmp_version;
12285
12286 system ("touch conf.gtktest");
12287
12288 /* HP/UX 9 (%@#!) writes to sscanf strings */
12289 tmp_version = g_strdup("$min_gtk_version");
12290 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
12291 printf("%s, bad version string\n", "$min_gtk_version");
12292 exit(1);
12293 }
12294
12295 if ((gtk_major_version != $gtk_config_major_version) ||
12296 (gtk_minor_version != $gtk_config_minor_version) ||
12297 (gtk_micro_version != $gtk_config_micro_version))
12298 {
12299 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
12300 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
12301 gtk_major_version, gtk_minor_version, gtk_micro_version);
12302 printf ("*** was found! If gtk-config was correct, then it is best\n");
12303 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
12304 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
12305 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
12306 printf("*** required on your system.\n");
12307 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
12308 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
12309 printf("*** before re-running configure\n");
12310 }
12311#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
12312 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
12313 (gtk_minor_version != GTK_MINOR_VERSION) ||
12314 (gtk_micro_version != GTK_MICRO_VERSION))
12315 {
12316 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
12317 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
12318 printf("*** library (version %d.%d.%d)\n",
12319 gtk_major_version, gtk_minor_version, gtk_micro_version);
12320 }
12321#endif /* defined (GTK_MAJOR_VERSION) ... */
12322 else
12323 {
12324 if ((gtk_major_version > major) ||
12325 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
12326 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
12327 {
12328 return 0;
12329 }
12330 else
12331 {
12332 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
12333 gtk_major_version, gtk_minor_version, gtk_micro_version);
12334 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
12335 major, minor, micro);
12336 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
12337 printf("***\n");
12338 printf("*** If you have already installed a sufficiently new version, this error\n");
12339 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
12340 printf("*** being found. The easiest way to fix this is to remove the old version\n");
12341 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
12342 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
12343 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
12344 printf("*** so that the correct libraries are found at run-time))\n");
12345 }
12346 }
12347 return 1;
12348}
12349
12350EOF
1d1b75ac 12351if { (eval echo configure:12352: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
21d1c967
GD
12352then
12353 :
12354else
12355 echo "configure: failed program was:" >&5
12356 cat conftest.$ac_ext >&5
12357 rm -fr conftest*
12358 no_gtk=yes
12359fi
12360rm -fr conftest*
12361fi
12362
12363 CFLAGS="$ac_save_CFLAGS"
12364 LIBS="$ac_save_LIBS"
12365 fi
12366 fi
12367 if test "x$no_gtk" = x ; then
12368 echo "$ac_t""yes" 1>&6
12369 wx_cv_lib_gtk=1.2.3
12370 else
12371 echo "$ac_t""no" 1>&6
12372 if test "$GTK_CONFIG" = "no" ; then
12373 echo "*** The gtk-config script installed by GTK could not be found"
12374 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
12375 echo "*** your path, or set the GTK_CONFIG environment variable to the"
12376 echo "*** full path to gtk-config."
12377 else
12378 if test -f conf.gtktest ; then
12379 :
12380 else
12381 echo "*** Could not run GTK test program, checking why..."
12382 CFLAGS="$CFLAGS $GTK_CFLAGS"
12383 LIBS="$LIBS $GTK_LIBS"
12384 cat > conftest.$ac_ext <<EOF
1d1b75ac 12385#line 12386 "configure"
21d1c967
GD
12386#include "confdefs.h"
12387
12388#include <gtk/gtk.h>
12389#include <stdio.h>
f79bd02d 12390
f79bd02d 12391int main() {
21d1c967 12392 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
f79bd02d
JS
12393; return 0; }
12394EOF
1d1b75ac 12395if { (eval echo configure:12396: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
f79bd02d 12396 rm -rf conftest*
21d1c967
GD
12397 echo "*** The test program compiled, but did not run. This usually means"
12398 echo "*** that the run-time linker is not finding GTK or finding the wrong"
12399 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
12400 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
12401 echo "*** to the installed location Also, make sure you have run ldconfig if that"
12402 echo "*** is required on your system"
12403 echo "***"
12404 echo "*** If you have an old version installed, it is best to remove it, although"
12405 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
12406 echo "***"
12407 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
12408 echo "*** came with the system with the command"
12409 echo "***"
12410 echo "*** rpm --erase --nodeps gtk gtk-devel"
f79bd02d
JS
12411else
12412 echo "configure: failed program was:" >&5
12413 cat conftest.$ac_ext >&5
12414 rm -rf conftest*
21d1c967
GD
12415 echo "*** The test program failed to compile or link. See the file config.log for the"
12416 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
12417 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
12418 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
f79bd02d
JS
12419fi
12420rm -f conftest*
21d1c967
GD
12421 CFLAGS="$ac_save_CFLAGS"
12422 LIBS="$ac_save_LIBS"
12423 fi
12424 fi
12425 GTK_CFLAGS=""
12426 GTK_LIBS=""
12427 :
12428 fi
12429
12430
12431 rm -f conf.gtktest
f79bd02d 12432
21d1c967
GD
12433 fi
12434
12435 if test -z "$wx_cv_lib_gtk"; then
12436 wx_cv_lib_gtk=none
12437 else
12438 wx_cv_cflags_gtk=$GTK_CFLAGS
12439 wx_cv_libs_gtk=$GTK_LIBS
12440 fi
12441
12442
90dd450c 12443fi
b4085ce6 12444
e07802fc 12445
21d1c967
GD
12446 if test "$gtk_version_cached" = 1; then
12447 echo "$ac_t""$wx_cv_lib_gtk" 1>&6
12448 fi
12449
12450 case "$wx_cv_lib_gtk" in
12451 2.0) WXGTK20=1
12452 ;;
12453 1.2.7) WXGTK127=1
12454 WXGTK12=1
12455 ;;
12456 1.2.3) WXGTK12=1
12457 ;;
12458 *) { echo "configure: error:
12459Please check that gtk-config is in path, the directory
12460where GTK+ libraries are installed (returned by
12461'gtk-config --libs' command) is in LD_LIBRARY_PATH or
12462equivalent variable and GTK+ is version 1.2.3 or above.
12463 " 1>&2; exit 1; }
12464 ;;
12465 esac
12466
12467 TOOLKIT_INCLUDE="$wx_cv_cflags_gtk"
12468 GUI_TK_LIBRARY="$wx_cv_libs_gtk"
12469
12470 AFMINSTALL=afminstall
12471 TOOLKIT=GTK
12472 GUIDIST=GTK_DIST
12473
12474 echo $ac_n "checking for gdk_im_open in -lgdk""... $ac_c" 1>&6
1d1b75ac 12475echo "configure:12476: checking for gdk_im_open in -lgdk" >&5
21d1c967 12476ac_lib_var=`echo gdk'_'gdk_im_open | sed 'y%./+-%__p_%'`
90dd450c
VZ
12477if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12478 echo $ac_n "(cached) $ac_c" 1>&6
12479else
12480 ac_save_LIBS="$LIBS"
21d1c967 12481LIBS="-lgdk $LIBS"
90dd450c 12482cat > conftest.$ac_ext <<EOF
1d1b75ac 12483#line 12484 "configure"
90dd450c
VZ
12484#include "confdefs.h"
12485/* Override any gcc2 internal prototype to avoid an error. */
12486/* We use char because int might match the return type of a gcc2
12487 builtin and then its argument prototype would still apply. */
21d1c967 12488char gdk_im_open();
9b695262 12489
90dd450c 12490int main() {
21d1c967 12491gdk_im_open()
90dd450c
VZ
12492; return 0; }
12493EOF
1d1b75ac 12494if { (eval echo configure:12495: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
90dd450c
VZ
12495 rm -rf conftest*
12496 eval "ac_cv_lib_$ac_lib_var=yes"
12497else
12498 echo "configure: failed program was:" >&5
12499 cat conftest.$ac_ext >&5
12500 rm -rf conftest*
12501 eval "ac_cv_lib_$ac_lib_var=no"
12502fi
12503rm -f conftest*
12504LIBS="$ac_save_LIBS"
9b695262 12505
90dd450c
VZ
12506fi
12507if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12508 echo "$ac_t""yes" 1>&6
21d1c967
GD
12509 cat >> confdefs.h <<\EOF
12510#define HAVE_XIM 1
12511EOF
12512
90dd450c
VZ
12513else
12514 echo "$ac_t""no" 1>&6
12515fi
1e6feb95 12516
21d1c967 12517 fi
1e6feb95 12518
21d1c967
GD
12519 if test "$wxUSE_MGL" = 1; then
12520 echo $ac_n "checking for SciTech MGL library""... $ac_c" 1>&6
1d1b75ac 12521echo "configure:12522: checking for SciTech MGL library" >&5
21d1c967
GD
12522 if test "x$MGL_ROOT" = x ; then
12523 echo "$ac_t""not found" 1>&6
12524 { echo "configure: error: Cannot find MGL library. Make sure MGL_ROOT is set." 1>&2; exit 1; }
12525 else
12526 echo "$ac_t""$MGL_ROOT" 1>&6
12527 fi
12528
12529 case "${host}" in
12530 *-*-linux* )
12531 mgl_os=linux/gcc/glibc
12532 ;;
12533 *-pc-msdosdjgpp )
12534 mgl_os=dos32/dj2
12535 ;;
12536 *)
12537 { echo "configure: error: This system type ${host} is not yet supported by wxMGL." 1>&2; exit 1; }
12538 esac
1e6feb95 12539
21d1c967 12540 mgl_lib_type=""
3fcdd07b 12541
21d1c967
GD
12542 if test "$wxUSE_DEBUG_FLAG" = yes ; then
12543 if test -f $MGL_ROOT/lib/debug/$mgl_os/libmgl.a -o \
12544 -f $MGL_ROOT/lib/debug/$mgl_os/libmgl.so; then
12545 mgl_lib_type=debug
12546 fi
12547 fi
12548 if test "x$mgl_lib_type" = x ; then
12549 if test -f $MGL_ROOT/lib/release/$mgl_os/libmgl.a -o \
12550 -f $MGL_ROOT/lib/release/$mgl_os/libmgl.so; then
12551 mgl_lib_type=release
12552 else
12553 { echo "configure: error: Cannot find MGL libraries, make sure they are compiled." 1>&2; exit 1; }
12554 fi
90dd450c 12555 fi
2224580a 12556
1d1b75ac
VZ
12557 wxUSE_UNIVERSAL="yes"
12558
21d1c967
GD
12559 TOOLKIT_INCLUDE="-I$MGL_ROOT/include"
12560 GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$mgl_lib_type/$mgl_os -lmgl -lmglcpp -lpm"
12561
90dd450c 12562 AFMINSTALL=afminstall
21d1c967
GD
12563 TOOLKIT=MGL
12564 GUIDIST=MGL_DIST
12565 fi
dad6c0ea 12566
21d1c967
GD
12567 if test "$wxUSE_MICROWIN" = 1; then
12568 echo $ac_n "checking for MicroWindows""... $ac_c" 1>&6
1d1b75ac 12569echo "configure:12570: checking for MicroWindows" >&5
21d1c967
GD
12570 if test "x$MICROWINDOWS" = x ; then
12571 echo "$ac_t""not found" 1>&6
12572 { echo "configure: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." 1>&2; exit 1; }
12573 else
12574 echo "$ac_t""$MICROWINDOWS" 1>&6
12575 fi
f6bcfd97 12576
21d1c967
GD
12577 if test -f $MICROWINDOWS/lib/libmwin.a; then
12578 echo "$ac_t""MicroWindows' libraries found." 1>&6
12579 else
12580 { echo "configure: error: Cannot find MicroWindows libraries, make sure they are compiled." 1>&2; exit 1; }
90dd450c 12581 fi
0b2effe9 12582
21d1c967
GD
12583 TOOLKIT_INCLUDE="-I$MICROWINDOWS/include"
12584 GUI_TK_LIBRARY="-L$MICROWINDOWS/lib -lmwin -lmwengine -mwfonts -mwdrivers -mwinlib"
12585
1d1b75ac
VZ
12586 wxUSE_UNIVERSAL="yes"
12587
21d1c967
GD
12588 AFMINSTALL=afminstall
12589 TOOLKIT=MICROWIN
12590 GUIDIST=MICROWIN_DIST
1d1b75ac
VZ
12591
12592 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXMSW__ -D__WIN95__ -D__WIN32__ -DMWIN -DMICROWIN_NOCONTROLS -DMICROWIN_TODO=1"
21d1c967 12593 fi
f6bcfd97 12594
21d1c967
GD
12595 if test "$wxUSE_X11" = 1; then
12596 # If we find X, set shell vars x_includes and x_libraries to the
12597# paths, otherwise set no_x=yes.
12598# Uses ac_ vars as temps to allow command line to override cache and checks.
12599# --without-x overrides everything else, but does not touch the cache.
12600echo $ac_n "checking for X""... $ac_c" 1>&6
1d1b75ac 12601echo "configure:12602: checking for X" >&5
d8356fa3 12602
21d1c967
GD
12603# Check whether --with-x or --without-x was given.
12604if test "${with_x+set}" = set; then
12605 withval="$with_x"
12606 :
12607fi
2224580a 12608
21d1c967
GD
12609# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
12610if test "x$with_x" = xno; then
12611 # The user explicitly disabled X.
12612 have_x=disabled
12613else
12614 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
12615 # Both variables are already set.
12616 have_x=yes
12617 else
12618if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
12619 echo $ac_n "(cached) $ac_c" 1>&6
12620else
12621 # One or both of the vars are not set, and there is no cached value.
12622ac_x_includes=NO ac_x_libraries=NO
12623rm -fr conftestdir
12624if mkdir conftestdir; then
12625 cd conftestdir
12626 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
12627 cat > Imakefile <<'EOF'
12628acfindx:
12629 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
12630EOF
12631 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
12632 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
12633 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
12634 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
12635 for ac_extension in a so sl; do
12636 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
12637 test -f $ac_im_libdir/libX11.$ac_extension; then
12638 ac_im_usrlibdir=$ac_im_libdir; break
12639 fi
12640 done
12641 # Screen out bogus values from the imake configuration. They are
12642 # bogus both because they are the default anyway, and because
12643 # using them would break gcc on systems where it needs fixed includes.
12644 case "$ac_im_incroot" in
12645 /usr/include) ;;
12646 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
12647 esac
12648 case "$ac_im_usrlibdir" in
12649 /usr/lib | /lib) ;;
12650 *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
12651 esac
12652 fi
12653 cd ..
12654 rm -fr conftestdir
12655fi
10f2d63a 12656
21d1c967
GD
12657if test "$ac_x_includes" = NO; then
12658 # Guess where to find include files, by looking for this one X11 .h file.
12659 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
e45387bf 12660
21d1c967
GD
12661 # First, try using that file with no special directory specified.
12662cat > conftest.$ac_ext <<EOF
1d1b75ac 12663#line 12664 "configure"
21d1c967
GD
12664#include "confdefs.h"
12665#include <$x_direct_test_include>
90dd450c 12666EOF
21d1c967 12667ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1d1b75ac 12668{ (eval echo configure:12669: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
21d1c967
GD
12669ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12670if test -z "$ac_err"; then
90dd450c 12671 rm -rf conftest*
21d1c967
GD
12672 # We can compile using X headers with no special include directory.
12673ac_x_includes=
90dd450c 12674else
21d1c967 12675 echo "$ac_err" >&5
90dd450c
VZ
12676 echo "configure: failed program was:" >&5
12677 cat conftest.$ac_ext >&5
12678 rm -rf conftest*
21d1c967
GD
12679 # Look for the header file in a standard set of common directories.
12680# Check X11 before X11Rn because it is often a symlink to the current release.
12681 for ac_dir in \
12682 /usr/X11/include \
12683 /usr/X11R6/include \
12684 /usr/X11R5/include \
12685 /usr/X11R4/include \
12686 \
12687 /usr/include/X11 \
12688 /usr/include/X11R6 \
12689 /usr/include/X11R5 \
12690 /usr/include/X11R4 \
12691 \
12692 /usr/local/X11/include \
12693 /usr/local/X11R6/include \
12694 /usr/local/X11R5/include \
12695 /usr/local/X11R4/include \
12696 \
12697 /usr/local/include/X11 \
12698 /usr/local/include/X11R6 \
12699 /usr/local/include/X11R5 \
12700 /usr/local/include/X11R4 \
12701 \
12702 /usr/X386/include \
12703 /usr/x386/include \
12704 /usr/XFree86/include/X11 \
12705 \
12706 /usr/include \
12707 /usr/local/include \
12708 /usr/unsupported/include \
12709 /usr/athena/include \
12710 /usr/local/x11r5/include \
12711 /usr/lpp/Xamples/include \
12712 \
12713 /usr/openwin/include \
12714 /usr/openwin/share/include \
12715 ; \
12716 do
12717 if test -r "$ac_dir/$x_direct_test_include"; then
12718 ac_x_includes=$ac_dir
12719 break
12720 fi
12721 done
3a922bb4 12722fi
90dd450c 12723rm -f conftest*
21d1c967 12724fi # $ac_x_includes = NO
10f2d63a 12725
21d1c967
GD
12726if test "$ac_x_libraries" = NO; then
12727 # Check for the libraries.
be505a65 12728
21d1c967
GD
12729 test -z "$x_direct_test_library" && x_direct_test_library=Xt
12730 test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
90dd450c 12731
21d1c967
GD
12732 # See if we find them without any special options.
12733 # Don't add to $LIBS permanently.
12734 ac_save_LIBS="$LIBS"
12735 LIBS="-l$x_direct_test_library $LIBS"
12736cat > conftest.$ac_ext <<EOF
1d1b75ac 12737#line 12738 "configure"
3a922bb4 12738#include "confdefs.h"
21d1c967
GD
12739
12740int main() {
12741${x_direct_test_function}()
12742; return 0; }
3a922bb4 12743EOF
1d1b75ac 12744if { (eval echo configure:12745: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3a922bb4 12745 rm -rf conftest*
21d1c967
GD
12746 LIBS="$ac_save_LIBS"
12747# We can link X programs with no special library path.
12748ac_x_libraries=
3a922bb4 12749else
3a922bb4
RL
12750 echo "configure: failed program was:" >&5
12751 cat conftest.$ac_ext >&5
12752 rm -rf conftest*
21d1c967
GD
12753 LIBS="$ac_save_LIBS"
12754# First see if replacing the include by lib works.
12755# Check X11 before X11Rn because it is often a symlink to the current release.
12756for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
12757 /usr/X11/lib \
12758 /usr/X11R6/lib \
12759 /usr/X11R5/lib \
12760 /usr/X11R4/lib \
12761 \
12762 /usr/lib/X11 \
12763 /usr/lib/X11R6 \
12764 /usr/lib/X11R5 \
12765 /usr/lib/X11R4 \
12766 \
12767 /usr/local/X11/lib \
12768 /usr/local/X11R6/lib \
12769 /usr/local/X11R5/lib \
12770 /usr/local/X11R4/lib \
12771 \
12772 /usr/local/lib/X11 \
12773 /usr/local/lib/X11R6 \
12774 /usr/local/lib/X11R5 \
12775 /usr/local/lib/X11R4 \
12776 \
12777 /usr/X386/lib \
12778 /usr/x386/lib \
12779 /usr/XFree86/lib/X11 \
12780 \
12781 /usr/lib \
12782 /usr/local/lib \
12783 /usr/unsupported/lib \
12784 /usr/athena/lib \
12785 /usr/local/x11r5/lib \
12786 /usr/lpp/Xamples/lib \
12787 /lib/usr/lib/X11 \
12788 \
12789 /usr/openwin/lib \
12790 /usr/openwin/share/lib \
12791 ; \
12792do
12793 for ac_extension in a so sl; do
12794 if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
12795 ac_x_libraries=$ac_dir
12796 break 2
12797 fi
12798 done
12799done
3a922bb4
RL
12800fi
12801rm -f conftest*
21d1c967 12802fi # $ac_x_libraries = NO
90dd450c 12803
21d1c967
GD
12804if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
12805 # Didn't find X anywhere. Cache the known absence of X.
12806 ac_cv_have_x="have_x=no"
12807else
12808 # Record where we found X for the cache.
12809 ac_cv_have_x="have_x=yes \
12810 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
90dd450c 12811fi
21d1c967
GD
12812fi
12813 fi
12814 eval "$ac_cv_have_x"
12815fi # $with_x != no
90dd450c 12816
21d1c967
GD
12817if test "$have_x" != yes; then
12818 echo "$ac_t""$have_x" 1>&6
12819 no_x=yes
12820else
12821 # If each of the values was on the command line, it overrides each guess.
12822 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
12823 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
12824 # Update the cache value to reflect the command line values.
12825 ac_cv_have_x="have_x=yes \
12826 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
12827 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
12828fi
90dd450c 12829
21d1c967 12830if test "$no_x" = yes; then
90dd450c
VZ
12831 # Not all programs may use this symbol, but it does not hurt to define it.
12832 cat >> confdefs.h <<\EOF
12833#define X_DISPLAY_MISSING 1
12834EOF
12835
12836 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
12837else
12838 if test -n "$x_includes"; then
12839 X_CFLAGS="$X_CFLAGS -I$x_includes"
62d0491b 12840 fi
3a922bb4 12841
90dd450c
VZ
12842 # It would also be nice to do this for all -L options, not just this one.
12843 if test -n "$x_libraries"; then
12844 X_LIBS="$X_LIBS -L$x_libraries"
12845 # For Solaris; some versions of Sun CC require a space after -R and
12846 # others require no space. Words are not sufficient . . . .
12847 case "`(uname -sr) 2>/dev/null`" in
12848 "SunOS 5"*)
12849 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
1d1b75ac 12850echo "configure:12851: checking whether -R must be followed by a space" >&5
90dd450c
VZ
12851 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
12852 cat > conftest.$ac_ext <<EOF
1d1b75ac 12853#line 12854 "configure"
90dd450c
VZ
12854#include "confdefs.h"
12855
12856int main() {
12857
12858; return 0; }
12859EOF
1d1b75ac 12860if { (eval echo configure:12861: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
90dd450c
VZ
12861 rm -rf conftest*
12862 ac_R_nospace=yes
3a922bb4 12863else
90dd450c
VZ
12864 echo "configure: failed program was:" >&5
12865 cat conftest.$ac_ext >&5
12866 rm -rf conftest*
12867 ac_R_nospace=no
3a922bb4 12868fi
90dd450c
VZ
12869rm -f conftest*
12870 if test $ac_R_nospace = yes; then
12871 echo "$ac_t""no" 1>&6
12872 X_LIBS="$X_LIBS -R$x_libraries"
12873 else
12874 LIBS="$ac_xsave_LIBS -R $x_libraries"
12875 cat > conftest.$ac_ext <<EOF
1d1b75ac 12876#line 12877 "configure"
90dd450c 12877#include "confdefs.h"
3a922bb4 12878
90dd450c 12879int main() {
6f754473 12880
90dd450c
VZ
12881; return 0; }
12882EOF
1d1b75ac 12883if { (eval echo configure:12884: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
90dd450c
VZ
12884 rm -rf conftest*
12885 ac_R_space=yes
12886else
12887 echo "configure: failed program was:" >&5
12888 cat conftest.$ac_ext >&5
12889 rm -rf conftest*
12890 ac_R_space=no
12891fi
12892rm -f conftest*
12893 if test $ac_R_space = yes; then
12894 echo "$ac_t""yes" 1>&6
12895 X_LIBS="$X_LIBS -R $x_libraries"
12896 else
12897 echo "$ac_t""neither works" 1>&6
12898 fi
12899 fi
12900 LIBS="$ac_xsave_LIBS"
12901 esac
12902 fi
12903
12904 # Check for system-dependent libraries X programs must link with.
12905 # Do this before checking for the system-independent R6 libraries
12906 # (-lICE), since we may need -lsocket or whatever for X linking.
6f754473 12907
90dd450c
VZ
12908 if test "$ISC" = yes; then
12909 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
12910 else
12911 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
12912 # libraries were built with DECnet support. And karl@cs.umb.edu says
12913 # the Alpha needs dnet_stub (dnet does not exist).
12914 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
1d1b75ac 12915echo "configure:12916: checking for dnet_ntoa in -ldnet" >&5
90dd450c
VZ
12916ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
12917if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12918 echo $ac_n "(cached) $ac_c" 1>&6
12919else
12920 ac_save_LIBS="$LIBS"
12921LIBS="-ldnet $LIBS"
12922cat > conftest.$ac_ext <<EOF
1d1b75ac 12923#line 12924 "configure"
90dd450c
VZ
12924#include "confdefs.h"
12925/* Override any gcc2 internal prototype to avoid an error. */
12926/* We use char because int might match the return type of a gcc2
12927 builtin and then its argument prototype would still apply. */
12928char dnet_ntoa();
6f754473 12929
90dd450c
VZ
12930int main() {
12931dnet_ntoa()
12932; return 0; }
6f754473 12933EOF
1d1b75ac 12934if { (eval echo configure:12935: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
90dd450c
VZ
12935 rm -rf conftest*
12936 eval "ac_cv_lib_$ac_lib_var=yes"
12937else
12938 echo "configure: failed program was:" >&5
12939 cat conftest.$ac_ext >&5
12940 rm -rf conftest*
12941 eval "ac_cv_lib_$ac_lib_var=no"
3a922bb4 12942fi
90dd450c
VZ
12943rm -f conftest*
12944LIBS="$ac_save_LIBS"
3a922bb4 12945
3a922bb4 12946fi
90dd450c
VZ
12947if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12948 echo "$ac_t""yes" 1>&6
12949 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
12950else
12951 echo "$ac_t""no" 1>&6
3a922bb4
RL
12952fi
12953
90dd450c
VZ
12954 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
12955 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
1d1b75ac 12956echo "configure:12957: checking for dnet_ntoa in -ldnet_stub" >&5
90dd450c
VZ
12957ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
12958if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12959 echo $ac_n "(cached) $ac_c" 1>&6
12960else
12961 ac_save_LIBS="$LIBS"
12962LIBS="-ldnet_stub $LIBS"
12963cat > conftest.$ac_ext <<EOF
1d1b75ac 12964#line 12965 "configure"
90dd450c
VZ
12965#include "confdefs.h"
12966/* Override any gcc2 internal prototype to avoid an error. */
12967/* We use char because int might match the return type of a gcc2
12968 builtin and then its argument prototype would still apply. */
12969char dnet_ntoa();
f676c7ff 12970
90dd450c
VZ
12971int main() {
12972dnet_ntoa()
12973; return 0; }
12974EOF
1d1b75ac 12975if { (eval echo configure:12976: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
90dd450c
VZ
12976 rm -rf conftest*
12977 eval "ac_cv_lib_$ac_lib_var=yes"
12978else
12979 echo "configure: failed program was:" >&5
12980 cat conftest.$ac_ext >&5
12981 rm -rf conftest*
12982 eval "ac_cv_lib_$ac_lib_var=no"
3a922bb4 12983fi
90dd450c
VZ
12984rm -f conftest*
12985LIBS="$ac_save_LIBS"
3a922bb4 12986
90dd450c
VZ
12987fi
12988if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12989 echo "$ac_t""yes" 1>&6
12990 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
12991else
12992 echo "$ac_t""no" 1>&6
3a922bb4
RL
12993fi
12994
90dd450c 12995 fi
978f1259 12996
90dd450c
VZ
12997 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
12998 # to get the SysV transport functions.
12999 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
13000 # needs -lnsl.
13001 # The nsl library prevents programs from opening the X display
13002 # on Irix 5.2, according to dickey@clark.net.
13003 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
1d1b75ac 13004echo "configure:13005: checking for gethostbyname" >&5
90dd450c
VZ
13005if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
13006 echo $ac_n "(cached) $ac_c" 1>&6
13007else
13008 cat > conftest.$ac_ext <<EOF
1d1b75ac 13009#line 13010 "configure"
90dd450c
VZ
13010#include "confdefs.h"
13011/* System header to define __stub macros and hopefully few prototypes,
13012 which can conflict with char gethostbyname(); below. */
13013#include <assert.h>
13014/* Override any gcc2 internal prototype to avoid an error. */
13015/* We use char because int might match the return type of a gcc2
13016 builtin and then its argument prototype would still apply. */
13017char gethostbyname();
978f1259 13018
90dd450c 13019int main() {
978f1259 13020
90dd450c
VZ
13021/* The GNU C library defines this for functions which it implements
13022 to always fail with ENOSYS. Some functions are actually named
13023 something starting with __ and the normal name is an alias. */
13024#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
13025choke me
13026#else
13027gethostbyname();
13028#endif
978f1259 13029
90dd450c
VZ
13030; return 0; }
13031EOF
1d1b75ac 13032if { (eval echo configure:13033: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
90dd450c
VZ
13033 rm -rf conftest*
13034 eval "ac_cv_func_gethostbyname=yes"
13035else
13036 echo "configure: failed program was:" >&5
13037 cat conftest.$ac_ext >&5
13038 rm -rf conftest*
13039 eval "ac_cv_func_gethostbyname=no"
978f1259 13040fi
90dd450c 13041rm -f conftest*
4222829b
VS
13042fi
13043
90dd450c
VZ
13044if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
13045 echo "$ac_t""yes" 1>&6
13046 :
13047else
13048 echo "$ac_t""no" 1>&6
13049fi
698dcdb6 13050
90dd450c
VZ
13051 if test $ac_cv_func_gethostbyname = no; then
13052 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
1d1b75ac 13053echo "configure:13054: checking for gethostbyname in -lnsl" >&5
90dd450c
VZ
13054ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
13055if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13056 echo $ac_n "(cached) $ac_c" 1>&6
13057else
13058 ac_save_LIBS="$LIBS"
13059LIBS="-lnsl $LIBS"
13060cat > conftest.$ac_ext <<EOF
1d1b75ac 13061#line 13062 "configure"
90dd450c
VZ
13062#include "confdefs.h"
13063/* Override any gcc2 internal prototype to avoid an error. */
13064/* We use char because int might match the return type of a gcc2
13065 builtin and then its argument prototype would still apply. */
13066char gethostbyname();
f6bcfd97 13067
90dd450c
VZ
13068int main() {
13069gethostbyname()
13070; return 0; }
13071EOF
1d1b75ac 13072if { (eval echo configure:13073: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
90dd450c
VZ
13073 rm -rf conftest*
13074 eval "ac_cv_lib_$ac_lib_var=yes"
13075else
13076 echo "configure: failed program was:" >&5
13077 cat conftest.$ac_ext >&5
13078 rm -rf conftest*
13079 eval "ac_cv_lib_$ac_lib_var=no"
13080fi
13081rm -f conftest*
13082LIBS="$ac_save_LIBS"
55e80573 13083
90dd450c
VZ
13084fi
13085if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13086 echo "$ac_t""yes" 1>&6
13087 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
13088else
13089 echo "$ac_t""no" 1>&6
13090fi
b12915c1 13091
90dd450c
VZ
13092 fi
13093
13094 # lieder@skyler.mavd.honeywell.com says without -lsocket,
13095 # socket/setsockopt and other routines are undefined under SCO ODT
13096 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
13097 # on later versions), says simon@lia.di.epfl.ch: it contains
13098 # gethostby* variants that don't use the nameserver (or something).
13099 # -lsocket must be given before -lnsl if both are needed.
13100 # We assume that if connect needs -lnsl, so does gethostbyname.
13101 echo $ac_n "checking for connect""... $ac_c" 1>&6
1d1b75ac 13102echo "configure:13103: checking for connect" >&5
90dd450c 13103if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
55e80573
VZ
13104 echo $ac_n "(cached) $ac_c" 1>&6
13105else
90dd450c 13106 cat > conftest.$ac_ext <<EOF
1d1b75ac 13107#line 13108 "configure"
55e80573 13108#include "confdefs.h"
90dd450c
VZ
13109/* System header to define __stub macros and hopefully few prototypes,
13110 which can conflict with char connect(); below. */
13111#include <assert.h>
13112/* Override any gcc2 internal prototype to avoid an error. */
13113/* We use char because int might match the return type of a gcc2
13114 builtin and then its argument prototype would still apply. */
13115char connect();
55e80573
VZ
13116
13117int main() {
13118
90dd450c
VZ
13119/* The GNU C library defines this for functions which it implements
13120 to always fail with ENOSYS. Some functions are actually named
13121 something starting with __ and the normal name is an alias. */
13122#if defined (__stub_connect) || defined (__stub___connect)
13123choke me
13124#else
13125connect();
13126#endif
13127
55e80573
VZ
13128; return 0; }
13129EOF
1d1b75ac 13130if { (eval echo configure:13131: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
55e80573 13131 rm -rf conftest*
90dd450c 13132 eval "ac_cv_func_connect=yes"
55e80573
VZ
13133else
13134 echo "configure: failed program was:" >&5
13135 cat conftest.$ac_ext >&5
13136 rm -rf conftest*
90dd450c 13137 eval "ac_cv_func_connect=no"
55e80573
VZ
13138fi
13139rm -f conftest*
55e80573
VZ
13140fi
13141
90dd450c
VZ
13142if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
13143 echo "$ac_t""yes" 1>&6
13144 :
13145else
13146 echo "$ac_t""no" 1>&6
13147fi
55e80573 13148
90dd450c
VZ
13149 if test $ac_cv_func_connect = no; then
13150 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
1d1b75ac 13151echo "configure:13152: checking for connect in -lsocket" >&5
90dd450c
VZ
13152ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
13153if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13154 echo $ac_n "(cached) $ac_c" 1>&6
13155else
13156 ac_save_LIBS="$LIBS"
13157LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
13158cat > conftest.$ac_ext <<EOF
1d1b75ac 13159#line 13160 "configure"
90dd450c
VZ
13160#include "confdefs.h"
13161/* Override any gcc2 internal prototype to avoid an error. */
13162/* We use char because int might match the return type of a gcc2
13163 builtin and then its argument prototype would still apply. */
13164char connect();
55e80573 13165
90dd450c
VZ
13166int main() {
13167connect()
13168; return 0; }
13169EOF
1d1b75ac 13170if { (eval echo configure:13171: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
90dd450c
VZ
13171 rm -rf conftest*
13172 eval "ac_cv_lib_$ac_lib_var=yes"
13173else
13174 echo "configure: failed program was:" >&5
13175 cat conftest.$ac_ext >&5
13176 rm -rf conftest*
13177 eval "ac_cv_lib_$ac_lib_var=no"
13178fi
13179rm -f conftest*
13180LIBS="$ac_save_LIBS"
77e13408 13181
90dd450c
VZ
13182fi
13183if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13184 echo "$ac_t""yes" 1>&6
13185 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
13186else
13187 echo "$ac_t""no" 1>&6
13188fi
77e13408 13189
90dd450c 13190 fi
25d0687a 13191
90dd450c
VZ
13192 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
13193 echo $ac_n "checking for remove""... $ac_c" 1>&6
1d1b75ac 13194echo "configure:13195: checking for remove" >&5
90dd450c
VZ
13195if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
13196 echo $ac_n "(cached) $ac_c" 1>&6
13197else
13198 cat > conftest.$ac_ext <<EOF
1d1b75ac 13199#line 13200 "configure"
90dd450c
VZ
13200#include "confdefs.h"
13201/* System header to define __stub macros and hopefully few prototypes,
13202 which can conflict with char remove(); below. */
13203#include <assert.h>
13204/* Override any gcc2 internal prototype to avoid an error. */
13205/* We use char because int might match the return type of a gcc2
13206 builtin and then its argument prototype would still apply. */
13207char remove();
7b7a7637 13208
90dd450c 13209int main() {
55e80573 13210
90dd450c
VZ
13211/* The GNU C library defines this for functions which it implements
13212 to always fail with ENOSYS. Some functions are actually named
13213 something starting with __ and the normal name is an alias. */
13214#if defined (__stub_remove) || defined (__stub___remove)
13215choke me
13216#else
13217remove();
13218#endif
55e80573 13219
90dd450c
VZ
13220; return 0; }
13221EOF
1d1b75ac 13222if { (eval echo configure:13223: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
90dd450c
VZ
13223 rm -rf conftest*
13224 eval "ac_cv_func_remove=yes"
13225else
13226 echo "configure: failed program was:" >&5
13227 cat conftest.$ac_ext >&5
13228 rm -rf conftest*
13229 eval "ac_cv_func_remove=no"
13230fi
13231rm -f conftest*
13232fi
55e80573 13233
90dd450c
VZ
13234if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
13235 echo "$ac_t""yes" 1>&6
13236 :
13237else
13238 echo "$ac_t""no" 1>&6
13239fi
10f2d63a 13240
90dd450c
VZ
13241 if test $ac_cv_func_remove = no; then
13242 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
1d1b75ac 13243echo "configure:13244: checking for remove in -lposix" >&5
90dd450c
VZ
13244ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
13245if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13246 echo $ac_n "(cached) $ac_c" 1>&6
13247else
13248 ac_save_LIBS="$LIBS"
13249LIBS="-lposix $LIBS"
13250cat > conftest.$ac_ext <<EOF
1d1b75ac 13251#line 13252 "configure"
90dd450c
VZ
13252#include "confdefs.h"
13253/* Override any gcc2 internal prototype to avoid an error. */
13254/* We use char because int might match the return type of a gcc2
13255 builtin and then its argument prototype would still apply. */
13256char remove();
55e80573 13257
90dd450c
VZ
13258int main() {
13259remove()
13260; return 0; }
13261EOF
1d1b75ac 13262if { (eval echo configure:13263: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
90dd450c
VZ
13263 rm -rf conftest*
13264 eval "ac_cv_lib_$ac_lib_var=yes"
13265else
13266 echo "configure: failed program was:" >&5
13267 cat conftest.$ac_ext >&5
13268 rm -rf conftest*
13269 eval "ac_cv_lib_$ac_lib_var=no"
3a922bb4 13270fi
90dd450c
VZ
13271rm -f conftest*
13272LIBS="$ac_save_LIBS"
f6bcfd97 13273
90dd450c
VZ
13274fi
13275if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13276 echo "$ac_t""yes" 1>&6
13277 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
13278else
13279 echo "$ac_t""no" 1>&6
13280fi
f6bcfd97 13281
6fa882bd
RR
13282 fi
13283
90dd450c
VZ
13284 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
13285 echo $ac_n "checking for shmat""... $ac_c" 1>&6
1d1b75ac 13286echo "configure:13287: checking for shmat" >&5
90dd450c
VZ
13287if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
13288 echo $ac_n "(cached) $ac_c" 1>&6
13289else
13290 cat > conftest.$ac_ext <<EOF
1d1b75ac 13291#line 13292 "configure"
90dd450c
VZ
13292#include "confdefs.h"
13293/* System header to define __stub macros and hopefully few prototypes,
13294 which can conflict with char shmat(); below. */
13295#include <assert.h>
13296/* Override any gcc2 internal prototype to avoid an error. */
13297/* We use char because int might match the return type of a gcc2
13298 builtin and then its argument prototype would still apply. */
13299char shmat();
698dcdb6 13300
90dd450c 13301int main() {
3a922bb4 13302
90dd450c
VZ
13303/* The GNU C library defines this for functions which it implements
13304 to always fail with ENOSYS. Some functions are actually named
13305 something starting with __ and the normal name is an alias. */
13306#if defined (__stub_shmat) || defined (__stub___shmat)
13307choke me
13308#else
13309shmat();
13310#endif
10f2d63a 13311
90dd450c
VZ
13312; return 0; }
13313EOF
1d1b75ac 13314if { (eval echo configure:13315: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
90dd450c
VZ
13315 rm -rf conftest*
13316 eval "ac_cv_func_shmat=yes"
d08b457b 13317else
90dd450c
VZ
13318 echo "configure: failed program was:" >&5
13319 cat conftest.$ac_ext >&5
13320 rm -rf conftest*
13321 eval "ac_cv_func_shmat=no"
d08b457b 13322fi
90dd450c 13323rm -f conftest*
d08b457b 13324fi
90dd450c
VZ
13325
13326if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
13327 echo "$ac_t""yes" 1>&6
13328 :
d08b457b
GD
13329else
13330 echo "$ac_t""no" 1>&6
13331fi
13332
90dd450c
VZ
13333 if test $ac_cv_func_shmat = no; then
13334 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
1d1b75ac 13335echo "configure:13336: checking for shmat in -lipc" >&5
90dd450c
VZ
13336ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
13337if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
d08b457b
GD
13338 echo $ac_n "(cached) $ac_c" 1>&6
13339else
90dd450c
VZ
13340 ac_save_LIBS="$LIBS"
13341LIBS="-lipc $LIBS"
13342cat > conftest.$ac_ext <<EOF
1d1b75ac 13343#line 13344 "configure"
90dd450c
VZ
13344#include "confdefs.h"
13345/* Override any gcc2 internal prototype to avoid an error. */
13346/* We use char because int might match the return type of a gcc2
13347 builtin and then its argument prototype would still apply. */
13348char shmat();
13349
13350int main() {
13351shmat()
13352; return 0; }
13353EOF
1d1b75ac 13354if { (eval echo configure:13355: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
90dd450c
VZ
13355 rm -rf conftest*
13356 eval "ac_cv_lib_$ac_lib_var=yes"
d08b457b 13357else
90dd450c
VZ
13358 echo "configure: failed program was:" >&5
13359 cat conftest.$ac_ext >&5
13360 rm -rf conftest*
13361 eval "ac_cv_lib_$ac_lib_var=no"
d08b457b 13362fi
90dd450c
VZ
13363rm -f conftest*
13364LIBS="$ac_save_LIBS"
13365
d08b457b 13366fi
90dd450c
VZ
13367if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13368 echo "$ac_t""yes" 1>&6
13369 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
d08b457b
GD
13370else
13371 echo "$ac_t""no" 1>&6
13372fi
13373
d558c907 13374 fi
90dd450c 13375 fi
3a922bb4 13376
90dd450c
VZ
13377 # Check for libraries that X11R6 Xt/Xaw programs need.
13378 ac_save_LDFLAGS="$LDFLAGS"
13379 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
13380 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
13381 # check for ICE first), but we must link in the order -lSM -lICE or
13382 # we get undefined symbols. So assume we have SM if we have ICE.
13383 # These have to be linked with before -lX11, unlike the other
13384 # libraries we check for below, so use a different variable.
13385 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
13386 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
1d1b75ac 13387echo "configure:13388: checking for IceConnectionNumber in -lICE" >&5
90dd450c
VZ
13388ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
13389if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
698dcdb6
VZ
13390 echo $ac_n "(cached) $ac_c" 1>&6
13391else
90dd450c
VZ
13392 ac_save_LIBS="$LIBS"
13393LIBS="-lICE $X_EXTRA_LIBS $LIBS"
13394cat > conftest.$ac_ext <<EOF
1d1b75ac 13395#line 13396 "configure"
9cfadba2 13396#include "confdefs.h"
90dd450c
VZ
13397/* Override any gcc2 internal prototype to avoid an error. */
13398/* We use char because int might match the return type of a gcc2
13399 builtin and then its argument prototype would still apply. */
13400char IceConnectionNumber();
13401
13402int main() {
13403IceConnectionNumber()
13404; return 0; }
698dcdb6 13405EOF
1d1b75ac 13406if { (eval echo configure:13407: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6 13407 rm -rf conftest*
90dd450c 13408 eval "ac_cv_lib_$ac_lib_var=yes"
6232543b 13409else
698dcdb6 13410 echo "configure: failed program was:" >&5
9cfadba2 13411 cat conftest.$ac_ext >&5
698dcdb6 13412 rm -rf conftest*
90dd450c 13413 eval "ac_cv_lib_$ac_lib_var=no"
9cfadba2 13414fi
698dcdb6 13415rm -f conftest*
90dd450c
VZ
13416LIBS="$ac_save_LIBS"
13417
9cfadba2 13418fi
90dd450c 13419if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
698dcdb6 13420 echo "$ac_t""yes" 1>&6
90dd450c 13421 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
698dcdb6
VZ
13422else
13423 echo "$ac_t""no" 1>&6
9cfadba2 13424fi
10f2d63a 13425
90dd450c
VZ
13426 LDFLAGS="$ac_save_LDFLAGS"
13427
13428fi
13429
13430
13431 if test "$no_x" = "yes"; then
13432 { echo "configure: error: X11 not found" 1>&2; exit 1; }
13433 fi
13434
13435 GUI_TK_LIBRARY="$X_LIBS"
13436 TOOLKIT_INCLUDE="$X_CFLAGS"
13437 AFMINSTALL=afminstall
13438 COMPILED_X_PROGRAM=0
13439
21d1c967
GD
13440 if test "$wxUSE_NANOX" = "yes"; then
13441 echo $ac_n "checking for MicroWindows/NanoX distribution""... $ac_c" 1>&6
1d1b75ac 13442echo "configure:13443: checking for MicroWindows/NanoX distribution" >&5
21d1c967
GD
13443 if test "x$MICROWIN" = x ; then
13444 echo "$ac_t""not found" 1>&6
13445 { echo "configure: error: Cannot find MicroWindows library. Make sure MICROWIN is set." 1>&2; exit 1; }
90dd450c 13446 else
21d1c967
GD
13447 echo "$ac_t""$MICROWIN" 1>&6
13448 cat >> confdefs.h <<\EOF
13449#define wxUSE_NANOX 1
698dcdb6 13450EOF
21d1c967 13451
90dd450c
VZ
13452 fi
13453 fi
13454
13455 xpm_link=
13456 echo $ac_n "checking for Xpm library""... $ac_c" 1>&6
1d1b75ac 13457echo "configure:13458: checking for Xpm library" >&5
90dd450c
VZ
13458
13459ac_find_libraries=
13460for ac_dir in $SEARCH_LIB;
13461 do
13462 for ac_extension in a so sl dylib; do
13463 if test -f "$ac_dir/libXpm.$ac_extension"; then
13464 ac_find_libraries=$ac_dir
13465 break 2
13466 fi
13467 done
13468 done
13469
13470 if test "$ac_find_libraries" != "" ; then
13471
13472 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
13473 result=$?
13474 if test $result = 0; then
13475 ac_path_to_link=""
13476 else
13477 ac_path_to_link=" -L$ac_find_libraries"
21d1c967 13478 fi
90dd450c 13479
21d1c967
GD
13480 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
13481 xpm_link=" -lXpm"
13482 cat >> confdefs.h <<\EOF
13483#define wxHAVE_LIB_XPM 1
13484EOF
90dd450c 13485
21d1c967
GD
13486 echo "$ac_t""found at $ac_find_libraries" 1>&6
13487 else
13488 cat > conftest.$ac_ext <<EOF
1d1b75ac 13489#line 13490 "configure"
21d1c967 13490#include "confdefs.h"
90dd450c 13491
21d1c967
GD
13492 #include <X11/xpm.h>
13493
13494int main() {
6f72b082 13495
21d1c967
GD
13496 int version;
13497 version = XpmLibraryVersion();
13498
13499; return 0; }
13500EOF
1d1b75ac 13501if { (eval echo configure:13502: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21d1c967
GD
13502 rm -rf conftest*
13503
13504 xpm_link=" -lXpm"
13505 cat >> confdefs.h <<\EOF
13506#define wxHAVE_LIB_XPM 1
13507EOF
90dd450c 13508
21d1c967
GD
13509 echo "$ac_t""found in default search path" 1>&6
13510 COMPILED_X_PROGRAM=0
13511
13512else
13513 echo "configure: failed program was:" >&5
13514 cat conftest.$ac_ext >&5
13515 rm -rf conftest*
13516
13517 echo "$ac_t""no" 1>&6
13518 echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2
13519
13520
6f72b082 13521fi
21d1c967
GD
13522rm -f conftest*
13523 fi
90dd450c 13524
1d1b75ac
VZ
13525 wxUSE_UNIVERSAL="yes"
13526
21d1c967
GD
13527 if test "$wxUSE_NANOX" = "yes"; then
13528 TOOLKIT_INCLUDE="-I\$(top_srcdir)/include/wx/x11/nanox -I\$(MICROWIN)/src/include $TOOLKIT_INCLUDE"
13529 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"
13530 GUI_TK_LIBRARY="$GUI_TK_LIBRARY \$(MICROWIN)/src/lib/libnano-X.a"
13531 else
13532 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lX11$xpm_link"
13533 fi
6f72b082 13534
21d1c967
GD
13535 TOOLKIT_VPATH="\${top_srcdir}/src/x11"
13536 TOOLKIT=X11
13537 GUIDIST=X11_DIST
13538 fi
90dd450c 13539
21d1c967
GD
13540 if test "$wxUSE_WINE" = 1; then
13541 ac_safe=`echo "windows.h" | sed 'y%./+-%__p_%'`
13542echo $ac_n "checking for windows.h""... $ac_c" 1>&6
1d1b75ac 13543echo "configure:13544: checking for windows.h" >&5
698dcdb6
VZ
13544if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
13545 echo $ac_n "(cached) $ac_c" 1>&6
13546else
13547 cat > conftest.$ac_ext <<EOF
1d1b75ac 13548#line 13549 "configure"
6f72b082 13549#include "confdefs.h"
21d1c967 13550#include <windows.h>
698dcdb6
VZ
13551EOF
13552ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1d1b75ac 13553{ (eval echo configure:13554: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
13554ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13555if test -z "$ac_err"; then
13556 rm -rf conftest*
13557 eval "ac_cv_header_$ac_safe=yes"
10f2d63a 13558else
698dcdb6
VZ
13559 echo "$ac_err" >&5
13560 echo "configure: failed program was:" >&5
10f2d63a 13561 cat conftest.$ac_ext >&5
698dcdb6
VZ
13562 rm -rf conftest*
13563 eval "ac_cv_header_$ac_safe=no"
10f2d63a 13564fi
698dcdb6 13565rm -f conftest*
10f2d63a 13566fi
698dcdb6
VZ
13567if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13568 echo "$ac_t""yes" 1>&6
21d1c967
GD
13569 :
13570else
13571 echo "$ac_t""no" 1>&6
13572
13573 { echo "configure: error: please set CFLAGS to contain the location of windows.h" 1>&2; exit 1; }
13574
13575fi
13576
13577
13578 xpm_link=
13579 echo $ac_n "checking for Xpm library""... $ac_c" 1>&6
1d1b75ac 13580echo "configure:13581: checking for Xpm library" >&5
21d1c967 13581
90dd450c
VZ
13582ac_find_libraries=
13583for ac_dir in $SEARCH_LIB;
13584 do
13585 for ac_extension in a so sl dylib; do
21d1c967 13586 if test -f "$ac_dir/libXpm.$ac_extension"; then
90dd450c
VZ
13587 ac_find_libraries=$ac_dir
13588 break 2
13589 fi
13590 done
13591 done
13592
21d1c967
GD
13593 if test "$ac_find_libraries" != "" ; then
13594 GUI_TK_LIBRARY="-L$ac_find_libraries"
13595 xpm_link=" -lXpm"
13596 cat >> confdefs.h <<\EOF
13597#define wxHAVE_LIB_XPM 1
13598EOF
90dd450c 13599
21d1c967
GD
13600 echo "$ac_t""found at $ac_find_libraries" 1>&6
13601 else
13602 echo "$ac_t""no" 1>&6
13603 echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2
13604 fi
13605
13606 mesa_link=
13607 echo $ac_n "checking for Mesa library""... $ac_c" 1>&6
1d1b75ac 13608echo "configure:13609: checking for Mesa library" >&5
21d1c967 13609
90dd450c
VZ
13610ac_find_libraries=
13611for ac_dir in $SEARCH_LIB;
13612 do
13613 for ac_extension in a so sl dylib; do
13614 if test -f "$ac_dir/libMesaGL.$ac_extension"; then
13615 ac_find_libraries=$ac_dir
13616 break 2
13617 fi
13618 done
13619 done
13620
21d1c967
GD
13621 if test "$ac_find_libraries" != "" ; then
13622 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -L$ac_find_libraries"
13623 mesa_link=" -lMesaGL"
13624 echo "$ac_t""found at $ac_find_libraries" 1>&6
13625 else
13626 { echo "configure: error: no" 1>&2; exit 1; }
13627 fi
13628
13629 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lwine$mesa_link$xpm_link -lXxf86dga -lXxf86vm -lSM -lICE -lXext -lXmu -lX11 -lncurses"
13630 TOOLKIT=MSW
13631 GUIDIST=MSW_DIST
13632 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXWINE__"
13633 fi
13634
13635 if test "$wxUSE_MOTIF" = 1; then
13636 if test "$no_x" = yes; then
13637 # Not all programs may use this symbol, but it does not hurt to define it.
13638 cat >> confdefs.h <<\EOF
13639#define X_DISPLAY_MISSING 1
13640EOF
13641
13642 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
13643else
13644 if test -n "$x_includes"; then
13645 X_CFLAGS="$X_CFLAGS -I$x_includes"
90dd450c
VZ
13646 fi
13647
21d1c967
GD
13648 # It would also be nice to do this for all -L options, not just this one.
13649 if test -n "$x_libraries"; then
13650 X_LIBS="$X_LIBS -L$x_libraries"
13651 # For Solaris; some versions of Sun CC require a space after -R and
13652 # others require no space. Words are not sufficient . . . .
13653 case "`(uname -sr) 2>/dev/null`" in
13654 "SunOS 5"*)
13655 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
1d1b75ac 13656echo "configure:13657: checking whether -R must be followed by a space" >&5
21d1c967
GD
13657 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
13658 cat > conftest.$ac_ext <<EOF
1d1b75ac 13659#line 13660 "configure"
21d1c967
GD
13660#include "confdefs.h"
13661
13662int main() {
13663
13664; return 0; }
13665EOF
1d1b75ac 13666if { (eval echo configure:13667: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21d1c967
GD
13667 rm -rf conftest*
13668 ac_R_nospace=yes
698dcdb6 13669else
21d1c967
GD
13670 echo "configure: failed program was:" >&5
13671 cat conftest.$ac_ext >&5
13672 rm -rf conftest*
13673 ac_R_nospace=no
10f2d63a 13674fi
21d1c967
GD
13675rm -f conftest*
13676 if test $ac_R_nospace = yes; then
13677 echo "$ac_t""no" 1>&6
13678 X_LIBS="$X_LIBS -R$x_libraries"
13679 else
13680 LIBS="$ac_xsave_LIBS -R $x_libraries"
13681 cat > conftest.$ac_ext <<EOF
1d1b75ac 13682#line 13683 "configure"
21d1c967 13683#include "confdefs.h"
10f2d63a 13684
21d1c967 13685int main() {
f0c87536 13686
21d1c967 13687; return 0; }
698dcdb6 13688EOF
1d1b75ac 13689if { (eval echo configure:13690: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21d1c967
GD
13690 rm -rf conftest*
13691 ac_R_space=yes
13692else
13693 echo "configure: failed program was:" >&5
13694 cat conftest.$ac_ext >&5
13695 rm -rf conftest*
13696 ac_R_space=no
13697fi
13698rm -f conftest*
13699 if test $ac_R_space = yes; then
13700 echo "$ac_t""yes" 1>&6
13701 X_LIBS="$X_LIBS -R $x_libraries"
13702 else
13703 echo "$ac_t""neither works" 1>&6
13704 fi
13705 fi
13706 LIBS="$ac_xsave_LIBS"
13707 esac
13708 fi
90dd450c 13709
21d1c967
GD
13710 # Check for system-dependent libraries X programs must link with.
13711 # Do this before checking for the system-independent R6 libraries
13712 # (-lICE), since we may need -lsocket or whatever for X linking.
13713
13714 if test "$ISC" = yes; then
13715 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
13716 else
13717 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
13718 # libraries were built with DECnet support. And karl@cs.umb.edu says
13719 # the Alpha needs dnet_stub (dnet does not exist).
13720 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
1d1b75ac 13721echo "configure:13722: checking for dnet_ntoa in -ldnet" >&5
21d1c967
GD
13722ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
13723if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13724 echo $ac_n "(cached) $ac_c" 1>&6
13725else
13726 ac_save_LIBS="$LIBS"
13727LIBS="-ldnet $LIBS"
13728cat > conftest.$ac_ext <<EOF
1d1b75ac 13729#line 13730 "configure"
21d1c967
GD
13730#include "confdefs.h"
13731/* Override any gcc2 internal prototype to avoid an error. */
13732/* We use char because int might match the return type of a gcc2
13733 builtin and then its argument prototype would still apply. */
13734char dnet_ntoa();
13735
13736int main() {
13737dnet_ntoa()
13738; return 0; }
90dd450c 13739EOF
1d1b75ac 13740if { (eval echo configure:13741: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21d1c967
GD
13741 rm -rf conftest*
13742 eval "ac_cv_lib_$ac_lib_var=yes"
13743else
13744 echo "configure: failed program was:" >&5
13745 cat conftest.$ac_ext >&5
13746 rm -rf conftest*
13747 eval "ac_cv_lib_$ac_lib_var=no"
0fb0dd83 13748fi
21d1c967
GD
13749rm -f conftest*
13750LIBS="$ac_save_LIBS"
90dd450c 13751
0fb0dd83 13752fi
21d1c967
GD
13753if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13754 echo "$ac_t""yes" 1>&6
13755 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
13756else
13757 echo "$ac_t""no" 1>&6
0fb0dd83 13758fi
0fb0dd83 13759
21d1c967
GD
13760 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
13761 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
1d1b75ac 13762echo "configure:13763: checking for dnet_ntoa in -ldnet_stub" >&5
21d1c967
GD
13763ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
13764if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13765 echo $ac_n "(cached) $ac_c" 1>&6
13766else
13767 ac_save_LIBS="$LIBS"
13768LIBS="-ldnet_stub $LIBS"
13769cat > conftest.$ac_ext <<EOF
1d1b75ac 13770#line 13771 "configure"
21d1c967
GD
13771#include "confdefs.h"
13772/* Override any gcc2 internal prototype to avoid an error. */
13773/* We use char because int might match the return type of a gcc2
13774 builtin and then its argument prototype would still apply. */
13775char dnet_ntoa();
90dd450c 13776
21d1c967
GD
13777int main() {
13778dnet_ntoa()
13779; return 0; }
13780EOF
1d1b75ac 13781if { (eval echo configure:13782: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21d1c967
GD
13782 rm -rf conftest*
13783 eval "ac_cv_lib_$ac_lib_var=yes"
13784else
13785 echo "configure: failed program was:" >&5
13786 cat conftest.$ac_ext >&5
13787 rm -rf conftest*
13788 eval "ac_cv_lib_$ac_lib_var=no"
90dd450c 13789fi
21d1c967
GD
13790rm -f conftest*
13791LIBS="$ac_save_LIBS"
90dd450c 13792
21d1c967
GD
13793fi
13794if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13795 echo "$ac_t""yes" 1>&6
13796 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
13797else
13798 echo "$ac_t""no" 1>&6
90dd450c
VZ
13799fi
13800
21d1c967 13801 fi
90dd450c 13802
21d1c967
GD
13803 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
13804 # to get the SysV transport functions.
13805 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
13806 # needs -lnsl.
13807 # The nsl library prevents programs from opening the X display
13808 # on Irix 5.2, according to dickey@clark.net.
13809 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
1d1b75ac 13810echo "configure:13811: checking for gethostbyname" >&5
21d1c967
GD
13811if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
13812 echo $ac_n "(cached) $ac_c" 1>&6
13813else
13814 cat > conftest.$ac_ext <<EOF
1d1b75ac 13815#line 13816 "configure"
21d1c967
GD
13816#include "confdefs.h"
13817/* System header to define __stub macros and hopefully few prototypes,
13818 which can conflict with char gethostbyname(); below. */
13819#include <assert.h>
13820/* Override any gcc2 internal prototype to avoid an error. */
13821/* We use char because int might match the return type of a gcc2
13822 builtin and then its argument prototype would still apply. */
13823char gethostbyname();
90dd450c 13824
21d1c967 13825int main() {
90dd450c 13826
21d1c967
GD
13827/* The GNU C library defines this for functions which it implements
13828 to always fail with ENOSYS. Some functions are actually named
13829 something starting with __ and the normal name is an alias. */
13830#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
13831choke me
13832#else
13833gethostbyname();
13834#endif
90dd450c 13835
21d1c967
GD
13836; return 0; }
13837EOF
1d1b75ac 13838if { (eval echo configure:13839: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21d1c967
GD
13839 rm -rf conftest*
13840 eval "ac_cv_func_gethostbyname=yes"
13841else
13842 echo "configure: failed program was:" >&5
13843 cat conftest.$ac_ext >&5
13844 rm -rf conftest*
13845 eval "ac_cv_func_gethostbyname=no"
13846fi
13847rm -f conftest*
90dd450c
VZ
13848fi
13849
21d1c967
GD
13850if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
13851 echo "$ac_t""yes" 1>&6
13852 :
13853else
13854 echo "$ac_t""no" 1>&6
13855fi
90dd450c 13856
21d1c967
GD
13857 if test $ac_cv_func_gethostbyname = no; then
13858 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
1d1b75ac 13859echo "configure:13860: checking for gethostbyname in -lnsl" >&5
21d1c967
GD
13860ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
13861if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13862 echo $ac_n "(cached) $ac_c" 1>&6
13863else
13864 ac_save_LIBS="$LIBS"
13865LIBS="-lnsl $LIBS"
13866cat > conftest.$ac_ext <<EOF
1d1b75ac 13867#line 13868 "configure"
21d1c967
GD
13868#include "confdefs.h"
13869/* Override any gcc2 internal prototype to avoid an error. */
13870/* We use char because int might match the return type of a gcc2
13871 builtin and then its argument prototype would still apply. */
13872char gethostbyname();
90dd450c 13873
21d1c967
GD
13874int main() {
13875gethostbyname()
13876; return 0; }
13877EOF
1d1b75ac 13878if { (eval echo configure:13879: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21d1c967
GD
13879 rm -rf conftest*
13880 eval "ac_cv_lib_$ac_lib_var=yes"
13881else
13882 echo "configure: failed program was:" >&5
13883 cat conftest.$ac_ext >&5
13884 rm -rf conftest*
13885 eval "ac_cv_lib_$ac_lib_var=no"
1f8ae82f 13886fi
21d1c967
GD
13887rm -f conftest*
13888LIBS="$ac_save_LIBS"
f0c87536 13889
21d1c967
GD
13890fi
13891if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13892 echo "$ac_t""yes" 1>&6
13893 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
13894else
13895 echo "$ac_t""no" 1>&6
13896fi
90dd450c 13897
90dd450c
VZ
13898 fi
13899
21d1c967
GD
13900 # lieder@skyler.mavd.honeywell.com says without -lsocket,
13901 # socket/setsockopt and other routines are undefined under SCO ODT
13902 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
13903 # on later versions), says simon@lia.di.epfl.ch: it contains
13904 # gethostby* variants that don't use the nameserver (or something).
13905 # -lsocket must be given before -lnsl if both are needed.
13906 # We assume that if connect needs -lnsl, so does gethostbyname.
13907 echo $ac_n "checking for connect""... $ac_c" 1>&6
1d1b75ac 13908echo "configure:13909: checking for connect" >&5
21d1c967
GD
13909if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
13910 echo $ac_n "(cached) $ac_c" 1>&6
13911else
13912 cat > conftest.$ac_ext <<EOF
1d1b75ac 13913#line 13914 "configure"
21d1c967
GD
13914#include "confdefs.h"
13915/* System header to define __stub macros and hopefully few prototypes,
13916 which can conflict with char connect(); below. */
13917#include <assert.h>
13918/* Override any gcc2 internal prototype to avoid an error. */
13919/* We use char because int might match the return type of a gcc2
13920 builtin and then its argument prototype would still apply. */
13921char connect();
90dd450c 13922
21d1c967 13923int main() {
90dd450c 13924
21d1c967
GD
13925/* The GNU C library defines this for functions which it implements
13926 to always fail with ENOSYS. Some functions are actually named
13927 something starting with __ and the normal name is an alias. */
13928#if defined (__stub_connect) || defined (__stub___connect)
13929choke me
13930#else
13931connect();
13932#endif
90dd450c 13933
21d1c967
GD
13934; return 0; }
13935EOF
1d1b75ac 13936if { (eval echo configure:13937: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21d1c967
GD
13937 rm -rf conftest*
13938 eval "ac_cv_func_connect=yes"
13939else
13940 echo "configure: failed program was:" >&5
13941 cat conftest.$ac_ext >&5
13942 rm -rf conftest*
13943 eval "ac_cv_func_connect=no"
13944fi
13945rm -f conftest*
13946fi
90dd450c 13947
21d1c967
GD
13948if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
13949 echo "$ac_t""yes" 1>&6
13950 :
13951else
13952 echo "$ac_t""no" 1>&6
13953fi
1f8ae82f 13954
21d1c967
GD
13955 if test $ac_cv_func_connect = no; then
13956 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
1d1b75ac 13957echo "configure:13958: checking for connect in -lsocket" >&5
21d1c967
GD
13958ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
13959if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
0fbb762e
MB
13960 echo $ac_n "(cached) $ac_c" 1>&6
13961else
21d1c967
GD
13962 ac_save_LIBS="$LIBS"
13963LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
13964cat > conftest.$ac_ext <<EOF
1d1b75ac 13965#line 13966 "configure"
0fbb762e 13966#include "confdefs.h"
21d1c967
GD
13967/* Override any gcc2 internal prototype to avoid an error. */
13968/* We use char because int might match the return type of a gcc2
13969 builtin and then its argument prototype would still apply. */
13970char connect();
90dd450c
VZ
13971
13972int main() {
21d1c967 13973connect()
90dd450c 13974; return 0; }
0fbb762e 13975EOF
1d1b75ac 13976if { (eval echo configure:13977: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
0fbb762e 13977 rm -rf conftest*
21d1c967 13978 eval "ac_cv_lib_$ac_lib_var=yes"
0fbb762e 13979else
0fbb762e
MB
13980 echo "configure: failed program was:" >&5
13981 cat conftest.$ac_ext >&5
13982 rm -rf conftest*
21d1c967 13983 eval "ac_cv_lib_$ac_lib_var=no"
0fbb762e
MB
13984fi
13985rm -f conftest*
21d1c967 13986LIBS="$ac_save_LIBS"
90dd450c 13987
21d1c967
GD
13988fi
13989if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13990 echo "$ac_t""yes" 1>&6
13991 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
13992else
13993 echo "$ac_t""no" 1>&6
13994fi
90dd450c 13995
21d1c967 13996 fi
90dd450c 13997
21d1c967
GD
13998 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
13999 echo $ac_n "checking for remove""... $ac_c" 1>&6
1d1b75ac 14000echo "configure:14001: checking for remove" >&5
21d1c967
GD
14001if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
14002 echo $ac_n "(cached) $ac_c" 1>&6
14003else
14004 cat > conftest.$ac_ext <<EOF
1d1b75ac 14005#line 14006 "configure"
21d1c967
GD
14006#include "confdefs.h"
14007/* System header to define __stub macros and hopefully few prototypes,
14008 which can conflict with char remove(); below. */
14009#include <assert.h>
14010/* Override any gcc2 internal prototype to avoid an error. */
14011/* We use char because int might match the return type of a gcc2
14012 builtin and then its argument prototype would still apply. */
14013char remove();
90dd450c 14014
21d1c967 14015int main() {
90dd450c 14016
21d1c967
GD
14017/* The GNU C library defines this for functions which it implements
14018 to always fail with ENOSYS. Some functions are actually named
14019 something starting with __ and the normal name is an alias. */
14020#if defined (__stub_remove) || defined (__stub___remove)
14021choke me
14022#else
14023remove();
14024#endif
90dd450c 14025
21d1c967
GD
14026; return 0; }
14027EOF
1d1b75ac 14028if { (eval echo configure:14029: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21d1c967
GD
14029 rm -rf conftest*
14030 eval "ac_cv_func_remove=yes"
14031else
14032 echo "configure: failed program was:" >&5
14033 cat conftest.$ac_ext >&5
14034 rm -rf conftest*
14035 eval "ac_cv_func_remove=no"
14036fi
14037rm -f conftest*
14038fi
90dd450c 14039
21d1c967
GD
14040if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
14041 echo "$ac_t""yes" 1>&6
14042 :
14043else
14044 echo "$ac_t""no" 1>&6
14045fi
90dd450c 14046
21d1c967
GD
14047 if test $ac_cv_func_remove = no; then
14048 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
1d1b75ac 14049echo "configure:14050: checking for remove in -lposix" >&5
21d1c967
GD
14050ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
14051if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14052 echo $ac_n "(cached) $ac_c" 1>&6
14053else
14054 ac_save_LIBS="$LIBS"
14055LIBS="-lposix $LIBS"
14056cat > conftest.$ac_ext <<EOF
1d1b75ac 14057#line 14058 "configure"
21d1c967
GD
14058#include "confdefs.h"
14059/* Override any gcc2 internal prototype to avoid an error. */
14060/* We use char because int might match the return type of a gcc2
14061 builtin and then its argument prototype would still apply. */
14062char remove();
90dd450c 14063
21d1c967
GD
14064int main() {
14065remove()
14066; return 0; }
14067EOF
1d1b75ac 14068if { (eval echo configure:14069: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21d1c967
GD
14069 rm -rf conftest*
14070 eval "ac_cv_lib_$ac_lib_var=yes"
14071else
14072 echo "configure: failed program was:" >&5
14073 cat conftest.$ac_ext >&5
14074 rm -rf conftest*
14075 eval "ac_cv_lib_$ac_lib_var=no"
0fbb762e 14076fi
21d1c967
GD
14077rm -f conftest*
14078LIBS="$ac_save_LIBS"
0fbb762e 14079
21d1c967
GD
14080fi
14081if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14082 echo "$ac_t""yes" 1>&6
14083 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
14084else
14085 echo "$ac_t""no" 1>&6
14086fi
19bc6aad 14087
90dd450c 14088 fi
19bc6aad 14089
21d1c967
GD
14090 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
14091 echo $ac_n "checking for shmat""... $ac_c" 1>&6
1d1b75ac 14092echo "configure:14093: checking for shmat" >&5
21d1c967
GD
14093if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
14094 echo $ac_n "(cached) $ac_c" 1>&6
14095else
14096 cat > conftest.$ac_ext <<EOF
1d1b75ac 14097#line 14098 "configure"
21d1c967
GD
14098#include "confdefs.h"
14099/* System header to define __stub macros and hopefully few prototypes,
14100 which can conflict with char shmat(); below. */
14101#include <assert.h>
14102/* Override any gcc2 internal prototype to avoid an error. */
14103/* We use char because int might match the return type of a gcc2
14104 builtin and then its argument prototype would still apply. */
14105char shmat();
19bc6aad 14106
21d1c967 14107int main() {
90dd450c 14108
21d1c967
GD
14109/* The GNU C library defines this for functions which it implements
14110 to always fail with ENOSYS. Some functions are actually named
14111 something starting with __ and the normal name is an alias. */
14112#if defined (__stub_shmat) || defined (__stub___shmat)
14113choke me
14114#else
14115shmat();
14116#endif
90dd450c 14117
21d1c967
GD
14118; return 0; }
14119EOF
1d1b75ac 14120if { (eval echo configure:14121: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21d1c967
GD
14121 rm -rf conftest*
14122 eval "ac_cv_func_shmat=yes"
90dd450c 14123else
21d1c967
GD
14124 echo "configure: failed program was:" >&5
14125 cat conftest.$ac_ext >&5
14126 rm -rf conftest*
14127 eval "ac_cv_func_shmat=no"
19bc6aad 14128fi
21d1c967 14129rm -f conftest*
19bc6aad 14130fi
21d1c967
GD
14131
14132if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
14133 echo "$ac_t""yes" 1>&6
14134 :
19bc6aad
VZ
14135else
14136 echo "$ac_t""no" 1>&6
14137fi
19bc6aad 14138
21d1c967
GD
14139 if test $ac_cv_func_shmat = no; then
14140 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
1d1b75ac 14141echo "configure:14142: checking for shmat in -lipc" >&5
21d1c967
GD
14142ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
14143if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9f8148b1
GD
14144 echo $ac_n "(cached) $ac_c" 1>&6
14145else
21d1c967
GD
14146 ac_save_LIBS="$LIBS"
14147LIBS="-lipc $LIBS"
14148cat > conftest.$ac_ext <<EOF
1d1b75ac 14149#line 14150 "configure"
21d1c967
GD
14150#include "confdefs.h"
14151/* Override any gcc2 internal prototype to avoid an error. */
14152/* We use char because int might match the return type of a gcc2
14153 builtin and then its argument prototype would still apply. */
14154char shmat();
14155
14156int main() {
14157shmat()
14158; return 0; }
14159EOF
1d1b75ac 14160if { (eval echo configure:14161: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21d1c967
GD
14161 rm -rf conftest*
14162 eval "ac_cv_lib_$ac_lib_var=yes"
9f8148b1 14163else
21d1c967
GD
14164 echo "configure: failed program was:" >&5
14165 cat conftest.$ac_ext >&5
14166 rm -rf conftest*
14167 eval "ac_cv_lib_$ac_lib_var=no"
9f8148b1 14168fi
21d1c967
GD
14169rm -f conftest*
14170LIBS="$ac_save_LIBS"
14171
9f8148b1 14172fi
21d1c967
GD
14173if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14174 echo "$ac_t""yes" 1>&6
14175 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
9f8148b1
GD
14176else
14177 echo "$ac_t""no" 1>&6
14178fi
90dd450c 14179
90dd450c 14180 fi
21d1c967 14181 fi
10f2d63a 14182
21d1c967
GD
14183 # Check for libraries that X11R6 Xt/Xaw programs need.
14184 ac_save_LDFLAGS="$LDFLAGS"
14185 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
14186 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
14187 # check for ICE first), but we must link in the order -lSM -lICE or
14188 # we get undefined symbols. So assume we have SM if we have ICE.
14189 # These have to be linked with before -lX11, unlike the other
14190 # libraries we check for below, so use a different variable.
14191 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
14192 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
1d1b75ac 14193echo "configure:14194: checking for IceConnectionNumber in -lICE" >&5
21d1c967
GD
14194ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
14195if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
29fd3c0c
VS
14196 echo $ac_n "(cached) $ac_c" 1>&6
14197else
21d1c967
GD
14198 ac_save_LIBS="$LIBS"
14199LIBS="-lICE $X_EXTRA_LIBS $LIBS"
14200cat > conftest.$ac_ext <<EOF
1d1b75ac 14201#line 14202 "configure"
29fd3c0c 14202#include "confdefs.h"
21d1c967
GD
14203/* Override any gcc2 internal prototype to avoid an error. */
14204/* We use char because int might match the return type of a gcc2
14205 builtin and then its argument prototype would still apply. */
14206char IceConnectionNumber();
14207
14208int main() {
14209IceConnectionNumber()
14210; return 0; }
29fd3c0c 14211EOF
1d1b75ac 14212if { (eval echo configure:14213: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
29fd3c0c 14213 rm -rf conftest*
21d1c967 14214 eval "ac_cv_lib_$ac_lib_var=yes"
29fd3c0c 14215else
29fd3c0c
VS
14216 echo "configure: failed program was:" >&5
14217 cat conftest.$ac_ext >&5
14218 rm -rf conftest*
21d1c967 14219 eval "ac_cv_lib_$ac_lib_var=no"
29fd3c0c
VS
14220fi
14221rm -f conftest*
21d1c967
GD
14222LIBS="$ac_save_LIBS"
14223
29fd3c0c 14224fi
21d1c967 14225if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
29fd3c0c 14226 echo "$ac_t""yes" 1>&6
21d1c967 14227 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
29fd3c0c
VS
14228else
14229 echo "$ac_t""no" 1>&6
14230fi
21d1c967
GD
14231
14232 LDFLAGS="$ac_save_LDFLAGS"
29fd3c0c 14233
10f2d63a
VZ
14234fi
14235
21d1c967
GD
14236
14237 if test "$no_x" = "yes"; then
14238 { echo "configure: error: X11 not found" 1>&2; exit 1; }
14239 fi
14240
14241 GUI_TK_LIBRARY="$X_LIBS"
14242 TOOLKIT_INCLUDE="$X_CFLAGS"
14243 AFMINSTALL=afminstall
14244 COMPILED_X_PROGRAM=0
14245
14246 echo $ac_n "checking for Motif/Lesstif headers""... $ac_c" 1>&6
1d1b75ac 14247echo "configure:14248: checking for Motif/Lesstif headers" >&5
21d1c967
GD
14248
14249ac_find_includes=
14250for ac_dir in $SEARCH_INCLUDE;
14251 do
14252 if test -f "$ac_dir/Xm/Xm.h"; then
14253 ac_find_includes=$ac_dir
14254 break
14255 fi
14256 done
14257
14258 if test "$ac_find_includes" != "" ; then
14259 echo "$ac_t""found $ac_find_includes" 1>&6
14260 else
14261 cat > conftest.$ac_ext <<EOF
1d1b75ac 14262#line 14263 "configure"
10f2d63a 14263#include "confdefs.h"
21d1c967
GD
14264
14265 #include <Xm/Xm.h>
14266
14267int main() {
14268
14269 int version;
14270 version = xmUseVersion;
14271
14272; return 0; }
698dcdb6 14273EOF
1d1b75ac 14274if { (eval echo configure:14275: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6 14275 rm -rf conftest*
21d1c967
GD
14276
14277 echo "$ac_t""found in default search path" 1>&6
14278 COMPILED_X_PROGRAM=1
14279
10f2d63a 14280else
90dd450c
VZ
14281 echo "configure: failed program was:" >&5
14282 cat conftest.$ac_ext >&5
698dcdb6 14283 rm -rf conftest*
21d1c967
GD
14284
14285 echo "$ac_t""no" 1>&6
14286 { echo "configure: error: please set CFLAGS to contain the location of Xm/Xm.h" 1>&2; exit 1; }
14287
14288
10f2d63a
VZ
14289fi
14290rm -f conftest*
21d1c967 14291 fi
10f2d63a 14292
21d1c967
GD
14293 if test "$COMPILED_X_PROGRAM" = 0; then
14294 echo $ac_n "checking for Motif/Lesstif library""... $ac_c" 1>&6
1d1b75ac 14295echo "configure:14296: checking for Motif/Lesstif library" >&5
21d1c967
GD
14296
14297ac_find_libraries=
14298for ac_dir in $SEARCH_LIB;
14299 do
14300 for ac_extension in a so sl dylib; do
14301 if test -f "$ac_dir/libXm.$ac_extension"; then
14302 ac_find_libraries=$ac_dir
14303 break 2
14304 fi
14305 done
14306 done
14307
14308 if test "$ac_find_libraries" != "" ; then
14309
14310 ac_path_to_include=$ac_find_includes
14311 echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null
14312 result=$?
14313 if test $result = 0; then
14314 ac_path_to_include=""
14315 else
14316 ac_path_to_include=" -I$ac_find_includes"
14317 fi
14318
14319
14320 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
14321 result=$?
14322 if test $result = 0; then
14323 ac_path_to_link=""
14324 else
14325 ac_path_to_link=" -L$ac_find_libraries"
14326 fi
14327
14328
14329 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
14330 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE$ac_path_to_include"
14331 echo "$ac_t""found at $ac_find_libraries" 1>&6
14332 else
14333 cat > conftest.$ac_ext <<EOF
1d1b75ac 14334#line 14335 "configure"
d836ee96 14335#include "confdefs.h"
21d1c967
GD
14336
14337 #include <Xm/Xm.h>
14338
14339int main() {
14340
14341 int version;
14342 version = xmUseVersion;
14343
14344; return 0; }
d836ee96 14345EOF
1d1b75ac 14346if { (eval echo configure:14347: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d836ee96 14347 rm -rf conftest*
21d1c967
GD
14348
14349 echo "$ac_t""found in default search path" 1>&6
14350 COMPILED_X_PROGRAM=1
14351
d836ee96
VZ
14352else
14353 echo "configure: failed program was:" >&5
14354 cat conftest.$ac_ext >&5
14355 rm -rf conftest*
21d1c967
GD
14356
14357 echo "$ac_t""no" 1>&6
14358 { echo "configure: error: please set LDFLAGS to contain the location of libXm" 1>&2; exit 1; }
14359
14360
d836ee96
VZ
14361fi
14362rm -f conftest*
21d1c967
GD
14363 fi
14364 fi
14365
14366 xpm_link=
14367 echo $ac_n "checking for Xpm library""... $ac_c" 1>&6
1d1b75ac 14368echo "configure:14369: checking for Xpm library" >&5
21d1c967
GD
14369
14370ac_find_libraries=
14371for ac_dir in $SEARCH_LIB;
14372 do
14373 for ac_extension in a so sl dylib; do
14374 if test -f "$ac_dir/libXpm.$ac_extension"; then
14375 ac_find_libraries=$ac_dir
14376 break 2
14377 fi
14378 done
14379 done
14380
14381 if test "$ac_find_libraries" != "" ; then
14382
14383 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
14384 result=$?
14385 if test $result = 0; then
14386 ac_path_to_link=""
14387 else
14388 ac_path_to_link=" -L$ac_find_libraries"
14389 fi
14390
14391 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
14392 xpm_link=" -lXpm"
14393 cat >> confdefs.h <<\EOF
14394#define wxHAVE_LIB_XPM 1
d836ee96 14395EOF
90dd450c 14396
21d1c967
GD
14397 echo "$ac_t""found at $ac_find_libraries" 1>&6
14398 else
14399 cat > conftest.$ac_ext <<EOF
1d1b75ac 14400#line 14401 "configure"
d836ee96 14401#include "confdefs.h"
21d1c967
GD
14402
14403 #include <X11/xpm.h>
14404
14405int main() {
14406
14407 int version;
14408 version = XpmLibraryVersion();
14409
14410; return 0; }
d836ee96 14411EOF
1d1b75ac 14412if { (eval echo configure:14413: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d836ee96 14413 rm -rf conftest*
21d1c967
GD
14414
14415 xpm_link=" -lXpm"
14416 cat >> confdefs.h <<\EOF
14417#define wxHAVE_LIB_XPM 1
14418EOF
14419
14420 echo "$ac_t""found in default search path" 1>&6
14421 COMPILED_X_PROGRAM=0
14422
d836ee96
VZ
14423else
14424 echo "configure: failed program was:" >&5
14425 cat conftest.$ac_ext >&5
14426 rm -rf conftest*
21d1c967
GD
14427
14428 echo "$ac_t""no" 1>&6
14429 echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2
14430
14431
d836ee96
VZ
14432fi
14433rm -f conftest*
21d1c967
GD
14434 fi
14435
14436 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXm$xpm_link -lXmu -lXext -lXt -lX11"
14437 TOOLKIT_VPATH="\${top_srcdir}/src/motif${PATH_IFS}\${top_srcdir}/src/motif/xmcombo"
14438 TOOLKIT=MOTIF
14439 GUIDIST=MOTIF_DIST
14440 fi
14441
14442 if test "$wxUSE_MAC" = 1; then
14443 if test "$wxUSE_PRECOMP" = "yes"; then
14444 CPPFLAGS="$CPPFLAGS -cpp-precomp"
14445 else
14446 CPPFLAGS="$CPPFLAGS -no-cpp-precomp"
14447 fi
14448 CPPFLAGS="$CPPFLAGS -I/Developer/Headers/FlatCarbon -I\${top_srcdir}/src/mac/morefile"
14449 CFLAGS="$CFLAGS -fpascal-strings"
14450 CXXFLAGS="$CXXFLAGS -fpascal-strings"
14451
14452 TOOLKIT_VPATH="\${top_srcdir}/src/mac${PATH_IFS}\${top_srcdir}/src/mac/morefile"
14453 TOOLKIT=MAC
14454 GUIDIST=MACX_DIST
14455 fi
14456
14457 if test "$wxUSE_PM" = 1; then
14458 TOOLKIT=PM
14459 GUIDIST=GTK_DIST
14460 fi
14461
14462 if test "$TOOLKIT" = "PM" ; then
14463 TOOLKIT_DIR="os2"
14464 else
14465 TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"`
14466 fi
14467
14468 PORT_FILES="\${top_srcdir}/src/\$(TOOLKITDIR)/files.lst"
14469
14470 if test "$wxUSE_UNIVERSAL" = "yes"; then
14471 ALL_OBJECTS="\$(GUI_LOWLEVEL_OBJS) \${UNIVOBJS}"
14472
14473 ALL_SOURCES="\$(ALL_SOURCES) \${UNIV_SOURCES}"
14474 ALL_HEADERS="\$(ALL_HEADERS) \${UNIV_HEADERS}"
14475
14476 PORT_FILES="${PORT_FILES} \${top_srcdir}/src/univ/files.lst"
14477 if test "$wxUSE_X11" = 1; then
14478 TOOLKIT_VPATH="\${top_srcdir}/src/${TOOLKIT_DIR}${PATH_IFS}\${top_srcdir}/src/univ${PATH_IFS}\${top_srcdir}/src/univ/themes"
14479 else
14480 TOOLKIT_VPATH="\${top_srcdir}/src/univ${PATH_IFS}\${top_srcdir}/src/univ/themes${PATH_IFS}\${top_srcdir}/src/${TOOLKIT_DIR}"
14481 fi
14482 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__"
14483 WIDGET_SET=univ
14484 else
14485 ALL_OBJECTS="\$(GUIOBJS)"
14486 ALL_SOURCES="\$(ALL_SOURCES)"
14487 ALL_HEADERS="\$(ALL_HEADERS)"
14488 fi
14489
14490 ALL_OBJECTS="${ALL_OBJECTS} \$(COMMONOBJS) \$(GENERICOBJS)"
14491
14492 if test "$TOOLKIT" != "MSW" -a "$USE_DOS" != 1; then
14493 ALL_OBJECTS="${ALL_OBJECTS} \$(UNIXOBJS)"
14494 fi
14495
14496 if test "$wxUSE_HTML" = "yes"; then
14497 ALL_OBJECTS="${ALL_OBJECTS} \$(HTMLOBJS)"
14498 fi
14499
14500 if test "$wxUSE_LIBJPEG" = "builtin" ; then
14501 ALL_OBJECTS="${ALL_OBJECTS} \$(JPEGOBJS)"
14502 fi
14503 if test "$wxUSE_LIBTIFF" = "builtin" ; then
14504 ALL_OBJECTS="${ALL_OBJECTS} \$(TIFFOBJS)"
14505 fi
14506 if test "$wxUSE_LIBPNG" = "builtin" ; then
14507 ALL_OBJECTS="${ALL_OBJECTS} \$(PNGOBJS)"
14508 fi
14509
14510 GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST"
14511 DISTDIR="wx\$(TOOLKIT)"
90dd450c 14512else
21d1c967
GD
14513 USE_GUI=0
14514
14515 TOOLKIT_DIR="base"
14516
14517 if test "$USE_WIN32" = 1 ; then
14518 ALL_OBJECTS="\${BASE_OBJS} \${BASE_MSW_OBJS}"
14519 TOOLKIT_VPATH="\${top_srcdir}/src/msw"
14520
14521 TOOLKIT="MSW"
14522 else
14523 ALL_OBJECTS="\${BASE_OBJS} \${BASE_UNIX_OBJS}"
14524 TOOLKIT_VPATH="\${top_srcdir}/src/unix"
14525 fi
14526
14527 ALL_SOURCES="\$(ALL_SOURCES)"
14528 ALL_HEADERS="\$(ALL_HEADERS)"
14529
14530 PORT_FILES="\${top_srcdir}/src/files.lst"
14531
14532 GUIDIST="BASE_DIST"
14533 DISTDIR="wxBase"
d836ee96
VZ
14534fi
14535
21d1c967
GD
14536
14537if test "$TOOLKIT" != "MSW" -a "$wxUSE_ODBC" = "yes" ; then
14538 ALL_OBJECTS="${ALL_OBJECTS} \$(IODBCOBJS)"
6232543b 14539fi
21d1c967
GD
14540
14541if test "$wxUSE_REGEX" = "builtin" ; then
14542 ALL_OBJECTS="${ALL_OBJECTS} \$(REGEXOBJS)"
1e487827 14543fi
21d1c967
GD
14544if test "$wxUSE_ZLIB" = "builtin" ; then
14545 ALL_OBJECTS="${ALL_OBJECTS} \$(ZLIBOBJS)"
bd3277fe
VZ
14546fi
14547
698dcdb6 14548
21d1c967
GD
14549if test "$wxUSE_OPENGL" = "yes"; then
14550 if test "$wxUSE_MAC" = 1; then
14551 OPENGL_LIBS="-framework OpenGL -framework AGL"
14552 elif test "$wxUSE_MSW" = 1; then
14553 OPENGL_LIBS="-lopengl32 -lglu32"
14554 else
14555 ac_safe=`echo "GL/gl.h" | sed 'y%./+-%__p_%'`
14556echo $ac_n "checking for GL/gl.h""... $ac_c" 1>&6
1d1b75ac 14557echo "configure:14558: checking for GL/gl.h" >&5
90dd450c 14558if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
698dcdb6 14559 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 14560else
698dcdb6 14561 cat > conftest.$ac_ext <<EOF
1d1b75ac 14562#line 14563 "configure"
10f2d63a 14563#include "confdefs.h"
21d1c967 14564#include <GL/gl.h>
698dcdb6 14565EOF
90dd450c 14566ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1d1b75ac 14567{ (eval echo configure:14568: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
90dd450c
VZ
14568ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
14569if test -z "$ac_err"; then
4f14bcd8 14570 rm -rf conftest*
90dd450c 14571 eval "ac_cv_header_$ac_safe=yes"
698dcdb6 14572else
90dd450c 14573 echo "$ac_err" >&5
698dcdb6
VZ
14574 echo "configure: failed program was:" >&5
14575 cat conftest.$ac_ext >&5
4f14bcd8 14576 rm -rf conftest*
90dd450c 14577 eval "ac_cv_header_$ac_safe=no"
703e0a69 14578fi
4f14bcd8 14579rm -f conftest*
698dcdb6 14580fi
90dd450c
VZ
14581if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
14582 echo "$ac_t""yes" 1>&6
21d1c967
GD
14583
14584 echo $ac_n "checking for -lGL""... $ac_c" 1>&6
1d1b75ac 14585echo "configure:14586: checking for -lGL" >&5
21d1c967
GD
14586
14587ac_find_libraries=
14588for ac_dir in $SEARCH_LIB;
14589 do
14590 for ac_extension in a so sl dylib; do
14591 if test -f "$ac_dir/libGL.$ac_extension"; then
14592 ac_find_libraries=$ac_dir
14593 break 2
14594 fi
14595 done
14596 done
14597
14598 if test "$ac_find_libraries" != "" ; then
14599
14600 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
14601 result=$?
14602 if test $result = 0; then
14603 ac_path_to_link=""
14604 else
14605 ac_path_to_link=" -L$ac_find_libraries"
14606 fi
14607
14608 if test "$ac_path_to_link" = " -L/usr/lib" ; then
14609 LDFLAGS_GL="$LDFLAGS"
14610 else
14611 LDFLAGS_GL="$LDFLAGS$ac_path_to_link"
14612 fi
14613 OPENGL_LIBS="-lGL -lGLU"
14614 echo "$ac_t""yes" 1>&6
14615 else
14616 echo "$ac_t""no" 1>&6
14617 echo $ac_n "checking for -lMesaGL""... $ac_c" 1>&6
1d1b75ac 14618echo "configure:14619: checking for -lMesaGL" >&5
21d1c967
GD
14619
14620ac_find_libraries=
14621for ac_dir in $SEARCH_LIB;
14622 do
14623 for ac_extension in a so sl dylib; do
14624 if test -f "$ac_dir/libMesaGL.$ac_extension"; then
14625 ac_find_libraries=$ac_dir
14626 break 2
14627 fi
14628 done
14629 done
14630
14631 if test "$ac_find_libraries" != "" ; then
14632
14633 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
14634 result=$?
14635 if test $result = 0; then
14636 ac_path_to_link=""
14637 else
14638 ac_path_to_link=" -L$ac_find_libraries"
14639 fi
14640
14641 LDFLAGS_GL="$LDFLAGS$ac_path_to_link"
14642 OPENGL_LIBS="-lMesaGL -lMesaGLU"
14643 echo "$ac_t""yes" 1>&6
14644 else
14645 echo "$ac_t""no" 1>&6
14646 fi
14647 fi
14648
90dd450c
VZ
14649else
14650 echo "$ac_t""no" 1>&6
14651fi
698dcdb6
VZ
14652
14653
21d1c967
GD
14654 if test "x$OPENGL_LIBS" = "x"; then
14655 { echo "configure: error: OpenGL libraries not available" 1>&2; exit 1; }
14656 fi
14657 fi
90dd450c 14658
21d1c967
GD
14659 if test "$wxUSE_OPENGL" = "yes"; then
14660 cat >> confdefs.h <<\EOF
14661#define wxUSE_OPENGL 1
698dcdb6 14662EOF
21d1c967
GD
14663
14664 cat >> confdefs.h <<\EOF
14665#define wxUSE_GLCANVAS 1
14666EOF
14667
14668 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl"
14669 fi
10f2d63a 14670fi
21d1c967
GD
14671
14672if test -z "$TOOLKIT_VPATH" ; then
14673 TOOLKIT_VPATH="\${top_srcdir}/src/${TOOLKIT_DIR}"
10f2d63a 14674fi
21d1c967
GD
14675
14676if test -n "$TOOLKIT" ; then
14677 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WX${TOOLKIT}__"
14678fi
14679
14680lib_unicode_suffix=
14681if test "$wxUSE_UNICODE" = "yes"; then
14682 lib_unicode_suffix=u
90dd450c 14683fi
698dcdb6 14684
21d1c967
GD
14685lib_debug_suffix=
14686if test "$wxUSE_DEBUG_FLAG" = "yes"; then
14687 lib_debug_suffix=d
14688fi
698dcdb6 14689
21d1c967
GD
14690TOOLCHAIN_NAME="${TOOLKIT_DIR}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}-${WX_RELEASE}"
14691TOOLCHAIN_NAME_GL="${TOOLKIT_DIR}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}_gl-${WX_RELEASE}"
14692
14693if test "$cross_compiling" = "yes"; then
14694 TOOLCHAIN_NAME="${TOOLCHAIN_NAME}-${host_alias}"
14695 TOOLCHAIN_NAME_GL="${TOOLCHAIN_NAME_GL}-${host_alias}"
14696fi
14697
14698WX_LIBRARY="wx_${TOOLCHAIN_NAME}"
14699WX_LIBRARY_GL="wx_${TOOLCHAIN_NAME_GL}"
14700
14701WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
14702WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
14703
14704WX_LIBRARY_LINK1="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}"
14705WX_LIBRARY_LINK2="lib${WX_LIBRARY}.${SO_SUFFIX}"
14706WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}"
14707WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}"
14708
14709case "${host}" in
14710 *-*-cygwin* | *-*-mingw32* )
14711
14712
14713
14714 if test "$cross_compiling" != "yes"; then
14715 WX_LIBRARY="wxmsw${WX_MSW_VERSION}${lib_unicode_suffix}${lib_debug_suffix}"
14716 WX_LIBRARY_GL="wxmsw_gl${WX_MSW_VERSION}${lib_unicode_suffix}${lib_debug_suffix}"
14717 WX_LIBRARY_NAME_SHARED="${WX_LIBRARY}.${SO_SUFFIX}"
14718 WX_LIBRARY_NAME_SHARED_GL="${WX_LIBRARY_GL}.${SO_SUFFIX}"
14719 else
14720 WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${SO_SUFFIX}"
14721 WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}"
14722 fi
14723 ;;
14724
14725 *-*-darwin* )
14726 if test "$wxUSE_MAC" = 1; then
14727 WX_RESOURCES_MACOSX_ASCII="lib${WX_LIBRARY}.r"
14728 WX_RESOURCES_MACOSX_DATA="lib${WX_LIBRARY}.rsrc"
14729 fi
14730 ;;
14731esac
14732
14733WX_LIBRARY_NAME_STATIC="lib${WX_LIBRARY}.a"
14734WX_LIBRARY_NAME_STATIC_GL="lib${WX_LIBRARY_GL}.a"
14735
14736WXCONFIG_LIBS="-l${WX_LIBRARY}"
14737WXCONFIG_LIBS_STATIC="lib${WX_LIBRARY}.a"
14738
14739if test "$wxUSE_OPENGL" = "yes"; then
14740 WXCONFIG_LIBS_GL="-l${WX_LIBRARY_GL} ${OPENGL_LIBS}"
14741 WXCONFIG_LIBS_STATIC_GL="lib${WX_LIBRARY_GL}.a ${OPENGL_LIBS}"
14742fi
14743
14744
14745
14746if test "$wxUSE_SHARED" = "yes"; then
14747 case "${host}" in
14748 *-pc-os2_emx | *-pc-os2-emx | \
14749 *-pc-msdosdjgpp )
14750 wxUSE_SHARED=no
14751 echo "configure: warning: Host system doesn't support shared libraries, disabling" 1>&2
14752 ;;
14753 esac
14754fi
14755
14756if test "$wxUSE_SHARED" = "yes"; then
14757
14758 if test "$wxUSE_OPENGL" = "yes"; then
14759 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL"
14760 WX_ALL="\$(build_libdir)/${WX_LIBRARY_LINK1} \$(build_libdir)/${WX_LIBRARY_LINK1_GL}"
14761 else
14762 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
14763 WX_ALL="\$(build_libdir)/${WX_LIBRARY_LINK1}"
14764 fi
14765
14766 if test "$GCC" = "yes"; then
14767 PIC_FLAG="-fPIC"
14768 fi
14769
14770 SHARED_LD="${CXX} -shared -o"
14771
14772 case "${host}" in
14773 *-hp-hpux* )
14774 if test "$GCC" == "yes"; then
14775 SHARED_LD="${SHARED_LD} ${PIC_FLAG}"
14776 else
14777 LDFLAGS="$LDFLAGS -L/usr/lib"
14778
14779 SHARED_LD="${CXX} -b -o"
14780 PIC_FLAG="+Z"
14781 fi
14782
14783 if test "$wxUSE_OPENGL" = "yes"; then
14784 WX_ALL_INSTALLED="preinstall_gl"
14785 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED} \$(build_libdir)/${WX_LIBRARY_NAME_SHARED_GL}"
14786 else
14787 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED}"
14788 fi
14789 ;;
14790
14791 *-*-linux* )
14792 if test "$GCC" != "yes"; then
14793 echo $ac_n "checking for Intel compiler""... $ac_c" 1>&6
1d1b75ac 14794echo "configure:14795: checking for Intel compiler" >&5
21d1c967 14795if eval "test \"`echo '$''{'wx_cv_prog_icc'+set}'`\" = set"; then
698dcdb6 14796 echo $ac_n "(cached) $ac_c" 1>&6
698dcdb6 14797else
21d1c967
GD
14798
14799 cat > conftest.$ac_ext <<EOF
1d1b75ac 14800#line 14801 "configure"
698dcdb6 14801#include "confdefs.h"
90dd450c
VZ
14802
14803int main() {
14804
21d1c967
GD
14805 #ifndef __INTEL_COMPILER
14806 #error Not icc
14807 #endif
14808
90dd450c 14809; return 0; }
698dcdb6 14810EOF
1d1b75ac 14811if { (eval echo configure:14812: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
90dd450c 14812 rm -rf conftest*
21d1c967 14813 wx_cv_prog_icc=yes
6232543b 14814else
698dcdb6
VZ
14815 echo "configure: failed program was:" >&5
14816 cat conftest.$ac_ext >&5
90dd450c 14817 rm -rf conftest*
21d1c967
GD
14818 wx_cv_prog_icc=no
14819
6232543b 14820fi
90dd450c 14821rm -f conftest*
21d1c967 14822
698dcdb6
VZ
14823fi
14824
21d1c967
GD
14825echo "$ac_t""$wx_cv_prog_icc" 1>&6
14826 if test "$wx_cv_prog_icc" = "yes"; then
14827 PIC_FLAG="-KPIC"
14828 fi
14829 fi
14830
14831 if test "$wxUSE_SONAME" = "yes" ; then
14832 SONAME_FLAGS="-Wl,-soname,${WX_LIBRARY_LINK1}"
14833 SONAME_FLAGS_GL="-Wl,-soname,${WX_LIBRARY_LINK1_GL}"
14834 WX_TARGET_LIBRARY_SONAME="-Wl,-soname,\$(TARGETLIB_LINK1)"
14835 fi
14836 ;;
14837
14838 *-*-solaris2* )
14839 if test "$GCC" = yes ; then
14840 CPPFLAGS="$CPPFLAGS -isystem /usr/openwin/include"
14841 else
14842 SHARED_LD="${CXX} -G -o"
14843 PIC_FLAG="-KPIC"
14844 SONAME_FLAGS="-h ${WX_LIBRARY_NAME_SHARED}"
14845 SONAME_FLAGS_GL="-h ${WX_LIBRARY_NAME_SHARED_GL}"
14846 fi
14847 ;;
14848
14849 *-*-darwin* )
14850 CFLAGS="$CFLAGS -fno-common -DWXMAKINGDLL"
14851 CXXFLAGS="$CXXFLAGS -fno-common -DWXMAKINGDLL"
14852 SHARED_LD="\${top_srcdir}/distrib/mac/shared-ld-sh -undefined suppress -flat_namespace -o"
14853 PIC_FLAG="-dynamic -fPIC"
14854 SONAME_FLAGS="-compatibility_version ${WX_RELEASE} -current_version ${WX_VERSION}"
14855 SONAME_FLAGS_GL=${SONAME_FLAGS}
14856 ;;
14857
14858 *-*-aix* )
321d2b14
VZ
14859 # Extract the first word of "makeC++SharedLib", so it can be a program name with args.
14860set dummy makeC++SharedLib; ac_word=$2
14861echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1d1b75ac 14862echo "configure:14863: checking for $ac_word" >&5
321d2b14
VZ
14863if eval "test \"`echo '$''{'ac_cv_prog_AIX_CXX_LD'+set}'`\" = set"; then
14864 echo $ac_n "(cached) $ac_c" 1>&6
14865else
14866 if test -n "$AIX_CXX_LD"; then
14867 ac_cv_prog_AIX_CXX_LD="$AIX_CXX_LD" # Let the user override the test.
14868else
14869 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
14870 ac_dummy="$PATH"
14871 for ac_dir in $ac_dummy; do
14872 test -z "$ac_dir" && ac_dir=.
14873 if test -f $ac_dir/$ac_word; then
14874 ac_cv_prog_AIX_CXX_LD="makeC++SharedLib"
14875 break
14876 fi
14877 done
14878 IFS="$ac_save_ifs"
14879 test -z "$ac_cv_prog_AIX_CXX_LD" && ac_cv_prog_AIX_CXX_LD="/usr/lpp/xlC/bin/makeC++SharedLib"
14880fi
14881fi
14882AIX_CXX_LD="$ac_cv_prog_AIX_CXX_LD"
14883if test -n "$AIX_CXX_LD"; then
14884 echo "$ac_t""$AIX_CXX_LD" 1>&6
14885else
14886 echo "$ac_t""no" 1>&6
14887fi
14888
14889
14890 SHARED_LD="$(AIX_CXX_LD) -p 0 -o"
21d1c967
GD
14891 ;;
14892
14893 *-*-cygwin* | *-*-mingw32* )
14894
14895 WX_LIBRARY_IMPORTLIB="${WX_LIBRARY_NAME_SHARED}.a"
14896
14897 SHARED_LD="${CXX} -shared -Wl,--out-implib,lib/${WX_LIBRARY_IMPORTLIB} -o"
14898 TOOLCHAIN_DLL_DEFS="${TOOLCHAIN_DLL_DEFS} -DWXUSINGDLL=1"
14899
14900 PIC_FLAG="-UWXUSINGDLL -DWXMAKINGDLL=1 -D_DLL=1 -D_WINDLL=1"
14901
14902 if test "$wxUSE_OPENGL" = "yes"; then
14903 WX_ALL_INSTALLED="preinstall_gl"
14904 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED} \$(build_libdir)/${WX_LIBRARY_NAME_SHARED_GL}"
14905 else
14906 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED}"
14907 fi
14908 ;;
14909
14910 *-*-beos* )
14911 SHARED_LD="${LD} -shared -o"
14912 ;;
14913
14914 *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | \
14915 *-*-sunos4* | \
14916 *-*-irix5* | *-*-irix6* | \
14917 *-*-osf* | \
14918 *-*-dgux5* | \
14919 *-*-sysv5* )
14920 ;;
14921
14922 *)
14923 { echo "configure: error: unknown system type $host." 1>&2; exit 1; }
14924 esac
14925
14926 if test "x$WX_TARGET_LIBRARY" = "x"; then
14927 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_SHARED}"
14928 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_SHARED_GL}"
14929 fi
14930
14931 WX_TARGET_LIBRARY_TYPE="so"
14932 INSTALL_LIBRARY='$(INSTALL_PROGRAM)'
90dd450c 14933fi
10f2d63a 14934
21d1c967
GD
14935if test "$wxUSE_SHARED" = "no"; then
14936
14937 if test "$wxUSE_GUI" = "no" -o "$USE_WIN32" = 1 ; then
14938 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall"
14939 fi
14940
14941 if test "$wxUSE_MAC" = 1; then
14942 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall"
14943 fi
14944
14945 if test "$wxUSE_OPENGL" = "yes"; then
14946 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall_gl"
14947 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC} \$(build_libdir)/${WX_LIBRARY_NAME_STATIC_GL}"
14948 else
14949 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC}"
14950 fi
14951
14952 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}"
14953 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_STATIC_GL}"
14954
14955 WX_TARGET_LIBRARY_TYPE="a"
14956 INSTALL_LIBRARY='$(INSTALL_DATA)'
90dd450c 14957fi
1e487827 14958
21d1c967
GD
14959if test "$wxUSE_MAC" = 1; then
14960 LIBWXMACRES="\$(top_builddir)/lib/${WX_RESOURCES_MACOSX_ASCII}"
14961 WX_ALL="${WX_ALL} ${LIBWXMACRES}"
14962 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall_res"
14963 # Extract the first word of "Rez", so it can be a program name with args.
14964set dummy Rez; ac_word=$2
14965echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1d1b75ac 14966echo "configure:14967: checking for $ac_word" >&5
21d1c967 14967if eval "test \"`echo '$''{'ac_cv_prog_RESCOMP'+set}'`\" = set"; then
698dcdb6 14968 echo $ac_n "(cached) $ac_c" 1>&6
b93d0d08 14969else
21d1c967
GD
14970 if test -n "$RESCOMP"; then
14971 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
b93d0d08 14972else
21d1c967
GD
14973 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
14974 ac_dummy="$PATH"
14975 for ac_dir in $ac_dummy; do
14976 test -z "$ac_dir" && ac_dir=.
14977 if test -f $ac_dir/$ac_word; then
14978 ac_cv_prog_RESCOMP="Rez"
14979 break
14980 fi
14981 done
14982 IFS="$ac_save_ifs"
14983 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez"
b93d0d08 14984fi
b93d0d08 14985fi
21d1c967
GD
14986RESCOMP="$ac_cv_prog_RESCOMP"
14987if test -n "$RESCOMP"; then
14988 echo "$ac_t""$RESCOMP" 1>&6
90dd450c
VZ
14989else
14990 echo "$ac_t""no" 1>&6
14991fi
b93d0d08 14992
21d1c967
GD
14993 # Extract the first word of "DeRez", so it can be a program name with args.
14994set dummy DeRez; ac_word=$2
14995echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1d1b75ac 14996echo "configure:14997: checking for $ac_word" >&5
21d1c967 14997if eval "test \"`echo '$''{'ac_cv_prog_DEREZ'+set}'`\" = set"; then
698dcdb6 14998 echo $ac_n "(cached) $ac_c" 1>&6
3a922bb4 14999else
21d1c967
GD
15000 if test -n "$DEREZ"; then
15001 ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test.
4f14bcd8 15002else
21d1c967
GD
15003 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
15004 ac_dummy="$PATH"
15005 for ac_dir in $ac_dummy; do
15006 test -z "$ac_dir" && ac_dir=.
15007 if test -f $ac_dir/$ac_word; then
15008 ac_cv_prog_DEREZ="DeRez"
15009 break
15010 fi
15011 done
15012 IFS="$ac_save_ifs"
15013 test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/DeRez"
3a922bb4 15014fi
90dd450c 15015fi
21d1c967
GD
15016DEREZ="$ac_cv_prog_DEREZ"
15017if test -n "$DEREZ"; then
15018 echo "$ac_t""$DEREZ" 1>&6
90dd450c
VZ
15019else
15020 echo "$ac_t""no" 1>&6
3a922bb4 15021fi
698dcdb6 15022
21d1c967
GD
15023 MACOSX_BUNDLE="bundle"
15024 if test "$wxUSE_SHARED" = "yes"; then
15025 LIBWXMACRESCOMP="\$(RESCOMP) -t APPL Carbon.r -o \$(BIN_PROGRAM)"
15026 LIBWXMACRESWXCONFIG="${RESCOMP} -t APPL Carbon.r -o"
15027 else
15028 LIBWXMACRESCOMP="\$(RESCOMP) -t APPL Carbon.r ${LIBWXMACRES} -o \$(BIN_PROGRAM)"
15029 LIBWXMACRESWXCONFIG="${RESCOMP} -t APPL Carbon.r \${prefix}/lib/${WX_RESOURCES_MACOSX_ASCII} -o"
15030 fi
15031else
15032 if test "$wxUSE_PM" = 1; then
15033 LIBWXMACRESCOMP="emxbind -ep \$(BIN_PROGRAM)"
90dd450c 15034 fi
4f14bcd8 15035fi
10f2d63a 15036
703e0a69 15037
90dd450c 15038echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1d1b75ac 15039echo "configure:15040: checking for ANSI C header files" >&5
90dd450c 15040if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
698dcdb6
VZ
15041 echo $ac_n "(cached) $ac_c" 1>&6
15042else
15043 cat > conftest.$ac_ext <<EOF
1d1b75ac 15044#line 15045 "configure"
10f2d63a 15045#include "confdefs.h"
90dd450c
VZ
15046#include <stdlib.h>
15047#include <stdarg.h>
15048#include <string.h>
15049#include <float.h>
698dcdb6 15050EOF
90dd450c 15051ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1d1b75ac 15052{ (eval echo configure:15053: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
90dd450c
VZ
15053ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15054if test -z "$ac_err"; then
15055 rm -rf conftest*
15056 ac_cv_header_stdc=yes
10f2d63a 15057else
90dd450c 15058 echo "$ac_err" >&5
698dcdb6 15059 echo "configure: failed program was:" >&5
10f2d63a 15060 cat conftest.$ac_ext >&5
90dd450c
VZ
15061 rm -rf conftest*
15062 ac_cv_header_stdc=no
10f2d63a 15063fi
90dd450c
VZ
15064rm -f conftest*
15065
15066if test $ac_cv_header_stdc = yes; then
15067 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
15068cat > conftest.$ac_ext <<EOF
1d1b75ac 15069#line 15070 "configure"
90dd450c
VZ
15070#include "confdefs.h"
15071#include <string.h>
15072EOF
15073if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15074 egrep "memchr" >/dev/null 2>&1; then
15075 :
15076else
15077 rm -rf conftest*
15078 ac_cv_header_stdc=no
10f2d63a 15079fi
90dd450c 15080rm -f conftest*
10f2d63a 15081
4f14bcd8 15082fi
90dd450c
VZ
15083
15084if test $ac_cv_header_stdc = yes; then
15085 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
15086cat > conftest.$ac_ext <<EOF
1d1b75ac 15087#line 15088 "configure"
90dd450c
VZ
15088#include "confdefs.h"
15089#include <stdlib.h>
10f2d63a 15090EOF
90dd450c
VZ
15091if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15092 egrep "free" >/dev/null 2>&1; then
15093 :
15094else
15095 rm -rf conftest*
15096 ac_cv_header_stdc=no
15097fi
15098rm -f conftest*
10f2d63a 15099
90dd450c 15100fi
698dcdb6 15101
90dd450c
VZ
15102if test $ac_cv_header_stdc = yes; then
15103 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
15104if test "$cross_compiling" = yes; then
15105 :
4f14bcd8
GD
15106else
15107 cat > conftest.$ac_ext <<EOF
1d1b75ac 15108#line 15109 "configure"
10f2d63a 15109#include "confdefs.h"
90dd450c
VZ
15110#include <ctype.h>
15111#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
15112#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
15113#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
15114int main () { int i; for (i = 0; i < 256; i++)
15115if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
15116exit (0); }
15117
698dcdb6 15118EOF
1d1b75ac 15119if { (eval echo configure:15120: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4f14bcd8 15120then
90dd450c 15121 :
10f2d63a 15122else
698dcdb6
VZ
15123 echo "configure: failed program was:" >&5
15124 cat conftest.$ac_ext >&5
4f14bcd8 15125 rm -fr conftest*
90dd450c 15126 ac_cv_header_stdc=no
10f2d63a 15127fi
4f14bcd8 15128rm -fr conftest*
10f2d63a 15129fi
698dcdb6 15130
4f14bcd8 15131fi
90dd450c 15132fi
10f2d63a 15133
90dd450c
VZ
15134echo "$ac_t""$ac_cv_header_stdc" 1>&6
15135if test $ac_cv_header_stdc = yes; then
15136 cat >> confdefs.h <<\EOF
15137#define STDC_HEADERS 1
15138EOF
698dcdb6 15139
90dd450c 15140fi
9d353d4a 15141
90dd450c 15142echo $ac_n "checking for mode_t""... $ac_c" 1>&6
1d1b75ac 15143echo "configure:15144: checking for mode_t" >&5
90dd450c 15144if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
9d353d4a 15145 echo $ac_n "(cached) $ac_c" 1>&6
9d353d4a
RR
15146else
15147 cat > conftest.$ac_ext <<EOF
1d1b75ac 15148#line 15149 "configure"
9d353d4a 15149#include "confdefs.h"
90dd450c
VZ
15150#include <sys/types.h>
15151#if STDC_HEADERS
15152#include <stdlib.h>
15153#include <stddef.h>
15154#endif
9d353d4a 15155EOF
90dd450c
VZ
15156if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15157 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
15158 rm -rf conftest*
15159 ac_cv_type_mode_t=yes
9d353d4a 15160else
90dd450c
VZ
15161 rm -rf conftest*
15162 ac_cv_type_mode_t=no
9d353d4a 15163fi
90dd450c 15164rm -f conftest*
9d353d4a
RR
15165
15166fi
90dd450c
VZ
15167echo "$ac_t""$ac_cv_type_mode_t" 1>&6
15168if test $ac_cv_type_mode_t = no; then
15169 cat >> confdefs.h <<\EOF
15170#define mode_t int
9d353d4a
RR
15171EOF
15172
90dd450c 15173fi
9d353d4a 15174
90dd450c 15175echo $ac_n "checking for off_t""... $ac_c" 1>&6
1d1b75ac 15176echo "configure:15177: checking for off_t" >&5
90dd450c 15177if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
698dcdb6 15178 echo $ac_n "(cached) $ac_c" 1>&6
4f14bcd8
GD
15179else
15180 cat > conftest.$ac_ext <<EOF
1d1b75ac 15181#line 15182 "configure"
10f2d63a 15182#include "confdefs.h"
90dd450c
VZ
15183#include <sys/types.h>
15184#if STDC_HEADERS
15185#include <stdlib.h>
15186#include <stddef.h>
15187#endif
698dcdb6 15188EOF
90dd450c
VZ
15189if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15190 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
15191 rm -rf conftest*
15192 ac_cv_type_off_t=yes
698dcdb6 15193else
90dd450c
VZ
15194 rm -rf conftest*
15195 ac_cv_type_off_t=no
698dcdb6 15196fi
90dd450c 15197rm -f conftest*
698dcdb6
VZ
15198
15199fi
90dd450c
VZ
15200echo "$ac_t""$ac_cv_type_off_t" 1>&6
15201if test $ac_cv_type_off_t = no; then
15202 cat >> confdefs.h <<\EOF
15203#define off_t long
10f2d63a
VZ
15204EOF
15205
90dd450c 15206fi
10f2d63a 15207
90dd450c 15208echo $ac_n "checking for pid_t""... $ac_c" 1>&6
1d1b75ac 15209echo "configure:15210: checking for pid_t" >&5
90dd450c 15210if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
698dcdb6 15211 echo $ac_n "(cached) $ac_c" 1>&6
4f14bcd8
GD
15212else
15213 cat > conftest.$ac_ext <<EOF
1d1b75ac 15214#line 15215 "configure"
10f2d63a 15215#include "confdefs.h"
90dd450c
VZ
15216#include <sys/types.h>
15217#if STDC_HEADERS
15218#include <stdlib.h>
15219#include <stddef.h>
15220#endif
698dcdb6 15221EOF
90dd450c
VZ
15222if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15223 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
15224 rm -rf conftest*
15225 ac_cv_type_pid_t=yes
698dcdb6 15226else
90dd450c
VZ
15227 rm -rf conftest*
15228 ac_cv_type_pid_t=no
4f14bcd8 15229fi
90dd450c 15230rm -f conftest*
698dcdb6
VZ
15231
15232fi
90dd450c
VZ
15233echo "$ac_t""$ac_cv_type_pid_t" 1>&6
15234if test $ac_cv_type_pid_t = no; then
15235 cat >> confdefs.h <<\EOF
15236#define pid_t int
10f2d63a
VZ
15237EOF
15238
90dd450c 15239fi
18dbb1f6 15240
90dd450c 15241echo $ac_n "checking for size_t""... $ac_c" 1>&6
1d1b75ac 15242echo "configure:15243: checking for size_t" >&5
90dd450c 15243if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
18dbb1f6 15244 echo $ac_n "(cached) $ac_c" 1>&6
90dd450c
VZ
15245else
15246 cat > conftest.$ac_ext <<EOF
1d1b75ac 15247#line 15248 "configure"
4f14bcd8
GD
15248#include "confdefs.h"
15249#include <sys/types.h>
90dd450c
VZ
15250#if STDC_HEADERS
15251#include <stdlib.h>
15252#include <stddef.h>
4f14bcd8 15253#endif
18dbb1f6 15254EOF
90dd450c
VZ
15255if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15256 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
18dbb1f6 15257 rm -rf conftest*
90dd450c 15258 ac_cv_type_size_t=yes
18dbb1f6 15259else
18dbb1f6 15260 rm -rf conftest*
90dd450c 15261 ac_cv_type_size_t=no
18dbb1f6
VZ
15262fi
15263rm -f conftest*
90dd450c 15264
1e487827 15265fi
90dd450c
VZ
15266echo "$ac_t""$ac_cv_type_size_t" 1>&6
15267if test $ac_cv_type_size_t = no; then
15268 cat >> confdefs.h <<\EOF
15269#define size_t unsigned
15270EOF
15271
15272fi
15273
15274echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
1d1b75ac 15275echo "configure:15276: checking for uid_t in sys/types.h" >&5
90dd450c
VZ
15276if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
15277 echo $ac_n "(cached) $ac_c" 1>&6
b3e8d00a
VZ
15278else
15279 cat > conftest.$ac_ext <<EOF
1d1b75ac 15280#line 15281 "configure"
b3e8d00a 15281#include "confdefs.h"
90dd450c 15282#include <sys/types.h>
b3e8d00a 15283EOF
90dd450c
VZ
15284if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15285 egrep "uid_t" >/dev/null 2>&1; then
15286 rm -rf conftest*
15287 ac_cv_type_uid_t=yes
b3e8d00a 15288else
90dd450c
VZ
15289 rm -rf conftest*
15290 ac_cv_type_uid_t=no
b3e8d00a 15291fi
90dd450c 15292rm -f conftest*
b3e8d00a 15293
4f14bcd8
GD
15294fi
15295
90dd450c
VZ
15296echo "$ac_t""$ac_cv_type_uid_t" 1>&6
15297if test $ac_cv_type_uid_t = no; then
4f14bcd8 15298 cat >> confdefs.h <<\EOF
90dd450c
VZ
15299#define uid_t int
15300EOF
15301
15302 cat >> confdefs.h <<\EOF
15303#define gid_t int
b3e8d00a 15304EOF
4f14bcd8 15305
b3e8d00a 15306fi
b3e8d00a
VZ
15307
15308
90dd450c
VZ
15309
15310ac_ext=C
4f14bcd8
GD
15311# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15312ac_cpp='$CXXCPP $CPPFLAGS'
15313ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15314ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15315cross_compiling=$ac_cv_prog_cxx_cross
90dd450c
VZ
15316
15317echo $ac_n "checking if size_t is unsigned int""... $ac_c" 1>&6
1d1b75ac 15318echo "configure:15319: checking if size_t is unsigned int" >&5
90dd450c
VZ
15319if eval "test \"`echo '$''{'wx_cv_size_t_is_uint'+set}'`\" = set"; then
15320 echo $ac_n "(cached) $ac_c" 1>&6
15321else
15322 cat > conftest.$ac_ext <<EOF
1d1b75ac 15323#line 15324 "configure"
10f2d63a 15324#include "confdefs.h"
90dd450c
VZ
15325#include <stddef.h>
15326int main() {
15327
15328 return 0; }
15329
15330 struct Foo { void foo(size_t); void foo(unsigned int); };
15331
15332 int bar() {
15333
15334; return 0; }
698dcdb6 15335EOF
1d1b75ac 15336if { (eval echo configure:15337: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
90dd450c
VZ
15337 rm -rf conftest*
15338 wx_cv_size_t_is_uint=no
698dcdb6
VZ
15339else
15340 echo "configure: failed program was:" >&5
15341 cat conftest.$ac_ext >&5
15342 rm -rf conftest*
90dd450c
VZ
15343 wx_cv_size_t_is_uint=yes
15344
698dcdb6
VZ
15345fi
15346rm -f conftest*
90dd450c 15347
698dcdb6
VZ
15348fi
15349
90dd450c 15350echo "$ac_t""$wx_cv_size_t_is_uint" 1>&6
4f14bcd8 15351
90dd450c 15352if test "$wx_cv_size_t_is_uint" = "yes"; then
4f14bcd8 15353 cat >> confdefs.h <<\EOF
90dd450c 15354#define wxSIZE_T_IS_UINT 1
698dcdb6
VZ
15355EOF
15356
90dd450c
VZ
15357else
15358 echo $ac_n "checking if size_t is unsigned long""... $ac_c" 1>&6
1d1b75ac 15359echo "configure:15360: checking if size_t is unsigned long" >&5
90dd450c 15360if eval "test \"`echo '$''{'wx_cv_size_t_is_ulong'+set}'`\" = set"; then
698dcdb6
VZ
15361 echo $ac_n "(cached) $ac_c" 1>&6
15362else
15363 cat > conftest.$ac_ext <<EOF
1d1b75ac 15364#line 15365 "configure"
10f2d63a 15365#include "confdefs.h"
90dd450c
VZ
15366#include <stddef.h>
15367int main() {
15368
15369 return 0; }
15370
15371 struct Foo { void foo(size_t); void foo(unsigned long); };
15372
15373 int bar() {
15374
15375; return 0; }
698dcdb6 15376EOF
1d1b75ac 15377if { (eval echo configure:15378: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6 15378 rm -rf conftest*
90dd450c 15379 wx_cv_size_t_is_ulong=no
698dcdb6
VZ
15380else
15381 echo "configure: failed program was:" >&5
15382 cat conftest.$ac_ext >&5
15383 rm -rf conftest*
90dd450c
VZ
15384 wx_cv_size_t_is_ulong=yes
15385
698dcdb6
VZ
15386fi
15387rm -f conftest*
90dd450c 15388
698dcdb6 15389fi
10f2d63a 15390
90dd450c 15391echo "$ac_t""$wx_cv_size_t_is_ulong" 1>&6
10f2d63a 15392
90dd450c
VZ
15393 if test "$wx_cv_size_t_is_ulong" = "yes"; then
15394 cat >> confdefs.h <<\EOF
15395#define wxSIZE_T_IS_ULONG 1
4f14bcd8
GD
15396EOF
15397
15398 fi
90dd450c 15399fi
1e487827 15400
90dd450c 15401ac_ext=c
4f14bcd8
GD
15402# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15403ac_cpp='$CPP $CPPFLAGS'
15404ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15405ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15406cross_compiling=$ac_cv_prog_cc_cross
698dcdb6 15407
698dcdb6
VZ
15408
15409
90dd450c 15410echo $ac_n "checking for pw_gecos in struct passwd""... $ac_c" 1>&6
1d1b75ac 15411echo "configure:15412: checking for pw_gecos in struct passwd" >&5
90dd450c 15412if eval "test \"`echo '$''{'wx_cv_struct_pw_gecos'+set}'`\" = set"; then
698dcdb6
VZ
15413 echo $ac_n "(cached) $ac_c" 1>&6
15414else
15415
90dd450c 15416 cat > conftest.$ac_ext <<EOF
1d1b75ac 15417#line 15418 "configure"
4f14bcd8 15418#include "confdefs.h"
90dd450c 15419#include <pwd.h>
4f14bcd8 15420int main() {
f6bcfd97 15421
90dd450c
VZ
15422 char *p;
15423 struct passwd *pw;
15424 p = pw->pw_gecos;
15425
698dcdb6
VZ
15426; return 0; }
15427EOF
1d1b75ac 15428if { (eval echo configure:15429: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6
VZ
15429 rm -rf conftest*
15430
90dd450c
VZ
15431 wx_cv_struct_pw_gecos=yes
15432
10f2d63a 15433else
698dcdb6
VZ
15434 echo "configure: failed program was:" >&5
15435 cat conftest.$ac_ext >&5
15436 rm -rf conftest*
15437
90dd450c
VZ
15438 wx_cv_struct_pw_gecos=no
15439
15440
4f14bcd8
GD
15441fi
15442rm -f conftest*
90dd450c 15443
c521c494 15444
4f14bcd8 15445fi
c521c494 15446
90dd450c 15447echo "$ac_t""$wx_cv_struct_pw_gecos" 1>&6
c521c494 15448
90dd450c 15449if test "$wx_cv_struct_pw_gecos" = "yes"; then
4f14bcd8 15450 cat >> confdefs.h <<\EOF
90dd450c 15451#define HAVE_PW_GECOS 1
4f14bcd8 15452EOF
c521c494 15453
90dd450c 15454fi
4f14bcd8
GD
15455
15456
d29b553b
VZ
15457WCHAR_OK=0
15458if test "$wx_cv_sizeof_wchar_t" != "0"; then
15459 WCHAR_LINK=
7a30264c
VZ
15460 for ac_func in wcslen
15461do
15462echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1d1b75ac 15463echo "configure:15464: checking for $ac_func" >&5
7a30264c 15464if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4f14bcd8
GD
15465 echo $ac_n "(cached) $ac_c" 1>&6
15466else
7a30264c 15467 cat > conftest.$ac_ext <<EOF
1d1b75ac 15468#line 15469 "configure"
4f14bcd8 15469#include "confdefs.h"
7a30264c
VZ
15470/* System header to define __stub macros and hopefully few prototypes,
15471 which can conflict with char $ac_func(); below. */
15472#include <assert.h>
4f14bcd8
GD
15473/* Override any gcc2 internal prototype to avoid an error. */
15474/* We use char because int might match the return type of a gcc2
15475 builtin and then its argument prototype would still apply. */
7a30264c 15476char $ac_func();
4f14bcd8
GD
15477
15478int main() {
7a30264c
VZ
15479
15480/* The GNU C library defines this for functions which it implements
15481 to always fail with ENOSYS. Some functions are actually named
15482 something starting with __ and the normal name is an alias. */
15483#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15484choke me
15485#else
15486$ac_func();
15487#endif
15488
698dcdb6
VZ
15489; return 0; }
15490EOF
1d1b75ac 15491if { (eval echo configure:15492: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6 15492 rm -rf conftest*
7a30264c 15493 eval "ac_cv_func_$ac_func=yes"
c521c494 15494else
698dcdb6
VZ
15495 echo "configure: failed program was:" >&5
15496 cat conftest.$ac_ext >&5
15497 rm -rf conftest*
7a30264c 15498 eval "ac_cv_func_$ac_func=no"
6232543b 15499fi
698dcdb6 15500rm -f conftest*
1e487827 15501fi
7a30264c
VZ
15502
15503if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4f14bcd8 15504 echo "$ac_t""yes" 1>&6
7a30264c
VZ
15505 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15506 cat >> confdefs.h <<EOF
15507#define $ac_tr_func 1
15508EOF
15509
15510 cat >> confdefs.h <<\EOF
4f14bcd8 15511#define HAVE_WCSLEN 1
9d8deca0
VZ
15512EOF
15513
7a30264c
VZ
15514 WCHAR_OK=1
15515
9d8deca0 15516else
4f14bcd8 15517 echo "$ac_t""no" 1>&6
7a30264c
VZ
15518fi
15519done
9d8deca0 15520
7a30264c
VZ
15521
15522 if test "$WCHAR_OK" = 0; then
15523 if test "$TOOLKIT" = "MSW"; then
15524 echo $ac_n "checking for wcslen in -lmsvcrt""... $ac_c" 1>&6
1d1b75ac 15525echo "configure:15526: checking for wcslen in -lmsvcrt" >&5
7a30264c 15526ac_lib_var=`echo msvcrt'_'wcslen | sed 'y%./+-%__p_%'`
4f14bcd8 15527if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
698dcdb6 15528 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 15529else
4f14bcd8 15530 ac_save_LIBS="$LIBS"
7a30264c 15531LIBS="-lmsvcrt $LIBS"
4f14bcd8 15532cat > conftest.$ac_ext <<EOF
1d1b75ac 15533#line 15534 "configure"
10f2d63a 15534#include "confdefs.h"
4f14bcd8
GD
15535/* Override any gcc2 internal prototype to avoid an error. */
15536/* We use char because int might match the return type of a gcc2
15537 builtin and then its argument prototype would still apply. */
15538char wcslen();
10f2d63a 15539
698dcdb6 15540int main() {
4f14bcd8 15541wcslen()
698dcdb6
VZ
15542; return 0; }
15543EOF
1d1b75ac 15544if { (eval echo configure:15545: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6 15545 rm -rf conftest*
4f14bcd8 15546 eval "ac_cv_lib_$ac_lib_var=yes"
10f2d63a 15547else
698dcdb6
VZ
15548 echo "configure: failed program was:" >&5
15549 cat conftest.$ac_ext >&5
15550 rm -rf conftest*
4f14bcd8 15551 eval "ac_cv_lib_$ac_lib_var=no"
6232543b 15552fi
698dcdb6 15553rm -f conftest*
4f14bcd8 15554LIBS="$ac_save_LIBS"
703e0a69 15555
1e487827 15556fi
4f14bcd8
GD
15557if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15558 echo "$ac_t""yes" 1>&6
15559
7a30264c 15560 cat >> confdefs.h <<\EOF
4f14bcd8 15561#define HAVE_WCSLEN 1
9d8deca0
VZ
15562EOF
15563
7a30264c
VZ
15564 WCHAR_OK=1
15565
4f14bcd8
GD
15566else
15567 echo "$ac_t""no" 1>&6
d29b553b 15568fi
698dcdb6 15569
7a30264c
VZ
15570 else
15571 echo $ac_n "checking for wcslen in -lw""... $ac_c" 1>&6
1d1b75ac 15572echo "configure:15573: checking for wcslen in -lw" >&5
7a30264c 15573ac_lib_var=`echo w'_'wcslen | sed 'y%./+-%__p_%'`
4f14bcd8 15574if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
698dcdb6
VZ
15575 echo $ac_n "(cached) $ac_c" 1>&6
15576else
4f14bcd8 15577 ac_save_LIBS="$LIBS"
7a30264c 15578LIBS="-lw $LIBS"
4f14bcd8 15579cat > conftest.$ac_ext <<EOF
1d1b75ac 15580#line 15581 "configure"
95c8801c 15581#include "confdefs.h"
4f14bcd8
GD
15582/* Override any gcc2 internal prototype to avoid an error. */
15583/* We use char because int might match the return type of a gcc2
15584 builtin and then its argument prototype would still apply. */
15585char wcslen();
95c8801c 15586
4f14bcd8
GD
15587int main() {
15588wcslen()
698dcdb6
VZ
15589; return 0; }
15590EOF
1d1b75ac 15591if { (eval echo configure:15592: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6 15592 rm -rf conftest*
4f14bcd8 15593 eval "ac_cv_lib_$ac_lib_var=yes"
95c8801c 15594else
698dcdb6
VZ
15595 echo "configure: failed program was:" >&5
15596 cat conftest.$ac_ext >&5
15597 rm -rf conftest*
4f14bcd8 15598 eval "ac_cv_lib_$ac_lib_var=no"
95c8801c 15599fi
698dcdb6 15600rm -f conftest*
4f14bcd8 15601LIBS="$ac_save_LIBS"
95c8801c
VS
15602
15603fi
4f14bcd8
GD
15604if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15605 echo "$ac_t""yes" 1>&6
15606
7a30264c 15607 cat >> confdefs.h <<\EOF
4f14bcd8
GD
15608#define HAVE_WCSLEN 1
15609EOF
698dcdb6 15610
7a30264c
VZ
15611 WCHAR_LINK=" -lw"
15612 WCHAR_OK=1
15613
4f14bcd8
GD
15614else
15615 echo "$ac_t""no" 1>&6
15616fi
10f2d63a 15617
7a30264c 15618 fi
d29b553b 15619 fi
4f14bcd8 15620fi
95c8801c 15621
d29b553b
VZ
15622if test "$WCHAR_OK" = 1; then
15623 cat >> confdefs.h <<\EOF
15624#define wxUSE_WCHAR_T 1
15625EOF
10f2d63a 15626
1e487827 15627
d29b553b 15628 for ac_func in wcsrtombs
eb4efbdc 15629do
698dcdb6 15630echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1d1b75ac 15631echo "configure:15632: checking for $ac_func" >&5
698dcdb6
VZ
15632if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15633 echo $ac_n "(cached) $ac_c" 1>&6
15634else
15635 cat > conftest.$ac_ext <<EOF
1d1b75ac 15636#line 15637 "configure"
eb4efbdc
VZ
15637#include "confdefs.h"
15638/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 15639 which can conflict with char $ac_func(); below. */
eb4efbdc
VZ
15640#include <assert.h>
15641/* Override any gcc2 internal prototype to avoid an error. */
15642/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
15643 builtin and then its argument prototype would still apply. */
15644char $ac_func();
15645
15646int main() {
eb4efbdc
VZ
15647
15648/* The GNU C library defines this for functions which it implements
15649 to always fail with ENOSYS. Some functions are actually named
15650 something starting with __ and the normal name is an alias. */
15651#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15652choke me
15653#else
698dcdb6 15654$ac_func();
eb4efbdc
VZ
15655#endif
15656
698dcdb6 15657; return 0; }
eb4efbdc 15658EOF
1d1b75ac 15659if { (eval echo configure:15660: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
15660 rm -rf conftest*
15661 eval "ac_cv_func_$ac_func=yes"
15662else
15663 echo "configure: failed program was:" >&5
15664 cat conftest.$ac_ext >&5
15665 rm -rf conftest*
15666 eval "ac_cv_func_$ac_func=no"
15667fi
15668rm -f conftest*
15669fi
eb4efbdc 15670
698dcdb6
VZ
15671if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15672 echo "$ac_t""yes" 1>&6
15673 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15674 cat >> confdefs.h <<EOF
15675#define $ac_tr_func 1
15676EOF
15677
15678else
15679 echo "$ac_t""no" 1>&6
eb4efbdc
VZ
15680fi
15681done
15682
d29b553b 15683else
a1ea5055
GD
15684 if test "$USE_DARWIN" = 1; then
15685 cat >> confdefs.h <<\EOF
15686#define wxUSE_WCHAR_T 1
15687EOF
15688
15689 else
15690 echo "configure: warning: Wide character support is unavailable" 1>&2
15691 fi
d29b553b 15692fi
698dcdb6 15693
4f14bcd8 15694echo $ac_n "checking for vprintf""... $ac_c" 1>&6
1d1b75ac 15695echo "configure:15696: checking for vprintf" >&5
4f14bcd8 15696if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
698dcdb6
VZ
15697 echo $ac_n "(cached) $ac_c" 1>&6
15698else
4f14bcd8 15699 cat > conftest.$ac_ext <<EOF
1d1b75ac 15700#line 15701 "configure"
f6bcfd97 15701#include "confdefs.h"
4f14bcd8
GD
15702/* System header to define __stub macros and hopefully few prototypes,
15703 which can conflict with char vprintf(); below. */
15704#include <assert.h>
15705/* Override any gcc2 internal prototype to avoid an error. */
15706/* We use char because int might match the return type of a gcc2
15707 builtin and then its argument prototype would still apply. */
15708char vprintf();
15709
698dcdb6 15710int main() {
f6bcfd97 15711
4f14bcd8
GD
15712/* The GNU C library defines this for functions which it implements
15713 to always fail with ENOSYS. Some functions are actually named
15714 something starting with __ and the normal name is an alias. */
15715#if defined (__stub_vprintf) || defined (__stub___vprintf)
15716choke me
15717#else
15718vprintf();
15719#endif
f6bcfd97 15720
698dcdb6
VZ
15721; return 0; }
15722EOF
1d1b75ac 15723if { (eval echo configure:15724: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6 15724 rm -rf conftest*
4f14bcd8 15725 eval "ac_cv_func_vprintf=yes"
f6bcfd97 15726else
698dcdb6
VZ
15727 echo "configure: failed program was:" >&5
15728 cat conftest.$ac_ext >&5
15729 rm -rf conftest*
4f14bcd8 15730 eval "ac_cv_func_vprintf=no"
6232543b 15731fi
698dcdb6 15732rm -f conftest*
1e487827 15733fi
698dcdb6 15734
4f14bcd8
GD
15735if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
15736 echo "$ac_t""yes" 1>&6
15737 cat >> confdefs.h <<\EOF
15738#define HAVE_VPRINTF 1
f6bcfd97
BP
15739EOF
15740
4f14bcd8
GD
15741else
15742 echo "$ac_t""no" 1>&6
eb4efbdc
VZ
15743fi
15744
4f14bcd8
GD
15745if test "$ac_cv_func_vprintf" != yes; then
15746echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
1d1b75ac 15747echo "configure:15748: checking for _doprnt" >&5
4f14bcd8 15748if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
698dcdb6
VZ
15749 echo $ac_n "(cached) $ac_c" 1>&6
15750else
15751 cat > conftest.$ac_ext <<EOF
1d1b75ac 15752#line 15753 "configure"
10f2d63a
VZ
15753#include "confdefs.h"
15754/* System header to define __stub macros and hopefully few prototypes,
4f14bcd8 15755 which can conflict with char _doprnt(); below. */
10f2d63a
VZ
15756#include <assert.h>
15757/* Override any gcc2 internal prototype to avoid an error. */
15758/* We use char because int might match the return type of a gcc2
698dcdb6 15759 builtin and then its argument prototype would still apply. */
4f14bcd8 15760char _doprnt();
698dcdb6
VZ
15761
15762int main() {
10f2d63a
VZ
15763
15764/* The GNU C library defines this for functions which it implements
15765 to always fail with ENOSYS. Some functions are actually named
15766 something starting with __ and the normal name is an alias. */
4f14bcd8 15767#if defined (__stub__doprnt) || defined (__stub____doprnt)
10f2d63a
VZ
15768choke me
15769#else
4f14bcd8 15770_doprnt();
10f2d63a
VZ
15771#endif
15772
698dcdb6 15773; return 0; }
10f2d63a 15774EOF
1d1b75ac 15775if { (eval echo configure:15776: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6 15776 rm -rf conftest*
4f14bcd8 15777 eval "ac_cv_func__doprnt=yes"
698dcdb6
VZ
15778else
15779 echo "configure: failed program was:" >&5
15780 cat conftest.$ac_ext >&5
15781 rm -rf conftest*
4f14bcd8 15782 eval "ac_cv_func__doprnt=no"
698dcdb6
VZ
15783fi
15784rm -f conftest*
15785fi
270a909e 15786
4f14bcd8 15787if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
698dcdb6 15788 echo "$ac_t""yes" 1>&6
4f14bcd8
GD
15789 cat >> confdefs.h <<\EOF
15790#define HAVE_DOPRNT 1
698dcdb6 15791EOF
4f14bcd8 15792
698dcdb6
VZ
15793else
15794 echo "$ac_t""no" 1>&6
270a909e 15795fi
270a909e 15796
4f14bcd8 15797fi
1e487827 15798
52e8b690 15799
52e8b690 15800
52e8b690 15801
52e8b690 15802
52e8b690 15803
4f14bcd8 15804echo $ac_n "checking for vsnprintf""... $ac_c" 1>&6
1d1b75ac 15805echo "configure:15806: checking for vsnprintf" >&5
4f14bcd8 15806if eval "test \"`echo '$''{'wx_cv_func_vsnprintf'+set}'`\" = set"; then
698dcdb6 15807 echo $ac_n "(cached) $ac_c" 1>&6
c63c7106 15808else
4f14bcd8 15809
af15babd 15810 cat > conftest.$ac_ext <<EOF
1d1b75ac 15811#line 15812 "configure"
c63c7106 15812#include "confdefs.h"
698dcdb6 15813
4f14bcd8
GD
15814 #include <stdio.h>
15815 #include <stdarg.h>
15816
af15babd
VZ
15817int main() {
15818
4f14bcd8
GD
15819 int wx_test_vsnprintf(const char *, ...);
15820
15821 wx_test_vsnprintf("%s");
15822 return 0;
15823 }
15824
15825 int wx_test_vsnprintf(const char *fmt, ...)
15826 {
15827 char *s;
15828
15829 va_list argp;
15830 va_start(argp, fmt);
15831 vsnprintf(s, 42, fmt, argp);
15832 va_end(argp);
15833
af15babd
VZ
15834; return 0; }
15835EOF
1d1b75ac 15836if { (eval echo configure:15837: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
af15babd
VZ
15837 rm -rf conftest*
15838
4f14bcd8
GD
15839 wx_cv_func_vsnprintf=yes
15840
af15babd
VZ
15841else
15842 echo "configure: failed program was:" >&5
15843 cat conftest.$ac_ext >&5
15844 rm -rf conftest*
15845
4f14bcd8 15846 cat > conftest.$ac_ext <<EOF
1d1b75ac 15847#line 15848 "configure"
af15babd 15848#include "confdefs.h"
af15babd 15849
4f14bcd8
GD
15850 #include <stdio.h>
15851 #include <stdarg.h>
15852
af15babd
VZ
15853int main() {
15854
4f14bcd8
GD
15855 int wx_test_vsnprintf(const char *, ...);
15856
15857 wx_test_vsnprintf("%s");
15858 return 0;
15859 }
15860
15861 int wx_test_vsnprintf(const char *fmt, ...)
15862 {
15863 char *s;
af15babd 15864
4f14bcd8
GD
15865 va_list argp;
15866 va_start(argp, fmt);
15867 _vsnprintf(s, 42, fmt, argp);
15868 va_end(argp);
15869
af15babd
VZ
15870; return 0; }
15871EOF
1d1b75ac 15872if { (eval echo configure:15873: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
af15babd 15873 rm -rf conftest*
4f14bcd8
GD
15874
15875 wx_cv_func_vsnprintf=yes
15876
af15babd
VZ
15877else
15878 echo "configure: failed program was:" >&5
15879 cat conftest.$ac_ext >&5
15880 rm -rf conftest*
4f14bcd8
GD
15881
15882 wx_cv_func_vsnprintf=no
15883
af15babd
VZ
15884fi
15885rm -f conftest*
4f14bcd8 15886
af15babd 15887fi
4f14bcd8 15888rm -f conftest*
af15babd 15889
af15babd 15890fi
af15babd 15891
4f14bcd8 15892echo "$ac_t""$wx_cv_func_vsnprintf" 1>&6
af15babd 15893
4f14bcd8
GD
15894if test "$wx_cv_func_vsnprintf" = yes; then
15895 cat >> confdefs.h <<\EOF
15896#define HAVE_VSNPRINTF 1
15897EOF
15898
15899else
f9bc1684 15900 echo "configure: warning: unsafe function vsprintf will be used instead of vsnprintf" 1>&2
af15babd
VZ
15901fi
15902
4f14bcd8 15903echo $ac_n "checking for vsscanf""... $ac_c" 1>&6
1d1b75ac 15904echo "configure:15905: checking for vsscanf" >&5
4f14bcd8 15905if eval "test \"`echo '$''{'wx_cv_func_vsscanf'+set}'`\" = set"; then
af15babd
VZ
15906 echo $ac_n "(cached) $ac_c" 1>&6
15907else
4f14bcd8 15908
af15babd 15909 cat > conftest.$ac_ext <<EOF
1d1b75ac 15910#line 15911 "configure"
af15babd 15911#include "confdefs.h"
af15babd 15912
4f14bcd8
GD
15913 #include <stdio.h>
15914 #include <stdarg.h>
15915
af15babd
VZ
15916int main() {
15917
4f14bcd8
GD
15918 int wx_test_vsscanf(const char *, ...);
15919
15920 wx_test_vsscanf("%d");
15921 return 0;
15922 }
af15babd 15923
4f14bcd8
GD
15924 int wx_test_vsscanf(const char *fmt, ...)
15925 {
15926 va_list argp;
15927 va_start(argp, fmt);
15928 vsscanf("42", fmt, argp);
15929 va_end(argp);
15930
af15babd
VZ
15931; return 0; }
15932EOF
1d1b75ac 15933if { (eval echo configure:15934: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
af15babd 15934 rm -rf conftest*
4f14bcd8
GD
15935
15936 wx_cv_func_vsscanf=yes
15937
af15babd
VZ
15938else
15939 echo "configure: failed program was:" >&5
15940 cat conftest.$ac_ext >&5
15941 rm -rf conftest*
4f14bcd8
GD
15942
15943 wx_cv_func_vsscanf=no
15944
af15babd
VZ
15945fi
15946rm -f conftest*
4f14bcd8 15947
af15babd
VZ
15948fi
15949
4f14bcd8
GD
15950echo "$ac_t""$wx_cv_func_vsscanf" 1>&6
15951
15952if test "$wx_cv_func_vsscanf" = yes; then
15953 cat >> confdefs.h <<\EOF
15954#define HAVE_VSSCANF 1
af15babd 15955EOF
4f14bcd8 15956
af15babd 15957fi
af15babd 15958
4f14bcd8 15959if test "$TOOLKIT" != "MSW"; then
af15babd 15960
4f14bcd8
GD
15961
15962
15963ac_ext=C
15964# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15965ac_cpp='$CXXCPP $CPPFLAGS'
15966ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15967ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15968cross_compiling=$ac_cv_prog_cxx_cross
15969
b040e242
VS
15970
15971
15972 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
15973if test "${with_libiconv_prefix+set}" = set; then
15974 withval="$with_libiconv_prefix"
15975
15976 for dir in `echo "$withval" | tr : ' '`; do
15977 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
15978 if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
15979 done
15980
15981fi
15982
15983
15984 echo $ac_n "checking for iconv""... $ac_c" 1>&6
1d1b75ac 15985echo "configure:15986: checking for iconv" >&5
b040e242 15986if eval "test \"`echo '$''{'am_cv_func_iconv'+set}'`\" = set"; then
af15babd
VZ
15987 echo $ac_n "(cached) $ac_c" 1>&6
15988else
4f14bcd8 15989
b040e242
VS
15990 am_cv_func_iconv="no, consider installing GNU libiconv"
15991 am_cv_lib_iconv=no
4f14bcd8 15992 cat > conftest.$ac_ext <<EOF
1d1b75ac 15993#line 15994 "configure"
af15babd 15994#include "confdefs.h"
b040e242 15995#include <stdlib.h>
4f14bcd8 15996#include <iconv.h>
af15babd 15997int main() {
b040e242
VS
15998iconv_t cd = iconv_open("","");
15999 iconv(cd,NULL,NULL,NULL,NULL);
16000 iconv_close(cd);
af15babd
VZ
16001; return 0; }
16002EOF
1d1b75ac 16003if { (eval echo configure:16004: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
af15babd 16004 rm -rf conftest*
b040e242 16005 am_cv_func_iconv=yes
af15babd
VZ
16006else
16007 echo "configure: failed program was:" >&5
16008 cat conftest.$ac_ext >&5
b040e242
VS
16009fi
16010rm -f conftest*
16011 if test "$am_cv_func_iconv" != yes; then
16012 am_save_LIBS="$LIBS"
16013 LIBS="$LIBS -liconv"
16014 cat > conftest.$ac_ext <<EOF
1d1b75ac 16015#line 16016 "configure"
b040e242
VS
16016#include "confdefs.h"
16017#include <stdlib.h>
16018#include <iconv.h>
16019int main() {
16020iconv_t cd = iconv_open("","");
16021 iconv(cd,NULL,NULL,NULL,NULL);
16022 iconv_close(cd);
16023; return 0; }
16024EOF
1d1b75ac 16025if { (eval echo configure:16026: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
af15babd 16026 rm -rf conftest*
b040e242
VS
16027 am_cv_lib_iconv=yes
16028 am_cv_func_iconv=yes
16029else
16030 echo "configure: failed program was:" >&5
16031 cat conftest.$ac_ext >&5
af15babd
VZ
16032fi
16033rm -f conftest*
b040e242
VS
16034 LIBS="$am_save_LIBS"
16035 fi
16036
16037fi
16038
16039echo "$ac_t""$am_cv_func_iconv" 1>&6
16040 if test "$am_cv_func_iconv" = yes; then
16041 cat >> confdefs.h <<\EOF
16042#define HAVE_ICONV 1
16043EOF
16044
b7043674 16045 echo $ac_n "checking if iconv needs const""... $ac_c" 1>&6
1d1b75ac 16046echo "configure:16047: checking if iconv needs const" >&5
b7043674 16047if eval "test \"`echo '$''{'wx_cv_func_iconv_const'+set}'`\" = set"; then
b040e242
VS
16048 echo $ac_n "(cached) $ac_c" 1>&6
16049else
b7043674 16050 cat > conftest.$ac_ext <<EOF
1d1b75ac 16051#line 16052 "configure"
b040e242
VS
16052#include "confdefs.h"
16053
16054#include <stdlib.h>
16055#include <iconv.h>
16056extern
16057#ifdef __cplusplus
16058"C"
16059#endif
16060#if defined(__STDC__) || defined(__cplusplus)
16061size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
16062#else
16063size_t iconv();
16064#endif
b7043674 16065
b040e242 16066int main() {
af15babd 16067
b040e242
VS
16068; return 0; }
16069EOF
1d1b75ac 16070if { (eval echo configure:16071: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
b040e242 16071 rm -rf conftest*
b7043674 16072 wx_cv_func_iconv_const="no"
b040e242
VS
16073else
16074 echo "configure: failed program was:" >&5
16075 cat conftest.$ac_ext >&5
16076 rm -rf conftest*
b7043674
VZ
16077 wx_cv_func_iconv_const="yes"
16078
b040e242
VS
16079fi
16080rm -f conftest*
b7043674 16081
af15babd 16082fi
af15babd 16083
b7043674
VZ
16084echo "$ac_t""$wx_cv_func_iconv_const" 1>&6
16085
16086 iconv_const=
1c405bb5 16087 if test "x$wx_cv_func_iconv_const" = "xyes"; then
b7043674
VZ
16088 iconv_const="const"
16089 fi
16090
b040e242 16091 cat >> confdefs.h <<EOF
b7043674 16092#define ICONV_CONST $iconv_const
b040e242
VS
16093EOF
16094
16095 fi
16096 LIBICONV=
16097 if test "$am_cv_lib_iconv" = yes; then
16098 LIBICONV="-liconv"
16099 fi
16100
16101
16102LIBS="$LIBICONV $LIBS"
4f14bcd8
GD
16103ac_ext=c
16104# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16105ac_cpp='$CPP $CPPFLAGS'
16106ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16107ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16108cross_compiling=$ac_cv_prog_cc_cross
af15babd 16109
af15babd 16110
4f14bcd8
GD
16111if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then
16112 for ac_func in sigaction
af15babd
VZ
16113do
16114echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1d1b75ac 16115echo "configure:16116: checking for $ac_func" >&5
af15babd
VZ
16116if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16117 echo $ac_n "(cached) $ac_c" 1>&6
16118else
16119 cat > conftest.$ac_ext <<EOF
1d1b75ac 16120#line 16121 "configure"
af15babd
VZ
16121#include "confdefs.h"
16122/* System header to define __stub macros and hopefully few prototypes,
16123 which can conflict with char $ac_func(); below. */
16124#include <assert.h>
16125/* Override any gcc2 internal prototype to avoid an error. */
16126/* We use char because int might match the return type of a gcc2
16127 builtin and then its argument prototype would still apply. */
16128char $ac_func();
16129
16130int main() {
16131
16132/* The GNU C library defines this for functions which it implements
16133 to always fail with ENOSYS. Some functions are actually named
16134 something starting with __ and the normal name is an alias. */
16135#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16136choke me
16137#else
16138$ac_func();
16139#endif
16140
16141; return 0; }
16142EOF
1d1b75ac 16143if { (eval echo configure:16144: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
af15babd
VZ
16144 rm -rf conftest*
16145 eval "ac_cv_func_$ac_func=yes"
16146else
16147 echo "configure: failed program was:" >&5
16148 cat conftest.$ac_ext >&5
16149 rm -rf conftest*
16150 eval "ac_cv_func_$ac_func=no"
16151fi
16152rm -f conftest*
16153fi
16154
16155if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16156 echo "$ac_t""yes" 1>&6
16157 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16158 cat >> confdefs.h <<EOF
16159#define $ac_tr_func 1
16160EOF
4f14bcd8 16161
af15babd
VZ
16162else
16163 echo "$ac_t""no" 1>&6
4f14bcd8
GD
16164fi
16165done
16166
16167
16168 if test "$ac_cv_func_sigaction" = "no"; then
16169 echo "configure: warning: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" 1>&2
16170 wxUSE_ON_FATAL_EXCEPTION=no
16171 fi
16172
16173 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
16174
16175 ac_ext=C
16176# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16177ac_cpp='$CXXCPP $CPPFLAGS'
16178ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16179ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16180cross_compiling=$ac_cv_prog_cxx_cross
16181
16182
16183 echo $ac_n "checking for sa_handler type""... $ac_c" 1>&6
1d1b75ac 16184echo "configure:16185: checking for sa_handler type" >&5
4f14bcd8 16185if eval "test \"`echo '$''{'wx_cv_type_sa_handler'+set}'`\" = set"; then
af15babd
VZ
16186 echo $ac_n "(cached) $ac_c" 1>&6
16187else
4f14bcd8
GD
16188
16189 cat > conftest.$ac_ext <<EOF
1d1b75ac 16190#line 16191 "configure"
af15babd 16191#include "confdefs.h"
4f14bcd8 16192#include <signal.h>
af15babd 16193int main() {
4f14bcd8
GD
16194
16195 extern void testSigHandler(int);
16196
16197 struct sigaction sa;
16198 sa.sa_handler = testSigHandler;
16199
af15babd
VZ
16200; return 0; }
16201EOF
1d1b75ac 16202if { (eval echo configure:16203: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
af15babd 16203 rm -rf conftest*
4f14bcd8
GD
16204
16205 wx_cv_type_sa_handler=int
16206
af15babd
VZ
16207else
16208 echo "configure: failed program was:" >&5
16209 cat conftest.$ac_ext >&5
16210 rm -rf conftest*
4f14bcd8
GD
16211
16212 wx_cv_type_sa_handler=void
16213
af15babd
VZ
16214fi
16215rm -f conftest*
4f14bcd8
GD
16216
16217fi
16218
16219echo "$ac_t""$wx_cv_type_sa_handler" 1>&6
16220
16221 ac_ext=c
16222# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16223ac_cpp='$CPP $CPPFLAGS'
16224ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16225ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16226cross_compiling=$ac_cv_prog_cc_cross
af15babd 16227
4f14bcd8
GD
16228
16229 cat >> confdefs.h <<EOF
16230#define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler
af15babd
VZ
16231EOF
16232
4f14bcd8
GD
16233 fi
16234fi
af15babd 16235
4f14bcd8 16236for ac_func in vfork
af15babd
VZ
16237do
16238echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1d1b75ac 16239echo "configure:16240: checking for $ac_func" >&5
af15babd
VZ
16240if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16241 echo $ac_n "(cached) $ac_c" 1>&6
16242else
16243 cat > conftest.$ac_ext <<EOF
1d1b75ac 16244#line 16245 "configure"
af15babd
VZ
16245#include "confdefs.h"
16246/* System header to define __stub macros and hopefully few prototypes,
16247 which can conflict with char $ac_func(); below. */
16248#include <assert.h>
16249/* Override any gcc2 internal prototype to avoid an error. */
16250/* We use char because int might match the return type of a gcc2
16251 builtin and then its argument prototype would still apply. */
16252char $ac_func();
16253
16254int main() {
16255
16256/* The GNU C library defines this for functions which it implements
16257 to always fail with ENOSYS. Some functions are actually named
16258 something starting with __ and the normal name is an alias. */
16259#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16260choke me
16261#else
16262$ac_func();
16263#endif
16264
16265; return 0; }
16266EOF
1d1b75ac 16267if { (eval echo configure:16268: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
af15babd
VZ
16268 rm -rf conftest*
16269 eval "ac_cv_func_$ac_func=yes"
16270else
16271 echo "configure: failed program was:" >&5
16272 cat conftest.$ac_ext >&5
16273 rm -rf conftest*
16274 eval "ac_cv_func_$ac_func=no"
16275fi
16276rm -f conftest*
16277fi
16278
16279if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16280 echo "$ac_t""yes" 1>&6
16281 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16282 cat >> confdefs.h <<EOF
16283#define $ac_tr_func 1
16284EOF
4f14bcd8 16285
af15babd
VZ
16286else
16287 echo "$ac_t""no" 1>&6
af15babd
VZ
16288fi
16289done
16290
af15babd 16291
ade35f11
VZ
16292for ac_func in mkstemp mktemp
16293do
16294echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1d1b75ac 16295echo "configure:16296: checking for $ac_func" >&5
ade35f11
VZ
16296if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16297 echo $ac_n "(cached) $ac_c" 1>&6
16298else
16299 cat > conftest.$ac_ext <<EOF
1d1b75ac 16300#line 16301 "configure"
ade35f11
VZ
16301#include "confdefs.h"
16302/* System header to define __stub macros and hopefully few prototypes,
16303 which can conflict with char $ac_func(); below. */
16304#include <assert.h>
16305/* Override any gcc2 internal prototype to avoid an error. */
16306/* We use char because int might match the return type of a gcc2
16307 builtin and then its argument prototype would still apply. */
16308char $ac_func();
16309
16310int main() {
16311
16312/* The GNU C library defines this for functions which it implements
16313 to always fail with ENOSYS. Some functions are actually named
16314 something starting with __ and the normal name is an alias. */
16315#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16316choke me
16317#else
16318$ac_func();
16319#endif
16320
16321; return 0; }
16322EOF
1d1b75ac 16323if { (eval echo configure:16324: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ade35f11
VZ
16324 rm -rf conftest*
16325 eval "ac_cv_func_$ac_func=yes"
16326else
16327 echo "configure: failed program was:" >&5
16328 cat conftest.$ac_ext >&5
16329 rm -rf conftest*
16330 eval "ac_cv_func_$ac_func=no"
16331fi
16332rm -f conftest*
16333fi
16334
16335if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16336 echo "$ac_t""yes" 1>&6
16337 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16338 cat >> confdefs.h <<EOF
16339#define $ac_tr_func 1
16340EOF
16341 break
16342else
16343 echo "$ac_t""no" 1>&6
16344fi
16345done
16346
16347
4f14bcd8 16348echo $ac_n "checking for statfs""... $ac_c" 1>&6
1d1b75ac 16349echo "configure:16350: checking for statfs" >&5
4f14bcd8
GD
16350if eval "test \"`echo '$''{'wx_cv_func_statfs'+set}'`\" = set"; then
16351 echo $ac_n "(cached) $ac_c" 1>&6
16352else
16353 cat > conftest.$ac_ext <<EOF
1d1b75ac 16354#line 16355 "configure"
4f14bcd8
GD
16355#include "confdefs.h"
16356
16357 #if defined(__BSD__)
16358 #include <sys/param.h>
16359 #include <sys/mount.h>
16360 #else
16361 #include <sys/vfs.h>
16362 #endif
16363
16364int main() {
16365
16366 long l;
16367 struct statfs fs;
16368 statfs("/", &fs);
16369 l = fs.f_bsize;
16370 l += fs.f_blocks;
16371 l += fs.f_bavail;
16372
16373; return 0; }
16374EOF
1d1b75ac 16375if { (eval echo configure:16376: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4f14bcd8
GD
16376 rm -rf conftest*
16377
16378 wx_cv_func_statfs=yes
16379
16380else
16381 echo "configure: failed program was:" >&5
16382 cat conftest.$ac_ext >&5
16383 rm -rf conftest*
16384
16385 wx_cv_func_statfs=no
af15babd
VZ
16386
16387
16388fi
4f14bcd8 16389rm -f conftest*
af15babd
VZ
16390
16391fi
16392
4f14bcd8
GD
16393echo "$ac_t""$wx_cv_func_statfs" 1>&6
16394
16395if test "$wx_cv_func_statfs" = "yes"; then
16396 cat >> confdefs.h <<\EOF
16397#define HAVE_STATFS 1
16398EOF
16399
16400else
16401 echo $ac_n "checking for statvfs""... $ac_c" 1>&6
1d1b75ac 16402echo "configure:16403: checking for statvfs" >&5
4f14bcd8 16403if eval "test \"`echo '$''{'wx_cv_func_statvfs'+set}'`\" = set"; then
af15babd
VZ
16404 echo $ac_n "(cached) $ac_c" 1>&6
16405else
16406 cat > conftest.$ac_ext <<EOF
1d1b75ac 16407#line 16408 "configure"
af15babd 16408#include "confdefs.h"
af15babd 16409
4f14bcd8
GD
16410 #include <sys/statvfs.h>
16411
af15babd
VZ
16412int main() {
16413
4f14bcd8
GD
16414 long l;
16415 struct statvfs fs;
16416 statvfs("/", &fs);
16417 l = fs.f_bsize;
16418 l += fs.f_blocks;
16419 l += fs.f_bavail;
16420
af15babd
VZ
16421; return 0; }
16422EOF
1d1b75ac 16423if { (eval echo configure:16424: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
af15babd 16424 rm -rf conftest*
4f14bcd8
GD
16425
16426 wx_cv_func_statvfs=yes
16427
af15babd
VZ
16428else
16429 echo "configure: failed program was:" >&5
16430 cat conftest.$ac_ext >&5
16431 rm -rf conftest*
4f14bcd8
GD
16432
16433 wx_cv_func_statvfs=no
16434
16435
af15babd
VZ
16436fi
16437rm -f conftest*
4f14bcd8 16438
af15babd
VZ
16439fi
16440
4f14bcd8 16441echo "$ac_t""$wx_cv_func_statvfs" 1>&6
af15babd 16442
4f14bcd8
GD
16443 if test "$wx_cv_func_statvfs" = "yes"; then
16444 cat >> confdefs.h <<\EOF
16445#define HAVE_STATVFS 1
16446EOF
af15babd 16447
4f14bcd8
GD
16448 else
16449 echo "configure: warning: wxGetDiskSpace() function won't work without statfs()" 1>&2
16450 fi
16451fi
af15babd 16452
4f14bcd8
GD
16453if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
16454 for ac_func in fcntl flock
af15babd
VZ
16455do
16456echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1d1b75ac 16457echo "configure:16458: checking for $ac_func" >&5
af15babd
VZ
16458if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16459 echo $ac_n "(cached) $ac_c" 1>&6
16460else
16461 cat > conftest.$ac_ext <<EOF
1d1b75ac 16462#line 16463 "configure"
af15babd
VZ
16463#include "confdefs.h"
16464/* System header to define __stub macros and hopefully few prototypes,
16465 which can conflict with char $ac_func(); below. */
16466#include <assert.h>
16467/* Override any gcc2 internal prototype to avoid an error. */
af15babd
VZ
16468/* We use char because int might match the return type of a gcc2
16469 builtin and then its argument prototype would still apply. */
16470char $ac_func();
16471
16472int main() {
16473
16474/* The GNU C library defines this for functions which it implements
16475 to always fail with ENOSYS. Some functions are actually named
16476 something starting with __ and the normal name is an alias. */
16477#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16478choke me
16479#else
16480$ac_func();
16481#endif
16482
16483; return 0; }
16484EOF
1d1b75ac 16485if { (eval echo configure:16486: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
af15babd
VZ
16486 rm -rf conftest*
16487 eval "ac_cv_func_$ac_func=yes"
16488else
16489 echo "configure: failed program was:" >&5
16490 cat conftest.$ac_ext >&5
16491 rm -rf conftest*
16492 eval "ac_cv_func_$ac_func=no"
16493fi
16494rm -f conftest*
16495fi
16496
16497if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16498 echo "$ac_t""yes" 1>&6
16499 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16500 cat >> confdefs.h <<EOF
16501#define $ac_tr_func 1
16502EOF
4f14bcd8 16503 break
af15babd
VZ
16504else
16505 echo "$ac_t""no" 1>&6
16506fi
16507done
16508
16509
4f14bcd8
GD
16510 if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then
16511 echo "configure: warning: wxSingleInstanceChecker not available" 1>&2
16512 wxUSE_SNGLINST_CHECKER=no
16513 fi
16514fi
af15babd 16515
4f14bcd8 16516for ac_func in timegm
af15babd
VZ
16517do
16518echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1d1b75ac 16519echo "configure:16520: checking for $ac_func" >&5
af15babd
VZ
16520if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16521 echo $ac_n "(cached) $ac_c" 1>&6
16522else
16523 cat > conftest.$ac_ext <<EOF
1d1b75ac 16524#line 16525 "configure"
af15babd
VZ
16525#include "confdefs.h"
16526/* System header to define __stub macros and hopefully few prototypes,
16527 which can conflict with char $ac_func(); below. */
16528#include <assert.h>
16529/* Override any gcc2 internal prototype to avoid an error. */
16530/* We use char because int might match the return type of a gcc2
16531 builtin and then its argument prototype would still apply. */
16532char $ac_func();
16533
698dcdb6 16534int main() {
698dcdb6 16535
af15babd
VZ
16536/* The GNU C library defines this for functions which it implements
16537 to always fail with ENOSYS. Some functions are actually named
16538 something starting with __ and the normal name is an alias. */
16539#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16540choke me
16541#else
16542$ac_func();
16543#endif
16544
698dcdb6
VZ
16545; return 0; }
16546EOF
1d1b75ac 16547if { (eval echo configure:16548: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6 16548 rm -rf conftest*
af15babd 16549 eval "ac_cv_func_$ac_func=yes"
698dcdb6
VZ
16550else
16551 echo "configure: failed program was:" >&5
16552 cat conftest.$ac_ext >&5
16553 rm -rf conftest*
af15babd 16554 eval "ac_cv_func_$ac_func=no"
1e487827 16555fi
9952adac 16556rm -f conftest*
af15babd 16557fi
703e0a69 16558
af15babd
VZ
16559if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16560 echo "$ac_t""yes" 1>&6
16561 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4f14bcd8
GD
16562 cat >> confdefs.h <<EOF
16563#define $ac_tr_func 1
16564EOF
16565
16566else
16567 echo "$ac_t""no" 1>&6
af15babd
VZ
16568fi
16569done
16570
16571
4f14bcd8 16572for ac_func in putenv setenv
10f2d63a 16573do
698dcdb6 16574echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1d1b75ac 16575echo "configure:16576: checking for $ac_func" >&5
698dcdb6
VZ
16576if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16577 echo $ac_n "(cached) $ac_c" 1>&6
16578else
16579 cat > conftest.$ac_ext <<EOF
1d1b75ac 16580#line 16581 "configure"
af15babd
VZ
16581#include "confdefs.h"
16582/* System header to define __stub macros and hopefully few prototypes,
16583 which can conflict with char $ac_func(); below. */
16584#include <assert.h>
16585/* Override any gcc2 internal prototype to avoid an error. */
16586/* We use char because int might match the return type of a gcc2
16587 builtin and then its argument prototype would still apply. */
16588char $ac_func();
16589
16590int main() {
16591
16592/* The GNU C library defines this for functions which it implements
16593 to always fail with ENOSYS. Some functions are actually named
16594 something starting with __ and the normal name is an alias. */
16595#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16596choke me
16597#else
16598$ac_func();
16599#endif
16600
16601; return 0; }
16602EOF
1d1b75ac 16603if { (eval echo configure:16604: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
af15babd
VZ
16604 rm -rf conftest*
16605 eval "ac_cv_func_$ac_func=yes"
16606else
16607 echo "configure: failed program was:" >&5
16608 cat conftest.$ac_ext >&5
16609 rm -rf conftest*
16610 eval "ac_cv_func_$ac_func=no"
16611fi
16612rm -f conftest*
16613fi
16614
16615if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16616 echo "$ac_t""yes" 1>&6
16617 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16618 cat >> confdefs.h <<EOF
16619#define $ac_tr_func 1
16620EOF
4f14bcd8 16621 break
af15babd
VZ
16622else
16623 echo "$ac_t""no" 1>&6
16624fi
af15babd
VZ
16625done
16626
16627
4f14bcd8
GD
16628HAVE_SOME_SLEEP_FUNC=0
16629if test "$USE_BEOS" = 1; then
16630 cat >> confdefs.h <<\EOF
16631#define HAVE_SLEEP 1
af15babd
VZ
16632EOF
16633
4f14bcd8 16634 HAVE_SOME_SLEEP_FUNC=1
10f2d63a
VZ
16635fi
16636
4f14bcd8
GD
16637if test "$USE_DARWIN" = 1; then
16638 cat >> confdefs.h <<\EOF
16639#define HAVE_USLEEP 1
af15babd 16640EOF
10f2d63a 16641
4f14bcd8 16642 HAVE_SOME_SLEEP_FUNC=1
10f2d63a
VZ
16643fi
16644
4f14bcd8
GD
16645if test "$HAVE_SOME_SLEEP_FUNC" != 1; then
16646 POSIX4_LINK=
16647 for ac_func in nanosleep
16648do
16649echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1d1b75ac 16650echo "configure:16651: checking for $ac_func" >&5
4f14bcd8 16651if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
698dcdb6 16652 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 16653else
4f14bcd8 16654 cat > conftest.$ac_ext <<EOF
1d1b75ac 16655#line 16656 "configure"
10f2d63a 16656#include "confdefs.h"
4f14bcd8
GD
16657/* System header to define __stub macros and hopefully few prototypes,
16658 which can conflict with char $ac_func(); below. */
16659#include <assert.h>
10f2d63a
VZ
16660/* Override any gcc2 internal prototype to avoid an error. */
16661/* We use char because int might match the return type of a gcc2
698dcdb6 16662 builtin and then its argument prototype would still apply. */
4f14bcd8 16663char $ac_func();
698dcdb6
VZ
16664
16665int main() {
4f14bcd8
GD
16666
16667/* The GNU C library defines this for functions which it implements
16668 to always fail with ENOSYS. Some functions are actually named
16669 something starting with __ and the normal name is an alias. */
16670#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16671choke me
16672#else
16673$ac_func();
16674#endif
16675
698dcdb6
VZ
16676; return 0; }
16677EOF
1d1b75ac 16678if { (eval echo configure:16679: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6 16679 rm -rf conftest*
4f14bcd8 16680 eval "ac_cv_func_$ac_func=yes"
698dcdb6
VZ
16681else
16682 echo "configure: failed program was:" >&5
16683 cat conftest.$ac_ext >&5
16684 rm -rf conftest*
4f14bcd8 16685 eval "ac_cv_func_$ac_func=no"
698dcdb6
VZ
16686fi
16687rm -f conftest*
698dcdb6 16688fi
4f14bcd8
GD
16689
16690if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
698dcdb6 16691 echo "$ac_t""yes" 1>&6
4f14bcd8
GD
16692 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16693 cat >> confdefs.h <<EOF
16694#define $ac_tr_func 1
16695EOF
16696 cat >> confdefs.h <<\EOF
16697#define HAVE_NANOSLEEP 1
16698EOF
16699
10f2d63a 16700else
698dcdb6 16701 echo "$ac_t""no" 1>&6
4f14bcd8 16702echo $ac_n "checking for nanosleep in -lposix4""... $ac_c" 1>&6
1d1b75ac 16703echo "configure:16704: checking for nanosleep in -lposix4" >&5
4f14bcd8 16704ac_lib_var=`echo posix4'_'nanosleep | sed 'y%./+-%__p_%'`
698dcdb6
VZ
16705if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
16706 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 16707else
698dcdb6 16708 ac_save_LIBS="$LIBS"
4f14bcd8 16709LIBS="-lposix4 $LIBS"
698dcdb6 16710cat > conftest.$ac_ext <<EOF
1d1b75ac 16711#line 16712 "configure"
10f2d63a
VZ
16712#include "confdefs.h"
16713/* Override any gcc2 internal prototype to avoid an error. */
16714/* We use char because int might match the return type of a gcc2
698dcdb6 16715 builtin and then its argument prototype would still apply. */
4f14bcd8 16716char nanosleep();
698dcdb6
VZ
16717
16718int main() {
4f14bcd8 16719nanosleep()
698dcdb6
VZ
16720; return 0; }
16721EOF
1d1b75ac 16722if { (eval echo configure:16723: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
16723 rm -rf conftest*
16724 eval "ac_cv_lib_$ac_lib_var=yes"
16725else
16726 echo "configure: failed program was:" >&5
16727 cat conftest.$ac_ext >&5
16728 rm -rf conftest*
16729 eval "ac_cv_lib_$ac_lib_var=no"
16730fi
16731rm -f conftest*
16732LIBS="$ac_save_LIBS"
10f2d63a 16733
698dcdb6
VZ
16734fi
16735if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
16736 echo "$ac_t""yes" 1>&6
16737
4f14bcd8
GD
16738 cat >> confdefs.h <<\EOF
16739#define HAVE_NANOSLEEP 1
16740EOF
16741
3d63bc3a 16742 POSIX4_LINK=" -lposix4"
4f14bcd8 16743
10f2d63a 16744else
698dcdb6 16745 echo "$ac_t""no" 1>&6
10f2d63a 16746
4f14bcd8
GD
16747 for ac_func in usleep
16748do
16749echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1d1b75ac 16750echo "configure:16751: checking for $ac_func" >&5
4f14bcd8 16751if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
698dcdb6 16752 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 16753else
698dcdb6 16754 cat > conftest.$ac_ext <<EOF
1d1b75ac 16755#line 16756 "configure"
10f2d63a 16756#include "confdefs.h"
4f14bcd8
GD
16757/* System header to define __stub macros and hopefully few prototypes,
16758 which can conflict with char $ac_func(); below. */
16759#include <assert.h>
16760/* Override any gcc2 internal prototype to avoid an error. */
16761/* We use char because int might match the return type of a gcc2
16762 builtin and then its argument prototype would still apply. */
16763char $ac_func();
16764
16765int main() {
16766
16767/* The GNU C library defines this for functions which it implements
16768 to always fail with ENOSYS. Some functions are actually named
16769 something starting with __ and the normal name is an alias. */
16770#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16771choke me
16772#else
16773$ac_func();
16774#endif
16775
16776; return 0; }
698dcdb6 16777EOF
1d1b75ac 16778if { (eval echo configure:16779: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6 16779 rm -rf conftest*
4f14bcd8 16780 eval "ac_cv_func_$ac_func=yes"
1e487827 16781else
698dcdb6 16782 echo "configure: failed program was:" >&5
10f2d63a 16783 cat conftest.$ac_ext >&5
698dcdb6 16784 rm -rf conftest*
4f14bcd8 16785 eval "ac_cv_func_$ac_func=no"
10f2d63a 16786fi
698dcdb6 16787rm -f conftest*
10f2d63a 16788fi
4f14bcd8
GD
16789
16790if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
698dcdb6 16791 echo "$ac_t""yes" 1>&6
4f14bcd8
GD
16792 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16793 cat >> confdefs.h <<EOF
16794#define $ac_tr_func 1
16795EOF
16796 cat >> confdefs.h <<\EOF
16797#define HAVE_USLEEP 1
16798EOF
16799
698dcdb6
VZ
16800else
16801 echo "$ac_t""no" 1>&6
4f14bcd8
GD
16802echo "configure: warning: wxSleep() function will not work" 1>&2
16803
10f2d63a 16804fi
4f14bcd8 16805done
10f2d63a 16806
4f14bcd8 16807
698dcdb6 16808
6232543b 16809fi
10f2d63a 16810
698dcdb6 16811
4f14bcd8 16812
1e487827 16813fi
4f14bcd8 16814done
703e0a69 16815
10f2d63a
VZ
16816fi
16817
4f14bcd8 16818for ac_func in uname gethostname
70846f0a 16819do
698dcdb6 16820echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1d1b75ac 16821echo "configure:16822: checking for $ac_func" >&5
698dcdb6
VZ
16822if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16823 echo $ac_n "(cached) $ac_c" 1>&6
16824else
16825 cat > conftest.$ac_ext <<EOF
1d1b75ac 16826#line 16827 "configure"
70846f0a
VZ
16827#include "confdefs.h"
16828/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 16829 which can conflict with char $ac_func(); below. */
70846f0a
VZ
16830#include <assert.h>
16831/* Override any gcc2 internal prototype to avoid an error. */
16832/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
16833 builtin and then its argument prototype would still apply. */
16834char $ac_func();
16835
16836int main() {
70846f0a
VZ
16837
16838/* The GNU C library defines this for functions which it implements
16839 to always fail with ENOSYS. Some functions are actually named
16840 something starting with __ and the normal name is an alias. */
16841#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16842choke me
16843#else
698dcdb6 16844$ac_func();
70846f0a
VZ
16845#endif
16846
698dcdb6 16847; return 0; }
70846f0a 16848EOF
1d1b75ac 16849if { (eval echo configure:16850: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
16850 rm -rf conftest*
16851 eval "ac_cv_func_$ac_func=yes"
16852else
16853 echo "configure: failed program was:" >&5
16854 cat conftest.$ac_ext >&5
16855 rm -rf conftest*
16856 eval "ac_cv_func_$ac_func=no"
16857fi
16858rm -f conftest*
16859fi
70846f0a 16860
698dcdb6
VZ
16861if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16862 echo "$ac_t""yes" 1>&6
16863 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16864 cat >> confdefs.h <<EOF
16865#define $ac_tr_func 1
16866EOF
4f14bcd8 16867 break
698dcdb6
VZ
16868else
16869 echo "$ac_t""no" 1>&6
70846f0a
VZ
16870fi
16871done
16872
698dcdb6 16873
4f14bcd8
GD
16874
16875ac_ext=C
16876# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16877ac_cpp='$CXXCPP $CPPFLAGS'
16878ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16879ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16880cross_compiling=$ac_cv_prog_cxx_cross
16881
16882
16883for ac_func in strtok_r
10f2d63a 16884do
4f14bcd8 16885echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1d1b75ac 16886echo "configure:16887: checking for $ac_func" >&5
4f14bcd8 16887if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
698dcdb6
VZ
16888 echo $ac_n "(cached) $ac_c" 1>&6
16889else
16890 cat > conftest.$ac_ext <<EOF
1d1b75ac 16891#line 16892 "configure"
10f2d63a 16892#include "confdefs.h"
4f14bcd8
GD
16893/* System header to define __stub macros and hopefully few prototypes,
16894 which can conflict with char $ac_func(); below. */
16895#include <assert.h>
16896/* Override any gcc2 internal prototype to avoid an error. */
16897#ifdef __cplusplus
16898extern "C"
16899#endif
16900/* We use char because int might match the return type of a gcc2
16901 builtin and then its argument prototype would still apply. */
16902char $ac_func();
16903
16904int main() {
16905
16906/* The GNU C library defines this for functions which it implements
16907 to always fail with ENOSYS. Some functions are actually named
16908 something starting with __ and the normal name is an alias. */
16909#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16910choke me
16911#else
16912$ac_func();
16913#endif
16914
16915; return 0; }
698dcdb6 16916EOF
1d1b75ac 16917if { (eval echo configure:16918: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6 16918 rm -rf conftest*
4f14bcd8 16919 eval "ac_cv_func_$ac_func=yes"
1e487827 16920else
698dcdb6 16921 echo "configure: failed program was:" >&5
10f2d63a 16922 cat conftest.$ac_ext >&5
698dcdb6 16923 rm -rf conftest*
4f14bcd8 16924 eval "ac_cv_func_$ac_func=no"
10f2d63a 16925fi
698dcdb6 16926rm -f conftest*
10f2d63a 16927fi
4f14bcd8
GD
16928
16929if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
698dcdb6 16930 echo "$ac_t""yes" 1>&6
4f14bcd8 16931 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
698dcdb6 16932 cat >> confdefs.h <<EOF
4f14bcd8 16933#define $ac_tr_func 1
10f2d63a 16934EOF
698dcdb6
VZ
16935
16936else
16937 echo "$ac_t""no" 1>&6
10f2d63a
VZ
16938fi
16939done
16940
698dcdb6 16941
4f14bcd8
GD
16942ac_ext=c
16943# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16944ac_cpp='$CPP $CPPFLAGS'
16945ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16946ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16947cross_compiling=$ac_cv_prog_cc_cross
16948
16949
16950INET_LINK=
16951for ac_func in inet_addr
16952do
16953echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1d1b75ac 16954echo "configure:16955: checking for $ac_func" >&5
4f14bcd8 16955if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
698dcdb6 16956 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 16957else
4f14bcd8 16958 cat > conftest.$ac_ext <<EOF
1d1b75ac 16959#line 16960 "configure"
10f2d63a 16960#include "confdefs.h"
4f14bcd8
GD
16961/* System header to define __stub macros and hopefully few prototypes,
16962 which can conflict with char $ac_func(); below. */
16963#include <assert.h>
10f2d63a
VZ
16964/* Override any gcc2 internal prototype to avoid an error. */
16965/* We use char because int might match the return type of a gcc2
698dcdb6 16966 builtin and then its argument prototype would still apply. */
4f14bcd8 16967char $ac_func();
698dcdb6
VZ
16968
16969int main() {
4f14bcd8
GD
16970
16971/* The GNU C library defines this for functions which it implements
16972 to always fail with ENOSYS. Some functions are actually named
16973 something starting with __ and the normal name is an alias. */
16974#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16975choke me
16976#else
16977$ac_func();
16978#endif
16979
698dcdb6
VZ
16980; return 0; }
16981EOF
1d1b75ac 16982if { (eval echo configure:16983: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6 16983 rm -rf conftest*
4f14bcd8 16984 eval "ac_cv_func_$ac_func=yes"
698dcdb6
VZ
16985else
16986 echo "configure: failed program was:" >&5
16987 cat conftest.$ac_ext >&5
16988 rm -rf conftest*
4f14bcd8 16989 eval "ac_cv_func_$ac_func=no"
698dcdb6
VZ
16990fi
16991rm -f conftest*
698dcdb6 16992fi
4f14bcd8
GD
16993
16994if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
698dcdb6 16995 echo "$ac_t""yes" 1>&6
4f14bcd8
GD
16996 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16997 cat >> confdefs.h <<EOF
16998#define $ac_tr_func 1
16999EOF
17000 cat >> confdefs.h <<\EOF
17001#define HAVE_INET_ADDR 1
10f2d63a
VZ
17002EOF
17003
17004else
698dcdb6 17005 echo "$ac_t""no" 1>&6
4f14bcd8 17006echo $ac_n "checking for inet_addr in -lnsl""... $ac_c" 1>&6
1d1b75ac 17007echo "configure:17008: checking for inet_addr in -lnsl" >&5
4f14bcd8 17008ac_lib_var=`echo nsl'_'inet_addr | sed 'y%./+-%__p_%'`
698dcdb6
VZ
17009if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
17010 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 17011else
698dcdb6 17012 ac_save_LIBS="$LIBS"
4f14bcd8 17013LIBS="-lnsl $LIBS"
698dcdb6 17014cat > conftest.$ac_ext <<EOF
1d1b75ac 17015#line 17016 "configure"
10f2d63a
VZ
17016#include "confdefs.h"
17017/* Override any gcc2 internal prototype to avoid an error. */
17018/* We use char because int might match the return type of a gcc2
698dcdb6 17019 builtin and then its argument prototype would still apply. */
4f14bcd8 17020char inet_addr();
698dcdb6
VZ
17021
17022int main() {
4f14bcd8 17023inet_addr()
698dcdb6
VZ
17024; return 0; }
17025EOF
1d1b75ac 17026if { (eval echo configure:17027: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
17027 rm -rf conftest*
17028 eval "ac_cv_lib_$ac_lib_var=yes"
17029else
17030 echo "configure: failed program was:" >&5
17031 cat conftest.$ac_ext >&5
17032 rm -rf conftest*
17033 eval "ac_cv_lib_$ac_lib_var=no"
17034fi
17035rm -f conftest*
17036LIBS="$ac_save_LIBS"
17037
17038fi
17039if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
17040 echo "$ac_t""yes" 1>&6
4f14bcd8 17041 INET_LINK="nsl"
10f2d63a 17042else
698dcdb6 17043 echo "$ac_t""no" 1>&6
4f14bcd8 17044echo $ac_n "checking for inet_addr in -lresolv""... $ac_c" 1>&6
1d1b75ac 17045echo "configure:17046: checking for inet_addr in -lresolv" >&5
4f14bcd8 17046ac_lib_var=`echo resolv'_'inet_addr | sed 'y%./+-%__p_%'`
698dcdb6
VZ
17047if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
17048 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 17049else
698dcdb6 17050 ac_save_LIBS="$LIBS"
4f14bcd8 17051LIBS="-lresolv $LIBS"
698dcdb6 17052cat > conftest.$ac_ext <<EOF
1d1b75ac 17053#line 17054 "configure"
10f2d63a
VZ
17054#include "confdefs.h"
17055/* Override any gcc2 internal prototype to avoid an error. */
17056/* We use char because int might match the return type of a gcc2
698dcdb6 17057 builtin and then its argument prototype would still apply. */
4f14bcd8 17058char inet_addr();
698dcdb6
VZ
17059
17060int main() {
4f14bcd8 17061inet_addr()
698dcdb6
VZ
17062; return 0; }
17063EOF
1d1b75ac 17064if { (eval echo configure:17065: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
17065 rm -rf conftest*
17066 eval "ac_cv_lib_$ac_lib_var=yes"
17067else
17068 echo "configure: failed program was:" >&5
17069 cat conftest.$ac_ext >&5
17070 rm -rf conftest*
17071 eval "ac_cv_lib_$ac_lib_var=no"
17072fi
17073rm -f conftest*
17074LIBS="$ac_save_LIBS"
17075
17076fi
17077if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
17078 echo "$ac_t""yes" 1>&6
4f14bcd8 17079 INET_LINK="resolv"
698dcdb6 17080else
4f14bcd8 17081 echo "$ac_t""no" 1>&6
3c011993 17082echo $ac_n "checking for inet_addr in -lsocket""... $ac_c" 1>&6
1d1b75ac 17083echo "configure:17084: checking for inet_addr in -lsocket" >&5
3c011993
VZ
17084ac_lib_var=`echo socket'_'inet_addr | sed 'y%./+-%__p_%'`
17085if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
17086 echo $ac_n "(cached) $ac_c" 1>&6
17087else
17088 ac_save_LIBS="$LIBS"
17089LIBS="-lsocket $LIBS"
17090cat > conftest.$ac_ext <<EOF
1d1b75ac 17091#line 17092 "configure"
3c011993
VZ
17092#include "confdefs.h"
17093/* Override any gcc2 internal prototype to avoid an error. */
17094/* We use char because int might match the return type of a gcc2
17095 builtin and then its argument prototype would still apply. */
17096char inet_addr();
17097
17098int main() {
17099inet_addr()
17100; return 0; }
17101EOF
1d1b75ac 17102if { (eval echo configure:17103: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3c011993
VZ
17103 rm -rf conftest*
17104 eval "ac_cv_lib_$ac_lib_var=yes"
17105else
17106 echo "configure: failed program was:" >&5
17107 cat conftest.$ac_ext >&5
17108 rm -rf conftest*
17109 eval "ac_cv_lib_$ac_lib_var=no"
17110fi
17111rm -f conftest*
17112LIBS="$ac_save_LIBS"
17113
17114fi
17115if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
17116 echo "$ac_t""yes" 1>&6
17117 INET_LINK="socket"
17118
17119else
17120 echo "$ac_t""no" 1>&6
17121fi
17122
17123
4f14bcd8 17124fi
698dcdb6 17125
4f14bcd8 17126
698dcdb6 17127fi
4f14bcd8
GD
17128
17129
698dcdb6
VZ
17130
17131fi
4f14bcd8
GD
17132done
17133
17134
17135for ac_func in inet_aton
17136do
17137echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1d1b75ac 17138echo "configure:17139: checking for $ac_func" >&5
4f14bcd8 17139if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
698dcdb6
VZ
17140 echo $ac_n "(cached) $ac_c" 1>&6
17141else
4f14bcd8 17142 cat > conftest.$ac_ext <<EOF
1d1b75ac 17143#line 17144 "configure"
f6bcfd97 17144#include "confdefs.h"
4f14bcd8
GD
17145/* System header to define __stub macros and hopefully few prototypes,
17146 which can conflict with char $ac_func(); below. */
17147#include <assert.h>
f6bcfd97
BP
17148/* Override any gcc2 internal prototype to avoid an error. */
17149/* We use char because int might match the return type of a gcc2
698dcdb6 17150 builtin and then its argument prototype would still apply. */
4f14bcd8 17151char $ac_func();
698dcdb6
VZ
17152
17153int main() {
4f14bcd8
GD
17154
17155/* The GNU C library defines this for functions which it implements
17156 to always fail with ENOSYS. Some functions are actually named
17157 something starting with __ and the normal name is an alias. */
17158#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17159choke me
17160#else
17161$ac_func();
17162#endif
17163
698dcdb6
VZ
17164; return 0; }
17165EOF
1d1b75ac 17166if { (eval echo configure:17167: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6 17167 rm -rf conftest*
4f14bcd8 17168 eval "ac_cv_func_$ac_func=yes"
698dcdb6
VZ
17169else
17170 echo "configure: failed program was:" >&5
17171 cat conftest.$ac_ext >&5
17172 rm -rf conftest*
4f14bcd8 17173 eval "ac_cv_func_$ac_func=no"
698dcdb6
VZ
17174fi
17175rm -f conftest*
698dcdb6 17176fi
4f14bcd8
GD
17177
17178if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
698dcdb6 17179 echo "$ac_t""yes" 1>&6
4f14bcd8
GD
17180 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17181 cat >> confdefs.h <<EOF
17182#define $ac_tr_func 1
17183EOF
17184 cat >> confdefs.h <<\EOF
17185#define HAVE_INET_ATON 1
17186EOF
17187
10f2d63a 17188else
698dcdb6 17189 echo "$ac_t""no" 1>&6
4f14bcd8 17190 echo $ac_n "checking for inet_aton in -l$INET_LINK""... $ac_c" 1>&6
1d1b75ac 17191echo "configure:17192: checking for inet_aton in -l$INET_LINK" >&5
4f14bcd8 17192ac_lib_var=`echo $INET_LINK'_'inet_aton | sed 'y%./+-%__p_%'`
698dcdb6
VZ
17193if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
17194 echo $ac_n "(cached) $ac_c" 1>&6
1e487827 17195else
698dcdb6 17196 ac_save_LIBS="$LIBS"
4f14bcd8 17197LIBS="-l$INET_LINK $LIBS"
698dcdb6 17198cat > conftest.$ac_ext <<EOF
1d1b75ac 17199#line 17200 "configure"
10f2d63a 17200#include "confdefs.h"
6232543b 17201/* Override any gcc2 internal prototype to avoid an error. */
6232543b 17202/* We use char because int might match the return type of a gcc2
698dcdb6 17203 builtin and then its argument prototype would still apply. */
4f14bcd8 17204char inet_aton();
698dcdb6
VZ
17205
17206int main() {
4f14bcd8 17207inet_aton()
698dcdb6
VZ
17208; return 0; }
17209EOF
1d1b75ac 17210if { (eval echo configure:17211: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
17211 rm -rf conftest*
17212 eval "ac_cv_lib_$ac_lib_var=yes"
17213else
17214 echo "configure: failed program was:" >&5
17215 cat conftest.$ac_ext >&5
17216 rm -rf conftest*
17217 eval "ac_cv_lib_$ac_lib_var=no"
17218fi
17219rm -f conftest*
17220LIBS="$ac_save_LIBS"
10f2d63a 17221
698dcdb6
VZ
17222fi
17223if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
17224 echo "$ac_t""yes" 1>&6
4f14bcd8
GD
17225 cat >> confdefs.h <<\EOF
17226#define HAVE_INET_ATON 1
17227EOF
17228
698dcdb6
VZ
17229else
17230 echo "$ac_t""no" 1>&6
10f2d63a
VZ
17231fi
17232
4f14bcd8 17233
10f2d63a 17234fi
4f14bcd8 17235done
10f2d63a 17236
4f14bcd8
GD
17237
17238if test "x$INET_LINK" != "x"; then
17239 cat >> confdefs.h <<\EOF
17240#define HAVE_INET_ADDR 1
17241EOF
17242
3d63bc3a 17243 INET_LINK=" -l$INET_LINK"
6232543b 17244fi
10f2d63a 17245
1e487827 17246fi
703e0a69 17247
698dcdb6 17248
4f14bcd8
GD
17249cat > confcache <<\EOF
17250# This file is a shell script that caches the results of configure
17251# tests run on this system so they can be shared between configure
17252# scripts and configure runs. It is not useful on other systems.
17253# If it contains results you don't want to keep, you may remove or edit it.
17254#
17255# By default, configure uses ./config.cache as the cache file,
17256# creating it if it does not exist already. You can give configure
17257# the --cache-file=FILE option to use a different cache file; that is
17258# what configure does when it calls configure scripts in
17259# subdirectories, so they share the cache.
17260# Giving --cache-file=/dev/null disables caching, for debugging configure.
17261# config.status only pays attention to the cache file if you give it the
17262# --recheck option to rerun configure.
17263#
f6bcfd97 17264EOF
4f14bcd8
GD
17265# The following way of writing the cache mishandles newlines in values,
17266# but we know of no workaround that is simple, portable, and efficient.
17267# So, don't put newlines in cache variables' values.
17268# Ultrix sh set writes to stderr and can't be redirected directly,
17269# and sets the high bit in the cache file unless we assign to the vars.
17270(set) 2>&1 |
17271 case `(ac_space=' '; set | grep ac_space) 2>&1` in
17272 *ac_space=\ *)
17273 # `set' does not quote correctly, so add quotes (double-quote substitution
17274 # turns \\\\ into \\, and sed turns \\ into \).
17275 sed -n \
17276 -e "s/'/'\\\\''/g" \
17277 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
17278 ;;
17279 *)
17280 # `set' quotes correctly as required by POSIX, so do not add quotes.
17281 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
17282 ;;
17283 esac >> confcache
17284if cmp -s $cache_file confcache; then
17285 :
17286else
17287 if test -w $cache_file; then
17288 echo "updating cache $cache_file"
17289 cat confcache > $cache_file
f6bcfd97 17290 else
4f14bcd8 17291 echo "not updating unwritable cache $cache_file"
f6bcfd97 17292 fi
4f14bcd8
GD
17293fi
17294rm -f confcache
f6bcfd97 17295
4f14bcd8
GD
17296
17297
009fead0 17298CPP_MT_FLAG=
4f14bcd8
GD
17299if test "$TOOLKIT" != "MSW"; then
17300
009fead0 17301
7274f1c7 17302 THREADS_LINK=
009fead0 17303 THREADS_CFLAGS=
7274f1c7
RL
17304
17305 if test "$wxUSE_THREADS" = "yes" ; then
17306 if test "$wxUSE_WINE" = 1 ; then
156b2523 17307 echo "configure: warning: Threads are not supported under WINE... disabled" 1>&2
7274f1c7
RL
17308 wxUSE_THREADS="no"
17309 elif test "$USE_BEOS" = 1; then
156b2523 17310 echo "configure: warning: BeOS threads are not yet supported... disabled" 1>&2
7274f1c7
RL
17311 wxUSE_THREADS="no"
17312 fi
4f14bcd8 17313 fi
4f14bcd8 17314
7274f1c7 17315 if test "$wxUSE_THREADS" = "yes" ; then
009fead0 17316
3010d50a 17317
009fead0
VZ
17318 THREAD_OPTS="-pthread"
17319 case "${host}" in
17320 *-*-solaris2* | *-*-sunos4* )
17321 if test "x$GCC" = "xyes"; then
126be6b4 17322 THREAD_OPTS="-pthreads $THREAD_OPTS"
009fead0
VZ
17323 else
17324 THREAD_OPTS="-mt $THREAD_OPTS"
17325 fi
17326 ;;
17327 *-*-freebsd*)
17328 THREAD_OPTS="-kthread lthread $THREAD_OPTS c_r"
17329 ;;
4101db81 17330 *-*-darwin*)
8f4a9a10 17331 THREAD_OPTS=""
4101db81 17332 ;;
8f4a9a10 17333 *-*-aix*)
009fead0
VZ
17334 THREAD_OPTS="pthreads"
17335 ;;
009fead0 17336 esac
4f14bcd8 17337
02a1dfba 17338 THREAD_OPTS="$THREAD_OPTS pthread none"
595e0e44 17339
009fead0
VZ
17340 THREADS_OK=no
17341 for flag in $THREAD_OPTS; do
17342 case $flag in
17343 none)
17344 echo $ac_n "checking whether pthreads work without any flags""... $ac_c" 1>&6
1d1b75ac 17345echo "configure:17346: checking whether pthreads work without any flags" >&5
009fead0 17346 ;;
698dcdb6 17347
009fead0
VZ
17348 -*)
17349 echo $ac_n "checking whether pthreads work with $flag""... $ac_c" 1>&6
1d1b75ac 17350echo "configure:17351: checking whether pthreads work with $flag" >&5
009fead0
VZ
17351 THREADS_CFLAGS="$flag"
17352 ;;
698dcdb6 17353
009fead0
VZ
17354 *)
17355 echo $ac_n "checking for the pthreads library -l$flag""... $ac_c" 1>&6
1d1b75ac 17356echo "configure:17357: checking for the pthreads library -l$flag" >&5
009fead0
VZ
17357 THREADS_LINK="-l$flag"
17358 ;;
17359 esac
10f2d63a 17360
009fead0
VZ
17361 save_LIBS="$LIBS"
17362 save_CFLAGS="$CFLAGS"
17363 LIBS="$THREADS_LINK $LIBS"
04727afd 17364 CFLAGS="$THREADS_CFLAGS $CFLAGS"
10f2d63a 17365
009fead0 17366 cat > conftest.$ac_ext <<EOF
1d1b75ac 17367#line 17368 "configure"
009fead0
VZ
17368#include "confdefs.h"
17369#include <pthread.h>
4f14bcd8 17370int main() {
009fead0 17371pthread_create(0,0,0,0);
698dcdb6
VZ
17372; return 0; }
17373EOF
1d1b75ac 17374if { (eval echo configure:17375: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6 17375 rm -rf conftest*
009fead0 17376 THREADS_OK=yes
10f2d63a 17377else
698dcdb6
VZ
17378 echo "configure: failed program was:" >&5
17379 cat conftest.$ac_ext >&5
6232543b 17380fi
698dcdb6 17381rm -f conftest*
698dcdb6 17382
009fead0
VZ
17383 LIBS="$save_LIBS"
17384 CFLAGS="$save_CFLAGS"
d9b9876f 17385
009fead0
VZ
17386 echo "$ac_t""$THREADS_OK" 1>&6
17387 if test "x$THREADS_OK" = "xyes"; then
17388 break;
17389 fi
d9b9876f 17390
009fead0
VZ
17391 THREADS_LINK=""
17392 THREADS_CFLAGS=""
17393 done
4f14bcd8 17394
009fead0
VZ
17395 if test "x$THREADS_OK" != "xyes"; then
17396 wxUSE_THREADS=no
17397 echo "configure: warning: No thread support on this system... disabled" 1>&2
17398 else
fe5a9cab
VZ
17399 LIBS="$THREADS_LINK $THREADS_CFLAGS $LIBS"
17400
009fead0 17401 echo $ac_n "checking if more special flags are required for pthreads""... $ac_c" 1>&6
1d1b75ac 17402echo "configure:17403: checking if more special flags are required for pthreads" >&5
009fead0
VZ
17403 flag=no
17404 case "${host}" in
17405 *-aix* | *-freebsd*)
17406 flag="-D_THREAD_SAFE"
17407 ;;
17408 *solaris* | alpha*-osf*)
17409 flag="-D_REENTRANT"
17410 ;;
17411 esac
17412 echo "$ac_t""${flag}" 1>&6
17413 if test "x$flag" != xno; then
04727afd 17414 THREADS_CFLAGS="$THREADS_CFLAGS $flag"
009fead0
VZ
17415 fi
17416
009fead0 17417 if test "x$THREADS_CFLAGS" != "x"; then
04727afd 17418 CFLAGS="$CFLAGS $THREADS_CFLAGS"
009fead0
VZ
17419 CXXFLAGS="$CXXFLAGS $THREADS_CFLAGS"
17420 fi
17421 fi
4f14bcd8 17422 fi
4f14bcd8 17423
7274f1c7
RL
17424 if test "$wxUSE_THREADS" = "yes" ; then
17425 for ac_func in thr_setconcurrency
4f14bcd8
GD
17426do
17427echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1d1b75ac 17428echo "configure:17429: checking for $ac_func" >&5
4f14bcd8 17429if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
698dcdb6
VZ
17430 echo $ac_n "(cached) $ac_c" 1>&6
17431else
4f14bcd8 17432 cat > conftest.$ac_ext <<EOF
1d1b75ac 17433#line 17434 "configure"
d9b9876f 17434#include "confdefs.h"
4f14bcd8
GD
17435/* System header to define __stub macros and hopefully few prototypes,
17436 which can conflict with char $ac_func(); below. */
17437#include <assert.h>
17438/* Override any gcc2 internal prototype to avoid an error. */
17439/* We use char because int might match the return type of a gcc2
17440 builtin and then its argument prototype would still apply. */
17441char $ac_func();
17442
698dcdb6 17443int main() {
d9b9876f 17444
4f14bcd8
GD
17445/* The GNU C library defines this for functions which it implements
17446 to always fail with ENOSYS. Some functions are actually named
17447 something starting with __ and the normal name is an alias. */
17448#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17449choke me
17450#else
17451$ac_func();
17452#endif
17453
698dcdb6
VZ
17454; return 0; }
17455EOF
1d1b75ac 17456if { (eval echo configure:17457: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6 17457 rm -rf conftest*
4f14bcd8 17458 eval "ac_cv_func_$ac_func=yes"
d9b9876f 17459else
698dcdb6
VZ
17460 echo "configure: failed program was:" >&5
17461 cat conftest.$ac_ext >&5
17462 rm -rf conftest*
4f14bcd8 17463 eval "ac_cv_func_$ac_func=no"
6232543b 17464fi
698dcdb6 17465rm -f conftest*
1e487827 17466fi
698dcdb6 17467
4f14bcd8
GD
17468if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17469 echo "$ac_t""yes" 1>&6
17470 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17471 cat >> confdefs.h <<EOF
17472#define $ac_tr_func 1
d9b9876f 17473EOF
4f14bcd8
GD
17474
17475else
17476 echo "$ac_t""no" 1>&6
10f2d63a 17477fi
4f14bcd8 17478done
10f2d63a 17479
10f2d63a 17480
7274f1c7 17481 for ac_hdr in sched.h
4f14bcd8
GD
17482do
17483ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
17484echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1d1b75ac 17485echo "configure:17486: checking for $ac_hdr" >&5
4f14bcd8
GD
17486if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
17487 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 17488else
4f14bcd8 17489 cat > conftest.$ac_ext <<EOF
1d1b75ac 17490#line 17491 "configure"
4f14bcd8
GD
17491#include "confdefs.h"
17492#include <$ac_hdr>
13111b2a 17493EOF
4f14bcd8 17494ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1d1b75ac 17495{ (eval echo configure:17496: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4f14bcd8
GD
17496ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
17497if test -z "$ac_err"; then
17498 rm -rf conftest*
17499 eval "ac_cv_header_$ac_safe=yes"
17500else
17501 echo "$ac_err" >&5
17502 echo "configure: failed program was:" >&5
17503 cat conftest.$ac_ext >&5
17504 rm -rf conftest*
17505 eval "ac_cv_header_$ac_safe=no"
13111b2a 17506fi
4f14bcd8 17507rm -f conftest*
10f2d63a 17508fi
4f14bcd8
GD
17509if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
17510 echo "$ac_t""yes" 1>&6
17511 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
698dcdb6 17512 cat >> confdefs.h <<EOF
4f14bcd8 17513#define $ac_tr_hdr 1
f6bcfd97 17514EOF
4f14bcd8
GD
17515
17516else
17517 echo "$ac_t""no" 1>&6
f6bcfd97 17518fi
4f14bcd8 17519done
f6bcfd97 17520
009fead0
VZ
17521 if test "$ac_cv_header_sched_h" = "yes"; then
17522 echo $ac_n "checking for sched_yield""... $ac_c" 1>&6
1d1b75ac 17523echo "configure:17524: checking for sched_yield" >&5
009fead0 17524if eval "test \"`echo '$''{'ac_cv_func_sched_yield'+set}'`\" = set"; then
4f14bcd8
GD
17525 echo $ac_n "(cached) $ac_c" 1>&6
17526else
009fead0 17527 cat > conftest.$ac_ext <<EOF
1d1b75ac 17528#line 17529 "configure"
4f14bcd8 17529#include "confdefs.h"
009fead0
VZ
17530/* System header to define __stub macros and hopefully few prototypes,
17531 which can conflict with char sched_yield(); below. */
17532#include <assert.h>
4f14bcd8
GD
17533/* Override any gcc2 internal prototype to avoid an error. */
17534/* We use char because int might match the return type of a gcc2
17535 builtin and then its argument prototype would still apply. */
17536char sched_yield();
10f2d63a 17537
4f14bcd8 17538int main() {
009fead0
VZ
17539
17540/* The GNU C library defines this for functions which it implements
17541 to always fail with ENOSYS. Some functions are actually named
17542 something starting with __ and the normal name is an alias. */
17543#if defined (__stub_sched_yield) || defined (__stub___sched_yield)
17544choke me
17545#else
17546sched_yield();
17547#endif
17548
4f14bcd8 17549; return 0; }
10f2d63a 17550EOF
1d1b75ac 17551if { (eval echo configure:17552: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4f14bcd8 17552 rm -rf conftest*
009fead0 17553 eval "ac_cv_func_sched_yield=yes"
10f2d63a 17554else
4f14bcd8
GD
17555 echo "configure: failed program was:" >&5
17556 cat conftest.$ac_ext >&5
17557 rm -rf conftest*
009fead0 17558 eval "ac_cv_func_sched_yield=no"
10f2d63a 17559fi
4f14bcd8 17560rm -f conftest*
4f14bcd8 17561fi
009fead0
VZ
17562
17563if eval "test \"`echo '$ac_cv_func_'sched_yield`\" = yes"; then
4f14bcd8
GD
17564 echo "$ac_t""yes" 1>&6
17565 cat >> confdefs.h <<\EOF
17566#define HAVE_SCHED_YIELD 1
10f2d63a
VZ
17567EOF
17568
4f14bcd8
GD
17569else
17570 echo "$ac_t""no" 1>&6
009fead0
VZ
17571
17572 echo $ac_n "checking for sched_yield in -lposix4""... $ac_c" 1>&6
1d1b75ac 17573echo "configure:17574: checking for sched_yield in -lposix4" >&5
4f14bcd8
GD
17574ac_lib_var=`echo posix4'_'sched_yield | sed 'y%./+-%__p_%'`
17575if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
17576 echo $ac_n "(cached) $ac_c" 1>&6
17577else
17578 ac_save_LIBS="$LIBS"
17579LIBS="-lposix4 $LIBS"
17580cat > conftest.$ac_ext <<EOF
1d1b75ac 17581#line 17582 "configure"
4f14bcd8
GD
17582#include "confdefs.h"
17583/* Override any gcc2 internal prototype to avoid an error. */
17584/* We use char because int might match the return type of a gcc2
17585 builtin and then its argument prototype would still apply. */
17586char sched_yield();
47c13eb7 17587
4f14bcd8
GD
17588int main() {
17589sched_yield()
17590; return 0; }
10f2d63a 17591EOF
1d1b75ac 17592if { (eval echo configure:17593: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4f14bcd8
GD
17593 rm -rf conftest*
17594 eval "ac_cv_lib_$ac_lib_var=yes"
10f2d63a 17595else
4f14bcd8
GD
17596 echo "configure: failed program was:" >&5
17597 cat conftest.$ac_ext >&5
17598 rm -rf conftest*
17599 eval "ac_cv_lib_$ac_lib_var=no"
10f2d63a 17600fi
4f14bcd8
GD
17601rm -f conftest*
17602LIBS="$ac_save_LIBS"
10f2d63a 17603
54276ccf 17604fi
4f14bcd8
GD
17605if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
17606 echo "$ac_t""yes" 1>&6
17607 cat >> confdefs.h <<\EOF
17608#define HAVE_SCHED_YIELD 1
54276ccf 17609EOF
3d63bc3a 17610 POSIX4_LINK=" -lposix4"
4f14bcd8
GD
17611else
17612 echo "$ac_t""no" 1>&6
17613echo "configure: warning: wxThread::Yield will not work properly" 1>&2
009fead0 17614
54276ccf
VZ
17615fi
17616
009fead0
VZ
17617
17618
4f14bcd8 17619fi
698dcdb6 17620
009fead0 17621 fi
10f2d63a 17622
7274f1c7 17623 HAVE_PRIOR_FUNCS=0
009fead0 17624 echo $ac_n "checking for pthread_attr_getschedpolicy""... $ac_c" 1>&6
1d1b75ac 17625echo "configure:17626: checking for pthread_attr_getschedpolicy" >&5
009fead0 17626if eval "test \"`echo '$''{'ac_cv_func_pthread_attr_getschedpolicy'+set}'`\" = set"; then
698dcdb6
VZ
17627 echo $ac_n "(cached) $ac_c" 1>&6
17628else
009fead0 17629 cat > conftest.$ac_ext <<EOF
1d1b75ac 17630#line 17631 "configure"
422107f9 17631#include "confdefs.h"
009fead0
VZ
17632/* System header to define __stub macros and hopefully few prototypes,
17633 which can conflict with char pthread_attr_getschedpolicy(); below. */
17634#include <assert.h>
4f14bcd8
GD
17635/* Override any gcc2 internal prototype to avoid an error. */
17636/* We use char because int might match the return type of a gcc2
17637 builtin and then its argument prototype would still apply. */
17638char pthread_attr_getschedpolicy();
17639
17640int main() {
009fead0
VZ
17641
17642/* The GNU C library defines this for functions which it implements
17643 to always fail with ENOSYS. Some functions are actually named
17644 something starting with __ and the normal name is an alias. */
17645#if defined (__stub_pthread_attr_getschedpolicy) || defined (__stub___pthread_attr_getschedpolicy)
17646choke me
17647#else
17648pthread_attr_getschedpolicy();
17649#endif
17650
4f14bcd8 17651; return 0; }
698dcdb6 17652EOF
1d1b75ac 17653if { (eval echo configure:17654: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6 17654 rm -rf conftest*
009fead0 17655 eval "ac_cv_func_pthread_attr_getschedpolicy=yes"
422107f9 17656else
698dcdb6 17657 echo "configure: failed program was:" >&5
422107f9 17658 cat conftest.$ac_ext >&5
698dcdb6 17659 rm -rf conftest*
009fead0 17660 eval "ac_cv_func_pthread_attr_getschedpolicy=no"
422107f9 17661fi
698dcdb6 17662rm -f conftest*
422107f9 17663fi
009fead0
VZ
17664
17665if eval "test \"`echo '$ac_cv_func_'pthread_attr_getschedpolicy`\" = yes"; then
698dcdb6 17666 echo "$ac_t""yes" 1>&6
009fead0 17667 echo $ac_n "checking for pthread_attr_setschedparam""... $ac_c" 1>&6
1d1b75ac 17668echo "configure:17669: checking for pthread_attr_setschedparam" >&5
009fead0 17669if eval "test \"`echo '$''{'ac_cv_func_pthread_attr_setschedparam'+set}'`\" = set"; then
698dcdb6 17670 echo $ac_n "(cached) $ac_c" 1>&6
422107f9 17671else
009fead0 17672 cat > conftest.$ac_ext <<EOF
1d1b75ac 17673#line 17674 "configure"
422107f9 17674#include "confdefs.h"
009fead0
VZ
17675/* System header to define __stub macros and hopefully few prototypes,
17676 which can conflict with char pthread_attr_setschedparam(); below. */
17677#include <assert.h>
422107f9
VZ
17678/* Override any gcc2 internal prototype to avoid an error. */
17679/* We use char because int might match the return type of a gcc2
698dcdb6 17680 builtin and then its argument prototype would still apply. */
4f14bcd8 17681char pthread_attr_setschedparam();
698dcdb6
VZ
17682
17683int main() {
009fead0
VZ
17684
17685/* The GNU C library defines this for functions which it implements
17686 to always fail with ENOSYS. Some functions are actually named
17687 something starting with __ and the normal name is an alias. */
17688#if defined (__stub_pthread_attr_setschedparam) || defined (__stub___pthread_attr_setschedparam)
17689choke me
17690#else
17691pthread_attr_setschedparam();
17692#endif
17693
698dcdb6
VZ
17694; return 0; }
17695EOF
1d1b75ac 17696if { (eval echo configure:17697: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6 17697 rm -rf conftest*
009fead0 17698 eval "ac_cv_func_pthread_attr_setschedparam=yes"
698dcdb6
VZ
17699else
17700 echo "configure: failed program was:" >&5
17701 cat conftest.$ac_ext >&5
17702 rm -rf conftest*
009fead0 17703 eval "ac_cv_func_pthread_attr_setschedparam=no"
698dcdb6
VZ
17704fi
17705rm -f conftest*
698dcdb6 17706fi
009fead0
VZ
17707
17708if eval "test \"`echo '$ac_cv_func_'pthread_attr_setschedparam`\" = yes"; then
698dcdb6 17709 echo "$ac_t""yes" 1>&6
009fead0 17710 echo $ac_n "checking for sched_get_priority_max""... $ac_c" 1>&6
1d1b75ac 17711echo "configure:17712: checking for sched_get_priority_max" >&5
009fead0 17712if eval "test \"`echo '$''{'ac_cv_func_sched_get_priority_max'+set}'`\" = set"; then
698dcdb6
VZ
17713 echo $ac_n "(cached) $ac_c" 1>&6
17714else
009fead0 17715 cat > conftest.$ac_ext <<EOF
1d1b75ac 17716#line 17717 "configure"
422107f9 17717#include "confdefs.h"
009fead0
VZ
17718/* System header to define __stub macros and hopefully few prototypes
17719else
17720 echo "$ac_t""no" 1>&6
17721which can conflict with char sched_get_priority_max(); below. */
17722#include <assert.h>
4f14bcd8
GD
17723/* Override any gcc2 internal prototype to avoid an error. */
17724/* We use char because int might match the return type of a gcc2
17725 builtin and then its argument prototype would still apply. */
17726char sched_get_priority_max();
17727
17728int main() {
009fead0
VZ
17729
17730/* The GNU C library defines this for functions which it implements
17731 to always fail with ENOSYS. Some functions are actually named
17732 something starting with __ and the normal name is an alias. */
17733#if defined (__stub_sched_get_priority_max) || defined (__stub___sched_get_priority_max)
17734choke me
17735#else
17736sched_get_priority_max();
17737#endif
17738
4f14bcd8 17739; return 0; }
698dcdb6 17740EOF
1d1b75ac 17741if { (eval echo configure:17742: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6 17742 rm -rf conftest*
009fead0 17743 eval "ac_cv_func_sched_get_priority_max=yes"
422107f9 17744else
698dcdb6 17745 echo "configure: failed program was:" >&5
422107f9 17746 cat conftest.$ac_ext >&5
698dcdb6 17747 rm -rf conftest*
009fead0 17748 eval "ac_cv_func_sched_get_priority_max=no"
422107f9 17749fi
698dcdb6 17750rm -f conftest*
422107f9 17751fi
009fead0
VZ
17752
17753if eval "test \"`echo '$ac_cv_func_'sched_get_priority_max`\" = yes"; then
698dcdb6 17754 echo "$ac_t""yes" 1>&6
4f14bcd8
GD
17755 HAVE_PRIOR_FUNCS=1
17756else
17757 echo "$ac_t""no" 1>&6
17758echo $ac_n "checking for sched_get_priority_max in -lposix4""... $ac_c" 1>&6
1d1b75ac 17759echo "configure:17760: checking for sched_get_priority_max in -lposix4" >&5
4f14bcd8 17760ac_lib_var=`echo posix4'_'sched_get_priority_max | sed 'y%./+-%__p_%'`
698dcdb6
VZ
17761if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
17762 echo $ac_n "(cached) $ac_c" 1>&6
422107f9 17763else
698dcdb6 17764 ac_save_LIBS="$LIBS"
4f14bcd8 17765LIBS="-lposix4 $LIBS"
698dcdb6 17766cat > conftest.$ac_ext <<EOF
1d1b75ac 17767#line 17768 "configure"
422107f9
VZ
17768#include "confdefs.h"
17769/* Override any gcc2 internal prototype to avoid an error. */
17770/* We use char because int might match the return type of a gcc2
698dcdb6 17771 builtin and then its argument prototype would still apply. */
4f14bcd8 17772char sched_get_priority_max();
698dcdb6
VZ
17773
17774int main() {
4f14bcd8 17775sched_get_priority_max()
698dcdb6
VZ
17776; return 0; }
17777EOF
1d1b75ac 17778if { (eval echo configure:17779: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
17779 rm -rf conftest*
17780 eval "ac_cv_lib_$ac_lib_var=yes"
17781else
17782 echo "configure: failed program was:" >&5
17783 cat conftest.$ac_ext >&5
17784 rm -rf conftest*
17785 eval "ac_cv_lib_$ac_lib_var=no"
17786fi
17787rm -f conftest*
17788LIBS="$ac_save_LIBS"
17789
17790fi
17791if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
17792 echo "$ac_t""yes" 1>&6
4f14bcd8 17793
7274f1c7
RL
17794 HAVE_PRIOR_FUNCS=1
17795 POSIX4_LINK=" -lposix4"
17796
698dcdb6
VZ
17797else
17798 echo "$ac_t""no" 1>&6
422107f9
VZ
17799fi
17800
7274f1c7 17801
422107f9
VZ
17802fi
17803
7274f1c7 17804
4f14bcd8
GD
17805else
17806 echo "$ac_t""no" 1>&6
10f2d63a
VZ
17807fi
17808
7274f1c7 17809
4f14bcd8 17810fi
463abc64 17811
463abc64 17812
7274f1c7
RL
17813 if test "$HAVE_PRIOR_FUNCS" = 1; then
17814 cat >> confdefs.h <<\EOF
4f14bcd8 17815#define HAVE_THREAD_PRIORITY_FUNCTIONS 1
698dcdb6 17816EOF
463abc64 17817
7274f1c7
RL
17818 else
17819 echo "configure: warning: Setting thread priority will not work" 1>&2
17820 fi
463abc64 17821
009fead0 17822 echo $ac_n "checking for pthread_cancel""... $ac_c" 1>&6
1d1b75ac 17823echo "configure:17824: checking for pthread_cancel" >&5
009fead0 17824if eval "test \"`echo '$''{'ac_cv_func_pthread_cancel'+set}'`\" = set"; then
698dcdb6 17825 echo $ac_n "(cached) $ac_c" 1>&6
422107f9 17826else
009fead0 17827 cat > conftest.$ac_ext <<EOF
1d1b75ac 17828#line 17829 "configure"
422107f9 17829#include "confdefs.h"
009fead0
VZ
17830/* System header to define __stub macros and hopefully few prototypes,
17831 which can conflict with char pthread_cancel(); below. */
17832#include <assert.h>
422107f9
VZ
17833/* Override any gcc2 internal prototype to avoid an error. */
17834/* We use char because int might match the return type of a gcc2
698dcdb6 17835 builtin and then its argument prototype would still apply. */
4f14bcd8 17836char pthread_cancel();
698dcdb6
VZ
17837
17838int main() {
009fead0
VZ
17839
17840/* The GNU C library defines this for functions which it implements
17841 to always fail with ENOSYS. Some functions are actually named
17842 something starting with __ and the normal name is an alias. */
17843#if defined (__stub_pthread_cancel) || defined (__stub___pthread_cancel)
17844choke me
17845#else
17846pthread_cancel();
17847#endif
17848
698dcdb6
VZ
17849; return 0; }
17850EOF
1d1b75ac 17851if { (eval echo configure:17852: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6 17852 rm -rf conftest*
009fead0 17853 eval "ac_cv_func_pthread_cancel=yes"
698dcdb6
VZ
17854else
17855 echo "configure: failed program was:" >&5
17856 cat conftest.$ac_ext >&5
17857 rm -rf conftest*
009fead0 17858 eval "ac_cv_func_pthread_cancel=no"
698dcdb6
VZ
17859fi
17860rm -f conftest*
698dcdb6 17861fi
009fead0
VZ
17862
17863if eval "test \"`echo '$ac_cv_func_'pthread_cancel`\" = yes"; then
698dcdb6 17864 echo "$ac_t""yes" 1>&6
4f14bcd8
GD
17865 cat >> confdefs.h <<\EOF
17866#define HAVE_PTHREAD_CANCEL 1
17867EOF
17868
698dcdb6
VZ
17869else
17870 echo "$ac_t""no" 1>&6
4f14bcd8 17871echo "configure: warning: wxThread::Kill() will not work properly" 1>&2
422107f9
VZ
17872fi
17873
422107f9 17874
7274f1c7 17875 echo $ac_n "checking for pthread_cleanup_push/pop""... $ac_c" 1>&6
1d1b75ac 17876echo "configure:17877: checking for pthread_cleanup_push/pop" >&5
4f14bcd8
GD
17877if eval "test \"`echo '$''{'wx_cv_func_pthread_cleanup_push'+set}'`\" = set"; then
17878 echo $ac_n "(cached) $ac_c" 1>&6
17879else
17880
7274f1c7 17881 cat > conftest.$ac_ext <<EOF
1d1b75ac 17882#line 17883 "configure"
4f14bcd8
GD
17883#include "confdefs.h"
17884#include <pthread.h>
17885int main() {
17886
7274f1c7
RL
17887 pthread_cleanup_push(NULL, NULL);
17888 pthread_cleanup_pop(0);
17889
4f14bcd8
GD
17890; return 0; }
17891EOF
1d1b75ac 17892if { (eval echo configure:17893: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4f14bcd8
GD
17893 rm -rf conftest*
17894
7274f1c7
RL
17895 wx_cv_func_pthread_cleanup_push=yes
17896
4f14bcd8
GD
17897else
17898 echo "configure: failed program was:" >&5
17899 cat conftest.$ac_ext >&5
17900 rm -rf conftest*
17901
7274f1c7
RL
17902 wx_cv_func_pthread_cleanup_push=no
17903
4f14bcd8
GD
17904fi
17905rm -f conftest*
7274f1c7 17906
10f2d63a
VZ
17907fi
17908
4f14bcd8
GD
17909echo "$ac_t""$wx_cv_func_pthread_cleanup_push" 1>&6
17910
7274f1c7
RL
17911 if test "$wx_cv_func_pthread_cleanup_push" = "yes"; then
17912 cat >> confdefs.h <<\EOF
4f14bcd8 17913#define HAVE_THREAD_CLEANUP_FUNCTIONS 1
c7a2bf27
RR
17914EOF
17915
7274f1c7 17916 fi
4f14bcd8 17917
7274f1c7 17918
19bc6aad 17919 if test "x$wx_cv_lib_glibc21" = "xyes"; then
7274f1c7
RL
17920 CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE"
17921 fi
4f14bcd8 17922
7274f1c7 17923 echo $ac_n "checking for pthread_mutexattr_t""... $ac_c" 1>&6
1d1b75ac 17924echo "configure:17925: checking for pthread_mutexattr_t" >&5
4f14bcd8 17925if eval "test \"`echo '$''{'wx_cv_type_pthread_mutexattr_t'+set}'`\" = set"; then
698dcdb6
VZ
17926 echo $ac_n "(cached) $ac_c" 1>&6
17927else
4f14bcd8 17928
7274f1c7 17929 cat > conftest.$ac_ext <<EOF
1d1b75ac 17930#line 17931 "configure"
0dcf9893 17931#include "confdefs.h"
4f14bcd8
GD
17932#include <pthread.h>
17933int main() {
17934
7274f1c7
RL
17935 pthread_mutexattr_t attr;
17936 pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
17937
4f14bcd8 17938; return 0; }
698dcdb6 17939EOF
1d1b75ac 17940if { (eval echo configure:17941: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6 17941 rm -rf conftest*
4f14bcd8 17942
7274f1c7
RL
17943 wx_cv_type_pthread_mutexattr_t=yes
17944
3fed1840 17945else
698dcdb6 17946 echo "configure: failed program was:" >&5
3fed1840 17947 cat conftest.$ac_ext >&5
698dcdb6 17948 rm -rf conftest*
4f14bcd8 17949
7274f1c7
RL
17950 wx_cv_type_pthread_mutexattr_t=no
17951
4f14bcd8 17952
3fed1840 17953fi
698dcdb6 17954rm -f conftest*
7274f1c7 17955
3fed1840 17956fi
4f14bcd8
GD
17957
17958echo "$ac_t""$wx_cv_type_pthread_mutexattr_t" 1>&6
17959
7274f1c7
RL
17960 if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then
17961 cat >> confdefs.h <<\EOF
4f14bcd8
GD
17962#define HAVE_PTHREAD_MUTEXATTR_T 1
17963EOF
17964
7274f1c7
RL
17965 else
17966 echo $ac_n "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER""... $ac_c" 1>&6
1d1b75ac 17967echo "configure:17968: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5
4f14bcd8 17968if eval "test \"`echo '$''{'wx_cv_type_pthread_rec_mutex_init'+set}'`\" = set"; then
698dcdb6 17969 echo $ac_n "(cached) $ac_c" 1>&6
3fed1840 17970else
4f14bcd8 17971
7274f1c7 17972 cat > conftest.$ac_ext <<EOF
1d1b75ac 17973#line 17974 "configure"
3fed1840 17974#include "confdefs.h"
4f14bcd8 17975#include <pthread.h>
698dcdb6 17976int main() {
4f14bcd8 17977
7274f1c7
RL
17978 pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;
17979
698dcdb6
VZ
17980; return 0; }
17981EOF
1d1b75ac 17982if { (eval echo configure:17983: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6 17983 rm -rf conftest*
4f14bcd8 17984
7274f1c7
RL
17985 wx_cv_type_pthread_rec_mutex_init=yes
17986
698dcdb6
VZ
17987else
17988 echo "configure: failed program was:" >&5
17989 cat conftest.$ac_ext >&5
17990 rm -rf conftest*
4f14bcd8 17991
7274f1c7
RL
17992 wx_cv_type_pthread_rec_mutex_init=no
17993
4f14bcd8 17994
698dcdb6
VZ
17995fi
17996rm -f conftest*
7274f1c7 17997
3fed1840
RR
17998fi
17999
4f14bcd8 18000echo "$ac_t""$wx_cv_type_pthread_rec_mutex_init" 1>&6
7274f1c7
RL
18001 if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then
18002 cat >> confdefs.h <<\EOF
4f14bcd8
GD
18003#define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1
18004EOF
3fed1840 18005
7274f1c7
RL
18006 else
18007 echo "configure: warning: wxMutex won't be recursive on this platform" 1>&2
18008 fi
18009 fi
7274f1c7 18010 fi
3fed1840 18011
4f14bcd8
GD
18012fi
18013
18014if test "$wxUSE_THREADS" = "yes"; then
3a922bb4 18015 cat >> confdefs.h <<\EOF
4f14bcd8 18016#define wxUSE_THREADS 1
7b6058cd
GD
18017EOF
18018
4f14bcd8 18019
4f14bcd8 18020 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread"
698dcdb6 18021else
4f14bcd8
GD
18022 if test "$ac_cv_func_strtok_r" = "yes"; then
18023 echo $ac_n "checking if -D_REENTRANT is needed""... $ac_c" 1>&6
1d1b75ac 18024echo "configure:18025: checking if -D_REENTRANT is needed" >&5
4f14bcd8
GD
18025 if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then
18026 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D_REENTRANT"
18027 echo "$ac_t""yes" 1>&6
18028 else
18029 echo "$ac_t""no" 1>&6
18030 fi
18031 fi
18032fi
18033
18034if test "$WXGTK20" = 1 ; then
18035 cat >> confdefs.h <<EOF
18036#define __WXGTK20__ $WXGTK20
698dcdb6 18037EOF
4f14bcd8
GD
18038
18039 WXGTK12=1
10f2d63a 18040fi
4f14bcd8
GD
18041
18042if test "$WXGTK12" = 1 ; then
18043 cat >> confdefs.h <<EOF
18044#define __WXGTK12__ $WXGTK12
18045EOF
18046
10f2d63a 18047fi
698dcdb6 18048
4f14bcd8
GD
18049if test "$WXGTK127" = 1 ; then
18050 cat >> confdefs.h <<EOF
18051#define __WXGTK127__ $WXGTK127
698dcdb6 18052EOF
4f14bcd8 18053
698dcdb6 18054fi
10f2d63a 18055
4f14bcd8
GD
18056WXDEBUG=
18057
18058if test "$wxUSE_DEBUG_INFO" = "yes" ; then
18059 WXDEBUG="-g"
18060 wxUSE_OPTIMISE=no
698dcdb6 18061fi
4f14bcd8
GD
18062
18063if test "$wxUSE_DEBUG_GDB" = "yes" ; then
18064 wxUSE_DEBUG_INFO=yes
18065 WXDEBUG="-ggdb"
10f2d63a
VZ
18066fi
18067
4f14bcd8
GD
18068if test "$wxUSE_DEBUG_FLAG" = "yes" ; then
18069 cat >> confdefs.h <<\EOF
18070#define WXDEBUG 1
18071EOF
18072
18073 WXDEBUG_DEFINE="-D__WXDEBUG__"
10f2d63a 18074else
4f14bcd8
GD
18075 if test "$wxUSE_GTK" = 1 ; then
18076 WXDEBUG_DEFINE="-DGTK_NO_CHECK_CASTS"
18077 fi
18078fi
18079
18080if test "$wxUSE_MEM_TRACING" = "yes" ; then
18081 cat >> confdefs.h <<\EOF
18082#define wxUSE_MEMORY_TRACING 1
18083EOF
18084
18085 cat >> confdefs.h <<\EOF
18086#define wxUSE_GLOBAL_MEMORY_OPERATORS 1
18087EOF
18088
18089 cat >> confdefs.h <<\EOF
18090#define wxUSE_DEBUG_NEW_ALWAYS 1
18091EOF
18092
18093 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck"
18094fi
18095
18096if test "$wxUSE_DMALLOC" = "yes" ; then
3d63bc3a 18097 DMALLOC_LIBS="-ldmalloc"
4f14bcd8
GD
18098fi
18099
18100PROFILE=
18101if test "$wxUSE_PROFILE" = "yes" ; then
3d63bc3a 18102 PROFILE=" -pg"
10f2d63a
VZ
18103fi
18104
009fead0
VZ
18105CODE_GEN_FLAGS=
18106CODE_GEN_FLAGS_CXX=
88e30f2b 18107if test "$GCC" = "yes" ; then
4f14bcd8
GD
18108 if test "$wxUSE_NO_RTTI" = "yes" ; then
18109 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-rtti"
3a922bb4 18110 fi
4f14bcd8
GD
18111 if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
18112 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-exceptions"
18113 fi
18114 if test "$wxUSE_PERMISSIVE" = "yes" ; then
18115 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fpermissive"
18116 fi
4f14bcd8
GD
18117 if test "$USE_WIN32" = 1 ; then
18118 # I'm not even really sure what this was ever added to solve,
18119 # but someone added it for mingw native builds, so I guess
18120 # they had a reason, right??
18121 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fno-pcc-struct-return"
18122 fi
1d1b75ac
VZ
18123
18124 case "${host}" in
18125 powerpc*-*-aix* )
18126 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -mminimal-toc"
18127 ;;
18128 esac
4f14bcd8
GD
18129fi
18130
4f14bcd8
GD
18131if test "$wxUSE_OPTIMISE" = "no" ; then
18132 OPTIMISE=
18133else
18134 if test "$GCC" = yes ; then
18135 OPTIMISE="-O2"
18136 case "${host}" in
18137 i586-*-*|i686-*-* )
18138 OPTIMISE="${OPTIMISE} "
18139 ;;
18140 esac
18141 else
18142 OPTIMISE="-O"
18143 fi
18144fi
18145
18146if test "$WXWIN_COMPATIBILITY_2" = "yes"; then
18147 cat >> confdefs.h <<\EOF
18148#define WXWIN_COMPATIBILITY_2 1
18149EOF
18150
18151
18152 WXWIN_COMPATIBILITY_2_2="yes"
18153fi
18154
0c9a1c32 18155if test "x$WXWIN_COMPATIBILITY_2_2" != "xno"; then
4f14bcd8
GD
18156 cat >> confdefs.h <<\EOF
18157#define WXWIN_COMPATIBILITY_2_2 1
18158EOF
18159
10f2d63a
VZ
18160fi
18161
698dcdb6 18162
10f2d63a 18163if test "$wxUSE_GUI" = "yes"; then
698dcdb6 18164 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18165#define wxUSE_GUI 1
18166EOF
18167
698dcdb6 18168
10f2d63a 18169 else
698dcdb6 18170 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18171#define wxUSE_NOGUI 1
18172EOF
18173
18174fi
18175
698dcdb6 18176
10f2d63a 18177if test "$wxUSE_UNIX" = "yes"; then
698dcdb6 18178 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18179#define wxUSE_UNIX 1
18180EOF
18181
18182fi
18183
698dcdb6 18184
10f2d63a 18185if test "$wxUSE_APPLE_IEEE" = "yes"; then
698dcdb6 18186 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18187#define wxUSE_APPLE_IEEE 1
18188EOF
18189
18190fi
18191
1e6feb95
VZ
18192if test "$wxUSE_TIMER" = "yes"; then
18193 cat >> confdefs.h <<\EOF
18194#define wxUSE_TIMER 1
18195EOF
18196
18197fi
18198
10f2d63a 18199if test "$wxUSE_WAVE" = "yes"; then
698dcdb6 18200 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18201#define wxUSE_WAVE 1
18202EOF
18203
18204fi
18205
1e6feb95
VZ
18206if test "$wxUSE_CMDLINE_PARSER" = "yes"; then
18207 cat >> confdefs.h <<\EOF
18208#define wxUSE_CMDLINE_PARSER 1
18209EOF
18210
18211fi
18212
18213if test "$wxUSE_STOPWATCH" = "yes"; then
18214 cat >> confdefs.h <<\EOF
18215#define wxUSE_STOPWATCH 1
18216EOF
18217
18218fi
18219
18220if test "$wxUSE_DATETIME" = "yes"; then
18221 cat >> confdefs.h <<\EOF
18222#define wxUSE_DATETIME 1
18223EOF
18224
18225fi
18226
18227if test "$wxUSE_TIMEDATE" = "yes"; then
18228 cat >> confdefs.h <<\EOF
18229#define wxUSE_TIMEDATE 1
18230EOF
18231
18232fi
18233
10f2d63a 18234if test "$wxUSE_FILE" = "yes"; then
698dcdb6 18235 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18236#define wxUSE_FILE 1
18237EOF
18238
18239fi
18240
1e6feb95
VZ
18241if test "$wxUSE_FFILE" = "yes"; then
18242 cat >> confdefs.h <<\EOF
18243#define wxUSE_FFILE 1
18244EOF
18245
18246fi
18247
24528b0c 18248if test "$wxUSE_FILESYSTEM" = "yes"; then
698dcdb6 18249 cat >> confdefs.h <<\EOF
24528b0c
VS
18250#define wxUSE_FILESYSTEM 1
18251EOF
18252
18253fi
18254
10f2d63a 18255if test "$wxUSE_FS_INET" = "yes"; then
698dcdb6 18256 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18257#define wxUSE_FS_INET 1
18258EOF
18259
18260fi
18261
18262if test "$wxUSE_FS_ZIP" = "yes"; then
698dcdb6 18263 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18264#define wxUSE_FS_ZIP 1
18265EOF
18266
18267fi
18268
18269if test "$wxUSE_ZIPSTREAM" = "yes"; then
698dcdb6 18270 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18271#define wxUSE_ZIPSTREAM 1
18272EOF
18273
18274fi
18275
eb4efbdc 18276if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
698dcdb6 18277 cat >> confdefs.h <<\EOF
eb4efbdc
VZ
18278#define wxUSE_ON_FATAL_EXCEPTION 1
18279EOF
18280
18281fi
18282
4f3c5f06 18283if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
698dcdb6 18284 cat >> confdefs.h <<\EOF
4f3c5f06
VZ
18285#define wxUSE_SNGLINST_CHECKER 1
18286EOF
18287
18288fi
18289
10f2d63a 18290if test "$wxUSE_BUSYINFO" = "yes"; then
698dcdb6 18291 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18292#define wxUSE_BUSYINFO 1
18293EOF
18294
18295fi
18296
18297if test "$wxUSE_STD_IOSTREAM" = "yes"; then
698dcdb6 18298 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18299#define wxUSE_STD_IOSTREAM 1
18300EOF
18301
18302fi
18303
a3a584a7
VZ
18304if test "$wxUSE_TEXTBUFFER" = "yes"; then
18305 cat >> confdefs.h <<\EOF
18306#define wxUSE_TEXTBUFFER 1
18307EOF
18308
18309fi
18310
10f2d63a 18311if test "$wxUSE_TEXTFILE" = "yes"; then
a3a584a7 18312 if test "$wxUSE_FILE" != "yes" -o "$wxUSE_TEXTBUFFER" != "yes" ; then
156b2523 18313 echo "configure: warning: wxTextFile requires wxFile and wxTextBuffer... disabled" 1>&2
10f2d63a 18314 else
698dcdb6 18315 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18316#define wxUSE_TEXTFILE 1
18317EOF
18318
18319 fi
18320fi
18321
18322if test "$wxUSE_CONFIG" = "yes" ; then
18323 if test "$wxUSE_TEXTFILE" != "yes"; then
156b2523 18324 echo "configure: warning: wxConfig requires wxTextFile... disabled" 1>&2
10f2d63a 18325 else
698dcdb6 18326 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18327#define wxUSE_CONFIG 1
18328EOF
18329
18330 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config"
18331 fi
18332fi
18333
18334if test "$wxUSE_INTL" = "yes" ; then
18335 if test "$wxUSE_FILE" != "yes"; then
156b2523 18336 echo "configure: warning: I18n code requires wxFile... disabled" 1>&2
10f2d63a 18337 else
698dcdb6 18338 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18339#define wxUSE_INTL 1
18340EOF
18341
18342 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat"
f6bcfd97 18343 GUIDIST="$GUIDIST INTL_DIST"
10f2d63a
VZ
18344 fi
18345fi
18346
18347if test "$wxUSE_LOG" = "yes"; then
698dcdb6 18348 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18349#define wxUSE_LOG 1
18350EOF
18351
d73be714
VZ
18352
18353 if test "$wxUSE_LOGGUI" = "yes"; then
18354 cat >> confdefs.h <<\EOF
18355#define wxUSE_LOGGUI 1
18356EOF
18357
18358 fi
18359
18360 if test "$wxUSE_LOGWINDOW" = "yes"; then
18361 cat >> confdefs.h <<\EOF
18362#define wxUSE_LOGWINDOW 1
69d27ff7
MB
18363EOF
18364
18365 fi
18366
18367 if test "$wxUSE_LOGDIALOG" = "yes"; then
18368 cat >> confdefs.h <<\EOF
18369#define wxUSE_LOG_DIALOG 1
d73be714
VZ
18370EOF
18371
18372 fi
10f2d63a
VZ
18373fi
18374
18375if test "$wxUSE_LONGLONG" = "yes"; then
698dcdb6 18376 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18377#define wxUSE_LONGLONG 1
18378EOF
18379
18380fi
18381
e8f65ba6 18382if test "$wxUSE_GEOMETRY" = "yes"; then
698dcdb6 18383 cat >> confdefs.h <<\EOF
e8f65ba6
RR
18384#define wxUSE_GEOMETRY 1
18385EOF
18386
18387fi
18388
10f2d63a 18389if test "$wxUSE_DIALUP_MANAGER" = "yes" ; then
698dcdb6 18390 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18391#define wxUSE_DIALUP_MANAGER 1
18392EOF
18393
70f7a477 18394 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup"
10f2d63a
VZ
18395fi
18396
18397if test "$wxUSE_STREAMS" = "yes" ; then
698dcdb6 18398 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18399#define wxUSE_STREAMS 1
18400EOF
18401
18402fi
18403
1e487827 18404
1e6feb95 18405if test "$wxUSE_DATETIME" = "yes"; then
698dcdb6 18406 for ac_func in strptime
83307f33 18407do
698dcdb6 18408echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1d1b75ac 18409echo "configure:18410: checking for $ac_func" >&5
698dcdb6
VZ
18410if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18411 echo $ac_n "(cached) $ac_c" 1>&6
18412else
18413 cat > conftest.$ac_ext <<EOF
1d1b75ac 18414#line 18415 "configure"
83307f33
VZ
18415#include "confdefs.h"
18416/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 18417 which can conflict with char $ac_func(); below. */
83307f33
VZ
18418#include <assert.h>
18419/* Override any gcc2 internal prototype to avoid an error. */
18420/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
18421 builtin and then its argument prototype would still apply. */
18422char $ac_func();
18423
18424int main() {
83307f33
VZ
18425
18426/* The GNU C library defines this for functions which it implements
18427 to always fail with ENOSYS. Some functions are actually named
18428 something starting with __ and the normal name is an alias. */
18429#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18430choke me
18431#else
698dcdb6 18432$ac_func();
83307f33
VZ
18433#endif
18434
698dcdb6 18435; return 0; }
83307f33 18436EOF
1d1b75ac 18437if { (eval echo configure:18438: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
18438 rm -rf conftest*
18439 eval "ac_cv_func_$ac_func=yes"
18440else
18441 echo "configure: failed program was:" >&5
18442 cat conftest.$ac_ext >&5
18443 rm -rf conftest*
18444 eval "ac_cv_func_$ac_func=no"
18445fi
18446rm -f conftest*
18447fi
83307f33 18448
698dcdb6
VZ
18449if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18450 echo "$ac_t""yes" 1>&6
18451 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18452 cat >> confdefs.h <<EOF
18453#define $ac_tr_func 1
18454EOF
18455
18456else
18457 echo "$ac_t""no" 1>&6
83307f33
VZ
18458fi
18459done
18460
1e487827 18461
62cc730f 18462 echo $ac_n "checking for timezone variable in <time.h>""... $ac_c" 1>&6
1d1b75ac 18463echo "configure:18464: checking for timezone variable in <time.h>" >&5
698dcdb6
VZ
18464if eval "test \"`echo '$''{'wx_cv_var_timezone'+set}'`\" = set"; then
18465 echo $ac_n "(cached) $ac_c" 1>&6
18466else
18467
18468 cat > conftest.$ac_ext <<EOF
1d1b75ac 18469#line 18470 "configure"
360d6699
VZ
18470#include "confdefs.h"
18471
b4085ce6 18472 #include <time.h>
698dcdb6
VZ
18473
18474int main() {
360d6699
VZ
18475
18476 int tz;
4f11a343 18477 tz = timezone;
698dcdb6
VZ
18478
18479; return 0; }
18480EOF
1d1b75ac 18481if { (eval echo configure:18482: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6
VZ
18482 rm -rf conftest*
18483
4f11a343 18484 wx_cv_var_timezone=timezone
698dcdb6 18485
360d6699 18486else
698dcdb6
VZ
18487 echo "configure: failed program was:" >&5
18488 cat conftest.$ac_ext >&5
18489 rm -rf conftest*
18490
18491 cat > conftest.$ac_ext <<EOF
1d1b75ac 18492#line 18493 "configure"
360d6699
VZ
18493#include "confdefs.h"
18494
b4085ce6 18495 #include <time.h>
698dcdb6
VZ
18496
18497int main() {
360d6699
VZ
18498
18499 int tz;
18500 tz = _timezone;
698dcdb6
VZ
18501
18502; return 0; }
18503EOF
1d1b75ac 18504if { (eval echo configure:18505: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6
VZ
18505 rm -rf conftest*
18506
360d6699 18507 wx_cv_var_timezone=_timezone
698dcdb6 18508
5357c8e8 18509else
698dcdb6
VZ
18510 echo "configure: failed program was:" >&5
18511 cat conftest.$ac_ext >&5
18512 rm -rf conftest*
18513
18514 cat > conftest.$ac_ext <<EOF
1d1b75ac 18515#line 18516 "configure"
5357c8e8
VZ
18516#include "confdefs.h"
18517
b4085ce6 18518 #include <time.h>
698dcdb6
VZ
18519
18520int main() {
5357c8e8
VZ
18521
18522 int tz;
4f11a343 18523 tz = __timezone;
698dcdb6
VZ
18524
18525; return 0; }
18526EOF
1d1b75ac 18527if { (eval echo configure:18528: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6
VZ
18528 rm -rf conftest*
18529
4f11a343 18530 wx_cv_var_timezone=__timezone
698dcdb6 18531
360d6699 18532else
698dcdb6
VZ
18533 echo "configure: failed program was:" >&5
18534 cat conftest.$ac_ext >&5
18535 rm -rf conftest*
f9bc1684
VS
18536
18537 if test "$USE_DOS" = 0 ; then
62cc730f 18538 echo "configure: warning: no timezone variable" 1>&2
f9bc1684
VS
18539 fi
18540
698dcdb6 18541
360d6699 18542fi
698dcdb6
VZ
18543rm -f conftest*
18544
18545
360d6699 18546fi
698dcdb6
VZ
18547rm -f conftest*
18548
18549
6232543b 18550fi
698dcdb6
VZ
18551rm -f conftest*
18552
18553
1e487827 18554fi
703e0a69 18555
698dcdb6
VZ
18556echo "$ac_t""$wx_cv_var_timezone" 1>&6
18557
f9bc1684 18558 if test "x$wx_cv_var_timezone" != x ; then
698dcdb6 18559 cat >> confdefs.h <<EOF
360d6699
VZ
18560#define WX_TIMEZONE $wx_cv_var_timezone
18561EOF
18562
f9bc1684 18563 fi
698dcdb6
VZ
18564
18565 for ac_func in localtime
afc31813 18566do
698dcdb6 18567echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1d1b75ac 18568echo "configure:18569: checking for $ac_func" >&5
698dcdb6
VZ
18569if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18570 echo $ac_n "(cached) $ac_c" 1>&6
18571else
18572 cat > conftest.$ac_ext <<EOF
1d1b75ac 18573#line 18574 "configure"
10f2d63a 18574#include "confdefs.h"
afc31813 18575/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 18576 which can conflict with char $ac_func(); below. */
afc31813
VZ
18577#include <assert.h>
18578/* Override any gcc2 internal prototype to avoid an error. */
18579/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
18580 builtin and then its argument prototype would still apply. */
18581char $ac_func();
18582
18583int main() {
afc31813
VZ
18584
18585/* The GNU C library defines this for functions which it implements
18586 to always fail with ENOSYS. Some functions are actually named
18587 something starting with __ and the normal name is an alias. */
18588#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18589choke me
18590#else
698dcdb6 18591$ac_func();
afc31813
VZ
18592#endif
18593
698dcdb6 18594; return 0; }
10f2d63a 18595EOF
1d1b75ac 18596if { (eval echo configure:18597: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
18597 rm -rf conftest*
18598 eval "ac_cv_func_$ac_func=yes"
18599else
18600 echo "configure: failed program was:" >&5
18601 cat conftest.$ac_ext >&5
18602 rm -rf conftest*
18603 eval "ac_cv_func_$ac_func=no"
18604fi
18605rm -f conftest*
18606fi
afc31813 18607
698dcdb6
VZ
18608if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18609 echo "$ac_t""yes" 1>&6
18610 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18611 cat >> confdefs.h <<EOF
18612#define $ac_tr_func 1
18613EOF
18614
18615else
18616 echo "$ac_t""no" 1>&6
afc31813
VZ
18617fi
18618done
18619
1e487827 18620
698dcdb6
VZ
18621 if test "$ac_cv_func_localtime" = "yes"; then
18622 echo $ac_n "checking for tm_gmtoff in struct tm""... $ac_c" 1>&6
1d1b75ac 18623echo "configure:18624: checking for tm_gmtoff in struct tm" >&5
698dcdb6
VZ
18624if eval "test \"`echo '$''{'wx_cv_struct_tm_has_gmtoff'+set}'`\" = set"; then
18625 echo $ac_n "(cached) $ac_c" 1>&6
18626else
18627
18628 cat > conftest.$ac_ext <<EOF
1d1b75ac 18629#line 18630 "configure"
0470b1e6
VZ
18630#include "confdefs.h"
18631
b4085ce6 18632 #include <time.h>
698dcdb6
VZ
18633
18634int main() {
0470b1e6
VZ
18635
18636 struct tm tm;
18637 tm.tm_gmtoff++;
698dcdb6
VZ
18638
18639; return 0; }
18640EOF
1d1b75ac 18641if { (eval echo configure:18642: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6
VZ
18642 rm -rf conftest*
18643
f03a98d8 18644 wx_cv_struct_tm_has_gmtoff=yes
698dcdb6 18645
0470b1e6 18646else
698dcdb6
VZ
18647 echo "configure: failed program was:" >&5
18648 cat conftest.$ac_ext >&5
18649 rm -rf conftest*
18650 wx_cv_struct_tm_has_gmtoff=no
18651
0470b1e6 18652fi
698dcdb6
VZ
18653rm -f conftest*
18654
1e487827 18655fi
698dcdb6
VZ
18656
18657echo "$ac_t""$wx_cv_struct_tm_has_gmtoff" 1>&6
6232543b
VS
18658 fi
18659
18660 if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then
698dcdb6 18661 cat >> confdefs.h <<\EOF
6232543b
VS
18662#define WX_GMTOFF_IN_TM 1
18663EOF
0470b1e6 18664
3fcdd07b
VZ
18665 fi
18666
698dcdb6 18667 for ac_func in gettimeofday ftime
3fcdd07b 18668do
698dcdb6 18669echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1d1b75ac 18670echo "configure:18671: checking for $ac_func" >&5
698dcdb6
VZ
18671if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18672 echo $ac_n "(cached) $ac_c" 1>&6
18673else
18674 cat > conftest.$ac_ext <<EOF
1d1b75ac 18675#line 18676 "configure"
3fcdd07b
VZ
18676#include "confdefs.h"
18677/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 18678 which can conflict with char $ac_func(); below. */
3fcdd07b
VZ
18679#include <assert.h>
18680/* Override any gcc2 internal prototype to avoid an error. */
18681/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
18682 builtin and then its argument prototype would still apply. */
18683char $ac_func();
18684
18685int main() {
3fcdd07b
VZ
18686
18687/* The GNU C library defines this for functions which it implements
18688 to always fail with ENOSYS. Some functions are actually named
18689 something starting with __ and the normal name is an alias. */
18690#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18691choke me
18692#else
698dcdb6 18693$ac_func();
3fcdd07b
VZ
18694#endif
18695
698dcdb6
VZ
18696; return 0; }
18697EOF
1d1b75ac 18698if { (eval echo configure:18699: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
18699 rm -rf conftest*
18700 eval "ac_cv_func_$ac_func=yes"
18701else
18702 echo "configure: failed program was:" >&5
18703 cat conftest.$ac_ext >&5
18704 rm -rf conftest*
18705 eval "ac_cv_func_$ac_func=no"
18706fi
18707rm -f conftest*
18708fi
18709
18710if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18711 echo "$ac_t""yes" 1>&6
18712 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18713 cat >> confdefs.h <<EOF
18714#define $ac_tr_func 1
3fcdd07b
VZ
18715EOF
18716 break
698dcdb6
VZ
18717else
18718 echo "$ac_t""no" 1>&6
3fcdd07b
VZ
18719fi
18720done
18721
afc31813 18722
698dcdb6
VZ
18723 if test "$ac_cv_func_gettimeofday" = "yes"; then
18724 echo $ac_n "checking whether gettimeofday takes two arguments""... $ac_c" 1>&6
1d1b75ac 18725echo "configure:18726: checking whether gettimeofday takes two arguments" >&5
698dcdb6
VZ
18726if eval "test \"`echo '$''{'wx_cv_func_gettimeofday_has_2_args'+set}'`\" = set"; then
18727 echo $ac_n "(cached) $ac_c" 1>&6
18728else
18729
18730
18731 ac_ext=C
18732# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1e487827 18733ac_cpp='$CXXCPP $CPPFLAGS'
698dcdb6
VZ
18734ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18735ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18736cross_compiling=$ac_cv_prog_cxx_cross
703e0a69 18737
698dcdb6
VZ
18738
18739 cat > conftest.$ac_ext <<EOF
1d1b75ac 18740#line 18741 "configure"
10f2d63a 18741#include "confdefs.h"
afc31813
VZ
18742
18743 #include <sys/time.h>
18744 #include <unistd.h>
698dcdb6
VZ
18745
18746int main() {
afc31813
VZ
18747
18748 struct timeval tv;
776862b4 18749 gettimeofday(&tv, NULL);
698dcdb6
VZ
18750
18751; return 0; }
18752EOF
1d1b75ac 18753if { (eval echo configure:18754: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6 18754 rm -rf conftest*
afc31813 18755 wx_cv_func_gettimeofday_has_2_args=yes
10f2d63a 18756else
698dcdb6
VZ
18757 echo "configure: failed program was:" >&5
18758 cat conftest.$ac_ext >&5
18759 rm -rf conftest*
18760 cat > conftest.$ac_ext <<EOF
1d1b75ac 18761#line 18762 "configure"
10f2d63a 18762#include "confdefs.h"
afc31813
VZ
18763
18764 #include <sys/time.h>
18765 #include <unistd.h>
698dcdb6
VZ
18766
18767int main() {
afc31813
VZ
18768
18769 struct timeval tv;
18770 gettimeofday(&tv);
698dcdb6
VZ
18771
18772; return 0; }
18773EOF
1d1b75ac 18774if { (eval echo configure:18775: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6 18775 rm -rf conftest*
afc31813 18776 wx_cv_func_gettimeofday_has_2_args=no
10f2d63a 18777else
698dcdb6
VZ
18778 echo "configure: failed program was:" >&5
18779 cat conftest.$ac_ext >&5
18780 rm -rf conftest*
776862b4
VZ
18781
18782 echo "configure: warning: failed to determine number of gettimeofday() arguments" 1>&2
18783 wx_cv_func_gettimeofday_has_2_args=unknown
18784
698dcdb6 18785
10f2d63a 18786fi
698dcdb6
VZ
18787rm -f conftest*
18788
10f2d63a 18789fi
698dcdb6 18790rm -f conftest*
afc31813 18791 ac_ext=c
698dcdb6 18792# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10f2d63a 18793ac_cpp='$CPP $CPPFLAGS'
698dcdb6
VZ
18794ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18795ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18796cross_compiling=$ac_cv_prog_cc_cross
10f2d63a 18797
698dcdb6 18798
afc31813 18799fi
698dcdb6
VZ
18800
18801echo "$ac_t""$wx_cv_func_gettimeofday_has_2_args" 1>&6
c63c7106 18802
afc31813 18803 if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then
698dcdb6 18804 cat >> confdefs.h <<\EOF
afc31813
VZ
18805#define WX_GETTIMEOFDAY_NO_TZ 1
18806EOF
18807
18808 fi
18809 fi
18810
698dcdb6 18811 cat >> confdefs.h <<\EOF
afc31813
VZ
18812#define wxUSE_TIMEDATE 1
18813EOF
18814
18815 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest"
18816fi
18817
698dcdb6 18818
0feee163
VZ
18819if test "$wxUSE_SOCKETS" = "yes"; then
18820 if test "$TOOLKIT" = "X11"; then
18821 echo "configure: warning: wxSocket not yet supported under X11... disabled" 1>&2
18822 wxUSE_SOCKETS="no"
18823 fi
18824fi
b089607b 18825
0feee163
VZ
18826if test "$wxUSE_SOCKETS" = "yes"; then
18827 if test "$TOOLKIT" != "MSW"; then
3a922bb4 18828 echo $ac_n "checking for socket""... $ac_c" 1>&6
1d1b75ac 18829echo "configure:18830: checking for socket" >&5
698dcdb6
VZ
18830if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then
18831 echo $ac_n "(cached) $ac_c" 1>&6
c63c7106 18832else
698dcdb6 18833 cat > conftest.$ac_ext <<EOF
1d1b75ac 18834#line 18835 "configure"
c63c7106
VZ
18835#include "confdefs.h"
18836/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 18837 which can conflict with char socket(); below. */
c63c7106
VZ
18838#include <assert.h>
18839/* Override any gcc2 internal prototype to avoid an error. */
18840/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
18841 builtin and then its argument prototype would still apply. */
18842char socket();
18843
18844int main() {
c63c7106
VZ
18845
18846/* The GNU C library defines this for functions which it implements
18847 to always fail with ENOSYS. Some functions are actually named
18848 something starting with __ and the normal name is an alias. */
18849#if defined (__stub_socket) || defined (__stub___socket)
18850choke me
18851#else
698dcdb6 18852socket();
c63c7106
VZ
18853#endif
18854
698dcdb6
VZ
18855; return 0; }
18856EOF
1d1b75ac 18857if { (eval echo configure:18858: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
18858 rm -rf conftest*
18859 eval "ac_cv_func_socket=yes"
18860else
18861 echo "configure: failed program was:" >&5
18862 cat conftest.$ac_ext >&5
18863 rm -rf conftest*
18864 eval "ac_cv_func_socket=no"
18865fi
18866rm -f conftest*
18867fi
18868
18869if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
18870 echo "$ac_t""yes" 1>&6
c63c7106
VZ
18871 :
18872else
698dcdb6
VZ
18873 echo "$ac_t""no" 1>&6
18874echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
1d1b75ac 18875echo "configure:18876: checking for socket in -lsocket" >&5
698dcdb6
VZ
18876ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'`
18877if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
18878 echo $ac_n "(cached) $ac_c" 1>&6
c63c7106 18879else
698dcdb6 18880 ac_save_LIBS="$LIBS"
c63c7106 18881LIBS="-lsocket $LIBS"
698dcdb6 18882cat > conftest.$ac_ext <<EOF
1d1b75ac 18883#line 18884 "configure"
c63c7106
VZ
18884#include "confdefs.h"
18885/* Override any gcc2 internal prototype to avoid an error. */
18886/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
18887 builtin and then its argument prototype would still apply. */
18888char socket();
18889
18890int main() {
18891socket()
18892; return 0; }
18893EOF
1d1b75ac 18894if { (eval echo configure:18895: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
18895 rm -rf conftest*
18896 eval "ac_cv_lib_$ac_lib_var=yes"
18897else
18898 echo "configure: failed program was:" >&5
18899 cat conftest.$ac_ext >&5
18900 rm -rf conftest*
18901 eval "ac_cv_lib_$ac_lib_var=no"
18902fi
18903rm -f conftest*
18904LIBS="$ac_save_LIBS"
18905
18906fi
18907if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
18908 echo "$ac_t""yes" 1>&6
d558c907
VS
18909 if test "$INET_LINK" != " -lsocket"; then
18910 INET_LINK="$INET_LINK -lsocket"
18911 fi
c63c7106 18912else
698dcdb6 18913 echo "$ac_t""no" 1>&6
afc31813 18914
3a922bb4
RL
18915 echo "configure: warning: socket library not found - sockets will be disabled" 1>&2
18916 wxUSE_SOCKETS=no
18917
698dcdb6 18918
6232543b 18919fi
b089607b 18920
3a922bb4 18921
1e487827 18922fi
afc31813 18923
3a922bb4 18924 fi
0feee163 18925fi
51a9faba 18926
0feee163
VZ
18927if test "$wxUSE_SOCKETS" = "yes" ; then
18928 if test "$TOOLKIT" != "MSW"; then
3a922bb4 18929 echo $ac_n "checking what is the type of the third argument of getsockname""... $ac_c" 1>&6
1d1b75ac 18930echo "configure:18931: checking what is the type of the third argument of getsockname" >&5
698dcdb6
VZ
18931if eval "test \"`echo '$''{'wx_cv_type_getsockname3'+set}'`\" = set"; then
18932 echo $ac_n "(cached) $ac_c" 1>&6
18933else
18934
3a922bb4
RL
18935
18936 ac_ext=C
698dcdb6 18937# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1e487827 18938ac_cpp='$CXXCPP $CPPFLAGS'
698dcdb6
VZ
18939ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18940ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18941cross_compiling=$ac_cv_prog_cxx_cross
703e0a69 18942
698dcdb6 18943
3a922bb4 18944 cat > conftest.$ac_ext <<EOF
1d1b75ac 18945#line 18946 "configure"
afc31813 18946#include "confdefs.h"
51a9faba 18947
3a922bb4
RL
18948 #include <sys/types.h>
18949 #include <sys/socket.h>
18950
698dcdb6 18951int main() {
51a9faba 18952
3a922bb4
RL
18953 socklen_t len;
18954 getsockname(0, 0, &len);
18955
698dcdb6
VZ
18956; return 0; }
18957EOF
1d1b75ac 18958if { (eval echo configure:18959: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6 18959 rm -rf conftest*
51a9faba 18960 wx_cv_type_getsockname3=socklen_t
afc31813 18961else
698dcdb6
VZ
18962 echo "configure: failed program was:" >&5
18963 cat conftest.$ac_ext >&5
18964 rm -rf conftest*
18965 cat > conftest.$ac_ext <<EOF
1d1b75ac 18966#line 18967 "configure"
afc31813 18967#include "confdefs.h"
51a9faba 18968
3a922bb4
RL
18969 #include <sys/types.h>
18970 #include <sys/socket.h>
18971
698dcdb6 18972int main() {
51a9faba 18973
3a922bb4
RL
18974 size_t len;
18975 getsockname(0, 0, &len);
18976
698dcdb6
VZ
18977; return 0; }
18978EOF
1d1b75ac 18979if { (eval echo configure:18980: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6 18980 rm -rf conftest*
51a9faba 18981 wx_cv_type_getsockname3=size_t
afc31813 18982else
698dcdb6
VZ
18983 echo "configure: failed program was:" >&5
18984 cat conftest.$ac_ext >&5
18985 rm -rf conftest*
18986 cat > conftest.$ac_ext <<EOF
1d1b75ac 18987#line 18988 "configure"
afc31813 18988#include "confdefs.h"
51a9faba 18989
3a922bb4
RL
18990 #include <sys/types.h>
18991 #include <sys/socket.h>
18992
698dcdb6 18993int main() {
51a9faba 18994
3a922bb4
RL
18995 int len;
18996 getsockname(0, 0, &len);
18997
698dcdb6
VZ
18998; return 0; }
18999EOF
1d1b75ac 19000if { (eval echo configure:19001: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6 19001 rm -rf conftest*
51a9faba 19002 wx_cv_type_getsockname3=int
afc31813 19003else
698dcdb6
VZ
19004 echo "configure: failed program was:" >&5
19005 cat conftest.$ac_ext >&5
19006 rm -rf conftest*
19007 wx_cv_type_getsockname3=unknown
3a922bb4 19008
afc31813 19009fi
698dcdb6 19010rm -f conftest*
3a922bb4 19011
afc31813 19012fi
698dcdb6 19013rm -f conftest*
3a922bb4 19014
afc31813 19015fi
698dcdb6 19016rm -f conftest*
51a9faba 19017
3a922bb4 19018 ac_ext=c
698dcdb6 19019# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
afc31813 19020ac_cpp='$CPP $CPPFLAGS'
698dcdb6
VZ
19021ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19022ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19023cross_compiling=$ac_cv_prog_cc_cross
afc31813 19024
3a922bb4 19025
51a9faba 19026fi
698dcdb6
VZ
19027
19028echo "$ac_t""$wx_cv_type_getsockname3" 1>&6
51a9faba 19029
3a922bb4
RL
19030 if test "$wx_cv_type_getsockname3" = "unknown"; then
19031 wxUSE_SOCKETS=no
19032 echo "configure: warning: Couldn't find socklen_t synonym for this system" 1>&2
19033 else
19034 cat >> confdefs.h <<EOF
51a9faba
VZ
19035#define SOCKLEN_T $wx_cv_type_getsockname3
19036EOF
19037
3a922bb4 19038 fi
51a9faba
VZ
19039 fi
19040fi
afc31813 19041
51a9faba 19042if test "$wxUSE_SOCKETS" = "yes" ; then
698dcdb6 19043 cat >> confdefs.h <<\EOF
afc31813
VZ
19044#define wxUSE_SOCKETS 1
19045EOF
19046
70f7a477 19047 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets"
afc31813
VZ
19048fi
19049
698dcdb6 19050
dc3d889d
VZ
19051if test "$wxUSE_GUI" = "yes"; then
19052
156b2523
GD
19053 if test "$TOOLKIT" = "MAC"; then
19054 echo "configure: warning: Joystick not yet supported under Mac OS X... disabled" 1>&2
19055 wxUSE_JOYSTICK=no
19056 fi
19057 if test "$TOOLKIT" = "MOTIF"; then
19058 echo "configure: warning: Joystick not yet supported under Motif... disabled" 1>&2
19059 wxUSE_JOYSTICK=no
f79bd02d
JS
19060 fi
19061 if test "$TOOLKIT" = "X11"; then
19062 echo "configure: warning: Joystick not yet supported under X11... disabled" 1>&2
19063 wxUSE_JOYSTICK=no
156b2523
GD
19064 fi
19065
3a922bb4
RL
19066 if test "$TOOLKIT" != "MSW"; then
19067 if test "$wxUSE_JOYSTICK" = "yes"; then
19068 for ac_hdr in linux/joystick.h
10f2d63a 19069do
698dcdb6
VZ
19070ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
19071echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1d1b75ac 19072echo "configure:19073: checking for $ac_hdr" >&5
698dcdb6
VZ
19073if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
19074 echo $ac_n "(cached) $ac_c" 1>&6
19075else
19076 cat > conftest.$ac_ext <<EOF
1d1b75ac 19077#line 19078 "configure"
10f2d63a 19078#include "confdefs.h"
698dcdb6
VZ
19079#include <$ac_hdr>
19080EOF
19081ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1d1b75ac 19082{ (eval echo configure:19083: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
19083ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
19084if test -z "$ac_err"; then
19085 rm -rf conftest*
19086 eval "ac_cv_header_$ac_safe=yes"
10f2d63a 19087else
698dcdb6
VZ
19088 echo "$ac_err" >&5
19089 echo "configure: failed program was:" >&5
10f2d63a 19090 cat conftest.$ac_ext >&5
698dcdb6
VZ
19091 rm -rf conftest*
19092 eval "ac_cv_header_$ac_safe=no"
10f2d63a 19093fi
698dcdb6 19094rm -f conftest*
10f2d63a 19095fi
698dcdb6
VZ
19096if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
19097 echo "$ac_t""yes" 1>&6
19098 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
19099 cat >> confdefs.h <<EOF
19100#define $ac_tr_hdr 1
10f2d63a 19101EOF
698dcdb6
VZ
19102
19103else
19104 echo "$ac_t""no" 1>&6
10f2d63a
VZ
19105fi
19106done
19107
3a922bb4
RL
19108 if test "$ac_cv_header_linux_joystick_h" != "yes"; then
19109 wxUSE_JOYSTICK=no
156b2523 19110 echo "configure: warning: Joystick not supported by this system... disabled" 1>&2
3a922bb4
RL
19111 fi
19112 fi
19113 fi
b089607b 19114
3a922bb4
RL
19115 if test "$wxUSE_JOYSTICK" = "yes"; then
19116 cat >> confdefs.h <<\EOF
10f2d63a
VZ
19117#define wxUSE_JOYSTICK 1
19118EOF
19119
3a922bb4
RL
19120 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest"
19121 fi
dc3d889d
VZ
19122fi
19123
698dcdb6 19124
b089607b
VZ
19125if test "$TOOLKIT" != "MSW"; then
19126
3a922bb4
RL
19127 HAVE_DL_FUNCS=0
19128 HAVE_SHL_FUNCS=0
0b9ab0bd 19129 if test "$wxUSE_DYNAMIC_LOADER" = "yes" -o "$wxUSE_DYNLIB_CLASS" = "yes" ; then
3a922bb4
RL
19130 if test "$USE_DARWIN" = 1; then
19131 HAVE_DL_FUNCS=1
19132 else
19133 for ac_func in dlopen
10f2d63a 19134do
698dcdb6 19135echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1d1b75ac 19136echo "configure:19137: checking for $ac_func" >&5
698dcdb6
VZ
19137if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19138 echo $ac_n "(cached) $ac_c" 1>&6
19139else
19140 cat > conftest.$ac_ext <<EOF
1d1b75ac 19141#line 19142 "configure"
10f2d63a
VZ
19142#include "confdefs.h"
19143/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 19144 which can conflict with char $ac_func(); below. */
10f2d63a
VZ
19145#include <assert.h>
19146/* Override any gcc2 internal prototype to avoid an error. */
19147/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
19148 builtin and then its argument prototype would still apply. */
19149char $ac_func();
19150
19151int main() {
10f2d63a
VZ
19152
19153/* The GNU C library defines this for functions which it implements
19154 to always fail with ENOSYS. Some functions are actually named
19155 something starting with __ and the normal name is an alias. */
19156#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19157choke me
19158#else
698dcdb6 19159$ac_func();
10f2d63a
VZ
19160#endif
19161
698dcdb6
VZ
19162; return 0; }
19163EOF
1d1b75ac 19164if { (eval echo configure:19165: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
19165 rm -rf conftest*
19166 eval "ac_cv_func_$ac_func=yes"
19167else
19168 echo "configure: failed program was:" >&5
19169 cat conftest.$ac_ext >&5
19170 rm -rf conftest*
19171 eval "ac_cv_func_$ac_func=no"
19172fi
19173rm -f conftest*
19174fi
19175
19176if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19177 echo "$ac_t""yes" 1>&6
19178 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19179 cat >> confdefs.h <<EOF
19180#define $ac_tr_func 1
19181EOF
19182
3a922bb4 19183 cat >> confdefs.h <<\EOF
10f2d63a
VZ
19184#define HAVE_DLOPEN 1
19185EOF
19186
3a922bb4
RL
19187 HAVE_DL_FUNCS=1
19188
10f2d63a 19189else
698dcdb6
VZ
19190 echo "$ac_t""no" 1>&6
19191echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
1d1b75ac 19192echo "configure:19193: checking for dlopen in -ldl" >&5
698dcdb6
VZ
19193ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
19194if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
19195 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 19196else
698dcdb6 19197 ac_save_LIBS="$LIBS"
10f2d63a 19198LIBS="-ldl $LIBS"
698dcdb6 19199cat > conftest.$ac_ext <<EOF
1d1b75ac 19200#line 19201 "configure"
10f2d63a
VZ
19201#include "confdefs.h"
19202/* Override any gcc2 internal prototype to avoid an error. */
19203/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
19204 builtin and then its argument prototype would still apply. */
19205char dlopen();
19206
19207int main() {
19208dlopen()
19209; return 0; }
19210EOF
1d1b75ac 19211if { (eval echo configure:19212: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
19212 rm -rf conftest*
19213 eval "ac_cv_lib_$ac_lib_var=yes"
19214else
19215 echo "configure: failed program was:" >&5
19216 cat conftest.$ac_ext >&5
19217 rm -rf conftest*
19218 eval "ac_cv_lib_$ac_lib_var=no"
19219fi
19220rm -f conftest*
19221LIBS="$ac_save_LIBS"
19222
19223fi
19224if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
19225 echo "$ac_t""yes" 1>&6
19226
3a922bb4 19227 cat >> confdefs.h <<\EOF
10f2d63a
VZ
19228#define HAVE_DLOPEN 1
19229EOF
19230
3a922bb4 19231 HAVE_DL_FUNCS=1
3d63bc3a 19232 DL_LINK=" -ldl$DL_LINK"
3a922bb4 19233
10f2d63a 19234else
698dcdb6 19235 echo "$ac_t""no" 1>&6
10f2d63a 19236
3a922bb4 19237 for ac_func in shl_load
10f2d63a 19238do
698dcdb6 19239echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1d1b75ac 19240echo "configure:19241: checking for $ac_func" >&5
698dcdb6
VZ
19241if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19242 echo $ac_n "(cached) $ac_c" 1>&6
19243else
19244 cat > conftest.$ac_ext <<EOF
1d1b75ac 19245#line 19246 "configure"
10f2d63a
VZ
19246#include "confdefs.h"
19247/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 19248 which can conflict with char $ac_func(); below. */
10f2d63a
VZ
19249#include <assert.h>
19250/* Override any gcc2 internal prototype to avoid an error. */
19251/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
19252 builtin and then its argument prototype would still apply. */
19253char $ac_func();
19254
19255int main() {
10f2d63a
VZ
19256
19257/* The GNU C library defines this for functions which it implements
19258 to always fail with ENOSYS. Some functions are actually named
19259 something starting with __ and the normal name is an alias. */
19260#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19261choke me
19262#else
698dcdb6 19263$ac_func();
10f2d63a
VZ
19264#endif
19265
698dcdb6
VZ
19266; return 0; }
19267EOF
1d1b75ac 19268if { (eval echo configure:19269: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
19269 rm -rf conftest*
19270 eval "ac_cv_func_$ac_func=yes"
19271else
19272 echo "configure: failed program was:" >&5
19273 cat conftest.$ac_ext >&5
19274 rm -rf conftest*
19275 eval "ac_cv_func_$ac_func=no"
19276fi
19277rm -f conftest*
19278fi
19279
19280if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19281 echo "$ac_t""yes" 1>&6
19282 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19283 cat >> confdefs.h <<EOF
19284#define $ac_tr_func 1
19285EOF
19286
3a922bb4 19287 cat >> confdefs.h <<\EOF
10f2d63a
VZ
19288#define HAVE_SHL_LOAD 1
19289EOF
19290
3a922bb4
RL
19291 HAVE_SHL_FUNCS=1
19292
10f2d63a 19293else
698dcdb6
VZ
19294 echo "$ac_t""no" 1>&6
19295echo $ac_n "checking for dld in -lshl_load""... $ac_c" 1>&6
1d1b75ac 19296echo "configure:19297: checking for dld in -lshl_load" >&5
698dcdb6
VZ
19297ac_lib_var=`echo shl_load'_'dld | sed 'y%./+-%__p_%'`
19298if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
19299 echo $ac_n "(cached) $ac_c" 1>&6
f6bcfd97 19300else
698dcdb6 19301 ac_save_LIBS="$LIBS"
f6bcfd97 19302LIBS="-lshl_load $LIBS"
698dcdb6 19303cat > conftest.$ac_ext <<EOF
1d1b75ac 19304#line 19305 "configure"
f6bcfd97
BP
19305#include "confdefs.h"
19306/* Override any gcc2 internal prototype to avoid an error. */
19307/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
19308 builtin and then its argument prototype would still apply. */
19309char dld();
19310
19311int main() {
19312dld()
19313; return 0; }
19314EOF
1d1b75ac 19315if { (eval echo configure:19316: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
19316 rm -rf conftest*
19317 eval "ac_cv_lib_$ac_lib_var=yes"
19318else
19319 echo "configure: failed program was:" >&5
19320 cat conftest.$ac_ext >&5
19321 rm -rf conftest*
19322 eval "ac_cv_lib_$ac_lib_var=no"
19323fi
19324rm -f conftest*
19325LIBS="$ac_save_LIBS"
f6bcfd97 19326
698dcdb6
VZ
19327fi
19328if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
19329 echo "$ac_t""yes" 1>&6
19330
3a922bb4 19331 HAVE_SHL_FUNCS=1
3d63bc3a 19332 DL_LINK=" -ldld$DL_LINK"
3a922bb4 19333
698dcdb6
VZ
19334else
19335 echo "$ac_t""no" 1>&6
f6bcfd97
BP
19336fi
19337
3a922bb4 19338
10f2d63a
VZ
19339fi
19340done
19341
3a922bb4 19342
10f2d63a
VZ
19343fi
19344
3a922bb4 19345
10f2d63a
VZ
19346fi
19347done
19348
1e487827 19349
3a922bb4
RL
19350 if test "$HAVE_DL_FUNCS" = 1; then
19351 for ac_func in dlerror
f6bcfd97 19352do
698dcdb6 19353echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1d1b75ac 19354echo "configure:19355: checking for $ac_func" >&5
698dcdb6
VZ
19355if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19356 echo $ac_n "(cached) $ac_c" 1>&6
19357else
19358 cat > conftest.$ac_ext <<EOF
1d1b75ac 19359#line 19360 "configure"
f6bcfd97
BP
19360#include "confdefs.h"
19361/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 19362 which can conflict with char $ac_func(); below. */
f6bcfd97
BP
19363#include <assert.h>
19364/* Override any gcc2 internal prototype to avoid an error. */
19365/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
19366 builtin and then its argument prototype would still apply. */
19367char $ac_func();
19368
19369int main() {
f6bcfd97
BP
19370
19371/* The GNU C library defines this for functions which it implements
19372 to always fail with ENOSYS. Some functions are actually named
19373 something starting with __ and the normal name is an alias. */
19374#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19375choke me
19376#else
698dcdb6 19377$ac_func();
f6bcfd97
BP
19378#endif
19379
698dcdb6
VZ
19380; return 0; }
19381EOF
1d1b75ac 19382if { (eval echo configure:19383: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
19383 rm -rf conftest*
19384 eval "ac_cv_func_$ac_func=yes"
19385else
19386 echo "configure: failed program was:" >&5
19387 cat conftest.$ac_ext >&5
19388 rm -rf conftest*
19389 eval "ac_cv_func_$ac_func=no"
19390fi
19391rm -f conftest*
19392fi
19393
19394if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19395 echo "$ac_t""yes" 1>&6
19396 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19397 cat >> confdefs.h <<EOF
19398#define $ac_tr_func 1
19399EOF
19400 cat >> confdefs.h <<\EOF
f6bcfd97
BP
19401#define HAVE_DLERROR 1
19402EOF
19403
19404else
698dcdb6
VZ
19405 echo "$ac_t""no" 1>&6
19406echo $ac_n "checking for dlerror in -ldl""... $ac_c" 1>&6
1d1b75ac 19407echo "configure:19408: checking for dlerror in -ldl" >&5
698dcdb6
VZ
19408ac_lib_var=`echo dl'_'dlerror | sed 'y%./+-%__p_%'`
19409if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
19410 echo $ac_n "(cached) $ac_c" 1>&6
f6bcfd97 19411else
698dcdb6 19412 ac_save_LIBS="$LIBS"
f6bcfd97 19413LIBS="-ldl $LIBS"
698dcdb6 19414cat > conftest.$ac_ext <<EOF
1d1b75ac 19415#line 19416 "configure"
f6bcfd97
BP
19416#include "confdefs.h"
19417/* Override any gcc2 internal prototype to avoid an error. */
19418/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
19419 builtin and then its argument prototype would still apply. */
19420char dlerror();
19421
19422int main() {
19423dlerror()
19424; return 0; }
19425EOF
1d1b75ac 19426if { (eval echo configure:19427: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
19427 rm -rf conftest*
19428 eval "ac_cv_lib_$ac_lib_var=yes"
19429else
19430 echo "configure: failed program was:" >&5
19431 cat conftest.$ac_ext >&5
19432 rm -rf conftest*
19433 eval "ac_cv_lib_$ac_lib_var=no"
19434fi
19435rm -f conftest*
19436LIBS="$ac_save_LIBS"
19437
19438fi
19439if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
19440 echo "$ac_t""yes" 1>&6
19441 cat >> confdefs.h <<\EOF
f6bcfd97
BP
19442#define HAVE_DLERROR 1
19443EOF
19444
698dcdb6
VZ
19445else
19446 echo "$ac_t""no" 1>&6
f6bcfd97
BP
19447fi
19448
19449fi
19450done
19451
3a922bb4
RL
19452 fi
19453 fi
f6bcfd97 19454
3a922bb4
RL
19455 if test "$HAVE_DL_FUNCS" = 0; then
19456 if test "$HAVE_SHL_FUNCS" = 0; then
19457 if test "$USE_UNIX" = 1; then
19458 echo "configure: warning: Missing dynamic loading support, several features will be disabled" 1>&2
0b9ab0bd 19459 wxUSE_DYNAMIC_LOADER=no
3a922bb4
RL
19460 wxUSE_DYNLIB_CLASS=no
19461 else
19462 echo "configure: warning: Assuming wxLibrary class works on this platform" 1>&2
19463 fi
19464 fi
10f2d63a
VZ
19465 fi
19466 fi
19467fi
19468
0b9ab0bd
RL
19469if test "$wxUSE_DYNAMIC_LOADER" = "yes" ; then
19470 cat >> confdefs.h <<\EOF
19471#define wxUSE_DYNAMIC_LOADER 1
19472EOF
19473
19474elif test "$wxUSE_DYNLIB_CLASS" = "yes" ; then
698dcdb6 19475 cat >> confdefs.h <<\EOF
10f2d63a
VZ
19476#define wxUSE_DYNLIB_CLASS 1
19477EOF
19478
19479fi
19480
698dcdb6 19481
1e6feb95
VZ
19482if test "$wxUSE_FONTMAP" = "yes" ; then
19483 cat >> confdefs.h <<\EOF
19484#define wxUSE_FONTMAP 1
19485EOF
19486
19487fi
19488
10f2d63a 19489if test "$wxUSE_UNICODE" = "yes" ; then
698dcdb6 19490 cat >> confdefs.h <<\EOF
10f2d63a
VZ
19491#define wxUSE_UNICODE 1
19492EOF
19493
bbc3925a
VS
19494
19495 if test "$wxUSE_MSW" != 1; then
19496 wxUSE_UNICODE_MSLU=no
19497 fi
a72a4bfa
VS
19498
19499 if test "$wxUSE_MSW" = 1 -a "$wxUSE_UNICODE_MSLU" = "yes"; then
19500 echo $ac_n "checking for main in -lunicows""... $ac_c" 1>&6
1d1b75ac 19501echo "configure:19502: checking for main in -lunicows" >&5
a72a4bfa
VS
19502ac_lib_var=`echo unicows'_'main | sed 'y%./+-%__p_%'`
19503if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
19504 echo $ac_n "(cached) $ac_c" 1>&6
19505else
19506 ac_save_LIBS="$LIBS"
19507LIBS="-lunicows $LIBS"
19508cat > conftest.$ac_ext <<EOF
1d1b75ac 19509#line 19510 "configure"
a72a4bfa
VS
19510#include "confdefs.h"
19511
19512int main() {
19513main()
19514; return 0; }
19515EOF
1d1b75ac 19516if { (eval echo configure:19517: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a72a4bfa
VS
19517 rm -rf conftest*
19518 eval "ac_cv_lib_$ac_lib_var=yes"
19519else
19520 echo "configure: failed program was:" >&5
19521 cat conftest.$ac_ext >&5
19522 rm -rf conftest*
19523 eval "ac_cv_lib_$ac_lib_var=no"
19524fi
19525rm -f conftest*
19526LIBS="$ac_save_LIBS"
19527
19528fi
19529if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
19530 echo "$ac_t""yes" 1>&6
19531
19532 cat >> confdefs.h <<\EOF
19533#define wxUSE_UNICODE_MSLU 1
19534EOF
19535
19536
19537else
19538 echo "$ac_t""no" 1>&6
19539
19540 echo "configure: warning: Compiler doesn't support MSLU (libunicows.a), disabled.
19541 Applications will only run on Windows NT/2000/XP!" 1>&2
19542 wxUSE_UNICODE_MSLU=no
19543
19544fi
19545
19546 fi
10f2d63a
VZ
19547fi
19548
10f2d63a 19549if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then
698dcdb6 19550 cat >> confdefs.h <<\EOF
10f2d63a
VZ
19551#define wxUSE_EXPERIMENTAL_PRINTF 1
19552EOF
19553
19554fi
19555
698dcdb6 19556
698dcdb6 19557
10f2d63a
VZ
19558IODBC_C_SRC=""
19559if test "$wxUSE_ODBC" = "yes" ; then
698dcdb6 19560 cat >> confdefs.h <<\EOF
10f2d63a
VZ
19561#define wxUSE_ODBC 1
19562EOF
19563
19564 WXODBCFLAG="-D_IODBC_"
19565 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db"
10f2d63a
VZ
19566fi
19567
698dcdb6 19568
10f2d63a 19569if test "$wxUSE_POSTSCRIPT" = "yes" ; then
698dcdb6 19570 cat >> confdefs.h <<\EOF
10f2d63a
VZ
19571#define wxUSE_POSTSCRIPT 1
19572EOF
19573
19574fi
19575
698dcdb6 19576cat >> confdefs.h <<\EOF
10f2d63a
VZ
19577#define wxUSE_AFM_FOR_POSTSCRIPT 1
19578EOF
19579
698dcdb6
VZ
19580
19581cat >> confdefs.h <<\EOF
10f2d63a
VZ
19582#define wxUSE_NORMALIZED_PS_FONTS 1
19583EOF
19584
698dcdb6
VZ
19585
19586
10f2d63a 19587if test "$wxUSE_CONSTRAINTS" = "yes"; then
698dcdb6 19588 cat >> confdefs.h <<\EOF
10f2d63a
VZ
19589#define wxUSE_CONSTRAINTS 1
19590EOF
19591
19592 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout"
19593fi
19594
19595if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
fc26f4ab 19596 if test "$wxUSE_UNIVERSAL" = "yes"; then
0feee163 19597 echo "configure: warning: MDI not yet supported for wxUniversal... disabled" 1>&2
fc26f4ab
RL
19598 wxUSE_MDI_ARCHITECTURE=no
19599 fi
19600
19601 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
19602 cat >> confdefs.h <<\EOF
10f2d63a
VZ
19603#define wxUSE_MDI_ARCHITECTURE 1
19604EOF
19605
fc26f4ab
RL
19606 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi"
19607 fi
10f2d63a
VZ
19608fi
19609
19610if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then
698dcdb6 19611 cat >> confdefs.h <<\EOF
10f2d63a
VZ
19612#define wxUSE_DOC_VIEW_ARCHITECTURE 1
19613EOF
19614
19615 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview"
19616 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
19617 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi"
19618 fi
19619fi
19620
19621if test "$wxUSE_HELP" = "yes"; then
698dcdb6 19622 cat >> confdefs.h <<\EOF
10f2d63a
VZ
19623#define wxUSE_HELP 1
19624EOF
19625
19626 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help"
3379ed37 19627
77e13408 19628 if test "$wxUSE_MSW" = 1; then
031d8228 19629 if test "$wxUSE_MS_HTML_HELP" = "yes"; then
3b7bc64a 19630 cat >> confdefs.h <<\EOF
29fd3c0c
VS
19631#define wxUSE_MS_HTML_HELP 1
19632EOF
19633
3e44f09d 19634 fi
3379ed37 19635 fi
031d8228
VS
19636
19637 if test "$wxUSE_WXHTML_HELP" = "yes"; then
19638 if test "$wxUSE_HTML" = "yes"; then
19639 cat >> confdefs.h <<\EOF
19640#define wxUSE_WXHTML_HELP 1
19641EOF
19642
19643 else
19644 echo "configure: warning: Cannot use wxHTML-based help without wxHTML so it won't be compiled" 1>&2
19645 wxUSE_WXHTML_HELP=no
19646 fi
19647 fi
10f2d63a
VZ
19648fi
19649
19650if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
19651 if test "$wxUSE_CONSTRAINTS" != "yes"; then
698dcdb6 19652 echo "configure: warning: Printing support cannot be used without constraints so it won't be compiled without it" 1>&2
10f2d63a 19653 else
698dcdb6 19654 cat >> confdefs.h <<\EOF
10f2d63a
VZ
19655#define wxUSE_PRINTING_ARCHITECTURE 1
19656EOF
19657
19658 fi
19659 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing"
19660fi
19661
19662if test "$wxUSE_PROLOGIO" = "yes" ; then
698dcdb6 19663 cat >> confdefs.h <<\EOF
10f2d63a
VZ
19664#define wxUSE_PROLOGIO 1
19665EOF
19666
19667fi
19668
19669if test "$wxUSE_RESOURCES" = "yes" ; then
e334d0ea
JS
19670 if test "$wxUSE_NANOX" = "yes"; then
19671 echo "configure: warning: Cannot use resource database functions in NanoX" 1>&2
19672 else
19673 cat >> confdefs.h <<\EOF
10f2d63a
VZ
19674#define wxUSE_RESOURCES 1
19675EOF
19676
e334d0ea
JS
19677 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS resource"
19678 fi
10f2d63a
VZ
19679fi
19680
19681if test "$wxUSE_X_RESOURCES" = "yes"; then
698dcdb6 19682 cat >> confdefs.h <<\EOF
10f2d63a
VZ
19683#define wxUSE_X_RESOURCES 1
19684EOF
19685
19686fi
19687
698dcdb6 19688
77e13408
RL
19689if test "$wxUSE_MSW" = 1 -a \( "$wxUSE_DATAOBJ" = "yes" \
19690 -o "$wxUSE_CLIPBOARD" = "yes" \
19691 -o "$wxUSE_DRAG_AND_DROP" = "yes" \) ; then
2b9bdf71 19692 for ac_hdr in ole2.h
10f2d63a 19693do
698dcdb6
VZ
19694ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
19695echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1d1b75ac 19696echo "configure:19697: checking for $ac_hdr" >&5
698dcdb6
VZ
19697if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
19698 echo $ac_n "(cached) $ac_c" 1>&6
19699else
19700 cat > conftest.$ac_ext <<EOF
1d1b75ac 19701#line 19702 "configure"
10f2d63a 19702#include "confdefs.h"
698dcdb6
VZ
19703#include <$ac_hdr>
19704EOF
19705ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1d1b75ac 19706{ (eval echo configure:19707: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
19707ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
19708if test -z "$ac_err"; then
19709 rm -rf conftest*
19710 eval "ac_cv_header_$ac_safe=yes"
1e487827 19711else
698dcdb6
VZ
19712 echo "$ac_err" >&5
19713 echo "configure: failed program was:" >&5
10f2d63a 19714 cat conftest.$ac_ext >&5
698dcdb6
VZ
19715 rm -rf conftest*
19716 eval "ac_cv_header_$ac_safe=no"
10f2d63a 19717fi
698dcdb6 19718rm -f conftest*
10f2d63a 19719fi
698dcdb6
VZ
19720if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
19721 echo "$ac_t""yes" 1>&6
19722 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
19723 cat >> confdefs.h <<EOF
19724#define $ac_tr_hdr 1
10f2d63a 19725EOF
698dcdb6
VZ
19726
19727else
19728 echo "$ac_t""no" 1>&6
10f2d63a
VZ
19729fi
19730done
19731
698dcdb6 19732
2b9bdf71
VZ
19733 if test "$ac_cv_header_ole2_h" = "yes" ; then
19734 if test "$GCC" = yes ; then
19735 ALL_OBJECTS="$ALL_OBJECTS \$(OLEOBJS)"
2b9bdf71 19736 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fvtable-thunks"
3d63bc3a 19737 LIBS=" -lrpcrt4 -loleaut32 -lole32 -luuid$LIBS"
2b9bdf71 19738 cat >> confdefs.h <<\EOF
4f11a343
VS
19739#define wxUSE_OLE 1
19740EOF
19741
b64f0a5f 19742
2b9bdf71
VZ
19743 fi
19744
19745 cat >> confdefs.h <<\EOF
19746#define wxUSE_DATAOBJ 1
19747EOF
19748
19749 else
19750 echo "configure: warning: Some features disabled because OLE headers not found" 1>&2
19751
19752 wxUSE_CLIPBOARD=no
19753 wxUSE_DRAG_AND_DROP=no
19754 wxUSE_DATAOBJ=no
19755 fi
19756
77e13408 19757 if test "$wxUSE_METAFILE" = "yes"; then
2b9bdf71 19758 cat >> confdefs.h <<\EOF
b64f0a5f
RL
19759#define wxUSE_METAFILE 1
19760EOF
19761
2b9bdf71
VZ
19762
19763 cat >> confdefs.h <<\EOF
b64f0a5f
RL
19764#define wxUSE_ENH_METAFILE 1
19765EOF
19766
2b9bdf71
VZ
19767 fi
19768fi
19769
19770if test "$wxUSE_IPC" = "yes"; then
19771 if test "$wxUSE_SOCKETS" != "yes"; then
156b2523 19772 echo "configure: warning: wxWindows IPC classes require sockets... disabled" 1>&2
2b9bdf71
VZ
19773 fi
19774
19775 cat >> confdefs.h <<\EOF
19776#define wxUSE_IPC 1
19777EOF
19778
19779fi
19780
19781if test "$wxUSE_CLIPBOARD" = "yes"; then
9691c806 19782 cat >> confdefs.h <<\EOF
2b9bdf71
VZ
19783#define wxUSE_CLIPBOARD 1
19784EOF
19785
673f4220 19786
9691c806 19787 cat >> confdefs.h <<\EOF
673f4220
VZ
19788#define wxUSE_DATAOBJ 1
19789EOF
19790
2b9bdf71
VZ
19791fi
19792
19793if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then
19794 if test "$wxUSE_GTK" = 1; then
19795 if test "$WXGTK12" != 1; then
156b2523 19796 echo "configure: warning: Drag and drop is only supported under GTK+ 1.2... disabled" 1>&2
10f2d63a
VZ
19797 wxUSE_DRAG_AND_DROP=no
19798 fi
19799 fi
19800
2b9bdf71 19801 if test "$wxUSE_MOTIF" = 1; then
156b2523 19802 echo "configure: warning: Drag and drop not yet supported under Motif... disabled" 1>&2
2b9bdf71
VZ
19803 wxUSE_DRAG_AND_DROP=no
19804 fi
19805
f79bd02d
JS
19806 if test "$wxUSE_X11" = 1; then
19807 echo "configure: warning: Drag and drop not yet supported under X11... disabled" 1>&2
19808 wxUSE_DRAG_AND_DROP=no
19809 fi
19810
10f2d63a 19811 if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
698dcdb6 19812 cat >> confdefs.h <<\EOF
10f2d63a
VZ
19813#define wxUSE_DRAG_AND_DROP 1
19814EOF
19815
19816 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd"
19817 fi
19818
19819fi
19820
19821if test "$wxUSE_SPLINES" = "yes" ; then
698dcdb6 19822 cat >> confdefs.h <<\EOF
10f2d63a
VZ
19823#define wxUSE_SPLINES 1
19824EOF
19825
19826fi
19827
698dcdb6 19828
1e6feb95
VZ
19829USES_CONTROLS=0
19830if test "$wxUSE_CONTROLS" = "yes"; then
19831 USES_CONTROLS=1
19832fi
19833
10f2d63a 19834if test "$wxUSE_ACCEL" = "yes"; then
698dcdb6 19835 cat >> confdefs.h <<\EOF
10f2d63a
VZ
19836#define wxUSE_ACCEL 1
19837EOF
19838
1e6feb95
VZ
19839 USES_CONTROLS=1
19840fi
19841
19842if test "$wxUSE_BUTTON" = "yes"; then
19843 cat >> confdefs.h <<\EOF
19844#define wxUSE_BUTTON 1
19845EOF
19846
19847 USES_CONTROLS=1
19848fi
19849
19850if test "$wxUSE_BMPBUTTON" = "yes"; then
19851 cat >> confdefs.h <<\EOF
19852#define wxUSE_BMPBUTTON 1
19853EOF
19854
19855 USES_CONTROLS=1
19856fi
19857
19858if test "$wxUSE_CALCTRL" = "yes"; then
19859 cat >> confdefs.h <<\EOF
19860#define wxUSE_CALENDARCTRL 1
19861EOF
19862
19863 USES_CONTROLS=1
19864 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar"
10f2d63a
VZ
19865fi
19866
19867if test "$wxUSE_CARET" = "yes"; then
698dcdb6 19868 cat >> confdefs.h <<\EOF
10f2d63a
VZ
19869#define wxUSE_CARET 1
19870EOF
19871
1e6feb95 19872 USES_CONTROLS=1
10f2d63a
VZ
19873 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret"
19874fi
19875
19876if test "$wxUSE_COMBOBOX" = "yes"; then
698dcdb6 19877 cat >> confdefs.h <<\EOF
10f2d63a
VZ
19878#define wxUSE_COMBOBOX 1
19879EOF
19880
1e6feb95 19881 USES_CONTROLS=1
10f2d63a
VZ
19882fi
19883
19884if test "$wxUSE_CHOICE" = "yes"; then
698dcdb6 19885 cat >> confdefs.h <<\EOF
10f2d63a
VZ
19886#define wxUSE_CHOICE 1
19887EOF
19888
1e6feb95 19889 USES_CONTROLS=1
10f2d63a
VZ
19890fi
19891
19892if test "$wxUSE_CHECKBOX" = "yes"; then
698dcdb6 19893 cat >> confdefs.h <<\EOF
10f2d63a
VZ
19894#define wxUSE_CHECKBOX 1
19895EOF
19896
1e6feb95 19897 USES_CONTROLS=1
10f2d63a
VZ
19898fi
19899
19900if test "$wxUSE_CHECKLST" = "yes"; then
698dcdb6 19901 cat >> confdefs.h <<\EOF
10f2d63a
VZ
19902#define wxUSE_CHECKLISTBOX 1
19903EOF
19904
1e6feb95 19905 USES_CONTROLS=1
10f2d63a
VZ
19906 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst"
19907fi
19908
19909if test "$wxUSE_GAUGE" = "yes"; then
698dcdb6 19910 cat >> confdefs.h <<\EOF
10f2d63a
VZ
19911#define wxUSE_GAUGE 1
19912EOF
19913
1e6feb95 19914 USES_CONTROLS=1
10f2d63a
VZ
19915fi
19916
d6a55c4b
VZ
19917if test "$wxUSE_NEW_GRID" = "yes"; then
19918 wxUSE_GRID="yes"
698dcdb6 19919 cat >> confdefs.h <<\EOF
d6a55c4b 19920#define wxUSE_NEW_GRID 1
10f2d63a
VZ
19921EOF
19922
1e6feb95 19923 USES_CONTROLS=1
d6a55c4b 19924 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS newgrid"
10f2d63a
VZ
19925fi
19926
d6a55c4b 19927if test "$wxUSE_GRID" = "yes"; then
698dcdb6 19928 cat >> confdefs.h <<\EOF
d6a55c4b 19929#define wxUSE_GRID 1
10f2d63a
VZ
19930EOF
19931
1e6feb95 19932 USES_CONTROLS=1
d6a55c4b 19933 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid"
10f2d63a
VZ
19934fi
19935
19936if test "$wxUSE_IMAGLIST" = "yes"; then
698dcdb6 19937 cat >> confdefs.h <<\EOF
10f2d63a
VZ
19938#define wxUSE_IMAGLIST 1
19939EOF
19940
19941fi
19942
19943if test "$wxUSE_LISTBOX" = "yes"; then
698dcdb6 19944 cat >> confdefs.h <<\EOF
10f2d63a
VZ
19945#define wxUSE_LISTBOX 1
19946EOF
19947
1e6feb95 19948 USES_CONTROLS=1
10f2d63a
VZ
19949fi
19950
19951if test "$wxUSE_LISTCTRL" = "yes"; then
19952 if test "$wxUSE_IMAGLIST" = "yes"; then
698dcdb6 19953 cat >> confdefs.h <<\EOF
10f2d63a
VZ
19954#define wxUSE_LISTCTRL 1
19955EOF
19956
1e6feb95 19957 USES_CONTROLS=1
10f2d63a
VZ
19958 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl"
19959 else
698dcdb6 19960 echo "configure: warning: wxListCtrl requires wxImageList and won't be compiled without it" 1>&2
10f2d63a
VZ
19961 fi
19962fi
19963
19964if test "$wxUSE_NOTEBOOK" = "yes"; then
698dcdb6 19965 cat >> confdefs.h <<\EOF
10f2d63a
VZ
19966#define wxUSE_NOTEBOOK 1
19967EOF
19968
1e6feb95 19969 USES_CONTROLS=1
10f2d63a
VZ
19970 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook"
19971fi
19972
24176f2c
GD
19973if test "$wxUSE_PROPSHEET" = "yes"; then
19974 cat >> confdefs.h <<\EOF
19975#define wxUSE_PROPSHEET 1
19976EOF
19977
19978 USES_CONTROLS=1
19979 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS proplist"
19980fi
19981
10f2d63a 19982if test "$wxUSE_RADIOBOX" = "yes"; then
698dcdb6 19983 cat >> confdefs.h <<\EOF
10f2d63a
VZ
19984#define wxUSE_RADIOBOX 1
19985EOF
19986
1e6feb95 19987 USES_CONTROLS=1
10f2d63a
VZ
19988fi
19989
19990if test "$wxUSE_RADIOBTN" = "yes"; then
698dcdb6 19991 cat >> confdefs.h <<\EOF
10f2d63a
VZ
19992#define wxUSE_RADIOBTN 1
19993EOF
19994
1e6feb95 19995 USES_CONTROLS=1
10f2d63a
VZ
19996fi
19997
19998if test "$wxUSE_SASH" = "yes"; then
698dcdb6 19999 cat >> confdefs.h <<\EOF
10f2d63a
VZ
20000#define wxUSE_SASH 1
20001EOF
20002
20003 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest"
20004fi
20005
20006if test "$wxUSE_SCROLLBAR" = "yes"; then
698dcdb6 20007 cat >> confdefs.h <<\EOF
10f2d63a
VZ
20008#define wxUSE_SCROLLBAR 1
20009EOF
20010
1e6feb95 20011 USES_CONTROLS=1
741a9306 20012 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub"
10f2d63a
VZ
20013fi
20014
20015if test "$wxUSE_SLIDER" = "yes"; then
698dcdb6 20016 cat >> confdefs.h <<\EOF
10f2d63a
VZ
20017#define wxUSE_SLIDER 1
20018EOF
20019
1e6feb95 20020 USES_CONTROLS=1
10f2d63a
VZ
20021fi
20022
20023if test "$wxUSE_SPINBTN" = "yes"; then
698dcdb6 20024 cat >> confdefs.h <<\EOF
10f2d63a
VZ
20025#define wxUSE_SPINBTN 1
20026EOF
20027
1e6feb95 20028 USES_CONTROLS=1
10f2d63a
VZ
20029fi
20030
56cfaa52 20031if test "$wxUSE_SPINCTRL" = "yes"; then
698dcdb6 20032 cat >> confdefs.h <<\EOF
56cfaa52
RR
20033#define wxUSE_SPINCTRL 1
20034EOF
20035
1e6feb95 20036 USES_CONTROLS=1
56cfaa52
RR
20037fi
20038
10f2d63a 20039if test "$wxUSE_SPLITTER" = "yes"; then
698dcdb6 20040 cat >> confdefs.h <<\EOF
10f2d63a
VZ
20041#define wxUSE_SPLITTER 1
20042EOF
20043
20044 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter"
20045fi
20046
20047if test "$wxUSE_STATBMP" = "yes"; then
698dcdb6 20048 cat >> confdefs.h <<\EOF
10f2d63a
VZ
20049#define wxUSE_STATBMP 1
20050EOF
20051
1e6feb95 20052 USES_CONTROLS=1
10f2d63a
VZ
20053fi
20054
20055if test "$wxUSE_STATBOX" = "yes"; then
698dcdb6 20056 cat >> confdefs.h <<\EOF
10f2d63a
VZ
20057#define wxUSE_STATBOX 1
20058EOF
20059
1e6feb95
VZ
20060 USES_CONTROLS=1
20061fi
20062
20063if test "$wxUSE_STATTEXT" = "yes"; then
20064 cat >> confdefs.h <<\EOF
20065#define wxUSE_STATTEXT 1
20066EOF
20067
20068 USES_CONTROLS=1
10f2d63a
VZ
20069fi
20070
20071if test "$wxUSE_STATLINE" = "yes"; then
20072 if test "$wxUSE_WINE" = 1 ; then
698dcdb6 20073 echo "configure: warning: wxStaticLine is not supported under WINE" 1>&2
10f2d63a 20074 else
698dcdb6 20075 cat >> confdefs.h <<\EOF
10f2d63a
VZ
20076#define wxUSE_STATLINE 1
20077EOF
20078
1e6feb95 20079 USES_CONTROLS=1
10f2d63a
VZ
20080 fi
20081fi
20082
20083if test "$wxUSE_STATUSBAR" = "yes"; then
698dcdb6 20084 cat >> confdefs.h <<\EOF
10f2d63a
VZ
20085#define wxUSE_STATUSBAR 1
20086EOF
20087
1e6feb95 20088 USES_CONTROLS=1
698dcdb6 20089
2286341c 20090 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar"
10f2d63a
VZ
20091fi
20092
20093if test "$wxUSE_TABDIALOG" = "yes"; then
698dcdb6 20094 cat >> confdefs.h <<\EOF
10f2d63a
VZ
20095#define wxUSE_TAB_DIALOG 1
20096EOF
20097
20098 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS tab"
20099fi
20100
1e6feb95
VZ
20101if test "$wxUSE_TEXTCTRL" = "yes"; then
20102 cat >> confdefs.h <<\EOF
20103#define wxUSE_TEXTCTRL 1
20104EOF
20105
20106 USES_CONTROLS=1
20107 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text"
20108fi
20109
1db8dc4a 20110if test "$wxUSE_TOGGLEBTN" = "yes"; then
156b2523
GD
20111 if test "$wxUSE_MAC" = 1; then
20112 echo "configure: warning: Toggle button not yet supported under Mac OS X... disabled" 1>&2
20113 wxUSE_TOGGLEBTN=no
20114 fi
20115 if test "$wxUSE_UNIVERSAL" = "yes"; then
0feee163 20116 echo "configure: warning: Toggle button not yet supported under wxUniversal... disabled" 1>&2
a45d7ab7
GD
20117 wxUSE_TOGGLEBTN=no
20118 fi
20119
20120 if test "$wxUSE_TOGGLEBTN" = "yes"; then
20121 cat >> confdefs.h <<\EOF
1db8dc4a
VZ
20122#define wxUSE_TOGGLEBTN 1
20123EOF
20124
1e6feb95 20125 USES_CONTROLS=1
a45d7ab7 20126 fi
1db8dc4a
VZ
20127fi
20128
360d6699 20129if test "$wxUSE_TOOLBAR_SIMPLE" = "yes"; then
698dcdb6 20130 cat >> confdefs.h <<\EOF
360d6699
VZ
20131#define wxUSE_TOOLBAR_SIMPLE 1
20132EOF
20133
20134 wxUSE_TOOLBAR="yes"
1e6feb95 20135 USES_CONTROLS=1
360d6699
VZ
20136fi
20137
10f2d63a 20138if test "$wxUSE_TOOLBAR" = "yes"; then
698dcdb6 20139 cat >> confdefs.h <<\EOF
10f2d63a
VZ
20140#define wxUSE_TOOLBAR 1
20141EOF
20142
1e6feb95 20143 USES_CONTROLS=1
698dcdb6 20144
360d6699
VZ
20145 if test "$wxUSE_TOOLBAR_SIMPLE" != "yes"; then
20146 wxUSE_TOOLBAR_NATIVE="yes"
20147 fi
20148
1e6feb95
VZ
20149 if test "$wxUSE_TOOLBAR_NATIVE" = "yes"; then
20150 cat >> confdefs.h <<\EOF
360d6699
VZ
20151#define wxUSE_TOOLBAR_NATIVE 1
20152EOF
20153
1e6feb95
VZ
20154 USES_CONTROLS=1
20155 fi
20156
20157 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar"
360d6699
VZ
20158fi
20159
10f2d63a
VZ
20160if test "$wxUSE_TOOLTIPS" = "yes"; then
20161 if test "$wxUSE_MOTIF" = 1; then
156b2523 20162 echo "configure: warning: wxTooltip not supported yet under Motif... disabled" 1>&2
10f2d63a
VZ
20163 else
20164 if test "$wxUSE_WINE" = 1; then
156b2523 20165 echo "configure: warning: wxTooltip not supported under WINE... disabled" 1>&2
10f2d63a 20166 else
69d27ff7 20167 if test "$wxUSE_UNIVERSAL" = "yes"; then
0feee163 20168 echo "configure: warning: wxTooltip not supported yet in wxUniversal... disabled" 1>&2
69d27ff7 20169 else
3c011993 20170 cat >> confdefs.h <<\EOF
10f2d63a
VZ
20171#define wxUSE_TOOLTIPS 1
20172EOF
20173
69d27ff7 20174 fi
10f2d63a
VZ
20175 fi
20176 fi
20177fi
20178
20179if test "$wxUSE_TREECTRL" = "yes"; then
20180 if test "$wxUSE_IMAGLIST" = "yes"; then
698dcdb6 20181 cat >> confdefs.h <<\EOF
10f2d63a
VZ
20182#define wxUSE_TREECTRL 1
20183EOF
20184
1e6feb95 20185 USES_CONTROLS=1
10f2d63a
VZ
20186 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl"
20187 else
698dcdb6 20188 echo "configure: warning: wxTreeCtrl requires wxImageList and won't be compiled without it" 1>&2
10f2d63a
VZ
20189 fi
20190fi
20191
9f41d601 20192if test "$wxUSE_POPUPWIN" = "yes"; then
6abe4b65 20193 if test "$wxUSE_MAC" = 1; then
156b2523 20194 echo "configure: warning: Popup window not yet supported under Mac OS X... disabled" 1>&2
6abe4b65 20195 else
485cf710
VZ
20196 if test "$wxUSE_MOTIF" = 1; then
20197 echo "configure: warning: wxPopupWindow not yet supported under Motif... disabled" 1>&2
20198 else
3c011993
VZ
20199 if test "$wxUSE_PM" = 1; then
20200 echo "configure: warning: wxPopupWindow not yet supported under PM... disabled" 1>&2
20201 else
20202 cat >> confdefs.h <<\EOF
9f41d601
RR
20203#define wxUSE_POPUPWIN 1
20204EOF
20205
9926e4a4 20206
3c011993
VZ
20207 USES_CONTROLS=1
20208 fi
485cf710 20209 fi
6abe4b65 20210 fi
9f41d601
RR
20211fi
20212
dd964dcc 20213if test "$wxUSE_TIPWINDOW" = "yes"; then
3c011993
VZ
20214 if test "$wxUSE_PM" = 1; then
20215 echo "configure: warning: wxTipWindow not yet supported under PM... disabled" 1>&2
20216 else
20217 cat >> confdefs.h <<\EOF
dd964dcc
VZ
20218#define wxUSE_TIPWINDOW 1
20219EOF
20220
3c011993 20221 fi
dd964dcc
VZ
20222fi
20223
1e6feb95
VZ
20224if test "$USES_CONTROLS" = 1; then
20225 cat >> confdefs.h <<\EOF
20226#define wxUSE_CONTROLS 1
10f2d63a
VZ
20227EOF
20228
10f2d63a
VZ
20229fi
20230
1e6feb95 20231
24176f2c
GD
20232if test "$wxUSE_TREELAYOUT" = "yes"; then
20233 cat >> confdefs.h <<\EOF
20234#define wxUSE_TREELAYOUT 1
20235EOF
20236
20237 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treelay"
20238fi
1e6feb95 20239
24fd6d87
VZ
20240if test "$wxUSE_DRAGIMAGE" = "yes"; then
20241 cat >> confdefs.h <<\EOF
20242#define wxUSE_DRAGIMAGE 1
20243EOF
20244
20245 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag"
20246fi
20247
1e6feb95 20248if test "$wxUSE_MENUS" = "yes"; then
698dcdb6 20249 cat >> confdefs.h <<\EOF
1e6feb95 20250#define wxUSE_MENUS 1
10f2d63a
VZ
20251EOF
20252
1e6feb95 20253 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu"
10f2d63a
VZ
20254fi
20255
1e6feb95
VZ
20256if test "$wxUSE_METAFILE" = "yes"; then
20257 cat >> confdefs.h <<\EOF
20258#define wxUSE_METAFILE 1
10f2d63a
VZ
20259EOF
20260
10f2d63a
VZ
20261fi
20262
1e6feb95
VZ
20263if test "$wxUSE_MIMETYPE" = "yes"; then
20264 cat >> confdefs.h <<\EOF
20265#define wxUSE_MIMETYPE 1
10f2d63a
VZ
20266EOF
20267
10f2d63a
VZ
20268fi
20269
3e44f09d
VZ
20270if test "$wxUSE_SYSTEM_OPTIONS" = "yes"; then
20271 cat >> confdefs.h <<\EOF
20272#define wxUSE_SYSTEM_OPTIONS 1
20273EOF
20274
321d2b14
VZ
20275if test "$TOOLKIT" = "MSW"; then
20276 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS taskbar"
20277fi
20278
3e44f09d
VZ
20279fi
20280
4cdb0ab0 20281if test "$wxUSE_PROTOCOL" = "yes"; then
3954f9ca
VS
20282 if test "$wxUSE_SOCKETS" != "yes"; then
20283 echo "configure: warning: Protocol classes require sockets... disabled" 1>&2
20284 wxUSE_PROTOCOL=no
20285 fi
20286
20287 if test "$wxUSE_PROTOCOL" = "yes"; then
20288 cat >> confdefs.h <<\EOF
4cdb0ab0
VS
20289#define wxUSE_PROTOCOL 1
20290EOF
20291
20292
3954f9ca
VS
20293 if test "$wxUSE_PROTOCOL_HTTP" = "yes"; then
20294 cat >> confdefs.h <<\EOF
4cdb0ab0
VS
20295#define wxUSE_PROTOCOL_HTTP 1
20296EOF
20297
3954f9ca
VS
20298 fi
20299 if test "$wxUSE_PROTOCOL_FTP" = "yes"; then
20300 cat >> confdefs.h <<\EOF
4cdb0ab0
VS
20301#define wxUSE_PROTOCOL_FTP 1
20302EOF
20303
3954f9ca
VS
20304 fi
20305 if test "$wxUSE_PROTOCOL_FILE" = "yes"; then
20306 cat >> confdefs.h <<\EOF
20307#define wxUSE_PROTOCOL_FILE 1
20308EOF
20309
20310 fi
4cdb0ab0 20311 fi
3954f9ca
VS
20312fi
20313
20314if test "$wxUSE_URL" = "yes"; then
20315 if test "$wxUSE_PROTOCOL" != "yes"; then
20316 echo "configure: warning: wxURL class requires wxProtocol... disabled" 1>&2
20317 wxUSE_URL=no
20318 fi
20319 if test "$wxUSE_URL" = "yes"; then
4cdb0ab0 20320 cat >> confdefs.h <<\EOF
3954f9ca 20321#define wxUSE_URL 1
4cdb0ab0
VS
20322EOF
20323
20324 fi
20325fi
20326
10f2d63a 20327if test "$wxUSE_MINIFRAME" = "yes"; then
698dcdb6 20328 cat >> confdefs.h <<\EOF
10f2d63a
VZ
20329#define wxUSE_MINIFRAME 1
20330EOF
20331
20332 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram"
20333fi
20334
20335if test "$wxUSE_HTML" = "yes"; then
698dcdb6 20336 cat >> confdefs.h <<\EOF
10f2d63a
VZ
20337#define wxUSE_HTML 1
20338EOF
20339
20340 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html"
10f2d63a
VZ
20341fi
20342
20343if test "$wxUSE_VALIDATORS" = "yes"; then
698dcdb6 20344 cat >> confdefs.h <<\EOF
1e487827
VS
20345#define wxUSE_VALIDATORS 1
20346EOF
703e0a69 20347
698dcdb6
VZ
20348 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate"
20349fi
20350
edae8572
VZ
20351if test "$wxUSE_PALETTE" = "yes" ; then
20352 cat >> confdefs.h <<\EOF
20353#define wxUSE_PALETTE 1
20354EOF
20355
20356fi
20357
698dcdb6
VZ
20358if test "$wxUSE_IMAGE" = "yes" ; then
20359 cat >> confdefs.h <<\EOF
20360#define wxUSE_IMAGE 1
20361EOF
20362
20363fi
20364
20365if test "$wxUSE_GIF" = "yes" ; then
20366 cat >> confdefs.h <<\EOF
20367#define wxUSE_GIF 1
20368EOF
20369
20370fi
20371
20372if test "$wxUSE_PCX" = "yes" ; then
20373 cat >> confdefs.h <<\EOF
20374#define wxUSE_PCX 1
20375EOF
20376
20377fi
20378
4b6b4dfc
RR
20379if test "$wxUSE_IFF" = "yes" ; then
20380 cat >> confdefs.h <<\EOF
20381#define wxUSE_IFF 1
20382EOF
20383
20384fi
20385
698dcdb6
VZ
20386if test "$wxUSE_PNM" = "yes" ; then
20387 cat >> confdefs.h <<\EOF
20388#define wxUSE_PNM 1
20389EOF
20390
20391fi
20392
20393if test "$wxUSE_XPM" = "yes" ; then
20394 cat >> confdefs.h <<\EOF
20395#define wxUSE_XPM 1
20396EOF
20397
20398fi
20399
658974ae
VS
20400if test "$wxUSE_ICO_CUR" = "yes" ; then
20401 cat >> confdefs.h <<\EOF
20402#define wxUSE_ICO_CUR 1
20403EOF
20404
20405fi
20406
a72a4bfa
VS
20407if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_MSLU" = "yes" ; then
20408 LIBS=" -lunicows $LIBS"
20409fi
20410
698dcdb6 20411
1e6feb95
VZ
20412if test "$wxUSE_CHOICEDLG" = "yes"; then
20413 cat >> confdefs.h <<\EOF
20414#define wxUSE_CHOICEDLG 1
20415EOF
20416
20417fi
20418
20419if test "$wxUSE_COLOURDLG" = "yes"; then
20420 cat >> confdefs.h <<\EOF
20421#define wxUSE_COLOURDLG 1
20422EOF
20423
20424fi
20425
20426if test "$wxUSE_FILEDLG" = "yes"; then
20427 cat >> confdefs.h <<\EOF
20428#define wxUSE_FILEDLG 1
20429EOF
20430
20431fi
20432
8db37e06
VZ
20433if test "$wxUSE_FINDREPLDLG" = "yes"; then
20434 cat >> confdefs.h <<\EOF
20435#define wxUSE_FINDREPLDLG 1
20436EOF
20437
20438fi
20439
1e6feb95
VZ
20440if test "$wxUSE_FONTDLG" = "yes"; then
20441 cat >> confdefs.h <<\EOF
20442#define wxUSE_FONTDLG 1
20443EOF
20444
20445fi
20446
20447if test "$wxUSE_DIRDLG" = "yes"; then
ae1daed0
JS
20448 if test "$wxUSE_TREECTRL" != "yes"; then
20449 echo "configure: warning: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" 1>&2
1e6feb95 20450 else
ae1daed0 20451 cat >> confdefs.h <<\EOF
1e6feb95
VZ
20452#define wxUSE_DIRDLG 1
20453EOF
20454
1e6feb95
VZ
20455 fi
20456fi
20457
20458if test "$wxUSE_MSGDLG" = "yes"; then
20459 cat >> confdefs.h <<\EOF
20460#define wxUSE_MSGDLG 1
20461EOF
20462
20463fi
20464
20465if test "$wxUSE_NUMBERDLG" = "yes"; then
20466 cat >> confdefs.h <<\EOF
20467#define wxUSE_NUMBERDLG 1
20468EOF
20469
20470fi
20471
20472if test "$wxUSE_PROGRESSDLG" = "yes"; then
20473 if test "$wxUSE_CONSTRAINTS" != "yes"; then
20474 echo "configure: warning: wxProgressDialog requires constraints so it won't be compiled without them" 1>&2
20475 else
20476 cat >> confdefs.h <<\EOF
20477#define wxUSE_PROGRESSDLG 1
20478EOF
20479
20480 fi
20481fi
20482
cbca9943
VZ
20483if test "$wxUSE_SPLASH" = "yes"; then
20484 cat >> confdefs.h <<\EOF
20485#define wxUSE_SPLASH 1
20486EOF
20487
20488fi
20489
1e6feb95
VZ
20490if test "$wxUSE_STARTUP_TIPS" = "yes"; then
20491 if test "$wxUSE_CONSTRAINTS" != "yes"; then
20492 echo "configure: warning: Startup tips requires constraints and won't be compiled without them" 1>&2
20493 else
20494 cat >> confdefs.h <<\EOF
20495#define wxUSE_STARTUP_TIPS 1
20496EOF
20497
20498 fi
20499fi
20500
20501if test "$wxUSE_TEXTDLG" = "yes"; then
20502 cat >> confdefs.h <<\EOF
20503#define wxUSE_TEXTDLG 1
20504EOF
20505
20506fi
20507
b1f5d087
VZ
20508if test "$wxUSE_WIZARDDLG" = "yes"; then
20509 cat >> confdefs.h <<\EOF
20510#define wxUSE_WIZARDDLG 1
20511EOF
20512
20513 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wizard"
20514fi
20515
1e6feb95 20516
698dcdb6
VZ
20517if test "$cross_compiling" = "yes"; then
20518 OSINFO="\"$host\""
20519else
20520 OSINFO=`uname -s -r -m`
20521 OSINFO="\"$OSINFO\""
20522fi
20523
20524cat >> confdefs.h <<EOF
20525#define WXWIN_OS_DESCRIPTION $OSINFO
20526EOF
20527
20528
20529
06dda230
VZ
20530if test "x$prefix" != "xNONE"; then
20531 wxPREFIX=$prefix
20532else
20533 wxPREFIX=$ac_default_prefix
20534fi
20535
7e67ed0d 20536cat >> confdefs.h <<EOF
06dda230 20537#define wxINSTALL_PREFIX "$wxPREFIX"
7e67ed0d
VZ
20538EOF
20539
20540
20541
698dcdb6 20542
3a922bb4 20543
f11bdd03 20544if test "$wxUSE_MAC" = 1 ; then
3d63bc3a 20545 LDFLAGS="$LDFLAGS -framework Carbon -framework System"
698dcdb6 20546fi
3a922bb4 20547
3d63bc3a 20548
009fead0 20549LIBS="$ZLIB_LINK $POSIX4_LINK $INET_LINK $WCHAR_LINK $DL_LINK -lm $LIBS"
3d63bc3a 20550
698dcdb6 20551if test "$wxUSE_GUI" = "yes"; then
3d63bc3a 20552
cb61c62d 20553 LIBS="$GUI_TK_LIBRARY $PNG_LINK $JPEG_LINK $TIFF_LINK $LIBS"
3a922bb4
RL
20554
20555
867a54b6 20556 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS artprov controls dialogs \
3a922bb4
RL
20557 drawing dynamic erase event exec font image \
20558 minimal richedit rotate widgets"
20559
3a922bb4
RL
20560 CPPFLAGS="$CPPFLAGS \$(EXTRADEFS) \$(APPEXTRADEFS)"
20561else
20562 SAMPLES_SUBDIRS="console"
698dcdb6
VZ
20563fi
20564
698dcdb6 20565
57973b9c
VZ
20566INCLUDES="-I\${top_builddir}/lib/wx/include/${TOOLCHAIN_NAME} \
20567-I\${top_srcdir}/include \
20568$REGEX_INCLUDE $ZLIB_INCLUDE $PNG_INCLUDE $JPEG_INCLUDE $TIFF_INCLUDE \
20569$TOOLKIT_INCLUDE"
698dcdb6 20570
63e7762e 20571if test "$wxUSE_GTK" = 1; then
3d63bc3a 20572 WXCONFIG_INCLUDE=
698dcdb6
VZ
20573else
20574 WXCONFIG_INCLUDE="$TOOLKIT_INCLUDE"
20575fi
20576
20577if test "$GXX" = yes ; then
20578 CXXWARNINGS="-Wall"
88e30f2b
RL
20579
20580 if test "$wxUSE_NO_DEPS" = "no" ; then
20581 CFLAGS="-MMD $CFLAGS"
20582 CXXFLAGS="-MMD $CXXFLAGS"
20583 fi
20584fi
20585
1725144d 20586EXTRA_CFLAGS="$WXDEBUG $WXODBCFLAG $PROFILE $OPTIMISE $INCLUDES"
698dcdb6
VZ
20587
20588CFLAGS=`echo $CFLAGS $EXTRA_CFLAGS $CXXWARNINGS | sed 's/ \\+/ /g'`
20589CXXFLAGS=`echo $CXXFLAGS $EXTRA_CFLAGS $CXXWARNINGS | sed 's/ \+/ /g'`
fe5a9cab 20590LIBS=`echo $LIBS | sed 's/ \+/ /g'`
698dcdb6 20591
fe5a9cab 20592LDFLAGS="$LDFLAGS $PROFILE"
698dcdb6 20593
698dcdb6
VZ
20594SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`"
20595
20596
20597
20598
20599
20600
20601
20602
20603
20604
20605
20606
20607
20608
20609
20610
20611
20612
20613
20614
20615
20616
20617
20618
20619
20620
20621
20622
20623
20624
20625
20626
20627
20628
20629
20630
20631
20632
20633
20634
20635
20636
20637
20638
20639
20640
20641
20642
20643
20644
20645
20646
20647
20648
20649
20650
20651
20652
20653
20654
20655
20656
20657
20658
20659
20660
20661
32832908 20662
2f51a9ec
GD
20663
20664
20665
20666
f6bcfd97 20667
dad6c0ea 20668
caa2c79b 20669
3711412e 20670
1e6feb95
VZ
20671
20672
885d4bf5
VS
20673
20674
20675
20676
9b695262
VZ
20677
20678
62d0491b 20679
ef7f2189 20680
40f7145c 20681
10f2d63a
VZ
20682
20683
698dcdb6 20684echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
1d1b75ac 20685echo "configure:20686: checking whether ${MAKE-make} sets \${MAKE}" >&5
698dcdb6
VZ
20686set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
20687if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
20688 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 20689else
698dcdb6 20690 cat > conftestmake <<\EOF
10f2d63a
VZ
20691all:
20692 @echo 'ac_maketemp="${MAKE}"'
20693EOF
20694# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
698dcdb6 20695eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
10f2d63a
VZ
20696if test -n "$ac_maketemp"; then
20697 eval ac_cv_prog_make_${ac_make}_set=yes
20698else
20699 eval ac_cv_prog_make_${ac_make}_set=no
20700fi
698dcdb6 20701rm -f conftestmake
10f2d63a
VZ
20702fi
20703if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
698dcdb6 20704 echo "$ac_t""yes" 1>&6
10f2d63a
VZ
20705 SET_MAKE=
20706else
698dcdb6 20707 echo "$ac_t""no" 1>&6
10f2d63a
VZ
20708 SET_MAKE="MAKE=${MAKE-make}"
20709fi
20710
698dcdb6 20711
3a922bb4
RL
20712if test -f lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h; then
20713 mv -f lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h setup.h
00cf1208 20714fi
665bbe97 20715
698dcdb6 20716
10f2d63a 20717
57973b9c
VZ
20718wx_cv_path_samplesubdirs=$SAMPLES_SUBDIRS
20719wx_cv_if_gnu_make=$IF_GNU_MAKE
20720wx_cv_path_ifs=$PATH_IFS
20721wx_cv_program_ext=$PROGRAM_EXT
20722wx_cv_target_library=$WX_TARGET_LIBRARY
20723wx_cv_target_library_gl=$WX_TARGET_LIBRARY_GL
20724wx_cv_target_libtype=$WX_TARGET_LIBRARY_TYPE
20725export wx_cv_path_samplesubdirs wx_cv_if_gnu_make \
20726 wx_cv_path_ifs wx_cv_program_ext \
20727 wx_cv_target_library wx_cv_target_library_gl wx_cv_target_libtype
20728
20729subdirs="demos samples utils contrib"
2224580a 20730
10f2d63a 20731
698dcdb6
VZ
20732trap '' 1 2 15
20733cat > confcache <<\EOF
10f2d63a
VZ
20734# This file is a shell script that caches the results of configure
20735# tests run on this system so they can be shared between configure
698dcdb6
VZ
20736# scripts and configure runs. It is not useful on other systems.
20737# If it contains results you don't want to keep, you may remove or edit it.
10f2d63a 20738#
698dcdb6
VZ
20739# By default, configure uses ./config.cache as the cache file,
20740# creating it if it does not exist already. You can give configure
20741# the --cache-file=FILE option to use a different cache file; that is
20742# what configure does when it calls configure scripts in
20743# subdirectories, so they share the cache.
20744# Giving --cache-file=/dev/null disables caching, for debugging configure.
20745# config.status only pays attention to the cache file if you give it the
20746# --recheck option to rerun configure.
10f2d63a 20747#
698dcdb6 20748EOF
10f2d63a
VZ
20749# The following way of writing the cache mishandles newlines in values,
20750# but we know of no workaround that is simple, portable, and efficient.
20751# So, don't put newlines in cache variables' values.
20752# Ultrix sh set writes to stderr and can't be redirected directly,
20753# and sets the high bit in the cache file unless we assign to the vars.
698dcdb6
VZ
20754(set) 2>&1 |
20755 case `(ac_space=' '; set | grep ac_space) 2>&1` in
20756 *ac_space=\ *)
20757 # `set' does not quote correctly, so add quotes (double-quote substitution
20758 # turns \\\\ into \\, and sed turns \\ into \).
20759 sed -n \
20760 -e "s/'/'\\\\''/g" \
20761 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
20762 ;;
20763 *)
20764 # `set' quotes correctly as required by POSIX, so do not add quotes.
20765 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
20766 ;;
20767 esac >> confcache
20768if cmp -s $cache_file confcache; then
20769 :
20770else
10f2d63a 20771 if test -w $cache_file; then
698dcdb6
VZ
20772 echo "updating cache $cache_file"
20773 cat confcache > $cache_file
10f2d63a
VZ
20774 else
20775 echo "not updating unwritable cache $cache_file"
20776 fi
20777fi
20778rm -f confcache
20779
698dcdb6
VZ
20780trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
20781
10f2d63a
VZ
20782test "x$prefix" = xNONE && prefix=$ac_default_prefix
20783# Let make expand exec_prefix.
20784test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20785
698dcdb6
VZ
20786# Any assignment to VPATH causes Sun make to only execute
20787# the first set of double-colon rules, so remove it if not needed.
20788# If there is a colon in the path, we need to keep it.
10f2d63a 20789if test "x$srcdir" = x.; then
698dcdb6 20790 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
10f2d63a
VZ
20791fi
20792
698dcdb6
VZ
20793trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
20794
10f2d63a
VZ
20795DEFS=-DHAVE_CONFIG_H
20796
698dcdb6 20797# Without the "./", some shells look in PATH for config.status.
10f2d63a 20798: ${CONFIG_STATUS=./config.status}
698dcdb6
VZ
20799
20800echo creating $CONFIG_STATUS
20801rm -f $CONFIG_STATUS
20802cat > $CONFIG_STATUS <<EOF
20803#! /bin/sh
10f2d63a
VZ
20804# Generated automatically by configure.
20805# Run this file to recreate the current configuration.
698dcdb6
VZ
20806# This directory was configured as follows,
20807# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20808#
20809# $0 $ac_configure_args
20810#
10f2d63a 20811# Compiler output produced by configure, useful for debugging
698dcdb6 20812# configure, is in ./config.log if it exists.
1e487827 20813
698dcdb6
VZ
20814ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
20815for ac_option
10f2d63a 20816do
698dcdb6 20817 case "\$ac_option" in
10f2d63a 20818 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
698dcdb6
VZ
20819 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
20820 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
20821 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
20822 echo "$CONFIG_STATUS generated by autoconf version 2.13"
20823 exit 0 ;;
20824 -help | --help | --hel | --he | --h)
20825 echo "\$ac_cs_usage"; exit 0 ;;
20826 *) echo "\$ac_cs_usage"; exit 1 ;;
10f2d63a
VZ
20827 esac
20828done
20829
698dcdb6
VZ
20830ac_given_srcdir=$srcdir
20831ac_given_INSTALL="$INSTALL"
703e0a69 20832
698dcdb6
VZ
20833trap 'rm -fr `echo "
20834 wx-config
20835 src/make.env
20836 src/makeprog.env
20837 src/makelib.env
20838 Makefile
20839 setup.h:setup.h.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
1e487827 20840EOF
698dcdb6 20841cat >> $CONFIG_STATUS <<EOF
1e487827 20842
698dcdb6
VZ
20843# Protect against being on the right side of a sed subst in config.status.
20844sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
20845 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
20846$ac_vpsub
20847$extrasub
20848s%@SHELL@%$SHELL%g
20849s%@CFLAGS@%$CFLAGS%g
20850s%@CPPFLAGS@%$CPPFLAGS%g
20851s%@CXXFLAGS@%$CXXFLAGS%g
20852s%@FFLAGS@%$FFLAGS%g
20853s%@DEFS@%$DEFS%g
20854s%@LDFLAGS@%$LDFLAGS%g
20855s%@LIBS@%$LIBS%g
20856s%@exec_prefix@%$exec_prefix%g
20857s%@prefix@%$prefix%g
20858s%@program_transform_name@%$program_transform_name%g
20859s%@bindir@%$bindir%g
20860s%@sbindir@%$sbindir%g
20861s%@libexecdir@%$libexecdir%g
20862s%@datadir@%$datadir%g
20863s%@sysconfdir@%$sysconfdir%g
20864s%@sharedstatedir@%$sharedstatedir%g
20865s%@localstatedir@%$localstatedir%g
20866s%@libdir@%$libdir%g
20867s%@includedir@%$includedir%g
20868s%@oldincludedir@%$oldincludedir%g
20869s%@infodir@%$infodir%g
20870s%@mandir@%$mandir%g
20871s%@host@%$host%g
20872s%@host_alias@%$host_alias%g
20873s%@host_cpu@%$host_cpu%g
20874s%@host_vendor@%$host_vendor%g
20875s%@host_os@%$host_os%g
20876s%@target@%$target%g
20877s%@target_alias@%$target_alias%g
20878s%@target_cpu@%$target_cpu%g
20879s%@target_vendor@%$target_vendor%g
20880s%@target_os@%$target_os%g
20881s%@build@%$build%g
20882s%@build_alias@%$build_alias%g
20883s%@build_cpu@%$build_cpu%g
20884s%@build_vendor@%$build_vendor%g
20885s%@build_os@%$build_os%g
20886s%@CC@%$CC%g
20887s%@CPP@%$CPP%g
20888s%@CXX@%$CXX%g
698dcdb6
VZ
20889s%@RANLIB@%$RANLIB%g
20890s%@AR@%$AR%g
20891s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
d6853540 20892s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
6054113a 20893s%@INSTALL_DATA@%$INSTALL_DATA%g
698dcdb6 20894s%@STRIP@%$STRIP%g
613d0995 20895s%@IF_GNU_MAKE@%$IF_GNU_MAKE%g
698dcdb6
VZ
20896s%@YACC@%$YACC%g
20897s%@LEX@%$LEX%g
20898s%@LEXLIB@%$LEXLIB%g
20899s%@LN_S@%$LN_S%g
90dd450c 20900s%@CXXCPP@%$CXXCPP%g
9e691f46 20901s%@PKG_CONFIG@%$PKG_CONFIG%g
698dcdb6
VZ
20902s%@GTK_CFLAGS@%$GTK_CFLAGS%g
20903s%@GTK_LIBS@%$GTK_LIBS%g
8168de4c 20904s%@GTK_CONFIG@%$GTK_CONFIG%g
698dcdb6
VZ
20905s%@X_CFLAGS@%$X_CFLAGS%g
20906s%@X_PRE_LIBS@%$X_PRE_LIBS%g
20907s%@X_LIBS@%$X_LIBS%g
20908s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
321d2b14 20909s%@AIX_CXX_LD@%$AIX_CXX_LD%g
3a922bb4 20910s%@RESCOMP@%$RESCOMP%g
698dcdb6 20911s%@DEREZ@%$DEREZ%g
b040e242 20912s%@LIBICONV@%$LIBICONV%g
698dcdb6
VZ
20913s%@LEX_STEM@%$LEX_STEM%g
20914s%@PATH_IFS@%$PATH_IFS%g
20915s%@WX_MAJOR_VERSION_NUMBER@%$WX_MAJOR_VERSION_NUMBER%g
20916s%@WX_MINOR_VERSION_NUMBER@%$WX_MINOR_VERSION_NUMBER%g
20917s%@WX_RELEASE_NUMBER@%$WX_RELEASE_NUMBER%g
698dcdb6
VZ
20918s%@WX_LIBRARY_NAME_STATIC@%$WX_LIBRARY_NAME_STATIC%g
20919s%@WX_LIBRARY_NAME_SHARED@%$WX_LIBRARY_NAME_SHARED%g
77e13408 20920s%@WX_LIBRARY_IMPORTLIB@%$WX_LIBRARY_IMPORTLIB%g
698dcdb6
VZ
20921s%@WX_TARGET_LIBRARY@%$WX_TARGET_LIBRARY%g
20922s%@WX_LIBRARY_LINK1@%$WX_LIBRARY_LINK1%g
20923s%@WX_LIBRARY_LINK2@%$WX_LIBRARY_LINK2%g
698dcdb6 20924s%@PROGRAM_EXT@%$PROGRAM_EXT%g
698dcdb6
VZ
20925s%@WX_LIBRARY_NAME_STATIC_GL@%$WX_LIBRARY_NAME_STATIC_GL%g
20926s%@WX_LIBRARY_NAME_SHARED_GL@%$WX_LIBRARY_NAME_SHARED_GL%g
698dcdb6
VZ
20927s%@WX_TARGET_LIBRARY_GL@%$WX_TARGET_LIBRARY_GL%g
20928s%@WX_LIBRARY_LINK1_GL@%$WX_LIBRARY_LINK1_GL%g
20929s%@WX_LIBRARY_LINK2_GL@%$WX_LIBRARY_LINK2_GL%g
698dcdb6
VZ
20930s%@WX_ALL@%$WX_ALL%g
20931s%@WX_ALL_INSTALLED@%$WX_ALL_INSTALLED%g
20932s%@SHARED_LD@%$SHARED_LD%g
20933s%@PIC_FLAG@%$PIC_FLAG%g
698dcdb6
VZ
20934s%@CODE_GEN_FLAGS@%$CODE_GEN_FLAGS%g
20935s%@CODE_GEN_FLAGS_CXX@%$CODE_GEN_FLAGS_CXX%g
3a922bb4
RL
20936s%@SONAME_FLAGS@%$SONAME_FLAGS%g
20937s%@SONAME_FLAGS_GL@%$SONAME_FLAGS_GL%g
698dcdb6
VZ
20938s%@WX_TARGET_LIBRARY_SONAME@%$WX_TARGET_LIBRARY_SONAME%g
20939s%@WX_TARGET_LIBRARY_TYPE@%$WX_TARGET_LIBRARY_TYPE%g
20940s%@WXDEBUG_DEFINE@%$WXDEBUG_DEFINE%g
20941s%@USE_GUI@%$USE_GUI%g
20942s%@AFMINSTALL@%$AFMINSTALL%g
20943s%@TOOLKIT@%$TOOLKIT%g
698dcdb6 20944s%@TOOLKIT_DIR@%$TOOLKIT_DIR%g
1e6feb95 20945s%@TOOLKIT_VPATH@%$TOOLKIT_VPATH%g
3a922bb4
RL
20946s%@TOOLCHAIN_NAME@%$TOOLCHAIN_NAME%g
20947s%@TOOLCHAIN_DEFS@%$TOOLCHAIN_DEFS%g
00c81359 20948s%@TOOLCHAIN_DLL_DEFS@%$TOOLCHAIN_DLL_DEFS%g
3a922bb4
RL
20949s%@cross_compiling@%$cross_compiling%g
20950s%@WXCONFIG_LIBS@%$WXCONFIG_LIBS%g
20951s%@WXCONFIG_LIBS_GL@%$WXCONFIG_LIBS_GL%g
885d4bf5
VS
20952s%@WXCONFIG_LIBS_STATIC@%$WXCONFIG_LIBS_STATIC%g
20953s%@WXCONFIG_LIBS_STATIC_GL@%$WXCONFIG_LIBS_STATIC_GL%g
698dcdb6
VZ
20954s%@WXCONFIG_INCLUDE@%$WXCONFIG_INCLUDE%g
20955s%@ALL_OBJECTS@%$ALL_OBJECTS%g
9b695262
VZ
20956s%@ALL_HEADERS@%$ALL_HEADERS%g
20957s%@ALL_SOURCES@%$ALL_SOURCES%g
698dcdb6
VZ
20958s%@GUIDIST@%$GUIDIST%g
20959s%@PORT_FILES@%$PORT_FILES%g
20960s%@DISTDIR@%$DISTDIR%g
698dcdb6 20961s%@SAMPLES_SUBDIRS@%$SAMPLES_SUBDIRS%g
62d0491b 20962s%@LDFLAGS_GL@%$LDFLAGS_GL%g
40f7145c 20963s%@LDFLAGS_EXE@%$LDFLAGS_EXE%g
698dcdb6 20964s%@OPENGL_LIBS@%$OPENGL_LIBS%g
3d63bc3a 20965s%@DMALLOC_LIBS@%$DMALLOC_LIBS%g
698dcdb6 20966s%@EXTRADEFS@%$EXTRADEFS%g
698dcdb6 20967s%@RESFLAGS@%$RESFLAGS%g
3a922bb4 20968s%@RESPROGRAMOBJ@%$RESPROGRAMOBJ%g
e95edd8d
GD
20969s%@WX_RESOURCES_MACOSX_ASCII@%$WX_RESOURCES_MACOSX_ASCII%g
20970s%@WX_RESOURCES_MACOSX_DATA@%$WX_RESOURCES_MACOSX_DATA%g
ef7f2189 20971s%@MACOSX_BUNDLE@%$MACOSX_BUNDLE%g
698dcdb6
VZ
20972s%@LIBWXMACRES@%$LIBWXMACRES%g
20973s%@LIBWXMACRESCOMP@%$LIBWXMACRESCOMP%g
2baaf735 20974s%@LIBWXMACRESWXCONFIG@%$LIBWXMACRESWXCONFIG%g
698dcdb6
VZ
20975s%@DLLTOOL@%$DLLTOOL%g
20976s%@AS@%$AS%g
20977s%@NM@%$NM%g
20978s%@LD@%$LD%g
20979s%@MAKEINFO@%$MAKEINFO%g
885d4bf5 20980s%@INSTALL_LIBRARY@%$INSTALL_LIBRARY%g
698dcdb6
VZ
20981s%@SET_MAKE@%$SET_MAKE%g
20982s%@subdirs@%$subdirs%g
1e487827 20983
1e487827 20984CEOF
1e487827
VS
20985EOF
20986
698dcdb6
VZ
20987cat >> $CONFIG_STATUS <<\EOF
20988
20989# Split the substitutions into bite-sized pieces for seds with
20990# small command number limits, like on Digital OSF/1 and HP-UX.
20991ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
20992ac_file=1 # Number of current file.
20993ac_beg=1 # First line for current file.
20994ac_end=$ac_max_sed_cmds # Line after last line for current file.
20995ac_more_lines=:
20996ac_sed_cmds=""
20997while $ac_more_lines; do
20998 if test $ac_beg -gt 1; then
20999 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
21000 else
21001 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
21002 fi
21003 if test ! -s conftest.s$ac_file; then
21004 ac_more_lines=false
21005 rm -f conftest.s$ac_file
21006 else
21007 if test -z "$ac_sed_cmds"; then
21008 ac_sed_cmds="sed -f conftest.s$ac_file"
10f2d63a 21009 else
698dcdb6 21010 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
10f2d63a 21011 fi
698dcdb6
VZ
21012 ac_file=`expr $ac_file + 1`
21013 ac_beg=$ac_end
21014 ac_end=`expr $ac_end + $ac_max_sed_cmds`
10f2d63a 21015 fi
698dcdb6
VZ
21016done
21017if test -z "$ac_sed_cmds"; then
21018 ac_sed_cmds=cat
21019fi
21020EOF
10f2d63a 21021
698dcdb6
VZ
21022cat >> $CONFIG_STATUS <<EOF
21023
21024CONFIG_FILES=\${CONFIG_FILES-"wx-config
21025 src/make.env
21026 src/makeprog.env
21027 src/makelib.env
21028 Makefile
21029 "}
10f2d63a 21030EOF
698dcdb6
VZ
21031cat >> $CONFIG_STATUS <<\EOF
21032for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
10f2d63a 21033 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
698dcdb6
VZ
21034 case "$ac_file" in
21035 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
21036 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
21037 *) ac_file_in="${ac_file}.in" ;;
10f2d63a
VZ
21038 esac
21039
698dcdb6 21040 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
1e487827 21041
698dcdb6
VZ
21042 # Remove last slash and all that follows it. Not all systems have dirname.
21043 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
21044 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
21045 # The file is in a subdirectory.
21046 test ! -d "$ac_dir" && mkdir "$ac_dir"
21047 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
10f2d63a 21048 # A "../" for each directory in $ac_dir_suffix.
698dcdb6 21049 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
10f2d63a
VZ
21050 else
21051 ac_dir_suffix= ac_dots=
21052 fi
21053
698dcdb6
VZ
21054 case "$ac_given_srcdir" in
21055 .) srcdir=.
21056 if test -z "$ac_dots"; then top_srcdir=.
21057 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
21058 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
10f2d63a 21059 *) # Relative path.
698dcdb6
VZ
21060 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
21061 top_srcdir="$ac_dots$ac_given_srcdir" ;;
10f2d63a
VZ
21062 esac
21063
698dcdb6
VZ
21064 case "$ac_given_INSTALL" in
21065 [/$]*) INSTALL="$ac_given_INSTALL" ;;
21066 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
10f2d63a
VZ
21067 esac
21068
698dcdb6
VZ
21069 echo creating "$ac_file"
21070 rm -f "$ac_file"
21071 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
21072 case "$ac_file" in
21073 *Makefile*) ac_comsub="1i\\
21074# $configure_input" ;;
21075 *) ac_comsub= ;;
21076 esac
10f2d63a 21077
698dcdb6
VZ
21078 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
21079 sed -e "$ac_comsub
21080s%@configure_input@%$configure_input%g
21081s%@srcdir@%$srcdir%g
21082s%@top_srcdir@%$top_srcdir%g
21083s%@INSTALL@%$INSTALL%g
21084" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
21085fi; done
21086rm -f conftest.s*
10f2d63a
VZ
21087
21088# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
21089# NAME is the cpp macro being defined and VALUE is the value it is being given.
21090#
21091# ac_d sets the value in "#define NAME VALUE" lines.
698dcdb6
VZ
21092ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
21093ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
21094ac_dC='\3'
21095ac_dD='%g'
21096# ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
21097ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
21098ac_uB='\([ ]\)%\1#\2define\3'
10f2d63a 21099ac_uC=' '
698dcdb6
VZ
21100ac_uD='\4%g'
21101# ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
21102ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
21103ac_eB='$%\1#\2define\3'
21104ac_eC=' '
21105ac_eD='%g'
10f2d63a 21106
698dcdb6
VZ
21107if test "${CONFIG_HEADERS+set}" != set; then
21108EOF
21109cat >> $CONFIG_STATUS <<EOF
21110 CONFIG_HEADERS="setup.h:setup.h.in"
21111EOF
21112cat >> $CONFIG_STATUS <<\EOF
21113fi
21114for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
10f2d63a 21115 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
698dcdb6
VZ
21116 case "$ac_file" in
21117 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
21118 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
21119 *) ac_file_in="${ac_file}.in" ;;
10f2d63a
VZ
21120 esac
21121
698dcdb6
VZ
21122 echo creating $ac_file
21123
21124 rm -f conftest.frag conftest.in conftest.out
21125 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
21126 cat $ac_file_inputs > conftest.in
21127
21128EOF
21129
21130# Transform confdefs.h into a sed script conftest.vals that substitutes
21131# the proper values into config.h.in to produce config.h. And first:
21132# Protect against being on the right side of a sed subst in config.status.
21133# Protect against being in an unquoted here document in config.status.
21134rm -f conftest.vals
21135cat > conftest.hdr <<\EOF
21136s/[\\&%]/\\&/g
21137s%[\\$`]%\\&%g
21138s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
21139s%ac_d%ac_u%gp
21140s%ac_u%ac_e%gp
21141EOF
21142sed -n -f conftest.hdr confdefs.h > conftest.vals
21143rm -f conftest.hdr
10f2d63a
VZ
21144
21145# This sed command replaces #undef with comments. This is necessary, for
21146# example, in the case of _POSIX_SOURCE, which is predefined and required
21147# on some systems where configure will not decide to define it.
698dcdb6
VZ
21148cat >> conftest.vals <<\EOF
21149s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
10f2d63a
VZ
21150EOF
21151
698dcdb6
VZ
21152# Break up conftest.vals because some shells have a limit on
21153# the size of here documents, and old seds have small limits too.
10f2d63a
VZ
21154
21155rm -f conftest.tail
698dcdb6 21156while :
10f2d63a 21157do
698dcdb6
VZ
21158 ac_lines=`grep -c . conftest.vals`
21159 # grep -c gives empty output for an empty file on some AIX systems.
21160 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
21161 # Write a limited-size here document to conftest.frag.
21162 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
21163 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
10f2d63a 21164 echo 'CEOF
698dcdb6
VZ
21165 sed -f conftest.frag conftest.in > conftest.out
21166 rm -f conftest.in
21167 mv conftest.out conftest.in
21168' >> $CONFIG_STATUS
21169 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
21170 rm -f conftest.vals
21171 mv conftest.tail conftest.vals
10f2d63a 21172done
698dcdb6
VZ
21173rm -f conftest.vals
21174
21175cat >> $CONFIG_STATUS <<\EOF
21176 rm -f conftest.frag conftest.h
21177 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
21178 cat conftest.in >> conftest.h
21179 rm -f conftest.in
21180 if cmp -s $ac_file conftest.h 2>/dev/null; then
21181 echo "$ac_file is unchanged"
21182 rm -f conftest.h
10f2d63a 21183 else
698dcdb6
VZ
21184 # Remove last slash and all that follows it. Not all systems have dirname.
21185 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
10f2d63a 21186 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
698dcdb6
VZ
21187 # The file is in a subdirectory.
21188 test ! -d "$ac_dir" && mkdir "$ac_dir"
10f2d63a 21189 fi
698dcdb6
VZ
21190 rm -f $ac_file
21191 mv conftest.h $ac_file
10f2d63a 21192 fi
698dcdb6
VZ
21193fi; done
21194
10f2d63a 21195EOF
698dcdb6 21196cat >> $CONFIG_STATUS <<EOF
10f2d63a 21197
3a922bb4 21198 TOOLCHAIN_NAME="${TOOLCHAIN_NAME}"
698dcdb6
VZ
21199 LN_S="${LN_S}"
21200
21201
21202EOF
21203cat >> $CONFIG_STATUS <<\EOF
10f2d63a 21204
652d930d 21205 if test ! -h wx-config; then
991a5759 21206 chmod +x wx-config
3a922bb4
RL
21207 mv wx-config wx${TOOLCHAIN_NAME}-config
21208 ${LN_S} wx${TOOLCHAIN_NAME}-config wx-config
991a5759 21209 fi
665bbe97 21210
00cf1208
RR
21211 if test ! -d lib; then
21212 mkdir lib
21213 fi
21214 if test ! -d lib/wx; then
21215 mkdir lib/wx
21216 fi
21217 if test ! -d lib/wx/include; then
21218 mkdir lib/wx/include
21219 fi
3a922bb4
RL
21220 if test ! -d lib/wx/include/${TOOLCHAIN_NAME}; then
21221 mkdir lib/wx/include/${TOOLCHAIN_NAME}
00cf1208 21222 fi
3a922bb4
RL
21223 if test ! -d lib/wx/include/${TOOLCHAIN_NAME}/wx; then
21224 mkdir lib/wx/include/${TOOLCHAIN_NAME}/wx
00cf1208
RR
21225 fi
21226 if test -f setup.h; then
3a922bb4 21227 mv -f setup.h lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h
00cf1208 21228 fi
698dcdb6
VZ
21229
21230exit 0
10f2d63a
VZ
21231EOF
21232chmod +x $CONFIG_STATUS
698dcdb6
VZ
21233rm -fr confdefs* $ac_clean_files
21234test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
10f2d63a 21235
2224580a
VZ
21236if test "$no_recursion" != yes; then
21237
21238 # Remove --cache-file and --srcdir arguments so they do not pile up.
21239 ac_sub_configure_args=
21240 ac_prev=
21241 for ac_arg in $ac_configure_args; do
21242 if test -n "$ac_prev"; then
21243 ac_prev=
21244 continue
21245 fi
698dcdb6 21246 case "$ac_arg" in
2224580a
VZ
21247 -cache-file | --cache-file | --cache-fil | --cache-fi \
21248 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
21249 ac_prev=cache_file ;;
21250 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
698dcdb6 21251 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
2224580a
VZ
21252 ;;
21253 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
21254 ac_prev=srcdir ;;
21255 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
21256 ;;
21257 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
21258 esac
21259 done
21260
8f4a9a10 21261 for ac_config_dir in demos samples utils contrib; do
2224580a
VZ
21262
21263 # Do not complain, so a configure script can configure whichever
21264 # parts of a large source tree are present.
698dcdb6
VZ
21265 if test ! -d $srcdir/$ac_config_dir; then
21266 continue
21267 fi
21268
21269 echo configuring in $ac_config_dir
2224580a 21270
698dcdb6 21271 case "$srcdir" in
2224580a
VZ
21272 .) ;;
21273 *)
698dcdb6
VZ
21274 if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
21275 else
21276 { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
21277 fi
21278 ;;
2224580a
VZ
21279 esac
21280
21281 ac_popdir=`pwd`
698dcdb6 21282 cd $ac_config_dir
2224580a 21283
698dcdb6
VZ
21284 # A "../" for each directory in /$ac_config_dir.
21285 ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
2224580a 21286
698dcdb6 21287 case "$srcdir" in
2224580a
VZ
21288 .) # No --srcdir option. We are building in place.
21289 ac_sub_srcdir=$srcdir ;;
698dcdb6
VZ
21290 /*) # Absolute path.
21291 ac_sub_srcdir=$srcdir/$ac_config_dir ;;
2224580a 21292 *) # Relative path.
698dcdb6 21293 ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
2224580a
VZ
21294 esac
21295
21296 # Check for guested configure; otherwise get Cygnus style configure.
698dcdb6
VZ
21297 if test -f $ac_sub_srcdir/configure; then
21298 ac_sub_configure=$ac_sub_srcdir/configure
2224580a
VZ
21299 elif test -f $ac_sub_srcdir/configure.in; then
21300 ac_sub_configure=$ac_configure
21301 else
698dcdb6 21302 echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
2224580a
VZ
21303 ac_sub_configure=
21304 fi
21305
21306 # The recursion is here.
21307 if test -n "$ac_sub_configure"; then
698dcdb6 21308
2224580a 21309 # Make the cache file name correct relative to the subdirectory.
698dcdb6
VZ
21310 case "$cache_file" in
21311 /*) ac_sub_cache_file=$cache_file ;;
2224580a 21312 *) # Relative path.
698dcdb6 21313 ac_sub_cache_file="$ac_dots$cache_file" ;;
2224580a 21314 esac
698dcdb6
VZ
21315 case "$ac_given_INSTALL" in
21316 [/$]*) INSTALL="$ac_given_INSTALL" ;;
21317 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
21318 esac
2224580a 21319
698dcdb6 21320 echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
2224580a 21321 # The eval makes quoting arguments work.
698dcdb6
VZ
21322 if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
21323 then :
21324 else
21325 { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }
21326 fi
2224580a
VZ
21327 fi
21328
21329 cd $ac_popdir
21330 done
21331fi
21332
698dcdb6 21333