]> git.saurik.com Git - wxWidgets.git/blame - configure
added keyboard focus & typein
[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
1e487827 1402
1e487827 1403
6232543b 1404
10f2d63a
VZ
1405 wx_arg_cache_file="configarg.cache"
1406 echo "loading argument cache $wx_arg_cache_file"
1407 rm -f ${wx_arg_cache_file}.tmp
1408 touch ${wx_arg_cache_file}.tmp
1409 touch ${wx_arg_cache_file}
698dcdb6 1410
10f2d63a
VZ
1411
1412DEBUG_CONFIGURE=0
1413if test $DEBUG_CONFIGURE = 1; then
1e6feb95
VZ
1414 DEFAULT_wxUSE_UNIVERSAL=no
1415
d8356fa3
VZ
1416 DEFAULT_wxUSE_NANOX=no
1417
10f2d63a
VZ
1418 DEFAULT_wxUSE_THREADS=yes
1419
1420 DEFAULT_wxUSE_SHARED=yes
3a922bb4 1421 DEFAULT_wxUSE_SONAME=no
1e6feb95 1422 DEFAULT_wxUSE_OPTIMISE=no
10f2d63a
VZ
1423 DEFAULT_wxUSE_PROFILE=no
1424 DEFAULT_wxUSE_NO_DEPS=no
8f4a9a10
RR
1425 DEFAULT_wxUSE_NO_RTTI=no
1426 DEFAULT_wxUSE_NO_EXCEPTIONS=no
10f2d63a
VZ
1427 DEFAULT_wxUSE_PERMISSIVE=no
1428 DEFAULT_wxUSE_DEBUG_FLAG=yes
1429 DEFAULT_wxUSE_DEBUG_INFO=yes
1430 DEFAULT_wxUSE_DEBUG_GDB=yes
1431 DEFAULT_wxUSE_MEM_TRACING=no
1432 DEFAULT_wxUSE_DEBUG_CONTEXT=no
1433 DEFAULT_wxUSE_DMALLOC=no
a7ae7112 1434 DEFAULT_wxUSE_PRECOMP=no
10f2d63a
VZ
1435 DEFAULT_wxUSE_APPLE_IEEE=no
1436
1437 DEFAULT_wxUSE_LOG=yes
1e6feb95
VZ
1438 DEFAULT_wxUSE_LOGWINDOW=no
1439 DEFAULT_wxUSE_LOGGUI=no
69d27ff7 1440 DEFAULT_wxUSE_LOGDIALOG=no
10f2d63a
VZ
1441
1442 DEFAULT_wxUSE_GUI=yes
1e6feb95 1443 DEFAULT_wxUSE_CONTROLS=no
10f2d63a 1444
3e44f09d 1445 DEFAULT_wxUSE_REGEX=no
10f2d63a
VZ
1446 DEFAULT_wxUSE_ZLIB=no
1447 DEFAULT_wxUSE_LIBPNG=no
1448 DEFAULT_wxUSE_LIBJPEG=no
c7a2bf27 1449 DEFAULT_wxUSE_LIBTIFF=no
10f2d63a 1450 DEFAULT_wxUSE_ODBC=no
bdad4e7e 1451 DEFAULT_wxUSE_OPENGL=no
10f2d63a 1452
eb4efbdc 1453 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=no
4f3c5f06 1454 DEFAULT_wxUSE_SNGLINST_CHECKER=no
10f2d63a 1455 DEFAULT_wxUSE_STD_IOSTREAM=no
1e6feb95
VZ
1456 DEFAULT_wxUSE_CMDLINE_PARSER=no
1457 DEFAULT_wxUSE_DATETIME=no
1458 DEFAULT_wxUSE_TIMEDATE=no
1459 DEFAULT_wxUSE_TIMER=no
1460 DEFAULT_wxUSE_STOPWATCH=no
10f2d63a 1461 DEFAULT_wxUSE_FILE=no
1e6feb95 1462 DEFAULT_wxUSE_FFILE=no
a3a584a7 1463 DEFAULT_wxUSE_TEXTBUFFER=no
10f2d63a 1464 DEFAULT_wxUSE_TEXTFILE=no
10f2d63a
VZ
1465 DEFAULT_wxUSE_WAVE=no
1466 DEFAULT_wxUSE_INTL=no
1467 DEFAULT_wxUSE_CONFIG=no
1e6feb95 1468 DEFAULT_wxUSE_FONTMAP=no
10f2d63a
VZ
1469 DEFAULT_wxUSE_STREAMS=no
1470 DEFAULT_wxUSE_SOCKETS=no
1471 DEFAULT_wxUSE_DIALUP_MANAGER=no
10f2d63a 1472 DEFAULT_wxUSE_JOYSTICK=no
6bff71f8 1473 DEFAULT_wxUSE_DYNLIB_CLASS=no
0b9ab0bd 1474 DEFAULT_wxUSE_DYNAMIC_LOADER=no
10f2d63a 1475 DEFAULT_wxUSE_LONGLONG=no
e8f65ba6 1476 DEFAULT_wxUSE_GEOMETRY=no
10f2d63a
VZ
1477
1478 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no
1479 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no
1480 DEFAULT_wxUSE_POSTSCRIPT=no
1481
1482 DEFAULT_wxUSE_X_RESOURCES=no
1483 DEFAULT_wxUSE_CLIPBOARD=no
1484 DEFAULT_wxUSE_TOOLTIPS=no
1485 DEFAULT_wxUSE_DRAG_AND_DROP=no
24fd6d87 1486 DEFAULT_wxUSE_DRAGIMAGE=no
10f2d63a
VZ
1487 DEFAULT_wxUSE_SPLINES=no
1488
1489 DEFAULT_wxUSE_MDI_ARCHITECTURE=no
1490 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no
1491 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no
1492
1493 DEFAULT_wxUSE_PROLOGIO=no
1494 DEFAULT_wxUSE_RESOURCES=no
1495 DEFAULT_wxUSE_CONSTRAINTS=no
1496 DEFAULT_wxUSE_IPC=no
1497 DEFAULT_wxUSE_HELP=no
29fd3c0c 1498 DEFAULT_wxUSE_MS_HTML_HELP=no
3379ed37 1499 DEFAULT_wxUSE_WXHTML_HELP=no
24176f2c 1500 DEFAULT_wxUSE_TREELAYOUT=no
10f2d63a 1501 DEFAULT_wxUSE_METAFILE=no
1e6feb95 1502 DEFAULT_wxUSE_MIMETYPE=no
4cdb0ab0
VS
1503 DEFAULT_wxUSE_SYSTEM_OPTIONS=no
1504 DEFAULT_wxUSE_PROTOCOL=no
1505 DEFAULT_wxUSE_PROTOCOL_HTTP=no
1506 DEFAULT_wxUSE_PROTOCOL_FTP=no
1507 DEFAULT_wxUSE_PROTOCOL_FILE=no
1508 DEFAULT_wxUSE_URL=no
1509
10f2d63a 1510 DEFAULT_wxUSE_COMMONDLGS=no
1e6feb95
VZ
1511 DEFAULT_wxUSE_CHOICEDLG=no
1512 DEFAULT_wxUSE_COLOURDLG=no
10f2d63a 1513 DEFAULT_wxUSE_DIRDLG=no
1e6feb95 1514 DEFAULT_wxUSE_FILEDLG=no
8db37e06 1515 DEFAULT_wxUSE_FINDREPLDLG=no
1e6feb95
VZ
1516 DEFAULT_wxUSE_FONTDLG=no
1517 DEFAULT_wxUSE_MSGDLG=no
1518 DEFAULT_wxUSE_NUMBERDLG=no
10f2d63a 1519 DEFAULT_wxUSE_TEXTDLG=no
cbca9943 1520 DEFAULT_wxUSE_SPLASH=no
10f2d63a
VZ
1521 DEFAULT_wxUSE_STARTUP_TIPS=no
1522 DEFAULT_wxUSE_PROGRESSDLG=no
b1f5d087
VZ
1523 DEFAULT_wxUSE_WIZARDDLG=no
1524
1e6feb95 1525 DEFAULT_wxUSE_MENUS=no
10f2d63a
VZ
1526 DEFAULT_wxUSE_MINIFRAME=no
1527 DEFAULT_wxUSE_HTML=no
24528b0c 1528 DEFAULT_wxUSE_FILESYSTEM=no
10f2d63a
VZ
1529 DEFAULT_wxUSE_FS_INET=no
1530 DEFAULT_wxUSE_FS_ZIP=no
1531 DEFAULT_wxUSE_BUSYINFO=no
1532 DEFAULT_wxUSE_ZIPSTREAM=no
1e6feb95 1533 DEFAULT_wxUSE_VALIDATORS=no
10f2d63a
VZ
1534
1535 DEFAULT_wxUSE_ACCEL=no
1e6feb95 1536 DEFAULT_wxUSE_BUTTON=no
10f2d63a 1537 DEFAULT_wxUSE_BMPBUTTON=no
1e6feb95
VZ
1538 DEFAULT_wxUSE_CALCTRL=no
1539 DEFAULT_wxUSE_CARET=no
10f2d63a
VZ
1540 DEFAULT_wxUSE_CHECKBOX=no
1541 DEFAULT_wxUSE_CHECKLST=no
1e6feb95 1542 DEFAULT_wxUSE_CHOICE=no
10f2d63a
VZ
1543 DEFAULT_wxUSE_COMBOBOX=no
1544 DEFAULT_wxUSE_GAUGE=no
1545 DEFAULT_wxUSE_GRID=no
1546 DEFAULT_wxUSE_NEW_GRID=no
1547 DEFAULT_wxUSE_IMAGLIST=no
1548 DEFAULT_wxUSE_LISTBOX=no
1549 DEFAULT_wxUSE_LISTCTRL=no
1550 DEFAULT_wxUSE_NOTEBOOK=no
24176f2c 1551 DEFAULT_wxUSE_PROPSHEET=no
10f2d63a
VZ
1552 DEFAULT_wxUSE_RADIOBOX=no
1553 DEFAULT_wxUSE_RADIOBTN=no
1554 DEFAULT_wxUSE_SASH=no
1555 DEFAULT_wxUSE_SCROLLBAR=no
1556 DEFAULT_wxUSE_SLIDER=no
1557 DEFAULT_wxUSE_SPINBTN=no
56cfaa52 1558 DEFAULT_wxUSE_SPINCTRL=no
10f2d63a
VZ
1559 DEFAULT_wxUSE_SPLITTER=no
1560 DEFAULT_wxUSE_STATBMP=no
1561 DEFAULT_wxUSE_STATBOX=no
1562 DEFAULT_wxUSE_STATLINE=no
1e6feb95 1563 DEFAULT_wxUSE_STATTEXT=no
10f2d63a
VZ
1564 DEFAULT_wxUSE_STATUSBAR=yes
1565 DEFAULT_wxUSE_TABDIALOG=no
1e6feb95 1566 DEFAULT_wxUSE_TEXTCTRL=no
1db8dc4a 1567 DEFAULT_wxUSE_TOGGLEBTN=no
10f2d63a 1568 DEFAULT_wxUSE_TOOLBAR=no
360d6699
VZ
1569 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
1570 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
10f2d63a 1571 DEFAULT_wxUSE_TREECTRL=no
9f41d601 1572 DEFAULT_wxUSE_POPUPWIN=no
9926e4a4 1573 DEFAULT_wxUSE_TIPWINDOW=no
10f2d63a
VZ
1574
1575 DEFAULT_wxUSE_UNICODE=no
a72a4bfa 1576 DEFAULT_wxUSE_UNICODE_MSLU=no
10f2d63a
VZ
1577 DEFAULT_wxUSE_WCSRTOMBS=no
1578
edae8572 1579 DEFAULT_wxUSE_PALETTE=no
0046ff7c 1580 DEFAULT_wxUSE_IMAGE=no
10f2d63a
VZ
1581 DEFAULT_wxUSE_GIF=no
1582 DEFAULT_wxUSE_PCX=no
1583 DEFAULT_wxUSE_PNM=no
4b6b4dfc 1584 DEFAULT_wxUSE_IFF=no
0046ff7c 1585 DEFAULT_wxUSE_XPM=no
658974ae 1586 DEFAULT_wxUSE_ICO_CUR=no
10f2d63a 1587else
1e6feb95
VZ
1588 DEFAULT_wxUSE_UNIVERSAL=no
1589
d8356fa3
VZ
1590 DEFAULT_wxUSE_NANOX=no
1591
10f2d63a
VZ
1592 DEFAULT_wxUSE_THREADS=yes
1593
1594 DEFAULT_wxUSE_SHARED=yes
3a922bb4 1595 DEFAULT_wxUSE_SONAME=no
10f2d63a
VZ
1596 DEFAULT_wxUSE_OPTIMISE=yes
1597 DEFAULT_wxUSE_PROFILE=no
1598 DEFAULT_wxUSE_NO_DEPS=no
8f4a9a10
RR
1599 DEFAULT_wxUSE_NO_RTTI=no
1600 DEFAULT_wxUSE_NO_EXCEPTIONS=no
10f2d63a
VZ
1601 DEFAULT_wxUSE_PERMISSIVE=no
1602 DEFAULT_wxUSE_DEBUG_FLAG=no
1603 DEFAULT_wxUSE_DEBUG_INFO=no
1604 DEFAULT_wxUSE_DEBUG_GDB=no
1605 DEFAULT_wxUSE_MEM_TRACING=no
1606 DEFAULT_wxUSE_DEBUG_CONTEXT=no
1607 DEFAULT_wxUSE_DMALLOC=no
a7ae7112 1608 DEFAULT_wxUSE_PRECOMP=no
10f2d63a
VZ
1609 DEFAULT_wxUSE_APPLE_IEEE=yes
1610
1611 DEFAULT_wxUSE_LOG=yes
d73be714
VZ
1612 DEFAULT_wxUSE_LOGWINDOW=yes
1613 DEFAULT_wxUSE_LOGGUI=yes
69d27ff7 1614 DEFAULT_wxUSE_LOGDIALOG=yes
10f2d63a
VZ
1615
1616 DEFAULT_wxUSE_GUI=yes
1617
831b3152 1618 DEFAULT_wxUSE_REGEX=yes
10f2d63a
VZ
1619 DEFAULT_wxUSE_ZLIB=yes
1620 DEFAULT_wxUSE_LIBPNG=yes
1621 DEFAULT_wxUSE_LIBJPEG=yes
b47c832e 1622 DEFAULT_wxUSE_LIBTIFF=yes
16b52fa1 1623 DEFAULT_wxUSE_ODBC=no
bdad4e7e 1624 DEFAULT_wxUSE_OPENGL=no
10f2d63a 1625
eb4efbdc 1626 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=yes
4f3c5f06 1627 DEFAULT_wxUSE_SNGLINST_CHECKER=yes
10f2d63a 1628 DEFAULT_wxUSE_STD_IOSTREAM=no
1e6feb95
VZ
1629 DEFAULT_wxUSE_CMDLINE_PARSER=yes
1630 DEFAULT_wxUSE_DATETIME=yes
1631 DEFAULT_wxUSE_TIMEDATE=no
1632 DEFAULT_wxUSE_TIMER=yes
1633 DEFAULT_wxUSE_STOPWATCH=yes
10f2d63a 1634 DEFAULT_wxUSE_FILE=yes
1e6feb95 1635 DEFAULT_wxUSE_FFILE=yes
a3a584a7 1636 DEFAULT_wxUSE_TEXTBUFFER=yes
10f2d63a 1637 DEFAULT_wxUSE_TEXTFILE=yes
10f2d63a
VZ
1638 DEFAULT_wxUSE_WAVE=no
1639 DEFAULT_wxUSE_INTL=yes
1640 DEFAULT_wxUSE_CONFIG=yes
1e6feb95 1641 DEFAULT_wxUSE_FONTMAP=yes
10f2d63a
VZ
1642 DEFAULT_wxUSE_STREAMS=yes
1643 DEFAULT_wxUSE_SOCKETS=yes
1644 DEFAULT_wxUSE_DIALUP_MANAGER=yes
10f2d63a 1645 DEFAULT_wxUSE_JOYSTICK=yes
6bff71f8 1646 DEFAULT_wxUSE_DYNLIB_CLASS=yes
9337b578 1647 DEFAULT_wxUSE_DYNAMIC_LOADER=yes
b685cd9b 1648 DEFAULT_wxUSE_LONGLONG=yes
e8f65ba6 1649 DEFAULT_wxUSE_GEOMETRY=yes
10f2d63a
VZ
1650
1651 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes
1652 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes
1653 DEFAULT_wxUSE_POSTSCRIPT=yes
1654
1655 DEFAULT_wxUSE_X_RESOURCES=no
1656 DEFAULT_wxUSE_CLIPBOARD=yes
1657 DEFAULT_wxUSE_TOOLTIPS=yes
1658 DEFAULT_wxUSE_DRAG_AND_DROP=yes
24fd6d87 1659 DEFAULT_wxUSE_DRAGIMAGE=yes
10f2d63a
VZ
1660 DEFAULT_wxUSE_SPLINES=yes
1661
1662 DEFAULT_wxUSE_MDI_ARCHITECTURE=yes
1663 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes
1664 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes
1665
1666 DEFAULT_wxUSE_PROLOGIO=yes
1667 DEFAULT_wxUSE_RESOURCES=yes
1668 DEFAULT_wxUSE_CONSTRAINTS=yes
1669 DEFAULT_wxUSE_IPC=yes
1670 DEFAULT_wxUSE_HELP=yes
29fd3c0c 1671 DEFAULT_wxUSE_MS_HTML_HELP=yes
3379ed37 1672 DEFAULT_wxUSE_WXHTML_HELP=yes
24176f2c 1673 DEFAULT_wxUSE_TREELAYOUT=yes
10f2d63a 1674 DEFAULT_wxUSE_METAFILE=yes
1e6feb95 1675 DEFAULT_wxUSE_MIMETYPE=yes
3e44f09d 1676 DEFAULT_wxUSE_SYSTEM_OPTIONS=yes
4cdb0ab0
VS
1677 DEFAULT_wxUSE_PROTOCOL=yes
1678 DEFAULT_wxUSE_PROTOCOL_HTTP=yes
1679 DEFAULT_wxUSE_PROTOCOL_FTP=yes
1680 DEFAULT_wxUSE_PROTOCOL_FILE=yes
1681 DEFAULT_wxUSE_URL=yes
10f2d63a
VZ
1682
1683 DEFAULT_wxUSE_COMMONDLGS=yes
1e6feb95
VZ
1684 DEFAULT_wxUSE_CHOICEDLG=yes
1685 DEFAULT_wxUSE_COLOURDLG=yes
10f2d63a 1686 DEFAULT_wxUSE_DIRDLG=yes
1e6feb95 1687 DEFAULT_wxUSE_FILEDLG=yes
8db37e06 1688 DEFAULT_wxUSE_FINDREPLDLG=yes
1e6feb95
VZ
1689 DEFAULT_wxUSE_FONTDLG=yes
1690 DEFAULT_wxUSE_MSGDLG=yes
1691 DEFAULT_wxUSE_NUMBERDLG=yes
10f2d63a 1692 DEFAULT_wxUSE_TEXTDLG=yes
cbca9943 1693 DEFAULT_wxUSE_SPLASH=yes
10f2d63a
VZ
1694 DEFAULT_wxUSE_STARTUP_TIPS=yes
1695 DEFAULT_wxUSE_PROGRESSDLG=yes
f33f19dd
VZ
1696 DEFAULT_wxUSE_WIZARDDLG=yes
1697
1e6feb95 1698 DEFAULT_wxUSE_MENUS=yes
10f2d63a
VZ
1699 DEFAULT_wxUSE_MINIFRAME=yes
1700 DEFAULT_wxUSE_HTML=yes
24528b0c 1701 DEFAULT_wxUSE_FILESYSTEM=yes
10f2d63a
VZ
1702 DEFAULT_wxUSE_FS_INET=yes
1703 DEFAULT_wxUSE_FS_ZIP=yes
1704 DEFAULT_wxUSE_BUSYINFO=yes
1705 DEFAULT_wxUSE_ZIPSTREAM=yes
1706 DEFAULT_wxUSE_VALIDATORS=yes
1707
1708 DEFAULT_wxUSE_ACCEL=yes
1e6feb95 1709 DEFAULT_wxUSE_BUTTON=yes
10f2d63a 1710 DEFAULT_wxUSE_BMPBUTTON=yes
1e6feb95
VZ
1711 DEFAULT_wxUSE_CALCTRL=yes
1712 DEFAULT_wxUSE_CARET=yes
10f2d63a
VZ
1713 DEFAULT_wxUSE_CHECKBOX=yes
1714 DEFAULT_wxUSE_CHECKLST=yes
1715 DEFAULT_wxUSE_CHOICE=yes
1716 DEFAULT_wxUSE_COMBOBOX=yes
1717 DEFAULT_wxUSE_GAUGE=yes
1718 DEFAULT_wxUSE_GRID=yes
cc977e5f 1719 DEFAULT_wxUSE_NEW_GRID=yes
10f2d63a
VZ
1720 DEFAULT_wxUSE_IMAGLIST=yes
1721 DEFAULT_wxUSE_LISTBOX=yes
1722 DEFAULT_wxUSE_LISTCTRL=yes
1723 DEFAULT_wxUSE_NOTEBOOK=yes
24176f2c 1724 DEFAULT_wxUSE_PROPSHEET=yes
10f2d63a
VZ
1725 DEFAULT_wxUSE_RADIOBOX=yes
1726 DEFAULT_wxUSE_RADIOBTN=yes
1727 DEFAULT_wxUSE_SASH=yes
1728 DEFAULT_wxUSE_SCROLLBAR=yes
1729 DEFAULT_wxUSE_SLIDER=yes
1730 DEFAULT_wxUSE_SPINBTN=yes
56cfaa52 1731 DEFAULT_wxUSE_SPINCTRL=yes
10f2d63a
VZ
1732 DEFAULT_wxUSE_SPLITTER=yes
1733 DEFAULT_wxUSE_STATBMP=yes
1734 DEFAULT_wxUSE_STATBOX=yes
1735 DEFAULT_wxUSE_STATLINE=yes
1e6feb95 1736 DEFAULT_wxUSE_STATTEXT=yes
10f2d63a
VZ
1737 DEFAULT_wxUSE_STATUSBAR=yes
1738 DEFAULT_wxUSE_TABDIALOG=no
1e6feb95 1739 DEFAULT_wxUSE_TEXTCTRL=yes
1db8dc4a 1740 DEFAULT_wxUSE_TOGGLEBTN=yes
10f2d63a 1741 DEFAULT_wxUSE_TOOLBAR=yes
360d6699
VZ
1742 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
1743 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
10f2d63a 1744 DEFAULT_wxUSE_TREECTRL=yes
9f41d601 1745 DEFAULT_wxUSE_POPUPWIN=yes
9926e4a4 1746 DEFAULT_wxUSE_TIPWINDOW=yes
10f2d63a
VZ
1747
1748 DEFAULT_wxUSE_UNICODE=no
a72a4bfa 1749 DEFAULT_wxUSE_UNICODE_MSLU=yes
10f2d63a
VZ
1750 DEFAULT_wxUSE_WCSRTOMBS=no
1751
edae8572 1752 DEFAULT_wxUSE_PALETTE=yes
0046ff7c 1753 DEFAULT_wxUSE_IMAGE=yes
10f2d63a
VZ
1754 DEFAULT_wxUSE_GIF=yes
1755 DEFAULT_wxUSE_PCX=yes
cc0e8480 1756 DEFAULT_wxUSE_IFF=no
10f2d63a 1757 DEFAULT_wxUSE_PNM=yes
0046ff7c 1758 DEFAULT_wxUSE_XPM=yes
658974ae 1759 DEFAULT_wxUSE_ICO_CUR=yes
10f2d63a
VZ
1760fi
1761
698dcdb6
VZ
1762
1763
10f2d63a
VZ
1764for toolkit in `echo $ALL_TOOLKITS`; do
1765 LINE=`grep "wxUSE_$toolkit" ${wx_arg_cache_file}`
1766 if test "x$LINE" != x ; then
1767 has_toolkit_in_cache=1
1768 eval "DEFAULT_$LINE"
1769 eval "CACHE_$toolkit=1"
1770 fi
1771done
1772
698dcdb6
VZ
1773
1774
1775 echo $ac_n "checking for --enable-gui""... $ac_c" 1>&6
19bc6aad 1776echo "configure:1777: checking for --enable-gui" >&5
10f2d63a
VZ
1777 no_cache=0
1778 # Check whether --enable-gui or --disable-gui was given.
1779if test "${enable_gui+set}" = set; then
1780 enableval="$enable_gui"
698dcdb6 1781
10f2d63a
VZ
1782 if test "$enableval" = yes; then
1783 ac_cv_use_gui='wxUSE_GUI=yes'
1784 else
1785 ac_cv_use_gui='wxUSE_GUI=no'
1786 fi
698dcdb6 1787
10f2d63a 1788else
698dcdb6 1789
10f2d63a
VZ
1790 LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}`
1791 if test "x$LINE" != x ; then
1792 eval "DEFAULT_$LINE"
1793 else
1794 no_cache=1
1795 fi
1796
1797 ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI
698dcdb6
VZ
1798
1799fi
10f2d63a
VZ
1800
1801
1802 eval "$ac_cv_use_gui"
1803 if test "$no_cache" != 1; then
1804 echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp
1805 fi
1806
1807 if test "$wxUSE_GUI" = yes; then
698dcdb6 1808 echo "$ac_t""yes" 1>&6
10f2d63a 1809 else
698dcdb6 1810 echo "$ac_t""no" 1>&6
10f2d63a 1811 fi
698dcdb6 1812
10f2d63a 1813
b12915c1 1814if test "$wxUSE_GUI" = "yes"; then
10f2d63a 1815
1e6feb95
VZ
1816
1817 echo $ac_n "checking for --enable-universal""... $ac_c" 1>&6
19bc6aad 1818echo "configure:1819: checking for --enable-universal" >&5
1e6feb95
VZ
1819 no_cache=0
1820 # Check whether --enable-universal or --disable-universal was given.
1821if test "${enable_universal+set}" = set; then
1822 enableval="$enable_universal"
1823
1824 if test "$enableval" = yes; then
1825 ac_cv_use_universal='wxUSE_UNIVERSAL=yes'
1826 else
1827 ac_cv_use_universal='wxUSE_UNIVERSAL=no'
1828 fi
1829
1830else
1831
1832 LINE=`grep "wxUSE_UNIVERSAL" ${wx_arg_cache_file}`
1833 if test "x$LINE" != x ; then
1834 eval "DEFAULT_$LINE"
1835 else
1836 no_cache=1
1837 fi
1838
1839 ac_cv_use_universal='wxUSE_UNIVERSAL='$DEFAULT_wxUSE_UNIVERSAL
1840
1841fi
1842
1843
1844 eval "$ac_cv_use_universal"
1845 if test "$no_cache" != 1; then
1846 echo $ac_cv_use_universal >> ${wx_arg_cache_file}.tmp
1847 fi
1848
1849 if test "$wxUSE_UNIVERSAL" = yes; then
1850 echo "$ac_t""yes" 1>&6
1851 else
1852 echo "$ac_t""no" 1>&6
1853 fi
1854
10f2d63a
VZ
1855# Check whether --with-gtk or --without-gtk was given.
1856if test "${with_gtk+set}" = set; then
1857 withval="$with_gtk"
1858 wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1
698dcdb6 1859fi
10f2d63a
VZ
1860
1861# Check whether --with-motif or --without-motif was given.
1862if test "${with_motif+set}" = set; then
1863 withval="$with_motif"
1864 wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1
698dcdb6 1865fi
10f2d63a 1866
b4085ce6
GD
1867# Check whether --with-mac or --without-mac was given.
1868if test "${with_mac+set}" = set; then
1869 withval="$with_mac"
1870 wxUSE_MAC="$withval" TOOLKIT_GIVEN=1
698dcdb6 1871fi
b4085ce6 1872
10f2d63a
VZ
1873# Check whether --with-wine or --without-wine was given.
1874if test "${with_wine+set}" = set; then
1875 withval="$with_wine"
1876 wxUSE_WINE="$withval" CACHE_WINE=1 TOOLKIT_GIVEN=1
698dcdb6 1877fi
10f2d63a 1878
77e13408
RL
1879# Check whether --with-msw or --without-msw was given.
1880if test "${with_msw+set}" = set; then
1881 withval="$with_msw"
b4efce5e 1882 wxUSE_MSW="$withval" CACHE_MSW=1 TOOLKIT_GIVEN=1
698dcdb6 1883fi
10f2d63a 1884
e07802fc
VZ
1885# Check whether --with-pm or --without-pm was given.
1886if test "${with_pm+set}" = set; then
1887 withval="$with_pm"
1888 wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1
698dcdb6
VZ
1889fi
1890
1e6feb95
VZ
1891# Check whether --with-mgl or --without-mgl was given.
1892if test "${with_mgl+set}" = set; then
1893 withval="$with_mgl"
1894 wxUSE_MGL="$withval" CACHE_MGL=1 TOOLKIT_GIVEN=1
1895fi
1896
1725144d
RR
1897# Check whether --with-microwin or --without-microwin was given.
1898if test "${with_microwin+set}" = set; then
1899 withval="$with_microwin"
1900 wxUSE_MICROWIN="$withval" CACHE_MICROWIN=1 TOOLKIT_GIVEN=1
1901fi
1902
f79bd02d
JS
1903# Check whether --with-x11 or --without-x11 was given.
1904if test "${with_x11+set}" = set; then
1905 withval="$with_x11"
3c011993 1906 wxUSE_X11="$withval" wxUSE_UNIVERSAL="yes" CACHE_X11=1 TOOLKIT_GIVEN=1
f79bd02d
JS
1907fi
1908
10f2d63a 1909
ba875e66 1910 echo $ac_n "checking for --enable-nanox""... $ac_c" 1>&6
19bc6aad 1911echo "configure:1912: checking for --enable-nanox" >&5
d8356fa3 1912 no_cache=0
ba875e66
VZ
1913 # Check whether --enable-nanox or --disable-nanox was given.
1914if test "${enable_nanox+set}" = set; then
1915 enableval="$enable_nanox"
d8356fa3
VZ
1916
1917 if test "$enableval" = yes; then
ba875e66 1918 ac_cv_use_nanox='wxUSE_NANOX=yes'
d8356fa3 1919 else
ba875e66 1920 ac_cv_use_nanox='wxUSE_NANOX=no'
d8356fa3
VZ
1921 fi
1922
1923else
1924
1925 LINE=`grep "wxUSE_NANOX" ${wx_arg_cache_file}`
1926 if test "x$LINE" != x ; then
1927 eval "DEFAULT_$LINE"
1928 else
1929 no_cache=1
1930 fi
1931
ba875e66 1932 ac_cv_use_nanox='wxUSE_NANOX='$DEFAULT_wxUSE_NANOX
d8356fa3
VZ
1933
1934fi
1935
1936
ba875e66 1937 eval "$ac_cv_use_nanox"
d8356fa3 1938 if test "$no_cache" != 1; then
ba875e66 1939 echo $ac_cv_use_nanox >> ${wx_arg_cache_file}.tmp
d8356fa3
VZ
1940 fi
1941
1942 if test "$wxUSE_NANOX" = yes; then
1943 echo "$ac_t""yes" 1>&6
1944 else
1945 echo "$ac_t""no" 1>&6
1946 fi
1947
1948
8168de4c
VZ
1949# Check whether --enable-gtk2 or --disable-gtk2 was given.
1950if test "${enable_gtk2+set}" = set; then
1951 enableval="$enable_gtk2"
9e691f46 1952 wxUSE_GTK2="yes"
10f2d63a 1953else
9e691f46 1954 wxUSE_GTK2="no"
698dcdb6
VZ
1955fi
1956
703e0a69 1957
1e487827 1958
698dcdb6 1959 echo $ac_n "checking for --with-libpng""... $ac_c" 1>&6
19bc6aad 1960echo "configure:1961: checking for --with-libpng" >&5
698dcdb6
VZ
1961 no_cache=0
1962 # Check whether --with-libpng or --without-libpng was given.
b12915c1
VZ
1963if test "${with_libpng+set}" = set; then
1964 withval="$with_libpng"
698dcdb6 1965
10f2d63a 1966 if test "$withval" = yes; then
b12915c1 1967 ac_cv_use_libpng='wxUSE_LIBPNG=yes'
422107f9 1968 elif test "$withval" = no; then
b12915c1 1969 ac_cv_use_libpng='wxUSE_LIBPNG=no'
422107f9
VZ
1970 elif test "$withval" = sys; then
1971 ac_cv_use_libpng='wxUSE_LIBPNG=sys'
4f14bcd8
GD
1972 elif test "$withval" = builtin; then
1973 ac_cv_use_libpng='wxUSE_LIBPNG=builtin'
422107f9 1974 else
4f14bcd8 1975 { echo "configure: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" 1>&2; exit 1; }
10f2d63a 1976 fi
698dcdb6 1977
10f2d63a 1978else
698dcdb6 1979
b12915c1 1980 LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}`
10f2d63a
VZ
1981 if test "x$LINE" != x ; then
1982 eval "DEFAULT_$LINE"
1983 else
1984 no_cache=1
1985 fi
1986
b12915c1 1987 ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG
698dcdb6
VZ
1988
1989fi
10f2d63a
VZ
1990
1991
b12915c1 1992 eval "$ac_cv_use_libpng"
10f2d63a 1993 if test "$no_cache" != 1; then
b12915c1 1994 echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
1995 fi
1996
b12915c1 1997 if test "$wxUSE_LIBPNG" = yes; then
698dcdb6 1998 echo "$ac_t""yes" 1>&6
422107f9 1999 elif test "$wxUSE_LIBPNG" = no; then
698dcdb6 2000 echo "$ac_t""no" 1>&6
422107f9 2001 elif test "$wxUSE_LIBPNG" = sys; then
698dcdb6 2002 echo "$ac_t""system version" 1>&6
4f14bcd8
GD
2003 elif test "$wxUSE_LIBPNG" = builtin; then
2004 echo "$ac_t""builtin version" 1>&6
422107f9 2005 else
4f14bcd8 2006 { echo "configure: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" 1>&2; exit 1; }
10f2d63a 2007 fi
698dcdb6 2008
10f2d63a 2009
698dcdb6 2010 echo $ac_n "checking for --with-libjpeg""... $ac_c" 1>&6
19bc6aad 2011echo "configure:2012: checking for --with-libjpeg" >&5
10f2d63a 2012 no_cache=0
698dcdb6 2013 # Check whether --with-libjpeg or --without-libjpeg was given.
b12915c1
VZ
2014if test "${with_libjpeg+set}" = set; then
2015 withval="$with_libjpeg"
698dcdb6 2016
10f2d63a 2017 if test "$withval" = yes; then
b12915c1 2018 ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes'
422107f9 2019 elif test "$withval" = no; then
b12915c1 2020 ac_cv_use_libjpeg='wxUSE_LIBJPEG=no'
422107f9
VZ
2021 elif test "$withval" = sys; then
2022 ac_cv_use_libjpeg='wxUSE_LIBJPEG=sys'
4f14bcd8
GD
2023 elif test "$withval" = builtin; then
2024 ac_cv_use_libjpeg='wxUSE_LIBJPEG=builtin'
422107f9 2025 else
4f14bcd8 2026 { echo "configure: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" 1>&2; exit 1; }
10f2d63a 2027 fi
698dcdb6 2028
10f2d63a 2029else
698dcdb6 2030
b12915c1 2031 LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}`
10f2d63a
VZ
2032 if test "x$LINE" != x ; then
2033 eval "DEFAULT_$LINE"
2034 else
2035 no_cache=1
2036 fi
2037
b12915c1 2038 ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG
698dcdb6
VZ
2039
2040fi
10f2d63a
VZ
2041
2042
b12915c1 2043 eval "$ac_cv_use_libjpeg"
10f2d63a 2044 if test "$no_cache" != 1; then
b12915c1 2045 echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
2046 fi
2047
b12915c1 2048 if test "$wxUSE_LIBJPEG" = yes; then
698dcdb6 2049 echo "$ac_t""yes" 1>&6
422107f9 2050 elif test "$wxUSE_LIBJPEG" = no; then
698dcdb6 2051 echo "$ac_t""no" 1>&6
422107f9 2052 elif test "$wxUSE_LIBJPEG" = sys; then
698dcdb6 2053 echo "$ac_t""system version" 1>&6
4f14bcd8
GD
2054 elif test "$wxUSE_LIBJPEG" = builtin; then
2055 echo "$ac_t""builtin version" 1>&6
422107f9 2056 else
4f14bcd8 2057 { echo "configure: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" 1>&2; exit 1; }
10f2d63a 2058 fi
698dcdb6 2059
10f2d63a 2060
698dcdb6 2061 echo $ac_n "checking for --with-libtiff""... $ac_c" 1>&6
19bc6aad 2062echo "configure:2063: checking for --with-libtiff" >&5
10f2d63a 2063 no_cache=0
698dcdb6 2064 # Check whether --with-libtiff or --without-libtiff was given.
b12915c1
VZ
2065if test "${with_libtiff+set}" = set; then
2066 withval="$with_libtiff"
698dcdb6 2067
10f2d63a 2068 if test "$withval" = yes; then
b12915c1 2069 ac_cv_use_libtiff='wxUSE_LIBTIFF=yes'
0dcf9893 2070 elif test "$withval" = no; then
b12915c1 2071 ac_cv_use_libtiff='wxUSE_LIBTIFF=no'
0dcf9893
VZ
2072 elif test "$withval" = sys; then
2073 ac_cv_use_libtiff='wxUSE_LIBTIFF=sys'
4f14bcd8
GD
2074 elif test "$withval" = builtin; then
2075 ac_cv_use_libtiff='wxUSE_LIBTIFF=builtin'
0dcf9893 2076 else
4f14bcd8 2077 { echo "configure: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" 1>&2; exit 1; }
10f2d63a 2078 fi
698dcdb6 2079
10f2d63a 2080else
698dcdb6 2081
b12915c1 2082 LINE=`grep "wxUSE_LIBTIFF" ${wx_arg_cache_file}`
10f2d63a
VZ
2083 if test "x$LINE" != x ; then
2084 eval "DEFAULT_$LINE"
2085 else
2086 no_cache=1
2087 fi
2088
b12915c1 2089 ac_cv_use_libtiff='wxUSE_LIBTIFF='$DEFAULT_wxUSE_LIBTIFF
698dcdb6
VZ
2090
2091fi
10f2d63a
VZ
2092
2093
b12915c1 2094 eval "$ac_cv_use_libtiff"
10f2d63a 2095 if test "$no_cache" != 1; then
b12915c1 2096 echo $ac_cv_use_libtiff >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
2097 fi
2098
b12915c1 2099 if test "$wxUSE_LIBTIFF" = yes; then
698dcdb6 2100 echo "$ac_t""yes" 1>&6
0dcf9893 2101 elif test "$wxUSE_LIBTIFF" = no; then
698dcdb6 2102 echo "$ac_t""no" 1>&6
0dcf9893 2103 elif test "$wxUSE_LIBTIFF" = sys; then
698dcdb6 2104 echo "$ac_t""system version" 1>&6
4f14bcd8
GD
2105 elif test "$wxUSE_LIBTIFF" = builtin; then
2106 echo "$ac_t""builtin version" 1>&6
0dcf9893 2107 else
4f14bcd8 2108 { echo "configure: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" 1>&2; exit 1; }
10f2d63a 2109 fi
698dcdb6 2110
10f2d63a 2111
698dcdb6 2112 echo $ac_n "checking for --with-opengl""... $ac_c" 1>&6
19bc6aad 2113echo "configure:2114: checking for --with-opengl" >&5
10f2d63a 2114 no_cache=0
698dcdb6 2115 # Check whether --with-opengl or --without-opengl was given.
b12915c1
VZ
2116if test "${with_opengl+set}" = set; then
2117 withval="$with_opengl"
698dcdb6 2118
10f2d63a 2119 if test "$withval" = yes; then
b12915c1 2120 ac_cv_use_opengl='wxUSE_OPENGL=yes'
10f2d63a 2121 else
b12915c1 2122 ac_cv_use_opengl='wxUSE_OPENGL=no'
10f2d63a 2123 fi
698dcdb6 2124
10f2d63a 2125else
698dcdb6 2126
b12915c1 2127 LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}`
10f2d63a
VZ
2128 if test "x$LINE" != x ; then
2129 eval "DEFAULT_$LINE"
2130 else
2131 no_cache=1
2132 fi
2133
b12915c1 2134 ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL
698dcdb6
VZ
2135
2136fi
10f2d63a
VZ
2137
2138
b12915c1 2139 eval "$ac_cv_use_opengl"
10f2d63a 2140 if test "$no_cache" != 1; then
b12915c1 2141 echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
2142 fi
2143
b12915c1 2144 if test "$wxUSE_OPENGL" = yes; then
698dcdb6 2145 echo "$ac_t""yes" 1>&6
10f2d63a 2146 else
698dcdb6 2147 echo "$ac_t""no" 1>&6
10f2d63a 2148 fi
698dcdb6 2149
10f2d63a 2150
b12915c1
VZ
2151fi
2152
1e487827 2153
698dcdb6 2154 echo $ac_n "checking for --with-dmalloc""... $ac_c" 1>&6
19bc6aad 2155echo "configure:2156: checking for --with-dmalloc" >&5
698dcdb6
VZ
2156 no_cache=0
2157 # Check whether --with-dmalloc or --without-dmalloc was given.
b12915c1
VZ
2158if test "${with_dmalloc+set}" = set; then
2159 withval="$with_dmalloc"
698dcdb6 2160
c7a2bf27 2161 if test "$withval" = yes; then
b12915c1 2162 ac_cv_use_dmalloc='wxUSE_DMALLOC=yes'
c7a2bf27 2163 else
b12915c1 2164 ac_cv_use_dmalloc='wxUSE_DMALLOC=no'
c7a2bf27 2165 fi
698dcdb6 2166
c7a2bf27 2167else
698dcdb6 2168
b12915c1 2169 LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}`
c7a2bf27
RR
2170 if test "x$LINE" != x ; then
2171 eval "DEFAULT_$LINE"
2172 else
2173 no_cache=1
2174 fi
2175
b12915c1 2176 ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC
698dcdb6
VZ
2177
2178fi
c7a2bf27
RR
2179
2180
b12915c1 2181 eval "$ac_cv_use_dmalloc"
c7a2bf27 2182 if test "$no_cache" != 1; then
b12915c1 2183 echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp
c7a2bf27
RR
2184 fi
2185
b12915c1 2186 if test "$wxUSE_DMALLOC" = yes; then
698dcdb6 2187 echo "$ac_t""yes" 1>&6
c7a2bf27 2188 else
698dcdb6 2189 echo "$ac_t""no" 1>&6
c7a2bf27 2190 fi
698dcdb6 2191
c7a2bf27 2192
3e44f09d 2193 echo $ac_n "checking for --with-regex""... $ac_c" 1>&6
19bc6aad 2194echo "configure:2195: checking for --with-regex" >&5
3e44f09d
VZ
2195 no_cache=0
2196 # Check whether --with-regex or --without-regex was given.
2197if test "${with_regex+set}" = set; then
2198 withval="$with_regex"
2199
2200 if test "$withval" = yes; then
2201 ac_cv_use_regex='wxUSE_REGEX=yes'
2202 elif test "$withval" = no; then
2203 ac_cv_use_regex='wxUSE_REGEX=no'
2204 elif test "$withval" = sys; then
2205 ac_cv_use_regex='wxUSE_REGEX=sys'
4f14bcd8
GD
2206 elif test "$withval" = builtin; then
2207 ac_cv_use_regex='wxUSE_REGEX=builtin'
3e44f09d 2208 else
4f14bcd8 2209 { echo "configure: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" 1>&2; exit 1; }
3e44f09d
VZ
2210 fi
2211
2212else
2213
2214 LINE=`grep "wxUSE_REGEX" ${wx_arg_cache_file}`
2215 if test "x$LINE" != x ; then
2216 eval "DEFAULT_$LINE"
2217 else
2218 no_cache=1
2219 fi
2220
2221 ac_cv_use_regex='wxUSE_REGEX='$DEFAULT_wxUSE_REGEX
2222
2223fi
2224
2225
2226 eval "$ac_cv_use_regex"
2227 if test "$no_cache" != 1; then
2228 echo $ac_cv_use_regex >> ${wx_arg_cache_file}.tmp
2229 fi
2230
2231 if test "$wxUSE_REGEX" = yes; then
2232 echo "$ac_t""yes" 1>&6
2233 elif test "$wxUSE_REGEX" = no; then
2234 echo "$ac_t""no" 1>&6
2235 elif test "$wxUSE_REGEX" = sys; then
2236 echo "$ac_t""system version" 1>&6
4f14bcd8
GD
2237 elif test "$wxUSE_REGEX" = builtin; then
2238 echo "$ac_t""builtin version" 1>&6
3e44f09d 2239 else
4f14bcd8 2240 { echo "configure: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" 1>&2; exit 1; }
3e44f09d
VZ
2241 fi
2242
2243
698dcdb6 2244 echo $ac_n "checking for --with-zlib""... $ac_c" 1>&6
19bc6aad 2245echo "configure:2246: checking for --with-zlib" >&5
10f2d63a 2246 no_cache=0
698dcdb6 2247 # Check whether --with-zlib or --without-zlib was given.
b12915c1
VZ
2248if test "${with_zlib+set}" = set; then
2249 withval="$with_zlib"
698dcdb6 2250
10f2d63a 2251 if test "$withval" = yes; then
b12915c1 2252 ac_cv_use_zlib='wxUSE_ZLIB=yes'
422107f9 2253 elif test "$withval" = no; then
b12915c1 2254 ac_cv_use_zlib='wxUSE_ZLIB=no'
422107f9
VZ
2255 elif test "$withval" = sys; then
2256 ac_cv_use_zlib='wxUSE_ZLIB=sys'
4f14bcd8
GD
2257 elif test "$withval" = builtin; then
2258 ac_cv_use_zlib='wxUSE_ZLIB=builtin'
422107f9 2259 else
4f14bcd8 2260 { echo "configure: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" 1>&2; exit 1; }
10f2d63a 2261 fi
698dcdb6 2262
10f2d63a 2263else
698dcdb6 2264
b12915c1 2265 LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}`
10f2d63a
VZ
2266 if test "x$LINE" != x ; then
2267 eval "DEFAULT_$LINE"
2268 else
2269 no_cache=1
2270 fi
2271
b12915c1 2272 ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB
698dcdb6
VZ
2273
2274fi
10f2d63a
VZ
2275
2276
b12915c1 2277 eval "$ac_cv_use_zlib"
10f2d63a 2278 if test "$no_cache" != 1; then
b12915c1 2279 echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
2280 fi
2281
b12915c1 2282 if test "$wxUSE_ZLIB" = yes; then
698dcdb6 2283 echo "$ac_t""yes" 1>&6
422107f9 2284 elif test "$wxUSE_ZLIB" = no; then
698dcdb6 2285 echo "$ac_t""no" 1>&6
422107f9 2286 elif test "$wxUSE_ZLIB" = sys; then
698dcdb6 2287 echo "$ac_t""system version" 1>&6
4f14bcd8
GD
2288 elif test "$wxUSE_ZLIB" = builtin; then
2289 echo "$ac_t""builtin version" 1>&6
422107f9 2290 else
4f14bcd8 2291 { echo "configure: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" 1>&2; exit 1; }
10f2d63a 2292 fi
698dcdb6 2293
10f2d63a 2294
698dcdb6 2295 echo $ac_n "checking for --with-odbc""... $ac_c" 1>&6
19bc6aad 2296echo "configure:2297: checking for --with-odbc" >&5
10f2d63a 2297 no_cache=0
698dcdb6 2298 # Check whether --with-odbc or --without-odbc was given.
10f2d63a
VZ
2299if test "${with_odbc+set}" = set; then
2300 withval="$with_odbc"
698dcdb6 2301
10f2d63a
VZ
2302 if test "$withval" = yes; then
2303 ac_cv_use_odbc='wxUSE_ODBC=yes'
2304 else
2305 ac_cv_use_odbc='wxUSE_ODBC=no'
2306 fi
698dcdb6 2307
10f2d63a 2308else
698dcdb6 2309
10f2d63a
VZ
2310 LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}`
2311 if test "x$LINE" != x ; then
2312 eval "DEFAULT_$LINE"
2313 else
2314 no_cache=1
2315 fi
2316
2317 ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC
698dcdb6
VZ
2318
2319fi
10f2d63a
VZ
2320
2321
2322 eval "$ac_cv_use_odbc"
2323 if test "$no_cache" != 1; then
2324 echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp
2325 fi
2326
2327 if test "$wxUSE_ODBC" = yes; then
698dcdb6 2328 echo "$ac_t""yes" 1>&6
10f2d63a 2329 else
698dcdb6 2330 echo "$ac_t""no" 1>&6
10f2d63a 2331 fi
698dcdb6
VZ
2332
2333
10f2d63a 2334
698dcdb6 2335
698dcdb6 2336 echo $ac_n "checking for --enable-shared""... $ac_c" 1>&6
19bc6aad 2337echo "configure:2338: checking for --enable-shared" >&5
10f2d63a
VZ
2338 no_cache=0
2339 # Check whether --enable-shared or --disable-shared was given.
2340if test "${enable_shared+set}" = set; then
2341 enableval="$enable_shared"
698dcdb6 2342
10f2d63a
VZ
2343 if test "$enableval" = yes; then
2344 ac_cv_use_shared='wxUSE_SHARED=yes'
2345 else
2346 ac_cv_use_shared='wxUSE_SHARED=no'
2347 fi
698dcdb6 2348
10f2d63a 2349else
698dcdb6 2350
10f2d63a
VZ
2351 LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}`
2352 if test "x$LINE" != x ; then
2353 eval "DEFAULT_$LINE"
2354 else
2355 no_cache=1
2356 fi
2357
2358 ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED
698dcdb6
VZ
2359
2360fi
10f2d63a
VZ
2361
2362
2363 eval "$ac_cv_use_shared"
2364 if test "$no_cache" != 1; then
2365 echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp
2366 fi
2367
2368 if test "$wxUSE_SHARED" = yes; then
698dcdb6 2369 echo "$ac_t""yes" 1>&6
10f2d63a 2370 else
698dcdb6 2371 echo "$ac_t""no" 1>&6
10f2d63a 2372 fi
698dcdb6 2373
10f2d63a 2374
3a922bb4 2375 echo $ac_n "checking for --enable-soname""... $ac_c" 1>&6
19bc6aad 2376echo "configure:2377: checking for --enable-soname" >&5
00cf1208 2377 no_cache=0
3a922bb4
RL
2378 # Check whether --enable-soname or --disable-soname was given.
2379if test "${enable_soname+set}" = set; then
2380 enableval="$enable_soname"
698dcdb6 2381
00cf1208 2382 if test "$enableval" = yes; then
3a922bb4 2383 ac_cv_use_soname='wxUSE_SONAME=yes'
00cf1208 2384 else
3a922bb4 2385 ac_cv_use_soname='wxUSE_SONAME=no'
00cf1208 2386 fi
698dcdb6 2387
00cf1208 2388else
698dcdb6 2389
3a922bb4 2390 LINE=`grep "wxUSE_SONAME" ${wx_arg_cache_file}`
00cf1208
RR
2391 if test "x$LINE" != x ; then
2392 eval "DEFAULT_$LINE"
2393 else
2394 no_cache=1
2395 fi
2396
3a922bb4 2397 ac_cv_use_soname='wxUSE_SONAME='$DEFAULT_wxUSE_SONAME
698dcdb6
VZ
2398
2399fi
00cf1208
RR
2400
2401
3a922bb4 2402 eval "$ac_cv_use_soname"
00cf1208 2403 if test "$no_cache" != 1; then
3a922bb4 2404 echo $ac_cv_use_soname >> ${wx_arg_cache_file}.tmp
00cf1208
RR
2405 fi
2406
3a922bb4 2407 if test "$wxUSE_SONAME" = yes; then
698dcdb6 2408 echo "$ac_t""yes" 1>&6
00cf1208 2409 else
698dcdb6 2410 echo "$ac_t""no" 1>&6
00cf1208 2411 fi
698dcdb6 2412
00cf1208 2413
698dcdb6 2414 echo $ac_n "checking for --enable-optimise""... $ac_c" 1>&6
19bc6aad 2415echo "configure:2416: checking for --enable-optimise" >&5
10f2d63a
VZ
2416 no_cache=0
2417 # Check whether --enable-optimise or --disable-optimise was given.
2418if test "${enable_optimise+set}" = set; then
2419 enableval="$enable_optimise"
698dcdb6 2420
10f2d63a
VZ
2421 if test "$enableval" = yes; then
2422 ac_cv_use_optimise='wxUSE_OPTIMISE=yes'
2423 else
2424 ac_cv_use_optimise='wxUSE_OPTIMISE=no'
2425 fi
698dcdb6 2426
10f2d63a 2427else
698dcdb6 2428
10f2d63a
VZ
2429 LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}`
2430 if test "x$LINE" != x ; then
2431 eval "DEFAULT_$LINE"
2432 else
2433 no_cache=1
2434 fi
2435
2436 ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE
698dcdb6
VZ
2437
2438fi
10f2d63a
VZ
2439
2440
2441 eval "$ac_cv_use_optimise"
2442 if test "$no_cache" != 1; then
2443 echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp
2444 fi
2445
2446 if test "$wxUSE_OPTIMISE" = yes; then
698dcdb6 2447 echo "$ac_t""yes" 1>&6
10f2d63a 2448 else
698dcdb6 2449 echo "$ac_t""no" 1>&6
10f2d63a 2450 fi
698dcdb6 2451
10f2d63a 2452
698dcdb6 2453 echo $ac_n "checking for --enable-debug""... $ac_c" 1>&6
19bc6aad 2454echo "configure:2455: checking for --enable-debug" >&5
10f2d63a
VZ
2455 no_cache=0
2456 # Check whether --enable-debug or --disable-debug was given.
2457if test "${enable_debug+set}" = set; then
2458 enableval="$enable_debug"
698dcdb6 2459
10f2d63a
VZ
2460 if test "$enableval" = yes; then
2461 ac_cv_use_debug='wxUSE_DEBUG=yes'
2462 else
2463 ac_cv_use_debug='wxUSE_DEBUG=no'
2464 fi
698dcdb6 2465
10f2d63a 2466else
698dcdb6 2467
10f2d63a
VZ
2468 LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}`
2469 if test "x$LINE" != x ; then
2470 eval "DEFAULT_$LINE"
2471 else
2472 no_cache=1
2473 fi
2474
2475 ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG
698dcdb6
VZ
2476
2477fi
10f2d63a
VZ
2478
2479
2480 eval "$ac_cv_use_debug"
2481 if test "$no_cache" != 1; then
2482 echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp
2483 fi
2484
2485 if test "$wxUSE_DEBUG" = yes; then
698dcdb6 2486 echo "$ac_t""yes" 1>&6
10f2d63a 2487 else
698dcdb6 2488 echo "$ac_t""no" 1>&6
10f2d63a 2489 fi
698dcdb6 2490
10f2d63a 2491
683dccda
GD
2492
2493 echo $ac_n "checking for --enable-precomp""... $ac_c" 1>&6
19bc6aad 2494echo "configure:2495: checking for --enable-precomp" >&5
683dccda
GD
2495 no_cache=0
2496 # Check whether --enable-precomp or --disable-precomp was given.
2497if test "${enable_precomp+set}" = set; then
2498 enableval="$enable_precomp"
2499
2500 if test "$enableval" = yes; then
2501 ac_cv_use_precomp='wxUSE_PRECOMP=yes'
2502 else
2503 ac_cv_use_precomp='wxUSE_PRECOMP=no'
2504 fi
2505
2506else
2507
2508 LINE=`grep "wxUSE_PRECOMP" ${wx_arg_cache_file}`
2509 if test "x$LINE" != x ; then
2510 eval "DEFAULT_$LINE"
2511 else
2512 no_cache=1
2513 fi
2514
2515 ac_cv_use_precomp='wxUSE_PRECOMP='$DEFAULT_wxUSE_PRECOMP
2516
2517fi
2518
2519
2520 eval "$ac_cv_use_precomp"
2521 if test "$no_cache" != 1; then
2522 echo $ac_cv_use_precomp >> ${wx_arg_cache_file}.tmp
2523 fi
2524
2525 if test "$wxUSE_PRECOMP" = yes; then
2526 echo "$ac_t""yes" 1>&6
2527 else
2528 echo "$ac_t""no" 1>&6
2529 fi
2530
2531
10f2d63a
VZ
2532if test "$wxUSE_DEBUG" = "yes"; then
2533 DEFAULT_wxUSE_DEBUG_FLAG=yes
2534 DEFAULT_wxUSE_DEBUG_INFO=yes
2535elif test "$wxUSE_DEBUG" = "no"; then
2536 DEFAULT_wxUSE_DEBUG_FLAG=no
2537 DEFAULT_wxUSE_DEBUG_INFO=no
2538fi
2539
698dcdb6
VZ
2540
2541 echo $ac_n "checking for --enable-debug_flag""... $ac_c" 1>&6
19bc6aad 2542echo "configure:2543: checking for --enable-debug_flag" >&5
10f2d63a
VZ
2543 no_cache=0
2544 # Check whether --enable-debug_flag or --disable-debug_flag was given.
2545if test "${enable_debug_flag+set}" = set; then
2546 enableval="$enable_debug_flag"
698dcdb6 2547
10f2d63a
VZ
2548 if test "$enableval" = yes; then
2549 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes'
2550 else
2551 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no'
2552 fi
698dcdb6 2553
10f2d63a 2554else
698dcdb6 2555
10f2d63a
VZ
2556 LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}`
2557 if test "x$LINE" != x ; then
2558 eval "DEFAULT_$LINE"
2559 else
2560 no_cache=1
2561 fi
2562
2563 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG
698dcdb6
VZ
2564
2565fi
10f2d63a
VZ
2566
2567
2568 eval "$ac_cv_use_debug_flag"
2569 if test "$no_cache" != 1; then
2570 echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp
2571 fi
2572
2573 if test "$wxUSE_DEBUG_FLAG" = yes; then
698dcdb6 2574 echo "$ac_t""yes" 1>&6
10f2d63a 2575 else
698dcdb6 2576 echo "$ac_t""no" 1>&6
10f2d63a 2577 fi
698dcdb6 2578
10f2d63a 2579
698dcdb6 2580 echo $ac_n "checking for --enable-debug_info""... $ac_c" 1>&6
19bc6aad 2581echo "configure:2582: checking for --enable-debug_info" >&5
10f2d63a
VZ
2582 no_cache=0
2583 # Check whether --enable-debug_info or --disable-debug_info was given.
2584if test "${enable_debug_info+set}" = set; then
2585 enableval="$enable_debug_info"
698dcdb6 2586
10f2d63a
VZ
2587 if test "$enableval" = yes; then
2588 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes'
2589 else
2590 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no'
2591 fi
698dcdb6 2592
10f2d63a 2593else
698dcdb6 2594
10f2d63a
VZ
2595 LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}`
2596 if test "x$LINE" != x ; then
2597 eval "DEFAULT_$LINE"
2598 else
2599 no_cache=1
2600 fi
2601
2602 ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO
698dcdb6
VZ
2603
2604fi
10f2d63a
VZ
2605
2606
2607 eval "$ac_cv_use_debug_info"
2608 if test "$no_cache" != 1; then
2609 echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp
2610 fi
2611
2612 if test "$wxUSE_DEBUG_INFO" = yes; then
698dcdb6 2613 echo "$ac_t""yes" 1>&6
10f2d63a 2614 else
698dcdb6 2615 echo "$ac_t""no" 1>&6
10f2d63a 2616 fi
698dcdb6 2617
10f2d63a 2618
698dcdb6 2619 echo $ac_n "checking for --enable-debug_gdb""... $ac_c" 1>&6
19bc6aad 2620echo "configure:2621: checking for --enable-debug_gdb" >&5
10f2d63a
VZ
2621 no_cache=0
2622 # Check whether --enable-debug_gdb or --disable-debug_gdb was given.
2623if test "${enable_debug_gdb+set}" = set; then
2624 enableval="$enable_debug_gdb"
698dcdb6 2625
10f2d63a
VZ
2626 if test "$enableval" = yes; then
2627 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes'
2628 else
2629 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no'
2630 fi
698dcdb6 2631
10f2d63a 2632else
698dcdb6 2633
10f2d63a
VZ
2634 LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}`
2635 if test "x$LINE" != x ; then
2636 eval "DEFAULT_$LINE"
2637 else
2638 no_cache=1
2639 fi
2640
2641 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB
698dcdb6
VZ
2642
2643fi
10f2d63a
VZ
2644
2645
2646 eval "$ac_cv_use_debug_gdb"
2647 if test "$no_cache" != 1; then
2648 echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp
2649 fi
2650
2651 if test "$wxUSE_DEBUG_GDB" = yes; then
698dcdb6 2652 echo "$ac_t""yes" 1>&6
10f2d63a 2653 else
698dcdb6 2654 echo "$ac_t""no" 1>&6
10f2d63a 2655 fi
698dcdb6 2656
10f2d63a 2657
698dcdb6 2658 echo $ac_n "checking for --enable-debug_cntxt""... $ac_c" 1>&6
19bc6aad 2659echo "configure:2660: checking for --enable-debug_cntxt" >&5
10f2d63a
VZ
2660 no_cache=0
2661 # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given.
2662if test "${enable_debug_cntxt+set}" = set; then
2663 enableval="$enable_debug_cntxt"
698dcdb6 2664
10f2d63a
VZ
2665 if test "$enableval" = yes; then
2666 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes'
2667 else
2668 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no'
2669 fi
698dcdb6 2670
10f2d63a 2671else
698dcdb6 2672
10f2d63a
VZ
2673 LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}`
2674 if test "x$LINE" != x ; then
2675 eval "DEFAULT_$LINE"
2676 else
2677 no_cache=1
2678 fi
2679
2680 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT
698dcdb6
VZ
2681
2682fi
10f2d63a
VZ
2683
2684
2685 eval "$ac_cv_use_debug_cntxt"
2686 if test "$no_cache" != 1; then
2687 echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp
2688 fi
2689
2690 if test "$wxUSE_DEBUG_CONTEXT" = yes; then
698dcdb6 2691 echo "$ac_t""yes" 1>&6
10f2d63a 2692 else
698dcdb6 2693 echo "$ac_t""no" 1>&6
10f2d63a 2694 fi
698dcdb6 2695
10f2d63a 2696
698dcdb6 2697 echo $ac_n "checking for --enable-mem_tracing""... $ac_c" 1>&6
19bc6aad 2698echo "configure:2699: checking for --enable-mem_tracing" >&5
10f2d63a
VZ
2699 no_cache=0
2700 # Check whether --enable-mem_tracing or --disable-mem_tracing was given.
2701if test "${enable_mem_tracing+set}" = set; then
2702 enableval="$enable_mem_tracing"
698dcdb6 2703
10f2d63a
VZ
2704 if test "$enableval" = yes; then
2705 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes'
2706 else
2707 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no'
2708 fi
698dcdb6 2709
10f2d63a 2710else
698dcdb6 2711
10f2d63a
VZ
2712 LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}`
2713 if test "x$LINE" != x ; then
2714 eval "DEFAULT_$LINE"
2715 else
2716 no_cache=1
2717 fi
2718
2719 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING
698dcdb6
VZ
2720
2721fi
10f2d63a
VZ
2722
2723
2724 eval "$ac_cv_use_mem_tracing"
2725 if test "$no_cache" != 1; then
2726 echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp
2727 fi
2728
2729 if test "$wxUSE_MEM_TRACING" = yes; then
698dcdb6 2730 echo "$ac_t""yes" 1>&6
10f2d63a 2731 else
698dcdb6 2732 echo "$ac_t""no" 1>&6
10f2d63a 2733 fi
698dcdb6 2734
10f2d63a 2735
698dcdb6 2736 echo $ac_n "checking for --enable-profile""... $ac_c" 1>&6
19bc6aad 2737echo "configure:2738: checking for --enable-profile" >&5
10f2d63a
VZ
2738 no_cache=0
2739 # Check whether --enable-profile or --disable-profile was given.
2740if test "${enable_profile+set}" = set; then
2741 enableval="$enable_profile"
698dcdb6 2742
10f2d63a
VZ
2743 if test "$enableval" = yes; then
2744 ac_cv_use_profile='wxUSE_PROFILE=yes'
2745 else
2746 ac_cv_use_profile='wxUSE_PROFILE=no'
2747 fi
698dcdb6 2748
10f2d63a 2749else
698dcdb6 2750
10f2d63a
VZ
2751 LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}`
2752 if test "x$LINE" != x ; then
2753 eval "DEFAULT_$LINE"
2754 else
2755 no_cache=1
2756 fi
2757
2758 ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE
698dcdb6
VZ
2759
2760fi
10f2d63a
VZ
2761
2762
2763 eval "$ac_cv_use_profile"
2764 if test "$no_cache" != 1; then
2765 echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp
2766 fi
2767
2768 if test "$wxUSE_PROFILE" = yes; then
698dcdb6 2769 echo "$ac_t""yes" 1>&6
10f2d63a 2770 else
698dcdb6 2771 echo "$ac_t""no" 1>&6
10f2d63a 2772 fi
698dcdb6 2773
10f2d63a 2774
698dcdb6 2775 echo $ac_n "checking for --enable-no_rtti""... $ac_c" 1>&6
19bc6aad 2776echo "configure:2777: checking for --enable-no_rtti" >&5
10f2d63a
VZ
2777 no_cache=0
2778 # Check whether --enable-no_rtti or --disable-no_rtti was given.
2779if test "${enable_no_rtti+set}" = set; then
2780 enableval="$enable_no_rtti"
698dcdb6 2781
10f2d63a
VZ
2782 if test "$enableval" = yes; then
2783 ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes'
2784 else
2785 ac_cv_use_no_rtti='wxUSE_NO_RTTI=no'
2786 fi
698dcdb6 2787
10f2d63a 2788else
698dcdb6 2789
10f2d63a
VZ
2790 LINE=`grep "wxUSE_NO_RTTI" ${wx_arg_cache_file}`
2791 if test "x$LINE" != x ; then
2792 eval "DEFAULT_$LINE"
2793 else
2794 no_cache=1
2795 fi
2796
2797 ac_cv_use_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI
698dcdb6
VZ
2798
2799fi
10f2d63a
VZ
2800
2801
2802 eval "$ac_cv_use_no_rtti"
2803 if test "$no_cache" != 1; then
2804 echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp
2805 fi
2806
2807 if test "$wxUSE_NO_RTTI" = yes; then
698dcdb6 2808 echo "$ac_t""yes" 1>&6
10f2d63a 2809 else
698dcdb6 2810 echo "$ac_t""no" 1>&6
10f2d63a 2811 fi
698dcdb6 2812
10f2d63a 2813
698dcdb6 2814 echo $ac_n "checking for --enable-no_exceptions""... $ac_c" 1>&6
19bc6aad 2815echo "configure:2816: checking for --enable-no_exceptions" >&5
10f2d63a
VZ
2816 no_cache=0
2817 # Check whether --enable-no_exceptions or --disable-no_exceptions was given.
2818if test "${enable_no_exceptions+set}" = set; then
2819 enableval="$enable_no_exceptions"
698dcdb6 2820
10f2d63a
VZ
2821 if test "$enableval" = yes; then
2822 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes'
2823 else
2824 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no'
2825 fi
698dcdb6 2826
10f2d63a 2827else
698dcdb6 2828
10f2d63a
VZ
2829 LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}`
2830 if test "x$LINE" != x ; then
2831 eval "DEFAULT_$LINE"
2832 else
2833 no_cache=1
2834 fi
2835
2836 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS
698dcdb6
VZ
2837
2838fi
10f2d63a
VZ
2839
2840
2841 eval "$ac_cv_use_no_exceptions"
2842 if test "$no_cache" != 1; then
2843 echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp
2844 fi
2845
2846 if test "$wxUSE_NO_EXCEPTIONS" = yes; then
698dcdb6 2847 echo "$ac_t""yes" 1>&6
10f2d63a 2848 else
698dcdb6 2849 echo "$ac_t""no" 1>&6
10f2d63a 2850 fi
698dcdb6 2851
10f2d63a 2852
698dcdb6 2853 echo $ac_n "checking for --enable-permissive""... $ac_c" 1>&6
19bc6aad 2854echo "configure:2855: checking for --enable-permissive" >&5
10f2d63a
VZ
2855 no_cache=0
2856 # Check whether --enable-permissive or --disable-permissive was given.
2857if test "${enable_permissive+set}" = set; then
2858 enableval="$enable_permissive"
698dcdb6 2859
10f2d63a
VZ
2860 if test "$enableval" = yes; then
2861 ac_cv_use_permissive='wxUSE_PERMISSIVE=yes'
2862 else
2863 ac_cv_use_permissive='wxUSE_PERMISSIVE=no'
2864 fi
698dcdb6 2865
10f2d63a 2866else
698dcdb6 2867
10f2d63a
VZ
2868 LINE=`grep "wxUSE_PERMISSIVE" ${wx_arg_cache_file}`
2869 if test "x$LINE" != x ; then
2870 eval "DEFAULT_$LINE"
2871 else
2872 no_cache=1
2873 fi
2874
2875 ac_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE
698dcdb6
VZ
2876
2877fi
10f2d63a
VZ
2878
2879
2880 eval "$ac_cv_use_permissive"
2881 if test "$no_cache" != 1; then
2882 echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp
2883 fi
2884
2885 if test "$wxUSE_PERMISSIVE" = yes; then
698dcdb6 2886 echo "$ac_t""yes" 1>&6
10f2d63a 2887 else
698dcdb6 2888 echo "$ac_t""no" 1>&6
10f2d63a 2889 fi
698dcdb6 2890
10f2d63a 2891
698dcdb6 2892 echo $ac_n "checking for --enable-no_deps""... $ac_c" 1>&6
19bc6aad 2893echo "configure:2894: checking for --enable-no_deps" >&5
10f2d63a
VZ
2894 no_cache=0
2895 # Check whether --enable-no_deps or --disable-no_deps was given.
2896if test "${enable_no_deps+set}" = set; then
2897 enableval="$enable_no_deps"
698dcdb6 2898
10f2d63a
VZ
2899 if test "$enableval" = yes; then
2900 ac_cv_use_no_deps='wxUSE_NO_DEPS=yes'
2901 else
2902 ac_cv_use_no_deps='wxUSE_NO_DEPS=no'
2903 fi
698dcdb6 2904
10f2d63a 2905else
698dcdb6 2906
10f2d63a
VZ
2907 LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}`
2908 if test "x$LINE" != x ; then
2909 eval "DEFAULT_$LINE"
2910 else
2911 no_cache=1
2912 fi
2913
2914 ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS
698dcdb6
VZ
2915
2916fi
10f2d63a
VZ
2917
2918
2919 eval "$ac_cv_use_no_deps"
2920 if test "$no_cache" != 1; then
2921 echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp
2922 fi
2923
2924 if test "$wxUSE_NO_DEPS" = yes; then
698dcdb6 2925 echo "$ac_t""yes" 1>&6
10f2d63a 2926 else
698dcdb6 2927 echo "$ac_t""no" 1>&6
10f2d63a 2928 fi
698dcdb6
VZ
2929
2930
10f2d63a 2931
54276ccf 2932 echo $ac_n "checking for --enable-compat20""... $ac_c" 1>&6
19bc6aad 2933echo "configure:2934: checking for --enable-compat20" >&5
54276ccf
VZ
2934 no_cache=0
2935 # Check whether --enable-compat20 or --disable-compat20 was given.
2936if test "${enable_compat20+set}" = set; then
2937 enableval="$enable_compat20"
2938
2939 if test "$enableval" = yes; then
2940 ac_cv_use_compat20='WXWIN_COMPATIBILITY_2=yes'
2941 else
2942 ac_cv_use_compat20='WXWIN_COMPATIBILITY_2=no'
2943 fi
2944
2945else
2946
2947 LINE=`grep "WXWIN_COMPATIBILITY_2" ${wx_arg_cache_file}`
2948 if test "x$LINE" != x ; then
2949 eval "DEFAULT_$LINE"
2950 else
2951 no_cache=1
2952 fi
2953
2954 ac_cv_use_compat20='WXWIN_COMPATIBILITY_2='$DEFAULT_WXWIN_COMPATIBILITY_2
2955
2956fi
2957
2958
2959 eval "$ac_cv_use_compat20"
2960 if test "$no_cache" != 1; then
2961 echo $ac_cv_use_compat20 >> ${wx_arg_cache_file}.tmp
2962 fi
2963
2964 if test "$WXWIN_COMPATIBILITY_2" = yes; then
2965 echo "$ac_t""yes" 1>&6
2966 else
2967 echo "$ac_t""no" 1>&6
2968 fi
2969
2970
2971 echo $ac_n "checking for --enable-compat22""... $ac_c" 1>&6
19bc6aad 2972echo "configure:2973: checking for --enable-compat22" >&5
54276ccf
VZ
2973 no_cache=0
2974 # Check whether --enable-compat22 or --disable-compat22 was given.
2975if test "${enable_compat22+set}" = set; then
2976 enableval="$enable_compat22"
2977
2978 if test "$enableval" = yes; then
2979 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=yes'
2980 else
2981 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=no'
2982 fi
2983
2984else
2985
2986 LINE=`grep "WXWIN_COMPATIBILITY_2_2" ${wx_arg_cache_file}`
2987 if test "x$LINE" != x ; then
2988 eval "DEFAULT_$LINE"
2989 else
2990 no_cache=1
2991 fi
2992
2993 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2='$DEFAULT_WXWIN_COMPATIBILITY_2_2
2994
2995fi
2996
2997
2998 eval "$ac_cv_use_compat22"
2999 if test "$no_cache" != 1; then
3000 echo $ac_cv_use_compat22 >> ${wx_arg_cache_file}.tmp
3001 fi
3002
3003 if test "$WXWIN_COMPATIBILITY_2_2" = yes; then
3004 echo "$ac_t""yes" 1>&6
3005 else
3006 echo "$ac_t""no" 1>&6
3007 fi
3008
3009
3010
698dcdb6
VZ
3011
3012 echo $ac_n "checking for --enable-intl""... $ac_c" 1>&6
19bc6aad 3013echo "configure:3014: checking for --enable-intl" >&5
10f2d63a
VZ
3014 no_cache=0
3015 # Check whether --enable-intl or --disable-intl was given.
3016if test "${enable_intl+set}" = set; then
3017 enableval="$enable_intl"
698dcdb6 3018
10f2d63a
VZ
3019 if test "$enableval" = yes; then
3020 ac_cv_use_intl='wxUSE_INTL=yes'
3021 else
3022 ac_cv_use_intl='wxUSE_INTL=no'
3023 fi
698dcdb6 3024
10f2d63a 3025else
698dcdb6 3026
10f2d63a
VZ
3027 LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}`
3028 if test "x$LINE" != x ; then
3029 eval "DEFAULT_$LINE"
3030 else
3031 no_cache=1
3032 fi
3033
3034 ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL
698dcdb6
VZ
3035
3036fi
10f2d63a
VZ
3037
3038
3039 eval "$ac_cv_use_intl"
3040 if test "$no_cache" != 1; then
3041 echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp
3042 fi
3043
3044 if test "$wxUSE_INTL" = yes; then
698dcdb6 3045 echo "$ac_t""yes" 1>&6
10f2d63a 3046 else
698dcdb6 3047 echo "$ac_t""no" 1>&6
10f2d63a 3048 fi
698dcdb6 3049
10f2d63a 3050
698dcdb6 3051 echo $ac_n "checking for --enable-config""... $ac_c" 1>&6
19bc6aad 3052echo "configure:3053: checking for --enable-config" >&5
10f2d63a
VZ
3053 no_cache=0
3054 # Check whether --enable-config or --disable-config was given.
3055if test "${enable_config+set}" = set; then
3056 enableval="$enable_config"
698dcdb6 3057
10f2d63a
VZ
3058 if test "$enableval" = yes; then
3059 ac_cv_use_config='wxUSE_CONFIG=yes'
3060 else
3061 ac_cv_use_config='wxUSE_CONFIG=no'
3062 fi
698dcdb6 3063
10f2d63a 3064else
698dcdb6 3065
10f2d63a
VZ
3066 LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}`
3067 if test "x$LINE" != x ; then
3068 eval "DEFAULT_$LINE"
3069 else
3070 no_cache=1
3071 fi
3072
3073 ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG
698dcdb6
VZ
3074
3075fi
10f2d63a
VZ
3076
3077
3078 eval "$ac_cv_use_config"
3079 if test "$no_cache" != 1; then
3080 echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp
3081 fi
3082
3083 if test "$wxUSE_CONFIG" = yes; then
698dcdb6 3084 echo "$ac_t""yes" 1>&6
10f2d63a 3085 else
698dcdb6 3086 echo "$ac_t""no" 1>&6
10f2d63a 3087 fi
698dcdb6
VZ
3088
3089
b12915c1 3090
a1622950 3091 echo $ac_n "checking for --enable-protocols""... $ac_c" 1>&6
19bc6aad 3092echo "configure:3093: checking for --enable-protocols" >&5
a1622950
VZ
3093 no_cache=0
3094 # Check whether --enable-protocols or --disable-protocols was given.
3095if test "${enable_protocols+set}" = set; then
3096 enableval="$enable_protocols"
3097
3098 if test "$enableval" = yes; then
3099 ac_cv_use_protocols='wxUSE_PROTOCOL=yes'
3100 else
3101 ac_cv_use_protocols='wxUSE_PROTOCOL=no'
3102 fi
3103
3104else
3105
3106 LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
3107 if test "x$LINE" != x ; then
3108 eval "DEFAULT_$LINE"
3109 else
3110 no_cache=1
3111 fi
3112
3113 ac_cv_use_protocols='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
3114
3115fi
3116
3117
3118 eval "$ac_cv_use_protocols"
3119 if test "$no_cache" != 1; then
3120 echo $ac_cv_use_protocols >> ${wx_arg_cache_file}.tmp
3121 fi
3122
3123 if test "$wxUSE_PROTOCOL" = yes; then
3124 echo "$ac_t""yes" 1>&6
3125 else
3126 echo "$ac_t""no" 1>&6
3127 fi
3128
3129
3130 echo $ac_n "checking for --enable-ftp""... $ac_c" 1>&6
19bc6aad 3131echo "configure:3132: checking for --enable-ftp" >&5
a1622950
VZ
3132 no_cache=0
3133 # Check whether --enable-ftp or --disable-ftp was given.
3134if test "${enable_ftp+set}" = set; then
3135 enableval="$enable_ftp"
3136
3137 if test "$enableval" = yes; then
3138 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=yes'
3139 else
3140 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=no'
3141 fi
3142
3143else
3144
3145 LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
3146 if test "x$LINE" != x ; then
3147 eval "DEFAULT_$LINE"
3148 else
3149 no_cache=1
3150 fi
3151
3152 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
3153
3154fi
3155
3156
3157 eval "$ac_cv_use_ftp"
3158 if test "$no_cache" != 1; then
3159 echo $ac_cv_use_ftp >> ${wx_arg_cache_file}.tmp
3160 fi
3161
3162 if test "$wxUSE_PROTOCOL_FTP" = yes; then
3163 echo "$ac_t""yes" 1>&6
3164 else
3165 echo "$ac_t""no" 1>&6
3166 fi
3167
3168
3169 echo $ac_n "checking for --enable-http""... $ac_c" 1>&6
19bc6aad 3170echo "configure:3171: checking for --enable-http" >&5
a1622950
VZ
3171 no_cache=0
3172 # Check whether --enable-http or --disable-http was given.
3173if test "${enable_http+set}" = set; then
3174 enableval="$enable_http"
3175
3176 if test "$enableval" = yes; then
3177 ac_cv_use_http='wxUSE_PROTOCOL_HTTP=yes'
3178 else
3179 ac_cv_use_http='wxUSE_PROTOCOL_HTTP=no'
3180 fi
3181
3182else
3183
3184 LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
3185 if test "x$LINE" != x ; then
3186 eval "DEFAULT_$LINE"
3187 else
3188 no_cache=1
3189 fi
3190
3191 ac_cv_use_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
3192
3193fi
3194
3195
3196 eval "$ac_cv_use_http"
3197 if test "$no_cache" != 1; then
3198 echo $ac_cv_use_http >> ${wx_arg_cache_file}.tmp
3199 fi
3200
3201 if test "$wxUSE_PROTOCOL_HTTP" = yes; then
3202 echo "$ac_t""yes" 1>&6
3203 else
3204 echo "$ac_t""no" 1>&6
3205 fi
3206
3207
3208 echo $ac_n "checking for --enable-fileproto""... $ac_c" 1>&6
19bc6aad 3209echo "configure:3210: checking for --enable-fileproto" >&5
a1622950
VZ
3210 no_cache=0
3211 # Check whether --enable-fileproto or --disable-fileproto was given.
3212if test "${enable_fileproto+set}" = set; then
3213 enableval="$enable_fileproto"
3214
3215 if test "$enableval" = yes; then
3216 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=yes'
3217 else
3218 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=no'
3219 fi
3220
3221else
3222
3223 LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
3224 if test "x$LINE" != x ; then
3225 eval "DEFAULT_$LINE"
3226 else
3227 no_cache=1
3228 fi
3229
3230 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
3231
3232fi
3233
3234
3235 eval "$ac_cv_use_fileproto"
3236 if test "$no_cache" != 1; then
3237 echo $ac_cv_use_fileproto >> ${wx_arg_cache_file}.tmp
3238 fi
3239
3240 if test "$wxUSE_PROTOCOL_FILE" = yes; then
3241 echo "$ac_t""yes" 1>&6
3242 else
3243 echo "$ac_t""no" 1>&6
3244 fi
3245
3246
698dcdb6 3247 echo $ac_n "checking for --enable-sockets""... $ac_c" 1>&6
19bc6aad 3248echo "configure:3249: checking for --enable-sockets" >&5
10f2d63a
VZ
3249 no_cache=0
3250 # Check whether --enable-sockets or --disable-sockets was given.
3251if test "${enable_sockets+set}" = set; then
3252 enableval="$enable_sockets"
698dcdb6 3253
10f2d63a
VZ
3254 if test "$enableval" = yes; then
3255 ac_cv_use_sockets='wxUSE_SOCKETS=yes'
3256 else
3257 ac_cv_use_sockets='wxUSE_SOCKETS=no'
3258 fi
698dcdb6 3259
10f2d63a 3260else
698dcdb6 3261
10f2d63a
VZ
3262 LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}`
3263 if test "x$LINE" != x ; then
3264 eval "DEFAULT_$LINE"
3265 else
3266 no_cache=1
3267 fi
3268
3269 ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS
698dcdb6
VZ
3270
3271fi
10f2d63a
VZ
3272
3273
3274 eval "$ac_cv_use_sockets"
3275 if test "$no_cache" != 1; then
3276 echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp
3277 fi
3278
3279 if test "$wxUSE_SOCKETS" = yes; then
698dcdb6 3280 echo "$ac_t""yes" 1>&6
10f2d63a 3281 else
698dcdb6 3282 echo "$ac_t""no" 1>&6
10f2d63a 3283 fi
698dcdb6 3284
b12915c1 3285
698dcdb6
VZ
3286
3287 echo $ac_n "checking for --enable-ipc""... $ac_c" 1>&6
19bc6aad 3288echo "configure:3289: checking for --enable-ipc" >&5
10f2d63a 3289 no_cache=0
eb4efbdc
VZ
3290 # Check whether --enable-ipc or --disable-ipc was given.
3291if test "${enable_ipc+set}" = set; then
3292 enableval="$enable_ipc"
698dcdb6 3293
10f2d63a 3294 if test "$enableval" = yes; then
eb4efbdc 3295 ac_cv_use_ipc='wxUSE_IPC=yes'
10f2d63a 3296 else
eb4efbdc 3297 ac_cv_use_ipc='wxUSE_IPC=no'
10f2d63a 3298 fi
698dcdb6 3299
10f2d63a 3300else
698dcdb6 3301
eb4efbdc 3302 LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}`
10f2d63a
VZ
3303 if test "x$LINE" != x ; then
3304 eval "DEFAULT_$LINE"
3305 else
3306 no_cache=1
3307 fi
3308
eb4efbdc 3309 ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC
698dcdb6
VZ
3310
3311fi
10f2d63a
VZ
3312
3313
eb4efbdc 3314 eval "$ac_cv_use_ipc"
10f2d63a 3315 if test "$no_cache" != 1; then
eb4efbdc 3316 echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
3317 fi
3318
eb4efbdc 3319 if test "$wxUSE_IPC" = yes; then
698dcdb6 3320 echo "$ac_t""yes" 1>&6
10f2d63a 3321 else
698dcdb6 3322 echo "$ac_t""no" 1>&6
10f2d63a 3323 fi
698dcdb6
VZ
3324
3325
eb4efbdc 3326
1e6feb95 3327 echo $ac_n "checking for --enable-cmdline""... $ac_c" 1>&6
19bc6aad 3328echo "configure:3329: checking for --enable-cmdline" >&5
1e6feb95
VZ
3329 no_cache=0
3330 # Check whether --enable-cmdline or --disable-cmdline was given.
3331if test "${enable_cmdline+set}" = set; then
3332 enableval="$enable_cmdline"
3333
3334 if test "$enableval" = yes; then
3335 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=yes'
3336 else
3337 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=no'
3338 fi
3339
3340else
3341
3342 LINE=`grep "wxUSE_CMDLINE_PARSER" ${wx_arg_cache_file}`
3343 if test "x$LINE" != x ; then
3344 eval "DEFAULT_$LINE"
3345 else
3346 no_cache=1
3347 fi
3348
3349 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER='$DEFAULT_wxUSE_CMDLINE_PARSER
3350
3351fi
3352
3353
3354 eval "$ac_cv_use_cmdline"
3355 if test "$no_cache" != 1; then
3356 echo $ac_cv_use_cmdline >> ${wx_arg_cache_file}.tmp
3357 fi
3358
3359 if test "$wxUSE_CMDLINE_PARSER" = yes; then
3360 echo "$ac_t""yes" 1>&6
3361 else
3362 echo "$ac_t""no" 1>&6
3363 fi
3364
3365
3366 echo $ac_n "checking for --enable-datetime""... $ac_c" 1>&6
19bc6aad 3367echo "configure:3368: checking for --enable-datetime" >&5
1e6feb95
VZ
3368 no_cache=0
3369 # Check whether --enable-datetime or --disable-datetime was given.
3370if test "${enable_datetime+set}" = set; then
3371 enableval="$enable_datetime"
3372
3373 if test "$enableval" = yes; then
3374 ac_cv_use_datetime='wxUSE_DATETIME=yes'
3375 else
3376 ac_cv_use_datetime='wxUSE_DATETIME=no'
3377 fi
3378
3379else
3380
3381 LINE=`grep "wxUSE_DATETIME" ${wx_arg_cache_file}`
3382 if test "x$LINE" != x ; then
3383 eval "DEFAULT_$LINE"
3384 else
3385 no_cache=1
3386 fi
3387
3388 ac_cv_use_datetime='wxUSE_DATETIME='$DEFAULT_wxUSE_DATETIME
3389
3390fi
3391
3392
3393 eval "$ac_cv_use_datetime"
3394 if test "$no_cache" != 1; then
3395 echo $ac_cv_use_datetime >> ${wx_arg_cache_file}.tmp
3396 fi
3397
3398 if test "$wxUSE_DATETIME" = yes; then
3399 echo "$ac_t""yes" 1>&6
3400 else
3401 echo "$ac_t""no" 1>&6
3402 fi
3403
3404
3405 echo $ac_n "checking for --enable-timedate""... $ac_c" 1>&6
19bc6aad 3406echo "configure:3407: checking for --enable-timedate" >&5
1e6feb95
VZ
3407 no_cache=0
3408 # Check whether --enable-timedate or --disable-timedate was given.
3409if test "${enable_timedate+set}" = set; then
3410 enableval="$enable_timedate"
3411
3412 if test "$enableval" = yes; then
3413 ac_cv_use_timedate='wxUSE_TIMEDATE=yes'
3414 else
3415 ac_cv_use_timedate='wxUSE_TIMEDATE=no'
3416 fi
3417
3418else
3419
3420 LINE=`grep "wxUSE_TIMEDATE" ${wx_arg_cache_file}`
3421 if test "x$LINE" != x ; then
3422 eval "DEFAULT_$LINE"
3423 else
3424 no_cache=1
3425 fi
3426
3427 ac_cv_use_timedate='wxUSE_TIMEDATE='$DEFAULT_wxUSE_TIMEDATE
3428
3429fi
3430
3431
3432 eval "$ac_cv_use_timedate"
3433 if test "$no_cache" != 1; then
3434 echo $ac_cv_use_timedate >> ${wx_arg_cache_file}.tmp
3435 fi
3436
3437 if test "$wxUSE_TIMEDATE" = yes; then
3438 echo "$ac_t""yes" 1>&6
3439 else
3440 echo "$ac_t""no" 1>&6
3441 fi
3442
3443
3444 echo $ac_n "checking for --enable-stopwatch""... $ac_c" 1>&6
19bc6aad 3445echo "configure:3446: checking for --enable-stopwatch" >&5
1e6feb95
VZ
3446 no_cache=0
3447 # Check whether --enable-stopwatch or --disable-stopwatch was given.
3448if test "${enable_stopwatch+set}" = set; then
3449 enableval="$enable_stopwatch"
3450
3451 if test "$enableval" = yes; then
3452 ac_cv_use_stopwatch='wxUSE_STOPWATCH=yes'
3453 else
3454 ac_cv_use_stopwatch='wxUSE_STOPWATCH=no'
3455 fi
3456
3457else
3458
3459 LINE=`grep "wxUSE_STOPWATCH" ${wx_arg_cache_file}`
3460 if test "x$LINE" != x ; then
3461 eval "DEFAULT_$LINE"
3462 else
3463 no_cache=1
3464 fi
3465
3466 ac_cv_use_stopwatch='wxUSE_STOPWATCH='$DEFAULT_wxUSE_STOPWATCH
3467
3468fi
3469
3470
3471 eval "$ac_cv_use_stopwatch"
3472 if test "$no_cache" != 1; then
3473 echo $ac_cv_use_stopwatch >> ${wx_arg_cache_file}.tmp
3474 fi
3475
3476 if test "$wxUSE_STOPWATCH" = yes; then
3477 echo "$ac_t""yes" 1>&6
3478 else
3479 echo "$ac_t""no" 1>&6
3480 fi
3481
3482
698dcdb6 3483 echo $ac_n "checking for --enable-dialupman""... $ac_c" 1>&6
19bc6aad 3484echo "configure:3485: checking for --enable-dialupman" >&5
10f2d63a 3485 no_cache=0
eb4efbdc
VZ
3486 # Check whether --enable-dialupman or --disable-dialupman was given.
3487if test "${enable_dialupman+set}" = set; then
3488 enableval="$enable_dialupman"
698dcdb6 3489
10f2d63a 3490 if test "$enableval" = yes; then
eb4efbdc 3491 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes'
10f2d63a 3492 else
eb4efbdc 3493 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no'
10f2d63a 3494 fi
698dcdb6 3495
10f2d63a 3496else
698dcdb6 3497
eb4efbdc 3498 LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}`
10f2d63a
VZ
3499 if test "x$LINE" != x ; then
3500 eval "DEFAULT_$LINE"
3501 else
3502 no_cache=1
3503 fi
3504
eb4efbdc 3505 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER
698dcdb6
VZ
3506
3507fi
10f2d63a
VZ
3508
3509
eb4efbdc 3510 eval "$ac_cv_use_dialupman"
10f2d63a 3511 if test "$no_cache" != 1; then
eb4efbdc 3512 echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
3513 fi
3514
eb4efbdc 3515 if test "$wxUSE_DIALUP_MANAGER" = yes; then
698dcdb6 3516 echo "$ac_t""yes" 1>&6
10f2d63a 3517 else
698dcdb6 3518 echo "$ac_t""no" 1>&6
10f2d63a 3519 fi
698dcdb6 3520
10f2d63a 3521
698dcdb6 3522 echo $ac_n "checking for --enable-apple_ieee""... $ac_c" 1>&6
19bc6aad 3523echo "configure:3524: checking for --enable-apple_ieee" >&5
10f2d63a
VZ
3524 no_cache=0
3525 # Check whether --enable-apple_ieee or --disable-apple_ieee was given.
3526if test "${enable_apple_ieee+set}" = set; then
3527 enableval="$enable_apple_ieee"
698dcdb6 3528
10f2d63a
VZ
3529 if test "$enableval" = yes; then
3530 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes'
3531 else
3532 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no'
3533 fi
698dcdb6 3534
10f2d63a 3535else
698dcdb6 3536
10f2d63a
VZ
3537 LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}`
3538 if test "x$LINE" != x ; then
3539 eval "DEFAULT_$LINE"
3540 else
3541 no_cache=1
3542 fi
3543
3544 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE
698dcdb6
VZ
3545
3546fi
10f2d63a
VZ
3547
3548
3549 eval "$ac_cv_use_apple_ieee"
3550 if test "$no_cache" != 1; then
3551 echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp
3552 fi
3553
3554 if test "$wxUSE_APPLE_IEEE" = yes; then
698dcdb6 3555 echo "$ac_t""yes" 1>&6
10f2d63a 3556 else
698dcdb6 3557 echo "$ac_t""no" 1>&6
10f2d63a 3558 fi
698dcdb6 3559
10f2d63a 3560
1e6feb95 3561 echo $ac_n "checking for --enable-timer""... $ac_c" 1>&6
19bc6aad 3562echo "configure:3563: checking for --enable-timer" >&5
10f2d63a 3563 no_cache=0
1e6feb95
VZ
3564 # Check whether --enable-timer or --disable-timer was given.
3565if test "${enable_timer+set}" = set; then
3566 enableval="$enable_timer"
698dcdb6 3567
10f2d63a 3568 if test "$enableval" = yes; then
1e6feb95 3569 ac_cv_use_timer='wxUSE_TIMER=yes'
10f2d63a 3570 else
1e6feb95 3571 ac_cv_use_timer='wxUSE_TIMER=no'
10f2d63a 3572 fi
698dcdb6 3573
10f2d63a 3574else
698dcdb6 3575
1e6feb95 3576 LINE=`grep "wxUSE_TIMER" ${wx_arg_cache_file}`
10f2d63a
VZ
3577 if test "x$LINE" != x ; then
3578 eval "DEFAULT_$LINE"
3579 else
3580 no_cache=1
3581 fi
3582
1e6feb95 3583 ac_cv_use_timer='wxUSE_TIMER='$DEFAULT_wxUSE_TIMER
698dcdb6
VZ
3584
3585fi
10f2d63a
VZ
3586
3587
1e6feb95 3588 eval "$ac_cv_use_timer"
10f2d63a 3589 if test "$no_cache" != 1; then
1e6feb95 3590 echo $ac_cv_use_timer >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
3591 fi
3592
1e6feb95 3593 if test "$wxUSE_TIMER" = yes; then
698dcdb6 3594 echo "$ac_t""yes" 1>&6
10f2d63a 3595 else
698dcdb6 3596 echo "$ac_t""no" 1>&6
10f2d63a 3597 fi
698dcdb6 3598
10f2d63a 3599
698dcdb6 3600 echo $ac_n "checking for --enable-wave""... $ac_c" 1>&6
19bc6aad 3601echo "configure:3602: checking for --enable-wave" >&5
10f2d63a
VZ
3602 no_cache=0
3603 # Check whether --enable-wave or --disable-wave was given.
3604if test "${enable_wave+set}" = set; then
3605 enableval="$enable_wave"
698dcdb6 3606
10f2d63a
VZ
3607 if test "$enableval" = yes; then
3608 ac_cv_use_wave='wxUSE_WAVE=yes'
3609 else
3610 ac_cv_use_wave='wxUSE_WAVE=no'
3611 fi
698dcdb6 3612
10f2d63a 3613else
698dcdb6 3614
10f2d63a
VZ
3615 LINE=`grep "wxUSE_WAVE" ${wx_arg_cache_file}`
3616 if test "x$LINE" != x ; then
3617 eval "DEFAULT_$LINE"
3618 else
3619 no_cache=1
3620 fi
3621
3622 ac_cv_use_wave='wxUSE_WAVE='$DEFAULT_wxUSE_WAVE
698dcdb6
VZ
3623
3624fi
10f2d63a
VZ
3625
3626
3627 eval "$ac_cv_use_wave"
3628 if test "$no_cache" != 1; then
3629 echo $ac_cv_use_wave >> ${wx_arg_cache_file}.tmp
3630 fi
3631
3632 if test "$wxUSE_WAVE" = yes; then
698dcdb6 3633 echo "$ac_t""yes" 1>&6
10f2d63a 3634 else
698dcdb6 3635 echo "$ac_t""no" 1>&6
10f2d63a 3636 fi
698dcdb6 3637
10f2d63a 3638
698dcdb6 3639 echo $ac_n "checking for --enable-fraction""... $ac_c" 1>&6
19bc6aad 3640echo "configure:3641: checking for --enable-fraction" >&5
10f2d63a
VZ
3641 no_cache=0
3642 # Check whether --enable-fraction or --disable-fraction was given.
3643if test "${enable_fraction+set}" = set; then
3644 enableval="$enable_fraction"
698dcdb6 3645
10f2d63a
VZ
3646 if test "$enableval" = yes; then
3647 ac_cv_use_fraction='wxUSE_FRACTION=yes'
3648 else
3649 ac_cv_use_fraction='wxUSE_FRACTION=no'
3650 fi
698dcdb6 3651
10f2d63a 3652else
698dcdb6 3653
10f2d63a
VZ
3654 LINE=`grep "wxUSE_FRACTION" ${wx_arg_cache_file}`
3655 if test "x$LINE" != x ; then
3656 eval "DEFAULT_$LINE"
3657 else
3658 no_cache=1
3659 fi
3660
3661 ac_cv_use_fraction='wxUSE_FRACTION='$DEFAULT_wxUSE_FRACTION
698dcdb6
VZ
3662
3663fi
10f2d63a
VZ
3664
3665
3666 eval "$ac_cv_use_fraction"
3667 if test "$no_cache" != 1; then
3668 echo $ac_cv_use_fraction >> ${wx_arg_cache_file}.tmp
3669 fi
3670
3671 if test "$wxUSE_FRACTION" = yes; then
698dcdb6 3672 echo "$ac_t""yes" 1>&6
10f2d63a 3673 else
698dcdb6 3674 echo "$ac_t""no" 1>&6
10f2d63a 3675 fi
698dcdb6 3676
10f2d63a 3677
698dcdb6 3678 echo $ac_n "checking for --enable-dynlib""... $ac_c" 1>&6
19bc6aad 3679echo "configure:3680: checking for --enable-dynlib" >&5
10f2d63a
VZ
3680 no_cache=0
3681 # Check whether --enable-dynlib or --disable-dynlib was given.
3682if test "${enable_dynlib+set}" = set; then
3683 enableval="$enable_dynlib"
698dcdb6 3684
10f2d63a
VZ
3685 if test "$enableval" = yes; then
3686 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes'
3687 else
3688 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no'
3689 fi
698dcdb6 3690
10f2d63a 3691else
698dcdb6 3692
10f2d63a
VZ
3693 LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}`
3694 if test "x$LINE" != x ; then
3695 eval "DEFAULT_$LINE"
3696 else
3697 no_cache=1
3698 fi
3699
3700 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS
698dcdb6
VZ
3701
3702fi
10f2d63a
VZ
3703
3704
3705 eval "$ac_cv_use_dynlib"
3706 if test "$no_cache" != 1; then
3707 echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp
3708 fi
3709
3710 if test "$wxUSE_DYNLIB_CLASS" = yes; then
698dcdb6 3711 echo "$ac_t""yes" 1>&6
10f2d63a 3712 else
698dcdb6 3713 echo "$ac_t""no" 1>&6
10f2d63a 3714 fi
698dcdb6 3715
10f2d63a 3716
0b9ab0bd 3717 echo $ac_n "checking for --enable-dynamicloader""... $ac_c" 1>&6
19bc6aad 3718echo "configure:3719: checking for --enable-dynamicloader" >&5
0b9ab0bd
RL
3719 no_cache=0
3720 # Check whether --enable-dynamicloader or --disable-dynamicloader was given.
3721if test "${enable_dynamicloader+set}" = set; then
3722 enableval="$enable_dynamicloader"
3723
3724 if test "$enableval" = yes; then
3725 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=yes'
3726 else
3727 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=no'
3728 fi
3729
3730else
3731
3732 LINE=`grep "wxUSE_DYNAMIC_LOADER" ${wx_arg_cache_file}`
3733 if test "x$LINE" != x ; then
3734 eval "DEFAULT_$LINE"
3735 else
3736 no_cache=1
3737 fi
3738
3739 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER='$DEFAULT_wxUSE_DYNAMIC_LOADER
3740
3741fi
3742
3743
3744 eval "$ac_cv_use_dynamicloader"
3745 if test "$no_cache" != 1; then
3746 echo $ac_cv_use_dynamicloader >> ${wx_arg_cache_file}.tmp
3747 fi
3748
3749 if test "$wxUSE_DYNAMIC_LOADER" = yes; then
3750 echo "$ac_t""yes" 1>&6
3751 else
3752 echo "$ac_t""no" 1>&6
3753 fi
3754
3755
698dcdb6 3756 echo $ac_n "checking for --enable-longlong""... $ac_c" 1>&6
19bc6aad 3757echo "configure:3758: checking for --enable-longlong" >&5
10f2d63a
VZ
3758 no_cache=0
3759 # Check whether --enable-longlong or --disable-longlong was given.
3760if test "${enable_longlong+set}" = set; then
3761 enableval="$enable_longlong"
698dcdb6 3762
10f2d63a
VZ
3763 if test "$enableval" = yes; then
3764 ac_cv_use_longlong='wxUSE_LONGLONG=yes'
3765 else
3766 ac_cv_use_longlong='wxUSE_LONGLONG=no'
3767 fi
698dcdb6 3768
10f2d63a 3769else
698dcdb6 3770
10f2d63a
VZ
3771 LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}`
3772 if test "x$LINE" != x ; then
3773 eval "DEFAULT_$LINE"
3774 else
3775 no_cache=1
3776 fi
3777
3778 ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG
698dcdb6
VZ
3779
3780fi
10f2d63a
VZ
3781
3782
3783 eval "$ac_cv_use_longlong"
3784 if test "$no_cache" != 1; then
3785 echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp
3786 fi
3787
3788 if test "$wxUSE_LONGLONG" = yes; then
698dcdb6 3789 echo "$ac_t""yes" 1>&6
10f2d63a 3790 else
698dcdb6 3791 echo "$ac_t""no" 1>&6
10f2d63a 3792 fi
698dcdb6 3793
10f2d63a 3794
698dcdb6 3795 echo $ac_n "checking for --enable-geometry""... $ac_c" 1>&6
19bc6aad 3796echo "configure:3797: checking for --enable-geometry" >&5
e8f65ba6
RR
3797 no_cache=0
3798 # Check whether --enable-geometry or --disable-geometry was given.
3799if test "${enable_geometry+set}" = set; then
3800 enableval="$enable_geometry"
698dcdb6 3801
e8f65ba6
RR
3802 if test "$enableval" = yes; then
3803 ac_cv_use_geometry='wxUSE_GEOMETRY=yes'
3804 else
3805 ac_cv_use_geometry='wxUSE_GEOMETRY=no'
3806 fi
698dcdb6 3807
e8f65ba6 3808else
698dcdb6 3809
e8f65ba6
RR
3810 LINE=`grep "wxUSE_GEOMETRY" ${wx_arg_cache_file}`
3811 if test "x$LINE" != x ; then
3812 eval "DEFAULT_$LINE"
3813 else
3814 no_cache=1
3815 fi
3816
3817 ac_cv_use_geometry='wxUSE_GEOMETRY='$DEFAULT_wxUSE_GEOMETRY
698dcdb6
VZ
3818
3819fi
e8f65ba6
RR
3820
3821
3822 eval "$ac_cv_use_geometry"
3823 if test "$no_cache" != 1; then
3824 echo $ac_cv_use_geometry >> ${wx_arg_cache_file}.tmp
3825 fi
3826
3827 if test "$wxUSE_GEOMETRY" = yes; then
698dcdb6 3828 echo "$ac_t""yes" 1>&6
e8f65ba6 3829 else
698dcdb6 3830 echo "$ac_t""no" 1>&6
e8f65ba6 3831 fi
698dcdb6 3832
e8f65ba6 3833
698dcdb6 3834 echo $ac_n "checking for --enable-log""... $ac_c" 1>&6
19bc6aad 3835echo "configure:3836: checking for --enable-log" >&5
10f2d63a
VZ
3836 no_cache=0
3837 # Check whether --enable-log or --disable-log was given.
3838if test "${enable_log+set}" = set; then
3839 enableval="$enable_log"
698dcdb6 3840
10f2d63a
VZ
3841 if test "$enableval" = yes; then
3842 ac_cv_use_log='wxUSE_LOG=yes'
3843 else
3844 ac_cv_use_log='wxUSE_LOG=no'
3845 fi
698dcdb6 3846
10f2d63a 3847else
698dcdb6 3848
10f2d63a
VZ
3849 LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}`
3850 if test "x$LINE" != x ; then
3851 eval "DEFAULT_$LINE"
3852 else
3853 no_cache=1
3854 fi
3855
3856 ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG
698dcdb6
VZ
3857
3858fi
10f2d63a
VZ
3859
3860
3861 eval "$ac_cv_use_log"
3862 if test "$no_cache" != 1; then
3863 echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp
3864 fi
3865
3866 if test "$wxUSE_LOG" = yes; then
698dcdb6 3867 echo "$ac_t""yes" 1>&6
10f2d63a 3868 else
698dcdb6 3869 echo "$ac_t""no" 1>&6
10f2d63a 3870 fi
698dcdb6 3871
10f2d63a 3872
698dcdb6 3873 echo $ac_n "checking for --enable-streams""... $ac_c" 1>&6
19bc6aad 3874echo "configure:3875: checking for --enable-streams" >&5
10f2d63a
VZ
3875 no_cache=0
3876 # Check whether --enable-streams or --disable-streams was given.
3877if test "${enable_streams+set}" = set; then
3878 enableval="$enable_streams"
698dcdb6 3879
10f2d63a
VZ
3880 if test "$enableval" = yes; then
3881 ac_cv_use_streams='wxUSE_STREAMS=yes'
3882 else
3883 ac_cv_use_streams='wxUSE_STREAMS=no'
3884 fi
698dcdb6 3885
10f2d63a 3886else
698dcdb6 3887
10f2d63a
VZ
3888 LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}`
3889 if test "x$LINE" != x ; then
3890 eval "DEFAULT_$LINE"
3891 else
3892 no_cache=1
3893 fi
3894
3895 ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS
698dcdb6
VZ
3896
3897fi
10f2d63a
VZ
3898
3899
3900 eval "$ac_cv_use_streams"
3901 if test "$no_cache" != 1; then
3902 echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp
3903 fi
3904
3905 if test "$wxUSE_STREAMS" = yes; then
698dcdb6 3906 echo "$ac_t""yes" 1>&6
10f2d63a 3907 else
698dcdb6 3908 echo "$ac_t""no" 1>&6
10f2d63a 3909 fi
698dcdb6 3910
10f2d63a 3911
698dcdb6 3912 echo $ac_n "checking for --enable-file""... $ac_c" 1>&6
19bc6aad 3913echo "configure:3914: checking for --enable-file" >&5
10f2d63a
VZ
3914 no_cache=0
3915 # Check whether --enable-file or --disable-file was given.
3916if test "${enable_file+set}" = set; then
3917 enableval="$enable_file"
698dcdb6 3918
10f2d63a
VZ
3919 if test "$enableval" = yes; then
3920 ac_cv_use_file='wxUSE_FILE=yes'
3921 else
3922 ac_cv_use_file='wxUSE_FILE=no'
3923 fi
698dcdb6 3924
10f2d63a 3925else
698dcdb6 3926
10f2d63a
VZ
3927 LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}`
3928 if test "x$LINE" != x ; then
3929 eval "DEFAULT_$LINE"
3930 else
3931 no_cache=1
3932 fi
3933
3934 ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE
698dcdb6
VZ
3935
3936fi
10f2d63a
VZ
3937
3938
3939 eval "$ac_cv_use_file"
3940 if test "$no_cache" != 1; then
3941 echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp
3942 fi
3943
3944 if test "$wxUSE_FILE" = yes; then
698dcdb6 3945 echo "$ac_t""yes" 1>&6
10f2d63a 3946 else
698dcdb6 3947 echo "$ac_t""no" 1>&6
10f2d63a 3948 fi
698dcdb6 3949
10f2d63a 3950
1e6feb95 3951 echo $ac_n "checking for --enable-ffile""... $ac_c" 1>&6
19bc6aad 3952echo "configure:3953: checking for --enable-ffile" >&5
10f2d63a 3953 no_cache=0
1e6feb95
VZ
3954 # Check whether --enable-ffile or --disable-ffile was given.
3955if test "${enable_ffile+set}" = set; then
3956 enableval="$enable_ffile"
698dcdb6 3957
10f2d63a 3958 if test "$enableval" = yes; then
1e6feb95 3959 ac_cv_use_ffile='wxUSE_FFILE=yes'
10f2d63a 3960 else
1e6feb95 3961 ac_cv_use_ffile='wxUSE_FFILE=no'
10f2d63a 3962 fi
698dcdb6 3963
10f2d63a 3964else
698dcdb6 3965
1e6feb95 3966 LINE=`grep "wxUSE_FFILE" ${wx_arg_cache_file}`
10f2d63a
VZ
3967 if test "x$LINE" != x ; then
3968 eval "DEFAULT_$LINE"
3969 else
3970 no_cache=1
3971 fi
3972
1e6feb95 3973 ac_cv_use_ffile='wxUSE_FFILE='$DEFAULT_wxUSE_FFILE
698dcdb6
VZ
3974
3975fi
10f2d63a
VZ
3976
3977
1e6feb95 3978 eval "$ac_cv_use_ffile"
10f2d63a 3979 if test "$no_cache" != 1; then
1e6feb95 3980 echo $ac_cv_use_ffile >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
3981 fi
3982
1e6feb95 3983 if test "$wxUSE_FFILE" = yes; then
698dcdb6 3984 echo "$ac_t""yes" 1>&6
10f2d63a 3985 else
698dcdb6 3986 echo "$ac_t""no" 1>&6
10f2d63a 3987 fi
698dcdb6 3988
10f2d63a 3989
a3a584a7 3990 echo $ac_n "checking for --enable-textbuf""... $ac_c" 1>&6
19bc6aad 3991echo "configure:3992: checking for --enable-textbuf" >&5
a3a584a7
VZ
3992 no_cache=0
3993 # Check whether --enable-textbuf or --disable-textbuf was given.
3994if test "${enable_textbuf+set}" = set; then
3995 enableval="$enable_textbuf"
3996
3997 if test "$enableval" = yes; then
3998 ac_cv_use_textbuf='wxUSE_TEXTBUFFER=yes'
3999 else
4000 ac_cv_use_textbuf='wxUSE_TEXTBUFFER=no'
4001 fi
4002
4003else
4004
4005 LINE=`grep "wxUSE_TEXTBUFFER" ${wx_arg_cache_file}`
4006 if test "x$LINE" != x ; then
4007 eval "DEFAULT_$LINE"
4008 else
4009 no_cache=1
4010 fi
4011
4012 ac_cv_use_textbuf='wxUSE_TEXTBUFFER='$DEFAULT_wxUSE_TEXTBUFFER
4013
4014fi
4015
4016
4017 eval "$ac_cv_use_textbuf"
4018 if test "$no_cache" != 1; then
4019 echo $ac_cv_use_textbuf >> ${wx_arg_cache_file}.tmp
4020 fi
4021
4022 if test "$wxUSE_TEXTBUFFER" = yes; then
4023 echo "$ac_t""yes" 1>&6
4024 else
4025 echo "$ac_t""no" 1>&6
4026 fi
4027
4028
1e6feb95 4029 echo $ac_n "checking for --enable-textfile""... $ac_c" 1>&6
19bc6aad 4030echo "configure:4031: checking for --enable-textfile" >&5
10f2d63a 4031 no_cache=0
1e6feb95
VZ
4032 # Check whether --enable-textfile or --disable-textfile was given.
4033if test "${enable_textfile+set}" = set; then
4034 enableval="$enable_textfile"
698dcdb6 4035
10f2d63a 4036 if test "$enableval" = yes; then
1e6feb95 4037 ac_cv_use_textfile='wxUSE_TEXTFILE=yes'
10f2d63a 4038 else
1e6feb95 4039 ac_cv_use_textfile='wxUSE_TEXTFILE=no'
10f2d63a 4040 fi
698dcdb6 4041
10f2d63a 4042else
698dcdb6 4043
1e6feb95 4044 LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}`
10f2d63a
VZ
4045 if test "x$LINE" != x ; then
4046 eval "DEFAULT_$LINE"
4047 else
4048 no_cache=1
4049 fi
4050
1e6feb95 4051 ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE
698dcdb6
VZ
4052
4053fi
10f2d63a
VZ
4054
4055
1e6feb95 4056 eval "$ac_cv_use_textfile"
10f2d63a 4057 if test "$no_cache" != 1; then
1e6feb95 4058 echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
4059 fi
4060
1e6feb95 4061 if test "$wxUSE_TEXTFILE" = yes; then
698dcdb6 4062 echo "$ac_t""yes" 1>&6
10f2d63a 4063 else
698dcdb6 4064 echo "$ac_t""no" 1>&6
10f2d63a 4065 fi
698dcdb6 4066
10f2d63a 4067
1e6feb95 4068 echo $ac_n "checking for --enable-fontmap""... $ac_c" 1>&6
19bc6aad 4069echo "configure:4070: checking for --enable-fontmap" >&5
10f2d63a 4070 no_cache=0
1e6feb95
VZ
4071 # Check whether --enable-fontmap or --disable-fontmap was given.
4072if test "${enable_fontmap+set}" = set; then
4073 enableval="$enable_fontmap"
698dcdb6 4074
10f2d63a 4075 if test "$enableval" = yes; then
1e6feb95 4076 ac_cv_use_fontmap='wxUSE_FONTMAP=yes'
10f2d63a 4077 else
1e6feb95 4078 ac_cv_use_fontmap='wxUSE_FONTMAP=no'
10f2d63a 4079 fi
698dcdb6 4080
10f2d63a 4081else
698dcdb6 4082
1e6feb95 4083 LINE=`grep "wxUSE_FONTMAP" ${wx_arg_cache_file}`
10f2d63a
VZ
4084 if test "x$LINE" != x ; then
4085 eval "DEFAULT_$LINE"
4086 else
4087 no_cache=1
4088 fi
4089
1e6feb95 4090 ac_cv_use_fontmap='wxUSE_FONTMAP='$DEFAULT_wxUSE_FONTMAP
698dcdb6
VZ
4091
4092fi
10f2d63a
VZ
4093
4094
1e6feb95 4095 eval "$ac_cv_use_fontmap"
10f2d63a 4096 if test "$no_cache" != 1; then
1e6feb95 4097 echo $ac_cv_use_fontmap >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
4098 fi
4099
1e6feb95 4100 if test "$wxUSE_FONTMAP" = yes; then
698dcdb6 4101 echo "$ac_t""yes" 1>&6
10f2d63a 4102 else
698dcdb6 4103 echo "$ac_t""no" 1>&6
10f2d63a 4104 fi
698dcdb6 4105
10f2d63a 4106
1e6feb95 4107 echo $ac_n "checking for --enable-unicode""... $ac_c" 1>&6
19bc6aad 4108echo "configure:4109: checking for --enable-unicode" >&5
10f2d63a 4109 no_cache=0
1e6feb95
VZ
4110 # Check whether --enable-unicode or --disable-unicode was given.
4111if test "${enable_unicode+set}" = set; then
4112 enableval="$enable_unicode"
4113
4114 if test "$enableval" = yes; then
4115 ac_cv_use_unicode='wxUSE_UNICODE=yes'
4116 else
4117 ac_cv_use_unicode='wxUSE_UNICODE=no'
4118 fi
4119
4120else
4121
4122 LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}`
4123 if test "x$LINE" != x ; then
4124 eval "DEFAULT_$LINE"
4125 else
4126 no_cache=1
4127 fi
4128
4129 ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE
4130
4131fi
4132
4133
4134 eval "$ac_cv_use_unicode"
4135 if test "$no_cache" != 1; then
4136 echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp
4137 fi
4138
4139 if test "$wxUSE_UNICODE" = yes; then
4140 echo "$ac_t""yes" 1>&6
4141 else
4142 echo "$ac_t""no" 1>&6
4143 fi
4144
4145
a72a4bfa 4146 echo $ac_n "checking for --enable-mslu""... $ac_c" 1>&6
19bc6aad 4147echo "configure:4148: checking for --enable-mslu" >&5
a72a4bfa
VS
4148 no_cache=0
4149 # Check whether --enable-mslu or --disable-mslu was given.
4150if test "${enable_mslu+set}" = set; then
4151 enableval="$enable_mslu"
4152
4153 if test "$enableval" = yes; then
4154 ac_cv_use_mslu='wxUSE_UNICODE_MSLU=yes'
4155 else
4156 ac_cv_use_mslu='wxUSE_UNICODE_MSLU=no'
4157 fi
4158
4159else
4160
4161 LINE=`grep "wxUSE_UNICODE_MSLU" ${wx_arg_cache_file}`
4162 if test "x$LINE" != x ; then
4163 eval "DEFAULT_$LINE"
4164 else
4165 no_cache=1
4166 fi
4167
4168 ac_cv_use_mslu='wxUSE_UNICODE_MSLU='$DEFAULT_wxUSE_UNICODE_MSLU
4169
4170fi
4171
4172
4173 eval "$ac_cv_use_mslu"
4174 if test "$no_cache" != 1; then
4175 echo $ac_cv_use_mslu >> ${wx_arg_cache_file}.tmp
4176 fi
4177
4178 if test "$wxUSE_UNICODE_MSLU" = yes; then
4179 echo "$ac_t""yes" 1>&6
4180 else
4181 echo "$ac_t""no" 1>&6
4182 fi
4183
4184
1e6feb95 4185 echo $ac_n "checking for --enable-wxprintfv""... $ac_c" 1>&6
19bc6aad 4186echo "configure:4187: checking for --enable-wxprintfv" >&5
1e6feb95
VZ
4187 no_cache=0
4188 # Check whether --enable-wxprintfv or --disable-wxprintfv was given.
4189if test "${enable_wxprintfv+set}" = set; then
4190 enableval="$enable_wxprintfv"
4191
4192 if test "$enableval" = yes; then
10f2d63a
VZ
4193 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=yes'
4194 else
4195 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=no'
4196 fi
698dcdb6 4197
10f2d63a 4198else
698dcdb6 4199
10f2d63a
VZ
4200 LINE=`grep "wxUSE_EXPERIMENTAL_PRINTF" ${wx_arg_cache_file}`
4201 if test "x$LINE" != x ; then
4202 eval "DEFAULT_$LINE"
4203 else
4204 no_cache=1
4205 fi
4206
4207 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF='$DEFAULT_wxUSE_EXPERIMENTAL_PRINTF
698dcdb6
VZ
4208
4209fi
10f2d63a
VZ
4210
4211
4212 eval "$ac_cv_use_wxprintfv"
4213 if test "$no_cache" != 1; then
4214 echo $ac_cv_use_wxprintfv >> ${wx_arg_cache_file}.tmp
4215 fi
4216
4217 if test "$wxUSE_EXPERIMENTAL_PRINTF" = yes; then
698dcdb6 4218 echo "$ac_t""yes" 1>&6
10f2d63a 4219 else
698dcdb6 4220 echo "$ac_t""no" 1>&6
10f2d63a 4221 fi
698dcdb6 4222
10f2d63a 4223
698dcdb6 4224 echo $ac_n "checking for --enable-std_iostreams""... $ac_c" 1>&6
19bc6aad 4225echo "configure:4226: checking for --enable-std_iostreams" >&5
10f2d63a
VZ
4226 no_cache=0
4227 # Check whether --enable-std_iostreams or --disable-std_iostreams was given.
4228if test "${enable_std_iostreams+set}" = set; then
4229 enableval="$enable_std_iostreams"
698dcdb6 4230
10f2d63a
VZ
4231 if test "$enableval" = yes; then
4232 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes'
4233 else
4234 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no'
4235 fi
698dcdb6 4236
10f2d63a 4237else
698dcdb6 4238
10f2d63a
VZ
4239 LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}`
4240 if test "x$LINE" != x ; then
4241 eval "DEFAULT_$LINE"
4242 else
4243 no_cache=1
4244 fi
4245
4246 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM
698dcdb6
VZ
4247
4248fi
10f2d63a
VZ
4249
4250
4251 eval "$ac_cv_use_std_iostreams"
4252 if test "$no_cache" != 1; then
4253 echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp
4254 fi
4255
4256 if test "$wxUSE_STD_IOSTREAM" = yes; then
698dcdb6 4257 echo "$ac_t""yes" 1>&6
10f2d63a 4258 else
698dcdb6 4259 echo "$ac_t""no" 1>&6
10f2d63a 4260 fi
698dcdb6 4261
10f2d63a 4262
698dcdb6 4263 echo $ac_n "checking for --enable-filesystem""... $ac_c" 1>&6
19bc6aad 4264echo "configure:4265: checking for --enable-filesystem" >&5
24528b0c
VS
4265 no_cache=0
4266 # Check whether --enable-filesystem or --disable-filesystem was given.
4267if test "${enable_filesystem+set}" = set; then
4268 enableval="$enable_filesystem"
698dcdb6 4269
24528b0c
VS
4270 if test "$enableval" = yes; then
4271 ac_cv_use_filesystem='wxUSE_FILESYSTEM=yes'
4272 else
4273 ac_cv_use_filesystem='wxUSE_FILESYSTEM=no'
4274 fi
698dcdb6 4275
24528b0c 4276else
698dcdb6 4277
24528b0c
VS
4278 LINE=`grep "wxUSE_FILESYSTEM" ${wx_arg_cache_file}`
4279 if test "x$LINE" != x ; then
4280 eval "DEFAULT_$LINE"
4281 else
4282 no_cache=1
4283 fi
4284
4285 ac_cv_use_filesystem='wxUSE_FILESYSTEM='$DEFAULT_wxUSE_FILESYSTEM
698dcdb6
VZ
4286
4287fi
24528b0c
VS
4288
4289
4290 eval "$ac_cv_use_filesystem"
4291 if test "$no_cache" != 1; then
4292 echo $ac_cv_use_filesystem >> ${wx_arg_cache_file}.tmp
4293 fi
4294
4295 if test "$wxUSE_FILESYSTEM" = yes; then
698dcdb6 4296 echo "$ac_t""yes" 1>&6
24528b0c 4297 else
698dcdb6 4298 echo "$ac_t""no" 1>&6
24528b0c 4299 fi
698dcdb6 4300
24528b0c 4301
698dcdb6 4302 echo $ac_n "checking for --enable-fs_inet""... $ac_c" 1>&6
19bc6aad 4303echo "configure:4304: checking for --enable-fs_inet" >&5
10f2d63a
VZ
4304 no_cache=0
4305 # Check whether --enable-fs_inet or --disable-fs_inet was given.
4306if test "${enable_fs_inet+set}" = set; then
4307 enableval="$enable_fs_inet"
698dcdb6 4308
10f2d63a
VZ
4309 if test "$enableval" = yes; then
4310 ac_cv_use_fs_inet='wxUSE_FS_INET=yes'
4311 else
4312 ac_cv_use_fs_inet='wxUSE_FS_INET=no'
4313 fi
698dcdb6 4314
10f2d63a 4315else
698dcdb6 4316
10f2d63a
VZ
4317 LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}`
4318 if test "x$LINE" != x ; then
4319 eval "DEFAULT_$LINE"
4320 else
4321 no_cache=1
4322 fi
4323
4324 ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET
698dcdb6
VZ
4325
4326fi
10f2d63a
VZ
4327
4328
4329 eval "$ac_cv_use_fs_inet"
4330 if test "$no_cache" != 1; then
4331 echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp
4332 fi
4333
4334 if test "$wxUSE_FS_INET" = yes; then
698dcdb6 4335 echo "$ac_t""yes" 1>&6
10f2d63a 4336 else
698dcdb6 4337 echo "$ac_t""no" 1>&6
10f2d63a 4338 fi
698dcdb6 4339
10f2d63a 4340
698dcdb6 4341 echo $ac_n "checking for --enable-fs_zip""... $ac_c" 1>&6
19bc6aad 4342echo "configure:4343: checking for --enable-fs_zip" >&5
10f2d63a
VZ
4343 no_cache=0
4344 # Check whether --enable-fs_zip or --disable-fs_zip was given.
4345if test "${enable_fs_zip+set}" = set; then
4346 enableval="$enable_fs_zip"
698dcdb6 4347
10f2d63a
VZ
4348 if test "$enableval" = yes; then
4349 ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes'
4350 else
4351 ac_cv_use_fs_zip='wxUSE_FS_ZIP=no'
4352 fi
698dcdb6 4353
10f2d63a 4354else
698dcdb6 4355
10f2d63a
VZ
4356 LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}`
4357 if test "x$LINE" != x ; then
4358 eval "DEFAULT_$LINE"
4359 else
4360 no_cache=1
4361 fi
4362
4363 ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP
698dcdb6
VZ
4364
4365fi
10f2d63a
VZ
4366
4367
4368 eval "$ac_cv_use_fs_zip"
4369 if test "$no_cache" != 1; then
4370 echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp
4371 fi
4372
4373 if test "$wxUSE_FS_ZIP" = yes; then
698dcdb6 4374 echo "$ac_t""yes" 1>&6
10f2d63a 4375 else
698dcdb6 4376 echo "$ac_t""no" 1>&6
10f2d63a 4377 fi
698dcdb6 4378
10f2d63a 4379
698dcdb6 4380 echo $ac_n "checking for --enable-zipstream""... $ac_c" 1>&6
19bc6aad 4381echo "configure:4382: checking for --enable-zipstream" >&5
10f2d63a
VZ
4382 no_cache=0
4383 # Check whether --enable-zipstream or --disable-zipstream was given.
4384if test "${enable_zipstream+set}" = set; then
4385 enableval="$enable_zipstream"
698dcdb6 4386
10f2d63a
VZ
4387 if test "$enableval" = yes; then
4388 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes'
4389 else
4390 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no'
4391 fi
698dcdb6 4392
10f2d63a 4393else
698dcdb6 4394
10f2d63a
VZ
4395 LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}`
4396 if test "x$LINE" != x ; then
4397 eval "DEFAULT_$LINE"
4398 else
4399 no_cache=1
4400 fi
4401
4402 ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM
698dcdb6
VZ
4403
4404fi
10f2d63a
VZ
4405
4406
4407 eval "$ac_cv_use_zipstream"
4408 if test "$no_cache" != 1; then
4409 echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp
4410 fi
4411
4412 if test "$wxUSE_ZIPSTREAM" = yes; then
698dcdb6 4413 echo "$ac_t""yes" 1>&6
10f2d63a 4414 else
698dcdb6 4415 echo "$ac_t""no" 1>&6
10f2d63a 4416 fi
698dcdb6 4417
10f2d63a 4418
698dcdb6
VZ
4419
4420 echo $ac_n "checking for --enable-catch_segvs""... $ac_c" 1>&6
19bc6aad 4421echo "configure:4422: checking for --enable-catch_segvs" >&5
eb4efbdc
VZ
4422 no_cache=0
4423 # Check whether --enable-catch_segvs or --disable-catch_segvs was given.
4424if test "${enable_catch_segvs+set}" = set; then
4425 enableval="$enable_catch_segvs"
698dcdb6 4426
eb4efbdc
VZ
4427 if test "$enableval" = yes; then
4428 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes'
4429 else
4430 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no'
4431 fi
698dcdb6 4432
eb4efbdc 4433else
698dcdb6 4434
eb4efbdc
VZ
4435 LINE=`grep "wxUSE_ON_FATAL_EXCEPTION" ${wx_arg_cache_file}`
4436 if test "x$LINE" != x ; then
4437 eval "DEFAULT_$LINE"
4438 else
4439 no_cache=1
4440 fi
4441
4442 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION='$DEFAULT_wxUSE_ON_FATAL_EXCEPTION
698dcdb6
VZ
4443
4444fi
eb4efbdc
VZ
4445
4446
4447 eval "$ac_cv_use_catch_segvs"
4448 if test "$no_cache" != 1; then
4449 echo $ac_cv_use_catch_segvs >> ${wx_arg_cache_file}.tmp
4450 fi
4451
4452 if test "$wxUSE_ON_FATAL_EXCEPTION" = yes; then
698dcdb6 4453 echo "$ac_t""yes" 1>&6
eb4efbdc 4454 else
698dcdb6 4455 echo "$ac_t""no" 1>&6
eb4efbdc 4456 fi
698dcdb6 4457
eb4efbdc 4458
698dcdb6 4459 echo $ac_n "checking for --enable-snglinst""... $ac_c" 1>&6
19bc6aad 4460echo "configure:4461: checking for --enable-snglinst" >&5
4f3c5f06
VZ
4461 no_cache=0
4462 # Check whether --enable-snglinst or --disable-snglinst was given.
4463if test "${enable_snglinst+set}" = set; then
4464 enableval="$enable_snglinst"
698dcdb6 4465
4f3c5f06
VZ
4466 if test "$enableval" = yes; then
4467 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=yes'
4468 else
4469 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=no'
4470 fi
698dcdb6 4471
4f3c5f06 4472else
698dcdb6 4473
4f3c5f06
VZ
4474 LINE=`grep "wxUSE_SNGLINST_CHECKER" ${wx_arg_cache_file}`
4475 if test "x$LINE" != x ; then
4476 eval "DEFAULT_$LINE"
4477 else
4478 no_cache=1
4479 fi
4480
4481 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER='$DEFAULT_wxUSE_SNGLINST_CHECKER
698dcdb6
VZ
4482
4483fi
4f3c5f06
VZ
4484
4485
4486 eval "$ac_cv_use_snglinst"
4487 if test "$no_cache" != 1; then
4488 echo $ac_cv_use_snglinst >> ${wx_arg_cache_file}.tmp
4489 fi
4490
4491 if test "$wxUSE_SNGLINST_CHECKER" = yes; then
698dcdb6 4492 echo "$ac_t""yes" 1>&6
4f3c5f06 4493 else
698dcdb6 4494 echo "$ac_t""no" 1>&6
4f3c5f06 4495 fi
698dcdb6
VZ
4496
4497
eb4efbdc 4498
1e6feb95 4499 echo $ac_n "checking for --enable-mimetype""... $ac_c" 1>&6
19bc6aad 4500echo "configure:4501: checking for --enable-mimetype" >&5
1e6feb95
VZ
4501 no_cache=0
4502 # Check whether --enable-mimetype or --disable-mimetype was given.
4503if test "${enable_mimetype+set}" = set; then
4504 enableval="$enable_mimetype"
4505
4506 if test "$enableval" = yes; then
4507 ac_cv_use_mimetype='wxUSE_MIMETYPE=yes'
4508 else
4509 ac_cv_use_mimetype='wxUSE_MIMETYPE=no'
4510 fi
4511
4512else
4513
4514 LINE=`grep "wxUSE_MIMETYPE" ${wx_arg_cache_file}`
4515 if test "x$LINE" != x ; then
4516 eval "DEFAULT_$LINE"
4517 else
4518 no_cache=1
4519 fi
4520
4521 ac_cv_use_mimetype='wxUSE_MIMETYPE='$DEFAULT_wxUSE_MIMETYPE
4522
4523fi
4524
4525
4526 eval "$ac_cv_use_mimetype"
4527 if test "$no_cache" != 1; then
4528 echo $ac_cv_use_mimetype >> ${wx_arg_cache_file}.tmp
4529 fi
4530
4531 if test "$wxUSE_MIMETYPE" = yes; then
4532 echo "$ac_t""yes" 1>&6
4533 else
4534 echo "$ac_t""no" 1>&6
4535 fi
4536
4537
3e44f09d 4538 echo $ac_n "checking for --enable-system_options""... $ac_c" 1>&6
19bc6aad 4539echo "configure:4540: checking for --enable-system_options" >&5
3e44f09d
VZ
4540 no_cache=0
4541 # Check whether --enable-system_options or --disable-system_options was given.
4542if test "${enable_system_options+set}" = set; then
4543 enableval="$enable_system_options"
4544
4545 if test "$enableval" = yes; then
4546 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=yes'
4547 else
4548 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=no'
4549 fi
4550
4551else
4552
4553 LINE=`grep "wxUSE_SYSTEM_OPTIONS" ${wx_arg_cache_file}`
4554 if test "x$LINE" != x ; then
4555 eval "DEFAULT_$LINE"
4556 else
4557 no_cache=1
4558 fi
4559
4560 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS='$DEFAULT_wxUSE_SYSTEM_OPTIONS
4561
4562fi
4563
4564
4565 eval "$ac_cv_use_system_options"
4566 if test "$no_cache" != 1; then
4567 echo $ac_cv_use_system_options >> ${wx_arg_cache_file}.tmp
4568 fi
4569
4570 if test "$wxUSE_SYSTEM_OPTIONS" = yes; then
4571 echo "$ac_t""yes" 1>&6
4572 else
4573 echo "$ac_t""no" 1>&6
4574 fi
4575
4576
1e6feb95 4577
4cdb0ab0 4578 echo $ac_n "checking for --enable-url""... $ac_c" 1>&6
19bc6aad 4579echo "configure:4580: checking for --enable-url" >&5
4cdb0ab0
VS
4580 no_cache=0
4581 # Check whether --enable-url or --disable-url was given.
4582if test "${enable_url+set}" = set; then
4583 enableval="$enable_url"
4584
4585 if test "$enableval" = yes; then
4586 ac_cv_use_url='wxUSE_URL=yes'
4587 else
4588 ac_cv_use_url='wxUSE_URL=no'
4589 fi
4590
4591else
4592
4593 LINE=`grep "wxUSE_URL" ${wx_arg_cache_file}`
4594 if test "x$LINE" != x ; then
4595 eval "DEFAULT_$LINE"
4596 else
4597 no_cache=1
4598 fi
4599
4600 ac_cv_use_url='wxUSE_URL='$DEFAULT_wxUSE_URL
4601
4602fi
4603
4604
4605 eval "$ac_cv_use_url"
4606 if test "$no_cache" != 1; then
4607 echo $ac_cv_use_url >> ${wx_arg_cache_file}.tmp
4608 fi
4609
4610 if test "$wxUSE_URL" = yes; then
4611 echo "$ac_t""yes" 1>&6
4612 else
4613 echo "$ac_t""no" 1>&6
4614 fi
4615
4616
4617 echo $ac_n "checking for --enable-protocol""... $ac_c" 1>&6
19bc6aad 4618echo "configure:4619: checking for --enable-protocol" >&5
4cdb0ab0
VS
4619 no_cache=0
4620 # Check whether --enable-protocol or --disable-protocol was given.
4621if test "${enable_protocol+set}" = set; then
4622 enableval="$enable_protocol"
4623
4624 if test "$enableval" = yes; then
4625 ac_cv_use_protocol='wxUSE_PROTOCOL=yes'
4626 else
4627 ac_cv_use_protocol='wxUSE_PROTOCOL=no'
4628 fi
4629
4630else
4631
4632 LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
4633 if test "x$LINE" != x ; then
4634 eval "DEFAULT_$LINE"
4635 else
4636 no_cache=1
4637 fi
4638
4639 ac_cv_use_protocol='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
4640
4641fi
4642
4643
4644 eval "$ac_cv_use_protocol"
4645 if test "$no_cache" != 1; then
4646 echo $ac_cv_use_protocol >> ${wx_arg_cache_file}.tmp
4647 fi
4648
4649 if test "$wxUSE_PROTOCOL" = yes; then
4650 echo "$ac_t""yes" 1>&6
4651 else
4652 echo "$ac_t""no" 1>&6
4653 fi
4654
4655
4656 echo $ac_n "checking for --enable-protocol_http""... $ac_c" 1>&6
19bc6aad 4657echo "configure:4658: checking for --enable-protocol_http" >&5
4cdb0ab0
VS
4658 no_cache=0
4659 # Check whether --enable-protocol_http or --disable-protocol_http was given.
4660if test "${enable_protocol_http+set}" = set; then
4661 enableval="$enable_protocol_http"
4662
4663 if test "$enableval" = yes; then
4664 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=yes'
4665 else
4666 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=no'
4667 fi
4668
4669else
4670
4671 LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
4672 if test "x$LINE" != x ; then
4673 eval "DEFAULT_$LINE"
4674 else
4675 no_cache=1
4676 fi
4677
4678 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
4679
4680fi
4681
4682
4683 eval "$ac_cv_use_protocol_http"
4684 if test "$no_cache" != 1; then
4685 echo $ac_cv_use_protocol_http >> ${wx_arg_cache_file}.tmp
4686 fi
4687
4688 if test "$wxUSE_PROTOCOL_HTTP" = yes; then
4689 echo "$ac_t""yes" 1>&6
4690 else
4691 echo "$ac_t""no" 1>&6
4692 fi
4693
4694
4695 echo $ac_n "checking for --enable-protocol_ftp""... $ac_c" 1>&6
19bc6aad 4696echo "configure:4697: checking for --enable-protocol_ftp" >&5
4cdb0ab0
VS
4697 no_cache=0
4698 # Check whether --enable-protocol_ftp or --disable-protocol_ftp was given.
4699if test "${enable_protocol_ftp+set}" = set; then
4700 enableval="$enable_protocol_ftp"
4701
4702 if test "$enableval" = yes; then
4703 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=yes'
4704 else
4705 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=no'
4706 fi
4707
4708else
4709
4710 LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
4711 if test "x$LINE" != x ; then
4712 eval "DEFAULT_$LINE"
4713 else
4714 no_cache=1
4715 fi
4716
4717 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
4718
4719fi
4720
4721
4722 eval "$ac_cv_use_protocol_ftp"
4723 if test "$no_cache" != 1; then
4724 echo $ac_cv_use_protocol_ftp >> ${wx_arg_cache_file}.tmp
4725 fi
4726
4727 if test "$wxUSE_PROTOCOL_FTP" = yes; then
4728 echo "$ac_t""yes" 1>&6
4729 else
4730 echo "$ac_t""no" 1>&6
4731 fi
4732
4733
4734 echo $ac_n "checking for --enable-protocol_file""... $ac_c" 1>&6
19bc6aad 4735echo "configure:4736: checking for --enable-protocol_file" >&5
4cdb0ab0
VS
4736 no_cache=0
4737 # Check whether --enable-protocol_file or --disable-protocol_file was given.
4738if test "${enable_protocol_file+set}" = set; then
4739 enableval="$enable_protocol_file"
4740
4741 if test "$enableval" = yes; then
4742 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=yes'
4743 else
4744 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=no'
4745 fi
4746
4747else
4748
4749 LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
4750 if test "x$LINE" != x ; then
4751 eval "DEFAULT_$LINE"
4752 else
4753 no_cache=1
4754 fi
4755
4756 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
4757
4758fi
4759
4760
4761 eval "$ac_cv_use_protocol_file"
4762 if test "$no_cache" != 1; then
4763 echo $ac_cv_use_protocol_file >> ${wx_arg_cache_file}.tmp
4764 fi
4765
4766 if test "$wxUSE_PROTOCOL_FILE" = yes; then
4767 echo "$ac_t""yes" 1>&6
4768 else
4769 echo "$ac_t""no" 1>&6
4770 fi
4771
4772
4773
4774
698dcdb6
VZ
4775
4776 echo $ac_n "checking for --enable-threads""... $ac_c" 1>&6
19bc6aad 4777echo "configure:4778: checking for --enable-threads" >&5
10f2d63a
VZ
4778 no_cache=0
4779 # Check whether --enable-threads or --disable-threads was given.
4780if test "${enable_threads+set}" = set; then
4781 enableval="$enable_threads"
698dcdb6 4782
10f2d63a
VZ
4783 if test "$enableval" = yes; then
4784 ac_cv_use_threads='wxUSE_THREADS=yes'
4785 else
4786 ac_cv_use_threads='wxUSE_THREADS=no'
4787 fi
698dcdb6 4788
10f2d63a 4789else
698dcdb6 4790
10f2d63a
VZ
4791 LINE=`grep "wxUSE_THREADS" ${wx_arg_cache_file}`
4792 if test "x$LINE" != x ; then
4793 eval "DEFAULT_$LINE"
4794 else
4795 no_cache=1
4796 fi
4797
4798 ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS
698dcdb6
VZ
4799
4800fi
10f2d63a
VZ
4801
4802
4803 eval "$ac_cv_use_threads"
4804 if test "$no_cache" != 1; then
4805 echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp
4806 fi
4807
4808 if test "$wxUSE_THREADS" = yes; then
698dcdb6 4809 echo "$ac_t""yes" 1>&6
10f2d63a 4810 else
698dcdb6 4811 echo "$ac_t""no" 1>&6
10f2d63a 4812 fi
698dcdb6 4813
10f2d63a 4814
b12915c1
VZ
4815if test "$wxUSE_GUI" = "yes"; then
4816
698dcdb6
VZ
4817
4818
4819 echo $ac_n "checking for --enable-docview""... $ac_c" 1>&6
19bc6aad 4820echo "configure:4821: checking for --enable-docview" >&5
10f2d63a
VZ
4821 no_cache=0
4822 # Check whether --enable-docview or --disable-docview was given.
4823if test "${enable_docview+set}" = set; then
4824 enableval="$enable_docview"
698dcdb6 4825
10f2d63a
VZ
4826 if test "$enableval" = yes; then
4827 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes'
4828 else
4829 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no'
4830 fi
698dcdb6 4831
10f2d63a 4832else
698dcdb6 4833
10f2d63a
VZ
4834 LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}`
4835 if test "x$LINE" != x ; then
4836 eval "DEFAULT_$LINE"
4837 else
4838 no_cache=1
4839 fi
4840
4841 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE
698dcdb6
VZ
4842
4843fi
10f2d63a
VZ
4844
4845
4846 eval "$ac_cv_use_docview"
4847 if test "$no_cache" != 1; then
4848 echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp
4849 fi
4850
4851 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then
698dcdb6 4852 echo "$ac_t""yes" 1>&6
10f2d63a 4853 else
698dcdb6 4854 echo "$ac_t""no" 1>&6
10f2d63a 4855 fi
698dcdb6 4856
10f2d63a 4857
698dcdb6 4858 echo $ac_n "checking for --enable-help""... $ac_c" 1>&6
19bc6aad 4859echo "configure:4860: checking for --enable-help" >&5
10f2d63a
VZ
4860 no_cache=0
4861 # Check whether --enable-help or --disable-help was given.
4862if test "${enable_help+set}" = set; then
4863 enableval="$enable_help"
698dcdb6 4864
10f2d63a
VZ
4865 if test "$enableval" = yes; then
4866 ac_cv_use_help='wxUSE_HELP=yes'
4867 else
4868 ac_cv_use_help='wxUSE_HELP=no'
4869 fi
698dcdb6 4870
10f2d63a 4871else
698dcdb6 4872
10f2d63a
VZ
4873 LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}`
4874 if test "x$LINE" != x ; then
4875 eval "DEFAULT_$LINE"
4876 else
4877 no_cache=1
4878 fi
4879
4880 ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP
698dcdb6
VZ
4881
4882fi
10f2d63a
VZ
4883
4884
4885 eval "$ac_cv_use_help"
4886 if test "$no_cache" != 1; then
4887 echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp
4888 fi
4889
4890 if test "$wxUSE_HELP" = yes; then
698dcdb6 4891 echo "$ac_t""yes" 1>&6
10f2d63a 4892 else
698dcdb6 4893 echo "$ac_t""no" 1>&6
10f2d63a 4894 fi
698dcdb6 4895
10f2d63a 4896
29fd3c0c 4897 echo $ac_n "checking for --enable-mshtmlhelp""... $ac_c" 1>&6
19bc6aad 4898echo "configure:4899: checking for --enable-mshtmlhelp" >&5
29fd3c0c
VS
4899 no_cache=0
4900 # Check whether --enable-mshtmlhelp or --disable-mshtmlhelp was given.
4901if test "${enable_mshtmlhelp+set}" = set; then
4902 enableval="$enable_mshtmlhelp"
4903
4904 if test "$enableval" = yes; then
4905 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=yes'
4906 else
4907 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=no'
4908 fi
4909
4910else
4911
4912 LINE=`grep "wxUSE_MS_HTML_HELP" ${wx_arg_cache_file}`
4913 if test "x$LINE" != x ; then
4914 eval "DEFAULT_$LINE"
4915 else
4916 no_cache=1
4917 fi
4918
4919 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP='$DEFAULT_wxUSE_MS_HTML_HELP
4920
4921fi
4922
4923
4924 eval "$ac_cv_use_mshtmlhelp"
4925 if test "$no_cache" != 1; then
4926 echo $ac_cv_use_mshtmlhelp >> ${wx_arg_cache_file}.tmp
4927 fi
4928
4929 if test "$wxUSE_MS_HTML_HELP" = yes; then
4930 echo "$ac_t""yes" 1>&6
4931 else
4932 echo "$ac_t""no" 1>&6
4933 fi
4934
4935
3379ed37 4936 echo $ac_n "checking for --enable-html""... $ac_c" 1>&6
19bc6aad 4937echo "configure:4938: checking for --enable-html" >&5
3379ed37
VZ
4938 no_cache=0
4939 # Check whether --enable-html or --disable-html was given.
4940if test "${enable_html+set}" = set; then
4941 enableval="$enable_html"
4942
4943 if test "$enableval" = yes; then
4944 ac_cv_use_html='wxUSE_HTML=yes'
4945 else
4946 ac_cv_use_html='wxUSE_HTML=no'
4947 fi
4948
4949else
4950
4951 LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}`
4952 if test "x$LINE" != x ; then
4953 eval "DEFAULT_$LINE"
4954 else
4955 no_cache=1
4956 fi
4957
4958 ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML
4959
4960fi
4961
4962
4963 eval "$ac_cv_use_html"
4964 if test "$no_cache" != 1; then
4965 echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp
4966 fi
4967
4968 if test "$wxUSE_HTML" = yes; then
4969 echo "$ac_t""yes" 1>&6
4970 else
4971 echo "$ac_t""no" 1>&6
4972 fi
4973
4974
4975 echo $ac_n "checking for --enable-htmlhelp""... $ac_c" 1>&6
19bc6aad 4976echo "configure:4977: checking for --enable-htmlhelp" >&5
3379ed37
VZ
4977 no_cache=0
4978 # Check whether --enable-htmlhelp or --disable-htmlhelp was given.
4979if test "${enable_htmlhelp+set}" = set; then
4980 enableval="$enable_htmlhelp"
4981
4982 if test "$enableval" = yes; then
4983 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=yes'
4984 else
4985 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=no'
4986 fi
4987
4988else
4989
4990 LINE=`grep "wxUSE_WXHTML_HELP" ${wx_arg_cache_file}`
4991 if test "x$LINE" != x ; then
4992 eval "DEFAULT_$LINE"
4993 else
4994 no_cache=1
4995 fi
4996
4997 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP='$DEFAULT_wxUSE_WXHTML_HELP
4998
4999fi
5000
5001
5002 eval "$ac_cv_use_htmlhelp"
5003 if test "$no_cache" != 1; then
5004 echo $ac_cv_use_htmlhelp >> ${wx_arg_cache_file}.tmp
5005 fi
5006
5007 if test "$wxUSE_WXHTML_HELP" = yes; then
5008 echo "$ac_t""yes" 1>&6
5009 else
5010 echo "$ac_t""no" 1>&6
5011 fi
5012
5013
698dcdb6 5014 echo $ac_n "checking for --enable-constraints""... $ac_c" 1>&6
19bc6aad 5015echo "configure:5016: checking for --enable-constraints" >&5
10f2d63a
VZ
5016 no_cache=0
5017 # Check whether --enable-constraints or --disable-constraints was given.
5018if test "${enable_constraints+set}" = set; then
5019 enableval="$enable_constraints"
698dcdb6 5020
10f2d63a
VZ
5021 if test "$enableval" = yes; then
5022 ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes'
5023 else
5024 ac_cv_use_constraints='wxUSE_CONSTRAINTS=no'
5025 fi
698dcdb6 5026
10f2d63a 5027else
698dcdb6 5028
10f2d63a
VZ
5029 LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}`
5030 if test "x$LINE" != x ; then
5031 eval "DEFAULT_$LINE"
5032 else
5033 no_cache=1
5034 fi
5035
5036 ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS
698dcdb6
VZ
5037
5038fi
10f2d63a
VZ
5039
5040
5041 eval "$ac_cv_use_constraints"
5042 if test "$no_cache" != 1; then
5043 echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp
5044 fi
5045
5046 if test "$wxUSE_CONSTRAINTS" = yes; then
698dcdb6 5047 echo "$ac_t""yes" 1>&6
10f2d63a 5048 else
698dcdb6 5049 echo "$ac_t""no" 1>&6
10f2d63a 5050 fi
698dcdb6 5051
10f2d63a 5052
698dcdb6 5053 echo $ac_n "checking for --enable-printarch""... $ac_c" 1>&6
19bc6aad 5054echo "configure:5055: checking for --enable-printarch" >&5
10f2d63a
VZ
5055 no_cache=0
5056 # Check whether --enable-printarch or --disable-printarch was given.
5057if test "${enable_printarch+set}" = set; then
5058 enableval="$enable_printarch"
698dcdb6 5059
10f2d63a
VZ
5060 if test "$enableval" = yes; then
5061 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes'
5062 else
5063 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no'
5064 fi
698dcdb6 5065
10f2d63a 5066else
698dcdb6 5067
10f2d63a
VZ
5068 LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}`
5069 if test "x$LINE" != x ; then
5070 eval "DEFAULT_$LINE"
5071 else
5072 no_cache=1
5073 fi
5074
5075 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE
698dcdb6
VZ
5076
5077fi
10f2d63a
VZ
5078
5079
5080 eval "$ac_cv_use_printarch"
5081 if test "$no_cache" != 1; then
5082 echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp
5083 fi
5084
5085 if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then
698dcdb6 5086 echo "$ac_t""yes" 1>&6
10f2d63a 5087 else
698dcdb6 5088 echo "$ac_t""no" 1>&6
10f2d63a 5089 fi
698dcdb6 5090
10f2d63a 5091
698dcdb6 5092 echo $ac_n "checking for --enable-mdi""... $ac_c" 1>&6
19bc6aad 5093echo "configure:5094: checking for --enable-mdi" >&5
10f2d63a
VZ
5094 no_cache=0
5095 # Check whether --enable-mdi or --disable-mdi was given.
5096if test "${enable_mdi+set}" = set; then
5097 enableval="$enable_mdi"
698dcdb6 5098
10f2d63a
VZ
5099 if test "$enableval" = yes; then
5100 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=yes'
5101 else
5102 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=no'
5103 fi
698dcdb6 5104
10f2d63a 5105else
698dcdb6 5106
10f2d63a
VZ
5107 LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}`
5108 if test "x$LINE" != x ; then
5109 eval "DEFAULT_$LINE"
5110 else
5111 no_cache=1
5112 fi
5113
5114 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE
698dcdb6
VZ
5115
5116fi
10f2d63a
VZ
5117
5118
5119 eval "$ac_cv_use_mdi"
5120 if test "$no_cache" != 1; then
5121 echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp
5122 fi
5123
5124 if test "$wxUSE_MDI_ARCHITECTURE" = yes; then
698dcdb6 5125 echo "$ac_t""yes" 1>&6
10f2d63a 5126 else
698dcdb6 5127 echo "$ac_t""no" 1>&6
10f2d63a 5128 fi
698dcdb6
VZ
5129
5130
1e6feb95 5131 echo $ac_n "checking for --enable-loggui""... $ac_c" 1>&6
19bc6aad 5132echo "configure:5133: checking for --enable-loggui" >&5
1e6feb95
VZ
5133 no_cache=0
5134 # Check whether --enable-loggui or --disable-loggui was given.
5135if test "${enable_loggui+set}" = set; then
5136 enableval="$enable_loggui"
5137
5138 if test "$enableval" = yes; then
5139 ac_cv_use_loggui='wxUSE_LOGGUI=yes'
5140 else
5141 ac_cv_use_loggui='wxUSE_LOGGUI=no'
5142 fi
5143
5144else
5145
5146 LINE=`grep "wxUSE_LOGGUI" ${wx_arg_cache_file}`
5147 if test "x$LINE" != x ; then
5148 eval "DEFAULT_$LINE"
5149 else
5150 no_cache=1
5151 fi
5152
5153 ac_cv_use_loggui='wxUSE_LOGGUI='$DEFAULT_wxUSE_LOGGUI
5154
5155fi
5156
5157
5158 eval "$ac_cv_use_loggui"
5159 if test "$no_cache" != 1; then
5160 echo $ac_cv_use_loggui >> ${wx_arg_cache_file}.tmp
5161 fi
5162
5163 if test "$wxUSE_LOGGUI" = yes; then
5164 echo "$ac_t""yes" 1>&6
5165 else
5166 echo "$ac_t""no" 1>&6
5167 fi
5168
5169
5170 echo $ac_n "checking for --enable-logwin""... $ac_c" 1>&6
19bc6aad 5171echo "configure:5172: checking for --enable-logwin" >&5
1e6feb95
VZ
5172 no_cache=0
5173 # Check whether --enable-logwin or --disable-logwin was given.
5174if test "${enable_logwin+set}" = set; then
5175 enableval="$enable_logwin"
5176
5177 if test "$enableval" = yes; then
5178 ac_cv_use_logwin='wxUSE_LOGWINDOW=yes'
5179 else
5180 ac_cv_use_logwin='wxUSE_LOGWINDOW=no'
5181 fi
5182
5183else
5184
5185 LINE=`grep "wxUSE_LOGWINDOW" ${wx_arg_cache_file}`
5186 if test "x$LINE" != x ; then
5187 eval "DEFAULT_$LINE"
5188 else
5189 no_cache=1
5190 fi
5191
5192 ac_cv_use_logwin='wxUSE_LOGWINDOW='$DEFAULT_wxUSE_LOGWINDOW
5193
5194fi
5195
5196
5197 eval "$ac_cv_use_logwin"
5198 if test "$no_cache" != 1; then
5199 echo $ac_cv_use_logwin >> ${wx_arg_cache_file}.tmp
5200 fi
5201
5202 if test "$wxUSE_LOGWINDOW" = yes; then
5203 echo "$ac_t""yes" 1>&6
5204 else
5205 echo "$ac_t""no" 1>&6
5206 fi
5207
5208
69d27ff7 5209 echo $ac_n "checking for --enable-logdialog""... $ac_c" 1>&6
19bc6aad 5210echo "configure:5211: checking for --enable-logdialog" >&5
69d27ff7
MB
5211 no_cache=0
5212 # Check whether --enable-logdialog or --disable-logdialog was given.
5213if test "${enable_logdialog+set}" = set; then
5214 enableval="$enable_logdialog"
5215
5216 if test "$enableval" = yes; then
5217 ac_cv_use_logdialog='wxUSE_LOGDIALOG=yes'
5218 else
5219 ac_cv_use_logdialog='wxUSE_LOGDIALOG=no'
5220 fi
5221
5222else
5223
5224 LINE=`grep "wxUSE_LOGDIALOG" ${wx_arg_cache_file}`
5225 if test "x$LINE" != x ; then
5226 eval "DEFAULT_$LINE"
5227 else
5228 no_cache=1
5229 fi
5230
5231 ac_cv_use_logdialog='wxUSE_LOGDIALOG='$DEFAULT_wxUSE_LOGDIALOG
5232
5233fi
5234
5235
5236 eval "$ac_cv_use_logdialog"
5237 if test "$no_cache" != 1; then
5238 echo $ac_cv_use_logdialog >> ${wx_arg_cache_file}.tmp
5239 fi
5240
5241 if test "$wxUSE_LOGDIALOG" = yes; then
5242 echo "$ac_t""yes" 1>&6
5243 else
5244 echo "$ac_t""no" 1>&6
5245 fi
5246
5247
10f2d63a 5248
698dcdb6 5249 echo $ac_n "checking for --enable-postscript""... $ac_c" 1>&6
19bc6aad 5250echo "configure:5251: checking for --enable-postscript" >&5
10f2d63a
VZ
5251 no_cache=0
5252 # Check whether --enable-postscript or --disable-postscript was given.
5253if test "${enable_postscript+set}" = set; then
5254 enableval="$enable_postscript"
698dcdb6 5255
10f2d63a
VZ
5256 if test "$enableval" = yes; then
5257 ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes'
5258 else
5259 ac_cv_use_postscript='wxUSE_POSTSCRIPT=no'
5260 fi
698dcdb6 5261
10f2d63a 5262else
698dcdb6 5263
10f2d63a
VZ
5264 LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}`
5265 if test "x$LINE" != x ; then
5266 eval "DEFAULT_$LINE"
5267 else
5268 no_cache=1
5269 fi
5270
5271 ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT
698dcdb6
VZ
5272
5273fi
10f2d63a
VZ
5274
5275
5276 eval "$ac_cv_use_postscript"
5277 if test "$no_cache" != 1; then
5278 echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp
5279 fi
5280
5281 if test "$wxUSE_POSTSCRIPT" = yes; then
698dcdb6 5282 echo "$ac_t""yes" 1>&6
10f2d63a 5283 else
698dcdb6 5284 echo "$ac_t""no" 1>&6
10f2d63a 5285 fi
698dcdb6
VZ
5286
5287
5288
10f2d63a 5289
1e6feb95 5290
698dcdb6 5291 echo $ac_n "checking for --enable-prologio""... $ac_c" 1>&6
19bc6aad 5292echo "configure:5293: checking for --enable-prologio" >&5
10f2d63a
VZ
5293 no_cache=0
5294 # Check whether --enable-prologio or --disable-prologio was given.
5295if test "${enable_prologio+set}" = set; then
5296 enableval="$enable_prologio"
698dcdb6 5297
10f2d63a
VZ
5298 if test "$enableval" = yes; then
5299 ac_cv_use_prologio='wxUSE_PROLOGIO=yes'
5300 else
5301 ac_cv_use_prologio='wxUSE_PROLOGIO=no'
5302 fi
698dcdb6 5303
10f2d63a 5304else
698dcdb6 5305
10f2d63a
VZ
5306 LINE=`grep "wxUSE_PROLOGIO" ${wx_arg_cache_file}`
5307 if test "x$LINE" != x ; then
5308 eval "DEFAULT_$LINE"
5309 else
5310 no_cache=1
5311 fi
5312
5313 ac_cv_use_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO
698dcdb6
VZ
5314
5315fi
10f2d63a
VZ
5316
5317
5318 eval "$ac_cv_use_prologio"
5319 if test "$no_cache" != 1; then
5320 echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp
5321 fi
5322
5323 if test "$wxUSE_PROLOGIO" = yes; then
698dcdb6 5324 echo "$ac_t""yes" 1>&6
10f2d63a 5325 else
698dcdb6 5326 echo "$ac_t""no" 1>&6
10f2d63a 5327 fi
698dcdb6 5328
10f2d63a 5329
698dcdb6 5330 echo $ac_n "checking for --enable-resources""... $ac_c" 1>&6
19bc6aad 5331echo "configure:5332: checking for --enable-resources" >&5
10f2d63a
VZ
5332 no_cache=0
5333 # Check whether --enable-resources or --disable-resources was given.
5334if test "${enable_resources+set}" = set; then
5335 enableval="$enable_resources"
698dcdb6 5336
10f2d63a
VZ
5337 if test "$enableval" = yes; then
5338 ac_cv_use_resources='wxUSE_RESOURCES=yes'
5339 else
5340 ac_cv_use_resources='wxUSE_RESOURCES=no'
5341 fi
698dcdb6 5342
10f2d63a 5343else
698dcdb6 5344
10f2d63a
VZ
5345 LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}`
5346 if test "x$LINE" != x ; then
5347 eval "DEFAULT_$LINE"
5348 else
5349 no_cache=1
5350 fi
5351
5352 ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES
698dcdb6
VZ
5353
5354fi
10f2d63a
VZ
5355
5356
5357 eval "$ac_cv_use_resources"
5358 if test "$no_cache" != 1; then
5359 echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp
5360 fi
5361
5362 if test "$wxUSE_RESOURCES" = yes; then
698dcdb6 5363 echo "$ac_t""yes" 1>&6
10f2d63a 5364 else
698dcdb6 5365 echo "$ac_t""no" 1>&6
10f2d63a 5366 fi
698dcdb6 5367
10f2d63a 5368
698dcdb6
VZ
5369
5370 echo $ac_n "checking for --enable-xresources""... $ac_c" 1>&6
19bc6aad 5371echo "configure:5372: checking for --enable-xresources" >&5
10f2d63a
VZ
5372 no_cache=0
5373 # Check whether --enable-xresources or --disable-xresources was given.
5374if test "${enable_xresources+set}" = set; then
5375 enableval="$enable_xresources"
698dcdb6 5376
10f2d63a
VZ
5377 if test "$enableval" = yes; then
5378 ac_cv_use_xresources='wxUSE_X_RESOURCES=yes'
5379 else
5380 ac_cv_use_xresources='wxUSE_X_RESOURCES=no'
5381 fi
698dcdb6 5382
10f2d63a 5383else
698dcdb6 5384
10f2d63a
VZ
5385 LINE=`grep "wxUSE_X_RESOURCES" ${wx_arg_cache_file}`
5386 if test "x$LINE" != x ; then
5387 eval "DEFAULT_$LINE"
5388 else
5389 no_cache=1
5390 fi
5391
5392 ac_cv_use_xresources='wxUSE_X_RESOURCES='$DEFAULT_wxUSE_X_RESOURCES
698dcdb6
VZ
5393
5394fi
10f2d63a
VZ
5395
5396
5397 eval "$ac_cv_use_xresources"
5398 if test "$no_cache" != 1; then
5399 echo $ac_cv_use_xresources >> ${wx_arg_cache_file}.tmp
5400 fi
5401
5402 if test "$wxUSE_X_RESOURCES" = yes; then
698dcdb6 5403 echo "$ac_t""yes" 1>&6
10f2d63a 5404 else
698dcdb6 5405 echo "$ac_t""no" 1>&6
10f2d63a 5406 fi
698dcdb6
VZ
5407
5408
10f2d63a 5409
698dcdb6
VZ
5410
5411 echo $ac_n "checking for --enable-clipboard""... $ac_c" 1>&6
19bc6aad 5412echo "configure:5413: checking for --enable-clipboard" >&5
10f2d63a
VZ
5413 no_cache=0
5414 # Check whether --enable-clipboard or --disable-clipboard was given.
5415if test "${enable_clipboard+set}" = set; then
5416 enableval="$enable_clipboard"
698dcdb6 5417
10f2d63a
VZ
5418 if test "$enableval" = yes; then
5419 ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes'
5420 else
5421 ac_cv_use_clipboard='wxUSE_CLIPBOARD=no'
5422 fi
698dcdb6 5423
10f2d63a 5424else
698dcdb6 5425
10f2d63a
VZ
5426 LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}`
5427 if test "x$LINE" != x ; then
5428 eval "DEFAULT_$LINE"
5429 else
5430 no_cache=1
5431 fi
5432
5433 ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD
698dcdb6
VZ
5434
5435fi
10f2d63a
VZ
5436
5437
5438 eval "$ac_cv_use_clipboard"
5439 if test "$no_cache" != 1; then
5440 echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp
5441 fi
5442
5443 if test "$wxUSE_CLIPBOARD" = yes; then
698dcdb6 5444 echo "$ac_t""yes" 1>&6
10f2d63a 5445 else
698dcdb6 5446 echo "$ac_t""no" 1>&6
10f2d63a 5447 fi
698dcdb6 5448
10f2d63a 5449
698dcdb6 5450 echo $ac_n "checking for --enable-dnd""... $ac_c" 1>&6
19bc6aad 5451echo "configure:5452: checking for --enable-dnd" >&5
10f2d63a
VZ
5452 no_cache=0
5453 # Check whether --enable-dnd or --disable-dnd was given.
5454if test "${enable_dnd+set}" = set; then
5455 enableval="$enable_dnd"
698dcdb6 5456
10f2d63a
VZ
5457 if test "$enableval" = yes; then
5458 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes'
5459 else
5460 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no'
5461 fi
698dcdb6 5462
10f2d63a 5463else
698dcdb6 5464
10f2d63a
VZ
5465 LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}`
5466 if test "x$LINE" != x ; then
5467 eval "DEFAULT_$LINE"
5468 else
5469 no_cache=1
5470 fi
5471
5472 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP
698dcdb6
VZ
5473
5474fi
10f2d63a
VZ
5475
5476
5477 eval "$ac_cv_use_dnd"
5478 if test "$no_cache" != 1; then
5479 echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp
5480 fi
5481
5482 if test "$wxUSE_DRAG_AND_DROP" = yes; then
698dcdb6 5483 echo "$ac_t""yes" 1>&6
10f2d63a 5484 else
698dcdb6 5485 echo "$ac_t""no" 1>&6
10f2d63a 5486 fi
698dcdb6 5487
10f2d63a 5488
698dcdb6 5489 echo $ac_n "checking for --enable-metafile""... $ac_c" 1>&6
19bc6aad 5490echo "configure:5491: checking for --enable-metafile" >&5
b64f0a5f
RL
5491 no_cache=0
5492 # Check whether --enable-metafile or --disable-metafile was given.
5493if test "${enable_metafile+set}" = set; then
5494 enableval="$enable_metafile"
698dcdb6 5495
b64f0a5f
RL
5496 if test "$enableval" = yes; then
5497 ac_cv_use_metafile='wxUSE_METAFILE=yes'
5498 else
5499 ac_cv_use_metafile='wxUSE_METAFILE=no'
5500 fi
698dcdb6 5501
b64f0a5f 5502else
698dcdb6 5503
b64f0a5f
RL
5504 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
5505 if test "x$LINE" != x ; then
5506 eval "DEFAULT_$LINE"
5507 else
5508 no_cache=1
5509 fi
5510
5511 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
698dcdb6
VZ
5512
5513fi
b64f0a5f
RL
5514
5515
5516 eval "$ac_cv_use_metafile"
5517 if test "$no_cache" != 1; then
5518 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
5519 fi
5520
5521 if test "$wxUSE_METAFILE" = yes; then
698dcdb6 5522 echo "$ac_t""yes" 1>&6
b64f0a5f 5523 else
698dcdb6 5524 echo "$ac_t""no" 1>&6
b64f0a5f 5525 fi
698dcdb6
VZ
5526
5527
10f2d63a 5528
24176f2c 5529 echo $ac_n "checking for --enable-treelayout""... $ac_c" 1>&6
19bc6aad 5530echo "configure:5531: checking for --enable-treelayout" >&5
10f2d63a 5531 no_cache=0
24176f2c
GD
5532 # Check whether --enable-treelayout or --disable-treelayout was given.
5533if test "${enable_treelayout+set}" = set; then
5534 enableval="$enable_treelayout"
698dcdb6 5535
10f2d63a 5536 if test "$enableval" = yes; then
24176f2c 5537 ac_cv_use_treelayout='wxUSE_TREELAYOUT=yes'
10f2d63a 5538 else
24176f2c 5539 ac_cv_use_treelayout='wxUSE_TREELAYOUT=no'
10f2d63a 5540 fi
698dcdb6 5541
10f2d63a 5542else
698dcdb6 5543
24176f2c 5544 LINE=`grep "wxUSE_TREELAYOUT" ${wx_arg_cache_file}`
10f2d63a
VZ
5545 if test "x$LINE" != x ; then
5546 eval "DEFAULT_$LINE"
5547 else
5548 no_cache=1
5549 fi
5550
24176f2c 5551 ac_cv_use_treelayout='wxUSE_TREELAYOUT='$DEFAULT_wxUSE_TREELAYOUT
698dcdb6
VZ
5552
5553fi
10f2d63a
VZ
5554
5555
24176f2c 5556 eval "$ac_cv_use_treelayout"
10f2d63a 5557 if test "$no_cache" != 1; then
24176f2c 5558 echo $ac_cv_use_treelayout >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
5559 fi
5560
24176f2c 5561 if test "$wxUSE_TREELAYOUT" = yes; then
698dcdb6 5562 echo "$ac_t""yes" 1>&6
10f2d63a 5563 else
698dcdb6 5564 echo "$ac_t""no" 1>&6
10f2d63a 5565 fi
698dcdb6 5566
10f2d63a 5567
698dcdb6
VZ
5568
5569
5570 echo $ac_n "checking for --enable-controls""... $ac_c" 1>&6
19bc6aad 5571echo "configure:5572: checking for --enable-controls" >&5
10f2d63a
VZ
5572 no_cache=0
5573 # Check whether --enable-controls or --disable-controls was given.
5574if test "${enable_controls+set}" = set; then
5575 enableval="$enable_controls"
698dcdb6 5576
10f2d63a
VZ
5577 if test "$enableval" = yes; then
5578 ac_cv_use_controls='wxUSE_CONTROLS=yes'
5579 else
5580 ac_cv_use_controls='wxUSE_CONTROLS=no'
5581 fi
698dcdb6 5582
10f2d63a 5583else
698dcdb6 5584
10f2d63a
VZ
5585 LINE=`grep "wxUSE_CONTROLS" ${wx_arg_cache_file}`
5586 if test "x$LINE" != x ; then
5587 eval "DEFAULT_$LINE"
5588 else
5589 no_cache=1
5590 fi
5591
5592 ac_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS
698dcdb6
VZ
5593
5594fi
10f2d63a
VZ
5595
5596
5597 eval "$ac_cv_use_controls"
5598 if test "$no_cache" != 1; then
5599 echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp
5600 fi
5601
5602 if test "$wxUSE_CONTROLS" = yes; then
698dcdb6 5603 echo "$ac_t""yes" 1>&6
10f2d63a 5604 else
698dcdb6 5605 echo "$ac_t""no" 1>&6
10f2d63a 5606 fi
698dcdb6 5607
10f2d63a
VZ
5608
5609if test "$wxUSE_CONTROLS" = "yes"; then
5610 DEFAULT_wxUSE_ACCEL=yes
1e6feb95
VZ
5611 DEFAULT_wxUSE_BMPBUTTON=yes
5612 DEFAULT_wxUSE_BUTTON=yes
5613 DEFAULT_wxUSE_CALCTRL=no
10f2d63a
VZ
5614 DEFAULT_wxUSE_CARET=yes
5615 DEFAULT_wxUSE_COMBOBOX=yes
10f2d63a
VZ
5616 DEFAULT_wxUSE_CHECKBOX=yes
5617 DEFAULT_wxUSE_CHECKLISTBOX=yes
5618 DEFAULT_wxUSE_CHOICE=yes
5619 DEFAULT_wxUSE_GAUGE=yes
5620 DEFAULT_wxUSE_GRID=yes
cc977e5f 5621 DEFAULT_wxUSE_NEW_GRID=yes
10f2d63a
VZ
5622 DEFAULT_wxUSE_IMAGLIST=yes
5623 DEFAULT_wxUSE_LISTBOX=yes
5624 DEFAULT_wxUSE_LISTCTRL=yes
5625 DEFAULT_wxUSE_NOTEBOOK=yes
24176f2c 5626 DEFAULT_wxUSE_PROPSHEET=yes
10f2d63a
VZ
5627 DEFAULT_wxUSE_RADIOBOX=yes
5628 DEFAULT_wxUSE_RADIOBTN=yes
5629 DEFAULT_wxUSE_SASH=yes
5630 DEFAULT_wxUSE_SCROLLBAR=yes
5631 DEFAULT_wxUSE_SLIDER=yes
5632 DEFAULT_wxUSE_SPINBTN=yes
56cfaa52 5633 DEFAULT_wxUSE_SPINCTRL=yes
10f2d63a
VZ
5634 DEFAULT_wxUSE_SPLITTER=yes
5635 DEFAULT_wxUSE_STATBMP=yes
5636 DEFAULT_wxUSE_STATBOX=yes
5637 DEFAULT_wxUSE_STATLINE=yes
5638 DEFAULT_wxUSE_STATUSBAR=yes
5639 DEFAULT_wxUSE_TAB_DIALOG=yes
1db8dc4a 5640 DEFAULT_wxUSE_TOGGLEBTN=yes
10f2d63a 5641 DEFAULT_wxUSE_TOOLBAR=yes
360d6699
VZ
5642 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
5643 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
10f2d63a
VZ
5644 DEFAULT_wxUSE_TOOLTIPS=yes
5645 DEFAULT_wxUSE_TREECTRL=yes
9f41d601 5646 DEFAULT_wxUSE_POPUPWIN=yes
9926e4a4 5647 DEFAULT_wxUSE_TIPWINDOW=yes
10f2d63a
VZ
5648elif test "$wxUSE_CONTROLS" = "no"; then
5649 DEFAULT_wxUSE_ACCEL=no
1e6feb95
VZ
5650 DEFAULT_wxUSE_BMPBUTTON=no
5651 DEFAULT_wxUSE_BUTTON=no
5652 DEFAULT_wxUSE_CALCTRL=no
10f2d63a
VZ
5653 DEFAULT_wxUSE_CARET=no
5654 DEFAULT_wxUSE_COMBOBOX=no
10f2d63a
VZ
5655 DEFAULT_wxUSE_CHECKBOX=no
5656 DEFAULT_wxUSE_CHECKLISTBOX=no
5657 DEFAULT_wxUSE_CHOICE=no
5658 DEFAULT_wxUSE_GAUGE=no
5659 DEFAULT_wxUSE_GRID=no
5660 DEFAULT_wxUSE_NEW_GRID=no
5661 DEFAULT_wxUSE_IMAGLIST=no
5662 DEFAULT_wxUSE_LISTBOX=no
5663 DEFAULT_wxUSE_LISTCTRL=no
5664 DEFAULT_wxUSE_NOTEBOOK=no
24176f2c 5665 DEFAULT_wxUSE_PROPSHEET=no
10f2d63a
VZ
5666 DEFAULT_wxUSE_RADIOBOX=no
5667 DEFAULT_wxUSE_RADIOBTN=no
5668 DEFAULT_wxUSE_SASH=no
5669 DEFAULT_wxUSE_SCROLLBAR=no
5670 DEFAULT_wxUSE_SLIDER=no
5671 DEFAULT_wxUSE_SPINBTN=no
56cfaa52 5672 DEFAULT_wxUSE_SPINCTRL=no
10f2d63a
VZ
5673 DEFAULT_wxUSE_SPLITTER=no
5674 DEFAULT_wxUSE_STATBMP=no
5675 DEFAULT_wxUSE_STATBOX=no
5676 DEFAULT_wxUSE_STATLINE=no
5677 DEFAULT_wxUSE_STATUSBAR=no
5678 DEFAULT_wxUSE_TAB_DIALOG=no
1db8dc4a 5679 DEFAULT_wxUSE_TOGGLEBTN=no
10f2d63a 5680 DEFAULT_wxUSE_TOOLBAR=no
360d6699
VZ
5681 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
5682 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
10f2d63a
VZ
5683 DEFAULT_wxUSE_TOOLTIPS=no
5684 DEFAULT_wxUSE_TREECTRL=no
9f41d601 5685 DEFAULT_wxUSE_POPUPWIN=no
9926e4a4 5686 DEFAULT_wxUSE_TIPWINDOW=no
10f2d63a
VZ
5687fi
5688
698dcdb6
VZ
5689
5690 echo $ac_n "checking for --enable-accel""... $ac_c" 1>&6
19bc6aad 5691echo "configure:5692: checking for --enable-accel" >&5
10f2d63a
VZ
5692 no_cache=0
5693 # Check whether --enable-accel or --disable-accel was given.
5694if test "${enable_accel+set}" = set; then
5695 enableval="$enable_accel"
698dcdb6 5696
10f2d63a
VZ
5697 if test "$enableval" = yes; then
5698 ac_cv_use_accel='wxUSE_ACCEL=yes'
5699 else
5700 ac_cv_use_accel='wxUSE_ACCEL=no'
5701 fi
698dcdb6 5702
10f2d63a 5703else
698dcdb6 5704
10f2d63a
VZ
5705 LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}`
5706 if test "x$LINE" != x ; then
5707 eval "DEFAULT_$LINE"
5708 else
5709 no_cache=1
5710 fi
5711
5712 ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL
698dcdb6
VZ
5713
5714fi
10f2d63a
VZ
5715
5716
5717 eval "$ac_cv_use_accel"
5718 if test "$no_cache" != 1; then
5719 echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp
5720 fi
5721
5722 if test "$wxUSE_ACCEL" = yes; then
698dcdb6 5723 echo "$ac_t""yes" 1>&6
10f2d63a 5724 else
698dcdb6 5725 echo "$ac_t""no" 1>&6
10f2d63a 5726 fi
698dcdb6 5727
10f2d63a 5728
1e6feb95 5729 echo $ac_n "checking for --enable-button""... $ac_c" 1>&6
19bc6aad 5730echo "configure:5731: checking for --enable-button" >&5
10f2d63a 5731 no_cache=0
1e6feb95
VZ
5732 # Check whether --enable-button or --disable-button was given.
5733if test "${enable_button+set}" = set; then
5734 enableval="$enable_button"
698dcdb6 5735
10f2d63a 5736 if test "$enableval" = yes; then
1e6feb95 5737 ac_cv_use_button='wxUSE_BUTTON=yes'
10f2d63a 5738 else
1e6feb95 5739 ac_cv_use_button='wxUSE_BUTTON=no'
10f2d63a 5740 fi
698dcdb6 5741
10f2d63a 5742else
698dcdb6 5743
1e6feb95 5744 LINE=`grep "wxUSE_BUTTON" ${wx_arg_cache_file}`
10f2d63a
VZ
5745 if test "x$LINE" != x ; then
5746 eval "DEFAULT_$LINE"
5747 else
5748 no_cache=1
5749 fi
5750
1e6feb95 5751 ac_cv_use_button='wxUSE_BUTTON='$DEFAULT_wxUSE_BUTTON
698dcdb6
VZ
5752
5753fi
10f2d63a
VZ
5754
5755
1e6feb95 5756 eval "$ac_cv_use_button"
10f2d63a 5757 if test "$no_cache" != 1; then
1e6feb95 5758 echo $ac_cv_use_button >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
5759 fi
5760
1e6feb95 5761 if test "$wxUSE_BUTTON" = yes; then
698dcdb6 5762 echo "$ac_t""yes" 1>&6
10f2d63a 5763 else
698dcdb6 5764 echo "$ac_t""no" 1>&6
10f2d63a 5765 fi
698dcdb6 5766
10f2d63a 5767
698dcdb6 5768 echo $ac_n "checking for --enable-bmpbutton""... $ac_c" 1>&6
19bc6aad 5769echo "configure:5770: checking for --enable-bmpbutton" >&5
10f2d63a
VZ
5770 no_cache=0
5771 # Check whether --enable-bmpbutton or --disable-bmpbutton was given.
5772if test "${enable_bmpbutton+set}" = set; then
5773 enableval="$enable_bmpbutton"
698dcdb6 5774
10f2d63a
VZ
5775 if test "$enableval" = yes; then
5776 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes'
5777 else
5778 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no'
5779 fi
698dcdb6 5780
10f2d63a 5781else
698dcdb6 5782
10f2d63a
VZ
5783 LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}`
5784 if test "x$LINE" != x ; then
5785 eval "DEFAULT_$LINE"
5786 else
5787 no_cache=1
5788 fi
5789
5790 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON
698dcdb6
VZ
5791
5792fi
10f2d63a
VZ
5793
5794
5795 eval "$ac_cv_use_bmpbutton"
5796 if test "$no_cache" != 1; then
5797 echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp
5798 fi
5799
5800 if test "$wxUSE_BMPBUTTON" = yes; then
698dcdb6 5801 echo "$ac_t""yes" 1>&6
10f2d63a 5802 else
698dcdb6 5803 echo "$ac_t""no" 1>&6
10f2d63a 5804 fi
698dcdb6 5805
10f2d63a 5806
1e6feb95 5807 echo $ac_n "checking for --enable-calendar""... $ac_c" 1>&6
19bc6aad 5808echo "configure:5809: checking for --enable-calendar" >&5
1e6feb95
VZ
5809 no_cache=0
5810 # Check whether --enable-calendar or --disable-calendar was given.
5811if test "${enable_calendar+set}" = set; then
5812 enableval="$enable_calendar"
5813
5814 if test "$enableval" = yes; then
5815 ac_cv_use_calendar='wxUSE_CALCTRL=yes'
5816 else
5817 ac_cv_use_calendar='wxUSE_CALCTRL=no'
5818 fi
5819
5820else
5821
5822 LINE=`grep "wxUSE_CALCTRL" ${wx_arg_cache_file}`
5823 if test "x$LINE" != x ; then
5824 eval "DEFAULT_$LINE"
5825 else
5826 no_cache=1
5827 fi
5828
5829 ac_cv_use_calendar='wxUSE_CALCTRL='$DEFAULT_wxUSE_CALCTRL
5830
5831fi
5832
5833
5834 eval "$ac_cv_use_calendar"
5835 if test "$no_cache" != 1; then
5836 echo $ac_cv_use_calendar >> ${wx_arg_cache_file}.tmp
5837 fi
5838
5839 if test "$wxUSE_CALCTRL" = yes; then
5840 echo "$ac_t""yes" 1>&6
5841 else
5842 echo "$ac_t""no" 1>&6
5843 fi
5844
5845
5846 echo $ac_n "checking for --enable-caret""... $ac_c" 1>&6
19bc6aad 5847echo "configure:5848: checking for --enable-caret" >&5
1e6feb95
VZ
5848 no_cache=0
5849 # Check whether --enable-caret or --disable-caret was given.
5850if test "${enable_caret+set}" = set; then
5851 enableval="$enable_caret"
5852
5853 if test "$enableval" = yes; then
5854 ac_cv_use_caret='wxUSE_CARET=yes'
5855 else
5856 ac_cv_use_caret='wxUSE_CARET=no'
5857 fi
5858
5859else
5860
5861 LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}`
5862 if test "x$LINE" != x ; then
5863 eval "DEFAULT_$LINE"
5864 else
5865 no_cache=1
5866 fi
5867
5868 ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET
5869
5870fi
5871
5872
5873 eval "$ac_cv_use_caret"
5874 if test "$no_cache" != 1; then
5875 echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp
5876 fi
5877
5878 if test "$wxUSE_CARET" = yes; then
5879 echo "$ac_t""yes" 1>&6
5880 else
5881 echo "$ac_t""no" 1>&6
5882 fi
5883
5884
698dcdb6 5885 echo $ac_n "checking for --enable-checkbox""... $ac_c" 1>&6
19bc6aad 5886echo "configure:5887: checking for --enable-checkbox" >&5
10f2d63a
VZ
5887 no_cache=0
5888 # Check whether --enable-checkbox or --disable-checkbox was given.
5889if test "${enable_checkbox+set}" = set; then
5890 enableval="$enable_checkbox"
698dcdb6 5891
10f2d63a
VZ
5892 if test "$enableval" = yes; then
5893 ac_cv_use_checkbox='wxUSE_CHECKBOX=yes'
5894 else
5895 ac_cv_use_checkbox='wxUSE_CHECKBOX=no'
5896 fi
698dcdb6 5897
10f2d63a 5898else
698dcdb6 5899
10f2d63a
VZ
5900 LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}`
5901 if test "x$LINE" != x ; then
5902 eval "DEFAULT_$LINE"
5903 else
5904 no_cache=1
5905 fi
5906
5907 ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX
698dcdb6
VZ
5908
5909fi
10f2d63a
VZ
5910
5911
5912 eval "$ac_cv_use_checkbox"
5913 if test "$no_cache" != 1; then
5914 echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp
5915 fi
5916
5917 if test "$wxUSE_CHECKBOX" = yes; then
698dcdb6 5918 echo "$ac_t""yes" 1>&6
10f2d63a 5919 else
698dcdb6 5920 echo "$ac_t""no" 1>&6
10f2d63a 5921 fi
698dcdb6 5922
10f2d63a 5923
698dcdb6 5924 echo $ac_n "checking for --enable-checklst""... $ac_c" 1>&6
19bc6aad 5925echo "configure:5926: checking for --enable-checklst" >&5
10f2d63a
VZ
5926 no_cache=0
5927 # Check whether --enable-checklst or --disable-checklst was given.
5928if test "${enable_checklst+set}" = set; then
5929 enableval="$enable_checklst"
698dcdb6 5930
10f2d63a
VZ
5931 if test "$enableval" = yes; then
5932 ac_cv_use_checklst='wxUSE_CHECKLST=yes'
5933 else
5934 ac_cv_use_checklst='wxUSE_CHECKLST=no'
5935 fi
698dcdb6 5936
10f2d63a 5937else
698dcdb6 5938
10f2d63a
VZ
5939 LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}`
5940 if test "x$LINE" != x ; then
5941 eval "DEFAULT_$LINE"
5942 else
5943 no_cache=1
5944 fi
5945
5946 ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST
698dcdb6
VZ
5947
5948fi
10f2d63a
VZ
5949
5950
5951 eval "$ac_cv_use_checklst"
5952 if test "$no_cache" != 1; then
5953 echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp
5954 fi
5955
5956 if test "$wxUSE_CHECKLST" = yes; then
698dcdb6 5957 echo "$ac_t""yes" 1>&6
10f2d63a 5958 else
698dcdb6 5959 echo "$ac_t""no" 1>&6
10f2d63a 5960 fi
698dcdb6 5961
10f2d63a 5962
698dcdb6 5963 echo $ac_n "checking for --enable-choice""... $ac_c" 1>&6
19bc6aad 5964echo "configure:5965: checking for --enable-choice" >&5
10f2d63a
VZ
5965 no_cache=0
5966 # Check whether --enable-choice or --disable-choice was given.
5967if test "${enable_choice+set}" = set; then
5968 enableval="$enable_choice"
698dcdb6 5969
10f2d63a
VZ
5970 if test "$enableval" = yes; then
5971 ac_cv_use_choice='wxUSE_CHOICE=yes'
5972 else
5973 ac_cv_use_choice='wxUSE_CHOICE=no'
5974 fi
698dcdb6 5975
10f2d63a 5976else
698dcdb6 5977
10f2d63a
VZ
5978 LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}`
5979 if test "x$LINE" != x ; then
5980 eval "DEFAULT_$LINE"
5981 else
5982 no_cache=1
5983 fi
5984
5985 ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE
698dcdb6
VZ
5986
5987fi
10f2d63a
VZ
5988
5989
5990 eval "$ac_cv_use_choice"
5991 if test "$no_cache" != 1; then
5992 echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp
5993 fi
5994
5995 if test "$wxUSE_CHOICE" = yes; then
698dcdb6 5996 echo "$ac_t""yes" 1>&6
10f2d63a 5997 else
698dcdb6 5998 echo "$ac_t""no" 1>&6
10f2d63a 5999 fi
698dcdb6 6000
10f2d63a 6001
698dcdb6 6002 echo $ac_n "checking for --enable-combobox""... $ac_c" 1>&6
19bc6aad 6003echo "configure:6004: checking for --enable-combobox" >&5
10f2d63a
VZ
6004 no_cache=0
6005 # Check whether --enable-combobox or --disable-combobox was given.
6006if test "${enable_combobox+set}" = set; then
6007 enableval="$enable_combobox"
698dcdb6 6008
10f2d63a
VZ
6009 if test "$enableval" = yes; then
6010 ac_cv_use_combobox='wxUSE_COMBOBOX=yes'
6011 else
6012 ac_cv_use_combobox='wxUSE_COMBOBOX=no'
6013 fi
698dcdb6 6014
10f2d63a 6015else
698dcdb6 6016
10f2d63a
VZ
6017 LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}`
6018 if test "x$LINE" != x ; then
6019 eval "DEFAULT_$LINE"
6020 else
6021 no_cache=1
6022 fi
6023
6024 ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX
698dcdb6
VZ
6025
6026fi
10f2d63a
VZ
6027
6028
6029 eval "$ac_cv_use_combobox"
6030 if test "$no_cache" != 1; then
6031 echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp
6032 fi
6033
6034 if test "$wxUSE_COMBOBOX" = yes; then
698dcdb6 6035 echo "$ac_t""yes" 1>&6
10f2d63a 6036 else
698dcdb6 6037 echo "$ac_t""no" 1>&6
10f2d63a 6038 fi
698dcdb6 6039
10f2d63a 6040
698dcdb6 6041 echo $ac_n "checking for --enable-gauge""... $ac_c" 1>&6
19bc6aad 6042echo "configure:6043: checking for --enable-gauge" >&5
10f2d63a
VZ
6043 no_cache=0
6044 # Check whether --enable-gauge or --disable-gauge was given.
6045if test "${enable_gauge+set}" = set; then
6046 enableval="$enable_gauge"
698dcdb6 6047
10f2d63a
VZ
6048 if test "$enableval" = yes; then
6049 ac_cv_use_gauge='wxUSE_GAUGE=yes'
6050 else
6051 ac_cv_use_gauge='wxUSE_GAUGE=no'
6052 fi
698dcdb6 6053
10f2d63a 6054else
698dcdb6 6055
10f2d63a
VZ
6056 LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}`
6057 if test "x$LINE" != x ; then
6058 eval "DEFAULT_$LINE"
6059 else
6060 no_cache=1
6061 fi
6062
6063 ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE
698dcdb6
VZ
6064
6065fi
10f2d63a
VZ
6066
6067
6068 eval "$ac_cv_use_gauge"
6069 if test "$no_cache" != 1; then
6070 echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp
6071 fi
6072
6073 if test "$wxUSE_GAUGE" = yes; then
698dcdb6 6074 echo "$ac_t""yes" 1>&6
10f2d63a 6075 else
698dcdb6 6076 echo "$ac_t""no" 1>&6
10f2d63a 6077 fi
698dcdb6 6078
10f2d63a 6079
698dcdb6 6080 echo $ac_n "checking for --enable-grid""... $ac_c" 1>&6
19bc6aad 6081echo "configure:6082: checking for --enable-grid" >&5
10f2d63a
VZ
6082 no_cache=0
6083 # Check whether --enable-grid or --disable-grid was given.
6084if test "${enable_grid+set}" = set; then
6085 enableval="$enable_grid"
698dcdb6 6086
10f2d63a
VZ
6087 if test "$enableval" = yes; then
6088 ac_cv_use_grid='wxUSE_GRID=yes'
6089 else
6090 ac_cv_use_grid='wxUSE_GRID=no'
6091 fi
698dcdb6 6092
10f2d63a 6093else
698dcdb6 6094
10f2d63a
VZ
6095 LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}`
6096 if test "x$LINE" != x ; then
6097 eval "DEFAULT_$LINE"
6098 else
6099 no_cache=1
6100 fi
6101
6102 ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID
698dcdb6
VZ
6103
6104fi
10f2d63a
VZ
6105
6106
6107 eval "$ac_cv_use_grid"
6108 if test "$no_cache" != 1; then
6109 echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp
6110 fi
6111
6112 if test "$wxUSE_GRID" = yes; then
698dcdb6 6113 echo "$ac_t""yes" 1>&6
10f2d63a 6114 else
698dcdb6 6115 echo "$ac_t""no" 1>&6
10f2d63a 6116 fi
698dcdb6 6117
10f2d63a 6118
698dcdb6 6119 echo $ac_n "checking for --enable-newgrid""... $ac_c" 1>&6
19bc6aad 6120echo "configure:6121: checking for --enable-newgrid" >&5
10f2d63a
VZ
6121 no_cache=0
6122 # Check whether --enable-newgrid or --disable-newgrid was given.
6123if test "${enable_newgrid+set}" = set; then
6124 enableval="$enable_newgrid"
698dcdb6 6125
10f2d63a
VZ
6126 if test "$enableval" = yes; then
6127 ac_cv_use_newgrid='wxUSE_NEW_GRID=yes'
6128 else
6129 ac_cv_use_newgrid='wxUSE_NEW_GRID=no'
6130 fi
698dcdb6 6131
10f2d63a 6132else
698dcdb6 6133
10f2d63a
VZ
6134 LINE=`grep "wxUSE_NEW_GRID" ${wx_arg_cache_file}`
6135 if test "x$LINE" != x ; then
6136 eval "DEFAULT_$LINE"
6137 else
6138 no_cache=1
6139 fi
6140
6141 ac_cv_use_newgrid='wxUSE_NEW_GRID='$DEFAULT_wxUSE_NEW_GRID
698dcdb6
VZ
6142
6143fi
10f2d63a
VZ
6144
6145
6146 eval "$ac_cv_use_newgrid"
6147 if test "$no_cache" != 1; then
6148 echo $ac_cv_use_newgrid >> ${wx_arg_cache_file}.tmp
6149 fi
6150
6151 if test "$wxUSE_NEW_GRID" = yes; then
698dcdb6 6152 echo "$ac_t""yes" 1>&6
10f2d63a 6153 else
698dcdb6 6154 echo "$ac_t""no" 1>&6
10f2d63a 6155 fi
698dcdb6 6156
10f2d63a 6157
698dcdb6 6158 echo $ac_n "checking for --enable-imaglist""... $ac_c" 1>&6
19bc6aad 6159echo "configure:6160: checking for --enable-imaglist" >&5
10f2d63a
VZ
6160 no_cache=0
6161 # Check whether --enable-imaglist or --disable-imaglist was given.
6162if test "${enable_imaglist+set}" = set; then
6163 enableval="$enable_imaglist"
698dcdb6 6164
10f2d63a
VZ
6165 if test "$enableval" = yes; then
6166 ac_cv_use_imaglist='wxUSE_IMAGLIST=yes'
6167 else
6168 ac_cv_use_imaglist='wxUSE_IMAGLIST=no'
6169 fi
698dcdb6 6170
10f2d63a 6171else
698dcdb6 6172
10f2d63a
VZ
6173 LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}`
6174 if test "x$LINE" != x ; then
6175 eval "DEFAULT_$LINE"
6176 else
6177 no_cache=1
6178 fi
6179
6180 ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST
698dcdb6
VZ
6181
6182fi
10f2d63a
VZ
6183
6184
6185 eval "$ac_cv_use_imaglist"
6186 if test "$no_cache" != 1; then
6187 echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp
6188 fi
6189
6190 if test "$wxUSE_IMAGLIST" = yes; then
698dcdb6 6191 echo "$ac_t""yes" 1>&6
10f2d63a 6192 else
698dcdb6 6193 echo "$ac_t""no" 1>&6
10f2d63a 6194 fi
698dcdb6 6195
10f2d63a 6196
698dcdb6 6197 echo $ac_n "checking for --enable-listbox""... $ac_c" 1>&6
19bc6aad 6198echo "configure:6199: checking for --enable-listbox" >&5
10f2d63a
VZ
6199 no_cache=0
6200 # Check whether --enable-listbox or --disable-listbox was given.
6201if test "${enable_listbox+set}" = set; then
6202 enableval="$enable_listbox"
698dcdb6 6203
10f2d63a
VZ
6204 if test "$enableval" = yes; then
6205 ac_cv_use_listbox='wxUSE_LISTBOX=yes'
6206 else
6207 ac_cv_use_listbox='wxUSE_LISTBOX=no'
6208 fi
698dcdb6 6209
10f2d63a 6210else
698dcdb6 6211
10f2d63a
VZ
6212 LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}`
6213 if test "x$LINE" != x ; then
6214 eval "DEFAULT_$LINE"
6215 else
6216 no_cache=1
6217 fi
6218
6219 ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX
698dcdb6
VZ
6220
6221fi
10f2d63a
VZ
6222
6223
6224 eval "$ac_cv_use_listbox"
6225 if test "$no_cache" != 1; then
6226 echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp
6227 fi
6228
6229 if test "$wxUSE_LISTBOX" = yes; then
698dcdb6 6230 echo "$ac_t""yes" 1>&6
10f2d63a 6231 else
698dcdb6 6232 echo "$ac_t""no" 1>&6
10f2d63a 6233 fi
698dcdb6 6234
10f2d63a 6235
698dcdb6 6236 echo $ac_n "checking for --enable-listctrl""... $ac_c" 1>&6
19bc6aad 6237echo "configure:6238: checking for --enable-listctrl" >&5
10f2d63a
VZ
6238 no_cache=0
6239 # Check whether --enable-listctrl or --disable-listctrl was given.
6240if test "${enable_listctrl+set}" = set; then
6241 enableval="$enable_listctrl"
698dcdb6 6242
10f2d63a
VZ
6243 if test "$enableval" = yes; then
6244 ac_cv_use_listctrl='wxUSE_LISTCTRL=yes'
6245 else
6246 ac_cv_use_listctrl='wxUSE_LISTCTRL=no'
6247 fi
698dcdb6 6248
10f2d63a 6249else
698dcdb6 6250
10f2d63a
VZ
6251 LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}`
6252 if test "x$LINE" != x ; then
6253 eval "DEFAULT_$LINE"
6254 else
6255 no_cache=1
6256 fi
6257
6258 ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL
698dcdb6
VZ
6259
6260fi
10f2d63a
VZ
6261
6262
6263 eval "$ac_cv_use_listctrl"
6264 if test "$no_cache" != 1; then
6265 echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp
6266 fi
6267
6268 if test "$wxUSE_LISTCTRL" = yes; then
698dcdb6 6269 echo "$ac_t""yes" 1>&6
10f2d63a 6270 else
698dcdb6 6271 echo "$ac_t""no" 1>&6
10f2d63a 6272 fi
698dcdb6 6273
10f2d63a 6274
698dcdb6 6275 echo $ac_n "checking for --enable-notebook""... $ac_c" 1>&6
19bc6aad 6276echo "configure:6277: checking for --enable-notebook" >&5
10f2d63a
VZ
6277 no_cache=0
6278 # Check whether --enable-notebook or --disable-notebook was given.
6279if test "${enable_notebook+set}" = set; then
6280 enableval="$enable_notebook"
698dcdb6 6281
10f2d63a
VZ
6282 if test "$enableval" = yes; then
6283 ac_cv_use_notebook='wxUSE_NOTEBOOK=yes'
6284 else
6285 ac_cv_use_notebook='wxUSE_NOTEBOOK=no'
6286 fi
698dcdb6 6287
10f2d63a 6288else
698dcdb6 6289
10f2d63a
VZ
6290 LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}`
6291 if test "x$LINE" != x ; then
6292 eval "DEFAULT_$LINE"
6293 else
6294 no_cache=1
6295 fi
6296
6297 ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK
698dcdb6
VZ
6298
6299fi
10f2d63a
VZ
6300
6301
6302 eval "$ac_cv_use_notebook"
6303 if test "$no_cache" != 1; then
6304 echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp
6305 fi
6306
6307 if test "$wxUSE_NOTEBOOK" = yes; then
698dcdb6 6308 echo "$ac_t""yes" 1>&6
10f2d63a 6309 else
698dcdb6 6310 echo "$ac_t""no" 1>&6
10f2d63a 6311 fi
698dcdb6 6312
10f2d63a 6313
24176f2c 6314 echo $ac_n "checking for --enable-propsheet""... $ac_c" 1>&6
19bc6aad 6315echo "configure:6316: checking for --enable-propsheet" >&5
24176f2c
GD
6316 no_cache=0
6317 # Check whether --enable-propsheet or --disable-propsheet was given.
6318if test "${enable_propsheet+set}" = set; then
6319 enableval="$enable_propsheet"
6320
6321 if test "$enableval" = yes; then
6322 ac_cv_use_propsheet='wxUSE_PROPSHEET=yes'
6323 else
6324 ac_cv_use_propsheet='wxUSE_PROPSHEET=no'
6325 fi
6326
6327else
6328
6329 LINE=`grep "wxUSE_PROPSHEET" ${wx_arg_cache_file}`
6330 if test "x$LINE" != x ; then
6331 eval "DEFAULT_$LINE"
6332 else
6333 no_cache=1
6334 fi
6335
6336 ac_cv_use_propsheet='wxUSE_PROPSHEET='$DEFAULT_wxUSE_PROPSHEET
6337
6338fi
6339
6340
6341 eval "$ac_cv_use_propsheet"
6342 if test "$no_cache" != 1; then
6343 echo $ac_cv_use_propsheet >> ${wx_arg_cache_file}.tmp
6344 fi
6345
6346 if test "$wxUSE_PROPSHEET" = yes; then
6347 echo "$ac_t""yes" 1>&6
6348 else
6349 echo "$ac_t""no" 1>&6
6350 fi
6351
6352
698dcdb6 6353 echo $ac_n "checking for --enable-radiobox""... $ac_c" 1>&6
19bc6aad 6354echo "configure:6355: checking for --enable-radiobox" >&5
10f2d63a
VZ
6355 no_cache=0
6356 # Check whether --enable-radiobox or --disable-radiobox was given.
6357if test "${enable_radiobox+set}" = set; then
6358 enableval="$enable_radiobox"
698dcdb6 6359
10f2d63a
VZ
6360 if test "$enableval" = yes; then
6361 ac_cv_use_radiobox='wxUSE_RADIOBOX=yes'
6362 else
6363 ac_cv_use_radiobox='wxUSE_RADIOBOX=no'
6364 fi
698dcdb6 6365
10f2d63a 6366else
698dcdb6 6367
10f2d63a
VZ
6368 LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}`
6369 if test "x$LINE" != x ; then
6370 eval "DEFAULT_$LINE"
6371 else
6372 no_cache=1
6373 fi
6374
6375 ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX
698dcdb6
VZ
6376
6377fi
10f2d63a
VZ
6378
6379
6380 eval "$ac_cv_use_radiobox"
6381 if test "$no_cache" != 1; then
6382 echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp
6383 fi
6384
6385 if test "$wxUSE_RADIOBOX" = yes; then
698dcdb6 6386 echo "$ac_t""yes" 1>&6
10f2d63a 6387 else
698dcdb6 6388 echo "$ac_t""no" 1>&6
10f2d63a 6389 fi
698dcdb6 6390
10f2d63a 6391
698dcdb6 6392 echo $ac_n "checking for --enable-radiobtn""... $ac_c" 1>&6
19bc6aad 6393echo "configure:6394: checking for --enable-radiobtn" >&5
10f2d63a
VZ
6394 no_cache=0
6395 # Check whether --enable-radiobtn or --disable-radiobtn was given.
6396if test "${enable_radiobtn+set}" = set; then
6397 enableval="$enable_radiobtn"
698dcdb6 6398
10f2d63a
VZ
6399 if test "$enableval" = yes; then
6400 ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes'
6401 else
6402 ac_cv_use_radiobtn='wxUSE_RADIOBTN=no'
6403 fi
698dcdb6 6404
10f2d63a 6405else
698dcdb6 6406
10f2d63a
VZ
6407 LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}`
6408 if test "x$LINE" != x ; then
6409 eval "DEFAULT_$LINE"
6410 else
6411 no_cache=1
6412 fi
6413
6414 ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN
698dcdb6
VZ
6415
6416fi
10f2d63a
VZ
6417
6418
6419 eval "$ac_cv_use_radiobtn"
6420 if test "$no_cache" != 1; then
6421 echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp
6422 fi
6423
6424 if test "$wxUSE_RADIOBTN" = yes; then
698dcdb6 6425 echo "$ac_t""yes" 1>&6
10f2d63a 6426 else
698dcdb6 6427 echo "$ac_t""no" 1>&6
10f2d63a 6428 fi
698dcdb6 6429
10f2d63a 6430
698dcdb6 6431 echo $ac_n "checking for --enable-sash""... $ac_c" 1>&6
19bc6aad 6432echo "configure:6433: checking for --enable-sash" >&5
10f2d63a
VZ
6433 no_cache=0
6434 # Check whether --enable-sash or --disable-sash was given.
6435if test "${enable_sash+set}" = set; then
6436 enableval="$enable_sash"
698dcdb6 6437
10f2d63a
VZ
6438 if test "$enableval" = yes; then
6439 ac_cv_use_sash='wxUSE_SASH=yes'
6440 else
6441 ac_cv_use_sash='wxUSE_SASH=no'
6442 fi
698dcdb6 6443
10f2d63a 6444else
698dcdb6 6445
10f2d63a
VZ
6446 LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}`
6447 if test "x$LINE" != x ; then
6448 eval "DEFAULT_$LINE"
6449 else
6450 no_cache=1
6451 fi
6452
6453 ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH
698dcdb6
VZ
6454
6455fi
10f2d63a
VZ
6456
6457
6458 eval "$ac_cv_use_sash"
6459 if test "$no_cache" != 1; then
6460 echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp
6461 fi
6462
6463 if test "$wxUSE_SASH" = yes; then
698dcdb6 6464 echo "$ac_t""yes" 1>&6
10f2d63a 6465 else
698dcdb6 6466 echo "$ac_t""no" 1>&6
10f2d63a 6467 fi
698dcdb6 6468
10f2d63a 6469
698dcdb6 6470 echo $ac_n "checking for --enable-scrollbar""... $ac_c" 1>&6
19bc6aad 6471echo "configure:6472: checking for --enable-scrollbar" >&5
10f2d63a
VZ
6472 no_cache=0
6473 # Check whether --enable-scrollbar or --disable-scrollbar was given.
6474if test "${enable_scrollbar+set}" = set; then
6475 enableval="$enable_scrollbar"
698dcdb6 6476
10f2d63a
VZ
6477 if test "$enableval" = yes; then
6478 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes'
6479 else
6480 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no'
6481 fi
698dcdb6 6482
10f2d63a 6483else
698dcdb6 6484
10f2d63a
VZ
6485 LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}`
6486 if test "x$LINE" != x ; then
6487 eval "DEFAULT_$LINE"
6488 else
6489 no_cache=1
6490 fi
6491
6492 ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR
698dcdb6
VZ
6493
6494fi
10f2d63a
VZ
6495
6496
6497 eval "$ac_cv_use_scrollbar"
6498 if test "$no_cache" != 1; then
6499 echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp
6500 fi
6501
6502 if test "$wxUSE_SCROLLBAR" = yes; then
698dcdb6 6503 echo "$ac_t""yes" 1>&6
10f2d63a 6504 else
698dcdb6 6505 echo "$ac_t""no" 1>&6
10f2d63a 6506 fi
698dcdb6 6507
10f2d63a 6508
698dcdb6 6509 echo $ac_n "checking for --enable-slider""... $ac_c" 1>&6
19bc6aad 6510echo "configure:6511: checking for --enable-slider" >&5
10f2d63a
VZ
6511 no_cache=0
6512 # Check whether --enable-slider or --disable-slider was given.
6513if test "${enable_slider+set}" = set; then
6514 enableval="$enable_slider"
698dcdb6 6515
10f2d63a
VZ
6516 if test "$enableval" = yes; then
6517 ac_cv_use_slider='wxUSE_SLIDER=yes'
6518 else
6519 ac_cv_use_slider='wxUSE_SLIDER=no'
6520 fi
698dcdb6 6521
10f2d63a 6522else
698dcdb6 6523
10f2d63a
VZ
6524 LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}`
6525 if test "x$LINE" != x ; then
6526 eval "DEFAULT_$LINE"
6527 else
6528 no_cache=1
6529 fi
6530
6531 ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER
698dcdb6
VZ
6532
6533fi
10f2d63a
VZ
6534
6535
6536 eval "$ac_cv_use_slider"
6537 if test "$no_cache" != 1; then
6538 echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp
6539 fi
6540
6541 if test "$wxUSE_SLIDER" = yes; then
698dcdb6 6542 echo "$ac_t""yes" 1>&6
10f2d63a 6543 else
698dcdb6 6544 echo "$ac_t""no" 1>&6
10f2d63a 6545 fi
698dcdb6 6546
10f2d63a 6547
698dcdb6 6548 echo $ac_n "checking for --enable-spinbtn""... $ac_c" 1>&6
19bc6aad 6549echo "configure:6550: checking for --enable-spinbtn" >&5
10f2d63a
VZ
6550 no_cache=0
6551 # Check whether --enable-spinbtn or --disable-spinbtn was given.
6552if test "${enable_spinbtn+set}" = set; then
6553 enableval="$enable_spinbtn"
698dcdb6 6554
10f2d63a
VZ
6555 if test "$enableval" = yes; then
6556 ac_cv_use_spinbtn='wxUSE_SPINBTN=yes'
6557 else
6558 ac_cv_use_spinbtn='wxUSE_SPINBTN=no'
6559 fi
698dcdb6 6560
10f2d63a 6561else
698dcdb6 6562
10f2d63a
VZ
6563 LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}`
6564 if test "x$LINE" != x ; then
6565 eval "DEFAULT_$LINE"
6566 else
6567 no_cache=1
6568 fi
6569
6570 ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN
698dcdb6
VZ
6571
6572fi
10f2d63a
VZ
6573
6574
6575 eval "$ac_cv_use_spinbtn"
6576 if test "$no_cache" != 1; then
6577 echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp
6578 fi
6579
6580 if test "$wxUSE_SPINBTN" = yes; then
698dcdb6 6581 echo "$ac_t""yes" 1>&6
10f2d63a 6582 else
698dcdb6 6583 echo "$ac_t""no" 1>&6
10f2d63a 6584 fi
698dcdb6 6585
10f2d63a 6586
698dcdb6 6587 echo $ac_n "checking for --enable-spinctrl""... $ac_c" 1>&6
19bc6aad 6588echo "configure:6589: checking for --enable-spinctrl" >&5
56cfaa52
RR
6589 no_cache=0
6590 # Check whether --enable-spinctrl or --disable-spinctrl was given.
6591if test "${enable_spinctrl+set}" = set; then
6592 enableval="$enable_spinctrl"
698dcdb6 6593
56cfaa52
RR
6594 if test "$enableval" = yes; then
6595 ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes'
6596 else
6597 ac_cv_use_spinctrl='wxUSE_SPINCTRL=no'
6598 fi
698dcdb6 6599
56cfaa52 6600else
698dcdb6 6601
56cfaa52
RR
6602 LINE=`grep "wxUSE_SPINCTRL" ${wx_arg_cache_file}`
6603 if test "x$LINE" != x ; then
6604 eval "DEFAULT_$LINE"
6605 else
6606 no_cache=1
6607 fi
6608
6609 ac_cv_use_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL
698dcdb6
VZ
6610
6611fi
56cfaa52
RR
6612
6613
6614 eval "$ac_cv_use_spinctrl"
6615 if test "$no_cache" != 1; then
6616 echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp
6617 fi
6618
6619 if test "$wxUSE_SPINCTRL" = yes; then
698dcdb6 6620 echo "$ac_t""yes" 1>&6
56cfaa52 6621 else
698dcdb6 6622 echo "$ac_t""no" 1>&6
56cfaa52 6623 fi
698dcdb6 6624
56cfaa52 6625
698dcdb6 6626 echo $ac_n "checking for --enable-splitter""... $ac_c" 1>&6
19bc6aad 6627echo "configure:6628: checking for --enable-splitter" >&5
10f2d63a
VZ
6628 no_cache=0
6629 # Check whether --enable-splitter or --disable-splitter was given.
6630if test "${enable_splitter+set}" = set; then
6631 enableval="$enable_splitter"
698dcdb6 6632
10f2d63a
VZ
6633 if test "$enableval" = yes; then
6634 ac_cv_use_splitter='wxUSE_SPLITTER=yes'
6635 else
6636 ac_cv_use_splitter='wxUSE_SPLITTER=no'
6637 fi
698dcdb6 6638
10f2d63a 6639else
698dcdb6 6640
10f2d63a
VZ
6641 LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}`
6642 if test "x$LINE" != x ; then
6643 eval "DEFAULT_$LINE"
6644 else
6645 no_cache=1
6646 fi
6647
6648 ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER
698dcdb6
VZ
6649
6650fi
10f2d63a
VZ
6651
6652
6653 eval "$ac_cv_use_splitter"
6654 if test "$no_cache" != 1; then
6655 echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp
6656 fi
6657
6658 if test "$wxUSE_SPLITTER" = yes; then
698dcdb6 6659 echo "$ac_t""yes" 1>&6
10f2d63a 6660 else
698dcdb6 6661 echo "$ac_t""no" 1>&6
10f2d63a 6662 fi
698dcdb6 6663
10f2d63a 6664
698dcdb6 6665 echo $ac_n "checking for --enable-statbmp""... $ac_c" 1>&6
19bc6aad 6666echo "configure:6667: checking for --enable-statbmp" >&5
10f2d63a
VZ
6667 no_cache=0
6668 # Check whether --enable-statbmp or --disable-statbmp was given.
6669if test "${enable_statbmp+set}" = set; then
6670 enableval="$enable_statbmp"
698dcdb6 6671
10f2d63a
VZ
6672 if test "$enableval" = yes; then
6673 ac_cv_use_statbmp='wxUSE_STATBMP=yes'
6674 else
6675 ac_cv_use_statbmp='wxUSE_STATBMP=no'
6676 fi
698dcdb6 6677
10f2d63a 6678else
698dcdb6 6679
10f2d63a
VZ
6680 LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}`
6681 if test "x$LINE" != x ; then
6682 eval "DEFAULT_$LINE"
6683 else
6684 no_cache=1
6685 fi
6686
6687 ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP
698dcdb6
VZ
6688
6689fi
10f2d63a
VZ
6690
6691
6692 eval "$ac_cv_use_statbmp"
6693 if test "$no_cache" != 1; then
6694 echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp
6695 fi
6696
6697 if test "$wxUSE_STATBMP" = yes; then
698dcdb6 6698 echo "$ac_t""yes" 1>&6
10f2d63a 6699 else
698dcdb6 6700 echo "$ac_t""no" 1>&6
10f2d63a 6701 fi
698dcdb6 6702
10f2d63a 6703
698dcdb6 6704 echo $ac_n "checking for --enable-statbox""... $ac_c" 1>&6
19bc6aad 6705echo "configure:6706: checking for --enable-statbox" >&5
10f2d63a
VZ
6706 no_cache=0
6707 # Check whether --enable-statbox or --disable-statbox was given.
6708if test "${enable_statbox+set}" = set; then
6709 enableval="$enable_statbox"
698dcdb6 6710
10f2d63a
VZ
6711 if test "$enableval" = yes; then
6712 ac_cv_use_statbox='wxUSE_STATBOX=yes'
6713 else
6714 ac_cv_use_statbox='wxUSE_STATBOX=no'
6715 fi
698dcdb6 6716
10f2d63a 6717else
698dcdb6 6718
10f2d63a
VZ
6719 LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}`
6720 if test "x$LINE" != x ; then
6721 eval "DEFAULT_$LINE"
6722 else
6723 no_cache=1
6724 fi
6725
6726 ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX
698dcdb6
VZ
6727
6728fi
10f2d63a
VZ
6729
6730
6731 eval "$ac_cv_use_statbox"
6732 if test "$no_cache" != 1; then
6733 echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp
6734 fi
6735
6736 if test "$wxUSE_STATBOX" = yes; then
698dcdb6 6737 echo "$ac_t""yes" 1>&6
10f2d63a 6738 else
698dcdb6 6739 echo "$ac_t""no" 1>&6
10f2d63a 6740 fi
698dcdb6 6741
10f2d63a 6742
698dcdb6 6743 echo $ac_n "checking for --enable-statline""... $ac_c" 1>&6
19bc6aad 6744echo "configure:6745: checking for --enable-statline" >&5
10f2d63a
VZ
6745 no_cache=0
6746 # Check whether --enable-statline or --disable-statline was given.
6747if test "${enable_statline+set}" = set; then
6748 enableval="$enable_statline"
698dcdb6 6749
10f2d63a
VZ
6750 if test "$enableval" = yes; then
6751 ac_cv_use_statline='wxUSE_STATLINE=yes'
6752 else
6753 ac_cv_use_statline='wxUSE_STATLINE=no'
6754 fi
698dcdb6 6755
10f2d63a 6756else
698dcdb6 6757
10f2d63a
VZ
6758 LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}`
6759 if test "x$LINE" != x ; then
6760 eval "DEFAULT_$LINE"
6761 else
6762 no_cache=1
6763 fi
6764
6765 ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE
698dcdb6
VZ
6766
6767fi
10f2d63a
VZ
6768
6769
6770 eval "$ac_cv_use_statline"
6771 if test "$no_cache" != 1; then
6772 echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp
6773 fi
6774
6775 if test "$wxUSE_STATLINE" = yes; then
698dcdb6 6776 echo "$ac_t""yes" 1>&6
10f2d63a 6777 else
698dcdb6 6778 echo "$ac_t""no" 1>&6
10f2d63a 6779 fi
698dcdb6 6780
10f2d63a 6781
1e6feb95 6782 echo $ac_n "checking for --enable-stattext""... $ac_c" 1>&6
19bc6aad 6783echo "configure:6784: checking for --enable-stattext" >&5
1e6feb95
VZ
6784 no_cache=0
6785 # Check whether --enable-stattext or --disable-stattext was given.
6786if test "${enable_stattext+set}" = set; then
6787 enableval="$enable_stattext"
6788
6789 if test "$enableval" = yes; then
6790 ac_cv_use_stattext='wxUSE_STATTEXT=yes'
6791 else
6792 ac_cv_use_stattext='wxUSE_STATTEXT=no'
6793 fi
6794
6795else
6796
6797 LINE=`grep "wxUSE_STATTEXT" ${wx_arg_cache_file}`
6798 if test "x$LINE" != x ; then
6799 eval "DEFAULT_$LINE"
6800 else
6801 no_cache=1
6802 fi
6803
6804 ac_cv_use_stattext='wxUSE_STATTEXT='$DEFAULT_wxUSE_STATTEXT
6805
6806fi
6807
6808
6809 eval "$ac_cv_use_stattext"
6810 if test "$no_cache" != 1; then
6811 echo $ac_cv_use_stattext >> ${wx_arg_cache_file}.tmp
6812 fi
6813
6814 if test "$wxUSE_STATTEXT" = yes; then
6815 echo "$ac_t""yes" 1>&6
6816 else
6817 echo "$ac_t""no" 1>&6
6818 fi
6819
6820
698dcdb6 6821 echo $ac_n "checking for --enable-statusbar""... $ac_c" 1>&6
19bc6aad 6822echo "configure:6823: checking for --enable-statusbar" >&5
10f2d63a
VZ
6823 no_cache=0
6824 # Check whether --enable-statusbar or --disable-statusbar was given.
6825if test "${enable_statusbar+set}" = set; then
6826 enableval="$enable_statusbar"
698dcdb6 6827
10f2d63a
VZ
6828 if test "$enableval" = yes; then
6829 ac_cv_use_statusbar='wxUSE_STATUSBAR=yes'
6830 else
6831 ac_cv_use_statusbar='wxUSE_STATUSBAR=no'
6832 fi
698dcdb6 6833
10f2d63a 6834else
698dcdb6 6835
10f2d63a
VZ
6836 LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}`
6837 if test "x$LINE" != x ; then
6838 eval "DEFAULT_$LINE"
6839 else
6840 no_cache=1
6841 fi
6842
6843 ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR
698dcdb6
VZ
6844
6845fi
10f2d63a
VZ
6846
6847
6848 eval "$ac_cv_use_statusbar"
6849 if test "$no_cache" != 1; then
6850 echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp
6851 fi
6852
6853 if test "$wxUSE_STATUSBAR" = yes; then
698dcdb6 6854 echo "$ac_t""yes" 1>&6
10f2d63a 6855 else
698dcdb6 6856 echo "$ac_t""no" 1>&6
10f2d63a 6857 fi
698dcdb6 6858
10f2d63a 6859
698dcdb6 6860 echo $ac_n "checking for --enable-tabdialog""... $ac_c" 1>&6
19bc6aad 6861echo "configure:6862: checking for --enable-tabdialog" >&5
10f2d63a
VZ
6862 no_cache=0
6863 # Check whether --enable-tabdialog or --disable-tabdialog was given.
6864if test "${enable_tabdialog+set}" = set; then
6865 enableval="$enable_tabdialog"
698dcdb6 6866
10f2d63a
VZ
6867 if test "$enableval" = yes; then
6868 ac_cv_use_tabdialog='wxUSE_TABDIALOG=yes'
6869 else
6870 ac_cv_use_tabdialog='wxUSE_TABDIALOG=no'
6871 fi
698dcdb6 6872
10f2d63a 6873else
698dcdb6 6874
10f2d63a
VZ
6875 LINE=`grep "wxUSE_TABDIALOG" ${wx_arg_cache_file}`
6876 if test "x$LINE" != x ; then
6877 eval "DEFAULT_$LINE"
6878 else
6879 no_cache=1
6880 fi
6881
6882 ac_cv_use_tabdialog='wxUSE_TABDIALOG='$DEFAULT_wxUSE_TABDIALOG
698dcdb6
VZ
6883
6884fi
10f2d63a
VZ
6885
6886
6887 eval "$ac_cv_use_tabdialog"
6888 if test "$no_cache" != 1; then
6889 echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp
6890 fi
6891
6892 if test "$wxUSE_TABDIALOG" = yes; then
698dcdb6 6893 echo "$ac_t""yes" 1>&6
10f2d63a 6894 else
698dcdb6 6895 echo "$ac_t""no" 1>&6
10f2d63a 6896 fi
698dcdb6 6897
10f2d63a 6898
1e6feb95 6899 echo $ac_n "checking for --enable-textctrl""... $ac_c" 1>&6
19bc6aad 6900echo "configure:6901: checking for --enable-textctrl" >&5
1e6feb95
VZ
6901 no_cache=0
6902 # Check whether --enable-textctrl or --disable-textctrl was given.
6903if test "${enable_textctrl+set}" = set; then
6904 enableval="$enable_textctrl"
6905
6906 if test "$enableval" = yes; then
6907 ac_cv_use_textctrl='wxUSE_TEXTCTRL=yes'
6908 else
6909 ac_cv_use_textctrl='wxUSE_TEXTCTRL=no'
6910 fi
6911
6912else
6913
6914 LINE=`grep "wxUSE_TEXTCTRL" ${wx_arg_cache_file}`
6915 if test "x$LINE" != x ; then
6916 eval "DEFAULT_$LINE"
6917 else
6918 no_cache=1
6919 fi
6920
6921 ac_cv_use_textctrl='wxUSE_TEXTCTRL='$DEFAULT_wxUSE_TEXTCTRL
6922
6923fi
6924
6925
6926 eval "$ac_cv_use_textctrl"
6927 if test "$no_cache" != 1; then
6928 echo $ac_cv_use_textctrl >> ${wx_arg_cache_file}.tmp
6929 fi
6930
6931 if test "$wxUSE_TEXTCTRL" = yes; then
6932 echo "$ac_t""yes" 1>&6
6933 else
6934 echo "$ac_t""no" 1>&6
6935 fi
6936
6937
698dcdb6 6938 echo $ac_n "checking for --enable-togglebtn""... $ac_c" 1>&6
19bc6aad 6939echo "configure:6940: checking for --enable-togglebtn" >&5
1db8dc4a
VZ
6940 no_cache=0
6941 # Check whether --enable-togglebtn or --disable-togglebtn was given.
6942if test "${enable_togglebtn+set}" = set; then
6943 enableval="$enable_togglebtn"
698dcdb6 6944
1db8dc4a
VZ
6945 if test "$enableval" = yes; then
6946 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes'
6947 else
6948 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=no'
6949 fi
698dcdb6 6950
1db8dc4a 6951else
698dcdb6 6952
1db8dc4a
VZ
6953 LINE=`grep "wxUSE_TOGGLEBTN" ${wx_arg_cache_file}`
6954 if test "x$LINE" != x ; then
6955 eval "DEFAULT_$LINE"
6956 else
6957 no_cache=1
6958 fi
6959
6960 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN='$DEFAULT_wxUSE_TOGGLEBTN
698dcdb6
VZ
6961
6962fi
1db8dc4a
VZ
6963
6964
6965 eval "$ac_cv_use_togglebtn"
6966 if test "$no_cache" != 1; then
6967 echo $ac_cv_use_togglebtn >> ${wx_arg_cache_file}.tmp
6968 fi
6969
6970 if test "$wxUSE_TOGGLEBTN" = yes; then
698dcdb6 6971 echo "$ac_t""yes" 1>&6
1db8dc4a 6972 else
698dcdb6 6973 echo "$ac_t""no" 1>&6
1db8dc4a 6974 fi
698dcdb6 6975
1db8dc4a 6976
698dcdb6 6977 echo $ac_n "checking for --enable-toolbar""... $ac_c" 1>&6
19bc6aad 6978echo "configure:6979: checking for --enable-toolbar" >&5
10f2d63a
VZ
6979 no_cache=0
6980 # Check whether --enable-toolbar or --disable-toolbar was given.
6981if test "${enable_toolbar+set}" = set; then
6982 enableval="$enable_toolbar"
698dcdb6 6983
10f2d63a
VZ
6984 if test "$enableval" = yes; then
6985 ac_cv_use_toolbar='wxUSE_TOOLBAR=yes'
6986 else
6987 ac_cv_use_toolbar='wxUSE_TOOLBAR=no'
6988 fi
698dcdb6 6989
10f2d63a 6990else
698dcdb6 6991
10f2d63a
VZ
6992 LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}`
6993 if test "x$LINE" != x ; then
6994 eval "DEFAULT_$LINE"
6995 else
6996 no_cache=1
6997 fi
6998
6999 ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR
698dcdb6
VZ
7000
7001fi
10f2d63a
VZ
7002
7003
7004 eval "$ac_cv_use_toolbar"
7005 if test "$no_cache" != 1; then
7006 echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp
7007 fi
7008
7009 if test "$wxUSE_TOOLBAR" = yes; then
698dcdb6 7010 echo "$ac_t""yes" 1>&6
10f2d63a 7011 else
698dcdb6 7012 echo "$ac_t""no" 1>&6
10f2d63a 7013 fi
698dcdb6 7014
10f2d63a 7015
698dcdb6 7016 echo $ac_n "checking for --enable-tbarnative""... $ac_c" 1>&6
19bc6aad 7017echo "configure:7018: checking for --enable-tbarnative" >&5
360d6699
VZ
7018 no_cache=0
7019 # Check whether --enable-tbarnative or --disable-tbarnative was given.
7020if test "${enable_tbarnative+set}" = set; then
7021 enableval="$enable_tbarnative"
698dcdb6 7022
360d6699
VZ
7023 if test "$enableval" = yes; then
7024 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes'
7025 else
7026 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no'
7027 fi
698dcdb6 7028
360d6699 7029else
698dcdb6 7030
360d6699
VZ
7031 LINE=`grep "wxUSE_TOOLBAR_NATIVE" ${wx_arg_cache_file}`
7032 if test "x$LINE" != x ; then
7033 eval "DEFAULT_$LINE"
7034 else
7035 no_cache=1
7036 fi
7037
7038 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE='$DEFAULT_wxUSE_TOOLBAR_NATIVE
698dcdb6
VZ
7039
7040fi
360d6699
VZ
7041
7042
7043 eval "$ac_cv_use_tbarnative"
7044 if test "$no_cache" != 1; then
7045 echo $ac_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp
7046 fi
7047
7048 if test "$wxUSE_TOOLBAR_NATIVE" = yes; then
698dcdb6 7049 echo "$ac_t""yes" 1>&6
360d6699 7050 else
698dcdb6 7051 echo "$ac_t""no" 1>&6
360d6699 7052 fi
698dcdb6 7053
360d6699 7054
698dcdb6 7055 echo $ac_n "checking for --enable-tbarsmpl""... $ac_c" 1>&6
19bc6aad 7056echo "configure:7057: checking for --enable-tbarsmpl" >&5
360d6699
VZ
7057 no_cache=0
7058 # Check whether --enable-tbarsmpl or --disable-tbarsmpl was given.
7059if test "${enable_tbarsmpl+set}" = set; then
7060 enableval="$enable_tbarsmpl"
698dcdb6 7061
360d6699
VZ
7062 if test "$enableval" = yes; then
7063 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=yes'
7064 else
7065 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=no'
7066 fi
698dcdb6 7067
360d6699 7068else
698dcdb6 7069
360d6699
VZ
7070 LINE=`grep "wxUSE_TOOLBAR_SIMPLE" ${wx_arg_cache_file}`
7071 if test "x$LINE" != x ; then
7072 eval "DEFAULT_$LINE"
7073 else
7074 no_cache=1
7075 fi
7076
7077 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE='$DEFAULT_wxUSE_TOOLBAR_SIMPLE
698dcdb6
VZ
7078
7079fi
360d6699
VZ
7080
7081
7082 eval "$ac_cv_use_tbarsmpl"
7083 if test "$no_cache" != 1; then
7084 echo $ac_cv_use_tbarsmpl >> ${wx_arg_cache_file}.tmp
7085 fi
7086
7087 if test "$wxUSE_TOOLBAR_SIMPLE" = yes; then
698dcdb6 7088 echo "$ac_t""yes" 1>&6
360d6699 7089 else
698dcdb6 7090 echo "$ac_t""no" 1>&6
360d6699 7091 fi
698dcdb6 7092
360d6699 7093
698dcdb6 7094 echo $ac_n "checking for --enable-treectrl""... $ac_c" 1>&6
19bc6aad 7095echo "configure:7096: checking for --enable-treectrl" >&5
10f2d63a
VZ
7096 no_cache=0
7097 # Check whether --enable-treectrl or --disable-treectrl was given.
7098if test "${enable_treectrl+set}" = set; then
7099 enableval="$enable_treectrl"
698dcdb6 7100
10f2d63a
VZ
7101 if test "$enableval" = yes; then
7102 ac_cv_use_treectrl='wxUSE_TREECTRL=yes'
7103 else
7104 ac_cv_use_treectrl='wxUSE_TREECTRL=no'
7105 fi
698dcdb6 7106
10f2d63a 7107else
698dcdb6 7108
10f2d63a
VZ
7109 LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}`
7110 if test "x$LINE" != x ; then
7111 eval "DEFAULT_$LINE"
7112 else
7113 no_cache=1
7114 fi
7115
7116 ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL
698dcdb6
VZ
7117
7118fi
10f2d63a
VZ
7119
7120
1e6feb95
VZ
7121 eval "$ac_cv_use_treectrl"
7122 if test "$no_cache" != 1; then
7123 echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp
7124 fi
7125
7126 if test "$wxUSE_TREECTRL" = yes; then
7127 echo "$ac_t""yes" 1>&6
7128 else
7129 echo "$ac_t""no" 1>&6
7130 fi
7131
7132
9926e4a4 7133 echo $ac_n "checking for --enable-tipwindow""... $ac_c" 1>&6
19bc6aad 7134echo "configure:7135: checking for --enable-tipwindow" >&5
9926e4a4
VZ
7135 no_cache=0
7136 # Check whether --enable-tipwindow or --disable-tipwindow was given.
7137if test "${enable_tipwindow+set}" = set; then
7138 enableval="$enable_tipwindow"
7139
7140 if test "$enableval" = yes; then
7141 ac_cv_use_tipwindow='wxUSE_TIPWINDOW=yes'
7142 else
7143 ac_cv_use_tipwindow='wxUSE_TIPWINDOW=no'
7144 fi
7145
7146else
7147
7148 LINE=`grep "wxUSE_TIPWINDOW" ${wx_arg_cache_file}`
7149 if test "x$LINE" != x ; then
7150 eval "DEFAULT_$LINE"
7151 else
7152 no_cache=1
7153 fi
7154
7155 ac_cv_use_tipwindow='wxUSE_TIPWINDOW='$DEFAULT_wxUSE_TIPWINDOW
7156
7157fi
7158
7159
7160 eval "$ac_cv_use_tipwindow"
7161 if test "$no_cache" != 1; then
7162 echo $ac_cv_use_tipwindow >> ${wx_arg_cache_file}.tmp
7163 fi
7164
7165 if test "$wxUSE_TIPWINDOW" = yes; then
7166 echo "$ac_t""yes" 1>&6
7167 else
7168 echo "$ac_t""no" 1>&6
7169 fi
7170
7171
9f41d601 7172 echo $ac_n "checking for --enable-popupwin""... $ac_c" 1>&6
19bc6aad 7173echo "configure:7174: checking for --enable-popupwin" >&5
9f41d601
RR
7174 no_cache=0
7175 # Check whether --enable-popupwin or --disable-popupwin was given.
7176if test "${enable_popupwin+set}" = set; then
7177 enableval="$enable_popupwin"
7178
7179 if test "$enableval" = yes; then
7180 ac_cv_use_popupwin='wxUSE_POPUPWIN=yes'
7181 else
7182 ac_cv_use_popupwin='wxUSE_POPUPWIN=no'
7183 fi
7184
7185else
7186
7187 LINE=`grep "wxUSE_POPUPWIN" ${wx_arg_cache_file}`
7188 if test "x$LINE" != x ; then
7189 eval "DEFAULT_$LINE"
7190 else
7191 no_cache=1
7192 fi
7193
7194 ac_cv_use_popupwin='wxUSE_POPUPWIN='$DEFAULT_wxUSE_POPUPWIN
7195
7196fi
7197
7198
7199 eval "$ac_cv_use_popupwin"
7200 if test "$no_cache" != 1; then
7201 echo $ac_cv_use_popupwin >> ${wx_arg_cache_file}.tmp
7202 fi
7203
7204 if test "$wxUSE_POPUPWIN" = yes; then
7205 echo "$ac_t""yes" 1>&6
7206 else
7207 echo "$ac_t""no" 1>&6
7208 fi
7209
7210
1e6feb95
VZ
7211
7212
7213 echo $ac_n "checking for --enable-commondlg""... $ac_c" 1>&6
19bc6aad 7214echo "configure:7215: checking for --enable-commondlg" >&5
1e6feb95
VZ
7215 no_cache=0
7216 # Check whether --enable-commondlg or --disable-commondlg was given.
7217if test "${enable_commondlg+set}" = set; then
7218 enableval="$enable_commondlg"
7219
7220 if test "$enableval" = yes; then
7221 ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes'
7222 else
7223 ac_cv_use_commondlg='wxUSE_COMMONDLGS=no'
7224 fi
7225
7226else
7227
7228 LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}`
7229 if test "x$LINE" != x ; then
7230 eval "DEFAULT_$LINE"
7231 else
7232 no_cache=1
7233 fi
7234
7235 ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS
7236
7237fi
7238
7239
7240 eval "$ac_cv_use_commondlg"
7241 if test "$no_cache" != 1; then
7242 echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp
7243 fi
7244
7245 if test "$wxUSE_COMMONDLGS" = yes; then
7246 echo "$ac_t""yes" 1>&6
7247 else
7248 echo "$ac_t""no" 1>&6
7249 fi
7250
7251
7252 echo $ac_n "checking for --enable-choicedlg""... $ac_c" 1>&6
19bc6aad 7253echo "configure:7254: checking for --enable-choicedlg" >&5
1e6feb95
VZ
7254 no_cache=0
7255 # Check whether --enable-choicedlg or --disable-choicedlg was given.
7256if test "${enable_choicedlg+set}" = set; then
7257 enableval="$enable_choicedlg"
7258
7259 if test "$enableval" = yes; then
7260 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=yes'
7261 else
7262 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=no'
7263 fi
7264
7265else
7266
7267 LINE=`grep "wxUSE_CHOICEDLG" ${wx_arg_cache_file}`
7268 if test "x$LINE" != x ; then
7269 eval "DEFAULT_$LINE"
7270 else
7271 no_cache=1
7272 fi
7273
7274 ac_cv_use_choicedlg='wxUSE_CHOICEDLG='$DEFAULT_wxUSE_CHOICEDLG
7275
7276fi
7277
7278
7279 eval "$ac_cv_use_choicedlg"
7280 if test "$no_cache" != 1; then
7281 echo $ac_cv_use_choicedlg >> ${wx_arg_cache_file}.tmp
7282 fi
7283
7284 if test "$wxUSE_CHOICEDLG" = yes; then
7285 echo "$ac_t""yes" 1>&6
7286 else
7287 echo "$ac_t""no" 1>&6
7288 fi
7289
7290
7291 echo $ac_n "checking for --enable-coldlg""... $ac_c" 1>&6
19bc6aad 7292echo "configure:7293: checking for --enable-coldlg" >&5
1e6feb95
VZ
7293 no_cache=0
7294 # Check whether --enable-coldlg or --disable-coldlg was given.
7295if test "${enable_coldlg+set}" = set; then
7296 enableval="$enable_coldlg"
7297
7298 if test "$enableval" = yes; then
7299 ac_cv_use_coldlg='wxUSE_COLOURDLG=yes'
7300 else
7301 ac_cv_use_coldlg='wxUSE_COLOURDLG=no'
7302 fi
7303
7304else
7305
7306 LINE=`grep "wxUSE_COLOURDLG" ${wx_arg_cache_file}`
7307 if test "x$LINE" != x ; then
7308 eval "DEFAULT_$LINE"
7309 else
7310 no_cache=1
7311 fi
7312
7313 ac_cv_use_coldlg='wxUSE_COLOURDLG='$DEFAULT_wxUSE_COLOURDLG
7314
7315fi
7316
7317
7318 eval "$ac_cv_use_coldlg"
7319 if test "$no_cache" != 1; then
7320 echo $ac_cv_use_coldlg >> ${wx_arg_cache_file}.tmp
7321 fi
7322
7323 if test "$wxUSE_COLOURDLG" = yes; then
7324 echo "$ac_t""yes" 1>&6
7325 else
7326 echo "$ac_t""no" 1>&6
7327 fi
7328
7329
7330 echo $ac_n "checking for --enable-filedlg""... $ac_c" 1>&6
19bc6aad 7331echo "configure:7332: checking for --enable-filedlg" >&5
1e6feb95
VZ
7332 no_cache=0
7333 # Check whether --enable-filedlg or --disable-filedlg was given.
7334if test "${enable_filedlg+set}" = set; then
7335 enableval="$enable_filedlg"
7336
7337 if test "$enableval" = yes; then
7338 ac_cv_use_filedlg='wxUSE_FILEDLG=yes'
7339 else
7340 ac_cv_use_filedlg='wxUSE_FILEDLG=no'
7341 fi
7342
7343else
7344
7345 LINE=`grep "wxUSE_FILEDLG" ${wx_arg_cache_file}`
7346 if test "x$LINE" != x ; then
7347 eval "DEFAULT_$LINE"
7348 else
7349 no_cache=1
7350 fi
7351
7352 ac_cv_use_filedlg='wxUSE_FILEDLG='$DEFAULT_wxUSE_FILEDLG
7353
7354fi
7355
7356
7357 eval "$ac_cv_use_filedlg"
7358 if test "$no_cache" != 1; then
7359 echo $ac_cv_use_filedlg >> ${wx_arg_cache_file}.tmp
7360 fi
7361
7362 if test "$wxUSE_FILEDLG" = yes; then
7363 echo "$ac_t""yes" 1>&6
7364 else
7365 echo "$ac_t""no" 1>&6
7366 fi
7367
7368
69d27ff7 7369 echo $ac_n "checking for --enable-finddlg""... $ac_c" 1>&6
19bc6aad 7370echo "configure:7371: checking for --enable-finddlg" >&5
8db37e06 7371 no_cache=0
69d27ff7
MB
7372 # Check whether --enable-finddlg or --disable-finddlg was given.
7373if test "${enable_finddlg+set}" = set; then
7374 enableval="$enable_finddlg"
8db37e06
VZ
7375
7376 if test "$enableval" = yes; then
69d27ff7 7377 ac_cv_use_finddlg='wxUSE_FINDREPLDLG=yes'
8db37e06 7378 else
69d27ff7 7379 ac_cv_use_finddlg='wxUSE_FINDREPLDLG=no'
8db37e06
VZ
7380 fi
7381
7382else
7383
7384 LINE=`grep "wxUSE_FINDREPLDLG" ${wx_arg_cache_file}`
7385 if test "x$LINE" != x ; then
7386 eval "DEFAULT_$LINE"
7387 else
7388 no_cache=1
7389 fi
7390
69d27ff7 7391 ac_cv_use_finddlg='wxUSE_FINDREPLDLG='$DEFAULT_wxUSE_FINDREPLDLG
8db37e06
VZ
7392
7393fi
7394
7395
69d27ff7 7396 eval "$ac_cv_use_finddlg"
8db37e06 7397 if test "$no_cache" != 1; then
69d27ff7 7398 echo $ac_cv_use_finddlg >> ${wx_arg_cache_file}.tmp
8db37e06
VZ
7399 fi
7400
7401 if test "$wxUSE_FINDREPLDLG" = yes; then
7402 echo "$ac_t""yes" 1>&6
7403 else
7404 echo "$ac_t""no" 1>&6
7405 fi
7406
7407
1e6feb95 7408 echo $ac_n "checking for --enable-fontdlg""... $ac_c" 1>&6
19bc6aad 7409echo "configure:7410: checking for --enable-fontdlg" >&5
1e6feb95
VZ
7410 no_cache=0
7411 # Check whether --enable-fontdlg or --disable-fontdlg was given.
7412if test "${enable_fontdlg+set}" = set; then
7413 enableval="$enable_fontdlg"
7414
7415 if test "$enableval" = yes; then
7416 ac_cv_use_fontdlg='wxUSE_FONTDLG=yes'
7417 else
7418 ac_cv_use_fontdlg='wxUSE_FONTDLG=no'
7419 fi
7420
7421else
7422
7423 LINE=`grep "wxUSE_FONTDLG" ${wx_arg_cache_file}`
7424 if test "x$LINE" != x ; then
7425 eval "DEFAULT_$LINE"
7426 else
7427 no_cache=1
7428 fi
7429
7430 ac_cv_use_fontdlg='wxUSE_FONTDLG='$DEFAULT_wxUSE_FONTDLG
7431
7432fi
7433
7434
7435 eval "$ac_cv_use_fontdlg"
7436 if test "$no_cache" != 1; then
7437 echo $ac_cv_use_fontdlg >> ${wx_arg_cache_file}.tmp
7438 fi
7439
7440 if test "$wxUSE_FONTDLG" = yes; then
7441 echo "$ac_t""yes" 1>&6
7442 else
7443 echo "$ac_t""no" 1>&6
7444 fi
7445
7446
7447 echo $ac_n "checking for --enable-dirdlg""... $ac_c" 1>&6
19bc6aad 7448echo "configure:7449: checking for --enable-dirdlg" >&5
1e6feb95
VZ
7449 no_cache=0
7450 # Check whether --enable-dirdlg or --disable-dirdlg was given.
7451if test "${enable_dirdlg+set}" = set; then
7452 enableval="$enable_dirdlg"
7453
7454 if test "$enableval" = yes; then
7455 ac_cv_use_dirdlg='wxUSE_DIRDLG=yes'
7456 else
7457 ac_cv_use_dirdlg='wxUSE_DIRDLG=no'
7458 fi
7459
7460else
7461
7462 LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}`
7463 if test "x$LINE" != x ; then
7464 eval "DEFAULT_$LINE"
7465 else
7466 no_cache=1
7467 fi
7468
7469 ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG
7470
7471fi
7472
7473
7474 eval "$ac_cv_use_dirdlg"
10f2d63a 7475 if test "$no_cache" != 1; then
1e6feb95 7476 echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
7477 fi
7478
1e6feb95 7479 if test "$wxUSE_DIRDLG" = yes; then
698dcdb6 7480 echo "$ac_t""yes" 1>&6
10f2d63a 7481 else
698dcdb6 7482 echo "$ac_t""no" 1>&6
10f2d63a 7483 fi
698dcdb6
VZ
7484
7485
1e6feb95 7486 echo $ac_n "checking for --enable-msgdlg""... $ac_c" 1>&6
19bc6aad 7487echo "configure:7488: checking for --enable-msgdlg" >&5
10f2d63a 7488 no_cache=0
1e6feb95
VZ
7489 # Check whether --enable-msgdlg or --disable-msgdlg was given.
7490if test "${enable_msgdlg+set}" = set; then
7491 enableval="$enable_msgdlg"
698dcdb6 7492
10f2d63a 7493 if test "$enableval" = yes; then
1e6feb95 7494 ac_cv_use_msgdlg='wxUSE_MSGDLG=yes'
10f2d63a 7495 else
1e6feb95 7496 ac_cv_use_msgdlg='wxUSE_MSGDLG=no'
10f2d63a 7497 fi
698dcdb6 7498
10f2d63a 7499else
698dcdb6 7500
1e6feb95 7501 LINE=`grep "wxUSE_MSGDLG" ${wx_arg_cache_file}`
10f2d63a
VZ
7502 if test "x$LINE" != x ; then
7503 eval "DEFAULT_$LINE"
7504 else
7505 no_cache=1
7506 fi
7507
1e6feb95 7508 ac_cv_use_msgdlg='wxUSE_MSGDLG='$DEFAULT_wxUSE_MSGDLG
698dcdb6
VZ
7509
7510fi
10f2d63a
VZ
7511
7512
1e6feb95 7513 eval "$ac_cv_use_msgdlg"
10f2d63a 7514 if test "$no_cache" != 1; then
1e6feb95 7515 echo $ac_cv_use_msgdlg >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
7516 fi
7517
1e6feb95 7518 if test "$wxUSE_MSGDLG" = yes; then
698dcdb6 7519 echo "$ac_t""yes" 1>&6
10f2d63a 7520 else
698dcdb6 7521 echo "$ac_t""no" 1>&6
10f2d63a 7522 fi
698dcdb6 7523
10f2d63a 7524
1e6feb95 7525 echo $ac_n "checking for --enable-numberdlg""... $ac_c" 1>&6
19bc6aad 7526echo "configure:7527: checking for --enable-numberdlg" >&5
10f2d63a 7527 no_cache=0
1e6feb95
VZ
7528 # Check whether --enable-numberdlg or --disable-numberdlg was given.
7529if test "${enable_numberdlg+set}" = set; then
7530 enableval="$enable_numberdlg"
698dcdb6 7531
10f2d63a 7532 if test "$enableval" = yes; then
1e6feb95 7533 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=yes'
10f2d63a 7534 else
1e6feb95 7535 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=no'
10f2d63a 7536 fi
698dcdb6 7537
10f2d63a 7538else
698dcdb6 7539
1e6feb95 7540 LINE=`grep "wxUSE_NUMBERDLG" ${wx_arg_cache_file}`
10f2d63a
VZ
7541 if test "x$LINE" != x ; then
7542 eval "DEFAULT_$LINE"
7543 else
7544 no_cache=1
7545 fi
7546
1e6feb95 7547 ac_cv_use_numberdlg='wxUSE_NUMBERDLG='$DEFAULT_wxUSE_NUMBERDLG
698dcdb6
VZ
7548
7549fi
10f2d63a
VZ
7550
7551
1e6feb95 7552 eval "$ac_cv_use_numberdlg"
10f2d63a 7553 if test "$no_cache" != 1; then
1e6feb95 7554 echo $ac_cv_use_numberdlg >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
7555 fi
7556
1e6feb95 7557 if test "$wxUSE_NUMBERDLG" = yes; then
698dcdb6 7558 echo "$ac_t""yes" 1>&6
10f2d63a 7559 else
698dcdb6 7560 echo "$ac_t""no" 1>&6
10f2d63a 7561 fi
698dcdb6 7562
10f2d63a 7563
cbca9943 7564 echo $ac_n "checking for --enable-splash""... $ac_c" 1>&6
19bc6aad 7565echo "configure:7566: checking for --enable-splash" >&5
cbca9943
VZ
7566 no_cache=0
7567 # Check whether --enable-splash or --disable-splash was given.
7568if test "${enable_splash+set}" = set; then
7569 enableval="$enable_splash"
7570
7571 if test "$enableval" = yes; then
7572 ac_cv_use_splash='wxUSE_SPLASH=yes'
7573 else
7574 ac_cv_use_splash='wxUSE_SPLASH=no'
7575 fi
7576
7577else
7578
7579 LINE=`grep "wxUSE_SPLASH" ${wx_arg_cache_file}`
7580 if test "x$LINE" != x ; then
7581 eval "DEFAULT_$LINE"
7582 else
7583 no_cache=1
7584 fi
7585
7586 ac_cv_use_splash='wxUSE_SPLASH='$DEFAULT_wxUSE_SPLASH
7587
7588fi
7589
7590
7591 eval "$ac_cv_use_splash"
7592 if test "$no_cache" != 1; then
7593 echo $ac_cv_use_splash >> ${wx_arg_cache_file}.tmp
7594 fi
7595
7596 if test "$wxUSE_SPLASH" = yes; then
7597 echo "$ac_t""yes" 1>&6
7598 else
7599 echo "$ac_t""no" 1>&6
7600 fi
7601
7602
698dcdb6 7603 echo $ac_n "checking for --enable-textdlg""... $ac_c" 1>&6
19bc6aad 7604echo "configure:7605: checking for --enable-textdlg" >&5
10f2d63a
VZ
7605 no_cache=0
7606 # Check whether --enable-textdlg or --disable-textdlg was given.
7607if test "${enable_textdlg+set}" = set; then
7608 enableval="$enable_textdlg"
698dcdb6 7609
10f2d63a
VZ
7610 if test "$enableval" = yes; then
7611 ac_cv_use_textdlg='wxUSE_TEXTDLG=yes'
7612 else
7613 ac_cv_use_textdlg='wxUSE_TEXTDLG=no'
7614 fi
698dcdb6 7615
10f2d63a 7616else
698dcdb6 7617
10f2d63a
VZ
7618 LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}`
7619 if test "x$LINE" != x ; then
7620 eval "DEFAULT_$LINE"
7621 else
7622 no_cache=1
7623 fi
7624
7625 ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG
698dcdb6
VZ
7626
7627fi
10f2d63a
VZ
7628
7629
7630 eval "$ac_cv_use_textdlg"
7631 if test "$no_cache" != 1; then
7632 echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp
7633 fi
7634
7635 if test "$wxUSE_TEXTDLG" = yes; then
698dcdb6 7636 echo "$ac_t""yes" 1>&6
10f2d63a 7637 else
698dcdb6 7638 echo "$ac_t""no" 1>&6
10f2d63a 7639 fi
698dcdb6 7640
10f2d63a 7641
698dcdb6 7642 echo $ac_n "checking for --enable-tipdlg""... $ac_c" 1>&6
19bc6aad 7643echo "configure:7644: checking for --enable-tipdlg" >&5
10f2d63a
VZ
7644 no_cache=0
7645 # Check whether --enable-tipdlg or --disable-tipdlg was given.
7646if test "${enable_tipdlg+set}" = set; then
7647 enableval="$enable_tipdlg"
698dcdb6 7648
10f2d63a
VZ
7649 if test "$enableval" = yes; then
7650 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes'
7651 else
7652 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no'
7653 fi
698dcdb6 7654
10f2d63a 7655else
698dcdb6 7656
10f2d63a
VZ
7657 LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}`
7658 if test "x$LINE" != x ; then
7659 eval "DEFAULT_$LINE"
7660 else
7661 no_cache=1
7662 fi
7663
7664 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS
698dcdb6
VZ
7665
7666fi
10f2d63a
VZ
7667
7668
7669 eval "$ac_cv_use_tipdlg"
7670 if test "$no_cache" != 1; then
7671 echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp
7672 fi
7673
7674 if test "$wxUSE_STARTUP_TIPS" = yes; then
698dcdb6 7675 echo "$ac_t""yes" 1>&6
10f2d63a 7676 else
698dcdb6 7677 echo "$ac_t""no" 1>&6
10f2d63a 7678 fi
698dcdb6 7679
10f2d63a 7680
698dcdb6 7681 echo $ac_n "checking for --enable-progressdlg""... $ac_c" 1>&6
19bc6aad 7682echo "configure:7683: checking for --enable-progressdlg" >&5
10f2d63a
VZ
7683 no_cache=0
7684 # Check whether --enable-progressdlg or --disable-progressdlg was given.
7685if test "${enable_progressdlg+set}" = set; then
7686 enableval="$enable_progressdlg"
698dcdb6 7687
10f2d63a
VZ
7688 if test "$enableval" = yes; then
7689 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes'
7690 else
7691 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no'
7692 fi
698dcdb6 7693
10f2d63a 7694else
698dcdb6 7695
10f2d63a
VZ
7696 LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}`
7697 if test "x$LINE" != x ; then
7698 eval "DEFAULT_$LINE"
7699 else
7700 no_cache=1
7701 fi
7702
7703 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG
698dcdb6
VZ
7704
7705fi
10f2d63a
VZ
7706
7707
7708 eval "$ac_cv_use_progressdlg"
7709 if test "$no_cache" != 1; then
7710 echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp
7711 fi
7712
7713 if test "$wxUSE_PROGRESSDLG" = yes; then
698dcdb6 7714 echo "$ac_t""yes" 1>&6
10f2d63a 7715 else
698dcdb6 7716 echo "$ac_t""no" 1>&6
10f2d63a 7717 fi
698dcdb6 7718
10f2d63a 7719
b1f5d087 7720 echo $ac_n "checking for --enable-wizarddlg""... $ac_c" 1>&6
19bc6aad 7721echo "configure:7722: checking for --enable-wizarddlg" >&5
b1f5d087
VZ
7722 no_cache=0
7723 # Check whether --enable-wizarddlg or --disable-wizarddlg was given.
7724if test "${enable_wizarddlg+set}" = set; then
7725 enableval="$enable_wizarddlg"
7726
7727 if test "$enableval" = yes; then
7728 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=yes'
7729 else
7730 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=no'
7731 fi
7732
7733else
7734
7735 LINE=`grep "wxUSE_WIZARDDLG" ${wx_arg_cache_file}`
7736 if test "x$LINE" != x ; then
7737 eval "DEFAULT_$LINE"
7738 else
7739 no_cache=1
7740 fi
7741
7742 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG='$DEFAULT_wxUSE_WIZARDDLG
7743
7744fi
7745
7746
7747 eval "$ac_cv_use_wizarddlg"
7748 if test "$no_cache" != 1; then
7749 echo $ac_cv_use_wizarddlg >> ${wx_arg_cache_file}.tmp
7750 fi
7751
7752 if test "$wxUSE_WIZARDDLG" = yes; then
7753 echo "$ac_t""yes" 1>&6
7754 else
7755 echo "$ac_t""no" 1>&6
7756 fi
7757
7758
7759
7760
1e6feb95 7761 echo $ac_n "checking for --enable-menus""... $ac_c" 1>&6
19bc6aad 7762echo "configure:7763: checking for --enable-menus" >&5
1e6feb95
VZ
7763 no_cache=0
7764 # Check whether --enable-menus or --disable-menus was given.
7765if test "${enable_menus+set}" = set; then
7766 enableval="$enable_menus"
7767
7768 if test "$enableval" = yes; then
7769 ac_cv_use_menus='wxUSE_MENUS=yes'
7770 else
7771 ac_cv_use_menus='wxUSE_MENUS=no'
7772 fi
7773
7774else
7775
7776 LINE=`grep "wxUSE_MENUS" ${wx_arg_cache_file}`
7777 if test "x$LINE" != x ; then
7778 eval "DEFAULT_$LINE"
7779 else
7780 no_cache=1
7781 fi
7782
7783 ac_cv_use_menus='wxUSE_MENUS='$DEFAULT_wxUSE_MENUS
7784
7785fi
7786
7787
7788 eval "$ac_cv_use_menus"
7789 if test "$no_cache" != 1; then
7790 echo $ac_cv_use_menus >> ${wx_arg_cache_file}.tmp
7791 fi
7792
7793 if test "$wxUSE_MENUS" = yes; then
7794 echo "$ac_t""yes" 1>&6
7795 else
7796 echo "$ac_t""no" 1>&6
7797 fi
7798
7799
698dcdb6 7800 echo $ac_n "checking for --enable-miniframe""... $ac_c" 1>&6
19bc6aad 7801echo "configure:7802: checking for --enable-miniframe" >&5
10f2d63a
VZ
7802 no_cache=0
7803 # Check whether --enable-miniframe or --disable-miniframe was given.
7804if test "${enable_miniframe+set}" = set; then
7805 enableval="$enable_miniframe"
698dcdb6 7806
10f2d63a
VZ
7807 if test "$enableval" = yes; then
7808 ac_cv_use_miniframe='wxUSE_MINIFRAME=yes'
7809 else
7810 ac_cv_use_miniframe='wxUSE_MINIFRAME=no'
7811 fi
698dcdb6 7812
10f2d63a 7813else
698dcdb6 7814
10f2d63a
VZ
7815 LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}`
7816 if test "x$LINE" != x ; then
7817 eval "DEFAULT_$LINE"
7818 else
7819 no_cache=1
7820 fi
7821
7822 ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME
698dcdb6
VZ
7823
7824fi
10f2d63a
VZ
7825
7826
7827 eval "$ac_cv_use_miniframe"
7828 if test "$no_cache" != 1; then
7829 echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp
7830 fi
7831
7832 if test "$wxUSE_MINIFRAME" = yes; then
698dcdb6 7833 echo "$ac_t""yes" 1>&6
10f2d63a 7834 else
698dcdb6 7835 echo "$ac_t""no" 1>&6
10f2d63a 7836 fi
698dcdb6 7837
10f2d63a 7838
698dcdb6 7839 echo $ac_n "checking for --enable-tooltips""... $ac_c" 1>&6
19bc6aad 7840echo "configure:7841: checking for --enable-tooltips" >&5
10f2d63a
VZ
7841 no_cache=0
7842 # Check whether --enable-tooltips or --disable-tooltips was given.
7843if test "${enable_tooltips+set}" = set; then
7844 enableval="$enable_tooltips"
698dcdb6 7845
10f2d63a
VZ
7846 if test "$enableval" = yes; then
7847 ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes'
7848 else
7849 ac_cv_use_tooltips='wxUSE_TOOLTIPS=no'
7850 fi
698dcdb6 7851
10f2d63a 7852else
698dcdb6 7853
10f2d63a
VZ
7854 LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}`
7855 if test "x$LINE" != x ; then
7856 eval "DEFAULT_$LINE"
7857 else
7858 no_cache=1
7859 fi
7860
7861 ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS
698dcdb6
VZ
7862
7863fi
10f2d63a
VZ
7864
7865
7866 eval "$ac_cv_use_tooltips"
7867 if test "$no_cache" != 1; then
7868 echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp
7869 fi
7870
7871 if test "$wxUSE_TOOLTIPS" = yes; then
698dcdb6 7872 echo "$ac_t""yes" 1>&6
10f2d63a 7873 else
698dcdb6 7874 echo "$ac_t""no" 1>&6
10f2d63a 7875 fi
698dcdb6 7876
10f2d63a 7877
698dcdb6 7878 echo $ac_n "checking for --enable-splines""... $ac_c" 1>&6
19bc6aad 7879echo "configure:7880: checking for --enable-splines" >&5
10f2d63a
VZ
7880 no_cache=0
7881 # Check whether --enable-splines or --disable-splines was given.
7882if test "${enable_splines+set}" = set; then
7883 enableval="$enable_splines"
698dcdb6 7884
10f2d63a
VZ
7885 if test "$enableval" = yes; then
7886 ac_cv_use_splines='wxUSE_SPLINES=yes'
7887 else
7888 ac_cv_use_splines='wxUSE_SPLINES=no'
7889 fi
698dcdb6 7890
10f2d63a 7891else
698dcdb6 7892
10f2d63a
VZ
7893 LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}`
7894 if test "x$LINE" != x ; then
7895 eval "DEFAULT_$LINE"
7896 else
7897 no_cache=1
7898 fi
7899
7900 ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES
698dcdb6
VZ
7901
7902fi
10f2d63a
VZ
7903
7904
7905 eval "$ac_cv_use_splines"
7906 if test "$no_cache" != 1; then
7907 echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp
7908 fi
7909
7910 if test "$wxUSE_SPLINES" = yes; then
698dcdb6 7911 echo "$ac_t""yes" 1>&6
10f2d63a 7912 else
698dcdb6 7913 echo "$ac_t""no" 1>&6
10f2d63a 7914 fi
698dcdb6 7915
10f2d63a 7916
698dcdb6 7917 echo $ac_n "checking for --enable-validators""... $ac_c" 1>&6
19bc6aad 7918echo "configure:7919: checking for --enable-validators" >&5
10f2d63a
VZ
7919 no_cache=0
7920 # Check whether --enable-validators or --disable-validators was given.
7921if test "${enable_validators+set}" = set; then
7922 enableval="$enable_validators"
698dcdb6 7923
10f2d63a
VZ
7924 if test "$enableval" = yes; then
7925 ac_cv_use_validators='wxUSE_VALIDATORS=yes'
7926 else
7927 ac_cv_use_validators='wxUSE_VALIDATORS=no'
7928 fi
698dcdb6 7929
10f2d63a 7930else
698dcdb6 7931
10f2d63a
VZ
7932 LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}`
7933 if test "x$LINE" != x ; then
7934 eval "DEFAULT_$LINE"
7935 else
7936 no_cache=1
7937 fi
7938
7939 ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS
698dcdb6
VZ
7940
7941fi
10f2d63a
VZ
7942
7943
7944 eval "$ac_cv_use_validators"
7945 if test "$no_cache" != 1; then
7946 echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp
7947 fi
7948
7949 if test "$wxUSE_VALIDATORS" = yes; then
698dcdb6 7950 echo "$ac_t""yes" 1>&6
10f2d63a 7951 else
698dcdb6 7952 echo "$ac_t""no" 1>&6
10f2d63a 7953 fi
698dcdb6 7954
10f2d63a 7955
698dcdb6 7956 echo $ac_n "checking for --enable-busyinfo""... $ac_c" 1>&6
19bc6aad 7957echo "configure:7958: checking for --enable-busyinfo" >&5
10f2d63a
VZ
7958 no_cache=0
7959 # Check whether --enable-busyinfo or --disable-busyinfo was given.
7960if test "${enable_busyinfo+set}" = set; then
7961 enableval="$enable_busyinfo"
698dcdb6 7962
10f2d63a
VZ
7963 if test "$enableval" = yes; then
7964 ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes'
7965 else
7966 ac_cv_use_busyinfo='wxUSE_BUSYINFO=no'
7967 fi
698dcdb6 7968
10f2d63a 7969else
698dcdb6 7970
10f2d63a
VZ
7971 LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}`
7972 if test "x$LINE" != x ; then
7973 eval "DEFAULT_$LINE"
7974 else
7975 no_cache=1
7976 fi
7977
7978 ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO
698dcdb6
VZ
7979
7980fi
10f2d63a
VZ
7981
7982
7983 eval "$ac_cv_use_busyinfo"
7984 if test "$no_cache" != 1; then
7985 echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp
7986 fi
7987
7988 if test "$wxUSE_BUSYINFO" = yes; then
698dcdb6 7989 echo "$ac_t""yes" 1>&6
10f2d63a 7990 else
698dcdb6 7991 echo "$ac_t""no" 1>&6
10f2d63a 7992 fi
698dcdb6 7993
10f2d63a 7994
698dcdb6 7995 echo $ac_n "checking for --enable-joystick""... $ac_c" 1>&6
19bc6aad 7996echo "configure:7997: checking for --enable-joystick" >&5
f6bcfd97
BP
7997 no_cache=0
7998 # Check whether --enable-joystick or --disable-joystick was given.
7999if test "${enable_joystick+set}" = set; then
8000 enableval="$enable_joystick"
698dcdb6 8001
f6bcfd97
BP
8002 if test "$enableval" = yes; then
8003 ac_cv_use_joystick='wxUSE_JOYSTICK=yes'
8004 else
8005 ac_cv_use_joystick='wxUSE_JOYSTICK=no'
8006 fi
698dcdb6 8007
f6bcfd97 8008else
698dcdb6 8009
f6bcfd97
BP
8010 LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}`
8011 if test "x$LINE" != x ; then
8012 eval "DEFAULT_$LINE"
8013 else
8014 no_cache=1
8015 fi
8016
8017 ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK
698dcdb6
VZ
8018
8019fi
f6bcfd97
BP
8020
8021
8022 eval "$ac_cv_use_joystick"
8023 if test "$no_cache" != 1; then
8024 echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp
8025 fi
8026
8027 if test "$wxUSE_JOYSTICK" = yes; then
698dcdb6 8028 echo "$ac_t""yes" 1>&6
f6bcfd97 8029 else
698dcdb6 8030 echo "$ac_t""no" 1>&6
f6bcfd97 8031 fi
698dcdb6
VZ
8032
8033
1e6feb95 8034 echo $ac_n "checking for --enable-metafile""... $ac_c" 1>&6
19bc6aad 8035echo "configure:8036: checking for --enable-metafile" >&5
1e6feb95
VZ
8036 no_cache=0
8037 # Check whether --enable-metafile or --disable-metafile was given.
8038if test "${enable_metafile+set}" = set; then
8039 enableval="$enable_metafile"
8040
8041 if test "$enableval" = yes; then
8042 ac_cv_use_metafile='wxUSE_METAFILE=yes'
8043 else
8044 ac_cv_use_metafile='wxUSE_METAFILE=no'
8045 fi
8046
8047else
8048
8049 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
8050 if test "x$LINE" != x ; then
8051 eval "DEFAULT_$LINE"
8052 else
8053 no_cache=1
8054 fi
8055
8056 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
8057
8058fi
8059
8060
8061 eval "$ac_cv_use_metafile"
8062 if test "$no_cache" != 1; then
8063 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
8064 fi
8065
8066 if test "$wxUSE_METAFILE" = yes; then
8067 echo "$ac_t""yes" 1>&6
8068 else
8069 echo "$ac_t""no" 1>&6
8070 fi
8071
8072
24fd6d87 8073 echo $ac_n "checking for --enable-dragimage""... $ac_c" 1>&6
19bc6aad 8074echo "configure:8075: checking for --enable-dragimage" >&5
24fd6d87
VZ
8075 no_cache=0
8076 # Check whether --enable-dragimage or --disable-dragimage was given.
8077if test "${enable_dragimage+set}" = set; then
8078 enableval="$enable_dragimage"
8079
8080 if test "$enableval" = yes; then
8081 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=yes'
8082 else
8083 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=no'
8084 fi
8085
8086else
8087
8088 LINE=`grep "wxUSE_DRAGIMAGE" ${wx_arg_cache_file}`
8089 if test "x$LINE" != x ; then
8090 eval "DEFAULT_$LINE"
8091 else
8092 no_cache=1
8093 fi
8094
8095 ac_cv_use_dragimage='wxUSE_DRAGIMAGE='$DEFAULT_wxUSE_DRAGIMAGE
8096
8097fi
8098
8099
8100 eval "$ac_cv_use_dragimage"
8101 if test "$no_cache" != 1; then
8102 echo $ac_cv_use_dragimage >> ${wx_arg_cache_file}.tmp
8103 fi
8104
8105 if test "$wxUSE_DRAGIMAGE" = yes; then
8106 echo "$ac_t""yes" 1>&6
8107 else
8108 echo "$ac_t""no" 1>&6
8109 fi
8110
8111
10f2d63a 8112
698dcdb6 8113
edae8572 8114 echo $ac_n "checking for --enable-palette""... $ac_c" 1>&6
19bc6aad 8115echo "configure:8116: checking for --enable-palette" >&5
edae8572
VZ
8116 no_cache=0
8117 # Check whether --enable-palette or --disable-palette was given.
8118if test "${enable_palette+set}" = set; then
8119 enableval="$enable_palette"
8120
8121 if test "$enableval" = yes; then
8122 ac_cv_use_palette='wxUSE_PALETTE=yes'
8123 else
8124 ac_cv_use_palette='wxUSE_PALETTE=no'
8125 fi
8126
8127else
8128
8129 LINE=`grep "wxUSE_PALETTE" ${wx_arg_cache_file}`
8130 if test "x$LINE" != x ; then
8131 eval "DEFAULT_$LINE"
8132 else
8133 no_cache=1
8134 fi
8135
8136 ac_cv_use_palette='wxUSE_PALETTE='$DEFAULT_wxUSE_PALETTE
8137
8138fi
8139
8140
8141 eval "$ac_cv_use_palette"
8142 if test "$no_cache" != 1; then
8143 echo $ac_cv_use_palette >> ${wx_arg_cache_file}.tmp
8144 fi
8145
8146 if test "$wxUSE_PALETTE" = yes; then
8147 echo "$ac_t""yes" 1>&6
8148 else
8149 echo "$ac_t""no" 1>&6
8150 fi
8151
8152
698dcdb6 8153 echo $ac_n "checking for --enable-image""... $ac_c" 1>&6
19bc6aad 8154echo "configure:8155: checking for --enable-image" >&5
0046ff7c
VS
8155 no_cache=0
8156 # Check whether --enable-image or --disable-image was given.
8157if test "${enable_image+set}" = set; then
8158 enableval="$enable_image"
698dcdb6 8159
0046ff7c
VS
8160 if test "$enableval" = yes; then
8161 ac_cv_use_image='wxUSE_IMAGE=yes'
8162 else
8163 ac_cv_use_image='wxUSE_IMAGE=no'
8164 fi
698dcdb6 8165
0046ff7c 8166else
698dcdb6 8167
0046ff7c
VS
8168 LINE=`grep "wxUSE_IMAGE" ${wx_arg_cache_file}`
8169 if test "x$LINE" != x ; then
8170 eval "DEFAULT_$LINE"
8171 else
8172 no_cache=1
8173 fi
8174
8175 ac_cv_use_image='wxUSE_IMAGE='$DEFAULT_wxUSE_IMAGE
698dcdb6
VZ
8176
8177fi
0046ff7c
VS
8178
8179
8180 eval "$ac_cv_use_image"
8181 if test "$no_cache" != 1; then
8182 echo $ac_cv_use_image >> ${wx_arg_cache_file}.tmp
8183 fi
8184
8185 if test "$wxUSE_IMAGE" = yes; then
698dcdb6 8186 echo "$ac_t""yes" 1>&6
0046ff7c 8187 else
698dcdb6 8188 echo "$ac_t""no" 1>&6
0046ff7c 8189 fi
698dcdb6 8190
0046ff7c 8191
698dcdb6 8192 echo $ac_n "checking for --enable-gif""... $ac_c" 1>&6
19bc6aad 8193echo "configure:8194: checking for --enable-gif" >&5
10f2d63a
VZ
8194 no_cache=0
8195 # Check whether --enable-gif or --disable-gif was given.
8196if test "${enable_gif+set}" = set; then
8197 enableval="$enable_gif"
698dcdb6 8198
10f2d63a
VZ
8199 if test "$enableval" = yes; then
8200 ac_cv_use_gif='wxUSE_GIF=yes'
8201 else
8202 ac_cv_use_gif='wxUSE_GIF=no'
8203 fi
698dcdb6 8204
10f2d63a 8205else
698dcdb6 8206
10f2d63a
VZ
8207 LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}`
8208 if test "x$LINE" != x ; then
8209 eval "DEFAULT_$LINE"
8210 else
8211 no_cache=1
8212 fi
8213
8214 ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF
698dcdb6
VZ
8215
8216fi
10f2d63a
VZ
8217
8218
8219 eval "$ac_cv_use_gif"
8220 if test "$no_cache" != 1; then
8221 echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp
8222 fi
8223
8224 if test "$wxUSE_GIF" = yes; then
698dcdb6 8225 echo "$ac_t""yes" 1>&6
10f2d63a 8226 else
698dcdb6 8227 echo "$ac_t""no" 1>&6
10f2d63a 8228 fi
698dcdb6 8229
10f2d63a 8230
698dcdb6 8231 echo $ac_n "checking for --enable-pcx""... $ac_c" 1>&6
19bc6aad 8232echo "configure:8233: checking for --enable-pcx" >&5
10f2d63a
VZ
8233 no_cache=0
8234 # Check whether --enable-pcx or --disable-pcx was given.
8235if test "${enable_pcx+set}" = set; then
8236 enableval="$enable_pcx"
698dcdb6 8237
10f2d63a
VZ
8238 if test "$enableval" = yes; then
8239 ac_cv_use_pcx='wxUSE_PCX=yes'
8240 else
8241 ac_cv_use_pcx='wxUSE_PCX=no'
8242 fi
698dcdb6 8243
10f2d63a 8244else
698dcdb6 8245
10f2d63a
VZ
8246 LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}`
8247 if test "x$LINE" != x ; then
8248 eval "DEFAULT_$LINE"
8249 else
8250 no_cache=1
8251 fi
8252
8253 ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX
698dcdb6
VZ
8254
8255fi
10f2d63a
VZ
8256
8257
8258 eval "$ac_cv_use_pcx"
8259 if test "$no_cache" != 1; then
8260 echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp
8261 fi
8262
8263 if test "$wxUSE_PCX" = yes; then
698dcdb6 8264 echo "$ac_t""yes" 1>&6
10f2d63a 8265 else
698dcdb6 8266 echo "$ac_t""no" 1>&6
10f2d63a 8267 fi
698dcdb6 8268
10f2d63a 8269
4b6b4dfc 8270 echo $ac_n "checking for --enable-iff""... $ac_c" 1>&6
19bc6aad 8271echo "configure:8272: checking for --enable-iff" >&5
4b6b4dfc
RR
8272 no_cache=0
8273 # Check whether --enable-iff or --disable-iff was given.
8274if test "${enable_iff+set}" = set; then
8275 enableval="$enable_iff"
8276
8277 if test "$enableval" = yes; then
8278 ac_cv_use_iff='wxUSE_IFF=yes'
8279 else
8280 ac_cv_use_iff='wxUSE_IFF=no'
8281 fi
8282
8283else
8284
8285 LINE=`grep "wxUSE_IFF" ${wx_arg_cache_file}`
8286 if test "x$LINE" != x ; then
8287 eval "DEFAULT_$LINE"
8288 else
8289 no_cache=1
8290 fi
8291
8292 ac_cv_use_iff='wxUSE_IFF='$DEFAULT_wxUSE_IFF
8293
8294fi
8295
8296
8297 eval "$ac_cv_use_iff"
8298 if test "$no_cache" != 1; then
8299 echo $ac_cv_use_iff >> ${wx_arg_cache_file}.tmp
8300 fi
8301
8302 if test "$wxUSE_IFF" = yes; then
8303 echo "$ac_t""yes" 1>&6
8304 else
8305 echo "$ac_t""no" 1>&6
8306 fi
8307
8308
698dcdb6 8309 echo $ac_n "checking for --enable-pnm""... $ac_c" 1>&6
19bc6aad 8310echo "configure:8311: checking for --enable-pnm" >&5
10f2d63a
VZ
8311 no_cache=0
8312 # Check whether --enable-pnm or --disable-pnm was given.
8313if test "${enable_pnm+set}" = set; then
8314 enableval="$enable_pnm"
698dcdb6 8315
10f2d63a
VZ
8316 if test "$enableval" = yes; then
8317 ac_cv_use_pnm='wxUSE_PNM=yes'
8318 else
8319 ac_cv_use_pnm='wxUSE_PNM=no'
8320 fi
698dcdb6 8321
10f2d63a 8322else
698dcdb6 8323
10f2d63a
VZ
8324 LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}`
8325 if test "x$LINE" != x ; then
8326 eval "DEFAULT_$LINE"
8327 else
8328 no_cache=1
8329 fi
8330
8331 ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM
698dcdb6
VZ
8332
8333fi
10f2d63a
VZ
8334
8335
8336 eval "$ac_cv_use_pnm"
8337 if test "$no_cache" != 1; then
8338 echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp
8339 fi
8340
8341 if test "$wxUSE_PNM" = yes; then
698dcdb6 8342 echo "$ac_t""yes" 1>&6
10f2d63a 8343 else
698dcdb6 8344 echo "$ac_t""no" 1>&6
10f2d63a 8345 fi
698dcdb6 8346
10f2d63a 8347
69d27ff7 8348 echo $ac_n "checking for --enable-xpm""... $ac_c" 1>&6
19bc6aad 8349echo "configure:8350: checking for --enable-xpm" >&5
0046ff7c 8350 no_cache=0
69d27ff7
MB
8351 # Check whether --enable-xpm or --disable-xpm was given.
8352if test "${enable_xpm+set}" = set; then
8353 enableval="$enable_xpm"
698dcdb6 8354
0046ff7c 8355 if test "$enableval" = yes; then
69d27ff7 8356 ac_cv_use_xpm='wxUSE_XPM=yes'
0046ff7c 8357 else
69d27ff7 8358 ac_cv_use_xpm='wxUSE_XPM=no'
0046ff7c 8359 fi
698dcdb6 8360
0046ff7c 8361else
698dcdb6 8362
0046ff7c
VS
8363 LINE=`grep "wxUSE_XPM" ${wx_arg_cache_file}`
8364 if test "x$LINE" != x ; then
8365 eval "DEFAULT_$LINE"
8366 else
8367 no_cache=1
8368 fi
8369
69d27ff7 8370 ac_cv_use_xpm='wxUSE_XPM='$DEFAULT_wxUSE_XPM
698dcdb6
VZ
8371
8372fi
0046ff7c
VS
8373
8374
69d27ff7 8375 eval "$ac_cv_use_xpm"
0046ff7c 8376 if test "$no_cache" != 1; then
69d27ff7 8377 echo $ac_cv_use_xpm >> ${wx_arg_cache_file}.tmp
0046ff7c
VS
8378 fi
8379
8380 if test "$wxUSE_XPM" = yes; then
698dcdb6 8381 echo "$ac_t""yes" 1>&6
0046ff7c 8382 else
698dcdb6 8383 echo "$ac_t""no" 1>&6
0046ff7c 8384 fi
698dcdb6 8385
0046ff7c 8386
c7206e64 8387 echo $ac_n "checking for --enable-ico_cur""... $ac_c" 1>&6
19bc6aad 8388echo "configure:8389: checking for --enable-ico_cur" >&5
658974ae 8389 no_cache=0
c7206e64
VS
8390 # Check whether --enable-ico_cur or --disable-ico_cur was given.
8391if test "${enable_ico_cur+set}" = set; then
8392 enableval="$enable_ico_cur"
658974ae
VS
8393
8394 if test "$enableval" = yes; then
c7206e64 8395 ac_cv_use_ico_cur='wxUSE_ICO_CUR=yes'
658974ae 8396 else
c7206e64 8397 ac_cv_use_ico_cur='wxUSE_ICO_CUR=no'
658974ae
VS
8398 fi
8399
8400else
8401
8402 LINE=`grep "wxUSE_ICO_CUR" ${wx_arg_cache_file}`
8403 if test "x$LINE" != x ; then
8404 eval "DEFAULT_$LINE"
8405 else
8406 no_cache=1
8407 fi
8408
c7206e64 8409 ac_cv_use_ico_cur='wxUSE_ICO_CUR='$DEFAULT_wxUSE_ICO_CUR
658974ae
VS
8410
8411fi
8412
8413
c7206e64 8414 eval "$ac_cv_use_ico_cur"
658974ae 8415 if test "$no_cache" != 1; then
c7206e64 8416 echo $ac_cv_use_ico_cur >> ${wx_arg_cache_file}.tmp
658974ae
VS
8417 fi
8418
8419 if test "$wxUSE_ICO_CUR" = yes; then
8420 echo "$ac_t""yes" 1>&6
8421 else
8422 echo "$ac_t""no" 1>&6
8423 fi
8424
8425
b12915c1
VZ
8426fi
8427
d558c907
VS
8428case "${host}" in
8429 *-pc-os2_emx | *-pc-os2-emx )
8430 LEX_STEM="lexyy"
8431 ;;
8432 *)
8433 PATH_IFS=':'
8434 LEX_STEM="lex.yy"
8435 ;;
8436esac
8437
8438
698dcdb6 8439
10f2d63a
VZ
8440 echo "saving argument cache $wx_arg_cache_file"
8441 mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file}
698dcdb6 8442
10f2d63a 8443
698dcdb6
VZ
8444
8445echo $ac_n "checking for toolkit""... $ac_c" 1>&6
19bc6aad 8446echo "configure:8447: checking for toolkit" >&5
10f2d63a
VZ
8447
8448if test "$wxUSE_GUI" = "yes"; then
8449
3a922bb4
RL
8450 if test "$USE_BEOS" = 1; then
8451 { echo "configure: error: BeOS GUI is not supported yet, use --disable-gui" 1>&2; exit 1; }
8452 fi
b12915c1 8453
3a922bb4
RL
8454 if test "$TOOLKIT_GIVEN" = 1; then
8455 for toolkit in `echo $ALL_TOOLKITS`; do
8456 var=wxUSE_$toolkit
8457 eval "value=\$${var}"
8458 eval "$var=`echo \$value | sed -e "s/yes/1/" -e "s/no/0/"`"
8459 done
10f2d63a 8460 else
3a922bb4
RL
8461 for toolkit in `echo $ALL_TOOLKITS`; do
8462 if test "$has_toolkit_in_cache" != 1; then
8463 var=DEFAULT_DEFAULT_wxUSE_$toolkit
8464 else
8465 var=DEFAULT_wxUSE_$toolkit
8466 fi
8467 eval "wxUSE_$toolkit=\$${var}"
8468 done
10f2d63a 8469 fi
10f2d63a 8470
3a922bb4 8471 NUM_TOOLKITS=`expr ${wxUSE_GTK:-0} + ${wxUSE_MOTIF:-0} + ${wxUSE_MAC:-0} \
f79bd02d 8472 + ${wxUSE_WINE:-0} + ${wxUSE_MSW:-0} + ${wxUSE_MGL:-0} + ${wxUSE_MICROWIN:-0} + ${wxUSE_X11:-0}`
10f2d63a 8473
d558c907 8474 case "${host}" in
6fa882bd 8475 *-pc-os2_emx | *-pc-os2-emx )
3a922bb4 8476 NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}`
3a922bb4 8477 esac
10f2d63a 8478
3a922bb4
RL
8479 case "$NUM_TOOLKITS" in
8480 1)
8481 ;;
8482 0)
8483 { echo "configure: error: Please specify a toolkit - cannot determine the default for ${host}" 1>&2; exit 1; }
8484 ;;
8485 *)
8486 { echo "configure: error: Please specify at most one toolkit (may be some are cached?)" 1>&2; exit 1; }
8487 esac
10f2d63a 8488
3a922bb4
RL
8489 for toolkit in `echo $ALL_TOOLKITS`; do
8490 var=wxUSE_$toolkit
8491 eval "value=\$${var}"
8492 if test "x$value" != x; then
8493 cache_var=CACHE_$toolkit
8494 eval "cache=\$${cache_var}"
8495 if test "$cache" = 1; then
8496 echo "$var=$value" >> ${wx_arg_cache_file}
8497 fi
8498 if test "$value" = 1; then
8499 toolkit_echo=`echo $toolkit | tr [A-Z] [a-z]`
8500 echo "$ac_t""$toolkit_echo" 1>&6
8501 fi
8502 fi
8503 done
10f2d63a 8504else
3a922bb4 8505 echo "$ac_t""base ($host_alias hosted) only" 1>&6
10f2d63a
VZ
8506fi
8507
698dcdb6
VZ
8508
8509cat > confcache <<\EOF
10f2d63a
VZ
8510# This file is a shell script that caches the results of configure
8511# tests run on this system so they can be shared between configure
698dcdb6
VZ
8512# scripts and configure runs. It is not useful on other systems.
8513# If it contains results you don't want to keep, you may remove or edit it.
10f2d63a 8514#
698dcdb6
VZ
8515# By default, configure uses ./config.cache as the cache file,
8516# creating it if it does not exist already. You can give configure
8517# the --cache-file=FILE option to use a different cache file; that is
8518# what configure does when it calls configure scripts in
8519# subdirectories, so they share the cache.
8520# Giving --cache-file=/dev/null disables caching, for debugging configure.
8521# config.status only pays attention to the cache file if you give it the
8522# --recheck option to rerun configure.
10f2d63a 8523#
698dcdb6 8524EOF
10f2d63a
VZ
8525# The following way of writing the cache mishandles newlines in values,
8526# but we know of no workaround that is simple, portable, and efficient.
8527# So, don't put newlines in cache variables' values.
8528# Ultrix sh set writes to stderr and can't be redirected directly,
8529# and sets the high bit in the cache file unless we assign to the vars.
698dcdb6
VZ
8530(set) 2>&1 |
8531 case `(ac_space=' '; set | grep ac_space) 2>&1` in
8532 *ac_space=\ *)
8533 # `set' does not quote correctly, so add quotes (double-quote substitution
8534 # turns \\\\ into \\, and sed turns \\ into \).
8535 sed -n \
8536 -e "s/'/'\\\\''/g" \
8537 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
8538 ;;
8539 *)
8540 # `set' quotes correctly as required by POSIX, so do not add quotes.
8541 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
8542 ;;
8543 esac >> confcache
8544if cmp -s $cache_file confcache; then
8545 :
8546else
10f2d63a 8547 if test -w $cache_file; then
698dcdb6
VZ
8548 echo "updating cache $cache_file"
8549 cat confcache > $cache_file
10f2d63a
VZ
8550 else
8551 echo "not updating unwritable cache $cache_file"
8552 fi
8553fi
8554rm -f confcache
8555
698dcdb6 8556
e59890c3 8557if test "$build" != "$host" ; then
9d353d4a 8558 if test "$USE_WIN32" = 1 -o "$USE_DOS" = 1 -o "$USE_UNIX"; then
3a922bb4
RL
8559 CC=$host_alias-gcc
8560 CXX=$host_alias-c++
8561 AR=$host_alias-ar
8562 RANLIB=$host_alias-ranlib
8563 DLLTOOL=$host_alias-dlltool
8564 RESCOMP=$host_alias-windres
8565 LD=$host_alias-ld
8566 NM=$host_alias-nm
8567 STRIP=$host_alias-strip
8568 else
8569 { echo "configure: error: $build_alias -> $host_alias cross compilation not supported yet." 1>&2; exit 1; }
8570 fi
10f2d63a
VZ
8571fi
8572
ec603395 8573CFLAGS=${CFLAGS:=}
698dcdb6 8574# Extract the first word of "gcc", so it can be a program name with args.
1e487827 8575set dummy gcc; ac_word=$2
698dcdb6 8576echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
19bc6aad 8577echo "configure:8578: checking for $ac_word" >&5
698dcdb6
VZ
8578if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
8579 echo $ac_n "(cached) $ac_c" 1>&6
6232543b
VS
8580else
8581 if test -n "$CC"; then
8582 ac_cv_prog_CC="$CC" # Let the user override the test.
10f2d63a 8583else
698dcdb6
VZ
8584 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8585 ac_dummy="$PATH"
8586 for ac_dir in $ac_dummy; do
8587 test -z "$ac_dir" && ac_dir=.
8588 if test -f $ac_dir/$ac_word; then
8589 ac_cv_prog_CC="gcc"
8590 break
8591 fi
8592 done
8593 IFS="$ac_save_ifs"
10f2d63a 8594fi
6232543b 8595fi
698dcdb6 8596CC="$ac_cv_prog_CC"
6232543b 8597if test -n "$CC"; then
698dcdb6 8598 echo "$ac_t""$CC" 1>&6
1e487827 8599else
698dcdb6 8600 echo "$ac_t""no" 1>&6
1e487827 8601fi
6232543b 8602
1e487827
VS
8603if test -z "$CC"; then
8604 # Extract the first word of "cc", so it can be a program name with args.
8605set dummy cc; ac_word=$2
698dcdb6 8606echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
19bc6aad 8607echo "configure:8608: checking for $ac_word" >&5
698dcdb6
VZ
8608if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
8609 echo $ac_n "(cached) $ac_c" 1>&6
1e487827
VS
8610else
8611 if test -n "$CC"; then
8612 ac_cv_prog_CC="$CC" # Let the user override the test.
8613else
698dcdb6 8614 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1e487827 8615 ac_prog_rejected=no
698dcdb6
VZ
8616 ac_dummy="$PATH"
8617 for ac_dir in $ac_dummy; do
8618 test -z "$ac_dir" && ac_dir=.
8619 if test -f $ac_dir/$ac_word; then
8620 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
8621 ac_prog_rejected=yes
8622 continue
8623 fi
8624 ac_cv_prog_CC="cc"
8625 break
8626 fi
8627 done
8628 IFS="$ac_save_ifs"
1e487827
VS
8629if test $ac_prog_rejected = yes; then
8630 # We found a bogon in the path, so make sure we never use it.
8631 set dummy $ac_cv_prog_CC
8632 shift
698dcdb6 8633 if test $# -gt 0; then
1e487827
VS
8634 # We chose a different compiler from the bogus one.
8635 # However, it has the same basename, so the bogon will be chosen
8636 # first if we set CC to just the basename; use the full file name.
8637 shift
698dcdb6 8638 set dummy "$ac_dir/$ac_word" "$@"
1e487827
VS
8639 shift
8640 ac_cv_prog_CC="$@"
703e0a69 8641 fi
1e487827
VS
8642fi
8643fi
8644fi
698dcdb6 8645CC="$ac_cv_prog_CC"
1e487827 8646if test -n "$CC"; then
698dcdb6 8647 echo "$ac_t""$CC" 1>&6
703e0a69 8648else
698dcdb6 8649 echo "$ac_t""no" 1>&6
703e0a69 8650fi
1e487827 8651
698dcdb6
VZ
8652 if test -z "$CC"; then
8653 case "`uname -s`" in
8654 *win32* | *WIN32*)
8655 # Extract the first word of "cl", so it can be a program name with args.
8656set dummy cl; ac_word=$2
8657echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
19bc6aad 8658echo "configure:8659: checking for $ac_word" >&5
698dcdb6
VZ
8659if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
8660 echo $ac_n "(cached) $ac_c" 1>&6
1e487827
VS
8661else
8662 if test -n "$CC"; then
8663 ac_cv_prog_CC="$CC" # Let the user override the test.
703e0a69 8664else
698dcdb6
VZ
8665 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8666 ac_dummy="$PATH"
8667 for ac_dir in $ac_dummy; do
8668 test -z "$ac_dir" && ac_dir=.
8669 if test -f $ac_dir/$ac_word; then
8670 ac_cv_prog_CC="cl"
8671 break
8672 fi
8673 done
8674 IFS="$ac_save_ifs"
703e0a69 8675fi
1e487827 8676fi
698dcdb6 8677CC="$ac_cv_prog_CC"
1e487827 8678if test -n "$CC"; then
698dcdb6 8679 echo "$ac_t""$CC" 1>&6
1e487827 8680else
698dcdb6 8681 echo "$ac_t""no" 1>&6
1e487827 8682fi
698dcdb6
VZ
8683 ;;
8684 esac
8685 fi
8686 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1e487827
VS
8687fi
8688
698dcdb6 8689echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
19bc6aad 8690echo "configure:8691: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1e487827 8691
698dcdb6
VZ
8692ac_ext=c
8693# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8694ac_cpp='$CPP $CPPFLAGS'
8695ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8696ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8697cross_compiling=$ac_cv_prog_cc_cross
6232543b 8698
698dcdb6 8699cat > conftest.$ac_ext << EOF
1e487827 8700
19bc6aad 8701#line 8702 "configure"
1e487827
VS
8702#include "confdefs.h"
8703
698dcdb6
VZ
8704main(){return(0);}
8705EOF
19bc6aad 8706if { (eval echo configure:8707: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
8707 ac_cv_prog_cc_works=yes
8708 # If we can't run a trivial program, we are probably using a cross compiler.
8709 if (./conftest; exit) 2>/dev/null; then
8710 ac_cv_prog_cc_cross=no
8711 else
8712 ac_cv_prog_cc_cross=yes
8713 fi
8714else
8715 echo "configure: failed program was:" >&5
8716 cat conftest.$ac_ext >&5
8717 ac_cv_prog_cc_works=no
8718fi
8719rm -fr conftest*
8720ac_ext=c
8721# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8722ac_cpp='$CPP $CPPFLAGS'
8723ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8724ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8725cross_compiling=$ac_cv_prog_cc_cross
8726
8727echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
8728if test $ac_cv_prog_cc_works = no; then
8729 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
8730fi
8731echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
19bc6aad 8732echo "configure:8733: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
698dcdb6
VZ
8733echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
8734cross_compiling=$ac_cv_prog_cc_cross
8735
8736echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
19bc6aad 8737echo "configure:8738: checking whether we are using GNU C" >&5
698dcdb6
VZ
8738if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
8739 echo $ac_n "(cached) $ac_c" 1>&6
8740else
8741 cat > conftest.c <<EOF
8742#ifdef __GNUC__
8743 yes;
1e487827 8744#endif
698dcdb6 8745EOF
19bc6aad 8746if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:8747: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
698dcdb6
VZ
8747 ac_cv_prog_gcc=yes
8748else
8749 ac_cv_prog_gcc=no
8750fi
8751fi
1e487827 8752
698dcdb6 8753echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1e487827 8754
698dcdb6
VZ
8755if test $ac_cv_prog_gcc = yes; then
8756 GCC=yes
8757else
8758 GCC=
8759fi
1e487827 8760
698dcdb6
VZ
8761ac_test_CFLAGS="${CFLAGS+set}"
8762ac_save_CFLAGS="$CFLAGS"
8763CFLAGS=
8764echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
19bc6aad 8765echo "configure:8766: checking whether ${CC-cc} accepts -g" >&5
698dcdb6
VZ
8766if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
8767 echo $ac_n "(cached) $ac_c" 1>&6
8768else
8769 echo 'void f(){}' > conftest.c
8770if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
10f2d63a
VZ
8771 ac_cv_prog_cc_g=yes
8772else
698dcdb6 8773 ac_cv_prog_cc_g=no
10f2d63a 8774fi
698dcdb6
VZ
8775rm -f conftest*
8776
10f2d63a 8777fi
698dcdb6
VZ
8778
8779echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
10f2d63a 8780if test "$ac_test_CFLAGS" = set; then
698dcdb6 8781 CFLAGS="$ac_save_CFLAGS"
10f2d63a
VZ
8782elif test $ac_cv_prog_cc_g = yes; then
8783 if test "$GCC" = yes; then
8784 CFLAGS="-g -O2"
8785 else
8786 CFLAGS="-g"
8787 fi
8788else
8789 if test "$GCC" = yes; then
8790 CFLAGS="-O2"
8791 else
8792 CFLAGS=
8793 fi
8794fi
8795
8796
698dcdb6 8797echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
19bc6aad 8798echo "configure:8799: checking how to run the C preprocessor" >&5
10f2d63a
VZ
8799# On Suns, sometimes $CPP names a directory.
8800if test -n "$CPP" && test -d "$CPP"; then
8801 CPP=
8802fi
8803if test -z "$CPP"; then
698dcdb6
VZ
8804if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
8805 echo $ac_n "(cached) $ac_c" 1>&6
8806else
8807 # This must be in double quotes, not single quotes, because CPP may get
8808 # substituted into the Makefile and "${CC-cc}" will confuse make.
8809 CPP="${CC-cc} -E"
10f2d63a 8810 # On the NeXT, cc -E runs the code through the compiler's parser,
698dcdb6
VZ
8811 # not just through cpp.
8812 cat > conftest.$ac_ext <<EOF
19bc6aad 8813#line 8814 "configure"
10f2d63a
VZ
8814#include "confdefs.h"
8815#include <assert.h>
698dcdb6
VZ
8816Syntax Error
8817EOF
8818ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
19bc6aad 8819{ (eval echo configure:8820: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
8820ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8821if test -z "$ac_err"; then
10f2d63a
VZ
8822 :
8823else
698dcdb6
VZ
8824 echo "$ac_err" >&5
8825 echo "configure: failed program was:" >&5
10f2d63a 8826 cat conftest.$ac_ext >&5
698dcdb6
VZ
8827 rm -rf conftest*
8828 CPP="${CC-cc} -E -traditional-cpp"
8829 cat > conftest.$ac_ext <<EOF
19bc6aad 8830#line 8831 "configure"
10f2d63a 8831#include "confdefs.h"
698dcdb6
VZ
8832#include <assert.h>
8833Syntax Error
8834EOF
8835ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
19bc6aad 8836{ (eval echo configure:8837: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
8837ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8838if test -z "$ac_err"; then
8839 :
10f2d63a 8840else
698dcdb6
VZ
8841 echo "$ac_err" >&5
8842 echo "configure: failed program was:" >&5
10f2d63a 8843 cat conftest.$ac_ext >&5
698dcdb6
VZ
8844 rm -rf conftest*
8845 CPP="${CC-cc} -nologo -E"
8846 cat > conftest.$ac_ext <<EOF
19bc6aad 8847#line 8848 "configure"
10f2d63a
VZ
8848#include "confdefs.h"
8849#include <assert.h>
698dcdb6
VZ
8850Syntax Error
8851EOF
8852ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
19bc6aad 8853{ (eval echo configure:8854: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
8854ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8855if test -z "$ac_err"; then
10f2d63a
VZ
8856 :
8857else
698dcdb6
VZ
8858 echo "$ac_err" >&5
8859 echo "configure: failed program was:" >&5
10f2d63a 8860 cat conftest.$ac_ext >&5
698dcdb6
VZ
8861 rm -rf conftest*
8862 CPP=/lib/cpp
10f2d63a 8863fi
698dcdb6 8864rm -f conftest*
10f2d63a 8865fi
698dcdb6 8866rm -f conftest*
703e0a69 8867fi
698dcdb6
VZ
8868rm -f conftest*
8869 ac_cv_prog_CPP="$CPP"
8870fi
8871 CPP="$ac_cv_prog_CPP"
10f2d63a 8872else
698dcdb6 8873 ac_cv_prog_CPP="$CPP"
10f2d63a 8874fi
698dcdb6 8875echo "$ac_t""$CPP" 1>&6
10f2d63a 8876
698dcdb6
VZ
8877if test $ac_cv_prog_gcc = yes; then
8878 echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
19bc6aad 8879echo "configure:8880: checking whether ${CC-cc} needs -traditional" >&5
698dcdb6
VZ
8880if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
8881 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a
VZ
8882else
8883 ac_pattern="Autoconf.*'x'"
698dcdb6 8884 cat > conftest.$ac_ext <<EOF
19bc6aad 8885#line 8886 "configure"
10f2d63a
VZ
8886#include "confdefs.h"
8887#include <sgtty.h>
8888Autoconf TIOCGETP
698dcdb6 8889EOF
10f2d63a
VZ
8890if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8891 egrep "$ac_pattern" >/dev/null 2>&1; then
698dcdb6 8892 rm -rf conftest*
10f2d63a
VZ
8893 ac_cv_prog_gcc_traditional=yes
8894else
698dcdb6 8895 rm -rf conftest*
10f2d63a
VZ
8896 ac_cv_prog_gcc_traditional=no
8897fi
8898rm -f conftest*
8899
698dcdb6 8900
10f2d63a 8901 if test $ac_cv_prog_gcc_traditional = no; then
698dcdb6 8902 cat > conftest.$ac_ext <<EOF
19bc6aad 8903#line 8904 "configure"
10f2d63a
VZ
8904#include "confdefs.h"
8905#include <termio.h>
8906Autoconf TCGETA
698dcdb6 8907EOF
10f2d63a
VZ
8908if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8909 egrep "$ac_pattern" >/dev/null 2>&1; then
698dcdb6 8910 rm -rf conftest*
10f2d63a
VZ
8911 ac_cv_prog_gcc_traditional=yes
8912fi
8913rm -f conftest*
8914
8915 fi
8916fi
698dcdb6
VZ
8917
8918echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6
10f2d63a
VZ
8919 if test $ac_cv_prog_gcc_traditional = yes; then
8920 CC="$CC -traditional"
8921 fi
8922fi
8923
703e0a69 8924
698dcdb6
VZ
8925
8926ac_ext=C
8927# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1e487827 8928ac_cpp='$CXXCPP $CPPFLAGS'
698dcdb6
VZ
8929ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8930ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8931cross_compiling=$ac_cv_prog_cxx_cross
8932
8933
ec603395 8934CXXFLAGS=${CXXFLAGS:=}
698dcdb6
VZ
8935for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
8936do
8937# Extract the first word of "$ac_prog", so it can be a program name with args.
8938set dummy $ac_prog; ac_word=$2
8939echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
19bc6aad 8940echo "configure:8941: checking for $ac_word" >&5
698dcdb6
VZ
8941if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
8942 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a
VZ
8943else
8944 if test -n "$CXX"; then
8945 ac_cv_prog_CXX="$CXX" # Let the user override the test.
8946else
698dcdb6
VZ
8947 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8948 ac_dummy="$PATH"
8949 for ac_dir in $ac_dummy; do
8950 test -z "$ac_dir" && ac_dir=.
8951 if test -f $ac_dir/$ac_word; then
8952 ac_cv_prog_CXX="$ac_prog"
8953 break
8954 fi
8955 done
8956 IFS="$ac_save_ifs"
10f2d63a
VZ
8957fi
8958fi
698dcdb6 8959CXX="$ac_cv_prog_CXX"
10f2d63a 8960if test -n "$CXX"; then
698dcdb6 8961 echo "$ac_t""$CXX" 1>&6
10f2d63a 8962else
698dcdb6 8963 echo "$ac_t""no" 1>&6
10f2d63a
VZ
8964fi
8965
698dcdb6 8966test -n "$CXX" && break
10f2d63a 8967done
698dcdb6 8968test -n "$CXX" || CXX="gcc"
10f2d63a
VZ
8969
8970
698dcdb6 8971echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
19bc6aad 8972echo "configure:8973: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
10f2d63a 8973
698dcdb6
VZ
8974ac_ext=C
8975# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8976ac_cpp='$CXXCPP $CPPFLAGS'
8977ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8978ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8979cross_compiling=$ac_cv_prog_cxx_cross
703e0a69 8980
698dcdb6
VZ
8981cat > conftest.$ac_ext << EOF
8982
19bc6aad 8983#line 8984 "configure"
10f2d63a
VZ
8984#include "confdefs.h"
8985
698dcdb6
VZ
8986int main(){return(0);}
8987EOF
19bc6aad 8988if { (eval echo configure:8989: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
8989 ac_cv_prog_cxx_works=yes
8990 # If we can't run a trivial program, we are probably using a cross compiler.
8991 if (./conftest; exit) 2>/dev/null; then
8992 ac_cv_prog_cxx_cross=no
8993 else
8994 ac_cv_prog_cxx_cross=yes
8995 fi
8996else
8997 echo "configure: failed program was:" >&5
8998 cat conftest.$ac_ext >&5
8999 ac_cv_prog_cxx_works=no
9000fi
9001rm -fr conftest*
9002ac_ext=C
9003# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9004ac_cpp='$CXXCPP $CPPFLAGS'
9005ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9006ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9007cross_compiling=$ac_cv_prog_cxx_cross
9008
9009echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
9010if test $ac_cv_prog_cxx_works = no; then
9011 { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
9012fi
9013echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
19bc6aad 9014echo "configure:9015: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
698dcdb6
VZ
9015echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
9016cross_compiling=$ac_cv_prog_cxx_cross
9017
9018echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
19bc6aad 9019echo "configure:9020: checking whether we are using GNU C++" >&5
698dcdb6
VZ
9020if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
9021 echo $ac_n "(cached) $ac_c" 1>&6
9022else
9023 cat > conftest.C <<EOF
9024#ifdef __GNUC__
9025 yes;
10f2d63a 9026#endif
698dcdb6 9027EOF
19bc6aad 9028if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:9029: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
698dcdb6
VZ
9029 ac_cv_prog_gxx=yes
9030else
9031 ac_cv_prog_gxx=no
9032fi
9033fi
10f2d63a 9034
698dcdb6 9035echo "$ac_t""$ac_cv_prog_gxx" 1>&6
10f2d63a 9036
698dcdb6
VZ
9037if test $ac_cv_prog_gxx = yes; then
9038 GXX=yes
9039else
9040 GXX=
9041fi
10f2d63a 9042
698dcdb6
VZ
9043ac_test_CXXFLAGS="${CXXFLAGS+set}"
9044ac_save_CXXFLAGS="$CXXFLAGS"
9045CXXFLAGS=
9046echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
19bc6aad 9047echo "configure:9048: checking whether ${CXX-g++} accepts -g" >&5
698dcdb6
VZ
9048if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
9049 echo $ac_n "(cached) $ac_c" 1>&6
9050else
9051 echo 'void f(){}' > conftest.cc
9052if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
10f2d63a
VZ
9053 ac_cv_prog_cxx_g=yes
9054else
698dcdb6 9055 ac_cv_prog_cxx_g=no
10f2d63a 9056fi
698dcdb6
VZ
9057rm -f conftest*
9058
10f2d63a 9059fi
698dcdb6
VZ
9060
9061echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
10f2d63a 9062if test "$ac_test_CXXFLAGS" = set; then
698dcdb6 9063 CXXFLAGS="$ac_save_CXXFLAGS"
10f2d63a
VZ
9064elif test $ac_cv_prog_cxx_g = yes; then
9065 if test "$GXX" = yes; then
9066 CXXFLAGS="-g -O2"
9067 else
9068 CXXFLAGS="-g"
9069 fi
9070else
9071 if test "$GXX" = yes; then
9072 CXXFLAGS="-O2"
9073 else
9074 CXXFLAGS=
9075 fi
9076fi
9077
9078
10f2d63a 9079ac_ext=c
698dcdb6 9080# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10f2d63a 9081ac_cpp='$CPP $CPPFLAGS'
698dcdb6
VZ
9082ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9083ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9084cross_compiling=$ac_cv_prog_cc_cross
9085
9086
9087# Extract the first word of "ranlib", so it can be a program name with args.
9088set dummy ranlib; ac_word=$2
9089echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
19bc6aad 9090echo "configure:9091: checking for $ac_word" >&5
698dcdb6
VZ
9091if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
9092 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a
VZ
9093else
9094 if test -n "$RANLIB"; then
9095 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9096else
698dcdb6
VZ
9097 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9098 ac_dummy="$PATH"
9099 for ac_dir in $ac_dummy; do
9100 test -z "$ac_dir" && ac_dir=.
9101 if test -f $ac_dir/$ac_word; then
9102 ac_cv_prog_RANLIB="ranlib"
9103 break
9104 fi
9105 done
9106 IFS="$ac_save_ifs"
9107 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
10f2d63a
VZ
9108fi
9109fi
698dcdb6 9110RANLIB="$ac_cv_prog_RANLIB"
10f2d63a 9111if test -n "$RANLIB"; then
698dcdb6 9112 echo "$ac_t""$RANLIB" 1>&6
10f2d63a 9113else
698dcdb6 9114 echo "$ac_t""no" 1>&6
10f2d63a
VZ
9115fi
9116
9117
9118# Extract the first word of "ar", so it can be a program name with args.
9119set dummy ar; ac_word=$2
698dcdb6 9120echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
19bc6aad 9121echo "configure:9122: checking for $ac_word" >&5
698dcdb6
VZ
9122if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
9123 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a
VZ
9124else
9125 if test -n "$AR"; then
9126 ac_cv_prog_AR="$AR" # Let the user override the test.
9127else
698dcdb6
VZ
9128 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9129 ac_dummy="$PATH"
9130 for ac_dir in $ac_dummy; do
9131 test -z "$ac_dir" && ac_dir=.
9132 if test -f $ac_dir/$ac_word; then
9133 ac_cv_prog_AR="ar"
9134 break
9135 fi
9136 done
9137 IFS="$ac_save_ifs"
10f2d63a
VZ
9138 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
9139fi
9140fi
698dcdb6 9141AR="$ac_cv_prog_AR"
10f2d63a 9142if test -n "$AR"; then
698dcdb6 9143 echo "$ac_t""$AR" 1>&6
10f2d63a 9144else
698dcdb6 9145 echo "$ac_t""no" 1>&6
10f2d63a
VZ
9146fi
9147
698dcdb6 9148
6054113a 9149# Find a good install program. We prefer a C program (faster),
10f2d63a
VZ
9150# so one script is as good as another. But avoid the broken or
9151# incompatible versions:
9152# SysV /etc/install, /usr/sbin/install
9153# SunOS /usr/etc/install
9154# IRIX /sbin/install
9155# AIX /bin/install
9156# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
9157# AFS /usr/afsws/bin/install, which mishandles nonexistent args
9158# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
9159# ./install, which can be erroneously created by make from ./install.sh.
698dcdb6 9160echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
19bc6aad 9161echo "configure:9162: checking for a BSD compatible install" >&5
10f2d63a 9162if test -z "$INSTALL"; then
698dcdb6
VZ
9163if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
9164 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 9165else
698dcdb6 9166 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
10f2d63a
VZ
9167 for ac_dir in $PATH; do
9168 # Account for people who put trailing slashes in PATH elements.
698dcdb6
VZ
9169 case "$ac_dir/" in
9170 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
10f2d63a
VZ
9171 *)
9172 # OSF1 and SCO ODT 3.0 have their own names for install.
9173 # Don't use installbsd from OSF since it installs stuff as root
9174 # by default.
9175 for ac_prog in ginstall scoinst install; do
698dcdb6 9176 if test -f $ac_dir/$ac_prog; then
10f2d63a 9177 if test $ac_prog = install &&
698dcdb6 9178 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
10f2d63a
VZ
9179 # AIX install. It has an incompatible calling convention.
9180 :
9181 else
9182 ac_cv_path_install="$ac_dir/$ac_prog -c"
9183 break 2
9184 fi
9185 fi
9186 done
9187 ;;
9188 esac
9189 done
698dcdb6 9190 IFS="$ac_save_IFS"
10f2d63a
VZ
9191
9192fi
9193 if test "${ac_cv_path_install+set}" = set; then
698dcdb6 9194 INSTALL="$ac_cv_path_install"
10f2d63a
VZ
9195 else
9196 # As a last resort, use the slow shell script. We don't cache a
9197 # path for INSTALL within a source directory, because that will
9198 # break other packages using the cache if that directory is
9199 # removed, or if the path is relative.
698dcdb6 9200 INSTALL="$ac_install_sh"
10f2d63a
VZ
9201 fi
9202fi
698dcdb6 9203echo "$ac_t""$INSTALL" 1>&6
10f2d63a
VZ
9204
9205# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
9206# It thinks the first close brace ends the variable substitution.
9207test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
9208
698dcdb6 9209test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
10f2d63a
VZ
9210
9211test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
9212
6054113a
GD
9213case "${host}" in
9214
b5853384 9215 powerpc-*-darwin* )
eb99ae0b
GD
9216 INSTALL_PROGRAM="cp -fp"
9217 INSTALL_DATA="cp -fp"
6054113a
GD
9218 ;;
9219 *)
9220 ;;
d6853540 9221esac
698dcdb6 9222
10f2d63a
VZ
9223# Extract the first word of "strip", so it can be a program name with args.
9224set dummy strip; ac_word=$2
698dcdb6 9225echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
19bc6aad 9226echo "configure:9227: checking for $ac_word" >&5
698dcdb6
VZ
9227if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
9228 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a
VZ
9229else
9230 if test -n "$STRIP"; then
9231 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9232else
698dcdb6
VZ
9233 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9234 ac_dummy="$PATH"
9235 for ac_dir in $ac_dummy; do
9236 test -z "$ac_dir" && ac_dir=.
9237 if test -f $ac_dir/$ac_word; then
9238 ac_cv_prog_STRIP="strip"
9239 break
9240 fi
9241 done
9242 IFS="$ac_save_ifs"
10f2d63a
VZ
9243 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="true"
9244fi
9245fi
698dcdb6 9246STRIP="$ac_cv_prog_STRIP"
10f2d63a 9247if test -n "$STRIP"; then
698dcdb6 9248 echo "$ac_t""$STRIP" 1>&6
10f2d63a 9249else
698dcdb6 9250 echo "$ac_t""no" 1>&6
10f2d63a
VZ
9251fi
9252
698dcdb6 9253
414eab6d 9254echo $ac_n "checking if make is GNU make""... $ac_c" 1>&6
19bc6aad 9255echo "configure:9256: checking if make is GNU make" >&5
414eab6d
VZ
9256if eval "test \"`echo '$''{'wx_cv_prog_makeisgnu'+set}'`\" = set"; then
9257 echo $ac_n "(cached) $ac_c" 1>&6
9258else
9259
9260 if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
d558c907 9261 egrep -s GNU > /dev/null); then
414eab6d
VZ
9262 wx_cv_prog_makeisgnu="yes"
9263 else
9264 wx_cv_prog_makeisgnu="no"
9265 fi
9266
9267fi
9268
9269echo "$ac_t""$wx_cv_prog_makeisgnu" 1>&6
9270
9271if test "x$wx_cv_prog_makeisgnu" = "xyes"; then
9272 IF_GNU_MAKE=""
9273else
9274 IF_GNU_MAKE="#"
9275fi
9276
9277
9278
9279if test "x$wx_cv_prog_makeisgnu" != "xyes"; then
04e7a216 9280echo $ac_n "checking if make supports VPATH""... $ac_c" 1>&6
19bc6aad 9281echo "configure:9282: checking if make supports VPATH" >&5
04e7a216
VZ
9282if eval "test \"`echo '$''{'wx_cv_prog_makevpath'+set}'`\" = set"; then
9283 echo $ac_n "(cached) $ac_c" 1>&6
9284else
9285
10f2d63a
VZ
9286cat - << EOF > confMake
9287check : file
9288 cp \$? \$@
9289 cp \$? final_file
9290EOF
9291
9292if test ! -d sub ; then
9293 mkdir sub
9294fi
9295echo dummy > sub/file
f6bcfd97 9296${MAKE-make} -f confMake VPATH=sub 2>&5 > /dev/null
10f2d63a
VZ
9297RESULT=$?
9298rm -f sub/file check final_file confMake
9299rmdir sub
9300if test "$RESULT" = 0; then
04e7a216 9301 wx_cv_prog_makevpath="yes"
10f2d63a 9302else
04e7a216
VZ
9303 wx_cv_prog_makevpath="no"
9304fi
9305
9306fi
9307
9308echo "$ac_t""$wx_cv_prog_makevpath" 1>&6
9309
9310if test "x$wx_cv_prog_makevpath" != "xyes"; then
9311{ echo "configure: error:
1e487827
VS
9312You need a make-utility that is able to use the variable
9313VPATH correctly.
9314If your version of make does not support VPATH correctly,
9315please install GNU-make (possibly as gmake), and start
9316configure with the following command:
9317export MAKE=gmake; ./configure for sh-type shells
9318setenv MAKE gmake; ./configure for csh-type shells
9319Also please do remember to use gmake in this case every time
9320you are trying to compile.
698dcdb6 9321" 1>&2; exit 1; }
414eab6d 9322fi fi
10f2d63a
VZ
9323for ac_prog in 'bison -y' byacc
9324do
698dcdb6 9325# Extract the first word of "$ac_prog", so it can be a program name with args.
10f2d63a 9326set dummy $ac_prog; ac_word=$2
698dcdb6 9327echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
19bc6aad 9328echo "configure:9329: checking for $ac_word" >&5
698dcdb6
VZ
9329if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
9330 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a
VZ
9331else
9332 if test -n "$YACC"; then
9333 ac_cv_prog_YACC="$YACC" # Let the user override the test.
9334else
698dcdb6
VZ
9335 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9336 ac_dummy="$PATH"
9337 for ac_dir in $ac_dummy; do
9338 test -z "$ac_dir" && ac_dir=.
9339 if test -f $ac_dir/$ac_word; then
9340 ac_cv_prog_YACC="$ac_prog"
9341 break
9342 fi
9343 done
9344 IFS="$ac_save_ifs"
10f2d63a
VZ
9345fi
9346fi
698dcdb6 9347YACC="$ac_cv_prog_YACC"
10f2d63a 9348if test -n "$YACC"; then
698dcdb6 9349 echo "$ac_t""$YACC" 1>&6
10f2d63a 9350else
698dcdb6 9351 echo "$ac_t""no" 1>&6
10f2d63a
VZ
9352fi
9353
698dcdb6 9354test -n "$YACC" && break
10f2d63a
VZ
9355done
9356test -n "$YACC" || YACC="yacc"
9357
698dcdb6
VZ
9358
9359# Extract the first word of "flex", so it can be a program name with args.
9360set dummy flex; ac_word=$2
9361echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
19bc6aad 9362echo "configure:9363: checking for $ac_word" >&5
698dcdb6
VZ
9363if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
9364 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a
VZ
9365else
9366 if test -n "$LEX"; then
9367 ac_cv_prog_LEX="$LEX" # Let the user override the test.
9368else
698dcdb6
VZ
9369 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9370 ac_dummy="$PATH"
9371 for ac_dir in $ac_dummy; do
9372 test -z "$ac_dir" && ac_dir=.
9373 if test -f $ac_dir/$ac_word; then
9374 ac_cv_prog_LEX="flex"
9375 break
9376 fi
9377 done
9378 IFS="$ac_save_ifs"
9379 test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex"
10f2d63a
VZ
9380fi
9381fi
698dcdb6 9382LEX="$ac_cv_prog_LEX"
10f2d63a 9383if test -n "$LEX"; then
698dcdb6 9384 echo "$ac_t""$LEX" 1>&6
10f2d63a 9385else
698dcdb6 9386 echo "$ac_t""no" 1>&6
10f2d63a
VZ
9387fi
9388
9389if test -z "$LEXLIB"
9390then
698dcdb6
VZ
9391 case "$LEX" in
9392 flex*) ac_lib=fl ;;
9393 *) ac_lib=l ;;
9394 esac
9395 echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
19bc6aad 9396echo "configure:9397: checking for yywrap in -l$ac_lib" >&5
698dcdb6
VZ
9397ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
9398if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9399 echo $ac_n "(cached) $ac_c" 1>&6
9400else
9401 ac_save_LIBS="$LIBS"
9402LIBS="-l$ac_lib $LIBS"
9403cat > conftest.$ac_ext <<EOF
19bc6aad 9404#line 9405 "configure"
10f2d63a
VZ
9405#include "confdefs.h"
9406/* Override any gcc2 internal prototype to avoid an error. */
9407/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
9408 builtin and then its argument prototype would still apply. */
9409char yywrap();
10f2d63a 9410
698dcdb6
VZ
9411int main() {
9412yywrap()
9413; return 0; }
9414EOF
19bc6aad 9415if { (eval echo configure:9416: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
9416 rm -rf conftest*
9417 eval "ac_cv_lib_$ac_lib_var=yes"
10f2d63a 9418else
698dcdb6
VZ
9419 echo "configure: failed program was:" >&5
9420 cat conftest.$ac_ext >&5
9421 rm -rf conftest*
9422 eval "ac_cv_lib_$ac_lib_var=no"
10f2d63a 9423fi
698dcdb6
VZ
9424rm -f conftest*
9425LIBS="$ac_save_LIBS"
9426
10f2d63a 9427fi
698dcdb6
VZ
9428if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9429 echo "$ac_t""yes" 1>&6
9430 LEXLIB="-l$ac_lib"
9431else
9432 echo "$ac_t""no" 1>&6
10f2d63a
VZ
9433fi
9434
9435fi
9436
9437
698dcdb6 9438echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
19bc6aad 9439echo "configure:9440: checking whether ln -s works" >&5
698dcdb6
VZ
9440if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
9441 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 9442else
698dcdb6
VZ
9443 rm -f conftestdata
9444if ln -s X conftestdata 2>/dev/null
9445then
9446 rm -f conftestdata
9447 ac_cv_prog_LN_S="ln -s"
10f2d63a 9448else
698dcdb6 9449 ac_cv_prog_LN_S=ln
10f2d63a
VZ
9450fi
9451fi
698dcdb6
VZ
9452LN_S="$ac_cv_prog_LN_S"
9453if test "$ac_cv_prog_LN_S" = "ln -s"; then
9454 echo "$ac_t""yes" 1>&6
10f2d63a 9455else
698dcdb6 9456 echo "$ac_t""no" 1>&6
10f2d63a
VZ
9457fi
9458
9459
9460
9461SEARCH_INCLUDE="\
9462 /usr/local/include \
9463 \
9464 /usr/Motif-1.2/include \
9465 /usr/Motif-2.1/include \
9466 \
9467 /usr/include/Motif1.2 \
9468 /opt/xpm/include/X11 \
9469 /opt/GBxpm/include/ \
9470 /opt/GBxpm/X11/include/ \
9471 \
9472 /usr/Motif1.2/include \
9473 /usr/dt/include \
afc31813
VZ
9474 /usr/openwin/include \
9475 \
10f2d63a
VZ
9476 /usr/include/Xm \
9477 \
9478 /usr/X11R6/include \
afc31813 9479 /usr/X11R6.4/include \
10f2d63a
VZ
9480 /usr/X11R5/include \
9481 /usr/X11R4/include \
9482 \
10f2d63a
VZ
9483 /usr/include/X11R6 \
9484 /usr/include/X11R5 \
9485 /usr/include/X11R4 \
9486 \
9487 /usr/local/X11R6/include \
9488 /usr/local/X11R5/include \
9489 /usr/local/X11R4/include \
9490 \
9491 /usr/local/include/X11R6 \
9492 /usr/local/include/X11R5 \
9493 /usr/local/include/X11R4 \
9494 \
9495 /usr/X11/include \
9496 /usr/include/X11 \
9497 /usr/local/X11/include \
9498 /usr/local/include/X11 \
9499 \
9500 /usr/X386/include \
9501 /usr/x386/include \
9502 /usr/XFree86/include/X11 \
9503 \
cf27ef00 9504 X:/XFree86/include \
ec14dd32
VZ
9505 X:/XFree86/include/X11 \
9506 \
10f2d63a
VZ
9507 /usr/include/gtk \
9508 /usr/local/include/gtk \
9509 /usr/include/glib \
9510 /usr/local/include/glib \
9511 \
9512 /usr/include/qt \
9513 /usr/local/include/qt \
9514 \
9515 /usr/include/windows \
9516 /usr/include/wine \
9517 /usr/local/include/wine \
9518 \
9519 /usr/unsupported/include \
9520 /usr/athena/include \
9521 /usr/local/x11r5/include \
9522 /usr/lpp/Xamples/include \
9523 \
10f2d63a 9524 /usr/openwin/share/include \
928b5c08
VZ
9525 \
9526 /usr/include"
10f2d63a
VZ
9527
9528SEARCH_LIB="`echo "$SEARCH_INCLUDE" | sed s/include/lib/g` "
9529
698dcdb6
VZ
9530
9531cat > confcache <<\EOF
10f2d63a
VZ
9532# This file is a shell script that caches the results of configure
9533# tests run on this system so they can be shared between configure
698dcdb6
VZ
9534# scripts and configure runs. It is not useful on other systems.
9535# If it contains results you don't want to keep, you may remove or edit it.
10f2d63a 9536#
698dcdb6
VZ
9537# By default, configure uses ./config.cache as the cache file,
9538# creating it if it does not exist already. You can give configure
9539# the --cache-file=FILE option to use a different cache file; that is
9540# what configure does when it calls configure scripts in
9541# subdirectories, so they share the cache.
9542# Giving --cache-file=/dev/null disables caching, for debugging configure.
9543# config.status only pays attention to the cache file if you give it the
9544# --recheck option to rerun configure.
10f2d63a 9545#
698dcdb6 9546EOF
10f2d63a
VZ
9547# The following way of writing the cache mishandles newlines in values,
9548# but we know of no workaround that is simple, portable, and efficient.
9549# So, don't put newlines in cache variables' values.
9550# Ultrix sh set writes to stderr and can't be redirected directly,
9551# and sets the high bit in the cache file unless we assign to the vars.
698dcdb6
VZ
9552(set) 2>&1 |
9553 case `(ac_space=' '; set | grep ac_space) 2>&1` in
9554 *ac_space=\ *)
9555 # `set' does not quote correctly, so add quotes (double-quote substitution
9556 # turns \\\\ into \\, and sed turns \\ into \).
9557 sed -n \
9558 -e "s/'/'\\\\''/g" \
9559 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
9560 ;;
9561 *)
9562 # `set' quotes correctly as required by POSIX, so do not add quotes.
9563 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
9564 ;;
9565 esac >> confcache
9566if cmp -s $cache_file confcache; then
9567 :
9568else
10f2d63a 9569 if test -w $cache_file; then
698dcdb6
VZ
9570 echo "updating cache $cache_file"
9571 cat confcache > $cache_file
10f2d63a
VZ
9572 else
9573 echo "not updating unwritable cache $cache_file"
9574 fi
9575fi
9576rm -f confcache
9577
698dcdb6 9578
19bc6aad
VZ
9579if test "$USE_LINUX" = 1; then
9580 echo $ac_n "checking for glibc 2.1 or later""... $ac_c" 1>&6
9581echo "configure:9582: checking for glibc 2.1 or later" >&5
9582if eval "test \"`echo '$''{'wx_cv_lib_glibc21'+set}'`\" = set"; then
9583 echo $ac_n "(cached) $ac_c" 1>&6
9584else
9585
9586 cat > conftest.$ac_ext <<EOF
9587#line 9588 "configure"
9588#include "confdefs.h"
9589#include <features.h>
9590int main() {
9591
9592 #if !__GLIBC_PREREQ(2, 1)
9593 #error not glibc2.1
9594 #endif
9595
9596; return 0; }
9597EOF
9598if { (eval echo configure:9599: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9599 rm -rf conftest*
9600
9601 wx_cv_lib_glibc21=yes
9602
9603else
9604 echo "configure: failed program was:" >&5
9605 cat conftest.$ac_ext >&5
9606 rm -rf conftest*
9607
9608 wx_cv_lib_glibc21=no
9609
9610
9611fi
9612rm -f conftest*
9613
9614fi
9615
9616echo "$ac_t""$wx_cv_lib_glibc21" 1>&6
9617 if test "$wx_cv_lib_glibc21" = "yes"; then
9618 cat >> confdefs.h <<\EOF
9619#define wxHAVE_GLIBC2 1
9620EOF
9621
9622 fi
9623fi
9624
698dcdb6 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
be505a65 13257
3a922bb4 13258if test "$wxUSE_OPENGL" = "yes"; then
62d0491b
RL
13259 if test "$wxUSE_MAC" = 1; then
13260 OPENGL_LIBS="-framework OpenGL -framework AGL"
be505a65
VZ
13261 elif test "$wxUSE_MSW" = 1; then
13262 OPENGL_LIBS="-lopengl32 -lglu32"
62d0491b 13263 else
62d0491b 13264 ac_safe=`echo "GL/gl.h" | sed 'y%./+-%__p_%'`
3a922bb4 13265echo $ac_n "checking for GL/gl.h""... $ac_c" 1>&6
be505a65 13266echo "configure:13267: checking for GL/gl.h" >&5
3a922bb4
RL
13267if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
13268 echo $ac_n "(cached) $ac_c" 1>&6
13269else
13270 cat > conftest.$ac_ext <<EOF
be505a65 13271#line 13272 "configure"
3a922bb4
RL
13272#include "confdefs.h"
13273#include <GL/gl.h>
13274EOF
13275ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
be505a65 13276{ (eval echo configure:13277: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3a922bb4
RL
13277ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13278if test -z "$ac_err"; then
13279 rm -rf conftest*
13280 eval "ac_cv_header_$ac_safe=yes"
13281else
13282 echo "$ac_err" >&5
13283 echo "configure: failed program was:" >&5
13284 cat conftest.$ac_ext >&5
13285 rm -rf conftest*
13286 eval "ac_cv_header_$ac_safe=no"
13287fi
13288rm -f conftest*
13289fi
13290if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13291 echo "$ac_t""yes" 1>&6
13292
1352efdf 13293 echo $ac_n "checking for -lGL""... $ac_c" 1>&6
be505a65 13294echo "configure:13295: checking for -lGL" >&5
57964555 13295
62d0491b
RL
13296ac_find_libraries=
13297for ac_dir in $SEARCH_LIB;
13298 do
13299 for ac_extension in a so sl dylib; do
13300 if test -f "$ac_dir/libGL.$ac_extension"; then
13301 ac_find_libraries=$ac_dir
13302 break 2
13303 fi
13304 done
13305 done
3a922bb4 13306
62d0491b
RL
13307 if test "$ac_find_libraries" != "" ; then
13308
13309 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
13310 result=$?
13311 if test $result = 0; then
13312 ac_path_to_link=""
13313 else
13314 ac_path_to_link=" -L$ac_find_libraries"
13315 fi
3a922bb4 13316
4b6b4dfc
RR
13317 if test "$ac_path_to_link" = " -L/usr/lib" ; then
13318 LDFLAGS_GL="$LDFLAGS"
13319 else
13320 LDFLAGS_GL="$LDFLAGS$ac_path_to_link"
13321 fi
62d0491b 13322 OPENGL_LIBS="-lGL -lGLU"
1352efdf 13323 echo "$ac_t""yes" 1>&6
62d0491b 13324 else
1352efdf
RL
13325 echo "$ac_t""no" 1>&6
13326 echo $ac_n "checking for -lMesaGL""... $ac_c" 1>&6
be505a65 13327echo "configure:13328: checking for -lMesaGL" >&5
62d0491b
RL
13328
13329ac_find_libraries=
13330for ac_dir in $SEARCH_LIB;
13331 do
13332 for ac_extension in a so sl dylib; do
13333 if test -f "$ac_dir/libMesaGL.$ac_extension"; then
13334 ac_find_libraries=$ac_dir
13335 break 2
13336 fi
13337 done
13338 done
3a922bb4 13339
62d0491b 13340 if test "$ac_find_libraries" != "" ; then
57964555 13341
62d0491b
RL
13342 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
13343 result=$?
13344 if test $result = 0; then
13345 ac_path_to_link=""
13346 else
13347 ac_path_to_link=" -L$ac_find_libraries"
13348 fi
3a922bb4 13349
62d0491b
RL
13350 LDFLAGS_GL="$LDFLAGS$ac_path_to_link"
13351 OPENGL_LIBS="-lMesaGL -lMesaGLU"
1352efdf
RL
13352 echo "$ac_t""yes" 1>&6
13353 else
13354 echo "$ac_t""no" 1>&6
62d0491b
RL
13355 fi
13356 fi
13357
3a922bb4
RL
13358else
13359 echo "$ac_t""no" 1>&6
3a922bb4
RL
13360fi
13361
6f754473 13362
62d0491b
RL
13363 if test "x$OPENGL_LIBS" = "x"; then
13364 { echo "configure: error: OpenGL libraries not available" 1>&2; exit 1; }
13365 fi
6f754473 13366 fi
6f754473 13367
62d0491b
RL
13368 if test "$wxUSE_OPENGL" = "yes"; then
13369 cat >> confdefs.h <<\EOF
6f754473
VZ
13370#define wxUSE_OPENGL 1
13371EOF
13372
62d0491b 13373 cat >> confdefs.h <<\EOF
6f754473
VZ
13374#define wxUSE_GLCANVAS 1
13375EOF
13376
62d0491b
RL
13377 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl"
13378 fi
3a922bb4
RL
13379fi
13380
13381if test -z "$TOOLKIT_VPATH" ; then
13382 TOOLKIT_VPATH="\${top_srcdir}/src/${TOOLKIT_DIR}"
13383fi
13384
13385if test -n "$TOOLKIT" ; then
13386 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WX${TOOLKIT}__"
13387fi
13388
f676c7ff
MB
13389lib_unicode_suffix=
13390if test "$wxUSE_UNICODE" = "yes"; then
13391 lib_unicode_suffix=u
13392fi
13393
3a922bb4
RL
13394lib_debug_suffix=
13395if test "$wxUSE_DEBUG_FLAG" = "yes"; then
13396 lib_debug_suffix=d
3a922bb4
RL
13397fi
13398
f676c7ff
MB
13399TOOLCHAIN_NAME="${TOOLKIT_DIR}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}-${WX_RELEASE}"
13400TOOLCHAIN_NAME_GL="${TOOLKIT_DIR}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}_gl-${WX_RELEASE}"
3a922bb4
RL
13401
13402if test "$cross_compiling" = "yes"; then
13403 TOOLCHAIN_NAME="${TOOLCHAIN_NAME}-${host_alias}"
13404 TOOLCHAIN_NAME_GL="${TOOLCHAIN_NAME_GL}-${host_alias}"
13405fi
13406
13407WX_LIBRARY="wx_${TOOLCHAIN_NAME}"
13408WX_LIBRARY_GL="wx_${TOOLCHAIN_NAME_GL}"
13409
3a922bb4
RL
13410WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
13411WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
13412
13413WX_LIBRARY_LINK1="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}"
13414WX_LIBRARY_LINK2="lib${WX_LIBRARY}.${SO_SUFFIX}"
13415WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}"
13416WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}"
13417
978f1259
RL
13418case "${host}" in
13419 *-*-cygwin* | *-*-mingw32* )
13420
2da4f892 13421
978f1259
RL
13422
13423 if test "$cross_compiling" != "yes"; then
13424 WX_LIBRARY="wxmsw${WX_MSW_VERSION}${lib_unicode_suffix}${lib_debug_suffix}"
13425 WX_LIBRARY_GL="wxmsw_gl${WX_MSW_VERSION}${lib_unicode_suffix}${lib_debug_suffix}"
13426 WX_LIBRARY_NAME_SHARED="${WX_LIBRARY}.${SO_SUFFIX}"
13427 WX_LIBRARY_NAME_SHARED_GL="${WX_LIBRARY_GL}.${SO_SUFFIX}"
2da4f892
RL
13428 else
13429 WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${SO_SUFFIX}"
13430 WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}"
978f1259 13431 fi
e95edd8d 13432 ;;
978f1259 13433
e95edd8d
GD
13434 *-*-darwin* )
13435 if test "$wxUSE_MAC" = 1; then
13436 WX_RESOURCES_MACOSX_ASCII="lib${WX_LIBRARY}.r"
13437 WX_RESOURCES_MACOSX_DATA="lib${WX_LIBRARY}.rsrc"
13438 fi
13439 ;;
978f1259
RL
13440esac
13441
13442WX_LIBRARY_NAME_STATIC="lib${WX_LIBRARY}.a"
13443WX_LIBRARY_NAME_STATIC_GL="lib${WX_LIBRARY_GL}.a"
13444
13445WXCONFIG_LIBS="-l${WX_LIBRARY}"
885d4bf5 13446WXCONFIG_LIBS_STATIC="lib${WX_LIBRARY}.a"
978f1259
RL
13447
13448if test "$wxUSE_OPENGL" = "yes"; then
885d4bf5
VS
13449 WXCONFIG_LIBS_GL="-l${WX_LIBRARY_GL} ${OPENGL_LIBS}"
13450 WXCONFIG_LIBS_STATIC_GL="lib${WX_LIBRARY_GL}.a ${OPENGL_LIBS}"
978f1259
RL
13451fi
13452
13453
3a922bb4 13454
4222829b
VS
13455if test "$wxUSE_SHARED" = "yes"; then
13456 case "${host}" in
13457 *-pc-os2_emx | *-pc-os2-emx | \
13458 *-pc-msdosdjgpp )
13459 wxUSE_SHARED=no
13460 echo "configure: warning: Host system doesn't support shared libraries, disabling" 1>&2
13461 ;;
13462 esac
13463fi
13464
3a922bb4 13465if test "$wxUSE_SHARED" = "yes"; then
55e80573
VZ
13466
13467 if test "$wxUSE_OPENGL" = "yes"; then
13468 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL"
3a922bb4 13469 WX_ALL="\$(build_libdir)/${WX_LIBRARY_LINK1} \$(build_libdir)/${WX_LIBRARY_LINK1_GL}"
55e80573
VZ
13470 else
13471 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
3a922bb4 13472 WX_ALL="\$(build_libdir)/${WX_LIBRARY_LINK1}"
55e80573
VZ
13473 fi
13474
dd4f7467 13475 if test "$GCC" = "yes"; then
55e80573 13476 PIC_FLAG="-fPIC"
dd4f7467 13477 fi
55e80573
VZ
13478
13479 SHARED_LD="${CXX} -shared -o"
698dcdb6 13480
10f2d63a
VZ
13481 case "${host}" in
13482 *-hp-hpux* )
d569ea8d
GD
13483 if test "$GCC" == "yes"; then
13484 SHARED_LD="${SHARED_LD} ${PIC_FLAG}"
13485 else
3d63bc3a 13486 LDFLAGS="$LDFLAGS -L/usr/lib"
f6bcfd97 13487
10f2d63a
VZ
13488 SHARED_LD="${CXX} -b -o"
13489 PIC_FLAG="+Z"
13490 fi
55e80573 13491
7b7a7637
RL
13492 if test "$wxUSE_OPENGL" = "yes"; then
13493 WX_ALL_INSTALLED="preinstall_gl"
13494 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED} \$(build_libdir)/${WX_LIBRARY_NAME_SHARED_GL}"
13495 else
13496 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED}"
13497 fi
10f2d63a 13498 ;;
b12915c1 13499
55e80573
VZ
13500 *-*-linux* )
13501 if test "$GCC" != "yes"; then
13502 echo $ac_n "checking for Intel compiler""... $ac_c" 1>&6
be505a65 13503echo "configure:13504: checking for Intel compiler" >&5
55e80573
VZ
13504if eval "test \"`echo '$''{'wx_cv_prog_icc'+set}'`\" = set"; then
13505 echo $ac_n "(cached) $ac_c" 1>&6
13506else
13507
13508 cat > conftest.$ac_ext <<EOF
be505a65 13509#line 13510 "configure"
55e80573
VZ
13510#include "confdefs.h"
13511
13512int main() {
13513
13514 #ifndef __INTEL_COMPILER
dd4f7467 13515 #error Not icc
55e80573
VZ
13516 #endif
13517
13518; return 0; }
13519EOF
be505a65 13520if { (eval echo configure:13521: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
55e80573
VZ
13521 rm -rf conftest*
13522 wx_cv_prog_icc=yes
13523else
13524 echo "configure: failed program was:" >&5
13525 cat conftest.$ac_ext >&5
13526 rm -rf conftest*
13527 wx_cv_prog_icc=no
13528
13529fi
13530rm -f conftest*
13531
13532fi
13533
13534echo "$ac_t""$wx_cv_prog_icc" 1>&6
55e80573
VZ
13535 if test "$wx_cv_prog_icc" = "yes"; then
13536 PIC_FLAG="-KPIC"
13537 fi
13538 fi
13539
3a922bb4
RL
13540 if test "$wxUSE_SONAME" = "yes" ; then
13541 SONAME_FLAGS="-Wl,-soname,${WX_LIBRARY_LINK1}"
13542 SONAME_FLAGS_GL="-Wl,-soname,${WX_LIBRARY_LINK1_GL}"
f6bcfd97 13543 WX_TARGET_LIBRARY_SONAME="-Wl,-soname,\$(TARGETLIB_LINK1)"
00cf1208 13544 fi
10f2d63a 13545 ;;
55e80573 13546
10f2d63a
VZ
13547 *-*-solaris2* )
13548 if test "$GCC" = yes ; then
f6bcfd97 13549 CPPFLAGS="$CPPFLAGS -isystem /usr/openwin/include"
10f2d63a
VZ
13550 else
13551 SHARED_LD="${CXX} -G -o"
13552 PIC_FLAG="-KPIC"
7b7a7637 13553 SONAME_FLAGS="-h ${WX_LIBRARY_NAME_SHARED}"
471944dc 13554 SONAME_FLAGS_GL="-h ${WX_LIBRARY_NAME_SHARED_GL}"
10f2d63a 13555 fi
10f2d63a 13556 ;;
55e80573 13557
b4085ce6 13558 *-*-darwin* )
e95edd8d
GD
13559 CFLAGS="$CFLAGS -fno-common -DWXMAKINGDLL"
13560 CXXFLAGS="$CXXFLAGS -fno-common -DWXMAKINGDLL"
fe0d8518 13561 SHARED_LD="\${top_srcdir}/distrib/mac/shared-ld-sh -undefined suppress -flat_namespace -o"
ea5999b9 13562 PIC_FLAG="-dynamic -fPIC"
90f3fe56
GD
13563 SONAME_FLAGS="-compatibility_version ${WX_RELEASE} -current_version ${WX_VERSION}"
13564 SONAME_FLAGS_GL=${SONAME_FLAGS}
10f2d63a 13565 ;;
55e80573 13566
10f2d63a
VZ
13567 *-*-aix* )
13568 SHARED_LD="/usr/lpp/xlC/bin/makeC++SharedLib -p 0 -o"
10f2d63a 13569 ;;
55e80573 13570
7b7a7637 13571 *-*-cygwin* | *-*-mingw32* )
77e13408 13572
2da4f892 13573 WX_LIBRARY_IMPORTLIB="${WX_LIBRARY_NAME_SHARED}.a"
77e13408 13574
77e13408 13575 SHARED_LD="${CXX} -shared -Wl,--out-implib,lib/${WX_LIBRARY_IMPORTLIB} -o"
00c81359 13576 TOOLCHAIN_DLL_DEFS="${TOOLCHAIN_DLL_DEFS} -DWXUSINGDLL=1"
25d0687a
RL
13577
13578 PIC_FLAG="-UWXUSINGDLL -DWXMAKINGDLL=1 -D_DLL=1 -D_WINDLL=1"
7b7a7637
RL
13579
13580 if test "$wxUSE_OPENGL" = "yes"; then
f6bcfd97 13581 WX_ALL_INSTALLED="preinstall_gl"
978f1259 13582 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED} \$(build_libdir)/${WX_LIBRARY_NAME_SHARED_GL}"
f6bcfd97 13583 else
978f1259 13584 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED}"
f6bcfd97 13585 fi
10f2d63a 13586 ;;
55e80573 13587
b12915c1 13588 *-*-beos* )
e2b8b066 13589 SHARED_LD="${LD} -shared -o"
b12915c1 13590 ;;
55e80573
VZ
13591
13592 *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | \
13593 *-*-sunos4* | \
13594 *-*-irix5* | *-*-irix6* | \
13595 *-*-osf* | \
13596 *-*-dgux5* | \
13597 *-*-sysv5* )
13598 ;;
13599
10f2d63a 13600 *)
7b7a7637 13601 { echo "configure: error: unknown system type $host." 1>&2; exit 1; }
10f2d63a
VZ
13602 esac
13603
13604 if test "x$WX_TARGET_LIBRARY" = "x"; then
13605 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_SHARED}"
bdad4e7e 13606 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_SHARED_GL}"
10f2d63a 13607 fi
55e80573 13608
3711412e 13609 WX_TARGET_LIBRARY_TYPE="so"
885d4bf5 13610 INSTALL_LIBRARY='$(INSTALL_PROGRAM)'
3a922bb4 13611fi
f6bcfd97 13612
3a922bb4 13613if test "$wxUSE_SHARED" = "no"; then
f6bcfd97 13614
3a922bb4 13615 if test "$wxUSE_GUI" = "no" -o "$USE_WIN32" = 1 ; then
f6bcfd97
BP
13616 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall"
13617 fi
13618
6fa882bd
RR
13619 if test "$wxUSE_MAC" = 1; then
13620 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall"
13621 fi
13622
3a922bb4
RL
13623 if test "$wxUSE_OPENGL" = "yes"; then
13624 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall_gl"
13625 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC} \$(build_libdir)/${WX_LIBRARY_NAME_STATIC_GL}"
13626 else
13627 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC}"
13628 fi
698dcdb6 13629
3a922bb4
RL
13630 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}"
13631 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_STATIC_GL}"
13632
13633 WX_TARGET_LIBRARY_TYPE="a"
885d4bf5 13634 INSTALL_LIBRARY='$(INSTALL_DATA)'
10f2d63a 13635fi
10f2d63a 13636
d08b457b 13637if test "$wxUSE_MAC" = 1; then
336e99e2
GD
13638 LIBWXMACRES="\$(top_builddir)/lib/${WX_RESOURCES_MACOSX_ASCII}"
13639 WX_ALL="${WX_ALL} ${LIBWXMACRES}"
e23081de 13640 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall_res"
d08b457b
GD
13641 # Extract the first word of "Rez", so it can be a program name with args.
13642set dummy Rez; ac_word=$2
13643echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
be505a65 13644echo "configure:13645: checking for $ac_word" >&5
d08b457b
GD
13645if eval "test \"`echo '$''{'ac_cv_prog_RESCOMP'+set}'`\" = set"; then
13646 echo $ac_n "(cached) $ac_c" 1>&6
13647else
13648 if test -n "$RESCOMP"; then
13649 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
13650else
13651 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
13652 ac_dummy="$PATH"
13653 for ac_dir in $ac_dummy; do
13654 test -z "$ac_dir" && ac_dir=.
13655 if test -f $ac_dir/$ac_word; then
13656 ac_cv_prog_RESCOMP="Rez"
13657 break
13658 fi
13659 done
13660 IFS="$ac_save_ifs"
13661 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez"
13662fi
13663fi
13664RESCOMP="$ac_cv_prog_RESCOMP"
13665if test -n "$RESCOMP"; then
13666 echo "$ac_t""$RESCOMP" 1>&6
13667else
13668 echo "$ac_t""no" 1>&6
13669fi
13670
9f8148b1
GD
13671 # Extract the first word of "DeRez", so it can be a program name with args.
13672set dummy DeRez; ac_word=$2
d08b457b 13673echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
be505a65 13674echo "configure:13675: checking for $ac_word" >&5
d08b457b
GD
13675if eval "test \"`echo '$''{'ac_cv_prog_DEREZ'+set}'`\" = set"; then
13676 echo $ac_n "(cached) $ac_c" 1>&6
13677else
13678 if test -n "$DEREZ"; then
13679 ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test.
13680else
13681 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
13682 ac_dummy="$PATH"
13683 for ac_dir in $ac_dummy; do
13684 test -z "$ac_dir" && ac_dir=.
13685 if test -f $ac_dir/$ac_word; then
9f8148b1 13686 ac_cv_prog_DEREZ="DeRez"
d08b457b
GD
13687 break
13688 fi
13689 done
13690 IFS="$ac_save_ifs"
9f8148b1 13691 test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/DeRez"
d08b457b
GD
13692fi
13693fi
13694DEREZ="$ac_cv_prog_DEREZ"
13695if test -n "$DEREZ"; then
13696 echo "$ac_t""$DEREZ" 1>&6
13697else
13698 echo "$ac_t""no" 1>&6
13699fi
13700
ef7f2189 13701 MACOSX_BUNDLE="bundle"
336e99e2
GD
13702 if test "$wxUSE_SHARED" = "yes"; then
13703 LIBWXMACRESCOMP="\$(RESCOMP) -t APPL Carbon.r -o \$(BIN_PROGRAM)"
13704 LIBWXMACRESWXCONFIG="${RESCOMP} -t APPL Carbon.r -o"
13705 else
13706 LIBWXMACRESCOMP="\$(RESCOMP) -t APPL Carbon.r ${LIBWXMACRES} -o \$(BIN_PROGRAM)"
13707 LIBWXMACRESWXCONFIG="${RESCOMP} -t APPL Carbon.r \${prefix}/lib/${WX_RESOURCES_MACOSX_ASCII} -o"
13708 fi
d558c907
VS
13709else
13710 if test "$wxUSE_PM" = 1; then
13711 LIBWXMACRESCOMP="emxbind -ep \$(BIN_PROGRAM)"
13712 fi
d08b457b
GD
13713fi
13714
3a922bb4 13715
13c0541d
GD
13716if test "$wxUSE_MAC" != 1; then
13717 for ac_hdr in strings.h
9cfadba2 13718do
698dcdb6
VZ
13719ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
13720echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
be505a65 13721echo "configure:13722: checking for $ac_hdr" >&5
698dcdb6
VZ
13722if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
13723 echo $ac_n "(cached) $ac_c" 1>&6
13724else
13725 cat > conftest.$ac_ext <<EOF
be505a65 13726#line 13727 "configure"
9cfadba2 13727#include "confdefs.h"
698dcdb6
VZ
13728#include <$ac_hdr>
13729EOF
13730ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
be505a65 13731{ (eval echo configure:13732: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
13732ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13733if test -z "$ac_err"; then
13734 rm -rf conftest*
13735 eval "ac_cv_header_$ac_safe=yes"
6232543b 13736else
698dcdb6
VZ
13737 echo "$ac_err" >&5
13738 echo "configure: failed program was:" >&5
9cfadba2 13739 cat conftest.$ac_ext >&5
698dcdb6
VZ
13740 rm -rf conftest*
13741 eval "ac_cv_header_$ac_safe=no"
9cfadba2 13742fi
698dcdb6 13743rm -f conftest*
9cfadba2 13744fi
698dcdb6
VZ
13745if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13746 echo "$ac_t""yes" 1>&6
13747 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
13748 cat >> confdefs.h <<EOF
13749#define $ac_tr_hdr 1
9cfadba2 13750EOF
698dcdb6
VZ
13751
13752else
13753 echo "$ac_t""no" 1>&6
9cfadba2
VZ
13754fi
13755done
10f2d63a 13756
13c0541d
GD
13757fi
13758
3a922bb4 13759for ac_hdr in stdlib.h
10f2d63a 13760do
698dcdb6
VZ
13761ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
13762echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
be505a65 13763echo "configure:13764: checking for $ac_hdr" >&5
698dcdb6
VZ
13764if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
13765 echo $ac_n "(cached) $ac_c" 1>&6
13766else
13767 cat > conftest.$ac_ext <<EOF
be505a65 13768#line 13769 "configure"
10f2d63a 13769#include "confdefs.h"
698dcdb6
VZ
13770#include <$ac_hdr>
13771EOF
13772ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
be505a65 13773{ (eval echo configure:13774: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
13774ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13775if test -z "$ac_err"; then
13776 rm -rf conftest*
13777 eval "ac_cv_header_$ac_safe=yes"
6232543b 13778else
698dcdb6
VZ
13779 echo "$ac_err" >&5
13780 echo "configure: failed program was:" >&5
10f2d63a 13781 cat conftest.$ac_ext >&5
698dcdb6
VZ
13782 rm -rf conftest*
13783 eval "ac_cv_header_$ac_safe=no"
10f2d63a 13784fi
698dcdb6 13785rm -f conftest*
10f2d63a 13786fi
698dcdb6
VZ
13787if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13788 echo "$ac_t""yes" 1>&6
13789 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
13790 cat >> confdefs.h <<EOF
13791#define $ac_tr_hdr 1
10f2d63a 13792EOF
698dcdb6
VZ
13793
13794else
13795 echo "$ac_t""no" 1>&6
10f2d63a
VZ
13796fi
13797done
13798
9f8148b1 13799for ac_hdr in malloc.h
10f2d63a 13800do
698dcdb6
VZ
13801ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
13802echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
be505a65 13803echo "configure:13804: checking for $ac_hdr" >&5
698dcdb6
VZ
13804if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
13805 echo $ac_n "(cached) $ac_c" 1>&6
13806else
13807 cat > conftest.$ac_ext <<EOF
be505a65 13808#line 13809 "configure"
10f2d63a 13809#include "confdefs.h"
698dcdb6
VZ
13810#include <$ac_hdr>
13811EOF
13812ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
be505a65 13813{ (eval echo configure:13814: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
13814ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13815if test -z "$ac_err"; then
13816 rm -rf conftest*
13817 eval "ac_cv_header_$ac_safe=yes"
6f72b082 13818else
698dcdb6
VZ
13819 echo "$ac_err" >&5
13820 echo "configure: failed program was:" >&5
6f72b082 13821 cat conftest.$ac_ext >&5
698dcdb6
VZ
13822 rm -rf conftest*
13823 eval "ac_cv_header_$ac_safe=no"
6f72b082 13824fi
698dcdb6 13825rm -f conftest*
6f72b082 13826fi
698dcdb6
VZ
13827if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13828 echo "$ac_t""yes" 1>&6
13829 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
13830 cat >> confdefs.h <<EOF
13831#define $ac_tr_hdr 1
6f72b082 13832EOF
698dcdb6
VZ
13833
13834else
13835 echo "$ac_t""no" 1>&6
6f72b082
OK
13836fi
13837done
13838
9f8148b1 13839for ac_hdr in unistd.h
6f72b082 13840do
698dcdb6
VZ
13841ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
13842echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
be505a65 13843echo "configure:13844: checking for $ac_hdr" >&5
698dcdb6
VZ
13844if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
13845 echo $ac_n "(cached) $ac_c" 1>&6
13846else
13847 cat > conftest.$ac_ext <<EOF
be505a65 13848#line 13849 "configure"
6f72b082 13849#include "confdefs.h"
698dcdb6
VZ
13850#include <$ac_hdr>
13851EOF
13852ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
be505a65 13853{ (eval echo configure:13854: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
13854ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13855if test -z "$ac_err"; then
13856 rm -rf conftest*
13857 eval "ac_cv_header_$ac_safe=yes"
6f72b082 13858else
698dcdb6
VZ
13859 echo "$ac_err" >&5
13860 echo "configure: failed program was:" >&5
6f72b082 13861 cat conftest.$ac_ext >&5
698dcdb6
VZ
13862 rm -rf conftest*
13863 eval "ac_cv_header_$ac_safe=no"
6f72b082 13864fi
698dcdb6 13865rm -f conftest*
6f72b082 13866fi
698dcdb6
VZ
13867if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13868 echo "$ac_t""yes" 1>&6
13869 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
13870 cat >> confdefs.h <<EOF
13871#define $ac_tr_hdr 1
6f72b082 13872EOF
698dcdb6
VZ
13873
13874else
13875 echo "$ac_t""no" 1>&6
6f72b082
OK
13876fi
13877done
13878
9f8148b1 13879for ac_hdr in wchar.h
6f72b082 13880do
698dcdb6
VZ
13881ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
13882echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
be505a65 13883echo "configure:13884: checking for $ac_hdr" >&5
698dcdb6
VZ
13884if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
13885 echo $ac_n "(cached) $ac_c" 1>&6
13886else
13887 cat > conftest.$ac_ext <<EOF
be505a65 13888#line 13889 "configure"
6f72b082 13889#include "confdefs.h"
698dcdb6
VZ
13890#include <$ac_hdr>
13891EOF
13892ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
be505a65 13893{ (eval echo configure:13894: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
13894ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13895if test -z "$ac_err"; then
13896 rm -rf conftest*
13897 eval "ac_cv_header_$ac_safe=yes"
10f2d63a 13898else
698dcdb6
VZ
13899 echo "$ac_err" >&5
13900 echo "configure: failed program was:" >&5
10f2d63a 13901 cat conftest.$ac_ext >&5
698dcdb6
VZ
13902 rm -rf conftest*
13903 eval "ac_cv_header_$ac_safe=no"
10f2d63a 13904fi
698dcdb6 13905rm -f conftest*
10f2d63a 13906fi
698dcdb6
VZ
13907if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13908 echo "$ac_t""yes" 1>&6
13909 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
13910 cat >> confdefs.h <<EOF
13911#define $ac_tr_hdr 1
10f2d63a 13912EOF
698dcdb6
VZ
13913
13914else
13915 echo "$ac_t""no" 1>&6
10f2d63a
VZ
13916fi
13917done
13918
f0c87536
VZ
13919
13920if test "$ac_cv_header_wchar_h" != "yes"; then
13921 for ac_hdr in wcstr.h
0fb0dd83 13922do
698dcdb6
VZ
13923ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
13924echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
be505a65 13925echo "configure:13926: checking for $ac_hdr" >&5
698dcdb6
VZ
13926if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
13927 echo $ac_n "(cached) $ac_c" 1>&6
13928else
13929 cat > conftest.$ac_ext <<EOF
be505a65 13930#line 13931 "configure"
0fb0dd83 13931#include "confdefs.h"
698dcdb6
VZ
13932#include <$ac_hdr>
13933EOF
13934ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
be505a65 13935{ (eval echo configure:13936: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
13936ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13937if test -z "$ac_err"; then
13938 rm -rf conftest*
13939 eval "ac_cv_header_$ac_safe=yes"
0fb0dd83 13940else
698dcdb6
VZ
13941 echo "$ac_err" >&5
13942 echo "configure: failed program was:" >&5
0fb0dd83 13943 cat conftest.$ac_ext >&5
698dcdb6
VZ
13944 rm -rf conftest*
13945 eval "ac_cv_header_$ac_safe=no"
0fb0dd83 13946fi
698dcdb6 13947rm -f conftest*
0fb0dd83 13948fi
698dcdb6
VZ
13949if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13950 echo "$ac_t""yes" 1>&6
13951 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
13952 cat >> confdefs.h <<EOF
13953#define $ac_tr_hdr 1
0fb0dd83 13954EOF
698dcdb6
VZ
13955
13956else
13957 echo "$ac_t""no" 1>&6
0fb0dd83
RR
13958fi
13959done
13960
1f8ae82f 13961fi
f0c87536 13962
1f8ae82f 13963
9f8148b1 13964for ac_hdr in fnmatch.h
10f2d63a 13965do
698dcdb6
VZ
13966ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
13967echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
be505a65 13968echo "configure:13969: checking for $ac_hdr" >&5
0fbb762e
MB
13969if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
13970 echo $ac_n "(cached) $ac_c" 1>&6
13971else
13972 cat > conftest.$ac_ext <<EOF
be505a65 13973#line 13974 "configure"
0fbb762e
MB
13974#include "confdefs.h"
13975#include <$ac_hdr>
13976EOF
13977ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
be505a65 13978{ (eval echo configure:13979: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
0fbb762e
MB
13979ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13980if test -z "$ac_err"; then
13981 rm -rf conftest*
13982 eval "ac_cv_header_$ac_safe=yes"
13983else
13984 echo "$ac_err" >&5
13985 echo "configure: failed program was:" >&5
13986 cat conftest.$ac_ext >&5
13987 rm -rf conftest*
13988 eval "ac_cv_header_$ac_safe=no"
13989fi
13990rm -f conftest*
13991fi
13992if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13993 echo "$ac_t""yes" 1>&6
13994 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
13995 cat >> confdefs.h <<EOF
13996#define $ac_tr_hdr 1
13997EOF
13998
13999else
14000 echo "$ac_t""no" 1>&6
14001fi
14002done
14003
19bc6aad
VZ
14004
14005if test "x$ac_cv_header_fnmatch_h" = "xyes"; then
14006 for ac_func in fnmatch
14007do
14008echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
be505a65 14009echo "configure:14010: checking for $ac_func" >&5
19bc6aad
VZ
14010if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14011 echo $ac_n "(cached) $ac_c" 1>&6
14012else
14013 cat > conftest.$ac_ext <<EOF
be505a65 14014#line 14015 "configure"
19bc6aad
VZ
14015#include "confdefs.h"
14016/* System header to define __stub macros and hopefully few prototypes,
14017 which can conflict with char $ac_func(); below. */
14018#include <assert.h>
14019/* Override any gcc2 internal prototype to avoid an error. */
14020/* We use char because int might match the return type of a gcc2
14021 builtin and then its argument prototype would still apply. */
14022char $ac_func();
14023
14024int main() {
14025
14026/* The GNU C library defines this for functions which it implements
14027 to always fail with ENOSYS. Some functions are actually named
14028 something starting with __ and the normal name is an alias. */
14029#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14030choke me
14031#else
14032$ac_func();
14033#endif
14034
14035; return 0; }
14036EOF
be505a65 14037if { (eval echo configure:14038: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19bc6aad
VZ
14038 rm -rf conftest*
14039 eval "ac_cv_func_$ac_func=yes"
14040else
14041 echo "configure: failed program was:" >&5
14042 cat conftest.$ac_ext >&5
14043 rm -rf conftest*
14044 eval "ac_cv_func_$ac_func=no"
14045fi
14046rm -f conftest*
14047fi
14048
14049if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14050 echo "$ac_t""yes" 1>&6
14051 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14052 cat >> confdefs.h <<EOF
14053#define $ac_tr_func 1
14054EOF
14055
14056else
14057 echo "$ac_t""no" 1>&6
14058fi
14059done
14060
14061fi
14062
9f8148b1
GD
14063for ac_hdr in langinfo.h
14064do
14065ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
14066echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
be505a65 14067echo "configure:14068: checking for $ac_hdr" >&5
9f8148b1
GD
14068if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
14069 echo $ac_n "(cached) $ac_c" 1>&6
14070else
14071 cat > conftest.$ac_ext <<EOF
be505a65 14072#line 14073 "configure"
9f8148b1
GD
14073#include "confdefs.h"
14074#include <$ac_hdr>
14075EOF
14076ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
be505a65 14077{ (eval echo configure:14078: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9f8148b1
GD
14078ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
14079if test -z "$ac_err"; then
14080 rm -rf conftest*
14081 eval "ac_cv_header_$ac_safe=yes"
14082else
14083 echo "$ac_err" >&5
14084 echo "configure: failed program was:" >&5
14085 cat conftest.$ac_ext >&5
14086 rm -rf conftest*
14087 eval "ac_cv_header_$ac_safe=no"
14088fi
14089rm -f conftest*
14090fi
14091if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
14092 echo "$ac_t""yes" 1>&6
14093 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
14094 cat >> confdefs.h <<EOF
14095#define $ac_tr_hdr 1
14096EOF
14097
14098else
14099 echo "$ac_t""no" 1>&6
14100fi
14101done
14102
10f2d63a 14103
3a922bb4
RL
14104if test "$wxUSE_GUI" = "yes"; then
14105 if test "$wxUSE_UNIX" = "yes"; then
14106 for ac_hdr in X11/XKBlib.h
29fd3c0c
VS
14107do
14108ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
14109echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
be505a65 14110echo "configure:14111: checking for $ac_hdr" >&5
29fd3c0c
VS
14111if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
14112 echo $ac_n "(cached) $ac_c" 1>&6
14113else
14114 cat > conftest.$ac_ext <<EOF
be505a65 14115#line 14116 "configure"
29fd3c0c
VS
14116#include "confdefs.h"
14117#include <$ac_hdr>
14118EOF
14119ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
be505a65 14120{ (eval echo configure:14121: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
29fd3c0c
VS
14121ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
14122if test -z "$ac_err"; then
14123 rm -rf conftest*
14124 eval "ac_cv_header_$ac_safe=yes"
14125else
14126 echo "$ac_err" >&5
14127 echo "configure: failed program was:" >&5
14128 cat conftest.$ac_ext >&5
14129 rm -rf conftest*
14130 eval "ac_cv_header_$ac_safe=no"
14131fi
14132rm -f conftest*
14133fi
14134if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
14135 echo "$ac_t""yes" 1>&6
14136 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
14137 cat >> confdefs.h <<EOF
14138#define $ac_tr_hdr 1
14139EOF
14140
14141else
14142 echo "$ac_t""no" 1>&6
14143fi
14144done
14145
3a922bb4 14146 fi
29fd3c0c
VS
14147fi
14148
698dcdb6
VZ
14149
14150echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
be505a65 14151echo "configure:14152: checking for ANSI C header files" >&5
698dcdb6
VZ
14152if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
14153 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 14154else
698dcdb6 14155 cat > conftest.$ac_ext <<EOF
be505a65 14156#line 14157 "configure"
10f2d63a
VZ
14157#include "confdefs.h"
14158#include <stdlib.h>
14159#include <stdarg.h>
14160#include <string.h>
14161#include <float.h>
698dcdb6
VZ
14162EOF
14163ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
be505a65 14164{ (eval echo configure:14165: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
14165ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
14166if test -z "$ac_err"; then
14167 rm -rf conftest*
10f2d63a
VZ
14168 ac_cv_header_stdc=yes
14169else
698dcdb6
VZ
14170 echo "$ac_err" >&5
14171 echo "configure: failed program was:" >&5
10f2d63a 14172 cat conftest.$ac_ext >&5
698dcdb6 14173 rm -rf conftest*
10f2d63a
VZ
14174 ac_cv_header_stdc=no
14175fi
698dcdb6 14176rm -f conftest*
10f2d63a
VZ
14177
14178if test $ac_cv_header_stdc = yes; then
14179 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
698dcdb6 14180cat > conftest.$ac_ext <<EOF
be505a65 14181#line 14182 "configure"
10f2d63a
VZ
14182#include "confdefs.h"
14183#include <string.h>
698dcdb6 14184EOF
10f2d63a
VZ
14185if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14186 egrep "memchr" >/dev/null 2>&1; then
14187 :
14188else
698dcdb6 14189 rm -rf conftest*
10f2d63a
VZ
14190 ac_cv_header_stdc=no
14191fi
14192rm -f conftest*
14193
14194fi
14195
14196if test $ac_cv_header_stdc = yes; then
14197 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
698dcdb6 14198cat > conftest.$ac_ext <<EOF
be505a65 14199#line 14200 "configure"
10f2d63a
VZ
14200#include "confdefs.h"
14201#include <stdlib.h>
698dcdb6 14202EOF
10f2d63a
VZ
14203if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14204 egrep "free" >/dev/null 2>&1; then
14205 :
14206else
698dcdb6 14207 rm -rf conftest*
10f2d63a
VZ
14208 ac_cv_header_stdc=no
14209fi
14210rm -f conftest*
14211
14212fi
14213
14214if test $ac_cv_header_stdc = yes; then
14215 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
698dcdb6 14216if test "$cross_compiling" = yes; then
10f2d63a
VZ
14217 :
14218else
698dcdb6 14219 cat > conftest.$ac_ext <<EOF
be505a65 14220#line 14221 "configure"
10f2d63a
VZ
14221#include "confdefs.h"
14222#include <ctype.h>
698dcdb6
VZ
14223#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
14224#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1e487827 14225#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
698dcdb6
VZ
14226int main () { int i; for (i = 0; i < 256; i++)
14227if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
14228exit (0); }
14229
14230EOF
be505a65 14231if { (eval echo configure:14232: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
698dcdb6 14232then
10f2d63a
VZ
14233 :
14234else
698dcdb6
VZ
14235 echo "configure: failed program was:" >&5
14236 cat conftest.$ac_ext >&5
14237 rm -fr conftest*
14238 ac_cv_header_stdc=no
10f2d63a 14239fi
698dcdb6 14240rm -fr conftest*
10f2d63a 14241fi
698dcdb6 14242
10f2d63a
VZ
14243fi
14244fi
1e487827 14245
698dcdb6
VZ
14246echo "$ac_t""$ac_cv_header_stdc" 1>&6
14247if test $ac_cv_header_stdc = yes; then
14248 cat >> confdefs.h <<\EOF
10f2d63a
VZ
14249#define STDC_HEADERS 1
14250EOF
14251
14252fi
14253
698dcdb6 14254echo $ac_n "checking for mode_t""... $ac_c" 1>&6
be505a65 14255echo "configure:14256: checking for mode_t" >&5
698dcdb6
VZ
14256if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
14257 echo $ac_n "(cached) $ac_c" 1>&6
1e487827 14258else
698dcdb6 14259 cat > conftest.$ac_ext <<EOF
be505a65 14260#line 14261 "configure"
1e487827 14261#include "confdefs.h"
698dcdb6
VZ
14262#include <sys/types.h>
14263#if STDC_HEADERS
14264#include <stdlib.h>
14265#include <stddef.h>
14266#endif
14267EOF
14268if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14269 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
14270 rm -rf conftest*
10f2d63a
VZ
14271 ac_cv_type_mode_t=yes
14272else
698dcdb6
VZ
14273 rm -rf conftest*
14274 ac_cv_type_mode_t=no
703e0a69 14275fi
698dcdb6 14276rm -f conftest*
1e487827 14277
698dcdb6
VZ
14278fi
14279echo "$ac_t""$ac_cv_type_mode_t" 1>&6
14280if test $ac_cv_type_mode_t = no; then
14281 cat >> confdefs.h <<\EOF
10f2d63a
VZ
14282#define mode_t int
14283EOF
14284
14285fi
14286
698dcdb6 14287echo $ac_n "checking for off_t""... $ac_c" 1>&6
be505a65 14288echo "configure:14289: checking for off_t" >&5
698dcdb6
VZ
14289if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
14290 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 14291else
698dcdb6 14292 cat > conftest.$ac_ext <<EOF
be505a65 14293#line 14294 "configure"
10f2d63a 14294#include "confdefs.h"
698dcdb6
VZ
14295#include <sys/types.h>
14296#if STDC_HEADERS
14297#include <stdlib.h>
14298#include <stddef.h>
14299#endif
14300EOF
14301if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14302 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
14303 rm -rf conftest*
10f2d63a
VZ
14304 ac_cv_type_off_t=yes
14305else
698dcdb6
VZ
14306 rm -rf conftest*
14307 ac_cv_type_off_t=no
703e0a69 14308fi
698dcdb6 14309rm -f conftest*
1e487827 14310
698dcdb6
VZ
14311fi
14312echo "$ac_t""$ac_cv_type_off_t" 1>&6
14313if test $ac_cv_type_off_t = no; then
14314 cat >> confdefs.h <<\EOF
10f2d63a
VZ
14315#define off_t long
14316EOF
14317
14318fi
14319
698dcdb6 14320echo $ac_n "checking for pid_t""... $ac_c" 1>&6
be505a65 14321echo "configure:14322: checking for pid_t" >&5
698dcdb6
VZ
14322if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
14323 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 14324else
698dcdb6 14325 cat > conftest.$ac_ext <<EOF
be505a65 14326#line 14327 "configure"
10f2d63a 14327#include "confdefs.h"
698dcdb6
VZ
14328#include <sys/types.h>
14329#if STDC_HEADERS
14330#include <stdlib.h>
14331#include <stddef.h>
14332#endif
14333EOF
14334if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14335 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
14336 rm -rf conftest*
10f2d63a
VZ
14337 ac_cv_type_pid_t=yes
14338else
698dcdb6
VZ
14339 rm -rf conftest*
14340 ac_cv_type_pid_t=no
703e0a69 14341fi
698dcdb6 14342rm -f conftest*
1e487827 14343
698dcdb6
VZ
14344fi
14345echo "$ac_t""$ac_cv_type_pid_t" 1>&6
14346if test $ac_cv_type_pid_t = no; then
14347 cat >> confdefs.h <<\EOF
10f2d63a
VZ
14348#define pid_t int
14349EOF
14350
14351fi
14352
698dcdb6 14353echo $ac_n "checking for size_t""... $ac_c" 1>&6
be505a65 14354echo "configure:14355: checking for size_t" >&5
698dcdb6
VZ
14355if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
14356 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 14357else
698dcdb6 14358 cat > conftest.$ac_ext <<EOF
be505a65 14359#line 14360 "configure"
10f2d63a 14360#include "confdefs.h"
698dcdb6
VZ
14361#include <sys/types.h>
14362#if STDC_HEADERS
14363#include <stdlib.h>
14364#include <stddef.h>
14365#endif
14366EOF
14367if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14368 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
14369 rm -rf conftest*
10f2d63a
VZ
14370 ac_cv_type_size_t=yes
14371else
698dcdb6
VZ
14372 rm -rf conftest*
14373 ac_cv_type_size_t=no
703e0a69 14374fi
698dcdb6 14375rm -f conftest*
1e487827 14376
698dcdb6
VZ
14377fi
14378echo "$ac_t""$ac_cv_type_size_t" 1>&6
14379if test $ac_cv_type_size_t = no; then
14380 cat >> confdefs.h <<\EOF
10f2d63a
VZ
14381#define size_t unsigned
14382EOF
14383
14384fi
14385
698dcdb6 14386echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
be505a65 14387echo "configure:14388: checking for uid_t in sys/types.h" >&5
698dcdb6
VZ
14388if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
14389 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 14390else
698dcdb6 14391 cat > conftest.$ac_ext <<EOF
be505a65 14392#line 14393 "configure"
10f2d63a
VZ
14393#include "confdefs.h"
14394#include <sys/types.h>
698dcdb6 14395EOF
10f2d63a
VZ
14396if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14397 egrep "uid_t" >/dev/null 2>&1; then
698dcdb6 14398 rm -rf conftest*
10f2d63a
VZ
14399 ac_cv_type_uid_t=yes
14400else
698dcdb6 14401 rm -rf conftest*
10f2d63a
VZ
14402 ac_cv_type_uid_t=no
14403fi
14404rm -f conftest*
14405
14406fi
1e487827 14407
698dcdb6
VZ
14408echo "$ac_t""$ac_cv_type_uid_t" 1>&6
14409if test $ac_cv_type_uid_t = no; then
14410 cat >> confdefs.h <<\EOF
10f2d63a
VZ
14411#define uid_t int
14412EOF
14413
698dcdb6 14414 cat >> confdefs.h <<\EOF
10f2d63a
VZ
14415#define gid_t int
14416EOF
14417
14418fi
14419
1e487827 14420
19af3b06
VZ
14421
14422ac_ext=C
14423# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14424ac_cpp='$CXXCPP $CPPFLAGS'
14425ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14426ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14427cross_compiling=$ac_cv_prog_cxx_cross
14428
d836ee96 14429echo $ac_n "checking if size_t is unsigned int""... $ac_c" 1>&6
d29b553b 14430echo "configure:14431: checking if size_t is unsigned int" >&5
d836ee96
VZ
14431if eval "test \"`echo '$''{'wx_cv_size_t_is_uint'+set}'`\" = set"; then
14432 echo $ac_n "(cached) $ac_c" 1>&6
14433else
dd2c8b7c 14434 cat > conftest.$ac_ext <<EOF
d29b553b 14435#line 14436 "configure"
d836ee96
VZ
14436#include "confdefs.h"
14437#include <stddef.h>
14438int main() {
14439
dd2c8b7c
VZ
14440 return 0; }
14441
d836ee96 14442 struct Foo { void foo(size_t); void foo(unsigned int); };
dd2c8b7c
VZ
14443
14444 int bar() {
d836ee96
VZ
14445
14446; return 0; }
14447EOF
d29b553b 14448if { (eval echo configure:14449: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d836ee96
VZ
14449 rm -rf conftest*
14450 wx_cv_size_t_is_uint=no
14451else
14452 echo "configure: failed program was:" >&5
14453 cat conftest.$ac_ext >&5
14454 rm -rf conftest*
14455 wx_cv_size_t_is_uint=yes
14456
14457fi
14458rm -f conftest*
14459
14460fi
14461
14462echo "$ac_t""$wx_cv_size_t_is_uint" 1>&6
14463
14464if test "$wx_cv_size_t_is_uint" = "yes"; then
14465 cat >> confdefs.h <<\EOF
14466#define wxSIZE_T_IS_UINT 1
14467EOF
14468
14469else
14470 echo $ac_n "checking if size_t is unsigned long""... $ac_c" 1>&6
d29b553b 14471echo "configure:14472: checking if size_t is unsigned long" >&5
d836ee96
VZ
14472if eval "test \"`echo '$''{'wx_cv_size_t_is_ulong'+set}'`\" = set"; then
14473 echo $ac_n "(cached) $ac_c" 1>&6
14474else
14475 cat > conftest.$ac_ext <<EOF
d29b553b 14476#line 14477 "configure"
d836ee96
VZ
14477#include "confdefs.h"
14478#include <stddef.h>
14479int main() {
14480
dd2c8b7c
VZ
14481 return 0; }
14482
d836ee96 14483 struct Foo { void foo(size_t); void foo(unsigned long); };
dd2c8b7c
VZ
14484
14485 int bar() {
d836ee96
VZ
14486
14487; return 0; }
14488EOF
d29b553b 14489if { (eval echo configure:14490: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d836ee96
VZ
14490 rm -rf conftest*
14491 wx_cv_size_t_is_ulong=no
14492else
14493 echo "configure: failed program was:" >&5
14494 cat conftest.$ac_ext >&5
14495 rm -rf conftest*
14496 wx_cv_size_t_is_ulong=yes
14497
14498fi
14499rm -f conftest*
14500
14501fi
14502
14503echo "$ac_t""$wx_cv_size_t_is_ulong" 1>&6
14504
14505 if test "$wx_cv_size_t_is_ulong" = "yes"; then
14506 cat >> confdefs.h <<\EOF
14507#define wxSIZE_T_IS_ULONG 1
14508EOF
14509
14510 fi
14511fi
14512
19af3b06
VZ
14513ac_ext=c
14514# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14515ac_cpp='$CPP $CPPFLAGS'
14516ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14517ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14518cross_compiling=$ac_cv_prog_cc_cross
14519
14520
1e487827 14521
698dcdb6 14522echo $ac_n "checking for pw_gecos in struct passwd""... $ac_c" 1>&6
d29b553b 14523echo "configure:14524: checking for pw_gecos in struct passwd" >&5
698dcdb6
VZ
14524if eval "test \"`echo '$''{'wx_cv_struct_pw_gecos'+set}'`\" = set"; then
14525 echo $ac_n "(cached) $ac_c" 1>&6
14526else
14527
14528 cat > conftest.$ac_ext <<EOF
d29b553b 14529#line 14530 "configure"
b12915c1
VZ
14530#include "confdefs.h"
14531#include <pwd.h>
698dcdb6 14532int main() {
b12915c1
VZ
14533
14534 char *p;
14535 struct passwd *pw;
14536 p = pw->pw_gecos;
698dcdb6
VZ
14537
14538; return 0; }
14539EOF
d29b553b 14540if { (eval echo configure:14541: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6
VZ
14541 rm -rf conftest*
14542
b12915c1 14543 wx_cv_struct_pw_gecos=yes
698dcdb6 14544
b12915c1 14545else
698dcdb6
VZ
14546 echo "configure: failed program was:" >&5
14547 cat conftest.$ac_ext >&5
14548 rm -rf conftest*
14549
b12915c1 14550 wx_cv_struct_pw_gecos=no
698dcdb6
VZ
14551
14552
6232543b 14553fi
698dcdb6
VZ
14554rm -f conftest*
14555
703e0a69 14556
1e487827 14557fi
698dcdb6
VZ
14558
14559echo "$ac_t""$wx_cv_struct_pw_gecos" 1>&6
b12915c1 14560
bd3277fe 14561if test "$wx_cv_struct_pw_gecos" = "yes"; then
698dcdb6 14562 cat >> confdefs.h <<\EOF
bd3277fe
VZ
14563#define HAVE_PW_GECOS 1
14564EOF
14565
14566fi
14567
698dcdb6
VZ
14568
14569echo $ac_n "checking for working const""... $ac_c" 1>&6
d29b553b 14570echo "configure:14571: checking for working const" >&5
698dcdb6
VZ
14571if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
14572 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 14573else
698dcdb6 14574 cat > conftest.$ac_ext <<EOF
d29b553b 14575#line 14576 "configure"
10f2d63a 14576#include "confdefs.h"
698dcdb6
VZ
14577
14578int main() {
14579
14580/* Ultrix mips cc rejects this. */
d558c907 14581typedef int charset[2]; const charset x;
698dcdb6
VZ
14582/* SunOS 4.1.1 cc rejects this. */
14583char const *const *ccp;
14584char **p;
14585/* NEC SVR4.0.2 mips cc rejects this. */
14586struct point {int x, y;};
14587static struct point const zero = {0,0};
14588/* AIX XL C 1.02.0.0 rejects this.
14589 It does not let you subtract one const X* pointer from another in an arm
14590 of an if-expression whose if-part is not a constant expression */
14591const char *g = "string";
14592ccp = &g + (g ? g-g : 0);
14593/* HPUX 7.0 cc rejects these. */
14594++ccp;
14595p = (char**) ccp;
14596ccp = (char const *const *) p;
14597{ /* SCO 3.2v4 cc rejects this. */
14598 char *t;
14599 char const *s = 0 ? (char *) 0 : (char const *) 0;
14600
14601 *t++ = 0;
10f2d63a 14602}
698dcdb6
VZ
14603{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
14604 int x[] = {25, 17};
14605 const int *foo = &x[0];
14606 ++foo;
703e0a69 14607}
698dcdb6
VZ
14608{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
14609 typedef const int *iptr;
14610 iptr p = 0;
14611 ++p;
6232543b 14612}
698dcdb6
VZ
14613{ /* AIX XL C 1.02.0.0 rejects this saying
14614 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
14615 struct s { int j; const int *ap[3]; };
14616 struct s *b; b->j = 5;
1e487827 14617}
698dcdb6
VZ
14618{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
14619 const int foo = 10;
14620}
4f14bcd8
GD
14621
14622; return 0; }
698dcdb6 14623EOF
d29b553b 14624if { (eval echo configure:14625: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4f14bcd8
GD
14625 rm -rf conftest*
14626 ac_cv_c_const=yes
698dcdb6
VZ
14627else
14628 echo "configure: failed program was:" >&5
14629 cat conftest.$ac_ext >&5
4f14bcd8
GD
14630 rm -rf conftest*
14631 ac_cv_c_const=no
703e0a69 14632fi
4f14bcd8 14633rm -f conftest*
698dcdb6
VZ
14634fi
14635
4f14bcd8
GD
14636echo "$ac_t""$ac_cv_c_const" 1>&6
14637if test $ac_cv_c_const = no; then
14638 cat >> confdefs.h <<\EOF
14639#define const
698dcdb6
VZ
14640EOF
14641
4f14bcd8 14642fi
698dcdb6 14643
4f14bcd8 14644echo $ac_n "checking for inline""... $ac_c" 1>&6
d29b553b 14645echo "configure:14646: checking for inline" >&5
4f14bcd8 14646if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
698dcdb6 14647 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 14648else
4f14bcd8
GD
14649 ac_cv_c_inline=no
14650for ac_kw in inline __inline__ __inline; do
698dcdb6 14651 cat > conftest.$ac_ext <<EOF
d29b553b 14652#line 14653 "configure"
10f2d63a 14653#include "confdefs.h"
4f14bcd8
GD
14654
14655int main() {
d558c907 14656} $ac_kw foo() {
4f14bcd8 14657; return 0; }
698dcdb6 14658EOF
d29b553b 14659if { (eval echo configure:14660: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4f14bcd8
GD
14660 rm -rf conftest*
14661 ac_cv_c_inline=$ac_kw; break
10f2d63a 14662else
698dcdb6
VZ
14663 echo "configure: failed program was:" >&5
14664 cat conftest.$ac_ext >&5
10f2d63a 14665fi
4f14bcd8
GD
14666rm -f conftest*
14667done
698dcdb6 14668
10f2d63a 14669fi
4f14bcd8
GD
14670
14671echo "$ac_t""$ac_cv_c_inline" 1>&6
14672case "$ac_cv_c_inline" in
14673 inline | yes) ;;
14674 no) cat >> confdefs.h <<\EOF
14675#define inline
14676EOF
14677 ;;
14678 *) cat >> confdefs.h <<EOF
14679#define inline $ac_cv_c_inline
698dcdb6 14680EOF
4f14bcd8
GD
14681 ;;
14682esac
698dcdb6
VZ
14683
14684
4f14bcd8 14685echo $ac_n "checking size of char""... $ac_c" 1>&6
d29b553b 14686echo "configure:14687: checking size of char" >&5
4f14bcd8 14687if eval "test \"`echo '$''{'ac_cv_sizeof_char'+set}'`\" = set"; then
698dcdb6
VZ
14688 echo $ac_n "(cached) $ac_c" 1>&6
14689else
14690 if test "$cross_compiling" = yes; then
4f14bcd8 14691 ac_cv_sizeof_char=1
698dcdb6
VZ
14692else
14693 cat > conftest.$ac_ext <<EOF
d29b553b 14694#line 14695 "configure"
698dcdb6
VZ
14695#include "confdefs.h"
14696#include <stdio.h>
9337b578 14697main()
698dcdb6
VZ
14698{
14699 FILE *f=fopen("conftestval", "w");
9337b578 14700 if (!f) exit(1);
4f14bcd8 14701 fprintf(f, "%d\n", sizeof(char));
9337b578 14702 exit(0);
698dcdb6
VZ
14703}
14704EOF
d29b553b 14705if { (eval echo configure:14706: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
698dcdb6 14706then
4f14bcd8 14707 ac_cv_sizeof_char=`cat conftestval`
6232543b 14708else
698dcdb6
VZ
14709 echo "configure: failed program was:" >&5
14710 cat conftest.$ac_ext >&5
14711 rm -fr conftest*
4f14bcd8 14712 ac_cv_sizeof_char=0
6232543b 14713fi
698dcdb6
VZ
14714rm -fr conftest*
14715fi
14716
703e0a69 14717fi
4f14bcd8 14718echo "$ac_t""$ac_cv_sizeof_char" 1>&6
698dcdb6 14719cat >> confdefs.h <<EOF
4f14bcd8 14720#define SIZEOF_CHAR $ac_cv_sizeof_char
10f2d63a
VZ
14721EOF
14722
1e487827 14723
4f14bcd8 14724echo $ac_n "checking size of short""... $ac_c" 1>&6
d29b553b 14725echo "configure:14726: checking size of short" >&5
4f14bcd8 14726if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
698dcdb6
VZ
14727 echo $ac_n "(cached) $ac_c" 1>&6
14728else
4f14bcd8
GD
14729 if test "$cross_compiling" = yes; then
14730 ac_cv_sizeof_short=2
b93d0d08 14731else
698dcdb6 14732 cat > conftest.$ac_ext <<EOF
d29b553b 14733#line 14734 "configure"
b93d0d08 14734#include "confdefs.h"
4f14bcd8 14735#include <stdio.h>
9337b578 14736main()
4f14bcd8
GD
14737{
14738 FILE *f=fopen("conftestval", "w");
9337b578 14739 if (!f) exit(1);
4f14bcd8 14740 fprintf(f, "%d\n", sizeof(short));
9337b578 14741 exit(0);
4f14bcd8 14742}
698dcdb6 14743EOF
d29b553b 14744if { (eval echo configure:14745: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
698dcdb6 14745then
4f14bcd8 14746 ac_cv_sizeof_short=`cat conftestval`
b93d0d08 14747else
698dcdb6
VZ
14748 echo "configure: failed program was:" >&5
14749 cat conftest.$ac_ext >&5
14750 rm -fr conftest*
4f14bcd8 14751 ac_cv_sizeof_short=0
b93d0d08 14752fi
698dcdb6 14753rm -fr conftest*
b93d0d08
VS
14754fi
14755
b93d0d08 14756fi
4f14bcd8 14757echo "$ac_t""$ac_cv_sizeof_short" 1>&6
698dcdb6 14758cat >> confdefs.h <<EOF
4f14bcd8 14759#define SIZEOF_SHORT $ac_cv_sizeof_short
b93d0d08
VS
14760EOF
14761
698dcdb6 14762
17c89ef3 14763echo $ac_n "checking size of void *""... $ac_c" 1>&6
d29b553b 14764echo "configure:14765: checking size of void *" >&5
17c89ef3 14765if eval "test \"`echo '$''{'ac_cv_sizeof_void_p'+set}'`\" = set"; then
698dcdb6 14766 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 14767else
4f14bcd8 14768 if test "$cross_compiling" = yes; then
17c89ef3 14769 ac_cv_sizeof_void_p=4
3a922bb4 14770else
3a922bb4 14771 cat > conftest.$ac_ext <<EOF
d29b553b 14772#line 14773 "configure"
3a922bb4 14773#include "confdefs.h"
4f14bcd8 14774#include <stdio.h>
9337b578 14775main()
4f14bcd8
GD
14776{
14777 FILE *f=fopen("conftestval", "w");
9337b578 14778 if (!f) exit(1);
17c89ef3 14779 fprintf(f, "%d\n", sizeof(void *));
9337b578 14780 exit(0);
4f14bcd8
GD
14781}
14782EOF
d29b553b 14783if { (eval echo configure:14784: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4f14bcd8 14784then
17c89ef3 14785 ac_cv_sizeof_void_p=`cat conftestval`
4f14bcd8
GD
14786else
14787 echo "configure: failed program was:" >&5
14788 cat conftest.$ac_ext >&5
14789 rm -fr conftest*
17c89ef3 14790 ac_cv_sizeof_void_p=0
3a922bb4 14791fi
4f14bcd8 14792rm -fr conftest*
3a922bb4 14793fi
698dcdb6 14794
4f14bcd8 14795fi
17c89ef3 14796echo "$ac_t""$ac_cv_sizeof_void_p" 1>&6
4f14bcd8 14797cat >> confdefs.h <<EOF
17c89ef3 14798#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
10f2d63a
VZ
14799EOF
14800
703e0a69 14801
4f14bcd8 14802echo $ac_n "checking size of int""... $ac_c" 1>&6
d29b553b 14803echo "configure:14804: checking size of int" >&5
4f14bcd8 14804if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
698dcdb6 14805 echo $ac_n "(cached) $ac_c" 1>&6
4f14bcd8
GD
14806else
14807 if test "$cross_compiling" = yes; then
14808 ac_cv_sizeof_int=4
698dcdb6
VZ
14809else
14810 cat > conftest.$ac_ext <<EOF
d29b553b 14811#line 14812 "configure"
10f2d63a 14812#include "confdefs.h"
4f14bcd8 14813#include <stdio.h>
9337b578 14814main()
4f14bcd8
GD
14815{
14816 FILE *f=fopen("conftestval", "w");
9337b578 14817 if (!f) exit(1);
4f14bcd8 14818 fprintf(f, "%d\n", sizeof(int));
9337b578 14819 exit(0);
4f14bcd8 14820}
698dcdb6 14821EOF
d29b553b 14822if { (eval echo configure:14823: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4f14bcd8
GD
14823then
14824 ac_cv_sizeof_int=`cat conftestval`
10f2d63a 14825else
698dcdb6 14826 echo "configure: failed program was:" >&5
10f2d63a 14827 cat conftest.$ac_ext >&5
4f14bcd8
GD
14828 rm -fr conftest*
14829 ac_cv_sizeof_int=0
10f2d63a 14830fi
4f14bcd8 14831rm -fr conftest*
10f2d63a 14832fi
10f2d63a 14833
4f14bcd8
GD
14834fi
14835echo "$ac_t""$ac_cv_sizeof_int" 1>&6
14836cat >> confdefs.h <<EOF
14837#define SIZEOF_INT $ac_cv_sizeof_int
10f2d63a
VZ
14838EOF
14839
698dcdb6 14840
4f14bcd8 14841echo $ac_n "checking size of long""... $ac_c" 1>&6
d29b553b 14842echo "configure:14843: checking size of long" >&5
4f14bcd8 14843if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
698dcdb6
VZ
14844 echo $ac_n "(cached) $ac_c" 1>&6
14845else
4f14bcd8
GD
14846 if test "$cross_compiling" = yes; then
14847 ac_cv_sizeof_long=4
14848else
14849 cat > conftest.$ac_ext <<EOF
d29b553b 14850#line 14851 "configure"
10f2d63a 14851#include "confdefs.h"
4f14bcd8 14852#include <stdio.h>
9337b578 14853main()
4f14bcd8
GD
14854{
14855 FILE *f=fopen("conftestval", "w");
9337b578 14856 if (!f) exit(1);
4f14bcd8 14857 fprintf(f, "%d\n", sizeof(long));
9337b578 14858 exit(0);
4f14bcd8 14859}
698dcdb6 14860EOF
d29b553b 14861if { (eval echo configure:14862: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4f14bcd8
GD
14862then
14863 ac_cv_sizeof_long=`cat conftestval`
10f2d63a 14864else
698dcdb6
VZ
14865 echo "configure: failed program was:" >&5
14866 cat conftest.$ac_ext >&5
4f14bcd8
GD
14867 rm -fr conftest*
14868 ac_cv_sizeof_long=0
10f2d63a 14869fi
4f14bcd8 14870rm -fr conftest*
10f2d63a 14871fi
698dcdb6 14872
4f14bcd8
GD
14873fi
14874echo "$ac_t""$ac_cv_sizeof_long" 1>&6
14875cat >> confdefs.h <<EOF
14876#define SIZEOF_LONG $ac_cv_sizeof_long
10f2d63a
VZ
14877EOF
14878
698dcdb6 14879
9d353d4a
RR
14880
14881case "${host}" in
14882 arm-*-linux* )
14883 echo $ac_n "checking size of long long""... $ac_c" 1>&6
d29b553b 14884echo "configure:14885: checking size of long long" >&5
9d353d4a
RR
14885if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
14886 echo $ac_n "(cached) $ac_c" 1>&6
14887else
14888 if test "$cross_compiling" = yes; then
14889 ac_cv_sizeof_long_long=8
14890else
14891 cat > conftest.$ac_ext <<EOF
d29b553b 14892#line 14893 "configure"
9d353d4a
RR
14893#include "confdefs.h"
14894#include <stdio.h>
14895main()
14896{
14897 FILE *f=fopen("conftestval", "w");
14898 if (!f) exit(1);
14899 fprintf(f, "%d\n", sizeof(long long));
14900 exit(0);
14901}
14902EOF
d29b553b 14903if { (eval echo configure:14904: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9d353d4a
RR
14904then
14905 ac_cv_sizeof_long_long=`cat conftestval`
14906else
14907 echo "configure: failed program was:" >&5
14908 cat conftest.$ac_ext >&5
14909 rm -fr conftest*
14910 ac_cv_sizeof_long_long=0
14911fi
14912rm -fr conftest*
14913fi
14914
14915fi
14916echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
14917cat >> confdefs.h <<EOF
14918#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
14919EOF
14920
14921
14922 ;;
14923 * )
14924 echo $ac_n "checking size of long long""... $ac_c" 1>&6
d29b553b 14925echo "configure:14926: checking size of long long" >&5
4f14bcd8 14926if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
698dcdb6 14927 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 14928else
4f14bcd8
GD
14929 if test "$cross_compiling" = yes; then
14930 ac_cv_sizeof_long_long=0
14931else
14932 cat > conftest.$ac_ext <<EOF
d29b553b 14933#line 14934 "configure"
10f2d63a 14934#include "confdefs.h"
4f14bcd8 14935#include <stdio.h>
9337b578 14936main()
4f14bcd8
GD
14937{
14938 FILE *f=fopen("conftestval", "w");
9337b578 14939 if (!f) exit(1);
4f14bcd8 14940 fprintf(f, "%d\n", sizeof(long long));
9337b578 14941 exit(0);
4f14bcd8 14942}
698dcdb6 14943EOF
d29b553b 14944if { (eval echo configure:14945: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4f14bcd8
GD
14945then
14946 ac_cv_sizeof_long_long=`cat conftestval`
698dcdb6
VZ
14947else
14948 echo "configure: failed program was:" >&5
14949 cat conftest.$ac_ext >&5
4f14bcd8
GD
14950 rm -fr conftest*
14951 ac_cv_sizeof_long_long=0
14952fi
14953rm -fr conftest*
698dcdb6 14954fi
698dcdb6
VZ
14955
14956fi
4f14bcd8
GD
14957echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
14958cat >> confdefs.h <<EOF
14959#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
10f2d63a
VZ
14960EOF
14961
10f2d63a 14962
9d353d4a
RR
14963esac
14964
4f14bcd8
GD
14965
14966echo $ac_n "checking size of wchar_t""... $ac_c" 1>&6
d29b553b 14967echo "configure:14968: checking size of wchar_t" >&5
4f14bcd8 14968if eval "test \"`echo '$''{'wx_cv_sizeof_wchar_t'+set}'`\" = set"; then
698dcdb6 14969 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 14970else
4f14bcd8
GD
14971
14972 if test "$cross_compiling" = yes; then
14973 wx_cv_sizeof_wchar_t=4
14974
14975else
14976 cat > conftest.$ac_ext <<EOF
d29b553b 14977#line 14978 "configure"
10f2d63a 14978#include "confdefs.h"
698dcdb6 14979
4f14bcd8 14980 #ifdef HAVE_WCHAR_H
0fbb762e
MB
14981 # ifdef __CYGWIN__
14982 # include <stddef.h>
14983 # endif
4f14bcd8
GD
14984 # include <wchar.h>
14985 #endif
14986 #ifdef HAVE_STDLIB_H
14987 # include <stdlib.h>
14988 #endif
14989 #include <stdio.h>
14990 int main()
14991 {
14992 FILE *f=fopen("conftestval", "w");
14993 if (!f) exit(1);
14994 fprintf(f, "%i", sizeof(wchar_t));
14995 exit(0);
14996 }
14997
698dcdb6 14998EOF
d29b553b 14999if { (eval echo configure:15000: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4f14bcd8
GD
15000then
15001 wx_cv_sizeof_wchar_t=`cat conftestval`
698dcdb6
VZ
15002else
15003 echo "configure: failed program was:" >&5
15004 cat conftest.$ac_ext >&5
4f14bcd8
GD
15005 rm -fr conftest*
15006 wx_cv_sizeof_wchar_t=0
698dcdb6 15007fi
4f14bcd8
GD
15008rm -fr conftest*
15009fi
15010
698dcdb6
VZ
15011
15012fi
4f14bcd8
GD
15013
15014echo "$ac_t""$wx_cv_sizeof_wchar_t" 1>&6
15015
15016cat >> confdefs.h <<EOF
15017#define SIZEOF_WCHAR_T $wx_cv_sizeof_wchar_t
10f2d63a
VZ
15018EOF
15019
18dbb1f6 15020
4f14bcd8 15021echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
d29b553b 15022echo "configure:15023: checking whether byte ordering is bigendian" >&5
4f14bcd8 15023if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
18dbb1f6
VZ
15024 echo $ac_n "(cached) $ac_c" 1>&6
15025else
4f14bcd8
GD
15026 ac_cv_c_bigendian=unknown
15027# See if sys/param.h defines the BYTE_ORDER macro.
18dbb1f6 15028cat > conftest.$ac_ext <<EOF
d29b553b 15029#line 15030 "configure"
18dbb1f6 15030#include "confdefs.h"
4f14bcd8
GD
15031#include <sys/types.h>
15032#include <sys/param.h>
15033int main() {
18dbb1f6 15034
4f14bcd8
GD
15035#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
15036 bogus endian macros
15037#endif
15038; return 0; }
15039EOF
d29b553b 15040if { (eval echo configure:15041: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4f14bcd8
GD
15041 rm -rf conftest*
15042 # It does; now see whether it defined to BIG_ENDIAN or not.
15043cat > conftest.$ac_ext <<EOF
d29b553b 15044#line 15045 "configure"
4f14bcd8
GD
15045#include "confdefs.h"
15046#include <sys/types.h>
15047#include <sys/param.h>
18dbb1f6 15048int main() {
4f14bcd8
GD
15049
15050#if BYTE_ORDER != BIG_ENDIAN
15051 not big endian
15052#endif
18dbb1f6
VZ
15053; return 0; }
15054EOF
d29b553b 15055if { (eval echo configure:15056: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18dbb1f6 15056 rm -rf conftest*
4f14bcd8 15057 ac_cv_c_bigendian=yes
18dbb1f6
VZ
15058else
15059 echo "configure: failed program was:" >&5
15060 cat conftest.$ac_ext >&5
15061 rm -rf conftest*
4f14bcd8 15062 ac_cv_c_bigendian=no
18dbb1f6
VZ
15063fi
15064rm -f conftest*
698dcdb6 15065else
4f14bcd8
GD
15066 echo "configure: failed program was:" >&5
15067 cat conftest.$ac_ext >&5
1e487827 15068fi
4f14bcd8
GD
15069rm -f conftest*
15070if test $ac_cv_c_bigendian = unknown; then
15071if test "$cross_compiling" = yes; then
15072 ac_cv_c_bigendian=unknown
b3e8d00a
VZ
15073else
15074 cat > conftest.$ac_ext <<EOF
d29b553b 15075#line 15076 "configure"
b3e8d00a 15076#include "confdefs.h"
4f14bcd8
GD
15077main () {
15078 /* Are we little or big endian? From Harbison&Steele. */
15079 union
15080 {
15081 long l;
15082 char c[sizeof (long)];
15083 } u;
15084 u.l = 1;
15085 exit (u.c[sizeof (long) - 1] == 1);
15086}
b3e8d00a 15087EOF
d29b553b 15088if { (eval echo configure:15089: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4f14bcd8
GD
15089then
15090 ac_cv_c_bigendian=no
b3e8d00a
VZ
15091else
15092 echo "configure: failed program was:" >&5
15093 cat conftest.$ac_ext >&5
4f14bcd8
GD
15094 rm -fr conftest*
15095 ac_cv_c_bigendian=yes
b3e8d00a 15096fi
4f14bcd8 15097rm -fr conftest*
b3e8d00a
VZ
15098fi
15099
4f14bcd8
GD
15100fi
15101fi
15102
15103echo "$ac_t""$ac_cv_c_bigendian" 1>&6
15104if test $ac_cv_c_bigendian = unknown; then
15105 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
15106fi
15107if test $ac_cv_c_bigendian = yes; then
15108 cat >> confdefs.h <<\EOF
15109#define WORDS_BIGENDIAN 1
b3e8d00a 15110EOF
4f14bcd8 15111
b3e8d00a 15112fi
b3e8d00a
VZ
15113
15114
4f14bcd8 15115echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
d29b553b 15116echo "configure:15117: checking how to run the C++ preprocessor" >&5
4f14bcd8
GD
15117if test -z "$CXXCPP"; then
15118if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
698dcdb6
VZ
15119 echo $ac_n "(cached) $ac_c" 1>&6
15120else
4f14bcd8
GD
15121 ac_ext=C
15122# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15123ac_cpp='$CXXCPP $CPPFLAGS'
15124ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15125ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15126cross_compiling=$ac_cv_prog_cxx_cross
15127 CXXCPP="${CXX-g++} -E"
698dcdb6 15128 cat > conftest.$ac_ext <<EOF
d29b553b 15129#line 15130 "configure"
10f2d63a 15130#include "confdefs.h"
4f14bcd8 15131#include <stdlib.h>
698dcdb6 15132EOF
4f14bcd8 15133ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
d29b553b 15134{ (eval echo configure:15135: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4f14bcd8
GD
15135ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15136if test -z "$ac_err"; then
15137 :
698dcdb6 15138else
4f14bcd8 15139 echo "$ac_err" >&5
698dcdb6
VZ
15140 echo "configure: failed program was:" >&5
15141 cat conftest.$ac_ext >&5
15142 rm -rf conftest*
4f14bcd8 15143 CXXCPP=/lib/cpp
698dcdb6
VZ
15144fi
15145rm -f conftest*
4f14bcd8
GD
15146 ac_cv_prog_CXXCPP="$CXXCPP"
15147ac_ext=C
15148# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15149ac_cpp='$CXXCPP $CPPFLAGS'
15150ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15151ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15152cross_compiling=$ac_cv_prog_cxx_cross
15153fi
698dcdb6 15154fi
4f14bcd8
GD
15155CXXCPP="$ac_cv_prog_CXXCPP"
15156echo "$ac_t""$CXXCPP" 1>&6
698dcdb6 15157
4f14bcd8
GD
15158
15159 if test "$cross_compiling" = "yes"; then
15160 cat >> confdefs.h <<\EOF
15161#define wxUSE_IOSTREAMH 1
698dcdb6
VZ
15162EOF
15163
4f14bcd8
GD
15164 else
15165
15166 ac_ext=C
15167# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15168ac_cpp='$CXXCPP $CPPFLAGS'
15169ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15170ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15171cross_compiling=$ac_cv_prog_cxx_cross
698dcdb6 15172
4f14bcd8
GD
15173
15174 for ac_hdr in iostream
15175do
15176ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
15177echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
d29b553b 15178echo "configure:15179: checking for $ac_hdr" >&5
4f14bcd8 15179if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
698dcdb6
VZ
15180 echo $ac_n "(cached) $ac_c" 1>&6
15181else
15182 cat > conftest.$ac_ext <<EOF
d29b553b 15183#line 15184 "configure"
10f2d63a 15184#include "confdefs.h"
4f14bcd8 15185#include <$ac_hdr>
698dcdb6 15186EOF
4f14bcd8 15187ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
d29b553b 15188{ (eval echo configure:15189: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4f14bcd8
GD
15189ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15190if test -z "$ac_err"; then
698dcdb6 15191 rm -rf conftest*
4f14bcd8 15192 eval "ac_cv_header_$ac_safe=yes"
698dcdb6 15193else
4f14bcd8 15194 echo "$ac_err" >&5
698dcdb6
VZ
15195 echo "configure: failed program was:" >&5
15196 cat conftest.$ac_ext >&5
15197 rm -rf conftest*
4f14bcd8 15198 eval "ac_cv_header_$ac_safe=no"
698dcdb6
VZ
15199fi
15200rm -f conftest*
15201fi
4f14bcd8 15202if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
698dcdb6 15203 echo "$ac_t""yes" 1>&6
4f14bcd8
GD
15204 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
15205 cat >> confdefs.h <<EOF
15206#define $ac_tr_hdr 1
10f2d63a 15207EOF
4f14bcd8 15208
698dcdb6
VZ
15209else
15210 echo "$ac_t""no" 1>&6
10f2d63a 15211fi
4f14bcd8 15212done
10f2d63a 15213
10f2d63a 15214
4f14bcd8
GD
15215 if test "$ac_cv_header_iostream" = "yes" ; then
15216 :
15217 else
15218 cat >> confdefs.h <<\EOF
15219#define wxUSE_IOSTREAMH 1
15220EOF
15221
15222 fi
1e487827 15223
4f14bcd8
GD
15224 ac_ext=c
15225# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15226ac_cpp='$CPP $CPPFLAGS'
15227ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15228ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15229cross_compiling=$ac_cv_prog_cc_cross
698dcdb6 15230
4f14bcd8 15231 fi
698dcdb6
VZ
15232
15233
15234
4f14bcd8 15235 echo $ac_n "checking if C++ compiler supports bool""... $ac_c" 1>&6
d29b553b 15236echo "configure:15237: checking if C++ compiler supports bool" >&5
4f14bcd8 15237if eval "test \"`echo '$''{'wx_cv_cpp_bool'+set}'`\" = set"; then
698dcdb6
VZ
15238 echo $ac_n "(cached) $ac_c" 1>&6
15239else
15240
4f14bcd8
GD
15241
15242 ac_ext=C
15243# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15244ac_cpp='$CXXCPP $CPPFLAGS'
15245ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15246ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15247cross_compiling=$ac_cv_prog_cxx_cross
f6bcfd97 15248
10f2d63a 15249
4f14bcd8 15250 cat > conftest.$ac_ext <<EOF
d29b553b 15251#line 15252 "configure"
4f14bcd8 15252#include "confdefs.h"
10f2d63a 15253
4f14bcd8
GD
15254
15255int main() {
f6bcfd97 15256
4f14bcd8 15257 bool b = true;
f6bcfd97 15258
4f14bcd8
GD
15259 return 0;
15260
698dcdb6
VZ
15261; return 0; }
15262EOF
d29b553b 15263if { (eval echo configure:15264: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6
VZ
15264 rm -rf conftest*
15265
4f14bcd8
GD
15266 wx_cv_cpp_bool=yes
15267
10f2d63a 15268else
698dcdb6
VZ
15269 echo "configure: failed program was:" >&5
15270 cat conftest.$ac_ext >&5
15271 rm -rf conftest*
15272
4f14bcd8
GD
15273 wx_cv_cpp_bool=no
15274
15275
15276fi
15277rm -f conftest*
c521c494 15278
4f14bcd8
GD
15279 ac_ext=c
15280# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15281ac_cpp='$CPP $CPPFLAGS'
15282ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15283ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15284cross_compiling=$ac_cv_prog_cc_cross
c521c494 15285
4f14bcd8
GD
15286
15287fi
c521c494 15288
4f14bcd8 15289echo "$ac_t""$wx_cv_cpp_bool" 1>&6
c521c494 15290
4f14bcd8
GD
15291 if test "$wx_cv_cpp_bool" = "yes"; then
15292 cat >> confdefs.h <<\EOF
15293#define HAVE_BOOL 1
15294EOF
c521c494 15295
4f14bcd8
GD
15296 fi
15297
15298
15299
d29b553b
VZ
15300WCHAR_OK=0
15301if test "$wx_cv_sizeof_wchar_t" != "0"; then
15302 WCHAR_LINK=
15303 echo $ac_n "checking for wcslen in -lc""... $ac_c" 1>&6
15304echo "configure:15305: checking for wcslen in -lc" >&5
4f14bcd8
GD
15305ac_lib_var=`echo c'_'wcslen | sed 'y%./+-%__p_%'`
15306if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15307 echo $ac_n "(cached) $ac_c" 1>&6
15308else
15309 ac_save_LIBS="$LIBS"
15310LIBS="-lc $LIBS"
15311cat > conftest.$ac_ext <<EOF
d29b553b 15312#line 15313 "configure"
4f14bcd8
GD
15313#include "confdefs.h"
15314/* Override any gcc2 internal prototype to avoid an error. */
15315/* We use char because int might match the return type of a gcc2
15316 builtin and then its argument prototype would still apply. */
15317char wcslen();
15318
15319int main() {
15320wcslen()
698dcdb6
VZ
15321; return 0; }
15322EOF
d29b553b 15323if { (eval echo configure:15324: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6 15324 rm -rf conftest*
4f14bcd8 15325 eval "ac_cv_lib_$ac_lib_var=yes"
c521c494 15326else
698dcdb6
VZ
15327 echo "configure: failed program was:" >&5
15328 cat conftest.$ac_ext >&5
15329 rm -rf conftest*
4f14bcd8 15330 eval "ac_cv_lib_$ac_lib_var=no"
6232543b 15331fi
698dcdb6 15332rm -f conftest*
4f14bcd8 15333LIBS="$ac_save_LIBS"
703e0a69 15334
1e487827 15335fi
4f14bcd8
GD
15336if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15337 echo "$ac_t""yes" 1>&6
15338
d29b553b 15339 cat >> confdefs.h <<\EOF
4f14bcd8 15340#define HAVE_WCSLEN 1
9d8deca0
VZ
15341EOF
15342
d29b553b
VZ
15343 WCHAR_OK=1
15344
9d8deca0 15345else
4f14bcd8 15346 echo "$ac_t""no" 1>&6
9d8deca0 15347
d29b553b
VZ
15348 echo $ac_n "checking for wcslen in -lw""... $ac_c" 1>&6
15349echo "configure:15350: checking for wcslen in -lw" >&5
4f14bcd8
GD
15350ac_lib_var=`echo w'_'wcslen | sed 'y%./+-%__p_%'`
15351if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
698dcdb6 15352 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 15353else
4f14bcd8
GD
15354 ac_save_LIBS="$LIBS"
15355LIBS="-lw $LIBS"
15356cat > conftest.$ac_ext <<EOF
d29b553b 15357#line 15358 "configure"
10f2d63a 15358#include "confdefs.h"
4f14bcd8
GD
15359/* Override any gcc2 internal prototype to avoid an error. */
15360/* We use char because int might match the return type of a gcc2
15361 builtin and then its argument prototype would still apply. */
15362char wcslen();
10f2d63a 15363
698dcdb6 15364int main() {
4f14bcd8 15365wcslen()
698dcdb6
VZ
15366; return 0; }
15367EOF
d29b553b 15368if { (eval echo configure:15369: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6 15369 rm -rf conftest*
4f14bcd8 15370 eval "ac_cv_lib_$ac_lib_var=yes"
10f2d63a 15371else
698dcdb6
VZ
15372 echo "configure: failed program was:" >&5
15373 cat conftest.$ac_ext >&5
15374 rm -rf conftest*
4f14bcd8 15375 eval "ac_cv_lib_$ac_lib_var=no"
6232543b 15376fi
698dcdb6 15377rm -f conftest*
4f14bcd8 15378LIBS="$ac_save_LIBS"
703e0a69 15379
1e487827 15380fi
4f14bcd8
GD
15381if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15382 echo "$ac_t""yes" 1>&6
15383
d29b553b 15384 cat >> confdefs.h <<\EOF
4f14bcd8 15385#define HAVE_WCSLEN 1
9d8deca0
VZ
15386EOF
15387
d29b553b
VZ
15388 WCHAR_LINK=" -lw"
15389 WCHAR_OK=1
15390
4f14bcd8
GD
15391else
15392 echo "$ac_t""no" 1>&6
d29b553b 15393fi
698dcdb6 15394
d29b553b
VZ
15395
15396fi
15397
15398
15399 if test "$TOOLKIT" = "MSW" -a "$WCHAR_OK" = 0; then
15400 echo $ac_n "checking for wcslen in -lmsvcrt""... $ac_c" 1>&6
15401echo "configure:15402: checking for wcslen in -lmsvcrt" >&5
4f14bcd8
GD
15402ac_lib_var=`echo msvcrt'_'wcslen | sed 'y%./+-%__p_%'`
15403if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
698dcdb6
VZ
15404 echo $ac_n "(cached) $ac_c" 1>&6
15405else
4f14bcd8
GD
15406 ac_save_LIBS="$LIBS"
15407LIBS="-lmsvcrt $LIBS"
15408cat > conftest.$ac_ext <<EOF
d29b553b 15409#line 15410 "configure"
95c8801c 15410#include "confdefs.h"
4f14bcd8
GD
15411/* Override any gcc2 internal prototype to avoid an error. */
15412/* We use char because int might match the return type of a gcc2
15413 builtin and then its argument prototype would still apply. */
15414char wcslen();
95c8801c 15415
4f14bcd8
GD
15416int main() {
15417wcslen()
698dcdb6
VZ
15418; return 0; }
15419EOF
d29b553b 15420if { (eval echo configure:15421: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6 15421 rm -rf conftest*
4f14bcd8 15422 eval "ac_cv_lib_$ac_lib_var=yes"
95c8801c 15423else
698dcdb6
VZ
15424 echo "configure: failed program was:" >&5
15425 cat conftest.$ac_ext >&5
15426 rm -rf conftest*
4f14bcd8 15427 eval "ac_cv_lib_$ac_lib_var=no"
95c8801c 15428fi
698dcdb6 15429rm -f conftest*
4f14bcd8 15430LIBS="$ac_save_LIBS"
95c8801c
VS
15431
15432fi
4f14bcd8
GD
15433if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15434 echo "$ac_t""yes" 1>&6
15435
d29b553b 15436 cat >> confdefs.h <<\EOF
4f14bcd8
GD
15437#define HAVE_WCSLEN 1
15438EOF
698dcdb6 15439
d29b553b
VZ
15440 WCHAR_OK=1
15441
4f14bcd8
GD
15442else
15443 echo "$ac_t""no" 1>&6
15444fi
10f2d63a 15445
d29b553b 15446 fi
4f14bcd8 15447fi
95c8801c 15448
d29b553b
VZ
15449if test "$WCHAR_OK" = 1; then
15450 cat >> confdefs.h <<\EOF
15451#define wxUSE_WCHAR_T 1
15452EOF
10f2d63a 15453
1e487827 15454
d29b553b 15455 for ac_func in wcsrtombs
eb4efbdc 15456do
698dcdb6 15457echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
d29b553b 15458echo "configure:15459: checking for $ac_func" >&5
698dcdb6
VZ
15459if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15460 echo $ac_n "(cached) $ac_c" 1>&6
15461else
15462 cat > conftest.$ac_ext <<EOF
d29b553b 15463#line 15464 "configure"
eb4efbdc
VZ
15464#include "confdefs.h"
15465/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 15466 which can conflict with char $ac_func(); below. */
eb4efbdc
VZ
15467#include <assert.h>
15468/* Override any gcc2 internal prototype to avoid an error. */
15469/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
15470 builtin and then its argument prototype would still apply. */
15471char $ac_func();
15472
15473int main() {
eb4efbdc
VZ
15474
15475/* The GNU C library defines this for functions which it implements
15476 to always fail with ENOSYS. Some functions are actually named
15477 something starting with __ and the normal name is an alias. */
15478#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15479choke me
15480#else
698dcdb6 15481$ac_func();
eb4efbdc
VZ
15482#endif
15483
698dcdb6 15484; return 0; }
eb4efbdc 15485EOF
d29b553b 15486if { (eval echo configure:15487: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
15487 rm -rf conftest*
15488 eval "ac_cv_func_$ac_func=yes"
15489else
15490 echo "configure: failed program was:" >&5
15491 cat conftest.$ac_ext >&5
15492 rm -rf conftest*
15493 eval "ac_cv_func_$ac_func=no"
15494fi
15495rm -f conftest*
15496fi
eb4efbdc 15497
698dcdb6
VZ
15498if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15499 echo "$ac_t""yes" 1>&6
15500 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15501 cat >> confdefs.h <<EOF
15502#define $ac_tr_func 1
15503EOF
15504
15505else
15506 echo "$ac_t""no" 1>&6
eb4efbdc
VZ
15507fi
15508done
15509
d29b553b
VZ
15510else
15511 echo "configure: warning: Wide character support is unavailable" 1>&2
15512fi
698dcdb6 15513
4f14bcd8 15514echo $ac_n "checking for vprintf""... $ac_c" 1>&6
d29b553b 15515echo "configure:15516: checking for vprintf" >&5
4f14bcd8 15516if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
698dcdb6
VZ
15517 echo $ac_n "(cached) $ac_c" 1>&6
15518else
4f14bcd8 15519 cat > conftest.$ac_ext <<EOF
d29b553b 15520#line 15521 "configure"
f6bcfd97 15521#include "confdefs.h"
4f14bcd8
GD
15522/* System header to define __stub macros and hopefully few prototypes,
15523 which can conflict with char vprintf(); below. */
15524#include <assert.h>
15525/* Override any gcc2 internal prototype to avoid an error. */
15526/* We use char because int might match the return type of a gcc2
15527 builtin and then its argument prototype would still apply. */
15528char vprintf();
15529
698dcdb6 15530int main() {
f6bcfd97 15531
4f14bcd8
GD
15532/* The GNU C library defines this for functions which it implements
15533 to always fail with ENOSYS. Some functions are actually named
15534 something starting with __ and the normal name is an alias. */
15535#if defined (__stub_vprintf) || defined (__stub___vprintf)
15536choke me
15537#else
15538vprintf();
15539#endif
f6bcfd97 15540
698dcdb6
VZ
15541; return 0; }
15542EOF
d29b553b 15543if { (eval echo configure:15544: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6 15544 rm -rf conftest*
4f14bcd8 15545 eval "ac_cv_func_vprintf=yes"
f6bcfd97 15546else
698dcdb6
VZ
15547 echo "configure: failed program was:" >&5
15548 cat conftest.$ac_ext >&5
15549 rm -rf conftest*
4f14bcd8 15550 eval "ac_cv_func_vprintf=no"
6232543b 15551fi
698dcdb6 15552rm -f conftest*
1e487827 15553fi
698dcdb6 15554
4f14bcd8
GD
15555if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
15556 echo "$ac_t""yes" 1>&6
15557 cat >> confdefs.h <<\EOF
15558#define HAVE_VPRINTF 1
f6bcfd97
BP
15559EOF
15560
4f14bcd8
GD
15561else
15562 echo "$ac_t""no" 1>&6
eb4efbdc
VZ
15563fi
15564
4f14bcd8
GD
15565if test "$ac_cv_func_vprintf" != yes; then
15566echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
d29b553b 15567echo "configure:15568: checking for _doprnt" >&5
4f14bcd8 15568if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
698dcdb6
VZ
15569 echo $ac_n "(cached) $ac_c" 1>&6
15570else
15571 cat > conftest.$ac_ext <<EOF
d29b553b 15572#line 15573 "configure"
10f2d63a
VZ
15573#include "confdefs.h"
15574/* System header to define __stub macros and hopefully few prototypes,
4f14bcd8 15575 which can conflict with char _doprnt(); below. */
10f2d63a
VZ
15576#include <assert.h>
15577/* Override any gcc2 internal prototype to avoid an error. */
15578/* We use char because int might match the return type of a gcc2
698dcdb6 15579 builtin and then its argument prototype would still apply. */
4f14bcd8 15580char _doprnt();
698dcdb6
VZ
15581
15582int main() {
10f2d63a
VZ
15583
15584/* The GNU C library defines this for functions which it implements
15585 to always fail with ENOSYS. Some functions are actually named
15586 something starting with __ and the normal name is an alias. */
4f14bcd8 15587#if defined (__stub__doprnt) || defined (__stub____doprnt)
10f2d63a
VZ
15588choke me
15589#else
4f14bcd8 15590_doprnt();
10f2d63a
VZ
15591#endif
15592
698dcdb6 15593; return 0; }
10f2d63a 15594EOF
d29b553b 15595if { (eval echo configure:15596: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6 15596 rm -rf conftest*
4f14bcd8 15597 eval "ac_cv_func__doprnt=yes"
698dcdb6
VZ
15598else
15599 echo "configure: failed program was:" >&5
15600 cat conftest.$ac_ext >&5
15601 rm -rf conftest*
4f14bcd8 15602 eval "ac_cv_func__doprnt=no"
698dcdb6
VZ
15603fi
15604rm -f conftest*
15605fi
270a909e 15606
4f14bcd8 15607if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
698dcdb6 15608 echo "$ac_t""yes" 1>&6
4f14bcd8
GD
15609 cat >> confdefs.h <<\EOF
15610#define HAVE_DOPRNT 1
698dcdb6 15611EOF
4f14bcd8 15612
698dcdb6
VZ
15613else
15614 echo "$ac_t""no" 1>&6
270a909e 15615fi
270a909e 15616
4f14bcd8 15617fi
1e487827 15618
52e8b690 15619
52e8b690 15620
52e8b690 15621
52e8b690 15622
52e8b690 15623
4f14bcd8 15624echo $ac_n "checking for vsnprintf""... $ac_c" 1>&6
d29b553b 15625echo "configure:15626: checking for vsnprintf" >&5
4f14bcd8 15626if eval "test \"`echo '$''{'wx_cv_func_vsnprintf'+set}'`\" = set"; then
698dcdb6 15627 echo $ac_n "(cached) $ac_c" 1>&6
c63c7106 15628else
4f14bcd8 15629
af15babd 15630 cat > conftest.$ac_ext <<EOF
d29b553b 15631#line 15632 "configure"
c63c7106 15632#include "confdefs.h"
698dcdb6 15633
4f14bcd8
GD
15634 #include <stdio.h>
15635 #include <stdarg.h>
15636
af15babd
VZ
15637int main() {
15638
4f14bcd8
GD
15639 int wx_test_vsnprintf(const char *, ...);
15640
15641 wx_test_vsnprintf("%s");
15642 return 0;
15643 }
15644
15645 int wx_test_vsnprintf(const char *fmt, ...)
15646 {
15647 char *s;
15648
15649 va_list argp;
15650 va_start(argp, fmt);
15651 vsnprintf(s, 42, fmt, argp);
15652 va_end(argp);
15653
af15babd
VZ
15654; return 0; }
15655EOF
d29b553b 15656if { (eval echo configure:15657: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
af15babd
VZ
15657 rm -rf conftest*
15658
4f14bcd8
GD
15659 wx_cv_func_vsnprintf=yes
15660
af15babd
VZ
15661else
15662 echo "configure: failed program was:" >&5
15663 cat conftest.$ac_ext >&5
15664 rm -rf conftest*
15665
4f14bcd8 15666 cat > conftest.$ac_ext <<EOF
d29b553b 15667#line 15668 "configure"
af15babd 15668#include "confdefs.h"
af15babd 15669
4f14bcd8
GD
15670 #include <stdio.h>
15671 #include <stdarg.h>
15672
af15babd
VZ
15673int main() {
15674
4f14bcd8
GD
15675 int wx_test_vsnprintf(const char *, ...);
15676
15677 wx_test_vsnprintf("%s");
15678 return 0;
15679 }
15680
15681 int wx_test_vsnprintf(const char *fmt, ...)
15682 {
15683 char *s;
af15babd 15684
4f14bcd8
GD
15685 va_list argp;
15686 va_start(argp, fmt);
15687 _vsnprintf(s, 42, fmt, argp);
15688 va_end(argp);
15689
af15babd
VZ
15690; return 0; }
15691EOF
d29b553b 15692if { (eval echo configure:15693: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
af15babd 15693 rm -rf conftest*
4f14bcd8
GD
15694
15695 wx_cv_func_vsnprintf=yes
15696
af15babd
VZ
15697else
15698 echo "configure: failed program was:" >&5
15699 cat conftest.$ac_ext >&5
15700 rm -rf conftest*
4f14bcd8
GD
15701
15702 wx_cv_func_vsnprintf=no
15703
af15babd
VZ
15704fi
15705rm -f conftest*
4f14bcd8 15706
af15babd 15707fi
4f14bcd8 15708rm -f conftest*
af15babd 15709
af15babd 15710fi
af15babd 15711
4f14bcd8 15712echo "$ac_t""$wx_cv_func_vsnprintf" 1>&6
af15babd 15713
4f14bcd8
GD
15714if test "$wx_cv_func_vsnprintf" = yes; then
15715 cat >> confdefs.h <<\EOF
15716#define HAVE_VSNPRINTF 1
15717EOF
15718
15719else
f9bc1684 15720 echo "configure: warning: unsafe function vsprintf will be used instead of vsnprintf" 1>&2
af15babd
VZ
15721fi
15722
4f14bcd8 15723echo $ac_n "checking for vsscanf""... $ac_c" 1>&6
d29b553b 15724echo "configure:15725: checking for vsscanf" >&5
4f14bcd8 15725if eval "test \"`echo '$''{'wx_cv_func_vsscanf'+set}'`\" = set"; then
af15babd
VZ
15726 echo $ac_n "(cached) $ac_c" 1>&6
15727else
4f14bcd8 15728
af15babd 15729 cat > conftest.$ac_ext <<EOF
d29b553b 15730#line 15731 "configure"
af15babd 15731#include "confdefs.h"
af15babd 15732
4f14bcd8
GD
15733 #include <stdio.h>
15734 #include <stdarg.h>
15735
af15babd
VZ
15736int main() {
15737
4f14bcd8
GD
15738 int wx_test_vsscanf(const char *, ...);
15739
15740 wx_test_vsscanf("%d");
15741 return 0;
15742 }
af15babd 15743
4f14bcd8
GD
15744 int wx_test_vsscanf(const char *fmt, ...)
15745 {
15746 va_list argp;
15747 va_start(argp, fmt);
15748 vsscanf("42", fmt, argp);
15749 va_end(argp);
15750
af15babd
VZ
15751; return 0; }
15752EOF
d29b553b 15753if { (eval echo configure:15754: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
af15babd 15754 rm -rf conftest*
4f14bcd8
GD
15755
15756 wx_cv_func_vsscanf=yes
15757
af15babd
VZ
15758else
15759 echo "configure: failed program was:" >&5
15760 cat conftest.$ac_ext >&5
15761 rm -rf conftest*
4f14bcd8
GD
15762
15763 wx_cv_func_vsscanf=no
15764
af15babd
VZ
15765fi
15766rm -f conftest*
4f14bcd8 15767
af15babd
VZ
15768fi
15769
4f14bcd8
GD
15770echo "$ac_t""$wx_cv_func_vsscanf" 1>&6
15771
15772if test "$wx_cv_func_vsscanf" = yes; then
15773 cat >> confdefs.h <<\EOF
15774#define HAVE_VSSCANF 1
af15babd 15775EOF
4f14bcd8 15776
af15babd 15777fi
af15babd 15778
4f14bcd8 15779if test "$TOOLKIT" != "MSW"; then
af15babd 15780
4f14bcd8
GD
15781
15782
15783ac_ext=C
15784# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15785ac_cpp='$CXXCPP $CPPFLAGS'
15786ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15787ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15788cross_compiling=$ac_cv_prog_cxx_cross
15789
b040e242
VS
15790
15791
15792 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
15793if test "${with_libiconv_prefix+set}" = set; then
15794 withval="$with_libiconv_prefix"
15795
15796 for dir in `echo "$withval" | tr : ' '`; do
15797 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
15798 if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
15799 done
15800
15801fi
15802
15803
15804 echo $ac_n "checking for iconv""... $ac_c" 1>&6
d29b553b 15805echo "configure:15806: checking for iconv" >&5
b040e242 15806if eval "test \"`echo '$''{'am_cv_func_iconv'+set}'`\" = set"; then
af15babd
VZ
15807 echo $ac_n "(cached) $ac_c" 1>&6
15808else
4f14bcd8 15809
b040e242
VS
15810 am_cv_func_iconv="no, consider installing GNU libiconv"
15811 am_cv_lib_iconv=no
4f14bcd8 15812 cat > conftest.$ac_ext <<EOF
d29b553b 15813#line 15814 "configure"
af15babd 15814#include "confdefs.h"
b040e242 15815#include <stdlib.h>
4f14bcd8 15816#include <iconv.h>
af15babd 15817int main() {
b040e242
VS
15818iconv_t cd = iconv_open("","");
15819 iconv(cd,NULL,NULL,NULL,NULL);
15820 iconv_close(cd);
af15babd
VZ
15821; return 0; }
15822EOF
d29b553b 15823if { (eval echo configure:15824: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
af15babd 15824 rm -rf conftest*
b040e242 15825 am_cv_func_iconv=yes
af15babd
VZ
15826else
15827 echo "configure: failed program was:" >&5
15828 cat conftest.$ac_ext >&5
b040e242
VS
15829fi
15830rm -f conftest*
15831 if test "$am_cv_func_iconv" != yes; then
15832 am_save_LIBS="$LIBS"
15833 LIBS="$LIBS -liconv"
15834 cat > conftest.$ac_ext <<EOF
d29b553b 15835#line 15836 "configure"
b040e242
VS
15836#include "confdefs.h"
15837#include <stdlib.h>
15838#include <iconv.h>
15839int main() {
15840iconv_t cd = iconv_open("","");
15841 iconv(cd,NULL,NULL,NULL,NULL);
15842 iconv_close(cd);
15843; return 0; }
15844EOF
d29b553b 15845if { (eval echo configure:15846: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
af15babd 15846 rm -rf conftest*
b040e242
VS
15847 am_cv_lib_iconv=yes
15848 am_cv_func_iconv=yes
15849else
15850 echo "configure: failed program was:" >&5
15851 cat conftest.$ac_ext >&5
af15babd
VZ
15852fi
15853rm -f conftest*
b040e242
VS
15854 LIBS="$am_save_LIBS"
15855 fi
15856
15857fi
15858
15859echo "$ac_t""$am_cv_func_iconv" 1>&6
15860 if test "$am_cv_func_iconv" = yes; then
15861 cat >> confdefs.h <<\EOF
15862#define HAVE_ICONV 1
15863EOF
15864
b7043674 15865 echo $ac_n "checking if iconv needs const""... $ac_c" 1>&6
d29b553b 15866echo "configure:15867: checking if iconv needs const" >&5
b7043674 15867if eval "test \"`echo '$''{'wx_cv_func_iconv_const'+set}'`\" = set"; then
b040e242
VS
15868 echo $ac_n "(cached) $ac_c" 1>&6
15869else
b7043674 15870 cat > conftest.$ac_ext <<EOF
d29b553b 15871#line 15872 "configure"
b040e242
VS
15872#include "confdefs.h"
15873
15874#include <stdlib.h>
15875#include <iconv.h>
15876extern
15877#ifdef __cplusplus
15878"C"
15879#endif
15880#if defined(__STDC__) || defined(__cplusplus)
15881size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
15882#else
15883size_t iconv();
15884#endif
b7043674 15885
b040e242 15886int main() {
af15babd 15887
b040e242
VS
15888; return 0; }
15889EOF
d29b553b 15890if { (eval echo configure:15891: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
b040e242 15891 rm -rf conftest*
b7043674 15892 wx_cv_func_iconv_const="no"
b040e242
VS
15893else
15894 echo "configure: failed program was:" >&5
15895 cat conftest.$ac_ext >&5
15896 rm -rf conftest*
b7043674
VZ
15897 wx_cv_func_iconv_const="yes"
15898
b040e242
VS
15899fi
15900rm -f conftest*
b7043674 15901
af15babd 15902fi
af15babd 15903
b7043674
VZ
15904echo "$ac_t""$wx_cv_func_iconv_const" 1>&6
15905
15906 iconv_const=
1c405bb5 15907 if test "x$wx_cv_func_iconv_const" = "xyes"; then
b7043674
VZ
15908 iconv_const="const"
15909 fi
15910
b040e242 15911 cat >> confdefs.h <<EOF
b7043674 15912#define ICONV_CONST $iconv_const
b040e242
VS
15913EOF
15914
15915 fi
15916 LIBICONV=
15917 if test "$am_cv_lib_iconv" = yes; then
15918 LIBICONV="-liconv"
15919 fi
15920
15921
15922LIBS="$LIBICONV $LIBS"
4f14bcd8
GD
15923ac_ext=c
15924# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15925ac_cpp='$CPP $CPPFLAGS'
15926ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15927ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15928cross_compiling=$ac_cv_prog_cc_cross
af15babd 15929
af15babd 15930
4f14bcd8
GD
15931if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then
15932 for ac_func in sigaction
af15babd
VZ
15933do
15934echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
d29b553b 15935echo "configure:15936: checking for $ac_func" >&5
af15babd
VZ
15936if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15937 echo $ac_n "(cached) $ac_c" 1>&6
15938else
15939 cat > conftest.$ac_ext <<EOF
d29b553b 15940#line 15941 "configure"
af15babd
VZ
15941#include "confdefs.h"
15942/* System header to define __stub macros and hopefully few prototypes,
15943 which can conflict with char $ac_func(); below. */
15944#include <assert.h>
15945/* Override any gcc2 internal prototype to avoid an error. */
15946/* We use char because int might match the return type of a gcc2
15947 builtin and then its argument prototype would still apply. */
15948char $ac_func();
15949
15950int main() {
15951
15952/* The GNU C library defines this for functions which it implements
15953 to always fail with ENOSYS. Some functions are actually named
15954 something starting with __ and the normal name is an alias. */
15955#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15956choke me
15957#else
15958$ac_func();
15959#endif
15960
15961; return 0; }
15962EOF
d29b553b 15963if { (eval echo configure:15964: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
af15babd
VZ
15964 rm -rf conftest*
15965 eval "ac_cv_func_$ac_func=yes"
15966else
15967 echo "configure: failed program was:" >&5
15968 cat conftest.$ac_ext >&5
15969 rm -rf conftest*
15970 eval "ac_cv_func_$ac_func=no"
15971fi
15972rm -f conftest*
15973fi
15974
15975if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15976 echo "$ac_t""yes" 1>&6
15977 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15978 cat >> confdefs.h <<EOF
15979#define $ac_tr_func 1
15980EOF
4f14bcd8 15981
af15babd
VZ
15982else
15983 echo "$ac_t""no" 1>&6
4f14bcd8
GD
15984fi
15985done
15986
15987
15988 if test "$ac_cv_func_sigaction" = "no"; then
15989 echo "configure: warning: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" 1>&2
15990 wxUSE_ON_FATAL_EXCEPTION=no
15991 fi
15992
15993 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
15994
15995 ac_ext=C
15996# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15997ac_cpp='$CXXCPP $CPPFLAGS'
15998ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15999ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16000cross_compiling=$ac_cv_prog_cxx_cross
16001
16002
16003 echo $ac_n "checking for sa_handler type""... $ac_c" 1>&6
d29b553b 16004echo "configure:16005: checking for sa_handler type" >&5
4f14bcd8 16005if eval "test \"`echo '$''{'wx_cv_type_sa_handler'+set}'`\" = set"; then
af15babd
VZ
16006 echo $ac_n "(cached) $ac_c" 1>&6
16007else
4f14bcd8
GD
16008
16009 cat > conftest.$ac_ext <<EOF
d29b553b 16010#line 16011 "configure"
af15babd 16011#include "confdefs.h"
4f14bcd8 16012#include <signal.h>
af15babd 16013int main() {
4f14bcd8
GD
16014
16015 extern void testSigHandler(int);
16016
16017 struct sigaction sa;
16018 sa.sa_handler = testSigHandler;
16019
af15babd
VZ
16020; return 0; }
16021EOF
d29b553b 16022if { (eval echo configure:16023: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
af15babd 16023 rm -rf conftest*
4f14bcd8
GD
16024
16025 wx_cv_type_sa_handler=int
16026
af15babd
VZ
16027else
16028 echo "configure: failed program was:" >&5
16029 cat conftest.$ac_ext >&5
16030 rm -rf conftest*
4f14bcd8
GD
16031
16032 wx_cv_type_sa_handler=void
16033
af15babd
VZ
16034fi
16035rm -f conftest*
4f14bcd8
GD
16036
16037fi
16038
16039echo "$ac_t""$wx_cv_type_sa_handler" 1>&6
16040
16041 ac_ext=c
16042# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16043ac_cpp='$CPP $CPPFLAGS'
16044ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16045ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16046cross_compiling=$ac_cv_prog_cc_cross
af15babd 16047
4f14bcd8
GD
16048
16049 cat >> confdefs.h <<EOF
16050#define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler
af15babd
VZ
16051EOF
16052
4f14bcd8
GD
16053 fi
16054fi
af15babd 16055
4f14bcd8 16056for ac_func in vfork
af15babd
VZ
16057do
16058echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
d29b553b 16059echo "configure:16060: checking for $ac_func" >&5
af15babd
VZ
16060if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16061 echo $ac_n "(cached) $ac_c" 1>&6
16062else
16063 cat > conftest.$ac_ext <<EOF
d29b553b 16064#line 16065 "configure"
af15babd
VZ
16065#include "confdefs.h"
16066/* System header to define __stub macros and hopefully few prototypes,
16067 which can conflict with char $ac_func(); below. */
16068#include <assert.h>
16069/* Override any gcc2 internal prototype to avoid an error. */
16070/* We use char because int might match the return type of a gcc2
16071 builtin and then its argument prototype would still apply. */
16072char $ac_func();
16073
16074int main() {
16075
16076/* The GNU C library defines this for functions which it implements
16077 to always fail with ENOSYS. Some functions are actually named
16078 something starting with __ and the normal name is an alias. */
16079#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16080choke me
16081#else
16082$ac_func();
16083#endif
16084
16085; return 0; }
16086EOF
d29b553b 16087if { (eval echo configure:16088: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
af15babd
VZ
16088 rm -rf conftest*
16089 eval "ac_cv_func_$ac_func=yes"
16090else
16091 echo "configure: failed program was:" >&5
16092 cat conftest.$ac_ext >&5
16093 rm -rf conftest*
16094 eval "ac_cv_func_$ac_func=no"
16095fi
16096rm -f conftest*
16097fi
16098
16099if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16100 echo "$ac_t""yes" 1>&6
16101 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16102 cat >> confdefs.h <<EOF
16103#define $ac_tr_func 1
16104EOF
4f14bcd8 16105
af15babd
VZ
16106else
16107 echo "$ac_t""no" 1>&6
af15babd
VZ
16108fi
16109done
16110
af15babd 16111
ade35f11
VZ
16112for ac_func in mkstemp mktemp
16113do
16114echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
d29b553b 16115echo "configure:16116: checking for $ac_func" >&5
ade35f11
VZ
16116if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16117 echo $ac_n "(cached) $ac_c" 1>&6
16118else
16119 cat > conftest.$ac_ext <<EOF
d29b553b 16120#line 16121 "configure"
ade35f11
VZ
16121#include "confdefs.h"
16122/* System header to define __stub macros and hopefully few prototypes,
16123 which can conflict with char $ac_func(); below. */
16124#include <assert.h>
16125/* Override any gcc2 internal prototype to avoid an error. */
16126/* We use char because int might match the return type of a gcc2
16127 builtin and then its argument prototype would still apply. */
16128char $ac_func();
16129
16130int main() {
16131
16132/* The GNU C library defines this for functions which it implements
16133 to always fail with ENOSYS. Some functions are actually named
16134 something starting with __ and the normal name is an alias. */
16135#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16136choke me
16137#else
16138$ac_func();
16139#endif
16140
16141; return 0; }
16142EOF
d29b553b 16143if { (eval echo configure:16144: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ade35f11
VZ
16144 rm -rf conftest*
16145 eval "ac_cv_func_$ac_func=yes"
16146else
16147 echo "configure: failed program was:" >&5
16148 cat conftest.$ac_ext >&5
16149 rm -rf conftest*
16150 eval "ac_cv_func_$ac_func=no"
16151fi
16152rm -f conftest*
16153fi
16154
16155if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16156 echo "$ac_t""yes" 1>&6
16157 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16158 cat >> confdefs.h <<EOF
16159#define $ac_tr_func 1
16160EOF
16161 break
16162else
16163 echo "$ac_t""no" 1>&6
16164fi
16165done
16166
16167
4f14bcd8 16168echo $ac_n "checking for statfs""... $ac_c" 1>&6
d29b553b 16169echo "configure:16170: checking for statfs" >&5
4f14bcd8
GD
16170if eval "test \"`echo '$''{'wx_cv_func_statfs'+set}'`\" = set"; then
16171 echo $ac_n "(cached) $ac_c" 1>&6
16172else
16173 cat > conftest.$ac_ext <<EOF
d29b553b 16174#line 16175 "configure"
4f14bcd8
GD
16175#include "confdefs.h"
16176
16177 #if defined(__BSD__)
16178 #include <sys/param.h>
16179 #include <sys/mount.h>
16180 #else
16181 #include <sys/vfs.h>
16182 #endif
16183
16184int main() {
16185
16186 long l;
16187 struct statfs fs;
16188 statfs("/", &fs);
16189 l = fs.f_bsize;
16190 l += fs.f_blocks;
16191 l += fs.f_bavail;
16192
16193; return 0; }
16194EOF
d29b553b 16195if { (eval echo configure:16196: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4f14bcd8
GD
16196 rm -rf conftest*
16197
16198 wx_cv_func_statfs=yes
16199
16200else
16201 echo "configure: failed program was:" >&5
16202 cat conftest.$ac_ext >&5
16203 rm -rf conftest*
16204
16205 wx_cv_func_statfs=no
af15babd
VZ
16206
16207
16208fi
4f14bcd8 16209rm -f conftest*
af15babd
VZ
16210
16211fi
16212
4f14bcd8
GD
16213echo "$ac_t""$wx_cv_func_statfs" 1>&6
16214
16215if test "$wx_cv_func_statfs" = "yes"; then
16216 cat >> confdefs.h <<\EOF
16217#define HAVE_STATFS 1
16218EOF
16219
16220else
16221 echo $ac_n "checking for statvfs""... $ac_c" 1>&6
d29b553b 16222echo "configure:16223: checking for statvfs" >&5
4f14bcd8 16223if eval "test \"`echo '$''{'wx_cv_func_statvfs'+set}'`\" = set"; then
af15babd
VZ
16224 echo $ac_n "(cached) $ac_c" 1>&6
16225else
16226 cat > conftest.$ac_ext <<EOF
d29b553b 16227#line 16228 "configure"
af15babd 16228#include "confdefs.h"
af15babd 16229
4f14bcd8
GD
16230 #include <sys/statvfs.h>
16231
af15babd
VZ
16232int main() {
16233
4f14bcd8
GD
16234 long l;
16235 struct statvfs fs;
16236 statvfs("/", &fs);
16237 l = fs.f_bsize;
16238 l += fs.f_blocks;
16239 l += fs.f_bavail;
16240
af15babd
VZ
16241; return 0; }
16242EOF
d29b553b 16243if { (eval echo configure:16244: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
af15babd 16244 rm -rf conftest*
4f14bcd8
GD
16245
16246 wx_cv_func_statvfs=yes
16247
af15babd
VZ
16248else
16249 echo "configure: failed program was:" >&5
16250 cat conftest.$ac_ext >&5
16251 rm -rf conftest*
4f14bcd8
GD
16252
16253 wx_cv_func_statvfs=no
16254
16255
af15babd
VZ
16256fi
16257rm -f conftest*
4f14bcd8 16258
af15babd
VZ
16259fi
16260
4f14bcd8 16261echo "$ac_t""$wx_cv_func_statvfs" 1>&6
af15babd 16262
4f14bcd8
GD
16263 if test "$wx_cv_func_statvfs" = "yes"; then
16264 cat >> confdefs.h <<\EOF
16265#define HAVE_STATVFS 1
16266EOF
af15babd 16267
4f14bcd8
GD
16268 else
16269 echo "configure: warning: wxGetDiskSpace() function won't work without statfs()" 1>&2
16270 fi
16271fi
af15babd 16272
4f14bcd8
GD
16273if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
16274 for ac_func in fcntl flock
af15babd
VZ
16275do
16276echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
d29b553b 16277echo "configure:16278: checking for $ac_func" >&5
af15babd
VZ
16278if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16279 echo $ac_n "(cached) $ac_c" 1>&6
16280else
16281 cat > conftest.$ac_ext <<EOF
d29b553b 16282#line 16283 "configure"
af15babd
VZ
16283#include "confdefs.h"
16284/* System header to define __stub macros and hopefully few prototypes,
16285 which can conflict with char $ac_func(); below. */
16286#include <assert.h>
16287/* Override any gcc2 internal prototype to avoid an error. */
af15babd
VZ
16288/* We use char because int might match the return type of a gcc2
16289 builtin and then its argument prototype would still apply. */
16290char $ac_func();
16291
16292int main() {
16293
16294/* The GNU C library defines this for functions which it implements
16295 to always fail with ENOSYS. Some functions are actually named
16296 something starting with __ and the normal name is an alias. */
16297#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16298choke me
16299#else
16300$ac_func();
16301#endif
16302
16303; return 0; }
16304EOF
d29b553b 16305if { (eval echo configure:16306: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
af15babd
VZ
16306 rm -rf conftest*
16307 eval "ac_cv_func_$ac_func=yes"
16308else
16309 echo "configure: failed program was:" >&5
16310 cat conftest.$ac_ext >&5
16311 rm -rf conftest*
16312 eval "ac_cv_func_$ac_func=no"
16313fi
16314rm -f conftest*
16315fi
16316
16317if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16318 echo "$ac_t""yes" 1>&6
16319 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16320 cat >> confdefs.h <<EOF
16321#define $ac_tr_func 1
16322EOF
4f14bcd8 16323 break
af15babd
VZ
16324else
16325 echo "$ac_t""no" 1>&6
16326fi
16327done
16328
16329
4f14bcd8
GD
16330 if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then
16331 echo "configure: warning: wxSingleInstanceChecker not available" 1>&2
16332 wxUSE_SNGLINST_CHECKER=no
16333 fi
16334fi
af15babd 16335
4f14bcd8 16336for ac_func in timegm
af15babd
VZ
16337do
16338echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
d29b553b 16339echo "configure:16340: checking for $ac_func" >&5
af15babd
VZ
16340if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16341 echo $ac_n "(cached) $ac_c" 1>&6
16342else
16343 cat > conftest.$ac_ext <<EOF
d29b553b 16344#line 16345 "configure"
af15babd
VZ
16345#include "confdefs.h"
16346/* System header to define __stub macros and hopefully few prototypes,
16347 which can conflict with char $ac_func(); below. */
16348#include <assert.h>
16349/* Override any gcc2 internal prototype to avoid an error. */
16350/* We use char because int might match the return type of a gcc2
16351 builtin and then its argument prototype would still apply. */
16352char $ac_func();
16353
698dcdb6 16354int main() {
698dcdb6 16355
af15babd
VZ
16356/* The GNU C library defines this for functions which it implements
16357 to always fail with ENOSYS. Some functions are actually named
16358 something starting with __ and the normal name is an alias. */
16359#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16360choke me
16361#else
16362$ac_func();
16363#endif
16364
698dcdb6
VZ
16365; return 0; }
16366EOF
d29b553b 16367if { (eval echo configure:16368: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6 16368 rm -rf conftest*
af15babd 16369 eval "ac_cv_func_$ac_func=yes"
698dcdb6
VZ
16370else
16371 echo "configure: failed program was:" >&5
16372 cat conftest.$ac_ext >&5
16373 rm -rf conftest*
af15babd 16374 eval "ac_cv_func_$ac_func=no"
1e487827 16375fi
9952adac 16376rm -f conftest*
af15babd 16377fi
703e0a69 16378
af15babd
VZ
16379if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16380 echo "$ac_t""yes" 1>&6
16381 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4f14bcd8
GD
16382 cat >> confdefs.h <<EOF
16383#define $ac_tr_func 1
16384EOF
16385
16386else
16387 echo "$ac_t""no" 1>&6
af15babd
VZ
16388fi
16389done
16390
16391
4f14bcd8 16392for ac_func in putenv setenv
10f2d63a 16393do
698dcdb6 16394echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
d29b553b 16395echo "configure:16396: checking for $ac_func" >&5
698dcdb6
VZ
16396if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16397 echo $ac_n "(cached) $ac_c" 1>&6
16398else
16399 cat > conftest.$ac_ext <<EOF
d29b553b 16400#line 16401 "configure"
af15babd
VZ
16401#include "confdefs.h"
16402/* System header to define __stub macros and hopefully few prototypes,
16403 which can conflict with char $ac_func(); below. */
16404#include <assert.h>
16405/* Override any gcc2 internal prototype to avoid an error. */
16406/* We use char because int might match the return type of a gcc2
16407 builtin and then its argument prototype would still apply. */
16408char $ac_func();
16409
16410int main() {
16411
16412/* The GNU C library defines this for functions which it implements
16413 to always fail with ENOSYS. Some functions are actually named
16414 something starting with __ and the normal name is an alias. */
16415#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16416choke me
16417#else
16418$ac_func();
16419#endif
16420
16421; return 0; }
16422EOF
d29b553b 16423if { (eval echo configure:16424: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
af15babd
VZ
16424 rm -rf conftest*
16425 eval "ac_cv_func_$ac_func=yes"
16426else
16427 echo "configure: failed program was:" >&5
16428 cat conftest.$ac_ext >&5
16429 rm -rf conftest*
16430 eval "ac_cv_func_$ac_func=no"
16431fi
16432rm -f conftest*
16433fi
16434
16435if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16436 echo "$ac_t""yes" 1>&6
16437 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16438 cat >> confdefs.h <<EOF
16439#define $ac_tr_func 1
16440EOF
4f14bcd8 16441 break
af15babd
VZ
16442else
16443 echo "$ac_t""no" 1>&6
16444fi
af15babd
VZ
16445done
16446
16447
4f14bcd8
GD
16448HAVE_SOME_SLEEP_FUNC=0
16449if test "$USE_BEOS" = 1; then
16450 cat >> confdefs.h <<\EOF
16451#define HAVE_SLEEP 1
af15babd
VZ
16452EOF
16453
4f14bcd8 16454 HAVE_SOME_SLEEP_FUNC=1
10f2d63a
VZ
16455fi
16456
4f14bcd8
GD
16457if test "$USE_DARWIN" = 1; then
16458 cat >> confdefs.h <<\EOF
16459#define HAVE_USLEEP 1
af15babd 16460EOF
10f2d63a 16461
4f14bcd8 16462 HAVE_SOME_SLEEP_FUNC=1
10f2d63a
VZ
16463fi
16464
4f14bcd8
GD
16465if test "$HAVE_SOME_SLEEP_FUNC" != 1; then
16466 POSIX4_LINK=
16467 for ac_func in nanosleep
16468do
16469echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
d29b553b 16470echo "configure:16471: checking for $ac_func" >&5
4f14bcd8 16471if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
698dcdb6 16472 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 16473else
4f14bcd8 16474 cat > conftest.$ac_ext <<EOF
d29b553b 16475#line 16476 "configure"
10f2d63a 16476#include "confdefs.h"
4f14bcd8
GD
16477/* System header to define __stub macros and hopefully few prototypes,
16478 which can conflict with char $ac_func(); below. */
16479#include <assert.h>
10f2d63a
VZ
16480/* Override any gcc2 internal prototype to avoid an error. */
16481/* We use char because int might match the return type of a gcc2
698dcdb6 16482 builtin and then its argument prototype would still apply. */
4f14bcd8 16483char $ac_func();
698dcdb6
VZ
16484
16485int main() {
4f14bcd8
GD
16486
16487/* The GNU C library defines this for functions which it implements
16488 to always fail with ENOSYS. Some functions are actually named
16489 something starting with __ and the normal name is an alias. */
16490#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16491choke me
16492#else
16493$ac_func();
16494#endif
16495
698dcdb6
VZ
16496; return 0; }
16497EOF
d29b553b 16498if { (eval echo configure:16499: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6 16499 rm -rf conftest*
4f14bcd8 16500 eval "ac_cv_func_$ac_func=yes"
698dcdb6
VZ
16501else
16502 echo "configure: failed program was:" >&5
16503 cat conftest.$ac_ext >&5
16504 rm -rf conftest*
4f14bcd8 16505 eval "ac_cv_func_$ac_func=no"
698dcdb6
VZ
16506fi
16507rm -f conftest*
698dcdb6 16508fi
4f14bcd8
GD
16509
16510if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
698dcdb6 16511 echo "$ac_t""yes" 1>&6
4f14bcd8
GD
16512 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16513 cat >> confdefs.h <<EOF
16514#define $ac_tr_func 1
16515EOF
16516 cat >> confdefs.h <<\EOF
16517#define HAVE_NANOSLEEP 1
16518EOF
16519
10f2d63a 16520else
698dcdb6 16521 echo "$ac_t""no" 1>&6
4f14bcd8 16522echo $ac_n "checking for nanosleep in -lposix4""... $ac_c" 1>&6
d29b553b 16523echo "configure:16524: checking for nanosleep in -lposix4" >&5
4f14bcd8 16524ac_lib_var=`echo posix4'_'nanosleep | sed 'y%./+-%__p_%'`
698dcdb6
VZ
16525if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
16526 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 16527else
698dcdb6 16528 ac_save_LIBS="$LIBS"
4f14bcd8 16529LIBS="-lposix4 $LIBS"
698dcdb6 16530cat > conftest.$ac_ext <<EOF
d29b553b 16531#line 16532 "configure"
10f2d63a
VZ
16532#include "confdefs.h"
16533/* Override any gcc2 internal prototype to avoid an error. */
16534/* We use char because int might match the return type of a gcc2
698dcdb6 16535 builtin and then its argument prototype would still apply. */
4f14bcd8 16536char nanosleep();
698dcdb6
VZ
16537
16538int main() {
4f14bcd8 16539nanosleep()
698dcdb6
VZ
16540; return 0; }
16541EOF
d29b553b 16542if { (eval echo configure:16543: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
16543 rm -rf conftest*
16544 eval "ac_cv_lib_$ac_lib_var=yes"
16545else
16546 echo "configure: failed program was:" >&5
16547 cat conftest.$ac_ext >&5
16548 rm -rf conftest*
16549 eval "ac_cv_lib_$ac_lib_var=no"
16550fi
16551rm -f conftest*
16552LIBS="$ac_save_LIBS"
10f2d63a 16553
698dcdb6
VZ
16554fi
16555if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
16556 echo "$ac_t""yes" 1>&6
16557
4f14bcd8
GD
16558 cat >> confdefs.h <<\EOF
16559#define HAVE_NANOSLEEP 1
16560EOF
16561
3d63bc3a 16562 POSIX4_LINK=" -lposix4"
4f14bcd8 16563
10f2d63a 16564else
698dcdb6 16565 echo "$ac_t""no" 1>&6
10f2d63a 16566
4f14bcd8
GD
16567 for ac_func in usleep
16568do
16569echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
d29b553b 16570echo "configure:16571: checking for $ac_func" >&5
4f14bcd8 16571if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
698dcdb6 16572 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 16573else
698dcdb6 16574 cat > conftest.$ac_ext <<EOF
d29b553b 16575#line 16576 "configure"
10f2d63a 16576#include "confdefs.h"
4f14bcd8
GD
16577/* System header to define __stub macros and hopefully few prototypes,
16578 which can conflict with char $ac_func(); below. */
16579#include <assert.h>
16580/* Override any gcc2 internal prototype to avoid an error. */
16581/* We use char because int might match the return type of a gcc2
16582 builtin and then its argument prototype would still apply. */
16583char $ac_func();
16584
16585int main() {
16586
16587/* The GNU C library defines this for functions which it implements
16588 to always fail with ENOSYS. Some functions are actually named
16589 something starting with __ and the normal name is an alias. */
16590#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16591choke me
16592#else
16593$ac_func();
16594#endif
16595
16596; return 0; }
698dcdb6 16597EOF
d29b553b 16598if { (eval echo configure:16599: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6 16599 rm -rf conftest*
4f14bcd8 16600 eval "ac_cv_func_$ac_func=yes"
1e487827 16601else
698dcdb6 16602 echo "configure: failed program was:" >&5
10f2d63a 16603 cat conftest.$ac_ext >&5
698dcdb6 16604 rm -rf conftest*
4f14bcd8 16605 eval "ac_cv_func_$ac_func=no"
10f2d63a 16606fi
698dcdb6 16607rm -f conftest*
10f2d63a 16608fi
4f14bcd8
GD
16609
16610if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
698dcdb6 16611 echo "$ac_t""yes" 1>&6
4f14bcd8
GD
16612 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16613 cat >> confdefs.h <<EOF
16614#define $ac_tr_func 1
16615EOF
16616 cat >> confdefs.h <<\EOF
16617#define HAVE_USLEEP 1
16618EOF
16619
698dcdb6
VZ
16620else
16621 echo "$ac_t""no" 1>&6
4f14bcd8
GD
16622echo "configure: warning: wxSleep() function will not work" 1>&2
16623
10f2d63a 16624fi
4f14bcd8 16625done
10f2d63a 16626
4f14bcd8 16627
698dcdb6 16628
6232543b 16629fi
10f2d63a 16630
698dcdb6 16631
4f14bcd8 16632
1e487827 16633fi
4f14bcd8 16634done
703e0a69 16635
10f2d63a
VZ
16636fi
16637
4f14bcd8 16638for ac_func in uname gethostname
70846f0a 16639do
698dcdb6 16640echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
d29b553b 16641echo "configure:16642: checking for $ac_func" >&5
698dcdb6
VZ
16642if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16643 echo $ac_n "(cached) $ac_c" 1>&6
16644else
16645 cat > conftest.$ac_ext <<EOF
d29b553b 16646#line 16647 "configure"
70846f0a
VZ
16647#include "confdefs.h"
16648/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 16649 which can conflict with char $ac_func(); below. */
70846f0a
VZ
16650#include <assert.h>
16651/* Override any gcc2 internal prototype to avoid an error. */
16652/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
16653 builtin and then its argument prototype would still apply. */
16654char $ac_func();
16655
16656int main() {
70846f0a
VZ
16657
16658/* The GNU C library defines this for functions which it implements
16659 to always fail with ENOSYS. Some functions are actually named
16660 something starting with __ and the normal name is an alias. */
16661#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16662choke me
16663#else
698dcdb6 16664$ac_func();
70846f0a
VZ
16665#endif
16666
698dcdb6 16667; return 0; }
70846f0a 16668EOF
d29b553b 16669if { (eval echo configure:16670: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
16670 rm -rf conftest*
16671 eval "ac_cv_func_$ac_func=yes"
16672else
16673 echo "configure: failed program was:" >&5
16674 cat conftest.$ac_ext >&5
16675 rm -rf conftest*
16676 eval "ac_cv_func_$ac_func=no"
16677fi
16678rm -f conftest*
16679fi
70846f0a 16680
698dcdb6
VZ
16681if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16682 echo "$ac_t""yes" 1>&6
16683 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16684 cat >> confdefs.h <<EOF
16685#define $ac_tr_func 1
16686EOF
4f14bcd8 16687 break
698dcdb6
VZ
16688else
16689 echo "$ac_t""no" 1>&6
70846f0a
VZ
16690fi
16691done
16692
698dcdb6 16693
4f14bcd8
GD
16694
16695ac_ext=C
16696# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16697ac_cpp='$CXXCPP $CPPFLAGS'
16698ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16699ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16700cross_compiling=$ac_cv_prog_cxx_cross
16701
16702
16703for ac_func in strtok_r
10f2d63a 16704do
4f14bcd8 16705echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
d29b553b 16706echo "configure:16707: checking for $ac_func" >&5
4f14bcd8 16707if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
698dcdb6
VZ
16708 echo $ac_n "(cached) $ac_c" 1>&6
16709else
16710 cat > conftest.$ac_ext <<EOF
d29b553b 16711#line 16712 "configure"
10f2d63a 16712#include "confdefs.h"
4f14bcd8
GD
16713/* System header to define __stub macros and hopefully few prototypes,
16714 which can conflict with char $ac_func(); below. */
16715#include <assert.h>
16716/* Override any gcc2 internal prototype to avoid an error. */
16717#ifdef __cplusplus
16718extern "C"
16719#endif
16720/* We use char because int might match the return type of a gcc2
16721 builtin and then its argument prototype would still apply. */
16722char $ac_func();
16723
16724int main() {
16725
16726/* The GNU C library defines this for functions which it implements
16727 to always fail with ENOSYS. Some functions are actually named
16728 something starting with __ and the normal name is an alias. */
16729#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16730choke me
16731#else
16732$ac_func();
16733#endif
16734
16735; return 0; }
698dcdb6 16736EOF
d29b553b 16737if { (eval echo configure:16738: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6 16738 rm -rf conftest*
4f14bcd8 16739 eval "ac_cv_func_$ac_func=yes"
1e487827 16740else
698dcdb6 16741 echo "configure: failed program was:" >&5
10f2d63a 16742 cat conftest.$ac_ext >&5
698dcdb6 16743 rm -rf conftest*
4f14bcd8 16744 eval "ac_cv_func_$ac_func=no"
10f2d63a 16745fi
698dcdb6 16746rm -f conftest*
10f2d63a 16747fi
4f14bcd8
GD
16748
16749if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
698dcdb6 16750 echo "$ac_t""yes" 1>&6
4f14bcd8 16751 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
698dcdb6 16752 cat >> confdefs.h <<EOF
4f14bcd8 16753#define $ac_tr_func 1
10f2d63a 16754EOF
698dcdb6
VZ
16755
16756else
16757 echo "$ac_t""no" 1>&6
10f2d63a
VZ
16758fi
16759done
16760
698dcdb6 16761
4f14bcd8
GD
16762ac_ext=c
16763# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16764ac_cpp='$CPP $CPPFLAGS'
16765ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16766ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16767cross_compiling=$ac_cv_prog_cc_cross
16768
16769
16770INET_LINK=
16771for ac_func in inet_addr
16772do
16773echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
d29b553b 16774echo "configure:16775: checking for $ac_func" >&5
4f14bcd8 16775if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
698dcdb6 16776 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 16777else
4f14bcd8 16778 cat > conftest.$ac_ext <<EOF
d29b553b 16779#line 16780 "configure"
10f2d63a 16780#include "confdefs.h"
4f14bcd8
GD
16781/* System header to define __stub macros and hopefully few prototypes,
16782 which can conflict with char $ac_func(); below. */
16783#include <assert.h>
10f2d63a
VZ
16784/* Override any gcc2 internal prototype to avoid an error. */
16785/* We use char because int might match the return type of a gcc2
698dcdb6 16786 builtin and then its argument prototype would still apply. */
4f14bcd8 16787char $ac_func();
698dcdb6
VZ
16788
16789int main() {
4f14bcd8
GD
16790
16791/* The GNU C library defines this for functions which it implements
16792 to always fail with ENOSYS. Some functions are actually named
16793 something starting with __ and the normal name is an alias. */
16794#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16795choke me
16796#else
16797$ac_func();
16798#endif
16799
698dcdb6
VZ
16800; return 0; }
16801EOF
d29b553b 16802if { (eval echo configure:16803: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6 16803 rm -rf conftest*
4f14bcd8 16804 eval "ac_cv_func_$ac_func=yes"
698dcdb6
VZ
16805else
16806 echo "configure: failed program was:" >&5
16807 cat conftest.$ac_ext >&5
16808 rm -rf conftest*
4f14bcd8 16809 eval "ac_cv_func_$ac_func=no"
698dcdb6
VZ
16810fi
16811rm -f conftest*
698dcdb6 16812fi
4f14bcd8
GD
16813
16814if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
698dcdb6 16815 echo "$ac_t""yes" 1>&6
4f14bcd8
GD
16816 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16817 cat >> confdefs.h <<EOF
16818#define $ac_tr_func 1
16819EOF
16820 cat >> confdefs.h <<\EOF
16821#define HAVE_INET_ADDR 1
10f2d63a
VZ
16822EOF
16823
16824else
698dcdb6 16825 echo "$ac_t""no" 1>&6
4f14bcd8 16826echo $ac_n "checking for inet_addr in -lnsl""... $ac_c" 1>&6
d29b553b 16827echo "configure:16828: checking for inet_addr in -lnsl" >&5
4f14bcd8 16828ac_lib_var=`echo nsl'_'inet_addr | sed 'y%./+-%__p_%'`
698dcdb6
VZ
16829if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
16830 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 16831else
698dcdb6 16832 ac_save_LIBS="$LIBS"
4f14bcd8 16833LIBS="-lnsl $LIBS"
698dcdb6 16834cat > conftest.$ac_ext <<EOF
d29b553b 16835#line 16836 "configure"
10f2d63a
VZ
16836#include "confdefs.h"
16837/* Override any gcc2 internal prototype to avoid an error. */
16838/* We use char because int might match the return type of a gcc2
698dcdb6 16839 builtin and then its argument prototype would still apply. */
4f14bcd8 16840char inet_addr();
698dcdb6
VZ
16841
16842int main() {
4f14bcd8 16843inet_addr()
698dcdb6
VZ
16844; return 0; }
16845EOF
d29b553b 16846if { (eval echo configure:16847: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
16847 rm -rf conftest*
16848 eval "ac_cv_lib_$ac_lib_var=yes"
16849else
16850 echo "configure: failed program was:" >&5
16851 cat conftest.$ac_ext >&5
16852 rm -rf conftest*
16853 eval "ac_cv_lib_$ac_lib_var=no"
16854fi
16855rm -f conftest*
16856LIBS="$ac_save_LIBS"
16857
16858fi
16859if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
16860 echo "$ac_t""yes" 1>&6
4f14bcd8 16861 INET_LINK="nsl"
10f2d63a 16862else
698dcdb6 16863 echo "$ac_t""no" 1>&6
4f14bcd8 16864echo $ac_n "checking for inet_addr in -lresolv""... $ac_c" 1>&6
d29b553b 16865echo "configure:16866: checking for inet_addr in -lresolv" >&5
4f14bcd8 16866ac_lib_var=`echo resolv'_'inet_addr | sed 'y%./+-%__p_%'`
698dcdb6
VZ
16867if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
16868 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 16869else
698dcdb6 16870 ac_save_LIBS="$LIBS"
4f14bcd8 16871LIBS="-lresolv $LIBS"
698dcdb6 16872cat > conftest.$ac_ext <<EOF
d29b553b 16873#line 16874 "configure"
10f2d63a
VZ
16874#include "confdefs.h"
16875/* Override any gcc2 internal prototype to avoid an error. */
16876/* We use char because int might match the return type of a gcc2
698dcdb6 16877 builtin and then its argument prototype would still apply. */
4f14bcd8 16878char inet_addr();
698dcdb6
VZ
16879
16880int main() {
4f14bcd8 16881inet_addr()
698dcdb6
VZ
16882; return 0; }
16883EOF
d29b553b 16884if { (eval echo configure:16885: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
16885 rm -rf conftest*
16886 eval "ac_cv_lib_$ac_lib_var=yes"
16887else
16888 echo "configure: failed program was:" >&5
16889 cat conftest.$ac_ext >&5
16890 rm -rf conftest*
16891 eval "ac_cv_lib_$ac_lib_var=no"
16892fi
16893rm -f conftest*
16894LIBS="$ac_save_LIBS"
16895
16896fi
16897if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
16898 echo "$ac_t""yes" 1>&6
4f14bcd8 16899 INET_LINK="resolv"
698dcdb6 16900else
4f14bcd8 16901 echo "$ac_t""no" 1>&6
3c011993 16902echo $ac_n "checking for inet_addr in -lsocket""... $ac_c" 1>&6
d29b553b 16903echo "configure:16904: checking for inet_addr in -lsocket" >&5
3c011993
VZ
16904ac_lib_var=`echo socket'_'inet_addr | sed 'y%./+-%__p_%'`
16905if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
16906 echo $ac_n "(cached) $ac_c" 1>&6
16907else
16908 ac_save_LIBS="$LIBS"
16909LIBS="-lsocket $LIBS"
16910cat > conftest.$ac_ext <<EOF
d29b553b 16911#line 16912 "configure"
3c011993
VZ
16912#include "confdefs.h"
16913/* Override any gcc2 internal prototype to avoid an error. */
16914/* We use char because int might match the return type of a gcc2
16915 builtin and then its argument prototype would still apply. */
16916char inet_addr();
16917
16918int main() {
16919inet_addr()
16920; return 0; }
16921EOF
d29b553b 16922if { (eval echo configure:16923: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3c011993
VZ
16923 rm -rf conftest*
16924 eval "ac_cv_lib_$ac_lib_var=yes"
16925else
16926 echo "configure: failed program was:" >&5
16927 cat conftest.$ac_ext >&5
16928 rm -rf conftest*
16929 eval "ac_cv_lib_$ac_lib_var=no"
16930fi
16931rm -f conftest*
16932LIBS="$ac_save_LIBS"
16933
16934fi
16935if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
16936 echo "$ac_t""yes" 1>&6
16937 INET_LINK="socket"
16938
16939else
16940 echo "$ac_t""no" 1>&6
16941fi
16942
16943
4f14bcd8 16944fi
698dcdb6 16945
4f14bcd8 16946
698dcdb6 16947fi
4f14bcd8
GD
16948
16949
698dcdb6
VZ
16950
16951fi
4f14bcd8
GD
16952done
16953
16954
16955for ac_func in inet_aton
16956do
16957echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
d29b553b 16958echo "configure:16959: checking for $ac_func" >&5
4f14bcd8 16959if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
698dcdb6
VZ
16960 echo $ac_n "(cached) $ac_c" 1>&6
16961else
4f14bcd8 16962 cat > conftest.$ac_ext <<EOF
d29b553b 16963#line 16964 "configure"
f6bcfd97 16964#include "confdefs.h"
4f14bcd8
GD
16965/* System header to define __stub macros and hopefully few prototypes,
16966 which can conflict with char $ac_func(); below. */
16967#include <assert.h>
f6bcfd97
BP
16968/* Override any gcc2 internal prototype to avoid an error. */
16969/* We use char because int might match the return type of a gcc2
698dcdb6 16970 builtin and then its argument prototype would still apply. */
4f14bcd8 16971char $ac_func();
698dcdb6
VZ
16972
16973int main() {
4f14bcd8
GD
16974
16975/* The GNU C library defines this for functions which it implements
16976 to always fail with ENOSYS. Some functions are actually named
16977 something starting with __ and the normal name is an alias. */
16978#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16979choke me
16980#else
16981$ac_func();
16982#endif
16983
698dcdb6
VZ
16984; return 0; }
16985EOF
d29b553b 16986if { (eval echo configure:16987: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6 16987 rm -rf conftest*
4f14bcd8 16988 eval "ac_cv_func_$ac_func=yes"
698dcdb6
VZ
16989else
16990 echo "configure: failed program was:" >&5
16991 cat conftest.$ac_ext >&5
16992 rm -rf conftest*
4f14bcd8 16993 eval "ac_cv_func_$ac_func=no"
698dcdb6
VZ
16994fi
16995rm -f conftest*
698dcdb6 16996fi
4f14bcd8
GD
16997
16998if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
698dcdb6 16999 echo "$ac_t""yes" 1>&6
4f14bcd8
GD
17000 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17001 cat >> confdefs.h <<EOF
17002#define $ac_tr_func 1
17003EOF
17004 cat >> confdefs.h <<\EOF
17005#define HAVE_INET_ATON 1
17006EOF
17007
10f2d63a 17008else
698dcdb6 17009 echo "$ac_t""no" 1>&6
4f14bcd8 17010 echo $ac_n "checking for inet_aton in -l$INET_LINK""... $ac_c" 1>&6
d29b553b 17011echo "configure:17012: checking for inet_aton in -l$INET_LINK" >&5
4f14bcd8 17012ac_lib_var=`echo $INET_LINK'_'inet_aton | sed 'y%./+-%__p_%'`
698dcdb6
VZ
17013if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
17014 echo $ac_n "(cached) $ac_c" 1>&6
1e487827 17015else
698dcdb6 17016 ac_save_LIBS="$LIBS"
4f14bcd8 17017LIBS="-l$INET_LINK $LIBS"
698dcdb6 17018cat > conftest.$ac_ext <<EOF
d29b553b 17019#line 17020 "configure"
10f2d63a 17020#include "confdefs.h"
6232543b 17021/* Override any gcc2 internal prototype to avoid an error. */
6232543b 17022/* We use char because int might match the return type of a gcc2
698dcdb6 17023 builtin and then its argument prototype would still apply. */
4f14bcd8 17024char inet_aton();
698dcdb6
VZ
17025
17026int main() {
4f14bcd8 17027inet_aton()
698dcdb6
VZ
17028; return 0; }
17029EOF
d29b553b 17030if { (eval echo configure:17031: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
17031 rm -rf conftest*
17032 eval "ac_cv_lib_$ac_lib_var=yes"
17033else
17034 echo "configure: failed program was:" >&5
17035 cat conftest.$ac_ext >&5
17036 rm -rf conftest*
17037 eval "ac_cv_lib_$ac_lib_var=no"
17038fi
17039rm -f conftest*
17040LIBS="$ac_save_LIBS"
10f2d63a 17041
698dcdb6
VZ
17042fi
17043if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
17044 echo "$ac_t""yes" 1>&6
4f14bcd8
GD
17045 cat >> confdefs.h <<\EOF
17046#define HAVE_INET_ATON 1
17047EOF
17048
698dcdb6
VZ
17049else
17050 echo "$ac_t""no" 1>&6
10f2d63a
VZ
17051fi
17052
4f14bcd8 17053
10f2d63a 17054fi
4f14bcd8 17055done
10f2d63a 17056
4f14bcd8
GD
17057
17058if test "x$INET_LINK" != "x"; then
17059 cat >> confdefs.h <<\EOF
17060#define HAVE_INET_ADDR 1
17061EOF
17062
3d63bc3a 17063 INET_LINK=" -l$INET_LINK"
6232543b 17064fi
10f2d63a 17065
1e487827 17066fi
703e0a69 17067
698dcdb6 17068
4f14bcd8
GD
17069cat > confcache <<\EOF
17070# This file is a shell script that caches the results of configure
17071# tests run on this system so they can be shared between configure
17072# scripts and configure runs. It is not useful on other systems.
17073# If it contains results you don't want to keep, you may remove or edit it.
17074#
17075# By default, configure uses ./config.cache as the cache file,
17076# creating it if it does not exist already. You can give configure
17077# the --cache-file=FILE option to use a different cache file; that is
17078# what configure does when it calls configure scripts in
17079# subdirectories, so they share the cache.
17080# Giving --cache-file=/dev/null disables caching, for debugging configure.
17081# config.status only pays attention to the cache file if you give it the
17082# --recheck option to rerun configure.
17083#
f6bcfd97 17084EOF
4f14bcd8
GD
17085# The following way of writing the cache mishandles newlines in values,
17086# but we know of no workaround that is simple, portable, and efficient.
17087# So, don't put newlines in cache variables' values.
17088# Ultrix sh set writes to stderr and can't be redirected directly,
17089# and sets the high bit in the cache file unless we assign to the vars.
17090(set) 2>&1 |
17091 case `(ac_space=' '; set | grep ac_space) 2>&1` in
17092 *ac_space=\ *)
17093 # `set' does not quote correctly, so add quotes (double-quote substitution
17094 # turns \\\\ into \\, and sed turns \\ into \).
17095 sed -n \
17096 -e "s/'/'\\\\''/g" \
17097 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
17098 ;;
17099 *)
17100 # `set' quotes correctly as required by POSIX, so do not add quotes.
17101 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
17102 ;;
17103 esac >> confcache
17104if cmp -s $cache_file confcache; then
17105 :
17106else
17107 if test -w $cache_file; then
17108 echo "updating cache $cache_file"
17109 cat confcache > $cache_file
f6bcfd97 17110 else
4f14bcd8 17111 echo "not updating unwritable cache $cache_file"
f6bcfd97 17112 fi
4f14bcd8
GD
17113fi
17114rm -f confcache
f6bcfd97 17115
4f14bcd8
GD
17116
17117
009fead0 17118CPP_MT_FLAG=
4f14bcd8
GD
17119if test "$TOOLKIT" != "MSW"; then
17120
009fead0 17121
7274f1c7 17122 THREADS_LINK=
009fead0 17123 THREADS_CFLAGS=
7274f1c7
RL
17124
17125 if test "$wxUSE_THREADS" = "yes" ; then
17126 if test "$wxUSE_WINE" = 1 ; then
156b2523 17127 echo "configure: warning: Threads are not supported under WINE... disabled" 1>&2
7274f1c7
RL
17128 wxUSE_THREADS="no"
17129 elif test "$USE_BEOS" = 1; then
156b2523 17130 echo "configure: warning: BeOS threads are not yet supported... disabled" 1>&2
7274f1c7
RL
17131 wxUSE_THREADS="no"
17132 fi
4f14bcd8 17133 fi
4f14bcd8 17134
7274f1c7 17135 if test "$wxUSE_THREADS" = "yes" ; then
009fead0 17136
3010d50a 17137
009fead0
VZ
17138 THREAD_OPTS="-pthread"
17139 case "${host}" in
17140 *-*-solaris2* | *-*-sunos4* )
17141 if test "x$GCC" = "xyes"; then
126be6b4 17142 THREAD_OPTS="-pthreads $THREAD_OPTS"
009fead0
VZ
17143 else
17144 THREAD_OPTS="-mt $THREAD_OPTS"
17145 fi
17146 ;;
17147 *-*-freebsd*)
17148 THREAD_OPTS="-kthread lthread $THREAD_OPTS c_r"
17149 ;;
4101db81 17150 *-*-darwin*)
8f4a9a10 17151 THREAD_OPTS=""
4101db81 17152 ;;
8f4a9a10 17153 *-*-aix*)
009fead0
VZ
17154 THREAD_OPTS="pthreads"
17155 ;;
009fead0 17156 esac
4f14bcd8 17157
02a1dfba 17158 THREAD_OPTS="$THREAD_OPTS pthread none"
595e0e44 17159
009fead0
VZ
17160 THREADS_OK=no
17161 for flag in $THREAD_OPTS; do
17162 case $flag in
17163 none)
17164 echo $ac_n "checking whether pthreads work without any flags""... $ac_c" 1>&6
d29b553b 17165echo "configure:17166: checking whether pthreads work without any flags" >&5
009fead0 17166 ;;
698dcdb6 17167
009fead0
VZ
17168 -*)
17169 echo $ac_n "checking whether pthreads work with $flag""... $ac_c" 1>&6
d29b553b 17170echo "configure:17171: checking whether pthreads work with $flag" >&5
009fead0
VZ
17171 THREADS_CFLAGS="$flag"
17172 ;;
698dcdb6 17173
009fead0
VZ
17174 *)
17175 echo $ac_n "checking for the pthreads library -l$flag""... $ac_c" 1>&6
d29b553b 17176echo "configure:17177: checking for the pthreads library -l$flag" >&5
009fead0
VZ
17177 THREADS_LINK="-l$flag"
17178 ;;
17179 esac
10f2d63a 17180
009fead0
VZ
17181 save_LIBS="$LIBS"
17182 save_CFLAGS="$CFLAGS"
17183 LIBS="$THREADS_LINK $LIBS"
04727afd 17184 CFLAGS="$THREADS_CFLAGS $CFLAGS"
10f2d63a 17185
009fead0 17186 cat > conftest.$ac_ext <<EOF
d29b553b 17187#line 17188 "configure"
009fead0
VZ
17188#include "confdefs.h"
17189#include <pthread.h>
4f14bcd8 17190int main() {
009fead0 17191pthread_create(0,0,0,0);
698dcdb6
VZ
17192; return 0; }
17193EOF
d29b553b 17194if { (eval echo configure:17195: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6 17195 rm -rf conftest*
009fead0 17196 THREADS_OK=yes
10f2d63a 17197else
698dcdb6
VZ
17198 echo "configure: failed program was:" >&5
17199 cat conftest.$ac_ext >&5
6232543b 17200fi
698dcdb6 17201rm -f conftest*
698dcdb6 17202
009fead0
VZ
17203 LIBS="$save_LIBS"
17204 CFLAGS="$save_CFLAGS"
d9b9876f 17205
009fead0
VZ
17206 echo "$ac_t""$THREADS_OK" 1>&6
17207 if test "x$THREADS_OK" = "xyes"; then
17208 break;
17209 fi
d9b9876f 17210
009fead0
VZ
17211 THREADS_LINK=""
17212 THREADS_CFLAGS=""
17213 done
4f14bcd8 17214
009fead0
VZ
17215 if test "x$THREADS_OK" != "xyes"; then
17216 wxUSE_THREADS=no
17217 echo "configure: warning: No thread support on this system... disabled" 1>&2
17218 else
fe5a9cab
VZ
17219 LIBS="$THREADS_LINK $THREADS_CFLAGS $LIBS"
17220
009fead0 17221 echo $ac_n "checking if more special flags are required for pthreads""... $ac_c" 1>&6
d29b553b 17222echo "configure:17223: checking if more special flags are required for pthreads" >&5
009fead0
VZ
17223 flag=no
17224 case "${host}" in
17225 *-aix* | *-freebsd*)
17226 flag="-D_THREAD_SAFE"
17227 ;;
17228 *solaris* | alpha*-osf*)
17229 flag="-D_REENTRANT"
17230 ;;
17231 esac
17232 echo "$ac_t""${flag}" 1>&6
17233 if test "x$flag" != xno; then
04727afd 17234 THREADS_CFLAGS="$THREADS_CFLAGS $flag"
009fead0
VZ
17235 fi
17236
009fead0 17237 if test "x$THREADS_CFLAGS" != "x"; then
04727afd 17238 CFLAGS="$CFLAGS $THREADS_CFLAGS"
009fead0
VZ
17239 CXXFLAGS="$CXXFLAGS $THREADS_CFLAGS"
17240 fi
17241 fi
4f14bcd8 17242 fi
4f14bcd8 17243
7274f1c7
RL
17244 if test "$wxUSE_THREADS" = "yes" ; then
17245 for ac_func in thr_setconcurrency
4f14bcd8
GD
17246do
17247echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
d29b553b 17248echo "configure:17249: checking for $ac_func" >&5
4f14bcd8 17249if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
698dcdb6
VZ
17250 echo $ac_n "(cached) $ac_c" 1>&6
17251else
4f14bcd8 17252 cat > conftest.$ac_ext <<EOF
d29b553b 17253#line 17254 "configure"
d9b9876f 17254#include "confdefs.h"
4f14bcd8
GD
17255/* System header to define __stub macros and hopefully few prototypes,
17256 which can conflict with char $ac_func(); below. */
17257#include <assert.h>
17258/* Override any gcc2 internal prototype to avoid an error. */
17259/* We use char because int might match the return type of a gcc2
17260 builtin and then its argument prototype would still apply. */
17261char $ac_func();
17262
698dcdb6 17263int main() {
d9b9876f 17264
4f14bcd8
GD
17265/* The GNU C library defines this for functions which it implements
17266 to always fail with ENOSYS. Some functions are actually named
17267 something starting with __ and the normal name is an alias. */
17268#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17269choke me
17270#else
17271$ac_func();
17272#endif
17273
698dcdb6
VZ
17274; return 0; }
17275EOF
d29b553b 17276if { (eval echo configure:17277: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6 17277 rm -rf conftest*
4f14bcd8 17278 eval "ac_cv_func_$ac_func=yes"
d9b9876f 17279else
698dcdb6
VZ
17280 echo "configure: failed program was:" >&5
17281 cat conftest.$ac_ext >&5
17282 rm -rf conftest*
4f14bcd8 17283 eval "ac_cv_func_$ac_func=no"
6232543b 17284fi
698dcdb6 17285rm -f conftest*
1e487827 17286fi
698dcdb6 17287
4f14bcd8
GD
17288if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17289 echo "$ac_t""yes" 1>&6
17290 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17291 cat >> confdefs.h <<EOF
17292#define $ac_tr_func 1
d9b9876f 17293EOF
4f14bcd8
GD
17294
17295else
17296 echo "$ac_t""no" 1>&6
10f2d63a 17297fi
4f14bcd8 17298done
10f2d63a 17299
10f2d63a 17300
7274f1c7 17301 for ac_hdr in sched.h
4f14bcd8
GD
17302do
17303ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
17304echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
d29b553b 17305echo "configure:17306: checking for $ac_hdr" >&5
4f14bcd8
GD
17306if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
17307 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 17308else
4f14bcd8 17309 cat > conftest.$ac_ext <<EOF
d29b553b 17310#line 17311 "configure"
4f14bcd8
GD
17311#include "confdefs.h"
17312#include <$ac_hdr>
13111b2a 17313EOF
4f14bcd8 17314ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
d29b553b 17315{ (eval echo configure:17316: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4f14bcd8
GD
17316ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
17317if test -z "$ac_err"; then
17318 rm -rf conftest*
17319 eval "ac_cv_header_$ac_safe=yes"
17320else
17321 echo "$ac_err" >&5
17322 echo "configure: failed program was:" >&5
17323 cat conftest.$ac_ext >&5
17324 rm -rf conftest*
17325 eval "ac_cv_header_$ac_safe=no"
13111b2a 17326fi
4f14bcd8 17327rm -f conftest*
10f2d63a 17328fi
4f14bcd8
GD
17329if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
17330 echo "$ac_t""yes" 1>&6
17331 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
698dcdb6 17332 cat >> confdefs.h <<EOF
4f14bcd8 17333#define $ac_tr_hdr 1
f6bcfd97 17334EOF
4f14bcd8
GD
17335
17336else
17337 echo "$ac_t""no" 1>&6
f6bcfd97 17338fi
4f14bcd8 17339done
f6bcfd97 17340
009fead0
VZ
17341 if test "$ac_cv_header_sched_h" = "yes"; then
17342 echo $ac_n "checking for sched_yield""... $ac_c" 1>&6
d29b553b 17343echo "configure:17344: checking for sched_yield" >&5
009fead0 17344if eval "test \"`echo '$''{'ac_cv_func_sched_yield'+set}'`\" = set"; then
4f14bcd8
GD
17345 echo $ac_n "(cached) $ac_c" 1>&6
17346else
009fead0 17347 cat > conftest.$ac_ext <<EOF
d29b553b 17348#line 17349 "configure"
4f14bcd8 17349#include "confdefs.h"
009fead0
VZ
17350/* System header to define __stub macros and hopefully few prototypes,
17351 which can conflict with char sched_yield(); below. */
17352#include <assert.h>
4f14bcd8
GD
17353/* Override any gcc2 internal prototype to avoid an error. */
17354/* We use char because int might match the return type of a gcc2
17355 builtin and then its argument prototype would still apply. */
17356char sched_yield();
10f2d63a 17357
4f14bcd8 17358int main() {
009fead0
VZ
17359
17360/* The GNU C library defines this for functions which it implements
17361 to always fail with ENOSYS. Some functions are actually named
17362 something starting with __ and the normal name is an alias. */
17363#if defined (__stub_sched_yield) || defined (__stub___sched_yield)
17364choke me
17365#else
17366sched_yield();
17367#endif
17368
4f14bcd8 17369; return 0; }
10f2d63a 17370EOF
d29b553b 17371if { (eval echo configure:17372: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4f14bcd8 17372 rm -rf conftest*
009fead0 17373 eval "ac_cv_func_sched_yield=yes"
10f2d63a 17374else
4f14bcd8
GD
17375 echo "configure: failed program was:" >&5
17376 cat conftest.$ac_ext >&5
17377 rm -rf conftest*
009fead0 17378 eval "ac_cv_func_sched_yield=no"
10f2d63a 17379fi
4f14bcd8 17380rm -f conftest*
4f14bcd8 17381fi
009fead0
VZ
17382
17383if eval "test \"`echo '$ac_cv_func_'sched_yield`\" = yes"; then
4f14bcd8
GD
17384 echo "$ac_t""yes" 1>&6
17385 cat >> confdefs.h <<\EOF
17386#define HAVE_SCHED_YIELD 1
10f2d63a
VZ
17387EOF
17388
4f14bcd8
GD
17389else
17390 echo "$ac_t""no" 1>&6
009fead0
VZ
17391
17392 echo $ac_n "checking for sched_yield in -lposix4""... $ac_c" 1>&6
d29b553b 17393echo "configure:17394: checking for sched_yield in -lposix4" >&5
4f14bcd8
GD
17394ac_lib_var=`echo posix4'_'sched_yield | sed 'y%./+-%__p_%'`
17395if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
17396 echo $ac_n "(cached) $ac_c" 1>&6
17397else
17398 ac_save_LIBS="$LIBS"
17399LIBS="-lposix4 $LIBS"
17400cat > conftest.$ac_ext <<EOF
d29b553b 17401#line 17402 "configure"
4f14bcd8
GD
17402#include "confdefs.h"
17403/* Override any gcc2 internal prototype to avoid an error. */
17404/* We use char because int might match the return type of a gcc2
17405 builtin and then its argument prototype would still apply. */
17406char sched_yield();
47c13eb7 17407
4f14bcd8
GD
17408int main() {
17409sched_yield()
17410; return 0; }
10f2d63a 17411EOF
d29b553b 17412if { (eval echo configure:17413: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4f14bcd8
GD
17413 rm -rf conftest*
17414 eval "ac_cv_lib_$ac_lib_var=yes"
10f2d63a 17415else
4f14bcd8
GD
17416 echo "configure: failed program was:" >&5
17417 cat conftest.$ac_ext >&5
17418 rm -rf conftest*
17419 eval "ac_cv_lib_$ac_lib_var=no"
10f2d63a 17420fi
4f14bcd8
GD
17421rm -f conftest*
17422LIBS="$ac_save_LIBS"
10f2d63a 17423
54276ccf 17424fi
4f14bcd8
GD
17425if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
17426 echo "$ac_t""yes" 1>&6
17427 cat >> confdefs.h <<\EOF
17428#define HAVE_SCHED_YIELD 1
54276ccf 17429EOF
3d63bc3a 17430 POSIX4_LINK=" -lposix4"
4f14bcd8
GD
17431else
17432 echo "$ac_t""no" 1>&6
17433echo "configure: warning: wxThread::Yield will not work properly" 1>&2
009fead0 17434
54276ccf
VZ
17435fi
17436
009fead0
VZ
17437
17438
4f14bcd8 17439fi
698dcdb6 17440
009fead0 17441 fi
10f2d63a 17442
7274f1c7 17443 HAVE_PRIOR_FUNCS=0
009fead0 17444 echo $ac_n "checking for pthread_attr_getschedpolicy""... $ac_c" 1>&6
d29b553b 17445echo "configure:17446: checking for pthread_attr_getschedpolicy" >&5
009fead0 17446if eval "test \"`echo '$''{'ac_cv_func_pthread_attr_getschedpolicy'+set}'`\" = set"; then
698dcdb6
VZ
17447 echo $ac_n "(cached) $ac_c" 1>&6
17448else
009fead0 17449 cat > conftest.$ac_ext <<EOF
d29b553b 17450#line 17451 "configure"
422107f9 17451#include "confdefs.h"
009fead0
VZ
17452/* System header to define __stub macros and hopefully few prototypes,
17453 which can conflict with char pthread_attr_getschedpolicy(); below. */
17454#include <assert.h>
4f14bcd8
GD
17455/* Override any gcc2 internal prototype to avoid an error. */
17456/* We use char because int might match the return type of a gcc2
17457 builtin and then its argument prototype would still apply. */
17458char pthread_attr_getschedpolicy();
17459
17460int main() {
009fead0
VZ
17461
17462/* The GNU C library defines this for functions which it implements
17463 to always fail with ENOSYS. Some functions are actually named
17464 something starting with __ and the normal name is an alias. */
17465#if defined (__stub_pthread_attr_getschedpolicy) || defined (__stub___pthread_attr_getschedpolicy)
17466choke me
17467#else
17468pthread_attr_getschedpolicy();
17469#endif
17470
4f14bcd8 17471; return 0; }
698dcdb6 17472EOF
d29b553b 17473if { (eval echo configure:17474: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6 17474 rm -rf conftest*
009fead0 17475 eval "ac_cv_func_pthread_attr_getschedpolicy=yes"
422107f9 17476else
698dcdb6 17477 echo "configure: failed program was:" >&5
422107f9 17478 cat conftest.$ac_ext >&5
698dcdb6 17479 rm -rf conftest*
009fead0 17480 eval "ac_cv_func_pthread_attr_getschedpolicy=no"
422107f9 17481fi
698dcdb6 17482rm -f conftest*
422107f9 17483fi
009fead0
VZ
17484
17485if eval "test \"`echo '$ac_cv_func_'pthread_attr_getschedpolicy`\" = yes"; then
698dcdb6 17486 echo "$ac_t""yes" 1>&6
009fead0 17487 echo $ac_n "checking for pthread_attr_setschedparam""... $ac_c" 1>&6
d29b553b 17488echo "configure:17489: checking for pthread_attr_setschedparam" >&5
009fead0 17489if eval "test \"`echo '$''{'ac_cv_func_pthread_attr_setschedparam'+set}'`\" = set"; then
698dcdb6 17490 echo $ac_n "(cached) $ac_c" 1>&6
422107f9 17491else
009fead0 17492 cat > conftest.$ac_ext <<EOF
d29b553b 17493#line 17494 "configure"
422107f9 17494#include "confdefs.h"
009fead0
VZ
17495/* System header to define __stub macros and hopefully few prototypes,
17496 which can conflict with char pthread_attr_setschedparam(); below. */
17497#include <assert.h>
422107f9
VZ
17498/* Override any gcc2 internal prototype to avoid an error. */
17499/* We use char because int might match the return type of a gcc2
698dcdb6 17500 builtin and then its argument prototype would still apply. */
4f14bcd8 17501char pthread_attr_setschedparam();
698dcdb6
VZ
17502
17503int main() {
009fead0
VZ
17504
17505/* The GNU C library defines this for functions which it implements
17506 to always fail with ENOSYS. Some functions are actually named
17507 something starting with __ and the normal name is an alias. */
17508#if defined (__stub_pthread_attr_setschedparam) || defined (__stub___pthread_attr_setschedparam)
17509choke me
17510#else
17511pthread_attr_setschedparam();
17512#endif
17513
698dcdb6
VZ
17514; return 0; }
17515EOF
d29b553b 17516if { (eval echo configure:17517: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6 17517 rm -rf conftest*
009fead0 17518 eval "ac_cv_func_pthread_attr_setschedparam=yes"
698dcdb6
VZ
17519else
17520 echo "configure: failed program was:" >&5
17521 cat conftest.$ac_ext >&5
17522 rm -rf conftest*
009fead0 17523 eval "ac_cv_func_pthread_attr_setschedparam=no"
698dcdb6
VZ
17524fi
17525rm -f conftest*
698dcdb6 17526fi
009fead0
VZ
17527
17528if eval "test \"`echo '$ac_cv_func_'pthread_attr_setschedparam`\" = yes"; then
698dcdb6 17529 echo "$ac_t""yes" 1>&6
009fead0 17530 echo $ac_n "checking for sched_get_priority_max""... $ac_c" 1>&6
d29b553b 17531echo "configure:17532: checking for sched_get_priority_max" >&5
009fead0 17532if eval "test \"`echo '$''{'ac_cv_func_sched_get_priority_max'+set}'`\" = set"; then
698dcdb6
VZ
17533 echo $ac_n "(cached) $ac_c" 1>&6
17534else
009fead0 17535 cat > conftest.$ac_ext <<EOF
d29b553b 17536#line 17537 "configure"
422107f9 17537#include "confdefs.h"
009fead0
VZ
17538/* System header to define __stub macros and hopefully few prototypes
17539else
17540 echo "$ac_t""no" 1>&6
17541which can conflict with char sched_get_priority_max(); below. */
17542#include <assert.h>
4f14bcd8
GD
17543/* Override any gcc2 internal prototype to avoid an error. */
17544/* We use char because int might match the return type of a gcc2
17545 builtin and then its argument prototype would still apply. */
17546char sched_get_priority_max();
17547
17548int main() {
009fead0
VZ
17549
17550/* The GNU C library defines this for functions which it implements
17551 to always fail with ENOSYS. Some functions are actually named
17552 something starting with __ and the normal name is an alias. */
17553#if defined (__stub_sched_get_priority_max) || defined (__stub___sched_get_priority_max)
17554choke me
17555#else
17556sched_get_priority_max();
17557#endif
17558
4f14bcd8 17559; return 0; }
698dcdb6 17560EOF
d29b553b 17561if { (eval echo configure:17562: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6 17562 rm -rf conftest*
009fead0 17563 eval "ac_cv_func_sched_get_priority_max=yes"
422107f9 17564else
698dcdb6 17565 echo "configure: failed program was:" >&5
422107f9 17566 cat conftest.$ac_ext >&5
698dcdb6 17567 rm -rf conftest*
009fead0 17568 eval "ac_cv_func_sched_get_priority_max=no"
422107f9 17569fi
698dcdb6 17570rm -f conftest*
422107f9 17571fi
009fead0
VZ
17572
17573if eval "test \"`echo '$ac_cv_func_'sched_get_priority_max`\" = yes"; then
698dcdb6 17574 echo "$ac_t""yes" 1>&6
4f14bcd8
GD
17575 HAVE_PRIOR_FUNCS=1
17576else
17577 echo "$ac_t""no" 1>&6
17578echo $ac_n "checking for sched_get_priority_max in -lposix4""... $ac_c" 1>&6
d29b553b 17579echo "configure:17580: checking for sched_get_priority_max in -lposix4" >&5
4f14bcd8 17580ac_lib_var=`echo posix4'_'sched_get_priority_max | sed 'y%./+-%__p_%'`
698dcdb6
VZ
17581if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
17582 echo $ac_n "(cached) $ac_c" 1>&6
422107f9 17583else
698dcdb6 17584 ac_save_LIBS="$LIBS"
4f14bcd8 17585LIBS="-lposix4 $LIBS"
698dcdb6 17586cat > conftest.$ac_ext <<EOF
d29b553b 17587#line 17588 "configure"
422107f9
VZ
17588#include "confdefs.h"
17589/* Override any gcc2 internal prototype to avoid an error. */
17590/* We use char because int might match the return type of a gcc2
698dcdb6 17591 builtin and then its argument prototype would still apply. */
4f14bcd8 17592char sched_get_priority_max();
698dcdb6
VZ
17593
17594int main() {
4f14bcd8 17595sched_get_priority_max()
698dcdb6
VZ
17596; return 0; }
17597EOF
d29b553b 17598if { (eval echo configure:17599: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
17599 rm -rf conftest*
17600 eval "ac_cv_lib_$ac_lib_var=yes"
17601else
17602 echo "configure: failed program was:" >&5
17603 cat conftest.$ac_ext >&5
17604 rm -rf conftest*
17605 eval "ac_cv_lib_$ac_lib_var=no"
17606fi
17607rm -f conftest*
17608LIBS="$ac_save_LIBS"
17609
17610fi
17611if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
17612 echo "$ac_t""yes" 1>&6
4f14bcd8 17613
7274f1c7
RL
17614 HAVE_PRIOR_FUNCS=1
17615 POSIX4_LINK=" -lposix4"
17616
698dcdb6
VZ
17617else
17618 echo "$ac_t""no" 1>&6
422107f9
VZ
17619fi
17620
7274f1c7 17621
422107f9
VZ
17622fi
17623
7274f1c7 17624
4f14bcd8
GD
17625else
17626 echo "$ac_t""no" 1>&6
10f2d63a
VZ
17627fi
17628
7274f1c7 17629
4f14bcd8 17630fi
463abc64 17631
463abc64 17632
7274f1c7
RL
17633 if test "$HAVE_PRIOR_FUNCS" = 1; then
17634 cat >> confdefs.h <<\EOF
4f14bcd8 17635#define HAVE_THREAD_PRIORITY_FUNCTIONS 1
698dcdb6 17636EOF
463abc64 17637
7274f1c7
RL
17638 else
17639 echo "configure: warning: Setting thread priority will not work" 1>&2
17640 fi
463abc64 17641
009fead0 17642 echo $ac_n "checking for pthread_cancel""... $ac_c" 1>&6
d29b553b 17643echo "configure:17644: checking for pthread_cancel" >&5
009fead0 17644if eval "test \"`echo '$''{'ac_cv_func_pthread_cancel'+set}'`\" = set"; then
698dcdb6 17645 echo $ac_n "(cached) $ac_c" 1>&6
422107f9 17646else
009fead0 17647 cat > conftest.$ac_ext <<EOF
d29b553b 17648#line 17649 "configure"
422107f9 17649#include "confdefs.h"
009fead0
VZ
17650/* System header to define __stub macros and hopefully few prototypes,
17651 which can conflict with char pthread_cancel(); below. */
17652#include <assert.h>
422107f9
VZ
17653/* Override any gcc2 internal prototype to avoid an error. */
17654/* We use char because int might match the return type of a gcc2
698dcdb6 17655 builtin and then its argument prototype would still apply. */
4f14bcd8 17656char pthread_cancel();
698dcdb6
VZ
17657
17658int main() {
009fead0
VZ
17659
17660/* The GNU C library defines this for functions which it implements
17661 to always fail with ENOSYS. Some functions are actually named
17662 something starting with __ and the normal name is an alias. */
17663#if defined (__stub_pthread_cancel) || defined (__stub___pthread_cancel)
17664choke me
17665#else
17666pthread_cancel();
17667#endif
17668
698dcdb6
VZ
17669; return 0; }
17670EOF
d29b553b 17671if { (eval echo configure:17672: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6 17672 rm -rf conftest*
009fead0 17673 eval "ac_cv_func_pthread_cancel=yes"
698dcdb6
VZ
17674else
17675 echo "configure: failed program was:" >&5
17676 cat conftest.$ac_ext >&5
17677 rm -rf conftest*
009fead0 17678 eval "ac_cv_func_pthread_cancel=no"
698dcdb6
VZ
17679fi
17680rm -f conftest*
698dcdb6 17681fi
009fead0
VZ
17682
17683if eval "test \"`echo '$ac_cv_func_'pthread_cancel`\" = yes"; then
698dcdb6 17684 echo "$ac_t""yes" 1>&6
4f14bcd8
GD
17685 cat >> confdefs.h <<\EOF
17686#define HAVE_PTHREAD_CANCEL 1
17687EOF
17688
698dcdb6
VZ
17689else
17690 echo "$ac_t""no" 1>&6
4f14bcd8 17691echo "configure: warning: wxThread::Kill() will not work properly" 1>&2
422107f9
VZ
17692fi
17693
422107f9 17694
7274f1c7 17695 echo $ac_n "checking for pthread_cleanup_push/pop""... $ac_c" 1>&6
d29b553b 17696echo "configure:17697: checking for pthread_cleanup_push/pop" >&5
4f14bcd8
GD
17697if eval "test \"`echo '$''{'wx_cv_func_pthread_cleanup_push'+set}'`\" = set"; then
17698 echo $ac_n "(cached) $ac_c" 1>&6
17699else
17700
7274f1c7 17701 cat > conftest.$ac_ext <<EOF
d29b553b 17702#line 17703 "configure"
4f14bcd8
GD
17703#include "confdefs.h"
17704#include <pthread.h>
17705int main() {
17706
7274f1c7
RL
17707 pthread_cleanup_push(NULL, NULL);
17708 pthread_cleanup_pop(0);
17709
4f14bcd8
GD
17710; return 0; }
17711EOF
d29b553b 17712if { (eval echo configure:17713: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4f14bcd8
GD
17713 rm -rf conftest*
17714
7274f1c7
RL
17715 wx_cv_func_pthread_cleanup_push=yes
17716
4f14bcd8
GD
17717else
17718 echo "configure: failed program was:" >&5
17719 cat conftest.$ac_ext >&5
17720 rm -rf conftest*
17721
7274f1c7
RL
17722 wx_cv_func_pthread_cleanup_push=no
17723
4f14bcd8
GD
17724fi
17725rm -f conftest*
7274f1c7 17726
10f2d63a
VZ
17727fi
17728
4f14bcd8
GD
17729echo "$ac_t""$wx_cv_func_pthread_cleanup_push" 1>&6
17730
7274f1c7
RL
17731 if test "$wx_cv_func_pthread_cleanup_push" = "yes"; then
17732 cat >> confdefs.h <<\EOF
4f14bcd8 17733#define HAVE_THREAD_CLEANUP_FUNCTIONS 1
c7a2bf27
RR
17734EOF
17735
7274f1c7 17736 fi
4f14bcd8 17737
7274f1c7 17738
19bc6aad 17739 if test "x$wx_cv_lib_glibc21" = "xyes"; then
7274f1c7
RL
17740 CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE"
17741 fi
4f14bcd8 17742
7274f1c7 17743 echo $ac_n "checking for pthread_mutexattr_t""... $ac_c" 1>&6
d29b553b 17744echo "configure:17745: checking for pthread_mutexattr_t" >&5
4f14bcd8 17745if eval "test \"`echo '$''{'wx_cv_type_pthread_mutexattr_t'+set}'`\" = set"; then
698dcdb6
VZ
17746 echo $ac_n "(cached) $ac_c" 1>&6
17747else
4f14bcd8 17748
7274f1c7 17749 cat > conftest.$ac_ext <<EOF
d29b553b 17750#line 17751 "configure"
0dcf9893 17751#include "confdefs.h"
4f14bcd8
GD
17752#include <pthread.h>
17753int main() {
17754
7274f1c7
RL
17755 pthread_mutexattr_t attr;
17756 pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
17757
4f14bcd8 17758; return 0; }
698dcdb6 17759EOF
d29b553b 17760if { (eval echo configure:17761: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6 17761 rm -rf conftest*
4f14bcd8 17762
7274f1c7
RL
17763 wx_cv_type_pthread_mutexattr_t=yes
17764
3fed1840 17765else
698dcdb6 17766 echo "configure: failed program was:" >&5
3fed1840 17767 cat conftest.$ac_ext >&5
698dcdb6 17768 rm -rf conftest*
4f14bcd8 17769
7274f1c7
RL
17770 wx_cv_type_pthread_mutexattr_t=no
17771
4f14bcd8 17772
3fed1840 17773fi
698dcdb6 17774rm -f conftest*
7274f1c7 17775
3fed1840 17776fi
4f14bcd8
GD
17777
17778echo "$ac_t""$wx_cv_type_pthread_mutexattr_t" 1>&6
17779
7274f1c7
RL
17780 if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then
17781 cat >> confdefs.h <<\EOF
4f14bcd8
GD
17782#define HAVE_PTHREAD_MUTEXATTR_T 1
17783EOF
17784
7274f1c7
RL
17785 else
17786 echo $ac_n "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER""... $ac_c" 1>&6
d29b553b 17787echo "configure:17788: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5
4f14bcd8 17788if eval "test \"`echo '$''{'wx_cv_type_pthread_rec_mutex_init'+set}'`\" = set"; then
698dcdb6 17789 echo $ac_n "(cached) $ac_c" 1>&6
3fed1840 17790else
4f14bcd8 17791
7274f1c7 17792 cat > conftest.$ac_ext <<EOF
d29b553b 17793#line 17794 "configure"
3fed1840 17794#include "confdefs.h"
4f14bcd8 17795#include <pthread.h>
698dcdb6 17796int main() {
4f14bcd8 17797
7274f1c7
RL
17798 pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;
17799
698dcdb6
VZ
17800; return 0; }
17801EOF
d29b553b 17802if { (eval echo configure:17803: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6 17803 rm -rf conftest*
4f14bcd8 17804
7274f1c7
RL
17805 wx_cv_type_pthread_rec_mutex_init=yes
17806
698dcdb6
VZ
17807else
17808 echo "configure: failed program was:" >&5
17809 cat conftest.$ac_ext >&5
17810 rm -rf conftest*
4f14bcd8 17811
7274f1c7
RL
17812 wx_cv_type_pthread_rec_mutex_init=no
17813
4f14bcd8 17814
698dcdb6
VZ
17815fi
17816rm -f conftest*
7274f1c7 17817
3fed1840
RR
17818fi
17819
4f14bcd8 17820echo "$ac_t""$wx_cv_type_pthread_rec_mutex_init" 1>&6
7274f1c7
RL
17821 if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then
17822 cat >> confdefs.h <<\EOF
4f14bcd8
GD
17823#define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1
17824EOF
3fed1840 17825
7274f1c7
RL
17826 else
17827 echo "configure: warning: wxMutex won't be recursive on this platform" 1>&2
17828 fi
17829 fi
7274f1c7 17830 fi
3fed1840 17831
4f14bcd8
GD
17832fi
17833
17834if test "$wxUSE_THREADS" = "yes"; then
3a922bb4 17835 cat >> confdefs.h <<\EOF
4f14bcd8 17836#define wxUSE_THREADS 1
7b6058cd
GD
17837EOF
17838
4f14bcd8 17839
4f14bcd8 17840 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread"
698dcdb6 17841else
4f14bcd8
GD
17842 if test "$ac_cv_func_strtok_r" = "yes"; then
17843 echo $ac_n "checking if -D_REENTRANT is needed""... $ac_c" 1>&6
d29b553b 17844echo "configure:17845: checking if -D_REENTRANT is needed" >&5
4f14bcd8
GD
17845 if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then
17846 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D_REENTRANT"
17847 echo "$ac_t""yes" 1>&6
17848 else
17849 echo "$ac_t""no" 1>&6
17850 fi
17851 fi
17852fi
17853
17854if test "$WXGTK20" = 1 ; then
17855 cat >> confdefs.h <<EOF
17856#define __WXGTK20__ $WXGTK20
698dcdb6 17857EOF
4f14bcd8
GD
17858
17859 WXGTK12=1
10f2d63a 17860fi
4f14bcd8
GD
17861
17862if test "$WXGTK12" = 1 ; then
17863 cat >> confdefs.h <<EOF
17864#define __WXGTK12__ $WXGTK12
17865EOF
17866
10f2d63a 17867fi
698dcdb6 17868
4f14bcd8
GD
17869if test "$WXGTK127" = 1 ; then
17870 cat >> confdefs.h <<EOF
17871#define __WXGTK127__ $WXGTK127
698dcdb6 17872EOF
4f14bcd8 17873
698dcdb6 17874fi
10f2d63a 17875
4f14bcd8
GD
17876WXDEBUG=
17877
17878if test "$wxUSE_DEBUG_INFO" = "yes" ; then
17879 WXDEBUG="-g"
17880 wxUSE_OPTIMISE=no
698dcdb6 17881fi
4f14bcd8
GD
17882
17883if test "$wxUSE_DEBUG_GDB" = "yes" ; then
17884 wxUSE_DEBUG_INFO=yes
17885 WXDEBUG="-ggdb"
10f2d63a
VZ
17886fi
17887
4f14bcd8
GD
17888if test "$wxUSE_DEBUG_FLAG" = "yes" ; then
17889 cat >> confdefs.h <<\EOF
17890#define WXDEBUG 1
17891EOF
17892
17893 WXDEBUG_DEFINE="-D__WXDEBUG__"
10f2d63a 17894else
4f14bcd8
GD
17895 if test "$wxUSE_GTK" = 1 ; then
17896 WXDEBUG_DEFINE="-DGTK_NO_CHECK_CASTS"
17897 fi
17898fi
17899
17900if test "$wxUSE_MEM_TRACING" = "yes" ; then
17901 cat >> confdefs.h <<\EOF
17902#define wxUSE_MEMORY_TRACING 1
17903EOF
17904
17905 cat >> confdefs.h <<\EOF
17906#define wxUSE_GLOBAL_MEMORY_OPERATORS 1
17907EOF
17908
17909 cat >> confdefs.h <<\EOF
17910#define wxUSE_DEBUG_NEW_ALWAYS 1
17911EOF
17912
17913 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck"
17914fi
17915
17916if test "$wxUSE_DMALLOC" = "yes" ; then
3d63bc3a 17917 DMALLOC_LIBS="-ldmalloc"
4f14bcd8
GD
17918fi
17919
17920PROFILE=
17921if test "$wxUSE_PROFILE" = "yes" ; then
3d63bc3a 17922 PROFILE=" -pg"
10f2d63a
VZ
17923fi
17924
009fead0
VZ
17925CODE_GEN_FLAGS=
17926CODE_GEN_FLAGS_CXX=
88e30f2b 17927if test "$GCC" = "yes" ; then
4f14bcd8
GD
17928 if test "$wxUSE_NO_RTTI" = "yes" ; then
17929 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-rtti"
3a922bb4 17930 fi
4f14bcd8
GD
17931 if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
17932 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-exceptions"
17933 fi
17934 if test "$wxUSE_PERMISSIVE" = "yes" ; then
17935 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fpermissive"
17936 fi
4f14bcd8
GD
17937 if test "$USE_WIN32" = 1 ; then
17938 # I'm not even really sure what this was ever added to solve,
17939 # but someone added it for mingw native builds, so I guess
17940 # they had a reason, right??
17941 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fno-pcc-struct-return"
17942 fi
17943fi
17944
4f14bcd8
GD
17945if test "$wxUSE_OPTIMISE" = "no" ; then
17946 OPTIMISE=
17947else
17948 if test "$GCC" = yes ; then
17949 OPTIMISE="-O2"
17950 case "${host}" in
17951 i586-*-*|i686-*-* )
17952 OPTIMISE="${OPTIMISE} "
17953 ;;
17954 esac
17955 else
17956 OPTIMISE="-O"
17957 fi
17958fi
17959
17960if test "$WXWIN_COMPATIBILITY_2" = "yes"; then
17961 cat >> confdefs.h <<\EOF
17962#define WXWIN_COMPATIBILITY_2 1
17963EOF
17964
17965
17966 WXWIN_COMPATIBILITY_2_2="yes"
17967fi
17968
0c9a1c32 17969if test "x$WXWIN_COMPATIBILITY_2_2" != "xno"; then
4f14bcd8
GD
17970 cat >> confdefs.h <<\EOF
17971#define WXWIN_COMPATIBILITY_2_2 1
17972EOF
17973
10f2d63a
VZ
17974fi
17975
698dcdb6 17976
10f2d63a 17977if test "$wxUSE_GUI" = "yes"; then
698dcdb6 17978 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17979#define wxUSE_GUI 1
17980EOF
17981
698dcdb6 17982
10f2d63a 17983 else
698dcdb6 17984 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17985#define wxUSE_NOGUI 1
17986EOF
17987
17988fi
17989
698dcdb6 17990
10f2d63a 17991if test "$wxUSE_UNIX" = "yes"; then
698dcdb6 17992 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17993#define wxUSE_UNIX 1
17994EOF
17995
17996fi
17997
698dcdb6 17998
10f2d63a 17999if test "$wxUSE_APPLE_IEEE" = "yes"; then
698dcdb6 18000 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18001#define wxUSE_APPLE_IEEE 1
18002EOF
18003
18004fi
18005
1e6feb95
VZ
18006if test "$wxUSE_TIMER" = "yes"; then
18007 cat >> confdefs.h <<\EOF
18008#define wxUSE_TIMER 1
18009EOF
18010
18011fi
18012
10f2d63a 18013if test "$wxUSE_WAVE" = "yes"; then
698dcdb6 18014 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18015#define wxUSE_WAVE 1
18016EOF
18017
18018fi
18019
1e6feb95
VZ
18020if test "$wxUSE_CMDLINE_PARSER" = "yes"; then
18021 cat >> confdefs.h <<\EOF
18022#define wxUSE_CMDLINE_PARSER 1
18023EOF
18024
18025fi
18026
18027if test "$wxUSE_STOPWATCH" = "yes"; then
18028 cat >> confdefs.h <<\EOF
18029#define wxUSE_STOPWATCH 1
18030EOF
18031
18032fi
18033
18034if test "$wxUSE_DATETIME" = "yes"; then
18035 cat >> confdefs.h <<\EOF
18036#define wxUSE_DATETIME 1
18037EOF
18038
18039fi
18040
18041if test "$wxUSE_TIMEDATE" = "yes"; then
18042 cat >> confdefs.h <<\EOF
18043#define wxUSE_TIMEDATE 1
18044EOF
18045
18046fi
18047
10f2d63a 18048if test "$wxUSE_FILE" = "yes"; then
698dcdb6 18049 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18050#define wxUSE_FILE 1
18051EOF
18052
18053fi
18054
1e6feb95
VZ
18055if test "$wxUSE_FFILE" = "yes"; then
18056 cat >> confdefs.h <<\EOF
18057#define wxUSE_FFILE 1
18058EOF
18059
18060fi
18061
24528b0c 18062if test "$wxUSE_FILESYSTEM" = "yes"; then
698dcdb6 18063 cat >> confdefs.h <<\EOF
24528b0c
VS
18064#define wxUSE_FILESYSTEM 1
18065EOF
18066
18067fi
18068
10f2d63a 18069if test "$wxUSE_FS_INET" = "yes"; then
698dcdb6 18070 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18071#define wxUSE_FS_INET 1
18072EOF
18073
18074fi
18075
18076if test "$wxUSE_FS_ZIP" = "yes"; then
698dcdb6 18077 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18078#define wxUSE_FS_ZIP 1
18079EOF
18080
18081fi
18082
18083if test "$wxUSE_ZIPSTREAM" = "yes"; then
698dcdb6 18084 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18085#define wxUSE_ZIPSTREAM 1
18086EOF
18087
18088fi
18089
eb4efbdc 18090if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
698dcdb6 18091 cat >> confdefs.h <<\EOF
eb4efbdc
VZ
18092#define wxUSE_ON_FATAL_EXCEPTION 1
18093EOF
18094
18095fi
18096
4f3c5f06 18097if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
698dcdb6 18098 cat >> confdefs.h <<\EOF
4f3c5f06
VZ
18099#define wxUSE_SNGLINST_CHECKER 1
18100EOF
18101
18102fi
18103
10f2d63a 18104if test "$wxUSE_BUSYINFO" = "yes"; then
698dcdb6 18105 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18106#define wxUSE_BUSYINFO 1
18107EOF
18108
18109fi
18110
18111if test "$wxUSE_STD_IOSTREAM" = "yes"; then
698dcdb6 18112 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18113#define wxUSE_STD_IOSTREAM 1
18114EOF
18115
18116fi
18117
a3a584a7
VZ
18118if test "$wxUSE_TEXTBUFFER" = "yes"; then
18119 cat >> confdefs.h <<\EOF
18120#define wxUSE_TEXTBUFFER 1
18121EOF
18122
18123fi
18124
10f2d63a 18125if test "$wxUSE_TEXTFILE" = "yes"; then
a3a584a7 18126 if test "$wxUSE_FILE" != "yes" -o "$wxUSE_TEXTBUFFER" != "yes" ; then
156b2523 18127 echo "configure: warning: wxTextFile requires wxFile and wxTextBuffer... disabled" 1>&2
10f2d63a 18128 else
698dcdb6 18129 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18130#define wxUSE_TEXTFILE 1
18131EOF
18132
18133 fi
18134fi
18135
18136if test "$wxUSE_CONFIG" = "yes" ; then
18137 if test "$wxUSE_TEXTFILE" != "yes"; then
156b2523 18138 echo "configure: warning: wxConfig requires wxTextFile... disabled" 1>&2
10f2d63a 18139 else
698dcdb6 18140 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18141#define wxUSE_CONFIG 1
18142EOF
18143
18144 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config"
18145 fi
18146fi
18147
18148if test "$wxUSE_INTL" = "yes" ; then
18149 if test "$wxUSE_FILE" != "yes"; then
156b2523 18150 echo "configure: warning: I18n code requires wxFile... disabled" 1>&2
10f2d63a 18151 else
698dcdb6 18152 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18153#define wxUSE_INTL 1
18154EOF
18155
18156 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat"
f6bcfd97 18157 GUIDIST="$GUIDIST INTL_DIST"
10f2d63a
VZ
18158 fi
18159fi
18160
18161if test "$wxUSE_LOG" = "yes"; then
698dcdb6 18162 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18163#define wxUSE_LOG 1
18164EOF
18165
d73be714
VZ
18166
18167 if test "$wxUSE_LOGGUI" = "yes"; then
18168 cat >> confdefs.h <<\EOF
18169#define wxUSE_LOGGUI 1
18170EOF
18171
18172 fi
18173
18174 if test "$wxUSE_LOGWINDOW" = "yes"; then
18175 cat >> confdefs.h <<\EOF
18176#define wxUSE_LOGWINDOW 1
69d27ff7
MB
18177EOF
18178
18179 fi
18180
18181 if test "$wxUSE_LOGDIALOG" = "yes"; then
18182 cat >> confdefs.h <<\EOF
18183#define wxUSE_LOG_DIALOG 1
d73be714
VZ
18184EOF
18185
18186 fi
10f2d63a
VZ
18187fi
18188
18189if test "$wxUSE_LONGLONG" = "yes"; then
698dcdb6 18190 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18191#define wxUSE_LONGLONG 1
18192EOF
18193
18194fi
18195
e8f65ba6 18196if test "$wxUSE_GEOMETRY" = "yes"; then
698dcdb6 18197 cat >> confdefs.h <<\EOF
e8f65ba6
RR
18198#define wxUSE_GEOMETRY 1
18199EOF
18200
18201fi
18202
10f2d63a 18203if test "$wxUSE_DIALUP_MANAGER" = "yes" ; then
698dcdb6 18204 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18205#define wxUSE_DIALUP_MANAGER 1
18206EOF
18207
70f7a477 18208 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup"
10f2d63a
VZ
18209fi
18210
18211if test "$wxUSE_STREAMS" = "yes" ; then
698dcdb6 18212 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18213#define wxUSE_STREAMS 1
18214EOF
18215
18216fi
18217
1e487827 18218
1e6feb95 18219if test "$wxUSE_DATETIME" = "yes"; then
698dcdb6 18220 for ac_func in strptime
83307f33 18221do
698dcdb6 18222echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
d29b553b 18223echo "configure:18224: checking for $ac_func" >&5
698dcdb6
VZ
18224if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18225 echo $ac_n "(cached) $ac_c" 1>&6
18226else
18227 cat > conftest.$ac_ext <<EOF
d29b553b 18228#line 18229 "configure"
83307f33
VZ
18229#include "confdefs.h"
18230/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 18231 which can conflict with char $ac_func(); below. */
83307f33
VZ
18232#include <assert.h>
18233/* Override any gcc2 internal prototype to avoid an error. */
18234/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
18235 builtin and then its argument prototype would still apply. */
18236char $ac_func();
18237
18238int main() {
83307f33
VZ
18239
18240/* The GNU C library defines this for functions which it implements
18241 to always fail with ENOSYS. Some functions are actually named
18242 something starting with __ and the normal name is an alias. */
18243#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18244choke me
18245#else
698dcdb6 18246$ac_func();
83307f33
VZ
18247#endif
18248
698dcdb6 18249; return 0; }
83307f33 18250EOF
d29b553b 18251if { (eval echo configure:18252: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
18252 rm -rf conftest*
18253 eval "ac_cv_func_$ac_func=yes"
18254else
18255 echo "configure: failed program was:" >&5
18256 cat conftest.$ac_ext >&5
18257 rm -rf conftest*
18258 eval "ac_cv_func_$ac_func=no"
18259fi
18260rm -f conftest*
18261fi
83307f33 18262
698dcdb6
VZ
18263if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18264 echo "$ac_t""yes" 1>&6
18265 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18266 cat >> confdefs.h <<EOF
18267#define $ac_tr_func 1
18268EOF
18269
18270else
18271 echo "$ac_t""no" 1>&6
83307f33
VZ
18272fi
18273done
18274
1e487827 18275
698dcdb6 18276 echo $ac_n "checking for timezone variable in <time.h>""... $ac_c" 1>&6
d29b553b 18277echo "configure:18278: checking for timezone variable in <time.h>" >&5
698dcdb6
VZ
18278if eval "test \"`echo '$''{'wx_cv_var_timezone'+set}'`\" = set"; then
18279 echo $ac_n "(cached) $ac_c" 1>&6
18280else
18281
18282 cat > conftest.$ac_ext <<EOF
d29b553b 18283#line 18284 "configure"
360d6699
VZ
18284#include "confdefs.h"
18285
b4085ce6 18286 #include <time.h>
698dcdb6
VZ
18287
18288int main() {
360d6699
VZ
18289
18290 int tz;
4f11a343 18291 tz = timezone;
698dcdb6
VZ
18292
18293; return 0; }
18294EOF
d29b553b 18295if { (eval echo configure:18296: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6
VZ
18296 rm -rf conftest*
18297
4f11a343 18298 wx_cv_var_timezone=timezone
698dcdb6 18299
360d6699 18300else
698dcdb6
VZ
18301 echo "configure: failed program was:" >&5
18302 cat conftest.$ac_ext >&5
18303 rm -rf conftest*
18304
18305 cat > conftest.$ac_ext <<EOF
d29b553b 18306#line 18307 "configure"
360d6699
VZ
18307#include "confdefs.h"
18308
b4085ce6 18309 #include <time.h>
698dcdb6
VZ
18310
18311int main() {
360d6699
VZ
18312
18313 int tz;
18314 tz = _timezone;
698dcdb6
VZ
18315
18316; return 0; }
18317EOF
d29b553b 18318if { (eval echo configure:18319: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6
VZ
18319 rm -rf conftest*
18320
360d6699 18321 wx_cv_var_timezone=_timezone
698dcdb6 18322
5357c8e8 18323else
698dcdb6
VZ
18324 echo "configure: failed program was:" >&5
18325 cat conftest.$ac_ext >&5
18326 rm -rf conftest*
18327
18328 cat > conftest.$ac_ext <<EOF
d29b553b 18329#line 18330 "configure"
5357c8e8
VZ
18330#include "confdefs.h"
18331
b4085ce6 18332 #include <time.h>
698dcdb6
VZ
18333
18334int main() {
5357c8e8
VZ
18335
18336 int tz;
4f11a343 18337 tz = __timezone;
698dcdb6
VZ
18338
18339; return 0; }
18340EOF
d29b553b 18341if { (eval echo configure:18342: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6
VZ
18342 rm -rf conftest*
18343
4f11a343 18344 wx_cv_var_timezone=__timezone
698dcdb6 18345
360d6699 18346else
698dcdb6
VZ
18347 echo "configure: failed program was:" >&5
18348 cat conftest.$ac_ext >&5
18349 rm -rf conftest*
f9bc1684
VS
18350
18351 if test "$USE_DOS" = 0 ; then
18352 { echo "configure: error: no timezone variable" 1>&2; exit 1; }
18353 fi
18354
698dcdb6 18355
360d6699 18356fi
698dcdb6
VZ
18357rm -f conftest*
18358
18359
360d6699 18360fi
698dcdb6
VZ
18361rm -f conftest*
18362
18363
6232543b 18364fi
698dcdb6
VZ
18365rm -f conftest*
18366
18367
1e487827 18368fi
703e0a69 18369
698dcdb6
VZ
18370echo "$ac_t""$wx_cv_var_timezone" 1>&6
18371
f9bc1684 18372 if test "x$wx_cv_var_timezone" != x ; then
698dcdb6 18373 cat >> confdefs.h <<EOF
360d6699
VZ
18374#define WX_TIMEZONE $wx_cv_var_timezone
18375EOF
18376
f9bc1684 18377 fi
698dcdb6
VZ
18378
18379 for ac_func in localtime
afc31813 18380do
698dcdb6 18381echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
d29b553b 18382echo "configure:18383: checking for $ac_func" >&5
698dcdb6
VZ
18383if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18384 echo $ac_n "(cached) $ac_c" 1>&6
18385else
18386 cat > conftest.$ac_ext <<EOF
d29b553b 18387#line 18388 "configure"
10f2d63a 18388#include "confdefs.h"
afc31813 18389/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 18390 which can conflict with char $ac_func(); below. */
afc31813
VZ
18391#include <assert.h>
18392/* Override any gcc2 internal prototype to avoid an error. */
18393/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
18394 builtin and then its argument prototype would still apply. */
18395char $ac_func();
18396
18397int main() {
afc31813
VZ
18398
18399/* The GNU C library defines this for functions which it implements
18400 to always fail with ENOSYS. Some functions are actually named
18401 something starting with __ and the normal name is an alias. */
18402#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18403choke me
18404#else
698dcdb6 18405$ac_func();
afc31813
VZ
18406#endif
18407
698dcdb6 18408; return 0; }
10f2d63a 18409EOF
d29b553b 18410if { (eval echo configure:18411: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
18411 rm -rf conftest*
18412 eval "ac_cv_func_$ac_func=yes"
18413else
18414 echo "configure: failed program was:" >&5
18415 cat conftest.$ac_ext >&5
18416 rm -rf conftest*
18417 eval "ac_cv_func_$ac_func=no"
18418fi
18419rm -f conftest*
18420fi
afc31813 18421
698dcdb6
VZ
18422if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18423 echo "$ac_t""yes" 1>&6
18424 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18425 cat >> confdefs.h <<EOF
18426#define $ac_tr_func 1
18427EOF
18428
18429else
18430 echo "$ac_t""no" 1>&6
afc31813
VZ
18431fi
18432done
18433
1e487827 18434
698dcdb6
VZ
18435 if test "$ac_cv_func_localtime" = "yes"; then
18436 echo $ac_n "checking for tm_gmtoff in struct tm""... $ac_c" 1>&6
d29b553b 18437echo "configure:18438: checking for tm_gmtoff in struct tm" >&5
698dcdb6
VZ
18438if eval "test \"`echo '$''{'wx_cv_struct_tm_has_gmtoff'+set}'`\" = set"; then
18439 echo $ac_n "(cached) $ac_c" 1>&6
18440else
18441
18442 cat > conftest.$ac_ext <<EOF
d29b553b 18443#line 18444 "configure"
0470b1e6
VZ
18444#include "confdefs.h"
18445
b4085ce6 18446 #include <time.h>
698dcdb6
VZ
18447
18448int main() {
0470b1e6
VZ
18449
18450 struct tm tm;
18451 tm.tm_gmtoff++;
698dcdb6
VZ
18452
18453; return 0; }
18454EOF
d29b553b 18455if { (eval echo configure:18456: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6
VZ
18456 rm -rf conftest*
18457
f03a98d8 18458 wx_cv_struct_tm_has_gmtoff=yes
698dcdb6 18459
0470b1e6 18460else
698dcdb6
VZ
18461 echo "configure: failed program was:" >&5
18462 cat conftest.$ac_ext >&5
18463 rm -rf conftest*
18464 wx_cv_struct_tm_has_gmtoff=no
18465
0470b1e6 18466fi
698dcdb6
VZ
18467rm -f conftest*
18468
1e487827 18469fi
698dcdb6
VZ
18470
18471echo "$ac_t""$wx_cv_struct_tm_has_gmtoff" 1>&6
6232543b
VS
18472 fi
18473
18474 if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then
698dcdb6 18475 cat >> confdefs.h <<\EOF
6232543b
VS
18476#define WX_GMTOFF_IN_TM 1
18477EOF
0470b1e6 18478
3fcdd07b
VZ
18479 fi
18480
698dcdb6 18481 for ac_func in gettimeofday ftime
3fcdd07b 18482do
698dcdb6 18483echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
d29b553b 18484echo "configure:18485: checking for $ac_func" >&5
698dcdb6
VZ
18485if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18486 echo $ac_n "(cached) $ac_c" 1>&6
18487else
18488 cat > conftest.$ac_ext <<EOF
d29b553b 18489#line 18490 "configure"
3fcdd07b
VZ
18490#include "confdefs.h"
18491/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 18492 which can conflict with char $ac_func(); below. */
3fcdd07b
VZ
18493#include <assert.h>
18494/* Override any gcc2 internal prototype to avoid an error. */
18495/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
18496 builtin and then its argument prototype would still apply. */
18497char $ac_func();
18498
18499int main() {
3fcdd07b
VZ
18500
18501/* The GNU C library defines this for functions which it implements
18502 to always fail with ENOSYS. Some functions are actually named
18503 something starting with __ and the normal name is an alias. */
18504#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18505choke me
18506#else
698dcdb6 18507$ac_func();
3fcdd07b
VZ
18508#endif
18509
698dcdb6
VZ
18510; return 0; }
18511EOF
d29b553b 18512if { (eval echo configure:18513: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
18513 rm -rf conftest*
18514 eval "ac_cv_func_$ac_func=yes"
18515else
18516 echo "configure: failed program was:" >&5
18517 cat conftest.$ac_ext >&5
18518 rm -rf conftest*
18519 eval "ac_cv_func_$ac_func=no"
18520fi
18521rm -f conftest*
18522fi
18523
18524if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18525 echo "$ac_t""yes" 1>&6
18526 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18527 cat >> confdefs.h <<EOF
18528#define $ac_tr_func 1
3fcdd07b
VZ
18529EOF
18530 break
698dcdb6
VZ
18531else
18532 echo "$ac_t""no" 1>&6
3fcdd07b
VZ
18533fi
18534done
18535
afc31813 18536
698dcdb6
VZ
18537 if test "$ac_cv_func_gettimeofday" = "yes"; then
18538 echo $ac_n "checking whether gettimeofday takes two arguments""... $ac_c" 1>&6
d29b553b 18539echo "configure:18540: checking whether gettimeofday takes two arguments" >&5
698dcdb6
VZ
18540if eval "test \"`echo '$''{'wx_cv_func_gettimeofday_has_2_args'+set}'`\" = set"; then
18541 echo $ac_n "(cached) $ac_c" 1>&6
18542else
18543
18544
18545 ac_ext=C
18546# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1e487827 18547ac_cpp='$CXXCPP $CPPFLAGS'
698dcdb6
VZ
18548ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18549ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18550cross_compiling=$ac_cv_prog_cxx_cross
703e0a69 18551
698dcdb6
VZ
18552
18553 cat > conftest.$ac_ext <<EOF
d29b553b 18554#line 18555 "configure"
10f2d63a 18555#include "confdefs.h"
afc31813
VZ
18556
18557 #include <sys/time.h>
18558 #include <unistd.h>
698dcdb6
VZ
18559
18560int main() {
afc31813
VZ
18561
18562 struct timeval tv;
776862b4 18563 gettimeofday(&tv, NULL);
698dcdb6
VZ
18564
18565; return 0; }
18566EOF
d29b553b 18567if { (eval echo configure:18568: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6 18568 rm -rf conftest*
afc31813 18569 wx_cv_func_gettimeofday_has_2_args=yes
10f2d63a 18570else
698dcdb6
VZ
18571 echo "configure: failed program was:" >&5
18572 cat conftest.$ac_ext >&5
18573 rm -rf conftest*
18574 cat > conftest.$ac_ext <<EOF
d29b553b 18575#line 18576 "configure"
10f2d63a 18576#include "confdefs.h"
afc31813
VZ
18577
18578 #include <sys/time.h>
18579 #include <unistd.h>
698dcdb6
VZ
18580
18581int main() {
afc31813
VZ
18582
18583 struct timeval tv;
18584 gettimeofday(&tv);
698dcdb6
VZ
18585
18586; return 0; }
18587EOF
d29b553b 18588if { (eval echo configure:18589: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6 18589 rm -rf conftest*
afc31813 18590 wx_cv_func_gettimeofday_has_2_args=no
10f2d63a 18591else
698dcdb6
VZ
18592 echo "configure: failed program was:" >&5
18593 cat conftest.$ac_ext >&5
18594 rm -rf conftest*
776862b4
VZ
18595
18596 echo "configure: warning: failed to determine number of gettimeofday() arguments" 1>&2
18597 wx_cv_func_gettimeofday_has_2_args=unknown
18598
698dcdb6 18599
10f2d63a 18600fi
698dcdb6
VZ
18601rm -f conftest*
18602
10f2d63a 18603fi
698dcdb6 18604rm -f conftest*
afc31813 18605 ac_ext=c
698dcdb6 18606# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10f2d63a 18607ac_cpp='$CPP $CPPFLAGS'
698dcdb6
VZ
18608ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18609ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18610cross_compiling=$ac_cv_prog_cc_cross
10f2d63a 18611
698dcdb6 18612
afc31813 18613fi
698dcdb6
VZ
18614
18615echo "$ac_t""$wx_cv_func_gettimeofday_has_2_args" 1>&6
c63c7106 18616
afc31813 18617 if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then
698dcdb6 18618 cat >> confdefs.h <<\EOF
afc31813
VZ
18619#define WX_GETTIMEOFDAY_NO_TZ 1
18620EOF
18621
18622 fi
18623 fi
18624
698dcdb6 18625 cat >> confdefs.h <<\EOF
afc31813
VZ
18626#define wxUSE_TIMEDATE 1
18627EOF
18628
18629 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest"
18630fi
18631
698dcdb6 18632
0feee163
VZ
18633if test "$wxUSE_SOCKETS" = "yes"; then
18634 if test "$TOOLKIT" = "X11"; then
18635 echo "configure: warning: wxSocket not yet supported under X11... disabled" 1>&2
18636 wxUSE_SOCKETS="no"
18637 fi
18638fi
b089607b 18639
0feee163
VZ
18640if test "$wxUSE_SOCKETS" = "yes"; then
18641 if test "$TOOLKIT" != "MSW"; then
3a922bb4 18642 echo $ac_n "checking for socket""... $ac_c" 1>&6
d29b553b 18643echo "configure:18644: checking for socket" >&5
698dcdb6
VZ
18644if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then
18645 echo $ac_n "(cached) $ac_c" 1>&6
c63c7106 18646else
698dcdb6 18647 cat > conftest.$ac_ext <<EOF
d29b553b 18648#line 18649 "configure"
c63c7106
VZ
18649#include "confdefs.h"
18650/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 18651 which can conflict with char socket(); below. */
c63c7106
VZ
18652#include <assert.h>
18653/* Override any gcc2 internal prototype to avoid an error. */
18654/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
18655 builtin and then its argument prototype would still apply. */
18656char socket();
18657
18658int main() {
c63c7106
VZ
18659
18660/* The GNU C library defines this for functions which it implements
18661 to always fail with ENOSYS. Some functions are actually named
18662 something starting with __ and the normal name is an alias. */
18663#if defined (__stub_socket) || defined (__stub___socket)
18664choke me
18665#else
698dcdb6 18666socket();
c63c7106
VZ
18667#endif
18668
698dcdb6
VZ
18669; return 0; }
18670EOF
d29b553b 18671if { (eval echo configure:18672: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
18672 rm -rf conftest*
18673 eval "ac_cv_func_socket=yes"
18674else
18675 echo "configure: failed program was:" >&5
18676 cat conftest.$ac_ext >&5
18677 rm -rf conftest*
18678 eval "ac_cv_func_socket=no"
18679fi
18680rm -f conftest*
18681fi
18682
18683if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
18684 echo "$ac_t""yes" 1>&6
c63c7106
VZ
18685 :
18686else
698dcdb6
VZ
18687 echo "$ac_t""no" 1>&6
18688echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
d29b553b 18689echo "configure:18690: checking for socket in -lsocket" >&5
698dcdb6
VZ
18690ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'`
18691if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
18692 echo $ac_n "(cached) $ac_c" 1>&6
c63c7106 18693else
698dcdb6 18694 ac_save_LIBS="$LIBS"
c63c7106 18695LIBS="-lsocket $LIBS"
698dcdb6 18696cat > conftest.$ac_ext <<EOF
d29b553b 18697#line 18698 "configure"
c63c7106
VZ
18698#include "confdefs.h"
18699/* Override any gcc2 internal prototype to avoid an error. */
18700/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
18701 builtin and then its argument prototype would still apply. */
18702char socket();
18703
18704int main() {
18705socket()
18706; return 0; }
18707EOF
d29b553b 18708if { (eval echo configure:18709: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
18709 rm -rf conftest*
18710 eval "ac_cv_lib_$ac_lib_var=yes"
18711else
18712 echo "configure: failed program was:" >&5
18713 cat conftest.$ac_ext >&5
18714 rm -rf conftest*
18715 eval "ac_cv_lib_$ac_lib_var=no"
18716fi
18717rm -f conftest*
18718LIBS="$ac_save_LIBS"
18719
18720fi
18721if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
18722 echo "$ac_t""yes" 1>&6
d558c907
VS
18723 if test "$INET_LINK" != " -lsocket"; then
18724 INET_LINK="$INET_LINK -lsocket"
18725 fi
c63c7106 18726else
698dcdb6 18727 echo "$ac_t""no" 1>&6
afc31813 18728
3a922bb4
RL
18729 echo "configure: warning: socket library not found - sockets will be disabled" 1>&2
18730 wxUSE_SOCKETS=no
18731
698dcdb6 18732
6232543b 18733fi
b089607b 18734
3a922bb4 18735
1e487827 18736fi
afc31813 18737
3a922bb4 18738 fi
0feee163 18739fi
51a9faba 18740
0feee163
VZ
18741if test "$wxUSE_SOCKETS" = "yes" ; then
18742 if test "$TOOLKIT" != "MSW"; then
3a922bb4 18743 echo $ac_n "checking what is the type of the third argument of getsockname""... $ac_c" 1>&6
d29b553b 18744echo "configure:18745: checking what is the type of the third argument of getsockname" >&5
698dcdb6
VZ
18745if eval "test \"`echo '$''{'wx_cv_type_getsockname3'+set}'`\" = set"; then
18746 echo $ac_n "(cached) $ac_c" 1>&6
18747else
18748
3a922bb4
RL
18749
18750 ac_ext=C
698dcdb6 18751# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1e487827 18752ac_cpp='$CXXCPP $CPPFLAGS'
698dcdb6
VZ
18753ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18754ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18755cross_compiling=$ac_cv_prog_cxx_cross
703e0a69 18756
698dcdb6 18757
3a922bb4 18758 cat > conftest.$ac_ext <<EOF
d29b553b 18759#line 18760 "configure"
afc31813 18760#include "confdefs.h"
51a9faba 18761
3a922bb4
RL
18762 #include <sys/types.h>
18763 #include <sys/socket.h>
18764
698dcdb6 18765int main() {
51a9faba 18766
3a922bb4
RL
18767 socklen_t len;
18768 getsockname(0, 0, &len);
18769
698dcdb6
VZ
18770; return 0; }
18771EOF
d29b553b 18772if { (eval echo configure:18773: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6 18773 rm -rf conftest*
51a9faba 18774 wx_cv_type_getsockname3=socklen_t
afc31813 18775else
698dcdb6
VZ
18776 echo "configure: failed program was:" >&5
18777 cat conftest.$ac_ext >&5
18778 rm -rf conftest*
18779 cat > conftest.$ac_ext <<EOF
d29b553b 18780#line 18781 "configure"
afc31813 18781#include "confdefs.h"
51a9faba 18782
3a922bb4
RL
18783 #include <sys/types.h>
18784 #include <sys/socket.h>
18785
698dcdb6 18786int main() {
51a9faba 18787
3a922bb4
RL
18788 size_t len;
18789 getsockname(0, 0, &len);
18790
698dcdb6
VZ
18791; return 0; }
18792EOF
d29b553b 18793if { (eval echo configure:18794: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6 18794 rm -rf conftest*
51a9faba 18795 wx_cv_type_getsockname3=size_t
afc31813 18796else
698dcdb6
VZ
18797 echo "configure: failed program was:" >&5
18798 cat conftest.$ac_ext >&5
18799 rm -rf conftest*
18800 cat > conftest.$ac_ext <<EOF
d29b553b 18801#line 18802 "configure"
afc31813 18802#include "confdefs.h"
51a9faba 18803
3a922bb4
RL
18804 #include <sys/types.h>
18805 #include <sys/socket.h>
18806
698dcdb6 18807int main() {
51a9faba 18808
3a922bb4
RL
18809 int len;
18810 getsockname(0, 0, &len);
18811
698dcdb6
VZ
18812; return 0; }
18813EOF
d29b553b 18814if { (eval echo configure:18815: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6 18815 rm -rf conftest*
51a9faba 18816 wx_cv_type_getsockname3=int
afc31813 18817else
698dcdb6
VZ
18818 echo "configure: failed program was:" >&5
18819 cat conftest.$ac_ext >&5
18820 rm -rf conftest*
18821 wx_cv_type_getsockname3=unknown
3a922bb4 18822
afc31813 18823fi
698dcdb6 18824rm -f conftest*
3a922bb4 18825
afc31813 18826fi
698dcdb6 18827rm -f conftest*
3a922bb4 18828
afc31813 18829fi
698dcdb6 18830rm -f conftest*
51a9faba 18831
3a922bb4 18832 ac_ext=c
698dcdb6 18833# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
afc31813 18834ac_cpp='$CPP $CPPFLAGS'
698dcdb6
VZ
18835ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18836ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18837cross_compiling=$ac_cv_prog_cc_cross
afc31813 18838
3a922bb4 18839
51a9faba 18840fi
698dcdb6
VZ
18841
18842echo "$ac_t""$wx_cv_type_getsockname3" 1>&6
51a9faba 18843
3a922bb4
RL
18844 if test "$wx_cv_type_getsockname3" = "unknown"; then
18845 wxUSE_SOCKETS=no
18846 echo "configure: warning: Couldn't find socklen_t synonym for this system" 1>&2
18847 else
18848 cat >> confdefs.h <<EOF
51a9faba
VZ
18849#define SOCKLEN_T $wx_cv_type_getsockname3
18850EOF
18851
3a922bb4 18852 fi
51a9faba
VZ
18853 fi
18854fi
afc31813 18855
51a9faba 18856if test "$wxUSE_SOCKETS" = "yes" ; then
698dcdb6 18857 cat >> confdefs.h <<\EOF
afc31813
VZ
18858#define wxUSE_SOCKETS 1
18859EOF
18860
70f7a477 18861 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets"
afc31813
VZ
18862fi
18863
698dcdb6 18864
dc3d889d
VZ
18865if test "$wxUSE_GUI" = "yes"; then
18866
156b2523
GD
18867 if test "$TOOLKIT" = "MAC"; then
18868 echo "configure: warning: Joystick not yet supported under Mac OS X... disabled" 1>&2
18869 wxUSE_JOYSTICK=no
18870 fi
18871 if test "$TOOLKIT" = "MOTIF"; then
18872 echo "configure: warning: Joystick not yet supported under Motif... disabled" 1>&2
18873 wxUSE_JOYSTICK=no
f79bd02d
JS
18874 fi
18875 if test "$TOOLKIT" = "X11"; then
18876 echo "configure: warning: Joystick not yet supported under X11... disabled" 1>&2
18877 wxUSE_JOYSTICK=no
156b2523
GD
18878 fi
18879
3a922bb4
RL
18880 if test "$TOOLKIT" != "MSW"; then
18881 if test "$wxUSE_JOYSTICK" = "yes"; then
18882 for ac_hdr in linux/joystick.h
10f2d63a 18883do
698dcdb6
VZ
18884ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
18885echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
d29b553b 18886echo "configure:18887: checking for $ac_hdr" >&5
698dcdb6
VZ
18887if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
18888 echo $ac_n "(cached) $ac_c" 1>&6
18889else
18890 cat > conftest.$ac_ext <<EOF
d29b553b 18891#line 18892 "configure"
10f2d63a 18892#include "confdefs.h"
698dcdb6
VZ
18893#include <$ac_hdr>
18894EOF
18895ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
d29b553b 18896{ (eval echo configure:18897: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
18897ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
18898if test -z "$ac_err"; then
18899 rm -rf conftest*
18900 eval "ac_cv_header_$ac_safe=yes"
10f2d63a 18901else
698dcdb6
VZ
18902 echo "$ac_err" >&5
18903 echo "configure: failed program was:" >&5
10f2d63a 18904 cat conftest.$ac_ext >&5
698dcdb6
VZ
18905 rm -rf conftest*
18906 eval "ac_cv_header_$ac_safe=no"
10f2d63a 18907fi
698dcdb6 18908rm -f conftest*
10f2d63a 18909fi
698dcdb6
VZ
18910if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
18911 echo "$ac_t""yes" 1>&6
18912 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
18913 cat >> confdefs.h <<EOF
18914#define $ac_tr_hdr 1
10f2d63a 18915EOF
698dcdb6
VZ
18916
18917else
18918 echo "$ac_t""no" 1>&6
10f2d63a
VZ
18919fi
18920done
18921
3a922bb4
RL
18922 if test "$ac_cv_header_linux_joystick_h" != "yes"; then
18923 wxUSE_JOYSTICK=no
156b2523 18924 echo "configure: warning: Joystick not supported by this system... disabled" 1>&2
3a922bb4
RL
18925 fi
18926 fi
18927 fi
b089607b 18928
3a922bb4
RL
18929 if test "$wxUSE_JOYSTICK" = "yes"; then
18930 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18931#define wxUSE_JOYSTICK 1
18932EOF
18933
3a922bb4
RL
18934 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest"
18935 fi
dc3d889d
VZ
18936fi
18937
698dcdb6 18938
b089607b
VZ
18939if test "$TOOLKIT" != "MSW"; then
18940
3a922bb4
RL
18941 HAVE_DL_FUNCS=0
18942 HAVE_SHL_FUNCS=0
0b9ab0bd 18943 if test "$wxUSE_DYNAMIC_LOADER" = "yes" -o "$wxUSE_DYNLIB_CLASS" = "yes" ; then
3a922bb4
RL
18944 if test "$USE_DARWIN" = 1; then
18945 HAVE_DL_FUNCS=1
18946 else
18947 for ac_func in dlopen
10f2d63a 18948do
698dcdb6 18949echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
d29b553b 18950echo "configure:18951: checking for $ac_func" >&5
698dcdb6
VZ
18951if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18952 echo $ac_n "(cached) $ac_c" 1>&6
18953else
18954 cat > conftest.$ac_ext <<EOF
d29b553b 18955#line 18956 "configure"
10f2d63a
VZ
18956#include "confdefs.h"
18957/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 18958 which can conflict with char $ac_func(); below. */
10f2d63a
VZ
18959#include <assert.h>
18960/* Override any gcc2 internal prototype to avoid an error. */
18961/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
18962 builtin and then its argument prototype would still apply. */
18963char $ac_func();
18964
18965int main() {
10f2d63a
VZ
18966
18967/* The GNU C library defines this for functions which it implements
18968 to always fail with ENOSYS. Some functions are actually named
18969 something starting with __ and the normal name is an alias. */
18970#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18971choke me
18972#else
698dcdb6 18973$ac_func();
10f2d63a
VZ
18974#endif
18975
698dcdb6
VZ
18976; return 0; }
18977EOF
d29b553b 18978if { (eval echo configure:18979: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
18979 rm -rf conftest*
18980 eval "ac_cv_func_$ac_func=yes"
18981else
18982 echo "configure: failed program was:" >&5
18983 cat conftest.$ac_ext >&5
18984 rm -rf conftest*
18985 eval "ac_cv_func_$ac_func=no"
18986fi
18987rm -f conftest*
18988fi
18989
18990if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18991 echo "$ac_t""yes" 1>&6
18992 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18993 cat >> confdefs.h <<EOF
18994#define $ac_tr_func 1
18995EOF
18996
3a922bb4 18997 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18998#define HAVE_DLOPEN 1
18999EOF
19000
3a922bb4
RL
19001 HAVE_DL_FUNCS=1
19002
10f2d63a 19003else
698dcdb6
VZ
19004 echo "$ac_t""no" 1>&6
19005echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
d29b553b 19006echo "configure:19007: checking for dlopen in -ldl" >&5
698dcdb6
VZ
19007ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
19008if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
19009 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 19010else
698dcdb6 19011 ac_save_LIBS="$LIBS"
10f2d63a 19012LIBS="-ldl $LIBS"
698dcdb6 19013cat > conftest.$ac_ext <<EOF
d29b553b 19014#line 19015 "configure"
10f2d63a
VZ
19015#include "confdefs.h"
19016/* Override any gcc2 internal prototype to avoid an error. */
19017/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
19018 builtin and then its argument prototype would still apply. */
19019char dlopen();
19020
19021int main() {
19022dlopen()
19023; return 0; }
19024EOF
d29b553b 19025if { (eval echo configure:19026: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
19026 rm -rf conftest*
19027 eval "ac_cv_lib_$ac_lib_var=yes"
19028else
19029 echo "configure: failed program was:" >&5
19030 cat conftest.$ac_ext >&5
19031 rm -rf conftest*
19032 eval "ac_cv_lib_$ac_lib_var=no"
19033fi
19034rm -f conftest*
19035LIBS="$ac_save_LIBS"
19036
19037fi
19038if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
19039 echo "$ac_t""yes" 1>&6
19040
3a922bb4 19041 cat >> confdefs.h <<\EOF
10f2d63a
VZ
19042#define HAVE_DLOPEN 1
19043EOF
19044
3a922bb4 19045 HAVE_DL_FUNCS=1
3d63bc3a 19046 DL_LINK=" -ldl$DL_LINK"
3a922bb4 19047
10f2d63a 19048else
698dcdb6 19049 echo "$ac_t""no" 1>&6
10f2d63a 19050
3a922bb4 19051 for ac_func in shl_load
10f2d63a 19052do
698dcdb6 19053echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
d29b553b 19054echo "configure:19055: checking for $ac_func" >&5
698dcdb6
VZ
19055if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19056 echo $ac_n "(cached) $ac_c" 1>&6
19057else
19058 cat > conftest.$ac_ext <<EOF
d29b553b 19059#line 19060 "configure"
10f2d63a
VZ
19060#include "confdefs.h"
19061/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 19062 which can conflict with char $ac_func(); below. */
10f2d63a
VZ
19063#include <assert.h>
19064/* Override any gcc2 internal prototype to avoid an error. */
19065/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
19066 builtin and then its argument prototype would still apply. */
19067char $ac_func();
19068
19069int main() {
10f2d63a
VZ
19070
19071/* The GNU C library defines this for functions which it implements
19072 to always fail with ENOSYS. Some functions are actually named
19073 something starting with __ and the normal name is an alias. */
19074#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19075choke me
19076#else
698dcdb6 19077$ac_func();
10f2d63a
VZ
19078#endif
19079
698dcdb6
VZ
19080; return 0; }
19081EOF
d29b553b 19082if { (eval echo configure:19083: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
19083 rm -rf conftest*
19084 eval "ac_cv_func_$ac_func=yes"
19085else
19086 echo "configure: failed program was:" >&5
19087 cat conftest.$ac_ext >&5
19088 rm -rf conftest*
19089 eval "ac_cv_func_$ac_func=no"
19090fi
19091rm -f conftest*
19092fi
19093
19094if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19095 echo "$ac_t""yes" 1>&6
19096 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19097 cat >> confdefs.h <<EOF
19098#define $ac_tr_func 1
19099EOF
19100
3a922bb4 19101 cat >> confdefs.h <<\EOF
10f2d63a
VZ
19102#define HAVE_SHL_LOAD 1
19103EOF
19104
3a922bb4
RL
19105 HAVE_SHL_FUNCS=1
19106
10f2d63a 19107else
698dcdb6
VZ
19108 echo "$ac_t""no" 1>&6
19109echo $ac_n "checking for dld in -lshl_load""... $ac_c" 1>&6
d29b553b 19110echo "configure:19111: checking for dld in -lshl_load" >&5
698dcdb6
VZ
19111ac_lib_var=`echo shl_load'_'dld | sed 'y%./+-%__p_%'`
19112if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
19113 echo $ac_n "(cached) $ac_c" 1>&6
f6bcfd97 19114else
698dcdb6 19115 ac_save_LIBS="$LIBS"
f6bcfd97 19116LIBS="-lshl_load $LIBS"
698dcdb6 19117cat > conftest.$ac_ext <<EOF
d29b553b 19118#line 19119 "configure"
f6bcfd97
BP
19119#include "confdefs.h"
19120/* Override any gcc2 internal prototype to avoid an error. */
19121/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
19122 builtin and then its argument prototype would still apply. */
19123char dld();
19124
19125int main() {
19126dld()
19127; return 0; }
19128EOF
d29b553b 19129if { (eval echo configure:19130: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
19130 rm -rf conftest*
19131 eval "ac_cv_lib_$ac_lib_var=yes"
19132else
19133 echo "configure: failed program was:" >&5
19134 cat conftest.$ac_ext >&5
19135 rm -rf conftest*
19136 eval "ac_cv_lib_$ac_lib_var=no"
19137fi
19138rm -f conftest*
19139LIBS="$ac_save_LIBS"
f6bcfd97 19140
698dcdb6
VZ
19141fi
19142if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
19143 echo "$ac_t""yes" 1>&6
19144
3a922bb4 19145 HAVE_SHL_FUNCS=1
3d63bc3a 19146 DL_LINK=" -ldld$DL_LINK"
3a922bb4 19147
698dcdb6
VZ
19148else
19149 echo "$ac_t""no" 1>&6
f6bcfd97
BP
19150fi
19151
3a922bb4 19152
10f2d63a
VZ
19153fi
19154done
19155
3a922bb4 19156
10f2d63a
VZ
19157fi
19158
3a922bb4 19159
10f2d63a
VZ
19160fi
19161done
19162
1e487827 19163
3a922bb4
RL
19164 if test "$HAVE_DL_FUNCS" = 1; then
19165 for ac_func in dlerror
f6bcfd97 19166do
698dcdb6 19167echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
d29b553b 19168echo "configure:19169: checking for $ac_func" >&5
698dcdb6
VZ
19169if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19170 echo $ac_n "(cached) $ac_c" 1>&6
19171else
19172 cat > conftest.$ac_ext <<EOF
d29b553b 19173#line 19174 "configure"
f6bcfd97
BP
19174#include "confdefs.h"
19175/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 19176 which can conflict with char $ac_func(); below. */
f6bcfd97
BP
19177#include <assert.h>
19178/* Override any gcc2 internal prototype to avoid an error. */
19179/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
19180 builtin and then its argument prototype would still apply. */
19181char $ac_func();
19182
19183int main() {
f6bcfd97
BP
19184
19185/* The GNU C library defines this for functions which it implements
19186 to always fail with ENOSYS. Some functions are actually named
19187 something starting with __ and the normal name is an alias. */
19188#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19189choke me
19190#else
698dcdb6 19191$ac_func();
f6bcfd97
BP
19192#endif
19193
698dcdb6
VZ
19194; return 0; }
19195EOF
d29b553b 19196if { (eval echo configure:19197: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
19197 rm -rf conftest*
19198 eval "ac_cv_func_$ac_func=yes"
19199else
19200 echo "configure: failed program was:" >&5
19201 cat conftest.$ac_ext >&5
19202 rm -rf conftest*
19203 eval "ac_cv_func_$ac_func=no"
19204fi
19205rm -f conftest*
19206fi
19207
19208if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19209 echo "$ac_t""yes" 1>&6
19210 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19211 cat >> confdefs.h <<EOF
19212#define $ac_tr_func 1
19213EOF
19214 cat >> confdefs.h <<\EOF
f6bcfd97
BP
19215#define HAVE_DLERROR 1
19216EOF
19217
19218else
698dcdb6
VZ
19219 echo "$ac_t""no" 1>&6
19220echo $ac_n "checking for dlerror in -ldl""... $ac_c" 1>&6
d29b553b 19221echo "configure:19222: checking for dlerror in -ldl" >&5
698dcdb6
VZ
19222ac_lib_var=`echo dl'_'dlerror | sed 'y%./+-%__p_%'`
19223if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
19224 echo $ac_n "(cached) $ac_c" 1>&6
f6bcfd97 19225else
698dcdb6 19226 ac_save_LIBS="$LIBS"
f6bcfd97 19227LIBS="-ldl $LIBS"
698dcdb6 19228cat > conftest.$ac_ext <<EOF
d29b553b 19229#line 19230 "configure"
f6bcfd97
BP
19230#include "confdefs.h"
19231/* Override any gcc2 internal prototype to avoid an error. */
19232/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
19233 builtin and then its argument prototype would still apply. */
19234char dlerror();
19235
19236int main() {
19237dlerror()
19238; return 0; }
19239EOF
d29b553b 19240if { (eval echo configure:19241: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
19241 rm -rf conftest*
19242 eval "ac_cv_lib_$ac_lib_var=yes"
19243else
19244 echo "configure: failed program was:" >&5
19245 cat conftest.$ac_ext >&5
19246 rm -rf conftest*
19247 eval "ac_cv_lib_$ac_lib_var=no"
19248fi
19249rm -f conftest*
19250LIBS="$ac_save_LIBS"
19251
19252fi
19253if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
19254 echo "$ac_t""yes" 1>&6
19255 cat >> confdefs.h <<\EOF
f6bcfd97
BP
19256#define HAVE_DLERROR 1
19257EOF
19258
698dcdb6
VZ
19259else
19260 echo "$ac_t""no" 1>&6
f6bcfd97
BP
19261fi
19262
19263fi
19264done
19265
3a922bb4
RL
19266 fi
19267 fi
f6bcfd97 19268
3a922bb4
RL
19269 if test "$HAVE_DL_FUNCS" = 0; then
19270 if test "$HAVE_SHL_FUNCS" = 0; then
19271 if test "$USE_UNIX" = 1; then
19272 echo "configure: warning: Missing dynamic loading support, several features will be disabled" 1>&2
0b9ab0bd 19273 wxUSE_DYNAMIC_LOADER=no
3a922bb4
RL
19274 wxUSE_DYNLIB_CLASS=no
19275 else
19276 echo "configure: warning: Assuming wxLibrary class works on this platform" 1>&2
19277 fi
19278 fi
10f2d63a
VZ
19279 fi
19280 fi
19281fi
19282
0b9ab0bd
RL
19283if test "$wxUSE_DYNAMIC_LOADER" = "yes" ; then
19284 cat >> confdefs.h <<\EOF
19285#define wxUSE_DYNAMIC_LOADER 1
19286EOF
19287
19288elif test "$wxUSE_DYNLIB_CLASS" = "yes" ; then
698dcdb6 19289 cat >> confdefs.h <<\EOF
10f2d63a
VZ
19290#define wxUSE_DYNLIB_CLASS 1
19291EOF
19292
19293fi
19294
698dcdb6 19295
1e6feb95
VZ
19296if test "$wxUSE_FONTMAP" = "yes" ; then
19297 cat >> confdefs.h <<\EOF
19298#define wxUSE_FONTMAP 1
19299EOF
19300
19301fi
19302
10f2d63a 19303if test "$wxUSE_UNICODE" = "yes" ; then
698dcdb6 19304 cat >> confdefs.h <<\EOF
10f2d63a
VZ
19305#define wxUSE_UNICODE 1
19306EOF
19307
bbc3925a
VS
19308
19309 if test "$wxUSE_MSW" != 1; then
19310 wxUSE_UNICODE_MSLU=no
19311 fi
a72a4bfa
VS
19312
19313 if test "$wxUSE_MSW" = 1 -a "$wxUSE_UNICODE_MSLU" = "yes"; then
19314 echo $ac_n "checking for main in -lunicows""... $ac_c" 1>&6
d29b553b 19315echo "configure:19316: checking for main in -lunicows" >&5
a72a4bfa
VS
19316ac_lib_var=`echo unicows'_'main | sed 'y%./+-%__p_%'`
19317if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
19318 echo $ac_n "(cached) $ac_c" 1>&6
19319else
19320 ac_save_LIBS="$LIBS"
19321LIBS="-lunicows $LIBS"
19322cat > conftest.$ac_ext <<EOF
d29b553b 19323#line 19324 "configure"
a72a4bfa
VS
19324#include "confdefs.h"
19325
19326int main() {
19327main()
19328; return 0; }
19329EOF
d29b553b 19330if { (eval echo configure:19331: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a72a4bfa
VS
19331 rm -rf conftest*
19332 eval "ac_cv_lib_$ac_lib_var=yes"
19333else
19334 echo "configure: failed program was:" >&5
19335 cat conftest.$ac_ext >&5
19336 rm -rf conftest*
19337 eval "ac_cv_lib_$ac_lib_var=no"
19338fi
19339rm -f conftest*
19340LIBS="$ac_save_LIBS"
19341
19342fi
19343if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
19344 echo "$ac_t""yes" 1>&6
19345
19346 cat >> confdefs.h <<\EOF
19347#define wxUSE_UNICODE_MSLU 1
19348EOF
19349
19350
19351else
19352 echo "$ac_t""no" 1>&6
19353
19354 echo "configure: warning: Compiler doesn't support MSLU (libunicows.a), disabled.
19355 Applications will only run on Windows NT/2000/XP!" 1>&2
19356 wxUSE_UNICODE_MSLU=no
19357
19358fi
19359
19360 fi
10f2d63a
VZ
19361fi
19362
10f2d63a 19363if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then
698dcdb6 19364 cat >> confdefs.h <<\EOF
10f2d63a
VZ
19365#define wxUSE_EXPERIMENTAL_PRINTF 1
19366EOF
19367
19368fi
19369
698dcdb6 19370
698dcdb6 19371
10f2d63a
VZ
19372IODBC_C_SRC=""
19373if test "$wxUSE_ODBC" = "yes" ; then
698dcdb6 19374 cat >> confdefs.h <<\EOF
10f2d63a
VZ
19375#define wxUSE_ODBC 1
19376EOF
19377
19378 WXODBCFLAG="-D_IODBC_"
19379 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db"
10f2d63a
VZ
19380fi
19381
698dcdb6 19382
10f2d63a 19383if test "$wxUSE_POSTSCRIPT" = "yes" ; then
698dcdb6 19384 cat >> confdefs.h <<\EOF
10f2d63a
VZ
19385#define wxUSE_POSTSCRIPT 1
19386EOF
19387
19388fi
19389
698dcdb6 19390cat >> confdefs.h <<\EOF
10f2d63a
VZ
19391#define wxUSE_AFM_FOR_POSTSCRIPT 1
19392EOF
19393
698dcdb6
VZ
19394
19395cat >> confdefs.h <<\EOF
10f2d63a
VZ
19396#define wxUSE_NORMALIZED_PS_FONTS 1
19397EOF
19398
698dcdb6
VZ
19399
19400
10f2d63a 19401if test "$wxUSE_CONSTRAINTS" = "yes"; then
698dcdb6 19402 cat >> confdefs.h <<\EOF
10f2d63a
VZ
19403#define wxUSE_CONSTRAINTS 1
19404EOF
19405
19406 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout"
19407fi
19408
19409if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
fc26f4ab 19410 if test "$wxUSE_UNIVERSAL" = "yes"; then
0feee163 19411 echo "configure: warning: MDI not yet supported for wxUniversal... disabled" 1>&2
fc26f4ab
RL
19412 wxUSE_MDI_ARCHITECTURE=no
19413 fi
19414
19415 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
19416 cat >> confdefs.h <<\EOF
10f2d63a
VZ
19417#define wxUSE_MDI_ARCHITECTURE 1
19418EOF
19419
fc26f4ab
RL
19420 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi"
19421 fi
10f2d63a
VZ
19422fi
19423
19424if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then
698dcdb6 19425 cat >> confdefs.h <<\EOF
10f2d63a
VZ
19426#define wxUSE_DOC_VIEW_ARCHITECTURE 1
19427EOF
19428
19429 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview"
19430 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
19431 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi"
19432 fi
19433fi
19434
19435if test "$wxUSE_HELP" = "yes"; then
698dcdb6 19436 cat >> confdefs.h <<\EOF
10f2d63a
VZ
19437#define wxUSE_HELP 1
19438EOF
19439
19440 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help"
3379ed37 19441
77e13408 19442 if test "$wxUSE_MSW" = 1; then
031d8228 19443 if test "$wxUSE_MS_HTML_HELP" = "yes"; then
3b7bc64a 19444 cat >> confdefs.h <<\EOF
29fd3c0c
VS
19445#define wxUSE_MS_HTML_HELP 1
19446EOF
19447
3e44f09d 19448 fi
3379ed37 19449 fi
031d8228
VS
19450
19451 if test "$wxUSE_WXHTML_HELP" = "yes"; then
19452 if test "$wxUSE_HTML" = "yes"; then
19453 cat >> confdefs.h <<\EOF
19454#define wxUSE_WXHTML_HELP 1
19455EOF
19456
19457 else
19458 echo "configure: warning: Cannot use wxHTML-based help without wxHTML so it won't be compiled" 1>&2
19459 wxUSE_WXHTML_HELP=no
19460 fi
19461 fi
10f2d63a
VZ
19462fi
19463
19464if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
19465 if test "$wxUSE_CONSTRAINTS" != "yes"; then
698dcdb6 19466 echo "configure: warning: Printing support cannot be used without constraints so it won't be compiled without it" 1>&2
10f2d63a 19467 else
698dcdb6 19468 cat >> confdefs.h <<\EOF
10f2d63a
VZ
19469#define wxUSE_PRINTING_ARCHITECTURE 1
19470EOF
19471
19472 fi
19473 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing"
19474fi
19475
19476if test "$wxUSE_PROLOGIO" = "yes" ; then
698dcdb6 19477 cat >> confdefs.h <<\EOF
10f2d63a
VZ
19478#define wxUSE_PROLOGIO 1
19479EOF
19480
19481fi
19482
19483if test "$wxUSE_RESOURCES" = "yes" ; then
e334d0ea
JS
19484 if test "$wxUSE_NANOX" = "yes"; then
19485 echo "configure: warning: Cannot use resource database functions in NanoX" 1>&2
19486 else
19487 cat >> confdefs.h <<\EOF
10f2d63a
VZ
19488#define wxUSE_RESOURCES 1
19489EOF
19490
e334d0ea
JS
19491 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS resource"
19492 fi
10f2d63a
VZ
19493fi
19494
19495if test "$wxUSE_X_RESOURCES" = "yes"; then
698dcdb6 19496 cat >> confdefs.h <<\EOF
10f2d63a
VZ
19497#define wxUSE_X_RESOURCES 1
19498EOF
19499
19500fi
19501
698dcdb6 19502
77e13408
RL
19503if test "$wxUSE_MSW" = 1 -a \( "$wxUSE_DATAOBJ" = "yes" \
19504 -o "$wxUSE_CLIPBOARD" = "yes" \
19505 -o "$wxUSE_DRAG_AND_DROP" = "yes" \) ; then
2b9bdf71 19506 for ac_hdr in ole2.h
10f2d63a 19507do
698dcdb6
VZ
19508ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
19509echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
d29b553b 19510echo "configure:19511: checking for $ac_hdr" >&5
698dcdb6
VZ
19511if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
19512 echo $ac_n "(cached) $ac_c" 1>&6
19513else
19514 cat > conftest.$ac_ext <<EOF
d29b553b 19515#line 19516 "configure"
10f2d63a 19516#include "confdefs.h"
698dcdb6
VZ
19517#include <$ac_hdr>
19518EOF
19519ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
d29b553b 19520{ (eval echo configure:19521: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
19521ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
19522if test -z "$ac_err"; then
19523 rm -rf conftest*
19524 eval "ac_cv_header_$ac_safe=yes"
1e487827 19525else
698dcdb6
VZ
19526 echo "$ac_err" >&5
19527 echo "configure: failed program was:" >&5
10f2d63a 19528 cat conftest.$ac_ext >&5
698dcdb6
VZ
19529 rm -rf conftest*
19530 eval "ac_cv_header_$ac_safe=no"
10f2d63a 19531fi
698dcdb6 19532rm -f conftest*
10f2d63a 19533fi
698dcdb6
VZ
19534if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
19535 echo "$ac_t""yes" 1>&6
19536 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
19537 cat >> confdefs.h <<EOF
19538#define $ac_tr_hdr 1
10f2d63a 19539EOF
698dcdb6
VZ
19540
19541else
19542 echo "$ac_t""no" 1>&6
10f2d63a
VZ
19543fi
19544done
19545
698dcdb6 19546
2b9bdf71
VZ
19547 if test "$ac_cv_header_ole2_h" = "yes" ; then
19548 if test "$GCC" = yes ; then
19549 ALL_OBJECTS="$ALL_OBJECTS \$(OLEOBJS)"
2b9bdf71 19550 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fvtable-thunks"
3d63bc3a 19551 LIBS=" -lrpcrt4 -loleaut32 -lole32 -luuid$LIBS"
2b9bdf71 19552 cat >> confdefs.h <<\EOF
4f11a343
VS
19553#define wxUSE_OLE 1
19554EOF
19555
b64f0a5f 19556
2b9bdf71
VZ
19557 fi
19558
19559 cat >> confdefs.h <<\EOF
19560#define wxUSE_DATAOBJ 1
19561EOF
19562
19563 else
19564 echo "configure: warning: Some features disabled because OLE headers not found" 1>&2
19565
19566 wxUSE_CLIPBOARD=no
19567 wxUSE_DRAG_AND_DROP=no
19568 wxUSE_DATAOBJ=no
19569 fi
19570
77e13408 19571 if test "$wxUSE_METAFILE" = "yes"; then
2b9bdf71 19572 cat >> confdefs.h <<\EOF
b64f0a5f
RL
19573#define wxUSE_METAFILE 1
19574EOF
19575
2b9bdf71
VZ
19576
19577 cat >> confdefs.h <<\EOF
b64f0a5f
RL
19578#define wxUSE_ENH_METAFILE 1
19579EOF
19580
2b9bdf71
VZ
19581 fi
19582fi
19583
19584if test "$wxUSE_IPC" = "yes"; then
19585 if test "$wxUSE_SOCKETS" != "yes"; then
156b2523 19586 echo "configure: warning: wxWindows IPC classes require sockets... disabled" 1>&2
2b9bdf71
VZ
19587 fi
19588
19589 cat >> confdefs.h <<\EOF
19590#define wxUSE_IPC 1
19591EOF
19592
19593fi
19594
19595if test "$wxUSE_CLIPBOARD" = "yes"; then
9691c806 19596 cat >> confdefs.h <<\EOF
2b9bdf71
VZ
19597#define wxUSE_CLIPBOARD 1
19598EOF
19599
673f4220 19600
9691c806 19601 cat >> confdefs.h <<\EOF
673f4220
VZ
19602#define wxUSE_DATAOBJ 1
19603EOF
19604
2b9bdf71
VZ
19605fi
19606
19607if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then
19608 if test "$wxUSE_GTK" = 1; then
19609 if test "$WXGTK12" != 1; then
156b2523 19610 echo "configure: warning: Drag and drop is only supported under GTK+ 1.2... disabled" 1>&2
10f2d63a
VZ
19611 wxUSE_DRAG_AND_DROP=no
19612 fi
19613 fi
19614
2b9bdf71 19615 if test "$wxUSE_MOTIF" = 1; then
156b2523 19616 echo "configure: warning: Drag and drop not yet supported under Motif... disabled" 1>&2
2b9bdf71
VZ
19617 wxUSE_DRAG_AND_DROP=no
19618 fi
19619
f79bd02d
JS
19620 if test "$wxUSE_X11" = 1; then
19621 echo "configure: warning: Drag and drop not yet supported under X11... disabled" 1>&2
19622 wxUSE_DRAG_AND_DROP=no
19623 fi
19624
10f2d63a 19625 if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
698dcdb6 19626 cat >> confdefs.h <<\EOF
10f2d63a
VZ
19627#define wxUSE_DRAG_AND_DROP 1
19628EOF
19629
19630 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd"
19631 fi
19632
19633fi
19634
19635if test "$wxUSE_SPLINES" = "yes" ; then
698dcdb6 19636 cat >> confdefs.h <<\EOF
10f2d63a
VZ
19637#define wxUSE_SPLINES 1
19638EOF
19639
19640fi
19641
698dcdb6 19642
1e6feb95
VZ
19643USES_CONTROLS=0
19644if test "$wxUSE_CONTROLS" = "yes"; then
19645 USES_CONTROLS=1
19646fi
19647
10f2d63a 19648if test "$wxUSE_ACCEL" = "yes"; then
698dcdb6 19649 cat >> confdefs.h <<\EOF
10f2d63a
VZ
19650#define wxUSE_ACCEL 1
19651EOF
19652
1e6feb95
VZ
19653 USES_CONTROLS=1
19654fi
19655
19656if test "$wxUSE_BUTTON" = "yes"; then
19657 cat >> confdefs.h <<\EOF
19658#define wxUSE_BUTTON 1
19659EOF
19660
19661 USES_CONTROLS=1
19662fi
19663
19664if test "$wxUSE_BMPBUTTON" = "yes"; then
19665 cat >> confdefs.h <<\EOF
19666#define wxUSE_BMPBUTTON 1
19667EOF
19668
19669 USES_CONTROLS=1
19670fi
19671
19672if test "$wxUSE_CALCTRL" = "yes"; then
19673 cat >> confdefs.h <<\EOF
19674#define wxUSE_CALENDARCTRL 1
19675EOF
19676
19677 USES_CONTROLS=1
19678 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar"
10f2d63a
VZ
19679fi
19680
19681if test "$wxUSE_CARET" = "yes"; then
698dcdb6 19682 cat >> confdefs.h <<\EOF
10f2d63a
VZ
19683#define wxUSE_CARET 1
19684EOF
19685
1e6feb95 19686 USES_CONTROLS=1
10f2d63a
VZ
19687 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret"
19688fi
19689
19690if test "$wxUSE_COMBOBOX" = "yes"; then
698dcdb6 19691 cat >> confdefs.h <<\EOF
10f2d63a
VZ
19692#define wxUSE_COMBOBOX 1
19693EOF
19694
1e6feb95 19695 USES_CONTROLS=1
10f2d63a
VZ
19696fi
19697
19698if test "$wxUSE_CHOICE" = "yes"; then
698dcdb6 19699 cat >> confdefs.h <<\EOF
10f2d63a
VZ
19700#define wxUSE_CHOICE 1
19701EOF
19702
1e6feb95 19703 USES_CONTROLS=1
10f2d63a
VZ
19704fi
19705
19706if test "$wxUSE_CHECKBOX" = "yes"; then
698dcdb6 19707 cat >> confdefs.h <<\EOF
10f2d63a
VZ
19708#define wxUSE_CHECKBOX 1
19709EOF
19710
1e6feb95 19711 USES_CONTROLS=1
10f2d63a
VZ
19712fi
19713
19714if test "$wxUSE_CHECKLST" = "yes"; then
698dcdb6 19715 cat >> confdefs.h <<\EOF
10f2d63a
VZ
19716#define wxUSE_CHECKLISTBOX 1
19717EOF
19718
1e6feb95 19719 USES_CONTROLS=1
10f2d63a
VZ
19720 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst"
19721fi
19722
19723if test "$wxUSE_GAUGE" = "yes"; then
698dcdb6 19724 cat >> confdefs.h <<\EOF
10f2d63a
VZ
19725#define wxUSE_GAUGE 1
19726EOF
19727
1e6feb95 19728 USES_CONTROLS=1
10f2d63a
VZ
19729fi
19730
d6a55c4b
VZ
19731if test "$wxUSE_NEW_GRID" = "yes"; then
19732 wxUSE_GRID="yes"
698dcdb6 19733 cat >> confdefs.h <<\EOF
d6a55c4b 19734#define wxUSE_NEW_GRID 1
10f2d63a
VZ
19735EOF
19736
1e6feb95 19737 USES_CONTROLS=1
d6a55c4b 19738 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS newgrid"
10f2d63a
VZ
19739fi
19740
d6a55c4b 19741if test "$wxUSE_GRID" = "yes"; then
698dcdb6 19742 cat >> confdefs.h <<\EOF
d6a55c4b 19743#define wxUSE_GRID 1
10f2d63a
VZ
19744EOF
19745
1e6feb95 19746 USES_CONTROLS=1
d6a55c4b 19747 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid"
10f2d63a
VZ
19748fi
19749
19750if test "$wxUSE_IMAGLIST" = "yes"; then
698dcdb6 19751 cat >> confdefs.h <<\EOF
10f2d63a
VZ
19752#define wxUSE_IMAGLIST 1
19753EOF
19754
19755fi
19756
19757if test "$wxUSE_LISTBOX" = "yes"; then
698dcdb6 19758 cat >> confdefs.h <<\EOF
10f2d63a
VZ
19759#define wxUSE_LISTBOX 1
19760EOF
19761
1e6feb95 19762 USES_CONTROLS=1
10f2d63a
VZ
19763fi
19764
19765if test "$wxUSE_LISTCTRL" = "yes"; then
19766 if test "$wxUSE_IMAGLIST" = "yes"; then
698dcdb6 19767 cat >> confdefs.h <<\EOF
10f2d63a
VZ
19768#define wxUSE_LISTCTRL 1
19769EOF
19770
1e6feb95 19771 USES_CONTROLS=1
10f2d63a
VZ
19772 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl"
19773 else
698dcdb6 19774 echo "configure: warning: wxListCtrl requires wxImageList and won't be compiled without it" 1>&2
10f2d63a
VZ
19775 fi
19776fi
19777
19778if test "$wxUSE_NOTEBOOK" = "yes"; then
698dcdb6 19779 cat >> confdefs.h <<\EOF
10f2d63a
VZ
19780#define wxUSE_NOTEBOOK 1
19781EOF
19782
1e6feb95 19783 USES_CONTROLS=1
10f2d63a
VZ
19784 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook"
19785fi
19786
24176f2c
GD
19787if test "$wxUSE_PROPSHEET" = "yes"; then
19788 cat >> confdefs.h <<\EOF
19789#define wxUSE_PROPSHEET 1
19790EOF
19791
19792 USES_CONTROLS=1
19793 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS proplist"
19794fi
19795
10f2d63a 19796if test "$wxUSE_RADIOBOX" = "yes"; then
698dcdb6 19797 cat >> confdefs.h <<\EOF
10f2d63a
VZ
19798#define wxUSE_RADIOBOX 1
19799EOF
19800
1e6feb95 19801 USES_CONTROLS=1
10f2d63a
VZ
19802fi
19803
19804if test "$wxUSE_RADIOBTN" = "yes"; then
698dcdb6 19805 cat >> confdefs.h <<\EOF
10f2d63a
VZ
19806#define wxUSE_RADIOBTN 1
19807EOF
19808
1e6feb95 19809 USES_CONTROLS=1
10f2d63a
VZ
19810fi
19811
19812if test "$wxUSE_SASH" = "yes"; then
698dcdb6 19813 cat >> confdefs.h <<\EOF
10f2d63a
VZ
19814#define wxUSE_SASH 1
19815EOF
19816
19817 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest"
19818fi
19819
19820if test "$wxUSE_SCROLLBAR" = "yes"; then
698dcdb6 19821 cat >> confdefs.h <<\EOF
10f2d63a
VZ
19822#define wxUSE_SCROLLBAR 1
19823EOF
19824
1e6feb95 19825 USES_CONTROLS=1
741a9306 19826 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub"
10f2d63a
VZ
19827fi
19828
19829if test "$wxUSE_SLIDER" = "yes"; then
698dcdb6 19830 cat >> confdefs.h <<\EOF
10f2d63a
VZ
19831#define wxUSE_SLIDER 1
19832EOF
19833
1e6feb95 19834 USES_CONTROLS=1
10f2d63a
VZ
19835fi
19836
19837if test "$wxUSE_SPINBTN" = "yes"; then
698dcdb6 19838 cat >> confdefs.h <<\EOF
10f2d63a
VZ
19839#define wxUSE_SPINBTN 1
19840EOF
19841
1e6feb95 19842 USES_CONTROLS=1
10f2d63a
VZ
19843fi
19844
56cfaa52 19845if test "$wxUSE_SPINCTRL" = "yes"; then
698dcdb6 19846 cat >> confdefs.h <<\EOF
56cfaa52
RR
19847#define wxUSE_SPINCTRL 1
19848EOF
19849
1e6feb95 19850 USES_CONTROLS=1
56cfaa52
RR
19851fi
19852
10f2d63a 19853if test "$wxUSE_SPLITTER" = "yes"; then
698dcdb6 19854 cat >> confdefs.h <<\EOF
10f2d63a
VZ
19855#define wxUSE_SPLITTER 1
19856EOF
19857
19858 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter"
19859fi
19860
19861if test "$wxUSE_STATBMP" = "yes"; then
698dcdb6 19862 cat >> confdefs.h <<\EOF
10f2d63a
VZ
19863#define wxUSE_STATBMP 1
19864EOF
19865
1e6feb95 19866 USES_CONTROLS=1
10f2d63a
VZ
19867fi
19868
19869if test "$wxUSE_STATBOX" = "yes"; then
698dcdb6 19870 cat >> confdefs.h <<\EOF
10f2d63a
VZ
19871#define wxUSE_STATBOX 1
19872EOF
19873
1e6feb95
VZ
19874 USES_CONTROLS=1
19875fi
19876
19877if test "$wxUSE_STATTEXT" = "yes"; then
19878 cat >> confdefs.h <<\EOF
19879#define wxUSE_STATTEXT 1
19880EOF
19881
19882 USES_CONTROLS=1
10f2d63a
VZ
19883fi
19884
19885if test "$wxUSE_STATLINE" = "yes"; then
19886 if test "$wxUSE_WINE" = 1 ; then
698dcdb6 19887 echo "configure: warning: wxStaticLine is not supported under WINE" 1>&2
10f2d63a 19888 else
698dcdb6 19889 cat >> confdefs.h <<\EOF
10f2d63a
VZ
19890#define wxUSE_STATLINE 1
19891EOF
19892
1e6feb95 19893 USES_CONTROLS=1
10f2d63a
VZ
19894 fi
19895fi
19896
19897if test "$wxUSE_STATUSBAR" = "yes"; then
698dcdb6 19898 cat >> confdefs.h <<\EOF
10f2d63a
VZ
19899#define wxUSE_STATUSBAR 1
19900EOF
19901
1e6feb95 19902 USES_CONTROLS=1
698dcdb6 19903
2286341c 19904 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar"
10f2d63a
VZ
19905fi
19906
19907if test "$wxUSE_TABDIALOG" = "yes"; then
698dcdb6 19908 cat >> confdefs.h <<\EOF
10f2d63a
VZ
19909#define wxUSE_TAB_DIALOG 1
19910EOF
19911
19912 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS tab"
19913fi
19914
1e6feb95
VZ
19915if test "$wxUSE_TEXTCTRL" = "yes"; then
19916 cat >> confdefs.h <<\EOF
19917#define wxUSE_TEXTCTRL 1
19918EOF
19919
19920 USES_CONTROLS=1
19921 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text"
19922fi
19923
1db8dc4a 19924if test "$wxUSE_TOGGLEBTN" = "yes"; then
156b2523
GD
19925 if test "$wxUSE_MAC" = 1; then
19926 echo "configure: warning: Toggle button not yet supported under Mac OS X... disabled" 1>&2
19927 wxUSE_TOGGLEBTN=no
19928 fi
19929 if test "$wxUSE_UNIVERSAL" = "yes"; then
0feee163 19930 echo "configure: warning: Toggle button not yet supported under wxUniversal... disabled" 1>&2
a45d7ab7
GD
19931 wxUSE_TOGGLEBTN=no
19932 fi
19933
19934 if test "$wxUSE_TOGGLEBTN" = "yes"; then
19935 cat >> confdefs.h <<\EOF
1db8dc4a
VZ
19936#define wxUSE_TOGGLEBTN 1
19937EOF
19938
1e6feb95 19939 USES_CONTROLS=1
a45d7ab7 19940 fi
1db8dc4a
VZ
19941fi
19942
360d6699 19943if test "$wxUSE_TOOLBAR_SIMPLE" = "yes"; then
698dcdb6 19944 cat >> confdefs.h <<\EOF
360d6699
VZ
19945#define wxUSE_TOOLBAR_SIMPLE 1
19946EOF
19947
19948 wxUSE_TOOLBAR="yes"
1e6feb95 19949 USES_CONTROLS=1
360d6699
VZ
19950fi
19951
10f2d63a 19952if test "$wxUSE_TOOLBAR" = "yes"; then
698dcdb6 19953 cat >> confdefs.h <<\EOF
10f2d63a
VZ
19954#define wxUSE_TOOLBAR 1
19955EOF
19956
1e6feb95 19957 USES_CONTROLS=1
698dcdb6 19958
360d6699
VZ
19959 if test "$wxUSE_TOOLBAR_SIMPLE" != "yes"; then
19960 wxUSE_TOOLBAR_NATIVE="yes"
19961 fi
19962
1e6feb95
VZ
19963 if test "$wxUSE_TOOLBAR_NATIVE" = "yes"; then
19964 cat >> confdefs.h <<\EOF
360d6699
VZ
19965#define wxUSE_TOOLBAR_NATIVE 1
19966EOF
19967
1e6feb95
VZ
19968 USES_CONTROLS=1
19969 fi
19970
19971 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar"
360d6699
VZ
19972fi
19973
10f2d63a
VZ
19974if test "$wxUSE_TOOLTIPS" = "yes"; then
19975 if test "$wxUSE_MOTIF" = 1; then
156b2523 19976 echo "configure: warning: wxTooltip not supported yet under Motif... disabled" 1>&2
10f2d63a
VZ
19977 else
19978 if test "$wxUSE_WINE" = 1; then
156b2523 19979 echo "configure: warning: wxTooltip not supported under WINE... disabled" 1>&2
10f2d63a 19980 else
69d27ff7 19981 if test "$wxUSE_UNIVERSAL" = "yes"; then
0feee163 19982 echo "configure: warning: wxTooltip not supported yet in wxUniversal... disabled" 1>&2
69d27ff7 19983 else
3c011993 19984 cat >> confdefs.h <<\EOF
10f2d63a
VZ
19985#define wxUSE_TOOLTIPS 1
19986EOF
19987
69d27ff7 19988 fi
10f2d63a
VZ
19989 fi
19990 fi
19991fi
19992
19993if test "$wxUSE_TREECTRL" = "yes"; then
19994 if test "$wxUSE_IMAGLIST" = "yes"; then
698dcdb6 19995 cat >> confdefs.h <<\EOF
10f2d63a
VZ
19996#define wxUSE_TREECTRL 1
19997EOF
19998
1e6feb95 19999 USES_CONTROLS=1
10f2d63a
VZ
20000 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl"
20001 else
698dcdb6 20002 echo "configure: warning: wxTreeCtrl requires wxImageList and won't be compiled without it" 1>&2
10f2d63a
VZ
20003 fi
20004fi
20005
9f41d601 20006if test "$wxUSE_POPUPWIN" = "yes"; then
6abe4b65 20007 if test "$wxUSE_MAC" = 1; then
156b2523 20008 echo "configure: warning: Popup window not yet supported under Mac OS X... disabled" 1>&2
6abe4b65 20009 else
485cf710
VZ
20010 if test "$wxUSE_MOTIF" = 1; then
20011 echo "configure: warning: wxPopupWindow not yet supported under Motif... disabled" 1>&2
20012 else
3c011993
VZ
20013 if test "$wxUSE_PM" = 1; then
20014 echo "configure: warning: wxPopupWindow not yet supported under PM... disabled" 1>&2
20015 else
20016 cat >> confdefs.h <<\EOF
9f41d601
RR
20017#define wxUSE_POPUPWIN 1
20018EOF
20019
9926e4a4 20020
3c011993
VZ
20021 USES_CONTROLS=1
20022 fi
485cf710 20023 fi
6abe4b65 20024 fi
9f41d601
RR
20025fi
20026
dd964dcc 20027if test "$wxUSE_TIPWINDOW" = "yes"; then
3c011993
VZ
20028 if test "$wxUSE_PM" = 1; then
20029 echo "configure: warning: wxTipWindow not yet supported under PM... disabled" 1>&2
20030 else
20031 cat >> confdefs.h <<\EOF
dd964dcc
VZ
20032#define wxUSE_TIPWINDOW 1
20033EOF
20034
3c011993 20035 fi
dd964dcc
VZ
20036fi
20037
1e6feb95
VZ
20038if test "$USES_CONTROLS" = 1; then
20039 cat >> confdefs.h <<\EOF
20040#define wxUSE_CONTROLS 1
10f2d63a
VZ
20041EOF
20042
10f2d63a
VZ
20043fi
20044
1e6feb95 20045
24176f2c
GD
20046if test "$wxUSE_TREELAYOUT" = "yes"; then
20047 cat >> confdefs.h <<\EOF
20048#define wxUSE_TREELAYOUT 1
20049EOF
20050
20051 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treelay"
20052fi
1e6feb95 20053
24fd6d87
VZ
20054if test "$wxUSE_DRAGIMAGE" = "yes"; then
20055 cat >> confdefs.h <<\EOF
20056#define wxUSE_DRAGIMAGE 1
20057EOF
20058
20059 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag"
20060fi
20061
1e6feb95 20062if test "$wxUSE_MENUS" = "yes"; then
698dcdb6 20063 cat >> confdefs.h <<\EOF
1e6feb95 20064#define wxUSE_MENUS 1
10f2d63a
VZ
20065EOF
20066
1e6feb95 20067 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu"
10f2d63a
VZ
20068fi
20069
1e6feb95
VZ
20070if test "$wxUSE_METAFILE" = "yes"; then
20071 cat >> confdefs.h <<\EOF
20072#define wxUSE_METAFILE 1
10f2d63a
VZ
20073EOF
20074
10f2d63a
VZ
20075fi
20076
1e6feb95
VZ
20077if test "$wxUSE_MIMETYPE" = "yes"; then
20078 cat >> confdefs.h <<\EOF
20079#define wxUSE_MIMETYPE 1
10f2d63a
VZ
20080EOF
20081
10f2d63a
VZ
20082fi
20083
3e44f09d
VZ
20084if test "$wxUSE_SYSTEM_OPTIONS" = "yes"; then
20085 cat >> confdefs.h <<\EOF
20086#define wxUSE_SYSTEM_OPTIONS 1
20087EOF
20088
20089fi
20090
4cdb0ab0 20091if test "$wxUSE_PROTOCOL" = "yes"; then
3954f9ca
VS
20092 if test "$wxUSE_SOCKETS" != "yes"; then
20093 echo "configure: warning: Protocol classes require sockets... disabled" 1>&2
20094 wxUSE_PROTOCOL=no
20095 fi
20096
20097 if test "$wxUSE_PROTOCOL" = "yes"; then
20098 cat >> confdefs.h <<\EOF
4cdb0ab0
VS
20099#define wxUSE_PROTOCOL 1
20100EOF
20101
20102
3954f9ca
VS
20103 if test "$wxUSE_PROTOCOL_HTTP" = "yes"; then
20104 cat >> confdefs.h <<\EOF
4cdb0ab0
VS
20105#define wxUSE_PROTOCOL_HTTP 1
20106EOF
20107
3954f9ca
VS
20108 fi
20109 if test "$wxUSE_PROTOCOL_FTP" = "yes"; then
20110 cat >> confdefs.h <<\EOF
4cdb0ab0
VS
20111#define wxUSE_PROTOCOL_FTP 1
20112EOF
20113
3954f9ca
VS
20114 fi
20115 if test "$wxUSE_PROTOCOL_FILE" = "yes"; then
20116 cat >> confdefs.h <<\EOF
20117#define wxUSE_PROTOCOL_FILE 1
20118EOF
20119
20120 fi
4cdb0ab0 20121 fi
3954f9ca
VS
20122fi
20123
20124if test "$wxUSE_URL" = "yes"; then
20125 if test "$wxUSE_PROTOCOL" != "yes"; then
20126 echo "configure: warning: wxURL class requires wxProtocol... disabled" 1>&2
20127 wxUSE_URL=no
20128 fi
20129 if test "$wxUSE_URL" = "yes"; then
4cdb0ab0 20130 cat >> confdefs.h <<\EOF
3954f9ca 20131#define wxUSE_URL 1
4cdb0ab0
VS
20132EOF
20133
20134 fi
20135fi
20136
10f2d63a 20137if test "$wxUSE_MINIFRAME" = "yes"; then
698dcdb6 20138 cat >> confdefs.h <<\EOF
10f2d63a
VZ
20139#define wxUSE_MINIFRAME 1
20140EOF
20141
20142 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram"
20143fi
20144
20145if test "$wxUSE_HTML" = "yes"; then
698dcdb6 20146 cat >> confdefs.h <<\EOF
10f2d63a
VZ
20147#define wxUSE_HTML 1
20148EOF
20149
20150 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html"
10f2d63a
VZ
20151fi
20152
20153if test "$wxUSE_VALIDATORS" = "yes"; then
698dcdb6 20154 cat >> confdefs.h <<\EOF
1e487827
VS
20155#define wxUSE_VALIDATORS 1
20156EOF
703e0a69 20157
698dcdb6
VZ
20158 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate"
20159fi
20160
edae8572
VZ
20161if test "$wxUSE_PALETTE" = "yes" ; then
20162 cat >> confdefs.h <<\EOF
20163#define wxUSE_PALETTE 1
20164EOF
20165
20166fi
20167
698dcdb6
VZ
20168if test "$wxUSE_IMAGE" = "yes" ; then
20169 cat >> confdefs.h <<\EOF
20170#define wxUSE_IMAGE 1
20171EOF
20172
20173fi
20174
20175if test "$wxUSE_GIF" = "yes" ; then
20176 cat >> confdefs.h <<\EOF
20177#define wxUSE_GIF 1
20178EOF
20179
20180fi
20181
20182if test "$wxUSE_PCX" = "yes" ; then
20183 cat >> confdefs.h <<\EOF
20184#define wxUSE_PCX 1
20185EOF
20186
20187fi
20188
4b6b4dfc
RR
20189if test "$wxUSE_IFF" = "yes" ; then
20190 cat >> confdefs.h <<\EOF
20191#define wxUSE_IFF 1
20192EOF
20193
20194fi
20195
698dcdb6
VZ
20196if test "$wxUSE_PNM" = "yes" ; then
20197 cat >> confdefs.h <<\EOF
20198#define wxUSE_PNM 1
20199EOF
20200
20201fi
20202
20203if test "$wxUSE_XPM" = "yes" ; then
20204 cat >> confdefs.h <<\EOF
20205#define wxUSE_XPM 1
20206EOF
20207
20208fi
20209
658974ae
VS
20210if test "$wxUSE_ICO_CUR" = "yes" ; then
20211 cat >> confdefs.h <<\EOF
20212#define wxUSE_ICO_CUR 1
20213EOF
20214
20215fi
20216
a72a4bfa
VS
20217if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_MSLU" = "yes" ; then
20218 LIBS=" -lunicows $LIBS"
20219fi
20220
698dcdb6 20221
1e6feb95
VZ
20222if test "$wxUSE_CHOICEDLG" = "yes"; then
20223 cat >> confdefs.h <<\EOF
20224#define wxUSE_CHOICEDLG 1
20225EOF
20226
20227fi
20228
20229if test "$wxUSE_COLOURDLG" = "yes"; then
20230 cat >> confdefs.h <<\EOF
20231#define wxUSE_COLOURDLG 1
20232EOF
20233
20234fi
20235
20236if test "$wxUSE_FILEDLG" = "yes"; then
20237 cat >> confdefs.h <<\EOF
20238#define wxUSE_FILEDLG 1
20239EOF
20240
20241fi
20242
8db37e06
VZ
20243if test "$wxUSE_FINDREPLDLG" = "yes"; then
20244 cat >> confdefs.h <<\EOF
20245#define wxUSE_FINDREPLDLG 1
20246EOF
20247
20248fi
20249
1e6feb95
VZ
20250if test "$wxUSE_FONTDLG" = "yes"; then
20251 cat >> confdefs.h <<\EOF
20252#define wxUSE_FONTDLG 1
20253EOF
20254
20255fi
20256
20257if test "$wxUSE_DIRDLG" = "yes"; then
ae1daed0
JS
20258 if test "$wxUSE_TREECTRL" != "yes"; then
20259 echo "configure: warning: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" 1>&2
1e6feb95 20260 else
ae1daed0 20261 cat >> confdefs.h <<\EOF
1e6feb95
VZ
20262#define wxUSE_DIRDLG 1
20263EOF
20264
1e6feb95
VZ
20265 fi
20266fi
20267
20268if test "$wxUSE_MSGDLG" = "yes"; then
20269 cat >> confdefs.h <<\EOF
20270#define wxUSE_MSGDLG 1
20271EOF
20272
20273fi
20274
20275if test "$wxUSE_NUMBERDLG" = "yes"; then
20276 cat >> confdefs.h <<\EOF
20277#define wxUSE_NUMBERDLG 1
20278EOF
20279
20280fi
20281
20282if test "$wxUSE_PROGRESSDLG" = "yes"; then
20283 if test "$wxUSE_CONSTRAINTS" != "yes"; then
20284 echo "configure: warning: wxProgressDialog requires constraints so it won't be compiled without them" 1>&2
20285 else
20286 cat >> confdefs.h <<\EOF
20287#define wxUSE_PROGRESSDLG 1
20288EOF
20289
20290 fi
20291fi
20292
cbca9943
VZ
20293if test "$wxUSE_SPLASH" = "yes"; then
20294 cat >> confdefs.h <<\EOF
20295#define wxUSE_SPLASH 1
20296EOF
20297
20298fi
20299
1e6feb95
VZ
20300if test "$wxUSE_STARTUP_TIPS" = "yes"; then
20301 if test "$wxUSE_CONSTRAINTS" != "yes"; then
20302 echo "configure: warning: Startup tips requires constraints and won't be compiled without them" 1>&2
20303 else
20304 cat >> confdefs.h <<\EOF
20305#define wxUSE_STARTUP_TIPS 1
20306EOF
20307
20308 fi
20309fi
20310
20311if test "$wxUSE_TEXTDLG" = "yes"; then
20312 cat >> confdefs.h <<\EOF
20313#define wxUSE_TEXTDLG 1
20314EOF
20315
20316fi
20317
b1f5d087
VZ
20318if test "$wxUSE_WIZARDDLG" = "yes"; then
20319 cat >> confdefs.h <<\EOF
20320#define wxUSE_WIZARDDLG 1
20321EOF
20322
20323 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wizard"
20324fi
20325
1e6feb95 20326
698dcdb6
VZ
20327if test "$cross_compiling" = "yes"; then
20328 OSINFO="\"$host\""
20329else
20330 OSINFO=`uname -s -r -m`
20331 OSINFO="\"$OSINFO\""
20332fi
20333
20334cat >> confdefs.h <<EOF
20335#define WXWIN_OS_DESCRIPTION $OSINFO
20336EOF
20337
20338
20339
06dda230
VZ
20340if test "x$prefix" != "xNONE"; then
20341 wxPREFIX=$prefix
20342else
20343 wxPREFIX=$ac_default_prefix
20344fi
20345
7e67ed0d 20346cat >> confdefs.h <<EOF
06dda230 20347#define wxINSTALL_PREFIX "$wxPREFIX"
7e67ed0d
VZ
20348EOF
20349
20350
20351
698dcdb6 20352
3a922bb4 20353
f11bdd03 20354if test "$wxUSE_MAC" = 1 ; then
3d63bc3a 20355 LDFLAGS="$LDFLAGS -framework Carbon -framework System"
698dcdb6 20356fi
3a922bb4 20357
3d63bc3a 20358
009fead0 20359LIBS="$ZLIB_LINK $POSIX4_LINK $INET_LINK $WCHAR_LINK $DL_LINK -lm $LIBS"
3d63bc3a 20360
698dcdb6 20361if test "$wxUSE_GUI" = "yes"; then
3d63bc3a 20362
cb61c62d 20363 LIBS="$GUI_TK_LIBRARY $PNG_LINK $JPEG_LINK $TIFF_LINK $LIBS"
3a922bb4
RL
20364
20365
867a54b6 20366 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS artprov controls dialogs \
3a922bb4
RL
20367 drawing dynamic erase event exec font image \
20368 minimal richedit rotate widgets"
20369
3a922bb4
RL
20370 CPPFLAGS="$CPPFLAGS \$(EXTRADEFS) \$(APPEXTRADEFS)"
20371else
20372 SAMPLES_SUBDIRS="console"
698dcdb6
VZ
20373fi
20374
698dcdb6 20375
d714471b 20376INCLUDES="-I\${top_builddir}/lib/wx/include/${TOOLCHAIN_NAME} -I\${top_srcdir}/include \
cb61c62d 20377$REGEX_INCLUDE $ZLIB_INCLUDE $PNG_INCLUDE $JPEG_INCLUDE $TIFF_INCLUDE $TOOLKIT_INCLUDE"
698dcdb6 20378
63e7762e 20379if test "$wxUSE_GTK" = 1; then
3d63bc3a 20380 WXCONFIG_INCLUDE=
698dcdb6
VZ
20381else
20382 WXCONFIG_INCLUDE="$TOOLKIT_INCLUDE"
20383fi
20384
20385if test "$GXX" = yes ; then
20386 CXXWARNINGS="-Wall"
88e30f2b
RL
20387
20388 if test "$wxUSE_NO_DEPS" = "no" ; then
20389 CFLAGS="-MMD $CFLAGS"
20390 CXXFLAGS="-MMD $CXXFLAGS"
20391 fi
20392fi
20393
1725144d 20394EXTRA_CFLAGS="$WXDEBUG $WXODBCFLAG $PROFILE $OPTIMISE $INCLUDES"
698dcdb6
VZ
20395
20396CFLAGS=`echo $CFLAGS $EXTRA_CFLAGS $CXXWARNINGS | sed 's/ \\+/ /g'`
20397CXXFLAGS=`echo $CXXFLAGS $EXTRA_CFLAGS $CXXWARNINGS | sed 's/ \+/ /g'`
fe5a9cab 20398LIBS=`echo $LIBS | sed 's/ \+/ /g'`
698dcdb6 20399
fe5a9cab 20400LDFLAGS="$LDFLAGS $PROFILE"
698dcdb6 20401
698dcdb6
VZ
20402SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`"
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
20459
20460
20461
20462
20463
20464
20465
20466
20467
20468
20469
32832908 20470
2f51a9ec
GD
20471
20472
20473
20474
f6bcfd97 20475
dad6c0ea 20476
caa2c79b 20477
3711412e 20478
1e6feb95
VZ
20479
20480
885d4bf5
VS
20481
20482
20483
20484
9b695262
VZ
20485
20486
62d0491b 20487
ef7f2189 20488
40f7145c 20489
10f2d63a
VZ
20490
20491
698dcdb6 20492echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
d29b553b 20493echo "configure:20494: checking whether ${MAKE-make} sets \${MAKE}" >&5
698dcdb6
VZ
20494set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
20495if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
20496 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 20497else
698dcdb6 20498 cat > conftestmake <<\EOF
10f2d63a
VZ
20499all:
20500 @echo 'ac_maketemp="${MAKE}"'
20501EOF
20502# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
698dcdb6 20503eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
10f2d63a
VZ
20504if test -n "$ac_maketemp"; then
20505 eval ac_cv_prog_make_${ac_make}_set=yes
20506else
20507 eval ac_cv_prog_make_${ac_make}_set=no
20508fi
698dcdb6 20509rm -f conftestmake
10f2d63a
VZ
20510fi
20511if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
698dcdb6 20512 echo "$ac_t""yes" 1>&6
10f2d63a
VZ
20513 SET_MAKE=
20514else
698dcdb6 20515 echo "$ac_t""no" 1>&6
10f2d63a
VZ
20516 SET_MAKE="MAKE=${MAKE-make}"
20517fi
20518
698dcdb6 20519
3a922bb4
RL
20520if test -f lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h; then
20521 mv -f lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h setup.h
00cf1208 20522fi
665bbe97 20523
698dcdb6 20524
10f2d63a 20525
2224580a 20526if test "$wxUSE_GUI" = "yes"; then
ec90f5e5 20527 wx_cv_path_samplesubdirs=$SAMPLES_SUBDIRS
22c3fb2b 20528 wx_cv_if_gnu_make=$IF_GNU_MAKE
e8482f24
GL
20529 wx_cv_path_ifs=$PATH_IFS
20530 wx_cv_program_ext=$PROGRAM_EXT
20531 wx_cv_target_library=$WX_TARGET_LIBRARY
7b6058cd 20532 wx_cv_target_library_gl=$WX_TARGET_LIBRARY_GL
3711412e 20533 wx_cv_target_libtype=$WX_TARGET_LIBRARY_TYPE
22c3fb2b
VZ
20534 export wx_cv_path_samplesubdirs wx_cv_if_gnu_make \
20535 wx_cv_path_ifs wx_cv_program_ext \
7b6058cd 20536 wx_cv_target_library wx_cv_target_library_gl wx_cv_target_libtype
8f4a9a10 20537 subdirs="demos samples utils contrib"
2224580a
VZ
20538
20539fi
10f2d63a 20540
698dcdb6
VZ
20541trap '' 1 2 15
20542cat > confcache <<\EOF
10f2d63a
VZ
20543# This file is a shell script that caches the results of configure
20544# tests run on this system so they can be shared between configure
698dcdb6
VZ
20545# scripts and configure runs. It is not useful on other systems.
20546# If it contains results you don't want to keep, you may remove or edit it.
10f2d63a 20547#
698dcdb6
VZ
20548# By default, configure uses ./config.cache as the cache file,
20549# creating it if it does not exist already. You can give configure
20550# the --cache-file=FILE option to use a different cache file; that is
20551# what configure does when it calls configure scripts in
20552# subdirectories, so they share the cache.
20553# Giving --cache-file=/dev/null disables caching, for debugging configure.
20554# config.status only pays attention to the cache file if you give it the
20555# --recheck option to rerun configure.
10f2d63a 20556#
698dcdb6 20557EOF
10f2d63a
VZ
20558# The following way of writing the cache mishandles newlines in values,
20559# but we know of no workaround that is simple, portable, and efficient.
20560# So, don't put newlines in cache variables' values.
20561# Ultrix sh set writes to stderr and can't be redirected directly,
20562# and sets the high bit in the cache file unless we assign to the vars.
698dcdb6
VZ
20563(set) 2>&1 |
20564 case `(ac_space=' '; set | grep ac_space) 2>&1` in
20565 *ac_space=\ *)
20566 # `set' does not quote correctly, so add quotes (double-quote substitution
20567 # turns \\\\ into \\, and sed turns \\ into \).
20568 sed -n \
20569 -e "s/'/'\\\\''/g" \
20570 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
20571 ;;
20572 *)
20573 # `set' quotes correctly as required by POSIX, so do not add quotes.
20574 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
20575 ;;
20576 esac >> confcache
20577if cmp -s $cache_file confcache; then
20578 :
20579else
10f2d63a 20580 if test -w $cache_file; then
698dcdb6
VZ
20581 echo "updating cache $cache_file"
20582 cat confcache > $cache_file
10f2d63a
VZ
20583 else
20584 echo "not updating unwritable cache $cache_file"
20585 fi
20586fi
20587rm -f confcache
20588
698dcdb6
VZ
20589trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
20590
10f2d63a
VZ
20591test "x$prefix" = xNONE && prefix=$ac_default_prefix
20592# Let make expand exec_prefix.
20593test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20594
698dcdb6
VZ
20595# Any assignment to VPATH causes Sun make to only execute
20596# the first set of double-colon rules, so remove it if not needed.
20597# If there is a colon in the path, we need to keep it.
10f2d63a 20598if test "x$srcdir" = x.; then
698dcdb6 20599 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
10f2d63a
VZ
20600fi
20601
698dcdb6
VZ
20602trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
20603
10f2d63a
VZ
20604DEFS=-DHAVE_CONFIG_H
20605
698dcdb6 20606# Without the "./", some shells look in PATH for config.status.
10f2d63a 20607: ${CONFIG_STATUS=./config.status}
698dcdb6
VZ
20608
20609echo creating $CONFIG_STATUS
20610rm -f $CONFIG_STATUS
20611cat > $CONFIG_STATUS <<EOF
20612#! /bin/sh
10f2d63a
VZ
20613# Generated automatically by configure.
20614# Run this file to recreate the current configuration.
698dcdb6
VZ
20615# This directory was configured as follows,
20616# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20617#
20618# $0 $ac_configure_args
20619#
10f2d63a 20620# Compiler output produced by configure, useful for debugging
698dcdb6 20621# configure, is in ./config.log if it exists.
1e487827 20622
698dcdb6
VZ
20623ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
20624for ac_option
10f2d63a 20625do
698dcdb6 20626 case "\$ac_option" in
10f2d63a 20627 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
698dcdb6
VZ
20628 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
20629 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
20630 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
20631 echo "$CONFIG_STATUS generated by autoconf version 2.13"
20632 exit 0 ;;
20633 -help | --help | --hel | --he | --h)
20634 echo "\$ac_cs_usage"; exit 0 ;;
20635 *) echo "\$ac_cs_usage"; exit 1 ;;
10f2d63a
VZ
20636 esac
20637done
20638
698dcdb6
VZ
20639ac_given_srcdir=$srcdir
20640ac_given_INSTALL="$INSTALL"
703e0a69 20641
698dcdb6
VZ
20642trap 'rm -fr `echo "
20643 wx-config
20644 src/make.env
20645 src/makeprog.env
20646 src/makelib.env
20647 Makefile
20648 setup.h:setup.h.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
1e487827 20649EOF
698dcdb6 20650cat >> $CONFIG_STATUS <<EOF
1e487827 20651
698dcdb6
VZ
20652# Protect against being on the right side of a sed subst in config.status.
20653sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
20654 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
20655$ac_vpsub
20656$extrasub
20657s%@SHELL@%$SHELL%g
20658s%@CFLAGS@%$CFLAGS%g
20659s%@CPPFLAGS@%$CPPFLAGS%g
20660s%@CXXFLAGS@%$CXXFLAGS%g
20661s%@FFLAGS@%$FFLAGS%g
20662s%@DEFS@%$DEFS%g
20663s%@LDFLAGS@%$LDFLAGS%g
20664s%@LIBS@%$LIBS%g
20665s%@exec_prefix@%$exec_prefix%g
20666s%@prefix@%$prefix%g
20667s%@program_transform_name@%$program_transform_name%g
20668s%@bindir@%$bindir%g
20669s%@sbindir@%$sbindir%g
20670s%@libexecdir@%$libexecdir%g
20671s%@datadir@%$datadir%g
20672s%@sysconfdir@%$sysconfdir%g
20673s%@sharedstatedir@%$sharedstatedir%g
20674s%@localstatedir@%$localstatedir%g
20675s%@libdir@%$libdir%g
20676s%@includedir@%$includedir%g
20677s%@oldincludedir@%$oldincludedir%g
20678s%@infodir@%$infodir%g
20679s%@mandir@%$mandir%g
20680s%@host@%$host%g
20681s%@host_alias@%$host_alias%g
20682s%@host_cpu@%$host_cpu%g
20683s%@host_vendor@%$host_vendor%g
20684s%@host_os@%$host_os%g
20685s%@target@%$target%g
20686s%@target_alias@%$target_alias%g
20687s%@target_cpu@%$target_cpu%g
20688s%@target_vendor@%$target_vendor%g
20689s%@target_os@%$target_os%g
20690s%@build@%$build%g
20691s%@build_alias@%$build_alias%g
20692s%@build_cpu@%$build_cpu%g
20693s%@build_vendor@%$build_vendor%g
20694s%@build_os@%$build_os%g
20695s%@CC@%$CC%g
20696s%@CPP@%$CPP%g
20697s%@CXX@%$CXX%g
698dcdb6
VZ
20698s%@RANLIB@%$RANLIB%g
20699s%@AR@%$AR%g
20700s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
d6853540 20701s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
6054113a 20702s%@INSTALL_DATA@%$INSTALL_DATA%g
698dcdb6 20703s%@STRIP@%$STRIP%g
613d0995 20704s%@IF_GNU_MAKE@%$IF_GNU_MAKE%g
698dcdb6
VZ
20705s%@YACC@%$YACC%g
20706s%@LEX@%$LEX%g
20707s%@LEXLIB@%$LEXLIB%g
20708s%@LN_S@%$LN_S%g
9e691f46 20709s%@PKG_CONFIG@%$PKG_CONFIG%g
698dcdb6
VZ
20710s%@GTK_CFLAGS@%$GTK_CFLAGS%g
20711s%@GTK_LIBS@%$GTK_LIBS%g
8168de4c 20712s%@GTK_CONFIG@%$GTK_CONFIG%g
698dcdb6
VZ
20713s%@X_CFLAGS@%$X_CFLAGS%g
20714s%@X_PRE_LIBS@%$X_PRE_LIBS%g
20715s%@X_LIBS@%$X_LIBS%g
20716s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
3a922bb4 20717s%@RESCOMP@%$RESCOMP%g
698dcdb6 20718s%@DEREZ@%$DEREZ%g
3a922bb4 20719s%@CXXCPP@%$CXXCPP%g
b040e242 20720s%@LIBICONV@%$LIBICONV%g
698dcdb6
VZ
20721s%@LEX_STEM@%$LEX_STEM%g
20722s%@PATH_IFS@%$PATH_IFS%g
20723s%@WX_MAJOR_VERSION_NUMBER@%$WX_MAJOR_VERSION_NUMBER%g
20724s%@WX_MINOR_VERSION_NUMBER@%$WX_MINOR_VERSION_NUMBER%g
20725s%@WX_RELEASE_NUMBER@%$WX_RELEASE_NUMBER%g
698dcdb6
VZ
20726s%@WX_LIBRARY_NAME_STATIC@%$WX_LIBRARY_NAME_STATIC%g
20727s%@WX_LIBRARY_NAME_SHARED@%$WX_LIBRARY_NAME_SHARED%g
77e13408 20728s%@WX_LIBRARY_IMPORTLIB@%$WX_LIBRARY_IMPORTLIB%g
698dcdb6
VZ
20729s%@WX_TARGET_LIBRARY@%$WX_TARGET_LIBRARY%g
20730s%@WX_LIBRARY_LINK1@%$WX_LIBRARY_LINK1%g
20731s%@WX_LIBRARY_LINK2@%$WX_LIBRARY_LINK2%g
698dcdb6 20732s%@PROGRAM_EXT@%$PROGRAM_EXT%g
698dcdb6
VZ
20733s%@WX_LIBRARY_NAME_STATIC_GL@%$WX_LIBRARY_NAME_STATIC_GL%g
20734s%@WX_LIBRARY_NAME_SHARED_GL@%$WX_LIBRARY_NAME_SHARED_GL%g
698dcdb6
VZ
20735s%@WX_TARGET_LIBRARY_GL@%$WX_TARGET_LIBRARY_GL%g
20736s%@WX_LIBRARY_LINK1_GL@%$WX_LIBRARY_LINK1_GL%g
20737s%@WX_LIBRARY_LINK2_GL@%$WX_LIBRARY_LINK2_GL%g
698dcdb6
VZ
20738s%@WX_ALL@%$WX_ALL%g
20739s%@WX_ALL_INSTALLED@%$WX_ALL_INSTALLED%g
20740s%@SHARED_LD@%$SHARED_LD%g
20741s%@PIC_FLAG@%$PIC_FLAG%g
698dcdb6
VZ
20742s%@CODE_GEN_FLAGS@%$CODE_GEN_FLAGS%g
20743s%@CODE_GEN_FLAGS_CXX@%$CODE_GEN_FLAGS_CXX%g
3a922bb4
RL
20744s%@SONAME_FLAGS@%$SONAME_FLAGS%g
20745s%@SONAME_FLAGS_GL@%$SONAME_FLAGS_GL%g
698dcdb6
VZ
20746s%@WX_TARGET_LIBRARY_SONAME@%$WX_TARGET_LIBRARY_SONAME%g
20747s%@WX_TARGET_LIBRARY_TYPE@%$WX_TARGET_LIBRARY_TYPE%g
20748s%@WXDEBUG_DEFINE@%$WXDEBUG_DEFINE%g
20749s%@USE_GUI@%$USE_GUI%g
20750s%@AFMINSTALL@%$AFMINSTALL%g
20751s%@TOOLKIT@%$TOOLKIT%g
698dcdb6 20752s%@TOOLKIT_DIR@%$TOOLKIT_DIR%g
1e6feb95 20753s%@TOOLKIT_VPATH@%$TOOLKIT_VPATH%g
3a922bb4
RL
20754s%@TOOLCHAIN_NAME@%$TOOLCHAIN_NAME%g
20755s%@TOOLCHAIN_DEFS@%$TOOLCHAIN_DEFS%g
00c81359 20756s%@TOOLCHAIN_DLL_DEFS@%$TOOLCHAIN_DLL_DEFS%g
3a922bb4
RL
20757s%@cross_compiling@%$cross_compiling%g
20758s%@WXCONFIG_LIBS@%$WXCONFIG_LIBS%g
20759s%@WXCONFIG_LIBS_GL@%$WXCONFIG_LIBS_GL%g
885d4bf5
VS
20760s%@WXCONFIG_LIBS_STATIC@%$WXCONFIG_LIBS_STATIC%g
20761s%@WXCONFIG_LIBS_STATIC_GL@%$WXCONFIG_LIBS_STATIC_GL%g
698dcdb6
VZ
20762s%@WXCONFIG_INCLUDE@%$WXCONFIG_INCLUDE%g
20763s%@ALL_OBJECTS@%$ALL_OBJECTS%g
9b695262
VZ
20764s%@ALL_HEADERS@%$ALL_HEADERS%g
20765s%@ALL_SOURCES@%$ALL_SOURCES%g
698dcdb6
VZ
20766s%@GUIDIST@%$GUIDIST%g
20767s%@PORT_FILES@%$PORT_FILES%g
20768s%@DISTDIR@%$DISTDIR%g
698dcdb6 20769s%@SAMPLES_SUBDIRS@%$SAMPLES_SUBDIRS%g
62d0491b 20770s%@LDFLAGS_GL@%$LDFLAGS_GL%g
40f7145c 20771s%@LDFLAGS_EXE@%$LDFLAGS_EXE%g
698dcdb6 20772s%@OPENGL_LIBS@%$OPENGL_LIBS%g
3d63bc3a 20773s%@DMALLOC_LIBS@%$DMALLOC_LIBS%g
698dcdb6 20774s%@EXTRADEFS@%$EXTRADEFS%g
698dcdb6 20775s%@RESFLAGS@%$RESFLAGS%g
3a922bb4 20776s%@RESPROGRAMOBJ@%$RESPROGRAMOBJ%g
e95edd8d
GD
20777s%@WX_RESOURCES_MACOSX_ASCII@%$WX_RESOURCES_MACOSX_ASCII%g
20778s%@WX_RESOURCES_MACOSX_DATA@%$WX_RESOURCES_MACOSX_DATA%g
ef7f2189 20779s%@MACOSX_BUNDLE@%$MACOSX_BUNDLE%g
698dcdb6
VZ
20780s%@LIBWXMACRES@%$LIBWXMACRES%g
20781s%@LIBWXMACRESCOMP@%$LIBWXMACRESCOMP%g
2baaf735 20782s%@LIBWXMACRESWXCONFIG@%$LIBWXMACRESWXCONFIG%g
698dcdb6
VZ
20783s%@DLLTOOL@%$DLLTOOL%g
20784s%@AS@%$AS%g
20785s%@NM@%$NM%g
20786s%@LD@%$LD%g
20787s%@MAKEINFO@%$MAKEINFO%g
885d4bf5 20788s%@INSTALL_LIBRARY@%$INSTALL_LIBRARY%g
698dcdb6
VZ
20789s%@SET_MAKE@%$SET_MAKE%g
20790s%@subdirs@%$subdirs%g
1e487827 20791
1e487827 20792CEOF
1e487827
VS
20793EOF
20794
698dcdb6
VZ
20795cat >> $CONFIG_STATUS <<\EOF
20796
20797# Split the substitutions into bite-sized pieces for seds with
20798# small command number limits, like on Digital OSF/1 and HP-UX.
20799ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
20800ac_file=1 # Number of current file.
20801ac_beg=1 # First line for current file.
20802ac_end=$ac_max_sed_cmds # Line after last line for current file.
20803ac_more_lines=:
20804ac_sed_cmds=""
20805while $ac_more_lines; do
20806 if test $ac_beg -gt 1; then
20807 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
20808 else
20809 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
20810 fi
20811 if test ! -s conftest.s$ac_file; then
20812 ac_more_lines=false
20813 rm -f conftest.s$ac_file
20814 else
20815 if test -z "$ac_sed_cmds"; then
20816 ac_sed_cmds="sed -f conftest.s$ac_file"
10f2d63a 20817 else
698dcdb6 20818 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
10f2d63a 20819 fi
698dcdb6
VZ
20820 ac_file=`expr $ac_file + 1`
20821 ac_beg=$ac_end
20822 ac_end=`expr $ac_end + $ac_max_sed_cmds`
10f2d63a 20823 fi
698dcdb6
VZ
20824done
20825if test -z "$ac_sed_cmds"; then
20826 ac_sed_cmds=cat
20827fi
20828EOF
10f2d63a 20829
698dcdb6
VZ
20830cat >> $CONFIG_STATUS <<EOF
20831
20832CONFIG_FILES=\${CONFIG_FILES-"wx-config
20833 src/make.env
20834 src/makeprog.env
20835 src/makelib.env
20836 Makefile
20837 "}
10f2d63a 20838EOF
698dcdb6
VZ
20839cat >> $CONFIG_STATUS <<\EOF
20840for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
10f2d63a 20841 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
698dcdb6
VZ
20842 case "$ac_file" in
20843 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
20844 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
20845 *) ac_file_in="${ac_file}.in" ;;
10f2d63a
VZ
20846 esac
20847
698dcdb6 20848 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
1e487827 20849
698dcdb6
VZ
20850 # Remove last slash and all that follows it. Not all systems have dirname.
20851 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
20852 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
20853 # The file is in a subdirectory.
20854 test ! -d "$ac_dir" && mkdir "$ac_dir"
20855 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
10f2d63a 20856 # A "../" for each directory in $ac_dir_suffix.
698dcdb6 20857 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
10f2d63a
VZ
20858 else
20859 ac_dir_suffix= ac_dots=
20860 fi
20861
698dcdb6
VZ
20862 case "$ac_given_srcdir" in
20863 .) srcdir=.
20864 if test -z "$ac_dots"; then top_srcdir=.
20865 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
20866 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
10f2d63a 20867 *) # Relative path.
698dcdb6
VZ
20868 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
20869 top_srcdir="$ac_dots$ac_given_srcdir" ;;
10f2d63a
VZ
20870 esac
20871
698dcdb6
VZ
20872 case "$ac_given_INSTALL" in
20873 [/$]*) INSTALL="$ac_given_INSTALL" ;;
20874 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
10f2d63a
VZ
20875 esac
20876
698dcdb6
VZ
20877 echo creating "$ac_file"
20878 rm -f "$ac_file"
20879 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
20880 case "$ac_file" in
20881 *Makefile*) ac_comsub="1i\\
20882# $configure_input" ;;
20883 *) ac_comsub= ;;
20884 esac
10f2d63a 20885
698dcdb6
VZ
20886 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
20887 sed -e "$ac_comsub
20888s%@configure_input@%$configure_input%g
20889s%@srcdir@%$srcdir%g
20890s%@top_srcdir@%$top_srcdir%g
20891s%@INSTALL@%$INSTALL%g
20892" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
20893fi; done
20894rm -f conftest.s*
10f2d63a
VZ
20895
20896# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
20897# NAME is the cpp macro being defined and VALUE is the value it is being given.
20898#
20899# ac_d sets the value in "#define NAME VALUE" lines.
698dcdb6
VZ
20900ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
20901ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
20902ac_dC='\3'
20903ac_dD='%g'
20904# ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
20905ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
20906ac_uB='\([ ]\)%\1#\2define\3'
10f2d63a 20907ac_uC=' '
698dcdb6
VZ
20908ac_uD='\4%g'
20909# ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
20910ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
20911ac_eB='$%\1#\2define\3'
20912ac_eC=' '
20913ac_eD='%g'
10f2d63a 20914
698dcdb6
VZ
20915if test "${CONFIG_HEADERS+set}" != set; then
20916EOF
20917cat >> $CONFIG_STATUS <<EOF
20918 CONFIG_HEADERS="setup.h:setup.h.in"
20919EOF
20920cat >> $CONFIG_STATUS <<\EOF
20921fi
20922for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
10f2d63a 20923 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
698dcdb6
VZ
20924 case "$ac_file" in
20925 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
20926 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
20927 *) ac_file_in="${ac_file}.in" ;;
10f2d63a
VZ
20928 esac
20929
698dcdb6
VZ
20930 echo creating $ac_file
20931
20932 rm -f conftest.frag conftest.in conftest.out
20933 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
20934 cat $ac_file_inputs > conftest.in
20935
20936EOF
20937
20938# Transform confdefs.h into a sed script conftest.vals that substitutes
20939# the proper values into config.h.in to produce config.h. And first:
20940# Protect against being on the right side of a sed subst in config.status.
20941# Protect against being in an unquoted here document in config.status.
20942rm -f conftest.vals
20943cat > conftest.hdr <<\EOF
20944s/[\\&%]/\\&/g
20945s%[\\$`]%\\&%g
20946s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
20947s%ac_d%ac_u%gp
20948s%ac_u%ac_e%gp
20949EOF
20950sed -n -f conftest.hdr confdefs.h > conftest.vals
20951rm -f conftest.hdr
10f2d63a
VZ
20952
20953# This sed command replaces #undef with comments. This is necessary, for
20954# example, in the case of _POSIX_SOURCE, which is predefined and required
20955# on some systems where configure will not decide to define it.
698dcdb6
VZ
20956cat >> conftest.vals <<\EOF
20957s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
10f2d63a
VZ
20958EOF
20959
698dcdb6
VZ
20960# Break up conftest.vals because some shells have a limit on
20961# the size of here documents, and old seds have small limits too.
10f2d63a
VZ
20962
20963rm -f conftest.tail
698dcdb6 20964while :
10f2d63a 20965do
698dcdb6
VZ
20966 ac_lines=`grep -c . conftest.vals`
20967 # grep -c gives empty output for an empty file on some AIX systems.
20968 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
20969 # Write a limited-size here document to conftest.frag.
20970 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
20971 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
10f2d63a 20972 echo 'CEOF
698dcdb6
VZ
20973 sed -f conftest.frag conftest.in > conftest.out
20974 rm -f conftest.in
20975 mv conftest.out conftest.in
20976' >> $CONFIG_STATUS
20977 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
20978 rm -f conftest.vals
20979 mv conftest.tail conftest.vals
10f2d63a 20980done
698dcdb6
VZ
20981rm -f conftest.vals
20982
20983cat >> $CONFIG_STATUS <<\EOF
20984 rm -f conftest.frag conftest.h
20985 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
20986 cat conftest.in >> conftest.h
20987 rm -f conftest.in
20988 if cmp -s $ac_file conftest.h 2>/dev/null; then
20989 echo "$ac_file is unchanged"
20990 rm -f conftest.h
10f2d63a 20991 else
698dcdb6
VZ
20992 # Remove last slash and all that follows it. Not all systems have dirname.
20993 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
10f2d63a 20994 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
698dcdb6
VZ
20995 # The file is in a subdirectory.
20996 test ! -d "$ac_dir" && mkdir "$ac_dir"
10f2d63a 20997 fi
698dcdb6
VZ
20998 rm -f $ac_file
20999 mv conftest.h $ac_file
10f2d63a 21000 fi
698dcdb6
VZ
21001fi; done
21002
10f2d63a 21003EOF
698dcdb6 21004cat >> $CONFIG_STATUS <<EOF
10f2d63a 21005
3a922bb4 21006 TOOLCHAIN_NAME="${TOOLCHAIN_NAME}"
698dcdb6
VZ
21007 LN_S="${LN_S}"
21008
21009
21010EOF
21011cat >> $CONFIG_STATUS <<\EOF
10f2d63a 21012
652d930d 21013 if test ! -h wx-config; then
991a5759 21014 chmod +x wx-config
3a922bb4
RL
21015 mv wx-config wx${TOOLCHAIN_NAME}-config
21016 ${LN_S} wx${TOOLCHAIN_NAME}-config wx-config
991a5759 21017 fi
665bbe97 21018
00cf1208
RR
21019 if test ! -d lib; then
21020 mkdir lib
21021 fi
21022 if test ! -d lib/wx; then
21023 mkdir lib/wx
21024 fi
21025 if test ! -d lib/wx/include; then
21026 mkdir lib/wx/include
21027 fi
3a922bb4
RL
21028 if test ! -d lib/wx/include/${TOOLCHAIN_NAME}; then
21029 mkdir lib/wx/include/${TOOLCHAIN_NAME}
00cf1208 21030 fi
3a922bb4
RL
21031 if test ! -d lib/wx/include/${TOOLCHAIN_NAME}/wx; then
21032 mkdir lib/wx/include/${TOOLCHAIN_NAME}/wx
00cf1208
RR
21033 fi
21034 if test -f setup.h; then
3a922bb4 21035 mv -f setup.h lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h
00cf1208 21036 fi
698dcdb6
VZ
21037
21038exit 0
10f2d63a
VZ
21039EOF
21040chmod +x $CONFIG_STATUS
698dcdb6
VZ
21041rm -fr confdefs* $ac_clean_files
21042test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
10f2d63a 21043
2224580a
VZ
21044if test "$no_recursion" != yes; then
21045
21046 # Remove --cache-file and --srcdir arguments so they do not pile up.
21047 ac_sub_configure_args=
21048 ac_prev=
21049 for ac_arg in $ac_configure_args; do
21050 if test -n "$ac_prev"; then
21051 ac_prev=
21052 continue
21053 fi
698dcdb6 21054 case "$ac_arg" in
2224580a
VZ
21055 -cache-file | --cache-file | --cache-fil | --cache-fi \
21056 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
21057 ac_prev=cache_file ;;
21058 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
698dcdb6 21059 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
2224580a
VZ
21060 ;;
21061 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
21062 ac_prev=srcdir ;;
21063 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
21064 ;;
21065 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
21066 esac
21067 done
21068
8f4a9a10 21069 for ac_config_dir in demos samples utils contrib; do
2224580a
VZ
21070
21071 # Do not complain, so a configure script can configure whichever
21072 # parts of a large source tree are present.
698dcdb6
VZ
21073 if test ! -d $srcdir/$ac_config_dir; then
21074 continue
21075 fi
21076
21077 echo configuring in $ac_config_dir
2224580a 21078
698dcdb6 21079 case "$srcdir" in
2224580a
VZ
21080 .) ;;
21081 *)
698dcdb6
VZ
21082 if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
21083 else
21084 { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
21085 fi
21086 ;;
2224580a
VZ
21087 esac
21088
21089 ac_popdir=`pwd`
698dcdb6 21090 cd $ac_config_dir
2224580a 21091
698dcdb6
VZ
21092 # A "../" for each directory in /$ac_config_dir.
21093 ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
2224580a 21094
698dcdb6 21095 case "$srcdir" in
2224580a
VZ
21096 .) # No --srcdir option. We are building in place.
21097 ac_sub_srcdir=$srcdir ;;
698dcdb6
VZ
21098 /*) # Absolute path.
21099 ac_sub_srcdir=$srcdir/$ac_config_dir ;;
2224580a 21100 *) # Relative path.
698dcdb6 21101 ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
2224580a
VZ
21102 esac
21103
21104 # Check for guested configure; otherwise get Cygnus style configure.
698dcdb6
VZ
21105 if test -f $ac_sub_srcdir/configure; then
21106 ac_sub_configure=$ac_sub_srcdir/configure
2224580a
VZ
21107 elif test -f $ac_sub_srcdir/configure.in; then
21108 ac_sub_configure=$ac_configure
21109 else
698dcdb6 21110 echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
2224580a
VZ
21111 ac_sub_configure=
21112 fi
21113
21114 # The recursion is here.
21115 if test -n "$ac_sub_configure"; then
698dcdb6 21116
2224580a 21117 # Make the cache file name correct relative to the subdirectory.
698dcdb6
VZ
21118 case "$cache_file" in
21119 /*) ac_sub_cache_file=$cache_file ;;
2224580a 21120 *) # Relative path.
698dcdb6 21121 ac_sub_cache_file="$ac_dots$cache_file" ;;
2224580a 21122 esac
698dcdb6
VZ
21123 case "$ac_given_INSTALL" in
21124 [/$]*) INSTALL="$ac_given_INSTALL" ;;
21125 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
21126 esac
2224580a 21127
698dcdb6 21128 echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
2224580a 21129 # The eval makes quoting arguments work.
698dcdb6
VZ
21130 if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
21131 then :
21132 else
21133 { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }
21134 fi
2224580a
VZ
21135 fi
21136
21137 cd $ac_popdir
21138 done
21139fi
21140
698dcdb6 21141