]> git.saurik.com Git - wxWidgets.git/blame - configure
added a fix for cygwin and cleaned up wxGetWorkingDirectory()
[wxWidgets.git] / configure
CommitLineData
10f2d63a
VZ
1#! /bin/sh
2
698dcdb6 3# From configure.in Id: configure.in
703e0a69
VZ
4
5
6
7
8
703e0a69
VZ
9
10
1e487827 11
1e487827 12
698dcdb6
VZ
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
698dcdb6
VZ
42
43
44# Guess values for system-dependent variables and create Makefiles.
45# Generated automatically using autoconf version 2.13
46# Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
47#
48# This configure script is free software; the Free Software Foundation
49# gives unlimited permission to copy, distribute and modify it.
50
51# Defaults:
52ac_help=
53ac_default_prefix=/usr/local
54# Any additions from configure.in:
55ac_help="$ac_help
8168de4c 56 --enable-gui use GUI classes"
1e6feb95 57ac_help="$ac_help
8168de4c 58 --enable-universal use wxWindows GUI controls instead of native ones"
698dcdb6
VZ
59ac_help="$ac_help
60 --with-gtk use GTK+"
61ac_help="$ac_help
62 --with-motif use Motif/Lesstif"
63ac_help="$ac_help
64 --with-mac use Mac OS X"
65ac_help="$ac_help
66 --with-wine use WINE"
67ac_help="$ac_help
77e13408 68 --with-msw use MS-Windows"
698dcdb6
VZ
69ac_help="$ac_help
70 --with-pm use OS/2 Presentation Manager"
1e6feb95 71ac_help="$ac_help
b3e8d00a 72 --with-mgl use SciTech MGL"
1725144d
RR
73ac_help="$ac_help
74 --with-microwin use MicroWindows"
698dcdb6 75ac_help="$ac_help
8168de4c 76 --enable-gtk2 use GTK+ 2.0 if available (EXPERIMENTAL)"
698dcdb6 77ac_help="$ac_help
8168de4c 78 --with-libpng use libpng (PNG image format)"
698dcdb6 79ac_help="$ac_help
8168de4c 80 --with-libjpeg use libjpeg (JPEG file format)"
698dcdb6 81ac_help="$ac_help
8168de4c 82 --with-libtiff use libtiff (TIFF file format)"
698dcdb6 83ac_help="$ac_help
8168de4c 84 --with-freetype use freetype (font rasterizer)"
698dcdb6 85ac_help="$ac_help
8168de4c 86 --with-opengl use OpenGL (or Mesa)"
698dcdb6 87ac_help="$ac_help
d0e9b150 88 --with-dmalloc use dmalloc library (http://dmalloc.com/)"
3e44f09d
VZ
89ac_help="$ac_help
90 --with-regex enable support for wxRegEx class"
698dcdb6 91ac_help="$ac_help
8168de4c 92 --with-zlib use zlib for LZW compression"
698dcdb6 93ac_help="$ac_help
8168de4c 94 --with-odbc use the IODBC and wxODBC classes"
698dcdb6 95ac_help="$ac_help
8168de4c 96 --enable-shared create shared library code"
698dcdb6 97ac_help="$ac_help
3a922bb4 98 --enable-soname set the DT_SONAME field in ELF shared libraries"
698dcdb6 99ac_help="$ac_help
8168de4c 100 --enable-optimise create optimised code"
698dcdb6 101ac_help="$ac_help
8168de4c 102 --enable-debug same as debug_flag and debug_info"
683dccda
GD
103ac_help="$ac_help
104 --enable-precomp enable use of precompiled headers (Mac OS X)"
698dcdb6 105ac_help="$ac_help
8168de4c 106 --enable-debug_flag set __WXDEBUG__ flag (recommended for developers!)"
698dcdb6 107ac_help="$ac_help
8168de4c 108 --enable-debug_info create code with debugging information"
698dcdb6 109ac_help="$ac_help
8168de4c 110 --enable-debug_gdb create code with extra GDB debugging information"
698dcdb6 111ac_help="$ac_help
8168de4c 112 --enable-debug_cntxt use wxDebugContext"
698dcdb6 113ac_help="$ac_help
8168de4c 114 --enable-mem_tracing create code with memory tracing"
698dcdb6 115ac_help="$ac_help
8168de4c 116 --enable-profile create code with profiling information"
698dcdb6 117ac_help="$ac_help
8168de4c 118 --enable-no_rtti create code without RTTI information"
698dcdb6 119ac_help="$ac_help
b3e8d00a 120 --enable-no_exceptions create code without C++ exceptions handling"
698dcdb6 121ac_help="$ac_help
8168de4c 122 --enable-permissive compile code disregarding strict ANSI"
698dcdb6 123ac_help="$ac_help
8168de4c 124 --enable-no_deps create code without dependency information"
54276ccf 125ac_help="$ac_help
b3e8d00a 126 --enable-compat20 enable wxWindows 2.0 compatibility"
54276ccf 127ac_help="$ac_help
b3e8d00a 128 --enable-compat22 enable wxWindows 2.2 compatibility"
698dcdb6 129ac_help="$ac_help
8168de4c 130 --enable-intl use internationalization system"
698dcdb6 131ac_help="$ac_help
8168de4c 132 --enable-config use wxConfig (and derived) classes"
a1622950
VZ
133ac_help="$ac_help
134 --enable-protocols use wxProtocol and derived classes"
135ac_help="$ac_help
136 --enable-ftp use wxFTP (requires wxProtocol"
137ac_help="$ac_help
138 --enable-http use wxHTTP (requires wxProtocol"
139ac_help="$ac_help
140 --enable-fileproto use wxFileProto class (requires wxProtocol"
698dcdb6 141ac_help="$ac_help
8168de4c 142 --enable-sockets use socket/network classes"
698dcdb6 143ac_help="$ac_help
8168de4c 144 --enable-ipc use interprocess communication (wxSocket etc.)"
698dcdb6 145ac_help="$ac_help
8168de4c 146 --enable-cmdline use wxCmdLineParser class"
1e6feb95 147ac_help="$ac_help
8168de4c 148 --enable-datetime use wxDateTime class"
1e6feb95 149ac_help="$ac_help
8168de4c 150 --enable-timedate use obsolete wxDate/wxTime classes"
1e6feb95 151ac_help="$ac_help
8168de4c 152 --enable-stopwatch use wxStopWatch class"
1e6feb95 153ac_help="$ac_help
8168de4c 154 --enable-dialupman use dialup network classes"
698dcdb6 155ac_help="$ac_help
8168de4c 156 --enable-apple_ieee use the Apple IEEE codec"
698dcdb6 157ac_help="$ac_help
8168de4c 158 --enable-timer use wxTimer class"
698dcdb6 159ac_help="$ac_help
8168de4c 160 --enable-wave use wxWave class"
698dcdb6 161ac_help="$ac_help
8168de4c 162 --enable-fraction use wxFraction class"
698dcdb6 163ac_help="$ac_help
8168de4c 164 --enable-dynlib use wxLibrary class for DLL loading"
0b9ab0bd
RL
165ac_help="$ac_help
166 --enable-dynamicloader use (new) wxDynamicLibrary class"
698dcdb6 167ac_help="$ac_help
8168de4c 168 --enable-longlong use wxLongLong class"
698dcdb6 169ac_help="$ac_help
8168de4c 170 --enable-geometry use geometry class"
698dcdb6 171ac_help="$ac_help
8168de4c 172 --enable-log use logging system"
698dcdb6 173ac_help="$ac_help
8168de4c 174 --enable-streams use wxStream etc classes"
698dcdb6 175ac_help="$ac_help
8168de4c 176 --enable-file use wxFile classes"
698dcdb6 177ac_help="$ac_help
8168de4c 178 --enable-ffile use wxFFile classes"
1e6feb95 179ac_help="$ac_help
a3a584a7
VZ
180 --enable-textbuf use wxTextBuffer class"
181ac_help="$ac_help
182 --enable-textfile use wxTextFile class"
698dcdb6 183ac_help="$ac_help
8168de4c 184 --enable-fontmap use font encodings conversion classes"
1e6feb95 185ac_help="$ac_help
8168de4c 186 --enable-unicode compile wxString with Unicode support"
a72a4bfa
VS
187ac_help="$ac_help
188 --enable-mslu use MS Layer for Unicode on Windows 9x (win32 only)"
698dcdb6 189ac_help="$ac_help
8168de4c 190 --enable-wxprintfv use wxWindows implementation of vprintf()"
698dcdb6 191ac_help="$ac_help
8168de4c 192 --enable-std_iostreams use standard C++ stream classes"
698dcdb6 193ac_help="$ac_help
8168de4c 194 --enable-filesystem use virtual file systems classes"
698dcdb6 195ac_help="$ac_help
8168de4c 196 --enable-fs_inet use virtual HTTP/FTP filesystems"
698dcdb6 197ac_help="$ac_help
8168de4c 198 --enable-fs_zip use virtual ZIP filesystems"
698dcdb6 199ac_help="$ac_help
8168de4c 200 --enable-zipstream use wxZipInputStream"
698dcdb6 201ac_help="$ac_help
8168de4c 202 --enable-catch_segvs catch signals and pass them to wxApp::OnFatalException"
698dcdb6 203ac_help="$ac_help
8168de4c 204 --enable-snglinst use wxSingleInstanceChecker class"
698dcdb6 205ac_help="$ac_help
69d27ff7 206 --enable-mimetype use wxMimeTypesManager"
3e44f09d 207ac_help="$ac_help
b3e8d00a 208 --enable-sysoptions use wxSystemOptions"
4cdb0ab0
VS
209ac_help="$ac_help
210 --enable-url use wxURL class"
211ac_help="$ac_help
212 --enable-protocol use wxProtocol class"
213ac_help="$ac_help
214 --enable-protocol-http HTTP support in wxProtocol"
215ac_help="$ac_help
216 --enable-protocol-ftp FTP support in wxProtocol"
217ac_help="$ac_help
218 --enable-protocol-file FILE support in wxProtocol"
1e6feb95 219ac_help="$ac_help
8168de4c 220 --enable-threads use threads"
698dcdb6 221ac_help="$ac_help
8168de4c 222 --enable-docview use document view architecture"
698dcdb6 223ac_help="$ac_help
3379ed37 224 --enable-help use help subsystem"
29fd3c0c
VS
225ac_help="$ac_help
226 --enable-mshtmlhelp use MS HTML Help (win32)"
3379ed37
VZ
227ac_help="$ac_help
228 --enable-html use wxHTML sub-library"
229ac_help="$ac_help
230 --enable-htmlhelp use wxHTML-based help"
698dcdb6 231ac_help="$ac_help
8168de4c 232 --enable-constraints use layout-constraints system"
698dcdb6 233ac_help="$ac_help
8168de4c 234 --enable-printarch use printing architecture"
698dcdb6 235ac_help="$ac_help
8168de4c 236 --enable-mdi use multiple document interface architecture"
698dcdb6 237ac_help="$ac_help
8168de4c 238 --enable-loggui use standard GUI logger"
1e6feb95 239ac_help="$ac_help
8168de4c 240 --enable-logwin use wxLogWindow"
69d27ff7
MB
241ac_help="$ac_help
242 --enable-logdialog use wxLogDialog"
1e6feb95 243ac_help="$ac_help
8168de4c 244 --enable-postscript use wxPostscriptDC device context (default for gtk+)"
698dcdb6 245ac_help="$ac_help
8168de4c 246 --enable-prologio use Prolog IO library"
698dcdb6 247ac_help="$ac_help
8168de4c 248 --enable-resources use wxWindows resources"
698dcdb6 249ac_help="$ac_help
8168de4c 250 --enable-xresources use X resources for save (default for gtk+)"
698dcdb6 251ac_help="$ac_help
8168de4c 252 --enable-clipboard use wxClipboard classes"
698dcdb6 253ac_help="$ac_help
8168de4c 254 --enable-dnd use Drag'n'Drop classes"
698dcdb6 255ac_help="$ac_help
8168de4c 256 --enable-metafile use win32 metafiles"
698dcdb6 257ac_help="$ac_help
24176f2c 258 --enable-treelayout use wxTreeLayout classes"
698dcdb6 259ac_help="$ac_help
8168de4c 260 --enable-controls use all usual controls"
698dcdb6 261ac_help="$ac_help
8168de4c 262 --enable-accel use accelerators"
698dcdb6 263ac_help="$ac_help
8168de4c 264 --enable-button use wxButton class"
698dcdb6 265ac_help="$ac_help
8168de4c 266 --enable-bmpbutton use wxBitmapButton class"
698dcdb6 267ac_help="$ac_help
8168de4c 268 --enable-calendar use wxCalendarCtrl class"
1e6feb95 269ac_help="$ac_help
8168de4c 270 --enable-caret use wxCaret class"
1e6feb95 271ac_help="$ac_help
8168de4c 272 --enable-checkbox use wxCheckBox class"
698dcdb6 273ac_help="$ac_help
8168de4c 274 --enable-checklst use wxCheckListBox (listbox with checkboxes) class"
698dcdb6 275ac_help="$ac_help
8168de4c 276 --enable-choice use wxChoice class"
698dcdb6 277ac_help="$ac_help
8168de4c 278 --enable-combobox use wxComboBox classes"
698dcdb6 279ac_help="$ac_help
8168de4c 280 --enable-gauge use wxGauge class"
698dcdb6 281ac_help="$ac_help
8168de4c 282 --enable-grid use wxGrid class"
698dcdb6 283ac_help="$ac_help
8168de4c 284 --enable-newgrid use new wxGrid class"
698dcdb6 285ac_help="$ac_help
8168de4c 286 --enable-imaglist use wxImageList class"
698dcdb6 287ac_help="$ac_help
8168de4c 288 --enable-listbox use wxListBox class"
698dcdb6 289ac_help="$ac_help
8168de4c 290 --enable-listctrl use wxListCtrl class"
698dcdb6 291ac_help="$ac_help
8168de4c 292 --enable-notebook use wxNotebook class"
24176f2c
GD
293ac_help="$ac_help
294 --enable-propsheet use wxPropertySheet class"
698dcdb6 295ac_help="$ac_help
8168de4c 296 --enable-radiobox use wxRadioBox class"
698dcdb6 297ac_help="$ac_help
8168de4c 298 --enable-radiobtn use wxRadioButton class"
698dcdb6 299ac_help="$ac_help
8168de4c 300 --enable-sash use wxSashWindow class"
698dcdb6 301ac_help="$ac_help
8168de4c 302 --enable-scrollbar use wxScrollBar class and scrollable windows"
698dcdb6 303ac_help="$ac_help
8168de4c 304 --enable-slider use wxSlider class"
698dcdb6 305ac_help="$ac_help
8168de4c 306 --enable-spinbtn use wxSpinButton class"
698dcdb6 307ac_help="$ac_help
8168de4c 308 --enable-spinctrl use wxSpinCtrl class"
698dcdb6 309ac_help="$ac_help
8168de4c 310 --enable-splitter use wxSplitterWindow class"
698dcdb6 311ac_help="$ac_help
8168de4c 312 --enable-statbmp use wxStaticBitmap class"
698dcdb6 313ac_help="$ac_help
8168de4c 314 --enable-statbox use wxStaticBox class"
698dcdb6 315ac_help="$ac_help
8168de4c 316 --enable-statline use wxStaticLine class"
698dcdb6 317ac_help="$ac_help
8168de4c 318 --enable-stattext use wxStaticText class"
1e6feb95 319ac_help="$ac_help
8168de4c 320 --enable-statusbar use wxStatusBar class"
698dcdb6 321ac_help="$ac_help
8168de4c 322 --enable-tabdialog use wxTabControl class"
698dcdb6 323ac_help="$ac_help
8168de4c 324 --enable-textctrl use wxTextCtrl class"
1e6feb95 325ac_help="$ac_help
8168de4c 326 --enable-togglebtn use wxToggleButton class"
698dcdb6 327ac_help="$ac_help
8168de4c 328 --enable-toolbar use wxToolBar class"
698dcdb6 329ac_help="$ac_help
8168de4c 330 --enable-tbarnative use native wxToolBar class"
698dcdb6 331ac_help="$ac_help
8168de4c 332 --enable-tbarsmpl use wxToolBarSimple class"
698dcdb6 333ac_help="$ac_help
8168de4c 334 --enable-treectrl use wxTreeCtrl class"
9926e4a4
VZ
335ac_help="$ac_help
336 --enable-tipwindow use wxTipWindow class"
9f41d601
RR
337ac_help="$ac_help
338 --enable-popupwin use wxPopUpWindow class"
698dcdb6 339ac_help="$ac_help
b3e8d00a 340 --enable-commondlg use all common dialogs"
698dcdb6 341ac_help="$ac_help
8168de4c 342 --enable-choicedlg use wxChoiceDialog"
1e6feb95 343ac_help="$ac_help
8168de4c 344 --enable-coldlg use wxColourDialog"
1e6feb95 345ac_help="$ac_help
8168de4c 346 --enable-filedlg use wxFileDialog"
8db37e06
VZ
347ac_help="$ac_help
348 --enable-finddlg use wxFindReplaceDialog"
1e6feb95 349ac_help="$ac_help
8168de4c 350 --enable-fontdlg use wxFontDialog"
1e6feb95 351ac_help="$ac_help
8168de4c 352 --enable-dirdlg use wxDirDialog"
698dcdb6 353ac_help="$ac_help
8168de4c 354 --enable-msgdlg use wxMessageDialog"
1e6feb95 355ac_help="$ac_help
8168de4c 356 --enable-numberdlg use wxNumberEntryDialog"
cbca9943
VZ
357ac_help="$ac_help
358 --enable-splash use wxSplashScreen"
1e6feb95 359ac_help="$ac_help
8168de4c 360 --enable-textdlg use wxTextDialog"
698dcdb6 361ac_help="$ac_help
8168de4c 362 --enable-tipdlg use startup tips"
698dcdb6 363ac_help="$ac_help
8168de4c 364 --enable-progressdlg use wxProgressDialog"
b1f5d087
VZ
365ac_help="$ac_help
366 --enable-wizarddlg use wxWizard"
698dcdb6 367ac_help="$ac_help
8168de4c 368 --enable-menus use wxMenu/wxMenuBar/wxMenuItem classes"
1e6feb95 369ac_help="$ac_help
8168de4c 370 --enable-miniframe use wxMiniFrame class"
698dcdb6 371ac_help="$ac_help
8168de4c 372 --enable-tooltips use wxToolTip class"
698dcdb6 373ac_help="$ac_help
8168de4c 374 --enable-splines use spline drawing code"
698dcdb6 375ac_help="$ac_help
8168de4c 376 --enable-validators use wxValidator and derived classes"
698dcdb6 377ac_help="$ac_help
8168de4c 378 --enable-busyinfo use wxBusyInfo"
698dcdb6 379ac_help="$ac_help
b3e8d00a 380 --enable-joystick use wxJoystick (Linux only)"
698dcdb6 381ac_help="$ac_help
8168de4c 382 --enable-metafiles use wxMetaFile (Windows only)"
24fd6d87
VZ
383ac_help="$ac_help
384 --enable-dragimage use wxDragImage"
edae8572
VZ
385ac_help="$ac_help
386 --enable-palette use wxPalette class"
1e6feb95 387ac_help="$ac_help
8168de4c 388 --enable-image use wxImage class"
698dcdb6 389ac_help="$ac_help
8168de4c 390 --enable-gif use gif images (GIF file format)"
698dcdb6 391ac_help="$ac_help
8168de4c 392 --enable-pcx use pcx images (PCX file format)"
698dcdb6 393ac_help="$ac_help
8168de4c 394 --enable-pnm use pnm images (PNM file format)"
698dcdb6 395ac_help="$ac_help
8168de4c 396 --enable-xpm use xpm images (XPM file format)"
658974ae
VS
397ac_help="$ac_help
398 --enable-icocur use Windows ICO and CUR formats"
698dcdb6
VZ
399ac_help="$ac_help
400 --with-gtk-prefix=PFX Prefix where GTK is installed (optional)"
401ac_help="$ac_help
402 --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)"
403ac_help="$ac_help
404 --disable-gtktest Do not try to compile and run a test GTK program"
3f345b47
VZ
405ac_help="$ac_help
406 --with-gtk-prefix=PFX Prefix where GTK is installed (optional)"
407ac_help="$ac_help
408 --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)"
409ac_help="$ac_help
410 --disable-gtktest Do not try to compile and run a test GTK program"
411ac_help="$ac_help
412 --with-gtk-prefix=PFX Prefix where GTK is installed (optional)"
413ac_help="$ac_help
414 --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)"
415ac_help="$ac_help
416 --disable-gtktest Do not try to compile and run a test GTK program"
698dcdb6
VZ
417ac_help="$ac_help
418 --with-x use the X Window System"
10f2d63a
VZ
419
420# Initialize some variables set by options.
421# The variables have the same names as the options, with
422# dashes changed to underlines.
698dcdb6
VZ
423build=NONE
424cache_file=./config.cache
10f2d63a 425exec_prefix=NONE
698dcdb6 426host=NONE
10f2d63a 427no_create=
698dcdb6 428nonopt=NONE
10f2d63a
VZ
429no_recursion=
430prefix=NONE
431program_prefix=NONE
432program_suffix=NONE
433program_transform_name=s,x,x,
434silent=
435site=
436srcdir=
698dcdb6 437target=NONE
10f2d63a
VZ
438verbose=
439x_includes=NONE
440x_libraries=NONE
441bindir='${exec_prefix}/bin'
442sbindir='${exec_prefix}/sbin'
443libexecdir='${exec_prefix}/libexec'
444datadir='${prefix}/share'
445sysconfdir='${prefix}/etc'
446sharedstatedir='${prefix}/com'
447localstatedir='${prefix}/var'
448libdir='${exec_prefix}/lib'
449includedir='${prefix}/include'
450oldincludedir='/usr/include'
451infodir='${prefix}/info'
452mandir='${prefix}/man'
453
698dcdb6
VZ
454# Initialize some other variables.
455subdirs=
456MFLAGS= MAKEFLAGS=
457SHELL=${CONFIG_SHELL-/bin/sh}
458# Maximum number of lines to put in a shell here document.
459ac_max_here_lines=12
10f2d63a
VZ
460
461ac_prev=
462for ac_option
463do
698dcdb6 464
10f2d63a
VZ
465 # If the previous option needs an argument, assign it.
466 if test -n "$ac_prev"; then
467 eval "$ac_prev=\$ac_option"
468 ac_prev=
469 continue
470 fi
471
698dcdb6
VZ
472 case "$ac_option" in
473 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
474 *) ac_optarg= ;;
475 esac
10f2d63a
VZ
476
477 # Accept the important Cygnus configure options, so we can diagnose typos.
478
698dcdb6 479 case "$ac_option" in
10f2d63a
VZ
480
481 -bindir | --bindir | --bindi | --bind | --bin | --bi)
482 ac_prev=bindir ;;
483 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
698dcdb6 484 bindir="$ac_optarg" ;;
10f2d63a
VZ
485
486 -build | --build | --buil | --bui | --bu)
698dcdb6 487 ac_prev=build ;;
10f2d63a 488 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
698dcdb6 489 build="$ac_optarg" ;;
10f2d63a
VZ
490
491 -cache-file | --cache-file | --cache-fil | --cache-fi \
492 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
493 ac_prev=cache_file ;;
494 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
495 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
698dcdb6 496 cache_file="$ac_optarg" ;;
10f2d63a
VZ
497
498 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
499 ac_prev=datadir ;;
500 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
501 | --da=*)
698dcdb6 502 datadir="$ac_optarg" ;;
10f2d63a
VZ
503
504 -disable-* | --disable-*)
698dcdb6 505 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
10f2d63a 506 # Reject names that are not valid shell variable names.
698dcdb6
VZ
507 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
508 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
509 fi
510 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
511 eval "enable_${ac_feature}=no" ;;
10f2d63a
VZ
512
513 -enable-* | --enable-*)
698dcdb6 514 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
10f2d63a 515 # Reject names that are not valid shell variable names.
698dcdb6
VZ
516 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
517 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
518 fi
519 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
520 case "$ac_option" in
521 *=*) ;;
10f2d63a
VZ
522 *) ac_optarg=yes ;;
523 esac
698dcdb6 524 eval "enable_${ac_feature}='$ac_optarg'" ;;
10f2d63a
VZ
525
526 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
527 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
528 | --exec | --exe | --ex)
529 ac_prev=exec_prefix ;;
530 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
531 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
532 | --exec=* | --exe=* | --ex=*)
698dcdb6 533 exec_prefix="$ac_optarg" ;;
10f2d63a
VZ
534
535 -gas | --gas | --ga | --g)
536 # Obsolete; use --with-gas.
537 with_gas=yes ;;
538
698dcdb6
VZ
539 -help | --help | --hel | --he)
540 # Omit some internal or obsolete options to make the list less imposing.
541 # This message is too long to be a string in the A/UX 3.1 sh.
542 cat << EOF
543Usage: configure [options] [host]
544Options: [defaults in brackets after descriptions]
545Configuration:
546 --cache-file=FILE cache test results in FILE
547 --help print this message
548 --no-create do not create output files
549 --quiet, --silent do not print \`checking...' messages
550 --version print the version of autoconf that created configure
551Directory and file names:
552 --prefix=PREFIX install architecture-independent files in PREFIX
553 [$ac_default_prefix]
554 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
555 [same as prefix]
556 --bindir=DIR user executables in DIR [EPREFIX/bin]
557 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
558 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
559 --datadir=DIR read-only architecture-independent data in DIR
560 [PREFIX/share]
561 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
562 --sharedstatedir=DIR modifiable architecture-independent data in DIR
563 [PREFIX/com]
564 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
565 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
566 --includedir=DIR C header files in DIR [PREFIX/include]
567 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
568 --infodir=DIR info documentation in DIR [PREFIX/info]
569 --mandir=DIR man documentation in DIR [PREFIX/man]
570 --srcdir=DIR find the sources in DIR [configure dir or ..]
571 --program-prefix=PREFIX prepend PREFIX to installed program names
572 --program-suffix=SUFFIX append SUFFIX to installed program names
573 --program-transform-name=PROGRAM
574 run sed PROGRAM on installed program names
575EOF
576 cat << EOF
577Host type:
578 --build=BUILD configure for building on BUILD [BUILD=HOST]
579 --host=HOST configure for HOST [guessed]
580 --target=TARGET configure for TARGET [TARGET=HOST]
581Features and packages:
582 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
583 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
584 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
585 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
586 --x-includes=DIR X include files are in DIR
587 --x-libraries=DIR X library files are in DIR
588EOF
589 if test -n "$ac_help"; then
590 echo "--enable and --with options recognized:$ac_help"
591 fi
592 exit 0 ;;
10f2d63a
VZ
593
594 -host | --host | --hos | --ho)
698dcdb6 595 ac_prev=host ;;
10f2d63a 596 -host=* | --host=* | --hos=* | --ho=*)
698dcdb6 597 host="$ac_optarg" ;;
10f2d63a
VZ
598
599 -includedir | --includedir | --includedi | --included | --include \
600 | --includ | --inclu | --incl | --inc)
601 ac_prev=includedir ;;
602 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
603 | --includ=* | --inclu=* | --incl=* | --inc=*)
698dcdb6 604 includedir="$ac_optarg" ;;
10f2d63a
VZ
605
606 -infodir | --infodir | --infodi | --infod | --info | --inf)
607 ac_prev=infodir ;;
608 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
698dcdb6 609 infodir="$ac_optarg" ;;
10f2d63a
VZ
610
611 -libdir | --libdir | --libdi | --libd)
612 ac_prev=libdir ;;
613 -libdir=* | --libdir=* | --libdi=* | --libd=*)
698dcdb6 614 libdir="$ac_optarg" ;;
10f2d63a
VZ
615
616 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
617 | --libexe | --libex | --libe)
618 ac_prev=libexecdir ;;
619 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
620 | --libexe=* | --libex=* | --libe=*)
698dcdb6 621 libexecdir="$ac_optarg" ;;
10f2d63a
VZ
622
623 -localstatedir | --localstatedir | --localstatedi | --localstated \
624 | --localstate | --localstat | --localsta | --localst \
625 | --locals | --local | --loca | --loc | --lo)
626 ac_prev=localstatedir ;;
627 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
628 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
629 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
698dcdb6 630 localstatedir="$ac_optarg" ;;
10f2d63a
VZ
631
632 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
633 ac_prev=mandir ;;
634 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
698dcdb6 635 mandir="$ac_optarg" ;;
10f2d63a
VZ
636
637 -nfp | --nfp | --nf)
638 # Obsolete; use --without-fp.
639 with_fp=no ;;
640
641 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
642 | --no-cr | --no-c)
643 no_create=yes ;;
644
645 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
646 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
647 no_recursion=yes ;;
648
649 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
650 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
651 | --oldin | --oldi | --old | --ol | --o)
652 ac_prev=oldincludedir ;;
653 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
654 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
655 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
698dcdb6 656 oldincludedir="$ac_optarg" ;;
10f2d63a
VZ
657
658 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
659 ac_prev=prefix ;;
660 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
698dcdb6 661 prefix="$ac_optarg" ;;
10f2d63a
VZ
662
663 -program-prefix | --program-prefix | --program-prefi | --program-pref \
664 | --program-pre | --program-pr | --program-p)
665 ac_prev=program_prefix ;;
666 -program-prefix=* | --program-prefix=* | --program-prefi=* \
667 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
698dcdb6 668 program_prefix="$ac_optarg" ;;
10f2d63a
VZ
669
670 -program-suffix | --program-suffix | --program-suffi | --program-suff \
671 | --program-suf | --program-su | --program-s)
672 ac_prev=program_suffix ;;
673 -program-suffix=* | --program-suffix=* | --program-suffi=* \
674 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
698dcdb6 675 program_suffix="$ac_optarg" ;;
10f2d63a
VZ
676
677 -program-transform-name | --program-transform-name \
678 | --program-transform-nam | --program-transform-na \
679 | --program-transform-n | --program-transform- \
680 | --program-transform | --program-transfor \
681 | --program-transfo | --program-transf \
682 | --program-trans | --program-tran \
683 | --progr-tra | --program-tr | --program-t)
684 ac_prev=program_transform_name ;;
685 -program-transform-name=* | --program-transform-name=* \
686 | --program-transform-nam=* | --program-transform-na=* \
687 | --program-transform-n=* | --program-transform-=* \
688 | --program-transform=* | --program-transfor=* \
689 | --program-transfo=* | --program-transf=* \
690 | --program-trans=* | --program-tran=* \
691 | --progr-tra=* | --program-tr=* | --program-t=*)
698dcdb6 692 program_transform_name="$ac_optarg" ;;
10f2d63a
VZ
693
694 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
695 | -silent | --silent | --silen | --sile | --sil)
696 silent=yes ;;
697
698 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
699 ac_prev=sbindir ;;
700 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
701 | --sbi=* | --sb=*)
698dcdb6 702 sbindir="$ac_optarg" ;;
10f2d63a
VZ
703
704 -sharedstatedir | --sharedstatedir | --sharedstatedi \
705 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
706 | --sharedst | --shareds | --shared | --share | --shar \
707 | --sha | --sh)
708 ac_prev=sharedstatedir ;;
709 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
710 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
711 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
712 | --sha=* | --sh=*)
698dcdb6 713 sharedstatedir="$ac_optarg" ;;
10f2d63a
VZ
714
715 -site | --site | --sit)
716 ac_prev=site ;;
717 -site=* | --site=* | --sit=*)
698dcdb6 718 site="$ac_optarg" ;;
10f2d63a
VZ
719
720 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
721 ac_prev=srcdir ;;
722 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
698dcdb6 723 srcdir="$ac_optarg" ;;
10f2d63a
VZ
724
725 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
726 | --syscon | --sysco | --sysc | --sys | --sy)
727 ac_prev=sysconfdir ;;
728 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
729 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
698dcdb6 730 sysconfdir="$ac_optarg" ;;
10f2d63a
VZ
731
732 -target | --target | --targe | --targ | --tar | --ta | --t)
698dcdb6 733 ac_prev=target ;;
10f2d63a 734 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
698dcdb6 735 target="$ac_optarg" ;;
10f2d63a
VZ
736
737 -v | -verbose | --verbose | --verbos | --verbo | --verb)
738 verbose=yes ;;
739
698dcdb6
VZ
740 -version | --version | --versio | --versi | --vers)
741 echo "configure generated by autoconf version 2.13"
742 exit 0 ;;
10f2d63a
VZ
743
744 -with-* | --with-*)
698dcdb6 745 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
10f2d63a 746 # Reject names that are not valid shell variable names.
698dcdb6
VZ
747 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
748 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
749 fi
10f2d63a 750 ac_package=`echo $ac_package| sed 's/-/_/g'`
698dcdb6
VZ
751 case "$ac_option" in
752 *=*) ;;
10f2d63a
VZ
753 *) ac_optarg=yes ;;
754 esac
698dcdb6 755 eval "with_${ac_package}='$ac_optarg'" ;;
10f2d63a
VZ
756
757 -without-* | --without-*)
698dcdb6 758 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
10f2d63a 759 # Reject names that are not valid shell variable names.
698dcdb6
VZ
760 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
761 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
762 fi
763 ac_package=`echo $ac_package| sed 's/-/_/g'`
764 eval "with_${ac_package}=no" ;;
10f2d63a
VZ
765
766 --x)
767 # Obsolete; use --with-x.
768 with_x=yes ;;
769
770 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
771 | --x-incl | --x-inc | --x-in | --x-i)
772 ac_prev=x_includes ;;
773 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
774 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
698dcdb6 775 x_includes="$ac_optarg" ;;
10f2d63a
VZ
776
777 -x-libraries | --x-libraries | --x-librarie | --x-librari \
778 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
779 ac_prev=x_libraries ;;
780 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
781 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
698dcdb6 782 x_libraries="$ac_optarg" ;;
10f2d63a 783
698dcdb6 784 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
10f2d63a
VZ
785 ;;
786
787 *)
698dcdb6
VZ
788 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
789 echo "configure: warning: $ac_option: invalid host type" 1>&2
790 fi
791 if test "x$nonopt" != xNONE; then
792 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
793 fi
794 nonopt="$ac_option"
10f2d63a
VZ
795 ;;
796
797 esac
798done
799
800if test -n "$ac_prev"; then
698dcdb6
VZ
801 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
802fi
803
804trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
805
806# File descriptor usage:
807# 0 standard input
808# 1 file creation
809# 2 errors and warnings
810# 3 some systems may open it to /dev/tty
811# 4 used on the Kubota Titan
812# 6 checking for... messages and results
813# 5 compiler messages saved in config.log
814if test "$silent" = yes; then
815 exec 6>/dev/null
816else
817 exec 6>&1
10f2d63a 818fi
698dcdb6
VZ
819exec 5>./config.log
820
821echo "\
822This file contains any messages produced by compilers while
823running configure, to aid debugging if configure makes a mistake.
824" 1>&5
10f2d63a 825
698dcdb6
VZ
826# Strip out --no-create and --no-recursion so they do not pile up.
827# Also quote any args containing shell metacharacters.
828ac_configure_args=
829for ac_arg
10f2d63a 830do
698dcdb6
VZ
831 case "$ac_arg" in
832 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
833 | --no-cr | --no-c) ;;
834 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
835 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
836 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
837 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
838 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
10f2d63a
VZ
839 esac
840done
841
698dcdb6
VZ
842# NLS nuisances.
843# Only set these to C if already set. These must not be set unconditionally
844# because not all systems understand e.g. LANG=C (notably SCO).
845# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
846# Non-C LC_CTYPE values break the ctype check.
847if test "${LANG+set}" = set; then LANG=C; export LANG; fi
848if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
849if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
850if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
10f2d63a 851
698dcdb6
VZ
852# confdefs.h avoids OS command line length limits that DEFS can exceed.
853rm -rf conftest* confdefs.h
854# AIX cpp loses on an empty file, so make sure it contains at least a newline.
855echo > confdefs.h
10f2d63a 856
698dcdb6
VZ
857# A filename unique to this package, relative to the directory that
858# configure is in, which we can look for to find out if srcdir is correct.
859ac_unique_file=wx-config.in
10f2d63a
VZ
860
861# Find the source files, if location was not specified.
862if test -z "$srcdir"; then
863 ac_srcdir_defaulted=yes
864 # Try the directory containing this script, then its parent.
865 ac_prog=$0
698dcdb6 866 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
10f2d63a
VZ
867 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
868 srcdir=$ac_confdir
869 if test ! -r $srcdir/$ac_unique_file; then
870 srcdir=..
871 fi
872else
873 ac_srcdir_defaulted=no
874fi
875if test ! -r $srcdir/$ac_unique_file; then
876 if test "$ac_srcdir_defaulted" = yes; then
698dcdb6 877 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
10f2d63a 878 else
698dcdb6 879 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
10f2d63a
VZ
880 fi
881fi
698dcdb6 882srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
10f2d63a
VZ
883
884# Prefer explicitly selected file to automatically selected ones.
885if test -z "$CONFIG_SITE"; then
886 if test "x$prefix" != xNONE; then
887 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
888 else
889 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
890 fi
891fi
892for ac_site_file in $CONFIG_SITE; do
893 if test -r "$ac_site_file"; then
698dcdb6 894 echo "loading site script $ac_site_file"
10f2d63a
VZ
895 . "$ac_site_file"
896 fi
897done
898
899if test -r "$cache_file"; then
698dcdb6
VZ
900 echo "loading cache $cache_file"
901 . $cache_file
10f2d63a 902else
698dcdb6
VZ
903 echo "creating cache $cache_file"
904 > $cache_file
10f2d63a
VZ
905fi
906
907ac_ext=c
698dcdb6 908# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10f2d63a 909ac_cpp='$CPP $CPPFLAGS'
698dcdb6
VZ
910ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
911ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
912cross_compiling=$ac_cv_prog_cc_cross
913
914ac_exeext=
915ac_objext=o
916if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
917 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
918 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
919 ac_n= ac_c='
920' ac_t=' '
921 else
922 ac_n=-n ac_c= ac_t=
923 fi
10f2d63a 924else
698dcdb6 925 ac_n= ac_c='\c' ac_t=
10f2d63a 926fi
698dcdb6
VZ
927
928
10f2d63a 929
7c66a493
VZ
930ac_aux_dir=
931for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
932 if test -f $ac_dir/install-sh; then
933 ac_aux_dir=$ac_dir
934 ac_install_sh="$ac_aux_dir/install-sh -c"
935 break
936 elif test -f $ac_dir/install.sh; then
937 ac_aux_dir=$ac_dir
938 ac_install_sh="$ac_aux_dir/install.sh -c"
939 break
940 fi
941done
942if test -z "$ac_aux_dir"; then
698dcdb6 943 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
7c66a493 944fi
698dcdb6
VZ
945ac_config_guess=$ac_aux_dir/config.guess
946ac_config_sub=$ac_aux_dir/config.sub
947ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
703e0a69 948
698dcdb6
VZ
949
950# Do some error checking and defaulting for the host and target type.
951# The inputs are:
952# configure --host=HOST --target=TARGET --build=BUILD NONOPT
953#
954# The rules are:
955# 1. You are not allowed to specify --host, --target, and nonopt at the
956# same time.
957# 2. Host defaults to nonopt.
958# 3. If nonopt is not specified, then host defaults to the current host,
959# as determined by config.guess.
960# 4. Target and build default to nonopt.
961# 5. If nonopt is not specified, then target and build default to host.
7c66a493
VZ
962
963# The aliases save the names the user supplied, while $host etc.
964# will get canonicalized.
698dcdb6
VZ
965case $host---$target---$nonopt in
966NONE---*---* | *---NONE---* | *---*---NONE) ;;
967*) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
968esac
969
970
971# Make sure we can run config.sub.
972if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
973else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
974fi
975
976echo $ac_n "checking host system type""... $ac_c" 1>&6
658974ae 977echo "configure:978: checking host system type" >&5
698dcdb6
VZ
978
979host_alias=$host
980case "$host_alias" in
981NONE)
982 case $nonopt in
983 NONE)
984 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
985 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
986 fi ;;
987 *) host_alias=$nonopt ;;
988 esac ;;
989esac
990
991host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
992host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
993host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
994host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
995echo "$ac_t""$host" 1>&6
996
997echo $ac_n "checking target system type""... $ac_c" 1>&6
658974ae 998echo "configure:999: checking target system type" >&5
698dcdb6
VZ
999
1000target_alias=$target
1001case "$target_alias" in
1002NONE)
1003 case $nonopt in
1004 NONE) target_alias=$host_alias ;;
1005 *) target_alias=$nonopt ;;
1006 esac ;;
1007esac
1008
1009target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
1010target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1011target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1012target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1013echo "$ac_t""$target" 1>&6
1014
1015echo $ac_n "checking build system type""... $ac_c" 1>&6
658974ae 1016echo "configure:1017: checking build system type" >&5
698dcdb6
VZ
1017
1018build_alias=$build
1019case "$build_alias" in
1020NONE)
1021 case $nonopt in
1022 NONE) build_alias=$host_alias ;;
1023 *) build_alias=$nonopt ;;
1024 esac ;;
1025esac
1026
1027build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1028build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1029build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1030build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1031echo "$ac_t""$build" 1>&6
1032
1033test "$host_alias" != "$target_alias" &&
7c66a493
VZ
1034 test "$program_prefix$program_suffix$program_transform_name" = \
1035 NONENONEs,x,x, &&
1036 program_prefix=${target_alias}-
1037
698dcdb6
VZ
1038
1039
10f2d63a 1040WX_MAJOR_VERSION_NUMBER=2
37d403aa 1041WX_MINOR_VERSION_NUMBER=3
a0d927d1 1042WX_RELEASE_NUMBER=3
10f2d63a 1043
10f2d63a 1044WX_VERSION=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER.$WX_RELEASE_NUMBER
10f2d63a 1045WX_RELEASE=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER
6426998c 1046
978f1259
RL
1047WX_MSW_VERSION=$WX_MAJOR_VERSION_NUMBER$WX_MINOR_VERSION_NUMBER$WX_RELEASE_NUMBER
1048
a0d927d1 1049WX_CURRENT=2
6426998c
RL
1050WX_REVISION=0
1051WX_AGE=0
1052
698dcdb6
VZ
1053
1054
10f2d63a
VZ
1055USE_UNIX=1
1056USE_WIN32=0
f9bc1684 1057USE_DOS=0
b12915c1 1058USE_BEOS=0
1216f52d 1059USE_MAC=0
b12915c1 1060
10f2d63a
VZ
1061USE_LINUX=
1062USE_SGI=
1063USE_HPUX=
1064USE_SYSV=
1065USE_SVR4=
1066USE_AIX=
1067USE_SUN=
1068USE_SOLARIS=
1069USE_SUNOS=
1070USE_ALPHA=
1071USE_OSF=
1072USE_BSD=
f11bdd03 1073USE_DARWIN=
10f2d63a 1074USE_FREEBSD=
95c8801c 1075USE_OPENBSD=
f6bcfd97 1076USE_NETBSD=
10f2d63a
VZ
1077USE_VMS=
1078USE_ULTRIX=
10f2d63a
VZ
1079USE_DATA_GENERAL=
1080
ab9b9eab
VZ
1081NEEDS_D_REENTRANT_FOR_R_FUNCS=0
1082
3f345b47
VZ
1083CPP_MT_FLAG=-D_REENTRANT
1084
1725144d 1085ALL_TOOLKITS="GTK MAC MGL MICROWIN MOTIF MSW PM WINE"
10f2d63a
VZ
1086
1087DEFAULT_wxUSE_GTK=0
1e6feb95
VZ
1088DEFAULT_wxUSE_MAC=0
1089DEFAULT_wxUSE_MGL=0
1725144d 1090DEFAULT_wxUSE_MICROWIN=0
10f2d63a
VZ
1091DEFAULT_wxUSE_MOTIF=0
1092DEFAULT_wxUSE_MSW=0
e07802fc 1093DEFAULT_wxUSE_PM=0
1e6feb95 1094DEFAULT_wxUSE_WINE=0
10f2d63a
VZ
1095
1096DEFAULT_DEFAULT_wxUSE_GTK=0
1e6feb95
VZ
1097DEFAULT_DEFAULT_wxUSE_MAC=0
1098DEFAULT_DEFAULT_wxUSE_MGL=0
1725144d 1099DEFAULT_DEFAULT_wxUSE_MICROWIN=0
10f2d63a
VZ
1100DEFAULT_DEFAULT_wxUSE_MOTIF=0
1101DEFAULT_DEFAULT_wxUSE_MSW=0
e07802fc 1102DEFAULT_DEFAULT_wxUSE_PM=0
1e6feb95 1103DEFAULT_DEFAULT_wxUSE_WINE=0
10f2d63a 1104
d6a55c4b 1105PROGRAM_EXT=
3a922bb4 1106SO_SUFFIX=so
d6a55c4b 1107
10f2d63a
VZ
1108case "${host}" in
1109 *-hp-hpux* )
1110 USE_HPUX=1
1111 DEFAULT_DEFAULT_wxUSE_MOTIF=1
ab9b9eab 1112 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
3a922bb4 1113 SO_SUFFIX=sl
698dcdb6 1114 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1115#define __HPUX__ 1
1116EOF
1117
1118 ;;
1119 *-*-linux* )
1120 USE_LINUX=1
698dcdb6 1121 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1122#define __LINUX__ 1
1123EOF
1124
1125 TMP=`uname -m`
1126 if test "x$TMP" = "xalpha"; then
1127 USE_ALPHA=1
698dcdb6 1128 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1129#define __ALPHA__ 1
1130EOF
1131
1132 fi
1133 DEFAULT_DEFAULT_wxUSE_GTK=1
1134 ;;
1135 *-*-irix5* | *-*-irix6* )
1136 USE_SGI=1
1137 USE_SVR4=1
698dcdb6 1138 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1139#define __SGI__ 1
1140EOF
1141
698dcdb6 1142 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1143#define __SVR4__ 1
1144EOF
1145
1146 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1147 ;;
1148 *-*-solaris2* )
1149 USE_SUN=1
1150 USE_SOLARIS=1
1151 USE_SVR4=1
698dcdb6 1152 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1153#define __SUN__ 1
1154EOF
1155
698dcdb6 1156 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1157#define __SOLARIS__ 1
1158EOF
1159
698dcdb6 1160 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1161#define __SVR4__ 1
1162EOF
1163
1164 DEFAULT_DEFAULT_wxUSE_MOTIF=1
ab9b9eab 1165 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
10f2d63a
VZ
1166 ;;
1167 *-*-sunos4* )
1168 USE_SUN=1
1169 USE_SUNOS=1
1170 USE_BSD=1
698dcdb6 1171 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1172#define __SUN__ 1
1173EOF
1174
698dcdb6 1175 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1176#define __SUNOS__ 1
1177EOF
1178
698dcdb6 1179 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1180#define __BSD__ 1
1181EOF
1182
1183 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1184 ;;
f6bcfd97 1185 *-*-freebsd*)
10f2d63a
VZ
1186 USE_BSD=1
1187 USE_FREEBSD=1
3f345b47 1188 CPP_MT_FLAG=-D_THREAD_SAFE
698dcdb6 1189 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1190#define __FREEBSD__ 1
1191EOF
1192
698dcdb6 1193 cat >> confdefs.h <<\EOF
10f2d63a 1194#define __BSD__ 1
95c8801c
VS
1195EOF
1196
1197 DEFAULT_DEFAULT_wxUSE_GTK=1
1198 ;;
1199 *-*-openbsd*)
1200 USE_BSD=1
1201 USE_OPENBSD=1
698dcdb6 1202 cat >> confdefs.h <<\EOF
95c8801c
VS
1203#define __FREEBSD__ 1
1204EOF
1205
698dcdb6 1206 cat >> confdefs.h <<\EOF
95c8801c 1207#define __OPENBSD__ 1
f6bcfd97
BP
1208EOF
1209
1210 DEFAULT_DEFAULT_wxUSE_GTK=1
1211 ;;
1212 *-*-netbsd*)
1213 USE_BSD=1
1214 USE_NETBSD=1
698dcdb6 1215 cat >> confdefs.h <<\EOF
f6bcfd97
BP
1216#define __FREEBSD__ 1
1217EOF
1218
698dcdb6 1219 cat >> confdefs.h <<\EOF
f6bcfd97 1220#define __NETBSD__ 1
10f2d63a
VZ
1221EOF
1222
1223 DEFAULT_DEFAULT_wxUSE_GTK=1
1224 ;;
1225 *-*-osf* )
1226 USE_ALPHA=1
1227 USE_OSF=1
698dcdb6 1228 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1229#define __ALPHA__ 1
1230EOF
1231
698dcdb6 1232 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1233#define __OSF__ 1
1234EOF
1235
1236 DEFAULT_DEFAULT_wxUSE_MOTIF=1
f6bcfd97 1237 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
10f2d63a
VZ
1238 ;;
1239 *-*-dgux5* )
1240 USE_ALPHA=1
1241 USE_SVR4=1
698dcdb6 1242 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1243#define __ALPHA__ 1
1244EOF
1245
698dcdb6 1246 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1247#define __SVR4__ 1
1248EOF
1249
1250 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1251 ;;
1252 *-*-sysv5* )
1253 USE_SYSV=1
1254 USE_SVR4=1
698dcdb6 1255 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1256#define __SYSV__ 1
1257EOF
1258
698dcdb6 1259 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1260#define __SVR4__ 1
1261EOF
1262
1263 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1264 ;;
1265 *-*-aix* )
1266 USE_AIX=1
1267 USE_SYSV=1
1268 USE_SVR4=1
698dcdb6 1269 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1270#define __AIX__ 1
1271EOF
1272
698dcdb6 1273 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1274#define __SYSV__ 1
1275EOF
1276
698dcdb6 1277 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1278#define __SVR4__ 1
1279EOF
1280
1281 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1282 ;;
1283
1c8183e2 1284 *-*-cygwin* | *-*-mingw32* )
10f2d63a
VZ
1285 USE_UNIX=0
1286 USE_WIN32=1
3a922bb4 1287 SO_SUFFIX=dll
698dcdb6 1288 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1289#define __WIN32__ 1
1290EOF
1291
698dcdb6 1292 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1293#define __WIN95__ 1
1294EOF
1295
698dcdb6 1296 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1297#define __WINDOWS__ 1
1298EOF
1299
698dcdb6 1300 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1301#define __GNUWIN32__ 1
1302EOF
1303
698dcdb6 1304 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1305#define STRICT 1
1306EOF
1307
698dcdb6 1308 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1309#define WINVER 0x0400
1310EOF
1311
cf27ef00 1312 PROGRAM_EXT=".exe"
7b7a7637 1313 RESCOMP=windres
10f2d63a
VZ
1314 DEFAULT_DEFAULT_wxUSE_MSW=1
1315 ;;
1316
f9bc1684
VS
1317 *-pc-msdosdjgpp )
1318 USE_UNIX=0
1319 USE_DOS=1
1320 cat >> confdefs.h <<\EOF
1321#define __DOS__ 1
1322EOF
1323
1324 PROGRAM_EXT=".exe"
1325 DEFAULT_DEFAULT_wxUSE_MGL=1
1326 DEFAULT_DEFAULT_wxUSE_SHARED=0
1327 ;;
1328
6fa882bd 1329 *-pc-os2_emx | *-pc-os2-emx )
698dcdb6 1330 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1331#define __EMX__ 1
1332EOF
1333
cf27ef00 1334 PROGRAM_EXT=".exe"
e07802fc 1335 DEFAULT_DEFAULT_wxUSE_PM=1
10f2d63a
VZ
1336 ;;
1337
d08b457b
GD
1338 powerpc-*-darwin* )
1339 USE_BSD=1
f11bdd03 1340 USE_DARWIN=1
3f345b47 1341 CPP_MT_FLAG=
3a922bb4 1342 SO_SUFFIX=dylib
698dcdb6 1343 cat >> confdefs.h <<\EOF
f11bdd03 1344#define __BSD__ 1
b4085ce6
GD
1345EOF
1346
698dcdb6 1347 cat >> confdefs.h <<\EOF
f11bdd03 1348#define __DARWIN__ 1
d08b457b
GD
1349EOF
1350
1351 cat >> confdefs.h <<\EOF
1352#define __POWERPC__ 1
b4085ce6
GD
1353EOF
1354
1355 DEFAULT_DEFAULT_wxUSE_MAC=1
1356 ;;
1357
b12915c1
VZ
1358 *-*-beos* )
1359 USE_BEOS=1
698dcdb6 1360 cat >> confdefs.h <<\EOF
b12915c1
VZ
1361#define __BEOS__ 1
1362EOF
1363
1364 ;;
1365
10f2d63a 1366 *)
698dcdb6 1367 { echo "configure: error: unknown system type ${host}." 1>&2; exit 1; }
10f2d63a
VZ
1368esac
1369
1370if test "$USE_UNIX" = 1 ; then
b12915c1 1371 wxUSE_UNIX=yes
698dcdb6 1372 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1373#define __UNIX__ 1
1374EOF
1375
10f2d63a
VZ
1376fi
1377
2389f33b
VZ
1378if test "$USE_LINUX" = 1; then
1379 echo $ac_n "checking for glibc 2.1 or later""... $ac_c" 1>&6
658974ae 1380echo "configure:1381: checking for glibc 2.1 or later" >&5
2389f33b
VZ
1381if eval "test \"`echo '$''{'wx_lib_glibc21'+set}'`\" = set"; then
1382 echo $ac_n "(cached) $ac_c" 1>&6
1383else
a72a4bfa
VS
1384
1385 cat > conftest.$ac_ext <<EOF
658974ae 1386#line 1387 "configure"
2389f33b
VZ
1387#include "confdefs.h"
1388#include <features.h>
1389int main() {
1390
1391 #if !__GLIBC_PREREQ(2, 1)
1392 #error not glibc2.1
1393 #endif
1394
1395; return 0; }
1396EOF
658974ae 1397if { (eval echo configure:1398: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2389f33b
VZ
1398 rm -rf conftest*
1399
1400 wx_lib_glibc21=yes
1401
1402else
1403 echo "configure: failed program was:" >&5
1404 cat conftest.$ac_ext >&5
1405 rm -rf conftest*
1406
1407 wx_lib_glibc21=no
1408
1409
1410fi
1411rm -f conftest*
1412
1413fi
1414
1415echo "$ac_t""$wx_lib_glibc21" 1>&6
2389f33b
VZ
1416 if test "$wx_lib_glibc21" = "yes"; then
1417 cat >> confdefs.h <<\EOF
1418#define wxHAVE_GLIBC2 1
1419EOF
1420
1421 fi
1422fi
10f2d63a 1423
1e487827 1424
1e487827 1425
6232543b 1426
10f2d63a
VZ
1427 wx_arg_cache_file="configarg.cache"
1428 echo "loading argument cache $wx_arg_cache_file"
1429 rm -f ${wx_arg_cache_file}.tmp
1430 touch ${wx_arg_cache_file}.tmp
1431 touch ${wx_arg_cache_file}
698dcdb6 1432
10f2d63a
VZ
1433
1434DEBUG_CONFIGURE=0
1435if test $DEBUG_CONFIGURE = 1; then
1e6feb95
VZ
1436 DEFAULT_wxUSE_UNIVERSAL=no
1437
10f2d63a
VZ
1438 DEFAULT_wxUSE_THREADS=yes
1439
1440 DEFAULT_wxUSE_SHARED=yes
3a922bb4 1441 DEFAULT_wxUSE_SONAME=no
1e6feb95 1442 DEFAULT_wxUSE_OPTIMISE=no
10f2d63a
VZ
1443 DEFAULT_wxUSE_PROFILE=no
1444 DEFAULT_wxUSE_NO_DEPS=no
f676c7ff
MB
1445 DEFAULT_wxUSE_NO_RTTI=yes
1446 DEFAULT_wxUSE_NO_EXCEPTIONS=yes
10f2d63a
VZ
1447 DEFAULT_wxUSE_PERMISSIVE=no
1448 DEFAULT_wxUSE_DEBUG_FLAG=yes
1449 DEFAULT_wxUSE_DEBUG_INFO=yes
1450 DEFAULT_wxUSE_DEBUG_GDB=yes
1451 DEFAULT_wxUSE_MEM_TRACING=no
1452 DEFAULT_wxUSE_DEBUG_CONTEXT=no
1453 DEFAULT_wxUSE_DMALLOC=no
a7ae7112 1454 DEFAULT_wxUSE_PRECOMP=no
10f2d63a
VZ
1455 DEFAULT_wxUSE_APPLE_IEEE=no
1456
1457 DEFAULT_wxUSE_LOG=yes
1e6feb95
VZ
1458 DEFAULT_wxUSE_LOGWINDOW=no
1459 DEFAULT_wxUSE_LOGGUI=no
69d27ff7 1460 DEFAULT_wxUSE_LOGDIALOG=no
10f2d63a
VZ
1461
1462 DEFAULT_wxUSE_GUI=yes
1e6feb95 1463 DEFAULT_wxUSE_CONTROLS=no
10f2d63a 1464
3e44f09d 1465 DEFAULT_wxUSE_REGEX=no
10f2d63a
VZ
1466 DEFAULT_wxUSE_ZLIB=no
1467 DEFAULT_wxUSE_LIBPNG=no
1468 DEFAULT_wxUSE_LIBJPEG=no
c7a2bf27 1469 DEFAULT_wxUSE_LIBTIFF=no
10f2d63a 1470 DEFAULT_wxUSE_ODBC=no
3fed1840 1471 DEFAULT_wxUSE_FREETYPE=no
bdad4e7e 1472 DEFAULT_wxUSE_OPENGL=no
10f2d63a 1473
eb4efbdc 1474 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=no
4f3c5f06 1475 DEFAULT_wxUSE_SNGLINST_CHECKER=no
10f2d63a 1476 DEFAULT_wxUSE_STD_IOSTREAM=no
1e6feb95
VZ
1477 DEFAULT_wxUSE_CMDLINE_PARSER=no
1478 DEFAULT_wxUSE_DATETIME=no
1479 DEFAULT_wxUSE_TIMEDATE=no
1480 DEFAULT_wxUSE_TIMER=no
1481 DEFAULT_wxUSE_STOPWATCH=no
10f2d63a 1482 DEFAULT_wxUSE_FILE=no
1e6feb95 1483 DEFAULT_wxUSE_FFILE=no
a3a584a7 1484 DEFAULT_wxUSE_TEXTBUFFER=no
10f2d63a 1485 DEFAULT_wxUSE_TEXTFILE=no
10f2d63a
VZ
1486 DEFAULT_wxUSE_WAVE=no
1487 DEFAULT_wxUSE_INTL=no
1488 DEFAULT_wxUSE_CONFIG=no
1e6feb95 1489 DEFAULT_wxUSE_FONTMAP=no
10f2d63a
VZ
1490 DEFAULT_wxUSE_STREAMS=no
1491 DEFAULT_wxUSE_SOCKETS=no
1492 DEFAULT_wxUSE_DIALUP_MANAGER=no
10f2d63a 1493 DEFAULT_wxUSE_JOYSTICK=no
6bff71f8 1494 DEFAULT_wxUSE_DYNLIB_CLASS=no
0b9ab0bd 1495 DEFAULT_wxUSE_DYNAMIC_LOADER=no
10f2d63a 1496 DEFAULT_wxUSE_LONGLONG=no
e8f65ba6 1497 DEFAULT_wxUSE_GEOMETRY=no
10f2d63a
VZ
1498
1499 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no
1500 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no
1501 DEFAULT_wxUSE_POSTSCRIPT=no
1502
1503 DEFAULT_wxUSE_X_RESOURCES=no
1504 DEFAULT_wxUSE_CLIPBOARD=no
1505 DEFAULT_wxUSE_TOOLTIPS=no
1506 DEFAULT_wxUSE_DRAG_AND_DROP=no
24fd6d87 1507 DEFAULT_wxUSE_DRAGIMAGE=no
10f2d63a
VZ
1508 DEFAULT_wxUSE_SPLINES=no
1509
1510 DEFAULT_wxUSE_MDI_ARCHITECTURE=no
1511 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no
1512 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no
1513
1514 DEFAULT_wxUSE_PROLOGIO=no
1515 DEFAULT_wxUSE_RESOURCES=no
1516 DEFAULT_wxUSE_CONSTRAINTS=no
1517 DEFAULT_wxUSE_IPC=no
1518 DEFAULT_wxUSE_HELP=no
29fd3c0c 1519 DEFAULT_wxUSE_MS_HTML_HELP=no
3379ed37 1520 DEFAULT_wxUSE_WXHTML_HELP=no
24176f2c 1521 DEFAULT_wxUSE_TREELAYOUT=no
10f2d63a 1522 DEFAULT_wxUSE_METAFILE=no
1e6feb95 1523 DEFAULT_wxUSE_MIMETYPE=no
4cdb0ab0
VS
1524 DEFAULT_wxUSE_SYSTEM_OPTIONS=no
1525 DEFAULT_wxUSE_PROTOCOL=no
1526 DEFAULT_wxUSE_PROTOCOL_HTTP=no
1527 DEFAULT_wxUSE_PROTOCOL_FTP=no
1528 DEFAULT_wxUSE_PROTOCOL_FILE=no
1529 DEFAULT_wxUSE_URL=no
1530
10f2d63a 1531 DEFAULT_wxUSE_COMMONDLGS=no
1e6feb95
VZ
1532 DEFAULT_wxUSE_CHOICEDLG=no
1533 DEFAULT_wxUSE_COLOURDLG=no
10f2d63a 1534 DEFAULT_wxUSE_DIRDLG=no
1e6feb95 1535 DEFAULT_wxUSE_FILEDLG=no
8db37e06 1536 DEFAULT_wxUSE_FINDREPLDLG=no
1e6feb95
VZ
1537 DEFAULT_wxUSE_FONTDLG=no
1538 DEFAULT_wxUSE_MSGDLG=no
1539 DEFAULT_wxUSE_NUMBERDLG=no
10f2d63a 1540 DEFAULT_wxUSE_TEXTDLG=no
cbca9943 1541 DEFAULT_wxUSE_SPLASH=no
10f2d63a
VZ
1542 DEFAULT_wxUSE_STARTUP_TIPS=no
1543 DEFAULT_wxUSE_PROGRESSDLG=no
b1f5d087
VZ
1544 DEFAULT_wxUSE_WIZARDDLG=no
1545
1e6feb95 1546 DEFAULT_wxUSE_MENUS=no
10f2d63a
VZ
1547 DEFAULT_wxUSE_MINIFRAME=no
1548 DEFAULT_wxUSE_HTML=no
24528b0c 1549 DEFAULT_wxUSE_FILESYSTEM=no
10f2d63a
VZ
1550 DEFAULT_wxUSE_FS_INET=no
1551 DEFAULT_wxUSE_FS_ZIP=no
1552 DEFAULT_wxUSE_BUSYINFO=no
1553 DEFAULT_wxUSE_ZIPSTREAM=no
1e6feb95 1554 DEFAULT_wxUSE_VALIDATORS=no
10f2d63a
VZ
1555
1556 DEFAULT_wxUSE_ACCEL=no
1e6feb95 1557 DEFAULT_wxUSE_BUTTON=no
10f2d63a 1558 DEFAULT_wxUSE_BMPBUTTON=no
1e6feb95
VZ
1559 DEFAULT_wxUSE_CALCTRL=no
1560 DEFAULT_wxUSE_CARET=no
10f2d63a
VZ
1561 DEFAULT_wxUSE_CHECKBOX=no
1562 DEFAULT_wxUSE_CHECKLST=no
1e6feb95 1563 DEFAULT_wxUSE_CHOICE=no
10f2d63a
VZ
1564 DEFAULT_wxUSE_COMBOBOX=no
1565 DEFAULT_wxUSE_GAUGE=no
1566 DEFAULT_wxUSE_GRID=no
1567 DEFAULT_wxUSE_NEW_GRID=no
1568 DEFAULT_wxUSE_IMAGLIST=no
1569 DEFAULT_wxUSE_LISTBOX=no
1570 DEFAULT_wxUSE_LISTCTRL=no
1571 DEFAULT_wxUSE_NOTEBOOK=no
24176f2c 1572 DEFAULT_wxUSE_PROPSHEET=no
10f2d63a
VZ
1573 DEFAULT_wxUSE_RADIOBOX=no
1574 DEFAULT_wxUSE_RADIOBTN=no
1575 DEFAULT_wxUSE_SASH=no
1576 DEFAULT_wxUSE_SCROLLBAR=no
1577 DEFAULT_wxUSE_SLIDER=no
1578 DEFAULT_wxUSE_SPINBTN=no
56cfaa52 1579 DEFAULT_wxUSE_SPINCTRL=no
10f2d63a
VZ
1580 DEFAULT_wxUSE_SPLITTER=no
1581 DEFAULT_wxUSE_STATBMP=no
1582 DEFAULT_wxUSE_STATBOX=no
1583 DEFAULT_wxUSE_STATLINE=no
1e6feb95 1584 DEFAULT_wxUSE_STATTEXT=no
10f2d63a
VZ
1585 DEFAULT_wxUSE_STATUSBAR=yes
1586 DEFAULT_wxUSE_TABDIALOG=no
1e6feb95 1587 DEFAULT_wxUSE_TEXTCTRL=no
1db8dc4a 1588 DEFAULT_wxUSE_TOGGLEBTN=no
10f2d63a 1589 DEFAULT_wxUSE_TOOLBAR=no
360d6699
VZ
1590 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
1591 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
10f2d63a 1592 DEFAULT_wxUSE_TREECTRL=no
9f41d601 1593 DEFAULT_wxUSE_POPUPWIN=no
9926e4a4 1594 DEFAULT_wxUSE_TIPWINDOW=no
10f2d63a
VZ
1595
1596 DEFAULT_wxUSE_UNICODE=no
a72a4bfa 1597 DEFAULT_wxUSE_UNICODE_MSLU=no
10f2d63a
VZ
1598 DEFAULT_wxUSE_WCSRTOMBS=no
1599
edae8572 1600 DEFAULT_wxUSE_PALETTE=no
0046ff7c 1601 DEFAULT_wxUSE_IMAGE=no
10f2d63a
VZ
1602 DEFAULT_wxUSE_GIF=no
1603 DEFAULT_wxUSE_PCX=no
1604 DEFAULT_wxUSE_PNM=no
0046ff7c 1605 DEFAULT_wxUSE_XPM=no
658974ae 1606 DEFAULT_wxUSE_ICO_CUR=no
10f2d63a 1607else
1e6feb95
VZ
1608 DEFAULT_wxUSE_UNIVERSAL=no
1609
10f2d63a
VZ
1610 DEFAULT_wxUSE_THREADS=yes
1611
1612 DEFAULT_wxUSE_SHARED=yes
3a922bb4 1613 DEFAULT_wxUSE_SONAME=no
10f2d63a
VZ
1614 DEFAULT_wxUSE_OPTIMISE=yes
1615 DEFAULT_wxUSE_PROFILE=no
1616 DEFAULT_wxUSE_NO_DEPS=no
f676c7ff
MB
1617 DEFAULT_wxUSE_NO_RTTI=yes
1618 DEFAULT_wxUSE_NO_EXCEPTIONS=yes
10f2d63a
VZ
1619 DEFAULT_wxUSE_PERMISSIVE=no
1620 DEFAULT_wxUSE_DEBUG_FLAG=no
1621 DEFAULT_wxUSE_DEBUG_INFO=no
1622 DEFAULT_wxUSE_DEBUG_GDB=no
1623 DEFAULT_wxUSE_MEM_TRACING=no
1624 DEFAULT_wxUSE_DEBUG_CONTEXT=no
1625 DEFAULT_wxUSE_DMALLOC=no
a7ae7112 1626 DEFAULT_wxUSE_PRECOMP=no
10f2d63a
VZ
1627 DEFAULT_wxUSE_APPLE_IEEE=yes
1628
1629 DEFAULT_wxUSE_LOG=yes
d73be714
VZ
1630 DEFAULT_wxUSE_LOGWINDOW=yes
1631 DEFAULT_wxUSE_LOGGUI=yes
69d27ff7 1632 DEFAULT_wxUSE_LOGDIALOG=yes
10f2d63a
VZ
1633
1634 DEFAULT_wxUSE_GUI=yes
1635
831b3152 1636 DEFAULT_wxUSE_REGEX=yes
10f2d63a
VZ
1637 DEFAULT_wxUSE_ZLIB=yes
1638 DEFAULT_wxUSE_LIBPNG=yes
1639 DEFAULT_wxUSE_LIBJPEG=yes
b47c832e 1640 DEFAULT_wxUSE_LIBTIFF=yes
16b52fa1 1641 DEFAULT_wxUSE_ODBC=no
3fed1840 1642 DEFAULT_wxUSE_FREETYPE=no
bdad4e7e 1643 DEFAULT_wxUSE_OPENGL=no
10f2d63a 1644
eb4efbdc 1645 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=yes
4f3c5f06 1646 DEFAULT_wxUSE_SNGLINST_CHECKER=yes
10f2d63a 1647 DEFAULT_wxUSE_STD_IOSTREAM=no
1e6feb95
VZ
1648 DEFAULT_wxUSE_CMDLINE_PARSER=yes
1649 DEFAULT_wxUSE_DATETIME=yes
1650 DEFAULT_wxUSE_TIMEDATE=no
1651 DEFAULT_wxUSE_TIMER=yes
1652 DEFAULT_wxUSE_STOPWATCH=yes
10f2d63a 1653 DEFAULT_wxUSE_FILE=yes
1e6feb95 1654 DEFAULT_wxUSE_FFILE=yes
a3a584a7 1655 DEFAULT_wxUSE_TEXTBUFFER=yes
10f2d63a 1656 DEFAULT_wxUSE_TEXTFILE=yes
10f2d63a
VZ
1657 DEFAULT_wxUSE_WAVE=no
1658 DEFAULT_wxUSE_INTL=yes
1659 DEFAULT_wxUSE_CONFIG=yes
1e6feb95 1660 DEFAULT_wxUSE_FONTMAP=yes
10f2d63a
VZ
1661 DEFAULT_wxUSE_STREAMS=yes
1662 DEFAULT_wxUSE_SOCKETS=yes
1663 DEFAULT_wxUSE_DIALUP_MANAGER=yes
10f2d63a 1664 DEFAULT_wxUSE_JOYSTICK=yes
6bff71f8 1665 DEFAULT_wxUSE_DYNLIB_CLASS=yes
466367be 1666 DEFAULT_wxUSE_DYNAMIC_LOADER=no
b685cd9b 1667 DEFAULT_wxUSE_LONGLONG=yes
e8f65ba6 1668 DEFAULT_wxUSE_GEOMETRY=yes
10f2d63a
VZ
1669
1670 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes
1671 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes
1672 DEFAULT_wxUSE_POSTSCRIPT=yes
1673
1674 DEFAULT_wxUSE_X_RESOURCES=no
1675 DEFAULT_wxUSE_CLIPBOARD=yes
1676 DEFAULT_wxUSE_TOOLTIPS=yes
1677 DEFAULT_wxUSE_DRAG_AND_DROP=yes
24fd6d87 1678 DEFAULT_wxUSE_DRAGIMAGE=yes
10f2d63a
VZ
1679 DEFAULT_wxUSE_SPLINES=yes
1680
1681 DEFAULT_wxUSE_MDI_ARCHITECTURE=yes
1682 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes
1683 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes
1684
1685 DEFAULT_wxUSE_PROLOGIO=yes
1686 DEFAULT_wxUSE_RESOURCES=yes
1687 DEFAULT_wxUSE_CONSTRAINTS=yes
1688 DEFAULT_wxUSE_IPC=yes
1689 DEFAULT_wxUSE_HELP=yes
29fd3c0c 1690 DEFAULT_wxUSE_MS_HTML_HELP=yes
3379ed37 1691 DEFAULT_wxUSE_WXHTML_HELP=yes
24176f2c 1692 DEFAULT_wxUSE_TREELAYOUT=yes
10f2d63a 1693 DEFAULT_wxUSE_METAFILE=yes
1e6feb95 1694 DEFAULT_wxUSE_MIMETYPE=yes
3e44f09d 1695 DEFAULT_wxUSE_SYSTEM_OPTIONS=yes
4cdb0ab0
VS
1696 DEFAULT_wxUSE_PROTOCOL=yes
1697 DEFAULT_wxUSE_PROTOCOL_HTTP=yes
1698 DEFAULT_wxUSE_PROTOCOL_FTP=yes
1699 DEFAULT_wxUSE_PROTOCOL_FILE=yes
1700 DEFAULT_wxUSE_URL=yes
10f2d63a
VZ
1701
1702 DEFAULT_wxUSE_COMMONDLGS=yes
1e6feb95
VZ
1703 DEFAULT_wxUSE_CHOICEDLG=yes
1704 DEFAULT_wxUSE_COLOURDLG=yes
10f2d63a 1705 DEFAULT_wxUSE_DIRDLG=yes
1e6feb95 1706 DEFAULT_wxUSE_FILEDLG=yes
8db37e06 1707 DEFAULT_wxUSE_FINDREPLDLG=yes
1e6feb95
VZ
1708 DEFAULT_wxUSE_FONTDLG=yes
1709 DEFAULT_wxUSE_MSGDLG=yes
1710 DEFAULT_wxUSE_NUMBERDLG=yes
10f2d63a 1711 DEFAULT_wxUSE_TEXTDLG=yes
cbca9943 1712 DEFAULT_wxUSE_SPLASH=yes
10f2d63a
VZ
1713 DEFAULT_wxUSE_STARTUP_TIPS=yes
1714 DEFAULT_wxUSE_PROGRESSDLG=yes
f33f19dd
VZ
1715 DEFAULT_wxUSE_WIZARDDLG=yes
1716
1e6feb95 1717 DEFAULT_wxUSE_MENUS=yes
10f2d63a
VZ
1718 DEFAULT_wxUSE_MINIFRAME=yes
1719 DEFAULT_wxUSE_HTML=yes
24528b0c 1720 DEFAULT_wxUSE_FILESYSTEM=yes
10f2d63a
VZ
1721 DEFAULT_wxUSE_FS_INET=yes
1722 DEFAULT_wxUSE_FS_ZIP=yes
1723 DEFAULT_wxUSE_BUSYINFO=yes
1724 DEFAULT_wxUSE_ZIPSTREAM=yes
1725 DEFAULT_wxUSE_VALIDATORS=yes
1726
1727 DEFAULT_wxUSE_ACCEL=yes
1e6feb95 1728 DEFAULT_wxUSE_BUTTON=yes
10f2d63a 1729 DEFAULT_wxUSE_BMPBUTTON=yes
1e6feb95
VZ
1730 DEFAULT_wxUSE_CALCTRL=yes
1731 DEFAULT_wxUSE_CARET=yes
10f2d63a
VZ
1732 DEFAULT_wxUSE_CHECKBOX=yes
1733 DEFAULT_wxUSE_CHECKLST=yes
1734 DEFAULT_wxUSE_CHOICE=yes
1735 DEFAULT_wxUSE_COMBOBOX=yes
1736 DEFAULT_wxUSE_GAUGE=yes
1737 DEFAULT_wxUSE_GRID=yes
cc977e5f 1738 DEFAULT_wxUSE_NEW_GRID=yes
10f2d63a
VZ
1739 DEFAULT_wxUSE_IMAGLIST=yes
1740 DEFAULT_wxUSE_LISTBOX=yes
1741 DEFAULT_wxUSE_LISTCTRL=yes
1742 DEFAULT_wxUSE_NOTEBOOK=yes
24176f2c 1743 DEFAULT_wxUSE_PROPSHEET=yes
10f2d63a
VZ
1744 DEFAULT_wxUSE_RADIOBOX=yes
1745 DEFAULT_wxUSE_RADIOBTN=yes
1746 DEFAULT_wxUSE_SASH=yes
1747 DEFAULT_wxUSE_SCROLLBAR=yes
1748 DEFAULT_wxUSE_SLIDER=yes
1749 DEFAULT_wxUSE_SPINBTN=yes
56cfaa52 1750 DEFAULT_wxUSE_SPINCTRL=yes
10f2d63a
VZ
1751 DEFAULT_wxUSE_SPLITTER=yes
1752 DEFAULT_wxUSE_STATBMP=yes
1753 DEFAULT_wxUSE_STATBOX=yes
1754 DEFAULT_wxUSE_STATLINE=yes
1e6feb95 1755 DEFAULT_wxUSE_STATTEXT=yes
10f2d63a
VZ
1756 DEFAULT_wxUSE_STATUSBAR=yes
1757 DEFAULT_wxUSE_TABDIALOG=no
1e6feb95 1758 DEFAULT_wxUSE_TEXTCTRL=yes
1db8dc4a 1759 DEFAULT_wxUSE_TOGGLEBTN=yes
10f2d63a 1760 DEFAULT_wxUSE_TOOLBAR=yes
360d6699
VZ
1761 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
1762 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
10f2d63a 1763 DEFAULT_wxUSE_TREECTRL=yes
9f41d601 1764 DEFAULT_wxUSE_POPUPWIN=yes
9926e4a4 1765 DEFAULT_wxUSE_TIPWINDOW=yes
10f2d63a
VZ
1766
1767 DEFAULT_wxUSE_UNICODE=no
a72a4bfa 1768 DEFAULT_wxUSE_UNICODE_MSLU=yes
10f2d63a
VZ
1769 DEFAULT_wxUSE_WCSRTOMBS=no
1770
edae8572 1771 DEFAULT_wxUSE_PALETTE=yes
0046ff7c 1772 DEFAULT_wxUSE_IMAGE=yes
10f2d63a
VZ
1773 DEFAULT_wxUSE_GIF=yes
1774 DEFAULT_wxUSE_PCX=yes
1775 DEFAULT_wxUSE_PNM=yes
0046ff7c 1776 DEFAULT_wxUSE_XPM=yes
658974ae 1777 DEFAULT_wxUSE_ICO_CUR=yes
10f2d63a
VZ
1778fi
1779
698dcdb6
VZ
1780
1781
10f2d63a
VZ
1782for toolkit in `echo $ALL_TOOLKITS`; do
1783 LINE=`grep "wxUSE_$toolkit" ${wx_arg_cache_file}`
1784 if test "x$LINE" != x ; then
1785 has_toolkit_in_cache=1
1786 eval "DEFAULT_$LINE"
1787 eval "CACHE_$toolkit=1"
1788 fi
1789done
1790
698dcdb6
VZ
1791
1792
1793 echo $ac_n "checking for --enable-gui""... $ac_c" 1>&6
658974ae 1794echo "configure:1795: checking for --enable-gui" >&5
10f2d63a
VZ
1795 no_cache=0
1796 # Check whether --enable-gui or --disable-gui was given.
1797if test "${enable_gui+set}" = set; then
1798 enableval="$enable_gui"
698dcdb6 1799
10f2d63a
VZ
1800 if test "$enableval" = yes; then
1801 ac_cv_use_gui='wxUSE_GUI=yes'
1802 else
1803 ac_cv_use_gui='wxUSE_GUI=no'
1804 fi
698dcdb6 1805
10f2d63a 1806else
698dcdb6 1807
10f2d63a
VZ
1808 LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}`
1809 if test "x$LINE" != x ; then
1810 eval "DEFAULT_$LINE"
1811 else
1812 no_cache=1
1813 fi
1814
1815 ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI
698dcdb6
VZ
1816
1817fi
10f2d63a
VZ
1818
1819
1820 eval "$ac_cv_use_gui"
1821 if test "$no_cache" != 1; then
1822 echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp
1823 fi
1824
1825 if test "$wxUSE_GUI" = yes; then
698dcdb6 1826 echo "$ac_t""yes" 1>&6
10f2d63a 1827 else
698dcdb6 1828 echo "$ac_t""no" 1>&6
10f2d63a 1829 fi
698dcdb6 1830
10f2d63a 1831
b12915c1 1832if test "$wxUSE_GUI" = "yes"; then
10f2d63a 1833
1e6feb95
VZ
1834
1835 echo $ac_n "checking for --enable-universal""... $ac_c" 1>&6
658974ae 1836echo "configure:1837: checking for --enable-universal" >&5
1e6feb95
VZ
1837 no_cache=0
1838 # Check whether --enable-universal or --disable-universal was given.
1839if test "${enable_universal+set}" = set; then
1840 enableval="$enable_universal"
1841
1842 if test "$enableval" = yes; then
1843 ac_cv_use_universal='wxUSE_UNIVERSAL=yes'
1844 else
1845 ac_cv_use_universal='wxUSE_UNIVERSAL=no'
1846 fi
1847
1848else
1849
1850 LINE=`grep "wxUSE_UNIVERSAL" ${wx_arg_cache_file}`
1851 if test "x$LINE" != x ; then
1852 eval "DEFAULT_$LINE"
1853 else
1854 no_cache=1
1855 fi
1856
1857 ac_cv_use_universal='wxUSE_UNIVERSAL='$DEFAULT_wxUSE_UNIVERSAL
1858
1859fi
1860
1861
1862 eval "$ac_cv_use_universal"
1863 if test "$no_cache" != 1; then
1864 echo $ac_cv_use_universal >> ${wx_arg_cache_file}.tmp
1865 fi
1866
1867 if test "$wxUSE_UNIVERSAL" = yes; then
1868 echo "$ac_t""yes" 1>&6
1869 else
1870 echo "$ac_t""no" 1>&6
1871 fi
1872
10f2d63a
VZ
1873# Check whether --with-gtk or --without-gtk was given.
1874if test "${with_gtk+set}" = set; then
1875 withval="$with_gtk"
1876 wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1
698dcdb6 1877fi
10f2d63a
VZ
1878
1879# Check whether --with-motif or --without-motif was given.
1880if test "${with_motif+set}" = set; then
1881 withval="$with_motif"
1882 wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1
698dcdb6 1883fi
10f2d63a 1884
b4085ce6
GD
1885# Check whether --with-mac or --without-mac was given.
1886if test "${with_mac+set}" = set; then
1887 withval="$with_mac"
1888 wxUSE_MAC="$withval" TOOLKIT_GIVEN=1
698dcdb6 1889fi
b4085ce6 1890
10f2d63a
VZ
1891# Check whether --with-wine or --without-wine was given.
1892if test "${with_wine+set}" = set; then
1893 withval="$with_wine"
1894 wxUSE_WINE="$withval" CACHE_WINE=1 TOOLKIT_GIVEN=1
698dcdb6 1895fi
10f2d63a 1896
77e13408
RL
1897# Check whether --with-msw or --without-msw was given.
1898if test "${with_msw+set}" = set; then
1899 withval="$with_msw"
1900 wxUSE_MSW="$withval" CACHE_MSW TOOLKIT_GIVEN=1
698dcdb6 1901fi
10f2d63a 1902
e07802fc
VZ
1903# Check whether --with-pm or --without-pm was given.
1904if test "${with_pm+set}" = set; then
1905 withval="$with_pm"
1906 wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1
698dcdb6
VZ
1907fi
1908
1e6feb95
VZ
1909# Check whether --with-mgl or --without-mgl was given.
1910if test "${with_mgl+set}" = set; then
1911 withval="$with_mgl"
1912 wxUSE_MGL="$withval" CACHE_MGL=1 TOOLKIT_GIVEN=1
1913fi
1914
1725144d
RR
1915# Check whether --with-microwin or --without-microwin was given.
1916if test "${with_microwin+set}" = set; then
1917 withval="$with_microwin"
1918 wxUSE_MICROWIN="$withval" CACHE_MICROWIN=1 TOOLKIT_GIVEN=1
1919fi
1920
10f2d63a 1921
8168de4c
VZ
1922# Check whether --enable-gtk2 or --disable-gtk2 was given.
1923if test "${enable_gtk2+set}" = set; then
1924 enableval="$enable_gtk2"
1925 wxUSE_GTK2=1
10f2d63a 1926else
8168de4c 1927 wxUSE_GTK2=0
698dcdb6
VZ
1928fi
1929
703e0a69 1930
1e487827 1931
698dcdb6 1932 echo $ac_n "checking for --with-libpng""... $ac_c" 1>&6
658974ae 1933echo "configure:1934: checking for --with-libpng" >&5
698dcdb6
VZ
1934 no_cache=0
1935 # Check whether --with-libpng or --without-libpng was given.
b12915c1
VZ
1936if test "${with_libpng+set}" = set; then
1937 withval="$with_libpng"
698dcdb6 1938
10f2d63a 1939 if test "$withval" = yes; then
b12915c1 1940 ac_cv_use_libpng='wxUSE_LIBPNG=yes'
422107f9 1941 elif test "$withval" = no; then
b12915c1 1942 ac_cv_use_libpng='wxUSE_LIBPNG=no'
422107f9
VZ
1943 elif test "$withval" = sys; then
1944 ac_cv_use_libpng='wxUSE_LIBPNG=sys'
4f14bcd8
GD
1945 elif test "$withval" = builtin; then
1946 ac_cv_use_libpng='wxUSE_LIBPNG=builtin'
422107f9 1947 else
4f14bcd8 1948 { echo "configure: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" 1>&2; exit 1; }
10f2d63a 1949 fi
698dcdb6 1950
10f2d63a 1951else
698dcdb6 1952
b12915c1 1953 LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}`
10f2d63a
VZ
1954 if test "x$LINE" != x ; then
1955 eval "DEFAULT_$LINE"
1956 else
1957 no_cache=1
1958 fi
1959
b12915c1 1960 ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG
698dcdb6
VZ
1961
1962fi
10f2d63a
VZ
1963
1964
b12915c1 1965 eval "$ac_cv_use_libpng"
10f2d63a 1966 if test "$no_cache" != 1; then
b12915c1 1967 echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
1968 fi
1969
b12915c1 1970 if test "$wxUSE_LIBPNG" = yes; then
698dcdb6 1971 echo "$ac_t""yes" 1>&6
422107f9 1972 elif test "$wxUSE_LIBPNG" = no; then
698dcdb6 1973 echo "$ac_t""no" 1>&6
422107f9 1974 elif test "$wxUSE_LIBPNG" = sys; then
698dcdb6 1975 echo "$ac_t""system version" 1>&6
4f14bcd8
GD
1976 elif test "$wxUSE_LIBPNG" = builtin; then
1977 echo "$ac_t""builtin version" 1>&6
422107f9 1978 else
4f14bcd8 1979 { echo "configure: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" 1>&2; exit 1; }
10f2d63a 1980 fi
698dcdb6 1981
10f2d63a 1982
698dcdb6 1983 echo $ac_n "checking for --with-libjpeg""... $ac_c" 1>&6
658974ae 1984echo "configure:1985: checking for --with-libjpeg" >&5
10f2d63a 1985 no_cache=0
698dcdb6 1986 # Check whether --with-libjpeg or --without-libjpeg was given.
b12915c1
VZ
1987if test "${with_libjpeg+set}" = set; then
1988 withval="$with_libjpeg"
698dcdb6 1989
10f2d63a 1990 if test "$withval" = yes; then
b12915c1 1991 ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes'
422107f9 1992 elif test "$withval" = no; then
b12915c1 1993 ac_cv_use_libjpeg='wxUSE_LIBJPEG=no'
422107f9
VZ
1994 elif test "$withval" = sys; then
1995 ac_cv_use_libjpeg='wxUSE_LIBJPEG=sys'
4f14bcd8
GD
1996 elif test "$withval" = builtin; then
1997 ac_cv_use_libjpeg='wxUSE_LIBJPEG=builtin'
422107f9 1998 else
4f14bcd8 1999 { echo "configure: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" 1>&2; exit 1; }
10f2d63a 2000 fi
698dcdb6 2001
10f2d63a 2002else
698dcdb6 2003
b12915c1 2004 LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}`
10f2d63a
VZ
2005 if test "x$LINE" != x ; then
2006 eval "DEFAULT_$LINE"
2007 else
2008 no_cache=1
2009 fi
2010
b12915c1 2011 ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG
698dcdb6
VZ
2012
2013fi
10f2d63a
VZ
2014
2015
b12915c1 2016 eval "$ac_cv_use_libjpeg"
10f2d63a 2017 if test "$no_cache" != 1; then
b12915c1 2018 echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
2019 fi
2020
b12915c1 2021 if test "$wxUSE_LIBJPEG" = yes; then
698dcdb6 2022 echo "$ac_t""yes" 1>&6
422107f9 2023 elif test "$wxUSE_LIBJPEG" = no; then
698dcdb6 2024 echo "$ac_t""no" 1>&6
422107f9 2025 elif test "$wxUSE_LIBJPEG" = sys; then
698dcdb6 2026 echo "$ac_t""system version" 1>&6
4f14bcd8
GD
2027 elif test "$wxUSE_LIBJPEG" = builtin; then
2028 echo "$ac_t""builtin version" 1>&6
422107f9 2029 else
4f14bcd8 2030 { echo "configure: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" 1>&2; exit 1; }
10f2d63a 2031 fi
698dcdb6 2032
10f2d63a 2033
698dcdb6 2034 echo $ac_n "checking for --with-libtiff""... $ac_c" 1>&6
658974ae 2035echo "configure:2036: checking for --with-libtiff" >&5
10f2d63a 2036 no_cache=0
698dcdb6 2037 # Check whether --with-libtiff or --without-libtiff was given.
b12915c1
VZ
2038if test "${with_libtiff+set}" = set; then
2039 withval="$with_libtiff"
698dcdb6 2040
10f2d63a 2041 if test "$withval" = yes; then
b12915c1 2042 ac_cv_use_libtiff='wxUSE_LIBTIFF=yes'
0dcf9893 2043 elif test "$withval" = no; then
b12915c1 2044 ac_cv_use_libtiff='wxUSE_LIBTIFF=no'
0dcf9893
VZ
2045 elif test "$withval" = sys; then
2046 ac_cv_use_libtiff='wxUSE_LIBTIFF=sys'
4f14bcd8
GD
2047 elif test "$withval" = builtin; then
2048 ac_cv_use_libtiff='wxUSE_LIBTIFF=builtin'
0dcf9893 2049 else
4f14bcd8 2050 { echo "configure: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" 1>&2; exit 1; }
10f2d63a 2051 fi
698dcdb6 2052
10f2d63a 2053else
698dcdb6 2054
b12915c1 2055 LINE=`grep "wxUSE_LIBTIFF" ${wx_arg_cache_file}`
10f2d63a
VZ
2056 if test "x$LINE" != x ; then
2057 eval "DEFAULT_$LINE"
2058 else
2059 no_cache=1
2060 fi
2061
b12915c1 2062 ac_cv_use_libtiff='wxUSE_LIBTIFF='$DEFAULT_wxUSE_LIBTIFF
698dcdb6
VZ
2063
2064fi
10f2d63a
VZ
2065
2066
b12915c1 2067 eval "$ac_cv_use_libtiff"
10f2d63a 2068 if test "$no_cache" != 1; then
b12915c1 2069 echo $ac_cv_use_libtiff >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
2070 fi
2071
b12915c1 2072 if test "$wxUSE_LIBTIFF" = yes; then
698dcdb6 2073 echo "$ac_t""yes" 1>&6
0dcf9893 2074 elif test "$wxUSE_LIBTIFF" = no; then
698dcdb6 2075 echo "$ac_t""no" 1>&6
0dcf9893 2076 elif test "$wxUSE_LIBTIFF" = sys; then
698dcdb6 2077 echo "$ac_t""system version" 1>&6
4f14bcd8
GD
2078 elif test "$wxUSE_LIBTIFF" = builtin; then
2079 echo "$ac_t""builtin version" 1>&6
0dcf9893 2080 else
4f14bcd8 2081 { echo "configure: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" 1>&2; exit 1; }
10f2d63a 2082 fi
698dcdb6 2083
10f2d63a 2084
698dcdb6 2085 echo $ac_n "checking for --with-freetype""... $ac_c" 1>&6
658974ae 2086echo "configure:2087: checking for --with-freetype" >&5
3fed1840 2087 no_cache=0
698dcdb6 2088 # Check whether --with-freetype or --without-freetype was given.
3fed1840
RR
2089if test "${with_freetype+set}" = set; then
2090 withval="$with_freetype"
698dcdb6 2091
3fed1840
RR
2092 if test "$withval" = yes; then
2093 ac_cv_use_freetype='wxUSE_FREETYPE=yes'
2094 elif test "$withval" = no; then
2095 ac_cv_use_freetype='wxUSE_FREETYPE=no'
2096 elif test "$withval" = sys; then
2097 ac_cv_use_freetype='wxUSE_FREETYPE=sys'
4f14bcd8
GD
2098 elif test "$withval" = builtin; then
2099 ac_cv_use_freetype='wxUSE_FREETYPE=builtin'
3fed1840 2100 else
4f14bcd8 2101 { echo "configure: error: Invalid value for --with-freetype: should be yes, no, sys, or builtin" 1>&2; exit 1; }
3fed1840 2102 fi
698dcdb6 2103
3fed1840 2104else
698dcdb6 2105
3fed1840
RR
2106 LINE=`grep "wxUSE_FREETYPE" ${wx_arg_cache_file}`
2107 if test "x$LINE" != x ; then
2108 eval "DEFAULT_$LINE"
2109 else
2110 no_cache=1
2111 fi
2112
2113 ac_cv_use_freetype='wxUSE_FREETYPE='$DEFAULT_wxUSE_FREETYPE
698dcdb6
VZ
2114
2115fi
3fed1840
RR
2116
2117
2118 eval "$ac_cv_use_freetype"
2119 if test "$no_cache" != 1; then
2120 echo $ac_cv_use_freetype >> ${wx_arg_cache_file}.tmp
2121 fi
2122
2123 if test "$wxUSE_FREETYPE" = yes; then
698dcdb6 2124 echo "$ac_t""yes" 1>&6
3fed1840 2125 elif test "$wxUSE_FREETYPE" = no; then
698dcdb6 2126 echo "$ac_t""no" 1>&6
3fed1840 2127 elif test "$wxUSE_FREETYPE" = sys; then
698dcdb6 2128 echo "$ac_t""system version" 1>&6
4f14bcd8
GD
2129 elif test "$wxUSE_FREETYPE" = builtin; then
2130 echo "$ac_t""builtin version" 1>&6
3fed1840 2131 else
4f14bcd8 2132 { echo "configure: error: Invalid value for --with-freetype: should be yes, no, sys, or builtin" 1>&2; exit 1; }
3fed1840 2133 fi
698dcdb6 2134
3fed1840 2135
698dcdb6 2136 echo $ac_n "checking for --with-opengl""... $ac_c" 1>&6
658974ae 2137echo "configure:2138: checking for --with-opengl" >&5
10f2d63a 2138 no_cache=0
698dcdb6 2139 # Check whether --with-opengl or --without-opengl was given.
b12915c1
VZ
2140if test "${with_opengl+set}" = set; then
2141 withval="$with_opengl"
698dcdb6 2142
10f2d63a 2143 if test "$withval" = yes; then
b12915c1 2144 ac_cv_use_opengl='wxUSE_OPENGL=yes'
10f2d63a 2145 else
b12915c1 2146 ac_cv_use_opengl='wxUSE_OPENGL=no'
10f2d63a 2147 fi
698dcdb6 2148
10f2d63a 2149else
698dcdb6 2150
b12915c1 2151 LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}`
10f2d63a
VZ
2152 if test "x$LINE" != x ; then
2153 eval "DEFAULT_$LINE"
2154 else
2155 no_cache=1
2156 fi
2157
b12915c1 2158 ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL
698dcdb6
VZ
2159
2160fi
10f2d63a
VZ
2161
2162
b12915c1 2163 eval "$ac_cv_use_opengl"
10f2d63a 2164 if test "$no_cache" != 1; then
b12915c1 2165 echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
2166 fi
2167
b12915c1 2168 if test "$wxUSE_OPENGL" = yes; then
698dcdb6 2169 echo "$ac_t""yes" 1>&6
10f2d63a 2170 else
698dcdb6 2171 echo "$ac_t""no" 1>&6
10f2d63a 2172 fi
698dcdb6 2173
10f2d63a 2174
b12915c1
VZ
2175fi
2176
1e487827 2177
698dcdb6 2178 echo $ac_n "checking for --with-dmalloc""... $ac_c" 1>&6
658974ae 2179echo "configure:2180: checking for --with-dmalloc" >&5
698dcdb6
VZ
2180 no_cache=0
2181 # Check whether --with-dmalloc or --without-dmalloc was given.
b12915c1
VZ
2182if test "${with_dmalloc+set}" = set; then
2183 withval="$with_dmalloc"
698dcdb6 2184
c7a2bf27 2185 if test "$withval" = yes; then
b12915c1 2186 ac_cv_use_dmalloc='wxUSE_DMALLOC=yes'
c7a2bf27 2187 else
b12915c1 2188 ac_cv_use_dmalloc='wxUSE_DMALLOC=no'
c7a2bf27 2189 fi
698dcdb6 2190
c7a2bf27 2191else
698dcdb6 2192
b12915c1 2193 LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}`
c7a2bf27
RR
2194 if test "x$LINE" != x ; then
2195 eval "DEFAULT_$LINE"
2196 else
2197 no_cache=1
2198 fi
2199
b12915c1 2200 ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC
698dcdb6
VZ
2201
2202fi
c7a2bf27
RR
2203
2204
b12915c1 2205 eval "$ac_cv_use_dmalloc"
c7a2bf27 2206 if test "$no_cache" != 1; then
b12915c1 2207 echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp
c7a2bf27
RR
2208 fi
2209
b12915c1 2210 if test "$wxUSE_DMALLOC" = yes; then
698dcdb6 2211 echo "$ac_t""yes" 1>&6
c7a2bf27 2212 else
698dcdb6 2213 echo "$ac_t""no" 1>&6
c7a2bf27 2214 fi
698dcdb6 2215
c7a2bf27 2216
3e44f09d 2217 echo $ac_n "checking for --with-regex""... $ac_c" 1>&6
658974ae 2218echo "configure:2219: checking for --with-regex" >&5
3e44f09d
VZ
2219 no_cache=0
2220 # Check whether --with-regex or --without-regex was given.
2221if test "${with_regex+set}" = set; then
2222 withval="$with_regex"
2223
2224 if test "$withval" = yes; then
2225 ac_cv_use_regex='wxUSE_REGEX=yes'
2226 elif test "$withval" = no; then
2227 ac_cv_use_regex='wxUSE_REGEX=no'
2228 elif test "$withval" = sys; then
2229 ac_cv_use_regex='wxUSE_REGEX=sys'
4f14bcd8
GD
2230 elif test "$withval" = builtin; then
2231 ac_cv_use_regex='wxUSE_REGEX=builtin'
3e44f09d 2232 else
4f14bcd8 2233 { echo "configure: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" 1>&2; exit 1; }
3e44f09d
VZ
2234 fi
2235
2236else
2237
2238 LINE=`grep "wxUSE_REGEX" ${wx_arg_cache_file}`
2239 if test "x$LINE" != x ; then
2240 eval "DEFAULT_$LINE"
2241 else
2242 no_cache=1
2243 fi
2244
2245 ac_cv_use_regex='wxUSE_REGEX='$DEFAULT_wxUSE_REGEX
2246
2247fi
2248
2249
2250 eval "$ac_cv_use_regex"
2251 if test "$no_cache" != 1; then
2252 echo $ac_cv_use_regex >> ${wx_arg_cache_file}.tmp
2253 fi
2254
2255 if test "$wxUSE_REGEX" = yes; then
2256 echo "$ac_t""yes" 1>&6
2257 elif test "$wxUSE_REGEX" = no; then
2258 echo "$ac_t""no" 1>&6
2259 elif test "$wxUSE_REGEX" = sys; then
2260 echo "$ac_t""system version" 1>&6
4f14bcd8
GD
2261 elif test "$wxUSE_REGEX" = builtin; then
2262 echo "$ac_t""builtin version" 1>&6
3e44f09d 2263 else
4f14bcd8 2264 { echo "configure: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" 1>&2; exit 1; }
3e44f09d
VZ
2265 fi
2266
2267
698dcdb6 2268 echo $ac_n "checking for --with-zlib""... $ac_c" 1>&6
658974ae 2269echo "configure:2270: checking for --with-zlib" >&5
10f2d63a 2270 no_cache=0
698dcdb6 2271 # Check whether --with-zlib or --without-zlib was given.
b12915c1
VZ
2272if test "${with_zlib+set}" = set; then
2273 withval="$with_zlib"
698dcdb6 2274
10f2d63a 2275 if test "$withval" = yes; then
b12915c1 2276 ac_cv_use_zlib='wxUSE_ZLIB=yes'
422107f9 2277 elif test "$withval" = no; then
b12915c1 2278 ac_cv_use_zlib='wxUSE_ZLIB=no'
422107f9
VZ
2279 elif test "$withval" = sys; then
2280 ac_cv_use_zlib='wxUSE_ZLIB=sys'
4f14bcd8
GD
2281 elif test "$withval" = builtin; then
2282 ac_cv_use_zlib='wxUSE_ZLIB=builtin'
422107f9 2283 else
4f14bcd8 2284 { echo "configure: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" 1>&2; exit 1; }
10f2d63a 2285 fi
698dcdb6 2286
10f2d63a 2287else
698dcdb6 2288
b12915c1 2289 LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}`
10f2d63a
VZ
2290 if test "x$LINE" != x ; then
2291 eval "DEFAULT_$LINE"
2292 else
2293 no_cache=1
2294 fi
2295
b12915c1 2296 ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB
698dcdb6
VZ
2297
2298fi
10f2d63a
VZ
2299
2300
b12915c1 2301 eval "$ac_cv_use_zlib"
10f2d63a 2302 if test "$no_cache" != 1; then
b12915c1 2303 echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
2304 fi
2305
b12915c1 2306 if test "$wxUSE_ZLIB" = yes; then
698dcdb6 2307 echo "$ac_t""yes" 1>&6
422107f9 2308 elif test "$wxUSE_ZLIB" = no; then
698dcdb6 2309 echo "$ac_t""no" 1>&6
422107f9 2310 elif test "$wxUSE_ZLIB" = sys; then
698dcdb6 2311 echo "$ac_t""system version" 1>&6
4f14bcd8
GD
2312 elif test "$wxUSE_ZLIB" = builtin; then
2313 echo "$ac_t""builtin version" 1>&6
422107f9 2314 else
4f14bcd8 2315 { echo "configure: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" 1>&2; exit 1; }
10f2d63a 2316 fi
698dcdb6 2317
10f2d63a 2318
698dcdb6 2319 echo $ac_n "checking for --with-odbc""... $ac_c" 1>&6
658974ae 2320echo "configure:2321: checking for --with-odbc" >&5
10f2d63a 2321 no_cache=0
698dcdb6 2322 # Check whether --with-odbc or --without-odbc was given.
10f2d63a
VZ
2323if test "${with_odbc+set}" = set; then
2324 withval="$with_odbc"
698dcdb6 2325
10f2d63a
VZ
2326 if test "$withval" = yes; then
2327 ac_cv_use_odbc='wxUSE_ODBC=yes'
2328 else
2329 ac_cv_use_odbc='wxUSE_ODBC=no'
2330 fi
698dcdb6 2331
10f2d63a 2332else
698dcdb6 2333
10f2d63a
VZ
2334 LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}`
2335 if test "x$LINE" != x ; then
2336 eval "DEFAULT_$LINE"
2337 else
2338 no_cache=1
2339 fi
2340
2341 ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC
698dcdb6
VZ
2342
2343fi
10f2d63a
VZ
2344
2345
2346 eval "$ac_cv_use_odbc"
2347 if test "$no_cache" != 1; then
2348 echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp
2349 fi
2350
2351 if test "$wxUSE_ODBC" = yes; then
698dcdb6 2352 echo "$ac_t""yes" 1>&6
10f2d63a 2353 else
698dcdb6 2354 echo "$ac_t""no" 1>&6
10f2d63a 2355 fi
698dcdb6
VZ
2356
2357
10f2d63a 2358
698dcdb6 2359
698dcdb6 2360 echo $ac_n "checking for --enable-shared""... $ac_c" 1>&6
658974ae 2361echo "configure:2362: checking for --enable-shared" >&5
10f2d63a
VZ
2362 no_cache=0
2363 # Check whether --enable-shared or --disable-shared was given.
2364if test "${enable_shared+set}" = set; then
2365 enableval="$enable_shared"
698dcdb6 2366
10f2d63a
VZ
2367 if test "$enableval" = yes; then
2368 ac_cv_use_shared='wxUSE_SHARED=yes'
2369 else
2370 ac_cv_use_shared='wxUSE_SHARED=no'
2371 fi
698dcdb6 2372
10f2d63a 2373else
698dcdb6 2374
10f2d63a
VZ
2375 LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}`
2376 if test "x$LINE" != x ; then
2377 eval "DEFAULT_$LINE"
2378 else
2379 no_cache=1
2380 fi
2381
2382 ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED
698dcdb6
VZ
2383
2384fi
10f2d63a
VZ
2385
2386
2387 eval "$ac_cv_use_shared"
2388 if test "$no_cache" != 1; then
2389 echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp
2390 fi
2391
2392 if test "$wxUSE_SHARED" = yes; then
698dcdb6 2393 echo "$ac_t""yes" 1>&6
10f2d63a 2394 else
698dcdb6 2395 echo "$ac_t""no" 1>&6
10f2d63a 2396 fi
698dcdb6 2397
10f2d63a 2398
3a922bb4 2399 echo $ac_n "checking for --enable-soname""... $ac_c" 1>&6
658974ae 2400echo "configure:2401: checking for --enable-soname" >&5
00cf1208 2401 no_cache=0
3a922bb4
RL
2402 # Check whether --enable-soname or --disable-soname was given.
2403if test "${enable_soname+set}" = set; then
2404 enableval="$enable_soname"
698dcdb6 2405
00cf1208 2406 if test "$enableval" = yes; then
3a922bb4 2407 ac_cv_use_soname='wxUSE_SONAME=yes'
00cf1208 2408 else
3a922bb4 2409 ac_cv_use_soname='wxUSE_SONAME=no'
00cf1208 2410 fi
698dcdb6 2411
00cf1208 2412else
698dcdb6 2413
3a922bb4 2414 LINE=`grep "wxUSE_SONAME" ${wx_arg_cache_file}`
00cf1208
RR
2415 if test "x$LINE" != x ; then
2416 eval "DEFAULT_$LINE"
2417 else
2418 no_cache=1
2419 fi
2420
3a922bb4 2421 ac_cv_use_soname='wxUSE_SONAME='$DEFAULT_wxUSE_SONAME
698dcdb6
VZ
2422
2423fi
00cf1208
RR
2424
2425
3a922bb4 2426 eval "$ac_cv_use_soname"
00cf1208 2427 if test "$no_cache" != 1; then
3a922bb4 2428 echo $ac_cv_use_soname >> ${wx_arg_cache_file}.tmp
00cf1208
RR
2429 fi
2430
3a922bb4 2431 if test "$wxUSE_SONAME" = yes; then
698dcdb6 2432 echo "$ac_t""yes" 1>&6
00cf1208 2433 else
698dcdb6 2434 echo "$ac_t""no" 1>&6
00cf1208 2435 fi
698dcdb6 2436
00cf1208 2437
698dcdb6 2438 echo $ac_n "checking for --enable-optimise""... $ac_c" 1>&6
658974ae 2439echo "configure:2440: checking for --enable-optimise" >&5
10f2d63a
VZ
2440 no_cache=0
2441 # Check whether --enable-optimise or --disable-optimise was given.
2442if test "${enable_optimise+set}" = set; then
2443 enableval="$enable_optimise"
698dcdb6 2444
10f2d63a
VZ
2445 if test "$enableval" = yes; then
2446 ac_cv_use_optimise='wxUSE_OPTIMISE=yes'
2447 else
2448 ac_cv_use_optimise='wxUSE_OPTIMISE=no'
2449 fi
698dcdb6 2450
10f2d63a 2451else
698dcdb6 2452
10f2d63a
VZ
2453 LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}`
2454 if test "x$LINE" != x ; then
2455 eval "DEFAULT_$LINE"
2456 else
2457 no_cache=1
2458 fi
2459
2460 ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE
698dcdb6
VZ
2461
2462fi
10f2d63a
VZ
2463
2464
2465 eval "$ac_cv_use_optimise"
2466 if test "$no_cache" != 1; then
2467 echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp
2468 fi
2469
2470 if test "$wxUSE_OPTIMISE" = yes; then
698dcdb6 2471 echo "$ac_t""yes" 1>&6
10f2d63a 2472 else
698dcdb6 2473 echo "$ac_t""no" 1>&6
10f2d63a 2474 fi
698dcdb6 2475
10f2d63a 2476
698dcdb6 2477 echo $ac_n "checking for --enable-debug""... $ac_c" 1>&6
658974ae 2478echo "configure:2479: checking for --enable-debug" >&5
10f2d63a
VZ
2479 no_cache=0
2480 # Check whether --enable-debug or --disable-debug was given.
2481if test "${enable_debug+set}" = set; then
2482 enableval="$enable_debug"
698dcdb6 2483
10f2d63a
VZ
2484 if test "$enableval" = yes; then
2485 ac_cv_use_debug='wxUSE_DEBUG=yes'
2486 else
2487 ac_cv_use_debug='wxUSE_DEBUG=no'
2488 fi
698dcdb6 2489
10f2d63a 2490else
698dcdb6 2491
10f2d63a
VZ
2492 LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}`
2493 if test "x$LINE" != x ; then
2494 eval "DEFAULT_$LINE"
2495 else
2496 no_cache=1
2497 fi
2498
2499 ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG
698dcdb6
VZ
2500
2501fi
10f2d63a
VZ
2502
2503
2504 eval "$ac_cv_use_debug"
2505 if test "$no_cache" != 1; then
2506 echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp
2507 fi
2508
2509 if test "$wxUSE_DEBUG" = yes; then
698dcdb6 2510 echo "$ac_t""yes" 1>&6
10f2d63a 2511 else
698dcdb6 2512 echo "$ac_t""no" 1>&6
10f2d63a 2513 fi
698dcdb6 2514
10f2d63a 2515
683dccda
GD
2516
2517 echo $ac_n "checking for --enable-precomp""... $ac_c" 1>&6
658974ae 2518echo "configure:2519: checking for --enable-precomp" >&5
683dccda
GD
2519 no_cache=0
2520 # Check whether --enable-precomp or --disable-precomp was given.
2521if test "${enable_precomp+set}" = set; then
2522 enableval="$enable_precomp"
2523
2524 if test "$enableval" = yes; then
2525 ac_cv_use_precomp='wxUSE_PRECOMP=yes'
2526 else
2527 ac_cv_use_precomp='wxUSE_PRECOMP=no'
2528 fi
2529
2530else
2531
2532 LINE=`grep "wxUSE_PRECOMP" ${wx_arg_cache_file}`
2533 if test "x$LINE" != x ; then
2534 eval "DEFAULT_$LINE"
2535 else
2536 no_cache=1
2537 fi
2538
2539 ac_cv_use_precomp='wxUSE_PRECOMP='$DEFAULT_wxUSE_PRECOMP
2540
2541fi
2542
2543
2544 eval "$ac_cv_use_precomp"
2545 if test "$no_cache" != 1; then
2546 echo $ac_cv_use_precomp >> ${wx_arg_cache_file}.tmp
2547 fi
2548
2549 if test "$wxUSE_PRECOMP" = yes; then
2550 echo "$ac_t""yes" 1>&6
2551 else
2552 echo "$ac_t""no" 1>&6
2553 fi
2554
2555
10f2d63a
VZ
2556if test "$wxUSE_DEBUG" = "yes"; then
2557 DEFAULT_wxUSE_DEBUG_FLAG=yes
2558 DEFAULT_wxUSE_DEBUG_INFO=yes
2559elif test "$wxUSE_DEBUG" = "no"; then
2560 DEFAULT_wxUSE_DEBUG_FLAG=no
2561 DEFAULT_wxUSE_DEBUG_INFO=no
2562fi
2563
698dcdb6
VZ
2564
2565 echo $ac_n "checking for --enable-debug_flag""... $ac_c" 1>&6
658974ae 2566echo "configure:2567: checking for --enable-debug_flag" >&5
10f2d63a
VZ
2567 no_cache=0
2568 # Check whether --enable-debug_flag or --disable-debug_flag was given.
2569if test "${enable_debug_flag+set}" = set; then
2570 enableval="$enable_debug_flag"
698dcdb6 2571
10f2d63a
VZ
2572 if test "$enableval" = yes; then
2573 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes'
2574 else
2575 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no'
2576 fi
698dcdb6 2577
10f2d63a 2578else
698dcdb6 2579
10f2d63a
VZ
2580 LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}`
2581 if test "x$LINE" != x ; then
2582 eval "DEFAULT_$LINE"
2583 else
2584 no_cache=1
2585 fi
2586
2587 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG
698dcdb6
VZ
2588
2589fi
10f2d63a
VZ
2590
2591
2592 eval "$ac_cv_use_debug_flag"
2593 if test "$no_cache" != 1; then
2594 echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp
2595 fi
2596
2597 if test "$wxUSE_DEBUG_FLAG" = yes; then
698dcdb6 2598 echo "$ac_t""yes" 1>&6
10f2d63a 2599 else
698dcdb6 2600 echo "$ac_t""no" 1>&6
10f2d63a 2601 fi
698dcdb6 2602
10f2d63a 2603
698dcdb6 2604 echo $ac_n "checking for --enable-debug_info""... $ac_c" 1>&6
658974ae 2605echo "configure:2606: checking for --enable-debug_info" >&5
10f2d63a
VZ
2606 no_cache=0
2607 # Check whether --enable-debug_info or --disable-debug_info was given.
2608if test "${enable_debug_info+set}" = set; then
2609 enableval="$enable_debug_info"
698dcdb6 2610
10f2d63a
VZ
2611 if test "$enableval" = yes; then
2612 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes'
2613 else
2614 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no'
2615 fi
698dcdb6 2616
10f2d63a 2617else
698dcdb6 2618
10f2d63a
VZ
2619 LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}`
2620 if test "x$LINE" != x ; then
2621 eval "DEFAULT_$LINE"
2622 else
2623 no_cache=1
2624 fi
2625
2626 ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO
698dcdb6
VZ
2627
2628fi
10f2d63a
VZ
2629
2630
2631 eval "$ac_cv_use_debug_info"
2632 if test "$no_cache" != 1; then
2633 echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp
2634 fi
2635
2636 if test "$wxUSE_DEBUG_INFO" = yes; then
698dcdb6 2637 echo "$ac_t""yes" 1>&6
10f2d63a 2638 else
698dcdb6 2639 echo "$ac_t""no" 1>&6
10f2d63a 2640 fi
698dcdb6 2641
10f2d63a 2642
698dcdb6 2643 echo $ac_n "checking for --enable-debug_gdb""... $ac_c" 1>&6
658974ae 2644echo "configure:2645: checking for --enable-debug_gdb" >&5
10f2d63a
VZ
2645 no_cache=0
2646 # Check whether --enable-debug_gdb or --disable-debug_gdb was given.
2647if test "${enable_debug_gdb+set}" = set; then
2648 enableval="$enable_debug_gdb"
698dcdb6 2649
10f2d63a
VZ
2650 if test "$enableval" = yes; then
2651 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes'
2652 else
2653 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no'
2654 fi
698dcdb6 2655
10f2d63a 2656else
698dcdb6 2657
10f2d63a
VZ
2658 LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}`
2659 if test "x$LINE" != x ; then
2660 eval "DEFAULT_$LINE"
2661 else
2662 no_cache=1
2663 fi
2664
2665 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB
698dcdb6
VZ
2666
2667fi
10f2d63a
VZ
2668
2669
2670 eval "$ac_cv_use_debug_gdb"
2671 if test "$no_cache" != 1; then
2672 echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp
2673 fi
2674
2675 if test "$wxUSE_DEBUG_GDB" = yes; then
698dcdb6 2676 echo "$ac_t""yes" 1>&6
10f2d63a 2677 else
698dcdb6 2678 echo "$ac_t""no" 1>&6
10f2d63a 2679 fi
698dcdb6 2680
10f2d63a 2681
698dcdb6 2682 echo $ac_n "checking for --enable-debug_cntxt""... $ac_c" 1>&6
658974ae 2683echo "configure:2684: checking for --enable-debug_cntxt" >&5
10f2d63a
VZ
2684 no_cache=0
2685 # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given.
2686if test "${enable_debug_cntxt+set}" = set; then
2687 enableval="$enable_debug_cntxt"
698dcdb6 2688
10f2d63a
VZ
2689 if test "$enableval" = yes; then
2690 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes'
2691 else
2692 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no'
2693 fi
698dcdb6 2694
10f2d63a 2695else
698dcdb6 2696
10f2d63a
VZ
2697 LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}`
2698 if test "x$LINE" != x ; then
2699 eval "DEFAULT_$LINE"
2700 else
2701 no_cache=1
2702 fi
2703
2704 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT
698dcdb6
VZ
2705
2706fi
10f2d63a
VZ
2707
2708
2709 eval "$ac_cv_use_debug_cntxt"
2710 if test "$no_cache" != 1; then
2711 echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp
2712 fi
2713
2714 if test "$wxUSE_DEBUG_CONTEXT" = yes; then
698dcdb6 2715 echo "$ac_t""yes" 1>&6
10f2d63a 2716 else
698dcdb6 2717 echo "$ac_t""no" 1>&6
10f2d63a 2718 fi
698dcdb6 2719
10f2d63a 2720
698dcdb6 2721 echo $ac_n "checking for --enable-mem_tracing""... $ac_c" 1>&6
658974ae 2722echo "configure:2723: checking for --enable-mem_tracing" >&5
10f2d63a
VZ
2723 no_cache=0
2724 # Check whether --enable-mem_tracing or --disable-mem_tracing was given.
2725if test "${enable_mem_tracing+set}" = set; then
2726 enableval="$enable_mem_tracing"
698dcdb6 2727
10f2d63a
VZ
2728 if test "$enableval" = yes; then
2729 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes'
2730 else
2731 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no'
2732 fi
698dcdb6 2733
10f2d63a 2734else
698dcdb6 2735
10f2d63a
VZ
2736 LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}`
2737 if test "x$LINE" != x ; then
2738 eval "DEFAULT_$LINE"
2739 else
2740 no_cache=1
2741 fi
2742
2743 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING
698dcdb6
VZ
2744
2745fi
10f2d63a
VZ
2746
2747
2748 eval "$ac_cv_use_mem_tracing"
2749 if test "$no_cache" != 1; then
2750 echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp
2751 fi
2752
2753 if test "$wxUSE_MEM_TRACING" = yes; then
698dcdb6 2754 echo "$ac_t""yes" 1>&6
10f2d63a 2755 else
698dcdb6 2756 echo "$ac_t""no" 1>&6
10f2d63a 2757 fi
698dcdb6 2758
10f2d63a 2759
698dcdb6 2760 echo $ac_n "checking for --enable-profile""... $ac_c" 1>&6
658974ae 2761echo "configure:2762: checking for --enable-profile" >&5
10f2d63a
VZ
2762 no_cache=0
2763 # Check whether --enable-profile or --disable-profile was given.
2764if test "${enable_profile+set}" = set; then
2765 enableval="$enable_profile"
698dcdb6 2766
10f2d63a
VZ
2767 if test "$enableval" = yes; then
2768 ac_cv_use_profile='wxUSE_PROFILE=yes'
2769 else
2770 ac_cv_use_profile='wxUSE_PROFILE=no'
2771 fi
698dcdb6 2772
10f2d63a 2773else
698dcdb6 2774
10f2d63a
VZ
2775 LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}`
2776 if test "x$LINE" != x ; then
2777 eval "DEFAULT_$LINE"
2778 else
2779 no_cache=1
2780 fi
2781
2782 ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE
698dcdb6
VZ
2783
2784fi
10f2d63a
VZ
2785
2786
2787 eval "$ac_cv_use_profile"
2788 if test "$no_cache" != 1; then
2789 echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp
2790 fi
2791
2792 if test "$wxUSE_PROFILE" = yes; then
698dcdb6 2793 echo "$ac_t""yes" 1>&6
10f2d63a 2794 else
698dcdb6 2795 echo "$ac_t""no" 1>&6
10f2d63a 2796 fi
698dcdb6 2797
10f2d63a 2798
698dcdb6 2799 echo $ac_n "checking for --enable-no_rtti""... $ac_c" 1>&6
658974ae 2800echo "configure:2801: checking for --enable-no_rtti" >&5
10f2d63a
VZ
2801 no_cache=0
2802 # Check whether --enable-no_rtti or --disable-no_rtti was given.
2803if test "${enable_no_rtti+set}" = set; then
2804 enableval="$enable_no_rtti"
698dcdb6 2805
10f2d63a
VZ
2806 if test "$enableval" = yes; then
2807 ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes'
2808 else
2809 ac_cv_use_no_rtti='wxUSE_NO_RTTI=no'
2810 fi
698dcdb6 2811
10f2d63a 2812else
698dcdb6 2813
10f2d63a
VZ
2814 LINE=`grep "wxUSE_NO_RTTI" ${wx_arg_cache_file}`
2815 if test "x$LINE" != x ; then
2816 eval "DEFAULT_$LINE"
2817 else
2818 no_cache=1
2819 fi
2820
2821 ac_cv_use_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI
698dcdb6
VZ
2822
2823fi
10f2d63a
VZ
2824
2825
2826 eval "$ac_cv_use_no_rtti"
2827 if test "$no_cache" != 1; then
2828 echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp
2829 fi
2830
2831 if test "$wxUSE_NO_RTTI" = yes; then
698dcdb6 2832 echo "$ac_t""yes" 1>&6
10f2d63a 2833 else
698dcdb6 2834 echo "$ac_t""no" 1>&6
10f2d63a 2835 fi
698dcdb6 2836
10f2d63a 2837
698dcdb6 2838 echo $ac_n "checking for --enable-no_exceptions""... $ac_c" 1>&6
658974ae 2839echo "configure:2840: checking for --enable-no_exceptions" >&5
10f2d63a
VZ
2840 no_cache=0
2841 # Check whether --enable-no_exceptions or --disable-no_exceptions was given.
2842if test "${enable_no_exceptions+set}" = set; then
2843 enableval="$enable_no_exceptions"
698dcdb6 2844
10f2d63a
VZ
2845 if test "$enableval" = yes; then
2846 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes'
2847 else
2848 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no'
2849 fi
698dcdb6 2850
10f2d63a 2851else
698dcdb6 2852
10f2d63a
VZ
2853 LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}`
2854 if test "x$LINE" != x ; then
2855 eval "DEFAULT_$LINE"
2856 else
2857 no_cache=1
2858 fi
2859
2860 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS
698dcdb6
VZ
2861
2862fi
10f2d63a
VZ
2863
2864
2865 eval "$ac_cv_use_no_exceptions"
2866 if test "$no_cache" != 1; then
2867 echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp
2868 fi
2869
2870 if test "$wxUSE_NO_EXCEPTIONS" = yes; then
698dcdb6 2871 echo "$ac_t""yes" 1>&6
10f2d63a 2872 else
698dcdb6 2873 echo "$ac_t""no" 1>&6
10f2d63a 2874 fi
698dcdb6 2875
10f2d63a 2876
698dcdb6 2877 echo $ac_n "checking for --enable-permissive""... $ac_c" 1>&6
658974ae 2878echo "configure:2879: checking for --enable-permissive" >&5
10f2d63a
VZ
2879 no_cache=0
2880 # Check whether --enable-permissive or --disable-permissive was given.
2881if test "${enable_permissive+set}" = set; then
2882 enableval="$enable_permissive"
698dcdb6 2883
10f2d63a
VZ
2884 if test "$enableval" = yes; then
2885 ac_cv_use_permissive='wxUSE_PERMISSIVE=yes'
2886 else
2887 ac_cv_use_permissive='wxUSE_PERMISSIVE=no'
2888 fi
698dcdb6 2889
10f2d63a 2890else
698dcdb6 2891
10f2d63a
VZ
2892 LINE=`grep "wxUSE_PERMISSIVE" ${wx_arg_cache_file}`
2893 if test "x$LINE" != x ; then
2894 eval "DEFAULT_$LINE"
2895 else
2896 no_cache=1
2897 fi
2898
2899 ac_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE
698dcdb6
VZ
2900
2901fi
10f2d63a
VZ
2902
2903
2904 eval "$ac_cv_use_permissive"
2905 if test "$no_cache" != 1; then
2906 echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp
2907 fi
2908
2909 if test "$wxUSE_PERMISSIVE" = yes; then
698dcdb6 2910 echo "$ac_t""yes" 1>&6
10f2d63a 2911 else
698dcdb6 2912 echo "$ac_t""no" 1>&6
10f2d63a 2913 fi
698dcdb6 2914
10f2d63a 2915
698dcdb6 2916 echo $ac_n "checking for --enable-no_deps""... $ac_c" 1>&6
658974ae 2917echo "configure:2918: checking for --enable-no_deps" >&5
10f2d63a
VZ
2918 no_cache=0
2919 # Check whether --enable-no_deps or --disable-no_deps was given.
2920if test "${enable_no_deps+set}" = set; then
2921 enableval="$enable_no_deps"
698dcdb6 2922
10f2d63a
VZ
2923 if test "$enableval" = yes; then
2924 ac_cv_use_no_deps='wxUSE_NO_DEPS=yes'
2925 else
2926 ac_cv_use_no_deps='wxUSE_NO_DEPS=no'
2927 fi
698dcdb6 2928
10f2d63a 2929else
698dcdb6 2930
10f2d63a
VZ
2931 LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}`
2932 if test "x$LINE" != x ; then
2933 eval "DEFAULT_$LINE"
2934 else
2935 no_cache=1
2936 fi
2937
2938 ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS
698dcdb6
VZ
2939
2940fi
10f2d63a
VZ
2941
2942
2943 eval "$ac_cv_use_no_deps"
2944 if test "$no_cache" != 1; then
2945 echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp
2946 fi
2947
2948 if test "$wxUSE_NO_DEPS" = yes; then
698dcdb6 2949 echo "$ac_t""yes" 1>&6
10f2d63a 2950 else
698dcdb6 2951 echo "$ac_t""no" 1>&6
10f2d63a 2952 fi
698dcdb6
VZ
2953
2954
10f2d63a 2955
54276ccf 2956 echo $ac_n "checking for --enable-compat20""... $ac_c" 1>&6
658974ae 2957echo "configure:2958: checking for --enable-compat20" >&5
54276ccf
VZ
2958 no_cache=0
2959 # Check whether --enable-compat20 or --disable-compat20 was given.
2960if test "${enable_compat20+set}" = set; then
2961 enableval="$enable_compat20"
2962
2963 if test "$enableval" = yes; then
2964 ac_cv_use_compat20='WXWIN_COMPATIBILITY_2=yes'
2965 else
2966 ac_cv_use_compat20='WXWIN_COMPATIBILITY_2=no'
2967 fi
2968
2969else
2970
2971 LINE=`grep "WXWIN_COMPATIBILITY_2" ${wx_arg_cache_file}`
2972 if test "x$LINE" != x ; then
2973 eval "DEFAULT_$LINE"
2974 else
2975 no_cache=1
2976 fi
2977
2978 ac_cv_use_compat20='WXWIN_COMPATIBILITY_2='$DEFAULT_WXWIN_COMPATIBILITY_2
2979
2980fi
2981
2982
2983 eval "$ac_cv_use_compat20"
2984 if test "$no_cache" != 1; then
2985 echo $ac_cv_use_compat20 >> ${wx_arg_cache_file}.tmp
2986 fi
2987
2988 if test "$WXWIN_COMPATIBILITY_2" = yes; then
2989 echo "$ac_t""yes" 1>&6
2990 else
2991 echo "$ac_t""no" 1>&6
2992 fi
2993
2994
2995 echo $ac_n "checking for --enable-compat22""... $ac_c" 1>&6
658974ae 2996echo "configure:2997: checking for --enable-compat22" >&5
54276ccf
VZ
2997 no_cache=0
2998 # Check whether --enable-compat22 or --disable-compat22 was given.
2999if test "${enable_compat22+set}" = set; then
3000 enableval="$enable_compat22"
3001
3002 if test "$enableval" = yes; then
3003 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=yes'
3004 else
3005 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=no'
3006 fi
3007
3008else
3009
3010 LINE=`grep "WXWIN_COMPATIBILITY_2_2" ${wx_arg_cache_file}`
3011 if test "x$LINE" != x ; then
3012 eval "DEFAULT_$LINE"
3013 else
3014 no_cache=1
3015 fi
3016
3017 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2='$DEFAULT_WXWIN_COMPATIBILITY_2_2
3018
3019fi
3020
3021
3022 eval "$ac_cv_use_compat22"
3023 if test "$no_cache" != 1; then
3024 echo $ac_cv_use_compat22 >> ${wx_arg_cache_file}.tmp
3025 fi
3026
3027 if test "$WXWIN_COMPATIBILITY_2_2" = yes; then
3028 echo "$ac_t""yes" 1>&6
3029 else
3030 echo "$ac_t""no" 1>&6
3031 fi
3032
3033
3034
698dcdb6
VZ
3035
3036 echo $ac_n "checking for --enable-intl""... $ac_c" 1>&6
658974ae 3037echo "configure:3038: checking for --enable-intl" >&5
10f2d63a
VZ
3038 no_cache=0
3039 # Check whether --enable-intl or --disable-intl was given.
3040if test "${enable_intl+set}" = set; then
3041 enableval="$enable_intl"
698dcdb6 3042
10f2d63a
VZ
3043 if test "$enableval" = yes; then
3044 ac_cv_use_intl='wxUSE_INTL=yes'
3045 else
3046 ac_cv_use_intl='wxUSE_INTL=no'
3047 fi
698dcdb6 3048
10f2d63a 3049else
698dcdb6 3050
10f2d63a
VZ
3051 LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}`
3052 if test "x$LINE" != x ; then
3053 eval "DEFAULT_$LINE"
3054 else
3055 no_cache=1
3056 fi
3057
3058 ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL
698dcdb6
VZ
3059
3060fi
10f2d63a
VZ
3061
3062
3063 eval "$ac_cv_use_intl"
3064 if test "$no_cache" != 1; then
3065 echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp
3066 fi
3067
3068 if test "$wxUSE_INTL" = yes; then
698dcdb6 3069 echo "$ac_t""yes" 1>&6
10f2d63a 3070 else
698dcdb6 3071 echo "$ac_t""no" 1>&6
10f2d63a 3072 fi
698dcdb6 3073
10f2d63a 3074
698dcdb6 3075 echo $ac_n "checking for --enable-config""... $ac_c" 1>&6
658974ae 3076echo "configure:3077: checking for --enable-config" >&5
10f2d63a
VZ
3077 no_cache=0
3078 # Check whether --enable-config or --disable-config was given.
3079if test "${enable_config+set}" = set; then
3080 enableval="$enable_config"
698dcdb6 3081
10f2d63a
VZ
3082 if test "$enableval" = yes; then
3083 ac_cv_use_config='wxUSE_CONFIG=yes'
3084 else
3085 ac_cv_use_config='wxUSE_CONFIG=no'
3086 fi
698dcdb6 3087
10f2d63a 3088else
698dcdb6 3089
10f2d63a
VZ
3090 LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}`
3091 if test "x$LINE" != x ; then
3092 eval "DEFAULT_$LINE"
3093 else
3094 no_cache=1
3095 fi
3096
3097 ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG
698dcdb6
VZ
3098
3099fi
10f2d63a
VZ
3100
3101
3102 eval "$ac_cv_use_config"
3103 if test "$no_cache" != 1; then
3104 echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp
3105 fi
3106
3107 if test "$wxUSE_CONFIG" = yes; then
698dcdb6 3108 echo "$ac_t""yes" 1>&6
10f2d63a 3109 else
698dcdb6 3110 echo "$ac_t""no" 1>&6
10f2d63a 3111 fi
698dcdb6
VZ
3112
3113
b12915c1 3114
a1622950 3115 echo $ac_n "checking for --enable-protocols""... $ac_c" 1>&6
658974ae 3116echo "configure:3117: checking for --enable-protocols" >&5
a1622950
VZ
3117 no_cache=0
3118 # Check whether --enable-protocols or --disable-protocols was given.
3119if test "${enable_protocols+set}" = set; then
3120 enableval="$enable_protocols"
3121
3122 if test "$enableval" = yes; then
3123 ac_cv_use_protocols='wxUSE_PROTOCOL=yes'
3124 else
3125 ac_cv_use_protocols='wxUSE_PROTOCOL=no'
3126 fi
3127
3128else
3129
3130 LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
3131 if test "x$LINE" != x ; then
3132 eval "DEFAULT_$LINE"
3133 else
3134 no_cache=1
3135 fi
3136
3137 ac_cv_use_protocols='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
3138
3139fi
3140
3141
3142 eval "$ac_cv_use_protocols"
3143 if test "$no_cache" != 1; then
3144 echo $ac_cv_use_protocols >> ${wx_arg_cache_file}.tmp
3145 fi
3146
3147 if test "$wxUSE_PROTOCOL" = yes; then
3148 echo "$ac_t""yes" 1>&6
3149 else
3150 echo "$ac_t""no" 1>&6
3151 fi
3152
3153
3154 echo $ac_n "checking for --enable-ftp""... $ac_c" 1>&6
658974ae 3155echo "configure:3156: checking for --enable-ftp" >&5
a1622950
VZ
3156 no_cache=0
3157 # Check whether --enable-ftp or --disable-ftp was given.
3158if test "${enable_ftp+set}" = set; then
3159 enableval="$enable_ftp"
3160
3161 if test "$enableval" = yes; then
3162 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=yes'
3163 else
3164 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=no'
3165 fi
3166
3167else
3168
3169 LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
3170 if test "x$LINE" != x ; then
3171 eval "DEFAULT_$LINE"
3172 else
3173 no_cache=1
3174 fi
3175
3176 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
3177
3178fi
3179
3180
3181 eval "$ac_cv_use_ftp"
3182 if test "$no_cache" != 1; then
3183 echo $ac_cv_use_ftp >> ${wx_arg_cache_file}.tmp
3184 fi
3185
3186 if test "$wxUSE_PROTOCOL_FTP" = yes; then
3187 echo "$ac_t""yes" 1>&6
3188 else
3189 echo "$ac_t""no" 1>&6
3190 fi
3191
3192
3193 echo $ac_n "checking for --enable-http""... $ac_c" 1>&6
658974ae 3194echo "configure:3195: checking for --enable-http" >&5
a1622950
VZ
3195 no_cache=0
3196 # Check whether --enable-http or --disable-http was given.
3197if test "${enable_http+set}" = set; then
3198 enableval="$enable_http"
3199
3200 if test "$enableval" = yes; then
3201 ac_cv_use_http='wxUSE_PROTOCOL_HTTP=yes'
3202 else
3203 ac_cv_use_http='wxUSE_PROTOCOL_HTTP=no'
3204 fi
3205
3206else
3207
3208 LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
3209 if test "x$LINE" != x ; then
3210 eval "DEFAULT_$LINE"
3211 else
3212 no_cache=1
3213 fi
3214
3215 ac_cv_use_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
3216
3217fi
3218
3219
3220 eval "$ac_cv_use_http"
3221 if test "$no_cache" != 1; then
3222 echo $ac_cv_use_http >> ${wx_arg_cache_file}.tmp
3223 fi
3224
3225 if test "$wxUSE_PROTOCOL_HTTP" = yes; then
3226 echo "$ac_t""yes" 1>&6
3227 else
3228 echo "$ac_t""no" 1>&6
3229 fi
3230
3231
3232 echo $ac_n "checking for --enable-fileproto""... $ac_c" 1>&6
658974ae 3233echo "configure:3234: checking for --enable-fileproto" >&5
a1622950
VZ
3234 no_cache=0
3235 # Check whether --enable-fileproto or --disable-fileproto was given.
3236if test "${enable_fileproto+set}" = set; then
3237 enableval="$enable_fileproto"
3238
3239 if test "$enableval" = yes; then
3240 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=yes'
3241 else
3242 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=no'
3243 fi
3244
3245else
3246
3247 LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
3248 if test "x$LINE" != x ; then
3249 eval "DEFAULT_$LINE"
3250 else
3251 no_cache=1
3252 fi
3253
3254 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
3255
3256fi
3257
3258
3259 eval "$ac_cv_use_fileproto"
3260 if test "$no_cache" != 1; then
3261 echo $ac_cv_use_fileproto >> ${wx_arg_cache_file}.tmp
3262 fi
3263
3264 if test "$wxUSE_PROTOCOL_FILE" = yes; then
3265 echo "$ac_t""yes" 1>&6
3266 else
3267 echo "$ac_t""no" 1>&6
3268 fi
3269
3270
698dcdb6 3271 echo $ac_n "checking for --enable-sockets""... $ac_c" 1>&6
658974ae 3272echo "configure:3273: checking for --enable-sockets" >&5
10f2d63a
VZ
3273 no_cache=0
3274 # Check whether --enable-sockets or --disable-sockets was given.
3275if test "${enable_sockets+set}" = set; then
3276 enableval="$enable_sockets"
698dcdb6 3277
10f2d63a
VZ
3278 if test "$enableval" = yes; then
3279 ac_cv_use_sockets='wxUSE_SOCKETS=yes'
3280 else
3281 ac_cv_use_sockets='wxUSE_SOCKETS=no'
3282 fi
698dcdb6 3283
10f2d63a 3284else
698dcdb6 3285
10f2d63a
VZ
3286 LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}`
3287 if test "x$LINE" != x ; then
3288 eval "DEFAULT_$LINE"
3289 else
3290 no_cache=1
3291 fi
3292
3293 ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS
698dcdb6
VZ
3294
3295fi
10f2d63a
VZ
3296
3297
3298 eval "$ac_cv_use_sockets"
3299 if test "$no_cache" != 1; then
3300 echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp
3301 fi
3302
3303 if test "$wxUSE_SOCKETS" = yes; then
698dcdb6 3304 echo "$ac_t""yes" 1>&6
10f2d63a 3305 else
698dcdb6 3306 echo "$ac_t""no" 1>&6
10f2d63a 3307 fi
698dcdb6 3308
b12915c1 3309
698dcdb6
VZ
3310
3311 echo $ac_n "checking for --enable-ipc""... $ac_c" 1>&6
658974ae 3312echo "configure:3313: checking for --enable-ipc" >&5
10f2d63a 3313 no_cache=0
eb4efbdc
VZ
3314 # Check whether --enable-ipc or --disable-ipc was given.
3315if test "${enable_ipc+set}" = set; then
3316 enableval="$enable_ipc"
698dcdb6 3317
10f2d63a 3318 if test "$enableval" = yes; then
eb4efbdc 3319 ac_cv_use_ipc='wxUSE_IPC=yes'
10f2d63a 3320 else
eb4efbdc 3321 ac_cv_use_ipc='wxUSE_IPC=no'
10f2d63a 3322 fi
698dcdb6 3323
10f2d63a 3324else
698dcdb6 3325
eb4efbdc 3326 LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}`
10f2d63a
VZ
3327 if test "x$LINE" != x ; then
3328 eval "DEFAULT_$LINE"
3329 else
3330 no_cache=1
3331 fi
3332
eb4efbdc 3333 ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC
698dcdb6
VZ
3334
3335fi
10f2d63a
VZ
3336
3337
eb4efbdc 3338 eval "$ac_cv_use_ipc"
10f2d63a 3339 if test "$no_cache" != 1; then
eb4efbdc 3340 echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
3341 fi
3342
eb4efbdc 3343 if test "$wxUSE_IPC" = yes; then
698dcdb6 3344 echo "$ac_t""yes" 1>&6
10f2d63a 3345 else
698dcdb6 3346 echo "$ac_t""no" 1>&6
10f2d63a 3347 fi
698dcdb6
VZ
3348
3349
eb4efbdc 3350
1e6feb95 3351 echo $ac_n "checking for --enable-cmdline""... $ac_c" 1>&6
658974ae 3352echo "configure:3353: checking for --enable-cmdline" >&5
1e6feb95
VZ
3353 no_cache=0
3354 # Check whether --enable-cmdline or --disable-cmdline was given.
3355if test "${enable_cmdline+set}" = set; then
3356 enableval="$enable_cmdline"
3357
3358 if test "$enableval" = yes; then
3359 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=yes'
3360 else
3361 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=no'
3362 fi
3363
3364else
3365
3366 LINE=`grep "wxUSE_CMDLINE_PARSER" ${wx_arg_cache_file}`
3367 if test "x$LINE" != x ; then
3368 eval "DEFAULT_$LINE"
3369 else
3370 no_cache=1
3371 fi
3372
3373 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER='$DEFAULT_wxUSE_CMDLINE_PARSER
3374
3375fi
3376
3377
3378 eval "$ac_cv_use_cmdline"
3379 if test "$no_cache" != 1; then
3380 echo $ac_cv_use_cmdline >> ${wx_arg_cache_file}.tmp
3381 fi
3382
3383 if test "$wxUSE_CMDLINE_PARSER" = yes; then
3384 echo "$ac_t""yes" 1>&6
3385 else
3386 echo "$ac_t""no" 1>&6
3387 fi
3388
3389
3390 echo $ac_n "checking for --enable-datetime""... $ac_c" 1>&6
658974ae 3391echo "configure:3392: checking for --enable-datetime" >&5
1e6feb95
VZ
3392 no_cache=0
3393 # Check whether --enable-datetime or --disable-datetime was given.
3394if test "${enable_datetime+set}" = set; then
3395 enableval="$enable_datetime"
3396
3397 if test "$enableval" = yes; then
3398 ac_cv_use_datetime='wxUSE_DATETIME=yes'
3399 else
3400 ac_cv_use_datetime='wxUSE_DATETIME=no'
3401 fi
3402
3403else
3404
3405 LINE=`grep "wxUSE_DATETIME" ${wx_arg_cache_file}`
3406 if test "x$LINE" != x ; then
3407 eval "DEFAULT_$LINE"
3408 else
3409 no_cache=1
3410 fi
3411
3412 ac_cv_use_datetime='wxUSE_DATETIME='$DEFAULT_wxUSE_DATETIME
3413
3414fi
3415
3416
3417 eval "$ac_cv_use_datetime"
3418 if test "$no_cache" != 1; then
3419 echo $ac_cv_use_datetime >> ${wx_arg_cache_file}.tmp
3420 fi
3421
3422 if test "$wxUSE_DATETIME" = yes; then
3423 echo "$ac_t""yes" 1>&6
3424 else
3425 echo "$ac_t""no" 1>&6
3426 fi
3427
3428
3429 echo $ac_n "checking for --enable-timedate""... $ac_c" 1>&6
658974ae 3430echo "configure:3431: checking for --enable-timedate" >&5
1e6feb95
VZ
3431 no_cache=0
3432 # Check whether --enable-timedate or --disable-timedate was given.
3433if test "${enable_timedate+set}" = set; then
3434 enableval="$enable_timedate"
3435
3436 if test "$enableval" = yes; then
3437 ac_cv_use_timedate='wxUSE_TIMEDATE=yes'
3438 else
3439 ac_cv_use_timedate='wxUSE_TIMEDATE=no'
3440 fi
3441
3442else
3443
3444 LINE=`grep "wxUSE_TIMEDATE" ${wx_arg_cache_file}`
3445 if test "x$LINE" != x ; then
3446 eval "DEFAULT_$LINE"
3447 else
3448 no_cache=1
3449 fi
3450
3451 ac_cv_use_timedate='wxUSE_TIMEDATE='$DEFAULT_wxUSE_TIMEDATE
3452
3453fi
3454
3455
3456 eval "$ac_cv_use_timedate"
3457 if test "$no_cache" != 1; then
3458 echo $ac_cv_use_timedate >> ${wx_arg_cache_file}.tmp
3459 fi
3460
3461 if test "$wxUSE_TIMEDATE" = yes; then
3462 echo "$ac_t""yes" 1>&6
3463 else
3464 echo "$ac_t""no" 1>&6
3465 fi
3466
3467
3468 echo $ac_n "checking for --enable-stopwatch""... $ac_c" 1>&6
658974ae 3469echo "configure:3470: checking for --enable-stopwatch" >&5
1e6feb95
VZ
3470 no_cache=0
3471 # Check whether --enable-stopwatch or --disable-stopwatch was given.
3472if test "${enable_stopwatch+set}" = set; then
3473 enableval="$enable_stopwatch"
3474
3475 if test "$enableval" = yes; then
3476 ac_cv_use_stopwatch='wxUSE_STOPWATCH=yes'
3477 else
3478 ac_cv_use_stopwatch='wxUSE_STOPWATCH=no'
3479 fi
3480
3481else
3482
3483 LINE=`grep "wxUSE_STOPWATCH" ${wx_arg_cache_file}`
3484 if test "x$LINE" != x ; then
3485 eval "DEFAULT_$LINE"
3486 else
3487 no_cache=1
3488 fi
3489
3490 ac_cv_use_stopwatch='wxUSE_STOPWATCH='$DEFAULT_wxUSE_STOPWATCH
3491
3492fi
3493
3494
3495 eval "$ac_cv_use_stopwatch"
3496 if test "$no_cache" != 1; then
3497 echo $ac_cv_use_stopwatch >> ${wx_arg_cache_file}.tmp
3498 fi
3499
3500 if test "$wxUSE_STOPWATCH" = yes; then
3501 echo "$ac_t""yes" 1>&6
3502 else
3503 echo "$ac_t""no" 1>&6
3504 fi
3505
3506
698dcdb6 3507 echo $ac_n "checking for --enable-dialupman""... $ac_c" 1>&6
658974ae 3508echo "configure:3509: checking for --enable-dialupman" >&5
10f2d63a 3509 no_cache=0
eb4efbdc
VZ
3510 # Check whether --enable-dialupman or --disable-dialupman was given.
3511if test "${enable_dialupman+set}" = set; then
3512 enableval="$enable_dialupman"
698dcdb6 3513
10f2d63a 3514 if test "$enableval" = yes; then
eb4efbdc 3515 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes'
10f2d63a 3516 else
eb4efbdc 3517 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no'
10f2d63a 3518 fi
698dcdb6 3519
10f2d63a 3520else
698dcdb6 3521
eb4efbdc 3522 LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}`
10f2d63a
VZ
3523 if test "x$LINE" != x ; then
3524 eval "DEFAULT_$LINE"
3525 else
3526 no_cache=1
3527 fi
3528
eb4efbdc 3529 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER
698dcdb6
VZ
3530
3531fi
10f2d63a
VZ
3532
3533
eb4efbdc 3534 eval "$ac_cv_use_dialupman"
10f2d63a 3535 if test "$no_cache" != 1; then
eb4efbdc 3536 echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
3537 fi
3538
eb4efbdc 3539 if test "$wxUSE_DIALUP_MANAGER" = yes; then
698dcdb6 3540 echo "$ac_t""yes" 1>&6
10f2d63a 3541 else
698dcdb6 3542 echo "$ac_t""no" 1>&6
10f2d63a 3543 fi
698dcdb6 3544
10f2d63a 3545
698dcdb6 3546 echo $ac_n "checking for --enable-apple_ieee""... $ac_c" 1>&6
658974ae 3547echo "configure:3548: checking for --enable-apple_ieee" >&5
10f2d63a
VZ
3548 no_cache=0
3549 # Check whether --enable-apple_ieee or --disable-apple_ieee was given.
3550if test "${enable_apple_ieee+set}" = set; then
3551 enableval="$enable_apple_ieee"
698dcdb6 3552
10f2d63a
VZ
3553 if test "$enableval" = yes; then
3554 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes'
3555 else
3556 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no'
3557 fi
698dcdb6 3558
10f2d63a 3559else
698dcdb6 3560
10f2d63a
VZ
3561 LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}`
3562 if test "x$LINE" != x ; then
3563 eval "DEFAULT_$LINE"
3564 else
3565 no_cache=1
3566 fi
3567
3568 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE
698dcdb6
VZ
3569
3570fi
10f2d63a
VZ
3571
3572
3573 eval "$ac_cv_use_apple_ieee"
3574 if test "$no_cache" != 1; then
3575 echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp
3576 fi
3577
3578 if test "$wxUSE_APPLE_IEEE" = yes; then
698dcdb6 3579 echo "$ac_t""yes" 1>&6
10f2d63a 3580 else
698dcdb6 3581 echo "$ac_t""no" 1>&6
10f2d63a 3582 fi
698dcdb6 3583
10f2d63a 3584
1e6feb95 3585 echo $ac_n "checking for --enable-timer""... $ac_c" 1>&6
658974ae 3586echo "configure:3587: checking for --enable-timer" >&5
10f2d63a 3587 no_cache=0
1e6feb95
VZ
3588 # Check whether --enable-timer or --disable-timer was given.
3589if test "${enable_timer+set}" = set; then
3590 enableval="$enable_timer"
698dcdb6 3591
10f2d63a 3592 if test "$enableval" = yes; then
1e6feb95 3593 ac_cv_use_timer='wxUSE_TIMER=yes'
10f2d63a 3594 else
1e6feb95 3595 ac_cv_use_timer='wxUSE_TIMER=no'
10f2d63a 3596 fi
698dcdb6 3597
10f2d63a 3598else
698dcdb6 3599
1e6feb95 3600 LINE=`grep "wxUSE_TIMER" ${wx_arg_cache_file}`
10f2d63a
VZ
3601 if test "x$LINE" != x ; then
3602 eval "DEFAULT_$LINE"
3603 else
3604 no_cache=1
3605 fi
3606
1e6feb95 3607 ac_cv_use_timer='wxUSE_TIMER='$DEFAULT_wxUSE_TIMER
698dcdb6
VZ
3608
3609fi
10f2d63a
VZ
3610
3611
1e6feb95 3612 eval "$ac_cv_use_timer"
10f2d63a 3613 if test "$no_cache" != 1; then
1e6feb95 3614 echo $ac_cv_use_timer >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
3615 fi
3616
1e6feb95 3617 if test "$wxUSE_TIMER" = yes; then
698dcdb6 3618 echo "$ac_t""yes" 1>&6
10f2d63a 3619 else
698dcdb6 3620 echo "$ac_t""no" 1>&6
10f2d63a 3621 fi
698dcdb6 3622
10f2d63a 3623
698dcdb6 3624 echo $ac_n "checking for --enable-wave""... $ac_c" 1>&6
658974ae 3625echo "configure:3626: checking for --enable-wave" >&5
10f2d63a
VZ
3626 no_cache=0
3627 # Check whether --enable-wave or --disable-wave was given.
3628if test "${enable_wave+set}" = set; then
3629 enableval="$enable_wave"
698dcdb6 3630
10f2d63a
VZ
3631 if test "$enableval" = yes; then
3632 ac_cv_use_wave='wxUSE_WAVE=yes'
3633 else
3634 ac_cv_use_wave='wxUSE_WAVE=no'
3635 fi
698dcdb6 3636
10f2d63a 3637else
698dcdb6 3638
10f2d63a
VZ
3639 LINE=`grep "wxUSE_WAVE" ${wx_arg_cache_file}`
3640 if test "x$LINE" != x ; then
3641 eval "DEFAULT_$LINE"
3642 else
3643 no_cache=1
3644 fi
3645
3646 ac_cv_use_wave='wxUSE_WAVE='$DEFAULT_wxUSE_WAVE
698dcdb6
VZ
3647
3648fi
10f2d63a
VZ
3649
3650
3651 eval "$ac_cv_use_wave"
3652 if test "$no_cache" != 1; then
3653 echo $ac_cv_use_wave >> ${wx_arg_cache_file}.tmp
3654 fi
3655
3656 if test "$wxUSE_WAVE" = yes; then
698dcdb6 3657 echo "$ac_t""yes" 1>&6
10f2d63a 3658 else
698dcdb6 3659 echo "$ac_t""no" 1>&6
10f2d63a 3660 fi
698dcdb6 3661
10f2d63a 3662
698dcdb6 3663 echo $ac_n "checking for --enable-fraction""... $ac_c" 1>&6
658974ae 3664echo "configure:3665: checking for --enable-fraction" >&5
10f2d63a
VZ
3665 no_cache=0
3666 # Check whether --enable-fraction or --disable-fraction was given.
3667if test "${enable_fraction+set}" = set; then
3668 enableval="$enable_fraction"
698dcdb6 3669
10f2d63a
VZ
3670 if test "$enableval" = yes; then
3671 ac_cv_use_fraction='wxUSE_FRACTION=yes'
3672 else
3673 ac_cv_use_fraction='wxUSE_FRACTION=no'
3674 fi
698dcdb6 3675
10f2d63a 3676else
698dcdb6 3677
10f2d63a
VZ
3678 LINE=`grep "wxUSE_FRACTION" ${wx_arg_cache_file}`
3679 if test "x$LINE" != x ; then
3680 eval "DEFAULT_$LINE"
3681 else
3682 no_cache=1
3683 fi
3684
3685 ac_cv_use_fraction='wxUSE_FRACTION='$DEFAULT_wxUSE_FRACTION
698dcdb6
VZ
3686
3687fi
10f2d63a
VZ
3688
3689
3690 eval "$ac_cv_use_fraction"
3691 if test "$no_cache" != 1; then
3692 echo $ac_cv_use_fraction >> ${wx_arg_cache_file}.tmp
3693 fi
3694
3695 if test "$wxUSE_FRACTION" = yes; then
698dcdb6 3696 echo "$ac_t""yes" 1>&6
10f2d63a 3697 else
698dcdb6 3698 echo "$ac_t""no" 1>&6
10f2d63a 3699 fi
698dcdb6 3700
10f2d63a 3701
698dcdb6 3702 echo $ac_n "checking for --enable-dynlib""... $ac_c" 1>&6
658974ae 3703echo "configure:3704: checking for --enable-dynlib" >&5
10f2d63a
VZ
3704 no_cache=0
3705 # Check whether --enable-dynlib or --disable-dynlib was given.
3706if test "${enable_dynlib+set}" = set; then
3707 enableval="$enable_dynlib"
698dcdb6 3708
10f2d63a
VZ
3709 if test "$enableval" = yes; then
3710 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes'
3711 else
3712 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no'
3713 fi
698dcdb6 3714
10f2d63a 3715else
698dcdb6 3716
10f2d63a
VZ
3717 LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}`
3718 if test "x$LINE" != x ; then
3719 eval "DEFAULT_$LINE"
3720 else
3721 no_cache=1
3722 fi
3723
3724 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS
698dcdb6
VZ
3725
3726fi
10f2d63a
VZ
3727
3728
3729 eval "$ac_cv_use_dynlib"
3730 if test "$no_cache" != 1; then
3731 echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp
3732 fi
3733
3734 if test "$wxUSE_DYNLIB_CLASS" = yes; then
698dcdb6 3735 echo "$ac_t""yes" 1>&6
10f2d63a 3736 else
698dcdb6 3737 echo "$ac_t""no" 1>&6
10f2d63a 3738 fi
698dcdb6 3739
10f2d63a 3740
0b9ab0bd 3741 echo $ac_n "checking for --enable-dynamicloader""... $ac_c" 1>&6
658974ae 3742echo "configure:3743: checking for --enable-dynamicloader" >&5
0b9ab0bd
RL
3743 no_cache=0
3744 # Check whether --enable-dynamicloader or --disable-dynamicloader was given.
3745if test "${enable_dynamicloader+set}" = set; then
3746 enableval="$enable_dynamicloader"
3747
3748 if test "$enableval" = yes; then
3749 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=yes'
3750 else
3751 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=no'
3752 fi
3753
3754else
3755
3756 LINE=`grep "wxUSE_DYNAMIC_LOADER" ${wx_arg_cache_file}`
3757 if test "x$LINE" != x ; then
3758 eval "DEFAULT_$LINE"
3759 else
3760 no_cache=1
3761 fi
3762
3763 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER='$DEFAULT_wxUSE_DYNAMIC_LOADER
3764
3765fi
3766
3767
3768 eval "$ac_cv_use_dynamicloader"
3769 if test "$no_cache" != 1; then
3770 echo $ac_cv_use_dynamicloader >> ${wx_arg_cache_file}.tmp
3771 fi
3772
3773 if test "$wxUSE_DYNAMIC_LOADER" = yes; then
3774 echo "$ac_t""yes" 1>&6
3775 else
3776 echo "$ac_t""no" 1>&6
3777 fi
3778
3779
698dcdb6 3780 echo $ac_n "checking for --enable-longlong""... $ac_c" 1>&6
658974ae 3781echo "configure:3782: checking for --enable-longlong" >&5
10f2d63a
VZ
3782 no_cache=0
3783 # Check whether --enable-longlong or --disable-longlong was given.
3784if test "${enable_longlong+set}" = set; then
3785 enableval="$enable_longlong"
698dcdb6 3786
10f2d63a
VZ
3787 if test "$enableval" = yes; then
3788 ac_cv_use_longlong='wxUSE_LONGLONG=yes'
3789 else
3790 ac_cv_use_longlong='wxUSE_LONGLONG=no'
3791 fi
698dcdb6 3792
10f2d63a 3793else
698dcdb6 3794
10f2d63a
VZ
3795 LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}`
3796 if test "x$LINE" != x ; then
3797 eval "DEFAULT_$LINE"
3798 else
3799 no_cache=1
3800 fi
3801
3802 ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG
698dcdb6
VZ
3803
3804fi
10f2d63a
VZ
3805
3806
3807 eval "$ac_cv_use_longlong"
3808 if test "$no_cache" != 1; then
3809 echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp
3810 fi
3811
3812 if test "$wxUSE_LONGLONG" = yes; then
698dcdb6 3813 echo "$ac_t""yes" 1>&6
10f2d63a 3814 else
698dcdb6 3815 echo "$ac_t""no" 1>&6
10f2d63a 3816 fi
698dcdb6 3817
10f2d63a 3818
698dcdb6 3819 echo $ac_n "checking for --enable-geometry""... $ac_c" 1>&6
658974ae 3820echo "configure:3821: checking for --enable-geometry" >&5
e8f65ba6
RR
3821 no_cache=0
3822 # Check whether --enable-geometry or --disable-geometry was given.
3823if test "${enable_geometry+set}" = set; then
3824 enableval="$enable_geometry"
698dcdb6 3825
e8f65ba6
RR
3826 if test "$enableval" = yes; then
3827 ac_cv_use_geometry='wxUSE_GEOMETRY=yes'
3828 else
3829 ac_cv_use_geometry='wxUSE_GEOMETRY=no'
3830 fi
698dcdb6 3831
e8f65ba6 3832else
698dcdb6 3833
e8f65ba6
RR
3834 LINE=`grep "wxUSE_GEOMETRY" ${wx_arg_cache_file}`
3835 if test "x$LINE" != x ; then
3836 eval "DEFAULT_$LINE"
3837 else
3838 no_cache=1
3839 fi
3840
3841 ac_cv_use_geometry='wxUSE_GEOMETRY='$DEFAULT_wxUSE_GEOMETRY
698dcdb6
VZ
3842
3843fi
e8f65ba6
RR
3844
3845
3846 eval "$ac_cv_use_geometry"
3847 if test "$no_cache" != 1; then
3848 echo $ac_cv_use_geometry >> ${wx_arg_cache_file}.tmp
3849 fi
3850
3851 if test "$wxUSE_GEOMETRY" = yes; then
698dcdb6 3852 echo "$ac_t""yes" 1>&6
e8f65ba6 3853 else
698dcdb6 3854 echo "$ac_t""no" 1>&6
e8f65ba6 3855 fi
698dcdb6 3856
e8f65ba6 3857
698dcdb6 3858 echo $ac_n "checking for --enable-log""... $ac_c" 1>&6
658974ae 3859echo "configure:3860: checking for --enable-log" >&5
10f2d63a
VZ
3860 no_cache=0
3861 # Check whether --enable-log or --disable-log was given.
3862if test "${enable_log+set}" = set; then
3863 enableval="$enable_log"
698dcdb6 3864
10f2d63a
VZ
3865 if test "$enableval" = yes; then
3866 ac_cv_use_log='wxUSE_LOG=yes'
3867 else
3868 ac_cv_use_log='wxUSE_LOG=no'
3869 fi
698dcdb6 3870
10f2d63a 3871else
698dcdb6 3872
10f2d63a
VZ
3873 LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}`
3874 if test "x$LINE" != x ; then
3875 eval "DEFAULT_$LINE"
3876 else
3877 no_cache=1
3878 fi
3879
3880 ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG
698dcdb6
VZ
3881
3882fi
10f2d63a
VZ
3883
3884
3885 eval "$ac_cv_use_log"
3886 if test "$no_cache" != 1; then
3887 echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp
3888 fi
3889
3890 if test "$wxUSE_LOG" = yes; then
698dcdb6 3891 echo "$ac_t""yes" 1>&6
10f2d63a 3892 else
698dcdb6 3893 echo "$ac_t""no" 1>&6
10f2d63a 3894 fi
698dcdb6 3895
10f2d63a 3896
698dcdb6 3897 echo $ac_n "checking for --enable-streams""... $ac_c" 1>&6
658974ae 3898echo "configure:3899: checking for --enable-streams" >&5
10f2d63a
VZ
3899 no_cache=0
3900 # Check whether --enable-streams or --disable-streams was given.
3901if test "${enable_streams+set}" = set; then
3902 enableval="$enable_streams"
698dcdb6 3903
10f2d63a
VZ
3904 if test "$enableval" = yes; then
3905 ac_cv_use_streams='wxUSE_STREAMS=yes'
3906 else
3907 ac_cv_use_streams='wxUSE_STREAMS=no'
3908 fi
698dcdb6 3909
10f2d63a 3910else
698dcdb6 3911
10f2d63a
VZ
3912 LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}`
3913 if test "x$LINE" != x ; then
3914 eval "DEFAULT_$LINE"
3915 else
3916 no_cache=1
3917 fi
3918
3919 ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS
698dcdb6
VZ
3920
3921fi
10f2d63a
VZ
3922
3923
3924 eval "$ac_cv_use_streams"
3925 if test "$no_cache" != 1; then
3926 echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp
3927 fi
3928
3929 if test "$wxUSE_STREAMS" = yes; then
698dcdb6 3930 echo "$ac_t""yes" 1>&6
10f2d63a 3931 else
698dcdb6 3932 echo "$ac_t""no" 1>&6
10f2d63a 3933 fi
698dcdb6 3934
10f2d63a 3935
698dcdb6 3936 echo $ac_n "checking for --enable-file""... $ac_c" 1>&6
658974ae 3937echo "configure:3938: checking for --enable-file" >&5
10f2d63a
VZ
3938 no_cache=0
3939 # Check whether --enable-file or --disable-file was given.
3940if test "${enable_file+set}" = set; then
3941 enableval="$enable_file"
698dcdb6 3942
10f2d63a
VZ
3943 if test "$enableval" = yes; then
3944 ac_cv_use_file='wxUSE_FILE=yes'
3945 else
3946 ac_cv_use_file='wxUSE_FILE=no'
3947 fi
698dcdb6 3948
10f2d63a 3949else
698dcdb6 3950
10f2d63a
VZ
3951 LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}`
3952 if test "x$LINE" != x ; then
3953 eval "DEFAULT_$LINE"
3954 else
3955 no_cache=1
3956 fi
3957
3958 ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE
698dcdb6
VZ
3959
3960fi
10f2d63a
VZ
3961
3962
3963 eval "$ac_cv_use_file"
3964 if test "$no_cache" != 1; then
3965 echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp
3966 fi
3967
3968 if test "$wxUSE_FILE" = yes; then
698dcdb6 3969 echo "$ac_t""yes" 1>&6
10f2d63a 3970 else
698dcdb6 3971 echo "$ac_t""no" 1>&6
10f2d63a 3972 fi
698dcdb6 3973
10f2d63a 3974
1e6feb95 3975 echo $ac_n "checking for --enable-ffile""... $ac_c" 1>&6
658974ae 3976echo "configure:3977: checking for --enable-ffile" >&5
10f2d63a 3977 no_cache=0
1e6feb95
VZ
3978 # Check whether --enable-ffile or --disable-ffile was given.
3979if test "${enable_ffile+set}" = set; then
3980 enableval="$enable_ffile"
698dcdb6 3981
10f2d63a 3982 if test "$enableval" = yes; then
1e6feb95 3983 ac_cv_use_ffile='wxUSE_FFILE=yes'
10f2d63a 3984 else
1e6feb95 3985 ac_cv_use_ffile='wxUSE_FFILE=no'
10f2d63a 3986 fi
698dcdb6 3987
10f2d63a 3988else
698dcdb6 3989
1e6feb95 3990 LINE=`grep "wxUSE_FFILE" ${wx_arg_cache_file}`
10f2d63a
VZ
3991 if test "x$LINE" != x ; then
3992 eval "DEFAULT_$LINE"
3993 else
3994 no_cache=1
3995 fi
3996
1e6feb95 3997 ac_cv_use_ffile='wxUSE_FFILE='$DEFAULT_wxUSE_FFILE
698dcdb6
VZ
3998
3999fi
10f2d63a
VZ
4000
4001
1e6feb95 4002 eval "$ac_cv_use_ffile"
10f2d63a 4003 if test "$no_cache" != 1; then
1e6feb95 4004 echo $ac_cv_use_ffile >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
4005 fi
4006
1e6feb95 4007 if test "$wxUSE_FFILE" = yes; then
698dcdb6 4008 echo "$ac_t""yes" 1>&6
10f2d63a 4009 else
698dcdb6 4010 echo "$ac_t""no" 1>&6
10f2d63a 4011 fi
698dcdb6 4012
10f2d63a 4013
a3a584a7 4014 echo $ac_n "checking for --enable-textbuf""... $ac_c" 1>&6
658974ae 4015echo "configure:4016: checking for --enable-textbuf" >&5
a3a584a7
VZ
4016 no_cache=0
4017 # Check whether --enable-textbuf or --disable-textbuf was given.
4018if test "${enable_textbuf+set}" = set; then
4019 enableval="$enable_textbuf"
4020
4021 if test "$enableval" = yes; then
4022 ac_cv_use_textbuf='wxUSE_TEXTBUFFER=yes'
4023 else
4024 ac_cv_use_textbuf='wxUSE_TEXTBUFFER=no'
4025 fi
4026
4027else
4028
4029 LINE=`grep "wxUSE_TEXTBUFFER" ${wx_arg_cache_file}`
4030 if test "x$LINE" != x ; then
4031 eval "DEFAULT_$LINE"
4032 else
4033 no_cache=1
4034 fi
4035
4036 ac_cv_use_textbuf='wxUSE_TEXTBUFFER='$DEFAULT_wxUSE_TEXTBUFFER
4037
4038fi
4039
4040
4041 eval "$ac_cv_use_textbuf"
4042 if test "$no_cache" != 1; then
4043 echo $ac_cv_use_textbuf >> ${wx_arg_cache_file}.tmp
4044 fi
4045
4046 if test "$wxUSE_TEXTBUFFER" = yes; then
4047 echo "$ac_t""yes" 1>&6
4048 else
4049 echo "$ac_t""no" 1>&6
4050 fi
4051
4052
1e6feb95 4053 echo $ac_n "checking for --enable-textfile""... $ac_c" 1>&6
658974ae 4054echo "configure:4055: checking for --enable-textfile" >&5
10f2d63a 4055 no_cache=0
1e6feb95
VZ
4056 # Check whether --enable-textfile or --disable-textfile was given.
4057if test "${enable_textfile+set}" = set; then
4058 enableval="$enable_textfile"
698dcdb6 4059
10f2d63a 4060 if test "$enableval" = yes; then
1e6feb95 4061 ac_cv_use_textfile='wxUSE_TEXTFILE=yes'
10f2d63a 4062 else
1e6feb95 4063 ac_cv_use_textfile='wxUSE_TEXTFILE=no'
10f2d63a 4064 fi
698dcdb6 4065
10f2d63a 4066else
698dcdb6 4067
1e6feb95 4068 LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}`
10f2d63a
VZ
4069 if test "x$LINE" != x ; then
4070 eval "DEFAULT_$LINE"
4071 else
4072 no_cache=1
4073 fi
4074
1e6feb95 4075 ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE
698dcdb6
VZ
4076
4077fi
10f2d63a
VZ
4078
4079
1e6feb95 4080 eval "$ac_cv_use_textfile"
10f2d63a 4081 if test "$no_cache" != 1; then
1e6feb95 4082 echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
4083 fi
4084
1e6feb95 4085 if test "$wxUSE_TEXTFILE" = yes; then
698dcdb6 4086 echo "$ac_t""yes" 1>&6
10f2d63a 4087 else
698dcdb6 4088 echo "$ac_t""no" 1>&6
10f2d63a 4089 fi
698dcdb6 4090
10f2d63a 4091
1e6feb95 4092 echo $ac_n "checking for --enable-fontmap""... $ac_c" 1>&6
658974ae 4093echo "configure:4094: checking for --enable-fontmap" >&5
10f2d63a 4094 no_cache=0
1e6feb95
VZ
4095 # Check whether --enable-fontmap or --disable-fontmap was given.
4096if test "${enable_fontmap+set}" = set; then
4097 enableval="$enable_fontmap"
698dcdb6 4098
10f2d63a 4099 if test "$enableval" = yes; then
1e6feb95 4100 ac_cv_use_fontmap='wxUSE_FONTMAP=yes'
10f2d63a 4101 else
1e6feb95 4102 ac_cv_use_fontmap='wxUSE_FONTMAP=no'
10f2d63a 4103 fi
698dcdb6 4104
10f2d63a 4105else
698dcdb6 4106
1e6feb95 4107 LINE=`grep "wxUSE_FONTMAP" ${wx_arg_cache_file}`
10f2d63a
VZ
4108 if test "x$LINE" != x ; then
4109 eval "DEFAULT_$LINE"
4110 else
4111 no_cache=1
4112 fi
4113
1e6feb95 4114 ac_cv_use_fontmap='wxUSE_FONTMAP='$DEFAULT_wxUSE_FONTMAP
698dcdb6
VZ
4115
4116fi
10f2d63a
VZ
4117
4118
1e6feb95 4119 eval "$ac_cv_use_fontmap"
10f2d63a 4120 if test "$no_cache" != 1; then
1e6feb95 4121 echo $ac_cv_use_fontmap >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
4122 fi
4123
1e6feb95 4124 if test "$wxUSE_FONTMAP" = yes; then
698dcdb6 4125 echo "$ac_t""yes" 1>&6
10f2d63a 4126 else
698dcdb6 4127 echo "$ac_t""no" 1>&6
10f2d63a 4128 fi
698dcdb6 4129
10f2d63a 4130
1e6feb95 4131 echo $ac_n "checking for --enable-unicode""... $ac_c" 1>&6
658974ae 4132echo "configure:4133: checking for --enable-unicode" >&5
10f2d63a 4133 no_cache=0
1e6feb95
VZ
4134 # Check whether --enable-unicode or --disable-unicode was given.
4135if test "${enable_unicode+set}" = set; then
4136 enableval="$enable_unicode"
4137
4138 if test "$enableval" = yes; then
4139 ac_cv_use_unicode='wxUSE_UNICODE=yes'
4140 else
4141 ac_cv_use_unicode='wxUSE_UNICODE=no'
4142 fi
4143
4144else
4145
4146 LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}`
4147 if test "x$LINE" != x ; then
4148 eval "DEFAULT_$LINE"
4149 else
4150 no_cache=1
4151 fi
4152
4153 ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE
4154
4155fi
4156
4157
4158 eval "$ac_cv_use_unicode"
4159 if test "$no_cache" != 1; then
4160 echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp
4161 fi
4162
4163 if test "$wxUSE_UNICODE" = yes; then
4164 echo "$ac_t""yes" 1>&6
4165 else
4166 echo "$ac_t""no" 1>&6
4167 fi
4168
4169
a72a4bfa 4170 echo $ac_n "checking for --enable-mslu""... $ac_c" 1>&6
658974ae 4171echo "configure:4172: checking for --enable-mslu" >&5
a72a4bfa
VS
4172 no_cache=0
4173 # Check whether --enable-mslu or --disable-mslu was given.
4174if test "${enable_mslu+set}" = set; then
4175 enableval="$enable_mslu"
4176
4177 if test "$enableval" = yes; then
4178 ac_cv_use_mslu='wxUSE_UNICODE_MSLU=yes'
4179 else
4180 ac_cv_use_mslu='wxUSE_UNICODE_MSLU=no'
4181 fi
4182
4183else
4184
4185 LINE=`grep "wxUSE_UNICODE_MSLU" ${wx_arg_cache_file}`
4186 if test "x$LINE" != x ; then
4187 eval "DEFAULT_$LINE"
4188 else
4189 no_cache=1
4190 fi
4191
4192 ac_cv_use_mslu='wxUSE_UNICODE_MSLU='$DEFAULT_wxUSE_UNICODE_MSLU
4193
4194fi
4195
4196
4197 eval "$ac_cv_use_mslu"
4198 if test "$no_cache" != 1; then
4199 echo $ac_cv_use_mslu >> ${wx_arg_cache_file}.tmp
4200 fi
4201
4202 if test "$wxUSE_UNICODE_MSLU" = yes; then
4203 echo "$ac_t""yes" 1>&6
4204 else
4205 echo "$ac_t""no" 1>&6
4206 fi
4207
4208
1e6feb95 4209 echo $ac_n "checking for --enable-wxprintfv""... $ac_c" 1>&6
658974ae 4210echo "configure:4211: checking for --enable-wxprintfv" >&5
1e6feb95
VZ
4211 no_cache=0
4212 # Check whether --enable-wxprintfv or --disable-wxprintfv was given.
4213if test "${enable_wxprintfv+set}" = set; then
4214 enableval="$enable_wxprintfv"
4215
4216 if test "$enableval" = yes; then
10f2d63a
VZ
4217 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=yes'
4218 else
4219 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=no'
4220 fi
698dcdb6 4221
10f2d63a 4222else
698dcdb6 4223
10f2d63a
VZ
4224 LINE=`grep "wxUSE_EXPERIMENTAL_PRINTF" ${wx_arg_cache_file}`
4225 if test "x$LINE" != x ; then
4226 eval "DEFAULT_$LINE"
4227 else
4228 no_cache=1
4229 fi
4230
4231 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF='$DEFAULT_wxUSE_EXPERIMENTAL_PRINTF
698dcdb6
VZ
4232
4233fi
10f2d63a
VZ
4234
4235
4236 eval "$ac_cv_use_wxprintfv"
4237 if test "$no_cache" != 1; then
4238 echo $ac_cv_use_wxprintfv >> ${wx_arg_cache_file}.tmp
4239 fi
4240
4241 if test "$wxUSE_EXPERIMENTAL_PRINTF" = yes; then
698dcdb6 4242 echo "$ac_t""yes" 1>&6
10f2d63a 4243 else
698dcdb6 4244 echo "$ac_t""no" 1>&6
10f2d63a 4245 fi
698dcdb6 4246
10f2d63a 4247
698dcdb6 4248 echo $ac_n "checking for --enable-std_iostreams""... $ac_c" 1>&6
658974ae 4249echo "configure:4250: checking for --enable-std_iostreams" >&5
10f2d63a
VZ
4250 no_cache=0
4251 # Check whether --enable-std_iostreams or --disable-std_iostreams was given.
4252if test "${enable_std_iostreams+set}" = set; then
4253 enableval="$enable_std_iostreams"
698dcdb6 4254
10f2d63a
VZ
4255 if test "$enableval" = yes; then
4256 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes'
4257 else
4258 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no'
4259 fi
698dcdb6 4260
10f2d63a 4261else
698dcdb6 4262
10f2d63a
VZ
4263 LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}`
4264 if test "x$LINE" != x ; then
4265 eval "DEFAULT_$LINE"
4266 else
4267 no_cache=1
4268 fi
4269
4270 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM
698dcdb6
VZ
4271
4272fi
10f2d63a
VZ
4273
4274
4275 eval "$ac_cv_use_std_iostreams"
4276 if test "$no_cache" != 1; then
4277 echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp
4278 fi
4279
4280 if test "$wxUSE_STD_IOSTREAM" = yes; then
698dcdb6 4281 echo "$ac_t""yes" 1>&6
10f2d63a 4282 else
698dcdb6 4283 echo "$ac_t""no" 1>&6
10f2d63a 4284 fi
698dcdb6 4285
10f2d63a 4286
698dcdb6 4287 echo $ac_n "checking for --enable-filesystem""... $ac_c" 1>&6
658974ae 4288echo "configure:4289: checking for --enable-filesystem" >&5
24528b0c
VS
4289 no_cache=0
4290 # Check whether --enable-filesystem or --disable-filesystem was given.
4291if test "${enable_filesystem+set}" = set; then
4292 enableval="$enable_filesystem"
698dcdb6 4293
24528b0c
VS
4294 if test "$enableval" = yes; then
4295 ac_cv_use_filesystem='wxUSE_FILESYSTEM=yes'
4296 else
4297 ac_cv_use_filesystem='wxUSE_FILESYSTEM=no'
4298 fi
698dcdb6 4299
24528b0c 4300else
698dcdb6 4301
24528b0c
VS
4302 LINE=`grep "wxUSE_FILESYSTEM" ${wx_arg_cache_file}`
4303 if test "x$LINE" != x ; then
4304 eval "DEFAULT_$LINE"
4305 else
4306 no_cache=1
4307 fi
4308
4309 ac_cv_use_filesystem='wxUSE_FILESYSTEM='$DEFAULT_wxUSE_FILESYSTEM
698dcdb6
VZ
4310
4311fi
24528b0c
VS
4312
4313
4314 eval "$ac_cv_use_filesystem"
4315 if test "$no_cache" != 1; then
4316 echo $ac_cv_use_filesystem >> ${wx_arg_cache_file}.tmp
4317 fi
4318
4319 if test "$wxUSE_FILESYSTEM" = yes; then
698dcdb6 4320 echo "$ac_t""yes" 1>&6
24528b0c 4321 else
698dcdb6 4322 echo "$ac_t""no" 1>&6
24528b0c 4323 fi
698dcdb6 4324
24528b0c 4325
698dcdb6 4326 echo $ac_n "checking for --enable-fs_inet""... $ac_c" 1>&6
658974ae 4327echo "configure:4328: checking for --enable-fs_inet" >&5
10f2d63a
VZ
4328 no_cache=0
4329 # Check whether --enable-fs_inet or --disable-fs_inet was given.
4330if test "${enable_fs_inet+set}" = set; then
4331 enableval="$enable_fs_inet"
698dcdb6 4332
10f2d63a
VZ
4333 if test "$enableval" = yes; then
4334 ac_cv_use_fs_inet='wxUSE_FS_INET=yes'
4335 else
4336 ac_cv_use_fs_inet='wxUSE_FS_INET=no'
4337 fi
698dcdb6 4338
10f2d63a 4339else
698dcdb6 4340
10f2d63a
VZ
4341 LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}`
4342 if test "x$LINE" != x ; then
4343 eval "DEFAULT_$LINE"
4344 else
4345 no_cache=1
4346 fi
4347
4348 ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET
698dcdb6
VZ
4349
4350fi
10f2d63a
VZ
4351
4352
4353 eval "$ac_cv_use_fs_inet"
4354 if test "$no_cache" != 1; then
4355 echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp
4356 fi
4357
4358 if test "$wxUSE_FS_INET" = yes; then
698dcdb6 4359 echo "$ac_t""yes" 1>&6
10f2d63a 4360 else
698dcdb6 4361 echo "$ac_t""no" 1>&6
10f2d63a 4362 fi
698dcdb6 4363
10f2d63a 4364
698dcdb6 4365 echo $ac_n "checking for --enable-fs_zip""... $ac_c" 1>&6
658974ae 4366echo "configure:4367: checking for --enable-fs_zip" >&5
10f2d63a
VZ
4367 no_cache=0
4368 # Check whether --enable-fs_zip or --disable-fs_zip was given.
4369if test "${enable_fs_zip+set}" = set; then
4370 enableval="$enable_fs_zip"
698dcdb6 4371
10f2d63a
VZ
4372 if test "$enableval" = yes; then
4373 ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes'
4374 else
4375 ac_cv_use_fs_zip='wxUSE_FS_ZIP=no'
4376 fi
698dcdb6 4377
10f2d63a 4378else
698dcdb6 4379
10f2d63a
VZ
4380 LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}`
4381 if test "x$LINE" != x ; then
4382 eval "DEFAULT_$LINE"
4383 else
4384 no_cache=1
4385 fi
4386
4387 ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP
698dcdb6
VZ
4388
4389fi
10f2d63a
VZ
4390
4391
4392 eval "$ac_cv_use_fs_zip"
4393 if test "$no_cache" != 1; then
4394 echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp
4395 fi
4396
4397 if test "$wxUSE_FS_ZIP" = yes; then
698dcdb6 4398 echo "$ac_t""yes" 1>&6
10f2d63a 4399 else
698dcdb6 4400 echo "$ac_t""no" 1>&6
10f2d63a 4401 fi
698dcdb6 4402
10f2d63a 4403
698dcdb6 4404 echo $ac_n "checking for --enable-zipstream""... $ac_c" 1>&6
658974ae 4405echo "configure:4406: checking for --enable-zipstream" >&5
10f2d63a
VZ
4406 no_cache=0
4407 # Check whether --enable-zipstream or --disable-zipstream was given.
4408if test "${enable_zipstream+set}" = set; then
4409 enableval="$enable_zipstream"
698dcdb6 4410
10f2d63a
VZ
4411 if test "$enableval" = yes; then
4412 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes'
4413 else
4414 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no'
4415 fi
698dcdb6 4416
10f2d63a 4417else
698dcdb6 4418
10f2d63a
VZ
4419 LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}`
4420 if test "x$LINE" != x ; then
4421 eval "DEFAULT_$LINE"
4422 else
4423 no_cache=1
4424 fi
4425
4426 ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM
698dcdb6
VZ
4427
4428fi
10f2d63a
VZ
4429
4430
4431 eval "$ac_cv_use_zipstream"
4432 if test "$no_cache" != 1; then
4433 echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp
4434 fi
4435
4436 if test "$wxUSE_ZIPSTREAM" = yes; then
698dcdb6 4437 echo "$ac_t""yes" 1>&6
10f2d63a 4438 else
698dcdb6 4439 echo "$ac_t""no" 1>&6
10f2d63a 4440 fi
698dcdb6 4441
10f2d63a 4442
698dcdb6
VZ
4443
4444 echo $ac_n "checking for --enable-catch_segvs""... $ac_c" 1>&6
658974ae 4445echo "configure:4446: checking for --enable-catch_segvs" >&5
eb4efbdc
VZ
4446 no_cache=0
4447 # Check whether --enable-catch_segvs or --disable-catch_segvs was given.
4448if test "${enable_catch_segvs+set}" = set; then
4449 enableval="$enable_catch_segvs"
698dcdb6 4450
eb4efbdc
VZ
4451 if test "$enableval" = yes; then
4452 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes'
4453 else
4454 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no'
4455 fi
698dcdb6 4456
eb4efbdc 4457else
698dcdb6 4458
eb4efbdc
VZ
4459 LINE=`grep "wxUSE_ON_FATAL_EXCEPTION" ${wx_arg_cache_file}`
4460 if test "x$LINE" != x ; then
4461 eval "DEFAULT_$LINE"
4462 else
4463 no_cache=1
4464 fi
4465
4466 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION='$DEFAULT_wxUSE_ON_FATAL_EXCEPTION
698dcdb6
VZ
4467
4468fi
eb4efbdc
VZ
4469
4470
4471 eval "$ac_cv_use_catch_segvs"
4472 if test "$no_cache" != 1; then
4473 echo $ac_cv_use_catch_segvs >> ${wx_arg_cache_file}.tmp
4474 fi
4475
4476 if test "$wxUSE_ON_FATAL_EXCEPTION" = yes; then
698dcdb6 4477 echo "$ac_t""yes" 1>&6
eb4efbdc 4478 else
698dcdb6 4479 echo "$ac_t""no" 1>&6
eb4efbdc 4480 fi
698dcdb6 4481
eb4efbdc 4482
698dcdb6 4483 echo $ac_n "checking for --enable-snglinst""... $ac_c" 1>&6
658974ae 4484echo "configure:4485: checking for --enable-snglinst" >&5
4f3c5f06
VZ
4485 no_cache=0
4486 # Check whether --enable-snglinst or --disable-snglinst was given.
4487if test "${enable_snglinst+set}" = set; then
4488 enableval="$enable_snglinst"
698dcdb6 4489
4f3c5f06
VZ
4490 if test "$enableval" = yes; then
4491 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=yes'
4492 else
4493 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=no'
4494 fi
698dcdb6 4495
4f3c5f06 4496else
698dcdb6 4497
4f3c5f06
VZ
4498 LINE=`grep "wxUSE_SNGLINST_CHECKER" ${wx_arg_cache_file}`
4499 if test "x$LINE" != x ; then
4500 eval "DEFAULT_$LINE"
4501 else
4502 no_cache=1
4503 fi
4504
4505 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER='$DEFAULT_wxUSE_SNGLINST_CHECKER
698dcdb6
VZ
4506
4507fi
4f3c5f06
VZ
4508
4509
4510 eval "$ac_cv_use_snglinst"
4511 if test "$no_cache" != 1; then
4512 echo $ac_cv_use_snglinst >> ${wx_arg_cache_file}.tmp
4513 fi
4514
4515 if test "$wxUSE_SNGLINST_CHECKER" = yes; then
698dcdb6 4516 echo "$ac_t""yes" 1>&6
4f3c5f06 4517 else
698dcdb6 4518 echo "$ac_t""no" 1>&6
4f3c5f06 4519 fi
698dcdb6
VZ
4520
4521
eb4efbdc 4522
1e6feb95 4523 echo $ac_n "checking for --enable-mimetype""... $ac_c" 1>&6
658974ae 4524echo "configure:4525: checking for --enable-mimetype" >&5
1e6feb95
VZ
4525 no_cache=0
4526 # Check whether --enable-mimetype or --disable-mimetype was given.
4527if test "${enable_mimetype+set}" = set; then
4528 enableval="$enable_mimetype"
4529
4530 if test "$enableval" = yes; then
4531 ac_cv_use_mimetype='wxUSE_MIMETYPE=yes'
4532 else
4533 ac_cv_use_mimetype='wxUSE_MIMETYPE=no'
4534 fi
4535
4536else
4537
4538 LINE=`grep "wxUSE_MIMETYPE" ${wx_arg_cache_file}`
4539 if test "x$LINE" != x ; then
4540 eval "DEFAULT_$LINE"
4541 else
4542 no_cache=1
4543 fi
4544
4545 ac_cv_use_mimetype='wxUSE_MIMETYPE='$DEFAULT_wxUSE_MIMETYPE
4546
4547fi
4548
4549
4550 eval "$ac_cv_use_mimetype"
4551 if test "$no_cache" != 1; then
4552 echo $ac_cv_use_mimetype >> ${wx_arg_cache_file}.tmp
4553 fi
4554
4555 if test "$wxUSE_MIMETYPE" = yes; then
4556 echo "$ac_t""yes" 1>&6
4557 else
4558 echo "$ac_t""no" 1>&6
4559 fi
4560
4561
3e44f09d 4562 echo $ac_n "checking for --enable-system_options""... $ac_c" 1>&6
658974ae 4563echo "configure:4564: checking for --enable-system_options" >&5
3e44f09d
VZ
4564 no_cache=0
4565 # Check whether --enable-system_options or --disable-system_options was given.
4566if test "${enable_system_options+set}" = set; then
4567 enableval="$enable_system_options"
4568
4569 if test "$enableval" = yes; then
4570 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=yes'
4571 else
4572 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=no'
4573 fi
4574
4575else
4576
4577 LINE=`grep "wxUSE_SYSTEM_OPTIONS" ${wx_arg_cache_file}`
4578 if test "x$LINE" != x ; then
4579 eval "DEFAULT_$LINE"
4580 else
4581 no_cache=1
4582 fi
4583
4584 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS='$DEFAULT_wxUSE_SYSTEM_OPTIONS
4585
4586fi
4587
4588
4589 eval "$ac_cv_use_system_options"
4590 if test "$no_cache" != 1; then
4591 echo $ac_cv_use_system_options >> ${wx_arg_cache_file}.tmp
4592 fi
4593
4594 if test "$wxUSE_SYSTEM_OPTIONS" = yes; then
4595 echo "$ac_t""yes" 1>&6
4596 else
4597 echo "$ac_t""no" 1>&6
4598 fi
4599
4600
1e6feb95 4601
4cdb0ab0 4602 echo $ac_n "checking for --enable-url""... $ac_c" 1>&6
658974ae 4603echo "configure:4604: checking for --enable-url" >&5
4cdb0ab0
VS
4604 no_cache=0
4605 # Check whether --enable-url or --disable-url was given.
4606if test "${enable_url+set}" = set; then
4607 enableval="$enable_url"
4608
4609 if test "$enableval" = yes; then
4610 ac_cv_use_url='wxUSE_URL=yes'
4611 else
4612 ac_cv_use_url='wxUSE_URL=no'
4613 fi
4614
4615else
4616
4617 LINE=`grep "wxUSE_URL" ${wx_arg_cache_file}`
4618 if test "x$LINE" != x ; then
4619 eval "DEFAULT_$LINE"
4620 else
4621 no_cache=1
4622 fi
4623
4624 ac_cv_use_url='wxUSE_URL='$DEFAULT_wxUSE_URL
4625
4626fi
4627
4628
4629 eval "$ac_cv_use_url"
4630 if test "$no_cache" != 1; then
4631 echo $ac_cv_use_url >> ${wx_arg_cache_file}.tmp
4632 fi
4633
4634 if test "$wxUSE_URL" = yes; then
4635 echo "$ac_t""yes" 1>&6
4636 else
4637 echo "$ac_t""no" 1>&6
4638 fi
4639
4640
4641 echo $ac_n "checking for --enable-protocol""... $ac_c" 1>&6
658974ae 4642echo "configure:4643: checking for --enable-protocol" >&5
4cdb0ab0
VS
4643 no_cache=0
4644 # Check whether --enable-protocol or --disable-protocol was given.
4645if test "${enable_protocol+set}" = set; then
4646 enableval="$enable_protocol"
4647
4648 if test "$enableval" = yes; then
4649 ac_cv_use_protocol='wxUSE_PROTOCOL=yes'
4650 else
4651 ac_cv_use_protocol='wxUSE_PROTOCOL=no'
4652 fi
4653
4654else
4655
4656 LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
4657 if test "x$LINE" != x ; then
4658 eval "DEFAULT_$LINE"
4659 else
4660 no_cache=1
4661 fi
4662
4663 ac_cv_use_protocol='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
4664
4665fi
4666
4667
4668 eval "$ac_cv_use_protocol"
4669 if test "$no_cache" != 1; then
4670 echo $ac_cv_use_protocol >> ${wx_arg_cache_file}.tmp
4671 fi
4672
4673 if test "$wxUSE_PROTOCOL" = yes; then
4674 echo "$ac_t""yes" 1>&6
4675 else
4676 echo "$ac_t""no" 1>&6
4677 fi
4678
4679
4680 echo $ac_n "checking for --enable-protocol_http""... $ac_c" 1>&6
658974ae 4681echo "configure:4682: checking for --enable-protocol_http" >&5
4cdb0ab0
VS
4682 no_cache=0
4683 # Check whether --enable-protocol_http or --disable-protocol_http was given.
4684if test "${enable_protocol_http+set}" = set; then
4685 enableval="$enable_protocol_http"
4686
4687 if test "$enableval" = yes; then
4688 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=yes'
4689 else
4690 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=no'
4691 fi
4692
4693else
4694
4695 LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
4696 if test "x$LINE" != x ; then
4697 eval "DEFAULT_$LINE"
4698 else
4699 no_cache=1
4700 fi
4701
4702 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
4703
4704fi
4705
4706
4707 eval "$ac_cv_use_protocol_http"
4708 if test "$no_cache" != 1; then
4709 echo $ac_cv_use_protocol_http >> ${wx_arg_cache_file}.tmp
4710 fi
4711
4712 if test "$wxUSE_PROTOCOL_HTTP" = yes; then
4713 echo "$ac_t""yes" 1>&6
4714 else
4715 echo "$ac_t""no" 1>&6
4716 fi
4717
4718
4719 echo $ac_n "checking for --enable-protocol_ftp""... $ac_c" 1>&6
658974ae 4720echo "configure:4721: checking for --enable-protocol_ftp" >&5
4cdb0ab0
VS
4721 no_cache=0
4722 # Check whether --enable-protocol_ftp or --disable-protocol_ftp was given.
4723if test "${enable_protocol_ftp+set}" = set; then
4724 enableval="$enable_protocol_ftp"
4725
4726 if test "$enableval" = yes; then
4727 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=yes'
4728 else
4729 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=no'
4730 fi
4731
4732else
4733
4734 LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
4735 if test "x$LINE" != x ; then
4736 eval "DEFAULT_$LINE"
4737 else
4738 no_cache=1
4739 fi
4740
4741 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
4742
4743fi
4744
4745
4746 eval "$ac_cv_use_protocol_ftp"
4747 if test "$no_cache" != 1; then
4748 echo $ac_cv_use_protocol_ftp >> ${wx_arg_cache_file}.tmp
4749 fi
4750
4751 if test "$wxUSE_PROTOCOL_FTP" = yes; then
4752 echo "$ac_t""yes" 1>&6
4753 else
4754 echo "$ac_t""no" 1>&6
4755 fi
4756
4757
4758 echo $ac_n "checking for --enable-protocol_file""... $ac_c" 1>&6
658974ae 4759echo "configure:4760: checking for --enable-protocol_file" >&5
4cdb0ab0
VS
4760 no_cache=0
4761 # Check whether --enable-protocol_file or --disable-protocol_file was given.
4762if test "${enable_protocol_file+set}" = set; then
4763 enableval="$enable_protocol_file"
4764
4765 if test "$enableval" = yes; then
4766 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=yes'
4767 else
4768 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=no'
4769 fi
4770
4771else
4772
4773 LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
4774 if test "x$LINE" != x ; then
4775 eval "DEFAULT_$LINE"
4776 else
4777 no_cache=1
4778 fi
4779
4780 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
4781
4782fi
4783
4784
4785 eval "$ac_cv_use_protocol_file"
4786 if test "$no_cache" != 1; then
4787 echo $ac_cv_use_protocol_file >> ${wx_arg_cache_file}.tmp
4788 fi
4789
4790 if test "$wxUSE_PROTOCOL_FILE" = yes; then
4791 echo "$ac_t""yes" 1>&6
4792 else
4793 echo "$ac_t""no" 1>&6
4794 fi
4795
4796
4797
4798
698dcdb6
VZ
4799
4800 echo $ac_n "checking for --enable-threads""... $ac_c" 1>&6
658974ae 4801echo "configure:4802: checking for --enable-threads" >&5
10f2d63a
VZ
4802 no_cache=0
4803 # Check whether --enable-threads or --disable-threads was given.
4804if test "${enable_threads+set}" = set; then
4805 enableval="$enable_threads"
698dcdb6 4806
10f2d63a
VZ
4807 if test "$enableval" = yes; then
4808 ac_cv_use_threads='wxUSE_THREADS=yes'
4809 else
4810 ac_cv_use_threads='wxUSE_THREADS=no'
4811 fi
698dcdb6 4812
10f2d63a 4813else
698dcdb6 4814
10f2d63a
VZ
4815 LINE=`grep "wxUSE_THREADS" ${wx_arg_cache_file}`
4816 if test "x$LINE" != x ; then
4817 eval "DEFAULT_$LINE"
4818 else
4819 no_cache=1
4820 fi
4821
4822 ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS
698dcdb6
VZ
4823
4824fi
10f2d63a
VZ
4825
4826
4827 eval "$ac_cv_use_threads"
4828 if test "$no_cache" != 1; then
4829 echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp
4830 fi
4831
4832 if test "$wxUSE_THREADS" = yes; then
698dcdb6 4833 echo "$ac_t""yes" 1>&6
10f2d63a 4834 else
698dcdb6 4835 echo "$ac_t""no" 1>&6
10f2d63a 4836 fi
698dcdb6 4837
10f2d63a 4838
b12915c1
VZ
4839if test "$wxUSE_GUI" = "yes"; then
4840
698dcdb6
VZ
4841
4842
4843 echo $ac_n "checking for --enable-docview""... $ac_c" 1>&6
658974ae 4844echo "configure:4845: checking for --enable-docview" >&5
10f2d63a
VZ
4845 no_cache=0
4846 # Check whether --enable-docview or --disable-docview was given.
4847if test "${enable_docview+set}" = set; then
4848 enableval="$enable_docview"
698dcdb6 4849
10f2d63a
VZ
4850 if test "$enableval" = yes; then
4851 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes'
4852 else
4853 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no'
4854 fi
698dcdb6 4855
10f2d63a 4856else
698dcdb6 4857
10f2d63a
VZ
4858 LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}`
4859 if test "x$LINE" != x ; then
4860 eval "DEFAULT_$LINE"
4861 else
4862 no_cache=1
4863 fi
4864
4865 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE
698dcdb6
VZ
4866
4867fi
10f2d63a
VZ
4868
4869
4870 eval "$ac_cv_use_docview"
4871 if test "$no_cache" != 1; then
4872 echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp
4873 fi
4874
4875 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then
698dcdb6 4876 echo "$ac_t""yes" 1>&6
10f2d63a 4877 else
698dcdb6 4878 echo "$ac_t""no" 1>&6
10f2d63a 4879 fi
698dcdb6 4880
10f2d63a 4881
698dcdb6 4882 echo $ac_n "checking for --enable-help""... $ac_c" 1>&6
658974ae 4883echo "configure:4884: checking for --enable-help" >&5
10f2d63a
VZ
4884 no_cache=0
4885 # Check whether --enable-help or --disable-help was given.
4886if test "${enable_help+set}" = set; then
4887 enableval="$enable_help"
698dcdb6 4888
10f2d63a
VZ
4889 if test "$enableval" = yes; then
4890 ac_cv_use_help='wxUSE_HELP=yes'
4891 else
4892 ac_cv_use_help='wxUSE_HELP=no'
4893 fi
698dcdb6 4894
10f2d63a 4895else
698dcdb6 4896
10f2d63a
VZ
4897 LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}`
4898 if test "x$LINE" != x ; then
4899 eval "DEFAULT_$LINE"
4900 else
4901 no_cache=1
4902 fi
4903
4904 ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP
698dcdb6
VZ
4905
4906fi
10f2d63a
VZ
4907
4908
4909 eval "$ac_cv_use_help"
4910 if test "$no_cache" != 1; then
4911 echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp
4912 fi
4913
4914 if test "$wxUSE_HELP" = yes; then
698dcdb6 4915 echo "$ac_t""yes" 1>&6
10f2d63a 4916 else
698dcdb6 4917 echo "$ac_t""no" 1>&6
10f2d63a 4918 fi
698dcdb6 4919
10f2d63a 4920
29fd3c0c 4921 echo $ac_n "checking for --enable-mshtmlhelp""... $ac_c" 1>&6
658974ae 4922echo "configure:4923: checking for --enable-mshtmlhelp" >&5
29fd3c0c
VS
4923 no_cache=0
4924 # Check whether --enable-mshtmlhelp or --disable-mshtmlhelp was given.
4925if test "${enable_mshtmlhelp+set}" = set; then
4926 enableval="$enable_mshtmlhelp"
4927
4928 if test "$enableval" = yes; then
4929 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=yes'
4930 else
4931 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=no'
4932 fi
4933
4934else
4935
4936 LINE=`grep "wxUSE_MS_HTML_HELP" ${wx_arg_cache_file}`
4937 if test "x$LINE" != x ; then
4938 eval "DEFAULT_$LINE"
4939 else
4940 no_cache=1
4941 fi
4942
4943 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP='$DEFAULT_wxUSE_MS_HTML_HELP
4944
4945fi
4946
4947
4948 eval "$ac_cv_use_mshtmlhelp"
4949 if test "$no_cache" != 1; then
4950 echo $ac_cv_use_mshtmlhelp >> ${wx_arg_cache_file}.tmp
4951 fi
4952
4953 if test "$wxUSE_MS_HTML_HELP" = yes; then
4954 echo "$ac_t""yes" 1>&6
4955 else
4956 echo "$ac_t""no" 1>&6
4957 fi
4958
4959
3379ed37 4960 echo $ac_n "checking for --enable-html""... $ac_c" 1>&6
658974ae 4961echo "configure:4962: checking for --enable-html" >&5
3379ed37
VZ
4962 no_cache=0
4963 # Check whether --enable-html or --disable-html was given.
4964if test "${enable_html+set}" = set; then
4965 enableval="$enable_html"
4966
4967 if test "$enableval" = yes; then
4968 ac_cv_use_html='wxUSE_HTML=yes'
4969 else
4970 ac_cv_use_html='wxUSE_HTML=no'
4971 fi
4972
4973else
4974
4975 LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}`
4976 if test "x$LINE" != x ; then
4977 eval "DEFAULT_$LINE"
4978 else
4979 no_cache=1
4980 fi
4981
4982 ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML
4983
4984fi
4985
4986
4987 eval "$ac_cv_use_html"
4988 if test "$no_cache" != 1; then
4989 echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp
4990 fi
4991
4992 if test "$wxUSE_HTML" = yes; then
4993 echo "$ac_t""yes" 1>&6
4994 else
4995 echo "$ac_t""no" 1>&6
4996 fi
4997
4998
4999 echo $ac_n "checking for --enable-htmlhelp""... $ac_c" 1>&6
658974ae 5000echo "configure:5001: checking for --enable-htmlhelp" >&5
3379ed37
VZ
5001 no_cache=0
5002 # Check whether --enable-htmlhelp or --disable-htmlhelp was given.
5003if test "${enable_htmlhelp+set}" = set; then
5004 enableval="$enable_htmlhelp"
5005
5006 if test "$enableval" = yes; then
5007 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=yes'
5008 else
5009 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=no'
5010 fi
5011
5012else
5013
5014 LINE=`grep "wxUSE_WXHTML_HELP" ${wx_arg_cache_file}`
5015 if test "x$LINE" != x ; then
5016 eval "DEFAULT_$LINE"
5017 else
5018 no_cache=1
5019 fi
5020
5021 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP='$DEFAULT_wxUSE_WXHTML_HELP
5022
5023fi
5024
5025
5026 eval "$ac_cv_use_htmlhelp"
5027 if test "$no_cache" != 1; then
5028 echo $ac_cv_use_htmlhelp >> ${wx_arg_cache_file}.tmp
5029 fi
5030
5031 if test "$wxUSE_WXHTML_HELP" = yes; then
5032 echo "$ac_t""yes" 1>&6
5033 else
5034 echo "$ac_t""no" 1>&6
5035 fi
5036
5037
698dcdb6 5038 echo $ac_n "checking for --enable-constraints""... $ac_c" 1>&6
658974ae 5039echo "configure:5040: checking for --enable-constraints" >&5
10f2d63a
VZ
5040 no_cache=0
5041 # Check whether --enable-constraints or --disable-constraints was given.
5042if test "${enable_constraints+set}" = set; then
5043 enableval="$enable_constraints"
698dcdb6 5044
10f2d63a
VZ
5045 if test "$enableval" = yes; then
5046 ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes'
5047 else
5048 ac_cv_use_constraints='wxUSE_CONSTRAINTS=no'
5049 fi
698dcdb6 5050
10f2d63a 5051else
698dcdb6 5052
10f2d63a
VZ
5053 LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}`
5054 if test "x$LINE" != x ; then
5055 eval "DEFAULT_$LINE"
5056 else
5057 no_cache=1
5058 fi
5059
5060 ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS
698dcdb6
VZ
5061
5062fi
10f2d63a
VZ
5063
5064
5065 eval "$ac_cv_use_constraints"
5066 if test "$no_cache" != 1; then
5067 echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp
5068 fi
5069
5070 if test "$wxUSE_CONSTRAINTS" = yes; then
698dcdb6 5071 echo "$ac_t""yes" 1>&6
10f2d63a 5072 else
698dcdb6 5073 echo "$ac_t""no" 1>&6
10f2d63a 5074 fi
698dcdb6 5075
10f2d63a 5076
698dcdb6 5077 echo $ac_n "checking for --enable-printarch""... $ac_c" 1>&6
658974ae 5078echo "configure:5079: checking for --enable-printarch" >&5
10f2d63a
VZ
5079 no_cache=0
5080 # Check whether --enable-printarch or --disable-printarch was given.
5081if test "${enable_printarch+set}" = set; then
5082 enableval="$enable_printarch"
698dcdb6 5083
10f2d63a
VZ
5084 if test "$enableval" = yes; then
5085 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes'
5086 else
5087 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no'
5088 fi
698dcdb6 5089
10f2d63a 5090else
698dcdb6 5091
10f2d63a
VZ
5092 LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}`
5093 if test "x$LINE" != x ; then
5094 eval "DEFAULT_$LINE"
5095 else
5096 no_cache=1
5097 fi
5098
5099 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE
698dcdb6
VZ
5100
5101fi
10f2d63a
VZ
5102
5103
5104 eval "$ac_cv_use_printarch"
5105 if test "$no_cache" != 1; then
5106 echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp
5107 fi
5108
5109 if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then
698dcdb6 5110 echo "$ac_t""yes" 1>&6
10f2d63a 5111 else
698dcdb6 5112 echo "$ac_t""no" 1>&6
10f2d63a 5113 fi
698dcdb6 5114
10f2d63a 5115
698dcdb6 5116 echo $ac_n "checking for --enable-mdi""... $ac_c" 1>&6
658974ae 5117echo "configure:5118: checking for --enable-mdi" >&5
10f2d63a
VZ
5118 no_cache=0
5119 # Check whether --enable-mdi or --disable-mdi was given.
5120if test "${enable_mdi+set}" = set; then
5121 enableval="$enable_mdi"
698dcdb6 5122
10f2d63a
VZ
5123 if test "$enableval" = yes; then
5124 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=yes'
5125 else
5126 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=no'
5127 fi
698dcdb6 5128
10f2d63a 5129else
698dcdb6 5130
10f2d63a
VZ
5131 LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}`
5132 if test "x$LINE" != x ; then
5133 eval "DEFAULT_$LINE"
5134 else
5135 no_cache=1
5136 fi
5137
5138 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE
698dcdb6
VZ
5139
5140fi
10f2d63a
VZ
5141
5142
5143 eval "$ac_cv_use_mdi"
5144 if test "$no_cache" != 1; then
5145 echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp
5146 fi
5147
5148 if test "$wxUSE_MDI_ARCHITECTURE" = yes; then
698dcdb6 5149 echo "$ac_t""yes" 1>&6
10f2d63a 5150 else
698dcdb6 5151 echo "$ac_t""no" 1>&6
10f2d63a 5152 fi
698dcdb6
VZ
5153
5154
1e6feb95 5155 echo $ac_n "checking for --enable-loggui""... $ac_c" 1>&6
658974ae 5156echo "configure:5157: checking for --enable-loggui" >&5
1e6feb95
VZ
5157 no_cache=0
5158 # Check whether --enable-loggui or --disable-loggui was given.
5159if test "${enable_loggui+set}" = set; then
5160 enableval="$enable_loggui"
5161
5162 if test "$enableval" = yes; then
5163 ac_cv_use_loggui='wxUSE_LOGGUI=yes'
5164 else
5165 ac_cv_use_loggui='wxUSE_LOGGUI=no'
5166 fi
5167
5168else
5169
5170 LINE=`grep "wxUSE_LOGGUI" ${wx_arg_cache_file}`
5171 if test "x$LINE" != x ; then
5172 eval "DEFAULT_$LINE"
5173 else
5174 no_cache=1
5175 fi
5176
5177 ac_cv_use_loggui='wxUSE_LOGGUI='$DEFAULT_wxUSE_LOGGUI
5178
5179fi
5180
5181
5182 eval "$ac_cv_use_loggui"
5183 if test "$no_cache" != 1; then
5184 echo $ac_cv_use_loggui >> ${wx_arg_cache_file}.tmp
5185 fi
5186
5187 if test "$wxUSE_LOGGUI" = yes; then
5188 echo "$ac_t""yes" 1>&6
5189 else
5190 echo "$ac_t""no" 1>&6
5191 fi
5192
5193
5194 echo $ac_n "checking for --enable-logwin""... $ac_c" 1>&6
658974ae 5195echo "configure:5196: checking for --enable-logwin" >&5
1e6feb95
VZ
5196 no_cache=0
5197 # Check whether --enable-logwin or --disable-logwin was given.
5198if test "${enable_logwin+set}" = set; then
5199 enableval="$enable_logwin"
5200
5201 if test "$enableval" = yes; then
5202 ac_cv_use_logwin='wxUSE_LOGWINDOW=yes'
5203 else
5204 ac_cv_use_logwin='wxUSE_LOGWINDOW=no'
5205 fi
5206
5207else
5208
5209 LINE=`grep "wxUSE_LOGWINDOW" ${wx_arg_cache_file}`
5210 if test "x$LINE" != x ; then
5211 eval "DEFAULT_$LINE"
5212 else
5213 no_cache=1
5214 fi
5215
5216 ac_cv_use_logwin='wxUSE_LOGWINDOW='$DEFAULT_wxUSE_LOGWINDOW
5217
5218fi
5219
5220
5221 eval "$ac_cv_use_logwin"
5222 if test "$no_cache" != 1; then
5223 echo $ac_cv_use_logwin >> ${wx_arg_cache_file}.tmp
5224 fi
5225
5226 if test "$wxUSE_LOGWINDOW" = yes; then
5227 echo "$ac_t""yes" 1>&6
5228 else
5229 echo "$ac_t""no" 1>&6
5230 fi
5231
5232
69d27ff7 5233 echo $ac_n "checking for --enable-logdialog""... $ac_c" 1>&6
658974ae 5234echo "configure:5235: checking for --enable-logdialog" >&5
69d27ff7
MB
5235 no_cache=0
5236 # Check whether --enable-logdialog or --disable-logdialog was given.
5237if test "${enable_logdialog+set}" = set; then
5238 enableval="$enable_logdialog"
5239
5240 if test "$enableval" = yes; then
5241 ac_cv_use_logdialog='wxUSE_LOGDIALOG=yes'
5242 else
5243 ac_cv_use_logdialog='wxUSE_LOGDIALOG=no'
5244 fi
5245
5246else
5247
5248 LINE=`grep "wxUSE_LOGDIALOG" ${wx_arg_cache_file}`
5249 if test "x$LINE" != x ; then
5250 eval "DEFAULT_$LINE"
5251 else
5252 no_cache=1
5253 fi
5254
5255 ac_cv_use_logdialog='wxUSE_LOGDIALOG='$DEFAULT_wxUSE_LOGDIALOG
5256
5257fi
5258
5259
5260 eval "$ac_cv_use_logdialog"
5261 if test "$no_cache" != 1; then
5262 echo $ac_cv_use_logdialog >> ${wx_arg_cache_file}.tmp
5263 fi
5264
5265 if test "$wxUSE_LOGDIALOG" = yes; then
5266 echo "$ac_t""yes" 1>&6
5267 else
5268 echo "$ac_t""no" 1>&6
5269 fi
5270
5271
10f2d63a 5272
698dcdb6 5273 echo $ac_n "checking for --enable-postscript""... $ac_c" 1>&6
658974ae 5274echo "configure:5275: checking for --enable-postscript" >&5
10f2d63a
VZ
5275 no_cache=0
5276 # Check whether --enable-postscript or --disable-postscript was given.
5277if test "${enable_postscript+set}" = set; then
5278 enableval="$enable_postscript"
698dcdb6 5279
10f2d63a
VZ
5280 if test "$enableval" = yes; then
5281 ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes'
5282 else
5283 ac_cv_use_postscript='wxUSE_POSTSCRIPT=no'
5284 fi
698dcdb6 5285
10f2d63a 5286else
698dcdb6 5287
10f2d63a
VZ
5288 LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}`
5289 if test "x$LINE" != x ; then
5290 eval "DEFAULT_$LINE"
5291 else
5292 no_cache=1
5293 fi
5294
5295 ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT
698dcdb6
VZ
5296
5297fi
10f2d63a
VZ
5298
5299
5300 eval "$ac_cv_use_postscript"
5301 if test "$no_cache" != 1; then
5302 echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp
5303 fi
5304
5305 if test "$wxUSE_POSTSCRIPT" = yes; then
698dcdb6 5306 echo "$ac_t""yes" 1>&6
10f2d63a 5307 else
698dcdb6 5308 echo "$ac_t""no" 1>&6
10f2d63a 5309 fi
698dcdb6
VZ
5310
5311
5312
10f2d63a 5313
1e6feb95 5314
698dcdb6 5315 echo $ac_n "checking for --enable-prologio""... $ac_c" 1>&6
658974ae 5316echo "configure:5317: checking for --enable-prologio" >&5
10f2d63a
VZ
5317 no_cache=0
5318 # Check whether --enable-prologio or --disable-prologio was given.
5319if test "${enable_prologio+set}" = set; then
5320 enableval="$enable_prologio"
698dcdb6 5321
10f2d63a
VZ
5322 if test "$enableval" = yes; then
5323 ac_cv_use_prologio='wxUSE_PROLOGIO=yes'
5324 else
5325 ac_cv_use_prologio='wxUSE_PROLOGIO=no'
5326 fi
698dcdb6 5327
10f2d63a 5328else
698dcdb6 5329
10f2d63a
VZ
5330 LINE=`grep "wxUSE_PROLOGIO" ${wx_arg_cache_file}`
5331 if test "x$LINE" != x ; then
5332 eval "DEFAULT_$LINE"
5333 else
5334 no_cache=1
5335 fi
5336
5337 ac_cv_use_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO
698dcdb6
VZ
5338
5339fi
10f2d63a
VZ
5340
5341
5342 eval "$ac_cv_use_prologio"
5343 if test "$no_cache" != 1; then
5344 echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp
5345 fi
5346
5347 if test "$wxUSE_PROLOGIO" = yes; then
698dcdb6 5348 echo "$ac_t""yes" 1>&6
10f2d63a 5349 else
698dcdb6 5350 echo "$ac_t""no" 1>&6
10f2d63a 5351 fi
698dcdb6 5352
10f2d63a 5353
698dcdb6 5354 echo $ac_n "checking for --enable-resources""... $ac_c" 1>&6
658974ae 5355echo "configure:5356: checking for --enable-resources" >&5
10f2d63a
VZ
5356 no_cache=0
5357 # Check whether --enable-resources or --disable-resources was given.
5358if test "${enable_resources+set}" = set; then
5359 enableval="$enable_resources"
698dcdb6 5360
10f2d63a
VZ
5361 if test "$enableval" = yes; then
5362 ac_cv_use_resources='wxUSE_RESOURCES=yes'
5363 else
5364 ac_cv_use_resources='wxUSE_RESOURCES=no'
5365 fi
698dcdb6 5366
10f2d63a 5367else
698dcdb6 5368
10f2d63a
VZ
5369 LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}`
5370 if test "x$LINE" != x ; then
5371 eval "DEFAULT_$LINE"
5372 else
5373 no_cache=1
5374 fi
5375
5376 ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES
698dcdb6
VZ
5377
5378fi
10f2d63a
VZ
5379
5380
5381 eval "$ac_cv_use_resources"
5382 if test "$no_cache" != 1; then
5383 echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp
5384 fi
5385
5386 if test "$wxUSE_RESOURCES" = yes; then
698dcdb6 5387 echo "$ac_t""yes" 1>&6
10f2d63a 5388 else
698dcdb6 5389 echo "$ac_t""no" 1>&6
10f2d63a 5390 fi
698dcdb6 5391
10f2d63a 5392
698dcdb6
VZ
5393
5394 echo $ac_n "checking for --enable-xresources""... $ac_c" 1>&6
658974ae 5395echo "configure:5396: checking for --enable-xresources" >&5
10f2d63a
VZ
5396 no_cache=0
5397 # Check whether --enable-xresources or --disable-xresources was given.
5398if test "${enable_xresources+set}" = set; then
5399 enableval="$enable_xresources"
698dcdb6 5400
10f2d63a
VZ
5401 if test "$enableval" = yes; then
5402 ac_cv_use_xresources='wxUSE_X_RESOURCES=yes'
5403 else
5404 ac_cv_use_xresources='wxUSE_X_RESOURCES=no'
5405 fi
698dcdb6 5406
10f2d63a 5407else
698dcdb6 5408
10f2d63a
VZ
5409 LINE=`grep "wxUSE_X_RESOURCES" ${wx_arg_cache_file}`
5410 if test "x$LINE" != x ; then
5411 eval "DEFAULT_$LINE"
5412 else
5413 no_cache=1
5414 fi
5415
5416 ac_cv_use_xresources='wxUSE_X_RESOURCES='$DEFAULT_wxUSE_X_RESOURCES
698dcdb6
VZ
5417
5418fi
10f2d63a
VZ
5419
5420
5421 eval "$ac_cv_use_xresources"
5422 if test "$no_cache" != 1; then
5423 echo $ac_cv_use_xresources >> ${wx_arg_cache_file}.tmp
5424 fi
5425
5426 if test "$wxUSE_X_RESOURCES" = yes; then
698dcdb6 5427 echo "$ac_t""yes" 1>&6
10f2d63a 5428 else
698dcdb6 5429 echo "$ac_t""no" 1>&6
10f2d63a 5430 fi
698dcdb6
VZ
5431
5432
10f2d63a 5433
698dcdb6
VZ
5434
5435 echo $ac_n "checking for --enable-clipboard""... $ac_c" 1>&6
658974ae 5436echo "configure:5437: checking for --enable-clipboard" >&5
10f2d63a
VZ
5437 no_cache=0
5438 # Check whether --enable-clipboard or --disable-clipboard was given.
5439if test "${enable_clipboard+set}" = set; then
5440 enableval="$enable_clipboard"
698dcdb6 5441
10f2d63a
VZ
5442 if test "$enableval" = yes; then
5443 ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes'
5444 else
5445 ac_cv_use_clipboard='wxUSE_CLIPBOARD=no'
5446 fi
698dcdb6 5447
10f2d63a 5448else
698dcdb6 5449
10f2d63a
VZ
5450 LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}`
5451 if test "x$LINE" != x ; then
5452 eval "DEFAULT_$LINE"
5453 else
5454 no_cache=1
5455 fi
5456
5457 ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD
698dcdb6
VZ
5458
5459fi
10f2d63a
VZ
5460
5461
5462 eval "$ac_cv_use_clipboard"
5463 if test "$no_cache" != 1; then
5464 echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp
5465 fi
5466
5467 if test "$wxUSE_CLIPBOARD" = yes; then
698dcdb6 5468 echo "$ac_t""yes" 1>&6
10f2d63a 5469 else
698dcdb6 5470 echo "$ac_t""no" 1>&6
10f2d63a 5471 fi
698dcdb6 5472
10f2d63a 5473
698dcdb6 5474 echo $ac_n "checking for --enable-dnd""... $ac_c" 1>&6
658974ae 5475echo "configure:5476: checking for --enable-dnd" >&5
10f2d63a
VZ
5476 no_cache=0
5477 # Check whether --enable-dnd or --disable-dnd was given.
5478if test "${enable_dnd+set}" = set; then
5479 enableval="$enable_dnd"
698dcdb6 5480
10f2d63a
VZ
5481 if test "$enableval" = yes; then
5482 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes'
5483 else
5484 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no'
5485 fi
698dcdb6 5486
10f2d63a 5487else
698dcdb6 5488
10f2d63a
VZ
5489 LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}`
5490 if test "x$LINE" != x ; then
5491 eval "DEFAULT_$LINE"
5492 else
5493 no_cache=1
5494 fi
5495
5496 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP
698dcdb6
VZ
5497
5498fi
10f2d63a
VZ
5499
5500
5501 eval "$ac_cv_use_dnd"
5502 if test "$no_cache" != 1; then
5503 echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp
5504 fi
5505
5506 if test "$wxUSE_DRAG_AND_DROP" = yes; then
698dcdb6 5507 echo "$ac_t""yes" 1>&6
10f2d63a 5508 else
698dcdb6 5509 echo "$ac_t""no" 1>&6
10f2d63a 5510 fi
698dcdb6 5511
10f2d63a 5512
698dcdb6 5513 echo $ac_n "checking for --enable-metafile""... $ac_c" 1>&6
658974ae 5514echo "configure:5515: checking for --enable-metafile" >&5
b64f0a5f
RL
5515 no_cache=0
5516 # Check whether --enable-metafile or --disable-metafile was given.
5517if test "${enable_metafile+set}" = set; then
5518 enableval="$enable_metafile"
698dcdb6 5519
b64f0a5f
RL
5520 if test "$enableval" = yes; then
5521 ac_cv_use_metafile='wxUSE_METAFILE=yes'
5522 else
5523 ac_cv_use_metafile='wxUSE_METAFILE=no'
5524 fi
698dcdb6 5525
b64f0a5f 5526else
698dcdb6 5527
b64f0a5f
RL
5528 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
5529 if test "x$LINE" != x ; then
5530 eval "DEFAULT_$LINE"
5531 else
5532 no_cache=1
5533 fi
5534
5535 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
698dcdb6
VZ
5536
5537fi
b64f0a5f
RL
5538
5539
5540 eval "$ac_cv_use_metafile"
5541 if test "$no_cache" != 1; then
5542 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
5543 fi
5544
5545 if test "$wxUSE_METAFILE" = yes; then
698dcdb6 5546 echo "$ac_t""yes" 1>&6
b64f0a5f 5547 else
698dcdb6 5548 echo "$ac_t""no" 1>&6
b64f0a5f 5549 fi
698dcdb6
VZ
5550
5551
10f2d63a 5552
24176f2c 5553 echo $ac_n "checking for --enable-treelayout""... $ac_c" 1>&6
658974ae 5554echo "configure:5555: checking for --enable-treelayout" >&5
10f2d63a 5555 no_cache=0
24176f2c
GD
5556 # Check whether --enable-treelayout or --disable-treelayout was given.
5557if test "${enable_treelayout+set}" = set; then
5558 enableval="$enable_treelayout"
698dcdb6 5559
10f2d63a 5560 if test "$enableval" = yes; then
24176f2c 5561 ac_cv_use_treelayout='wxUSE_TREELAYOUT=yes'
10f2d63a 5562 else
24176f2c 5563 ac_cv_use_treelayout='wxUSE_TREELAYOUT=no'
10f2d63a 5564 fi
698dcdb6 5565
10f2d63a 5566else
698dcdb6 5567
24176f2c 5568 LINE=`grep "wxUSE_TREELAYOUT" ${wx_arg_cache_file}`
10f2d63a
VZ
5569 if test "x$LINE" != x ; then
5570 eval "DEFAULT_$LINE"
5571 else
5572 no_cache=1
5573 fi
5574
24176f2c 5575 ac_cv_use_treelayout='wxUSE_TREELAYOUT='$DEFAULT_wxUSE_TREELAYOUT
698dcdb6
VZ
5576
5577fi
10f2d63a
VZ
5578
5579
24176f2c 5580 eval "$ac_cv_use_treelayout"
10f2d63a 5581 if test "$no_cache" != 1; then
24176f2c 5582 echo $ac_cv_use_treelayout >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
5583 fi
5584
24176f2c 5585 if test "$wxUSE_TREELAYOUT" = yes; then
698dcdb6 5586 echo "$ac_t""yes" 1>&6
10f2d63a 5587 else
698dcdb6 5588 echo "$ac_t""no" 1>&6
10f2d63a 5589 fi
698dcdb6 5590
10f2d63a 5591
698dcdb6
VZ
5592
5593
5594 echo $ac_n "checking for --enable-controls""... $ac_c" 1>&6
658974ae 5595echo "configure:5596: checking for --enable-controls" >&5
10f2d63a
VZ
5596 no_cache=0
5597 # Check whether --enable-controls or --disable-controls was given.
5598if test "${enable_controls+set}" = set; then
5599 enableval="$enable_controls"
698dcdb6 5600
10f2d63a
VZ
5601 if test "$enableval" = yes; then
5602 ac_cv_use_controls='wxUSE_CONTROLS=yes'
5603 else
5604 ac_cv_use_controls='wxUSE_CONTROLS=no'
5605 fi
698dcdb6 5606
10f2d63a 5607else
698dcdb6 5608
10f2d63a
VZ
5609 LINE=`grep "wxUSE_CONTROLS" ${wx_arg_cache_file}`
5610 if test "x$LINE" != x ; then
5611 eval "DEFAULT_$LINE"
5612 else
5613 no_cache=1
5614 fi
5615
5616 ac_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS
698dcdb6
VZ
5617
5618fi
10f2d63a
VZ
5619
5620
5621 eval "$ac_cv_use_controls"
5622 if test "$no_cache" != 1; then
5623 echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp
5624 fi
5625
5626 if test "$wxUSE_CONTROLS" = yes; then
698dcdb6 5627 echo "$ac_t""yes" 1>&6
10f2d63a 5628 else
698dcdb6 5629 echo "$ac_t""no" 1>&6
10f2d63a 5630 fi
698dcdb6 5631
10f2d63a
VZ
5632
5633if test "$wxUSE_CONTROLS" = "yes"; then
5634 DEFAULT_wxUSE_ACCEL=yes
1e6feb95
VZ
5635 DEFAULT_wxUSE_BMPBUTTON=yes
5636 DEFAULT_wxUSE_BUTTON=yes
5637 DEFAULT_wxUSE_CALCTRL=no
10f2d63a
VZ
5638 DEFAULT_wxUSE_CARET=yes
5639 DEFAULT_wxUSE_COMBOBOX=yes
10f2d63a
VZ
5640 DEFAULT_wxUSE_CHECKBOX=yes
5641 DEFAULT_wxUSE_CHECKLISTBOX=yes
5642 DEFAULT_wxUSE_CHOICE=yes
5643 DEFAULT_wxUSE_GAUGE=yes
5644 DEFAULT_wxUSE_GRID=yes
cc977e5f 5645 DEFAULT_wxUSE_NEW_GRID=yes
10f2d63a
VZ
5646 DEFAULT_wxUSE_IMAGLIST=yes
5647 DEFAULT_wxUSE_LISTBOX=yes
5648 DEFAULT_wxUSE_LISTCTRL=yes
5649 DEFAULT_wxUSE_NOTEBOOK=yes
24176f2c 5650 DEFAULT_wxUSE_PROPSHEET=yes
10f2d63a
VZ
5651 DEFAULT_wxUSE_RADIOBOX=yes
5652 DEFAULT_wxUSE_RADIOBTN=yes
5653 DEFAULT_wxUSE_SASH=yes
5654 DEFAULT_wxUSE_SCROLLBAR=yes
5655 DEFAULT_wxUSE_SLIDER=yes
5656 DEFAULT_wxUSE_SPINBTN=yes
56cfaa52 5657 DEFAULT_wxUSE_SPINCTRL=yes
10f2d63a
VZ
5658 DEFAULT_wxUSE_SPLITTER=yes
5659 DEFAULT_wxUSE_STATBMP=yes
5660 DEFAULT_wxUSE_STATBOX=yes
5661 DEFAULT_wxUSE_STATLINE=yes
5662 DEFAULT_wxUSE_STATUSBAR=yes
5663 DEFAULT_wxUSE_TAB_DIALOG=yes
1db8dc4a 5664 DEFAULT_wxUSE_TOGGLEBTN=yes
10f2d63a 5665 DEFAULT_wxUSE_TOOLBAR=yes
360d6699
VZ
5666 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
5667 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
10f2d63a
VZ
5668 DEFAULT_wxUSE_TOOLTIPS=yes
5669 DEFAULT_wxUSE_TREECTRL=yes
9f41d601 5670 DEFAULT_wxUSE_POPUPWIN=yes
9926e4a4 5671 DEFAULT_wxUSE_TIPWINDOW=yes
10f2d63a
VZ
5672elif test "$wxUSE_CONTROLS" = "no"; then
5673 DEFAULT_wxUSE_ACCEL=no
1e6feb95
VZ
5674 DEFAULT_wxUSE_BMPBUTTON=no
5675 DEFAULT_wxUSE_BUTTON=no
5676 DEFAULT_wxUSE_CALCTRL=no
10f2d63a
VZ
5677 DEFAULT_wxUSE_CARET=no
5678 DEFAULT_wxUSE_COMBOBOX=no
10f2d63a
VZ
5679 DEFAULT_wxUSE_CHECKBOX=no
5680 DEFAULT_wxUSE_CHECKLISTBOX=no
5681 DEFAULT_wxUSE_CHOICE=no
5682 DEFAULT_wxUSE_GAUGE=no
5683 DEFAULT_wxUSE_GRID=no
5684 DEFAULT_wxUSE_NEW_GRID=no
5685 DEFAULT_wxUSE_IMAGLIST=no
5686 DEFAULT_wxUSE_LISTBOX=no
5687 DEFAULT_wxUSE_LISTCTRL=no
5688 DEFAULT_wxUSE_NOTEBOOK=no
24176f2c 5689 DEFAULT_wxUSE_PROPSHEET=no
10f2d63a
VZ
5690 DEFAULT_wxUSE_RADIOBOX=no
5691 DEFAULT_wxUSE_RADIOBTN=no
5692 DEFAULT_wxUSE_SASH=no
5693 DEFAULT_wxUSE_SCROLLBAR=no
5694 DEFAULT_wxUSE_SLIDER=no
5695 DEFAULT_wxUSE_SPINBTN=no
56cfaa52 5696 DEFAULT_wxUSE_SPINCTRL=no
10f2d63a
VZ
5697 DEFAULT_wxUSE_SPLITTER=no
5698 DEFAULT_wxUSE_STATBMP=no
5699 DEFAULT_wxUSE_STATBOX=no
5700 DEFAULT_wxUSE_STATLINE=no
5701 DEFAULT_wxUSE_STATUSBAR=no
5702 DEFAULT_wxUSE_TAB_DIALOG=no
1db8dc4a 5703 DEFAULT_wxUSE_TOGGLEBTN=no
10f2d63a 5704 DEFAULT_wxUSE_TOOLBAR=no
360d6699
VZ
5705 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
5706 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
10f2d63a
VZ
5707 DEFAULT_wxUSE_TOOLTIPS=no
5708 DEFAULT_wxUSE_TREECTRL=no
9f41d601 5709 DEFAULT_wxUSE_POPUPWIN=no
9926e4a4 5710 DEFAULT_wxUSE_TIPWINDOW=no
10f2d63a
VZ
5711fi
5712
698dcdb6
VZ
5713
5714 echo $ac_n "checking for --enable-accel""... $ac_c" 1>&6
658974ae 5715echo "configure:5716: checking for --enable-accel" >&5
10f2d63a
VZ
5716 no_cache=0
5717 # Check whether --enable-accel or --disable-accel was given.
5718if test "${enable_accel+set}" = set; then
5719 enableval="$enable_accel"
698dcdb6 5720
10f2d63a
VZ
5721 if test "$enableval" = yes; then
5722 ac_cv_use_accel='wxUSE_ACCEL=yes'
5723 else
5724 ac_cv_use_accel='wxUSE_ACCEL=no'
5725 fi
698dcdb6 5726
10f2d63a 5727else
698dcdb6 5728
10f2d63a
VZ
5729 LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}`
5730 if test "x$LINE" != x ; then
5731 eval "DEFAULT_$LINE"
5732 else
5733 no_cache=1
5734 fi
5735
5736 ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL
698dcdb6
VZ
5737
5738fi
10f2d63a
VZ
5739
5740
5741 eval "$ac_cv_use_accel"
5742 if test "$no_cache" != 1; then
5743 echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp
5744 fi
5745
5746 if test "$wxUSE_ACCEL" = yes; then
698dcdb6 5747 echo "$ac_t""yes" 1>&6
10f2d63a 5748 else
698dcdb6 5749 echo "$ac_t""no" 1>&6
10f2d63a 5750 fi
698dcdb6 5751
10f2d63a 5752
1e6feb95 5753 echo $ac_n "checking for --enable-button""... $ac_c" 1>&6
658974ae 5754echo "configure:5755: checking for --enable-button" >&5
10f2d63a 5755 no_cache=0
1e6feb95
VZ
5756 # Check whether --enable-button or --disable-button was given.
5757if test "${enable_button+set}" = set; then
5758 enableval="$enable_button"
698dcdb6 5759
10f2d63a 5760 if test "$enableval" = yes; then
1e6feb95 5761 ac_cv_use_button='wxUSE_BUTTON=yes'
10f2d63a 5762 else
1e6feb95 5763 ac_cv_use_button='wxUSE_BUTTON=no'
10f2d63a 5764 fi
698dcdb6 5765
10f2d63a 5766else
698dcdb6 5767
1e6feb95 5768 LINE=`grep "wxUSE_BUTTON" ${wx_arg_cache_file}`
10f2d63a
VZ
5769 if test "x$LINE" != x ; then
5770 eval "DEFAULT_$LINE"
5771 else
5772 no_cache=1
5773 fi
5774
1e6feb95 5775 ac_cv_use_button='wxUSE_BUTTON='$DEFAULT_wxUSE_BUTTON
698dcdb6
VZ
5776
5777fi
10f2d63a
VZ
5778
5779
1e6feb95 5780 eval "$ac_cv_use_button"
10f2d63a 5781 if test "$no_cache" != 1; then
1e6feb95 5782 echo $ac_cv_use_button >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
5783 fi
5784
1e6feb95 5785 if test "$wxUSE_BUTTON" = yes; then
698dcdb6 5786 echo "$ac_t""yes" 1>&6
10f2d63a 5787 else
698dcdb6 5788 echo "$ac_t""no" 1>&6
10f2d63a 5789 fi
698dcdb6 5790
10f2d63a 5791
698dcdb6 5792 echo $ac_n "checking for --enable-bmpbutton""... $ac_c" 1>&6
658974ae 5793echo "configure:5794: checking for --enable-bmpbutton" >&5
10f2d63a
VZ
5794 no_cache=0
5795 # Check whether --enable-bmpbutton or --disable-bmpbutton was given.
5796if test "${enable_bmpbutton+set}" = set; then
5797 enableval="$enable_bmpbutton"
698dcdb6 5798
10f2d63a
VZ
5799 if test "$enableval" = yes; then
5800 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes'
5801 else
5802 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no'
5803 fi
698dcdb6 5804
10f2d63a 5805else
698dcdb6 5806
10f2d63a
VZ
5807 LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}`
5808 if test "x$LINE" != x ; then
5809 eval "DEFAULT_$LINE"
5810 else
5811 no_cache=1
5812 fi
5813
5814 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON
698dcdb6
VZ
5815
5816fi
10f2d63a
VZ
5817
5818
5819 eval "$ac_cv_use_bmpbutton"
5820 if test "$no_cache" != 1; then
5821 echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp
5822 fi
5823
5824 if test "$wxUSE_BMPBUTTON" = yes; then
698dcdb6 5825 echo "$ac_t""yes" 1>&6
10f2d63a 5826 else
698dcdb6 5827 echo "$ac_t""no" 1>&6
10f2d63a 5828 fi
698dcdb6 5829
10f2d63a 5830
1e6feb95 5831 echo $ac_n "checking for --enable-calendar""... $ac_c" 1>&6
658974ae 5832echo "configure:5833: checking for --enable-calendar" >&5
1e6feb95
VZ
5833 no_cache=0
5834 # Check whether --enable-calendar or --disable-calendar was given.
5835if test "${enable_calendar+set}" = set; then
5836 enableval="$enable_calendar"
5837
5838 if test "$enableval" = yes; then
5839 ac_cv_use_calendar='wxUSE_CALCTRL=yes'
5840 else
5841 ac_cv_use_calendar='wxUSE_CALCTRL=no'
5842 fi
5843
5844else
5845
5846 LINE=`grep "wxUSE_CALCTRL" ${wx_arg_cache_file}`
5847 if test "x$LINE" != x ; then
5848 eval "DEFAULT_$LINE"
5849 else
5850 no_cache=1
5851 fi
5852
5853 ac_cv_use_calendar='wxUSE_CALCTRL='$DEFAULT_wxUSE_CALCTRL
5854
5855fi
5856
5857
5858 eval "$ac_cv_use_calendar"
5859 if test "$no_cache" != 1; then
5860 echo $ac_cv_use_calendar >> ${wx_arg_cache_file}.tmp
5861 fi
5862
5863 if test "$wxUSE_CALCTRL" = yes; then
5864 echo "$ac_t""yes" 1>&6
5865 else
5866 echo "$ac_t""no" 1>&6
5867 fi
5868
5869
5870 echo $ac_n "checking for --enable-caret""... $ac_c" 1>&6
658974ae 5871echo "configure:5872: checking for --enable-caret" >&5
1e6feb95
VZ
5872 no_cache=0
5873 # Check whether --enable-caret or --disable-caret was given.
5874if test "${enable_caret+set}" = set; then
5875 enableval="$enable_caret"
5876
5877 if test "$enableval" = yes; then
5878 ac_cv_use_caret='wxUSE_CARET=yes'
5879 else
5880 ac_cv_use_caret='wxUSE_CARET=no'
5881 fi
5882
5883else
5884
5885 LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}`
5886 if test "x$LINE" != x ; then
5887 eval "DEFAULT_$LINE"
5888 else
5889 no_cache=1
5890 fi
5891
5892 ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET
5893
5894fi
5895
5896
5897 eval "$ac_cv_use_caret"
5898 if test "$no_cache" != 1; then
5899 echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp
5900 fi
5901
5902 if test "$wxUSE_CARET" = yes; then
5903 echo "$ac_t""yes" 1>&6
5904 else
5905 echo "$ac_t""no" 1>&6
5906 fi
5907
5908
698dcdb6 5909 echo $ac_n "checking for --enable-checkbox""... $ac_c" 1>&6
658974ae 5910echo "configure:5911: checking for --enable-checkbox" >&5
10f2d63a
VZ
5911 no_cache=0
5912 # Check whether --enable-checkbox or --disable-checkbox was given.
5913if test "${enable_checkbox+set}" = set; then
5914 enableval="$enable_checkbox"
698dcdb6 5915
10f2d63a
VZ
5916 if test "$enableval" = yes; then
5917 ac_cv_use_checkbox='wxUSE_CHECKBOX=yes'
5918 else
5919 ac_cv_use_checkbox='wxUSE_CHECKBOX=no'
5920 fi
698dcdb6 5921
10f2d63a 5922else
698dcdb6 5923
10f2d63a
VZ
5924 LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}`
5925 if test "x$LINE" != x ; then
5926 eval "DEFAULT_$LINE"
5927 else
5928 no_cache=1
5929 fi
5930
5931 ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX
698dcdb6
VZ
5932
5933fi
10f2d63a
VZ
5934
5935
5936 eval "$ac_cv_use_checkbox"
5937 if test "$no_cache" != 1; then
5938 echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp
5939 fi
5940
5941 if test "$wxUSE_CHECKBOX" = yes; then
698dcdb6 5942 echo "$ac_t""yes" 1>&6
10f2d63a 5943 else
698dcdb6 5944 echo "$ac_t""no" 1>&6
10f2d63a 5945 fi
698dcdb6 5946
10f2d63a 5947
698dcdb6 5948 echo $ac_n "checking for --enable-checklst""... $ac_c" 1>&6
658974ae 5949echo "configure:5950: checking for --enable-checklst" >&5
10f2d63a
VZ
5950 no_cache=0
5951 # Check whether --enable-checklst or --disable-checklst was given.
5952if test "${enable_checklst+set}" = set; then
5953 enableval="$enable_checklst"
698dcdb6 5954
10f2d63a
VZ
5955 if test "$enableval" = yes; then
5956 ac_cv_use_checklst='wxUSE_CHECKLST=yes'
5957 else
5958 ac_cv_use_checklst='wxUSE_CHECKLST=no'
5959 fi
698dcdb6 5960
10f2d63a 5961else
698dcdb6 5962
10f2d63a
VZ
5963 LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}`
5964 if test "x$LINE" != x ; then
5965 eval "DEFAULT_$LINE"
5966 else
5967 no_cache=1
5968 fi
5969
5970 ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST
698dcdb6
VZ
5971
5972fi
10f2d63a
VZ
5973
5974
5975 eval "$ac_cv_use_checklst"
5976 if test "$no_cache" != 1; then
5977 echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp
5978 fi
5979
5980 if test "$wxUSE_CHECKLST" = yes; then
698dcdb6 5981 echo "$ac_t""yes" 1>&6
10f2d63a 5982 else
698dcdb6 5983 echo "$ac_t""no" 1>&6
10f2d63a 5984 fi
698dcdb6 5985
10f2d63a 5986
698dcdb6 5987 echo $ac_n "checking for --enable-choice""... $ac_c" 1>&6
658974ae 5988echo "configure:5989: checking for --enable-choice" >&5
10f2d63a
VZ
5989 no_cache=0
5990 # Check whether --enable-choice or --disable-choice was given.
5991if test "${enable_choice+set}" = set; then
5992 enableval="$enable_choice"
698dcdb6 5993
10f2d63a
VZ
5994 if test "$enableval" = yes; then
5995 ac_cv_use_choice='wxUSE_CHOICE=yes'
5996 else
5997 ac_cv_use_choice='wxUSE_CHOICE=no'
5998 fi
698dcdb6 5999
10f2d63a 6000else
698dcdb6 6001
10f2d63a
VZ
6002 LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}`
6003 if test "x$LINE" != x ; then
6004 eval "DEFAULT_$LINE"
6005 else
6006 no_cache=1
6007 fi
6008
6009 ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE
698dcdb6
VZ
6010
6011fi
10f2d63a
VZ
6012
6013
6014 eval "$ac_cv_use_choice"
6015 if test "$no_cache" != 1; then
6016 echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp
6017 fi
6018
6019 if test "$wxUSE_CHOICE" = yes; then
698dcdb6 6020 echo "$ac_t""yes" 1>&6
10f2d63a 6021 else
698dcdb6 6022 echo "$ac_t""no" 1>&6
10f2d63a 6023 fi
698dcdb6 6024
10f2d63a 6025
698dcdb6 6026 echo $ac_n "checking for --enable-combobox""... $ac_c" 1>&6
658974ae 6027echo "configure:6028: checking for --enable-combobox" >&5
10f2d63a
VZ
6028 no_cache=0
6029 # Check whether --enable-combobox or --disable-combobox was given.
6030if test "${enable_combobox+set}" = set; then
6031 enableval="$enable_combobox"
698dcdb6 6032
10f2d63a
VZ
6033 if test "$enableval" = yes; then
6034 ac_cv_use_combobox='wxUSE_COMBOBOX=yes'
6035 else
6036 ac_cv_use_combobox='wxUSE_COMBOBOX=no'
6037 fi
698dcdb6 6038
10f2d63a 6039else
698dcdb6 6040
10f2d63a
VZ
6041 LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}`
6042 if test "x$LINE" != x ; then
6043 eval "DEFAULT_$LINE"
6044 else
6045 no_cache=1
6046 fi
6047
6048 ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX
698dcdb6
VZ
6049
6050fi
10f2d63a
VZ
6051
6052
6053 eval "$ac_cv_use_combobox"
6054 if test "$no_cache" != 1; then
6055 echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp
6056 fi
6057
6058 if test "$wxUSE_COMBOBOX" = yes; then
698dcdb6 6059 echo "$ac_t""yes" 1>&6
10f2d63a 6060 else
698dcdb6 6061 echo "$ac_t""no" 1>&6
10f2d63a 6062 fi
698dcdb6 6063
10f2d63a 6064
698dcdb6 6065 echo $ac_n "checking for --enable-gauge""... $ac_c" 1>&6
658974ae 6066echo "configure:6067: checking for --enable-gauge" >&5
10f2d63a
VZ
6067 no_cache=0
6068 # Check whether --enable-gauge or --disable-gauge was given.
6069if test "${enable_gauge+set}" = set; then
6070 enableval="$enable_gauge"
698dcdb6 6071
10f2d63a
VZ
6072 if test "$enableval" = yes; then
6073 ac_cv_use_gauge='wxUSE_GAUGE=yes'
6074 else
6075 ac_cv_use_gauge='wxUSE_GAUGE=no'
6076 fi
698dcdb6 6077
10f2d63a 6078else
698dcdb6 6079
10f2d63a
VZ
6080 LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}`
6081 if test "x$LINE" != x ; then
6082 eval "DEFAULT_$LINE"
6083 else
6084 no_cache=1
6085 fi
6086
6087 ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE
698dcdb6
VZ
6088
6089fi
10f2d63a
VZ
6090
6091
6092 eval "$ac_cv_use_gauge"
6093 if test "$no_cache" != 1; then
6094 echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp
6095 fi
6096
6097 if test "$wxUSE_GAUGE" = yes; then
698dcdb6 6098 echo "$ac_t""yes" 1>&6
10f2d63a 6099 else
698dcdb6 6100 echo "$ac_t""no" 1>&6
10f2d63a 6101 fi
698dcdb6 6102
10f2d63a 6103
698dcdb6 6104 echo $ac_n "checking for --enable-grid""... $ac_c" 1>&6
658974ae 6105echo "configure:6106: checking for --enable-grid" >&5
10f2d63a
VZ
6106 no_cache=0
6107 # Check whether --enable-grid or --disable-grid was given.
6108if test "${enable_grid+set}" = set; then
6109 enableval="$enable_grid"
698dcdb6 6110
10f2d63a
VZ
6111 if test "$enableval" = yes; then
6112 ac_cv_use_grid='wxUSE_GRID=yes'
6113 else
6114 ac_cv_use_grid='wxUSE_GRID=no'
6115 fi
698dcdb6 6116
10f2d63a 6117else
698dcdb6 6118
10f2d63a
VZ
6119 LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}`
6120 if test "x$LINE" != x ; then
6121 eval "DEFAULT_$LINE"
6122 else
6123 no_cache=1
6124 fi
6125
6126 ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID
698dcdb6
VZ
6127
6128fi
10f2d63a
VZ
6129
6130
6131 eval "$ac_cv_use_grid"
6132 if test "$no_cache" != 1; then
6133 echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp
6134 fi
6135
6136 if test "$wxUSE_GRID" = yes; then
698dcdb6 6137 echo "$ac_t""yes" 1>&6
10f2d63a 6138 else
698dcdb6 6139 echo "$ac_t""no" 1>&6
10f2d63a 6140 fi
698dcdb6 6141
10f2d63a 6142
698dcdb6 6143 echo $ac_n "checking for --enable-newgrid""... $ac_c" 1>&6
658974ae 6144echo "configure:6145: checking for --enable-newgrid" >&5
10f2d63a
VZ
6145 no_cache=0
6146 # Check whether --enable-newgrid or --disable-newgrid was given.
6147if test "${enable_newgrid+set}" = set; then
6148 enableval="$enable_newgrid"
698dcdb6 6149
10f2d63a
VZ
6150 if test "$enableval" = yes; then
6151 ac_cv_use_newgrid='wxUSE_NEW_GRID=yes'
6152 else
6153 ac_cv_use_newgrid='wxUSE_NEW_GRID=no'
6154 fi
698dcdb6 6155
10f2d63a 6156else
698dcdb6 6157
10f2d63a
VZ
6158 LINE=`grep "wxUSE_NEW_GRID" ${wx_arg_cache_file}`
6159 if test "x$LINE" != x ; then
6160 eval "DEFAULT_$LINE"
6161 else
6162 no_cache=1
6163 fi
6164
6165 ac_cv_use_newgrid='wxUSE_NEW_GRID='$DEFAULT_wxUSE_NEW_GRID
698dcdb6
VZ
6166
6167fi
10f2d63a
VZ
6168
6169
6170 eval "$ac_cv_use_newgrid"
6171 if test "$no_cache" != 1; then
6172 echo $ac_cv_use_newgrid >> ${wx_arg_cache_file}.tmp
6173 fi
6174
6175 if test "$wxUSE_NEW_GRID" = yes; then
698dcdb6 6176 echo "$ac_t""yes" 1>&6
10f2d63a 6177 else
698dcdb6 6178 echo "$ac_t""no" 1>&6
10f2d63a 6179 fi
698dcdb6 6180
10f2d63a 6181
698dcdb6 6182 echo $ac_n "checking for --enable-imaglist""... $ac_c" 1>&6
658974ae 6183echo "configure:6184: checking for --enable-imaglist" >&5
10f2d63a
VZ
6184 no_cache=0
6185 # Check whether --enable-imaglist or --disable-imaglist was given.
6186if test "${enable_imaglist+set}" = set; then
6187 enableval="$enable_imaglist"
698dcdb6 6188
10f2d63a
VZ
6189 if test "$enableval" = yes; then
6190 ac_cv_use_imaglist='wxUSE_IMAGLIST=yes'
6191 else
6192 ac_cv_use_imaglist='wxUSE_IMAGLIST=no'
6193 fi
698dcdb6 6194
10f2d63a 6195else
698dcdb6 6196
10f2d63a
VZ
6197 LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}`
6198 if test "x$LINE" != x ; then
6199 eval "DEFAULT_$LINE"
6200 else
6201 no_cache=1
6202 fi
6203
6204 ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST
698dcdb6
VZ
6205
6206fi
10f2d63a
VZ
6207
6208
6209 eval "$ac_cv_use_imaglist"
6210 if test "$no_cache" != 1; then
6211 echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp
6212 fi
6213
6214 if test "$wxUSE_IMAGLIST" = yes; then
698dcdb6 6215 echo "$ac_t""yes" 1>&6
10f2d63a 6216 else
698dcdb6 6217 echo "$ac_t""no" 1>&6
10f2d63a 6218 fi
698dcdb6 6219
10f2d63a 6220
698dcdb6 6221 echo $ac_n "checking for --enable-listbox""... $ac_c" 1>&6
658974ae 6222echo "configure:6223: checking for --enable-listbox" >&5
10f2d63a
VZ
6223 no_cache=0
6224 # Check whether --enable-listbox or --disable-listbox was given.
6225if test "${enable_listbox+set}" = set; then
6226 enableval="$enable_listbox"
698dcdb6 6227
10f2d63a
VZ
6228 if test "$enableval" = yes; then
6229 ac_cv_use_listbox='wxUSE_LISTBOX=yes'
6230 else
6231 ac_cv_use_listbox='wxUSE_LISTBOX=no'
6232 fi
698dcdb6 6233
10f2d63a 6234else
698dcdb6 6235
10f2d63a
VZ
6236 LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}`
6237 if test "x$LINE" != x ; then
6238 eval "DEFAULT_$LINE"
6239 else
6240 no_cache=1
6241 fi
6242
6243 ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX
698dcdb6
VZ
6244
6245fi
10f2d63a
VZ
6246
6247
6248 eval "$ac_cv_use_listbox"
6249 if test "$no_cache" != 1; then
6250 echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp
6251 fi
6252
6253 if test "$wxUSE_LISTBOX" = yes; then
698dcdb6 6254 echo "$ac_t""yes" 1>&6
10f2d63a 6255 else
698dcdb6 6256 echo "$ac_t""no" 1>&6
10f2d63a 6257 fi
698dcdb6 6258
10f2d63a 6259
698dcdb6 6260 echo $ac_n "checking for --enable-listctrl""... $ac_c" 1>&6
658974ae 6261echo "configure:6262: checking for --enable-listctrl" >&5
10f2d63a
VZ
6262 no_cache=0
6263 # Check whether --enable-listctrl or --disable-listctrl was given.
6264if test "${enable_listctrl+set}" = set; then
6265 enableval="$enable_listctrl"
698dcdb6 6266
10f2d63a
VZ
6267 if test "$enableval" = yes; then
6268 ac_cv_use_listctrl='wxUSE_LISTCTRL=yes'
6269 else
6270 ac_cv_use_listctrl='wxUSE_LISTCTRL=no'
6271 fi
698dcdb6 6272
10f2d63a 6273else
698dcdb6 6274
10f2d63a
VZ
6275 LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}`
6276 if test "x$LINE" != x ; then
6277 eval "DEFAULT_$LINE"
6278 else
6279 no_cache=1
6280 fi
6281
6282 ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL
698dcdb6
VZ
6283
6284fi
10f2d63a
VZ
6285
6286
6287 eval "$ac_cv_use_listctrl"
6288 if test "$no_cache" != 1; then
6289 echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp
6290 fi
6291
6292 if test "$wxUSE_LISTCTRL" = yes; then
698dcdb6 6293 echo "$ac_t""yes" 1>&6
10f2d63a 6294 else
698dcdb6 6295 echo "$ac_t""no" 1>&6
10f2d63a 6296 fi
698dcdb6 6297
10f2d63a 6298
698dcdb6 6299 echo $ac_n "checking for --enable-notebook""... $ac_c" 1>&6
658974ae 6300echo "configure:6301: checking for --enable-notebook" >&5
10f2d63a
VZ
6301 no_cache=0
6302 # Check whether --enable-notebook or --disable-notebook was given.
6303if test "${enable_notebook+set}" = set; then
6304 enableval="$enable_notebook"
698dcdb6 6305
10f2d63a
VZ
6306 if test "$enableval" = yes; then
6307 ac_cv_use_notebook='wxUSE_NOTEBOOK=yes'
6308 else
6309 ac_cv_use_notebook='wxUSE_NOTEBOOK=no'
6310 fi
698dcdb6 6311
10f2d63a 6312else
698dcdb6 6313
10f2d63a
VZ
6314 LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}`
6315 if test "x$LINE" != x ; then
6316 eval "DEFAULT_$LINE"
6317 else
6318 no_cache=1
6319 fi
6320
6321 ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK
698dcdb6
VZ
6322
6323fi
10f2d63a
VZ
6324
6325
6326 eval "$ac_cv_use_notebook"
6327 if test "$no_cache" != 1; then
6328 echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp
6329 fi
6330
6331 if test "$wxUSE_NOTEBOOK" = yes; then
698dcdb6 6332 echo "$ac_t""yes" 1>&6
10f2d63a 6333 else
698dcdb6 6334 echo "$ac_t""no" 1>&6
10f2d63a 6335 fi
698dcdb6 6336
10f2d63a 6337
24176f2c 6338 echo $ac_n "checking for --enable-propsheet""... $ac_c" 1>&6
658974ae 6339echo "configure:6340: checking for --enable-propsheet" >&5
24176f2c
GD
6340 no_cache=0
6341 # Check whether --enable-propsheet or --disable-propsheet was given.
6342if test "${enable_propsheet+set}" = set; then
6343 enableval="$enable_propsheet"
6344
6345 if test "$enableval" = yes; then
6346 ac_cv_use_propsheet='wxUSE_PROPSHEET=yes'
6347 else
6348 ac_cv_use_propsheet='wxUSE_PROPSHEET=no'
6349 fi
6350
6351else
6352
6353 LINE=`grep "wxUSE_PROPSHEET" ${wx_arg_cache_file}`
6354 if test "x$LINE" != x ; then
6355 eval "DEFAULT_$LINE"
6356 else
6357 no_cache=1
6358 fi
6359
6360 ac_cv_use_propsheet='wxUSE_PROPSHEET='$DEFAULT_wxUSE_PROPSHEET
6361
6362fi
6363
6364
6365 eval "$ac_cv_use_propsheet"
6366 if test "$no_cache" != 1; then
6367 echo $ac_cv_use_propsheet >> ${wx_arg_cache_file}.tmp
6368 fi
6369
6370 if test "$wxUSE_PROPSHEET" = yes; then
6371 echo "$ac_t""yes" 1>&6
6372 else
6373 echo "$ac_t""no" 1>&6
6374 fi
6375
6376
698dcdb6 6377 echo $ac_n "checking for --enable-radiobox""... $ac_c" 1>&6
658974ae 6378echo "configure:6379: checking for --enable-radiobox" >&5
10f2d63a
VZ
6379 no_cache=0
6380 # Check whether --enable-radiobox or --disable-radiobox was given.
6381if test "${enable_radiobox+set}" = set; then
6382 enableval="$enable_radiobox"
698dcdb6 6383
10f2d63a
VZ
6384 if test "$enableval" = yes; then
6385 ac_cv_use_radiobox='wxUSE_RADIOBOX=yes'
6386 else
6387 ac_cv_use_radiobox='wxUSE_RADIOBOX=no'
6388 fi
698dcdb6 6389
10f2d63a 6390else
698dcdb6 6391
10f2d63a
VZ
6392 LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}`
6393 if test "x$LINE" != x ; then
6394 eval "DEFAULT_$LINE"
6395 else
6396 no_cache=1
6397 fi
6398
6399 ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX
698dcdb6
VZ
6400
6401fi
10f2d63a
VZ
6402
6403
6404 eval "$ac_cv_use_radiobox"
6405 if test "$no_cache" != 1; then
6406 echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp
6407 fi
6408
6409 if test "$wxUSE_RADIOBOX" = yes; then
698dcdb6 6410 echo "$ac_t""yes" 1>&6
10f2d63a 6411 else
698dcdb6 6412 echo "$ac_t""no" 1>&6
10f2d63a 6413 fi
698dcdb6 6414
10f2d63a 6415
698dcdb6 6416 echo $ac_n "checking for --enable-radiobtn""... $ac_c" 1>&6
658974ae 6417echo "configure:6418: checking for --enable-radiobtn" >&5
10f2d63a
VZ
6418 no_cache=0
6419 # Check whether --enable-radiobtn or --disable-radiobtn was given.
6420if test "${enable_radiobtn+set}" = set; then
6421 enableval="$enable_radiobtn"
698dcdb6 6422
10f2d63a
VZ
6423 if test "$enableval" = yes; then
6424 ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes'
6425 else
6426 ac_cv_use_radiobtn='wxUSE_RADIOBTN=no'
6427 fi
698dcdb6 6428
10f2d63a 6429else
698dcdb6 6430
10f2d63a
VZ
6431 LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}`
6432 if test "x$LINE" != x ; then
6433 eval "DEFAULT_$LINE"
6434 else
6435 no_cache=1
6436 fi
6437
6438 ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN
698dcdb6
VZ
6439
6440fi
10f2d63a
VZ
6441
6442
6443 eval "$ac_cv_use_radiobtn"
6444 if test "$no_cache" != 1; then
6445 echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp
6446 fi
6447
6448 if test "$wxUSE_RADIOBTN" = yes; then
698dcdb6 6449 echo "$ac_t""yes" 1>&6
10f2d63a 6450 else
698dcdb6 6451 echo "$ac_t""no" 1>&6
10f2d63a 6452 fi
698dcdb6 6453
10f2d63a 6454
698dcdb6 6455 echo $ac_n "checking for --enable-sash""... $ac_c" 1>&6
658974ae 6456echo "configure:6457: checking for --enable-sash" >&5
10f2d63a
VZ
6457 no_cache=0
6458 # Check whether --enable-sash or --disable-sash was given.
6459if test "${enable_sash+set}" = set; then
6460 enableval="$enable_sash"
698dcdb6 6461
10f2d63a
VZ
6462 if test "$enableval" = yes; then
6463 ac_cv_use_sash='wxUSE_SASH=yes'
6464 else
6465 ac_cv_use_sash='wxUSE_SASH=no'
6466 fi
698dcdb6 6467
10f2d63a 6468else
698dcdb6 6469
10f2d63a
VZ
6470 LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}`
6471 if test "x$LINE" != x ; then
6472 eval "DEFAULT_$LINE"
6473 else
6474 no_cache=1
6475 fi
6476
6477 ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH
698dcdb6
VZ
6478
6479fi
10f2d63a
VZ
6480
6481
6482 eval "$ac_cv_use_sash"
6483 if test "$no_cache" != 1; then
6484 echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp
6485 fi
6486
6487 if test "$wxUSE_SASH" = yes; then
698dcdb6 6488 echo "$ac_t""yes" 1>&6
10f2d63a 6489 else
698dcdb6 6490 echo "$ac_t""no" 1>&6
10f2d63a 6491 fi
698dcdb6 6492
10f2d63a 6493
698dcdb6 6494 echo $ac_n "checking for --enable-scrollbar""... $ac_c" 1>&6
658974ae 6495echo "configure:6496: checking for --enable-scrollbar" >&5
10f2d63a
VZ
6496 no_cache=0
6497 # Check whether --enable-scrollbar or --disable-scrollbar was given.
6498if test "${enable_scrollbar+set}" = set; then
6499 enableval="$enable_scrollbar"
698dcdb6 6500
10f2d63a
VZ
6501 if test "$enableval" = yes; then
6502 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes'
6503 else
6504 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no'
6505 fi
698dcdb6 6506
10f2d63a 6507else
698dcdb6 6508
10f2d63a
VZ
6509 LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}`
6510 if test "x$LINE" != x ; then
6511 eval "DEFAULT_$LINE"
6512 else
6513 no_cache=1
6514 fi
6515
6516 ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR
698dcdb6
VZ
6517
6518fi
10f2d63a
VZ
6519
6520
6521 eval "$ac_cv_use_scrollbar"
6522 if test "$no_cache" != 1; then
6523 echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp
6524 fi
6525
6526 if test "$wxUSE_SCROLLBAR" = yes; then
698dcdb6 6527 echo "$ac_t""yes" 1>&6
10f2d63a 6528 else
698dcdb6 6529 echo "$ac_t""no" 1>&6
10f2d63a 6530 fi
698dcdb6 6531
10f2d63a 6532
698dcdb6 6533 echo $ac_n "checking for --enable-slider""... $ac_c" 1>&6
658974ae 6534echo "configure:6535: checking for --enable-slider" >&5
10f2d63a
VZ
6535 no_cache=0
6536 # Check whether --enable-slider or --disable-slider was given.
6537if test "${enable_slider+set}" = set; then
6538 enableval="$enable_slider"
698dcdb6 6539
10f2d63a
VZ
6540 if test "$enableval" = yes; then
6541 ac_cv_use_slider='wxUSE_SLIDER=yes'
6542 else
6543 ac_cv_use_slider='wxUSE_SLIDER=no'
6544 fi
698dcdb6 6545
10f2d63a 6546else
698dcdb6 6547
10f2d63a
VZ
6548 LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}`
6549 if test "x$LINE" != x ; then
6550 eval "DEFAULT_$LINE"
6551 else
6552 no_cache=1
6553 fi
6554
6555 ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER
698dcdb6
VZ
6556
6557fi
10f2d63a
VZ
6558
6559
6560 eval "$ac_cv_use_slider"
6561 if test "$no_cache" != 1; then
6562 echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp
6563 fi
6564
6565 if test "$wxUSE_SLIDER" = yes; then
698dcdb6 6566 echo "$ac_t""yes" 1>&6
10f2d63a 6567 else
698dcdb6 6568 echo "$ac_t""no" 1>&6
10f2d63a 6569 fi
698dcdb6 6570
10f2d63a 6571
698dcdb6 6572 echo $ac_n "checking for --enable-spinbtn""... $ac_c" 1>&6
658974ae 6573echo "configure:6574: checking for --enable-spinbtn" >&5
10f2d63a
VZ
6574 no_cache=0
6575 # Check whether --enable-spinbtn or --disable-spinbtn was given.
6576if test "${enable_spinbtn+set}" = set; then
6577 enableval="$enable_spinbtn"
698dcdb6 6578
10f2d63a
VZ
6579 if test "$enableval" = yes; then
6580 ac_cv_use_spinbtn='wxUSE_SPINBTN=yes'
6581 else
6582 ac_cv_use_spinbtn='wxUSE_SPINBTN=no'
6583 fi
698dcdb6 6584
10f2d63a 6585else
698dcdb6 6586
10f2d63a
VZ
6587 LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}`
6588 if test "x$LINE" != x ; then
6589 eval "DEFAULT_$LINE"
6590 else
6591 no_cache=1
6592 fi
6593
6594 ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN
698dcdb6
VZ
6595
6596fi
10f2d63a
VZ
6597
6598
6599 eval "$ac_cv_use_spinbtn"
6600 if test "$no_cache" != 1; then
6601 echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp
6602 fi
6603
6604 if test "$wxUSE_SPINBTN" = yes; then
698dcdb6 6605 echo "$ac_t""yes" 1>&6
10f2d63a 6606 else
698dcdb6 6607 echo "$ac_t""no" 1>&6
10f2d63a 6608 fi
698dcdb6 6609
10f2d63a 6610
698dcdb6 6611 echo $ac_n "checking for --enable-spinctrl""... $ac_c" 1>&6
658974ae 6612echo "configure:6613: checking for --enable-spinctrl" >&5
56cfaa52
RR
6613 no_cache=0
6614 # Check whether --enable-spinctrl or --disable-spinctrl was given.
6615if test "${enable_spinctrl+set}" = set; then
6616 enableval="$enable_spinctrl"
698dcdb6 6617
56cfaa52
RR
6618 if test "$enableval" = yes; then
6619 ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes'
6620 else
6621 ac_cv_use_spinctrl='wxUSE_SPINCTRL=no'
6622 fi
698dcdb6 6623
56cfaa52 6624else
698dcdb6 6625
56cfaa52
RR
6626 LINE=`grep "wxUSE_SPINCTRL" ${wx_arg_cache_file}`
6627 if test "x$LINE" != x ; then
6628 eval "DEFAULT_$LINE"
6629 else
6630 no_cache=1
6631 fi
6632
6633 ac_cv_use_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL
698dcdb6
VZ
6634
6635fi
56cfaa52
RR
6636
6637
6638 eval "$ac_cv_use_spinctrl"
6639 if test "$no_cache" != 1; then
6640 echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp
6641 fi
6642
6643 if test "$wxUSE_SPINCTRL" = yes; then
698dcdb6 6644 echo "$ac_t""yes" 1>&6
56cfaa52 6645 else
698dcdb6 6646 echo "$ac_t""no" 1>&6
56cfaa52 6647 fi
698dcdb6 6648
56cfaa52 6649
698dcdb6 6650 echo $ac_n "checking for --enable-splitter""... $ac_c" 1>&6
658974ae 6651echo "configure:6652: checking for --enable-splitter" >&5
10f2d63a
VZ
6652 no_cache=0
6653 # Check whether --enable-splitter or --disable-splitter was given.
6654if test "${enable_splitter+set}" = set; then
6655 enableval="$enable_splitter"
698dcdb6 6656
10f2d63a
VZ
6657 if test "$enableval" = yes; then
6658 ac_cv_use_splitter='wxUSE_SPLITTER=yes'
6659 else
6660 ac_cv_use_splitter='wxUSE_SPLITTER=no'
6661 fi
698dcdb6 6662
10f2d63a 6663else
698dcdb6 6664
10f2d63a
VZ
6665 LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}`
6666 if test "x$LINE" != x ; then
6667 eval "DEFAULT_$LINE"
6668 else
6669 no_cache=1
6670 fi
6671
6672 ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER
698dcdb6
VZ
6673
6674fi
10f2d63a
VZ
6675
6676
6677 eval "$ac_cv_use_splitter"
6678 if test "$no_cache" != 1; then
6679 echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp
6680 fi
6681
6682 if test "$wxUSE_SPLITTER" = yes; then
698dcdb6 6683 echo "$ac_t""yes" 1>&6
10f2d63a 6684 else
698dcdb6 6685 echo "$ac_t""no" 1>&6
10f2d63a 6686 fi
698dcdb6 6687
10f2d63a 6688
698dcdb6 6689 echo $ac_n "checking for --enable-statbmp""... $ac_c" 1>&6
658974ae 6690echo "configure:6691: checking for --enable-statbmp" >&5
10f2d63a
VZ
6691 no_cache=0
6692 # Check whether --enable-statbmp or --disable-statbmp was given.
6693if test "${enable_statbmp+set}" = set; then
6694 enableval="$enable_statbmp"
698dcdb6 6695
10f2d63a
VZ
6696 if test "$enableval" = yes; then
6697 ac_cv_use_statbmp='wxUSE_STATBMP=yes'
6698 else
6699 ac_cv_use_statbmp='wxUSE_STATBMP=no'
6700 fi
698dcdb6 6701
10f2d63a 6702else
698dcdb6 6703
10f2d63a
VZ
6704 LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}`
6705 if test "x$LINE" != x ; then
6706 eval "DEFAULT_$LINE"
6707 else
6708 no_cache=1
6709 fi
6710
6711 ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP
698dcdb6
VZ
6712
6713fi
10f2d63a
VZ
6714
6715
6716 eval "$ac_cv_use_statbmp"
6717 if test "$no_cache" != 1; then
6718 echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp
6719 fi
6720
6721 if test "$wxUSE_STATBMP" = yes; then
698dcdb6 6722 echo "$ac_t""yes" 1>&6
10f2d63a 6723 else
698dcdb6 6724 echo "$ac_t""no" 1>&6
10f2d63a 6725 fi
698dcdb6 6726
10f2d63a 6727
698dcdb6 6728 echo $ac_n "checking for --enable-statbox""... $ac_c" 1>&6
658974ae 6729echo "configure:6730: checking for --enable-statbox" >&5
10f2d63a
VZ
6730 no_cache=0
6731 # Check whether --enable-statbox or --disable-statbox was given.
6732if test "${enable_statbox+set}" = set; then
6733 enableval="$enable_statbox"
698dcdb6 6734
10f2d63a
VZ
6735 if test "$enableval" = yes; then
6736 ac_cv_use_statbox='wxUSE_STATBOX=yes'
6737 else
6738 ac_cv_use_statbox='wxUSE_STATBOX=no'
6739 fi
698dcdb6 6740
10f2d63a 6741else
698dcdb6 6742
10f2d63a
VZ
6743 LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}`
6744 if test "x$LINE" != x ; then
6745 eval "DEFAULT_$LINE"
6746 else
6747 no_cache=1
6748 fi
6749
6750 ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX
698dcdb6
VZ
6751
6752fi
10f2d63a
VZ
6753
6754
6755 eval "$ac_cv_use_statbox"
6756 if test "$no_cache" != 1; then
6757 echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp
6758 fi
6759
6760 if test "$wxUSE_STATBOX" = yes; then
698dcdb6 6761 echo "$ac_t""yes" 1>&6
10f2d63a 6762 else
698dcdb6 6763 echo "$ac_t""no" 1>&6
10f2d63a 6764 fi
698dcdb6 6765
10f2d63a 6766
698dcdb6 6767 echo $ac_n "checking for --enable-statline""... $ac_c" 1>&6
658974ae 6768echo "configure:6769: checking for --enable-statline" >&5
10f2d63a
VZ
6769 no_cache=0
6770 # Check whether --enable-statline or --disable-statline was given.
6771if test "${enable_statline+set}" = set; then
6772 enableval="$enable_statline"
698dcdb6 6773
10f2d63a
VZ
6774 if test "$enableval" = yes; then
6775 ac_cv_use_statline='wxUSE_STATLINE=yes'
6776 else
6777 ac_cv_use_statline='wxUSE_STATLINE=no'
6778 fi
698dcdb6 6779
10f2d63a 6780else
698dcdb6 6781
10f2d63a
VZ
6782 LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}`
6783 if test "x$LINE" != x ; then
6784 eval "DEFAULT_$LINE"
6785 else
6786 no_cache=1
6787 fi
6788
6789 ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE
698dcdb6
VZ
6790
6791fi
10f2d63a
VZ
6792
6793
6794 eval "$ac_cv_use_statline"
6795 if test "$no_cache" != 1; then
6796 echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp
6797 fi
6798
6799 if test "$wxUSE_STATLINE" = yes; then
698dcdb6 6800 echo "$ac_t""yes" 1>&6
10f2d63a 6801 else
698dcdb6 6802 echo "$ac_t""no" 1>&6
10f2d63a 6803 fi
698dcdb6 6804
10f2d63a 6805
1e6feb95 6806 echo $ac_n "checking for --enable-stattext""... $ac_c" 1>&6
658974ae 6807echo "configure:6808: checking for --enable-stattext" >&5
1e6feb95
VZ
6808 no_cache=0
6809 # Check whether --enable-stattext or --disable-stattext was given.
6810if test "${enable_stattext+set}" = set; then
6811 enableval="$enable_stattext"
6812
6813 if test "$enableval" = yes; then
6814 ac_cv_use_stattext='wxUSE_STATTEXT=yes'
6815 else
6816 ac_cv_use_stattext='wxUSE_STATTEXT=no'
6817 fi
6818
6819else
6820
6821 LINE=`grep "wxUSE_STATTEXT" ${wx_arg_cache_file}`
6822 if test "x$LINE" != x ; then
6823 eval "DEFAULT_$LINE"
6824 else
6825 no_cache=1
6826 fi
6827
6828 ac_cv_use_stattext='wxUSE_STATTEXT='$DEFAULT_wxUSE_STATTEXT
6829
6830fi
6831
6832
6833 eval "$ac_cv_use_stattext"
6834 if test "$no_cache" != 1; then
6835 echo $ac_cv_use_stattext >> ${wx_arg_cache_file}.tmp
6836 fi
6837
6838 if test "$wxUSE_STATTEXT" = yes; then
6839 echo "$ac_t""yes" 1>&6
6840 else
6841 echo "$ac_t""no" 1>&6
6842 fi
6843
6844
698dcdb6 6845 echo $ac_n "checking for --enable-statusbar""... $ac_c" 1>&6
658974ae 6846echo "configure:6847: checking for --enable-statusbar" >&5
10f2d63a
VZ
6847 no_cache=0
6848 # Check whether --enable-statusbar or --disable-statusbar was given.
6849if test "${enable_statusbar+set}" = set; then
6850 enableval="$enable_statusbar"
698dcdb6 6851
10f2d63a
VZ
6852 if test "$enableval" = yes; then
6853 ac_cv_use_statusbar='wxUSE_STATUSBAR=yes'
6854 else
6855 ac_cv_use_statusbar='wxUSE_STATUSBAR=no'
6856 fi
698dcdb6 6857
10f2d63a 6858else
698dcdb6 6859
10f2d63a
VZ
6860 LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}`
6861 if test "x$LINE" != x ; then
6862 eval "DEFAULT_$LINE"
6863 else
6864 no_cache=1
6865 fi
6866
6867 ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR
698dcdb6
VZ
6868
6869fi
10f2d63a
VZ
6870
6871
6872 eval "$ac_cv_use_statusbar"
6873 if test "$no_cache" != 1; then
6874 echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp
6875 fi
6876
6877 if test "$wxUSE_STATUSBAR" = yes; then
698dcdb6 6878 echo "$ac_t""yes" 1>&6
10f2d63a 6879 else
698dcdb6 6880 echo "$ac_t""no" 1>&6
10f2d63a 6881 fi
698dcdb6 6882
10f2d63a 6883
698dcdb6 6884 echo $ac_n "checking for --enable-tabdialog""... $ac_c" 1>&6
658974ae 6885echo "configure:6886: checking for --enable-tabdialog" >&5
10f2d63a
VZ
6886 no_cache=0
6887 # Check whether --enable-tabdialog or --disable-tabdialog was given.
6888if test "${enable_tabdialog+set}" = set; then
6889 enableval="$enable_tabdialog"
698dcdb6 6890
10f2d63a
VZ
6891 if test "$enableval" = yes; then
6892 ac_cv_use_tabdialog='wxUSE_TABDIALOG=yes'
6893 else
6894 ac_cv_use_tabdialog='wxUSE_TABDIALOG=no'
6895 fi
698dcdb6 6896
10f2d63a 6897else
698dcdb6 6898
10f2d63a
VZ
6899 LINE=`grep "wxUSE_TABDIALOG" ${wx_arg_cache_file}`
6900 if test "x$LINE" != x ; then
6901 eval "DEFAULT_$LINE"
6902 else
6903 no_cache=1
6904 fi
6905
6906 ac_cv_use_tabdialog='wxUSE_TABDIALOG='$DEFAULT_wxUSE_TABDIALOG
698dcdb6
VZ
6907
6908fi
10f2d63a
VZ
6909
6910
6911 eval "$ac_cv_use_tabdialog"
6912 if test "$no_cache" != 1; then
6913 echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp
6914 fi
6915
6916 if test "$wxUSE_TABDIALOG" = yes; then
698dcdb6 6917 echo "$ac_t""yes" 1>&6
10f2d63a 6918 else
698dcdb6 6919 echo "$ac_t""no" 1>&6
10f2d63a 6920 fi
698dcdb6 6921
10f2d63a 6922
1e6feb95 6923 echo $ac_n "checking for --enable-textctrl""... $ac_c" 1>&6
658974ae 6924echo "configure:6925: checking for --enable-textctrl" >&5
1e6feb95
VZ
6925 no_cache=0
6926 # Check whether --enable-textctrl or --disable-textctrl was given.
6927if test "${enable_textctrl+set}" = set; then
6928 enableval="$enable_textctrl"
6929
6930 if test "$enableval" = yes; then
6931 ac_cv_use_textctrl='wxUSE_TEXTCTRL=yes'
6932 else
6933 ac_cv_use_textctrl='wxUSE_TEXTCTRL=no'
6934 fi
6935
6936else
6937
6938 LINE=`grep "wxUSE_TEXTCTRL" ${wx_arg_cache_file}`
6939 if test "x$LINE" != x ; then
6940 eval "DEFAULT_$LINE"
6941 else
6942 no_cache=1
6943 fi
6944
6945 ac_cv_use_textctrl='wxUSE_TEXTCTRL='$DEFAULT_wxUSE_TEXTCTRL
6946
6947fi
6948
6949
6950 eval "$ac_cv_use_textctrl"
6951 if test "$no_cache" != 1; then
6952 echo $ac_cv_use_textctrl >> ${wx_arg_cache_file}.tmp
6953 fi
6954
6955 if test "$wxUSE_TEXTCTRL" = yes; then
6956 echo "$ac_t""yes" 1>&6
6957 else
6958 echo "$ac_t""no" 1>&6
6959 fi
6960
6961
698dcdb6 6962 echo $ac_n "checking for --enable-togglebtn""... $ac_c" 1>&6
658974ae 6963echo "configure:6964: checking for --enable-togglebtn" >&5
1db8dc4a
VZ
6964 no_cache=0
6965 # Check whether --enable-togglebtn or --disable-togglebtn was given.
6966if test "${enable_togglebtn+set}" = set; then
6967 enableval="$enable_togglebtn"
698dcdb6 6968
1db8dc4a
VZ
6969 if test "$enableval" = yes; then
6970 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes'
6971 else
6972 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=no'
6973 fi
698dcdb6 6974
1db8dc4a 6975else
698dcdb6 6976
1db8dc4a
VZ
6977 LINE=`grep "wxUSE_TOGGLEBTN" ${wx_arg_cache_file}`
6978 if test "x$LINE" != x ; then
6979 eval "DEFAULT_$LINE"
6980 else
6981 no_cache=1
6982 fi
6983
6984 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN='$DEFAULT_wxUSE_TOGGLEBTN
698dcdb6
VZ
6985
6986fi
1db8dc4a
VZ
6987
6988
6989 eval "$ac_cv_use_togglebtn"
6990 if test "$no_cache" != 1; then
6991 echo $ac_cv_use_togglebtn >> ${wx_arg_cache_file}.tmp
6992 fi
6993
6994 if test "$wxUSE_TOGGLEBTN" = yes; then
698dcdb6 6995 echo "$ac_t""yes" 1>&6
1db8dc4a 6996 else
698dcdb6 6997 echo "$ac_t""no" 1>&6
1db8dc4a 6998 fi
698dcdb6 6999
1db8dc4a 7000
698dcdb6 7001 echo $ac_n "checking for --enable-toolbar""... $ac_c" 1>&6
658974ae 7002echo "configure:7003: checking for --enable-toolbar" >&5
10f2d63a
VZ
7003 no_cache=0
7004 # Check whether --enable-toolbar or --disable-toolbar was given.
7005if test "${enable_toolbar+set}" = set; then
7006 enableval="$enable_toolbar"
698dcdb6 7007
10f2d63a
VZ
7008 if test "$enableval" = yes; then
7009 ac_cv_use_toolbar='wxUSE_TOOLBAR=yes'
7010 else
7011 ac_cv_use_toolbar='wxUSE_TOOLBAR=no'
7012 fi
698dcdb6 7013
10f2d63a 7014else
698dcdb6 7015
10f2d63a
VZ
7016 LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}`
7017 if test "x$LINE" != x ; then
7018 eval "DEFAULT_$LINE"
7019 else
7020 no_cache=1
7021 fi
7022
7023 ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR
698dcdb6
VZ
7024
7025fi
10f2d63a
VZ
7026
7027
7028 eval "$ac_cv_use_toolbar"
7029 if test "$no_cache" != 1; then
7030 echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp
7031 fi
7032
7033 if test "$wxUSE_TOOLBAR" = yes; then
698dcdb6 7034 echo "$ac_t""yes" 1>&6
10f2d63a 7035 else
698dcdb6 7036 echo "$ac_t""no" 1>&6
10f2d63a 7037 fi
698dcdb6 7038
10f2d63a 7039
698dcdb6 7040 echo $ac_n "checking for --enable-tbarnative""... $ac_c" 1>&6
658974ae 7041echo "configure:7042: checking for --enable-tbarnative" >&5
360d6699
VZ
7042 no_cache=0
7043 # Check whether --enable-tbarnative or --disable-tbarnative was given.
7044if test "${enable_tbarnative+set}" = set; then
7045 enableval="$enable_tbarnative"
698dcdb6 7046
360d6699
VZ
7047 if test "$enableval" = yes; then
7048 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes'
7049 else
7050 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no'
7051 fi
698dcdb6 7052
360d6699 7053else
698dcdb6 7054
360d6699
VZ
7055 LINE=`grep "wxUSE_TOOLBAR_NATIVE" ${wx_arg_cache_file}`
7056 if test "x$LINE" != x ; then
7057 eval "DEFAULT_$LINE"
7058 else
7059 no_cache=1
7060 fi
7061
7062 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE='$DEFAULT_wxUSE_TOOLBAR_NATIVE
698dcdb6
VZ
7063
7064fi
360d6699
VZ
7065
7066
7067 eval "$ac_cv_use_tbarnative"
7068 if test "$no_cache" != 1; then
7069 echo $ac_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp
7070 fi
7071
7072 if test "$wxUSE_TOOLBAR_NATIVE" = yes; then
698dcdb6 7073 echo "$ac_t""yes" 1>&6
360d6699 7074 else
698dcdb6 7075 echo "$ac_t""no" 1>&6
360d6699 7076 fi
698dcdb6 7077
360d6699 7078
698dcdb6 7079 echo $ac_n "checking for --enable-tbarsmpl""... $ac_c" 1>&6
658974ae 7080echo "configure:7081: checking for --enable-tbarsmpl" >&5
360d6699
VZ
7081 no_cache=0
7082 # Check whether --enable-tbarsmpl or --disable-tbarsmpl was given.
7083if test "${enable_tbarsmpl+set}" = set; then
7084 enableval="$enable_tbarsmpl"
698dcdb6 7085
360d6699
VZ
7086 if test "$enableval" = yes; then
7087 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=yes'
7088 else
7089 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=no'
7090 fi
698dcdb6 7091
360d6699 7092else
698dcdb6 7093
360d6699
VZ
7094 LINE=`grep "wxUSE_TOOLBAR_SIMPLE" ${wx_arg_cache_file}`
7095 if test "x$LINE" != x ; then
7096 eval "DEFAULT_$LINE"
7097 else
7098 no_cache=1
7099 fi
7100
7101 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE='$DEFAULT_wxUSE_TOOLBAR_SIMPLE
698dcdb6
VZ
7102
7103fi
360d6699
VZ
7104
7105
7106 eval "$ac_cv_use_tbarsmpl"
7107 if test "$no_cache" != 1; then
7108 echo $ac_cv_use_tbarsmpl >> ${wx_arg_cache_file}.tmp
7109 fi
7110
7111 if test "$wxUSE_TOOLBAR_SIMPLE" = yes; then
698dcdb6 7112 echo "$ac_t""yes" 1>&6
360d6699 7113 else
698dcdb6 7114 echo "$ac_t""no" 1>&6
360d6699 7115 fi
698dcdb6 7116
360d6699 7117
698dcdb6 7118 echo $ac_n "checking for --enable-treectrl""... $ac_c" 1>&6
658974ae 7119echo "configure:7120: checking for --enable-treectrl" >&5
10f2d63a
VZ
7120 no_cache=0
7121 # Check whether --enable-treectrl or --disable-treectrl was given.
7122if test "${enable_treectrl+set}" = set; then
7123 enableval="$enable_treectrl"
698dcdb6 7124
10f2d63a
VZ
7125 if test "$enableval" = yes; then
7126 ac_cv_use_treectrl='wxUSE_TREECTRL=yes'
7127 else
7128 ac_cv_use_treectrl='wxUSE_TREECTRL=no'
7129 fi
698dcdb6 7130
10f2d63a 7131else
698dcdb6 7132
10f2d63a
VZ
7133 LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}`
7134 if test "x$LINE" != x ; then
7135 eval "DEFAULT_$LINE"
7136 else
7137 no_cache=1
7138 fi
7139
7140 ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL
698dcdb6
VZ
7141
7142fi
10f2d63a
VZ
7143
7144
1e6feb95
VZ
7145 eval "$ac_cv_use_treectrl"
7146 if test "$no_cache" != 1; then
7147 echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp
7148 fi
7149
7150 if test "$wxUSE_TREECTRL" = yes; then
7151 echo "$ac_t""yes" 1>&6
7152 else
7153 echo "$ac_t""no" 1>&6
7154 fi
7155
7156
9926e4a4 7157 echo $ac_n "checking for --enable-tipwindow""... $ac_c" 1>&6
658974ae 7158echo "configure:7159: checking for --enable-tipwindow" >&5
9926e4a4
VZ
7159 no_cache=0
7160 # Check whether --enable-tipwindow or --disable-tipwindow was given.
7161if test "${enable_tipwindow+set}" = set; then
7162 enableval="$enable_tipwindow"
7163
7164 if test "$enableval" = yes; then
7165 ac_cv_use_tipwindow='wxUSE_TIPWINDOW=yes'
7166 else
7167 ac_cv_use_tipwindow='wxUSE_TIPWINDOW=no'
7168 fi
7169
7170else
7171
7172 LINE=`grep "wxUSE_TIPWINDOW" ${wx_arg_cache_file}`
7173 if test "x$LINE" != x ; then
7174 eval "DEFAULT_$LINE"
7175 else
7176 no_cache=1
7177 fi
7178
7179 ac_cv_use_tipwindow='wxUSE_TIPWINDOW='$DEFAULT_wxUSE_TIPWINDOW
7180
7181fi
7182
7183
7184 eval "$ac_cv_use_tipwindow"
7185 if test "$no_cache" != 1; then
7186 echo $ac_cv_use_tipwindow >> ${wx_arg_cache_file}.tmp
7187 fi
7188
7189 if test "$wxUSE_TIPWINDOW" = yes; then
7190 echo "$ac_t""yes" 1>&6
7191 else
7192 echo "$ac_t""no" 1>&6
7193 fi
7194
7195
9f41d601 7196 echo $ac_n "checking for --enable-popupwin""... $ac_c" 1>&6
658974ae 7197echo "configure:7198: checking for --enable-popupwin" >&5
9f41d601
RR
7198 no_cache=0
7199 # Check whether --enable-popupwin or --disable-popupwin was given.
7200if test "${enable_popupwin+set}" = set; then
7201 enableval="$enable_popupwin"
7202
7203 if test "$enableval" = yes; then
7204 ac_cv_use_popupwin='wxUSE_POPUPWIN=yes'
7205 else
7206 ac_cv_use_popupwin='wxUSE_POPUPWIN=no'
7207 fi
7208
7209else
7210
7211 LINE=`grep "wxUSE_POPUPWIN" ${wx_arg_cache_file}`
7212 if test "x$LINE" != x ; then
7213 eval "DEFAULT_$LINE"
7214 else
7215 no_cache=1
7216 fi
7217
7218 ac_cv_use_popupwin='wxUSE_POPUPWIN='$DEFAULT_wxUSE_POPUPWIN
7219
7220fi
7221
7222
7223 eval "$ac_cv_use_popupwin"
7224 if test "$no_cache" != 1; then
7225 echo $ac_cv_use_popupwin >> ${wx_arg_cache_file}.tmp
7226 fi
7227
7228 if test "$wxUSE_POPUPWIN" = yes; then
7229 echo "$ac_t""yes" 1>&6
7230 else
7231 echo "$ac_t""no" 1>&6
7232 fi
7233
7234
1e6feb95
VZ
7235
7236
7237 echo $ac_n "checking for --enable-commondlg""... $ac_c" 1>&6
658974ae 7238echo "configure:7239: checking for --enable-commondlg" >&5
1e6feb95
VZ
7239 no_cache=0
7240 # Check whether --enable-commondlg or --disable-commondlg was given.
7241if test "${enable_commondlg+set}" = set; then
7242 enableval="$enable_commondlg"
7243
7244 if test "$enableval" = yes; then
7245 ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes'
7246 else
7247 ac_cv_use_commondlg='wxUSE_COMMONDLGS=no'
7248 fi
7249
7250else
7251
7252 LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}`
7253 if test "x$LINE" != x ; then
7254 eval "DEFAULT_$LINE"
7255 else
7256 no_cache=1
7257 fi
7258
7259 ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS
7260
7261fi
7262
7263
7264 eval "$ac_cv_use_commondlg"
7265 if test "$no_cache" != 1; then
7266 echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp
7267 fi
7268
7269 if test "$wxUSE_COMMONDLGS" = yes; then
7270 echo "$ac_t""yes" 1>&6
7271 else
7272 echo "$ac_t""no" 1>&6
7273 fi
7274
7275
7276 echo $ac_n "checking for --enable-choicedlg""... $ac_c" 1>&6
658974ae 7277echo "configure:7278: checking for --enable-choicedlg" >&5
1e6feb95
VZ
7278 no_cache=0
7279 # Check whether --enable-choicedlg or --disable-choicedlg was given.
7280if test "${enable_choicedlg+set}" = set; then
7281 enableval="$enable_choicedlg"
7282
7283 if test "$enableval" = yes; then
7284 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=yes'
7285 else
7286 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=no'
7287 fi
7288
7289else
7290
7291 LINE=`grep "wxUSE_CHOICEDLG" ${wx_arg_cache_file}`
7292 if test "x$LINE" != x ; then
7293 eval "DEFAULT_$LINE"
7294 else
7295 no_cache=1
7296 fi
7297
7298 ac_cv_use_choicedlg='wxUSE_CHOICEDLG='$DEFAULT_wxUSE_CHOICEDLG
7299
7300fi
7301
7302
7303 eval "$ac_cv_use_choicedlg"
7304 if test "$no_cache" != 1; then
7305 echo $ac_cv_use_choicedlg >> ${wx_arg_cache_file}.tmp
7306 fi
7307
7308 if test "$wxUSE_CHOICEDLG" = yes; then
7309 echo "$ac_t""yes" 1>&6
7310 else
7311 echo "$ac_t""no" 1>&6
7312 fi
7313
7314
7315 echo $ac_n "checking for --enable-coldlg""... $ac_c" 1>&6
658974ae 7316echo "configure:7317: checking for --enable-coldlg" >&5
1e6feb95
VZ
7317 no_cache=0
7318 # Check whether --enable-coldlg or --disable-coldlg was given.
7319if test "${enable_coldlg+set}" = set; then
7320 enableval="$enable_coldlg"
7321
7322 if test "$enableval" = yes; then
7323 ac_cv_use_coldlg='wxUSE_COLOURDLG=yes'
7324 else
7325 ac_cv_use_coldlg='wxUSE_COLOURDLG=no'
7326 fi
7327
7328else
7329
7330 LINE=`grep "wxUSE_COLOURDLG" ${wx_arg_cache_file}`
7331 if test "x$LINE" != x ; then
7332 eval "DEFAULT_$LINE"
7333 else
7334 no_cache=1
7335 fi
7336
7337 ac_cv_use_coldlg='wxUSE_COLOURDLG='$DEFAULT_wxUSE_COLOURDLG
7338
7339fi
7340
7341
7342 eval "$ac_cv_use_coldlg"
7343 if test "$no_cache" != 1; then
7344 echo $ac_cv_use_coldlg >> ${wx_arg_cache_file}.tmp
7345 fi
7346
7347 if test "$wxUSE_COLOURDLG" = yes; then
7348 echo "$ac_t""yes" 1>&6
7349 else
7350 echo "$ac_t""no" 1>&6
7351 fi
7352
7353
7354 echo $ac_n "checking for --enable-filedlg""... $ac_c" 1>&6
658974ae 7355echo "configure:7356: checking for --enable-filedlg" >&5
1e6feb95
VZ
7356 no_cache=0
7357 # Check whether --enable-filedlg or --disable-filedlg was given.
7358if test "${enable_filedlg+set}" = set; then
7359 enableval="$enable_filedlg"
7360
7361 if test "$enableval" = yes; then
7362 ac_cv_use_filedlg='wxUSE_FILEDLG=yes'
7363 else
7364 ac_cv_use_filedlg='wxUSE_FILEDLG=no'
7365 fi
7366
7367else
7368
7369 LINE=`grep "wxUSE_FILEDLG" ${wx_arg_cache_file}`
7370 if test "x$LINE" != x ; then
7371 eval "DEFAULT_$LINE"
7372 else
7373 no_cache=1
7374 fi
7375
7376 ac_cv_use_filedlg='wxUSE_FILEDLG='$DEFAULT_wxUSE_FILEDLG
7377
7378fi
7379
7380
7381 eval "$ac_cv_use_filedlg"
7382 if test "$no_cache" != 1; then
7383 echo $ac_cv_use_filedlg >> ${wx_arg_cache_file}.tmp
7384 fi
7385
7386 if test "$wxUSE_FILEDLG" = yes; then
7387 echo "$ac_t""yes" 1>&6
7388 else
7389 echo "$ac_t""no" 1>&6
7390 fi
7391
7392
69d27ff7 7393 echo $ac_n "checking for --enable-finddlg""... $ac_c" 1>&6
658974ae 7394echo "configure:7395: checking for --enable-finddlg" >&5
8db37e06 7395 no_cache=0
69d27ff7
MB
7396 # Check whether --enable-finddlg or --disable-finddlg was given.
7397if test "${enable_finddlg+set}" = set; then
7398 enableval="$enable_finddlg"
8db37e06
VZ
7399
7400 if test "$enableval" = yes; then
69d27ff7 7401 ac_cv_use_finddlg='wxUSE_FINDREPLDLG=yes'
8db37e06 7402 else
69d27ff7 7403 ac_cv_use_finddlg='wxUSE_FINDREPLDLG=no'
8db37e06
VZ
7404 fi
7405
7406else
7407
7408 LINE=`grep "wxUSE_FINDREPLDLG" ${wx_arg_cache_file}`
7409 if test "x$LINE" != x ; then
7410 eval "DEFAULT_$LINE"
7411 else
7412 no_cache=1
7413 fi
7414
69d27ff7 7415 ac_cv_use_finddlg='wxUSE_FINDREPLDLG='$DEFAULT_wxUSE_FINDREPLDLG
8db37e06
VZ
7416
7417fi
7418
7419
69d27ff7 7420 eval "$ac_cv_use_finddlg"
8db37e06 7421 if test "$no_cache" != 1; then
69d27ff7 7422 echo $ac_cv_use_finddlg >> ${wx_arg_cache_file}.tmp
8db37e06
VZ
7423 fi
7424
7425 if test "$wxUSE_FINDREPLDLG" = yes; then
7426 echo "$ac_t""yes" 1>&6
7427 else
7428 echo "$ac_t""no" 1>&6
7429 fi
7430
7431
1e6feb95 7432 echo $ac_n "checking for --enable-fontdlg""... $ac_c" 1>&6
658974ae 7433echo "configure:7434: checking for --enable-fontdlg" >&5
1e6feb95
VZ
7434 no_cache=0
7435 # Check whether --enable-fontdlg or --disable-fontdlg was given.
7436if test "${enable_fontdlg+set}" = set; then
7437 enableval="$enable_fontdlg"
7438
7439 if test "$enableval" = yes; then
7440 ac_cv_use_fontdlg='wxUSE_FONTDLG=yes'
7441 else
7442 ac_cv_use_fontdlg='wxUSE_FONTDLG=no'
7443 fi
7444
7445else
7446
7447 LINE=`grep "wxUSE_FONTDLG" ${wx_arg_cache_file}`
7448 if test "x$LINE" != x ; then
7449 eval "DEFAULT_$LINE"
7450 else
7451 no_cache=1
7452 fi
7453
7454 ac_cv_use_fontdlg='wxUSE_FONTDLG='$DEFAULT_wxUSE_FONTDLG
7455
7456fi
7457
7458
7459 eval "$ac_cv_use_fontdlg"
7460 if test "$no_cache" != 1; then
7461 echo $ac_cv_use_fontdlg >> ${wx_arg_cache_file}.tmp
7462 fi
7463
7464 if test "$wxUSE_FONTDLG" = yes; then
7465 echo "$ac_t""yes" 1>&6
7466 else
7467 echo "$ac_t""no" 1>&6
7468 fi
7469
7470
7471 echo $ac_n "checking for --enable-dirdlg""... $ac_c" 1>&6
658974ae 7472echo "configure:7473: checking for --enable-dirdlg" >&5
1e6feb95
VZ
7473 no_cache=0
7474 # Check whether --enable-dirdlg or --disable-dirdlg was given.
7475if test "${enable_dirdlg+set}" = set; then
7476 enableval="$enable_dirdlg"
7477
7478 if test "$enableval" = yes; then
7479 ac_cv_use_dirdlg='wxUSE_DIRDLG=yes'
7480 else
7481 ac_cv_use_dirdlg='wxUSE_DIRDLG=no'
7482 fi
7483
7484else
7485
7486 LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}`
7487 if test "x$LINE" != x ; then
7488 eval "DEFAULT_$LINE"
7489 else
7490 no_cache=1
7491 fi
7492
7493 ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG
7494
7495fi
7496
7497
7498 eval "$ac_cv_use_dirdlg"
10f2d63a 7499 if test "$no_cache" != 1; then
1e6feb95 7500 echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
7501 fi
7502
1e6feb95 7503 if test "$wxUSE_DIRDLG" = yes; then
698dcdb6 7504 echo "$ac_t""yes" 1>&6
10f2d63a 7505 else
698dcdb6 7506 echo "$ac_t""no" 1>&6
10f2d63a 7507 fi
698dcdb6
VZ
7508
7509
1e6feb95 7510 echo $ac_n "checking for --enable-msgdlg""... $ac_c" 1>&6
658974ae 7511echo "configure:7512: checking for --enable-msgdlg" >&5
10f2d63a 7512 no_cache=0
1e6feb95
VZ
7513 # Check whether --enable-msgdlg or --disable-msgdlg was given.
7514if test "${enable_msgdlg+set}" = set; then
7515 enableval="$enable_msgdlg"
698dcdb6 7516
10f2d63a 7517 if test "$enableval" = yes; then
1e6feb95 7518 ac_cv_use_msgdlg='wxUSE_MSGDLG=yes'
10f2d63a 7519 else
1e6feb95 7520 ac_cv_use_msgdlg='wxUSE_MSGDLG=no'
10f2d63a 7521 fi
698dcdb6 7522
10f2d63a 7523else
698dcdb6 7524
1e6feb95 7525 LINE=`grep "wxUSE_MSGDLG" ${wx_arg_cache_file}`
10f2d63a
VZ
7526 if test "x$LINE" != x ; then
7527 eval "DEFAULT_$LINE"
7528 else
7529 no_cache=1
7530 fi
7531
1e6feb95 7532 ac_cv_use_msgdlg='wxUSE_MSGDLG='$DEFAULT_wxUSE_MSGDLG
698dcdb6
VZ
7533
7534fi
10f2d63a
VZ
7535
7536
1e6feb95 7537 eval "$ac_cv_use_msgdlg"
10f2d63a 7538 if test "$no_cache" != 1; then
1e6feb95 7539 echo $ac_cv_use_msgdlg >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
7540 fi
7541
1e6feb95 7542 if test "$wxUSE_MSGDLG" = yes; then
698dcdb6 7543 echo "$ac_t""yes" 1>&6
10f2d63a 7544 else
698dcdb6 7545 echo "$ac_t""no" 1>&6
10f2d63a 7546 fi
698dcdb6 7547
10f2d63a 7548
1e6feb95 7549 echo $ac_n "checking for --enable-numberdlg""... $ac_c" 1>&6
658974ae 7550echo "configure:7551: checking for --enable-numberdlg" >&5
10f2d63a 7551 no_cache=0
1e6feb95
VZ
7552 # Check whether --enable-numberdlg or --disable-numberdlg was given.
7553if test "${enable_numberdlg+set}" = set; then
7554 enableval="$enable_numberdlg"
698dcdb6 7555
10f2d63a 7556 if test "$enableval" = yes; then
1e6feb95 7557 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=yes'
10f2d63a 7558 else
1e6feb95 7559 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=no'
10f2d63a 7560 fi
698dcdb6 7561
10f2d63a 7562else
698dcdb6 7563
1e6feb95 7564 LINE=`grep "wxUSE_NUMBERDLG" ${wx_arg_cache_file}`
10f2d63a
VZ
7565 if test "x$LINE" != x ; then
7566 eval "DEFAULT_$LINE"
7567 else
7568 no_cache=1
7569 fi
7570
1e6feb95 7571 ac_cv_use_numberdlg='wxUSE_NUMBERDLG='$DEFAULT_wxUSE_NUMBERDLG
698dcdb6
VZ
7572
7573fi
10f2d63a
VZ
7574
7575
1e6feb95 7576 eval "$ac_cv_use_numberdlg"
10f2d63a 7577 if test "$no_cache" != 1; then
1e6feb95 7578 echo $ac_cv_use_numberdlg >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
7579 fi
7580
1e6feb95 7581 if test "$wxUSE_NUMBERDLG" = yes; then
698dcdb6 7582 echo "$ac_t""yes" 1>&6
10f2d63a 7583 else
698dcdb6 7584 echo "$ac_t""no" 1>&6
10f2d63a 7585 fi
698dcdb6 7586
10f2d63a 7587
cbca9943 7588 echo $ac_n "checking for --enable-splash""... $ac_c" 1>&6
658974ae 7589echo "configure:7590: checking for --enable-splash" >&5
cbca9943
VZ
7590 no_cache=0
7591 # Check whether --enable-splash or --disable-splash was given.
7592if test "${enable_splash+set}" = set; then
7593 enableval="$enable_splash"
7594
7595 if test "$enableval" = yes; then
7596 ac_cv_use_splash='wxUSE_SPLASH=yes'
7597 else
7598 ac_cv_use_splash='wxUSE_SPLASH=no'
7599 fi
7600
7601else
7602
7603 LINE=`grep "wxUSE_SPLASH" ${wx_arg_cache_file}`
7604 if test "x$LINE" != x ; then
7605 eval "DEFAULT_$LINE"
7606 else
7607 no_cache=1
7608 fi
7609
7610 ac_cv_use_splash='wxUSE_SPLASH='$DEFAULT_wxUSE_SPLASH
7611
7612fi
7613
7614
7615 eval "$ac_cv_use_splash"
7616 if test "$no_cache" != 1; then
7617 echo $ac_cv_use_splash >> ${wx_arg_cache_file}.tmp
7618 fi
7619
7620 if test "$wxUSE_SPLASH" = yes; then
7621 echo "$ac_t""yes" 1>&6
7622 else
7623 echo "$ac_t""no" 1>&6
7624 fi
7625
7626
698dcdb6 7627 echo $ac_n "checking for --enable-textdlg""... $ac_c" 1>&6
658974ae 7628echo "configure:7629: checking for --enable-textdlg" >&5
10f2d63a
VZ
7629 no_cache=0
7630 # Check whether --enable-textdlg or --disable-textdlg was given.
7631if test "${enable_textdlg+set}" = set; then
7632 enableval="$enable_textdlg"
698dcdb6 7633
10f2d63a
VZ
7634 if test "$enableval" = yes; then
7635 ac_cv_use_textdlg='wxUSE_TEXTDLG=yes'
7636 else
7637 ac_cv_use_textdlg='wxUSE_TEXTDLG=no'
7638 fi
698dcdb6 7639
10f2d63a 7640else
698dcdb6 7641
10f2d63a
VZ
7642 LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}`
7643 if test "x$LINE" != x ; then
7644 eval "DEFAULT_$LINE"
7645 else
7646 no_cache=1
7647 fi
7648
7649 ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG
698dcdb6
VZ
7650
7651fi
10f2d63a
VZ
7652
7653
7654 eval "$ac_cv_use_textdlg"
7655 if test "$no_cache" != 1; then
7656 echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp
7657 fi
7658
7659 if test "$wxUSE_TEXTDLG" = yes; then
698dcdb6 7660 echo "$ac_t""yes" 1>&6
10f2d63a 7661 else
698dcdb6 7662 echo "$ac_t""no" 1>&6
10f2d63a 7663 fi
698dcdb6 7664
10f2d63a 7665
698dcdb6 7666 echo $ac_n "checking for --enable-tipdlg""... $ac_c" 1>&6
658974ae 7667echo "configure:7668: checking for --enable-tipdlg" >&5
10f2d63a
VZ
7668 no_cache=0
7669 # Check whether --enable-tipdlg or --disable-tipdlg was given.
7670if test "${enable_tipdlg+set}" = set; then
7671 enableval="$enable_tipdlg"
698dcdb6 7672
10f2d63a
VZ
7673 if test "$enableval" = yes; then
7674 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes'
7675 else
7676 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no'
7677 fi
698dcdb6 7678
10f2d63a 7679else
698dcdb6 7680
10f2d63a
VZ
7681 LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}`
7682 if test "x$LINE" != x ; then
7683 eval "DEFAULT_$LINE"
7684 else
7685 no_cache=1
7686 fi
7687
7688 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS
698dcdb6
VZ
7689
7690fi
10f2d63a
VZ
7691
7692
7693 eval "$ac_cv_use_tipdlg"
7694 if test "$no_cache" != 1; then
7695 echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp
7696 fi
7697
7698 if test "$wxUSE_STARTUP_TIPS" = yes; then
698dcdb6 7699 echo "$ac_t""yes" 1>&6
10f2d63a 7700 else
698dcdb6 7701 echo "$ac_t""no" 1>&6
10f2d63a 7702 fi
698dcdb6 7703
10f2d63a 7704
698dcdb6 7705 echo $ac_n "checking for --enable-progressdlg""... $ac_c" 1>&6
658974ae 7706echo "configure:7707: checking for --enable-progressdlg" >&5
10f2d63a
VZ
7707 no_cache=0
7708 # Check whether --enable-progressdlg or --disable-progressdlg was given.
7709if test "${enable_progressdlg+set}" = set; then
7710 enableval="$enable_progressdlg"
698dcdb6 7711
10f2d63a
VZ
7712 if test "$enableval" = yes; then
7713 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes'
7714 else
7715 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no'
7716 fi
698dcdb6 7717
10f2d63a 7718else
698dcdb6 7719
10f2d63a
VZ
7720 LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}`
7721 if test "x$LINE" != x ; then
7722 eval "DEFAULT_$LINE"
7723 else
7724 no_cache=1
7725 fi
7726
7727 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG
698dcdb6
VZ
7728
7729fi
10f2d63a
VZ
7730
7731
7732 eval "$ac_cv_use_progressdlg"
7733 if test "$no_cache" != 1; then
7734 echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp
7735 fi
7736
7737 if test "$wxUSE_PROGRESSDLG" = yes; then
698dcdb6 7738 echo "$ac_t""yes" 1>&6
10f2d63a 7739 else
698dcdb6 7740 echo "$ac_t""no" 1>&6
10f2d63a 7741 fi
698dcdb6 7742
10f2d63a 7743
b1f5d087 7744 echo $ac_n "checking for --enable-wizarddlg""... $ac_c" 1>&6
658974ae 7745echo "configure:7746: checking for --enable-wizarddlg" >&5
b1f5d087
VZ
7746 no_cache=0
7747 # Check whether --enable-wizarddlg or --disable-wizarddlg was given.
7748if test "${enable_wizarddlg+set}" = set; then
7749 enableval="$enable_wizarddlg"
7750
7751 if test "$enableval" = yes; then
7752 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=yes'
7753 else
7754 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=no'
7755 fi
7756
7757else
7758
7759 LINE=`grep "wxUSE_WIZARDDLG" ${wx_arg_cache_file}`
7760 if test "x$LINE" != x ; then
7761 eval "DEFAULT_$LINE"
7762 else
7763 no_cache=1
7764 fi
7765
7766 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG='$DEFAULT_wxUSE_WIZARDDLG
7767
7768fi
7769
7770
7771 eval "$ac_cv_use_wizarddlg"
7772 if test "$no_cache" != 1; then
7773 echo $ac_cv_use_wizarddlg >> ${wx_arg_cache_file}.tmp
7774 fi
7775
7776 if test "$wxUSE_WIZARDDLG" = yes; then
7777 echo "$ac_t""yes" 1>&6
7778 else
7779 echo "$ac_t""no" 1>&6
7780 fi
7781
7782
7783
7784
1e6feb95 7785 echo $ac_n "checking for --enable-menus""... $ac_c" 1>&6
658974ae 7786echo "configure:7787: checking for --enable-menus" >&5
1e6feb95
VZ
7787 no_cache=0
7788 # Check whether --enable-menus or --disable-menus was given.
7789if test "${enable_menus+set}" = set; then
7790 enableval="$enable_menus"
7791
7792 if test "$enableval" = yes; then
7793 ac_cv_use_menus='wxUSE_MENUS=yes'
7794 else
7795 ac_cv_use_menus='wxUSE_MENUS=no'
7796 fi
7797
7798else
7799
7800 LINE=`grep "wxUSE_MENUS" ${wx_arg_cache_file}`
7801 if test "x$LINE" != x ; then
7802 eval "DEFAULT_$LINE"
7803 else
7804 no_cache=1
7805 fi
7806
7807 ac_cv_use_menus='wxUSE_MENUS='$DEFAULT_wxUSE_MENUS
7808
7809fi
7810
7811
7812 eval "$ac_cv_use_menus"
7813 if test "$no_cache" != 1; then
7814 echo $ac_cv_use_menus >> ${wx_arg_cache_file}.tmp
7815 fi
7816
7817 if test "$wxUSE_MENUS" = yes; then
7818 echo "$ac_t""yes" 1>&6
7819 else
7820 echo "$ac_t""no" 1>&6
7821 fi
7822
7823
698dcdb6 7824 echo $ac_n "checking for --enable-miniframe""... $ac_c" 1>&6
658974ae 7825echo "configure:7826: checking for --enable-miniframe" >&5
10f2d63a
VZ
7826 no_cache=0
7827 # Check whether --enable-miniframe or --disable-miniframe was given.
7828if test "${enable_miniframe+set}" = set; then
7829 enableval="$enable_miniframe"
698dcdb6 7830
10f2d63a
VZ
7831 if test "$enableval" = yes; then
7832 ac_cv_use_miniframe='wxUSE_MINIFRAME=yes'
7833 else
7834 ac_cv_use_miniframe='wxUSE_MINIFRAME=no'
7835 fi
698dcdb6 7836
10f2d63a 7837else
698dcdb6 7838
10f2d63a
VZ
7839 LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}`
7840 if test "x$LINE" != x ; then
7841 eval "DEFAULT_$LINE"
7842 else
7843 no_cache=1
7844 fi
7845
7846 ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME
698dcdb6
VZ
7847
7848fi
10f2d63a
VZ
7849
7850
7851 eval "$ac_cv_use_miniframe"
7852 if test "$no_cache" != 1; then
7853 echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp
7854 fi
7855
7856 if test "$wxUSE_MINIFRAME" = yes; then
698dcdb6 7857 echo "$ac_t""yes" 1>&6
10f2d63a 7858 else
698dcdb6 7859 echo "$ac_t""no" 1>&6
10f2d63a 7860 fi
698dcdb6 7861
10f2d63a 7862
698dcdb6 7863 echo $ac_n "checking for --enable-tooltips""... $ac_c" 1>&6
658974ae 7864echo "configure:7865: checking for --enable-tooltips" >&5
10f2d63a
VZ
7865 no_cache=0
7866 # Check whether --enable-tooltips or --disable-tooltips was given.
7867if test "${enable_tooltips+set}" = set; then
7868 enableval="$enable_tooltips"
698dcdb6 7869
10f2d63a
VZ
7870 if test "$enableval" = yes; then
7871 ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes'
7872 else
7873 ac_cv_use_tooltips='wxUSE_TOOLTIPS=no'
7874 fi
698dcdb6 7875
10f2d63a 7876else
698dcdb6 7877
10f2d63a
VZ
7878 LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}`
7879 if test "x$LINE" != x ; then
7880 eval "DEFAULT_$LINE"
7881 else
7882 no_cache=1
7883 fi
7884
7885 ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS
698dcdb6
VZ
7886
7887fi
10f2d63a
VZ
7888
7889
7890 eval "$ac_cv_use_tooltips"
7891 if test "$no_cache" != 1; then
7892 echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp
7893 fi
7894
7895 if test "$wxUSE_TOOLTIPS" = yes; then
698dcdb6 7896 echo "$ac_t""yes" 1>&6
10f2d63a 7897 else
698dcdb6 7898 echo "$ac_t""no" 1>&6
10f2d63a 7899 fi
698dcdb6 7900
10f2d63a 7901
698dcdb6 7902 echo $ac_n "checking for --enable-splines""... $ac_c" 1>&6
658974ae 7903echo "configure:7904: checking for --enable-splines" >&5
10f2d63a
VZ
7904 no_cache=0
7905 # Check whether --enable-splines or --disable-splines was given.
7906if test "${enable_splines+set}" = set; then
7907 enableval="$enable_splines"
698dcdb6 7908
10f2d63a
VZ
7909 if test "$enableval" = yes; then
7910 ac_cv_use_splines='wxUSE_SPLINES=yes'
7911 else
7912 ac_cv_use_splines='wxUSE_SPLINES=no'
7913 fi
698dcdb6 7914
10f2d63a 7915else
698dcdb6 7916
10f2d63a
VZ
7917 LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}`
7918 if test "x$LINE" != x ; then
7919 eval "DEFAULT_$LINE"
7920 else
7921 no_cache=1
7922 fi
7923
7924 ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES
698dcdb6
VZ
7925
7926fi
10f2d63a
VZ
7927
7928
7929 eval "$ac_cv_use_splines"
7930 if test "$no_cache" != 1; then
7931 echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp
7932 fi
7933
7934 if test "$wxUSE_SPLINES" = yes; then
698dcdb6 7935 echo "$ac_t""yes" 1>&6
10f2d63a 7936 else
698dcdb6 7937 echo "$ac_t""no" 1>&6
10f2d63a 7938 fi
698dcdb6 7939
10f2d63a 7940
698dcdb6 7941 echo $ac_n "checking for --enable-validators""... $ac_c" 1>&6
658974ae 7942echo "configure:7943: checking for --enable-validators" >&5
10f2d63a
VZ
7943 no_cache=0
7944 # Check whether --enable-validators or --disable-validators was given.
7945if test "${enable_validators+set}" = set; then
7946 enableval="$enable_validators"
698dcdb6 7947
10f2d63a
VZ
7948 if test "$enableval" = yes; then
7949 ac_cv_use_validators='wxUSE_VALIDATORS=yes'
7950 else
7951 ac_cv_use_validators='wxUSE_VALIDATORS=no'
7952 fi
698dcdb6 7953
10f2d63a 7954else
698dcdb6 7955
10f2d63a
VZ
7956 LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}`
7957 if test "x$LINE" != x ; then
7958 eval "DEFAULT_$LINE"
7959 else
7960 no_cache=1
7961 fi
7962
7963 ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS
698dcdb6
VZ
7964
7965fi
10f2d63a
VZ
7966
7967
7968 eval "$ac_cv_use_validators"
7969 if test "$no_cache" != 1; then
7970 echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp
7971 fi
7972
7973 if test "$wxUSE_VALIDATORS" = yes; then
698dcdb6 7974 echo "$ac_t""yes" 1>&6
10f2d63a 7975 else
698dcdb6 7976 echo "$ac_t""no" 1>&6
10f2d63a 7977 fi
698dcdb6 7978
10f2d63a 7979
698dcdb6 7980 echo $ac_n "checking for --enable-busyinfo""... $ac_c" 1>&6
658974ae 7981echo "configure:7982: checking for --enable-busyinfo" >&5
10f2d63a
VZ
7982 no_cache=0
7983 # Check whether --enable-busyinfo or --disable-busyinfo was given.
7984if test "${enable_busyinfo+set}" = set; then
7985 enableval="$enable_busyinfo"
698dcdb6 7986
10f2d63a
VZ
7987 if test "$enableval" = yes; then
7988 ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes'
7989 else
7990 ac_cv_use_busyinfo='wxUSE_BUSYINFO=no'
7991 fi
698dcdb6 7992
10f2d63a 7993else
698dcdb6 7994
10f2d63a
VZ
7995 LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}`
7996 if test "x$LINE" != x ; then
7997 eval "DEFAULT_$LINE"
7998 else
7999 no_cache=1
8000 fi
8001
8002 ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO
698dcdb6
VZ
8003
8004fi
10f2d63a
VZ
8005
8006
8007 eval "$ac_cv_use_busyinfo"
8008 if test "$no_cache" != 1; then
8009 echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp
8010 fi
8011
8012 if test "$wxUSE_BUSYINFO" = yes; then
698dcdb6 8013 echo "$ac_t""yes" 1>&6
10f2d63a 8014 else
698dcdb6 8015 echo "$ac_t""no" 1>&6
10f2d63a 8016 fi
698dcdb6 8017
10f2d63a 8018
698dcdb6 8019 echo $ac_n "checking for --enable-joystick""... $ac_c" 1>&6
658974ae 8020echo "configure:8021: checking for --enable-joystick" >&5
f6bcfd97
BP
8021 no_cache=0
8022 # Check whether --enable-joystick or --disable-joystick was given.
8023if test "${enable_joystick+set}" = set; then
8024 enableval="$enable_joystick"
698dcdb6 8025
f6bcfd97
BP
8026 if test "$enableval" = yes; then
8027 ac_cv_use_joystick='wxUSE_JOYSTICK=yes'
8028 else
8029 ac_cv_use_joystick='wxUSE_JOYSTICK=no'
8030 fi
698dcdb6 8031
f6bcfd97 8032else
698dcdb6 8033
f6bcfd97
BP
8034 LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}`
8035 if test "x$LINE" != x ; then
8036 eval "DEFAULT_$LINE"
8037 else
8038 no_cache=1
8039 fi
8040
8041 ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK
698dcdb6
VZ
8042
8043fi
f6bcfd97
BP
8044
8045
8046 eval "$ac_cv_use_joystick"
8047 if test "$no_cache" != 1; then
8048 echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp
8049 fi
8050
8051 if test "$wxUSE_JOYSTICK" = yes; then
698dcdb6 8052 echo "$ac_t""yes" 1>&6
f6bcfd97 8053 else
698dcdb6 8054 echo "$ac_t""no" 1>&6
f6bcfd97 8055 fi
698dcdb6
VZ
8056
8057
1e6feb95 8058 echo $ac_n "checking for --enable-metafile""... $ac_c" 1>&6
658974ae 8059echo "configure:8060: checking for --enable-metafile" >&5
1e6feb95
VZ
8060 no_cache=0
8061 # Check whether --enable-metafile or --disable-metafile was given.
8062if test "${enable_metafile+set}" = set; then
8063 enableval="$enable_metafile"
8064
8065 if test "$enableval" = yes; then
8066 ac_cv_use_metafile='wxUSE_METAFILE=yes'
8067 else
8068 ac_cv_use_metafile='wxUSE_METAFILE=no'
8069 fi
8070
8071else
8072
8073 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
8074 if test "x$LINE" != x ; then
8075 eval "DEFAULT_$LINE"
8076 else
8077 no_cache=1
8078 fi
8079
8080 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
8081
8082fi
8083
8084
8085 eval "$ac_cv_use_metafile"
8086 if test "$no_cache" != 1; then
8087 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
8088 fi
8089
8090 if test "$wxUSE_METAFILE" = yes; then
8091 echo "$ac_t""yes" 1>&6
8092 else
8093 echo "$ac_t""no" 1>&6
8094 fi
8095
8096
24fd6d87 8097 echo $ac_n "checking for --enable-dragimage""... $ac_c" 1>&6
658974ae 8098echo "configure:8099: checking for --enable-dragimage" >&5
24fd6d87
VZ
8099 no_cache=0
8100 # Check whether --enable-dragimage or --disable-dragimage was given.
8101if test "${enable_dragimage+set}" = set; then
8102 enableval="$enable_dragimage"
8103
8104 if test "$enableval" = yes; then
8105 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=yes'
8106 else
8107 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=no'
8108 fi
8109
8110else
8111
8112 LINE=`grep "wxUSE_DRAGIMAGE" ${wx_arg_cache_file}`
8113 if test "x$LINE" != x ; then
8114 eval "DEFAULT_$LINE"
8115 else
8116 no_cache=1
8117 fi
8118
8119 ac_cv_use_dragimage='wxUSE_DRAGIMAGE='$DEFAULT_wxUSE_DRAGIMAGE
8120
8121fi
8122
8123
8124 eval "$ac_cv_use_dragimage"
8125 if test "$no_cache" != 1; then
8126 echo $ac_cv_use_dragimage >> ${wx_arg_cache_file}.tmp
8127 fi
8128
8129 if test "$wxUSE_DRAGIMAGE" = yes; then
8130 echo "$ac_t""yes" 1>&6
8131 else
8132 echo "$ac_t""no" 1>&6
8133 fi
8134
8135
10f2d63a 8136
698dcdb6 8137
edae8572 8138 echo $ac_n "checking for --enable-palette""... $ac_c" 1>&6
658974ae 8139echo "configure:8140: checking for --enable-palette" >&5
edae8572
VZ
8140 no_cache=0
8141 # Check whether --enable-palette or --disable-palette was given.
8142if test "${enable_palette+set}" = set; then
8143 enableval="$enable_palette"
8144
8145 if test "$enableval" = yes; then
8146 ac_cv_use_palette='wxUSE_PALETTE=yes'
8147 else
8148 ac_cv_use_palette='wxUSE_PALETTE=no'
8149 fi
8150
8151else
8152
8153 LINE=`grep "wxUSE_PALETTE" ${wx_arg_cache_file}`
8154 if test "x$LINE" != x ; then
8155 eval "DEFAULT_$LINE"
8156 else
8157 no_cache=1
8158 fi
8159
8160 ac_cv_use_palette='wxUSE_PALETTE='$DEFAULT_wxUSE_PALETTE
8161
8162fi
8163
8164
8165 eval "$ac_cv_use_palette"
8166 if test "$no_cache" != 1; then
8167 echo $ac_cv_use_palette >> ${wx_arg_cache_file}.tmp
8168 fi
8169
8170 if test "$wxUSE_PALETTE" = yes; then
8171 echo "$ac_t""yes" 1>&6
8172 else
8173 echo "$ac_t""no" 1>&6
8174 fi
8175
8176
698dcdb6 8177 echo $ac_n "checking for --enable-image""... $ac_c" 1>&6
658974ae 8178echo "configure:8179: checking for --enable-image" >&5
0046ff7c
VS
8179 no_cache=0
8180 # Check whether --enable-image or --disable-image was given.
8181if test "${enable_image+set}" = set; then
8182 enableval="$enable_image"
698dcdb6 8183
0046ff7c
VS
8184 if test "$enableval" = yes; then
8185 ac_cv_use_image='wxUSE_IMAGE=yes'
8186 else
8187 ac_cv_use_image='wxUSE_IMAGE=no'
8188 fi
698dcdb6 8189
0046ff7c 8190else
698dcdb6 8191
0046ff7c
VS
8192 LINE=`grep "wxUSE_IMAGE" ${wx_arg_cache_file}`
8193 if test "x$LINE" != x ; then
8194 eval "DEFAULT_$LINE"
8195 else
8196 no_cache=1
8197 fi
8198
8199 ac_cv_use_image='wxUSE_IMAGE='$DEFAULT_wxUSE_IMAGE
698dcdb6
VZ
8200
8201fi
0046ff7c
VS
8202
8203
8204 eval "$ac_cv_use_image"
8205 if test "$no_cache" != 1; then
8206 echo $ac_cv_use_image >> ${wx_arg_cache_file}.tmp
8207 fi
8208
8209 if test "$wxUSE_IMAGE" = yes; then
698dcdb6 8210 echo "$ac_t""yes" 1>&6
0046ff7c 8211 else
698dcdb6 8212 echo "$ac_t""no" 1>&6
0046ff7c 8213 fi
698dcdb6 8214
0046ff7c 8215
698dcdb6 8216 echo $ac_n "checking for --enable-gif""... $ac_c" 1>&6
658974ae 8217echo "configure:8218: checking for --enable-gif" >&5
10f2d63a
VZ
8218 no_cache=0
8219 # Check whether --enable-gif or --disable-gif was given.
8220if test "${enable_gif+set}" = set; then
8221 enableval="$enable_gif"
698dcdb6 8222
10f2d63a
VZ
8223 if test "$enableval" = yes; then
8224 ac_cv_use_gif='wxUSE_GIF=yes'
8225 else
8226 ac_cv_use_gif='wxUSE_GIF=no'
8227 fi
698dcdb6 8228
10f2d63a 8229else
698dcdb6 8230
10f2d63a
VZ
8231 LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}`
8232 if test "x$LINE" != x ; then
8233 eval "DEFAULT_$LINE"
8234 else
8235 no_cache=1
8236 fi
8237
8238 ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF
698dcdb6
VZ
8239
8240fi
10f2d63a
VZ
8241
8242
8243 eval "$ac_cv_use_gif"
8244 if test "$no_cache" != 1; then
8245 echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp
8246 fi
8247
8248 if test "$wxUSE_GIF" = yes; then
698dcdb6 8249 echo "$ac_t""yes" 1>&6
10f2d63a 8250 else
698dcdb6 8251 echo "$ac_t""no" 1>&6
10f2d63a 8252 fi
698dcdb6 8253
10f2d63a 8254
698dcdb6 8255 echo $ac_n "checking for --enable-pcx""... $ac_c" 1>&6
658974ae 8256echo "configure:8257: checking for --enable-pcx" >&5
10f2d63a
VZ
8257 no_cache=0
8258 # Check whether --enable-pcx or --disable-pcx was given.
8259if test "${enable_pcx+set}" = set; then
8260 enableval="$enable_pcx"
698dcdb6 8261
10f2d63a
VZ
8262 if test "$enableval" = yes; then
8263 ac_cv_use_pcx='wxUSE_PCX=yes'
8264 else
8265 ac_cv_use_pcx='wxUSE_PCX=no'
8266 fi
698dcdb6 8267
10f2d63a 8268else
698dcdb6 8269
10f2d63a
VZ
8270 LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}`
8271 if test "x$LINE" != x ; then
8272 eval "DEFAULT_$LINE"
8273 else
8274 no_cache=1
8275 fi
8276
8277 ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX
698dcdb6
VZ
8278
8279fi
10f2d63a
VZ
8280
8281
8282 eval "$ac_cv_use_pcx"
8283 if test "$no_cache" != 1; then
8284 echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp
8285 fi
8286
8287 if test "$wxUSE_PCX" = yes; then
698dcdb6 8288 echo "$ac_t""yes" 1>&6
10f2d63a 8289 else
698dcdb6 8290 echo "$ac_t""no" 1>&6
10f2d63a 8291 fi
698dcdb6 8292
10f2d63a 8293
698dcdb6 8294 echo $ac_n "checking for --enable-pnm""... $ac_c" 1>&6
658974ae 8295echo "configure:8296: checking for --enable-pnm" >&5
10f2d63a
VZ
8296 no_cache=0
8297 # Check whether --enable-pnm or --disable-pnm was given.
8298if test "${enable_pnm+set}" = set; then
8299 enableval="$enable_pnm"
698dcdb6 8300
10f2d63a
VZ
8301 if test "$enableval" = yes; then
8302 ac_cv_use_pnm='wxUSE_PNM=yes'
8303 else
8304 ac_cv_use_pnm='wxUSE_PNM=no'
8305 fi
698dcdb6 8306
10f2d63a 8307else
698dcdb6 8308
10f2d63a
VZ
8309 LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}`
8310 if test "x$LINE" != x ; then
8311 eval "DEFAULT_$LINE"
8312 else
8313 no_cache=1
8314 fi
8315
8316 ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM
698dcdb6
VZ
8317
8318fi
10f2d63a
VZ
8319
8320
8321 eval "$ac_cv_use_pnm"
8322 if test "$no_cache" != 1; then
8323 echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp
8324 fi
8325
8326 if test "$wxUSE_PNM" = yes; then
698dcdb6 8327 echo "$ac_t""yes" 1>&6
10f2d63a 8328 else
698dcdb6 8329 echo "$ac_t""no" 1>&6
10f2d63a 8330 fi
698dcdb6 8331
10f2d63a 8332
69d27ff7 8333 echo $ac_n "checking for --enable-xpm""... $ac_c" 1>&6
658974ae 8334echo "configure:8335: checking for --enable-xpm" >&5
0046ff7c 8335 no_cache=0
69d27ff7
MB
8336 # Check whether --enable-xpm or --disable-xpm was given.
8337if test "${enable_xpm+set}" = set; then
8338 enableval="$enable_xpm"
698dcdb6 8339
0046ff7c 8340 if test "$enableval" = yes; then
69d27ff7 8341 ac_cv_use_xpm='wxUSE_XPM=yes'
0046ff7c 8342 else
69d27ff7 8343 ac_cv_use_xpm='wxUSE_XPM=no'
0046ff7c 8344 fi
698dcdb6 8345
0046ff7c 8346else
698dcdb6 8347
0046ff7c
VS
8348 LINE=`grep "wxUSE_XPM" ${wx_arg_cache_file}`
8349 if test "x$LINE" != x ; then
8350 eval "DEFAULT_$LINE"
8351 else
8352 no_cache=1
8353 fi
8354
69d27ff7 8355 ac_cv_use_xpm='wxUSE_XPM='$DEFAULT_wxUSE_XPM
698dcdb6
VZ
8356
8357fi
0046ff7c
VS
8358
8359
69d27ff7 8360 eval "$ac_cv_use_xpm"
0046ff7c 8361 if test "$no_cache" != 1; then
69d27ff7 8362 echo $ac_cv_use_xpm >> ${wx_arg_cache_file}.tmp
0046ff7c
VS
8363 fi
8364
8365 if test "$wxUSE_XPM" = yes; then
698dcdb6 8366 echo "$ac_t""yes" 1>&6
0046ff7c 8367 else
698dcdb6 8368 echo "$ac_t""no" 1>&6
0046ff7c 8369 fi
698dcdb6 8370
0046ff7c 8371
c7206e64
VS
8372 echo $ac_n "checking for --enable-ico_cur""... $ac_c" 1>&6
8373echo "configure:8374: checking for --enable-ico_cur" >&5
658974ae 8374 no_cache=0
c7206e64
VS
8375 # Check whether --enable-ico_cur or --disable-ico_cur was given.
8376if test "${enable_ico_cur+set}" = set; then
8377 enableval="$enable_ico_cur"
658974ae
VS
8378
8379 if test "$enableval" = yes; then
c7206e64 8380 ac_cv_use_ico_cur='wxUSE_ICO_CUR=yes'
658974ae 8381 else
c7206e64 8382 ac_cv_use_ico_cur='wxUSE_ICO_CUR=no'
658974ae
VS
8383 fi
8384
8385else
8386
8387 LINE=`grep "wxUSE_ICO_CUR" ${wx_arg_cache_file}`
8388 if test "x$LINE" != x ; then
8389 eval "DEFAULT_$LINE"
8390 else
8391 no_cache=1
8392 fi
8393
c7206e64 8394 ac_cv_use_ico_cur='wxUSE_ICO_CUR='$DEFAULT_wxUSE_ICO_CUR
658974ae
VS
8395
8396fi
8397
8398
c7206e64 8399 eval "$ac_cv_use_ico_cur"
658974ae 8400 if test "$no_cache" != 1; then
c7206e64 8401 echo $ac_cv_use_ico_cur >> ${wx_arg_cache_file}.tmp
658974ae
VS
8402 fi
8403
8404 if test "$wxUSE_ICO_CUR" = yes; then
8405 echo "$ac_t""yes" 1>&6
8406 else
8407 echo "$ac_t""no" 1>&6
8408 fi
8409
8410
b12915c1
VZ
8411fi
8412
698dcdb6 8413
10f2d63a
VZ
8414 echo "saving argument cache $wx_arg_cache_file"
8415 mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file}
698dcdb6 8416
10f2d63a 8417
698dcdb6
VZ
8418
8419echo $ac_n "checking for toolkit""... $ac_c" 1>&6
658974ae 8420echo "configure:8421: checking for toolkit" >&5
10f2d63a
VZ
8421
8422if test "$wxUSE_GUI" = "yes"; then
8423
3a922bb4
RL
8424 if test "$USE_BEOS" = 1; then
8425 { echo "configure: error: BeOS GUI is not supported yet, use --disable-gui" 1>&2; exit 1; }
8426 fi
b12915c1 8427
3a922bb4
RL
8428 if test "$TOOLKIT_GIVEN" = 1; then
8429 for toolkit in `echo $ALL_TOOLKITS`; do
8430 var=wxUSE_$toolkit
8431 eval "value=\$${var}"
8432 eval "$var=`echo \$value | sed -e "s/yes/1/" -e "s/no/0/"`"
8433 done
10f2d63a 8434 else
3a922bb4
RL
8435 for toolkit in `echo $ALL_TOOLKITS`; do
8436 if test "$has_toolkit_in_cache" != 1; then
8437 var=DEFAULT_DEFAULT_wxUSE_$toolkit
8438 else
8439 var=DEFAULT_wxUSE_$toolkit
8440 fi
8441 eval "wxUSE_$toolkit=\$${var}"
8442 done
10f2d63a 8443 fi
10f2d63a 8444
3a922bb4 8445 NUM_TOOLKITS=`expr ${wxUSE_GTK:-0} + ${wxUSE_MOTIF:-0} + ${wxUSE_MAC:-0} \
1725144d 8446 + ${wxUSE_WINE:-0} + ${wxUSE_MSW:-0} + ${wxUSE_MGL:-0} + ${wxUSE_MICROWIN:-0}`
10f2d63a 8447
3a922bb4 8448 case "${host}" in
6fa882bd 8449 *-pc-os2_emx | *-pc-os2-emx )
3a922bb4
RL
8450 # PATH_IFS is autodetected by OS/2's configure (usually ';')
8451 NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}`
8452 LEX_STEM="lexyy"
8453 ;;
8454 *)
8455 PATH_IFS=':'
8456 LEX_STEM="lex.yy"
8457 ;;
8458 esac
10f2d63a 8459
3a922bb4
RL
8460 case "$NUM_TOOLKITS" in
8461 1)
8462 ;;
8463 0)
8464 { echo "configure: error: Please specify a toolkit - cannot determine the default for ${host}" 1>&2; exit 1; }
8465 ;;
8466 *)
8467 { echo "configure: error: Please specify at most one toolkit (may be some are cached?)" 1>&2; exit 1; }
8468 esac
10f2d63a 8469
3a922bb4
RL
8470 for toolkit in `echo $ALL_TOOLKITS`; do
8471 var=wxUSE_$toolkit
8472 eval "value=\$${var}"
8473 if test "x$value" != x; then
8474 cache_var=CACHE_$toolkit
8475 eval "cache=\$${cache_var}"
8476 if test "$cache" = 1; then
8477 echo "$var=$value" >> ${wx_arg_cache_file}
8478 fi
8479 if test "$value" = 1; then
8480 toolkit_echo=`echo $toolkit | tr [A-Z] [a-z]`
8481 echo "$ac_t""$toolkit_echo" 1>&6
8482 fi
8483 fi
8484 done
10f2d63a 8485else
cf27ef00 8486 PATH_IFS=':'
3a922bb4 8487 echo "$ac_t""base ($host_alias hosted) only" 1>&6
10f2d63a
VZ
8488fi
8489
698dcdb6
VZ
8490
8491cat > confcache <<\EOF
10f2d63a
VZ
8492# This file is a shell script that caches the results of configure
8493# tests run on this system so they can be shared between configure
698dcdb6
VZ
8494# scripts and configure runs. It is not useful on other systems.
8495# If it contains results you don't want to keep, you may remove or edit it.
10f2d63a 8496#
698dcdb6
VZ
8497# By default, configure uses ./config.cache as the cache file,
8498# creating it if it does not exist already. You can give configure
8499# the --cache-file=FILE option to use a different cache file; that is
8500# what configure does when it calls configure scripts in
8501# subdirectories, so they share the cache.
8502# Giving --cache-file=/dev/null disables caching, for debugging configure.
8503# config.status only pays attention to the cache file if you give it the
8504# --recheck option to rerun configure.
10f2d63a 8505#
698dcdb6 8506EOF
10f2d63a
VZ
8507# The following way of writing the cache mishandles newlines in values,
8508# but we know of no workaround that is simple, portable, and efficient.
8509# So, don't put newlines in cache variables' values.
8510# Ultrix sh set writes to stderr and can't be redirected directly,
8511# and sets the high bit in the cache file unless we assign to the vars.
698dcdb6
VZ
8512(set) 2>&1 |
8513 case `(ac_space=' '; set | grep ac_space) 2>&1` in
8514 *ac_space=\ *)
8515 # `set' does not quote correctly, so add quotes (double-quote substitution
8516 # turns \\\\ into \\, and sed turns \\ into \).
8517 sed -n \
8518 -e "s/'/'\\\\''/g" \
8519 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
8520 ;;
8521 *)
8522 # `set' quotes correctly as required by POSIX, so do not add quotes.
8523 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
8524 ;;
8525 esac >> confcache
8526if cmp -s $cache_file confcache; then
8527 :
8528else
10f2d63a 8529 if test -w $cache_file; then
698dcdb6
VZ
8530 echo "updating cache $cache_file"
8531 cat confcache > $cache_file
10f2d63a
VZ
8532 else
8533 echo "not updating unwritable cache $cache_file"
8534 fi
8535fi
8536rm -f confcache
8537
698dcdb6 8538
e59890c3 8539if test "$build" != "$host" ; then
f9bc1684 8540 if test "$USE_WIN32" = 1 -o "$USE_DOS" = 1 ; then
3a922bb4
RL
8541 CC=$host_alias-gcc
8542 CXX=$host_alias-c++
8543 AR=$host_alias-ar
8544 RANLIB=$host_alias-ranlib
8545 DLLTOOL=$host_alias-dlltool
8546 RESCOMP=$host_alias-windres
8547 LD=$host_alias-ld
8548 NM=$host_alias-nm
8549 STRIP=$host_alias-strip
8550 else
8551 { echo "configure: error: $build_alias -> $host_alias cross compilation not supported yet." 1>&2; exit 1; }
8552 fi
10f2d63a
VZ
8553fi
8554
698dcdb6 8555# Extract the first word of "gcc", so it can be a program name with args.
1e487827 8556set dummy gcc; ac_word=$2
698dcdb6 8557echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
658974ae 8558echo "configure:8559: checking for $ac_word" >&5
698dcdb6
VZ
8559if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
8560 echo $ac_n "(cached) $ac_c" 1>&6
6232543b
VS
8561else
8562 if test -n "$CC"; then
8563 ac_cv_prog_CC="$CC" # Let the user override the test.
10f2d63a 8564else
698dcdb6
VZ
8565 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8566 ac_dummy="$PATH"
8567 for ac_dir in $ac_dummy; do
8568 test -z "$ac_dir" && ac_dir=.
8569 if test -f $ac_dir/$ac_word; then
8570 ac_cv_prog_CC="gcc"
8571 break
8572 fi
8573 done
8574 IFS="$ac_save_ifs"
10f2d63a 8575fi
6232543b 8576fi
698dcdb6 8577CC="$ac_cv_prog_CC"
6232543b 8578if test -n "$CC"; then
698dcdb6 8579 echo "$ac_t""$CC" 1>&6
1e487827 8580else
698dcdb6 8581 echo "$ac_t""no" 1>&6
1e487827 8582fi
6232543b 8583
1e487827
VS
8584if test -z "$CC"; then
8585 # Extract the first word of "cc", so it can be a program name with args.
8586set dummy cc; ac_word=$2
698dcdb6 8587echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
658974ae 8588echo "configure:8589: checking for $ac_word" >&5
698dcdb6
VZ
8589if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
8590 echo $ac_n "(cached) $ac_c" 1>&6
1e487827
VS
8591else
8592 if test -n "$CC"; then
8593 ac_cv_prog_CC="$CC" # Let the user override the test.
8594else
698dcdb6 8595 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1e487827 8596 ac_prog_rejected=no
698dcdb6
VZ
8597 ac_dummy="$PATH"
8598 for ac_dir in $ac_dummy; do
8599 test -z "$ac_dir" && ac_dir=.
8600 if test -f $ac_dir/$ac_word; then
8601 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
8602 ac_prog_rejected=yes
8603 continue
8604 fi
8605 ac_cv_prog_CC="cc"
8606 break
8607 fi
8608 done
8609 IFS="$ac_save_ifs"
1e487827
VS
8610if test $ac_prog_rejected = yes; then
8611 # We found a bogon in the path, so make sure we never use it.
8612 set dummy $ac_cv_prog_CC
8613 shift
698dcdb6 8614 if test $# -gt 0; then
1e487827
VS
8615 # We chose a different compiler from the bogus one.
8616 # However, it has the same basename, so the bogon will be chosen
8617 # first if we set CC to just the basename; use the full file name.
8618 shift
698dcdb6 8619 set dummy "$ac_dir/$ac_word" "$@"
1e487827
VS
8620 shift
8621 ac_cv_prog_CC="$@"
703e0a69 8622 fi
1e487827
VS
8623fi
8624fi
8625fi
698dcdb6 8626CC="$ac_cv_prog_CC"
1e487827 8627if test -n "$CC"; then
698dcdb6 8628 echo "$ac_t""$CC" 1>&6
703e0a69 8629else
698dcdb6 8630 echo "$ac_t""no" 1>&6
703e0a69 8631fi
1e487827 8632
698dcdb6
VZ
8633 if test -z "$CC"; then
8634 case "`uname -s`" in
8635 *win32* | *WIN32*)
8636 # Extract the first word of "cl", so it can be a program name with args.
8637set dummy cl; ac_word=$2
8638echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
658974ae 8639echo "configure:8640: checking for $ac_word" >&5
698dcdb6
VZ
8640if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
8641 echo $ac_n "(cached) $ac_c" 1>&6
1e487827
VS
8642else
8643 if test -n "$CC"; then
8644 ac_cv_prog_CC="$CC" # Let the user override the test.
703e0a69 8645else
698dcdb6
VZ
8646 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8647 ac_dummy="$PATH"
8648 for ac_dir in $ac_dummy; do
8649 test -z "$ac_dir" && ac_dir=.
8650 if test -f $ac_dir/$ac_word; then
8651 ac_cv_prog_CC="cl"
8652 break
8653 fi
8654 done
8655 IFS="$ac_save_ifs"
703e0a69 8656fi
1e487827 8657fi
698dcdb6 8658CC="$ac_cv_prog_CC"
1e487827 8659if test -n "$CC"; then
698dcdb6 8660 echo "$ac_t""$CC" 1>&6
1e487827 8661else
698dcdb6 8662 echo "$ac_t""no" 1>&6
1e487827 8663fi
698dcdb6
VZ
8664 ;;
8665 esac
8666 fi
8667 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1e487827
VS
8668fi
8669
698dcdb6 8670echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
658974ae 8671echo "configure:8672: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1e487827 8672
698dcdb6
VZ
8673ac_ext=c
8674# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8675ac_cpp='$CPP $CPPFLAGS'
8676ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8677ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8678cross_compiling=$ac_cv_prog_cc_cross
6232543b 8679
698dcdb6 8680cat > conftest.$ac_ext << EOF
1e487827 8681
658974ae 8682#line 8683 "configure"
1e487827
VS
8683#include "confdefs.h"
8684
698dcdb6
VZ
8685main(){return(0);}
8686EOF
658974ae 8687if { (eval echo configure:8688: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
8688 ac_cv_prog_cc_works=yes
8689 # If we can't run a trivial program, we are probably using a cross compiler.
8690 if (./conftest; exit) 2>/dev/null; then
8691 ac_cv_prog_cc_cross=no
8692 else
8693 ac_cv_prog_cc_cross=yes
8694 fi
8695else
8696 echo "configure: failed program was:" >&5
8697 cat conftest.$ac_ext >&5
8698 ac_cv_prog_cc_works=no
8699fi
8700rm -fr conftest*
8701ac_ext=c
8702# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8703ac_cpp='$CPP $CPPFLAGS'
8704ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8705ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8706cross_compiling=$ac_cv_prog_cc_cross
8707
8708echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
8709if test $ac_cv_prog_cc_works = no; then
8710 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
8711fi
8712echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
658974ae 8713echo "configure:8714: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
698dcdb6
VZ
8714echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
8715cross_compiling=$ac_cv_prog_cc_cross
8716
8717echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
658974ae 8718echo "configure:8719: checking whether we are using GNU C" >&5
698dcdb6
VZ
8719if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
8720 echo $ac_n "(cached) $ac_c" 1>&6
8721else
8722 cat > conftest.c <<EOF
8723#ifdef __GNUC__
8724 yes;
1e487827 8725#endif
698dcdb6 8726EOF
658974ae 8727if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:8728: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
698dcdb6
VZ
8728 ac_cv_prog_gcc=yes
8729else
8730 ac_cv_prog_gcc=no
8731fi
8732fi
1e487827 8733
698dcdb6 8734echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1e487827 8735
698dcdb6
VZ
8736if test $ac_cv_prog_gcc = yes; then
8737 GCC=yes
8738else
8739 GCC=
8740fi
1e487827 8741
698dcdb6
VZ
8742ac_test_CFLAGS="${CFLAGS+set}"
8743ac_save_CFLAGS="$CFLAGS"
8744CFLAGS=
8745echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
658974ae 8746echo "configure:8747: checking whether ${CC-cc} accepts -g" >&5
698dcdb6
VZ
8747if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
8748 echo $ac_n "(cached) $ac_c" 1>&6
8749else
8750 echo 'void f(){}' > conftest.c
8751if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
10f2d63a
VZ
8752 ac_cv_prog_cc_g=yes
8753else
698dcdb6 8754 ac_cv_prog_cc_g=no
10f2d63a 8755fi
698dcdb6
VZ
8756rm -f conftest*
8757
10f2d63a 8758fi
698dcdb6
VZ
8759
8760echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
10f2d63a 8761if test "$ac_test_CFLAGS" = set; then
698dcdb6 8762 CFLAGS="$ac_save_CFLAGS"
10f2d63a
VZ
8763elif test $ac_cv_prog_cc_g = yes; then
8764 if test "$GCC" = yes; then
8765 CFLAGS="-g -O2"
8766 else
8767 CFLAGS="-g"
8768 fi
8769else
8770 if test "$GCC" = yes; then
8771 CFLAGS="-O2"
8772 else
8773 CFLAGS=
8774 fi
8775fi
8776
8777
8778CFLAGS=`echo "$CFLAGS" | sed 's/-g//g'`
8779
698dcdb6 8780echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
658974ae 8781echo "configure:8782: checking how to run the C preprocessor" >&5
10f2d63a
VZ
8782# On Suns, sometimes $CPP names a directory.
8783if test -n "$CPP" && test -d "$CPP"; then
8784 CPP=
8785fi
8786if test -z "$CPP"; then
698dcdb6
VZ
8787if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
8788 echo $ac_n "(cached) $ac_c" 1>&6
8789else
8790 # This must be in double quotes, not single quotes, because CPP may get
8791 # substituted into the Makefile and "${CC-cc}" will confuse make.
8792 CPP="${CC-cc} -E"
10f2d63a 8793 # On the NeXT, cc -E runs the code through the compiler's parser,
698dcdb6
VZ
8794 # not just through cpp.
8795 cat > conftest.$ac_ext <<EOF
658974ae 8796#line 8797 "configure"
10f2d63a
VZ
8797#include "confdefs.h"
8798#include <assert.h>
698dcdb6
VZ
8799Syntax Error
8800EOF
8801ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
658974ae 8802{ (eval echo configure:8803: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
8803ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8804if test -z "$ac_err"; then
10f2d63a
VZ
8805 :
8806else
698dcdb6
VZ
8807 echo "$ac_err" >&5
8808 echo "configure: failed program was:" >&5
10f2d63a 8809 cat conftest.$ac_ext >&5
698dcdb6
VZ
8810 rm -rf conftest*
8811 CPP="${CC-cc} -E -traditional-cpp"
8812 cat > conftest.$ac_ext <<EOF
658974ae 8813#line 8814 "configure"
10f2d63a 8814#include "confdefs.h"
698dcdb6
VZ
8815#include <assert.h>
8816Syntax Error
8817EOF
8818ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
658974ae 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
8822 :
10f2d63a 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} -nologo -E"
8829 cat > conftest.$ac_ext <<EOF
658974ae 8830#line 8831 "configure"
10f2d63a
VZ
8831#include "confdefs.h"
8832#include <assert.h>
698dcdb6
VZ
8833Syntax Error
8834EOF
8835ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
658974ae 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
10f2d63a
VZ
8839 :
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=/lib/cpp
10f2d63a 8846fi
698dcdb6 8847rm -f conftest*
10f2d63a 8848fi
698dcdb6 8849rm -f conftest*
703e0a69 8850fi
698dcdb6
VZ
8851rm -f conftest*
8852 ac_cv_prog_CPP="$CPP"
8853fi
8854 CPP="$ac_cv_prog_CPP"
10f2d63a 8855else
698dcdb6 8856 ac_cv_prog_CPP="$CPP"
10f2d63a 8857fi
698dcdb6 8858echo "$ac_t""$CPP" 1>&6
10f2d63a 8859
698dcdb6
VZ
8860if test $ac_cv_prog_gcc = yes; then
8861 echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
658974ae 8862echo "configure:8863: checking whether ${CC-cc} needs -traditional" >&5
698dcdb6
VZ
8863if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
8864 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a
VZ
8865else
8866 ac_pattern="Autoconf.*'x'"
698dcdb6 8867 cat > conftest.$ac_ext <<EOF
658974ae 8868#line 8869 "configure"
10f2d63a
VZ
8869#include "confdefs.h"
8870#include <sgtty.h>
8871Autoconf TIOCGETP
698dcdb6 8872EOF
10f2d63a
VZ
8873if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8874 egrep "$ac_pattern" >/dev/null 2>&1; then
698dcdb6 8875 rm -rf conftest*
10f2d63a
VZ
8876 ac_cv_prog_gcc_traditional=yes
8877else
698dcdb6 8878 rm -rf conftest*
10f2d63a
VZ
8879 ac_cv_prog_gcc_traditional=no
8880fi
8881rm -f conftest*
8882
698dcdb6 8883
10f2d63a 8884 if test $ac_cv_prog_gcc_traditional = no; then
698dcdb6 8885 cat > conftest.$ac_ext <<EOF
658974ae 8886#line 8887 "configure"
10f2d63a
VZ
8887#include "confdefs.h"
8888#include <termio.h>
8889Autoconf TCGETA
698dcdb6 8890EOF
10f2d63a
VZ
8891if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8892 egrep "$ac_pattern" >/dev/null 2>&1; then
698dcdb6 8893 rm -rf conftest*
10f2d63a
VZ
8894 ac_cv_prog_gcc_traditional=yes
8895fi
8896rm -f conftest*
8897
8898 fi
8899fi
698dcdb6
VZ
8900
8901echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6
10f2d63a
VZ
8902 if test $ac_cv_prog_gcc_traditional = yes; then
8903 CC="$CC -traditional"
8904 fi
8905fi
8906
703e0a69 8907
698dcdb6
VZ
8908
8909ac_ext=C
8910# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1e487827 8911ac_cpp='$CXXCPP $CPPFLAGS'
698dcdb6
VZ
8912ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8913ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8914cross_compiling=$ac_cv_prog_cxx_cross
8915
8916
8917for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
8918do
8919# Extract the first word of "$ac_prog", so it can be a program name with args.
8920set dummy $ac_prog; ac_word=$2
8921echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
658974ae 8922echo "configure:8923: checking for $ac_word" >&5
698dcdb6
VZ
8923if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
8924 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a
VZ
8925else
8926 if test -n "$CXX"; then
8927 ac_cv_prog_CXX="$CXX" # Let the user override the test.
8928else
698dcdb6
VZ
8929 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8930 ac_dummy="$PATH"
8931 for ac_dir in $ac_dummy; do
8932 test -z "$ac_dir" && ac_dir=.
8933 if test -f $ac_dir/$ac_word; then
8934 ac_cv_prog_CXX="$ac_prog"
8935 break
8936 fi
8937 done
8938 IFS="$ac_save_ifs"
10f2d63a
VZ
8939fi
8940fi
698dcdb6 8941CXX="$ac_cv_prog_CXX"
10f2d63a 8942if test -n "$CXX"; then
698dcdb6 8943 echo "$ac_t""$CXX" 1>&6
10f2d63a 8944else
698dcdb6 8945 echo "$ac_t""no" 1>&6
10f2d63a
VZ
8946fi
8947
698dcdb6 8948test -n "$CXX" && break
10f2d63a 8949done
698dcdb6 8950test -n "$CXX" || CXX="gcc"
10f2d63a
VZ
8951
8952
698dcdb6 8953echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
658974ae 8954echo "configure:8955: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
10f2d63a 8955
698dcdb6
VZ
8956ac_ext=C
8957# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8958ac_cpp='$CXXCPP $CPPFLAGS'
8959ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8960ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8961cross_compiling=$ac_cv_prog_cxx_cross
703e0a69 8962
698dcdb6
VZ
8963cat > conftest.$ac_ext << EOF
8964
658974ae 8965#line 8966 "configure"
10f2d63a
VZ
8966#include "confdefs.h"
8967
698dcdb6
VZ
8968int main(){return(0);}
8969EOF
658974ae 8970if { (eval echo configure:8971: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
8971 ac_cv_prog_cxx_works=yes
8972 # If we can't run a trivial program, we are probably using a cross compiler.
8973 if (./conftest; exit) 2>/dev/null; then
8974 ac_cv_prog_cxx_cross=no
8975 else
8976 ac_cv_prog_cxx_cross=yes
8977 fi
8978else
8979 echo "configure: failed program was:" >&5
8980 cat conftest.$ac_ext >&5
8981 ac_cv_prog_cxx_works=no
8982fi
8983rm -fr conftest*
8984ac_ext=C
8985# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8986ac_cpp='$CXXCPP $CPPFLAGS'
8987ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8988ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8989cross_compiling=$ac_cv_prog_cxx_cross
8990
8991echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
8992if test $ac_cv_prog_cxx_works = no; then
8993 { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
8994fi
8995echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
658974ae 8996echo "configure:8997: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
698dcdb6
VZ
8997echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
8998cross_compiling=$ac_cv_prog_cxx_cross
8999
9000echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
658974ae 9001echo "configure:9002: checking whether we are using GNU C++" >&5
698dcdb6
VZ
9002if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
9003 echo $ac_n "(cached) $ac_c" 1>&6
9004else
9005 cat > conftest.C <<EOF
9006#ifdef __GNUC__
9007 yes;
10f2d63a 9008#endif
698dcdb6 9009EOF
658974ae 9010if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:9011: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
698dcdb6
VZ
9011 ac_cv_prog_gxx=yes
9012else
9013 ac_cv_prog_gxx=no
9014fi
9015fi
10f2d63a 9016
698dcdb6 9017echo "$ac_t""$ac_cv_prog_gxx" 1>&6
10f2d63a 9018
698dcdb6
VZ
9019if test $ac_cv_prog_gxx = yes; then
9020 GXX=yes
9021else
9022 GXX=
9023fi
10f2d63a 9024
698dcdb6
VZ
9025ac_test_CXXFLAGS="${CXXFLAGS+set}"
9026ac_save_CXXFLAGS="$CXXFLAGS"
9027CXXFLAGS=
9028echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
658974ae 9029echo "configure:9030: checking whether ${CXX-g++} accepts -g" >&5
698dcdb6
VZ
9030if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
9031 echo $ac_n "(cached) $ac_c" 1>&6
9032else
9033 echo 'void f(){}' > conftest.cc
9034if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
10f2d63a
VZ
9035 ac_cv_prog_cxx_g=yes
9036else
698dcdb6 9037 ac_cv_prog_cxx_g=no
10f2d63a 9038fi
698dcdb6
VZ
9039rm -f conftest*
9040
10f2d63a 9041fi
698dcdb6
VZ
9042
9043echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
10f2d63a 9044if test "$ac_test_CXXFLAGS" = set; then
698dcdb6 9045 CXXFLAGS="$ac_save_CXXFLAGS"
10f2d63a
VZ
9046elif test $ac_cv_prog_cxx_g = yes; then
9047 if test "$GXX" = yes; then
9048 CXXFLAGS="-g -O2"
9049 else
9050 CXXFLAGS="-g"
9051 fi
9052else
9053 if test "$GXX" = yes; then
9054 CXXFLAGS="-O2"
9055 else
9056 CXXFLAGS=
9057 fi
9058fi
9059
9060
10f2d63a
VZ
9061CXXFLAGS=`echo "$CXXFLAGS" | sed 's/-g//g'`
9062
9063ac_ext=c
698dcdb6 9064# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10f2d63a 9065ac_cpp='$CPP $CPPFLAGS'
698dcdb6
VZ
9066ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9067ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9068cross_compiling=$ac_cv_prog_cc_cross
9069
9070
9071# Extract the first word of "ranlib", so it can be a program name with args.
9072set dummy ranlib; ac_word=$2
9073echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
658974ae 9074echo "configure:9075: checking for $ac_word" >&5
698dcdb6
VZ
9075if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
9076 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a
VZ
9077else
9078 if test -n "$RANLIB"; then
9079 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9080else
698dcdb6
VZ
9081 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9082 ac_dummy="$PATH"
9083 for ac_dir in $ac_dummy; do
9084 test -z "$ac_dir" && ac_dir=.
9085 if test -f $ac_dir/$ac_word; then
9086 ac_cv_prog_RANLIB="ranlib"
9087 break
9088 fi
9089 done
9090 IFS="$ac_save_ifs"
9091 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
10f2d63a
VZ
9092fi
9093fi
698dcdb6 9094RANLIB="$ac_cv_prog_RANLIB"
10f2d63a 9095if test -n "$RANLIB"; then
698dcdb6 9096 echo "$ac_t""$RANLIB" 1>&6
10f2d63a 9097else
698dcdb6 9098 echo "$ac_t""no" 1>&6
10f2d63a
VZ
9099fi
9100
9101
9102# Extract the first word of "ar", so it can be a program name with args.
9103set dummy ar; ac_word=$2
698dcdb6 9104echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
658974ae 9105echo "configure:9106: checking for $ac_word" >&5
698dcdb6
VZ
9106if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
9107 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a
VZ
9108else
9109 if test -n "$AR"; then
9110 ac_cv_prog_AR="$AR" # Let the user override the test.
9111else
698dcdb6
VZ
9112 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9113 ac_dummy="$PATH"
9114 for ac_dir in $ac_dummy; do
9115 test -z "$ac_dir" && ac_dir=.
9116 if test -f $ac_dir/$ac_word; then
9117 ac_cv_prog_AR="ar"
9118 break
9119 fi
9120 done
9121 IFS="$ac_save_ifs"
10f2d63a
VZ
9122 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
9123fi
9124fi
698dcdb6 9125AR="$ac_cv_prog_AR"
10f2d63a 9126if test -n "$AR"; then
698dcdb6 9127 echo "$ac_t""$AR" 1>&6
10f2d63a 9128else
698dcdb6 9129 echo "$ac_t""no" 1>&6
10f2d63a
VZ
9130fi
9131
698dcdb6 9132
6054113a 9133# Find a good install program. We prefer a C program (faster),
10f2d63a
VZ
9134# so one script is as good as another. But avoid the broken or
9135# incompatible versions:
9136# SysV /etc/install, /usr/sbin/install
9137# SunOS /usr/etc/install
9138# IRIX /sbin/install
9139# AIX /bin/install
9140# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
9141# AFS /usr/afsws/bin/install, which mishandles nonexistent args
9142# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
9143# ./install, which can be erroneously created by make from ./install.sh.
698dcdb6 9144echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
658974ae 9145echo "configure:9146: checking for a BSD compatible install" >&5
10f2d63a 9146if test -z "$INSTALL"; then
698dcdb6
VZ
9147if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
9148 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 9149else
698dcdb6 9150 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
10f2d63a
VZ
9151 for ac_dir in $PATH; do
9152 # Account for people who put trailing slashes in PATH elements.
698dcdb6
VZ
9153 case "$ac_dir/" in
9154 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
10f2d63a
VZ
9155 *)
9156 # OSF1 and SCO ODT 3.0 have their own names for install.
9157 # Don't use installbsd from OSF since it installs stuff as root
9158 # by default.
9159 for ac_prog in ginstall scoinst install; do
698dcdb6 9160 if test -f $ac_dir/$ac_prog; then
10f2d63a 9161 if test $ac_prog = install &&
698dcdb6 9162 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
10f2d63a
VZ
9163 # AIX install. It has an incompatible calling convention.
9164 :
9165 else
9166 ac_cv_path_install="$ac_dir/$ac_prog -c"
9167 break 2
9168 fi
9169 fi
9170 done
9171 ;;
9172 esac
9173 done
698dcdb6 9174 IFS="$ac_save_IFS"
10f2d63a
VZ
9175
9176fi
9177 if test "${ac_cv_path_install+set}" = set; then
698dcdb6 9178 INSTALL="$ac_cv_path_install"
10f2d63a
VZ
9179 else
9180 # As a last resort, use the slow shell script. We don't cache a
9181 # path for INSTALL within a source directory, because that will
9182 # break other packages using the cache if that directory is
9183 # removed, or if the path is relative.
698dcdb6 9184 INSTALL="$ac_install_sh"
10f2d63a
VZ
9185 fi
9186fi
698dcdb6 9187echo "$ac_t""$INSTALL" 1>&6
10f2d63a
VZ
9188
9189# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
9190# It thinks the first close brace ends the variable substitution.
9191test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
9192
698dcdb6 9193test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
10f2d63a
VZ
9194
9195test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
9196
6054113a
GD
9197case "${host}" in
9198
b5853384 9199 powerpc-*-darwin* )
eb99ae0b
GD
9200 INSTALL_PROGRAM="cp -fp"
9201 INSTALL_DATA="cp -fp"
6054113a
GD
9202 ;;
9203 *)
9204 ;;
d6853540 9205esac
698dcdb6 9206
10f2d63a
VZ
9207# Extract the first word of "strip", so it can be a program name with args.
9208set dummy strip; ac_word=$2
698dcdb6 9209echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
658974ae 9210echo "configure:9211: checking for $ac_word" >&5
698dcdb6
VZ
9211if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
9212 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a
VZ
9213else
9214 if test -n "$STRIP"; then
9215 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9216else
698dcdb6
VZ
9217 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9218 ac_dummy="$PATH"
9219 for ac_dir in $ac_dummy; do
9220 test -z "$ac_dir" && ac_dir=.
9221 if test -f $ac_dir/$ac_word; then
9222 ac_cv_prog_STRIP="strip"
9223 break
9224 fi
9225 done
9226 IFS="$ac_save_ifs"
10f2d63a
VZ
9227 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="true"
9228fi
9229fi
698dcdb6 9230STRIP="$ac_cv_prog_STRIP"
10f2d63a 9231if test -n "$STRIP"; then
698dcdb6 9232 echo "$ac_t""$STRIP" 1>&6
10f2d63a 9233else
698dcdb6 9234 echo "$ac_t""no" 1>&6
10f2d63a
VZ
9235fi
9236
698dcdb6
VZ
9237
9238echo $ac_n "checking make for VPATH support""... $ac_c" 1>&6
658974ae 9239echo "configure:9240: checking make for VPATH support" >&5
10f2d63a
VZ
9240cat - << EOF > confMake
9241check : file
9242 cp \$? \$@
9243 cp \$? final_file
9244EOF
9245
9246if test ! -d sub ; then
9247 mkdir sub
9248fi
9249echo dummy > sub/file
f6bcfd97 9250${MAKE-make} -f confMake VPATH=sub 2>&5 > /dev/null
10f2d63a
VZ
9251RESULT=$?
9252rm -f sub/file check final_file confMake
9253rmdir sub
9254if test "$RESULT" = 0; then
698dcdb6 9255 echo "$ac_t""yes" 1>&6
10f2d63a 9256else
698dcdb6
VZ
9257 echo "$ac_t""no" 1>&6
9258 { echo "configure: error:
1e487827
VS
9259You need a make-utility that is able to use the variable
9260VPATH correctly.
9261If your version of make does not support VPATH correctly,
9262please install GNU-make (possibly as gmake), and start
9263configure with the following command:
9264export MAKE=gmake; ./configure for sh-type shells
9265setenv MAKE gmake; ./configure for csh-type shells
9266Also please do remember to use gmake in this case every time
9267you are trying to compile.
698dcdb6 9268" 1>&2; exit 1; }
10f2d63a
VZ
9269fi
9270
9271for ac_prog in 'bison -y' byacc
9272do
698dcdb6 9273# Extract the first word of "$ac_prog", so it can be a program name with args.
10f2d63a 9274set dummy $ac_prog; ac_word=$2
698dcdb6 9275echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
658974ae 9276echo "configure:9277: checking for $ac_word" >&5
698dcdb6
VZ
9277if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
9278 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a
VZ
9279else
9280 if test -n "$YACC"; then
9281 ac_cv_prog_YACC="$YACC" # Let the user override the test.
9282else
698dcdb6
VZ
9283 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9284 ac_dummy="$PATH"
9285 for ac_dir in $ac_dummy; do
9286 test -z "$ac_dir" && ac_dir=.
9287 if test -f $ac_dir/$ac_word; then
9288 ac_cv_prog_YACC="$ac_prog"
9289 break
9290 fi
9291 done
9292 IFS="$ac_save_ifs"
10f2d63a
VZ
9293fi
9294fi
698dcdb6 9295YACC="$ac_cv_prog_YACC"
10f2d63a 9296if test -n "$YACC"; then
698dcdb6 9297 echo "$ac_t""$YACC" 1>&6
10f2d63a 9298else
698dcdb6 9299 echo "$ac_t""no" 1>&6
10f2d63a
VZ
9300fi
9301
698dcdb6 9302test -n "$YACC" && break
10f2d63a
VZ
9303done
9304test -n "$YACC" || YACC="yacc"
9305
698dcdb6
VZ
9306
9307# Extract the first word of "flex", so it can be a program name with args.
9308set dummy flex; ac_word=$2
9309echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
658974ae 9310echo "configure:9311: checking for $ac_word" >&5
698dcdb6
VZ
9311if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
9312 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a
VZ
9313else
9314 if test -n "$LEX"; then
9315 ac_cv_prog_LEX="$LEX" # Let the user override the test.
9316else
698dcdb6
VZ
9317 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9318 ac_dummy="$PATH"
9319 for ac_dir in $ac_dummy; do
9320 test -z "$ac_dir" && ac_dir=.
9321 if test -f $ac_dir/$ac_word; then
9322 ac_cv_prog_LEX="flex"
9323 break
9324 fi
9325 done
9326 IFS="$ac_save_ifs"
9327 test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex"
10f2d63a
VZ
9328fi
9329fi
698dcdb6 9330LEX="$ac_cv_prog_LEX"
10f2d63a 9331if test -n "$LEX"; then
698dcdb6 9332 echo "$ac_t""$LEX" 1>&6
10f2d63a 9333else
698dcdb6 9334 echo "$ac_t""no" 1>&6
10f2d63a
VZ
9335fi
9336
9337if test -z "$LEXLIB"
9338then
698dcdb6
VZ
9339 case "$LEX" in
9340 flex*) ac_lib=fl ;;
9341 *) ac_lib=l ;;
9342 esac
9343 echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
658974ae 9344echo "configure:9345: checking for yywrap in -l$ac_lib" >&5
698dcdb6
VZ
9345ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
9346if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9347 echo $ac_n "(cached) $ac_c" 1>&6
9348else
9349 ac_save_LIBS="$LIBS"
9350LIBS="-l$ac_lib $LIBS"
9351cat > conftest.$ac_ext <<EOF
658974ae 9352#line 9353 "configure"
10f2d63a
VZ
9353#include "confdefs.h"
9354/* Override any gcc2 internal prototype to avoid an error. */
9355/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
9356 builtin and then its argument prototype would still apply. */
9357char yywrap();
10f2d63a 9358
698dcdb6
VZ
9359int main() {
9360yywrap()
9361; return 0; }
9362EOF
658974ae 9363if { (eval echo configure:9364: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
9364 rm -rf conftest*
9365 eval "ac_cv_lib_$ac_lib_var=yes"
10f2d63a 9366else
698dcdb6
VZ
9367 echo "configure: failed program was:" >&5
9368 cat conftest.$ac_ext >&5
9369 rm -rf conftest*
9370 eval "ac_cv_lib_$ac_lib_var=no"
10f2d63a 9371fi
698dcdb6
VZ
9372rm -f conftest*
9373LIBS="$ac_save_LIBS"
9374
10f2d63a 9375fi
698dcdb6
VZ
9376if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9377 echo "$ac_t""yes" 1>&6
9378 LEXLIB="-l$ac_lib"
9379else
9380 echo "$ac_t""no" 1>&6
10f2d63a
VZ
9381fi
9382
9383fi
9384
9385
698dcdb6 9386echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
658974ae 9387echo "configure:9388: checking whether ln -s works" >&5
698dcdb6
VZ
9388if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
9389 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 9390else
698dcdb6
VZ
9391 rm -f conftestdata
9392if ln -s X conftestdata 2>/dev/null
9393then
9394 rm -f conftestdata
9395 ac_cv_prog_LN_S="ln -s"
10f2d63a 9396else
698dcdb6 9397 ac_cv_prog_LN_S=ln
10f2d63a
VZ
9398fi
9399fi
698dcdb6
VZ
9400LN_S="$ac_cv_prog_LN_S"
9401if test "$ac_cv_prog_LN_S" = "ln -s"; then
9402 echo "$ac_t""yes" 1>&6
10f2d63a 9403else
698dcdb6 9404 echo "$ac_t""no" 1>&6
10f2d63a
VZ
9405fi
9406
9407
9408
9409SEARCH_INCLUDE="\
9410 /usr/local/include \
9411 \
9412 /usr/Motif-1.2/include \
9413 /usr/Motif-2.1/include \
9414 \
9415 /usr/include/Motif1.2 \
9416 /opt/xpm/include/X11 \
9417 /opt/GBxpm/include/ \
9418 /opt/GBxpm/X11/include/ \
9419 \
9420 /usr/Motif1.2/include \
9421 /usr/dt/include \
afc31813
VZ
9422 /usr/openwin/include \
9423 \
10f2d63a
VZ
9424 /usr/include/Xm \
9425 \
9426 /usr/X11R6/include \
afc31813 9427 /usr/X11R6.4/include \
10f2d63a
VZ
9428 /usr/X11R5/include \
9429 /usr/X11R4/include \
9430 \
10f2d63a
VZ
9431 /usr/include/X11R6 \
9432 /usr/include/X11R5 \
9433 /usr/include/X11R4 \
9434 \
9435 /usr/local/X11R6/include \
9436 /usr/local/X11R5/include \
9437 /usr/local/X11R4/include \
9438 \
9439 /usr/local/include/X11R6 \
9440 /usr/local/include/X11R5 \
9441 /usr/local/include/X11R4 \
9442 \
9443 /usr/X11/include \
9444 /usr/include/X11 \
9445 /usr/local/X11/include \
9446 /usr/local/include/X11 \
9447 \
9448 /usr/X386/include \
9449 /usr/x386/include \
9450 /usr/XFree86/include/X11 \
9451 \
cf27ef00 9452 X:/XFree86/include \
ec14dd32
VZ
9453 X:/XFree86/include/X11 \
9454 \
10f2d63a
VZ
9455 /usr/include/gtk \
9456 /usr/local/include/gtk \
9457 /usr/include/glib \
9458 /usr/local/include/glib \
9459 \
9460 /usr/include/qt \
9461 /usr/local/include/qt \
9462 \
9463 /usr/include/windows \
9464 /usr/include/wine \
9465 /usr/local/include/wine \
9466 \
9467 /usr/unsupported/include \
9468 /usr/athena/include \
9469 /usr/local/x11r5/include \
9470 /usr/lpp/Xamples/include \
9471 \
10f2d63a 9472 /usr/openwin/share/include \
928b5c08
VZ
9473 \
9474 /usr/include"
10f2d63a
VZ
9475
9476SEARCH_LIB="`echo "$SEARCH_INCLUDE" | sed s/include/lib/g` "
9477
698dcdb6
VZ
9478
9479cat > confcache <<\EOF
10f2d63a
VZ
9480# This file is a shell script that caches the results of configure
9481# tests run on this system so they can be shared between configure
698dcdb6
VZ
9482# scripts and configure runs. It is not useful on other systems.
9483# If it contains results you don't want to keep, you may remove or edit it.
10f2d63a 9484#
698dcdb6
VZ
9485# By default, configure uses ./config.cache as the cache file,
9486# creating it if it does not exist already. You can give configure
9487# the --cache-file=FILE option to use a different cache file; that is
9488# what configure does when it calls configure scripts in
9489# subdirectories, so they share the cache.
9490# Giving --cache-file=/dev/null disables caching, for debugging configure.
9491# config.status only pays attention to the cache file if you give it the
9492# --recheck option to rerun configure.
10f2d63a 9493#
698dcdb6 9494EOF
10f2d63a
VZ
9495# The following way of writing the cache mishandles newlines in values,
9496# but we know of no workaround that is simple, portable, and efficient.
9497# So, don't put newlines in cache variables' values.
9498# Ultrix sh set writes to stderr and can't be redirected directly,
9499# and sets the high bit in the cache file unless we assign to the vars.
698dcdb6
VZ
9500(set) 2>&1 |
9501 case `(ac_space=' '; set | grep ac_space) 2>&1` in
9502 *ac_space=\ *)
9503 # `set' does not quote correctly, so add quotes (double-quote substitution
9504 # turns \\\\ into \\, and sed turns \\ into \).
9505 sed -n \
9506 -e "s/'/'\\\\''/g" \
9507 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
9508 ;;
9509 *)
9510 # `set' quotes correctly as required by POSIX, so do not add quotes.
9511 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
9512 ;;
9513 esac >> confcache
9514if cmp -s $cache_file confcache; then
9515 :
9516else
10f2d63a 9517 if test -w $cache_file; then
698dcdb6
VZ
9518 echo "updating cache $cache_file"
9519 cat confcache > $cache_file
10f2d63a
VZ
9520 else
9521 echo "not updating unwritable cache $cache_file"
9522 fi
9523fi
9524rm -f confcache
9525
698dcdb6
VZ
9526
9527
4f14bcd8 9528
18dbb1f6
VZ
9529REGEX_INCLUDE=
9530if test "$wxUSE_REGEX" != "no"; then
4f14bcd8
GD
9531 cat >> confdefs.h <<\EOF
9532#define wxUSE_REGEX 1
9533EOF
9534
9535
9536 if test "$wxUSE_REGEX" = "sys" -o "$wxUSE_REGEX" = "yes" ; then
9537 ac_safe=`echo "regex.h" | sed 'y%./+-%__p_%'`
18dbb1f6 9538echo $ac_n "checking for regex.h""... $ac_c" 1>&6
658974ae 9539echo "configure:9540: checking for regex.h" >&5
18dbb1f6
VZ
9540if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9541 echo $ac_n "(cached) $ac_c" 1>&6
9542else
9543 cat > conftest.$ac_ext <<EOF
658974ae 9544#line 9545 "configure"
18dbb1f6
VZ
9545#include "confdefs.h"
9546#include <regex.h>
9547EOF
9548ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
658974ae 9549{ (eval echo configure:9550: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
18dbb1f6
VZ
9550ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9551if test -z "$ac_err"; then
9552 rm -rf conftest*
9553 eval "ac_cv_header_$ac_safe=yes"
9554else
9555 echo "$ac_err" >&5
9556 echo "configure: failed program was:" >&5
9557 cat conftest.$ac_ext >&5
9558 rm -rf conftest*
9559 eval "ac_cv_header_$ac_safe=no"
9560fi
9561rm -f conftest*
9562fi
9563if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9564 echo "$ac_t""yes" 1>&6
9565 for ac_func in regcomp
9566do
9567echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
658974ae 9568echo "configure:9569: checking for $ac_func" >&5
18dbb1f6
VZ
9569if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9570 echo $ac_n "(cached) $ac_c" 1>&6
9571else
9572 cat > conftest.$ac_ext <<EOF
658974ae 9573#line 9574 "configure"
18dbb1f6
VZ
9574#include "confdefs.h"
9575/* System header to define __stub macros and hopefully few prototypes,
9576 which can conflict with char $ac_func(); below. */
9577#include <assert.h>
9578/* Override any gcc2 internal prototype to avoid an error. */
9579/* We use char because int might match the return type of a gcc2
9580 builtin and then its argument prototype would still apply. */
9581char $ac_func();
9582
9583int main() {
9584
9585/* The GNU C library defines this for functions which it implements
9586 to always fail with ENOSYS. Some functions are actually named
9587 something starting with __ and the normal name is an alias. */
9588#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9589choke me
9590#else
9591$ac_func();
9592#endif
9593
9594; return 0; }
9595EOF
658974ae 9596if { (eval echo configure:9597: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18dbb1f6
VZ
9597 rm -rf conftest*
9598 eval "ac_cv_func_$ac_func=yes"
9599else
9600 echo "configure: failed program was:" >&5
9601 cat conftest.$ac_ext >&5
9602 rm -rf conftest*
9603 eval "ac_cv_func_$ac_func=no"
9604fi
9605rm -f conftest*
9606fi
9607
9608if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9609 echo "$ac_t""yes" 1>&6
9610 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9611 cat >> confdefs.h <<EOF
9612#define $ac_tr_func 1
9613EOF
9614
9615else
9616 echo "$ac_t""no" 1>&6
9617fi
9618done
9619
9620else
9621 echo "$ac_t""no" 1>&6
9622fi
9623
9624
4f14bcd8
GD
9625 if test "x$ac_cv_func_regcomp" != "xyes"; then
9626 if test "$wxUSE_REGEX" = "sys" ; then
9627 { echo "configure: error: system regex library not found! Use --with-regex to use built-in version" 1>&2; exit 1; }
9628 else
a3df447d 9629 echo "configure: warning: system regex library not found, will use built-in instead" 1>&2
4f14bcd8
GD
9630 wxUSE_REGEX=builtin
9631 fi
9632 else
9633 wxUSE_REGEX=sys
18dbb1f6 9634 fi
18dbb1f6
VZ
9635 fi
9636
4f14bcd8
GD
9637 if test "$wxUSE_REGEX" = "builtin" ; then
9638 REGEX_INCLUDE="-I\${top_srcdir}/src/regex"
9639 fi
18dbb1f6
VZ
9640fi
9641
9642
4f14bcd8
GD
9643ZLIB_INCLUDE=
9644ZLIB_LINK=
9645if test "$wxUSE_ZLIB" != "no" ; then
9646 cat >> confdefs.h <<\EOF
9647#define wxUSE_ZLIB 1
9648EOF
dad6c0ea 9649
10f2d63a 9650
4f14bcd8
GD
9651 if test "$wxUSE_ZLIB" = "sys" -o "$wxUSE_ZLIB" = "yes" ; then
9652 ac_safe=`echo "zlib.h" | sed 'y%./+-%__p_%'`
9653echo $ac_n "checking for zlib.h""... $ac_c" 1>&6
658974ae 9654echo "configure:9655: checking for zlib.h" >&5
3a922bb4
RL
9655if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9656 echo $ac_n "(cached) $ac_c" 1>&6
9657else
9658 cat > conftest.$ac_ext <<EOF
658974ae 9659#line 9660 "configure"
3a922bb4 9660#include "confdefs.h"
4f14bcd8 9661#include <zlib.h>
3a922bb4
RL
9662EOF
9663ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
658974ae 9664{ (eval echo configure:9665: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3a922bb4
RL
9665ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9666if test -z "$ac_err"; then
9667 rm -rf conftest*
9668 eval "ac_cv_header_$ac_safe=yes"
9669else
9670 echo "$ac_err" >&5
9671 echo "configure: failed program was:" >&5
9672 cat conftest.$ac_ext >&5
9673 rm -rf conftest*
9674 eval "ac_cv_header_$ac_safe=no"
9675fi
9676rm -f conftest*
9677fi
9678if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9679 echo "$ac_t""yes" 1>&6
4f14bcd8 9680 echo $ac_n "checking for deflate in -lz""... $ac_c" 1>&6
658974ae 9681echo "configure:9682: checking for deflate in -lz" >&5
4f14bcd8
GD
9682ac_lib_var=`echo z'_'deflate | sed 'y%./+-%__p_%'`
9683if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9684 echo $ac_n "(cached) $ac_c" 1>&6
9685else
9686 ac_save_LIBS="$LIBS"
9687LIBS="-lz $LIBS"
9688cat > conftest.$ac_ext <<EOF
658974ae 9689#line 9690 "configure"
4f14bcd8
GD
9690#include "confdefs.h"
9691/* Override any gcc2 internal prototype to avoid an error. */
9692/* We use char because int might match the return type of a gcc2
9693 builtin and then its argument prototype would still apply. */
9694char deflate();
9695
9696int main() {
9697deflate()
9698; return 0; }
3a922bb4 9699EOF
658974ae 9700if { (eval echo configure:9701: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4f14bcd8
GD
9701 rm -rf conftest*
9702 eval "ac_cv_lib_$ac_lib_var=yes"
9703else
9704 echo "configure: failed program was:" >&5
9705 cat conftest.$ac_ext >&5
9706 rm -rf conftest*
9707 eval "ac_cv_lib_$ac_lib_var=no"
9708fi
9709rm -f conftest*
9710LIBS="$ac_save_LIBS"
9711
9712fi
9713if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9714 echo "$ac_t""yes" 1>&6
3d63bc3a 9715 ZLIB_LINK=" -lz"
3a922bb4
RL
9716else
9717 echo "$ac_t""no" 1>&6
9718fi
10f2d63a 9719
4f14bcd8
GD
9720else
9721 echo "$ac_t""no" 1>&6
9722fi
9723
9724
9725 if test "x$ZLIB_LINK" = "x" ; then
9726 if test "$wxUSE_ZLIB" = "sys" ; then
9727 { echo "configure: error: system zlib compression library not found! Use --with-zlib=builtin to use built-in version" 1>&2; exit 1; }
9728 else
a3df447d 9729 echo "configure: warning: system zlib compression library not found, will use built-in instead" 1>&2
4f14bcd8
GD
9730 wxUSE_ZLIB=builtin
9731 fi
9732 else
9733 wxUSE_ZLIB=sys
9734 fi
9735 fi
9736
9737 if test "$wxUSE_ZLIB" = "builtin" ; then
9738 ZLIB_INCLUDE="-I\${top_srcdir}/src/zlib"
9739 fi
9740fi
9741
9742
9743PNG_INCLUDE=
9744PNG_LINK=
9745if test "$wxUSE_LIBPNG" != "no" ; then
9746 cat >> confdefs.h <<\EOF
9747#define wxUSE_LIBPNG 1
9748EOF
9749
9750
9751 if test "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then
a3df447d 9752 echo "configure: warning: system png library doesn't work without system zlib, will use built-in instead" 1>&2
4f14bcd8
GD
9753 wxUSE_LIBPNG=builtin
9754 fi
9755
9756 if test "$wxUSE_LIBPNG" = "sys" -o "$wxUSE_LIBPNG" = "yes" ; then
9757 ac_safe=`echo "png.h" | sed 'y%./+-%__p_%'`
9758echo $ac_n "checking for png.h""... $ac_c" 1>&6
658974ae 9759echo "configure:9760: checking for png.h" >&5
d4158b5d
VS
9760if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9761 echo $ac_n "(cached) $ac_c" 1>&6
9762else
9763 cat > conftest.$ac_ext <<EOF
658974ae 9764#line 9765 "configure"
d4158b5d 9765#include "confdefs.h"
4f14bcd8 9766#include <png.h>
d4158b5d
VS
9767EOF
9768ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
658974ae 9769{ (eval echo configure:9770: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
d4158b5d
VS
9770ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9771if test -z "$ac_err"; then
9772 rm -rf conftest*
9773 eval "ac_cv_header_$ac_safe=yes"
9774else
9775 echo "$ac_err" >&5
9776 echo "configure: failed program was:" >&5
9777 cat conftest.$ac_ext >&5
9778 rm -rf conftest*
9779 eval "ac_cv_header_$ac_safe=no"
9780fi
9781rm -f conftest*
9782fi
9783if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9784 echo "$ac_t""yes" 1>&6
4f14bcd8 9785 echo $ac_n "checking for png_check_sig in -lpng""... $ac_c" 1>&6
658974ae 9786echo "configure:9787: checking for png_check_sig in -lpng" >&5
4f14bcd8
GD
9787ac_lib_var=`echo png'_'png_check_sig | sed 'y%./+-%__p_%'`
9788if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3a922bb4
RL
9789 echo $ac_n "(cached) $ac_c" 1>&6
9790else
4f14bcd8
GD
9791 ac_save_LIBS="$LIBS"
9792LIBS="-lpng -lz -lm $LIBS"
9793cat > conftest.$ac_ext <<EOF
658974ae 9794#line 9795 "configure"
3a922bb4 9795#include "confdefs.h"
4f14bcd8
GD
9796/* Override any gcc2 internal prototype to avoid an error. */
9797/* We use char because int might match the return type of a gcc2
9798 builtin and then its argument prototype would still apply. */
9799char png_check_sig();
f6bcfd97 9800
4f14bcd8
GD
9801int main() {
9802png_check_sig()
3a922bb4
RL
9803; return 0; }
9804EOF
658974ae 9805if { (eval echo configure:9806: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3a922bb4 9806 rm -rf conftest*
4f14bcd8 9807 eval "ac_cv_lib_$ac_lib_var=yes"
3a922bb4
RL
9808else
9809 echo "configure: failed program was:" >&5
9810 cat conftest.$ac_ext >&5
9811 rm -rf conftest*
4f14bcd8 9812 eval "ac_cv_lib_$ac_lib_var=no"
3a922bb4
RL
9813fi
9814rm -f conftest*
4f14bcd8 9815LIBS="$ac_save_LIBS"
10f2d63a 9816
4f14bcd8
GD
9817fi
9818if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9819 echo "$ac_t""yes" 1>&6
3d63bc3a 9820 PNG_LINK=" -lpng"
4f14bcd8
GD
9821else
9822 echo "$ac_t""no" 1>&6
9823fi
32832908 9824
4f14bcd8
GD
9825
9826else
9827 echo "$ac_t""no" 1>&6
9828fi
3a922bb4 9829
7b7a7637 9830
4f14bcd8
GD
9831 if test "x$PNG_LINK" = "x" ; then
9832 if test "$wxUSE_LIBPNG" = "sys" ; then
9833 { echo "configure: error: system png library not found! Use --with-libpng=builtin to use built-in version" 1>&2; exit 1; }
9834 else
a3df447d 9835 echo "configure: warning: system png library not found, will use built-in instead" 1>&2
4f14bcd8
GD
9836 wxUSE_LIBPNG=builtin
9837 fi
9838 else
9839 wxUSE_LIBPNG=yes
9840 fi
3a922bb4
RL
9841 fi
9842
4f14bcd8
GD
9843 if test "$wxUSE_LIBPNG" = "builtin" ; then
9844 PNG_INCLUDE="-I\${top_srcdir}/src/png"
3a922bb4
RL
9845 fi
9846
4f14bcd8 9847 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png"
3a922bb4
RL
9848fi
9849
32832908 9850
4f14bcd8
GD
9851JPEG_INCLUDE=
9852JPEG_LINK=
9853if test "$wxUSE_LIBJPEG" != "no" ; then
9854 cat >> confdefs.h <<\EOF
9855#define wxUSE_LIBJPEG 1
9856EOF
10f2d63a 9857
8168de4c 9858
4f14bcd8
GD
9859 if test "$wxUSE_LIBJPEG" = "sys" -o "$wxUSE_LIBJPEG" = "yes" ; then
9860 echo $ac_n "checking for jpeglib.h""... $ac_c" 1>&6
658974ae 9861echo "configure:9862: checking for jpeglib.h" >&5
4f14bcd8 9862 if eval "test \"`echo '$''{'ac_cv_header_jpeglib_h'+set}'`\" = set"; then
8168de4c
VZ
9863 echo $ac_n "(cached) $ac_c" 1>&6
9864else
4f14bcd8 9865 cat > conftest.$ac_ext <<EOF
658974ae 9866#line 9867 "configure"
4f14bcd8 9867#include "confdefs.h"
8168de4c 9868
4f14bcd8
GD
9869 #undef HAVE_STDLIB_H
9870 #include <stdio.h>
9871 #include <jpeglib.h>
9872
9873int main() {
9874
9875
9876; return 0; }
9877EOF
658974ae 9878if { (eval echo configure:9879: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4f14bcd8
GD
9879 rm -rf conftest*
9880 ac_cv_header_jpeglib_h=yes
6f72b082 9881else
4f14bcd8
GD
9882 echo "configure: failed program was:" >&5
9883 cat conftest.$ac_ext >&5
9884 rm -rf conftest*
9885 ac_cv_header_jpeglib_h=no
9886
9887fi
9888rm -f conftest*
9889
698dcdb6 9890fi
6f72b082 9891
4f14bcd8
GD
9892 echo "$ac_t""$ac_cv_header_jpeglib_h" 1>&6
9893
9894 if test "$ac_cv_header_jpeglib_h" = "yes"; then
9895 echo $ac_n "checking for jpeg_read_header in -ljpeg""... $ac_c" 1>&6
658974ae 9896echo "configure:9897: checking for jpeg_read_header in -ljpeg" >&5
4f14bcd8
GD
9897ac_lib_var=`echo jpeg'_'jpeg_read_header | sed 'y%./+-%__p_%'`
9898if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9899 echo $ac_n "(cached) $ac_c" 1>&6
6f72b082 9900else
4f14bcd8
GD
9901 ac_save_LIBS="$LIBS"
9902LIBS="-ljpeg $LIBS"
9903cat > conftest.$ac_ext <<EOF
658974ae 9904#line 9905 "configure"
4f14bcd8
GD
9905#include "confdefs.h"
9906/* Override any gcc2 internal prototype to avoid an error. */
9907/* We use char because int might match the return type of a gcc2
9908 builtin and then its argument prototype would still apply. */
9909char jpeg_read_header();
698dcdb6 9910
4f14bcd8
GD
9911int main() {
9912jpeg_read_header()
9913; return 0; }
9914EOF
658974ae 9915if { (eval echo configure:9916: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4f14bcd8
GD
9916 rm -rf conftest*
9917 eval "ac_cv_lib_$ac_lib_var=yes"
6f72b082 9918else
4f14bcd8
GD
9919 echo "configure: failed program was:" >&5
9920 cat conftest.$ac_ext >&5
9921 rm -rf conftest*
9922 eval "ac_cv_lib_$ac_lib_var=no"
698dcdb6 9923fi
4f14bcd8
GD
9924rm -f conftest*
9925LIBS="$ac_save_LIBS"
698dcdb6 9926
4f14bcd8
GD
9927fi
9928if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9929 echo "$ac_t""yes" 1>&6
3d63bc3a 9930 JPEG_LINK=" -ljpeg"
4f14bcd8
GD
9931else
9932 echo "$ac_t""no" 1>&6
9933fi
9934
9935 fi
9936
9937 if test "x$JPEG_LINK" = "x" ; then
9938 if test "$wxUSE_LIBJPEG" = "sys" ; then
9939 { echo "configure: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" 1>&2; exit 1; }
9940 else
a3df447d 9941 echo "configure: warning: system jpeg library not found, will use built-in instead" 1>&2
4f14bcd8
GD
9942 wxUSE_LIBJPEG=builtin
9943 fi
9944 else
9945 wxUSE_LIBJPEG=sys
9946 fi
9947 fi
9948
9949 if test "$wxUSE_LIBJPEG" = "builtin" ; then
9950 JPEG_INCLUDE="-I\${top_srcdir}/src/jpeg"
9951 fi
9952fi
9953
9954
9955TIFF_INCLUDE=
9956TIFF_LINK=
9957if test "$wxUSE_LIBTIFF" != "no" ; then
9958 cat >> confdefs.h <<\EOF
9959#define wxUSE_LIBTIFF 1
9960EOF
9961
9962
9963 if test "$wxUSE_LIBTIFF" = "sys" -o "$wxUSE_LIBTIFF" = "yes" ; then
9964 ac_safe=`echo "tiffio.h" | sed 'y%./+-%__p_%'`
9965echo $ac_n "checking for tiffio.h""... $ac_c" 1>&6
658974ae 9966echo "configure:9967: checking for tiffio.h" >&5
4f14bcd8
GD
9967if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9968 echo $ac_n "(cached) $ac_c" 1>&6
9969else
9970 cat > conftest.$ac_ext <<EOF
658974ae 9971#line 9972 "configure"
4f14bcd8
GD
9972#include "confdefs.h"
9973#include <tiffio.h>
9974EOF
9975ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
658974ae 9976{ (eval echo configure:9977: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4f14bcd8
GD
9977ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9978if test -z "$ac_err"; then
9979 rm -rf conftest*
9980 eval "ac_cv_header_$ac_safe=yes"
9981else
9982 echo "$ac_err" >&5
9983 echo "configure: failed program was:" >&5
9984 cat conftest.$ac_ext >&5
9985 rm -rf conftest*
9986 eval "ac_cv_header_$ac_safe=no"
9987fi
9988rm -f conftest*
9989fi
9990if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9991 echo "$ac_t""yes" 1>&6
9992 echo $ac_n "checking for TIFFError in -ltiff""... $ac_c" 1>&6
658974ae 9993echo "configure:9994: checking for TIFFError in -ltiff" >&5
4f14bcd8
GD
9994ac_lib_var=`echo tiff'_'TIFFError | sed 'y%./+-%__p_%'`
9995if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9996 echo $ac_n "(cached) $ac_c" 1>&6
9997else
9998 ac_save_LIBS="$LIBS"
9999LIBS="-ltiff -lm $LIBS"
10000cat > conftest.$ac_ext <<EOF
658974ae 10001#line 10002 "configure"
4f14bcd8
GD
10002#include "confdefs.h"
10003/* Override any gcc2 internal prototype to avoid an error. */
10004/* We use char because int might match the return type of a gcc2
10005 builtin and then its argument prototype would still apply. */
10006char TIFFError();
10007
10008int main() {
10009TIFFError()
10010; return 0; }
10011EOF
658974ae 10012if { (eval echo configure:10013: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4f14bcd8
GD
10013 rm -rf conftest*
10014 eval "ac_cv_lib_$ac_lib_var=yes"
10015else
10016 echo "configure: failed program was:" >&5
10017 cat conftest.$ac_ext >&5
10018 rm -rf conftest*
10019 eval "ac_cv_lib_$ac_lib_var=no"
10020fi
10021rm -f conftest*
10022LIBS="$ac_save_LIBS"
10023
10024fi
10025if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10026 echo "$ac_t""yes" 1>&6
3d63bc3a 10027 TIFF_LINK=" -ltiff"
4f14bcd8
GD
10028else
10029 echo "$ac_t""no" 1>&6
10030fi
10031
10032
10033else
10034 echo "$ac_t""no" 1>&6
10035fi
10036
10037
10038 if test "x$TIFF_LINK" = "x" ; then
10039 if test "$wxUSE_LIBTIFF" = "sys" ; then
10040 { echo "configure: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" 1>&2; exit 1; }
10041 else
a3df447d 10042 echo "configure: warning: system tiff library not found, will use built-in instead" 1>&2
4f14bcd8
GD
10043 wxUSE_LIBTIFF=builtin
10044 fi
10045 else
10046 wxUSE_LIBTIFF=sys
10047 fi
10048 fi
10049
10050 if test "$wxUSE_LIBTIFF" = "builtin" ; then
10051 TIFF_INCLUDE="-I\${top_srcdir}/src/tiff"
10052 fi
10053fi
10054
10055
10056FREETYPE_INCLUDE=
10057FREETYPE_LINK=
10058if test "$wxUSE_FREETYPE" != "no" ; then
10059 cat >> confdefs.h <<\EOF
10060#define wxUSE_FREETYPE 1
10061EOF
10062
10063
10064 if test "$wxUSE_FREETYPE" = "sys" -o "$wxUSE_FREETYPE" = "yes" ; then
10065 ac_safe=`echo "freetype.h" | sed 'y%./+-%__p_%'`
10066echo $ac_n "checking for freetype.h""... $ac_c" 1>&6
658974ae 10067echo "configure:10068: checking for freetype.h" >&5
4f14bcd8
GD
10068if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10069 echo $ac_n "(cached) $ac_c" 1>&6
10070else
10071 cat > conftest.$ac_ext <<EOF
658974ae 10072#line 10073 "configure"
4f14bcd8
GD
10073#include "confdefs.h"
10074#include <freetype.h>
10075EOF
10076ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
658974ae 10077{ (eval echo configure:10078: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4f14bcd8
GD
10078ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10079if test -z "$ac_err"; then
10080 rm -rf conftest*
10081 eval "ac_cv_header_$ac_safe=yes"
10082else
10083 echo "$ac_err" >&5
10084 echo "configure: failed program was:" >&5
10085 cat conftest.$ac_ext >&5
10086 rm -rf conftest*
10087 eval "ac_cv_header_$ac_safe=no"
10088fi
10089rm -f conftest*
10090fi
10091if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10092 echo "$ac_t""yes" 1>&6
10093 echo $ac_n "checking for FT_Render_Glyph in -lfreetype""... $ac_c" 1>&6
658974ae 10094echo "configure:10095: checking for FT_Render_Glyph in -lfreetype" >&5
4f14bcd8
GD
10095ac_lib_var=`echo freetype'_'FT_Render_Glyph | sed 'y%./+-%__p_%'`
10096if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10097 echo $ac_n "(cached) $ac_c" 1>&6
10098else
10099 ac_save_LIBS="$LIBS"
10100LIBS="-lfreetype -lm $LIBS"
10101cat > conftest.$ac_ext <<EOF
658974ae 10102#line 10103 "configure"
4f14bcd8
GD
10103#include "confdefs.h"
10104/* Override any gcc2 internal prototype to avoid an error. */
10105/* We use char because int might match the return type of a gcc2
10106 builtin and then its argument prototype would still apply. */
10107char FT_Render_Glyph();
10108
10109int main() {
10110FT_Render_Glyph()
10111; return 0; }
10112EOF
658974ae 10113if { (eval echo configure:10114: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4f14bcd8
GD
10114 rm -rf conftest*
10115 eval "ac_cv_lib_$ac_lib_var=yes"
10116else
10117 echo "configure: failed program was:" >&5
10118 cat conftest.$ac_ext >&5
10119 rm -rf conftest*
10120 eval "ac_cv_lib_$ac_lib_var=no"
10121fi
10122rm -f conftest*
10123LIBS="$ac_save_LIBS"
10124
10125fi
10126if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10127 echo "$ac_t""yes" 1>&6
3d63bc3a 10128 FREETYPE_LINK=" -lfreetype"
4f14bcd8
GD
10129else
10130 echo "$ac_t""no" 1>&6
10131fi
10132
10133
10134else
10135 echo "$ac_t""no" 1>&6
10136fi
10137
10138
10139 if test "x$FREETYPE_LINK" = "x" ; then
10140 if test "$wxUSE_FREETYPE" = "sys" ; then
10141 { echo "configure: error: system freetype library not found! Use --with-freetype=builtin to use built-in version" 1>&2; exit 1; }
10142 else
a3df447d 10143 echo "configure: warning: system freetype library not found, will use built-in instead" 1>&2
4f14bcd8
GD
10144 wxUSE_FREETYPE=builtin
10145 fi
10146 else
10147 wxUSE_FREETYPE=sys
10148 fi
10149 fi
10150
10151 if test "$wxUSE_FREETYPE" = "builtin" ; then
10152 FREETYPE_INCLUDE="-I\${top_srcdir}/src/freetype"
10153 fi
10154fi
10155
10156
10157AFMINSTALL=
10158
10159TOOLKIT=
10160TOOLKIT_INCLUDE=
10161WIDGET_SET=
10162
10163if test "$USE_WIN32" = 1 ; then
10164 for ac_hdr in w32api.h
10165do
10166ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10167echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
658974ae 10168echo "configure:10169: checking for $ac_hdr" >&5
4f14bcd8
GD
10169if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10170 echo $ac_n "(cached) $ac_c" 1>&6
10171else
10172 cat > conftest.$ac_ext <<EOF
658974ae 10173#line 10174 "configure"
4f14bcd8
GD
10174#include "confdefs.h"
10175#include <$ac_hdr>
10176EOF
10177ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
658974ae 10178{ (eval echo configure:10179: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4f14bcd8
GD
10179ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10180if test -z "$ac_err"; then
10181 rm -rf conftest*
10182 eval "ac_cv_header_$ac_safe=yes"
10183else
10184 echo "$ac_err" >&5
10185 echo "configure: failed program was:" >&5
10186 cat conftest.$ac_ext >&5
10187 rm -rf conftest*
10188 eval "ac_cv_header_$ac_safe=no"
10189fi
10190rm -f conftest*
10191fi
10192if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10193 echo "$ac_t""yes" 1>&6
10194 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10195 cat >> confdefs.h <<EOF
10196#define $ac_tr_hdr 1
10197EOF
10198
10199else
10200 echo "$ac_t""no" 1>&6
10201fi
10202done
10203
10204 ac_safe=`echo "windows.h" | sed 'y%./+-%__p_%'`
10205echo $ac_n "checking for windows.h""... $ac_c" 1>&6
658974ae 10206echo "configure:10207: checking for windows.h" >&5
4f14bcd8
GD
10207if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10208 echo $ac_n "(cached) $ac_c" 1>&6
10209else
10210 cat > conftest.$ac_ext <<EOF
658974ae 10211#line 10212 "configure"
4f14bcd8
GD
10212#include "confdefs.h"
10213#include <windows.h>
10214EOF
10215ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
658974ae 10216{ (eval echo configure:10217: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4f14bcd8
GD
10217ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10218if test -z "$ac_err"; then
10219 rm -rf conftest*
10220 eval "ac_cv_header_$ac_safe=yes"
10221else
10222 echo "$ac_err" >&5
10223 echo "configure: failed program was:" >&5
10224 cat conftest.$ac_ext >&5
10225 rm -rf conftest*
10226 eval "ac_cv_header_$ac_safe=no"
10227fi
10228rm -f conftest*
10229fi
10230if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10231 echo "$ac_t""yes" 1>&6
10232 :
10233else
10234 echo "$ac_t""no" 1>&6
10235
10236 { echo "configure: error: please set CFLAGS to contain the location of windows.h" 1>&2; exit 1; }
10237
10238fi
10239
10240
10241 echo $ac_n "checking if w32api has good enough MSIE support""... $ac_c" 1>&6
658974ae 10242echo "configure:10243: checking if w32api has good enough MSIE support" >&5
ea7682f0 10243if eval "test \"`echo '$''{'wx_cv_w32api_win32_ie'+set}'`\" = set"; then
4f14bcd8
GD
10244 echo $ac_n "(cached) $ac_c" 1>&6
10245else
10246
10247 cat > conftest.$ac_ext <<EOF
658974ae 10248#line 10249 "configure"
4f14bcd8
GD
10249#include "confdefs.h"
10250#include <w32api.h>
10251int main() {
10252
10253 #define wxCHECK_W32API_VERSION( major, minor ) \
10254 ( defined( __W32API_MAJOR_VERSION ) && defined( __W32API_MINOR_VERSION ) \
10255 && ( ( __W32API_MAJOR_VERSION > (major) ) \
10256 || ( __W32API_MAJOR_VERSION == (major) && __W32API_MINOR_VERSION >= (minor))))
10257
10258 #if !wxCHECK_W32API_VERSION(1,1)
10259 #error You need w32api 1.1 or newer
10260 #endif
10261
10262; return 0; }
10263EOF
658974ae 10264if { (eval echo configure:10265: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4f14bcd8
GD
10265 rm -rf conftest*
10266
ea7682f0 10267 wx_cv_w32api_win32_ie=yes
4f14bcd8
GD
10268
10269else
10270 echo "configure: failed program was:" >&5
10271 cat conftest.$ac_ext >&5
10272 rm -rf conftest*
10273
ea7682f0 10274 wx_cv_w32api_win32_ie=no
4f14bcd8
GD
10275
10276fi
10277rm -f conftest*
10278
10279fi
10280
ea7682f0
VS
10281echo "$ac_t""$wx_cv_w32api_win32_ie" 1>&6
10282 if test "$wx_cv_w32api_win32_ie" = "yes" ; then
10283 CPPFLAGS="$CPPFLAGS -D_WIN32_IE=0x400"
10284 fi
4f14bcd8
GD
10285
10286 LIBS="$LIBS -lwinspool -lwinmm -lshell32 -lcomctl32 -lctl3d32 -ladvapi32 -lwsock32"
10287
77e13408
RL
10288 case "${host}" in
10289 *-*-cygwin* )
10290 LIBS="$LIBS -lkernel32 -luser32 -lgdi32 -lcomdlg32"
10291 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WIN95__"
10292 esac
4f14bcd8
GD
10293
10294 if test "$wxUSE_ODBC" = "yes" ; then
a72a4bfa 10295 LIBS=" -lodbc32 -lole32 -loleaut32 $LIBS"
4f14bcd8
GD
10296 fi
10297
4f14bcd8
GD
10298 RESFLAGS="--include-dir \$(top_srcdir)/include --include-dir \$(top_srcdir)/\$(program_dir) --define __WIN32__ --define __WIN95__ --define __GNUWIN32__"
10299 RESPROGRAMOBJ="\$(PROGRAM)_resources.o"
10300fi
10301
10302if test "$wxUSE_GUI" = "yes"; then
10303 USE_GUI=1
10304
10305 GUI_TK_LIBRARY=
10306
10307 WXGTK12=
10308 WXGTK127=
10309 WXGTK20=
10310
77e13408 10311 if test "$wxUSE_MSW" = 1 ; then
4f14bcd8
GD
10312 TOOLKIT=MSW
10313 GUIDIST=MSW_DIST
77e13408
RL
10314
10315 case "${host}" in
10316 *-*-mingw32* )
3d63bc3a 10317 LDFLAGS="$LDFLAGS -Wl,--subsystem,windows -mwindows"
77e13408 10318 esac
4f14bcd8
GD
10319 fi
10320
10321 if test "$wxUSE_GTK" = 1; then
10322 echo $ac_n "checking for GTK+ version""... $ac_c" 1>&6
658974ae 10323echo "configure:10324: checking for GTK+ version" >&5
4f14bcd8
GD
10324
10325 gtk_version_cached=1
10326 if eval "test \"`echo '$''{'wx_cv_lib_gtk'+set}'`\" = set"; then
10327 echo $ac_n "(cached) $ac_c" 1>&6
10328else
10329
10330 gtk_version_cached=0
d48ad9bd 10331 echo "$ac_t""" 1>&6
4f14bcd8 10332
3f345b47
VZ
10333 GTK_MODULES=
10334 if test "$wxUSE_THREADS" = "yes"; then
10335 GTK_MODULES=gthread
10336 fi
10337
4f14bcd8
GD
10338 wx_cv_lib_gtk=
10339 if test "x$wxUSE_GTK2" = "xyes"; then
10340 # Check whether --with-gtk-prefix or --without-gtk-prefix was given.
10341if test "${with_gtk_prefix+set}" = set; then
10342 withval="$with_gtk_prefix"
10343 gtk_config_prefix="$withval"
10344else
10345 gtk_config_prefix=""
10346fi
10347
10348# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
10349if test "${with_gtk_exec_prefix+set}" = set; then
10350 withval="$with_gtk_exec_prefix"
10351 gtk_config_exec_prefix="$withval"
10352else
10353 gtk_config_exec_prefix=""
10354fi
10355
10356# Check whether --enable-gtktest or --disable-gtktest was given.
10357if test "${enable_gtktest+set}" = set; then
10358 enableval="$enable_gtktest"
10359 :
10360else
10361 enable_gtktest=yes
10362fi
10363
10364
3f345b47 10365 for module in . $GTK_MODULES
4f14bcd8 10366 do
6f72b082 10367 case "$module" in
8168de4c 10368 gthread)
6f72b082
OK
10369 gtk_config_args="$gtk_config_args gthread"
10370 ;;
10371 esac
10372 done
10373
10374 if test x$gtk_config_exec_prefix != x ; then
10375 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
10376 if test x${GTK_CONFIG_2_0+set} != xset ; then
10377 GTK_CONFIG_2_0=$gtk_config_exec_prefix/bin/gtk-config-2.0
10378 fi
10379 fi
10380 if test x$gtk_config_prefix != x ; then
10381 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
10382 if test x${GTK_CONFIG_2_0+set} != xset ; then
10383 GTK_CONFIG_2_0=$gtk_config_prefix/bin/gtk-config-2.0
10384 fi
10385 fi
10386
10387 # Extract the first word of "gtk-config-2.0", so it can be a program name with args.
10388set dummy gtk-config-2.0; ac_word=$2
698dcdb6 10389echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
658974ae 10390echo "configure:10391: checking for $ac_word" >&5
698dcdb6
VZ
10391if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG_2_0'+set}'`\" = set"; then
10392 echo $ac_n "(cached) $ac_c" 1>&6
6f72b082 10393else
698dcdb6
VZ
10394 case "$GTK_CONFIG_2_0" in
10395 /*)
6f72b082
OK
10396 ac_cv_path_GTK_CONFIG_2_0="$GTK_CONFIG_2_0" # Let the user override the test with a path.
10397 ;;
698dcdb6
VZ
10398 ?:/*)
10399 ac_cv_path_GTK_CONFIG_2_0="$GTK_CONFIG_2_0" # Let the user override the test with a dos path.
10400 ;;
6f72b082 10401 *)
698dcdb6
VZ
10402 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
10403 ac_dummy="$PATH"
10404 for ac_dir in $ac_dummy; do
10405 test -z "$ac_dir" && ac_dir=.
10406 if test -f $ac_dir/$ac_word; then
10407 ac_cv_path_GTK_CONFIG_2_0="$ac_dir/$ac_word"
10408 break
10409 fi
10410 done
10411 IFS="$ac_save_ifs"
6f72b082
OK
10412 test -z "$ac_cv_path_GTK_CONFIG_2_0" && ac_cv_path_GTK_CONFIG_2_0="no"
10413 ;;
10414esac
10415fi
698dcdb6 10416GTK_CONFIG_2_0="$ac_cv_path_GTK_CONFIG_2_0"
6f72b082 10417if test -n "$GTK_CONFIG_2_0"; then
698dcdb6 10418 echo "$ac_t""$GTK_CONFIG_2_0" 1>&6
6f72b082 10419else
698dcdb6 10420 echo "$ac_t""no" 1>&6
6f72b082
OK
10421fi
10422
10423 min_gtk_version=1.3.1
698dcdb6 10424 echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
658974ae 10425echo "configure:10426: checking for GTK - version >= $min_gtk_version" >&5
6f72b082
OK
10426 no_gtk=""
10427 if test "$GTK_CONFIG_2_0" = "no" ; then
10428 no_gtk=yes
10429 else
10430 GTK_CFLAGS=`$GTK_CONFIG_2_0 $gtk_config_args --cflags`
10431 GTK_LIBS=`$GTK_CONFIG_2_0 $gtk_config_args --libs`
10432 gtk_config_major_version=`$GTK_CONFIG_2_0 $gtk_config_args --version | \
10433 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
10434 gtk_config_minor_version=`$GTK_CONFIG_2_0 $gtk_config_args --version | \
10435 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
10436 gtk_config_micro_version=`$GTK_CONFIG_2_0 $gtk_config_args --version | \
10437 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
10438 if test "x$enable_gtktest" = "xyes" ; then
10439 ac_save_CFLAGS="$CFLAGS"
10440 ac_save_LIBS="$LIBS"
10441 CFLAGS="$CFLAGS $GTK_CFLAGS"
10442 LIBS="$GTK_LIBS $LIBS"
10443 rm -f conf.gtktest
10444 if test "$cross_compiling" = yes; then
10445 echo $ac_n "cross compiling; assumed OK... $ac_c"
10446else
698dcdb6 10447 cat > conftest.$ac_ext <<EOF
658974ae 10448#line 10449 "configure"
6f72b082
OK
10449#include "confdefs.h"
10450
10451#include <gtk/gtk.h>
10452#include <stdio.h>
10453#include <stdlib.h>
10454
8168de4c 10455int
6f72b082
OK
10456main ()
10457{
10458 int major, minor, micro;
10459 char *tmp_version;
10460
10461 system ("touch conf.gtktest");
10462
10463 /* HP/UX 9 (%@#!) writes to sscanf strings */
10464 tmp_version = g_strdup("$min_gtk_version");
10465 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
10466 printf("%s, bad version string\n", "$min_gtk_version");
10467 exit(1);
10468 }
10469
10470 if ((gtk_major_version != $gtk_config_major_version) ||
10471 (gtk_minor_version != $gtk_config_minor_version) ||
10472 (gtk_micro_version != $gtk_config_micro_version))
10473 {
8168de4c 10474 printf("\n*** 'gtk-config-2.0 --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
6f72b082
OK
10475 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
10476 gtk_major_version, gtk_minor_version, gtk_micro_version);
10477 printf ("*** was found! If gtk-config-2.0 was correct, then it is best\n");
10478 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
10479 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
10480 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
10481 printf("*** required on your system.\n");
10482 printf("*** If gtk-config-2.0 was wrong, set the environment variable GTK_CONFIG_2_0\n");
10483 printf("*** to point to the correct copy of gtk-config-2.0, and remove the file config.cache\n");
10484 printf("*** before re-running configure\n");
8168de4c 10485 }
6f72b082
OK
10486#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
10487 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
8168de4c 10488 (gtk_minor_version != GTK_MINOR_VERSION) ||
6f72b082
OK
10489 (gtk_micro_version != GTK_MICRO_VERSION))
10490 {
10491 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
8168de4c 10492 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
6f72b082 10493 printf("*** library (version %d.%d.%d)\n",
8168de4c 10494 gtk_major_version, gtk_minor_version, gtk_micro_version);
6f72b082
OK
10495 }
10496#endif /* defined (GTK_MAJOR_VERSION) ... */
10497 else
10498 {
10499 if ((gtk_major_version > major) ||
10500 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
10501 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
10502 {
10503 return 0;
10504 }
10505 else
10506 {
10507 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
10508 gtk_major_version, gtk_minor_version, gtk_micro_version);
10509 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
8168de4c 10510 major, minor, micro);
6f72b082
OK
10511 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
10512 printf("***\n");
10513 printf("*** If you have already installed a sufficiently new version, this error\n");
10514 printf("*** probably means that the wrong copy of the gtk-config-2.0 shell script is\n");
10515 printf("*** being found. The easiest way to fix this is to remove the old version\n");
10516 printf("*** of GTK+, but you can also set the GTK_CONFIG_2_0 environment to point to the\n");
10517 printf("*** correct copy of gtk-config-2.0. (In this case, you will have to\n");
10518 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
10519 printf("*** so that the correct libraries are found at run-time))\n");
10520 }
10521 }
10522 return 1;
10523}
10524
698dcdb6 10525EOF
658974ae 10526if { (eval echo configure:10527: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
698dcdb6 10527then
6f72b082
OK
10528 :
10529else
698dcdb6
VZ
10530 echo "configure: failed program was:" >&5
10531 cat conftest.$ac_ext >&5
10532 rm -fr conftest*
10533 no_gtk=yes
6f72b082 10534fi
698dcdb6 10535rm -fr conftest*
6f72b082 10536fi
698dcdb6 10537
6f72b082
OK
10538 CFLAGS="$ac_save_CFLAGS"
10539 LIBS="$ac_save_LIBS"
10540 fi
10541 fi
10542 if test "x$no_gtk" = x ; then
698dcdb6 10543 echo "$ac_t""yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" 1>&6
8168de4c 10544 wx_cv_lib_gtk=2.0
6f72b082 10545 else
698dcdb6 10546 echo "$ac_t""no" 1>&6
6f72b082
OK
10547 if test "$GTK_CONFIG_2_0" = "no" ; then
10548 echo "*** The gtk-config-2.0 script installed by GTK could not be found"
10549 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
10550 echo "*** your path, or set the GTK_CONFIG_2_0 environment variable to the"
10551 echo "*** full path to gtk-config-2.0."
10552 else
10553 if test -f conf.gtktest ; then
10554 :
10555 else
10556 echo "*** Could not run GTK test program, checking why..."
10557 CFLAGS="$CFLAGS $GTK_CFLAGS"
10558 LIBS="$LIBS $GTK_LIBS"
698dcdb6 10559 cat > conftest.$ac_ext <<EOF
658974ae 10560#line 10561 "configure"
6f72b082
OK
10561#include "confdefs.h"
10562
10563#include <gtk/gtk.h>
10564#include <stdio.h>
10565
698dcdb6
VZ
10566int main() {
10567 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
10568; return 0; }
10569EOF
658974ae 10570if { (eval echo configure:10571: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6 10571 rm -rf conftest*
6f72b082
OK
10572 echo "*** The test program compiled, but did not run. This usually means"
10573 echo "*** that the run-time linker is not finding GTK or finding the wrong"
10574 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
10575 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
10576 echo "*** to the installed location Also, make sure you have run ldconfig if that"
10577 echo "*** is required on your system"
8168de4c 10578 echo "***"
6f72b082
OK
10579 echo "*** If you have an old version installed, it is best to remove it, although"
10580 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
10581 echo "***"
10582 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
10583 echo "*** came with the system with the command"
10584 echo "***"
698dcdb6 10585 echo "*** rpm --erase --nodeps gtk gtk-devel"
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"
6f72b082
OK
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"
698dcdb6 10593 echo "*** may want to edit the gtk-config-2.0 script: $GTK_CONFIG_2_0"
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
658974ae 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
658974ae 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
658974ae 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
658974ae 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
658974ae 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
658974ae 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
658974ae 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
658974ae 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
658974ae 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
658974ae 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
658974ae 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
658974ae 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
658974ae 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
658974ae 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
658974ae 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
658974ae 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
658974ae 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
1e6feb95 11308 if test "$wxUSE_WINE" = 1; then
3a922bb4
RL
11309 ac_safe=`echo "windows.h" | sed 'y%./+-%__p_%'`
11310echo $ac_n "checking for windows.h""... $ac_c" 1>&6
658974ae 11311echo "configure:11312: checking for windows.h" >&5
3a922bb4
RL
11312if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11313 echo $ac_n "(cached) $ac_c" 1>&6
11314else
11315 cat > conftest.$ac_ext <<EOF
658974ae 11316#line 11317 "configure"
3a922bb4
RL
11317#include "confdefs.h"
11318#include <windows.h>
11319EOF
11320ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
658974ae 11321{ (eval echo configure:11322: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3a922bb4
RL
11322ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11323if test -z "$ac_err"; then
11324 rm -rf conftest*
11325 eval "ac_cv_header_$ac_safe=yes"
11326else
11327 echo "$ac_err" >&5
11328 echo "configure: failed program was:" >&5
11329 cat conftest.$ac_ext >&5
11330 rm -rf conftest*
11331 eval "ac_cv_header_$ac_safe=no"
11332fi
11333rm -f conftest*
11334fi
11335if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11336 echo "$ac_t""yes" 1>&6
11337 :
11338else
11339 echo "$ac_t""no" 1>&6
10f2d63a 11340
1e6feb95 11341 { echo "configure: error: please set CFLAGS to contain the location of windows.h" 1>&2; exit 1; }
3a922bb4
RL
11342
11343fi
11344
10f2d63a 11345
3d63bc3a 11346 xpm_link=
1e6feb95 11347 echo $ac_n "checking for Xpm library""... $ac_c" 1>&6
658974ae 11348echo "configure:11349: checking for Xpm library" >&5
1e6feb95 11349
10f2d63a
VZ
11350ac_find_libraries=
11351for ac_dir in $SEARCH_LIB;
11352 do
f11bdd03 11353 for ac_extension in a so sl dylib; do
10f2d63a
VZ
11354 if test -f "$ac_dir/libXpm.$ac_extension"; then
11355 ac_find_libraries=$ac_dir
11356 break 2
11357 fi
11358 done
11359 done
11360
1e6feb95
VZ
11361 if test "$ac_find_libraries" != "" ; then
11362 GUI_TK_LIBRARY="-L$ac_find_libraries"
3d63bc3a 11363 xpm_link=" -lXpm"
1e6feb95 11364 cat >> confdefs.h <<\EOF
10f2d63a
VZ
11365#define wxHAVE_LIB_XPM 1
11366EOF
11367
1e6feb95
VZ
11368 echo "$ac_t""found at $ac_find_libraries" 1>&6
11369 else
11370 echo "$ac_t""no" 1>&6
11371 echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2
11372 fi
10f2d63a 11373
3d63bc3a 11374 mesa_link=
1e6feb95 11375 echo $ac_n "checking for Mesa library""... $ac_c" 1>&6
658974ae 11376echo "configure:11377: checking for Mesa library" >&5
1e6feb95 11377
10f2d63a
VZ
11378ac_find_libraries=
11379for ac_dir in $SEARCH_LIB;
11380 do
f11bdd03 11381 for ac_extension in a so sl dylib; do
10f2d63a
VZ
11382 if test -f "$ac_dir/libMesaGL.$ac_extension"; then
11383 ac_find_libraries=$ac_dir
11384 break 2
11385 fi
11386 done
11387 done
11388
1e6feb95
VZ
11389 if test "$ac_find_libraries" != "" ; then
11390 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -L$ac_find_libraries"
3d63bc3a 11391 mesa_link=" -lMesaGL"
1e6feb95
VZ
11392 echo "$ac_t""found at $ac_find_libraries" 1>&6
11393 else
11394 { echo "configure: error: no" 1>&2; exit 1; }
11395 fi
10f2d63a 11396
3d63bc3a 11397 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lwine$mesa_link$xpm_link -lXxf86dga -lXxf86vm -lSM -lICE -lXext -lXmu -lX11 -lncurses"
1e6feb95
VZ
11398 TOOLKIT=MSW
11399 GUIDIST=MSW_DIST
3a922bb4 11400 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXWINE__"
1e6feb95 11401 fi
698dcdb6 11402
d714471b
VZ
11403 if test "$wxUSE_MOTIF" = 1; then
11404 # If we find X, set shell vars x_includes and x_libraries to the
698dcdb6
VZ
11405# paths, otherwise set no_x=yes.
11406# Uses ac_ vars as temps to allow command line to override cache and checks.
11407# --without-x overrides everything else, but does not touch the cache.
11408echo $ac_n "checking for X""... $ac_c" 1>&6
658974ae 11409echo "configure:11410: checking for X" >&5
ab9b9eab
VZ
11410
11411# Check whether --with-x or --without-x was given.
11412if test "${with_x+set}" = set; then
11413 withval="$with_x"
698dcdb6
VZ
11414 :
11415fi
ba337fe7 11416
ab9b9eab
VZ
11417# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
11418if test "x$with_x" = xno; then
11419 # The user explicitly disabled X.
11420 have_x=disabled
11421else
11422 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
11423 # Both variables are already set.
11424 have_x=yes
11425 else
698dcdb6
VZ
11426if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
11427 echo $ac_n "(cached) $ac_c" 1>&6
ab9b9eab
VZ
11428else
11429 # One or both of the vars are not set, and there is no cached value.
698dcdb6
VZ
11430ac_x_includes=NO ac_x_libraries=NO
11431rm -fr conftestdir
11432if mkdir conftestdir; then
11433 cd conftestdir
ab9b9eab 11434 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
698dcdb6 11435 cat > Imakefile <<'EOF'
ab9b9eab
VZ
11436acfindx:
11437 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
11438EOF
11439 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
11440 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
11441 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
11442 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
10f2d63a 11443 for ac_extension in a so sl; do
ab9b9eab 11444 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
698dcdb6 11445 test -f $ac_im_libdir/libX11.$ac_extension; then
ab9b9eab 11446 ac_im_usrlibdir=$ac_im_libdir; break
10f2d63a
VZ
11447 fi
11448 done
ab9b9eab
VZ
11449 # Screen out bogus values from the imake configuration. They are
11450 # bogus both because they are the default anyway, and because
11451 # using them would break gcc on systems where it needs fixed includes.
698dcdb6 11452 case "$ac_im_incroot" in
ab9b9eab 11453 /usr/include) ;;
698dcdb6 11454 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
ab9b9eab 11455 esac
698dcdb6 11456 case "$ac_im_usrlibdir" in
ab9b9eab 11457 /usr/lib | /lib) ;;
698dcdb6 11458 *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
ab9b9eab 11459 esac
ba337fe7 11460 fi
ab9b9eab 11461 cd ..
698dcdb6 11462 rm -fr conftestdir
ab9b9eab 11463fi
10f2d63a 11464
698dcdb6
VZ
11465if test "$ac_x_includes" = NO; then
11466 # Guess where to find include files, by looking for this one X11 .h file.
11467 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
11468
ab9b9eab 11469 # First, try using that file with no special directory specified.
698dcdb6 11470cat > conftest.$ac_ext <<EOF
658974ae 11471#line 11472 "configure"
ab9b9eab 11472#include "confdefs.h"
698dcdb6
VZ
11473#include <$x_direct_test_include>
11474EOF
11475ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
658974ae 11476{ (eval echo configure:11477: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
11477ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11478if test -z "$ac_err"; then
11479 rm -rf conftest*
ab9b9eab
VZ
11480 # We can compile using X headers with no special include directory.
11481ac_x_includes=
11482else
698dcdb6
VZ
11483 echo "$ac_err" >&5
11484 echo "configure: failed program was:" >&5
ab9b9eab 11485 cat conftest.$ac_ext >&5
698dcdb6
VZ
11486 rm -rf conftest*
11487 # Look for the header file in a standard set of common directories.
11488# Check X11 before X11Rn because it is often a symlink to the current release.
11489 for ac_dir in \
11490 /usr/X11/include \
11491 /usr/X11R6/include \
11492 /usr/X11R5/include \
11493 /usr/X11R4/include \
11494 \
11495 /usr/include/X11 \
11496 /usr/include/X11R6 \
11497 /usr/include/X11R5 \
11498 /usr/include/X11R4 \
11499 \
11500 /usr/local/X11/include \
11501 /usr/local/X11R6/include \
11502 /usr/local/X11R5/include \
11503 /usr/local/X11R4/include \
11504 \
11505 /usr/local/include/X11 \
11506 /usr/local/include/X11R6 \
11507 /usr/local/include/X11R5 \
11508 /usr/local/include/X11R4 \
11509 \
11510 /usr/X386/include \
11511 /usr/x386/include \
11512 /usr/XFree86/include/X11 \
11513 \
11514 /usr/include \
11515 /usr/local/include \
11516 /usr/unsupported/include \
11517 /usr/athena/include \
11518 /usr/local/x11r5/include \
11519 /usr/lpp/Xamples/include \
11520 \
11521 /usr/openwin/include \
11522 /usr/openwin/share/include \
11523 ; \
11524 do
11525 if test -r "$ac_dir/$x_direct_test_include"; then
11526 ac_x_includes=$ac_dir
11527 break
11528 fi
11529 done
ab9b9eab 11530fi
698dcdb6
VZ
11531rm -f conftest*
11532fi # $ac_x_includes = NO
10f2d63a 11533
698dcdb6 11534if test "$ac_x_libraries" = NO; then
ab9b9eab 11535 # Check for the libraries.
698dcdb6
VZ
11536
11537 test -z "$x_direct_test_library" && x_direct_test_library=Xt
11538 test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
11539
ab9b9eab
VZ
11540 # See if we find them without any special options.
11541 # Don't add to $LIBS permanently.
698dcdb6
VZ
11542 ac_save_LIBS="$LIBS"
11543 LIBS="-l$x_direct_test_library $LIBS"
11544cat > conftest.$ac_ext <<EOF
658974ae 11545#line 11546 "configure"
ab9b9eab 11546#include "confdefs.h"
698dcdb6
VZ
11547
11548int main() {
11549${x_direct_test_function}()
11550; return 0; }
11551EOF
658974ae 11552if { (eval echo configure:11553: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
11553 rm -rf conftest*
11554 LIBS="$ac_save_LIBS"
ab9b9eab
VZ
11555# We can link X programs with no special library path.
11556ac_x_libraries=
11557else
698dcdb6
VZ
11558 echo "configure: failed program was:" >&5
11559 cat conftest.$ac_ext >&5
11560 rm -rf conftest*
11561 LIBS="$ac_save_LIBS"
11562# First see if replacing the include by lib works.
11563# Check X11 before X11Rn because it is often a symlink to the current release.
11564for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
11565 /usr/X11/lib \
11566 /usr/X11R6/lib \
11567 /usr/X11R5/lib \
11568 /usr/X11R4/lib \
11569 \
11570 /usr/lib/X11 \
11571 /usr/lib/X11R6 \
11572 /usr/lib/X11R5 \
11573 /usr/lib/X11R4 \
11574 \
11575 /usr/local/X11/lib \
11576 /usr/local/X11R6/lib \
11577 /usr/local/X11R5/lib \
11578 /usr/local/X11R4/lib \
11579 \
11580 /usr/local/lib/X11 \
11581 /usr/local/lib/X11R6 \
11582 /usr/local/lib/X11R5 \
11583 /usr/local/lib/X11R4 \
11584 \
11585 /usr/X386/lib \
11586 /usr/x386/lib \
11587 /usr/XFree86/lib/X11 \
11588 \
11589 /usr/lib \
11590 /usr/local/lib \
11591 /usr/unsupported/lib \
11592 /usr/athena/lib \
11593 /usr/local/x11r5/lib \
11594 /usr/lpp/Xamples/lib \
11595 /lib/usr/lib/X11 \
11596 \
11597 /usr/openwin/lib \
11598 /usr/openwin/share/lib \
11599 ; \
ab9b9eab
VZ
11600do
11601 for ac_extension in a so sl; do
698dcdb6 11602 if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
ab9b9eab
VZ
11603 ac_x_libraries=$ac_dir
11604 break 2
10f2d63a 11605 fi
10f2d63a 11606 done
ab9b9eab
VZ
11607done
11608fi
698dcdb6
VZ
11609rm -f conftest*
11610fi # $ac_x_libraries = NO
10f2d63a 11611
698dcdb6 11612if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
ab9b9eab
VZ
11613 # Didn't find X anywhere. Cache the known absence of X.
11614 ac_cv_have_x="have_x=no"
11615else
11616 # Record where we found X for the cache.
11617 ac_cv_have_x="have_x=yes \
11618 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
11619fi
11620fi
10f2d63a 11621 fi
ab9b9eab
VZ
11622 eval "$ac_cv_have_x"
11623fi # $with_x != no
10f2d63a 11624
ab9b9eab 11625if test "$have_x" != yes; then
698dcdb6 11626 echo "$ac_t""$have_x" 1>&6
ab9b9eab
VZ
11627 no_x=yes
11628else
11629 # If each of the values was on the command line, it overrides each guess.
11630 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
11631 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
11632 # Update the cache value to reflect the command line values.
11633 ac_cv_have_x="have_x=yes \
11634 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
698dcdb6 11635 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
ab9b9eab 11636fi
10f2d63a 11637
ab9b9eab
VZ
11638if test "$no_x" = yes; then
11639 # Not all programs may use this symbol, but it does not hurt to define it.
698dcdb6 11640 cat >> confdefs.h <<\EOF
ab9b9eab
VZ
11641#define X_DISPLAY_MISSING 1
11642EOF
10f2d63a 11643
ab9b9eab
VZ
11644 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
11645else
11646 if test -n "$x_includes"; then
11647 X_CFLAGS="$X_CFLAGS -I$x_includes"
10f2d63a
VZ
11648 fi
11649
ab9b9eab
VZ
11650 # It would also be nice to do this for all -L options, not just this one.
11651 if test -n "$x_libraries"; then
11652 X_LIBS="$X_LIBS -L$x_libraries"
11653 # For Solaris; some versions of Sun CC require a space after -R and
11654 # others require no space. Words are not sufficient . . . .
698dcdb6 11655 case "`(uname -sr) 2>/dev/null`" in
ab9b9eab 11656 "SunOS 5"*)
698dcdb6 11657 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
658974ae 11658echo "configure:11659: checking whether -R must be followed by a space" >&5
698dcdb6
VZ
11659 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
11660 cat > conftest.$ac_ext <<EOF
658974ae 11661#line 11662 "configure"
ab9b9eab 11662#include "confdefs.h"
10f2d63a 11663
698dcdb6 11664int main() {
788deba1 11665
698dcdb6
VZ
11666; return 0; }
11667EOF
658974ae 11668if { (eval echo configure:11669: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6 11669 rm -rf conftest*
ab9b9eab
VZ
11670 ac_R_nospace=yes
11671else
698dcdb6
VZ
11672 echo "configure: failed program was:" >&5
11673 cat conftest.$ac_ext >&5
11674 rm -rf conftest*
11675 ac_R_nospace=no
ab9b9eab 11676fi
698dcdb6 11677rm -f conftest*
ab9b9eab 11678 if test $ac_R_nospace = yes; then
698dcdb6 11679 echo "$ac_t""no" 1>&6
ab9b9eab
VZ
11680 X_LIBS="$X_LIBS -R$x_libraries"
11681 else
11682 LIBS="$ac_xsave_LIBS -R $x_libraries"
698dcdb6 11683 cat > conftest.$ac_ext <<EOF
658974ae 11684#line 11685 "configure"
ab9b9eab 11685#include "confdefs.h"
788deba1 11686
698dcdb6 11687int main() {
ab9b9eab 11688
698dcdb6
VZ
11689; return 0; }
11690EOF
658974ae 11691if { (eval echo configure:11692: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6 11692 rm -rf conftest*
ab9b9eab
VZ
11693 ac_R_space=yes
11694else
698dcdb6
VZ
11695 echo "configure: failed program was:" >&5
11696 cat conftest.$ac_ext >&5
11697 rm -rf conftest*
11698 ac_R_space=no
ab9b9eab 11699fi
698dcdb6 11700rm -f conftest*
ab9b9eab 11701 if test $ac_R_space = yes; then
698dcdb6 11702 echo "$ac_t""yes" 1>&6
ab9b9eab
VZ
11703 X_LIBS="$X_LIBS -R $x_libraries"
11704 else
698dcdb6 11705 echo "$ac_t""neither works" 1>&6
ab9b9eab
VZ
11706 fi
11707 fi
698dcdb6 11708 LIBS="$ac_xsave_LIBS"
ab9b9eab
VZ
11709 esac
11710 fi
11711
11712 # Check for system-dependent libraries X programs must link with.
11713 # Do this before checking for the system-independent R6 libraries
11714 # (-lICE), since we may need -lsocket or whatever for X linking.
11715
11716 if test "$ISC" = yes; then
11717 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
11718 else
698dcdb6
VZ
11719 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
11720 # libraries were built with DECnet support. And karl@cs.umb.edu says
ab9b9eab 11721 # the Alpha needs dnet_stub (dnet does not exist).
698dcdb6 11722 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
658974ae 11723echo "configure:11724: checking for dnet_ntoa in -ldnet" >&5
698dcdb6
VZ
11724ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
11725if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11726 echo $ac_n "(cached) $ac_c" 1>&6
ab9b9eab 11727else
698dcdb6 11728 ac_save_LIBS="$LIBS"
ab9b9eab 11729LIBS="-ldnet $LIBS"
698dcdb6 11730cat > conftest.$ac_ext <<EOF
658974ae 11731#line 11732 "configure"
ab9b9eab
VZ
11732#include "confdefs.h"
11733/* Override any gcc2 internal prototype to avoid an error. */
11734/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
11735 builtin and then its argument prototype would still apply. */
11736char dnet_ntoa();
11737
11738int main() {
11739dnet_ntoa()
11740; return 0; }
11741EOF
658974ae 11742if { (eval echo configure:11743: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
11743 rm -rf conftest*
11744 eval "ac_cv_lib_$ac_lib_var=yes"
11745else
11746 echo "configure: failed program was:" >&5
11747 cat conftest.$ac_ext >&5
11748 rm -rf conftest*
11749 eval "ac_cv_lib_$ac_lib_var=no"
11750fi
11751rm -f conftest*
11752LIBS="$ac_save_LIBS"
11753
11754fi
11755if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11756 echo "$ac_t""yes" 1>&6
ab9b9eab 11757 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
698dcdb6
VZ
11758else
11759 echo "$ac_t""no" 1>&6
ab9b9eab
VZ
11760fi
11761
11762 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
698dcdb6 11763 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
658974ae 11764echo "configure:11765: checking for dnet_ntoa in -ldnet_stub" >&5
698dcdb6
VZ
11765ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
11766if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11767 echo $ac_n "(cached) $ac_c" 1>&6
ab9b9eab 11768else
698dcdb6 11769 ac_save_LIBS="$LIBS"
ab9b9eab 11770LIBS="-ldnet_stub $LIBS"
698dcdb6 11771cat > conftest.$ac_ext <<EOF
658974ae 11772#line 11773 "configure"
ab9b9eab
VZ
11773#include "confdefs.h"
11774/* Override any gcc2 internal prototype to avoid an error. */
11775/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
11776 builtin and then its argument prototype would still apply. */
11777char dnet_ntoa();
11778
11779int main() {
11780dnet_ntoa()
11781; return 0; }
11782EOF
658974ae 11783if { (eval echo configure:11784: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
11784 rm -rf conftest*
11785 eval "ac_cv_lib_$ac_lib_var=yes"
11786else
11787 echo "configure: failed program was:" >&5
11788 cat conftest.$ac_ext >&5
11789 rm -rf conftest*
11790 eval "ac_cv_lib_$ac_lib_var=no"
11791fi
11792rm -f conftest*
11793LIBS="$ac_save_LIBS"
11794
11795fi
11796if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11797 echo "$ac_t""yes" 1>&6
ab9b9eab 11798 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
698dcdb6
VZ
11799else
11800 echo "$ac_t""no" 1>&6
ab9b9eab
VZ
11801fi
11802
11803 fi
11804
11805 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
11806 # to get the SysV transport functions.
698dcdb6 11807 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
ab9b9eab
VZ
11808 # needs -lnsl.
11809 # The nsl library prevents programs from opening the X display
698dcdb6
VZ
11810 # on Irix 5.2, according to dickey@clark.net.
11811 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
658974ae 11812echo "configure:11813: checking for gethostbyname" >&5
698dcdb6
VZ
11813if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
11814 echo $ac_n "(cached) $ac_c" 1>&6
11815else
11816 cat > conftest.$ac_ext <<EOF
658974ae 11817#line 11818 "configure"
ab9b9eab
VZ
11818#include "confdefs.h"
11819/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 11820 which can conflict with char gethostbyname(); below. */
ab9b9eab
VZ
11821#include <assert.h>
11822/* Override any gcc2 internal prototype to avoid an error. */
11823/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
11824 builtin and then its argument prototype would still apply. */
11825char gethostbyname();
11826
11827int main() {
ab9b9eab
VZ
11828
11829/* The GNU C library defines this for functions which it implements
11830 to always fail with ENOSYS. Some functions are actually named
11831 something starting with __ and the normal name is an alias. */
11832#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
11833choke me
11834#else
698dcdb6 11835gethostbyname();
ab9b9eab
VZ
11836#endif
11837
698dcdb6
VZ
11838; return 0; }
11839EOF
658974ae 11840if { (eval echo configure:11841: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
11841 rm -rf conftest*
11842 eval "ac_cv_func_gethostbyname=yes"
11843else
11844 echo "configure: failed program was:" >&5
11845 cat conftest.$ac_ext >&5
11846 rm -rf conftest*
11847 eval "ac_cv_func_gethostbyname=no"
11848fi
11849rm -f conftest*
11850fi
11851
11852if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
11853 echo "$ac_t""yes" 1>&6
11854 :
11855else
11856 echo "$ac_t""no" 1>&6
11857fi
ab9b9eab
VZ
11858
11859 if test $ac_cv_func_gethostbyname = no; then
698dcdb6 11860 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
658974ae 11861echo "configure:11862: checking for gethostbyname in -lnsl" >&5
698dcdb6
VZ
11862ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
11863if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11864 echo $ac_n "(cached) $ac_c" 1>&6
ab9b9eab 11865else
698dcdb6 11866 ac_save_LIBS="$LIBS"
ab9b9eab 11867LIBS="-lnsl $LIBS"
698dcdb6 11868cat > conftest.$ac_ext <<EOF
658974ae 11869#line 11870 "configure"
ab9b9eab
VZ
11870#include "confdefs.h"
11871/* Override any gcc2 internal prototype to avoid an error. */
11872/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
11873 builtin and then its argument prototype would still apply. */
11874char gethostbyname();
6232543b 11875
698dcdb6
VZ
11876int main() {
11877gethostbyname()
11878; return 0; }
11879EOF
658974ae 11880if { (eval echo configure:11881: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
11881 rm -rf conftest*
11882 eval "ac_cv_lib_$ac_lib_var=yes"
703e0a69 11883else
698dcdb6
VZ
11884 echo "configure: failed program was:" >&5
11885 cat conftest.$ac_ext >&5
11886 rm -rf conftest*
11887 eval "ac_cv_lib_$ac_lib_var=no"
11888fi
11889rm -f conftest*
11890LIBS="$ac_save_LIBS"
1e487827 11891
698dcdb6
VZ
11892fi
11893if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11894 echo "$ac_t""yes" 1>&6
11895 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
11896else
11897 echo "$ac_t""no" 1>&6
ab9b9eab
VZ
11898fi
11899
11900 fi
11901
11902 # lieder@skyler.mavd.honeywell.com says without -lsocket,
11903 # socket/setsockopt and other routines are undefined under SCO ODT
11904 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
698dcdb6
VZ
11905 # on later versions), says simon@lia.di.epfl.ch: it contains
11906 # gethostby* variants that don't use the nameserver (or something).
11907 # -lsocket must be given before -lnsl if both are needed.
11908 # We assume that if connect needs -lnsl, so does gethostbyname.
11909 echo $ac_n "checking for connect""... $ac_c" 1>&6
658974ae 11910echo "configure:11911: checking for connect" >&5
698dcdb6
VZ
11911if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
11912 echo $ac_n "(cached) $ac_c" 1>&6
11913else
11914 cat > conftest.$ac_ext <<EOF
658974ae 11915#line 11916 "configure"
ab9b9eab
VZ
11916#include "confdefs.h"
11917/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 11918 which can conflict with char connect(); below. */
ab9b9eab
VZ
11919#include <assert.h>
11920/* Override any gcc2 internal prototype to avoid an error. */
11921/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
11922 builtin and then its argument prototype would still apply. */
11923char connect();
11924
11925int main() {
ab9b9eab
VZ
11926
11927/* The GNU C library defines this for functions which it implements
11928 to always fail with ENOSYS. Some functions are actually named
11929 something starting with __ and the normal name is an alias. */
11930#if defined (__stub_connect) || defined (__stub___connect)
11931choke me
11932#else
698dcdb6 11933connect();
ab9b9eab
VZ
11934#endif
11935
698dcdb6
VZ
11936; return 0; }
11937EOF
658974ae 11938if { (eval echo configure:11939: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
11939 rm -rf conftest*
11940 eval "ac_cv_func_connect=yes"
11941else
11942 echo "configure: failed program was:" >&5
11943 cat conftest.$ac_ext >&5
11944 rm -rf conftest*
11945 eval "ac_cv_func_connect=no"
11946fi
11947rm -f conftest*
11948fi
11949
11950if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
11951 echo "$ac_t""yes" 1>&6
11952 :
11953else
11954 echo "$ac_t""no" 1>&6
11955fi
ab9b9eab
VZ
11956
11957 if test $ac_cv_func_connect = no; then
698dcdb6 11958 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
658974ae 11959echo "configure:11960: checking for connect in -lsocket" >&5
698dcdb6
VZ
11960ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
11961if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11962 echo $ac_n "(cached) $ac_c" 1>&6
ab9b9eab 11963else
698dcdb6 11964 ac_save_LIBS="$LIBS"
ab9b9eab 11965LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
698dcdb6 11966cat > conftest.$ac_ext <<EOF
658974ae 11967#line 11968 "configure"
ab9b9eab
VZ
11968#include "confdefs.h"
11969/* Override any gcc2 internal prototype to avoid an error. */
11970/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
11971 builtin and then its argument prototype would still apply. */
11972char connect();
11973
11974int main() {
11975connect()
11976; return 0; }
11977EOF
658974ae 11978if { (eval echo configure:11979: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
11979 rm -rf conftest*
11980 eval "ac_cv_lib_$ac_lib_var=yes"
11981else
11982 echo "configure: failed program was:" >&5
11983 cat conftest.$ac_ext >&5
11984 rm -rf conftest*
11985 eval "ac_cv_lib_$ac_lib_var=no"
11986fi
11987rm -f conftest*
11988LIBS="$ac_save_LIBS"
11989
11990fi
11991if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11992 echo "$ac_t""yes" 1>&6
ab9b9eab 11993 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
698dcdb6
VZ
11994else
11995 echo "$ac_t""no" 1>&6
ab9b9eab
VZ
11996fi
11997
11998 fi
11999
698dcdb6
VZ
12000 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
12001 echo $ac_n "checking for remove""... $ac_c" 1>&6
658974ae 12002echo "configure:12003: checking for remove" >&5
698dcdb6
VZ
12003if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
12004 echo $ac_n "(cached) $ac_c" 1>&6
ab9b9eab 12005else
698dcdb6 12006 cat > conftest.$ac_ext <<EOF
658974ae 12007#line 12008 "configure"
ab9b9eab
VZ
12008#include "confdefs.h"
12009/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 12010 which can conflict with char remove(); below. */
ab9b9eab
VZ
12011#include <assert.h>
12012/* Override any gcc2 internal prototype to avoid an error. */
12013/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
12014 builtin and then its argument prototype would still apply. */
12015char remove();
12016
12017int main() {
ab9b9eab
VZ
12018
12019/* The GNU C library defines this for functions which it implements
12020 to always fail with ENOSYS. Some functions are actually named
12021 something starting with __ and the normal name is an alias. */
12022#if defined (__stub_remove) || defined (__stub___remove)
12023choke me
12024#else
698dcdb6 12025remove();
ab9b9eab
VZ
12026#endif
12027
698dcdb6
VZ
12028; return 0; }
12029EOF
658974ae 12030if { (eval echo configure:12031: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
12031 rm -rf conftest*
12032 eval "ac_cv_func_remove=yes"
12033else
12034 echo "configure: failed program was:" >&5
12035 cat conftest.$ac_ext >&5
12036 rm -rf conftest*
12037 eval "ac_cv_func_remove=no"
12038fi
12039rm -f conftest*
12040fi
12041
12042if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
12043 echo "$ac_t""yes" 1>&6
12044 :
12045else
12046 echo "$ac_t""no" 1>&6
12047fi
ab9b9eab
VZ
12048
12049 if test $ac_cv_func_remove = no; then
698dcdb6 12050 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
658974ae 12051echo "configure:12052: checking for remove in -lposix" >&5
698dcdb6
VZ
12052ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
12053if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12054 echo $ac_n "(cached) $ac_c" 1>&6
ab9b9eab 12055else
698dcdb6 12056 ac_save_LIBS="$LIBS"
ab9b9eab 12057LIBS="-lposix $LIBS"
698dcdb6 12058cat > conftest.$ac_ext <<EOF
658974ae 12059#line 12060 "configure"
ab9b9eab
VZ
12060#include "confdefs.h"
12061/* Override any gcc2 internal prototype to avoid an error. */
12062/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
12063 builtin and then its argument prototype would still apply. */
12064char remove();
12065
12066int main() {
12067remove()
12068; return 0; }
12069EOF
658974ae 12070if { (eval echo configure:12071: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
12071 rm -rf conftest*
12072 eval "ac_cv_lib_$ac_lib_var=yes"
12073else
12074 echo "configure: failed program was:" >&5
12075 cat conftest.$ac_ext >&5
12076 rm -rf conftest*
12077 eval "ac_cv_lib_$ac_lib_var=no"
12078fi
12079rm -f conftest*
12080LIBS="$ac_save_LIBS"
12081
12082fi
12083if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12084 echo "$ac_t""yes" 1>&6
ab9b9eab 12085 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
698dcdb6
VZ
12086else
12087 echo "$ac_t""no" 1>&6
ab9b9eab
VZ
12088fi
12089
12090 fi
12091
12092 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
698dcdb6 12093 echo $ac_n "checking for shmat""... $ac_c" 1>&6
658974ae 12094echo "configure:12095: checking for shmat" >&5
698dcdb6
VZ
12095if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
12096 echo $ac_n "(cached) $ac_c" 1>&6
ab9b9eab 12097else
698dcdb6 12098 cat > conftest.$ac_ext <<EOF
658974ae 12099#line 12100 "configure"
ab9b9eab
VZ
12100#include "confdefs.h"
12101/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 12102 which can conflict with char shmat(); below. */
ab9b9eab
VZ
12103#include <assert.h>
12104/* Override any gcc2 internal prototype to avoid an error. */
12105/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
12106 builtin and then its argument prototype would still apply. */
12107char shmat();
12108
12109int main() {
ab9b9eab
VZ
12110
12111/* The GNU C library defines this for functions which it implements
12112 to always fail with ENOSYS. Some functions are actually named
12113 something starting with __ and the normal name is an alias. */
12114#if defined (__stub_shmat) || defined (__stub___shmat)
12115choke me
12116#else
698dcdb6 12117shmat();
ab9b9eab
VZ
12118#endif
12119
698dcdb6
VZ
12120; return 0; }
12121EOF
658974ae 12122if { (eval echo configure:12123: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
12123 rm -rf conftest*
12124 eval "ac_cv_func_shmat=yes"
12125else
12126 echo "configure: failed program was:" >&5
12127 cat conftest.$ac_ext >&5
12128 rm -rf conftest*
12129 eval "ac_cv_func_shmat=no"
12130fi
12131rm -f conftest*
12132fi
12133
12134if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
12135 echo "$ac_t""yes" 1>&6
12136 :
12137else
12138 echo "$ac_t""no" 1>&6
12139fi
ab9b9eab
VZ
12140
12141 if test $ac_cv_func_shmat = no; then
698dcdb6 12142 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
658974ae 12143echo "configure:12144: checking for shmat in -lipc" >&5
698dcdb6
VZ
12144ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
12145if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12146 echo $ac_n "(cached) $ac_c" 1>&6
ab9b9eab 12147else
698dcdb6 12148 ac_save_LIBS="$LIBS"
ab9b9eab 12149LIBS="-lipc $LIBS"
698dcdb6 12150cat > conftest.$ac_ext <<EOF
658974ae 12151#line 12152 "configure"
ab9b9eab
VZ
12152#include "confdefs.h"
12153/* Override any gcc2 internal prototype to avoid an error. */
12154/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
12155 builtin and then its argument prototype would still apply. */
12156char shmat();
12157
12158int main() {
12159shmat()
12160; return 0; }
12161EOF
658974ae 12162if { (eval echo configure:12163: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
12163 rm -rf conftest*
12164 eval "ac_cv_lib_$ac_lib_var=yes"
12165else
12166 echo "configure: failed program was:" >&5
12167 cat conftest.$ac_ext >&5
12168 rm -rf conftest*
12169 eval "ac_cv_lib_$ac_lib_var=no"
12170fi
12171rm -f conftest*
12172LIBS="$ac_save_LIBS"
12173
12174fi
12175if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12176 echo "$ac_t""yes" 1>&6
ab9b9eab 12177 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
698dcdb6
VZ
12178else
12179 echo "$ac_t""no" 1>&6
ab9b9eab
VZ
12180fi
12181
12182 fi
12183 fi
12184
12185 # Check for libraries that X11R6 Xt/Xaw programs need.
698dcdb6 12186 ac_save_LDFLAGS="$LDFLAGS"
ab9b9eab
VZ
12187 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
12188 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
12189 # check for ICE first), but we must link in the order -lSM -lICE or
12190 # we get undefined symbols. So assume we have SM if we have ICE.
12191 # These have to be linked with before -lX11, unlike the other
12192 # libraries we check for below, so use a different variable.
698dcdb6
VZ
12193 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
12194 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
658974ae 12195echo "configure:12196: checking for IceConnectionNumber in -lICE" >&5
698dcdb6
VZ
12196ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
12197if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12198 echo $ac_n "(cached) $ac_c" 1>&6
12199else
12200 ac_save_LIBS="$LIBS"
ab9b9eab 12201LIBS="-lICE $X_EXTRA_LIBS $LIBS"
698dcdb6 12202cat > conftest.$ac_ext <<EOF
658974ae 12203#line 12204 "configure"
ab9b9eab
VZ
12204#include "confdefs.h"
12205/* Override any gcc2 internal prototype to avoid an error. */
12206/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
12207 builtin and then its argument prototype would still apply. */
12208char IceConnectionNumber();
12209
12210int main() {
12211IceConnectionNumber()
12212; return 0; }
12213EOF
658974ae 12214if { (eval echo configure:12215: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
12215 rm -rf conftest*
12216 eval "ac_cv_lib_$ac_lib_var=yes"
12217else
12218 echo "configure: failed program was:" >&5
12219 cat conftest.$ac_ext >&5
12220 rm -rf conftest*
12221 eval "ac_cv_lib_$ac_lib_var=no"
12222fi
12223rm -f conftest*
12224LIBS="$ac_save_LIBS"
12225
12226fi
12227if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12228 echo "$ac_t""yes" 1>&6
ab9b9eab 12229 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
698dcdb6
VZ
12230else
12231 echo "$ac_t""no" 1>&6
ab9b9eab
VZ
12232fi
12233
698dcdb6 12234 LDFLAGS="$ac_save_LDFLAGS"
ab9b9eab
VZ
12235
12236fi
12237
12238
1e6feb95
VZ
12239 if test "$no_x" = "yes"; then
12240 { echo "configure: error: X11 not found" 1>&2; exit 1; }
12241 fi
ab9b9eab 12242
1e6feb95
VZ
12243 GUI_TK_LIBRARY="$X_LIBS"
12244 TOOLKIT_INCLUDE="$X_CFLAGS"
1e6feb95 12245 AFMINSTALL=afminstall
1e6feb95 12246 COMPILED_X_PROGRAM=0
cd6d6d5b 12247
1e6feb95 12248 echo $ac_n "checking for Motif/Lesstif headers""... $ac_c" 1>&6
658974ae 12249echo "configure:12250: checking for Motif/Lesstif headers" >&5
1e6feb95 12250
ab9b9eab
VZ
12251ac_find_includes=
12252for ac_dir in $SEARCH_INCLUDE;
12253 do
12254 if test -f "$ac_dir/Xm/Xm.h"; then
12255 ac_find_includes=$ac_dir
12256 break
12257 fi
12258 done
12259
1e6feb95
VZ
12260 if test "$ac_find_includes" != "" ; then
12261 echo "$ac_t""found $ac_find_includes" 1>&6
12262 else
12263 cat > conftest.$ac_ext <<EOF
658974ae 12264#line 12265 "configure"
cd6d6d5b
VZ
12265#include "confdefs.h"
12266
1e6feb95
VZ
12267 #include <Xm/Xm.h>
12268
698dcdb6 12269int main() {
cd6d6d5b 12270
1e6feb95 12271 int version;
1e6feb95
VZ
12272 version = xmUseVersion;
12273
698dcdb6
VZ
12274; return 0; }
12275EOF
658974ae 12276if { (eval echo configure:12277: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6
VZ
12277 rm -rf conftest*
12278
1e6feb95
VZ
12279 echo "$ac_t""found in default search path" 1>&6
12280 COMPILED_X_PROGRAM=1
12281
cd6d6d5b 12282else
698dcdb6
VZ
12283 echo "configure: failed program was:" >&5
12284 cat conftest.$ac_ext >&5
12285 rm -rf conftest*
12286
1e6feb95
VZ
12287 echo "$ac_t""no" 1>&6
12288 { echo "configure: error: please set CFLAGS to contain the location of Xm/Xm.h" 1>&2; exit 1; }
12289
698dcdb6 12290
cd6d6d5b 12291fi
698dcdb6 12292rm -f conftest*
1e6feb95 12293 fi
ab9b9eab 12294
1e6feb95
VZ
12295 if test "$COMPILED_X_PROGRAM" = 0; then
12296 echo $ac_n "checking for Motif/Lesstif library""... $ac_c" 1>&6
658974ae 12297echo "configure:12298: checking for Motif/Lesstif library" >&5
1e6feb95 12298
ab9b9eab
VZ
12299ac_find_libraries=
12300for ac_dir in $SEARCH_LIB;
12301 do
f11bdd03 12302 for ac_extension in a so sl dylib; do
ab9b9eab
VZ
12303 if test -f "$ac_dir/libXm.$ac_extension"; then
12304 ac_find_libraries=$ac_dir
12305 break 2
12306 fi
12307 done
12308 done
12309
1e6feb95
VZ
12310 if test "$ac_find_libraries" != "" ; then
12311
ab9b9eab
VZ
12312 ac_path_to_include=$ac_find_includes
12313 echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null
12314 result=$?
12315 if test $result = 0; then
12316 ac_path_to_include=""
12317 else
62d0491b 12318 ac_path_to_include=" -I$ac_find_includes"
ab9b9eab
VZ
12319 fi
12320
1e6feb95 12321
ab9b9eab
VZ
12322 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
12323 result=$?
12324 if test $result = 0; then
12325 ac_path_to_link=""
12326 else
62d0491b 12327 ac_path_to_link=" -L$ac_find_libraries"
ab9b9eab
VZ
12328 fi
12329
698dcdb6 12330
62d0491b
RL
12331 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
12332 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE$ac_path_to_include"
1e6feb95
VZ
12333 echo "$ac_t""found at $ac_find_libraries" 1>&6
12334 else
12335 cat > conftest.$ac_ext <<EOF
658974ae 12336#line 12337 "configure"
cd6d6d5b 12337#include "confdefs.h"
ab9b9eab 12338
1e6feb95
VZ
12339 #include <Xm/Xm.h>
12340
698dcdb6 12341int main() {
ab9b9eab 12342
1e6feb95 12343 int version;
1e6feb95
VZ
12344 version = xmUseVersion;
12345
698dcdb6
VZ
12346; return 0; }
12347EOF
658974ae 12348if { (eval echo configure:12349: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6
VZ
12349 rm -rf conftest*
12350
1e6feb95
VZ
12351 echo "$ac_t""found in default search path" 1>&6
12352 COMPILED_X_PROGRAM=1
12353
cd6d6d5b 12354else
698dcdb6
VZ
12355 echo "configure: failed program was:" >&5
12356 cat conftest.$ac_ext >&5
12357 rm -rf conftest*
12358
1e6feb95
VZ
12359 echo "$ac_t""no" 1>&6
12360 { echo "configure: error: please set LDFLAGS to contain the location of libXm" 1>&2; exit 1; }
12361
698dcdb6 12362
cd6d6d5b 12363fi
698dcdb6 12364rm -f conftest*
1e6feb95 12365 fi
cd6d6d5b 12366 fi
ab9b9eab 12367
3d63bc3a 12368 xpm_link=
1e6feb95 12369 echo $ac_n "checking for Xpm library""... $ac_c" 1>&6
658974ae 12370echo "configure:12371: checking for Xpm library" >&5
1e6feb95 12371
ab9b9eab
VZ
12372ac_find_libraries=
12373for ac_dir in $SEARCH_LIB;
12374 do
f11bdd03 12375 for ac_extension in a so sl dylib; do
ab9b9eab
VZ
12376 if test -f "$ac_dir/libXpm.$ac_extension"; then
12377 ac_find_libraries=$ac_dir
12378 break 2
12379 fi
12380 done
12381 done
12382
1e6feb95
VZ
12383 if test "$ac_find_libraries" != "" ; then
12384
ab9b9eab
VZ
12385 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
12386 result=$?
12387 if test $result = 0; then
12388 ac_path_to_link=""
12389 else
62d0491b 12390 ac_path_to_link=" -L$ac_find_libraries"
ab9b9eab
VZ
12391 fi
12392
62d0491b 12393 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
3d63bc3a 12394 xpm_link=" -lXpm"
1e6feb95 12395 cat >> confdefs.h <<\EOF
ab9b9eab
VZ
12396#define wxHAVE_LIB_XPM 1
12397EOF
12398
1e6feb95
VZ
12399 echo "$ac_t""found at $ac_find_libraries" 1>&6
12400 else
12401 cat > conftest.$ac_ext <<EOF
658974ae 12402#line 12403 "configure"
cd6d6d5b
VZ
12403#include "confdefs.h"
12404
1e6feb95
VZ
12405 #include <X11/xpm.h>
12406
698dcdb6 12407int main() {
cd6d6d5b 12408
1e6feb95 12409 int version;
1e6feb95
VZ
12410 version = XpmLibraryVersion();
12411
698dcdb6
VZ
12412; return 0; }
12413EOF
658974ae 12414if { (eval echo configure:12415: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6
VZ
12415 rm -rf conftest*
12416
3d63bc3a 12417 xpm_link=" -lXpm"
3a922bb4 12418 cat >> confdefs.h <<\EOF
3ace2e6d
SN
12419#define wxHAVE_LIB_XPM 1
12420EOF
12421
1e6feb95
VZ
12422 echo "$ac_t""found in default search path" 1>&6
12423 COMPILED_X_PROGRAM=0
12424
cd6d6d5b 12425else
698dcdb6
VZ
12426 echo "configure: failed program was:" >&5
12427 cat conftest.$ac_ext >&5
12428 rm -rf conftest*
12429
1e6feb95
VZ
12430 echo "$ac_t""no" 1>&6
12431 echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2
12432
698dcdb6 12433
cd6d6d5b 12434fi
698dcdb6 12435rm -f conftest*
1e6feb95
VZ
12436 fi
12437
3d63bc3a 12438 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXm$xpm_link -lXmu -lXext -lXt -lX11"
334f0d2c 12439 TOOLKIT_VPATH="\${top_srcdir}/src/motif${PATH_IFS}\${top_srcdir}/src/motif/xmcombo"
1e6feb95
VZ
12440 TOOLKIT=MOTIF
12441 GUIDIST=MOTIF_DIST
ab9b9eab
VZ
12442 fi
12443
683dccda
GD
12444 if test "$wxUSE_MAC" = 1; then
12445 if test "$wxUSE_PRECOMP" = "yes"; then
3d63bc3a 12446 CPPFLAGS="$CPPFLAGS -cpp-precomp"
683dccda 12447 fi
3d63bc3a
RL
12448 CPPFLAGS="$CPPFLAGS -I/Developer/Headers/FlatCarbon -I\${top_srcdir}/src/mac/morefile"
12449 CFLAGS="$CFLAGS -fpascal-strings"
12450 CXXFLAGS="$CXXFLAGS -fpascal-strings"
d08b457b 12451
13c0541d 12452 TOOLKIT_VPATH="\${top_srcdir}/src/mac${PATH_IFS}\${top_srcdir}/src/mac/morefile"
1e6feb95 12453 TOOLKIT=MAC
683dccda 12454 GUIDIST=MACX_DIST
1e6feb95 12455 fi
10f2d63a 12456
1e6feb95
VZ
12457 if test "$wxUSE_PM" = 1; then
12458 TOOLKIT=PM
12459 GUIDIST=GTK_DIST
12460 fi
b4085ce6 12461
3a922bb4 12462 if test "$TOOLKIT" = "PM" ; then
1e6feb95 12463 TOOLKIT_DIR="os2"
3a922bb4
RL
12464 else
12465 TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"`
1e6feb95 12466 fi
e07802fc 12467
3a922bb4 12468 PORT_FILES="\${top_srcdir}/src/\$(TOOLKITDIR)/files.lst"
1e6feb95 12469
3a922bb4
RL
12470 if test "$wxUSE_UNIVERSAL" = "yes"; then
12471 ALL_OBJECTS="\$(GUI_LOWLEVEL_OBJS) \${UNIVOBJS}"
12472 PORT_FILES="${PORT_FILES} \${top_srcdir}/src/univ/files.lst"
12473 TOOLKIT_VPATH="\${top_srcdir}/src/univ${PATH_IFS}\${top_srcdir}/src/univ/themes${PATH_IFS}\${top_srcdir}/src/${TOOLKIT_DIR}"
12474 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__"
12475 WIDGET_SET=univ
f6bcfd97 12476 else
3a922bb4 12477 ALL_OBJECTS="\$(GUIOBJS)"
1e6feb95
VZ
12478 fi
12479
ba0e650c 12480 ALL_OBJECTS="${ALL_OBJECTS} \$(COMMONOBJS) \$(GENERICOBJS)"
1e6feb95 12481
f9bc1684 12482 if test "$TOOLKIT" != "MSW" -a "$USE_DOS" != 1; then
1e6feb95
VZ
12483 ALL_OBJECTS="${ALL_OBJECTS} \$(UNIXOBJS)"
12484 fi
12485
12486 if test "$wxUSE_HTML" = "yes"; then
12487 ALL_OBJECTS="${ALL_OBJECTS} \$(HTMLOBJS)"
12488 fi
3fcdd07b 12489
3a922bb4
RL
12490 if test "$TOOLKIT" != "MSW" -a "$wxUSE_ODBC" = "yes" ; then
12491 ALL_OBJECTS="${ALL_OBJECTS} \$(IODBCOBJS)"
831b3152 12492 fi
4f14bcd8 12493 if test "$wxUSE_LIBJPEG" = "builtin" ; then
2224580a 12494 ALL_OBJECTS="${ALL_OBJECTS} \$(JPEGOBJS)"
d9d8273d 12495 fi
4f14bcd8 12496 if test "$wxUSE_LIBTIFF" = "builtin" ; then
d9d8273d
RR
12497 ALL_OBJECTS="${ALL_OBJECTS} \$(TIFFOBJS)"
12498 fi
4f14bcd8 12499 if test "$wxUSE_LIBPNG" = "builtin" ; then
d9d8273d
RR
12500 ALL_OBJECTS="${ALL_OBJECTS} \$(PNGOBJS)"
12501 fi
4f14bcd8 12502 if test "$wxUSE_FREETYPE" = "builtin" ; then
3fed1840
RR
12503 ALL_OBJECTS="${ALL_OBJECTS} \$(FREETYPEOBJS)"
12504 fi
2224580a 12505
2224580a
VZ
12506 GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST"
12507 DISTDIR="wx\$(TOOLKIT)"
10f2d63a 12508else
dad6c0ea
VZ
12509 USE_GUI=0
12510
3a922bb4 12511 TOOLKIT_DIR="base"
f6bcfd97 12512
3a922bb4
RL
12513 if test "$USE_WIN32" = 1 ; then
12514 ALL_OBJECTS="\${BASE_OBJS} \${BASE_MSW_OBJS}"
12515 TOOLKIT_VPATH="\${top_srcdir}/src/msw"
0b2effe9 12516
3a922bb4 12517 TOOLKIT="MSW"
f6bcfd97 12518 else
3a922bb4
RL
12519 ALL_OBJECTS="\${BASE_OBJS} \${BASE_UNIX_OBJS}"
12520 TOOLKIT_VPATH="\${top_srcdir}/src/unix"
f6bcfd97
BP
12521 fi
12522
831b3152 12523 PORT_FILES="\${top_srcdir}/src/files.lst"
2224580a
VZ
12524
12525 GUIDIST="BASE_DIST"
12526 DISTDIR="wxBase"
10f2d63a
VZ
12527fi
12528
4f14bcd8 12529if test "$wxUSE_REGEX" = "builtin" ; then
3a922bb4
RL
12530 ALL_OBJECTS="${ALL_OBJECTS} \$(REGEXOBJS)"
12531fi
4f14bcd8 12532if test "$wxUSE_ZLIB" = "builtin" ; then
3a922bb4
RL
12533 ALL_OBJECTS="${ALL_OBJECTS} \$(ZLIBOBJS)"
12534fi
10f2d63a 12535
3a922bb4 12536if test "$wxUSE_OPENGL" = "yes"; then
62d0491b
RL
12537 if test "$wxUSE_MAC" = 1; then
12538 OPENGL_LIBS="-framework OpenGL -framework AGL"
12539 else
570cb8cb 12540
62d0491b 12541 ac_safe=`echo "GL/gl.h" | sed 'y%./+-%__p_%'`
3a922bb4 12542echo $ac_n "checking for GL/gl.h""... $ac_c" 1>&6
658974ae 12543echo "configure:12544: checking for GL/gl.h" >&5
3a922bb4
RL
12544if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
12545 echo $ac_n "(cached) $ac_c" 1>&6
12546else
12547 cat > conftest.$ac_ext <<EOF
658974ae 12548#line 12549 "configure"
3a922bb4
RL
12549#include "confdefs.h"
12550#include <GL/gl.h>
12551EOF
12552ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
658974ae 12553{ (eval echo configure:12554: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3a922bb4
RL
12554ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12555if test -z "$ac_err"; then
12556 rm -rf conftest*
12557 eval "ac_cv_header_$ac_safe=yes"
12558else
12559 echo "$ac_err" >&5
12560 echo "configure: failed program was:" >&5
12561 cat conftest.$ac_ext >&5
12562 rm -rf conftest*
12563 eval "ac_cv_header_$ac_safe=no"
12564fi
12565rm -f conftest*
12566fi
12567if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12568 echo "$ac_t""yes" 1>&6
12569
1352efdf 12570 echo $ac_n "checking for -lGL""... $ac_c" 1>&6
658974ae 12571echo "configure:12572: checking for -lGL" >&5
57964555 12572
62d0491b
RL
12573ac_find_libraries=
12574for ac_dir in $SEARCH_LIB;
12575 do
12576 for ac_extension in a so sl dylib; do
12577 if test -f "$ac_dir/libGL.$ac_extension"; then
12578 ac_find_libraries=$ac_dir
12579 break 2
12580 fi
12581 done
12582 done
3a922bb4 12583
62d0491b
RL
12584 if test "$ac_find_libraries" != "" ; then
12585
12586 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
12587 result=$?
12588 if test $result = 0; then
12589 ac_path_to_link=""
12590 else
12591 ac_path_to_link=" -L$ac_find_libraries"
12592 fi
3a922bb4 12593
62d0491b
RL
12594 LDFLAGS_GL="$LDFLAGS$ac_path_to_link"
12595 OPENGL_LIBS="-lGL -lGLU"
1352efdf 12596 echo "$ac_t""yes" 1>&6
62d0491b 12597 else
1352efdf
RL
12598 echo "$ac_t""no" 1>&6
12599 echo $ac_n "checking for -lMesaGL""... $ac_c" 1>&6
658974ae 12600echo "configure:12601: checking for -lMesaGL" >&5
62d0491b
RL
12601
12602ac_find_libraries=
12603for ac_dir in $SEARCH_LIB;
12604 do
12605 for ac_extension in a so sl dylib; do
12606 if test -f "$ac_dir/libMesaGL.$ac_extension"; then
12607 ac_find_libraries=$ac_dir
12608 break 2
12609 fi
12610 done
12611 done
3a922bb4 12612
62d0491b 12613 if test "$ac_find_libraries" != "" ; then
57964555 12614
62d0491b
RL
12615 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
12616 result=$?
12617 if test $result = 0; then
12618 ac_path_to_link=""
12619 else
12620 ac_path_to_link=" -L$ac_find_libraries"
12621 fi
3a922bb4 12622
62d0491b
RL
12623 LDFLAGS_GL="$LDFLAGS$ac_path_to_link"
12624 OPENGL_LIBS="-lMesaGL -lMesaGLU"
1352efdf
RL
12625 echo "$ac_t""yes" 1>&6
12626 else
12627 echo "$ac_t""no" 1>&6
62d0491b
RL
12628 fi
12629 fi
12630
3a922bb4
RL
12631else
12632 echo "$ac_t""no" 1>&6
3a922bb4
RL
12633fi
12634
6f754473 12635
62d0491b
RL
12636
12637# AC_CHECK_HEADER(GL/gl.h,
12638# [
12639# AC_CHECK_LIB(GL, glFlush,
12640# [
12641# OPENGL_LIBS="-lGL -lGLU"
12642# ],
12643# [
12644# AC_CHECK_LIB(MesaGL, glFlush,
12645# [
12646# OPENGL_LIBS="-lMesaGL -lMesaGLU"
12647# ],
12648# [],
12649# [-lm])
12650# ],
12651# [-lm])
12652# ])
12653
12654 if test "x$OPENGL_LIBS" = "x"; then
12655 { echo "configure: error: OpenGL libraries not available" 1>&2; exit 1; }
12656 fi
6f754473 12657 fi
6f754473 12658
62d0491b
RL
12659 if test "$wxUSE_OPENGL" = "yes"; then
12660 cat >> confdefs.h <<\EOF
6f754473
VZ
12661#define wxUSE_OPENGL 1
12662EOF
12663
62d0491b 12664 cat >> confdefs.h <<\EOF
6f754473
VZ
12665#define wxUSE_GLCANVAS 1
12666EOF
12667
62d0491b
RL
12668 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl"
12669 fi
3a922bb4
RL
12670fi
12671
12672if test -z "$TOOLKIT_VPATH" ; then
12673 TOOLKIT_VPATH="\${top_srcdir}/src/${TOOLKIT_DIR}"
12674fi
12675
12676if test -n "$TOOLKIT" ; then
12677 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WX${TOOLKIT}__"
12678fi
12679
f676c7ff
MB
12680lib_unicode_suffix=
12681if test "$wxUSE_UNICODE" = "yes"; then
12682 lib_unicode_suffix=u
12683fi
12684
3a922bb4
RL
12685lib_debug_suffix=
12686if test "$wxUSE_DEBUG_FLAG" = "yes"; then
12687 lib_debug_suffix=d
3a922bb4
RL
12688fi
12689
f676c7ff
MB
12690TOOLCHAIN_NAME="${TOOLKIT_DIR}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}-${WX_RELEASE}"
12691TOOLCHAIN_NAME_GL="${TOOLKIT_DIR}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}_gl-${WX_RELEASE}"
3a922bb4
RL
12692
12693if test "$cross_compiling" = "yes"; then
12694 TOOLCHAIN_NAME="${TOOLCHAIN_NAME}-${host_alias}"
12695 TOOLCHAIN_NAME_GL="${TOOLCHAIN_NAME_GL}-${host_alias}"
12696fi
12697
12698WX_LIBRARY="wx_${TOOLCHAIN_NAME}"
12699WX_LIBRARY_GL="wx_${TOOLCHAIN_NAME_GL}"
12700
3a922bb4
RL
12701WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
12702WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
12703
12704WX_LIBRARY_LINK1="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}"
12705WX_LIBRARY_LINK2="lib${WX_LIBRARY}.${SO_SUFFIX}"
12706WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}"
12707WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}"
12708
d08b457b 12709WX_RESOURCES_MACOSX="lib${WX_LIBRARY}.rsrc"
e23081de 12710WX_RESOURCES_MACOSX_COMPILED="lib${WX_LIBRARY}.r"
3a922bb4 12711
978f1259
RL
12712case "${host}" in
12713 *-*-cygwin* | *-*-mingw32* )
12714
2da4f892 12715
978f1259
RL
12716
12717 if test "$cross_compiling" != "yes"; then
12718 WX_LIBRARY="wxmsw${WX_MSW_VERSION}${lib_unicode_suffix}${lib_debug_suffix}"
12719 WX_LIBRARY_GL="wxmsw_gl${WX_MSW_VERSION}${lib_unicode_suffix}${lib_debug_suffix}"
12720 WX_LIBRARY_NAME_SHARED="${WX_LIBRARY}.${SO_SUFFIX}"
12721 WX_LIBRARY_NAME_SHARED_GL="${WX_LIBRARY_GL}.${SO_SUFFIX}"
2da4f892
RL
12722 else
12723 WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${SO_SUFFIX}"
12724 WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}"
978f1259
RL
12725 fi
12726
12727esac
12728
12729WX_LIBRARY_NAME_STATIC="lib${WX_LIBRARY}.a"
12730WX_LIBRARY_NAME_STATIC_GL="lib${WX_LIBRARY_GL}.a"
12731
12732WXCONFIG_LIBS="-l${WX_LIBRARY}"
885d4bf5 12733WXCONFIG_LIBS_STATIC="lib${WX_LIBRARY}.a"
978f1259
RL
12734
12735if test "$wxUSE_OPENGL" = "yes"; then
885d4bf5
VS
12736 WXCONFIG_LIBS_GL="-l${WX_LIBRARY_GL} ${OPENGL_LIBS}"
12737 WXCONFIG_LIBS_STATIC_GL="lib${WX_LIBRARY_GL}.a ${OPENGL_LIBS}"
978f1259
RL
12738fi
12739
12740
3a922bb4
RL
12741
12742if test "$wxUSE_SHARED" = "yes"; then
55e80573
VZ
12743
12744 if test "$wxUSE_OPENGL" = "yes"; then
12745 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL"
3a922bb4 12746 WX_ALL="\$(build_libdir)/${WX_LIBRARY_LINK1} \$(build_libdir)/${WX_LIBRARY_LINK1_GL}"
55e80573
VZ
12747 else
12748 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
3a922bb4 12749 WX_ALL="\$(build_libdir)/${WX_LIBRARY_LINK1}"
55e80573
VZ
12750 fi
12751
dd4f7467 12752 if test "$GCC" = "yes"; then
55e80573 12753 PIC_FLAG="-fPIC"
dd4f7467 12754 fi
55e80573
VZ
12755
12756 SHARED_LD="${CXX} -shared -o"
698dcdb6 12757
10f2d63a
VZ
12758 case "${host}" in
12759 *-hp-hpux* )
d569ea8d
GD
12760 if test "$GCC" == "yes"; then
12761 SHARED_LD="${SHARED_LD} ${PIC_FLAG}"
12762 else
3d63bc3a 12763 LDFLAGS="$LDFLAGS -L/usr/lib"
f6bcfd97 12764
10f2d63a
VZ
12765 SHARED_LD="${CXX} -b -o"
12766 PIC_FLAG="+Z"
12767 fi
55e80573 12768
7b7a7637
RL
12769 if test "$wxUSE_OPENGL" = "yes"; then
12770 WX_ALL_INSTALLED="preinstall_gl"
12771 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED} \$(build_libdir)/${WX_LIBRARY_NAME_SHARED_GL}"
12772 else
12773 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED}"
12774 fi
10f2d63a 12775 ;;
b12915c1 12776
55e80573
VZ
12777 *-*-linux* )
12778 if test "$GCC" != "yes"; then
12779 echo $ac_n "checking for Intel compiler""... $ac_c" 1>&6
658974ae 12780echo "configure:12781: checking for Intel compiler" >&5
55e80573
VZ
12781if eval "test \"`echo '$''{'wx_cv_prog_icc'+set}'`\" = set"; then
12782 echo $ac_n "(cached) $ac_c" 1>&6
12783else
12784
12785 cat > conftest.$ac_ext <<EOF
658974ae 12786#line 12787 "configure"
55e80573
VZ
12787#include "confdefs.h"
12788
12789int main() {
12790
12791 #ifndef __INTEL_COMPILER
dd4f7467 12792 #error Not icc
55e80573
VZ
12793 #endif
12794
12795; return 0; }
12796EOF
658974ae 12797if { (eval echo configure:12798: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
55e80573
VZ
12798 rm -rf conftest*
12799 wx_cv_prog_icc=yes
12800else
12801 echo "configure: failed program was:" >&5
12802 cat conftest.$ac_ext >&5
12803 rm -rf conftest*
12804 wx_cv_prog_icc=no
12805
12806fi
12807rm -f conftest*
12808
12809fi
12810
12811echo "$ac_t""$wx_cv_prog_icc" 1>&6
55e80573
VZ
12812 if test "$wx_cv_prog_icc" = "yes"; then
12813 PIC_FLAG="-KPIC"
12814 fi
12815 fi
12816
3a922bb4
RL
12817 if test "$wxUSE_SONAME" = "yes" ; then
12818 SONAME_FLAGS="-Wl,-soname,${WX_LIBRARY_LINK1}"
12819 SONAME_FLAGS_GL="-Wl,-soname,${WX_LIBRARY_LINK1_GL}"
f6bcfd97 12820 WX_TARGET_LIBRARY_SONAME="-Wl,-soname,\$(TARGETLIB_LINK1)"
00cf1208 12821 fi
10f2d63a 12822 ;;
55e80573 12823
10f2d63a
VZ
12824 *-*-solaris2* )
12825 if test "$GCC" = yes ; then
f6bcfd97 12826 CPPFLAGS="$CPPFLAGS -isystem /usr/openwin/include"
10f2d63a
VZ
12827 else
12828 SHARED_LD="${CXX} -G -o"
12829 PIC_FLAG="-KPIC"
7b7a7637 12830 SONAME_FLAGS="-h ${WX_LIBRARY_NAME_SHARED}"
471944dc 12831 SONAME_FLAGS_GL="-h ${WX_LIBRARY_NAME_SHARED_GL}"
10f2d63a 12832 fi
10f2d63a 12833 ;;
55e80573 12834
b4085ce6 12835 *-*-darwin* )
156b2523
GD
12836 CFLAGS="$CFLAGS -fno-common -DDYLIB_INIT"
12837 CXXFLAGS="$CXXFLAGS -fno-common -DDYLIB_INIT"
12838 SHARED_LD="$CXX -dynamiclib -init _wxWindowsDylibInit -o"
ea5999b9 12839 PIC_FLAG="-dynamic -fPIC"
10f2d63a 12840 ;;
55e80573 12841
10f2d63a
VZ
12842 *-*-aix* )
12843 SHARED_LD="/usr/lpp/xlC/bin/makeC++SharedLib -p 0 -o"
10f2d63a 12844 ;;
55e80573 12845
7b7a7637 12846 *-*-cygwin* | *-*-mingw32* )
77e13408 12847
2da4f892 12848 WX_LIBRARY_IMPORTLIB="${WX_LIBRARY_NAME_SHARED}.a"
77e13408 12849
77e13408 12850 SHARED_LD="${CXX} -shared -Wl,--out-implib,lib/${WX_LIBRARY_IMPORTLIB} -o"
00c81359 12851 TOOLCHAIN_DLL_DEFS="${TOOLCHAIN_DLL_DEFS} -DWXUSINGDLL=1"
25d0687a
RL
12852
12853 PIC_FLAG="-UWXUSINGDLL -DWXMAKINGDLL=1 -D_DLL=1 -D_WINDLL=1"
7b7a7637
RL
12854
12855 if test "$wxUSE_OPENGL" = "yes"; then
f6bcfd97 12856 WX_ALL_INSTALLED="preinstall_gl"
978f1259 12857 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED} \$(build_libdir)/${WX_LIBRARY_NAME_SHARED_GL}"
f6bcfd97 12858 else
978f1259 12859 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED}"
f6bcfd97 12860 fi
10f2d63a 12861 ;;
55e80573 12862
6fa882bd 12863 *-pc-os2_emx | *-pc-os2-emx )
7b7a7637 12864 wxUSE_SHARED=no
10f2d63a 12865 ;;
55e80573 12866
b12915c1 12867 *-*-beos* )
e2b8b066 12868 SHARED_LD="${LD} -shared -o"
b12915c1 12869 ;;
55e80573
VZ
12870
12871 *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | \
12872 *-*-sunos4* | \
12873 *-*-irix5* | *-*-irix6* | \
12874 *-*-osf* | \
12875 *-*-dgux5* | \
12876 *-*-sysv5* )
12877 ;;
12878
10f2d63a 12879 *)
7b7a7637 12880 { echo "configure: error: unknown system type $host." 1>&2; exit 1; }
10f2d63a
VZ
12881 esac
12882
12883 if test "x$WX_TARGET_LIBRARY" = "x"; then
12884 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_SHARED}"
bdad4e7e 12885 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_SHARED_GL}"
10f2d63a 12886 fi
55e80573 12887
3711412e 12888 WX_TARGET_LIBRARY_TYPE="so"
885d4bf5 12889 INSTALL_LIBRARY='$(INSTALL_PROGRAM)'
3a922bb4 12890fi
f6bcfd97 12891
3a922bb4 12892if test "$wxUSE_SHARED" = "no"; then
f6bcfd97 12893
3a922bb4 12894 if test "$wxUSE_GUI" = "no" -o "$USE_WIN32" = 1 ; then
f6bcfd97
BP
12895 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall"
12896 fi
12897
6fa882bd
RR
12898 if test "$wxUSE_MAC" = 1; then
12899 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall"
12900 fi
12901
3a922bb4
RL
12902 if test "$wxUSE_OPENGL" = "yes"; then
12903 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall_gl"
12904 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC} \$(build_libdir)/${WX_LIBRARY_NAME_STATIC_GL}"
12905 else
12906 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC}"
12907 fi
698dcdb6 12908
3a922bb4
RL
12909 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}"
12910 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_STATIC_GL}"
12911
12912 WX_TARGET_LIBRARY_TYPE="a"
885d4bf5 12913 INSTALL_LIBRARY='$(INSTALL_DATA)'
10f2d63a 12914fi
10f2d63a 12915
d08b457b
GD
12916if test "$wxUSE_MAC" = 1; then
12917 WX_ALL="${WX_ALL} \$(build_libdir)/lib${WX_LIBRARY}.r"
e23081de 12918 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall_res"
d08b457b
GD
12919 # Extract the first word of "Rez", so it can be a program name with args.
12920set dummy Rez; ac_word=$2
12921echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
658974ae 12922echo "configure:12923: checking for $ac_word" >&5
d08b457b
GD
12923if eval "test \"`echo '$''{'ac_cv_prog_RESCOMP'+set}'`\" = set"; then
12924 echo $ac_n "(cached) $ac_c" 1>&6
12925else
12926 if test -n "$RESCOMP"; then
12927 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
12928else
12929 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
12930 ac_dummy="$PATH"
12931 for ac_dir in $ac_dummy; do
12932 test -z "$ac_dir" && ac_dir=.
12933 if test -f $ac_dir/$ac_word; then
12934 ac_cv_prog_RESCOMP="Rez"
12935 break
12936 fi
12937 done
12938 IFS="$ac_save_ifs"
12939 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez"
12940fi
12941fi
12942RESCOMP="$ac_cv_prog_RESCOMP"
12943if test -n "$RESCOMP"; then
12944 echo "$ac_t""$RESCOMP" 1>&6
12945else
12946 echo "$ac_t""no" 1>&6
12947fi
12948
9f8148b1
GD
12949 # Extract the first word of "DeRez", so it can be a program name with args.
12950set dummy DeRez; ac_word=$2
d08b457b 12951echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
658974ae 12952echo "configure:12953: checking for $ac_word" >&5
d08b457b
GD
12953if eval "test \"`echo '$''{'ac_cv_prog_DEREZ'+set}'`\" = set"; then
12954 echo $ac_n "(cached) $ac_c" 1>&6
12955else
12956 if test -n "$DEREZ"; then
12957 ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test.
12958else
12959 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
12960 ac_dummy="$PATH"
12961 for ac_dir in $ac_dummy; do
12962 test -z "$ac_dir" && ac_dir=.
12963 if test -f $ac_dir/$ac_word; then
9f8148b1 12964 ac_cv_prog_DEREZ="DeRez"
d08b457b
GD
12965 break
12966 fi
12967 done
12968 IFS="$ac_save_ifs"
9f8148b1 12969 test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/DeRez"
d08b457b
GD
12970fi
12971fi
12972DEREZ="$ac_cv_prog_DEREZ"
12973if test -n "$DEREZ"; then
12974 echo "$ac_t""$DEREZ" 1>&6
12975else
12976 echo "$ac_t""no" 1>&6
12977fi
12978
12979 LIBWXMACRES="\$(top_builddir)/lib/lib${WX_LIBRARY}.r"
12980 LIBWXMACRESCOMP="\$(RESCOMP) Carbon.r -t APPL ${LIBWXMACRES} -o \$(BIN_PROGRAM)"
e23081de 12981 LIBWXMACRESWXCONFIG="${RESCOMP} Carbon.r -t APPL \${prefix}/lib/${WX_RESOURCES_MACOSX_COMPILED} -o"
d08b457b
GD
12982fi
12983
3a922bb4 12984
13c0541d
GD
12985if test "$wxUSE_MAC" != 1; then
12986 for ac_hdr in strings.h
9cfadba2 12987do
698dcdb6
VZ
12988ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12989echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
658974ae 12990echo "configure:12991: checking for $ac_hdr" >&5
698dcdb6
VZ
12991if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
12992 echo $ac_n "(cached) $ac_c" 1>&6
12993else
12994 cat > conftest.$ac_ext <<EOF
658974ae 12995#line 12996 "configure"
9cfadba2 12996#include "confdefs.h"
698dcdb6
VZ
12997#include <$ac_hdr>
12998EOF
12999ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
658974ae 13000{ (eval echo configure:13001: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
13001ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13002if test -z "$ac_err"; then
13003 rm -rf conftest*
13004 eval "ac_cv_header_$ac_safe=yes"
6232543b 13005else
698dcdb6
VZ
13006 echo "$ac_err" >&5
13007 echo "configure: failed program was:" >&5
9cfadba2 13008 cat conftest.$ac_ext >&5
698dcdb6
VZ
13009 rm -rf conftest*
13010 eval "ac_cv_header_$ac_safe=no"
9cfadba2 13011fi
698dcdb6 13012rm -f conftest*
9cfadba2 13013fi
698dcdb6
VZ
13014if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13015 echo "$ac_t""yes" 1>&6
13016 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
13017 cat >> confdefs.h <<EOF
13018#define $ac_tr_hdr 1
9cfadba2 13019EOF
698dcdb6
VZ
13020
13021else
13022 echo "$ac_t""no" 1>&6
9cfadba2
VZ
13023fi
13024done
10f2d63a 13025
13c0541d
GD
13026fi
13027
3a922bb4 13028for ac_hdr in stdlib.h
10f2d63a 13029do
698dcdb6
VZ
13030ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
13031echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
658974ae 13032echo "configure:13033: checking for $ac_hdr" >&5
698dcdb6
VZ
13033if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
13034 echo $ac_n "(cached) $ac_c" 1>&6
13035else
13036 cat > conftest.$ac_ext <<EOF
658974ae 13037#line 13038 "configure"
10f2d63a 13038#include "confdefs.h"
698dcdb6
VZ
13039#include <$ac_hdr>
13040EOF
13041ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
658974ae 13042{ (eval echo configure:13043: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
13043ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13044if test -z "$ac_err"; then
13045 rm -rf conftest*
13046 eval "ac_cv_header_$ac_safe=yes"
6232543b 13047else
698dcdb6
VZ
13048 echo "$ac_err" >&5
13049 echo "configure: failed program was:" >&5
10f2d63a 13050 cat conftest.$ac_ext >&5
698dcdb6
VZ
13051 rm -rf conftest*
13052 eval "ac_cv_header_$ac_safe=no"
10f2d63a 13053fi
698dcdb6 13054rm -f conftest*
10f2d63a 13055fi
698dcdb6
VZ
13056if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13057 echo "$ac_t""yes" 1>&6
13058 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
13059 cat >> confdefs.h <<EOF
13060#define $ac_tr_hdr 1
10f2d63a 13061EOF
698dcdb6
VZ
13062
13063else
13064 echo "$ac_t""no" 1>&6
10f2d63a
VZ
13065fi
13066done
13067
9f8148b1 13068for ac_hdr in malloc.h
10f2d63a 13069do
698dcdb6
VZ
13070ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
13071echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
658974ae 13072echo "configure:13073: checking for $ac_hdr" >&5
698dcdb6
VZ
13073if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
13074 echo $ac_n "(cached) $ac_c" 1>&6
13075else
13076 cat > conftest.$ac_ext <<EOF
658974ae 13077#line 13078 "configure"
10f2d63a 13078#include "confdefs.h"
698dcdb6
VZ
13079#include <$ac_hdr>
13080EOF
13081ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
658974ae 13082{ (eval echo configure:13083: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
13083ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13084if test -z "$ac_err"; then
13085 rm -rf conftest*
13086 eval "ac_cv_header_$ac_safe=yes"
6f72b082 13087else
698dcdb6
VZ
13088 echo "$ac_err" >&5
13089 echo "configure: failed program was:" >&5
6f72b082 13090 cat conftest.$ac_ext >&5
698dcdb6
VZ
13091 rm -rf conftest*
13092 eval "ac_cv_header_$ac_safe=no"
6f72b082 13093fi
698dcdb6 13094rm -f conftest*
6f72b082 13095fi
698dcdb6
VZ
13096if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13097 echo "$ac_t""yes" 1>&6
13098 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
13099 cat >> confdefs.h <<EOF
13100#define $ac_tr_hdr 1
6f72b082 13101EOF
698dcdb6
VZ
13102
13103else
13104 echo "$ac_t""no" 1>&6
6f72b082
OK
13105fi
13106done
13107
9f8148b1 13108for ac_hdr in unistd.h
6f72b082 13109do
698dcdb6
VZ
13110ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
13111echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
658974ae 13112echo "configure:13113: checking for $ac_hdr" >&5
698dcdb6
VZ
13113if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
13114 echo $ac_n "(cached) $ac_c" 1>&6
13115else
13116 cat > conftest.$ac_ext <<EOF
658974ae 13117#line 13118 "configure"
6f72b082 13118#include "confdefs.h"
698dcdb6
VZ
13119#include <$ac_hdr>
13120EOF
13121ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
658974ae 13122{ (eval echo configure:13123: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
13123ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13124if test -z "$ac_err"; then
13125 rm -rf conftest*
13126 eval "ac_cv_header_$ac_safe=yes"
6f72b082 13127else
698dcdb6
VZ
13128 echo "$ac_err" >&5
13129 echo "configure: failed program was:" >&5
6f72b082 13130 cat conftest.$ac_ext >&5
698dcdb6
VZ
13131 rm -rf conftest*
13132 eval "ac_cv_header_$ac_safe=no"
6f72b082 13133fi
698dcdb6 13134rm -f conftest*
6f72b082 13135fi
698dcdb6
VZ
13136if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13137 echo "$ac_t""yes" 1>&6
13138 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
13139 cat >> confdefs.h <<EOF
13140#define $ac_tr_hdr 1
6f72b082 13141EOF
698dcdb6
VZ
13142
13143else
13144 echo "$ac_t""no" 1>&6
6f72b082
OK
13145fi
13146done
13147
9f8148b1 13148for ac_hdr in wchar.h
6f72b082 13149do
698dcdb6
VZ
13150ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
13151echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
658974ae 13152echo "configure:13153: checking for $ac_hdr" >&5
698dcdb6
VZ
13153if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
13154 echo $ac_n "(cached) $ac_c" 1>&6
13155else
13156 cat > conftest.$ac_ext <<EOF
658974ae 13157#line 13158 "configure"
6f72b082 13158#include "confdefs.h"
698dcdb6
VZ
13159#include <$ac_hdr>
13160EOF
13161ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
658974ae 13162{ (eval echo configure:13163: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
13163ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13164if test -z "$ac_err"; then
13165 rm -rf conftest*
13166 eval "ac_cv_header_$ac_safe=yes"
10f2d63a 13167else
698dcdb6
VZ
13168 echo "$ac_err" >&5
13169 echo "configure: failed program was:" >&5
10f2d63a 13170 cat conftest.$ac_ext >&5
698dcdb6
VZ
13171 rm -rf conftest*
13172 eval "ac_cv_header_$ac_safe=no"
10f2d63a 13173fi
698dcdb6 13174rm -f conftest*
10f2d63a 13175fi
698dcdb6
VZ
13176if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13177 echo "$ac_t""yes" 1>&6
13178 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
13179 cat >> confdefs.h <<EOF
13180#define $ac_tr_hdr 1
10f2d63a 13181EOF
698dcdb6
VZ
13182
13183else
13184 echo "$ac_t""no" 1>&6
10f2d63a
VZ
13185fi
13186done
13187
9f8148b1 13188for ac_hdr in wcstr.h
0fb0dd83 13189do
698dcdb6
VZ
13190ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
13191echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
658974ae 13192echo "configure:13193: checking for $ac_hdr" >&5
698dcdb6
VZ
13193if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
13194 echo $ac_n "(cached) $ac_c" 1>&6
13195else
13196 cat > conftest.$ac_ext <<EOF
658974ae 13197#line 13198 "configure"
0fb0dd83 13198#include "confdefs.h"
698dcdb6
VZ
13199#include <$ac_hdr>
13200EOF
13201ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
658974ae 13202{ (eval echo configure:13203: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
13203ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13204if test -z "$ac_err"; then
13205 rm -rf conftest*
13206 eval "ac_cv_header_$ac_safe=yes"
0fb0dd83 13207else
698dcdb6
VZ
13208 echo "$ac_err" >&5
13209 echo "configure: failed program was:" >&5
0fb0dd83 13210 cat conftest.$ac_ext >&5
698dcdb6
VZ
13211 rm -rf conftest*
13212 eval "ac_cv_header_$ac_safe=no"
0fb0dd83 13213fi
698dcdb6 13214rm -f conftest*
0fb0dd83 13215fi
698dcdb6
VZ
13216if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13217 echo "$ac_t""yes" 1>&6
13218 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
13219 cat >> confdefs.h <<EOF
13220#define $ac_tr_hdr 1
0fb0dd83 13221EOF
698dcdb6
VZ
13222
13223else
13224 echo "$ac_t""no" 1>&6
0fb0dd83
RR
13225fi
13226done
13227
9f8148b1 13228for ac_hdr in wctype.h
1f8ae82f 13229do
698dcdb6
VZ
13230ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
13231echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
658974ae 13232echo "configure:13233: checking for $ac_hdr" >&5
698dcdb6
VZ
13233if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
13234 echo $ac_n "(cached) $ac_c" 1>&6
13235else
13236 cat > conftest.$ac_ext <<EOF
658974ae 13237#line 13238 "configure"
1f8ae82f 13238#include "confdefs.h"
698dcdb6
VZ
13239#include <$ac_hdr>
13240EOF
13241ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
658974ae 13242{ (eval echo configure:13243: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
13243ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13244if test -z "$ac_err"; then
13245 rm -rf conftest*
13246 eval "ac_cv_header_$ac_safe=yes"
1f8ae82f 13247else
698dcdb6
VZ
13248 echo "$ac_err" >&5
13249 echo "configure: failed program was:" >&5
1f8ae82f 13250 cat conftest.$ac_ext >&5
698dcdb6
VZ
13251 rm -rf conftest*
13252 eval "ac_cv_header_$ac_safe=no"
1f8ae82f 13253fi
698dcdb6 13254rm -f conftest*
1f8ae82f 13255fi
698dcdb6
VZ
13256if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13257 echo "$ac_t""yes" 1>&6
13258 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
13259 cat >> confdefs.h <<EOF
13260#define $ac_tr_hdr 1
1f8ae82f 13261EOF
698dcdb6
VZ
13262
13263else
13264 echo "$ac_t""no" 1>&6
1f8ae82f
GD
13265fi
13266done
13267
9f8148b1 13268for ac_hdr in fnmatch.h
10f2d63a 13269do
698dcdb6
VZ
13270ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
13271echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
658974ae 13272echo "configure:13273: checking for $ac_hdr" >&5
698dcdb6
VZ
13273if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
13274 echo $ac_n "(cached) $ac_c" 1>&6
13275else
13276 cat > conftest.$ac_ext <<EOF
658974ae 13277#line 13278 "configure"
10f2d63a 13278#include "confdefs.h"
698dcdb6
VZ
13279#include <$ac_hdr>
13280EOF
13281ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
658974ae 13282{ (eval echo configure:13283: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
13283ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13284if test -z "$ac_err"; then
13285 rm -rf conftest*
13286 eval "ac_cv_header_$ac_safe=yes"
10f2d63a 13287else
698dcdb6
VZ
13288 echo "$ac_err" >&5
13289 echo "configure: failed program was:" >&5
10f2d63a 13290 cat conftest.$ac_ext >&5
698dcdb6
VZ
13291 rm -rf conftest*
13292 eval "ac_cv_header_$ac_safe=no"
10f2d63a 13293fi
698dcdb6 13294rm -f conftest*
10f2d63a 13295fi
698dcdb6
VZ
13296if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13297 echo "$ac_t""yes" 1>&6
13298 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
13299 cat >> confdefs.h <<EOF
13300#define $ac_tr_hdr 1
10f2d63a 13301EOF
698dcdb6
VZ
13302
13303else
13304 echo "$ac_t""no" 1>&6
10f2d63a
VZ
13305fi
13306done
13307
9f8148b1 13308for ac_hdr in iconv.h
0fbb762e
MB
13309do
13310ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
13311echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
658974ae 13312echo "configure:13313: checking for $ac_hdr" >&5
0fbb762e
MB
13313if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
13314 echo $ac_n "(cached) $ac_c" 1>&6
13315else
13316 cat > conftest.$ac_ext <<EOF
658974ae 13317#line 13318 "configure"
0fbb762e
MB
13318#include "confdefs.h"
13319#include <$ac_hdr>
13320EOF
13321ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
658974ae 13322{ (eval echo configure:13323: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
0fbb762e
MB
13323ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13324if test -z "$ac_err"; then
13325 rm -rf conftest*
13326 eval "ac_cv_header_$ac_safe=yes"
13327else
13328 echo "$ac_err" >&5
13329 echo "configure: failed program was:" >&5
13330 cat conftest.$ac_ext >&5
13331 rm -rf conftest*
13332 eval "ac_cv_header_$ac_safe=no"
13333fi
13334rm -f conftest*
13335fi
13336if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13337 echo "$ac_t""yes" 1>&6
13338 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
13339 cat >> confdefs.h <<EOF
13340#define $ac_tr_hdr 1
13341EOF
13342
13343else
13344 echo "$ac_t""no" 1>&6
13345fi
13346done
13347
9f8148b1
GD
13348for ac_hdr in langinfo.h
13349do
13350ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
13351echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
658974ae 13352echo "configure:13353: checking for $ac_hdr" >&5
9f8148b1
GD
13353if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
13354 echo $ac_n "(cached) $ac_c" 1>&6
13355else
13356 cat > conftest.$ac_ext <<EOF
658974ae 13357#line 13358 "configure"
9f8148b1
GD
13358#include "confdefs.h"
13359#include <$ac_hdr>
13360EOF
13361ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
658974ae 13362{ (eval echo configure:13363: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9f8148b1
GD
13363ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13364if test -z "$ac_err"; then
13365 rm -rf conftest*
13366 eval "ac_cv_header_$ac_safe=yes"
13367else
13368 echo "$ac_err" >&5
13369 echo "configure: failed program was:" >&5
13370 cat conftest.$ac_ext >&5
13371 rm -rf conftest*
13372 eval "ac_cv_header_$ac_safe=no"
13373fi
13374rm -f conftest*
13375fi
13376if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13377 echo "$ac_t""yes" 1>&6
13378 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
13379 cat >> confdefs.h <<EOF
13380#define $ac_tr_hdr 1
13381EOF
13382
13383else
13384 echo "$ac_t""no" 1>&6
13385fi
13386done
13387
10f2d63a 13388
3a922bb4
RL
13389if test "$wxUSE_GUI" = "yes"; then
13390 if test "$wxUSE_UNIX" = "yes"; then
13391 for ac_hdr in X11/XKBlib.h
29fd3c0c
VS
13392do
13393ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
13394echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
658974ae 13395echo "configure:13396: checking for $ac_hdr" >&5
29fd3c0c
VS
13396if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
13397 echo $ac_n "(cached) $ac_c" 1>&6
13398else
13399 cat > conftest.$ac_ext <<EOF
658974ae 13400#line 13401 "configure"
29fd3c0c
VS
13401#include "confdefs.h"
13402#include <$ac_hdr>
13403EOF
13404ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
658974ae 13405{ (eval echo configure:13406: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
29fd3c0c
VS
13406ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13407if test -z "$ac_err"; then
13408 rm -rf conftest*
13409 eval "ac_cv_header_$ac_safe=yes"
13410else
13411 echo "$ac_err" >&5
13412 echo "configure: failed program was:" >&5
13413 cat conftest.$ac_ext >&5
13414 rm -rf conftest*
13415 eval "ac_cv_header_$ac_safe=no"
13416fi
13417rm -f conftest*
13418fi
13419if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13420 echo "$ac_t""yes" 1>&6
13421 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
13422 cat >> confdefs.h <<EOF
13423#define $ac_tr_hdr 1
13424EOF
13425
13426else
13427 echo "$ac_t""no" 1>&6
13428fi
13429done
13430
3a922bb4 13431 fi
29fd3c0c
VS
13432fi
13433
698dcdb6
VZ
13434
13435echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
658974ae 13436echo "configure:13437: checking for ANSI C header files" >&5
698dcdb6
VZ
13437if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
13438 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 13439else
698dcdb6 13440 cat > conftest.$ac_ext <<EOF
658974ae 13441#line 13442 "configure"
10f2d63a
VZ
13442#include "confdefs.h"
13443#include <stdlib.h>
13444#include <stdarg.h>
13445#include <string.h>
13446#include <float.h>
698dcdb6
VZ
13447EOF
13448ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
658974ae 13449{ (eval echo configure:13450: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
13450ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13451if test -z "$ac_err"; then
13452 rm -rf conftest*
10f2d63a
VZ
13453 ac_cv_header_stdc=yes
13454else
698dcdb6
VZ
13455 echo "$ac_err" >&5
13456 echo "configure: failed program was:" >&5
10f2d63a 13457 cat conftest.$ac_ext >&5
698dcdb6 13458 rm -rf conftest*
10f2d63a
VZ
13459 ac_cv_header_stdc=no
13460fi
698dcdb6 13461rm -f conftest*
10f2d63a
VZ
13462
13463if test $ac_cv_header_stdc = yes; then
13464 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
698dcdb6 13465cat > conftest.$ac_ext <<EOF
658974ae 13466#line 13467 "configure"
10f2d63a
VZ
13467#include "confdefs.h"
13468#include <string.h>
698dcdb6 13469EOF
10f2d63a
VZ
13470if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13471 egrep "memchr" >/dev/null 2>&1; then
13472 :
13473else
698dcdb6 13474 rm -rf conftest*
10f2d63a
VZ
13475 ac_cv_header_stdc=no
13476fi
13477rm -f conftest*
13478
13479fi
13480
13481if test $ac_cv_header_stdc = yes; then
13482 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
698dcdb6 13483cat > conftest.$ac_ext <<EOF
658974ae 13484#line 13485 "configure"
10f2d63a
VZ
13485#include "confdefs.h"
13486#include <stdlib.h>
698dcdb6 13487EOF
10f2d63a
VZ
13488if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13489 egrep "free" >/dev/null 2>&1; then
13490 :
13491else
698dcdb6 13492 rm -rf conftest*
10f2d63a
VZ
13493 ac_cv_header_stdc=no
13494fi
13495rm -f conftest*
13496
13497fi
13498
13499if test $ac_cv_header_stdc = yes; then
13500 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
698dcdb6 13501if test "$cross_compiling" = yes; then
10f2d63a
VZ
13502 :
13503else
698dcdb6 13504 cat > conftest.$ac_ext <<EOF
658974ae 13505#line 13506 "configure"
10f2d63a
VZ
13506#include "confdefs.h"
13507#include <ctype.h>
698dcdb6
VZ
13508#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
13509#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1e487827 13510#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
698dcdb6
VZ
13511int main () { int i; for (i = 0; i < 256; i++)
13512if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
13513exit (0); }
13514
13515EOF
658974ae 13516if { (eval echo configure:13517: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
698dcdb6 13517then
10f2d63a
VZ
13518 :
13519else
698dcdb6
VZ
13520 echo "configure: failed program was:" >&5
13521 cat conftest.$ac_ext >&5
13522 rm -fr conftest*
13523 ac_cv_header_stdc=no
10f2d63a 13524fi
698dcdb6 13525rm -fr conftest*
10f2d63a 13526fi
698dcdb6 13527
10f2d63a
VZ
13528fi
13529fi
1e487827 13530
698dcdb6
VZ
13531echo "$ac_t""$ac_cv_header_stdc" 1>&6
13532if test $ac_cv_header_stdc = yes; then
13533 cat >> confdefs.h <<\EOF
10f2d63a
VZ
13534#define STDC_HEADERS 1
13535EOF
13536
13537fi
13538
698dcdb6 13539echo $ac_n "checking for mode_t""... $ac_c" 1>&6
658974ae 13540echo "configure:13541: checking for mode_t" >&5
698dcdb6
VZ
13541if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
13542 echo $ac_n "(cached) $ac_c" 1>&6
1e487827 13543else
698dcdb6 13544 cat > conftest.$ac_ext <<EOF
658974ae 13545#line 13546 "configure"
1e487827 13546#include "confdefs.h"
698dcdb6
VZ
13547#include <sys/types.h>
13548#if STDC_HEADERS
13549#include <stdlib.h>
13550#include <stddef.h>
13551#endif
13552EOF
13553if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13554 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
13555 rm -rf conftest*
10f2d63a
VZ
13556 ac_cv_type_mode_t=yes
13557else
698dcdb6
VZ
13558 rm -rf conftest*
13559 ac_cv_type_mode_t=no
703e0a69 13560fi
698dcdb6 13561rm -f conftest*
1e487827 13562
698dcdb6
VZ
13563fi
13564echo "$ac_t""$ac_cv_type_mode_t" 1>&6
13565if test $ac_cv_type_mode_t = no; then
13566 cat >> confdefs.h <<\EOF
10f2d63a
VZ
13567#define mode_t int
13568EOF
13569
13570fi
13571
698dcdb6 13572echo $ac_n "checking for off_t""... $ac_c" 1>&6
658974ae 13573echo "configure:13574: checking for off_t" >&5
698dcdb6
VZ
13574if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
13575 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 13576else
698dcdb6 13577 cat > conftest.$ac_ext <<EOF
658974ae 13578#line 13579 "configure"
10f2d63a 13579#include "confdefs.h"
698dcdb6
VZ
13580#include <sys/types.h>
13581#if STDC_HEADERS
13582#include <stdlib.h>
13583#include <stddef.h>
13584#endif
13585EOF
13586if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13587 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
13588 rm -rf conftest*
10f2d63a
VZ
13589 ac_cv_type_off_t=yes
13590else
698dcdb6
VZ
13591 rm -rf conftest*
13592 ac_cv_type_off_t=no
703e0a69 13593fi
698dcdb6 13594rm -f conftest*
1e487827 13595
698dcdb6
VZ
13596fi
13597echo "$ac_t""$ac_cv_type_off_t" 1>&6
13598if test $ac_cv_type_off_t = no; then
13599 cat >> confdefs.h <<\EOF
10f2d63a
VZ
13600#define off_t long
13601EOF
13602
13603fi
13604
698dcdb6 13605echo $ac_n "checking for pid_t""... $ac_c" 1>&6
658974ae 13606echo "configure:13607: checking for pid_t" >&5
698dcdb6
VZ
13607if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
13608 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 13609else
698dcdb6 13610 cat > conftest.$ac_ext <<EOF
658974ae 13611#line 13612 "configure"
10f2d63a 13612#include "confdefs.h"
698dcdb6
VZ
13613#include <sys/types.h>
13614#if STDC_HEADERS
13615#include <stdlib.h>
13616#include <stddef.h>
13617#endif
13618EOF
13619if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13620 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
13621 rm -rf conftest*
10f2d63a
VZ
13622 ac_cv_type_pid_t=yes
13623else
698dcdb6
VZ
13624 rm -rf conftest*
13625 ac_cv_type_pid_t=no
703e0a69 13626fi
698dcdb6 13627rm -f conftest*
1e487827 13628
698dcdb6
VZ
13629fi
13630echo "$ac_t""$ac_cv_type_pid_t" 1>&6
13631if test $ac_cv_type_pid_t = no; then
13632 cat >> confdefs.h <<\EOF
10f2d63a
VZ
13633#define pid_t int
13634EOF
13635
13636fi
13637
698dcdb6 13638echo $ac_n "checking for size_t""... $ac_c" 1>&6
658974ae 13639echo "configure:13640: checking for size_t" >&5
698dcdb6
VZ
13640if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
13641 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 13642else
698dcdb6 13643 cat > conftest.$ac_ext <<EOF
658974ae 13644#line 13645 "configure"
10f2d63a 13645#include "confdefs.h"
698dcdb6
VZ
13646#include <sys/types.h>
13647#if STDC_HEADERS
13648#include <stdlib.h>
13649#include <stddef.h>
13650#endif
13651EOF
13652if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13653 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
13654 rm -rf conftest*
10f2d63a
VZ
13655 ac_cv_type_size_t=yes
13656else
698dcdb6
VZ
13657 rm -rf conftest*
13658 ac_cv_type_size_t=no
703e0a69 13659fi
698dcdb6 13660rm -f conftest*
1e487827 13661
698dcdb6
VZ
13662fi
13663echo "$ac_t""$ac_cv_type_size_t" 1>&6
13664if test $ac_cv_type_size_t = no; then
13665 cat >> confdefs.h <<\EOF
10f2d63a
VZ
13666#define size_t unsigned
13667EOF
13668
13669fi
13670
698dcdb6 13671echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
658974ae 13672echo "configure:13673: checking for uid_t in sys/types.h" >&5
698dcdb6
VZ
13673if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
13674 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 13675else
698dcdb6 13676 cat > conftest.$ac_ext <<EOF
658974ae 13677#line 13678 "configure"
10f2d63a
VZ
13678#include "confdefs.h"
13679#include <sys/types.h>
698dcdb6 13680EOF
10f2d63a
VZ
13681if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13682 egrep "uid_t" >/dev/null 2>&1; then
698dcdb6 13683 rm -rf conftest*
10f2d63a
VZ
13684 ac_cv_type_uid_t=yes
13685else
698dcdb6 13686 rm -rf conftest*
10f2d63a
VZ
13687 ac_cv_type_uid_t=no
13688fi
13689rm -f conftest*
13690
13691fi
1e487827 13692
698dcdb6
VZ
13693echo "$ac_t""$ac_cv_type_uid_t" 1>&6
13694if test $ac_cv_type_uid_t = no; then
13695 cat >> confdefs.h <<\EOF
10f2d63a
VZ
13696#define uid_t int
13697EOF
13698
698dcdb6 13699 cat >> confdefs.h <<\EOF
10f2d63a
VZ
13700#define gid_t int
13701EOF
13702
13703fi
13704
1e487827 13705
698dcdb6 13706echo $ac_n "checking for wchar_t""... $ac_c" 1>&6
658974ae 13707echo "configure:13708: checking for wchar_t" >&5
698dcdb6
VZ
13708if eval "test \"`echo '$''{'wx_cv_type_wchar_t'+set}'`\" = set"; then
13709 echo $ac_n "(cached) $ac_c" 1>&6
13710else
13711
13712 cat > conftest.$ac_ext <<EOF
658974ae 13713#line 13714 "configure"
0046ff7c 13714#include "confdefs.h"
4b42290e
GD
13715
13716 #ifdef HAVE_WCHAR_H
0fbb762e
MB
13717 # ifdef __CYGWIN__
13718 # include <stddef.h>
13719 # endif
4b42290e
GD
13720 # include <wchar.h>
13721 #endif
13722 #ifdef HAVE_STDLIB_H
13723 # include <stdlib.h>
13724 #endif
13725
698dcdb6 13726int main() {
0046ff7c 13727
d836ee96
VZ
13728 wchar_t wc, *ws;
13729 wc = L'a';
13730 ws = L"Hello, world!";
698dcdb6
VZ
13731
13732; return 0; }
13733EOF
658974ae 13734if { (eval echo configure:13735: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6 13735 rm -rf conftest*
1f8ae82f 13736 wx_cv_type_wchar_t=yes
0046ff7c 13737else
698dcdb6
VZ
13738 echo "configure: failed program was:" >&5
13739 cat conftest.$ac_ext >&5
13740 rm -rf conftest*
13741 wx_cv_type_wchar_t=no
d836ee96 13742
6232543b 13743fi
698dcdb6 13744rm -f conftest*
703e0a69 13745
1e487827 13746fi
698dcdb6
VZ
13747
13748echo "$ac_t""$wx_cv_type_wchar_t" 1>&6
d836ee96
VZ
13749
13750if test "$wx_cv_type_wchar_t" = "yes"; then
698dcdb6 13751 cat >> confdefs.h <<\EOF
0046ff7c
VS
13752#define wxUSE_WCHAR_T 1
13753EOF
13754
13755fi
13756
19af3b06
VZ
13757
13758ac_ext=C
13759# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13760ac_cpp='$CXXCPP $CPPFLAGS'
13761ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13762ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13763cross_compiling=$ac_cv_prog_cxx_cross
13764
d836ee96 13765echo $ac_n "checking if size_t is unsigned int""... $ac_c" 1>&6
658974ae 13766echo "configure:13767: checking if size_t is unsigned int" >&5
d836ee96
VZ
13767if eval "test \"`echo '$''{'wx_cv_size_t_is_uint'+set}'`\" = set"; then
13768 echo $ac_n "(cached) $ac_c" 1>&6
13769else
dd2c8b7c 13770 cat > conftest.$ac_ext <<EOF
658974ae 13771#line 13772 "configure"
d836ee96
VZ
13772#include "confdefs.h"
13773#include <stddef.h>
13774int main() {
13775
dd2c8b7c
VZ
13776 return 0; }
13777
d836ee96 13778 struct Foo { void foo(size_t); void foo(unsigned int); };
dd2c8b7c
VZ
13779
13780 int bar() {
d836ee96
VZ
13781
13782; return 0; }
13783EOF
658974ae 13784if { (eval echo configure:13785: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d836ee96
VZ
13785 rm -rf conftest*
13786 wx_cv_size_t_is_uint=no
13787else
13788 echo "configure: failed program was:" >&5
13789 cat conftest.$ac_ext >&5
13790 rm -rf conftest*
13791 wx_cv_size_t_is_uint=yes
13792
13793fi
13794rm -f conftest*
13795
13796fi
13797
13798echo "$ac_t""$wx_cv_size_t_is_uint" 1>&6
13799
13800if test "$wx_cv_size_t_is_uint" = "yes"; then
13801 cat >> confdefs.h <<\EOF
13802#define wxSIZE_T_IS_UINT 1
13803EOF
13804
13805else
13806 echo $ac_n "checking if size_t is unsigned long""... $ac_c" 1>&6
658974ae 13807echo "configure:13808: checking if size_t is unsigned long" >&5
d836ee96
VZ
13808if eval "test \"`echo '$''{'wx_cv_size_t_is_ulong'+set}'`\" = set"; then
13809 echo $ac_n "(cached) $ac_c" 1>&6
13810else
13811 cat > conftest.$ac_ext <<EOF
658974ae 13812#line 13813 "configure"
d836ee96
VZ
13813#include "confdefs.h"
13814#include <stddef.h>
13815int main() {
13816
dd2c8b7c
VZ
13817 return 0; }
13818
d836ee96 13819 struct Foo { void foo(size_t); void foo(unsigned long); };
dd2c8b7c
VZ
13820
13821 int bar() {
d836ee96
VZ
13822
13823; return 0; }
13824EOF
658974ae 13825if { (eval echo configure:13826: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d836ee96
VZ
13826 rm -rf conftest*
13827 wx_cv_size_t_is_ulong=no
13828else
13829 echo "configure: failed program was:" >&5
13830 cat conftest.$ac_ext >&5
13831 rm -rf conftest*
13832 wx_cv_size_t_is_ulong=yes
13833
13834fi
13835rm -f conftest*
13836
13837fi
13838
13839echo "$ac_t""$wx_cv_size_t_is_ulong" 1>&6
13840
13841 if test "$wx_cv_size_t_is_ulong" = "yes"; then
13842 cat >> confdefs.h <<\EOF
13843#define wxSIZE_T_IS_ULONG 1
13844EOF
13845
13846 fi
13847fi
13848
19af3b06
VZ
13849ac_ext=c
13850# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13851ac_cpp='$CPP $CPPFLAGS'
13852ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13853ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13854cross_compiling=$ac_cv_prog_cc_cross
13855
13856
1e487827 13857
698dcdb6 13858echo $ac_n "checking for pw_gecos in struct passwd""... $ac_c" 1>&6
658974ae 13859echo "configure:13860: checking for pw_gecos in struct passwd" >&5
698dcdb6
VZ
13860if eval "test \"`echo '$''{'wx_cv_struct_pw_gecos'+set}'`\" = set"; then
13861 echo $ac_n "(cached) $ac_c" 1>&6
13862else
13863
13864 cat > conftest.$ac_ext <<EOF
658974ae 13865#line 13866 "configure"
b12915c1
VZ
13866#include "confdefs.h"
13867#include <pwd.h>
698dcdb6 13868int main() {
b12915c1
VZ
13869
13870 char *p;
13871 struct passwd *pw;
13872 p = pw->pw_gecos;
698dcdb6
VZ
13873
13874; return 0; }
13875EOF
658974ae 13876if { (eval echo configure:13877: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6
VZ
13877 rm -rf conftest*
13878
b12915c1 13879 wx_cv_struct_pw_gecos=yes
698dcdb6 13880
b12915c1 13881else
698dcdb6
VZ
13882 echo "configure: failed program was:" >&5
13883 cat conftest.$ac_ext >&5
13884 rm -rf conftest*
13885
b12915c1 13886 wx_cv_struct_pw_gecos=no
698dcdb6
VZ
13887
13888
6232543b 13889fi
698dcdb6
VZ
13890rm -f conftest*
13891
703e0a69 13892
1e487827 13893fi
698dcdb6
VZ
13894
13895echo "$ac_t""$wx_cv_struct_pw_gecos" 1>&6
b12915c1 13896
bd3277fe 13897if test "$wx_cv_struct_pw_gecos" = "yes"; then
698dcdb6 13898 cat >> confdefs.h <<\EOF
bd3277fe
VZ
13899#define HAVE_PW_GECOS 1
13900EOF
13901
13902fi
13903
698dcdb6
VZ
13904
13905echo $ac_n "checking for working const""... $ac_c" 1>&6
658974ae 13906echo "configure:13907: checking for working const" >&5
698dcdb6
VZ
13907if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
13908 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 13909else
698dcdb6 13910 cat > conftest.$ac_ext <<EOF
658974ae 13911#line 13912 "configure"
10f2d63a 13912#include "confdefs.h"
698dcdb6
VZ
13913
13914int main() {
13915
13916/* Ultrix mips cc rejects this. */
4cdb0ab0 13917typedef int charset[2]; const charset x;
698dcdb6
VZ
13918/* SunOS 4.1.1 cc rejects this. */
13919char const *const *ccp;
13920char **p;
13921/* NEC SVR4.0.2 mips cc rejects this. */
13922struct point {int x, y;};
13923static struct point const zero = {0,0};
13924/* AIX XL C 1.02.0.0 rejects this.
13925 It does not let you subtract one const X* pointer from another in an arm
13926 of an if-expression whose if-part is not a constant expression */
13927const char *g = "string";
13928ccp = &g + (g ? g-g : 0);
13929/* HPUX 7.0 cc rejects these. */
13930++ccp;
13931p = (char**) ccp;
13932ccp = (char const *const *) p;
13933{ /* SCO 3.2v4 cc rejects this. */
13934 char *t;
13935 char const *s = 0 ? (char *) 0 : (char const *) 0;
13936
13937 *t++ = 0;
10f2d63a 13938}
698dcdb6
VZ
13939{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
13940 int x[] = {25, 17};
13941 const int *foo = &x[0];
13942 ++foo;
703e0a69 13943}
698dcdb6
VZ
13944{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
13945 typedef const int *iptr;
13946 iptr p = 0;
13947 ++p;
6232543b 13948}
698dcdb6
VZ
13949{ /* AIX XL C 1.02.0.0 rejects this saying
13950 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
13951 struct s { int j; const int *ap[3]; };
13952 struct s *b; b->j = 5;
1e487827 13953}
698dcdb6
VZ
13954{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
13955 const int foo = 10;
13956}
4f14bcd8
GD
13957
13958; return 0; }
698dcdb6 13959EOF
658974ae 13960if { (eval echo configure:13961: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4f14bcd8
GD
13961 rm -rf conftest*
13962 ac_cv_c_const=yes
698dcdb6
VZ
13963else
13964 echo "configure: failed program was:" >&5
13965 cat conftest.$ac_ext >&5
4f14bcd8
GD
13966 rm -rf conftest*
13967 ac_cv_c_const=no
703e0a69 13968fi
4f14bcd8 13969rm -f conftest*
698dcdb6
VZ
13970fi
13971
4f14bcd8
GD
13972echo "$ac_t""$ac_cv_c_const" 1>&6
13973if test $ac_cv_c_const = no; then
13974 cat >> confdefs.h <<\EOF
13975#define const
698dcdb6
VZ
13976EOF
13977
4f14bcd8 13978fi
698dcdb6 13979
4f14bcd8 13980echo $ac_n "checking for inline""... $ac_c" 1>&6
658974ae 13981echo "configure:13982: checking for inline" >&5
4f14bcd8 13982if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
698dcdb6 13983 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 13984else
4f14bcd8
GD
13985 ac_cv_c_inline=no
13986for ac_kw in inline __inline__ __inline; do
698dcdb6 13987 cat > conftest.$ac_ext <<EOF
658974ae 13988#line 13989 "configure"
10f2d63a 13989#include "confdefs.h"
4f14bcd8
GD
13990
13991int main() {
4cdb0ab0 13992} $ac_kw foo() {
4f14bcd8 13993; return 0; }
698dcdb6 13994EOF
658974ae 13995if { (eval echo configure:13996: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4f14bcd8
GD
13996 rm -rf conftest*
13997 ac_cv_c_inline=$ac_kw; break
10f2d63a 13998else
698dcdb6
VZ
13999 echo "configure: failed program was:" >&5
14000 cat conftest.$ac_ext >&5
10f2d63a 14001fi
4f14bcd8
GD
14002rm -f conftest*
14003done
698dcdb6 14004
10f2d63a 14005fi
4f14bcd8
GD
14006
14007echo "$ac_t""$ac_cv_c_inline" 1>&6
14008case "$ac_cv_c_inline" in
14009 inline | yes) ;;
14010 no) cat >> confdefs.h <<\EOF
14011#define inline
14012EOF
14013 ;;
14014 *) cat >> confdefs.h <<EOF
14015#define inline $ac_cv_c_inline
698dcdb6 14016EOF
4f14bcd8
GD
14017 ;;
14018esac
698dcdb6
VZ
14019
14020
4f14bcd8 14021echo $ac_n "checking size of char""... $ac_c" 1>&6
658974ae 14022echo "configure:14023: checking size of char" >&5
4f14bcd8 14023if eval "test \"`echo '$''{'ac_cv_sizeof_char'+set}'`\" = set"; then
698dcdb6
VZ
14024 echo $ac_n "(cached) $ac_c" 1>&6
14025else
14026 if test "$cross_compiling" = yes; then
4f14bcd8 14027 ac_cv_sizeof_char=1
698dcdb6
VZ
14028else
14029 cat > conftest.$ac_ext <<EOF
658974ae 14030#line 14031 "configure"
698dcdb6
VZ
14031#include "confdefs.h"
14032#include <stdio.h>
14033main()
14034{
14035 FILE *f=fopen("conftestval", "w");
14036 if (!f) exit(1);
4f14bcd8 14037 fprintf(f, "%d\n", sizeof(char));
698dcdb6
VZ
14038 exit(0);
14039}
14040EOF
658974ae 14041if { (eval echo configure:14042: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
698dcdb6 14042then
4f14bcd8 14043 ac_cv_sizeof_char=`cat conftestval`
6232543b 14044else
698dcdb6
VZ
14045 echo "configure: failed program was:" >&5
14046 cat conftest.$ac_ext >&5
14047 rm -fr conftest*
4f14bcd8 14048 ac_cv_sizeof_char=0
6232543b 14049fi
698dcdb6
VZ
14050rm -fr conftest*
14051fi
14052
703e0a69 14053fi
4f14bcd8 14054echo "$ac_t""$ac_cv_sizeof_char" 1>&6
698dcdb6 14055cat >> confdefs.h <<EOF
4f14bcd8 14056#define SIZEOF_CHAR $ac_cv_sizeof_char
10f2d63a
VZ
14057EOF
14058
1e487827 14059
4f14bcd8 14060echo $ac_n "checking size of short""... $ac_c" 1>&6
658974ae 14061echo "configure:14062: checking size of short" >&5
4f14bcd8 14062if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
698dcdb6
VZ
14063 echo $ac_n "(cached) $ac_c" 1>&6
14064else
4f14bcd8
GD
14065 if test "$cross_compiling" = yes; then
14066 ac_cv_sizeof_short=2
b93d0d08 14067else
698dcdb6 14068 cat > conftest.$ac_ext <<EOF
658974ae 14069#line 14070 "configure"
b93d0d08 14070#include "confdefs.h"
4f14bcd8
GD
14071#include <stdio.h>
14072main()
14073{
14074 FILE *f=fopen("conftestval", "w");
14075 if (!f) exit(1);
14076 fprintf(f, "%d\n", sizeof(short));
14077 exit(0);
14078}
698dcdb6 14079EOF
658974ae 14080if { (eval echo configure:14081: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
698dcdb6 14081then
4f14bcd8 14082 ac_cv_sizeof_short=`cat conftestval`
b93d0d08 14083else
698dcdb6
VZ
14084 echo "configure: failed program was:" >&5
14085 cat conftest.$ac_ext >&5
14086 rm -fr conftest*
4f14bcd8 14087 ac_cv_sizeof_short=0
b93d0d08 14088fi
698dcdb6 14089rm -fr conftest*
b93d0d08
VS
14090fi
14091
b93d0d08 14092fi
4f14bcd8 14093echo "$ac_t""$ac_cv_sizeof_short" 1>&6
698dcdb6 14094cat >> confdefs.h <<EOF
4f14bcd8 14095#define SIZEOF_SHORT $ac_cv_sizeof_short
b93d0d08
VS
14096EOF
14097
698dcdb6 14098
4f14bcd8 14099echo $ac_n "checking size of int *""... $ac_c" 1>&6
658974ae 14100echo "configure:14101: checking size of int *" >&5
4f14bcd8 14101if eval "test \"`echo '$''{'ac_cv_sizeof_int_p'+set}'`\" = set"; then
698dcdb6 14102 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 14103else
4f14bcd8
GD
14104 if test "$cross_compiling" = yes; then
14105 ac_cv_sizeof_int_p=4
3a922bb4 14106else
3a922bb4 14107 cat > conftest.$ac_ext <<EOF
658974ae 14108#line 14109 "configure"
3a922bb4 14109#include "confdefs.h"
4f14bcd8
GD
14110#include <stdio.h>
14111main()
14112{
14113 FILE *f=fopen("conftestval", "w");
14114 if (!f) exit(1);
14115 fprintf(f, "%d\n", sizeof(int *));
14116 exit(0);
14117}
14118EOF
658974ae 14119if { (eval echo configure:14120: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4f14bcd8
GD
14120then
14121 ac_cv_sizeof_int_p=`cat conftestval`
14122else
14123 echo "configure: failed program was:" >&5
14124 cat conftest.$ac_ext >&5
14125 rm -fr conftest*
14126 ac_cv_sizeof_int_p=0
3a922bb4 14127fi
4f14bcd8 14128rm -fr conftest*
3a922bb4 14129fi
698dcdb6 14130
4f14bcd8
GD
14131fi
14132echo "$ac_t""$ac_cv_sizeof_int_p" 1>&6
14133cat >> confdefs.h <<EOF
14134#define SIZEOF_INT_P $ac_cv_sizeof_int_p
10f2d63a
VZ
14135EOF
14136
703e0a69 14137
4f14bcd8 14138echo $ac_n "checking size of int""... $ac_c" 1>&6
658974ae 14139echo "configure:14140: checking size of int" >&5
4f14bcd8 14140if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
698dcdb6 14141 echo $ac_n "(cached) $ac_c" 1>&6
4f14bcd8
GD
14142else
14143 if test "$cross_compiling" = yes; then
14144 ac_cv_sizeof_int=4
698dcdb6
VZ
14145else
14146 cat > conftest.$ac_ext <<EOF
658974ae 14147#line 14148 "configure"
10f2d63a 14148#include "confdefs.h"
4f14bcd8
GD
14149#include <stdio.h>
14150main()
14151{
14152 FILE *f=fopen("conftestval", "w");
14153 if (!f) exit(1);
14154 fprintf(f, "%d\n", sizeof(int));
14155 exit(0);
14156}
698dcdb6 14157EOF
658974ae 14158if { (eval echo configure:14159: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4f14bcd8
GD
14159then
14160 ac_cv_sizeof_int=`cat conftestval`
10f2d63a 14161else
698dcdb6 14162 echo "configure: failed program was:" >&5
10f2d63a 14163 cat conftest.$ac_ext >&5
4f14bcd8
GD
14164 rm -fr conftest*
14165 ac_cv_sizeof_int=0
10f2d63a 14166fi
4f14bcd8 14167rm -fr conftest*
10f2d63a 14168fi
10f2d63a 14169
4f14bcd8
GD
14170fi
14171echo "$ac_t""$ac_cv_sizeof_int" 1>&6
14172cat >> confdefs.h <<EOF
14173#define SIZEOF_INT $ac_cv_sizeof_int
10f2d63a
VZ
14174EOF
14175
698dcdb6 14176
4f14bcd8 14177echo $ac_n "checking size of long""... $ac_c" 1>&6
658974ae 14178echo "configure:14179: checking size of long" >&5
4f14bcd8 14179if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
698dcdb6
VZ
14180 echo $ac_n "(cached) $ac_c" 1>&6
14181else
4f14bcd8
GD
14182 if test "$cross_compiling" = yes; then
14183 ac_cv_sizeof_long=4
14184else
14185 cat > conftest.$ac_ext <<EOF
658974ae 14186#line 14187 "configure"
10f2d63a 14187#include "confdefs.h"
4f14bcd8
GD
14188#include <stdio.h>
14189main()
14190{
14191 FILE *f=fopen("conftestval", "w");
14192 if (!f) exit(1);
14193 fprintf(f, "%d\n", sizeof(long));
14194 exit(0);
14195}
698dcdb6 14196EOF
658974ae 14197if { (eval echo configure:14198: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4f14bcd8
GD
14198then
14199 ac_cv_sizeof_long=`cat conftestval`
10f2d63a 14200else
698dcdb6
VZ
14201 echo "configure: failed program was:" >&5
14202 cat conftest.$ac_ext >&5
4f14bcd8
GD
14203 rm -fr conftest*
14204 ac_cv_sizeof_long=0
10f2d63a 14205fi
4f14bcd8 14206rm -fr conftest*
10f2d63a 14207fi
698dcdb6 14208
4f14bcd8
GD
14209fi
14210echo "$ac_t""$ac_cv_sizeof_long" 1>&6
14211cat >> confdefs.h <<EOF
14212#define SIZEOF_LONG $ac_cv_sizeof_long
10f2d63a
VZ
14213EOF
14214
698dcdb6 14215
4f14bcd8 14216echo $ac_n "checking size of long long""... $ac_c" 1>&6
658974ae 14217echo "configure:14218: checking size of long long" >&5
4f14bcd8 14218if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
698dcdb6 14219 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 14220else
4f14bcd8
GD
14221 if test "$cross_compiling" = yes; then
14222 ac_cv_sizeof_long_long=0
14223else
14224 cat > conftest.$ac_ext <<EOF
658974ae 14225#line 14226 "configure"
10f2d63a 14226#include "confdefs.h"
4f14bcd8
GD
14227#include <stdio.h>
14228main()
14229{
14230 FILE *f=fopen("conftestval", "w");
14231 if (!f) exit(1);
14232 fprintf(f, "%d\n", sizeof(long long));
14233 exit(0);
14234}
698dcdb6 14235EOF
658974ae 14236if { (eval echo configure:14237: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4f14bcd8
GD
14237then
14238 ac_cv_sizeof_long_long=`cat conftestval`
698dcdb6
VZ
14239else
14240 echo "configure: failed program was:" >&5
14241 cat conftest.$ac_ext >&5
4f14bcd8
GD
14242 rm -fr conftest*
14243 ac_cv_sizeof_long_long=0
14244fi
14245rm -fr conftest*
698dcdb6 14246fi
698dcdb6
VZ
14247
14248fi
4f14bcd8
GD
14249echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
14250cat >> confdefs.h <<EOF
14251#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
10f2d63a
VZ
14252EOF
14253
10f2d63a 14254
4f14bcd8
GD
14255
14256echo $ac_n "checking size of wchar_t""... $ac_c" 1>&6
658974ae 14257echo "configure:14258: checking size of wchar_t" >&5
4f14bcd8 14258if eval "test \"`echo '$''{'wx_cv_sizeof_wchar_t'+set}'`\" = set"; then
698dcdb6 14259 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 14260else
4f14bcd8
GD
14261
14262 if test "$cross_compiling" = yes; then
14263 wx_cv_sizeof_wchar_t=4
14264
14265else
14266 cat > conftest.$ac_ext <<EOF
658974ae 14267#line 14268 "configure"
10f2d63a 14268#include "confdefs.h"
698dcdb6 14269
4f14bcd8 14270 #ifdef HAVE_WCHAR_H
0fbb762e
MB
14271 # ifdef __CYGWIN__
14272 # include <stddef.h>
14273 # endif
4f14bcd8
GD
14274 # include <wchar.h>
14275 #endif
14276 #ifdef HAVE_STDLIB_H
14277 # include <stdlib.h>
14278 #endif
14279 #include <stdio.h>
14280 int main()
14281 {
14282 FILE *f=fopen("conftestval", "w");
14283 if (!f) exit(1);
14284 fprintf(f, "%i", sizeof(wchar_t));
14285 exit(0);
14286 }
14287
698dcdb6 14288EOF
658974ae 14289if { (eval echo configure:14290: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4f14bcd8
GD
14290then
14291 wx_cv_sizeof_wchar_t=`cat conftestval`
698dcdb6
VZ
14292else
14293 echo "configure: failed program was:" >&5
14294 cat conftest.$ac_ext >&5
4f14bcd8
GD
14295 rm -fr conftest*
14296 wx_cv_sizeof_wchar_t=0
698dcdb6 14297fi
4f14bcd8
GD
14298rm -fr conftest*
14299fi
14300
698dcdb6
VZ
14301
14302fi
4f14bcd8
GD
14303
14304echo "$ac_t""$wx_cv_sizeof_wchar_t" 1>&6
14305
14306cat >> confdefs.h <<EOF
14307#define SIZEOF_WCHAR_T $wx_cv_sizeof_wchar_t
10f2d63a
VZ
14308EOF
14309
18dbb1f6 14310
4f14bcd8 14311echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
658974ae 14312echo "configure:14313: checking whether byte ordering is bigendian" >&5
4f14bcd8 14313if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
18dbb1f6
VZ
14314 echo $ac_n "(cached) $ac_c" 1>&6
14315else
4f14bcd8
GD
14316 ac_cv_c_bigendian=unknown
14317# See if sys/param.h defines the BYTE_ORDER macro.
18dbb1f6 14318cat > conftest.$ac_ext <<EOF
658974ae 14319#line 14320 "configure"
18dbb1f6 14320#include "confdefs.h"
4f14bcd8
GD
14321#include <sys/types.h>
14322#include <sys/param.h>
14323int main() {
18dbb1f6 14324
4f14bcd8
GD
14325#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
14326 bogus endian macros
14327#endif
14328; return 0; }
14329EOF
658974ae 14330if { (eval echo configure:14331: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4f14bcd8
GD
14331 rm -rf conftest*
14332 # It does; now see whether it defined to BIG_ENDIAN or not.
14333cat > conftest.$ac_ext <<EOF
658974ae 14334#line 14335 "configure"
4f14bcd8
GD
14335#include "confdefs.h"
14336#include <sys/types.h>
14337#include <sys/param.h>
18dbb1f6 14338int main() {
4f14bcd8
GD
14339
14340#if BYTE_ORDER != BIG_ENDIAN
14341 not big endian
14342#endif
18dbb1f6
VZ
14343; return 0; }
14344EOF
658974ae 14345if { (eval echo configure:14346: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18dbb1f6 14346 rm -rf conftest*
4f14bcd8 14347 ac_cv_c_bigendian=yes
18dbb1f6
VZ
14348else
14349 echo "configure: failed program was:" >&5
14350 cat conftest.$ac_ext >&5
14351 rm -rf conftest*
4f14bcd8 14352 ac_cv_c_bigendian=no
18dbb1f6
VZ
14353fi
14354rm -f conftest*
698dcdb6 14355else
4f14bcd8
GD
14356 echo "configure: failed program was:" >&5
14357 cat conftest.$ac_ext >&5
1e487827 14358fi
4f14bcd8
GD
14359rm -f conftest*
14360if test $ac_cv_c_bigendian = unknown; then
14361if test "$cross_compiling" = yes; then
14362 ac_cv_c_bigendian=unknown
b3e8d00a
VZ
14363else
14364 cat > conftest.$ac_ext <<EOF
658974ae 14365#line 14366 "configure"
b3e8d00a 14366#include "confdefs.h"
4f14bcd8
GD
14367main () {
14368 /* Are we little or big endian? From Harbison&Steele. */
14369 union
14370 {
14371 long l;
14372 char c[sizeof (long)];
14373 } u;
14374 u.l = 1;
14375 exit (u.c[sizeof (long) - 1] == 1);
14376}
b3e8d00a 14377EOF
658974ae 14378if { (eval echo configure:14379: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4f14bcd8
GD
14379then
14380 ac_cv_c_bigendian=no
b3e8d00a
VZ
14381else
14382 echo "configure: failed program was:" >&5
14383 cat conftest.$ac_ext >&5
4f14bcd8
GD
14384 rm -fr conftest*
14385 ac_cv_c_bigendian=yes
b3e8d00a 14386fi
4f14bcd8 14387rm -fr conftest*
b3e8d00a
VZ
14388fi
14389
4f14bcd8
GD
14390fi
14391fi
14392
14393echo "$ac_t""$ac_cv_c_bigendian" 1>&6
14394if test $ac_cv_c_bigendian = unknown; then
14395 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
14396fi
14397if test $ac_cv_c_bigendian = yes; then
14398 cat >> confdefs.h <<\EOF
14399#define WORDS_BIGENDIAN 1
b3e8d00a 14400EOF
4f14bcd8 14401
b3e8d00a 14402fi
b3e8d00a
VZ
14403
14404
4f14bcd8 14405echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
658974ae 14406echo "configure:14407: checking how to run the C++ preprocessor" >&5
4f14bcd8
GD
14407if test -z "$CXXCPP"; then
14408if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
698dcdb6
VZ
14409 echo $ac_n "(cached) $ac_c" 1>&6
14410else
4f14bcd8
GD
14411 ac_ext=C
14412# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14413ac_cpp='$CXXCPP $CPPFLAGS'
14414ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14415ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14416cross_compiling=$ac_cv_prog_cxx_cross
14417 CXXCPP="${CXX-g++} -E"
698dcdb6 14418 cat > conftest.$ac_ext <<EOF
658974ae 14419#line 14420 "configure"
10f2d63a 14420#include "confdefs.h"
4f14bcd8 14421#include <stdlib.h>
698dcdb6 14422EOF
4f14bcd8 14423ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
658974ae 14424{ (eval echo configure:14425: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4f14bcd8
GD
14425ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
14426if test -z "$ac_err"; then
14427 :
698dcdb6 14428else
4f14bcd8 14429 echo "$ac_err" >&5
698dcdb6
VZ
14430 echo "configure: failed program was:" >&5
14431 cat conftest.$ac_ext >&5
14432 rm -rf conftest*
4f14bcd8 14433 CXXCPP=/lib/cpp
698dcdb6
VZ
14434fi
14435rm -f conftest*
4f14bcd8
GD
14436 ac_cv_prog_CXXCPP="$CXXCPP"
14437ac_ext=C
14438# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14439ac_cpp='$CXXCPP $CPPFLAGS'
14440ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14441ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14442cross_compiling=$ac_cv_prog_cxx_cross
14443fi
698dcdb6 14444fi
4f14bcd8
GD
14445CXXCPP="$ac_cv_prog_CXXCPP"
14446echo "$ac_t""$CXXCPP" 1>&6
698dcdb6 14447
4f14bcd8
GD
14448
14449 if test "$cross_compiling" = "yes"; then
14450 cat >> confdefs.h <<\EOF
14451#define wxUSE_IOSTREAMH 1
698dcdb6
VZ
14452EOF
14453
4f14bcd8
GD
14454 else
14455
14456 ac_ext=C
14457# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14458ac_cpp='$CXXCPP $CPPFLAGS'
14459ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14460ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14461cross_compiling=$ac_cv_prog_cxx_cross
698dcdb6 14462
4f14bcd8
GD
14463
14464 for ac_hdr in iostream
14465do
14466ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
14467echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
658974ae 14468echo "configure:14469: checking for $ac_hdr" >&5
4f14bcd8 14469if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
698dcdb6
VZ
14470 echo $ac_n "(cached) $ac_c" 1>&6
14471else
14472 cat > conftest.$ac_ext <<EOF
658974ae 14473#line 14474 "configure"
10f2d63a 14474#include "confdefs.h"
4f14bcd8 14475#include <$ac_hdr>
698dcdb6 14476EOF
4f14bcd8 14477ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
658974ae 14478{ (eval echo configure:14479: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4f14bcd8
GD
14479ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
14480if test -z "$ac_err"; then
698dcdb6 14481 rm -rf conftest*
4f14bcd8 14482 eval "ac_cv_header_$ac_safe=yes"
698dcdb6 14483else
4f14bcd8 14484 echo "$ac_err" >&5
698dcdb6
VZ
14485 echo "configure: failed program was:" >&5
14486 cat conftest.$ac_ext >&5
14487 rm -rf conftest*
4f14bcd8 14488 eval "ac_cv_header_$ac_safe=no"
698dcdb6
VZ
14489fi
14490rm -f conftest*
14491fi
4f14bcd8 14492if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
698dcdb6 14493 echo "$ac_t""yes" 1>&6
4f14bcd8
GD
14494 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
14495 cat >> confdefs.h <<EOF
14496#define $ac_tr_hdr 1
10f2d63a 14497EOF
4f14bcd8 14498
698dcdb6
VZ
14499else
14500 echo "$ac_t""no" 1>&6
10f2d63a 14501fi
4f14bcd8 14502done
10f2d63a 14503
10f2d63a 14504
4f14bcd8
GD
14505 if test "$ac_cv_header_iostream" = "yes" ; then
14506 :
14507 else
14508 cat >> confdefs.h <<\EOF
14509#define wxUSE_IOSTREAMH 1
14510EOF
14511
14512 fi
1e487827 14513
4f14bcd8
GD
14514 ac_ext=c
14515# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14516ac_cpp='$CPP $CPPFLAGS'
14517ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14518ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14519cross_compiling=$ac_cv_prog_cc_cross
698dcdb6 14520
4f14bcd8 14521 fi
698dcdb6
VZ
14522
14523
14524
4f14bcd8 14525 echo $ac_n "checking if C++ compiler supports bool""... $ac_c" 1>&6
658974ae 14526echo "configure:14527: checking if C++ compiler supports bool" >&5
4f14bcd8 14527if eval "test \"`echo '$''{'wx_cv_cpp_bool'+set}'`\" = set"; then
698dcdb6
VZ
14528 echo $ac_n "(cached) $ac_c" 1>&6
14529else
14530
4f14bcd8
GD
14531
14532 ac_ext=C
14533# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14534ac_cpp='$CXXCPP $CPPFLAGS'
14535ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14536ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14537cross_compiling=$ac_cv_prog_cxx_cross
f6bcfd97 14538
10f2d63a 14539
4f14bcd8 14540 cat > conftest.$ac_ext <<EOF
658974ae 14541#line 14542 "configure"
4f14bcd8 14542#include "confdefs.h"
10f2d63a 14543
4f14bcd8
GD
14544
14545int main() {
f6bcfd97 14546
4f14bcd8 14547 bool b = true;
f6bcfd97 14548
4f14bcd8
GD
14549 return 0;
14550
698dcdb6
VZ
14551; return 0; }
14552EOF
658974ae 14553if { (eval echo configure:14554: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6
VZ
14554 rm -rf conftest*
14555
4f14bcd8
GD
14556 wx_cv_cpp_bool=yes
14557
10f2d63a 14558else
698dcdb6
VZ
14559 echo "configure: failed program was:" >&5
14560 cat conftest.$ac_ext >&5
14561 rm -rf conftest*
14562
4f14bcd8
GD
14563 wx_cv_cpp_bool=no
14564
14565
14566fi
14567rm -f conftest*
c521c494 14568
4f14bcd8
GD
14569 ac_ext=c
14570# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14571ac_cpp='$CPP $CPPFLAGS'
14572ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14573ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14574cross_compiling=$ac_cv_prog_cc_cross
c521c494 14575
4f14bcd8
GD
14576
14577fi
c521c494 14578
4f14bcd8 14579echo "$ac_t""$wx_cv_cpp_bool" 1>&6
c521c494 14580
4f14bcd8
GD
14581 if test "$wx_cv_cpp_bool" = "yes"; then
14582 cat >> confdefs.h <<\EOF
14583#define HAVE_BOOL 1
14584EOF
c521c494 14585
4f14bcd8
GD
14586 fi
14587
14588
14589
14590echo $ac_n "checking for wcslen in -lc""... $ac_c" 1>&6
658974ae 14591echo "configure:14592: checking for wcslen in -lc" >&5
4f14bcd8
GD
14592ac_lib_var=`echo c'_'wcslen | sed 'y%./+-%__p_%'`
14593if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14594 echo $ac_n "(cached) $ac_c" 1>&6
14595else
14596 ac_save_LIBS="$LIBS"
14597LIBS="-lc $LIBS"
14598cat > conftest.$ac_ext <<EOF
658974ae 14599#line 14600 "configure"
4f14bcd8
GD
14600#include "confdefs.h"
14601/* Override any gcc2 internal prototype to avoid an error. */
14602/* We use char because int might match the return type of a gcc2
14603 builtin and then its argument prototype would still apply. */
14604char wcslen();
14605
14606int main() {
14607wcslen()
698dcdb6
VZ
14608; return 0; }
14609EOF
658974ae 14610if { (eval echo configure:14611: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6 14611 rm -rf conftest*
4f14bcd8 14612 eval "ac_cv_lib_$ac_lib_var=yes"
c521c494 14613else
698dcdb6
VZ
14614 echo "configure: failed program was:" >&5
14615 cat conftest.$ac_ext >&5
14616 rm -rf conftest*
4f14bcd8 14617 eval "ac_cv_lib_$ac_lib_var=no"
6232543b 14618fi
698dcdb6 14619rm -f conftest*
4f14bcd8 14620LIBS="$ac_save_LIBS"
703e0a69 14621
1e487827 14622fi
4f14bcd8
GD
14623if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14624 echo "$ac_t""yes" 1>&6
14625
14626 cat >> confdefs.h <<\EOF
14627#define HAVE_WCSLEN 1
9d8deca0
VZ
14628EOF
14629
3d63bc3a 14630 WCHAR_LINK=
4f14bcd8 14631
9d8deca0 14632else
4f14bcd8 14633 echo "$ac_t""no" 1>&6
9d8deca0 14634
4f14bcd8 14635 echo $ac_n "checking for wcslen in -lw""... $ac_c" 1>&6
658974ae 14636echo "configure:14637: checking for wcslen in -lw" >&5
4f14bcd8
GD
14637ac_lib_var=`echo w'_'wcslen | sed 'y%./+-%__p_%'`
14638if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
698dcdb6 14639 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 14640else
4f14bcd8
GD
14641 ac_save_LIBS="$LIBS"
14642LIBS="-lw $LIBS"
14643cat > conftest.$ac_ext <<EOF
658974ae 14644#line 14645 "configure"
10f2d63a 14645#include "confdefs.h"
4f14bcd8
GD
14646/* Override any gcc2 internal prototype to avoid an error. */
14647/* We use char because int might match the return type of a gcc2
14648 builtin and then its argument prototype would still apply. */
14649char wcslen();
10f2d63a 14650
698dcdb6 14651int main() {
4f14bcd8 14652wcslen()
698dcdb6
VZ
14653; return 0; }
14654EOF
658974ae 14655if { (eval echo configure:14656: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6 14656 rm -rf conftest*
4f14bcd8 14657 eval "ac_cv_lib_$ac_lib_var=yes"
10f2d63a 14658else
698dcdb6
VZ
14659 echo "configure: failed program was:" >&5
14660 cat conftest.$ac_ext >&5
14661 rm -rf conftest*
4f14bcd8 14662 eval "ac_cv_lib_$ac_lib_var=no"
6232543b 14663fi
698dcdb6 14664rm -f conftest*
4f14bcd8 14665LIBS="$ac_save_LIBS"
703e0a69 14666
1e487827 14667fi
4f14bcd8
GD
14668if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14669 echo "$ac_t""yes" 1>&6
14670
14671 cat >> confdefs.h <<\EOF
14672#define HAVE_WCSLEN 1
9d8deca0
VZ
14673EOF
14674
3d63bc3a 14675 WCHAR_LINK=" -lw"
4f14bcd8
GD
14676
14677else
14678 echo "$ac_t""no" 1>&6
698dcdb6 14679
4f14bcd8 14680 echo $ac_n "checking for wcslen in -lmsvcrt""... $ac_c" 1>&6
658974ae 14681echo "configure:14682: checking for wcslen in -lmsvcrt" >&5
4f14bcd8
GD
14682ac_lib_var=`echo msvcrt'_'wcslen | sed 'y%./+-%__p_%'`
14683if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
698dcdb6
VZ
14684 echo $ac_n "(cached) $ac_c" 1>&6
14685else
4f14bcd8
GD
14686 ac_save_LIBS="$LIBS"
14687LIBS="-lmsvcrt $LIBS"
14688cat > conftest.$ac_ext <<EOF
658974ae 14689#line 14690 "configure"
95c8801c 14690#include "confdefs.h"
4f14bcd8
GD
14691/* Override any gcc2 internal prototype to avoid an error. */
14692/* We use char because int might match the return type of a gcc2
14693 builtin and then its argument prototype would still apply. */
14694char wcslen();
95c8801c 14695
4f14bcd8
GD
14696int main() {
14697wcslen()
698dcdb6
VZ
14698; return 0; }
14699EOF
658974ae 14700if { (eval echo configure:14701: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6 14701 rm -rf conftest*
4f14bcd8 14702 eval "ac_cv_lib_$ac_lib_var=yes"
95c8801c 14703else
698dcdb6
VZ
14704 echo "configure: failed program was:" >&5
14705 cat conftest.$ac_ext >&5
14706 rm -rf conftest*
4f14bcd8 14707 eval "ac_cv_lib_$ac_lib_var=no"
95c8801c 14708fi
698dcdb6 14709rm -f conftest*
4f14bcd8 14710LIBS="$ac_save_LIBS"
95c8801c
VS
14711
14712fi
4f14bcd8
GD
14713if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14714 echo "$ac_t""yes" 1>&6
14715
14716 cat >> confdefs.h <<\EOF
14717#define HAVE_WCSLEN 1
14718EOF
698dcdb6 14719
3d63bc3a 14720 WCHAR_LINK=
4f14bcd8
GD
14721
14722else
14723 echo "$ac_t""no" 1>&6
14724fi
10f2d63a 14725
4f14bcd8
GD
14726
14727fi
95c8801c 14728
4f14bcd8 14729
95c8801c 14730fi
10f2d63a 14731
1e487827 14732
4f14bcd8 14733for ac_func in wcsrtombs
eb4efbdc 14734do
698dcdb6 14735echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
658974ae 14736echo "configure:14737: checking for $ac_func" >&5
698dcdb6
VZ
14737if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14738 echo $ac_n "(cached) $ac_c" 1>&6
14739else
14740 cat > conftest.$ac_ext <<EOF
658974ae 14741#line 14742 "configure"
eb4efbdc
VZ
14742#include "confdefs.h"
14743/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 14744 which can conflict with char $ac_func(); below. */
eb4efbdc
VZ
14745#include <assert.h>
14746/* Override any gcc2 internal prototype to avoid an error. */
14747/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
14748 builtin and then its argument prototype would still apply. */
14749char $ac_func();
14750
14751int main() {
eb4efbdc
VZ
14752
14753/* The GNU C library defines this for functions which it implements
14754 to always fail with ENOSYS. Some functions are actually named
14755 something starting with __ and the normal name is an alias. */
14756#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14757choke me
14758#else
698dcdb6 14759$ac_func();
eb4efbdc
VZ
14760#endif
14761
698dcdb6 14762; return 0; }
eb4efbdc 14763EOF
658974ae 14764if { (eval echo configure:14765: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
14765 rm -rf conftest*
14766 eval "ac_cv_func_$ac_func=yes"
14767else
14768 echo "configure: failed program was:" >&5
14769 cat conftest.$ac_ext >&5
14770 rm -rf conftest*
14771 eval "ac_cv_func_$ac_func=no"
14772fi
14773rm -f conftest*
14774fi
eb4efbdc 14775
698dcdb6
VZ
14776if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14777 echo "$ac_t""yes" 1>&6
14778 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14779 cat >> confdefs.h <<EOF
14780#define $ac_tr_func 1
14781EOF
14782
14783else
14784 echo "$ac_t""no" 1>&6
eb4efbdc
VZ
14785fi
14786done
14787
698dcdb6 14788
4f14bcd8 14789echo $ac_n "checking for vprintf""... $ac_c" 1>&6
658974ae 14790echo "configure:14791: checking for vprintf" >&5
4f14bcd8 14791if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
698dcdb6
VZ
14792 echo $ac_n "(cached) $ac_c" 1>&6
14793else
4f14bcd8 14794 cat > conftest.$ac_ext <<EOF
658974ae 14795#line 14796 "configure"
f6bcfd97 14796#include "confdefs.h"
4f14bcd8
GD
14797/* System header to define __stub macros and hopefully few prototypes,
14798 which can conflict with char vprintf(); below. */
14799#include <assert.h>
14800/* Override any gcc2 internal prototype to avoid an error. */
14801/* We use char because int might match the return type of a gcc2
14802 builtin and then its argument prototype would still apply. */
14803char vprintf();
14804
698dcdb6 14805int main() {
f6bcfd97 14806
4f14bcd8
GD
14807/* The GNU C library defines this for functions which it implements
14808 to always fail with ENOSYS. Some functions are actually named
14809 something starting with __ and the normal name is an alias. */
14810#if defined (__stub_vprintf) || defined (__stub___vprintf)
14811choke me
14812#else
14813vprintf();
14814#endif
f6bcfd97 14815
698dcdb6
VZ
14816; return 0; }
14817EOF
658974ae 14818if { (eval echo configure:14819: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6 14819 rm -rf conftest*
4f14bcd8 14820 eval "ac_cv_func_vprintf=yes"
f6bcfd97 14821else
698dcdb6
VZ
14822 echo "configure: failed program was:" >&5
14823 cat conftest.$ac_ext >&5
14824 rm -rf conftest*
4f14bcd8 14825 eval "ac_cv_func_vprintf=no"
6232543b 14826fi
698dcdb6 14827rm -f conftest*
1e487827 14828fi
698dcdb6 14829
4f14bcd8
GD
14830if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
14831 echo "$ac_t""yes" 1>&6
14832 cat >> confdefs.h <<\EOF
14833#define HAVE_VPRINTF 1
f6bcfd97
BP
14834EOF
14835
4f14bcd8
GD
14836else
14837 echo "$ac_t""no" 1>&6
eb4efbdc
VZ
14838fi
14839
4f14bcd8
GD
14840if test "$ac_cv_func_vprintf" != yes; then
14841echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
658974ae 14842echo "configure:14843: checking for _doprnt" >&5
4f14bcd8 14843if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
698dcdb6
VZ
14844 echo $ac_n "(cached) $ac_c" 1>&6
14845else
14846 cat > conftest.$ac_ext <<EOF
658974ae 14847#line 14848 "configure"
10f2d63a
VZ
14848#include "confdefs.h"
14849/* System header to define __stub macros and hopefully few prototypes,
4f14bcd8 14850 which can conflict with char _doprnt(); below. */
10f2d63a
VZ
14851#include <assert.h>
14852/* Override any gcc2 internal prototype to avoid an error. */
14853/* We use char because int might match the return type of a gcc2
698dcdb6 14854 builtin and then its argument prototype would still apply. */
4f14bcd8 14855char _doprnt();
698dcdb6
VZ
14856
14857int main() {
10f2d63a
VZ
14858
14859/* The GNU C library defines this for functions which it implements
14860 to always fail with ENOSYS. Some functions are actually named
14861 something starting with __ and the normal name is an alias. */
4f14bcd8 14862#if defined (__stub__doprnt) || defined (__stub____doprnt)
10f2d63a
VZ
14863choke me
14864#else
4f14bcd8 14865_doprnt();
10f2d63a
VZ
14866#endif
14867
698dcdb6 14868; return 0; }
10f2d63a 14869EOF
658974ae 14870if { (eval echo configure:14871: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6 14871 rm -rf conftest*
4f14bcd8 14872 eval "ac_cv_func__doprnt=yes"
698dcdb6
VZ
14873else
14874 echo "configure: failed program was:" >&5
14875 cat conftest.$ac_ext >&5
14876 rm -rf conftest*
4f14bcd8 14877 eval "ac_cv_func__doprnt=no"
698dcdb6
VZ
14878fi
14879rm -f conftest*
14880fi
270a909e 14881
4f14bcd8 14882if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
698dcdb6 14883 echo "$ac_t""yes" 1>&6
4f14bcd8
GD
14884 cat >> confdefs.h <<\EOF
14885#define HAVE_DOPRNT 1
698dcdb6 14886EOF
4f14bcd8 14887
698dcdb6
VZ
14888else
14889 echo "$ac_t""no" 1>&6
270a909e 14890fi
270a909e 14891
4f14bcd8 14892fi
1e487827 14893
52e8b690 14894
52e8b690 14895
52e8b690 14896
52e8b690 14897
52e8b690 14898
4f14bcd8 14899echo $ac_n "checking for vsnprintf""... $ac_c" 1>&6
658974ae 14900echo "configure:14901: checking for vsnprintf" >&5
4f14bcd8 14901if eval "test \"`echo '$''{'wx_cv_func_vsnprintf'+set}'`\" = set"; then
698dcdb6 14902 echo $ac_n "(cached) $ac_c" 1>&6
c63c7106 14903else
4f14bcd8 14904
af15babd 14905 cat > conftest.$ac_ext <<EOF
658974ae 14906#line 14907 "configure"
c63c7106 14907#include "confdefs.h"
698dcdb6 14908
4f14bcd8
GD
14909 #include <stdio.h>
14910 #include <stdarg.h>
14911
af15babd
VZ
14912int main() {
14913
4f14bcd8
GD
14914 int wx_test_vsnprintf(const char *, ...);
14915
14916 wx_test_vsnprintf("%s");
14917 return 0;
14918 }
14919
14920 int wx_test_vsnprintf(const char *fmt, ...)
14921 {
14922 char *s;
14923
14924 va_list argp;
14925 va_start(argp, fmt);
14926 vsnprintf(s, 42, fmt, argp);
14927 va_end(argp);
14928
af15babd
VZ
14929; return 0; }
14930EOF
658974ae 14931if { (eval echo configure:14932: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
af15babd
VZ
14932 rm -rf conftest*
14933
4f14bcd8
GD
14934 wx_cv_func_vsnprintf=yes
14935
af15babd
VZ
14936else
14937 echo "configure: failed program was:" >&5
14938 cat conftest.$ac_ext >&5
14939 rm -rf conftest*
14940
4f14bcd8 14941 cat > conftest.$ac_ext <<EOF
658974ae 14942#line 14943 "configure"
af15babd 14943#include "confdefs.h"
af15babd 14944
4f14bcd8
GD
14945 #include <stdio.h>
14946 #include <stdarg.h>
14947
af15babd
VZ
14948int main() {
14949
4f14bcd8
GD
14950 int wx_test_vsnprintf(const char *, ...);
14951
14952 wx_test_vsnprintf("%s");
14953 return 0;
14954 }
14955
14956 int wx_test_vsnprintf(const char *fmt, ...)
14957 {
14958 char *s;
af15babd 14959
4f14bcd8
GD
14960 va_list argp;
14961 va_start(argp, fmt);
14962 _vsnprintf(s, 42, fmt, argp);
14963 va_end(argp);
14964
af15babd
VZ
14965; return 0; }
14966EOF
658974ae 14967if { (eval echo configure:14968: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
af15babd 14968 rm -rf conftest*
4f14bcd8
GD
14969
14970 wx_cv_func_vsnprintf=yes
14971
af15babd
VZ
14972else
14973 echo "configure: failed program was:" >&5
14974 cat conftest.$ac_ext >&5
14975 rm -rf conftest*
4f14bcd8
GD
14976
14977 wx_cv_func_vsnprintf=no
14978
af15babd
VZ
14979fi
14980rm -f conftest*
4f14bcd8 14981
af15babd 14982fi
4f14bcd8 14983rm -f conftest*
af15babd 14984
af15babd 14985fi
af15babd 14986
4f14bcd8 14987echo "$ac_t""$wx_cv_func_vsnprintf" 1>&6
af15babd 14988
4f14bcd8
GD
14989if test "$wx_cv_func_vsnprintf" = yes; then
14990 cat >> confdefs.h <<\EOF
14991#define HAVE_VSNPRINTF 1
14992EOF
14993
14994else
f9bc1684 14995 echo "configure: warning: unsafe function vsprintf will be used instead of vsnprintf" 1>&2
af15babd
VZ
14996fi
14997
4f14bcd8 14998echo $ac_n "checking for vsscanf""... $ac_c" 1>&6
658974ae 14999echo "configure:15000: checking for vsscanf" >&5
4f14bcd8 15000if eval "test \"`echo '$''{'wx_cv_func_vsscanf'+set}'`\" = set"; then
af15babd
VZ
15001 echo $ac_n "(cached) $ac_c" 1>&6
15002else
4f14bcd8 15003
af15babd 15004 cat > conftest.$ac_ext <<EOF
658974ae 15005#line 15006 "configure"
af15babd 15006#include "confdefs.h"
af15babd 15007
4f14bcd8
GD
15008 #include <stdio.h>
15009 #include <stdarg.h>
15010
af15babd
VZ
15011int main() {
15012
4f14bcd8
GD
15013 int wx_test_vsscanf(const char *, ...);
15014
15015 wx_test_vsscanf("%d");
15016 return 0;
15017 }
af15babd 15018
4f14bcd8
GD
15019 int wx_test_vsscanf(const char *fmt, ...)
15020 {
15021 va_list argp;
15022 va_start(argp, fmt);
15023 vsscanf("42", fmt, argp);
15024 va_end(argp);
15025
af15babd
VZ
15026; return 0; }
15027EOF
658974ae 15028if { (eval echo configure:15029: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
af15babd 15029 rm -rf conftest*
4f14bcd8
GD
15030
15031 wx_cv_func_vsscanf=yes
15032
af15babd
VZ
15033else
15034 echo "configure: failed program was:" >&5
15035 cat conftest.$ac_ext >&5
15036 rm -rf conftest*
4f14bcd8
GD
15037
15038 wx_cv_func_vsscanf=no
15039
af15babd
VZ
15040fi
15041rm -f conftest*
4f14bcd8 15042
af15babd
VZ
15043fi
15044
4f14bcd8
GD
15045echo "$ac_t""$wx_cv_func_vsscanf" 1>&6
15046
15047if test "$wx_cv_func_vsscanf" = yes; then
15048 cat >> confdefs.h <<\EOF
15049#define HAVE_VSSCANF 1
af15babd 15050EOF
4f14bcd8 15051
af15babd 15052fi
af15babd 15053
4f14bcd8 15054if test "$TOOLKIT" != "MSW"; then
af15babd 15055
4f14bcd8
GD
15056
15057
15058ac_ext=C
15059# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15060ac_cpp='$CXXCPP $CPPFLAGS'
15061ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15062ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15063cross_compiling=$ac_cv_prog_cxx_cross
15064
15065echo $ac_n "checking if iconv() takes char**""... $ac_c" 1>&6
658974ae 15066echo "configure:15067: checking if iconv() takes char**" >&5
4f14bcd8 15067if eval "test \"`echo '$''{'wx_cv_iconv_takes_char'+set}'`\" = set"; then
af15babd
VZ
15068 echo $ac_n "(cached) $ac_c" 1>&6
15069else
4f14bcd8
GD
15070
15071 cat > conftest.$ac_ext <<EOF
658974ae 15072#line 15073 "configure"
af15babd 15073#include "confdefs.h"
4f14bcd8 15074#include <iconv.h>
af15babd
VZ
15075int main() {
15076
4f14bcd8
GD
15077 char **inbuf, **outbuf;
15078 iconv_t cd;
15079 size_t insz, outsz;
15080 iconv(cd, inbuf, &insz, outbuf, &outsz);
15081
af15babd
VZ
15082; return 0; }
15083EOF
658974ae 15084if { (eval echo configure:15085: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
af15babd 15085 rm -rf conftest*
4f14bcd8 15086 wx_cv_iconv_takes_char=yes
af15babd
VZ
15087else
15088 echo "configure: failed program was:" >&5
15089 cat conftest.$ac_ext >&5
15090 rm -rf conftest*
4f14bcd8 15091 wx_cv_iconv_takes_char=no
af15babd
VZ
15092fi
15093rm -f conftest*
af15babd 15094
af15babd 15095fi
af15babd 15096
4f14bcd8
GD
15097echo "$ac_t""$wx_cv_iconv_takes_char" 1>&6
15098ac_ext=c
15099# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15100ac_cpp='$CPP $CPPFLAGS'
15101ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15102ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15103cross_compiling=$ac_cv_prog_cc_cross
af15babd 15104
4f14bcd8
GD
15105if test "$wx_cv_iconv_takes_char" = yes ; then
15106 cat >> confdefs.h <<\EOF
15107#define WX_ICONV_TAKES_CHAR 1
af15babd
VZ
15108EOF
15109
af15babd
VZ
15110fi
15111
af15babd 15112
4f14bcd8
GD
15113if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then
15114 for ac_func in sigaction
af15babd
VZ
15115do
15116echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
658974ae 15117echo "configure:15118: checking for $ac_func" >&5
af15babd
VZ
15118if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15119 echo $ac_n "(cached) $ac_c" 1>&6
15120else
15121 cat > conftest.$ac_ext <<EOF
658974ae 15122#line 15123 "configure"
af15babd
VZ
15123#include "confdefs.h"
15124/* System header to define __stub macros and hopefully few prototypes,
15125 which can conflict with char $ac_func(); below. */
15126#include <assert.h>
15127/* Override any gcc2 internal prototype to avoid an error. */
15128/* We use char because int might match the return type of a gcc2
15129 builtin and then its argument prototype would still apply. */
15130char $ac_func();
15131
15132int main() {
15133
15134/* The GNU C library defines this for functions which it implements
15135 to always fail with ENOSYS. Some functions are actually named
15136 something starting with __ and the normal name is an alias. */
15137#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15138choke me
15139#else
15140$ac_func();
15141#endif
15142
15143; return 0; }
15144EOF
658974ae 15145if { (eval echo configure:15146: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
af15babd
VZ
15146 rm -rf conftest*
15147 eval "ac_cv_func_$ac_func=yes"
15148else
15149 echo "configure: failed program was:" >&5
15150 cat conftest.$ac_ext >&5
15151 rm -rf conftest*
15152 eval "ac_cv_func_$ac_func=no"
15153fi
15154rm -f conftest*
15155fi
15156
15157if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15158 echo "$ac_t""yes" 1>&6
15159 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15160 cat >> confdefs.h <<EOF
15161#define $ac_tr_func 1
15162EOF
4f14bcd8 15163
af15babd
VZ
15164else
15165 echo "$ac_t""no" 1>&6
4f14bcd8
GD
15166fi
15167done
15168
15169
15170 if test "$ac_cv_func_sigaction" = "no"; then
15171 echo "configure: warning: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" 1>&2
15172 wxUSE_ON_FATAL_EXCEPTION=no
15173 fi
15174
15175 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
15176
15177 ac_ext=C
15178# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15179ac_cpp='$CXXCPP $CPPFLAGS'
15180ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15181ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15182cross_compiling=$ac_cv_prog_cxx_cross
15183
15184
15185 echo $ac_n "checking for sa_handler type""... $ac_c" 1>&6
658974ae 15186echo "configure:15187: checking for sa_handler type" >&5
4f14bcd8 15187if eval "test \"`echo '$''{'wx_cv_type_sa_handler'+set}'`\" = set"; then
af15babd
VZ
15188 echo $ac_n "(cached) $ac_c" 1>&6
15189else
4f14bcd8
GD
15190
15191 cat > conftest.$ac_ext <<EOF
658974ae 15192#line 15193 "configure"
af15babd 15193#include "confdefs.h"
4f14bcd8 15194#include <signal.h>
af15babd 15195int main() {
4f14bcd8
GD
15196
15197 extern void testSigHandler(int);
15198
15199 struct sigaction sa;
15200 sa.sa_handler = testSigHandler;
15201
af15babd
VZ
15202; return 0; }
15203EOF
658974ae 15204if { (eval echo configure:15205: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
af15babd 15205 rm -rf conftest*
4f14bcd8
GD
15206
15207 wx_cv_type_sa_handler=int
15208
af15babd
VZ
15209else
15210 echo "configure: failed program was:" >&5
15211 cat conftest.$ac_ext >&5
15212 rm -rf conftest*
4f14bcd8
GD
15213
15214 wx_cv_type_sa_handler=void
15215
af15babd
VZ
15216fi
15217rm -f conftest*
4f14bcd8
GD
15218
15219fi
15220
15221echo "$ac_t""$wx_cv_type_sa_handler" 1>&6
15222
15223 ac_ext=c
15224# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15225ac_cpp='$CPP $CPPFLAGS'
15226ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15227ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15228cross_compiling=$ac_cv_prog_cc_cross
af15babd 15229
4f14bcd8
GD
15230
15231 cat >> confdefs.h <<EOF
15232#define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler
af15babd
VZ
15233EOF
15234
4f14bcd8
GD
15235 fi
15236fi
af15babd 15237
4f14bcd8 15238for ac_func in vfork
af15babd
VZ
15239do
15240echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
658974ae 15241echo "configure:15242: checking for $ac_func" >&5
af15babd
VZ
15242if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15243 echo $ac_n "(cached) $ac_c" 1>&6
15244else
15245 cat > conftest.$ac_ext <<EOF
658974ae 15246#line 15247 "configure"
af15babd
VZ
15247#include "confdefs.h"
15248/* System header to define __stub macros and hopefully few prototypes,
15249 which can conflict with char $ac_func(); below. */
15250#include <assert.h>
15251/* Override any gcc2 internal prototype to avoid an error. */
15252/* We use char because int might match the return type of a gcc2
15253 builtin and then its argument prototype would still apply. */
15254char $ac_func();
15255
15256int main() {
15257
15258/* The GNU C library defines this for functions which it implements
15259 to always fail with ENOSYS. Some functions are actually named
15260 something starting with __ and the normal name is an alias. */
15261#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15262choke me
15263#else
15264$ac_func();
15265#endif
15266
15267; return 0; }
15268EOF
658974ae 15269if { (eval echo configure:15270: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
af15babd
VZ
15270 rm -rf conftest*
15271 eval "ac_cv_func_$ac_func=yes"
15272else
15273 echo "configure: failed program was:" >&5
15274 cat conftest.$ac_ext >&5
15275 rm -rf conftest*
15276 eval "ac_cv_func_$ac_func=no"
15277fi
15278rm -f conftest*
15279fi
15280
15281if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15282 echo "$ac_t""yes" 1>&6
15283 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15284 cat >> confdefs.h <<EOF
15285#define $ac_tr_func 1
15286EOF
4f14bcd8 15287
af15babd
VZ
15288else
15289 echo "$ac_t""no" 1>&6
af15babd
VZ
15290fi
15291done
15292
af15babd 15293
ade35f11
VZ
15294for ac_func in mkstemp mktemp
15295do
15296echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
658974ae 15297echo "configure:15298: checking for $ac_func" >&5
ade35f11
VZ
15298if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15299 echo $ac_n "(cached) $ac_c" 1>&6
15300else
15301 cat > conftest.$ac_ext <<EOF
658974ae 15302#line 15303 "configure"
ade35f11
VZ
15303#include "confdefs.h"
15304/* System header to define __stub macros and hopefully few prototypes,
15305 which can conflict with char $ac_func(); below. */
15306#include <assert.h>
15307/* Override any gcc2 internal prototype to avoid an error. */
15308/* We use char because int might match the return type of a gcc2
15309 builtin and then its argument prototype would still apply. */
15310char $ac_func();
15311
15312int main() {
15313
15314/* The GNU C library defines this for functions which it implements
15315 to always fail with ENOSYS. Some functions are actually named
15316 something starting with __ and the normal name is an alias. */
15317#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15318choke me
15319#else
15320$ac_func();
15321#endif
15322
15323; return 0; }
15324EOF
658974ae 15325if { (eval echo configure:15326: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ade35f11
VZ
15326 rm -rf conftest*
15327 eval "ac_cv_func_$ac_func=yes"
15328else
15329 echo "configure: failed program was:" >&5
15330 cat conftest.$ac_ext >&5
15331 rm -rf conftest*
15332 eval "ac_cv_func_$ac_func=no"
15333fi
15334rm -f conftest*
15335fi
15336
15337if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15338 echo "$ac_t""yes" 1>&6
15339 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15340 cat >> confdefs.h <<EOF
15341#define $ac_tr_func 1
15342EOF
15343 break
15344else
15345 echo "$ac_t""no" 1>&6
15346fi
15347done
15348
15349
4f14bcd8 15350echo $ac_n "checking for statfs""... $ac_c" 1>&6
658974ae 15351echo "configure:15352: checking for statfs" >&5
4f14bcd8
GD
15352if eval "test \"`echo '$''{'wx_cv_func_statfs'+set}'`\" = set"; then
15353 echo $ac_n "(cached) $ac_c" 1>&6
15354else
15355 cat > conftest.$ac_ext <<EOF
658974ae 15356#line 15357 "configure"
4f14bcd8
GD
15357#include "confdefs.h"
15358
15359 #if defined(__BSD__)
15360 #include <sys/param.h>
15361 #include <sys/mount.h>
15362 #else
15363 #include <sys/vfs.h>
15364 #endif
15365
15366int main() {
15367
15368 long l;
15369 struct statfs fs;
15370 statfs("/", &fs);
15371 l = fs.f_bsize;
15372 l += fs.f_blocks;
15373 l += fs.f_bavail;
15374
15375; return 0; }
15376EOF
658974ae 15377if { (eval echo configure:15378: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4f14bcd8
GD
15378 rm -rf conftest*
15379
15380 wx_cv_func_statfs=yes
15381
15382else
15383 echo "configure: failed program was:" >&5
15384 cat conftest.$ac_ext >&5
15385 rm -rf conftest*
15386
15387 wx_cv_func_statfs=no
af15babd
VZ
15388
15389
15390fi
4f14bcd8 15391rm -f conftest*
af15babd
VZ
15392
15393fi
15394
4f14bcd8
GD
15395echo "$ac_t""$wx_cv_func_statfs" 1>&6
15396
15397if test "$wx_cv_func_statfs" = "yes"; then
15398 cat >> confdefs.h <<\EOF
15399#define HAVE_STATFS 1
15400EOF
15401
15402else
15403 echo $ac_n "checking for statvfs""... $ac_c" 1>&6
658974ae 15404echo "configure:15405: checking for statvfs" >&5
4f14bcd8 15405if eval "test \"`echo '$''{'wx_cv_func_statvfs'+set}'`\" = set"; then
af15babd
VZ
15406 echo $ac_n "(cached) $ac_c" 1>&6
15407else
15408 cat > conftest.$ac_ext <<EOF
658974ae 15409#line 15410 "configure"
af15babd 15410#include "confdefs.h"
af15babd 15411
4f14bcd8
GD
15412 #include <sys/statvfs.h>
15413
af15babd
VZ
15414int main() {
15415
4f14bcd8
GD
15416 long l;
15417 struct statvfs fs;
15418 statvfs("/", &fs);
15419 l = fs.f_bsize;
15420 l += fs.f_blocks;
15421 l += fs.f_bavail;
15422
af15babd
VZ
15423; return 0; }
15424EOF
658974ae 15425if { (eval echo configure:15426: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
af15babd 15426 rm -rf conftest*
4f14bcd8
GD
15427
15428 wx_cv_func_statvfs=yes
15429
af15babd
VZ
15430else
15431 echo "configure: failed program was:" >&5
15432 cat conftest.$ac_ext >&5
15433 rm -rf conftest*
4f14bcd8
GD
15434
15435 wx_cv_func_statvfs=no
15436
15437
af15babd
VZ
15438fi
15439rm -f conftest*
4f14bcd8 15440
af15babd
VZ
15441fi
15442
4f14bcd8 15443echo "$ac_t""$wx_cv_func_statvfs" 1>&6
af15babd 15444
4f14bcd8
GD
15445 if test "$wx_cv_func_statvfs" = "yes"; then
15446 cat >> confdefs.h <<\EOF
15447#define HAVE_STATVFS 1
15448EOF
af15babd 15449
4f14bcd8
GD
15450 else
15451 echo "configure: warning: wxGetDiskSpace() function won't work without statfs()" 1>&2
15452 fi
15453fi
af15babd 15454
4f14bcd8
GD
15455if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
15456 for ac_func in fcntl flock
af15babd
VZ
15457do
15458echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
658974ae 15459echo "configure:15460: checking for $ac_func" >&5
af15babd
VZ
15460if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15461 echo $ac_n "(cached) $ac_c" 1>&6
15462else
15463 cat > conftest.$ac_ext <<EOF
658974ae 15464#line 15465 "configure"
af15babd
VZ
15465#include "confdefs.h"
15466/* System header to define __stub macros and hopefully few prototypes,
15467 which can conflict with char $ac_func(); below. */
15468#include <assert.h>
15469/* Override any gcc2 internal prototype to avoid an error. */
af15babd
VZ
15470/* We use char because int might match the return type of a gcc2
15471 builtin and then its argument prototype would still apply. */
15472char $ac_func();
15473
15474int main() {
15475
15476/* The GNU C library defines this for functions which it implements
15477 to always fail with ENOSYS. Some functions are actually named
15478 something starting with __ and the normal name is an alias. */
15479#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15480choke me
15481#else
15482$ac_func();
15483#endif
15484
15485; return 0; }
15486EOF
658974ae 15487if { (eval echo configure:15488: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
af15babd
VZ
15488 rm -rf conftest*
15489 eval "ac_cv_func_$ac_func=yes"
15490else
15491 echo "configure: failed program was:" >&5
15492 cat conftest.$ac_ext >&5
15493 rm -rf conftest*
15494 eval "ac_cv_func_$ac_func=no"
15495fi
15496rm -f conftest*
15497fi
15498
15499if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15500 echo "$ac_t""yes" 1>&6
15501 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15502 cat >> confdefs.h <<EOF
15503#define $ac_tr_func 1
15504EOF
4f14bcd8 15505 break
af15babd
VZ
15506else
15507 echo "$ac_t""no" 1>&6
15508fi
15509done
15510
15511
4f14bcd8
GD
15512 if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then
15513 echo "configure: warning: wxSingleInstanceChecker not available" 1>&2
15514 wxUSE_SNGLINST_CHECKER=no
15515 fi
15516fi
af15babd 15517
4f14bcd8 15518for ac_func in timegm
af15babd
VZ
15519do
15520echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
658974ae 15521echo "configure:15522: checking for $ac_func" >&5
af15babd
VZ
15522if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15523 echo $ac_n "(cached) $ac_c" 1>&6
15524else
15525 cat > conftest.$ac_ext <<EOF
658974ae 15526#line 15527 "configure"
af15babd
VZ
15527#include "confdefs.h"
15528/* System header to define __stub macros and hopefully few prototypes,
15529 which can conflict with char $ac_func(); below. */
15530#include <assert.h>
15531/* Override any gcc2 internal prototype to avoid an error. */
15532/* We use char because int might match the return type of a gcc2
15533 builtin and then its argument prototype would still apply. */
15534char $ac_func();
15535
698dcdb6 15536int main() {
698dcdb6 15537
af15babd
VZ
15538/* The GNU C library defines this for functions which it implements
15539 to always fail with ENOSYS. Some functions are actually named
15540 something starting with __ and the normal name is an alias. */
15541#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15542choke me
15543#else
15544$ac_func();
15545#endif
15546
698dcdb6
VZ
15547; return 0; }
15548EOF
658974ae 15549if { (eval echo configure:15550: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6 15550 rm -rf conftest*
af15babd 15551 eval "ac_cv_func_$ac_func=yes"
698dcdb6
VZ
15552else
15553 echo "configure: failed program was:" >&5
15554 cat conftest.$ac_ext >&5
15555 rm -rf conftest*
af15babd 15556 eval "ac_cv_func_$ac_func=no"
1e487827 15557fi
9952adac 15558rm -f conftest*
af15babd 15559fi
703e0a69 15560
af15babd
VZ
15561if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15562 echo "$ac_t""yes" 1>&6
15563 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4f14bcd8
GD
15564 cat >> confdefs.h <<EOF
15565#define $ac_tr_func 1
15566EOF
15567
15568else
15569 echo "$ac_t""no" 1>&6
af15babd
VZ
15570fi
15571done
15572
15573
4f14bcd8 15574for ac_func in putenv setenv
10f2d63a 15575do
698dcdb6 15576echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
658974ae 15577echo "configure:15578: checking for $ac_func" >&5
698dcdb6
VZ
15578if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15579 echo $ac_n "(cached) $ac_c" 1>&6
15580else
15581 cat > conftest.$ac_ext <<EOF
658974ae 15582#line 15583 "configure"
af15babd
VZ
15583#include "confdefs.h"
15584/* System header to define __stub macros and hopefully few prototypes,
15585 which can conflict with char $ac_func(); below. */
15586#include <assert.h>
15587/* Override any gcc2 internal prototype to avoid an error. */
15588/* We use char because int might match the return type of a gcc2
15589 builtin and then its argument prototype would still apply. */
15590char $ac_func();
15591
15592int main() {
15593
15594/* The GNU C library defines this for functions which it implements
15595 to always fail with ENOSYS. Some functions are actually named
15596 something starting with __ and the normal name is an alias. */
15597#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15598choke me
15599#else
15600$ac_func();
15601#endif
15602
15603; return 0; }
15604EOF
658974ae 15605if { (eval echo configure:15606: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
af15babd
VZ
15606 rm -rf conftest*
15607 eval "ac_cv_func_$ac_func=yes"
15608else
15609 echo "configure: failed program was:" >&5
15610 cat conftest.$ac_ext >&5
15611 rm -rf conftest*
15612 eval "ac_cv_func_$ac_func=no"
15613fi
15614rm -f conftest*
15615fi
15616
15617if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15618 echo "$ac_t""yes" 1>&6
15619 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15620 cat >> confdefs.h <<EOF
15621#define $ac_tr_func 1
15622EOF
4f14bcd8 15623 break
af15babd
VZ
15624else
15625 echo "$ac_t""no" 1>&6
15626fi
af15babd
VZ
15627done
15628
15629
4f14bcd8
GD
15630HAVE_SOME_SLEEP_FUNC=0
15631if test "$USE_BEOS" = 1; then
15632 cat >> confdefs.h <<\EOF
15633#define HAVE_SLEEP 1
af15babd
VZ
15634EOF
15635
4f14bcd8 15636 HAVE_SOME_SLEEP_FUNC=1
10f2d63a
VZ
15637fi
15638
4f14bcd8
GD
15639if test "$USE_DARWIN" = 1; then
15640 cat >> confdefs.h <<\EOF
15641#define HAVE_USLEEP 1
af15babd 15642EOF
10f2d63a 15643
4f14bcd8 15644 HAVE_SOME_SLEEP_FUNC=1
10f2d63a
VZ
15645fi
15646
4f14bcd8
GD
15647if test "$HAVE_SOME_SLEEP_FUNC" != 1; then
15648 POSIX4_LINK=
15649 for ac_func in nanosleep
15650do
15651echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
658974ae 15652echo "configure:15653: checking for $ac_func" >&5
4f14bcd8 15653if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
698dcdb6 15654 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 15655else
4f14bcd8 15656 cat > conftest.$ac_ext <<EOF
658974ae 15657#line 15658 "configure"
10f2d63a 15658#include "confdefs.h"
4f14bcd8
GD
15659/* System header to define __stub macros and hopefully few prototypes,
15660 which can conflict with char $ac_func(); below. */
15661#include <assert.h>
10f2d63a
VZ
15662/* Override any gcc2 internal prototype to avoid an error. */
15663/* We use char because int might match the return type of a gcc2
698dcdb6 15664 builtin and then its argument prototype would still apply. */
4f14bcd8 15665char $ac_func();
698dcdb6
VZ
15666
15667int main() {
4f14bcd8
GD
15668
15669/* The GNU C library defines this for functions which it implements
15670 to always fail with ENOSYS. Some functions are actually named
15671 something starting with __ and the normal name is an alias. */
15672#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15673choke me
15674#else
15675$ac_func();
15676#endif
15677
698dcdb6
VZ
15678; return 0; }
15679EOF
658974ae 15680if { (eval echo configure:15681: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6 15681 rm -rf conftest*
4f14bcd8 15682 eval "ac_cv_func_$ac_func=yes"
698dcdb6
VZ
15683else
15684 echo "configure: failed program was:" >&5
15685 cat conftest.$ac_ext >&5
15686 rm -rf conftest*
4f14bcd8 15687 eval "ac_cv_func_$ac_func=no"
698dcdb6
VZ
15688fi
15689rm -f conftest*
698dcdb6 15690fi
4f14bcd8
GD
15691
15692if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
698dcdb6 15693 echo "$ac_t""yes" 1>&6
4f14bcd8
GD
15694 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15695 cat >> confdefs.h <<EOF
15696#define $ac_tr_func 1
15697EOF
15698 cat >> confdefs.h <<\EOF
15699#define HAVE_NANOSLEEP 1
15700EOF
15701
10f2d63a 15702else
698dcdb6 15703 echo "$ac_t""no" 1>&6
4f14bcd8 15704echo $ac_n "checking for nanosleep in -lposix4""... $ac_c" 1>&6
658974ae 15705echo "configure:15706: checking for nanosleep in -lposix4" >&5
4f14bcd8 15706ac_lib_var=`echo posix4'_'nanosleep | sed 'y%./+-%__p_%'`
698dcdb6
VZ
15707if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15708 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 15709else
698dcdb6 15710 ac_save_LIBS="$LIBS"
4f14bcd8 15711LIBS="-lposix4 $LIBS"
698dcdb6 15712cat > conftest.$ac_ext <<EOF
658974ae 15713#line 15714 "configure"
10f2d63a
VZ
15714#include "confdefs.h"
15715/* Override any gcc2 internal prototype to avoid an error. */
15716/* We use char because int might match the return type of a gcc2
698dcdb6 15717 builtin and then its argument prototype would still apply. */
4f14bcd8 15718char nanosleep();
698dcdb6
VZ
15719
15720int main() {
4f14bcd8 15721nanosleep()
698dcdb6
VZ
15722; return 0; }
15723EOF
658974ae 15724if { (eval echo configure:15725: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
15725 rm -rf conftest*
15726 eval "ac_cv_lib_$ac_lib_var=yes"
15727else
15728 echo "configure: failed program was:" >&5
15729 cat conftest.$ac_ext >&5
15730 rm -rf conftest*
15731 eval "ac_cv_lib_$ac_lib_var=no"
15732fi
15733rm -f conftest*
15734LIBS="$ac_save_LIBS"
10f2d63a 15735
698dcdb6
VZ
15736fi
15737if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15738 echo "$ac_t""yes" 1>&6
15739
4f14bcd8
GD
15740 cat >> confdefs.h <<\EOF
15741#define HAVE_NANOSLEEP 1
15742EOF
15743
3d63bc3a 15744 POSIX4_LINK=" -lposix4"
4f14bcd8 15745
10f2d63a 15746else
698dcdb6 15747 echo "$ac_t""no" 1>&6
10f2d63a 15748
4f14bcd8
GD
15749 for ac_func in usleep
15750do
15751echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
658974ae 15752echo "configure:15753: checking for $ac_func" >&5
4f14bcd8 15753if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
698dcdb6 15754 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 15755else
698dcdb6 15756 cat > conftest.$ac_ext <<EOF
658974ae 15757#line 15758 "configure"
10f2d63a 15758#include "confdefs.h"
4f14bcd8
GD
15759/* System header to define __stub macros and hopefully few prototypes,
15760 which can conflict with char $ac_func(); below. */
15761#include <assert.h>
15762/* Override any gcc2 internal prototype to avoid an error. */
15763/* We use char because int might match the return type of a gcc2
15764 builtin and then its argument prototype would still apply. */
15765char $ac_func();
15766
15767int main() {
15768
15769/* The GNU C library defines this for functions which it implements
15770 to always fail with ENOSYS. Some functions are actually named
15771 something starting with __ and the normal name is an alias. */
15772#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15773choke me
15774#else
15775$ac_func();
15776#endif
15777
15778; return 0; }
698dcdb6 15779EOF
658974ae 15780if { (eval echo configure:15781: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6 15781 rm -rf conftest*
4f14bcd8 15782 eval "ac_cv_func_$ac_func=yes"
1e487827 15783else
698dcdb6 15784 echo "configure: failed program was:" >&5
10f2d63a 15785 cat conftest.$ac_ext >&5
698dcdb6 15786 rm -rf conftest*
4f14bcd8 15787 eval "ac_cv_func_$ac_func=no"
10f2d63a 15788fi
698dcdb6 15789rm -f conftest*
10f2d63a 15790fi
4f14bcd8
GD
15791
15792if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
698dcdb6 15793 echo "$ac_t""yes" 1>&6
4f14bcd8
GD
15794 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15795 cat >> confdefs.h <<EOF
15796#define $ac_tr_func 1
15797EOF
15798 cat >> confdefs.h <<\EOF
15799#define HAVE_USLEEP 1
15800EOF
15801
698dcdb6
VZ
15802else
15803 echo "$ac_t""no" 1>&6
4f14bcd8
GD
15804echo "configure: warning: wxSleep() function will not work" 1>&2
15805
10f2d63a 15806fi
4f14bcd8 15807done
10f2d63a 15808
4f14bcd8 15809
698dcdb6 15810
6232543b 15811fi
10f2d63a 15812
698dcdb6 15813
4f14bcd8 15814
1e487827 15815fi
4f14bcd8 15816done
703e0a69 15817
10f2d63a
VZ
15818fi
15819
4f14bcd8 15820for ac_func in uname gethostname
70846f0a 15821do
698dcdb6 15822echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
658974ae 15823echo "configure:15824: checking for $ac_func" >&5
698dcdb6
VZ
15824if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15825 echo $ac_n "(cached) $ac_c" 1>&6
15826else
15827 cat > conftest.$ac_ext <<EOF
658974ae 15828#line 15829 "configure"
70846f0a
VZ
15829#include "confdefs.h"
15830/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 15831 which can conflict with char $ac_func(); below. */
70846f0a
VZ
15832#include <assert.h>
15833/* Override any gcc2 internal prototype to avoid an error. */
15834/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
15835 builtin and then its argument prototype would still apply. */
15836char $ac_func();
15837
15838int main() {
70846f0a
VZ
15839
15840/* The GNU C library defines this for functions which it implements
15841 to always fail with ENOSYS. Some functions are actually named
15842 something starting with __ and the normal name is an alias. */
15843#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15844choke me
15845#else
698dcdb6 15846$ac_func();
70846f0a
VZ
15847#endif
15848
698dcdb6 15849; return 0; }
70846f0a 15850EOF
658974ae 15851if { (eval echo configure:15852: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
15852 rm -rf conftest*
15853 eval "ac_cv_func_$ac_func=yes"
15854else
15855 echo "configure: failed program was:" >&5
15856 cat conftest.$ac_ext >&5
15857 rm -rf conftest*
15858 eval "ac_cv_func_$ac_func=no"
15859fi
15860rm -f conftest*
15861fi
70846f0a 15862
698dcdb6
VZ
15863if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15864 echo "$ac_t""yes" 1>&6
15865 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15866 cat >> confdefs.h <<EOF
15867#define $ac_tr_func 1
15868EOF
4f14bcd8 15869 break
698dcdb6
VZ
15870else
15871 echo "$ac_t""no" 1>&6
70846f0a
VZ
15872fi
15873done
15874
698dcdb6 15875
4f14bcd8
GD
15876
15877ac_ext=C
15878# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15879ac_cpp='$CXXCPP $CPPFLAGS'
15880ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15881ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15882cross_compiling=$ac_cv_prog_cxx_cross
15883
15884
15885for ac_func in strtok_r
10f2d63a 15886do
4f14bcd8 15887echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
658974ae 15888echo "configure:15889: checking for $ac_func" >&5
4f14bcd8 15889if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
698dcdb6
VZ
15890 echo $ac_n "(cached) $ac_c" 1>&6
15891else
15892 cat > conftest.$ac_ext <<EOF
658974ae 15893#line 15894 "configure"
10f2d63a 15894#include "confdefs.h"
4f14bcd8
GD
15895/* System header to define __stub macros and hopefully few prototypes,
15896 which can conflict with char $ac_func(); below. */
15897#include <assert.h>
15898/* Override any gcc2 internal prototype to avoid an error. */
15899#ifdef __cplusplus
15900extern "C"
15901#endif
15902/* We use char because int might match the return type of a gcc2
15903 builtin and then its argument prototype would still apply. */
15904char $ac_func();
15905
15906int main() {
15907
15908/* The GNU C library defines this for functions which it implements
15909 to always fail with ENOSYS. Some functions are actually named
15910 something starting with __ and the normal name is an alias. */
15911#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15912choke me
15913#else
15914$ac_func();
15915#endif
15916
15917; return 0; }
698dcdb6 15918EOF
658974ae 15919if { (eval echo configure:15920: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6 15920 rm -rf conftest*
4f14bcd8 15921 eval "ac_cv_func_$ac_func=yes"
1e487827 15922else
698dcdb6 15923 echo "configure: failed program was:" >&5
10f2d63a 15924 cat conftest.$ac_ext >&5
698dcdb6 15925 rm -rf conftest*
4f14bcd8 15926 eval "ac_cv_func_$ac_func=no"
10f2d63a 15927fi
698dcdb6 15928rm -f conftest*
10f2d63a 15929fi
4f14bcd8
GD
15930
15931if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
698dcdb6 15932 echo "$ac_t""yes" 1>&6
4f14bcd8 15933 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
698dcdb6 15934 cat >> confdefs.h <<EOF
4f14bcd8 15935#define $ac_tr_func 1
10f2d63a 15936EOF
698dcdb6
VZ
15937
15938else
15939 echo "$ac_t""no" 1>&6
10f2d63a
VZ
15940fi
15941done
15942
698dcdb6 15943
4f14bcd8
GD
15944ac_ext=c
15945# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15946ac_cpp='$CPP $CPPFLAGS'
15947ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15948ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15949cross_compiling=$ac_cv_prog_cc_cross
15950
15951
15952INET_LINK=
15953for ac_func in inet_addr
15954do
15955echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
658974ae 15956echo "configure:15957: checking for $ac_func" >&5
4f14bcd8 15957if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
698dcdb6 15958 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 15959else
4f14bcd8 15960 cat > conftest.$ac_ext <<EOF
658974ae 15961#line 15962 "configure"
10f2d63a 15962#include "confdefs.h"
4f14bcd8
GD
15963/* System header to define __stub macros and hopefully few prototypes,
15964 which can conflict with char $ac_func(); below. */
15965#include <assert.h>
10f2d63a
VZ
15966/* Override any gcc2 internal prototype to avoid an error. */
15967/* We use char because int might match the return type of a gcc2
698dcdb6 15968 builtin and then its argument prototype would still apply. */
4f14bcd8 15969char $ac_func();
698dcdb6
VZ
15970
15971int main() {
4f14bcd8
GD
15972
15973/* The GNU C library defines this for functions which it implements
15974 to always fail with ENOSYS. Some functions are actually named
15975 something starting with __ and the normal name is an alias. */
15976#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15977choke me
15978#else
15979$ac_func();
15980#endif
15981
698dcdb6
VZ
15982; return 0; }
15983EOF
658974ae 15984if { (eval echo configure:15985: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6 15985 rm -rf conftest*
4f14bcd8 15986 eval "ac_cv_func_$ac_func=yes"
698dcdb6
VZ
15987else
15988 echo "configure: failed program was:" >&5
15989 cat conftest.$ac_ext >&5
15990 rm -rf conftest*
4f14bcd8 15991 eval "ac_cv_func_$ac_func=no"
698dcdb6
VZ
15992fi
15993rm -f conftest*
698dcdb6 15994fi
4f14bcd8
GD
15995
15996if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
698dcdb6 15997 echo "$ac_t""yes" 1>&6
4f14bcd8
GD
15998 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15999 cat >> confdefs.h <<EOF
16000#define $ac_tr_func 1
16001EOF
16002 cat >> confdefs.h <<\EOF
16003#define HAVE_INET_ADDR 1
10f2d63a
VZ
16004EOF
16005
16006else
698dcdb6 16007 echo "$ac_t""no" 1>&6
4f14bcd8 16008echo $ac_n "checking for inet_addr in -lnsl""... $ac_c" 1>&6
658974ae 16009echo "configure:16010: checking for inet_addr in -lnsl" >&5
4f14bcd8 16010ac_lib_var=`echo nsl'_'inet_addr | sed 'y%./+-%__p_%'`
698dcdb6
VZ
16011if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
16012 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 16013else
698dcdb6 16014 ac_save_LIBS="$LIBS"
4f14bcd8 16015LIBS="-lnsl $LIBS"
698dcdb6 16016cat > conftest.$ac_ext <<EOF
658974ae 16017#line 16018 "configure"
10f2d63a
VZ
16018#include "confdefs.h"
16019/* Override any gcc2 internal prototype to avoid an error. */
16020/* We use char because int might match the return type of a gcc2
698dcdb6 16021 builtin and then its argument prototype would still apply. */
4f14bcd8 16022char inet_addr();
698dcdb6
VZ
16023
16024int main() {
4f14bcd8 16025inet_addr()
698dcdb6
VZ
16026; return 0; }
16027EOF
658974ae 16028if { (eval echo configure:16029: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
16029 rm -rf conftest*
16030 eval "ac_cv_lib_$ac_lib_var=yes"
16031else
16032 echo "configure: failed program was:" >&5
16033 cat conftest.$ac_ext >&5
16034 rm -rf conftest*
16035 eval "ac_cv_lib_$ac_lib_var=no"
16036fi
16037rm -f conftest*
16038LIBS="$ac_save_LIBS"
16039
16040fi
16041if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
16042 echo "$ac_t""yes" 1>&6
4f14bcd8 16043 INET_LINK="nsl"
10f2d63a 16044else
698dcdb6 16045 echo "$ac_t""no" 1>&6
4f14bcd8 16046echo $ac_n "checking for inet_addr in -lresolv""... $ac_c" 1>&6
658974ae 16047echo "configure:16048: checking for inet_addr in -lresolv" >&5
4f14bcd8 16048ac_lib_var=`echo resolv'_'inet_addr | sed 'y%./+-%__p_%'`
698dcdb6
VZ
16049if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
16050 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 16051else
698dcdb6 16052 ac_save_LIBS="$LIBS"
4f14bcd8 16053LIBS="-lresolv $LIBS"
698dcdb6 16054cat > conftest.$ac_ext <<EOF
658974ae 16055#line 16056 "configure"
10f2d63a
VZ
16056#include "confdefs.h"
16057/* Override any gcc2 internal prototype to avoid an error. */
16058/* We use char because int might match the return type of a gcc2
698dcdb6 16059 builtin and then its argument prototype would still apply. */
4f14bcd8 16060char inet_addr();
698dcdb6
VZ
16061
16062int main() {
4f14bcd8 16063inet_addr()
698dcdb6
VZ
16064; return 0; }
16065EOF
658974ae 16066if { (eval echo configure:16067: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
16067 rm -rf conftest*
16068 eval "ac_cv_lib_$ac_lib_var=yes"
16069else
16070 echo "configure: failed program was:" >&5
16071 cat conftest.$ac_ext >&5
16072 rm -rf conftest*
16073 eval "ac_cv_lib_$ac_lib_var=no"
16074fi
16075rm -f conftest*
16076LIBS="$ac_save_LIBS"
16077
16078fi
16079if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
16080 echo "$ac_t""yes" 1>&6
4f14bcd8
GD
16081 INET_LINK="resolv"
16082
698dcdb6 16083else
4f14bcd8
GD
16084 echo "$ac_t""no" 1>&6
16085fi
698dcdb6 16086
4f14bcd8 16087
698dcdb6 16088fi
4f14bcd8
GD
16089
16090
698dcdb6
VZ
16091
16092fi
4f14bcd8
GD
16093done
16094
16095
16096for ac_func in inet_aton
16097do
16098echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
658974ae 16099echo "configure:16100: checking for $ac_func" >&5
4f14bcd8 16100if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
698dcdb6
VZ
16101 echo $ac_n "(cached) $ac_c" 1>&6
16102else
4f14bcd8 16103 cat > conftest.$ac_ext <<EOF
658974ae 16104#line 16105 "configure"
f6bcfd97 16105#include "confdefs.h"
4f14bcd8
GD
16106/* System header to define __stub macros and hopefully few prototypes,
16107 which can conflict with char $ac_func(); below. */
16108#include <assert.h>
f6bcfd97
BP
16109/* Override any gcc2 internal prototype to avoid an error. */
16110/* We use char because int might match the return type of a gcc2
698dcdb6 16111 builtin and then its argument prototype would still apply. */
4f14bcd8 16112char $ac_func();
698dcdb6
VZ
16113
16114int main() {
4f14bcd8
GD
16115
16116/* The GNU C library defines this for functions which it implements
16117 to always fail with ENOSYS. Some functions are actually named
16118 something starting with __ and the normal name is an alias. */
16119#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16120choke me
16121#else
16122$ac_func();
16123#endif
16124
698dcdb6
VZ
16125; return 0; }
16126EOF
658974ae 16127if { (eval echo configure:16128: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6 16128 rm -rf conftest*
4f14bcd8 16129 eval "ac_cv_func_$ac_func=yes"
698dcdb6
VZ
16130else
16131 echo "configure: failed program was:" >&5
16132 cat conftest.$ac_ext >&5
16133 rm -rf conftest*
4f14bcd8 16134 eval "ac_cv_func_$ac_func=no"
698dcdb6
VZ
16135fi
16136rm -f conftest*
698dcdb6 16137fi
4f14bcd8
GD
16138
16139if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
698dcdb6 16140 echo "$ac_t""yes" 1>&6
4f14bcd8
GD
16141 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16142 cat >> confdefs.h <<EOF
16143#define $ac_tr_func 1
16144EOF
16145 cat >> confdefs.h <<\EOF
16146#define HAVE_INET_ATON 1
16147EOF
16148
10f2d63a 16149else
698dcdb6 16150 echo "$ac_t""no" 1>&6
4f14bcd8 16151 echo $ac_n "checking for inet_aton in -l$INET_LINK""... $ac_c" 1>&6
658974ae 16152echo "configure:16153: checking for inet_aton in -l$INET_LINK" >&5
4f14bcd8 16153ac_lib_var=`echo $INET_LINK'_'inet_aton | sed 'y%./+-%__p_%'`
698dcdb6
VZ
16154if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
16155 echo $ac_n "(cached) $ac_c" 1>&6
1e487827 16156else
698dcdb6 16157 ac_save_LIBS="$LIBS"
4f14bcd8 16158LIBS="-l$INET_LINK $LIBS"
698dcdb6 16159cat > conftest.$ac_ext <<EOF
658974ae 16160#line 16161 "configure"
10f2d63a 16161#include "confdefs.h"
6232543b 16162/* Override any gcc2 internal prototype to avoid an error. */
6232543b 16163/* We use char because int might match the return type of a gcc2
698dcdb6 16164 builtin and then its argument prototype would still apply. */
4f14bcd8 16165char inet_aton();
698dcdb6
VZ
16166
16167int main() {
4f14bcd8 16168inet_aton()
698dcdb6
VZ
16169; return 0; }
16170EOF
658974ae 16171if { (eval echo configure:16172: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
16172 rm -rf conftest*
16173 eval "ac_cv_lib_$ac_lib_var=yes"
16174else
16175 echo "configure: failed program was:" >&5
16176 cat conftest.$ac_ext >&5
16177 rm -rf conftest*
16178 eval "ac_cv_lib_$ac_lib_var=no"
16179fi
16180rm -f conftest*
16181LIBS="$ac_save_LIBS"
10f2d63a 16182
698dcdb6
VZ
16183fi
16184if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
16185 echo "$ac_t""yes" 1>&6
4f14bcd8
GD
16186 cat >> confdefs.h <<\EOF
16187#define HAVE_INET_ATON 1
16188EOF
16189
698dcdb6
VZ
16190else
16191 echo "$ac_t""no" 1>&6
10f2d63a
VZ
16192fi
16193
4f14bcd8 16194
10f2d63a 16195fi
4f14bcd8 16196done
10f2d63a 16197
4f14bcd8
GD
16198
16199if test "x$INET_LINK" != "x"; then
16200 cat >> confdefs.h <<\EOF
16201#define HAVE_INET_ADDR 1
16202EOF
16203
3d63bc3a 16204 INET_LINK=" -l$INET_LINK"
6232543b 16205fi
10f2d63a 16206
1e487827 16207fi
703e0a69 16208
698dcdb6 16209
4f14bcd8
GD
16210cat > confcache <<\EOF
16211# This file is a shell script that caches the results of configure
16212# tests run on this system so they can be shared between configure
16213# scripts and configure runs. It is not useful on other systems.
16214# If it contains results you don't want to keep, you may remove or edit it.
16215#
16216# By default, configure uses ./config.cache as the cache file,
16217# creating it if it does not exist already. You can give configure
16218# the --cache-file=FILE option to use a different cache file; that is
16219# what configure does when it calls configure scripts in
16220# subdirectories, so they share the cache.
16221# Giving --cache-file=/dev/null disables caching, for debugging configure.
16222# config.status only pays attention to the cache file if you give it the
16223# --recheck option to rerun configure.
16224#
f6bcfd97 16225EOF
4f14bcd8
GD
16226# The following way of writing the cache mishandles newlines in values,
16227# but we know of no workaround that is simple, portable, and efficient.
16228# So, don't put newlines in cache variables' values.
16229# Ultrix sh set writes to stderr and can't be redirected directly,
16230# and sets the high bit in the cache file unless we assign to the vars.
16231(set) 2>&1 |
16232 case `(ac_space=' '; set | grep ac_space) 2>&1` in
16233 *ac_space=\ *)
16234 # `set' does not quote correctly, so add quotes (double-quote substitution
16235 # turns \\\\ into \\, and sed turns \\ into \).
16236 sed -n \
16237 -e "s/'/'\\\\''/g" \
16238 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
16239 ;;
16240 *)
16241 # `set' quotes correctly as required by POSIX, so do not add quotes.
16242 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
16243 ;;
16244 esac >> confcache
16245if cmp -s $cache_file confcache; then
16246 :
16247else
16248 if test -w $cache_file; then
16249 echo "updating cache $cache_file"
16250 cat confcache > $cache_file
f6bcfd97 16251 else
4f14bcd8 16252 echo "not updating unwritable cache $cache_file"
f6bcfd97 16253 fi
4f14bcd8
GD
16254fi
16255rm -f confcache
f6bcfd97 16256
4f14bcd8
GD
16257
16258
16259if test "$TOOLKIT" != "MSW"; then
16260
7274f1c7
RL
16261
16262 THREADS_LINK=
16263 THREADS_OBJ=
16264 CODE_GEN_FLAGS=
16265 CODE_GEN_FLAGS_CXX=
16266
16267 if test "$wxUSE_THREADS" = "yes" ; then
16268 if test "$wxUSE_WINE" = 1 ; then
156b2523 16269 echo "configure: warning: Threads are not supported under WINE... disabled" 1>&2
7274f1c7
RL
16270 wxUSE_THREADS="no"
16271 elif test "$USE_BEOS" = 1; then
156b2523 16272 echo "configure: warning: BeOS threads are not yet supported... disabled" 1>&2
7274f1c7
RL
16273 wxUSE_THREADS="no"
16274 fi
4f14bcd8 16275 fi
4f14bcd8 16276
7274f1c7
RL
16277 if test "$wxUSE_THREADS" = "yes" ; then
16278
16279 if test "$USE_AIX" = 1; then
16280 THREADS_LIB=pthreads
16281 else
16282 THREADS_LIB=pthread
16283 fi
4f14bcd8 16284
7274f1c7 16285 echo $ac_n "checking for pthread_create in -l$THREADS_LIB""... $ac_c" 1>&6
658974ae 16286echo "configure:16287: checking for pthread_create in -l$THREADS_LIB" >&5
4f14bcd8 16287ac_lib_var=`echo $THREADS_LIB'_'pthread_create | sed 'y%./+-%__p_%'`
698dcdb6
VZ
16288if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
16289 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 16290else
698dcdb6 16291 ac_save_LIBS="$LIBS"
4f14bcd8 16292LIBS="-l$THREADS_LIB $LIBS"
698dcdb6 16293cat > conftest.$ac_ext <<EOF
658974ae 16294#line 16295 "configure"
10f2d63a
VZ
16295#include "confdefs.h"
16296/* Override any gcc2 internal prototype to avoid an error. */
16297/* We use char because int might match the return type of a gcc2
698dcdb6 16298 builtin and then its argument prototype would still apply. */
4f14bcd8 16299char pthread_create();
698dcdb6
VZ
16300
16301int main() {
4f14bcd8 16302pthread_create()
698dcdb6
VZ
16303; return 0; }
16304EOF
658974ae 16305if { (eval echo configure:16306: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
16306 rm -rf conftest*
16307 eval "ac_cv_lib_$ac_lib_var=yes"
16308else
16309 echo "configure: failed program was:" >&5
16310 cat conftest.$ac_ext >&5
16311 rm -rf conftest*
16312 eval "ac_cv_lib_$ac_lib_var=no"
16313fi
16314rm -f conftest*
16315LIBS="$ac_save_LIBS"
16316
16317fi
16318if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
16319 echo "$ac_t""yes" 1>&6
4f14bcd8 16320
7274f1c7
RL
16321 THREADS_OBJ="threadpsx.lo"
16322 THREADS_LINK=$THREADS_LIB
16323
10f2d63a 16324else
698dcdb6 16325 echo "$ac_t""no" 1>&6
10f2d63a 16326
7274f1c7 16327 echo $ac_n "checking for pthread_create in -lc_r""... $ac_c" 1>&6
658974ae 16328echo "configure:16329: checking for pthread_create in -lc_r" >&5
4f14bcd8
GD
16329ac_lib_var=`echo c_r'_'pthread_create | sed 'y%./+-%__p_%'`
16330if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
698dcdb6
VZ
16331 echo $ac_n "(cached) $ac_c" 1>&6
16332else
4f14bcd8
GD
16333 ac_save_LIBS="$LIBS"
16334LIBS="-lc_r $LIBS"
16335cat > conftest.$ac_ext <<EOF
658974ae 16336#line 16337 "configure"
10f2d63a 16337#include "confdefs.h"
4f14bcd8
GD
16338/* Override any gcc2 internal prototype to avoid an error. */
16339/* We use char because int might match the return type of a gcc2
16340 builtin and then its argument prototype would still apply. */
16341char pthread_create();
10f2d63a 16342
4f14bcd8
GD
16343int main() {
16344pthread_create()
698dcdb6
VZ
16345; return 0; }
16346EOF
658974ae 16347if { (eval echo configure:16348: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6 16348 rm -rf conftest*
4f14bcd8 16349 eval "ac_cv_lib_$ac_lib_var=yes"
10f2d63a 16350else
698dcdb6
VZ
16351 echo "configure: failed program was:" >&5
16352 cat conftest.$ac_ext >&5
16353 rm -rf conftest*
4f14bcd8 16354 eval "ac_cv_lib_$ac_lib_var=no"
6232543b 16355fi
698dcdb6 16356rm -f conftest*
4f14bcd8 16357LIBS="$ac_save_LIBS"
d9b9876f 16358
4f14bcd8
GD
16359fi
16360if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
16361 echo "$ac_t""yes" 1>&6
16362
7274f1c7
RL
16363 THREADS_OBJ="threadpsx.lo"
16364 THREADS_LINK="c_r"
16365
4f14bcd8
GD
16366else
16367 echo "$ac_t""no" 1>&6
ab252f7b 16368
7274f1c7 16369 ac_safe=`echo "sys/prctl.h" | sed 'y%./+-%__p_%'`
4f14bcd8 16370echo $ac_n "checking for sys/prctl.h""... $ac_c" 1>&6
658974ae 16371echo "configure:16372: checking for sys/prctl.h" >&5
4f14bcd8 16372if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
698dcdb6 16373 echo $ac_n "(cached) $ac_c" 1>&6
d9b9876f 16374else
4f14bcd8 16375 cat > conftest.$ac_ext <<EOF
658974ae 16376#line 16377 "configure"
d9b9876f 16377#include "confdefs.h"
4f14bcd8 16378#include <sys/prctl.h>
698dcdb6 16379EOF
4f14bcd8 16380ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
658974ae 16381{ (eval echo configure:16382: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4f14bcd8
GD
16382ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
16383if test -z "$ac_err"; then
698dcdb6 16384 rm -rf conftest*
4f14bcd8 16385 eval "ac_cv_header_$ac_safe=yes"
d9b9876f 16386else
4f14bcd8 16387 echo "$ac_err" >&5
698dcdb6
VZ
16388 echo "configure: failed program was:" >&5
16389 cat conftest.$ac_ext >&5
16390 rm -rf conftest*
4f14bcd8 16391 eval "ac_cv_header_$ac_safe=no"
6232543b 16392fi
698dcdb6 16393rm -f conftest*
4f14bcd8
GD
16394fi
16395if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
16396 echo "$ac_t""yes" 1>&6
698dcdb6 16397
7274f1c7
RL
16398 THREADS_OBJ="threadsgi.lo"
16399
4f14bcd8
GD
16400else
16401 echo "$ac_t""no" 1>&6
1e487827 16402fi
698dcdb6 16403
7274f1c7 16404
4f14bcd8 16405fi
d9b9876f 16406
7274f1c7 16407
4f14bcd8 16408fi
d9b9876f 16409
4f14bcd8 16410
7274f1c7
RL
16411 if test -z "$THREADS_OBJ" ; then
16412 wxUSE_THREADS=no
156b2523 16413 echo "configure: warning: No thread support on this system... disabled" 1>&2
7274f1c7 16414 fi
4f14bcd8 16415 fi
4f14bcd8 16416
7274f1c7
RL
16417 if test "$wxUSE_THREADS" = "yes" ; then
16418 for ac_func in thr_setconcurrency
4f14bcd8
GD
16419do
16420echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
658974ae 16421echo "configure:16422: checking for $ac_func" >&5
4f14bcd8 16422if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
698dcdb6
VZ
16423 echo $ac_n "(cached) $ac_c" 1>&6
16424else
4f14bcd8 16425 cat > conftest.$ac_ext <<EOF
658974ae 16426#line 16427 "configure"
d9b9876f 16427#include "confdefs.h"
4f14bcd8
GD
16428/* System header to define __stub macros and hopefully few prototypes,
16429 which can conflict with char $ac_func(); below. */
16430#include <assert.h>
16431/* Override any gcc2 internal prototype to avoid an error. */
16432/* We use char because int might match the return type of a gcc2
16433 builtin and then its argument prototype would still apply. */
16434char $ac_func();
16435
698dcdb6 16436int main() {
d9b9876f 16437
4f14bcd8
GD
16438/* The GNU C library defines this for functions which it implements
16439 to always fail with ENOSYS. Some functions are actually named
16440 something starting with __ and the normal name is an alias. */
16441#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16442choke me
16443#else
16444$ac_func();
16445#endif
16446
698dcdb6
VZ
16447; return 0; }
16448EOF
658974ae 16449if { (eval echo configure:16450: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6 16450 rm -rf conftest*
4f14bcd8 16451 eval "ac_cv_func_$ac_func=yes"
d9b9876f 16452else
698dcdb6
VZ
16453 echo "configure: failed program was:" >&5
16454 cat conftest.$ac_ext >&5
16455 rm -rf conftest*
4f14bcd8 16456 eval "ac_cv_func_$ac_func=no"
6232543b 16457fi
698dcdb6 16458rm -f conftest*
1e487827 16459fi
698dcdb6 16460
4f14bcd8
GD
16461if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16462 echo "$ac_t""yes" 1>&6
16463 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16464 cat >> confdefs.h <<EOF
16465#define $ac_tr_func 1
d9b9876f 16466EOF
4f14bcd8
GD
16467
16468else
16469 echo "$ac_t""no" 1>&6
10f2d63a 16470fi
4f14bcd8 16471done
10f2d63a 16472
10f2d63a 16473
7274f1c7
RL
16474
16475 for ac_hdr in sched.h
4f14bcd8
GD
16476do
16477ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
16478echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
658974ae 16479echo "configure:16480: checking for $ac_hdr" >&5
4f14bcd8
GD
16480if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
16481 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 16482else
4f14bcd8 16483 cat > conftest.$ac_ext <<EOF
658974ae 16484#line 16485 "configure"
4f14bcd8
GD
16485#include "confdefs.h"
16486#include <$ac_hdr>
13111b2a 16487EOF
4f14bcd8 16488ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
658974ae 16489{ (eval echo configure:16490: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4f14bcd8
GD
16490ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
16491if test -z "$ac_err"; then
16492 rm -rf conftest*
16493 eval "ac_cv_header_$ac_safe=yes"
16494else
16495 echo "$ac_err" >&5
16496 echo "configure: failed program was:" >&5
16497 cat conftest.$ac_ext >&5
16498 rm -rf conftest*
16499 eval "ac_cv_header_$ac_safe=no"
13111b2a 16500fi
4f14bcd8 16501rm -f conftest*
10f2d63a 16502fi
4f14bcd8
GD
16503if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
16504 echo "$ac_t""yes" 1>&6
16505 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
698dcdb6 16506 cat >> confdefs.h <<EOF
4f14bcd8 16507#define $ac_tr_hdr 1
f6bcfd97 16508EOF
4f14bcd8
GD
16509
16510else
16511 echo "$ac_t""no" 1>&6
f6bcfd97 16512fi
4f14bcd8 16513done
f6bcfd97 16514
10f2d63a 16515
7274f1c7 16516 echo $ac_n "checking for sched_yield in -l$THREADS_LINK""... $ac_c" 1>&6
658974ae 16517echo "configure:16518: checking for sched_yield in -l$THREADS_LINK" >&5
4f14bcd8
GD
16518ac_lib_var=`echo $THREADS_LINK'_'sched_yield | sed 'y%./+-%__p_%'`
16519if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
16520 echo $ac_n "(cached) $ac_c" 1>&6
16521else
16522 ac_save_LIBS="$LIBS"
16523LIBS="-l$THREADS_LINK $LIBS"
16524cat > conftest.$ac_ext <<EOF
658974ae 16525#line 16526 "configure"
4f14bcd8
GD
16526#include "confdefs.h"
16527/* Override any gcc2 internal prototype to avoid an error. */
16528/* We use char because int might match the return type of a gcc2
16529 builtin and then its argument prototype would still apply. */
16530char sched_yield();
10f2d63a 16531
4f14bcd8
GD
16532int main() {
16533sched_yield()
16534; return 0; }
10f2d63a 16535EOF
658974ae 16536if { (eval echo configure:16537: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4f14bcd8
GD
16537 rm -rf conftest*
16538 eval "ac_cv_lib_$ac_lib_var=yes"
10f2d63a 16539else
4f14bcd8
GD
16540 echo "configure: failed program was:" >&5
16541 cat conftest.$ac_ext >&5
16542 rm -rf conftest*
16543 eval "ac_cv_lib_$ac_lib_var=no"
10f2d63a 16544fi
4f14bcd8
GD
16545rm -f conftest*
16546LIBS="$ac_save_LIBS"
10f2d63a 16547
4f14bcd8
GD
16548fi
16549if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
16550 echo "$ac_t""yes" 1>&6
16551 cat >> confdefs.h <<\EOF
16552#define HAVE_SCHED_YIELD 1
10f2d63a
VZ
16553EOF
16554
4f14bcd8
GD
16555else
16556 echo "$ac_t""no" 1>&6
16557echo $ac_n "checking for sched_yield in -lposix4""... $ac_c" 1>&6
658974ae 16558echo "configure:16559: checking for sched_yield in -lposix4" >&5
4f14bcd8
GD
16559ac_lib_var=`echo posix4'_'sched_yield | sed 'y%./+-%__p_%'`
16560if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
16561 echo $ac_n "(cached) $ac_c" 1>&6
16562else
16563 ac_save_LIBS="$LIBS"
16564LIBS="-lposix4 $LIBS"
16565cat > conftest.$ac_ext <<EOF
658974ae 16566#line 16567 "configure"
4f14bcd8
GD
16567#include "confdefs.h"
16568/* Override any gcc2 internal prototype to avoid an error. */
16569/* We use char because int might match the return type of a gcc2
16570 builtin and then its argument prototype would still apply. */
16571char sched_yield();
47c13eb7 16572
4f14bcd8
GD
16573int main() {
16574sched_yield()
16575; return 0; }
10f2d63a 16576EOF
658974ae 16577if { (eval echo configure:16578: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4f14bcd8
GD
16578 rm -rf conftest*
16579 eval "ac_cv_lib_$ac_lib_var=yes"
10f2d63a 16580else
4f14bcd8
GD
16581 echo "configure: failed program was:" >&5
16582 cat conftest.$ac_ext >&5
16583 rm -rf conftest*
16584 eval "ac_cv_lib_$ac_lib_var=no"
10f2d63a 16585fi
4f14bcd8
GD
16586rm -f conftest*
16587LIBS="$ac_save_LIBS"
10f2d63a 16588
54276ccf 16589fi
4f14bcd8
GD
16590if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
16591 echo "$ac_t""yes" 1>&6
16592 cat >> confdefs.h <<\EOF
16593#define HAVE_SCHED_YIELD 1
54276ccf 16594EOF
3d63bc3a 16595 POSIX4_LINK=" -lposix4"
4f14bcd8
GD
16596else
16597 echo "$ac_t""no" 1>&6
16598echo "configure: warning: wxThread::Yield will not work properly" 1>&2
7274f1c7 16599
54276ccf
VZ
16600fi
16601
7274f1c7 16602
4f14bcd8 16603fi
698dcdb6 16604
10f2d63a 16605
7274f1c7
RL
16606 HAVE_PRIOR_FUNCS=0
16607 echo $ac_n "checking for pthread_attr_getschedpolicy in -l$THREADS_LINK""... $ac_c" 1>&6
658974ae 16608echo "configure:16609: checking for pthread_attr_getschedpolicy in -l$THREADS_LINK" >&5
4f14bcd8
GD
16609ac_lib_var=`echo $THREADS_LINK'_'pthread_attr_getschedpolicy | sed 'y%./+-%__p_%'`
16610if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
698dcdb6
VZ
16611 echo $ac_n "(cached) $ac_c" 1>&6
16612else
4f14bcd8
GD
16613 ac_save_LIBS="$LIBS"
16614LIBS="-l$THREADS_LINK $LIBS"
16615cat > conftest.$ac_ext <<EOF
658974ae 16616#line 16617 "configure"
422107f9 16617#include "confdefs.h"
4f14bcd8
GD
16618/* Override any gcc2 internal prototype to avoid an error. */
16619/* We use char because int might match the return type of a gcc2
16620 builtin and then its argument prototype would still apply. */
16621char pthread_attr_getschedpolicy();
16622
16623int main() {
16624pthread_attr_getschedpolicy()
16625; return 0; }
698dcdb6 16626EOF
658974ae 16627if { (eval echo configure:16628: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6 16628 rm -rf conftest*
4f14bcd8 16629 eval "ac_cv_lib_$ac_lib_var=yes"
422107f9 16630else
698dcdb6 16631 echo "configure: failed program was:" >&5
422107f9 16632 cat conftest.$ac_ext >&5
698dcdb6 16633 rm -rf conftest*
4f14bcd8 16634 eval "ac_cv_lib_$ac_lib_var=no"
422107f9 16635fi
698dcdb6 16636rm -f conftest*
4f14bcd8
GD
16637LIBS="$ac_save_LIBS"
16638
422107f9 16639fi
4f14bcd8 16640if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
698dcdb6 16641 echo "$ac_t""yes" 1>&6
4f14bcd8 16642 echo $ac_n "checking for pthread_attr_setschedparam in -l$THREADS_LINK""... $ac_c" 1>&6
658974ae 16643echo "configure:16644: checking for pthread_attr_setschedparam in -l$THREADS_LINK" >&5
4f14bcd8 16644ac_lib_var=`echo $THREADS_LINK'_'pthread_attr_setschedparam | sed 'y%./+-%__p_%'`
698dcdb6
VZ
16645if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
16646 echo $ac_n "(cached) $ac_c" 1>&6
422107f9 16647else
698dcdb6 16648 ac_save_LIBS="$LIBS"
4f14bcd8 16649LIBS="-l$THREADS_LINK $LIBS"
698dcdb6 16650cat > conftest.$ac_ext <<EOF
658974ae 16651#line 16652 "configure"
422107f9
VZ
16652#include "confdefs.h"
16653/* Override any gcc2 internal prototype to avoid an error. */
16654/* We use char because int might match the return type of a gcc2
698dcdb6 16655 builtin and then its argument prototype would still apply. */
4f14bcd8 16656char pthread_attr_setschedparam();
698dcdb6
VZ
16657
16658int main() {
4f14bcd8 16659pthread_attr_setschedparam()
698dcdb6
VZ
16660; return 0; }
16661EOF
658974ae 16662if { (eval echo configure:16663: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
16663 rm -rf conftest*
16664 eval "ac_cv_lib_$ac_lib_var=yes"
16665else
16666 echo "configure: failed program was:" >&5
16667 cat conftest.$ac_ext >&5
16668 rm -rf conftest*
16669 eval "ac_cv_lib_$ac_lib_var=no"
16670fi
16671rm -f conftest*
16672LIBS="$ac_save_LIBS"
16673
16674fi
16675if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
16676 echo "$ac_t""yes" 1>&6
4f14bcd8 16677 echo $ac_n "checking for sched_get_priority_max in -l$THREADS_LINK""... $ac_c" 1>&6
658974ae 16678echo "configure:16679: checking for sched_get_priority_max in -l$THREADS_LINK" >&5
4f14bcd8
GD
16679ac_lib_var=`echo $THREADS_LINK'_'sched_get_priority_max | sed 'y%./+-%__p_%'`
16680if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
698dcdb6
VZ
16681 echo $ac_n "(cached) $ac_c" 1>&6
16682else
4f14bcd8
GD
16683 ac_save_LIBS="$LIBS"
16684LIBS="-l$THREADS_LINK $LIBS"
16685cat > conftest.$ac_ext <<EOF
658974ae 16686#line 16687 "configure"
422107f9 16687#include "confdefs.h"
4f14bcd8
GD
16688/* Override any gcc2 internal prototype to avoid an error. */
16689/* We use char because int might match the return type of a gcc2
16690 builtin and then its argument prototype would still apply. */
16691char sched_get_priority_max();
16692
16693int main() {
16694sched_get_priority_max()
16695; return 0; }
698dcdb6 16696EOF
658974ae 16697if { (eval echo configure:16698: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6 16698 rm -rf conftest*
4f14bcd8 16699 eval "ac_cv_lib_$ac_lib_var=yes"
422107f9 16700else
698dcdb6 16701 echo "configure: failed program was:" >&5
422107f9 16702 cat conftest.$ac_ext >&5
698dcdb6 16703 rm -rf conftest*
4f14bcd8 16704 eval "ac_cv_lib_$ac_lib_var=no"
422107f9 16705fi
698dcdb6 16706rm -f conftest*
4f14bcd8
GD
16707LIBS="$ac_save_LIBS"
16708
422107f9 16709fi
4f14bcd8 16710if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
698dcdb6 16711 echo "$ac_t""yes" 1>&6
4f14bcd8
GD
16712 HAVE_PRIOR_FUNCS=1
16713else
16714 echo "$ac_t""no" 1>&6
16715echo $ac_n "checking for sched_get_priority_max in -lposix4""... $ac_c" 1>&6
658974ae 16716echo "configure:16717: checking for sched_get_priority_max in -lposix4" >&5
4f14bcd8 16717ac_lib_var=`echo posix4'_'sched_get_priority_max | sed 'y%./+-%__p_%'`
698dcdb6
VZ
16718if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
16719 echo $ac_n "(cached) $ac_c" 1>&6
422107f9 16720else
698dcdb6 16721 ac_save_LIBS="$LIBS"
4f14bcd8 16722LIBS="-lposix4 $LIBS"
698dcdb6 16723cat > conftest.$ac_ext <<EOF
658974ae 16724#line 16725 "configure"
422107f9
VZ
16725#include "confdefs.h"
16726/* Override any gcc2 internal prototype to avoid an error. */
16727/* We use char because int might match the return type of a gcc2
698dcdb6 16728 builtin and then its argument prototype would still apply. */
4f14bcd8 16729char sched_get_priority_max();
698dcdb6
VZ
16730
16731int main() {
4f14bcd8 16732sched_get_priority_max()
698dcdb6
VZ
16733; return 0; }
16734EOF
658974ae 16735if { (eval echo configure:16736: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
16736 rm -rf conftest*
16737 eval "ac_cv_lib_$ac_lib_var=yes"
16738else
16739 echo "configure: failed program was:" >&5
16740 cat conftest.$ac_ext >&5
16741 rm -rf conftest*
16742 eval "ac_cv_lib_$ac_lib_var=no"
16743fi
16744rm -f conftest*
16745LIBS="$ac_save_LIBS"
16746
16747fi
16748if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
16749 echo "$ac_t""yes" 1>&6
4f14bcd8 16750
7274f1c7
RL
16751 HAVE_PRIOR_FUNCS=1
16752 POSIX4_LINK=" -lposix4"
16753
698dcdb6
VZ
16754else
16755 echo "$ac_t""no" 1>&6
422107f9
VZ
16756fi
16757
7274f1c7 16758
422107f9
VZ
16759fi
16760
7274f1c7 16761
4f14bcd8
GD
16762else
16763 echo "$ac_t""no" 1>&6
10f2d63a
VZ
16764fi
16765
7274f1c7 16766
698dcdb6 16767else
4f14bcd8
GD
16768 echo "$ac_t""no" 1>&6
16769fi
463abc64 16770
463abc64 16771
7274f1c7
RL
16772 if test "$HAVE_PRIOR_FUNCS" = 1; then
16773 cat >> confdefs.h <<\EOF
4f14bcd8 16774#define HAVE_THREAD_PRIORITY_FUNCTIONS 1
698dcdb6 16775EOF
463abc64 16776
7274f1c7
RL
16777 else
16778 echo "configure: warning: Setting thread priority will not work" 1>&2
16779 fi
463abc64 16780
7274f1c7 16781 echo $ac_n "checking for pthread_cancel in -l$THREADS_LINK""... $ac_c" 1>&6
658974ae 16782echo "configure:16783: checking for pthread_cancel in -l$THREADS_LINK" >&5
4f14bcd8 16783ac_lib_var=`echo $THREADS_LINK'_'pthread_cancel | sed 'y%./+-%__p_%'`
698dcdb6
VZ
16784if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
16785 echo $ac_n "(cached) $ac_c" 1>&6
422107f9 16786else
698dcdb6 16787 ac_save_LIBS="$LIBS"
4f14bcd8 16788LIBS="-l$THREADS_LINK $LIBS"
698dcdb6 16789cat > conftest.$ac_ext <<EOF
658974ae 16790#line 16791 "configure"
422107f9
VZ
16791#include "confdefs.h"
16792/* Override any gcc2 internal prototype to avoid an error. */
16793/* We use char because int might match the return type of a gcc2
698dcdb6 16794 builtin and then its argument prototype would still apply. */
4f14bcd8 16795char pthread_cancel();
698dcdb6
VZ
16796
16797int main() {
4f14bcd8 16798pthread_cancel()
698dcdb6
VZ
16799; return 0; }
16800EOF
658974ae 16801if { (eval echo configure:16802: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
16802 rm -rf conftest*
16803 eval "ac_cv_lib_$ac_lib_var=yes"
16804else
16805 echo "configure: failed program was:" >&5
16806 cat conftest.$ac_ext >&5
16807 rm -rf conftest*
16808 eval "ac_cv_lib_$ac_lib_var=no"
16809fi
16810rm -f conftest*
16811LIBS="$ac_save_LIBS"
16812
16813fi
16814if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
16815 echo "$ac_t""yes" 1>&6
4f14bcd8
GD
16816 cat >> confdefs.h <<\EOF
16817#define HAVE_PTHREAD_CANCEL 1
16818EOF
16819
698dcdb6
VZ
16820else
16821 echo "$ac_t""no" 1>&6
4f14bcd8 16822echo "configure: warning: wxThread::Kill() will not work properly" 1>&2
422107f9
VZ
16823fi
16824
422107f9 16825
7274f1c7 16826 echo $ac_n "checking for pthread_cleanup_push/pop""... $ac_c" 1>&6
658974ae 16827echo "configure:16828: checking for pthread_cleanup_push/pop" >&5
4f14bcd8
GD
16828if eval "test \"`echo '$''{'wx_cv_func_pthread_cleanup_push'+set}'`\" = set"; then
16829 echo $ac_n "(cached) $ac_c" 1>&6
16830else
16831
7274f1c7 16832 cat > conftest.$ac_ext <<EOF
658974ae 16833#line 16834 "configure"
4f14bcd8
GD
16834#include "confdefs.h"
16835#include <pthread.h>
16836int main() {
16837
7274f1c7
RL
16838 pthread_cleanup_push(NULL, NULL);
16839 pthread_cleanup_pop(0);
16840
4f14bcd8
GD
16841; return 0; }
16842EOF
658974ae 16843if { (eval echo configure:16844: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4f14bcd8
GD
16844 rm -rf conftest*
16845
7274f1c7
RL
16846 wx_cv_func_pthread_cleanup_push=yes
16847
4f14bcd8
GD
16848else
16849 echo "configure: failed program was:" >&5
16850 cat conftest.$ac_ext >&5
16851 rm -rf conftest*
16852
7274f1c7
RL
16853 wx_cv_func_pthread_cleanup_push=no
16854
4f14bcd8
GD
16855fi
16856rm -f conftest*
7274f1c7 16857
10f2d63a
VZ
16858fi
16859
4f14bcd8
GD
16860echo "$ac_t""$wx_cv_func_pthread_cleanup_push" 1>&6
16861
7274f1c7
RL
16862 if test "$wx_cv_func_pthread_cleanup_push" = "yes"; then
16863 cat >> confdefs.h <<\EOF
4f14bcd8 16864#define HAVE_THREAD_CLEANUP_FUNCTIONS 1
c7a2bf27
RR
16865EOF
16866
7274f1c7 16867 fi
4f14bcd8 16868
7274f1c7
RL
16869
16870 if test "x$wx_lib_glibc21" = "xyes"; then
16871 CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE"
16872 fi
4f14bcd8 16873
7274f1c7 16874 echo $ac_n "checking for pthread_mutexattr_t""... $ac_c" 1>&6
658974ae 16875echo "configure:16876: checking for pthread_mutexattr_t" >&5
4f14bcd8 16876if eval "test \"`echo '$''{'wx_cv_type_pthread_mutexattr_t'+set}'`\" = set"; then
698dcdb6
VZ
16877 echo $ac_n "(cached) $ac_c" 1>&6
16878else
4f14bcd8 16879
7274f1c7 16880 cat > conftest.$ac_ext <<EOF
658974ae 16881#line 16882 "configure"
0dcf9893 16882#include "confdefs.h"
4f14bcd8
GD
16883#include <pthread.h>
16884int main() {
16885
7274f1c7
RL
16886 pthread_mutexattr_t attr;
16887 pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
16888
4f14bcd8 16889; return 0; }
698dcdb6 16890EOF
658974ae 16891if { (eval echo configure:16892: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6 16892 rm -rf conftest*
4f14bcd8 16893
7274f1c7
RL
16894 wx_cv_type_pthread_mutexattr_t=yes
16895
3fed1840 16896else
698dcdb6 16897 echo "configure: failed program was:" >&5
3fed1840 16898 cat conftest.$ac_ext >&5
698dcdb6 16899 rm -rf conftest*
4f14bcd8 16900
7274f1c7
RL
16901 wx_cv_type_pthread_mutexattr_t=no
16902
4f14bcd8 16903
3fed1840 16904fi
698dcdb6 16905rm -f conftest*
7274f1c7 16906
3fed1840 16907fi
4f14bcd8
GD
16908
16909echo "$ac_t""$wx_cv_type_pthread_mutexattr_t" 1>&6
16910
7274f1c7
RL
16911 if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then
16912 cat >> confdefs.h <<\EOF
4f14bcd8
GD
16913#define HAVE_PTHREAD_MUTEXATTR_T 1
16914EOF
16915
7274f1c7
RL
16916 else
16917 echo $ac_n "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER""... $ac_c" 1>&6
658974ae 16918echo "configure:16919: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5
4f14bcd8 16919if eval "test \"`echo '$''{'wx_cv_type_pthread_rec_mutex_init'+set}'`\" = set"; then
698dcdb6 16920 echo $ac_n "(cached) $ac_c" 1>&6
3fed1840 16921else
4f14bcd8 16922
7274f1c7 16923 cat > conftest.$ac_ext <<EOF
658974ae 16924#line 16925 "configure"
3fed1840 16925#include "confdefs.h"
4f14bcd8 16926#include <pthread.h>
698dcdb6 16927int main() {
4f14bcd8 16928
7274f1c7
RL
16929 pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;
16930
698dcdb6
VZ
16931; return 0; }
16932EOF
658974ae 16933if { (eval echo configure:16934: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6 16934 rm -rf conftest*
4f14bcd8 16935
7274f1c7
RL
16936 wx_cv_type_pthread_rec_mutex_init=yes
16937
698dcdb6
VZ
16938else
16939 echo "configure: failed program was:" >&5
16940 cat conftest.$ac_ext >&5
16941 rm -rf conftest*
4f14bcd8 16942
7274f1c7
RL
16943 wx_cv_type_pthread_rec_mutex_init=no
16944
4f14bcd8 16945
698dcdb6
VZ
16946fi
16947rm -f conftest*
7274f1c7 16948
3fed1840
RR
16949fi
16950
4f14bcd8 16951echo "$ac_t""$wx_cv_type_pthread_rec_mutex_init" 1>&6
7274f1c7
RL
16952 if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then
16953 cat >> confdefs.h <<\EOF
4f14bcd8
GD
16954#define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1
16955EOF
3fed1840 16956
7274f1c7
RL
16957 else
16958 echo "configure: warning: wxMutex won't be recursive on this platform" 1>&2
16959 fi
16960 fi
4f14bcd8 16961
7274f1c7 16962 THREADS_LINK=" -l$THREADS_LINK"
4f14bcd8 16963
7274f1c7
RL
16964 if test "$USE_SOLARIS" = "yes" -a "$GCC" != "yes"; then
16965 CPPFLAGS="$CFLAGS -mt"
16966 CXXFLAGS="$CXXFLAGS -mt"
16967 LDFLAGS="$LDFLAGS -mt"
16968 fi
16969 fi
3fed1840 16970
4f14bcd8
GD
16971fi
16972
16973if test "$wxUSE_THREADS" = "yes"; then
3a922bb4 16974 cat >> confdefs.h <<\EOF
4f14bcd8 16975#define wxUSE_THREADS 1
7b6058cd
GD
16976EOF
16977
4f14bcd8 16978
3f345b47 16979 TOOLCHAIN_DEFS="$TOOLCHAIN_DEFS $CPP_MT_FLAG"
4f14bcd8
GD
16980
16981 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread"
698dcdb6 16982else
4f14bcd8
GD
16983 if test "$ac_cv_func_strtok_r" = "yes"; then
16984 echo $ac_n "checking if -D_REENTRANT is needed""... $ac_c" 1>&6
658974ae 16985echo "configure:16986: checking if -D_REENTRANT is needed" >&5
4f14bcd8
GD
16986 if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then
16987 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D_REENTRANT"
16988 echo "$ac_t""yes" 1>&6
16989 else
16990 echo "$ac_t""no" 1>&6
16991 fi
16992 fi
16993fi
16994
16995if test "$WXGTK20" = 1 ; then
16996 cat >> confdefs.h <<EOF
16997#define __WXGTK20__ $WXGTK20
698dcdb6 16998EOF
4f14bcd8
GD
16999
17000 WXGTK12=1
10f2d63a 17001fi
4f14bcd8
GD
17002
17003if test "$WXGTK12" = 1 ; then
17004 cat >> confdefs.h <<EOF
17005#define __WXGTK12__ $WXGTK12
17006EOF
17007
10f2d63a 17008fi
698dcdb6 17009
4f14bcd8
GD
17010if test "$WXGTK127" = 1 ; then
17011 cat >> confdefs.h <<EOF
17012#define __WXGTK127__ $WXGTK127
698dcdb6 17013EOF
4f14bcd8 17014
698dcdb6 17015fi
10f2d63a 17016
4f14bcd8
GD
17017WXDEBUG=
17018
17019if test "$wxUSE_DEBUG_INFO" = "yes" ; then
17020 WXDEBUG="-g"
17021 wxUSE_OPTIMISE=no
698dcdb6 17022fi
4f14bcd8
GD
17023
17024if test "$wxUSE_DEBUG_GDB" = "yes" ; then
17025 wxUSE_DEBUG_INFO=yes
17026 WXDEBUG="-ggdb"
10f2d63a
VZ
17027fi
17028
4f14bcd8
GD
17029if test "$wxUSE_DEBUG_FLAG" = "yes" ; then
17030 cat >> confdefs.h <<\EOF
17031#define WXDEBUG 1
17032EOF
17033
17034 WXDEBUG_DEFINE="-D__WXDEBUG__"
10f2d63a 17035else
4f14bcd8
GD
17036 if test "$wxUSE_GTK" = 1 ; then
17037 WXDEBUG_DEFINE="-DGTK_NO_CHECK_CASTS"
17038 fi
17039fi
17040
17041if test "$wxUSE_MEM_TRACING" = "yes" ; then
17042 cat >> confdefs.h <<\EOF
17043#define wxUSE_MEMORY_TRACING 1
17044EOF
17045
17046 cat >> confdefs.h <<\EOF
17047#define wxUSE_GLOBAL_MEMORY_OPERATORS 1
17048EOF
17049
17050 cat >> confdefs.h <<\EOF
17051#define wxUSE_DEBUG_NEW_ALWAYS 1
17052EOF
17053
17054 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck"
17055fi
17056
17057if test "$wxUSE_DMALLOC" = "yes" ; then
3d63bc3a 17058 DMALLOC_LIBS="-ldmalloc"
4f14bcd8
GD
17059fi
17060
17061PROFILE=
17062if test "$wxUSE_PROFILE" = "yes" ; then
3d63bc3a 17063 PROFILE=" -pg"
10f2d63a
VZ
17064fi
17065
88e30f2b 17066if test "$GCC" = "yes" ; then
4f14bcd8
GD
17067 if test "$wxUSE_NO_RTTI" = "yes" ; then
17068 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-rtti"
3a922bb4 17069 fi
4f14bcd8
GD
17070 if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
17071 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-exceptions"
17072 fi
17073 if test "$wxUSE_PERMISSIVE" = "yes" ; then
17074 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fpermissive"
17075 fi
4f14bcd8
GD
17076 if test "$USE_WIN32" = 1 ; then
17077 # I'm not even really sure what this was ever added to solve,
17078 # but someone added it for mingw native builds, so I guess
17079 # they had a reason, right??
17080 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fno-pcc-struct-return"
17081 fi
17082fi
17083
17084
17085CXXFLAGS=`echo "${CXXFLAGS}" | sed "s/\-O.//g" `
17086CFLAGS=`echo "${CFLAGS}" | sed "s/\-O.//g" `
17087if test "$wxUSE_OPTIMISE" = "no" ; then
17088 OPTIMISE=
17089else
17090 if test "$GCC" = yes ; then
17091 OPTIMISE="-O2"
17092 case "${host}" in
17093 i586-*-*|i686-*-* )
17094 OPTIMISE="${OPTIMISE} "
17095 ;;
17096 esac
17097 else
17098 OPTIMISE="-O"
17099 fi
17100fi
17101
17102if test "$WXWIN_COMPATIBILITY_2" = "yes"; then
17103 cat >> confdefs.h <<\EOF
17104#define WXWIN_COMPATIBILITY_2 1
17105EOF
17106
17107
17108 WXWIN_COMPATIBILITY_2_2="yes"
17109fi
17110
17111if test "$WXWIN_COMPATIBILITY_2_2" = "yes"; then
17112 cat >> confdefs.h <<\EOF
17113#define WXWIN_COMPATIBILITY_2_2 1
17114EOF
17115
10f2d63a
VZ
17116fi
17117
698dcdb6 17118
10f2d63a 17119if test "$wxUSE_GUI" = "yes"; then
698dcdb6 17120 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17121#define wxUSE_GUI 1
17122EOF
17123
698dcdb6 17124
10f2d63a 17125 else
698dcdb6 17126 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17127#define wxUSE_NOGUI 1
17128EOF
17129
17130fi
17131
698dcdb6 17132
10f2d63a 17133if test "$wxUSE_UNIX" = "yes"; then
698dcdb6 17134 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17135#define wxUSE_UNIX 1
17136EOF
17137
17138fi
17139
698dcdb6 17140
10f2d63a 17141if test "$wxUSE_APPLE_IEEE" = "yes"; then
698dcdb6 17142 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17143#define wxUSE_APPLE_IEEE 1
17144EOF
17145
17146fi
17147
1e6feb95
VZ
17148if test "$wxUSE_TIMER" = "yes"; then
17149 cat >> confdefs.h <<\EOF
17150#define wxUSE_TIMER 1
17151EOF
17152
17153fi
17154
10f2d63a 17155if test "$wxUSE_WAVE" = "yes"; then
698dcdb6 17156 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17157#define wxUSE_WAVE 1
17158EOF
17159
17160fi
17161
1e6feb95
VZ
17162if test "$wxUSE_CMDLINE_PARSER" = "yes"; then
17163 cat >> confdefs.h <<\EOF
17164#define wxUSE_CMDLINE_PARSER 1
17165EOF
17166
17167fi
17168
17169if test "$wxUSE_STOPWATCH" = "yes"; then
17170 cat >> confdefs.h <<\EOF
17171#define wxUSE_STOPWATCH 1
17172EOF
17173
17174fi
17175
17176if test "$wxUSE_DATETIME" = "yes"; then
17177 cat >> confdefs.h <<\EOF
17178#define wxUSE_DATETIME 1
17179EOF
17180
17181fi
17182
17183if test "$wxUSE_TIMEDATE" = "yes"; then
17184 cat >> confdefs.h <<\EOF
17185#define wxUSE_TIMEDATE 1
17186EOF
17187
17188fi
17189
10f2d63a 17190if test "$wxUSE_FILE" = "yes"; then
698dcdb6 17191 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17192#define wxUSE_FILE 1
17193EOF
17194
17195fi
17196
1e6feb95
VZ
17197if test "$wxUSE_FFILE" = "yes"; then
17198 cat >> confdefs.h <<\EOF
17199#define wxUSE_FFILE 1
17200EOF
17201
17202fi
17203
24528b0c 17204if test "$wxUSE_FILESYSTEM" = "yes"; then
698dcdb6 17205 cat >> confdefs.h <<\EOF
24528b0c
VS
17206#define wxUSE_FILESYSTEM 1
17207EOF
17208
17209fi
17210
10f2d63a 17211if test "$wxUSE_FS_INET" = "yes"; then
698dcdb6 17212 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17213#define wxUSE_FS_INET 1
17214EOF
17215
17216fi
17217
17218if test "$wxUSE_FS_ZIP" = "yes"; then
698dcdb6 17219 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17220#define wxUSE_FS_ZIP 1
17221EOF
17222
17223fi
17224
17225if test "$wxUSE_ZIPSTREAM" = "yes"; then
698dcdb6 17226 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17227#define wxUSE_ZIPSTREAM 1
17228EOF
17229
17230fi
17231
eb4efbdc 17232if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
698dcdb6 17233 cat >> confdefs.h <<\EOF
eb4efbdc
VZ
17234#define wxUSE_ON_FATAL_EXCEPTION 1
17235EOF
17236
17237fi
17238
4f3c5f06 17239if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
698dcdb6 17240 cat >> confdefs.h <<\EOF
4f3c5f06
VZ
17241#define wxUSE_SNGLINST_CHECKER 1
17242EOF
17243
17244fi
17245
10f2d63a 17246if test "$wxUSE_BUSYINFO" = "yes"; then
698dcdb6 17247 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17248#define wxUSE_BUSYINFO 1
17249EOF
17250
17251fi
17252
17253if test "$wxUSE_STD_IOSTREAM" = "yes"; then
698dcdb6 17254 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17255#define wxUSE_STD_IOSTREAM 1
17256EOF
17257
17258fi
17259
a3a584a7
VZ
17260if test "$wxUSE_TEXTBUFFER" = "yes"; then
17261 cat >> confdefs.h <<\EOF
17262#define wxUSE_TEXTBUFFER 1
17263EOF
17264
17265fi
17266
10f2d63a 17267if test "$wxUSE_TEXTFILE" = "yes"; then
a3a584a7 17268 if test "$wxUSE_FILE" != "yes" -o "$wxUSE_TEXTBUFFER" != "yes" ; then
156b2523 17269 echo "configure: warning: wxTextFile requires wxFile and wxTextBuffer... disabled" 1>&2
10f2d63a 17270 else
698dcdb6 17271 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17272#define wxUSE_TEXTFILE 1
17273EOF
17274
17275 fi
17276fi
17277
17278if test "$wxUSE_CONFIG" = "yes" ; then
17279 if test "$wxUSE_TEXTFILE" != "yes"; then
156b2523 17280 echo "configure: warning: wxConfig requires wxTextFile... disabled" 1>&2
10f2d63a 17281 else
698dcdb6 17282 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17283#define wxUSE_CONFIG 1
17284EOF
17285
17286 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config"
17287 fi
17288fi
17289
17290if test "$wxUSE_INTL" = "yes" ; then
17291 if test "$wxUSE_FILE" != "yes"; then
156b2523 17292 echo "configure: warning: I18n code requires wxFile... disabled" 1>&2
10f2d63a 17293 else
698dcdb6 17294 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17295#define wxUSE_INTL 1
17296EOF
17297
17298 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat"
f6bcfd97 17299 GUIDIST="$GUIDIST INTL_DIST"
10f2d63a
VZ
17300 fi
17301fi
17302
17303if test "$wxUSE_LOG" = "yes"; then
698dcdb6 17304 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17305#define wxUSE_LOG 1
17306EOF
17307
d73be714
VZ
17308
17309 if test "$wxUSE_LOGGUI" = "yes"; then
17310 cat >> confdefs.h <<\EOF
17311#define wxUSE_LOGGUI 1
17312EOF
17313
17314 fi
17315
17316 if test "$wxUSE_LOGWINDOW" = "yes"; then
17317 cat >> confdefs.h <<\EOF
17318#define wxUSE_LOGWINDOW 1
69d27ff7
MB
17319EOF
17320
17321 fi
17322
17323 if test "$wxUSE_LOGDIALOG" = "yes"; then
17324 cat >> confdefs.h <<\EOF
17325#define wxUSE_LOG_DIALOG 1
d73be714
VZ
17326EOF
17327
17328 fi
10f2d63a
VZ
17329fi
17330
17331if test "$wxUSE_LONGLONG" = "yes"; then
698dcdb6 17332 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17333#define wxUSE_LONGLONG 1
17334EOF
17335
17336fi
17337
e8f65ba6 17338if test "$wxUSE_GEOMETRY" = "yes"; then
698dcdb6 17339 cat >> confdefs.h <<\EOF
e8f65ba6
RR
17340#define wxUSE_GEOMETRY 1
17341EOF
17342
17343fi
17344
10f2d63a 17345if test "$wxUSE_DIALUP_MANAGER" = "yes" ; then
698dcdb6 17346 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17347#define wxUSE_DIALUP_MANAGER 1
17348EOF
17349
70f7a477 17350 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup"
10f2d63a
VZ
17351fi
17352
17353if test "$wxUSE_STREAMS" = "yes" ; then
698dcdb6 17354 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17355#define wxUSE_STREAMS 1
17356EOF
17357
17358fi
17359
1e487827 17360
1e6feb95 17361if test "$wxUSE_DATETIME" = "yes"; then
698dcdb6 17362 for ac_func in strptime
83307f33 17363do
698dcdb6 17364echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
658974ae 17365echo "configure:17366: checking for $ac_func" >&5
698dcdb6
VZ
17366if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17367 echo $ac_n "(cached) $ac_c" 1>&6
17368else
17369 cat > conftest.$ac_ext <<EOF
658974ae 17370#line 17371 "configure"
83307f33
VZ
17371#include "confdefs.h"
17372/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 17373 which can conflict with char $ac_func(); below. */
83307f33
VZ
17374#include <assert.h>
17375/* Override any gcc2 internal prototype to avoid an error. */
17376/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
17377 builtin and then its argument prototype would still apply. */
17378char $ac_func();
17379
17380int main() {
83307f33
VZ
17381
17382/* The GNU C library defines this for functions which it implements
17383 to always fail with ENOSYS. Some functions are actually named
17384 something starting with __ and the normal name is an alias. */
17385#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17386choke me
17387#else
698dcdb6 17388$ac_func();
83307f33
VZ
17389#endif
17390
698dcdb6 17391; return 0; }
83307f33 17392EOF
658974ae 17393if { (eval echo configure:17394: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
17394 rm -rf conftest*
17395 eval "ac_cv_func_$ac_func=yes"
17396else
17397 echo "configure: failed program was:" >&5
17398 cat conftest.$ac_ext >&5
17399 rm -rf conftest*
17400 eval "ac_cv_func_$ac_func=no"
17401fi
17402rm -f conftest*
17403fi
83307f33 17404
698dcdb6
VZ
17405if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17406 echo "$ac_t""yes" 1>&6
17407 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17408 cat >> confdefs.h <<EOF
17409#define $ac_tr_func 1
17410EOF
17411
17412else
17413 echo "$ac_t""no" 1>&6
83307f33
VZ
17414fi
17415done
17416
1e487827 17417
698dcdb6 17418 echo $ac_n "checking for timezone variable in <time.h>""... $ac_c" 1>&6
658974ae 17419echo "configure:17420: checking for timezone variable in <time.h>" >&5
698dcdb6
VZ
17420if eval "test \"`echo '$''{'wx_cv_var_timezone'+set}'`\" = set"; then
17421 echo $ac_n "(cached) $ac_c" 1>&6
17422else
17423
17424 cat > conftest.$ac_ext <<EOF
658974ae 17425#line 17426 "configure"
360d6699
VZ
17426#include "confdefs.h"
17427
b4085ce6 17428 #include <time.h>
698dcdb6
VZ
17429
17430int main() {
360d6699
VZ
17431
17432 int tz;
4f11a343 17433 tz = timezone;
698dcdb6
VZ
17434
17435; return 0; }
17436EOF
658974ae 17437if { (eval echo configure:17438: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6
VZ
17438 rm -rf conftest*
17439
4f11a343 17440 wx_cv_var_timezone=timezone
698dcdb6 17441
360d6699 17442else
698dcdb6
VZ
17443 echo "configure: failed program was:" >&5
17444 cat conftest.$ac_ext >&5
17445 rm -rf conftest*
17446
17447 cat > conftest.$ac_ext <<EOF
658974ae 17448#line 17449 "configure"
360d6699
VZ
17449#include "confdefs.h"
17450
b4085ce6 17451 #include <time.h>
698dcdb6
VZ
17452
17453int main() {
360d6699
VZ
17454
17455 int tz;
17456 tz = _timezone;
698dcdb6
VZ
17457
17458; return 0; }
17459EOF
658974ae 17460if { (eval echo configure:17461: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6
VZ
17461 rm -rf conftest*
17462
360d6699 17463 wx_cv_var_timezone=_timezone
698dcdb6 17464
5357c8e8 17465else
698dcdb6
VZ
17466 echo "configure: failed program was:" >&5
17467 cat conftest.$ac_ext >&5
17468 rm -rf conftest*
17469
17470 cat > conftest.$ac_ext <<EOF
658974ae 17471#line 17472 "configure"
5357c8e8
VZ
17472#include "confdefs.h"
17473
b4085ce6 17474 #include <time.h>
698dcdb6
VZ
17475
17476int main() {
5357c8e8
VZ
17477
17478 int tz;
4f11a343 17479 tz = __timezone;
698dcdb6
VZ
17480
17481; return 0; }
17482EOF
658974ae 17483if { (eval echo configure:17484: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6
VZ
17484 rm -rf conftest*
17485
4f11a343 17486 wx_cv_var_timezone=__timezone
698dcdb6 17487
360d6699 17488else
698dcdb6
VZ
17489 echo "configure: failed program was:" >&5
17490 cat conftest.$ac_ext >&5
17491 rm -rf conftest*
f9bc1684
VS
17492
17493 if test "$USE_DOS" = 0 ; then
17494 { echo "configure: error: no timezone variable" 1>&2; exit 1; }
17495 fi
17496
698dcdb6 17497
360d6699 17498fi
698dcdb6
VZ
17499rm -f conftest*
17500
17501
360d6699 17502fi
698dcdb6
VZ
17503rm -f conftest*
17504
17505
6232543b 17506fi
698dcdb6
VZ
17507rm -f conftest*
17508
17509
1e487827 17510fi
703e0a69 17511
698dcdb6
VZ
17512echo "$ac_t""$wx_cv_var_timezone" 1>&6
17513
f9bc1684 17514 if test "x$wx_cv_var_timezone" != x ; then
698dcdb6 17515 cat >> confdefs.h <<EOF
360d6699
VZ
17516#define WX_TIMEZONE $wx_cv_var_timezone
17517EOF
17518
f9bc1684 17519 fi
698dcdb6
VZ
17520
17521 for ac_func in localtime
afc31813 17522do
698dcdb6 17523echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
658974ae 17524echo "configure:17525: checking for $ac_func" >&5
698dcdb6
VZ
17525if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17526 echo $ac_n "(cached) $ac_c" 1>&6
17527else
17528 cat > conftest.$ac_ext <<EOF
658974ae 17529#line 17530 "configure"
10f2d63a 17530#include "confdefs.h"
afc31813 17531/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 17532 which can conflict with char $ac_func(); below. */
afc31813
VZ
17533#include <assert.h>
17534/* Override any gcc2 internal prototype to avoid an error. */
17535/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
17536 builtin and then its argument prototype would still apply. */
17537char $ac_func();
17538
17539int main() {
afc31813
VZ
17540
17541/* The GNU C library defines this for functions which it implements
17542 to always fail with ENOSYS. Some functions are actually named
17543 something starting with __ and the normal name is an alias. */
17544#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17545choke me
17546#else
698dcdb6 17547$ac_func();
afc31813
VZ
17548#endif
17549
698dcdb6 17550; return 0; }
10f2d63a 17551EOF
658974ae 17552if { (eval echo configure:17553: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
17553 rm -rf conftest*
17554 eval "ac_cv_func_$ac_func=yes"
17555else
17556 echo "configure: failed program was:" >&5
17557 cat conftest.$ac_ext >&5
17558 rm -rf conftest*
17559 eval "ac_cv_func_$ac_func=no"
17560fi
17561rm -f conftest*
17562fi
afc31813 17563
698dcdb6
VZ
17564if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17565 echo "$ac_t""yes" 1>&6
17566 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17567 cat >> confdefs.h <<EOF
17568#define $ac_tr_func 1
17569EOF
17570
17571else
17572 echo "$ac_t""no" 1>&6
afc31813
VZ
17573fi
17574done
17575
1e487827 17576
698dcdb6
VZ
17577 if test "$ac_cv_func_localtime" = "yes"; then
17578 echo $ac_n "checking for tm_gmtoff in struct tm""... $ac_c" 1>&6
658974ae 17579echo "configure:17580: checking for tm_gmtoff in struct tm" >&5
698dcdb6
VZ
17580if eval "test \"`echo '$''{'wx_cv_struct_tm_has_gmtoff'+set}'`\" = set"; then
17581 echo $ac_n "(cached) $ac_c" 1>&6
17582else
17583
17584 cat > conftest.$ac_ext <<EOF
658974ae 17585#line 17586 "configure"
0470b1e6
VZ
17586#include "confdefs.h"
17587
b4085ce6 17588 #include <time.h>
698dcdb6
VZ
17589
17590int main() {
0470b1e6
VZ
17591
17592 struct tm tm;
17593 tm.tm_gmtoff++;
698dcdb6
VZ
17594
17595; return 0; }
17596EOF
658974ae 17597if { (eval echo configure:17598: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6
VZ
17598 rm -rf conftest*
17599
f03a98d8 17600 wx_cv_struct_tm_has_gmtoff=yes
698dcdb6 17601
0470b1e6 17602else
698dcdb6
VZ
17603 echo "configure: failed program was:" >&5
17604 cat conftest.$ac_ext >&5
17605 rm -rf conftest*
17606 wx_cv_struct_tm_has_gmtoff=no
17607
0470b1e6 17608fi
698dcdb6
VZ
17609rm -f conftest*
17610
1e487827 17611fi
698dcdb6
VZ
17612
17613echo "$ac_t""$wx_cv_struct_tm_has_gmtoff" 1>&6
6232543b
VS
17614 fi
17615
17616 if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then
698dcdb6 17617 cat >> confdefs.h <<\EOF
6232543b
VS
17618#define WX_GMTOFF_IN_TM 1
17619EOF
0470b1e6 17620
3fcdd07b
VZ
17621 fi
17622
698dcdb6 17623 for ac_func in gettimeofday ftime
3fcdd07b 17624do
698dcdb6 17625echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
658974ae 17626echo "configure:17627: checking for $ac_func" >&5
698dcdb6
VZ
17627if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17628 echo $ac_n "(cached) $ac_c" 1>&6
17629else
17630 cat > conftest.$ac_ext <<EOF
658974ae 17631#line 17632 "configure"
3fcdd07b
VZ
17632#include "confdefs.h"
17633/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 17634 which can conflict with char $ac_func(); below. */
3fcdd07b
VZ
17635#include <assert.h>
17636/* Override any gcc2 internal prototype to avoid an error. */
17637/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
17638 builtin and then its argument prototype would still apply. */
17639char $ac_func();
17640
17641int main() {
3fcdd07b
VZ
17642
17643/* The GNU C library defines this for functions which it implements
17644 to always fail with ENOSYS. Some functions are actually named
17645 something starting with __ and the normal name is an alias. */
17646#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17647choke me
17648#else
698dcdb6 17649$ac_func();
3fcdd07b
VZ
17650#endif
17651
698dcdb6
VZ
17652; return 0; }
17653EOF
658974ae 17654if { (eval echo configure:17655: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
17655 rm -rf conftest*
17656 eval "ac_cv_func_$ac_func=yes"
17657else
17658 echo "configure: failed program was:" >&5
17659 cat conftest.$ac_ext >&5
17660 rm -rf conftest*
17661 eval "ac_cv_func_$ac_func=no"
17662fi
17663rm -f conftest*
17664fi
17665
17666if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17667 echo "$ac_t""yes" 1>&6
17668 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17669 cat >> confdefs.h <<EOF
17670#define $ac_tr_func 1
3fcdd07b
VZ
17671EOF
17672 break
698dcdb6
VZ
17673else
17674 echo "$ac_t""no" 1>&6
3fcdd07b
VZ
17675fi
17676done
17677
afc31813 17678
698dcdb6
VZ
17679 if test "$ac_cv_func_gettimeofday" = "yes"; then
17680 echo $ac_n "checking whether gettimeofday takes two arguments""... $ac_c" 1>&6
658974ae 17681echo "configure:17682: checking whether gettimeofday takes two arguments" >&5
698dcdb6
VZ
17682if eval "test \"`echo '$''{'wx_cv_func_gettimeofday_has_2_args'+set}'`\" = set"; then
17683 echo $ac_n "(cached) $ac_c" 1>&6
17684else
17685
17686
17687 ac_ext=C
17688# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1e487827 17689ac_cpp='$CXXCPP $CPPFLAGS'
698dcdb6
VZ
17690ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17691ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17692cross_compiling=$ac_cv_prog_cxx_cross
703e0a69 17693
698dcdb6
VZ
17694
17695 cat > conftest.$ac_ext <<EOF
658974ae 17696#line 17697 "configure"
10f2d63a 17697#include "confdefs.h"
afc31813
VZ
17698
17699 #include <sys/time.h>
17700 #include <unistd.h>
698dcdb6
VZ
17701
17702int main() {
afc31813
VZ
17703
17704 struct timeval tv;
776862b4 17705 gettimeofday(&tv, NULL);
698dcdb6
VZ
17706
17707; return 0; }
17708EOF
658974ae 17709if { (eval echo configure:17710: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6 17710 rm -rf conftest*
afc31813 17711 wx_cv_func_gettimeofday_has_2_args=yes
10f2d63a 17712else
698dcdb6
VZ
17713 echo "configure: failed program was:" >&5
17714 cat conftest.$ac_ext >&5
17715 rm -rf conftest*
17716 cat > conftest.$ac_ext <<EOF
658974ae 17717#line 17718 "configure"
10f2d63a 17718#include "confdefs.h"
afc31813
VZ
17719
17720 #include <sys/time.h>
17721 #include <unistd.h>
698dcdb6
VZ
17722
17723int main() {
afc31813
VZ
17724
17725 struct timeval tv;
17726 gettimeofday(&tv);
698dcdb6
VZ
17727
17728; return 0; }
17729EOF
658974ae 17730if { (eval echo configure:17731: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6 17731 rm -rf conftest*
afc31813 17732 wx_cv_func_gettimeofday_has_2_args=no
10f2d63a 17733else
698dcdb6
VZ
17734 echo "configure: failed program was:" >&5
17735 cat conftest.$ac_ext >&5
17736 rm -rf conftest*
776862b4
VZ
17737
17738 echo "configure: warning: failed to determine number of gettimeofday() arguments" 1>&2
17739 wx_cv_func_gettimeofday_has_2_args=unknown
17740
698dcdb6 17741
10f2d63a 17742fi
698dcdb6
VZ
17743rm -f conftest*
17744
10f2d63a 17745fi
698dcdb6 17746rm -f conftest*
afc31813 17747 ac_ext=c
698dcdb6 17748# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10f2d63a 17749ac_cpp='$CPP $CPPFLAGS'
698dcdb6
VZ
17750ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17751ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17752cross_compiling=$ac_cv_prog_cc_cross
10f2d63a 17753
698dcdb6 17754
afc31813 17755fi
698dcdb6
VZ
17756
17757echo "$ac_t""$wx_cv_func_gettimeofday_has_2_args" 1>&6
c63c7106 17758
afc31813 17759 if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then
698dcdb6 17760 cat >> confdefs.h <<\EOF
afc31813
VZ
17761#define WX_GETTIMEOFDAY_NO_TZ 1
17762EOF
17763
17764 fi
17765 fi
17766
698dcdb6 17767 cat >> confdefs.h <<\EOF
afc31813
VZ
17768#define wxUSE_TIMEDATE 1
17769EOF
17770
17771 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest"
17772fi
17773
698dcdb6 17774
b089607b
VZ
17775if test "$TOOLKIT" != "MSW"; then
17776
3a922bb4
RL
17777 if test "$wxUSE_SOCKETS" = "yes"; then
17778 echo $ac_n "checking for socket""... $ac_c" 1>&6
658974ae 17779echo "configure:17780: checking for socket" >&5
698dcdb6
VZ
17780if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then
17781 echo $ac_n "(cached) $ac_c" 1>&6
c63c7106 17782else
698dcdb6 17783 cat > conftest.$ac_ext <<EOF
658974ae 17784#line 17785 "configure"
c63c7106
VZ
17785#include "confdefs.h"
17786/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 17787 which can conflict with char socket(); below. */
c63c7106
VZ
17788#include <assert.h>
17789/* Override any gcc2 internal prototype to avoid an error. */
17790/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
17791 builtin and then its argument prototype would still apply. */
17792char socket();
17793
17794int main() {
c63c7106
VZ
17795
17796/* The GNU C library defines this for functions which it implements
17797 to always fail with ENOSYS. Some functions are actually named
17798 something starting with __ and the normal name is an alias. */
17799#if defined (__stub_socket) || defined (__stub___socket)
17800choke me
17801#else
698dcdb6 17802socket();
c63c7106
VZ
17803#endif
17804
698dcdb6
VZ
17805; return 0; }
17806EOF
658974ae 17807if { (eval echo configure:17808: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
17808 rm -rf conftest*
17809 eval "ac_cv_func_socket=yes"
17810else
17811 echo "configure: failed program was:" >&5
17812 cat conftest.$ac_ext >&5
17813 rm -rf conftest*
17814 eval "ac_cv_func_socket=no"
17815fi
17816rm -f conftest*
17817fi
17818
17819if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
17820 echo "$ac_t""yes" 1>&6
c63c7106
VZ
17821 :
17822else
698dcdb6
VZ
17823 echo "$ac_t""no" 1>&6
17824echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
658974ae 17825echo "configure:17826: checking for socket in -lsocket" >&5
698dcdb6
VZ
17826ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'`
17827if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
17828 echo $ac_n "(cached) $ac_c" 1>&6
c63c7106 17829else
698dcdb6 17830 ac_save_LIBS="$LIBS"
c63c7106 17831LIBS="-lsocket $LIBS"
698dcdb6 17832cat > conftest.$ac_ext <<EOF
658974ae 17833#line 17834 "configure"
c63c7106
VZ
17834#include "confdefs.h"
17835/* Override any gcc2 internal prototype to avoid an error. */
17836/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
17837 builtin and then its argument prototype would still apply. */
17838char socket();
17839
17840int main() {
17841socket()
17842; return 0; }
17843EOF
658974ae 17844if { (eval echo configure:17845: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
17845 rm -rf conftest*
17846 eval "ac_cv_lib_$ac_lib_var=yes"
17847else
17848 echo "configure: failed program was:" >&5
17849 cat conftest.$ac_ext >&5
17850 rm -rf conftest*
17851 eval "ac_cv_lib_$ac_lib_var=no"
17852fi
17853rm -f conftest*
17854LIBS="$ac_save_LIBS"
17855
17856fi
17857if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
17858 echo "$ac_t""yes" 1>&6
c63c7106 17859 INET_LINK="$INET_LINK -lsocket"
c63c7106 17860else
698dcdb6 17861 echo "$ac_t""no" 1>&6
afc31813 17862
3a922bb4
RL
17863 echo "configure: warning: socket library not found - sockets will be disabled" 1>&2
17864 wxUSE_SOCKETS=no
17865
698dcdb6 17866
6232543b 17867fi
b089607b 17868
3a922bb4 17869
1e487827 17870fi
afc31813 17871
3a922bb4 17872 fi
51a9faba 17873
3a922bb4
RL
17874
17875 if test "$wxUSE_SOCKETS" = "yes" ; then
17876 echo $ac_n "checking what is the type of the third argument of getsockname""... $ac_c" 1>&6
658974ae 17877echo "configure:17878: checking what is the type of the third argument of getsockname" >&5
698dcdb6
VZ
17878if eval "test \"`echo '$''{'wx_cv_type_getsockname3'+set}'`\" = set"; then
17879 echo $ac_n "(cached) $ac_c" 1>&6
17880else
17881
3a922bb4
RL
17882
17883 ac_ext=C
698dcdb6 17884# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1e487827 17885ac_cpp='$CXXCPP $CPPFLAGS'
698dcdb6
VZ
17886ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17887ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17888cross_compiling=$ac_cv_prog_cxx_cross
703e0a69 17889
698dcdb6 17890
3a922bb4 17891 cat > conftest.$ac_ext <<EOF
658974ae 17892#line 17893 "configure"
afc31813 17893#include "confdefs.h"
51a9faba 17894
3a922bb4
RL
17895 #include <sys/types.h>
17896 #include <sys/socket.h>
17897
698dcdb6 17898int main() {
51a9faba 17899
3a922bb4
RL
17900 socklen_t len;
17901 getsockname(0, 0, &len);
17902
698dcdb6
VZ
17903; return 0; }
17904EOF
658974ae 17905if { (eval echo configure:17906: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6 17906 rm -rf conftest*
51a9faba 17907 wx_cv_type_getsockname3=socklen_t
afc31813 17908else
698dcdb6
VZ
17909 echo "configure: failed program was:" >&5
17910 cat conftest.$ac_ext >&5
17911 rm -rf conftest*
17912 cat > conftest.$ac_ext <<EOF
658974ae 17913#line 17914 "configure"
afc31813 17914#include "confdefs.h"
51a9faba 17915
3a922bb4
RL
17916 #include <sys/types.h>
17917 #include <sys/socket.h>
17918
698dcdb6 17919int main() {
51a9faba 17920
3a922bb4
RL
17921 size_t len;
17922 getsockname(0, 0, &len);
17923
698dcdb6
VZ
17924; return 0; }
17925EOF
658974ae 17926if { (eval echo configure:17927: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6 17927 rm -rf conftest*
51a9faba 17928 wx_cv_type_getsockname3=size_t
afc31813 17929else
698dcdb6
VZ
17930 echo "configure: failed program was:" >&5
17931 cat conftest.$ac_ext >&5
17932 rm -rf conftest*
17933 cat > conftest.$ac_ext <<EOF
658974ae 17934#line 17935 "configure"
afc31813 17935#include "confdefs.h"
51a9faba 17936
3a922bb4
RL
17937 #include <sys/types.h>
17938 #include <sys/socket.h>
17939
698dcdb6 17940int main() {
51a9faba 17941
3a922bb4
RL
17942 int len;
17943 getsockname(0, 0, &len);
17944
698dcdb6
VZ
17945; return 0; }
17946EOF
658974ae 17947if { (eval echo configure:17948: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6 17948 rm -rf conftest*
51a9faba 17949 wx_cv_type_getsockname3=int
afc31813 17950else
698dcdb6
VZ
17951 echo "configure: failed program was:" >&5
17952 cat conftest.$ac_ext >&5
17953 rm -rf conftest*
17954 wx_cv_type_getsockname3=unknown
3a922bb4 17955
afc31813 17956fi
698dcdb6 17957rm -f conftest*
3a922bb4 17958
afc31813 17959fi
698dcdb6 17960rm -f conftest*
3a922bb4 17961
afc31813 17962fi
698dcdb6 17963rm -f conftest*
51a9faba 17964
3a922bb4 17965 ac_ext=c
698dcdb6 17966# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
afc31813 17967ac_cpp='$CPP $CPPFLAGS'
698dcdb6
VZ
17968ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17969ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17970cross_compiling=$ac_cv_prog_cc_cross
afc31813 17971
3a922bb4 17972
51a9faba 17973fi
698dcdb6
VZ
17974
17975echo "$ac_t""$wx_cv_type_getsockname3" 1>&6
51a9faba 17976
3a922bb4
RL
17977 if test "$wx_cv_type_getsockname3" = "unknown"; then
17978 wxUSE_SOCKETS=no
17979 echo "configure: warning: Couldn't find socklen_t synonym for this system" 1>&2
17980 else
17981 cat >> confdefs.h <<EOF
51a9faba
VZ
17982#define SOCKLEN_T $wx_cv_type_getsockname3
17983EOF
17984
3a922bb4 17985 fi
51a9faba
VZ
17986 fi
17987fi
afc31813 17988
51a9faba 17989if test "$wxUSE_SOCKETS" = "yes" ; then
698dcdb6 17990 cat >> confdefs.h <<\EOF
afc31813
VZ
17991#define wxUSE_SOCKETS 1
17992EOF
17993
70f7a477 17994 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets"
afc31813
VZ
17995fi
17996
698dcdb6 17997
dc3d889d
VZ
17998if test "$wxUSE_GUI" = "yes"; then
17999
156b2523
GD
18000 if test "$TOOLKIT" = "MAC"; then
18001 echo "configure: warning: Joystick not yet supported under Mac OS X... disabled" 1>&2
18002 wxUSE_JOYSTICK=no
18003 fi
18004 if test "$TOOLKIT" = "MOTIF"; then
18005 echo "configure: warning: Joystick not yet supported under Motif... disabled" 1>&2
18006 wxUSE_JOYSTICK=no
18007 fi
18008
3a922bb4
RL
18009 if test "$TOOLKIT" != "MSW"; then
18010 if test "$wxUSE_JOYSTICK" = "yes"; then
18011 for ac_hdr in linux/joystick.h
10f2d63a 18012do
698dcdb6
VZ
18013ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
18014echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
658974ae 18015echo "configure:18016: checking for $ac_hdr" >&5
698dcdb6
VZ
18016if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
18017 echo $ac_n "(cached) $ac_c" 1>&6
18018else
18019 cat > conftest.$ac_ext <<EOF
658974ae 18020#line 18021 "configure"
10f2d63a 18021#include "confdefs.h"
698dcdb6
VZ
18022#include <$ac_hdr>
18023EOF
18024ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
658974ae 18025{ (eval echo configure:18026: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
18026ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
18027if test -z "$ac_err"; then
18028 rm -rf conftest*
18029 eval "ac_cv_header_$ac_safe=yes"
10f2d63a 18030else
698dcdb6
VZ
18031 echo "$ac_err" >&5
18032 echo "configure: failed program was:" >&5
10f2d63a 18033 cat conftest.$ac_ext >&5
698dcdb6
VZ
18034 rm -rf conftest*
18035 eval "ac_cv_header_$ac_safe=no"
10f2d63a 18036fi
698dcdb6 18037rm -f conftest*
10f2d63a 18038fi
698dcdb6
VZ
18039if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
18040 echo "$ac_t""yes" 1>&6
18041 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
18042 cat >> confdefs.h <<EOF
18043#define $ac_tr_hdr 1
10f2d63a 18044EOF
698dcdb6
VZ
18045
18046else
18047 echo "$ac_t""no" 1>&6
10f2d63a
VZ
18048fi
18049done
18050
3a922bb4
RL
18051 if test "$ac_cv_header_linux_joystick_h" != "yes"; then
18052 wxUSE_JOYSTICK=no
156b2523 18053 echo "configure: warning: Joystick not supported by this system... disabled" 1>&2
3a922bb4
RL
18054 fi
18055 fi
18056 fi
b089607b 18057
3a922bb4
RL
18058 if test "$wxUSE_JOYSTICK" = "yes"; then
18059 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18060#define wxUSE_JOYSTICK 1
18061EOF
18062
3a922bb4
RL
18063 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest"
18064 fi
dc3d889d
VZ
18065fi
18066
698dcdb6 18067
b089607b
VZ
18068if test "$TOOLKIT" != "MSW"; then
18069
3a922bb4
RL
18070 HAVE_DL_FUNCS=0
18071 HAVE_SHL_FUNCS=0
0b9ab0bd 18072 if test "$wxUSE_DYNAMIC_LOADER" = "yes" -o "$wxUSE_DYNLIB_CLASS" = "yes" ; then
3a922bb4
RL
18073 if test "$USE_DARWIN" = 1; then
18074 HAVE_DL_FUNCS=1
18075 else
18076 for ac_func in dlopen
10f2d63a 18077do
698dcdb6 18078echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
658974ae 18079echo "configure:18080: checking for $ac_func" >&5
698dcdb6
VZ
18080if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18081 echo $ac_n "(cached) $ac_c" 1>&6
18082else
18083 cat > conftest.$ac_ext <<EOF
658974ae 18084#line 18085 "configure"
10f2d63a
VZ
18085#include "confdefs.h"
18086/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 18087 which can conflict with char $ac_func(); below. */
10f2d63a
VZ
18088#include <assert.h>
18089/* Override any gcc2 internal prototype to avoid an error. */
18090/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
18091 builtin and then its argument prototype would still apply. */
18092char $ac_func();
18093
18094int main() {
10f2d63a
VZ
18095
18096/* The GNU C library defines this for functions which it implements
18097 to always fail with ENOSYS. Some functions are actually named
18098 something starting with __ and the normal name is an alias. */
18099#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18100choke me
18101#else
698dcdb6 18102$ac_func();
10f2d63a
VZ
18103#endif
18104
698dcdb6
VZ
18105; return 0; }
18106EOF
658974ae 18107if { (eval echo configure:18108: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
18108 rm -rf conftest*
18109 eval "ac_cv_func_$ac_func=yes"
18110else
18111 echo "configure: failed program was:" >&5
18112 cat conftest.$ac_ext >&5
18113 rm -rf conftest*
18114 eval "ac_cv_func_$ac_func=no"
18115fi
18116rm -f conftest*
18117fi
18118
18119if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18120 echo "$ac_t""yes" 1>&6
18121 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18122 cat >> confdefs.h <<EOF
18123#define $ac_tr_func 1
18124EOF
18125
3a922bb4 18126 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18127#define HAVE_DLOPEN 1
18128EOF
18129
3a922bb4
RL
18130 HAVE_DL_FUNCS=1
18131
10f2d63a 18132else
698dcdb6
VZ
18133 echo "$ac_t""no" 1>&6
18134echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
658974ae 18135echo "configure:18136: checking for dlopen in -ldl" >&5
698dcdb6
VZ
18136ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
18137if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
18138 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 18139else
698dcdb6 18140 ac_save_LIBS="$LIBS"
10f2d63a 18141LIBS="-ldl $LIBS"
698dcdb6 18142cat > conftest.$ac_ext <<EOF
658974ae 18143#line 18144 "configure"
10f2d63a
VZ
18144#include "confdefs.h"
18145/* Override any gcc2 internal prototype to avoid an error. */
18146/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
18147 builtin and then its argument prototype would still apply. */
18148char dlopen();
18149
18150int main() {
18151dlopen()
18152; return 0; }
18153EOF
658974ae 18154if { (eval echo configure:18155: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
18155 rm -rf conftest*
18156 eval "ac_cv_lib_$ac_lib_var=yes"
18157else
18158 echo "configure: failed program was:" >&5
18159 cat conftest.$ac_ext >&5
18160 rm -rf conftest*
18161 eval "ac_cv_lib_$ac_lib_var=no"
18162fi
18163rm -f conftest*
18164LIBS="$ac_save_LIBS"
18165
18166fi
18167if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
18168 echo "$ac_t""yes" 1>&6
18169
3a922bb4 18170 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18171#define HAVE_DLOPEN 1
18172EOF
18173
3a922bb4 18174 HAVE_DL_FUNCS=1
3d63bc3a 18175 DL_LINK=" -ldl$DL_LINK"
3a922bb4 18176
10f2d63a 18177else
698dcdb6 18178 echo "$ac_t""no" 1>&6
10f2d63a 18179
3a922bb4 18180 for ac_func in shl_load
10f2d63a 18181do
698dcdb6 18182echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
658974ae 18183echo "configure:18184: checking for $ac_func" >&5
698dcdb6
VZ
18184if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18185 echo $ac_n "(cached) $ac_c" 1>&6
18186else
18187 cat > conftest.$ac_ext <<EOF
658974ae 18188#line 18189 "configure"
10f2d63a
VZ
18189#include "confdefs.h"
18190/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 18191 which can conflict with char $ac_func(); below. */
10f2d63a
VZ
18192#include <assert.h>
18193/* Override any gcc2 internal prototype to avoid an error. */
18194/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
18195 builtin and then its argument prototype would still apply. */
18196char $ac_func();
18197
18198int main() {
10f2d63a
VZ
18199
18200/* The GNU C library defines this for functions which it implements
18201 to always fail with ENOSYS. Some functions are actually named
18202 something starting with __ and the normal name is an alias. */
18203#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18204choke me
18205#else
698dcdb6 18206$ac_func();
10f2d63a
VZ
18207#endif
18208
698dcdb6
VZ
18209; return 0; }
18210EOF
658974ae 18211if { (eval echo configure:18212: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
18212 rm -rf conftest*
18213 eval "ac_cv_func_$ac_func=yes"
18214else
18215 echo "configure: failed program was:" >&5
18216 cat conftest.$ac_ext >&5
18217 rm -rf conftest*
18218 eval "ac_cv_func_$ac_func=no"
18219fi
18220rm -f conftest*
18221fi
18222
18223if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18224 echo "$ac_t""yes" 1>&6
18225 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18226 cat >> confdefs.h <<EOF
18227#define $ac_tr_func 1
18228EOF
18229
3a922bb4 18230 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18231#define HAVE_SHL_LOAD 1
18232EOF
18233
3a922bb4
RL
18234 HAVE_SHL_FUNCS=1
18235
10f2d63a 18236else
698dcdb6
VZ
18237 echo "$ac_t""no" 1>&6
18238echo $ac_n "checking for dld in -lshl_load""... $ac_c" 1>&6
658974ae 18239echo "configure:18240: checking for dld in -lshl_load" >&5
698dcdb6
VZ
18240ac_lib_var=`echo shl_load'_'dld | sed 'y%./+-%__p_%'`
18241if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
18242 echo $ac_n "(cached) $ac_c" 1>&6
f6bcfd97 18243else
698dcdb6 18244 ac_save_LIBS="$LIBS"
f6bcfd97 18245LIBS="-lshl_load $LIBS"
698dcdb6 18246cat > conftest.$ac_ext <<EOF
658974ae 18247#line 18248 "configure"
f6bcfd97
BP
18248#include "confdefs.h"
18249/* Override any gcc2 internal prototype to avoid an error. */
18250/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
18251 builtin and then its argument prototype would still apply. */
18252char dld();
18253
18254int main() {
18255dld()
18256; return 0; }
18257EOF
658974ae 18258if { (eval echo configure:18259: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
18259 rm -rf conftest*
18260 eval "ac_cv_lib_$ac_lib_var=yes"
18261else
18262 echo "configure: failed program was:" >&5
18263 cat conftest.$ac_ext >&5
18264 rm -rf conftest*
18265 eval "ac_cv_lib_$ac_lib_var=no"
18266fi
18267rm -f conftest*
18268LIBS="$ac_save_LIBS"
f6bcfd97 18269
698dcdb6
VZ
18270fi
18271if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
18272 echo "$ac_t""yes" 1>&6
18273
3a922bb4 18274 HAVE_SHL_FUNCS=1
3d63bc3a 18275 DL_LINK=" -ldld$DL_LINK"
3a922bb4 18276
698dcdb6
VZ
18277else
18278 echo "$ac_t""no" 1>&6
f6bcfd97
BP
18279fi
18280
3a922bb4 18281
10f2d63a
VZ
18282fi
18283done
18284
3a922bb4 18285
10f2d63a
VZ
18286fi
18287
3a922bb4 18288
10f2d63a
VZ
18289fi
18290done
18291
1e487827 18292
3a922bb4
RL
18293 if test "$HAVE_DL_FUNCS" = 1; then
18294 for ac_func in dlerror
f6bcfd97 18295do
698dcdb6 18296echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
658974ae 18297echo "configure:18298: checking for $ac_func" >&5
698dcdb6
VZ
18298if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18299 echo $ac_n "(cached) $ac_c" 1>&6
18300else
18301 cat > conftest.$ac_ext <<EOF
658974ae 18302#line 18303 "configure"
f6bcfd97
BP
18303#include "confdefs.h"
18304/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 18305 which can conflict with char $ac_func(); below. */
f6bcfd97
BP
18306#include <assert.h>
18307/* Override any gcc2 internal prototype to avoid an error. */
18308/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
18309 builtin and then its argument prototype would still apply. */
18310char $ac_func();
18311
18312int main() {
f6bcfd97
BP
18313
18314/* The GNU C library defines this for functions which it implements
18315 to always fail with ENOSYS. Some functions are actually named
18316 something starting with __ and the normal name is an alias. */
18317#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18318choke me
18319#else
698dcdb6 18320$ac_func();
f6bcfd97
BP
18321#endif
18322
698dcdb6
VZ
18323; return 0; }
18324EOF
658974ae 18325if { (eval echo configure:18326: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
18326 rm -rf conftest*
18327 eval "ac_cv_func_$ac_func=yes"
18328else
18329 echo "configure: failed program was:" >&5
18330 cat conftest.$ac_ext >&5
18331 rm -rf conftest*
18332 eval "ac_cv_func_$ac_func=no"
18333fi
18334rm -f conftest*
18335fi
18336
18337if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18338 echo "$ac_t""yes" 1>&6
18339 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18340 cat >> confdefs.h <<EOF
18341#define $ac_tr_func 1
18342EOF
18343 cat >> confdefs.h <<\EOF
f6bcfd97
BP
18344#define HAVE_DLERROR 1
18345EOF
18346
18347else
698dcdb6
VZ
18348 echo "$ac_t""no" 1>&6
18349echo $ac_n "checking for dlerror in -ldl""... $ac_c" 1>&6
658974ae 18350echo "configure:18351: checking for dlerror in -ldl" >&5
698dcdb6
VZ
18351ac_lib_var=`echo dl'_'dlerror | sed 'y%./+-%__p_%'`
18352if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
18353 echo $ac_n "(cached) $ac_c" 1>&6
f6bcfd97 18354else
698dcdb6 18355 ac_save_LIBS="$LIBS"
f6bcfd97 18356LIBS="-ldl $LIBS"
698dcdb6 18357cat > conftest.$ac_ext <<EOF
658974ae 18358#line 18359 "configure"
f6bcfd97
BP
18359#include "confdefs.h"
18360/* Override any gcc2 internal prototype to avoid an error. */
18361/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
18362 builtin and then its argument prototype would still apply. */
18363char dlerror();
18364
18365int main() {
18366dlerror()
18367; return 0; }
18368EOF
658974ae 18369if { (eval echo configure:18370: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
18370 rm -rf conftest*
18371 eval "ac_cv_lib_$ac_lib_var=yes"
18372else
18373 echo "configure: failed program was:" >&5
18374 cat conftest.$ac_ext >&5
18375 rm -rf conftest*
18376 eval "ac_cv_lib_$ac_lib_var=no"
18377fi
18378rm -f conftest*
18379LIBS="$ac_save_LIBS"
18380
18381fi
18382if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
18383 echo "$ac_t""yes" 1>&6
18384 cat >> confdefs.h <<\EOF
f6bcfd97
BP
18385#define HAVE_DLERROR 1
18386EOF
18387
698dcdb6
VZ
18388else
18389 echo "$ac_t""no" 1>&6
f6bcfd97
BP
18390fi
18391
18392fi
18393done
18394
3a922bb4
RL
18395 fi
18396 fi
f6bcfd97 18397
3a922bb4
RL
18398 if test "$HAVE_DL_FUNCS" = 0; then
18399 if test "$HAVE_SHL_FUNCS" = 0; then
18400 if test "$USE_UNIX" = 1; then
18401 echo "configure: warning: Missing dynamic loading support, several features will be disabled" 1>&2
0b9ab0bd 18402 wxUSE_DYNAMIC_LOADER=no
3a922bb4
RL
18403 wxUSE_DYNLIB_CLASS=no
18404 else
18405 echo "configure: warning: Assuming wxLibrary class works on this platform" 1>&2
18406 fi
18407 fi
10f2d63a
VZ
18408 fi
18409 fi
18410fi
18411
0b9ab0bd
RL
18412if test "$wxUSE_DYNAMIC_LOADER" = "yes" ; then
18413 cat >> confdefs.h <<\EOF
18414#define wxUSE_DYNAMIC_LOADER 1
18415EOF
18416
18417elif test "$wxUSE_DYNLIB_CLASS" = "yes" ; then
698dcdb6 18418 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18419#define wxUSE_DYNLIB_CLASS 1
18420EOF
18421
18422fi
18423
698dcdb6 18424
1e6feb95
VZ
18425if test "$wxUSE_FONTMAP" = "yes" ; then
18426 cat >> confdefs.h <<\EOF
18427#define wxUSE_FONTMAP 1
18428EOF
18429
18430fi
18431
10f2d63a 18432if test "$wxUSE_UNICODE" = "yes" ; then
698dcdb6 18433 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18434#define wxUSE_UNICODE 1
18435EOF
18436
a72a4bfa
VS
18437
18438 if test "$wxUSE_MSW" = 1 -a "$wxUSE_UNICODE_MSLU" = "yes"; then
18439 echo $ac_n "checking for main in -lunicows""... $ac_c" 1>&6
658974ae 18440echo "configure:18441: checking for main in -lunicows" >&5
a72a4bfa
VS
18441ac_lib_var=`echo unicows'_'main | sed 'y%./+-%__p_%'`
18442if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
18443 echo $ac_n "(cached) $ac_c" 1>&6
18444else
18445 ac_save_LIBS="$LIBS"
18446LIBS="-lunicows $LIBS"
18447cat > conftest.$ac_ext <<EOF
658974ae 18448#line 18449 "configure"
a72a4bfa
VS
18449#include "confdefs.h"
18450
18451int main() {
18452main()
18453; return 0; }
18454EOF
658974ae 18455if { (eval echo configure:18456: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a72a4bfa
VS
18456 rm -rf conftest*
18457 eval "ac_cv_lib_$ac_lib_var=yes"
18458else
18459 echo "configure: failed program was:" >&5
18460 cat conftest.$ac_ext >&5
18461 rm -rf conftest*
18462 eval "ac_cv_lib_$ac_lib_var=no"
18463fi
18464rm -f conftest*
18465LIBS="$ac_save_LIBS"
18466
18467fi
18468if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
18469 echo "$ac_t""yes" 1>&6
18470
18471 cat >> confdefs.h <<\EOF
18472#define wxUSE_UNICODE_MSLU 1
18473EOF
18474
18475
18476else
18477 echo "$ac_t""no" 1>&6
18478
18479 echo "configure: warning: Compiler doesn't support MSLU (libunicows.a), disabled.
18480 Applications will only run on Windows NT/2000/XP!" 1>&2
18481 wxUSE_UNICODE_MSLU=no
18482
18483fi
18484
18485 fi
10f2d63a
VZ
18486fi
18487
10f2d63a 18488if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then
698dcdb6 18489 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18490#define wxUSE_EXPERIMENTAL_PRINTF 1
18491EOF
18492
18493fi
18494
698dcdb6 18495
698dcdb6 18496
10f2d63a
VZ
18497IODBC_C_SRC=""
18498if test "$wxUSE_ODBC" = "yes" ; then
698dcdb6 18499 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18500#define wxUSE_ODBC 1
18501EOF
18502
18503 WXODBCFLAG="-D_IODBC_"
18504 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db"
10f2d63a
VZ
18505fi
18506
698dcdb6 18507
10f2d63a 18508if test "$wxUSE_POSTSCRIPT" = "yes" ; then
698dcdb6 18509 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18510#define wxUSE_POSTSCRIPT 1
18511EOF
18512
18513fi
18514
698dcdb6 18515cat >> confdefs.h <<\EOF
10f2d63a
VZ
18516#define wxUSE_AFM_FOR_POSTSCRIPT 1
18517EOF
18518
698dcdb6
VZ
18519
18520cat >> confdefs.h <<\EOF
10f2d63a
VZ
18521#define wxUSE_NORMALIZED_PS_FONTS 1
18522EOF
18523
698dcdb6
VZ
18524
18525
10f2d63a 18526if test "$wxUSE_CONSTRAINTS" = "yes"; then
698dcdb6 18527 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18528#define wxUSE_CONSTRAINTS 1
18529EOF
18530
18531 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout"
18532fi
18533
18534if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
fc26f4ab 18535 if test "$wxUSE_UNIVERSAL" = "yes"; then
156b2523 18536 echo "configure: warning: MDI not yet supported for wxUNIVERSAL... disabled" 1>&2
fc26f4ab
RL
18537 wxUSE_MDI_ARCHITECTURE=no
18538 fi
18539
18540 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
18541 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18542#define wxUSE_MDI_ARCHITECTURE 1
18543EOF
18544
fc26f4ab
RL
18545 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi"
18546 fi
10f2d63a
VZ
18547fi
18548
18549if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then
698dcdb6 18550 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18551#define wxUSE_DOC_VIEW_ARCHITECTURE 1
18552EOF
18553
18554 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview"
18555 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
18556 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi"
18557 fi
18558fi
18559
18560if test "$wxUSE_HELP" = "yes"; then
698dcdb6 18561 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18562#define wxUSE_HELP 1
18563EOF
18564
18565 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help"
3379ed37 18566
77e13408 18567 if test "$wxUSE_MSW" = 1; then
031d8228 18568 if test "$wxUSE_MS_HTML_HELP" = "yes"; then
29fd3c0c
VS
18569 ac_safe=`echo "htmlhelp.h" | sed 'y%./+-%__p_%'`
18570echo $ac_n "checking for htmlhelp.h""... $ac_c" 1>&6
658974ae 18571echo "configure:18572: checking for htmlhelp.h" >&5
29fd3c0c
VS
18572if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
18573 echo $ac_n "(cached) $ac_c" 1>&6
18574else
18575 cat > conftest.$ac_ext <<EOF
658974ae 18576#line 18577 "configure"
29fd3c0c
VS
18577#include "confdefs.h"
18578#include <htmlhelp.h>
18579EOF
18580ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
658974ae 18581{ (eval echo configure:18582: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
29fd3c0c
VS
18582ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
18583if test -z "$ac_err"; then
18584 rm -rf conftest*
18585 eval "ac_cv_header_$ac_safe=yes"
18586else
18587 echo "$ac_err" >&5
18588 echo "configure: failed program was:" >&5
18589 cat conftest.$ac_ext >&5
18590 rm -rf conftest*
18591 eval "ac_cv_header_$ac_safe=no"
18592fi
18593rm -f conftest*
18594fi
18595if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
18596 echo "$ac_t""yes" 1>&6
18597
18598 cat >> confdefs.h <<\EOF
18599#define wxUSE_MS_HTML_HELP 1
18600EOF
18601
18602
18603else
18604 echo "$ac_t""no" 1>&6
18605
fc26f4ab 18606 echo "configure: warning: MS HTML Help cannot be used without htmlhelp.h... disabled" 1>&2
29fd3c0c
VS
18607 wxUSE_MS_HTML_HELP=no
18608
18609fi
18610
3e44f09d 18611 fi
3379ed37 18612 fi
031d8228
VS
18613
18614 if test "$wxUSE_WXHTML_HELP" = "yes"; then
18615 if test "$wxUSE_HTML" = "yes"; then
18616 cat >> confdefs.h <<\EOF
18617#define wxUSE_WXHTML_HELP 1
18618EOF
18619
18620 else
18621 echo "configure: warning: Cannot use wxHTML-based help without wxHTML so it won't be compiled" 1>&2
18622 wxUSE_WXHTML_HELP=no
18623 fi
18624 fi
10f2d63a
VZ
18625fi
18626
18627if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
18628 if test "$wxUSE_CONSTRAINTS" != "yes"; then
698dcdb6 18629 echo "configure: warning: Printing support cannot be used without constraints so it won't be compiled without it" 1>&2
10f2d63a 18630 else
698dcdb6 18631 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18632#define wxUSE_PRINTING_ARCHITECTURE 1
18633EOF
18634
18635 fi
18636 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing"
18637fi
18638
18639if test "$wxUSE_PROLOGIO" = "yes" ; then
698dcdb6 18640 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18641#define wxUSE_PROLOGIO 1
18642EOF
18643
18644fi
18645
18646if test "$wxUSE_RESOURCES" = "yes" ; then
3379ed37 18647 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18648#define wxUSE_RESOURCES 1
18649EOF
18650
3379ed37 18651 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS resource"
10f2d63a
VZ
18652fi
18653
18654if test "$wxUSE_X_RESOURCES" = "yes"; then
698dcdb6 18655 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18656#define wxUSE_X_RESOURCES 1
18657EOF
18658
18659fi
18660
698dcdb6 18661
77e13408
RL
18662if test "$wxUSE_MSW" = 1 -a \( "$wxUSE_DATAOBJ" = "yes" \
18663 -o "$wxUSE_CLIPBOARD" = "yes" \
18664 -o "$wxUSE_DRAG_AND_DROP" = "yes" \) ; then
2b9bdf71 18665 for ac_hdr in ole2.h
10f2d63a 18666do
698dcdb6
VZ
18667ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
18668echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
658974ae 18669echo "configure:18670: checking for $ac_hdr" >&5
698dcdb6
VZ
18670if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
18671 echo $ac_n "(cached) $ac_c" 1>&6
18672else
18673 cat > conftest.$ac_ext <<EOF
658974ae 18674#line 18675 "configure"
10f2d63a 18675#include "confdefs.h"
698dcdb6
VZ
18676#include <$ac_hdr>
18677EOF
18678ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
658974ae 18679{ (eval echo configure:18680: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
18680ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
18681if test -z "$ac_err"; then
18682 rm -rf conftest*
18683 eval "ac_cv_header_$ac_safe=yes"
1e487827 18684else
698dcdb6
VZ
18685 echo "$ac_err" >&5
18686 echo "configure: failed program was:" >&5
10f2d63a 18687 cat conftest.$ac_ext >&5
698dcdb6
VZ
18688 rm -rf conftest*
18689 eval "ac_cv_header_$ac_safe=no"
10f2d63a 18690fi
698dcdb6 18691rm -f conftest*
10f2d63a 18692fi
698dcdb6
VZ
18693if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
18694 echo "$ac_t""yes" 1>&6
18695 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
18696 cat >> confdefs.h <<EOF
18697#define $ac_tr_hdr 1
10f2d63a 18698EOF
698dcdb6
VZ
18699
18700else
18701 echo "$ac_t""no" 1>&6
10f2d63a
VZ
18702fi
18703done
18704
698dcdb6 18705
2b9bdf71
VZ
18706 if test "$ac_cv_header_ole2_h" = "yes" ; then
18707 if test "$GCC" = yes ; then
18708 ALL_OBJECTS="$ALL_OBJECTS \$(OLEOBJS)"
2b9bdf71 18709 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fvtable-thunks"
3d63bc3a 18710 LIBS=" -lrpcrt4 -loleaut32 -lole32 -luuid$LIBS"
2b9bdf71 18711 cat >> confdefs.h <<\EOF
4f11a343
VS
18712#define wxUSE_OLE 1
18713EOF
18714
b64f0a5f 18715
2b9bdf71
VZ
18716 fi
18717
18718 cat >> confdefs.h <<\EOF
18719#define wxUSE_DATAOBJ 1
18720EOF
18721
18722 else
18723 echo "configure: warning: Some features disabled because OLE headers not found" 1>&2
18724
18725 wxUSE_CLIPBOARD=no
18726 wxUSE_DRAG_AND_DROP=no
18727 wxUSE_DATAOBJ=no
18728 fi
18729
77e13408 18730 if test "$wxUSE_METAFILE" = "yes"; then
2b9bdf71 18731 cat >> confdefs.h <<\EOF
b64f0a5f
RL
18732#define wxUSE_METAFILE 1
18733EOF
18734
2b9bdf71
VZ
18735
18736 cat >> confdefs.h <<\EOF
b64f0a5f
RL
18737#define wxUSE_ENH_METAFILE 1
18738EOF
18739
2b9bdf71
VZ
18740 fi
18741fi
18742
18743if test "$wxUSE_IPC" = "yes"; then
18744 if test "$wxUSE_SOCKETS" != "yes"; then
156b2523 18745 echo "configure: warning: wxWindows IPC classes require sockets... disabled" 1>&2
2b9bdf71
VZ
18746 fi
18747
18748 cat >> confdefs.h <<\EOF
18749#define wxUSE_IPC 1
18750EOF
18751
18752fi
18753
18754if test "$wxUSE_CLIPBOARD" = "yes"; then
18755 cat >> confdefs.h <<\EOF
18756#define wxUSE_CLIPBOARD 1
18757EOF
18758
673f4220 18759
e33ef661 18760 cat >> confdefs.h <<\EOF
673f4220
VZ
18761#define wxUSE_DATAOBJ 1
18762EOF
18763
2b9bdf71
VZ
18764fi
18765
18766if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then
18767 if test "$wxUSE_GTK" = 1; then
18768 if test "$WXGTK12" != 1; then
156b2523 18769 echo "configure: warning: Drag and drop is only supported under GTK+ 1.2... disabled" 1>&2
10f2d63a
VZ
18770 wxUSE_DRAG_AND_DROP=no
18771 fi
18772 fi
18773
2b9bdf71 18774 if test "$wxUSE_MOTIF" = 1; then
156b2523 18775 echo "configure: warning: Drag and drop not yet supported under Motif... disabled" 1>&2
2b9bdf71
VZ
18776 wxUSE_DRAG_AND_DROP=no
18777 fi
18778
10f2d63a 18779 if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
698dcdb6 18780 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18781#define wxUSE_DRAG_AND_DROP 1
18782EOF
18783
18784 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd"
18785 fi
18786
18787fi
18788
18789if test "$wxUSE_SPLINES" = "yes" ; then
698dcdb6 18790 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18791#define wxUSE_SPLINES 1
18792EOF
18793
18794fi
18795
698dcdb6 18796
1e6feb95
VZ
18797USES_CONTROLS=0
18798if test "$wxUSE_CONTROLS" = "yes"; then
18799 USES_CONTROLS=1
18800fi
18801
10f2d63a 18802if test "$wxUSE_ACCEL" = "yes"; then
698dcdb6 18803 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18804#define wxUSE_ACCEL 1
18805EOF
18806
1e6feb95
VZ
18807 USES_CONTROLS=1
18808fi
18809
18810if test "$wxUSE_BUTTON" = "yes"; then
18811 cat >> confdefs.h <<\EOF
18812#define wxUSE_BUTTON 1
18813EOF
18814
18815 USES_CONTROLS=1
18816fi
18817
18818if test "$wxUSE_BMPBUTTON" = "yes"; then
18819 cat >> confdefs.h <<\EOF
18820#define wxUSE_BMPBUTTON 1
18821EOF
18822
18823 USES_CONTROLS=1
18824fi
18825
18826if test "$wxUSE_CALCTRL" = "yes"; then
18827 cat >> confdefs.h <<\EOF
18828#define wxUSE_CALENDARCTRL 1
18829EOF
18830
18831 USES_CONTROLS=1
18832 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar"
10f2d63a
VZ
18833fi
18834
18835if test "$wxUSE_CARET" = "yes"; then
698dcdb6 18836 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18837#define wxUSE_CARET 1
18838EOF
18839
1e6feb95 18840 USES_CONTROLS=1
10f2d63a
VZ
18841 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret"
18842fi
18843
18844if test "$wxUSE_COMBOBOX" = "yes"; then
698dcdb6 18845 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18846#define wxUSE_COMBOBOX 1
18847EOF
18848
1e6feb95 18849 USES_CONTROLS=1
10f2d63a
VZ
18850fi
18851
18852if test "$wxUSE_CHOICE" = "yes"; then
698dcdb6 18853 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18854#define wxUSE_CHOICE 1
18855EOF
18856
1e6feb95 18857 USES_CONTROLS=1
10f2d63a
VZ
18858fi
18859
18860if test "$wxUSE_CHECKBOX" = "yes"; then
698dcdb6 18861 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18862#define wxUSE_CHECKBOX 1
18863EOF
18864
1e6feb95 18865 USES_CONTROLS=1
10f2d63a
VZ
18866fi
18867
18868if test "$wxUSE_CHECKLST" = "yes"; then
698dcdb6 18869 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18870#define wxUSE_CHECKLISTBOX 1
18871EOF
18872
1e6feb95 18873 USES_CONTROLS=1
10f2d63a
VZ
18874 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst"
18875fi
18876
18877if test "$wxUSE_GAUGE" = "yes"; then
698dcdb6 18878 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18879#define wxUSE_GAUGE 1
18880EOF
18881
1e6feb95 18882 USES_CONTROLS=1
10f2d63a
VZ
18883fi
18884
d6a55c4b
VZ
18885if test "$wxUSE_NEW_GRID" = "yes"; then
18886 wxUSE_GRID="yes"
698dcdb6 18887 cat >> confdefs.h <<\EOF
d6a55c4b 18888#define wxUSE_NEW_GRID 1
10f2d63a
VZ
18889EOF
18890
1e6feb95 18891 USES_CONTROLS=1
d6a55c4b 18892 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS newgrid"
10f2d63a
VZ
18893fi
18894
d6a55c4b 18895if test "$wxUSE_GRID" = "yes"; then
698dcdb6 18896 cat >> confdefs.h <<\EOF
d6a55c4b 18897#define wxUSE_GRID 1
10f2d63a
VZ
18898EOF
18899
1e6feb95 18900 USES_CONTROLS=1
d6a55c4b 18901 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid"
10f2d63a
VZ
18902fi
18903
18904if test "$wxUSE_IMAGLIST" = "yes"; then
698dcdb6 18905 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18906#define wxUSE_IMAGLIST 1
18907EOF
18908
18909fi
18910
18911if test "$wxUSE_LISTBOX" = "yes"; then
698dcdb6 18912 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18913#define wxUSE_LISTBOX 1
18914EOF
18915
1e6feb95 18916 USES_CONTROLS=1
10f2d63a
VZ
18917fi
18918
18919if test "$wxUSE_LISTCTRL" = "yes"; then
18920 if test "$wxUSE_IMAGLIST" = "yes"; then
698dcdb6 18921 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18922#define wxUSE_LISTCTRL 1
18923EOF
18924
1e6feb95 18925 USES_CONTROLS=1
10f2d63a
VZ
18926 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl"
18927 else
698dcdb6 18928 echo "configure: warning: wxListCtrl requires wxImageList and won't be compiled without it" 1>&2
10f2d63a
VZ
18929 fi
18930fi
18931
18932if test "$wxUSE_NOTEBOOK" = "yes"; then
698dcdb6 18933 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18934#define wxUSE_NOTEBOOK 1
18935EOF
18936
1e6feb95 18937 USES_CONTROLS=1
10f2d63a
VZ
18938 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook"
18939fi
18940
24176f2c
GD
18941if test "$wxUSE_PROPSHEET" = "yes"; then
18942 cat >> confdefs.h <<\EOF
18943#define wxUSE_PROPSHEET 1
18944EOF
18945
18946 USES_CONTROLS=1
18947 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS proplist"
18948fi
18949
10f2d63a 18950if test "$wxUSE_RADIOBOX" = "yes"; then
698dcdb6 18951 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18952#define wxUSE_RADIOBOX 1
18953EOF
18954
1e6feb95 18955 USES_CONTROLS=1
10f2d63a
VZ
18956fi
18957
18958if test "$wxUSE_RADIOBTN" = "yes"; then
698dcdb6 18959 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18960#define wxUSE_RADIOBTN 1
18961EOF
18962
1e6feb95 18963 USES_CONTROLS=1
10f2d63a
VZ
18964fi
18965
18966if test "$wxUSE_SASH" = "yes"; then
698dcdb6 18967 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18968#define wxUSE_SASH 1
18969EOF
18970
18971 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest"
18972fi
18973
18974if test "$wxUSE_SCROLLBAR" = "yes"; then
698dcdb6 18975 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18976#define wxUSE_SCROLLBAR 1
18977EOF
18978
1e6feb95 18979 USES_CONTROLS=1
741a9306 18980 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub"
10f2d63a
VZ
18981fi
18982
18983if test "$wxUSE_SLIDER" = "yes"; then
698dcdb6 18984 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18985#define wxUSE_SLIDER 1
18986EOF
18987
1e6feb95 18988 USES_CONTROLS=1
10f2d63a
VZ
18989fi
18990
18991if test "$wxUSE_SPINBTN" = "yes"; then
698dcdb6 18992 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18993#define wxUSE_SPINBTN 1
18994EOF
18995
1e6feb95 18996 USES_CONTROLS=1
10f2d63a
VZ
18997fi
18998
56cfaa52 18999if test "$wxUSE_SPINCTRL" = "yes"; then
698dcdb6 19000 cat >> confdefs.h <<\EOF
56cfaa52
RR
19001#define wxUSE_SPINCTRL 1
19002EOF
19003
1e6feb95 19004 USES_CONTROLS=1
56cfaa52
RR
19005fi
19006
10f2d63a 19007if test "$wxUSE_SPLITTER" = "yes"; then
698dcdb6 19008 cat >> confdefs.h <<\EOF
10f2d63a
VZ
19009#define wxUSE_SPLITTER 1
19010EOF
19011
19012 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter"
19013fi
19014
19015if test "$wxUSE_STATBMP" = "yes"; then
698dcdb6 19016 cat >> confdefs.h <<\EOF
10f2d63a
VZ
19017#define wxUSE_STATBMP 1
19018EOF
19019
1e6feb95 19020 USES_CONTROLS=1
10f2d63a
VZ
19021fi
19022
19023if test "$wxUSE_STATBOX" = "yes"; then
698dcdb6 19024 cat >> confdefs.h <<\EOF
10f2d63a
VZ
19025#define wxUSE_STATBOX 1
19026EOF
19027
1e6feb95
VZ
19028 USES_CONTROLS=1
19029fi
19030
19031if test "$wxUSE_STATTEXT" = "yes"; then
19032 cat >> confdefs.h <<\EOF
19033#define wxUSE_STATTEXT 1
19034EOF
19035
19036 USES_CONTROLS=1
10f2d63a
VZ
19037fi
19038
19039if test "$wxUSE_STATLINE" = "yes"; then
19040 if test "$wxUSE_WINE" = 1 ; then
698dcdb6 19041 echo "configure: warning: wxStaticLine is not supported under WINE" 1>&2
10f2d63a 19042 else
698dcdb6 19043 cat >> confdefs.h <<\EOF
10f2d63a
VZ
19044#define wxUSE_STATLINE 1
19045EOF
19046
1e6feb95 19047 USES_CONTROLS=1
10f2d63a
VZ
19048 fi
19049fi
19050
19051if test "$wxUSE_STATUSBAR" = "yes"; then
698dcdb6 19052 cat >> confdefs.h <<\EOF
10f2d63a
VZ
19053#define wxUSE_STATUSBAR 1
19054EOF
19055
1e6feb95 19056 USES_CONTROLS=1
698dcdb6 19057
2286341c 19058 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar"
10f2d63a
VZ
19059fi
19060
19061if test "$wxUSE_TABDIALOG" = "yes"; then
698dcdb6 19062 cat >> confdefs.h <<\EOF
10f2d63a
VZ
19063#define wxUSE_TAB_DIALOG 1
19064EOF
19065
19066 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS tab"
19067fi
19068
1e6feb95
VZ
19069if test "$wxUSE_TEXTCTRL" = "yes"; then
19070 cat >> confdefs.h <<\EOF
19071#define wxUSE_TEXTCTRL 1
19072EOF
19073
19074 USES_CONTROLS=1
19075 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text"
19076fi
19077
1db8dc4a 19078if test "$wxUSE_TOGGLEBTN" = "yes"; then
156b2523
GD
19079 if test "$wxUSE_MAC" = 1; then
19080 echo "configure: warning: Toggle button not yet supported under Mac OS X... disabled" 1>&2
19081 wxUSE_TOGGLEBTN=no
19082 fi
19083 if test "$wxUSE_UNIVERSAL" = "yes"; then
19084 echo "configure: warning: Toggle button not yet supported under wxUNIVERSAL... disabled" 1>&2
a45d7ab7
GD
19085 wxUSE_TOGGLEBTN=no
19086 fi
19087
19088 if test "$wxUSE_TOGGLEBTN" = "yes"; then
19089 cat >> confdefs.h <<\EOF
1db8dc4a
VZ
19090#define wxUSE_TOGGLEBTN 1
19091EOF
19092
1e6feb95 19093 USES_CONTROLS=1
a45d7ab7 19094 fi
1db8dc4a
VZ
19095fi
19096
360d6699 19097if test "$wxUSE_TOOLBAR_SIMPLE" = "yes"; then
698dcdb6 19098 cat >> confdefs.h <<\EOF
360d6699
VZ
19099#define wxUSE_TOOLBAR_SIMPLE 1
19100EOF
19101
19102 wxUSE_TOOLBAR="yes"
1e6feb95 19103 USES_CONTROLS=1
360d6699
VZ
19104fi
19105
10f2d63a 19106if test "$wxUSE_TOOLBAR" = "yes"; then
698dcdb6 19107 cat >> confdefs.h <<\EOF
10f2d63a
VZ
19108#define wxUSE_TOOLBAR 1
19109EOF
19110
1e6feb95 19111 USES_CONTROLS=1
698dcdb6 19112
360d6699
VZ
19113 if test "$wxUSE_TOOLBAR_SIMPLE" != "yes"; then
19114 wxUSE_TOOLBAR_NATIVE="yes"
19115 fi
19116
1e6feb95
VZ
19117 if test "$wxUSE_TOOLBAR_NATIVE" = "yes"; then
19118 cat >> confdefs.h <<\EOF
360d6699
VZ
19119#define wxUSE_TOOLBAR_NATIVE 1
19120EOF
19121
1e6feb95
VZ
19122 USES_CONTROLS=1
19123 fi
19124
19125 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar"
360d6699
VZ
19126fi
19127
10f2d63a
VZ
19128if test "$wxUSE_TOOLTIPS" = "yes"; then
19129 if test "$wxUSE_MOTIF" = 1; then
156b2523 19130 echo "configure: warning: wxTooltip not supported yet under Motif... disabled" 1>&2
10f2d63a
VZ
19131 else
19132 if test "$wxUSE_WINE" = 1; then
156b2523 19133 echo "configure: warning: wxTooltip not supported under WINE... disabled" 1>&2
10f2d63a 19134 else
69d27ff7 19135 if test "$wxUSE_UNIVERSAL" = "yes"; then
156b2523 19136 echo "configure: warning: wxTooltip not supported yet in wxUNIVERSAL... disabled" 1>&2
69d27ff7
MB
19137 else
19138 cat >> confdefs.h <<\EOF
10f2d63a
VZ
19139#define wxUSE_TOOLTIPS 1
19140EOF
19141
69d27ff7 19142 fi
10f2d63a
VZ
19143 fi
19144 fi
19145fi
19146
19147if test "$wxUSE_TREECTRL" = "yes"; then
19148 if test "$wxUSE_IMAGLIST" = "yes"; then
698dcdb6 19149 cat >> confdefs.h <<\EOF
10f2d63a
VZ
19150#define wxUSE_TREECTRL 1
19151EOF
19152
1e6feb95 19153 USES_CONTROLS=1
10f2d63a
VZ
19154 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl"
19155 else
698dcdb6 19156 echo "configure: warning: wxTreeCtrl requires wxImageList and won't be compiled without it" 1>&2
10f2d63a
VZ
19157 fi
19158fi
19159
9f41d601 19160if test "$wxUSE_POPUPWIN" = "yes"; then
6abe4b65 19161 if test "$wxUSE_MAC" = 1; then
156b2523 19162 echo "configure: warning: Popup window not yet supported under Mac OS X... disabled" 1>&2
6abe4b65 19163 else
485cf710
VZ
19164 if test "$wxUSE_MOTIF" = 1; then
19165 echo "configure: warning: wxPopupWindow not yet supported under Motif... disabled" 1>&2
19166 else
19167 cat >> confdefs.h <<\EOF
9f41d601
RR
19168#define wxUSE_POPUPWIN 1
19169EOF
19170
9926e4a4 19171
485cf710
VZ
19172 USES_CONTROLS=1
19173 fi
6abe4b65 19174 fi
9f41d601
RR
19175fi
19176
dd964dcc
VZ
19177if test "$wxUSE_TIPWINDOW" = "yes"; then
19178 cat >> confdefs.h <<\EOF
19179#define wxUSE_TIPWINDOW 1
19180EOF
19181
19182fi
19183
1e6feb95
VZ
19184if test "$USES_CONTROLS" = 1; then
19185 cat >> confdefs.h <<\EOF
19186#define wxUSE_CONTROLS 1
10f2d63a
VZ
19187EOF
19188
10f2d63a
VZ
19189fi
19190
1e6feb95 19191
24176f2c
GD
19192if test "$wxUSE_TREELAYOUT" = "yes"; then
19193 cat >> confdefs.h <<\EOF
19194#define wxUSE_TREELAYOUT 1
19195EOF
19196
19197 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treelay"
19198fi
1e6feb95 19199
24fd6d87
VZ
19200if test "$wxUSE_DRAGIMAGE" = "yes"; then
19201 cat >> confdefs.h <<\EOF
19202#define wxUSE_DRAGIMAGE 1
19203EOF
19204
19205 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag"
19206fi
19207
1e6feb95 19208if test "$wxUSE_MENUS" = "yes"; then
698dcdb6 19209 cat >> confdefs.h <<\EOF
1e6feb95 19210#define wxUSE_MENUS 1
10f2d63a
VZ
19211EOF
19212
1e6feb95 19213 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu"
10f2d63a
VZ
19214fi
19215
1e6feb95
VZ
19216if test "$wxUSE_METAFILE" = "yes"; then
19217 cat >> confdefs.h <<\EOF
19218#define wxUSE_METAFILE 1
10f2d63a
VZ
19219EOF
19220
10f2d63a
VZ
19221fi
19222
1e6feb95
VZ
19223if test "$wxUSE_MIMETYPE" = "yes"; then
19224 cat >> confdefs.h <<\EOF
19225#define wxUSE_MIMETYPE 1
10f2d63a
VZ
19226EOF
19227
10f2d63a
VZ
19228fi
19229
3e44f09d
VZ
19230if test "$wxUSE_SYSTEM_OPTIONS" = "yes"; then
19231 cat >> confdefs.h <<\EOF
19232#define wxUSE_SYSTEM_OPTIONS 1
19233EOF
19234
19235fi
19236
4cdb0ab0 19237if test "$wxUSE_PROTOCOL" = "yes"; then
3954f9ca
VS
19238 if test "$wxUSE_SOCKETS" != "yes"; then
19239 echo "configure: warning: Protocol classes require sockets... disabled" 1>&2
19240 wxUSE_PROTOCOL=no
19241 fi
19242
19243 if test "$wxUSE_PROTOCOL" = "yes"; then
19244 cat >> confdefs.h <<\EOF
4cdb0ab0
VS
19245#define wxUSE_PROTOCOL 1
19246EOF
19247
19248
3954f9ca
VS
19249 if test "$wxUSE_PROTOCOL_HTTP" = "yes"; then
19250 cat >> confdefs.h <<\EOF
4cdb0ab0
VS
19251#define wxUSE_PROTOCOL_HTTP 1
19252EOF
19253
3954f9ca
VS
19254 fi
19255 if test "$wxUSE_PROTOCOL_FTP" = "yes"; then
19256 cat >> confdefs.h <<\EOF
4cdb0ab0
VS
19257#define wxUSE_PROTOCOL_FTP 1
19258EOF
19259
3954f9ca
VS
19260 fi
19261 if test "$wxUSE_PROTOCOL_FILE" = "yes"; then
19262 cat >> confdefs.h <<\EOF
19263#define wxUSE_PROTOCOL_FILE 1
19264EOF
19265
19266 fi
4cdb0ab0 19267 fi
3954f9ca
VS
19268fi
19269
19270if test "$wxUSE_URL" = "yes"; then
19271 if test "$wxUSE_PROTOCOL" != "yes"; then
19272 echo "configure: warning: wxURL class requires wxProtocol... disabled" 1>&2
19273 wxUSE_URL=no
19274 fi
19275 if test "$wxUSE_URL" = "yes"; then
4cdb0ab0 19276 cat >> confdefs.h <<\EOF
3954f9ca 19277#define wxUSE_URL 1
4cdb0ab0
VS
19278EOF
19279
19280 fi
19281fi
19282
10f2d63a 19283if test "$wxUSE_MINIFRAME" = "yes"; then
698dcdb6 19284 cat >> confdefs.h <<\EOF
10f2d63a
VZ
19285#define wxUSE_MINIFRAME 1
19286EOF
19287
19288 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram"
19289fi
19290
19291if test "$wxUSE_HTML" = "yes"; then
698dcdb6 19292 cat >> confdefs.h <<\EOF
10f2d63a
VZ
19293#define wxUSE_HTML 1
19294EOF
19295
19296 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html"
10f2d63a
VZ
19297fi
19298
19299if test "$wxUSE_VALIDATORS" = "yes"; then
698dcdb6 19300 cat >> confdefs.h <<\EOF
1e487827
VS
19301#define wxUSE_VALIDATORS 1
19302EOF
703e0a69 19303
698dcdb6
VZ
19304 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate"
19305fi
19306
edae8572
VZ
19307if test "$wxUSE_PALETTE" = "yes" ; then
19308 cat >> confdefs.h <<\EOF
19309#define wxUSE_PALETTE 1
19310EOF
19311
19312fi
19313
698dcdb6
VZ
19314if test "$wxUSE_IMAGE" = "yes" ; then
19315 cat >> confdefs.h <<\EOF
19316#define wxUSE_IMAGE 1
19317EOF
19318
19319fi
19320
19321if test "$wxUSE_GIF" = "yes" ; then
19322 cat >> confdefs.h <<\EOF
19323#define wxUSE_GIF 1
19324EOF
19325
19326fi
19327
19328if test "$wxUSE_PCX" = "yes" ; then
19329 cat >> confdefs.h <<\EOF
19330#define wxUSE_PCX 1
19331EOF
19332
19333fi
19334
19335if test "$wxUSE_PNM" = "yes" ; then
19336 cat >> confdefs.h <<\EOF
19337#define wxUSE_PNM 1
19338EOF
19339
19340fi
19341
19342if test "$wxUSE_XPM" = "yes" ; then
19343 cat >> confdefs.h <<\EOF
19344#define wxUSE_XPM 1
19345EOF
19346
19347fi
19348
658974ae
VS
19349if test "$wxUSE_ICO_CUR" = "yes" ; then
19350 cat >> confdefs.h <<\EOF
19351#define wxUSE_ICO_CUR 1
19352EOF
19353
19354fi
19355
a72a4bfa
VS
19356if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_MSLU" = "yes" ; then
19357 LIBS=" -lunicows $LIBS"
19358fi
19359
698dcdb6 19360
1e6feb95
VZ
19361if test "$wxUSE_CHOICEDLG" = "yes"; then
19362 cat >> confdefs.h <<\EOF
19363#define wxUSE_CHOICEDLG 1
19364EOF
19365
19366fi
19367
19368if test "$wxUSE_COLOURDLG" = "yes"; then
19369 cat >> confdefs.h <<\EOF
19370#define wxUSE_COLOURDLG 1
19371EOF
19372
19373fi
19374
19375if test "$wxUSE_FILEDLG" = "yes"; then
19376 cat >> confdefs.h <<\EOF
19377#define wxUSE_FILEDLG 1
19378EOF
19379
19380fi
19381
8db37e06
VZ
19382if test "$wxUSE_FINDREPLDLG" = "yes"; then
19383 cat >> confdefs.h <<\EOF
19384#define wxUSE_FINDREPLDLG 1
19385EOF
19386
19387fi
19388
1e6feb95
VZ
19389if test "$wxUSE_FONTDLG" = "yes"; then
19390 cat >> confdefs.h <<\EOF
19391#define wxUSE_FONTDLG 1
19392EOF
19393
19394fi
19395
19396if test "$wxUSE_DIRDLG" = "yes"; then
19397 if test "$wxUSE_CONSTRAINTS" != "yes"; then
19398 echo "configure: warning: wxDirDialog requires constraints so it won't be compiled without them" 1>&2
19399 else
19400 if test "$wxUSE_TREECTRL" != "yes"; then
19401 echo "configure: warning: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" 1>&2
19402 else
19403 cat >> confdefs.h <<\EOF
19404#define wxUSE_DIRDLG 1
19405EOF
19406
19407 fi
19408 fi
19409fi
19410
19411if test "$wxUSE_MSGDLG" = "yes"; then
19412 cat >> confdefs.h <<\EOF
19413#define wxUSE_MSGDLG 1
19414EOF
19415
19416fi
19417
19418if test "$wxUSE_NUMBERDLG" = "yes"; then
19419 cat >> confdefs.h <<\EOF
19420#define wxUSE_NUMBERDLG 1
19421EOF
19422
19423fi
19424
19425if test "$wxUSE_PROGRESSDLG" = "yes"; then
19426 if test "$wxUSE_CONSTRAINTS" != "yes"; then
19427 echo "configure: warning: wxProgressDialog requires constraints so it won't be compiled without them" 1>&2
19428 else
19429 cat >> confdefs.h <<\EOF
19430#define wxUSE_PROGRESSDLG 1
19431EOF
19432
19433 fi
19434fi
19435
cbca9943
VZ
19436if test "$wxUSE_SPLASH" = "yes"; then
19437 cat >> confdefs.h <<\EOF
19438#define wxUSE_SPLASH 1
19439EOF
19440
19441fi
19442
1e6feb95
VZ
19443if test "$wxUSE_STARTUP_TIPS" = "yes"; then
19444 if test "$wxUSE_CONSTRAINTS" != "yes"; then
19445 echo "configure: warning: Startup tips requires constraints and won't be compiled without them" 1>&2
19446 else
19447 cat >> confdefs.h <<\EOF
19448#define wxUSE_STARTUP_TIPS 1
19449EOF
19450
19451 fi
19452fi
19453
19454if test "$wxUSE_TEXTDLG" = "yes"; then
19455 cat >> confdefs.h <<\EOF
19456#define wxUSE_TEXTDLG 1
19457EOF
19458
19459fi
19460
b1f5d087
VZ
19461if test "$wxUSE_WIZARDDLG" = "yes"; then
19462 cat >> confdefs.h <<\EOF
19463#define wxUSE_WIZARDDLG 1
19464EOF
19465
19466 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wizard"
19467fi
19468
1e6feb95 19469
698dcdb6
VZ
19470if test "$cross_compiling" = "yes"; then
19471 OSINFO="\"$host\""
19472else
19473 OSINFO=`uname -s -r -m`
19474 OSINFO="\"$OSINFO\""
19475fi
19476
19477cat >> confdefs.h <<EOF
19478#define WXWIN_OS_DESCRIPTION $OSINFO
19479EOF
19480
19481
19482
06dda230
VZ
19483if test "x$prefix" != "xNONE"; then
19484 wxPREFIX=$prefix
19485else
19486 wxPREFIX=$ac_default_prefix
19487fi
19488
7e67ed0d 19489cat >> confdefs.h <<EOF
06dda230 19490#define wxINSTALL_PREFIX "$wxPREFIX"
7e67ed0d
VZ
19491EOF
19492
19493
19494
698dcdb6 19495
3a922bb4 19496
f11bdd03 19497if test "$wxUSE_MAC" = 1 ; then
3d63bc3a 19498 LDFLAGS="$LDFLAGS -framework Carbon -framework System"
698dcdb6 19499fi
3a922bb4 19500
3d63bc3a
RL
19501
19502LIBS="$ZLIB_LINK$POSIX4_LINK$INET_LINK$WCHAR_LINK$THREADS_LINK$DL_LINK -lm$LIBS"
19503
698dcdb6 19504if test "$wxUSE_GUI" = "yes"; then
3d63bc3a
RL
19505
19506 LIBS=" $GUI_TK_LIBRARY$PNG_LINK$JPEG_LINK$TIFF_LINK$FREETYPE_LINK$LIBS"
3a922bb4
RL
19507
19508
19509 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS controls dialogs \
19510 drawing dynamic erase event exec font image \
19511 minimal richedit rotate widgets"
19512
3a922bb4
RL
19513 CPPFLAGS="$CPPFLAGS \$(EXTRADEFS) \$(APPEXTRADEFS)"
19514else
19515 SAMPLES_SUBDIRS="console"
698dcdb6
VZ
19516fi
19517
698dcdb6 19518
d714471b 19519INCLUDES="-I\${top_builddir}/lib/wx/include/${TOOLCHAIN_NAME} -I\${top_srcdir}/include \
3e44f09d
VZ
19520$REGEX_INCLUDE $ZLIB_INCLUDE $PNG_INCLUDE $JPEG_INCLUDE $TIFF_INCLUDE \
19521$FREETYPE_INCLUDE $TOOLKIT_INCLUDE"
698dcdb6 19522
63e7762e 19523if test "$wxUSE_GTK" = 1; then
3d63bc3a 19524 WXCONFIG_INCLUDE=
698dcdb6
VZ
19525else
19526 WXCONFIG_INCLUDE="$TOOLKIT_INCLUDE"
19527fi
19528
19529if test "$GXX" = yes ; then
19530 CXXWARNINGS="-Wall"
88e30f2b
RL
19531
19532 if test "$wxUSE_NO_DEPS" = "no" ; then
19533 CFLAGS="-MMD $CFLAGS"
19534 CXXFLAGS="-MMD $CXXFLAGS"
19535 fi
19536fi
19537
1725144d 19538EXTRA_CFLAGS="$WXDEBUG $WXODBCFLAG $PROFILE $OPTIMISE $INCLUDES"
698dcdb6
VZ
19539
19540CFLAGS=`echo $CFLAGS $EXTRA_CFLAGS $CXXWARNINGS | sed 's/ \\+/ /g'`
19541CXXFLAGS=`echo $CXXFLAGS $EXTRA_CFLAGS $CXXWARNINGS | sed 's/ \+/ /g'`
19542
3d63bc3a 19543LDFLAGS="$LDFLAGS$PROFILE"
698dcdb6 19544
698dcdb6
VZ
19545SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`"
19546
19547
19548
19549
19550
19551
19552
19553
19554
19555
19556
19557
19558
19559
19560
19561
19562
19563
19564
19565
19566
19567
19568
19569
19570
19571
19572
19573
19574
19575
19576
19577
19578
19579
19580
19581
19582
19583
19584
19585
19586
19587
19588
19589
19590
19591
19592
19593
19594
19595
19596
19597
19598
19599
19600
19601
19602
19603
19604
19605
19606
19607
19608
19609
19610
19611
19612
32832908 19613
2f51a9ec
GD
19614
19615
19616
19617
f6bcfd97 19618
dad6c0ea 19619
caa2c79b 19620
3711412e 19621
1e6feb95
VZ
19622
19623
885d4bf5
VS
19624
19625
19626
19627
62d0491b 19628
10f2d63a
VZ
19629
19630
698dcdb6 19631echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
658974ae 19632echo "configure:19633: checking whether ${MAKE-make} sets \${MAKE}" >&5
698dcdb6
VZ
19633set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
19634if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
19635 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 19636else
698dcdb6 19637 cat > conftestmake <<\EOF
10f2d63a
VZ
19638all:
19639 @echo 'ac_maketemp="${MAKE}"'
19640EOF
19641# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
698dcdb6 19642eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
10f2d63a
VZ
19643if test -n "$ac_maketemp"; then
19644 eval ac_cv_prog_make_${ac_make}_set=yes
19645else
19646 eval ac_cv_prog_make_${ac_make}_set=no
19647fi
698dcdb6 19648rm -f conftestmake
10f2d63a
VZ
19649fi
19650if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
698dcdb6 19651 echo "$ac_t""yes" 1>&6
10f2d63a
VZ
19652 SET_MAKE=
19653else
698dcdb6 19654 echo "$ac_t""no" 1>&6
10f2d63a
VZ
19655 SET_MAKE="MAKE=${MAKE-make}"
19656fi
19657
698dcdb6 19658
3a922bb4
RL
19659if test -f lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h; then
19660 mv -f lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h setup.h
00cf1208 19661fi
665bbe97 19662
698dcdb6 19663
10f2d63a 19664
2224580a 19665if test "$wxUSE_GUI" = "yes"; then
ec90f5e5 19666 wx_cv_path_samplesubdirs=$SAMPLES_SUBDIRS
e8482f24
GL
19667 wx_cv_path_ifs=$PATH_IFS
19668 wx_cv_program_ext=$PROGRAM_EXT
19669 wx_cv_target_library=$WX_TARGET_LIBRARY
7b6058cd 19670 wx_cv_target_library_gl=$WX_TARGET_LIBRARY_GL
3711412e 19671 wx_cv_target_libtype=$WX_TARGET_LIBRARY_TYPE
93a20a27 19672 export wx_cv_path_samplesubdirs wx_cv_path_ifs wx_cv_program_ext \
7b6058cd 19673 wx_cv_target_library wx_cv_target_library_gl wx_cv_target_libtype
698dcdb6 19674 subdirs="demos samples utils contrib"
2224580a
VZ
19675
19676fi
10f2d63a 19677
698dcdb6
VZ
19678trap '' 1 2 15
19679cat > confcache <<\EOF
10f2d63a
VZ
19680# This file is a shell script that caches the results of configure
19681# tests run on this system so they can be shared between configure
698dcdb6
VZ
19682# scripts and configure runs. It is not useful on other systems.
19683# If it contains results you don't want to keep, you may remove or edit it.
10f2d63a 19684#
698dcdb6
VZ
19685# By default, configure uses ./config.cache as the cache file,
19686# creating it if it does not exist already. You can give configure
19687# the --cache-file=FILE option to use a different cache file; that is
19688# what configure does when it calls configure scripts in
19689# subdirectories, so they share the cache.
19690# Giving --cache-file=/dev/null disables caching, for debugging configure.
19691# config.status only pays attention to the cache file if you give it the
19692# --recheck option to rerun configure.
10f2d63a 19693#
698dcdb6 19694EOF
10f2d63a
VZ
19695# The following way of writing the cache mishandles newlines in values,
19696# but we know of no workaround that is simple, portable, and efficient.
19697# So, don't put newlines in cache variables' values.
19698# Ultrix sh set writes to stderr and can't be redirected directly,
19699# and sets the high bit in the cache file unless we assign to the vars.
698dcdb6
VZ
19700(set) 2>&1 |
19701 case `(ac_space=' '; set | grep ac_space) 2>&1` in
19702 *ac_space=\ *)
19703 # `set' does not quote correctly, so add quotes (double-quote substitution
19704 # turns \\\\ into \\, and sed turns \\ into \).
19705 sed -n \
19706 -e "s/'/'\\\\''/g" \
19707 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
19708 ;;
19709 *)
19710 # `set' quotes correctly as required by POSIX, so do not add quotes.
19711 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
19712 ;;
19713 esac >> confcache
19714if cmp -s $cache_file confcache; then
19715 :
19716else
10f2d63a 19717 if test -w $cache_file; then
698dcdb6
VZ
19718 echo "updating cache $cache_file"
19719 cat confcache > $cache_file
10f2d63a
VZ
19720 else
19721 echo "not updating unwritable cache $cache_file"
19722 fi
19723fi
19724rm -f confcache
19725
698dcdb6
VZ
19726trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
19727
10f2d63a
VZ
19728test "x$prefix" = xNONE && prefix=$ac_default_prefix
19729# Let make expand exec_prefix.
19730test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19731
698dcdb6
VZ
19732# Any assignment to VPATH causes Sun make to only execute
19733# the first set of double-colon rules, so remove it if not needed.
19734# If there is a colon in the path, we need to keep it.
10f2d63a 19735if test "x$srcdir" = x.; then
698dcdb6 19736 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
10f2d63a
VZ
19737fi
19738
698dcdb6
VZ
19739trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
19740
10f2d63a
VZ
19741DEFS=-DHAVE_CONFIG_H
19742
698dcdb6 19743# Without the "./", some shells look in PATH for config.status.
10f2d63a 19744: ${CONFIG_STATUS=./config.status}
698dcdb6
VZ
19745
19746echo creating $CONFIG_STATUS
19747rm -f $CONFIG_STATUS
19748cat > $CONFIG_STATUS <<EOF
19749#! /bin/sh
10f2d63a
VZ
19750# Generated automatically by configure.
19751# Run this file to recreate the current configuration.
698dcdb6
VZ
19752# This directory was configured as follows,
19753# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19754#
19755# $0 $ac_configure_args
19756#
10f2d63a 19757# Compiler output produced by configure, useful for debugging
698dcdb6 19758# configure, is in ./config.log if it exists.
1e487827 19759
698dcdb6
VZ
19760ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
19761for ac_option
10f2d63a 19762do
698dcdb6 19763 case "\$ac_option" in
10f2d63a 19764 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
698dcdb6
VZ
19765 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
19766 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
19767 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
19768 echo "$CONFIG_STATUS generated by autoconf version 2.13"
19769 exit 0 ;;
19770 -help | --help | --hel | --he | --h)
19771 echo "\$ac_cs_usage"; exit 0 ;;
19772 *) echo "\$ac_cs_usage"; exit 1 ;;
10f2d63a
VZ
19773 esac
19774done
19775
698dcdb6
VZ
19776ac_given_srcdir=$srcdir
19777ac_given_INSTALL="$INSTALL"
703e0a69 19778
698dcdb6
VZ
19779trap 'rm -fr `echo "
19780 wx-config
19781 src/make.env
19782 src/makeprog.env
19783 src/makelib.env
19784 Makefile
19785 setup.h:setup.h.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
1e487827 19786EOF
698dcdb6 19787cat >> $CONFIG_STATUS <<EOF
1e487827 19788
698dcdb6
VZ
19789# Protect against being on the right side of a sed subst in config.status.
19790sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
19791 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
19792$ac_vpsub
19793$extrasub
19794s%@SHELL@%$SHELL%g
19795s%@CFLAGS@%$CFLAGS%g
19796s%@CPPFLAGS@%$CPPFLAGS%g
19797s%@CXXFLAGS@%$CXXFLAGS%g
19798s%@FFLAGS@%$FFLAGS%g
19799s%@DEFS@%$DEFS%g
19800s%@LDFLAGS@%$LDFLAGS%g
19801s%@LIBS@%$LIBS%g
19802s%@exec_prefix@%$exec_prefix%g
19803s%@prefix@%$prefix%g
19804s%@program_transform_name@%$program_transform_name%g
19805s%@bindir@%$bindir%g
19806s%@sbindir@%$sbindir%g
19807s%@libexecdir@%$libexecdir%g
19808s%@datadir@%$datadir%g
19809s%@sysconfdir@%$sysconfdir%g
19810s%@sharedstatedir@%$sharedstatedir%g
19811s%@localstatedir@%$localstatedir%g
19812s%@libdir@%$libdir%g
19813s%@includedir@%$includedir%g
19814s%@oldincludedir@%$oldincludedir%g
19815s%@infodir@%$infodir%g
19816s%@mandir@%$mandir%g
19817s%@host@%$host%g
19818s%@host_alias@%$host_alias%g
19819s%@host_cpu@%$host_cpu%g
19820s%@host_vendor@%$host_vendor%g
19821s%@host_os@%$host_os%g
19822s%@target@%$target%g
19823s%@target_alias@%$target_alias%g
19824s%@target_cpu@%$target_cpu%g
19825s%@target_vendor@%$target_vendor%g
19826s%@target_os@%$target_os%g
19827s%@build@%$build%g
19828s%@build_alias@%$build_alias%g
19829s%@build_cpu@%$build_cpu%g
19830s%@build_vendor@%$build_vendor%g
19831s%@build_os@%$build_os%g
19832s%@CC@%$CC%g
19833s%@CPP@%$CPP%g
19834s%@CXX@%$CXX%g
698dcdb6
VZ
19835s%@RANLIB@%$RANLIB%g
19836s%@AR@%$AR%g
19837s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
d6853540 19838s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
6054113a 19839s%@INSTALL_DATA@%$INSTALL_DATA%g
698dcdb6
VZ
19840s%@STRIP@%$STRIP%g
19841s%@YACC@%$YACC%g
19842s%@LEX@%$LEX%g
19843s%@LEXLIB@%$LEXLIB%g
19844s%@LN_S@%$LN_S%g
19845s%@GTK_CONFIG_2_0@%$GTK_CONFIG_2_0%g
698dcdb6
VZ
19846s%@GTK_CFLAGS@%$GTK_CFLAGS%g
19847s%@GTK_LIBS@%$GTK_LIBS%g
8168de4c 19848s%@GTK_CONFIG@%$GTK_CONFIG%g
698dcdb6
VZ
19849s%@X_CFLAGS@%$X_CFLAGS%g
19850s%@X_PRE_LIBS@%$X_PRE_LIBS%g
19851s%@X_LIBS@%$X_LIBS%g
19852s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
3a922bb4 19853s%@RESCOMP@%$RESCOMP%g
698dcdb6 19854s%@DEREZ@%$DEREZ%g
3a922bb4 19855s%@CXXCPP@%$CXXCPP%g
698dcdb6
VZ
19856s%@LEX_STEM@%$LEX_STEM%g
19857s%@PATH_IFS@%$PATH_IFS%g
19858s%@WX_MAJOR_VERSION_NUMBER@%$WX_MAJOR_VERSION_NUMBER%g
19859s%@WX_MINOR_VERSION_NUMBER@%$WX_MINOR_VERSION_NUMBER%g
19860s%@WX_RELEASE_NUMBER@%$WX_RELEASE_NUMBER%g
698dcdb6
VZ
19861s%@WX_LIBRARY_NAME_STATIC@%$WX_LIBRARY_NAME_STATIC%g
19862s%@WX_LIBRARY_NAME_SHARED@%$WX_LIBRARY_NAME_SHARED%g
77e13408 19863s%@WX_LIBRARY_IMPORTLIB@%$WX_LIBRARY_IMPORTLIB%g
698dcdb6
VZ
19864s%@WX_TARGET_LIBRARY@%$WX_TARGET_LIBRARY%g
19865s%@WX_LIBRARY_LINK1@%$WX_LIBRARY_LINK1%g
19866s%@WX_LIBRARY_LINK2@%$WX_LIBRARY_LINK2%g
698dcdb6 19867s%@PROGRAM_EXT@%$PROGRAM_EXT%g
698dcdb6
VZ
19868s%@WX_LIBRARY_NAME_STATIC_GL@%$WX_LIBRARY_NAME_STATIC_GL%g
19869s%@WX_LIBRARY_NAME_SHARED_GL@%$WX_LIBRARY_NAME_SHARED_GL%g
698dcdb6
VZ
19870s%@WX_TARGET_LIBRARY_GL@%$WX_TARGET_LIBRARY_GL%g
19871s%@WX_LIBRARY_LINK1_GL@%$WX_LIBRARY_LINK1_GL%g
19872s%@WX_LIBRARY_LINK2_GL@%$WX_LIBRARY_LINK2_GL%g
698dcdb6
VZ
19873s%@WX_ALL@%$WX_ALL%g
19874s%@WX_ALL_INSTALLED@%$WX_ALL_INSTALLED%g
19875s%@SHARED_LD@%$SHARED_LD%g
19876s%@PIC_FLAG@%$PIC_FLAG%g
698dcdb6
VZ
19877s%@CODE_GEN_FLAGS@%$CODE_GEN_FLAGS%g
19878s%@CODE_GEN_FLAGS_CXX@%$CODE_GEN_FLAGS_CXX%g
3a922bb4
RL
19879s%@SONAME_FLAGS@%$SONAME_FLAGS%g
19880s%@SONAME_FLAGS_GL@%$SONAME_FLAGS_GL%g
698dcdb6
VZ
19881s%@WX_TARGET_LIBRARY_SONAME@%$WX_TARGET_LIBRARY_SONAME%g
19882s%@WX_TARGET_LIBRARY_TYPE@%$WX_TARGET_LIBRARY_TYPE%g
19883s%@WXDEBUG_DEFINE@%$WXDEBUG_DEFINE%g
19884s%@USE_GUI@%$USE_GUI%g
19885s%@AFMINSTALL@%$AFMINSTALL%g
19886s%@TOOLKIT@%$TOOLKIT%g
698dcdb6 19887s%@TOOLKIT_DIR@%$TOOLKIT_DIR%g
1e6feb95 19888s%@TOOLKIT_VPATH@%$TOOLKIT_VPATH%g
3a922bb4
RL
19889s%@TOOLCHAIN_NAME@%$TOOLCHAIN_NAME%g
19890s%@TOOLCHAIN_DEFS@%$TOOLCHAIN_DEFS%g
00c81359 19891s%@TOOLCHAIN_DLL_DEFS@%$TOOLCHAIN_DLL_DEFS%g
3a922bb4
RL
19892s%@cross_compiling@%$cross_compiling%g
19893s%@WXCONFIG_LIBS@%$WXCONFIG_LIBS%g
19894s%@WXCONFIG_LIBS_GL@%$WXCONFIG_LIBS_GL%g
885d4bf5
VS
19895s%@WXCONFIG_LIBS_STATIC@%$WXCONFIG_LIBS_STATIC%g
19896s%@WXCONFIG_LIBS_STATIC_GL@%$WXCONFIG_LIBS_STATIC_GL%g
698dcdb6
VZ
19897s%@WXCONFIG_INCLUDE@%$WXCONFIG_INCLUDE%g
19898s%@ALL_OBJECTS@%$ALL_OBJECTS%g
698dcdb6
VZ
19899s%@GUIDIST@%$GUIDIST%g
19900s%@PORT_FILES@%$PORT_FILES%g
19901s%@DISTDIR@%$DISTDIR%g
698dcdb6 19902s%@SAMPLES_SUBDIRS@%$SAMPLES_SUBDIRS%g
62d0491b 19903s%@LDFLAGS_GL@%$LDFLAGS_GL%g
698dcdb6 19904s%@OPENGL_LIBS@%$OPENGL_LIBS%g
3d63bc3a 19905s%@DMALLOC_LIBS@%$DMALLOC_LIBS%g
698dcdb6 19906s%@EXTRADEFS@%$EXTRADEFS%g
698dcdb6 19907s%@RESFLAGS@%$RESFLAGS%g
3a922bb4 19908s%@RESPROGRAMOBJ@%$RESPROGRAMOBJ%g
d08b457b 19909s%@WX_RESOURCES_MACOSX@%$WX_RESOURCES_MACOSX%g
e23081de 19910s%@WX_RESOURCES_MACOSX_COMPILED@%$WX_RESOURCES_MACOSX_COMPILED%g
698dcdb6
VZ
19911s%@LIBWXMACRES@%$LIBWXMACRES%g
19912s%@LIBWXMACRESCOMP@%$LIBWXMACRESCOMP%g
2baaf735 19913s%@LIBWXMACRESWXCONFIG@%$LIBWXMACRESWXCONFIG%g
698dcdb6
VZ
19914s%@DLLTOOL@%$DLLTOOL%g
19915s%@AS@%$AS%g
19916s%@NM@%$NM%g
19917s%@LD@%$LD%g
19918s%@MAKEINFO@%$MAKEINFO%g
885d4bf5 19919s%@INSTALL_LIBRARY@%$INSTALL_LIBRARY%g
698dcdb6
VZ
19920s%@SET_MAKE@%$SET_MAKE%g
19921s%@subdirs@%$subdirs%g
1e487827 19922
1e487827 19923CEOF
1e487827
VS
19924EOF
19925
698dcdb6
VZ
19926cat >> $CONFIG_STATUS <<\EOF
19927
19928# Split the substitutions into bite-sized pieces for seds with
19929# small command number limits, like on Digital OSF/1 and HP-UX.
19930ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
19931ac_file=1 # Number of current file.
19932ac_beg=1 # First line for current file.
19933ac_end=$ac_max_sed_cmds # Line after last line for current file.
19934ac_more_lines=:
19935ac_sed_cmds=""
19936while $ac_more_lines; do
19937 if test $ac_beg -gt 1; then
19938 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
19939 else
19940 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
19941 fi
19942 if test ! -s conftest.s$ac_file; then
19943 ac_more_lines=false
19944 rm -f conftest.s$ac_file
19945 else
19946 if test -z "$ac_sed_cmds"; then
19947 ac_sed_cmds="sed -f conftest.s$ac_file"
10f2d63a 19948 else
698dcdb6 19949 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
10f2d63a 19950 fi
698dcdb6
VZ
19951 ac_file=`expr $ac_file + 1`
19952 ac_beg=$ac_end
19953 ac_end=`expr $ac_end + $ac_max_sed_cmds`
10f2d63a 19954 fi
698dcdb6
VZ
19955done
19956if test -z "$ac_sed_cmds"; then
19957 ac_sed_cmds=cat
19958fi
19959EOF
10f2d63a 19960
698dcdb6
VZ
19961cat >> $CONFIG_STATUS <<EOF
19962
19963CONFIG_FILES=\${CONFIG_FILES-"wx-config
19964 src/make.env
19965 src/makeprog.env
19966 src/makelib.env
19967 Makefile
19968 "}
10f2d63a 19969EOF
698dcdb6
VZ
19970cat >> $CONFIG_STATUS <<\EOF
19971for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
10f2d63a 19972 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
698dcdb6
VZ
19973 case "$ac_file" in
19974 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
19975 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
19976 *) ac_file_in="${ac_file}.in" ;;
10f2d63a
VZ
19977 esac
19978
698dcdb6 19979 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
1e487827 19980
698dcdb6
VZ
19981 # Remove last slash and all that follows it. Not all systems have dirname.
19982 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
19983 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
19984 # The file is in a subdirectory.
19985 test ! -d "$ac_dir" && mkdir "$ac_dir"
19986 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
10f2d63a 19987 # A "../" for each directory in $ac_dir_suffix.
698dcdb6 19988 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
10f2d63a
VZ
19989 else
19990 ac_dir_suffix= ac_dots=
19991 fi
19992
698dcdb6
VZ
19993 case "$ac_given_srcdir" in
19994 .) srcdir=.
19995 if test -z "$ac_dots"; then top_srcdir=.
19996 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
19997 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
10f2d63a 19998 *) # Relative path.
698dcdb6
VZ
19999 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
20000 top_srcdir="$ac_dots$ac_given_srcdir" ;;
10f2d63a
VZ
20001 esac
20002
698dcdb6
VZ
20003 case "$ac_given_INSTALL" in
20004 [/$]*) INSTALL="$ac_given_INSTALL" ;;
20005 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
10f2d63a
VZ
20006 esac
20007
698dcdb6
VZ
20008 echo creating "$ac_file"
20009 rm -f "$ac_file"
20010 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
20011 case "$ac_file" in
20012 *Makefile*) ac_comsub="1i\\
20013# $configure_input" ;;
20014 *) ac_comsub= ;;
20015 esac
10f2d63a 20016
698dcdb6
VZ
20017 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
20018 sed -e "$ac_comsub
20019s%@configure_input@%$configure_input%g
20020s%@srcdir@%$srcdir%g
20021s%@top_srcdir@%$top_srcdir%g
20022s%@INSTALL@%$INSTALL%g
20023" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
20024fi; done
20025rm -f conftest.s*
10f2d63a
VZ
20026
20027# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
20028# NAME is the cpp macro being defined and VALUE is the value it is being given.
20029#
20030# ac_d sets the value in "#define NAME VALUE" lines.
698dcdb6
VZ
20031ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
20032ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
20033ac_dC='\3'
20034ac_dD='%g'
20035# ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
20036ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
20037ac_uB='\([ ]\)%\1#\2define\3'
10f2d63a 20038ac_uC=' '
698dcdb6
VZ
20039ac_uD='\4%g'
20040# ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
20041ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
20042ac_eB='$%\1#\2define\3'
20043ac_eC=' '
20044ac_eD='%g'
10f2d63a 20045
698dcdb6
VZ
20046if test "${CONFIG_HEADERS+set}" != set; then
20047EOF
20048cat >> $CONFIG_STATUS <<EOF
20049 CONFIG_HEADERS="setup.h:setup.h.in"
20050EOF
20051cat >> $CONFIG_STATUS <<\EOF
20052fi
20053for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
10f2d63a 20054 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
698dcdb6
VZ
20055 case "$ac_file" in
20056 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
20057 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
20058 *) ac_file_in="${ac_file}.in" ;;
10f2d63a
VZ
20059 esac
20060
698dcdb6
VZ
20061 echo creating $ac_file
20062
20063 rm -f conftest.frag conftest.in conftest.out
20064 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
20065 cat $ac_file_inputs > conftest.in
20066
20067EOF
20068
20069# Transform confdefs.h into a sed script conftest.vals that substitutes
20070# the proper values into config.h.in to produce config.h. And first:
20071# Protect against being on the right side of a sed subst in config.status.
20072# Protect against being in an unquoted here document in config.status.
20073rm -f conftest.vals
20074cat > conftest.hdr <<\EOF
20075s/[\\&%]/\\&/g
20076s%[\\$`]%\\&%g
20077s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
20078s%ac_d%ac_u%gp
20079s%ac_u%ac_e%gp
20080EOF
20081sed -n -f conftest.hdr confdefs.h > conftest.vals
20082rm -f conftest.hdr
10f2d63a
VZ
20083
20084# This sed command replaces #undef with comments. This is necessary, for
20085# example, in the case of _POSIX_SOURCE, which is predefined and required
20086# on some systems where configure will not decide to define it.
698dcdb6
VZ
20087cat >> conftest.vals <<\EOF
20088s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
10f2d63a
VZ
20089EOF
20090
698dcdb6
VZ
20091# Break up conftest.vals because some shells have a limit on
20092# the size of here documents, and old seds have small limits too.
10f2d63a
VZ
20093
20094rm -f conftest.tail
698dcdb6 20095while :
10f2d63a 20096do
698dcdb6
VZ
20097 ac_lines=`grep -c . conftest.vals`
20098 # grep -c gives empty output for an empty file on some AIX systems.
20099 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
20100 # Write a limited-size here document to conftest.frag.
20101 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
20102 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
10f2d63a 20103 echo 'CEOF
698dcdb6
VZ
20104 sed -f conftest.frag conftest.in > conftest.out
20105 rm -f conftest.in
20106 mv conftest.out conftest.in
20107' >> $CONFIG_STATUS
20108 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
20109 rm -f conftest.vals
20110 mv conftest.tail conftest.vals
10f2d63a 20111done
698dcdb6
VZ
20112rm -f conftest.vals
20113
20114cat >> $CONFIG_STATUS <<\EOF
20115 rm -f conftest.frag conftest.h
20116 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
20117 cat conftest.in >> conftest.h
20118 rm -f conftest.in
20119 if cmp -s $ac_file conftest.h 2>/dev/null; then
20120 echo "$ac_file is unchanged"
20121 rm -f conftest.h
10f2d63a 20122 else
698dcdb6
VZ
20123 # Remove last slash and all that follows it. Not all systems have dirname.
20124 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
10f2d63a 20125 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
698dcdb6
VZ
20126 # The file is in a subdirectory.
20127 test ! -d "$ac_dir" && mkdir "$ac_dir"
10f2d63a 20128 fi
698dcdb6
VZ
20129 rm -f $ac_file
20130 mv conftest.h $ac_file
10f2d63a 20131 fi
698dcdb6
VZ
20132fi; done
20133
10f2d63a 20134EOF
698dcdb6 20135cat >> $CONFIG_STATUS <<EOF
10f2d63a 20136
3a922bb4 20137 TOOLCHAIN_NAME="${TOOLCHAIN_NAME}"
698dcdb6
VZ
20138 LN_S="${LN_S}"
20139
20140
20141EOF
20142cat >> $CONFIG_STATUS <<\EOF
10f2d63a 20143
652d930d 20144 if test ! -h wx-config; then
991a5759 20145 chmod +x wx-config
3a922bb4
RL
20146 mv wx-config wx${TOOLCHAIN_NAME}-config
20147 ${LN_S} wx${TOOLCHAIN_NAME}-config wx-config
991a5759 20148 fi
665bbe97 20149
00cf1208
RR
20150 if test ! -d lib; then
20151 mkdir lib
20152 fi
20153 if test ! -d lib/wx; then
20154 mkdir lib/wx
20155 fi
20156 if test ! -d lib/wx/include; then
20157 mkdir lib/wx/include
20158 fi
3a922bb4
RL
20159 if test ! -d lib/wx/include/${TOOLCHAIN_NAME}; then
20160 mkdir lib/wx/include/${TOOLCHAIN_NAME}
00cf1208 20161 fi
3a922bb4
RL
20162 if test ! -d lib/wx/include/${TOOLCHAIN_NAME}/wx; then
20163 mkdir lib/wx/include/${TOOLCHAIN_NAME}/wx
00cf1208
RR
20164 fi
20165 if test -f setup.h; then
3a922bb4 20166 mv -f setup.h lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h
00cf1208 20167 fi
698dcdb6
VZ
20168
20169exit 0
10f2d63a
VZ
20170EOF
20171chmod +x $CONFIG_STATUS
698dcdb6
VZ
20172rm -fr confdefs* $ac_clean_files
20173test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
10f2d63a 20174
2224580a
VZ
20175if test "$no_recursion" != yes; then
20176
20177 # Remove --cache-file and --srcdir arguments so they do not pile up.
20178 ac_sub_configure_args=
20179 ac_prev=
20180 for ac_arg in $ac_configure_args; do
20181 if test -n "$ac_prev"; then
20182 ac_prev=
20183 continue
20184 fi
698dcdb6 20185 case "$ac_arg" in
2224580a
VZ
20186 -cache-file | --cache-file | --cache-fil | --cache-fi \
20187 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
20188 ac_prev=cache_file ;;
20189 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
698dcdb6 20190 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
2224580a
VZ
20191 ;;
20192 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
20193 ac_prev=srcdir ;;
20194 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
20195 ;;
20196 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
20197 esac
20198 done
20199
698dcdb6 20200 for ac_config_dir in demos samples utils contrib; do
2224580a
VZ
20201
20202 # Do not complain, so a configure script can configure whichever
20203 # parts of a large source tree are present.
698dcdb6
VZ
20204 if test ! -d $srcdir/$ac_config_dir; then
20205 continue
20206 fi
20207
20208 echo configuring in $ac_config_dir
2224580a 20209
698dcdb6 20210 case "$srcdir" in
2224580a
VZ
20211 .) ;;
20212 *)
698dcdb6
VZ
20213 if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
20214 else
20215 { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
20216 fi
20217 ;;
2224580a
VZ
20218 esac
20219
20220 ac_popdir=`pwd`
698dcdb6 20221 cd $ac_config_dir
2224580a 20222
698dcdb6
VZ
20223 # A "../" for each directory in /$ac_config_dir.
20224 ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
2224580a 20225
698dcdb6 20226 case "$srcdir" in
2224580a
VZ
20227 .) # No --srcdir option. We are building in place.
20228 ac_sub_srcdir=$srcdir ;;
698dcdb6
VZ
20229 /*) # Absolute path.
20230 ac_sub_srcdir=$srcdir/$ac_config_dir ;;
2224580a 20231 *) # Relative path.
698dcdb6 20232 ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
2224580a
VZ
20233 esac
20234
20235 # Check for guested configure; otherwise get Cygnus style configure.
698dcdb6
VZ
20236 if test -f $ac_sub_srcdir/configure; then
20237 ac_sub_configure=$ac_sub_srcdir/configure
2224580a
VZ
20238 elif test -f $ac_sub_srcdir/configure.in; then
20239 ac_sub_configure=$ac_configure
20240 else
698dcdb6 20241 echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
2224580a
VZ
20242 ac_sub_configure=
20243 fi
20244
20245 # The recursion is here.
20246 if test -n "$ac_sub_configure"; then
698dcdb6 20247
2224580a 20248 # Make the cache file name correct relative to the subdirectory.
698dcdb6
VZ
20249 case "$cache_file" in
20250 /*) ac_sub_cache_file=$cache_file ;;
2224580a 20251 *) # Relative path.
698dcdb6 20252 ac_sub_cache_file="$ac_dots$cache_file" ;;
2224580a 20253 esac
698dcdb6
VZ
20254 case "$ac_given_INSTALL" in
20255 [/$]*) INSTALL="$ac_given_INSTALL" ;;
20256 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
20257 esac
2224580a 20258
698dcdb6 20259 echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
2224580a 20260 # The eval makes quoting arguments work.
698dcdb6
VZ
20261 if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
20262 then :
20263 else
20264 { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }
20265 fi
2224580a
VZ
20266 fi
20267
20268 cd $ac_popdir
20269 done
20270fi
20271
698dcdb6 20272