]> git.saurik.com Git - wxWidgets.git/blame - configure
initialize wxBitmapButton members
[wxWidgets.git] / configure
CommitLineData
10f2d63a
VZ
1#! /bin/sh
2
698dcdb6 3# From configure.in Id: configure.in
703e0a69
VZ
4
5
9e691f46 6# aclocal.m4 generated automatically by aclocal 1.6 -*- Autoconf -*-
703e0a69 7
9e691f46
VZ
8# Copyright 1996, 1997, 1998, 1999, 2000, 2001, 2002
9# Free Software Foundation, Inc.
10# This file is free software; the Free Software Foundation
11# gives unlimited permission to copy and/or distribute it,
12# with or without modifications, as long as this notice is preserved.
703e0a69 13
9e691f46
VZ
14# This program is distributed in the hope that it will be useful,
15# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
16# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
17# PARTICULAR PURPOSE.
703e0a69 18
703e0a69
VZ
19
20
1e487827 21
1e487827 22
698dcdb6
VZ
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
49
50
b040e242
VS
51
52
53
b040e242
VS
54
55
56
57
9e691f46
VZ
58# Configure paths for GTK+
59# Owen Taylor 1997-2001
b040e242
VS
60
61
62
63# Configure paths for GTK+
64# Owen Taylor 97-11-3
698dcdb6 65
698dcdb6
VZ
66
67
68# Guess values for system-dependent variables and create Makefiles.
69# Generated automatically using autoconf version 2.13
70# Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
71#
72# This configure script is free software; the Free Software Foundation
73# gives unlimited permission to copy, distribute and modify it.
74
75# Defaults:
76ac_help=
77ac_default_prefix=/usr/local
78# Any additions from configure.in:
79ac_help="$ac_help
8168de4c 80 --enable-gui use GUI classes"
1e6feb95 81ac_help="$ac_help
8168de4c 82 --enable-universal use wxWindows GUI controls instead of native ones"
698dcdb6
VZ
83ac_help="$ac_help
84 --with-gtk use GTK+"
85ac_help="$ac_help
86 --with-motif use Motif/Lesstif"
87ac_help="$ac_help
88 --with-mac use Mac OS X"
89ac_help="$ac_help
90 --with-wine use WINE"
91ac_help="$ac_help
77e13408 92 --with-msw use MS-Windows"
698dcdb6
VZ
93ac_help="$ac_help
94 --with-pm use OS/2 Presentation Manager"
1e6feb95 95ac_help="$ac_help
b3e8d00a 96 --with-mgl use SciTech MGL"
1725144d
RR
97ac_help="$ac_help
98 --with-microwin use MicroWindows"
f79bd02d
JS
99ac_help="$ac_help
100 --with-x11 use X11"
d8356fa3
VZ
101ac_help="$ac_help
102 --enable-nanox use NanoX"
698dcdb6 103ac_help="$ac_help
8168de4c 104 --enable-gtk2 use GTK+ 2.0 if available (EXPERIMENTAL)"
698dcdb6 105ac_help="$ac_help
8168de4c 106 --with-libpng use libpng (PNG image format)"
698dcdb6 107ac_help="$ac_help
8168de4c 108 --with-libjpeg use libjpeg (JPEG file format)"
698dcdb6 109ac_help="$ac_help
8168de4c 110 --with-libtiff use libtiff (TIFF file format)"
698dcdb6 111ac_help="$ac_help
8168de4c 112 --with-opengl use OpenGL (or Mesa)"
698dcdb6 113ac_help="$ac_help
d0e9b150 114 --with-dmalloc use dmalloc library (http://dmalloc.com/)"
3e44f09d
VZ
115ac_help="$ac_help
116 --with-regex enable support for wxRegEx class"
698dcdb6 117ac_help="$ac_help
8168de4c 118 --with-zlib use zlib for LZW compression"
698dcdb6 119ac_help="$ac_help
8168de4c 120 --with-odbc use the IODBC and wxODBC classes"
698dcdb6 121ac_help="$ac_help
8168de4c 122 --enable-shared create shared library code"
698dcdb6 123ac_help="$ac_help
3a922bb4 124 --enable-soname set the DT_SONAME field in ELF shared libraries"
698dcdb6 125ac_help="$ac_help
8168de4c 126 --enable-optimise create optimised code"
698dcdb6 127ac_help="$ac_help
8168de4c 128 --enable-debug same as debug_flag and debug_info"
683dccda
GD
129ac_help="$ac_help
130 --enable-precomp enable use of precompiled headers (Mac OS X)"
698dcdb6 131ac_help="$ac_help
8168de4c 132 --enable-debug_flag set __WXDEBUG__ flag (recommended for developers!)"
698dcdb6 133ac_help="$ac_help
8168de4c 134 --enable-debug_info create code with debugging information"
698dcdb6 135ac_help="$ac_help
8168de4c 136 --enable-debug_gdb create code with extra GDB debugging information"
698dcdb6 137ac_help="$ac_help
8168de4c 138 --enable-debug_cntxt use wxDebugContext"
698dcdb6 139ac_help="$ac_help
8168de4c 140 --enable-mem_tracing create code with memory tracing"
698dcdb6 141ac_help="$ac_help
8168de4c 142 --enable-profile create code with profiling information"
698dcdb6 143ac_help="$ac_help
8168de4c 144 --enable-no_rtti create code without RTTI information"
698dcdb6 145ac_help="$ac_help
b3e8d00a 146 --enable-no_exceptions create code without C++ exceptions handling"
698dcdb6 147ac_help="$ac_help
8168de4c 148 --enable-permissive compile code disregarding strict ANSI"
698dcdb6 149ac_help="$ac_help
8168de4c 150 --enable-no_deps create code without dependency information"
54276ccf 151ac_help="$ac_help
b3e8d00a 152 --enable-compat20 enable wxWindows 2.0 compatibility"
54276ccf 153ac_help="$ac_help
0c9a1c32 154 --disable-compat22 disable wxWindows 2.2 compatibility"
698dcdb6 155ac_help="$ac_help
8168de4c 156 --enable-intl use internationalization system"
698dcdb6 157ac_help="$ac_help
8168de4c 158 --enable-config use wxConfig (and derived) classes"
a1622950
VZ
159ac_help="$ac_help
160 --enable-protocols use wxProtocol and derived classes"
161ac_help="$ac_help
162 --enable-ftp use wxFTP (requires wxProtocol"
163ac_help="$ac_help
164 --enable-http use wxHTTP (requires wxProtocol"
165ac_help="$ac_help
166 --enable-fileproto use wxFileProto class (requires wxProtocol"
698dcdb6 167ac_help="$ac_help
8168de4c 168 --enable-sockets use socket/network classes"
698dcdb6 169ac_help="$ac_help
8168de4c 170 --enable-ipc use interprocess communication (wxSocket etc.)"
698dcdb6 171ac_help="$ac_help
8168de4c 172 --enable-cmdline use wxCmdLineParser class"
1e6feb95 173ac_help="$ac_help
8168de4c 174 --enable-datetime use wxDateTime class"
1e6feb95 175ac_help="$ac_help
8168de4c 176 --enable-timedate use obsolete wxDate/wxTime classes"
1e6feb95 177ac_help="$ac_help
8168de4c 178 --enable-stopwatch use wxStopWatch class"
1e6feb95 179ac_help="$ac_help
8168de4c 180 --enable-dialupman use dialup network classes"
698dcdb6 181ac_help="$ac_help
8168de4c 182 --enable-apple_ieee use the Apple IEEE codec"
698dcdb6 183ac_help="$ac_help
8168de4c 184 --enable-timer use wxTimer class"
698dcdb6 185ac_help="$ac_help
8168de4c 186 --enable-wave use wxWave class"
698dcdb6 187ac_help="$ac_help
8168de4c 188 --enable-fraction use wxFraction class"
698dcdb6 189ac_help="$ac_help
8168de4c 190 --enable-dynlib use wxLibrary class for DLL loading"
0b9ab0bd
RL
191ac_help="$ac_help
192 --enable-dynamicloader use (new) wxDynamicLibrary class"
698dcdb6 193ac_help="$ac_help
8168de4c 194 --enable-longlong use wxLongLong class"
698dcdb6 195ac_help="$ac_help
8168de4c 196 --enable-geometry use geometry class"
698dcdb6 197ac_help="$ac_help
8168de4c 198 --enable-log use logging system"
698dcdb6 199ac_help="$ac_help
8168de4c 200 --enable-streams use wxStream etc classes"
698dcdb6 201ac_help="$ac_help
8168de4c 202 --enable-file use wxFile classes"
698dcdb6 203ac_help="$ac_help
8168de4c 204 --enable-ffile use wxFFile classes"
1e6feb95 205ac_help="$ac_help
a3a584a7
VZ
206 --enable-textbuf use wxTextBuffer class"
207ac_help="$ac_help
208 --enable-textfile use wxTextFile class"
698dcdb6 209ac_help="$ac_help
8168de4c 210 --enable-fontmap use font encodings conversion classes"
1e6feb95 211ac_help="$ac_help
8168de4c 212 --enable-unicode compile wxString with Unicode support"
a72a4bfa
VS
213ac_help="$ac_help
214 --enable-mslu use MS Layer for Unicode on Windows 9x (win32 only)"
698dcdb6 215ac_help="$ac_help
8168de4c 216 --enable-wxprintfv use wxWindows implementation of vprintf()"
698dcdb6 217ac_help="$ac_help
8168de4c 218 --enable-std_iostreams use standard C++ stream classes"
698dcdb6 219ac_help="$ac_help
8168de4c 220 --enable-filesystem use virtual file systems classes"
698dcdb6 221ac_help="$ac_help
8168de4c 222 --enable-fs_inet use virtual HTTP/FTP filesystems"
698dcdb6 223ac_help="$ac_help
8168de4c 224 --enable-fs_zip use virtual ZIP filesystems"
698dcdb6 225ac_help="$ac_help
8168de4c 226 --enable-zipstream use wxZipInputStream"
698dcdb6 227ac_help="$ac_help
8168de4c 228 --enable-catch_segvs catch signals and pass them to wxApp::OnFatalException"
698dcdb6 229ac_help="$ac_help
8168de4c 230 --enable-snglinst use wxSingleInstanceChecker class"
698dcdb6 231ac_help="$ac_help
69d27ff7 232 --enable-mimetype use wxMimeTypesManager"
3e44f09d 233ac_help="$ac_help
b3e8d00a 234 --enable-sysoptions use wxSystemOptions"
4cdb0ab0
VS
235ac_help="$ac_help
236 --enable-url use wxURL class"
237ac_help="$ac_help
238 --enable-protocol use wxProtocol class"
239ac_help="$ac_help
240 --enable-protocol-http HTTP support in wxProtocol"
241ac_help="$ac_help
242 --enable-protocol-ftp FTP support in wxProtocol"
243ac_help="$ac_help
244 --enable-protocol-file FILE support in wxProtocol"
1e6feb95 245ac_help="$ac_help
8168de4c 246 --enable-threads use threads"
698dcdb6 247ac_help="$ac_help
8168de4c 248 --enable-docview use document view architecture"
698dcdb6 249ac_help="$ac_help
3379ed37 250 --enable-help use help subsystem"
29fd3c0c
VS
251ac_help="$ac_help
252 --enable-mshtmlhelp use MS HTML Help (win32)"
3379ed37
VZ
253ac_help="$ac_help
254 --enable-html use wxHTML sub-library"
255ac_help="$ac_help
256 --enable-htmlhelp use wxHTML-based help"
698dcdb6 257ac_help="$ac_help
8168de4c 258 --enable-constraints use layout-constraints system"
698dcdb6 259ac_help="$ac_help
8168de4c 260 --enable-printarch use printing architecture"
698dcdb6 261ac_help="$ac_help
8168de4c 262 --enable-mdi use multiple document interface architecture"
698dcdb6 263ac_help="$ac_help
8168de4c 264 --enable-loggui use standard GUI logger"
1e6feb95 265ac_help="$ac_help
8168de4c 266 --enable-logwin use wxLogWindow"
69d27ff7
MB
267ac_help="$ac_help
268 --enable-logdialog use wxLogDialog"
1e6feb95 269ac_help="$ac_help
8168de4c 270 --enable-postscript use wxPostscriptDC device context (default for gtk+)"
698dcdb6 271ac_help="$ac_help
8168de4c 272 --enable-prologio use Prolog IO library"
698dcdb6 273ac_help="$ac_help
8168de4c 274 --enable-resources use wxWindows resources"
698dcdb6 275ac_help="$ac_help
8168de4c 276 --enable-xresources use X resources for save (default for gtk+)"
698dcdb6 277ac_help="$ac_help
8168de4c 278 --enable-clipboard use wxClipboard classes"
698dcdb6 279ac_help="$ac_help
8168de4c 280 --enable-dnd use Drag'n'Drop classes"
698dcdb6 281ac_help="$ac_help
8168de4c 282 --enable-metafile use win32 metafiles"
698dcdb6 283ac_help="$ac_help
24176f2c 284 --enable-treelayout use wxTreeLayout classes"
698dcdb6 285ac_help="$ac_help
8168de4c 286 --enable-controls use all usual controls"
698dcdb6 287ac_help="$ac_help
8168de4c 288 --enable-accel use accelerators"
698dcdb6 289ac_help="$ac_help
8168de4c 290 --enable-button use wxButton class"
698dcdb6 291ac_help="$ac_help
8168de4c 292 --enable-bmpbutton use wxBitmapButton class"
698dcdb6 293ac_help="$ac_help
8168de4c 294 --enable-calendar use wxCalendarCtrl class"
1e6feb95 295ac_help="$ac_help
8168de4c 296 --enable-caret use wxCaret class"
1e6feb95 297ac_help="$ac_help
8168de4c 298 --enable-checkbox use wxCheckBox class"
698dcdb6 299ac_help="$ac_help
8168de4c 300 --enable-checklst use wxCheckListBox (listbox with checkboxes) class"
698dcdb6 301ac_help="$ac_help
8168de4c 302 --enable-choice use wxChoice class"
698dcdb6 303ac_help="$ac_help
8168de4c 304 --enable-combobox use wxComboBox classes"
698dcdb6 305ac_help="$ac_help
8168de4c 306 --enable-gauge use wxGauge class"
698dcdb6 307ac_help="$ac_help
8168de4c 308 --enable-grid use wxGrid class"
698dcdb6 309ac_help="$ac_help
8168de4c 310 --enable-newgrid use new wxGrid class"
698dcdb6 311ac_help="$ac_help
8168de4c 312 --enable-imaglist use wxImageList class"
698dcdb6 313ac_help="$ac_help
8168de4c 314 --enable-listbox use wxListBox class"
698dcdb6 315ac_help="$ac_help
8168de4c 316 --enable-listctrl use wxListCtrl class"
698dcdb6 317ac_help="$ac_help
8168de4c 318 --enable-notebook use wxNotebook class"
24176f2c
GD
319ac_help="$ac_help
320 --enable-propsheet use wxPropertySheet class"
698dcdb6 321ac_help="$ac_help
8168de4c 322 --enable-radiobox use wxRadioBox class"
698dcdb6 323ac_help="$ac_help
8168de4c 324 --enable-radiobtn use wxRadioButton class"
698dcdb6 325ac_help="$ac_help
8168de4c 326 --enable-sash use wxSashWindow class"
698dcdb6 327ac_help="$ac_help
8168de4c 328 --enable-scrollbar use wxScrollBar class and scrollable windows"
698dcdb6 329ac_help="$ac_help
8168de4c 330 --enable-slider use wxSlider class"
698dcdb6 331ac_help="$ac_help
8168de4c 332 --enable-spinbtn use wxSpinButton class"
698dcdb6 333ac_help="$ac_help
8168de4c 334 --enable-spinctrl use wxSpinCtrl class"
698dcdb6 335ac_help="$ac_help
8168de4c 336 --enable-splitter use wxSplitterWindow class"
698dcdb6 337ac_help="$ac_help
8168de4c 338 --enable-statbmp use wxStaticBitmap class"
698dcdb6 339ac_help="$ac_help
8168de4c 340 --enable-statbox use wxStaticBox class"
698dcdb6 341ac_help="$ac_help
8168de4c 342 --enable-statline use wxStaticLine class"
698dcdb6 343ac_help="$ac_help
8168de4c 344 --enable-stattext use wxStaticText class"
1e6feb95 345ac_help="$ac_help
8168de4c 346 --enable-statusbar use wxStatusBar class"
698dcdb6 347ac_help="$ac_help
8168de4c 348 --enable-tabdialog use wxTabControl class"
698dcdb6 349ac_help="$ac_help
8168de4c 350 --enable-textctrl use wxTextCtrl class"
1e6feb95 351ac_help="$ac_help
8168de4c 352 --enable-togglebtn use wxToggleButton class"
698dcdb6 353ac_help="$ac_help
8168de4c 354 --enable-toolbar use wxToolBar class"
698dcdb6 355ac_help="$ac_help
8168de4c 356 --enable-tbarnative use native wxToolBar class"
698dcdb6 357ac_help="$ac_help
8168de4c 358 --enable-tbarsmpl use wxToolBarSimple class"
698dcdb6 359ac_help="$ac_help
8168de4c 360 --enable-treectrl use wxTreeCtrl class"
9926e4a4
VZ
361ac_help="$ac_help
362 --enable-tipwindow use wxTipWindow class"
9f41d601
RR
363ac_help="$ac_help
364 --enable-popupwin use wxPopUpWindow class"
698dcdb6 365ac_help="$ac_help
b3e8d00a 366 --enable-commondlg use all common dialogs"
698dcdb6 367ac_help="$ac_help
8168de4c 368 --enable-choicedlg use wxChoiceDialog"
1e6feb95 369ac_help="$ac_help
8168de4c 370 --enable-coldlg use wxColourDialog"
1e6feb95 371ac_help="$ac_help
8168de4c 372 --enable-filedlg use wxFileDialog"
8db37e06
VZ
373ac_help="$ac_help
374 --enable-finddlg use wxFindReplaceDialog"
1e6feb95 375ac_help="$ac_help
8168de4c 376 --enable-fontdlg use wxFontDialog"
1e6feb95 377ac_help="$ac_help
8168de4c 378 --enable-dirdlg use wxDirDialog"
698dcdb6 379ac_help="$ac_help
8168de4c 380 --enable-msgdlg use wxMessageDialog"
1e6feb95 381ac_help="$ac_help
8168de4c 382 --enable-numberdlg use wxNumberEntryDialog"
cbca9943
VZ
383ac_help="$ac_help
384 --enable-splash use wxSplashScreen"
1e6feb95 385ac_help="$ac_help
8168de4c 386 --enable-textdlg use wxTextDialog"
698dcdb6 387ac_help="$ac_help
8168de4c 388 --enable-tipdlg use startup tips"
698dcdb6 389ac_help="$ac_help
8168de4c 390 --enable-progressdlg use wxProgressDialog"
b1f5d087
VZ
391ac_help="$ac_help
392 --enable-wizarddlg use wxWizard"
698dcdb6 393ac_help="$ac_help
8168de4c 394 --enable-menus use wxMenu/wxMenuBar/wxMenuItem classes"
1e6feb95 395ac_help="$ac_help
8168de4c 396 --enable-miniframe use wxMiniFrame class"
698dcdb6 397ac_help="$ac_help
8168de4c 398 --enable-tooltips use wxToolTip class"
698dcdb6 399ac_help="$ac_help
8168de4c 400 --enable-splines use spline drawing code"
698dcdb6 401ac_help="$ac_help
8168de4c 402 --enable-validators use wxValidator and derived classes"
698dcdb6 403ac_help="$ac_help
8168de4c 404 --enable-busyinfo use wxBusyInfo"
698dcdb6 405ac_help="$ac_help
b3e8d00a 406 --enable-joystick use wxJoystick (Linux only)"
698dcdb6 407ac_help="$ac_help
8168de4c 408 --enable-metafiles use wxMetaFile (Windows only)"
24fd6d87
VZ
409ac_help="$ac_help
410 --enable-dragimage use wxDragImage"
edae8572
VZ
411ac_help="$ac_help
412 --enable-palette use wxPalette class"
1e6feb95 413ac_help="$ac_help
8168de4c 414 --enable-image use wxImage class"
698dcdb6 415ac_help="$ac_help
8168de4c 416 --enable-gif use gif images (GIF file format)"
698dcdb6 417ac_help="$ac_help
8168de4c 418 --enable-pcx use pcx images (PCX file format)"
4b6b4dfc
RR
419ac_help="$ac_help
420 --enable-iff use iff images (IFF file format)"
698dcdb6 421ac_help="$ac_help
8168de4c 422 --enable-pnm use pnm images (PNM file format)"
698dcdb6 423ac_help="$ac_help
8168de4c 424 --enable-xpm use xpm images (XPM file format)"
658974ae
VS
425ac_help="$ac_help
426 --enable-icocur use Windows ICO and CUR formats"
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
698dcdb6 1294 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1295#define __AIX__ 1
1296EOF
1297
698dcdb6 1298 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1299#define __SYSV__ 1
1300EOF
1301
698dcdb6 1302 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1303#define __SVR4__ 1
1304EOF
1305
1306 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1307 ;;
1308
1c8183e2 1309 *-*-cygwin* | *-*-mingw32* )
10f2d63a
VZ
1310 USE_UNIX=0
1311 USE_WIN32=1
3a922bb4 1312 SO_SUFFIX=dll
698dcdb6 1313 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1314#define __WIN32__ 1
1315EOF
1316
698dcdb6 1317 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1318#define __WIN95__ 1
1319EOF
1320
698dcdb6 1321 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1322#define __WINDOWS__ 1
1323EOF
1324
698dcdb6 1325 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1326#define __GNUWIN32__ 1
1327EOF
1328
698dcdb6 1329 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1330#define STRICT 1
1331EOF
1332
698dcdb6 1333 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1334#define WINVER 0x0400
1335EOF
1336
cf27ef00 1337 PROGRAM_EXT=".exe"
7b7a7637 1338 RESCOMP=windres
10f2d63a
VZ
1339 DEFAULT_DEFAULT_wxUSE_MSW=1
1340 ;;
1341
f9bc1684
VS
1342 *-pc-msdosdjgpp )
1343 USE_UNIX=0
1344 USE_DOS=1
1345 cat >> confdefs.h <<\EOF
1346#define __DOS__ 1
1347EOF
1348
1349 PROGRAM_EXT=".exe"
1350 DEFAULT_DEFAULT_wxUSE_MGL=1
f9bc1684
VS
1351 ;;
1352
6fa882bd 1353 *-pc-os2_emx | *-pc-os2-emx )
698dcdb6 1354 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1355#define __EMX__ 1
1356EOF
1357
cf27ef00 1358 PROGRAM_EXT=".exe"
e07802fc 1359 DEFAULT_DEFAULT_wxUSE_PM=1
d558c907 1360 LIBS="$LIBS -lstdcpp"
10f2d63a
VZ
1361 ;;
1362
d08b457b
GD
1363 powerpc-*-darwin* )
1364 USE_BSD=1
f11bdd03 1365 USE_DARWIN=1
3a922bb4 1366 SO_SUFFIX=dylib
698dcdb6 1367 cat >> confdefs.h <<\EOF
f11bdd03 1368#define __BSD__ 1
b4085ce6
GD
1369EOF
1370
698dcdb6 1371 cat >> confdefs.h <<\EOF
f11bdd03 1372#define __DARWIN__ 1
d08b457b
GD
1373EOF
1374
1375 cat >> confdefs.h <<\EOF
1376#define __POWERPC__ 1
b4085ce6
GD
1377EOF
1378
1379 DEFAULT_DEFAULT_wxUSE_MAC=1
1380 ;;
1381
b12915c1
VZ
1382 *-*-beos* )
1383 USE_BEOS=1
698dcdb6 1384 cat >> confdefs.h <<\EOF
b12915c1
VZ
1385#define __BEOS__ 1
1386EOF
1387
1388 ;;
1389
10f2d63a 1390 *)
698dcdb6 1391 { echo "configure: error: unknown system type ${host}." 1>&2; exit 1; }
10f2d63a
VZ
1392esac
1393
1394if test "$USE_UNIX" = 1 ; then
b12915c1 1395 wxUSE_UNIX=yes
698dcdb6 1396 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1397#define __UNIX__ 1
1398EOF
1399
10f2d63a
VZ
1400fi
1401
2389f33b
VZ
1402if test "$USE_LINUX" = 1; then
1403 echo $ac_n "checking for glibc 2.1 or later""... $ac_c" 1>&6
009fead0 1404echo "configure:1405: checking for glibc 2.1 or later" >&5
2389f33b
VZ
1405if eval "test \"`echo '$''{'wx_lib_glibc21'+set}'`\" = set"; then
1406 echo $ac_n "(cached) $ac_c" 1>&6
1407else
a72a4bfa
VS
1408
1409 cat > conftest.$ac_ext <<EOF
009fead0 1410#line 1411 "configure"
2389f33b
VZ
1411#include "confdefs.h"
1412#include <features.h>
1413int main() {
1414
1415 #if !__GLIBC_PREREQ(2, 1)
1416 #error not glibc2.1
1417 #endif
1418
1419; return 0; }
1420EOF
009fead0 1421if { (eval echo configure:1422: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2389f33b
VZ
1422 rm -rf conftest*
1423
1424 wx_lib_glibc21=yes
1425
1426else
1427 echo "configure: failed program was:" >&5
1428 cat conftest.$ac_ext >&5
1429 rm -rf conftest*
1430
1431 wx_lib_glibc21=no
1432
1433
1434fi
1435rm -f conftest*
1436
1437fi
1438
1439echo "$ac_t""$wx_lib_glibc21" 1>&6
2389f33b
VZ
1440 if test "$wx_lib_glibc21" = "yes"; then
1441 cat >> confdefs.h <<\EOF
1442#define wxHAVE_GLIBC2 1
1443EOF
1444
1445 fi
1446fi
10f2d63a 1447
1e487827 1448
1e487827 1449
6232543b 1450
10f2d63a
VZ
1451 wx_arg_cache_file="configarg.cache"
1452 echo "loading argument cache $wx_arg_cache_file"
1453 rm -f ${wx_arg_cache_file}.tmp
1454 touch ${wx_arg_cache_file}.tmp
1455 touch ${wx_arg_cache_file}
698dcdb6 1456
10f2d63a
VZ
1457
1458DEBUG_CONFIGURE=0
1459if test $DEBUG_CONFIGURE = 1; then
1e6feb95
VZ
1460 DEFAULT_wxUSE_UNIVERSAL=no
1461
d8356fa3
VZ
1462 DEFAULT_wxUSE_NANOX=no
1463
10f2d63a
VZ
1464 DEFAULT_wxUSE_THREADS=yes
1465
1466 DEFAULT_wxUSE_SHARED=yes
3a922bb4 1467 DEFAULT_wxUSE_SONAME=no
1e6feb95 1468 DEFAULT_wxUSE_OPTIMISE=no
10f2d63a
VZ
1469 DEFAULT_wxUSE_PROFILE=no
1470 DEFAULT_wxUSE_NO_DEPS=no
8f4a9a10
RR
1471 DEFAULT_wxUSE_NO_RTTI=no
1472 DEFAULT_wxUSE_NO_EXCEPTIONS=no
10f2d63a
VZ
1473 DEFAULT_wxUSE_PERMISSIVE=no
1474 DEFAULT_wxUSE_DEBUG_FLAG=yes
1475 DEFAULT_wxUSE_DEBUG_INFO=yes
1476 DEFAULT_wxUSE_DEBUG_GDB=yes
1477 DEFAULT_wxUSE_MEM_TRACING=no
1478 DEFAULT_wxUSE_DEBUG_CONTEXT=no
1479 DEFAULT_wxUSE_DMALLOC=no
a7ae7112 1480 DEFAULT_wxUSE_PRECOMP=no
10f2d63a
VZ
1481 DEFAULT_wxUSE_APPLE_IEEE=no
1482
1483 DEFAULT_wxUSE_LOG=yes
1e6feb95
VZ
1484 DEFAULT_wxUSE_LOGWINDOW=no
1485 DEFAULT_wxUSE_LOGGUI=no
69d27ff7 1486 DEFAULT_wxUSE_LOGDIALOG=no
10f2d63a
VZ
1487
1488 DEFAULT_wxUSE_GUI=yes
1e6feb95 1489 DEFAULT_wxUSE_CONTROLS=no
10f2d63a 1490
3e44f09d 1491 DEFAULT_wxUSE_REGEX=no
10f2d63a
VZ
1492 DEFAULT_wxUSE_ZLIB=no
1493 DEFAULT_wxUSE_LIBPNG=no
1494 DEFAULT_wxUSE_LIBJPEG=no
c7a2bf27 1495 DEFAULT_wxUSE_LIBTIFF=no
10f2d63a 1496 DEFAULT_wxUSE_ODBC=no
bdad4e7e 1497 DEFAULT_wxUSE_OPENGL=no
10f2d63a 1498
eb4efbdc 1499 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=no
4f3c5f06 1500 DEFAULT_wxUSE_SNGLINST_CHECKER=no
10f2d63a 1501 DEFAULT_wxUSE_STD_IOSTREAM=no
1e6feb95
VZ
1502 DEFAULT_wxUSE_CMDLINE_PARSER=no
1503 DEFAULT_wxUSE_DATETIME=no
1504 DEFAULT_wxUSE_TIMEDATE=no
1505 DEFAULT_wxUSE_TIMER=no
1506 DEFAULT_wxUSE_STOPWATCH=no
10f2d63a 1507 DEFAULT_wxUSE_FILE=no
1e6feb95 1508 DEFAULT_wxUSE_FFILE=no
a3a584a7 1509 DEFAULT_wxUSE_TEXTBUFFER=no
10f2d63a 1510 DEFAULT_wxUSE_TEXTFILE=no
10f2d63a
VZ
1511 DEFAULT_wxUSE_WAVE=no
1512 DEFAULT_wxUSE_INTL=no
1513 DEFAULT_wxUSE_CONFIG=no
1e6feb95 1514 DEFAULT_wxUSE_FONTMAP=no
10f2d63a
VZ
1515 DEFAULT_wxUSE_STREAMS=no
1516 DEFAULT_wxUSE_SOCKETS=no
1517 DEFAULT_wxUSE_DIALUP_MANAGER=no
10f2d63a 1518 DEFAULT_wxUSE_JOYSTICK=no
6bff71f8 1519 DEFAULT_wxUSE_DYNLIB_CLASS=no
0b9ab0bd 1520 DEFAULT_wxUSE_DYNAMIC_LOADER=no
10f2d63a 1521 DEFAULT_wxUSE_LONGLONG=no
e8f65ba6 1522 DEFAULT_wxUSE_GEOMETRY=no
10f2d63a
VZ
1523
1524 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no
1525 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no
1526 DEFAULT_wxUSE_POSTSCRIPT=no
1527
1528 DEFAULT_wxUSE_X_RESOURCES=no
1529 DEFAULT_wxUSE_CLIPBOARD=no
1530 DEFAULT_wxUSE_TOOLTIPS=no
1531 DEFAULT_wxUSE_DRAG_AND_DROP=no
24fd6d87 1532 DEFAULT_wxUSE_DRAGIMAGE=no
10f2d63a
VZ
1533 DEFAULT_wxUSE_SPLINES=no
1534
1535 DEFAULT_wxUSE_MDI_ARCHITECTURE=no
1536 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no
1537 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no
1538
1539 DEFAULT_wxUSE_PROLOGIO=no
1540 DEFAULT_wxUSE_RESOURCES=no
1541 DEFAULT_wxUSE_CONSTRAINTS=no
1542 DEFAULT_wxUSE_IPC=no
1543 DEFAULT_wxUSE_HELP=no
29fd3c0c 1544 DEFAULT_wxUSE_MS_HTML_HELP=no
3379ed37 1545 DEFAULT_wxUSE_WXHTML_HELP=no
24176f2c 1546 DEFAULT_wxUSE_TREELAYOUT=no
10f2d63a 1547 DEFAULT_wxUSE_METAFILE=no
1e6feb95 1548 DEFAULT_wxUSE_MIMETYPE=no
4cdb0ab0
VS
1549 DEFAULT_wxUSE_SYSTEM_OPTIONS=no
1550 DEFAULT_wxUSE_PROTOCOL=no
1551 DEFAULT_wxUSE_PROTOCOL_HTTP=no
1552 DEFAULT_wxUSE_PROTOCOL_FTP=no
1553 DEFAULT_wxUSE_PROTOCOL_FILE=no
1554 DEFAULT_wxUSE_URL=no
1555
10f2d63a 1556 DEFAULT_wxUSE_COMMONDLGS=no
1e6feb95
VZ
1557 DEFAULT_wxUSE_CHOICEDLG=no
1558 DEFAULT_wxUSE_COLOURDLG=no
10f2d63a 1559 DEFAULT_wxUSE_DIRDLG=no
1e6feb95 1560 DEFAULT_wxUSE_FILEDLG=no
8db37e06 1561 DEFAULT_wxUSE_FINDREPLDLG=no
1e6feb95
VZ
1562 DEFAULT_wxUSE_FONTDLG=no
1563 DEFAULT_wxUSE_MSGDLG=no
1564 DEFAULT_wxUSE_NUMBERDLG=no
10f2d63a 1565 DEFAULT_wxUSE_TEXTDLG=no
cbca9943 1566 DEFAULT_wxUSE_SPLASH=no
10f2d63a
VZ
1567 DEFAULT_wxUSE_STARTUP_TIPS=no
1568 DEFAULT_wxUSE_PROGRESSDLG=no
b1f5d087
VZ
1569 DEFAULT_wxUSE_WIZARDDLG=no
1570
1e6feb95 1571 DEFAULT_wxUSE_MENUS=no
10f2d63a
VZ
1572 DEFAULT_wxUSE_MINIFRAME=no
1573 DEFAULT_wxUSE_HTML=no
24528b0c 1574 DEFAULT_wxUSE_FILESYSTEM=no
10f2d63a
VZ
1575 DEFAULT_wxUSE_FS_INET=no
1576 DEFAULT_wxUSE_FS_ZIP=no
1577 DEFAULT_wxUSE_BUSYINFO=no
1578 DEFAULT_wxUSE_ZIPSTREAM=no
1e6feb95 1579 DEFAULT_wxUSE_VALIDATORS=no
10f2d63a
VZ
1580
1581 DEFAULT_wxUSE_ACCEL=no
1e6feb95 1582 DEFAULT_wxUSE_BUTTON=no
10f2d63a 1583 DEFAULT_wxUSE_BMPBUTTON=no
1e6feb95
VZ
1584 DEFAULT_wxUSE_CALCTRL=no
1585 DEFAULT_wxUSE_CARET=no
10f2d63a
VZ
1586 DEFAULT_wxUSE_CHECKBOX=no
1587 DEFAULT_wxUSE_CHECKLST=no
1e6feb95 1588 DEFAULT_wxUSE_CHOICE=no
10f2d63a
VZ
1589 DEFAULT_wxUSE_COMBOBOX=no
1590 DEFAULT_wxUSE_GAUGE=no
1591 DEFAULT_wxUSE_GRID=no
1592 DEFAULT_wxUSE_NEW_GRID=no
1593 DEFAULT_wxUSE_IMAGLIST=no
1594 DEFAULT_wxUSE_LISTBOX=no
1595 DEFAULT_wxUSE_LISTCTRL=no
1596 DEFAULT_wxUSE_NOTEBOOK=no
24176f2c 1597 DEFAULT_wxUSE_PROPSHEET=no
10f2d63a
VZ
1598 DEFAULT_wxUSE_RADIOBOX=no
1599 DEFAULT_wxUSE_RADIOBTN=no
1600 DEFAULT_wxUSE_SASH=no
1601 DEFAULT_wxUSE_SCROLLBAR=no
1602 DEFAULT_wxUSE_SLIDER=no
1603 DEFAULT_wxUSE_SPINBTN=no
56cfaa52 1604 DEFAULT_wxUSE_SPINCTRL=no
10f2d63a
VZ
1605 DEFAULT_wxUSE_SPLITTER=no
1606 DEFAULT_wxUSE_STATBMP=no
1607 DEFAULT_wxUSE_STATBOX=no
1608 DEFAULT_wxUSE_STATLINE=no
1e6feb95 1609 DEFAULT_wxUSE_STATTEXT=no
10f2d63a
VZ
1610 DEFAULT_wxUSE_STATUSBAR=yes
1611 DEFAULT_wxUSE_TABDIALOG=no
1e6feb95 1612 DEFAULT_wxUSE_TEXTCTRL=no
1db8dc4a 1613 DEFAULT_wxUSE_TOGGLEBTN=no
10f2d63a 1614 DEFAULT_wxUSE_TOOLBAR=no
360d6699
VZ
1615 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
1616 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
10f2d63a 1617 DEFAULT_wxUSE_TREECTRL=no
9f41d601 1618 DEFAULT_wxUSE_POPUPWIN=no
9926e4a4 1619 DEFAULT_wxUSE_TIPWINDOW=no
10f2d63a
VZ
1620
1621 DEFAULT_wxUSE_UNICODE=no
a72a4bfa 1622 DEFAULT_wxUSE_UNICODE_MSLU=no
10f2d63a
VZ
1623 DEFAULT_wxUSE_WCSRTOMBS=no
1624
edae8572 1625 DEFAULT_wxUSE_PALETTE=no
0046ff7c 1626 DEFAULT_wxUSE_IMAGE=no
10f2d63a
VZ
1627 DEFAULT_wxUSE_GIF=no
1628 DEFAULT_wxUSE_PCX=no
1629 DEFAULT_wxUSE_PNM=no
4b6b4dfc 1630 DEFAULT_wxUSE_IFF=no
0046ff7c 1631 DEFAULT_wxUSE_XPM=no
658974ae 1632 DEFAULT_wxUSE_ICO_CUR=no
10f2d63a 1633else
1e6feb95
VZ
1634 DEFAULT_wxUSE_UNIVERSAL=no
1635
d8356fa3
VZ
1636 DEFAULT_wxUSE_NANOX=no
1637
10f2d63a
VZ
1638 DEFAULT_wxUSE_THREADS=yes
1639
1640 DEFAULT_wxUSE_SHARED=yes
3a922bb4 1641 DEFAULT_wxUSE_SONAME=no
10f2d63a
VZ
1642 DEFAULT_wxUSE_OPTIMISE=yes
1643 DEFAULT_wxUSE_PROFILE=no
1644 DEFAULT_wxUSE_NO_DEPS=no
8f4a9a10
RR
1645 DEFAULT_wxUSE_NO_RTTI=no
1646 DEFAULT_wxUSE_NO_EXCEPTIONS=no
10f2d63a
VZ
1647 DEFAULT_wxUSE_PERMISSIVE=no
1648 DEFAULT_wxUSE_DEBUG_FLAG=no
1649 DEFAULT_wxUSE_DEBUG_INFO=no
1650 DEFAULT_wxUSE_DEBUG_GDB=no
1651 DEFAULT_wxUSE_MEM_TRACING=no
1652 DEFAULT_wxUSE_DEBUG_CONTEXT=no
1653 DEFAULT_wxUSE_DMALLOC=no
a7ae7112 1654 DEFAULT_wxUSE_PRECOMP=no
10f2d63a
VZ
1655 DEFAULT_wxUSE_APPLE_IEEE=yes
1656
1657 DEFAULT_wxUSE_LOG=yes
d73be714
VZ
1658 DEFAULT_wxUSE_LOGWINDOW=yes
1659 DEFAULT_wxUSE_LOGGUI=yes
69d27ff7 1660 DEFAULT_wxUSE_LOGDIALOG=yes
10f2d63a
VZ
1661
1662 DEFAULT_wxUSE_GUI=yes
1663
831b3152 1664 DEFAULT_wxUSE_REGEX=yes
10f2d63a
VZ
1665 DEFAULT_wxUSE_ZLIB=yes
1666 DEFAULT_wxUSE_LIBPNG=yes
1667 DEFAULT_wxUSE_LIBJPEG=yes
b47c832e 1668 DEFAULT_wxUSE_LIBTIFF=yes
16b52fa1 1669 DEFAULT_wxUSE_ODBC=no
bdad4e7e 1670 DEFAULT_wxUSE_OPENGL=no
10f2d63a 1671
eb4efbdc 1672 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=yes
4f3c5f06 1673 DEFAULT_wxUSE_SNGLINST_CHECKER=yes
10f2d63a 1674 DEFAULT_wxUSE_STD_IOSTREAM=no
1e6feb95
VZ
1675 DEFAULT_wxUSE_CMDLINE_PARSER=yes
1676 DEFAULT_wxUSE_DATETIME=yes
1677 DEFAULT_wxUSE_TIMEDATE=no
1678 DEFAULT_wxUSE_TIMER=yes
1679 DEFAULT_wxUSE_STOPWATCH=yes
10f2d63a 1680 DEFAULT_wxUSE_FILE=yes
1e6feb95 1681 DEFAULT_wxUSE_FFILE=yes
a3a584a7 1682 DEFAULT_wxUSE_TEXTBUFFER=yes
10f2d63a 1683 DEFAULT_wxUSE_TEXTFILE=yes
10f2d63a
VZ
1684 DEFAULT_wxUSE_WAVE=no
1685 DEFAULT_wxUSE_INTL=yes
1686 DEFAULT_wxUSE_CONFIG=yes
1e6feb95 1687 DEFAULT_wxUSE_FONTMAP=yes
10f2d63a
VZ
1688 DEFAULT_wxUSE_STREAMS=yes
1689 DEFAULT_wxUSE_SOCKETS=yes
1690 DEFAULT_wxUSE_DIALUP_MANAGER=yes
10f2d63a 1691 DEFAULT_wxUSE_JOYSTICK=yes
6bff71f8 1692 DEFAULT_wxUSE_DYNLIB_CLASS=yes
9337b578 1693 DEFAULT_wxUSE_DYNAMIC_LOADER=yes
b685cd9b 1694 DEFAULT_wxUSE_LONGLONG=yes
e8f65ba6 1695 DEFAULT_wxUSE_GEOMETRY=yes
10f2d63a
VZ
1696
1697 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes
1698 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes
1699 DEFAULT_wxUSE_POSTSCRIPT=yes
1700
1701 DEFAULT_wxUSE_X_RESOURCES=no
1702 DEFAULT_wxUSE_CLIPBOARD=yes
1703 DEFAULT_wxUSE_TOOLTIPS=yes
1704 DEFAULT_wxUSE_DRAG_AND_DROP=yes
24fd6d87 1705 DEFAULT_wxUSE_DRAGIMAGE=yes
10f2d63a
VZ
1706 DEFAULT_wxUSE_SPLINES=yes
1707
1708 DEFAULT_wxUSE_MDI_ARCHITECTURE=yes
1709 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes
1710 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes
1711
1712 DEFAULT_wxUSE_PROLOGIO=yes
1713 DEFAULT_wxUSE_RESOURCES=yes
1714 DEFAULT_wxUSE_CONSTRAINTS=yes
1715 DEFAULT_wxUSE_IPC=yes
1716 DEFAULT_wxUSE_HELP=yes
29fd3c0c 1717 DEFAULT_wxUSE_MS_HTML_HELP=yes
3379ed37 1718 DEFAULT_wxUSE_WXHTML_HELP=yes
24176f2c 1719 DEFAULT_wxUSE_TREELAYOUT=yes
10f2d63a 1720 DEFAULT_wxUSE_METAFILE=yes
1e6feb95 1721 DEFAULT_wxUSE_MIMETYPE=yes
3e44f09d 1722 DEFAULT_wxUSE_SYSTEM_OPTIONS=yes
4cdb0ab0
VS
1723 DEFAULT_wxUSE_PROTOCOL=yes
1724 DEFAULT_wxUSE_PROTOCOL_HTTP=yes
1725 DEFAULT_wxUSE_PROTOCOL_FTP=yes
1726 DEFAULT_wxUSE_PROTOCOL_FILE=yes
1727 DEFAULT_wxUSE_URL=yes
10f2d63a
VZ
1728
1729 DEFAULT_wxUSE_COMMONDLGS=yes
1e6feb95
VZ
1730 DEFAULT_wxUSE_CHOICEDLG=yes
1731 DEFAULT_wxUSE_COLOURDLG=yes
10f2d63a 1732 DEFAULT_wxUSE_DIRDLG=yes
1e6feb95 1733 DEFAULT_wxUSE_FILEDLG=yes
8db37e06 1734 DEFAULT_wxUSE_FINDREPLDLG=yes
1e6feb95
VZ
1735 DEFAULT_wxUSE_FONTDLG=yes
1736 DEFAULT_wxUSE_MSGDLG=yes
1737 DEFAULT_wxUSE_NUMBERDLG=yes
10f2d63a 1738 DEFAULT_wxUSE_TEXTDLG=yes
cbca9943 1739 DEFAULT_wxUSE_SPLASH=yes
10f2d63a
VZ
1740 DEFAULT_wxUSE_STARTUP_TIPS=yes
1741 DEFAULT_wxUSE_PROGRESSDLG=yes
f33f19dd
VZ
1742 DEFAULT_wxUSE_WIZARDDLG=yes
1743
1e6feb95 1744 DEFAULT_wxUSE_MENUS=yes
10f2d63a
VZ
1745 DEFAULT_wxUSE_MINIFRAME=yes
1746 DEFAULT_wxUSE_HTML=yes
24528b0c 1747 DEFAULT_wxUSE_FILESYSTEM=yes
10f2d63a
VZ
1748 DEFAULT_wxUSE_FS_INET=yes
1749 DEFAULT_wxUSE_FS_ZIP=yes
1750 DEFAULT_wxUSE_BUSYINFO=yes
1751 DEFAULT_wxUSE_ZIPSTREAM=yes
1752 DEFAULT_wxUSE_VALIDATORS=yes
1753
1754 DEFAULT_wxUSE_ACCEL=yes
1e6feb95 1755 DEFAULT_wxUSE_BUTTON=yes
10f2d63a 1756 DEFAULT_wxUSE_BMPBUTTON=yes
1e6feb95
VZ
1757 DEFAULT_wxUSE_CALCTRL=yes
1758 DEFAULT_wxUSE_CARET=yes
10f2d63a
VZ
1759 DEFAULT_wxUSE_CHECKBOX=yes
1760 DEFAULT_wxUSE_CHECKLST=yes
1761 DEFAULT_wxUSE_CHOICE=yes
1762 DEFAULT_wxUSE_COMBOBOX=yes
1763 DEFAULT_wxUSE_GAUGE=yes
1764 DEFAULT_wxUSE_GRID=yes
cc977e5f 1765 DEFAULT_wxUSE_NEW_GRID=yes
10f2d63a
VZ
1766 DEFAULT_wxUSE_IMAGLIST=yes
1767 DEFAULT_wxUSE_LISTBOX=yes
1768 DEFAULT_wxUSE_LISTCTRL=yes
1769 DEFAULT_wxUSE_NOTEBOOK=yes
24176f2c 1770 DEFAULT_wxUSE_PROPSHEET=yes
10f2d63a
VZ
1771 DEFAULT_wxUSE_RADIOBOX=yes
1772 DEFAULT_wxUSE_RADIOBTN=yes
1773 DEFAULT_wxUSE_SASH=yes
1774 DEFAULT_wxUSE_SCROLLBAR=yes
1775 DEFAULT_wxUSE_SLIDER=yes
1776 DEFAULT_wxUSE_SPINBTN=yes
56cfaa52 1777 DEFAULT_wxUSE_SPINCTRL=yes
10f2d63a
VZ
1778 DEFAULT_wxUSE_SPLITTER=yes
1779 DEFAULT_wxUSE_STATBMP=yes
1780 DEFAULT_wxUSE_STATBOX=yes
1781 DEFAULT_wxUSE_STATLINE=yes
1e6feb95 1782 DEFAULT_wxUSE_STATTEXT=yes
10f2d63a
VZ
1783 DEFAULT_wxUSE_STATUSBAR=yes
1784 DEFAULT_wxUSE_TABDIALOG=no
1e6feb95 1785 DEFAULT_wxUSE_TEXTCTRL=yes
1db8dc4a 1786 DEFAULT_wxUSE_TOGGLEBTN=yes
10f2d63a 1787 DEFAULT_wxUSE_TOOLBAR=yes
360d6699
VZ
1788 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
1789 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
10f2d63a 1790 DEFAULT_wxUSE_TREECTRL=yes
9f41d601 1791 DEFAULT_wxUSE_POPUPWIN=yes
9926e4a4 1792 DEFAULT_wxUSE_TIPWINDOW=yes
10f2d63a
VZ
1793
1794 DEFAULT_wxUSE_UNICODE=no
a72a4bfa 1795 DEFAULT_wxUSE_UNICODE_MSLU=yes
10f2d63a
VZ
1796 DEFAULT_wxUSE_WCSRTOMBS=no
1797
edae8572 1798 DEFAULT_wxUSE_PALETTE=yes
0046ff7c 1799 DEFAULT_wxUSE_IMAGE=yes
10f2d63a
VZ
1800 DEFAULT_wxUSE_GIF=yes
1801 DEFAULT_wxUSE_PCX=yes
cc0e8480 1802 DEFAULT_wxUSE_IFF=no
10f2d63a 1803 DEFAULT_wxUSE_PNM=yes
0046ff7c 1804 DEFAULT_wxUSE_XPM=yes
658974ae 1805 DEFAULT_wxUSE_ICO_CUR=yes
10f2d63a
VZ
1806fi
1807
698dcdb6
VZ
1808
1809
10f2d63a
VZ
1810for toolkit in `echo $ALL_TOOLKITS`; do
1811 LINE=`grep "wxUSE_$toolkit" ${wx_arg_cache_file}`
1812 if test "x$LINE" != x ; then
1813 has_toolkit_in_cache=1
1814 eval "DEFAULT_$LINE"
1815 eval "CACHE_$toolkit=1"
1816 fi
1817done
1818
698dcdb6
VZ
1819
1820
1821 echo $ac_n "checking for --enable-gui""... $ac_c" 1>&6
009fead0 1822echo "configure:1823: checking for --enable-gui" >&5
10f2d63a
VZ
1823 no_cache=0
1824 # Check whether --enable-gui or --disable-gui was given.
1825if test "${enable_gui+set}" = set; then
1826 enableval="$enable_gui"
698dcdb6 1827
10f2d63a
VZ
1828 if test "$enableval" = yes; then
1829 ac_cv_use_gui='wxUSE_GUI=yes'
1830 else
1831 ac_cv_use_gui='wxUSE_GUI=no'
1832 fi
698dcdb6 1833
10f2d63a 1834else
698dcdb6 1835
10f2d63a
VZ
1836 LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}`
1837 if test "x$LINE" != x ; then
1838 eval "DEFAULT_$LINE"
1839 else
1840 no_cache=1
1841 fi
1842
1843 ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI
698dcdb6
VZ
1844
1845fi
10f2d63a
VZ
1846
1847
1848 eval "$ac_cv_use_gui"
1849 if test "$no_cache" != 1; then
1850 echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp
1851 fi
1852
1853 if test "$wxUSE_GUI" = yes; then
698dcdb6 1854 echo "$ac_t""yes" 1>&6
10f2d63a 1855 else
698dcdb6 1856 echo "$ac_t""no" 1>&6
10f2d63a 1857 fi
698dcdb6 1858
10f2d63a 1859
b12915c1 1860if test "$wxUSE_GUI" = "yes"; then
10f2d63a 1861
1e6feb95
VZ
1862
1863 echo $ac_n "checking for --enable-universal""... $ac_c" 1>&6
009fead0 1864echo "configure:1865: checking for --enable-universal" >&5
1e6feb95
VZ
1865 no_cache=0
1866 # Check whether --enable-universal or --disable-universal was given.
1867if test "${enable_universal+set}" = set; then
1868 enableval="$enable_universal"
1869
1870 if test "$enableval" = yes; then
1871 ac_cv_use_universal='wxUSE_UNIVERSAL=yes'
1872 else
1873 ac_cv_use_universal='wxUSE_UNIVERSAL=no'
1874 fi
1875
1876else
1877
1878 LINE=`grep "wxUSE_UNIVERSAL" ${wx_arg_cache_file}`
1879 if test "x$LINE" != x ; then
1880 eval "DEFAULT_$LINE"
1881 else
1882 no_cache=1
1883 fi
1884
1885 ac_cv_use_universal='wxUSE_UNIVERSAL='$DEFAULT_wxUSE_UNIVERSAL
1886
1887fi
1888
1889
1890 eval "$ac_cv_use_universal"
1891 if test "$no_cache" != 1; then
1892 echo $ac_cv_use_universal >> ${wx_arg_cache_file}.tmp
1893 fi
1894
1895 if test "$wxUSE_UNIVERSAL" = yes; then
1896 echo "$ac_t""yes" 1>&6
1897 else
1898 echo "$ac_t""no" 1>&6
1899 fi
1900
10f2d63a
VZ
1901# Check whether --with-gtk or --without-gtk was given.
1902if test "${with_gtk+set}" = set; then
1903 withval="$with_gtk"
1904 wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1
698dcdb6 1905fi
10f2d63a
VZ
1906
1907# Check whether --with-motif or --without-motif was given.
1908if test "${with_motif+set}" = set; then
1909 withval="$with_motif"
1910 wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1
698dcdb6 1911fi
10f2d63a 1912
b4085ce6
GD
1913# Check whether --with-mac or --without-mac was given.
1914if test "${with_mac+set}" = set; then
1915 withval="$with_mac"
1916 wxUSE_MAC="$withval" TOOLKIT_GIVEN=1
698dcdb6 1917fi
b4085ce6 1918
10f2d63a
VZ
1919# Check whether --with-wine or --without-wine was given.
1920if test "${with_wine+set}" = set; then
1921 withval="$with_wine"
1922 wxUSE_WINE="$withval" CACHE_WINE=1 TOOLKIT_GIVEN=1
698dcdb6 1923fi
10f2d63a 1924
77e13408
RL
1925# Check whether --with-msw or --without-msw was given.
1926if test "${with_msw+set}" = set; then
1927 withval="$with_msw"
1928 wxUSE_MSW="$withval" CACHE_MSW TOOLKIT_GIVEN=1
698dcdb6 1929fi
10f2d63a 1930
e07802fc
VZ
1931# Check whether --with-pm or --without-pm was given.
1932if test "${with_pm+set}" = set; then
1933 withval="$with_pm"
1934 wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1
698dcdb6
VZ
1935fi
1936
1e6feb95
VZ
1937# Check whether --with-mgl or --without-mgl was given.
1938if test "${with_mgl+set}" = set; then
1939 withval="$with_mgl"
1940 wxUSE_MGL="$withval" CACHE_MGL=1 TOOLKIT_GIVEN=1
1941fi
1942
1725144d
RR
1943# Check whether --with-microwin or --without-microwin was given.
1944if test "${with_microwin+set}" = set; then
1945 withval="$with_microwin"
1946 wxUSE_MICROWIN="$withval" CACHE_MICROWIN=1 TOOLKIT_GIVEN=1
1947fi
1948
f79bd02d
JS
1949# Check whether --with-x11 or --without-x11 was given.
1950if test "${with_x11+set}" = set; then
1951 withval="$with_x11"
3c011993 1952 wxUSE_X11="$withval" wxUSE_UNIVERSAL="yes" CACHE_X11=1 TOOLKIT_GIVEN=1
f79bd02d
JS
1953fi
1954
10f2d63a 1955
ba875e66 1956 echo $ac_n "checking for --enable-nanox""... $ac_c" 1>&6
009fead0 1957echo "configure:1958: checking for --enable-nanox" >&5
d8356fa3 1958 no_cache=0
ba875e66
VZ
1959 # Check whether --enable-nanox or --disable-nanox was given.
1960if test "${enable_nanox+set}" = set; then
1961 enableval="$enable_nanox"
d8356fa3
VZ
1962
1963 if test "$enableval" = yes; then
ba875e66 1964 ac_cv_use_nanox='wxUSE_NANOX=yes'
d8356fa3 1965 else
ba875e66 1966 ac_cv_use_nanox='wxUSE_NANOX=no'
d8356fa3
VZ
1967 fi
1968
1969else
1970
1971 LINE=`grep "wxUSE_NANOX" ${wx_arg_cache_file}`
1972 if test "x$LINE" != x ; then
1973 eval "DEFAULT_$LINE"
1974 else
1975 no_cache=1
1976 fi
1977
ba875e66 1978 ac_cv_use_nanox='wxUSE_NANOX='$DEFAULT_wxUSE_NANOX
d8356fa3
VZ
1979
1980fi
1981
1982
ba875e66 1983 eval "$ac_cv_use_nanox"
d8356fa3 1984 if test "$no_cache" != 1; then
ba875e66 1985 echo $ac_cv_use_nanox >> ${wx_arg_cache_file}.tmp
d8356fa3
VZ
1986 fi
1987
1988 if test "$wxUSE_NANOX" = yes; then
1989 echo "$ac_t""yes" 1>&6
1990 else
1991 echo "$ac_t""no" 1>&6
1992 fi
1993
1994
8168de4c
VZ
1995# Check whether --enable-gtk2 or --disable-gtk2 was given.
1996if test "${enable_gtk2+set}" = set; then
1997 enableval="$enable_gtk2"
9e691f46 1998 wxUSE_GTK2="yes"
10f2d63a 1999else
9e691f46 2000 wxUSE_GTK2="no"
698dcdb6
VZ
2001fi
2002
703e0a69 2003
1e487827 2004
698dcdb6 2005 echo $ac_n "checking for --with-libpng""... $ac_c" 1>&6
009fead0 2006echo "configure:2007: checking for --with-libpng" >&5
698dcdb6
VZ
2007 no_cache=0
2008 # Check whether --with-libpng or --without-libpng was given.
b12915c1
VZ
2009if test "${with_libpng+set}" = set; then
2010 withval="$with_libpng"
698dcdb6 2011
10f2d63a 2012 if test "$withval" = yes; then
b12915c1 2013 ac_cv_use_libpng='wxUSE_LIBPNG=yes'
422107f9 2014 elif test "$withval" = no; then
b12915c1 2015 ac_cv_use_libpng='wxUSE_LIBPNG=no'
422107f9
VZ
2016 elif test "$withval" = sys; then
2017 ac_cv_use_libpng='wxUSE_LIBPNG=sys'
4f14bcd8
GD
2018 elif test "$withval" = builtin; then
2019 ac_cv_use_libpng='wxUSE_LIBPNG=builtin'
422107f9 2020 else
4f14bcd8 2021 { echo "configure: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" 1>&2; exit 1; }
10f2d63a 2022 fi
698dcdb6 2023
10f2d63a 2024else
698dcdb6 2025
b12915c1 2026 LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}`
10f2d63a
VZ
2027 if test "x$LINE" != x ; then
2028 eval "DEFAULT_$LINE"
2029 else
2030 no_cache=1
2031 fi
2032
b12915c1 2033 ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG
698dcdb6
VZ
2034
2035fi
10f2d63a
VZ
2036
2037
b12915c1 2038 eval "$ac_cv_use_libpng"
10f2d63a 2039 if test "$no_cache" != 1; then
b12915c1 2040 echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
2041 fi
2042
b12915c1 2043 if test "$wxUSE_LIBPNG" = yes; then
698dcdb6 2044 echo "$ac_t""yes" 1>&6
422107f9 2045 elif test "$wxUSE_LIBPNG" = no; then
698dcdb6 2046 echo "$ac_t""no" 1>&6
422107f9 2047 elif test "$wxUSE_LIBPNG" = sys; then
698dcdb6 2048 echo "$ac_t""system version" 1>&6
4f14bcd8
GD
2049 elif test "$wxUSE_LIBPNG" = builtin; then
2050 echo "$ac_t""builtin version" 1>&6
422107f9 2051 else
4f14bcd8 2052 { echo "configure: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" 1>&2; exit 1; }
10f2d63a 2053 fi
698dcdb6 2054
10f2d63a 2055
698dcdb6 2056 echo $ac_n "checking for --with-libjpeg""... $ac_c" 1>&6
009fead0 2057echo "configure:2058: checking for --with-libjpeg" >&5
10f2d63a 2058 no_cache=0
698dcdb6 2059 # Check whether --with-libjpeg or --without-libjpeg was given.
b12915c1
VZ
2060if test "${with_libjpeg+set}" = set; then
2061 withval="$with_libjpeg"
698dcdb6 2062
10f2d63a 2063 if test "$withval" = yes; then
b12915c1 2064 ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes'
422107f9 2065 elif test "$withval" = no; then
b12915c1 2066 ac_cv_use_libjpeg='wxUSE_LIBJPEG=no'
422107f9
VZ
2067 elif test "$withval" = sys; then
2068 ac_cv_use_libjpeg='wxUSE_LIBJPEG=sys'
4f14bcd8
GD
2069 elif test "$withval" = builtin; then
2070 ac_cv_use_libjpeg='wxUSE_LIBJPEG=builtin'
422107f9 2071 else
4f14bcd8 2072 { echo "configure: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" 1>&2; exit 1; }
10f2d63a 2073 fi
698dcdb6 2074
10f2d63a 2075else
698dcdb6 2076
b12915c1 2077 LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}`
10f2d63a
VZ
2078 if test "x$LINE" != x ; then
2079 eval "DEFAULT_$LINE"
2080 else
2081 no_cache=1
2082 fi
2083
b12915c1 2084 ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG
698dcdb6
VZ
2085
2086fi
10f2d63a
VZ
2087
2088
b12915c1 2089 eval "$ac_cv_use_libjpeg"
10f2d63a 2090 if test "$no_cache" != 1; then
b12915c1 2091 echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
2092 fi
2093
b12915c1 2094 if test "$wxUSE_LIBJPEG" = yes; then
698dcdb6 2095 echo "$ac_t""yes" 1>&6
422107f9 2096 elif test "$wxUSE_LIBJPEG" = no; then
698dcdb6 2097 echo "$ac_t""no" 1>&6
422107f9 2098 elif test "$wxUSE_LIBJPEG" = sys; then
698dcdb6 2099 echo "$ac_t""system version" 1>&6
4f14bcd8
GD
2100 elif test "$wxUSE_LIBJPEG" = builtin; then
2101 echo "$ac_t""builtin version" 1>&6
422107f9 2102 else
4f14bcd8 2103 { echo "configure: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" 1>&2; exit 1; }
10f2d63a 2104 fi
698dcdb6 2105
10f2d63a 2106
698dcdb6 2107 echo $ac_n "checking for --with-libtiff""... $ac_c" 1>&6
009fead0 2108echo "configure:2109: checking for --with-libtiff" >&5
10f2d63a 2109 no_cache=0
698dcdb6 2110 # Check whether --with-libtiff or --without-libtiff was given.
b12915c1
VZ
2111if test "${with_libtiff+set}" = set; then
2112 withval="$with_libtiff"
698dcdb6 2113
10f2d63a 2114 if test "$withval" = yes; then
b12915c1 2115 ac_cv_use_libtiff='wxUSE_LIBTIFF=yes'
0dcf9893 2116 elif test "$withval" = no; then
b12915c1 2117 ac_cv_use_libtiff='wxUSE_LIBTIFF=no'
0dcf9893
VZ
2118 elif test "$withval" = sys; then
2119 ac_cv_use_libtiff='wxUSE_LIBTIFF=sys'
4f14bcd8
GD
2120 elif test "$withval" = builtin; then
2121 ac_cv_use_libtiff='wxUSE_LIBTIFF=builtin'
0dcf9893 2122 else
4f14bcd8 2123 { echo "configure: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" 1>&2; exit 1; }
10f2d63a 2124 fi
698dcdb6 2125
10f2d63a 2126else
698dcdb6 2127
b12915c1 2128 LINE=`grep "wxUSE_LIBTIFF" ${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_libtiff='wxUSE_LIBTIFF='$DEFAULT_wxUSE_LIBTIFF
698dcdb6
VZ
2136
2137fi
10f2d63a
VZ
2138
2139
b12915c1 2140 eval "$ac_cv_use_libtiff"
10f2d63a 2141 if test "$no_cache" != 1; then
b12915c1 2142 echo $ac_cv_use_libtiff >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
2143 fi
2144
b12915c1 2145 if test "$wxUSE_LIBTIFF" = yes; then
698dcdb6 2146 echo "$ac_t""yes" 1>&6
0dcf9893 2147 elif test "$wxUSE_LIBTIFF" = no; then
698dcdb6 2148 echo "$ac_t""no" 1>&6
0dcf9893 2149 elif test "$wxUSE_LIBTIFF" = sys; then
698dcdb6 2150 echo "$ac_t""system version" 1>&6
4f14bcd8
GD
2151 elif test "$wxUSE_LIBTIFF" = builtin; then
2152 echo "$ac_t""builtin version" 1>&6
0dcf9893 2153 else
4f14bcd8 2154 { echo "configure: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" 1>&2; exit 1; }
10f2d63a 2155 fi
698dcdb6 2156
10f2d63a 2157
698dcdb6 2158 echo $ac_n "checking for --with-opengl""... $ac_c" 1>&6
009fead0 2159echo "configure:2160: checking for --with-opengl" >&5
10f2d63a 2160 no_cache=0
698dcdb6 2161 # Check whether --with-opengl or --without-opengl was given.
b12915c1
VZ
2162if test "${with_opengl+set}" = set; then
2163 withval="$with_opengl"
698dcdb6 2164
10f2d63a 2165 if test "$withval" = yes; then
b12915c1 2166 ac_cv_use_opengl='wxUSE_OPENGL=yes'
10f2d63a 2167 else
b12915c1 2168 ac_cv_use_opengl='wxUSE_OPENGL=no'
10f2d63a 2169 fi
698dcdb6 2170
10f2d63a 2171else
698dcdb6 2172
b12915c1 2173 LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}`
10f2d63a
VZ
2174 if test "x$LINE" != x ; then
2175 eval "DEFAULT_$LINE"
2176 else
2177 no_cache=1
2178 fi
2179
b12915c1 2180 ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL
698dcdb6
VZ
2181
2182fi
10f2d63a
VZ
2183
2184
b12915c1 2185 eval "$ac_cv_use_opengl"
10f2d63a 2186 if test "$no_cache" != 1; then
b12915c1 2187 echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
2188 fi
2189
b12915c1 2190 if test "$wxUSE_OPENGL" = yes; then
698dcdb6 2191 echo "$ac_t""yes" 1>&6
10f2d63a 2192 else
698dcdb6 2193 echo "$ac_t""no" 1>&6
10f2d63a 2194 fi
698dcdb6 2195
10f2d63a 2196
b12915c1
VZ
2197fi
2198
1e487827 2199
698dcdb6 2200 echo $ac_n "checking for --with-dmalloc""... $ac_c" 1>&6
009fead0 2201echo "configure:2202: checking for --with-dmalloc" >&5
698dcdb6
VZ
2202 no_cache=0
2203 # Check whether --with-dmalloc or --without-dmalloc was given.
b12915c1
VZ
2204if test "${with_dmalloc+set}" = set; then
2205 withval="$with_dmalloc"
698dcdb6 2206
c7a2bf27 2207 if test "$withval" = yes; then
b12915c1 2208 ac_cv_use_dmalloc='wxUSE_DMALLOC=yes'
c7a2bf27 2209 else
b12915c1 2210 ac_cv_use_dmalloc='wxUSE_DMALLOC=no'
c7a2bf27 2211 fi
698dcdb6 2212
c7a2bf27 2213else
698dcdb6 2214
b12915c1 2215 LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}`
c7a2bf27
RR
2216 if test "x$LINE" != x ; then
2217 eval "DEFAULT_$LINE"
2218 else
2219 no_cache=1
2220 fi
2221
b12915c1 2222 ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC
698dcdb6
VZ
2223
2224fi
c7a2bf27
RR
2225
2226
b12915c1 2227 eval "$ac_cv_use_dmalloc"
c7a2bf27 2228 if test "$no_cache" != 1; then
b12915c1 2229 echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp
c7a2bf27
RR
2230 fi
2231
b12915c1 2232 if test "$wxUSE_DMALLOC" = yes; then
698dcdb6 2233 echo "$ac_t""yes" 1>&6
c7a2bf27 2234 else
698dcdb6 2235 echo "$ac_t""no" 1>&6
c7a2bf27 2236 fi
698dcdb6 2237
c7a2bf27 2238
3e44f09d 2239 echo $ac_n "checking for --with-regex""... $ac_c" 1>&6
009fead0 2240echo "configure:2241: checking for --with-regex" >&5
3e44f09d
VZ
2241 no_cache=0
2242 # Check whether --with-regex or --without-regex was given.
2243if test "${with_regex+set}" = set; then
2244 withval="$with_regex"
2245
2246 if test "$withval" = yes; then
2247 ac_cv_use_regex='wxUSE_REGEX=yes'
2248 elif test "$withval" = no; then
2249 ac_cv_use_regex='wxUSE_REGEX=no'
2250 elif test "$withval" = sys; then
2251 ac_cv_use_regex='wxUSE_REGEX=sys'
4f14bcd8
GD
2252 elif test "$withval" = builtin; then
2253 ac_cv_use_regex='wxUSE_REGEX=builtin'
3e44f09d 2254 else
4f14bcd8 2255 { echo "configure: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" 1>&2; exit 1; }
3e44f09d
VZ
2256 fi
2257
2258else
2259
2260 LINE=`grep "wxUSE_REGEX" ${wx_arg_cache_file}`
2261 if test "x$LINE" != x ; then
2262 eval "DEFAULT_$LINE"
2263 else
2264 no_cache=1
2265 fi
2266
2267 ac_cv_use_regex='wxUSE_REGEX='$DEFAULT_wxUSE_REGEX
2268
2269fi
2270
2271
2272 eval "$ac_cv_use_regex"
2273 if test "$no_cache" != 1; then
2274 echo $ac_cv_use_regex >> ${wx_arg_cache_file}.tmp
2275 fi
2276
2277 if test "$wxUSE_REGEX" = yes; then
2278 echo "$ac_t""yes" 1>&6
2279 elif test "$wxUSE_REGEX" = no; then
2280 echo "$ac_t""no" 1>&6
2281 elif test "$wxUSE_REGEX" = sys; then
2282 echo "$ac_t""system version" 1>&6
4f14bcd8
GD
2283 elif test "$wxUSE_REGEX" = builtin; then
2284 echo "$ac_t""builtin version" 1>&6
3e44f09d 2285 else
4f14bcd8 2286 { echo "configure: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" 1>&2; exit 1; }
3e44f09d
VZ
2287 fi
2288
2289
698dcdb6 2290 echo $ac_n "checking for --with-zlib""... $ac_c" 1>&6
009fead0 2291echo "configure:2292: checking for --with-zlib" >&5
10f2d63a 2292 no_cache=0
698dcdb6 2293 # Check whether --with-zlib or --without-zlib was given.
b12915c1
VZ
2294if test "${with_zlib+set}" = set; then
2295 withval="$with_zlib"
698dcdb6 2296
10f2d63a 2297 if test "$withval" = yes; then
b12915c1 2298 ac_cv_use_zlib='wxUSE_ZLIB=yes'
422107f9 2299 elif test "$withval" = no; then
b12915c1 2300 ac_cv_use_zlib='wxUSE_ZLIB=no'
422107f9
VZ
2301 elif test "$withval" = sys; then
2302 ac_cv_use_zlib='wxUSE_ZLIB=sys'
4f14bcd8
GD
2303 elif test "$withval" = builtin; then
2304 ac_cv_use_zlib='wxUSE_ZLIB=builtin'
422107f9 2305 else
4f14bcd8 2306 { echo "configure: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" 1>&2; exit 1; }
10f2d63a 2307 fi
698dcdb6 2308
10f2d63a 2309else
698dcdb6 2310
b12915c1 2311 LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}`
10f2d63a
VZ
2312 if test "x$LINE" != x ; then
2313 eval "DEFAULT_$LINE"
2314 else
2315 no_cache=1
2316 fi
2317
b12915c1 2318 ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB
698dcdb6
VZ
2319
2320fi
10f2d63a
VZ
2321
2322
b12915c1 2323 eval "$ac_cv_use_zlib"
10f2d63a 2324 if test "$no_cache" != 1; then
b12915c1 2325 echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
2326 fi
2327
b12915c1 2328 if test "$wxUSE_ZLIB" = yes; then
698dcdb6 2329 echo "$ac_t""yes" 1>&6
422107f9 2330 elif test "$wxUSE_ZLIB" = no; then
698dcdb6 2331 echo "$ac_t""no" 1>&6
422107f9 2332 elif test "$wxUSE_ZLIB" = sys; then
698dcdb6 2333 echo "$ac_t""system version" 1>&6
4f14bcd8
GD
2334 elif test "$wxUSE_ZLIB" = builtin; then
2335 echo "$ac_t""builtin version" 1>&6
422107f9 2336 else
4f14bcd8 2337 { echo "configure: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" 1>&2; exit 1; }
10f2d63a 2338 fi
698dcdb6 2339
10f2d63a 2340
698dcdb6 2341 echo $ac_n "checking for --with-odbc""... $ac_c" 1>&6
009fead0 2342echo "configure:2343: checking for --with-odbc" >&5
10f2d63a 2343 no_cache=0
698dcdb6 2344 # Check whether --with-odbc or --without-odbc was given.
10f2d63a
VZ
2345if test "${with_odbc+set}" = set; then
2346 withval="$with_odbc"
698dcdb6 2347
10f2d63a
VZ
2348 if test "$withval" = yes; then
2349 ac_cv_use_odbc='wxUSE_ODBC=yes'
2350 else
2351 ac_cv_use_odbc='wxUSE_ODBC=no'
2352 fi
698dcdb6 2353
10f2d63a 2354else
698dcdb6 2355
10f2d63a
VZ
2356 LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}`
2357 if test "x$LINE" != x ; then
2358 eval "DEFAULT_$LINE"
2359 else
2360 no_cache=1
2361 fi
2362
2363 ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC
698dcdb6
VZ
2364
2365fi
10f2d63a
VZ
2366
2367
2368 eval "$ac_cv_use_odbc"
2369 if test "$no_cache" != 1; then
2370 echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp
2371 fi
2372
2373 if test "$wxUSE_ODBC" = yes; then
698dcdb6 2374 echo "$ac_t""yes" 1>&6
10f2d63a 2375 else
698dcdb6 2376 echo "$ac_t""no" 1>&6
10f2d63a 2377 fi
698dcdb6
VZ
2378
2379
10f2d63a 2380
698dcdb6 2381
698dcdb6 2382 echo $ac_n "checking for --enable-shared""... $ac_c" 1>&6
009fead0 2383echo "configure:2384: checking for --enable-shared" >&5
10f2d63a
VZ
2384 no_cache=0
2385 # Check whether --enable-shared or --disable-shared was given.
2386if test "${enable_shared+set}" = set; then
2387 enableval="$enable_shared"
698dcdb6 2388
10f2d63a
VZ
2389 if test "$enableval" = yes; then
2390 ac_cv_use_shared='wxUSE_SHARED=yes'
2391 else
2392 ac_cv_use_shared='wxUSE_SHARED=no'
2393 fi
698dcdb6 2394
10f2d63a 2395else
698dcdb6 2396
10f2d63a
VZ
2397 LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}`
2398 if test "x$LINE" != x ; then
2399 eval "DEFAULT_$LINE"
2400 else
2401 no_cache=1
2402 fi
2403
2404 ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED
698dcdb6
VZ
2405
2406fi
10f2d63a
VZ
2407
2408
2409 eval "$ac_cv_use_shared"
2410 if test "$no_cache" != 1; then
2411 echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp
2412 fi
2413
2414 if test "$wxUSE_SHARED" = yes; then
698dcdb6 2415 echo "$ac_t""yes" 1>&6
10f2d63a 2416 else
698dcdb6 2417 echo "$ac_t""no" 1>&6
10f2d63a 2418 fi
698dcdb6 2419
10f2d63a 2420
3a922bb4 2421 echo $ac_n "checking for --enable-soname""... $ac_c" 1>&6
009fead0 2422echo "configure:2423: checking for --enable-soname" >&5
00cf1208 2423 no_cache=0
3a922bb4
RL
2424 # Check whether --enable-soname or --disable-soname was given.
2425if test "${enable_soname+set}" = set; then
2426 enableval="$enable_soname"
698dcdb6 2427
00cf1208 2428 if test "$enableval" = yes; then
3a922bb4 2429 ac_cv_use_soname='wxUSE_SONAME=yes'
00cf1208 2430 else
3a922bb4 2431 ac_cv_use_soname='wxUSE_SONAME=no'
00cf1208 2432 fi
698dcdb6 2433
00cf1208 2434else
698dcdb6 2435
3a922bb4 2436 LINE=`grep "wxUSE_SONAME" ${wx_arg_cache_file}`
00cf1208
RR
2437 if test "x$LINE" != x ; then
2438 eval "DEFAULT_$LINE"
2439 else
2440 no_cache=1
2441 fi
2442
3a922bb4 2443 ac_cv_use_soname='wxUSE_SONAME='$DEFAULT_wxUSE_SONAME
698dcdb6
VZ
2444
2445fi
00cf1208
RR
2446
2447
3a922bb4 2448 eval "$ac_cv_use_soname"
00cf1208 2449 if test "$no_cache" != 1; then
3a922bb4 2450 echo $ac_cv_use_soname >> ${wx_arg_cache_file}.tmp
00cf1208
RR
2451 fi
2452
3a922bb4 2453 if test "$wxUSE_SONAME" = yes; then
698dcdb6 2454 echo "$ac_t""yes" 1>&6
00cf1208 2455 else
698dcdb6 2456 echo "$ac_t""no" 1>&6
00cf1208 2457 fi
698dcdb6 2458
00cf1208 2459
698dcdb6 2460 echo $ac_n "checking for --enable-optimise""... $ac_c" 1>&6
009fead0 2461echo "configure:2462: checking for --enable-optimise" >&5
10f2d63a
VZ
2462 no_cache=0
2463 # Check whether --enable-optimise or --disable-optimise was given.
2464if test "${enable_optimise+set}" = set; then
2465 enableval="$enable_optimise"
698dcdb6 2466
10f2d63a
VZ
2467 if test "$enableval" = yes; then
2468 ac_cv_use_optimise='wxUSE_OPTIMISE=yes'
2469 else
2470 ac_cv_use_optimise='wxUSE_OPTIMISE=no'
2471 fi
698dcdb6 2472
10f2d63a 2473else
698dcdb6 2474
10f2d63a
VZ
2475 LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}`
2476 if test "x$LINE" != x ; then
2477 eval "DEFAULT_$LINE"
2478 else
2479 no_cache=1
2480 fi
2481
2482 ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE
698dcdb6
VZ
2483
2484fi
10f2d63a
VZ
2485
2486
2487 eval "$ac_cv_use_optimise"
2488 if test "$no_cache" != 1; then
2489 echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp
2490 fi
2491
2492 if test "$wxUSE_OPTIMISE" = yes; then
698dcdb6 2493 echo "$ac_t""yes" 1>&6
10f2d63a 2494 else
698dcdb6 2495 echo "$ac_t""no" 1>&6
10f2d63a 2496 fi
698dcdb6 2497
10f2d63a 2498
698dcdb6 2499 echo $ac_n "checking for --enable-debug""... $ac_c" 1>&6
009fead0 2500echo "configure:2501: checking for --enable-debug" >&5
10f2d63a
VZ
2501 no_cache=0
2502 # Check whether --enable-debug or --disable-debug was given.
2503if test "${enable_debug+set}" = set; then
2504 enableval="$enable_debug"
698dcdb6 2505
10f2d63a
VZ
2506 if test "$enableval" = yes; then
2507 ac_cv_use_debug='wxUSE_DEBUG=yes'
2508 else
2509 ac_cv_use_debug='wxUSE_DEBUG=no'
2510 fi
698dcdb6 2511
10f2d63a 2512else
698dcdb6 2513
10f2d63a
VZ
2514 LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}`
2515 if test "x$LINE" != x ; then
2516 eval "DEFAULT_$LINE"
2517 else
2518 no_cache=1
2519 fi
2520
2521 ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG
698dcdb6
VZ
2522
2523fi
10f2d63a
VZ
2524
2525
2526 eval "$ac_cv_use_debug"
2527 if test "$no_cache" != 1; then
2528 echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp
2529 fi
2530
2531 if test "$wxUSE_DEBUG" = yes; then
698dcdb6 2532 echo "$ac_t""yes" 1>&6
10f2d63a 2533 else
698dcdb6 2534 echo "$ac_t""no" 1>&6
10f2d63a 2535 fi
698dcdb6 2536
10f2d63a 2537
683dccda
GD
2538
2539 echo $ac_n "checking for --enable-precomp""... $ac_c" 1>&6
009fead0 2540echo "configure:2541: checking for --enable-precomp" >&5
683dccda
GD
2541 no_cache=0
2542 # Check whether --enable-precomp or --disable-precomp was given.
2543if test "${enable_precomp+set}" = set; then
2544 enableval="$enable_precomp"
2545
2546 if test "$enableval" = yes; then
2547 ac_cv_use_precomp='wxUSE_PRECOMP=yes'
2548 else
2549 ac_cv_use_precomp='wxUSE_PRECOMP=no'
2550 fi
2551
2552else
2553
2554 LINE=`grep "wxUSE_PRECOMP" ${wx_arg_cache_file}`
2555 if test "x$LINE" != x ; then
2556 eval "DEFAULT_$LINE"
2557 else
2558 no_cache=1
2559 fi
2560
2561 ac_cv_use_precomp='wxUSE_PRECOMP='$DEFAULT_wxUSE_PRECOMP
2562
2563fi
2564
2565
2566 eval "$ac_cv_use_precomp"
2567 if test "$no_cache" != 1; then
2568 echo $ac_cv_use_precomp >> ${wx_arg_cache_file}.tmp
2569 fi
2570
2571 if test "$wxUSE_PRECOMP" = yes; then
2572 echo "$ac_t""yes" 1>&6
2573 else
2574 echo "$ac_t""no" 1>&6
2575 fi
2576
2577
10f2d63a
VZ
2578if test "$wxUSE_DEBUG" = "yes"; then
2579 DEFAULT_wxUSE_DEBUG_FLAG=yes
2580 DEFAULT_wxUSE_DEBUG_INFO=yes
2581elif test "$wxUSE_DEBUG" = "no"; then
2582 DEFAULT_wxUSE_DEBUG_FLAG=no
2583 DEFAULT_wxUSE_DEBUG_INFO=no
2584fi
2585
698dcdb6
VZ
2586
2587 echo $ac_n "checking for --enable-debug_flag""... $ac_c" 1>&6
009fead0 2588echo "configure:2589: checking for --enable-debug_flag" >&5
10f2d63a
VZ
2589 no_cache=0
2590 # Check whether --enable-debug_flag or --disable-debug_flag was given.
2591if test "${enable_debug_flag+set}" = set; then
2592 enableval="$enable_debug_flag"
698dcdb6 2593
10f2d63a
VZ
2594 if test "$enableval" = yes; then
2595 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes'
2596 else
2597 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no'
2598 fi
698dcdb6 2599
10f2d63a 2600else
698dcdb6 2601
10f2d63a
VZ
2602 LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}`
2603 if test "x$LINE" != x ; then
2604 eval "DEFAULT_$LINE"
2605 else
2606 no_cache=1
2607 fi
2608
2609 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG
698dcdb6
VZ
2610
2611fi
10f2d63a
VZ
2612
2613
2614 eval "$ac_cv_use_debug_flag"
2615 if test "$no_cache" != 1; then
2616 echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp
2617 fi
2618
2619 if test "$wxUSE_DEBUG_FLAG" = yes; then
698dcdb6 2620 echo "$ac_t""yes" 1>&6
10f2d63a 2621 else
698dcdb6 2622 echo "$ac_t""no" 1>&6
10f2d63a 2623 fi
698dcdb6 2624
10f2d63a 2625
698dcdb6 2626 echo $ac_n "checking for --enable-debug_info""... $ac_c" 1>&6
009fead0 2627echo "configure:2628: checking for --enable-debug_info" >&5
10f2d63a
VZ
2628 no_cache=0
2629 # Check whether --enable-debug_info or --disable-debug_info was given.
2630if test "${enable_debug_info+set}" = set; then
2631 enableval="$enable_debug_info"
698dcdb6 2632
10f2d63a
VZ
2633 if test "$enableval" = yes; then
2634 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes'
2635 else
2636 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no'
2637 fi
698dcdb6 2638
10f2d63a 2639else
698dcdb6 2640
10f2d63a
VZ
2641 LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}`
2642 if test "x$LINE" != x ; then
2643 eval "DEFAULT_$LINE"
2644 else
2645 no_cache=1
2646 fi
2647
2648 ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO
698dcdb6
VZ
2649
2650fi
10f2d63a
VZ
2651
2652
2653 eval "$ac_cv_use_debug_info"
2654 if test "$no_cache" != 1; then
2655 echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp
2656 fi
2657
2658 if test "$wxUSE_DEBUG_INFO" = yes; then
698dcdb6 2659 echo "$ac_t""yes" 1>&6
10f2d63a 2660 else
698dcdb6 2661 echo "$ac_t""no" 1>&6
10f2d63a 2662 fi
698dcdb6 2663
10f2d63a 2664
698dcdb6 2665 echo $ac_n "checking for --enable-debug_gdb""... $ac_c" 1>&6
009fead0 2666echo "configure:2667: checking for --enable-debug_gdb" >&5
10f2d63a
VZ
2667 no_cache=0
2668 # Check whether --enable-debug_gdb or --disable-debug_gdb was given.
2669if test "${enable_debug_gdb+set}" = set; then
2670 enableval="$enable_debug_gdb"
698dcdb6 2671
10f2d63a
VZ
2672 if test "$enableval" = yes; then
2673 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes'
2674 else
2675 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no'
2676 fi
698dcdb6 2677
10f2d63a 2678else
698dcdb6 2679
10f2d63a
VZ
2680 LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}`
2681 if test "x$LINE" != x ; then
2682 eval "DEFAULT_$LINE"
2683 else
2684 no_cache=1
2685 fi
2686
2687 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB
698dcdb6
VZ
2688
2689fi
10f2d63a
VZ
2690
2691
2692 eval "$ac_cv_use_debug_gdb"
2693 if test "$no_cache" != 1; then
2694 echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp
2695 fi
2696
2697 if test "$wxUSE_DEBUG_GDB" = yes; then
698dcdb6 2698 echo "$ac_t""yes" 1>&6
10f2d63a 2699 else
698dcdb6 2700 echo "$ac_t""no" 1>&6
10f2d63a 2701 fi
698dcdb6 2702
10f2d63a 2703
698dcdb6 2704 echo $ac_n "checking for --enable-debug_cntxt""... $ac_c" 1>&6
009fead0 2705echo "configure:2706: checking for --enable-debug_cntxt" >&5
10f2d63a
VZ
2706 no_cache=0
2707 # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given.
2708if test "${enable_debug_cntxt+set}" = set; then
2709 enableval="$enable_debug_cntxt"
698dcdb6 2710
10f2d63a
VZ
2711 if test "$enableval" = yes; then
2712 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes'
2713 else
2714 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no'
2715 fi
698dcdb6 2716
10f2d63a 2717else
698dcdb6 2718
10f2d63a
VZ
2719 LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}`
2720 if test "x$LINE" != x ; then
2721 eval "DEFAULT_$LINE"
2722 else
2723 no_cache=1
2724 fi
2725
2726 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT
698dcdb6
VZ
2727
2728fi
10f2d63a
VZ
2729
2730
2731 eval "$ac_cv_use_debug_cntxt"
2732 if test "$no_cache" != 1; then
2733 echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp
2734 fi
2735
2736 if test "$wxUSE_DEBUG_CONTEXT" = yes; then
698dcdb6 2737 echo "$ac_t""yes" 1>&6
10f2d63a 2738 else
698dcdb6 2739 echo "$ac_t""no" 1>&6
10f2d63a 2740 fi
698dcdb6 2741
10f2d63a 2742
698dcdb6 2743 echo $ac_n "checking for --enable-mem_tracing""... $ac_c" 1>&6
009fead0 2744echo "configure:2745: checking for --enable-mem_tracing" >&5
10f2d63a
VZ
2745 no_cache=0
2746 # Check whether --enable-mem_tracing or --disable-mem_tracing was given.
2747if test "${enable_mem_tracing+set}" = set; then
2748 enableval="$enable_mem_tracing"
698dcdb6 2749
10f2d63a
VZ
2750 if test "$enableval" = yes; then
2751 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes'
2752 else
2753 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no'
2754 fi
698dcdb6 2755
10f2d63a 2756else
698dcdb6 2757
10f2d63a
VZ
2758 LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}`
2759 if test "x$LINE" != x ; then
2760 eval "DEFAULT_$LINE"
2761 else
2762 no_cache=1
2763 fi
2764
2765 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING
698dcdb6
VZ
2766
2767fi
10f2d63a
VZ
2768
2769
2770 eval "$ac_cv_use_mem_tracing"
2771 if test "$no_cache" != 1; then
2772 echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp
2773 fi
2774
2775 if test "$wxUSE_MEM_TRACING" = yes; then
698dcdb6 2776 echo "$ac_t""yes" 1>&6
10f2d63a 2777 else
698dcdb6 2778 echo "$ac_t""no" 1>&6
10f2d63a 2779 fi
698dcdb6 2780
10f2d63a 2781
698dcdb6 2782 echo $ac_n "checking for --enable-profile""... $ac_c" 1>&6
009fead0 2783echo "configure:2784: checking for --enable-profile" >&5
10f2d63a
VZ
2784 no_cache=0
2785 # Check whether --enable-profile or --disable-profile was given.
2786if test "${enable_profile+set}" = set; then
2787 enableval="$enable_profile"
698dcdb6 2788
10f2d63a
VZ
2789 if test "$enableval" = yes; then
2790 ac_cv_use_profile='wxUSE_PROFILE=yes'
2791 else
2792 ac_cv_use_profile='wxUSE_PROFILE=no'
2793 fi
698dcdb6 2794
10f2d63a 2795else
698dcdb6 2796
10f2d63a
VZ
2797 LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}`
2798 if test "x$LINE" != x ; then
2799 eval "DEFAULT_$LINE"
2800 else
2801 no_cache=1
2802 fi
2803
2804 ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE
698dcdb6
VZ
2805
2806fi
10f2d63a
VZ
2807
2808
2809 eval "$ac_cv_use_profile"
2810 if test "$no_cache" != 1; then
2811 echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp
2812 fi
2813
2814 if test "$wxUSE_PROFILE" = yes; then
698dcdb6 2815 echo "$ac_t""yes" 1>&6
10f2d63a 2816 else
698dcdb6 2817 echo "$ac_t""no" 1>&6
10f2d63a 2818 fi
698dcdb6 2819
10f2d63a 2820
698dcdb6 2821 echo $ac_n "checking for --enable-no_rtti""... $ac_c" 1>&6
009fead0 2822echo "configure:2823: checking for --enable-no_rtti" >&5
10f2d63a
VZ
2823 no_cache=0
2824 # Check whether --enable-no_rtti or --disable-no_rtti was given.
2825if test "${enable_no_rtti+set}" = set; then
2826 enableval="$enable_no_rtti"
698dcdb6 2827
10f2d63a
VZ
2828 if test "$enableval" = yes; then
2829 ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes'
2830 else
2831 ac_cv_use_no_rtti='wxUSE_NO_RTTI=no'
2832 fi
698dcdb6 2833
10f2d63a 2834else
698dcdb6 2835
10f2d63a
VZ
2836 LINE=`grep "wxUSE_NO_RTTI" ${wx_arg_cache_file}`
2837 if test "x$LINE" != x ; then
2838 eval "DEFAULT_$LINE"
2839 else
2840 no_cache=1
2841 fi
2842
2843 ac_cv_use_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI
698dcdb6
VZ
2844
2845fi
10f2d63a
VZ
2846
2847
2848 eval "$ac_cv_use_no_rtti"
2849 if test "$no_cache" != 1; then
2850 echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp
2851 fi
2852
2853 if test "$wxUSE_NO_RTTI" = yes; then
698dcdb6 2854 echo "$ac_t""yes" 1>&6
10f2d63a 2855 else
698dcdb6 2856 echo "$ac_t""no" 1>&6
10f2d63a 2857 fi
698dcdb6 2858
10f2d63a 2859
698dcdb6 2860 echo $ac_n "checking for --enable-no_exceptions""... $ac_c" 1>&6
009fead0 2861echo "configure:2862: checking for --enable-no_exceptions" >&5
10f2d63a
VZ
2862 no_cache=0
2863 # Check whether --enable-no_exceptions or --disable-no_exceptions was given.
2864if test "${enable_no_exceptions+set}" = set; then
2865 enableval="$enable_no_exceptions"
698dcdb6 2866
10f2d63a
VZ
2867 if test "$enableval" = yes; then
2868 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes'
2869 else
2870 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no'
2871 fi
698dcdb6 2872
10f2d63a 2873else
698dcdb6 2874
10f2d63a
VZ
2875 LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}`
2876 if test "x$LINE" != x ; then
2877 eval "DEFAULT_$LINE"
2878 else
2879 no_cache=1
2880 fi
2881
2882 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS
698dcdb6
VZ
2883
2884fi
10f2d63a
VZ
2885
2886
2887 eval "$ac_cv_use_no_exceptions"
2888 if test "$no_cache" != 1; then
2889 echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp
2890 fi
2891
2892 if test "$wxUSE_NO_EXCEPTIONS" = yes; then
698dcdb6 2893 echo "$ac_t""yes" 1>&6
10f2d63a 2894 else
698dcdb6 2895 echo "$ac_t""no" 1>&6
10f2d63a 2896 fi
698dcdb6 2897
10f2d63a 2898
698dcdb6 2899 echo $ac_n "checking for --enable-permissive""... $ac_c" 1>&6
009fead0 2900echo "configure:2901: checking for --enable-permissive" >&5
10f2d63a
VZ
2901 no_cache=0
2902 # Check whether --enable-permissive or --disable-permissive was given.
2903if test "${enable_permissive+set}" = set; then
2904 enableval="$enable_permissive"
698dcdb6 2905
10f2d63a
VZ
2906 if test "$enableval" = yes; then
2907 ac_cv_use_permissive='wxUSE_PERMISSIVE=yes'
2908 else
2909 ac_cv_use_permissive='wxUSE_PERMISSIVE=no'
2910 fi
698dcdb6 2911
10f2d63a 2912else
698dcdb6 2913
10f2d63a
VZ
2914 LINE=`grep "wxUSE_PERMISSIVE" ${wx_arg_cache_file}`
2915 if test "x$LINE" != x ; then
2916 eval "DEFAULT_$LINE"
2917 else
2918 no_cache=1
2919 fi
2920
2921 ac_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE
698dcdb6
VZ
2922
2923fi
10f2d63a
VZ
2924
2925
2926 eval "$ac_cv_use_permissive"
2927 if test "$no_cache" != 1; then
2928 echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp
2929 fi
2930
2931 if test "$wxUSE_PERMISSIVE" = yes; then
698dcdb6 2932 echo "$ac_t""yes" 1>&6
10f2d63a 2933 else
698dcdb6 2934 echo "$ac_t""no" 1>&6
10f2d63a 2935 fi
698dcdb6 2936
10f2d63a 2937
698dcdb6 2938 echo $ac_n "checking for --enable-no_deps""... $ac_c" 1>&6
009fead0 2939echo "configure:2940: checking for --enable-no_deps" >&5
10f2d63a
VZ
2940 no_cache=0
2941 # Check whether --enable-no_deps or --disable-no_deps was given.
2942if test "${enable_no_deps+set}" = set; then
2943 enableval="$enable_no_deps"
698dcdb6 2944
10f2d63a
VZ
2945 if test "$enableval" = yes; then
2946 ac_cv_use_no_deps='wxUSE_NO_DEPS=yes'
2947 else
2948 ac_cv_use_no_deps='wxUSE_NO_DEPS=no'
2949 fi
698dcdb6 2950
10f2d63a 2951else
698dcdb6 2952
10f2d63a
VZ
2953 LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}`
2954 if test "x$LINE" != x ; then
2955 eval "DEFAULT_$LINE"
2956 else
2957 no_cache=1
2958 fi
2959
2960 ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS
698dcdb6
VZ
2961
2962fi
10f2d63a
VZ
2963
2964
2965 eval "$ac_cv_use_no_deps"
2966 if test "$no_cache" != 1; then
2967 echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp
2968 fi
2969
2970 if test "$wxUSE_NO_DEPS" = yes; then
698dcdb6 2971 echo "$ac_t""yes" 1>&6
10f2d63a 2972 else
698dcdb6 2973 echo "$ac_t""no" 1>&6
10f2d63a 2974 fi
698dcdb6
VZ
2975
2976
10f2d63a 2977
54276ccf 2978 echo $ac_n "checking for --enable-compat20""... $ac_c" 1>&6
009fead0 2979echo "configure:2980: checking for --enable-compat20" >&5
54276ccf
VZ
2980 no_cache=0
2981 # Check whether --enable-compat20 or --disable-compat20 was given.
2982if test "${enable_compat20+set}" = set; then
2983 enableval="$enable_compat20"
2984
2985 if test "$enableval" = yes; then
2986 ac_cv_use_compat20='WXWIN_COMPATIBILITY_2=yes'
2987 else
2988 ac_cv_use_compat20='WXWIN_COMPATIBILITY_2=no'
2989 fi
2990
2991else
2992
2993 LINE=`grep "WXWIN_COMPATIBILITY_2" ${wx_arg_cache_file}`
2994 if test "x$LINE" != x ; then
2995 eval "DEFAULT_$LINE"
2996 else
2997 no_cache=1
2998 fi
2999
3000 ac_cv_use_compat20='WXWIN_COMPATIBILITY_2='$DEFAULT_WXWIN_COMPATIBILITY_2
3001
3002fi
3003
3004
3005 eval "$ac_cv_use_compat20"
3006 if test "$no_cache" != 1; then
3007 echo $ac_cv_use_compat20 >> ${wx_arg_cache_file}.tmp
3008 fi
3009
3010 if test "$WXWIN_COMPATIBILITY_2" = yes; then
3011 echo "$ac_t""yes" 1>&6
3012 else
3013 echo "$ac_t""no" 1>&6
3014 fi
3015
3016
3017 echo $ac_n "checking for --enable-compat22""... $ac_c" 1>&6
009fead0 3018echo "configure:3019: checking for --enable-compat22" >&5
54276ccf
VZ
3019 no_cache=0
3020 # Check whether --enable-compat22 or --disable-compat22 was given.
3021if test "${enable_compat22+set}" = set; then
3022 enableval="$enable_compat22"
3023
3024 if test "$enableval" = yes; then
3025 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=yes'
3026 else
3027 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=no'
3028 fi
3029
3030else
3031
3032 LINE=`grep "WXWIN_COMPATIBILITY_2_2" ${wx_arg_cache_file}`
3033 if test "x$LINE" != x ; then
3034 eval "DEFAULT_$LINE"
3035 else
3036 no_cache=1
3037 fi
3038
3039 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2='$DEFAULT_WXWIN_COMPATIBILITY_2_2
3040
3041fi
3042
3043
3044 eval "$ac_cv_use_compat22"
3045 if test "$no_cache" != 1; then
3046 echo $ac_cv_use_compat22 >> ${wx_arg_cache_file}.tmp
3047 fi
3048
3049 if test "$WXWIN_COMPATIBILITY_2_2" = yes; then
3050 echo "$ac_t""yes" 1>&6
3051 else
3052 echo "$ac_t""no" 1>&6
3053 fi
3054
3055
3056
698dcdb6
VZ
3057
3058 echo $ac_n "checking for --enable-intl""... $ac_c" 1>&6
009fead0 3059echo "configure:3060: checking for --enable-intl" >&5
10f2d63a
VZ
3060 no_cache=0
3061 # Check whether --enable-intl or --disable-intl was given.
3062if test "${enable_intl+set}" = set; then
3063 enableval="$enable_intl"
698dcdb6 3064
10f2d63a
VZ
3065 if test "$enableval" = yes; then
3066 ac_cv_use_intl='wxUSE_INTL=yes'
3067 else
3068 ac_cv_use_intl='wxUSE_INTL=no'
3069 fi
698dcdb6 3070
10f2d63a 3071else
698dcdb6 3072
10f2d63a
VZ
3073 LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}`
3074 if test "x$LINE" != x ; then
3075 eval "DEFAULT_$LINE"
3076 else
3077 no_cache=1
3078 fi
3079
3080 ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL
698dcdb6
VZ
3081
3082fi
10f2d63a
VZ
3083
3084
3085 eval "$ac_cv_use_intl"
3086 if test "$no_cache" != 1; then
3087 echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp
3088 fi
3089
3090 if test "$wxUSE_INTL" = yes; then
698dcdb6 3091 echo "$ac_t""yes" 1>&6
10f2d63a 3092 else
698dcdb6 3093 echo "$ac_t""no" 1>&6
10f2d63a 3094 fi
698dcdb6 3095
10f2d63a 3096
698dcdb6 3097 echo $ac_n "checking for --enable-config""... $ac_c" 1>&6
009fead0 3098echo "configure:3099: checking for --enable-config" >&5
10f2d63a
VZ
3099 no_cache=0
3100 # Check whether --enable-config or --disable-config was given.
3101if test "${enable_config+set}" = set; then
3102 enableval="$enable_config"
698dcdb6 3103
10f2d63a
VZ
3104 if test "$enableval" = yes; then
3105 ac_cv_use_config='wxUSE_CONFIG=yes'
3106 else
3107 ac_cv_use_config='wxUSE_CONFIG=no'
3108 fi
698dcdb6 3109
10f2d63a 3110else
698dcdb6 3111
10f2d63a
VZ
3112 LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}`
3113 if test "x$LINE" != x ; then
3114 eval "DEFAULT_$LINE"
3115 else
3116 no_cache=1
3117 fi
3118
3119 ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG
698dcdb6
VZ
3120
3121fi
10f2d63a
VZ
3122
3123
3124 eval "$ac_cv_use_config"
3125 if test "$no_cache" != 1; then
3126 echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp
3127 fi
3128
3129 if test "$wxUSE_CONFIG" = yes; then
698dcdb6 3130 echo "$ac_t""yes" 1>&6
10f2d63a 3131 else
698dcdb6 3132 echo "$ac_t""no" 1>&6
10f2d63a 3133 fi
698dcdb6
VZ
3134
3135
b12915c1 3136
a1622950 3137 echo $ac_n "checking for --enable-protocols""... $ac_c" 1>&6
009fead0 3138echo "configure:3139: checking for --enable-protocols" >&5
a1622950
VZ
3139 no_cache=0
3140 # Check whether --enable-protocols or --disable-protocols was given.
3141if test "${enable_protocols+set}" = set; then
3142 enableval="$enable_protocols"
3143
3144 if test "$enableval" = yes; then
3145 ac_cv_use_protocols='wxUSE_PROTOCOL=yes'
3146 else
3147 ac_cv_use_protocols='wxUSE_PROTOCOL=no'
3148 fi
3149
3150else
3151
3152 LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
3153 if test "x$LINE" != x ; then
3154 eval "DEFAULT_$LINE"
3155 else
3156 no_cache=1
3157 fi
3158
3159 ac_cv_use_protocols='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
3160
3161fi
3162
3163
3164 eval "$ac_cv_use_protocols"
3165 if test "$no_cache" != 1; then
3166 echo $ac_cv_use_protocols >> ${wx_arg_cache_file}.tmp
3167 fi
3168
3169 if test "$wxUSE_PROTOCOL" = yes; then
3170 echo "$ac_t""yes" 1>&6
3171 else
3172 echo "$ac_t""no" 1>&6
3173 fi
3174
3175
3176 echo $ac_n "checking for --enable-ftp""... $ac_c" 1>&6
009fead0 3177echo "configure:3178: checking for --enable-ftp" >&5
a1622950
VZ
3178 no_cache=0
3179 # Check whether --enable-ftp or --disable-ftp was given.
3180if test "${enable_ftp+set}" = set; then
3181 enableval="$enable_ftp"
3182
3183 if test "$enableval" = yes; then
3184 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=yes'
3185 else
3186 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=no'
3187 fi
3188
3189else
3190
3191 LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
3192 if test "x$LINE" != x ; then
3193 eval "DEFAULT_$LINE"
3194 else
3195 no_cache=1
3196 fi
3197
3198 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
3199
3200fi
3201
3202
3203 eval "$ac_cv_use_ftp"
3204 if test "$no_cache" != 1; then
3205 echo $ac_cv_use_ftp >> ${wx_arg_cache_file}.tmp
3206 fi
3207
3208 if test "$wxUSE_PROTOCOL_FTP" = yes; then
3209 echo "$ac_t""yes" 1>&6
3210 else
3211 echo "$ac_t""no" 1>&6
3212 fi
3213
3214
3215 echo $ac_n "checking for --enable-http""... $ac_c" 1>&6
009fead0 3216echo "configure:3217: checking for --enable-http" >&5
a1622950
VZ
3217 no_cache=0
3218 # Check whether --enable-http or --disable-http was given.
3219if test "${enable_http+set}" = set; then
3220 enableval="$enable_http"
3221
3222 if test "$enableval" = yes; then
3223 ac_cv_use_http='wxUSE_PROTOCOL_HTTP=yes'
3224 else
3225 ac_cv_use_http='wxUSE_PROTOCOL_HTTP=no'
3226 fi
3227
3228else
3229
3230 LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
3231 if test "x$LINE" != x ; then
3232 eval "DEFAULT_$LINE"
3233 else
3234 no_cache=1
3235 fi
3236
3237 ac_cv_use_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
3238
3239fi
3240
3241
3242 eval "$ac_cv_use_http"
3243 if test "$no_cache" != 1; then
3244 echo $ac_cv_use_http >> ${wx_arg_cache_file}.tmp
3245 fi
3246
3247 if test "$wxUSE_PROTOCOL_HTTP" = yes; then
3248 echo "$ac_t""yes" 1>&6
3249 else
3250 echo "$ac_t""no" 1>&6
3251 fi
3252
3253
3254 echo $ac_n "checking for --enable-fileproto""... $ac_c" 1>&6
009fead0 3255echo "configure:3256: checking for --enable-fileproto" >&5
a1622950
VZ
3256 no_cache=0
3257 # Check whether --enable-fileproto or --disable-fileproto was given.
3258if test "${enable_fileproto+set}" = set; then
3259 enableval="$enable_fileproto"
3260
3261 if test "$enableval" = yes; then
3262 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=yes'
3263 else
3264 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=no'
3265 fi
3266
3267else
3268
3269 LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
3270 if test "x$LINE" != x ; then
3271 eval "DEFAULT_$LINE"
3272 else
3273 no_cache=1
3274 fi
3275
3276 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
3277
3278fi
3279
3280
3281 eval "$ac_cv_use_fileproto"
3282 if test "$no_cache" != 1; then
3283 echo $ac_cv_use_fileproto >> ${wx_arg_cache_file}.tmp
3284 fi
3285
3286 if test "$wxUSE_PROTOCOL_FILE" = yes; then
3287 echo "$ac_t""yes" 1>&6
3288 else
3289 echo "$ac_t""no" 1>&6
3290 fi
3291
3292
698dcdb6 3293 echo $ac_n "checking for --enable-sockets""... $ac_c" 1>&6
009fead0 3294echo "configure:3295: checking for --enable-sockets" >&5
10f2d63a
VZ
3295 no_cache=0
3296 # Check whether --enable-sockets or --disable-sockets was given.
3297if test "${enable_sockets+set}" = set; then
3298 enableval="$enable_sockets"
698dcdb6 3299
10f2d63a
VZ
3300 if test "$enableval" = yes; then
3301 ac_cv_use_sockets='wxUSE_SOCKETS=yes'
3302 else
3303 ac_cv_use_sockets='wxUSE_SOCKETS=no'
3304 fi
698dcdb6 3305
10f2d63a 3306else
698dcdb6 3307
10f2d63a
VZ
3308 LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}`
3309 if test "x$LINE" != x ; then
3310 eval "DEFAULT_$LINE"
3311 else
3312 no_cache=1
3313 fi
3314
3315 ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS
698dcdb6
VZ
3316
3317fi
10f2d63a
VZ
3318
3319
3320 eval "$ac_cv_use_sockets"
3321 if test "$no_cache" != 1; then
3322 echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp
3323 fi
3324
3325 if test "$wxUSE_SOCKETS" = yes; then
698dcdb6 3326 echo "$ac_t""yes" 1>&6
10f2d63a 3327 else
698dcdb6 3328 echo "$ac_t""no" 1>&6
10f2d63a 3329 fi
698dcdb6 3330
b12915c1 3331
698dcdb6
VZ
3332
3333 echo $ac_n "checking for --enable-ipc""... $ac_c" 1>&6
009fead0 3334echo "configure:3335: checking for --enable-ipc" >&5
10f2d63a 3335 no_cache=0
eb4efbdc
VZ
3336 # Check whether --enable-ipc or --disable-ipc was given.
3337if test "${enable_ipc+set}" = set; then
3338 enableval="$enable_ipc"
698dcdb6 3339
10f2d63a 3340 if test "$enableval" = yes; then
eb4efbdc 3341 ac_cv_use_ipc='wxUSE_IPC=yes'
10f2d63a 3342 else
eb4efbdc 3343 ac_cv_use_ipc='wxUSE_IPC=no'
10f2d63a 3344 fi
698dcdb6 3345
10f2d63a 3346else
698dcdb6 3347
eb4efbdc 3348 LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}`
10f2d63a
VZ
3349 if test "x$LINE" != x ; then
3350 eval "DEFAULT_$LINE"
3351 else
3352 no_cache=1
3353 fi
3354
eb4efbdc 3355 ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC
698dcdb6
VZ
3356
3357fi
10f2d63a
VZ
3358
3359
eb4efbdc 3360 eval "$ac_cv_use_ipc"
10f2d63a 3361 if test "$no_cache" != 1; then
eb4efbdc 3362 echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
3363 fi
3364
eb4efbdc 3365 if test "$wxUSE_IPC" = yes; then
698dcdb6 3366 echo "$ac_t""yes" 1>&6
10f2d63a 3367 else
698dcdb6 3368 echo "$ac_t""no" 1>&6
10f2d63a 3369 fi
698dcdb6
VZ
3370
3371
eb4efbdc 3372
1e6feb95 3373 echo $ac_n "checking for --enable-cmdline""... $ac_c" 1>&6
009fead0 3374echo "configure:3375: checking for --enable-cmdline" >&5
1e6feb95
VZ
3375 no_cache=0
3376 # Check whether --enable-cmdline or --disable-cmdline was given.
3377if test "${enable_cmdline+set}" = set; then
3378 enableval="$enable_cmdline"
3379
3380 if test "$enableval" = yes; then
3381 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=yes'
3382 else
3383 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=no'
3384 fi
3385
3386else
3387
3388 LINE=`grep "wxUSE_CMDLINE_PARSER" ${wx_arg_cache_file}`
3389 if test "x$LINE" != x ; then
3390 eval "DEFAULT_$LINE"
3391 else
3392 no_cache=1
3393 fi
3394
3395 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER='$DEFAULT_wxUSE_CMDLINE_PARSER
3396
3397fi
3398
3399
3400 eval "$ac_cv_use_cmdline"
3401 if test "$no_cache" != 1; then
3402 echo $ac_cv_use_cmdline >> ${wx_arg_cache_file}.tmp
3403 fi
3404
3405 if test "$wxUSE_CMDLINE_PARSER" = yes; then
3406 echo "$ac_t""yes" 1>&6
3407 else
3408 echo "$ac_t""no" 1>&6
3409 fi
3410
3411
3412 echo $ac_n "checking for --enable-datetime""... $ac_c" 1>&6
009fead0 3413echo "configure:3414: checking for --enable-datetime" >&5
1e6feb95
VZ
3414 no_cache=0
3415 # Check whether --enable-datetime or --disable-datetime was given.
3416if test "${enable_datetime+set}" = set; then
3417 enableval="$enable_datetime"
3418
3419 if test "$enableval" = yes; then
3420 ac_cv_use_datetime='wxUSE_DATETIME=yes'
3421 else
3422 ac_cv_use_datetime='wxUSE_DATETIME=no'
3423 fi
3424
3425else
3426
3427 LINE=`grep "wxUSE_DATETIME" ${wx_arg_cache_file}`
3428 if test "x$LINE" != x ; then
3429 eval "DEFAULT_$LINE"
3430 else
3431 no_cache=1
3432 fi
3433
3434 ac_cv_use_datetime='wxUSE_DATETIME='$DEFAULT_wxUSE_DATETIME
3435
3436fi
3437
3438
3439 eval "$ac_cv_use_datetime"
3440 if test "$no_cache" != 1; then
3441 echo $ac_cv_use_datetime >> ${wx_arg_cache_file}.tmp
3442 fi
3443
3444 if test "$wxUSE_DATETIME" = yes; then
3445 echo "$ac_t""yes" 1>&6
3446 else
3447 echo "$ac_t""no" 1>&6
3448 fi
3449
3450
3451 echo $ac_n "checking for --enable-timedate""... $ac_c" 1>&6
009fead0 3452echo "configure:3453: checking for --enable-timedate" >&5
1e6feb95
VZ
3453 no_cache=0
3454 # Check whether --enable-timedate or --disable-timedate was given.
3455if test "${enable_timedate+set}" = set; then
3456 enableval="$enable_timedate"
3457
3458 if test "$enableval" = yes; then
3459 ac_cv_use_timedate='wxUSE_TIMEDATE=yes'
3460 else
3461 ac_cv_use_timedate='wxUSE_TIMEDATE=no'
3462 fi
3463
3464else
3465
3466 LINE=`grep "wxUSE_TIMEDATE" ${wx_arg_cache_file}`
3467 if test "x$LINE" != x ; then
3468 eval "DEFAULT_$LINE"
3469 else
3470 no_cache=1
3471 fi
3472
3473 ac_cv_use_timedate='wxUSE_TIMEDATE='$DEFAULT_wxUSE_TIMEDATE
3474
3475fi
3476
3477
3478 eval "$ac_cv_use_timedate"
3479 if test "$no_cache" != 1; then
3480 echo $ac_cv_use_timedate >> ${wx_arg_cache_file}.tmp
3481 fi
3482
3483 if test "$wxUSE_TIMEDATE" = yes; then
3484 echo "$ac_t""yes" 1>&6
3485 else
3486 echo "$ac_t""no" 1>&6
3487 fi
3488
3489
3490 echo $ac_n "checking for --enable-stopwatch""... $ac_c" 1>&6
009fead0 3491echo "configure:3492: checking for --enable-stopwatch" >&5
1e6feb95
VZ
3492 no_cache=0
3493 # Check whether --enable-stopwatch or --disable-stopwatch was given.
3494if test "${enable_stopwatch+set}" = set; then
3495 enableval="$enable_stopwatch"
3496
3497 if test "$enableval" = yes; then
3498 ac_cv_use_stopwatch='wxUSE_STOPWATCH=yes'
3499 else
3500 ac_cv_use_stopwatch='wxUSE_STOPWATCH=no'
3501 fi
3502
3503else
3504
3505 LINE=`grep "wxUSE_STOPWATCH" ${wx_arg_cache_file}`
3506 if test "x$LINE" != x ; then
3507 eval "DEFAULT_$LINE"
3508 else
3509 no_cache=1
3510 fi
3511
3512 ac_cv_use_stopwatch='wxUSE_STOPWATCH='$DEFAULT_wxUSE_STOPWATCH
3513
3514fi
3515
3516
3517 eval "$ac_cv_use_stopwatch"
3518 if test "$no_cache" != 1; then
3519 echo $ac_cv_use_stopwatch >> ${wx_arg_cache_file}.tmp
3520 fi
3521
3522 if test "$wxUSE_STOPWATCH" = yes; then
3523 echo "$ac_t""yes" 1>&6
3524 else
3525 echo "$ac_t""no" 1>&6
3526 fi
3527
3528
698dcdb6 3529 echo $ac_n "checking for --enable-dialupman""... $ac_c" 1>&6
009fead0 3530echo "configure:3531: checking for --enable-dialupman" >&5
10f2d63a 3531 no_cache=0
eb4efbdc
VZ
3532 # Check whether --enable-dialupman or --disable-dialupman was given.
3533if test "${enable_dialupman+set}" = set; then
3534 enableval="$enable_dialupman"
698dcdb6 3535
10f2d63a 3536 if test "$enableval" = yes; then
eb4efbdc 3537 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes'
10f2d63a 3538 else
eb4efbdc 3539 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no'
10f2d63a 3540 fi
698dcdb6 3541
10f2d63a 3542else
698dcdb6 3543
eb4efbdc 3544 LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}`
10f2d63a
VZ
3545 if test "x$LINE" != x ; then
3546 eval "DEFAULT_$LINE"
3547 else
3548 no_cache=1
3549 fi
3550
eb4efbdc 3551 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER
698dcdb6
VZ
3552
3553fi
10f2d63a
VZ
3554
3555
eb4efbdc 3556 eval "$ac_cv_use_dialupman"
10f2d63a 3557 if test "$no_cache" != 1; then
eb4efbdc 3558 echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
3559 fi
3560
eb4efbdc 3561 if test "$wxUSE_DIALUP_MANAGER" = yes; then
698dcdb6 3562 echo "$ac_t""yes" 1>&6
10f2d63a 3563 else
698dcdb6 3564 echo "$ac_t""no" 1>&6
10f2d63a 3565 fi
698dcdb6 3566
10f2d63a 3567
698dcdb6 3568 echo $ac_n "checking for --enable-apple_ieee""... $ac_c" 1>&6
009fead0 3569echo "configure:3570: checking for --enable-apple_ieee" >&5
10f2d63a
VZ
3570 no_cache=0
3571 # Check whether --enable-apple_ieee or --disable-apple_ieee was given.
3572if test "${enable_apple_ieee+set}" = set; then
3573 enableval="$enable_apple_ieee"
698dcdb6 3574
10f2d63a
VZ
3575 if test "$enableval" = yes; then
3576 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes'
3577 else
3578 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no'
3579 fi
698dcdb6 3580
10f2d63a 3581else
698dcdb6 3582
10f2d63a
VZ
3583 LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}`
3584 if test "x$LINE" != x ; then
3585 eval "DEFAULT_$LINE"
3586 else
3587 no_cache=1
3588 fi
3589
3590 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE
698dcdb6
VZ
3591
3592fi
10f2d63a
VZ
3593
3594
3595 eval "$ac_cv_use_apple_ieee"
3596 if test "$no_cache" != 1; then
3597 echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp
3598 fi
3599
3600 if test "$wxUSE_APPLE_IEEE" = yes; then
698dcdb6 3601 echo "$ac_t""yes" 1>&6
10f2d63a 3602 else
698dcdb6 3603 echo "$ac_t""no" 1>&6
10f2d63a 3604 fi
698dcdb6 3605
10f2d63a 3606
1e6feb95 3607 echo $ac_n "checking for --enable-timer""... $ac_c" 1>&6
009fead0 3608echo "configure:3609: checking for --enable-timer" >&5
10f2d63a 3609 no_cache=0
1e6feb95
VZ
3610 # Check whether --enable-timer or --disable-timer was given.
3611if test "${enable_timer+set}" = set; then
3612 enableval="$enable_timer"
698dcdb6 3613
10f2d63a 3614 if test "$enableval" = yes; then
1e6feb95 3615 ac_cv_use_timer='wxUSE_TIMER=yes'
10f2d63a 3616 else
1e6feb95 3617 ac_cv_use_timer='wxUSE_TIMER=no'
10f2d63a 3618 fi
698dcdb6 3619
10f2d63a 3620else
698dcdb6 3621
1e6feb95 3622 LINE=`grep "wxUSE_TIMER" ${wx_arg_cache_file}`
10f2d63a
VZ
3623 if test "x$LINE" != x ; then
3624 eval "DEFAULT_$LINE"
3625 else
3626 no_cache=1
3627 fi
3628
1e6feb95 3629 ac_cv_use_timer='wxUSE_TIMER='$DEFAULT_wxUSE_TIMER
698dcdb6
VZ
3630
3631fi
10f2d63a
VZ
3632
3633
1e6feb95 3634 eval "$ac_cv_use_timer"
10f2d63a 3635 if test "$no_cache" != 1; then
1e6feb95 3636 echo $ac_cv_use_timer >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
3637 fi
3638
1e6feb95 3639 if test "$wxUSE_TIMER" = yes; then
698dcdb6 3640 echo "$ac_t""yes" 1>&6
10f2d63a 3641 else
698dcdb6 3642 echo "$ac_t""no" 1>&6
10f2d63a 3643 fi
698dcdb6 3644
10f2d63a 3645
698dcdb6 3646 echo $ac_n "checking for --enable-wave""... $ac_c" 1>&6
009fead0 3647echo "configure:3648: checking for --enable-wave" >&5
10f2d63a
VZ
3648 no_cache=0
3649 # Check whether --enable-wave or --disable-wave was given.
3650if test "${enable_wave+set}" = set; then
3651 enableval="$enable_wave"
698dcdb6 3652
10f2d63a
VZ
3653 if test "$enableval" = yes; then
3654 ac_cv_use_wave='wxUSE_WAVE=yes'
3655 else
3656 ac_cv_use_wave='wxUSE_WAVE=no'
3657 fi
698dcdb6 3658
10f2d63a 3659else
698dcdb6 3660
10f2d63a
VZ
3661 LINE=`grep "wxUSE_WAVE" ${wx_arg_cache_file}`
3662 if test "x$LINE" != x ; then
3663 eval "DEFAULT_$LINE"
3664 else
3665 no_cache=1
3666 fi
3667
3668 ac_cv_use_wave='wxUSE_WAVE='$DEFAULT_wxUSE_WAVE
698dcdb6
VZ
3669
3670fi
10f2d63a
VZ
3671
3672
3673 eval "$ac_cv_use_wave"
3674 if test "$no_cache" != 1; then
3675 echo $ac_cv_use_wave >> ${wx_arg_cache_file}.tmp
3676 fi
3677
3678 if test "$wxUSE_WAVE" = yes; then
698dcdb6 3679 echo "$ac_t""yes" 1>&6
10f2d63a 3680 else
698dcdb6 3681 echo "$ac_t""no" 1>&6
10f2d63a 3682 fi
698dcdb6 3683
10f2d63a 3684
698dcdb6 3685 echo $ac_n "checking for --enable-fraction""... $ac_c" 1>&6
009fead0 3686echo "configure:3687: checking for --enable-fraction" >&5
10f2d63a
VZ
3687 no_cache=0
3688 # Check whether --enable-fraction or --disable-fraction was given.
3689if test "${enable_fraction+set}" = set; then
3690 enableval="$enable_fraction"
698dcdb6 3691
10f2d63a
VZ
3692 if test "$enableval" = yes; then
3693 ac_cv_use_fraction='wxUSE_FRACTION=yes'
3694 else
3695 ac_cv_use_fraction='wxUSE_FRACTION=no'
3696 fi
698dcdb6 3697
10f2d63a 3698else
698dcdb6 3699
10f2d63a
VZ
3700 LINE=`grep "wxUSE_FRACTION" ${wx_arg_cache_file}`
3701 if test "x$LINE" != x ; then
3702 eval "DEFAULT_$LINE"
3703 else
3704 no_cache=1
3705 fi
3706
3707 ac_cv_use_fraction='wxUSE_FRACTION='$DEFAULT_wxUSE_FRACTION
698dcdb6
VZ
3708
3709fi
10f2d63a
VZ
3710
3711
3712 eval "$ac_cv_use_fraction"
3713 if test "$no_cache" != 1; then
3714 echo $ac_cv_use_fraction >> ${wx_arg_cache_file}.tmp
3715 fi
3716
3717 if test "$wxUSE_FRACTION" = yes; then
698dcdb6 3718 echo "$ac_t""yes" 1>&6
10f2d63a 3719 else
698dcdb6 3720 echo "$ac_t""no" 1>&6
10f2d63a 3721 fi
698dcdb6 3722
10f2d63a 3723
698dcdb6 3724 echo $ac_n "checking for --enable-dynlib""... $ac_c" 1>&6
009fead0 3725echo "configure:3726: checking for --enable-dynlib" >&5
10f2d63a
VZ
3726 no_cache=0
3727 # Check whether --enable-dynlib or --disable-dynlib was given.
3728if test "${enable_dynlib+set}" = set; then
3729 enableval="$enable_dynlib"
698dcdb6 3730
10f2d63a
VZ
3731 if test "$enableval" = yes; then
3732 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes'
3733 else
3734 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no'
3735 fi
698dcdb6 3736
10f2d63a 3737else
698dcdb6 3738
10f2d63a
VZ
3739 LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}`
3740 if test "x$LINE" != x ; then
3741 eval "DEFAULT_$LINE"
3742 else
3743 no_cache=1
3744 fi
3745
3746 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS
698dcdb6
VZ
3747
3748fi
10f2d63a
VZ
3749
3750
3751 eval "$ac_cv_use_dynlib"
3752 if test "$no_cache" != 1; then
3753 echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp
3754 fi
3755
3756 if test "$wxUSE_DYNLIB_CLASS" = yes; then
698dcdb6 3757 echo "$ac_t""yes" 1>&6
10f2d63a 3758 else
698dcdb6 3759 echo "$ac_t""no" 1>&6
10f2d63a 3760 fi
698dcdb6 3761
10f2d63a 3762
0b9ab0bd 3763 echo $ac_n "checking for --enable-dynamicloader""... $ac_c" 1>&6
009fead0 3764echo "configure:3765: checking for --enable-dynamicloader" >&5
0b9ab0bd
RL
3765 no_cache=0
3766 # Check whether --enable-dynamicloader or --disable-dynamicloader was given.
3767if test "${enable_dynamicloader+set}" = set; then
3768 enableval="$enable_dynamicloader"
3769
3770 if test "$enableval" = yes; then
3771 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=yes'
3772 else
3773 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=no'
3774 fi
3775
3776else
3777
3778 LINE=`grep "wxUSE_DYNAMIC_LOADER" ${wx_arg_cache_file}`
3779 if test "x$LINE" != x ; then
3780 eval "DEFAULT_$LINE"
3781 else
3782 no_cache=1
3783 fi
3784
3785 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER='$DEFAULT_wxUSE_DYNAMIC_LOADER
3786
3787fi
3788
3789
3790 eval "$ac_cv_use_dynamicloader"
3791 if test "$no_cache" != 1; then
3792 echo $ac_cv_use_dynamicloader >> ${wx_arg_cache_file}.tmp
3793 fi
3794
3795 if test "$wxUSE_DYNAMIC_LOADER" = yes; then
3796 echo "$ac_t""yes" 1>&6
3797 else
3798 echo "$ac_t""no" 1>&6
3799 fi
3800
3801
698dcdb6 3802 echo $ac_n "checking for --enable-longlong""... $ac_c" 1>&6
009fead0 3803echo "configure:3804: checking for --enable-longlong" >&5
10f2d63a
VZ
3804 no_cache=0
3805 # Check whether --enable-longlong or --disable-longlong was given.
3806if test "${enable_longlong+set}" = set; then
3807 enableval="$enable_longlong"
698dcdb6 3808
10f2d63a
VZ
3809 if test "$enableval" = yes; then
3810 ac_cv_use_longlong='wxUSE_LONGLONG=yes'
3811 else
3812 ac_cv_use_longlong='wxUSE_LONGLONG=no'
3813 fi
698dcdb6 3814
10f2d63a 3815else
698dcdb6 3816
10f2d63a
VZ
3817 LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}`
3818 if test "x$LINE" != x ; then
3819 eval "DEFAULT_$LINE"
3820 else
3821 no_cache=1
3822 fi
3823
3824 ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG
698dcdb6
VZ
3825
3826fi
10f2d63a
VZ
3827
3828
3829 eval "$ac_cv_use_longlong"
3830 if test "$no_cache" != 1; then
3831 echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp
3832 fi
3833
3834 if test "$wxUSE_LONGLONG" = yes; then
698dcdb6 3835 echo "$ac_t""yes" 1>&6
10f2d63a 3836 else
698dcdb6 3837 echo "$ac_t""no" 1>&6
10f2d63a 3838 fi
698dcdb6 3839
10f2d63a 3840
698dcdb6 3841 echo $ac_n "checking for --enable-geometry""... $ac_c" 1>&6
009fead0 3842echo "configure:3843: checking for --enable-geometry" >&5
e8f65ba6
RR
3843 no_cache=0
3844 # Check whether --enable-geometry or --disable-geometry was given.
3845if test "${enable_geometry+set}" = set; then
3846 enableval="$enable_geometry"
698dcdb6 3847
e8f65ba6
RR
3848 if test "$enableval" = yes; then
3849 ac_cv_use_geometry='wxUSE_GEOMETRY=yes'
3850 else
3851 ac_cv_use_geometry='wxUSE_GEOMETRY=no'
3852 fi
698dcdb6 3853
e8f65ba6 3854else
698dcdb6 3855
e8f65ba6
RR
3856 LINE=`grep "wxUSE_GEOMETRY" ${wx_arg_cache_file}`
3857 if test "x$LINE" != x ; then
3858 eval "DEFAULT_$LINE"
3859 else
3860 no_cache=1
3861 fi
3862
3863 ac_cv_use_geometry='wxUSE_GEOMETRY='$DEFAULT_wxUSE_GEOMETRY
698dcdb6
VZ
3864
3865fi
e8f65ba6
RR
3866
3867
3868 eval "$ac_cv_use_geometry"
3869 if test "$no_cache" != 1; then
3870 echo $ac_cv_use_geometry >> ${wx_arg_cache_file}.tmp
3871 fi
3872
3873 if test "$wxUSE_GEOMETRY" = yes; then
698dcdb6 3874 echo "$ac_t""yes" 1>&6
e8f65ba6 3875 else
698dcdb6 3876 echo "$ac_t""no" 1>&6
e8f65ba6 3877 fi
698dcdb6 3878
e8f65ba6 3879
698dcdb6 3880 echo $ac_n "checking for --enable-log""... $ac_c" 1>&6
009fead0 3881echo "configure:3882: checking for --enable-log" >&5
10f2d63a
VZ
3882 no_cache=0
3883 # Check whether --enable-log or --disable-log was given.
3884if test "${enable_log+set}" = set; then
3885 enableval="$enable_log"
698dcdb6 3886
10f2d63a
VZ
3887 if test "$enableval" = yes; then
3888 ac_cv_use_log='wxUSE_LOG=yes'
3889 else
3890 ac_cv_use_log='wxUSE_LOG=no'
3891 fi
698dcdb6 3892
10f2d63a 3893else
698dcdb6 3894
10f2d63a
VZ
3895 LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}`
3896 if test "x$LINE" != x ; then
3897 eval "DEFAULT_$LINE"
3898 else
3899 no_cache=1
3900 fi
3901
3902 ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG
698dcdb6
VZ
3903
3904fi
10f2d63a
VZ
3905
3906
3907 eval "$ac_cv_use_log"
3908 if test "$no_cache" != 1; then
3909 echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp
3910 fi
3911
3912 if test "$wxUSE_LOG" = yes; then
698dcdb6 3913 echo "$ac_t""yes" 1>&6
10f2d63a 3914 else
698dcdb6 3915 echo "$ac_t""no" 1>&6
10f2d63a 3916 fi
698dcdb6 3917
10f2d63a 3918
698dcdb6 3919 echo $ac_n "checking for --enable-streams""... $ac_c" 1>&6
009fead0 3920echo "configure:3921: checking for --enable-streams" >&5
10f2d63a
VZ
3921 no_cache=0
3922 # Check whether --enable-streams or --disable-streams was given.
3923if test "${enable_streams+set}" = set; then
3924 enableval="$enable_streams"
698dcdb6 3925
10f2d63a
VZ
3926 if test "$enableval" = yes; then
3927 ac_cv_use_streams='wxUSE_STREAMS=yes'
3928 else
3929 ac_cv_use_streams='wxUSE_STREAMS=no'
3930 fi
698dcdb6 3931
10f2d63a 3932else
698dcdb6 3933
10f2d63a
VZ
3934 LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}`
3935 if test "x$LINE" != x ; then
3936 eval "DEFAULT_$LINE"
3937 else
3938 no_cache=1
3939 fi
3940
3941 ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS
698dcdb6
VZ
3942
3943fi
10f2d63a
VZ
3944
3945
3946 eval "$ac_cv_use_streams"
3947 if test "$no_cache" != 1; then
3948 echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp
3949 fi
3950
3951 if test "$wxUSE_STREAMS" = yes; then
698dcdb6 3952 echo "$ac_t""yes" 1>&6
10f2d63a 3953 else
698dcdb6 3954 echo "$ac_t""no" 1>&6
10f2d63a 3955 fi
698dcdb6 3956
10f2d63a 3957
698dcdb6 3958 echo $ac_n "checking for --enable-file""... $ac_c" 1>&6
009fead0 3959echo "configure:3960: checking for --enable-file" >&5
10f2d63a
VZ
3960 no_cache=0
3961 # Check whether --enable-file or --disable-file was given.
3962if test "${enable_file+set}" = set; then
3963 enableval="$enable_file"
698dcdb6 3964
10f2d63a
VZ
3965 if test "$enableval" = yes; then
3966 ac_cv_use_file='wxUSE_FILE=yes'
3967 else
3968 ac_cv_use_file='wxUSE_FILE=no'
3969 fi
698dcdb6 3970
10f2d63a 3971else
698dcdb6 3972
10f2d63a
VZ
3973 LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}`
3974 if test "x$LINE" != x ; then
3975 eval "DEFAULT_$LINE"
3976 else
3977 no_cache=1
3978 fi
3979
3980 ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE
698dcdb6
VZ
3981
3982fi
10f2d63a
VZ
3983
3984
3985 eval "$ac_cv_use_file"
3986 if test "$no_cache" != 1; then
3987 echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp
3988 fi
3989
3990 if test "$wxUSE_FILE" = yes; then
698dcdb6 3991 echo "$ac_t""yes" 1>&6
10f2d63a 3992 else
698dcdb6 3993 echo "$ac_t""no" 1>&6
10f2d63a 3994 fi
698dcdb6 3995
10f2d63a 3996
1e6feb95 3997 echo $ac_n "checking for --enable-ffile""... $ac_c" 1>&6
009fead0 3998echo "configure:3999: checking for --enable-ffile" >&5
10f2d63a 3999 no_cache=0
1e6feb95
VZ
4000 # Check whether --enable-ffile or --disable-ffile was given.
4001if test "${enable_ffile+set}" = set; then
4002 enableval="$enable_ffile"
698dcdb6 4003
10f2d63a 4004 if test "$enableval" = yes; then
1e6feb95 4005 ac_cv_use_ffile='wxUSE_FFILE=yes'
10f2d63a 4006 else
1e6feb95 4007 ac_cv_use_ffile='wxUSE_FFILE=no'
10f2d63a 4008 fi
698dcdb6 4009
10f2d63a 4010else
698dcdb6 4011
1e6feb95 4012 LINE=`grep "wxUSE_FFILE" ${wx_arg_cache_file}`
10f2d63a
VZ
4013 if test "x$LINE" != x ; then
4014 eval "DEFAULT_$LINE"
4015 else
4016 no_cache=1
4017 fi
4018
1e6feb95 4019 ac_cv_use_ffile='wxUSE_FFILE='$DEFAULT_wxUSE_FFILE
698dcdb6
VZ
4020
4021fi
10f2d63a
VZ
4022
4023
1e6feb95 4024 eval "$ac_cv_use_ffile"
10f2d63a 4025 if test "$no_cache" != 1; then
1e6feb95 4026 echo $ac_cv_use_ffile >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
4027 fi
4028
1e6feb95 4029 if test "$wxUSE_FFILE" = yes; then
698dcdb6 4030 echo "$ac_t""yes" 1>&6
10f2d63a 4031 else
698dcdb6 4032 echo "$ac_t""no" 1>&6
10f2d63a 4033 fi
698dcdb6 4034
10f2d63a 4035
a3a584a7 4036 echo $ac_n "checking for --enable-textbuf""... $ac_c" 1>&6
009fead0 4037echo "configure:4038: checking for --enable-textbuf" >&5
a3a584a7
VZ
4038 no_cache=0
4039 # Check whether --enable-textbuf or --disable-textbuf was given.
4040if test "${enable_textbuf+set}" = set; then
4041 enableval="$enable_textbuf"
4042
4043 if test "$enableval" = yes; then
4044 ac_cv_use_textbuf='wxUSE_TEXTBUFFER=yes'
4045 else
4046 ac_cv_use_textbuf='wxUSE_TEXTBUFFER=no'
4047 fi
4048
4049else
4050
4051 LINE=`grep "wxUSE_TEXTBUFFER" ${wx_arg_cache_file}`
4052 if test "x$LINE" != x ; then
4053 eval "DEFAULT_$LINE"
4054 else
4055 no_cache=1
4056 fi
4057
4058 ac_cv_use_textbuf='wxUSE_TEXTBUFFER='$DEFAULT_wxUSE_TEXTBUFFER
4059
4060fi
4061
4062
4063 eval "$ac_cv_use_textbuf"
4064 if test "$no_cache" != 1; then
4065 echo $ac_cv_use_textbuf >> ${wx_arg_cache_file}.tmp
4066 fi
4067
4068 if test "$wxUSE_TEXTBUFFER" = yes; then
4069 echo "$ac_t""yes" 1>&6
4070 else
4071 echo "$ac_t""no" 1>&6
4072 fi
4073
4074
1e6feb95 4075 echo $ac_n "checking for --enable-textfile""... $ac_c" 1>&6
009fead0 4076echo "configure:4077: checking for --enable-textfile" >&5
10f2d63a 4077 no_cache=0
1e6feb95
VZ
4078 # Check whether --enable-textfile or --disable-textfile was given.
4079if test "${enable_textfile+set}" = set; then
4080 enableval="$enable_textfile"
698dcdb6 4081
10f2d63a 4082 if test "$enableval" = yes; then
1e6feb95 4083 ac_cv_use_textfile='wxUSE_TEXTFILE=yes'
10f2d63a 4084 else
1e6feb95 4085 ac_cv_use_textfile='wxUSE_TEXTFILE=no'
10f2d63a 4086 fi
698dcdb6 4087
10f2d63a 4088else
698dcdb6 4089
1e6feb95 4090 LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}`
10f2d63a
VZ
4091 if test "x$LINE" != x ; then
4092 eval "DEFAULT_$LINE"
4093 else
4094 no_cache=1
4095 fi
4096
1e6feb95 4097 ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE
698dcdb6
VZ
4098
4099fi
10f2d63a
VZ
4100
4101
1e6feb95 4102 eval "$ac_cv_use_textfile"
10f2d63a 4103 if test "$no_cache" != 1; then
1e6feb95 4104 echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
4105 fi
4106
1e6feb95 4107 if test "$wxUSE_TEXTFILE" = yes; then
698dcdb6 4108 echo "$ac_t""yes" 1>&6
10f2d63a 4109 else
698dcdb6 4110 echo "$ac_t""no" 1>&6
10f2d63a 4111 fi
698dcdb6 4112
10f2d63a 4113
1e6feb95 4114 echo $ac_n "checking for --enable-fontmap""... $ac_c" 1>&6
009fead0 4115echo "configure:4116: checking for --enable-fontmap" >&5
10f2d63a 4116 no_cache=0
1e6feb95
VZ
4117 # Check whether --enable-fontmap or --disable-fontmap was given.
4118if test "${enable_fontmap+set}" = set; then
4119 enableval="$enable_fontmap"
698dcdb6 4120
10f2d63a 4121 if test "$enableval" = yes; then
1e6feb95 4122 ac_cv_use_fontmap='wxUSE_FONTMAP=yes'
10f2d63a 4123 else
1e6feb95 4124 ac_cv_use_fontmap='wxUSE_FONTMAP=no'
10f2d63a 4125 fi
698dcdb6 4126
10f2d63a 4127else
698dcdb6 4128
1e6feb95 4129 LINE=`grep "wxUSE_FONTMAP" ${wx_arg_cache_file}`
10f2d63a
VZ
4130 if test "x$LINE" != x ; then
4131 eval "DEFAULT_$LINE"
4132 else
4133 no_cache=1
4134 fi
4135
1e6feb95 4136 ac_cv_use_fontmap='wxUSE_FONTMAP='$DEFAULT_wxUSE_FONTMAP
698dcdb6
VZ
4137
4138fi
10f2d63a
VZ
4139
4140
1e6feb95 4141 eval "$ac_cv_use_fontmap"
10f2d63a 4142 if test "$no_cache" != 1; then
1e6feb95 4143 echo $ac_cv_use_fontmap >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
4144 fi
4145
1e6feb95 4146 if test "$wxUSE_FONTMAP" = yes; then
698dcdb6 4147 echo "$ac_t""yes" 1>&6
10f2d63a 4148 else
698dcdb6 4149 echo "$ac_t""no" 1>&6
10f2d63a 4150 fi
698dcdb6 4151
10f2d63a 4152
1e6feb95 4153 echo $ac_n "checking for --enable-unicode""... $ac_c" 1>&6
009fead0 4154echo "configure:4155: checking for --enable-unicode" >&5
10f2d63a 4155 no_cache=0
1e6feb95
VZ
4156 # Check whether --enable-unicode or --disable-unicode was given.
4157if test "${enable_unicode+set}" = set; then
4158 enableval="$enable_unicode"
4159
4160 if test "$enableval" = yes; then
4161 ac_cv_use_unicode='wxUSE_UNICODE=yes'
4162 else
4163 ac_cv_use_unicode='wxUSE_UNICODE=no'
4164 fi
4165
4166else
4167
4168 LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}`
4169 if test "x$LINE" != x ; then
4170 eval "DEFAULT_$LINE"
4171 else
4172 no_cache=1
4173 fi
4174
4175 ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE
4176
4177fi
4178
4179
4180 eval "$ac_cv_use_unicode"
4181 if test "$no_cache" != 1; then
4182 echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp
4183 fi
4184
4185 if test "$wxUSE_UNICODE" = yes; then
4186 echo "$ac_t""yes" 1>&6
4187 else
4188 echo "$ac_t""no" 1>&6
4189 fi
4190
4191
a72a4bfa 4192 echo $ac_n "checking for --enable-mslu""... $ac_c" 1>&6
009fead0 4193echo "configure:4194: checking for --enable-mslu" >&5
a72a4bfa
VS
4194 no_cache=0
4195 # Check whether --enable-mslu or --disable-mslu was given.
4196if test "${enable_mslu+set}" = set; then
4197 enableval="$enable_mslu"
4198
4199 if test "$enableval" = yes; then
4200 ac_cv_use_mslu='wxUSE_UNICODE_MSLU=yes'
4201 else
4202 ac_cv_use_mslu='wxUSE_UNICODE_MSLU=no'
4203 fi
4204
4205else
4206
4207 LINE=`grep "wxUSE_UNICODE_MSLU" ${wx_arg_cache_file}`
4208 if test "x$LINE" != x ; then
4209 eval "DEFAULT_$LINE"
4210 else
4211 no_cache=1
4212 fi
4213
4214 ac_cv_use_mslu='wxUSE_UNICODE_MSLU='$DEFAULT_wxUSE_UNICODE_MSLU
4215
4216fi
4217
4218
4219 eval "$ac_cv_use_mslu"
4220 if test "$no_cache" != 1; then
4221 echo $ac_cv_use_mslu >> ${wx_arg_cache_file}.tmp
4222 fi
4223
4224 if test "$wxUSE_UNICODE_MSLU" = yes; then
4225 echo "$ac_t""yes" 1>&6
4226 else
4227 echo "$ac_t""no" 1>&6
4228 fi
4229
4230
1e6feb95 4231 echo $ac_n "checking for --enable-wxprintfv""... $ac_c" 1>&6
009fead0 4232echo "configure:4233: checking for --enable-wxprintfv" >&5
1e6feb95
VZ
4233 no_cache=0
4234 # Check whether --enable-wxprintfv or --disable-wxprintfv was given.
4235if test "${enable_wxprintfv+set}" = set; then
4236 enableval="$enable_wxprintfv"
4237
4238 if test "$enableval" = yes; then
10f2d63a
VZ
4239 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=yes'
4240 else
4241 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=no'
4242 fi
698dcdb6 4243
10f2d63a 4244else
698dcdb6 4245
10f2d63a
VZ
4246 LINE=`grep "wxUSE_EXPERIMENTAL_PRINTF" ${wx_arg_cache_file}`
4247 if test "x$LINE" != x ; then
4248 eval "DEFAULT_$LINE"
4249 else
4250 no_cache=1
4251 fi
4252
4253 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF='$DEFAULT_wxUSE_EXPERIMENTAL_PRINTF
698dcdb6
VZ
4254
4255fi
10f2d63a
VZ
4256
4257
4258 eval "$ac_cv_use_wxprintfv"
4259 if test "$no_cache" != 1; then
4260 echo $ac_cv_use_wxprintfv >> ${wx_arg_cache_file}.tmp
4261 fi
4262
4263 if test "$wxUSE_EXPERIMENTAL_PRINTF" = yes; then
698dcdb6 4264 echo "$ac_t""yes" 1>&6
10f2d63a 4265 else
698dcdb6 4266 echo "$ac_t""no" 1>&6
10f2d63a 4267 fi
698dcdb6 4268
10f2d63a 4269
698dcdb6 4270 echo $ac_n "checking for --enable-std_iostreams""... $ac_c" 1>&6
009fead0 4271echo "configure:4272: checking for --enable-std_iostreams" >&5
10f2d63a
VZ
4272 no_cache=0
4273 # Check whether --enable-std_iostreams or --disable-std_iostreams was given.
4274if test "${enable_std_iostreams+set}" = set; then
4275 enableval="$enable_std_iostreams"
698dcdb6 4276
10f2d63a
VZ
4277 if test "$enableval" = yes; then
4278 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes'
4279 else
4280 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no'
4281 fi
698dcdb6 4282
10f2d63a 4283else
698dcdb6 4284
10f2d63a
VZ
4285 LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}`
4286 if test "x$LINE" != x ; then
4287 eval "DEFAULT_$LINE"
4288 else
4289 no_cache=1
4290 fi
4291
4292 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM
698dcdb6
VZ
4293
4294fi
10f2d63a
VZ
4295
4296
4297 eval "$ac_cv_use_std_iostreams"
4298 if test "$no_cache" != 1; then
4299 echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp
4300 fi
4301
4302 if test "$wxUSE_STD_IOSTREAM" = yes; then
698dcdb6 4303 echo "$ac_t""yes" 1>&6
10f2d63a 4304 else
698dcdb6 4305 echo "$ac_t""no" 1>&6
10f2d63a 4306 fi
698dcdb6 4307
10f2d63a 4308
698dcdb6 4309 echo $ac_n "checking for --enable-filesystem""... $ac_c" 1>&6
009fead0 4310echo "configure:4311: checking for --enable-filesystem" >&5
24528b0c
VS
4311 no_cache=0
4312 # Check whether --enable-filesystem or --disable-filesystem was given.
4313if test "${enable_filesystem+set}" = set; then
4314 enableval="$enable_filesystem"
698dcdb6 4315
24528b0c
VS
4316 if test "$enableval" = yes; then
4317 ac_cv_use_filesystem='wxUSE_FILESYSTEM=yes'
4318 else
4319 ac_cv_use_filesystem='wxUSE_FILESYSTEM=no'
4320 fi
698dcdb6 4321
24528b0c 4322else
698dcdb6 4323
24528b0c
VS
4324 LINE=`grep "wxUSE_FILESYSTEM" ${wx_arg_cache_file}`
4325 if test "x$LINE" != x ; then
4326 eval "DEFAULT_$LINE"
4327 else
4328 no_cache=1
4329 fi
4330
4331 ac_cv_use_filesystem='wxUSE_FILESYSTEM='$DEFAULT_wxUSE_FILESYSTEM
698dcdb6
VZ
4332
4333fi
24528b0c
VS
4334
4335
4336 eval "$ac_cv_use_filesystem"
4337 if test "$no_cache" != 1; then
4338 echo $ac_cv_use_filesystem >> ${wx_arg_cache_file}.tmp
4339 fi
4340
4341 if test "$wxUSE_FILESYSTEM" = yes; then
698dcdb6 4342 echo "$ac_t""yes" 1>&6
24528b0c 4343 else
698dcdb6 4344 echo "$ac_t""no" 1>&6
24528b0c 4345 fi
698dcdb6 4346
24528b0c 4347
698dcdb6 4348 echo $ac_n "checking for --enable-fs_inet""... $ac_c" 1>&6
009fead0 4349echo "configure:4350: checking for --enable-fs_inet" >&5
10f2d63a
VZ
4350 no_cache=0
4351 # Check whether --enable-fs_inet or --disable-fs_inet was given.
4352if test "${enable_fs_inet+set}" = set; then
4353 enableval="$enable_fs_inet"
698dcdb6 4354
10f2d63a
VZ
4355 if test "$enableval" = yes; then
4356 ac_cv_use_fs_inet='wxUSE_FS_INET=yes'
4357 else
4358 ac_cv_use_fs_inet='wxUSE_FS_INET=no'
4359 fi
698dcdb6 4360
10f2d63a 4361else
698dcdb6 4362
10f2d63a
VZ
4363 LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}`
4364 if test "x$LINE" != x ; then
4365 eval "DEFAULT_$LINE"
4366 else
4367 no_cache=1
4368 fi
4369
4370 ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET
698dcdb6
VZ
4371
4372fi
10f2d63a
VZ
4373
4374
4375 eval "$ac_cv_use_fs_inet"
4376 if test "$no_cache" != 1; then
4377 echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp
4378 fi
4379
4380 if test "$wxUSE_FS_INET" = yes; then
698dcdb6 4381 echo "$ac_t""yes" 1>&6
10f2d63a 4382 else
698dcdb6 4383 echo "$ac_t""no" 1>&6
10f2d63a 4384 fi
698dcdb6 4385
10f2d63a 4386
698dcdb6 4387 echo $ac_n "checking for --enable-fs_zip""... $ac_c" 1>&6
009fead0 4388echo "configure:4389: checking for --enable-fs_zip" >&5
10f2d63a
VZ
4389 no_cache=0
4390 # Check whether --enable-fs_zip or --disable-fs_zip was given.
4391if test "${enable_fs_zip+set}" = set; then
4392 enableval="$enable_fs_zip"
698dcdb6 4393
10f2d63a
VZ
4394 if test "$enableval" = yes; then
4395 ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes'
4396 else
4397 ac_cv_use_fs_zip='wxUSE_FS_ZIP=no'
4398 fi
698dcdb6 4399
10f2d63a 4400else
698dcdb6 4401
10f2d63a
VZ
4402 LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}`
4403 if test "x$LINE" != x ; then
4404 eval "DEFAULT_$LINE"
4405 else
4406 no_cache=1
4407 fi
4408
4409 ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP
698dcdb6
VZ
4410
4411fi
10f2d63a
VZ
4412
4413
4414 eval "$ac_cv_use_fs_zip"
4415 if test "$no_cache" != 1; then
4416 echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp
4417 fi
4418
4419 if test "$wxUSE_FS_ZIP" = yes; then
698dcdb6 4420 echo "$ac_t""yes" 1>&6
10f2d63a 4421 else
698dcdb6 4422 echo "$ac_t""no" 1>&6
10f2d63a 4423 fi
698dcdb6 4424
10f2d63a 4425
698dcdb6 4426 echo $ac_n "checking for --enable-zipstream""... $ac_c" 1>&6
009fead0 4427echo "configure:4428: checking for --enable-zipstream" >&5
10f2d63a
VZ
4428 no_cache=0
4429 # Check whether --enable-zipstream or --disable-zipstream was given.
4430if test "${enable_zipstream+set}" = set; then
4431 enableval="$enable_zipstream"
698dcdb6 4432
10f2d63a
VZ
4433 if test "$enableval" = yes; then
4434 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes'
4435 else
4436 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no'
4437 fi
698dcdb6 4438
10f2d63a 4439else
698dcdb6 4440
10f2d63a
VZ
4441 LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}`
4442 if test "x$LINE" != x ; then
4443 eval "DEFAULT_$LINE"
4444 else
4445 no_cache=1
4446 fi
4447
4448 ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM
698dcdb6
VZ
4449
4450fi
10f2d63a
VZ
4451
4452
4453 eval "$ac_cv_use_zipstream"
4454 if test "$no_cache" != 1; then
4455 echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp
4456 fi
4457
4458 if test "$wxUSE_ZIPSTREAM" = yes; then
698dcdb6 4459 echo "$ac_t""yes" 1>&6
10f2d63a 4460 else
698dcdb6 4461 echo "$ac_t""no" 1>&6
10f2d63a 4462 fi
698dcdb6 4463
10f2d63a 4464
698dcdb6
VZ
4465
4466 echo $ac_n "checking for --enable-catch_segvs""... $ac_c" 1>&6
009fead0 4467echo "configure:4468: checking for --enable-catch_segvs" >&5
eb4efbdc
VZ
4468 no_cache=0
4469 # Check whether --enable-catch_segvs or --disable-catch_segvs was given.
4470if test "${enable_catch_segvs+set}" = set; then
4471 enableval="$enable_catch_segvs"
698dcdb6 4472
eb4efbdc
VZ
4473 if test "$enableval" = yes; then
4474 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes'
4475 else
4476 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no'
4477 fi
698dcdb6 4478
eb4efbdc 4479else
698dcdb6 4480
eb4efbdc
VZ
4481 LINE=`grep "wxUSE_ON_FATAL_EXCEPTION" ${wx_arg_cache_file}`
4482 if test "x$LINE" != x ; then
4483 eval "DEFAULT_$LINE"
4484 else
4485 no_cache=1
4486 fi
4487
4488 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION='$DEFAULT_wxUSE_ON_FATAL_EXCEPTION
698dcdb6
VZ
4489
4490fi
eb4efbdc
VZ
4491
4492
4493 eval "$ac_cv_use_catch_segvs"
4494 if test "$no_cache" != 1; then
4495 echo $ac_cv_use_catch_segvs >> ${wx_arg_cache_file}.tmp
4496 fi
4497
4498 if test "$wxUSE_ON_FATAL_EXCEPTION" = yes; then
698dcdb6 4499 echo "$ac_t""yes" 1>&6
eb4efbdc 4500 else
698dcdb6 4501 echo "$ac_t""no" 1>&6
eb4efbdc 4502 fi
698dcdb6 4503
eb4efbdc 4504
698dcdb6 4505 echo $ac_n "checking for --enable-snglinst""... $ac_c" 1>&6
009fead0 4506echo "configure:4507: checking for --enable-snglinst" >&5
4f3c5f06
VZ
4507 no_cache=0
4508 # Check whether --enable-snglinst or --disable-snglinst was given.
4509if test "${enable_snglinst+set}" = set; then
4510 enableval="$enable_snglinst"
698dcdb6 4511
4f3c5f06
VZ
4512 if test "$enableval" = yes; then
4513 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=yes'
4514 else
4515 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=no'
4516 fi
698dcdb6 4517
4f3c5f06 4518else
698dcdb6 4519
4f3c5f06
VZ
4520 LINE=`grep "wxUSE_SNGLINST_CHECKER" ${wx_arg_cache_file}`
4521 if test "x$LINE" != x ; then
4522 eval "DEFAULT_$LINE"
4523 else
4524 no_cache=1
4525 fi
4526
4527 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER='$DEFAULT_wxUSE_SNGLINST_CHECKER
698dcdb6
VZ
4528
4529fi
4f3c5f06
VZ
4530
4531
4532 eval "$ac_cv_use_snglinst"
4533 if test "$no_cache" != 1; then
4534 echo $ac_cv_use_snglinst >> ${wx_arg_cache_file}.tmp
4535 fi
4536
4537 if test "$wxUSE_SNGLINST_CHECKER" = yes; then
698dcdb6 4538 echo "$ac_t""yes" 1>&6
4f3c5f06 4539 else
698dcdb6 4540 echo "$ac_t""no" 1>&6
4f3c5f06 4541 fi
698dcdb6
VZ
4542
4543
eb4efbdc 4544
1e6feb95 4545 echo $ac_n "checking for --enable-mimetype""... $ac_c" 1>&6
009fead0 4546echo "configure:4547: checking for --enable-mimetype" >&5
1e6feb95
VZ
4547 no_cache=0
4548 # Check whether --enable-mimetype or --disable-mimetype was given.
4549if test "${enable_mimetype+set}" = set; then
4550 enableval="$enable_mimetype"
4551
4552 if test "$enableval" = yes; then
4553 ac_cv_use_mimetype='wxUSE_MIMETYPE=yes'
4554 else
4555 ac_cv_use_mimetype='wxUSE_MIMETYPE=no'
4556 fi
4557
4558else
4559
4560 LINE=`grep "wxUSE_MIMETYPE" ${wx_arg_cache_file}`
4561 if test "x$LINE" != x ; then
4562 eval "DEFAULT_$LINE"
4563 else
4564 no_cache=1
4565 fi
4566
4567 ac_cv_use_mimetype='wxUSE_MIMETYPE='$DEFAULT_wxUSE_MIMETYPE
4568
4569fi
4570
4571
4572 eval "$ac_cv_use_mimetype"
4573 if test "$no_cache" != 1; then
4574 echo $ac_cv_use_mimetype >> ${wx_arg_cache_file}.tmp
4575 fi
4576
4577 if test "$wxUSE_MIMETYPE" = yes; then
4578 echo "$ac_t""yes" 1>&6
4579 else
4580 echo "$ac_t""no" 1>&6
4581 fi
4582
4583
3e44f09d 4584 echo $ac_n "checking for --enable-system_options""... $ac_c" 1>&6
009fead0 4585echo "configure:4586: checking for --enable-system_options" >&5
3e44f09d
VZ
4586 no_cache=0
4587 # Check whether --enable-system_options or --disable-system_options was given.
4588if test "${enable_system_options+set}" = set; then
4589 enableval="$enable_system_options"
4590
4591 if test "$enableval" = yes; then
4592 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=yes'
4593 else
4594 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=no'
4595 fi
4596
4597else
4598
4599 LINE=`grep "wxUSE_SYSTEM_OPTIONS" ${wx_arg_cache_file}`
4600 if test "x$LINE" != x ; then
4601 eval "DEFAULT_$LINE"
4602 else
4603 no_cache=1
4604 fi
4605
4606 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS='$DEFAULT_wxUSE_SYSTEM_OPTIONS
4607
4608fi
4609
4610
4611 eval "$ac_cv_use_system_options"
4612 if test "$no_cache" != 1; then
4613 echo $ac_cv_use_system_options >> ${wx_arg_cache_file}.tmp
4614 fi
4615
4616 if test "$wxUSE_SYSTEM_OPTIONS" = yes; then
4617 echo "$ac_t""yes" 1>&6
4618 else
4619 echo "$ac_t""no" 1>&6
4620 fi
4621
4622
1e6feb95 4623
4cdb0ab0 4624 echo $ac_n "checking for --enable-url""... $ac_c" 1>&6
009fead0 4625echo "configure:4626: checking for --enable-url" >&5
4cdb0ab0
VS
4626 no_cache=0
4627 # Check whether --enable-url or --disable-url was given.
4628if test "${enable_url+set}" = set; then
4629 enableval="$enable_url"
4630
4631 if test "$enableval" = yes; then
4632 ac_cv_use_url='wxUSE_URL=yes'
4633 else
4634 ac_cv_use_url='wxUSE_URL=no'
4635 fi
4636
4637else
4638
4639 LINE=`grep "wxUSE_URL" ${wx_arg_cache_file}`
4640 if test "x$LINE" != x ; then
4641 eval "DEFAULT_$LINE"
4642 else
4643 no_cache=1
4644 fi
4645
4646 ac_cv_use_url='wxUSE_URL='$DEFAULT_wxUSE_URL
4647
4648fi
4649
4650
4651 eval "$ac_cv_use_url"
4652 if test "$no_cache" != 1; then
4653 echo $ac_cv_use_url >> ${wx_arg_cache_file}.tmp
4654 fi
4655
4656 if test "$wxUSE_URL" = yes; then
4657 echo "$ac_t""yes" 1>&6
4658 else
4659 echo "$ac_t""no" 1>&6
4660 fi
4661
4662
4663 echo $ac_n "checking for --enable-protocol""... $ac_c" 1>&6
009fead0 4664echo "configure:4665: checking for --enable-protocol" >&5
4cdb0ab0
VS
4665 no_cache=0
4666 # Check whether --enable-protocol or --disable-protocol was given.
4667if test "${enable_protocol+set}" = set; then
4668 enableval="$enable_protocol"
4669
4670 if test "$enableval" = yes; then
4671 ac_cv_use_protocol='wxUSE_PROTOCOL=yes'
4672 else
4673 ac_cv_use_protocol='wxUSE_PROTOCOL=no'
4674 fi
4675
4676else
4677
4678 LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
4679 if test "x$LINE" != x ; then
4680 eval "DEFAULT_$LINE"
4681 else
4682 no_cache=1
4683 fi
4684
4685 ac_cv_use_protocol='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
4686
4687fi
4688
4689
4690 eval "$ac_cv_use_protocol"
4691 if test "$no_cache" != 1; then
4692 echo $ac_cv_use_protocol >> ${wx_arg_cache_file}.tmp
4693 fi
4694
4695 if test "$wxUSE_PROTOCOL" = yes; then
4696 echo "$ac_t""yes" 1>&6
4697 else
4698 echo "$ac_t""no" 1>&6
4699 fi
4700
4701
4702 echo $ac_n "checking for --enable-protocol_http""... $ac_c" 1>&6
009fead0 4703echo "configure:4704: checking for --enable-protocol_http" >&5
4cdb0ab0
VS
4704 no_cache=0
4705 # Check whether --enable-protocol_http or --disable-protocol_http was given.
4706if test "${enable_protocol_http+set}" = set; then
4707 enableval="$enable_protocol_http"
4708
4709 if test "$enableval" = yes; then
4710 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=yes'
4711 else
4712 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=no'
4713 fi
4714
4715else
4716
4717 LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
4718 if test "x$LINE" != x ; then
4719 eval "DEFAULT_$LINE"
4720 else
4721 no_cache=1
4722 fi
4723
4724 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
4725
4726fi
4727
4728
4729 eval "$ac_cv_use_protocol_http"
4730 if test "$no_cache" != 1; then
4731 echo $ac_cv_use_protocol_http >> ${wx_arg_cache_file}.tmp
4732 fi
4733
4734 if test "$wxUSE_PROTOCOL_HTTP" = yes; then
4735 echo "$ac_t""yes" 1>&6
4736 else
4737 echo "$ac_t""no" 1>&6
4738 fi
4739
4740
4741 echo $ac_n "checking for --enable-protocol_ftp""... $ac_c" 1>&6
009fead0 4742echo "configure:4743: checking for --enable-protocol_ftp" >&5
4cdb0ab0
VS
4743 no_cache=0
4744 # Check whether --enable-protocol_ftp or --disable-protocol_ftp was given.
4745if test "${enable_protocol_ftp+set}" = set; then
4746 enableval="$enable_protocol_ftp"
4747
4748 if test "$enableval" = yes; then
4749 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=yes'
4750 else
4751 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=no'
4752 fi
4753
4754else
4755
4756 LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
4757 if test "x$LINE" != x ; then
4758 eval "DEFAULT_$LINE"
4759 else
4760 no_cache=1
4761 fi
4762
4763 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
4764
4765fi
4766
4767
4768 eval "$ac_cv_use_protocol_ftp"
4769 if test "$no_cache" != 1; then
4770 echo $ac_cv_use_protocol_ftp >> ${wx_arg_cache_file}.tmp
4771 fi
4772
4773 if test "$wxUSE_PROTOCOL_FTP" = yes; then
4774 echo "$ac_t""yes" 1>&6
4775 else
4776 echo "$ac_t""no" 1>&6
4777 fi
4778
4779
4780 echo $ac_n "checking for --enable-protocol_file""... $ac_c" 1>&6
009fead0 4781echo "configure:4782: checking for --enable-protocol_file" >&5
4cdb0ab0
VS
4782 no_cache=0
4783 # Check whether --enable-protocol_file or --disable-protocol_file was given.
4784if test "${enable_protocol_file+set}" = set; then
4785 enableval="$enable_protocol_file"
4786
4787 if test "$enableval" = yes; then
4788 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=yes'
4789 else
4790 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=no'
4791 fi
4792
4793else
4794
4795 LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
4796 if test "x$LINE" != x ; then
4797 eval "DEFAULT_$LINE"
4798 else
4799 no_cache=1
4800 fi
4801
4802 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
4803
4804fi
4805
4806
4807 eval "$ac_cv_use_protocol_file"
4808 if test "$no_cache" != 1; then
4809 echo $ac_cv_use_protocol_file >> ${wx_arg_cache_file}.tmp
4810 fi
4811
4812 if test "$wxUSE_PROTOCOL_FILE" = yes; then
4813 echo "$ac_t""yes" 1>&6
4814 else
4815 echo "$ac_t""no" 1>&6
4816 fi
4817
4818
4819
4820
698dcdb6
VZ
4821
4822 echo $ac_n "checking for --enable-threads""... $ac_c" 1>&6
009fead0 4823echo "configure:4824: checking for --enable-threads" >&5
10f2d63a
VZ
4824 no_cache=0
4825 # Check whether --enable-threads or --disable-threads was given.
4826if test "${enable_threads+set}" = set; then
4827 enableval="$enable_threads"
698dcdb6 4828
10f2d63a
VZ
4829 if test "$enableval" = yes; then
4830 ac_cv_use_threads='wxUSE_THREADS=yes'
4831 else
4832 ac_cv_use_threads='wxUSE_THREADS=no'
4833 fi
698dcdb6 4834
10f2d63a 4835else
698dcdb6 4836
10f2d63a
VZ
4837 LINE=`grep "wxUSE_THREADS" ${wx_arg_cache_file}`
4838 if test "x$LINE" != x ; then
4839 eval "DEFAULT_$LINE"
4840 else
4841 no_cache=1
4842 fi
4843
4844 ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS
698dcdb6
VZ
4845
4846fi
10f2d63a
VZ
4847
4848
4849 eval "$ac_cv_use_threads"
4850 if test "$no_cache" != 1; then
4851 echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp
4852 fi
4853
4854 if test "$wxUSE_THREADS" = yes; then
698dcdb6 4855 echo "$ac_t""yes" 1>&6
10f2d63a 4856 else
698dcdb6 4857 echo "$ac_t""no" 1>&6
10f2d63a 4858 fi
698dcdb6 4859
10f2d63a 4860
b12915c1
VZ
4861if test "$wxUSE_GUI" = "yes"; then
4862
698dcdb6
VZ
4863
4864
4865 echo $ac_n "checking for --enable-docview""... $ac_c" 1>&6
009fead0 4866echo "configure:4867: checking for --enable-docview" >&5
10f2d63a
VZ
4867 no_cache=0
4868 # Check whether --enable-docview or --disable-docview was given.
4869if test "${enable_docview+set}" = set; then
4870 enableval="$enable_docview"
698dcdb6 4871
10f2d63a
VZ
4872 if test "$enableval" = yes; then
4873 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes'
4874 else
4875 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no'
4876 fi
698dcdb6 4877
10f2d63a 4878else
698dcdb6 4879
10f2d63a
VZ
4880 LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}`
4881 if test "x$LINE" != x ; then
4882 eval "DEFAULT_$LINE"
4883 else
4884 no_cache=1
4885 fi
4886
4887 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE
698dcdb6
VZ
4888
4889fi
10f2d63a
VZ
4890
4891
4892 eval "$ac_cv_use_docview"
4893 if test "$no_cache" != 1; then
4894 echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp
4895 fi
4896
4897 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then
698dcdb6 4898 echo "$ac_t""yes" 1>&6
10f2d63a 4899 else
698dcdb6 4900 echo "$ac_t""no" 1>&6
10f2d63a 4901 fi
698dcdb6 4902
10f2d63a 4903
698dcdb6 4904 echo $ac_n "checking for --enable-help""... $ac_c" 1>&6
009fead0 4905echo "configure:4906: checking for --enable-help" >&5
10f2d63a
VZ
4906 no_cache=0
4907 # Check whether --enable-help or --disable-help was given.
4908if test "${enable_help+set}" = set; then
4909 enableval="$enable_help"
698dcdb6 4910
10f2d63a
VZ
4911 if test "$enableval" = yes; then
4912 ac_cv_use_help='wxUSE_HELP=yes'
4913 else
4914 ac_cv_use_help='wxUSE_HELP=no'
4915 fi
698dcdb6 4916
10f2d63a 4917else
698dcdb6 4918
10f2d63a
VZ
4919 LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}`
4920 if test "x$LINE" != x ; then
4921 eval "DEFAULT_$LINE"
4922 else
4923 no_cache=1
4924 fi
4925
4926 ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP
698dcdb6
VZ
4927
4928fi
10f2d63a
VZ
4929
4930
4931 eval "$ac_cv_use_help"
4932 if test "$no_cache" != 1; then
4933 echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp
4934 fi
4935
4936 if test "$wxUSE_HELP" = yes; then
698dcdb6 4937 echo "$ac_t""yes" 1>&6
10f2d63a 4938 else
698dcdb6 4939 echo "$ac_t""no" 1>&6
10f2d63a 4940 fi
698dcdb6 4941
10f2d63a 4942
29fd3c0c 4943 echo $ac_n "checking for --enable-mshtmlhelp""... $ac_c" 1>&6
009fead0 4944echo "configure:4945: checking for --enable-mshtmlhelp" >&5
29fd3c0c
VS
4945 no_cache=0
4946 # Check whether --enable-mshtmlhelp or --disable-mshtmlhelp was given.
4947if test "${enable_mshtmlhelp+set}" = set; then
4948 enableval="$enable_mshtmlhelp"
4949
4950 if test "$enableval" = yes; then
4951 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=yes'
4952 else
4953 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=no'
4954 fi
4955
4956else
4957
4958 LINE=`grep "wxUSE_MS_HTML_HELP" ${wx_arg_cache_file}`
4959 if test "x$LINE" != x ; then
4960 eval "DEFAULT_$LINE"
4961 else
4962 no_cache=1
4963 fi
4964
4965 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP='$DEFAULT_wxUSE_MS_HTML_HELP
4966
4967fi
4968
4969
4970 eval "$ac_cv_use_mshtmlhelp"
4971 if test "$no_cache" != 1; then
4972 echo $ac_cv_use_mshtmlhelp >> ${wx_arg_cache_file}.tmp
4973 fi
4974
4975 if test "$wxUSE_MS_HTML_HELP" = yes; then
4976 echo "$ac_t""yes" 1>&6
4977 else
4978 echo "$ac_t""no" 1>&6
4979 fi
4980
4981
3379ed37 4982 echo $ac_n "checking for --enable-html""... $ac_c" 1>&6
009fead0 4983echo "configure:4984: checking for --enable-html" >&5
3379ed37
VZ
4984 no_cache=0
4985 # Check whether --enable-html or --disable-html was given.
4986if test "${enable_html+set}" = set; then
4987 enableval="$enable_html"
4988
4989 if test "$enableval" = yes; then
4990 ac_cv_use_html='wxUSE_HTML=yes'
4991 else
4992 ac_cv_use_html='wxUSE_HTML=no'
4993 fi
4994
4995else
4996
4997 LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}`
4998 if test "x$LINE" != x ; then
4999 eval "DEFAULT_$LINE"
5000 else
5001 no_cache=1
5002 fi
5003
5004 ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML
5005
5006fi
5007
5008
5009 eval "$ac_cv_use_html"
5010 if test "$no_cache" != 1; then
5011 echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp
5012 fi
5013
5014 if test "$wxUSE_HTML" = yes; then
5015 echo "$ac_t""yes" 1>&6
5016 else
5017 echo "$ac_t""no" 1>&6
5018 fi
5019
5020
5021 echo $ac_n "checking for --enable-htmlhelp""... $ac_c" 1>&6
009fead0 5022echo "configure:5023: checking for --enable-htmlhelp" >&5
3379ed37
VZ
5023 no_cache=0
5024 # Check whether --enable-htmlhelp or --disable-htmlhelp was given.
5025if test "${enable_htmlhelp+set}" = set; then
5026 enableval="$enable_htmlhelp"
5027
5028 if test "$enableval" = yes; then
5029 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=yes'
5030 else
5031 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=no'
5032 fi
5033
5034else
5035
5036 LINE=`grep "wxUSE_WXHTML_HELP" ${wx_arg_cache_file}`
5037 if test "x$LINE" != x ; then
5038 eval "DEFAULT_$LINE"
5039 else
5040 no_cache=1
5041 fi
5042
5043 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP='$DEFAULT_wxUSE_WXHTML_HELP
5044
5045fi
5046
5047
5048 eval "$ac_cv_use_htmlhelp"
5049 if test "$no_cache" != 1; then
5050 echo $ac_cv_use_htmlhelp >> ${wx_arg_cache_file}.tmp
5051 fi
5052
5053 if test "$wxUSE_WXHTML_HELP" = yes; then
5054 echo "$ac_t""yes" 1>&6
5055 else
5056 echo "$ac_t""no" 1>&6
5057 fi
5058
5059
698dcdb6 5060 echo $ac_n "checking for --enable-constraints""... $ac_c" 1>&6
009fead0 5061echo "configure:5062: checking for --enable-constraints" >&5
10f2d63a
VZ
5062 no_cache=0
5063 # Check whether --enable-constraints or --disable-constraints was given.
5064if test "${enable_constraints+set}" = set; then
5065 enableval="$enable_constraints"
698dcdb6 5066
10f2d63a
VZ
5067 if test "$enableval" = yes; then
5068 ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes'
5069 else
5070 ac_cv_use_constraints='wxUSE_CONSTRAINTS=no'
5071 fi
698dcdb6 5072
10f2d63a 5073else
698dcdb6 5074
10f2d63a
VZ
5075 LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}`
5076 if test "x$LINE" != x ; then
5077 eval "DEFAULT_$LINE"
5078 else
5079 no_cache=1
5080 fi
5081
5082 ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS
698dcdb6
VZ
5083
5084fi
10f2d63a
VZ
5085
5086
5087 eval "$ac_cv_use_constraints"
5088 if test "$no_cache" != 1; then
5089 echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp
5090 fi
5091
5092 if test "$wxUSE_CONSTRAINTS" = yes; then
698dcdb6 5093 echo "$ac_t""yes" 1>&6
10f2d63a 5094 else
698dcdb6 5095 echo "$ac_t""no" 1>&6
10f2d63a 5096 fi
698dcdb6 5097
10f2d63a 5098
698dcdb6 5099 echo $ac_n "checking for --enable-printarch""... $ac_c" 1>&6
009fead0 5100echo "configure:5101: checking for --enable-printarch" >&5
10f2d63a
VZ
5101 no_cache=0
5102 # Check whether --enable-printarch or --disable-printarch was given.
5103if test "${enable_printarch+set}" = set; then
5104 enableval="$enable_printarch"
698dcdb6 5105
10f2d63a
VZ
5106 if test "$enableval" = yes; then
5107 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes'
5108 else
5109 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no'
5110 fi
698dcdb6 5111
10f2d63a 5112else
698dcdb6 5113
10f2d63a
VZ
5114 LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}`
5115 if test "x$LINE" != x ; then
5116 eval "DEFAULT_$LINE"
5117 else
5118 no_cache=1
5119 fi
5120
5121 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE
698dcdb6
VZ
5122
5123fi
10f2d63a
VZ
5124
5125
5126 eval "$ac_cv_use_printarch"
5127 if test "$no_cache" != 1; then
5128 echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp
5129 fi
5130
5131 if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then
698dcdb6 5132 echo "$ac_t""yes" 1>&6
10f2d63a 5133 else
698dcdb6 5134 echo "$ac_t""no" 1>&6
10f2d63a 5135 fi
698dcdb6 5136
10f2d63a 5137
698dcdb6 5138 echo $ac_n "checking for --enable-mdi""... $ac_c" 1>&6
009fead0 5139echo "configure:5140: checking for --enable-mdi" >&5
10f2d63a
VZ
5140 no_cache=0
5141 # Check whether --enable-mdi or --disable-mdi was given.
5142if test "${enable_mdi+set}" = set; then
5143 enableval="$enable_mdi"
698dcdb6 5144
10f2d63a
VZ
5145 if test "$enableval" = yes; then
5146 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=yes'
5147 else
5148 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=no'
5149 fi
698dcdb6 5150
10f2d63a 5151else
698dcdb6 5152
10f2d63a
VZ
5153 LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}`
5154 if test "x$LINE" != x ; then
5155 eval "DEFAULT_$LINE"
5156 else
5157 no_cache=1
5158 fi
5159
5160 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE
698dcdb6
VZ
5161
5162fi
10f2d63a
VZ
5163
5164
5165 eval "$ac_cv_use_mdi"
5166 if test "$no_cache" != 1; then
5167 echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp
5168 fi
5169
5170 if test "$wxUSE_MDI_ARCHITECTURE" = yes; then
698dcdb6 5171 echo "$ac_t""yes" 1>&6
10f2d63a 5172 else
698dcdb6 5173 echo "$ac_t""no" 1>&6
10f2d63a 5174 fi
698dcdb6
VZ
5175
5176
1e6feb95 5177 echo $ac_n "checking for --enable-loggui""... $ac_c" 1>&6
009fead0 5178echo "configure:5179: checking for --enable-loggui" >&5
1e6feb95
VZ
5179 no_cache=0
5180 # Check whether --enable-loggui or --disable-loggui was given.
5181if test "${enable_loggui+set}" = set; then
5182 enableval="$enable_loggui"
5183
5184 if test "$enableval" = yes; then
5185 ac_cv_use_loggui='wxUSE_LOGGUI=yes'
5186 else
5187 ac_cv_use_loggui='wxUSE_LOGGUI=no'
5188 fi
5189
5190else
5191
5192 LINE=`grep "wxUSE_LOGGUI" ${wx_arg_cache_file}`
5193 if test "x$LINE" != x ; then
5194 eval "DEFAULT_$LINE"
5195 else
5196 no_cache=1
5197 fi
5198
5199 ac_cv_use_loggui='wxUSE_LOGGUI='$DEFAULT_wxUSE_LOGGUI
5200
5201fi
5202
5203
5204 eval "$ac_cv_use_loggui"
5205 if test "$no_cache" != 1; then
5206 echo $ac_cv_use_loggui >> ${wx_arg_cache_file}.tmp
5207 fi
5208
5209 if test "$wxUSE_LOGGUI" = yes; then
5210 echo "$ac_t""yes" 1>&6
5211 else
5212 echo "$ac_t""no" 1>&6
5213 fi
5214
5215
5216 echo $ac_n "checking for --enable-logwin""... $ac_c" 1>&6
009fead0 5217echo "configure:5218: checking for --enable-logwin" >&5
1e6feb95
VZ
5218 no_cache=0
5219 # Check whether --enable-logwin or --disable-logwin was given.
5220if test "${enable_logwin+set}" = set; then
5221 enableval="$enable_logwin"
5222
5223 if test "$enableval" = yes; then
5224 ac_cv_use_logwin='wxUSE_LOGWINDOW=yes'
5225 else
5226 ac_cv_use_logwin='wxUSE_LOGWINDOW=no'
5227 fi
5228
5229else
5230
5231 LINE=`grep "wxUSE_LOGWINDOW" ${wx_arg_cache_file}`
5232 if test "x$LINE" != x ; then
5233 eval "DEFAULT_$LINE"
5234 else
5235 no_cache=1
5236 fi
5237
5238 ac_cv_use_logwin='wxUSE_LOGWINDOW='$DEFAULT_wxUSE_LOGWINDOW
5239
5240fi
5241
5242
5243 eval "$ac_cv_use_logwin"
5244 if test "$no_cache" != 1; then
5245 echo $ac_cv_use_logwin >> ${wx_arg_cache_file}.tmp
5246 fi
5247
5248 if test "$wxUSE_LOGWINDOW" = yes; then
5249 echo "$ac_t""yes" 1>&6
5250 else
5251 echo "$ac_t""no" 1>&6
5252 fi
5253
5254
69d27ff7 5255 echo $ac_n "checking for --enable-logdialog""... $ac_c" 1>&6
009fead0 5256echo "configure:5257: checking for --enable-logdialog" >&5
69d27ff7
MB
5257 no_cache=0
5258 # Check whether --enable-logdialog or --disable-logdialog was given.
5259if test "${enable_logdialog+set}" = set; then
5260 enableval="$enable_logdialog"
5261
5262 if test "$enableval" = yes; then
5263 ac_cv_use_logdialog='wxUSE_LOGDIALOG=yes'
5264 else
5265 ac_cv_use_logdialog='wxUSE_LOGDIALOG=no'
5266 fi
5267
5268else
5269
5270 LINE=`grep "wxUSE_LOGDIALOG" ${wx_arg_cache_file}`
5271 if test "x$LINE" != x ; then
5272 eval "DEFAULT_$LINE"
5273 else
5274 no_cache=1
5275 fi
5276
5277 ac_cv_use_logdialog='wxUSE_LOGDIALOG='$DEFAULT_wxUSE_LOGDIALOG
5278
5279fi
5280
5281
5282 eval "$ac_cv_use_logdialog"
5283 if test "$no_cache" != 1; then
5284 echo $ac_cv_use_logdialog >> ${wx_arg_cache_file}.tmp
5285 fi
5286
5287 if test "$wxUSE_LOGDIALOG" = yes; then
5288 echo "$ac_t""yes" 1>&6
5289 else
5290 echo "$ac_t""no" 1>&6
5291 fi
5292
5293
10f2d63a 5294
698dcdb6 5295 echo $ac_n "checking for --enable-postscript""... $ac_c" 1>&6
009fead0 5296echo "configure:5297: checking for --enable-postscript" >&5
10f2d63a
VZ
5297 no_cache=0
5298 # Check whether --enable-postscript or --disable-postscript was given.
5299if test "${enable_postscript+set}" = set; then
5300 enableval="$enable_postscript"
698dcdb6 5301
10f2d63a
VZ
5302 if test "$enableval" = yes; then
5303 ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes'
5304 else
5305 ac_cv_use_postscript='wxUSE_POSTSCRIPT=no'
5306 fi
698dcdb6 5307
10f2d63a 5308else
698dcdb6 5309
10f2d63a
VZ
5310 LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}`
5311 if test "x$LINE" != x ; then
5312 eval "DEFAULT_$LINE"
5313 else
5314 no_cache=1
5315 fi
5316
5317 ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT
698dcdb6
VZ
5318
5319fi
10f2d63a
VZ
5320
5321
5322 eval "$ac_cv_use_postscript"
5323 if test "$no_cache" != 1; then
5324 echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp
5325 fi
5326
5327 if test "$wxUSE_POSTSCRIPT" = yes; then
698dcdb6 5328 echo "$ac_t""yes" 1>&6
10f2d63a 5329 else
698dcdb6 5330 echo "$ac_t""no" 1>&6
10f2d63a 5331 fi
698dcdb6
VZ
5332
5333
5334
10f2d63a 5335
1e6feb95 5336
698dcdb6 5337 echo $ac_n "checking for --enable-prologio""... $ac_c" 1>&6
009fead0 5338echo "configure:5339: checking for --enable-prologio" >&5
10f2d63a
VZ
5339 no_cache=0
5340 # Check whether --enable-prologio or --disable-prologio was given.
5341if test "${enable_prologio+set}" = set; then
5342 enableval="$enable_prologio"
698dcdb6 5343
10f2d63a
VZ
5344 if test "$enableval" = yes; then
5345 ac_cv_use_prologio='wxUSE_PROLOGIO=yes'
5346 else
5347 ac_cv_use_prologio='wxUSE_PROLOGIO=no'
5348 fi
698dcdb6 5349
10f2d63a 5350else
698dcdb6 5351
10f2d63a
VZ
5352 LINE=`grep "wxUSE_PROLOGIO" ${wx_arg_cache_file}`
5353 if test "x$LINE" != x ; then
5354 eval "DEFAULT_$LINE"
5355 else
5356 no_cache=1
5357 fi
5358
5359 ac_cv_use_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO
698dcdb6
VZ
5360
5361fi
10f2d63a
VZ
5362
5363
5364 eval "$ac_cv_use_prologio"
5365 if test "$no_cache" != 1; then
5366 echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp
5367 fi
5368
5369 if test "$wxUSE_PROLOGIO" = yes; then
698dcdb6 5370 echo "$ac_t""yes" 1>&6
10f2d63a 5371 else
698dcdb6 5372 echo "$ac_t""no" 1>&6
10f2d63a 5373 fi
698dcdb6 5374
10f2d63a 5375
698dcdb6 5376 echo $ac_n "checking for --enable-resources""... $ac_c" 1>&6
009fead0 5377echo "configure:5378: checking for --enable-resources" >&5
10f2d63a
VZ
5378 no_cache=0
5379 # Check whether --enable-resources or --disable-resources was given.
5380if test "${enable_resources+set}" = set; then
5381 enableval="$enable_resources"
698dcdb6 5382
10f2d63a
VZ
5383 if test "$enableval" = yes; then
5384 ac_cv_use_resources='wxUSE_RESOURCES=yes'
5385 else
5386 ac_cv_use_resources='wxUSE_RESOURCES=no'
5387 fi
698dcdb6 5388
10f2d63a 5389else
698dcdb6 5390
10f2d63a
VZ
5391 LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}`
5392 if test "x$LINE" != x ; then
5393 eval "DEFAULT_$LINE"
5394 else
5395 no_cache=1
5396 fi
5397
5398 ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES
698dcdb6
VZ
5399
5400fi
10f2d63a
VZ
5401
5402
5403 eval "$ac_cv_use_resources"
5404 if test "$no_cache" != 1; then
5405 echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp
5406 fi
5407
5408 if test "$wxUSE_RESOURCES" = yes; then
698dcdb6 5409 echo "$ac_t""yes" 1>&6
10f2d63a 5410 else
698dcdb6 5411 echo "$ac_t""no" 1>&6
10f2d63a 5412 fi
698dcdb6 5413
10f2d63a 5414
698dcdb6
VZ
5415
5416 echo $ac_n "checking for --enable-xresources""... $ac_c" 1>&6
009fead0 5417echo "configure:5418: checking for --enable-xresources" >&5
10f2d63a
VZ
5418 no_cache=0
5419 # Check whether --enable-xresources or --disable-xresources was given.
5420if test "${enable_xresources+set}" = set; then
5421 enableval="$enable_xresources"
698dcdb6 5422
10f2d63a
VZ
5423 if test "$enableval" = yes; then
5424 ac_cv_use_xresources='wxUSE_X_RESOURCES=yes'
5425 else
5426 ac_cv_use_xresources='wxUSE_X_RESOURCES=no'
5427 fi
698dcdb6 5428
10f2d63a 5429else
698dcdb6 5430
10f2d63a
VZ
5431 LINE=`grep "wxUSE_X_RESOURCES" ${wx_arg_cache_file}`
5432 if test "x$LINE" != x ; then
5433 eval "DEFAULT_$LINE"
5434 else
5435 no_cache=1
5436 fi
5437
5438 ac_cv_use_xresources='wxUSE_X_RESOURCES='$DEFAULT_wxUSE_X_RESOURCES
698dcdb6
VZ
5439
5440fi
10f2d63a
VZ
5441
5442
5443 eval "$ac_cv_use_xresources"
5444 if test "$no_cache" != 1; then
5445 echo $ac_cv_use_xresources >> ${wx_arg_cache_file}.tmp
5446 fi
5447
5448 if test "$wxUSE_X_RESOURCES" = yes; then
698dcdb6 5449 echo "$ac_t""yes" 1>&6
10f2d63a 5450 else
698dcdb6 5451 echo "$ac_t""no" 1>&6
10f2d63a 5452 fi
698dcdb6
VZ
5453
5454
10f2d63a 5455
698dcdb6
VZ
5456
5457 echo $ac_n "checking for --enable-clipboard""... $ac_c" 1>&6
009fead0 5458echo "configure:5459: checking for --enable-clipboard" >&5
10f2d63a
VZ
5459 no_cache=0
5460 # Check whether --enable-clipboard or --disable-clipboard was given.
5461if test "${enable_clipboard+set}" = set; then
5462 enableval="$enable_clipboard"
698dcdb6 5463
10f2d63a
VZ
5464 if test "$enableval" = yes; then
5465 ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes'
5466 else
5467 ac_cv_use_clipboard='wxUSE_CLIPBOARD=no'
5468 fi
698dcdb6 5469
10f2d63a 5470else
698dcdb6 5471
10f2d63a
VZ
5472 LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}`
5473 if test "x$LINE" != x ; then
5474 eval "DEFAULT_$LINE"
5475 else
5476 no_cache=1
5477 fi
5478
5479 ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD
698dcdb6
VZ
5480
5481fi
10f2d63a
VZ
5482
5483
5484 eval "$ac_cv_use_clipboard"
5485 if test "$no_cache" != 1; then
5486 echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp
5487 fi
5488
5489 if test "$wxUSE_CLIPBOARD" = yes; then
698dcdb6 5490 echo "$ac_t""yes" 1>&6
10f2d63a 5491 else
698dcdb6 5492 echo "$ac_t""no" 1>&6
10f2d63a 5493 fi
698dcdb6 5494
10f2d63a 5495
698dcdb6 5496 echo $ac_n "checking for --enable-dnd""... $ac_c" 1>&6
009fead0 5497echo "configure:5498: checking for --enable-dnd" >&5
10f2d63a
VZ
5498 no_cache=0
5499 # Check whether --enable-dnd or --disable-dnd was given.
5500if test "${enable_dnd+set}" = set; then
5501 enableval="$enable_dnd"
698dcdb6 5502
10f2d63a
VZ
5503 if test "$enableval" = yes; then
5504 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes'
5505 else
5506 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no'
5507 fi
698dcdb6 5508
10f2d63a 5509else
698dcdb6 5510
10f2d63a
VZ
5511 LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}`
5512 if test "x$LINE" != x ; then
5513 eval "DEFAULT_$LINE"
5514 else
5515 no_cache=1
5516 fi
5517
5518 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP
698dcdb6
VZ
5519
5520fi
10f2d63a
VZ
5521
5522
5523 eval "$ac_cv_use_dnd"
5524 if test "$no_cache" != 1; then
5525 echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp
5526 fi
5527
5528 if test "$wxUSE_DRAG_AND_DROP" = yes; then
698dcdb6 5529 echo "$ac_t""yes" 1>&6
10f2d63a 5530 else
698dcdb6 5531 echo "$ac_t""no" 1>&6
10f2d63a 5532 fi
698dcdb6 5533
10f2d63a 5534
698dcdb6 5535 echo $ac_n "checking for --enable-metafile""... $ac_c" 1>&6
009fead0 5536echo "configure:5537: checking for --enable-metafile" >&5
b64f0a5f
RL
5537 no_cache=0
5538 # Check whether --enable-metafile or --disable-metafile was given.
5539if test "${enable_metafile+set}" = set; then
5540 enableval="$enable_metafile"
698dcdb6 5541
b64f0a5f
RL
5542 if test "$enableval" = yes; then
5543 ac_cv_use_metafile='wxUSE_METAFILE=yes'
5544 else
5545 ac_cv_use_metafile='wxUSE_METAFILE=no'
5546 fi
698dcdb6 5547
b64f0a5f 5548else
698dcdb6 5549
b64f0a5f
RL
5550 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
5551 if test "x$LINE" != x ; then
5552 eval "DEFAULT_$LINE"
5553 else
5554 no_cache=1
5555 fi
5556
5557 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
698dcdb6
VZ
5558
5559fi
b64f0a5f
RL
5560
5561
5562 eval "$ac_cv_use_metafile"
5563 if test "$no_cache" != 1; then
5564 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
5565 fi
5566
5567 if test "$wxUSE_METAFILE" = yes; then
698dcdb6 5568 echo "$ac_t""yes" 1>&6
b64f0a5f 5569 else
698dcdb6 5570 echo "$ac_t""no" 1>&6
b64f0a5f 5571 fi
698dcdb6
VZ
5572
5573
10f2d63a 5574
24176f2c 5575 echo $ac_n "checking for --enable-treelayout""... $ac_c" 1>&6
009fead0 5576echo "configure:5577: checking for --enable-treelayout" >&5
10f2d63a 5577 no_cache=0
24176f2c
GD
5578 # Check whether --enable-treelayout or --disable-treelayout was given.
5579if test "${enable_treelayout+set}" = set; then
5580 enableval="$enable_treelayout"
698dcdb6 5581
10f2d63a 5582 if test "$enableval" = yes; then
24176f2c 5583 ac_cv_use_treelayout='wxUSE_TREELAYOUT=yes'
10f2d63a 5584 else
24176f2c 5585 ac_cv_use_treelayout='wxUSE_TREELAYOUT=no'
10f2d63a 5586 fi
698dcdb6 5587
10f2d63a 5588else
698dcdb6 5589
24176f2c 5590 LINE=`grep "wxUSE_TREELAYOUT" ${wx_arg_cache_file}`
10f2d63a
VZ
5591 if test "x$LINE" != x ; then
5592 eval "DEFAULT_$LINE"
5593 else
5594 no_cache=1
5595 fi
5596
24176f2c 5597 ac_cv_use_treelayout='wxUSE_TREELAYOUT='$DEFAULT_wxUSE_TREELAYOUT
698dcdb6
VZ
5598
5599fi
10f2d63a
VZ
5600
5601
24176f2c 5602 eval "$ac_cv_use_treelayout"
10f2d63a 5603 if test "$no_cache" != 1; then
24176f2c 5604 echo $ac_cv_use_treelayout >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
5605 fi
5606
24176f2c 5607 if test "$wxUSE_TREELAYOUT" = yes; then
698dcdb6 5608 echo "$ac_t""yes" 1>&6
10f2d63a 5609 else
698dcdb6 5610 echo "$ac_t""no" 1>&6
10f2d63a 5611 fi
698dcdb6 5612
10f2d63a 5613
698dcdb6
VZ
5614
5615
5616 echo $ac_n "checking for --enable-controls""... $ac_c" 1>&6
009fead0 5617echo "configure:5618: checking for --enable-controls" >&5
10f2d63a
VZ
5618 no_cache=0
5619 # Check whether --enable-controls or --disable-controls was given.
5620if test "${enable_controls+set}" = set; then
5621 enableval="$enable_controls"
698dcdb6 5622
10f2d63a
VZ
5623 if test "$enableval" = yes; then
5624 ac_cv_use_controls='wxUSE_CONTROLS=yes'
5625 else
5626 ac_cv_use_controls='wxUSE_CONTROLS=no'
5627 fi
698dcdb6 5628
10f2d63a 5629else
698dcdb6 5630
10f2d63a
VZ
5631 LINE=`grep "wxUSE_CONTROLS" ${wx_arg_cache_file}`
5632 if test "x$LINE" != x ; then
5633 eval "DEFAULT_$LINE"
5634 else
5635 no_cache=1
5636 fi
5637
5638 ac_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS
698dcdb6
VZ
5639
5640fi
10f2d63a
VZ
5641
5642
5643 eval "$ac_cv_use_controls"
5644 if test "$no_cache" != 1; then
5645 echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp
5646 fi
5647
5648 if test "$wxUSE_CONTROLS" = yes; then
698dcdb6 5649 echo "$ac_t""yes" 1>&6
10f2d63a 5650 else
698dcdb6 5651 echo "$ac_t""no" 1>&6
10f2d63a 5652 fi
698dcdb6 5653
10f2d63a
VZ
5654
5655if test "$wxUSE_CONTROLS" = "yes"; then
5656 DEFAULT_wxUSE_ACCEL=yes
1e6feb95
VZ
5657 DEFAULT_wxUSE_BMPBUTTON=yes
5658 DEFAULT_wxUSE_BUTTON=yes
5659 DEFAULT_wxUSE_CALCTRL=no
10f2d63a
VZ
5660 DEFAULT_wxUSE_CARET=yes
5661 DEFAULT_wxUSE_COMBOBOX=yes
10f2d63a
VZ
5662 DEFAULT_wxUSE_CHECKBOX=yes
5663 DEFAULT_wxUSE_CHECKLISTBOX=yes
5664 DEFAULT_wxUSE_CHOICE=yes
5665 DEFAULT_wxUSE_GAUGE=yes
5666 DEFAULT_wxUSE_GRID=yes
cc977e5f 5667 DEFAULT_wxUSE_NEW_GRID=yes
10f2d63a
VZ
5668 DEFAULT_wxUSE_IMAGLIST=yes
5669 DEFAULT_wxUSE_LISTBOX=yes
5670 DEFAULT_wxUSE_LISTCTRL=yes
5671 DEFAULT_wxUSE_NOTEBOOK=yes
24176f2c 5672 DEFAULT_wxUSE_PROPSHEET=yes
10f2d63a
VZ
5673 DEFAULT_wxUSE_RADIOBOX=yes
5674 DEFAULT_wxUSE_RADIOBTN=yes
5675 DEFAULT_wxUSE_SASH=yes
5676 DEFAULT_wxUSE_SCROLLBAR=yes
5677 DEFAULT_wxUSE_SLIDER=yes
5678 DEFAULT_wxUSE_SPINBTN=yes
56cfaa52 5679 DEFAULT_wxUSE_SPINCTRL=yes
10f2d63a
VZ
5680 DEFAULT_wxUSE_SPLITTER=yes
5681 DEFAULT_wxUSE_STATBMP=yes
5682 DEFAULT_wxUSE_STATBOX=yes
5683 DEFAULT_wxUSE_STATLINE=yes
5684 DEFAULT_wxUSE_STATUSBAR=yes
5685 DEFAULT_wxUSE_TAB_DIALOG=yes
1db8dc4a 5686 DEFAULT_wxUSE_TOGGLEBTN=yes
10f2d63a 5687 DEFAULT_wxUSE_TOOLBAR=yes
360d6699
VZ
5688 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
5689 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
10f2d63a
VZ
5690 DEFAULT_wxUSE_TOOLTIPS=yes
5691 DEFAULT_wxUSE_TREECTRL=yes
9f41d601 5692 DEFAULT_wxUSE_POPUPWIN=yes
9926e4a4 5693 DEFAULT_wxUSE_TIPWINDOW=yes
10f2d63a
VZ
5694elif test "$wxUSE_CONTROLS" = "no"; then
5695 DEFAULT_wxUSE_ACCEL=no
1e6feb95
VZ
5696 DEFAULT_wxUSE_BMPBUTTON=no
5697 DEFAULT_wxUSE_BUTTON=no
5698 DEFAULT_wxUSE_CALCTRL=no
10f2d63a
VZ
5699 DEFAULT_wxUSE_CARET=no
5700 DEFAULT_wxUSE_COMBOBOX=no
10f2d63a
VZ
5701 DEFAULT_wxUSE_CHECKBOX=no
5702 DEFAULT_wxUSE_CHECKLISTBOX=no
5703 DEFAULT_wxUSE_CHOICE=no
5704 DEFAULT_wxUSE_GAUGE=no
5705 DEFAULT_wxUSE_GRID=no
5706 DEFAULT_wxUSE_NEW_GRID=no
5707 DEFAULT_wxUSE_IMAGLIST=no
5708 DEFAULT_wxUSE_LISTBOX=no
5709 DEFAULT_wxUSE_LISTCTRL=no
5710 DEFAULT_wxUSE_NOTEBOOK=no
24176f2c 5711 DEFAULT_wxUSE_PROPSHEET=no
10f2d63a
VZ
5712 DEFAULT_wxUSE_RADIOBOX=no
5713 DEFAULT_wxUSE_RADIOBTN=no
5714 DEFAULT_wxUSE_SASH=no
5715 DEFAULT_wxUSE_SCROLLBAR=no
5716 DEFAULT_wxUSE_SLIDER=no
5717 DEFAULT_wxUSE_SPINBTN=no
56cfaa52 5718 DEFAULT_wxUSE_SPINCTRL=no
10f2d63a
VZ
5719 DEFAULT_wxUSE_SPLITTER=no
5720 DEFAULT_wxUSE_STATBMP=no
5721 DEFAULT_wxUSE_STATBOX=no
5722 DEFAULT_wxUSE_STATLINE=no
5723 DEFAULT_wxUSE_STATUSBAR=no
5724 DEFAULT_wxUSE_TAB_DIALOG=no
1db8dc4a 5725 DEFAULT_wxUSE_TOGGLEBTN=no
10f2d63a 5726 DEFAULT_wxUSE_TOOLBAR=no
360d6699
VZ
5727 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
5728 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
10f2d63a
VZ
5729 DEFAULT_wxUSE_TOOLTIPS=no
5730 DEFAULT_wxUSE_TREECTRL=no
9f41d601 5731 DEFAULT_wxUSE_POPUPWIN=no
9926e4a4 5732 DEFAULT_wxUSE_TIPWINDOW=no
10f2d63a
VZ
5733fi
5734
698dcdb6
VZ
5735
5736 echo $ac_n "checking for --enable-accel""... $ac_c" 1>&6
009fead0 5737echo "configure:5738: checking for --enable-accel" >&5
10f2d63a
VZ
5738 no_cache=0
5739 # Check whether --enable-accel or --disable-accel was given.
5740if test "${enable_accel+set}" = set; then
5741 enableval="$enable_accel"
698dcdb6 5742
10f2d63a
VZ
5743 if test "$enableval" = yes; then
5744 ac_cv_use_accel='wxUSE_ACCEL=yes'
5745 else
5746 ac_cv_use_accel='wxUSE_ACCEL=no'
5747 fi
698dcdb6 5748
10f2d63a 5749else
698dcdb6 5750
10f2d63a
VZ
5751 LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}`
5752 if test "x$LINE" != x ; then
5753 eval "DEFAULT_$LINE"
5754 else
5755 no_cache=1
5756 fi
5757
5758 ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL
698dcdb6
VZ
5759
5760fi
10f2d63a
VZ
5761
5762
5763 eval "$ac_cv_use_accel"
5764 if test "$no_cache" != 1; then
5765 echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp
5766 fi
5767
5768 if test "$wxUSE_ACCEL" = yes; then
698dcdb6 5769 echo "$ac_t""yes" 1>&6
10f2d63a 5770 else
698dcdb6 5771 echo "$ac_t""no" 1>&6
10f2d63a 5772 fi
698dcdb6 5773
10f2d63a 5774
1e6feb95 5775 echo $ac_n "checking for --enable-button""... $ac_c" 1>&6
009fead0 5776echo "configure:5777: checking for --enable-button" >&5
10f2d63a 5777 no_cache=0
1e6feb95
VZ
5778 # Check whether --enable-button or --disable-button was given.
5779if test "${enable_button+set}" = set; then
5780 enableval="$enable_button"
698dcdb6 5781
10f2d63a 5782 if test "$enableval" = yes; then
1e6feb95 5783 ac_cv_use_button='wxUSE_BUTTON=yes'
10f2d63a 5784 else
1e6feb95 5785 ac_cv_use_button='wxUSE_BUTTON=no'
10f2d63a 5786 fi
698dcdb6 5787
10f2d63a 5788else
698dcdb6 5789
1e6feb95 5790 LINE=`grep "wxUSE_BUTTON" ${wx_arg_cache_file}`
10f2d63a
VZ
5791 if test "x$LINE" != x ; then
5792 eval "DEFAULT_$LINE"
5793 else
5794 no_cache=1
5795 fi
5796
1e6feb95 5797 ac_cv_use_button='wxUSE_BUTTON='$DEFAULT_wxUSE_BUTTON
698dcdb6
VZ
5798
5799fi
10f2d63a
VZ
5800
5801
1e6feb95 5802 eval "$ac_cv_use_button"
10f2d63a 5803 if test "$no_cache" != 1; then
1e6feb95 5804 echo $ac_cv_use_button >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
5805 fi
5806
1e6feb95 5807 if test "$wxUSE_BUTTON" = yes; then
698dcdb6 5808 echo "$ac_t""yes" 1>&6
10f2d63a 5809 else
698dcdb6 5810 echo "$ac_t""no" 1>&6
10f2d63a 5811 fi
698dcdb6 5812
10f2d63a 5813
698dcdb6 5814 echo $ac_n "checking for --enable-bmpbutton""... $ac_c" 1>&6
009fead0 5815echo "configure:5816: checking for --enable-bmpbutton" >&5
10f2d63a
VZ
5816 no_cache=0
5817 # Check whether --enable-bmpbutton or --disable-bmpbutton was given.
5818if test "${enable_bmpbutton+set}" = set; then
5819 enableval="$enable_bmpbutton"
698dcdb6 5820
10f2d63a
VZ
5821 if test "$enableval" = yes; then
5822 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes'
5823 else
5824 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no'
5825 fi
698dcdb6 5826
10f2d63a 5827else
698dcdb6 5828
10f2d63a
VZ
5829 LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}`
5830 if test "x$LINE" != x ; then
5831 eval "DEFAULT_$LINE"
5832 else
5833 no_cache=1
5834 fi
5835
5836 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON
698dcdb6
VZ
5837
5838fi
10f2d63a
VZ
5839
5840
5841 eval "$ac_cv_use_bmpbutton"
5842 if test "$no_cache" != 1; then
5843 echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp
5844 fi
5845
5846 if test "$wxUSE_BMPBUTTON" = yes; then
698dcdb6 5847 echo "$ac_t""yes" 1>&6
10f2d63a 5848 else
698dcdb6 5849 echo "$ac_t""no" 1>&6
10f2d63a 5850 fi
698dcdb6 5851
10f2d63a 5852
1e6feb95 5853 echo $ac_n "checking for --enable-calendar""... $ac_c" 1>&6
009fead0 5854echo "configure:5855: checking for --enable-calendar" >&5
1e6feb95
VZ
5855 no_cache=0
5856 # Check whether --enable-calendar or --disable-calendar was given.
5857if test "${enable_calendar+set}" = set; then
5858 enableval="$enable_calendar"
5859
5860 if test "$enableval" = yes; then
5861 ac_cv_use_calendar='wxUSE_CALCTRL=yes'
5862 else
5863 ac_cv_use_calendar='wxUSE_CALCTRL=no'
5864 fi
5865
5866else
5867
5868 LINE=`grep "wxUSE_CALCTRL" ${wx_arg_cache_file}`
5869 if test "x$LINE" != x ; then
5870 eval "DEFAULT_$LINE"
5871 else
5872 no_cache=1
5873 fi
5874
5875 ac_cv_use_calendar='wxUSE_CALCTRL='$DEFAULT_wxUSE_CALCTRL
5876
5877fi
5878
5879
5880 eval "$ac_cv_use_calendar"
5881 if test "$no_cache" != 1; then
5882 echo $ac_cv_use_calendar >> ${wx_arg_cache_file}.tmp
5883 fi
5884
5885 if test "$wxUSE_CALCTRL" = yes; then
5886 echo "$ac_t""yes" 1>&6
5887 else
5888 echo "$ac_t""no" 1>&6
5889 fi
5890
5891
5892 echo $ac_n "checking for --enable-caret""... $ac_c" 1>&6
009fead0 5893echo "configure:5894: checking for --enable-caret" >&5
1e6feb95
VZ
5894 no_cache=0
5895 # Check whether --enable-caret or --disable-caret was given.
5896if test "${enable_caret+set}" = set; then
5897 enableval="$enable_caret"
5898
5899 if test "$enableval" = yes; then
5900 ac_cv_use_caret='wxUSE_CARET=yes'
5901 else
5902 ac_cv_use_caret='wxUSE_CARET=no'
5903 fi
5904
5905else
5906
5907 LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}`
5908 if test "x$LINE" != x ; then
5909 eval "DEFAULT_$LINE"
5910 else
5911 no_cache=1
5912 fi
5913
5914 ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET
5915
5916fi
5917
5918
5919 eval "$ac_cv_use_caret"
5920 if test "$no_cache" != 1; then
5921 echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp
5922 fi
5923
5924 if test "$wxUSE_CARET" = yes; then
5925 echo "$ac_t""yes" 1>&6
5926 else
5927 echo "$ac_t""no" 1>&6
5928 fi
5929
5930
698dcdb6 5931 echo $ac_n "checking for --enable-checkbox""... $ac_c" 1>&6
009fead0 5932echo "configure:5933: checking for --enable-checkbox" >&5
10f2d63a
VZ
5933 no_cache=0
5934 # Check whether --enable-checkbox or --disable-checkbox was given.
5935if test "${enable_checkbox+set}" = set; then
5936 enableval="$enable_checkbox"
698dcdb6 5937
10f2d63a
VZ
5938 if test "$enableval" = yes; then
5939 ac_cv_use_checkbox='wxUSE_CHECKBOX=yes'
5940 else
5941 ac_cv_use_checkbox='wxUSE_CHECKBOX=no'
5942 fi
698dcdb6 5943
10f2d63a 5944else
698dcdb6 5945
10f2d63a
VZ
5946 LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}`
5947 if test "x$LINE" != x ; then
5948 eval "DEFAULT_$LINE"
5949 else
5950 no_cache=1
5951 fi
5952
5953 ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX
698dcdb6
VZ
5954
5955fi
10f2d63a
VZ
5956
5957
5958 eval "$ac_cv_use_checkbox"
5959 if test "$no_cache" != 1; then
5960 echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp
5961 fi
5962
5963 if test "$wxUSE_CHECKBOX" = yes; then
698dcdb6 5964 echo "$ac_t""yes" 1>&6
10f2d63a 5965 else
698dcdb6 5966 echo "$ac_t""no" 1>&6
10f2d63a 5967 fi
698dcdb6 5968
10f2d63a 5969
698dcdb6 5970 echo $ac_n "checking for --enable-checklst""... $ac_c" 1>&6
009fead0 5971echo "configure:5972: checking for --enable-checklst" >&5
10f2d63a
VZ
5972 no_cache=0
5973 # Check whether --enable-checklst or --disable-checklst was given.
5974if test "${enable_checklst+set}" = set; then
5975 enableval="$enable_checklst"
698dcdb6 5976
10f2d63a
VZ
5977 if test "$enableval" = yes; then
5978 ac_cv_use_checklst='wxUSE_CHECKLST=yes'
5979 else
5980 ac_cv_use_checklst='wxUSE_CHECKLST=no'
5981 fi
698dcdb6 5982
10f2d63a 5983else
698dcdb6 5984
10f2d63a
VZ
5985 LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}`
5986 if test "x$LINE" != x ; then
5987 eval "DEFAULT_$LINE"
5988 else
5989 no_cache=1
5990 fi
5991
5992 ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST
698dcdb6
VZ
5993
5994fi
10f2d63a
VZ
5995
5996
5997 eval "$ac_cv_use_checklst"
5998 if test "$no_cache" != 1; then
5999 echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp
6000 fi
6001
6002 if test "$wxUSE_CHECKLST" = yes; then
698dcdb6 6003 echo "$ac_t""yes" 1>&6
10f2d63a 6004 else
698dcdb6 6005 echo "$ac_t""no" 1>&6
10f2d63a 6006 fi
698dcdb6 6007
10f2d63a 6008
698dcdb6 6009 echo $ac_n "checking for --enable-choice""... $ac_c" 1>&6
009fead0 6010echo "configure:6011: checking for --enable-choice" >&5
10f2d63a
VZ
6011 no_cache=0
6012 # Check whether --enable-choice or --disable-choice was given.
6013if test "${enable_choice+set}" = set; then
6014 enableval="$enable_choice"
698dcdb6 6015
10f2d63a
VZ
6016 if test "$enableval" = yes; then
6017 ac_cv_use_choice='wxUSE_CHOICE=yes'
6018 else
6019 ac_cv_use_choice='wxUSE_CHOICE=no'
6020 fi
698dcdb6 6021
10f2d63a 6022else
698dcdb6 6023
10f2d63a
VZ
6024 LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}`
6025 if test "x$LINE" != x ; then
6026 eval "DEFAULT_$LINE"
6027 else
6028 no_cache=1
6029 fi
6030
6031 ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE
698dcdb6
VZ
6032
6033fi
10f2d63a
VZ
6034
6035
6036 eval "$ac_cv_use_choice"
6037 if test "$no_cache" != 1; then
6038 echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp
6039 fi
6040
6041 if test "$wxUSE_CHOICE" = yes; then
698dcdb6 6042 echo "$ac_t""yes" 1>&6
10f2d63a 6043 else
698dcdb6 6044 echo "$ac_t""no" 1>&6
10f2d63a 6045 fi
698dcdb6 6046
10f2d63a 6047
698dcdb6 6048 echo $ac_n "checking for --enable-combobox""... $ac_c" 1>&6
009fead0 6049echo "configure:6050: checking for --enable-combobox" >&5
10f2d63a
VZ
6050 no_cache=0
6051 # Check whether --enable-combobox or --disable-combobox was given.
6052if test "${enable_combobox+set}" = set; then
6053 enableval="$enable_combobox"
698dcdb6 6054
10f2d63a
VZ
6055 if test "$enableval" = yes; then
6056 ac_cv_use_combobox='wxUSE_COMBOBOX=yes'
6057 else
6058 ac_cv_use_combobox='wxUSE_COMBOBOX=no'
6059 fi
698dcdb6 6060
10f2d63a 6061else
698dcdb6 6062
10f2d63a
VZ
6063 LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}`
6064 if test "x$LINE" != x ; then
6065 eval "DEFAULT_$LINE"
6066 else
6067 no_cache=1
6068 fi
6069
6070 ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX
698dcdb6
VZ
6071
6072fi
10f2d63a
VZ
6073
6074
6075 eval "$ac_cv_use_combobox"
6076 if test "$no_cache" != 1; then
6077 echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp
6078 fi
6079
6080 if test "$wxUSE_COMBOBOX" = yes; then
698dcdb6 6081 echo "$ac_t""yes" 1>&6
10f2d63a 6082 else
698dcdb6 6083 echo "$ac_t""no" 1>&6
10f2d63a 6084 fi
698dcdb6 6085
10f2d63a 6086
698dcdb6 6087 echo $ac_n "checking for --enable-gauge""... $ac_c" 1>&6
009fead0 6088echo "configure:6089: checking for --enable-gauge" >&5
10f2d63a
VZ
6089 no_cache=0
6090 # Check whether --enable-gauge or --disable-gauge was given.
6091if test "${enable_gauge+set}" = set; then
6092 enableval="$enable_gauge"
698dcdb6 6093
10f2d63a
VZ
6094 if test "$enableval" = yes; then
6095 ac_cv_use_gauge='wxUSE_GAUGE=yes'
6096 else
6097 ac_cv_use_gauge='wxUSE_GAUGE=no'
6098 fi
698dcdb6 6099
10f2d63a 6100else
698dcdb6 6101
10f2d63a
VZ
6102 LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}`
6103 if test "x$LINE" != x ; then
6104 eval "DEFAULT_$LINE"
6105 else
6106 no_cache=1
6107 fi
6108
6109 ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE
698dcdb6
VZ
6110
6111fi
10f2d63a
VZ
6112
6113
6114 eval "$ac_cv_use_gauge"
6115 if test "$no_cache" != 1; then
6116 echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp
6117 fi
6118
6119 if test "$wxUSE_GAUGE" = yes; then
698dcdb6 6120 echo "$ac_t""yes" 1>&6
10f2d63a 6121 else
698dcdb6 6122 echo "$ac_t""no" 1>&6
10f2d63a 6123 fi
698dcdb6 6124
10f2d63a 6125
698dcdb6 6126 echo $ac_n "checking for --enable-grid""... $ac_c" 1>&6
009fead0 6127echo "configure:6128: checking for --enable-grid" >&5
10f2d63a
VZ
6128 no_cache=0
6129 # Check whether --enable-grid or --disable-grid was given.
6130if test "${enable_grid+set}" = set; then
6131 enableval="$enable_grid"
698dcdb6 6132
10f2d63a
VZ
6133 if test "$enableval" = yes; then
6134 ac_cv_use_grid='wxUSE_GRID=yes'
6135 else
6136 ac_cv_use_grid='wxUSE_GRID=no'
6137 fi
698dcdb6 6138
10f2d63a 6139else
698dcdb6 6140
10f2d63a
VZ
6141 LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}`
6142 if test "x$LINE" != x ; then
6143 eval "DEFAULT_$LINE"
6144 else
6145 no_cache=1
6146 fi
6147
6148 ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID
698dcdb6
VZ
6149
6150fi
10f2d63a
VZ
6151
6152
6153 eval "$ac_cv_use_grid"
6154 if test "$no_cache" != 1; then
6155 echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp
6156 fi
6157
6158 if test "$wxUSE_GRID" = yes; then
698dcdb6 6159 echo "$ac_t""yes" 1>&6
10f2d63a 6160 else
698dcdb6 6161 echo "$ac_t""no" 1>&6
10f2d63a 6162 fi
698dcdb6 6163
10f2d63a 6164
698dcdb6 6165 echo $ac_n "checking for --enable-newgrid""... $ac_c" 1>&6
009fead0 6166echo "configure:6167: checking for --enable-newgrid" >&5
10f2d63a
VZ
6167 no_cache=0
6168 # Check whether --enable-newgrid or --disable-newgrid was given.
6169if test "${enable_newgrid+set}" = set; then
6170 enableval="$enable_newgrid"
698dcdb6 6171
10f2d63a
VZ
6172 if test "$enableval" = yes; then
6173 ac_cv_use_newgrid='wxUSE_NEW_GRID=yes'
6174 else
6175 ac_cv_use_newgrid='wxUSE_NEW_GRID=no'
6176 fi
698dcdb6 6177
10f2d63a 6178else
698dcdb6 6179
10f2d63a
VZ
6180 LINE=`grep "wxUSE_NEW_GRID" ${wx_arg_cache_file}`
6181 if test "x$LINE" != x ; then
6182 eval "DEFAULT_$LINE"
6183 else
6184 no_cache=1
6185 fi
6186
6187 ac_cv_use_newgrid='wxUSE_NEW_GRID='$DEFAULT_wxUSE_NEW_GRID
698dcdb6
VZ
6188
6189fi
10f2d63a
VZ
6190
6191
6192 eval "$ac_cv_use_newgrid"
6193 if test "$no_cache" != 1; then
6194 echo $ac_cv_use_newgrid >> ${wx_arg_cache_file}.tmp
6195 fi
6196
6197 if test "$wxUSE_NEW_GRID" = yes; then
698dcdb6 6198 echo "$ac_t""yes" 1>&6
10f2d63a 6199 else
698dcdb6 6200 echo "$ac_t""no" 1>&6
10f2d63a 6201 fi
698dcdb6 6202
10f2d63a 6203
698dcdb6 6204 echo $ac_n "checking for --enable-imaglist""... $ac_c" 1>&6
009fead0 6205echo "configure:6206: checking for --enable-imaglist" >&5
10f2d63a
VZ
6206 no_cache=0
6207 # Check whether --enable-imaglist or --disable-imaglist was given.
6208if test "${enable_imaglist+set}" = set; then
6209 enableval="$enable_imaglist"
698dcdb6 6210
10f2d63a
VZ
6211 if test "$enableval" = yes; then
6212 ac_cv_use_imaglist='wxUSE_IMAGLIST=yes'
6213 else
6214 ac_cv_use_imaglist='wxUSE_IMAGLIST=no'
6215 fi
698dcdb6 6216
10f2d63a 6217else
698dcdb6 6218
10f2d63a
VZ
6219 LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}`
6220 if test "x$LINE" != x ; then
6221 eval "DEFAULT_$LINE"
6222 else
6223 no_cache=1
6224 fi
6225
6226 ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST
698dcdb6
VZ
6227
6228fi
10f2d63a
VZ
6229
6230
6231 eval "$ac_cv_use_imaglist"
6232 if test "$no_cache" != 1; then
6233 echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp
6234 fi
6235
6236 if test "$wxUSE_IMAGLIST" = yes; then
698dcdb6 6237 echo "$ac_t""yes" 1>&6
10f2d63a 6238 else
698dcdb6 6239 echo "$ac_t""no" 1>&6
10f2d63a 6240 fi
698dcdb6 6241
10f2d63a 6242
698dcdb6 6243 echo $ac_n "checking for --enable-listbox""... $ac_c" 1>&6
009fead0 6244echo "configure:6245: checking for --enable-listbox" >&5
10f2d63a
VZ
6245 no_cache=0
6246 # Check whether --enable-listbox or --disable-listbox was given.
6247if test "${enable_listbox+set}" = set; then
6248 enableval="$enable_listbox"
698dcdb6 6249
10f2d63a
VZ
6250 if test "$enableval" = yes; then
6251 ac_cv_use_listbox='wxUSE_LISTBOX=yes'
6252 else
6253 ac_cv_use_listbox='wxUSE_LISTBOX=no'
6254 fi
698dcdb6 6255
10f2d63a 6256else
698dcdb6 6257
10f2d63a
VZ
6258 LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}`
6259 if test "x$LINE" != x ; then
6260 eval "DEFAULT_$LINE"
6261 else
6262 no_cache=1
6263 fi
6264
6265 ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX
698dcdb6
VZ
6266
6267fi
10f2d63a
VZ
6268
6269
6270 eval "$ac_cv_use_listbox"
6271 if test "$no_cache" != 1; then
6272 echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp
6273 fi
6274
6275 if test "$wxUSE_LISTBOX" = yes; then
698dcdb6 6276 echo "$ac_t""yes" 1>&6
10f2d63a 6277 else
698dcdb6 6278 echo "$ac_t""no" 1>&6
10f2d63a 6279 fi
698dcdb6 6280
10f2d63a 6281
698dcdb6 6282 echo $ac_n "checking for --enable-listctrl""... $ac_c" 1>&6
009fead0 6283echo "configure:6284: checking for --enable-listctrl" >&5
10f2d63a
VZ
6284 no_cache=0
6285 # Check whether --enable-listctrl or --disable-listctrl was given.
6286if test "${enable_listctrl+set}" = set; then
6287 enableval="$enable_listctrl"
698dcdb6 6288
10f2d63a
VZ
6289 if test "$enableval" = yes; then
6290 ac_cv_use_listctrl='wxUSE_LISTCTRL=yes'
6291 else
6292 ac_cv_use_listctrl='wxUSE_LISTCTRL=no'
6293 fi
698dcdb6 6294
10f2d63a 6295else
698dcdb6 6296
10f2d63a
VZ
6297 LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}`
6298 if test "x$LINE" != x ; then
6299 eval "DEFAULT_$LINE"
6300 else
6301 no_cache=1
6302 fi
6303
6304 ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL
698dcdb6
VZ
6305
6306fi
10f2d63a
VZ
6307
6308
6309 eval "$ac_cv_use_listctrl"
6310 if test "$no_cache" != 1; then
6311 echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp
6312 fi
6313
6314 if test "$wxUSE_LISTCTRL" = yes; then
698dcdb6 6315 echo "$ac_t""yes" 1>&6
10f2d63a 6316 else
698dcdb6 6317 echo "$ac_t""no" 1>&6
10f2d63a 6318 fi
698dcdb6 6319
10f2d63a 6320
698dcdb6 6321 echo $ac_n "checking for --enable-notebook""... $ac_c" 1>&6
009fead0 6322echo "configure:6323: checking for --enable-notebook" >&5
10f2d63a
VZ
6323 no_cache=0
6324 # Check whether --enable-notebook or --disable-notebook was given.
6325if test "${enable_notebook+set}" = set; then
6326 enableval="$enable_notebook"
698dcdb6 6327
10f2d63a
VZ
6328 if test "$enableval" = yes; then
6329 ac_cv_use_notebook='wxUSE_NOTEBOOK=yes'
6330 else
6331 ac_cv_use_notebook='wxUSE_NOTEBOOK=no'
6332 fi
698dcdb6 6333
10f2d63a 6334else
698dcdb6 6335
10f2d63a
VZ
6336 LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}`
6337 if test "x$LINE" != x ; then
6338 eval "DEFAULT_$LINE"
6339 else
6340 no_cache=1
6341 fi
6342
6343 ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK
698dcdb6
VZ
6344
6345fi
10f2d63a
VZ
6346
6347
6348 eval "$ac_cv_use_notebook"
6349 if test "$no_cache" != 1; then
6350 echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp
6351 fi
6352
6353 if test "$wxUSE_NOTEBOOK" = yes; then
698dcdb6 6354 echo "$ac_t""yes" 1>&6
10f2d63a 6355 else
698dcdb6 6356 echo "$ac_t""no" 1>&6
10f2d63a 6357 fi
698dcdb6 6358
10f2d63a 6359
24176f2c 6360 echo $ac_n "checking for --enable-propsheet""... $ac_c" 1>&6
009fead0 6361echo "configure:6362: checking for --enable-propsheet" >&5
24176f2c
GD
6362 no_cache=0
6363 # Check whether --enable-propsheet or --disable-propsheet was given.
6364if test "${enable_propsheet+set}" = set; then
6365 enableval="$enable_propsheet"
6366
6367 if test "$enableval" = yes; then
6368 ac_cv_use_propsheet='wxUSE_PROPSHEET=yes'
6369 else
6370 ac_cv_use_propsheet='wxUSE_PROPSHEET=no'
6371 fi
6372
6373else
6374
6375 LINE=`grep "wxUSE_PROPSHEET" ${wx_arg_cache_file}`
6376 if test "x$LINE" != x ; then
6377 eval "DEFAULT_$LINE"
6378 else
6379 no_cache=1
6380 fi
6381
6382 ac_cv_use_propsheet='wxUSE_PROPSHEET='$DEFAULT_wxUSE_PROPSHEET
6383
6384fi
6385
6386
6387 eval "$ac_cv_use_propsheet"
6388 if test "$no_cache" != 1; then
6389 echo $ac_cv_use_propsheet >> ${wx_arg_cache_file}.tmp
6390 fi
6391
6392 if test "$wxUSE_PROPSHEET" = yes; then
6393 echo "$ac_t""yes" 1>&6
6394 else
6395 echo "$ac_t""no" 1>&6
6396 fi
6397
6398
698dcdb6 6399 echo $ac_n "checking for --enable-radiobox""... $ac_c" 1>&6
009fead0 6400echo "configure:6401: checking for --enable-radiobox" >&5
10f2d63a
VZ
6401 no_cache=0
6402 # Check whether --enable-radiobox or --disable-radiobox was given.
6403if test "${enable_radiobox+set}" = set; then
6404 enableval="$enable_radiobox"
698dcdb6 6405
10f2d63a
VZ
6406 if test "$enableval" = yes; then
6407 ac_cv_use_radiobox='wxUSE_RADIOBOX=yes'
6408 else
6409 ac_cv_use_radiobox='wxUSE_RADIOBOX=no'
6410 fi
698dcdb6 6411
10f2d63a 6412else
698dcdb6 6413
10f2d63a
VZ
6414 LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}`
6415 if test "x$LINE" != x ; then
6416 eval "DEFAULT_$LINE"
6417 else
6418 no_cache=1
6419 fi
6420
6421 ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX
698dcdb6
VZ
6422
6423fi
10f2d63a
VZ
6424
6425
6426 eval "$ac_cv_use_radiobox"
6427 if test "$no_cache" != 1; then
6428 echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp
6429 fi
6430
6431 if test "$wxUSE_RADIOBOX" = yes; then
698dcdb6 6432 echo "$ac_t""yes" 1>&6
10f2d63a 6433 else
698dcdb6 6434 echo "$ac_t""no" 1>&6
10f2d63a 6435 fi
698dcdb6 6436
10f2d63a 6437
698dcdb6 6438 echo $ac_n "checking for --enable-radiobtn""... $ac_c" 1>&6
009fead0 6439echo "configure:6440: checking for --enable-radiobtn" >&5
10f2d63a
VZ
6440 no_cache=0
6441 # Check whether --enable-radiobtn or --disable-radiobtn was given.
6442if test "${enable_radiobtn+set}" = set; then
6443 enableval="$enable_radiobtn"
698dcdb6 6444
10f2d63a
VZ
6445 if test "$enableval" = yes; then
6446 ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes'
6447 else
6448 ac_cv_use_radiobtn='wxUSE_RADIOBTN=no'
6449 fi
698dcdb6 6450
10f2d63a 6451else
698dcdb6 6452
10f2d63a
VZ
6453 LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}`
6454 if test "x$LINE" != x ; then
6455 eval "DEFAULT_$LINE"
6456 else
6457 no_cache=1
6458 fi
6459
6460 ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN
698dcdb6
VZ
6461
6462fi
10f2d63a
VZ
6463
6464
6465 eval "$ac_cv_use_radiobtn"
6466 if test "$no_cache" != 1; then
6467 echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp
6468 fi
6469
6470 if test "$wxUSE_RADIOBTN" = yes; then
698dcdb6 6471 echo "$ac_t""yes" 1>&6
10f2d63a 6472 else
698dcdb6 6473 echo "$ac_t""no" 1>&6
10f2d63a 6474 fi
698dcdb6 6475
10f2d63a 6476
698dcdb6 6477 echo $ac_n "checking for --enable-sash""... $ac_c" 1>&6
009fead0 6478echo "configure:6479: checking for --enable-sash" >&5
10f2d63a
VZ
6479 no_cache=0
6480 # Check whether --enable-sash or --disable-sash was given.
6481if test "${enable_sash+set}" = set; then
6482 enableval="$enable_sash"
698dcdb6 6483
10f2d63a
VZ
6484 if test "$enableval" = yes; then
6485 ac_cv_use_sash='wxUSE_SASH=yes'
6486 else
6487 ac_cv_use_sash='wxUSE_SASH=no'
6488 fi
698dcdb6 6489
10f2d63a 6490else
698dcdb6 6491
10f2d63a
VZ
6492 LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}`
6493 if test "x$LINE" != x ; then
6494 eval "DEFAULT_$LINE"
6495 else
6496 no_cache=1
6497 fi
6498
6499 ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH
698dcdb6
VZ
6500
6501fi
10f2d63a
VZ
6502
6503
6504 eval "$ac_cv_use_sash"
6505 if test "$no_cache" != 1; then
6506 echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp
6507 fi
6508
6509 if test "$wxUSE_SASH" = yes; then
698dcdb6 6510 echo "$ac_t""yes" 1>&6
10f2d63a 6511 else
698dcdb6 6512 echo "$ac_t""no" 1>&6
10f2d63a 6513 fi
698dcdb6 6514
10f2d63a 6515
698dcdb6 6516 echo $ac_n "checking for --enable-scrollbar""... $ac_c" 1>&6
009fead0 6517echo "configure:6518: checking for --enable-scrollbar" >&5
10f2d63a
VZ
6518 no_cache=0
6519 # Check whether --enable-scrollbar or --disable-scrollbar was given.
6520if test "${enable_scrollbar+set}" = set; then
6521 enableval="$enable_scrollbar"
698dcdb6 6522
10f2d63a
VZ
6523 if test "$enableval" = yes; then
6524 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes'
6525 else
6526 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no'
6527 fi
698dcdb6 6528
10f2d63a 6529else
698dcdb6 6530
10f2d63a
VZ
6531 LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}`
6532 if test "x$LINE" != x ; then
6533 eval "DEFAULT_$LINE"
6534 else
6535 no_cache=1
6536 fi
6537
6538 ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR
698dcdb6
VZ
6539
6540fi
10f2d63a
VZ
6541
6542
6543 eval "$ac_cv_use_scrollbar"
6544 if test "$no_cache" != 1; then
6545 echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp
6546 fi
6547
6548 if test "$wxUSE_SCROLLBAR" = yes; then
698dcdb6 6549 echo "$ac_t""yes" 1>&6
10f2d63a 6550 else
698dcdb6 6551 echo "$ac_t""no" 1>&6
10f2d63a 6552 fi
698dcdb6 6553
10f2d63a 6554
698dcdb6 6555 echo $ac_n "checking for --enable-slider""... $ac_c" 1>&6
009fead0 6556echo "configure:6557: checking for --enable-slider" >&5
10f2d63a
VZ
6557 no_cache=0
6558 # Check whether --enable-slider or --disable-slider was given.
6559if test "${enable_slider+set}" = set; then
6560 enableval="$enable_slider"
698dcdb6 6561
10f2d63a
VZ
6562 if test "$enableval" = yes; then
6563 ac_cv_use_slider='wxUSE_SLIDER=yes'
6564 else
6565 ac_cv_use_slider='wxUSE_SLIDER=no'
6566 fi
698dcdb6 6567
10f2d63a 6568else
698dcdb6 6569
10f2d63a
VZ
6570 LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}`
6571 if test "x$LINE" != x ; then
6572 eval "DEFAULT_$LINE"
6573 else
6574 no_cache=1
6575 fi
6576
6577 ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER
698dcdb6
VZ
6578
6579fi
10f2d63a
VZ
6580
6581
6582 eval "$ac_cv_use_slider"
6583 if test "$no_cache" != 1; then
6584 echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp
6585 fi
6586
6587 if test "$wxUSE_SLIDER" = yes; then
698dcdb6 6588 echo "$ac_t""yes" 1>&6
10f2d63a 6589 else
698dcdb6 6590 echo "$ac_t""no" 1>&6
10f2d63a 6591 fi
698dcdb6 6592
10f2d63a 6593
698dcdb6 6594 echo $ac_n "checking for --enable-spinbtn""... $ac_c" 1>&6
009fead0 6595echo "configure:6596: checking for --enable-spinbtn" >&5
10f2d63a
VZ
6596 no_cache=0
6597 # Check whether --enable-spinbtn or --disable-spinbtn was given.
6598if test "${enable_spinbtn+set}" = set; then
6599 enableval="$enable_spinbtn"
698dcdb6 6600
10f2d63a
VZ
6601 if test "$enableval" = yes; then
6602 ac_cv_use_spinbtn='wxUSE_SPINBTN=yes'
6603 else
6604 ac_cv_use_spinbtn='wxUSE_SPINBTN=no'
6605 fi
698dcdb6 6606
10f2d63a 6607else
698dcdb6 6608
10f2d63a
VZ
6609 LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}`
6610 if test "x$LINE" != x ; then
6611 eval "DEFAULT_$LINE"
6612 else
6613 no_cache=1
6614 fi
6615
6616 ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN
698dcdb6
VZ
6617
6618fi
10f2d63a
VZ
6619
6620
6621 eval "$ac_cv_use_spinbtn"
6622 if test "$no_cache" != 1; then
6623 echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp
6624 fi
6625
6626 if test "$wxUSE_SPINBTN" = yes; then
698dcdb6 6627 echo "$ac_t""yes" 1>&6
10f2d63a 6628 else
698dcdb6 6629 echo "$ac_t""no" 1>&6
10f2d63a 6630 fi
698dcdb6 6631
10f2d63a 6632
698dcdb6 6633 echo $ac_n "checking for --enable-spinctrl""... $ac_c" 1>&6
009fead0 6634echo "configure:6635: checking for --enable-spinctrl" >&5
56cfaa52
RR
6635 no_cache=0
6636 # Check whether --enable-spinctrl or --disable-spinctrl was given.
6637if test "${enable_spinctrl+set}" = set; then
6638 enableval="$enable_spinctrl"
698dcdb6 6639
56cfaa52
RR
6640 if test "$enableval" = yes; then
6641 ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes'
6642 else
6643 ac_cv_use_spinctrl='wxUSE_SPINCTRL=no'
6644 fi
698dcdb6 6645
56cfaa52 6646else
698dcdb6 6647
56cfaa52
RR
6648 LINE=`grep "wxUSE_SPINCTRL" ${wx_arg_cache_file}`
6649 if test "x$LINE" != x ; then
6650 eval "DEFAULT_$LINE"
6651 else
6652 no_cache=1
6653 fi
6654
6655 ac_cv_use_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL
698dcdb6
VZ
6656
6657fi
56cfaa52
RR
6658
6659
6660 eval "$ac_cv_use_spinctrl"
6661 if test "$no_cache" != 1; then
6662 echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp
6663 fi
6664
6665 if test "$wxUSE_SPINCTRL" = yes; then
698dcdb6 6666 echo "$ac_t""yes" 1>&6
56cfaa52 6667 else
698dcdb6 6668 echo "$ac_t""no" 1>&6
56cfaa52 6669 fi
698dcdb6 6670
56cfaa52 6671
698dcdb6 6672 echo $ac_n "checking for --enable-splitter""... $ac_c" 1>&6
009fead0 6673echo "configure:6674: checking for --enable-splitter" >&5
10f2d63a
VZ
6674 no_cache=0
6675 # Check whether --enable-splitter or --disable-splitter was given.
6676if test "${enable_splitter+set}" = set; then
6677 enableval="$enable_splitter"
698dcdb6 6678
10f2d63a
VZ
6679 if test "$enableval" = yes; then
6680 ac_cv_use_splitter='wxUSE_SPLITTER=yes'
6681 else
6682 ac_cv_use_splitter='wxUSE_SPLITTER=no'
6683 fi
698dcdb6 6684
10f2d63a 6685else
698dcdb6 6686
10f2d63a
VZ
6687 LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}`
6688 if test "x$LINE" != x ; then
6689 eval "DEFAULT_$LINE"
6690 else
6691 no_cache=1
6692 fi
6693
6694 ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER
698dcdb6
VZ
6695
6696fi
10f2d63a
VZ
6697
6698
6699 eval "$ac_cv_use_splitter"
6700 if test "$no_cache" != 1; then
6701 echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp
6702 fi
6703
6704 if test "$wxUSE_SPLITTER" = yes; then
698dcdb6 6705 echo "$ac_t""yes" 1>&6
10f2d63a 6706 else
698dcdb6 6707 echo "$ac_t""no" 1>&6
10f2d63a 6708 fi
698dcdb6 6709
10f2d63a 6710
698dcdb6 6711 echo $ac_n "checking for --enable-statbmp""... $ac_c" 1>&6
009fead0 6712echo "configure:6713: checking for --enable-statbmp" >&5
10f2d63a
VZ
6713 no_cache=0
6714 # Check whether --enable-statbmp or --disable-statbmp was given.
6715if test "${enable_statbmp+set}" = set; then
6716 enableval="$enable_statbmp"
698dcdb6 6717
10f2d63a
VZ
6718 if test "$enableval" = yes; then
6719 ac_cv_use_statbmp='wxUSE_STATBMP=yes'
6720 else
6721 ac_cv_use_statbmp='wxUSE_STATBMP=no'
6722 fi
698dcdb6 6723
10f2d63a 6724else
698dcdb6 6725
10f2d63a
VZ
6726 LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}`
6727 if test "x$LINE" != x ; then
6728 eval "DEFAULT_$LINE"
6729 else
6730 no_cache=1
6731 fi
6732
6733 ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP
698dcdb6
VZ
6734
6735fi
10f2d63a
VZ
6736
6737
6738 eval "$ac_cv_use_statbmp"
6739 if test "$no_cache" != 1; then
6740 echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp
6741 fi
6742
6743 if test "$wxUSE_STATBMP" = yes; then
698dcdb6 6744 echo "$ac_t""yes" 1>&6
10f2d63a 6745 else
698dcdb6 6746 echo "$ac_t""no" 1>&6
10f2d63a 6747 fi
698dcdb6 6748
10f2d63a 6749
698dcdb6 6750 echo $ac_n "checking for --enable-statbox""... $ac_c" 1>&6
009fead0 6751echo "configure:6752: checking for --enable-statbox" >&5
10f2d63a
VZ
6752 no_cache=0
6753 # Check whether --enable-statbox or --disable-statbox was given.
6754if test "${enable_statbox+set}" = set; then
6755 enableval="$enable_statbox"
698dcdb6 6756
10f2d63a
VZ
6757 if test "$enableval" = yes; then
6758 ac_cv_use_statbox='wxUSE_STATBOX=yes'
6759 else
6760 ac_cv_use_statbox='wxUSE_STATBOX=no'
6761 fi
698dcdb6 6762
10f2d63a 6763else
698dcdb6 6764
10f2d63a
VZ
6765 LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}`
6766 if test "x$LINE" != x ; then
6767 eval "DEFAULT_$LINE"
6768 else
6769 no_cache=1
6770 fi
6771
6772 ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX
698dcdb6
VZ
6773
6774fi
10f2d63a
VZ
6775
6776
6777 eval "$ac_cv_use_statbox"
6778 if test "$no_cache" != 1; then
6779 echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp
6780 fi
6781
6782 if test "$wxUSE_STATBOX" = yes; then
698dcdb6 6783 echo "$ac_t""yes" 1>&6
10f2d63a 6784 else
698dcdb6 6785 echo "$ac_t""no" 1>&6
10f2d63a 6786 fi
698dcdb6 6787
10f2d63a 6788
698dcdb6 6789 echo $ac_n "checking for --enable-statline""... $ac_c" 1>&6
009fead0 6790echo "configure:6791: checking for --enable-statline" >&5
10f2d63a
VZ
6791 no_cache=0
6792 # Check whether --enable-statline or --disable-statline was given.
6793if test "${enable_statline+set}" = set; then
6794 enableval="$enable_statline"
698dcdb6 6795
10f2d63a
VZ
6796 if test "$enableval" = yes; then
6797 ac_cv_use_statline='wxUSE_STATLINE=yes'
6798 else
6799 ac_cv_use_statline='wxUSE_STATLINE=no'
6800 fi
698dcdb6 6801
10f2d63a 6802else
698dcdb6 6803
10f2d63a
VZ
6804 LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}`
6805 if test "x$LINE" != x ; then
6806 eval "DEFAULT_$LINE"
6807 else
6808 no_cache=1
6809 fi
6810
6811 ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE
698dcdb6
VZ
6812
6813fi
10f2d63a
VZ
6814
6815
6816 eval "$ac_cv_use_statline"
6817 if test "$no_cache" != 1; then
6818 echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp
6819 fi
6820
6821 if test "$wxUSE_STATLINE" = yes; then
698dcdb6 6822 echo "$ac_t""yes" 1>&6
10f2d63a 6823 else
698dcdb6 6824 echo "$ac_t""no" 1>&6
10f2d63a 6825 fi
698dcdb6 6826
10f2d63a 6827
1e6feb95 6828 echo $ac_n "checking for --enable-stattext""... $ac_c" 1>&6
009fead0 6829echo "configure:6830: checking for --enable-stattext" >&5
1e6feb95
VZ
6830 no_cache=0
6831 # Check whether --enable-stattext or --disable-stattext was given.
6832if test "${enable_stattext+set}" = set; then
6833 enableval="$enable_stattext"
6834
6835 if test "$enableval" = yes; then
6836 ac_cv_use_stattext='wxUSE_STATTEXT=yes'
6837 else
6838 ac_cv_use_stattext='wxUSE_STATTEXT=no'
6839 fi
6840
6841else
6842
6843 LINE=`grep "wxUSE_STATTEXT" ${wx_arg_cache_file}`
6844 if test "x$LINE" != x ; then
6845 eval "DEFAULT_$LINE"
6846 else
6847 no_cache=1
6848 fi
6849
6850 ac_cv_use_stattext='wxUSE_STATTEXT='$DEFAULT_wxUSE_STATTEXT
6851
6852fi
6853
6854
6855 eval "$ac_cv_use_stattext"
6856 if test "$no_cache" != 1; then
6857 echo $ac_cv_use_stattext >> ${wx_arg_cache_file}.tmp
6858 fi
6859
6860 if test "$wxUSE_STATTEXT" = yes; then
6861 echo "$ac_t""yes" 1>&6
6862 else
6863 echo "$ac_t""no" 1>&6
6864 fi
6865
6866
698dcdb6 6867 echo $ac_n "checking for --enable-statusbar""... $ac_c" 1>&6
009fead0 6868echo "configure:6869: checking for --enable-statusbar" >&5
10f2d63a
VZ
6869 no_cache=0
6870 # Check whether --enable-statusbar or --disable-statusbar was given.
6871if test "${enable_statusbar+set}" = set; then
6872 enableval="$enable_statusbar"
698dcdb6 6873
10f2d63a
VZ
6874 if test "$enableval" = yes; then
6875 ac_cv_use_statusbar='wxUSE_STATUSBAR=yes'
6876 else
6877 ac_cv_use_statusbar='wxUSE_STATUSBAR=no'
6878 fi
698dcdb6 6879
10f2d63a 6880else
698dcdb6 6881
10f2d63a
VZ
6882 LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}`
6883 if test "x$LINE" != x ; then
6884 eval "DEFAULT_$LINE"
6885 else
6886 no_cache=1
6887 fi
6888
6889 ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR
698dcdb6
VZ
6890
6891fi
10f2d63a
VZ
6892
6893
6894 eval "$ac_cv_use_statusbar"
6895 if test "$no_cache" != 1; then
6896 echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp
6897 fi
6898
6899 if test "$wxUSE_STATUSBAR" = yes; then
698dcdb6 6900 echo "$ac_t""yes" 1>&6
10f2d63a 6901 else
698dcdb6 6902 echo "$ac_t""no" 1>&6
10f2d63a 6903 fi
698dcdb6 6904
10f2d63a 6905
698dcdb6 6906 echo $ac_n "checking for --enable-tabdialog""... $ac_c" 1>&6
009fead0 6907echo "configure:6908: checking for --enable-tabdialog" >&5
10f2d63a
VZ
6908 no_cache=0
6909 # Check whether --enable-tabdialog or --disable-tabdialog was given.
6910if test "${enable_tabdialog+set}" = set; then
6911 enableval="$enable_tabdialog"
698dcdb6 6912
10f2d63a
VZ
6913 if test "$enableval" = yes; then
6914 ac_cv_use_tabdialog='wxUSE_TABDIALOG=yes'
6915 else
6916 ac_cv_use_tabdialog='wxUSE_TABDIALOG=no'
6917 fi
698dcdb6 6918
10f2d63a 6919else
698dcdb6 6920
10f2d63a
VZ
6921 LINE=`grep "wxUSE_TABDIALOG" ${wx_arg_cache_file}`
6922 if test "x$LINE" != x ; then
6923 eval "DEFAULT_$LINE"
6924 else
6925 no_cache=1
6926 fi
6927
6928 ac_cv_use_tabdialog='wxUSE_TABDIALOG='$DEFAULT_wxUSE_TABDIALOG
698dcdb6
VZ
6929
6930fi
10f2d63a
VZ
6931
6932
6933 eval "$ac_cv_use_tabdialog"
6934 if test "$no_cache" != 1; then
6935 echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp
6936 fi
6937
6938 if test "$wxUSE_TABDIALOG" = yes; then
698dcdb6 6939 echo "$ac_t""yes" 1>&6
10f2d63a 6940 else
698dcdb6 6941 echo "$ac_t""no" 1>&6
10f2d63a 6942 fi
698dcdb6 6943
10f2d63a 6944
1e6feb95 6945 echo $ac_n "checking for --enable-textctrl""... $ac_c" 1>&6
009fead0 6946echo "configure:6947: checking for --enable-textctrl" >&5
1e6feb95
VZ
6947 no_cache=0
6948 # Check whether --enable-textctrl or --disable-textctrl was given.
6949if test "${enable_textctrl+set}" = set; then
6950 enableval="$enable_textctrl"
6951
6952 if test "$enableval" = yes; then
6953 ac_cv_use_textctrl='wxUSE_TEXTCTRL=yes'
6954 else
6955 ac_cv_use_textctrl='wxUSE_TEXTCTRL=no'
6956 fi
6957
6958else
6959
6960 LINE=`grep "wxUSE_TEXTCTRL" ${wx_arg_cache_file}`
6961 if test "x$LINE" != x ; then
6962 eval "DEFAULT_$LINE"
6963 else
6964 no_cache=1
6965 fi
6966
6967 ac_cv_use_textctrl='wxUSE_TEXTCTRL='$DEFAULT_wxUSE_TEXTCTRL
6968
6969fi
6970
6971
6972 eval "$ac_cv_use_textctrl"
6973 if test "$no_cache" != 1; then
6974 echo $ac_cv_use_textctrl >> ${wx_arg_cache_file}.tmp
6975 fi
6976
6977 if test "$wxUSE_TEXTCTRL" = yes; then
6978 echo "$ac_t""yes" 1>&6
6979 else
6980 echo "$ac_t""no" 1>&6
6981 fi
6982
6983
698dcdb6 6984 echo $ac_n "checking for --enable-togglebtn""... $ac_c" 1>&6
009fead0 6985echo "configure:6986: checking for --enable-togglebtn" >&5
1db8dc4a
VZ
6986 no_cache=0
6987 # Check whether --enable-togglebtn or --disable-togglebtn was given.
6988if test "${enable_togglebtn+set}" = set; then
6989 enableval="$enable_togglebtn"
698dcdb6 6990
1db8dc4a
VZ
6991 if test "$enableval" = yes; then
6992 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes'
6993 else
6994 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=no'
6995 fi
698dcdb6 6996
1db8dc4a 6997else
698dcdb6 6998
1db8dc4a
VZ
6999 LINE=`grep "wxUSE_TOGGLEBTN" ${wx_arg_cache_file}`
7000 if test "x$LINE" != x ; then
7001 eval "DEFAULT_$LINE"
7002 else
7003 no_cache=1
7004 fi
7005
7006 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN='$DEFAULT_wxUSE_TOGGLEBTN
698dcdb6
VZ
7007
7008fi
1db8dc4a
VZ
7009
7010
7011 eval "$ac_cv_use_togglebtn"
7012 if test "$no_cache" != 1; then
7013 echo $ac_cv_use_togglebtn >> ${wx_arg_cache_file}.tmp
7014 fi
7015
7016 if test "$wxUSE_TOGGLEBTN" = yes; then
698dcdb6 7017 echo "$ac_t""yes" 1>&6
1db8dc4a 7018 else
698dcdb6 7019 echo "$ac_t""no" 1>&6
1db8dc4a 7020 fi
698dcdb6 7021
1db8dc4a 7022
698dcdb6 7023 echo $ac_n "checking for --enable-toolbar""... $ac_c" 1>&6
009fead0 7024echo "configure:7025: checking for --enable-toolbar" >&5
10f2d63a
VZ
7025 no_cache=0
7026 # Check whether --enable-toolbar or --disable-toolbar was given.
7027if test "${enable_toolbar+set}" = set; then
7028 enableval="$enable_toolbar"
698dcdb6 7029
10f2d63a
VZ
7030 if test "$enableval" = yes; then
7031 ac_cv_use_toolbar='wxUSE_TOOLBAR=yes'
7032 else
7033 ac_cv_use_toolbar='wxUSE_TOOLBAR=no'
7034 fi
698dcdb6 7035
10f2d63a 7036else
698dcdb6 7037
10f2d63a
VZ
7038 LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}`
7039 if test "x$LINE" != x ; then
7040 eval "DEFAULT_$LINE"
7041 else
7042 no_cache=1
7043 fi
7044
7045 ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR
698dcdb6
VZ
7046
7047fi
10f2d63a
VZ
7048
7049
7050 eval "$ac_cv_use_toolbar"
7051 if test "$no_cache" != 1; then
7052 echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp
7053 fi
7054
7055 if test "$wxUSE_TOOLBAR" = yes; then
698dcdb6 7056 echo "$ac_t""yes" 1>&6
10f2d63a 7057 else
698dcdb6 7058 echo "$ac_t""no" 1>&6
10f2d63a 7059 fi
698dcdb6 7060
10f2d63a 7061
698dcdb6 7062 echo $ac_n "checking for --enable-tbarnative""... $ac_c" 1>&6
009fead0 7063echo "configure:7064: checking for --enable-tbarnative" >&5
360d6699
VZ
7064 no_cache=0
7065 # Check whether --enable-tbarnative or --disable-tbarnative was given.
7066if test "${enable_tbarnative+set}" = set; then
7067 enableval="$enable_tbarnative"
698dcdb6 7068
360d6699
VZ
7069 if test "$enableval" = yes; then
7070 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes'
7071 else
7072 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no'
7073 fi
698dcdb6 7074
360d6699 7075else
698dcdb6 7076
360d6699
VZ
7077 LINE=`grep "wxUSE_TOOLBAR_NATIVE" ${wx_arg_cache_file}`
7078 if test "x$LINE" != x ; then
7079 eval "DEFAULT_$LINE"
7080 else
7081 no_cache=1
7082 fi
7083
7084 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE='$DEFAULT_wxUSE_TOOLBAR_NATIVE
698dcdb6
VZ
7085
7086fi
360d6699
VZ
7087
7088
7089 eval "$ac_cv_use_tbarnative"
7090 if test "$no_cache" != 1; then
7091 echo $ac_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp
7092 fi
7093
7094 if test "$wxUSE_TOOLBAR_NATIVE" = yes; then
698dcdb6 7095 echo "$ac_t""yes" 1>&6
360d6699 7096 else
698dcdb6 7097 echo "$ac_t""no" 1>&6
360d6699 7098 fi
698dcdb6 7099
360d6699 7100
698dcdb6 7101 echo $ac_n "checking for --enable-tbarsmpl""... $ac_c" 1>&6
009fead0 7102echo "configure:7103: checking for --enable-tbarsmpl" >&5
360d6699
VZ
7103 no_cache=0
7104 # Check whether --enable-tbarsmpl or --disable-tbarsmpl was given.
7105if test "${enable_tbarsmpl+set}" = set; then
7106 enableval="$enable_tbarsmpl"
698dcdb6 7107
360d6699
VZ
7108 if test "$enableval" = yes; then
7109 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=yes'
7110 else
7111 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=no'
7112 fi
698dcdb6 7113
360d6699 7114else
698dcdb6 7115
360d6699
VZ
7116 LINE=`grep "wxUSE_TOOLBAR_SIMPLE" ${wx_arg_cache_file}`
7117 if test "x$LINE" != x ; then
7118 eval "DEFAULT_$LINE"
7119 else
7120 no_cache=1
7121 fi
7122
7123 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE='$DEFAULT_wxUSE_TOOLBAR_SIMPLE
698dcdb6
VZ
7124
7125fi
360d6699
VZ
7126
7127
7128 eval "$ac_cv_use_tbarsmpl"
7129 if test "$no_cache" != 1; then
7130 echo $ac_cv_use_tbarsmpl >> ${wx_arg_cache_file}.tmp
7131 fi
7132
7133 if test "$wxUSE_TOOLBAR_SIMPLE" = yes; then
698dcdb6 7134 echo "$ac_t""yes" 1>&6
360d6699 7135 else
698dcdb6 7136 echo "$ac_t""no" 1>&6
360d6699 7137 fi
698dcdb6 7138
360d6699 7139
698dcdb6 7140 echo $ac_n "checking for --enable-treectrl""... $ac_c" 1>&6
009fead0 7141echo "configure:7142: checking for --enable-treectrl" >&5
10f2d63a
VZ
7142 no_cache=0
7143 # Check whether --enable-treectrl or --disable-treectrl was given.
7144if test "${enable_treectrl+set}" = set; then
7145 enableval="$enable_treectrl"
698dcdb6 7146
10f2d63a
VZ
7147 if test "$enableval" = yes; then
7148 ac_cv_use_treectrl='wxUSE_TREECTRL=yes'
7149 else
7150 ac_cv_use_treectrl='wxUSE_TREECTRL=no'
7151 fi
698dcdb6 7152
10f2d63a 7153else
698dcdb6 7154
10f2d63a
VZ
7155 LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}`
7156 if test "x$LINE" != x ; then
7157 eval "DEFAULT_$LINE"
7158 else
7159 no_cache=1
7160 fi
7161
7162 ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL
698dcdb6
VZ
7163
7164fi
10f2d63a
VZ
7165
7166
1e6feb95
VZ
7167 eval "$ac_cv_use_treectrl"
7168 if test "$no_cache" != 1; then
7169 echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp
7170 fi
7171
7172 if test "$wxUSE_TREECTRL" = yes; then
7173 echo "$ac_t""yes" 1>&6
7174 else
7175 echo "$ac_t""no" 1>&6
7176 fi
7177
7178
9926e4a4 7179 echo $ac_n "checking for --enable-tipwindow""... $ac_c" 1>&6
009fead0 7180echo "configure:7181: checking for --enable-tipwindow" >&5
9926e4a4
VZ
7181 no_cache=0
7182 # Check whether --enable-tipwindow or --disable-tipwindow was given.
7183if test "${enable_tipwindow+set}" = set; then
7184 enableval="$enable_tipwindow"
7185
7186 if test "$enableval" = yes; then
7187 ac_cv_use_tipwindow='wxUSE_TIPWINDOW=yes'
7188 else
7189 ac_cv_use_tipwindow='wxUSE_TIPWINDOW=no'
7190 fi
7191
7192else
7193
7194 LINE=`grep "wxUSE_TIPWINDOW" ${wx_arg_cache_file}`
7195 if test "x$LINE" != x ; then
7196 eval "DEFAULT_$LINE"
7197 else
7198 no_cache=1
7199 fi
7200
7201 ac_cv_use_tipwindow='wxUSE_TIPWINDOW='$DEFAULT_wxUSE_TIPWINDOW
7202
7203fi
7204
7205
7206 eval "$ac_cv_use_tipwindow"
7207 if test "$no_cache" != 1; then
7208 echo $ac_cv_use_tipwindow >> ${wx_arg_cache_file}.tmp
7209 fi
7210
7211 if test "$wxUSE_TIPWINDOW" = yes; then
7212 echo "$ac_t""yes" 1>&6
7213 else
7214 echo "$ac_t""no" 1>&6
7215 fi
7216
7217
9f41d601 7218 echo $ac_n "checking for --enable-popupwin""... $ac_c" 1>&6
009fead0 7219echo "configure:7220: checking for --enable-popupwin" >&5
9f41d601
RR
7220 no_cache=0
7221 # Check whether --enable-popupwin or --disable-popupwin was given.
7222if test "${enable_popupwin+set}" = set; then
7223 enableval="$enable_popupwin"
7224
7225 if test "$enableval" = yes; then
7226 ac_cv_use_popupwin='wxUSE_POPUPWIN=yes'
7227 else
7228 ac_cv_use_popupwin='wxUSE_POPUPWIN=no'
7229 fi
7230
7231else
7232
7233 LINE=`grep "wxUSE_POPUPWIN" ${wx_arg_cache_file}`
7234 if test "x$LINE" != x ; then
7235 eval "DEFAULT_$LINE"
7236 else
7237 no_cache=1
7238 fi
7239
7240 ac_cv_use_popupwin='wxUSE_POPUPWIN='$DEFAULT_wxUSE_POPUPWIN
7241
7242fi
7243
7244
7245 eval "$ac_cv_use_popupwin"
7246 if test "$no_cache" != 1; then
7247 echo $ac_cv_use_popupwin >> ${wx_arg_cache_file}.tmp
7248 fi
7249
7250 if test "$wxUSE_POPUPWIN" = yes; then
7251 echo "$ac_t""yes" 1>&6
7252 else
7253 echo "$ac_t""no" 1>&6
7254 fi
7255
7256
1e6feb95
VZ
7257
7258
7259 echo $ac_n "checking for --enable-commondlg""... $ac_c" 1>&6
009fead0 7260echo "configure:7261: checking for --enable-commondlg" >&5
1e6feb95
VZ
7261 no_cache=0
7262 # Check whether --enable-commondlg or --disable-commondlg was given.
7263if test "${enable_commondlg+set}" = set; then
7264 enableval="$enable_commondlg"
7265
7266 if test "$enableval" = yes; then
7267 ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes'
7268 else
7269 ac_cv_use_commondlg='wxUSE_COMMONDLGS=no'
7270 fi
7271
7272else
7273
7274 LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}`
7275 if test "x$LINE" != x ; then
7276 eval "DEFAULT_$LINE"
7277 else
7278 no_cache=1
7279 fi
7280
7281 ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS
7282
7283fi
7284
7285
7286 eval "$ac_cv_use_commondlg"
7287 if test "$no_cache" != 1; then
7288 echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp
7289 fi
7290
7291 if test "$wxUSE_COMMONDLGS" = yes; then
7292 echo "$ac_t""yes" 1>&6
7293 else
7294 echo "$ac_t""no" 1>&6
7295 fi
7296
7297
7298 echo $ac_n "checking for --enable-choicedlg""... $ac_c" 1>&6
009fead0 7299echo "configure:7300: checking for --enable-choicedlg" >&5
1e6feb95
VZ
7300 no_cache=0
7301 # Check whether --enable-choicedlg or --disable-choicedlg was given.
7302if test "${enable_choicedlg+set}" = set; then
7303 enableval="$enable_choicedlg"
7304
7305 if test "$enableval" = yes; then
7306 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=yes'
7307 else
7308 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=no'
7309 fi
7310
7311else
7312
7313 LINE=`grep "wxUSE_CHOICEDLG" ${wx_arg_cache_file}`
7314 if test "x$LINE" != x ; then
7315 eval "DEFAULT_$LINE"
7316 else
7317 no_cache=1
7318 fi
7319
7320 ac_cv_use_choicedlg='wxUSE_CHOICEDLG='$DEFAULT_wxUSE_CHOICEDLG
7321
7322fi
7323
7324
7325 eval "$ac_cv_use_choicedlg"
7326 if test "$no_cache" != 1; then
7327 echo $ac_cv_use_choicedlg >> ${wx_arg_cache_file}.tmp
7328 fi
7329
7330 if test "$wxUSE_CHOICEDLG" = yes; then
7331 echo "$ac_t""yes" 1>&6
7332 else
7333 echo "$ac_t""no" 1>&6
7334 fi
7335
7336
7337 echo $ac_n "checking for --enable-coldlg""... $ac_c" 1>&6
009fead0 7338echo "configure:7339: checking for --enable-coldlg" >&5
1e6feb95
VZ
7339 no_cache=0
7340 # Check whether --enable-coldlg or --disable-coldlg was given.
7341if test "${enable_coldlg+set}" = set; then
7342 enableval="$enable_coldlg"
7343
7344 if test "$enableval" = yes; then
7345 ac_cv_use_coldlg='wxUSE_COLOURDLG=yes'
7346 else
7347 ac_cv_use_coldlg='wxUSE_COLOURDLG=no'
7348 fi
7349
7350else
7351
7352 LINE=`grep "wxUSE_COLOURDLG" ${wx_arg_cache_file}`
7353 if test "x$LINE" != x ; then
7354 eval "DEFAULT_$LINE"
7355 else
7356 no_cache=1
7357 fi
7358
7359 ac_cv_use_coldlg='wxUSE_COLOURDLG='$DEFAULT_wxUSE_COLOURDLG
7360
7361fi
7362
7363
7364 eval "$ac_cv_use_coldlg"
7365 if test "$no_cache" != 1; then
7366 echo $ac_cv_use_coldlg >> ${wx_arg_cache_file}.tmp
7367 fi
7368
7369 if test "$wxUSE_COLOURDLG" = yes; then
7370 echo "$ac_t""yes" 1>&6
7371 else
7372 echo "$ac_t""no" 1>&6
7373 fi
7374
7375
7376 echo $ac_n "checking for --enable-filedlg""... $ac_c" 1>&6
009fead0 7377echo "configure:7378: checking for --enable-filedlg" >&5
1e6feb95
VZ
7378 no_cache=0
7379 # Check whether --enable-filedlg or --disable-filedlg was given.
7380if test "${enable_filedlg+set}" = set; then
7381 enableval="$enable_filedlg"
7382
7383 if test "$enableval" = yes; then
7384 ac_cv_use_filedlg='wxUSE_FILEDLG=yes'
7385 else
7386 ac_cv_use_filedlg='wxUSE_FILEDLG=no'
7387 fi
7388
7389else
7390
7391 LINE=`grep "wxUSE_FILEDLG" ${wx_arg_cache_file}`
7392 if test "x$LINE" != x ; then
7393 eval "DEFAULT_$LINE"
7394 else
7395 no_cache=1
7396 fi
7397
7398 ac_cv_use_filedlg='wxUSE_FILEDLG='$DEFAULT_wxUSE_FILEDLG
7399
7400fi
7401
7402
7403 eval "$ac_cv_use_filedlg"
7404 if test "$no_cache" != 1; then
7405 echo $ac_cv_use_filedlg >> ${wx_arg_cache_file}.tmp
7406 fi
7407
7408 if test "$wxUSE_FILEDLG" = yes; then
7409 echo "$ac_t""yes" 1>&6
7410 else
7411 echo "$ac_t""no" 1>&6
7412 fi
7413
7414
69d27ff7 7415 echo $ac_n "checking for --enable-finddlg""... $ac_c" 1>&6
009fead0 7416echo "configure:7417: checking for --enable-finddlg" >&5
8db37e06 7417 no_cache=0
69d27ff7
MB
7418 # Check whether --enable-finddlg or --disable-finddlg was given.
7419if test "${enable_finddlg+set}" = set; then
7420 enableval="$enable_finddlg"
8db37e06
VZ
7421
7422 if test "$enableval" = yes; then
69d27ff7 7423 ac_cv_use_finddlg='wxUSE_FINDREPLDLG=yes'
8db37e06 7424 else
69d27ff7 7425 ac_cv_use_finddlg='wxUSE_FINDREPLDLG=no'
8db37e06
VZ
7426 fi
7427
7428else
7429
7430 LINE=`grep "wxUSE_FINDREPLDLG" ${wx_arg_cache_file}`
7431 if test "x$LINE" != x ; then
7432 eval "DEFAULT_$LINE"
7433 else
7434 no_cache=1
7435 fi
7436
69d27ff7 7437 ac_cv_use_finddlg='wxUSE_FINDREPLDLG='$DEFAULT_wxUSE_FINDREPLDLG
8db37e06
VZ
7438
7439fi
7440
7441
69d27ff7 7442 eval "$ac_cv_use_finddlg"
8db37e06 7443 if test "$no_cache" != 1; then
69d27ff7 7444 echo $ac_cv_use_finddlg >> ${wx_arg_cache_file}.tmp
8db37e06
VZ
7445 fi
7446
7447 if test "$wxUSE_FINDREPLDLG" = yes; then
7448 echo "$ac_t""yes" 1>&6
7449 else
7450 echo "$ac_t""no" 1>&6
7451 fi
7452
7453
1e6feb95 7454 echo $ac_n "checking for --enable-fontdlg""... $ac_c" 1>&6
009fead0 7455echo "configure:7456: checking for --enable-fontdlg" >&5
1e6feb95
VZ
7456 no_cache=0
7457 # Check whether --enable-fontdlg or --disable-fontdlg was given.
7458if test "${enable_fontdlg+set}" = set; then
7459 enableval="$enable_fontdlg"
7460
7461 if test "$enableval" = yes; then
7462 ac_cv_use_fontdlg='wxUSE_FONTDLG=yes'
7463 else
7464 ac_cv_use_fontdlg='wxUSE_FONTDLG=no'
7465 fi
7466
7467else
7468
7469 LINE=`grep "wxUSE_FONTDLG" ${wx_arg_cache_file}`
7470 if test "x$LINE" != x ; then
7471 eval "DEFAULT_$LINE"
7472 else
7473 no_cache=1
7474 fi
7475
7476 ac_cv_use_fontdlg='wxUSE_FONTDLG='$DEFAULT_wxUSE_FONTDLG
7477
7478fi
7479
7480
7481 eval "$ac_cv_use_fontdlg"
7482 if test "$no_cache" != 1; then
7483 echo $ac_cv_use_fontdlg >> ${wx_arg_cache_file}.tmp
7484 fi
7485
7486 if test "$wxUSE_FONTDLG" = yes; then
7487 echo "$ac_t""yes" 1>&6
7488 else
7489 echo "$ac_t""no" 1>&6
7490 fi
7491
7492
7493 echo $ac_n "checking for --enable-dirdlg""... $ac_c" 1>&6
009fead0 7494echo "configure:7495: checking for --enable-dirdlg" >&5
1e6feb95
VZ
7495 no_cache=0
7496 # Check whether --enable-dirdlg or --disable-dirdlg was given.
7497if test "${enable_dirdlg+set}" = set; then
7498 enableval="$enable_dirdlg"
7499
7500 if test "$enableval" = yes; then
7501 ac_cv_use_dirdlg='wxUSE_DIRDLG=yes'
7502 else
7503 ac_cv_use_dirdlg='wxUSE_DIRDLG=no'
7504 fi
7505
7506else
7507
7508 LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}`
7509 if test "x$LINE" != x ; then
7510 eval "DEFAULT_$LINE"
7511 else
7512 no_cache=1
7513 fi
7514
7515 ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG
7516
7517fi
7518
7519
7520 eval "$ac_cv_use_dirdlg"
10f2d63a 7521 if test "$no_cache" != 1; then
1e6feb95 7522 echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
7523 fi
7524
1e6feb95 7525 if test "$wxUSE_DIRDLG" = yes; then
698dcdb6 7526 echo "$ac_t""yes" 1>&6
10f2d63a 7527 else
698dcdb6 7528 echo "$ac_t""no" 1>&6
10f2d63a 7529 fi
698dcdb6
VZ
7530
7531
1e6feb95 7532 echo $ac_n "checking for --enable-msgdlg""... $ac_c" 1>&6
009fead0 7533echo "configure:7534: checking for --enable-msgdlg" >&5
10f2d63a 7534 no_cache=0
1e6feb95
VZ
7535 # Check whether --enable-msgdlg or --disable-msgdlg was given.
7536if test "${enable_msgdlg+set}" = set; then
7537 enableval="$enable_msgdlg"
698dcdb6 7538
10f2d63a 7539 if test "$enableval" = yes; then
1e6feb95 7540 ac_cv_use_msgdlg='wxUSE_MSGDLG=yes'
10f2d63a 7541 else
1e6feb95 7542 ac_cv_use_msgdlg='wxUSE_MSGDLG=no'
10f2d63a 7543 fi
698dcdb6 7544
10f2d63a 7545else
698dcdb6 7546
1e6feb95 7547 LINE=`grep "wxUSE_MSGDLG" ${wx_arg_cache_file}`
10f2d63a
VZ
7548 if test "x$LINE" != x ; then
7549 eval "DEFAULT_$LINE"
7550 else
7551 no_cache=1
7552 fi
7553
1e6feb95 7554 ac_cv_use_msgdlg='wxUSE_MSGDLG='$DEFAULT_wxUSE_MSGDLG
698dcdb6
VZ
7555
7556fi
10f2d63a
VZ
7557
7558
1e6feb95 7559 eval "$ac_cv_use_msgdlg"
10f2d63a 7560 if test "$no_cache" != 1; then
1e6feb95 7561 echo $ac_cv_use_msgdlg >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
7562 fi
7563
1e6feb95 7564 if test "$wxUSE_MSGDLG" = yes; then
698dcdb6 7565 echo "$ac_t""yes" 1>&6
10f2d63a 7566 else
698dcdb6 7567 echo "$ac_t""no" 1>&6
10f2d63a 7568 fi
698dcdb6 7569
10f2d63a 7570
1e6feb95 7571 echo $ac_n "checking for --enable-numberdlg""... $ac_c" 1>&6
009fead0 7572echo "configure:7573: checking for --enable-numberdlg" >&5
10f2d63a 7573 no_cache=0
1e6feb95
VZ
7574 # Check whether --enable-numberdlg or --disable-numberdlg was given.
7575if test "${enable_numberdlg+set}" = set; then
7576 enableval="$enable_numberdlg"
698dcdb6 7577
10f2d63a 7578 if test "$enableval" = yes; then
1e6feb95 7579 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=yes'
10f2d63a 7580 else
1e6feb95 7581 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=no'
10f2d63a 7582 fi
698dcdb6 7583
10f2d63a 7584else
698dcdb6 7585
1e6feb95 7586 LINE=`grep "wxUSE_NUMBERDLG" ${wx_arg_cache_file}`
10f2d63a
VZ
7587 if test "x$LINE" != x ; then
7588 eval "DEFAULT_$LINE"
7589 else
7590 no_cache=1
7591 fi
7592
1e6feb95 7593 ac_cv_use_numberdlg='wxUSE_NUMBERDLG='$DEFAULT_wxUSE_NUMBERDLG
698dcdb6
VZ
7594
7595fi
10f2d63a
VZ
7596
7597
1e6feb95 7598 eval "$ac_cv_use_numberdlg"
10f2d63a 7599 if test "$no_cache" != 1; then
1e6feb95 7600 echo $ac_cv_use_numberdlg >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
7601 fi
7602
1e6feb95 7603 if test "$wxUSE_NUMBERDLG" = yes; then
698dcdb6 7604 echo "$ac_t""yes" 1>&6
10f2d63a 7605 else
698dcdb6 7606 echo "$ac_t""no" 1>&6
10f2d63a 7607 fi
698dcdb6 7608
10f2d63a 7609
cbca9943 7610 echo $ac_n "checking for --enable-splash""... $ac_c" 1>&6
009fead0 7611echo "configure:7612: checking for --enable-splash" >&5
cbca9943
VZ
7612 no_cache=0
7613 # Check whether --enable-splash or --disable-splash was given.
7614if test "${enable_splash+set}" = set; then
7615 enableval="$enable_splash"
7616
7617 if test "$enableval" = yes; then
7618 ac_cv_use_splash='wxUSE_SPLASH=yes'
7619 else
7620 ac_cv_use_splash='wxUSE_SPLASH=no'
7621 fi
7622
7623else
7624
7625 LINE=`grep "wxUSE_SPLASH" ${wx_arg_cache_file}`
7626 if test "x$LINE" != x ; then
7627 eval "DEFAULT_$LINE"
7628 else
7629 no_cache=1
7630 fi
7631
7632 ac_cv_use_splash='wxUSE_SPLASH='$DEFAULT_wxUSE_SPLASH
7633
7634fi
7635
7636
7637 eval "$ac_cv_use_splash"
7638 if test "$no_cache" != 1; then
7639 echo $ac_cv_use_splash >> ${wx_arg_cache_file}.tmp
7640 fi
7641
7642 if test "$wxUSE_SPLASH" = yes; then
7643 echo "$ac_t""yes" 1>&6
7644 else
7645 echo "$ac_t""no" 1>&6
7646 fi
7647
7648
698dcdb6 7649 echo $ac_n "checking for --enable-textdlg""... $ac_c" 1>&6
009fead0 7650echo "configure:7651: checking for --enable-textdlg" >&5
10f2d63a
VZ
7651 no_cache=0
7652 # Check whether --enable-textdlg or --disable-textdlg was given.
7653if test "${enable_textdlg+set}" = set; then
7654 enableval="$enable_textdlg"
698dcdb6 7655
10f2d63a
VZ
7656 if test "$enableval" = yes; then
7657 ac_cv_use_textdlg='wxUSE_TEXTDLG=yes'
7658 else
7659 ac_cv_use_textdlg='wxUSE_TEXTDLG=no'
7660 fi
698dcdb6 7661
10f2d63a 7662else
698dcdb6 7663
10f2d63a
VZ
7664 LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}`
7665 if test "x$LINE" != x ; then
7666 eval "DEFAULT_$LINE"
7667 else
7668 no_cache=1
7669 fi
7670
7671 ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG
698dcdb6
VZ
7672
7673fi
10f2d63a
VZ
7674
7675
7676 eval "$ac_cv_use_textdlg"
7677 if test "$no_cache" != 1; then
7678 echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp
7679 fi
7680
7681 if test "$wxUSE_TEXTDLG" = yes; then
698dcdb6 7682 echo "$ac_t""yes" 1>&6
10f2d63a 7683 else
698dcdb6 7684 echo "$ac_t""no" 1>&6
10f2d63a 7685 fi
698dcdb6 7686
10f2d63a 7687
698dcdb6 7688 echo $ac_n "checking for --enable-tipdlg""... $ac_c" 1>&6
009fead0 7689echo "configure:7690: checking for --enable-tipdlg" >&5
10f2d63a
VZ
7690 no_cache=0
7691 # Check whether --enable-tipdlg or --disable-tipdlg was given.
7692if test "${enable_tipdlg+set}" = set; then
7693 enableval="$enable_tipdlg"
698dcdb6 7694
10f2d63a
VZ
7695 if test "$enableval" = yes; then
7696 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes'
7697 else
7698 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no'
7699 fi
698dcdb6 7700
10f2d63a 7701else
698dcdb6 7702
10f2d63a
VZ
7703 LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}`
7704 if test "x$LINE" != x ; then
7705 eval "DEFAULT_$LINE"
7706 else
7707 no_cache=1
7708 fi
7709
7710 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS
698dcdb6
VZ
7711
7712fi
10f2d63a
VZ
7713
7714
7715 eval "$ac_cv_use_tipdlg"
7716 if test "$no_cache" != 1; then
7717 echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp
7718 fi
7719
7720 if test "$wxUSE_STARTUP_TIPS" = yes; then
698dcdb6 7721 echo "$ac_t""yes" 1>&6
10f2d63a 7722 else
698dcdb6 7723 echo "$ac_t""no" 1>&6
10f2d63a 7724 fi
698dcdb6 7725
10f2d63a 7726
698dcdb6 7727 echo $ac_n "checking for --enable-progressdlg""... $ac_c" 1>&6
009fead0 7728echo "configure:7729: checking for --enable-progressdlg" >&5
10f2d63a
VZ
7729 no_cache=0
7730 # Check whether --enable-progressdlg or --disable-progressdlg was given.
7731if test "${enable_progressdlg+set}" = set; then
7732 enableval="$enable_progressdlg"
698dcdb6 7733
10f2d63a
VZ
7734 if test "$enableval" = yes; then
7735 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes'
7736 else
7737 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no'
7738 fi
698dcdb6 7739
10f2d63a 7740else
698dcdb6 7741
10f2d63a
VZ
7742 LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}`
7743 if test "x$LINE" != x ; then
7744 eval "DEFAULT_$LINE"
7745 else
7746 no_cache=1
7747 fi
7748
7749 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG
698dcdb6
VZ
7750
7751fi
10f2d63a
VZ
7752
7753
7754 eval "$ac_cv_use_progressdlg"
7755 if test "$no_cache" != 1; then
7756 echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp
7757 fi
7758
7759 if test "$wxUSE_PROGRESSDLG" = yes; then
698dcdb6 7760 echo "$ac_t""yes" 1>&6
10f2d63a 7761 else
698dcdb6 7762 echo "$ac_t""no" 1>&6
10f2d63a 7763 fi
698dcdb6 7764
10f2d63a 7765
b1f5d087 7766 echo $ac_n "checking for --enable-wizarddlg""... $ac_c" 1>&6
009fead0 7767echo "configure:7768: checking for --enable-wizarddlg" >&5
b1f5d087
VZ
7768 no_cache=0
7769 # Check whether --enable-wizarddlg or --disable-wizarddlg was given.
7770if test "${enable_wizarddlg+set}" = set; then
7771 enableval="$enable_wizarddlg"
7772
7773 if test "$enableval" = yes; then
7774 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=yes'
7775 else
7776 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=no'
7777 fi
7778
7779else
7780
7781 LINE=`grep "wxUSE_WIZARDDLG" ${wx_arg_cache_file}`
7782 if test "x$LINE" != x ; then
7783 eval "DEFAULT_$LINE"
7784 else
7785 no_cache=1
7786 fi
7787
7788 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG='$DEFAULT_wxUSE_WIZARDDLG
7789
7790fi
7791
7792
7793 eval "$ac_cv_use_wizarddlg"
7794 if test "$no_cache" != 1; then
7795 echo $ac_cv_use_wizarddlg >> ${wx_arg_cache_file}.tmp
7796 fi
7797
7798 if test "$wxUSE_WIZARDDLG" = yes; then
7799 echo "$ac_t""yes" 1>&6
7800 else
7801 echo "$ac_t""no" 1>&6
7802 fi
7803
7804
7805
7806
1e6feb95 7807 echo $ac_n "checking for --enable-menus""... $ac_c" 1>&6
009fead0 7808echo "configure:7809: checking for --enable-menus" >&5
1e6feb95
VZ
7809 no_cache=0
7810 # Check whether --enable-menus or --disable-menus was given.
7811if test "${enable_menus+set}" = set; then
7812 enableval="$enable_menus"
7813
7814 if test "$enableval" = yes; then
7815 ac_cv_use_menus='wxUSE_MENUS=yes'
7816 else
7817 ac_cv_use_menus='wxUSE_MENUS=no'
7818 fi
7819
7820else
7821
7822 LINE=`grep "wxUSE_MENUS" ${wx_arg_cache_file}`
7823 if test "x$LINE" != x ; then
7824 eval "DEFAULT_$LINE"
7825 else
7826 no_cache=1
7827 fi
7828
7829 ac_cv_use_menus='wxUSE_MENUS='$DEFAULT_wxUSE_MENUS
7830
7831fi
7832
7833
7834 eval "$ac_cv_use_menus"
7835 if test "$no_cache" != 1; then
7836 echo $ac_cv_use_menus >> ${wx_arg_cache_file}.tmp
7837 fi
7838
7839 if test "$wxUSE_MENUS" = yes; then
7840 echo "$ac_t""yes" 1>&6
7841 else
7842 echo "$ac_t""no" 1>&6
7843 fi
7844
7845
698dcdb6 7846 echo $ac_n "checking for --enable-miniframe""... $ac_c" 1>&6
009fead0 7847echo "configure:7848: checking for --enable-miniframe" >&5
10f2d63a
VZ
7848 no_cache=0
7849 # Check whether --enable-miniframe or --disable-miniframe was given.
7850if test "${enable_miniframe+set}" = set; then
7851 enableval="$enable_miniframe"
698dcdb6 7852
10f2d63a
VZ
7853 if test "$enableval" = yes; then
7854 ac_cv_use_miniframe='wxUSE_MINIFRAME=yes'
7855 else
7856 ac_cv_use_miniframe='wxUSE_MINIFRAME=no'
7857 fi
698dcdb6 7858
10f2d63a 7859else
698dcdb6 7860
10f2d63a
VZ
7861 LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}`
7862 if test "x$LINE" != x ; then
7863 eval "DEFAULT_$LINE"
7864 else
7865 no_cache=1
7866 fi
7867
7868 ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME
698dcdb6
VZ
7869
7870fi
10f2d63a
VZ
7871
7872
7873 eval "$ac_cv_use_miniframe"
7874 if test "$no_cache" != 1; then
7875 echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp
7876 fi
7877
7878 if test "$wxUSE_MINIFRAME" = yes; then
698dcdb6 7879 echo "$ac_t""yes" 1>&6
10f2d63a 7880 else
698dcdb6 7881 echo "$ac_t""no" 1>&6
10f2d63a 7882 fi
698dcdb6 7883
10f2d63a 7884
698dcdb6 7885 echo $ac_n "checking for --enable-tooltips""... $ac_c" 1>&6
009fead0 7886echo "configure:7887: checking for --enable-tooltips" >&5
10f2d63a
VZ
7887 no_cache=0
7888 # Check whether --enable-tooltips or --disable-tooltips was given.
7889if test "${enable_tooltips+set}" = set; then
7890 enableval="$enable_tooltips"
698dcdb6 7891
10f2d63a
VZ
7892 if test "$enableval" = yes; then
7893 ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes'
7894 else
7895 ac_cv_use_tooltips='wxUSE_TOOLTIPS=no'
7896 fi
698dcdb6 7897
10f2d63a 7898else
698dcdb6 7899
10f2d63a
VZ
7900 LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}`
7901 if test "x$LINE" != x ; then
7902 eval "DEFAULT_$LINE"
7903 else
7904 no_cache=1
7905 fi
7906
7907 ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS
698dcdb6
VZ
7908
7909fi
10f2d63a
VZ
7910
7911
7912 eval "$ac_cv_use_tooltips"
7913 if test "$no_cache" != 1; then
7914 echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp
7915 fi
7916
7917 if test "$wxUSE_TOOLTIPS" = yes; then
698dcdb6 7918 echo "$ac_t""yes" 1>&6
10f2d63a 7919 else
698dcdb6 7920 echo "$ac_t""no" 1>&6
10f2d63a 7921 fi
698dcdb6 7922
10f2d63a 7923
698dcdb6 7924 echo $ac_n "checking for --enable-splines""... $ac_c" 1>&6
009fead0 7925echo "configure:7926: checking for --enable-splines" >&5
10f2d63a
VZ
7926 no_cache=0
7927 # Check whether --enable-splines or --disable-splines was given.
7928if test "${enable_splines+set}" = set; then
7929 enableval="$enable_splines"
698dcdb6 7930
10f2d63a
VZ
7931 if test "$enableval" = yes; then
7932 ac_cv_use_splines='wxUSE_SPLINES=yes'
7933 else
7934 ac_cv_use_splines='wxUSE_SPLINES=no'
7935 fi
698dcdb6 7936
10f2d63a 7937else
698dcdb6 7938
10f2d63a
VZ
7939 LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}`
7940 if test "x$LINE" != x ; then
7941 eval "DEFAULT_$LINE"
7942 else
7943 no_cache=1
7944 fi
7945
7946 ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES
698dcdb6
VZ
7947
7948fi
10f2d63a
VZ
7949
7950
7951 eval "$ac_cv_use_splines"
7952 if test "$no_cache" != 1; then
7953 echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp
7954 fi
7955
7956 if test "$wxUSE_SPLINES" = yes; then
698dcdb6 7957 echo "$ac_t""yes" 1>&6
10f2d63a 7958 else
698dcdb6 7959 echo "$ac_t""no" 1>&6
10f2d63a 7960 fi
698dcdb6 7961
10f2d63a 7962
698dcdb6 7963 echo $ac_n "checking for --enable-validators""... $ac_c" 1>&6
009fead0 7964echo "configure:7965: checking for --enable-validators" >&5
10f2d63a
VZ
7965 no_cache=0
7966 # Check whether --enable-validators or --disable-validators was given.
7967if test "${enable_validators+set}" = set; then
7968 enableval="$enable_validators"
698dcdb6 7969
10f2d63a
VZ
7970 if test "$enableval" = yes; then
7971 ac_cv_use_validators='wxUSE_VALIDATORS=yes'
7972 else
7973 ac_cv_use_validators='wxUSE_VALIDATORS=no'
7974 fi
698dcdb6 7975
10f2d63a 7976else
698dcdb6 7977
10f2d63a
VZ
7978 LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}`
7979 if test "x$LINE" != x ; then
7980 eval "DEFAULT_$LINE"
7981 else
7982 no_cache=1
7983 fi
7984
7985 ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS
698dcdb6
VZ
7986
7987fi
10f2d63a
VZ
7988
7989
7990 eval "$ac_cv_use_validators"
7991 if test "$no_cache" != 1; then
7992 echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp
7993 fi
7994
7995 if test "$wxUSE_VALIDATORS" = yes; then
698dcdb6 7996 echo "$ac_t""yes" 1>&6
10f2d63a 7997 else
698dcdb6 7998 echo "$ac_t""no" 1>&6
10f2d63a 7999 fi
698dcdb6 8000
10f2d63a 8001
698dcdb6 8002 echo $ac_n "checking for --enable-busyinfo""... $ac_c" 1>&6
009fead0 8003echo "configure:8004: checking for --enable-busyinfo" >&5
10f2d63a
VZ
8004 no_cache=0
8005 # Check whether --enable-busyinfo or --disable-busyinfo was given.
8006if test "${enable_busyinfo+set}" = set; then
8007 enableval="$enable_busyinfo"
698dcdb6 8008
10f2d63a
VZ
8009 if test "$enableval" = yes; then
8010 ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes'
8011 else
8012 ac_cv_use_busyinfo='wxUSE_BUSYINFO=no'
8013 fi
698dcdb6 8014
10f2d63a 8015else
698dcdb6 8016
10f2d63a
VZ
8017 LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}`
8018 if test "x$LINE" != x ; then
8019 eval "DEFAULT_$LINE"
8020 else
8021 no_cache=1
8022 fi
8023
8024 ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO
698dcdb6
VZ
8025
8026fi
10f2d63a
VZ
8027
8028
8029 eval "$ac_cv_use_busyinfo"
8030 if test "$no_cache" != 1; then
8031 echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp
8032 fi
8033
8034 if test "$wxUSE_BUSYINFO" = yes; then
698dcdb6 8035 echo "$ac_t""yes" 1>&6
10f2d63a 8036 else
698dcdb6 8037 echo "$ac_t""no" 1>&6
10f2d63a 8038 fi
698dcdb6 8039
10f2d63a 8040
698dcdb6 8041 echo $ac_n "checking for --enable-joystick""... $ac_c" 1>&6
009fead0 8042echo "configure:8043: checking for --enable-joystick" >&5
f6bcfd97
BP
8043 no_cache=0
8044 # Check whether --enable-joystick or --disable-joystick was given.
8045if test "${enable_joystick+set}" = set; then
8046 enableval="$enable_joystick"
698dcdb6 8047
f6bcfd97
BP
8048 if test "$enableval" = yes; then
8049 ac_cv_use_joystick='wxUSE_JOYSTICK=yes'
8050 else
8051 ac_cv_use_joystick='wxUSE_JOYSTICK=no'
8052 fi
698dcdb6 8053
f6bcfd97 8054else
698dcdb6 8055
f6bcfd97
BP
8056 LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}`
8057 if test "x$LINE" != x ; then
8058 eval "DEFAULT_$LINE"
8059 else
8060 no_cache=1
8061 fi
8062
8063 ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK
698dcdb6
VZ
8064
8065fi
f6bcfd97
BP
8066
8067
8068 eval "$ac_cv_use_joystick"
8069 if test "$no_cache" != 1; then
8070 echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp
8071 fi
8072
8073 if test "$wxUSE_JOYSTICK" = yes; then
698dcdb6 8074 echo "$ac_t""yes" 1>&6
f6bcfd97 8075 else
698dcdb6 8076 echo "$ac_t""no" 1>&6
f6bcfd97 8077 fi
698dcdb6
VZ
8078
8079
1e6feb95 8080 echo $ac_n "checking for --enable-metafile""... $ac_c" 1>&6
009fead0 8081echo "configure:8082: checking for --enable-metafile" >&5
1e6feb95
VZ
8082 no_cache=0
8083 # Check whether --enable-metafile or --disable-metafile was given.
8084if test "${enable_metafile+set}" = set; then
8085 enableval="$enable_metafile"
8086
8087 if test "$enableval" = yes; then
8088 ac_cv_use_metafile='wxUSE_METAFILE=yes'
8089 else
8090 ac_cv_use_metafile='wxUSE_METAFILE=no'
8091 fi
8092
8093else
8094
8095 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
8096 if test "x$LINE" != x ; then
8097 eval "DEFAULT_$LINE"
8098 else
8099 no_cache=1
8100 fi
8101
8102 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
8103
8104fi
8105
8106
8107 eval "$ac_cv_use_metafile"
8108 if test "$no_cache" != 1; then
8109 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
8110 fi
8111
8112 if test "$wxUSE_METAFILE" = yes; then
8113 echo "$ac_t""yes" 1>&6
8114 else
8115 echo "$ac_t""no" 1>&6
8116 fi
8117
8118
24fd6d87 8119 echo $ac_n "checking for --enable-dragimage""... $ac_c" 1>&6
009fead0 8120echo "configure:8121: checking for --enable-dragimage" >&5
24fd6d87
VZ
8121 no_cache=0
8122 # Check whether --enable-dragimage or --disable-dragimage was given.
8123if test "${enable_dragimage+set}" = set; then
8124 enableval="$enable_dragimage"
8125
8126 if test "$enableval" = yes; then
8127 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=yes'
8128 else
8129 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=no'
8130 fi
8131
8132else
8133
8134 LINE=`grep "wxUSE_DRAGIMAGE" ${wx_arg_cache_file}`
8135 if test "x$LINE" != x ; then
8136 eval "DEFAULT_$LINE"
8137 else
8138 no_cache=1
8139 fi
8140
8141 ac_cv_use_dragimage='wxUSE_DRAGIMAGE='$DEFAULT_wxUSE_DRAGIMAGE
8142
8143fi
8144
8145
8146 eval "$ac_cv_use_dragimage"
8147 if test "$no_cache" != 1; then
8148 echo $ac_cv_use_dragimage >> ${wx_arg_cache_file}.tmp
8149 fi
8150
8151 if test "$wxUSE_DRAGIMAGE" = yes; then
8152 echo "$ac_t""yes" 1>&6
8153 else
8154 echo "$ac_t""no" 1>&6
8155 fi
8156
8157
10f2d63a 8158
698dcdb6 8159
edae8572 8160 echo $ac_n "checking for --enable-palette""... $ac_c" 1>&6
009fead0 8161echo "configure:8162: checking for --enable-palette" >&5
edae8572
VZ
8162 no_cache=0
8163 # Check whether --enable-palette or --disable-palette was given.
8164if test "${enable_palette+set}" = set; then
8165 enableval="$enable_palette"
8166
8167 if test "$enableval" = yes; then
8168 ac_cv_use_palette='wxUSE_PALETTE=yes'
8169 else
8170 ac_cv_use_palette='wxUSE_PALETTE=no'
8171 fi
8172
8173else
8174
8175 LINE=`grep "wxUSE_PALETTE" ${wx_arg_cache_file}`
8176 if test "x$LINE" != x ; then
8177 eval "DEFAULT_$LINE"
8178 else
8179 no_cache=1
8180 fi
8181
8182 ac_cv_use_palette='wxUSE_PALETTE='$DEFAULT_wxUSE_PALETTE
8183
8184fi
8185
8186
8187 eval "$ac_cv_use_palette"
8188 if test "$no_cache" != 1; then
8189 echo $ac_cv_use_palette >> ${wx_arg_cache_file}.tmp
8190 fi
8191
8192 if test "$wxUSE_PALETTE" = yes; then
8193 echo "$ac_t""yes" 1>&6
8194 else
8195 echo "$ac_t""no" 1>&6
8196 fi
8197
8198
698dcdb6 8199 echo $ac_n "checking for --enable-image""... $ac_c" 1>&6
009fead0 8200echo "configure:8201: checking for --enable-image" >&5
0046ff7c
VS
8201 no_cache=0
8202 # Check whether --enable-image or --disable-image was given.
8203if test "${enable_image+set}" = set; then
8204 enableval="$enable_image"
698dcdb6 8205
0046ff7c
VS
8206 if test "$enableval" = yes; then
8207 ac_cv_use_image='wxUSE_IMAGE=yes'
8208 else
8209 ac_cv_use_image='wxUSE_IMAGE=no'
8210 fi
698dcdb6 8211
0046ff7c 8212else
698dcdb6 8213
0046ff7c
VS
8214 LINE=`grep "wxUSE_IMAGE" ${wx_arg_cache_file}`
8215 if test "x$LINE" != x ; then
8216 eval "DEFAULT_$LINE"
8217 else
8218 no_cache=1
8219 fi
8220
8221 ac_cv_use_image='wxUSE_IMAGE='$DEFAULT_wxUSE_IMAGE
698dcdb6
VZ
8222
8223fi
0046ff7c
VS
8224
8225
8226 eval "$ac_cv_use_image"
8227 if test "$no_cache" != 1; then
8228 echo $ac_cv_use_image >> ${wx_arg_cache_file}.tmp
8229 fi
8230
8231 if test "$wxUSE_IMAGE" = yes; then
698dcdb6 8232 echo "$ac_t""yes" 1>&6
0046ff7c 8233 else
698dcdb6 8234 echo "$ac_t""no" 1>&6
0046ff7c 8235 fi
698dcdb6 8236
0046ff7c 8237
698dcdb6 8238 echo $ac_n "checking for --enable-gif""... $ac_c" 1>&6
009fead0 8239echo "configure:8240: checking for --enable-gif" >&5
10f2d63a
VZ
8240 no_cache=0
8241 # Check whether --enable-gif or --disable-gif was given.
8242if test "${enable_gif+set}" = set; then
8243 enableval="$enable_gif"
698dcdb6 8244
10f2d63a
VZ
8245 if test "$enableval" = yes; then
8246 ac_cv_use_gif='wxUSE_GIF=yes'
8247 else
8248 ac_cv_use_gif='wxUSE_GIF=no'
8249 fi
698dcdb6 8250
10f2d63a 8251else
698dcdb6 8252
10f2d63a
VZ
8253 LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}`
8254 if test "x$LINE" != x ; then
8255 eval "DEFAULT_$LINE"
8256 else
8257 no_cache=1
8258 fi
8259
8260 ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF
698dcdb6
VZ
8261
8262fi
10f2d63a
VZ
8263
8264
8265 eval "$ac_cv_use_gif"
8266 if test "$no_cache" != 1; then
8267 echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp
8268 fi
8269
8270 if test "$wxUSE_GIF" = yes; then
698dcdb6 8271 echo "$ac_t""yes" 1>&6
10f2d63a 8272 else
698dcdb6 8273 echo "$ac_t""no" 1>&6
10f2d63a 8274 fi
698dcdb6 8275
10f2d63a 8276
698dcdb6 8277 echo $ac_n "checking for --enable-pcx""... $ac_c" 1>&6
009fead0 8278echo "configure:8279: checking for --enable-pcx" >&5
10f2d63a
VZ
8279 no_cache=0
8280 # Check whether --enable-pcx or --disable-pcx was given.
8281if test "${enable_pcx+set}" = set; then
8282 enableval="$enable_pcx"
698dcdb6 8283
10f2d63a
VZ
8284 if test "$enableval" = yes; then
8285 ac_cv_use_pcx='wxUSE_PCX=yes'
8286 else
8287 ac_cv_use_pcx='wxUSE_PCX=no'
8288 fi
698dcdb6 8289
10f2d63a 8290else
698dcdb6 8291
10f2d63a
VZ
8292 LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}`
8293 if test "x$LINE" != x ; then
8294 eval "DEFAULT_$LINE"
8295 else
8296 no_cache=1
8297 fi
8298
8299 ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX
698dcdb6
VZ
8300
8301fi
10f2d63a
VZ
8302
8303
8304 eval "$ac_cv_use_pcx"
8305 if test "$no_cache" != 1; then
8306 echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp
8307 fi
8308
8309 if test "$wxUSE_PCX" = yes; then
698dcdb6 8310 echo "$ac_t""yes" 1>&6
10f2d63a 8311 else
698dcdb6 8312 echo "$ac_t""no" 1>&6
10f2d63a 8313 fi
698dcdb6 8314
10f2d63a 8315
4b6b4dfc 8316 echo $ac_n "checking for --enable-iff""... $ac_c" 1>&6
009fead0 8317echo "configure:8318: checking for --enable-iff" >&5
4b6b4dfc
RR
8318 no_cache=0
8319 # Check whether --enable-iff or --disable-iff was given.
8320if test "${enable_iff+set}" = set; then
8321 enableval="$enable_iff"
8322
8323 if test "$enableval" = yes; then
8324 ac_cv_use_iff='wxUSE_IFF=yes'
8325 else
8326 ac_cv_use_iff='wxUSE_IFF=no'
8327 fi
8328
8329else
8330
8331 LINE=`grep "wxUSE_IFF" ${wx_arg_cache_file}`
8332 if test "x$LINE" != x ; then
8333 eval "DEFAULT_$LINE"
8334 else
8335 no_cache=1
8336 fi
8337
8338 ac_cv_use_iff='wxUSE_IFF='$DEFAULT_wxUSE_IFF
8339
8340fi
8341
8342
8343 eval "$ac_cv_use_iff"
8344 if test "$no_cache" != 1; then
8345 echo $ac_cv_use_iff >> ${wx_arg_cache_file}.tmp
8346 fi
8347
8348 if test "$wxUSE_IFF" = yes; then
8349 echo "$ac_t""yes" 1>&6
8350 else
8351 echo "$ac_t""no" 1>&6
8352 fi
8353
8354
698dcdb6 8355 echo $ac_n "checking for --enable-pnm""... $ac_c" 1>&6
009fead0 8356echo "configure:8357: checking for --enable-pnm" >&5
10f2d63a
VZ
8357 no_cache=0
8358 # Check whether --enable-pnm or --disable-pnm was given.
8359if test "${enable_pnm+set}" = set; then
8360 enableval="$enable_pnm"
698dcdb6 8361
10f2d63a
VZ
8362 if test "$enableval" = yes; then
8363 ac_cv_use_pnm='wxUSE_PNM=yes'
8364 else
8365 ac_cv_use_pnm='wxUSE_PNM=no'
8366 fi
698dcdb6 8367
10f2d63a 8368else
698dcdb6 8369
10f2d63a
VZ
8370 LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}`
8371 if test "x$LINE" != x ; then
8372 eval "DEFAULT_$LINE"
8373 else
8374 no_cache=1
8375 fi
8376
8377 ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM
698dcdb6
VZ
8378
8379fi
10f2d63a
VZ
8380
8381
8382 eval "$ac_cv_use_pnm"
8383 if test "$no_cache" != 1; then
8384 echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp
8385 fi
8386
8387 if test "$wxUSE_PNM" = yes; then
698dcdb6 8388 echo "$ac_t""yes" 1>&6
10f2d63a 8389 else
698dcdb6 8390 echo "$ac_t""no" 1>&6
10f2d63a 8391 fi
698dcdb6 8392
10f2d63a 8393
69d27ff7 8394 echo $ac_n "checking for --enable-xpm""... $ac_c" 1>&6
009fead0 8395echo "configure:8396: checking for --enable-xpm" >&5
0046ff7c 8396 no_cache=0
69d27ff7
MB
8397 # Check whether --enable-xpm or --disable-xpm was given.
8398if test "${enable_xpm+set}" = set; then
8399 enableval="$enable_xpm"
698dcdb6 8400
0046ff7c 8401 if test "$enableval" = yes; then
69d27ff7 8402 ac_cv_use_xpm='wxUSE_XPM=yes'
0046ff7c 8403 else
69d27ff7 8404 ac_cv_use_xpm='wxUSE_XPM=no'
0046ff7c 8405 fi
698dcdb6 8406
0046ff7c 8407else
698dcdb6 8408
0046ff7c
VS
8409 LINE=`grep "wxUSE_XPM" ${wx_arg_cache_file}`
8410 if test "x$LINE" != x ; then
8411 eval "DEFAULT_$LINE"
8412 else
8413 no_cache=1
8414 fi
8415
69d27ff7 8416 ac_cv_use_xpm='wxUSE_XPM='$DEFAULT_wxUSE_XPM
698dcdb6
VZ
8417
8418fi
0046ff7c
VS
8419
8420
69d27ff7 8421 eval "$ac_cv_use_xpm"
0046ff7c 8422 if test "$no_cache" != 1; then
69d27ff7 8423 echo $ac_cv_use_xpm >> ${wx_arg_cache_file}.tmp
0046ff7c
VS
8424 fi
8425
8426 if test "$wxUSE_XPM" = yes; then
698dcdb6 8427 echo "$ac_t""yes" 1>&6
0046ff7c 8428 else
698dcdb6 8429 echo "$ac_t""no" 1>&6
0046ff7c 8430 fi
698dcdb6 8431
0046ff7c 8432
c7206e64 8433 echo $ac_n "checking for --enable-ico_cur""... $ac_c" 1>&6
009fead0 8434echo "configure:8435: checking for --enable-ico_cur" >&5
658974ae 8435 no_cache=0
c7206e64
VS
8436 # Check whether --enable-ico_cur or --disable-ico_cur was given.
8437if test "${enable_ico_cur+set}" = set; then
8438 enableval="$enable_ico_cur"
658974ae
VS
8439
8440 if test "$enableval" = yes; then
c7206e64 8441 ac_cv_use_ico_cur='wxUSE_ICO_CUR=yes'
658974ae 8442 else
c7206e64 8443 ac_cv_use_ico_cur='wxUSE_ICO_CUR=no'
658974ae
VS
8444 fi
8445
8446else
8447
8448 LINE=`grep "wxUSE_ICO_CUR" ${wx_arg_cache_file}`
8449 if test "x$LINE" != x ; then
8450 eval "DEFAULT_$LINE"
8451 else
8452 no_cache=1
8453 fi
8454
c7206e64 8455 ac_cv_use_ico_cur='wxUSE_ICO_CUR='$DEFAULT_wxUSE_ICO_CUR
658974ae
VS
8456
8457fi
8458
8459
c7206e64 8460 eval "$ac_cv_use_ico_cur"
658974ae 8461 if test "$no_cache" != 1; then
c7206e64 8462 echo $ac_cv_use_ico_cur >> ${wx_arg_cache_file}.tmp
658974ae
VS
8463 fi
8464
8465 if test "$wxUSE_ICO_CUR" = yes; then
8466 echo "$ac_t""yes" 1>&6
8467 else
8468 echo "$ac_t""no" 1>&6
8469 fi
8470
8471
b12915c1
VZ
8472fi
8473
d558c907
VS
8474case "${host}" in
8475 *-pc-os2_emx | *-pc-os2-emx )
8476 LEX_STEM="lexyy"
8477 ;;
8478 *)
8479 PATH_IFS=':'
8480 LEX_STEM="lex.yy"
8481 ;;
8482esac
8483
8484
698dcdb6 8485
10f2d63a
VZ
8486 echo "saving argument cache $wx_arg_cache_file"
8487 mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file}
698dcdb6 8488
10f2d63a 8489
698dcdb6
VZ
8490
8491echo $ac_n "checking for toolkit""... $ac_c" 1>&6
009fead0 8492echo "configure:8493: checking for toolkit" >&5
10f2d63a
VZ
8493
8494if test "$wxUSE_GUI" = "yes"; then
8495
3a922bb4
RL
8496 if test "$USE_BEOS" = 1; then
8497 { echo "configure: error: BeOS GUI is not supported yet, use --disable-gui" 1>&2; exit 1; }
8498 fi
b12915c1 8499
3a922bb4
RL
8500 if test "$TOOLKIT_GIVEN" = 1; then
8501 for toolkit in `echo $ALL_TOOLKITS`; do
8502 var=wxUSE_$toolkit
8503 eval "value=\$${var}"
8504 eval "$var=`echo \$value | sed -e "s/yes/1/" -e "s/no/0/"`"
8505 done
10f2d63a 8506 else
3a922bb4
RL
8507 for toolkit in `echo $ALL_TOOLKITS`; do
8508 if test "$has_toolkit_in_cache" != 1; then
8509 var=DEFAULT_DEFAULT_wxUSE_$toolkit
8510 else
8511 var=DEFAULT_wxUSE_$toolkit
8512 fi
8513 eval "wxUSE_$toolkit=\$${var}"
8514 done
10f2d63a 8515 fi
10f2d63a 8516
3a922bb4 8517 NUM_TOOLKITS=`expr ${wxUSE_GTK:-0} + ${wxUSE_MOTIF:-0} + ${wxUSE_MAC:-0} \
f79bd02d 8518 + ${wxUSE_WINE:-0} + ${wxUSE_MSW:-0} + ${wxUSE_MGL:-0} + ${wxUSE_MICROWIN:-0} + ${wxUSE_X11:-0}`
10f2d63a 8519
d558c907 8520 case "${host}" in
6fa882bd 8521 *-pc-os2_emx | *-pc-os2-emx )
3a922bb4 8522 NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}`
3a922bb4 8523 esac
10f2d63a 8524
3a922bb4
RL
8525 case "$NUM_TOOLKITS" in
8526 1)
8527 ;;
8528 0)
8529 { echo "configure: error: Please specify a toolkit - cannot determine the default for ${host}" 1>&2; exit 1; }
8530 ;;
8531 *)
8532 { echo "configure: error: Please specify at most one toolkit (may be some are cached?)" 1>&2; exit 1; }
8533 esac
10f2d63a 8534
3a922bb4
RL
8535 for toolkit in `echo $ALL_TOOLKITS`; do
8536 var=wxUSE_$toolkit
8537 eval "value=\$${var}"
8538 if test "x$value" != x; then
8539 cache_var=CACHE_$toolkit
8540 eval "cache=\$${cache_var}"
8541 if test "$cache" = 1; then
8542 echo "$var=$value" >> ${wx_arg_cache_file}
8543 fi
8544 if test "$value" = 1; then
8545 toolkit_echo=`echo $toolkit | tr [A-Z] [a-z]`
8546 echo "$ac_t""$toolkit_echo" 1>&6
8547 fi
8548 fi
8549 done
10f2d63a 8550else
3a922bb4 8551 echo "$ac_t""base ($host_alias hosted) only" 1>&6
10f2d63a
VZ
8552fi
8553
698dcdb6
VZ
8554
8555cat > confcache <<\EOF
10f2d63a
VZ
8556# This file is a shell script that caches the results of configure
8557# tests run on this system so they can be shared between configure
698dcdb6
VZ
8558# scripts and configure runs. It is not useful on other systems.
8559# If it contains results you don't want to keep, you may remove or edit it.
10f2d63a 8560#
698dcdb6
VZ
8561# By default, configure uses ./config.cache as the cache file,
8562# creating it if it does not exist already. You can give configure
8563# the --cache-file=FILE option to use a different cache file; that is
8564# what configure does when it calls configure scripts in
8565# subdirectories, so they share the cache.
8566# Giving --cache-file=/dev/null disables caching, for debugging configure.
8567# config.status only pays attention to the cache file if you give it the
8568# --recheck option to rerun configure.
10f2d63a 8569#
698dcdb6 8570EOF
10f2d63a
VZ
8571# The following way of writing the cache mishandles newlines in values,
8572# but we know of no workaround that is simple, portable, and efficient.
8573# So, don't put newlines in cache variables' values.
8574# Ultrix sh set writes to stderr and can't be redirected directly,
8575# and sets the high bit in the cache file unless we assign to the vars.
698dcdb6
VZ
8576(set) 2>&1 |
8577 case `(ac_space=' '; set | grep ac_space) 2>&1` in
8578 *ac_space=\ *)
8579 # `set' does not quote correctly, so add quotes (double-quote substitution
8580 # turns \\\\ into \\, and sed turns \\ into \).
8581 sed -n \
8582 -e "s/'/'\\\\''/g" \
8583 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
8584 ;;
8585 *)
8586 # `set' quotes correctly as required by POSIX, so do not add quotes.
8587 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
8588 ;;
8589 esac >> confcache
8590if cmp -s $cache_file confcache; then
8591 :
8592else
10f2d63a 8593 if test -w $cache_file; then
698dcdb6
VZ
8594 echo "updating cache $cache_file"
8595 cat confcache > $cache_file
10f2d63a
VZ
8596 else
8597 echo "not updating unwritable cache $cache_file"
8598 fi
8599fi
8600rm -f confcache
8601
698dcdb6 8602
e59890c3 8603if test "$build" != "$host" ; then
9d353d4a 8604 if test "$USE_WIN32" = 1 -o "$USE_DOS" = 1 -o "$USE_UNIX"; then
3a922bb4
RL
8605 CC=$host_alias-gcc
8606 CXX=$host_alias-c++
8607 AR=$host_alias-ar
8608 RANLIB=$host_alias-ranlib
8609 DLLTOOL=$host_alias-dlltool
8610 RESCOMP=$host_alias-windres
8611 LD=$host_alias-ld
8612 NM=$host_alias-nm
8613 STRIP=$host_alias-strip
8614 else
8615 { echo "configure: error: $build_alias -> $host_alias cross compilation not supported yet." 1>&2; exit 1; }
8616 fi
10f2d63a
VZ
8617fi
8618
ec603395 8619CFLAGS=${CFLAGS:=}
698dcdb6 8620# Extract the first word of "gcc", so it can be a program name with args.
1e487827 8621set dummy gcc; ac_word=$2
698dcdb6 8622echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
04727afd 8623echo "configure:8624: checking for $ac_word" >&5
698dcdb6
VZ
8624if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
8625 echo $ac_n "(cached) $ac_c" 1>&6
6232543b
VS
8626else
8627 if test -n "$CC"; then
8628 ac_cv_prog_CC="$CC" # Let the user override the test.
10f2d63a 8629else
698dcdb6
VZ
8630 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8631 ac_dummy="$PATH"
8632 for ac_dir in $ac_dummy; do
8633 test -z "$ac_dir" && ac_dir=.
8634 if test -f $ac_dir/$ac_word; then
8635 ac_cv_prog_CC="gcc"
8636 break
8637 fi
8638 done
8639 IFS="$ac_save_ifs"
10f2d63a 8640fi
6232543b 8641fi
698dcdb6 8642CC="$ac_cv_prog_CC"
6232543b 8643if test -n "$CC"; then
698dcdb6 8644 echo "$ac_t""$CC" 1>&6
1e487827 8645else
698dcdb6 8646 echo "$ac_t""no" 1>&6
1e487827 8647fi
6232543b 8648
1e487827
VS
8649if test -z "$CC"; then
8650 # Extract the first word of "cc", so it can be a program name with args.
8651set dummy cc; ac_word=$2
698dcdb6 8652echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
04727afd 8653echo "configure:8654: checking for $ac_word" >&5
698dcdb6
VZ
8654if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
8655 echo $ac_n "(cached) $ac_c" 1>&6
1e487827
VS
8656else
8657 if test -n "$CC"; then
8658 ac_cv_prog_CC="$CC" # Let the user override the test.
8659else
698dcdb6 8660 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1e487827 8661 ac_prog_rejected=no
698dcdb6
VZ
8662 ac_dummy="$PATH"
8663 for ac_dir in $ac_dummy; do
8664 test -z "$ac_dir" && ac_dir=.
8665 if test -f $ac_dir/$ac_word; then
8666 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
8667 ac_prog_rejected=yes
8668 continue
8669 fi
8670 ac_cv_prog_CC="cc"
8671 break
8672 fi
8673 done
8674 IFS="$ac_save_ifs"
1e487827
VS
8675if test $ac_prog_rejected = yes; then
8676 # We found a bogon in the path, so make sure we never use it.
8677 set dummy $ac_cv_prog_CC
8678 shift
698dcdb6 8679 if test $# -gt 0; then
1e487827
VS
8680 # We chose a different compiler from the bogus one.
8681 # However, it has the same basename, so the bogon will be chosen
8682 # first if we set CC to just the basename; use the full file name.
8683 shift
698dcdb6 8684 set dummy "$ac_dir/$ac_word" "$@"
1e487827
VS
8685 shift
8686 ac_cv_prog_CC="$@"
703e0a69 8687 fi
1e487827
VS
8688fi
8689fi
8690fi
698dcdb6 8691CC="$ac_cv_prog_CC"
1e487827 8692if test -n "$CC"; then
698dcdb6 8693 echo "$ac_t""$CC" 1>&6
703e0a69 8694else
698dcdb6 8695 echo "$ac_t""no" 1>&6
703e0a69 8696fi
1e487827 8697
698dcdb6
VZ
8698 if test -z "$CC"; then
8699 case "`uname -s`" in
8700 *win32* | *WIN32*)
8701 # Extract the first word of "cl", so it can be a program name with args.
8702set dummy cl; ac_word=$2
8703echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
04727afd 8704echo "configure:8705: checking for $ac_word" >&5
698dcdb6
VZ
8705if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
8706 echo $ac_n "(cached) $ac_c" 1>&6
1e487827
VS
8707else
8708 if test -n "$CC"; then
8709 ac_cv_prog_CC="$CC" # Let the user override the test.
703e0a69 8710else
698dcdb6
VZ
8711 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8712 ac_dummy="$PATH"
8713 for ac_dir in $ac_dummy; do
8714 test -z "$ac_dir" && ac_dir=.
8715 if test -f $ac_dir/$ac_word; then
8716 ac_cv_prog_CC="cl"
8717 break
8718 fi
8719 done
8720 IFS="$ac_save_ifs"
703e0a69 8721fi
1e487827 8722fi
698dcdb6 8723CC="$ac_cv_prog_CC"
1e487827 8724if test -n "$CC"; then
698dcdb6 8725 echo "$ac_t""$CC" 1>&6
1e487827 8726else
698dcdb6 8727 echo "$ac_t""no" 1>&6
1e487827 8728fi
698dcdb6
VZ
8729 ;;
8730 esac
8731 fi
8732 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1e487827
VS
8733fi
8734
698dcdb6 8735echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
04727afd 8736echo "configure:8737: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1e487827 8737
698dcdb6
VZ
8738ac_ext=c
8739# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8740ac_cpp='$CPP $CPPFLAGS'
8741ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8742ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8743cross_compiling=$ac_cv_prog_cc_cross
6232543b 8744
698dcdb6 8745cat > conftest.$ac_ext << EOF
1e487827 8746
04727afd 8747#line 8748 "configure"
1e487827
VS
8748#include "confdefs.h"
8749
698dcdb6
VZ
8750main(){return(0);}
8751EOF
04727afd 8752if { (eval echo configure:8753: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
8753 ac_cv_prog_cc_works=yes
8754 # If we can't run a trivial program, we are probably using a cross compiler.
8755 if (./conftest; exit) 2>/dev/null; then
8756 ac_cv_prog_cc_cross=no
8757 else
8758 ac_cv_prog_cc_cross=yes
8759 fi
8760else
8761 echo "configure: failed program was:" >&5
8762 cat conftest.$ac_ext >&5
8763 ac_cv_prog_cc_works=no
8764fi
8765rm -fr conftest*
8766ac_ext=c
8767# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8768ac_cpp='$CPP $CPPFLAGS'
8769ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8770ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8771cross_compiling=$ac_cv_prog_cc_cross
8772
8773echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
8774if test $ac_cv_prog_cc_works = no; then
8775 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
8776fi
8777echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
04727afd 8778echo "configure:8779: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
698dcdb6
VZ
8779echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
8780cross_compiling=$ac_cv_prog_cc_cross
8781
8782echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
04727afd 8783echo "configure:8784: checking whether we are using GNU C" >&5
698dcdb6
VZ
8784if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
8785 echo $ac_n "(cached) $ac_c" 1>&6
8786else
8787 cat > conftest.c <<EOF
8788#ifdef __GNUC__
8789 yes;
1e487827 8790#endif
698dcdb6 8791EOF
04727afd 8792if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:8793: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
698dcdb6
VZ
8793 ac_cv_prog_gcc=yes
8794else
8795 ac_cv_prog_gcc=no
8796fi
8797fi
1e487827 8798
698dcdb6 8799echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1e487827 8800
698dcdb6
VZ
8801if test $ac_cv_prog_gcc = yes; then
8802 GCC=yes
8803else
8804 GCC=
8805fi
1e487827 8806
698dcdb6
VZ
8807ac_test_CFLAGS="${CFLAGS+set}"
8808ac_save_CFLAGS="$CFLAGS"
8809CFLAGS=
8810echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
04727afd 8811echo "configure:8812: checking whether ${CC-cc} accepts -g" >&5
698dcdb6
VZ
8812if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
8813 echo $ac_n "(cached) $ac_c" 1>&6
8814else
8815 echo 'void f(){}' > conftest.c
8816if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
10f2d63a
VZ
8817 ac_cv_prog_cc_g=yes
8818else
698dcdb6 8819 ac_cv_prog_cc_g=no
10f2d63a 8820fi
698dcdb6
VZ
8821rm -f conftest*
8822
10f2d63a 8823fi
698dcdb6
VZ
8824
8825echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
10f2d63a 8826if test "$ac_test_CFLAGS" = set; then
698dcdb6 8827 CFLAGS="$ac_save_CFLAGS"
10f2d63a
VZ
8828elif test $ac_cv_prog_cc_g = yes; then
8829 if test "$GCC" = yes; then
8830 CFLAGS="-g -O2"
8831 else
8832 CFLAGS="-g"
8833 fi
8834else
8835 if test "$GCC" = yes; then
8836 CFLAGS="-O2"
8837 else
8838 CFLAGS=
8839 fi
8840fi
8841
8842
698dcdb6 8843echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
04727afd 8844echo "configure:8845: checking how to run the C preprocessor" >&5
10f2d63a
VZ
8845# On Suns, sometimes $CPP names a directory.
8846if test -n "$CPP" && test -d "$CPP"; then
8847 CPP=
8848fi
8849if test -z "$CPP"; then
698dcdb6
VZ
8850if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
8851 echo $ac_n "(cached) $ac_c" 1>&6
8852else
8853 # This must be in double quotes, not single quotes, because CPP may get
8854 # substituted into the Makefile and "${CC-cc}" will confuse make.
8855 CPP="${CC-cc} -E"
10f2d63a 8856 # On the NeXT, cc -E runs the code through the compiler's parser,
698dcdb6
VZ
8857 # not just through cpp.
8858 cat > conftest.$ac_ext <<EOF
04727afd 8859#line 8860 "configure"
10f2d63a
VZ
8860#include "confdefs.h"
8861#include <assert.h>
698dcdb6
VZ
8862Syntax Error
8863EOF
8864ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
04727afd 8865{ (eval echo configure:8866: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
8866ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8867if test -z "$ac_err"; then
10f2d63a
VZ
8868 :
8869else
698dcdb6
VZ
8870 echo "$ac_err" >&5
8871 echo "configure: failed program was:" >&5
10f2d63a 8872 cat conftest.$ac_ext >&5
698dcdb6
VZ
8873 rm -rf conftest*
8874 CPP="${CC-cc} -E -traditional-cpp"
8875 cat > conftest.$ac_ext <<EOF
04727afd 8876#line 8877 "configure"
10f2d63a 8877#include "confdefs.h"
698dcdb6
VZ
8878#include <assert.h>
8879Syntax Error
8880EOF
8881ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
04727afd 8882{ (eval echo configure:8883: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
8883ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8884if test -z "$ac_err"; then
8885 :
10f2d63a 8886else
698dcdb6
VZ
8887 echo "$ac_err" >&5
8888 echo "configure: failed program was:" >&5
10f2d63a 8889 cat conftest.$ac_ext >&5
698dcdb6
VZ
8890 rm -rf conftest*
8891 CPP="${CC-cc} -nologo -E"
8892 cat > conftest.$ac_ext <<EOF
04727afd 8893#line 8894 "configure"
10f2d63a
VZ
8894#include "confdefs.h"
8895#include <assert.h>
698dcdb6
VZ
8896Syntax Error
8897EOF
8898ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
04727afd 8899{ (eval echo configure:8900: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
8900ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8901if test -z "$ac_err"; then
10f2d63a
VZ
8902 :
8903else
698dcdb6
VZ
8904 echo "$ac_err" >&5
8905 echo "configure: failed program was:" >&5
10f2d63a 8906 cat conftest.$ac_ext >&5
698dcdb6
VZ
8907 rm -rf conftest*
8908 CPP=/lib/cpp
10f2d63a 8909fi
698dcdb6 8910rm -f conftest*
10f2d63a 8911fi
698dcdb6 8912rm -f conftest*
703e0a69 8913fi
698dcdb6
VZ
8914rm -f conftest*
8915 ac_cv_prog_CPP="$CPP"
8916fi
8917 CPP="$ac_cv_prog_CPP"
10f2d63a 8918else
698dcdb6 8919 ac_cv_prog_CPP="$CPP"
10f2d63a 8920fi
698dcdb6 8921echo "$ac_t""$CPP" 1>&6
10f2d63a 8922
698dcdb6
VZ
8923if test $ac_cv_prog_gcc = yes; then
8924 echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
04727afd 8925echo "configure:8926: checking whether ${CC-cc} needs -traditional" >&5
698dcdb6
VZ
8926if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
8927 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a
VZ
8928else
8929 ac_pattern="Autoconf.*'x'"
698dcdb6 8930 cat > conftest.$ac_ext <<EOF
04727afd 8931#line 8932 "configure"
10f2d63a
VZ
8932#include "confdefs.h"
8933#include <sgtty.h>
8934Autoconf TIOCGETP
698dcdb6 8935EOF
10f2d63a
VZ
8936if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8937 egrep "$ac_pattern" >/dev/null 2>&1; then
698dcdb6 8938 rm -rf conftest*
10f2d63a
VZ
8939 ac_cv_prog_gcc_traditional=yes
8940else
698dcdb6 8941 rm -rf conftest*
10f2d63a
VZ
8942 ac_cv_prog_gcc_traditional=no
8943fi
8944rm -f conftest*
8945
698dcdb6 8946
10f2d63a 8947 if test $ac_cv_prog_gcc_traditional = no; then
698dcdb6 8948 cat > conftest.$ac_ext <<EOF
04727afd 8949#line 8950 "configure"
10f2d63a
VZ
8950#include "confdefs.h"
8951#include <termio.h>
8952Autoconf TCGETA
698dcdb6 8953EOF
10f2d63a
VZ
8954if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8955 egrep "$ac_pattern" >/dev/null 2>&1; then
698dcdb6 8956 rm -rf conftest*
10f2d63a
VZ
8957 ac_cv_prog_gcc_traditional=yes
8958fi
8959rm -f conftest*
8960
8961 fi
8962fi
698dcdb6
VZ
8963
8964echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6
10f2d63a
VZ
8965 if test $ac_cv_prog_gcc_traditional = yes; then
8966 CC="$CC -traditional"
8967 fi
8968fi
8969
703e0a69 8970
698dcdb6
VZ
8971
8972ac_ext=C
8973# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1e487827 8974ac_cpp='$CXXCPP $CPPFLAGS'
698dcdb6
VZ
8975ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8976ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8977cross_compiling=$ac_cv_prog_cxx_cross
8978
8979
ec603395 8980CXXFLAGS=${CXXFLAGS:=}
698dcdb6
VZ
8981for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
8982do
8983# Extract the first word of "$ac_prog", so it can be a program name with args.
8984set dummy $ac_prog; ac_word=$2
8985echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
04727afd 8986echo "configure:8987: checking for $ac_word" >&5
698dcdb6
VZ
8987if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
8988 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a
VZ
8989else
8990 if test -n "$CXX"; then
8991 ac_cv_prog_CXX="$CXX" # Let the user override the test.
8992else
698dcdb6
VZ
8993 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8994 ac_dummy="$PATH"
8995 for ac_dir in $ac_dummy; do
8996 test -z "$ac_dir" && ac_dir=.
8997 if test -f $ac_dir/$ac_word; then
8998 ac_cv_prog_CXX="$ac_prog"
8999 break
9000 fi
9001 done
9002 IFS="$ac_save_ifs"
10f2d63a
VZ
9003fi
9004fi
698dcdb6 9005CXX="$ac_cv_prog_CXX"
10f2d63a 9006if test -n "$CXX"; then
698dcdb6 9007 echo "$ac_t""$CXX" 1>&6
10f2d63a 9008else
698dcdb6 9009 echo "$ac_t""no" 1>&6
10f2d63a
VZ
9010fi
9011
698dcdb6 9012test -n "$CXX" && break
10f2d63a 9013done
698dcdb6 9014test -n "$CXX" || CXX="gcc"
10f2d63a
VZ
9015
9016
698dcdb6 9017echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
04727afd 9018echo "configure:9019: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
10f2d63a 9019
698dcdb6
VZ
9020ac_ext=C
9021# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9022ac_cpp='$CXXCPP $CPPFLAGS'
9023ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9024ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9025cross_compiling=$ac_cv_prog_cxx_cross
703e0a69 9026
698dcdb6
VZ
9027cat > conftest.$ac_ext << EOF
9028
04727afd 9029#line 9030 "configure"
10f2d63a
VZ
9030#include "confdefs.h"
9031
698dcdb6
VZ
9032int main(){return(0);}
9033EOF
04727afd 9034if { (eval echo configure:9035: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
9035 ac_cv_prog_cxx_works=yes
9036 # If we can't run a trivial program, we are probably using a cross compiler.
9037 if (./conftest; exit) 2>/dev/null; then
9038 ac_cv_prog_cxx_cross=no
9039 else
9040 ac_cv_prog_cxx_cross=yes
9041 fi
9042else
9043 echo "configure: failed program was:" >&5
9044 cat conftest.$ac_ext >&5
9045 ac_cv_prog_cxx_works=no
9046fi
9047rm -fr conftest*
9048ac_ext=C
9049# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9050ac_cpp='$CXXCPP $CPPFLAGS'
9051ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9052ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9053cross_compiling=$ac_cv_prog_cxx_cross
9054
9055echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
9056if test $ac_cv_prog_cxx_works = no; then
9057 { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
9058fi
9059echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
04727afd 9060echo "configure:9061: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
698dcdb6
VZ
9061echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
9062cross_compiling=$ac_cv_prog_cxx_cross
9063
9064echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
04727afd 9065echo "configure:9066: checking whether we are using GNU C++" >&5
698dcdb6
VZ
9066if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
9067 echo $ac_n "(cached) $ac_c" 1>&6
9068else
9069 cat > conftest.C <<EOF
9070#ifdef __GNUC__
9071 yes;
10f2d63a 9072#endif
698dcdb6 9073EOF
04727afd 9074if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:9075: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
698dcdb6
VZ
9075 ac_cv_prog_gxx=yes
9076else
9077 ac_cv_prog_gxx=no
9078fi
9079fi
10f2d63a 9080
698dcdb6 9081echo "$ac_t""$ac_cv_prog_gxx" 1>&6
10f2d63a 9082
698dcdb6
VZ
9083if test $ac_cv_prog_gxx = yes; then
9084 GXX=yes
9085else
9086 GXX=
9087fi
10f2d63a 9088
698dcdb6
VZ
9089ac_test_CXXFLAGS="${CXXFLAGS+set}"
9090ac_save_CXXFLAGS="$CXXFLAGS"
9091CXXFLAGS=
9092echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
04727afd 9093echo "configure:9094: checking whether ${CXX-g++} accepts -g" >&5
698dcdb6
VZ
9094if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
9095 echo $ac_n "(cached) $ac_c" 1>&6
9096else
9097 echo 'void f(){}' > conftest.cc
9098if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
10f2d63a
VZ
9099 ac_cv_prog_cxx_g=yes
9100else
698dcdb6 9101 ac_cv_prog_cxx_g=no
10f2d63a 9102fi
698dcdb6
VZ
9103rm -f conftest*
9104
10f2d63a 9105fi
698dcdb6
VZ
9106
9107echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
10f2d63a 9108if test "$ac_test_CXXFLAGS" = set; then
698dcdb6 9109 CXXFLAGS="$ac_save_CXXFLAGS"
10f2d63a
VZ
9110elif test $ac_cv_prog_cxx_g = yes; then
9111 if test "$GXX" = yes; then
9112 CXXFLAGS="-g -O2"
9113 else
9114 CXXFLAGS="-g"
9115 fi
9116else
9117 if test "$GXX" = yes; then
9118 CXXFLAGS="-O2"
9119 else
9120 CXXFLAGS=
9121 fi
9122fi
9123
9124
10f2d63a 9125ac_ext=c
698dcdb6 9126# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10f2d63a 9127ac_cpp='$CPP $CPPFLAGS'
698dcdb6
VZ
9128ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9129ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9130cross_compiling=$ac_cv_prog_cc_cross
9131
9132
9133# Extract the first word of "ranlib", so it can be a program name with args.
9134set dummy ranlib; ac_word=$2
9135echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
04727afd 9136echo "configure:9137: checking for $ac_word" >&5
698dcdb6
VZ
9137if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
9138 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a
VZ
9139else
9140 if test -n "$RANLIB"; then
9141 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9142else
698dcdb6
VZ
9143 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9144 ac_dummy="$PATH"
9145 for ac_dir in $ac_dummy; do
9146 test -z "$ac_dir" && ac_dir=.
9147 if test -f $ac_dir/$ac_word; then
9148 ac_cv_prog_RANLIB="ranlib"
9149 break
9150 fi
9151 done
9152 IFS="$ac_save_ifs"
9153 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
10f2d63a
VZ
9154fi
9155fi
698dcdb6 9156RANLIB="$ac_cv_prog_RANLIB"
10f2d63a 9157if test -n "$RANLIB"; then
698dcdb6 9158 echo "$ac_t""$RANLIB" 1>&6
10f2d63a 9159else
698dcdb6 9160 echo "$ac_t""no" 1>&6
10f2d63a
VZ
9161fi
9162
9163
9164# Extract the first word of "ar", so it can be a program name with args.
9165set dummy ar; ac_word=$2
698dcdb6 9166echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
04727afd 9167echo "configure:9168: checking for $ac_word" >&5
698dcdb6
VZ
9168if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
9169 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a
VZ
9170else
9171 if test -n "$AR"; then
9172 ac_cv_prog_AR="$AR" # Let the user override the test.
9173else
698dcdb6
VZ
9174 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9175 ac_dummy="$PATH"
9176 for ac_dir in $ac_dummy; do
9177 test -z "$ac_dir" && ac_dir=.
9178 if test -f $ac_dir/$ac_word; then
9179 ac_cv_prog_AR="ar"
9180 break
9181 fi
9182 done
9183 IFS="$ac_save_ifs"
10f2d63a
VZ
9184 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
9185fi
9186fi
698dcdb6 9187AR="$ac_cv_prog_AR"
10f2d63a 9188if test -n "$AR"; then
698dcdb6 9189 echo "$ac_t""$AR" 1>&6
10f2d63a 9190else
698dcdb6 9191 echo "$ac_t""no" 1>&6
10f2d63a
VZ
9192fi
9193
698dcdb6 9194
6054113a 9195# Find a good install program. We prefer a C program (faster),
10f2d63a
VZ
9196# so one script is as good as another. But avoid the broken or
9197# incompatible versions:
9198# SysV /etc/install, /usr/sbin/install
9199# SunOS /usr/etc/install
9200# IRIX /sbin/install
9201# AIX /bin/install
9202# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
9203# AFS /usr/afsws/bin/install, which mishandles nonexistent args
9204# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
9205# ./install, which can be erroneously created by make from ./install.sh.
698dcdb6 9206echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
04727afd 9207echo "configure:9208: checking for a BSD compatible install" >&5
10f2d63a 9208if test -z "$INSTALL"; then
698dcdb6
VZ
9209if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
9210 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 9211else
698dcdb6 9212 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
10f2d63a
VZ
9213 for ac_dir in $PATH; do
9214 # Account for people who put trailing slashes in PATH elements.
698dcdb6
VZ
9215 case "$ac_dir/" in
9216 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
10f2d63a
VZ
9217 *)
9218 # OSF1 and SCO ODT 3.0 have their own names for install.
9219 # Don't use installbsd from OSF since it installs stuff as root
9220 # by default.
9221 for ac_prog in ginstall scoinst install; do
698dcdb6 9222 if test -f $ac_dir/$ac_prog; then
10f2d63a 9223 if test $ac_prog = install &&
698dcdb6 9224 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
10f2d63a
VZ
9225 # AIX install. It has an incompatible calling convention.
9226 :
9227 else
9228 ac_cv_path_install="$ac_dir/$ac_prog -c"
9229 break 2
9230 fi
9231 fi
9232 done
9233 ;;
9234 esac
9235 done
698dcdb6 9236 IFS="$ac_save_IFS"
10f2d63a
VZ
9237
9238fi
9239 if test "${ac_cv_path_install+set}" = set; then
698dcdb6 9240 INSTALL="$ac_cv_path_install"
10f2d63a
VZ
9241 else
9242 # As a last resort, use the slow shell script. We don't cache a
9243 # path for INSTALL within a source directory, because that will
9244 # break other packages using the cache if that directory is
9245 # removed, or if the path is relative.
698dcdb6 9246 INSTALL="$ac_install_sh"
10f2d63a
VZ
9247 fi
9248fi
698dcdb6 9249echo "$ac_t""$INSTALL" 1>&6
10f2d63a
VZ
9250
9251# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
9252# It thinks the first close brace ends the variable substitution.
9253test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
9254
698dcdb6 9255test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
10f2d63a
VZ
9256
9257test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
9258
6054113a
GD
9259case "${host}" in
9260
b5853384 9261 powerpc-*-darwin* )
eb99ae0b
GD
9262 INSTALL_PROGRAM="cp -fp"
9263 INSTALL_DATA="cp -fp"
6054113a
GD
9264 ;;
9265 *)
9266 ;;
d6853540 9267esac
698dcdb6 9268
10f2d63a
VZ
9269# Extract the first word of "strip", so it can be a program name with args.
9270set dummy strip; ac_word=$2
698dcdb6 9271echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
04727afd 9272echo "configure:9273: checking for $ac_word" >&5
698dcdb6
VZ
9273if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
9274 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a
VZ
9275else
9276 if test -n "$STRIP"; then
9277 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9278else
698dcdb6
VZ
9279 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9280 ac_dummy="$PATH"
9281 for ac_dir in $ac_dummy; do
9282 test -z "$ac_dir" && ac_dir=.
9283 if test -f $ac_dir/$ac_word; then
9284 ac_cv_prog_STRIP="strip"
9285 break
9286 fi
9287 done
9288 IFS="$ac_save_ifs"
10f2d63a
VZ
9289 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="true"
9290fi
9291fi
698dcdb6 9292STRIP="$ac_cv_prog_STRIP"
10f2d63a 9293if test -n "$STRIP"; then
698dcdb6 9294 echo "$ac_t""$STRIP" 1>&6
10f2d63a 9295else
698dcdb6 9296 echo "$ac_t""no" 1>&6
10f2d63a
VZ
9297fi
9298
698dcdb6 9299
414eab6d 9300echo $ac_n "checking if make is GNU make""... $ac_c" 1>&6
04727afd 9301echo "configure:9302: checking if make is GNU make" >&5
414eab6d
VZ
9302if eval "test \"`echo '$''{'wx_cv_prog_makeisgnu'+set}'`\" = set"; then
9303 echo $ac_n "(cached) $ac_c" 1>&6
9304else
9305
9306 if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
d558c907 9307 egrep -s GNU > /dev/null); then
414eab6d
VZ
9308 wx_cv_prog_makeisgnu="yes"
9309 else
9310 wx_cv_prog_makeisgnu="no"
9311 fi
9312
9313fi
9314
9315echo "$ac_t""$wx_cv_prog_makeisgnu" 1>&6
9316
9317if test "x$wx_cv_prog_makeisgnu" = "xyes"; then
9318 IF_GNU_MAKE=""
9319else
9320 IF_GNU_MAKE="#"
9321fi
9322
9323
9324
9325if test "x$wx_cv_prog_makeisgnu" != "xyes"; then
04e7a216 9326echo $ac_n "checking if make supports VPATH""... $ac_c" 1>&6
04727afd 9327echo "configure:9328: checking if make supports VPATH" >&5
04e7a216
VZ
9328if eval "test \"`echo '$''{'wx_cv_prog_makevpath'+set}'`\" = set"; then
9329 echo $ac_n "(cached) $ac_c" 1>&6
9330else
9331
10f2d63a
VZ
9332cat - << EOF > confMake
9333check : file
9334 cp \$? \$@
9335 cp \$? final_file
9336EOF
9337
9338if test ! -d sub ; then
9339 mkdir sub
9340fi
9341echo dummy > sub/file
f6bcfd97 9342${MAKE-make} -f confMake VPATH=sub 2>&5 > /dev/null
10f2d63a
VZ
9343RESULT=$?
9344rm -f sub/file check final_file confMake
9345rmdir sub
9346if test "$RESULT" = 0; then
04e7a216 9347 wx_cv_prog_makevpath="yes"
10f2d63a 9348else
04e7a216
VZ
9349 wx_cv_prog_makevpath="no"
9350fi
9351
9352fi
9353
9354echo "$ac_t""$wx_cv_prog_makevpath" 1>&6
9355
9356if test "x$wx_cv_prog_makevpath" != "xyes"; then
9357{ echo "configure: error:
1e487827
VS
9358You need a make-utility that is able to use the variable
9359VPATH correctly.
9360If your version of make does not support VPATH correctly,
9361please install GNU-make (possibly as gmake), and start
9362configure with the following command:
9363export MAKE=gmake; ./configure for sh-type shells
9364setenv MAKE gmake; ./configure for csh-type shells
9365Also please do remember to use gmake in this case every time
9366you are trying to compile.
698dcdb6 9367" 1>&2; exit 1; }
414eab6d 9368fi fi
10f2d63a
VZ
9369for ac_prog in 'bison -y' byacc
9370do
698dcdb6 9371# Extract the first word of "$ac_prog", so it can be a program name with args.
10f2d63a 9372set dummy $ac_prog; ac_word=$2
698dcdb6 9373echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
04727afd 9374echo "configure:9375: checking for $ac_word" >&5
698dcdb6
VZ
9375if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
9376 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a
VZ
9377else
9378 if test -n "$YACC"; then
9379 ac_cv_prog_YACC="$YACC" # Let the user override the test.
9380else
698dcdb6
VZ
9381 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9382 ac_dummy="$PATH"
9383 for ac_dir in $ac_dummy; do
9384 test -z "$ac_dir" && ac_dir=.
9385 if test -f $ac_dir/$ac_word; then
9386 ac_cv_prog_YACC="$ac_prog"
9387 break
9388 fi
9389 done
9390 IFS="$ac_save_ifs"
10f2d63a
VZ
9391fi
9392fi
698dcdb6 9393YACC="$ac_cv_prog_YACC"
10f2d63a 9394if test -n "$YACC"; then
698dcdb6 9395 echo "$ac_t""$YACC" 1>&6
10f2d63a 9396else
698dcdb6 9397 echo "$ac_t""no" 1>&6
10f2d63a
VZ
9398fi
9399
698dcdb6 9400test -n "$YACC" && break
10f2d63a
VZ
9401done
9402test -n "$YACC" || YACC="yacc"
9403
698dcdb6
VZ
9404
9405# Extract the first word of "flex", so it can be a program name with args.
9406set dummy flex; ac_word=$2
9407echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
04727afd 9408echo "configure:9409: checking for $ac_word" >&5
698dcdb6
VZ
9409if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
9410 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a
VZ
9411else
9412 if test -n "$LEX"; then
9413 ac_cv_prog_LEX="$LEX" # Let the user override the test.
9414else
698dcdb6
VZ
9415 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9416 ac_dummy="$PATH"
9417 for ac_dir in $ac_dummy; do
9418 test -z "$ac_dir" && ac_dir=.
9419 if test -f $ac_dir/$ac_word; then
9420 ac_cv_prog_LEX="flex"
9421 break
9422 fi
9423 done
9424 IFS="$ac_save_ifs"
9425 test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex"
10f2d63a
VZ
9426fi
9427fi
698dcdb6 9428LEX="$ac_cv_prog_LEX"
10f2d63a 9429if test -n "$LEX"; then
698dcdb6 9430 echo "$ac_t""$LEX" 1>&6
10f2d63a 9431else
698dcdb6 9432 echo "$ac_t""no" 1>&6
10f2d63a
VZ
9433fi
9434
9435if test -z "$LEXLIB"
9436then
698dcdb6
VZ
9437 case "$LEX" in
9438 flex*) ac_lib=fl ;;
9439 *) ac_lib=l ;;
9440 esac
9441 echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
04727afd 9442echo "configure:9443: checking for yywrap in -l$ac_lib" >&5
698dcdb6
VZ
9443ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
9444if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9445 echo $ac_n "(cached) $ac_c" 1>&6
9446else
9447 ac_save_LIBS="$LIBS"
9448LIBS="-l$ac_lib $LIBS"
9449cat > conftest.$ac_ext <<EOF
04727afd 9450#line 9451 "configure"
10f2d63a
VZ
9451#include "confdefs.h"
9452/* Override any gcc2 internal prototype to avoid an error. */
9453/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
9454 builtin and then its argument prototype would still apply. */
9455char yywrap();
10f2d63a 9456
698dcdb6
VZ
9457int main() {
9458yywrap()
9459; return 0; }
9460EOF
04727afd 9461if { (eval echo configure:9462: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
9462 rm -rf conftest*
9463 eval "ac_cv_lib_$ac_lib_var=yes"
10f2d63a 9464else
698dcdb6
VZ
9465 echo "configure: failed program was:" >&5
9466 cat conftest.$ac_ext >&5
9467 rm -rf conftest*
9468 eval "ac_cv_lib_$ac_lib_var=no"
10f2d63a 9469fi
698dcdb6
VZ
9470rm -f conftest*
9471LIBS="$ac_save_LIBS"
9472
10f2d63a 9473fi
698dcdb6
VZ
9474if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9475 echo "$ac_t""yes" 1>&6
9476 LEXLIB="-l$ac_lib"
9477else
9478 echo "$ac_t""no" 1>&6
10f2d63a
VZ
9479fi
9480
9481fi
9482
9483
698dcdb6 9484echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
04727afd 9485echo "configure:9486: checking whether ln -s works" >&5
698dcdb6
VZ
9486if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
9487 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 9488else
698dcdb6
VZ
9489 rm -f conftestdata
9490if ln -s X conftestdata 2>/dev/null
9491then
9492 rm -f conftestdata
9493 ac_cv_prog_LN_S="ln -s"
10f2d63a 9494else
698dcdb6 9495 ac_cv_prog_LN_S=ln
10f2d63a
VZ
9496fi
9497fi
698dcdb6
VZ
9498LN_S="$ac_cv_prog_LN_S"
9499if test "$ac_cv_prog_LN_S" = "ln -s"; then
9500 echo "$ac_t""yes" 1>&6
10f2d63a 9501else
698dcdb6 9502 echo "$ac_t""no" 1>&6
10f2d63a
VZ
9503fi
9504
9505
9506
9507SEARCH_INCLUDE="\
9508 /usr/local/include \
9509 \
9510 /usr/Motif-1.2/include \
9511 /usr/Motif-2.1/include \
9512 \
9513 /usr/include/Motif1.2 \
9514 /opt/xpm/include/X11 \
9515 /opt/GBxpm/include/ \
9516 /opt/GBxpm/X11/include/ \
9517 \
9518 /usr/Motif1.2/include \
9519 /usr/dt/include \
afc31813
VZ
9520 /usr/openwin/include \
9521 \
10f2d63a
VZ
9522 /usr/include/Xm \
9523 \
9524 /usr/X11R6/include \
afc31813 9525 /usr/X11R6.4/include \
10f2d63a
VZ
9526 /usr/X11R5/include \
9527 /usr/X11R4/include \
9528 \
10f2d63a
VZ
9529 /usr/include/X11R6 \
9530 /usr/include/X11R5 \
9531 /usr/include/X11R4 \
9532 \
9533 /usr/local/X11R6/include \
9534 /usr/local/X11R5/include \
9535 /usr/local/X11R4/include \
9536 \
9537 /usr/local/include/X11R6 \
9538 /usr/local/include/X11R5 \
9539 /usr/local/include/X11R4 \
9540 \
9541 /usr/X11/include \
9542 /usr/include/X11 \
9543 /usr/local/X11/include \
9544 /usr/local/include/X11 \
9545 \
9546 /usr/X386/include \
9547 /usr/x386/include \
9548 /usr/XFree86/include/X11 \
9549 \
cf27ef00 9550 X:/XFree86/include \
ec14dd32
VZ
9551 X:/XFree86/include/X11 \
9552 \
10f2d63a
VZ
9553 /usr/include/gtk \
9554 /usr/local/include/gtk \
9555 /usr/include/glib \
9556 /usr/local/include/glib \
9557 \
9558 /usr/include/qt \
9559 /usr/local/include/qt \
9560 \
9561 /usr/include/windows \
9562 /usr/include/wine \
9563 /usr/local/include/wine \
9564 \
9565 /usr/unsupported/include \
9566 /usr/athena/include \
9567 /usr/local/x11r5/include \
9568 /usr/lpp/Xamples/include \
9569 \
10f2d63a 9570 /usr/openwin/share/include \
928b5c08
VZ
9571 \
9572 /usr/include"
10f2d63a
VZ
9573
9574SEARCH_LIB="`echo "$SEARCH_INCLUDE" | sed s/include/lib/g` "
9575
698dcdb6
VZ
9576
9577cat > confcache <<\EOF
10f2d63a
VZ
9578# This file is a shell script that caches the results of configure
9579# tests run on this system so they can be shared between configure
698dcdb6
VZ
9580# scripts and configure runs. It is not useful on other systems.
9581# If it contains results you don't want to keep, you may remove or edit it.
10f2d63a 9582#
698dcdb6
VZ
9583# By default, configure uses ./config.cache as the cache file,
9584# creating it if it does not exist already. You can give configure
9585# the --cache-file=FILE option to use a different cache file; that is
9586# what configure does when it calls configure scripts in
9587# subdirectories, so they share the cache.
9588# Giving --cache-file=/dev/null disables caching, for debugging configure.
9589# config.status only pays attention to the cache file if you give it the
9590# --recheck option to rerun configure.
10f2d63a 9591#
698dcdb6 9592EOF
10f2d63a
VZ
9593# The following way of writing the cache mishandles newlines in values,
9594# but we know of no workaround that is simple, portable, and efficient.
9595# So, don't put newlines in cache variables' values.
9596# Ultrix sh set writes to stderr and can't be redirected directly,
9597# and sets the high bit in the cache file unless we assign to the vars.
698dcdb6
VZ
9598(set) 2>&1 |
9599 case `(ac_space=' '; set | grep ac_space) 2>&1` in
9600 *ac_space=\ *)
9601 # `set' does not quote correctly, so add quotes (double-quote substitution
9602 # turns \\\\ into \\, and sed turns \\ into \).
9603 sed -n \
9604 -e "s/'/'\\\\''/g" \
9605 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
9606 ;;
9607 *)
9608 # `set' quotes correctly as required by POSIX, so do not add quotes.
9609 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
9610 ;;
9611 esac >> confcache
9612if cmp -s $cache_file confcache; then
9613 :
9614else
10f2d63a 9615 if test -w $cache_file; then
698dcdb6
VZ
9616 echo "updating cache $cache_file"
9617 cat confcache > $cache_file
10f2d63a
VZ
9618 else
9619 echo "not updating unwritable cache $cache_file"
9620 fi
9621fi
9622rm -f confcache
9623
698dcdb6
VZ
9624
9625
4f14bcd8 9626
18dbb1f6
VZ
9627REGEX_INCLUDE=
9628if test "$wxUSE_REGEX" != "no"; then
4f14bcd8
GD
9629 cat >> confdefs.h <<\EOF
9630#define wxUSE_REGEX 1
9631EOF
9632
9633
9634 if test "$wxUSE_REGEX" = "sys" -o "$wxUSE_REGEX" = "yes" ; then
9635 ac_safe=`echo "regex.h" | sed 'y%./+-%__p_%'`
18dbb1f6 9636echo $ac_n "checking for regex.h""... $ac_c" 1>&6
04727afd 9637echo "configure:9638: checking for regex.h" >&5
18dbb1f6
VZ
9638if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9639 echo $ac_n "(cached) $ac_c" 1>&6
9640else
9641 cat > conftest.$ac_ext <<EOF
04727afd 9642#line 9643 "configure"
18dbb1f6
VZ
9643#include "confdefs.h"
9644#include <regex.h>
9645EOF
9646ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
04727afd 9647{ (eval echo configure:9648: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
18dbb1f6
VZ
9648ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9649if test -z "$ac_err"; then
9650 rm -rf conftest*
9651 eval "ac_cv_header_$ac_safe=yes"
9652else
9653 echo "$ac_err" >&5
9654 echo "configure: failed program was:" >&5
9655 cat conftest.$ac_ext >&5
9656 rm -rf conftest*
9657 eval "ac_cv_header_$ac_safe=no"
9658fi
9659rm -f conftest*
9660fi
9661if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9662 echo "$ac_t""yes" 1>&6
9663 for ac_func in regcomp
9664do
9665echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
04727afd 9666echo "configure:9667: checking for $ac_func" >&5
18dbb1f6
VZ
9667if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9668 echo $ac_n "(cached) $ac_c" 1>&6
9669else
9670 cat > conftest.$ac_ext <<EOF
04727afd 9671#line 9672 "configure"
18dbb1f6
VZ
9672#include "confdefs.h"
9673/* System header to define __stub macros and hopefully few prototypes,
9674 which can conflict with char $ac_func(); below. */
9675#include <assert.h>
9676/* Override any gcc2 internal prototype to avoid an error. */
9677/* We use char because int might match the return type of a gcc2
9678 builtin and then its argument prototype would still apply. */
9679char $ac_func();
9680
9681int main() {
9682
9683/* The GNU C library defines this for functions which it implements
9684 to always fail with ENOSYS. Some functions are actually named
9685 something starting with __ and the normal name is an alias. */
9686#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9687choke me
9688#else
9689$ac_func();
9690#endif
9691
9692; return 0; }
9693EOF
04727afd 9694if { (eval echo configure:9695: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18dbb1f6
VZ
9695 rm -rf conftest*
9696 eval "ac_cv_func_$ac_func=yes"
9697else
9698 echo "configure: failed program was:" >&5
9699 cat conftest.$ac_ext >&5
9700 rm -rf conftest*
9701 eval "ac_cv_func_$ac_func=no"
9702fi
9703rm -f conftest*
9704fi
9705
9706if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9707 echo "$ac_t""yes" 1>&6
9708 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9709 cat >> confdefs.h <<EOF
9710#define $ac_tr_func 1
9711EOF
9712
9713else
9714 echo "$ac_t""no" 1>&6
9715fi
9716done
9717
9718else
9719 echo "$ac_t""no" 1>&6
9720fi
9721
9722
4f14bcd8
GD
9723 if test "x$ac_cv_func_regcomp" != "xyes"; then
9724 if test "$wxUSE_REGEX" = "sys" ; then
9725 { echo "configure: error: system regex library not found! Use --with-regex to use built-in version" 1>&2; exit 1; }
9726 else
a3df447d 9727 echo "configure: warning: system regex library not found, will use built-in instead" 1>&2
4f14bcd8
GD
9728 wxUSE_REGEX=builtin
9729 fi
9730 else
9731 wxUSE_REGEX=sys
18dbb1f6 9732 fi
18dbb1f6
VZ
9733 fi
9734
4f14bcd8
GD
9735 if test "$wxUSE_REGEX" = "builtin" ; then
9736 REGEX_INCLUDE="-I\${top_srcdir}/src/regex"
9737 fi
18dbb1f6
VZ
9738fi
9739
9740
4f14bcd8
GD
9741ZLIB_INCLUDE=
9742ZLIB_LINK=
9743if test "$wxUSE_ZLIB" != "no" ; then
9744 cat >> confdefs.h <<\EOF
9745#define wxUSE_ZLIB 1
9746EOF
dad6c0ea 9747
10f2d63a 9748
4f14bcd8
GD
9749 if test "$wxUSE_ZLIB" = "sys" -o "$wxUSE_ZLIB" = "yes" ; then
9750 ac_safe=`echo "zlib.h" | sed 'y%./+-%__p_%'`
9751echo $ac_n "checking for zlib.h""... $ac_c" 1>&6
04727afd 9752echo "configure:9753: checking for zlib.h" >&5
3a922bb4
RL
9753if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9754 echo $ac_n "(cached) $ac_c" 1>&6
9755else
9756 cat > conftest.$ac_ext <<EOF
04727afd 9757#line 9758 "configure"
3a922bb4 9758#include "confdefs.h"
4f14bcd8 9759#include <zlib.h>
3a922bb4
RL
9760EOF
9761ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
04727afd 9762{ (eval echo configure:9763: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3a922bb4
RL
9763ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9764if test -z "$ac_err"; then
9765 rm -rf conftest*
9766 eval "ac_cv_header_$ac_safe=yes"
9767else
9768 echo "$ac_err" >&5
9769 echo "configure: failed program was:" >&5
9770 cat conftest.$ac_ext >&5
9771 rm -rf conftest*
9772 eval "ac_cv_header_$ac_safe=no"
9773fi
9774rm -f conftest*
9775fi
9776if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9777 echo "$ac_t""yes" 1>&6
4f14bcd8 9778 echo $ac_n "checking for deflate in -lz""... $ac_c" 1>&6
04727afd 9779echo "configure:9780: checking for deflate in -lz" >&5
4f14bcd8
GD
9780ac_lib_var=`echo z'_'deflate | sed 'y%./+-%__p_%'`
9781if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9782 echo $ac_n "(cached) $ac_c" 1>&6
9783else
9784 ac_save_LIBS="$LIBS"
9785LIBS="-lz $LIBS"
9786cat > conftest.$ac_ext <<EOF
04727afd 9787#line 9788 "configure"
4f14bcd8
GD
9788#include "confdefs.h"
9789/* Override any gcc2 internal prototype to avoid an error. */
9790/* We use char because int might match the return type of a gcc2
9791 builtin and then its argument prototype would still apply. */
9792char deflate();
9793
9794int main() {
9795deflate()
9796; return 0; }
3a922bb4 9797EOF
04727afd 9798if { (eval echo configure:9799: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4f14bcd8
GD
9799 rm -rf conftest*
9800 eval "ac_cv_lib_$ac_lib_var=yes"
9801else
9802 echo "configure: failed program was:" >&5
9803 cat conftest.$ac_ext >&5
9804 rm -rf conftest*
9805 eval "ac_cv_lib_$ac_lib_var=no"
9806fi
9807rm -f conftest*
9808LIBS="$ac_save_LIBS"
9809
9810fi
9811if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9812 echo "$ac_t""yes" 1>&6
3d63bc3a 9813 ZLIB_LINK=" -lz"
3a922bb4
RL
9814else
9815 echo "$ac_t""no" 1>&6
9816fi
10f2d63a 9817
4f14bcd8
GD
9818else
9819 echo "$ac_t""no" 1>&6
9820fi
9821
9822
9823 if test "x$ZLIB_LINK" = "x" ; then
9824 if test "$wxUSE_ZLIB" = "sys" ; then
9825 { echo "configure: error: system zlib compression library not found! Use --with-zlib=builtin to use built-in version" 1>&2; exit 1; }
9826 else
a3df447d 9827 echo "configure: warning: system zlib compression library not found, will use built-in instead" 1>&2
4f14bcd8
GD
9828 wxUSE_ZLIB=builtin
9829 fi
9830 else
9831 wxUSE_ZLIB=sys
9832 fi
9833 fi
9834
9835 if test "$wxUSE_ZLIB" = "builtin" ; then
9836 ZLIB_INCLUDE="-I\${top_srcdir}/src/zlib"
9837 fi
9838fi
9839
9840
9841PNG_INCLUDE=
9842PNG_LINK=
9843if test "$wxUSE_LIBPNG" != "no" ; then
9844 cat >> confdefs.h <<\EOF
9845#define wxUSE_LIBPNG 1
9846EOF
9847
81809c07
VS
9848
9849 if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBPNG" = "builtin" ; then
9850 echo "configure: warning: wxMGL doesn't work with builtin png library, will use MGL one instead" 1>&2
9851 wxUSE_LIBPNG=sys
9852 fi
4f14bcd8 9853
81809c07 9854 if test "$wxUSE_MGL" != 1 -a "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then
a3df447d 9855 echo "configure: warning: system png library doesn't work without system zlib, will use built-in instead" 1>&2
4f14bcd8
GD
9856 wxUSE_LIBPNG=builtin
9857 fi
9858
81809c07
VS
9859 if test "$wxUSE_MGL" != 1 ; then
9860 if test "$wxUSE_LIBPNG" = "sys" -o "$wxUSE_LIBPNG" = "yes" ; then
9861 ac_safe=`echo "png.h" | sed 'y%./+-%__p_%'`
4f14bcd8 9862echo $ac_n "checking for png.h""... $ac_c" 1>&6
04727afd 9863echo "configure:9864: checking for png.h" >&5
d4158b5d
VS
9864if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9865 echo $ac_n "(cached) $ac_c" 1>&6
9866else
9867 cat > conftest.$ac_ext <<EOF
04727afd 9868#line 9869 "configure"
d4158b5d 9869#include "confdefs.h"
4f14bcd8 9870#include <png.h>
d4158b5d
VS
9871EOF
9872ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
04727afd 9873{ (eval echo configure:9874: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
d4158b5d
VS
9874ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9875if test -z "$ac_err"; then
9876 rm -rf conftest*
9877 eval "ac_cv_header_$ac_safe=yes"
9878else
9879 echo "$ac_err" >&5
9880 echo "configure: failed program was:" >&5
9881 cat conftest.$ac_ext >&5
9882 rm -rf conftest*
9883 eval "ac_cv_header_$ac_safe=no"
9884fi
9885rm -f conftest*
9886fi
9887if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9888 echo "$ac_t""yes" 1>&6
4f14bcd8 9889 echo $ac_n "checking for png_check_sig in -lpng""... $ac_c" 1>&6
04727afd 9890echo "configure:9891: checking for png_check_sig in -lpng" >&5
4f14bcd8
GD
9891ac_lib_var=`echo png'_'png_check_sig | sed 'y%./+-%__p_%'`
9892if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3a922bb4
RL
9893 echo $ac_n "(cached) $ac_c" 1>&6
9894else
4f14bcd8
GD
9895 ac_save_LIBS="$LIBS"
9896LIBS="-lpng -lz -lm $LIBS"
9897cat > conftest.$ac_ext <<EOF
04727afd 9898#line 9899 "configure"
3a922bb4 9899#include "confdefs.h"
4f14bcd8
GD
9900/* Override any gcc2 internal prototype to avoid an error. */
9901/* We use char because int might match the return type of a gcc2
9902 builtin and then its argument prototype would still apply. */
9903char png_check_sig();
f6bcfd97 9904
4f14bcd8
GD
9905int main() {
9906png_check_sig()
3a922bb4
RL
9907; return 0; }
9908EOF
04727afd 9909if { (eval echo configure:9910: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3a922bb4 9910 rm -rf conftest*
4f14bcd8 9911 eval "ac_cv_lib_$ac_lib_var=yes"
3a922bb4
RL
9912else
9913 echo "configure: failed program was:" >&5
9914 cat conftest.$ac_ext >&5
9915 rm -rf conftest*
4f14bcd8 9916 eval "ac_cv_lib_$ac_lib_var=no"
3a922bb4
RL
9917fi
9918rm -f conftest*
4f14bcd8 9919LIBS="$ac_save_LIBS"
10f2d63a 9920
4f14bcd8
GD
9921fi
9922if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9923 echo "$ac_t""yes" 1>&6
3d63bc3a 9924 PNG_LINK=" -lpng"
4f14bcd8
GD
9925else
9926 echo "$ac_t""no" 1>&6
9927fi
32832908 9928
81809c07 9929
4f14bcd8
GD
9930else
9931 echo "$ac_t""no" 1>&6
9932fi
3a922bb4 9933
7b7a7637 9934
81809c07
VS
9935 if test "x$PNG_LINK" = "x" ; then
9936 if test "$wxUSE_LIBPNG" = "sys" ; then
9937 { echo "configure: error: system png library not found! Use --with-libpng=builtin to use built-in version" 1>&2; exit 1; }
9938 else
9939 echo "configure: warning: system png library not found, will use built-in instead" 1>&2
9940 wxUSE_LIBPNG=builtin
9941 fi
4f14bcd8 9942 else
81809c07 9943 wxUSE_LIBPNG=yes
4f14bcd8 9944 fi
4f14bcd8 9945 fi
3a922bb4
RL
9946 fi
9947
4f14bcd8
GD
9948 if test "$wxUSE_LIBPNG" = "builtin" ; then
9949 PNG_INCLUDE="-I\${top_srcdir}/src/png"
3a922bb4
RL
9950 fi
9951
4f14bcd8 9952 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png"
3a922bb4
RL
9953fi
9954
32832908 9955
4f14bcd8
GD
9956JPEG_INCLUDE=
9957JPEG_LINK=
9958if test "$wxUSE_LIBJPEG" != "no" ; then
9959 cat >> confdefs.h <<\EOF
9960#define wxUSE_LIBJPEG 1
9961EOF
10f2d63a 9962
8168de4c 9963
81809c07
VS
9964 if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBJPEG" = "builtin" ; then
9965 echo "configure: warning: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" 1>&2
9966 wxUSE_LIBJPEG=sys
9967 fi
9968
9969 if test "$wxUSE_MGL" != 1 ; then
9970 if test "$wxUSE_LIBJPEG" = "sys" -o "$wxUSE_LIBJPEG" = "yes" ; then
9971 echo $ac_n "checking for jpeglib.h""... $ac_c" 1>&6
04727afd 9972echo "configure:9973: checking for jpeglib.h" >&5
81809c07 9973 if eval "test \"`echo '$''{'ac_cv_header_jpeglib_h'+set}'`\" = set"; then
8168de4c
VZ
9974 echo $ac_n "(cached) $ac_c" 1>&6
9975else
4f14bcd8 9976 cat > conftest.$ac_ext <<EOF
04727afd 9977#line 9978 "configure"
4f14bcd8 9978#include "confdefs.h"
8168de4c 9979
81809c07
VS
9980 #undef HAVE_STDLIB_H
9981 #include <stdio.h>
9982 #include <jpeglib.h>
9983
4f14bcd8
GD
9984int main() {
9985
81809c07 9986
4f14bcd8
GD
9987; return 0; }
9988EOF
04727afd 9989if { (eval echo configure:9990: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4f14bcd8
GD
9990 rm -rf conftest*
9991 ac_cv_header_jpeglib_h=yes
6f72b082 9992else
4f14bcd8
GD
9993 echo "configure: failed program was:" >&5
9994 cat conftest.$ac_ext >&5
9995 rm -rf conftest*
9996 ac_cv_header_jpeglib_h=no
81809c07 9997
4f14bcd8
GD
9998fi
9999rm -f conftest*
81809c07 10000
698dcdb6 10001fi
6f72b082 10002
81809c07 10003 echo "$ac_t""$ac_cv_header_jpeglib_h" 1>&6
4f14bcd8 10004
81809c07
VS
10005 if test "$ac_cv_header_jpeglib_h" = "yes"; then
10006 echo $ac_n "checking for jpeg_read_header in -ljpeg""... $ac_c" 1>&6
04727afd 10007echo "configure:10008: checking for jpeg_read_header in -ljpeg" >&5
4f14bcd8
GD
10008ac_lib_var=`echo jpeg'_'jpeg_read_header | sed 'y%./+-%__p_%'`
10009if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10010 echo $ac_n "(cached) $ac_c" 1>&6
6f72b082 10011else
4f14bcd8
GD
10012 ac_save_LIBS="$LIBS"
10013LIBS="-ljpeg $LIBS"
10014cat > conftest.$ac_ext <<EOF
04727afd 10015#line 10016 "configure"
4f14bcd8
GD
10016#include "confdefs.h"
10017/* Override any gcc2 internal prototype to avoid an error. */
10018/* We use char because int might match the return type of a gcc2
10019 builtin and then its argument prototype would still apply. */
10020char jpeg_read_header();
698dcdb6 10021
4f14bcd8
GD
10022int main() {
10023jpeg_read_header()
10024; return 0; }
10025EOF
04727afd 10026if { (eval echo configure:10027: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4f14bcd8
GD
10027 rm -rf conftest*
10028 eval "ac_cv_lib_$ac_lib_var=yes"
6f72b082 10029else
4f14bcd8
GD
10030 echo "configure: failed program was:" >&5
10031 cat conftest.$ac_ext >&5
10032 rm -rf conftest*
10033 eval "ac_cv_lib_$ac_lib_var=no"
698dcdb6 10034fi
4f14bcd8
GD
10035rm -f conftest*
10036LIBS="$ac_save_LIBS"
698dcdb6 10037
4f14bcd8
GD
10038fi
10039if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10040 echo "$ac_t""yes" 1>&6
3d63bc3a 10041 JPEG_LINK=" -ljpeg"
4f14bcd8
GD
10042else
10043 echo "$ac_t""no" 1>&6
10044fi
10045
81809c07 10046 fi
4f14bcd8 10047
81809c07
VS
10048 if test "x$JPEG_LINK" = "x" ; then
10049 if test "$wxUSE_LIBJPEG" = "sys" ; then
10050 { echo "configure: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" 1>&2; exit 1; }
10051 else
10052 echo "configure: warning: system jpeg library not found, will use built-in instead" 1>&2
10053 wxUSE_LIBJPEG=builtin
10054 fi
4f14bcd8 10055 else
81809c07 10056 wxUSE_LIBJPEG=sys
4f14bcd8 10057 fi
4f14bcd8
GD
10058 fi
10059 fi
10060
10061 if test "$wxUSE_LIBJPEG" = "builtin" ; then
10062 JPEG_INCLUDE="-I\${top_srcdir}/src/jpeg"
10063 fi
10064fi
10065
10066
10067TIFF_INCLUDE=
10068TIFF_LINK=
10069if test "$wxUSE_LIBTIFF" != "no" ; then
10070 cat >> confdefs.h <<\EOF
10071#define wxUSE_LIBTIFF 1
10072EOF
10073
10074
10075 if test "$wxUSE_LIBTIFF" = "sys" -o "$wxUSE_LIBTIFF" = "yes" ; then
10076 ac_safe=`echo "tiffio.h" | sed 'y%./+-%__p_%'`
10077echo $ac_n "checking for tiffio.h""... $ac_c" 1>&6
04727afd 10078echo "configure:10079: checking for tiffio.h" >&5
4f14bcd8
GD
10079if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10080 echo $ac_n "(cached) $ac_c" 1>&6
10081else
10082 cat > conftest.$ac_ext <<EOF
04727afd 10083#line 10084 "configure"
4f14bcd8
GD
10084#include "confdefs.h"
10085#include <tiffio.h>
10086EOF
10087ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
04727afd 10088{ (eval echo configure:10089: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4f14bcd8
GD
10089ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10090if test -z "$ac_err"; then
10091 rm -rf conftest*
10092 eval "ac_cv_header_$ac_safe=yes"
10093else
10094 echo "$ac_err" >&5
10095 echo "configure: failed program was:" >&5
10096 cat conftest.$ac_ext >&5
10097 rm -rf conftest*
10098 eval "ac_cv_header_$ac_safe=no"
10099fi
10100rm -f conftest*
10101fi
10102if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10103 echo "$ac_t""yes" 1>&6
10104 echo $ac_n "checking for TIFFError in -ltiff""... $ac_c" 1>&6
04727afd 10105echo "configure:10106: checking for TIFFError in -ltiff" >&5
4f14bcd8
GD
10106ac_lib_var=`echo tiff'_'TIFFError | sed 'y%./+-%__p_%'`
10107if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10108 echo $ac_n "(cached) $ac_c" 1>&6
10109else
10110 ac_save_LIBS="$LIBS"
10111LIBS="-ltiff -lm $LIBS"
10112cat > conftest.$ac_ext <<EOF
04727afd 10113#line 10114 "configure"
4f14bcd8
GD
10114#include "confdefs.h"
10115/* Override any gcc2 internal prototype to avoid an error. */
10116/* We use char because int might match the return type of a gcc2
10117 builtin and then its argument prototype would still apply. */
10118char TIFFError();
10119
10120int main() {
10121TIFFError()
10122; return 0; }
10123EOF
04727afd 10124if { (eval echo configure:10125: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4f14bcd8
GD
10125 rm -rf conftest*
10126 eval "ac_cv_lib_$ac_lib_var=yes"
10127else
10128 echo "configure: failed program was:" >&5
10129 cat conftest.$ac_ext >&5
10130 rm -rf conftest*
10131 eval "ac_cv_lib_$ac_lib_var=no"
10132fi
10133rm -f conftest*
10134LIBS="$ac_save_LIBS"
10135
10136fi
10137if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10138 echo "$ac_t""yes" 1>&6
3d63bc3a 10139 TIFF_LINK=" -ltiff"
4f14bcd8
GD
10140else
10141 echo "$ac_t""no" 1>&6
10142fi
10143
10144
10145else
10146 echo "$ac_t""no" 1>&6
10147fi
10148
10149
10150 if test "x$TIFF_LINK" = "x" ; then
10151 if test "$wxUSE_LIBTIFF" = "sys" ; then
10152 { echo "configure: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" 1>&2; exit 1; }
10153 else
a3df447d 10154 echo "configure: warning: system tiff library not found, will use built-in instead" 1>&2
4f14bcd8
GD
10155 wxUSE_LIBTIFF=builtin
10156 fi
10157 else
10158 wxUSE_LIBTIFF=sys
10159 fi
10160 fi
10161
10162 if test "$wxUSE_LIBTIFF" = "builtin" ; then
10163 TIFF_INCLUDE="-I\${top_srcdir}/src/tiff"
10164 fi
10165fi
10166
10167
4f14bcd8
GD
10168AFMINSTALL=
10169
10170TOOLKIT=
10171TOOLKIT_INCLUDE=
10172WIDGET_SET=
10173
10174if test "$USE_WIN32" = 1 ; then
10175 for ac_hdr in w32api.h
10176do
10177ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10178echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
04727afd 10179echo "configure:10180: checking for $ac_hdr" >&5
4f14bcd8
GD
10180if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10181 echo $ac_n "(cached) $ac_c" 1>&6
10182else
10183 cat > conftest.$ac_ext <<EOF
04727afd 10184#line 10185 "configure"
4f14bcd8
GD
10185#include "confdefs.h"
10186#include <$ac_hdr>
10187EOF
10188ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
04727afd 10189{ (eval echo configure:10190: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4f14bcd8
GD
10190ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10191if test -z "$ac_err"; then
10192 rm -rf conftest*
10193 eval "ac_cv_header_$ac_safe=yes"
10194else
10195 echo "$ac_err" >&5
10196 echo "configure: failed program was:" >&5
10197 cat conftest.$ac_ext >&5
10198 rm -rf conftest*
10199 eval "ac_cv_header_$ac_safe=no"
10200fi
10201rm -f conftest*
10202fi
10203if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10204 echo "$ac_t""yes" 1>&6
10205 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10206 cat >> confdefs.h <<EOF
10207#define $ac_tr_hdr 1
10208EOF
10209
10210else
10211 echo "$ac_t""no" 1>&6
10212fi
10213done
10214
10215 ac_safe=`echo "windows.h" | sed 'y%./+-%__p_%'`
10216echo $ac_n "checking for windows.h""... $ac_c" 1>&6
04727afd 10217echo "configure:10218: checking for windows.h" >&5
4f14bcd8
GD
10218if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10219 echo $ac_n "(cached) $ac_c" 1>&6
10220else
10221 cat > conftest.$ac_ext <<EOF
04727afd 10222#line 10223 "configure"
4f14bcd8
GD
10223#include "confdefs.h"
10224#include <windows.h>
10225EOF
10226ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
04727afd 10227{ (eval echo configure:10228: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4f14bcd8
GD
10228ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10229if test -z "$ac_err"; then
10230 rm -rf conftest*
10231 eval "ac_cv_header_$ac_safe=yes"
10232else
10233 echo "$ac_err" >&5
10234 echo "configure: failed program was:" >&5
10235 cat conftest.$ac_ext >&5
10236 rm -rf conftest*
10237 eval "ac_cv_header_$ac_safe=no"
10238fi
10239rm -f conftest*
10240fi
10241if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10242 echo "$ac_t""yes" 1>&6
10243 :
10244else
10245 echo "$ac_t""no" 1>&6
10246
10247 { echo "configure: error: please set CFLAGS to contain the location of windows.h" 1>&2; exit 1; }
10248
10249fi
10250
10251
10252 echo $ac_n "checking if w32api has good enough MSIE support""... $ac_c" 1>&6
04727afd 10253echo "configure:10254: checking if w32api has good enough MSIE support" >&5
ea7682f0 10254if eval "test \"`echo '$''{'wx_cv_w32api_win32_ie'+set}'`\" = set"; then
4f14bcd8
GD
10255 echo $ac_n "(cached) $ac_c" 1>&6
10256else
10257
10258 cat > conftest.$ac_ext <<EOF
04727afd 10259#line 10260 "configure"
4f14bcd8
GD
10260#include "confdefs.h"
10261#include <w32api.h>
10262int main() {
10263
10264 #define wxCHECK_W32API_VERSION( major, minor ) \
10265 ( defined( __W32API_MAJOR_VERSION ) && defined( __W32API_MINOR_VERSION ) \
10266 && ( ( __W32API_MAJOR_VERSION > (major) ) \
10267 || ( __W32API_MAJOR_VERSION == (major) && __W32API_MINOR_VERSION >= (minor))))
10268
10269 #if !wxCHECK_W32API_VERSION(1,1)
10270 #error You need w32api 1.1 or newer
10271 #endif
10272
10273; return 0; }
10274EOF
04727afd 10275if { (eval echo configure:10276: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4f14bcd8
GD
10276 rm -rf conftest*
10277
ea7682f0 10278 wx_cv_w32api_win32_ie=yes
4f14bcd8
GD
10279
10280else
10281 echo "configure: failed program was:" >&5
10282 cat conftest.$ac_ext >&5
10283 rm -rf conftest*
10284
ea7682f0 10285 wx_cv_w32api_win32_ie=no
4f14bcd8
GD
10286
10287fi
10288rm -f conftest*
10289
10290fi
10291
ea7682f0
VS
10292echo "$ac_t""$wx_cv_w32api_win32_ie" 1>&6
10293 if test "$wx_cv_w32api_win32_ie" = "yes" ; then
10294 CPPFLAGS="$CPPFLAGS -D_WIN32_IE=0x400"
10295 fi
4f14bcd8
GD
10296
10297 LIBS="$LIBS -lwinspool -lwinmm -lshell32 -lcomctl32 -lctl3d32 -ladvapi32 -lwsock32"
10298
77e13408
RL
10299 case "${host}" in
10300 *-*-cygwin* )
10301 LIBS="$LIBS -lkernel32 -luser32 -lgdi32 -lcomdlg32"
10302 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WIN95__"
10303 esac
4f14bcd8
GD
10304
10305 if test "$wxUSE_ODBC" = "yes" ; then
a72a4bfa 10306 LIBS=" -lodbc32 -lole32 -loleaut32 $LIBS"
4f14bcd8
GD
10307 fi
10308
4f14bcd8
GD
10309 RESFLAGS="--include-dir \$(top_srcdir)/include --include-dir \$(top_srcdir)/\$(program_dir) --define __WIN32__ --define __WIN95__ --define __GNUWIN32__"
10310 RESPROGRAMOBJ="\$(PROGRAM)_resources.o"
10311fi
10312
10313if test "$wxUSE_GUI" = "yes"; then
10314 USE_GUI=1
10315
10316 GUI_TK_LIBRARY=
10317
10318 WXGTK12=
10319 WXGTK127=
10320 WXGTK20=
10321
77e13408 10322 if test "$wxUSE_MSW" = 1 ; then
4f14bcd8
GD
10323 TOOLKIT=MSW
10324 GUIDIST=MSW_DIST
77e13408
RL
10325
10326 case "${host}" in
10327 *-*-mingw32* )
3d63bc3a 10328 LDFLAGS="$LDFLAGS -Wl,--subsystem,windows -mwindows"
77e13408 10329 esac
4f14bcd8
GD
10330 fi
10331
10332 if test "$wxUSE_GTK" = 1; then
10333 echo $ac_n "checking for GTK+ version""... $ac_c" 1>&6
04727afd 10334echo "configure:10335: checking for GTK+ version" >&5
4f14bcd8
GD
10335
10336 gtk_version_cached=1
10337 if eval "test \"`echo '$''{'wx_cv_lib_gtk'+set}'`\" = set"; then
10338 echo $ac_n "(cached) $ac_c" 1>&6
10339else
10340
10341 gtk_version_cached=0
d48ad9bd 10342 echo "$ac_t""" 1>&6
4f14bcd8 10343
3f345b47
VZ
10344 GTK_MODULES=
10345 if test "$wxUSE_THREADS" = "yes"; then
10346 GTK_MODULES=gthread
10347 fi
10348
4f14bcd8
GD
10349 wx_cv_lib_gtk=
10350 if test "x$wxUSE_GTK2" = "xyes"; then
9e691f46 10351 # Check whether --enable-gtktest or --disable-gtktest was given.
4f14bcd8
GD
10352if test "${enable_gtktest+set}" = set; then
10353 enableval="$enable_gtktest"
10354 :
10355else
10356 enable_gtktest=yes
10357fi
10358
10359
9e691f46 10360 pkg_config_args=gtk+-2.0
3f345b47 10361 for module in . $GTK_MODULES
4f14bcd8 10362 do
6f72b082 10363 case "$module" in
9e691f46
VZ
10364 gthread)
10365 pkg_config_args="$pkg_config_args gthread-2.0"
6f72b082
OK
10366 ;;
10367 esac
10368 done
10369
9e691f46 10370 no_gtk=""
6f72b082 10371
9e691f46
VZ
10372 # Extract the first word of "pkg-config", so it can be a program name with args.
10373set dummy pkg-config; ac_word=$2
698dcdb6 10374echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
04727afd 10375echo "configure:10376: checking for $ac_word" >&5
9e691f46 10376if eval "test \"`echo '$''{'ac_cv_path_PKG_CONFIG'+set}'`\" = set"; then
698dcdb6 10377 echo $ac_n "(cached) $ac_c" 1>&6
6f72b082 10378else
9e691f46 10379 case "$PKG_CONFIG" in
698dcdb6 10380 /*)
9e691f46 10381 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
6f72b082 10382 ;;
698dcdb6 10383 ?:/*)
9e691f46 10384 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a dos path.
698dcdb6 10385 ;;
6f72b082 10386 *)
698dcdb6
VZ
10387 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
10388 ac_dummy="$PATH"
10389 for ac_dir in $ac_dummy; do
10390 test -z "$ac_dir" && ac_dir=.
10391 if test -f $ac_dir/$ac_word; then
9e691f46 10392 ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word"
698dcdb6
VZ
10393 break
10394 fi
10395 done
10396 IFS="$ac_save_ifs"
9e691f46 10397 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
6f72b082
OK
10398 ;;
10399esac
10400fi
9e691f46
VZ
10401PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
10402if test -n "$PKG_CONFIG"; then
10403 echo "$ac_t""$PKG_CONFIG" 1>&6
6f72b082 10404else
698dcdb6 10405 echo "$ac_t""no" 1>&6
6f72b082
OK
10406fi
10407
9e691f46
VZ
10408
10409 if test x$PKG_CONFIG != xno ; then
10410 if pkg-config --atleast-pkgconfig-version 0.7 ; then
10411 :
10412 else
10413 echo *** pkg-config too old; version 0.7 or better required.
10414 no_gtk=yes
10415 PKG_CONFIG=no
10416 fi
6f72b082 10417 else
9e691f46
VZ
10418 no_gtk=yes
10419 fi
10420
1ae7bd02 10421 min_gtk_version=2.0.0
9e691f46 10422 echo $ac_n "checking for GTK+ - version >= $min_gtk_version""... $ac_c" 1>&6
04727afd 10423echo "configure:10424: checking for GTK+ - version >= $min_gtk_version" >&5
9e691f46
VZ
10424
10425 if test x$PKG_CONFIG != xno ; then
10426 ## don't try to run the test against uninstalled libtool libs
10427 if $PKG_CONFIG --uninstalled $pkg_config_args; then
10428 echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH"
10429 enable_gtktest=no
10430 fi
10431
10432 if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then
10433 :
10434 else
10435 no_gtk=yes
10436 fi
10437 fi
10438
10439 if test x"$no_gtk" = x ; then
10440 GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags`
10441 GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs`
10442 gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
6f72b082 10443 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
9e691f46 10444 gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
6f72b082 10445 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
9e691f46 10446 gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
6f72b082
OK
10447 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
10448 if test "x$enable_gtktest" = "xyes" ; then
10449 ac_save_CFLAGS="$CFLAGS"
10450 ac_save_LIBS="$LIBS"
10451 CFLAGS="$CFLAGS $GTK_CFLAGS"
10452 LIBS="$GTK_LIBS $LIBS"
10453 rm -f conf.gtktest
10454 if test "$cross_compiling" = yes; then
10455 echo $ac_n "cross compiling; assumed OK... $ac_c"
10456else
698dcdb6 10457 cat > conftest.$ac_ext <<EOF
04727afd 10458#line 10459 "configure"
6f72b082
OK
10459#include "confdefs.h"
10460
10461#include <gtk/gtk.h>
10462#include <stdio.h>
10463#include <stdlib.h>
10464
9e691f46 10465int
6f72b082
OK
10466main ()
10467{
10468 int major, minor, micro;
10469 char *tmp_version;
10470
10471 system ("touch conf.gtktest");
10472
10473 /* HP/UX 9 (%@#!) writes to sscanf strings */
10474 tmp_version = g_strdup("$min_gtk_version");
10475 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
10476 printf("%s, bad version string\n", "$min_gtk_version");
10477 exit(1);
10478 }
10479
10480 if ((gtk_major_version != $gtk_config_major_version) ||
10481 (gtk_minor_version != $gtk_config_minor_version) ||
10482 (gtk_micro_version != $gtk_config_micro_version))
10483 {
9e691f46 10484 printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
6f72b082
OK
10485 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
10486 gtk_major_version, gtk_minor_version, gtk_micro_version);
9e691f46 10487 printf ("*** was found! If pkg-config was correct, then it is best\n");
6f72b082
OK
10488 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
10489 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
10490 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
10491 printf("*** required on your system.\n");
9e691f46
VZ
10492 printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
10493 printf("*** to point to the correct configuration files\n");
10494 }
6f72b082 10495 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
9e691f46 10496 (gtk_minor_version != GTK_MINOR_VERSION) ||
6f72b082
OK
10497 (gtk_micro_version != GTK_MICRO_VERSION))
10498 {
10499 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
9e691f46 10500 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
6f72b082 10501 printf("*** library (version %d.%d.%d)\n",
9e691f46 10502 gtk_major_version, gtk_minor_version, gtk_micro_version);
6f72b082 10503 }
6f72b082
OK
10504 else
10505 {
10506 if ((gtk_major_version > major) ||
10507 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
10508 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
10509 {
10510 return 0;
10511 }
10512 else
10513 {
10514 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
10515 gtk_major_version, gtk_minor_version, gtk_micro_version);
10516 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
9e691f46 10517 major, minor, micro);
6f72b082
OK
10518 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
10519 printf("***\n");
10520 printf("*** If you have already installed a sufficiently new version, this error\n");
9e691f46 10521 printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
6f72b082 10522 printf("*** being found. The easiest way to fix this is to remove the old version\n");
9e691f46
VZ
10523 printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n");
10524 printf("*** correct copy of pkg-config. (In this case, you will have to\n");
6f72b082
OK
10525 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
10526 printf("*** so that the correct libraries are found at run-time))\n");
10527 }
10528 }
10529 return 1;
10530}
10531
698dcdb6 10532EOF
04727afd 10533if { (eval echo configure:10534: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
698dcdb6 10534then
6f72b082
OK
10535 :
10536else
698dcdb6
VZ
10537 echo "configure: failed program was:" >&5
10538 cat conftest.$ac_ext >&5
10539 rm -fr conftest*
10540 no_gtk=yes
6f72b082 10541fi
698dcdb6 10542rm -fr conftest*
6f72b082 10543fi
698dcdb6 10544
6f72b082
OK
10545 CFLAGS="$ac_save_CFLAGS"
10546 LIBS="$ac_save_LIBS"
10547 fi
10548 fi
10549 if test "x$no_gtk" = x ; then
698dcdb6 10550 echo "$ac_t""yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" 1>&6
9e691f46 10551 wx_cv_lib_gtk=2.0
6f72b082 10552 else
698dcdb6 10553 echo "$ac_t""no" 1>&6
9e691f46
VZ
10554 if test "$PKG_CONFIG" = "no" ; then
10555 echo "*** A new enough version of pkg-config was not found."
10556 echo "*** See http://pkgconfig.sourceforge.net"
6f72b082
OK
10557 else
10558 if test -f conf.gtktest ; then
10559 :
10560 else
9e691f46 10561 echo "*** Could not run GTK+ test program, checking why..."
6f72b082
OK
10562 CFLAGS="$CFLAGS $GTK_CFLAGS"
10563 LIBS="$LIBS $GTK_LIBS"
698dcdb6 10564 cat > conftest.$ac_ext <<EOF
04727afd 10565#line 10566 "configure"
6f72b082
OK
10566#include "confdefs.h"
10567
10568#include <gtk/gtk.h>
10569#include <stdio.h>
10570
698dcdb6
VZ
10571int main() {
10572 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
10573; return 0; }
10574EOF
04727afd 10575if { (eval echo configure:10576: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6 10576 rm -rf conftest*
6f72b082 10577 echo "*** The test program compiled, but did not run. This usually means"
9e691f46
VZ
10578 echo "*** that the run-time linker is not finding GTK+ or finding the wrong"
10579 echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your"
6f72b082
OK
10580 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
10581 echo "*** to the installed location Also, make sure you have run ldconfig if that"
10582 echo "*** is required on your system"
9e691f46 10583 echo "***"
6f72b082 10584 echo "*** If you have an old version installed, it is best to remove it, although"
9e691f46 10585 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
6f72b082 10586else
698dcdb6
VZ
10587 echo "configure: failed program was:" >&5
10588 cat conftest.$ac_ext >&5
10589 rm -rf conftest*
10590 echo "*** The test program failed to compile or link. See the file config.log for the"
9e691f46
VZ
10591 echo "*** exact error that occured. This usually means GTK+ was incorrectly installed"
10592 echo "*** or that you have moved GTK+ since it was installed. In the latter case, you"
10593 echo "*** may want to edit the pkg-config script: $PKG_CONFIG"
6f72b082 10594fi
698dcdb6 10595rm -f conftest*
6f72b082
OK
10596 CFLAGS="$ac_save_CFLAGS"
10597 LIBS="$ac_save_LIBS"
10598 fi
10599 fi
10600 GTK_CFLAGS=""
10601 GTK_LIBS=""
3f345b47 10602 :
8168de4c
VZ
10603 fi
10604
10605
10606 rm -f conf.gtktest
10607
10608 fi
10609
10610 if test -z "$wx_cv_lib_gtk"; then
3f345b47
VZ
10611 # Check whether --with-gtk-prefix or --without-gtk-prefix was given.
10612if test "${with_gtk_prefix+set}" = set; then
10613 withval="$with_gtk_prefix"
10614 gtk_config_prefix="$withval"
10615else
10616 gtk_config_prefix=""
10617fi
10618
10619# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
10620if test "${with_gtk_exec_prefix+set}" = set; then
10621 withval="$with_gtk_exec_prefix"
10622 gtk_config_exec_prefix="$withval"
10623else
10624 gtk_config_exec_prefix=""
10625fi
10626
10627# Check whether --enable-gtktest or --disable-gtktest was given.
10628if test "${enable_gtktest+set}" = set; then
10629 enableval="$enable_gtktest"
10630 :
10631else
10632 enable_gtktest=yes
10633fi
10634
10635
10636 for module in . $GTK_MODULES
10637 do
10638 case "$module" in
10639 gthread)
10640 gtk_config_args="$gtk_config_args gthread"
10641 ;;
10642 esac
10643 done
10644
10f2d63a
VZ
10645 if test x$gtk_config_exec_prefix != x ; then
10646 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
10647 if test x${GTK_CONFIG+set} != xset ; then
10648 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
10649 fi
10650 fi
10651 if test x$gtk_config_prefix != x ; then
10652 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
10653 if test x${GTK_CONFIG+set} != xset ; then
10654 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
10655 fi
10656 fi
10657
10658 # Extract the first word of "gtk-config", so it can be a program name with args.
10659set dummy gtk-config; ac_word=$2
698dcdb6 10660echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
04727afd 10661echo "configure:10662: checking for $ac_word" >&5
698dcdb6
VZ
10662if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
10663 echo $ac_n "(cached) $ac_c" 1>&6
f6bcfd97 10664else
698dcdb6
VZ
10665 case "$GTK_CONFIG" in
10666 /*)
f6bcfd97
BP
10667 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
10668 ;;
698dcdb6
VZ
10669 ?:/*)
10670 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path.
10671 ;;
f6bcfd97 10672 *)
698dcdb6
VZ
10673 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
10674 ac_dummy="$PATH"
10675 for ac_dir in $ac_dummy; do
10676 test -z "$ac_dir" && ac_dir=.
10677 if test -f $ac_dir/$ac_word; then
10678 ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
10679 break
10680 fi
10681 done
10682 IFS="$ac_save_ifs"
f6bcfd97
BP
10683 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
10684 ;;
10685esac
10686fi
698dcdb6 10687GTK_CONFIG="$ac_cv_path_GTK_CONFIG"
f6bcfd97 10688if test -n "$GTK_CONFIG"; then
698dcdb6 10689 echo "$ac_t""$GTK_CONFIG" 1>&6
f6bcfd97 10690else
698dcdb6 10691 echo "$ac_t""no" 1>&6
f6bcfd97
BP
10692fi
10693
10694 min_gtk_version=1.2.7
698dcdb6 10695 echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
04727afd 10696echo "configure:10697: checking for GTK - version >= $min_gtk_version" >&5
f6bcfd97 10697 no_gtk=""
3f345b47
VZ
10698 if test "$GTK_CONFIG" = "no" ; then
10699 no_gtk=yes
10700 else
10701 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
10702 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
10703 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
10704 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
10705 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
10706 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
10707 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
10708 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
10709 if test "x$enable_gtktest" = "xyes" ; then
10710 ac_save_CFLAGS="$CFLAGS"
10711 ac_save_LIBS="$LIBS"
10712 CFLAGS="$CFLAGS $GTK_CFLAGS"
10713 LIBS="$GTK_LIBS $LIBS"
10714 rm -f conf.gtktest
10715 if test "$cross_compiling" = yes; then
f6bcfd97
BP
10716 echo $ac_n "cross compiling; assumed OK... $ac_c"
10717else
698dcdb6 10718 cat > conftest.$ac_ext <<EOF
04727afd 10719#line 10720 "configure"
f6bcfd97
BP
10720#include "confdefs.h"
10721
10722#include <gtk/gtk.h>
f6bcfd97
BP
10723#include <stdio.h>
10724#include <stdlib.h>
10725
3f345b47 10726int
f6bcfd97
BP
10727main ()
10728{
10729 int major, minor, micro;
3f345b47 10730 char *tmp_version;
f6bcfd97 10731
3f345b47 10732 system ("touch conf.gtktest");
f6bcfd97 10733
3f345b47
VZ
10734 /* HP/UX 9 (%@#!) writes to sscanf strings */
10735 tmp_version = g_strdup("$min_gtk_version");
10736 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
10737 printf("%s, bad version string\n", "$min_gtk_version");
f6bcfd97
BP
10738 exit(1);
10739 }
10740
3f345b47
VZ
10741 if ((gtk_major_version != $gtk_config_major_version) ||
10742 (gtk_minor_version != $gtk_config_minor_version) ||
10743 (gtk_micro_version != $gtk_config_micro_version))
10744 {
10745 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
10746 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
10747 gtk_major_version, gtk_minor_version, gtk_micro_version);
10748 printf ("*** was found! If gtk-config was correct, then it is best\n");
10749 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
10750 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
10751 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
10752 printf("*** required on your system.\n");
10753 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
10754 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
10755 printf("*** before re-running configure\n");
10756 }
10757#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
10758 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
10759 (gtk_minor_version != GTK_MINOR_VERSION) ||
10760 (gtk_micro_version != GTK_MICRO_VERSION))
10761 {
10762 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
10763 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
10764 printf("*** library (version %d.%d.%d)\n",
10765 gtk_major_version, gtk_minor_version, gtk_micro_version);
10766 }
10767#endif /* defined (GTK_MAJOR_VERSION) ... */
10768 else
10769 {
10770 if ((gtk_major_version > major) ||
10771 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
10772 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
10773 {
10774 return 0;
10775 }
10776 else
10777 {
10778 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
10779 gtk_major_version, gtk_minor_version, gtk_micro_version);
10780 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
10781 major, minor, micro);
10782 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
10783 printf("***\n");
10784 printf("*** If you have already installed a sufficiently new version, this error\n");
10785 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
10786 printf("*** being found. The easiest way to fix this is to remove the old version\n");
10787 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
10788 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
10789 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
10790 printf("*** so that the correct libraries are found at run-time))\n");
10791 }
10792 }
10793 return 1;
f6bcfd97
BP
10794}
10795
698dcdb6 10796EOF
04727afd 10797if { (eval echo configure:10798: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
698dcdb6 10798then
f6bcfd97
BP
10799 :
10800else
698dcdb6
VZ
10801 echo "configure: failed program was:" >&5
10802 cat conftest.$ac_ext >&5
10803 rm -fr conftest*
10804 no_gtk=yes
f6bcfd97 10805fi
698dcdb6 10806rm -fr conftest*
f6bcfd97 10807fi
698dcdb6 10808
3f345b47
VZ
10809 CFLAGS="$ac_save_CFLAGS"
10810 LIBS="$ac_save_LIBS"
10811 fi
f6bcfd97
BP
10812 fi
10813 if test "x$no_gtk" = x ; then
698dcdb6 10814 echo "$ac_t""yes" 1>&6
3f345b47 10815 wx_cv_lib_gtk=1.2.7
f6bcfd97 10816 else
698dcdb6 10817 echo "$ac_t""no" 1>&6
3f345b47
VZ
10818 if test "$GTK_CONFIG" = "no" ; then
10819 echo "*** The gtk-config script installed by GTK could not be found"
10820 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
10821 echo "*** your path, or set the GTK_CONFIG environment variable to the"
10822 echo "*** full path to gtk-config."
10823 else
10824 if test -f conf.gtktest ; then
10825 :
10826 else
10827 echo "*** Could not run GTK test program, checking why..."
10828 CFLAGS="$CFLAGS $GTK_CFLAGS"
10829 LIBS="$LIBS $GTK_LIBS"
10830 cat > conftest.$ac_ext <<EOF
04727afd 10831#line 10832 "configure"
3f345b47
VZ
10832#include "confdefs.h"
10833
10834#include <gtk/gtk.h>
10835#include <stdio.h>
10836
10837int main() {
10838 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
10839; return 0; }
10840EOF
04727afd 10841if { (eval echo configure:10842: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3f345b47
VZ
10842 rm -rf conftest*
10843 echo "*** The test program compiled, but did not run. This usually means"
10844 echo "*** that the run-time linker is not finding GTK or finding the wrong"
10845 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
10846 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
10847 echo "*** to the installed location Also, make sure you have run ldconfig if that"
10848 echo "*** is required on your system"
10849 echo "***"
10850 echo "*** If you have an old version installed, it is best to remove it, although"
10851 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
10852 echo "***"
10853 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
10854 echo "*** came with the system with the command"
10855 echo "***"
10856 echo "*** rpm --erase --nodeps gtk gtk-devel"
10857else
10858 echo "configure: failed program was:" >&5
10859 cat conftest.$ac_ext >&5
10860 rm -rf conftest*
10861 echo "*** The test program failed to compile or link. See the file config.log for the"
10862 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
10863 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
10864 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
10865fi
10866rm -f conftest*
10867 CFLAGS="$ac_save_CFLAGS"
10868 LIBS="$ac_save_LIBS"
10869 fi
10870 fi
f6bcfd97
BP
10871 GTK_CFLAGS=""
10872 GTK_LIBS=""
10873 :
10874 fi
698dcdb6
VZ
10875
10876
3f345b47 10877 rm -f conf.gtktest
f6bcfd97 10878
8168de4c
VZ
10879 fi
10880
10881 if test -z "$wx_cv_lib_gtk"; then
3f345b47
VZ
10882 # Check whether --with-gtk-prefix or --without-gtk-prefix was given.
10883if test "${with_gtk_prefix+set}" = set; then
10884 withval="$with_gtk_prefix"
10885 gtk_config_prefix="$withval"
10886else
10887 gtk_config_prefix=""
10888fi
10889
10890# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
10891if test "${with_gtk_exec_prefix+set}" = set; then
10892 withval="$with_gtk_exec_prefix"
10893 gtk_config_exec_prefix="$withval"
10894else
10895 gtk_config_exec_prefix=""
10896fi
10897
10898# Check whether --enable-gtktest or --disable-gtktest was given.
10899if test "${enable_gtktest+set}" = set; then
10900 enableval="$enable_gtktest"
10901 :
10902else
10903 enable_gtktest=yes
10904fi
10905
10906
10907 for module in . $GTK_MODULES
10908 do
10909 case "$module" in
10910 gthread)
10911 gtk_config_args="$gtk_config_args gthread"
10912 ;;
10913 esac
10914 done
10915
f6bcfd97
BP
10916 if test x$gtk_config_exec_prefix != x ; then
10917 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
10918 if test x${GTK_CONFIG+set} != xset ; then
10919 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
10920 fi
10921 fi
10922 if test x$gtk_config_prefix != x ; then
10923 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
10924 if test x${GTK_CONFIG+set} != xset ; then
10925 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
10926 fi
10927 fi
10928
10929 # Extract the first word of "gtk-config", so it can be a program name with args.
10930set dummy gtk-config; ac_word=$2
698dcdb6 10931echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
04727afd 10932echo "configure:10933: checking for $ac_word" >&5
698dcdb6
VZ
10933if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
10934 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 10935else
698dcdb6
VZ
10936 case "$GTK_CONFIG" in
10937 /*)
10f2d63a
VZ
10938 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
10939 ;;
698dcdb6
VZ
10940 ?:/*)
10941 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path.
10942 ;;
10f2d63a 10943 *)
698dcdb6
VZ
10944 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
10945 ac_dummy="$PATH"
10946 for ac_dir in $ac_dummy; do
10947 test -z "$ac_dir" && ac_dir=.
10948 if test -f $ac_dir/$ac_word; then
10949 ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
10950 break
10951 fi
10952 done
10953 IFS="$ac_save_ifs"
10f2d63a
VZ
10954 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
10955 ;;
10956esac
10957fi
698dcdb6 10958GTK_CONFIG="$ac_cv_path_GTK_CONFIG"
10f2d63a 10959if test -n "$GTK_CONFIG"; then
698dcdb6 10960 echo "$ac_t""$GTK_CONFIG" 1>&6
10f2d63a 10961else
698dcdb6 10962 echo "$ac_t""no" 1>&6
10f2d63a
VZ
10963fi
10964
04165bec 10965 min_gtk_version=1.2.3
698dcdb6 10966 echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
04727afd 10967echo "configure:10968: checking for GTK - version >= $min_gtk_version" >&5
10f2d63a 10968 no_gtk=""
3f345b47
VZ
10969 if test "$GTK_CONFIG" = "no" ; then
10970 no_gtk=yes
10971 else
10972 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
10973 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
10974 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
10975 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
10976 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
10977 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
10978 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
10979 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
10980 if test "x$enable_gtktest" = "xyes" ; then
10981 ac_save_CFLAGS="$CFLAGS"
10982 ac_save_LIBS="$LIBS"
10983 CFLAGS="$CFLAGS $GTK_CFLAGS"
10984 LIBS="$GTK_LIBS $LIBS"
10985 rm -f conf.gtktest
10986 if test "$cross_compiling" = yes; then
10f2d63a
VZ
10987 echo $ac_n "cross compiling; assumed OK... $ac_c"
10988else
698dcdb6 10989 cat > conftest.$ac_ext <<EOF
04727afd 10990#line 10991 "configure"
10f2d63a
VZ
10991#include "confdefs.h"
10992
10993#include <gtk/gtk.h>
10994#include <stdio.h>
32832908 10995#include <stdlib.h>
10f2d63a 10996
3f345b47 10997int
10f2d63a
VZ
10998main ()
10999{
11000 int major, minor, micro;
3f345b47 11001 char *tmp_version;
10f2d63a 11002
3f345b47 11003 system ("touch conf.gtktest");
10f2d63a 11004
3f345b47
VZ
11005 /* HP/UX 9 (%@#!) writes to sscanf strings */
11006 tmp_version = g_strdup("$min_gtk_version");
11007 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
11008 printf("%s, bad version string\n", "$min_gtk_version");
f49f2b0c
RR
11009 exit(1);
11010 }
11011
3f345b47
VZ
11012 if ((gtk_major_version != $gtk_config_major_version) ||
11013 (gtk_minor_version != $gtk_config_minor_version) ||
11014 (gtk_micro_version != $gtk_config_micro_version))
11015 {
11016 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
11017 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
11018 gtk_major_version, gtk_minor_version, gtk_micro_version);
11019 printf ("*** was found! If gtk-config was correct, then it is best\n");
11020 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
11021 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
11022 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
11023 printf("*** required on your system.\n");
11024 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
11025 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
11026 printf("*** before re-running configure\n");
11027 }
11028#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
11029 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
11030 (gtk_minor_version != GTK_MINOR_VERSION) ||
11031 (gtk_micro_version != GTK_MICRO_VERSION))
11032 {
11033 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
11034 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
11035 printf("*** library (version %d.%d.%d)\n",
11036 gtk_major_version, gtk_minor_version, gtk_micro_version);
11037 }
11038#endif /* defined (GTK_MAJOR_VERSION) ... */
11039 else
11040 {
11041 if ((gtk_major_version > major) ||
11042 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
11043 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
11044 {
11045 return 0;
11046 }
11047 else
11048 {
11049 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
11050 gtk_major_version, gtk_minor_version, gtk_micro_version);
11051 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
11052 major, minor, micro);
11053 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
11054 printf("***\n");
11055 printf("*** If you have already installed a sufficiently new version, this error\n");
11056 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
11057 printf("*** being found. The easiest way to fix this is to remove the old version\n");
11058 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
11059 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
11060 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
11061 printf("*** so that the correct libraries are found at run-time))\n");
11062 }
11063 }
11064 return 1;
10f2d63a
VZ
11065}
11066
698dcdb6 11067EOF
04727afd 11068if { (eval echo configure:11069: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
698dcdb6 11069then
10f2d63a
VZ
11070 :
11071else
698dcdb6
VZ
11072 echo "configure: failed program was:" >&5
11073 cat conftest.$ac_ext >&5
11074 rm -fr conftest*
11075 no_gtk=yes
10f2d63a 11076fi
698dcdb6 11077rm -fr conftest*
10f2d63a 11078fi
698dcdb6 11079
3f345b47
VZ
11080 CFLAGS="$ac_save_CFLAGS"
11081 LIBS="$ac_save_LIBS"
11082 fi
10f2d63a
VZ
11083 fi
11084 if test "x$no_gtk" = x ; then
698dcdb6 11085 echo "$ac_t""yes" 1>&6
3f345b47 11086 wx_cv_lib_gtk=1.2.3
10f2d63a 11087 else
698dcdb6 11088 echo "$ac_t""no" 1>&6
3f345b47
VZ
11089 if test "$GTK_CONFIG" = "no" ; then
11090 echo "*** The gtk-config script installed by GTK could not be found"
11091 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
11092 echo "*** your path, or set the GTK_CONFIG environment variable to the"
11093 echo "*** full path to gtk-config."
11094 else
11095 if test -f conf.gtktest ; then
11096 :
11097 else
11098 echo "*** Could not run GTK test program, checking why..."
11099 CFLAGS="$CFLAGS $GTK_CFLAGS"
11100 LIBS="$LIBS $GTK_LIBS"
11101 cat > conftest.$ac_ext <<EOF
04727afd 11102#line 11103 "configure"
3f345b47
VZ
11103#include "confdefs.h"
11104
11105#include <gtk/gtk.h>
11106#include <stdio.h>
11107
11108int main() {
11109 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
11110; return 0; }
11111EOF
04727afd 11112if { (eval echo configure:11113: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3f345b47
VZ
11113 rm -rf conftest*
11114 echo "*** The test program compiled, but did not run. This usually means"
11115 echo "*** that the run-time linker is not finding GTK or finding the wrong"
11116 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
11117 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
11118 echo "*** to the installed location Also, make sure you have run ldconfig if that"
11119 echo "*** is required on your system"
11120 echo "***"
11121 echo "*** If you have an old version installed, it is best to remove it, although"
11122 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
11123 echo "***"
11124 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
11125 echo "*** came with the system with the command"
11126 echo "***"
11127 echo "*** rpm --erase --nodeps gtk gtk-devel"
11128else
11129 echo "configure: failed program was:" >&5
11130 cat conftest.$ac_ext >&5
11131 rm -rf conftest*
11132 echo "*** The test program failed to compile or link. See the file config.log for the"
11133 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
11134 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
11135 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
11136fi
11137rm -f conftest*
11138 CFLAGS="$ac_save_CFLAGS"
11139 LIBS="$ac_save_LIBS"
11140 fi
11141 fi
10f2d63a
VZ
11142 GTK_CFLAGS=""
11143 GTK_LIBS=""
7e99ad86 11144 :
10f2d63a 11145 fi
698dcdb6
VZ
11146
11147
3f345b47 11148 rm -f conf.gtktest
10f2d63a 11149
8168de4c
VZ
11150 fi
11151
11152 if test -z "$wx_cv_lib_gtk"; then
11153 wx_cv_lib_gtk=none
138be253
VZ
11154 else
11155 wx_cv_cflags_gtk=$GTK_CFLAGS
11156 wx_cv_libs_gtk=$GTK_LIBS
8168de4c
VZ
11157 fi
11158
1e6feb95 11159
8168de4c 11160fi
703e0a69 11161
698dcdb6 11162
8168de4c
VZ
11163 if test "$gtk_version_cached" = 1; then
11164 echo "$ac_t""$wx_cv_lib_gtk" 1>&6
1e6feb95 11165 fi
698dcdb6 11166
8168de4c
VZ
11167 case "$wx_cv_lib_gtk" in
11168 2.0) WXGTK20=1
11169 ;;
11170 1.2.7) WXGTK127=1
d1a8d972 11171 WXGTK12=1
8168de4c
VZ
11172 ;;
11173 1.2.3) WXGTK12=1
11174 ;;
11175 *) { echo "configure: error:
11176Please check that gtk-config is in path, the directory
11177where GTK+ libraries are installed (returned by
11178'gtk-config --libs' command) is in LD_LIBRARY_PATH or
11179equivalent variable and GTK+ is version 1.2.3 or above.
11180 " 1>&2; exit 1; }
11181 ;;
11182 esac
2224580a 11183
138be253 11184 TOOLKIT_INCLUDE="$wx_cv_cflags_gtk"
11dfaa5f 11185 GUI_TK_LIBRARY="$wx_cv_libs_gtk"
698dcdb6 11186
1e6feb95
VZ
11187 AFMINSTALL=afminstall
11188 TOOLKIT=GTK
11189 GUIDIST=GTK_DIST
7ec2881a 11190
1e6feb95 11191 echo $ac_n "checking for gdk_im_open in -lgdk""... $ac_c" 1>&6
04727afd 11192echo "configure:11193: checking for gdk_im_open in -lgdk" >&5
698dcdb6
VZ
11193ac_lib_var=`echo gdk'_'gdk_im_open | sed 'y%./+-%__p_%'`
11194if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11195 echo $ac_n "(cached) $ac_c" 1>&6
7ec2881a 11196else
698dcdb6 11197 ac_save_LIBS="$LIBS"
7ec2881a 11198LIBS="-lgdk $LIBS"
698dcdb6 11199cat > conftest.$ac_ext <<EOF
04727afd 11200#line 11201 "configure"
7ec2881a
RR
11201#include "confdefs.h"
11202/* Override any gcc2 internal prototype to avoid an error. */
11203/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
11204 builtin and then its argument prototype would still apply. */
11205char gdk_im_open();
11206
11207int main() {
11208gdk_im_open()
11209; return 0; }
11210EOF
04727afd 11211if { (eval echo configure:11212: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
11212 rm -rf conftest*
11213 eval "ac_cv_lib_$ac_lib_var=yes"
11214else
11215 echo "configure: failed program was:" >&5
11216 cat conftest.$ac_ext >&5
11217 rm -rf conftest*
11218 eval "ac_cv_lib_$ac_lib_var=no"
11219fi
11220rm -f conftest*
11221LIBS="$ac_save_LIBS"
11222
11223fi
11224if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11225 echo "$ac_t""yes" 1>&6
11226 cat >> confdefs.h <<\EOF
7ec2881a
RR
11227#define HAVE_XIM 1
11228EOF
11229
698dcdb6
VZ
11230else
11231 echo "$ac_t""no" 1>&6
7ec2881a
RR
11232fi
11233
1e6feb95 11234 fi
10f2d63a 11235
1e6feb95 11236 if test "$wxUSE_MGL" = 1; then
1e6feb95 11237 echo $ac_n "checking for SciTech MGL library""... $ac_c" 1>&6
04727afd 11238echo "configure:11239: checking for SciTech MGL library" >&5
1e6feb95
VZ
11239 if test "x$MGL_ROOT" = x ; then
11240 echo "$ac_t""not found" 1>&6
11241 { echo "configure: error: Cannot find MGL library. Make sure MGL_ROOT is set." 1>&2; exit 1; }
11242 else
11243 echo "$ac_t""$MGL_ROOT" 1>&6
11244 fi
11245
f9bc1684
VS
11246 case "${host}" in
11247 *-*-linux* )
11248 mgl_os=linux/gcc/glibc
11249 ;;
11250 *-pc-msdosdjgpp )
11251 mgl_os=dos32/dj2
11252 ;;
11253 *)
11254 { echo "configure: error: This system type ${host} is not yet supported by wxMGL." 1>&2; exit 1; }
11255 esac
11256
3a922bb4 11257 mgl_lib_type=""
1e6feb95
VZ
11258
11259 if test "$wxUSE_DEBUG_FLAG" = yes ; then
223e7fbf
VS
11260 if test -f $MGL_ROOT/lib/debug/$mgl_os/libmgl.a -o \
11261 -f $MGL_ROOT/lib/debug/$mgl_os/libmgl.so; then
3a922bb4 11262 mgl_lib_type=debug
1e6feb95
VZ
11263 fi
11264 fi
3a922bb4 11265 if test "x$mgl_lib_type" = x ; then
223e7fbf
VS
11266 if test -f $MGL_ROOT/lib/release/$mgl_os/libmgl.a -o \
11267 -f $MGL_ROOT/lib/release/$mgl_os/libmgl.so; then
3a922bb4 11268 mgl_lib_type=release
1e6feb95
VZ
11269 else
11270 { echo "configure: error: Cannot find MGL libraries, make sure they are compiled." 1>&2; exit 1; }
11271 fi
11272 fi
11273
11274 TOOLKIT_INCLUDE="-I$MGL_ROOT/include"
3a922bb4 11275 GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$mgl_lib_type/$mgl_os -lmgl -lmglcpp -lpm"
1e6feb95
VZ
11276
11277 AFMINSTALL=afminstall
11278 TOOLKIT=MGL
11279 GUIDIST=MGL_DIST
11280 fi
11281
1725144d
RR
11282 if test "$wxUSE_MICROWIN" = 1; then
11283 echo $ac_n "checking for MicroWindows""... $ac_c" 1>&6
04727afd 11284echo "configure:11285: checking for MicroWindows" >&5
1725144d
RR
11285 if test "x$MICROWINDOWS" = x ; then
11286 echo "$ac_t""not found" 1>&6
11287 { echo "configure: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." 1>&2; exit 1; }
11288 else
11289 echo "$ac_t""$MICROWINDOWS" 1>&6
11290 fi
11291
11292 if test -f $MICROWINDOWS/lib/libmwin.a; then
11293 echo "$ac_t""MicroWindows' libraries found." 1>&6
11294 else
11295 { echo "configure: error: Cannot find MicroWindows libraries, make sure they are compiled." 1>&2; exit 1; }
11296 fi
11297
11298 TOOLKIT_INCLUDE="-I$MICROWINDOWS/include"
11299 GUI_TK_LIBRARY="-L$MICROWINDOWS/lib -lmwin -lmwengine -mwfonts -mwdrivers -mwinlib"
11300
11301 AFMINSTALL=afminstall
11302 TOOLKIT=MICROWIN
11303 GUIDIST=MICROWIN_DIST
11304
11305 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__ -D__WXMSW__ -D__WIN95__ -D__WIN32__ -DMWIN -DMICROWIN_NOCONTROLS -DMICROWIN_TODO=1"
11306 fi
11307
f79bd02d 11308 if test "$wxUSE_X11" = 1; then
d714471b 11309 # If we find X, set shell vars x_includes and x_libraries to the
698dcdb6
VZ
11310# paths, otherwise set no_x=yes.
11311# Uses ac_ vars as temps to allow command line to override cache and checks.
11312# --without-x overrides everything else, but does not touch the cache.
11313echo $ac_n "checking for X""... $ac_c" 1>&6
04727afd 11314echo "configure:11315: checking for X" >&5
ab9b9eab
VZ
11315
11316# Check whether --with-x or --without-x was given.
11317if test "${with_x+set}" = set; then
11318 withval="$with_x"
698dcdb6
VZ
11319 :
11320fi
ba337fe7 11321
ab9b9eab
VZ
11322# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
11323if test "x$with_x" = xno; then
11324 # The user explicitly disabled X.
11325 have_x=disabled
11326else
11327 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
11328 # Both variables are already set.
11329 have_x=yes
11330 else
698dcdb6
VZ
11331if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
11332 echo $ac_n "(cached) $ac_c" 1>&6
ab9b9eab
VZ
11333else
11334 # One or both of the vars are not set, and there is no cached value.
698dcdb6
VZ
11335ac_x_includes=NO ac_x_libraries=NO
11336rm -fr conftestdir
11337if mkdir conftestdir; then
11338 cd conftestdir
ab9b9eab 11339 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
698dcdb6 11340 cat > Imakefile <<'EOF'
ab9b9eab
VZ
11341acfindx:
11342 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
11343EOF
11344 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
11345 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
11346 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
11347 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
10f2d63a 11348 for ac_extension in a so sl; do
ab9b9eab 11349 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
698dcdb6 11350 test -f $ac_im_libdir/libX11.$ac_extension; then
ab9b9eab 11351 ac_im_usrlibdir=$ac_im_libdir; break
10f2d63a
VZ
11352 fi
11353 done
ab9b9eab
VZ
11354 # Screen out bogus values from the imake configuration. They are
11355 # bogus both because they are the default anyway, and because
11356 # using them would break gcc on systems where it needs fixed includes.
698dcdb6 11357 case "$ac_im_incroot" in
ab9b9eab 11358 /usr/include) ;;
698dcdb6 11359 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
ab9b9eab 11360 esac
698dcdb6 11361 case "$ac_im_usrlibdir" in
ab9b9eab 11362 /usr/lib | /lib) ;;
698dcdb6 11363 *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
ab9b9eab 11364 esac
ba337fe7 11365 fi
ab9b9eab 11366 cd ..
698dcdb6 11367 rm -fr conftestdir
ab9b9eab 11368fi
10f2d63a 11369
698dcdb6
VZ
11370if test "$ac_x_includes" = NO; then
11371 # Guess where to find include files, by looking for this one X11 .h file.
11372 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
11373
ab9b9eab 11374 # First, try using that file with no special directory specified.
698dcdb6 11375cat > conftest.$ac_ext <<EOF
04727afd 11376#line 11377 "configure"
ab9b9eab 11377#include "confdefs.h"
698dcdb6
VZ
11378#include <$x_direct_test_include>
11379EOF
11380ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
04727afd 11381{ (eval echo configure:11382: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
11382ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11383if test -z "$ac_err"; then
11384 rm -rf conftest*
ab9b9eab
VZ
11385 # We can compile using X headers with no special include directory.
11386ac_x_includes=
11387else
698dcdb6
VZ
11388 echo "$ac_err" >&5
11389 echo "configure: failed program was:" >&5
ab9b9eab 11390 cat conftest.$ac_ext >&5
698dcdb6
VZ
11391 rm -rf conftest*
11392 # Look for the header file in a standard set of common directories.
11393# Check X11 before X11Rn because it is often a symlink to the current release.
11394 for ac_dir in \
11395 /usr/X11/include \
11396 /usr/X11R6/include \
11397 /usr/X11R5/include \
11398 /usr/X11R4/include \
11399 \
11400 /usr/include/X11 \
11401 /usr/include/X11R6 \
11402 /usr/include/X11R5 \
11403 /usr/include/X11R4 \
11404 \
11405 /usr/local/X11/include \
11406 /usr/local/X11R6/include \
11407 /usr/local/X11R5/include \
11408 /usr/local/X11R4/include \
11409 \
11410 /usr/local/include/X11 \
11411 /usr/local/include/X11R6 \
11412 /usr/local/include/X11R5 \
11413 /usr/local/include/X11R4 \
11414 \
11415 /usr/X386/include \
11416 /usr/x386/include \
11417 /usr/XFree86/include/X11 \
11418 \
11419 /usr/include \
11420 /usr/local/include \
11421 /usr/unsupported/include \
11422 /usr/athena/include \
11423 /usr/local/x11r5/include \
11424 /usr/lpp/Xamples/include \
11425 \
11426 /usr/openwin/include \
11427 /usr/openwin/share/include \
11428 ; \
11429 do
11430 if test -r "$ac_dir/$x_direct_test_include"; then
11431 ac_x_includes=$ac_dir
11432 break
11433 fi
11434 done
ab9b9eab 11435fi
698dcdb6
VZ
11436rm -f conftest*
11437fi # $ac_x_includes = NO
10f2d63a 11438
698dcdb6 11439if test "$ac_x_libraries" = NO; then
ab9b9eab 11440 # Check for the libraries.
698dcdb6
VZ
11441
11442 test -z "$x_direct_test_library" && x_direct_test_library=Xt
11443 test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
11444
ab9b9eab
VZ
11445 # See if we find them without any special options.
11446 # Don't add to $LIBS permanently.
698dcdb6
VZ
11447 ac_save_LIBS="$LIBS"
11448 LIBS="-l$x_direct_test_library $LIBS"
11449cat > conftest.$ac_ext <<EOF
04727afd 11450#line 11451 "configure"
ab9b9eab 11451#include "confdefs.h"
698dcdb6
VZ
11452
11453int main() {
11454${x_direct_test_function}()
11455; return 0; }
11456EOF
04727afd 11457if { (eval echo configure:11458: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
11458 rm -rf conftest*
11459 LIBS="$ac_save_LIBS"
ab9b9eab
VZ
11460# We can link X programs with no special library path.
11461ac_x_libraries=
11462else
698dcdb6
VZ
11463 echo "configure: failed program was:" >&5
11464 cat conftest.$ac_ext >&5
11465 rm -rf conftest*
11466 LIBS="$ac_save_LIBS"
11467# First see if replacing the include by lib works.
11468# Check X11 before X11Rn because it is often a symlink to the current release.
11469for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
11470 /usr/X11/lib \
11471 /usr/X11R6/lib \
11472 /usr/X11R5/lib \
11473 /usr/X11R4/lib \
11474 \
11475 /usr/lib/X11 \
11476 /usr/lib/X11R6 \
11477 /usr/lib/X11R5 \
11478 /usr/lib/X11R4 \
11479 \
11480 /usr/local/X11/lib \
11481 /usr/local/X11R6/lib \
11482 /usr/local/X11R5/lib \
11483 /usr/local/X11R4/lib \
11484 \
11485 /usr/local/lib/X11 \
11486 /usr/local/lib/X11R6 \
11487 /usr/local/lib/X11R5 \
11488 /usr/local/lib/X11R4 \
11489 \
11490 /usr/X386/lib \
11491 /usr/x386/lib \
11492 /usr/XFree86/lib/X11 \
11493 \
11494 /usr/lib \
11495 /usr/local/lib \
11496 /usr/unsupported/lib \
11497 /usr/athena/lib \
11498 /usr/local/x11r5/lib \
11499 /usr/lpp/Xamples/lib \
11500 /lib/usr/lib/X11 \
11501 \
11502 /usr/openwin/lib \
11503 /usr/openwin/share/lib \
11504 ; \
ab9b9eab
VZ
11505do
11506 for ac_extension in a so sl; do
698dcdb6 11507 if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
ab9b9eab
VZ
11508 ac_x_libraries=$ac_dir
11509 break 2
10f2d63a 11510 fi
10f2d63a 11511 done
ab9b9eab
VZ
11512done
11513fi
698dcdb6
VZ
11514rm -f conftest*
11515fi # $ac_x_libraries = NO
10f2d63a 11516
698dcdb6 11517if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
ab9b9eab
VZ
11518 # Didn't find X anywhere. Cache the known absence of X.
11519 ac_cv_have_x="have_x=no"
11520else
11521 # Record where we found X for the cache.
11522 ac_cv_have_x="have_x=yes \
11523 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
11524fi
11525fi
10f2d63a 11526 fi
ab9b9eab
VZ
11527 eval "$ac_cv_have_x"
11528fi # $with_x != no
10f2d63a 11529
ab9b9eab 11530if test "$have_x" != yes; then
698dcdb6 11531 echo "$ac_t""$have_x" 1>&6
ab9b9eab
VZ
11532 no_x=yes
11533else
11534 # If each of the values was on the command line, it overrides each guess.
11535 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
11536 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
11537 # Update the cache value to reflect the command line values.
11538 ac_cv_have_x="have_x=yes \
11539 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
698dcdb6 11540 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
ab9b9eab 11541fi
10f2d63a 11542
ab9b9eab
VZ
11543if test "$no_x" = yes; then
11544 # Not all programs may use this symbol, but it does not hurt to define it.
698dcdb6 11545 cat >> confdefs.h <<\EOF
ab9b9eab
VZ
11546#define X_DISPLAY_MISSING 1
11547EOF
10f2d63a 11548
ab9b9eab
VZ
11549 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
11550else
11551 if test -n "$x_includes"; then
11552 X_CFLAGS="$X_CFLAGS -I$x_includes"
10f2d63a
VZ
11553 fi
11554
ab9b9eab
VZ
11555 # It would also be nice to do this for all -L options, not just this one.
11556 if test -n "$x_libraries"; then
11557 X_LIBS="$X_LIBS -L$x_libraries"
11558 # For Solaris; some versions of Sun CC require a space after -R and
11559 # others require no space. Words are not sufficient . . . .
698dcdb6 11560 case "`(uname -sr) 2>/dev/null`" in
ab9b9eab 11561 "SunOS 5"*)
698dcdb6 11562 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
04727afd 11563echo "configure:11564: checking whether -R must be followed by a space" >&5
698dcdb6
VZ
11564 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
11565 cat > conftest.$ac_ext <<EOF
04727afd 11566#line 11567 "configure"
ab9b9eab 11567#include "confdefs.h"
10f2d63a 11568
698dcdb6 11569int main() {
788deba1 11570
698dcdb6
VZ
11571; return 0; }
11572EOF
04727afd 11573if { (eval echo configure:11574: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6 11574 rm -rf conftest*
ab9b9eab
VZ
11575 ac_R_nospace=yes
11576else
698dcdb6
VZ
11577 echo "configure: failed program was:" >&5
11578 cat conftest.$ac_ext >&5
11579 rm -rf conftest*
11580 ac_R_nospace=no
ab9b9eab 11581fi
698dcdb6 11582rm -f conftest*
ab9b9eab 11583 if test $ac_R_nospace = yes; then
698dcdb6 11584 echo "$ac_t""no" 1>&6
ab9b9eab
VZ
11585 X_LIBS="$X_LIBS -R$x_libraries"
11586 else
11587 LIBS="$ac_xsave_LIBS -R $x_libraries"
698dcdb6 11588 cat > conftest.$ac_ext <<EOF
04727afd 11589#line 11590 "configure"
ab9b9eab 11590#include "confdefs.h"
788deba1 11591
698dcdb6 11592int main() {
ab9b9eab 11593
698dcdb6
VZ
11594; return 0; }
11595EOF
04727afd 11596if { (eval echo configure:11597: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6 11597 rm -rf conftest*
ab9b9eab
VZ
11598 ac_R_space=yes
11599else
698dcdb6
VZ
11600 echo "configure: failed program was:" >&5
11601 cat conftest.$ac_ext >&5
11602 rm -rf conftest*
11603 ac_R_space=no
ab9b9eab 11604fi
698dcdb6 11605rm -f conftest*
ab9b9eab 11606 if test $ac_R_space = yes; then
698dcdb6 11607 echo "$ac_t""yes" 1>&6
ab9b9eab
VZ
11608 X_LIBS="$X_LIBS -R $x_libraries"
11609 else
698dcdb6 11610 echo "$ac_t""neither works" 1>&6
ab9b9eab
VZ
11611 fi
11612 fi
698dcdb6 11613 LIBS="$ac_xsave_LIBS"
ab9b9eab
VZ
11614 esac
11615 fi
11616
11617 # Check for system-dependent libraries X programs must link with.
11618 # Do this before checking for the system-independent R6 libraries
11619 # (-lICE), since we may need -lsocket or whatever for X linking.
11620
11621 if test "$ISC" = yes; then
11622 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
11623 else
698dcdb6
VZ
11624 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
11625 # libraries were built with DECnet support. And karl@cs.umb.edu says
ab9b9eab 11626 # the Alpha needs dnet_stub (dnet does not exist).
698dcdb6 11627 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
04727afd 11628echo "configure:11629: checking for dnet_ntoa in -ldnet" >&5
698dcdb6
VZ
11629ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
11630if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11631 echo $ac_n "(cached) $ac_c" 1>&6
ab9b9eab 11632else
698dcdb6 11633 ac_save_LIBS="$LIBS"
ab9b9eab 11634LIBS="-ldnet $LIBS"
698dcdb6 11635cat > conftest.$ac_ext <<EOF
04727afd 11636#line 11637 "configure"
ab9b9eab
VZ
11637#include "confdefs.h"
11638/* Override any gcc2 internal prototype to avoid an error. */
11639/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
11640 builtin and then its argument prototype would still apply. */
11641char dnet_ntoa();
11642
11643int main() {
11644dnet_ntoa()
11645; return 0; }
11646EOF
04727afd 11647if { (eval echo configure:11648: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
11648 rm -rf conftest*
11649 eval "ac_cv_lib_$ac_lib_var=yes"
11650else
11651 echo "configure: failed program was:" >&5
11652 cat conftest.$ac_ext >&5
11653 rm -rf conftest*
11654 eval "ac_cv_lib_$ac_lib_var=no"
11655fi
11656rm -f conftest*
11657LIBS="$ac_save_LIBS"
11658
11659fi
11660if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11661 echo "$ac_t""yes" 1>&6
ab9b9eab 11662 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
698dcdb6
VZ
11663else
11664 echo "$ac_t""no" 1>&6
ab9b9eab
VZ
11665fi
11666
11667 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
698dcdb6 11668 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
04727afd 11669echo "configure:11670: checking for dnet_ntoa in -ldnet_stub" >&5
698dcdb6
VZ
11670ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
11671if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11672 echo $ac_n "(cached) $ac_c" 1>&6
ab9b9eab 11673else
698dcdb6 11674 ac_save_LIBS="$LIBS"
ab9b9eab 11675LIBS="-ldnet_stub $LIBS"
698dcdb6 11676cat > conftest.$ac_ext <<EOF
04727afd 11677#line 11678 "configure"
ab9b9eab
VZ
11678#include "confdefs.h"
11679/* Override any gcc2 internal prototype to avoid an error. */
11680/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
11681 builtin and then its argument prototype would still apply. */
11682char dnet_ntoa();
11683
11684int main() {
11685dnet_ntoa()
11686; return 0; }
11687EOF
04727afd 11688if { (eval echo configure:11689: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
11689 rm -rf conftest*
11690 eval "ac_cv_lib_$ac_lib_var=yes"
11691else
11692 echo "configure: failed program was:" >&5
11693 cat conftest.$ac_ext >&5
11694 rm -rf conftest*
11695 eval "ac_cv_lib_$ac_lib_var=no"
11696fi
11697rm -f conftest*
11698LIBS="$ac_save_LIBS"
11699
11700fi
11701if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11702 echo "$ac_t""yes" 1>&6
ab9b9eab 11703 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
698dcdb6
VZ
11704else
11705 echo "$ac_t""no" 1>&6
ab9b9eab
VZ
11706fi
11707
11708 fi
11709
11710 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
11711 # to get the SysV transport functions.
698dcdb6 11712 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
ab9b9eab
VZ
11713 # needs -lnsl.
11714 # The nsl library prevents programs from opening the X display
698dcdb6
VZ
11715 # on Irix 5.2, according to dickey@clark.net.
11716 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
04727afd 11717echo "configure:11718: checking for gethostbyname" >&5
698dcdb6
VZ
11718if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
11719 echo $ac_n "(cached) $ac_c" 1>&6
11720else
11721 cat > conftest.$ac_ext <<EOF
04727afd 11722#line 11723 "configure"
ab9b9eab
VZ
11723#include "confdefs.h"
11724/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 11725 which can conflict with char gethostbyname(); below. */
ab9b9eab
VZ
11726#include <assert.h>
11727/* Override any gcc2 internal prototype to avoid an error. */
11728/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
11729 builtin and then its argument prototype would still apply. */
11730char gethostbyname();
11731
11732int main() {
ab9b9eab
VZ
11733
11734/* The GNU C library defines this for functions which it implements
11735 to always fail with ENOSYS. Some functions are actually named
11736 something starting with __ and the normal name is an alias. */
11737#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
11738choke me
11739#else
698dcdb6 11740gethostbyname();
ab9b9eab
VZ
11741#endif
11742
698dcdb6
VZ
11743; return 0; }
11744EOF
04727afd 11745if { (eval echo configure:11746: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
11746 rm -rf conftest*
11747 eval "ac_cv_func_gethostbyname=yes"
11748else
11749 echo "configure: failed program was:" >&5
11750 cat conftest.$ac_ext >&5
11751 rm -rf conftest*
11752 eval "ac_cv_func_gethostbyname=no"
11753fi
11754rm -f conftest*
11755fi
11756
11757if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
11758 echo "$ac_t""yes" 1>&6
11759 :
11760else
11761 echo "$ac_t""no" 1>&6
11762fi
ab9b9eab
VZ
11763
11764 if test $ac_cv_func_gethostbyname = no; then
698dcdb6 11765 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
04727afd 11766echo "configure:11767: checking for gethostbyname in -lnsl" >&5
698dcdb6
VZ
11767ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
11768if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11769 echo $ac_n "(cached) $ac_c" 1>&6
ab9b9eab 11770else
698dcdb6 11771 ac_save_LIBS="$LIBS"
ab9b9eab 11772LIBS="-lnsl $LIBS"
698dcdb6 11773cat > conftest.$ac_ext <<EOF
04727afd 11774#line 11775 "configure"
ab9b9eab
VZ
11775#include "confdefs.h"
11776/* Override any gcc2 internal prototype to avoid an error. */
11777/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
11778 builtin and then its argument prototype would still apply. */
11779char gethostbyname();
6232543b 11780
698dcdb6
VZ
11781int main() {
11782gethostbyname()
11783; return 0; }
11784EOF
04727afd 11785if { (eval echo configure:11786: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
11786 rm -rf conftest*
11787 eval "ac_cv_lib_$ac_lib_var=yes"
703e0a69 11788else
698dcdb6
VZ
11789 echo "configure: failed program was:" >&5
11790 cat conftest.$ac_ext >&5
11791 rm -rf conftest*
11792 eval "ac_cv_lib_$ac_lib_var=no"
11793fi
11794rm -f conftest*
11795LIBS="$ac_save_LIBS"
1e487827 11796
698dcdb6
VZ
11797fi
11798if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11799 echo "$ac_t""yes" 1>&6
11800 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
11801else
11802 echo "$ac_t""no" 1>&6
ab9b9eab
VZ
11803fi
11804
11805 fi
11806
11807 # lieder@skyler.mavd.honeywell.com says without -lsocket,
11808 # socket/setsockopt and other routines are undefined under SCO ODT
11809 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
698dcdb6
VZ
11810 # on later versions), says simon@lia.di.epfl.ch: it contains
11811 # gethostby* variants that don't use the nameserver (or something).
11812 # -lsocket must be given before -lnsl if both are needed.
11813 # We assume that if connect needs -lnsl, so does gethostbyname.
11814 echo $ac_n "checking for connect""... $ac_c" 1>&6
04727afd 11815echo "configure:11816: checking for connect" >&5
698dcdb6
VZ
11816if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
11817 echo $ac_n "(cached) $ac_c" 1>&6
11818else
11819 cat > conftest.$ac_ext <<EOF
04727afd 11820#line 11821 "configure"
ab9b9eab
VZ
11821#include "confdefs.h"
11822/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 11823 which can conflict with char connect(); below. */
ab9b9eab
VZ
11824#include <assert.h>
11825/* Override any gcc2 internal prototype to avoid an error. */
11826/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
11827 builtin and then its argument prototype would still apply. */
11828char connect();
11829
11830int main() {
ab9b9eab
VZ
11831
11832/* The GNU C library defines this for functions which it implements
11833 to always fail with ENOSYS. Some functions are actually named
11834 something starting with __ and the normal name is an alias. */
11835#if defined (__stub_connect) || defined (__stub___connect)
11836choke me
11837#else
698dcdb6 11838connect();
ab9b9eab
VZ
11839#endif
11840
698dcdb6
VZ
11841; return 0; }
11842EOF
04727afd 11843if { (eval echo configure:11844: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
11844 rm -rf conftest*
11845 eval "ac_cv_func_connect=yes"
11846else
11847 echo "configure: failed program was:" >&5
11848 cat conftest.$ac_ext >&5
11849 rm -rf conftest*
11850 eval "ac_cv_func_connect=no"
11851fi
11852rm -f conftest*
11853fi
11854
11855if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
11856 echo "$ac_t""yes" 1>&6
11857 :
11858else
11859 echo "$ac_t""no" 1>&6
11860fi
ab9b9eab
VZ
11861
11862 if test $ac_cv_func_connect = no; then
698dcdb6 11863 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
04727afd 11864echo "configure:11865: checking for connect in -lsocket" >&5
698dcdb6
VZ
11865ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
11866if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11867 echo $ac_n "(cached) $ac_c" 1>&6
ab9b9eab 11868else
698dcdb6 11869 ac_save_LIBS="$LIBS"
ab9b9eab 11870LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
698dcdb6 11871cat > conftest.$ac_ext <<EOF
04727afd 11872#line 11873 "configure"
ab9b9eab
VZ
11873#include "confdefs.h"
11874/* Override any gcc2 internal prototype to avoid an error. */
11875/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
11876 builtin and then its argument prototype would still apply. */
11877char connect();
11878
11879int main() {
11880connect()
11881; return 0; }
11882EOF
04727afd 11883if { (eval echo configure:11884: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
11884 rm -rf conftest*
11885 eval "ac_cv_lib_$ac_lib_var=yes"
11886else
11887 echo "configure: failed program was:" >&5
11888 cat conftest.$ac_ext >&5
11889 rm -rf conftest*
11890 eval "ac_cv_lib_$ac_lib_var=no"
11891fi
11892rm -f conftest*
11893LIBS="$ac_save_LIBS"
11894
11895fi
11896if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11897 echo "$ac_t""yes" 1>&6
ab9b9eab 11898 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
698dcdb6
VZ
11899else
11900 echo "$ac_t""no" 1>&6
ab9b9eab
VZ
11901fi
11902
11903 fi
11904
698dcdb6
VZ
11905 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
11906 echo $ac_n "checking for remove""... $ac_c" 1>&6
04727afd 11907echo "configure:11908: checking for remove" >&5
698dcdb6
VZ
11908if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
11909 echo $ac_n "(cached) $ac_c" 1>&6
ab9b9eab 11910else
698dcdb6 11911 cat > conftest.$ac_ext <<EOF
04727afd 11912#line 11913 "configure"
ab9b9eab
VZ
11913#include "confdefs.h"
11914/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 11915 which can conflict with char remove(); below. */
ab9b9eab
VZ
11916#include <assert.h>
11917/* Override any gcc2 internal prototype to avoid an error. */
11918/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
11919 builtin and then its argument prototype would still apply. */
11920char remove();
11921
11922int main() {
ab9b9eab
VZ
11923
11924/* The GNU C library defines this for functions which it implements
11925 to always fail with ENOSYS. Some functions are actually named
11926 something starting with __ and the normal name is an alias. */
11927#if defined (__stub_remove) || defined (__stub___remove)
11928choke me
11929#else
698dcdb6 11930remove();
ab9b9eab
VZ
11931#endif
11932
698dcdb6
VZ
11933; return 0; }
11934EOF
04727afd 11935if { (eval echo configure:11936: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
11936 rm -rf conftest*
11937 eval "ac_cv_func_remove=yes"
11938else
11939 echo "configure: failed program was:" >&5
11940 cat conftest.$ac_ext >&5
11941 rm -rf conftest*
11942 eval "ac_cv_func_remove=no"
11943fi
11944rm -f conftest*
11945fi
11946
11947if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
11948 echo "$ac_t""yes" 1>&6
11949 :
11950else
11951 echo "$ac_t""no" 1>&6
11952fi
ab9b9eab
VZ
11953
11954 if test $ac_cv_func_remove = no; then
698dcdb6 11955 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
04727afd 11956echo "configure:11957: checking for remove in -lposix" >&5
698dcdb6
VZ
11957ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
11958if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11959 echo $ac_n "(cached) $ac_c" 1>&6
ab9b9eab 11960else
698dcdb6 11961 ac_save_LIBS="$LIBS"
ab9b9eab 11962LIBS="-lposix $LIBS"
698dcdb6 11963cat > conftest.$ac_ext <<EOF
04727afd 11964#line 11965 "configure"
ab9b9eab
VZ
11965#include "confdefs.h"
11966/* Override any gcc2 internal prototype to avoid an error. */
11967/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
11968 builtin and then its argument prototype would still apply. */
11969char remove();
11970
11971int main() {
11972remove()
11973; return 0; }
11974EOF
04727afd 11975if { (eval echo configure:11976: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
11976 rm -rf conftest*
11977 eval "ac_cv_lib_$ac_lib_var=yes"
11978else
11979 echo "configure: failed program was:" >&5
11980 cat conftest.$ac_ext >&5
11981 rm -rf conftest*
11982 eval "ac_cv_lib_$ac_lib_var=no"
11983fi
11984rm -f conftest*
11985LIBS="$ac_save_LIBS"
11986
11987fi
11988if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11989 echo "$ac_t""yes" 1>&6
ab9b9eab 11990 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
698dcdb6
VZ
11991else
11992 echo "$ac_t""no" 1>&6
ab9b9eab
VZ
11993fi
11994
11995 fi
11996
11997 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
698dcdb6 11998 echo $ac_n "checking for shmat""... $ac_c" 1>&6
04727afd 11999echo "configure:12000: checking for shmat" >&5
698dcdb6
VZ
12000if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
12001 echo $ac_n "(cached) $ac_c" 1>&6
ab9b9eab 12002else
698dcdb6 12003 cat > conftest.$ac_ext <<EOF
04727afd 12004#line 12005 "configure"
ab9b9eab
VZ
12005#include "confdefs.h"
12006/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 12007 which can conflict with char shmat(); below. */
ab9b9eab
VZ
12008#include <assert.h>
12009/* Override any gcc2 internal prototype to avoid an error. */
12010/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
12011 builtin and then its argument prototype would still apply. */
12012char shmat();
12013
12014int main() {
ab9b9eab
VZ
12015
12016/* The GNU C library defines this for functions which it implements
12017 to always fail with ENOSYS. Some functions are actually named
12018 something starting with __ and the normal name is an alias. */
12019#if defined (__stub_shmat) || defined (__stub___shmat)
12020choke me
12021#else
698dcdb6 12022shmat();
ab9b9eab
VZ
12023#endif
12024
698dcdb6
VZ
12025; return 0; }
12026EOF
04727afd 12027if { (eval echo configure:12028: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
12028 rm -rf conftest*
12029 eval "ac_cv_func_shmat=yes"
12030else
12031 echo "configure: failed program was:" >&5
12032 cat conftest.$ac_ext >&5
12033 rm -rf conftest*
12034 eval "ac_cv_func_shmat=no"
12035fi
12036rm -f conftest*
12037fi
12038
12039if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
12040 echo "$ac_t""yes" 1>&6
12041 :
12042else
12043 echo "$ac_t""no" 1>&6
12044fi
ab9b9eab
VZ
12045
12046 if test $ac_cv_func_shmat = no; then
698dcdb6 12047 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
04727afd 12048echo "configure:12049: checking for shmat in -lipc" >&5
698dcdb6
VZ
12049ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
12050if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12051 echo $ac_n "(cached) $ac_c" 1>&6
ab9b9eab 12052else
698dcdb6 12053 ac_save_LIBS="$LIBS"
ab9b9eab 12054LIBS="-lipc $LIBS"
698dcdb6 12055cat > conftest.$ac_ext <<EOF
04727afd 12056#line 12057 "configure"
ab9b9eab
VZ
12057#include "confdefs.h"
12058/* Override any gcc2 internal prototype to avoid an error. */
12059/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
12060 builtin and then its argument prototype would still apply. */
12061char shmat();
12062
12063int main() {
12064shmat()
12065; return 0; }
12066EOF
04727afd 12067if { (eval echo configure:12068: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
12068 rm -rf conftest*
12069 eval "ac_cv_lib_$ac_lib_var=yes"
12070else
12071 echo "configure: failed program was:" >&5
12072 cat conftest.$ac_ext >&5
12073 rm -rf conftest*
12074 eval "ac_cv_lib_$ac_lib_var=no"
12075fi
12076rm -f conftest*
12077LIBS="$ac_save_LIBS"
12078
12079fi
12080if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12081 echo "$ac_t""yes" 1>&6
ab9b9eab 12082 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
698dcdb6
VZ
12083else
12084 echo "$ac_t""no" 1>&6
ab9b9eab
VZ
12085fi
12086
12087 fi
12088 fi
12089
12090 # Check for libraries that X11R6 Xt/Xaw programs need.
698dcdb6 12091 ac_save_LDFLAGS="$LDFLAGS"
ab9b9eab
VZ
12092 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
12093 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
12094 # check for ICE first), but we must link in the order -lSM -lICE or
12095 # we get undefined symbols. So assume we have SM if we have ICE.
12096 # These have to be linked with before -lX11, unlike the other
12097 # libraries we check for below, so use a different variable.
698dcdb6
VZ
12098 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
12099 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
04727afd 12100echo "configure:12101: checking for IceConnectionNumber in -lICE" >&5
698dcdb6
VZ
12101ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
12102if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12103 echo $ac_n "(cached) $ac_c" 1>&6
12104else
12105 ac_save_LIBS="$LIBS"
ab9b9eab 12106LIBS="-lICE $X_EXTRA_LIBS $LIBS"
698dcdb6 12107cat > conftest.$ac_ext <<EOF
04727afd 12108#line 12109 "configure"
ab9b9eab
VZ
12109#include "confdefs.h"
12110/* Override any gcc2 internal prototype to avoid an error. */
12111/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
12112 builtin and then its argument prototype would still apply. */
12113char IceConnectionNumber();
12114
12115int main() {
12116IceConnectionNumber()
12117; return 0; }
12118EOF
04727afd 12119if { (eval echo configure:12120: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
12120 rm -rf conftest*
12121 eval "ac_cv_lib_$ac_lib_var=yes"
12122else
12123 echo "configure: failed program was:" >&5
12124 cat conftest.$ac_ext >&5
12125 rm -rf conftest*
12126 eval "ac_cv_lib_$ac_lib_var=no"
12127fi
12128rm -f conftest*
12129LIBS="$ac_save_LIBS"
12130
12131fi
12132if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12133 echo "$ac_t""yes" 1>&6
ab9b9eab 12134 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
698dcdb6
VZ
12135else
12136 echo "$ac_t""no" 1>&6
ab9b9eab
VZ
12137fi
12138
698dcdb6 12139 LDFLAGS="$ac_save_LDFLAGS"
ab9b9eab
VZ
12140
12141fi
12142
12143
1e6feb95
VZ
12144 if test "$no_x" = "yes"; then
12145 { echo "configure: error: X11 not found" 1>&2; exit 1; }
12146 fi
ab9b9eab 12147
1e6feb95
VZ
12148 GUI_TK_LIBRARY="$X_LIBS"
12149 TOOLKIT_INCLUDE="$X_CFLAGS"
1e6feb95 12150 AFMINSTALL=afminstall
1e6feb95 12151 COMPILED_X_PROGRAM=0
cd6d6d5b 12152
e334d0ea 12153 if test "$wxUSE_NANOX" = "yes"; then
d8356fa3 12154 echo $ac_n "checking for MicroWindows/NanoX distribution""... $ac_c" 1>&6
04727afd 12155echo "configure:12156: checking for MicroWindows/NanoX distribution" >&5
d8356fa3
VZ
12156 if test "x$MICROWIN" = x ; then
12157 echo "$ac_t""not found" 1>&6
12158 { echo "configure: error: Cannot find MicroWindows library. Make sure MICROWIN is set." 1>&2; exit 1; }
12159 else
12160 echo "$ac_t""$MICROWIN" 1>&6
c79a329d
JS
12161 cat >> confdefs.h <<\EOF
12162#define wxUSE_NANOX 1
12163EOF
12164
d8356fa3
VZ
12165 fi
12166 fi
12167
3d63bc3a 12168 xpm_link=
1e6feb95 12169 echo $ac_n "checking for Xpm library""... $ac_c" 1>&6
04727afd 12170echo "configure:12171: checking for Xpm library" >&5
1e6feb95 12171
ab9b9eab
VZ
12172ac_find_libraries=
12173for ac_dir in $SEARCH_LIB;
12174 do
f11bdd03 12175 for ac_extension in a so sl dylib; do
ab9b9eab
VZ
12176 if test -f "$ac_dir/libXpm.$ac_extension"; then
12177 ac_find_libraries=$ac_dir
12178 break 2
12179 fi
12180 done
12181 done
12182
1e6feb95
VZ
12183 if test "$ac_find_libraries" != "" ; then
12184
ab9b9eab
VZ
12185 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
12186 result=$?
12187 if test $result = 0; then
12188 ac_path_to_link=""
12189 else
62d0491b 12190 ac_path_to_link=" -L$ac_find_libraries"
ab9b9eab
VZ
12191 fi
12192
62d0491b 12193 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
3d63bc3a 12194 xpm_link=" -lXpm"
1e6feb95 12195 cat >> confdefs.h <<\EOF
ab9b9eab
VZ
12196#define wxHAVE_LIB_XPM 1
12197EOF
12198
1e6feb95
VZ
12199 echo "$ac_t""found at $ac_find_libraries" 1>&6
12200 else
12201 cat > conftest.$ac_ext <<EOF
04727afd 12202#line 12203 "configure"
cd6d6d5b
VZ
12203#include "confdefs.h"
12204
1e6feb95
VZ
12205 #include <X11/xpm.h>
12206
698dcdb6 12207int main() {
cd6d6d5b 12208
1e6feb95 12209 int version;
1e6feb95
VZ
12210 version = XpmLibraryVersion();
12211
698dcdb6
VZ
12212; return 0; }
12213EOF
04727afd 12214if { (eval echo configure:12215: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6
VZ
12215 rm -rf conftest*
12216
3d63bc3a 12217 xpm_link=" -lXpm"
3a922bb4 12218 cat >> confdefs.h <<\EOF
3ace2e6d
SN
12219#define wxHAVE_LIB_XPM 1
12220EOF
12221
1e6feb95
VZ
12222 echo "$ac_t""found in default search path" 1>&6
12223 COMPILED_X_PROGRAM=0
12224
cd6d6d5b 12225else
698dcdb6
VZ
12226 echo "configure: failed program was:" >&5
12227 cat conftest.$ac_ext >&5
12228 rm -rf conftest*
12229
1e6feb95
VZ
12230 echo "$ac_t""no" 1>&6
12231 echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2
12232
698dcdb6 12233
cd6d6d5b 12234fi
698dcdb6 12235rm -f conftest*
1e6feb95
VZ
12236 fi
12237
e334d0ea 12238 if test "$wxUSE_NANOX" = "yes"; then
d8356fa3 12239 TOOLKIT_INCLUDE="-I\$(top_srcdir)/include/wx/x11/nanox -I\$(MICROWIN)/src/include $TOOLKIT_INCLUDE"
17c89ef3 12240 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"
461e93f9 12241 GUI_TK_LIBRARY="$GUI_TK_LIBRARY \$(MICROWIN)/src/lib/libnano-X.a"
d8356fa3 12242 else
0feee163 12243 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lX11$xpm_link"
d8356fa3
VZ
12244 fi
12245
3c011993 12246 TOOLKIT_VPATH="\${top_srcdir}/src/x11"
f79bd02d
JS
12247 TOOLKIT=X11
12248 GUIDIST=X11_DIST
1e6feb95 12249 fi
10f2d63a 12250
f79bd02d
JS
12251 if test "$wxUSE_WINE" = 1; then
12252 ac_safe=`echo "windows.h" | sed 'y%./+-%__p_%'`
12253echo $ac_n "checking for windows.h""... $ac_c" 1>&6
04727afd 12254echo "configure:12255: checking for windows.h" >&5
f79bd02d
JS
12255if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
12256 echo $ac_n "(cached) $ac_c" 1>&6
12257else
12258 cat > conftest.$ac_ext <<EOF
04727afd 12259#line 12260 "configure"
f79bd02d
JS
12260#include "confdefs.h"
12261#include <windows.h>
12262EOF
12263ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
04727afd 12264{ (eval echo configure:12265: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
f79bd02d
JS
12265ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12266if test -z "$ac_err"; then
12267 rm -rf conftest*
12268 eval "ac_cv_header_$ac_safe=yes"
12269else
12270 echo "$ac_err" >&5
12271 echo "configure: failed program was:" >&5
12272 cat conftest.$ac_ext >&5
12273 rm -rf conftest*
12274 eval "ac_cv_header_$ac_safe=no"
12275fi
12276rm -f conftest*
12277fi
12278if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12279 echo "$ac_t""yes" 1>&6
12280 :
12281else
12282 echo "$ac_t""no" 1>&6
12283
12284 { echo "configure: error: please set CFLAGS to contain the location of windows.h" 1>&2; exit 1; }
12285
12286fi
12287
12288
12289 xpm_link=
12290 echo $ac_n "checking for Xpm library""... $ac_c" 1>&6
04727afd 12291echo "configure:12292: checking for Xpm library" >&5
f79bd02d
JS
12292
12293ac_find_libraries=
12294for ac_dir in $SEARCH_LIB;
12295 do
12296 for ac_extension in a so sl dylib; do
12297 if test -f "$ac_dir/libXpm.$ac_extension"; then
12298 ac_find_libraries=$ac_dir
12299 break 2
12300 fi
12301 done
12302 done
12303
12304 if test "$ac_find_libraries" != "" ; then
12305 GUI_TK_LIBRARY="-L$ac_find_libraries"
12306 xpm_link=" -lXpm"
12307 cat >> confdefs.h <<\EOF
12308#define wxHAVE_LIB_XPM 1
12309EOF
12310
12311 echo "$ac_t""found at $ac_find_libraries" 1>&6
12312 else
12313 echo "$ac_t""no" 1>&6
12314 echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2
12315 fi
12316
12317 mesa_link=
12318 echo $ac_n "checking for Mesa library""... $ac_c" 1>&6
04727afd 12319echo "configure:12320: checking for Mesa library" >&5
f79bd02d
JS
12320
12321ac_find_libraries=
12322for ac_dir in $SEARCH_LIB;
12323 do
12324 for ac_extension in a so sl dylib; do
12325 if test -f "$ac_dir/libMesaGL.$ac_extension"; then
12326 ac_find_libraries=$ac_dir
12327 break 2
12328 fi
12329 done
12330 done
12331
12332 if test "$ac_find_libraries" != "" ; then
12333 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -L$ac_find_libraries"
12334 mesa_link=" -lMesaGL"
12335 echo "$ac_t""found at $ac_find_libraries" 1>&6
12336 else
12337 { echo "configure: error: no" 1>&2; exit 1; }
12338 fi
12339
12340 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lwine$mesa_link$xpm_link -lXxf86dga -lXxf86vm -lSM -lICE -lXext -lXmu -lX11 -lncurses"
12341 TOOLKIT=MSW
12342 GUIDIST=MSW_DIST
12343 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXWINE__"
12344 fi
12345
12346 if test "$wxUSE_MOTIF" = 1; then
12347 if test "$no_x" = yes; then
12348 # Not all programs may use this symbol, but it does not hurt to define it.
12349 cat >> confdefs.h <<\EOF
12350#define X_DISPLAY_MISSING 1
12351EOF
12352
12353 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
12354else
12355 if test -n "$x_includes"; then
12356 X_CFLAGS="$X_CFLAGS -I$x_includes"
12357 fi
12358
12359 # It would also be nice to do this for all -L options, not just this one.
12360 if test -n "$x_libraries"; then
12361 X_LIBS="$X_LIBS -L$x_libraries"
12362 # For Solaris; some versions of Sun CC require a space after -R and
12363 # others require no space. Words are not sufficient . . . .
12364 case "`(uname -sr) 2>/dev/null`" in
12365 "SunOS 5"*)
12366 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
04727afd 12367echo "configure:12368: checking whether -R must be followed by a space" >&5
f79bd02d
JS
12368 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
12369 cat > conftest.$ac_ext <<EOF
04727afd 12370#line 12371 "configure"
f79bd02d
JS
12371#include "confdefs.h"
12372
12373int main() {
12374
12375; return 0; }
12376EOF
04727afd 12377if { (eval echo configure:12378: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
f79bd02d
JS
12378 rm -rf conftest*
12379 ac_R_nospace=yes
12380else
12381 echo "configure: failed program was:" >&5
12382 cat conftest.$ac_ext >&5
12383 rm -rf conftest*
12384 ac_R_nospace=no
12385fi
12386rm -f conftest*
12387 if test $ac_R_nospace = yes; then
12388 echo "$ac_t""no" 1>&6
12389 X_LIBS="$X_LIBS -R$x_libraries"
12390 else
12391 LIBS="$ac_xsave_LIBS -R $x_libraries"
12392 cat > conftest.$ac_ext <<EOF
04727afd 12393#line 12394 "configure"
f79bd02d
JS
12394#include "confdefs.h"
12395
12396int main() {
12397
12398; return 0; }
12399EOF
04727afd 12400if { (eval echo configure:12401: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
f79bd02d
JS
12401 rm -rf conftest*
12402 ac_R_space=yes
12403else
12404 echo "configure: failed program was:" >&5
12405 cat conftest.$ac_ext >&5
12406 rm -rf conftest*
12407 ac_R_space=no
12408fi
12409rm -f conftest*
12410 if test $ac_R_space = yes; then
12411 echo "$ac_t""yes" 1>&6
12412 X_LIBS="$X_LIBS -R $x_libraries"
12413 else
12414 echo "$ac_t""neither works" 1>&6
12415 fi
12416 fi
12417 LIBS="$ac_xsave_LIBS"
12418 esac
12419 fi
12420
12421 # Check for system-dependent libraries X programs must link with.
12422 # Do this before checking for the system-independent R6 libraries
12423 # (-lICE), since we may need -lsocket or whatever for X linking.
12424
12425 if test "$ISC" = yes; then
12426 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
12427 else
12428 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
12429 # libraries were built with DECnet support. And karl@cs.umb.edu says
12430 # the Alpha needs dnet_stub (dnet does not exist).
12431 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
04727afd 12432echo "configure:12433: checking for dnet_ntoa in -ldnet" >&5
f79bd02d
JS
12433ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
12434if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12435 echo $ac_n "(cached) $ac_c" 1>&6
12436else
12437 ac_save_LIBS="$LIBS"
12438LIBS="-ldnet $LIBS"
12439cat > conftest.$ac_ext <<EOF
04727afd 12440#line 12441 "configure"
f79bd02d
JS
12441#include "confdefs.h"
12442/* Override any gcc2 internal prototype to avoid an error. */
12443/* We use char because int might match the return type of a gcc2
12444 builtin and then its argument prototype would still apply. */
12445char dnet_ntoa();
12446
12447int main() {
12448dnet_ntoa()
12449; return 0; }
12450EOF
04727afd 12451if { (eval echo configure:12452: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
f79bd02d
JS
12452 rm -rf conftest*
12453 eval "ac_cv_lib_$ac_lib_var=yes"
12454else
12455 echo "configure: failed program was:" >&5
12456 cat conftest.$ac_ext >&5
12457 rm -rf conftest*
12458 eval "ac_cv_lib_$ac_lib_var=no"
12459fi
12460rm -f conftest*
12461LIBS="$ac_save_LIBS"
12462
12463fi
12464if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12465 echo "$ac_t""yes" 1>&6
12466 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
12467else
12468 echo "$ac_t""no" 1>&6
12469fi
12470
12471 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
12472 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
04727afd 12473echo "configure:12474: checking for dnet_ntoa in -ldnet_stub" >&5
f79bd02d
JS
12474ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
12475if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12476 echo $ac_n "(cached) $ac_c" 1>&6
12477else
12478 ac_save_LIBS="$LIBS"
12479LIBS="-ldnet_stub $LIBS"
12480cat > conftest.$ac_ext <<EOF
04727afd 12481#line 12482 "configure"
f79bd02d
JS
12482#include "confdefs.h"
12483/* Override any gcc2 internal prototype to avoid an error. */
12484/* We use char because int might match the return type of a gcc2
12485 builtin and then its argument prototype would still apply. */
12486char dnet_ntoa();
12487
12488int main() {
12489dnet_ntoa()
12490; return 0; }
12491EOF
04727afd 12492if { (eval echo configure:12493: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
f79bd02d
JS
12493 rm -rf conftest*
12494 eval "ac_cv_lib_$ac_lib_var=yes"
12495else
12496 echo "configure: failed program was:" >&5
12497 cat conftest.$ac_ext >&5
12498 rm -rf conftest*
12499 eval "ac_cv_lib_$ac_lib_var=no"
12500fi
12501rm -f conftest*
12502LIBS="$ac_save_LIBS"
12503
12504fi
12505if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12506 echo "$ac_t""yes" 1>&6
12507 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
12508else
12509 echo "$ac_t""no" 1>&6
12510fi
12511
12512 fi
12513
12514 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
12515 # to get the SysV transport functions.
12516 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
12517 # needs -lnsl.
12518 # The nsl library prevents programs from opening the X display
12519 # on Irix 5.2, according to dickey@clark.net.
12520 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
04727afd 12521echo "configure:12522: checking for gethostbyname" >&5
f79bd02d
JS
12522if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
12523 echo $ac_n "(cached) $ac_c" 1>&6
12524else
12525 cat > conftest.$ac_ext <<EOF
04727afd 12526#line 12527 "configure"
f79bd02d
JS
12527#include "confdefs.h"
12528/* System header to define __stub macros and hopefully few prototypes,
12529 which can conflict with char gethostbyname(); below. */
12530#include <assert.h>
12531/* Override any gcc2 internal prototype to avoid an error. */
12532/* We use char because int might match the return type of a gcc2
12533 builtin and then its argument prototype would still apply. */
12534char gethostbyname();
12535
12536int main() {
12537
12538/* The GNU C library defines this for functions which it implements
12539 to always fail with ENOSYS. Some functions are actually named
12540 something starting with __ and the normal name is an alias. */
12541#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
12542choke me
12543#else
12544gethostbyname();
12545#endif
12546
12547; return 0; }
12548EOF
04727afd 12549if { (eval echo configure:12550: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
f79bd02d
JS
12550 rm -rf conftest*
12551 eval "ac_cv_func_gethostbyname=yes"
12552else
12553 echo "configure: failed program was:" >&5
12554 cat conftest.$ac_ext >&5
12555 rm -rf conftest*
12556 eval "ac_cv_func_gethostbyname=no"
12557fi
12558rm -f conftest*
12559fi
12560
12561if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
12562 echo "$ac_t""yes" 1>&6
12563 :
12564else
12565 echo "$ac_t""no" 1>&6
12566fi
12567
12568 if test $ac_cv_func_gethostbyname = no; then
12569 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
04727afd 12570echo "configure:12571: checking for gethostbyname in -lnsl" >&5
f79bd02d
JS
12571ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
12572if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12573 echo $ac_n "(cached) $ac_c" 1>&6
12574else
12575 ac_save_LIBS="$LIBS"
12576LIBS="-lnsl $LIBS"
12577cat > conftest.$ac_ext <<EOF
04727afd 12578#line 12579 "configure"
f79bd02d
JS
12579#include "confdefs.h"
12580/* Override any gcc2 internal prototype to avoid an error. */
12581/* We use char because int might match the return type of a gcc2
12582 builtin and then its argument prototype would still apply. */
12583char gethostbyname();
12584
12585int main() {
12586gethostbyname()
12587; return 0; }
12588EOF
04727afd 12589if { (eval echo configure:12590: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
f79bd02d
JS
12590 rm -rf conftest*
12591 eval "ac_cv_lib_$ac_lib_var=yes"
12592else
12593 echo "configure: failed program was:" >&5
12594 cat conftest.$ac_ext >&5
12595 rm -rf conftest*
12596 eval "ac_cv_lib_$ac_lib_var=no"
12597fi
12598rm -f conftest*
12599LIBS="$ac_save_LIBS"
12600
12601fi
12602if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12603 echo "$ac_t""yes" 1>&6
12604 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
12605else
12606 echo "$ac_t""no" 1>&6
12607fi
12608
12609 fi
12610
12611 # lieder@skyler.mavd.honeywell.com says without -lsocket,
12612 # socket/setsockopt and other routines are undefined under SCO ODT
12613 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
12614 # on later versions), says simon@lia.di.epfl.ch: it contains
12615 # gethostby* variants that don't use the nameserver (or something).
12616 # -lsocket must be given before -lnsl if both are needed.
12617 # We assume that if connect needs -lnsl, so does gethostbyname.
12618 echo $ac_n "checking for connect""... $ac_c" 1>&6
04727afd 12619echo "configure:12620: checking for connect" >&5
f79bd02d
JS
12620if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
12621 echo $ac_n "(cached) $ac_c" 1>&6
12622else
12623 cat > conftest.$ac_ext <<EOF
04727afd 12624#line 12625 "configure"
f79bd02d
JS
12625#include "confdefs.h"
12626/* System header to define __stub macros and hopefully few prototypes,
12627 which can conflict with char connect(); below. */
12628#include <assert.h>
12629/* Override any gcc2 internal prototype to avoid an error. */
12630/* We use char because int might match the return type of a gcc2
12631 builtin and then its argument prototype would still apply. */
12632char connect();
12633
12634int main() {
12635
12636/* The GNU C library defines this for functions which it implements
12637 to always fail with ENOSYS. Some functions are actually named
12638 something starting with __ and the normal name is an alias. */
12639#if defined (__stub_connect) || defined (__stub___connect)
12640choke me
12641#else
12642connect();
12643#endif
12644
12645; return 0; }
12646EOF
04727afd 12647if { (eval echo configure:12648: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
f79bd02d
JS
12648 rm -rf conftest*
12649 eval "ac_cv_func_connect=yes"
12650else
12651 echo "configure: failed program was:" >&5
12652 cat conftest.$ac_ext >&5
12653 rm -rf conftest*
12654 eval "ac_cv_func_connect=no"
12655fi
12656rm -f conftest*
12657fi
12658
12659if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
12660 echo "$ac_t""yes" 1>&6
12661 :
12662else
12663 echo "$ac_t""no" 1>&6
12664fi
12665
12666 if test $ac_cv_func_connect = no; then
12667 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
04727afd 12668echo "configure:12669: checking for connect in -lsocket" >&5
f79bd02d
JS
12669ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
12670if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12671 echo $ac_n "(cached) $ac_c" 1>&6
12672else
12673 ac_save_LIBS="$LIBS"
12674LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
12675cat > conftest.$ac_ext <<EOF
04727afd 12676#line 12677 "configure"
f79bd02d
JS
12677#include "confdefs.h"
12678/* Override any gcc2 internal prototype to avoid an error. */
12679/* We use char because int might match the return type of a gcc2
12680 builtin and then its argument prototype would still apply. */
12681char connect();
12682
12683int main() {
12684connect()
12685; return 0; }
12686EOF
04727afd 12687if { (eval echo configure:12688: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
f79bd02d
JS
12688 rm -rf conftest*
12689 eval "ac_cv_lib_$ac_lib_var=yes"
12690else
12691 echo "configure: failed program was:" >&5
12692 cat conftest.$ac_ext >&5
12693 rm -rf conftest*
12694 eval "ac_cv_lib_$ac_lib_var=no"
12695fi
12696rm -f conftest*
12697LIBS="$ac_save_LIBS"
12698
12699fi
12700if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12701 echo "$ac_t""yes" 1>&6
12702 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
12703else
12704 echo "$ac_t""no" 1>&6
12705fi
12706
12707 fi
12708
12709 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
12710 echo $ac_n "checking for remove""... $ac_c" 1>&6
04727afd 12711echo "configure:12712: checking for remove" >&5
f79bd02d
JS
12712if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
12713 echo $ac_n "(cached) $ac_c" 1>&6
12714else
12715 cat > conftest.$ac_ext <<EOF
04727afd 12716#line 12717 "configure"
f79bd02d
JS
12717#include "confdefs.h"
12718/* System header to define __stub macros and hopefully few prototypes,
12719 which can conflict with char remove(); below. */
12720#include <assert.h>
12721/* Override any gcc2 internal prototype to avoid an error. */
12722/* We use char because int might match the return type of a gcc2
12723 builtin and then its argument prototype would still apply. */
12724char remove();
12725
12726int main() {
12727
12728/* The GNU C library defines this for functions which it implements
12729 to always fail with ENOSYS. Some functions are actually named
12730 something starting with __ and the normal name is an alias. */
12731#if defined (__stub_remove) || defined (__stub___remove)
12732choke me
12733#else
12734remove();
12735#endif
12736
12737; return 0; }
12738EOF
04727afd 12739if { (eval echo configure:12740: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
f79bd02d
JS
12740 rm -rf conftest*
12741 eval "ac_cv_func_remove=yes"
12742else
12743 echo "configure: failed program was:" >&5
12744 cat conftest.$ac_ext >&5
12745 rm -rf conftest*
12746 eval "ac_cv_func_remove=no"
12747fi
12748rm -f conftest*
12749fi
12750
12751if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
12752 echo "$ac_t""yes" 1>&6
12753 :
12754else
12755 echo "$ac_t""no" 1>&6
12756fi
12757
12758 if test $ac_cv_func_remove = no; then
12759 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
04727afd 12760echo "configure:12761: checking for remove in -lposix" >&5
f79bd02d
JS
12761ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
12762if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12763 echo $ac_n "(cached) $ac_c" 1>&6
12764else
12765 ac_save_LIBS="$LIBS"
12766LIBS="-lposix $LIBS"
12767cat > conftest.$ac_ext <<EOF
04727afd 12768#line 12769 "configure"
f79bd02d
JS
12769#include "confdefs.h"
12770/* Override any gcc2 internal prototype to avoid an error. */
12771/* We use char because int might match the return type of a gcc2
12772 builtin and then its argument prototype would still apply. */
12773char remove();
12774
12775int main() {
12776remove()
12777; return 0; }
12778EOF
04727afd 12779if { (eval echo configure:12780: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
f79bd02d
JS
12780 rm -rf conftest*
12781 eval "ac_cv_lib_$ac_lib_var=yes"
12782else
12783 echo "configure: failed program was:" >&5
12784 cat conftest.$ac_ext >&5
12785 rm -rf conftest*
12786 eval "ac_cv_lib_$ac_lib_var=no"
12787fi
12788rm -f conftest*
12789LIBS="$ac_save_LIBS"
12790
12791fi
12792if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12793 echo "$ac_t""yes" 1>&6
12794 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
12795else
12796 echo "$ac_t""no" 1>&6
12797fi
12798
12799 fi
12800
12801 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
12802 echo $ac_n "checking for shmat""... $ac_c" 1>&6
04727afd 12803echo "configure:12804: checking for shmat" >&5
f79bd02d
JS
12804if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
12805 echo $ac_n "(cached) $ac_c" 1>&6
12806else
12807 cat > conftest.$ac_ext <<EOF
04727afd 12808#line 12809 "configure"
f79bd02d
JS
12809#include "confdefs.h"
12810/* System header to define __stub macros and hopefully few prototypes,
12811 which can conflict with char shmat(); below. */
12812#include <assert.h>
12813/* Override any gcc2 internal prototype to avoid an error. */
12814/* We use char because int might match the return type of a gcc2
12815 builtin and then its argument prototype would still apply. */
12816char shmat();
12817
12818int main() {
12819
12820/* The GNU C library defines this for functions which it implements
12821 to always fail with ENOSYS. Some functions are actually named
12822 something starting with __ and the normal name is an alias. */
12823#if defined (__stub_shmat) || defined (__stub___shmat)
12824choke me
12825#else
12826shmat();
12827#endif
12828
12829; return 0; }
12830EOF
04727afd 12831if { (eval echo configure:12832: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
f79bd02d
JS
12832 rm -rf conftest*
12833 eval "ac_cv_func_shmat=yes"
12834else
12835 echo "configure: failed program was:" >&5
12836 cat conftest.$ac_ext >&5
12837 rm -rf conftest*
12838 eval "ac_cv_func_shmat=no"
12839fi
12840rm -f conftest*
12841fi
12842
12843if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
12844 echo "$ac_t""yes" 1>&6
12845 :
12846else
12847 echo "$ac_t""no" 1>&6
12848fi
12849
12850 if test $ac_cv_func_shmat = no; then
12851 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
04727afd 12852echo "configure:12853: checking for shmat in -lipc" >&5
f79bd02d
JS
12853ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
12854if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12855 echo $ac_n "(cached) $ac_c" 1>&6
12856else
12857 ac_save_LIBS="$LIBS"
12858LIBS="-lipc $LIBS"
12859cat > conftest.$ac_ext <<EOF
04727afd 12860#line 12861 "configure"
f79bd02d
JS
12861#include "confdefs.h"
12862/* Override any gcc2 internal prototype to avoid an error. */
12863/* We use char because int might match the return type of a gcc2
12864 builtin and then its argument prototype would still apply. */
12865char shmat();
12866
12867int main() {
12868shmat()
12869; return 0; }
12870EOF
04727afd 12871if { (eval echo configure:12872: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
f79bd02d
JS
12872 rm -rf conftest*
12873 eval "ac_cv_lib_$ac_lib_var=yes"
12874else
12875 echo "configure: failed program was:" >&5
12876 cat conftest.$ac_ext >&5
12877 rm -rf conftest*
12878 eval "ac_cv_lib_$ac_lib_var=no"
12879fi
12880rm -f conftest*
12881LIBS="$ac_save_LIBS"
12882
12883fi
12884if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12885 echo "$ac_t""yes" 1>&6
12886 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
12887else
12888 echo "$ac_t""no" 1>&6
12889fi
12890
12891 fi
12892 fi
12893
12894 # Check for libraries that X11R6 Xt/Xaw programs need.
12895 ac_save_LDFLAGS="$LDFLAGS"
12896 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
12897 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
12898 # check for ICE first), but we must link in the order -lSM -lICE or
12899 # we get undefined symbols. So assume we have SM if we have ICE.
12900 # These have to be linked with before -lX11, unlike the other
12901 # libraries we check for below, so use a different variable.
12902 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
12903 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
04727afd 12904echo "configure:12905: checking for IceConnectionNumber in -lICE" >&5
f79bd02d
JS
12905ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
12906if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12907 echo $ac_n "(cached) $ac_c" 1>&6
12908else
12909 ac_save_LIBS="$LIBS"
12910LIBS="-lICE $X_EXTRA_LIBS $LIBS"
12911cat > conftest.$ac_ext <<EOF
04727afd 12912#line 12913 "configure"
f79bd02d
JS
12913#include "confdefs.h"
12914/* Override any gcc2 internal prototype to avoid an error. */
12915/* We use char because int might match the return type of a gcc2
12916 builtin and then its argument prototype would still apply. */
12917char IceConnectionNumber();
12918
12919int main() {
12920IceConnectionNumber()
12921; return 0; }
12922EOF
04727afd 12923if { (eval echo configure:12924: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
f79bd02d
JS
12924 rm -rf conftest*
12925 eval "ac_cv_lib_$ac_lib_var=yes"
12926else
12927 echo "configure: failed program was:" >&5
12928 cat conftest.$ac_ext >&5
12929 rm -rf conftest*
12930 eval "ac_cv_lib_$ac_lib_var=no"
12931fi
12932rm -f conftest*
12933LIBS="$ac_save_LIBS"
12934
12935fi
12936if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12937 echo "$ac_t""yes" 1>&6
12938 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
12939else
12940 echo "$ac_t""no" 1>&6
12941fi
12942
12943 LDFLAGS="$ac_save_LDFLAGS"
12944
12945fi
12946
12947
12948 if test "$no_x" = "yes"; then
12949 { echo "configure: error: X11 not found" 1>&2; exit 1; }
12950 fi
12951
12952 GUI_TK_LIBRARY="$X_LIBS"
12953 TOOLKIT_INCLUDE="$X_CFLAGS"
12954 AFMINSTALL=afminstall
12955 COMPILED_X_PROGRAM=0
12956
12957 echo $ac_n "checking for Motif/Lesstif headers""... $ac_c" 1>&6
04727afd 12958echo "configure:12959: checking for Motif/Lesstif headers" >&5
f79bd02d
JS
12959
12960ac_find_includes=
12961for ac_dir in $SEARCH_INCLUDE;
12962 do
12963 if test -f "$ac_dir/Xm/Xm.h"; then
12964 ac_find_includes=$ac_dir
12965 break
12966 fi
12967 done
12968
12969 if test "$ac_find_includes" != "" ; then
12970 echo "$ac_t""found $ac_find_includes" 1>&6
12971 else
12972 cat > conftest.$ac_ext <<EOF
04727afd 12973#line 12974 "configure"
f79bd02d
JS
12974#include "confdefs.h"
12975
12976 #include <Xm/Xm.h>
12977
12978int main() {
12979
12980 int version;
12981 version = xmUseVersion;
12982
12983; return 0; }
12984EOF
04727afd 12985if { (eval echo configure:12986: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
f79bd02d
JS
12986 rm -rf conftest*
12987
12988 echo "$ac_t""found in default search path" 1>&6
12989 COMPILED_X_PROGRAM=1
12990
12991else
12992 echo "configure: failed program was:" >&5
12993 cat conftest.$ac_ext >&5
12994 rm -rf conftest*
12995
12996 echo "$ac_t""no" 1>&6
12997 { echo "configure: error: please set CFLAGS to contain the location of Xm/Xm.h" 1>&2; exit 1; }
12998
12999
13000fi
13001rm -f conftest*
13002 fi
13003
13004 if test "$COMPILED_X_PROGRAM" = 0; then
13005 echo $ac_n "checking for Motif/Lesstif library""... $ac_c" 1>&6
04727afd 13006echo "configure:13007: checking for Motif/Lesstif library" >&5
f79bd02d
JS
13007
13008ac_find_libraries=
13009for ac_dir in $SEARCH_LIB;
13010 do
13011 for ac_extension in a so sl dylib; do
13012 if test -f "$ac_dir/libXm.$ac_extension"; then
13013 ac_find_libraries=$ac_dir
13014 break 2
13015 fi
13016 done
13017 done
13018
13019 if test "$ac_find_libraries" != "" ; then
13020
13021 ac_path_to_include=$ac_find_includes
13022 echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null
13023 result=$?
13024 if test $result = 0; then
13025 ac_path_to_include=""
13026 else
13027 ac_path_to_include=" -I$ac_find_includes"
13028 fi
13029
13030
13031 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
13032 result=$?
13033 if test $result = 0; then
13034 ac_path_to_link=""
13035 else
13036 ac_path_to_link=" -L$ac_find_libraries"
13037 fi
13038
13039
13040 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
13041 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE$ac_path_to_include"
13042 echo "$ac_t""found at $ac_find_libraries" 1>&6
13043 else
13044 cat > conftest.$ac_ext <<EOF
04727afd 13045#line 13046 "configure"
f79bd02d
JS
13046#include "confdefs.h"
13047
13048 #include <Xm/Xm.h>
13049
13050int main() {
13051
13052 int version;
13053 version = xmUseVersion;
13054
13055; return 0; }
13056EOF
04727afd 13057if { (eval echo configure:13058: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
f79bd02d
JS
13058 rm -rf conftest*
13059
13060 echo "$ac_t""found in default search path" 1>&6
13061 COMPILED_X_PROGRAM=1
13062
13063else
13064 echo "configure: failed program was:" >&5
13065 cat conftest.$ac_ext >&5
13066 rm -rf conftest*
13067
13068 echo "$ac_t""no" 1>&6
13069 { echo "configure: error: please set LDFLAGS to contain the location of libXm" 1>&2; exit 1; }
13070
13071
13072fi
13073rm -f conftest*
13074 fi
13075 fi
13076
13077 xpm_link=
13078 echo $ac_n "checking for Xpm library""... $ac_c" 1>&6
04727afd 13079echo "configure:13080: checking for Xpm library" >&5
f79bd02d
JS
13080
13081ac_find_libraries=
13082for ac_dir in $SEARCH_LIB;
13083 do
13084 for ac_extension in a so sl dylib; do
13085 if test -f "$ac_dir/libXpm.$ac_extension"; then
13086 ac_find_libraries=$ac_dir
13087 break 2
13088 fi
13089 done
13090 done
13091
13092 if test "$ac_find_libraries" != "" ; then
13093
13094 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
13095 result=$?
13096 if test $result = 0; then
13097 ac_path_to_link=""
13098 else
13099 ac_path_to_link=" -L$ac_find_libraries"
13100 fi
13101
13102 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
13103 xpm_link=" -lXpm"
13104 cat >> confdefs.h <<\EOF
13105#define wxHAVE_LIB_XPM 1
13106EOF
13107
13108 echo "$ac_t""found at $ac_find_libraries" 1>&6
13109 else
13110 cat > conftest.$ac_ext <<EOF
04727afd 13111#line 13112 "configure"
f79bd02d
JS
13112#include "confdefs.h"
13113
13114 #include <X11/xpm.h>
13115
13116int main() {
13117
13118 int version;
13119 version = XpmLibraryVersion();
13120
13121; return 0; }
13122EOF
04727afd 13123if { (eval echo configure:13124: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
f79bd02d
JS
13124 rm -rf conftest*
13125
13126 xpm_link=" -lXpm"
13127 cat >> confdefs.h <<\EOF
13128#define wxHAVE_LIB_XPM 1
13129EOF
13130
13131 echo "$ac_t""found in default search path" 1>&6
13132 COMPILED_X_PROGRAM=0
13133
13134else
13135 echo "configure: failed program was:" >&5
13136 cat conftest.$ac_ext >&5
13137 rm -rf conftest*
13138
13139 echo "$ac_t""no" 1>&6
13140 echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2
13141
13142
13143fi
13144rm -f conftest*
13145 fi
13146
13147 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXm$xpm_link -lXmu -lXext -lXt -lX11"
13148 TOOLKIT_VPATH="\${top_srcdir}/src/motif${PATH_IFS}\${top_srcdir}/src/motif/xmcombo"
13149 TOOLKIT=MOTIF
13150 GUIDIST=MOTIF_DIST
13151 fi
13152
13153 if test "$wxUSE_MAC" = 1; then
13154 if test "$wxUSE_PRECOMP" = "yes"; then
13155 CPPFLAGS="$CPPFLAGS -cpp-precomp"
13156 fi
13157 CPPFLAGS="$CPPFLAGS -I/Developer/Headers/FlatCarbon -I\${top_srcdir}/src/mac/morefile"
13158 CFLAGS="$CFLAGS -fpascal-strings"
13159 CXXFLAGS="$CXXFLAGS -fpascal-strings"
13160
13161 TOOLKIT_VPATH="\${top_srcdir}/src/mac${PATH_IFS}\${top_srcdir}/src/mac/morefile"
13162 TOOLKIT=MAC
13163 GUIDIST=MACX_DIST
13164 fi
13165
13166 if test "$wxUSE_PM" = 1; then
13167 TOOLKIT=PM
1e6feb95
VZ
13168 GUIDIST=GTK_DIST
13169 fi
b4085ce6 13170
3a922bb4 13171 if test "$TOOLKIT" = "PM" ; then
1e6feb95 13172 TOOLKIT_DIR="os2"
3a922bb4
RL
13173 else
13174 TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"`
1e6feb95 13175 fi
e07802fc 13176
3a922bb4 13177 PORT_FILES="\${top_srcdir}/src/\$(TOOLKITDIR)/files.lst"
1e6feb95 13178
3a922bb4
RL
13179 if test "$wxUSE_UNIVERSAL" = "yes"; then
13180 ALL_OBJECTS="\$(GUI_LOWLEVEL_OBJS) \${UNIVOBJS}"
9b695262
VZ
13181
13182 ALL_SOURCES="\$(ALL_SOURCES) \${UNIV_SOURCES}"
13183 ALL_HEADERS="\$(ALL_HEADERS) \${UNIV_HEADERS}"
13184
3a922bb4 13185 PORT_FILES="${PORT_FILES} \${top_srcdir}/src/univ/files.lst"
4175e952
RR
13186 if test "$wxUSE_X11" = 1; then
13187 TOOLKIT_VPATH="\${top_srcdir}/src/${TOOLKIT_DIR}${PATH_IFS}\${top_srcdir}/src/univ${PATH_IFS}\${top_srcdir}/src/univ/themes"
13188 else
13189 TOOLKIT_VPATH="\${top_srcdir}/src/univ${PATH_IFS}\${top_srcdir}/src/univ/themes${PATH_IFS}\${top_srcdir}/src/${TOOLKIT_DIR}"
13190 fi
3a922bb4
RL
13191 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__"
13192 WIDGET_SET=univ
f6bcfd97 13193 else
3a922bb4 13194 ALL_OBJECTS="\$(GUIOBJS)"
9b695262
VZ
13195 ALL_SOURCES="\$(ALL_SOURCES)"
13196 ALL_HEADERS="\$(ALL_HEADERS)"
1e6feb95
VZ
13197 fi
13198
ba0e650c 13199 ALL_OBJECTS="${ALL_OBJECTS} \$(COMMONOBJS) \$(GENERICOBJS)"
1e6feb95 13200
f9bc1684 13201 if test "$TOOLKIT" != "MSW" -a "$USE_DOS" != 1; then
1e6feb95
VZ
13202 ALL_OBJECTS="${ALL_OBJECTS} \$(UNIXOBJS)"
13203 fi
13204
13205 if test "$wxUSE_HTML" = "yes"; then
13206 ALL_OBJECTS="${ALL_OBJECTS} \$(HTMLOBJS)"
13207 fi
3fcdd07b 13208
4f14bcd8 13209 if test "$wxUSE_LIBJPEG" = "builtin" ; then
2224580a 13210 ALL_OBJECTS="${ALL_OBJECTS} \$(JPEGOBJS)"
d9d8273d 13211 fi
4f14bcd8 13212 if test "$wxUSE_LIBTIFF" = "builtin" ; then
d9d8273d
RR
13213 ALL_OBJECTS="${ALL_OBJECTS} \$(TIFFOBJS)"
13214 fi
4f14bcd8 13215 if test "$wxUSE_LIBPNG" = "builtin" ; then
d9d8273d
RR
13216 ALL_OBJECTS="${ALL_OBJECTS} \$(PNGOBJS)"
13217 fi
2224580a 13218
2224580a
VZ
13219 GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST"
13220 DISTDIR="wx\$(TOOLKIT)"
10f2d63a 13221else
dad6c0ea
VZ
13222 USE_GUI=0
13223
3a922bb4 13224 TOOLKIT_DIR="base"
f6bcfd97 13225
3a922bb4
RL
13226 if test "$USE_WIN32" = 1 ; then
13227 ALL_OBJECTS="\${BASE_OBJS} \${BASE_MSW_OBJS}"
13228 TOOLKIT_VPATH="\${top_srcdir}/src/msw"
0b2effe9 13229
3a922bb4 13230 TOOLKIT="MSW"
f6bcfd97 13231 else
3a922bb4
RL
13232 ALL_OBJECTS="\${BASE_OBJS} \${BASE_UNIX_OBJS}"
13233 TOOLKIT_VPATH="\${top_srcdir}/src/unix"
f6bcfd97
BP
13234 fi
13235
d8356fa3
VZ
13236 ALL_SOURCES="\$(ALL_SOURCES)"
13237 ALL_HEADERS="\$(ALL_HEADERS)"
13238
831b3152 13239 PORT_FILES="\${top_srcdir}/src/files.lst"
2224580a
VZ
13240
13241 GUIDIST="BASE_DIST"
13242 DISTDIR="wxBase"
10f2d63a
VZ
13243fi
13244
e45387bf
VZ
13245
13246if test "$TOOLKIT" != "MSW" -a "$wxUSE_ODBC" = "yes" ; then
13247 ALL_OBJECTS="${ALL_OBJECTS} \$(IODBCOBJS)"
13248fi
13249
4f14bcd8 13250if test "$wxUSE_REGEX" = "builtin" ; then
3a922bb4
RL
13251 ALL_OBJECTS="${ALL_OBJECTS} \$(REGEXOBJS)"
13252fi
4f14bcd8 13253if test "$wxUSE_ZLIB" = "builtin" ; then
3a922bb4
RL
13254 ALL_OBJECTS="${ALL_OBJECTS} \$(ZLIBOBJS)"
13255fi
10f2d63a 13256
3a922bb4 13257if test "$wxUSE_OPENGL" = "yes"; then
62d0491b
RL
13258 if test "$wxUSE_MAC" = 1; then
13259 OPENGL_LIBS="-framework OpenGL -framework AGL"
13260 else
570cb8cb 13261
62d0491b 13262 ac_safe=`echo "GL/gl.h" | sed 'y%./+-%__p_%'`
3a922bb4 13263echo $ac_n "checking for GL/gl.h""... $ac_c" 1>&6
04727afd 13264echo "configure:13265: checking for GL/gl.h" >&5
3a922bb4
RL
13265if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
13266 echo $ac_n "(cached) $ac_c" 1>&6
13267else
13268 cat > conftest.$ac_ext <<EOF
04727afd 13269#line 13270 "configure"
3a922bb4
RL
13270#include "confdefs.h"
13271#include <GL/gl.h>
13272EOF
13273ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
04727afd 13274{ (eval echo configure:13275: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3a922bb4
RL
13275ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13276if test -z "$ac_err"; then
13277 rm -rf conftest*
13278 eval "ac_cv_header_$ac_safe=yes"
13279else
13280 echo "$ac_err" >&5
13281 echo "configure: failed program was:" >&5
13282 cat conftest.$ac_ext >&5
13283 rm -rf conftest*
13284 eval "ac_cv_header_$ac_safe=no"
13285fi
13286rm -f conftest*
13287fi
13288if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13289 echo "$ac_t""yes" 1>&6
13290
1352efdf 13291 echo $ac_n "checking for -lGL""... $ac_c" 1>&6
04727afd 13292echo "configure:13293: checking for -lGL" >&5
57964555 13293
62d0491b
RL
13294ac_find_libraries=
13295for ac_dir in $SEARCH_LIB;
13296 do
13297 for ac_extension in a so sl dylib; do
13298 if test -f "$ac_dir/libGL.$ac_extension"; then
13299 ac_find_libraries=$ac_dir
13300 break 2
13301 fi
13302 done
13303 done
3a922bb4 13304
62d0491b
RL
13305 if test "$ac_find_libraries" != "" ; then
13306
13307 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
13308 result=$?
13309 if test $result = 0; then
13310 ac_path_to_link=""
13311 else
13312 ac_path_to_link=" -L$ac_find_libraries"
13313 fi
3a922bb4 13314
4b6b4dfc
RR
13315 if test "$ac_path_to_link" = " -L/usr/lib" ; then
13316 LDFLAGS_GL="$LDFLAGS"
13317 else
13318 LDFLAGS_GL="$LDFLAGS$ac_path_to_link"
13319 fi
62d0491b 13320 OPENGL_LIBS="-lGL -lGLU"
1352efdf 13321 echo "$ac_t""yes" 1>&6
62d0491b 13322 else
1352efdf
RL
13323 echo "$ac_t""no" 1>&6
13324 echo $ac_n "checking for -lMesaGL""... $ac_c" 1>&6
04727afd 13325echo "configure:13326: checking for -lMesaGL" >&5
62d0491b
RL
13326
13327ac_find_libraries=
13328for ac_dir in $SEARCH_LIB;
13329 do
13330 for ac_extension in a so sl dylib; do
13331 if test -f "$ac_dir/libMesaGL.$ac_extension"; then
13332 ac_find_libraries=$ac_dir
13333 break 2
13334 fi
13335 done
13336 done
3a922bb4 13337
62d0491b 13338 if test "$ac_find_libraries" != "" ; then
57964555 13339
62d0491b
RL
13340 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
13341 result=$?
13342 if test $result = 0; then
13343 ac_path_to_link=""
13344 else
13345 ac_path_to_link=" -L$ac_find_libraries"
13346 fi
3a922bb4 13347
62d0491b
RL
13348 LDFLAGS_GL="$LDFLAGS$ac_path_to_link"
13349 OPENGL_LIBS="-lMesaGL -lMesaGLU"
1352efdf
RL
13350 echo "$ac_t""yes" 1>&6
13351 else
13352 echo "$ac_t""no" 1>&6
62d0491b
RL
13353 fi
13354 fi
13355
3a922bb4
RL
13356else
13357 echo "$ac_t""no" 1>&6
3a922bb4
RL
13358fi
13359
6f754473 13360
62d0491b
RL
13361
13362# AC_CHECK_HEADER(GL/gl.h,
13363# [
13364# AC_CHECK_LIB(GL, glFlush,
13365# [
13366# OPENGL_LIBS="-lGL -lGLU"
13367# ],
13368# [
13369# AC_CHECK_LIB(MesaGL, glFlush,
13370# [
13371# OPENGL_LIBS="-lMesaGL -lMesaGLU"
13372# ],
13373# [],
13374# [-lm])
13375# ],
13376# [-lm])
13377# ])
13378
13379 if test "x$OPENGL_LIBS" = "x"; then
13380 { echo "configure: error: OpenGL libraries not available" 1>&2; exit 1; }
13381 fi
6f754473 13382 fi
6f754473 13383
62d0491b
RL
13384 if test "$wxUSE_OPENGL" = "yes"; then
13385 cat >> confdefs.h <<\EOF
6f754473
VZ
13386#define wxUSE_OPENGL 1
13387EOF
13388
62d0491b 13389 cat >> confdefs.h <<\EOF
6f754473
VZ
13390#define wxUSE_GLCANVAS 1
13391EOF
13392
62d0491b
RL
13393 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl"
13394 fi
3a922bb4
RL
13395fi
13396
13397if test -z "$TOOLKIT_VPATH" ; then
13398 TOOLKIT_VPATH="\${top_srcdir}/src/${TOOLKIT_DIR}"
13399fi
13400
13401if test -n "$TOOLKIT" ; then
13402 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WX${TOOLKIT}__"
13403fi
13404
f676c7ff
MB
13405lib_unicode_suffix=
13406if test "$wxUSE_UNICODE" = "yes"; then
13407 lib_unicode_suffix=u
13408fi
13409
3a922bb4
RL
13410lib_debug_suffix=
13411if test "$wxUSE_DEBUG_FLAG" = "yes"; then
13412 lib_debug_suffix=d
3a922bb4
RL
13413fi
13414
f676c7ff
MB
13415TOOLCHAIN_NAME="${TOOLKIT_DIR}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}-${WX_RELEASE}"
13416TOOLCHAIN_NAME_GL="${TOOLKIT_DIR}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}_gl-${WX_RELEASE}"
3a922bb4
RL
13417
13418if test "$cross_compiling" = "yes"; then
13419 TOOLCHAIN_NAME="${TOOLCHAIN_NAME}-${host_alias}"
13420 TOOLCHAIN_NAME_GL="${TOOLCHAIN_NAME_GL}-${host_alias}"
13421fi
13422
13423WX_LIBRARY="wx_${TOOLCHAIN_NAME}"
13424WX_LIBRARY_GL="wx_${TOOLCHAIN_NAME_GL}"
13425
3a922bb4
RL
13426WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
13427WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
13428
13429WX_LIBRARY_LINK1="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}"
13430WX_LIBRARY_LINK2="lib${WX_LIBRARY}.${SO_SUFFIX}"
13431WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}"
13432WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}"
13433
978f1259
RL
13434case "${host}" in
13435 *-*-cygwin* | *-*-mingw32* )
13436
2da4f892 13437
978f1259
RL
13438
13439 if test "$cross_compiling" != "yes"; then
13440 WX_LIBRARY="wxmsw${WX_MSW_VERSION}${lib_unicode_suffix}${lib_debug_suffix}"
13441 WX_LIBRARY_GL="wxmsw_gl${WX_MSW_VERSION}${lib_unicode_suffix}${lib_debug_suffix}"
13442 WX_LIBRARY_NAME_SHARED="${WX_LIBRARY}.${SO_SUFFIX}"
13443 WX_LIBRARY_NAME_SHARED_GL="${WX_LIBRARY_GL}.${SO_SUFFIX}"
2da4f892
RL
13444 else
13445 WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${SO_SUFFIX}"
13446 WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}"
978f1259 13447 fi
e95edd8d 13448 ;;
978f1259 13449
e95edd8d
GD
13450 *-*-darwin* )
13451 if test "$wxUSE_MAC" = 1; then
13452 WX_RESOURCES_MACOSX_ASCII="lib${WX_LIBRARY}.r"
13453 WX_RESOURCES_MACOSX_DATA="lib${WX_LIBRARY}.rsrc"
13454 fi
13455 ;;
978f1259
RL
13456esac
13457
13458WX_LIBRARY_NAME_STATIC="lib${WX_LIBRARY}.a"
13459WX_LIBRARY_NAME_STATIC_GL="lib${WX_LIBRARY_GL}.a"
13460
13461WXCONFIG_LIBS="-l${WX_LIBRARY}"
885d4bf5 13462WXCONFIG_LIBS_STATIC="lib${WX_LIBRARY}.a"
978f1259
RL
13463
13464if test "$wxUSE_OPENGL" = "yes"; then
885d4bf5
VS
13465 WXCONFIG_LIBS_GL="-l${WX_LIBRARY_GL} ${OPENGL_LIBS}"
13466 WXCONFIG_LIBS_STATIC_GL="lib${WX_LIBRARY_GL}.a ${OPENGL_LIBS}"
978f1259
RL
13467fi
13468
13469
3a922bb4 13470
4222829b
VS
13471if test "$wxUSE_SHARED" = "yes"; then
13472 case "${host}" in
13473 *-pc-os2_emx | *-pc-os2-emx | \
13474 *-pc-msdosdjgpp )
13475 wxUSE_SHARED=no
13476 echo "configure: warning: Host system doesn't support shared libraries, disabling" 1>&2
13477 ;;
13478 esac
13479fi
13480
3a922bb4 13481if test "$wxUSE_SHARED" = "yes"; then
55e80573
VZ
13482
13483 if test "$wxUSE_OPENGL" = "yes"; then
13484 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL"
3a922bb4 13485 WX_ALL="\$(build_libdir)/${WX_LIBRARY_LINK1} \$(build_libdir)/${WX_LIBRARY_LINK1_GL}"
55e80573
VZ
13486 else
13487 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
3a922bb4 13488 WX_ALL="\$(build_libdir)/${WX_LIBRARY_LINK1}"
55e80573
VZ
13489 fi
13490
dd4f7467 13491 if test "$GCC" = "yes"; then
55e80573 13492 PIC_FLAG="-fPIC"
dd4f7467 13493 fi
55e80573
VZ
13494
13495 SHARED_LD="${CXX} -shared -o"
698dcdb6 13496
10f2d63a
VZ
13497 case "${host}" in
13498 *-hp-hpux* )
d569ea8d
GD
13499 if test "$GCC" == "yes"; then
13500 SHARED_LD="${SHARED_LD} ${PIC_FLAG}"
13501 else
3d63bc3a 13502 LDFLAGS="$LDFLAGS -L/usr/lib"
f6bcfd97 13503
10f2d63a
VZ
13504 SHARED_LD="${CXX} -b -o"
13505 PIC_FLAG="+Z"
13506 fi
55e80573 13507
7b7a7637
RL
13508 if test "$wxUSE_OPENGL" = "yes"; then
13509 WX_ALL_INSTALLED="preinstall_gl"
13510 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED} \$(build_libdir)/${WX_LIBRARY_NAME_SHARED_GL}"
13511 else
13512 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED}"
13513 fi
10f2d63a 13514 ;;
b12915c1 13515
55e80573
VZ
13516 *-*-linux* )
13517 if test "$GCC" != "yes"; then
13518 echo $ac_n "checking for Intel compiler""... $ac_c" 1>&6
e95edd8d 13519echo "configure:13520: checking for Intel compiler" >&5
55e80573
VZ
13520if eval "test \"`echo '$''{'wx_cv_prog_icc'+set}'`\" = set"; then
13521 echo $ac_n "(cached) $ac_c" 1>&6
13522else
13523
13524 cat > conftest.$ac_ext <<EOF
e95edd8d 13525#line 13526 "configure"
55e80573
VZ
13526#include "confdefs.h"
13527
13528int main() {
13529
13530 #ifndef __INTEL_COMPILER
dd4f7467 13531 #error Not icc
55e80573
VZ
13532 #endif
13533
13534; return 0; }
13535EOF
e95edd8d 13536if { (eval echo configure:13537: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
55e80573
VZ
13537 rm -rf conftest*
13538 wx_cv_prog_icc=yes
13539else
13540 echo "configure: failed program was:" >&5
13541 cat conftest.$ac_ext >&5
13542 rm -rf conftest*
13543 wx_cv_prog_icc=no
13544
13545fi
13546rm -f conftest*
13547
13548fi
13549
13550echo "$ac_t""$wx_cv_prog_icc" 1>&6
55e80573
VZ
13551 if test "$wx_cv_prog_icc" = "yes"; then
13552 PIC_FLAG="-KPIC"
13553 fi
13554 fi
13555
3a922bb4
RL
13556 if test "$wxUSE_SONAME" = "yes" ; then
13557 SONAME_FLAGS="-Wl,-soname,${WX_LIBRARY_LINK1}"
13558 SONAME_FLAGS_GL="-Wl,-soname,${WX_LIBRARY_LINK1_GL}"
f6bcfd97 13559 WX_TARGET_LIBRARY_SONAME="-Wl,-soname,\$(TARGETLIB_LINK1)"
00cf1208 13560 fi
10f2d63a 13561 ;;
55e80573 13562
10f2d63a
VZ
13563 *-*-solaris2* )
13564 if test "$GCC" = yes ; then
f6bcfd97 13565 CPPFLAGS="$CPPFLAGS -isystem /usr/openwin/include"
10f2d63a
VZ
13566 else
13567 SHARED_LD="${CXX} -G -o"
13568 PIC_FLAG="-KPIC"
7b7a7637 13569 SONAME_FLAGS="-h ${WX_LIBRARY_NAME_SHARED}"
471944dc 13570 SONAME_FLAGS_GL="-h ${WX_LIBRARY_NAME_SHARED_GL}"
10f2d63a 13571 fi
10f2d63a 13572 ;;
55e80573 13573
b4085ce6 13574 *-*-darwin* )
e95edd8d
GD
13575 CFLAGS="$CFLAGS -fno-common -DWXMAKINGDLL"
13576 CXXFLAGS="$CXXFLAGS -fno-common -DWXMAKINGDLL"
40f7145c 13577 LDFLAGS_EXE="$LDFLAGS_EXE -Wl,-bind_at_load"
e95edd8d 13578 SHARED_LD="$CXX -dynamiclib -o"
ea5999b9 13579 PIC_FLAG="-dynamic -fPIC"
90f3fe56
GD
13580 SONAME_FLAGS="-compatibility_version ${WX_RELEASE} -current_version ${WX_VERSION}"
13581 SONAME_FLAGS_GL=${SONAME_FLAGS}
10f2d63a 13582 ;;
55e80573 13583
10f2d63a
VZ
13584 *-*-aix* )
13585 SHARED_LD="/usr/lpp/xlC/bin/makeC++SharedLib -p 0 -o"
10f2d63a 13586 ;;
55e80573 13587
7b7a7637 13588 *-*-cygwin* | *-*-mingw32* )
77e13408 13589
2da4f892 13590 WX_LIBRARY_IMPORTLIB="${WX_LIBRARY_NAME_SHARED}.a"
77e13408 13591
77e13408 13592 SHARED_LD="${CXX} -shared -Wl,--out-implib,lib/${WX_LIBRARY_IMPORTLIB} -o"
00c81359 13593 TOOLCHAIN_DLL_DEFS="${TOOLCHAIN_DLL_DEFS} -DWXUSINGDLL=1"
25d0687a
RL
13594
13595 PIC_FLAG="-UWXUSINGDLL -DWXMAKINGDLL=1 -D_DLL=1 -D_WINDLL=1"
7b7a7637
RL
13596
13597 if test "$wxUSE_OPENGL" = "yes"; then
f6bcfd97 13598 WX_ALL_INSTALLED="preinstall_gl"
978f1259 13599 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED} \$(build_libdir)/${WX_LIBRARY_NAME_SHARED_GL}"
f6bcfd97 13600 else
978f1259 13601 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED}"
f6bcfd97 13602 fi
10f2d63a 13603 ;;
55e80573 13604
b12915c1 13605 *-*-beos* )
e2b8b066 13606 SHARED_LD="${LD} -shared -o"
b12915c1 13607 ;;
55e80573
VZ
13608
13609 *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | \
13610 *-*-sunos4* | \
13611 *-*-irix5* | *-*-irix6* | \
13612 *-*-osf* | \
13613 *-*-dgux5* | \
13614 *-*-sysv5* )
13615 ;;
13616
10f2d63a 13617 *)
7b7a7637 13618 { echo "configure: error: unknown system type $host." 1>&2; exit 1; }
10f2d63a
VZ
13619 esac
13620
13621 if test "x$WX_TARGET_LIBRARY" = "x"; then
13622 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_SHARED}"
bdad4e7e 13623 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_SHARED_GL}"
10f2d63a 13624 fi
55e80573 13625
3711412e 13626 WX_TARGET_LIBRARY_TYPE="so"
885d4bf5 13627 INSTALL_LIBRARY='$(INSTALL_PROGRAM)'
3a922bb4 13628fi
f6bcfd97 13629
3a922bb4 13630if test "$wxUSE_SHARED" = "no"; then
f6bcfd97 13631
3a922bb4 13632 if test "$wxUSE_GUI" = "no" -o "$USE_WIN32" = 1 ; then
f6bcfd97
BP
13633 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall"
13634 fi
13635
6fa882bd
RR
13636 if test "$wxUSE_MAC" = 1; then
13637 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall"
13638 fi
13639
3a922bb4
RL
13640 if test "$wxUSE_OPENGL" = "yes"; then
13641 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall_gl"
13642 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC} \$(build_libdir)/${WX_LIBRARY_NAME_STATIC_GL}"
13643 else
13644 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC}"
13645 fi
698dcdb6 13646
3a922bb4
RL
13647 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}"
13648 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_STATIC_GL}"
13649
13650 WX_TARGET_LIBRARY_TYPE="a"
885d4bf5 13651 INSTALL_LIBRARY='$(INSTALL_DATA)'
10f2d63a 13652fi
10f2d63a 13653
d08b457b
GD
13654if test "$wxUSE_MAC" = 1; then
13655 WX_ALL="${WX_ALL} \$(build_libdir)/lib${WX_LIBRARY}.r"
e23081de 13656 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall_res"
d08b457b
GD
13657 # Extract the first word of "Rez", so it can be a program name with args.
13658set dummy Rez; ac_word=$2
13659echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
e95edd8d 13660echo "configure:13661: checking for $ac_word" >&5
d08b457b
GD
13661if eval "test \"`echo '$''{'ac_cv_prog_RESCOMP'+set}'`\" = set"; then
13662 echo $ac_n "(cached) $ac_c" 1>&6
13663else
13664 if test -n "$RESCOMP"; then
13665 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
13666else
13667 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
13668 ac_dummy="$PATH"
13669 for ac_dir in $ac_dummy; do
13670 test -z "$ac_dir" && ac_dir=.
13671 if test -f $ac_dir/$ac_word; then
13672 ac_cv_prog_RESCOMP="Rez"
13673 break
13674 fi
13675 done
13676 IFS="$ac_save_ifs"
13677 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez"
13678fi
13679fi
13680RESCOMP="$ac_cv_prog_RESCOMP"
13681if test -n "$RESCOMP"; then
13682 echo "$ac_t""$RESCOMP" 1>&6
13683else
13684 echo "$ac_t""no" 1>&6
13685fi
13686
9f8148b1
GD
13687 # Extract the first word of "DeRez", so it can be a program name with args.
13688set dummy DeRez; ac_word=$2
d08b457b 13689echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
e95edd8d 13690echo "configure:13691: checking for $ac_word" >&5
d08b457b
GD
13691if eval "test \"`echo '$''{'ac_cv_prog_DEREZ'+set}'`\" = set"; then
13692 echo $ac_n "(cached) $ac_c" 1>&6
13693else
13694 if test -n "$DEREZ"; then
13695 ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test.
13696else
13697 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
13698 ac_dummy="$PATH"
13699 for ac_dir in $ac_dummy; do
13700 test -z "$ac_dir" && ac_dir=.
13701 if test -f $ac_dir/$ac_word; then
9f8148b1 13702 ac_cv_prog_DEREZ="DeRez"
d08b457b
GD
13703 break
13704 fi
13705 done
13706 IFS="$ac_save_ifs"
9f8148b1 13707 test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/DeRez"
d08b457b
GD
13708fi
13709fi
13710DEREZ="$ac_cv_prog_DEREZ"
13711if test -n "$DEREZ"; then
13712 echo "$ac_t""$DEREZ" 1>&6
13713else
13714 echo "$ac_t""no" 1>&6
13715fi
13716
ef7f2189 13717 MACOSX_BUNDLE="bundle"
d08b457b
GD
13718 LIBWXMACRES="\$(top_builddir)/lib/lib${WX_LIBRARY}.r"
13719 LIBWXMACRESCOMP="\$(RESCOMP) Carbon.r -t APPL ${LIBWXMACRES} -o \$(BIN_PROGRAM)"
e95edd8d 13720 LIBWXMACRESWXCONFIG="${RESCOMP} Carbon.r -t APPL \${prefix}/lib/${WX_RESOURCES_MACOSX_ASCII} -o"
d558c907
VS
13721else
13722 if test "$wxUSE_PM" = 1; then
13723 LIBWXMACRESCOMP="emxbind -ep \$(BIN_PROGRAM)"
13724 fi
d08b457b
GD
13725fi
13726
3a922bb4 13727
13c0541d
GD
13728if test "$wxUSE_MAC" != 1; then
13729 for ac_hdr in strings.h
9cfadba2 13730do
698dcdb6
VZ
13731ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
13732echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
e95edd8d 13733echo "configure:13734: checking for $ac_hdr" >&5
698dcdb6
VZ
13734if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
13735 echo $ac_n "(cached) $ac_c" 1>&6
13736else
13737 cat > conftest.$ac_ext <<EOF
e95edd8d 13738#line 13739 "configure"
9cfadba2 13739#include "confdefs.h"
698dcdb6
VZ
13740#include <$ac_hdr>
13741EOF
13742ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
e95edd8d 13743{ (eval echo configure:13744: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
13744ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13745if test -z "$ac_err"; then
13746 rm -rf conftest*
13747 eval "ac_cv_header_$ac_safe=yes"
6232543b 13748else
698dcdb6
VZ
13749 echo "$ac_err" >&5
13750 echo "configure: failed program was:" >&5
9cfadba2 13751 cat conftest.$ac_ext >&5
698dcdb6
VZ
13752 rm -rf conftest*
13753 eval "ac_cv_header_$ac_safe=no"
9cfadba2 13754fi
698dcdb6 13755rm -f conftest*
9cfadba2 13756fi
698dcdb6
VZ
13757if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13758 echo "$ac_t""yes" 1>&6
13759 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
13760 cat >> confdefs.h <<EOF
13761#define $ac_tr_hdr 1
9cfadba2 13762EOF
698dcdb6
VZ
13763
13764else
13765 echo "$ac_t""no" 1>&6
9cfadba2
VZ
13766fi
13767done
10f2d63a 13768
13c0541d
GD
13769fi
13770
3a922bb4 13771for ac_hdr in stdlib.h
10f2d63a 13772do
698dcdb6
VZ
13773ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
13774echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
e95edd8d 13775echo "configure:13776: checking for $ac_hdr" >&5
698dcdb6
VZ
13776if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
13777 echo $ac_n "(cached) $ac_c" 1>&6
13778else
13779 cat > conftest.$ac_ext <<EOF
e95edd8d 13780#line 13781 "configure"
10f2d63a 13781#include "confdefs.h"
698dcdb6
VZ
13782#include <$ac_hdr>
13783EOF
13784ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
e95edd8d 13785{ (eval echo configure:13786: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
13786ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13787if test -z "$ac_err"; then
13788 rm -rf conftest*
13789 eval "ac_cv_header_$ac_safe=yes"
6232543b 13790else
698dcdb6
VZ
13791 echo "$ac_err" >&5
13792 echo "configure: failed program was:" >&5
10f2d63a 13793 cat conftest.$ac_ext >&5
698dcdb6
VZ
13794 rm -rf conftest*
13795 eval "ac_cv_header_$ac_safe=no"
10f2d63a 13796fi
698dcdb6 13797rm -f conftest*
10f2d63a 13798fi
698dcdb6
VZ
13799if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13800 echo "$ac_t""yes" 1>&6
13801 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
13802 cat >> confdefs.h <<EOF
13803#define $ac_tr_hdr 1
10f2d63a 13804EOF
698dcdb6
VZ
13805
13806else
13807 echo "$ac_t""no" 1>&6
10f2d63a
VZ
13808fi
13809done
13810
9f8148b1 13811for ac_hdr in malloc.h
10f2d63a 13812do
698dcdb6
VZ
13813ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
13814echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
e95edd8d 13815echo "configure:13816: checking for $ac_hdr" >&5
698dcdb6
VZ
13816if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
13817 echo $ac_n "(cached) $ac_c" 1>&6
13818else
13819 cat > conftest.$ac_ext <<EOF
e95edd8d 13820#line 13821 "configure"
10f2d63a 13821#include "confdefs.h"
698dcdb6
VZ
13822#include <$ac_hdr>
13823EOF
13824ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
e95edd8d 13825{ (eval echo configure:13826: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
13826ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13827if test -z "$ac_err"; then
13828 rm -rf conftest*
13829 eval "ac_cv_header_$ac_safe=yes"
6f72b082 13830else
698dcdb6
VZ
13831 echo "$ac_err" >&5
13832 echo "configure: failed program was:" >&5
6f72b082 13833 cat conftest.$ac_ext >&5
698dcdb6
VZ
13834 rm -rf conftest*
13835 eval "ac_cv_header_$ac_safe=no"
6f72b082 13836fi
698dcdb6 13837rm -f conftest*
6f72b082 13838fi
698dcdb6
VZ
13839if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13840 echo "$ac_t""yes" 1>&6
13841 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
13842 cat >> confdefs.h <<EOF
13843#define $ac_tr_hdr 1
6f72b082 13844EOF
698dcdb6
VZ
13845
13846else
13847 echo "$ac_t""no" 1>&6
6f72b082
OK
13848fi
13849done
13850
9f8148b1 13851for ac_hdr in unistd.h
6f72b082 13852do
698dcdb6
VZ
13853ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
13854echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
e95edd8d 13855echo "configure:13856: checking for $ac_hdr" >&5
698dcdb6
VZ
13856if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
13857 echo $ac_n "(cached) $ac_c" 1>&6
13858else
13859 cat > conftest.$ac_ext <<EOF
e95edd8d 13860#line 13861 "configure"
6f72b082 13861#include "confdefs.h"
698dcdb6
VZ
13862#include <$ac_hdr>
13863EOF
13864ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
e95edd8d 13865{ (eval echo configure:13866: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
13866ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13867if test -z "$ac_err"; then
13868 rm -rf conftest*
13869 eval "ac_cv_header_$ac_safe=yes"
6f72b082 13870else
698dcdb6
VZ
13871 echo "$ac_err" >&5
13872 echo "configure: failed program was:" >&5
6f72b082 13873 cat conftest.$ac_ext >&5
698dcdb6
VZ
13874 rm -rf conftest*
13875 eval "ac_cv_header_$ac_safe=no"
6f72b082 13876fi
698dcdb6 13877rm -f conftest*
6f72b082 13878fi
698dcdb6
VZ
13879if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13880 echo "$ac_t""yes" 1>&6
13881 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
13882 cat >> confdefs.h <<EOF
13883#define $ac_tr_hdr 1
6f72b082 13884EOF
698dcdb6
VZ
13885
13886else
13887 echo "$ac_t""no" 1>&6
6f72b082
OK
13888fi
13889done
13890
9f8148b1 13891for ac_hdr in wchar.h
6f72b082 13892do
698dcdb6
VZ
13893ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
13894echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
e95edd8d 13895echo "configure:13896: checking for $ac_hdr" >&5
698dcdb6
VZ
13896if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
13897 echo $ac_n "(cached) $ac_c" 1>&6
13898else
13899 cat > conftest.$ac_ext <<EOF
e95edd8d 13900#line 13901 "configure"
6f72b082 13901#include "confdefs.h"
698dcdb6
VZ
13902#include <$ac_hdr>
13903EOF
13904ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
e95edd8d 13905{ (eval echo configure:13906: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
13906ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13907if test -z "$ac_err"; then
13908 rm -rf conftest*
13909 eval "ac_cv_header_$ac_safe=yes"
10f2d63a 13910else
698dcdb6
VZ
13911 echo "$ac_err" >&5
13912 echo "configure: failed program was:" >&5
10f2d63a 13913 cat conftest.$ac_ext >&5
698dcdb6
VZ
13914 rm -rf conftest*
13915 eval "ac_cv_header_$ac_safe=no"
10f2d63a 13916fi
698dcdb6 13917rm -f conftest*
10f2d63a 13918fi
698dcdb6
VZ
13919if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13920 echo "$ac_t""yes" 1>&6
13921 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
13922 cat >> confdefs.h <<EOF
13923#define $ac_tr_hdr 1
10f2d63a 13924EOF
698dcdb6
VZ
13925
13926else
13927 echo "$ac_t""no" 1>&6
10f2d63a
VZ
13928fi
13929done
13930
f0c87536
VZ
13931
13932if test "$ac_cv_header_wchar_h" != "yes"; then
13933 for ac_hdr in wcstr.h
0fb0dd83 13934do
698dcdb6
VZ
13935ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
13936echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
e95edd8d 13937echo "configure:13938: checking for $ac_hdr" >&5
698dcdb6
VZ
13938if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
13939 echo $ac_n "(cached) $ac_c" 1>&6
13940else
13941 cat > conftest.$ac_ext <<EOF
e95edd8d 13942#line 13943 "configure"
0fb0dd83 13943#include "confdefs.h"
698dcdb6
VZ
13944#include <$ac_hdr>
13945EOF
13946ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
e95edd8d 13947{ (eval echo configure:13948: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
13948ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13949if test -z "$ac_err"; then
13950 rm -rf conftest*
13951 eval "ac_cv_header_$ac_safe=yes"
0fb0dd83 13952else
698dcdb6
VZ
13953 echo "$ac_err" >&5
13954 echo "configure: failed program was:" >&5
0fb0dd83 13955 cat conftest.$ac_ext >&5
698dcdb6
VZ
13956 rm -rf conftest*
13957 eval "ac_cv_header_$ac_safe=no"
0fb0dd83 13958fi
698dcdb6 13959rm -f conftest*
0fb0dd83 13960fi
698dcdb6
VZ
13961if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13962 echo "$ac_t""yes" 1>&6
13963 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
13964 cat >> confdefs.h <<EOF
13965#define $ac_tr_hdr 1
0fb0dd83 13966EOF
698dcdb6
VZ
13967
13968else
13969 echo "$ac_t""no" 1>&6
0fb0dd83
RR
13970fi
13971done
13972
1f8ae82f 13973fi
f0c87536 13974
1f8ae82f 13975
9f8148b1 13976for ac_hdr in fnmatch.h
10f2d63a 13977do
698dcdb6
VZ
13978ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
13979echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
e95edd8d 13980echo "configure:13981: checking for $ac_hdr" >&5
0fbb762e
MB
13981if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
13982 echo $ac_n "(cached) $ac_c" 1>&6
13983else
13984 cat > conftest.$ac_ext <<EOF
e95edd8d 13985#line 13986 "configure"
0fbb762e
MB
13986#include "confdefs.h"
13987#include <$ac_hdr>
13988EOF
13989ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
e95edd8d 13990{ (eval echo configure:13991: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
0fbb762e
MB
13991ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13992if test -z "$ac_err"; then
13993 rm -rf conftest*
13994 eval "ac_cv_header_$ac_safe=yes"
13995else
13996 echo "$ac_err" >&5
13997 echo "configure: failed program was:" >&5
13998 cat conftest.$ac_ext >&5
13999 rm -rf conftest*
14000 eval "ac_cv_header_$ac_safe=no"
14001fi
14002rm -f conftest*
14003fi
14004if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
14005 echo "$ac_t""yes" 1>&6
14006 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
14007 cat >> confdefs.h <<EOF
14008#define $ac_tr_hdr 1
14009EOF
14010
14011else
14012 echo "$ac_t""no" 1>&6
14013fi
14014done
14015
9f8148b1
GD
14016for ac_hdr in langinfo.h
14017do
14018ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
14019echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
e95edd8d 14020echo "configure:14021: checking for $ac_hdr" >&5
9f8148b1
GD
14021if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
14022 echo $ac_n "(cached) $ac_c" 1>&6
14023else
14024 cat > conftest.$ac_ext <<EOF
e95edd8d 14025#line 14026 "configure"
9f8148b1
GD
14026#include "confdefs.h"
14027#include <$ac_hdr>
14028EOF
14029ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
e95edd8d 14030{ (eval echo configure:14031: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9f8148b1
GD
14031ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
14032if test -z "$ac_err"; then
14033 rm -rf conftest*
14034 eval "ac_cv_header_$ac_safe=yes"
14035else
14036 echo "$ac_err" >&5
14037 echo "configure: failed program was:" >&5
14038 cat conftest.$ac_ext >&5
14039 rm -rf conftest*
14040 eval "ac_cv_header_$ac_safe=no"
14041fi
14042rm -f conftest*
14043fi
14044if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
14045 echo "$ac_t""yes" 1>&6
14046 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
14047 cat >> confdefs.h <<EOF
14048#define $ac_tr_hdr 1
14049EOF
14050
14051else
14052 echo "$ac_t""no" 1>&6
14053fi
14054done
14055
10f2d63a 14056
3a922bb4
RL
14057if test "$wxUSE_GUI" = "yes"; then
14058 if test "$wxUSE_UNIX" = "yes"; then
14059 for ac_hdr in X11/XKBlib.h
29fd3c0c
VS
14060do
14061ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
14062echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
e95edd8d 14063echo "configure:14064: checking for $ac_hdr" >&5
29fd3c0c
VS
14064if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
14065 echo $ac_n "(cached) $ac_c" 1>&6
14066else
14067 cat > conftest.$ac_ext <<EOF
e95edd8d 14068#line 14069 "configure"
29fd3c0c
VS
14069#include "confdefs.h"
14070#include <$ac_hdr>
14071EOF
14072ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
e95edd8d 14073{ (eval echo configure:14074: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
29fd3c0c
VS
14074ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
14075if test -z "$ac_err"; then
14076 rm -rf conftest*
14077 eval "ac_cv_header_$ac_safe=yes"
14078else
14079 echo "$ac_err" >&5
14080 echo "configure: failed program was:" >&5
14081 cat conftest.$ac_ext >&5
14082 rm -rf conftest*
14083 eval "ac_cv_header_$ac_safe=no"
14084fi
14085rm -f conftest*
14086fi
14087if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
14088 echo "$ac_t""yes" 1>&6
14089 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
14090 cat >> confdefs.h <<EOF
14091#define $ac_tr_hdr 1
14092EOF
14093
14094else
14095 echo "$ac_t""no" 1>&6
14096fi
14097done
14098
3a922bb4 14099 fi
29fd3c0c
VS
14100fi
14101
698dcdb6
VZ
14102
14103echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
e95edd8d 14104echo "configure:14105: checking for ANSI C header files" >&5
698dcdb6
VZ
14105if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
14106 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 14107else
698dcdb6 14108 cat > conftest.$ac_ext <<EOF
e95edd8d 14109#line 14110 "configure"
10f2d63a
VZ
14110#include "confdefs.h"
14111#include <stdlib.h>
14112#include <stdarg.h>
14113#include <string.h>
14114#include <float.h>
698dcdb6
VZ
14115EOF
14116ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
e95edd8d 14117{ (eval echo configure:14118: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
14118ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
14119if test -z "$ac_err"; then
14120 rm -rf conftest*
10f2d63a
VZ
14121 ac_cv_header_stdc=yes
14122else
698dcdb6
VZ
14123 echo "$ac_err" >&5
14124 echo "configure: failed program was:" >&5
10f2d63a 14125 cat conftest.$ac_ext >&5
698dcdb6 14126 rm -rf conftest*
10f2d63a
VZ
14127 ac_cv_header_stdc=no
14128fi
698dcdb6 14129rm -f conftest*
10f2d63a
VZ
14130
14131if test $ac_cv_header_stdc = yes; then
14132 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
698dcdb6 14133cat > conftest.$ac_ext <<EOF
e95edd8d 14134#line 14135 "configure"
10f2d63a
VZ
14135#include "confdefs.h"
14136#include <string.h>
698dcdb6 14137EOF
10f2d63a
VZ
14138if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14139 egrep "memchr" >/dev/null 2>&1; then
14140 :
14141else
698dcdb6 14142 rm -rf conftest*
10f2d63a
VZ
14143 ac_cv_header_stdc=no
14144fi
14145rm -f conftest*
14146
14147fi
14148
14149if test $ac_cv_header_stdc = yes; then
14150 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
698dcdb6 14151cat > conftest.$ac_ext <<EOF
e95edd8d 14152#line 14153 "configure"
10f2d63a
VZ
14153#include "confdefs.h"
14154#include <stdlib.h>
698dcdb6 14155EOF
10f2d63a
VZ
14156if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14157 egrep "free" >/dev/null 2>&1; then
14158 :
14159else
698dcdb6 14160 rm -rf conftest*
10f2d63a
VZ
14161 ac_cv_header_stdc=no
14162fi
14163rm -f conftest*
14164
14165fi
14166
14167if test $ac_cv_header_stdc = yes; then
14168 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
698dcdb6 14169if test "$cross_compiling" = yes; then
10f2d63a
VZ
14170 :
14171else
698dcdb6 14172 cat > conftest.$ac_ext <<EOF
e95edd8d 14173#line 14174 "configure"
10f2d63a
VZ
14174#include "confdefs.h"
14175#include <ctype.h>
698dcdb6
VZ
14176#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
14177#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1e487827 14178#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
698dcdb6
VZ
14179int main () { int i; for (i = 0; i < 256; i++)
14180if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
14181exit (0); }
14182
14183EOF
e95edd8d 14184if { (eval echo configure:14185: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
698dcdb6 14185then
10f2d63a
VZ
14186 :
14187else
698dcdb6
VZ
14188 echo "configure: failed program was:" >&5
14189 cat conftest.$ac_ext >&5
14190 rm -fr conftest*
14191 ac_cv_header_stdc=no
10f2d63a 14192fi
698dcdb6 14193rm -fr conftest*
10f2d63a 14194fi
698dcdb6 14195
10f2d63a
VZ
14196fi
14197fi
1e487827 14198
698dcdb6
VZ
14199echo "$ac_t""$ac_cv_header_stdc" 1>&6
14200if test $ac_cv_header_stdc = yes; then
14201 cat >> confdefs.h <<\EOF
10f2d63a
VZ
14202#define STDC_HEADERS 1
14203EOF
14204
14205fi
14206
698dcdb6 14207echo $ac_n "checking for mode_t""... $ac_c" 1>&6
e95edd8d 14208echo "configure:14209: checking for mode_t" >&5
698dcdb6
VZ
14209if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
14210 echo $ac_n "(cached) $ac_c" 1>&6
1e487827 14211else
698dcdb6 14212 cat > conftest.$ac_ext <<EOF
e95edd8d 14213#line 14214 "configure"
1e487827 14214#include "confdefs.h"
698dcdb6
VZ
14215#include <sys/types.h>
14216#if STDC_HEADERS
14217#include <stdlib.h>
14218#include <stddef.h>
14219#endif
14220EOF
14221if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14222 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
14223 rm -rf conftest*
10f2d63a
VZ
14224 ac_cv_type_mode_t=yes
14225else
698dcdb6
VZ
14226 rm -rf conftest*
14227 ac_cv_type_mode_t=no
703e0a69 14228fi
698dcdb6 14229rm -f conftest*
1e487827 14230
698dcdb6
VZ
14231fi
14232echo "$ac_t""$ac_cv_type_mode_t" 1>&6
14233if test $ac_cv_type_mode_t = no; then
14234 cat >> confdefs.h <<\EOF
10f2d63a
VZ
14235#define mode_t int
14236EOF
14237
14238fi
14239
698dcdb6 14240echo $ac_n "checking for off_t""... $ac_c" 1>&6
e95edd8d 14241echo "configure:14242: checking for off_t" >&5
698dcdb6
VZ
14242if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
14243 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 14244else
698dcdb6 14245 cat > conftest.$ac_ext <<EOF
e95edd8d 14246#line 14247 "configure"
10f2d63a 14247#include "confdefs.h"
698dcdb6
VZ
14248#include <sys/types.h>
14249#if STDC_HEADERS
14250#include <stdlib.h>
14251#include <stddef.h>
14252#endif
14253EOF
14254if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14255 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
14256 rm -rf conftest*
10f2d63a
VZ
14257 ac_cv_type_off_t=yes
14258else
698dcdb6
VZ
14259 rm -rf conftest*
14260 ac_cv_type_off_t=no
703e0a69 14261fi
698dcdb6 14262rm -f conftest*
1e487827 14263
698dcdb6
VZ
14264fi
14265echo "$ac_t""$ac_cv_type_off_t" 1>&6
14266if test $ac_cv_type_off_t = no; then
14267 cat >> confdefs.h <<\EOF
10f2d63a
VZ
14268#define off_t long
14269EOF
14270
14271fi
14272
698dcdb6 14273echo $ac_n "checking for pid_t""... $ac_c" 1>&6
e95edd8d 14274echo "configure:14275: checking for pid_t" >&5
698dcdb6
VZ
14275if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
14276 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 14277else
698dcdb6 14278 cat > conftest.$ac_ext <<EOF
e95edd8d 14279#line 14280 "configure"
10f2d63a 14280#include "confdefs.h"
698dcdb6
VZ
14281#include <sys/types.h>
14282#if STDC_HEADERS
14283#include <stdlib.h>
14284#include <stddef.h>
14285#endif
14286EOF
14287if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14288 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
14289 rm -rf conftest*
10f2d63a
VZ
14290 ac_cv_type_pid_t=yes
14291else
698dcdb6
VZ
14292 rm -rf conftest*
14293 ac_cv_type_pid_t=no
703e0a69 14294fi
698dcdb6 14295rm -f conftest*
1e487827 14296
698dcdb6
VZ
14297fi
14298echo "$ac_t""$ac_cv_type_pid_t" 1>&6
14299if test $ac_cv_type_pid_t = no; then
14300 cat >> confdefs.h <<\EOF
10f2d63a
VZ
14301#define pid_t int
14302EOF
14303
14304fi
14305
698dcdb6 14306echo $ac_n "checking for size_t""... $ac_c" 1>&6
e95edd8d 14307echo "configure:14308: checking for size_t" >&5
698dcdb6
VZ
14308if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
14309 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 14310else
698dcdb6 14311 cat > conftest.$ac_ext <<EOF
e95edd8d 14312#line 14313 "configure"
10f2d63a 14313#include "confdefs.h"
698dcdb6
VZ
14314#include <sys/types.h>
14315#if STDC_HEADERS
14316#include <stdlib.h>
14317#include <stddef.h>
14318#endif
14319EOF
14320if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14321 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
14322 rm -rf conftest*
10f2d63a
VZ
14323 ac_cv_type_size_t=yes
14324else
698dcdb6
VZ
14325 rm -rf conftest*
14326 ac_cv_type_size_t=no
703e0a69 14327fi
698dcdb6 14328rm -f conftest*
1e487827 14329
698dcdb6
VZ
14330fi
14331echo "$ac_t""$ac_cv_type_size_t" 1>&6
14332if test $ac_cv_type_size_t = no; then
14333 cat >> confdefs.h <<\EOF
10f2d63a
VZ
14334#define size_t unsigned
14335EOF
14336
14337fi
14338
698dcdb6 14339echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
e95edd8d 14340echo "configure:14341: checking for uid_t in sys/types.h" >&5
698dcdb6
VZ
14341if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
14342 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 14343else
698dcdb6 14344 cat > conftest.$ac_ext <<EOF
e95edd8d 14345#line 14346 "configure"
10f2d63a
VZ
14346#include "confdefs.h"
14347#include <sys/types.h>
698dcdb6 14348EOF
10f2d63a
VZ
14349if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14350 egrep "uid_t" >/dev/null 2>&1; then
698dcdb6 14351 rm -rf conftest*
10f2d63a
VZ
14352 ac_cv_type_uid_t=yes
14353else
698dcdb6 14354 rm -rf conftest*
10f2d63a
VZ
14355 ac_cv_type_uid_t=no
14356fi
14357rm -f conftest*
14358
14359fi
1e487827 14360
698dcdb6
VZ
14361echo "$ac_t""$ac_cv_type_uid_t" 1>&6
14362if test $ac_cv_type_uid_t = no; then
14363 cat >> confdefs.h <<\EOF
10f2d63a
VZ
14364#define uid_t int
14365EOF
14366
698dcdb6 14367 cat >> confdefs.h <<\EOF
10f2d63a
VZ
14368#define gid_t int
14369EOF
14370
14371fi
14372
1e487827 14373
698dcdb6 14374echo $ac_n "checking for wchar_t""... $ac_c" 1>&6
e95edd8d 14375echo "configure:14376: checking for wchar_t" >&5
698dcdb6
VZ
14376if eval "test \"`echo '$''{'wx_cv_type_wchar_t'+set}'`\" = set"; then
14377 echo $ac_n "(cached) $ac_c" 1>&6
14378else
14379
14380 cat > conftest.$ac_ext <<EOF
e95edd8d 14381#line 14382 "configure"
0046ff7c 14382#include "confdefs.h"
4b42290e
GD
14383
14384 #ifdef HAVE_WCHAR_H
0fbb762e
MB
14385 # ifdef __CYGWIN__
14386 # include <stddef.h>
14387 # endif
4b42290e
GD
14388 # include <wchar.h>
14389 #endif
14390 #ifdef HAVE_STDLIB_H
14391 # include <stdlib.h>
14392 #endif
14393
698dcdb6 14394int main() {
0046ff7c 14395
d836ee96
VZ
14396 wchar_t wc, *ws;
14397 wc = L'a';
14398 ws = L"Hello, world!";
698dcdb6
VZ
14399
14400; return 0; }
14401EOF
e95edd8d 14402if { (eval echo configure:14403: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6 14403 rm -rf conftest*
1f8ae82f 14404 wx_cv_type_wchar_t=yes
0046ff7c 14405else
698dcdb6
VZ
14406 echo "configure: failed program was:" >&5
14407 cat conftest.$ac_ext >&5
14408 rm -rf conftest*
14409 wx_cv_type_wchar_t=no
d836ee96 14410
6232543b 14411fi
698dcdb6 14412rm -f conftest*
703e0a69 14413
1e487827 14414fi
698dcdb6
VZ
14415
14416echo "$ac_t""$wx_cv_type_wchar_t" 1>&6
d836ee96
VZ
14417
14418if test "$wx_cv_type_wchar_t" = "yes"; then
698dcdb6 14419 cat >> confdefs.h <<\EOF
0046ff7c
VS
14420#define wxUSE_WCHAR_T 1
14421EOF
14422
14423fi
14424
19af3b06
VZ
14425
14426ac_ext=C
14427# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14428ac_cpp='$CXXCPP $CPPFLAGS'
14429ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14430ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14431cross_compiling=$ac_cv_prog_cxx_cross
14432
d836ee96 14433echo $ac_n "checking if size_t is unsigned int""... $ac_c" 1>&6
e95edd8d 14434echo "configure:14435: checking if size_t is unsigned int" >&5
d836ee96
VZ
14435if eval "test \"`echo '$''{'wx_cv_size_t_is_uint'+set}'`\" = set"; then
14436 echo $ac_n "(cached) $ac_c" 1>&6
14437else
dd2c8b7c 14438 cat > conftest.$ac_ext <<EOF
e95edd8d 14439#line 14440 "configure"
d836ee96
VZ
14440#include "confdefs.h"
14441#include <stddef.h>
14442int main() {
14443
dd2c8b7c
VZ
14444 return 0; }
14445
d836ee96 14446 struct Foo { void foo(size_t); void foo(unsigned int); };
dd2c8b7c
VZ
14447
14448 int bar() {
d836ee96
VZ
14449
14450; return 0; }
14451EOF
e95edd8d 14452if { (eval echo configure:14453: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d836ee96
VZ
14453 rm -rf conftest*
14454 wx_cv_size_t_is_uint=no
14455else
14456 echo "configure: failed program was:" >&5
14457 cat conftest.$ac_ext >&5
14458 rm -rf conftest*
14459 wx_cv_size_t_is_uint=yes
14460
14461fi
14462rm -f conftest*
14463
14464fi
14465
14466echo "$ac_t""$wx_cv_size_t_is_uint" 1>&6
14467
14468if test "$wx_cv_size_t_is_uint" = "yes"; then
14469 cat >> confdefs.h <<\EOF
14470#define wxSIZE_T_IS_UINT 1
14471EOF
14472
14473else
14474 echo $ac_n "checking if size_t is unsigned long""... $ac_c" 1>&6
e95edd8d 14475echo "configure:14476: checking if size_t is unsigned long" >&5
d836ee96
VZ
14476if eval "test \"`echo '$''{'wx_cv_size_t_is_ulong'+set}'`\" = set"; then
14477 echo $ac_n "(cached) $ac_c" 1>&6
14478else
14479 cat > conftest.$ac_ext <<EOF
e95edd8d 14480#line 14481 "configure"
d836ee96
VZ
14481#include "confdefs.h"
14482#include <stddef.h>
14483int main() {
14484
dd2c8b7c
VZ
14485 return 0; }
14486
d836ee96 14487 struct Foo { void foo(size_t); void foo(unsigned long); };
dd2c8b7c
VZ
14488
14489 int bar() {
d836ee96
VZ
14490
14491; return 0; }
14492EOF
e95edd8d 14493if { (eval echo configure:14494: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d836ee96
VZ
14494 rm -rf conftest*
14495 wx_cv_size_t_is_ulong=no
14496else
14497 echo "configure: failed program was:" >&5
14498 cat conftest.$ac_ext >&5
14499 rm -rf conftest*
14500 wx_cv_size_t_is_ulong=yes
14501
14502fi
14503rm -f conftest*
14504
14505fi
14506
14507echo "$ac_t""$wx_cv_size_t_is_ulong" 1>&6
14508
14509 if test "$wx_cv_size_t_is_ulong" = "yes"; then
14510 cat >> confdefs.h <<\EOF
14511#define wxSIZE_T_IS_ULONG 1
14512EOF
14513
14514 fi
14515fi
14516
19af3b06
VZ
14517ac_ext=c
14518# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14519ac_cpp='$CPP $CPPFLAGS'
14520ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14521ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14522cross_compiling=$ac_cv_prog_cc_cross
14523
14524
1e487827 14525
698dcdb6 14526echo $ac_n "checking for pw_gecos in struct passwd""... $ac_c" 1>&6
e95edd8d 14527echo "configure:14528: checking for pw_gecos in struct passwd" >&5
698dcdb6
VZ
14528if eval "test \"`echo '$''{'wx_cv_struct_pw_gecos'+set}'`\" = set"; then
14529 echo $ac_n "(cached) $ac_c" 1>&6
14530else
14531
14532 cat > conftest.$ac_ext <<EOF
e95edd8d 14533#line 14534 "configure"
b12915c1
VZ
14534#include "confdefs.h"
14535#include <pwd.h>
698dcdb6 14536int main() {
b12915c1
VZ
14537
14538 char *p;
14539 struct passwd *pw;
14540 p = pw->pw_gecos;
698dcdb6
VZ
14541
14542; return 0; }
14543EOF
e95edd8d 14544if { (eval echo configure:14545: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6
VZ
14545 rm -rf conftest*
14546
b12915c1 14547 wx_cv_struct_pw_gecos=yes
698dcdb6 14548
b12915c1 14549else
698dcdb6
VZ
14550 echo "configure: failed program was:" >&5
14551 cat conftest.$ac_ext >&5
14552 rm -rf conftest*
14553
b12915c1 14554 wx_cv_struct_pw_gecos=no
698dcdb6
VZ
14555
14556
6232543b 14557fi
698dcdb6
VZ
14558rm -f conftest*
14559
703e0a69 14560
1e487827 14561fi
698dcdb6
VZ
14562
14563echo "$ac_t""$wx_cv_struct_pw_gecos" 1>&6
b12915c1 14564
bd3277fe 14565if test "$wx_cv_struct_pw_gecos" = "yes"; then
698dcdb6 14566 cat >> confdefs.h <<\EOF
bd3277fe
VZ
14567#define HAVE_PW_GECOS 1
14568EOF
14569
14570fi
14571
698dcdb6
VZ
14572
14573echo $ac_n "checking for working const""... $ac_c" 1>&6
e95edd8d 14574echo "configure:14575: checking for working const" >&5
698dcdb6
VZ
14575if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
14576 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 14577else
698dcdb6 14578 cat > conftest.$ac_ext <<EOF
e95edd8d 14579#line 14580 "configure"
10f2d63a 14580#include "confdefs.h"
698dcdb6
VZ
14581
14582int main() {
14583
14584/* Ultrix mips cc rejects this. */
d558c907 14585typedef int charset[2]; const charset x;
698dcdb6
VZ
14586/* SunOS 4.1.1 cc rejects this. */
14587char const *const *ccp;
14588char **p;
14589/* NEC SVR4.0.2 mips cc rejects this. */
14590struct point {int x, y;};
14591static struct point const zero = {0,0};
14592/* AIX XL C 1.02.0.0 rejects this.
14593 It does not let you subtract one const X* pointer from another in an arm
14594 of an if-expression whose if-part is not a constant expression */
14595const char *g = "string";
14596ccp = &g + (g ? g-g : 0);
14597/* HPUX 7.0 cc rejects these. */
14598++ccp;
14599p = (char**) ccp;
14600ccp = (char const *const *) p;
14601{ /* SCO 3.2v4 cc rejects this. */
14602 char *t;
14603 char const *s = 0 ? (char *) 0 : (char const *) 0;
14604
14605 *t++ = 0;
10f2d63a 14606}
698dcdb6
VZ
14607{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
14608 int x[] = {25, 17};
14609 const int *foo = &x[0];
14610 ++foo;
703e0a69 14611}
698dcdb6
VZ
14612{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
14613 typedef const int *iptr;
14614 iptr p = 0;
14615 ++p;
6232543b 14616}
698dcdb6
VZ
14617{ /* AIX XL C 1.02.0.0 rejects this saying
14618 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
14619 struct s { int j; const int *ap[3]; };
14620 struct s *b; b->j = 5;
1e487827 14621}
698dcdb6
VZ
14622{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
14623 const int foo = 10;
14624}
4f14bcd8
GD
14625
14626; return 0; }
698dcdb6 14627EOF
e95edd8d 14628if { (eval echo configure:14629: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4f14bcd8
GD
14629 rm -rf conftest*
14630 ac_cv_c_const=yes
698dcdb6
VZ
14631else
14632 echo "configure: failed program was:" >&5
14633 cat conftest.$ac_ext >&5
4f14bcd8
GD
14634 rm -rf conftest*
14635 ac_cv_c_const=no
703e0a69 14636fi
4f14bcd8 14637rm -f conftest*
698dcdb6
VZ
14638fi
14639
4f14bcd8
GD
14640echo "$ac_t""$ac_cv_c_const" 1>&6
14641if test $ac_cv_c_const = no; then
14642 cat >> confdefs.h <<\EOF
14643#define const
698dcdb6
VZ
14644EOF
14645
4f14bcd8 14646fi
698dcdb6 14647
4f14bcd8 14648echo $ac_n "checking for inline""... $ac_c" 1>&6
e95edd8d 14649echo "configure:14650: checking for inline" >&5
4f14bcd8 14650if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
698dcdb6 14651 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 14652else
4f14bcd8
GD
14653 ac_cv_c_inline=no
14654for ac_kw in inline __inline__ __inline; do
698dcdb6 14655 cat > conftest.$ac_ext <<EOF
e95edd8d 14656#line 14657 "configure"
10f2d63a 14657#include "confdefs.h"
4f14bcd8
GD
14658
14659int main() {
d558c907 14660} $ac_kw foo() {
4f14bcd8 14661; return 0; }
698dcdb6 14662EOF
e95edd8d 14663if { (eval echo configure:14664: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4f14bcd8
GD
14664 rm -rf conftest*
14665 ac_cv_c_inline=$ac_kw; break
10f2d63a 14666else
698dcdb6
VZ
14667 echo "configure: failed program was:" >&5
14668 cat conftest.$ac_ext >&5
10f2d63a 14669fi
4f14bcd8
GD
14670rm -f conftest*
14671done
698dcdb6 14672
10f2d63a 14673fi
4f14bcd8
GD
14674
14675echo "$ac_t""$ac_cv_c_inline" 1>&6
14676case "$ac_cv_c_inline" in
14677 inline | yes) ;;
14678 no) cat >> confdefs.h <<\EOF
14679#define inline
14680EOF
14681 ;;
14682 *) cat >> confdefs.h <<EOF
14683#define inline $ac_cv_c_inline
698dcdb6 14684EOF
4f14bcd8
GD
14685 ;;
14686esac
698dcdb6
VZ
14687
14688
4f14bcd8 14689echo $ac_n "checking size of char""... $ac_c" 1>&6
e95edd8d 14690echo "configure:14691: checking size of char" >&5
4f14bcd8 14691if eval "test \"`echo '$''{'ac_cv_sizeof_char'+set}'`\" = set"; then
698dcdb6
VZ
14692 echo $ac_n "(cached) $ac_c" 1>&6
14693else
14694 if test "$cross_compiling" = yes; then
4f14bcd8 14695 ac_cv_sizeof_char=1
698dcdb6
VZ
14696else
14697 cat > conftest.$ac_ext <<EOF
e95edd8d 14698#line 14699 "configure"
698dcdb6
VZ
14699#include "confdefs.h"
14700#include <stdio.h>
9337b578 14701main()
698dcdb6
VZ
14702{
14703 FILE *f=fopen("conftestval", "w");
9337b578 14704 if (!f) exit(1);
4f14bcd8 14705 fprintf(f, "%d\n", sizeof(char));
9337b578 14706 exit(0);
698dcdb6
VZ
14707}
14708EOF
e95edd8d 14709if { (eval echo configure:14710: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
698dcdb6 14710then
4f14bcd8 14711 ac_cv_sizeof_char=`cat conftestval`
6232543b 14712else
698dcdb6
VZ
14713 echo "configure: failed program was:" >&5
14714 cat conftest.$ac_ext >&5
14715 rm -fr conftest*
4f14bcd8 14716 ac_cv_sizeof_char=0
6232543b 14717fi
698dcdb6
VZ
14718rm -fr conftest*
14719fi
14720
703e0a69 14721fi
4f14bcd8 14722echo "$ac_t""$ac_cv_sizeof_char" 1>&6
698dcdb6 14723cat >> confdefs.h <<EOF
4f14bcd8 14724#define SIZEOF_CHAR $ac_cv_sizeof_char
10f2d63a
VZ
14725EOF
14726
1e487827 14727
4f14bcd8 14728echo $ac_n "checking size of short""... $ac_c" 1>&6
e95edd8d 14729echo "configure:14730: checking size of short" >&5
4f14bcd8 14730if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
698dcdb6
VZ
14731 echo $ac_n "(cached) $ac_c" 1>&6
14732else
4f14bcd8
GD
14733 if test "$cross_compiling" = yes; then
14734 ac_cv_sizeof_short=2
b93d0d08 14735else
698dcdb6 14736 cat > conftest.$ac_ext <<EOF
e95edd8d 14737#line 14738 "configure"
b93d0d08 14738#include "confdefs.h"
4f14bcd8 14739#include <stdio.h>
9337b578 14740main()
4f14bcd8
GD
14741{
14742 FILE *f=fopen("conftestval", "w");
9337b578 14743 if (!f) exit(1);
4f14bcd8 14744 fprintf(f, "%d\n", sizeof(short));
9337b578 14745 exit(0);
4f14bcd8 14746}
698dcdb6 14747EOF
e95edd8d 14748if { (eval echo configure:14749: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
698dcdb6 14749then
4f14bcd8 14750 ac_cv_sizeof_short=`cat conftestval`
b93d0d08 14751else
698dcdb6
VZ
14752 echo "configure: failed program was:" >&5
14753 cat conftest.$ac_ext >&5
14754 rm -fr conftest*
4f14bcd8 14755 ac_cv_sizeof_short=0
b93d0d08 14756fi
698dcdb6 14757rm -fr conftest*
b93d0d08
VS
14758fi
14759
b93d0d08 14760fi
4f14bcd8 14761echo "$ac_t""$ac_cv_sizeof_short" 1>&6
698dcdb6 14762cat >> confdefs.h <<EOF
4f14bcd8 14763#define SIZEOF_SHORT $ac_cv_sizeof_short
b93d0d08
VS
14764EOF
14765
698dcdb6 14766
17c89ef3 14767echo $ac_n "checking size of void *""... $ac_c" 1>&6
e95edd8d 14768echo "configure:14769: checking size of void *" >&5
17c89ef3 14769if eval "test \"`echo '$''{'ac_cv_sizeof_void_p'+set}'`\" = set"; then
698dcdb6 14770 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 14771else
4f14bcd8 14772 if test "$cross_compiling" = yes; then
17c89ef3 14773 ac_cv_sizeof_void_p=4
3a922bb4 14774else
3a922bb4 14775 cat > conftest.$ac_ext <<EOF
e95edd8d 14776#line 14777 "configure"
3a922bb4 14777#include "confdefs.h"
4f14bcd8 14778#include <stdio.h>
9337b578 14779main()
4f14bcd8
GD
14780{
14781 FILE *f=fopen("conftestval", "w");
9337b578 14782 if (!f) exit(1);
17c89ef3 14783 fprintf(f, "%d\n", sizeof(void *));
9337b578 14784 exit(0);
4f14bcd8
GD
14785}
14786EOF
e95edd8d 14787if { (eval echo configure:14788: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4f14bcd8 14788then
17c89ef3 14789 ac_cv_sizeof_void_p=`cat conftestval`
4f14bcd8
GD
14790else
14791 echo "configure: failed program was:" >&5
14792 cat conftest.$ac_ext >&5
14793 rm -fr conftest*
17c89ef3 14794 ac_cv_sizeof_void_p=0
3a922bb4 14795fi
4f14bcd8 14796rm -fr conftest*
3a922bb4 14797fi
698dcdb6 14798
4f14bcd8 14799fi
17c89ef3 14800echo "$ac_t""$ac_cv_sizeof_void_p" 1>&6
4f14bcd8 14801cat >> confdefs.h <<EOF
17c89ef3 14802#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
10f2d63a
VZ
14803EOF
14804
703e0a69 14805
4f14bcd8 14806echo $ac_n "checking size of int""... $ac_c" 1>&6
e95edd8d 14807echo "configure:14808: checking size of int" >&5
4f14bcd8 14808if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
698dcdb6 14809 echo $ac_n "(cached) $ac_c" 1>&6
4f14bcd8
GD
14810else
14811 if test "$cross_compiling" = yes; then
14812 ac_cv_sizeof_int=4
698dcdb6
VZ
14813else
14814 cat > conftest.$ac_ext <<EOF
e95edd8d 14815#line 14816 "configure"
10f2d63a 14816#include "confdefs.h"
4f14bcd8 14817#include <stdio.h>
9337b578 14818main()
4f14bcd8
GD
14819{
14820 FILE *f=fopen("conftestval", "w");
9337b578 14821 if (!f) exit(1);
4f14bcd8 14822 fprintf(f, "%d\n", sizeof(int));
9337b578 14823 exit(0);
4f14bcd8 14824}
698dcdb6 14825EOF
e95edd8d 14826if { (eval echo configure:14827: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4f14bcd8
GD
14827then
14828 ac_cv_sizeof_int=`cat conftestval`
10f2d63a 14829else
698dcdb6 14830 echo "configure: failed program was:" >&5
10f2d63a 14831 cat conftest.$ac_ext >&5
4f14bcd8
GD
14832 rm -fr conftest*
14833 ac_cv_sizeof_int=0
10f2d63a 14834fi
4f14bcd8 14835rm -fr conftest*
10f2d63a 14836fi
10f2d63a 14837
4f14bcd8
GD
14838fi
14839echo "$ac_t""$ac_cv_sizeof_int" 1>&6
14840cat >> confdefs.h <<EOF
14841#define SIZEOF_INT $ac_cv_sizeof_int
10f2d63a
VZ
14842EOF
14843
698dcdb6 14844
4f14bcd8 14845echo $ac_n "checking size of long""... $ac_c" 1>&6
e95edd8d 14846echo "configure:14847: checking size of long" >&5
4f14bcd8 14847if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
698dcdb6
VZ
14848 echo $ac_n "(cached) $ac_c" 1>&6
14849else
4f14bcd8
GD
14850 if test "$cross_compiling" = yes; then
14851 ac_cv_sizeof_long=4
14852else
14853 cat > conftest.$ac_ext <<EOF
e95edd8d 14854#line 14855 "configure"
10f2d63a 14855#include "confdefs.h"
4f14bcd8 14856#include <stdio.h>
9337b578 14857main()
4f14bcd8
GD
14858{
14859 FILE *f=fopen("conftestval", "w");
9337b578 14860 if (!f) exit(1);
4f14bcd8 14861 fprintf(f, "%d\n", sizeof(long));
9337b578 14862 exit(0);
4f14bcd8 14863}
698dcdb6 14864EOF
e95edd8d 14865if { (eval echo configure:14866: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4f14bcd8
GD
14866then
14867 ac_cv_sizeof_long=`cat conftestval`
10f2d63a 14868else
698dcdb6
VZ
14869 echo "configure: failed program was:" >&5
14870 cat conftest.$ac_ext >&5
4f14bcd8
GD
14871 rm -fr conftest*
14872 ac_cv_sizeof_long=0
10f2d63a 14873fi
4f14bcd8 14874rm -fr conftest*
10f2d63a 14875fi
698dcdb6 14876
4f14bcd8
GD
14877fi
14878echo "$ac_t""$ac_cv_sizeof_long" 1>&6
14879cat >> confdefs.h <<EOF
14880#define SIZEOF_LONG $ac_cv_sizeof_long
10f2d63a
VZ
14881EOF
14882
698dcdb6 14883
9d353d4a
RR
14884
14885case "${host}" in
14886 arm-*-linux* )
14887 echo $ac_n "checking size of long long""... $ac_c" 1>&6
e95edd8d 14888echo "configure:14889: checking size of long long" >&5
9d353d4a
RR
14889if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
14890 echo $ac_n "(cached) $ac_c" 1>&6
14891else
14892 if test "$cross_compiling" = yes; then
14893 ac_cv_sizeof_long_long=8
14894else
14895 cat > conftest.$ac_ext <<EOF
e95edd8d 14896#line 14897 "configure"
9d353d4a
RR
14897#include "confdefs.h"
14898#include <stdio.h>
14899main()
14900{
14901 FILE *f=fopen("conftestval", "w");
14902 if (!f) exit(1);
14903 fprintf(f, "%d\n", sizeof(long long));
14904 exit(0);
14905}
14906EOF
e95edd8d 14907if { (eval echo configure:14908: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9d353d4a
RR
14908then
14909 ac_cv_sizeof_long_long=`cat conftestval`
14910else
14911 echo "configure: failed program was:" >&5
14912 cat conftest.$ac_ext >&5
14913 rm -fr conftest*
14914 ac_cv_sizeof_long_long=0
14915fi
14916rm -fr conftest*
14917fi
14918
14919fi
14920echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
14921cat >> confdefs.h <<EOF
14922#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
14923EOF
14924
14925
14926 ;;
14927 * )
14928 echo $ac_n "checking size of long long""... $ac_c" 1>&6
e95edd8d 14929echo "configure:14930: checking size of long long" >&5
4f14bcd8 14930if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
698dcdb6 14931 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 14932else
4f14bcd8
GD
14933 if test "$cross_compiling" = yes; then
14934 ac_cv_sizeof_long_long=0
14935else
14936 cat > conftest.$ac_ext <<EOF
e95edd8d 14937#line 14938 "configure"
10f2d63a 14938#include "confdefs.h"
4f14bcd8 14939#include <stdio.h>
9337b578 14940main()
4f14bcd8
GD
14941{
14942 FILE *f=fopen("conftestval", "w");
9337b578 14943 if (!f) exit(1);
4f14bcd8 14944 fprintf(f, "%d\n", sizeof(long long));
9337b578 14945 exit(0);
4f14bcd8 14946}
698dcdb6 14947EOF
e95edd8d 14948if { (eval echo configure:14949: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4f14bcd8
GD
14949then
14950 ac_cv_sizeof_long_long=`cat conftestval`
698dcdb6
VZ
14951else
14952 echo "configure: failed program was:" >&5
14953 cat conftest.$ac_ext >&5
4f14bcd8
GD
14954 rm -fr conftest*
14955 ac_cv_sizeof_long_long=0
14956fi
14957rm -fr conftest*
698dcdb6 14958fi
698dcdb6
VZ
14959
14960fi
4f14bcd8
GD
14961echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
14962cat >> confdefs.h <<EOF
14963#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
10f2d63a
VZ
14964EOF
14965
10f2d63a 14966
9d353d4a
RR
14967esac
14968
4f14bcd8
GD
14969
14970echo $ac_n "checking size of wchar_t""... $ac_c" 1>&6
e95edd8d 14971echo "configure:14972: checking size of wchar_t" >&5
4f14bcd8 14972if eval "test \"`echo '$''{'wx_cv_sizeof_wchar_t'+set}'`\" = set"; then
698dcdb6 14973 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 14974else
4f14bcd8
GD
14975
14976 if test "$cross_compiling" = yes; then
14977 wx_cv_sizeof_wchar_t=4
14978
14979else
14980 cat > conftest.$ac_ext <<EOF
e95edd8d 14981#line 14982 "configure"
10f2d63a 14982#include "confdefs.h"
698dcdb6 14983
4f14bcd8 14984 #ifdef HAVE_WCHAR_H
0fbb762e
MB
14985 # ifdef __CYGWIN__
14986 # include <stddef.h>
14987 # endif
4f14bcd8
GD
14988 # include <wchar.h>
14989 #endif
14990 #ifdef HAVE_STDLIB_H
14991 # include <stdlib.h>
14992 #endif
14993 #include <stdio.h>
14994 int main()
14995 {
14996 FILE *f=fopen("conftestval", "w");
14997 if (!f) exit(1);
14998 fprintf(f, "%i", sizeof(wchar_t));
14999 exit(0);
15000 }
15001
698dcdb6 15002EOF
e95edd8d 15003if { (eval echo configure:15004: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4f14bcd8
GD
15004then
15005 wx_cv_sizeof_wchar_t=`cat conftestval`
698dcdb6
VZ
15006else
15007 echo "configure: failed program was:" >&5
15008 cat conftest.$ac_ext >&5
4f14bcd8
GD
15009 rm -fr conftest*
15010 wx_cv_sizeof_wchar_t=0
698dcdb6 15011fi
4f14bcd8
GD
15012rm -fr conftest*
15013fi
15014
698dcdb6
VZ
15015
15016fi
4f14bcd8
GD
15017
15018echo "$ac_t""$wx_cv_sizeof_wchar_t" 1>&6
15019
15020cat >> confdefs.h <<EOF
15021#define SIZEOF_WCHAR_T $wx_cv_sizeof_wchar_t
10f2d63a
VZ
15022EOF
15023
18dbb1f6 15024
4f14bcd8 15025echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
e95edd8d 15026echo "configure:15027: checking whether byte ordering is bigendian" >&5
4f14bcd8 15027if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
18dbb1f6
VZ
15028 echo $ac_n "(cached) $ac_c" 1>&6
15029else
4f14bcd8
GD
15030 ac_cv_c_bigendian=unknown
15031# See if sys/param.h defines the BYTE_ORDER macro.
18dbb1f6 15032cat > conftest.$ac_ext <<EOF
e95edd8d 15033#line 15034 "configure"
18dbb1f6 15034#include "confdefs.h"
4f14bcd8
GD
15035#include <sys/types.h>
15036#include <sys/param.h>
15037int main() {
18dbb1f6 15038
4f14bcd8
GD
15039#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
15040 bogus endian macros
15041#endif
15042; return 0; }
15043EOF
e95edd8d 15044if { (eval echo configure:15045: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4f14bcd8
GD
15045 rm -rf conftest*
15046 # It does; now see whether it defined to BIG_ENDIAN or not.
15047cat > conftest.$ac_ext <<EOF
e95edd8d 15048#line 15049 "configure"
4f14bcd8
GD
15049#include "confdefs.h"
15050#include <sys/types.h>
15051#include <sys/param.h>
18dbb1f6 15052int main() {
4f14bcd8
GD
15053
15054#if BYTE_ORDER != BIG_ENDIAN
15055 not big endian
15056#endif
18dbb1f6
VZ
15057; return 0; }
15058EOF
e95edd8d 15059if { (eval echo configure:15060: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18dbb1f6 15060 rm -rf conftest*
4f14bcd8 15061 ac_cv_c_bigendian=yes
18dbb1f6
VZ
15062else
15063 echo "configure: failed program was:" >&5
15064 cat conftest.$ac_ext >&5
15065 rm -rf conftest*
4f14bcd8 15066 ac_cv_c_bigendian=no
18dbb1f6
VZ
15067fi
15068rm -f conftest*
698dcdb6 15069else
4f14bcd8
GD
15070 echo "configure: failed program was:" >&5
15071 cat conftest.$ac_ext >&5
1e487827 15072fi
4f14bcd8
GD
15073rm -f conftest*
15074if test $ac_cv_c_bigendian = unknown; then
15075if test "$cross_compiling" = yes; then
15076 ac_cv_c_bigendian=unknown
b3e8d00a
VZ
15077else
15078 cat > conftest.$ac_ext <<EOF
e95edd8d 15079#line 15080 "configure"
b3e8d00a 15080#include "confdefs.h"
4f14bcd8
GD
15081main () {
15082 /* Are we little or big endian? From Harbison&Steele. */
15083 union
15084 {
15085 long l;
15086 char c[sizeof (long)];
15087 } u;
15088 u.l = 1;
15089 exit (u.c[sizeof (long) - 1] == 1);
15090}
b3e8d00a 15091EOF
e95edd8d 15092if { (eval echo configure:15093: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4f14bcd8
GD
15093then
15094 ac_cv_c_bigendian=no
b3e8d00a
VZ
15095else
15096 echo "configure: failed program was:" >&5
15097 cat conftest.$ac_ext >&5
4f14bcd8
GD
15098 rm -fr conftest*
15099 ac_cv_c_bigendian=yes
b3e8d00a 15100fi
4f14bcd8 15101rm -fr conftest*
b3e8d00a
VZ
15102fi
15103
4f14bcd8
GD
15104fi
15105fi
15106
15107echo "$ac_t""$ac_cv_c_bigendian" 1>&6
15108if test $ac_cv_c_bigendian = unknown; then
15109 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
15110fi
15111if test $ac_cv_c_bigendian = yes; then
15112 cat >> confdefs.h <<\EOF
15113#define WORDS_BIGENDIAN 1
b3e8d00a 15114EOF
4f14bcd8 15115
b3e8d00a 15116fi
b3e8d00a
VZ
15117
15118
4f14bcd8 15119echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
e95edd8d 15120echo "configure:15121: checking how to run the C++ preprocessor" >&5
4f14bcd8
GD
15121if test -z "$CXXCPP"; then
15122if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
698dcdb6
VZ
15123 echo $ac_n "(cached) $ac_c" 1>&6
15124else
4f14bcd8
GD
15125 ac_ext=C
15126# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15127ac_cpp='$CXXCPP $CPPFLAGS'
15128ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15129ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15130cross_compiling=$ac_cv_prog_cxx_cross
15131 CXXCPP="${CXX-g++} -E"
698dcdb6 15132 cat > conftest.$ac_ext <<EOF
e95edd8d 15133#line 15134 "configure"
10f2d63a 15134#include "confdefs.h"
4f14bcd8 15135#include <stdlib.h>
698dcdb6 15136EOF
4f14bcd8 15137ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
e95edd8d 15138{ (eval echo configure:15139: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4f14bcd8
GD
15139ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15140if test -z "$ac_err"; then
15141 :
698dcdb6 15142else
4f14bcd8 15143 echo "$ac_err" >&5
698dcdb6
VZ
15144 echo "configure: failed program was:" >&5
15145 cat conftest.$ac_ext >&5
15146 rm -rf conftest*
4f14bcd8 15147 CXXCPP=/lib/cpp
698dcdb6
VZ
15148fi
15149rm -f conftest*
4f14bcd8
GD
15150 ac_cv_prog_CXXCPP="$CXXCPP"
15151ac_ext=C
15152# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15153ac_cpp='$CXXCPP $CPPFLAGS'
15154ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15155ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15156cross_compiling=$ac_cv_prog_cxx_cross
15157fi
698dcdb6 15158fi
4f14bcd8
GD
15159CXXCPP="$ac_cv_prog_CXXCPP"
15160echo "$ac_t""$CXXCPP" 1>&6
698dcdb6 15161
4f14bcd8
GD
15162
15163 if test "$cross_compiling" = "yes"; then
15164 cat >> confdefs.h <<\EOF
15165#define wxUSE_IOSTREAMH 1
698dcdb6
VZ
15166EOF
15167
4f14bcd8
GD
15168 else
15169
15170 ac_ext=C
15171# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15172ac_cpp='$CXXCPP $CPPFLAGS'
15173ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15174ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15175cross_compiling=$ac_cv_prog_cxx_cross
698dcdb6 15176
4f14bcd8
GD
15177
15178 for ac_hdr in iostream
15179do
15180ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
15181echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
e95edd8d 15182echo "configure:15183: checking for $ac_hdr" >&5
4f14bcd8 15183if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
698dcdb6
VZ
15184 echo $ac_n "(cached) $ac_c" 1>&6
15185else
15186 cat > conftest.$ac_ext <<EOF
e95edd8d 15187#line 15188 "configure"
10f2d63a 15188#include "confdefs.h"
4f14bcd8 15189#include <$ac_hdr>
698dcdb6 15190EOF
4f14bcd8 15191ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
e95edd8d 15192{ (eval echo configure:15193: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4f14bcd8
GD
15193ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15194if test -z "$ac_err"; then
698dcdb6 15195 rm -rf conftest*
4f14bcd8 15196 eval "ac_cv_header_$ac_safe=yes"
698dcdb6 15197else
4f14bcd8 15198 echo "$ac_err" >&5
698dcdb6
VZ
15199 echo "configure: failed program was:" >&5
15200 cat conftest.$ac_ext >&5
15201 rm -rf conftest*
4f14bcd8 15202 eval "ac_cv_header_$ac_safe=no"
698dcdb6
VZ
15203fi
15204rm -f conftest*
15205fi
4f14bcd8 15206if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
698dcdb6 15207 echo "$ac_t""yes" 1>&6
4f14bcd8
GD
15208 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
15209 cat >> confdefs.h <<EOF
15210#define $ac_tr_hdr 1
10f2d63a 15211EOF
4f14bcd8 15212
698dcdb6
VZ
15213else
15214 echo "$ac_t""no" 1>&6
10f2d63a 15215fi
4f14bcd8 15216done
10f2d63a 15217
10f2d63a 15218
4f14bcd8
GD
15219 if test "$ac_cv_header_iostream" = "yes" ; then
15220 :
15221 else
15222 cat >> confdefs.h <<\EOF
15223#define wxUSE_IOSTREAMH 1
15224EOF
15225
15226 fi
1e487827 15227
4f14bcd8
GD
15228 ac_ext=c
15229# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15230ac_cpp='$CPP $CPPFLAGS'
15231ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15232ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15233cross_compiling=$ac_cv_prog_cc_cross
698dcdb6 15234
4f14bcd8 15235 fi
698dcdb6
VZ
15236
15237
15238
4f14bcd8 15239 echo $ac_n "checking if C++ compiler supports bool""... $ac_c" 1>&6
e95edd8d 15240echo "configure:15241: checking if C++ compiler supports bool" >&5
4f14bcd8 15241if eval "test \"`echo '$''{'wx_cv_cpp_bool'+set}'`\" = set"; then
698dcdb6
VZ
15242 echo $ac_n "(cached) $ac_c" 1>&6
15243else
15244
4f14bcd8
GD
15245
15246 ac_ext=C
15247# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15248ac_cpp='$CXXCPP $CPPFLAGS'
15249ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15250ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15251cross_compiling=$ac_cv_prog_cxx_cross
f6bcfd97 15252
10f2d63a 15253
4f14bcd8 15254 cat > conftest.$ac_ext <<EOF
e95edd8d 15255#line 15256 "configure"
4f14bcd8 15256#include "confdefs.h"
10f2d63a 15257
4f14bcd8
GD
15258
15259int main() {
f6bcfd97 15260
4f14bcd8 15261 bool b = true;
f6bcfd97 15262
4f14bcd8
GD
15263 return 0;
15264
698dcdb6
VZ
15265; return 0; }
15266EOF
e95edd8d 15267if { (eval echo configure:15268: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6
VZ
15268 rm -rf conftest*
15269
4f14bcd8
GD
15270 wx_cv_cpp_bool=yes
15271
10f2d63a 15272else
698dcdb6
VZ
15273 echo "configure: failed program was:" >&5
15274 cat conftest.$ac_ext >&5
15275 rm -rf conftest*
15276
4f14bcd8
GD
15277 wx_cv_cpp_bool=no
15278
15279
15280fi
15281rm -f conftest*
c521c494 15282
4f14bcd8
GD
15283 ac_ext=c
15284# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15285ac_cpp='$CPP $CPPFLAGS'
15286ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15287ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15288cross_compiling=$ac_cv_prog_cc_cross
c521c494 15289
4f14bcd8
GD
15290
15291fi
c521c494 15292
4f14bcd8 15293echo "$ac_t""$wx_cv_cpp_bool" 1>&6
c521c494 15294
4f14bcd8
GD
15295 if test "$wx_cv_cpp_bool" = "yes"; then
15296 cat >> confdefs.h <<\EOF
15297#define HAVE_BOOL 1
15298EOF
c521c494 15299
4f14bcd8
GD
15300 fi
15301
15302
15303
15304echo $ac_n "checking for wcslen in -lc""... $ac_c" 1>&6
e95edd8d 15305echo "configure:15306: checking for wcslen in -lc" >&5
4f14bcd8
GD
15306ac_lib_var=`echo c'_'wcslen | sed 'y%./+-%__p_%'`
15307if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15308 echo $ac_n "(cached) $ac_c" 1>&6
15309else
15310 ac_save_LIBS="$LIBS"
15311LIBS="-lc $LIBS"
15312cat > conftest.$ac_ext <<EOF
e95edd8d 15313#line 15314 "configure"
4f14bcd8
GD
15314#include "confdefs.h"
15315/* Override any gcc2 internal prototype to avoid an error. */
15316/* We use char because int might match the return type of a gcc2
15317 builtin and then its argument prototype would still apply. */
15318char wcslen();
15319
15320int main() {
15321wcslen()
698dcdb6
VZ
15322; return 0; }
15323EOF
e95edd8d 15324if { (eval echo configure:15325: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6 15325 rm -rf conftest*
4f14bcd8 15326 eval "ac_cv_lib_$ac_lib_var=yes"
c521c494 15327else
698dcdb6
VZ
15328 echo "configure: failed program was:" >&5
15329 cat conftest.$ac_ext >&5
15330 rm -rf conftest*
4f14bcd8 15331 eval "ac_cv_lib_$ac_lib_var=no"
6232543b 15332fi
698dcdb6 15333rm -f conftest*
4f14bcd8 15334LIBS="$ac_save_LIBS"
703e0a69 15335
1e487827 15336fi
4f14bcd8
GD
15337if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15338 echo "$ac_t""yes" 1>&6
15339
15340 cat >> confdefs.h <<\EOF
15341#define HAVE_WCSLEN 1
9d8deca0
VZ
15342EOF
15343
3d63bc3a 15344 WCHAR_LINK=
4f14bcd8 15345
9d8deca0 15346else
4f14bcd8 15347 echo "$ac_t""no" 1>&6
9d8deca0 15348
4f14bcd8 15349 echo $ac_n "checking for wcslen in -lw""... $ac_c" 1>&6
e95edd8d 15350echo "configure:15351: checking for wcslen in -lw" >&5
4f14bcd8
GD
15351ac_lib_var=`echo w'_'wcslen | sed 'y%./+-%__p_%'`
15352if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
698dcdb6 15353 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 15354else
4f14bcd8
GD
15355 ac_save_LIBS="$LIBS"
15356LIBS="-lw $LIBS"
15357cat > conftest.$ac_ext <<EOF
e95edd8d 15358#line 15359 "configure"
10f2d63a 15359#include "confdefs.h"
4f14bcd8
GD
15360/* Override any gcc2 internal prototype to avoid an error. */
15361/* We use char because int might match the return type of a gcc2
15362 builtin and then its argument prototype would still apply. */
15363char wcslen();
10f2d63a 15364
698dcdb6 15365int main() {
4f14bcd8 15366wcslen()
698dcdb6
VZ
15367; return 0; }
15368EOF
e95edd8d 15369if { (eval echo configure:15370: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6 15370 rm -rf conftest*
4f14bcd8 15371 eval "ac_cv_lib_$ac_lib_var=yes"
10f2d63a 15372else
698dcdb6
VZ
15373 echo "configure: failed program was:" >&5
15374 cat conftest.$ac_ext >&5
15375 rm -rf conftest*
4f14bcd8 15376 eval "ac_cv_lib_$ac_lib_var=no"
6232543b 15377fi
698dcdb6 15378rm -f conftest*
4f14bcd8 15379LIBS="$ac_save_LIBS"
703e0a69 15380
1e487827 15381fi
4f14bcd8
GD
15382if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15383 echo "$ac_t""yes" 1>&6
15384
15385 cat >> confdefs.h <<\EOF
15386#define HAVE_WCSLEN 1
9d8deca0
VZ
15387EOF
15388
3d63bc3a 15389 WCHAR_LINK=" -lw"
4f14bcd8
GD
15390
15391else
15392 echo "$ac_t""no" 1>&6
698dcdb6 15393
4f14bcd8 15394 echo $ac_n "checking for wcslen in -lmsvcrt""... $ac_c" 1>&6
e95edd8d 15395echo "configure:15396: checking for wcslen in -lmsvcrt" >&5
4f14bcd8
GD
15396ac_lib_var=`echo msvcrt'_'wcslen | sed 'y%./+-%__p_%'`
15397if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
698dcdb6
VZ
15398 echo $ac_n "(cached) $ac_c" 1>&6
15399else
4f14bcd8
GD
15400 ac_save_LIBS="$LIBS"
15401LIBS="-lmsvcrt $LIBS"
15402cat > conftest.$ac_ext <<EOF
e95edd8d 15403#line 15404 "configure"
95c8801c 15404#include "confdefs.h"
4f14bcd8
GD
15405/* Override any gcc2 internal prototype to avoid an error. */
15406/* We use char because int might match the return type of a gcc2
15407 builtin and then its argument prototype would still apply. */
15408char wcslen();
95c8801c 15409
4f14bcd8
GD
15410int main() {
15411wcslen()
698dcdb6
VZ
15412; return 0; }
15413EOF
e95edd8d 15414if { (eval echo configure:15415: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6 15415 rm -rf conftest*
4f14bcd8 15416 eval "ac_cv_lib_$ac_lib_var=yes"
95c8801c 15417else
698dcdb6
VZ
15418 echo "configure: failed program was:" >&5
15419 cat conftest.$ac_ext >&5
15420 rm -rf conftest*
4f14bcd8 15421 eval "ac_cv_lib_$ac_lib_var=no"
95c8801c 15422fi
698dcdb6 15423rm -f conftest*
4f14bcd8 15424LIBS="$ac_save_LIBS"
95c8801c
VS
15425
15426fi
4f14bcd8
GD
15427if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15428 echo "$ac_t""yes" 1>&6
15429
15430 cat >> confdefs.h <<\EOF
15431#define HAVE_WCSLEN 1
15432EOF
698dcdb6 15433
3d63bc3a 15434 WCHAR_LINK=
4f14bcd8
GD
15435
15436else
15437 echo "$ac_t""no" 1>&6
15438fi
10f2d63a 15439
4f14bcd8
GD
15440
15441fi
95c8801c 15442
4f14bcd8 15443
95c8801c 15444fi
10f2d63a 15445
1e487827 15446
4f14bcd8 15447for ac_func in wcsrtombs
eb4efbdc 15448do
698dcdb6 15449echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
e95edd8d 15450echo "configure:15451: checking for $ac_func" >&5
698dcdb6
VZ
15451if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15452 echo $ac_n "(cached) $ac_c" 1>&6
15453else
15454 cat > conftest.$ac_ext <<EOF
e95edd8d 15455#line 15456 "configure"
eb4efbdc
VZ
15456#include "confdefs.h"
15457/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 15458 which can conflict with char $ac_func(); below. */
eb4efbdc
VZ
15459#include <assert.h>
15460/* Override any gcc2 internal prototype to avoid an error. */
15461/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
15462 builtin and then its argument prototype would still apply. */
15463char $ac_func();
15464
15465int main() {
eb4efbdc
VZ
15466
15467/* The GNU C library defines this for functions which it implements
15468 to always fail with ENOSYS. Some functions are actually named
15469 something starting with __ and the normal name is an alias. */
15470#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15471choke me
15472#else
698dcdb6 15473$ac_func();
eb4efbdc
VZ
15474#endif
15475
698dcdb6 15476; return 0; }
eb4efbdc 15477EOF
e95edd8d 15478if { (eval echo configure:15479: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
15479 rm -rf conftest*
15480 eval "ac_cv_func_$ac_func=yes"
15481else
15482 echo "configure: failed program was:" >&5
15483 cat conftest.$ac_ext >&5
15484 rm -rf conftest*
15485 eval "ac_cv_func_$ac_func=no"
15486fi
15487rm -f conftest*
15488fi
eb4efbdc 15489
698dcdb6
VZ
15490if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15491 echo "$ac_t""yes" 1>&6
15492 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15493 cat >> confdefs.h <<EOF
15494#define $ac_tr_func 1
15495EOF
15496
15497else
15498 echo "$ac_t""no" 1>&6
eb4efbdc
VZ
15499fi
15500done
15501
698dcdb6 15502
4f14bcd8 15503echo $ac_n "checking for vprintf""... $ac_c" 1>&6
e95edd8d 15504echo "configure:15505: checking for vprintf" >&5
4f14bcd8 15505if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
698dcdb6
VZ
15506 echo $ac_n "(cached) $ac_c" 1>&6
15507else
4f14bcd8 15508 cat > conftest.$ac_ext <<EOF
e95edd8d 15509#line 15510 "configure"
f6bcfd97 15510#include "confdefs.h"
4f14bcd8
GD
15511/* System header to define __stub macros and hopefully few prototypes,
15512 which can conflict with char vprintf(); below. */
15513#include <assert.h>
15514/* Override any gcc2 internal prototype to avoid an error. */
15515/* We use char because int might match the return type of a gcc2
15516 builtin and then its argument prototype would still apply. */
15517char vprintf();
15518
698dcdb6 15519int main() {
f6bcfd97 15520
4f14bcd8
GD
15521/* The GNU C library defines this for functions which it implements
15522 to always fail with ENOSYS. Some functions are actually named
15523 something starting with __ and the normal name is an alias. */
15524#if defined (__stub_vprintf) || defined (__stub___vprintf)
15525choke me
15526#else
15527vprintf();
15528#endif
f6bcfd97 15529
698dcdb6
VZ
15530; return 0; }
15531EOF
e95edd8d 15532if { (eval echo configure:15533: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6 15533 rm -rf conftest*
4f14bcd8 15534 eval "ac_cv_func_vprintf=yes"
f6bcfd97 15535else
698dcdb6
VZ
15536 echo "configure: failed program was:" >&5
15537 cat conftest.$ac_ext >&5
15538 rm -rf conftest*
4f14bcd8 15539 eval "ac_cv_func_vprintf=no"
6232543b 15540fi
698dcdb6 15541rm -f conftest*
1e487827 15542fi
698dcdb6 15543
4f14bcd8
GD
15544if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
15545 echo "$ac_t""yes" 1>&6
15546 cat >> confdefs.h <<\EOF
15547#define HAVE_VPRINTF 1
f6bcfd97
BP
15548EOF
15549
4f14bcd8
GD
15550else
15551 echo "$ac_t""no" 1>&6
eb4efbdc
VZ
15552fi
15553
4f14bcd8
GD
15554if test "$ac_cv_func_vprintf" != yes; then
15555echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
e95edd8d 15556echo "configure:15557: checking for _doprnt" >&5
4f14bcd8 15557if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
698dcdb6
VZ
15558 echo $ac_n "(cached) $ac_c" 1>&6
15559else
15560 cat > conftest.$ac_ext <<EOF
e95edd8d 15561#line 15562 "configure"
10f2d63a
VZ
15562#include "confdefs.h"
15563/* System header to define __stub macros and hopefully few prototypes,
4f14bcd8 15564 which can conflict with char _doprnt(); below. */
10f2d63a
VZ
15565#include <assert.h>
15566/* Override any gcc2 internal prototype to avoid an error. */
15567/* We use char because int might match the return type of a gcc2
698dcdb6 15568 builtin and then its argument prototype would still apply. */
4f14bcd8 15569char _doprnt();
698dcdb6
VZ
15570
15571int main() {
10f2d63a
VZ
15572
15573/* The GNU C library defines this for functions which it implements
15574 to always fail with ENOSYS. Some functions are actually named
15575 something starting with __ and the normal name is an alias. */
4f14bcd8 15576#if defined (__stub__doprnt) || defined (__stub____doprnt)
10f2d63a
VZ
15577choke me
15578#else
4f14bcd8 15579_doprnt();
10f2d63a
VZ
15580#endif
15581
698dcdb6 15582; return 0; }
10f2d63a 15583EOF
e95edd8d 15584if { (eval echo configure:15585: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6 15585 rm -rf conftest*
4f14bcd8 15586 eval "ac_cv_func__doprnt=yes"
698dcdb6
VZ
15587else
15588 echo "configure: failed program was:" >&5
15589 cat conftest.$ac_ext >&5
15590 rm -rf conftest*
4f14bcd8 15591 eval "ac_cv_func__doprnt=no"
698dcdb6
VZ
15592fi
15593rm -f conftest*
15594fi
270a909e 15595
4f14bcd8 15596if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
698dcdb6 15597 echo "$ac_t""yes" 1>&6
4f14bcd8
GD
15598 cat >> confdefs.h <<\EOF
15599#define HAVE_DOPRNT 1
698dcdb6 15600EOF
4f14bcd8 15601
698dcdb6
VZ
15602else
15603 echo "$ac_t""no" 1>&6
270a909e 15604fi
270a909e 15605
4f14bcd8 15606fi
1e487827 15607
52e8b690 15608
52e8b690 15609
52e8b690 15610
52e8b690 15611
52e8b690 15612
4f14bcd8 15613echo $ac_n "checking for vsnprintf""... $ac_c" 1>&6
e95edd8d 15614echo "configure:15615: checking for vsnprintf" >&5
4f14bcd8 15615if eval "test \"`echo '$''{'wx_cv_func_vsnprintf'+set}'`\" = set"; then
698dcdb6 15616 echo $ac_n "(cached) $ac_c" 1>&6
c63c7106 15617else
4f14bcd8 15618
af15babd 15619 cat > conftest.$ac_ext <<EOF
e95edd8d 15620#line 15621 "configure"
c63c7106 15621#include "confdefs.h"
698dcdb6 15622
4f14bcd8
GD
15623 #include <stdio.h>
15624 #include <stdarg.h>
15625
af15babd
VZ
15626int main() {
15627
4f14bcd8
GD
15628 int wx_test_vsnprintf(const char *, ...);
15629
15630 wx_test_vsnprintf("%s");
15631 return 0;
15632 }
15633
15634 int wx_test_vsnprintf(const char *fmt, ...)
15635 {
15636 char *s;
15637
15638 va_list argp;
15639 va_start(argp, fmt);
15640 vsnprintf(s, 42, fmt, argp);
15641 va_end(argp);
15642
af15babd
VZ
15643; return 0; }
15644EOF
e95edd8d 15645if { (eval echo configure:15646: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
af15babd
VZ
15646 rm -rf conftest*
15647
4f14bcd8
GD
15648 wx_cv_func_vsnprintf=yes
15649
af15babd
VZ
15650else
15651 echo "configure: failed program was:" >&5
15652 cat conftest.$ac_ext >&5
15653 rm -rf conftest*
15654
4f14bcd8 15655 cat > conftest.$ac_ext <<EOF
e95edd8d 15656#line 15657 "configure"
af15babd 15657#include "confdefs.h"
af15babd 15658
4f14bcd8
GD
15659 #include <stdio.h>
15660 #include <stdarg.h>
15661
af15babd
VZ
15662int main() {
15663
4f14bcd8
GD
15664 int wx_test_vsnprintf(const char *, ...);
15665
15666 wx_test_vsnprintf("%s");
15667 return 0;
15668 }
15669
15670 int wx_test_vsnprintf(const char *fmt, ...)
15671 {
15672 char *s;
af15babd 15673
4f14bcd8
GD
15674 va_list argp;
15675 va_start(argp, fmt);
15676 _vsnprintf(s, 42, fmt, argp);
15677 va_end(argp);
15678
af15babd
VZ
15679; return 0; }
15680EOF
e95edd8d 15681if { (eval echo configure:15682: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
af15babd 15682 rm -rf conftest*
4f14bcd8
GD
15683
15684 wx_cv_func_vsnprintf=yes
15685
af15babd
VZ
15686else
15687 echo "configure: failed program was:" >&5
15688 cat conftest.$ac_ext >&5
15689 rm -rf conftest*
4f14bcd8
GD
15690
15691 wx_cv_func_vsnprintf=no
15692
af15babd
VZ
15693fi
15694rm -f conftest*
4f14bcd8 15695
af15babd 15696fi
4f14bcd8 15697rm -f conftest*
af15babd 15698
af15babd 15699fi
af15babd 15700
4f14bcd8 15701echo "$ac_t""$wx_cv_func_vsnprintf" 1>&6
af15babd 15702
4f14bcd8
GD
15703if test "$wx_cv_func_vsnprintf" = yes; then
15704 cat >> confdefs.h <<\EOF
15705#define HAVE_VSNPRINTF 1
15706EOF
15707
15708else
f9bc1684 15709 echo "configure: warning: unsafe function vsprintf will be used instead of vsnprintf" 1>&2
af15babd
VZ
15710fi
15711
4f14bcd8 15712echo $ac_n "checking for vsscanf""... $ac_c" 1>&6
e95edd8d 15713echo "configure:15714: checking for vsscanf" >&5
4f14bcd8 15714if eval "test \"`echo '$''{'wx_cv_func_vsscanf'+set}'`\" = set"; then
af15babd
VZ
15715 echo $ac_n "(cached) $ac_c" 1>&6
15716else
4f14bcd8 15717
af15babd 15718 cat > conftest.$ac_ext <<EOF
e95edd8d 15719#line 15720 "configure"
af15babd 15720#include "confdefs.h"
af15babd 15721
4f14bcd8
GD
15722 #include <stdio.h>
15723 #include <stdarg.h>
15724
af15babd
VZ
15725int main() {
15726
4f14bcd8
GD
15727 int wx_test_vsscanf(const char *, ...);
15728
15729 wx_test_vsscanf("%d");
15730 return 0;
15731 }
af15babd 15732
4f14bcd8
GD
15733 int wx_test_vsscanf(const char *fmt, ...)
15734 {
15735 va_list argp;
15736 va_start(argp, fmt);
15737 vsscanf("42", fmt, argp);
15738 va_end(argp);
15739
af15babd
VZ
15740; return 0; }
15741EOF
e95edd8d 15742if { (eval echo configure:15743: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
af15babd 15743 rm -rf conftest*
4f14bcd8
GD
15744
15745 wx_cv_func_vsscanf=yes
15746
af15babd
VZ
15747else
15748 echo "configure: failed program was:" >&5
15749 cat conftest.$ac_ext >&5
15750 rm -rf conftest*
4f14bcd8
GD
15751
15752 wx_cv_func_vsscanf=no
15753
af15babd
VZ
15754fi
15755rm -f conftest*
4f14bcd8 15756
af15babd
VZ
15757fi
15758
4f14bcd8
GD
15759echo "$ac_t""$wx_cv_func_vsscanf" 1>&6
15760
15761if test "$wx_cv_func_vsscanf" = yes; then
15762 cat >> confdefs.h <<\EOF
15763#define HAVE_VSSCANF 1
af15babd 15764EOF
4f14bcd8 15765
af15babd 15766fi
af15babd 15767
4f14bcd8 15768if test "$TOOLKIT" != "MSW"; then
af15babd 15769
4f14bcd8
GD
15770
15771
15772ac_ext=C
15773# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15774ac_cpp='$CXXCPP $CPPFLAGS'
15775ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15776ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15777cross_compiling=$ac_cv_prog_cxx_cross
15778
b040e242
VS
15779
15780
15781 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
15782if test "${with_libiconv_prefix+set}" = set; then
15783 withval="$with_libiconv_prefix"
15784
15785 for dir in `echo "$withval" | tr : ' '`; do
15786 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
15787 if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
15788 done
15789
15790fi
15791
15792
15793 echo $ac_n "checking for iconv""... $ac_c" 1>&6
e95edd8d 15794echo "configure:15795: checking for iconv" >&5
b040e242 15795if eval "test \"`echo '$''{'am_cv_func_iconv'+set}'`\" = set"; then
af15babd
VZ
15796 echo $ac_n "(cached) $ac_c" 1>&6
15797else
4f14bcd8 15798
b040e242
VS
15799 am_cv_func_iconv="no, consider installing GNU libiconv"
15800 am_cv_lib_iconv=no
4f14bcd8 15801 cat > conftest.$ac_ext <<EOF
e95edd8d 15802#line 15803 "configure"
af15babd 15803#include "confdefs.h"
b040e242 15804#include <stdlib.h>
4f14bcd8 15805#include <iconv.h>
af15babd 15806int main() {
b040e242
VS
15807iconv_t cd = iconv_open("","");
15808 iconv(cd,NULL,NULL,NULL,NULL);
15809 iconv_close(cd);
af15babd
VZ
15810; return 0; }
15811EOF
e95edd8d 15812if { (eval echo configure:15813: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
af15babd 15813 rm -rf conftest*
b040e242 15814 am_cv_func_iconv=yes
af15babd
VZ
15815else
15816 echo "configure: failed program was:" >&5
15817 cat conftest.$ac_ext >&5
b040e242
VS
15818fi
15819rm -f conftest*
15820 if test "$am_cv_func_iconv" != yes; then
15821 am_save_LIBS="$LIBS"
15822 LIBS="$LIBS -liconv"
15823 cat > conftest.$ac_ext <<EOF
e95edd8d 15824#line 15825 "configure"
b040e242
VS
15825#include "confdefs.h"
15826#include <stdlib.h>
15827#include <iconv.h>
15828int main() {
15829iconv_t cd = iconv_open("","");
15830 iconv(cd,NULL,NULL,NULL,NULL);
15831 iconv_close(cd);
15832; return 0; }
15833EOF
e95edd8d 15834if { (eval echo configure:15835: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
af15babd 15835 rm -rf conftest*
b040e242
VS
15836 am_cv_lib_iconv=yes
15837 am_cv_func_iconv=yes
15838else
15839 echo "configure: failed program was:" >&5
15840 cat conftest.$ac_ext >&5
af15babd
VZ
15841fi
15842rm -f conftest*
b040e242
VS
15843 LIBS="$am_save_LIBS"
15844 fi
15845
15846fi
15847
15848echo "$ac_t""$am_cv_func_iconv" 1>&6
15849 if test "$am_cv_func_iconv" = yes; then
15850 cat >> confdefs.h <<\EOF
15851#define HAVE_ICONV 1
15852EOF
15853
b7043674 15854 echo $ac_n "checking if iconv needs const""... $ac_c" 1>&6
e95edd8d 15855echo "configure:15856: checking if iconv needs const" >&5
b7043674 15856if eval "test \"`echo '$''{'wx_cv_func_iconv_const'+set}'`\" = set"; then
b040e242
VS
15857 echo $ac_n "(cached) $ac_c" 1>&6
15858else
b7043674 15859 cat > conftest.$ac_ext <<EOF
e95edd8d 15860#line 15861 "configure"
b040e242
VS
15861#include "confdefs.h"
15862
15863#include <stdlib.h>
15864#include <iconv.h>
15865extern
15866#ifdef __cplusplus
15867"C"
15868#endif
15869#if defined(__STDC__) || defined(__cplusplus)
15870size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
15871#else
15872size_t iconv();
15873#endif
b7043674 15874
b040e242 15875int main() {
af15babd 15876
b040e242
VS
15877; return 0; }
15878EOF
e95edd8d 15879if { (eval echo configure:15880: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
b040e242 15880 rm -rf conftest*
b7043674 15881 wx_cv_func_iconv_const="no"
b040e242
VS
15882else
15883 echo "configure: failed program was:" >&5
15884 cat conftest.$ac_ext >&5
15885 rm -rf conftest*
b7043674
VZ
15886 wx_cv_func_iconv_const="yes"
15887
b040e242
VS
15888fi
15889rm -f conftest*
b7043674 15890
af15babd 15891fi
af15babd 15892
b7043674
VZ
15893echo "$ac_t""$wx_cv_func_iconv_const" 1>&6
15894
15895 iconv_const=
1c405bb5 15896 if test "x$wx_cv_func_iconv_const" = "xyes"; then
b7043674
VZ
15897 iconv_const="const"
15898 fi
15899
b040e242 15900 cat >> confdefs.h <<EOF
b7043674 15901#define ICONV_CONST $iconv_const
b040e242
VS
15902EOF
15903
15904 fi
15905 LIBICONV=
15906 if test "$am_cv_lib_iconv" = yes; then
15907 LIBICONV="-liconv"
15908 fi
15909
15910
15911LIBS="$LIBICONV $LIBS"
4f14bcd8
GD
15912ac_ext=c
15913# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15914ac_cpp='$CPP $CPPFLAGS'
15915ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15916ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15917cross_compiling=$ac_cv_prog_cc_cross
af15babd 15918
af15babd 15919
4f14bcd8
GD
15920if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then
15921 for ac_func in sigaction
af15babd
VZ
15922do
15923echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
e95edd8d 15924echo "configure:15925: checking for $ac_func" >&5
af15babd
VZ
15925if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15926 echo $ac_n "(cached) $ac_c" 1>&6
15927else
15928 cat > conftest.$ac_ext <<EOF
e95edd8d 15929#line 15930 "configure"
af15babd
VZ
15930#include "confdefs.h"
15931/* System header to define __stub macros and hopefully few prototypes,
15932 which can conflict with char $ac_func(); below. */
15933#include <assert.h>
15934/* Override any gcc2 internal prototype to avoid an error. */
15935/* We use char because int might match the return type of a gcc2
15936 builtin and then its argument prototype would still apply. */
15937char $ac_func();
15938
15939int main() {
15940
15941/* The GNU C library defines this for functions which it implements
15942 to always fail with ENOSYS. Some functions are actually named
15943 something starting with __ and the normal name is an alias. */
15944#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15945choke me
15946#else
15947$ac_func();
15948#endif
15949
15950; return 0; }
15951EOF
e95edd8d 15952if { (eval echo configure:15953: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
af15babd
VZ
15953 rm -rf conftest*
15954 eval "ac_cv_func_$ac_func=yes"
15955else
15956 echo "configure: failed program was:" >&5
15957 cat conftest.$ac_ext >&5
15958 rm -rf conftest*
15959 eval "ac_cv_func_$ac_func=no"
15960fi
15961rm -f conftest*
15962fi
15963
15964if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15965 echo "$ac_t""yes" 1>&6
15966 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15967 cat >> confdefs.h <<EOF
15968#define $ac_tr_func 1
15969EOF
4f14bcd8 15970
af15babd
VZ
15971else
15972 echo "$ac_t""no" 1>&6
4f14bcd8
GD
15973fi
15974done
15975
15976
15977 if test "$ac_cv_func_sigaction" = "no"; then
15978 echo "configure: warning: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" 1>&2
15979 wxUSE_ON_FATAL_EXCEPTION=no
15980 fi
15981
15982 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
15983
15984 ac_ext=C
15985# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15986ac_cpp='$CXXCPP $CPPFLAGS'
15987ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15988ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15989cross_compiling=$ac_cv_prog_cxx_cross
15990
15991
15992 echo $ac_n "checking for sa_handler type""... $ac_c" 1>&6
e95edd8d 15993echo "configure:15994: checking for sa_handler type" >&5
4f14bcd8 15994if eval "test \"`echo '$''{'wx_cv_type_sa_handler'+set}'`\" = set"; then
af15babd
VZ
15995 echo $ac_n "(cached) $ac_c" 1>&6
15996else
4f14bcd8
GD
15997
15998 cat > conftest.$ac_ext <<EOF
e95edd8d 15999#line 16000 "configure"
af15babd 16000#include "confdefs.h"
4f14bcd8 16001#include <signal.h>
af15babd 16002int main() {
4f14bcd8
GD
16003
16004 extern void testSigHandler(int);
16005
16006 struct sigaction sa;
16007 sa.sa_handler = testSigHandler;
16008
af15babd
VZ
16009; return 0; }
16010EOF
e95edd8d 16011if { (eval echo configure:16012: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
af15babd 16012 rm -rf conftest*
4f14bcd8
GD
16013
16014 wx_cv_type_sa_handler=int
16015
af15babd
VZ
16016else
16017 echo "configure: failed program was:" >&5
16018 cat conftest.$ac_ext >&5
16019 rm -rf conftest*
4f14bcd8
GD
16020
16021 wx_cv_type_sa_handler=void
16022
af15babd
VZ
16023fi
16024rm -f conftest*
4f14bcd8
GD
16025
16026fi
16027
16028echo "$ac_t""$wx_cv_type_sa_handler" 1>&6
16029
16030 ac_ext=c
16031# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16032ac_cpp='$CPP $CPPFLAGS'
16033ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16034ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16035cross_compiling=$ac_cv_prog_cc_cross
af15babd 16036
4f14bcd8
GD
16037
16038 cat >> confdefs.h <<EOF
16039#define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler
af15babd
VZ
16040EOF
16041
4f14bcd8
GD
16042 fi
16043fi
af15babd 16044
4f14bcd8 16045for ac_func in vfork
af15babd
VZ
16046do
16047echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
e95edd8d 16048echo "configure:16049: checking for $ac_func" >&5
af15babd
VZ
16049if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16050 echo $ac_n "(cached) $ac_c" 1>&6
16051else
16052 cat > conftest.$ac_ext <<EOF
e95edd8d 16053#line 16054 "configure"
af15babd
VZ
16054#include "confdefs.h"
16055/* System header to define __stub macros and hopefully few prototypes,
16056 which can conflict with char $ac_func(); below. */
16057#include <assert.h>
16058/* Override any gcc2 internal prototype to avoid an error. */
16059/* We use char because int might match the return type of a gcc2
16060 builtin and then its argument prototype would still apply. */
16061char $ac_func();
16062
16063int main() {
16064
16065/* The GNU C library defines this for functions which it implements
16066 to always fail with ENOSYS. Some functions are actually named
16067 something starting with __ and the normal name is an alias. */
16068#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16069choke me
16070#else
16071$ac_func();
16072#endif
16073
16074; return 0; }
16075EOF
e95edd8d 16076if { (eval echo configure:16077: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
af15babd
VZ
16077 rm -rf conftest*
16078 eval "ac_cv_func_$ac_func=yes"
16079else
16080 echo "configure: failed program was:" >&5
16081 cat conftest.$ac_ext >&5
16082 rm -rf conftest*
16083 eval "ac_cv_func_$ac_func=no"
16084fi
16085rm -f conftest*
16086fi
16087
16088if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16089 echo "$ac_t""yes" 1>&6
16090 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16091 cat >> confdefs.h <<EOF
16092#define $ac_tr_func 1
16093EOF
4f14bcd8 16094
af15babd
VZ
16095else
16096 echo "$ac_t""no" 1>&6
af15babd
VZ
16097fi
16098done
16099
af15babd 16100
ade35f11
VZ
16101for ac_func in mkstemp mktemp
16102do
16103echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
e95edd8d 16104echo "configure:16105: checking for $ac_func" >&5
ade35f11
VZ
16105if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16106 echo $ac_n "(cached) $ac_c" 1>&6
16107else
16108 cat > conftest.$ac_ext <<EOF
e95edd8d 16109#line 16110 "configure"
ade35f11
VZ
16110#include "confdefs.h"
16111/* System header to define __stub macros and hopefully few prototypes,
16112 which can conflict with char $ac_func(); below. */
16113#include <assert.h>
16114/* Override any gcc2 internal prototype to avoid an error. */
16115/* We use char because int might match the return type of a gcc2
16116 builtin and then its argument prototype would still apply. */
16117char $ac_func();
16118
16119int main() {
16120
16121/* The GNU C library defines this for functions which it implements
16122 to always fail with ENOSYS. Some functions are actually named
16123 something starting with __ and the normal name is an alias. */
16124#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16125choke me
16126#else
16127$ac_func();
16128#endif
16129
16130; return 0; }
16131EOF
e95edd8d 16132if { (eval echo configure:16133: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ade35f11
VZ
16133 rm -rf conftest*
16134 eval "ac_cv_func_$ac_func=yes"
16135else
16136 echo "configure: failed program was:" >&5
16137 cat conftest.$ac_ext >&5
16138 rm -rf conftest*
16139 eval "ac_cv_func_$ac_func=no"
16140fi
16141rm -f conftest*
16142fi
16143
16144if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16145 echo "$ac_t""yes" 1>&6
16146 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16147 cat >> confdefs.h <<EOF
16148#define $ac_tr_func 1
16149EOF
16150 break
16151else
16152 echo "$ac_t""no" 1>&6
16153fi
16154done
16155
16156
4f14bcd8 16157echo $ac_n "checking for statfs""... $ac_c" 1>&6
e95edd8d 16158echo "configure:16159: checking for statfs" >&5
4f14bcd8
GD
16159if eval "test \"`echo '$''{'wx_cv_func_statfs'+set}'`\" = set"; then
16160 echo $ac_n "(cached) $ac_c" 1>&6
16161else
16162 cat > conftest.$ac_ext <<EOF
e95edd8d 16163#line 16164 "configure"
4f14bcd8
GD
16164#include "confdefs.h"
16165
16166 #if defined(__BSD__)
16167 #include <sys/param.h>
16168 #include <sys/mount.h>
16169 #else
16170 #include <sys/vfs.h>
16171 #endif
16172
16173int main() {
16174
16175 long l;
16176 struct statfs fs;
16177 statfs("/", &fs);
16178 l = fs.f_bsize;
16179 l += fs.f_blocks;
16180 l += fs.f_bavail;
16181
16182; return 0; }
16183EOF
e95edd8d 16184if { (eval echo configure:16185: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4f14bcd8
GD
16185 rm -rf conftest*
16186
16187 wx_cv_func_statfs=yes
16188
16189else
16190 echo "configure: failed program was:" >&5
16191 cat conftest.$ac_ext >&5
16192 rm -rf conftest*
16193
16194 wx_cv_func_statfs=no
af15babd
VZ
16195
16196
16197fi
4f14bcd8 16198rm -f conftest*
af15babd
VZ
16199
16200fi
16201
4f14bcd8
GD
16202echo "$ac_t""$wx_cv_func_statfs" 1>&6
16203
16204if test "$wx_cv_func_statfs" = "yes"; then
16205 cat >> confdefs.h <<\EOF
16206#define HAVE_STATFS 1
16207EOF
16208
16209else
16210 echo $ac_n "checking for statvfs""... $ac_c" 1>&6
e95edd8d 16211echo "configure:16212: checking for statvfs" >&5
4f14bcd8 16212if eval "test \"`echo '$''{'wx_cv_func_statvfs'+set}'`\" = set"; then
af15babd
VZ
16213 echo $ac_n "(cached) $ac_c" 1>&6
16214else
16215 cat > conftest.$ac_ext <<EOF
e95edd8d 16216#line 16217 "configure"
af15babd 16217#include "confdefs.h"
af15babd 16218
4f14bcd8
GD
16219 #include <sys/statvfs.h>
16220
af15babd
VZ
16221int main() {
16222
4f14bcd8
GD
16223 long l;
16224 struct statvfs fs;
16225 statvfs("/", &fs);
16226 l = fs.f_bsize;
16227 l += fs.f_blocks;
16228 l += fs.f_bavail;
16229
af15babd
VZ
16230; return 0; }
16231EOF
e95edd8d 16232if { (eval echo configure:16233: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
af15babd 16233 rm -rf conftest*
4f14bcd8
GD
16234
16235 wx_cv_func_statvfs=yes
16236
af15babd
VZ
16237else
16238 echo "configure: failed program was:" >&5
16239 cat conftest.$ac_ext >&5
16240 rm -rf conftest*
4f14bcd8
GD
16241
16242 wx_cv_func_statvfs=no
16243
16244
af15babd
VZ
16245fi
16246rm -f conftest*
4f14bcd8 16247
af15babd
VZ
16248fi
16249
4f14bcd8 16250echo "$ac_t""$wx_cv_func_statvfs" 1>&6
af15babd 16251
4f14bcd8
GD
16252 if test "$wx_cv_func_statvfs" = "yes"; then
16253 cat >> confdefs.h <<\EOF
16254#define HAVE_STATVFS 1
16255EOF
af15babd 16256
4f14bcd8
GD
16257 else
16258 echo "configure: warning: wxGetDiskSpace() function won't work without statfs()" 1>&2
16259 fi
16260fi
af15babd 16261
4f14bcd8
GD
16262if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
16263 for ac_func in fcntl flock
af15babd
VZ
16264do
16265echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
e95edd8d 16266echo "configure:16267: checking for $ac_func" >&5
af15babd
VZ
16267if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16268 echo $ac_n "(cached) $ac_c" 1>&6
16269else
16270 cat > conftest.$ac_ext <<EOF
e95edd8d 16271#line 16272 "configure"
af15babd
VZ
16272#include "confdefs.h"
16273/* System header to define __stub macros and hopefully few prototypes,
16274 which can conflict with char $ac_func(); below. */
16275#include <assert.h>
16276/* Override any gcc2 internal prototype to avoid an error. */
af15babd
VZ
16277/* We use char because int might match the return type of a gcc2
16278 builtin and then its argument prototype would still apply. */
16279char $ac_func();
16280
16281int main() {
16282
16283/* The GNU C library defines this for functions which it implements
16284 to always fail with ENOSYS. Some functions are actually named
16285 something starting with __ and the normal name is an alias. */
16286#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16287choke me
16288#else
16289$ac_func();
16290#endif
16291
16292; return 0; }
16293EOF
e95edd8d 16294if { (eval echo configure:16295: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
af15babd
VZ
16295 rm -rf conftest*
16296 eval "ac_cv_func_$ac_func=yes"
16297else
16298 echo "configure: failed program was:" >&5
16299 cat conftest.$ac_ext >&5
16300 rm -rf conftest*
16301 eval "ac_cv_func_$ac_func=no"
16302fi
16303rm -f conftest*
16304fi
16305
16306if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16307 echo "$ac_t""yes" 1>&6
16308 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16309 cat >> confdefs.h <<EOF
16310#define $ac_tr_func 1
16311EOF
4f14bcd8 16312 break
af15babd
VZ
16313else
16314 echo "$ac_t""no" 1>&6
16315fi
16316done
16317
16318
4f14bcd8
GD
16319 if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then
16320 echo "configure: warning: wxSingleInstanceChecker not available" 1>&2
16321 wxUSE_SNGLINST_CHECKER=no
16322 fi
16323fi
af15babd 16324
4f14bcd8 16325for ac_func in timegm
af15babd
VZ
16326do
16327echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
e95edd8d 16328echo "configure:16329: checking for $ac_func" >&5
af15babd
VZ
16329if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16330 echo $ac_n "(cached) $ac_c" 1>&6
16331else
16332 cat > conftest.$ac_ext <<EOF
e95edd8d 16333#line 16334 "configure"
af15babd
VZ
16334#include "confdefs.h"
16335/* System header to define __stub macros and hopefully few prototypes,
16336 which can conflict with char $ac_func(); below. */
16337#include <assert.h>
16338/* Override any gcc2 internal prototype to avoid an error. */
16339/* We use char because int might match the return type of a gcc2
16340 builtin and then its argument prototype would still apply. */
16341char $ac_func();
16342
698dcdb6 16343int main() {
698dcdb6 16344
af15babd
VZ
16345/* The GNU C library defines this for functions which it implements
16346 to always fail with ENOSYS. Some functions are actually named
16347 something starting with __ and the normal name is an alias. */
16348#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16349choke me
16350#else
16351$ac_func();
16352#endif
16353
698dcdb6
VZ
16354; return 0; }
16355EOF
e95edd8d 16356if { (eval echo configure:16357: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6 16357 rm -rf conftest*
af15babd 16358 eval "ac_cv_func_$ac_func=yes"
698dcdb6
VZ
16359else
16360 echo "configure: failed program was:" >&5
16361 cat conftest.$ac_ext >&5
16362 rm -rf conftest*
af15babd 16363 eval "ac_cv_func_$ac_func=no"
1e487827 16364fi
9952adac 16365rm -f conftest*
af15babd 16366fi
703e0a69 16367
af15babd
VZ
16368if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16369 echo "$ac_t""yes" 1>&6
16370 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4f14bcd8
GD
16371 cat >> confdefs.h <<EOF
16372#define $ac_tr_func 1
16373EOF
16374
16375else
16376 echo "$ac_t""no" 1>&6
af15babd
VZ
16377fi
16378done
16379
16380
4f14bcd8 16381for ac_func in putenv setenv
10f2d63a 16382do
698dcdb6 16383echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
e95edd8d 16384echo "configure:16385: checking for $ac_func" >&5
698dcdb6
VZ
16385if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16386 echo $ac_n "(cached) $ac_c" 1>&6
16387else
16388 cat > conftest.$ac_ext <<EOF
e95edd8d 16389#line 16390 "configure"
af15babd
VZ
16390#include "confdefs.h"
16391/* System header to define __stub macros and hopefully few prototypes,
16392 which can conflict with char $ac_func(); below. */
16393#include <assert.h>
16394/* Override any gcc2 internal prototype to avoid an error. */
16395/* We use char because int might match the return type of a gcc2
16396 builtin and then its argument prototype would still apply. */
16397char $ac_func();
16398
16399int main() {
16400
16401/* The GNU C library defines this for functions which it implements
16402 to always fail with ENOSYS. Some functions are actually named
16403 something starting with __ and the normal name is an alias. */
16404#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16405choke me
16406#else
16407$ac_func();
16408#endif
16409
16410; return 0; }
16411EOF
e95edd8d 16412if { (eval echo configure:16413: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
af15babd
VZ
16413 rm -rf conftest*
16414 eval "ac_cv_func_$ac_func=yes"
16415else
16416 echo "configure: failed program was:" >&5
16417 cat conftest.$ac_ext >&5
16418 rm -rf conftest*
16419 eval "ac_cv_func_$ac_func=no"
16420fi
16421rm -f conftest*
16422fi
16423
16424if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16425 echo "$ac_t""yes" 1>&6
16426 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16427 cat >> confdefs.h <<EOF
16428#define $ac_tr_func 1
16429EOF
4f14bcd8 16430 break
af15babd
VZ
16431else
16432 echo "$ac_t""no" 1>&6
16433fi
af15babd
VZ
16434done
16435
16436
4f14bcd8
GD
16437HAVE_SOME_SLEEP_FUNC=0
16438if test "$USE_BEOS" = 1; then
16439 cat >> confdefs.h <<\EOF
16440#define HAVE_SLEEP 1
af15babd
VZ
16441EOF
16442
4f14bcd8 16443 HAVE_SOME_SLEEP_FUNC=1
10f2d63a
VZ
16444fi
16445
4f14bcd8
GD
16446if test "$USE_DARWIN" = 1; then
16447 cat >> confdefs.h <<\EOF
16448#define HAVE_USLEEP 1
af15babd 16449EOF
10f2d63a 16450
4f14bcd8 16451 HAVE_SOME_SLEEP_FUNC=1
10f2d63a
VZ
16452fi
16453
4f14bcd8
GD
16454if test "$HAVE_SOME_SLEEP_FUNC" != 1; then
16455 POSIX4_LINK=
16456 for ac_func in nanosleep
16457do
16458echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
e95edd8d 16459echo "configure:16460: checking for $ac_func" >&5
4f14bcd8 16460if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
698dcdb6 16461 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 16462else
4f14bcd8 16463 cat > conftest.$ac_ext <<EOF
e95edd8d 16464#line 16465 "configure"
10f2d63a 16465#include "confdefs.h"
4f14bcd8
GD
16466/* System header to define __stub macros and hopefully few prototypes,
16467 which can conflict with char $ac_func(); below. */
16468#include <assert.h>
10f2d63a
VZ
16469/* Override any gcc2 internal prototype to avoid an error. */
16470/* We use char because int might match the return type of a gcc2
698dcdb6 16471 builtin and then its argument prototype would still apply. */
4f14bcd8 16472char $ac_func();
698dcdb6
VZ
16473
16474int main() {
4f14bcd8
GD
16475
16476/* The GNU C library defines this for functions which it implements
16477 to always fail with ENOSYS. Some functions are actually named
16478 something starting with __ and the normal name is an alias. */
16479#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16480choke me
16481#else
16482$ac_func();
16483#endif
16484
698dcdb6
VZ
16485; return 0; }
16486EOF
e95edd8d 16487if { (eval echo configure:16488: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6 16488 rm -rf conftest*
4f14bcd8 16489 eval "ac_cv_func_$ac_func=yes"
698dcdb6
VZ
16490else
16491 echo "configure: failed program was:" >&5
16492 cat conftest.$ac_ext >&5
16493 rm -rf conftest*
4f14bcd8 16494 eval "ac_cv_func_$ac_func=no"
698dcdb6
VZ
16495fi
16496rm -f conftest*
698dcdb6 16497fi
4f14bcd8
GD
16498
16499if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
698dcdb6 16500 echo "$ac_t""yes" 1>&6
4f14bcd8
GD
16501 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16502 cat >> confdefs.h <<EOF
16503#define $ac_tr_func 1
16504EOF
16505 cat >> confdefs.h <<\EOF
16506#define HAVE_NANOSLEEP 1
16507EOF
16508
10f2d63a 16509else
698dcdb6 16510 echo "$ac_t""no" 1>&6
4f14bcd8 16511echo $ac_n "checking for nanosleep in -lposix4""... $ac_c" 1>&6
e95edd8d 16512echo "configure:16513: checking for nanosleep in -lposix4" >&5
4f14bcd8 16513ac_lib_var=`echo posix4'_'nanosleep | sed 'y%./+-%__p_%'`
698dcdb6
VZ
16514if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
16515 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 16516else
698dcdb6 16517 ac_save_LIBS="$LIBS"
4f14bcd8 16518LIBS="-lposix4 $LIBS"
698dcdb6 16519cat > conftest.$ac_ext <<EOF
e95edd8d 16520#line 16521 "configure"
10f2d63a
VZ
16521#include "confdefs.h"
16522/* Override any gcc2 internal prototype to avoid an error. */
16523/* We use char because int might match the return type of a gcc2
698dcdb6 16524 builtin and then its argument prototype would still apply. */
4f14bcd8 16525char nanosleep();
698dcdb6
VZ
16526
16527int main() {
4f14bcd8 16528nanosleep()
698dcdb6
VZ
16529; return 0; }
16530EOF
e95edd8d 16531if { (eval echo configure:16532: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
16532 rm -rf conftest*
16533 eval "ac_cv_lib_$ac_lib_var=yes"
16534else
16535 echo "configure: failed program was:" >&5
16536 cat conftest.$ac_ext >&5
16537 rm -rf conftest*
16538 eval "ac_cv_lib_$ac_lib_var=no"
16539fi
16540rm -f conftest*
16541LIBS="$ac_save_LIBS"
10f2d63a 16542
698dcdb6
VZ
16543fi
16544if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
16545 echo "$ac_t""yes" 1>&6
16546
4f14bcd8
GD
16547 cat >> confdefs.h <<\EOF
16548#define HAVE_NANOSLEEP 1
16549EOF
16550
3d63bc3a 16551 POSIX4_LINK=" -lposix4"
4f14bcd8 16552
10f2d63a 16553else
698dcdb6 16554 echo "$ac_t""no" 1>&6
10f2d63a 16555
4f14bcd8
GD
16556 for ac_func in usleep
16557do
16558echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
e95edd8d 16559echo "configure:16560: checking for $ac_func" >&5
4f14bcd8 16560if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
698dcdb6 16561 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 16562else
698dcdb6 16563 cat > conftest.$ac_ext <<EOF
e95edd8d 16564#line 16565 "configure"
10f2d63a 16565#include "confdefs.h"
4f14bcd8
GD
16566/* System header to define __stub macros and hopefully few prototypes,
16567 which can conflict with char $ac_func(); below. */
16568#include <assert.h>
16569/* Override any gcc2 internal prototype to avoid an error. */
16570/* We use char because int might match the return type of a gcc2
16571 builtin and then its argument prototype would still apply. */
16572char $ac_func();
16573
16574int main() {
16575
16576/* The GNU C library defines this for functions which it implements
16577 to always fail with ENOSYS. Some functions are actually named
16578 something starting with __ and the normal name is an alias. */
16579#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16580choke me
16581#else
16582$ac_func();
16583#endif
16584
16585; return 0; }
698dcdb6 16586EOF
e95edd8d 16587if { (eval echo configure:16588: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6 16588 rm -rf conftest*
4f14bcd8 16589 eval "ac_cv_func_$ac_func=yes"
1e487827 16590else
698dcdb6 16591 echo "configure: failed program was:" >&5
10f2d63a 16592 cat conftest.$ac_ext >&5
698dcdb6 16593 rm -rf conftest*
4f14bcd8 16594 eval "ac_cv_func_$ac_func=no"
10f2d63a 16595fi
698dcdb6 16596rm -f conftest*
10f2d63a 16597fi
4f14bcd8
GD
16598
16599if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
698dcdb6 16600 echo "$ac_t""yes" 1>&6
4f14bcd8
GD
16601 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16602 cat >> confdefs.h <<EOF
16603#define $ac_tr_func 1
16604EOF
16605 cat >> confdefs.h <<\EOF
16606#define HAVE_USLEEP 1
16607EOF
16608
698dcdb6
VZ
16609else
16610 echo "$ac_t""no" 1>&6
4f14bcd8
GD
16611echo "configure: warning: wxSleep() function will not work" 1>&2
16612
10f2d63a 16613fi
4f14bcd8 16614done
10f2d63a 16615
4f14bcd8 16616
698dcdb6 16617
6232543b 16618fi
10f2d63a 16619
698dcdb6 16620
4f14bcd8 16621
1e487827 16622fi
4f14bcd8 16623done
703e0a69 16624
10f2d63a
VZ
16625fi
16626
4f14bcd8 16627for ac_func in uname gethostname
70846f0a 16628do
698dcdb6 16629echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
e95edd8d 16630echo "configure:16631: checking for $ac_func" >&5
698dcdb6
VZ
16631if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16632 echo $ac_n "(cached) $ac_c" 1>&6
16633else
16634 cat > conftest.$ac_ext <<EOF
e95edd8d 16635#line 16636 "configure"
70846f0a
VZ
16636#include "confdefs.h"
16637/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 16638 which can conflict with char $ac_func(); below. */
70846f0a
VZ
16639#include <assert.h>
16640/* Override any gcc2 internal prototype to avoid an error. */
16641/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
16642 builtin and then its argument prototype would still apply. */
16643char $ac_func();
16644
16645int main() {
70846f0a
VZ
16646
16647/* The GNU C library defines this for functions which it implements
16648 to always fail with ENOSYS. Some functions are actually named
16649 something starting with __ and the normal name is an alias. */
16650#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16651choke me
16652#else
698dcdb6 16653$ac_func();
70846f0a
VZ
16654#endif
16655
698dcdb6 16656; return 0; }
70846f0a 16657EOF
e95edd8d 16658if { (eval echo configure:16659: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
16659 rm -rf conftest*
16660 eval "ac_cv_func_$ac_func=yes"
16661else
16662 echo "configure: failed program was:" >&5
16663 cat conftest.$ac_ext >&5
16664 rm -rf conftest*
16665 eval "ac_cv_func_$ac_func=no"
16666fi
16667rm -f conftest*
16668fi
70846f0a 16669
698dcdb6
VZ
16670if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16671 echo "$ac_t""yes" 1>&6
16672 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16673 cat >> confdefs.h <<EOF
16674#define $ac_tr_func 1
16675EOF
4f14bcd8 16676 break
698dcdb6
VZ
16677else
16678 echo "$ac_t""no" 1>&6
70846f0a
VZ
16679fi
16680done
16681
698dcdb6 16682
4f14bcd8
GD
16683
16684ac_ext=C
16685# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16686ac_cpp='$CXXCPP $CPPFLAGS'
16687ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16688ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16689cross_compiling=$ac_cv_prog_cxx_cross
16690
16691
16692for ac_func in strtok_r
10f2d63a 16693do
4f14bcd8 16694echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
e95edd8d 16695echo "configure:16696: checking for $ac_func" >&5
4f14bcd8 16696if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
698dcdb6
VZ
16697 echo $ac_n "(cached) $ac_c" 1>&6
16698else
16699 cat > conftest.$ac_ext <<EOF
e95edd8d 16700#line 16701 "configure"
10f2d63a 16701#include "confdefs.h"
4f14bcd8
GD
16702/* System header to define __stub macros and hopefully few prototypes,
16703 which can conflict with char $ac_func(); below. */
16704#include <assert.h>
16705/* Override any gcc2 internal prototype to avoid an error. */
16706#ifdef __cplusplus
16707extern "C"
16708#endif
16709/* We use char because int might match the return type of a gcc2
16710 builtin and then its argument prototype would still apply. */
16711char $ac_func();
16712
16713int main() {
16714
16715/* The GNU C library defines this for functions which it implements
16716 to always fail with ENOSYS. Some functions are actually named
16717 something starting with __ and the normal name is an alias. */
16718#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16719choke me
16720#else
16721$ac_func();
16722#endif
16723
16724; return 0; }
698dcdb6 16725EOF
e95edd8d 16726if { (eval echo configure:16727: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6 16727 rm -rf conftest*
4f14bcd8 16728 eval "ac_cv_func_$ac_func=yes"
1e487827 16729else
698dcdb6 16730 echo "configure: failed program was:" >&5
10f2d63a 16731 cat conftest.$ac_ext >&5
698dcdb6 16732 rm -rf conftest*
4f14bcd8 16733 eval "ac_cv_func_$ac_func=no"
10f2d63a 16734fi
698dcdb6 16735rm -f conftest*
10f2d63a 16736fi
4f14bcd8
GD
16737
16738if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
698dcdb6 16739 echo "$ac_t""yes" 1>&6
4f14bcd8 16740 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
698dcdb6 16741 cat >> confdefs.h <<EOF
4f14bcd8 16742#define $ac_tr_func 1
10f2d63a 16743EOF
698dcdb6
VZ
16744
16745else
16746 echo "$ac_t""no" 1>&6
10f2d63a
VZ
16747fi
16748done
16749
698dcdb6 16750
4f14bcd8
GD
16751ac_ext=c
16752# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16753ac_cpp='$CPP $CPPFLAGS'
16754ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16755ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16756cross_compiling=$ac_cv_prog_cc_cross
16757
16758
16759INET_LINK=
16760for ac_func in inet_addr
16761do
16762echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
e95edd8d 16763echo "configure:16764: checking for $ac_func" >&5
4f14bcd8 16764if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
698dcdb6 16765 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 16766else
4f14bcd8 16767 cat > conftest.$ac_ext <<EOF
e95edd8d 16768#line 16769 "configure"
10f2d63a 16769#include "confdefs.h"
4f14bcd8
GD
16770/* System header to define __stub macros and hopefully few prototypes,
16771 which can conflict with char $ac_func(); below. */
16772#include <assert.h>
10f2d63a
VZ
16773/* Override any gcc2 internal prototype to avoid an error. */
16774/* We use char because int might match the return type of a gcc2
698dcdb6 16775 builtin and then its argument prototype would still apply. */
4f14bcd8 16776char $ac_func();
698dcdb6
VZ
16777
16778int main() {
4f14bcd8
GD
16779
16780/* The GNU C library defines this for functions which it implements
16781 to always fail with ENOSYS. Some functions are actually named
16782 something starting with __ and the normal name is an alias. */
16783#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16784choke me
16785#else
16786$ac_func();
16787#endif
16788
698dcdb6
VZ
16789; return 0; }
16790EOF
e95edd8d 16791if { (eval echo configure:16792: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6 16792 rm -rf conftest*
4f14bcd8 16793 eval "ac_cv_func_$ac_func=yes"
698dcdb6
VZ
16794else
16795 echo "configure: failed program was:" >&5
16796 cat conftest.$ac_ext >&5
16797 rm -rf conftest*
4f14bcd8 16798 eval "ac_cv_func_$ac_func=no"
698dcdb6
VZ
16799fi
16800rm -f conftest*
698dcdb6 16801fi
4f14bcd8
GD
16802
16803if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
698dcdb6 16804 echo "$ac_t""yes" 1>&6
4f14bcd8
GD
16805 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16806 cat >> confdefs.h <<EOF
16807#define $ac_tr_func 1
16808EOF
16809 cat >> confdefs.h <<\EOF
16810#define HAVE_INET_ADDR 1
10f2d63a
VZ
16811EOF
16812
16813else
698dcdb6 16814 echo "$ac_t""no" 1>&6
4f14bcd8 16815echo $ac_n "checking for inet_addr in -lnsl""... $ac_c" 1>&6
e95edd8d 16816echo "configure:16817: checking for inet_addr in -lnsl" >&5
4f14bcd8 16817ac_lib_var=`echo nsl'_'inet_addr | sed 'y%./+-%__p_%'`
698dcdb6
VZ
16818if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
16819 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 16820else
698dcdb6 16821 ac_save_LIBS="$LIBS"
4f14bcd8 16822LIBS="-lnsl $LIBS"
698dcdb6 16823cat > conftest.$ac_ext <<EOF
e95edd8d 16824#line 16825 "configure"
10f2d63a
VZ
16825#include "confdefs.h"
16826/* Override any gcc2 internal prototype to avoid an error. */
16827/* We use char because int might match the return type of a gcc2
698dcdb6 16828 builtin and then its argument prototype would still apply. */
4f14bcd8 16829char inet_addr();
698dcdb6
VZ
16830
16831int main() {
4f14bcd8 16832inet_addr()
698dcdb6
VZ
16833; return 0; }
16834EOF
e95edd8d 16835if { (eval echo configure:16836: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
16836 rm -rf conftest*
16837 eval "ac_cv_lib_$ac_lib_var=yes"
16838else
16839 echo "configure: failed program was:" >&5
16840 cat conftest.$ac_ext >&5
16841 rm -rf conftest*
16842 eval "ac_cv_lib_$ac_lib_var=no"
16843fi
16844rm -f conftest*
16845LIBS="$ac_save_LIBS"
16846
16847fi
16848if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
16849 echo "$ac_t""yes" 1>&6
4f14bcd8 16850 INET_LINK="nsl"
10f2d63a 16851else
698dcdb6 16852 echo "$ac_t""no" 1>&6
4f14bcd8 16853echo $ac_n "checking for inet_addr in -lresolv""... $ac_c" 1>&6
e95edd8d 16854echo "configure:16855: checking for inet_addr in -lresolv" >&5
4f14bcd8 16855ac_lib_var=`echo resolv'_'inet_addr | sed 'y%./+-%__p_%'`
698dcdb6
VZ
16856if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
16857 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 16858else
698dcdb6 16859 ac_save_LIBS="$LIBS"
4f14bcd8 16860LIBS="-lresolv $LIBS"
698dcdb6 16861cat > conftest.$ac_ext <<EOF
e95edd8d 16862#line 16863 "configure"
10f2d63a
VZ
16863#include "confdefs.h"
16864/* Override any gcc2 internal prototype to avoid an error. */
16865/* We use char because int might match the return type of a gcc2
698dcdb6 16866 builtin and then its argument prototype would still apply. */
4f14bcd8 16867char inet_addr();
698dcdb6
VZ
16868
16869int main() {
4f14bcd8 16870inet_addr()
698dcdb6
VZ
16871; return 0; }
16872EOF
e95edd8d 16873if { (eval echo configure:16874: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
16874 rm -rf conftest*
16875 eval "ac_cv_lib_$ac_lib_var=yes"
16876else
16877 echo "configure: failed program was:" >&5
16878 cat conftest.$ac_ext >&5
16879 rm -rf conftest*
16880 eval "ac_cv_lib_$ac_lib_var=no"
16881fi
16882rm -f conftest*
16883LIBS="$ac_save_LIBS"
16884
16885fi
16886if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
16887 echo "$ac_t""yes" 1>&6
4f14bcd8 16888 INET_LINK="resolv"
698dcdb6 16889else
4f14bcd8 16890 echo "$ac_t""no" 1>&6
3c011993 16891echo $ac_n "checking for inet_addr in -lsocket""... $ac_c" 1>&6
e95edd8d 16892echo "configure:16893: checking for inet_addr in -lsocket" >&5
3c011993
VZ
16893ac_lib_var=`echo socket'_'inet_addr | sed 'y%./+-%__p_%'`
16894if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
16895 echo $ac_n "(cached) $ac_c" 1>&6
16896else
16897 ac_save_LIBS="$LIBS"
16898LIBS="-lsocket $LIBS"
16899cat > conftest.$ac_ext <<EOF
e95edd8d 16900#line 16901 "configure"
3c011993
VZ
16901#include "confdefs.h"
16902/* Override any gcc2 internal prototype to avoid an error. */
16903/* We use char because int might match the return type of a gcc2
16904 builtin and then its argument prototype would still apply. */
16905char inet_addr();
16906
16907int main() {
16908inet_addr()
16909; return 0; }
16910EOF
e95edd8d 16911if { (eval echo configure:16912: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3c011993
VZ
16912 rm -rf conftest*
16913 eval "ac_cv_lib_$ac_lib_var=yes"
16914else
16915 echo "configure: failed program was:" >&5
16916 cat conftest.$ac_ext >&5
16917 rm -rf conftest*
16918 eval "ac_cv_lib_$ac_lib_var=no"
16919fi
16920rm -f conftest*
16921LIBS="$ac_save_LIBS"
16922
16923fi
16924if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
16925 echo "$ac_t""yes" 1>&6
16926 INET_LINK="socket"
16927
16928else
16929 echo "$ac_t""no" 1>&6
16930fi
16931
16932
4f14bcd8 16933fi
698dcdb6 16934
4f14bcd8 16935
698dcdb6 16936fi
4f14bcd8
GD
16937
16938
698dcdb6
VZ
16939
16940fi
4f14bcd8
GD
16941done
16942
16943
16944for ac_func in inet_aton
16945do
16946echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
e95edd8d 16947echo "configure:16948: checking for $ac_func" >&5
4f14bcd8 16948if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
698dcdb6
VZ
16949 echo $ac_n "(cached) $ac_c" 1>&6
16950else
4f14bcd8 16951 cat > conftest.$ac_ext <<EOF
e95edd8d 16952#line 16953 "configure"
f6bcfd97 16953#include "confdefs.h"
4f14bcd8
GD
16954/* System header to define __stub macros and hopefully few prototypes,
16955 which can conflict with char $ac_func(); below. */
16956#include <assert.h>
f6bcfd97
BP
16957/* Override any gcc2 internal prototype to avoid an error. */
16958/* We use char because int might match the return type of a gcc2
698dcdb6 16959 builtin and then its argument prototype would still apply. */
4f14bcd8 16960char $ac_func();
698dcdb6
VZ
16961
16962int main() {
4f14bcd8
GD
16963
16964/* The GNU C library defines this for functions which it implements
16965 to always fail with ENOSYS. Some functions are actually named
16966 something starting with __ and the normal name is an alias. */
16967#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16968choke me
16969#else
16970$ac_func();
16971#endif
16972
698dcdb6
VZ
16973; return 0; }
16974EOF
e95edd8d 16975if { (eval echo configure:16976: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6 16976 rm -rf conftest*
4f14bcd8 16977 eval "ac_cv_func_$ac_func=yes"
698dcdb6
VZ
16978else
16979 echo "configure: failed program was:" >&5
16980 cat conftest.$ac_ext >&5
16981 rm -rf conftest*
4f14bcd8 16982 eval "ac_cv_func_$ac_func=no"
698dcdb6
VZ
16983fi
16984rm -f conftest*
698dcdb6 16985fi
4f14bcd8
GD
16986
16987if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
698dcdb6 16988 echo "$ac_t""yes" 1>&6
4f14bcd8
GD
16989 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16990 cat >> confdefs.h <<EOF
16991#define $ac_tr_func 1
16992EOF
16993 cat >> confdefs.h <<\EOF
16994#define HAVE_INET_ATON 1
16995EOF
16996
10f2d63a 16997else
698dcdb6 16998 echo "$ac_t""no" 1>&6
4f14bcd8 16999 echo $ac_n "checking for inet_aton in -l$INET_LINK""... $ac_c" 1>&6
e95edd8d 17000echo "configure:17001: checking for inet_aton in -l$INET_LINK" >&5
4f14bcd8 17001ac_lib_var=`echo $INET_LINK'_'inet_aton | sed 'y%./+-%__p_%'`
698dcdb6
VZ
17002if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
17003 echo $ac_n "(cached) $ac_c" 1>&6
1e487827 17004else
698dcdb6 17005 ac_save_LIBS="$LIBS"
4f14bcd8 17006LIBS="-l$INET_LINK $LIBS"
698dcdb6 17007cat > conftest.$ac_ext <<EOF
e95edd8d 17008#line 17009 "configure"
10f2d63a 17009#include "confdefs.h"
6232543b 17010/* Override any gcc2 internal prototype to avoid an error. */
6232543b 17011/* We use char because int might match the return type of a gcc2
698dcdb6 17012 builtin and then its argument prototype would still apply. */
4f14bcd8 17013char inet_aton();
698dcdb6
VZ
17014
17015int main() {
4f14bcd8 17016inet_aton()
698dcdb6
VZ
17017; return 0; }
17018EOF
e95edd8d 17019if { (eval echo configure:17020: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
17020 rm -rf conftest*
17021 eval "ac_cv_lib_$ac_lib_var=yes"
17022else
17023 echo "configure: failed program was:" >&5
17024 cat conftest.$ac_ext >&5
17025 rm -rf conftest*
17026 eval "ac_cv_lib_$ac_lib_var=no"
17027fi
17028rm -f conftest*
17029LIBS="$ac_save_LIBS"
10f2d63a 17030
698dcdb6
VZ
17031fi
17032if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
17033 echo "$ac_t""yes" 1>&6
4f14bcd8
GD
17034 cat >> confdefs.h <<\EOF
17035#define HAVE_INET_ATON 1
17036EOF
17037
698dcdb6
VZ
17038else
17039 echo "$ac_t""no" 1>&6
10f2d63a
VZ
17040fi
17041
4f14bcd8 17042
10f2d63a 17043fi
4f14bcd8 17044done
10f2d63a 17045
4f14bcd8
GD
17046
17047if test "x$INET_LINK" != "x"; then
17048 cat >> confdefs.h <<\EOF
17049#define HAVE_INET_ADDR 1
17050EOF
17051
3d63bc3a 17052 INET_LINK=" -l$INET_LINK"
6232543b 17053fi
10f2d63a 17054
1e487827 17055fi
703e0a69 17056
698dcdb6 17057
4f14bcd8
GD
17058cat > confcache <<\EOF
17059# This file is a shell script that caches the results of configure
17060# tests run on this system so they can be shared between configure
17061# scripts and configure runs. It is not useful on other systems.
17062# If it contains results you don't want to keep, you may remove or edit it.
17063#
17064# By default, configure uses ./config.cache as the cache file,
17065# creating it if it does not exist already. You can give configure
17066# the --cache-file=FILE option to use a different cache file; that is
17067# what configure does when it calls configure scripts in
17068# subdirectories, so they share the cache.
17069# Giving --cache-file=/dev/null disables caching, for debugging configure.
17070# config.status only pays attention to the cache file if you give it the
17071# --recheck option to rerun configure.
17072#
f6bcfd97 17073EOF
4f14bcd8
GD
17074# The following way of writing the cache mishandles newlines in values,
17075# but we know of no workaround that is simple, portable, and efficient.
17076# So, don't put newlines in cache variables' values.
17077# Ultrix sh set writes to stderr and can't be redirected directly,
17078# and sets the high bit in the cache file unless we assign to the vars.
17079(set) 2>&1 |
17080 case `(ac_space=' '; set | grep ac_space) 2>&1` in
17081 *ac_space=\ *)
17082 # `set' does not quote correctly, so add quotes (double-quote substitution
17083 # turns \\\\ into \\, and sed turns \\ into \).
17084 sed -n \
17085 -e "s/'/'\\\\''/g" \
17086 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
17087 ;;
17088 *)
17089 # `set' quotes correctly as required by POSIX, so do not add quotes.
17090 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
17091 ;;
17092 esac >> confcache
17093if cmp -s $cache_file confcache; then
17094 :
17095else
17096 if test -w $cache_file; then
17097 echo "updating cache $cache_file"
17098 cat confcache > $cache_file
f6bcfd97 17099 else
4f14bcd8 17100 echo "not updating unwritable cache $cache_file"
f6bcfd97 17101 fi
4f14bcd8
GD
17102fi
17103rm -f confcache
f6bcfd97 17104
4f14bcd8
GD
17105
17106
009fead0 17107CPP_MT_FLAG=
4f14bcd8
GD
17108if test "$TOOLKIT" != "MSW"; then
17109
009fead0 17110
7274f1c7 17111 THREADS_LINK=
009fead0 17112 THREADS_CFLAGS=
7274f1c7
RL
17113
17114 if test "$wxUSE_THREADS" = "yes" ; then
17115 if test "$wxUSE_WINE" = 1 ; then
156b2523 17116 echo "configure: warning: Threads are not supported under WINE... disabled" 1>&2
7274f1c7
RL
17117 wxUSE_THREADS="no"
17118 elif test "$USE_BEOS" = 1; then
156b2523 17119 echo "configure: warning: BeOS threads are not yet supported... disabled" 1>&2
7274f1c7
RL
17120 wxUSE_THREADS="no"
17121 fi
4f14bcd8 17122 fi
4f14bcd8 17123
7274f1c7 17124 if test "$wxUSE_THREADS" = "yes" ; then
009fead0 17125
3010d50a 17126
009fead0
VZ
17127 THREAD_OPTS="-pthread"
17128 case "${host}" in
17129 *-*-solaris2* | *-*-sunos4* )
17130 if test "x$GCC" = "xyes"; then
126be6b4 17131 THREAD_OPTS="-pthreads $THREAD_OPTS"
009fead0
VZ
17132 else
17133 THREAD_OPTS="-mt $THREAD_OPTS"
17134 fi
17135 ;;
17136 *-*-freebsd*)
17137 THREAD_OPTS="-kthread lthread $THREAD_OPTS c_r"
17138 ;;
4101db81 17139 *-*-darwin*)
8f4a9a10 17140 THREAD_OPTS=""
4101db81 17141 ;;
8f4a9a10 17142 *-*-aix*)
009fead0
VZ
17143 THREAD_OPTS="pthreads"
17144 ;;
009fead0 17145 esac
4f14bcd8 17146
02a1dfba 17147 THREAD_OPTS="$THREAD_OPTS pthread none"
595e0e44 17148
009fead0
VZ
17149 THREADS_OK=no
17150 for flag in $THREAD_OPTS; do
17151 case $flag in
17152 none)
17153 echo $ac_n "checking whether pthreads work without any flags""... $ac_c" 1>&6
e95edd8d 17154echo "configure:17155: checking whether pthreads work without any flags" >&5
009fead0 17155 ;;
698dcdb6 17156
009fead0
VZ
17157 -*)
17158 echo $ac_n "checking whether pthreads work with $flag""... $ac_c" 1>&6
e95edd8d 17159echo "configure:17160: checking whether pthreads work with $flag" >&5
009fead0
VZ
17160 THREADS_CFLAGS="$flag"
17161 ;;
698dcdb6 17162
009fead0
VZ
17163 *)
17164 echo $ac_n "checking for the pthreads library -l$flag""... $ac_c" 1>&6
e95edd8d 17165echo "configure:17166: checking for the pthreads library -l$flag" >&5
009fead0
VZ
17166 THREADS_LINK="-l$flag"
17167 ;;
17168 esac
10f2d63a 17169
009fead0
VZ
17170 save_LIBS="$LIBS"
17171 save_CFLAGS="$CFLAGS"
17172 LIBS="$THREADS_LINK $LIBS"
04727afd 17173 CFLAGS="$THREADS_CFLAGS $CFLAGS"
10f2d63a 17174
009fead0 17175 cat > conftest.$ac_ext <<EOF
e95edd8d 17176#line 17177 "configure"
009fead0
VZ
17177#include "confdefs.h"
17178#include <pthread.h>
4f14bcd8 17179int main() {
009fead0 17180pthread_create(0,0,0,0);
698dcdb6
VZ
17181; return 0; }
17182EOF
e95edd8d 17183if { (eval echo configure:17184: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6 17184 rm -rf conftest*
009fead0 17185 THREADS_OK=yes
10f2d63a 17186else
698dcdb6
VZ
17187 echo "configure: failed program was:" >&5
17188 cat conftest.$ac_ext >&5
6232543b 17189fi
698dcdb6 17190rm -f conftest*
698dcdb6 17191
009fead0
VZ
17192 LIBS="$save_LIBS"
17193 CFLAGS="$save_CFLAGS"
d9b9876f 17194
009fead0
VZ
17195 echo "$ac_t""$THREADS_OK" 1>&6
17196 if test "x$THREADS_OK" = "xyes"; then
17197 break;
17198 fi
d9b9876f 17199
009fead0
VZ
17200 THREADS_LINK=""
17201 THREADS_CFLAGS=""
17202 done
4f14bcd8 17203
009fead0
VZ
17204 if test "x$THREADS_OK" != "xyes"; then
17205 wxUSE_THREADS=no
17206 echo "configure: warning: No thread support on this system... disabled" 1>&2
17207 else
fe5a9cab
VZ
17208 LIBS="$THREADS_LINK $THREADS_CFLAGS $LIBS"
17209
009fead0 17210 echo $ac_n "checking if more special flags are required for pthreads""... $ac_c" 1>&6
e95edd8d 17211echo "configure:17212: checking if more special flags are required for pthreads" >&5
009fead0
VZ
17212 flag=no
17213 case "${host}" in
17214 *-aix* | *-freebsd*)
17215 flag="-D_THREAD_SAFE"
17216 ;;
17217 *solaris* | alpha*-osf*)
17218 flag="-D_REENTRANT"
17219 ;;
17220 esac
17221 echo "$ac_t""${flag}" 1>&6
17222 if test "x$flag" != xno; then
04727afd 17223 THREADS_CFLAGS="$THREADS_CFLAGS $flag"
009fead0
VZ
17224 fi
17225
009fead0 17226 if test "x$THREADS_CFLAGS" != "x"; then
04727afd 17227 CFLAGS="$CFLAGS $THREADS_CFLAGS"
009fead0
VZ
17228 CXXFLAGS="$CXXFLAGS $THREADS_CFLAGS"
17229 fi
17230 fi
4f14bcd8 17231 fi
4f14bcd8 17232
7274f1c7
RL
17233 if test "$wxUSE_THREADS" = "yes" ; then
17234 for ac_func in thr_setconcurrency
4f14bcd8
GD
17235do
17236echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
e95edd8d 17237echo "configure:17238: checking for $ac_func" >&5
4f14bcd8 17238if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
698dcdb6
VZ
17239 echo $ac_n "(cached) $ac_c" 1>&6
17240else
4f14bcd8 17241 cat > conftest.$ac_ext <<EOF
e95edd8d 17242#line 17243 "configure"
d9b9876f 17243#include "confdefs.h"
4f14bcd8
GD
17244/* System header to define __stub macros and hopefully few prototypes,
17245 which can conflict with char $ac_func(); below. */
17246#include <assert.h>
17247/* Override any gcc2 internal prototype to avoid an error. */
17248/* We use char because int might match the return type of a gcc2
17249 builtin and then its argument prototype would still apply. */
17250char $ac_func();
17251
698dcdb6 17252int main() {
d9b9876f 17253
4f14bcd8
GD
17254/* The GNU C library defines this for functions which it implements
17255 to always fail with ENOSYS. Some functions are actually named
17256 something starting with __ and the normal name is an alias. */
17257#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17258choke me
17259#else
17260$ac_func();
17261#endif
17262
698dcdb6
VZ
17263; return 0; }
17264EOF
e95edd8d 17265if { (eval echo configure:17266: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6 17266 rm -rf conftest*
4f14bcd8 17267 eval "ac_cv_func_$ac_func=yes"
d9b9876f 17268else
698dcdb6
VZ
17269 echo "configure: failed program was:" >&5
17270 cat conftest.$ac_ext >&5
17271 rm -rf conftest*
4f14bcd8 17272 eval "ac_cv_func_$ac_func=no"
6232543b 17273fi
698dcdb6 17274rm -f conftest*
1e487827 17275fi
698dcdb6 17276
4f14bcd8
GD
17277if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17278 echo "$ac_t""yes" 1>&6
17279 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17280 cat >> confdefs.h <<EOF
17281#define $ac_tr_func 1
d9b9876f 17282EOF
4f14bcd8
GD
17283
17284else
17285 echo "$ac_t""no" 1>&6
10f2d63a 17286fi
4f14bcd8 17287done
10f2d63a 17288
10f2d63a 17289
7274f1c7 17290 for ac_hdr in sched.h
4f14bcd8
GD
17291do
17292ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
17293echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
e95edd8d 17294echo "configure:17295: checking for $ac_hdr" >&5
4f14bcd8
GD
17295if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
17296 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 17297else
4f14bcd8 17298 cat > conftest.$ac_ext <<EOF
e95edd8d 17299#line 17300 "configure"
4f14bcd8
GD
17300#include "confdefs.h"
17301#include <$ac_hdr>
13111b2a 17302EOF
4f14bcd8 17303ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
e95edd8d 17304{ (eval echo configure:17305: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4f14bcd8
GD
17305ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
17306if test -z "$ac_err"; then
17307 rm -rf conftest*
17308 eval "ac_cv_header_$ac_safe=yes"
17309else
17310 echo "$ac_err" >&5
17311 echo "configure: failed program was:" >&5
17312 cat conftest.$ac_ext >&5
17313 rm -rf conftest*
17314 eval "ac_cv_header_$ac_safe=no"
13111b2a 17315fi
4f14bcd8 17316rm -f conftest*
10f2d63a 17317fi
4f14bcd8
GD
17318if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
17319 echo "$ac_t""yes" 1>&6
17320 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
698dcdb6 17321 cat >> confdefs.h <<EOF
4f14bcd8 17322#define $ac_tr_hdr 1
f6bcfd97 17323EOF
4f14bcd8
GD
17324
17325else
17326 echo "$ac_t""no" 1>&6
f6bcfd97 17327fi
4f14bcd8 17328done
f6bcfd97 17329
009fead0
VZ
17330 if test "$ac_cv_header_sched_h" = "yes"; then
17331 echo $ac_n "checking for sched_yield""... $ac_c" 1>&6
e95edd8d 17332echo "configure:17333: checking for sched_yield" >&5
009fead0 17333if eval "test \"`echo '$''{'ac_cv_func_sched_yield'+set}'`\" = set"; then
4f14bcd8
GD
17334 echo $ac_n "(cached) $ac_c" 1>&6
17335else
009fead0 17336 cat > conftest.$ac_ext <<EOF
e95edd8d 17337#line 17338 "configure"
4f14bcd8 17338#include "confdefs.h"
009fead0
VZ
17339/* System header to define __stub macros and hopefully few prototypes,
17340 which can conflict with char sched_yield(); below. */
17341#include <assert.h>
4f14bcd8
GD
17342/* Override any gcc2 internal prototype to avoid an error. */
17343/* We use char because int might match the return type of a gcc2
17344 builtin and then its argument prototype would still apply. */
17345char sched_yield();
10f2d63a 17346
4f14bcd8 17347int main() {
009fead0
VZ
17348
17349/* The GNU C library defines this for functions which it implements
17350 to always fail with ENOSYS. Some functions are actually named
17351 something starting with __ and the normal name is an alias. */
17352#if defined (__stub_sched_yield) || defined (__stub___sched_yield)
17353choke me
17354#else
17355sched_yield();
17356#endif
17357
4f14bcd8 17358; return 0; }
10f2d63a 17359EOF
e95edd8d 17360if { (eval echo configure:17361: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4f14bcd8 17361 rm -rf conftest*
009fead0 17362 eval "ac_cv_func_sched_yield=yes"
10f2d63a 17363else
4f14bcd8
GD
17364 echo "configure: failed program was:" >&5
17365 cat conftest.$ac_ext >&5
17366 rm -rf conftest*
009fead0 17367 eval "ac_cv_func_sched_yield=no"
10f2d63a 17368fi
4f14bcd8 17369rm -f conftest*
4f14bcd8 17370fi
009fead0
VZ
17371
17372if eval "test \"`echo '$ac_cv_func_'sched_yield`\" = yes"; then
4f14bcd8
GD
17373 echo "$ac_t""yes" 1>&6
17374 cat >> confdefs.h <<\EOF
17375#define HAVE_SCHED_YIELD 1
10f2d63a
VZ
17376EOF
17377
4f14bcd8
GD
17378else
17379 echo "$ac_t""no" 1>&6
009fead0
VZ
17380
17381 echo $ac_n "checking for sched_yield in -lposix4""... $ac_c" 1>&6
e95edd8d 17382echo "configure:17383: checking for sched_yield in -lposix4" >&5
4f14bcd8
GD
17383ac_lib_var=`echo posix4'_'sched_yield | sed 'y%./+-%__p_%'`
17384if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
17385 echo $ac_n "(cached) $ac_c" 1>&6
17386else
17387 ac_save_LIBS="$LIBS"
17388LIBS="-lposix4 $LIBS"
17389cat > conftest.$ac_ext <<EOF
e95edd8d 17390#line 17391 "configure"
4f14bcd8
GD
17391#include "confdefs.h"
17392/* Override any gcc2 internal prototype to avoid an error. */
17393/* We use char because int might match the return type of a gcc2
17394 builtin and then its argument prototype would still apply. */
17395char sched_yield();
47c13eb7 17396
4f14bcd8
GD
17397int main() {
17398sched_yield()
17399; return 0; }
10f2d63a 17400EOF
e95edd8d 17401if { (eval echo configure:17402: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4f14bcd8
GD
17402 rm -rf conftest*
17403 eval "ac_cv_lib_$ac_lib_var=yes"
10f2d63a 17404else
4f14bcd8
GD
17405 echo "configure: failed program was:" >&5
17406 cat conftest.$ac_ext >&5
17407 rm -rf conftest*
17408 eval "ac_cv_lib_$ac_lib_var=no"
10f2d63a 17409fi
4f14bcd8
GD
17410rm -f conftest*
17411LIBS="$ac_save_LIBS"
10f2d63a 17412
54276ccf 17413fi
4f14bcd8
GD
17414if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
17415 echo "$ac_t""yes" 1>&6
17416 cat >> confdefs.h <<\EOF
17417#define HAVE_SCHED_YIELD 1
54276ccf 17418EOF
3d63bc3a 17419 POSIX4_LINK=" -lposix4"
4f14bcd8
GD
17420else
17421 echo "$ac_t""no" 1>&6
17422echo "configure: warning: wxThread::Yield will not work properly" 1>&2
009fead0 17423
54276ccf
VZ
17424fi
17425
009fead0
VZ
17426
17427
4f14bcd8 17428fi
698dcdb6 17429
009fead0 17430 fi
10f2d63a 17431
7274f1c7 17432 HAVE_PRIOR_FUNCS=0
009fead0 17433 echo $ac_n "checking for pthread_attr_getschedpolicy""... $ac_c" 1>&6
e95edd8d 17434echo "configure:17435: checking for pthread_attr_getschedpolicy" >&5
009fead0 17435if eval "test \"`echo '$''{'ac_cv_func_pthread_attr_getschedpolicy'+set}'`\" = set"; then
698dcdb6
VZ
17436 echo $ac_n "(cached) $ac_c" 1>&6
17437else
009fead0 17438 cat > conftest.$ac_ext <<EOF
e95edd8d 17439#line 17440 "configure"
422107f9 17440#include "confdefs.h"
009fead0
VZ
17441/* System header to define __stub macros and hopefully few prototypes,
17442 which can conflict with char pthread_attr_getschedpolicy(); below. */
17443#include <assert.h>
4f14bcd8
GD
17444/* Override any gcc2 internal prototype to avoid an error. */
17445/* We use char because int might match the return type of a gcc2
17446 builtin and then its argument prototype would still apply. */
17447char pthread_attr_getschedpolicy();
17448
17449int main() {
009fead0
VZ
17450
17451/* The GNU C library defines this for functions which it implements
17452 to always fail with ENOSYS. Some functions are actually named
17453 something starting with __ and the normal name is an alias. */
17454#if defined (__stub_pthread_attr_getschedpolicy) || defined (__stub___pthread_attr_getschedpolicy)
17455choke me
17456#else
17457pthread_attr_getschedpolicy();
17458#endif
17459
4f14bcd8 17460; return 0; }
698dcdb6 17461EOF
e95edd8d 17462if { (eval echo configure:17463: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6 17463 rm -rf conftest*
009fead0 17464 eval "ac_cv_func_pthread_attr_getschedpolicy=yes"
422107f9 17465else
698dcdb6 17466 echo "configure: failed program was:" >&5
422107f9 17467 cat conftest.$ac_ext >&5
698dcdb6 17468 rm -rf conftest*
009fead0 17469 eval "ac_cv_func_pthread_attr_getschedpolicy=no"
422107f9 17470fi
698dcdb6 17471rm -f conftest*
422107f9 17472fi
009fead0
VZ
17473
17474if eval "test \"`echo '$ac_cv_func_'pthread_attr_getschedpolicy`\" = yes"; then
698dcdb6 17475 echo "$ac_t""yes" 1>&6
009fead0 17476 echo $ac_n "checking for pthread_attr_setschedparam""... $ac_c" 1>&6
e95edd8d 17477echo "configure:17478: checking for pthread_attr_setschedparam" >&5
009fead0 17478if eval "test \"`echo '$''{'ac_cv_func_pthread_attr_setschedparam'+set}'`\" = set"; then
698dcdb6 17479 echo $ac_n "(cached) $ac_c" 1>&6
422107f9 17480else
009fead0 17481 cat > conftest.$ac_ext <<EOF
e95edd8d 17482#line 17483 "configure"
422107f9 17483#include "confdefs.h"
009fead0
VZ
17484/* System header to define __stub macros and hopefully few prototypes,
17485 which can conflict with char pthread_attr_setschedparam(); below. */
17486#include <assert.h>
422107f9
VZ
17487/* Override any gcc2 internal prototype to avoid an error. */
17488/* We use char because int might match the return type of a gcc2
698dcdb6 17489 builtin and then its argument prototype would still apply. */
4f14bcd8 17490char pthread_attr_setschedparam();
698dcdb6
VZ
17491
17492int main() {
009fead0
VZ
17493
17494/* The GNU C library defines this for functions which it implements
17495 to always fail with ENOSYS. Some functions are actually named
17496 something starting with __ and the normal name is an alias. */
17497#if defined (__stub_pthread_attr_setschedparam) || defined (__stub___pthread_attr_setschedparam)
17498choke me
17499#else
17500pthread_attr_setschedparam();
17501#endif
17502
698dcdb6
VZ
17503; return 0; }
17504EOF
e95edd8d 17505if { (eval echo configure:17506: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6 17506 rm -rf conftest*
009fead0 17507 eval "ac_cv_func_pthread_attr_setschedparam=yes"
698dcdb6
VZ
17508else
17509 echo "configure: failed program was:" >&5
17510 cat conftest.$ac_ext >&5
17511 rm -rf conftest*
009fead0 17512 eval "ac_cv_func_pthread_attr_setschedparam=no"
698dcdb6
VZ
17513fi
17514rm -f conftest*
698dcdb6 17515fi
009fead0
VZ
17516
17517if eval "test \"`echo '$ac_cv_func_'pthread_attr_setschedparam`\" = yes"; then
698dcdb6 17518 echo "$ac_t""yes" 1>&6
009fead0 17519 echo $ac_n "checking for sched_get_priority_max""... $ac_c" 1>&6
e95edd8d 17520echo "configure:17521: checking for sched_get_priority_max" >&5
009fead0 17521if eval "test \"`echo '$''{'ac_cv_func_sched_get_priority_max'+set}'`\" = set"; then
698dcdb6
VZ
17522 echo $ac_n "(cached) $ac_c" 1>&6
17523else
009fead0 17524 cat > conftest.$ac_ext <<EOF
e95edd8d 17525#line 17526 "configure"
422107f9 17526#include "confdefs.h"
009fead0
VZ
17527/* System header to define __stub macros and hopefully few prototypes
17528else
17529 echo "$ac_t""no" 1>&6
17530which can conflict with char sched_get_priority_max(); below. */
17531#include <assert.h>
4f14bcd8
GD
17532/* Override any gcc2 internal prototype to avoid an error. */
17533/* We use char because int might match the return type of a gcc2
17534 builtin and then its argument prototype would still apply. */
17535char sched_get_priority_max();
17536
17537int main() {
009fead0
VZ
17538
17539/* The GNU C library defines this for functions which it implements
17540 to always fail with ENOSYS. Some functions are actually named
17541 something starting with __ and the normal name is an alias. */
17542#if defined (__stub_sched_get_priority_max) || defined (__stub___sched_get_priority_max)
17543choke me
17544#else
17545sched_get_priority_max();
17546#endif
17547
4f14bcd8 17548; return 0; }
698dcdb6 17549EOF
e95edd8d 17550if { (eval echo configure:17551: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6 17551 rm -rf conftest*
009fead0 17552 eval "ac_cv_func_sched_get_priority_max=yes"
422107f9 17553else
698dcdb6 17554 echo "configure: failed program was:" >&5
422107f9 17555 cat conftest.$ac_ext >&5
698dcdb6 17556 rm -rf conftest*
009fead0 17557 eval "ac_cv_func_sched_get_priority_max=no"
422107f9 17558fi
698dcdb6 17559rm -f conftest*
422107f9 17560fi
009fead0
VZ
17561
17562if eval "test \"`echo '$ac_cv_func_'sched_get_priority_max`\" = yes"; then
698dcdb6 17563 echo "$ac_t""yes" 1>&6
4f14bcd8
GD
17564 HAVE_PRIOR_FUNCS=1
17565else
17566 echo "$ac_t""no" 1>&6
17567echo $ac_n "checking for sched_get_priority_max in -lposix4""... $ac_c" 1>&6
e95edd8d 17568echo "configure:17569: checking for sched_get_priority_max in -lposix4" >&5
4f14bcd8 17569ac_lib_var=`echo posix4'_'sched_get_priority_max | sed 'y%./+-%__p_%'`
698dcdb6
VZ
17570if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
17571 echo $ac_n "(cached) $ac_c" 1>&6
422107f9 17572else
698dcdb6 17573 ac_save_LIBS="$LIBS"
4f14bcd8 17574LIBS="-lposix4 $LIBS"
698dcdb6 17575cat > conftest.$ac_ext <<EOF
e95edd8d 17576#line 17577 "configure"
422107f9
VZ
17577#include "confdefs.h"
17578/* Override any gcc2 internal prototype to avoid an error. */
17579/* We use char because int might match the return type of a gcc2
698dcdb6 17580 builtin and then its argument prototype would still apply. */
4f14bcd8 17581char sched_get_priority_max();
698dcdb6
VZ
17582
17583int main() {
4f14bcd8 17584sched_get_priority_max()
698dcdb6
VZ
17585; return 0; }
17586EOF
e95edd8d 17587if { (eval echo configure:17588: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
17588 rm -rf conftest*
17589 eval "ac_cv_lib_$ac_lib_var=yes"
17590else
17591 echo "configure: failed program was:" >&5
17592 cat conftest.$ac_ext >&5
17593 rm -rf conftest*
17594 eval "ac_cv_lib_$ac_lib_var=no"
17595fi
17596rm -f conftest*
17597LIBS="$ac_save_LIBS"
17598
17599fi
17600if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
17601 echo "$ac_t""yes" 1>&6
4f14bcd8 17602
7274f1c7
RL
17603 HAVE_PRIOR_FUNCS=1
17604 POSIX4_LINK=" -lposix4"
17605
698dcdb6
VZ
17606else
17607 echo "$ac_t""no" 1>&6
422107f9
VZ
17608fi
17609
7274f1c7 17610
422107f9
VZ
17611fi
17612
7274f1c7 17613
4f14bcd8
GD
17614else
17615 echo "$ac_t""no" 1>&6
10f2d63a
VZ
17616fi
17617
7274f1c7 17618
4f14bcd8 17619fi
463abc64 17620
463abc64 17621
7274f1c7
RL
17622 if test "$HAVE_PRIOR_FUNCS" = 1; then
17623 cat >> confdefs.h <<\EOF
4f14bcd8 17624#define HAVE_THREAD_PRIORITY_FUNCTIONS 1
698dcdb6 17625EOF
463abc64 17626
7274f1c7
RL
17627 else
17628 echo "configure: warning: Setting thread priority will not work" 1>&2
17629 fi
463abc64 17630
009fead0 17631 echo $ac_n "checking for pthread_cancel""... $ac_c" 1>&6
e95edd8d 17632echo "configure:17633: checking for pthread_cancel" >&5
009fead0 17633if eval "test \"`echo '$''{'ac_cv_func_pthread_cancel'+set}'`\" = set"; then
698dcdb6 17634 echo $ac_n "(cached) $ac_c" 1>&6
422107f9 17635else
009fead0 17636 cat > conftest.$ac_ext <<EOF
e95edd8d 17637#line 17638 "configure"
422107f9 17638#include "confdefs.h"
009fead0
VZ
17639/* System header to define __stub macros and hopefully few prototypes,
17640 which can conflict with char pthread_cancel(); below. */
17641#include <assert.h>
422107f9
VZ
17642/* Override any gcc2 internal prototype to avoid an error. */
17643/* We use char because int might match the return type of a gcc2
698dcdb6 17644 builtin and then its argument prototype would still apply. */
4f14bcd8 17645char pthread_cancel();
698dcdb6
VZ
17646
17647int main() {
009fead0
VZ
17648
17649/* The GNU C library defines this for functions which it implements
17650 to always fail with ENOSYS. Some functions are actually named
17651 something starting with __ and the normal name is an alias. */
17652#if defined (__stub_pthread_cancel) || defined (__stub___pthread_cancel)
17653choke me
17654#else
17655pthread_cancel();
17656#endif
17657
698dcdb6
VZ
17658; return 0; }
17659EOF
e95edd8d 17660if { (eval echo configure:17661: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6 17661 rm -rf conftest*
009fead0 17662 eval "ac_cv_func_pthread_cancel=yes"
698dcdb6
VZ
17663else
17664 echo "configure: failed program was:" >&5
17665 cat conftest.$ac_ext >&5
17666 rm -rf conftest*
009fead0 17667 eval "ac_cv_func_pthread_cancel=no"
698dcdb6
VZ
17668fi
17669rm -f conftest*
698dcdb6 17670fi
009fead0
VZ
17671
17672if eval "test \"`echo '$ac_cv_func_'pthread_cancel`\" = yes"; then
698dcdb6 17673 echo "$ac_t""yes" 1>&6
4f14bcd8
GD
17674 cat >> confdefs.h <<\EOF
17675#define HAVE_PTHREAD_CANCEL 1
17676EOF
17677
698dcdb6
VZ
17678else
17679 echo "$ac_t""no" 1>&6
4f14bcd8 17680echo "configure: warning: wxThread::Kill() will not work properly" 1>&2
422107f9
VZ
17681fi
17682
422107f9 17683
7274f1c7 17684 echo $ac_n "checking for pthread_cleanup_push/pop""... $ac_c" 1>&6
e95edd8d 17685echo "configure:17686: checking for pthread_cleanup_push/pop" >&5
4f14bcd8
GD
17686if eval "test \"`echo '$''{'wx_cv_func_pthread_cleanup_push'+set}'`\" = set"; then
17687 echo $ac_n "(cached) $ac_c" 1>&6
17688else
17689
7274f1c7 17690 cat > conftest.$ac_ext <<EOF
e95edd8d 17691#line 17692 "configure"
4f14bcd8
GD
17692#include "confdefs.h"
17693#include <pthread.h>
17694int main() {
17695
7274f1c7
RL
17696 pthread_cleanup_push(NULL, NULL);
17697 pthread_cleanup_pop(0);
17698
4f14bcd8
GD
17699; return 0; }
17700EOF
e95edd8d 17701if { (eval echo configure:17702: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4f14bcd8
GD
17702 rm -rf conftest*
17703
7274f1c7
RL
17704 wx_cv_func_pthread_cleanup_push=yes
17705
4f14bcd8
GD
17706else
17707 echo "configure: failed program was:" >&5
17708 cat conftest.$ac_ext >&5
17709 rm -rf conftest*
17710
7274f1c7
RL
17711 wx_cv_func_pthread_cleanup_push=no
17712
4f14bcd8
GD
17713fi
17714rm -f conftest*
7274f1c7 17715
10f2d63a
VZ
17716fi
17717
4f14bcd8
GD
17718echo "$ac_t""$wx_cv_func_pthread_cleanup_push" 1>&6
17719
7274f1c7
RL
17720 if test "$wx_cv_func_pthread_cleanup_push" = "yes"; then
17721 cat >> confdefs.h <<\EOF
4f14bcd8 17722#define HAVE_THREAD_CLEANUP_FUNCTIONS 1
c7a2bf27
RR
17723EOF
17724
7274f1c7 17725 fi
4f14bcd8 17726
7274f1c7
RL
17727
17728 if test "x$wx_lib_glibc21" = "xyes"; then
17729 CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE"
17730 fi
4f14bcd8 17731
7274f1c7 17732 echo $ac_n "checking for pthread_mutexattr_t""... $ac_c" 1>&6
e95edd8d 17733echo "configure:17734: checking for pthread_mutexattr_t" >&5
4f14bcd8 17734if eval "test \"`echo '$''{'wx_cv_type_pthread_mutexattr_t'+set}'`\" = set"; then
698dcdb6
VZ
17735 echo $ac_n "(cached) $ac_c" 1>&6
17736else
4f14bcd8 17737
7274f1c7 17738 cat > conftest.$ac_ext <<EOF
e95edd8d 17739#line 17740 "configure"
0dcf9893 17740#include "confdefs.h"
4f14bcd8
GD
17741#include <pthread.h>
17742int main() {
17743
7274f1c7
RL
17744 pthread_mutexattr_t attr;
17745 pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
17746
4f14bcd8 17747; return 0; }
698dcdb6 17748EOF
e95edd8d 17749if { (eval echo configure:17750: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6 17750 rm -rf conftest*
4f14bcd8 17751
7274f1c7
RL
17752 wx_cv_type_pthread_mutexattr_t=yes
17753
3fed1840 17754else
698dcdb6 17755 echo "configure: failed program was:" >&5
3fed1840 17756 cat conftest.$ac_ext >&5
698dcdb6 17757 rm -rf conftest*
4f14bcd8 17758
7274f1c7
RL
17759 wx_cv_type_pthread_mutexattr_t=no
17760
4f14bcd8 17761
3fed1840 17762fi
698dcdb6 17763rm -f conftest*
7274f1c7 17764
3fed1840 17765fi
4f14bcd8
GD
17766
17767echo "$ac_t""$wx_cv_type_pthread_mutexattr_t" 1>&6
17768
7274f1c7
RL
17769 if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then
17770 cat >> confdefs.h <<\EOF
4f14bcd8
GD
17771#define HAVE_PTHREAD_MUTEXATTR_T 1
17772EOF
17773
7274f1c7
RL
17774 else
17775 echo $ac_n "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER""... $ac_c" 1>&6
e95edd8d 17776echo "configure:17777: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5
4f14bcd8 17777if eval "test \"`echo '$''{'wx_cv_type_pthread_rec_mutex_init'+set}'`\" = set"; then
698dcdb6 17778 echo $ac_n "(cached) $ac_c" 1>&6
3fed1840 17779else
4f14bcd8 17780
7274f1c7 17781 cat > conftest.$ac_ext <<EOF
e95edd8d 17782#line 17783 "configure"
3fed1840 17783#include "confdefs.h"
4f14bcd8 17784#include <pthread.h>
698dcdb6 17785int main() {
4f14bcd8 17786
7274f1c7
RL
17787 pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;
17788
698dcdb6
VZ
17789; return 0; }
17790EOF
e95edd8d 17791if { (eval echo configure:17792: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6 17792 rm -rf conftest*
4f14bcd8 17793
7274f1c7
RL
17794 wx_cv_type_pthread_rec_mutex_init=yes
17795
698dcdb6
VZ
17796else
17797 echo "configure: failed program was:" >&5
17798 cat conftest.$ac_ext >&5
17799 rm -rf conftest*
4f14bcd8 17800
7274f1c7
RL
17801 wx_cv_type_pthread_rec_mutex_init=no
17802
4f14bcd8 17803
698dcdb6
VZ
17804fi
17805rm -f conftest*
7274f1c7 17806
3fed1840
RR
17807fi
17808
4f14bcd8 17809echo "$ac_t""$wx_cv_type_pthread_rec_mutex_init" 1>&6
7274f1c7
RL
17810 if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then
17811 cat >> confdefs.h <<\EOF
4f14bcd8
GD
17812#define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1
17813EOF
3fed1840 17814
7274f1c7
RL
17815 else
17816 echo "configure: warning: wxMutex won't be recursive on this platform" 1>&2
17817 fi
17818 fi
7274f1c7 17819 fi
3fed1840 17820
4f14bcd8
GD
17821fi
17822
17823if test "$wxUSE_THREADS" = "yes"; then
3a922bb4 17824 cat >> confdefs.h <<\EOF
4f14bcd8 17825#define wxUSE_THREADS 1
7b6058cd
GD
17826EOF
17827
4f14bcd8 17828
4f14bcd8 17829 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread"
698dcdb6 17830else
4f14bcd8
GD
17831 if test "$ac_cv_func_strtok_r" = "yes"; then
17832 echo $ac_n "checking if -D_REENTRANT is needed""... $ac_c" 1>&6
e95edd8d 17833echo "configure:17834: checking if -D_REENTRANT is needed" >&5
4f14bcd8
GD
17834 if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then
17835 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D_REENTRANT"
17836 echo "$ac_t""yes" 1>&6
17837 else
17838 echo "$ac_t""no" 1>&6
17839 fi
17840 fi
17841fi
17842
17843if test "$WXGTK20" = 1 ; then
17844 cat >> confdefs.h <<EOF
17845#define __WXGTK20__ $WXGTK20
698dcdb6 17846EOF
4f14bcd8
GD
17847
17848 WXGTK12=1
10f2d63a 17849fi
4f14bcd8
GD
17850
17851if test "$WXGTK12" = 1 ; then
17852 cat >> confdefs.h <<EOF
17853#define __WXGTK12__ $WXGTK12
17854EOF
17855
10f2d63a 17856fi
698dcdb6 17857
4f14bcd8
GD
17858if test "$WXGTK127" = 1 ; then
17859 cat >> confdefs.h <<EOF
17860#define __WXGTK127__ $WXGTK127
698dcdb6 17861EOF
4f14bcd8 17862
698dcdb6 17863fi
10f2d63a 17864
4f14bcd8
GD
17865WXDEBUG=
17866
17867if test "$wxUSE_DEBUG_INFO" = "yes" ; then
17868 WXDEBUG="-g"
17869 wxUSE_OPTIMISE=no
698dcdb6 17870fi
4f14bcd8
GD
17871
17872if test "$wxUSE_DEBUG_GDB" = "yes" ; then
17873 wxUSE_DEBUG_INFO=yes
17874 WXDEBUG="-ggdb"
10f2d63a
VZ
17875fi
17876
4f14bcd8
GD
17877if test "$wxUSE_DEBUG_FLAG" = "yes" ; then
17878 cat >> confdefs.h <<\EOF
17879#define WXDEBUG 1
17880EOF
17881
17882 WXDEBUG_DEFINE="-D__WXDEBUG__"
10f2d63a 17883else
4f14bcd8
GD
17884 if test "$wxUSE_GTK" = 1 ; then
17885 WXDEBUG_DEFINE="-DGTK_NO_CHECK_CASTS"
17886 fi
17887fi
17888
17889if test "$wxUSE_MEM_TRACING" = "yes" ; then
17890 cat >> confdefs.h <<\EOF
17891#define wxUSE_MEMORY_TRACING 1
17892EOF
17893
17894 cat >> confdefs.h <<\EOF
17895#define wxUSE_GLOBAL_MEMORY_OPERATORS 1
17896EOF
17897
17898 cat >> confdefs.h <<\EOF
17899#define wxUSE_DEBUG_NEW_ALWAYS 1
17900EOF
17901
17902 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck"
17903fi
17904
17905if test "$wxUSE_DMALLOC" = "yes" ; then
3d63bc3a 17906 DMALLOC_LIBS="-ldmalloc"
4f14bcd8
GD
17907fi
17908
17909PROFILE=
17910if test "$wxUSE_PROFILE" = "yes" ; then
3d63bc3a 17911 PROFILE=" -pg"
10f2d63a
VZ
17912fi
17913
009fead0
VZ
17914CODE_GEN_FLAGS=
17915CODE_GEN_FLAGS_CXX=
88e30f2b 17916if test "$GCC" = "yes" ; then
4f14bcd8
GD
17917 if test "$wxUSE_NO_RTTI" = "yes" ; then
17918 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-rtti"
3a922bb4 17919 fi
4f14bcd8
GD
17920 if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
17921 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-exceptions"
17922 fi
17923 if test "$wxUSE_PERMISSIVE" = "yes" ; then
17924 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fpermissive"
17925 fi
4f14bcd8
GD
17926 if test "$USE_WIN32" = 1 ; then
17927 # I'm not even really sure what this was ever added to solve,
17928 # but someone added it for mingw native builds, so I guess
17929 # they had a reason, right??
17930 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fno-pcc-struct-return"
17931 fi
17932fi
17933
4f14bcd8
GD
17934if test "$wxUSE_OPTIMISE" = "no" ; then
17935 OPTIMISE=
17936else
17937 if test "$GCC" = yes ; then
17938 OPTIMISE="-O2"
17939 case "${host}" in
17940 i586-*-*|i686-*-* )
17941 OPTIMISE="${OPTIMISE} "
17942 ;;
17943 esac
17944 else
17945 OPTIMISE="-O"
17946 fi
17947fi
17948
17949if test "$WXWIN_COMPATIBILITY_2" = "yes"; then
17950 cat >> confdefs.h <<\EOF
17951#define WXWIN_COMPATIBILITY_2 1
17952EOF
17953
17954
17955 WXWIN_COMPATIBILITY_2_2="yes"
17956fi
17957
0c9a1c32 17958if test "x$WXWIN_COMPATIBILITY_2_2" != "xno"; then
4f14bcd8
GD
17959 cat >> confdefs.h <<\EOF
17960#define WXWIN_COMPATIBILITY_2_2 1
17961EOF
17962
10f2d63a
VZ
17963fi
17964
698dcdb6 17965
10f2d63a 17966if test "$wxUSE_GUI" = "yes"; then
698dcdb6 17967 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17968#define wxUSE_GUI 1
17969EOF
17970
698dcdb6 17971
10f2d63a 17972 else
698dcdb6 17973 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17974#define wxUSE_NOGUI 1
17975EOF
17976
17977fi
17978
698dcdb6 17979
10f2d63a 17980if test "$wxUSE_UNIX" = "yes"; then
698dcdb6 17981 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17982#define wxUSE_UNIX 1
17983EOF
17984
17985fi
17986
698dcdb6 17987
10f2d63a 17988if test "$wxUSE_APPLE_IEEE" = "yes"; then
698dcdb6 17989 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17990#define wxUSE_APPLE_IEEE 1
17991EOF
17992
17993fi
17994
1e6feb95
VZ
17995if test "$wxUSE_TIMER" = "yes"; then
17996 cat >> confdefs.h <<\EOF
17997#define wxUSE_TIMER 1
17998EOF
17999
18000fi
18001
10f2d63a 18002if test "$wxUSE_WAVE" = "yes"; then
698dcdb6 18003 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18004#define wxUSE_WAVE 1
18005EOF
18006
18007fi
18008
1e6feb95
VZ
18009if test "$wxUSE_CMDLINE_PARSER" = "yes"; then
18010 cat >> confdefs.h <<\EOF
18011#define wxUSE_CMDLINE_PARSER 1
18012EOF
18013
18014fi
18015
18016if test "$wxUSE_STOPWATCH" = "yes"; then
18017 cat >> confdefs.h <<\EOF
18018#define wxUSE_STOPWATCH 1
18019EOF
18020
18021fi
18022
18023if test "$wxUSE_DATETIME" = "yes"; then
18024 cat >> confdefs.h <<\EOF
18025#define wxUSE_DATETIME 1
18026EOF
18027
18028fi
18029
18030if test "$wxUSE_TIMEDATE" = "yes"; then
18031 cat >> confdefs.h <<\EOF
18032#define wxUSE_TIMEDATE 1
18033EOF
18034
18035fi
18036
10f2d63a 18037if test "$wxUSE_FILE" = "yes"; then
698dcdb6 18038 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18039#define wxUSE_FILE 1
18040EOF
18041
18042fi
18043
1e6feb95
VZ
18044if test "$wxUSE_FFILE" = "yes"; then
18045 cat >> confdefs.h <<\EOF
18046#define wxUSE_FFILE 1
18047EOF
18048
18049fi
18050
24528b0c 18051if test "$wxUSE_FILESYSTEM" = "yes"; then
698dcdb6 18052 cat >> confdefs.h <<\EOF
24528b0c
VS
18053#define wxUSE_FILESYSTEM 1
18054EOF
18055
18056fi
18057
10f2d63a 18058if test "$wxUSE_FS_INET" = "yes"; then
698dcdb6 18059 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18060#define wxUSE_FS_INET 1
18061EOF
18062
18063fi
18064
18065if test "$wxUSE_FS_ZIP" = "yes"; then
698dcdb6 18066 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18067#define wxUSE_FS_ZIP 1
18068EOF
18069
18070fi
18071
18072if test "$wxUSE_ZIPSTREAM" = "yes"; then
698dcdb6 18073 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18074#define wxUSE_ZIPSTREAM 1
18075EOF
18076
18077fi
18078
eb4efbdc 18079if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
698dcdb6 18080 cat >> confdefs.h <<\EOF
eb4efbdc
VZ
18081#define wxUSE_ON_FATAL_EXCEPTION 1
18082EOF
18083
18084fi
18085
4f3c5f06 18086if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
698dcdb6 18087 cat >> confdefs.h <<\EOF
4f3c5f06
VZ
18088#define wxUSE_SNGLINST_CHECKER 1
18089EOF
18090
18091fi
18092
10f2d63a 18093if test "$wxUSE_BUSYINFO" = "yes"; then
698dcdb6 18094 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18095#define wxUSE_BUSYINFO 1
18096EOF
18097
18098fi
18099
18100if test "$wxUSE_STD_IOSTREAM" = "yes"; then
698dcdb6 18101 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18102#define wxUSE_STD_IOSTREAM 1
18103EOF
18104
18105fi
18106
a3a584a7
VZ
18107if test "$wxUSE_TEXTBUFFER" = "yes"; then
18108 cat >> confdefs.h <<\EOF
18109#define wxUSE_TEXTBUFFER 1
18110EOF
18111
18112fi
18113
10f2d63a 18114if test "$wxUSE_TEXTFILE" = "yes"; then
a3a584a7 18115 if test "$wxUSE_FILE" != "yes" -o "$wxUSE_TEXTBUFFER" != "yes" ; then
156b2523 18116 echo "configure: warning: wxTextFile requires wxFile and wxTextBuffer... disabled" 1>&2
10f2d63a 18117 else
698dcdb6 18118 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18119#define wxUSE_TEXTFILE 1
18120EOF
18121
18122 fi
18123fi
18124
18125if test "$wxUSE_CONFIG" = "yes" ; then
18126 if test "$wxUSE_TEXTFILE" != "yes"; then
156b2523 18127 echo "configure: warning: wxConfig requires wxTextFile... disabled" 1>&2
10f2d63a 18128 else
698dcdb6 18129 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18130#define wxUSE_CONFIG 1
18131EOF
18132
18133 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config"
18134 fi
18135fi
18136
18137if test "$wxUSE_INTL" = "yes" ; then
18138 if test "$wxUSE_FILE" != "yes"; then
156b2523 18139 echo "configure: warning: I18n code requires wxFile... disabled" 1>&2
10f2d63a 18140 else
698dcdb6 18141 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18142#define wxUSE_INTL 1
18143EOF
18144
18145 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat"
f6bcfd97 18146 GUIDIST="$GUIDIST INTL_DIST"
10f2d63a
VZ
18147 fi
18148fi
18149
18150if test "$wxUSE_LOG" = "yes"; then
698dcdb6 18151 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18152#define wxUSE_LOG 1
18153EOF
18154
d73be714
VZ
18155
18156 if test "$wxUSE_LOGGUI" = "yes"; then
18157 cat >> confdefs.h <<\EOF
18158#define wxUSE_LOGGUI 1
18159EOF
18160
18161 fi
18162
18163 if test "$wxUSE_LOGWINDOW" = "yes"; then
18164 cat >> confdefs.h <<\EOF
18165#define wxUSE_LOGWINDOW 1
69d27ff7
MB
18166EOF
18167
18168 fi
18169
18170 if test "$wxUSE_LOGDIALOG" = "yes"; then
18171 cat >> confdefs.h <<\EOF
18172#define wxUSE_LOG_DIALOG 1
d73be714
VZ
18173EOF
18174
18175 fi
10f2d63a
VZ
18176fi
18177
18178if test "$wxUSE_LONGLONG" = "yes"; then
698dcdb6 18179 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18180#define wxUSE_LONGLONG 1
18181EOF
18182
18183fi
18184
e8f65ba6 18185if test "$wxUSE_GEOMETRY" = "yes"; then
698dcdb6 18186 cat >> confdefs.h <<\EOF
e8f65ba6
RR
18187#define wxUSE_GEOMETRY 1
18188EOF
18189
18190fi
18191
10f2d63a 18192if test "$wxUSE_DIALUP_MANAGER" = "yes" ; then
698dcdb6 18193 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18194#define wxUSE_DIALUP_MANAGER 1
18195EOF
18196
70f7a477 18197 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup"
10f2d63a
VZ
18198fi
18199
18200if test "$wxUSE_STREAMS" = "yes" ; then
698dcdb6 18201 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18202#define wxUSE_STREAMS 1
18203EOF
18204
18205fi
18206
1e487827 18207
1e6feb95 18208if test "$wxUSE_DATETIME" = "yes"; then
698dcdb6 18209 for ac_func in strptime
83307f33 18210do
698dcdb6 18211echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
e95edd8d 18212echo "configure:18213: checking for $ac_func" >&5
698dcdb6
VZ
18213if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18214 echo $ac_n "(cached) $ac_c" 1>&6
18215else
18216 cat > conftest.$ac_ext <<EOF
e95edd8d 18217#line 18218 "configure"
83307f33
VZ
18218#include "confdefs.h"
18219/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 18220 which can conflict with char $ac_func(); below. */
83307f33
VZ
18221#include <assert.h>
18222/* Override any gcc2 internal prototype to avoid an error. */
18223/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
18224 builtin and then its argument prototype would still apply. */
18225char $ac_func();
18226
18227int main() {
83307f33
VZ
18228
18229/* The GNU C library defines this for functions which it implements
18230 to always fail with ENOSYS. Some functions are actually named
18231 something starting with __ and the normal name is an alias. */
18232#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18233choke me
18234#else
698dcdb6 18235$ac_func();
83307f33
VZ
18236#endif
18237
698dcdb6 18238; return 0; }
83307f33 18239EOF
e95edd8d 18240if { (eval echo configure:18241: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
18241 rm -rf conftest*
18242 eval "ac_cv_func_$ac_func=yes"
18243else
18244 echo "configure: failed program was:" >&5
18245 cat conftest.$ac_ext >&5
18246 rm -rf conftest*
18247 eval "ac_cv_func_$ac_func=no"
18248fi
18249rm -f conftest*
18250fi
83307f33 18251
698dcdb6
VZ
18252if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18253 echo "$ac_t""yes" 1>&6
18254 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18255 cat >> confdefs.h <<EOF
18256#define $ac_tr_func 1
18257EOF
18258
18259else
18260 echo "$ac_t""no" 1>&6
83307f33
VZ
18261fi
18262done
18263
1e487827 18264
698dcdb6 18265 echo $ac_n "checking for timezone variable in <time.h>""... $ac_c" 1>&6
e95edd8d 18266echo "configure:18267: checking for timezone variable in <time.h>" >&5
698dcdb6
VZ
18267if eval "test \"`echo '$''{'wx_cv_var_timezone'+set}'`\" = set"; then
18268 echo $ac_n "(cached) $ac_c" 1>&6
18269else
18270
18271 cat > conftest.$ac_ext <<EOF
e95edd8d 18272#line 18273 "configure"
360d6699
VZ
18273#include "confdefs.h"
18274
b4085ce6 18275 #include <time.h>
698dcdb6
VZ
18276
18277int main() {
360d6699
VZ
18278
18279 int tz;
4f11a343 18280 tz = timezone;
698dcdb6
VZ
18281
18282; return 0; }
18283EOF
e95edd8d 18284if { (eval echo configure:18285: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6
VZ
18285 rm -rf conftest*
18286
4f11a343 18287 wx_cv_var_timezone=timezone
698dcdb6 18288
360d6699 18289else
698dcdb6
VZ
18290 echo "configure: failed program was:" >&5
18291 cat conftest.$ac_ext >&5
18292 rm -rf conftest*
18293
18294 cat > conftest.$ac_ext <<EOF
e95edd8d 18295#line 18296 "configure"
360d6699
VZ
18296#include "confdefs.h"
18297
b4085ce6 18298 #include <time.h>
698dcdb6
VZ
18299
18300int main() {
360d6699
VZ
18301
18302 int tz;
18303 tz = _timezone;
698dcdb6
VZ
18304
18305; return 0; }
18306EOF
e95edd8d 18307if { (eval echo configure:18308: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6
VZ
18308 rm -rf conftest*
18309
360d6699 18310 wx_cv_var_timezone=_timezone
698dcdb6 18311
5357c8e8 18312else
698dcdb6
VZ
18313 echo "configure: failed program was:" >&5
18314 cat conftest.$ac_ext >&5
18315 rm -rf conftest*
18316
18317 cat > conftest.$ac_ext <<EOF
e95edd8d 18318#line 18319 "configure"
5357c8e8
VZ
18319#include "confdefs.h"
18320
b4085ce6 18321 #include <time.h>
698dcdb6
VZ
18322
18323int main() {
5357c8e8
VZ
18324
18325 int tz;
4f11a343 18326 tz = __timezone;
698dcdb6
VZ
18327
18328; return 0; }
18329EOF
e95edd8d 18330if { (eval echo configure:18331: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6
VZ
18331 rm -rf conftest*
18332
4f11a343 18333 wx_cv_var_timezone=__timezone
698dcdb6 18334
360d6699 18335else
698dcdb6
VZ
18336 echo "configure: failed program was:" >&5
18337 cat conftest.$ac_ext >&5
18338 rm -rf conftest*
f9bc1684
VS
18339
18340 if test "$USE_DOS" = 0 ; then
18341 { echo "configure: error: no timezone variable" 1>&2; exit 1; }
18342 fi
18343
698dcdb6 18344
360d6699 18345fi
698dcdb6
VZ
18346rm -f conftest*
18347
18348
360d6699 18349fi
698dcdb6
VZ
18350rm -f conftest*
18351
18352
6232543b 18353fi
698dcdb6
VZ
18354rm -f conftest*
18355
18356
1e487827 18357fi
703e0a69 18358
698dcdb6
VZ
18359echo "$ac_t""$wx_cv_var_timezone" 1>&6
18360
f9bc1684 18361 if test "x$wx_cv_var_timezone" != x ; then
698dcdb6 18362 cat >> confdefs.h <<EOF
360d6699
VZ
18363#define WX_TIMEZONE $wx_cv_var_timezone
18364EOF
18365
f9bc1684 18366 fi
698dcdb6
VZ
18367
18368 for ac_func in localtime
afc31813 18369do
698dcdb6 18370echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
e95edd8d 18371echo "configure:18372: checking for $ac_func" >&5
698dcdb6
VZ
18372if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18373 echo $ac_n "(cached) $ac_c" 1>&6
18374else
18375 cat > conftest.$ac_ext <<EOF
e95edd8d 18376#line 18377 "configure"
10f2d63a 18377#include "confdefs.h"
afc31813 18378/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 18379 which can conflict with char $ac_func(); below. */
afc31813
VZ
18380#include <assert.h>
18381/* Override any gcc2 internal prototype to avoid an error. */
18382/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
18383 builtin and then its argument prototype would still apply. */
18384char $ac_func();
18385
18386int main() {
afc31813
VZ
18387
18388/* The GNU C library defines this for functions which it implements
18389 to always fail with ENOSYS. Some functions are actually named
18390 something starting with __ and the normal name is an alias. */
18391#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18392choke me
18393#else
698dcdb6 18394$ac_func();
afc31813
VZ
18395#endif
18396
698dcdb6 18397; return 0; }
10f2d63a 18398EOF
e95edd8d 18399if { (eval echo configure:18400: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
18400 rm -rf conftest*
18401 eval "ac_cv_func_$ac_func=yes"
18402else
18403 echo "configure: failed program was:" >&5
18404 cat conftest.$ac_ext >&5
18405 rm -rf conftest*
18406 eval "ac_cv_func_$ac_func=no"
18407fi
18408rm -f conftest*
18409fi
afc31813 18410
698dcdb6
VZ
18411if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18412 echo "$ac_t""yes" 1>&6
18413 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18414 cat >> confdefs.h <<EOF
18415#define $ac_tr_func 1
18416EOF
18417
18418else
18419 echo "$ac_t""no" 1>&6
afc31813
VZ
18420fi
18421done
18422
1e487827 18423
698dcdb6
VZ
18424 if test "$ac_cv_func_localtime" = "yes"; then
18425 echo $ac_n "checking for tm_gmtoff in struct tm""... $ac_c" 1>&6
e95edd8d 18426echo "configure:18427: checking for tm_gmtoff in struct tm" >&5
698dcdb6
VZ
18427if eval "test \"`echo '$''{'wx_cv_struct_tm_has_gmtoff'+set}'`\" = set"; then
18428 echo $ac_n "(cached) $ac_c" 1>&6
18429else
18430
18431 cat > conftest.$ac_ext <<EOF
e95edd8d 18432#line 18433 "configure"
0470b1e6
VZ
18433#include "confdefs.h"
18434
b4085ce6 18435 #include <time.h>
698dcdb6
VZ
18436
18437int main() {
0470b1e6
VZ
18438
18439 struct tm tm;
18440 tm.tm_gmtoff++;
698dcdb6
VZ
18441
18442; return 0; }
18443EOF
e95edd8d 18444if { (eval echo configure:18445: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6
VZ
18445 rm -rf conftest*
18446
f03a98d8 18447 wx_cv_struct_tm_has_gmtoff=yes
698dcdb6 18448
0470b1e6 18449else
698dcdb6
VZ
18450 echo "configure: failed program was:" >&5
18451 cat conftest.$ac_ext >&5
18452 rm -rf conftest*
18453 wx_cv_struct_tm_has_gmtoff=no
18454
0470b1e6 18455fi
698dcdb6
VZ
18456rm -f conftest*
18457
1e487827 18458fi
698dcdb6
VZ
18459
18460echo "$ac_t""$wx_cv_struct_tm_has_gmtoff" 1>&6
6232543b
VS
18461 fi
18462
18463 if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then
698dcdb6 18464 cat >> confdefs.h <<\EOF
6232543b
VS
18465#define WX_GMTOFF_IN_TM 1
18466EOF
0470b1e6 18467
3fcdd07b
VZ
18468 fi
18469
698dcdb6 18470 for ac_func in gettimeofday ftime
3fcdd07b 18471do
698dcdb6 18472echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
e95edd8d 18473echo "configure:18474: checking for $ac_func" >&5
698dcdb6
VZ
18474if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18475 echo $ac_n "(cached) $ac_c" 1>&6
18476else
18477 cat > conftest.$ac_ext <<EOF
e95edd8d 18478#line 18479 "configure"
3fcdd07b
VZ
18479#include "confdefs.h"
18480/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 18481 which can conflict with char $ac_func(); below. */
3fcdd07b
VZ
18482#include <assert.h>
18483/* Override any gcc2 internal prototype to avoid an error. */
18484/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
18485 builtin and then its argument prototype would still apply. */
18486char $ac_func();
18487
18488int main() {
3fcdd07b
VZ
18489
18490/* The GNU C library defines this for functions which it implements
18491 to always fail with ENOSYS. Some functions are actually named
18492 something starting with __ and the normal name is an alias. */
18493#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18494choke me
18495#else
698dcdb6 18496$ac_func();
3fcdd07b
VZ
18497#endif
18498
698dcdb6
VZ
18499; return 0; }
18500EOF
e95edd8d 18501if { (eval echo configure:18502: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
18502 rm -rf conftest*
18503 eval "ac_cv_func_$ac_func=yes"
18504else
18505 echo "configure: failed program was:" >&5
18506 cat conftest.$ac_ext >&5
18507 rm -rf conftest*
18508 eval "ac_cv_func_$ac_func=no"
18509fi
18510rm -f conftest*
18511fi
18512
18513if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18514 echo "$ac_t""yes" 1>&6
18515 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18516 cat >> confdefs.h <<EOF
18517#define $ac_tr_func 1
3fcdd07b
VZ
18518EOF
18519 break
698dcdb6
VZ
18520else
18521 echo "$ac_t""no" 1>&6
3fcdd07b
VZ
18522fi
18523done
18524
afc31813 18525
698dcdb6
VZ
18526 if test "$ac_cv_func_gettimeofday" = "yes"; then
18527 echo $ac_n "checking whether gettimeofday takes two arguments""... $ac_c" 1>&6
e95edd8d 18528echo "configure:18529: checking whether gettimeofday takes two arguments" >&5
698dcdb6
VZ
18529if eval "test \"`echo '$''{'wx_cv_func_gettimeofday_has_2_args'+set}'`\" = set"; then
18530 echo $ac_n "(cached) $ac_c" 1>&6
18531else
18532
18533
18534 ac_ext=C
18535# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1e487827 18536ac_cpp='$CXXCPP $CPPFLAGS'
698dcdb6
VZ
18537ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18538ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18539cross_compiling=$ac_cv_prog_cxx_cross
703e0a69 18540
698dcdb6
VZ
18541
18542 cat > conftest.$ac_ext <<EOF
e95edd8d 18543#line 18544 "configure"
10f2d63a 18544#include "confdefs.h"
afc31813
VZ
18545
18546 #include <sys/time.h>
18547 #include <unistd.h>
698dcdb6
VZ
18548
18549int main() {
afc31813
VZ
18550
18551 struct timeval tv;
776862b4 18552 gettimeofday(&tv, NULL);
698dcdb6
VZ
18553
18554; return 0; }
18555EOF
e95edd8d 18556if { (eval echo configure:18557: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6 18557 rm -rf conftest*
afc31813 18558 wx_cv_func_gettimeofday_has_2_args=yes
10f2d63a 18559else
698dcdb6
VZ
18560 echo "configure: failed program was:" >&5
18561 cat conftest.$ac_ext >&5
18562 rm -rf conftest*
18563 cat > conftest.$ac_ext <<EOF
e95edd8d 18564#line 18565 "configure"
10f2d63a 18565#include "confdefs.h"
afc31813
VZ
18566
18567 #include <sys/time.h>
18568 #include <unistd.h>
698dcdb6
VZ
18569
18570int main() {
afc31813
VZ
18571
18572 struct timeval tv;
18573 gettimeofday(&tv);
698dcdb6
VZ
18574
18575; return 0; }
18576EOF
e95edd8d 18577if { (eval echo configure:18578: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6 18578 rm -rf conftest*
afc31813 18579 wx_cv_func_gettimeofday_has_2_args=no
10f2d63a 18580else
698dcdb6
VZ
18581 echo "configure: failed program was:" >&5
18582 cat conftest.$ac_ext >&5
18583 rm -rf conftest*
776862b4
VZ
18584
18585 echo "configure: warning: failed to determine number of gettimeofday() arguments" 1>&2
18586 wx_cv_func_gettimeofday_has_2_args=unknown
18587
698dcdb6 18588
10f2d63a 18589fi
698dcdb6
VZ
18590rm -f conftest*
18591
10f2d63a 18592fi
698dcdb6 18593rm -f conftest*
afc31813 18594 ac_ext=c
698dcdb6 18595# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10f2d63a 18596ac_cpp='$CPP $CPPFLAGS'
698dcdb6
VZ
18597ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18598ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18599cross_compiling=$ac_cv_prog_cc_cross
10f2d63a 18600
698dcdb6 18601
afc31813 18602fi
698dcdb6
VZ
18603
18604echo "$ac_t""$wx_cv_func_gettimeofday_has_2_args" 1>&6
c63c7106 18605
afc31813 18606 if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then
698dcdb6 18607 cat >> confdefs.h <<\EOF
afc31813
VZ
18608#define WX_GETTIMEOFDAY_NO_TZ 1
18609EOF
18610
18611 fi
18612 fi
18613
698dcdb6 18614 cat >> confdefs.h <<\EOF
afc31813
VZ
18615#define wxUSE_TIMEDATE 1
18616EOF
18617
18618 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest"
18619fi
18620
698dcdb6 18621
0feee163
VZ
18622if test "$wxUSE_SOCKETS" = "yes"; then
18623 if test "$TOOLKIT" = "X11"; then
18624 echo "configure: warning: wxSocket not yet supported under X11... disabled" 1>&2
18625 wxUSE_SOCKETS="no"
18626 fi
18627fi
b089607b 18628
0feee163
VZ
18629if test "$wxUSE_SOCKETS" = "yes"; then
18630 if test "$TOOLKIT" != "MSW"; then
3a922bb4 18631 echo $ac_n "checking for socket""... $ac_c" 1>&6
e95edd8d 18632echo "configure:18633: checking for socket" >&5
698dcdb6
VZ
18633if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then
18634 echo $ac_n "(cached) $ac_c" 1>&6
c63c7106 18635else
698dcdb6 18636 cat > conftest.$ac_ext <<EOF
e95edd8d 18637#line 18638 "configure"
c63c7106
VZ
18638#include "confdefs.h"
18639/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 18640 which can conflict with char socket(); below. */
c63c7106
VZ
18641#include <assert.h>
18642/* Override any gcc2 internal prototype to avoid an error. */
18643/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
18644 builtin and then its argument prototype would still apply. */
18645char socket();
18646
18647int main() {
c63c7106
VZ
18648
18649/* The GNU C library defines this for functions which it implements
18650 to always fail with ENOSYS. Some functions are actually named
18651 something starting with __ and the normal name is an alias. */
18652#if defined (__stub_socket) || defined (__stub___socket)
18653choke me
18654#else
698dcdb6 18655socket();
c63c7106
VZ
18656#endif
18657
698dcdb6
VZ
18658; return 0; }
18659EOF
e95edd8d 18660if { (eval echo configure:18661: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
18661 rm -rf conftest*
18662 eval "ac_cv_func_socket=yes"
18663else
18664 echo "configure: failed program was:" >&5
18665 cat conftest.$ac_ext >&5
18666 rm -rf conftest*
18667 eval "ac_cv_func_socket=no"
18668fi
18669rm -f conftest*
18670fi
18671
18672if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
18673 echo "$ac_t""yes" 1>&6
c63c7106
VZ
18674 :
18675else
698dcdb6
VZ
18676 echo "$ac_t""no" 1>&6
18677echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
e95edd8d 18678echo "configure:18679: checking for socket in -lsocket" >&5
698dcdb6
VZ
18679ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'`
18680if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
18681 echo $ac_n "(cached) $ac_c" 1>&6
c63c7106 18682else
698dcdb6 18683 ac_save_LIBS="$LIBS"
c63c7106 18684LIBS="-lsocket $LIBS"
698dcdb6 18685cat > conftest.$ac_ext <<EOF
e95edd8d 18686#line 18687 "configure"
c63c7106
VZ
18687#include "confdefs.h"
18688/* Override any gcc2 internal prototype to avoid an error. */
18689/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
18690 builtin and then its argument prototype would still apply. */
18691char socket();
18692
18693int main() {
18694socket()
18695; return 0; }
18696EOF
e95edd8d 18697if { (eval echo configure:18698: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
18698 rm -rf conftest*
18699 eval "ac_cv_lib_$ac_lib_var=yes"
18700else
18701 echo "configure: failed program was:" >&5
18702 cat conftest.$ac_ext >&5
18703 rm -rf conftest*
18704 eval "ac_cv_lib_$ac_lib_var=no"
18705fi
18706rm -f conftest*
18707LIBS="$ac_save_LIBS"
18708
18709fi
18710if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
18711 echo "$ac_t""yes" 1>&6
d558c907
VS
18712 if test "$INET_LINK" != " -lsocket"; then
18713 INET_LINK="$INET_LINK -lsocket"
18714 fi
c63c7106 18715else
698dcdb6 18716 echo "$ac_t""no" 1>&6
afc31813 18717
3a922bb4
RL
18718 echo "configure: warning: socket library not found - sockets will be disabled" 1>&2
18719 wxUSE_SOCKETS=no
18720
698dcdb6 18721
6232543b 18722fi
b089607b 18723
3a922bb4 18724
1e487827 18725fi
afc31813 18726
3a922bb4 18727 fi
0feee163 18728fi
51a9faba 18729
0feee163
VZ
18730if test "$wxUSE_SOCKETS" = "yes" ; then
18731 if test "$TOOLKIT" != "MSW"; then
3a922bb4 18732 echo $ac_n "checking what is the type of the third argument of getsockname""... $ac_c" 1>&6
e95edd8d 18733echo "configure:18734: checking what is the type of the third argument of getsockname" >&5
698dcdb6
VZ
18734if eval "test \"`echo '$''{'wx_cv_type_getsockname3'+set}'`\" = set"; then
18735 echo $ac_n "(cached) $ac_c" 1>&6
18736else
18737
3a922bb4
RL
18738
18739 ac_ext=C
698dcdb6 18740# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1e487827 18741ac_cpp='$CXXCPP $CPPFLAGS'
698dcdb6
VZ
18742ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18743ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18744cross_compiling=$ac_cv_prog_cxx_cross
703e0a69 18745
698dcdb6 18746
3a922bb4 18747 cat > conftest.$ac_ext <<EOF
e95edd8d 18748#line 18749 "configure"
afc31813 18749#include "confdefs.h"
51a9faba 18750
3a922bb4
RL
18751 #include <sys/types.h>
18752 #include <sys/socket.h>
18753
698dcdb6 18754int main() {
51a9faba 18755
3a922bb4
RL
18756 socklen_t len;
18757 getsockname(0, 0, &len);
18758
698dcdb6
VZ
18759; return 0; }
18760EOF
e95edd8d 18761if { (eval echo configure:18762: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6 18762 rm -rf conftest*
51a9faba 18763 wx_cv_type_getsockname3=socklen_t
afc31813 18764else
698dcdb6
VZ
18765 echo "configure: failed program was:" >&5
18766 cat conftest.$ac_ext >&5
18767 rm -rf conftest*
18768 cat > conftest.$ac_ext <<EOF
e95edd8d 18769#line 18770 "configure"
afc31813 18770#include "confdefs.h"
51a9faba 18771
3a922bb4
RL
18772 #include <sys/types.h>
18773 #include <sys/socket.h>
18774
698dcdb6 18775int main() {
51a9faba 18776
3a922bb4
RL
18777 size_t len;
18778 getsockname(0, 0, &len);
18779
698dcdb6
VZ
18780; return 0; }
18781EOF
e95edd8d 18782if { (eval echo configure:18783: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6 18783 rm -rf conftest*
51a9faba 18784 wx_cv_type_getsockname3=size_t
afc31813 18785else
698dcdb6
VZ
18786 echo "configure: failed program was:" >&5
18787 cat conftest.$ac_ext >&5
18788 rm -rf conftest*
18789 cat > conftest.$ac_ext <<EOF
e95edd8d 18790#line 18791 "configure"
afc31813 18791#include "confdefs.h"
51a9faba 18792
3a922bb4
RL
18793 #include <sys/types.h>
18794 #include <sys/socket.h>
18795
698dcdb6 18796int main() {
51a9faba 18797
3a922bb4
RL
18798 int len;
18799 getsockname(0, 0, &len);
18800
698dcdb6
VZ
18801; return 0; }
18802EOF
e95edd8d 18803if { (eval echo configure:18804: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6 18804 rm -rf conftest*
51a9faba 18805 wx_cv_type_getsockname3=int
afc31813 18806else
698dcdb6
VZ
18807 echo "configure: failed program was:" >&5
18808 cat conftest.$ac_ext >&5
18809 rm -rf conftest*
18810 wx_cv_type_getsockname3=unknown
3a922bb4 18811
afc31813 18812fi
698dcdb6 18813rm -f conftest*
3a922bb4 18814
afc31813 18815fi
698dcdb6 18816rm -f conftest*
3a922bb4 18817
afc31813 18818fi
698dcdb6 18819rm -f conftest*
51a9faba 18820
3a922bb4 18821 ac_ext=c
698dcdb6 18822# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
afc31813 18823ac_cpp='$CPP $CPPFLAGS'
698dcdb6
VZ
18824ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18825ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18826cross_compiling=$ac_cv_prog_cc_cross
afc31813 18827
3a922bb4 18828
51a9faba 18829fi
698dcdb6
VZ
18830
18831echo "$ac_t""$wx_cv_type_getsockname3" 1>&6
51a9faba 18832
3a922bb4
RL
18833 if test "$wx_cv_type_getsockname3" = "unknown"; then
18834 wxUSE_SOCKETS=no
18835 echo "configure: warning: Couldn't find socklen_t synonym for this system" 1>&2
18836 else
18837 cat >> confdefs.h <<EOF
51a9faba
VZ
18838#define SOCKLEN_T $wx_cv_type_getsockname3
18839EOF
18840
3a922bb4 18841 fi
51a9faba
VZ
18842 fi
18843fi
afc31813 18844
51a9faba 18845if test "$wxUSE_SOCKETS" = "yes" ; then
698dcdb6 18846 cat >> confdefs.h <<\EOF
afc31813
VZ
18847#define wxUSE_SOCKETS 1
18848EOF
18849
70f7a477 18850 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets"
afc31813
VZ
18851fi
18852
698dcdb6 18853
dc3d889d
VZ
18854if test "$wxUSE_GUI" = "yes"; then
18855
156b2523
GD
18856 if test "$TOOLKIT" = "MAC"; then
18857 echo "configure: warning: Joystick not yet supported under Mac OS X... disabled" 1>&2
18858 wxUSE_JOYSTICK=no
18859 fi
18860 if test "$TOOLKIT" = "MOTIF"; then
18861 echo "configure: warning: Joystick not yet supported under Motif... disabled" 1>&2
18862 wxUSE_JOYSTICK=no
f79bd02d
JS
18863 fi
18864 if test "$TOOLKIT" = "X11"; then
18865 echo "configure: warning: Joystick not yet supported under X11... disabled" 1>&2
18866 wxUSE_JOYSTICK=no
156b2523
GD
18867 fi
18868
3a922bb4
RL
18869 if test "$TOOLKIT" != "MSW"; then
18870 if test "$wxUSE_JOYSTICK" = "yes"; then
18871 for ac_hdr in linux/joystick.h
10f2d63a 18872do
698dcdb6
VZ
18873ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
18874echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
e95edd8d 18875echo "configure:18876: checking for $ac_hdr" >&5
698dcdb6
VZ
18876if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
18877 echo $ac_n "(cached) $ac_c" 1>&6
18878else
18879 cat > conftest.$ac_ext <<EOF
e95edd8d 18880#line 18881 "configure"
10f2d63a 18881#include "confdefs.h"
698dcdb6
VZ
18882#include <$ac_hdr>
18883EOF
18884ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
e95edd8d 18885{ (eval echo configure:18886: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
18886ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
18887if test -z "$ac_err"; then
18888 rm -rf conftest*
18889 eval "ac_cv_header_$ac_safe=yes"
10f2d63a 18890else
698dcdb6
VZ
18891 echo "$ac_err" >&5
18892 echo "configure: failed program was:" >&5
10f2d63a 18893 cat conftest.$ac_ext >&5
698dcdb6
VZ
18894 rm -rf conftest*
18895 eval "ac_cv_header_$ac_safe=no"
10f2d63a 18896fi
698dcdb6 18897rm -f conftest*
10f2d63a 18898fi
698dcdb6
VZ
18899if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
18900 echo "$ac_t""yes" 1>&6
18901 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
18902 cat >> confdefs.h <<EOF
18903#define $ac_tr_hdr 1
10f2d63a 18904EOF
698dcdb6
VZ
18905
18906else
18907 echo "$ac_t""no" 1>&6
10f2d63a
VZ
18908fi
18909done
18910
3a922bb4
RL
18911 if test "$ac_cv_header_linux_joystick_h" != "yes"; then
18912 wxUSE_JOYSTICK=no
156b2523 18913 echo "configure: warning: Joystick not supported by this system... disabled" 1>&2
3a922bb4
RL
18914 fi
18915 fi
18916 fi
b089607b 18917
3a922bb4
RL
18918 if test "$wxUSE_JOYSTICK" = "yes"; then
18919 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18920#define wxUSE_JOYSTICK 1
18921EOF
18922
3a922bb4
RL
18923 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest"
18924 fi
dc3d889d
VZ
18925fi
18926
698dcdb6 18927
b089607b
VZ
18928if test "$TOOLKIT" != "MSW"; then
18929
3a922bb4
RL
18930 HAVE_DL_FUNCS=0
18931 HAVE_SHL_FUNCS=0
0b9ab0bd 18932 if test "$wxUSE_DYNAMIC_LOADER" = "yes" -o "$wxUSE_DYNLIB_CLASS" = "yes" ; then
3a922bb4
RL
18933 if test "$USE_DARWIN" = 1; then
18934 HAVE_DL_FUNCS=1
18935 else
18936 for ac_func in dlopen
10f2d63a 18937do
698dcdb6 18938echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
e95edd8d 18939echo "configure:18940: checking for $ac_func" >&5
698dcdb6
VZ
18940if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18941 echo $ac_n "(cached) $ac_c" 1>&6
18942else
18943 cat > conftest.$ac_ext <<EOF
e95edd8d 18944#line 18945 "configure"
10f2d63a
VZ
18945#include "confdefs.h"
18946/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 18947 which can conflict with char $ac_func(); below. */
10f2d63a
VZ
18948#include <assert.h>
18949/* Override any gcc2 internal prototype to avoid an error. */
18950/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
18951 builtin and then its argument prototype would still apply. */
18952char $ac_func();
18953
18954int main() {
10f2d63a
VZ
18955
18956/* The GNU C library defines this for functions which it implements
18957 to always fail with ENOSYS. Some functions are actually named
18958 something starting with __ and the normal name is an alias. */
18959#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18960choke me
18961#else
698dcdb6 18962$ac_func();
10f2d63a
VZ
18963#endif
18964
698dcdb6
VZ
18965; return 0; }
18966EOF
e95edd8d 18967if { (eval echo configure:18968: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
18968 rm -rf conftest*
18969 eval "ac_cv_func_$ac_func=yes"
18970else
18971 echo "configure: failed program was:" >&5
18972 cat conftest.$ac_ext >&5
18973 rm -rf conftest*
18974 eval "ac_cv_func_$ac_func=no"
18975fi
18976rm -f conftest*
18977fi
18978
18979if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18980 echo "$ac_t""yes" 1>&6
18981 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18982 cat >> confdefs.h <<EOF
18983#define $ac_tr_func 1
18984EOF
18985
3a922bb4 18986 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18987#define HAVE_DLOPEN 1
18988EOF
18989
3a922bb4
RL
18990 HAVE_DL_FUNCS=1
18991
10f2d63a 18992else
698dcdb6
VZ
18993 echo "$ac_t""no" 1>&6
18994echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
e95edd8d 18995echo "configure:18996: checking for dlopen in -ldl" >&5
698dcdb6
VZ
18996ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
18997if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
18998 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 18999else
698dcdb6 19000 ac_save_LIBS="$LIBS"
10f2d63a 19001LIBS="-ldl $LIBS"
698dcdb6 19002cat > conftest.$ac_ext <<EOF
e95edd8d 19003#line 19004 "configure"
10f2d63a
VZ
19004#include "confdefs.h"
19005/* Override any gcc2 internal prototype to avoid an error. */
19006/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
19007 builtin and then its argument prototype would still apply. */
19008char dlopen();
19009
19010int main() {
19011dlopen()
19012; return 0; }
19013EOF
e95edd8d 19014if { (eval echo configure:19015: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
19015 rm -rf conftest*
19016 eval "ac_cv_lib_$ac_lib_var=yes"
19017else
19018 echo "configure: failed program was:" >&5
19019 cat conftest.$ac_ext >&5
19020 rm -rf conftest*
19021 eval "ac_cv_lib_$ac_lib_var=no"
19022fi
19023rm -f conftest*
19024LIBS="$ac_save_LIBS"
19025
19026fi
19027if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
19028 echo "$ac_t""yes" 1>&6
19029
3a922bb4 19030 cat >> confdefs.h <<\EOF
10f2d63a
VZ
19031#define HAVE_DLOPEN 1
19032EOF
19033
3a922bb4 19034 HAVE_DL_FUNCS=1
3d63bc3a 19035 DL_LINK=" -ldl$DL_LINK"
3a922bb4 19036
10f2d63a 19037else
698dcdb6 19038 echo "$ac_t""no" 1>&6
10f2d63a 19039
3a922bb4 19040 for ac_func in shl_load
10f2d63a 19041do
698dcdb6 19042echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
e95edd8d 19043echo "configure:19044: checking for $ac_func" >&5
698dcdb6
VZ
19044if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19045 echo $ac_n "(cached) $ac_c" 1>&6
19046else
19047 cat > conftest.$ac_ext <<EOF
e95edd8d 19048#line 19049 "configure"
10f2d63a
VZ
19049#include "confdefs.h"
19050/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 19051 which can conflict with char $ac_func(); below. */
10f2d63a
VZ
19052#include <assert.h>
19053/* Override any gcc2 internal prototype to avoid an error. */
19054/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
19055 builtin and then its argument prototype would still apply. */
19056char $ac_func();
19057
19058int main() {
10f2d63a
VZ
19059
19060/* The GNU C library defines this for functions which it implements
19061 to always fail with ENOSYS. Some functions are actually named
19062 something starting with __ and the normal name is an alias. */
19063#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19064choke me
19065#else
698dcdb6 19066$ac_func();
10f2d63a
VZ
19067#endif
19068
698dcdb6
VZ
19069; return 0; }
19070EOF
e95edd8d 19071if { (eval echo configure:19072: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
19072 rm -rf conftest*
19073 eval "ac_cv_func_$ac_func=yes"
19074else
19075 echo "configure: failed program was:" >&5
19076 cat conftest.$ac_ext >&5
19077 rm -rf conftest*
19078 eval "ac_cv_func_$ac_func=no"
19079fi
19080rm -f conftest*
19081fi
19082
19083if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19084 echo "$ac_t""yes" 1>&6
19085 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19086 cat >> confdefs.h <<EOF
19087#define $ac_tr_func 1
19088EOF
19089
3a922bb4 19090 cat >> confdefs.h <<\EOF
10f2d63a
VZ
19091#define HAVE_SHL_LOAD 1
19092EOF
19093
3a922bb4
RL
19094 HAVE_SHL_FUNCS=1
19095
10f2d63a 19096else
698dcdb6
VZ
19097 echo "$ac_t""no" 1>&6
19098echo $ac_n "checking for dld in -lshl_load""... $ac_c" 1>&6
e95edd8d 19099echo "configure:19100: checking for dld in -lshl_load" >&5
698dcdb6
VZ
19100ac_lib_var=`echo shl_load'_'dld | sed 'y%./+-%__p_%'`
19101if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
19102 echo $ac_n "(cached) $ac_c" 1>&6
f6bcfd97 19103else
698dcdb6 19104 ac_save_LIBS="$LIBS"
f6bcfd97 19105LIBS="-lshl_load $LIBS"
698dcdb6 19106cat > conftest.$ac_ext <<EOF
e95edd8d 19107#line 19108 "configure"
f6bcfd97
BP
19108#include "confdefs.h"
19109/* Override any gcc2 internal prototype to avoid an error. */
19110/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
19111 builtin and then its argument prototype would still apply. */
19112char dld();
19113
19114int main() {
19115dld()
19116; return 0; }
19117EOF
e95edd8d 19118if { (eval echo configure:19119: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
19119 rm -rf conftest*
19120 eval "ac_cv_lib_$ac_lib_var=yes"
19121else
19122 echo "configure: failed program was:" >&5
19123 cat conftest.$ac_ext >&5
19124 rm -rf conftest*
19125 eval "ac_cv_lib_$ac_lib_var=no"
19126fi
19127rm -f conftest*
19128LIBS="$ac_save_LIBS"
f6bcfd97 19129
698dcdb6
VZ
19130fi
19131if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
19132 echo "$ac_t""yes" 1>&6
19133
3a922bb4 19134 HAVE_SHL_FUNCS=1
3d63bc3a 19135 DL_LINK=" -ldld$DL_LINK"
3a922bb4 19136
698dcdb6
VZ
19137else
19138 echo "$ac_t""no" 1>&6
f6bcfd97
BP
19139fi
19140
3a922bb4 19141
10f2d63a
VZ
19142fi
19143done
19144
3a922bb4 19145
10f2d63a
VZ
19146fi
19147
3a922bb4 19148
10f2d63a
VZ
19149fi
19150done
19151
1e487827 19152
3a922bb4
RL
19153 if test "$HAVE_DL_FUNCS" = 1; then
19154 for ac_func in dlerror
f6bcfd97 19155do
698dcdb6 19156echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
e95edd8d 19157echo "configure:19158: checking for $ac_func" >&5
698dcdb6
VZ
19158if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19159 echo $ac_n "(cached) $ac_c" 1>&6
19160else
19161 cat > conftest.$ac_ext <<EOF
e95edd8d 19162#line 19163 "configure"
f6bcfd97
BP
19163#include "confdefs.h"
19164/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 19165 which can conflict with char $ac_func(); below. */
f6bcfd97
BP
19166#include <assert.h>
19167/* Override any gcc2 internal prototype to avoid an error. */
19168/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
19169 builtin and then its argument prototype would still apply. */
19170char $ac_func();
19171
19172int main() {
f6bcfd97
BP
19173
19174/* The GNU C library defines this for functions which it implements
19175 to always fail with ENOSYS. Some functions are actually named
19176 something starting with __ and the normal name is an alias. */
19177#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19178choke me
19179#else
698dcdb6 19180$ac_func();
f6bcfd97
BP
19181#endif
19182
698dcdb6
VZ
19183; return 0; }
19184EOF
e95edd8d 19185if { (eval echo configure:19186: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
19186 rm -rf conftest*
19187 eval "ac_cv_func_$ac_func=yes"
19188else
19189 echo "configure: failed program was:" >&5
19190 cat conftest.$ac_ext >&5
19191 rm -rf conftest*
19192 eval "ac_cv_func_$ac_func=no"
19193fi
19194rm -f conftest*
19195fi
19196
19197if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19198 echo "$ac_t""yes" 1>&6
19199 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19200 cat >> confdefs.h <<EOF
19201#define $ac_tr_func 1
19202EOF
19203 cat >> confdefs.h <<\EOF
f6bcfd97
BP
19204#define HAVE_DLERROR 1
19205EOF
19206
19207else
698dcdb6
VZ
19208 echo "$ac_t""no" 1>&6
19209echo $ac_n "checking for dlerror in -ldl""... $ac_c" 1>&6
e95edd8d 19210echo "configure:19211: checking for dlerror in -ldl" >&5
698dcdb6
VZ
19211ac_lib_var=`echo dl'_'dlerror | sed 'y%./+-%__p_%'`
19212if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
19213 echo $ac_n "(cached) $ac_c" 1>&6
f6bcfd97 19214else
698dcdb6 19215 ac_save_LIBS="$LIBS"
f6bcfd97 19216LIBS="-ldl $LIBS"
698dcdb6 19217cat > conftest.$ac_ext <<EOF
e95edd8d 19218#line 19219 "configure"
f6bcfd97
BP
19219#include "confdefs.h"
19220/* Override any gcc2 internal prototype to avoid an error. */
19221/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
19222 builtin and then its argument prototype would still apply. */
19223char dlerror();
19224
19225int main() {
19226dlerror()
19227; return 0; }
19228EOF
e95edd8d 19229if { (eval echo configure:19230: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
19230 rm -rf conftest*
19231 eval "ac_cv_lib_$ac_lib_var=yes"
19232else
19233 echo "configure: failed program was:" >&5
19234 cat conftest.$ac_ext >&5
19235 rm -rf conftest*
19236 eval "ac_cv_lib_$ac_lib_var=no"
19237fi
19238rm -f conftest*
19239LIBS="$ac_save_LIBS"
19240
19241fi
19242if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
19243 echo "$ac_t""yes" 1>&6
19244 cat >> confdefs.h <<\EOF
f6bcfd97
BP
19245#define HAVE_DLERROR 1
19246EOF
19247
698dcdb6
VZ
19248else
19249 echo "$ac_t""no" 1>&6
f6bcfd97
BP
19250fi
19251
19252fi
19253done
19254
3a922bb4
RL
19255 fi
19256 fi
f6bcfd97 19257
3a922bb4
RL
19258 if test "$HAVE_DL_FUNCS" = 0; then
19259 if test "$HAVE_SHL_FUNCS" = 0; then
19260 if test "$USE_UNIX" = 1; then
19261 echo "configure: warning: Missing dynamic loading support, several features will be disabled" 1>&2
0b9ab0bd 19262 wxUSE_DYNAMIC_LOADER=no
3a922bb4
RL
19263 wxUSE_DYNLIB_CLASS=no
19264 else
19265 echo "configure: warning: Assuming wxLibrary class works on this platform" 1>&2
19266 fi
19267 fi
10f2d63a
VZ
19268 fi
19269 fi
19270fi
19271
0b9ab0bd
RL
19272if test "$wxUSE_DYNAMIC_LOADER" = "yes" ; then
19273 cat >> confdefs.h <<\EOF
19274#define wxUSE_DYNAMIC_LOADER 1
19275EOF
19276
19277elif test "$wxUSE_DYNLIB_CLASS" = "yes" ; then
698dcdb6 19278 cat >> confdefs.h <<\EOF
10f2d63a
VZ
19279#define wxUSE_DYNLIB_CLASS 1
19280EOF
19281
19282fi
19283
698dcdb6 19284
1e6feb95
VZ
19285if test "$wxUSE_FONTMAP" = "yes" ; then
19286 cat >> confdefs.h <<\EOF
19287#define wxUSE_FONTMAP 1
19288EOF
19289
19290fi
19291
10f2d63a 19292if test "$wxUSE_UNICODE" = "yes" ; then
698dcdb6 19293 cat >> confdefs.h <<\EOF
10f2d63a
VZ
19294#define wxUSE_UNICODE 1
19295EOF
19296
bbc3925a
VS
19297
19298 if test "$wxUSE_MSW" != 1; then
19299 wxUSE_UNICODE_MSLU=no
19300 fi
a72a4bfa
VS
19301
19302 if test "$wxUSE_MSW" = 1 -a "$wxUSE_UNICODE_MSLU" = "yes"; then
19303 echo $ac_n "checking for main in -lunicows""... $ac_c" 1>&6
e95edd8d 19304echo "configure:19305: checking for main in -lunicows" >&5
a72a4bfa
VS
19305ac_lib_var=`echo unicows'_'main | sed 'y%./+-%__p_%'`
19306if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
19307 echo $ac_n "(cached) $ac_c" 1>&6
19308else
19309 ac_save_LIBS="$LIBS"
19310LIBS="-lunicows $LIBS"
19311cat > conftest.$ac_ext <<EOF
e95edd8d 19312#line 19313 "configure"
a72a4bfa
VS
19313#include "confdefs.h"
19314
19315int main() {
19316main()
19317; return 0; }
19318EOF
e95edd8d 19319if { (eval echo configure:19320: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a72a4bfa
VS
19320 rm -rf conftest*
19321 eval "ac_cv_lib_$ac_lib_var=yes"
19322else
19323 echo "configure: failed program was:" >&5
19324 cat conftest.$ac_ext >&5
19325 rm -rf conftest*
19326 eval "ac_cv_lib_$ac_lib_var=no"
19327fi
19328rm -f conftest*
19329LIBS="$ac_save_LIBS"
19330
19331fi
19332if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
19333 echo "$ac_t""yes" 1>&6
19334
19335 cat >> confdefs.h <<\EOF
19336#define wxUSE_UNICODE_MSLU 1
19337EOF
19338
19339
19340else
19341 echo "$ac_t""no" 1>&6
19342
19343 echo "configure: warning: Compiler doesn't support MSLU (libunicows.a), disabled.
19344 Applications will only run on Windows NT/2000/XP!" 1>&2
19345 wxUSE_UNICODE_MSLU=no
19346
19347fi
19348
19349 fi
10f2d63a
VZ
19350fi
19351
10f2d63a 19352if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then
698dcdb6 19353 cat >> confdefs.h <<\EOF
10f2d63a
VZ
19354#define wxUSE_EXPERIMENTAL_PRINTF 1
19355EOF
19356
19357fi
19358
698dcdb6 19359
698dcdb6 19360
10f2d63a
VZ
19361IODBC_C_SRC=""
19362if test "$wxUSE_ODBC" = "yes" ; then
698dcdb6 19363 cat >> confdefs.h <<\EOF
10f2d63a
VZ
19364#define wxUSE_ODBC 1
19365EOF
19366
19367 WXODBCFLAG="-D_IODBC_"
19368 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db"
10f2d63a
VZ
19369fi
19370
698dcdb6 19371
10f2d63a 19372if test "$wxUSE_POSTSCRIPT" = "yes" ; then
698dcdb6 19373 cat >> confdefs.h <<\EOF
10f2d63a
VZ
19374#define wxUSE_POSTSCRIPT 1
19375EOF
19376
19377fi
19378
698dcdb6 19379cat >> confdefs.h <<\EOF
10f2d63a
VZ
19380#define wxUSE_AFM_FOR_POSTSCRIPT 1
19381EOF
19382
698dcdb6
VZ
19383
19384cat >> confdefs.h <<\EOF
10f2d63a
VZ
19385#define wxUSE_NORMALIZED_PS_FONTS 1
19386EOF
19387
698dcdb6
VZ
19388
19389
10f2d63a 19390if test "$wxUSE_CONSTRAINTS" = "yes"; then
698dcdb6 19391 cat >> confdefs.h <<\EOF
10f2d63a
VZ
19392#define wxUSE_CONSTRAINTS 1
19393EOF
19394
19395 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout"
19396fi
19397
19398if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
fc26f4ab 19399 if test "$wxUSE_UNIVERSAL" = "yes"; then
0feee163 19400 echo "configure: warning: MDI not yet supported for wxUniversal... disabled" 1>&2
fc26f4ab
RL
19401 wxUSE_MDI_ARCHITECTURE=no
19402 fi
19403
19404 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
19405 cat >> confdefs.h <<\EOF
10f2d63a
VZ
19406#define wxUSE_MDI_ARCHITECTURE 1
19407EOF
19408
fc26f4ab
RL
19409 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi"
19410 fi
10f2d63a
VZ
19411fi
19412
19413if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then
698dcdb6 19414 cat >> confdefs.h <<\EOF
10f2d63a
VZ
19415#define wxUSE_DOC_VIEW_ARCHITECTURE 1
19416EOF
19417
19418 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview"
19419 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
19420 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi"
19421 fi
19422fi
19423
19424if test "$wxUSE_HELP" = "yes"; then
698dcdb6 19425 cat >> confdefs.h <<\EOF
10f2d63a
VZ
19426#define wxUSE_HELP 1
19427EOF
19428
19429 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help"
3379ed37 19430
77e13408 19431 if test "$wxUSE_MSW" = 1; then
031d8228 19432 if test "$wxUSE_MS_HTML_HELP" = "yes"; then
3b7bc64a 19433 cat >> confdefs.h <<\EOF
29fd3c0c
VS
19434#define wxUSE_MS_HTML_HELP 1
19435EOF
19436
3e44f09d 19437 fi
3379ed37 19438 fi
031d8228
VS
19439
19440 if test "$wxUSE_WXHTML_HELP" = "yes"; then
19441 if test "$wxUSE_HTML" = "yes"; then
19442 cat >> confdefs.h <<\EOF
19443#define wxUSE_WXHTML_HELP 1
19444EOF
19445
19446 else
19447 echo "configure: warning: Cannot use wxHTML-based help without wxHTML so it won't be compiled" 1>&2
19448 wxUSE_WXHTML_HELP=no
19449 fi
19450 fi
10f2d63a
VZ
19451fi
19452
19453if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
19454 if test "$wxUSE_CONSTRAINTS" != "yes"; then
698dcdb6 19455 echo "configure: warning: Printing support cannot be used without constraints so it won't be compiled without it" 1>&2
10f2d63a 19456 else
698dcdb6 19457 cat >> confdefs.h <<\EOF
10f2d63a
VZ
19458#define wxUSE_PRINTING_ARCHITECTURE 1
19459EOF
19460
19461 fi
19462 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing"
19463fi
19464
19465if test "$wxUSE_PROLOGIO" = "yes" ; then
698dcdb6 19466 cat >> confdefs.h <<\EOF
10f2d63a
VZ
19467#define wxUSE_PROLOGIO 1
19468EOF
19469
19470fi
19471
19472if test "$wxUSE_RESOURCES" = "yes" ; then
e334d0ea
JS
19473 if test "$wxUSE_NANOX" = "yes"; then
19474 echo "configure: warning: Cannot use resource database functions in NanoX" 1>&2
19475 else
19476 cat >> confdefs.h <<\EOF
10f2d63a
VZ
19477#define wxUSE_RESOURCES 1
19478EOF
19479
e334d0ea
JS
19480 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS resource"
19481 fi
10f2d63a
VZ
19482fi
19483
19484if test "$wxUSE_X_RESOURCES" = "yes"; then
698dcdb6 19485 cat >> confdefs.h <<\EOF
10f2d63a
VZ
19486#define wxUSE_X_RESOURCES 1
19487EOF
19488
19489fi
19490
698dcdb6 19491
77e13408
RL
19492if test "$wxUSE_MSW" = 1 -a \( "$wxUSE_DATAOBJ" = "yes" \
19493 -o "$wxUSE_CLIPBOARD" = "yes" \
19494 -o "$wxUSE_DRAG_AND_DROP" = "yes" \) ; then
2b9bdf71 19495 for ac_hdr in ole2.h
10f2d63a 19496do
698dcdb6
VZ
19497ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
19498echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
e95edd8d 19499echo "configure:19500: checking for $ac_hdr" >&5
698dcdb6
VZ
19500if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
19501 echo $ac_n "(cached) $ac_c" 1>&6
19502else
19503 cat > conftest.$ac_ext <<EOF
e95edd8d 19504#line 19505 "configure"
10f2d63a 19505#include "confdefs.h"
698dcdb6
VZ
19506#include <$ac_hdr>
19507EOF
19508ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
e95edd8d 19509{ (eval echo configure:19510: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
19510ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
19511if test -z "$ac_err"; then
19512 rm -rf conftest*
19513 eval "ac_cv_header_$ac_safe=yes"
1e487827 19514else
698dcdb6
VZ
19515 echo "$ac_err" >&5
19516 echo "configure: failed program was:" >&5
10f2d63a 19517 cat conftest.$ac_ext >&5
698dcdb6
VZ
19518 rm -rf conftest*
19519 eval "ac_cv_header_$ac_safe=no"
10f2d63a 19520fi
698dcdb6 19521rm -f conftest*
10f2d63a 19522fi
698dcdb6
VZ
19523if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
19524 echo "$ac_t""yes" 1>&6
19525 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
19526 cat >> confdefs.h <<EOF
19527#define $ac_tr_hdr 1
10f2d63a 19528EOF
698dcdb6
VZ
19529
19530else
19531 echo "$ac_t""no" 1>&6
10f2d63a
VZ
19532fi
19533done
19534
698dcdb6 19535
2b9bdf71
VZ
19536 if test "$ac_cv_header_ole2_h" = "yes" ; then
19537 if test "$GCC" = yes ; then
19538 ALL_OBJECTS="$ALL_OBJECTS \$(OLEOBJS)"
2b9bdf71 19539 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fvtable-thunks"
3d63bc3a 19540 LIBS=" -lrpcrt4 -loleaut32 -lole32 -luuid$LIBS"
2b9bdf71 19541 cat >> confdefs.h <<\EOF
4f11a343
VS
19542#define wxUSE_OLE 1
19543EOF
19544
b64f0a5f 19545
2b9bdf71
VZ
19546 fi
19547
19548 cat >> confdefs.h <<\EOF
19549#define wxUSE_DATAOBJ 1
19550EOF
19551
19552 else
19553 echo "configure: warning: Some features disabled because OLE headers not found" 1>&2
19554
19555 wxUSE_CLIPBOARD=no
19556 wxUSE_DRAG_AND_DROP=no
19557 wxUSE_DATAOBJ=no
19558 fi
19559
77e13408 19560 if test "$wxUSE_METAFILE" = "yes"; then
2b9bdf71 19561 cat >> confdefs.h <<\EOF
b64f0a5f
RL
19562#define wxUSE_METAFILE 1
19563EOF
19564
2b9bdf71
VZ
19565
19566 cat >> confdefs.h <<\EOF
b64f0a5f
RL
19567#define wxUSE_ENH_METAFILE 1
19568EOF
19569
2b9bdf71
VZ
19570 fi
19571fi
19572
19573if test "$wxUSE_IPC" = "yes"; then
19574 if test "$wxUSE_SOCKETS" != "yes"; then
156b2523 19575 echo "configure: warning: wxWindows IPC classes require sockets... disabled" 1>&2
2b9bdf71
VZ
19576 fi
19577
19578 cat >> confdefs.h <<\EOF
19579#define wxUSE_IPC 1
19580EOF
19581
19582fi
19583
19584if test "$wxUSE_CLIPBOARD" = "yes"; then
9691c806 19585 cat >> confdefs.h <<\EOF
2b9bdf71
VZ
19586#define wxUSE_CLIPBOARD 1
19587EOF
19588
673f4220 19589
9691c806 19590 cat >> confdefs.h <<\EOF
673f4220
VZ
19591#define wxUSE_DATAOBJ 1
19592EOF
19593
2b9bdf71
VZ
19594fi
19595
19596if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then
19597 if test "$wxUSE_GTK" = 1; then
19598 if test "$WXGTK12" != 1; then
156b2523 19599 echo "configure: warning: Drag and drop is only supported under GTK+ 1.2... disabled" 1>&2
10f2d63a
VZ
19600 wxUSE_DRAG_AND_DROP=no
19601 fi
19602 fi
19603
2b9bdf71 19604 if test "$wxUSE_MOTIF" = 1; then
156b2523 19605 echo "configure: warning: Drag and drop not yet supported under Motif... disabled" 1>&2
2b9bdf71
VZ
19606 wxUSE_DRAG_AND_DROP=no
19607 fi
19608
f79bd02d
JS
19609 if test "$wxUSE_X11" = 1; then
19610 echo "configure: warning: Drag and drop not yet supported under X11... disabled" 1>&2
19611 wxUSE_DRAG_AND_DROP=no
19612 fi
19613
10f2d63a 19614 if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
698dcdb6 19615 cat >> confdefs.h <<\EOF
10f2d63a
VZ
19616#define wxUSE_DRAG_AND_DROP 1
19617EOF
19618
19619 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd"
19620 fi
19621
19622fi
19623
19624if test "$wxUSE_SPLINES" = "yes" ; then
698dcdb6 19625 cat >> confdefs.h <<\EOF
10f2d63a
VZ
19626#define wxUSE_SPLINES 1
19627EOF
19628
19629fi
19630
698dcdb6 19631
1e6feb95
VZ
19632USES_CONTROLS=0
19633if test "$wxUSE_CONTROLS" = "yes"; then
19634 USES_CONTROLS=1
19635fi
19636
10f2d63a 19637if test "$wxUSE_ACCEL" = "yes"; then
698dcdb6 19638 cat >> confdefs.h <<\EOF
10f2d63a
VZ
19639#define wxUSE_ACCEL 1
19640EOF
19641
1e6feb95
VZ
19642 USES_CONTROLS=1
19643fi
19644
19645if test "$wxUSE_BUTTON" = "yes"; then
19646 cat >> confdefs.h <<\EOF
19647#define wxUSE_BUTTON 1
19648EOF
19649
19650 USES_CONTROLS=1
19651fi
19652
19653if test "$wxUSE_BMPBUTTON" = "yes"; then
19654 cat >> confdefs.h <<\EOF
19655#define wxUSE_BMPBUTTON 1
19656EOF
19657
19658 USES_CONTROLS=1
19659fi
19660
19661if test "$wxUSE_CALCTRL" = "yes"; then
19662 cat >> confdefs.h <<\EOF
19663#define wxUSE_CALENDARCTRL 1
19664EOF
19665
19666 USES_CONTROLS=1
19667 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar"
10f2d63a
VZ
19668fi
19669
19670if test "$wxUSE_CARET" = "yes"; then
698dcdb6 19671 cat >> confdefs.h <<\EOF
10f2d63a
VZ
19672#define wxUSE_CARET 1
19673EOF
19674
1e6feb95 19675 USES_CONTROLS=1
10f2d63a
VZ
19676 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret"
19677fi
19678
19679if test "$wxUSE_COMBOBOX" = "yes"; then
698dcdb6 19680 cat >> confdefs.h <<\EOF
10f2d63a
VZ
19681#define wxUSE_COMBOBOX 1
19682EOF
19683
1e6feb95 19684 USES_CONTROLS=1
10f2d63a
VZ
19685fi
19686
19687if test "$wxUSE_CHOICE" = "yes"; then
698dcdb6 19688 cat >> confdefs.h <<\EOF
10f2d63a
VZ
19689#define wxUSE_CHOICE 1
19690EOF
19691
1e6feb95 19692 USES_CONTROLS=1
10f2d63a
VZ
19693fi
19694
19695if test "$wxUSE_CHECKBOX" = "yes"; then
698dcdb6 19696 cat >> confdefs.h <<\EOF
10f2d63a
VZ
19697#define wxUSE_CHECKBOX 1
19698EOF
19699
1e6feb95 19700 USES_CONTROLS=1
10f2d63a
VZ
19701fi
19702
19703if test "$wxUSE_CHECKLST" = "yes"; then
698dcdb6 19704 cat >> confdefs.h <<\EOF
10f2d63a
VZ
19705#define wxUSE_CHECKLISTBOX 1
19706EOF
19707
1e6feb95 19708 USES_CONTROLS=1
10f2d63a
VZ
19709 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst"
19710fi
19711
19712if test "$wxUSE_GAUGE" = "yes"; then
698dcdb6 19713 cat >> confdefs.h <<\EOF
10f2d63a
VZ
19714#define wxUSE_GAUGE 1
19715EOF
19716
1e6feb95 19717 USES_CONTROLS=1
10f2d63a
VZ
19718fi
19719
d6a55c4b
VZ
19720if test "$wxUSE_NEW_GRID" = "yes"; then
19721 wxUSE_GRID="yes"
698dcdb6 19722 cat >> confdefs.h <<\EOF
d6a55c4b 19723#define wxUSE_NEW_GRID 1
10f2d63a
VZ
19724EOF
19725
1e6feb95 19726 USES_CONTROLS=1
d6a55c4b 19727 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS newgrid"
10f2d63a
VZ
19728fi
19729
d6a55c4b 19730if test "$wxUSE_GRID" = "yes"; then
698dcdb6 19731 cat >> confdefs.h <<\EOF
d6a55c4b 19732#define wxUSE_GRID 1
10f2d63a
VZ
19733EOF
19734
1e6feb95 19735 USES_CONTROLS=1
d6a55c4b 19736 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid"
10f2d63a
VZ
19737fi
19738
19739if test "$wxUSE_IMAGLIST" = "yes"; then
698dcdb6 19740 cat >> confdefs.h <<\EOF
10f2d63a
VZ
19741#define wxUSE_IMAGLIST 1
19742EOF
19743
19744fi
19745
19746if test "$wxUSE_LISTBOX" = "yes"; then
698dcdb6 19747 cat >> confdefs.h <<\EOF
10f2d63a
VZ
19748#define wxUSE_LISTBOX 1
19749EOF
19750
1e6feb95 19751 USES_CONTROLS=1
10f2d63a
VZ
19752fi
19753
19754if test "$wxUSE_LISTCTRL" = "yes"; then
19755 if test "$wxUSE_IMAGLIST" = "yes"; then
698dcdb6 19756 cat >> confdefs.h <<\EOF
10f2d63a
VZ
19757#define wxUSE_LISTCTRL 1
19758EOF
19759
1e6feb95 19760 USES_CONTROLS=1
10f2d63a
VZ
19761 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl"
19762 else
698dcdb6 19763 echo "configure: warning: wxListCtrl requires wxImageList and won't be compiled without it" 1>&2
10f2d63a
VZ
19764 fi
19765fi
19766
19767if test "$wxUSE_NOTEBOOK" = "yes"; then
698dcdb6 19768 cat >> confdefs.h <<\EOF
10f2d63a
VZ
19769#define wxUSE_NOTEBOOK 1
19770EOF
19771
1e6feb95 19772 USES_CONTROLS=1
10f2d63a
VZ
19773 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook"
19774fi
19775
24176f2c
GD
19776if test "$wxUSE_PROPSHEET" = "yes"; then
19777 cat >> confdefs.h <<\EOF
19778#define wxUSE_PROPSHEET 1
19779EOF
19780
19781 USES_CONTROLS=1
19782 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS proplist"
19783fi
19784
10f2d63a 19785if test "$wxUSE_RADIOBOX" = "yes"; then
698dcdb6 19786 cat >> confdefs.h <<\EOF
10f2d63a
VZ
19787#define wxUSE_RADIOBOX 1
19788EOF
19789
1e6feb95 19790 USES_CONTROLS=1
10f2d63a
VZ
19791fi
19792
19793if test "$wxUSE_RADIOBTN" = "yes"; then
698dcdb6 19794 cat >> confdefs.h <<\EOF
10f2d63a
VZ
19795#define wxUSE_RADIOBTN 1
19796EOF
19797
1e6feb95 19798 USES_CONTROLS=1
10f2d63a
VZ
19799fi
19800
19801if test "$wxUSE_SASH" = "yes"; then
698dcdb6 19802 cat >> confdefs.h <<\EOF
10f2d63a
VZ
19803#define wxUSE_SASH 1
19804EOF
19805
19806 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest"
19807fi
19808
19809if test "$wxUSE_SCROLLBAR" = "yes"; then
698dcdb6 19810 cat >> confdefs.h <<\EOF
10f2d63a
VZ
19811#define wxUSE_SCROLLBAR 1
19812EOF
19813
1e6feb95 19814 USES_CONTROLS=1
741a9306 19815 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub"
10f2d63a
VZ
19816fi
19817
19818if test "$wxUSE_SLIDER" = "yes"; then
698dcdb6 19819 cat >> confdefs.h <<\EOF
10f2d63a
VZ
19820#define wxUSE_SLIDER 1
19821EOF
19822
1e6feb95 19823 USES_CONTROLS=1
10f2d63a
VZ
19824fi
19825
19826if test "$wxUSE_SPINBTN" = "yes"; then
698dcdb6 19827 cat >> confdefs.h <<\EOF
10f2d63a
VZ
19828#define wxUSE_SPINBTN 1
19829EOF
19830
1e6feb95 19831 USES_CONTROLS=1
10f2d63a
VZ
19832fi
19833
56cfaa52 19834if test "$wxUSE_SPINCTRL" = "yes"; then
698dcdb6 19835 cat >> confdefs.h <<\EOF
56cfaa52
RR
19836#define wxUSE_SPINCTRL 1
19837EOF
19838
1e6feb95 19839 USES_CONTROLS=1
56cfaa52
RR
19840fi
19841
10f2d63a 19842if test "$wxUSE_SPLITTER" = "yes"; then
698dcdb6 19843 cat >> confdefs.h <<\EOF
10f2d63a
VZ
19844#define wxUSE_SPLITTER 1
19845EOF
19846
19847 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter"
19848fi
19849
19850if test "$wxUSE_STATBMP" = "yes"; then
698dcdb6 19851 cat >> confdefs.h <<\EOF
10f2d63a
VZ
19852#define wxUSE_STATBMP 1
19853EOF
19854
1e6feb95 19855 USES_CONTROLS=1
10f2d63a
VZ
19856fi
19857
19858if test "$wxUSE_STATBOX" = "yes"; then
698dcdb6 19859 cat >> confdefs.h <<\EOF
10f2d63a
VZ
19860#define wxUSE_STATBOX 1
19861EOF
19862
1e6feb95
VZ
19863 USES_CONTROLS=1
19864fi
19865
19866if test "$wxUSE_STATTEXT" = "yes"; then
19867 cat >> confdefs.h <<\EOF
19868#define wxUSE_STATTEXT 1
19869EOF
19870
19871 USES_CONTROLS=1
10f2d63a
VZ
19872fi
19873
19874if test "$wxUSE_STATLINE" = "yes"; then
19875 if test "$wxUSE_WINE" = 1 ; then
698dcdb6 19876 echo "configure: warning: wxStaticLine is not supported under WINE" 1>&2
10f2d63a 19877 else
698dcdb6 19878 cat >> confdefs.h <<\EOF
10f2d63a
VZ
19879#define wxUSE_STATLINE 1
19880EOF
19881
1e6feb95 19882 USES_CONTROLS=1
10f2d63a
VZ
19883 fi
19884fi
19885
19886if test "$wxUSE_STATUSBAR" = "yes"; then
698dcdb6 19887 cat >> confdefs.h <<\EOF
10f2d63a
VZ
19888#define wxUSE_STATUSBAR 1
19889EOF
19890
1e6feb95 19891 USES_CONTROLS=1
698dcdb6 19892
2286341c 19893 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar"
10f2d63a
VZ
19894fi
19895
19896if test "$wxUSE_TABDIALOG" = "yes"; then
698dcdb6 19897 cat >> confdefs.h <<\EOF
10f2d63a
VZ
19898#define wxUSE_TAB_DIALOG 1
19899EOF
19900
19901 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS tab"
19902fi
19903
1e6feb95
VZ
19904if test "$wxUSE_TEXTCTRL" = "yes"; then
19905 cat >> confdefs.h <<\EOF
19906#define wxUSE_TEXTCTRL 1
19907EOF
19908
19909 USES_CONTROLS=1
19910 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text"
19911fi
19912
1db8dc4a 19913if test "$wxUSE_TOGGLEBTN" = "yes"; then
156b2523
GD
19914 if test "$wxUSE_MAC" = 1; then
19915 echo "configure: warning: Toggle button not yet supported under Mac OS X... disabled" 1>&2
19916 wxUSE_TOGGLEBTN=no
19917 fi
19918 if test "$wxUSE_UNIVERSAL" = "yes"; then
0feee163 19919 echo "configure: warning: Toggle button not yet supported under wxUniversal... disabled" 1>&2
a45d7ab7
GD
19920 wxUSE_TOGGLEBTN=no
19921 fi
19922
19923 if test "$wxUSE_TOGGLEBTN" = "yes"; then
19924 cat >> confdefs.h <<\EOF
1db8dc4a
VZ
19925#define wxUSE_TOGGLEBTN 1
19926EOF
19927
1e6feb95 19928 USES_CONTROLS=1
a45d7ab7 19929 fi
1db8dc4a
VZ
19930fi
19931
360d6699 19932if test "$wxUSE_TOOLBAR_SIMPLE" = "yes"; then
698dcdb6 19933 cat >> confdefs.h <<\EOF
360d6699
VZ
19934#define wxUSE_TOOLBAR_SIMPLE 1
19935EOF
19936
19937 wxUSE_TOOLBAR="yes"
1e6feb95 19938 USES_CONTROLS=1
360d6699
VZ
19939fi
19940
10f2d63a 19941if test "$wxUSE_TOOLBAR" = "yes"; then
698dcdb6 19942 cat >> confdefs.h <<\EOF
10f2d63a
VZ
19943#define wxUSE_TOOLBAR 1
19944EOF
19945
1e6feb95 19946 USES_CONTROLS=1
698dcdb6 19947
360d6699
VZ
19948 if test "$wxUSE_TOOLBAR_SIMPLE" != "yes"; then
19949 wxUSE_TOOLBAR_NATIVE="yes"
19950 fi
19951
1e6feb95
VZ
19952 if test "$wxUSE_TOOLBAR_NATIVE" = "yes"; then
19953 cat >> confdefs.h <<\EOF
360d6699
VZ
19954#define wxUSE_TOOLBAR_NATIVE 1
19955EOF
19956
1e6feb95
VZ
19957 USES_CONTROLS=1
19958 fi
19959
19960 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar"
360d6699
VZ
19961fi
19962
10f2d63a
VZ
19963if test "$wxUSE_TOOLTIPS" = "yes"; then
19964 if test "$wxUSE_MOTIF" = 1; then
156b2523 19965 echo "configure: warning: wxTooltip not supported yet under Motif... disabled" 1>&2
10f2d63a
VZ
19966 else
19967 if test "$wxUSE_WINE" = 1; then
156b2523 19968 echo "configure: warning: wxTooltip not supported under WINE... disabled" 1>&2
10f2d63a 19969 else
69d27ff7 19970 if test "$wxUSE_UNIVERSAL" = "yes"; then
0feee163 19971 echo "configure: warning: wxTooltip not supported yet in wxUniversal... disabled" 1>&2
69d27ff7 19972 else
3c011993 19973 cat >> confdefs.h <<\EOF
10f2d63a
VZ
19974#define wxUSE_TOOLTIPS 1
19975EOF
19976
69d27ff7 19977 fi
10f2d63a
VZ
19978 fi
19979 fi
19980fi
19981
19982if test "$wxUSE_TREECTRL" = "yes"; then
19983 if test "$wxUSE_IMAGLIST" = "yes"; then
698dcdb6 19984 cat >> confdefs.h <<\EOF
10f2d63a
VZ
19985#define wxUSE_TREECTRL 1
19986EOF
19987
1e6feb95 19988 USES_CONTROLS=1
10f2d63a
VZ
19989 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl"
19990 else
698dcdb6 19991 echo "configure: warning: wxTreeCtrl requires wxImageList and won't be compiled without it" 1>&2
10f2d63a
VZ
19992 fi
19993fi
19994
9f41d601 19995if test "$wxUSE_POPUPWIN" = "yes"; then
6abe4b65 19996 if test "$wxUSE_MAC" = 1; then
156b2523 19997 echo "configure: warning: Popup window not yet supported under Mac OS X... disabled" 1>&2
6abe4b65 19998 else
485cf710
VZ
19999 if test "$wxUSE_MOTIF" = 1; then
20000 echo "configure: warning: wxPopupWindow not yet supported under Motif... disabled" 1>&2
20001 else
3c011993
VZ
20002 if test "$wxUSE_PM" = 1; then
20003 echo "configure: warning: wxPopupWindow not yet supported under PM... disabled" 1>&2
20004 else
20005 cat >> confdefs.h <<\EOF
9f41d601
RR
20006#define wxUSE_POPUPWIN 1
20007EOF
20008
9926e4a4 20009
3c011993
VZ
20010 USES_CONTROLS=1
20011 fi
485cf710 20012 fi
6abe4b65 20013 fi
9f41d601
RR
20014fi
20015
dd964dcc 20016if test "$wxUSE_TIPWINDOW" = "yes"; then
3c011993
VZ
20017 if test "$wxUSE_PM" = 1; then
20018 echo "configure: warning: wxTipWindow not yet supported under PM... disabled" 1>&2
20019 else
20020 cat >> confdefs.h <<\EOF
dd964dcc
VZ
20021#define wxUSE_TIPWINDOW 1
20022EOF
20023
3c011993 20024 fi
dd964dcc
VZ
20025fi
20026
1e6feb95
VZ
20027if test "$USES_CONTROLS" = 1; then
20028 cat >> confdefs.h <<\EOF
20029#define wxUSE_CONTROLS 1
10f2d63a
VZ
20030EOF
20031
10f2d63a
VZ
20032fi
20033
1e6feb95 20034
24176f2c
GD
20035if test "$wxUSE_TREELAYOUT" = "yes"; then
20036 cat >> confdefs.h <<\EOF
20037#define wxUSE_TREELAYOUT 1
20038EOF
20039
20040 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treelay"
20041fi
1e6feb95 20042
24fd6d87
VZ
20043if test "$wxUSE_DRAGIMAGE" = "yes"; then
20044 cat >> confdefs.h <<\EOF
20045#define wxUSE_DRAGIMAGE 1
20046EOF
20047
20048 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag"
20049fi
20050
1e6feb95 20051if test "$wxUSE_MENUS" = "yes"; then
698dcdb6 20052 cat >> confdefs.h <<\EOF
1e6feb95 20053#define wxUSE_MENUS 1
10f2d63a
VZ
20054EOF
20055
1e6feb95 20056 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu"
10f2d63a
VZ
20057fi
20058
1e6feb95
VZ
20059if test "$wxUSE_METAFILE" = "yes"; then
20060 cat >> confdefs.h <<\EOF
20061#define wxUSE_METAFILE 1
10f2d63a
VZ
20062EOF
20063
10f2d63a
VZ
20064fi
20065
1e6feb95
VZ
20066if test "$wxUSE_MIMETYPE" = "yes"; then
20067 cat >> confdefs.h <<\EOF
20068#define wxUSE_MIMETYPE 1
10f2d63a
VZ
20069EOF
20070
10f2d63a
VZ
20071fi
20072
3e44f09d
VZ
20073if test "$wxUSE_SYSTEM_OPTIONS" = "yes"; then
20074 cat >> confdefs.h <<\EOF
20075#define wxUSE_SYSTEM_OPTIONS 1
20076EOF
20077
20078fi
20079
4cdb0ab0 20080if test "$wxUSE_PROTOCOL" = "yes"; then
3954f9ca
VS
20081 if test "$wxUSE_SOCKETS" != "yes"; then
20082 echo "configure: warning: Protocol classes require sockets... disabled" 1>&2
20083 wxUSE_PROTOCOL=no
20084 fi
20085
20086 if test "$wxUSE_PROTOCOL" = "yes"; then
20087 cat >> confdefs.h <<\EOF
4cdb0ab0
VS
20088#define wxUSE_PROTOCOL 1
20089EOF
20090
20091
3954f9ca
VS
20092 if test "$wxUSE_PROTOCOL_HTTP" = "yes"; then
20093 cat >> confdefs.h <<\EOF
4cdb0ab0
VS
20094#define wxUSE_PROTOCOL_HTTP 1
20095EOF
20096
3954f9ca
VS
20097 fi
20098 if test "$wxUSE_PROTOCOL_FTP" = "yes"; then
20099 cat >> confdefs.h <<\EOF
4cdb0ab0
VS
20100#define wxUSE_PROTOCOL_FTP 1
20101EOF
20102
3954f9ca
VS
20103 fi
20104 if test "$wxUSE_PROTOCOL_FILE" = "yes"; then
20105 cat >> confdefs.h <<\EOF
20106#define wxUSE_PROTOCOL_FILE 1
20107EOF
20108
20109 fi
4cdb0ab0 20110 fi
3954f9ca
VS
20111fi
20112
20113if test "$wxUSE_URL" = "yes"; then
20114 if test "$wxUSE_PROTOCOL" != "yes"; then
20115 echo "configure: warning: wxURL class requires wxProtocol... disabled" 1>&2
20116 wxUSE_URL=no
20117 fi
20118 if test "$wxUSE_URL" = "yes"; then
4cdb0ab0 20119 cat >> confdefs.h <<\EOF
3954f9ca 20120#define wxUSE_URL 1
4cdb0ab0
VS
20121EOF
20122
20123 fi
20124fi
20125
10f2d63a 20126if test "$wxUSE_MINIFRAME" = "yes"; then
698dcdb6 20127 cat >> confdefs.h <<\EOF
10f2d63a
VZ
20128#define wxUSE_MINIFRAME 1
20129EOF
20130
20131 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram"
20132fi
20133
20134if test "$wxUSE_HTML" = "yes"; then
698dcdb6 20135 cat >> confdefs.h <<\EOF
10f2d63a
VZ
20136#define wxUSE_HTML 1
20137EOF
20138
20139 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html"
10f2d63a
VZ
20140fi
20141
20142if test "$wxUSE_VALIDATORS" = "yes"; then
698dcdb6 20143 cat >> confdefs.h <<\EOF
1e487827
VS
20144#define wxUSE_VALIDATORS 1
20145EOF
703e0a69 20146
698dcdb6
VZ
20147 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate"
20148fi
20149
edae8572
VZ
20150if test "$wxUSE_PALETTE" = "yes" ; then
20151 cat >> confdefs.h <<\EOF
20152#define wxUSE_PALETTE 1
20153EOF
20154
20155fi
20156
698dcdb6
VZ
20157if test "$wxUSE_IMAGE" = "yes" ; then
20158 cat >> confdefs.h <<\EOF
20159#define wxUSE_IMAGE 1
20160EOF
20161
20162fi
20163
20164if test "$wxUSE_GIF" = "yes" ; then
20165 cat >> confdefs.h <<\EOF
20166#define wxUSE_GIF 1
20167EOF
20168
20169fi
20170
20171if test "$wxUSE_PCX" = "yes" ; then
20172 cat >> confdefs.h <<\EOF
20173#define wxUSE_PCX 1
20174EOF
20175
20176fi
20177
4b6b4dfc
RR
20178if test "$wxUSE_IFF" = "yes" ; then
20179 cat >> confdefs.h <<\EOF
20180#define wxUSE_IFF 1
20181EOF
20182
20183fi
20184
698dcdb6
VZ
20185if test "$wxUSE_PNM" = "yes" ; then
20186 cat >> confdefs.h <<\EOF
20187#define wxUSE_PNM 1
20188EOF
20189
20190fi
20191
20192if test "$wxUSE_XPM" = "yes" ; then
20193 cat >> confdefs.h <<\EOF
20194#define wxUSE_XPM 1
20195EOF
20196
20197fi
20198
658974ae
VS
20199if test "$wxUSE_ICO_CUR" = "yes" ; then
20200 cat >> confdefs.h <<\EOF
20201#define wxUSE_ICO_CUR 1
20202EOF
20203
20204fi
20205
a72a4bfa
VS
20206if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_MSLU" = "yes" ; then
20207 LIBS=" -lunicows $LIBS"
20208fi
20209
698dcdb6 20210
1e6feb95
VZ
20211if test "$wxUSE_CHOICEDLG" = "yes"; then
20212 cat >> confdefs.h <<\EOF
20213#define wxUSE_CHOICEDLG 1
20214EOF
20215
20216fi
20217
20218if test "$wxUSE_COLOURDLG" = "yes"; then
20219 cat >> confdefs.h <<\EOF
20220#define wxUSE_COLOURDLG 1
20221EOF
20222
20223fi
20224
20225if test "$wxUSE_FILEDLG" = "yes"; then
20226 cat >> confdefs.h <<\EOF
20227#define wxUSE_FILEDLG 1
20228EOF
20229
20230fi
20231
8db37e06
VZ
20232if test "$wxUSE_FINDREPLDLG" = "yes"; then
20233 cat >> confdefs.h <<\EOF
20234#define wxUSE_FINDREPLDLG 1
20235EOF
20236
20237fi
20238
1e6feb95
VZ
20239if test "$wxUSE_FONTDLG" = "yes"; then
20240 cat >> confdefs.h <<\EOF
20241#define wxUSE_FONTDLG 1
20242EOF
20243
20244fi
20245
20246if test "$wxUSE_DIRDLG" = "yes"; then
ae1daed0
JS
20247 if test "$wxUSE_TREECTRL" != "yes"; then
20248 echo "configure: warning: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" 1>&2
1e6feb95 20249 else
ae1daed0 20250 cat >> confdefs.h <<\EOF
1e6feb95
VZ
20251#define wxUSE_DIRDLG 1
20252EOF
20253
1e6feb95
VZ
20254 fi
20255fi
20256
20257if test "$wxUSE_MSGDLG" = "yes"; then
20258 cat >> confdefs.h <<\EOF
20259#define wxUSE_MSGDLG 1
20260EOF
20261
20262fi
20263
20264if test "$wxUSE_NUMBERDLG" = "yes"; then
20265 cat >> confdefs.h <<\EOF
20266#define wxUSE_NUMBERDLG 1
20267EOF
20268
20269fi
20270
20271if test "$wxUSE_PROGRESSDLG" = "yes"; then
20272 if test "$wxUSE_CONSTRAINTS" != "yes"; then
20273 echo "configure: warning: wxProgressDialog requires constraints so it won't be compiled without them" 1>&2
20274 else
20275 cat >> confdefs.h <<\EOF
20276#define wxUSE_PROGRESSDLG 1
20277EOF
20278
20279 fi
20280fi
20281
cbca9943
VZ
20282if test "$wxUSE_SPLASH" = "yes"; then
20283 cat >> confdefs.h <<\EOF
20284#define wxUSE_SPLASH 1
20285EOF
20286
20287fi
20288
1e6feb95
VZ
20289if test "$wxUSE_STARTUP_TIPS" = "yes"; then
20290 if test "$wxUSE_CONSTRAINTS" != "yes"; then
20291 echo "configure: warning: Startup tips requires constraints and won't be compiled without them" 1>&2
20292 else
20293 cat >> confdefs.h <<\EOF
20294#define wxUSE_STARTUP_TIPS 1
20295EOF
20296
20297 fi
20298fi
20299
20300if test "$wxUSE_TEXTDLG" = "yes"; then
20301 cat >> confdefs.h <<\EOF
20302#define wxUSE_TEXTDLG 1
20303EOF
20304
20305fi
20306
b1f5d087
VZ
20307if test "$wxUSE_WIZARDDLG" = "yes"; then
20308 cat >> confdefs.h <<\EOF
20309#define wxUSE_WIZARDDLG 1
20310EOF
20311
20312 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wizard"
20313fi
20314
1e6feb95 20315
698dcdb6
VZ
20316if test "$cross_compiling" = "yes"; then
20317 OSINFO="\"$host\""
20318else
20319 OSINFO=`uname -s -r -m`
20320 OSINFO="\"$OSINFO\""
20321fi
20322
20323cat >> confdefs.h <<EOF
20324#define WXWIN_OS_DESCRIPTION $OSINFO
20325EOF
20326
20327
20328
06dda230
VZ
20329if test "x$prefix" != "xNONE"; then
20330 wxPREFIX=$prefix
20331else
20332 wxPREFIX=$ac_default_prefix
20333fi
20334
7e67ed0d 20335cat >> confdefs.h <<EOF
06dda230 20336#define wxINSTALL_PREFIX "$wxPREFIX"
7e67ed0d
VZ
20337EOF
20338
20339
20340
698dcdb6 20341
3a922bb4 20342
f11bdd03 20343if test "$wxUSE_MAC" = 1 ; then
3d63bc3a 20344 LDFLAGS="$LDFLAGS -framework Carbon -framework System"
698dcdb6 20345fi
3a922bb4 20346
3d63bc3a 20347
009fead0 20348LIBS="$ZLIB_LINK $POSIX4_LINK $INET_LINK $WCHAR_LINK $DL_LINK -lm $LIBS"
3d63bc3a 20349
698dcdb6 20350if test "$wxUSE_GUI" = "yes"; then
3d63bc3a 20351
cb61c62d 20352 LIBS="$GUI_TK_LIBRARY $PNG_LINK $JPEG_LINK $TIFF_LINK $LIBS"
3a922bb4
RL
20353
20354
867a54b6 20355 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS artprov controls dialogs \
3a922bb4
RL
20356 drawing dynamic erase event exec font image \
20357 minimal richedit rotate widgets"
20358
3a922bb4
RL
20359 CPPFLAGS="$CPPFLAGS \$(EXTRADEFS) \$(APPEXTRADEFS)"
20360else
20361 SAMPLES_SUBDIRS="console"
698dcdb6
VZ
20362fi
20363
698dcdb6 20364
d714471b 20365INCLUDES="-I\${top_builddir}/lib/wx/include/${TOOLCHAIN_NAME} -I\${top_srcdir}/include \
cb61c62d 20366$REGEX_INCLUDE $ZLIB_INCLUDE $PNG_INCLUDE $JPEG_INCLUDE $TIFF_INCLUDE $TOOLKIT_INCLUDE"
698dcdb6 20367
63e7762e 20368if test "$wxUSE_GTK" = 1; then
3d63bc3a 20369 WXCONFIG_INCLUDE=
698dcdb6
VZ
20370else
20371 WXCONFIG_INCLUDE="$TOOLKIT_INCLUDE"
20372fi
20373
20374if test "$GXX" = yes ; then
20375 CXXWARNINGS="-Wall"
88e30f2b
RL
20376
20377 if test "$wxUSE_NO_DEPS" = "no" ; then
20378 CFLAGS="-MMD $CFLAGS"
20379 CXXFLAGS="-MMD $CXXFLAGS"
20380 fi
20381fi
20382
1725144d 20383EXTRA_CFLAGS="$WXDEBUG $WXODBCFLAG $PROFILE $OPTIMISE $INCLUDES"
698dcdb6
VZ
20384
20385CFLAGS=`echo $CFLAGS $EXTRA_CFLAGS $CXXWARNINGS | sed 's/ \\+/ /g'`
20386CXXFLAGS=`echo $CXXFLAGS $EXTRA_CFLAGS $CXXWARNINGS | sed 's/ \+/ /g'`
fe5a9cab 20387LIBS=`echo $LIBS | sed 's/ \+/ /g'`
698dcdb6 20388
fe5a9cab 20389LDFLAGS="$LDFLAGS $PROFILE"
698dcdb6 20390
698dcdb6
VZ
20391SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`"
20392
20393
20394
20395
20396
20397
20398
20399
20400
20401
20402
20403
20404
20405
20406
20407
20408
20409
20410
20411
20412
20413
20414
20415
20416
20417
20418
20419
20420
20421
20422
20423
20424
20425
20426
20427
20428
20429
20430
20431
20432
20433
20434
20435
20436
20437
20438
20439
20440
20441
20442
20443
20444
20445
20446
20447
20448
20449
20450
20451
20452
20453
20454
20455
20456
20457
20458
32832908 20459
2f51a9ec
GD
20460
20461
20462
20463
f6bcfd97 20464
dad6c0ea 20465
caa2c79b 20466
3711412e 20467
1e6feb95
VZ
20468
20469
885d4bf5
VS
20470
20471
20472
20473
9b695262
VZ
20474
20475
62d0491b 20476
ef7f2189 20477
40f7145c 20478
10f2d63a
VZ
20479
20480
698dcdb6 20481echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
e95edd8d 20482echo "configure:20483: checking whether ${MAKE-make} sets \${MAKE}" >&5
698dcdb6
VZ
20483set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
20484if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
20485 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 20486else
698dcdb6 20487 cat > conftestmake <<\EOF
10f2d63a
VZ
20488all:
20489 @echo 'ac_maketemp="${MAKE}"'
20490EOF
20491# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
698dcdb6 20492eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
10f2d63a
VZ
20493if test -n "$ac_maketemp"; then
20494 eval ac_cv_prog_make_${ac_make}_set=yes
20495else
20496 eval ac_cv_prog_make_${ac_make}_set=no
20497fi
698dcdb6 20498rm -f conftestmake
10f2d63a
VZ
20499fi
20500if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
698dcdb6 20501 echo "$ac_t""yes" 1>&6
10f2d63a
VZ
20502 SET_MAKE=
20503else
698dcdb6 20504 echo "$ac_t""no" 1>&6
10f2d63a
VZ
20505 SET_MAKE="MAKE=${MAKE-make}"
20506fi
20507
698dcdb6 20508
3a922bb4
RL
20509if test -f lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h; then
20510 mv -f lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h setup.h
00cf1208 20511fi
665bbe97 20512
698dcdb6 20513
10f2d63a 20514
2224580a 20515if test "$wxUSE_GUI" = "yes"; then
ec90f5e5 20516 wx_cv_path_samplesubdirs=$SAMPLES_SUBDIRS
22c3fb2b 20517 wx_cv_if_gnu_make=$IF_GNU_MAKE
e8482f24
GL
20518 wx_cv_path_ifs=$PATH_IFS
20519 wx_cv_program_ext=$PROGRAM_EXT
20520 wx_cv_target_library=$WX_TARGET_LIBRARY
7b6058cd 20521 wx_cv_target_library_gl=$WX_TARGET_LIBRARY_GL
3711412e 20522 wx_cv_target_libtype=$WX_TARGET_LIBRARY_TYPE
22c3fb2b
VZ
20523 export wx_cv_path_samplesubdirs wx_cv_if_gnu_make \
20524 wx_cv_path_ifs wx_cv_program_ext \
7b6058cd 20525 wx_cv_target_library wx_cv_target_library_gl wx_cv_target_libtype
8f4a9a10 20526 subdirs="demos samples utils contrib"
2224580a
VZ
20527
20528fi
10f2d63a 20529
698dcdb6
VZ
20530trap '' 1 2 15
20531cat > confcache <<\EOF
10f2d63a
VZ
20532# This file is a shell script that caches the results of configure
20533# tests run on this system so they can be shared between configure
698dcdb6
VZ
20534# scripts and configure runs. It is not useful on other systems.
20535# If it contains results you don't want to keep, you may remove or edit it.
10f2d63a 20536#
698dcdb6
VZ
20537# By default, configure uses ./config.cache as the cache file,
20538# creating it if it does not exist already. You can give configure
20539# the --cache-file=FILE option to use a different cache file; that is
20540# what configure does when it calls configure scripts in
20541# subdirectories, so they share the cache.
20542# Giving --cache-file=/dev/null disables caching, for debugging configure.
20543# config.status only pays attention to the cache file if you give it the
20544# --recheck option to rerun configure.
10f2d63a 20545#
698dcdb6 20546EOF
10f2d63a
VZ
20547# The following way of writing the cache mishandles newlines in values,
20548# but we know of no workaround that is simple, portable, and efficient.
20549# So, don't put newlines in cache variables' values.
20550# Ultrix sh set writes to stderr and can't be redirected directly,
20551# and sets the high bit in the cache file unless we assign to the vars.
698dcdb6
VZ
20552(set) 2>&1 |
20553 case `(ac_space=' '; set | grep ac_space) 2>&1` in
20554 *ac_space=\ *)
20555 # `set' does not quote correctly, so add quotes (double-quote substitution
20556 # turns \\\\ into \\, and sed turns \\ into \).
20557 sed -n \
20558 -e "s/'/'\\\\''/g" \
20559 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
20560 ;;
20561 *)
20562 # `set' quotes correctly as required by POSIX, so do not add quotes.
20563 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
20564 ;;
20565 esac >> confcache
20566if cmp -s $cache_file confcache; then
20567 :
20568else
10f2d63a 20569 if test -w $cache_file; then
698dcdb6
VZ
20570 echo "updating cache $cache_file"
20571 cat confcache > $cache_file
10f2d63a
VZ
20572 else
20573 echo "not updating unwritable cache $cache_file"
20574 fi
20575fi
20576rm -f confcache
20577
698dcdb6
VZ
20578trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
20579
10f2d63a
VZ
20580test "x$prefix" = xNONE && prefix=$ac_default_prefix
20581# Let make expand exec_prefix.
20582test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20583
698dcdb6
VZ
20584# Any assignment to VPATH causes Sun make to only execute
20585# the first set of double-colon rules, so remove it if not needed.
20586# If there is a colon in the path, we need to keep it.
10f2d63a 20587if test "x$srcdir" = x.; then
698dcdb6 20588 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
10f2d63a
VZ
20589fi
20590
698dcdb6
VZ
20591trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
20592
10f2d63a
VZ
20593DEFS=-DHAVE_CONFIG_H
20594
698dcdb6 20595# Without the "./", some shells look in PATH for config.status.
10f2d63a 20596: ${CONFIG_STATUS=./config.status}
698dcdb6
VZ
20597
20598echo creating $CONFIG_STATUS
20599rm -f $CONFIG_STATUS
20600cat > $CONFIG_STATUS <<EOF
20601#! /bin/sh
10f2d63a
VZ
20602# Generated automatically by configure.
20603# Run this file to recreate the current configuration.
698dcdb6
VZ
20604# This directory was configured as follows,
20605# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20606#
20607# $0 $ac_configure_args
20608#
10f2d63a 20609# Compiler output produced by configure, useful for debugging
698dcdb6 20610# configure, is in ./config.log if it exists.
1e487827 20611
698dcdb6
VZ
20612ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
20613for ac_option
10f2d63a 20614do
698dcdb6 20615 case "\$ac_option" in
10f2d63a 20616 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
698dcdb6
VZ
20617 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
20618 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
20619 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
20620 echo "$CONFIG_STATUS generated by autoconf version 2.13"
20621 exit 0 ;;
20622 -help | --help | --hel | --he | --h)
20623 echo "\$ac_cs_usage"; exit 0 ;;
20624 *) echo "\$ac_cs_usage"; exit 1 ;;
10f2d63a
VZ
20625 esac
20626done
20627
698dcdb6
VZ
20628ac_given_srcdir=$srcdir
20629ac_given_INSTALL="$INSTALL"
703e0a69 20630
698dcdb6
VZ
20631trap 'rm -fr `echo "
20632 wx-config
20633 src/make.env
20634 src/makeprog.env
20635 src/makelib.env
20636 Makefile
20637 setup.h:setup.h.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
1e487827 20638EOF
698dcdb6 20639cat >> $CONFIG_STATUS <<EOF
1e487827 20640
698dcdb6
VZ
20641# Protect against being on the right side of a sed subst in config.status.
20642sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
20643 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
20644$ac_vpsub
20645$extrasub
20646s%@SHELL@%$SHELL%g
20647s%@CFLAGS@%$CFLAGS%g
20648s%@CPPFLAGS@%$CPPFLAGS%g
20649s%@CXXFLAGS@%$CXXFLAGS%g
20650s%@FFLAGS@%$FFLAGS%g
20651s%@DEFS@%$DEFS%g
20652s%@LDFLAGS@%$LDFLAGS%g
20653s%@LIBS@%$LIBS%g
20654s%@exec_prefix@%$exec_prefix%g
20655s%@prefix@%$prefix%g
20656s%@program_transform_name@%$program_transform_name%g
20657s%@bindir@%$bindir%g
20658s%@sbindir@%$sbindir%g
20659s%@libexecdir@%$libexecdir%g
20660s%@datadir@%$datadir%g
20661s%@sysconfdir@%$sysconfdir%g
20662s%@sharedstatedir@%$sharedstatedir%g
20663s%@localstatedir@%$localstatedir%g
20664s%@libdir@%$libdir%g
20665s%@includedir@%$includedir%g
20666s%@oldincludedir@%$oldincludedir%g
20667s%@infodir@%$infodir%g
20668s%@mandir@%$mandir%g
20669s%@host@%$host%g
20670s%@host_alias@%$host_alias%g
20671s%@host_cpu@%$host_cpu%g
20672s%@host_vendor@%$host_vendor%g
20673s%@host_os@%$host_os%g
20674s%@target@%$target%g
20675s%@target_alias@%$target_alias%g
20676s%@target_cpu@%$target_cpu%g
20677s%@target_vendor@%$target_vendor%g
20678s%@target_os@%$target_os%g
20679s%@build@%$build%g
20680s%@build_alias@%$build_alias%g
20681s%@build_cpu@%$build_cpu%g
20682s%@build_vendor@%$build_vendor%g
20683s%@build_os@%$build_os%g
20684s%@CC@%$CC%g
20685s%@CPP@%$CPP%g
20686s%@CXX@%$CXX%g
698dcdb6
VZ
20687s%@RANLIB@%$RANLIB%g
20688s%@AR@%$AR%g
20689s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
d6853540 20690s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
6054113a 20691s%@INSTALL_DATA@%$INSTALL_DATA%g
698dcdb6 20692s%@STRIP@%$STRIP%g
613d0995 20693s%@IF_GNU_MAKE@%$IF_GNU_MAKE%g
698dcdb6
VZ
20694s%@YACC@%$YACC%g
20695s%@LEX@%$LEX%g
20696s%@LEXLIB@%$LEXLIB%g
20697s%@LN_S@%$LN_S%g
9e691f46 20698s%@PKG_CONFIG@%$PKG_CONFIG%g
698dcdb6
VZ
20699s%@GTK_CFLAGS@%$GTK_CFLAGS%g
20700s%@GTK_LIBS@%$GTK_LIBS%g
8168de4c 20701s%@GTK_CONFIG@%$GTK_CONFIG%g
698dcdb6
VZ
20702s%@X_CFLAGS@%$X_CFLAGS%g
20703s%@X_PRE_LIBS@%$X_PRE_LIBS%g
20704s%@X_LIBS@%$X_LIBS%g
20705s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
3a922bb4 20706s%@RESCOMP@%$RESCOMP%g
698dcdb6 20707s%@DEREZ@%$DEREZ%g
3a922bb4 20708s%@CXXCPP@%$CXXCPP%g
b040e242 20709s%@LIBICONV@%$LIBICONV%g
698dcdb6
VZ
20710s%@LEX_STEM@%$LEX_STEM%g
20711s%@PATH_IFS@%$PATH_IFS%g
20712s%@WX_MAJOR_VERSION_NUMBER@%$WX_MAJOR_VERSION_NUMBER%g
20713s%@WX_MINOR_VERSION_NUMBER@%$WX_MINOR_VERSION_NUMBER%g
20714s%@WX_RELEASE_NUMBER@%$WX_RELEASE_NUMBER%g
698dcdb6
VZ
20715s%@WX_LIBRARY_NAME_STATIC@%$WX_LIBRARY_NAME_STATIC%g
20716s%@WX_LIBRARY_NAME_SHARED@%$WX_LIBRARY_NAME_SHARED%g
77e13408 20717s%@WX_LIBRARY_IMPORTLIB@%$WX_LIBRARY_IMPORTLIB%g
698dcdb6
VZ
20718s%@WX_TARGET_LIBRARY@%$WX_TARGET_LIBRARY%g
20719s%@WX_LIBRARY_LINK1@%$WX_LIBRARY_LINK1%g
20720s%@WX_LIBRARY_LINK2@%$WX_LIBRARY_LINK2%g
698dcdb6 20721s%@PROGRAM_EXT@%$PROGRAM_EXT%g
698dcdb6
VZ
20722s%@WX_LIBRARY_NAME_STATIC_GL@%$WX_LIBRARY_NAME_STATIC_GL%g
20723s%@WX_LIBRARY_NAME_SHARED_GL@%$WX_LIBRARY_NAME_SHARED_GL%g
698dcdb6
VZ
20724s%@WX_TARGET_LIBRARY_GL@%$WX_TARGET_LIBRARY_GL%g
20725s%@WX_LIBRARY_LINK1_GL@%$WX_LIBRARY_LINK1_GL%g
20726s%@WX_LIBRARY_LINK2_GL@%$WX_LIBRARY_LINK2_GL%g
698dcdb6
VZ
20727s%@WX_ALL@%$WX_ALL%g
20728s%@WX_ALL_INSTALLED@%$WX_ALL_INSTALLED%g
20729s%@SHARED_LD@%$SHARED_LD%g
20730s%@PIC_FLAG@%$PIC_FLAG%g
698dcdb6
VZ
20731s%@CODE_GEN_FLAGS@%$CODE_GEN_FLAGS%g
20732s%@CODE_GEN_FLAGS_CXX@%$CODE_GEN_FLAGS_CXX%g
3a922bb4
RL
20733s%@SONAME_FLAGS@%$SONAME_FLAGS%g
20734s%@SONAME_FLAGS_GL@%$SONAME_FLAGS_GL%g
698dcdb6
VZ
20735s%@WX_TARGET_LIBRARY_SONAME@%$WX_TARGET_LIBRARY_SONAME%g
20736s%@WX_TARGET_LIBRARY_TYPE@%$WX_TARGET_LIBRARY_TYPE%g
20737s%@WXDEBUG_DEFINE@%$WXDEBUG_DEFINE%g
20738s%@USE_GUI@%$USE_GUI%g
20739s%@AFMINSTALL@%$AFMINSTALL%g
20740s%@TOOLKIT@%$TOOLKIT%g
698dcdb6 20741s%@TOOLKIT_DIR@%$TOOLKIT_DIR%g
1e6feb95 20742s%@TOOLKIT_VPATH@%$TOOLKIT_VPATH%g
3a922bb4
RL
20743s%@TOOLCHAIN_NAME@%$TOOLCHAIN_NAME%g
20744s%@TOOLCHAIN_DEFS@%$TOOLCHAIN_DEFS%g
00c81359 20745s%@TOOLCHAIN_DLL_DEFS@%$TOOLCHAIN_DLL_DEFS%g
3a922bb4
RL
20746s%@cross_compiling@%$cross_compiling%g
20747s%@WXCONFIG_LIBS@%$WXCONFIG_LIBS%g
20748s%@WXCONFIG_LIBS_GL@%$WXCONFIG_LIBS_GL%g
885d4bf5
VS
20749s%@WXCONFIG_LIBS_STATIC@%$WXCONFIG_LIBS_STATIC%g
20750s%@WXCONFIG_LIBS_STATIC_GL@%$WXCONFIG_LIBS_STATIC_GL%g
698dcdb6
VZ
20751s%@WXCONFIG_INCLUDE@%$WXCONFIG_INCLUDE%g
20752s%@ALL_OBJECTS@%$ALL_OBJECTS%g
9b695262
VZ
20753s%@ALL_HEADERS@%$ALL_HEADERS%g
20754s%@ALL_SOURCES@%$ALL_SOURCES%g
698dcdb6
VZ
20755s%@GUIDIST@%$GUIDIST%g
20756s%@PORT_FILES@%$PORT_FILES%g
20757s%@DISTDIR@%$DISTDIR%g
698dcdb6 20758s%@SAMPLES_SUBDIRS@%$SAMPLES_SUBDIRS%g
62d0491b 20759s%@LDFLAGS_GL@%$LDFLAGS_GL%g
40f7145c 20760s%@LDFLAGS_EXE@%$LDFLAGS_EXE%g
698dcdb6 20761s%@OPENGL_LIBS@%$OPENGL_LIBS%g
3d63bc3a 20762s%@DMALLOC_LIBS@%$DMALLOC_LIBS%g
698dcdb6 20763s%@EXTRADEFS@%$EXTRADEFS%g
698dcdb6 20764s%@RESFLAGS@%$RESFLAGS%g
3a922bb4 20765s%@RESPROGRAMOBJ@%$RESPROGRAMOBJ%g
e95edd8d
GD
20766s%@WX_RESOURCES_MACOSX_ASCII@%$WX_RESOURCES_MACOSX_ASCII%g
20767s%@WX_RESOURCES_MACOSX_DATA@%$WX_RESOURCES_MACOSX_DATA%g
ef7f2189 20768s%@MACOSX_BUNDLE@%$MACOSX_BUNDLE%g
698dcdb6
VZ
20769s%@LIBWXMACRES@%$LIBWXMACRES%g
20770s%@LIBWXMACRESCOMP@%$LIBWXMACRESCOMP%g
2baaf735 20771s%@LIBWXMACRESWXCONFIG@%$LIBWXMACRESWXCONFIG%g
698dcdb6
VZ
20772s%@DLLTOOL@%$DLLTOOL%g
20773s%@AS@%$AS%g
20774s%@NM@%$NM%g
20775s%@LD@%$LD%g
20776s%@MAKEINFO@%$MAKEINFO%g
885d4bf5 20777s%@INSTALL_LIBRARY@%$INSTALL_LIBRARY%g
698dcdb6
VZ
20778s%@SET_MAKE@%$SET_MAKE%g
20779s%@subdirs@%$subdirs%g
1e487827 20780
1e487827 20781CEOF
1e487827
VS
20782EOF
20783
698dcdb6
VZ
20784cat >> $CONFIG_STATUS <<\EOF
20785
20786# Split the substitutions into bite-sized pieces for seds with
20787# small command number limits, like on Digital OSF/1 and HP-UX.
20788ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
20789ac_file=1 # Number of current file.
20790ac_beg=1 # First line for current file.
20791ac_end=$ac_max_sed_cmds # Line after last line for current file.
20792ac_more_lines=:
20793ac_sed_cmds=""
20794while $ac_more_lines; do
20795 if test $ac_beg -gt 1; then
20796 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
20797 else
20798 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
20799 fi
20800 if test ! -s conftest.s$ac_file; then
20801 ac_more_lines=false
20802 rm -f conftest.s$ac_file
20803 else
20804 if test -z "$ac_sed_cmds"; then
20805 ac_sed_cmds="sed -f conftest.s$ac_file"
10f2d63a 20806 else
698dcdb6 20807 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
10f2d63a 20808 fi
698dcdb6
VZ
20809 ac_file=`expr $ac_file + 1`
20810 ac_beg=$ac_end
20811 ac_end=`expr $ac_end + $ac_max_sed_cmds`
10f2d63a 20812 fi
698dcdb6
VZ
20813done
20814if test -z "$ac_sed_cmds"; then
20815 ac_sed_cmds=cat
20816fi
20817EOF
10f2d63a 20818
698dcdb6
VZ
20819cat >> $CONFIG_STATUS <<EOF
20820
20821CONFIG_FILES=\${CONFIG_FILES-"wx-config
20822 src/make.env
20823 src/makeprog.env
20824 src/makelib.env
20825 Makefile
20826 "}
10f2d63a 20827EOF
698dcdb6
VZ
20828cat >> $CONFIG_STATUS <<\EOF
20829for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
10f2d63a 20830 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
698dcdb6
VZ
20831 case "$ac_file" in
20832 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
20833 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
20834 *) ac_file_in="${ac_file}.in" ;;
10f2d63a
VZ
20835 esac
20836
698dcdb6 20837 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
1e487827 20838
698dcdb6
VZ
20839 # Remove last slash and all that follows it. Not all systems have dirname.
20840 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
20841 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
20842 # The file is in a subdirectory.
20843 test ! -d "$ac_dir" && mkdir "$ac_dir"
20844 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
10f2d63a 20845 # A "../" for each directory in $ac_dir_suffix.
698dcdb6 20846 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
10f2d63a
VZ
20847 else
20848 ac_dir_suffix= ac_dots=
20849 fi
20850
698dcdb6
VZ
20851 case "$ac_given_srcdir" in
20852 .) srcdir=.
20853 if test -z "$ac_dots"; then top_srcdir=.
20854 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
20855 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
10f2d63a 20856 *) # Relative path.
698dcdb6
VZ
20857 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
20858 top_srcdir="$ac_dots$ac_given_srcdir" ;;
10f2d63a
VZ
20859 esac
20860
698dcdb6
VZ
20861 case "$ac_given_INSTALL" in
20862 [/$]*) INSTALL="$ac_given_INSTALL" ;;
20863 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
10f2d63a
VZ
20864 esac
20865
698dcdb6
VZ
20866 echo creating "$ac_file"
20867 rm -f "$ac_file"
20868 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
20869 case "$ac_file" in
20870 *Makefile*) ac_comsub="1i\\
20871# $configure_input" ;;
20872 *) ac_comsub= ;;
20873 esac
10f2d63a 20874
698dcdb6
VZ
20875 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
20876 sed -e "$ac_comsub
20877s%@configure_input@%$configure_input%g
20878s%@srcdir@%$srcdir%g
20879s%@top_srcdir@%$top_srcdir%g
20880s%@INSTALL@%$INSTALL%g
20881" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
20882fi; done
20883rm -f conftest.s*
10f2d63a
VZ
20884
20885# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
20886# NAME is the cpp macro being defined and VALUE is the value it is being given.
20887#
20888# ac_d sets the value in "#define NAME VALUE" lines.
698dcdb6
VZ
20889ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
20890ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
20891ac_dC='\3'
20892ac_dD='%g'
20893# ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
20894ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
20895ac_uB='\([ ]\)%\1#\2define\3'
10f2d63a 20896ac_uC=' '
698dcdb6
VZ
20897ac_uD='\4%g'
20898# ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
20899ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
20900ac_eB='$%\1#\2define\3'
20901ac_eC=' '
20902ac_eD='%g'
10f2d63a 20903
698dcdb6
VZ
20904if test "${CONFIG_HEADERS+set}" != set; then
20905EOF
20906cat >> $CONFIG_STATUS <<EOF
20907 CONFIG_HEADERS="setup.h:setup.h.in"
20908EOF
20909cat >> $CONFIG_STATUS <<\EOF
20910fi
20911for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
10f2d63a 20912 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
698dcdb6
VZ
20913 case "$ac_file" in
20914 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
20915 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
20916 *) ac_file_in="${ac_file}.in" ;;
10f2d63a
VZ
20917 esac
20918
698dcdb6
VZ
20919 echo creating $ac_file
20920
20921 rm -f conftest.frag conftest.in conftest.out
20922 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
20923 cat $ac_file_inputs > conftest.in
20924
20925EOF
20926
20927# Transform confdefs.h into a sed script conftest.vals that substitutes
20928# the proper values into config.h.in to produce config.h. And first:
20929# Protect against being on the right side of a sed subst in config.status.
20930# Protect against being in an unquoted here document in config.status.
20931rm -f conftest.vals
20932cat > conftest.hdr <<\EOF
20933s/[\\&%]/\\&/g
20934s%[\\$`]%\\&%g
20935s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
20936s%ac_d%ac_u%gp
20937s%ac_u%ac_e%gp
20938EOF
20939sed -n -f conftest.hdr confdefs.h > conftest.vals
20940rm -f conftest.hdr
10f2d63a
VZ
20941
20942# This sed command replaces #undef with comments. This is necessary, for
20943# example, in the case of _POSIX_SOURCE, which is predefined and required
20944# on some systems where configure will not decide to define it.
698dcdb6
VZ
20945cat >> conftest.vals <<\EOF
20946s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
10f2d63a
VZ
20947EOF
20948
698dcdb6
VZ
20949# Break up conftest.vals because some shells have a limit on
20950# the size of here documents, and old seds have small limits too.
10f2d63a
VZ
20951
20952rm -f conftest.tail
698dcdb6 20953while :
10f2d63a 20954do
698dcdb6
VZ
20955 ac_lines=`grep -c . conftest.vals`
20956 # grep -c gives empty output for an empty file on some AIX systems.
20957 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
20958 # Write a limited-size here document to conftest.frag.
20959 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
20960 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
10f2d63a 20961 echo 'CEOF
698dcdb6
VZ
20962 sed -f conftest.frag conftest.in > conftest.out
20963 rm -f conftest.in
20964 mv conftest.out conftest.in
20965' >> $CONFIG_STATUS
20966 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
20967 rm -f conftest.vals
20968 mv conftest.tail conftest.vals
10f2d63a 20969done
698dcdb6
VZ
20970rm -f conftest.vals
20971
20972cat >> $CONFIG_STATUS <<\EOF
20973 rm -f conftest.frag conftest.h
20974 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
20975 cat conftest.in >> conftest.h
20976 rm -f conftest.in
20977 if cmp -s $ac_file conftest.h 2>/dev/null; then
20978 echo "$ac_file is unchanged"
20979 rm -f conftest.h
10f2d63a 20980 else
698dcdb6
VZ
20981 # Remove last slash and all that follows it. Not all systems have dirname.
20982 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
10f2d63a 20983 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
698dcdb6
VZ
20984 # The file is in a subdirectory.
20985 test ! -d "$ac_dir" && mkdir "$ac_dir"
10f2d63a 20986 fi
698dcdb6
VZ
20987 rm -f $ac_file
20988 mv conftest.h $ac_file
10f2d63a 20989 fi
698dcdb6
VZ
20990fi; done
20991
10f2d63a 20992EOF
698dcdb6 20993cat >> $CONFIG_STATUS <<EOF
10f2d63a 20994
3a922bb4 20995 TOOLCHAIN_NAME="${TOOLCHAIN_NAME}"
698dcdb6
VZ
20996 LN_S="${LN_S}"
20997
20998
20999EOF
21000cat >> $CONFIG_STATUS <<\EOF
10f2d63a 21001
652d930d 21002 if test ! -h wx-config; then
991a5759 21003 chmod +x wx-config
3a922bb4
RL
21004 mv wx-config wx${TOOLCHAIN_NAME}-config
21005 ${LN_S} wx${TOOLCHAIN_NAME}-config wx-config
991a5759 21006 fi
665bbe97 21007
00cf1208
RR
21008 if test ! -d lib; then
21009 mkdir lib
21010 fi
21011 if test ! -d lib/wx; then
21012 mkdir lib/wx
21013 fi
21014 if test ! -d lib/wx/include; then
21015 mkdir lib/wx/include
21016 fi
3a922bb4
RL
21017 if test ! -d lib/wx/include/${TOOLCHAIN_NAME}; then
21018 mkdir lib/wx/include/${TOOLCHAIN_NAME}
00cf1208 21019 fi
3a922bb4
RL
21020 if test ! -d lib/wx/include/${TOOLCHAIN_NAME}/wx; then
21021 mkdir lib/wx/include/${TOOLCHAIN_NAME}/wx
00cf1208
RR
21022 fi
21023 if test -f setup.h; then
3a922bb4 21024 mv -f setup.h lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h
00cf1208 21025 fi
698dcdb6
VZ
21026
21027exit 0
10f2d63a
VZ
21028EOF
21029chmod +x $CONFIG_STATUS
698dcdb6
VZ
21030rm -fr confdefs* $ac_clean_files
21031test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
10f2d63a 21032
2224580a
VZ
21033if test "$no_recursion" != yes; then
21034
21035 # Remove --cache-file and --srcdir arguments so they do not pile up.
21036 ac_sub_configure_args=
21037 ac_prev=
21038 for ac_arg in $ac_configure_args; do
21039 if test -n "$ac_prev"; then
21040 ac_prev=
21041 continue
21042 fi
698dcdb6 21043 case "$ac_arg" in
2224580a
VZ
21044 -cache-file | --cache-file | --cache-fil | --cache-fi \
21045 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
21046 ac_prev=cache_file ;;
21047 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
698dcdb6 21048 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
2224580a
VZ
21049 ;;
21050 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
21051 ac_prev=srcdir ;;
21052 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
21053 ;;
21054 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
21055 esac
21056 done
21057
8f4a9a10 21058 for ac_config_dir in demos samples utils contrib; do
2224580a
VZ
21059
21060 # Do not complain, so a configure script can configure whichever
21061 # parts of a large source tree are present.
698dcdb6
VZ
21062 if test ! -d $srcdir/$ac_config_dir; then
21063 continue
21064 fi
21065
21066 echo configuring in $ac_config_dir
2224580a 21067
698dcdb6 21068 case "$srcdir" in
2224580a
VZ
21069 .) ;;
21070 *)
698dcdb6
VZ
21071 if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
21072 else
21073 { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
21074 fi
21075 ;;
2224580a
VZ
21076 esac
21077
21078 ac_popdir=`pwd`
698dcdb6 21079 cd $ac_config_dir
2224580a 21080
698dcdb6
VZ
21081 # A "../" for each directory in /$ac_config_dir.
21082 ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
2224580a 21083
698dcdb6 21084 case "$srcdir" in
2224580a
VZ
21085 .) # No --srcdir option. We are building in place.
21086 ac_sub_srcdir=$srcdir ;;
698dcdb6
VZ
21087 /*) # Absolute path.
21088 ac_sub_srcdir=$srcdir/$ac_config_dir ;;
2224580a 21089 *) # Relative path.
698dcdb6 21090 ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
2224580a
VZ
21091 esac
21092
21093 # Check for guested configure; otherwise get Cygnus style configure.
698dcdb6
VZ
21094 if test -f $ac_sub_srcdir/configure; then
21095 ac_sub_configure=$ac_sub_srcdir/configure
2224580a
VZ
21096 elif test -f $ac_sub_srcdir/configure.in; then
21097 ac_sub_configure=$ac_configure
21098 else
698dcdb6 21099 echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
2224580a
VZ
21100 ac_sub_configure=
21101 fi
21102
21103 # The recursion is here.
21104 if test -n "$ac_sub_configure"; then
698dcdb6 21105
2224580a 21106 # Make the cache file name correct relative to the subdirectory.
698dcdb6
VZ
21107 case "$cache_file" in
21108 /*) ac_sub_cache_file=$cache_file ;;
2224580a 21109 *) # Relative path.
698dcdb6 21110 ac_sub_cache_file="$ac_dots$cache_file" ;;
2224580a 21111 esac
698dcdb6
VZ
21112 case "$ac_given_INSTALL" in
21113 [/$]*) INSTALL="$ac_given_INSTALL" ;;
21114 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
21115 esac
2224580a 21116
698dcdb6 21117 echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
2224580a 21118 # The eval makes quoting arguments work.
698dcdb6
VZ
21119 if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
21120 then :
21121 else
21122 { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }
21123 fi
2224580a
VZ
21124 fi
21125
21126 cd $ac_popdir
21127 done
21128fi
21129
698dcdb6 21130