]> git.saurik.com Git - wxWidgets.git/blame - configure
fixed a harmless buglet in wxSysErrorMsg() under Win32
[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"
1e6feb95 209ac_help="$ac_help
8168de4c 210 --enable-threads use threads"
698dcdb6 211ac_help="$ac_help
8168de4c 212 --enable-docview use document view architecture"
698dcdb6 213ac_help="$ac_help
3379ed37 214 --enable-help use help subsystem"
29fd3c0c
VS
215ac_help="$ac_help
216 --enable-mshtmlhelp use MS HTML Help (win32)"
3379ed37
VZ
217ac_help="$ac_help
218 --enable-html use wxHTML sub-library"
219ac_help="$ac_help
220 --enable-htmlhelp use wxHTML-based help"
698dcdb6 221ac_help="$ac_help
8168de4c 222 --enable-constraints use layout-constraints system"
698dcdb6 223ac_help="$ac_help
8168de4c 224 --enable-printarch use printing architecture"
698dcdb6 225ac_help="$ac_help
8168de4c 226 --enable-mdi use multiple document interface architecture"
698dcdb6 227ac_help="$ac_help
8168de4c 228 --enable-loggui use standard GUI logger"
1e6feb95 229ac_help="$ac_help
8168de4c 230 --enable-logwin use wxLogWindow"
69d27ff7
MB
231ac_help="$ac_help
232 --enable-logdialog use wxLogDialog"
1e6feb95 233ac_help="$ac_help
8168de4c 234 --enable-postscript use wxPostscriptDC device context (default for gtk+)"
698dcdb6 235ac_help="$ac_help
8168de4c 236 --enable-prologio use Prolog IO library"
698dcdb6 237ac_help="$ac_help
8168de4c 238 --enable-resources use wxWindows resources"
698dcdb6 239ac_help="$ac_help
8168de4c 240 --enable-xresources use X resources for save (default for gtk+)"
698dcdb6 241ac_help="$ac_help
8168de4c 242 --enable-clipboard use wxClipboard classes"
698dcdb6 243ac_help="$ac_help
8168de4c 244 --enable-dnd use Drag'n'Drop classes"
698dcdb6 245ac_help="$ac_help
8168de4c 246 --enable-metafile use win32 metafiles"
698dcdb6 247ac_help="$ac_help
24176f2c 248 --enable-treelayout use wxTreeLayout classes"
698dcdb6 249ac_help="$ac_help
8168de4c 250 --enable-controls use all usual controls"
698dcdb6 251ac_help="$ac_help
8168de4c 252 --enable-accel use accelerators"
698dcdb6 253ac_help="$ac_help
8168de4c 254 --enable-button use wxButton class"
698dcdb6 255ac_help="$ac_help
8168de4c 256 --enable-bmpbutton use wxBitmapButton class"
698dcdb6 257ac_help="$ac_help
8168de4c 258 --enable-calendar use wxCalendarCtrl class"
1e6feb95 259ac_help="$ac_help
8168de4c 260 --enable-caret use wxCaret class"
1e6feb95 261ac_help="$ac_help
8168de4c 262 --enable-checkbox use wxCheckBox class"
698dcdb6 263ac_help="$ac_help
8168de4c 264 --enable-checklst use wxCheckListBox (listbox with checkboxes) class"
698dcdb6 265ac_help="$ac_help
8168de4c 266 --enable-choice use wxChoice class"
698dcdb6 267ac_help="$ac_help
8168de4c 268 --enable-combobox use wxComboBox classes"
698dcdb6 269ac_help="$ac_help
8168de4c 270 --enable-gauge use wxGauge class"
698dcdb6 271ac_help="$ac_help
8168de4c 272 --enable-grid use wxGrid class"
698dcdb6 273ac_help="$ac_help
8168de4c 274 --enable-newgrid use new wxGrid class"
698dcdb6 275ac_help="$ac_help
8168de4c 276 --enable-imaglist use wxImageList class"
698dcdb6 277ac_help="$ac_help
8168de4c 278 --enable-listbox use wxListBox class"
698dcdb6 279ac_help="$ac_help
8168de4c 280 --enable-listctrl use wxListCtrl class"
698dcdb6 281ac_help="$ac_help
8168de4c 282 --enable-notebook use wxNotebook class"
24176f2c
GD
283ac_help="$ac_help
284 --enable-propsheet use wxPropertySheet class"
698dcdb6 285ac_help="$ac_help
8168de4c 286 --enable-radiobox use wxRadioBox class"
698dcdb6 287ac_help="$ac_help
8168de4c 288 --enable-radiobtn use wxRadioButton class"
698dcdb6 289ac_help="$ac_help
8168de4c 290 --enable-sash use wxSashWindow class"
698dcdb6 291ac_help="$ac_help
8168de4c 292 --enable-scrollbar use wxScrollBar class and scrollable windows"
698dcdb6 293ac_help="$ac_help
8168de4c 294 --enable-slider use wxSlider class"
698dcdb6 295ac_help="$ac_help
8168de4c 296 --enable-spinbtn use wxSpinButton class"
698dcdb6 297ac_help="$ac_help
8168de4c 298 --enable-spinctrl use wxSpinCtrl class"
698dcdb6 299ac_help="$ac_help
8168de4c 300 --enable-splitter use wxSplitterWindow class"
698dcdb6 301ac_help="$ac_help
8168de4c 302 --enable-statbmp use wxStaticBitmap class"
698dcdb6 303ac_help="$ac_help
8168de4c 304 --enable-statbox use wxStaticBox class"
698dcdb6 305ac_help="$ac_help
8168de4c 306 --enable-statline use wxStaticLine class"
698dcdb6 307ac_help="$ac_help
8168de4c 308 --enable-stattext use wxStaticText class"
1e6feb95 309ac_help="$ac_help
8168de4c 310 --enable-statusbar use wxStatusBar class"
698dcdb6 311ac_help="$ac_help
8168de4c 312 --enable-tabdialog use wxTabControl class"
698dcdb6 313ac_help="$ac_help
8168de4c 314 --enable-textctrl use wxTextCtrl class"
1e6feb95 315ac_help="$ac_help
8168de4c 316 --enable-togglebtn use wxToggleButton class"
698dcdb6 317ac_help="$ac_help
8168de4c 318 --enable-toolbar use wxToolBar class"
698dcdb6 319ac_help="$ac_help
8168de4c 320 --enable-tbarnative use native wxToolBar class"
698dcdb6 321ac_help="$ac_help
8168de4c 322 --enable-tbarsmpl use wxToolBarSimple class"
698dcdb6 323ac_help="$ac_help
8168de4c 324 --enable-treectrl use wxTreeCtrl class"
9926e4a4
VZ
325ac_help="$ac_help
326 --enable-tipwindow use wxTipWindow class"
9f41d601
RR
327ac_help="$ac_help
328 --enable-popupwin use wxPopUpWindow class"
698dcdb6 329ac_help="$ac_help
b3e8d00a 330 --enable-commondlg use all common dialogs"
698dcdb6 331ac_help="$ac_help
8168de4c 332 --enable-choicedlg use wxChoiceDialog"
1e6feb95 333ac_help="$ac_help
8168de4c 334 --enable-coldlg use wxColourDialog"
1e6feb95 335ac_help="$ac_help
8168de4c 336 --enable-filedlg use wxFileDialog"
8db37e06
VZ
337ac_help="$ac_help
338 --enable-finddlg use wxFindReplaceDialog"
1e6feb95 339ac_help="$ac_help
8168de4c 340 --enable-fontdlg use wxFontDialog"
1e6feb95 341ac_help="$ac_help
8168de4c 342 --enable-dirdlg use wxDirDialog"
698dcdb6 343ac_help="$ac_help
8168de4c 344 --enable-msgdlg use wxMessageDialog"
1e6feb95 345ac_help="$ac_help
8168de4c 346 --enable-numberdlg use wxNumberEntryDialog"
cbca9943
VZ
347ac_help="$ac_help
348 --enable-splash use wxSplashScreen"
1e6feb95 349ac_help="$ac_help
8168de4c 350 --enable-textdlg use wxTextDialog"
698dcdb6 351ac_help="$ac_help
8168de4c 352 --enable-tipdlg use startup tips"
698dcdb6 353ac_help="$ac_help
8168de4c 354 --enable-progressdlg use wxProgressDialog"
b1f5d087
VZ
355ac_help="$ac_help
356 --enable-wizarddlg use wxWizard"
698dcdb6 357ac_help="$ac_help
8168de4c 358 --enable-menus use wxMenu/wxMenuBar/wxMenuItem classes"
1e6feb95 359ac_help="$ac_help
8168de4c 360 --enable-miniframe use wxMiniFrame class"
698dcdb6 361ac_help="$ac_help
8168de4c 362 --enable-tooltips use wxToolTip class"
698dcdb6 363ac_help="$ac_help
8168de4c 364 --enable-splines use spline drawing code"
698dcdb6 365ac_help="$ac_help
8168de4c 366 --enable-validators use wxValidator and derived classes"
698dcdb6 367ac_help="$ac_help
8168de4c 368 --enable-busyinfo use wxBusyInfo"
698dcdb6 369ac_help="$ac_help
b3e8d00a 370 --enable-joystick use wxJoystick (Linux only)"
698dcdb6 371ac_help="$ac_help
8168de4c 372 --enable-metafiles use wxMetaFile (Windows only)"
24fd6d87
VZ
373ac_help="$ac_help
374 --enable-dragimage use wxDragImage"
edae8572
VZ
375ac_help="$ac_help
376 --enable-palette use wxPalette class"
1e6feb95 377ac_help="$ac_help
8168de4c 378 --enable-image use wxImage class"
698dcdb6 379ac_help="$ac_help
8168de4c 380 --enable-gif use gif images (GIF file format)"
698dcdb6 381ac_help="$ac_help
8168de4c 382 --enable-pcx use pcx images (PCX file format)"
698dcdb6 383ac_help="$ac_help
8168de4c 384 --enable-pnm use pnm images (PNM file format)"
698dcdb6 385ac_help="$ac_help
8168de4c 386 --enable-xpm use xpm images (XPM file format)"
698dcdb6
VZ
387ac_help="$ac_help
388 --with-gtk-prefix=PFX Prefix where GTK is installed (optional)"
389ac_help="$ac_help
390 --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)"
391ac_help="$ac_help
392 --disable-gtktest Do not try to compile and run a test GTK program"
3f345b47
VZ
393ac_help="$ac_help
394 --with-gtk-prefix=PFX Prefix where GTK is installed (optional)"
395ac_help="$ac_help
396 --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)"
397ac_help="$ac_help
398 --disable-gtktest Do not try to compile and run a test GTK program"
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"
698dcdb6
VZ
405ac_help="$ac_help
406 --with-x use the X Window System"
10f2d63a
VZ
407
408# Initialize some variables set by options.
409# The variables have the same names as the options, with
410# dashes changed to underlines.
698dcdb6
VZ
411build=NONE
412cache_file=./config.cache
10f2d63a 413exec_prefix=NONE
698dcdb6 414host=NONE
10f2d63a 415no_create=
698dcdb6 416nonopt=NONE
10f2d63a
VZ
417no_recursion=
418prefix=NONE
419program_prefix=NONE
420program_suffix=NONE
421program_transform_name=s,x,x,
422silent=
423site=
424srcdir=
698dcdb6 425target=NONE
10f2d63a
VZ
426verbose=
427x_includes=NONE
428x_libraries=NONE
429bindir='${exec_prefix}/bin'
430sbindir='${exec_prefix}/sbin'
431libexecdir='${exec_prefix}/libexec'
432datadir='${prefix}/share'
433sysconfdir='${prefix}/etc'
434sharedstatedir='${prefix}/com'
435localstatedir='${prefix}/var'
436libdir='${exec_prefix}/lib'
437includedir='${prefix}/include'
438oldincludedir='/usr/include'
439infodir='${prefix}/info'
440mandir='${prefix}/man'
441
698dcdb6
VZ
442# Initialize some other variables.
443subdirs=
444MFLAGS= MAKEFLAGS=
445SHELL=${CONFIG_SHELL-/bin/sh}
446# Maximum number of lines to put in a shell here document.
447ac_max_here_lines=12
10f2d63a
VZ
448
449ac_prev=
450for ac_option
451do
698dcdb6 452
10f2d63a
VZ
453 # If the previous option needs an argument, assign it.
454 if test -n "$ac_prev"; then
455 eval "$ac_prev=\$ac_option"
456 ac_prev=
457 continue
458 fi
459
698dcdb6
VZ
460 case "$ac_option" in
461 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
462 *) ac_optarg= ;;
463 esac
10f2d63a
VZ
464
465 # Accept the important Cygnus configure options, so we can diagnose typos.
466
698dcdb6 467 case "$ac_option" in
10f2d63a
VZ
468
469 -bindir | --bindir | --bindi | --bind | --bin | --bi)
470 ac_prev=bindir ;;
471 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
698dcdb6 472 bindir="$ac_optarg" ;;
10f2d63a
VZ
473
474 -build | --build | --buil | --bui | --bu)
698dcdb6 475 ac_prev=build ;;
10f2d63a 476 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
698dcdb6 477 build="$ac_optarg" ;;
10f2d63a
VZ
478
479 -cache-file | --cache-file | --cache-fil | --cache-fi \
480 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
481 ac_prev=cache_file ;;
482 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
483 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
698dcdb6 484 cache_file="$ac_optarg" ;;
10f2d63a
VZ
485
486 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
487 ac_prev=datadir ;;
488 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
489 | --da=*)
698dcdb6 490 datadir="$ac_optarg" ;;
10f2d63a
VZ
491
492 -disable-* | --disable-*)
698dcdb6 493 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
10f2d63a 494 # Reject names that are not valid shell variable names.
698dcdb6
VZ
495 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
496 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
497 fi
498 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
499 eval "enable_${ac_feature}=no" ;;
10f2d63a
VZ
500
501 -enable-* | --enable-*)
698dcdb6 502 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
10f2d63a 503 # Reject names that are not valid shell variable names.
698dcdb6
VZ
504 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
505 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
506 fi
507 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
508 case "$ac_option" in
509 *=*) ;;
10f2d63a
VZ
510 *) ac_optarg=yes ;;
511 esac
698dcdb6 512 eval "enable_${ac_feature}='$ac_optarg'" ;;
10f2d63a
VZ
513
514 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
515 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
516 | --exec | --exe | --ex)
517 ac_prev=exec_prefix ;;
518 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
519 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
520 | --exec=* | --exe=* | --ex=*)
698dcdb6 521 exec_prefix="$ac_optarg" ;;
10f2d63a
VZ
522
523 -gas | --gas | --ga | --g)
524 # Obsolete; use --with-gas.
525 with_gas=yes ;;
526
698dcdb6
VZ
527 -help | --help | --hel | --he)
528 # Omit some internal or obsolete options to make the list less imposing.
529 # This message is too long to be a string in the A/UX 3.1 sh.
530 cat << EOF
531Usage: configure [options] [host]
532Options: [defaults in brackets after descriptions]
533Configuration:
534 --cache-file=FILE cache test results in FILE
535 --help print this message
536 --no-create do not create output files
537 --quiet, --silent do not print \`checking...' messages
538 --version print the version of autoconf that created configure
539Directory and file names:
540 --prefix=PREFIX install architecture-independent files in PREFIX
541 [$ac_default_prefix]
542 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
543 [same as prefix]
544 --bindir=DIR user executables in DIR [EPREFIX/bin]
545 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
546 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
547 --datadir=DIR read-only architecture-independent data in DIR
548 [PREFIX/share]
549 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
550 --sharedstatedir=DIR modifiable architecture-independent data in DIR
551 [PREFIX/com]
552 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
553 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
554 --includedir=DIR C header files in DIR [PREFIX/include]
555 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
556 --infodir=DIR info documentation in DIR [PREFIX/info]
557 --mandir=DIR man documentation in DIR [PREFIX/man]
558 --srcdir=DIR find the sources in DIR [configure dir or ..]
559 --program-prefix=PREFIX prepend PREFIX to installed program names
560 --program-suffix=SUFFIX append SUFFIX to installed program names
561 --program-transform-name=PROGRAM
562 run sed PROGRAM on installed program names
563EOF
564 cat << EOF
565Host type:
566 --build=BUILD configure for building on BUILD [BUILD=HOST]
567 --host=HOST configure for HOST [guessed]
568 --target=TARGET configure for TARGET [TARGET=HOST]
569Features and packages:
570 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
571 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
572 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
573 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
574 --x-includes=DIR X include files are in DIR
575 --x-libraries=DIR X library files are in DIR
576EOF
577 if test -n "$ac_help"; then
578 echo "--enable and --with options recognized:$ac_help"
579 fi
580 exit 0 ;;
10f2d63a
VZ
581
582 -host | --host | --hos | --ho)
698dcdb6 583 ac_prev=host ;;
10f2d63a 584 -host=* | --host=* | --hos=* | --ho=*)
698dcdb6 585 host="$ac_optarg" ;;
10f2d63a
VZ
586
587 -includedir | --includedir | --includedi | --included | --include \
588 | --includ | --inclu | --incl | --inc)
589 ac_prev=includedir ;;
590 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
591 | --includ=* | --inclu=* | --incl=* | --inc=*)
698dcdb6 592 includedir="$ac_optarg" ;;
10f2d63a
VZ
593
594 -infodir | --infodir | --infodi | --infod | --info | --inf)
595 ac_prev=infodir ;;
596 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
698dcdb6 597 infodir="$ac_optarg" ;;
10f2d63a
VZ
598
599 -libdir | --libdir | --libdi | --libd)
600 ac_prev=libdir ;;
601 -libdir=* | --libdir=* | --libdi=* | --libd=*)
698dcdb6 602 libdir="$ac_optarg" ;;
10f2d63a
VZ
603
604 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
605 | --libexe | --libex | --libe)
606 ac_prev=libexecdir ;;
607 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
608 | --libexe=* | --libex=* | --libe=*)
698dcdb6 609 libexecdir="$ac_optarg" ;;
10f2d63a
VZ
610
611 -localstatedir | --localstatedir | --localstatedi | --localstated \
612 | --localstate | --localstat | --localsta | --localst \
613 | --locals | --local | --loca | --loc | --lo)
614 ac_prev=localstatedir ;;
615 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
616 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
617 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
698dcdb6 618 localstatedir="$ac_optarg" ;;
10f2d63a
VZ
619
620 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
621 ac_prev=mandir ;;
622 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
698dcdb6 623 mandir="$ac_optarg" ;;
10f2d63a
VZ
624
625 -nfp | --nfp | --nf)
626 # Obsolete; use --without-fp.
627 with_fp=no ;;
628
629 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
630 | --no-cr | --no-c)
631 no_create=yes ;;
632
633 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
634 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
635 no_recursion=yes ;;
636
637 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
638 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
639 | --oldin | --oldi | --old | --ol | --o)
640 ac_prev=oldincludedir ;;
641 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
642 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
643 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
698dcdb6 644 oldincludedir="$ac_optarg" ;;
10f2d63a
VZ
645
646 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
647 ac_prev=prefix ;;
648 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
698dcdb6 649 prefix="$ac_optarg" ;;
10f2d63a
VZ
650
651 -program-prefix | --program-prefix | --program-prefi | --program-pref \
652 | --program-pre | --program-pr | --program-p)
653 ac_prev=program_prefix ;;
654 -program-prefix=* | --program-prefix=* | --program-prefi=* \
655 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
698dcdb6 656 program_prefix="$ac_optarg" ;;
10f2d63a
VZ
657
658 -program-suffix | --program-suffix | --program-suffi | --program-suff \
659 | --program-suf | --program-su | --program-s)
660 ac_prev=program_suffix ;;
661 -program-suffix=* | --program-suffix=* | --program-suffi=* \
662 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
698dcdb6 663 program_suffix="$ac_optarg" ;;
10f2d63a
VZ
664
665 -program-transform-name | --program-transform-name \
666 | --program-transform-nam | --program-transform-na \
667 | --program-transform-n | --program-transform- \
668 | --program-transform | --program-transfor \
669 | --program-transfo | --program-transf \
670 | --program-trans | --program-tran \
671 | --progr-tra | --program-tr | --program-t)
672 ac_prev=program_transform_name ;;
673 -program-transform-name=* | --program-transform-name=* \
674 | --program-transform-nam=* | --program-transform-na=* \
675 | --program-transform-n=* | --program-transform-=* \
676 | --program-transform=* | --program-transfor=* \
677 | --program-transfo=* | --program-transf=* \
678 | --program-trans=* | --program-tran=* \
679 | --progr-tra=* | --program-tr=* | --program-t=*)
698dcdb6 680 program_transform_name="$ac_optarg" ;;
10f2d63a
VZ
681
682 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
683 | -silent | --silent | --silen | --sile | --sil)
684 silent=yes ;;
685
686 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
687 ac_prev=sbindir ;;
688 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
689 | --sbi=* | --sb=*)
698dcdb6 690 sbindir="$ac_optarg" ;;
10f2d63a
VZ
691
692 -sharedstatedir | --sharedstatedir | --sharedstatedi \
693 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
694 | --sharedst | --shareds | --shared | --share | --shar \
695 | --sha | --sh)
696 ac_prev=sharedstatedir ;;
697 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
698 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
699 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
700 | --sha=* | --sh=*)
698dcdb6 701 sharedstatedir="$ac_optarg" ;;
10f2d63a
VZ
702
703 -site | --site | --sit)
704 ac_prev=site ;;
705 -site=* | --site=* | --sit=*)
698dcdb6 706 site="$ac_optarg" ;;
10f2d63a
VZ
707
708 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
709 ac_prev=srcdir ;;
710 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
698dcdb6 711 srcdir="$ac_optarg" ;;
10f2d63a
VZ
712
713 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
714 | --syscon | --sysco | --sysc | --sys | --sy)
715 ac_prev=sysconfdir ;;
716 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
717 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
698dcdb6 718 sysconfdir="$ac_optarg" ;;
10f2d63a
VZ
719
720 -target | --target | --targe | --targ | --tar | --ta | --t)
698dcdb6 721 ac_prev=target ;;
10f2d63a 722 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
698dcdb6 723 target="$ac_optarg" ;;
10f2d63a
VZ
724
725 -v | -verbose | --verbose | --verbos | --verbo | --verb)
726 verbose=yes ;;
727
698dcdb6
VZ
728 -version | --version | --versio | --versi | --vers)
729 echo "configure generated by autoconf version 2.13"
730 exit 0 ;;
10f2d63a
VZ
731
732 -with-* | --with-*)
698dcdb6 733 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
10f2d63a 734 # Reject names that are not valid shell variable names.
698dcdb6
VZ
735 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
736 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
737 fi
10f2d63a 738 ac_package=`echo $ac_package| sed 's/-/_/g'`
698dcdb6
VZ
739 case "$ac_option" in
740 *=*) ;;
10f2d63a
VZ
741 *) ac_optarg=yes ;;
742 esac
698dcdb6 743 eval "with_${ac_package}='$ac_optarg'" ;;
10f2d63a
VZ
744
745 -without-* | --without-*)
698dcdb6 746 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
10f2d63a 747 # Reject names that are not valid shell variable names.
698dcdb6
VZ
748 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
749 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
750 fi
751 ac_package=`echo $ac_package| sed 's/-/_/g'`
752 eval "with_${ac_package}=no" ;;
10f2d63a
VZ
753
754 --x)
755 # Obsolete; use --with-x.
756 with_x=yes ;;
757
758 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
759 | --x-incl | --x-inc | --x-in | --x-i)
760 ac_prev=x_includes ;;
761 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
762 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
698dcdb6 763 x_includes="$ac_optarg" ;;
10f2d63a
VZ
764
765 -x-libraries | --x-libraries | --x-librarie | --x-librari \
766 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
767 ac_prev=x_libraries ;;
768 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
769 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
698dcdb6 770 x_libraries="$ac_optarg" ;;
10f2d63a 771
698dcdb6 772 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
10f2d63a
VZ
773 ;;
774
775 *)
698dcdb6
VZ
776 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
777 echo "configure: warning: $ac_option: invalid host type" 1>&2
778 fi
779 if test "x$nonopt" != xNONE; then
780 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
781 fi
782 nonopt="$ac_option"
10f2d63a
VZ
783 ;;
784
785 esac
786done
787
788if test -n "$ac_prev"; then
698dcdb6
VZ
789 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
790fi
791
792trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
793
794# File descriptor usage:
795# 0 standard input
796# 1 file creation
797# 2 errors and warnings
798# 3 some systems may open it to /dev/tty
799# 4 used on the Kubota Titan
800# 6 checking for... messages and results
801# 5 compiler messages saved in config.log
802if test "$silent" = yes; then
803 exec 6>/dev/null
804else
805 exec 6>&1
10f2d63a 806fi
698dcdb6
VZ
807exec 5>./config.log
808
809echo "\
810This file contains any messages produced by compilers while
811running configure, to aid debugging if configure makes a mistake.
812" 1>&5
10f2d63a 813
698dcdb6
VZ
814# Strip out --no-create and --no-recursion so they do not pile up.
815# Also quote any args containing shell metacharacters.
816ac_configure_args=
817for ac_arg
10f2d63a 818do
698dcdb6
VZ
819 case "$ac_arg" in
820 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
821 | --no-cr | --no-c) ;;
822 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
823 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
824 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
825 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
826 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
10f2d63a
VZ
827 esac
828done
829
698dcdb6
VZ
830# NLS nuisances.
831# Only set these to C if already set. These must not be set unconditionally
832# because not all systems understand e.g. LANG=C (notably SCO).
833# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
834# Non-C LC_CTYPE values break the ctype check.
835if test "${LANG+set}" = set; then LANG=C; export LANG; fi
836if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
837if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
838if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
10f2d63a 839
698dcdb6
VZ
840# confdefs.h avoids OS command line length limits that DEFS can exceed.
841rm -rf conftest* confdefs.h
842# AIX cpp loses on an empty file, so make sure it contains at least a newline.
843echo > confdefs.h
10f2d63a 844
698dcdb6
VZ
845# A filename unique to this package, relative to the directory that
846# configure is in, which we can look for to find out if srcdir is correct.
847ac_unique_file=wx-config.in
10f2d63a
VZ
848
849# Find the source files, if location was not specified.
850if test -z "$srcdir"; then
851 ac_srcdir_defaulted=yes
852 # Try the directory containing this script, then its parent.
853 ac_prog=$0
698dcdb6 854 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
10f2d63a
VZ
855 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
856 srcdir=$ac_confdir
857 if test ! -r $srcdir/$ac_unique_file; then
858 srcdir=..
859 fi
860else
861 ac_srcdir_defaulted=no
862fi
863if test ! -r $srcdir/$ac_unique_file; then
864 if test "$ac_srcdir_defaulted" = yes; then
698dcdb6 865 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
10f2d63a 866 else
698dcdb6 867 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
10f2d63a
VZ
868 fi
869fi
698dcdb6 870srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
10f2d63a
VZ
871
872# Prefer explicitly selected file to automatically selected ones.
873if test -z "$CONFIG_SITE"; then
874 if test "x$prefix" != xNONE; then
875 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
876 else
877 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
878 fi
879fi
880for ac_site_file in $CONFIG_SITE; do
881 if test -r "$ac_site_file"; then
698dcdb6 882 echo "loading site script $ac_site_file"
10f2d63a
VZ
883 . "$ac_site_file"
884 fi
885done
886
887if test -r "$cache_file"; then
698dcdb6
VZ
888 echo "loading cache $cache_file"
889 . $cache_file
10f2d63a 890else
698dcdb6
VZ
891 echo "creating cache $cache_file"
892 > $cache_file
10f2d63a
VZ
893fi
894
895ac_ext=c
698dcdb6 896# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10f2d63a 897ac_cpp='$CPP $CPPFLAGS'
698dcdb6
VZ
898ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
899ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
900cross_compiling=$ac_cv_prog_cc_cross
901
902ac_exeext=
903ac_objext=o
904if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
905 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
906 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
907 ac_n= ac_c='
908' ac_t=' '
909 else
910 ac_n=-n ac_c= ac_t=
911 fi
10f2d63a 912else
698dcdb6 913 ac_n= ac_c='\c' ac_t=
10f2d63a 914fi
698dcdb6
VZ
915
916
10f2d63a 917
7c66a493
VZ
918ac_aux_dir=
919for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
920 if test -f $ac_dir/install-sh; then
921 ac_aux_dir=$ac_dir
922 ac_install_sh="$ac_aux_dir/install-sh -c"
923 break
924 elif test -f $ac_dir/install.sh; then
925 ac_aux_dir=$ac_dir
926 ac_install_sh="$ac_aux_dir/install.sh -c"
927 break
928 fi
929done
930if test -z "$ac_aux_dir"; then
698dcdb6 931 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
7c66a493 932fi
698dcdb6
VZ
933ac_config_guess=$ac_aux_dir/config.guess
934ac_config_sub=$ac_aux_dir/config.sub
935ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
703e0a69 936
698dcdb6
VZ
937
938# Do some error checking and defaulting for the host and target type.
939# The inputs are:
940# configure --host=HOST --target=TARGET --build=BUILD NONOPT
941#
942# The rules are:
943# 1. You are not allowed to specify --host, --target, and nonopt at the
944# same time.
945# 2. Host defaults to nonopt.
946# 3. If nonopt is not specified, then host defaults to the current host,
947# as determined by config.guess.
948# 4. Target and build default to nonopt.
949# 5. If nonopt is not specified, then target and build default to host.
7c66a493
VZ
950
951# The aliases save the names the user supplied, while $host etc.
952# will get canonicalized.
698dcdb6
VZ
953case $host---$target---$nonopt in
954NONE---*---* | *---NONE---* | *---*---NONE) ;;
955*) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
956esac
957
958
959# Make sure we can run config.sub.
960if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
961else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
962fi
963
964echo $ac_n "checking host system type""... $ac_c" 1>&6
a1622950 965echo "configure:966: checking host system type" >&5
698dcdb6
VZ
966
967host_alias=$host
968case "$host_alias" in
969NONE)
970 case $nonopt in
971 NONE)
972 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
973 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
974 fi ;;
975 *) host_alias=$nonopt ;;
976 esac ;;
977esac
978
979host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
980host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
981host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
982host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
983echo "$ac_t""$host" 1>&6
984
985echo $ac_n "checking target system type""... $ac_c" 1>&6
a1622950 986echo "configure:987: checking target system type" >&5
698dcdb6
VZ
987
988target_alias=$target
989case "$target_alias" in
990NONE)
991 case $nonopt in
992 NONE) target_alias=$host_alias ;;
993 *) target_alias=$nonopt ;;
994 esac ;;
995esac
996
997target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
998target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
999target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1000target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1001echo "$ac_t""$target" 1>&6
1002
1003echo $ac_n "checking build system type""... $ac_c" 1>&6
a1622950 1004echo "configure:1005: checking build system type" >&5
698dcdb6
VZ
1005
1006build_alias=$build
1007case "$build_alias" in
1008NONE)
1009 case $nonopt in
1010 NONE) build_alias=$host_alias ;;
1011 *) build_alias=$nonopt ;;
1012 esac ;;
1013esac
1014
1015build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1016build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1017build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1018build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1019echo "$ac_t""$build" 1>&6
1020
1021test "$host_alias" != "$target_alias" &&
7c66a493
VZ
1022 test "$program_prefix$program_suffix$program_transform_name" = \
1023 NONENONEs,x,x, &&
1024 program_prefix=${target_alias}-
1025
698dcdb6
VZ
1026
1027
10f2d63a 1028WX_MAJOR_VERSION_NUMBER=2
37d403aa 1029WX_MINOR_VERSION_NUMBER=3
a0d927d1 1030WX_RELEASE_NUMBER=3
10f2d63a 1031
10f2d63a 1032WX_VERSION=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER.$WX_RELEASE_NUMBER
10f2d63a 1033WX_RELEASE=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER
6426998c 1034
978f1259
RL
1035WX_MSW_VERSION=$WX_MAJOR_VERSION_NUMBER$WX_MINOR_VERSION_NUMBER$WX_RELEASE_NUMBER
1036
a0d927d1 1037WX_CURRENT=2
6426998c
RL
1038WX_REVISION=0
1039WX_AGE=0
1040
698dcdb6
VZ
1041
1042
10f2d63a
VZ
1043USE_UNIX=1
1044USE_WIN32=0
f9bc1684 1045USE_DOS=0
b12915c1 1046USE_BEOS=0
1216f52d 1047USE_MAC=0
b12915c1 1048
10f2d63a
VZ
1049USE_LINUX=
1050USE_SGI=
1051USE_HPUX=
1052USE_SYSV=
1053USE_SVR4=
1054USE_AIX=
1055USE_SUN=
1056USE_SOLARIS=
1057USE_SUNOS=
1058USE_ALPHA=
1059USE_OSF=
1060USE_BSD=
f11bdd03 1061USE_DARWIN=
10f2d63a 1062USE_FREEBSD=
95c8801c 1063USE_OPENBSD=
f6bcfd97 1064USE_NETBSD=
10f2d63a
VZ
1065USE_VMS=
1066USE_ULTRIX=
10f2d63a
VZ
1067USE_DATA_GENERAL=
1068
ab9b9eab
VZ
1069NEEDS_D_REENTRANT_FOR_R_FUNCS=0
1070
3f345b47
VZ
1071CPP_MT_FLAG=-D_REENTRANT
1072
1725144d 1073ALL_TOOLKITS="GTK MAC MGL MICROWIN MOTIF MSW PM WINE"
10f2d63a
VZ
1074
1075DEFAULT_wxUSE_GTK=0
1e6feb95
VZ
1076DEFAULT_wxUSE_MAC=0
1077DEFAULT_wxUSE_MGL=0
1725144d 1078DEFAULT_wxUSE_MICROWIN=0
10f2d63a
VZ
1079DEFAULT_wxUSE_MOTIF=0
1080DEFAULT_wxUSE_MSW=0
e07802fc 1081DEFAULT_wxUSE_PM=0
1e6feb95 1082DEFAULT_wxUSE_WINE=0
10f2d63a
VZ
1083
1084DEFAULT_DEFAULT_wxUSE_GTK=0
1e6feb95
VZ
1085DEFAULT_DEFAULT_wxUSE_MAC=0
1086DEFAULT_DEFAULT_wxUSE_MGL=0
1725144d 1087DEFAULT_DEFAULT_wxUSE_MICROWIN=0
10f2d63a
VZ
1088DEFAULT_DEFAULT_wxUSE_MOTIF=0
1089DEFAULT_DEFAULT_wxUSE_MSW=0
e07802fc 1090DEFAULT_DEFAULT_wxUSE_PM=0
1e6feb95 1091DEFAULT_DEFAULT_wxUSE_WINE=0
10f2d63a 1092
d6a55c4b 1093PROGRAM_EXT=
3a922bb4 1094SO_SUFFIX=so
d6a55c4b 1095
10f2d63a
VZ
1096case "${host}" in
1097 *-hp-hpux* )
1098 USE_HPUX=1
1099 DEFAULT_DEFAULT_wxUSE_MOTIF=1
ab9b9eab 1100 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
3a922bb4 1101 SO_SUFFIX=sl
698dcdb6 1102 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1103#define __HPUX__ 1
1104EOF
1105
1106 ;;
1107 *-*-linux* )
1108 USE_LINUX=1
698dcdb6 1109 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1110#define __LINUX__ 1
1111EOF
1112
1113 TMP=`uname -m`
1114 if test "x$TMP" = "xalpha"; then
1115 USE_ALPHA=1
698dcdb6 1116 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1117#define __ALPHA__ 1
1118EOF
1119
1120 fi
1121 DEFAULT_DEFAULT_wxUSE_GTK=1
1122 ;;
1123 *-*-irix5* | *-*-irix6* )
1124 USE_SGI=1
1125 USE_SVR4=1
698dcdb6 1126 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1127#define __SGI__ 1
1128EOF
1129
698dcdb6 1130 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1131#define __SVR4__ 1
1132EOF
1133
1134 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1135 ;;
1136 *-*-solaris2* )
1137 USE_SUN=1
1138 USE_SOLARIS=1
1139 USE_SVR4=1
698dcdb6 1140 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1141#define __SUN__ 1
1142EOF
1143
698dcdb6 1144 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1145#define __SOLARIS__ 1
1146EOF
1147
698dcdb6 1148 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1149#define __SVR4__ 1
1150EOF
1151
1152 DEFAULT_DEFAULT_wxUSE_MOTIF=1
ab9b9eab 1153 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
10f2d63a
VZ
1154 ;;
1155 *-*-sunos4* )
1156 USE_SUN=1
1157 USE_SUNOS=1
1158 USE_BSD=1
698dcdb6 1159 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1160#define __SUN__ 1
1161EOF
1162
698dcdb6 1163 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1164#define __SUNOS__ 1
1165EOF
1166
698dcdb6 1167 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1168#define __BSD__ 1
1169EOF
1170
1171 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1172 ;;
f6bcfd97 1173 *-*-freebsd*)
10f2d63a
VZ
1174 USE_BSD=1
1175 USE_FREEBSD=1
3f345b47 1176 CPP_MT_FLAG=-D_THREAD_SAFE
698dcdb6 1177 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1178#define __FREEBSD__ 1
1179EOF
1180
698dcdb6 1181 cat >> confdefs.h <<\EOF
10f2d63a 1182#define __BSD__ 1
95c8801c
VS
1183EOF
1184
1185 DEFAULT_DEFAULT_wxUSE_GTK=1
1186 ;;
1187 *-*-openbsd*)
1188 USE_BSD=1
1189 USE_OPENBSD=1
698dcdb6 1190 cat >> confdefs.h <<\EOF
95c8801c
VS
1191#define __FREEBSD__ 1
1192EOF
1193
698dcdb6 1194 cat >> confdefs.h <<\EOF
95c8801c 1195#define __OPENBSD__ 1
f6bcfd97
BP
1196EOF
1197
1198 DEFAULT_DEFAULT_wxUSE_GTK=1
1199 ;;
1200 *-*-netbsd*)
1201 USE_BSD=1
1202 USE_NETBSD=1
698dcdb6 1203 cat >> confdefs.h <<\EOF
f6bcfd97
BP
1204#define __FREEBSD__ 1
1205EOF
1206
698dcdb6 1207 cat >> confdefs.h <<\EOF
f6bcfd97 1208#define __NETBSD__ 1
10f2d63a
VZ
1209EOF
1210
1211 DEFAULT_DEFAULT_wxUSE_GTK=1
1212 ;;
1213 *-*-osf* )
1214 USE_ALPHA=1
1215 USE_OSF=1
698dcdb6 1216 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1217#define __ALPHA__ 1
1218EOF
1219
698dcdb6 1220 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1221#define __OSF__ 1
1222EOF
1223
1224 DEFAULT_DEFAULT_wxUSE_MOTIF=1
f6bcfd97 1225 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
10f2d63a
VZ
1226 ;;
1227 *-*-dgux5* )
1228 USE_ALPHA=1
1229 USE_SVR4=1
698dcdb6 1230 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1231#define __ALPHA__ 1
1232EOF
1233
698dcdb6 1234 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1235#define __SVR4__ 1
1236EOF
1237
1238 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1239 ;;
1240 *-*-sysv5* )
1241 USE_SYSV=1
1242 USE_SVR4=1
698dcdb6 1243 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1244#define __SYSV__ 1
1245EOF
1246
698dcdb6 1247 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1248#define __SVR4__ 1
1249EOF
1250
1251 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1252 ;;
1253 *-*-aix* )
1254 USE_AIX=1
1255 USE_SYSV=1
1256 USE_SVR4=1
698dcdb6 1257 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1258#define __AIX__ 1
1259EOF
1260
698dcdb6 1261 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1262#define __SYSV__ 1
1263EOF
1264
698dcdb6 1265 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1266#define __SVR4__ 1
1267EOF
1268
1269 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1270 ;;
1271
1c8183e2 1272 *-*-cygwin* | *-*-mingw32* )
10f2d63a
VZ
1273 USE_UNIX=0
1274 USE_WIN32=1
3a922bb4 1275 SO_SUFFIX=dll
698dcdb6 1276 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1277#define __WIN32__ 1
1278EOF
1279
698dcdb6 1280 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1281#define __WIN95__ 1
1282EOF
1283
698dcdb6 1284 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1285#define __WINDOWS__ 1
1286EOF
1287
698dcdb6 1288 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1289#define __GNUWIN32__ 1
1290EOF
1291
698dcdb6 1292 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1293#define STRICT 1
1294EOF
1295
698dcdb6 1296 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1297#define WINVER 0x0400
1298EOF
1299
cf27ef00 1300 PROGRAM_EXT=".exe"
7b7a7637 1301 RESCOMP=windres
10f2d63a
VZ
1302 DEFAULT_DEFAULT_wxUSE_MSW=1
1303 ;;
1304
f9bc1684
VS
1305 *-pc-msdosdjgpp )
1306 USE_UNIX=0
1307 USE_DOS=1
1308 cat >> confdefs.h <<\EOF
1309#define __DOS__ 1
1310EOF
1311
1312 PROGRAM_EXT=".exe"
1313 DEFAULT_DEFAULT_wxUSE_MGL=1
1314 DEFAULT_DEFAULT_wxUSE_SHARED=0
1315 ;;
1316
6fa882bd 1317 *-pc-os2_emx | *-pc-os2-emx )
698dcdb6 1318 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1319#define __EMX__ 1
1320EOF
1321
cf27ef00 1322 PROGRAM_EXT=".exe"
e07802fc 1323 DEFAULT_DEFAULT_wxUSE_PM=1
10f2d63a
VZ
1324 ;;
1325
d08b457b
GD
1326 powerpc-*-darwin* )
1327 USE_BSD=1
f11bdd03 1328 USE_DARWIN=1
3f345b47 1329 CPP_MT_FLAG=
3a922bb4 1330 SO_SUFFIX=dylib
698dcdb6 1331 cat >> confdefs.h <<\EOF
f11bdd03 1332#define __BSD__ 1
b4085ce6
GD
1333EOF
1334
698dcdb6 1335 cat >> confdefs.h <<\EOF
f11bdd03 1336#define __DARWIN__ 1
d08b457b
GD
1337EOF
1338
1339 cat >> confdefs.h <<\EOF
1340#define __POWERPC__ 1
b4085ce6
GD
1341EOF
1342
1343 DEFAULT_DEFAULT_wxUSE_MAC=1
1344 ;;
1345
b12915c1
VZ
1346 *-*-beos* )
1347 USE_BEOS=1
698dcdb6 1348 cat >> confdefs.h <<\EOF
b12915c1
VZ
1349#define __BEOS__ 1
1350EOF
1351
1352 ;;
1353
10f2d63a 1354 *)
698dcdb6 1355 { echo "configure: error: unknown system type ${host}." 1>&2; exit 1; }
10f2d63a
VZ
1356esac
1357
1358if test "$USE_UNIX" = 1 ; then
b12915c1 1359 wxUSE_UNIX=yes
698dcdb6 1360 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1361#define __UNIX__ 1
1362EOF
1363
10f2d63a
VZ
1364fi
1365
2389f33b
VZ
1366if test "$USE_LINUX" = 1; then
1367 echo $ac_n "checking for glibc 2.1 or later""... $ac_c" 1>&6
a1622950 1368echo "configure:1369: checking for glibc 2.1 or later" >&5
2389f33b
VZ
1369if eval "test \"`echo '$''{'wx_lib_glibc21'+set}'`\" = set"; then
1370 echo $ac_n "(cached) $ac_c" 1>&6
1371else
a72a4bfa
VS
1372
1373 cat > conftest.$ac_ext <<EOF
a1622950 1374#line 1375 "configure"
2389f33b
VZ
1375#include "confdefs.h"
1376#include <features.h>
1377int main() {
1378
1379 #if !__GLIBC_PREREQ(2, 1)
1380 #error not glibc2.1
1381 #endif
1382
1383; return 0; }
1384EOF
a1622950 1385if { (eval echo configure:1386: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2389f33b
VZ
1386 rm -rf conftest*
1387
1388 wx_lib_glibc21=yes
1389
1390else
1391 echo "configure: failed program was:" >&5
1392 cat conftest.$ac_ext >&5
1393 rm -rf conftest*
1394
1395 wx_lib_glibc21=no
1396
1397
1398fi
1399rm -f conftest*
1400
1401fi
1402
1403echo "$ac_t""$wx_lib_glibc21" 1>&6
2389f33b
VZ
1404 if test "$wx_lib_glibc21" = "yes"; then
1405 cat >> confdefs.h <<\EOF
1406#define wxHAVE_GLIBC2 1
1407EOF
1408
1409 fi
1410fi
10f2d63a 1411
1e487827 1412
1e487827 1413
6232543b 1414
10f2d63a
VZ
1415 wx_arg_cache_file="configarg.cache"
1416 echo "loading argument cache $wx_arg_cache_file"
1417 rm -f ${wx_arg_cache_file}.tmp
1418 touch ${wx_arg_cache_file}.tmp
1419 touch ${wx_arg_cache_file}
698dcdb6 1420
10f2d63a
VZ
1421
1422DEBUG_CONFIGURE=0
1423if test $DEBUG_CONFIGURE = 1; then
1e6feb95
VZ
1424 DEFAULT_wxUSE_UNIVERSAL=no
1425
10f2d63a
VZ
1426 DEFAULT_wxUSE_THREADS=yes
1427
1428 DEFAULT_wxUSE_SHARED=yes
3a922bb4 1429 DEFAULT_wxUSE_SONAME=no
1e6feb95 1430 DEFAULT_wxUSE_OPTIMISE=no
10f2d63a
VZ
1431 DEFAULT_wxUSE_PROFILE=no
1432 DEFAULT_wxUSE_NO_DEPS=no
f676c7ff
MB
1433 DEFAULT_wxUSE_NO_RTTI=yes
1434 DEFAULT_wxUSE_NO_EXCEPTIONS=yes
10f2d63a
VZ
1435 DEFAULT_wxUSE_PERMISSIVE=no
1436 DEFAULT_wxUSE_DEBUG_FLAG=yes
1437 DEFAULT_wxUSE_DEBUG_INFO=yes
1438 DEFAULT_wxUSE_DEBUG_GDB=yes
1439 DEFAULT_wxUSE_MEM_TRACING=no
1440 DEFAULT_wxUSE_DEBUG_CONTEXT=no
1441 DEFAULT_wxUSE_DMALLOC=no
683dccda 1442 DEFAULT_wxUSE_PRECOMP=yes
10f2d63a
VZ
1443 DEFAULT_wxUSE_APPLE_IEEE=no
1444
1445 DEFAULT_wxUSE_LOG=yes
1e6feb95
VZ
1446 DEFAULT_wxUSE_LOGWINDOW=no
1447 DEFAULT_wxUSE_LOGGUI=no
69d27ff7 1448 DEFAULT_wxUSE_LOGDIALOG=no
10f2d63a
VZ
1449
1450 DEFAULT_wxUSE_GUI=yes
1e6feb95 1451 DEFAULT_wxUSE_CONTROLS=no
10f2d63a 1452
3e44f09d 1453 DEFAULT_wxUSE_REGEX=no
10f2d63a
VZ
1454 DEFAULT_wxUSE_ZLIB=no
1455 DEFAULT_wxUSE_LIBPNG=no
1456 DEFAULT_wxUSE_LIBJPEG=no
c7a2bf27 1457 DEFAULT_wxUSE_LIBTIFF=no
10f2d63a 1458 DEFAULT_wxUSE_ODBC=no
3fed1840 1459 DEFAULT_wxUSE_FREETYPE=no
bdad4e7e 1460 DEFAULT_wxUSE_OPENGL=no
10f2d63a 1461
eb4efbdc 1462 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=no
4f3c5f06 1463 DEFAULT_wxUSE_SNGLINST_CHECKER=no
10f2d63a 1464 DEFAULT_wxUSE_STD_IOSTREAM=no
1e6feb95
VZ
1465 DEFAULT_wxUSE_CMDLINE_PARSER=no
1466 DEFAULT_wxUSE_DATETIME=no
1467 DEFAULT_wxUSE_TIMEDATE=no
1468 DEFAULT_wxUSE_TIMER=no
1469 DEFAULT_wxUSE_STOPWATCH=no
10f2d63a 1470 DEFAULT_wxUSE_FILE=no
1e6feb95 1471 DEFAULT_wxUSE_FFILE=no
a3a584a7 1472 DEFAULT_wxUSE_TEXTBUFFER=no
10f2d63a 1473 DEFAULT_wxUSE_TEXTFILE=no
10f2d63a
VZ
1474 DEFAULT_wxUSE_WAVE=no
1475 DEFAULT_wxUSE_INTL=no
1476 DEFAULT_wxUSE_CONFIG=no
1e6feb95 1477 DEFAULT_wxUSE_FONTMAP=no
10f2d63a
VZ
1478 DEFAULT_wxUSE_STREAMS=no
1479 DEFAULT_wxUSE_SOCKETS=no
1480 DEFAULT_wxUSE_DIALUP_MANAGER=no
10f2d63a 1481 DEFAULT_wxUSE_JOYSTICK=no
6bff71f8 1482 DEFAULT_wxUSE_DYNLIB_CLASS=no
0b9ab0bd 1483 DEFAULT_wxUSE_DYNAMIC_LOADER=no
10f2d63a 1484 DEFAULT_wxUSE_LONGLONG=no
e8f65ba6 1485 DEFAULT_wxUSE_GEOMETRY=no
10f2d63a
VZ
1486
1487 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no
1488 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no
1489 DEFAULT_wxUSE_POSTSCRIPT=no
1490
1491 DEFAULT_wxUSE_X_RESOURCES=no
1492 DEFAULT_wxUSE_CLIPBOARD=no
1493 DEFAULT_wxUSE_TOOLTIPS=no
1494 DEFAULT_wxUSE_DRAG_AND_DROP=no
24fd6d87 1495 DEFAULT_wxUSE_DRAGIMAGE=no
10f2d63a
VZ
1496 DEFAULT_wxUSE_SPLINES=no
1497
1498 DEFAULT_wxUSE_MDI_ARCHITECTURE=no
1499 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no
1500 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no
1501
1502 DEFAULT_wxUSE_PROLOGIO=no
1503 DEFAULT_wxUSE_RESOURCES=no
1504 DEFAULT_wxUSE_CONSTRAINTS=no
1505 DEFAULT_wxUSE_IPC=no
1506 DEFAULT_wxUSE_HELP=no
29fd3c0c 1507 DEFAULT_wxUSE_MS_HTML_HELP=no
3379ed37 1508 DEFAULT_wxUSE_WXHTML_HELP=no
24176f2c 1509 DEFAULT_wxUSE_TREELAYOUT=no
10f2d63a 1510 DEFAULT_wxUSE_METAFILE=no
1e6feb95 1511 DEFAULT_wxUSE_MIMETYPE=no
3e44f09d 1512 DEFAULT_wxUSE_SYSTEM_OPTIONS=yes
10f2d63a
VZ
1513
1514 DEFAULT_wxUSE_COMMONDLGS=no
1e6feb95
VZ
1515 DEFAULT_wxUSE_CHOICEDLG=no
1516 DEFAULT_wxUSE_COLOURDLG=no
10f2d63a 1517 DEFAULT_wxUSE_DIRDLG=no
1e6feb95 1518 DEFAULT_wxUSE_FILEDLG=no
8db37e06 1519 DEFAULT_wxUSE_FINDREPLDLG=no
1e6feb95
VZ
1520 DEFAULT_wxUSE_FONTDLG=no
1521 DEFAULT_wxUSE_MSGDLG=no
1522 DEFAULT_wxUSE_NUMBERDLG=no
10f2d63a 1523 DEFAULT_wxUSE_TEXTDLG=no
cbca9943 1524 DEFAULT_wxUSE_SPLASH=no
10f2d63a
VZ
1525 DEFAULT_wxUSE_STARTUP_TIPS=no
1526 DEFAULT_wxUSE_PROGRESSDLG=no
b1f5d087
VZ
1527 DEFAULT_wxUSE_WIZARDDLG=no
1528
1e6feb95 1529 DEFAULT_wxUSE_MENUS=no
10f2d63a
VZ
1530 DEFAULT_wxUSE_MINIFRAME=no
1531 DEFAULT_wxUSE_HTML=no
24528b0c 1532 DEFAULT_wxUSE_FILESYSTEM=no
10f2d63a
VZ
1533 DEFAULT_wxUSE_FS_INET=no
1534 DEFAULT_wxUSE_FS_ZIP=no
1535 DEFAULT_wxUSE_BUSYINFO=no
1536 DEFAULT_wxUSE_ZIPSTREAM=no
1e6feb95 1537 DEFAULT_wxUSE_VALIDATORS=no
10f2d63a
VZ
1538
1539 DEFAULT_wxUSE_ACCEL=no
1e6feb95 1540 DEFAULT_wxUSE_BUTTON=no
10f2d63a 1541 DEFAULT_wxUSE_BMPBUTTON=no
1e6feb95
VZ
1542 DEFAULT_wxUSE_CALCTRL=no
1543 DEFAULT_wxUSE_CARET=no
10f2d63a
VZ
1544 DEFAULT_wxUSE_CHECKBOX=no
1545 DEFAULT_wxUSE_CHECKLST=no
1e6feb95 1546 DEFAULT_wxUSE_CHOICE=no
10f2d63a
VZ
1547 DEFAULT_wxUSE_COMBOBOX=no
1548 DEFAULT_wxUSE_GAUGE=no
1549 DEFAULT_wxUSE_GRID=no
1550 DEFAULT_wxUSE_NEW_GRID=no
1551 DEFAULT_wxUSE_IMAGLIST=no
1552 DEFAULT_wxUSE_LISTBOX=no
1553 DEFAULT_wxUSE_LISTCTRL=no
1554 DEFAULT_wxUSE_NOTEBOOK=no
24176f2c 1555 DEFAULT_wxUSE_PROPSHEET=no
10f2d63a
VZ
1556 DEFAULT_wxUSE_RADIOBOX=no
1557 DEFAULT_wxUSE_RADIOBTN=no
1558 DEFAULT_wxUSE_SASH=no
1559 DEFAULT_wxUSE_SCROLLBAR=no
1560 DEFAULT_wxUSE_SLIDER=no
1561 DEFAULT_wxUSE_SPINBTN=no
56cfaa52 1562 DEFAULT_wxUSE_SPINCTRL=no
10f2d63a
VZ
1563 DEFAULT_wxUSE_SPLITTER=no
1564 DEFAULT_wxUSE_STATBMP=no
1565 DEFAULT_wxUSE_STATBOX=no
1566 DEFAULT_wxUSE_STATLINE=no
1e6feb95 1567 DEFAULT_wxUSE_STATTEXT=no
10f2d63a
VZ
1568 DEFAULT_wxUSE_STATUSBAR=yes
1569 DEFAULT_wxUSE_TABDIALOG=no
1e6feb95 1570 DEFAULT_wxUSE_TEXTCTRL=no
1db8dc4a 1571 DEFAULT_wxUSE_TOGGLEBTN=no
10f2d63a 1572 DEFAULT_wxUSE_TOOLBAR=no
360d6699
VZ
1573 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
1574 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
10f2d63a 1575 DEFAULT_wxUSE_TREECTRL=no
9f41d601 1576 DEFAULT_wxUSE_POPUPWIN=no
9926e4a4 1577 DEFAULT_wxUSE_TIPWINDOW=no
10f2d63a
VZ
1578
1579 DEFAULT_wxUSE_UNICODE=no
a72a4bfa 1580 DEFAULT_wxUSE_UNICODE_MSLU=no
10f2d63a
VZ
1581 DEFAULT_wxUSE_WCSRTOMBS=no
1582
edae8572 1583 DEFAULT_wxUSE_PALETTE=no
0046ff7c 1584 DEFAULT_wxUSE_IMAGE=no
10f2d63a
VZ
1585 DEFAULT_wxUSE_GIF=no
1586 DEFAULT_wxUSE_PCX=no
1587 DEFAULT_wxUSE_PNM=no
0046ff7c 1588 DEFAULT_wxUSE_XPM=no
10f2d63a 1589else
1e6feb95
VZ
1590 DEFAULT_wxUSE_UNIVERSAL=no
1591
10f2d63a
VZ
1592 DEFAULT_wxUSE_THREADS=yes
1593
1594 DEFAULT_wxUSE_SHARED=yes
3a922bb4 1595 DEFAULT_wxUSE_SONAME=no
10f2d63a
VZ
1596 DEFAULT_wxUSE_OPTIMISE=yes
1597 DEFAULT_wxUSE_PROFILE=no
1598 DEFAULT_wxUSE_NO_DEPS=no
f676c7ff
MB
1599 DEFAULT_wxUSE_NO_RTTI=yes
1600 DEFAULT_wxUSE_NO_EXCEPTIONS=yes
10f2d63a
VZ
1601 DEFAULT_wxUSE_PERMISSIVE=no
1602 DEFAULT_wxUSE_DEBUG_FLAG=no
1603 DEFAULT_wxUSE_DEBUG_INFO=no
1604 DEFAULT_wxUSE_DEBUG_GDB=no
1605 DEFAULT_wxUSE_MEM_TRACING=no
1606 DEFAULT_wxUSE_DEBUG_CONTEXT=no
1607 DEFAULT_wxUSE_DMALLOC=no
683dccda 1608 DEFAULT_wxUSE_PRECOMP=yes
10f2d63a
VZ
1609 DEFAULT_wxUSE_APPLE_IEEE=yes
1610
1611 DEFAULT_wxUSE_LOG=yes
d73be714
VZ
1612 DEFAULT_wxUSE_LOGWINDOW=yes
1613 DEFAULT_wxUSE_LOGGUI=yes
69d27ff7 1614 DEFAULT_wxUSE_LOGDIALOG=yes
10f2d63a
VZ
1615
1616 DEFAULT_wxUSE_GUI=yes
1617
831b3152 1618 DEFAULT_wxUSE_REGEX=yes
10f2d63a
VZ
1619 DEFAULT_wxUSE_ZLIB=yes
1620 DEFAULT_wxUSE_LIBPNG=yes
1621 DEFAULT_wxUSE_LIBJPEG=yes
b47c832e 1622 DEFAULT_wxUSE_LIBTIFF=yes
16b52fa1 1623 DEFAULT_wxUSE_ODBC=no
3fed1840 1624 DEFAULT_wxUSE_FREETYPE=no
bdad4e7e 1625 DEFAULT_wxUSE_OPENGL=no
10f2d63a 1626
eb4efbdc 1627 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=yes
4f3c5f06 1628 DEFAULT_wxUSE_SNGLINST_CHECKER=yes
10f2d63a 1629 DEFAULT_wxUSE_STD_IOSTREAM=no
1e6feb95
VZ
1630 DEFAULT_wxUSE_CMDLINE_PARSER=yes
1631 DEFAULT_wxUSE_DATETIME=yes
1632 DEFAULT_wxUSE_TIMEDATE=no
1633 DEFAULT_wxUSE_TIMER=yes
1634 DEFAULT_wxUSE_STOPWATCH=yes
10f2d63a 1635 DEFAULT_wxUSE_FILE=yes
1e6feb95 1636 DEFAULT_wxUSE_FFILE=yes
a3a584a7 1637 DEFAULT_wxUSE_TEXTBUFFER=yes
10f2d63a 1638 DEFAULT_wxUSE_TEXTFILE=yes
10f2d63a
VZ
1639 DEFAULT_wxUSE_WAVE=no
1640 DEFAULT_wxUSE_INTL=yes
1641 DEFAULT_wxUSE_CONFIG=yes
1e6feb95 1642 DEFAULT_wxUSE_FONTMAP=yes
10f2d63a
VZ
1643 DEFAULT_wxUSE_STREAMS=yes
1644 DEFAULT_wxUSE_SOCKETS=yes
1645 DEFAULT_wxUSE_DIALUP_MANAGER=yes
10f2d63a 1646 DEFAULT_wxUSE_JOYSTICK=yes
6bff71f8 1647 DEFAULT_wxUSE_DYNLIB_CLASS=yes
466367be 1648 DEFAULT_wxUSE_DYNAMIC_LOADER=no
b685cd9b 1649 DEFAULT_wxUSE_LONGLONG=yes
e8f65ba6 1650 DEFAULT_wxUSE_GEOMETRY=yes
10f2d63a
VZ
1651
1652 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes
1653 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes
1654 DEFAULT_wxUSE_POSTSCRIPT=yes
1655
1656 DEFAULT_wxUSE_X_RESOURCES=no
1657 DEFAULT_wxUSE_CLIPBOARD=yes
1658 DEFAULT_wxUSE_TOOLTIPS=yes
1659 DEFAULT_wxUSE_DRAG_AND_DROP=yes
24fd6d87 1660 DEFAULT_wxUSE_DRAGIMAGE=yes
10f2d63a
VZ
1661 DEFAULT_wxUSE_SPLINES=yes
1662
1663 DEFAULT_wxUSE_MDI_ARCHITECTURE=yes
1664 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes
1665 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes
1666
1667 DEFAULT_wxUSE_PROLOGIO=yes
1668 DEFAULT_wxUSE_RESOURCES=yes
1669 DEFAULT_wxUSE_CONSTRAINTS=yes
1670 DEFAULT_wxUSE_IPC=yes
1671 DEFAULT_wxUSE_HELP=yes
29fd3c0c 1672 DEFAULT_wxUSE_MS_HTML_HELP=yes
3379ed37 1673 DEFAULT_wxUSE_WXHTML_HELP=yes
24176f2c 1674 DEFAULT_wxUSE_TREELAYOUT=yes
10f2d63a 1675 DEFAULT_wxUSE_METAFILE=yes
1e6feb95 1676 DEFAULT_wxUSE_MIMETYPE=yes
3e44f09d 1677 DEFAULT_wxUSE_SYSTEM_OPTIONS=yes
10f2d63a
VZ
1678
1679 DEFAULT_wxUSE_COMMONDLGS=yes
1e6feb95
VZ
1680 DEFAULT_wxUSE_CHOICEDLG=yes
1681 DEFAULT_wxUSE_COLOURDLG=yes
10f2d63a 1682 DEFAULT_wxUSE_DIRDLG=yes
1e6feb95 1683 DEFAULT_wxUSE_FILEDLG=yes
8db37e06 1684 DEFAULT_wxUSE_FINDREPLDLG=yes
1e6feb95
VZ
1685 DEFAULT_wxUSE_FONTDLG=yes
1686 DEFAULT_wxUSE_MSGDLG=yes
1687 DEFAULT_wxUSE_NUMBERDLG=yes
10f2d63a 1688 DEFAULT_wxUSE_TEXTDLG=yes
cbca9943 1689 DEFAULT_wxUSE_SPLASH=yes
10f2d63a
VZ
1690 DEFAULT_wxUSE_STARTUP_TIPS=yes
1691 DEFAULT_wxUSE_PROGRESSDLG=yes
f33f19dd
VZ
1692 DEFAULT_wxUSE_WIZARDDLG=yes
1693
1e6feb95 1694 DEFAULT_wxUSE_MENUS=yes
10f2d63a
VZ
1695 DEFAULT_wxUSE_MINIFRAME=yes
1696 DEFAULT_wxUSE_HTML=yes
24528b0c 1697 DEFAULT_wxUSE_FILESYSTEM=yes
10f2d63a
VZ
1698 DEFAULT_wxUSE_FS_INET=yes
1699 DEFAULT_wxUSE_FS_ZIP=yes
1700 DEFAULT_wxUSE_BUSYINFO=yes
1701 DEFAULT_wxUSE_ZIPSTREAM=yes
1702 DEFAULT_wxUSE_VALIDATORS=yes
1703
1704 DEFAULT_wxUSE_ACCEL=yes
1e6feb95 1705 DEFAULT_wxUSE_BUTTON=yes
10f2d63a 1706 DEFAULT_wxUSE_BMPBUTTON=yes
1e6feb95
VZ
1707 DEFAULT_wxUSE_CALCTRL=yes
1708 DEFAULT_wxUSE_CARET=yes
10f2d63a
VZ
1709 DEFAULT_wxUSE_CHECKBOX=yes
1710 DEFAULT_wxUSE_CHECKLST=yes
1711 DEFAULT_wxUSE_CHOICE=yes
1712 DEFAULT_wxUSE_COMBOBOX=yes
1713 DEFAULT_wxUSE_GAUGE=yes
1714 DEFAULT_wxUSE_GRID=yes
cc977e5f 1715 DEFAULT_wxUSE_NEW_GRID=yes
10f2d63a
VZ
1716 DEFAULT_wxUSE_IMAGLIST=yes
1717 DEFAULT_wxUSE_LISTBOX=yes
1718 DEFAULT_wxUSE_LISTCTRL=yes
1719 DEFAULT_wxUSE_NOTEBOOK=yes
24176f2c 1720 DEFAULT_wxUSE_PROPSHEET=yes
10f2d63a
VZ
1721 DEFAULT_wxUSE_RADIOBOX=yes
1722 DEFAULT_wxUSE_RADIOBTN=yes
1723 DEFAULT_wxUSE_SASH=yes
1724 DEFAULT_wxUSE_SCROLLBAR=yes
1725 DEFAULT_wxUSE_SLIDER=yes
1726 DEFAULT_wxUSE_SPINBTN=yes
56cfaa52 1727 DEFAULT_wxUSE_SPINCTRL=yes
10f2d63a
VZ
1728 DEFAULT_wxUSE_SPLITTER=yes
1729 DEFAULT_wxUSE_STATBMP=yes
1730 DEFAULT_wxUSE_STATBOX=yes
1731 DEFAULT_wxUSE_STATLINE=yes
1e6feb95 1732 DEFAULT_wxUSE_STATTEXT=yes
10f2d63a
VZ
1733 DEFAULT_wxUSE_STATUSBAR=yes
1734 DEFAULT_wxUSE_TABDIALOG=no
1e6feb95 1735 DEFAULT_wxUSE_TEXTCTRL=yes
1db8dc4a 1736 DEFAULT_wxUSE_TOGGLEBTN=yes
10f2d63a 1737 DEFAULT_wxUSE_TOOLBAR=yes
360d6699
VZ
1738 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
1739 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
10f2d63a 1740 DEFAULT_wxUSE_TREECTRL=yes
9f41d601 1741 DEFAULT_wxUSE_POPUPWIN=yes
9926e4a4 1742 DEFAULT_wxUSE_TIPWINDOW=yes
10f2d63a
VZ
1743
1744 DEFAULT_wxUSE_UNICODE=no
a72a4bfa 1745 DEFAULT_wxUSE_UNICODE_MSLU=yes
10f2d63a
VZ
1746 DEFAULT_wxUSE_WCSRTOMBS=no
1747
edae8572 1748 DEFAULT_wxUSE_PALETTE=yes
0046ff7c 1749 DEFAULT_wxUSE_IMAGE=yes
10f2d63a
VZ
1750 DEFAULT_wxUSE_GIF=yes
1751 DEFAULT_wxUSE_PCX=yes
1752 DEFAULT_wxUSE_PNM=yes
0046ff7c 1753 DEFAULT_wxUSE_XPM=yes
10f2d63a
VZ
1754fi
1755
698dcdb6
VZ
1756
1757
10f2d63a
VZ
1758for toolkit in `echo $ALL_TOOLKITS`; do
1759 LINE=`grep "wxUSE_$toolkit" ${wx_arg_cache_file}`
1760 if test "x$LINE" != x ; then
1761 has_toolkit_in_cache=1
1762 eval "DEFAULT_$LINE"
1763 eval "CACHE_$toolkit=1"
1764 fi
1765done
1766
698dcdb6
VZ
1767
1768
1769 echo $ac_n "checking for --enable-gui""... $ac_c" 1>&6
a1622950 1770echo "configure:1771: checking for --enable-gui" >&5
10f2d63a
VZ
1771 no_cache=0
1772 # Check whether --enable-gui or --disable-gui was given.
1773if test "${enable_gui+set}" = set; then
1774 enableval="$enable_gui"
698dcdb6 1775
10f2d63a
VZ
1776 if test "$enableval" = yes; then
1777 ac_cv_use_gui='wxUSE_GUI=yes'
1778 else
1779 ac_cv_use_gui='wxUSE_GUI=no'
1780 fi
698dcdb6 1781
10f2d63a 1782else
698dcdb6 1783
10f2d63a
VZ
1784 LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}`
1785 if test "x$LINE" != x ; then
1786 eval "DEFAULT_$LINE"
1787 else
1788 no_cache=1
1789 fi
1790
1791 ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI
698dcdb6
VZ
1792
1793fi
10f2d63a
VZ
1794
1795
1796 eval "$ac_cv_use_gui"
1797 if test "$no_cache" != 1; then
1798 echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp
1799 fi
1800
1801 if test "$wxUSE_GUI" = yes; then
698dcdb6 1802 echo "$ac_t""yes" 1>&6
10f2d63a 1803 else
698dcdb6 1804 echo "$ac_t""no" 1>&6
10f2d63a 1805 fi
698dcdb6 1806
10f2d63a 1807
b12915c1 1808if test "$wxUSE_GUI" = "yes"; then
10f2d63a 1809
1e6feb95
VZ
1810
1811 echo $ac_n "checking for --enable-universal""... $ac_c" 1>&6
a1622950 1812echo "configure:1813: checking for --enable-universal" >&5
1e6feb95
VZ
1813 no_cache=0
1814 # Check whether --enable-universal or --disable-universal was given.
1815if test "${enable_universal+set}" = set; then
1816 enableval="$enable_universal"
1817
1818 if test "$enableval" = yes; then
1819 ac_cv_use_universal='wxUSE_UNIVERSAL=yes'
1820 else
1821 ac_cv_use_universal='wxUSE_UNIVERSAL=no'
1822 fi
1823
1824else
1825
1826 LINE=`grep "wxUSE_UNIVERSAL" ${wx_arg_cache_file}`
1827 if test "x$LINE" != x ; then
1828 eval "DEFAULT_$LINE"
1829 else
1830 no_cache=1
1831 fi
1832
1833 ac_cv_use_universal='wxUSE_UNIVERSAL='$DEFAULT_wxUSE_UNIVERSAL
1834
1835fi
1836
1837
1838 eval "$ac_cv_use_universal"
1839 if test "$no_cache" != 1; then
1840 echo $ac_cv_use_universal >> ${wx_arg_cache_file}.tmp
1841 fi
1842
1843 if test "$wxUSE_UNIVERSAL" = yes; then
1844 echo "$ac_t""yes" 1>&6
1845 else
1846 echo "$ac_t""no" 1>&6
1847 fi
1848
10f2d63a
VZ
1849# Check whether --with-gtk or --without-gtk was given.
1850if test "${with_gtk+set}" = set; then
1851 withval="$with_gtk"
1852 wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1
698dcdb6 1853fi
10f2d63a
VZ
1854
1855# Check whether --with-motif or --without-motif was given.
1856if test "${with_motif+set}" = set; then
1857 withval="$with_motif"
1858 wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1
698dcdb6 1859fi
10f2d63a 1860
b4085ce6
GD
1861# Check whether --with-mac or --without-mac was given.
1862if test "${with_mac+set}" = set; then
1863 withval="$with_mac"
1864 wxUSE_MAC="$withval" TOOLKIT_GIVEN=1
698dcdb6 1865fi
b4085ce6 1866
10f2d63a
VZ
1867# Check whether --with-wine or --without-wine was given.
1868if test "${with_wine+set}" = set; then
1869 withval="$with_wine"
1870 wxUSE_WINE="$withval" CACHE_WINE=1 TOOLKIT_GIVEN=1
698dcdb6 1871fi
10f2d63a 1872
77e13408
RL
1873# Check whether --with-msw or --without-msw was given.
1874if test "${with_msw+set}" = set; then
1875 withval="$with_msw"
1876 wxUSE_MSW="$withval" CACHE_MSW TOOLKIT_GIVEN=1
698dcdb6 1877fi
10f2d63a 1878
e07802fc
VZ
1879# Check whether --with-pm or --without-pm was given.
1880if test "${with_pm+set}" = set; then
1881 withval="$with_pm"
1882 wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1
698dcdb6
VZ
1883fi
1884
1e6feb95
VZ
1885# Check whether --with-mgl or --without-mgl was given.
1886if test "${with_mgl+set}" = set; then
1887 withval="$with_mgl"
1888 wxUSE_MGL="$withval" CACHE_MGL=1 TOOLKIT_GIVEN=1
1889fi
1890
1725144d
RR
1891# Check whether --with-microwin or --without-microwin was given.
1892if test "${with_microwin+set}" = set; then
1893 withval="$with_microwin"
1894 wxUSE_MICROWIN="$withval" CACHE_MICROWIN=1 TOOLKIT_GIVEN=1
1895fi
1896
10f2d63a 1897
8168de4c
VZ
1898# Check whether --enable-gtk2 or --disable-gtk2 was given.
1899if test "${enable_gtk2+set}" = set; then
1900 enableval="$enable_gtk2"
1901 wxUSE_GTK2=1
10f2d63a 1902else
8168de4c 1903 wxUSE_GTK2=0
698dcdb6
VZ
1904fi
1905
703e0a69 1906
1e487827 1907
698dcdb6 1908 echo $ac_n "checking for --with-libpng""... $ac_c" 1>&6
a1622950 1909echo "configure:1910: checking for --with-libpng" >&5
698dcdb6
VZ
1910 no_cache=0
1911 # Check whether --with-libpng or --without-libpng was given.
b12915c1
VZ
1912if test "${with_libpng+set}" = set; then
1913 withval="$with_libpng"
698dcdb6 1914
10f2d63a 1915 if test "$withval" = yes; then
b12915c1 1916 ac_cv_use_libpng='wxUSE_LIBPNG=yes'
422107f9 1917 elif test "$withval" = no; then
b12915c1 1918 ac_cv_use_libpng='wxUSE_LIBPNG=no'
422107f9
VZ
1919 elif test "$withval" = sys; then
1920 ac_cv_use_libpng='wxUSE_LIBPNG=sys'
4f14bcd8
GD
1921 elif test "$withval" = builtin; then
1922 ac_cv_use_libpng='wxUSE_LIBPNG=builtin'
422107f9 1923 else
4f14bcd8 1924 { echo "configure: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" 1>&2; exit 1; }
10f2d63a 1925 fi
698dcdb6 1926
10f2d63a 1927else
698dcdb6 1928
b12915c1 1929 LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}`
10f2d63a
VZ
1930 if test "x$LINE" != x ; then
1931 eval "DEFAULT_$LINE"
1932 else
1933 no_cache=1
1934 fi
1935
b12915c1 1936 ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG
698dcdb6
VZ
1937
1938fi
10f2d63a
VZ
1939
1940
b12915c1 1941 eval "$ac_cv_use_libpng"
10f2d63a 1942 if test "$no_cache" != 1; then
b12915c1 1943 echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
1944 fi
1945
b12915c1 1946 if test "$wxUSE_LIBPNG" = yes; then
698dcdb6 1947 echo "$ac_t""yes" 1>&6
422107f9 1948 elif test "$wxUSE_LIBPNG" = no; then
698dcdb6 1949 echo "$ac_t""no" 1>&6
422107f9 1950 elif test "$wxUSE_LIBPNG" = sys; then
698dcdb6 1951 echo "$ac_t""system version" 1>&6
4f14bcd8
GD
1952 elif test "$wxUSE_LIBPNG" = builtin; then
1953 echo "$ac_t""builtin version" 1>&6
422107f9 1954 else
4f14bcd8 1955 { echo "configure: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" 1>&2; exit 1; }
10f2d63a 1956 fi
698dcdb6 1957
10f2d63a 1958
698dcdb6 1959 echo $ac_n "checking for --with-libjpeg""... $ac_c" 1>&6
a1622950 1960echo "configure:1961: checking for --with-libjpeg" >&5
10f2d63a 1961 no_cache=0
698dcdb6 1962 # Check whether --with-libjpeg or --without-libjpeg was given.
b12915c1
VZ
1963if test "${with_libjpeg+set}" = set; then
1964 withval="$with_libjpeg"
698dcdb6 1965
10f2d63a 1966 if test "$withval" = yes; then
b12915c1 1967 ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes'
422107f9 1968 elif test "$withval" = no; then
b12915c1 1969 ac_cv_use_libjpeg='wxUSE_LIBJPEG=no'
422107f9
VZ
1970 elif test "$withval" = sys; then
1971 ac_cv_use_libjpeg='wxUSE_LIBJPEG=sys'
4f14bcd8
GD
1972 elif test "$withval" = builtin; then
1973 ac_cv_use_libjpeg='wxUSE_LIBJPEG=builtin'
422107f9 1974 else
4f14bcd8 1975 { echo "configure: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" 1>&2; exit 1; }
10f2d63a 1976 fi
698dcdb6 1977
10f2d63a 1978else
698dcdb6 1979
b12915c1 1980 LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}`
10f2d63a
VZ
1981 if test "x$LINE" != x ; then
1982 eval "DEFAULT_$LINE"
1983 else
1984 no_cache=1
1985 fi
1986
b12915c1 1987 ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG
698dcdb6
VZ
1988
1989fi
10f2d63a
VZ
1990
1991
b12915c1 1992 eval "$ac_cv_use_libjpeg"
10f2d63a 1993 if test "$no_cache" != 1; then
b12915c1 1994 echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
1995 fi
1996
b12915c1 1997 if test "$wxUSE_LIBJPEG" = yes; then
698dcdb6 1998 echo "$ac_t""yes" 1>&6
422107f9 1999 elif test "$wxUSE_LIBJPEG" = no; then
698dcdb6 2000 echo "$ac_t""no" 1>&6
422107f9 2001 elif test "$wxUSE_LIBJPEG" = sys; then
698dcdb6 2002 echo "$ac_t""system version" 1>&6
4f14bcd8
GD
2003 elif test "$wxUSE_LIBJPEG" = builtin; then
2004 echo "$ac_t""builtin version" 1>&6
422107f9 2005 else
4f14bcd8 2006 { echo "configure: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" 1>&2; exit 1; }
10f2d63a 2007 fi
698dcdb6 2008
10f2d63a 2009
698dcdb6 2010 echo $ac_n "checking for --with-libtiff""... $ac_c" 1>&6
a1622950 2011echo "configure:2012: checking for --with-libtiff" >&5
10f2d63a 2012 no_cache=0
698dcdb6 2013 # Check whether --with-libtiff or --without-libtiff was given.
b12915c1
VZ
2014if test "${with_libtiff+set}" = set; then
2015 withval="$with_libtiff"
698dcdb6 2016
10f2d63a 2017 if test "$withval" = yes; then
b12915c1 2018 ac_cv_use_libtiff='wxUSE_LIBTIFF=yes'
0dcf9893 2019 elif test "$withval" = no; then
b12915c1 2020 ac_cv_use_libtiff='wxUSE_LIBTIFF=no'
0dcf9893
VZ
2021 elif test "$withval" = sys; then
2022 ac_cv_use_libtiff='wxUSE_LIBTIFF=sys'
4f14bcd8
GD
2023 elif test "$withval" = builtin; then
2024 ac_cv_use_libtiff='wxUSE_LIBTIFF=builtin'
0dcf9893 2025 else
4f14bcd8 2026 { echo "configure: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" 1>&2; exit 1; }
10f2d63a 2027 fi
698dcdb6 2028
10f2d63a 2029else
698dcdb6 2030
b12915c1 2031 LINE=`grep "wxUSE_LIBTIFF" ${wx_arg_cache_file}`
10f2d63a
VZ
2032 if test "x$LINE" != x ; then
2033 eval "DEFAULT_$LINE"
2034 else
2035 no_cache=1
2036 fi
2037
b12915c1 2038 ac_cv_use_libtiff='wxUSE_LIBTIFF='$DEFAULT_wxUSE_LIBTIFF
698dcdb6
VZ
2039
2040fi
10f2d63a
VZ
2041
2042
b12915c1 2043 eval "$ac_cv_use_libtiff"
10f2d63a 2044 if test "$no_cache" != 1; then
b12915c1 2045 echo $ac_cv_use_libtiff >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
2046 fi
2047
b12915c1 2048 if test "$wxUSE_LIBTIFF" = yes; then
698dcdb6 2049 echo "$ac_t""yes" 1>&6
0dcf9893 2050 elif test "$wxUSE_LIBTIFF" = no; then
698dcdb6 2051 echo "$ac_t""no" 1>&6
0dcf9893 2052 elif test "$wxUSE_LIBTIFF" = sys; then
698dcdb6 2053 echo "$ac_t""system version" 1>&6
4f14bcd8
GD
2054 elif test "$wxUSE_LIBTIFF" = builtin; then
2055 echo "$ac_t""builtin version" 1>&6
0dcf9893 2056 else
4f14bcd8 2057 { echo "configure: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" 1>&2; exit 1; }
10f2d63a 2058 fi
698dcdb6 2059
10f2d63a 2060
698dcdb6 2061 echo $ac_n "checking for --with-freetype""... $ac_c" 1>&6
a1622950 2062echo "configure:2063: checking for --with-freetype" >&5
3fed1840 2063 no_cache=0
698dcdb6 2064 # Check whether --with-freetype or --without-freetype was given.
3fed1840
RR
2065if test "${with_freetype+set}" = set; then
2066 withval="$with_freetype"
698dcdb6 2067
3fed1840
RR
2068 if test "$withval" = yes; then
2069 ac_cv_use_freetype='wxUSE_FREETYPE=yes'
2070 elif test "$withval" = no; then
2071 ac_cv_use_freetype='wxUSE_FREETYPE=no'
2072 elif test "$withval" = sys; then
2073 ac_cv_use_freetype='wxUSE_FREETYPE=sys'
4f14bcd8
GD
2074 elif test "$withval" = builtin; then
2075 ac_cv_use_freetype='wxUSE_FREETYPE=builtin'
3fed1840 2076 else
4f14bcd8 2077 { echo "configure: error: Invalid value for --with-freetype: should be yes, no, sys, or builtin" 1>&2; exit 1; }
3fed1840 2078 fi
698dcdb6 2079
3fed1840 2080else
698dcdb6 2081
3fed1840
RR
2082 LINE=`grep "wxUSE_FREETYPE" ${wx_arg_cache_file}`
2083 if test "x$LINE" != x ; then
2084 eval "DEFAULT_$LINE"
2085 else
2086 no_cache=1
2087 fi
2088
2089 ac_cv_use_freetype='wxUSE_FREETYPE='$DEFAULT_wxUSE_FREETYPE
698dcdb6
VZ
2090
2091fi
3fed1840
RR
2092
2093
2094 eval "$ac_cv_use_freetype"
2095 if test "$no_cache" != 1; then
2096 echo $ac_cv_use_freetype >> ${wx_arg_cache_file}.tmp
2097 fi
2098
2099 if test "$wxUSE_FREETYPE" = yes; then
698dcdb6 2100 echo "$ac_t""yes" 1>&6
3fed1840 2101 elif test "$wxUSE_FREETYPE" = no; then
698dcdb6 2102 echo "$ac_t""no" 1>&6
3fed1840 2103 elif test "$wxUSE_FREETYPE" = sys; then
698dcdb6 2104 echo "$ac_t""system version" 1>&6
4f14bcd8
GD
2105 elif test "$wxUSE_FREETYPE" = builtin; then
2106 echo "$ac_t""builtin version" 1>&6
3fed1840 2107 else
4f14bcd8 2108 { echo "configure: error: Invalid value for --with-freetype: should be yes, no, sys, or builtin" 1>&2; exit 1; }
3fed1840 2109 fi
698dcdb6 2110
3fed1840 2111
698dcdb6 2112 echo $ac_n "checking for --with-opengl""... $ac_c" 1>&6
a1622950 2113echo "configure:2114: checking for --with-opengl" >&5
10f2d63a 2114 no_cache=0
698dcdb6 2115 # Check whether --with-opengl or --without-opengl was given.
b12915c1
VZ
2116if test "${with_opengl+set}" = set; then
2117 withval="$with_opengl"
698dcdb6 2118
10f2d63a 2119 if test "$withval" = yes; then
b12915c1 2120 ac_cv_use_opengl='wxUSE_OPENGL=yes'
10f2d63a 2121 else
b12915c1 2122 ac_cv_use_opengl='wxUSE_OPENGL=no'
10f2d63a 2123 fi
698dcdb6 2124
10f2d63a 2125else
698dcdb6 2126
b12915c1 2127 LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}`
10f2d63a
VZ
2128 if test "x$LINE" != x ; then
2129 eval "DEFAULT_$LINE"
2130 else
2131 no_cache=1
2132 fi
2133
b12915c1 2134 ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL
698dcdb6
VZ
2135
2136fi
10f2d63a
VZ
2137
2138
b12915c1 2139 eval "$ac_cv_use_opengl"
10f2d63a 2140 if test "$no_cache" != 1; then
b12915c1 2141 echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
2142 fi
2143
b12915c1 2144 if test "$wxUSE_OPENGL" = yes; then
698dcdb6 2145 echo "$ac_t""yes" 1>&6
10f2d63a 2146 else
698dcdb6 2147 echo "$ac_t""no" 1>&6
10f2d63a 2148 fi
698dcdb6 2149
10f2d63a 2150
b12915c1
VZ
2151fi
2152
1e487827 2153
698dcdb6 2154 echo $ac_n "checking for --with-dmalloc""... $ac_c" 1>&6
a1622950 2155echo "configure:2156: checking for --with-dmalloc" >&5
698dcdb6
VZ
2156 no_cache=0
2157 # Check whether --with-dmalloc or --without-dmalloc was given.
b12915c1
VZ
2158if test "${with_dmalloc+set}" = set; then
2159 withval="$with_dmalloc"
698dcdb6 2160
c7a2bf27 2161 if test "$withval" = yes; then
b12915c1 2162 ac_cv_use_dmalloc='wxUSE_DMALLOC=yes'
c7a2bf27 2163 else
b12915c1 2164 ac_cv_use_dmalloc='wxUSE_DMALLOC=no'
c7a2bf27 2165 fi
698dcdb6 2166
c7a2bf27 2167else
698dcdb6 2168
b12915c1 2169 LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}`
c7a2bf27
RR
2170 if test "x$LINE" != x ; then
2171 eval "DEFAULT_$LINE"
2172 else
2173 no_cache=1
2174 fi
2175
b12915c1 2176 ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC
698dcdb6
VZ
2177
2178fi
c7a2bf27
RR
2179
2180
b12915c1 2181 eval "$ac_cv_use_dmalloc"
c7a2bf27 2182 if test "$no_cache" != 1; then
b12915c1 2183 echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp
c7a2bf27
RR
2184 fi
2185
b12915c1 2186 if test "$wxUSE_DMALLOC" = yes; then
698dcdb6 2187 echo "$ac_t""yes" 1>&6
c7a2bf27 2188 else
698dcdb6 2189 echo "$ac_t""no" 1>&6
c7a2bf27 2190 fi
698dcdb6 2191
c7a2bf27 2192
3e44f09d 2193 echo $ac_n "checking for --with-regex""... $ac_c" 1>&6
a1622950 2194echo "configure:2195: checking for --with-regex" >&5
3e44f09d
VZ
2195 no_cache=0
2196 # Check whether --with-regex or --without-regex was given.
2197if test "${with_regex+set}" = set; then
2198 withval="$with_regex"
2199
2200 if test "$withval" = yes; then
2201 ac_cv_use_regex='wxUSE_REGEX=yes'
2202 elif test "$withval" = no; then
2203 ac_cv_use_regex='wxUSE_REGEX=no'
2204 elif test "$withval" = sys; then
2205 ac_cv_use_regex='wxUSE_REGEX=sys'
4f14bcd8
GD
2206 elif test "$withval" = builtin; then
2207 ac_cv_use_regex='wxUSE_REGEX=builtin'
3e44f09d 2208 else
4f14bcd8 2209 { echo "configure: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" 1>&2; exit 1; }
3e44f09d
VZ
2210 fi
2211
2212else
2213
2214 LINE=`grep "wxUSE_REGEX" ${wx_arg_cache_file}`
2215 if test "x$LINE" != x ; then
2216 eval "DEFAULT_$LINE"
2217 else
2218 no_cache=1
2219 fi
2220
2221 ac_cv_use_regex='wxUSE_REGEX='$DEFAULT_wxUSE_REGEX
2222
2223fi
2224
2225
2226 eval "$ac_cv_use_regex"
2227 if test "$no_cache" != 1; then
2228 echo $ac_cv_use_regex >> ${wx_arg_cache_file}.tmp
2229 fi
2230
2231 if test "$wxUSE_REGEX" = yes; then
2232 echo "$ac_t""yes" 1>&6
2233 elif test "$wxUSE_REGEX" = no; then
2234 echo "$ac_t""no" 1>&6
2235 elif test "$wxUSE_REGEX" = sys; then
2236 echo "$ac_t""system version" 1>&6
4f14bcd8
GD
2237 elif test "$wxUSE_REGEX" = builtin; then
2238 echo "$ac_t""builtin version" 1>&6
3e44f09d 2239 else
4f14bcd8 2240 { echo "configure: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" 1>&2; exit 1; }
3e44f09d
VZ
2241 fi
2242
2243
698dcdb6 2244 echo $ac_n "checking for --with-zlib""... $ac_c" 1>&6
a1622950 2245echo "configure:2246: checking for --with-zlib" >&5
10f2d63a 2246 no_cache=0
698dcdb6 2247 # Check whether --with-zlib or --without-zlib was given.
b12915c1
VZ
2248if test "${with_zlib+set}" = set; then
2249 withval="$with_zlib"
698dcdb6 2250
10f2d63a 2251 if test "$withval" = yes; then
b12915c1 2252 ac_cv_use_zlib='wxUSE_ZLIB=yes'
422107f9 2253 elif test "$withval" = no; then
b12915c1 2254 ac_cv_use_zlib='wxUSE_ZLIB=no'
422107f9
VZ
2255 elif test "$withval" = sys; then
2256 ac_cv_use_zlib='wxUSE_ZLIB=sys'
4f14bcd8
GD
2257 elif test "$withval" = builtin; then
2258 ac_cv_use_zlib='wxUSE_ZLIB=builtin'
422107f9 2259 else
4f14bcd8 2260 { echo "configure: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" 1>&2; exit 1; }
10f2d63a 2261 fi
698dcdb6 2262
10f2d63a 2263else
698dcdb6 2264
b12915c1 2265 LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}`
10f2d63a
VZ
2266 if test "x$LINE" != x ; then
2267 eval "DEFAULT_$LINE"
2268 else
2269 no_cache=1
2270 fi
2271
b12915c1 2272 ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB
698dcdb6
VZ
2273
2274fi
10f2d63a
VZ
2275
2276
b12915c1 2277 eval "$ac_cv_use_zlib"
10f2d63a 2278 if test "$no_cache" != 1; then
b12915c1 2279 echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
2280 fi
2281
b12915c1 2282 if test "$wxUSE_ZLIB" = yes; then
698dcdb6 2283 echo "$ac_t""yes" 1>&6
422107f9 2284 elif test "$wxUSE_ZLIB" = no; then
698dcdb6 2285 echo "$ac_t""no" 1>&6
422107f9 2286 elif test "$wxUSE_ZLIB" = sys; then
698dcdb6 2287 echo "$ac_t""system version" 1>&6
4f14bcd8
GD
2288 elif test "$wxUSE_ZLIB" = builtin; then
2289 echo "$ac_t""builtin version" 1>&6
422107f9 2290 else
4f14bcd8 2291 { echo "configure: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" 1>&2; exit 1; }
10f2d63a 2292 fi
698dcdb6 2293
10f2d63a 2294
698dcdb6 2295 echo $ac_n "checking for --with-odbc""... $ac_c" 1>&6
a1622950 2296echo "configure:2297: checking for --with-odbc" >&5
10f2d63a 2297 no_cache=0
698dcdb6 2298 # Check whether --with-odbc or --without-odbc was given.
10f2d63a
VZ
2299if test "${with_odbc+set}" = set; then
2300 withval="$with_odbc"
698dcdb6 2301
10f2d63a
VZ
2302 if test "$withval" = yes; then
2303 ac_cv_use_odbc='wxUSE_ODBC=yes'
2304 else
2305 ac_cv_use_odbc='wxUSE_ODBC=no'
2306 fi
698dcdb6 2307
10f2d63a 2308else
698dcdb6 2309
10f2d63a
VZ
2310 LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}`
2311 if test "x$LINE" != x ; then
2312 eval "DEFAULT_$LINE"
2313 else
2314 no_cache=1
2315 fi
2316
2317 ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC
698dcdb6
VZ
2318
2319fi
10f2d63a
VZ
2320
2321
2322 eval "$ac_cv_use_odbc"
2323 if test "$no_cache" != 1; then
2324 echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp
2325 fi
2326
2327 if test "$wxUSE_ODBC" = yes; then
698dcdb6 2328 echo "$ac_t""yes" 1>&6
10f2d63a 2329 else
698dcdb6 2330 echo "$ac_t""no" 1>&6
10f2d63a 2331 fi
698dcdb6
VZ
2332
2333
10f2d63a 2334
698dcdb6 2335
698dcdb6 2336 echo $ac_n "checking for --enable-shared""... $ac_c" 1>&6
a1622950 2337echo "configure:2338: checking for --enable-shared" >&5
10f2d63a
VZ
2338 no_cache=0
2339 # Check whether --enable-shared or --disable-shared was given.
2340if test "${enable_shared+set}" = set; then
2341 enableval="$enable_shared"
698dcdb6 2342
10f2d63a
VZ
2343 if test "$enableval" = yes; then
2344 ac_cv_use_shared='wxUSE_SHARED=yes'
2345 else
2346 ac_cv_use_shared='wxUSE_SHARED=no'
2347 fi
698dcdb6 2348
10f2d63a 2349else
698dcdb6 2350
10f2d63a
VZ
2351 LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}`
2352 if test "x$LINE" != x ; then
2353 eval "DEFAULT_$LINE"
2354 else
2355 no_cache=1
2356 fi
2357
2358 ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED
698dcdb6
VZ
2359
2360fi
10f2d63a
VZ
2361
2362
2363 eval "$ac_cv_use_shared"
2364 if test "$no_cache" != 1; then
2365 echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp
2366 fi
2367
2368 if test "$wxUSE_SHARED" = yes; then
698dcdb6 2369 echo "$ac_t""yes" 1>&6
10f2d63a 2370 else
698dcdb6 2371 echo "$ac_t""no" 1>&6
10f2d63a 2372 fi
698dcdb6 2373
10f2d63a 2374
3a922bb4 2375 echo $ac_n "checking for --enable-soname""... $ac_c" 1>&6
a1622950 2376echo "configure:2377: checking for --enable-soname" >&5
00cf1208 2377 no_cache=0
3a922bb4
RL
2378 # Check whether --enable-soname or --disable-soname was given.
2379if test "${enable_soname+set}" = set; then
2380 enableval="$enable_soname"
698dcdb6 2381
00cf1208 2382 if test "$enableval" = yes; then
3a922bb4 2383 ac_cv_use_soname='wxUSE_SONAME=yes'
00cf1208 2384 else
3a922bb4 2385 ac_cv_use_soname='wxUSE_SONAME=no'
00cf1208 2386 fi
698dcdb6 2387
00cf1208 2388else
698dcdb6 2389
3a922bb4 2390 LINE=`grep "wxUSE_SONAME" ${wx_arg_cache_file}`
00cf1208
RR
2391 if test "x$LINE" != x ; then
2392 eval "DEFAULT_$LINE"
2393 else
2394 no_cache=1
2395 fi
2396
3a922bb4 2397 ac_cv_use_soname='wxUSE_SONAME='$DEFAULT_wxUSE_SONAME
698dcdb6
VZ
2398
2399fi
00cf1208
RR
2400
2401
3a922bb4 2402 eval "$ac_cv_use_soname"
00cf1208 2403 if test "$no_cache" != 1; then
3a922bb4 2404 echo $ac_cv_use_soname >> ${wx_arg_cache_file}.tmp
00cf1208
RR
2405 fi
2406
3a922bb4 2407 if test "$wxUSE_SONAME" = yes; then
698dcdb6 2408 echo "$ac_t""yes" 1>&6
00cf1208 2409 else
698dcdb6 2410 echo "$ac_t""no" 1>&6
00cf1208 2411 fi
698dcdb6 2412
00cf1208 2413
698dcdb6 2414 echo $ac_n "checking for --enable-optimise""... $ac_c" 1>&6
a1622950 2415echo "configure:2416: checking for --enable-optimise" >&5
10f2d63a
VZ
2416 no_cache=0
2417 # Check whether --enable-optimise or --disable-optimise was given.
2418if test "${enable_optimise+set}" = set; then
2419 enableval="$enable_optimise"
698dcdb6 2420
10f2d63a
VZ
2421 if test "$enableval" = yes; then
2422 ac_cv_use_optimise='wxUSE_OPTIMISE=yes'
2423 else
2424 ac_cv_use_optimise='wxUSE_OPTIMISE=no'
2425 fi
698dcdb6 2426
10f2d63a 2427else
698dcdb6 2428
10f2d63a
VZ
2429 LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}`
2430 if test "x$LINE" != x ; then
2431 eval "DEFAULT_$LINE"
2432 else
2433 no_cache=1
2434 fi
2435
2436 ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE
698dcdb6
VZ
2437
2438fi
10f2d63a
VZ
2439
2440
2441 eval "$ac_cv_use_optimise"
2442 if test "$no_cache" != 1; then
2443 echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp
2444 fi
2445
2446 if test "$wxUSE_OPTIMISE" = yes; then
698dcdb6 2447 echo "$ac_t""yes" 1>&6
10f2d63a 2448 else
698dcdb6 2449 echo "$ac_t""no" 1>&6
10f2d63a 2450 fi
698dcdb6 2451
10f2d63a 2452
698dcdb6 2453 echo $ac_n "checking for --enable-debug""... $ac_c" 1>&6
a1622950 2454echo "configure:2455: checking for --enable-debug" >&5
10f2d63a
VZ
2455 no_cache=0
2456 # Check whether --enable-debug or --disable-debug was given.
2457if test "${enable_debug+set}" = set; then
2458 enableval="$enable_debug"
698dcdb6 2459
10f2d63a
VZ
2460 if test "$enableval" = yes; then
2461 ac_cv_use_debug='wxUSE_DEBUG=yes'
2462 else
2463 ac_cv_use_debug='wxUSE_DEBUG=no'
2464 fi
698dcdb6 2465
10f2d63a 2466else
698dcdb6 2467
10f2d63a
VZ
2468 LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}`
2469 if test "x$LINE" != x ; then
2470 eval "DEFAULT_$LINE"
2471 else
2472 no_cache=1
2473 fi
2474
2475 ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG
698dcdb6
VZ
2476
2477fi
10f2d63a
VZ
2478
2479
2480 eval "$ac_cv_use_debug"
2481 if test "$no_cache" != 1; then
2482 echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp
2483 fi
2484
2485 if test "$wxUSE_DEBUG" = yes; then
698dcdb6 2486 echo "$ac_t""yes" 1>&6
10f2d63a 2487 else
698dcdb6 2488 echo "$ac_t""no" 1>&6
10f2d63a 2489 fi
698dcdb6 2490
10f2d63a 2491
683dccda
GD
2492
2493 echo $ac_n "checking for --enable-precomp""... $ac_c" 1>&6
a1622950 2494echo "configure:2495: checking for --enable-precomp" >&5
683dccda
GD
2495 no_cache=0
2496 # Check whether --enable-precomp or --disable-precomp was given.
2497if test "${enable_precomp+set}" = set; then
2498 enableval="$enable_precomp"
2499
2500 if test "$enableval" = yes; then
2501 ac_cv_use_precomp='wxUSE_PRECOMP=yes'
2502 else
2503 ac_cv_use_precomp='wxUSE_PRECOMP=no'
2504 fi
2505
2506else
2507
2508 LINE=`grep "wxUSE_PRECOMP" ${wx_arg_cache_file}`
2509 if test "x$LINE" != x ; then
2510 eval "DEFAULT_$LINE"
2511 else
2512 no_cache=1
2513 fi
2514
2515 ac_cv_use_precomp='wxUSE_PRECOMP='$DEFAULT_wxUSE_PRECOMP
2516
2517fi
2518
2519
2520 eval "$ac_cv_use_precomp"
2521 if test "$no_cache" != 1; then
2522 echo $ac_cv_use_precomp >> ${wx_arg_cache_file}.tmp
2523 fi
2524
2525 if test "$wxUSE_PRECOMP" = yes; then
2526 echo "$ac_t""yes" 1>&6
2527 else
2528 echo "$ac_t""no" 1>&6
2529 fi
2530
2531
10f2d63a
VZ
2532if test "$wxUSE_DEBUG" = "yes"; then
2533 DEFAULT_wxUSE_DEBUG_FLAG=yes
2534 DEFAULT_wxUSE_DEBUG_INFO=yes
2535elif test "$wxUSE_DEBUG" = "no"; then
2536 DEFAULT_wxUSE_DEBUG_FLAG=no
2537 DEFAULT_wxUSE_DEBUG_INFO=no
2538fi
2539
698dcdb6
VZ
2540
2541 echo $ac_n "checking for --enable-debug_flag""... $ac_c" 1>&6
a1622950 2542echo "configure:2543: checking for --enable-debug_flag" >&5
10f2d63a
VZ
2543 no_cache=0
2544 # Check whether --enable-debug_flag or --disable-debug_flag was given.
2545if test "${enable_debug_flag+set}" = set; then
2546 enableval="$enable_debug_flag"
698dcdb6 2547
10f2d63a
VZ
2548 if test "$enableval" = yes; then
2549 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes'
2550 else
2551 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no'
2552 fi
698dcdb6 2553
10f2d63a 2554else
698dcdb6 2555
10f2d63a
VZ
2556 LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}`
2557 if test "x$LINE" != x ; then
2558 eval "DEFAULT_$LINE"
2559 else
2560 no_cache=1
2561 fi
2562
2563 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG
698dcdb6
VZ
2564
2565fi
10f2d63a
VZ
2566
2567
2568 eval "$ac_cv_use_debug_flag"
2569 if test "$no_cache" != 1; then
2570 echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp
2571 fi
2572
2573 if test "$wxUSE_DEBUG_FLAG" = yes; then
698dcdb6 2574 echo "$ac_t""yes" 1>&6
10f2d63a 2575 else
698dcdb6 2576 echo "$ac_t""no" 1>&6
10f2d63a 2577 fi
698dcdb6 2578
10f2d63a 2579
698dcdb6 2580 echo $ac_n "checking for --enable-debug_info""... $ac_c" 1>&6
a1622950 2581echo "configure:2582: checking for --enable-debug_info" >&5
10f2d63a
VZ
2582 no_cache=0
2583 # Check whether --enable-debug_info or --disable-debug_info was given.
2584if test "${enable_debug_info+set}" = set; then
2585 enableval="$enable_debug_info"
698dcdb6 2586
10f2d63a
VZ
2587 if test "$enableval" = yes; then
2588 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes'
2589 else
2590 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no'
2591 fi
698dcdb6 2592
10f2d63a 2593else
698dcdb6 2594
10f2d63a
VZ
2595 LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}`
2596 if test "x$LINE" != x ; then
2597 eval "DEFAULT_$LINE"
2598 else
2599 no_cache=1
2600 fi
2601
2602 ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO
698dcdb6
VZ
2603
2604fi
10f2d63a
VZ
2605
2606
2607 eval "$ac_cv_use_debug_info"
2608 if test "$no_cache" != 1; then
2609 echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp
2610 fi
2611
2612 if test "$wxUSE_DEBUG_INFO" = yes; then
698dcdb6 2613 echo "$ac_t""yes" 1>&6
10f2d63a 2614 else
698dcdb6 2615 echo "$ac_t""no" 1>&6
10f2d63a 2616 fi
698dcdb6 2617
10f2d63a 2618
698dcdb6 2619 echo $ac_n "checking for --enable-debug_gdb""... $ac_c" 1>&6
a1622950 2620echo "configure:2621: checking for --enable-debug_gdb" >&5
10f2d63a
VZ
2621 no_cache=0
2622 # Check whether --enable-debug_gdb or --disable-debug_gdb was given.
2623if test "${enable_debug_gdb+set}" = set; then
2624 enableval="$enable_debug_gdb"
698dcdb6 2625
10f2d63a
VZ
2626 if test "$enableval" = yes; then
2627 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes'
2628 else
2629 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no'
2630 fi
698dcdb6 2631
10f2d63a 2632else
698dcdb6 2633
10f2d63a
VZ
2634 LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}`
2635 if test "x$LINE" != x ; then
2636 eval "DEFAULT_$LINE"
2637 else
2638 no_cache=1
2639 fi
2640
2641 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB
698dcdb6
VZ
2642
2643fi
10f2d63a
VZ
2644
2645
2646 eval "$ac_cv_use_debug_gdb"
2647 if test "$no_cache" != 1; then
2648 echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp
2649 fi
2650
2651 if test "$wxUSE_DEBUG_GDB" = yes; then
698dcdb6 2652 echo "$ac_t""yes" 1>&6
10f2d63a 2653 else
698dcdb6 2654 echo "$ac_t""no" 1>&6
10f2d63a 2655 fi
698dcdb6 2656
10f2d63a 2657
698dcdb6 2658 echo $ac_n "checking for --enable-debug_cntxt""... $ac_c" 1>&6
a1622950 2659echo "configure:2660: checking for --enable-debug_cntxt" >&5
10f2d63a
VZ
2660 no_cache=0
2661 # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given.
2662if test "${enable_debug_cntxt+set}" = set; then
2663 enableval="$enable_debug_cntxt"
698dcdb6 2664
10f2d63a
VZ
2665 if test "$enableval" = yes; then
2666 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes'
2667 else
2668 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no'
2669 fi
698dcdb6 2670
10f2d63a 2671else
698dcdb6 2672
10f2d63a
VZ
2673 LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}`
2674 if test "x$LINE" != x ; then
2675 eval "DEFAULT_$LINE"
2676 else
2677 no_cache=1
2678 fi
2679
2680 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT
698dcdb6
VZ
2681
2682fi
10f2d63a
VZ
2683
2684
2685 eval "$ac_cv_use_debug_cntxt"
2686 if test "$no_cache" != 1; then
2687 echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp
2688 fi
2689
2690 if test "$wxUSE_DEBUG_CONTEXT" = yes; then
698dcdb6 2691 echo "$ac_t""yes" 1>&6
10f2d63a 2692 else
698dcdb6 2693 echo "$ac_t""no" 1>&6
10f2d63a 2694 fi
698dcdb6 2695
10f2d63a 2696
698dcdb6 2697 echo $ac_n "checking for --enable-mem_tracing""... $ac_c" 1>&6
a1622950 2698echo "configure:2699: checking for --enable-mem_tracing" >&5
10f2d63a
VZ
2699 no_cache=0
2700 # Check whether --enable-mem_tracing or --disable-mem_tracing was given.
2701if test "${enable_mem_tracing+set}" = set; then
2702 enableval="$enable_mem_tracing"
698dcdb6 2703
10f2d63a
VZ
2704 if test "$enableval" = yes; then
2705 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes'
2706 else
2707 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no'
2708 fi
698dcdb6 2709
10f2d63a 2710else
698dcdb6 2711
10f2d63a
VZ
2712 LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}`
2713 if test "x$LINE" != x ; then
2714 eval "DEFAULT_$LINE"
2715 else
2716 no_cache=1
2717 fi
2718
2719 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING
698dcdb6
VZ
2720
2721fi
10f2d63a
VZ
2722
2723
2724 eval "$ac_cv_use_mem_tracing"
2725 if test "$no_cache" != 1; then
2726 echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp
2727 fi
2728
2729 if test "$wxUSE_MEM_TRACING" = yes; then
698dcdb6 2730 echo "$ac_t""yes" 1>&6
10f2d63a 2731 else
698dcdb6 2732 echo "$ac_t""no" 1>&6
10f2d63a 2733 fi
698dcdb6 2734
10f2d63a 2735
698dcdb6 2736 echo $ac_n "checking for --enable-profile""... $ac_c" 1>&6
a1622950 2737echo "configure:2738: checking for --enable-profile" >&5
10f2d63a
VZ
2738 no_cache=0
2739 # Check whether --enable-profile or --disable-profile was given.
2740if test "${enable_profile+set}" = set; then
2741 enableval="$enable_profile"
698dcdb6 2742
10f2d63a
VZ
2743 if test "$enableval" = yes; then
2744 ac_cv_use_profile='wxUSE_PROFILE=yes'
2745 else
2746 ac_cv_use_profile='wxUSE_PROFILE=no'
2747 fi
698dcdb6 2748
10f2d63a 2749else
698dcdb6 2750
10f2d63a
VZ
2751 LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}`
2752 if test "x$LINE" != x ; then
2753 eval "DEFAULT_$LINE"
2754 else
2755 no_cache=1
2756 fi
2757
2758 ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE
698dcdb6
VZ
2759
2760fi
10f2d63a
VZ
2761
2762
2763 eval "$ac_cv_use_profile"
2764 if test "$no_cache" != 1; then
2765 echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp
2766 fi
2767
2768 if test "$wxUSE_PROFILE" = yes; then
698dcdb6 2769 echo "$ac_t""yes" 1>&6
10f2d63a 2770 else
698dcdb6 2771 echo "$ac_t""no" 1>&6
10f2d63a 2772 fi
698dcdb6 2773
10f2d63a 2774
698dcdb6 2775 echo $ac_n "checking for --enable-no_rtti""... $ac_c" 1>&6
a1622950 2776echo "configure:2777: checking for --enable-no_rtti" >&5
10f2d63a
VZ
2777 no_cache=0
2778 # Check whether --enable-no_rtti or --disable-no_rtti was given.
2779if test "${enable_no_rtti+set}" = set; then
2780 enableval="$enable_no_rtti"
698dcdb6 2781
10f2d63a
VZ
2782 if test "$enableval" = yes; then
2783 ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes'
2784 else
2785 ac_cv_use_no_rtti='wxUSE_NO_RTTI=no'
2786 fi
698dcdb6 2787
10f2d63a 2788else
698dcdb6 2789
10f2d63a
VZ
2790 LINE=`grep "wxUSE_NO_RTTI" ${wx_arg_cache_file}`
2791 if test "x$LINE" != x ; then
2792 eval "DEFAULT_$LINE"
2793 else
2794 no_cache=1
2795 fi
2796
2797 ac_cv_use_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI
698dcdb6
VZ
2798
2799fi
10f2d63a
VZ
2800
2801
2802 eval "$ac_cv_use_no_rtti"
2803 if test "$no_cache" != 1; then
2804 echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp
2805 fi
2806
2807 if test "$wxUSE_NO_RTTI" = yes; then
698dcdb6 2808 echo "$ac_t""yes" 1>&6
10f2d63a 2809 else
698dcdb6 2810 echo "$ac_t""no" 1>&6
10f2d63a 2811 fi
698dcdb6 2812
10f2d63a 2813
698dcdb6 2814 echo $ac_n "checking for --enable-no_exceptions""... $ac_c" 1>&6
a1622950 2815echo "configure:2816: checking for --enable-no_exceptions" >&5
10f2d63a
VZ
2816 no_cache=0
2817 # Check whether --enable-no_exceptions or --disable-no_exceptions was given.
2818if test "${enable_no_exceptions+set}" = set; then
2819 enableval="$enable_no_exceptions"
698dcdb6 2820
10f2d63a
VZ
2821 if test "$enableval" = yes; then
2822 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes'
2823 else
2824 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no'
2825 fi
698dcdb6 2826
10f2d63a 2827else
698dcdb6 2828
10f2d63a
VZ
2829 LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}`
2830 if test "x$LINE" != x ; then
2831 eval "DEFAULT_$LINE"
2832 else
2833 no_cache=1
2834 fi
2835
2836 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS
698dcdb6
VZ
2837
2838fi
10f2d63a
VZ
2839
2840
2841 eval "$ac_cv_use_no_exceptions"
2842 if test "$no_cache" != 1; then
2843 echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp
2844 fi
2845
2846 if test "$wxUSE_NO_EXCEPTIONS" = yes; then
698dcdb6 2847 echo "$ac_t""yes" 1>&6
10f2d63a 2848 else
698dcdb6 2849 echo "$ac_t""no" 1>&6
10f2d63a 2850 fi
698dcdb6 2851
10f2d63a 2852
698dcdb6 2853 echo $ac_n "checking for --enable-permissive""... $ac_c" 1>&6
a1622950 2854echo "configure:2855: checking for --enable-permissive" >&5
10f2d63a
VZ
2855 no_cache=0
2856 # Check whether --enable-permissive or --disable-permissive was given.
2857if test "${enable_permissive+set}" = set; then
2858 enableval="$enable_permissive"
698dcdb6 2859
10f2d63a
VZ
2860 if test "$enableval" = yes; then
2861 ac_cv_use_permissive='wxUSE_PERMISSIVE=yes'
2862 else
2863 ac_cv_use_permissive='wxUSE_PERMISSIVE=no'
2864 fi
698dcdb6 2865
10f2d63a 2866else
698dcdb6 2867
10f2d63a
VZ
2868 LINE=`grep "wxUSE_PERMISSIVE" ${wx_arg_cache_file}`
2869 if test "x$LINE" != x ; then
2870 eval "DEFAULT_$LINE"
2871 else
2872 no_cache=1
2873 fi
2874
2875 ac_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE
698dcdb6
VZ
2876
2877fi
10f2d63a
VZ
2878
2879
2880 eval "$ac_cv_use_permissive"
2881 if test "$no_cache" != 1; then
2882 echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp
2883 fi
2884
2885 if test "$wxUSE_PERMISSIVE" = yes; then
698dcdb6 2886 echo "$ac_t""yes" 1>&6
10f2d63a 2887 else
698dcdb6 2888 echo "$ac_t""no" 1>&6
10f2d63a 2889 fi
698dcdb6 2890
10f2d63a 2891
698dcdb6 2892 echo $ac_n "checking for --enable-no_deps""... $ac_c" 1>&6
a1622950 2893echo "configure:2894: checking for --enable-no_deps" >&5
10f2d63a
VZ
2894 no_cache=0
2895 # Check whether --enable-no_deps or --disable-no_deps was given.
2896if test "${enable_no_deps+set}" = set; then
2897 enableval="$enable_no_deps"
698dcdb6 2898
10f2d63a
VZ
2899 if test "$enableval" = yes; then
2900 ac_cv_use_no_deps='wxUSE_NO_DEPS=yes'
2901 else
2902 ac_cv_use_no_deps='wxUSE_NO_DEPS=no'
2903 fi
698dcdb6 2904
10f2d63a 2905else
698dcdb6 2906
10f2d63a
VZ
2907 LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}`
2908 if test "x$LINE" != x ; then
2909 eval "DEFAULT_$LINE"
2910 else
2911 no_cache=1
2912 fi
2913
2914 ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS
698dcdb6
VZ
2915
2916fi
10f2d63a
VZ
2917
2918
2919 eval "$ac_cv_use_no_deps"
2920 if test "$no_cache" != 1; then
2921 echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp
2922 fi
2923
2924 if test "$wxUSE_NO_DEPS" = yes; then
698dcdb6 2925 echo "$ac_t""yes" 1>&6
10f2d63a 2926 else
698dcdb6 2927 echo "$ac_t""no" 1>&6
10f2d63a 2928 fi
698dcdb6
VZ
2929
2930
10f2d63a 2931
54276ccf 2932 echo $ac_n "checking for --enable-compat20""... $ac_c" 1>&6
a1622950 2933echo "configure:2934: checking for --enable-compat20" >&5
54276ccf
VZ
2934 no_cache=0
2935 # Check whether --enable-compat20 or --disable-compat20 was given.
2936if test "${enable_compat20+set}" = set; then
2937 enableval="$enable_compat20"
2938
2939 if test "$enableval" = yes; then
2940 ac_cv_use_compat20='WXWIN_COMPATIBILITY_2=yes'
2941 else
2942 ac_cv_use_compat20='WXWIN_COMPATIBILITY_2=no'
2943 fi
2944
2945else
2946
2947 LINE=`grep "WXWIN_COMPATIBILITY_2" ${wx_arg_cache_file}`
2948 if test "x$LINE" != x ; then
2949 eval "DEFAULT_$LINE"
2950 else
2951 no_cache=1
2952 fi
2953
2954 ac_cv_use_compat20='WXWIN_COMPATIBILITY_2='$DEFAULT_WXWIN_COMPATIBILITY_2
2955
2956fi
2957
2958
2959 eval "$ac_cv_use_compat20"
2960 if test "$no_cache" != 1; then
2961 echo $ac_cv_use_compat20 >> ${wx_arg_cache_file}.tmp
2962 fi
2963
2964 if test "$WXWIN_COMPATIBILITY_2" = yes; then
2965 echo "$ac_t""yes" 1>&6
2966 else
2967 echo "$ac_t""no" 1>&6
2968 fi
2969
2970
2971 echo $ac_n "checking for --enable-compat22""... $ac_c" 1>&6
a1622950 2972echo "configure:2973: checking for --enable-compat22" >&5
54276ccf
VZ
2973 no_cache=0
2974 # Check whether --enable-compat22 or --disable-compat22 was given.
2975if test "${enable_compat22+set}" = set; then
2976 enableval="$enable_compat22"
2977
2978 if test "$enableval" = yes; then
2979 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=yes'
2980 else
2981 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=no'
2982 fi
2983
2984else
2985
2986 LINE=`grep "WXWIN_COMPATIBILITY_2_2" ${wx_arg_cache_file}`
2987 if test "x$LINE" != x ; then
2988 eval "DEFAULT_$LINE"
2989 else
2990 no_cache=1
2991 fi
2992
2993 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2='$DEFAULT_WXWIN_COMPATIBILITY_2_2
2994
2995fi
2996
2997
2998 eval "$ac_cv_use_compat22"
2999 if test "$no_cache" != 1; then
3000 echo $ac_cv_use_compat22 >> ${wx_arg_cache_file}.tmp
3001 fi
3002
3003 if test "$WXWIN_COMPATIBILITY_2_2" = yes; then
3004 echo "$ac_t""yes" 1>&6
3005 else
3006 echo "$ac_t""no" 1>&6
3007 fi
3008
3009
3010
698dcdb6
VZ
3011
3012 echo $ac_n "checking for --enable-intl""... $ac_c" 1>&6
a1622950 3013echo "configure:3014: checking for --enable-intl" >&5
10f2d63a
VZ
3014 no_cache=0
3015 # Check whether --enable-intl or --disable-intl was given.
3016if test "${enable_intl+set}" = set; then
3017 enableval="$enable_intl"
698dcdb6 3018
10f2d63a
VZ
3019 if test "$enableval" = yes; then
3020 ac_cv_use_intl='wxUSE_INTL=yes'
3021 else
3022 ac_cv_use_intl='wxUSE_INTL=no'
3023 fi
698dcdb6 3024
10f2d63a 3025else
698dcdb6 3026
10f2d63a
VZ
3027 LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}`
3028 if test "x$LINE" != x ; then
3029 eval "DEFAULT_$LINE"
3030 else
3031 no_cache=1
3032 fi
3033
3034 ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL
698dcdb6
VZ
3035
3036fi
10f2d63a
VZ
3037
3038
3039 eval "$ac_cv_use_intl"
3040 if test "$no_cache" != 1; then
3041 echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp
3042 fi
3043
3044 if test "$wxUSE_INTL" = yes; then
698dcdb6 3045 echo "$ac_t""yes" 1>&6
10f2d63a 3046 else
698dcdb6 3047 echo "$ac_t""no" 1>&6
10f2d63a 3048 fi
698dcdb6 3049
10f2d63a 3050
698dcdb6 3051 echo $ac_n "checking for --enable-config""... $ac_c" 1>&6
a1622950 3052echo "configure:3053: checking for --enable-config" >&5
10f2d63a
VZ
3053 no_cache=0
3054 # Check whether --enable-config or --disable-config was given.
3055if test "${enable_config+set}" = set; then
3056 enableval="$enable_config"
698dcdb6 3057
10f2d63a
VZ
3058 if test "$enableval" = yes; then
3059 ac_cv_use_config='wxUSE_CONFIG=yes'
3060 else
3061 ac_cv_use_config='wxUSE_CONFIG=no'
3062 fi
698dcdb6 3063
10f2d63a 3064else
698dcdb6 3065
10f2d63a
VZ
3066 LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}`
3067 if test "x$LINE" != x ; then
3068 eval "DEFAULT_$LINE"
3069 else
3070 no_cache=1
3071 fi
3072
3073 ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG
698dcdb6
VZ
3074
3075fi
10f2d63a
VZ
3076
3077
3078 eval "$ac_cv_use_config"
3079 if test "$no_cache" != 1; then
3080 echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp
3081 fi
3082
3083 if test "$wxUSE_CONFIG" = yes; then
698dcdb6 3084 echo "$ac_t""yes" 1>&6
10f2d63a 3085 else
698dcdb6 3086 echo "$ac_t""no" 1>&6
10f2d63a 3087 fi
698dcdb6
VZ
3088
3089
b12915c1 3090
a1622950
VZ
3091 echo $ac_n "checking for --enable-protocols""... $ac_c" 1>&6
3092echo "configure:3093: checking for --enable-protocols" >&5
3093 no_cache=0
3094 # Check whether --enable-protocols or --disable-protocols was given.
3095if test "${enable_protocols+set}" = set; then
3096 enableval="$enable_protocols"
3097
3098 if test "$enableval" = yes; then
3099 ac_cv_use_protocols='wxUSE_PROTOCOL=yes'
3100 else
3101 ac_cv_use_protocols='wxUSE_PROTOCOL=no'
3102 fi
3103
3104else
3105
3106 LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
3107 if test "x$LINE" != x ; then
3108 eval "DEFAULT_$LINE"
3109 else
3110 no_cache=1
3111 fi
3112
3113 ac_cv_use_protocols='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
3114
3115fi
3116
3117
3118 eval "$ac_cv_use_protocols"
3119 if test "$no_cache" != 1; then
3120 echo $ac_cv_use_protocols >> ${wx_arg_cache_file}.tmp
3121 fi
3122
3123 if test "$wxUSE_PROTOCOL" = yes; then
3124 echo "$ac_t""yes" 1>&6
3125 else
3126 echo "$ac_t""no" 1>&6
3127 fi
3128
3129
3130 echo $ac_n "checking for --enable-ftp""... $ac_c" 1>&6
3131echo "configure:3132: checking for --enable-ftp" >&5
3132 no_cache=0
3133 # Check whether --enable-ftp or --disable-ftp was given.
3134if test "${enable_ftp+set}" = set; then
3135 enableval="$enable_ftp"
3136
3137 if test "$enableval" = yes; then
3138 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=yes'
3139 else
3140 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=no'
3141 fi
3142
3143else
3144
3145 LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
3146 if test "x$LINE" != x ; then
3147 eval "DEFAULT_$LINE"
3148 else
3149 no_cache=1
3150 fi
3151
3152 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
3153
3154fi
3155
3156
3157 eval "$ac_cv_use_ftp"
3158 if test "$no_cache" != 1; then
3159 echo $ac_cv_use_ftp >> ${wx_arg_cache_file}.tmp
3160 fi
3161
3162 if test "$wxUSE_PROTOCOL_FTP" = yes; then
3163 echo "$ac_t""yes" 1>&6
3164 else
3165 echo "$ac_t""no" 1>&6
3166 fi
3167
3168
3169 echo $ac_n "checking for --enable-http""... $ac_c" 1>&6
3170echo "configure:3171: checking for --enable-http" >&5
3171 no_cache=0
3172 # Check whether --enable-http or --disable-http was given.
3173if test "${enable_http+set}" = set; then
3174 enableval="$enable_http"
3175
3176 if test "$enableval" = yes; then
3177 ac_cv_use_http='wxUSE_PROTOCOL_HTTP=yes'
3178 else
3179 ac_cv_use_http='wxUSE_PROTOCOL_HTTP=no'
3180 fi
3181
3182else
3183
3184 LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
3185 if test "x$LINE" != x ; then
3186 eval "DEFAULT_$LINE"
3187 else
3188 no_cache=1
3189 fi
3190
3191 ac_cv_use_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
3192
3193fi
3194
3195
3196 eval "$ac_cv_use_http"
3197 if test "$no_cache" != 1; then
3198 echo $ac_cv_use_http >> ${wx_arg_cache_file}.tmp
3199 fi
3200
3201 if test "$wxUSE_PROTOCOL_HTTP" = yes; then
3202 echo "$ac_t""yes" 1>&6
3203 else
3204 echo "$ac_t""no" 1>&6
3205 fi
3206
3207
3208 echo $ac_n "checking for --enable-fileproto""... $ac_c" 1>&6
3209echo "configure:3210: checking for --enable-fileproto" >&5
3210 no_cache=0
3211 # Check whether --enable-fileproto or --disable-fileproto was given.
3212if test "${enable_fileproto+set}" = set; then
3213 enableval="$enable_fileproto"
3214
3215 if test "$enableval" = yes; then
3216 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=yes'
3217 else
3218 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=no'
3219 fi
3220
3221else
3222
3223 LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
3224 if test "x$LINE" != x ; then
3225 eval "DEFAULT_$LINE"
3226 else
3227 no_cache=1
3228 fi
3229
3230 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
3231
3232fi
3233
3234
3235 eval "$ac_cv_use_fileproto"
3236 if test "$no_cache" != 1; then
3237 echo $ac_cv_use_fileproto >> ${wx_arg_cache_file}.tmp
3238 fi
3239
3240 if test "$wxUSE_PROTOCOL_FILE" = yes; then
3241 echo "$ac_t""yes" 1>&6
3242 else
3243 echo "$ac_t""no" 1>&6
3244 fi
3245
3246
698dcdb6 3247 echo $ac_n "checking for --enable-sockets""... $ac_c" 1>&6
a1622950 3248echo "configure:3249: checking for --enable-sockets" >&5
10f2d63a
VZ
3249 no_cache=0
3250 # Check whether --enable-sockets or --disable-sockets was given.
3251if test "${enable_sockets+set}" = set; then
3252 enableval="$enable_sockets"
698dcdb6 3253
10f2d63a
VZ
3254 if test "$enableval" = yes; then
3255 ac_cv_use_sockets='wxUSE_SOCKETS=yes'
3256 else
3257 ac_cv_use_sockets='wxUSE_SOCKETS=no'
3258 fi
698dcdb6 3259
10f2d63a 3260else
698dcdb6 3261
10f2d63a
VZ
3262 LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}`
3263 if test "x$LINE" != x ; then
3264 eval "DEFAULT_$LINE"
3265 else
3266 no_cache=1
3267 fi
3268
3269 ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS
698dcdb6
VZ
3270
3271fi
10f2d63a
VZ
3272
3273
3274 eval "$ac_cv_use_sockets"
3275 if test "$no_cache" != 1; then
3276 echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp
3277 fi
3278
3279 if test "$wxUSE_SOCKETS" = yes; then
698dcdb6 3280 echo "$ac_t""yes" 1>&6
10f2d63a 3281 else
698dcdb6 3282 echo "$ac_t""no" 1>&6
10f2d63a 3283 fi
698dcdb6 3284
b12915c1 3285
698dcdb6
VZ
3286
3287 echo $ac_n "checking for --enable-ipc""... $ac_c" 1>&6
a1622950 3288echo "configure:3289: checking for --enable-ipc" >&5
10f2d63a 3289 no_cache=0
eb4efbdc
VZ
3290 # Check whether --enable-ipc or --disable-ipc was given.
3291if test "${enable_ipc+set}" = set; then
3292 enableval="$enable_ipc"
698dcdb6 3293
10f2d63a 3294 if test "$enableval" = yes; then
eb4efbdc 3295 ac_cv_use_ipc='wxUSE_IPC=yes'
10f2d63a 3296 else
eb4efbdc 3297 ac_cv_use_ipc='wxUSE_IPC=no'
10f2d63a 3298 fi
698dcdb6 3299
10f2d63a 3300else
698dcdb6 3301
eb4efbdc 3302 LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}`
10f2d63a
VZ
3303 if test "x$LINE" != x ; then
3304 eval "DEFAULT_$LINE"
3305 else
3306 no_cache=1
3307 fi
3308
eb4efbdc 3309 ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC
698dcdb6
VZ
3310
3311fi
10f2d63a
VZ
3312
3313
eb4efbdc 3314 eval "$ac_cv_use_ipc"
10f2d63a 3315 if test "$no_cache" != 1; then
eb4efbdc 3316 echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
3317 fi
3318
eb4efbdc 3319 if test "$wxUSE_IPC" = yes; then
698dcdb6 3320 echo "$ac_t""yes" 1>&6
10f2d63a 3321 else
698dcdb6 3322 echo "$ac_t""no" 1>&6
10f2d63a 3323 fi
698dcdb6
VZ
3324
3325
eb4efbdc 3326
1e6feb95 3327 echo $ac_n "checking for --enable-cmdline""... $ac_c" 1>&6
a1622950 3328echo "configure:3329: checking for --enable-cmdline" >&5
1e6feb95
VZ
3329 no_cache=0
3330 # Check whether --enable-cmdline or --disable-cmdline was given.
3331if test "${enable_cmdline+set}" = set; then
3332 enableval="$enable_cmdline"
3333
3334 if test "$enableval" = yes; then
3335 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=yes'
3336 else
3337 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=no'
3338 fi
3339
3340else
3341
3342 LINE=`grep "wxUSE_CMDLINE_PARSER" ${wx_arg_cache_file}`
3343 if test "x$LINE" != x ; then
3344 eval "DEFAULT_$LINE"
3345 else
3346 no_cache=1
3347 fi
3348
3349 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER='$DEFAULT_wxUSE_CMDLINE_PARSER
3350
3351fi
3352
3353
3354 eval "$ac_cv_use_cmdline"
3355 if test "$no_cache" != 1; then
3356 echo $ac_cv_use_cmdline >> ${wx_arg_cache_file}.tmp
3357 fi
3358
3359 if test "$wxUSE_CMDLINE_PARSER" = yes; then
3360 echo "$ac_t""yes" 1>&6
3361 else
3362 echo "$ac_t""no" 1>&6
3363 fi
3364
3365
3366 echo $ac_n "checking for --enable-datetime""... $ac_c" 1>&6
a1622950 3367echo "configure:3368: checking for --enable-datetime" >&5
1e6feb95
VZ
3368 no_cache=0
3369 # Check whether --enable-datetime or --disable-datetime was given.
3370if test "${enable_datetime+set}" = set; then
3371 enableval="$enable_datetime"
3372
3373 if test "$enableval" = yes; then
3374 ac_cv_use_datetime='wxUSE_DATETIME=yes'
3375 else
3376 ac_cv_use_datetime='wxUSE_DATETIME=no'
3377 fi
3378
3379else
3380
3381 LINE=`grep "wxUSE_DATETIME" ${wx_arg_cache_file}`
3382 if test "x$LINE" != x ; then
3383 eval "DEFAULT_$LINE"
3384 else
3385 no_cache=1
3386 fi
3387
3388 ac_cv_use_datetime='wxUSE_DATETIME='$DEFAULT_wxUSE_DATETIME
3389
3390fi
3391
3392
3393 eval "$ac_cv_use_datetime"
3394 if test "$no_cache" != 1; then
3395 echo $ac_cv_use_datetime >> ${wx_arg_cache_file}.tmp
3396 fi
3397
3398 if test "$wxUSE_DATETIME" = yes; then
3399 echo "$ac_t""yes" 1>&6
3400 else
3401 echo "$ac_t""no" 1>&6
3402 fi
3403
3404
3405 echo $ac_n "checking for --enable-timedate""... $ac_c" 1>&6
a1622950 3406echo "configure:3407: checking for --enable-timedate" >&5
1e6feb95
VZ
3407 no_cache=0
3408 # Check whether --enable-timedate or --disable-timedate was given.
3409if test "${enable_timedate+set}" = set; then
3410 enableval="$enable_timedate"
3411
3412 if test "$enableval" = yes; then
3413 ac_cv_use_timedate='wxUSE_TIMEDATE=yes'
3414 else
3415 ac_cv_use_timedate='wxUSE_TIMEDATE=no'
3416 fi
3417
3418else
3419
3420 LINE=`grep "wxUSE_TIMEDATE" ${wx_arg_cache_file}`
3421 if test "x$LINE" != x ; then
3422 eval "DEFAULT_$LINE"
3423 else
3424 no_cache=1
3425 fi
3426
3427 ac_cv_use_timedate='wxUSE_TIMEDATE='$DEFAULT_wxUSE_TIMEDATE
3428
3429fi
3430
3431
3432 eval "$ac_cv_use_timedate"
3433 if test "$no_cache" != 1; then
3434 echo $ac_cv_use_timedate >> ${wx_arg_cache_file}.tmp
3435 fi
3436
3437 if test "$wxUSE_TIMEDATE" = yes; then
3438 echo "$ac_t""yes" 1>&6
3439 else
3440 echo "$ac_t""no" 1>&6
3441 fi
3442
3443
3444 echo $ac_n "checking for --enable-stopwatch""... $ac_c" 1>&6
a1622950 3445echo "configure:3446: checking for --enable-stopwatch" >&5
1e6feb95
VZ
3446 no_cache=0
3447 # Check whether --enable-stopwatch or --disable-stopwatch was given.
3448if test "${enable_stopwatch+set}" = set; then
3449 enableval="$enable_stopwatch"
3450
3451 if test "$enableval" = yes; then
3452 ac_cv_use_stopwatch='wxUSE_STOPWATCH=yes'
3453 else
3454 ac_cv_use_stopwatch='wxUSE_STOPWATCH=no'
3455 fi
3456
3457else
3458
3459 LINE=`grep "wxUSE_STOPWATCH" ${wx_arg_cache_file}`
3460 if test "x$LINE" != x ; then
3461 eval "DEFAULT_$LINE"
3462 else
3463 no_cache=1
3464 fi
3465
3466 ac_cv_use_stopwatch='wxUSE_STOPWATCH='$DEFAULT_wxUSE_STOPWATCH
3467
3468fi
3469
3470
3471 eval "$ac_cv_use_stopwatch"
3472 if test "$no_cache" != 1; then
3473 echo $ac_cv_use_stopwatch >> ${wx_arg_cache_file}.tmp
3474 fi
3475
3476 if test "$wxUSE_STOPWATCH" = yes; then
3477 echo "$ac_t""yes" 1>&6
3478 else
3479 echo "$ac_t""no" 1>&6
3480 fi
3481
3482
698dcdb6 3483 echo $ac_n "checking for --enable-dialupman""... $ac_c" 1>&6
a1622950 3484echo "configure:3485: checking for --enable-dialupman" >&5
10f2d63a 3485 no_cache=0
eb4efbdc
VZ
3486 # Check whether --enable-dialupman or --disable-dialupman was given.
3487if test "${enable_dialupman+set}" = set; then
3488 enableval="$enable_dialupman"
698dcdb6 3489
10f2d63a 3490 if test "$enableval" = yes; then
eb4efbdc 3491 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes'
10f2d63a 3492 else
eb4efbdc 3493 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no'
10f2d63a 3494 fi
698dcdb6 3495
10f2d63a 3496else
698dcdb6 3497
eb4efbdc 3498 LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}`
10f2d63a
VZ
3499 if test "x$LINE" != x ; then
3500 eval "DEFAULT_$LINE"
3501 else
3502 no_cache=1
3503 fi
3504
eb4efbdc 3505 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER
698dcdb6
VZ
3506
3507fi
10f2d63a
VZ
3508
3509
eb4efbdc 3510 eval "$ac_cv_use_dialupman"
10f2d63a 3511 if test "$no_cache" != 1; then
eb4efbdc 3512 echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
3513 fi
3514
eb4efbdc 3515 if test "$wxUSE_DIALUP_MANAGER" = yes; then
698dcdb6 3516 echo "$ac_t""yes" 1>&6
10f2d63a 3517 else
698dcdb6 3518 echo "$ac_t""no" 1>&6
10f2d63a 3519 fi
698dcdb6 3520
10f2d63a 3521
698dcdb6 3522 echo $ac_n "checking for --enable-apple_ieee""... $ac_c" 1>&6
a1622950 3523echo "configure:3524: checking for --enable-apple_ieee" >&5
10f2d63a
VZ
3524 no_cache=0
3525 # Check whether --enable-apple_ieee or --disable-apple_ieee was given.
3526if test "${enable_apple_ieee+set}" = set; then
3527 enableval="$enable_apple_ieee"
698dcdb6 3528
10f2d63a
VZ
3529 if test "$enableval" = yes; then
3530 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes'
3531 else
3532 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no'
3533 fi
698dcdb6 3534
10f2d63a 3535else
698dcdb6 3536
10f2d63a
VZ
3537 LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}`
3538 if test "x$LINE" != x ; then
3539 eval "DEFAULT_$LINE"
3540 else
3541 no_cache=1
3542 fi
3543
3544 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE
698dcdb6
VZ
3545
3546fi
10f2d63a
VZ
3547
3548
3549 eval "$ac_cv_use_apple_ieee"
3550 if test "$no_cache" != 1; then
3551 echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp
3552 fi
3553
3554 if test "$wxUSE_APPLE_IEEE" = yes; then
698dcdb6 3555 echo "$ac_t""yes" 1>&6
10f2d63a 3556 else
698dcdb6 3557 echo "$ac_t""no" 1>&6
10f2d63a 3558 fi
698dcdb6 3559
10f2d63a 3560
1e6feb95 3561 echo $ac_n "checking for --enable-timer""... $ac_c" 1>&6
a1622950 3562echo "configure:3563: checking for --enable-timer" >&5
10f2d63a 3563 no_cache=0
1e6feb95
VZ
3564 # Check whether --enable-timer or --disable-timer was given.
3565if test "${enable_timer+set}" = set; then
3566 enableval="$enable_timer"
698dcdb6 3567
10f2d63a 3568 if test "$enableval" = yes; then
1e6feb95 3569 ac_cv_use_timer='wxUSE_TIMER=yes'
10f2d63a 3570 else
1e6feb95 3571 ac_cv_use_timer='wxUSE_TIMER=no'
10f2d63a 3572 fi
698dcdb6 3573
10f2d63a 3574else
698dcdb6 3575
1e6feb95 3576 LINE=`grep "wxUSE_TIMER" ${wx_arg_cache_file}`
10f2d63a
VZ
3577 if test "x$LINE" != x ; then
3578 eval "DEFAULT_$LINE"
3579 else
3580 no_cache=1
3581 fi
3582
1e6feb95 3583 ac_cv_use_timer='wxUSE_TIMER='$DEFAULT_wxUSE_TIMER
698dcdb6
VZ
3584
3585fi
10f2d63a
VZ
3586
3587
1e6feb95 3588 eval "$ac_cv_use_timer"
10f2d63a 3589 if test "$no_cache" != 1; then
1e6feb95 3590 echo $ac_cv_use_timer >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
3591 fi
3592
1e6feb95 3593 if test "$wxUSE_TIMER" = yes; then
698dcdb6 3594 echo "$ac_t""yes" 1>&6
10f2d63a 3595 else
698dcdb6 3596 echo "$ac_t""no" 1>&6
10f2d63a 3597 fi
698dcdb6 3598
10f2d63a 3599
698dcdb6 3600 echo $ac_n "checking for --enable-wave""... $ac_c" 1>&6
a1622950 3601echo "configure:3602: checking for --enable-wave" >&5
10f2d63a
VZ
3602 no_cache=0
3603 # Check whether --enable-wave or --disable-wave was given.
3604if test "${enable_wave+set}" = set; then
3605 enableval="$enable_wave"
698dcdb6 3606
10f2d63a
VZ
3607 if test "$enableval" = yes; then
3608 ac_cv_use_wave='wxUSE_WAVE=yes'
3609 else
3610 ac_cv_use_wave='wxUSE_WAVE=no'
3611 fi
698dcdb6 3612
10f2d63a 3613else
698dcdb6 3614
10f2d63a
VZ
3615 LINE=`grep "wxUSE_WAVE" ${wx_arg_cache_file}`
3616 if test "x$LINE" != x ; then
3617 eval "DEFAULT_$LINE"
3618 else
3619 no_cache=1
3620 fi
3621
3622 ac_cv_use_wave='wxUSE_WAVE='$DEFAULT_wxUSE_WAVE
698dcdb6
VZ
3623
3624fi
10f2d63a
VZ
3625
3626
3627 eval "$ac_cv_use_wave"
3628 if test "$no_cache" != 1; then
3629 echo $ac_cv_use_wave >> ${wx_arg_cache_file}.tmp
3630 fi
3631
3632 if test "$wxUSE_WAVE" = yes; then
698dcdb6 3633 echo "$ac_t""yes" 1>&6
10f2d63a 3634 else
698dcdb6 3635 echo "$ac_t""no" 1>&6
10f2d63a 3636 fi
698dcdb6 3637
10f2d63a 3638
698dcdb6 3639 echo $ac_n "checking for --enable-fraction""... $ac_c" 1>&6
a1622950 3640echo "configure:3641: checking for --enable-fraction" >&5
10f2d63a
VZ
3641 no_cache=0
3642 # Check whether --enable-fraction or --disable-fraction was given.
3643if test "${enable_fraction+set}" = set; then
3644 enableval="$enable_fraction"
698dcdb6 3645
10f2d63a
VZ
3646 if test "$enableval" = yes; then
3647 ac_cv_use_fraction='wxUSE_FRACTION=yes'
3648 else
3649 ac_cv_use_fraction='wxUSE_FRACTION=no'
3650 fi
698dcdb6 3651
10f2d63a 3652else
698dcdb6 3653
10f2d63a
VZ
3654 LINE=`grep "wxUSE_FRACTION" ${wx_arg_cache_file}`
3655 if test "x$LINE" != x ; then
3656 eval "DEFAULT_$LINE"
3657 else
3658 no_cache=1
3659 fi
3660
3661 ac_cv_use_fraction='wxUSE_FRACTION='$DEFAULT_wxUSE_FRACTION
698dcdb6
VZ
3662
3663fi
10f2d63a
VZ
3664
3665
3666 eval "$ac_cv_use_fraction"
3667 if test "$no_cache" != 1; then
3668 echo $ac_cv_use_fraction >> ${wx_arg_cache_file}.tmp
3669 fi
3670
3671 if test "$wxUSE_FRACTION" = yes; then
698dcdb6 3672 echo "$ac_t""yes" 1>&6
10f2d63a 3673 else
698dcdb6 3674 echo "$ac_t""no" 1>&6
10f2d63a 3675 fi
698dcdb6 3676
10f2d63a 3677
698dcdb6 3678 echo $ac_n "checking for --enable-dynlib""... $ac_c" 1>&6
a1622950 3679echo "configure:3680: checking for --enable-dynlib" >&5
10f2d63a
VZ
3680 no_cache=0
3681 # Check whether --enable-dynlib or --disable-dynlib was given.
3682if test "${enable_dynlib+set}" = set; then
3683 enableval="$enable_dynlib"
698dcdb6 3684
10f2d63a
VZ
3685 if test "$enableval" = yes; then
3686 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes'
3687 else
3688 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no'
3689 fi
698dcdb6 3690
10f2d63a 3691else
698dcdb6 3692
10f2d63a
VZ
3693 LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}`
3694 if test "x$LINE" != x ; then
3695 eval "DEFAULT_$LINE"
3696 else
3697 no_cache=1
3698 fi
3699
3700 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS
698dcdb6
VZ
3701
3702fi
10f2d63a
VZ
3703
3704
3705 eval "$ac_cv_use_dynlib"
3706 if test "$no_cache" != 1; then
3707 echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp
3708 fi
3709
3710 if test "$wxUSE_DYNLIB_CLASS" = yes; then
698dcdb6 3711 echo "$ac_t""yes" 1>&6
10f2d63a 3712 else
698dcdb6 3713 echo "$ac_t""no" 1>&6
10f2d63a 3714 fi
698dcdb6 3715
10f2d63a 3716
0b9ab0bd 3717 echo $ac_n "checking for --enable-dynamicloader""... $ac_c" 1>&6
a1622950 3718echo "configure:3719: checking for --enable-dynamicloader" >&5
0b9ab0bd
RL
3719 no_cache=0
3720 # Check whether --enable-dynamicloader or --disable-dynamicloader was given.
3721if test "${enable_dynamicloader+set}" = set; then
3722 enableval="$enable_dynamicloader"
3723
3724 if test "$enableval" = yes; then
3725 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=yes'
3726 else
3727 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=no'
3728 fi
3729
3730else
3731
3732 LINE=`grep "wxUSE_DYNAMIC_LOADER" ${wx_arg_cache_file}`
3733 if test "x$LINE" != x ; then
3734 eval "DEFAULT_$LINE"
3735 else
3736 no_cache=1
3737 fi
3738
3739 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER='$DEFAULT_wxUSE_DYNAMIC_LOADER
3740
3741fi
3742
3743
3744 eval "$ac_cv_use_dynamicloader"
3745 if test "$no_cache" != 1; then
3746 echo $ac_cv_use_dynamicloader >> ${wx_arg_cache_file}.tmp
3747 fi
3748
3749 if test "$wxUSE_DYNAMIC_LOADER" = yes; then
3750 echo "$ac_t""yes" 1>&6
3751 else
3752 echo "$ac_t""no" 1>&6
3753 fi
3754
3755
698dcdb6 3756 echo $ac_n "checking for --enable-longlong""... $ac_c" 1>&6
a1622950 3757echo "configure:3758: checking for --enable-longlong" >&5
10f2d63a
VZ
3758 no_cache=0
3759 # Check whether --enable-longlong or --disable-longlong was given.
3760if test "${enable_longlong+set}" = set; then
3761 enableval="$enable_longlong"
698dcdb6 3762
10f2d63a
VZ
3763 if test "$enableval" = yes; then
3764 ac_cv_use_longlong='wxUSE_LONGLONG=yes'
3765 else
3766 ac_cv_use_longlong='wxUSE_LONGLONG=no'
3767 fi
698dcdb6 3768
10f2d63a 3769else
698dcdb6 3770
10f2d63a
VZ
3771 LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}`
3772 if test "x$LINE" != x ; then
3773 eval "DEFAULT_$LINE"
3774 else
3775 no_cache=1
3776 fi
3777
3778 ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG
698dcdb6
VZ
3779
3780fi
10f2d63a
VZ
3781
3782
3783 eval "$ac_cv_use_longlong"
3784 if test "$no_cache" != 1; then
3785 echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp
3786 fi
3787
3788 if test "$wxUSE_LONGLONG" = yes; then
698dcdb6 3789 echo "$ac_t""yes" 1>&6
10f2d63a 3790 else
698dcdb6 3791 echo "$ac_t""no" 1>&6
10f2d63a 3792 fi
698dcdb6 3793
10f2d63a 3794
698dcdb6 3795 echo $ac_n "checking for --enable-geometry""... $ac_c" 1>&6
a1622950 3796echo "configure:3797: checking for --enable-geometry" >&5
e8f65ba6
RR
3797 no_cache=0
3798 # Check whether --enable-geometry or --disable-geometry was given.
3799if test "${enable_geometry+set}" = set; then
3800 enableval="$enable_geometry"
698dcdb6 3801
e8f65ba6
RR
3802 if test "$enableval" = yes; then
3803 ac_cv_use_geometry='wxUSE_GEOMETRY=yes'
3804 else
3805 ac_cv_use_geometry='wxUSE_GEOMETRY=no'
3806 fi
698dcdb6 3807
e8f65ba6 3808else
698dcdb6 3809
e8f65ba6
RR
3810 LINE=`grep "wxUSE_GEOMETRY" ${wx_arg_cache_file}`
3811 if test "x$LINE" != x ; then
3812 eval "DEFAULT_$LINE"
3813 else
3814 no_cache=1
3815 fi
3816
3817 ac_cv_use_geometry='wxUSE_GEOMETRY='$DEFAULT_wxUSE_GEOMETRY
698dcdb6
VZ
3818
3819fi
e8f65ba6
RR
3820
3821
3822 eval "$ac_cv_use_geometry"
3823 if test "$no_cache" != 1; then
3824 echo $ac_cv_use_geometry >> ${wx_arg_cache_file}.tmp
3825 fi
3826
3827 if test "$wxUSE_GEOMETRY" = yes; then
698dcdb6 3828 echo "$ac_t""yes" 1>&6
e8f65ba6 3829 else
698dcdb6 3830 echo "$ac_t""no" 1>&6
e8f65ba6 3831 fi
698dcdb6 3832
e8f65ba6 3833
698dcdb6 3834 echo $ac_n "checking for --enable-log""... $ac_c" 1>&6
a1622950 3835echo "configure:3836: checking for --enable-log" >&5
10f2d63a
VZ
3836 no_cache=0
3837 # Check whether --enable-log or --disable-log was given.
3838if test "${enable_log+set}" = set; then
3839 enableval="$enable_log"
698dcdb6 3840
10f2d63a
VZ
3841 if test "$enableval" = yes; then
3842 ac_cv_use_log='wxUSE_LOG=yes'
3843 else
3844 ac_cv_use_log='wxUSE_LOG=no'
3845 fi
698dcdb6 3846
10f2d63a 3847else
698dcdb6 3848
10f2d63a
VZ
3849 LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}`
3850 if test "x$LINE" != x ; then
3851 eval "DEFAULT_$LINE"
3852 else
3853 no_cache=1
3854 fi
3855
3856 ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG
698dcdb6
VZ
3857
3858fi
10f2d63a
VZ
3859
3860
3861 eval "$ac_cv_use_log"
3862 if test "$no_cache" != 1; then
3863 echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp
3864 fi
3865
3866 if test "$wxUSE_LOG" = yes; then
698dcdb6 3867 echo "$ac_t""yes" 1>&6
10f2d63a 3868 else
698dcdb6 3869 echo "$ac_t""no" 1>&6
10f2d63a 3870 fi
698dcdb6 3871
10f2d63a 3872
698dcdb6 3873 echo $ac_n "checking for --enable-streams""... $ac_c" 1>&6
a1622950 3874echo "configure:3875: checking for --enable-streams" >&5
10f2d63a
VZ
3875 no_cache=0
3876 # Check whether --enable-streams or --disable-streams was given.
3877if test "${enable_streams+set}" = set; then
3878 enableval="$enable_streams"
698dcdb6 3879
10f2d63a
VZ
3880 if test "$enableval" = yes; then
3881 ac_cv_use_streams='wxUSE_STREAMS=yes'
3882 else
3883 ac_cv_use_streams='wxUSE_STREAMS=no'
3884 fi
698dcdb6 3885
10f2d63a 3886else
698dcdb6 3887
10f2d63a
VZ
3888 LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}`
3889 if test "x$LINE" != x ; then
3890 eval "DEFAULT_$LINE"
3891 else
3892 no_cache=1
3893 fi
3894
3895 ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS
698dcdb6
VZ
3896
3897fi
10f2d63a
VZ
3898
3899
3900 eval "$ac_cv_use_streams"
3901 if test "$no_cache" != 1; then
3902 echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp
3903 fi
3904
3905 if test "$wxUSE_STREAMS" = yes; then
698dcdb6 3906 echo "$ac_t""yes" 1>&6
10f2d63a 3907 else
698dcdb6 3908 echo "$ac_t""no" 1>&6
10f2d63a 3909 fi
698dcdb6 3910
10f2d63a 3911
698dcdb6 3912 echo $ac_n "checking for --enable-file""... $ac_c" 1>&6
a1622950 3913echo "configure:3914: checking for --enable-file" >&5
10f2d63a
VZ
3914 no_cache=0
3915 # Check whether --enable-file or --disable-file was given.
3916if test "${enable_file+set}" = set; then
3917 enableval="$enable_file"
698dcdb6 3918
10f2d63a
VZ
3919 if test "$enableval" = yes; then
3920 ac_cv_use_file='wxUSE_FILE=yes'
3921 else
3922 ac_cv_use_file='wxUSE_FILE=no'
3923 fi
698dcdb6 3924
10f2d63a 3925else
698dcdb6 3926
10f2d63a
VZ
3927 LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}`
3928 if test "x$LINE" != x ; then
3929 eval "DEFAULT_$LINE"
3930 else
3931 no_cache=1
3932 fi
3933
3934 ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE
698dcdb6
VZ
3935
3936fi
10f2d63a
VZ
3937
3938
3939 eval "$ac_cv_use_file"
3940 if test "$no_cache" != 1; then
3941 echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp
3942 fi
3943
3944 if test "$wxUSE_FILE" = yes; then
698dcdb6 3945 echo "$ac_t""yes" 1>&6
10f2d63a 3946 else
698dcdb6 3947 echo "$ac_t""no" 1>&6
10f2d63a 3948 fi
698dcdb6 3949
10f2d63a 3950
1e6feb95 3951 echo $ac_n "checking for --enable-ffile""... $ac_c" 1>&6
a1622950 3952echo "configure:3953: checking for --enable-ffile" >&5
10f2d63a 3953 no_cache=0
1e6feb95
VZ
3954 # Check whether --enable-ffile or --disable-ffile was given.
3955if test "${enable_ffile+set}" = set; then
3956 enableval="$enable_ffile"
698dcdb6 3957
10f2d63a 3958 if test "$enableval" = yes; then
1e6feb95 3959 ac_cv_use_ffile='wxUSE_FFILE=yes'
10f2d63a 3960 else
1e6feb95 3961 ac_cv_use_ffile='wxUSE_FFILE=no'
10f2d63a 3962 fi
698dcdb6 3963
10f2d63a 3964else
698dcdb6 3965
1e6feb95 3966 LINE=`grep "wxUSE_FFILE" ${wx_arg_cache_file}`
10f2d63a
VZ
3967 if test "x$LINE" != x ; then
3968 eval "DEFAULT_$LINE"
3969 else
3970 no_cache=1
3971 fi
3972
1e6feb95 3973 ac_cv_use_ffile='wxUSE_FFILE='$DEFAULT_wxUSE_FFILE
698dcdb6
VZ
3974
3975fi
10f2d63a
VZ
3976
3977
1e6feb95 3978 eval "$ac_cv_use_ffile"
10f2d63a 3979 if test "$no_cache" != 1; then
1e6feb95 3980 echo $ac_cv_use_ffile >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
3981 fi
3982
1e6feb95 3983 if test "$wxUSE_FFILE" = yes; then
698dcdb6 3984 echo "$ac_t""yes" 1>&6
10f2d63a 3985 else
698dcdb6 3986 echo "$ac_t""no" 1>&6
10f2d63a 3987 fi
698dcdb6 3988
10f2d63a 3989
a3a584a7 3990 echo $ac_n "checking for --enable-textbuf""... $ac_c" 1>&6
a1622950 3991echo "configure:3992: checking for --enable-textbuf" >&5
a3a584a7
VZ
3992 no_cache=0
3993 # Check whether --enable-textbuf or --disable-textbuf was given.
3994if test "${enable_textbuf+set}" = set; then
3995 enableval="$enable_textbuf"
3996
3997 if test "$enableval" = yes; then
3998 ac_cv_use_textbuf='wxUSE_TEXTBUFFER=yes'
3999 else
4000 ac_cv_use_textbuf='wxUSE_TEXTBUFFER=no'
4001 fi
4002
4003else
4004
4005 LINE=`grep "wxUSE_TEXTBUFFER" ${wx_arg_cache_file}`
4006 if test "x$LINE" != x ; then
4007 eval "DEFAULT_$LINE"
4008 else
4009 no_cache=1
4010 fi
4011
4012 ac_cv_use_textbuf='wxUSE_TEXTBUFFER='$DEFAULT_wxUSE_TEXTBUFFER
4013
4014fi
4015
4016
4017 eval "$ac_cv_use_textbuf"
4018 if test "$no_cache" != 1; then
4019 echo $ac_cv_use_textbuf >> ${wx_arg_cache_file}.tmp
4020 fi
4021
4022 if test "$wxUSE_TEXTBUFFER" = yes; then
4023 echo "$ac_t""yes" 1>&6
4024 else
4025 echo "$ac_t""no" 1>&6
4026 fi
4027
4028
1e6feb95 4029 echo $ac_n "checking for --enable-textfile""... $ac_c" 1>&6
a1622950 4030echo "configure:4031: checking for --enable-textfile" >&5
10f2d63a 4031 no_cache=0
1e6feb95
VZ
4032 # Check whether --enable-textfile or --disable-textfile was given.
4033if test "${enable_textfile+set}" = set; then
4034 enableval="$enable_textfile"
698dcdb6 4035
10f2d63a 4036 if test "$enableval" = yes; then
1e6feb95 4037 ac_cv_use_textfile='wxUSE_TEXTFILE=yes'
10f2d63a 4038 else
1e6feb95 4039 ac_cv_use_textfile='wxUSE_TEXTFILE=no'
10f2d63a 4040 fi
698dcdb6 4041
10f2d63a 4042else
698dcdb6 4043
1e6feb95 4044 LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}`
10f2d63a
VZ
4045 if test "x$LINE" != x ; then
4046 eval "DEFAULT_$LINE"
4047 else
4048 no_cache=1
4049 fi
4050
1e6feb95 4051 ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE
698dcdb6
VZ
4052
4053fi
10f2d63a
VZ
4054
4055
1e6feb95 4056 eval "$ac_cv_use_textfile"
10f2d63a 4057 if test "$no_cache" != 1; then
1e6feb95 4058 echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
4059 fi
4060
1e6feb95 4061 if test "$wxUSE_TEXTFILE" = yes; then
698dcdb6 4062 echo "$ac_t""yes" 1>&6
10f2d63a 4063 else
698dcdb6 4064 echo "$ac_t""no" 1>&6
10f2d63a 4065 fi
698dcdb6 4066
10f2d63a 4067
1e6feb95 4068 echo $ac_n "checking for --enable-fontmap""... $ac_c" 1>&6
a1622950 4069echo "configure:4070: checking for --enable-fontmap" >&5
10f2d63a 4070 no_cache=0
1e6feb95
VZ
4071 # Check whether --enable-fontmap or --disable-fontmap was given.
4072if test "${enable_fontmap+set}" = set; then
4073 enableval="$enable_fontmap"
698dcdb6 4074
10f2d63a 4075 if test "$enableval" = yes; then
1e6feb95 4076 ac_cv_use_fontmap='wxUSE_FONTMAP=yes'
10f2d63a 4077 else
1e6feb95 4078 ac_cv_use_fontmap='wxUSE_FONTMAP=no'
10f2d63a 4079 fi
698dcdb6 4080
10f2d63a 4081else
698dcdb6 4082
1e6feb95 4083 LINE=`grep "wxUSE_FONTMAP" ${wx_arg_cache_file}`
10f2d63a
VZ
4084 if test "x$LINE" != x ; then
4085 eval "DEFAULT_$LINE"
4086 else
4087 no_cache=1
4088 fi
4089
1e6feb95 4090 ac_cv_use_fontmap='wxUSE_FONTMAP='$DEFAULT_wxUSE_FONTMAP
698dcdb6
VZ
4091
4092fi
10f2d63a
VZ
4093
4094
1e6feb95 4095 eval "$ac_cv_use_fontmap"
10f2d63a 4096 if test "$no_cache" != 1; then
1e6feb95 4097 echo $ac_cv_use_fontmap >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
4098 fi
4099
1e6feb95 4100 if test "$wxUSE_FONTMAP" = yes; then
698dcdb6 4101 echo "$ac_t""yes" 1>&6
10f2d63a 4102 else
698dcdb6 4103 echo "$ac_t""no" 1>&6
10f2d63a 4104 fi
698dcdb6 4105
10f2d63a 4106
1e6feb95 4107 echo $ac_n "checking for --enable-unicode""... $ac_c" 1>&6
a1622950 4108echo "configure:4109: checking for --enable-unicode" >&5
10f2d63a 4109 no_cache=0
1e6feb95
VZ
4110 # Check whether --enable-unicode or --disable-unicode was given.
4111if test "${enable_unicode+set}" = set; then
4112 enableval="$enable_unicode"
4113
4114 if test "$enableval" = yes; then
4115 ac_cv_use_unicode='wxUSE_UNICODE=yes'
4116 else
4117 ac_cv_use_unicode='wxUSE_UNICODE=no'
4118 fi
4119
4120else
4121
4122 LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}`
4123 if test "x$LINE" != x ; then
4124 eval "DEFAULT_$LINE"
4125 else
4126 no_cache=1
4127 fi
4128
4129 ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE
4130
4131fi
4132
4133
4134 eval "$ac_cv_use_unicode"
4135 if test "$no_cache" != 1; then
4136 echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp
4137 fi
4138
4139 if test "$wxUSE_UNICODE" = yes; then
4140 echo "$ac_t""yes" 1>&6
4141 else
4142 echo "$ac_t""no" 1>&6
4143 fi
4144
4145
a72a4bfa 4146 echo $ac_n "checking for --enable-mslu""... $ac_c" 1>&6
a1622950 4147echo "configure:4148: checking for --enable-mslu" >&5
a72a4bfa
VS
4148 no_cache=0
4149 # Check whether --enable-mslu or --disable-mslu was given.
4150if test "${enable_mslu+set}" = set; then
4151 enableval="$enable_mslu"
4152
4153 if test "$enableval" = yes; then
4154 ac_cv_use_mslu='wxUSE_UNICODE_MSLU=yes'
4155 else
4156 ac_cv_use_mslu='wxUSE_UNICODE_MSLU=no'
4157 fi
4158
4159else
4160
4161 LINE=`grep "wxUSE_UNICODE_MSLU" ${wx_arg_cache_file}`
4162 if test "x$LINE" != x ; then
4163 eval "DEFAULT_$LINE"
4164 else
4165 no_cache=1
4166 fi
4167
4168 ac_cv_use_mslu='wxUSE_UNICODE_MSLU='$DEFAULT_wxUSE_UNICODE_MSLU
4169
4170fi
4171
4172
4173 eval "$ac_cv_use_mslu"
4174 if test "$no_cache" != 1; then
4175 echo $ac_cv_use_mslu >> ${wx_arg_cache_file}.tmp
4176 fi
4177
4178 if test "$wxUSE_UNICODE_MSLU" = yes; then
4179 echo "$ac_t""yes" 1>&6
4180 else
4181 echo "$ac_t""no" 1>&6
4182 fi
4183
4184
1e6feb95 4185 echo $ac_n "checking for --enable-wxprintfv""... $ac_c" 1>&6
a1622950 4186echo "configure:4187: checking for --enable-wxprintfv" >&5
1e6feb95
VZ
4187 no_cache=0
4188 # Check whether --enable-wxprintfv or --disable-wxprintfv was given.
4189if test "${enable_wxprintfv+set}" = set; then
4190 enableval="$enable_wxprintfv"
4191
4192 if test "$enableval" = yes; then
10f2d63a
VZ
4193 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=yes'
4194 else
4195 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=no'
4196 fi
698dcdb6 4197
10f2d63a 4198else
698dcdb6 4199
10f2d63a
VZ
4200 LINE=`grep "wxUSE_EXPERIMENTAL_PRINTF" ${wx_arg_cache_file}`
4201 if test "x$LINE" != x ; then
4202 eval "DEFAULT_$LINE"
4203 else
4204 no_cache=1
4205 fi
4206
4207 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF='$DEFAULT_wxUSE_EXPERIMENTAL_PRINTF
698dcdb6
VZ
4208
4209fi
10f2d63a
VZ
4210
4211
4212 eval "$ac_cv_use_wxprintfv"
4213 if test "$no_cache" != 1; then
4214 echo $ac_cv_use_wxprintfv >> ${wx_arg_cache_file}.tmp
4215 fi
4216
4217 if test "$wxUSE_EXPERIMENTAL_PRINTF" = yes; then
698dcdb6 4218 echo "$ac_t""yes" 1>&6
10f2d63a 4219 else
698dcdb6 4220 echo "$ac_t""no" 1>&6
10f2d63a 4221 fi
698dcdb6 4222
10f2d63a 4223
698dcdb6 4224 echo $ac_n "checking for --enable-std_iostreams""... $ac_c" 1>&6
a1622950 4225echo "configure:4226: checking for --enable-std_iostreams" >&5
10f2d63a
VZ
4226 no_cache=0
4227 # Check whether --enable-std_iostreams or --disable-std_iostreams was given.
4228if test "${enable_std_iostreams+set}" = set; then
4229 enableval="$enable_std_iostreams"
698dcdb6 4230
10f2d63a
VZ
4231 if test "$enableval" = yes; then
4232 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes'
4233 else
4234 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no'
4235 fi
698dcdb6 4236
10f2d63a 4237else
698dcdb6 4238
10f2d63a
VZ
4239 LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}`
4240 if test "x$LINE" != x ; then
4241 eval "DEFAULT_$LINE"
4242 else
4243 no_cache=1
4244 fi
4245
4246 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM
698dcdb6
VZ
4247
4248fi
10f2d63a
VZ
4249
4250
4251 eval "$ac_cv_use_std_iostreams"
4252 if test "$no_cache" != 1; then
4253 echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp
4254 fi
4255
4256 if test "$wxUSE_STD_IOSTREAM" = yes; then
698dcdb6 4257 echo "$ac_t""yes" 1>&6
10f2d63a 4258 else
698dcdb6 4259 echo "$ac_t""no" 1>&6
10f2d63a 4260 fi
698dcdb6 4261
10f2d63a 4262
698dcdb6 4263 echo $ac_n "checking for --enable-filesystem""... $ac_c" 1>&6
a1622950 4264echo "configure:4265: checking for --enable-filesystem" >&5
24528b0c
VS
4265 no_cache=0
4266 # Check whether --enable-filesystem or --disable-filesystem was given.
4267if test "${enable_filesystem+set}" = set; then
4268 enableval="$enable_filesystem"
698dcdb6 4269
24528b0c
VS
4270 if test "$enableval" = yes; then
4271 ac_cv_use_filesystem='wxUSE_FILESYSTEM=yes'
4272 else
4273 ac_cv_use_filesystem='wxUSE_FILESYSTEM=no'
4274 fi
698dcdb6 4275
24528b0c 4276else
698dcdb6 4277
24528b0c
VS
4278 LINE=`grep "wxUSE_FILESYSTEM" ${wx_arg_cache_file}`
4279 if test "x$LINE" != x ; then
4280 eval "DEFAULT_$LINE"
4281 else
4282 no_cache=1
4283 fi
4284
4285 ac_cv_use_filesystem='wxUSE_FILESYSTEM='$DEFAULT_wxUSE_FILESYSTEM
698dcdb6
VZ
4286
4287fi
24528b0c
VS
4288
4289
4290 eval "$ac_cv_use_filesystem"
4291 if test "$no_cache" != 1; then
4292 echo $ac_cv_use_filesystem >> ${wx_arg_cache_file}.tmp
4293 fi
4294
4295 if test "$wxUSE_FILESYSTEM" = yes; then
698dcdb6 4296 echo "$ac_t""yes" 1>&6
24528b0c 4297 else
698dcdb6 4298 echo "$ac_t""no" 1>&6
24528b0c 4299 fi
698dcdb6 4300
24528b0c 4301
698dcdb6 4302 echo $ac_n "checking for --enable-fs_inet""... $ac_c" 1>&6
a1622950 4303echo "configure:4304: checking for --enable-fs_inet" >&5
10f2d63a
VZ
4304 no_cache=0
4305 # Check whether --enable-fs_inet or --disable-fs_inet was given.
4306if test "${enable_fs_inet+set}" = set; then
4307 enableval="$enable_fs_inet"
698dcdb6 4308
10f2d63a
VZ
4309 if test "$enableval" = yes; then
4310 ac_cv_use_fs_inet='wxUSE_FS_INET=yes'
4311 else
4312 ac_cv_use_fs_inet='wxUSE_FS_INET=no'
4313 fi
698dcdb6 4314
10f2d63a 4315else
698dcdb6 4316
10f2d63a
VZ
4317 LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}`
4318 if test "x$LINE" != x ; then
4319 eval "DEFAULT_$LINE"
4320 else
4321 no_cache=1
4322 fi
4323
4324 ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET
698dcdb6
VZ
4325
4326fi
10f2d63a
VZ
4327
4328
4329 eval "$ac_cv_use_fs_inet"
4330 if test "$no_cache" != 1; then
4331 echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp
4332 fi
4333
4334 if test "$wxUSE_FS_INET" = yes; then
698dcdb6 4335 echo "$ac_t""yes" 1>&6
10f2d63a 4336 else
698dcdb6 4337 echo "$ac_t""no" 1>&6
10f2d63a 4338 fi
698dcdb6 4339
10f2d63a 4340
698dcdb6 4341 echo $ac_n "checking for --enable-fs_zip""... $ac_c" 1>&6
a1622950 4342echo "configure:4343: checking for --enable-fs_zip" >&5
10f2d63a
VZ
4343 no_cache=0
4344 # Check whether --enable-fs_zip or --disable-fs_zip was given.
4345if test "${enable_fs_zip+set}" = set; then
4346 enableval="$enable_fs_zip"
698dcdb6 4347
10f2d63a
VZ
4348 if test "$enableval" = yes; then
4349 ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes'
4350 else
4351 ac_cv_use_fs_zip='wxUSE_FS_ZIP=no'
4352 fi
698dcdb6 4353
10f2d63a 4354else
698dcdb6 4355
10f2d63a
VZ
4356 LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}`
4357 if test "x$LINE" != x ; then
4358 eval "DEFAULT_$LINE"
4359 else
4360 no_cache=1
4361 fi
4362
4363 ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP
698dcdb6
VZ
4364
4365fi
10f2d63a
VZ
4366
4367
4368 eval "$ac_cv_use_fs_zip"
4369 if test "$no_cache" != 1; then
4370 echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp
4371 fi
4372
4373 if test "$wxUSE_FS_ZIP" = yes; then
698dcdb6 4374 echo "$ac_t""yes" 1>&6
10f2d63a 4375 else
698dcdb6 4376 echo "$ac_t""no" 1>&6
10f2d63a 4377 fi
698dcdb6 4378
10f2d63a 4379
698dcdb6 4380 echo $ac_n "checking for --enable-zipstream""... $ac_c" 1>&6
a1622950 4381echo "configure:4382: checking for --enable-zipstream" >&5
10f2d63a
VZ
4382 no_cache=0
4383 # Check whether --enable-zipstream or --disable-zipstream was given.
4384if test "${enable_zipstream+set}" = set; then
4385 enableval="$enable_zipstream"
698dcdb6 4386
10f2d63a
VZ
4387 if test "$enableval" = yes; then
4388 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes'
4389 else
4390 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no'
4391 fi
698dcdb6 4392
10f2d63a 4393else
698dcdb6 4394
10f2d63a
VZ
4395 LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}`
4396 if test "x$LINE" != x ; then
4397 eval "DEFAULT_$LINE"
4398 else
4399 no_cache=1
4400 fi
4401
4402 ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM
698dcdb6
VZ
4403
4404fi
10f2d63a
VZ
4405
4406
4407 eval "$ac_cv_use_zipstream"
4408 if test "$no_cache" != 1; then
4409 echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp
4410 fi
4411
4412 if test "$wxUSE_ZIPSTREAM" = yes; then
698dcdb6 4413 echo "$ac_t""yes" 1>&6
10f2d63a 4414 else
698dcdb6 4415 echo "$ac_t""no" 1>&6
10f2d63a 4416 fi
698dcdb6 4417
10f2d63a 4418
698dcdb6
VZ
4419
4420 echo $ac_n "checking for --enable-catch_segvs""... $ac_c" 1>&6
a1622950 4421echo "configure:4422: checking for --enable-catch_segvs" >&5
eb4efbdc
VZ
4422 no_cache=0
4423 # Check whether --enable-catch_segvs or --disable-catch_segvs was given.
4424if test "${enable_catch_segvs+set}" = set; then
4425 enableval="$enable_catch_segvs"
698dcdb6 4426
eb4efbdc
VZ
4427 if test "$enableval" = yes; then
4428 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes'
4429 else
4430 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no'
4431 fi
698dcdb6 4432
eb4efbdc 4433else
698dcdb6 4434
eb4efbdc
VZ
4435 LINE=`grep "wxUSE_ON_FATAL_EXCEPTION" ${wx_arg_cache_file}`
4436 if test "x$LINE" != x ; then
4437 eval "DEFAULT_$LINE"
4438 else
4439 no_cache=1
4440 fi
4441
4442 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION='$DEFAULT_wxUSE_ON_FATAL_EXCEPTION
698dcdb6
VZ
4443
4444fi
eb4efbdc
VZ
4445
4446
4447 eval "$ac_cv_use_catch_segvs"
4448 if test "$no_cache" != 1; then
4449 echo $ac_cv_use_catch_segvs >> ${wx_arg_cache_file}.tmp
4450 fi
4451
4452 if test "$wxUSE_ON_FATAL_EXCEPTION" = yes; then
698dcdb6 4453 echo "$ac_t""yes" 1>&6
eb4efbdc 4454 else
698dcdb6 4455 echo "$ac_t""no" 1>&6
eb4efbdc 4456 fi
698dcdb6 4457
eb4efbdc 4458
698dcdb6 4459 echo $ac_n "checking for --enable-snglinst""... $ac_c" 1>&6
a1622950 4460echo "configure:4461: checking for --enable-snglinst" >&5
4f3c5f06
VZ
4461 no_cache=0
4462 # Check whether --enable-snglinst or --disable-snglinst was given.
4463if test "${enable_snglinst+set}" = set; then
4464 enableval="$enable_snglinst"
698dcdb6 4465
4f3c5f06
VZ
4466 if test "$enableval" = yes; then
4467 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=yes'
4468 else
4469 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=no'
4470 fi
698dcdb6 4471
4f3c5f06 4472else
698dcdb6 4473
4f3c5f06
VZ
4474 LINE=`grep "wxUSE_SNGLINST_CHECKER" ${wx_arg_cache_file}`
4475 if test "x$LINE" != x ; then
4476 eval "DEFAULT_$LINE"
4477 else
4478 no_cache=1
4479 fi
4480
4481 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER='$DEFAULT_wxUSE_SNGLINST_CHECKER
698dcdb6
VZ
4482
4483fi
4f3c5f06
VZ
4484
4485
4486 eval "$ac_cv_use_snglinst"
4487 if test "$no_cache" != 1; then
4488 echo $ac_cv_use_snglinst >> ${wx_arg_cache_file}.tmp
4489 fi
4490
4491 if test "$wxUSE_SNGLINST_CHECKER" = yes; then
698dcdb6 4492 echo "$ac_t""yes" 1>&6
4f3c5f06 4493 else
698dcdb6 4494 echo "$ac_t""no" 1>&6
4f3c5f06 4495 fi
698dcdb6
VZ
4496
4497
eb4efbdc 4498
1e6feb95 4499 echo $ac_n "checking for --enable-mimetype""... $ac_c" 1>&6
a1622950 4500echo "configure:4501: checking for --enable-mimetype" >&5
1e6feb95
VZ
4501 no_cache=0
4502 # Check whether --enable-mimetype or --disable-mimetype was given.
4503if test "${enable_mimetype+set}" = set; then
4504 enableval="$enable_mimetype"
4505
4506 if test "$enableval" = yes; then
4507 ac_cv_use_mimetype='wxUSE_MIMETYPE=yes'
4508 else
4509 ac_cv_use_mimetype='wxUSE_MIMETYPE=no'
4510 fi
4511
4512else
4513
4514 LINE=`grep "wxUSE_MIMETYPE" ${wx_arg_cache_file}`
4515 if test "x$LINE" != x ; then
4516 eval "DEFAULT_$LINE"
4517 else
4518 no_cache=1
4519 fi
4520
4521 ac_cv_use_mimetype='wxUSE_MIMETYPE='$DEFAULT_wxUSE_MIMETYPE
4522
4523fi
4524
4525
4526 eval "$ac_cv_use_mimetype"
4527 if test "$no_cache" != 1; then
4528 echo $ac_cv_use_mimetype >> ${wx_arg_cache_file}.tmp
4529 fi
4530
4531 if test "$wxUSE_MIMETYPE" = yes; then
4532 echo "$ac_t""yes" 1>&6
4533 else
4534 echo "$ac_t""no" 1>&6
4535 fi
4536
4537
3e44f09d 4538 echo $ac_n "checking for --enable-system_options""... $ac_c" 1>&6
a1622950 4539echo "configure:4540: checking for --enable-system_options" >&5
3e44f09d
VZ
4540 no_cache=0
4541 # Check whether --enable-system_options or --disable-system_options was given.
4542if test "${enable_system_options+set}" = set; then
4543 enableval="$enable_system_options"
4544
4545 if test "$enableval" = yes; then
4546 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=yes'
4547 else
4548 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=no'
4549 fi
4550
4551else
4552
4553 LINE=`grep "wxUSE_SYSTEM_OPTIONS" ${wx_arg_cache_file}`
4554 if test "x$LINE" != x ; then
4555 eval "DEFAULT_$LINE"
4556 else
4557 no_cache=1
4558 fi
4559
4560 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS='$DEFAULT_wxUSE_SYSTEM_OPTIONS
4561
4562fi
4563
4564
4565 eval "$ac_cv_use_system_options"
4566 if test "$no_cache" != 1; then
4567 echo $ac_cv_use_system_options >> ${wx_arg_cache_file}.tmp
4568 fi
4569
4570 if test "$wxUSE_SYSTEM_OPTIONS" = yes; then
4571 echo "$ac_t""yes" 1>&6
4572 else
4573 echo "$ac_t""no" 1>&6
4574 fi
4575
4576
1e6feb95 4577
698dcdb6
VZ
4578
4579 echo $ac_n "checking for --enable-threads""... $ac_c" 1>&6
a1622950 4580echo "configure:4581: checking for --enable-threads" >&5
10f2d63a
VZ
4581 no_cache=0
4582 # Check whether --enable-threads or --disable-threads was given.
4583if test "${enable_threads+set}" = set; then
4584 enableval="$enable_threads"
698dcdb6 4585
10f2d63a
VZ
4586 if test "$enableval" = yes; then
4587 ac_cv_use_threads='wxUSE_THREADS=yes'
4588 else
4589 ac_cv_use_threads='wxUSE_THREADS=no'
4590 fi
698dcdb6 4591
10f2d63a 4592else
698dcdb6 4593
10f2d63a
VZ
4594 LINE=`grep "wxUSE_THREADS" ${wx_arg_cache_file}`
4595 if test "x$LINE" != x ; then
4596 eval "DEFAULT_$LINE"
4597 else
4598 no_cache=1
4599 fi
4600
4601 ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS
698dcdb6
VZ
4602
4603fi
10f2d63a
VZ
4604
4605
4606 eval "$ac_cv_use_threads"
4607 if test "$no_cache" != 1; then
4608 echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp
4609 fi
4610
4611 if test "$wxUSE_THREADS" = yes; then
698dcdb6 4612 echo "$ac_t""yes" 1>&6
10f2d63a 4613 else
698dcdb6 4614 echo "$ac_t""no" 1>&6
10f2d63a 4615 fi
698dcdb6 4616
10f2d63a 4617
b12915c1
VZ
4618if test "$wxUSE_GUI" = "yes"; then
4619
698dcdb6
VZ
4620
4621
4622 echo $ac_n "checking for --enable-docview""... $ac_c" 1>&6
a1622950 4623echo "configure:4624: checking for --enable-docview" >&5
10f2d63a
VZ
4624 no_cache=0
4625 # Check whether --enable-docview or --disable-docview was given.
4626if test "${enable_docview+set}" = set; then
4627 enableval="$enable_docview"
698dcdb6 4628
10f2d63a
VZ
4629 if test "$enableval" = yes; then
4630 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes'
4631 else
4632 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no'
4633 fi
698dcdb6 4634
10f2d63a 4635else
698dcdb6 4636
10f2d63a
VZ
4637 LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}`
4638 if test "x$LINE" != x ; then
4639 eval "DEFAULT_$LINE"
4640 else
4641 no_cache=1
4642 fi
4643
4644 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE
698dcdb6
VZ
4645
4646fi
10f2d63a
VZ
4647
4648
4649 eval "$ac_cv_use_docview"
4650 if test "$no_cache" != 1; then
4651 echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp
4652 fi
4653
4654 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then
698dcdb6 4655 echo "$ac_t""yes" 1>&6
10f2d63a 4656 else
698dcdb6 4657 echo "$ac_t""no" 1>&6
10f2d63a 4658 fi
698dcdb6 4659
10f2d63a 4660
698dcdb6 4661 echo $ac_n "checking for --enable-help""... $ac_c" 1>&6
a1622950 4662echo "configure:4663: checking for --enable-help" >&5
10f2d63a
VZ
4663 no_cache=0
4664 # Check whether --enable-help or --disable-help was given.
4665if test "${enable_help+set}" = set; then
4666 enableval="$enable_help"
698dcdb6 4667
10f2d63a
VZ
4668 if test "$enableval" = yes; then
4669 ac_cv_use_help='wxUSE_HELP=yes'
4670 else
4671 ac_cv_use_help='wxUSE_HELP=no'
4672 fi
698dcdb6 4673
10f2d63a 4674else
698dcdb6 4675
10f2d63a
VZ
4676 LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}`
4677 if test "x$LINE" != x ; then
4678 eval "DEFAULT_$LINE"
4679 else
4680 no_cache=1
4681 fi
4682
4683 ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP
698dcdb6
VZ
4684
4685fi
10f2d63a
VZ
4686
4687
4688 eval "$ac_cv_use_help"
4689 if test "$no_cache" != 1; then
4690 echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp
4691 fi
4692
4693 if test "$wxUSE_HELP" = yes; then
698dcdb6 4694 echo "$ac_t""yes" 1>&6
10f2d63a 4695 else
698dcdb6 4696 echo "$ac_t""no" 1>&6
10f2d63a 4697 fi
698dcdb6 4698
10f2d63a 4699
29fd3c0c 4700 echo $ac_n "checking for --enable-mshtmlhelp""... $ac_c" 1>&6
a1622950 4701echo "configure:4702: checking for --enable-mshtmlhelp" >&5
29fd3c0c
VS
4702 no_cache=0
4703 # Check whether --enable-mshtmlhelp or --disable-mshtmlhelp was given.
4704if test "${enable_mshtmlhelp+set}" = set; then
4705 enableval="$enable_mshtmlhelp"
4706
4707 if test "$enableval" = yes; then
4708 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=yes'
4709 else
4710 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=no'
4711 fi
4712
4713else
4714
4715 LINE=`grep "wxUSE_MS_HTML_HELP" ${wx_arg_cache_file}`
4716 if test "x$LINE" != x ; then
4717 eval "DEFAULT_$LINE"
4718 else
4719 no_cache=1
4720 fi
4721
4722 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP='$DEFAULT_wxUSE_MS_HTML_HELP
4723
4724fi
4725
4726
4727 eval "$ac_cv_use_mshtmlhelp"
4728 if test "$no_cache" != 1; then
4729 echo $ac_cv_use_mshtmlhelp >> ${wx_arg_cache_file}.tmp
4730 fi
4731
4732 if test "$wxUSE_MS_HTML_HELP" = yes; then
4733 echo "$ac_t""yes" 1>&6
4734 else
4735 echo "$ac_t""no" 1>&6
4736 fi
4737
4738
3379ed37 4739 echo $ac_n "checking for --enable-html""... $ac_c" 1>&6
a1622950 4740echo "configure:4741: checking for --enable-html" >&5
3379ed37
VZ
4741 no_cache=0
4742 # Check whether --enable-html or --disable-html was given.
4743if test "${enable_html+set}" = set; then
4744 enableval="$enable_html"
4745
4746 if test "$enableval" = yes; then
4747 ac_cv_use_html='wxUSE_HTML=yes'
4748 else
4749 ac_cv_use_html='wxUSE_HTML=no'
4750 fi
4751
4752else
4753
4754 LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}`
4755 if test "x$LINE" != x ; then
4756 eval "DEFAULT_$LINE"
4757 else
4758 no_cache=1
4759 fi
4760
4761 ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML
4762
4763fi
4764
4765
4766 eval "$ac_cv_use_html"
4767 if test "$no_cache" != 1; then
4768 echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp
4769 fi
4770
4771 if test "$wxUSE_HTML" = yes; then
4772 echo "$ac_t""yes" 1>&6
4773 else
4774 echo "$ac_t""no" 1>&6
4775 fi
4776
4777
4778 echo $ac_n "checking for --enable-htmlhelp""... $ac_c" 1>&6
a1622950 4779echo "configure:4780: checking for --enable-htmlhelp" >&5
3379ed37
VZ
4780 no_cache=0
4781 # Check whether --enable-htmlhelp or --disable-htmlhelp was given.
4782if test "${enable_htmlhelp+set}" = set; then
4783 enableval="$enable_htmlhelp"
4784
4785 if test "$enableval" = yes; then
4786 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=yes'
4787 else
4788 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=no'
4789 fi
4790
4791else
4792
4793 LINE=`grep "wxUSE_WXHTML_HELP" ${wx_arg_cache_file}`
4794 if test "x$LINE" != x ; then
4795 eval "DEFAULT_$LINE"
4796 else
4797 no_cache=1
4798 fi
4799
4800 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP='$DEFAULT_wxUSE_WXHTML_HELP
4801
4802fi
4803
4804
4805 eval "$ac_cv_use_htmlhelp"
4806 if test "$no_cache" != 1; then
4807 echo $ac_cv_use_htmlhelp >> ${wx_arg_cache_file}.tmp
4808 fi
4809
4810 if test "$wxUSE_WXHTML_HELP" = yes; then
4811 echo "$ac_t""yes" 1>&6
4812 else
4813 echo "$ac_t""no" 1>&6
4814 fi
4815
4816
698dcdb6 4817 echo $ac_n "checking for --enable-constraints""... $ac_c" 1>&6
a1622950 4818echo "configure:4819: checking for --enable-constraints" >&5
10f2d63a
VZ
4819 no_cache=0
4820 # Check whether --enable-constraints or --disable-constraints was given.
4821if test "${enable_constraints+set}" = set; then
4822 enableval="$enable_constraints"
698dcdb6 4823
10f2d63a
VZ
4824 if test "$enableval" = yes; then
4825 ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes'
4826 else
4827 ac_cv_use_constraints='wxUSE_CONSTRAINTS=no'
4828 fi
698dcdb6 4829
10f2d63a 4830else
698dcdb6 4831
10f2d63a
VZ
4832 LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}`
4833 if test "x$LINE" != x ; then
4834 eval "DEFAULT_$LINE"
4835 else
4836 no_cache=1
4837 fi
4838
4839 ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS
698dcdb6
VZ
4840
4841fi
10f2d63a
VZ
4842
4843
4844 eval "$ac_cv_use_constraints"
4845 if test "$no_cache" != 1; then
4846 echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp
4847 fi
4848
4849 if test "$wxUSE_CONSTRAINTS" = yes; then
698dcdb6 4850 echo "$ac_t""yes" 1>&6
10f2d63a 4851 else
698dcdb6 4852 echo "$ac_t""no" 1>&6
10f2d63a 4853 fi
698dcdb6 4854
10f2d63a 4855
698dcdb6 4856 echo $ac_n "checking for --enable-printarch""... $ac_c" 1>&6
a1622950 4857echo "configure:4858: checking for --enable-printarch" >&5
10f2d63a
VZ
4858 no_cache=0
4859 # Check whether --enable-printarch or --disable-printarch was given.
4860if test "${enable_printarch+set}" = set; then
4861 enableval="$enable_printarch"
698dcdb6 4862
10f2d63a
VZ
4863 if test "$enableval" = yes; then
4864 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes'
4865 else
4866 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no'
4867 fi
698dcdb6 4868
10f2d63a 4869else
698dcdb6 4870
10f2d63a
VZ
4871 LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}`
4872 if test "x$LINE" != x ; then
4873 eval "DEFAULT_$LINE"
4874 else
4875 no_cache=1
4876 fi
4877
4878 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE
698dcdb6
VZ
4879
4880fi
10f2d63a
VZ
4881
4882
4883 eval "$ac_cv_use_printarch"
4884 if test "$no_cache" != 1; then
4885 echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp
4886 fi
4887
4888 if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then
698dcdb6 4889 echo "$ac_t""yes" 1>&6
10f2d63a 4890 else
698dcdb6 4891 echo "$ac_t""no" 1>&6
10f2d63a 4892 fi
698dcdb6 4893
10f2d63a 4894
698dcdb6 4895 echo $ac_n "checking for --enable-mdi""... $ac_c" 1>&6
a1622950 4896echo "configure:4897: checking for --enable-mdi" >&5
10f2d63a
VZ
4897 no_cache=0
4898 # Check whether --enable-mdi or --disable-mdi was given.
4899if test "${enable_mdi+set}" = set; then
4900 enableval="$enable_mdi"
698dcdb6 4901
10f2d63a
VZ
4902 if test "$enableval" = yes; then
4903 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=yes'
4904 else
4905 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=no'
4906 fi
698dcdb6 4907
10f2d63a 4908else
698dcdb6 4909
10f2d63a
VZ
4910 LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}`
4911 if test "x$LINE" != x ; then
4912 eval "DEFAULT_$LINE"
4913 else
4914 no_cache=1
4915 fi
4916
4917 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE
698dcdb6
VZ
4918
4919fi
10f2d63a
VZ
4920
4921
4922 eval "$ac_cv_use_mdi"
4923 if test "$no_cache" != 1; then
4924 echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp
4925 fi
4926
4927 if test "$wxUSE_MDI_ARCHITECTURE" = yes; then
698dcdb6 4928 echo "$ac_t""yes" 1>&6
10f2d63a 4929 else
698dcdb6 4930 echo "$ac_t""no" 1>&6
10f2d63a 4931 fi
698dcdb6
VZ
4932
4933
1e6feb95 4934 echo $ac_n "checking for --enable-loggui""... $ac_c" 1>&6
a1622950 4935echo "configure:4936: checking for --enable-loggui" >&5
1e6feb95
VZ
4936 no_cache=0
4937 # Check whether --enable-loggui or --disable-loggui was given.
4938if test "${enable_loggui+set}" = set; then
4939 enableval="$enable_loggui"
4940
4941 if test "$enableval" = yes; then
4942 ac_cv_use_loggui='wxUSE_LOGGUI=yes'
4943 else
4944 ac_cv_use_loggui='wxUSE_LOGGUI=no'
4945 fi
4946
4947else
4948
4949 LINE=`grep "wxUSE_LOGGUI" ${wx_arg_cache_file}`
4950 if test "x$LINE" != x ; then
4951 eval "DEFAULT_$LINE"
4952 else
4953 no_cache=1
4954 fi
4955
4956 ac_cv_use_loggui='wxUSE_LOGGUI='$DEFAULT_wxUSE_LOGGUI
4957
4958fi
4959
4960
4961 eval "$ac_cv_use_loggui"
4962 if test "$no_cache" != 1; then
4963 echo $ac_cv_use_loggui >> ${wx_arg_cache_file}.tmp
4964 fi
4965
4966 if test "$wxUSE_LOGGUI" = yes; then
4967 echo "$ac_t""yes" 1>&6
4968 else
4969 echo "$ac_t""no" 1>&6
4970 fi
4971
4972
4973 echo $ac_n "checking for --enable-logwin""... $ac_c" 1>&6
a1622950 4974echo "configure:4975: checking for --enable-logwin" >&5
1e6feb95
VZ
4975 no_cache=0
4976 # Check whether --enable-logwin or --disable-logwin was given.
4977if test "${enable_logwin+set}" = set; then
4978 enableval="$enable_logwin"
4979
4980 if test "$enableval" = yes; then
4981 ac_cv_use_logwin='wxUSE_LOGWINDOW=yes'
4982 else
4983 ac_cv_use_logwin='wxUSE_LOGWINDOW=no'
4984 fi
4985
4986else
4987
4988 LINE=`grep "wxUSE_LOGWINDOW" ${wx_arg_cache_file}`
4989 if test "x$LINE" != x ; then
4990 eval "DEFAULT_$LINE"
4991 else
4992 no_cache=1
4993 fi
4994
4995 ac_cv_use_logwin='wxUSE_LOGWINDOW='$DEFAULT_wxUSE_LOGWINDOW
4996
4997fi
4998
4999
5000 eval "$ac_cv_use_logwin"
5001 if test "$no_cache" != 1; then
5002 echo $ac_cv_use_logwin >> ${wx_arg_cache_file}.tmp
5003 fi
5004
5005 if test "$wxUSE_LOGWINDOW" = yes; then
5006 echo "$ac_t""yes" 1>&6
5007 else
5008 echo "$ac_t""no" 1>&6
5009 fi
5010
5011
69d27ff7 5012 echo $ac_n "checking for --enable-logdialog""... $ac_c" 1>&6
a1622950 5013echo "configure:5014: checking for --enable-logdialog" >&5
69d27ff7
MB
5014 no_cache=0
5015 # Check whether --enable-logdialog or --disable-logdialog was given.
5016if test "${enable_logdialog+set}" = set; then
5017 enableval="$enable_logdialog"
5018
5019 if test "$enableval" = yes; then
5020 ac_cv_use_logdialog='wxUSE_LOGDIALOG=yes'
5021 else
5022 ac_cv_use_logdialog='wxUSE_LOGDIALOG=no'
5023 fi
5024
5025else
5026
5027 LINE=`grep "wxUSE_LOGDIALOG" ${wx_arg_cache_file}`
5028 if test "x$LINE" != x ; then
5029 eval "DEFAULT_$LINE"
5030 else
5031 no_cache=1
5032 fi
5033
5034 ac_cv_use_logdialog='wxUSE_LOGDIALOG='$DEFAULT_wxUSE_LOGDIALOG
5035
5036fi
5037
5038
5039 eval "$ac_cv_use_logdialog"
5040 if test "$no_cache" != 1; then
5041 echo $ac_cv_use_logdialog >> ${wx_arg_cache_file}.tmp
5042 fi
5043
5044 if test "$wxUSE_LOGDIALOG" = yes; then
5045 echo "$ac_t""yes" 1>&6
5046 else
5047 echo "$ac_t""no" 1>&6
5048 fi
5049
5050
10f2d63a 5051
698dcdb6 5052 echo $ac_n "checking for --enable-postscript""... $ac_c" 1>&6
a1622950 5053echo "configure:5054: checking for --enable-postscript" >&5
10f2d63a
VZ
5054 no_cache=0
5055 # Check whether --enable-postscript or --disable-postscript was given.
5056if test "${enable_postscript+set}" = set; then
5057 enableval="$enable_postscript"
698dcdb6 5058
10f2d63a
VZ
5059 if test "$enableval" = yes; then
5060 ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes'
5061 else
5062 ac_cv_use_postscript='wxUSE_POSTSCRIPT=no'
5063 fi
698dcdb6 5064
10f2d63a 5065else
698dcdb6 5066
10f2d63a
VZ
5067 LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}`
5068 if test "x$LINE" != x ; then
5069 eval "DEFAULT_$LINE"
5070 else
5071 no_cache=1
5072 fi
5073
5074 ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT
698dcdb6
VZ
5075
5076fi
10f2d63a
VZ
5077
5078
5079 eval "$ac_cv_use_postscript"
5080 if test "$no_cache" != 1; then
5081 echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp
5082 fi
5083
5084 if test "$wxUSE_POSTSCRIPT" = yes; then
698dcdb6 5085 echo "$ac_t""yes" 1>&6
10f2d63a 5086 else
698dcdb6 5087 echo "$ac_t""no" 1>&6
10f2d63a 5088 fi
698dcdb6
VZ
5089
5090
5091
10f2d63a 5092
1e6feb95 5093
698dcdb6 5094 echo $ac_n "checking for --enable-prologio""... $ac_c" 1>&6
a1622950 5095echo "configure:5096: checking for --enable-prologio" >&5
10f2d63a
VZ
5096 no_cache=0
5097 # Check whether --enable-prologio or --disable-prologio was given.
5098if test "${enable_prologio+set}" = set; then
5099 enableval="$enable_prologio"
698dcdb6 5100
10f2d63a
VZ
5101 if test "$enableval" = yes; then
5102 ac_cv_use_prologio='wxUSE_PROLOGIO=yes'
5103 else
5104 ac_cv_use_prologio='wxUSE_PROLOGIO=no'
5105 fi
698dcdb6 5106
10f2d63a 5107else
698dcdb6 5108
10f2d63a
VZ
5109 LINE=`grep "wxUSE_PROLOGIO" ${wx_arg_cache_file}`
5110 if test "x$LINE" != x ; then
5111 eval "DEFAULT_$LINE"
5112 else
5113 no_cache=1
5114 fi
5115
5116 ac_cv_use_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO
698dcdb6
VZ
5117
5118fi
10f2d63a
VZ
5119
5120
5121 eval "$ac_cv_use_prologio"
5122 if test "$no_cache" != 1; then
5123 echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp
5124 fi
5125
5126 if test "$wxUSE_PROLOGIO" = yes; then
698dcdb6 5127 echo "$ac_t""yes" 1>&6
10f2d63a 5128 else
698dcdb6 5129 echo "$ac_t""no" 1>&6
10f2d63a 5130 fi
698dcdb6 5131
10f2d63a 5132
698dcdb6 5133 echo $ac_n "checking for --enable-resources""... $ac_c" 1>&6
a1622950 5134echo "configure:5135: checking for --enable-resources" >&5
10f2d63a
VZ
5135 no_cache=0
5136 # Check whether --enable-resources or --disable-resources was given.
5137if test "${enable_resources+set}" = set; then
5138 enableval="$enable_resources"
698dcdb6 5139
10f2d63a
VZ
5140 if test "$enableval" = yes; then
5141 ac_cv_use_resources='wxUSE_RESOURCES=yes'
5142 else
5143 ac_cv_use_resources='wxUSE_RESOURCES=no'
5144 fi
698dcdb6 5145
10f2d63a 5146else
698dcdb6 5147
10f2d63a
VZ
5148 LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}`
5149 if test "x$LINE" != x ; then
5150 eval "DEFAULT_$LINE"
5151 else
5152 no_cache=1
5153 fi
5154
5155 ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES
698dcdb6
VZ
5156
5157fi
10f2d63a
VZ
5158
5159
5160 eval "$ac_cv_use_resources"
5161 if test "$no_cache" != 1; then
5162 echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp
5163 fi
5164
5165 if test "$wxUSE_RESOURCES" = yes; then
698dcdb6 5166 echo "$ac_t""yes" 1>&6
10f2d63a 5167 else
698dcdb6 5168 echo "$ac_t""no" 1>&6
10f2d63a 5169 fi
698dcdb6 5170
10f2d63a 5171
698dcdb6
VZ
5172
5173 echo $ac_n "checking for --enable-xresources""... $ac_c" 1>&6
a1622950 5174echo "configure:5175: checking for --enable-xresources" >&5
10f2d63a
VZ
5175 no_cache=0
5176 # Check whether --enable-xresources or --disable-xresources was given.
5177if test "${enable_xresources+set}" = set; then
5178 enableval="$enable_xresources"
698dcdb6 5179
10f2d63a
VZ
5180 if test "$enableval" = yes; then
5181 ac_cv_use_xresources='wxUSE_X_RESOURCES=yes'
5182 else
5183 ac_cv_use_xresources='wxUSE_X_RESOURCES=no'
5184 fi
698dcdb6 5185
10f2d63a 5186else
698dcdb6 5187
10f2d63a
VZ
5188 LINE=`grep "wxUSE_X_RESOURCES" ${wx_arg_cache_file}`
5189 if test "x$LINE" != x ; then
5190 eval "DEFAULT_$LINE"
5191 else
5192 no_cache=1
5193 fi
5194
5195 ac_cv_use_xresources='wxUSE_X_RESOURCES='$DEFAULT_wxUSE_X_RESOURCES
698dcdb6
VZ
5196
5197fi
10f2d63a
VZ
5198
5199
5200 eval "$ac_cv_use_xresources"
5201 if test "$no_cache" != 1; then
5202 echo $ac_cv_use_xresources >> ${wx_arg_cache_file}.tmp
5203 fi
5204
5205 if test "$wxUSE_X_RESOURCES" = yes; then
698dcdb6 5206 echo "$ac_t""yes" 1>&6
10f2d63a 5207 else
698dcdb6 5208 echo "$ac_t""no" 1>&6
10f2d63a 5209 fi
698dcdb6
VZ
5210
5211
10f2d63a 5212
698dcdb6
VZ
5213
5214 echo $ac_n "checking for --enable-clipboard""... $ac_c" 1>&6
a1622950 5215echo "configure:5216: checking for --enable-clipboard" >&5
10f2d63a
VZ
5216 no_cache=0
5217 # Check whether --enable-clipboard or --disable-clipboard was given.
5218if test "${enable_clipboard+set}" = set; then
5219 enableval="$enable_clipboard"
698dcdb6 5220
10f2d63a
VZ
5221 if test "$enableval" = yes; then
5222 ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes'
5223 else
5224 ac_cv_use_clipboard='wxUSE_CLIPBOARD=no'
5225 fi
698dcdb6 5226
10f2d63a 5227else
698dcdb6 5228
10f2d63a
VZ
5229 LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}`
5230 if test "x$LINE" != x ; then
5231 eval "DEFAULT_$LINE"
5232 else
5233 no_cache=1
5234 fi
5235
5236 ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD
698dcdb6
VZ
5237
5238fi
10f2d63a
VZ
5239
5240
5241 eval "$ac_cv_use_clipboard"
5242 if test "$no_cache" != 1; then
5243 echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp
5244 fi
5245
5246 if test "$wxUSE_CLIPBOARD" = yes; then
698dcdb6 5247 echo "$ac_t""yes" 1>&6
10f2d63a 5248 else
698dcdb6 5249 echo "$ac_t""no" 1>&6
10f2d63a 5250 fi
698dcdb6 5251
10f2d63a 5252
698dcdb6 5253 echo $ac_n "checking for --enable-dnd""... $ac_c" 1>&6
a1622950 5254echo "configure:5255: checking for --enable-dnd" >&5
10f2d63a
VZ
5255 no_cache=0
5256 # Check whether --enable-dnd or --disable-dnd was given.
5257if test "${enable_dnd+set}" = set; then
5258 enableval="$enable_dnd"
698dcdb6 5259
10f2d63a
VZ
5260 if test "$enableval" = yes; then
5261 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes'
5262 else
5263 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no'
5264 fi
698dcdb6 5265
10f2d63a 5266else
698dcdb6 5267
10f2d63a
VZ
5268 LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}`
5269 if test "x$LINE" != x ; then
5270 eval "DEFAULT_$LINE"
5271 else
5272 no_cache=1
5273 fi
5274
5275 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP
698dcdb6
VZ
5276
5277fi
10f2d63a
VZ
5278
5279
5280 eval "$ac_cv_use_dnd"
5281 if test "$no_cache" != 1; then
5282 echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp
5283 fi
5284
5285 if test "$wxUSE_DRAG_AND_DROP" = yes; then
698dcdb6 5286 echo "$ac_t""yes" 1>&6
10f2d63a 5287 else
698dcdb6 5288 echo "$ac_t""no" 1>&6
10f2d63a 5289 fi
698dcdb6 5290
10f2d63a 5291
698dcdb6 5292 echo $ac_n "checking for --enable-metafile""... $ac_c" 1>&6
a1622950 5293echo "configure:5294: checking for --enable-metafile" >&5
b64f0a5f
RL
5294 no_cache=0
5295 # Check whether --enable-metafile or --disable-metafile was given.
5296if test "${enable_metafile+set}" = set; then
5297 enableval="$enable_metafile"
698dcdb6 5298
b64f0a5f
RL
5299 if test "$enableval" = yes; then
5300 ac_cv_use_metafile='wxUSE_METAFILE=yes'
5301 else
5302 ac_cv_use_metafile='wxUSE_METAFILE=no'
5303 fi
698dcdb6 5304
b64f0a5f 5305else
698dcdb6 5306
b64f0a5f
RL
5307 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
5308 if test "x$LINE" != x ; then
5309 eval "DEFAULT_$LINE"
5310 else
5311 no_cache=1
5312 fi
5313
5314 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
698dcdb6
VZ
5315
5316fi
b64f0a5f
RL
5317
5318
5319 eval "$ac_cv_use_metafile"
5320 if test "$no_cache" != 1; then
5321 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
5322 fi
5323
5324 if test "$wxUSE_METAFILE" = yes; then
698dcdb6 5325 echo "$ac_t""yes" 1>&6
b64f0a5f 5326 else
698dcdb6 5327 echo "$ac_t""no" 1>&6
b64f0a5f 5328 fi
698dcdb6
VZ
5329
5330
10f2d63a 5331
24176f2c 5332 echo $ac_n "checking for --enable-treelayout""... $ac_c" 1>&6
a1622950 5333echo "configure:5334: checking for --enable-treelayout" >&5
10f2d63a 5334 no_cache=0
24176f2c
GD
5335 # Check whether --enable-treelayout or --disable-treelayout was given.
5336if test "${enable_treelayout+set}" = set; then
5337 enableval="$enable_treelayout"
698dcdb6 5338
10f2d63a 5339 if test "$enableval" = yes; then
24176f2c 5340 ac_cv_use_treelayout='wxUSE_TREELAYOUT=yes'
10f2d63a 5341 else
24176f2c 5342 ac_cv_use_treelayout='wxUSE_TREELAYOUT=no'
10f2d63a 5343 fi
698dcdb6 5344
10f2d63a 5345else
698dcdb6 5346
24176f2c 5347 LINE=`grep "wxUSE_TREELAYOUT" ${wx_arg_cache_file}`
10f2d63a
VZ
5348 if test "x$LINE" != x ; then
5349 eval "DEFAULT_$LINE"
5350 else
5351 no_cache=1
5352 fi
5353
24176f2c 5354 ac_cv_use_treelayout='wxUSE_TREELAYOUT='$DEFAULT_wxUSE_TREELAYOUT
698dcdb6
VZ
5355
5356fi
10f2d63a
VZ
5357
5358
24176f2c 5359 eval "$ac_cv_use_treelayout"
10f2d63a 5360 if test "$no_cache" != 1; then
24176f2c 5361 echo $ac_cv_use_treelayout >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
5362 fi
5363
24176f2c 5364 if test "$wxUSE_TREELAYOUT" = yes; then
698dcdb6 5365 echo "$ac_t""yes" 1>&6
10f2d63a 5366 else
698dcdb6 5367 echo "$ac_t""no" 1>&6
10f2d63a 5368 fi
698dcdb6 5369
10f2d63a 5370
698dcdb6
VZ
5371
5372
5373 echo $ac_n "checking for --enable-controls""... $ac_c" 1>&6
a1622950 5374echo "configure:5375: checking for --enable-controls" >&5
10f2d63a
VZ
5375 no_cache=0
5376 # Check whether --enable-controls or --disable-controls was given.
5377if test "${enable_controls+set}" = set; then
5378 enableval="$enable_controls"
698dcdb6 5379
10f2d63a
VZ
5380 if test "$enableval" = yes; then
5381 ac_cv_use_controls='wxUSE_CONTROLS=yes'
5382 else
5383 ac_cv_use_controls='wxUSE_CONTROLS=no'
5384 fi
698dcdb6 5385
10f2d63a 5386else
698dcdb6 5387
10f2d63a
VZ
5388 LINE=`grep "wxUSE_CONTROLS" ${wx_arg_cache_file}`
5389 if test "x$LINE" != x ; then
5390 eval "DEFAULT_$LINE"
5391 else
5392 no_cache=1
5393 fi
5394
5395 ac_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS
698dcdb6
VZ
5396
5397fi
10f2d63a
VZ
5398
5399
5400 eval "$ac_cv_use_controls"
5401 if test "$no_cache" != 1; then
5402 echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp
5403 fi
5404
5405 if test "$wxUSE_CONTROLS" = yes; then
698dcdb6 5406 echo "$ac_t""yes" 1>&6
10f2d63a 5407 else
698dcdb6 5408 echo "$ac_t""no" 1>&6
10f2d63a 5409 fi
698dcdb6 5410
10f2d63a
VZ
5411
5412if test "$wxUSE_CONTROLS" = "yes"; then
5413 DEFAULT_wxUSE_ACCEL=yes
1e6feb95
VZ
5414 DEFAULT_wxUSE_BMPBUTTON=yes
5415 DEFAULT_wxUSE_BUTTON=yes
5416 DEFAULT_wxUSE_CALCTRL=no
10f2d63a
VZ
5417 DEFAULT_wxUSE_CARET=yes
5418 DEFAULT_wxUSE_COMBOBOX=yes
10f2d63a
VZ
5419 DEFAULT_wxUSE_CHECKBOX=yes
5420 DEFAULT_wxUSE_CHECKLISTBOX=yes
5421 DEFAULT_wxUSE_CHOICE=yes
5422 DEFAULT_wxUSE_GAUGE=yes
5423 DEFAULT_wxUSE_GRID=yes
cc977e5f 5424 DEFAULT_wxUSE_NEW_GRID=yes
10f2d63a
VZ
5425 DEFAULT_wxUSE_IMAGLIST=yes
5426 DEFAULT_wxUSE_LISTBOX=yes
5427 DEFAULT_wxUSE_LISTCTRL=yes
5428 DEFAULT_wxUSE_NOTEBOOK=yes
24176f2c 5429 DEFAULT_wxUSE_PROPSHEET=yes
10f2d63a
VZ
5430 DEFAULT_wxUSE_RADIOBOX=yes
5431 DEFAULT_wxUSE_RADIOBTN=yes
5432 DEFAULT_wxUSE_SASH=yes
5433 DEFAULT_wxUSE_SCROLLBAR=yes
5434 DEFAULT_wxUSE_SLIDER=yes
5435 DEFAULT_wxUSE_SPINBTN=yes
56cfaa52 5436 DEFAULT_wxUSE_SPINCTRL=yes
10f2d63a
VZ
5437 DEFAULT_wxUSE_SPLITTER=yes
5438 DEFAULT_wxUSE_STATBMP=yes
5439 DEFAULT_wxUSE_STATBOX=yes
5440 DEFAULT_wxUSE_STATLINE=yes
5441 DEFAULT_wxUSE_STATUSBAR=yes
5442 DEFAULT_wxUSE_TAB_DIALOG=yes
1db8dc4a 5443 DEFAULT_wxUSE_TOGGLEBTN=yes
10f2d63a 5444 DEFAULT_wxUSE_TOOLBAR=yes
360d6699
VZ
5445 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
5446 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
10f2d63a
VZ
5447 DEFAULT_wxUSE_TOOLTIPS=yes
5448 DEFAULT_wxUSE_TREECTRL=yes
9f41d601 5449 DEFAULT_wxUSE_POPUPWIN=yes
9926e4a4 5450 DEFAULT_wxUSE_TIPWINDOW=yes
10f2d63a
VZ
5451elif test "$wxUSE_CONTROLS" = "no"; then
5452 DEFAULT_wxUSE_ACCEL=no
1e6feb95
VZ
5453 DEFAULT_wxUSE_BMPBUTTON=no
5454 DEFAULT_wxUSE_BUTTON=no
5455 DEFAULT_wxUSE_CALCTRL=no
10f2d63a
VZ
5456 DEFAULT_wxUSE_CARET=no
5457 DEFAULT_wxUSE_COMBOBOX=no
10f2d63a
VZ
5458 DEFAULT_wxUSE_CHECKBOX=no
5459 DEFAULT_wxUSE_CHECKLISTBOX=no
5460 DEFAULT_wxUSE_CHOICE=no
5461 DEFAULT_wxUSE_GAUGE=no
5462 DEFAULT_wxUSE_GRID=no
5463 DEFAULT_wxUSE_NEW_GRID=no
5464 DEFAULT_wxUSE_IMAGLIST=no
5465 DEFAULT_wxUSE_LISTBOX=no
5466 DEFAULT_wxUSE_LISTCTRL=no
5467 DEFAULT_wxUSE_NOTEBOOK=no
24176f2c 5468 DEFAULT_wxUSE_PROPSHEET=no
10f2d63a
VZ
5469 DEFAULT_wxUSE_RADIOBOX=no
5470 DEFAULT_wxUSE_RADIOBTN=no
5471 DEFAULT_wxUSE_SASH=no
5472 DEFAULT_wxUSE_SCROLLBAR=no
5473 DEFAULT_wxUSE_SLIDER=no
5474 DEFAULT_wxUSE_SPINBTN=no
56cfaa52 5475 DEFAULT_wxUSE_SPINCTRL=no
10f2d63a
VZ
5476 DEFAULT_wxUSE_SPLITTER=no
5477 DEFAULT_wxUSE_STATBMP=no
5478 DEFAULT_wxUSE_STATBOX=no
5479 DEFAULT_wxUSE_STATLINE=no
5480 DEFAULT_wxUSE_STATUSBAR=no
5481 DEFAULT_wxUSE_TAB_DIALOG=no
1db8dc4a 5482 DEFAULT_wxUSE_TOGGLEBTN=no
10f2d63a 5483 DEFAULT_wxUSE_TOOLBAR=no
360d6699
VZ
5484 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
5485 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
10f2d63a
VZ
5486 DEFAULT_wxUSE_TOOLTIPS=no
5487 DEFAULT_wxUSE_TREECTRL=no
9f41d601 5488 DEFAULT_wxUSE_POPUPWIN=no
9926e4a4 5489 DEFAULT_wxUSE_TIPWINDOW=no
10f2d63a
VZ
5490fi
5491
698dcdb6
VZ
5492
5493 echo $ac_n "checking for --enable-accel""... $ac_c" 1>&6
a1622950 5494echo "configure:5495: checking for --enable-accel" >&5
10f2d63a
VZ
5495 no_cache=0
5496 # Check whether --enable-accel or --disable-accel was given.
5497if test "${enable_accel+set}" = set; then
5498 enableval="$enable_accel"
698dcdb6 5499
10f2d63a
VZ
5500 if test "$enableval" = yes; then
5501 ac_cv_use_accel='wxUSE_ACCEL=yes'
5502 else
5503 ac_cv_use_accel='wxUSE_ACCEL=no'
5504 fi
698dcdb6 5505
10f2d63a 5506else
698dcdb6 5507
10f2d63a
VZ
5508 LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}`
5509 if test "x$LINE" != x ; then
5510 eval "DEFAULT_$LINE"
5511 else
5512 no_cache=1
5513 fi
5514
5515 ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL
698dcdb6
VZ
5516
5517fi
10f2d63a
VZ
5518
5519
5520 eval "$ac_cv_use_accel"
5521 if test "$no_cache" != 1; then
5522 echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp
5523 fi
5524
5525 if test "$wxUSE_ACCEL" = yes; then
698dcdb6 5526 echo "$ac_t""yes" 1>&6
10f2d63a 5527 else
698dcdb6 5528 echo "$ac_t""no" 1>&6
10f2d63a 5529 fi
698dcdb6 5530
10f2d63a 5531
1e6feb95 5532 echo $ac_n "checking for --enable-button""... $ac_c" 1>&6
a1622950 5533echo "configure:5534: checking for --enable-button" >&5
10f2d63a 5534 no_cache=0
1e6feb95
VZ
5535 # Check whether --enable-button or --disable-button was given.
5536if test "${enable_button+set}" = set; then
5537 enableval="$enable_button"
698dcdb6 5538
10f2d63a 5539 if test "$enableval" = yes; then
1e6feb95 5540 ac_cv_use_button='wxUSE_BUTTON=yes'
10f2d63a 5541 else
1e6feb95 5542 ac_cv_use_button='wxUSE_BUTTON=no'
10f2d63a 5543 fi
698dcdb6 5544
10f2d63a 5545else
698dcdb6 5546
1e6feb95 5547 LINE=`grep "wxUSE_BUTTON" ${wx_arg_cache_file}`
10f2d63a
VZ
5548 if test "x$LINE" != x ; then
5549 eval "DEFAULT_$LINE"
5550 else
5551 no_cache=1
5552 fi
5553
1e6feb95 5554 ac_cv_use_button='wxUSE_BUTTON='$DEFAULT_wxUSE_BUTTON
698dcdb6
VZ
5555
5556fi
10f2d63a
VZ
5557
5558
1e6feb95 5559 eval "$ac_cv_use_button"
10f2d63a 5560 if test "$no_cache" != 1; then
1e6feb95 5561 echo $ac_cv_use_button >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
5562 fi
5563
1e6feb95 5564 if test "$wxUSE_BUTTON" = yes; then
698dcdb6 5565 echo "$ac_t""yes" 1>&6
10f2d63a 5566 else
698dcdb6 5567 echo "$ac_t""no" 1>&6
10f2d63a 5568 fi
698dcdb6 5569
10f2d63a 5570
698dcdb6 5571 echo $ac_n "checking for --enable-bmpbutton""... $ac_c" 1>&6
a1622950 5572echo "configure:5573: checking for --enable-bmpbutton" >&5
10f2d63a
VZ
5573 no_cache=0
5574 # Check whether --enable-bmpbutton or --disable-bmpbutton was given.
5575if test "${enable_bmpbutton+set}" = set; then
5576 enableval="$enable_bmpbutton"
698dcdb6 5577
10f2d63a
VZ
5578 if test "$enableval" = yes; then
5579 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes'
5580 else
5581 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no'
5582 fi
698dcdb6 5583
10f2d63a 5584else
698dcdb6 5585
10f2d63a
VZ
5586 LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}`
5587 if test "x$LINE" != x ; then
5588 eval "DEFAULT_$LINE"
5589 else
5590 no_cache=1
5591 fi
5592
5593 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON
698dcdb6
VZ
5594
5595fi
10f2d63a
VZ
5596
5597
5598 eval "$ac_cv_use_bmpbutton"
5599 if test "$no_cache" != 1; then
5600 echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp
5601 fi
5602
5603 if test "$wxUSE_BMPBUTTON" = yes; then
698dcdb6 5604 echo "$ac_t""yes" 1>&6
10f2d63a 5605 else
698dcdb6 5606 echo "$ac_t""no" 1>&6
10f2d63a 5607 fi
698dcdb6 5608
10f2d63a 5609
1e6feb95 5610 echo $ac_n "checking for --enable-calendar""... $ac_c" 1>&6
a1622950 5611echo "configure:5612: checking for --enable-calendar" >&5
1e6feb95
VZ
5612 no_cache=0
5613 # Check whether --enable-calendar or --disable-calendar was given.
5614if test "${enable_calendar+set}" = set; then
5615 enableval="$enable_calendar"
5616
5617 if test "$enableval" = yes; then
5618 ac_cv_use_calendar='wxUSE_CALCTRL=yes'
5619 else
5620 ac_cv_use_calendar='wxUSE_CALCTRL=no'
5621 fi
5622
5623else
5624
5625 LINE=`grep "wxUSE_CALCTRL" ${wx_arg_cache_file}`
5626 if test "x$LINE" != x ; then
5627 eval "DEFAULT_$LINE"
5628 else
5629 no_cache=1
5630 fi
5631
5632 ac_cv_use_calendar='wxUSE_CALCTRL='$DEFAULT_wxUSE_CALCTRL
5633
5634fi
5635
5636
5637 eval "$ac_cv_use_calendar"
5638 if test "$no_cache" != 1; then
5639 echo $ac_cv_use_calendar >> ${wx_arg_cache_file}.tmp
5640 fi
5641
5642 if test "$wxUSE_CALCTRL" = yes; then
5643 echo "$ac_t""yes" 1>&6
5644 else
5645 echo "$ac_t""no" 1>&6
5646 fi
5647
5648
5649 echo $ac_n "checking for --enable-caret""... $ac_c" 1>&6
a1622950 5650echo "configure:5651: checking for --enable-caret" >&5
1e6feb95
VZ
5651 no_cache=0
5652 # Check whether --enable-caret or --disable-caret was given.
5653if test "${enable_caret+set}" = set; then
5654 enableval="$enable_caret"
5655
5656 if test "$enableval" = yes; then
5657 ac_cv_use_caret='wxUSE_CARET=yes'
5658 else
5659 ac_cv_use_caret='wxUSE_CARET=no'
5660 fi
5661
5662else
5663
5664 LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}`
5665 if test "x$LINE" != x ; then
5666 eval "DEFAULT_$LINE"
5667 else
5668 no_cache=1
5669 fi
5670
5671 ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET
5672
5673fi
5674
5675
5676 eval "$ac_cv_use_caret"
5677 if test "$no_cache" != 1; then
5678 echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp
5679 fi
5680
5681 if test "$wxUSE_CARET" = yes; then
5682 echo "$ac_t""yes" 1>&6
5683 else
5684 echo "$ac_t""no" 1>&6
5685 fi
5686
5687
698dcdb6 5688 echo $ac_n "checking for --enable-checkbox""... $ac_c" 1>&6
a1622950 5689echo "configure:5690: checking for --enable-checkbox" >&5
10f2d63a
VZ
5690 no_cache=0
5691 # Check whether --enable-checkbox or --disable-checkbox was given.
5692if test "${enable_checkbox+set}" = set; then
5693 enableval="$enable_checkbox"
698dcdb6 5694
10f2d63a
VZ
5695 if test "$enableval" = yes; then
5696 ac_cv_use_checkbox='wxUSE_CHECKBOX=yes'
5697 else
5698 ac_cv_use_checkbox='wxUSE_CHECKBOX=no'
5699 fi
698dcdb6 5700
10f2d63a 5701else
698dcdb6 5702
10f2d63a
VZ
5703 LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}`
5704 if test "x$LINE" != x ; then
5705 eval "DEFAULT_$LINE"
5706 else
5707 no_cache=1
5708 fi
5709
5710 ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX
698dcdb6
VZ
5711
5712fi
10f2d63a
VZ
5713
5714
5715 eval "$ac_cv_use_checkbox"
5716 if test "$no_cache" != 1; then
5717 echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp
5718 fi
5719
5720 if test "$wxUSE_CHECKBOX" = yes; then
698dcdb6 5721 echo "$ac_t""yes" 1>&6
10f2d63a 5722 else
698dcdb6 5723 echo "$ac_t""no" 1>&6
10f2d63a 5724 fi
698dcdb6 5725
10f2d63a 5726
698dcdb6 5727 echo $ac_n "checking for --enable-checklst""... $ac_c" 1>&6
a1622950 5728echo "configure:5729: checking for --enable-checklst" >&5
10f2d63a
VZ
5729 no_cache=0
5730 # Check whether --enable-checklst or --disable-checklst was given.
5731if test "${enable_checklst+set}" = set; then
5732 enableval="$enable_checklst"
698dcdb6 5733
10f2d63a
VZ
5734 if test "$enableval" = yes; then
5735 ac_cv_use_checklst='wxUSE_CHECKLST=yes'
5736 else
5737 ac_cv_use_checklst='wxUSE_CHECKLST=no'
5738 fi
698dcdb6 5739
10f2d63a 5740else
698dcdb6 5741
10f2d63a
VZ
5742 LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}`
5743 if test "x$LINE" != x ; then
5744 eval "DEFAULT_$LINE"
5745 else
5746 no_cache=1
5747 fi
5748
5749 ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST
698dcdb6
VZ
5750
5751fi
10f2d63a
VZ
5752
5753
5754 eval "$ac_cv_use_checklst"
5755 if test "$no_cache" != 1; then
5756 echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp
5757 fi
5758
5759 if test "$wxUSE_CHECKLST" = yes; then
698dcdb6 5760 echo "$ac_t""yes" 1>&6
10f2d63a 5761 else
698dcdb6 5762 echo "$ac_t""no" 1>&6
10f2d63a 5763 fi
698dcdb6 5764
10f2d63a 5765
698dcdb6 5766 echo $ac_n "checking for --enable-choice""... $ac_c" 1>&6
a1622950 5767echo "configure:5768: checking for --enable-choice" >&5
10f2d63a
VZ
5768 no_cache=0
5769 # Check whether --enable-choice or --disable-choice was given.
5770if test "${enable_choice+set}" = set; then
5771 enableval="$enable_choice"
698dcdb6 5772
10f2d63a
VZ
5773 if test "$enableval" = yes; then
5774 ac_cv_use_choice='wxUSE_CHOICE=yes'
5775 else
5776 ac_cv_use_choice='wxUSE_CHOICE=no'
5777 fi
698dcdb6 5778
10f2d63a 5779else
698dcdb6 5780
10f2d63a
VZ
5781 LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}`
5782 if test "x$LINE" != x ; then
5783 eval "DEFAULT_$LINE"
5784 else
5785 no_cache=1
5786 fi
5787
5788 ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE
698dcdb6
VZ
5789
5790fi
10f2d63a
VZ
5791
5792
5793 eval "$ac_cv_use_choice"
5794 if test "$no_cache" != 1; then
5795 echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp
5796 fi
5797
5798 if test "$wxUSE_CHOICE" = yes; then
698dcdb6 5799 echo "$ac_t""yes" 1>&6
10f2d63a 5800 else
698dcdb6 5801 echo "$ac_t""no" 1>&6
10f2d63a 5802 fi
698dcdb6 5803
10f2d63a 5804
698dcdb6 5805 echo $ac_n "checking for --enable-combobox""... $ac_c" 1>&6
a1622950 5806echo "configure:5807: checking for --enable-combobox" >&5
10f2d63a
VZ
5807 no_cache=0
5808 # Check whether --enable-combobox or --disable-combobox was given.
5809if test "${enable_combobox+set}" = set; then
5810 enableval="$enable_combobox"
698dcdb6 5811
10f2d63a
VZ
5812 if test "$enableval" = yes; then
5813 ac_cv_use_combobox='wxUSE_COMBOBOX=yes'
5814 else
5815 ac_cv_use_combobox='wxUSE_COMBOBOX=no'
5816 fi
698dcdb6 5817
10f2d63a 5818else
698dcdb6 5819
10f2d63a
VZ
5820 LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}`
5821 if test "x$LINE" != x ; then
5822 eval "DEFAULT_$LINE"
5823 else
5824 no_cache=1
5825 fi
5826
5827 ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX
698dcdb6
VZ
5828
5829fi
10f2d63a
VZ
5830
5831
5832 eval "$ac_cv_use_combobox"
5833 if test "$no_cache" != 1; then
5834 echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp
5835 fi
5836
5837 if test "$wxUSE_COMBOBOX" = yes; then
698dcdb6 5838 echo "$ac_t""yes" 1>&6
10f2d63a 5839 else
698dcdb6 5840 echo "$ac_t""no" 1>&6
10f2d63a 5841 fi
698dcdb6 5842
10f2d63a 5843
698dcdb6 5844 echo $ac_n "checking for --enable-gauge""... $ac_c" 1>&6
a1622950 5845echo "configure:5846: checking for --enable-gauge" >&5
10f2d63a
VZ
5846 no_cache=0
5847 # Check whether --enable-gauge or --disable-gauge was given.
5848if test "${enable_gauge+set}" = set; then
5849 enableval="$enable_gauge"
698dcdb6 5850
10f2d63a
VZ
5851 if test "$enableval" = yes; then
5852 ac_cv_use_gauge='wxUSE_GAUGE=yes'
5853 else
5854 ac_cv_use_gauge='wxUSE_GAUGE=no'
5855 fi
698dcdb6 5856
10f2d63a 5857else
698dcdb6 5858
10f2d63a
VZ
5859 LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}`
5860 if test "x$LINE" != x ; then
5861 eval "DEFAULT_$LINE"
5862 else
5863 no_cache=1
5864 fi
5865
5866 ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE
698dcdb6
VZ
5867
5868fi
10f2d63a
VZ
5869
5870
5871 eval "$ac_cv_use_gauge"
5872 if test "$no_cache" != 1; then
5873 echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp
5874 fi
5875
5876 if test "$wxUSE_GAUGE" = yes; then
698dcdb6 5877 echo "$ac_t""yes" 1>&6
10f2d63a 5878 else
698dcdb6 5879 echo "$ac_t""no" 1>&6
10f2d63a 5880 fi
698dcdb6 5881
10f2d63a 5882
698dcdb6 5883 echo $ac_n "checking for --enable-grid""... $ac_c" 1>&6
a1622950 5884echo "configure:5885: checking for --enable-grid" >&5
10f2d63a
VZ
5885 no_cache=0
5886 # Check whether --enable-grid or --disable-grid was given.
5887if test "${enable_grid+set}" = set; then
5888 enableval="$enable_grid"
698dcdb6 5889
10f2d63a
VZ
5890 if test "$enableval" = yes; then
5891 ac_cv_use_grid='wxUSE_GRID=yes'
5892 else
5893 ac_cv_use_grid='wxUSE_GRID=no'
5894 fi
698dcdb6 5895
10f2d63a 5896else
698dcdb6 5897
10f2d63a
VZ
5898 LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}`
5899 if test "x$LINE" != x ; then
5900 eval "DEFAULT_$LINE"
5901 else
5902 no_cache=1
5903 fi
5904
5905 ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID
698dcdb6
VZ
5906
5907fi
10f2d63a
VZ
5908
5909
5910 eval "$ac_cv_use_grid"
5911 if test "$no_cache" != 1; then
5912 echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp
5913 fi
5914
5915 if test "$wxUSE_GRID" = yes; then
698dcdb6 5916 echo "$ac_t""yes" 1>&6
10f2d63a 5917 else
698dcdb6 5918 echo "$ac_t""no" 1>&6
10f2d63a 5919 fi
698dcdb6 5920
10f2d63a 5921
698dcdb6 5922 echo $ac_n "checking for --enable-newgrid""... $ac_c" 1>&6
a1622950 5923echo "configure:5924: checking for --enable-newgrid" >&5
10f2d63a
VZ
5924 no_cache=0
5925 # Check whether --enable-newgrid or --disable-newgrid was given.
5926if test "${enable_newgrid+set}" = set; then
5927 enableval="$enable_newgrid"
698dcdb6 5928
10f2d63a
VZ
5929 if test "$enableval" = yes; then
5930 ac_cv_use_newgrid='wxUSE_NEW_GRID=yes'
5931 else
5932 ac_cv_use_newgrid='wxUSE_NEW_GRID=no'
5933 fi
698dcdb6 5934
10f2d63a 5935else
698dcdb6 5936
10f2d63a
VZ
5937 LINE=`grep "wxUSE_NEW_GRID" ${wx_arg_cache_file}`
5938 if test "x$LINE" != x ; then
5939 eval "DEFAULT_$LINE"
5940 else
5941 no_cache=1
5942 fi
5943
5944 ac_cv_use_newgrid='wxUSE_NEW_GRID='$DEFAULT_wxUSE_NEW_GRID
698dcdb6
VZ
5945
5946fi
10f2d63a
VZ
5947
5948
5949 eval "$ac_cv_use_newgrid"
5950 if test "$no_cache" != 1; then
5951 echo $ac_cv_use_newgrid >> ${wx_arg_cache_file}.tmp
5952 fi
5953
5954 if test "$wxUSE_NEW_GRID" = yes; then
698dcdb6 5955 echo "$ac_t""yes" 1>&6
10f2d63a 5956 else
698dcdb6 5957 echo "$ac_t""no" 1>&6
10f2d63a 5958 fi
698dcdb6 5959
10f2d63a 5960
698dcdb6 5961 echo $ac_n "checking for --enable-imaglist""... $ac_c" 1>&6
a1622950 5962echo "configure:5963: checking for --enable-imaglist" >&5
10f2d63a
VZ
5963 no_cache=0
5964 # Check whether --enable-imaglist or --disable-imaglist was given.
5965if test "${enable_imaglist+set}" = set; then
5966 enableval="$enable_imaglist"
698dcdb6 5967
10f2d63a
VZ
5968 if test "$enableval" = yes; then
5969 ac_cv_use_imaglist='wxUSE_IMAGLIST=yes'
5970 else
5971 ac_cv_use_imaglist='wxUSE_IMAGLIST=no'
5972 fi
698dcdb6 5973
10f2d63a 5974else
698dcdb6 5975
10f2d63a
VZ
5976 LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}`
5977 if test "x$LINE" != x ; then
5978 eval "DEFAULT_$LINE"
5979 else
5980 no_cache=1
5981 fi
5982
5983 ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST
698dcdb6
VZ
5984
5985fi
10f2d63a
VZ
5986
5987
5988 eval "$ac_cv_use_imaglist"
5989 if test "$no_cache" != 1; then
5990 echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp
5991 fi
5992
5993 if test "$wxUSE_IMAGLIST" = yes; then
698dcdb6 5994 echo "$ac_t""yes" 1>&6
10f2d63a 5995 else
698dcdb6 5996 echo "$ac_t""no" 1>&6
10f2d63a 5997 fi
698dcdb6 5998
10f2d63a 5999
698dcdb6 6000 echo $ac_n "checking for --enable-listbox""... $ac_c" 1>&6
a1622950 6001echo "configure:6002: checking for --enable-listbox" >&5
10f2d63a
VZ
6002 no_cache=0
6003 # Check whether --enable-listbox or --disable-listbox was given.
6004if test "${enable_listbox+set}" = set; then
6005 enableval="$enable_listbox"
698dcdb6 6006
10f2d63a
VZ
6007 if test "$enableval" = yes; then
6008 ac_cv_use_listbox='wxUSE_LISTBOX=yes'
6009 else
6010 ac_cv_use_listbox='wxUSE_LISTBOX=no'
6011 fi
698dcdb6 6012
10f2d63a 6013else
698dcdb6 6014
10f2d63a
VZ
6015 LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}`
6016 if test "x$LINE" != x ; then
6017 eval "DEFAULT_$LINE"
6018 else
6019 no_cache=1
6020 fi
6021
6022 ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX
698dcdb6
VZ
6023
6024fi
10f2d63a
VZ
6025
6026
6027 eval "$ac_cv_use_listbox"
6028 if test "$no_cache" != 1; then
6029 echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp
6030 fi
6031
6032 if test "$wxUSE_LISTBOX" = yes; then
698dcdb6 6033 echo "$ac_t""yes" 1>&6
10f2d63a 6034 else
698dcdb6 6035 echo "$ac_t""no" 1>&6
10f2d63a 6036 fi
698dcdb6 6037
10f2d63a 6038
698dcdb6 6039 echo $ac_n "checking for --enable-listctrl""... $ac_c" 1>&6
a1622950 6040echo "configure:6041: checking for --enable-listctrl" >&5
10f2d63a
VZ
6041 no_cache=0
6042 # Check whether --enable-listctrl or --disable-listctrl was given.
6043if test "${enable_listctrl+set}" = set; then
6044 enableval="$enable_listctrl"
698dcdb6 6045
10f2d63a
VZ
6046 if test "$enableval" = yes; then
6047 ac_cv_use_listctrl='wxUSE_LISTCTRL=yes'
6048 else
6049 ac_cv_use_listctrl='wxUSE_LISTCTRL=no'
6050 fi
698dcdb6 6051
10f2d63a 6052else
698dcdb6 6053
10f2d63a
VZ
6054 LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}`
6055 if test "x$LINE" != x ; then
6056 eval "DEFAULT_$LINE"
6057 else
6058 no_cache=1
6059 fi
6060
6061 ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL
698dcdb6
VZ
6062
6063fi
10f2d63a
VZ
6064
6065
6066 eval "$ac_cv_use_listctrl"
6067 if test "$no_cache" != 1; then
6068 echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp
6069 fi
6070
6071 if test "$wxUSE_LISTCTRL" = yes; then
698dcdb6 6072 echo "$ac_t""yes" 1>&6
10f2d63a 6073 else
698dcdb6 6074 echo "$ac_t""no" 1>&6
10f2d63a 6075 fi
698dcdb6 6076
10f2d63a 6077
698dcdb6 6078 echo $ac_n "checking for --enable-notebook""... $ac_c" 1>&6
a1622950 6079echo "configure:6080: checking for --enable-notebook" >&5
10f2d63a
VZ
6080 no_cache=0
6081 # Check whether --enable-notebook or --disable-notebook was given.
6082if test "${enable_notebook+set}" = set; then
6083 enableval="$enable_notebook"
698dcdb6 6084
10f2d63a
VZ
6085 if test "$enableval" = yes; then
6086 ac_cv_use_notebook='wxUSE_NOTEBOOK=yes'
6087 else
6088 ac_cv_use_notebook='wxUSE_NOTEBOOK=no'
6089 fi
698dcdb6 6090
10f2d63a 6091else
698dcdb6 6092
10f2d63a
VZ
6093 LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}`
6094 if test "x$LINE" != x ; then
6095 eval "DEFAULT_$LINE"
6096 else
6097 no_cache=1
6098 fi
6099
6100 ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK
698dcdb6
VZ
6101
6102fi
10f2d63a
VZ
6103
6104
6105 eval "$ac_cv_use_notebook"
6106 if test "$no_cache" != 1; then
6107 echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp
6108 fi
6109
6110 if test "$wxUSE_NOTEBOOK" = yes; then
698dcdb6 6111 echo "$ac_t""yes" 1>&6
10f2d63a 6112 else
698dcdb6 6113 echo "$ac_t""no" 1>&6
10f2d63a 6114 fi
698dcdb6 6115
10f2d63a 6116
24176f2c 6117 echo $ac_n "checking for --enable-propsheet""... $ac_c" 1>&6
a1622950 6118echo "configure:6119: checking for --enable-propsheet" >&5
24176f2c
GD
6119 no_cache=0
6120 # Check whether --enable-propsheet or --disable-propsheet was given.
6121if test "${enable_propsheet+set}" = set; then
6122 enableval="$enable_propsheet"
6123
6124 if test "$enableval" = yes; then
6125 ac_cv_use_propsheet='wxUSE_PROPSHEET=yes'
6126 else
6127 ac_cv_use_propsheet='wxUSE_PROPSHEET=no'
6128 fi
6129
6130else
6131
6132 LINE=`grep "wxUSE_PROPSHEET" ${wx_arg_cache_file}`
6133 if test "x$LINE" != x ; then
6134 eval "DEFAULT_$LINE"
6135 else
6136 no_cache=1
6137 fi
6138
6139 ac_cv_use_propsheet='wxUSE_PROPSHEET='$DEFAULT_wxUSE_PROPSHEET
6140
6141fi
6142
6143
6144 eval "$ac_cv_use_propsheet"
6145 if test "$no_cache" != 1; then
6146 echo $ac_cv_use_propsheet >> ${wx_arg_cache_file}.tmp
6147 fi
6148
6149 if test "$wxUSE_PROPSHEET" = yes; then
6150 echo "$ac_t""yes" 1>&6
6151 else
6152 echo "$ac_t""no" 1>&6
6153 fi
6154
6155
698dcdb6 6156 echo $ac_n "checking for --enable-radiobox""... $ac_c" 1>&6
a1622950 6157echo "configure:6158: checking for --enable-radiobox" >&5
10f2d63a
VZ
6158 no_cache=0
6159 # Check whether --enable-radiobox or --disable-radiobox was given.
6160if test "${enable_radiobox+set}" = set; then
6161 enableval="$enable_radiobox"
698dcdb6 6162
10f2d63a
VZ
6163 if test "$enableval" = yes; then
6164 ac_cv_use_radiobox='wxUSE_RADIOBOX=yes'
6165 else
6166 ac_cv_use_radiobox='wxUSE_RADIOBOX=no'
6167 fi
698dcdb6 6168
10f2d63a 6169else
698dcdb6 6170
10f2d63a
VZ
6171 LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}`
6172 if test "x$LINE" != x ; then
6173 eval "DEFAULT_$LINE"
6174 else
6175 no_cache=1
6176 fi
6177
6178 ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX
698dcdb6
VZ
6179
6180fi
10f2d63a
VZ
6181
6182
6183 eval "$ac_cv_use_radiobox"
6184 if test "$no_cache" != 1; then
6185 echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp
6186 fi
6187
6188 if test "$wxUSE_RADIOBOX" = yes; then
698dcdb6 6189 echo "$ac_t""yes" 1>&6
10f2d63a 6190 else
698dcdb6 6191 echo "$ac_t""no" 1>&6
10f2d63a 6192 fi
698dcdb6 6193
10f2d63a 6194
698dcdb6 6195 echo $ac_n "checking for --enable-radiobtn""... $ac_c" 1>&6
a1622950 6196echo "configure:6197: checking for --enable-radiobtn" >&5
10f2d63a
VZ
6197 no_cache=0
6198 # Check whether --enable-radiobtn or --disable-radiobtn was given.
6199if test "${enable_radiobtn+set}" = set; then
6200 enableval="$enable_radiobtn"
698dcdb6 6201
10f2d63a
VZ
6202 if test "$enableval" = yes; then
6203 ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes'
6204 else
6205 ac_cv_use_radiobtn='wxUSE_RADIOBTN=no'
6206 fi
698dcdb6 6207
10f2d63a 6208else
698dcdb6 6209
10f2d63a
VZ
6210 LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}`
6211 if test "x$LINE" != x ; then
6212 eval "DEFAULT_$LINE"
6213 else
6214 no_cache=1
6215 fi
6216
6217 ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN
698dcdb6
VZ
6218
6219fi
10f2d63a
VZ
6220
6221
6222 eval "$ac_cv_use_radiobtn"
6223 if test "$no_cache" != 1; then
6224 echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp
6225 fi
6226
6227 if test "$wxUSE_RADIOBTN" = yes; then
698dcdb6 6228 echo "$ac_t""yes" 1>&6
10f2d63a 6229 else
698dcdb6 6230 echo "$ac_t""no" 1>&6
10f2d63a 6231 fi
698dcdb6 6232
10f2d63a 6233
698dcdb6 6234 echo $ac_n "checking for --enable-sash""... $ac_c" 1>&6
a1622950 6235echo "configure:6236: checking for --enable-sash" >&5
10f2d63a
VZ
6236 no_cache=0
6237 # Check whether --enable-sash or --disable-sash was given.
6238if test "${enable_sash+set}" = set; then
6239 enableval="$enable_sash"
698dcdb6 6240
10f2d63a
VZ
6241 if test "$enableval" = yes; then
6242 ac_cv_use_sash='wxUSE_SASH=yes'
6243 else
6244 ac_cv_use_sash='wxUSE_SASH=no'
6245 fi
698dcdb6 6246
10f2d63a 6247else
698dcdb6 6248
10f2d63a
VZ
6249 LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}`
6250 if test "x$LINE" != x ; then
6251 eval "DEFAULT_$LINE"
6252 else
6253 no_cache=1
6254 fi
6255
6256 ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH
698dcdb6
VZ
6257
6258fi
10f2d63a
VZ
6259
6260
6261 eval "$ac_cv_use_sash"
6262 if test "$no_cache" != 1; then
6263 echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp
6264 fi
6265
6266 if test "$wxUSE_SASH" = yes; then
698dcdb6 6267 echo "$ac_t""yes" 1>&6
10f2d63a 6268 else
698dcdb6 6269 echo "$ac_t""no" 1>&6
10f2d63a 6270 fi
698dcdb6 6271
10f2d63a 6272
698dcdb6 6273 echo $ac_n "checking for --enable-scrollbar""... $ac_c" 1>&6
a1622950 6274echo "configure:6275: checking for --enable-scrollbar" >&5
10f2d63a
VZ
6275 no_cache=0
6276 # Check whether --enable-scrollbar or --disable-scrollbar was given.
6277if test "${enable_scrollbar+set}" = set; then
6278 enableval="$enable_scrollbar"
698dcdb6 6279
10f2d63a
VZ
6280 if test "$enableval" = yes; then
6281 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes'
6282 else
6283 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no'
6284 fi
698dcdb6 6285
10f2d63a 6286else
698dcdb6 6287
10f2d63a
VZ
6288 LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}`
6289 if test "x$LINE" != x ; then
6290 eval "DEFAULT_$LINE"
6291 else
6292 no_cache=1
6293 fi
6294
6295 ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR
698dcdb6
VZ
6296
6297fi
10f2d63a
VZ
6298
6299
6300 eval "$ac_cv_use_scrollbar"
6301 if test "$no_cache" != 1; then
6302 echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp
6303 fi
6304
6305 if test "$wxUSE_SCROLLBAR" = yes; then
698dcdb6 6306 echo "$ac_t""yes" 1>&6
10f2d63a 6307 else
698dcdb6 6308 echo "$ac_t""no" 1>&6
10f2d63a 6309 fi
698dcdb6 6310
10f2d63a 6311
698dcdb6 6312 echo $ac_n "checking for --enable-slider""... $ac_c" 1>&6
a1622950 6313echo "configure:6314: checking for --enable-slider" >&5
10f2d63a
VZ
6314 no_cache=0
6315 # Check whether --enable-slider or --disable-slider was given.
6316if test "${enable_slider+set}" = set; then
6317 enableval="$enable_slider"
698dcdb6 6318
10f2d63a
VZ
6319 if test "$enableval" = yes; then
6320 ac_cv_use_slider='wxUSE_SLIDER=yes'
6321 else
6322 ac_cv_use_slider='wxUSE_SLIDER=no'
6323 fi
698dcdb6 6324
10f2d63a 6325else
698dcdb6 6326
10f2d63a
VZ
6327 LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}`
6328 if test "x$LINE" != x ; then
6329 eval "DEFAULT_$LINE"
6330 else
6331 no_cache=1
6332 fi
6333
6334 ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER
698dcdb6
VZ
6335
6336fi
10f2d63a
VZ
6337
6338
6339 eval "$ac_cv_use_slider"
6340 if test "$no_cache" != 1; then
6341 echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp
6342 fi
6343
6344 if test "$wxUSE_SLIDER" = yes; then
698dcdb6 6345 echo "$ac_t""yes" 1>&6
10f2d63a 6346 else
698dcdb6 6347 echo "$ac_t""no" 1>&6
10f2d63a 6348 fi
698dcdb6 6349
10f2d63a 6350
698dcdb6 6351 echo $ac_n "checking for --enable-spinbtn""... $ac_c" 1>&6
a1622950 6352echo "configure:6353: checking for --enable-spinbtn" >&5
10f2d63a
VZ
6353 no_cache=0
6354 # Check whether --enable-spinbtn or --disable-spinbtn was given.
6355if test "${enable_spinbtn+set}" = set; then
6356 enableval="$enable_spinbtn"
698dcdb6 6357
10f2d63a
VZ
6358 if test "$enableval" = yes; then
6359 ac_cv_use_spinbtn='wxUSE_SPINBTN=yes'
6360 else
6361 ac_cv_use_spinbtn='wxUSE_SPINBTN=no'
6362 fi
698dcdb6 6363
10f2d63a 6364else
698dcdb6 6365
10f2d63a
VZ
6366 LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}`
6367 if test "x$LINE" != x ; then
6368 eval "DEFAULT_$LINE"
6369 else
6370 no_cache=1
6371 fi
6372
6373 ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN
698dcdb6
VZ
6374
6375fi
10f2d63a
VZ
6376
6377
6378 eval "$ac_cv_use_spinbtn"
6379 if test "$no_cache" != 1; then
6380 echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp
6381 fi
6382
6383 if test "$wxUSE_SPINBTN" = yes; then
698dcdb6 6384 echo "$ac_t""yes" 1>&6
10f2d63a 6385 else
698dcdb6 6386 echo "$ac_t""no" 1>&6
10f2d63a 6387 fi
698dcdb6 6388
10f2d63a 6389
698dcdb6 6390 echo $ac_n "checking for --enable-spinctrl""... $ac_c" 1>&6
a1622950 6391echo "configure:6392: checking for --enable-spinctrl" >&5
56cfaa52
RR
6392 no_cache=0
6393 # Check whether --enable-spinctrl or --disable-spinctrl was given.
6394if test "${enable_spinctrl+set}" = set; then
6395 enableval="$enable_spinctrl"
698dcdb6 6396
56cfaa52
RR
6397 if test "$enableval" = yes; then
6398 ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes'
6399 else
6400 ac_cv_use_spinctrl='wxUSE_SPINCTRL=no'
6401 fi
698dcdb6 6402
56cfaa52 6403else
698dcdb6 6404
56cfaa52
RR
6405 LINE=`grep "wxUSE_SPINCTRL" ${wx_arg_cache_file}`
6406 if test "x$LINE" != x ; then
6407 eval "DEFAULT_$LINE"
6408 else
6409 no_cache=1
6410 fi
6411
6412 ac_cv_use_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL
698dcdb6
VZ
6413
6414fi
56cfaa52
RR
6415
6416
6417 eval "$ac_cv_use_spinctrl"
6418 if test "$no_cache" != 1; then
6419 echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp
6420 fi
6421
6422 if test "$wxUSE_SPINCTRL" = yes; then
698dcdb6 6423 echo "$ac_t""yes" 1>&6
56cfaa52 6424 else
698dcdb6 6425 echo "$ac_t""no" 1>&6
56cfaa52 6426 fi
698dcdb6 6427
56cfaa52 6428
698dcdb6 6429 echo $ac_n "checking for --enable-splitter""... $ac_c" 1>&6
a1622950 6430echo "configure:6431: checking for --enable-splitter" >&5
10f2d63a
VZ
6431 no_cache=0
6432 # Check whether --enable-splitter or --disable-splitter was given.
6433if test "${enable_splitter+set}" = set; then
6434 enableval="$enable_splitter"
698dcdb6 6435
10f2d63a
VZ
6436 if test "$enableval" = yes; then
6437 ac_cv_use_splitter='wxUSE_SPLITTER=yes'
6438 else
6439 ac_cv_use_splitter='wxUSE_SPLITTER=no'
6440 fi
698dcdb6 6441
10f2d63a 6442else
698dcdb6 6443
10f2d63a
VZ
6444 LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}`
6445 if test "x$LINE" != x ; then
6446 eval "DEFAULT_$LINE"
6447 else
6448 no_cache=1
6449 fi
6450
6451 ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER
698dcdb6
VZ
6452
6453fi
10f2d63a
VZ
6454
6455
6456 eval "$ac_cv_use_splitter"
6457 if test "$no_cache" != 1; then
6458 echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp
6459 fi
6460
6461 if test "$wxUSE_SPLITTER" = yes; then
698dcdb6 6462 echo "$ac_t""yes" 1>&6
10f2d63a 6463 else
698dcdb6 6464 echo "$ac_t""no" 1>&6
10f2d63a 6465 fi
698dcdb6 6466
10f2d63a 6467
698dcdb6 6468 echo $ac_n "checking for --enable-statbmp""... $ac_c" 1>&6
a1622950 6469echo "configure:6470: checking for --enable-statbmp" >&5
10f2d63a
VZ
6470 no_cache=0
6471 # Check whether --enable-statbmp or --disable-statbmp was given.
6472if test "${enable_statbmp+set}" = set; then
6473 enableval="$enable_statbmp"
698dcdb6 6474
10f2d63a
VZ
6475 if test "$enableval" = yes; then
6476 ac_cv_use_statbmp='wxUSE_STATBMP=yes'
6477 else
6478 ac_cv_use_statbmp='wxUSE_STATBMP=no'
6479 fi
698dcdb6 6480
10f2d63a 6481else
698dcdb6 6482
10f2d63a
VZ
6483 LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}`
6484 if test "x$LINE" != x ; then
6485 eval "DEFAULT_$LINE"
6486 else
6487 no_cache=1
6488 fi
6489
6490 ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP
698dcdb6
VZ
6491
6492fi
10f2d63a
VZ
6493
6494
6495 eval "$ac_cv_use_statbmp"
6496 if test "$no_cache" != 1; then
6497 echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp
6498 fi
6499
6500 if test "$wxUSE_STATBMP" = yes; then
698dcdb6 6501 echo "$ac_t""yes" 1>&6
10f2d63a 6502 else
698dcdb6 6503 echo "$ac_t""no" 1>&6
10f2d63a 6504 fi
698dcdb6 6505
10f2d63a 6506
698dcdb6 6507 echo $ac_n "checking for --enable-statbox""... $ac_c" 1>&6
a1622950 6508echo "configure:6509: checking for --enable-statbox" >&5
10f2d63a
VZ
6509 no_cache=0
6510 # Check whether --enable-statbox or --disable-statbox was given.
6511if test "${enable_statbox+set}" = set; then
6512 enableval="$enable_statbox"
698dcdb6 6513
10f2d63a
VZ
6514 if test "$enableval" = yes; then
6515 ac_cv_use_statbox='wxUSE_STATBOX=yes'
6516 else
6517 ac_cv_use_statbox='wxUSE_STATBOX=no'
6518 fi
698dcdb6 6519
10f2d63a 6520else
698dcdb6 6521
10f2d63a
VZ
6522 LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}`
6523 if test "x$LINE" != x ; then
6524 eval "DEFAULT_$LINE"
6525 else
6526 no_cache=1
6527 fi
6528
6529 ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX
698dcdb6
VZ
6530
6531fi
10f2d63a
VZ
6532
6533
6534 eval "$ac_cv_use_statbox"
6535 if test "$no_cache" != 1; then
6536 echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp
6537 fi
6538
6539 if test "$wxUSE_STATBOX" = yes; then
698dcdb6 6540 echo "$ac_t""yes" 1>&6
10f2d63a 6541 else
698dcdb6 6542 echo "$ac_t""no" 1>&6
10f2d63a 6543 fi
698dcdb6 6544
10f2d63a 6545
698dcdb6 6546 echo $ac_n "checking for --enable-statline""... $ac_c" 1>&6
a1622950 6547echo "configure:6548: checking for --enable-statline" >&5
10f2d63a
VZ
6548 no_cache=0
6549 # Check whether --enable-statline or --disable-statline was given.
6550if test "${enable_statline+set}" = set; then
6551 enableval="$enable_statline"
698dcdb6 6552
10f2d63a
VZ
6553 if test "$enableval" = yes; then
6554 ac_cv_use_statline='wxUSE_STATLINE=yes'
6555 else
6556 ac_cv_use_statline='wxUSE_STATLINE=no'
6557 fi
698dcdb6 6558
10f2d63a 6559else
698dcdb6 6560
10f2d63a
VZ
6561 LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}`
6562 if test "x$LINE" != x ; then
6563 eval "DEFAULT_$LINE"
6564 else
6565 no_cache=1
6566 fi
6567
6568 ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE
698dcdb6
VZ
6569
6570fi
10f2d63a
VZ
6571
6572
6573 eval "$ac_cv_use_statline"
6574 if test "$no_cache" != 1; then
6575 echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp
6576 fi
6577
6578 if test "$wxUSE_STATLINE" = yes; then
698dcdb6 6579 echo "$ac_t""yes" 1>&6
10f2d63a 6580 else
698dcdb6 6581 echo "$ac_t""no" 1>&6
10f2d63a 6582 fi
698dcdb6 6583
10f2d63a 6584
1e6feb95 6585 echo $ac_n "checking for --enable-stattext""... $ac_c" 1>&6
a1622950 6586echo "configure:6587: checking for --enable-stattext" >&5
1e6feb95
VZ
6587 no_cache=0
6588 # Check whether --enable-stattext or --disable-stattext was given.
6589if test "${enable_stattext+set}" = set; then
6590 enableval="$enable_stattext"
6591
6592 if test "$enableval" = yes; then
6593 ac_cv_use_stattext='wxUSE_STATTEXT=yes'
6594 else
6595 ac_cv_use_stattext='wxUSE_STATTEXT=no'
6596 fi
6597
6598else
6599
6600 LINE=`grep "wxUSE_STATTEXT" ${wx_arg_cache_file}`
6601 if test "x$LINE" != x ; then
6602 eval "DEFAULT_$LINE"
6603 else
6604 no_cache=1
6605 fi
6606
6607 ac_cv_use_stattext='wxUSE_STATTEXT='$DEFAULT_wxUSE_STATTEXT
6608
6609fi
6610
6611
6612 eval "$ac_cv_use_stattext"
6613 if test "$no_cache" != 1; then
6614 echo $ac_cv_use_stattext >> ${wx_arg_cache_file}.tmp
6615 fi
6616
6617 if test "$wxUSE_STATTEXT" = yes; then
6618 echo "$ac_t""yes" 1>&6
6619 else
6620 echo "$ac_t""no" 1>&6
6621 fi
6622
6623
698dcdb6 6624 echo $ac_n "checking for --enable-statusbar""... $ac_c" 1>&6
a1622950 6625echo "configure:6626: checking for --enable-statusbar" >&5
10f2d63a
VZ
6626 no_cache=0
6627 # Check whether --enable-statusbar or --disable-statusbar was given.
6628if test "${enable_statusbar+set}" = set; then
6629 enableval="$enable_statusbar"
698dcdb6 6630
10f2d63a
VZ
6631 if test "$enableval" = yes; then
6632 ac_cv_use_statusbar='wxUSE_STATUSBAR=yes'
6633 else
6634 ac_cv_use_statusbar='wxUSE_STATUSBAR=no'
6635 fi
698dcdb6 6636
10f2d63a 6637else
698dcdb6 6638
10f2d63a
VZ
6639 LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}`
6640 if test "x$LINE" != x ; then
6641 eval "DEFAULT_$LINE"
6642 else
6643 no_cache=1
6644 fi
6645
6646 ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR
698dcdb6
VZ
6647
6648fi
10f2d63a
VZ
6649
6650
6651 eval "$ac_cv_use_statusbar"
6652 if test "$no_cache" != 1; then
6653 echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp
6654 fi
6655
6656 if test "$wxUSE_STATUSBAR" = yes; then
698dcdb6 6657 echo "$ac_t""yes" 1>&6
10f2d63a 6658 else
698dcdb6 6659 echo "$ac_t""no" 1>&6
10f2d63a 6660 fi
698dcdb6 6661
10f2d63a 6662
698dcdb6 6663 echo $ac_n "checking for --enable-tabdialog""... $ac_c" 1>&6
a1622950 6664echo "configure:6665: checking for --enable-tabdialog" >&5
10f2d63a
VZ
6665 no_cache=0
6666 # Check whether --enable-tabdialog or --disable-tabdialog was given.
6667if test "${enable_tabdialog+set}" = set; then
6668 enableval="$enable_tabdialog"
698dcdb6 6669
10f2d63a
VZ
6670 if test "$enableval" = yes; then
6671 ac_cv_use_tabdialog='wxUSE_TABDIALOG=yes'
6672 else
6673 ac_cv_use_tabdialog='wxUSE_TABDIALOG=no'
6674 fi
698dcdb6 6675
10f2d63a 6676else
698dcdb6 6677
10f2d63a
VZ
6678 LINE=`grep "wxUSE_TABDIALOG" ${wx_arg_cache_file}`
6679 if test "x$LINE" != x ; then
6680 eval "DEFAULT_$LINE"
6681 else
6682 no_cache=1
6683 fi
6684
6685 ac_cv_use_tabdialog='wxUSE_TABDIALOG='$DEFAULT_wxUSE_TABDIALOG
698dcdb6
VZ
6686
6687fi
10f2d63a
VZ
6688
6689
6690 eval "$ac_cv_use_tabdialog"
6691 if test "$no_cache" != 1; then
6692 echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp
6693 fi
6694
6695 if test "$wxUSE_TABDIALOG" = yes; then
698dcdb6 6696 echo "$ac_t""yes" 1>&6
10f2d63a 6697 else
698dcdb6 6698 echo "$ac_t""no" 1>&6
10f2d63a 6699 fi
698dcdb6 6700
10f2d63a 6701
1e6feb95 6702 echo $ac_n "checking for --enable-textctrl""... $ac_c" 1>&6
a1622950 6703echo "configure:6704: checking for --enable-textctrl" >&5
1e6feb95
VZ
6704 no_cache=0
6705 # Check whether --enable-textctrl or --disable-textctrl was given.
6706if test "${enable_textctrl+set}" = set; then
6707 enableval="$enable_textctrl"
6708
6709 if test "$enableval" = yes; then
6710 ac_cv_use_textctrl='wxUSE_TEXTCTRL=yes'
6711 else
6712 ac_cv_use_textctrl='wxUSE_TEXTCTRL=no'
6713 fi
6714
6715else
6716
6717 LINE=`grep "wxUSE_TEXTCTRL" ${wx_arg_cache_file}`
6718 if test "x$LINE" != x ; then
6719 eval "DEFAULT_$LINE"
6720 else
6721 no_cache=1
6722 fi
6723
6724 ac_cv_use_textctrl='wxUSE_TEXTCTRL='$DEFAULT_wxUSE_TEXTCTRL
6725
6726fi
6727
6728
6729 eval "$ac_cv_use_textctrl"
6730 if test "$no_cache" != 1; then
6731 echo $ac_cv_use_textctrl >> ${wx_arg_cache_file}.tmp
6732 fi
6733
6734 if test "$wxUSE_TEXTCTRL" = yes; then
6735 echo "$ac_t""yes" 1>&6
6736 else
6737 echo "$ac_t""no" 1>&6
6738 fi
6739
6740
698dcdb6 6741 echo $ac_n "checking for --enable-togglebtn""... $ac_c" 1>&6
a1622950 6742echo "configure:6743: checking for --enable-togglebtn" >&5
1db8dc4a
VZ
6743 no_cache=0
6744 # Check whether --enable-togglebtn or --disable-togglebtn was given.
6745if test "${enable_togglebtn+set}" = set; then
6746 enableval="$enable_togglebtn"
698dcdb6 6747
1db8dc4a
VZ
6748 if test "$enableval" = yes; then
6749 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes'
6750 else
6751 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=no'
6752 fi
698dcdb6 6753
1db8dc4a 6754else
698dcdb6 6755
1db8dc4a
VZ
6756 LINE=`grep "wxUSE_TOGGLEBTN" ${wx_arg_cache_file}`
6757 if test "x$LINE" != x ; then
6758 eval "DEFAULT_$LINE"
6759 else
6760 no_cache=1
6761 fi
6762
6763 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN='$DEFAULT_wxUSE_TOGGLEBTN
698dcdb6
VZ
6764
6765fi
1db8dc4a
VZ
6766
6767
6768 eval "$ac_cv_use_togglebtn"
6769 if test "$no_cache" != 1; then
6770 echo $ac_cv_use_togglebtn >> ${wx_arg_cache_file}.tmp
6771 fi
6772
6773 if test "$wxUSE_TOGGLEBTN" = yes; then
698dcdb6 6774 echo "$ac_t""yes" 1>&6
1db8dc4a 6775 else
698dcdb6 6776 echo "$ac_t""no" 1>&6
1db8dc4a 6777 fi
698dcdb6 6778
1db8dc4a 6779
698dcdb6 6780 echo $ac_n "checking for --enable-toolbar""... $ac_c" 1>&6
a1622950 6781echo "configure:6782: checking for --enable-toolbar" >&5
10f2d63a
VZ
6782 no_cache=0
6783 # Check whether --enable-toolbar or --disable-toolbar was given.
6784if test "${enable_toolbar+set}" = set; then
6785 enableval="$enable_toolbar"
698dcdb6 6786
10f2d63a
VZ
6787 if test "$enableval" = yes; then
6788 ac_cv_use_toolbar='wxUSE_TOOLBAR=yes'
6789 else
6790 ac_cv_use_toolbar='wxUSE_TOOLBAR=no'
6791 fi
698dcdb6 6792
10f2d63a 6793else
698dcdb6 6794
10f2d63a
VZ
6795 LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}`
6796 if test "x$LINE" != x ; then
6797 eval "DEFAULT_$LINE"
6798 else
6799 no_cache=1
6800 fi
6801
6802 ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR
698dcdb6
VZ
6803
6804fi
10f2d63a
VZ
6805
6806
6807 eval "$ac_cv_use_toolbar"
6808 if test "$no_cache" != 1; then
6809 echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp
6810 fi
6811
6812 if test "$wxUSE_TOOLBAR" = yes; then
698dcdb6 6813 echo "$ac_t""yes" 1>&6
10f2d63a 6814 else
698dcdb6 6815 echo "$ac_t""no" 1>&6
10f2d63a 6816 fi
698dcdb6 6817
10f2d63a 6818
698dcdb6 6819 echo $ac_n "checking for --enable-tbarnative""... $ac_c" 1>&6
a1622950 6820echo "configure:6821: checking for --enable-tbarnative" >&5
360d6699
VZ
6821 no_cache=0
6822 # Check whether --enable-tbarnative or --disable-tbarnative was given.
6823if test "${enable_tbarnative+set}" = set; then
6824 enableval="$enable_tbarnative"
698dcdb6 6825
360d6699
VZ
6826 if test "$enableval" = yes; then
6827 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes'
6828 else
6829 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no'
6830 fi
698dcdb6 6831
360d6699 6832else
698dcdb6 6833
360d6699
VZ
6834 LINE=`grep "wxUSE_TOOLBAR_NATIVE" ${wx_arg_cache_file}`
6835 if test "x$LINE" != x ; then
6836 eval "DEFAULT_$LINE"
6837 else
6838 no_cache=1
6839 fi
6840
6841 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE='$DEFAULT_wxUSE_TOOLBAR_NATIVE
698dcdb6
VZ
6842
6843fi
360d6699
VZ
6844
6845
6846 eval "$ac_cv_use_tbarnative"
6847 if test "$no_cache" != 1; then
6848 echo $ac_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp
6849 fi
6850
6851 if test "$wxUSE_TOOLBAR_NATIVE" = yes; then
698dcdb6 6852 echo "$ac_t""yes" 1>&6
360d6699 6853 else
698dcdb6 6854 echo "$ac_t""no" 1>&6
360d6699 6855 fi
698dcdb6 6856
360d6699 6857
698dcdb6 6858 echo $ac_n "checking for --enable-tbarsmpl""... $ac_c" 1>&6
a1622950 6859echo "configure:6860: checking for --enable-tbarsmpl" >&5
360d6699
VZ
6860 no_cache=0
6861 # Check whether --enable-tbarsmpl or --disable-tbarsmpl was given.
6862if test "${enable_tbarsmpl+set}" = set; then
6863 enableval="$enable_tbarsmpl"
698dcdb6 6864
360d6699
VZ
6865 if test "$enableval" = yes; then
6866 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=yes'
6867 else
6868 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=no'
6869 fi
698dcdb6 6870
360d6699 6871else
698dcdb6 6872
360d6699
VZ
6873 LINE=`grep "wxUSE_TOOLBAR_SIMPLE" ${wx_arg_cache_file}`
6874 if test "x$LINE" != x ; then
6875 eval "DEFAULT_$LINE"
6876 else
6877 no_cache=1
6878 fi
6879
6880 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE='$DEFAULT_wxUSE_TOOLBAR_SIMPLE
698dcdb6
VZ
6881
6882fi
360d6699
VZ
6883
6884
6885 eval "$ac_cv_use_tbarsmpl"
6886 if test "$no_cache" != 1; then
6887 echo $ac_cv_use_tbarsmpl >> ${wx_arg_cache_file}.tmp
6888 fi
6889
6890 if test "$wxUSE_TOOLBAR_SIMPLE" = yes; then
698dcdb6 6891 echo "$ac_t""yes" 1>&6
360d6699 6892 else
698dcdb6 6893 echo "$ac_t""no" 1>&6
360d6699 6894 fi
698dcdb6 6895
360d6699 6896
698dcdb6 6897 echo $ac_n "checking for --enable-treectrl""... $ac_c" 1>&6
a1622950 6898echo "configure:6899: checking for --enable-treectrl" >&5
10f2d63a
VZ
6899 no_cache=0
6900 # Check whether --enable-treectrl or --disable-treectrl was given.
6901if test "${enable_treectrl+set}" = set; then
6902 enableval="$enable_treectrl"
698dcdb6 6903
10f2d63a
VZ
6904 if test "$enableval" = yes; then
6905 ac_cv_use_treectrl='wxUSE_TREECTRL=yes'
6906 else
6907 ac_cv_use_treectrl='wxUSE_TREECTRL=no'
6908 fi
698dcdb6 6909
10f2d63a 6910else
698dcdb6 6911
10f2d63a
VZ
6912 LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}`
6913 if test "x$LINE" != x ; then
6914 eval "DEFAULT_$LINE"
6915 else
6916 no_cache=1
6917 fi
6918
6919 ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL
698dcdb6
VZ
6920
6921fi
10f2d63a
VZ
6922
6923
1e6feb95
VZ
6924 eval "$ac_cv_use_treectrl"
6925 if test "$no_cache" != 1; then
6926 echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp
6927 fi
6928
6929 if test "$wxUSE_TREECTRL" = yes; then
6930 echo "$ac_t""yes" 1>&6
6931 else
6932 echo "$ac_t""no" 1>&6
6933 fi
6934
6935
9926e4a4 6936 echo $ac_n "checking for --enable-tipwindow""... $ac_c" 1>&6
a1622950 6937echo "configure:6938: checking for --enable-tipwindow" >&5
9926e4a4
VZ
6938 no_cache=0
6939 # Check whether --enable-tipwindow or --disable-tipwindow was given.
6940if test "${enable_tipwindow+set}" = set; then
6941 enableval="$enable_tipwindow"
6942
6943 if test "$enableval" = yes; then
6944 ac_cv_use_tipwindow='wxUSE_TIPWINDOW=yes'
6945 else
6946 ac_cv_use_tipwindow='wxUSE_TIPWINDOW=no'
6947 fi
6948
6949else
6950
6951 LINE=`grep "wxUSE_TIPWINDOW" ${wx_arg_cache_file}`
6952 if test "x$LINE" != x ; then
6953 eval "DEFAULT_$LINE"
6954 else
6955 no_cache=1
6956 fi
6957
6958 ac_cv_use_tipwindow='wxUSE_TIPWINDOW='$DEFAULT_wxUSE_TIPWINDOW
6959
6960fi
6961
6962
6963 eval "$ac_cv_use_tipwindow"
6964 if test "$no_cache" != 1; then
6965 echo $ac_cv_use_tipwindow >> ${wx_arg_cache_file}.tmp
6966 fi
6967
6968 if test "$wxUSE_TIPWINDOW" = yes; then
6969 echo "$ac_t""yes" 1>&6
6970 else
6971 echo "$ac_t""no" 1>&6
6972 fi
6973
6974
9f41d601 6975 echo $ac_n "checking for --enable-popupwin""... $ac_c" 1>&6
a1622950 6976echo "configure:6977: checking for --enable-popupwin" >&5
9f41d601
RR
6977 no_cache=0
6978 # Check whether --enable-popupwin or --disable-popupwin was given.
6979if test "${enable_popupwin+set}" = set; then
6980 enableval="$enable_popupwin"
6981
6982 if test "$enableval" = yes; then
6983 ac_cv_use_popupwin='wxUSE_POPUPWIN=yes'
6984 else
6985 ac_cv_use_popupwin='wxUSE_POPUPWIN=no'
6986 fi
6987
6988else
6989
6990 LINE=`grep "wxUSE_POPUPWIN" ${wx_arg_cache_file}`
6991 if test "x$LINE" != x ; then
6992 eval "DEFAULT_$LINE"
6993 else
6994 no_cache=1
6995 fi
6996
6997 ac_cv_use_popupwin='wxUSE_POPUPWIN='$DEFAULT_wxUSE_POPUPWIN
6998
6999fi
7000
7001
7002 eval "$ac_cv_use_popupwin"
7003 if test "$no_cache" != 1; then
7004 echo $ac_cv_use_popupwin >> ${wx_arg_cache_file}.tmp
7005 fi
7006
7007 if test "$wxUSE_POPUPWIN" = yes; then
7008 echo "$ac_t""yes" 1>&6
7009 else
7010 echo "$ac_t""no" 1>&6
7011 fi
7012
7013
1e6feb95
VZ
7014
7015
7016 echo $ac_n "checking for --enable-commondlg""... $ac_c" 1>&6
a1622950 7017echo "configure:7018: checking for --enable-commondlg" >&5
1e6feb95
VZ
7018 no_cache=0
7019 # Check whether --enable-commondlg or --disable-commondlg was given.
7020if test "${enable_commondlg+set}" = set; then
7021 enableval="$enable_commondlg"
7022
7023 if test "$enableval" = yes; then
7024 ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes'
7025 else
7026 ac_cv_use_commondlg='wxUSE_COMMONDLGS=no'
7027 fi
7028
7029else
7030
7031 LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}`
7032 if test "x$LINE" != x ; then
7033 eval "DEFAULT_$LINE"
7034 else
7035 no_cache=1
7036 fi
7037
7038 ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS
7039
7040fi
7041
7042
7043 eval "$ac_cv_use_commondlg"
7044 if test "$no_cache" != 1; then
7045 echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp
7046 fi
7047
7048 if test "$wxUSE_COMMONDLGS" = yes; then
7049 echo "$ac_t""yes" 1>&6
7050 else
7051 echo "$ac_t""no" 1>&6
7052 fi
7053
7054
7055 echo $ac_n "checking for --enable-choicedlg""... $ac_c" 1>&6
a1622950 7056echo "configure:7057: checking for --enable-choicedlg" >&5
1e6feb95
VZ
7057 no_cache=0
7058 # Check whether --enable-choicedlg or --disable-choicedlg was given.
7059if test "${enable_choicedlg+set}" = set; then
7060 enableval="$enable_choicedlg"
7061
7062 if test "$enableval" = yes; then
7063 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=yes'
7064 else
7065 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=no'
7066 fi
7067
7068else
7069
7070 LINE=`grep "wxUSE_CHOICEDLG" ${wx_arg_cache_file}`
7071 if test "x$LINE" != x ; then
7072 eval "DEFAULT_$LINE"
7073 else
7074 no_cache=1
7075 fi
7076
7077 ac_cv_use_choicedlg='wxUSE_CHOICEDLG='$DEFAULT_wxUSE_CHOICEDLG
7078
7079fi
7080
7081
7082 eval "$ac_cv_use_choicedlg"
7083 if test "$no_cache" != 1; then
7084 echo $ac_cv_use_choicedlg >> ${wx_arg_cache_file}.tmp
7085 fi
7086
7087 if test "$wxUSE_CHOICEDLG" = yes; then
7088 echo "$ac_t""yes" 1>&6
7089 else
7090 echo "$ac_t""no" 1>&6
7091 fi
7092
7093
7094 echo $ac_n "checking for --enable-coldlg""... $ac_c" 1>&6
a1622950 7095echo "configure:7096: checking for --enable-coldlg" >&5
1e6feb95
VZ
7096 no_cache=0
7097 # Check whether --enable-coldlg or --disable-coldlg was given.
7098if test "${enable_coldlg+set}" = set; then
7099 enableval="$enable_coldlg"
7100
7101 if test "$enableval" = yes; then
7102 ac_cv_use_coldlg='wxUSE_COLOURDLG=yes'
7103 else
7104 ac_cv_use_coldlg='wxUSE_COLOURDLG=no'
7105 fi
7106
7107else
7108
7109 LINE=`grep "wxUSE_COLOURDLG" ${wx_arg_cache_file}`
7110 if test "x$LINE" != x ; then
7111 eval "DEFAULT_$LINE"
7112 else
7113 no_cache=1
7114 fi
7115
7116 ac_cv_use_coldlg='wxUSE_COLOURDLG='$DEFAULT_wxUSE_COLOURDLG
7117
7118fi
7119
7120
7121 eval "$ac_cv_use_coldlg"
7122 if test "$no_cache" != 1; then
7123 echo $ac_cv_use_coldlg >> ${wx_arg_cache_file}.tmp
7124 fi
7125
7126 if test "$wxUSE_COLOURDLG" = yes; then
7127 echo "$ac_t""yes" 1>&6
7128 else
7129 echo "$ac_t""no" 1>&6
7130 fi
7131
7132
7133 echo $ac_n "checking for --enable-filedlg""... $ac_c" 1>&6
a1622950 7134echo "configure:7135: checking for --enable-filedlg" >&5
1e6feb95
VZ
7135 no_cache=0
7136 # Check whether --enable-filedlg or --disable-filedlg was given.
7137if test "${enable_filedlg+set}" = set; then
7138 enableval="$enable_filedlg"
7139
7140 if test "$enableval" = yes; then
7141 ac_cv_use_filedlg='wxUSE_FILEDLG=yes'
7142 else
7143 ac_cv_use_filedlg='wxUSE_FILEDLG=no'
7144 fi
7145
7146else
7147
7148 LINE=`grep "wxUSE_FILEDLG" ${wx_arg_cache_file}`
7149 if test "x$LINE" != x ; then
7150 eval "DEFAULT_$LINE"
7151 else
7152 no_cache=1
7153 fi
7154
7155 ac_cv_use_filedlg='wxUSE_FILEDLG='$DEFAULT_wxUSE_FILEDLG
7156
7157fi
7158
7159
7160 eval "$ac_cv_use_filedlg"
7161 if test "$no_cache" != 1; then
7162 echo $ac_cv_use_filedlg >> ${wx_arg_cache_file}.tmp
7163 fi
7164
7165 if test "$wxUSE_FILEDLG" = yes; then
7166 echo "$ac_t""yes" 1>&6
7167 else
7168 echo "$ac_t""no" 1>&6
7169 fi
7170
7171
69d27ff7 7172 echo $ac_n "checking for --enable-finddlg""... $ac_c" 1>&6
a1622950 7173echo "configure:7174: checking for --enable-finddlg" >&5
8db37e06 7174 no_cache=0
69d27ff7
MB
7175 # Check whether --enable-finddlg or --disable-finddlg was given.
7176if test "${enable_finddlg+set}" = set; then
7177 enableval="$enable_finddlg"
8db37e06
VZ
7178
7179 if test "$enableval" = yes; then
69d27ff7 7180 ac_cv_use_finddlg='wxUSE_FINDREPLDLG=yes'
8db37e06 7181 else
69d27ff7 7182 ac_cv_use_finddlg='wxUSE_FINDREPLDLG=no'
8db37e06
VZ
7183 fi
7184
7185else
7186
7187 LINE=`grep "wxUSE_FINDREPLDLG" ${wx_arg_cache_file}`
7188 if test "x$LINE" != x ; then
7189 eval "DEFAULT_$LINE"
7190 else
7191 no_cache=1
7192 fi
7193
69d27ff7 7194 ac_cv_use_finddlg='wxUSE_FINDREPLDLG='$DEFAULT_wxUSE_FINDREPLDLG
8db37e06
VZ
7195
7196fi
7197
7198
69d27ff7 7199 eval "$ac_cv_use_finddlg"
8db37e06 7200 if test "$no_cache" != 1; then
69d27ff7 7201 echo $ac_cv_use_finddlg >> ${wx_arg_cache_file}.tmp
8db37e06
VZ
7202 fi
7203
7204 if test "$wxUSE_FINDREPLDLG" = yes; then
7205 echo "$ac_t""yes" 1>&6
7206 else
7207 echo "$ac_t""no" 1>&6
7208 fi
7209
7210
1e6feb95 7211 echo $ac_n "checking for --enable-fontdlg""... $ac_c" 1>&6
a1622950 7212echo "configure:7213: checking for --enable-fontdlg" >&5
1e6feb95
VZ
7213 no_cache=0
7214 # Check whether --enable-fontdlg or --disable-fontdlg was given.
7215if test "${enable_fontdlg+set}" = set; then
7216 enableval="$enable_fontdlg"
7217
7218 if test "$enableval" = yes; then
7219 ac_cv_use_fontdlg='wxUSE_FONTDLG=yes'
7220 else
7221 ac_cv_use_fontdlg='wxUSE_FONTDLG=no'
7222 fi
7223
7224else
7225
7226 LINE=`grep "wxUSE_FONTDLG" ${wx_arg_cache_file}`
7227 if test "x$LINE" != x ; then
7228 eval "DEFAULT_$LINE"
7229 else
7230 no_cache=1
7231 fi
7232
7233 ac_cv_use_fontdlg='wxUSE_FONTDLG='$DEFAULT_wxUSE_FONTDLG
7234
7235fi
7236
7237
7238 eval "$ac_cv_use_fontdlg"
7239 if test "$no_cache" != 1; then
7240 echo $ac_cv_use_fontdlg >> ${wx_arg_cache_file}.tmp
7241 fi
7242
7243 if test "$wxUSE_FONTDLG" = yes; then
7244 echo "$ac_t""yes" 1>&6
7245 else
7246 echo "$ac_t""no" 1>&6
7247 fi
7248
7249
7250 echo $ac_n "checking for --enable-dirdlg""... $ac_c" 1>&6
a1622950 7251echo "configure:7252: checking for --enable-dirdlg" >&5
1e6feb95
VZ
7252 no_cache=0
7253 # Check whether --enable-dirdlg or --disable-dirdlg was given.
7254if test "${enable_dirdlg+set}" = set; then
7255 enableval="$enable_dirdlg"
7256
7257 if test "$enableval" = yes; then
7258 ac_cv_use_dirdlg='wxUSE_DIRDLG=yes'
7259 else
7260 ac_cv_use_dirdlg='wxUSE_DIRDLG=no'
7261 fi
7262
7263else
7264
7265 LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}`
7266 if test "x$LINE" != x ; then
7267 eval "DEFAULT_$LINE"
7268 else
7269 no_cache=1
7270 fi
7271
7272 ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG
7273
7274fi
7275
7276
7277 eval "$ac_cv_use_dirdlg"
10f2d63a 7278 if test "$no_cache" != 1; then
1e6feb95 7279 echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
7280 fi
7281
1e6feb95 7282 if test "$wxUSE_DIRDLG" = yes; then
698dcdb6 7283 echo "$ac_t""yes" 1>&6
10f2d63a 7284 else
698dcdb6 7285 echo "$ac_t""no" 1>&6
10f2d63a 7286 fi
698dcdb6
VZ
7287
7288
1e6feb95 7289 echo $ac_n "checking for --enable-msgdlg""... $ac_c" 1>&6
a1622950 7290echo "configure:7291: checking for --enable-msgdlg" >&5
10f2d63a 7291 no_cache=0
1e6feb95
VZ
7292 # Check whether --enable-msgdlg or --disable-msgdlg was given.
7293if test "${enable_msgdlg+set}" = set; then
7294 enableval="$enable_msgdlg"
698dcdb6 7295
10f2d63a 7296 if test "$enableval" = yes; then
1e6feb95 7297 ac_cv_use_msgdlg='wxUSE_MSGDLG=yes'
10f2d63a 7298 else
1e6feb95 7299 ac_cv_use_msgdlg='wxUSE_MSGDLG=no'
10f2d63a 7300 fi
698dcdb6 7301
10f2d63a 7302else
698dcdb6 7303
1e6feb95 7304 LINE=`grep "wxUSE_MSGDLG" ${wx_arg_cache_file}`
10f2d63a
VZ
7305 if test "x$LINE" != x ; then
7306 eval "DEFAULT_$LINE"
7307 else
7308 no_cache=1
7309 fi
7310
1e6feb95 7311 ac_cv_use_msgdlg='wxUSE_MSGDLG='$DEFAULT_wxUSE_MSGDLG
698dcdb6
VZ
7312
7313fi
10f2d63a
VZ
7314
7315
1e6feb95 7316 eval "$ac_cv_use_msgdlg"
10f2d63a 7317 if test "$no_cache" != 1; then
1e6feb95 7318 echo $ac_cv_use_msgdlg >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
7319 fi
7320
1e6feb95 7321 if test "$wxUSE_MSGDLG" = yes; then
698dcdb6 7322 echo "$ac_t""yes" 1>&6
10f2d63a 7323 else
698dcdb6 7324 echo "$ac_t""no" 1>&6
10f2d63a 7325 fi
698dcdb6 7326
10f2d63a 7327
1e6feb95 7328 echo $ac_n "checking for --enable-numberdlg""... $ac_c" 1>&6
a1622950 7329echo "configure:7330: checking for --enable-numberdlg" >&5
10f2d63a 7330 no_cache=0
1e6feb95
VZ
7331 # Check whether --enable-numberdlg or --disable-numberdlg was given.
7332if test "${enable_numberdlg+set}" = set; then
7333 enableval="$enable_numberdlg"
698dcdb6 7334
10f2d63a 7335 if test "$enableval" = yes; then
1e6feb95 7336 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=yes'
10f2d63a 7337 else
1e6feb95 7338 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=no'
10f2d63a 7339 fi
698dcdb6 7340
10f2d63a 7341else
698dcdb6 7342
1e6feb95 7343 LINE=`grep "wxUSE_NUMBERDLG" ${wx_arg_cache_file}`
10f2d63a
VZ
7344 if test "x$LINE" != x ; then
7345 eval "DEFAULT_$LINE"
7346 else
7347 no_cache=1
7348 fi
7349
1e6feb95 7350 ac_cv_use_numberdlg='wxUSE_NUMBERDLG='$DEFAULT_wxUSE_NUMBERDLG
698dcdb6
VZ
7351
7352fi
10f2d63a
VZ
7353
7354
1e6feb95 7355 eval "$ac_cv_use_numberdlg"
10f2d63a 7356 if test "$no_cache" != 1; then
1e6feb95 7357 echo $ac_cv_use_numberdlg >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
7358 fi
7359
1e6feb95 7360 if test "$wxUSE_NUMBERDLG" = yes; then
698dcdb6 7361 echo "$ac_t""yes" 1>&6
10f2d63a 7362 else
698dcdb6 7363 echo "$ac_t""no" 1>&6
10f2d63a 7364 fi
698dcdb6 7365
10f2d63a 7366
cbca9943 7367 echo $ac_n "checking for --enable-splash""... $ac_c" 1>&6
a1622950 7368echo "configure:7369: checking for --enable-splash" >&5
cbca9943
VZ
7369 no_cache=0
7370 # Check whether --enable-splash or --disable-splash was given.
7371if test "${enable_splash+set}" = set; then
7372 enableval="$enable_splash"
7373
7374 if test "$enableval" = yes; then
7375 ac_cv_use_splash='wxUSE_SPLASH=yes'
7376 else
7377 ac_cv_use_splash='wxUSE_SPLASH=no'
7378 fi
7379
7380else
7381
7382 LINE=`grep "wxUSE_SPLASH" ${wx_arg_cache_file}`
7383 if test "x$LINE" != x ; then
7384 eval "DEFAULT_$LINE"
7385 else
7386 no_cache=1
7387 fi
7388
7389 ac_cv_use_splash='wxUSE_SPLASH='$DEFAULT_wxUSE_SPLASH
7390
7391fi
7392
7393
7394 eval "$ac_cv_use_splash"
7395 if test "$no_cache" != 1; then
7396 echo $ac_cv_use_splash >> ${wx_arg_cache_file}.tmp
7397 fi
7398
7399 if test "$wxUSE_SPLASH" = yes; then
7400 echo "$ac_t""yes" 1>&6
7401 else
7402 echo "$ac_t""no" 1>&6
7403 fi
7404
7405
698dcdb6 7406 echo $ac_n "checking for --enable-textdlg""... $ac_c" 1>&6
a1622950 7407echo "configure:7408: checking for --enable-textdlg" >&5
10f2d63a
VZ
7408 no_cache=0
7409 # Check whether --enable-textdlg or --disable-textdlg was given.
7410if test "${enable_textdlg+set}" = set; then
7411 enableval="$enable_textdlg"
698dcdb6 7412
10f2d63a
VZ
7413 if test "$enableval" = yes; then
7414 ac_cv_use_textdlg='wxUSE_TEXTDLG=yes'
7415 else
7416 ac_cv_use_textdlg='wxUSE_TEXTDLG=no'
7417 fi
698dcdb6 7418
10f2d63a 7419else
698dcdb6 7420
10f2d63a
VZ
7421 LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}`
7422 if test "x$LINE" != x ; then
7423 eval "DEFAULT_$LINE"
7424 else
7425 no_cache=1
7426 fi
7427
7428 ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG
698dcdb6
VZ
7429
7430fi
10f2d63a
VZ
7431
7432
7433 eval "$ac_cv_use_textdlg"
7434 if test "$no_cache" != 1; then
7435 echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp
7436 fi
7437
7438 if test "$wxUSE_TEXTDLG" = yes; then
698dcdb6 7439 echo "$ac_t""yes" 1>&6
10f2d63a 7440 else
698dcdb6 7441 echo "$ac_t""no" 1>&6
10f2d63a 7442 fi
698dcdb6 7443
10f2d63a 7444
698dcdb6 7445 echo $ac_n "checking for --enable-tipdlg""... $ac_c" 1>&6
a1622950 7446echo "configure:7447: checking for --enable-tipdlg" >&5
10f2d63a
VZ
7447 no_cache=0
7448 # Check whether --enable-tipdlg or --disable-tipdlg was given.
7449if test "${enable_tipdlg+set}" = set; then
7450 enableval="$enable_tipdlg"
698dcdb6 7451
10f2d63a
VZ
7452 if test "$enableval" = yes; then
7453 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes'
7454 else
7455 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no'
7456 fi
698dcdb6 7457
10f2d63a 7458else
698dcdb6 7459
10f2d63a
VZ
7460 LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}`
7461 if test "x$LINE" != x ; then
7462 eval "DEFAULT_$LINE"
7463 else
7464 no_cache=1
7465 fi
7466
7467 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS
698dcdb6
VZ
7468
7469fi
10f2d63a
VZ
7470
7471
7472 eval "$ac_cv_use_tipdlg"
7473 if test "$no_cache" != 1; then
7474 echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp
7475 fi
7476
7477 if test "$wxUSE_STARTUP_TIPS" = yes; then
698dcdb6 7478 echo "$ac_t""yes" 1>&6
10f2d63a 7479 else
698dcdb6 7480 echo "$ac_t""no" 1>&6
10f2d63a 7481 fi
698dcdb6 7482
10f2d63a 7483
698dcdb6 7484 echo $ac_n "checking for --enable-progressdlg""... $ac_c" 1>&6
a1622950 7485echo "configure:7486: checking for --enable-progressdlg" >&5
10f2d63a
VZ
7486 no_cache=0
7487 # Check whether --enable-progressdlg or --disable-progressdlg was given.
7488if test "${enable_progressdlg+set}" = set; then
7489 enableval="$enable_progressdlg"
698dcdb6 7490
10f2d63a
VZ
7491 if test "$enableval" = yes; then
7492 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes'
7493 else
7494 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no'
7495 fi
698dcdb6 7496
10f2d63a 7497else
698dcdb6 7498
10f2d63a
VZ
7499 LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}`
7500 if test "x$LINE" != x ; then
7501 eval "DEFAULT_$LINE"
7502 else
7503 no_cache=1
7504 fi
7505
7506 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG
698dcdb6
VZ
7507
7508fi
10f2d63a
VZ
7509
7510
7511 eval "$ac_cv_use_progressdlg"
7512 if test "$no_cache" != 1; then
7513 echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp
7514 fi
7515
7516 if test "$wxUSE_PROGRESSDLG" = yes; then
698dcdb6 7517 echo "$ac_t""yes" 1>&6
10f2d63a 7518 else
698dcdb6 7519 echo "$ac_t""no" 1>&6
10f2d63a 7520 fi
698dcdb6 7521
10f2d63a 7522
b1f5d087 7523 echo $ac_n "checking for --enable-wizarddlg""... $ac_c" 1>&6
a1622950 7524echo "configure:7525: checking for --enable-wizarddlg" >&5
b1f5d087
VZ
7525 no_cache=0
7526 # Check whether --enable-wizarddlg or --disable-wizarddlg was given.
7527if test "${enable_wizarddlg+set}" = set; then
7528 enableval="$enable_wizarddlg"
7529
7530 if test "$enableval" = yes; then
7531 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=yes'
7532 else
7533 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=no'
7534 fi
7535
7536else
7537
7538 LINE=`grep "wxUSE_WIZARDDLG" ${wx_arg_cache_file}`
7539 if test "x$LINE" != x ; then
7540 eval "DEFAULT_$LINE"
7541 else
7542 no_cache=1
7543 fi
7544
7545 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG='$DEFAULT_wxUSE_WIZARDDLG
7546
7547fi
7548
7549
7550 eval "$ac_cv_use_wizarddlg"
7551 if test "$no_cache" != 1; then
7552 echo $ac_cv_use_wizarddlg >> ${wx_arg_cache_file}.tmp
7553 fi
7554
7555 if test "$wxUSE_WIZARDDLG" = yes; then
7556 echo "$ac_t""yes" 1>&6
7557 else
7558 echo "$ac_t""no" 1>&6
7559 fi
7560
7561
7562
7563
1e6feb95 7564 echo $ac_n "checking for --enable-menus""... $ac_c" 1>&6
a1622950 7565echo "configure:7566: checking for --enable-menus" >&5
1e6feb95
VZ
7566 no_cache=0
7567 # Check whether --enable-menus or --disable-menus was given.
7568if test "${enable_menus+set}" = set; then
7569 enableval="$enable_menus"
7570
7571 if test "$enableval" = yes; then
7572 ac_cv_use_menus='wxUSE_MENUS=yes'
7573 else
7574 ac_cv_use_menus='wxUSE_MENUS=no'
7575 fi
7576
7577else
7578
7579 LINE=`grep "wxUSE_MENUS" ${wx_arg_cache_file}`
7580 if test "x$LINE" != x ; then
7581 eval "DEFAULT_$LINE"
7582 else
7583 no_cache=1
7584 fi
7585
7586 ac_cv_use_menus='wxUSE_MENUS='$DEFAULT_wxUSE_MENUS
7587
7588fi
7589
7590
7591 eval "$ac_cv_use_menus"
7592 if test "$no_cache" != 1; then
7593 echo $ac_cv_use_menus >> ${wx_arg_cache_file}.tmp
7594 fi
7595
7596 if test "$wxUSE_MENUS" = yes; then
7597 echo "$ac_t""yes" 1>&6
7598 else
7599 echo "$ac_t""no" 1>&6
7600 fi
7601
7602
698dcdb6 7603 echo $ac_n "checking for --enable-miniframe""... $ac_c" 1>&6
a1622950 7604echo "configure:7605: checking for --enable-miniframe" >&5
10f2d63a
VZ
7605 no_cache=0
7606 # Check whether --enable-miniframe or --disable-miniframe was given.
7607if test "${enable_miniframe+set}" = set; then
7608 enableval="$enable_miniframe"
698dcdb6 7609
10f2d63a
VZ
7610 if test "$enableval" = yes; then
7611 ac_cv_use_miniframe='wxUSE_MINIFRAME=yes'
7612 else
7613 ac_cv_use_miniframe='wxUSE_MINIFRAME=no'
7614 fi
698dcdb6 7615
10f2d63a 7616else
698dcdb6 7617
10f2d63a
VZ
7618 LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}`
7619 if test "x$LINE" != x ; then
7620 eval "DEFAULT_$LINE"
7621 else
7622 no_cache=1
7623 fi
7624
7625 ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME
698dcdb6
VZ
7626
7627fi
10f2d63a
VZ
7628
7629
7630 eval "$ac_cv_use_miniframe"
7631 if test "$no_cache" != 1; then
7632 echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp
7633 fi
7634
7635 if test "$wxUSE_MINIFRAME" = yes; then
698dcdb6 7636 echo "$ac_t""yes" 1>&6
10f2d63a 7637 else
698dcdb6 7638 echo "$ac_t""no" 1>&6
10f2d63a 7639 fi
698dcdb6 7640
10f2d63a 7641
698dcdb6 7642 echo $ac_n "checking for --enable-tooltips""... $ac_c" 1>&6
a1622950 7643echo "configure:7644: checking for --enable-tooltips" >&5
10f2d63a
VZ
7644 no_cache=0
7645 # Check whether --enable-tooltips or --disable-tooltips was given.
7646if test "${enable_tooltips+set}" = set; then
7647 enableval="$enable_tooltips"
698dcdb6 7648
10f2d63a
VZ
7649 if test "$enableval" = yes; then
7650 ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes'
7651 else
7652 ac_cv_use_tooltips='wxUSE_TOOLTIPS=no'
7653 fi
698dcdb6 7654
10f2d63a 7655else
698dcdb6 7656
10f2d63a
VZ
7657 LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}`
7658 if test "x$LINE" != x ; then
7659 eval "DEFAULT_$LINE"
7660 else
7661 no_cache=1
7662 fi
7663
7664 ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS
698dcdb6
VZ
7665
7666fi
10f2d63a
VZ
7667
7668
7669 eval "$ac_cv_use_tooltips"
7670 if test "$no_cache" != 1; then
7671 echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp
7672 fi
7673
7674 if test "$wxUSE_TOOLTIPS" = yes; then
698dcdb6 7675 echo "$ac_t""yes" 1>&6
10f2d63a 7676 else
698dcdb6 7677 echo "$ac_t""no" 1>&6
10f2d63a 7678 fi
698dcdb6 7679
10f2d63a 7680
698dcdb6 7681 echo $ac_n "checking for --enable-splines""... $ac_c" 1>&6
a1622950 7682echo "configure:7683: checking for --enable-splines" >&5
10f2d63a
VZ
7683 no_cache=0
7684 # Check whether --enable-splines or --disable-splines was given.
7685if test "${enable_splines+set}" = set; then
7686 enableval="$enable_splines"
698dcdb6 7687
10f2d63a
VZ
7688 if test "$enableval" = yes; then
7689 ac_cv_use_splines='wxUSE_SPLINES=yes'
7690 else
7691 ac_cv_use_splines='wxUSE_SPLINES=no'
7692 fi
698dcdb6 7693
10f2d63a 7694else
698dcdb6 7695
10f2d63a
VZ
7696 LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}`
7697 if test "x$LINE" != x ; then
7698 eval "DEFAULT_$LINE"
7699 else
7700 no_cache=1
7701 fi
7702
7703 ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES
698dcdb6
VZ
7704
7705fi
10f2d63a
VZ
7706
7707
7708 eval "$ac_cv_use_splines"
7709 if test "$no_cache" != 1; then
7710 echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp
7711 fi
7712
7713 if test "$wxUSE_SPLINES" = yes; then
698dcdb6 7714 echo "$ac_t""yes" 1>&6
10f2d63a 7715 else
698dcdb6 7716 echo "$ac_t""no" 1>&6
10f2d63a 7717 fi
698dcdb6 7718
10f2d63a 7719
698dcdb6 7720 echo $ac_n "checking for --enable-validators""... $ac_c" 1>&6
a1622950 7721echo "configure:7722: checking for --enable-validators" >&5
10f2d63a
VZ
7722 no_cache=0
7723 # Check whether --enable-validators or --disable-validators was given.
7724if test "${enable_validators+set}" = set; then
7725 enableval="$enable_validators"
698dcdb6 7726
10f2d63a
VZ
7727 if test "$enableval" = yes; then
7728 ac_cv_use_validators='wxUSE_VALIDATORS=yes'
7729 else
7730 ac_cv_use_validators='wxUSE_VALIDATORS=no'
7731 fi
698dcdb6 7732
10f2d63a 7733else
698dcdb6 7734
10f2d63a
VZ
7735 LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}`
7736 if test "x$LINE" != x ; then
7737 eval "DEFAULT_$LINE"
7738 else
7739 no_cache=1
7740 fi
7741
7742 ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS
698dcdb6
VZ
7743
7744fi
10f2d63a
VZ
7745
7746
7747 eval "$ac_cv_use_validators"
7748 if test "$no_cache" != 1; then
7749 echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp
7750 fi
7751
7752 if test "$wxUSE_VALIDATORS" = yes; then
698dcdb6 7753 echo "$ac_t""yes" 1>&6
10f2d63a 7754 else
698dcdb6 7755 echo "$ac_t""no" 1>&6
10f2d63a 7756 fi
698dcdb6 7757
10f2d63a 7758
698dcdb6 7759 echo $ac_n "checking for --enable-busyinfo""... $ac_c" 1>&6
a1622950 7760echo "configure:7761: checking for --enable-busyinfo" >&5
10f2d63a
VZ
7761 no_cache=0
7762 # Check whether --enable-busyinfo or --disable-busyinfo was given.
7763if test "${enable_busyinfo+set}" = set; then
7764 enableval="$enable_busyinfo"
698dcdb6 7765
10f2d63a
VZ
7766 if test "$enableval" = yes; then
7767 ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes'
7768 else
7769 ac_cv_use_busyinfo='wxUSE_BUSYINFO=no'
7770 fi
698dcdb6 7771
10f2d63a 7772else
698dcdb6 7773
10f2d63a
VZ
7774 LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}`
7775 if test "x$LINE" != x ; then
7776 eval "DEFAULT_$LINE"
7777 else
7778 no_cache=1
7779 fi
7780
7781 ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO
698dcdb6
VZ
7782
7783fi
10f2d63a
VZ
7784
7785
7786 eval "$ac_cv_use_busyinfo"
7787 if test "$no_cache" != 1; then
7788 echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp
7789 fi
7790
7791 if test "$wxUSE_BUSYINFO" = yes; then
698dcdb6 7792 echo "$ac_t""yes" 1>&6
10f2d63a 7793 else
698dcdb6 7794 echo "$ac_t""no" 1>&6
10f2d63a 7795 fi
698dcdb6 7796
10f2d63a 7797
698dcdb6 7798 echo $ac_n "checking for --enable-joystick""... $ac_c" 1>&6
a1622950 7799echo "configure:7800: checking for --enable-joystick" >&5
f6bcfd97
BP
7800 no_cache=0
7801 # Check whether --enable-joystick or --disable-joystick was given.
7802if test "${enable_joystick+set}" = set; then
7803 enableval="$enable_joystick"
698dcdb6 7804
f6bcfd97
BP
7805 if test "$enableval" = yes; then
7806 ac_cv_use_joystick='wxUSE_JOYSTICK=yes'
7807 else
7808 ac_cv_use_joystick='wxUSE_JOYSTICK=no'
7809 fi
698dcdb6 7810
f6bcfd97 7811else
698dcdb6 7812
f6bcfd97
BP
7813 LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}`
7814 if test "x$LINE" != x ; then
7815 eval "DEFAULT_$LINE"
7816 else
7817 no_cache=1
7818 fi
7819
7820 ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK
698dcdb6
VZ
7821
7822fi
f6bcfd97
BP
7823
7824
7825 eval "$ac_cv_use_joystick"
7826 if test "$no_cache" != 1; then
7827 echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp
7828 fi
7829
7830 if test "$wxUSE_JOYSTICK" = yes; then
698dcdb6 7831 echo "$ac_t""yes" 1>&6
f6bcfd97 7832 else
698dcdb6 7833 echo "$ac_t""no" 1>&6
f6bcfd97 7834 fi
698dcdb6
VZ
7835
7836
1e6feb95 7837 echo $ac_n "checking for --enable-metafile""... $ac_c" 1>&6
a1622950 7838echo "configure:7839: checking for --enable-metafile" >&5
1e6feb95
VZ
7839 no_cache=0
7840 # Check whether --enable-metafile or --disable-metafile was given.
7841if test "${enable_metafile+set}" = set; then
7842 enableval="$enable_metafile"
7843
7844 if test "$enableval" = yes; then
7845 ac_cv_use_metafile='wxUSE_METAFILE=yes'
7846 else
7847 ac_cv_use_metafile='wxUSE_METAFILE=no'
7848 fi
7849
7850else
7851
7852 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
7853 if test "x$LINE" != x ; then
7854 eval "DEFAULT_$LINE"
7855 else
7856 no_cache=1
7857 fi
7858
7859 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
7860
7861fi
7862
7863
7864 eval "$ac_cv_use_metafile"
7865 if test "$no_cache" != 1; then
7866 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
7867 fi
7868
7869 if test "$wxUSE_METAFILE" = yes; then
7870 echo "$ac_t""yes" 1>&6
7871 else
7872 echo "$ac_t""no" 1>&6
7873 fi
7874
7875
24fd6d87 7876 echo $ac_n "checking for --enable-dragimage""... $ac_c" 1>&6
a1622950 7877echo "configure:7878: checking for --enable-dragimage" >&5
24fd6d87
VZ
7878 no_cache=0
7879 # Check whether --enable-dragimage or --disable-dragimage was given.
7880if test "${enable_dragimage+set}" = set; then
7881 enableval="$enable_dragimage"
7882
7883 if test "$enableval" = yes; then
7884 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=yes'
7885 else
7886 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=no'
7887 fi
7888
7889else
7890
7891 LINE=`grep "wxUSE_DRAGIMAGE" ${wx_arg_cache_file}`
7892 if test "x$LINE" != x ; then
7893 eval "DEFAULT_$LINE"
7894 else
7895 no_cache=1
7896 fi
7897
7898 ac_cv_use_dragimage='wxUSE_DRAGIMAGE='$DEFAULT_wxUSE_DRAGIMAGE
7899
7900fi
7901
7902
7903 eval "$ac_cv_use_dragimage"
7904 if test "$no_cache" != 1; then
7905 echo $ac_cv_use_dragimage >> ${wx_arg_cache_file}.tmp
7906 fi
7907
7908 if test "$wxUSE_DRAGIMAGE" = yes; then
7909 echo "$ac_t""yes" 1>&6
7910 else
7911 echo "$ac_t""no" 1>&6
7912 fi
7913
7914
10f2d63a 7915
698dcdb6 7916
edae8572 7917 echo $ac_n "checking for --enable-palette""... $ac_c" 1>&6
a1622950 7918echo "configure:7919: checking for --enable-palette" >&5
edae8572
VZ
7919 no_cache=0
7920 # Check whether --enable-palette or --disable-palette was given.
7921if test "${enable_palette+set}" = set; then
7922 enableval="$enable_palette"
7923
7924 if test "$enableval" = yes; then
7925 ac_cv_use_palette='wxUSE_PALETTE=yes'
7926 else
7927 ac_cv_use_palette='wxUSE_PALETTE=no'
7928 fi
7929
7930else
7931
7932 LINE=`grep "wxUSE_PALETTE" ${wx_arg_cache_file}`
7933 if test "x$LINE" != x ; then
7934 eval "DEFAULT_$LINE"
7935 else
7936 no_cache=1
7937 fi
7938
7939 ac_cv_use_palette='wxUSE_PALETTE='$DEFAULT_wxUSE_PALETTE
7940
7941fi
7942
7943
7944 eval "$ac_cv_use_palette"
7945 if test "$no_cache" != 1; then
7946 echo $ac_cv_use_palette >> ${wx_arg_cache_file}.tmp
7947 fi
7948
7949 if test "$wxUSE_PALETTE" = yes; then
7950 echo "$ac_t""yes" 1>&6
7951 else
7952 echo "$ac_t""no" 1>&6
7953 fi
7954
7955
698dcdb6 7956 echo $ac_n "checking for --enable-image""... $ac_c" 1>&6
a1622950 7957echo "configure:7958: checking for --enable-image" >&5
0046ff7c
VS
7958 no_cache=0
7959 # Check whether --enable-image or --disable-image was given.
7960if test "${enable_image+set}" = set; then
7961 enableval="$enable_image"
698dcdb6 7962
0046ff7c
VS
7963 if test "$enableval" = yes; then
7964 ac_cv_use_image='wxUSE_IMAGE=yes'
7965 else
7966 ac_cv_use_image='wxUSE_IMAGE=no'
7967 fi
698dcdb6 7968
0046ff7c 7969else
698dcdb6 7970
0046ff7c
VS
7971 LINE=`grep "wxUSE_IMAGE" ${wx_arg_cache_file}`
7972 if test "x$LINE" != x ; then
7973 eval "DEFAULT_$LINE"
7974 else
7975 no_cache=1
7976 fi
7977
7978 ac_cv_use_image='wxUSE_IMAGE='$DEFAULT_wxUSE_IMAGE
698dcdb6
VZ
7979
7980fi
0046ff7c
VS
7981
7982
7983 eval "$ac_cv_use_image"
7984 if test "$no_cache" != 1; then
7985 echo $ac_cv_use_image >> ${wx_arg_cache_file}.tmp
7986 fi
7987
7988 if test "$wxUSE_IMAGE" = yes; then
698dcdb6 7989 echo "$ac_t""yes" 1>&6
0046ff7c 7990 else
698dcdb6 7991 echo "$ac_t""no" 1>&6
0046ff7c 7992 fi
698dcdb6 7993
0046ff7c 7994
698dcdb6 7995 echo $ac_n "checking for --enable-gif""... $ac_c" 1>&6
a1622950 7996echo "configure:7997: checking for --enable-gif" >&5
10f2d63a
VZ
7997 no_cache=0
7998 # Check whether --enable-gif or --disable-gif was given.
7999if test "${enable_gif+set}" = set; then
8000 enableval="$enable_gif"
698dcdb6 8001
10f2d63a
VZ
8002 if test "$enableval" = yes; then
8003 ac_cv_use_gif='wxUSE_GIF=yes'
8004 else
8005 ac_cv_use_gif='wxUSE_GIF=no'
8006 fi
698dcdb6 8007
10f2d63a 8008else
698dcdb6 8009
10f2d63a
VZ
8010 LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}`
8011 if test "x$LINE" != x ; then
8012 eval "DEFAULT_$LINE"
8013 else
8014 no_cache=1
8015 fi
8016
8017 ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF
698dcdb6
VZ
8018
8019fi
10f2d63a
VZ
8020
8021
8022 eval "$ac_cv_use_gif"
8023 if test "$no_cache" != 1; then
8024 echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp
8025 fi
8026
8027 if test "$wxUSE_GIF" = yes; then
698dcdb6 8028 echo "$ac_t""yes" 1>&6
10f2d63a 8029 else
698dcdb6 8030 echo "$ac_t""no" 1>&6
10f2d63a 8031 fi
698dcdb6 8032
10f2d63a 8033
698dcdb6 8034 echo $ac_n "checking for --enable-pcx""... $ac_c" 1>&6
a1622950 8035echo "configure:8036: checking for --enable-pcx" >&5
10f2d63a
VZ
8036 no_cache=0
8037 # Check whether --enable-pcx or --disable-pcx was given.
8038if test "${enable_pcx+set}" = set; then
8039 enableval="$enable_pcx"
698dcdb6 8040
10f2d63a
VZ
8041 if test "$enableval" = yes; then
8042 ac_cv_use_pcx='wxUSE_PCX=yes'
8043 else
8044 ac_cv_use_pcx='wxUSE_PCX=no'
8045 fi
698dcdb6 8046
10f2d63a 8047else
698dcdb6 8048
10f2d63a
VZ
8049 LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}`
8050 if test "x$LINE" != x ; then
8051 eval "DEFAULT_$LINE"
8052 else
8053 no_cache=1
8054 fi
8055
8056 ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX
698dcdb6
VZ
8057
8058fi
10f2d63a
VZ
8059
8060
8061 eval "$ac_cv_use_pcx"
8062 if test "$no_cache" != 1; then
8063 echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp
8064 fi
8065
8066 if test "$wxUSE_PCX" = yes; then
698dcdb6 8067 echo "$ac_t""yes" 1>&6
10f2d63a 8068 else
698dcdb6 8069 echo "$ac_t""no" 1>&6
10f2d63a 8070 fi
698dcdb6 8071
10f2d63a 8072
698dcdb6 8073 echo $ac_n "checking for --enable-pnm""... $ac_c" 1>&6
a1622950 8074echo "configure:8075: checking for --enable-pnm" >&5
10f2d63a
VZ
8075 no_cache=0
8076 # Check whether --enable-pnm or --disable-pnm was given.
8077if test "${enable_pnm+set}" = set; then
8078 enableval="$enable_pnm"
698dcdb6 8079
10f2d63a
VZ
8080 if test "$enableval" = yes; then
8081 ac_cv_use_pnm='wxUSE_PNM=yes'
8082 else
8083 ac_cv_use_pnm='wxUSE_PNM=no'
8084 fi
698dcdb6 8085
10f2d63a 8086else
698dcdb6 8087
10f2d63a
VZ
8088 LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}`
8089 if test "x$LINE" != x ; then
8090 eval "DEFAULT_$LINE"
8091 else
8092 no_cache=1
8093 fi
8094
8095 ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM
698dcdb6
VZ
8096
8097fi
10f2d63a
VZ
8098
8099
8100 eval "$ac_cv_use_pnm"
8101 if test "$no_cache" != 1; then
8102 echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp
8103 fi
8104
8105 if test "$wxUSE_PNM" = yes; then
698dcdb6 8106 echo "$ac_t""yes" 1>&6
10f2d63a 8107 else
698dcdb6 8108 echo "$ac_t""no" 1>&6
10f2d63a 8109 fi
698dcdb6 8110
10f2d63a 8111
69d27ff7 8112 echo $ac_n "checking for --enable-xpm""... $ac_c" 1>&6
a1622950 8113echo "configure:8114: checking for --enable-xpm" >&5
0046ff7c 8114 no_cache=0
69d27ff7
MB
8115 # Check whether --enable-xpm or --disable-xpm was given.
8116if test "${enable_xpm+set}" = set; then
8117 enableval="$enable_xpm"
698dcdb6 8118
0046ff7c 8119 if test "$enableval" = yes; then
69d27ff7 8120 ac_cv_use_xpm='wxUSE_XPM=yes'
0046ff7c 8121 else
69d27ff7 8122 ac_cv_use_xpm='wxUSE_XPM=no'
0046ff7c 8123 fi
698dcdb6 8124
0046ff7c 8125else
698dcdb6 8126
0046ff7c
VS
8127 LINE=`grep "wxUSE_XPM" ${wx_arg_cache_file}`
8128 if test "x$LINE" != x ; then
8129 eval "DEFAULT_$LINE"
8130 else
8131 no_cache=1
8132 fi
8133
69d27ff7 8134 ac_cv_use_xpm='wxUSE_XPM='$DEFAULT_wxUSE_XPM
698dcdb6
VZ
8135
8136fi
0046ff7c
VS
8137
8138
69d27ff7 8139 eval "$ac_cv_use_xpm"
0046ff7c 8140 if test "$no_cache" != 1; then
69d27ff7 8141 echo $ac_cv_use_xpm >> ${wx_arg_cache_file}.tmp
0046ff7c
VS
8142 fi
8143
8144 if test "$wxUSE_XPM" = yes; then
698dcdb6 8145 echo "$ac_t""yes" 1>&6
0046ff7c 8146 else
698dcdb6 8147 echo "$ac_t""no" 1>&6
0046ff7c 8148 fi
698dcdb6 8149
0046ff7c 8150
b12915c1
VZ
8151fi
8152
698dcdb6 8153
10f2d63a
VZ
8154 echo "saving argument cache $wx_arg_cache_file"
8155 mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file}
698dcdb6 8156
10f2d63a 8157
698dcdb6
VZ
8158
8159echo $ac_n "checking for toolkit""... $ac_c" 1>&6
a1622950 8160echo "configure:8161: checking for toolkit" >&5
10f2d63a
VZ
8161
8162if test "$wxUSE_GUI" = "yes"; then
8163
3a922bb4
RL
8164 if test "$USE_BEOS" = 1; then
8165 { echo "configure: error: BeOS GUI is not supported yet, use --disable-gui" 1>&2; exit 1; }
8166 fi
b12915c1 8167
3a922bb4
RL
8168 if test "$TOOLKIT_GIVEN" = 1; then
8169 for toolkit in `echo $ALL_TOOLKITS`; do
8170 var=wxUSE_$toolkit
8171 eval "value=\$${var}"
8172 eval "$var=`echo \$value | sed -e "s/yes/1/" -e "s/no/0/"`"
8173 done
10f2d63a 8174 else
3a922bb4
RL
8175 for toolkit in `echo $ALL_TOOLKITS`; do
8176 if test "$has_toolkit_in_cache" != 1; then
8177 var=DEFAULT_DEFAULT_wxUSE_$toolkit
8178 else
8179 var=DEFAULT_wxUSE_$toolkit
8180 fi
8181 eval "wxUSE_$toolkit=\$${var}"
8182 done
10f2d63a 8183 fi
10f2d63a 8184
3a922bb4 8185 NUM_TOOLKITS=`expr ${wxUSE_GTK:-0} + ${wxUSE_MOTIF:-0} + ${wxUSE_MAC:-0} \
1725144d 8186 + ${wxUSE_WINE:-0} + ${wxUSE_MSW:-0} + ${wxUSE_MGL:-0} + ${wxUSE_MICROWIN:-0}`
10f2d63a 8187
3a922bb4 8188 case "${host}" in
6fa882bd 8189 *-pc-os2_emx | *-pc-os2-emx )
3a922bb4
RL
8190 # PATH_IFS is autodetected by OS/2's configure (usually ';')
8191 NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}`
8192 LEX_STEM="lexyy"
8193 ;;
8194 *)
8195 PATH_IFS=':'
8196 LEX_STEM="lex.yy"
8197 ;;
8198 esac
10f2d63a 8199
3a922bb4
RL
8200 case "$NUM_TOOLKITS" in
8201 1)
8202 ;;
8203 0)
8204 { echo "configure: error: Please specify a toolkit - cannot determine the default for ${host}" 1>&2; exit 1; }
8205 ;;
8206 *)
8207 { echo "configure: error: Please specify at most one toolkit (may be some are cached?)" 1>&2; exit 1; }
8208 esac
10f2d63a 8209
3a922bb4
RL
8210 for toolkit in `echo $ALL_TOOLKITS`; do
8211 var=wxUSE_$toolkit
8212 eval "value=\$${var}"
8213 if test "x$value" != x; then
8214 cache_var=CACHE_$toolkit
8215 eval "cache=\$${cache_var}"
8216 if test "$cache" = 1; then
8217 echo "$var=$value" >> ${wx_arg_cache_file}
8218 fi
8219 if test "$value" = 1; then
8220 toolkit_echo=`echo $toolkit | tr [A-Z] [a-z]`
8221 echo "$ac_t""$toolkit_echo" 1>&6
8222 fi
8223 fi
8224 done
10f2d63a 8225else
cf27ef00 8226 PATH_IFS=':'
3a922bb4 8227 echo "$ac_t""base ($host_alias hosted) only" 1>&6
10f2d63a
VZ
8228fi
8229
698dcdb6
VZ
8230
8231cat > confcache <<\EOF
10f2d63a
VZ
8232# This file is a shell script that caches the results of configure
8233# tests run on this system so they can be shared between configure
698dcdb6
VZ
8234# scripts and configure runs. It is not useful on other systems.
8235# If it contains results you don't want to keep, you may remove or edit it.
10f2d63a 8236#
698dcdb6
VZ
8237# By default, configure uses ./config.cache as the cache file,
8238# creating it if it does not exist already. You can give configure
8239# the --cache-file=FILE option to use a different cache file; that is
8240# what configure does when it calls configure scripts in
8241# subdirectories, so they share the cache.
8242# Giving --cache-file=/dev/null disables caching, for debugging configure.
8243# config.status only pays attention to the cache file if you give it the
8244# --recheck option to rerun configure.
10f2d63a 8245#
698dcdb6 8246EOF
10f2d63a
VZ
8247# The following way of writing the cache mishandles newlines in values,
8248# but we know of no workaround that is simple, portable, and efficient.
8249# So, don't put newlines in cache variables' values.
8250# Ultrix sh set writes to stderr and can't be redirected directly,
8251# and sets the high bit in the cache file unless we assign to the vars.
698dcdb6
VZ
8252(set) 2>&1 |
8253 case `(ac_space=' '; set | grep ac_space) 2>&1` in
8254 *ac_space=\ *)
8255 # `set' does not quote correctly, so add quotes (double-quote substitution
8256 # turns \\\\ into \\, and sed turns \\ into \).
8257 sed -n \
8258 -e "s/'/'\\\\''/g" \
8259 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
8260 ;;
8261 *)
8262 # `set' quotes correctly as required by POSIX, so do not add quotes.
8263 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
8264 ;;
8265 esac >> confcache
8266if cmp -s $cache_file confcache; then
8267 :
8268else
10f2d63a 8269 if test -w $cache_file; then
698dcdb6
VZ
8270 echo "updating cache $cache_file"
8271 cat confcache > $cache_file
10f2d63a
VZ
8272 else
8273 echo "not updating unwritable cache $cache_file"
8274 fi
8275fi
8276rm -f confcache
8277
698dcdb6 8278
e59890c3 8279if test "$build" != "$host" ; then
f9bc1684 8280 if test "$USE_WIN32" = 1 -o "$USE_DOS" = 1 ; then
3a922bb4
RL
8281 CC=$host_alias-gcc
8282 CXX=$host_alias-c++
8283 AR=$host_alias-ar
8284 RANLIB=$host_alias-ranlib
8285 DLLTOOL=$host_alias-dlltool
8286 RESCOMP=$host_alias-windres
8287 LD=$host_alias-ld
8288 NM=$host_alias-nm
8289 STRIP=$host_alias-strip
8290 else
8291 { echo "configure: error: $build_alias -> $host_alias cross compilation not supported yet." 1>&2; exit 1; }
8292 fi
10f2d63a
VZ
8293fi
8294
698dcdb6 8295# Extract the first word of "gcc", so it can be a program name with args.
1e487827 8296set dummy gcc; ac_word=$2
698dcdb6 8297echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
a1622950 8298echo "configure:8299: checking for $ac_word" >&5
698dcdb6
VZ
8299if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
8300 echo $ac_n "(cached) $ac_c" 1>&6
6232543b
VS
8301else
8302 if test -n "$CC"; then
8303 ac_cv_prog_CC="$CC" # Let the user override the test.
10f2d63a 8304else
698dcdb6
VZ
8305 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8306 ac_dummy="$PATH"
8307 for ac_dir in $ac_dummy; do
8308 test -z "$ac_dir" && ac_dir=.
8309 if test -f $ac_dir/$ac_word; then
8310 ac_cv_prog_CC="gcc"
8311 break
8312 fi
8313 done
8314 IFS="$ac_save_ifs"
10f2d63a 8315fi
6232543b 8316fi
698dcdb6 8317CC="$ac_cv_prog_CC"
6232543b 8318if test -n "$CC"; then
698dcdb6 8319 echo "$ac_t""$CC" 1>&6
1e487827 8320else
698dcdb6 8321 echo "$ac_t""no" 1>&6
1e487827 8322fi
6232543b 8323
1e487827
VS
8324if test -z "$CC"; then
8325 # Extract the first word of "cc", so it can be a program name with args.
8326set dummy cc; ac_word=$2
698dcdb6 8327echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
a1622950 8328echo "configure:8329: checking for $ac_word" >&5
698dcdb6
VZ
8329if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
8330 echo $ac_n "(cached) $ac_c" 1>&6
1e487827
VS
8331else
8332 if test -n "$CC"; then
8333 ac_cv_prog_CC="$CC" # Let the user override the test.
8334else
698dcdb6 8335 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1e487827 8336 ac_prog_rejected=no
698dcdb6
VZ
8337 ac_dummy="$PATH"
8338 for ac_dir in $ac_dummy; do
8339 test -z "$ac_dir" && ac_dir=.
8340 if test -f $ac_dir/$ac_word; then
8341 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
8342 ac_prog_rejected=yes
8343 continue
8344 fi
8345 ac_cv_prog_CC="cc"
8346 break
8347 fi
8348 done
8349 IFS="$ac_save_ifs"
1e487827
VS
8350if test $ac_prog_rejected = yes; then
8351 # We found a bogon in the path, so make sure we never use it.
8352 set dummy $ac_cv_prog_CC
8353 shift
698dcdb6 8354 if test $# -gt 0; then
1e487827
VS
8355 # We chose a different compiler from the bogus one.
8356 # However, it has the same basename, so the bogon will be chosen
8357 # first if we set CC to just the basename; use the full file name.
8358 shift
698dcdb6 8359 set dummy "$ac_dir/$ac_word" "$@"
1e487827
VS
8360 shift
8361 ac_cv_prog_CC="$@"
703e0a69 8362 fi
1e487827
VS
8363fi
8364fi
8365fi
698dcdb6 8366CC="$ac_cv_prog_CC"
1e487827 8367if test -n "$CC"; then
698dcdb6 8368 echo "$ac_t""$CC" 1>&6
703e0a69 8369else
698dcdb6 8370 echo "$ac_t""no" 1>&6
703e0a69 8371fi
1e487827 8372
698dcdb6
VZ
8373 if test -z "$CC"; then
8374 case "`uname -s`" in
8375 *win32* | *WIN32*)
8376 # Extract the first word of "cl", so it can be a program name with args.
8377set dummy cl; ac_word=$2
8378echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
a1622950 8379echo "configure:8380: checking for $ac_word" >&5
698dcdb6
VZ
8380if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
8381 echo $ac_n "(cached) $ac_c" 1>&6
1e487827
VS
8382else
8383 if test -n "$CC"; then
8384 ac_cv_prog_CC="$CC" # Let the user override the test.
703e0a69 8385else
698dcdb6
VZ
8386 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8387 ac_dummy="$PATH"
8388 for ac_dir in $ac_dummy; do
8389 test -z "$ac_dir" && ac_dir=.
8390 if test -f $ac_dir/$ac_word; then
8391 ac_cv_prog_CC="cl"
8392 break
8393 fi
8394 done
8395 IFS="$ac_save_ifs"
703e0a69 8396fi
1e487827 8397fi
698dcdb6 8398CC="$ac_cv_prog_CC"
1e487827 8399if test -n "$CC"; then
698dcdb6 8400 echo "$ac_t""$CC" 1>&6
1e487827 8401else
698dcdb6 8402 echo "$ac_t""no" 1>&6
1e487827 8403fi
698dcdb6
VZ
8404 ;;
8405 esac
8406 fi
8407 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1e487827
VS
8408fi
8409
698dcdb6 8410echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
a1622950 8411echo "configure:8412: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1e487827 8412
698dcdb6
VZ
8413ac_ext=c
8414# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8415ac_cpp='$CPP $CPPFLAGS'
8416ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8417ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8418cross_compiling=$ac_cv_prog_cc_cross
6232543b 8419
698dcdb6 8420cat > conftest.$ac_ext << EOF
1e487827 8421
a1622950 8422#line 8423 "configure"
1e487827
VS
8423#include "confdefs.h"
8424
698dcdb6
VZ
8425main(){return(0);}
8426EOF
a1622950 8427if { (eval echo configure:8428: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
8428 ac_cv_prog_cc_works=yes
8429 # If we can't run a trivial program, we are probably using a cross compiler.
8430 if (./conftest; exit) 2>/dev/null; then
8431 ac_cv_prog_cc_cross=no
8432 else
8433 ac_cv_prog_cc_cross=yes
8434 fi
8435else
8436 echo "configure: failed program was:" >&5
8437 cat conftest.$ac_ext >&5
8438 ac_cv_prog_cc_works=no
8439fi
8440rm -fr conftest*
8441ac_ext=c
8442# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8443ac_cpp='$CPP $CPPFLAGS'
8444ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8445ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8446cross_compiling=$ac_cv_prog_cc_cross
8447
8448echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
8449if test $ac_cv_prog_cc_works = no; then
8450 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
8451fi
8452echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
a1622950 8453echo "configure:8454: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
698dcdb6
VZ
8454echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
8455cross_compiling=$ac_cv_prog_cc_cross
8456
8457echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
a1622950 8458echo "configure:8459: checking whether we are using GNU C" >&5
698dcdb6
VZ
8459if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
8460 echo $ac_n "(cached) $ac_c" 1>&6
8461else
8462 cat > conftest.c <<EOF
8463#ifdef __GNUC__
8464 yes;
1e487827 8465#endif
698dcdb6 8466EOF
a1622950 8467if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:8468: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
698dcdb6
VZ
8468 ac_cv_prog_gcc=yes
8469else
8470 ac_cv_prog_gcc=no
8471fi
8472fi
1e487827 8473
698dcdb6 8474echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1e487827 8475
698dcdb6
VZ
8476if test $ac_cv_prog_gcc = yes; then
8477 GCC=yes
8478else
8479 GCC=
8480fi
1e487827 8481
698dcdb6
VZ
8482ac_test_CFLAGS="${CFLAGS+set}"
8483ac_save_CFLAGS="$CFLAGS"
8484CFLAGS=
8485echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
a1622950 8486echo "configure:8487: checking whether ${CC-cc} accepts -g" >&5
698dcdb6
VZ
8487if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
8488 echo $ac_n "(cached) $ac_c" 1>&6
8489else
8490 echo 'void f(){}' > conftest.c
8491if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
10f2d63a
VZ
8492 ac_cv_prog_cc_g=yes
8493else
698dcdb6 8494 ac_cv_prog_cc_g=no
10f2d63a 8495fi
698dcdb6
VZ
8496rm -f conftest*
8497
10f2d63a 8498fi
698dcdb6
VZ
8499
8500echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
10f2d63a 8501if test "$ac_test_CFLAGS" = set; then
698dcdb6 8502 CFLAGS="$ac_save_CFLAGS"
10f2d63a
VZ
8503elif test $ac_cv_prog_cc_g = yes; then
8504 if test "$GCC" = yes; then
8505 CFLAGS="-g -O2"
8506 else
8507 CFLAGS="-g"
8508 fi
8509else
8510 if test "$GCC" = yes; then
8511 CFLAGS="-O2"
8512 else
8513 CFLAGS=
8514 fi
8515fi
8516
8517
8518CFLAGS=`echo "$CFLAGS" | sed 's/-g//g'`
8519
698dcdb6 8520echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
a1622950 8521echo "configure:8522: checking how to run the C preprocessor" >&5
10f2d63a
VZ
8522# On Suns, sometimes $CPP names a directory.
8523if test -n "$CPP" && test -d "$CPP"; then
8524 CPP=
8525fi
8526if test -z "$CPP"; then
698dcdb6
VZ
8527if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
8528 echo $ac_n "(cached) $ac_c" 1>&6
8529else
8530 # This must be in double quotes, not single quotes, because CPP may get
8531 # substituted into the Makefile and "${CC-cc}" will confuse make.
8532 CPP="${CC-cc} -E"
10f2d63a 8533 # On the NeXT, cc -E runs the code through the compiler's parser,
698dcdb6
VZ
8534 # not just through cpp.
8535 cat > conftest.$ac_ext <<EOF
a1622950 8536#line 8537 "configure"
10f2d63a
VZ
8537#include "confdefs.h"
8538#include <assert.h>
698dcdb6
VZ
8539Syntax Error
8540EOF
8541ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
a1622950 8542{ (eval echo configure:8543: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
8543ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8544if test -z "$ac_err"; then
10f2d63a
VZ
8545 :
8546else
698dcdb6
VZ
8547 echo "$ac_err" >&5
8548 echo "configure: failed program was:" >&5
10f2d63a 8549 cat conftest.$ac_ext >&5
698dcdb6
VZ
8550 rm -rf conftest*
8551 CPP="${CC-cc} -E -traditional-cpp"
8552 cat > conftest.$ac_ext <<EOF
a1622950 8553#line 8554 "configure"
10f2d63a 8554#include "confdefs.h"
698dcdb6
VZ
8555#include <assert.h>
8556Syntax Error
8557EOF
8558ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
a1622950 8559{ (eval echo configure:8560: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
8560ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8561if test -z "$ac_err"; then
8562 :
10f2d63a 8563else
698dcdb6
VZ
8564 echo "$ac_err" >&5
8565 echo "configure: failed program was:" >&5
10f2d63a 8566 cat conftest.$ac_ext >&5
698dcdb6
VZ
8567 rm -rf conftest*
8568 CPP="${CC-cc} -nologo -E"
8569 cat > conftest.$ac_ext <<EOF
a1622950 8570#line 8571 "configure"
10f2d63a
VZ
8571#include "confdefs.h"
8572#include <assert.h>
698dcdb6
VZ
8573Syntax Error
8574EOF
8575ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
a1622950 8576{ (eval echo configure:8577: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
8577ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8578if test -z "$ac_err"; then
10f2d63a
VZ
8579 :
8580else
698dcdb6
VZ
8581 echo "$ac_err" >&5
8582 echo "configure: failed program was:" >&5
10f2d63a 8583 cat conftest.$ac_ext >&5
698dcdb6
VZ
8584 rm -rf conftest*
8585 CPP=/lib/cpp
10f2d63a 8586fi
698dcdb6 8587rm -f conftest*
10f2d63a 8588fi
698dcdb6 8589rm -f conftest*
703e0a69 8590fi
698dcdb6
VZ
8591rm -f conftest*
8592 ac_cv_prog_CPP="$CPP"
8593fi
8594 CPP="$ac_cv_prog_CPP"
10f2d63a 8595else
698dcdb6 8596 ac_cv_prog_CPP="$CPP"
10f2d63a 8597fi
698dcdb6 8598echo "$ac_t""$CPP" 1>&6
10f2d63a 8599
698dcdb6
VZ
8600if test $ac_cv_prog_gcc = yes; then
8601 echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
a1622950 8602echo "configure:8603: checking whether ${CC-cc} needs -traditional" >&5
698dcdb6
VZ
8603if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
8604 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a
VZ
8605else
8606 ac_pattern="Autoconf.*'x'"
698dcdb6 8607 cat > conftest.$ac_ext <<EOF
a1622950 8608#line 8609 "configure"
10f2d63a
VZ
8609#include "confdefs.h"
8610#include <sgtty.h>
8611Autoconf TIOCGETP
698dcdb6 8612EOF
10f2d63a
VZ
8613if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8614 egrep "$ac_pattern" >/dev/null 2>&1; then
698dcdb6 8615 rm -rf conftest*
10f2d63a
VZ
8616 ac_cv_prog_gcc_traditional=yes
8617else
698dcdb6 8618 rm -rf conftest*
10f2d63a
VZ
8619 ac_cv_prog_gcc_traditional=no
8620fi
8621rm -f conftest*
8622
698dcdb6 8623
10f2d63a 8624 if test $ac_cv_prog_gcc_traditional = no; then
698dcdb6 8625 cat > conftest.$ac_ext <<EOF
a1622950 8626#line 8627 "configure"
10f2d63a
VZ
8627#include "confdefs.h"
8628#include <termio.h>
8629Autoconf TCGETA
698dcdb6 8630EOF
10f2d63a
VZ
8631if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8632 egrep "$ac_pattern" >/dev/null 2>&1; then
698dcdb6 8633 rm -rf conftest*
10f2d63a
VZ
8634 ac_cv_prog_gcc_traditional=yes
8635fi
8636rm -f conftest*
8637
8638 fi
8639fi
698dcdb6
VZ
8640
8641echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6
10f2d63a
VZ
8642 if test $ac_cv_prog_gcc_traditional = yes; then
8643 CC="$CC -traditional"
8644 fi
8645fi
8646
703e0a69 8647
698dcdb6
VZ
8648
8649ac_ext=C
8650# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1e487827 8651ac_cpp='$CXXCPP $CPPFLAGS'
698dcdb6
VZ
8652ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8653ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8654cross_compiling=$ac_cv_prog_cxx_cross
8655
8656
8657for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
8658do
8659# Extract the first word of "$ac_prog", so it can be a program name with args.
8660set dummy $ac_prog; ac_word=$2
8661echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
a1622950 8662echo "configure:8663: checking for $ac_word" >&5
698dcdb6
VZ
8663if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
8664 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a
VZ
8665else
8666 if test -n "$CXX"; then
8667 ac_cv_prog_CXX="$CXX" # Let the user override the test.
8668else
698dcdb6
VZ
8669 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8670 ac_dummy="$PATH"
8671 for ac_dir in $ac_dummy; do
8672 test -z "$ac_dir" && ac_dir=.
8673 if test -f $ac_dir/$ac_word; then
8674 ac_cv_prog_CXX="$ac_prog"
8675 break
8676 fi
8677 done
8678 IFS="$ac_save_ifs"
10f2d63a
VZ
8679fi
8680fi
698dcdb6 8681CXX="$ac_cv_prog_CXX"
10f2d63a 8682if test -n "$CXX"; then
698dcdb6 8683 echo "$ac_t""$CXX" 1>&6
10f2d63a 8684else
698dcdb6 8685 echo "$ac_t""no" 1>&6
10f2d63a
VZ
8686fi
8687
698dcdb6 8688test -n "$CXX" && break
10f2d63a 8689done
698dcdb6 8690test -n "$CXX" || CXX="gcc"
10f2d63a
VZ
8691
8692
698dcdb6 8693echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
a1622950 8694echo "configure:8695: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
10f2d63a 8695
698dcdb6
VZ
8696ac_ext=C
8697# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8698ac_cpp='$CXXCPP $CPPFLAGS'
8699ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8700ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8701cross_compiling=$ac_cv_prog_cxx_cross
703e0a69 8702
698dcdb6
VZ
8703cat > conftest.$ac_ext << EOF
8704
a1622950 8705#line 8706 "configure"
10f2d63a
VZ
8706#include "confdefs.h"
8707
698dcdb6
VZ
8708int main(){return(0);}
8709EOF
a1622950 8710if { (eval echo configure:8711: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
8711 ac_cv_prog_cxx_works=yes
8712 # If we can't run a trivial program, we are probably using a cross compiler.
8713 if (./conftest; exit) 2>/dev/null; then
8714 ac_cv_prog_cxx_cross=no
8715 else
8716 ac_cv_prog_cxx_cross=yes
8717 fi
8718else
8719 echo "configure: failed program was:" >&5
8720 cat conftest.$ac_ext >&5
8721 ac_cv_prog_cxx_works=no
8722fi
8723rm -fr conftest*
8724ac_ext=C
8725# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8726ac_cpp='$CXXCPP $CPPFLAGS'
8727ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8728ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8729cross_compiling=$ac_cv_prog_cxx_cross
8730
8731echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
8732if test $ac_cv_prog_cxx_works = no; then
8733 { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
8734fi
8735echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
a1622950 8736echo "configure:8737: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
698dcdb6
VZ
8737echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
8738cross_compiling=$ac_cv_prog_cxx_cross
8739
8740echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
a1622950 8741echo "configure:8742: checking whether we are using GNU C++" >&5
698dcdb6
VZ
8742if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
8743 echo $ac_n "(cached) $ac_c" 1>&6
8744else
8745 cat > conftest.C <<EOF
8746#ifdef __GNUC__
8747 yes;
10f2d63a 8748#endif
698dcdb6 8749EOF
a1622950 8750if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:8751: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
698dcdb6
VZ
8751 ac_cv_prog_gxx=yes
8752else
8753 ac_cv_prog_gxx=no
8754fi
8755fi
10f2d63a 8756
698dcdb6 8757echo "$ac_t""$ac_cv_prog_gxx" 1>&6
10f2d63a 8758
698dcdb6
VZ
8759if test $ac_cv_prog_gxx = yes; then
8760 GXX=yes
8761else
8762 GXX=
8763fi
10f2d63a 8764
698dcdb6
VZ
8765ac_test_CXXFLAGS="${CXXFLAGS+set}"
8766ac_save_CXXFLAGS="$CXXFLAGS"
8767CXXFLAGS=
8768echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
a1622950 8769echo "configure:8770: checking whether ${CXX-g++} accepts -g" >&5
698dcdb6
VZ
8770if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
8771 echo $ac_n "(cached) $ac_c" 1>&6
8772else
8773 echo 'void f(){}' > conftest.cc
8774if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
10f2d63a
VZ
8775 ac_cv_prog_cxx_g=yes
8776else
698dcdb6 8777 ac_cv_prog_cxx_g=no
10f2d63a 8778fi
698dcdb6
VZ
8779rm -f conftest*
8780
10f2d63a 8781fi
698dcdb6
VZ
8782
8783echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
10f2d63a 8784if test "$ac_test_CXXFLAGS" = set; then
698dcdb6 8785 CXXFLAGS="$ac_save_CXXFLAGS"
10f2d63a
VZ
8786elif test $ac_cv_prog_cxx_g = yes; then
8787 if test "$GXX" = yes; then
8788 CXXFLAGS="-g -O2"
8789 else
8790 CXXFLAGS="-g"
8791 fi
8792else
8793 if test "$GXX" = yes; then
8794 CXXFLAGS="-O2"
8795 else
8796 CXXFLAGS=
8797 fi
8798fi
8799
8800
10f2d63a
VZ
8801CXXFLAGS=`echo "$CXXFLAGS" | sed 's/-g//g'`
8802
8803ac_ext=c
698dcdb6 8804# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10f2d63a 8805ac_cpp='$CPP $CPPFLAGS'
698dcdb6
VZ
8806ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8807ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8808cross_compiling=$ac_cv_prog_cc_cross
8809
8810
8811# Extract the first word of "ranlib", so it can be a program name with args.
8812set dummy ranlib; ac_word=$2
8813echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
a1622950 8814echo "configure:8815: checking for $ac_word" >&5
698dcdb6
VZ
8815if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
8816 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a
VZ
8817else
8818 if test -n "$RANLIB"; then
8819 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8820else
698dcdb6
VZ
8821 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8822 ac_dummy="$PATH"
8823 for ac_dir in $ac_dummy; do
8824 test -z "$ac_dir" && ac_dir=.
8825 if test -f $ac_dir/$ac_word; then
8826 ac_cv_prog_RANLIB="ranlib"
8827 break
8828 fi
8829 done
8830 IFS="$ac_save_ifs"
8831 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
10f2d63a
VZ
8832fi
8833fi
698dcdb6 8834RANLIB="$ac_cv_prog_RANLIB"
10f2d63a 8835if test -n "$RANLIB"; then
698dcdb6 8836 echo "$ac_t""$RANLIB" 1>&6
10f2d63a 8837else
698dcdb6 8838 echo "$ac_t""no" 1>&6
10f2d63a
VZ
8839fi
8840
8841
8842# Extract the first word of "ar", so it can be a program name with args.
8843set dummy ar; ac_word=$2
698dcdb6 8844echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
a1622950 8845echo "configure:8846: checking for $ac_word" >&5
698dcdb6
VZ
8846if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
8847 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a
VZ
8848else
8849 if test -n "$AR"; then
8850 ac_cv_prog_AR="$AR" # Let the user override the test.
8851else
698dcdb6
VZ
8852 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8853 ac_dummy="$PATH"
8854 for ac_dir in $ac_dummy; do
8855 test -z "$ac_dir" && ac_dir=.
8856 if test -f $ac_dir/$ac_word; then
8857 ac_cv_prog_AR="ar"
8858 break
8859 fi
8860 done
8861 IFS="$ac_save_ifs"
10f2d63a
VZ
8862 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
8863fi
8864fi
698dcdb6 8865AR="$ac_cv_prog_AR"
10f2d63a 8866if test -n "$AR"; then
698dcdb6 8867 echo "$ac_t""$AR" 1>&6
10f2d63a 8868else
698dcdb6 8869 echo "$ac_t""no" 1>&6
10f2d63a
VZ
8870fi
8871
698dcdb6 8872
6054113a 8873# Find a good install program. We prefer a C program (faster),
10f2d63a
VZ
8874# so one script is as good as another. But avoid the broken or
8875# incompatible versions:
8876# SysV /etc/install, /usr/sbin/install
8877# SunOS /usr/etc/install
8878# IRIX /sbin/install
8879# AIX /bin/install
8880# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
8881# AFS /usr/afsws/bin/install, which mishandles nonexistent args
8882# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
8883# ./install, which can be erroneously created by make from ./install.sh.
698dcdb6 8884echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
a1622950 8885echo "configure:8886: checking for a BSD compatible install" >&5
10f2d63a 8886if test -z "$INSTALL"; then
698dcdb6
VZ
8887if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
8888 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 8889else
698dcdb6 8890 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
10f2d63a
VZ
8891 for ac_dir in $PATH; do
8892 # Account for people who put trailing slashes in PATH elements.
698dcdb6
VZ
8893 case "$ac_dir/" in
8894 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
10f2d63a
VZ
8895 *)
8896 # OSF1 and SCO ODT 3.0 have their own names for install.
8897 # Don't use installbsd from OSF since it installs stuff as root
8898 # by default.
8899 for ac_prog in ginstall scoinst install; do
698dcdb6 8900 if test -f $ac_dir/$ac_prog; then
10f2d63a 8901 if test $ac_prog = install &&
698dcdb6 8902 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
10f2d63a
VZ
8903 # AIX install. It has an incompatible calling convention.
8904 :
8905 else
8906 ac_cv_path_install="$ac_dir/$ac_prog -c"
8907 break 2
8908 fi
8909 fi
8910 done
8911 ;;
8912 esac
8913 done
698dcdb6 8914 IFS="$ac_save_IFS"
10f2d63a
VZ
8915
8916fi
8917 if test "${ac_cv_path_install+set}" = set; then
698dcdb6 8918 INSTALL="$ac_cv_path_install"
10f2d63a
VZ
8919 else
8920 # As a last resort, use the slow shell script. We don't cache a
8921 # path for INSTALL within a source directory, because that will
8922 # break other packages using the cache if that directory is
8923 # removed, or if the path is relative.
698dcdb6 8924 INSTALL="$ac_install_sh"
10f2d63a
VZ
8925 fi
8926fi
698dcdb6 8927echo "$ac_t""$INSTALL" 1>&6
10f2d63a
VZ
8928
8929# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
8930# It thinks the first close brace ends the variable substitution.
8931test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
8932
698dcdb6 8933test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
10f2d63a
VZ
8934
8935test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
8936
6054113a
GD
8937case "${host}" in
8938
b5853384 8939 powerpc-*-darwin* )
eb99ae0b
GD
8940 INSTALL_PROGRAM="cp -fp"
8941 INSTALL_DATA="cp -fp"
6054113a
GD
8942 ;;
8943 *)
8944 ;;
d6853540 8945esac
698dcdb6 8946
10f2d63a
VZ
8947# Extract the first word of "strip", so it can be a program name with args.
8948set dummy strip; ac_word=$2
698dcdb6 8949echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
a1622950 8950echo "configure:8951: checking for $ac_word" >&5
698dcdb6
VZ
8951if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
8952 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a
VZ
8953else
8954 if test -n "$STRIP"; then
8955 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8956else
698dcdb6
VZ
8957 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8958 ac_dummy="$PATH"
8959 for ac_dir in $ac_dummy; do
8960 test -z "$ac_dir" && ac_dir=.
8961 if test -f $ac_dir/$ac_word; then
8962 ac_cv_prog_STRIP="strip"
8963 break
8964 fi
8965 done
8966 IFS="$ac_save_ifs"
10f2d63a
VZ
8967 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="true"
8968fi
8969fi
698dcdb6 8970STRIP="$ac_cv_prog_STRIP"
10f2d63a 8971if test -n "$STRIP"; then
698dcdb6 8972 echo "$ac_t""$STRIP" 1>&6
10f2d63a 8973else
698dcdb6 8974 echo "$ac_t""no" 1>&6
10f2d63a
VZ
8975fi
8976
698dcdb6
VZ
8977
8978echo $ac_n "checking make for VPATH support""... $ac_c" 1>&6
a1622950 8979echo "configure:8980: checking make for VPATH support" >&5
10f2d63a
VZ
8980cat - << EOF > confMake
8981check : file
8982 cp \$? \$@
8983 cp \$? final_file
8984EOF
8985
8986if test ! -d sub ; then
8987 mkdir sub
8988fi
8989echo dummy > sub/file
f6bcfd97 8990${MAKE-make} -f confMake VPATH=sub 2>&5 > /dev/null
10f2d63a
VZ
8991RESULT=$?
8992rm -f sub/file check final_file confMake
8993rmdir sub
8994if test "$RESULT" = 0; then
698dcdb6 8995 echo "$ac_t""yes" 1>&6
10f2d63a 8996else
698dcdb6
VZ
8997 echo "$ac_t""no" 1>&6
8998 { echo "configure: error:
1e487827
VS
8999You need a make-utility that is able to use the variable
9000VPATH correctly.
9001If your version of make does not support VPATH correctly,
9002please install GNU-make (possibly as gmake), and start
9003configure with the following command:
9004export MAKE=gmake; ./configure for sh-type shells
9005setenv MAKE gmake; ./configure for csh-type shells
9006Also please do remember to use gmake in this case every time
9007you are trying to compile.
698dcdb6 9008" 1>&2; exit 1; }
10f2d63a
VZ
9009fi
9010
9011for ac_prog in 'bison -y' byacc
9012do
698dcdb6 9013# Extract the first word of "$ac_prog", so it can be a program name with args.
10f2d63a 9014set dummy $ac_prog; ac_word=$2
698dcdb6 9015echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
a1622950 9016echo "configure:9017: checking for $ac_word" >&5
698dcdb6
VZ
9017if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
9018 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a
VZ
9019else
9020 if test -n "$YACC"; then
9021 ac_cv_prog_YACC="$YACC" # Let the user override the test.
9022else
698dcdb6
VZ
9023 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9024 ac_dummy="$PATH"
9025 for ac_dir in $ac_dummy; do
9026 test -z "$ac_dir" && ac_dir=.
9027 if test -f $ac_dir/$ac_word; then
9028 ac_cv_prog_YACC="$ac_prog"
9029 break
9030 fi
9031 done
9032 IFS="$ac_save_ifs"
10f2d63a
VZ
9033fi
9034fi
698dcdb6 9035YACC="$ac_cv_prog_YACC"
10f2d63a 9036if test -n "$YACC"; then
698dcdb6 9037 echo "$ac_t""$YACC" 1>&6
10f2d63a 9038else
698dcdb6 9039 echo "$ac_t""no" 1>&6
10f2d63a
VZ
9040fi
9041
698dcdb6 9042test -n "$YACC" && break
10f2d63a
VZ
9043done
9044test -n "$YACC" || YACC="yacc"
9045
698dcdb6
VZ
9046
9047# Extract the first word of "flex", so it can be a program name with args.
9048set dummy flex; ac_word=$2
9049echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
a1622950 9050echo "configure:9051: checking for $ac_word" >&5
698dcdb6
VZ
9051if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
9052 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a
VZ
9053else
9054 if test -n "$LEX"; then
9055 ac_cv_prog_LEX="$LEX" # Let the user override the test.
9056else
698dcdb6
VZ
9057 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9058 ac_dummy="$PATH"
9059 for ac_dir in $ac_dummy; do
9060 test -z "$ac_dir" && ac_dir=.
9061 if test -f $ac_dir/$ac_word; then
9062 ac_cv_prog_LEX="flex"
9063 break
9064 fi
9065 done
9066 IFS="$ac_save_ifs"
9067 test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex"
10f2d63a
VZ
9068fi
9069fi
698dcdb6 9070LEX="$ac_cv_prog_LEX"
10f2d63a 9071if test -n "$LEX"; then
698dcdb6 9072 echo "$ac_t""$LEX" 1>&6
10f2d63a 9073else
698dcdb6 9074 echo "$ac_t""no" 1>&6
10f2d63a
VZ
9075fi
9076
9077if test -z "$LEXLIB"
9078then
698dcdb6
VZ
9079 case "$LEX" in
9080 flex*) ac_lib=fl ;;
9081 *) ac_lib=l ;;
9082 esac
9083 echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
a1622950 9084echo "configure:9085: checking for yywrap in -l$ac_lib" >&5
698dcdb6
VZ
9085ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
9086if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9087 echo $ac_n "(cached) $ac_c" 1>&6
9088else
9089 ac_save_LIBS="$LIBS"
9090LIBS="-l$ac_lib $LIBS"
9091cat > conftest.$ac_ext <<EOF
a1622950 9092#line 9093 "configure"
10f2d63a
VZ
9093#include "confdefs.h"
9094/* Override any gcc2 internal prototype to avoid an error. */
9095/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
9096 builtin and then its argument prototype would still apply. */
9097char yywrap();
10f2d63a 9098
698dcdb6
VZ
9099int main() {
9100yywrap()
9101; return 0; }
9102EOF
a1622950 9103if { (eval echo configure:9104: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
9104 rm -rf conftest*
9105 eval "ac_cv_lib_$ac_lib_var=yes"
10f2d63a 9106else
698dcdb6
VZ
9107 echo "configure: failed program was:" >&5
9108 cat conftest.$ac_ext >&5
9109 rm -rf conftest*
9110 eval "ac_cv_lib_$ac_lib_var=no"
10f2d63a 9111fi
698dcdb6
VZ
9112rm -f conftest*
9113LIBS="$ac_save_LIBS"
9114
10f2d63a 9115fi
698dcdb6
VZ
9116if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9117 echo "$ac_t""yes" 1>&6
9118 LEXLIB="-l$ac_lib"
9119else
9120 echo "$ac_t""no" 1>&6
10f2d63a
VZ
9121fi
9122
9123fi
9124
9125
698dcdb6 9126echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
a1622950 9127echo "configure:9128: checking whether ln -s works" >&5
698dcdb6
VZ
9128if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
9129 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 9130else
698dcdb6
VZ
9131 rm -f conftestdata
9132if ln -s X conftestdata 2>/dev/null
9133then
9134 rm -f conftestdata
9135 ac_cv_prog_LN_S="ln -s"
10f2d63a 9136else
698dcdb6 9137 ac_cv_prog_LN_S=ln
10f2d63a
VZ
9138fi
9139fi
698dcdb6
VZ
9140LN_S="$ac_cv_prog_LN_S"
9141if test "$ac_cv_prog_LN_S" = "ln -s"; then
9142 echo "$ac_t""yes" 1>&6
10f2d63a 9143else
698dcdb6 9144 echo "$ac_t""no" 1>&6
10f2d63a
VZ
9145fi
9146
9147
9148
9149SEARCH_INCLUDE="\
9150 /usr/local/include \
9151 \
9152 /usr/Motif-1.2/include \
9153 /usr/Motif-2.1/include \
9154 \
9155 /usr/include/Motif1.2 \
9156 /opt/xpm/include/X11 \
9157 /opt/GBxpm/include/ \
9158 /opt/GBxpm/X11/include/ \
9159 \
9160 /usr/Motif1.2/include \
9161 /usr/dt/include \
afc31813
VZ
9162 /usr/openwin/include \
9163 \
10f2d63a
VZ
9164 /usr/include/Xm \
9165 \
9166 /usr/X11R6/include \
afc31813 9167 /usr/X11R6.4/include \
10f2d63a
VZ
9168 /usr/X11R5/include \
9169 /usr/X11R4/include \
9170 \
10f2d63a
VZ
9171 /usr/include/X11R6 \
9172 /usr/include/X11R5 \
9173 /usr/include/X11R4 \
9174 \
9175 /usr/local/X11R6/include \
9176 /usr/local/X11R5/include \
9177 /usr/local/X11R4/include \
9178 \
9179 /usr/local/include/X11R6 \
9180 /usr/local/include/X11R5 \
9181 /usr/local/include/X11R4 \
9182 \
9183 /usr/X11/include \
9184 /usr/include/X11 \
9185 /usr/local/X11/include \
9186 /usr/local/include/X11 \
9187 \
9188 /usr/X386/include \
9189 /usr/x386/include \
9190 /usr/XFree86/include/X11 \
9191 \
cf27ef00 9192 X:/XFree86/include \
ec14dd32
VZ
9193 X:/XFree86/include/X11 \
9194 \
10f2d63a
VZ
9195 /usr/include/gtk \
9196 /usr/local/include/gtk \
9197 /usr/include/glib \
9198 /usr/local/include/glib \
9199 \
9200 /usr/include/qt \
9201 /usr/local/include/qt \
9202 \
9203 /usr/include/windows \
9204 /usr/include/wine \
9205 /usr/local/include/wine \
9206 \
9207 /usr/unsupported/include \
9208 /usr/athena/include \
9209 /usr/local/x11r5/include \
9210 /usr/lpp/Xamples/include \
9211 \
10f2d63a 9212 /usr/openwin/share/include \
928b5c08
VZ
9213 \
9214 /usr/include"
10f2d63a
VZ
9215
9216SEARCH_LIB="`echo "$SEARCH_INCLUDE" | sed s/include/lib/g` "
9217
698dcdb6
VZ
9218
9219cat > confcache <<\EOF
10f2d63a
VZ
9220# This file is a shell script that caches the results of configure
9221# tests run on this system so they can be shared between configure
698dcdb6
VZ
9222# scripts and configure runs. It is not useful on other systems.
9223# If it contains results you don't want to keep, you may remove or edit it.
10f2d63a 9224#
698dcdb6
VZ
9225# By default, configure uses ./config.cache as the cache file,
9226# creating it if it does not exist already. You can give configure
9227# the --cache-file=FILE option to use a different cache file; that is
9228# what configure does when it calls configure scripts in
9229# subdirectories, so they share the cache.
9230# Giving --cache-file=/dev/null disables caching, for debugging configure.
9231# config.status only pays attention to the cache file if you give it the
9232# --recheck option to rerun configure.
10f2d63a 9233#
698dcdb6 9234EOF
10f2d63a
VZ
9235# The following way of writing the cache mishandles newlines in values,
9236# but we know of no workaround that is simple, portable, and efficient.
9237# So, don't put newlines in cache variables' values.
9238# Ultrix sh set writes to stderr and can't be redirected directly,
9239# and sets the high bit in the cache file unless we assign to the vars.
698dcdb6
VZ
9240(set) 2>&1 |
9241 case `(ac_space=' '; set | grep ac_space) 2>&1` in
9242 *ac_space=\ *)
9243 # `set' does not quote correctly, so add quotes (double-quote substitution
9244 # turns \\\\ into \\, and sed turns \\ into \).
9245 sed -n \
9246 -e "s/'/'\\\\''/g" \
9247 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
9248 ;;
9249 *)
9250 # `set' quotes correctly as required by POSIX, so do not add quotes.
9251 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
9252 ;;
9253 esac >> confcache
9254if cmp -s $cache_file confcache; then
9255 :
9256else
10f2d63a 9257 if test -w $cache_file; then
698dcdb6
VZ
9258 echo "updating cache $cache_file"
9259 cat confcache > $cache_file
10f2d63a
VZ
9260 else
9261 echo "not updating unwritable cache $cache_file"
9262 fi
9263fi
9264rm -f confcache
9265
698dcdb6
VZ
9266
9267
4f14bcd8 9268
18dbb1f6
VZ
9269REGEX_INCLUDE=
9270if test "$wxUSE_REGEX" != "no"; then
4f14bcd8
GD
9271 cat >> confdefs.h <<\EOF
9272#define wxUSE_REGEX 1
9273EOF
9274
9275
9276 if test "$wxUSE_REGEX" = "sys" -o "$wxUSE_REGEX" = "yes" ; then
9277 ac_safe=`echo "regex.h" | sed 'y%./+-%__p_%'`
18dbb1f6 9278echo $ac_n "checking for regex.h""... $ac_c" 1>&6
a1622950 9279echo "configure:9280: checking for regex.h" >&5
18dbb1f6
VZ
9280if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9281 echo $ac_n "(cached) $ac_c" 1>&6
9282else
9283 cat > conftest.$ac_ext <<EOF
a1622950 9284#line 9285 "configure"
18dbb1f6
VZ
9285#include "confdefs.h"
9286#include <regex.h>
9287EOF
9288ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
a1622950 9289{ (eval echo configure:9290: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
18dbb1f6
VZ
9290ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9291if test -z "$ac_err"; then
9292 rm -rf conftest*
9293 eval "ac_cv_header_$ac_safe=yes"
9294else
9295 echo "$ac_err" >&5
9296 echo "configure: failed program was:" >&5
9297 cat conftest.$ac_ext >&5
9298 rm -rf conftest*
9299 eval "ac_cv_header_$ac_safe=no"
9300fi
9301rm -f conftest*
9302fi
9303if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9304 echo "$ac_t""yes" 1>&6
9305 for ac_func in regcomp
9306do
9307echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
a1622950 9308echo "configure:9309: checking for $ac_func" >&5
18dbb1f6
VZ
9309if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9310 echo $ac_n "(cached) $ac_c" 1>&6
9311else
9312 cat > conftest.$ac_ext <<EOF
a1622950 9313#line 9314 "configure"
18dbb1f6
VZ
9314#include "confdefs.h"
9315/* System header to define __stub macros and hopefully few prototypes,
9316 which can conflict with char $ac_func(); below. */
9317#include <assert.h>
9318/* Override any gcc2 internal prototype to avoid an error. */
9319/* We use char because int might match the return type of a gcc2
9320 builtin and then its argument prototype would still apply. */
9321char $ac_func();
9322
9323int main() {
9324
9325/* The GNU C library defines this for functions which it implements
9326 to always fail with ENOSYS. Some functions are actually named
9327 something starting with __ and the normal name is an alias. */
9328#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9329choke me
9330#else
9331$ac_func();
9332#endif
9333
9334; return 0; }
9335EOF
a1622950 9336if { (eval echo configure:9337: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18dbb1f6
VZ
9337 rm -rf conftest*
9338 eval "ac_cv_func_$ac_func=yes"
9339else
9340 echo "configure: failed program was:" >&5
9341 cat conftest.$ac_ext >&5
9342 rm -rf conftest*
9343 eval "ac_cv_func_$ac_func=no"
9344fi
9345rm -f conftest*
9346fi
9347
9348if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9349 echo "$ac_t""yes" 1>&6
9350 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9351 cat >> confdefs.h <<EOF
9352#define $ac_tr_func 1
9353EOF
9354
9355else
9356 echo "$ac_t""no" 1>&6
9357fi
9358done
9359
9360else
9361 echo "$ac_t""no" 1>&6
9362fi
9363
9364
4f14bcd8
GD
9365 if test "x$ac_cv_func_regcomp" != "xyes"; then
9366 if test "$wxUSE_REGEX" = "sys" ; then
9367 { echo "configure: error: system regex library not found! Use --with-regex to use built-in version" 1>&2; exit 1; }
9368 else
a3df447d 9369 echo "configure: warning: system regex library not found, will use built-in instead" 1>&2
4f14bcd8
GD
9370 wxUSE_REGEX=builtin
9371 fi
9372 else
9373 wxUSE_REGEX=sys
18dbb1f6 9374 fi
18dbb1f6
VZ
9375 fi
9376
4f14bcd8
GD
9377 if test "$wxUSE_REGEX" = "builtin" ; then
9378 REGEX_INCLUDE="-I\${top_srcdir}/src/regex"
9379 fi
18dbb1f6
VZ
9380fi
9381
9382
4f14bcd8
GD
9383ZLIB_INCLUDE=
9384ZLIB_LINK=
9385if test "$wxUSE_ZLIB" != "no" ; then
9386 cat >> confdefs.h <<\EOF
9387#define wxUSE_ZLIB 1
9388EOF
dad6c0ea 9389
10f2d63a 9390
4f14bcd8
GD
9391 if test "$wxUSE_ZLIB" = "sys" -o "$wxUSE_ZLIB" = "yes" ; then
9392 ac_safe=`echo "zlib.h" | sed 'y%./+-%__p_%'`
9393echo $ac_n "checking for zlib.h""... $ac_c" 1>&6
a1622950 9394echo "configure:9395: checking for zlib.h" >&5
3a922bb4
RL
9395if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9396 echo $ac_n "(cached) $ac_c" 1>&6
9397else
9398 cat > conftest.$ac_ext <<EOF
a1622950 9399#line 9400 "configure"
3a922bb4 9400#include "confdefs.h"
4f14bcd8 9401#include <zlib.h>
3a922bb4
RL
9402EOF
9403ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
a1622950 9404{ (eval echo configure:9405: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3a922bb4
RL
9405ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9406if test -z "$ac_err"; then
9407 rm -rf conftest*
9408 eval "ac_cv_header_$ac_safe=yes"
9409else
9410 echo "$ac_err" >&5
9411 echo "configure: failed program was:" >&5
9412 cat conftest.$ac_ext >&5
9413 rm -rf conftest*
9414 eval "ac_cv_header_$ac_safe=no"
9415fi
9416rm -f conftest*
9417fi
9418if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9419 echo "$ac_t""yes" 1>&6
4f14bcd8 9420 echo $ac_n "checking for deflate in -lz""... $ac_c" 1>&6
a1622950 9421echo "configure:9422: checking for deflate in -lz" >&5
4f14bcd8
GD
9422ac_lib_var=`echo z'_'deflate | sed 'y%./+-%__p_%'`
9423if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9424 echo $ac_n "(cached) $ac_c" 1>&6
9425else
9426 ac_save_LIBS="$LIBS"
9427LIBS="-lz $LIBS"
9428cat > conftest.$ac_ext <<EOF
a1622950 9429#line 9430 "configure"
4f14bcd8
GD
9430#include "confdefs.h"
9431/* Override any gcc2 internal prototype to avoid an error. */
9432/* We use char because int might match the return type of a gcc2
9433 builtin and then its argument prototype would still apply. */
9434char deflate();
9435
9436int main() {
9437deflate()
9438; return 0; }
3a922bb4 9439EOF
a1622950 9440if { (eval echo configure:9441: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4f14bcd8
GD
9441 rm -rf conftest*
9442 eval "ac_cv_lib_$ac_lib_var=yes"
9443else
9444 echo "configure: failed program was:" >&5
9445 cat conftest.$ac_ext >&5
9446 rm -rf conftest*
9447 eval "ac_cv_lib_$ac_lib_var=no"
9448fi
9449rm -f conftest*
9450LIBS="$ac_save_LIBS"
9451
9452fi
9453if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9454 echo "$ac_t""yes" 1>&6
3d63bc3a 9455 ZLIB_LINK=" -lz"
3a922bb4
RL
9456else
9457 echo "$ac_t""no" 1>&6
9458fi
10f2d63a 9459
4f14bcd8
GD
9460else
9461 echo "$ac_t""no" 1>&6
9462fi
9463
9464
9465 if test "x$ZLIB_LINK" = "x" ; then
9466 if test "$wxUSE_ZLIB" = "sys" ; then
9467 { echo "configure: error: system zlib compression library not found! Use --with-zlib=builtin to use built-in version" 1>&2; exit 1; }
9468 else
a3df447d 9469 echo "configure: warning: system zlib compression library not found, will use built-in instead" 1>&2
4f14bcd8
GD
9470 wxUSE_ZLIB=builtin
9471 fi
9472 else
9473 wxUSE_ZLIB=sys
9474 fi
9475 fi
9476
9477 if test "$wxUSE_ZLIB" = "builtin" ; then
9478 ZLIB_INCLUDE="-I\${top_srcdir}/src/zlib"
9479 fi
9480fi
9481
9482
9483PNG_INCLUDE=
9484PNG_LINK=
9485if test "$wxUSE_LIBPNG" != "no" ; then
9486 cat >> confdefs.h <<\EOF
9487#define wxUSE_LIBPNG 1
9488EOF
9489
9490
9491 if test "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then
a3df447d 9492 echo "configure: warning: system png library doesn't work without system zlib, will use built-in instead" 1>&2
4f14bcd8
GD
9493 wxUSE_LIBPNG=builtin
9494 fi
9495
9496 if test "$wxUSE_LIBPNG" = "sys" -o "$wxUSE_LIBPNG" = "yes" ; then
9497 ac_safe=`echo "png.h" | sed 'y%./+-%__p_%'`
9498echo $ac_n "checking for png.h""... $ac_c" 1>&6
a1622950 9499echo "configure:9500: checking for png.h" >&5
d4158b5d
VS
9500if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9501 echo $ac_n "(cached) $ac_c" 1>&6
9502else
9503 cat > conftest.$ac_ext <<EOF
a1622950 9504#line 9505 "configure"
d4158b5d 9505#include "confdefs.h"
4f14bcd8 9506#include <png.h>
d4158b5d
VS
9507EOF
9508ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
a1622950 9509{ (eval echo configure:9510: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
d4158b5d
VS
9510ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9511if test -z "$ac_err"; then
9512 rm -rf conftest*
9513 eval "ac_cv_header_$ac_safe=yes"
9514else
9515 echo "$ac_err" >&5
9516 echo "configure: failed program was:" >&5
9517 cat conftest.$ac_ext >&5
9518 rm -rf conftest*
9519 eval "ac_cv_header_$ac_safe=no"
9520fi
9521rm -f conftest*
9522fi
9523if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9524 echo "$ac_t""yes" 1>&6
4f14bcd8 9525 echo $ac_n "checking for png_check_sig in -lpng""... $ac_c" 1>&6
a1622950 9526echo "configure:9527: checking for png_check_sig in -lpng" >&5
4f14bcd8
GD
9527ac_lib_var=`echo png'_'png_check_sig | sed 'y%./+-%__p_%'`
9528if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3a922bb4
RL
9529 echo $ac_n "(cached) $ac_c" 1>&6
9530else
4f14bcd8
GD
9531 ac_save_LIBS="$LIBS"
9532LIBS="-lpng -lz -lm $LIBS"
9533cat > conftest.$ac_ext <<EOF
a1622950 9534#line 9535 "configure"
3a922bb4 9535#include "confdefs.h"
4f14bcd8
GD
9536/* Override any gcc2 internal prototype to avoid an error. */
9537/* We use char because int might match the return type of a gcc2
9538 builtin and then its argument prototype would still apply. */
9539char png_check_sig();
f6bcfd97 9540
4f14bcd8
GD
9541int main() {
9542png_check_sig()
3a922bb4
RL
9543; return 0; }
9544EOF
a1622950 9545if { (eval echo configure:9546: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3a922bb4 9546 rm -rf conftest*
4f14bcd8 9547 eval "ac_cv_lib_$ac_lib_var=yes"
3a922bb4
RL
9548else
9549 echo "configure: failed program was:" >&5
9550 cat conftest.$ac_ext >&5
9551 rm -rf conftest*
4f14bcd8 9552 eval "ac_cv_lib_$ac_lib_var=no"
3a922bb4
RL
9553fi
9554rm -f conftest*
4f14bcd8 9555LIBS="$ac_save_LIBS"
10f2d63a 9556
4f14bcd8
GD
9557fi
9558if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9559 echo "$ac_t""yes" 1>&6
3d63bc3a 9560 PNG_LINK=" -lpng"
4f14bcd8
GD
9561else
9562 echo "$ac_t""no" 1>&6
9563fi
32832908 9564
4f14bcd8
GD
9565
9566else
9567 echo "$ac_t""no" 1>&6
9568fi
3a922bb4 9569
7b7a7637 9570
4f14bcd8
GD
9571 if test "x$PNG_LINK" = "x" ; then
9572 if test "$wxUSE_LIBPNG" = "sys" ; then
9573 { echo "configure: error: system png library not found! Use --with-libpng=builtin to use built-in version" 1>&2; exit 1; }
9574 else
a3df447d 9575 echo "configure: warning: system png library not found, will use built-in instead" 1>&2
4f14bcd8
GD
9576 wxUSE_LIBPNG=builtin
9577 fi
9578 else
9579 wxUSE_LIBPNG=yes
9580 fi
3a922bb4
RL
9581 fi
9582
4f14bcd8
GD
9583 if test "$wxUSE_LIBPNG" = "builtin" ; then
9584 PNG_INCLUDE="-I\${top_srcdir}/src/png"
3a922bb4
RL
9585 fi
9586
4f14bcd8 9587 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png"
3a922bb4
RL
9588fi
9589
32832908 9590
4f14bcd8
GD
9591JPEG_INCLUDE=
9592JPEG_LINK=
9593if test "$wxUSE_LIBJPEG" != "no" ; then
9594 cat >> confdefs.h <<\EOF
9595#define wxUSE_LIBJPEG 1
9596EOF
10f2d63a 9597
8168de4c 9598
4f14bcd8
GD
9599 if test "$wxUSE_LIBJPEG" = "sys" -o "$wxUSE_LIBJPEG" = "yes" ; then
9600 echo $ac_n "checking for jpeglib.h""... $ac_c" 1>&6
a1622950 9601echo "configure:9602: checking for jpeglib.h" >&5
4f14bcd8 9602 if eval "test \"`echo '$''{'ac_cv_header_jpeglib_h'+set}'`\" = set"; then
8168de4c
VZ
9603 echo $ac_n "(cached) $ac_c" 1>&6
9604else
4f14bcd8 9605 cat > conftest.$ac_ext <<EOF
a1622950 9606#line 9607 "configure"
4f14bcd8 9607#include "confdefs.h"
8168de4c 9608
4f14bcd8
GD
9609 #undef HAVE_STDLIB_H
9610 #include <stdio.h>
9611 #include <jpeglib.h>
9612
9613int main() {
9614
9615
9616; return 0; }
9617EOF
a1622950 9618if { (eval echo configure:9619: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4f14bcd8
GD
9619 rm -rf conftest*
9620 ac_cv_header_jpeglib_h=yes
6f72b082 9621else
4f14bcd8
GD
9622 echo "configure: failed program was:" >&5
9623 cat conftest.$ac_ext >&5
9624 rm -rf conftest*
9625 ac_cv_header_jpeglib_h=no
9626
9627fi
9628rm -f conftest*
9629
698dcdb6 9630fi
6f72b082 9631
4f14bcd8
GD
9632 echo "$ac_t""$ac_cv_header_jpeglib_h" 1>&6
9633
9634 if test "$ac_cv_header_jpeglib_h" = "yes"; then
9635 echo $ac_n "checking for jpeg_read_header in -ljpeg""... $ac_c" 1>&6
a1622950 9636echo "configure:9637: checking for jpeg_read_header in -ljpeg" >&5
4f14bcd8
GD
9637ac_lib_var=`echo jpeg'_'jpeg_read_header | sed 'y%./+-%__p_%'`
9638if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9639 echo $ac_n "(cached) $ac_c" 1>&6
6f72b082 9640else
4f14bcd8
GD
9641 ac_save_LIBS="$LIBS"
9642LIBS="-ljpeg $LIBS"
9643cat > conftest.$ac_ext <<EOF
a1622950 9644#line 9645 "configure"
4f14bcd8
GD
9645#include "confdefs.h"
9646/* Override any gcc2 internal prototype to avoid an error. */
9647/* We use char because int might match the return type of a gcc2
9648 builtin and then its argument prototype would still apply. */
9649char jpeg_read_header();
698dcdb6 9650
4f14bcd8
GD
9651int main() {
9652jpeg_read_header()
9653; return 0; }
9654EOF
a1622950 9655if { (eval echo configure:9656: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4f14bcd8
GD
9656 rm -rf conftest*
9657 eval "ac_cv_lib_$ac_lib_var=yes"
6f72b082 9658else
4f14bcd8
GD
9659 echo "configure: failed program was:" >&5
9660 cat conftest.$ac_ext >&5
9661 rm -rf conftest*
9662 eval "ac_cv_lib_$ac_lib_var=no"
698dcdb6 9663fi
4f14bcd8
GD
9664rm -f conftest*
9665LIBS="$ac_save_LIBS"
698dcdb6 9666
4f14bcd8
GD
9667fi
9668if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9669 echo "$ac_t""yes" 1>&6
3d63bc3a 9670 JPEG_LINK=" -ljpeg"
4f14bcd8
GD
9671else
9672 echo "$ac_t""no" 1>&6
9673fi
9674
9675 fi
9676
9677 if test "x$JPEG_LINK" = "x" ; then
9678 if test "$wxUSE_LIBJPEG" = "sys" ; then
9679 { echo "configure: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" 1>&2; exit 1; }
9680 else
a3df447d 9681 echo "configure: warning: system jpeg library not found, will use built-in instead" 1>&2
4f14bcd8
GD
9682 wxUSE_LIBJPEG=builtin
9683 fi
9684 else
9685 wxUSE_LIBJPEG=sys
9686 fi
9687 fi
9688
9689 if test "$wxUSE_LIBJPEG" = "builtin" ; then
9690 JPEG_INCLUDE="-I\${top_srcdir}/src/jpeg"
9691 fi
9692fi
9693
9694
9695TIFF_INCLUDE=
9696TIFF_LINK=
9697if test "$wxUSE_LIBTIFF" != "no" ; then
9698 cat >> confdefs.h <<\EOF
9699#define wxUSE_LIBTIFF 1
9700EOF
9701
9702
9703 if test "$wxUSE_LIBTIFF" = "sys" -o "$wxUSE_LIBTIFF" = "yes" ; then
9704 ac_safe=`echo "tiffio.h" | sed 'y%./+-%__p_%'`
9705echo $ac_n "checking for tiffio.h""... $ac_c" 1>&6
a1622950 9706echo "configure:9707: checking for tiffio.h" >&5
4f14bcd8
GD
9707if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9708 echo $ac_n "(cached) $ac_c" 1>&6
9709else
9710 cat > conftest.$ac_ext <<EOF
a1622950 9711#line 9712 "configure"
4f14bcd8
GD
9712#include "confdefs.h"
9713#include <tiffio.h>
9714EOF
9715ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
a1622950 9716{ (eval echo configure:9717: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4f14bcd8
GD
9717ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9718if test -z "$ac_err"; then
9719 rm -rf conftest*
9720 eval "ac_cv_header_$ac_safe=yes"
9721else
9722 echo "$ac_err" >&5
9723 echo "configure: failed program was:" >&5
9724 cat conftest.$ac_ext >&5
9725 rm -rf conftest*
9726 eval "ac_cv_header_$ac_safe=no"
9727fi
9728rm -f conftest*
9729fi
9730if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9731 echo "$ac_t""yes" 1>&6
9732 echo $ac_n "checking for TIFFError in -ltiff""... $ac_c" 1>&6
a1622950 9733echo "configure:9734: checking for TIFFError in -ltiff" >&5
4f14bcd8
GD
9734ac_lib_var=`echo tiff'_'TIFFError | sed 'y%./+-%__p_%'`
9735if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9736 echo $ac_n "(cached) $ac_c" 1>&6
9737else
9738 ac_save_LIBS="$LIBS"
9739LIBS="-ltiff -lm $LIBS"
9740cat > conftest.$ac_ext <<EOF
a1622950 9741#line 9742 "configure"
4f14bcd8
GD
9742#include "confdefs.h"
9743/* Override any gcc2 internal prototype to avoid an error. */
9744/* We use char because int might match the return type of a gcc2
9745 builtin and then its argument prototype would still apply. */
9746char TIFFError();
9747
9748int main() {
9749TIFFError()
9750; return 0; }
9751EOF
a1622950 9752if { (eval echo configure:9753: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4f14bcd8
GD
9753 rm -rf conftest*
9754 eval "ac_cv_lib_$ac_lib_var=yes"
9755else
9756 echo "configure: failed program was:" >&5
9757 cat conftest.$ac_ext >&5
9758 rm -rf conftest*
9759 eval "ac_cv_lib_$ac_lib_var=no"
9760fi
9761rm -f conftest*
9762LIBS="$ac_save_LIBS"
9763
9764fi
9765if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9766 echo "$ac_t""yes" 1>&6
3d63bc3a 9767 TIFF_LINK=" -ltiff"
4f14bcd8
GD
9768else
9769 echo "$ac_t""no" 1>&6
9770fi
9771
9772
9773else
9774 echo "$ac_t""no" 1>&6
9775fi
9776
9777
9778 if test "x$TIFF_LINK" = "x" ; then
9779 if test "$wxUSE_LIBTIFF" = "sys" ; then
9780 { echo "configure: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" 1>&2; exit 1; }
9781 else
a3df447d 9782 echo "configure: warning: system tiff library not found, will use built-in instead" 1>&2
4f14bcd8
GD
9783 wxUSE_LIBTIFF=builtin
9784 fi
9785 else
9786 wxUSE_LIBTIFF=sys
9787 fi
9788 fi
9789
9790 if test "$wxUSE_LIBTIFF" = "builtin" ; then
9791 TIFF_INCLUDE="-I\${top_srcdir}/src/tiff"
9792 fi
9793fi
9794
9795
9796FREETYPE_INCLUDE=
9797FREETYPE_LINK=
9798if test "$wxUSE_FREETYPE" != "no" ; then
9799 cat >> confdefs.h <<\EOF
9800#define wxUSE_FREETYPE 1
9801EOF
9802
9803
9804 if test "$wxUSE_FREETYPE" = "sys" -o "$wxUSE_FREETYPE" = "yes" ; then
9805 ac_safe=`echo "freetype.h" | sed 'y%./+-%__p_%'`
9806echo $ac_n "checking for freetype.h""... $ac_c" 1>&6
a1622950 9807echo "configure:9808: checking for freetype.h" >&5
4f14bcd8
GD
9808if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9809 echo $ac_n "(cached) $ac_c" 1>&6
9810else
9811 cat > conftest.$ac_ext <<EOF
a1622950 9812#line 9813 "configure"
4f14bcd8
GD
9813#include "confdefs.h"
9814#include <freetype.h>
9815EOF
9816ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
a1622950 9817{ (eval echo configure:9818: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4f14bcd8
GD
9818ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9819if test -z "$ac_err"; then
9820 rm -rf conftest*
9821 eval "ac_cv_header_$ac_safe=yes"
9822else
9823 echo "$ac_err" >&5
9824 echo "configure: failed program was:" >&5
9825 cat conftest.$ac_ext >&5
9826 rm -rf conftest*
9827 eval "ac_cv_header_$ac_safe=no"
9828fi
9829rm -f conftest*
9830fi
9831if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9832 echo "$ac_t""yes" 1>&6
9833 echo $ac_n "checking for FT_Render_Glyph in -lfreetype""... $ac_c" 1>&6
a1622950 9834echo "configure:9835: checking for FT_Render_Glyph in -lfreetype" >&5
4f14bcd8
GD
9835ac_lib_var=`echo freetype'_'FT_Render_Glyph | sed 'y%./+-%__p_%'`
9836if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9837 echo $ac_n "(cached) $ac_c" 1>&6
9838else
9839 ac_save_LIBS="$LIBS"
9840LIBS="-lfreetype -lm $LIBS"
9841cat > conftest.$ac_ext <<EOF
a1622950 9842#line 9843 "configure"
4f14bcd8
GD
9843#include "confdefs.h"
9844/* Override any gcc2 internal prototype to avoid an error. */
9845/* We use char because int might match the return type of a gcc2
9846 builtin and then its argument prototype would still apply. */
9847char FT_Render_Glyph();
9848
9849int main() {
9850FT_Render_Glyph()
9851; return 0; }
9852EOF
a1622950 9853if { (eval echo configure:9854: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4f14bcd8
GD
9854 rm -rf conftest*
9855 eval "ac_cv_lib_$ac_lib_var=yes"
9856else
9857 echo "configure: failed program was:" >&5
9858 cat conftest.$ac_ext >&5
9859 rm -rf conftest*
9860 eval "ac_cv_lib_$ac_lib_var=no"
9861fi
9862rm -f conftest*
9863LIBS="$ac_save_LIBS"
9864
9865fi
9866if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9867 echo "$ac_t""yes" 1>&6
3d63bc3a 9868 FREETYPE_LINK=" -lfreetype"
4f14bcd8
GD
9869else
9870 echo "$ac_t""no" 1>&6
9871fi
9872
9873
9874else
9875 echo "$ac_t""no" 1>&6
9876fi
9877
9878
9879 if test "x$FREETYPE_LINK" = "x" ; then
9880 if test "$wxUSE_FREETYPE" = "sys" ; then
9881 { echo "configure: error: system freetype library not found! Use --with-freetype=builtin to use built-in version" 1>&2; exit 1; }
9882 else
a3df447d 9883 echo "configure: warning: system freetype library not found, will use built-in instead" 1>&2
4f14bcd8
GD
9884 wxUSE_FREETYPE=builtin
9885 fi
9886 else
9887 wxUSE_FREETYPE=sys
9888 fi
9889 fi
9890
9891 if test "$wxUSE_FREETYPE" = "builtin" ; then
9892 FREETYPE_INCLUDE="-I\${top_srcdir}/src/freetype"
9893 fi
9894fi
9895
9896
9897AFMINSTALL=
9898
9899TOOLKIT=
9900TOOLKIT_INCLUDE=
9901WIDGET_SET=
9902
9903if test "$USE_WIN32" = 1 ; then
9904 for ac_hdr in w32api.h
9905do
9906ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9907echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
a1622950 9908echo "configure:9909: checking for $ac_hdr" >&5
4f14bcd8
GD
9909if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9910 echo $ac_n "(cached) $ac_c" 1>&6
9911else
9912 cat > conftest.$ac_ext <<EOF
a1622950 9913#line 9914 "configure"
4f14bcd8
GD
9914#include "confdefs.h"
9915#include <$ac_hdr>
9916EOF
9917ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
a1622950 9918{ (eval echo configure:9919: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4f14bcd8
GD
9919ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9920if test -z "$ac_err"; then
9921 rm -rf conftest*
9922 eval "ac_cv_header_$ac_safe=yes"
9923else
9924 echo "$ac_err" >&5
9925 echo "configure: failed program was:" >&5
9926 cat conftest.$ac_ext >&5
9927 rm -rf conftest*
9928 eval "ac_cv_header_$ac_safe=no"
9929fi
9930rm -f conftest*
9931fi
9932if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9933 echo "$ac_t""yes" 1>&6
9934 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9935 cat >> confdefs.h <<EOF
9936#define $ac_tr_hdr 1
9937EOF
9938
9939else
9940 echo "$ac_t""no" 1>&6
9941fi
9942done
9943
9944 ac_safe=`echo "windows.h" | sed 'y%./+-%__p_%'`
9945echo $ac_n "checking for windows.h""... $ac_c" 1>&6
a1622950 9946echo "configure:9947: checking for windows.h" >&5
4f14bcd8
GD
9947if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9948 echo $ac_n "(cached) $ac_c" 1>&6
9949else
9950 cat > conftest.$ac_ext <<EOF
a1622950 9951#line 9952 "configure"
4f14bcd8
GD
9952#include "confdefs.h"
9953#include <windows.h>
9954EOF
9955ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
a1622950 9956{ (eval echo configure:9957: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4f14bcd8
GD
9957ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9958if test -z "$ac_err"; then
9959 rm -rf conftest*
9960 eval "ac_cv_header_$ac_safe=yes"
9961else
9962 echo "$ac_err" >&5
9963 echo "configure: failed program was:" >&5
9964 cat conftest.$ac_ext >&5
9965 rm -rf conftest*
9966 eval "ac_cv_header_$ac_safe=no"
9967fi
9968rm -f conftest*
9969fi
9970if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9971 echo "$ac_t""yes" 1>&6
9972 :
9973else
9974 echo "$ac_t""no" 1>&6
9975
9976 { echo "configure: error: please set CFLAGS to contain the location of windows.h" 1>&2; exit 1; }
9977
9978fi
9979
9980
9981 echo $ac_n "checking if w32api has good enough MSIE support""... $ac_c" 1>&6
a1622950 9982echo "configure:9983: checking if w32api has good enough MSIE support" >&5
ea7682f0 9983if eval "test \"`echo '$''{'wx_cv_w32api_win32_ie'+set}'`\" = set"; then
4f14bcd8
GD
9984 echo $ac_n "(cached) $ac_c" 1>&6
9985else
9986
9987 cat > conftest.$ac_ext <<EOF
a1622950 9988#line 9989 "configure"
4f14bcd8
GD
9989#include "confdefs.h"
9990#include <w32api.h>
9991int main() {
9992
9993 #define wxCHECK_W32API_VERSION( major, minor ) \
9994 ( defined( __W32API_MAJOR_VERSION ) && defined( __W32API_MINOR_VERSION ) \
9995 && ( ( __W32API_MAJOR_VERSION > (major) ) \
9996 || ( __W32API_MAJOR_VERSION == (major) && __W32API_MINOR_VERSION >= (minor))))
9997
9998 #if !wxCHECK_W32API_VERSION(1,1)
9999 #error You need w32api 1.1 or newer
10000 #endif
10001
10002; return 0; }
10003EOF
a1622950 10004if { (eval echo configure:10005: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4f14bcd8
GD
10005 rm -rf conftest*
10006
ea7682f0 10007 wx_cv_w32api_win32_ie=yes
4f14bcd8
GD
10008
10009else
10010 echo "configure: failed program was:" >&5
10011 cat conftest.$ac_ext >&5
10012 rm -rf conftest*
10013
ea7682f0 10014 wx_cv_w32api_win32_ie=no
4f14bcd8
GD
10015
10016fi
10017rm -f conftest*
10018
10019fi
10020
ea7682f0
VS
10021echo "$ac_t""$wx_cv_w32api_win32_ie" 1>&6
10022 if test "$wx_cv_w32api_win32_ie" = "yes" ; then
10023 CPPFLAGS="$CPPFLAGS -D_WIN32_IE=0x400"
10024 fi
4f14bcd8
GD
10025
10026 LIBS="$LIBS -lwinspool -lwinmm -lshell32 -lcomctl32 -lctl3d32 -ladvapi32 -lwsock32"
10027
77e13408
RL
10028 case "${host}" in
10029 *-*-cygwin* )
10030 LIBS="$LIBS -lkernel32 -luser32 -lgdi32 -lcomdlg32"
10031 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WIN95__"
10032 esac
4f14bcd8
GD
10033
10034 if test "$wxUSE_ODBC" = "yes" ; then
a72a4bfa 10035 LIBS=" -lodbc32 -lole32 -loleaut32 $LIBS"
4f14bcd8
GD
10036 fi
10037
4f14bcd8
GD
10038 RESFLAGS="--include-dir \$(top_srcdir)/include --include-dir \$(top_srcdir)/\$(program_dir) --define __WIN32__ --define __WIN95__ --define __GNUWIN32__"
10039 RESPROGRAMOBJ="\$(PROGRAM)_resources.o"
10040fi
10041
10042if test "$wxUSE_GUI" = "yes"; then
10043 USE_GUI=1
10044
10045 GUI_TK_LIBRARY=
10046
10047 WXGTK12=
10048 WXGTK127=
10049 WXGTK20=
10050
77e13408 10051 if test "$wxUSE_MSW" = 1 ; then
4f14bcd8
GD
10052 TOOLKIT=MSW
10053 GUIDIST=MSW_DIST
77e13408
RL
10054
10055 case "${host}" in
10056 *-*-mingw32* )
3d63bc3a 10057 LDFLAGS="$LDFLAGS -Wl,--subsystem,windows -mwindows"
77e13408 10058 esac
4f14bcd8
GD
10059 fi
10060
10061 if test "$wxUSE_GTK" = 1; then
10062 echo $ac_n "checking for GTK+ version""... $ac_c" 1>&6
a1622950 10063echo "configure:10064: checking for GTK+ version" >&5
4f14bcd8
GD
10064
10065 gtk_version_cached=1
10066 if eval "test \"`echo '$''{'wx_cv_lib_gtk'+set}'`\" = set"; then
10067 echo $ac_n "(cached) $ac_c" 1>&6
10068else
10069
10070 gtk_version_cached=0
d48ad9bd 10071 echo "$ac_t""" 1>&6
4f14bcd8 10072
3f345b47
VZ
10073 GTK_MODULES=
10074 if test "$wxUSE_THREADS" = "yes"; then
10075 GTK_MODULES=gthread
10076 fi
10077
4f14bcd8
GD
10078 wx_cv_lib_gtk=
10079 if test "x$wxUSE_GTK2" = "xyes"; then
10080 # Check whether --with-gtk-prefix or --without-gtk-prefix was given.
10081if test "${with_gtk_prefix+set}" = set; then
10082 withval="$with_gtk_prefix"
10083 gtk_config_prefix="$withval"
10084else
10085 gtk_config_prefix=""
10086fi
10087
10088# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
10089if test "${with_gtk_exec_prefix+set}" = set; then
10090 withval="$with_gtk_exec_prefix"
10091 gtk_config_exec_prefix="$withval"
10092else
10093 gtk_config_exec_prefix=""
10094fi
10095
10096# Check whether --enable-gtktest or --disable-gtktest was given.
10097if test "${enable_gtktest+set}" = set; then
10098 enableval="$enable_gtktest"
10099 :
10100else
10101 enable_gtktest=yes
10102fi
10103
10104
3f345b47 10105 for module in . $GTK_MODULES
4f14bcd8 10106 do
6f72b082 10107 case "$module" in
8168de4c 10108 gthread)
6f72b082
OK
10109 gtk_config_args="$gtk_config_args gthread"
10110 ;;
10111 esac
10112 done
10113
10114 if test x$gtk_config_exec_prefix != x ; then
10115 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
10116 if test x${GTK_CONFIG_2_0+set} != xset ; then
10117 GTK_CONFIG_2_0=$gtk_config_exec_prefix/bin/gtk-config-2.0
10118 fi
10119 fi
10120 if test x$gtk_config_prefix != x ; then
10121 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
10122 if test x${GTK_CONFIG_2_0+set} != xset ; then
10123 GTK_CONFIG_2_0=$gtk_config_prefix/bin/gtk-config-2.0
10124 fi
10125 fi
10126
10127 # Extract the first word of "gtk-config-2.0", so it can be a program name with args.
10128set dummy gtk-config-2.0; ac_word=$2
698dcdb6 10129echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
a1622950 10130echo "configure:10131: checking for $ac_word" >&5
698dcdb6
VZ
10131if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG_2_0'+set}'`\" = set"; then
10132 echo $ac_n "(cached) $ac_c" 1>&6
6f72b082 10133else
698dcdb6
VZ
10134 case "$GTK_CONFIG_2_0" in
10135 /*)
6f72b082
OK
10136 ac_cv_path_GTK_CONFIG_2_0="$GTK_CONFIG_2_0" # Let the user override the test with a path.
10137 ;;
698dcdb6
VZ
10138 ?:/*)
10139 ac_cv_path_GTK_CONFIG_2_0="$GTK_CONFIG_2_0" # Let the user override the test with a dos path.
10140 ;;
6f72b082 10141 *)
698dcdb6
VZ
10142 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
10143 ac_dummy="$PATH"
10144 for ac_dir in $ac_dummy; do
10145 test -z "$ac_dir" && ac_dir=.
10146 if test -f $ac_dir/$ac_word; then
10147 ac_cv_path_GTK_CONFIG_2_0="$ac_dir/$ac_word"
10148 break
10149 fi
10150 done
10151 IFS="$ac_save_ifs"
6f72b082
OK
10152 test -z "$ac_cv_path_GTK_CONFIG_2_0" && ac_cv_path_GTK_CONFIG_2_0="no"
10153 ;;
10154esac
10155fi
698dcdb6 10156GTK_CONFIG_2_0="$ac_cv_path_GTK_CONFIG_2_0"
6f72b082 10157if test -n "$GTK_CONFIG_2_0"; then
698dcdb6 10158 echo "$ac_t""$GTK_CONFIG_2_0" 1>&6
6f72b082 10159else
698dcdb6 10160 echo "$ac_t""no" 1>&6
6f72b082
OK
10161fi
10162
10163 min_gtk_version=1.3.1
698dcdb6 10164 echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
a1622950 10165echo "configure:10166: checking for GTK - version >= $min_gtk_version" >&5
6f72b082
OK
10166 no_gtk=""
10167 if test "$GTK_CONFIG_2_0" = "no" ; then
10168 no_gtk=yes
10169 else
10170 GTK_CFLAGS=`$GTK_CONFIG_2_0 $gtk_config_args --cflags`
10171 GTK_LIBS=`$GTK_CONFIG_2_0 $gtk_config_args --libs`
10172 gtk_config_major_version=`$GTK_CONFIG_2_0 $gtk_config_args --version | \
10173 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
10174 gtk_config_minor_version=`$GTK_CONFIG_2_0 $gtk_config_args --version | \
10175 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
10176 gtk_config_micro_version=`$GTK_CONFIG_2_0 $gtk_config_args --version | \
10177 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
10178 if test "x$enable_gtktest" = "xyes" ; then
10179 ac_save_CFLAGS="$CFLAGS"
10180 ac_save_LIBS="$LIBS"
10181 CFLAGS="$CFLAGS $GTK_CFLAGS"
10182 LIBS="$GTK_LIBS $LIBS"
10183 rm -f conf.gtktest
10184 if test "$cross_compiling" = yes; then
10185 echo $ac_n "cross compiling; assumed OK... $ac_c"
10186else
698dcdb6 10187 cat > conftest.$ac_ext <<EOF
a1622950 10188#line 10189 "configure"
6f72b082
OK
10189#include "confdefs.h"
10190
10191#include <gtk/gtk.h>
10192#include <stdio.h>
10193#include <stdlib.h>
10194
8168de4c 10195int
6f72b082
OK
10196main ()
10197{
10198 int major, minor, micro;
10199 char *tmp_version;
10200
10201 system ("touch conf.gtktest");
10202
10203 /* HP/UX 9 (%@#!) writes to sscanf strings */
10204 tmp_version = g_strdup("$min_gtk_version");
10205 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
10206 printf("%s, bad version string\n", "$min_gtk_version");
10207 exit(1);
10208 }
10209
10210 if ((gtk_major_version != $gtk_config_major_version) ||
10211 (gtk_minor_version != $gtk_config_minor_version) ||
10212 (gtk_micro_version != $gtk_config_micro_version))
10213 {
8168de4c 10214 printf("\n*** 'gtk-config-2.0 --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
6f72b082
OK
10215 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
10216 gtk_major_version, gtk_minor_version, gtk_micro_version);
10217 printf ("*** was found! If gtk-config-2.0 was correct, then it is best\n");
10218 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
10219 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
10220 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
10221 printf("*** required on your system.\n");
10222 printf("*** If gtk-config-2.0 was wrong, set the environment variable GTK_CONFIG_2_0\n");
10223 printf("*** to point to the correct copy of gtk-config-2.0, and remove the file config.cache\n");
10224 printf("*** before re-running configure\n");
8168de4c 10225 }
6f72b082
OK
10226#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
10227 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
8168de4c 10228 (gtk_minor_version != GTK_MINOR_VERSION) ||
6f72b082
OK
10229 (gtk_micro_version != GTK_MICRO_VERSION))
10230 {
10231 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
8168de4c 10232 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
6f72b082 10233 printf("*** library (version %d.%d.%d)\n",
8168de4c 10234 gtk_major_version, gtk_minor_version, gtk_micro_version);
6f72b082
OK
10235 }
10236#endif /* defined (GTK_MAJOR_VERSION) ... */
10237 else
10238 {
10239 if ((gtk_major_version > major) ||
10240 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
10241 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
10242 {
10243 return 0;
10244 }
10245 else
10246 {
10247 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
10248 gtk_major_version, gtk_minor_version, gtk_micro_version);
10249 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
8168de4c 10250 major, minor, micro);
6f72b082
OK
10251 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
10252 printf("***\n");
10253 printf("*** If you have already installed a sufficiently new version, this error\n");
10254 printf("*** probably means that the wrong copy of the gtk-config-2.0 shell script is\n");
10255 printf("*** being found. The easiest way to fix this is to remove the old version\n");
10256 printf("*** of GTK+, but you can also set the GTK_CONFIG_2_0 environment to point to the\n");
10257 printf("*** correct copy of gtk-config-2.0. (In this case, you will have to\n");
10258 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
10259 printf("*** so that the correct libraries are found at run-time))\n");
10260 }
10261 }
10262 return 1;
10263}
10264
698dcdb6 10265EOF
a1622950 10266if { (eval echo configure:10267: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
698dcdb6 10267then
6f72b082
OK
10268 :
10269else
698dcdb6
VZ
10270 echo "configure: failed program was:" >&5
10271 cat conftest.$ac_ext >&5
10272 rm -fr conftest*
10273 no_gtk=yes
6f72b082 10274fi
698dcdb6 10275rm -fr conftest*
6f72b082 10276fi
698dcdb6 10277
6f72b082
OK
10278 CFLAGS="$ac_save_CFLAGS"
10279 LIBS="$ac_save_LIBS"
10280 fi
10281 fi
10282 if test "x$no_gtk" = x ; then
698dcdb6 10283 echo "$ac_t""yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" 1>&6
8168de4c 10284 wx_cv_lib_gtk=2.0
6f72b082 10285 else
698dcdb6 10286 echo "$ac_t""no" 1>&6
6f72b082
OK
10287 if test "$GTK_CONFIG_2_0" = "no" ; then
10288 echo "*** The gtk-config-2.0 script installed by GTK could not be found"
10289 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
10290 echo "*** your path, or set the GTK_CONFIG_2_0 environment variable to the"
10291 echo "*** full path to gtk-config-2.0."
10292 else
10293 if test -f conf.gtktest ; then
10294 :
10295 else
10296 echo "*** Could not run GTK test program, checking why..."
10297 CFLAGS="$CFLAGS $GTK_CFLAGS"
10298 LIBS="$LIBS $GTK_LIBS"
698dcdb6 10299 cat > conftest.$ac_ext <<EOF
a1622950 10300#line 10301 "configure"
6f72b082
OK
10301#include "confdefs.h"
10302
10303#include <gtk/gtk.h>
10304#include <stdio.h>
10305
698dcdb6
VZ
10306int main() {
10307 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
10308; return 0; }
10309EOF
a1622950 10310if { (eval echo configure:10311: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6 10311 rm -rf conftest*
6f72b082
OK
10312 echo "*** The test program compiled, but did not run. This usually means"
10313 echo "*** that the run-time linker is not finding GTK or finding the wrong"
10314 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
10315 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
10316 echo "*** to the installed location Also, make sure you have run ldconfig if that"
10317 echo "*** is required on your system"
8168de4c 10318 echo "***"
6f72b082
OK
10319 echo "*** If you have an old version installed, it is best to remove it, although"
10320 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
10321 echo "***"
10322 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
10323 echo "*** came with the system with the command"
10324 echo "***"
698dcdb6 10325 echo "*** rpm --erase --nodeps gtk gtk-devel"
6f72b082 10326else
698dcdb6
VZ
10327 echo "configure: failed program was:" >&5
10328 cat conftest.$ac_ext >&5
10329 rm -rf conftest*
10330 echo "*** The test program failed to compile or link. See the file config.log for the"
6f72b082
OK
10331 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
10332 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
698dcdb6 10333 echo "*** may want to edit the gtk-config-2.0 script: $GTK_CONFIG_2_0"
6f72b082 10334fi
698dcdb6 10335rm -f conftest*
6f72b082
OK
10336 CFLAGS="$ac_save_CFLAGS"
10337 LIBS="$ac_save_LIBS"
10338 fi
10339 fi
10340 GTK_CFLAGS=""
10341 GTK_LIBS=""
3f345b47 10342 :
8168de4c
VZ
10343 fi
10344
10345
10346 rm -f conf.gtktest
10347
10348 fi
10349
10350 if test -z "$wx_cv_lib_gtk"; then
3f345b47
VZ
10351 # Check whether --with-gtk-prefix or --without-gtk-prefix was given.
10352if test "${with_gtk_prefix+set}" = set; then
10353 withval="$with_gtk_prefix"
10354 gtk_config_prefix="$withval"
10355else
10356 gtk_config_prefix=""
10357fi
10358
10359# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
10360if test "${with_gtk_exec_prefix+set}" = set; then
10361 withval="$with_gtk_exec_prefix"
10362 gtk_config_exec_prefix="$withval"
10363else
10364 gtk_config_exec_prefix=""
10365fi
10366
10367# Check whether --enable-gtktest or --disable-gtktest was given.
10368if test "${enable_gtktest+set}" = set; then
10369 enableval="$enable_gtktest"
10370 :
10371else
10372 enable_gtktest=yes
10373fi
10374
10375
10376 for module in . $GTK_MODULES
10377 do
10378 case "$module" in
10379 gthread)
10380 gtk_config_args="$gtk_config_args gthread"
10381 ;;
10382 esac
10383 done
10384
10f2d63a
VZ
10385 if test x$gtk_config_exec_prefix != x ; then
10386 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
10387 if test x${GTK_CONFIG+set} != xset ; then
10388 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
10389 fi
10390 fi
10391 if test x$gtk_config_prefix != x ; then
10392 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
10393 if test x${GTK_CONFIG+set} != xset ; then
10394 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
10395 fi
10396 fi
10397
10398 # Extract the first word of "gtk-config", so it can be a program name with args.
10399set dummy gtk-config; ac_word=$2
698dcdb6 10400echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
a1622950 10401echo "configure:10402: checking for $ac_word" >&5
698dcdb6
VZ
10402if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
10403 echo $ac_n "(cached) $ac_c" 1>&6
f6bcfd97 10404else
698dcdb6
VZ
10405 case "$GTK_CONFIG" in
10406 /*)
f6bcfd97
BP
10407 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
10408 ;;
698dcdb6
VZ
10409 ?:/*)
10410 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path.
10411 ;;
f6bcfd97 10412 *)
698dcdb6
VZ
10413 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
10414 ac_dummy="$PATH"
10415 for ac_dir in $ac_dummy; do
10416 test -z "$ac_dir" && ac_dir=.
10417 if test -f $ac_dir/$ac_word; then
10418 ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
10419 break
10420 fi
10421 done
10422 IFS="$ac_save_ifs"
f6bcfd97
BP
10423 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
10424 ;;
10425esac
10426fi
698dcdb6 10427GTK_CONFIG="$ac_cv_path_GTK_CONFIG"
f6bcfd97 10428if test -n "$GTK_CONFIG"; then
698dcdb6 10429 echo "$ac_t""$GTK_CONFIG" 1>&6
f6bcfd97 10430else
698dcdb6 10431 echo "$ac_t""no" 1>&6
f6bcfd97
BP
10432fi
10433
10434 min_gtk_version=1.2.7
698dcdb6 10435 echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
a1622950 10436echo "configure:10437: checking for GTK - version >= $min_gtk_version" >&5
f6bcfd97 10437 no_gtk=""
3f345b47
VZ
10438 if test "$GTK_CONFIG" = "no" ; then
10439 no_gtk=yes
10440 else
10441 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
10442 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
10443 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
10444 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
10445 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
10446 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
10447 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
10448 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
10449 if test "x$enable_gtktest" = "xyes" ; then
10450 ac_save_CFLAGS="$CFLAGS"
10451 ac_save_LIBS="$LIBS"
10452 CFLAGS="$CFLAGS $GTK_CFLAGS"
10453 LIBS="$GTK_LIBS $LIBS"
10454 rm -f conf.gtktest
10455 if test "$cross_compiling" = yes; then
f6bcfd97
BP
10456 echo $ac_n "cross compiling; assumed OK... $ac_c"
10457else
698dcdb6 10458 cat > conftest.$ac_ext <<EOF
a1622950 10459#line 10460 "configure"
f6bcfd97
BP
10460#include "confdefs.h"
10461
10462#include <gtk/gtk.h>
f6bcfd97
BP
10463#include <stdio.h>
10464#include <stdlib.h>
10465
3f345b47 10466int
f6bcfd97
BP
10467main ()
10468{
10469 int major, minor, micro;
3f345b47 10470 char *tmp_version;
f6bcfd97 10471
3f345b47 10472 system ("touch conf.gtktest");
f6bcfd97 10473
3f345b47
VZ
10474 /* HP/UX 9 (%@#!) writes to sscanf strings */
10475 tmp_version = g_strdup("$min_gtk_version");
10476 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
10477 printf("%s, bad version string\n", "$min_gtk_version");
f6bcfd97
BP
10478 exit(1);
10479 }
10480
3f345b47
VZ
10481 if ((gtk_major_version != $gtk_config_major_version) ||
10482 (gtk_minor_version != $gtk_config_minor_version) ||
10483 (gtk_micro_version != $gtk_config_micro_version))
10484 {
10485 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
10486 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
10487 gtk_major_version, gtk_minor_version, gtk_micro_version);
10488 printf ("*** was found! If gtk-config was correct, then it is best\n");
10489 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
10490 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
10491 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
10492 printf("*** required on your system.\n");
10493 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
10494 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
10495 printf("*** before re-running configure\n");
10496 }
10497#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
10498 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
10499 (gtk_minor_version != GTK_MINOR_VERSION) ||
10500 (gtk_micro_version != GTK_MICRO_VERSION))
10501 {
10502 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
10503 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
10504 printf("*** library (version %d.%d.%d)\n",
10505 gtk_major_version, gtk_minor_version, gtk_micro_version);
10506 }
10507#endif /* defined (GTK_MAJOR_VERSION) ... */
10508 else
10509 {
10510 if ((gtk_major_version > major) ||
10511 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
10512 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
10513 {
10514 return 0;
10515 }
10516 else
10517 {
10518 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
10519 gtk_major_version, gtk_minor_version, gtk_micro_version);
10520 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
10521 major, minor, micro);
10522 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
10523 printf("***\n");
10524 printf("*** If you have already installed a sufficiently new version, this error\n");
10525 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
10526 printf("*** being found. The easiest way to fix this is to remove the old version\n");
10527 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
10528 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
10529 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
10530 printf("*** so that the correct libraries are found at run-time))\n");
10531 }
10532 }
10533 return 1;
f6bcfd97
BP
10534}
10535
698dcdb6 10536EOF
a1622950 10537if { (eval echo configure:10538: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
698dcdb6 10538then
f6bcfd97
BP
10539 :
10540else
698dcdb6
VZ
10541 echo "configure: failed program was:" >&5
10542 cat conftest.$ac_ext >&5
10543 rm -fr conftest*
10544 no_gtk=yes
f6bcfd97 10545fi
698dcdb6 10546rm -fr conftest*
f6bcfd97 10547fi
698dcdb6 10548
3f345b47
VZ
10549 CFLAGS="$ac_save_CFLAGS"
10550 LIBS="$ac_save_LIBS"
10551 fi
f6bcfd97
BP
10552 fi
10553 if test "x$no_gtk" = x ; then
698dcdb6 10554 echo "$ac_t""yes" 1>&6
3f345b47 10555 wx_cv_lib_gtk=1.2.7
f6bcfd97 10556 else
698dcdb6 10557 echo "$ac_t""no" 1>&6
3f345b47
VZ
10558 if test "$GTK_CONFIG" = "no" ; then
10559 echo "*** The gtk-config script installed by GTK could not be found"
10560 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
10561 echo "*** your path, or set the GTK_CONFIG environment variable to the"
10562 echo "*** full path to gtk-config."
10563 else
10564 if test -f conf.gtktest ; then
10565 :
10566 else
10567 echo "*** Could not run GTK test program, checking why..."
10568 CFLAGS="$CFLAGS $GTK_CFLAGS"
10569 LIBS="$LIBS $GTK_LIBS"
10570 cat > conftest.$ac_ext <<EOF
a1622950 10571#line 10572 "configure"
3f345b47
VZ
10572#include "confdefs.h"
10573
10574#include <gtk/gtk.h>
10575#include <stdio.h>
10576
10577int main() {
10578 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
10579; return 0; }
10580EOF
a1622950 10581if { (eval echo configure:10582: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3f345b47
VZ
10582 rm -rf conftest*
10583 echo "*** The test program compiled, but did not run. This usually means"
10584 echo "*** that the run-time linker is not finding GTK or finding the wrong"
10585 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
10586 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
10587 echo "*** to the installed location Also, make sure you have run ldconfig if that"
10588 echo "*** is required on your system"
10589 echo "***"
10590 echo "*** If you have an old version installed, it is best to remove it, although"
10591 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
10592 echo "***"
10593 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
10594 echo "*** came with the system with the command"
10595 echo "***"
10596 echo "*** rpm --erase --nodeps gtk gtk-devel"
10597else
10598 echo "configure: failed program was:" >&5
10599 cat conftest.$ac_ext >&5
10600 rm -rf conftest*
10601 echo "*** The test program failed to compile or link. See the file config.log for the"
10602 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
10603 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
10604 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
10605fi
10606rm -f conftest*
10607 CFLAGS="$ac_save_CFLAGS"
10608 LIBS="$ac_save_LIBS"
10609 fi
10610 fi
f6bcfd97
BP
10611 GTK_CFLAGS=""
10612 GTK_LIBS=""
10613 :
10614 fi
698dcdb6
VZ
10615
10616
3f345b47 10617 rm -f conf.gtktest
f6bcfd97 10618
8168de4c
VZ
10619 fi
10620
10621 if test -z "$wx_cv_lib_gtk"; then
3f345b47
VZ
10622 # Check whether --with-gtk-prefix or --without-gtk-prefix was given.
10623if test "${with_gtk_prefix+set}" = set; then
10624 withval="$with_gtk_prefix"
10625 gtk_config_prefix="$withval"
10626else
10627 gtk_config_prefix=""
10628fi
10629
10630# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
10631if test "${with_gtk_exec_prefix+set}" = set; then
10632 withval="$with_gtk_exec_prefix"
10633 gtk_config_exec_prefix="$withval"
10634else
10635 gtk_config_exec_prefix=""
10636fi
10637
10638# Check whether --enable-gtktest or --disable-gtktest was given.
10639if test "${enable_gtktest+set}" = set; then
10640 enableval="$enable_gtktest"
10641 :
10642else
10643 enable_gtktest=yes
10644fi
10645
10646
10647 for module in . $GTK_MODULES
10648 do
10649 case "$module" in
10650 gthread)
10651 gtk_config_args="$gtk_config_args gthread"
10652 ;;
10653 esac
10654 done
10655
f6bcfd97
BP
10656 if test x$gtk_config_exec_prefix != x ; then
10657 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
10658 if test x${GTK_CONFIG+set} != xset ; then
10659 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
10660 fi
10661 fi
10662 if test x$gtk_config_prefix != x ; then
10663 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
10664 if test x${GTK_CONFIG+set} != xset ; then
10665 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
10666 fi
10667 fi
10668
10669 # Extract the first word of "gtk-config", so it can be a program name with args.
10670set dummy gtk-config; ac_word=$2
698dcdb6 10671echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
a1622950 10672echo "configure:10673: checking for $ac_word" >&5
698dcdb6
VZ
10673if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
10674 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 10675else
698dcdb6
VZ
10676 case "$GTK_CONFIG" in
10677 /*)
10f2d63a
VZ
10678 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
10679 ;;
698dcdb6
VZ
10680 ?:/*)
10681 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path.
10682 ;;
10f2d63a 10683 *)
698dcdb6
VZ
10684 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
10685 ac_dummy="$PATH"
10686 for ac_dir in $ac_dummy; do
10687 test -z "$ac_dir" && ac_dir=.
10688 if test -f $ac_dir/$ac_word; then
10689 ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
10690 break
10691 fi
10692 done
10693 IFS="$ac_save_ifs"
10f2d63a
VZ
10694 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
10695 ;;
10696esac
10697fi
698dcdb6 10698GTK_CONFIG="$ac_cv_path_GTK_CONFIG"
10f2d63a 10699if test -n "$GTK_CONFIG"; then
698dcdb6 10700 echo "$ac_t""$GTK_CONFIG" 1>&6
10f2d63a 10701else
698dcdb6 10702 echo "$ac_t""no" 1>&6
10f2d63a
VZ
10703fi
10704
04165bec 10705 min_gtk_version=1.2.3
698dcdb6 10706 echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
a1622950 10707echo "configure:10708: checking for GTK - version >= $min_gtk_version" >&5
10f2d63a 10708 no_gtk=""
3f345b47
VZ
10709 if test "$GTK_CONFIG" = "no" ; then
10710 no_gtk=yes
10711 else
10712 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
10713 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
10714 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
10715 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
10716 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
10717 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
10718 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
10719 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
10720 if test "x$enable_gtktest" = "xyes" ; then
10721 ac_save_CFLAGS="$CFLAGS"
10722 ac_save_LIBS="$LIBS"
10723 CFLAGS="$CFLAGS $GTK_CFLAGS"
10724 LIBS="$GTK_LIBS $LIBS"
10725 rm -f conf.gtktest
10726 if test "$cross_compiling" = yes; then
10f2d63a
VZ
10727 echo $ac_n "cross compiling; assumed OK... $ac_c"
10728else
698dcdb6 10729 cat > conftest.$ac_ext <<EOF
a1622950 10730#line 10731 "configure"
10f2d63a
VZ
10731#include "confdefs.h"
10732
10733#include <gtk/gtk.h>
10734#include <stdio.h>
32832908 10735#include <stdlib.h>
10f2d63a 10736
3f345b47 10737int
10f2d63a
VZ
10738main ()
10739{
10740 int major, minor, micro;
3f345b47 10741 char *tmp_version;
10f2d63a 10742
3f345b47 10743 system ("touch conf.gtktest");
10f2d63a 10744
3f345b47
VZ
10745 /* HP/UX 9 (%@#!) writes to sscanf strings */
10746 tmp_version = g_strdup("$min_gtk_version");
10747 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
10748 printf("%s, bad version string\n", "$min_gtk_version");
f49f2b0c
RR
10749 exit(1);
10750 }
10751
3f345b47
VZ
10752 if ((gtk_major_version != $gtk_config_major_version) ||
10753 (gtk_minor_version != $gtk_config_minor_version) ||
10754 (gtk_micro_version != $gtk_config_micro_version))
10755 {
10756 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
10757 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
10758 gtk_major_version, gtk_minor_version, gtk_micro_version);
10759 printf ("*** was found! If gtk-config was correct, then it is best\n");
10760 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
10761 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
10762 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
10763 printf("*** required on your system.\n");
10764 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
10765 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
10766 printf("*** before re-running configure\n");
10767 }
10768#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
10769 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
10770 (gtk_minor_version != GTK_MINOR_VERSION) ||
10771 (gtk_micro_version != GTK_MICRO_VERSION))
10772 {
10773 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
10774 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
10775 printf("*** library (version %d.%d.%d)\n",
10776 gtk_major_version, gtk_minor_version, gtk_micro_version);
10777 }
10778#endif /* defined (GTK_MAJOR_VERSION) ... */
10779 else
10780 {
10781 if ((gtk_major_version > major) ||
10782 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
10783 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
10784 {
10785 return 0;
10786 }
10787 else
10788 {
10789 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
10790 gtk_major_version, gtk_minor_version, gtk_micro_version);
10791 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
10792 major, minor, micro);
10793 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
10794 printf("***\n");
10795 printf("*** If you have already installed a sufficiently new version, this error\n");
10796 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
10797 printf("*** being found. The easiest way to fix this is to remove the old version\n");
10798 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
10799 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
10800 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
10801 printf("*** so that the correct libraries are found at run-time))\n");
10802 }
10803 }
10804 return 1;
10f2d63a
VZ
10805}
10806
698dcdb6 10807EOF
a1622950 10808if { (eval echo configure:10809: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
698dcdb6 10809then
10f2d63a
VZ
10810 :
10811else
698dcdb6
VZ
10812 echo "configure: failed program was:" >&5
10813 cat conftest.$ac_ext >&5
10814 rm -fr conftest*
10815 no_gtk=yes
10f2d63a 10816fi
698dcdb6 10817rm -fr conftest*
10f2d63a 10818fi
698dcdb6 10819
3f345b47
VZ
10820 CFLAGS="$ac_save_CFLAGS"
10821 LIBS="$ac_save_LIBS"
10822 fi
10f2d63a
VZ
10823 fi
10824 if test "x$no_gtk" = x ; then
698dcdb6 10825 echo "$ac_t""yes" 1>&6
3f345b47 10826 wx_cv_lib_gtk=1.2.3
10f2d63a 10827 else
698dcdb6 10828 echo "$ac_t""no" 1>&6
3f345b47
VZ
10829 if test "$GTK_CONFIG" = "no" ; then
10830 echo "*** The gtk-config script installed by GTK could not be found"
10831 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
10832 echo "*** your path, or set the GTK_CONFIG environment variable to the"
10833 echo "*** full path to gtk-config."
10834 else
10835 if test -f conf.gtktest ; then
10836 :
10837 else
10838 echo "*** Could not run GTK test program, checking why..."
10839 CFLAGS="$CFLAGS $GTK_CFLAGS"
10840 LIBS="$LIBS $GTK_LIBS"
10841 cat > conftest.$ac_ext <<EOF
a1622950 10842#line 10843 "configure"
3f345b47
VZ
10843#include "confdefs.h"
10844
10845#include <gtk/gtk.h>
10846#include <stdio.h>
10847
10848int main() {
10849 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
10850; return 0; }
10851EOF
a1622950 10852if { (eval echo configure:10853: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3f345b47
VZ
10853 rm -rf conftest*
10854 echo "*** The test program compiled, but did not run. This usually means"
10855 echo "*** that the run-time linker is not finding GTK or finding the wrong"
10856 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
10857 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
10858 echo "*** to the installed location Also, make sure you have run ldconfig if that"
10859 echo "*** is required on your system"
10860 echo "***"
10861 echo "*** If you have an old version installed, it is best to remove it, although"
10862 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
10863 echo "***"
10864 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
10865 echo "*** came with the system with the command"
10866 echo "***"
10867 echo "*** rpm --erase --nodeps gtk gtk-devel"
10868else
10869 echo "configure: failed program was:" >&5
10870 cat conftest.$ac_ext >&5
10871 rm -rf conftest*
10872 echo "*** The test program failed to compile or link. See the file config.log for the"
10873 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
10874 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
10875 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
10876fi
10877rm -f conftest*
10878 CFLAGS="$ac_save_CFLAGS"
10879 LIBS="$ac_save_LIBS"
10880 fi
10881 fi
10f2d63a
VZ
10882 GTK_CFLAGS=""
10883 GTK_LIBS=""
7e99ad86 10884 :
10f2d63a 10885 fi
698dcdb6
VZ
10886
10887
3f345b47 10888 rm -f conf.gtktest
10f2d63a 10889
8168de4c
VZ
10890 fi
10891
10892 if test -z "$wx_cv_lib_gtk"; then
10893 wx_cv_lib_gtk=none
138be253
VZ
10894 else
10895 wx_cv_cflags_gtk=$GTK_CFLAGS
10896 wx_cv_libs_gtk=$GTK_LIBS
8168de4c
VZ
10897 fi
10898
1e6feb95 10899
8168de4c 10900fi
703e0a69 10901
698dcdb6 10902
8168de4c
VZ
10903 if test "$gtk_version_cached" = 1; then
10904 echo "$ac_t""$wx_cv_lib_gtk" 1>&6
1e6feb95 10905 fi
698dcdb6 10906
8168de4c
VZ
10907 case "$wx_cv_lib_gtk" in
10908 2.0) WXGTK20=1
10909 ;;
10910 1.2.7) WXGTK127=1
d1a8d972 10911 WXGTK12=1
8168de4c
VZ
10912 ;;
10913 1.2.3) WXGTK12=1
10914 ;;
10915 *) { echo "configure: error:
10916Please check that gtk-config is in path, the directory
10917where GTK+ libraries are installed (returned by
10918'gtk-config --libs' command) is in LD_LIBRARY_PATH or
10919equivalent variable and GTK+ is version 1.2.3 or above.
10920 " 1>&2; exit 1; }
10921 ;;
10922 esac
2224580a 10923
138be253 10924 TOOLKIT_INCLUDE="$wx_cv_cflags_gtk"
11dfaa5f 10925 GUI_TK_LIBRARY="$wx_cv_libs_gtk"
698dcdb6 10926
1e6feb95
VZ
10927 AFMINSTALL=afminstall
10928 TOOLKIT=GTK
10929 GUIDIST=GTK_DIST
7ec2881a 10930
1e6feb95 10931 echo $ac_n "checking for gdk_im_open in -lgdk""... $ac_c" 1>&6
a1622950 10932echo "configure:10933: checking for gdk_im_open in -lgdk" >&5
698dcdb6
VZ
10933ac_lib_var=`echo gdk'_'gdk_im_open | sed 'y%./+-%__p_%'`
10934if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10935 echo $ac_n "(cached) $ac_c" 1>&6
7ec2881a 10936else
698dcdb6 10937 ac_save_LIBS="$LIBS"
7ec2881a 10938LIBS="-lgdk $LIBS"
698dcdb6 10939cat > conftest.$ac_ext <<EOF
a1622950 10940#line 10941 "configure"
7ec2881a
RR
10941#include "confdefs.h"
10942/* Override any gcc2 internal prototype to avoid an error. */
10943/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
10944 builtin and then its argument prototype would still apply. */
10945char gdk_im_open();
10946
10947int main() {
10948gdk_im_open()
10949; return 0; }
10950EOF
a1622950 10951if { (eval echo configure:10952: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
10952 rm -rf conftest*
10953 eval "ac_cv_lib_$ac_lib_var=yes"
10954else
10955 echo "configure: failed program was:" >&5
10956 cat conftest.$ac_ext >&5
10957 rm -rf conftest*
10958 eval "ac_cv_lib_$ac_lib_var=no"
10959fi
10960rm -f conftest*
10961LIBS="$ac_save_LIBS"
10962
10963fi
10964if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10965 echo "$ac_t""yes" 1>&6
10966 cat >> confdefs.h <<\EOF
7ec2881a
RR
10967#define HAVE_XIM 1
10968EOF
10969
698dcdb6
VZ
10970else
10971 echo "$ac_t""no" 1>&6
7ec2881a
RR
10972fi
10973
1e6feb95 10974 fi
10f2d63a 10975
1e6feb95 10976 if test "$wxUSE_MGL" = 1; then
1e6feb95 10977 echo $ac_n "checking for SciTech MGL library""... $ac_c" 1>&6
a1622950 10978echo "configure:10979: checking for SciTech MGL library" >&5
1e6feb95
VZ
10979 if test "x$MGL_ROOT" = x ; then
10980 echo "$ac_t""not found" 1>&6
10981 { echo "configure: error: Cannot find MGL library. Make sure MGL_ROOT is set." 1>&2; exit 1; }
10982 else
10983 echo "$ac_t""$MGL_ROOT" 1>&6
10984 fi
10985
f9bc1684
VS
10986 case "${host}" in
10987 *-*-linux* )
10988 mgl_os=linux/gcc/glibc
10989 ;;
10990 *-pc-msdosdjgpp )
10991 mgl_os=dos32/dj2
10992 ;;
10993 *)
10994 { echo "configure: error: This system type ${host} is not yet supported by wxMGL." 1>&2; exit 1; }
10995 esac
10996
3a922bb4 10997 mgl_lib_type=""
1e6feb95
VZ
10998
10999 if test "$wxUSE_DEBUG_FLAG" = yes ; then
223e7fbf
VS
11000 if test -f $MGL_ROOT/lib/debug/$mgl_os/libmgl.a -o \
11001 -f $MGL_ROOT/lib/debug/$mgl_os/libmgl.so; then
3a922bb4 11002 mgl_lib_type=debug
1e6feb95
VZ
11003 fi
11004 fi
3a922bb4 11005 if test "x$mgl_lib_type" = x ; then
223e7fbf
VS
11006 if test -f $MGL_ROOT/lib/release/$mgl_os/libmgl.a -o \
11007 -f $MGL_ROOT/lib/release/$mgl_os/libmgl.so; then
3a922bb4 11008 mgl_lib_type=release
1e6feb95
VZ
11009 else
11010 { echo "configure: error: Cannot find MGL libraries, make sure they are compiled." 1>&2; exit 1; }
11011 fi
11012 fi
11013
11014 TOOLKIT_INCLUDE="-I$MGL_ROOT/include"
3a922bb4 11015 GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$mgl_lib_type/$mgl_os -lmgl -lmglcpp -lpm"
1e6feb95
VZ
11016
11017 AFMINSTALL=afminstall
11018 TOOLKIT=MGL
11019 GUIDIST=MGL_DIST
11020 fi
11021
1725144d
RR
11022 if test "$wxUSE_MICROWIN" = 1; then
11023 echo $ac_n "checking for MicroWindows""... $ac_c" 1>&6
a1622950 11024echo "configure:11025: checking for MicroWindows" >&5
1725144d
RR
11025 if test "x$MICROWINDOWS" = x ; then
11026 echo "$ac_t""not found" 1>&6
11027 { echo "configure: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." 1>&2; exit 1; }
11028 else
11029 echo "$ac_t""$MICROWINDOWS" 1>&6
11030 fi
11031
11032 if test -f $MICROWINDOWS/lib/libmwin.a; then
11033 echo "$ac_t""MicroWindows' libraries found." 1>&6
11034 else
11035 { echo "configure: error: Cannot find MicroWindows libraries, make sure they are compiled." 1>&2; exit 1; }
11036 fi
11037
11038 TOOLKIT_INCLUDE="-I$MICROWINDOWS/include"
11039 GUI_TK_LIBRARY="-L$MICROWINDOWS/lib -lmwin -lmwengine -mwfonts -mwdrivers -mwinlib"
11040
11041 AFMINSTALL=afminstall
11042 TOOLKIT=MICROWIN
11043 GUIDIST=MICROWIN_DIST
11044
11045 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__ -D__WXMSW__ -D__WIN95__ -D__WIN32__ -DMWIN -DMICROWIN_NOCONTROLS -DMICROWIN_TODO=1"
11046 fi
11047
1e6feb95 11048 if test "$wxUSE_WINE" = 1; then
3a922bb4
RL
11049 ac_safe=`echo "windows.h" | sed 'y%./+-%__p_%'`
11050echo $ac_n "checking for windows.h""... $ac_c" 1>&6
a1622950 11051echo "configure:11052: checking for windows.h" >&5
3a922bb4
RL
11052if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11053 echo $ac_n "(cached) $ac_c" 1>&6
11054else
11055 cat > conftest.$ac_ext <<EOF
a1622950 11056#line 11057 "configure"
3a922bb4
RL
11057#include "confdefs.h"
11058#include <windows.h>
11059EOF
11060ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
a1622950 11061{ (eval echo configure:11062: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3a922bb4
RL
11062ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11063if test -z "$ac_err"; then
11064 rm -rf conftest*
11065 eval "ac_cv_header_$ac_safe=yes"
11066else
11067 echo "$ac_err" >&5
11068 echo "configure: failed program was:" >&5
11069 cat conftest.$ac_ext >&5
11070 rm -rf conftest*
11071 eval "ac_cv_header_$ac_safe=no"
11072fi
11073rm -f conftest*
11074fi
11075if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11076 echo "$ac_t""yes" 1>&6
11077 :
11078else
11079 echo "$ac_t""no" 1>&6
10f2d63a 11080
1e6feb95 11081 { echo "configure: error: please set CFLAGS to contain the location of windows.h" 1>&2; exit 1; }
3a922bb4
RL
11082
11083fi
11084
10f2d63a 11085
3d63bc3a 11086 xpm_link=
1e6feb95 11087 echo $ac_n "checking for Xpm library""... $ac_c" 1>&6
a1622950 11088echo "configure:11089: checking for Xpm library" >&5
1e6feb95 11089
10f2d63a
VZ
11090ac_find_libraries=
11091for ac_dir in $SEARCH_LIB;
11092 do
f11bdd03 11093 for ac_extension in a so sl dylib; do
10f2d63a
VZ
11094 if test -f "$ac_dir/libXpm.$ac_extension"; then
11095 ac_find_libraries=$ac_dir
11096 break 2
11097 fi
11098 done
11099 done
11100
1e6feb95
VZ
11101 if test "$ac_find_libraries" != "" ; then
11102 GUI_TK_LIBRARY="-L$ac_find_libraries"
3d63bc3a 11103 xpm_link=" -lXpm"
1e6feb95 11104 cat >> confdefs.h <<\EOF
10f2d63a
VZ
11105#define wxHAVE_LIB_XPM 1
11106EOF
11107
1e6feb95
VZ
11108 echo "$ac_t""found at $ac_find_libraries" 1>&6
11109 else
11110 echo "$ac_t""no" 1>&6
11111 echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2
11112 fi
10f2d63a 11113
3d63bc3a 11114 mesa_link=
1e6feb95 11115 echo $ac_n "checking for Mesa library""... $ac_c" 1>&6
a1622950 11116echo "configure:11117: checking for Mesa library" >&5
1e6feb95 11117
10f2d63a
VZ
11118ac_find_libraries=
11119for ac_dir in $SEARCH_LIB;
11120 do
f11bdd03 11121 for ac_extension in a so sl dylib; do
10f2d63a
VZ
11122 if test -f "$ac_dir/libMesaGL.$ac_extension"; then
11123 ac_find_libraries=$ac_dir
11124 break 2
11125 fi
11126 done
11127 done
11128
1e6feb95
VZ
11129 if test "$ac_find_libraries" != "" ; then
11130 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -L$ac_find_libraries"
3d63bc3a 11131 mesa_link=" -lMesaGL"
1e6feb95
VZ
11132 echo "$ac_t""found at $ac_find_libraries" 1>&6
11133 else
11134 { echo "configure: error: no" 1>&2; exit 1; }
11135 fi
10f2d63a 11136
3d63bc3a 11137 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lwine$mesa_link$xpm_link -lXxf86dga -lXxf86vm -lSM -lICE -lXext -lXmu -lX11 -lncurses"
1e6feb95
VZ
11138 TOOLKIT=MSW
11139 GUIDIST=MSW_DIST
3a922bb4 11140 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXWINE__"
1e6feb95 11141 fi
698dcdb6 11142
d714471b
VZ
11143 if test "$wxUSE_MOTIF" = 1; then
11144 # If we find X, set shell vars x_includes and x_libraries to the
698dcdb6
VZ
11145# paths, otherwise set no_x=yes.
11146# Uses ac_ vars as temps to allow command line to override cache and checks.
11147# --without-x overrides everything else, but does not touch the cache.
11148echo $ac_n "checking for X""... $ac_c" 1>&6
a1622950 11149echo "configure:11150: checking for X" >&5
ab9b9eab
VZ
11150
11151# Check whether --with-x or --without-x was given.
11152if test "${with_x+set}" = set; then
11153 withval="$with_x"
698dcdb6
VZ
11154 :
11155fi
ba337fe7 11156
ab9b9eab
VZ
11157# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
11158if test "x$with_x" = xno; then
11159 # The user explicitly disabled X.
11160 have_x=disabled
11161else
11162 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
11163 # Both variables are already set.
11164 have_x=yes
11165 else
698dcdb6
VZ
11166if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
11167 echo $ac_n "(cached) $ac_c" 1>&6
ab9b9eab
VZ
11168else
11169 # One or both of the vars are not set, and there is no cached value.
698dcdb6
VZ
11170ac_x_includes=NO ac_x_libraries=NO
11171rm -fr conftestdir
11172if mkdir conftestdir; then
11173 cd conftestdir
ab9b9eab 11174 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
698dcdb6 11175 cat > Imakefile <<'EOF'
ab9b9eab
VZ
11176acfindx:
11177 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
11178EOF
11179 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
11180 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
11181 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
11182 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
10f2d63a 11183 for ac_extension in a so sl; do
ab9b9eab 11184 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
698dcdb6 11185 test -f $ac_im_libdir/libX11.$ac_extension; then
ab9b9eab 11186 ac_im_usrlibdir=$ac_im_libdir; break
10f2d63a
VZ
11187 fi
11188 done
ab9b9eab
VZ
11189 # Screen out bogus values from the imake configuration. They are
11190 # bogus both because they are the default anyway, and because
11191 # using them would break gcc on systems where it needs fixed includes.
698dcdb6 11192 case "$ac_im_incroot" in
ab9b9eab 11193 /usr/include) ;;
698dcdb6 11194 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
ab9b9eab 11195 esac
698dcdb6 11196 case "$ac_im_usrlibdir" in
ab9b9eab 11197 /usr/lib | /lib) ;;
698dcdb6 11198 *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
ab9b9eab 11199 esac
ba337fe7 11200 fi
ab9b9eab 11201 cd ..
698dcdb6 11202 rm -fr conftestdir
ab9b9eab 11203fi
10f2d63a 11204
698dcdb6
VZ
11205if test "$ac_x_includes" = NO; then
11206 # Guess where to find include files, by looking for this one X11 .h file.
11207 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
11208
ab9b9eab 11209 # First, try using that file with no special directory specified.
698dcdb6 11210cat > conftest.$ac_ext <<EOF
a1622950 11211#line 11212 "configure"
ab9b9eab 11212#include "confdefs.h"
698dcdb6
VZ
11213#include <$x_direct_test_include>
11214EOF
11215ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
a1622950 11216{ (eval echo configure:11217: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
11217ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11218if test -z "$ac_err"; then
11219 rm -rf conftest*
ab9b9eab
VZ
11220 # We can compile using X headers with no special include directory.
11221ac_x_includes=
11222else
698dcdb6
VZ
11223 echo "$ac_err" >&5
11224 echo "configure: failed program was:" >&5
ab9b9eab 11225 cat conftest.$ac_ext >&5
698dcdb6
VZ
11226 rm -rf conftest*
11227 # Look for the header file in a standard set of common directories.
11228# Check X11 before X11Rn because it is often a symlink to the current release.
11229 for ac_dir in \
11230 /usr/X11/include \
11231 /usr/X11R6/include \
11232 /usr/X11R5/include \
11233 /usr/X11R4/include \
11234 \
11235 /usr/include/X11 \
11236 /usr/include/X11R6 \
11237 /usr/include/X11R5 \
11238 /usr/include/X11R4 \
11239 \
11240 /usr/local/X11/include \
11241 /usr/local/X11R6/include \
11242 /usr/local/X11R5/include \
11243 /usr/local/X11R4/include \
11244 \
11245 /usr/local/include/X11 \
11246 /usr/local/include/X11R6 \
11247 /usr/local/include/X11R5 \
11248 /usr/local/include/X11R4 \
11249 \
11250 /usr/X386/include \
11251 /usr/x386/include \
11252 /usr/XFree86/include/X11 \
11253 \
11254 /usr/include \
11255 /usr/local/include \
11256 /usr/unsupported/include \
11257 /usr/athena/include \
11258 /usr/local/x11r5/include \
11259 /usr/lpp/Xamples/include \
11260 \
11261 /usr/openwin/include \
11262 /usr/openwin/share/include \
11263 ; \
11264 do
11265 if test -r "$ac_dir/$x_direct_test_include"; then
11266 ac_x_includes=$ac_dir
11267 break
11268 fi
11269 done
ab9b9eab 11270fi
698dcdb6
VZ
11271rm -f conftest*
11272fi # $ac_x_includes = NO
10f2d63a 11273
698dcdb6 11274if test "$ac_x_libraries" = NO; then
ab9b9eab 11275 # Check for the libraries.
698dcdb6
VZ
11276
11277 test -z "$x_direct_test_library" && x_direct_test_library=Xt
11278 test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
11279
ab9b9eab
VZ
11280 # See if we find them without any special options.
11281 # Don't add to $LIBS permanently.
698dcdb6
VZ
11282 ac_save_LIBS="$LIBS"
11283 LIBS="-l$x_direct_test_library $LIBS"
11284cat > conftest.$ac_ext <<EOF
a1622950 11285#line 11286 "configure"
ab9b9eab 11286#include "confdefs.h"
698dcdb6
VZ
11287
11288int main() {
11289${x_direct_test_function}()
11290; return 0; }
11291EOF
a1622950 11292if { (eval echo configure:11293: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
11293 rm -rf conftest*
11294 LIBS="$ac_save_LIBS"
ab9b9eab
VZ
11295# We can link X programs with no special library path.
11296ac_x_libraries=
11297else
698dcdb6
VZ
11298 echo "configure: failed program was:" >&5
11299 cat conftest.$ac_ext >&5
11300 rm -rf conftest*
11301 LIBS="$ac_save_LIBS"
11302# First see if replacing the include by lib works.
11303# Check X11 before X11Rn because it is often a symlink to the current release.
11304for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
11305 /usr/X11/lib \
11306 /usr/X11R6/lib \
11307 /usr/X11R5/lib \
11308 /usr/X11R4/lib \
11309 \
11310 /usr/lib/X11 \
11311 /usr/lib/X11R6 \
11312 /usr/lib/X11R5 \
11313 /usr/lib/X11R4 \
11314 \
11315 /usr/local/X11/lib \
11316 /usr/local/X11R6/lib \
11317 /usr/local/X11R5/lib \
11318 /usr/local/X11R4/lib \
11319 \
11320 /usr/local/lib/X11 \
11321 /usr/local/lib/X11R6 \
11322 /usr/local/lib/X11R5 \
11323 /usr/local/lib/X11R4 \
11324 \
11325 /usr/X386/lib \
11326 /usr/x386/lib \
11327 /usr/XFree86/lib/X11 \
11328 \
11329 /usr/lib \
11330 /usr/local/lib \
11331 /usr/unsupported/lib \
11332 /usr/athena/lib \
11333 /usr/local/x11r5/lib \
11334 /usr/lpp/Xamples/lib \
11335 /lib/usr/lib/X11 \
11336 \
11337 /usr/openwin/lib \
11338 /usr/openwin/share/lib \
11339 ; \
ab9b9eab
VZ
11340do
11341 for ac_extension in a so sl; do
698dcdb6 11342 if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
ab9b9eab
VZ
11343 ac_x_libraries=$ac_dir
11344 break 2
10f2d63a 11345 fi
10f2d63a 11346 done
ab9b9eab
VZ
11347done
11348fi
698dcdb6
VZ
11349rm -f conftest*
11350fi # $ac_x_libraries = NO
10f2d63a 11351
698dcdb6 11352if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
ab9b9eab
VZ
11353 # Didn't find X anywhere. Cache the known absence of X.
11354 ac_cv_have_x="have_x=no"
11355else
11356 # Record where we found X for the cache.
11357 ac_cv_have_x="have_x=yes \
11358 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
11359fi
11360fi
10f2d63a 11361 fi
ab9b9eab
VZ
11362 eval "$ac_cv_have_x"
11363fi # $with_x != no
10f2d63a 11364
ab9b9eab 11365if test "$have_x" != yes; then
698dcdb6 11366 echo "$ac_t""$have_x" 1>&6
ab9b9eab
VZ
11367 no_x=yes
11368else
11369 # If each of the values was on the command line, it overrides each guess.
11370 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
11371 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
11372 # Update the cache value to reflect the command line values.
11373 ac_cv_have_x="have_x=yes \
11374 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
698dcdb6 11375 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
ab9b9eab 11376fi
10f2d63a 11377
ab9b9eab
VZ
11378if test "$no_x" = yes; then
11379 # Not all programs may use this symbol, but it does not hurt to define it.
698dcdb6 11380 cat >> confdefs.h <<\EOF
ab9b9eab
VZ
11381#define X_DISPLAY_MISSING 1
11382EOF
10f2d63a 11383
ab9b9eab
VZ
11384 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
11385else
11386 if test -n "$x_includes"; then
11387 X_CFLAGS="$X_CFLAGS -I$x_includes"
10f2d63a
VZ
11388 fi
11389
ab9b9eab
VZ
11390 # It would also be nice to do this for all -L options, not just this one.
11391 if test -n "$x_libraries"; then
11392 X_LIBS="$X_LIBS -L$x_libraries"
11393 # For Solaris; some versions of Sun CC require a space after -R and
11394 # others require no space. Words are not sufficient . . . .
698dcdb6 11395 case "`(uname -sr) 2>/dev/null`" in
ab9b9eab 11396 "SunOS 5"*)
698dcdb6 11397 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
a1622950 11398echo "configure:11399: checking whether -R must be followed by a space" >&5
698dcdb6
VZ
11399 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
11400 cat > conftest.$ac_ext <<EOF
a1622950 11401#line 11402 "configure"
ab9b9eab 11402#include "confdefs.h"
10f2d63a 11403
698dcdb6 11404int main() {
788deba1 11405
698dcdb6
VZ
11406; return 0; }
11407EOF
a1622950 11408if { (eval echo configure:11409: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6 11409 rm -rf conftest*
ab9b9eab
VZ
11410 ac_R_nospace=yes
11411else
698dcdb6
VZ
11412 echo "configure: failed program was:" >&5
11413 cat conftest.$ac_ext >&5
11414 rm -rf conftest*
11415 ac_R_nospace=no
ab9b9eab 11416fi
698dcdb6 11417rm -f conftest*
ab9b9eab 11418 if test $ac_R_nospace = yes; then
698dcdb6 11419 echo "$ac_t""no" 1>&6
ab9b9eab
VZ
11420 X_LIBS="$X_LIBS -R$x_libraries"
11421 else
11422 LIBS="$ac_xsave_LIBS -R $x_libraries"
698dcdb6 11423 cat > conftest.$ac_ext <<EOF
a1622950 11424#line 11425 "configure"
ab9b9eab 11425#include "confdefs.h"
788deba1 11426
698dcdb6 11427int main() {
ab9b9eab 11428
698dcdb6
VZ
11429; return 0; }
11430EOF
a1622950 11431if { (eval echo configure:11432: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6 11432 rm -rf conftest*
ab9b9eab
VZ
11433 ac_R_space=yes
11434else
698dcdb6
VZ
11435 echo "configure: failed program was:" >&5
11436 cat conftest.$ac_ext >&5
11437 rm -rf conftest*
11438 ac_R_space=no
ab9b9eab 11439fi
698dcdb6 11440rm -f conftest*
ab9b9eab 11441 if test $ac_R_space = yes; then
698dcdb6 11442 echo "$ac_t""yes" 1>&6
ab9b9eab
VZ
11443 X_LIBS="$X_LIBS -R $x_libraries"
11444 else
698dcdb6 11445 echo "$ac_t""neither works" 1>&6
ab9b9eab
VZ
11446 fi
11447 fi
698dcdb6 11448 LIBS="$ac_xsave_LIBS"
ab9b9eab
VZ
11449 esac
11450 fi
11451
11452 # Check for system-dependent libraries X programs must link with.
11453 # Do this before checking for the system-independent R6 libraries
11454 # (-lICE), since we may need -lsocket or whatever for X linking.
11455
11456 if test "$ISC" = yes; then
11457 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
11458 else
698dcdb6
VZ
11459 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
11460 # libraries were built with DECnet support. And karl@cs.umb.edu says
ab9b9eab 11461 # the Alpha needs dnet_stub (dnet does not exist).
698dcdb6 11462 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
a1622950 11463echo "configure:11464: checking for dnet_ntoa in -ldnet" >&5
698dcdb6
VZ
11464ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
11465if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11466 echo $ac_n "(cached) $ac_c" 1>&6
ab9b9eab 11467else
698dcdb6 11468 ac_save_LIBS="$LIBS"
ab9b9eab 11469LIBS="-ldnet $LIBS"
698dcdb6 11470cat > conftest.$ac_ext <<EOF
a1622950 11471#line 11472 "configure"
ab9b9eab
VZ
11472#include "confdefs.h"
11473/* Override any gcc2 internal prototype to avoid an error. */
11474/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
11475 builtin and then its argument prototype would still apply. */
11476char dnet_ntoa();
11477
11478int main() {
11479dnet_ntoa()
11480; return 0; }
11481EOF
a1622950 11482if { (eval echo configure:11483: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
11483 rm -rf conftest*
11484 eval "ac_cv_lib_$ac_lib_var=yes"
11485else
11486 echo "configure: failed program was:" >&5
11487 cat conftest.$ac_ext >&5
11488 rm -rf conftest*
11489 eval "ac_cv_lib_$ac_lib_var=no"
11490fi
11491rm -f conftest*
11492LIBS="$ac_save_LIBS"
11493
11494fi
11495if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11496 echo "$ac_t""yes" 1>&6
ab9b9eab 11497 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
698dcdb6
VZ
11498else
11499 echo "$ac_t""no" 1>&6
ab9b9eab
VZ
11500fi
11501
11502 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
698dcdb6 11503 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
a1622950 11504echo "configure:11505: checking for dnet_ntoa in -ldnet_stub" >&5
698dcdb6
VZ
11505ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
11506if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11507 echo $ac_n "(cached) $ac_c" 1>&6
ab9b9eab 11508else
698dcdb6 11509 ac_save_LIBS="$LIBS"
ab9b9eab 11510LIBS="-ldnet_stub $LIBS"
698dcdb6 11511cat > conftest.$ac_ext <<EOF
a1622950 11512#line 11513 "configure"
ab9b9eab
VZ
11513#include "confdefs.h"
11514/* Override any gcc2 internal prototype to avoid an error. */
11515/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
11516 builtin and then its argument prototype would still apply. */
11517char dnet_ntoa();
11518
11519int main() {
11520dnet_ntoa()
11521; return 0; }
11522EOF
a1622950 11523if { (eval echo configure:11524: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
11524 rm -rf conftest*
11525 eval "ac_cv_lib_$ac_lib_var=yes"
11526else
11527 echo "configure: failed program was:" >&5
11528 cat conftest.$ac_ext >&5
11529 rm -rf conftest*
11530 eval "ac_cv_lib_$ac_lib_var=no"
11531fi
11532rm -f conftest*
11533LIBS="$ac_save_LIBS"
11534
11535fi
11536if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11537 echo "$ac_t""yes" 1>&6
ab9b9eab 11538 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
698dcdb6
VZ
11539else
11540 echo "$ac_t""no" 1>&6
ab9b9eab
VZ
11541fi
11542
11543 fi
11544
11545 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
11546 # to get the SysV transport functions.
698dcdb6 11547 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
ab9b9eab
VZ
11548 # needs -lnsl.
11549 # The nsl library prevents programs from opening the X display
698dcdb6
VZ
11550 # on Irix 5.2, according to dickey@clark.net.
11551 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
a1622950 11552echo "configure:11553: checking for gethostbyname" >&5
698dcdb6
VZ
11553if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
11554 echo $ac_n "(cached) $ac_c" 1>&6
11555else
11556 cat > conftest.$ac_ext <<EOF
a1622950 11557#line 11558 "configure"
ab9b9eab
VZ
11558#include "confdefs.h"
11559/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 11560 which can conflict with char gethostbyname(); below. */
ab9b9eab
VZ
11561#include <assert.h>
11562/* Override any gcc2 internal prototype to avoid an error. */
11563/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
11564 builtin and then its argument prototype would still apply. */
11565char gethostbyname();
11566
11567int main() {
ab9b9eab
VZ
11568
11569/* The GNU C library defines this for functions which it implements
11570 to always fail with ENOSYS. Some functions are actually named
11571 something starting with __ and the normal name is an alias. */
11572#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
11573choke me
11574#else
698dcdb6 11575gethostbyname();
ab9b9eab
VZ
11576#endif
11577
698dcdb6
VZ
11578; return 0; }
11579EOF
a1622950 11580if { (eval echo configure:11581: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
11581 rm -rf conftest*
11582 eval "ac_cv_func_gethostbyname=yes"
11583else
11584 echo "configure: failed program was:" >&5
11585 cat conftest.$ac_ext >&5
11586 rm -rf conftest*
11587 eval "ac_cv_func_gethostbyname=no"
11588fi
11589rm -f conftest*
11590fi
11591
11592if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
11593 echo "$ac_t""yes" 1>&6
11594 :
11595else
11596 echo "$ac_t""no" 1>&6
11597fi
ab9b9eab
VZ
11598
11599 if test $ac_cv_func_gethostbyname = no; then
698dcdb6 11600 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
a1622950 11601echo "configure:11602: checking for gethostbyname in -lnsl" >&5
698dcdb6
VZ
11602ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
11603if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11604 echo $ac_n "(cached) $ac_c" 1>&6
ab9b9eab 11605else
698dcdb6 11606 ac_save_LIBS="$LIBS"
ab9b9eab 11607LIBS="-lnsl $LIBS"
698dcdb6 11608cat > conftest.$ac_ext <<EOF
a1622950 11609#line 11610 "configure"
ab9b9eab
VZ
11610#include "confdefs.h"
11611/* Override any gcc2 internal prototype to avoid an error. */
11612/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
11613 builtin and then its argument prototype would still apply. */
11614char gethostbyname();
6232543b 11615
698dcdb6
VZ
11616int main() {
11617gethostbyname()
11618; return 0; }
11619EOF
a1622950 11620if { (eval echo configure:11621: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
11621 rm -rf conftest*
11622 eval "ac_cv_lib_$ac_lib_var=yes"
703e0a69 11623else
698dcdb6
VZ
11624 echo "configure: failed program was:" >&5
11625 cat conftest.$ac_ext >&5
11626 rm -rf conftest*
11627 eval "ac_cv_lib_$ac_lib_var=no"
11628fi
11629rm -f conftest*
11630LIBS="$ac_save_LIBS"
1e487827 11631
698dcdb6
VZ
11632fi
11633if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11634 echo "$ac_t""yes" 1>&6
11635 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
11636else
11637 echo "$ac_t""no" 1>&6
ab9b9eab
VZ
11638fi
11639
11640 fi
11641
11642 # lieder@skyler.mavd.honeywell.com says without -lsocket,
11643 # socket/setsockopt and other routines are undefined under SCO ODT
11644 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
698dcdb6
VZ
11645 # on later versions), says simon@lia.di.epfl.ch: it contains
11646 # gethostby* variants that don't use the nameserver (or something).
11647 # -lsocket must be given before -lnsl if both are needed.
11648 # We assume that if connect needs -lnsl, so does gethostbyname.
11649 echo $ac_n "checking for connect""... $ac_c" 1>&6
a1622950 11650echo "configure:11651: checking for connect" >&5
698dcdb6
VZ
11651if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
11652 echo $ac_n "(cached) $ac_c" 1>&6
11653else
11654 cat > conftest.$ac_ext <<EOF
a1622950 11655#line 11656 "configure"
ab9b9eab
VZ
11656#include "confdefs.h"
11657/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 11658 which can conflict with char connect(); below. */
ab9b9eab
VZ
11659#include <assert.h>
11660/* Override any gcc2 internal prototype to avoid an error. */
11661/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
11662 builtin and then its argument prototype would still apply. */
11663char connect();
11664
11665int main() {
ab9b9eab
VZ
11666
11667/* The GNU C library defines this for functions which it implements
11668 to always fail with ENOSYS. Some functions are actually named
11669 something starting with __ and the normal name is an alias. */
11670#if defined (__stub_connect) || defined (__stub___connect)
11671choke me
11672#else
698dcdb6 11673connect();
ab9b9eab
VZ
11674#endif
11675
698dcdb6
VZ
11676; return 0; }
11677EOF
a1622950 11678if { (eval echo configure:11679: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
11679 rm -rf conftest*
11680 eval "ac_cv_func_connect=yes"
11681else
11682 echo "configure: failed program was:" >&5
11683 cat conftest.$ac_ext >&5
11684 rm -rf conftest*
11685 eval "ac_cv_func_connect=no"
11686fi
11687rm -f conftest*
11688fi
11689
11690if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
11691 echo "$ac_t""yes" 1>&6
11692 :
11693else
11694 echo "$ac_t""no" 1>&6
11695fi
ab9b9eab
VZ
11696
11697 if test $ac_cv_func_connect = no; then
698dcdb6 11698 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
a1622950 11699echo "configure:11700: checking for connect in -lsocket" >&5
698dcdb6
VZ
11700ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
11701if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11702 echo $ac_n "(cached) $ac_c" 1>&6
ab9b9eab 11703else
698dcdb6 11704 ac_save_LIBS="$LIBS"
ab9b9eab 11705LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
698dcdb6 11706cat > conftest.$ac_ext <<EOF
a1622950 11707#line 11708 "configure"
ab9b9eab
VZ
11708#include "confdefs.h"
11709/* Override any gcc2 internal prototype to avoid an error. */
11710/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
11711 builtin and then its argument prototype would still apply. */
11712char connect();
11713
11714int main() {
11715connect()
11716; return 0; }
11717EOF
a1622950 11718if { (eval echo configure:11719: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
11719 rm -rf conftest*
11720 eval "ac_cv_lib_$ac_lib_var=yes"
11721else
11722 echo "configure: failed program was:" >&5
11723 cat conftest.$ac_ext >&5
11724 rm -rf conftest*
11725 eval "ac_cv_lib_$ac_lib_var=no"
11726fi
11727rm -f conftest*
11728LIBS="$ac_save_LIBS"
11729
11730fi
11731if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11732 echo "$ac_t""yes" 1>&6
ab9b9eab 11733 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
698dcdb6
VZ
11734else
11735 echo "$ac_t""no" 1>&6
ab9b9eab
VZ
11736fi
11737
11738 fi
11739
698dcdb6
VZ
11740 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
11741 echo $ac_n "checking for remove""... $ac_c" 1>&6
a1622950 11742echo "configure:11743: checking for remove" >&5
698dcdb6
VZ
11743if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
11744 echo $ac_n "(cached) $ac_c" 1>&6
ab9b9eab 11745else
698dcdb6 11746 cat > conftest.$ac_ext <<EOF
a1622950 11747#line 11748 "configure"
ab9b9eab
VZ
11748#include "confdefs.h"
11749/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 11750 which can conflict with char remove(); below. */
ab9b9eab
VZ
11751#include <assert.h>
11752/* Override any gcc2 internal prototype to avoid an error. */
11753/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
11754 builtin and then its argument prototype would still apply. */
11755char remove();
11756
11757int main() {
ab9b9eab
VZ
11758
11759/* The GNU C library defines this for functions which it implements
11760 to always fail with ENOSYS. Some functions are actually named
11761 something starting with __ and the normal name is an alias. */
11762#if defined (__stub_remove) || defined (__stub___remove)
11763choke me
11764#else
698dcdb6 11765remove();
ab9b9eab
VZ
11766#endif
11767
698dcdb6
VZ
11768; return 0; }
11769EOF
a1622950 11770if { (eval echo configure:11771: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
11771 rm -rf conftest*
11772 eval "ac_cv_func_remove=yes"
11773else
11774 echo "configure: failed program was:" >&5
11775 cat conftest.$ac_ext >&5
11776 rm -rf conftest*
11777 eval "ac_cv_func_remove=no"
11778fi
11779rm -f conftest*
11780fi
11781
11782if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
11783 echo "$ac_t""yes" 1>&6
11784 :
11785else
11786 echo "$ac_t""no" 1>&6
11787fi
ab9b9eab
VZ
11788
11789 if test $ac_cv_func_remove = no; then
698dcdb6 11790 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
a1622950 11791echo "configure:11792: checking for remove in -lposix" >&5
698dcdb6
VZ
11792ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
11793if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11794 echo $ac_n "(cached) $ac_c" 1>&6
ab9b9eab 11795else
698dcdb6 11796 ac_save_LIBS="$LIBS"
ab9b9eab 11797LIBS="-lposix $LIBS"
698dcdb6 11798cat > conftest.$ac_ext <<EOF
a1622950 11799#line 11800 "configure"
ab9b9eab
VZ
11800#include "confdefs.h"
11801/* Override any gcc2 internal prototype to avoid an error. */
11802/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
11803 builtin and then its argument prototype would still apply. */
11804char remove();
11805
11806int main() {
11807remove()
11808; return 0; }
11809EOF
a1622950 11810if { (eval echo configure:11811: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
11811 rm -rf conftest*
11812 eval "ac_cv_lib_$ac_lib_var=yes"
11813else
11814 echo "configure: failed program was:" >&5
11815 cat conftest.$ac_ext >&5
11816 rm -rf conftest*
11817 eval "ac_cv_lib_$ac_lib_var=no"
11818fi
11819rm -f conftest*
11820LIBS="$ac_save_LIBS"
11821
11822fi
11823if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11824 echo "$ac_t""yes" 1>&6
ab9b9eab 11825 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
698dcdb6
VZ
11826else
11827 echo "$ac_t""no" 1>&6
ab9b9eab
VZ
11828fi
11829
11830 fi
11831
11832 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
698dcdb6 11833 echo $ac_n "checking for shmat""... $ac_c" 1>&6
a1622950 11834echo "configure:11835: checking for shmat" >&5
698dcdb6
VZ
11835if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
11836 echo $ac_n "(cached) $ac_c" 1>&6
ab9b9eab 11837else
698dcdb6 11838 cat > conftest.$ac_ext <<EOF
a1622950 11839#line 11840 "configure"
ab9b9eab
VZ
11840#include "confdefs.h"
11841/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 11842 which can conflict with char shmat(); below. */
ab9b9eab
VZ
11843#include <assert.h>
11844/* Override any gcc2 internal prototype to avoid an error. */
11845/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
11846 builtin and then its argument prototype would still apply. */
11847char shmat();
11848
11849int main() {
ab9b9eab
VZ
11850
11851/* The GNU C library defines this for functions which it implements
11852 to always fail with ENOSYS. Some functions are actually named
11853 something starting with __ and the normal name is an alias. */
11854#if defined (__stub_shmat) || defined (__stub___shmat)
11855choke me
11856#else
698dcdb6 11857shmat();
ab9b9eab
VZ
11858#endif
11859
698dcdb6
VZ
11860; return 0; }
11861EOF
a1622950 11862if { (eval echo configure:11863: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
11863 rm -rf conftest*
11864 eval "ac_cv_func_shmat=yes"
11865else
11866 echo "configure: failed program was:" >&5
11867 cat conftest.$ac_ext >&5
11868 rm -rf conftest*
11869 eval "ac_cv_func_shmat=no"
11870fi
11871rm -f conftest*
11872fi
11873
11874if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
11875 echo "$ac_t""yes" 1>&6
11876 :
11877else
11878 echo "$ac_t""no" 1>&6
11879fi
ab9b9eab
VZ
11880
11881 if test $ac_cv_func_shmat = no; then
698dcdb6 11882 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
a1622950 11883echo "configure:11884: checking for shmat in -lipc" >&5
698dcdb6
VZ
11884ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
11885if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11886 echo $ac_n "(cached) $ac_c" 1>&6
ab9b9eab 11887else
698dcdb6 11888 ac_save_LIBS="$LIBS"
ab9b9eab 11889LIBS="-lipc $LIBS"
698dcdb6 11890cat > conftest.$ac_ext <<EOF
a1622950 11891#line 11892 "configure"
ab9b9eab
VZ
11892#include "confdefs.h"
11893/* Override any gcc2 internal prototype to avoid an error. */
11894/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
11895 builtin and then its argument prototype would still apply. */
11896char shmat();
11897
11898int main() {
11899shmat()
11900; return 0; }
11901EOF
a1622950 11902if { (eval echo configure:11903: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
11903 rm -rf conftest*
11904 eval "ac_cv_lib_$ac_lib_var=yes"
11905else
11906 echo "configure: failed program was:" >&5
11907 cat conftest.$ac_ext >&5
11908 rm -rf conftest*
11909 eval "ac_cv_lib_$ac_lib_var=no"
11910fi
11911rm -f conftest*
11912LIBS="$ac_save_LIBS"
11913
11914fi
11915if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11916 echo "$ac_t""yes" 1>&6
ab9b9eab 11917 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
698dcdb6
VZ
11918else
11919 echo "$ac_t""no" 1>&6
ab9b9eab
VZ
11920fi
11921
11922 fi
11923 fi
11924
11925 # Check for libraries that X11R6 Xt/Xaw programs need.
698dcdb6 11926 ac_save_LDFLAGS="$LDFLAGS"
ab9b9eab
VZ
11927 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
11928 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
11929 # check for ICE first), but we must link in the order -lSM -lICE or
11930 # we get undefined symbols. So assume we have SM if we have ICE.
11931 # These have to be linked with before -lX11, unlike the other
11932 # libraries we check for below, so use a different variable.
698dcdb6
VZ
11933 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
11934 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
a1622950 11935echo "configure:11936: checking for IceConnectionNumber in -lICE" >&5
698dcdb6
VZ
11936ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
11937if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11938 echo $ac_n "(cached) $ac_c" 1>&6
11939else
11940 ac_save_LIBS="$LIBS"
ab9b9eab 11941LIBS="-lICE $X_EXTRA_LIBS $LIBS"
698dcdb6 11942cat > conftest.$ac_ext <<EOF
a1622950 11943#line 11944 "configure"
ab9b9eab
VZ
11944#include "confdefs.h"
11945/* Override any gcc2 internal prototype to avoid an error. */
11946/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
11947 builtin and then its argument prototype would still apply. */
11948char IceConnectionNumber();
11949
11950int main() {
11951IceConnectionNumber()
11952; return 0; }
11953EOF
a1622950 11954if { (eval echo configure:11955: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
11955 rm -rf conftest*
11956 eval "ac_cv_lib_$ac_lib_var=yes"
11957else
11958 echo "configure: failed program was:" >&5
11959 cat conftest.$ac_ext >&5
11960 rm -rf conftest*
11961 eval "ac_cv_lib_$ac_lib_var=no"
11962fi
11963rm -f conftest*
11964LIBS="$ac_save_LIBS"
11965
11966fi
11967if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11968 echo "$ac_t""yes" 1>&6
ab9b9eab 11969 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
698dcdb6
VZ
11970else
11971 echo "$ac_t""no" 1>&6
ab9b9eab
VZ
11972fi
11973
698dcdb6 11974 LDFLAGS="$ac_save_LDFLAGS"
ab9b9eab
VZ
11975
11976fi
11977
11978
1e6feb95
VZ
11979 if test "$no_x" = "yes"; then
11980 { echo "configure: error: X11 not found" 1>&2; exit 1; }
11981 fi
ab9b9eab 11982
1e6feb95
VZ
11983 GUI_TK_LIBRARY="$X_LIBS"
11984 TOOLKIT_INCLUDE="$X_CFLAGS"
1e6feb95 11985 AFMINSTALL=afminstall
1e6feb95 11986 COMPILED_X_PROGRAM=0
cd6d6d5b 11987
1e6feb95 11988 echo $ac_n "checking for Motif/Lesstif headers""... $ac_c" 1>&6
a1622950 11989echo "configure:11990: checking for Motif/Lesstif headers" >&5
1e6feb95 11990
ab9b9eab
VZ
11991ac_find_includes=
11992for ac_dir in $SEARCH_INCLUDE;
11993 do
11994 if test -f "$ac_dir/Xm/Xm.h"; then
11995 ac_find_includes=$ac_dir
11996 break
11997 fi
11998 done
11999
1e6feb95
VZ
12000 if test "$ac_find_includes" != "" ; then
12001 echo "$ac_t""found $ac_find_includes" 1>&6
12002 else
12003 cat > conftest.$ac_ext <<EOF
a1622950 12004#line 12005 "configure"
cd6d6d5b
VZ
12005#include "confdefs.h"
12006
1e6feb95
VZ
12007 #include <Xm/Xm.h>
12008
698dcdb6 12009int main() {
cd6d6d5b 12010
1e6feb95 12011 int version;
1e6feb95
VZ
12012 version = xmUseVersion;
12013
698dcdb6
VZ
12014; return 0; }
12015EOF
a1622950 12016if { (eval echo configure:12017: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6
VZ
12017 rm -rf conftest*
12018
1e6feb95
VZ
12019 echo "$ac_t""found in default search path" 1>&6
12020 COMPILED_X_PROGRAM=1
12021
cd6d6d5b 12022else
698dcdb6
VZ
12023 echo "configure: failed program was:" >&5
12024 cat conftest.$ac_ext >&5
12025 rm -rf conftest*
12026
1e6feb95
VZ
12027 echo "$ac_t""no" 1>&6
12028 { echo "configure: error: please set CFLAGS to contain the location of Xm/Xm.h" 1>&2; exit 1; }
12029
698dcdb6 12030
cd6d6d5b 12031fi
698dcdb6 12032rm -f conftest*
1e6feb95 12033 fi
ab9b9eab 12034
1e6feb95
VZ
12035 if test "$COMPILED_X_PROGRAM" = 0; then
12036 echo $ac_n "checking for Motif/Lesstif library""... $ac_c" 1>&6
a1622950 12037echo "configure:12038: checking for Motif/Lesstif library" >&5
1e6feb95 12038
ab9b9eab
VZ
12039ac_find_libraries=
12040for ac_dir in $SEARCH_LIB;
12041 do
f11bdd03 12042 for ac_extension in a so sl dylib; do
ab9b9eab
VZ
12043 if test -f "$ac_dir/libXm.$ac_extension"; then
12044 ac_find_libraries=$ac_dir
12045 break 2
12046 fi
12047 done
12048 done
12049
1e6feb95
VZ
12050 if test "$ac_find_libraries" != "" ; then
12051
ab9b9eab
VZ
12052 ac_path_to_include=$ac_find_includes
12053 echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null
12054 result=$?
12055 if test $result = 0; then
12056 ac_path_to_include=""
12057 else
62d0491b 12058 ac_path_to_include=" -I$ac_find_includes"
ab9b9eab
VZ
12059 fi
12060
1e6feb95 12061
ab9b9eab
VZ
12062 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
12063 result=$?
12064 if test $result = 0; then
12065 ac_path_to_link=""
12066 else
62d0491b 12067 ac_path_to_link=" -L$ac_find_libraries"
ab9b9eab
VZ
12068 fi
12069
698dcdb6 12070
62d0491b
RL
12071 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
12072 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE$ac_path_to_include"
1e6feb95
VZ
12073 echo "$ac_t""found at $ac_find_libraries" 1>&6
12074 else
12075 cat > conftest.$ac_ext <<EOF
a1622950 12076#line 12077 "configure"
cd6d6d5b 12077#include "confdefs.h"
ab9b9eab 12078
1e6feb95
VZ
12079 #include <Xm/Xm.h>
12080
698dcdb6 12081int main() {
ab9b9eab 12082
1e6feb95 12083 int version;
1e6feb95
VZ
12084 version = xmUseVersion;
12085
698dcdb6
VZ
12086; return 0; }
12087EOF
a1622950 12088if { (eval echo configure:12089: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6
VZ
12089 rm -rf conftest*
12090
1e6feb95
VZ
12091 echo "$ac_t""found in default search path" 1>&6
12092 COMPILED_X_PROGRAM=1
12093
cd6d6d5b 12094else
698dcdb6
VZ
12095 echo "configure: failed program was:" >&5
12096 cat conftest.$ac_ext >&5
12097 rm -rf conftest*
12098
1e6feb95
VZ
12099 echo "$ac_t""no" 1>&6
12100 { echo "configure: error: please set LDFLAGS to contain the location of libXm" 1>&2; exit 1; }
12101
698dcdb6 12102
cd6d6d5b 12103fi
698dcdb6 12104rm -f conftest*
1e6feb95 12105 fi
cd6d6d5b 12106 fi
ab9b9eab 12107
3d63bc3a 12108 xpm_link=
1e6feb95 12109 echo $ac_n "checking for Xpm library""... $ac_c" 1>&6
a1622950 12110echo "configure:12111: checking for Xpm library" >&5
1e6feb95 12111
ab9b9eab
VZ
12112ac_find_libraries=
12113for ac_dir in $SEARCH_LIB;
12114 do
f11bdd03 12115 for ac_extension in a so sl dylib; do
ab9b9eab
VZ
12116 if test -f "$ac_dir/libXpm.$ac_extension"; then
12117 ac_find_libraries=$ac_dir
12118 break 2
12119 fi
12120 done
12121 done
12122
1e6feb95
VZ
12123 if test "$ac_find_libraries" != "" ; then
12124
ab9b9eab
VZ
12125 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
12126 result=$?
12127 if test $result = 0; then
12128 ac_path_to_link=""
12129 else
62d0491b 12130 ac_path_to_link=" -L$ac_find_libraries"
ab9b9eab
VZ
12131 fi
12132
62d0491b 12133 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
3d63bc3a 12134 xpm_link=" -lXpm"
1e6feb95 12135 cat >> confdefs.h <<\EOF
ab9b9eab
VZ
12136#define wxHAVE_LIB_XPM 1
12137EOF
12138
1e6feb95
VZ
12139 echo "$ac_t""found at $ac_find_libraries" 1>&6
12140 else
12141 cat > conftest.$ac_ext <<EOF
a1622950 12142#line 12143 "configure"
cd6d6d5b
VZ
12143#include "confdefs.h"
12144
1e6feb95
VZ
12145 #include <X11/xpm.h>
12146
698dcdb6 12147int main() {
cd6d6d5b 12148
1e6feb95 12149 int version;
1e6feb95
VZ
12150 version = XpmLibraryVersion();
12151
698dcdb6
VZ
12152; return 0; }
12153EOF
a1622950 12154if { (eval echo configure:12155: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6
VZ
12155 rm -rf conftest*
12156
3d63bc3a 12157 xpm_link=" -lXpm"
3a922bb4 12158 cat >> confdefs.h <<\EOF
3ace2e6d
SN
12159#define wxHAVE_LIB_XPM 1
12160EOF
12161
1e6feb95
VZ
12162 echo "$ac_t""found in default search path" 1>&6
12163 COMPILED_X_PROGRAM=0
12164
cd6d6d5b 12165else
698dcdb6
VZ
12166 echo "configure: failed program was:" >&5
12167 cat conftest.$ac_ext >&5
12168 rm -rf conftest*
12169
1e6feb95
VZ
12170 echo "$ac_t""no" 1>&6
12171 echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2
12172
698dcdb6 12173
cd6d6d5b 12174fi
698dcdb6 12175rm -f conftest*
1e6feb95
VZ
12176 fi
12177
3d63bc3a 12178 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXm$xpm_link -lXmu -lXext -lXt -lX11"
334f0d2c 12179 TOOLKIT_VPATH="\${top_srcdir}/src/motif${PATH_IFS}\${top_srcdir}/src/motif/xmcombo"
1e6feb95
VZ
12180 TOOLKIT=MOTIF
12181 GUIDIST=MOTIF_DIST
ab9b9eab
VZ
12182 fi
12183
683dccda
GD
12184 if test "$wxUSE_MAC" = 1; then
12185 if test "$wxUSE_PRECOMP" = "yes"; then
3d63bc3a 12186 CPPFLAGS="$CPPFLAGS -cpp-precomp"
683dccda 12187 fi
3d63bc3a
RL
12188 CPPFLAGS="$CPPFLAGS -I/Developer/Headers/FlatCarbon -I\${top_srcdir}/src/mac/morefile"
12189 CFLAGS="$CFLAGS -fpascal-strings"
12190 CXXFLAGS="$CXXFLAGS -fpascal-strings"
12191 TOOLCHAIN_DEFS="$TOOLCHAIN_DEFS -DTARGET_CARBON"
d08b457b 12192
13c0541d 12193 TOOLKIT_VPATH="\${top_srcdir}/src/mac${PATH_IFS}\${top_srcdir}/src/mac/morefile"
1e6feb95 12194 TOOLKIT=MAC
683dccda 12195 GUIDIST=MACX_DIST
1e6feb95 12196 fi
10f2d63a 12197
1e6feb95
VZ
12198 if test "$wxUSE_PM" = 1; then
12199 TOOLKIT=PM
12200 GUIDIST=GTK_DIST
12201 fi
b4085ce6 12202
3a922bb4 12203 if test "$TOOLKIT" = "PM" ; then
1e6feb95 12204 TOOLKIT_DIR="os2"
3a922bb4
RL
12205 else
12206 TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"`
1e6feb95 12207 fi
e07802fc 12208
3a922bb4 12209 PORT_FILES="\${top_srcdir}/src/\$(TOOLKITDIR)/files.lst"
1e6feb95 12210
3a922bb4
RL
12211 if test "$wxUSE_UNIVERSAL" = "yes"; then
12212 ALL_OBJECTS="\$(GUI_LOWLEVEL_OBJS) \${UNIVOBJS}"
12213 PORT_FILES="${PORT_FILES} \${top_srcdir}/src/univ/files.lst"
12214 TOOLKIT_VPATH="\${top_srcdir}/src/univ${PATH_IFS}\${top_srcdir}/src/univ/themes${PATH_IFS}\${top_srcdir}/src/${TOOLKIT_DIR}"
12215 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__"
12216 WIDGET_SET=univ
f6bcfd97 12217 else
3a922bb4 12218 ALL_OBJECTS="\$(GUIOBJS)"
1e6feb95
VZ
12219 fi
12220
ba0e650c 12221 ALL_OBJECTS="${ALL_OBJECTS} \$(COMMONOBJS) \$(GENERICOBJS)"
1e6feb95 12222
f9bc1684 12223 if test "$TOOLKIT" != "MSW" -a "$USE_DOS" != 1; then
1e6feb95
VZ
12224 ALL_OBJECTS="${ALL_OBJECTS} \$(UNIXOBJS)"
12225 fi
12226
12227 if test "$wxUSE_HTML" = "yes"; then
12228 ALL_OBJECTS="${ALL_OBJECTS} \$(HTMLOBJS)"
12229 fi
3fcdd07b 12230
3a922bb4
RL
12231 if test "$TOOLKIT" != "MSW" -a "$wxUSE_ODBC" = "yes" ; then
12232 ALL_OBJECTS="${ALL_OBJECTS} \$(IODBCOBJS)"
831b3152 12233 fi
4f14bcd8 12234 if test "$wxUSE_LIBJPEG" = "builtin" ; then
2224580a 12235 ALL_OBJECTS="${ALL_OBJECTS} \$(JPEGOBJS)"
d9d8273d 12236 fi
4f14bcd8 12237 if test "$wxUSE_LIBTIFF" = "builtin" ; then
d9d8273d
RR
12238 ALL_OBJECTS="${ALL_OBJECTS} \$(TIFFOBJS)"
12239 fi
4f14bcd8 12240 if test "$wxUSE_LIBPNG" = "builtin" ; then
d9d8273d
RR
12241 ALL_OBJECTS="${ALL_OBJECTS} \$(PNGOBJS)"
12242 fi
4f14bcd8 12243 if test "$wxUSE_FREETYPE" = "builtin" ; then
3fed1840
RR
12244 ALL_OBJECTS="${ALL_OBJECTS} \$(FREETYPEOBJS)"
12245 fi
2224580a 12246
2224580a
VZ
12247 GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST"
12248 DISTDIR="wx\$(TOOLKIT)"
10f2d63a 12249else
dad6c0ea
VZ
12250 USE_GUI=0
12251
3a922bb4 12252 TOOLKIT_DIR="base"
f6bcfd97 12253
3a922bb4
RL
12254 if test "$USE_WIN32" = 1 ; then
12255 ALL_OBJECTS="\${BASE_OBJS} \${BASE_MSW_OBJS}"
12256 TOOLKIT_VPATH="\${top_srcdir}/src/msw"
0b2effe9 12257
3a922bb4 12258 TOOLKIT="MSW"
f6bcfd97 12259 else
3a922bb4
RL
12260 ALL_OBJECTS="\${BASE_OBJS} \${BASE_UNIX_OBJS}"
12261 TOOLKIT_VPATH="\${top_srcdir}/src/unix"
f6bcfd97
BP
12262 fi
12263
831b3152 12264 PORT_FILES="\${top_srcdir}/src/files.lst"
2224580a
VZ
12265
12266 GUIDIST="BASE_DIST"
12267 DISTDIR="wxBase"
10f2d63a
VZ
12268fi
12269
4f14bcd8 12270if test "$wxUSE_REGEX" = "builtin" ; then
3a922bb4
RL
12271 ALL_OBJECTS="${ALL_OBJECTS} \$(REGEXOBJS)"
12272fi
4f14bcd8 12273if test "$wxUSE_ZLIB" = "builtin" ; then
3a922bb4
RL
12274 ALL_OBJECTS="${ALL_OBJECTS} \$(ZLIBOBJS)"
12275fi
10f2d63a 12276
3a922bb4 12277if test "$wxUSE_OPENGL" = "yes"; then
62d0491b
RL
12278 if test "$wxUSE_MAC" = 1; then
12279 OPENGL_LIBS="-framework OpenGL -framework AGL"
12280 else
570cb8cb 12281
62d0491b 12282 ac_safe=`echo "GL/gl.h" | sed 'y%./+-%__p_%'`
3a922bb4 12283echo $ac_n "checking for GL/gl.h""... $ac_c" 1>&6
a1622950 12284echo "configure:12285: checking for GL/gl.h" >&5
3a922bb4
RL
12285if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
12286 echo $ac_n "(cached) $ac_c" 1>&6
12287else
12288 cat > conftest.$ac_ext <<EOF
a1622950 12289#line 12290 "configure"
3a922bb4
RL
12290#include "confdefs.h"
12291#include <GL/gl.h>
12292EOF
12293ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
a1622950 12294{ (eval echo configure:12295: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3a922bb4
RL
12295ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12296if test -z "$ac_err"; then
12297 rm -rf conftest*
12298 eval "ac_cv_header_$ac_safe=yes"
12299else
12300 echo "$ac_err" >&5
12301 echo "configure: failed program was:" >&5
12302 cat conftest.$ac_ext >&5
12303 rm -rf conftest*
12304 eval "ac_cv_header_$ac_safe=no"
12305fi
12306rm -f conftest*
12307fi
12308if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12309 echo "$ac_t""yes" 1>&6
12310
1352efdf 12311 echo $ac_n "checking for -lGL""... $ac_c" 1>&6
a1622950 12312echo "configure:12313: checking for -lGL" >&5
57964555 12313
62d0491b
RL
12314ac_find_libraries=
12315for ac_dir in $SEARCH_LIB;
12316 do
12317 for ac_extension in a so sl dylib; do
12318 if test -f "$ac_dir/libGL.$ac_extension"; then
12319 ac_find_libraries=$ac_dir
12320 break 2
12321 fi
12322 done
12323 done
3a922bb4 12324
62d0491b
RL
12325 if test "$ac_find_libraries" != "" ; then
12326
12327 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
12328 result=$?
12329 if test $result = 0; then
12330 ac_path_to_link=""
12331 else
12332 ac_path_to_link=" -L$ac_find_libraries"
12333 fi
3a922bb4 12334
62d0491b
RL
12335 LDFLAGS_GL="$LDFLAGS$ac_path_to_link"
12336 OPENGL_LIBS="-lGL -lGLU"
1352efdf 12337 echo "$ac_t""yes" 1>&6
62d0491b 12338 else
1352efdf
RL
12339 echo "$ac_t""no" 1>&6
12340 echo $ac_n "checking for -lMesaGL""... $ac_c" 1>&6
a1622950 12341echo "configure:12342: checking for -lMesaGL" >&5
62d0491b
RL
12342
12343ac_find_libraries=
12344for ac_dir in $SEARCH_LIB;
12345 do
12346 for ac_extension in a so sl dylib; do
12347 if test -f "$ac_dir/libMesaGL.$ac_extension"; then
12348 ac_find_libraries=$ac_dir
12349 break 2
12350 fi
12351 done
12352 done
3a922bb4 12353
62d0491b 12354 if test "$ac_find_libraries" != "" ; then
57964555 12355
62d0491b
RL
12356 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
12357 result=$?
12358 if test $result = 0; then
12359 ac_path_to_link=""
12360 else
12361 ac_path_to_link=" -L$ac_find_libraries"
12362 fi
3a922bb4 12363
62d0491b
RL
12364 LDFLAGS_GL="$LDFLAGS$ac_path_to_link"
12365 OPENGL_LIBS="-lMesaGL -lMesaGLU"
1352efdf
RL
12366 echo "$ac_t""yes" 1>&6
12367 else
12368 echo "$ac_t""no" 1>&6
62d0491b
RL
12369 fi
12370 fi
12371
3a922bb4
RL
12372else
12373 echo "$ac_t""no" 1>&6
3a922bb4
RL
12374fi
12375
6f754473 12376
62d0491b
RL
12377
12378# AC_CHECK_HEADER(GL/gl.h,
12379# [
12380# AC_CHECK_LIB(GL, glFlush,
12381# [
12382# OPENGL_LIBS="-lGL -lGLU"
12383# ],
12384# [
12385# AC_CHECK_LIB(MesaGL, glFlush,
12386# [
12387# OPENGL_LIBS="-lMesaGL -lMesaGLU"
12388# ],
12389# [],
12390# [-lm])
12391# ],
12392# [-lm])
12393# ])
12394
12395 if test "x$OPENGL_LIBS" = "x"; then
12396 { echo "configure: error: OpenGL libraries not available" 1>&2; exit 1; }
12397 fi
6f754473 12398 fi
6f754473 12399
62d0491b
RL
12400 if test "$wxUSE_OPENGL" = "yes"; then
12401 cat >> confdefs.h <<\EOF
6f754473
VZ
12402#define wxUSE_OPENGL 1
12403EOF
12404
62d0491b 12405 cat >> confdefs.h <<\EOF
6f754473
VZ
12406#define wxUSE_GLCANVAS 1
12407EOF
12408
62d0491b
RL
12409 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl"
12410 fi
3a922bb4
RL
12411fi
12412
12413if test -z "$TOOLKIT_VPATH" ; then
12414 TOOLKIT_VPATH="\${top_srcdir}/src/${TOOLKIT_DIR}"
12415fi
12416
12417if test -n "$TOOLKIT" ; then
12418 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WX${TOOLKIT}__"
12419fi
12420
f676c7ff
MB
12421lib_unicode_suffix=
12422if test "$wxUSE_UNICODE" = "yes"; then
12423 lib_unicode_suffix=u
12424fi
12425
3a922bb4
RL
12426lib_debug_suffix=
12427if test "$wxUSE_DEBUG_FLAG" = "yes"; then
12428 lib_debug_suffix=d
3a922bb4
RL
12429fi
12430
f676c7ff
MB
12431TOOLCHAIN_NAME="${TOOLKIT_DIR}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}-${WX_RELEASE}"
12432TOOLCHAIN_NAME_GL="${TOOLKIT_DIR}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}_gl-${WX_RELEASE}"
3a922bb4
RL
12433
12434if test "$cross_compiling" = "yes"; then
12435 TOOLCHAIN_NAME="${TOOLCHAIN_NAME}-${host_alias}"
12436 TOOLCHAIN_NAME_GL="${TOOLCHAIN_NAME_GL}-${host_alias}"
12437fi
12438
12439WX_LIBRARY="wx_${TOOLCHAIN_NAME}"
12440WX_LIBRARY_GL="wx_${TOOLCHAIN_NAME_GL}"
12441
3a922bb4
RL
12442WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
12443WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
12444
12445WX_LIBRARY_LINK1="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}"
12446WX_LIBRARY_LINK2="lib${WX_LIBRARY}.${SO_SUFFIX}"
12447WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}"
12448WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}"
12449
d08b457b 12450WX_RESOURCES_MACOSX="lib${WX_LIBRARY}.rsrc"
e23081de 12451WX_RESOURCES_MACOSX_COMPILED="lib${WX_LIBRARY}.r"
3a922bb4 12452
978f1259
RL
12453case "${host}" in
12454 *-*-cygwin* | *-*-mingw32* )
12455
2da4f892 12456
978f1259
RL
12457
12458 if test "$cross_compiling" != "yes"; then
12459 WX_LIBRARY="wxmsw${WX_MSW_VERSION}${lib_unicode_suffix}${lib_debug_suffix}"
12460 WX_LIBRARY_GL="wxmsw_gl${WX_MSW_VERSION}${lib_unicode_suffix}${lib_debug_suffix}"
12461 WX_LIBRARY_NAME_SHARED="${WX_LIBRARY}.${SO_SUFFIX}"
12462 WX_LIBRARY_NAME_SHARED_GL="${WX_LIBRARY_GL}.${SO_SUFFIX}"
2da4f892
RL
12463 else
12464 WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${SO_SUFFIX}"
12465 WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}"
978f1259
RL
12466 fi
12467
12468esac
12469
12470WX_LIBRARY_NAME_STATIC="lib${WX_LIBRARY}.a"
12471WX_LIBRARY_NAME_STATIC_GL="lib${WX_LIBRARY_GL}.a"
12472
12473WXCONFIG_LIBS="-l${WX_LIBRARY}"
885d4bf5 12474WXCONFIG_LIBS_STATIC="lib${WX_LIBRARY}.a"
978f1259
RL
12475
12476if test "$wxUSE_OPENGL" = "yes"; then
885d4bf5
VS
12477 WXCONFIG_LIBS_GL="-l${WX_LIBRARY_GL} ${OPENGL_LIBS}"
12478 WXCONFIG_LIBS_STATIC_GL="lib${WX_LIBRARY_GL}.a ${OPENGL_LIBS}"
978f1259
RL
12479fi
12480
12481
3a922bb4
RL
12482
12483if test "$wxUSE_SHARED" = "yes"; then
55e80573
VZ
12484
12485 if test "$wxUSE_OPENGL" = "yes"; then
12486 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL"
3a922bb4 12487 WX_ALL="\$(build_libdir)/${WX_LIBRARY_LINK1} \$(build_libdir)/${WX_LIBRARY_LINK1_GL}"
55e80573
VZ
12488 else
12489 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
3a922bb4 12490 WX_ALL="\$(build_libdir)/${WX_LIBRARY_LINK1}"
55e80573
VZ
12491 fi
12492
dd4f7467 12493 if test "$GCC" = "yes"; then
55e80573 12494 PIC_FLAG="-fPIC"
dd4f7467 12495 fi
55e80573
VZ
12496
12497 SHARED_LD="${CXX} -shared -o"
698dcdb6 12498
10f2d63a
VZ
12499 case "${host}" in
12500 *-hp-hpux* )
55e80573 12501 if test "$GCC" != "yes"; then
3d63bc3a 12502 LDFLAGS="$LDFLAGS -L/usr/lib"
f6bcfd97 12503
10f2d63a
VZ
12504 SHARED_LD="${CXX} -b -o"
12505 PIC_FLAG="+Z"
12506 fi
55e80573 12507
7b7a7637
RL
12508 if test "$wxUSE_OPENGL" = "yes"; then
12509 WX_ALL_INSTALLED="preinstall_gl"
12510 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED} \$(build_libdir)/${WX_LIBRARY_NAME_SHARED_GL}"
12511 else
12512 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED}"
12513 fi
10f2d63a 12514 ;;
b12915c1 12515
55e80573
VZ
12516 *-*-linux* )
12517 if test "$GCC" != "yes"; then
12518 echo $ac_n "checking for Intel compiler""... $ac_c" 1>&6
a1622950 12519echo "configure:12520: checking for Intel compiler" >&5
55e80573
VZ
12520if eval "test \"`echo '$''{'wx_cv_prog_icc'+set}'`\" = set"; then
12521 echo $ac_n "(cached) $ac_c" 1>&6
12522else
12523
12524 cat > conftest.$ac_ext <<EOF
a1622950 12525#line 12526 "configure"
55e80573
VZ
12526#include "confdefs.h"
12527
12528int main() {
12529
12530 #ifndef __INTEL_COMPILER
dd4f7467 12531 #error Not icc
55e80573
VZ
12532 #endif
12533
12534; return 0; }
12535EOF
a1622950 12536if { (eval echo configure:12537: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
55e80573
VZ
12537 rm -rf conftest*
12538 wx_cv_prog_icc=yes
12539else
12540 echo "configure: failed program was:" >&5
12541 cat conftest.$ac_ext >&5
12542 rm -rf conftest*
12543 wx_cv_prog_icc=no
12544
12545fi
12546rm -f conftest*
12547
12548fi
12549
12550echo "$ac_t""$wx_cv_prog_icc" 1>&6
55e80573
VZ
12551 if test "$wx_cv_prog_icc" = "yes"; then
12552 PIC_FLAG="-KPIC"
12553 fi
12554 fi
12555
3a922bb4
RL
12556 if test "$wxUSE_SONAME" = "yes" ; then
12557 SONAME_FLAGS="-Wl,-soname,${WX_LIBRARY_LINK1}"
12558 SONAME_FLAGS_GL="-Wl,-soname,${WX_LIBRARY_LINK1_GL}"
f6bcfd97 12559 WX_TARGET_LIBRARY_SONAME="-Wl,-soname,\$(TARGETLIB_LINK1)"
00cf1208 12560 fi
10f2d63a 12561 ;;
55e80573 12562
10f2d63a
VZ
12563 *-*-solaris2* )
12564 if test "$GCC" = yes ; then
f6bcfd97 12565 CPPFLAGS="$CPPFLAGS -isystem /usr/openwin/include"
10f2d63a
VZ
12566 else
12567 SHARED_LD="${CXX} -G -o"
12568 PIC_FLAG="-KPIC"
7b7a7637
RL
12569 SONAME_FLAGS="-h ${WX_LIBRARY_NAME_SHARED}"
12570 SONAME_FLAGS_GL="-h ${WX_LIBRARY_NAME_SHARED}"
10f2d63a 12571 fi
10f2d63a 12572 ;;
55e80573 12573
b4085ce6 12574 *-*-darwin* )
156b2523
GD
12575 CFLAGS="$CFLAGS -fno-common -DDYLIB_INIT"
12576 CXXFLAGS="$CXXFLAGS -fno-common -DDYLIB_INIT"
12577 SHARED_LD="$CXX -dynamiclib -init _wxWindowsDylibInit -o"
ea5999b9 12578 PIC_FLAG="-dynamic -fPIC"
10f2d63a 12579 ;;
55e80573 12580
10f2d63a
VZ
12581 *-*-aix* )
12582 SHARED_LD="/usr/lpp/xlC/bin/makeC++SharedLib -p 0 -o"
10f2d63a 12583 ;;
55e80573 12584
7b7a7637 12585 *-*-cygwin* | *-*-mingw32* )
77e13408 12586
2da4f892 12587 WX_LIBRARY_IMPORTLIB="${WX_LIBRARY_NAME_SHARED}.a"
77e13408 12588
77e13408 12589 SHARED_LD="${CXX} -shared -Wl,--out-implib,lib/${WX_LIBRARY_IMPORTLIB} -o"
00c81359 12590 TOOLCHAIN_DLL_DEFS="${TOOLCHAIN_DLL_DEFS} -DWXUSINGDLL=1"
25d0687a
RL
12591
12592 PIC_FLAG="-UWXUSINGDLL -DWXMAKINGDLL=1 -D_DLL=1 -D_WINDLL=1"
7b7a7637
RL
12593
12594 if test "$wxUSE_OPENGL" = "yes"; then
f6bcfd97 12595 WX_ALL_INSTALLED="preinstall_gl"
978f1259 12596 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED} \$(build_libdir)/${WX_LIBRARY_NAME_SHARED_GL}"
f6bcfd97 12597 else
978f1259 12598 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED}"
f6bcfd97 12599 fi
10f2d63a 12600 ;;
55e80573 12601
6fa882bd 12602 *-pc-os2_emx | *-pc-os2-emx )
7b7a7637 12603 wxUSE_SHARED=no
10f2d63a 12604 ;;
55e80573 12605
b12915c1 12606 *-*-beos* )
e2b8b066 12607 SHARED_LD="${LD} -shared -o"
b12915c1 12608 ;;
55e80573
VZ
12609
12610 *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | \
12611 *-*-sunos4* | \
12612 *-*-irix5* | *-*-irix6* | \
12613 *-*-osf* | \
12614 *-*-dgux5* | \
12615 *-*-sysv5* )
12616 ;;
12617
10f2d63a 12618 *)
7b7a7637 12619 { echo "configure: error: unknown system type $host." 1>&2; exit 1; }
10f2d63a
VZ
12620 esac
12621
12622 if test "x$WX_TARGET_LIBRARY" = "x"; then
12623 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_SHARED}"
bdad4e7e 12624 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_SHARED_GL}"
10f2d63a 12625 fi
55e80573 12626
3711412e 12627 WX_TARGET_LIBRARY_TYPE="so"
885d4bf5 12628 INSTALL_LIBRARY='$(INSTALL_PROGRAM)'
3a922bb4 12629fi
f6bcfd97 12630
3a922bb4 12631if test "$wxUSE_SHARED" = "no"; then
f6bcfd97 12632
3a922bb4 12633 if test "$wxUSE_GUI" = "no" -o "$USE_WIN32" = 1 ; then
f6bcfd97
BP
12634 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall"
12635 fi
12636
6fa882bd
RR
12637 if test "$wxUSE_MAC" = 1; then
12638 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall"
12639 fi
12640
3a922bb4
RL
12641 if test "$wxUSE_OPENGL" = "yes"; then
12642 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall_gl"
12643 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC} \$(build_libdir)/${WX_LIBRARY_NAME_STATIC_GL}"
12644 else
12645 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC}"
12646 fi
698dcdb6 12647
3a922bb4
RL
12648 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}"
12649 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_STATIC_GL}"
12650
12651 WX_TARGET_LIBRARY_TYPE="a"
885d4bf5 12652 INSTALL_LIBRARY='$(INSTALL_DATA)'
10f2d63a 12653fi
10f2d63a 12654
d08b457b
GD
12655if test "$wxUSE_MAC" = 1; then
12656 WX_ALL="${WX_ALL} \$(build_libdir)/lib${WX_LIBRARY}.r"
e23081de 12657 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall_res"
d08b457b
GD
12658 # Extract the first word of "Rez", so it can be a program name with args.
12659set dummy Rez; ac_word=$2
12660echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
a1622950 12661echo "configure:12662: checking for $ac_word" >&5
d08b457b
GD
12662if eval "test \"`echo '$''{'ac_cv_prog_RESCOMP'+set}'`\" = set"; then
12663 echo $ac_n "(cached) $ac_c" 1>&6
12664else
12665 if test -n "$RESCOMP"; then
12666 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
12667else
12668 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
12669 ac_dummy="$PATH"
12670 for ac_dir in $ac_dummy; do
12671 test -z "$ac_dir" && ac_dir=.
12672 if test -f $ac_dir/$ac_word; then
12673 ac_cv_prog_RESCOMP="Rez"
12674 break
12675 fi
12676 done
12677 IFS="$ac_save_ifs"
12678 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez"
12679fi
12680fi
12681RESCOMP="$ac_cv_prog_RESCOMP"
12682if test -n "$RESCOMP"; then
12683 echo "$ac_t""$RESCOMP" 1>&6
12684else
12685 echo "$ac_t""no" 1>&6
12686fi
12687
9f8148b1
GD
12688 # Extract the first word of "DeRez", so it can be a program name with args.
12689set dummy DeRez; ac_word=$2
d08b457b 12690echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
a1622950 12691echo "configure:12692: checking for $ac_word" >&5
d08b457b
GD
12692if eval "test \"`echo '$''{'ac_cv_prog_DEREZ'+set}'`\" = set"; then
12693 echo $ac_n "(cached) $ac_c" 1>&6
12694else
12695 if test -n "$DEREZ"; then
12696 ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test.
12697else
12698 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
12699 ac_dummy="$PATH"
12700 for ac_dir in $ac_dummy; do
12701 test -z "$ac_dir" && ac_dir=.
12702 if test -f $ac_dir/$ac_word; then
9f8148b1 12703 ac_cv_prog_DEREZ="DeRez"
d08b457b
GD
12704 break
12705 fi
12706 done
12707 IFS="$ac_save_ifs"
9f8148b1 12708 test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/DeRez"
d08b457b
GD
12709fi
12710fi
12711DEREZ="$ac_cv_prog_DEREZ"
12712if test -n "$DEREZ"; then
12713 echo "$ac_t""$DEREZ" 1>&6
12714else
12715 echo "$ac_t""no" 1>&6
12716fi
12717
12718 LIBWXMACRES="\$(top_builddir)/lib/lib${WX_LIBRARY}.r"
12719 LIBWXMACRESCOMP="\$(RESCOMP) Carbon.r -t APPL ${LIBWXMACRES} -o \$(BIN_PROGRAM)"
e23081de 12720 LIBWXMACRESWXCONFIG="${RESCOMP} Carbon.r -t APPL \${prefix}/lib/${WX_RESOURCES_MACOSX_COMPILED} -o"
d08b457b
GD
12721fi
12722
3a922bb4 12723
13c0541d
GD
12724if test "$wxUSE_MAC" != 1; then
12725 for ac_hdr in strings.h
9cfadba2 12726do
698dcdb6
VZ
12727ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12728echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
a1622950 12729echo "configure:12730: checking for $ac_hdr" >&5
698dcdb6
VZ
12730if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
12731 echo $ac_n "(cached) $ac_c" 1>&6
12732else
12733 cat > conftest.$ac_ext <<EOF
a1622950 12734#line 12735 "configure"
9cfadba2 12735#include "confdefs.h"
698dcdb6
VZ
12736#include <$ac_hdr>
12737EOF
12738ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
a1622950 12739{ (eval echo configure:12740: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
12740ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12741if test -z "$ac_err"; then
12742 rm -rf conftest*
12743 eval "ac_cv_header_$ac_safe=yes"
6232543b 12744else
698dcdb6
VZ
12745 echo "$ac_err" >&5
12746 echo "configure: failed program was:" >&5
9cfadba2 12747 cat conftest.$ac_ext >&5
698dcdb6
VZ
12748 rm -rf conftest*
12749 eval "ac_cv_header_$ac_safe=no"
9cfadba2 12750fi
698dcdb6 12751rm -f conftest*
9cfadba2 12752fi
698dcdb6
VZ
12753if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12754 echo "$ac_t""yes" 1>&6
12755 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12756 cat >> confdefs.h <<EOF
12757#define $ac_tr_hdr 1
9cfadba2 12758EOF
698dcdb6
VZ
12759
12760else
12761 echo "$ac_t""no" 1>&6
9cfadba2
VZ
12762fi
12763done
10f2d63a 12764
13c0541d
GD
12765fi
12766
3a922bb4 12767for ac_hdr in stdlib.h
10f2d63a 12768do
698dcdb6
VZ
12769ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12770echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
a1622950 12771echo "configure:12772: checking for $ac_hdr" >&5
698dcdb6
VZ
12772if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
12773 echo $ac_n "(cached) $ac_c" 1>&6
12774else
12775 cat > conftest.$ac_ext <<EOF
a1622950 12776#line 12777 "configure"
10f2d63a 12777#include "confdefs.h"
698dcdb6
VZ
12778#include <$ac_hdr>
12779EOF
12780ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
a1622950 12781{ (eval echo configure:12782: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
12782ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12783if test -z "$ac_err"; then
12784 rm -rf conftest*
12785 eval "ac_cv_header_$ac_safe=yes"
6232543b 12786else
698dcdb6
VZ
12787 echo "$ac_err" >&5
12788 echo "configure: failed program was:" >&5
10f2d63a 12789 cat conftest.$ac_ext >&5
698dcdb6
VZ
12790 rm -rf conftest*
12791 eval "ac_cv_header_$ac_safe=no"
10f2d63a 12792fi
698dcdb6 12793rm -f conftest*
10f2d63a 12794fi
698dcdb6
VZ
12795if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12796 echo "$ac_t""yes" 1>&6
12797 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12798 cat >> confdefs.h <<EOF
12799#define $ac_tr_hdr 1
10f2d63a 12800EOF
698dcdb6
VZ
12801
12802else
12803 echo "$ac_t""no" 1>&6
10f2d63a
VZ
12804fi
12805done
12806
9f8148b1 12807for ac_hdr in malloc.h
10f2d63a 12808do
698dcdb6
VZ
12809ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12810echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
a1622950 12811echo "configure:12812: checking for $ac_hdr" >&5
698dcdb6
VZ
12812if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
12813 echo $ac_n "(cached) $ac_c" 1>&6
12814else
12815 cat > conftest.$ac_ext <<EOF
a1622950 12816#line 12817 "configure"
10f2d63a 12817#include "confdefs.h"
698dcdb6
VZ
12818#include <$ac_hdr>
12819EOF
12820ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
a1622950 12821{ (eval echo configure:12822: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
12822ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12823if test -z "$ac_err"; then
12824 rm -rf conftest*
12825 eval "ac_cv_header_$ac_safe=yes"
6f72b082 12826else
698dcdb6
VZ
12827 echo "$ac_err" >&5
12828 echo "configure: failed program was:" >&5
6f72b082 12829 cat conftest.$ac_ext >&5
698dcdb6
VZ
12830 rm -rf conftest*
12831 eval "ac_cv_header_$ac_safe=no"
6f72b082 12832fi
698dcdb6 12833rm -f conftest*
6f72b082 12834fi
698dcdb6
VZ
12835if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12836 echo "$ac_t""yes" 1>&6
12837 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12838 cat >> confdefs.h <<EOF
12839#define $ac_tr_hdr 1
6f72b082 12840EOF
698dcdb6
VZ
12841
12842else
12843 echo "$ac_t""no" 1>&6
6f72b082
OK
12844fi
12845done
12846
9f8148b1 12847for ac_hdr in unistd.h
6f72b082 12848do
698dcdb6
VZ
12849ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12850echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
a1622950 12851echo "configure:12852: checking for $ac_hdr" >&5
698dcdb6
VZ
12852if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
12853 echo $ac_n "(cached) $ac_c" 1>&6
12854else
12855 cat > conftest.$ac_ext <<EOF
a1622950 12856#line 12857 "configure"
6f72b082 12857#include "confdefs.h"
698dcdb6
VZ
12858#include <$ac_hdr>
12859EOF
12860ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
a1622950 12861{ (eval echo configure:12862: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
12862ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12863if test -z "$ac_err"; then
12864 rm -rf conftest*
12865 eval "ac_cv_header_$ac_safe=yes"
6f72b082 12866else
698dcdb6
VZ
12867 echo "$ac_err" >&5
12868 echo "configure: failed program was:" >&5
6f72b082 12869 cat conftest.$ac_ext >&5
698dcdb6
VZ
12870 rm -rf conftest*
12871 eval "ac_cv_header_$ac_safe=no"
6f72b082 12872fi
698dcdb6 12873rm -f conftest*
6f72b082 12874fi
698dcdb6
VZ
12875if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12876 echo "$ac_t""yes" 1>&6
12877 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12878 cat >> confdefs.h <<EOF
12879#define $ac_tr_hdr 1
6f72b082 12880EOF
698dcdb6
VZ
12881
12882else
12883 echo "$ac_t""no" 1>&6
6f72b082
OK
12884fi
12885done
12886
9f8148b1 12887for ac_hdr in wchar.h
6f72b082 12888do
698dcdb6
VZ
12889ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12890echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
a1622950 12891echo "configure:12892: checking for $ac_hdr" >&5
698dcdb6
VZ
12892if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
12893 echo $ac_n "(cached) $ac_c" 1>&6
12894else
12895 cat > conftest.$ac_ext <<EOF
a1622950 12896#line 12897 "configure"
6f72b082 12897#include "confdefs.h"
698dcdb6
VZ
12898#include <$ac_hdr>
12899EOF
12900ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
a1622950 12901{ (eval echo configure:12902: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
12902ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12903if test -z "$ac_err"; then
12904 rm -rf conftest*
12905 eval "ac_cv_header_$ac_safe=yes"
10f2d63a 12906else
698dcdb6
VZ
12907 echo "$ac_err" >&5
12908 echo "configure: failed program was:" >&5
10f2d63a 12909 cat conftest.$ac_ext >&5
698dcdb6
VZ
12910 rm -rf conftest*
12911 eval "ac_cv_header_$ac_safe=no"
10f2d63a 12912fi
698dcdb6 12913rm -f conftest*
10f2d63a 12914fi
698dcdb6
VZ
12915if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12916 echo "$ac_t""yes" 1>&6
12917 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12918 cat >> confdefs.h <<EOF
12919#define $ac_tr_hdr 1
10f2d63a 12920EOF
698dcdb6
VZ
12921
12922else
12923 echo "$ac_t""no" 1>&6
10f2d63a
VZ
12924fi
12925done
12926
9f8148b1 12927for ac_hdr in wcstr.h
0fb0dd83 12928do
698dcdb6
VZ
12929ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12930echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
a1622950 12931echo "configure:12932: checking for $ac_hdr" >&5
698dcdb6
VZ
12932if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
12933 echo $ac_n "(cached) $ac_c" 1>&6
12934else
12935 cat > conftest.$ac_ext <<EOF
a1622950 12936#line 12937 "configure"
0fb0dd83 12937#include "confdefs.h"
698dcdb6
VZ
12938#include <$ac_hdr>
12939EOF
12940ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
a1622950 12941{ (eval echo configure:12942: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
12942ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12943if test -z "$ac_err"; then
12944 rm -rf conftest*
12945 eval "ac_cv_header_$ac_safe=yes"
0fb0dd83 12946else
698dcdb6
VZ
12947 echo "$ac_err" >&5
12948 echo "configure: failed program was:" >&5
0fb0dd83 12949 cat conftest.$ac_ext >&5
698dcdb6
VZ
12950 rm -rf conftest*
12951 eval "ac_cv_header_$ac_safe=no"
0fb0dd83 12952fi
698dcdb6 12953rm -f conftest*
0fb0dd83 12954fi
698dcdb6
VZ
12955if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12956 echo "$ac_t""yes" 1>&6
12957 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12958 cat >> confdefs.h <<EOF
12959#define $ac_tr_hdr 1
0fb0dd83 12960EOF
698dcdb6
VZ
12961
12962else
12963 echo "$ac_t""no" 1>&6
0fb0dd83
RR
12964fi
12965done
12966
9f8148b1 12967for ac_hdr in wctype.h
1f8ae82f 12968do
698dcdb6
VZ
12969ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12970echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
a1622950 12971echo "configure:12972: checking for $ac_hdr" >&5
698dcdb6
VZ
12972if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
12973 echo $ac_n "(cached) $ac_c" 1>&6
12974else
12975 cat > conftest.$ac_ext <<EOF
a1622950 12976#line 12977 "configure"
1f8ae82f 12977#include "confdefs.h"
698dcdb6
VZ
12978#include <$ac_hdr>
12979EOF
12980ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
a1622950 12981{ (eval echo configure:12982: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
12982ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12983if test -z "$ac_err"; then
12984 rm -rf conftest*
12985 eval "ac_cv_header_$ac_safe=yes"
1f8ae82f 12986else
698dcdb6
VZ
12987 echo "$ac_err" >&5
12988 echo "configure: failed program was:" >&5
1f8ae82f 12989 cat conftest.$ac_ext >&5
698dcdb6
VZ
12990 rm -rf conftest*
12991 eval "ac_cv_header_$ac_safe=no"
1f8ae82f 12992fi
698dcdb6 12993rm -f conftest*
1f8ae82f 12994fi
698dcdb6
VZ
12995if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12996 echo "$ac_t""yes" 1>&6
12997 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12998 cat >> confdefs.h <<EOF
12999#define $ac_tr_hdr 1
1f8ae82f 13000EOF
698dcdb6
VZ
13001
13002else
13003 echo "$ac_t""no" 1>&6
1f8ae82f
GD
13004fi
13005done
13006
9f8148b1 13007for ac_hdr in fnmatch.h
10f2d63a 13008do
698dcdb6
VZ
13009ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
13010echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
a1622950 13011echo "configure:13012: checking for $ac_hdr" >&5
698dcdb6
VZ
13012if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
13013 echo $ac_n "(cached) $ac_c" 1>&6
13014else
13015 cat > conftest.$ac_ext <<EOF
a1622950 13016#line 13017 "configure"
10f2d63a 13017#include "confdefs.h"
698dcdb6
VZ
13018#include <$ac_hdr>
13019EOF
13020ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
a1622950 13021{ (eval echo configure:13022: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
13022ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13023if test -z "$ac_err"; then
13024 rm -rf conftest*
13025 eval "ac_cv_header_$ac_safe=yes"
10f2d63a 13026else
698dcdb6
VZ
13027 echo "$ac_err" >&5
13028 echo "configure: failed program was:" >&5
10f2d63a 13029 cat conftest.$ac_ext >&5
698dcdb6
VZ
13030 rm -rf conftest*
13031 eval "ac_cv_header_$ac_safe=no"
10f2d63a 13032fi
698dcdb6 13033rm -f conftest*
10f2d63a 13034fi
698dcdb6
VZ
13035if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13036 echo "$ac_t""yes" 1>&6
13037 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
13038 cat >> confdefs.h <<EOF
13039#define $ac_tr_hdr 1
10f2d63a 13040EOF
698dcdb6
VZ
13041
13042else
13043 echo "$ac_t""no" 1>&6
10f2d63a
VZ
13044fi
13045done
13046
9f8148b1 13047for ac_hdr in iconv.h
0fbb762e
MB
13048do
13049ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
13050echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
a1622950 13051echo "configure:13052: checking for $ac_hdr" >&5
0fbb762e
MB
13052if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
13053 echo $ac_n "(cached) $ac_c" 1>&6
13054else
13055 cat > conftest.$ac_ext <<EOF
a1622950 13056#line 13057 "configure"
0fbb762e
MB
13057#include "confdefs.h"
13058#include <$ac_hdr>
13059EOF
13060ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
a1622950 13061{ (eval echo configure:13062: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
0fbb762e
MB
13062ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13063if test -z "$ac_err"; then
13064 rm -rf conftest*
13065 eval "ac_cv_header_$ac_safe=yes"
13066else
13067 echo "$ac_err" >&5
13068 echo "configure: failed program was:" >&5
13069 cat conftest.$ac_ext >&5
13070 rm -rf conftest*
13071 eval "ac_cv_header_$ac_safe=no"
13072fi
13073rm -f conftest*
13074fi
13075if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13076 echo "$ac_t""yes" 1>&6
13077 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
13078 cat >> confdefs.h <<EOF
13079#define $ac_tr_hdr 1
13080EOF
13081
13082else
13083 echo "$ac_t""no" 1>&6
13084fi
13085done
13086
9f8148b1
GD
13087for ac_hdr in langinfo.h
13088do
13089ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
13090echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
a1622950 13091echo "configure:13092: checking for $ac_hdr" >&5
9f8148b1
GD
13092if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
13093 echo $ac_n "(cached) $ac_c" 1>&6
13094else
13095 cat > conftest.$ac_ext <<EOF
a1622950 13096#line 13097 "configure"
9f8148b1
GD
13097#include "confdefs.h"
13098#include <$ac_hdr>
13099EOF
13100ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
a1622950 13101{ (eval echo configure:13102: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9f8148b1
GD
13102ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13103if test -z "$ac_err"; then
13104 rm -rf conftest*
13105 eval "ac_cv_header_$ac_safe=yes"
13106else
13107 echo "$ac_err" >&5
13108 echo "configure: failed program was:" >&5
13109 cat conftest.$ac_ext >&5
13110 rm -rf conftest*
13111 eval "ac_cv_header_$ac_safe=no"
13112fi
13113rm -f conftest*
13114fi
13115if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13116 echo "$ac_t""yes" 1>&6
13117 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
13118 cat >> confdefs.h <<EOF
13119#define $ac_tr_hdr 1
13120EOF
13121
13122else
13123 echo "$ac_t""no" 1>&6
13124fi
13125done
13126
10f2d63a 13127
3a922bb4
RL
13128if test "$wxUSE_GUI" = "yes"; then
13129 if test "$wxUSE_UNIX" = "yes"; then
13130 for ac_hdr in X11/XKBlib.h
29fd3c0c
VS
13131do
13132ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
13133echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
a1622950 13134echo "configure:13135: checking for $ac_hdr" >&5
29fd3c0c
VS
13135if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
13136 echo $ac_n "(cached) $ac_c" 1>&6
13137else
13138 cat > conftest.$ac_ext <<EOF
a1622950 13139#line 13140 "configure"
29fd3c0c
VS
13140#include "confdefs.h"
13141#include <$ac_hdr>
13142EOF
13143ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
a1622950 13144{ (eval echo configure:13145: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
29fd3c0c
VS
13145ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13146if test -z "$ac_err"; then
13147 rm -rf conftest*
13148 eval "ac_cv_header_$ac_safe=yes"
13149else
13150 echo "$ac_err" >&5
13151 echo "configure: failed program was:" >&5
13152 cat conftest.$ac_ext >&5
13153 rm -rf conftest*
13154 eval "ac_cv_header_$ac_safe=no"
13155fi
13156rm -f conftest*
13157fi
13158if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13159 echo "$ac_t""yes" 1>&6
13160 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
13161 cat >> confdefs.h <<EOF
13162#define $ac_tr_hdr 1
13163EOF
13164
13165else
13166 echo "$ac_t""no" 1>&6
13167fi
13168done
13169
3a922bb4 13170 fi
29fd3c0c
VS
13171fi
13172
698dcdb6
VZ
13173
13174echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
a1622950 13175echo "configure:13176: checking for ANSI C header files" >&5
698dcdb6
VZ
13176if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
13177 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 13178else
698dcdb6 13179 cat > conftest.$ac_ext <<EOF
a1622950 13180#line 13181 "configure"
10f2d63a
VZ
13181#include "confdefs.h"
13182#include <stdlib.h>
13183#include <stdarg.h>
13184#include <string.h>
13185#include <float.h>
698dcdb6
VZ
13186EOF
13187ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
a1622950 13188{ (eval echo configure:13189: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
13189ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13190if test -z "$ac_err"; then
13191 rm -rf conftest*
10f2d63a
VZ
13192 ac_cv_header_stdc=yes
13193else
698dcdb6
VZ
13194 echo "$ac_err" >&5
13195 echo "configure: failed program was:" >&5
10f2d63a 13196 cat conftest.$ac_ext >&5
698dcdb6 13197 rm -rf conftest*
10f2d63a
VZ
13198 ac_cv_header_stdc=no
13199fi
698dcdb6 13200rm -f conftest*
10f2d63a
VZ
13201
13202if test $ac_cv_header_stdc = yes; then
13203 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
698dcdb6 13204cat > conftest.$ac_ext <<EOF
a1622950 13205#line 13206 "configure"
10f2d63a
VZ
13206#include "confdefs.h"
13207#include <string.h>
698dcdb6 13208EOF
10f2d63a
VZ
13209if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13210 egrep "memchr" >/dev/null 2>&1; then
13211 :
13212else
698dcdb6 13213 rm -rf conftest*
10f2d63a
VZ
13214 ac_cv_header_stdc=no
13215fi
13216rm -f conftest*
13217
13218fi
13219
13220if test $ac_cv_header_stdc = yes; then
13221 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
698dcdb6 13222cat > conftest.$ac_ext <<EOF
a1622950 13223#line 13224 "configure"
10f2d63a
VZ
13224#include "confdefs.h"
13225#include <stdlib.h>
698dcdb6 13226EOF
10f2d63a
VZ
13227if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13228 egrep "free" >/dev/null 2>&1; then
13229 :
13230else
698dcdb6 13231 rm -rf conftest*
10f2d63a
VZ
13232 ac_cv_header_stdc=no
13233fi
13234rm -f conftest*
13235
13236fi
13237
13238if test $ac_cv_header_stdc = yes; then
13239 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
698dcdb6 13240if test "$cross_compiling" = yes; then
10f2d63a
VZ
13241 :
13242else
698dcdb6 13243 cat > conftest.$ac_ext <<EOF
a1622950 13244#line 13245 "configure"
10f2d63a
VZ
13245#include "confdefs.h"
13246#include <ctype.h>
698dcdb6
VZ
13247#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
13248#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1e487827 13249#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
698dcdb6
VZ
13250int main () { int i; for (i = 0; i < 256; i++)
13251if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
13252exit (0); }
13253
13254EOF
a1622950 13255if { (eval echo configure:13256: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
698dcdb6 13256then
10f2d63a
VZ
13257 :
13258else
698dcdb6
VZ
13259 echo "configure: failed program was:" >&5
13260 cat conftest.$ac_ext >&5
13261 rm -fr conftest*
13262 ac_cv_header_stdc=no
10f2d63a 13263fi
698dcdb6 13264rm -fr conftest*
10f2d63a 13265fi
698dcdb6 13266
10f2d63a
VZ
13267fi
13268fi
1e487827 13269
698dcdb6
VZ
13270echo "$ac_t""$ac_cv_header_stdc" 1>&6
13271if test $ac_cv_header_stdc = yes; then
13272 cat >> confdefs.h <<\EOF
10f2d63a
VZ
13273#define STDC_HEADERS 1
13274EOF
13275
13276fi
13277
698dcdb6 13278echo $ac_n "checking for mode_t""... $ac_c" 1>&6
a1622950 13279echo "configure:13280: checking for mode_t" >&5
698dcdb6
VZ
13280if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
13281 echo $ac_n "(cached) $ac_c" 1>&6
1e487827 13282else
698dcdb6 13283 cat > conftest.$ac_ext <<EOF
a1622950 13284#line 13285 "configure"
1e487827 13285#include "confdefs.h"
698dcdb6
VZ
13286#include <sys/types.h>
13287#if STDC_HEADERS
13288#include <stdlib.h>
13289#include <stddef.h>
13290#endif
13291EOF
13292if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13293 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
13294 rm -rf conftest*
10f2d63a
VZ
13295 ac_cv_type_mode_t=yes
13296else
698dcdb6
VZ
13297 rm -rf conftest*
13298 ac_cv_type_mode_t=no
703e0a69 13299fi
698dcdb6 13300rm -f conftest*
1e487827 13301
698dcdb6
VZ
13302fi
13303echo "$ac_t""$ac_cv_type_mode_t" 1>&6
13304if test $ac_cv_type_mode_t = no; then
13305 cat >> confdefs.h <<\EOF
10f2d63a
VZ
13306#define mode_t int
13307EOF
13308
13309fi
13310
698dcdb6 13311echo $ac_n "checking for off_t""... $ac_c" 1>&6
a1622950 13312echo "configure:13313: checking for off_t" >&5
698dcdb6
VZ
13313if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
13314 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 13315else
698dcdb6 13316 cat > conftest.$ac_ext <<EOF
a1622950 13317#line 13318 "configure"
10f2d63a 13318#include "confdefs.h"
698dcdb6
VZ
13319#include <sys/types.h>
13320#if STDC_HEADERS
13321#include <stdlib.h>
13322#include <stddef.h>
13323#endif
13324EOF
13325if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13326 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
13327 rm -rf conftest*
10f2d63a
VZ
13328 ac_cv_type_off_t=yes
13329else
698dcdb6
VZ
13330 rm -rf conftest*
13331 ac_cv_type_off_t=no
703e0a69 13332fi
698dcdb6 13333rm -f conftest*
1e487827 13334
698dcdb6
VZ
13335fi
13336echo "$ac_t""$ac_cv_type_off_t" 1>&6
13337if test $ac_cv_type_off_t = no; then
13338 cat >> confdefs.h <<\EOF
10f2d63a
VZ
13339#define off_t long
13340EOF
13341
13342fi
13343
698dcdb6 13344echo $ac_n "checking for pid_t""... $ac_c" 1>&6
a1622950 13345echo "configure:13346: checking for pid_t" >&5
698dcdb6
VZ
13346if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
13347 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 13348else
698dcdb6 13349 cat > conftest.$ac_ext <<EOF
a1622950 13350#line 13351 "configure"
10f2d63a 13351#include "confdefs.h"
698dcdb6
VZ
13352#include <sys/types.h>
13353#if STDC_HEADERS
13354#include <stdlib.h>
13355#include <stddef.h>
13356#endif
13357EOF
13358if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13359 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
13360 rm -rf conftest*
10f2d63a
VZ
13361 ac_cv_type_pid_t=yes
13362else
698dcdb6
VZ
13363 rm -rf conftest*
13364 ac_cv_type_pid_t=no
703e0a69 13365fi
698dcdb6 13366rm -f conftest*
1e487827 13367
698dcdb6
VZ
13368fi
13369echo "$ac_t""$ac_cv_type_pid_t" 1>&6
13370if test $ac_cv_type_pid_t = no; then
13371 cat >> confdefs.h <<\EOF
10f2d63a
VZ
13372#define pid_t int
13373EOF
13374
13375fi
13376
698dcdb6 13377echo $ac_n "checking for size_t""... $ac_c" 1>&6
a1622950 13378echo "configure:13379: checking for size_t" >&5
698dcdb6
VZ
13379if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
13380 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 13381else
698dcdb6 13382 cat > conftest.$ac_ext <<EOF
a1622950 13383#line 13384 "configure"
10f2d63a 13384#include "confdefs.h"
698dcdb6
VZ
13385#include <sys/types.h>
13386#if STDC_HEADERS
13387#include <stdlib.h>
13388#include <stddef.h>
13389#endif
13390EOF
13391if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13392 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
13393 rm -rf conftest*
10f2d63a
VZ
13394 ac_cv_type_size_t=yes
13395else
698dcdb6
VZ
13396 rm -rf conftest*
13397 ac_cv_type_size_t=no
703e0a69 13398fi
698dcdb6 13399rm -f conftest*
1e487827 13400
698dcdb6
VZ
13401fi
13402echo "$ac_t""$ac_cv_type_size_t" 1>&6
13403if test $ac_cv_type_size_t = no; then
13404 cat >> confdefs.h <<\EOF
10f2d63a
VZ
13405#define size_t unsigned
13406EOF
13407
13408fi
13409
698dcdb6 13410echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
a1622950 13411echo "configure:13412: checking for uid_t in sys/types.h" >&5
698dcdb6
VZ
13412if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
13413 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 13414else
698dcdb6 13415 cat > conftest.$ac_ext <<EOF
a1622950 13416#line 13417 "configure"
10f2d63a
VZ
13417#include "confdefs.h"
13418#include <sys/types.h>
698dcdb6 13419EOF
10f2d63a
VZ
13420if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13421 egrep "uid_t" >/dev/null 2>&1; then
698dcdb6 13422 rm -rf conftest*
10f2d63a
VZ
13423 ac_cv_type_uid_t=yes
13424else
698dcdb6 13425 rm -rf conftest*
10f2d63a
VZ
13426 ac_cv_type_uid_t=no
13427fi
13428rm -f conftest*
13429
13430fi
1e487827 13431
698dcdb6
VZ
13432echo "$ac_t""$ac_cv_type_uid_t" 1>&6
13433if test $ac_cv_type_uid_t = no; then
13434 cat >> confdefs.h <<\EOF
10f2d63a
VZ
13435#define uid_t int
13436EOF
13437
698dcdb6 13438 cat >> confdefs.h <<\EOF
10f2d63a
VZ
13439#define gid_t int
13440EOF
13441
13442fi
13443
1e487827 13444
698dcdb6 13445echo $ac_n "checking for wchar_t""... $ac_c" 1>&6
a1622950 13446echo "configure:13447: checking for wchar_t" >&5
698dcdb6
VZ
13447if eval "test \"`echo '$''{'wx_cv_type_wchar_t'+set}'`\" = set"; then
13448 echo $ac_n "(cached) $ac_c" 1>&6
13449else
13450
13451 cat > conftest.$ac_ext <<EOF
a1622950 13452#line 13453 "configure"
0046ff7c 13453#include "confdefs.h"
4b42290e
GD
13454
13455 #ifdef HAVE_WCHAR_H
0fbb762e
MB
13456 # ifdef __CYGWIN__
13457 # include <stddef.h>
13458 # endif
4b42290e
GD
13459 # include <wchar.h>
13460 #endif
13461 #ifdef HAVE_STDLIB_H
13462 # include <stdlib.h>
13463 #endif
13464
698dcdb6 13465int main() {
0046ff7c 13466
d836ee96
VZ
13467 wchar_t wc, *ws;
13468 wc = L'a';
13469 ws = L"Hello, world!";
698dcdb6
VZ
13470
13471; return 0; }
13472EOF
a1622950 13473if { (eval echo configure:13474: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6 13474 rm -rf conftest*
1f8ae82f 13475 wx_cv_type_wchar_t=yes
0046ff7c 13476else
698dcdb6
VZ
13477 echo "configure: failed program was:" >&5
13478 cat conftest.$ac_ext >&5
13479 rm -rf conftest*
13480 wx_cv_type_wchar_t=no
d836ee96 13481
6232543b 13482fi
698dcdb6 13483rm -f conftest*
703e0a69 13484
1e487827 13485fi
698dcdb6
VZ
13486
13487echo "$ac_t""$wx_cv_type_wchar_t" 1>&6
d836ee96
VZ
13488
13489if test "$wx_cv_type_wchar_t" = "yes"; then
698dcdb6 13490 cat >> confdefs.h <<\EOF
0046ff7c
VS
13491#define wxUSE_WCHAR_T 1
13492EOF
13493
13494fi
13495
19af3b06
VZ
13496
13497ac_ext=C
13498# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13499ac_cpp='$CXXCPP $CPPFLAGS'
13500ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13501ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13502cross_compiling=$ac_cv_prog_cxx_cross
13503
d836ee96 13504echo $ac_n "checking if size_t is unsigned int""... $ac_c" 1>&6
a1622950 13505echo "configure:13506: checking if size_t is unsigned int" >&5
d836ee96
VZ
13506if eval "test \"`echo '$''{'wx_cv_size_t_is_uint'+set}'`\" = set"; then
13507 echo $ac_n "(cached) $ac_c" 1>&6
13508else
dd2c8b7c 13509 cat > conftest.$ac_ext <<EOF
a1622950 13510#line 13511 "configure"
d836ee96
VZ
13511#include "confdefs.h"
13512#include <stddef.h>
13513int main() {
13514
dd2c8b7c
VZ
13515 return 0; }
13516
d836ee96 13517 struct Foo { void foo(size_t); void foo(unsigned int); };
dd2c8b7c
VZ
13518
13519 int bar() {
d836ee96
VZ
13520
13521; return 0; }
13522EOF
a1622950 13523if { (eval echo configure:13524: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d836ee96
VZ
13524 rm -rf conftest*
13525 wx_cv_size_t_is_uint=no
13526else
13527 echo "configure: failed program was:" >&5
13528 cat conftest.$ac_ext >&5
13529 rm -rf conftest*
13530 wx_cv_size_t_is_uint=yes
13531
13532fi
13533rm -f conftest*
13534
13535fi
13536
13537echo "$ac_t""$wx_cv_size_t_is_uint" 1>&6
13538
13539if test "$wx_cv_size_t_is_uint" = "yes"; then
13540 cat >> confdefs.h <<\EOF
13541#define wxSIZE_T_IS_UINT 1
13542EOF
13543
13544else
13545 echo $ac_n "checking if size_t is unsigned long""... $ac_c" 1>&6
a1622950 13546echo "configure:13547: checking if size_t is unsigned long" >&5
d836ee96
VZ
13547if eval "test \"`echo '$''{'wx_cv_size_t_is_ulong'+set}'`\" = set"; then
13548 echo $ac_n "(cached) $ac_c" 1>&6
13549else
13550 cat > conftest.$ac_ext <<EOF
a1622950 13551#line 13552 "configure"
d836ee96
VZ
13552#include "confdefs.h"
13553#include <stddef.h>
13554int main() {
13555
dd2c8b7c
VZ
13556 return 0; }
13557
d836ee96 13558 struct Foo { void foo(size_t); void foo(unsigned long); };
dd2c8b7c
VZ
13559
13560 int bar() {
d836ee96
VZ
13561
13562; return 0; }
13563EOF
a1622950 13564if { (eval echo configure:13565: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d836ee96
VZ
13565 rm -rf conftest*
13566 wx_cv_size_t_is_ulong=no
13567else
13568 echo "configure: failed program was:" >&5
13569 cat conftest.$ac_ext >&5
13570 rm -rf conftest*
13571 wx_cv_size_t_is_ulong=yes
13572
13573fi
13574rm -f conftest*
13575
13576fi
13577
13578echo "$ac_t""$wx_cv_size_t_is_ulong" 1>&6
13579
13580 if test "$wx_cv_size_t_is_ulong" = "yes"; then
13581 cat >> confdefs.h <<\EOF
13582#define wxSIZE_T_IS_ULONG 1
13583EOF
13584
13585 fi
13586fi
13587
19af3b06
VZ
13588ac_ext=c
13589# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13590ac_cpp='$CPP $CPPFLAGS'
13591ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13592ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13593cross_compiling=$ac_cv_prog_cc_cross
13594
13595
1e487827 13596
698dcdb6 13597echo $ac_n "checking for pw_gecos in struct passwd""... $ac_c" 1>&6
a1622950 13598echo "configure:13599: checking for pw_gecos in struct passwd" >&5
698dcdb6
VZ
13599if eval "test \"`echo '$''{'wx_cv_struct_pw_gecos'+set}'`\" = set"; then
13600 echo $ac_n "(cached) $ac_c" 1>&6
13601else
13602
13603 cat > conftest.$ac_ext <<EOF
a1622950 13604#line 13605 "configure"
b12915c1
VZ
13605#include "confdefs.h"
13606#include <pwd.h>
698dcdb6 13607int main() {
b12915c1
VZ
13608
13609 char *p;
13610 struct passwd *pw;
13611 p = pw->pw_gecos;
698dcdb6
VZ
13612
13613; return 0; }
13614EOF
a1622950 13615if { (eval echo configure:13616: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6
VZ
13616 rm -rf conftest*
13617
b12915c1 13618 wx_cv_struct_pw_gecos=yes
698dcdb6 13619
b12915c1 13620else
698dcdb6
VZ
13621 echo "configure: failed program was:" >&5
13622 cat conftest.$ac_ext >&5
13623 rm -rf conftest*
13624
b12915c1 13625 wx_cv_struct_pw_gecos=no
698dcdb6
VZ
13626
13627
6232543b 13628fi
698dcdb6
VZ
13629rm -f conftest*
13630
703e0a69 13631
1e487827 13632fi
698dcdb6
VZ
13633
13634echo "$ac_t""$wx_cv_struct_pw_gecos" 1>&6
b12915c1 13635
bd3277fe 13636if test "$wx_cv_struct_pw_gecos" = "yes"; then
698dcdb6 13637 cat >> confdefs.h <<\EOF
bd3277fe
VZ
13638#define HAVE_PW_GECOS 1
13639EOF
13640
13641fi
13642
698dcdb6
VZ
13643
13644echo $ac_n "checking for working const""... $ac_c" 1>&6
a1622950 13645echo "configure:13646: checking for working const" >&5
698dcdb6
VZ
13646if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
13647 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 13648else
698dcdb6 13649 cat > conftest.$ac_ext <<EOF
a1622950 13650#line 13651 "configure"
10f2d63a 13651#include "confdefs.h"
698dcdb6
VZ
13652
13653int main() {
13654
13655/* Ultrix mips cc rejects this. */
a1622950 13656typedef int charset[2]; const charset x = {0,0};
698dcdb6
VZ
13657/* SunOS 4.1.1 cc rejects this. */
13658char const *const *ccp;
13659char **p;
13660/* NEC SVR4.0.2 mips cc rejects this. */
13661struct point {int x, y;};
13662static struct point const zero = {0,0};
13663/* AIX XL C 1.02.0.0 rejects this.
13664 It does not let you subtract one const X* pointer from another in an arm
13665 of an if-expression whose if-part is not a constant expression */
13666const char *g = "string";
13667ccp = &g + (g ? g-g : 0);
13668/* HPUX 7.0 cc rejects these. */
13669++ccp;
13670p = (char**) ccp;
13671ccp = (char const *const *) p;
13672{ /* SCO 3.2v4 cc rejects this. */
13673 char *t;
13674 char const *s = 0 ? (char *) 0 : (char const *) 0;
13675
13676 *t++ = 0;
10f2d63a 13677}
698dcdb6
VZ
13678{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
13679 int x[] = {25, 17};
13680 const int *foo = &x[0];
13681 ++foo;
703e0a69 13682}
698dcdb6
VZ
13683{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
13684 typedef const int *iptr;
13685 iptr p = 0;
13686 ++p;
6232543b 13687}
698dcdb6
VZ
13688{ /* AIX XL C 1.02.0.0 rejects this saying
13689 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
13690 struct s { int j; const int *ap[3]; };
13691 struct s *b; b->j = 5;
1e487827 13692}
698dcdb6
VZ
13693{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
13694 const int foo = 10;
13695}
4f14bcd8
GD
13696
13697; return 0; }
698dcdb6 13698EOF
a1622950 13699if { (eval echo configure:13700: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4f14bcd8
GD
13700 rm -rf conftest*
13701 ac_cv_c_const=yes
698dcdb6
VZ
13702else
13703 echo "configure: failed program was:" >&5
13704 cat conftest.$ac_ext >&5
4f14bcd8
GD
13705 rm -rf conftest*
13706 ac_cv_c_const=no
703e0a69 13707fi
4f14bcd8 13708rm -f conftest*
698dcdb6
VZ
13709fi
13710
4f14bcd8
GD
13711echo "$ac_t""$ac_cv_c_const" 1>&6
13712if test $ac_cv_c_const = no; then
13713 cat >> confdefs.h <<\EOF
13714#define const
698dcdb6
VZ
13715EOF
13716
4f14bcd8 13717fi
698dcdb6 13718
4f14bcd8 13719echo $ac_n "checking for inline""... $ac_c" 1>&6
a1622950 13720echo "configure:13721: checking for inline" >&5
4f14bcd8 13721if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
698dcdb6 13722 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 13723else
4f14bcd8
GD
13724 ac_cv_c_inline=no
13725for ac_kw in inline __inline__ __inline; do
698dcdb6 13726 cat > conftest.$ac_ext <<EOF
a1622950 13727#line 13728 "configure"
10f2d63a 13728#include "confdefs.h"
4f14bcd8
GD
13729
13730int main() {
a1622950 13731} int $ac_kw foo() {
4f14bcd8 13732; return 0; }
698dcdb6 13733EOF
a1622950 13734if { (eval echo configure:13735: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4f14bcd8
GD
13735 rm -rf conftest*
13736 ac_cv_c_inline=$ac_kw; break
10f2d63a 13737else
698dcdb6
VZ
13738 echo "configure: failed program was:" >&5
13739 cat conftest.$ac_ext >&5
10f2d63a 13740fi
4f14bcd8
GD
13741rm -f conftest*
13742done
698dcdb6 13743
10f2d63a 13744fi
4f14bcd8
GD
13745
13746echo "$ac_t""$ac_cv_c_inline" 1>&6
13747case "$ac_cv_c_inline" in
13748 inline | yes) ;;
13749 no) cat >> confdefs.h <<\EOF
13750#define inline
13751EOF
13752 ;;
13753 *) cat >> confdefs.h <<EOF
13754#define inline $ac_cv_c_inline
698dcdb6 13755EOF
4f14bcd8
GD
13756 ;;
13757esac
698dcdb6
VZ
13758
13759
4f14bcd8 13760echo $ac_n "checking size of char""... $ac_c" 1>&6
a1622950 13761echo "configure:13762: checking size of char" >&5
4f14bcd8 13762if eval "test \"`echo '$''{'ac_cv_sizeof_char'+set}'`\" = set"; then
698dcdb6
VZ
13763 echo $ac_n "(cached) $ac_c" 1>&6
13764else
13765 if test "$cross_compiling" = yes; then
4f14bcd8 13766 ac_cv_sizeof_char=1
698dcdb6
VZ
13767else
13768 cat > conftest.$ac_ext <<EOF
a1622950 13769#line 13770 "configure"
698dcdb6
VZ
13770#include "confdefs.h"
13771#include <stdio.h>
13772main()
13773{
13774 FILE *f=fopen("conftestval", "w");
13775 if (!f) exit(1);
4f14bcd8 13776 fprintf(f, "%d\n", sizeof(char));
698dcdb6
VZ
13777 exit(0);
13778}
13779EOF
a1622950 13780if { (eval echo configure:13781: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
698dcdb6 13781then
4f14bcd8 13782 ac_cv_sizeof_char=`cat conftestval`
6232543b 13783else
698dcdb6
VZ
13784 echo "configure: failed program was:" >&5
13785 cat conftest.$ac_ext >&5
13786 rm -fr conftest*
4f14bcd8 13787 ac_cv_sizeof_char=0
6232543b 13788fi
698dcdb6
VZ
13789rm -fr conftest*
13790fi
13791
703e0a69 13792fi
4f14bcd8 13793echo "$ac_t""$ac_cv_sizeof_char" 1>&6
698dcdb6 13794cat >> confdefs.h <<EOF
4f14bcd8 13795#define SIZEOF_CHAR $ac_cv_sizeof_char
10f2d63a
VZ
13796EOF
13797
1e487827 13798
4f14bcd8 13799echo $ac_n "checking size of short""... $ac_c" 1>&6
a1622950 13800echo "configure:13801: checking size of short" >&5
4f14bcd8 13801if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
698dcdb6
VZ
13802 echo $ac_n "(cached) $ac_c" 1>&6
13803else
4f14bcd8
GD
13804 if test "$cross_compiling" = yes; then
13805 ac_cv_sizeof_short=2
b93d0d08 13806else
698dcdb6 13807 cat > conftest.$ac_ext <<EOF
a1622950 13808#line 13809 "configure"
b93d0d08 13809#include "confdefs.h"
4f14bcd8
GD
13810#include <stdio.h>
13811main()
13812{
13813 FILE *f=fopen("conftestval", "w");
13814 if (!f) exit(1);
13815 fprintf(f, "%d\n", sizeof(short));
13816 exit(0);
13817}
698dcdb6 13818EOF
a1622950 13819if { (eval echo configure:13820: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
698dcdb6 13820then
4f14bcd8 13821 ac_cv_sizeof_short=`cat conftestval`
b93d0d08 13822else
698dcdb6
VZ
13823 echo "configure: failed program was:" >&5
13824 cat conftest.$ac_ext >&5
13825 rm -fr conftest*
4f14bcd8 13826 ac_cv_sizeof_short=0
b93d0d08 13827fi
698dcdb6 13828rm -fr conftest*
b93d0d08
VS
13829fi
13830
b93d0d08 13831fi
4f14bcd8 13832echo "$ac_t""$ac_cv_sizeof_short" 1>&6
698dcdb6 13833cat >> confdefs.h <<EOF
4f14bcd8 13834#define SIZEOF_SHORT $ac_cv_sizeof_short
b93d0d08
VS
13835EOF
13836
698dcdb6 13837
4f14bcd8 13838echo $ac_n "checking size of int *""... $ac_c" 1>&6
a1622950 13839echo "configure:13840: checking size of int *" >&5
4f14bcd8 13840if eval "test \"`echo '$''{'ac_cv_sizeof_int_p'+set}'`\" = set"; then
698dcdb6 13841 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 13842else
4f14bcd8
GD
13843 if test "$cross_compiling" = yes; then
13844 ac_cv_sizeof_int_p=4
3a922bb4 13845else
3a922bb4 13846 cat > conftest.$ac_ext <<EOF
a1622950 13847#line 13848 "configure"
3a922bb4 13848#include "confdefs.h"
4f14bcd8
GD
13849#include <stdio.h>
13850main()
13851{
13852 FILE *f=fopen("conftestval", "w");
13853 if (!f) exit(1);
13854 fprintf(f, "%d\n", sizeof(int *));
13855 exit(0);
13856}
13857EOF
a1622950 13858if { (eval echo configure:13859: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4f14bcd8
GD
13859then
13860 ac_cv_sizeof_int_p=`cat conftestval`
13861else
13862 echo "configure: failed program was:" >&5
13863 cat conftest.$ac_ext >&5
13864 rm -fr conftest*
13865 ac_cv_sizeof_int_p=0
3a922bb4 13866fi
4f14bcd8 13867rm -fr conftest*
3a922bb4 13868fi
698dcdb6 13869
4f14bcd8
GD
13870fi
13871echo "$ac_t""$ac_cv_sizeof_int_p" 1>&6
13872cat >> confdefs.h <<EOF
13873#define SIZEOF_INT_P $ac_cv_sizeof_int_p
10f2d63a
VZ
13874EOF
13875
703e0a69 13876
4f14bcd8 13877echo $ac_n "checking size of int""... $ac_c" 1>&6
a1622950 13878echo "configure:13879: checking size of int" >&5
4f14bcd8 13879if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
698dcdb6 13880 echo $ac_n "(cached) $ac_c" 1>&6
4f14bcd8
GD
13881else
13882 if test "$cross_compiling" = yes; then
13883 ac_cv_sizeof_int=4
698dcdb6
VZ
13884else
13885 cat > conftest.$ac_ext <<EOF
a1622950 13886#line 13887 "configure"
10f2d63a 13887#include "confdefs.h"
4f14bcd8
GD
13888#include <stdio.h>
13889main()
13890{
13891 FILE *f=fopen("conftestval", "w");
13892 if (!f) exit(1);
13893 fprintf(f, "%d\n", sizeof(int));
13894 exit(0);
13895}
698dcdb6 13896EOF
a1622950 13897if { (eval echo configure:13898: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4f14bcd8
GD
13898then
13899 ac_cv_sizeof_int=`cat conftestval`
10f2d63a 13900else
698dcdb6 13901 echo "configure: failed program was:" >&5
10f2d63a 13902 cat conftest.$ac_ext >&5
4f14bcd8
GD
13903 rm -fr conftest*
13904 ac_cv_sizeof_int=0
10f2d63a 13905fi
4f14bcd8 13906rm -fr conftest*
10f2d63a 13907fi
10f2d63a 13908
4f14bcd8
GD
13909fi
13910echo "$ac_t""$ac_cv_sizeof_int" 1>&6
13911cat >> confdefs.h <<EOF
13912#define SIZEOF_INT $ac_cv_sizeof_int
10f2d63a
VZ
13913EOF
13914
698dcdb6 13915
4f14bcd8 13916echo $ac_n "checking size of long""... $ac_c" 1>&6
a1622950 13917echo "configure:13918: checking size of long" >&5
4f14bcd8 13918if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
698dcdb6
VZ
13919 echo $ac_n "(cached) $ac_c" 1>&6
13920else
4f14bcd8
GD
13921 if test "$cross_compiling" = yes; then
13922 ac_cv_sizeof_long=4
13923else
13924 cat > conftest.$ac_ext <<EOF
a1622950 13925#line 13926 "configure"
10f2d63a 13926#include "confdefs.h"
4f14bcd8
GD
13927#include <stdio.h>
13928main()
13929{
13930 FILE *f=fopen("conftestval", "w");
13931 if (!f) exit(1);
13932 fprintf(f, "%d\n", sizeof(long));
13933 exit(0);
13934}
698dcdb6 13935EOF
a1622950 13936if { (eval echo configure:13937: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4f14bcd8
GD
13937then
13938 ac_cv_sizeof_long=`cat conftestval`
10f2d63a 13939else
698dcdb6
VZ
13940 echo "configure: failed program was:" >&5
13941 cat conftest.$ac_ext >&5
4f14bcd8
GD
13942 rm -fr conftest*
13943 ac_cv_sizeof_long=0
10f2d63a 13944fi
4f14bcd8 13945rm -fr conftest*
10f2d63a 13946fi
698dcdb6 13947
4f14bcd8
GD
13948fi
13949echo "$ac_t""$ac_cv_sizeof_long" 1>&6
13950cat >> confdefs.h <<EOF
13951#define SIZEOF_LONG $ac_cv_sizeof_long
10f2d63a
VZ
13952EOF
13953
698dcdb6 13954
4f14bcd8 13955echo $ac_n "checking size of long long""... $ac_c" 1>&6
a1622950 13956echo "configure:13957: checking size of long long" >&5
4f14bcd8 13957if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
698dcdb6 13958 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 13959else
4f14bcd8
GD
13960 if test "$cross_compiling" = yes; then
13961 ac_cv_sizeof_long_long=0
13962else
13963 cat > conftest.$ac_ext <<EOF
a1622950 13964#line 13965 "configure"
10f2d63a 13965#include "confdefs.h"
4f14bcd8
GD
13966#include <stdio.h>
13967main()
13968{
13969 FILE *f=fopen("conftestval", "w");
13970 if (!f) exit(1);
13971 fprintf(f, "%d\n", sizeof(long long));
13972 exit(0);
13973}
698dcdb6 13974EOF
a1622950 13975if { (eval echo configure:13976: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4f14bcd8
GD
13976then
13977 ac_cv_sizeof_long_long=`cat conftestval`
698dcdb6
VZ
13978else
13979 echo "configure: failed program was:" >&5
13980 cat conftest.$ac_ext >&5
4f14bcd8
GD
13981 rm -fr conftest*
13982 ac_cv_sizeof_long_long=0
13983fi
13984rm -fr conftest*
698dcdb6 13985fi
698dcdb6
VZ
13986
13987fi
4f14bcd8
GD
13988echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
13989cat >> confdefs.h <<EOF
13990#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
10f2d63a
VZ
13991EOF
13992
10f2d63a 13993
4f14bcd8
GD
13994
13995echo $ac_n "checking size of wchar_t""... $ac_c" 1>&6
a1622950 13996echo "configure:13997: checking size of wchar_t" >&5
4f14bcd8 13997if eval "test \"`echo '$''{'wx_cv_sizeof_wchar_t'+set}'`\" = set"; then
698dcdb6 13998 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 13999else
4f14bcd8
GD
14000
14001 if test "$cross_compiling" = yes; then
14002 wx_cv_sizeof_wchar_t=4
14003
14004else
14005 cat > conftest.$ac_ext <<EOF
a1622950 14006#line 14007 "configure"
10f2d63a 14007#include "confdefs.h"
698dcdb6 14008
4f14bcd8 14009 #ifdef HAVE_WCHAR_H
0fbb762e
MB
14010 # ifdef __CYGWIN__
14011 # include <stddef.h>
14012 # endif
4f14bcd8
GD
14013 # include <wchar.h>
14014 #endif
14015 #ifdef HAVE_STDLIB_H
14016 # include <stdlib.h>
14017 #endif
14018 #include <stdio.h>
14019 int main()
14020 {
14021 FILE *f=fopen("conftestval", "w");
14022 if (!f) exit(1);
14023 fprintf(f, "%i", sizeof(wchar_t));
14024 exit(0);
14025 }
14026
698dcdb6 14027EOF
a1622950 14028if { (eval echo configure:14029: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4f14bcd8
GD
14029then
14030 wx_cv_sizeof_wchar_t=`cat conftestval`
698dcdb6
VZ
14031else
14032 echo "configure: failed program was:" >&5
14033 cat conftest.$ac_ext >&5
4f14bcd8
GD
14034 rm -fr conftest*
14035 wx_cv_sizeof_wchar_t=0
698dcdb6 14036fi
4f14bcd8
GD
14037rm -fr conftest*
14038fi
14039
698dcdb6
VZ
14040
14041fi
4f14bcd8
GD
14042
14043echo "$ac_t""$wx_cv_sizeof_wchar_t" 1>&6
14044
14045cat >> confdefs.h <<EOF
14046#define SIZEOF_WCHAR_T $wx_cv_sizeof_wchar_t
10f2d63a
VZ
14047EOF
14048
18dbb1f6 14049
4f14bcd8 14050echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
a1622950 14051echo "configure:14052: checking whether byte ordering is bigendian" >&5
4f14bcd8 14052if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
18dbb1f6
VZ
14053 echo $ac_n "(cached) $ac_c" 1>&6
14054else
4f14bcd8
GD
14055 ac_cv_c_bigendian=unknown
14056# See if sys/param.h defines the BYTE_ORDER macro.
18dbb1f6 14057cat > conftest.$ac_ext <<EOF
a1622950 14058#line 14059 "configure"
18dbb1f6 14059#include "confdefs.h"
4f14bcd8
GD
14060#include <sys/types.h>
14061#include <sys/param.h>
14062int main() {
18dbb1f6 14063
4f14bcd8
GD
14064#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
14065 bogus endian macros
14066#endif
14067; return 0; }
14068EOF
a1622950 14069if { (eval echo configure:14070: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4f14bcd8
GD
14070 rm -rf conftest*
14071 # It does; now see whether it defined to BIG_ENDIAN or not.
14072cat > conftest.$ac_ext <<EOF
a1622950 14073#line 14074 "configure"
4f14bcd8
GD
14074#include "confdefs.h"
14075#include <sys/types.h>
14076#include <sys/param.h>
18dbb1f6 14077int main() {
4f14bcd8
GD
14078
14079#if BYTE_ORDER != BIG_ENDIAN
14080 not big endian
14081#endif
18dbb1f6
VZ
14082; return 0; }
14083EOF
a1622950 14084if { (eval echo configure:14085: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18dbb1f6 14085 rm -rf conftest*
4f14bcd8 14086 ac_cv_c_bigendian=yes
18dbb1f6
VZ
14087else
14088 echo "configure: failed program was:" >&5
14089 cat conftest.$ac_ext >&5
14090 rm -rf conftest*
4f14bcd8 14091 ac_cv_c_bigendian=no
18dbb1f6
VZ
14092fi
14093rm -f conftest*
698dcdb6 14094else
4f14bcd8
GD
14095 echo "configure: failed program was:" >&5
14096 cat conftest.$ac_ext >&5
1e487827 14097fi
4f14bcd8
GD
14098rm -f conftest*
14099if test $ac_cv_c_bigendian = unknown; then
14100if test "$cross_compiling" = yes; then
14101 ac_cv_c_bigendian=unknown
b3e8d00a
VZ
14102else
14103 cat > conftest.$ac_ext <<EOF
a1622950 14104#line 14105 "configure"
b3e8d00a 14105#include "confdefs.h"
4f14bcd8
GD
14106main () {
14107 /* Are we little or big endian? From Harbison&Steele. */
14108 union
14109 {
14110 long l;
14111 char c[sizeof (long)];
14112 } u;
14113 u.l = 1;
14114 exit (u.c[sizeof (long) - 1] == 1);
14115}
b3e8d00a 14116EOF
a1622950 14117if { (eval echo configure:14118: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4f14bcd8
GD
14118then
14119 ac_cv_c_bigendian=no
b3e8d00a
VZ
14120else
14121 echo "configure: failed program was:" >&5
14122 cat conftest.$ac_ext >&5
4f14bcd8
GD
14123 rm -fr conftest*
14124 ac_cv_c_bigendian=yes
b3e8d00a 14125fi
4f14bcd8 14126rm -fr conftest*
b3e8d00a
VZ
14127fi
14128
4f14bcd8
GD
14129fi
14130fi
14131
14132echo "$ac_t""$ac_cv_c_bigendian" 1>&6
14133if test $ac_cv_c_bigendian = unknown; then
14134 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
14135fi
14136if test $ac_cv_c_bigendian = yes; then
14137 cat >> confdefs.h <<\EOF
14138#define WORDS_BIGENDIAN 1
b3e8d00a 14139EOF
4f14bcd8 14140
b3e8d00a 14141fi
b3e8d00a
VZ
14142
14143
4f14bcd8 14144echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
a1622950 14145echo "configure:14146: checking how to run the C++ preprocessor" >&5
4f14bcd8
GD
14146if test -z "$CXXCPP"; then
14147if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
698dcdb6
VZ
14148 echo $ac_n "(cached) $ac_c" 1>&6
14149else
4f14bcd8
GD
14150 ac_ext=C
14151# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14152ac_cpp='$CXXCPP $CPPFLAGS'
14153ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14154ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14155cross_compiling=$ac_cv_prog_cxx_cross
14156 CXXCPP="${CXX-g++} -E"
698dcdb6 14157 cat > conftest.$ac_ext <<EOF
a1622950 14158#line 14159 "configure"
10f2d63a 14159#include "confdefs.h"
4f14bcd8 14160#include <stdlib.h>
698dcdb6 14161EOF
4f14bcd8 14162ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
a1622950 14163{ (eval echo configure:14164: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4f14bcd8
GD
14164ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
14165if test -z "$ac_err"; then
14166 :
698dcdb6 14167else
4f14bcd8 14168 echo "$ac_err" >&5
698dcdb6
VZ
14169 echo "configure: failed program was:" >&5
14170 cat conftest.$ac_ext >&5
14171 rm -rf conftest*
4f14bcd8 14172 CXXCPP=/lib/cpp
698dcdb6
VZ
14173fi
14174rm -f conftest*
4f14bcd8
GD
14175 ac_cv_prog_CXXCPP="$CXXCPP"
14176ac_ext=C
14177# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14178ac_cpp='$CXXCPP $CPPFLAGS'
14179ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14180ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14181cross_compiling=$ac_cv_prog_cxx_cross
14182fi
698dcdb6 14183fi
4f14bcd8
GD
14184CXXCPP="$ac_cv_prog_CXXCPP"
14185echo "$ac_t""$CXXCPP" 1>&6
698dcdb6 14186
4f14bcd8
GD
14187
14188 if test "$cross_compiling" = "yes"; then
14189 cat >> confdefs.h <<\EOF
14190#define wxUSE_IOSTREAMH 1
698dcdb6
VZ
14191EOF
14192
4f14bcd8
GD
14193 else
14194
14195 ac_ext=C
14196# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14197ac_cpp='$CXXCPP $CPPFLAGS'
14198ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14199ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14200cross_compiling=$ac_cv_prog_cxx_cross
698dcdb6 14201
4f14bcd8
GD
14202
14203 for ac_hdr in iostream
14204do
14205ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
14206echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
a1622950 14207echo "configure:14208: checking for $ac_hdr" >&5
4f14bcd8 14208if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
698dcdb6
VZ
14209 echo $ac_n "(cached) $ac_c" 1>&6
14210else
14211 cat > conftest.$ac_ext <<EOF
a1622950 14212#line 14213 "configure"
10f2d63a 14213#include "confdefs.h"
4f14bcd8 14214#include <$ac_hdr>
698dcdb6 14215EOF
4f14bcd8 14216ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
a1622950 14217{ (eval echo configure:14218: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4f14bcd8
GD
14218ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
14219if test -z "$ac_err"; then
698dcdb6 14220 rm -rf conftest*
4f14bcd8 14221 eval "ac_cv_header_$ac_safe=yes"
698dcdb6 14222else
4f14bcd8 14223 echo "$ac_err" >&5
698dcdb6
VZ
14224 echo "configure: failed program was:" >&5
14225 cat conftest.$ac_ext >&5
14226 rm -rf conftest*
4f14bcd8 14227 eval "ac_cv_header_$ac_safe=no"
698dcdb6
VZ
14228fi
14229rm -f conftest*
14230fi
4f14bcd8 14231if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
698dcdb6 14232 echo "$ac_t""yes" 1>&6
4f14bcd8
GD
14233 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
14234 cat >> confdefs.h <<EOF
14235#define $ac_tr_hdr 1
10f2d63a 14236EOF
4f14bcd8 14237
698dcdb6
VZ
14238else
14239 echo "$ac_t""no" 1>&6
10f2d63a 14240fi
4f14bcd8 14241done
10f2d63a 14242
10f2d63a 14243
4f14bcd8
GD
14244 if test "$ac_cv_header_iostream" = "yes" ; then
14245 :
14246 else
14247 cat >> confdefs.h <<\EOF
14248#define wxUSE_IOSTREAMH 1
14249EOF
14250
14251 fi
1e487827 14252
4f14bcd8
GD
14253 ac_ext=c
14254# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14255ac_cpp='$CPP $CPPFLAGS'
14256ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14257ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14258cross_compiling=$ac_cv_prog_cc_cross
698dcdb6 14259
4f14bcd8 14260 fi
698dcdb6
VZ
14261
14262
14263
4f14bcd8 14264 echo $ac_n "checking if C++ compiler supports bool""... $ac_c" 1>&6
a1622950 14265echo "configure:14266: checking if C++ compiler supports bool" >&5
4f14bcd8 14266if eval "test \"`echo '$''{'wx_cv_cpp_bool'+set}'`\" = set"; then
698dcdb6
VZ
14267 echo $ac_n "(cached) $ac_c" 1>&6
14268else
14269
4f14bcd8
GD
14270
14271 ac_ext=C
14272# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14273ac_cpp='$CXXCPP $CPPFLAGS'
14274ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14275ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14276cross_compiling=$ac_cv_prog_cxx_cross
f6bcfd97 14277
10f2d63a 14278
4f14bcd8 14279 cat > conftest.$ac_ext <<EOF
a1622950 14280#line 14281 "configure"
4f14bcd8 14281#include "confdefs.h"
10f2d63a 14282
4f14bcd8
GD
14283
14284int main() {
f6bcfd97 14285
4f14bcd8 14286 bool b = true;
f6bcfd97 14287
4f14bcd8
GD
14288 return 0;
14289
698dcdb6
VZ
14290; return 0; }
14291EOF
a1622950 14292if { (eval echo configure:14293: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6
VZ
14293 rm -rf conftest*
14294
4f14bcd8
GD
14295 wx_cv_cpp_bool=yes
14296
10f2d63a 14297else
698dcdb6
VZ
14298 echo "configure: failed program was:" >&5
14299 cat conftest.$ac_ext >&5
14300 rm -rf conftest*
14301
4f14bcd8
GD
14302 wx_cv_cpp_bool=no
14303
14304
14305fi
14306rm -f conftest*
c521c494 14307
4f14bcd8
GD
14308 ac_ext=c
14309# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14310ac_cpp='$CPP $CPPFLAGS'
14311ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14312ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14313cross_compiling=$ac_cv_prog_cc_cross
c521c494 14314
4f14bcd8
GD
14315
14316fi
c521c494 14317
4f14bcd8 14318echo "$ac_t""$wx_cv_cpp_bool" 1>&6
c521c494 14319
4f14bcd8
GD
14320 if test "$wx_cv_cpp_bool" = "yes"; then
14321 cat >> confdefs.h <<\EOF
14322#define HAVE_BOOL 1
14323EOF
c521c494 14324
4f14bcd8
GD
14325 fi
14326
14327
14328
14329echo $ac_n "checking for wcslen in -lc""... $ac_c" 1>&6
a1622950 14330echo "configure:14331: checking for wcslen in -lc" >&5
4f14bcd8
GD
14331ac_lib_var=`echo c'_'wcslen | sed 'y%./+-%__p_%'`
14332if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14333 echo $ac_n "(cached) $ac_c" 1>&6
14334else
14335 ac_save_LIBS="$LIBS"
14336LIBS="-lc $LIBS"
14337cat > conftest.$ac_ext <<EOF
a1622950 14338#line 14339 "configure"
4f14bcd8
GD
14339#include "confdefs.h"
14340/* Override any gcc2 internal prototype to avoid an error. */
14341/* We use char because int might match the return type of a gcc2
14342 builtin and then its argument prototype would still apply. */
14343char wcslen();
14344
14345int main() {
14346wcslen()
698dcdb6
VZ
14347; return 0; }
14348EOF
a1622950 14349if { (eval echo configure:14350: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6 14350 rm -rf conftest*
4f14bcd8 14351 eval "ac_cv_lib_$ac_lib_var=yes"
c521c494 14352else
698dcdb6
VZ
14353 echo "configure: failed program was:" >&5
14354 cat conftest.$ac_ext >&5
14355 rm -rf conftest*
4f14bcd8 14356 eval "ac_cv_lib_$ac_lib_var=no"
6232543b 14357fi
698dcdb6 14358rm -f conftest*
4f14bcd8 14359LIBS="$ac_save_LIBS"
703e0a69 14360
1e487827 14361fi
4f14bcd8
GD
14362if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14363 echo "$ac_t""yes" 1>&6
14364
14365 cat >> confdefs.h <<\EOF
14366#define HAVE_WCSLEN 1
9d8deca0
VZ
14367EOF
14368
3d63bc3a 14369 WCHAR_LINK=
4f14bcd8 14370
9d8deca0 14371else
4f14bcd8 14372 echo "$ac_t""no" 1>&6
9d8deca0 14373
4f14bcd8 14374 echo $ac_n "checking for wcslen in -lw""... $ac_c" 1>&6
a1622950 14375echo "configure:14376: checking for wcslen in -lw" >&5
4f14bcd8
GD
14376ac_lib_var=`echo w'_'wcslen | sed 'y%./+-%__p_%'`
14377if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
698dcdb6 14378 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 14379else
4f14bcd8
GD
14380 ac_save_LIBS="$LIBS"
14381LIBS="-lw $LIBS"
14382cat > conftest.$ac_ext <<EOF
a1622950 14383#line 14384 "configure"
10f2d63a 14384#include "confdefs.h"
4f14bcd8
GD
14385/* Override any gcc2 internal prototype to avoid an error. */
14386/* We use char because int might match the return type of a gcc2
14387 builtin and then its argument prototype would still apply. */
14388char wcslen();
10f2d63a 14389
698dcdb6 14390int main() {
4f14bcd8 14391wcslen()
698dcdb6
VZ
14392; return 0; }
14393EOF
a1622950 14394if { (eval echo configure:14395: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6 14395 rm -rf conftest*
4f14bcd8 14396 eval "ac_cv_lib_$ac_lib_var=yes"
10f2d63a 14397else
698dcdb6
VZ
14398 echo "configure: failed program was:" >&5
14399 cat conftest.$ac_ext >&5
14400 rm -rf conftest*
4f14bcd8 14401 eval "ac_cv_lib_$ac_lib_var=no"
6232543b 14402fi
698dcdb6 14403rm -f conftest*
4f14bcd8 14404LIBS="$ac_save_LIBS"
703e0a69 14405
1e487827 14406fi
4f14bcd8
GD
14407if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14408 echo "$ac_t""yes" 1>&6
14409
14410 cat >> confdefs.h <<\EOF
14411#define HAVE_WCSLEN 1
9d8deca0
VZ
14412EOF
14413
3d63bc3a 14414 WCHAR_LINK=" -lw"
4f14bcd8
GD
14415
14416else
14417 echo "$ac_t""no" 1>&6
698dcdb6 14418
4f14bcd8 14419 echo $ac_n "checking for wcslen in -lmsvcrt""... $ac_c" 1>&6
a1622950 14420echo "configure:14421: checking for wcslen in -lmsvcrt" >&5
4f14bcd8
GD
14421ac_lib_var=`echo msvcrt'_'wcslen | sed 'y%./+-%__p_%'`
14422if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
698dcdb6
VZ
14423 echo $ac_n "(cached) $ac_c" 1>&6
14424else
4f14bcd8
GD
14425 ac_save_LIBS="$LIBS"
14426LIBS="-lmsvcrt $LIBS"
14427cat > conftest.$ac_ext <<EOF
a1622950 14428#line 14429 "configure"
95c8801c 14429#include "confdefs.h"
4f14bcd8
GD
14430/* Override any gcc2 internal prototype to avoid an error. */
14431/* We use char because int might match the return type of a gcc2
14432 builtin and then its argument prototype would still apply. */
14433char wcslen();
95c8801c 14434
4f14bcd8
GD
14435int main() {
14436wcslen()
698dcdb6
VZ
14437; return 0; }
14438EOF
a1622950 14439if { (eval echo configure:14440: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6 14440 rm -rf conftest*
4f14bcd8 14441 eval "ac_cv_lib_$ac_lib_var=yes"
95c8801c 14442else
698dcdb6
VZ
14443 echo "configure: failed program was:" >&5
14444 cat conftest.$ac_ext >&5
14445 rm -rf conftest*
4f14bcd8 14446 eval "ac_cv_lib_$ac_lib_var=no"
95c8801c 14447fi
698dcdb6 14448rm -f conftest*
4f14bcd8 14449LIBS="$ac_save_LIBS"
95c8801c
VS
14450
14451fi
4f14bcd8
GD
14452if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14453 echo "$ac_t""yes" 1>&6
14454
14455 cat >> confdefs.h <<\EOF
14456#define HAVE_WCSLEN 1
14457EOF
698dcdb6 14458
3d63bc3a 14459 WCHAR_LINK=
4f14bcd8
GD
14460
14461else
14462 echo "$ac_t""no" 1>&6
14463fi
10f2d63a 14464
4f14bcd8
GD
14465
14466fi
95c8801c 14467
4f14bcd8 14468
95c8801c 14469fi
10f2d63a 14470
1e487827 14471
4f14bcd8 14472for ac_func in wcsrtombs
eb4efbdc 14473do
698dcdb6 14474echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
a1622950 14475echo "configure:14476: checking for $ac_func" >&5
698dcdb6
VZ
14476if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14477 echo $ac_n "(cached) $ac_c" 1>&6
14478else
14479 cat > conftest.$ac_ext <<EOF
a1622950 14480#line 14481 "configure"
eb4efbdc
VZ
14481#include "confdefs.h"
14482/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 14483 which can conflict with char $ac_func(); below. */
eb4efbdc
VZ
14484#include <assert.h>
14485/* Override any gcc2 internal prototype to avoid an error. */
14486/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
14487 builtin and then its argument prototype would still apply. */
14488char $ac_func();
14489
14490int main() {
eb4efbdc
VZ
14491
14492/* The GNU C library defines this for functions which it implements
14493 to always fail with ENOSYS. Some functions are actually named
14494 something starting with __ and the normal name is an alias. */
14495#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14496choke me
14497#else
698dcdb6 14498$ac_func();
eb4efbdc
VZ
14499#endif
14500
698dcdb6 14501; return 0; }
eb4efbdc 14502EOF
a1622950 14503if { (eval echo configure:14504: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
14504 rm -rf conftest*
14505 eval "ac_cv_func_$ac_func=yes"
14506else
14507 echo "configure: failed program was:" >&5
14508 cat conftest.$ac_ext >&5
14509 rm -rf conftest*
14510 eval "ac_cv_func_$ac_func=no"
14511fi
14512rm -f conftest*
14513fi
eb4efbdc 14514
698dcdb6
VZ
14515if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14516 echo "$ac_t""yes" 1>&6
14517 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14518 cat >> confdefs.h <<EOF
14519#define $ac_tr_func 1
14520EOF
14521
14522else
14523 echo "$ac_t""no" 1>&6
eb4efbdc
VZ
14524fi
14525done
14526
698dcdb6 14527
4f14bcd8 14528echo $ac_n "checking for vprintf""... $ac_c" 1>&6
a1622950 14529echo "configure:14530: checking for vprintf" >&5
4f14bcd8 14530if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
698dcdb6
VZ
14531 echo $ac_n "(cached) $ac_c" 1>&6
14532else
4f14bcd8 14533 cat > conftest.$ac_ext <<EOF
a1622950 14534#line 14535 "configure"
f6bcfd97 14535#include "confdefs.h"
4f14bcd8
GD
14536/* System header to define __stub macros and hopefully few prototypes,
14537 which can conflict with char vprintf(); below. */
14538#include <assert.h>
14539/* Override any gcc2 internal prototype to avoid an error. */
14540/* We use char because int might match the return type of a gcc2
14541 builtin and then its argument prototype would still apply. */
14542char vprintf();
14543
698dcdb6 14544int main() {
f6bcfd97 14545
4f14bcd8
GD
14546/* The GNU C library defines this for functions which it implements
14547 to always fail with ENOSYS. Some functions are actually named
14548 something starting with __ and the normal name is an alias. */
14549#if defined (__stub_vprintf) || defined (__stub___vprintf)
14550choke me
14551#else
14552vprintf();
14553#endif
f6bcfd97 14554
698dcdb6
VZ
14555; return 0; }
14556EOF
a1622950 14557if { (eval echo configure:14558: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6 14558 rm -rf conftest*
4f14bcd8 14559 eval "ac_cv_func_vprintf=yes"
f6bcfd97 14560else
698dcdb6
VZ
14561 echo "configure: failed program was:" >&5
14562 cat conftest.$ac_ext >&5
14563 rm -rf conftest*
4f14bcd8 14564 eval "ac_cv_func_vprintf=no"
6232543b 14565fi
698dcdb6 14566rm -f conftest*
1e487827 14567fi
698dcdb6 14568
4f14bcd8
GD
14569if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
14570 echo "$ac_t""yes" 1>&6
14571 cat >> confdefs.h <<\EOF
14572#define HAVE_VPRINTF 1
f6bcfd97
BP
14573EOF
14574
4f14bcd8
GD
14575else
14576 echo "$ac_t""no" 1>&6
eb4efbdc
VZ
14577fi
14578
4f14bcd8
GD
14579if test "$ac_cv_func_vprintf" != yes; then
14580echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
a1622950 14581echo "configure:14582: checking for _doprnt" >&5
4f14bcd8 14582if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
698dcdb6
VZ
14583 echo $ac_n "(cached) $ac_c" 1>&6
14584else
14585 cat > conftest.$ac_ext <<EOF
a1622950 14586#line 14587 "configure"
10f2d63a
VZ
14587#include "confdefs.h"
14588/* System header to define __stub macros and hopefully few prototypes,
4f14bcd8 14589 which can conflict with char _doprnt(); below. */
10f2d63a
VZ
14590#include <assert.h>
14591/* Override any gcc2 internal prototype to avoid an error. */
14592/* We use char because int might match the return type of a gcc2
698dcdb6 14593 builtin and then its argument prototype would still apply. */
4f14bcd8 14594char _doprnt();
698dcdb6
VZ
14595
14596int main() {
10f2d63a
VZ
14597
14598/* The GNU C library defines this for functions which it implements
14599 to always fail with ENOSYS. Some functions are actually named
14600 something starting with __ and the normal name is an alias. */
4f14bcd8 14601#if defined (__stub__doprnt) || defined (__stub____doprnt)
10f2d63a
VZ
14602choke me
14603#else
4f14bcd8 14604_doprnt();
10f2d63a
VZ
14605#endif
14606
698dcdb6 14607; return 0; }
10f2d63a 14608EOF
a1622950 14609if { (eval echo configure:14610: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6 14610 rm -rf conftest*
4f14bcd8 14611 eval "ac_cv_func__doprnt=yes"
698dcdb6
VZ
14612else
14613 echo "configure: failed program was:" >&5
14614 cat conftest.$ac_ext >&5
14615 rm -rf conftest*
4f14bcd8 14616 eval "ac_cv_func__doprnt=no"
698dcdb6
VZ
14617fi
14618rm -f conftest*
14619fi
270a909e 14620
4f14bcd8 14621if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
698dcdb6 14622 echo "$ac_t""yes" 1>&6
4f14bcd8
GD
14623 cat >> confdefs.h <<\EOF
14624#define HAVE_DOPRNT 1
698dcdb6 14625EOF
4f14bcd8 14626
698dcdb6
VZ
14627else
14628 echo "$ac_t""no" 1>&6
270a909e 14629fi
270a909e 14630
4f14bcd8 14631fi
1e487827 14632
52e8b690 14633
52e8b690 14634
52e8b690 14635
52e8b690 14636
52e8b690 14637
4f14bcd8 14638echo $ac_n "checking for vsnprintf""... $ac_c" 1>&6
a1622950 14639echo "configure:14640: checking for vsnprintf" >&5
4f14bcd8 14640if eval "test \"`echo '$''{'wx_cv_func_vsnprintf'+set}'`\" = set"; then
698dcdb6 14641 echo $ac_n "(cached) $ac_c" 1>&6
c63c7106 14642else
4f14bcd8 14643
af15babd 14644 cat > conftest.$ac_ext <<EOF
a1622950 14645#line 14646 "configure"
c63c7106 14646#include "confdefs.h"
698dcdb6 14647
4f14bcd8
GD
14648 #include <stdio.h>
14649 #include <stdarg.h>
14650
af15babd
VZ
14651int main() {
14652
4f14bcd8
GD
14653 int wx_test_vsnprintf(const char *, ...);
14654
14655 wx_test_vsnprintf("%s");
14656 return 0;
14657 }
14658
14659 int wx_test_vsnprintf(const char *fmt, ...)
14660 {
14661 char *s;
14662
14663 va_list argp;
14664 va_start(argp, fmt);
14665 vsnprintf(s, 42, fmt, argp);
14666 va_end(argp);
14667
af15babd
VZ
14668; return 0; }
14669EOF
a1622950 14670if { (eval echo configure:14671: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
af15babd
VZ
14671 rm -rf conftest*
14672
4f14bcd8
GD
14673 wx_cv_func_vsnprintf=yes
14674
af15babd
VZ
14675else
14676 echo "configure: failed program was:" >&5
14677 cat conftest.$ac_ext >&5
14678 rm -rf conftest*
14679
4f14bcd8 14680 cat > conftest.$ac_ext <<EOF
a1622950 14681#line 14682 "configure"
af15babd 14682#include "confdefs.h"
af15babd 14683
4f14bcd8
GD
14684 #include <stdio.h>
14685 #include <stdarg.h>
14686
af15babd
VZ
14687int main() {
14688
4f14bcd8
GD
14689 int wx_test_vsnprintf(const char *, ...);
14690
14691 wx_test_vsnprintf("%s");
14692 return 0;
14693 }
14694
14695 int wx_test_vsnprintf(const char *fmt, ...)
14696 {
14697 char *s;
af15babd 14698
4f14bcd8
GD
14699 va_list argp;
14700 va_start(argp, fmt);
14701 _vsnprintf(s, 42, fmt, argp);
14702 va_end(argp);
14703
af15babd
VZ
14704; return 0; }
14705EOF
a1622950 14706if { (eval echo configure:14707: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
af15babd 14707 rm -rf conftest*
4f14bcd8
GD
14708
14709 wx_cv_func_vsnprintf=yes
14710
af15babd
VZ
14711else
14712 echo "configure: failed program was:" >&5
14713 cat conftest.$ac_ext >&5
14714 rm -rf conftest*
4f14bcd8
GD
14715
14716 wx_cv_func_vsnprintf=no
14717
af15babd
VZ
14718fi
14719rm -f conftest*
4f14bcd8 14720
af15babd 14721fi
4f14bcd8 14722rm -f conftest*
af15babd 14723
af15babd 14724fi
af15babd 14725
4f14bcd8 14726echo "$ac_t""$wx_cv_func_vsnprintf" 1>&6
af15babd 14727
4f14bcd8
GD
14728if test "$wx_cv_func_vsnprintf" = yes; then
14729 cat >> confdefs.h <<\EOF
14730#define HAVE_VSNPRINTF 1
14731EOF
14732
14733else
f9bc1684 14734 echo "configure: warning: unsafe function vsprintf will be used instead of vsnprintf" 1>&2
af15babd
VZ
14735fi
14736
4f14bcd8 14737echo $ac_n "checking for vsscanf""... $ac_c" 1>&6
a1622950 14738echo "configure:14739: checking for vsscanf" >&5
4f14bcd8 14739if eval "test \"`echo '$''{'wx_cv_func_vsscanf'+set}'`\" = set"; then
af15babd
VZ
14740 echo $ac_n "(cached) $ac_c" 1>&6
14741else
4f14bcd8 14742
af15babd 14743 cat > conftest.$ac_ext <<EOF
a1622950 14744#line 14745 "configure"
af15babd 14745#include "confdefs.h"
af15babd 14746
4f14bcd8
GD
14747 #include <stdio.h>
14748 #include <stdarg.h>
14749
af15babd
VZ
14750int main() {
14751
4f14bcd8
GD
14752 int wx_test_vsscanf(const char *, ...);
14753
14754 wx_test_vsscanf("%d");
14755 return 0;
14756 }
af15babd 14757
4f14bcd8
GD
14758 int wx_test_vsscanf(const char *fmt, ...)
14759 {
14760 va_list argp;
14761 va_start(argp, fmt);
14762 vsscanf("42", fmt, argp);
14763 va_end(argp);
14764
af15babd
VZ
14765; return 0; }
14766EOF
a1622950 14767if { (eval echo configure:14768: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
af15babd 14768 rm -rf conftest*
4f14bcd8
GD
14769
14770 wx_cv_func_vsscanf=yes
14771
af15babd
VZ
14772else
14773 echo "configure: failed program was:" >&5
14774 cat conftest.$ac_ext >&5
14775 rm -rf conftest*
4f14bcd8
GD
14776
14777 wx_cv_func_vsscanf=no
14778
af15babd
VZ
14779fi
14780rm -f conftest*
4f14bcd8 14781
af15babd
VZ
14782fi
14783
4f14bcd8
GD
14784echo "$ac_t""$wx_cv_func_vsscanf" 1>&6
14785
14786if test "$wx_cv_func_vsscanf" = yes; then
14787 cat >> confdefs.h <<\EOF
14788#define HAVE_VSSCANF 1
af15babd 14789EOF
4f14bcd8 14790
af15babd 14791fi
af15babd 14792
4f14bcd8 14793if test "$TOOLKIT" != "MSW"; then
af15babd 14794
4f14bcd8
GD
14795
14796
14797ac_ext=C
14798# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14799ac_cpp='$CXXCPP $CPPFLAGS'
14800ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14801ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14802cross_compiling=$ac_cv_prog_cxx_cross
14803
14804echo $ac_n "checking if iconv() takes char**""... $ac_c" 1>&6
a1622950 14805echo "configure:14806: checking if iconv() takes char**" >&5
4f14bcd8 14806if eval "test \"`echo '$''{'wx_cv_iconv_takes_char'+set}'`\" = set"; then
af15babd
VZ
14807 echo $ac_n "(cached) $ac_c" 1>&6
14808else
4f14bcd8
GD
14809
14810 cat > conftest.$ac_ext <<EOF
a1622950 14811#line 14812 "configure"
af15babd 14812#include "confdefs.h"
4f14bcd8 14813#include <iconv.h>
af15babd
VZ
14814int main() {
14815
4f14bcd8
GD
14816 char **inbuf, **outbuf;
14817 iconv_t cd;
14818 size_t insz, outsz;
14819 iconv(cd, inbuf, &insz, outbuf, &outsz);
14820
af15babd
VZ
14821; return 0; }
14822EOF
a1622950 14823if { (eval echo configure:14824: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
af15babd 14824 rm -rf conftest*
4f14bcd8 14825 wx_cv_iconv_takes_char=yes
af15babd
VZ
14826else
14827 echo "configure: failed program was:" >&5
14828 cat conftest.$ac_ext >&5
14829 rm -rf conftest*
4f14bcd8 14830 wx_cv_iconv_takes_char=no
af15babd
VZ
14831fi
14832rm -f conftest*
af15babd 14833
af15babd 14834fi
af15babd 14835
4f14bcd8
GD
14836echo "$ac_t""$wx_cv_iconv_takes_char" 1>&6
14837ac_ext=c
14838# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14839ac_cpp='$CPP $CPPFLAGS'
14840ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14841ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14842cross_compiling=$ac_cv_prog_cc_cross
af15babd 14843
4f14bcd8
GD
14844if test "$wx_cv_iconv_takes_char" = yes ; then
14845 cat >> confdefs.h <<\EOF
14846#define WX_ICONV_TAKES_CHAR 1
af15babd
VZ
14847EOF
14848
af15babd
VZ
14849fi
14850
af15babd 14851
4f14bcd8
GD
14852if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then
14853 for ac_func in sigaction
af15babd
VZ
14854do
14855echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
a1622950 14856echo "configure:14857: checking for $ac_func" >&5
af15babd
VZ
14857if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14858 echo $ac_n "(cached) $ac_c" 1>&6
14859else
14860 cat > conftest.$ac_ext <<EOF
a1622950 14861#line 14862 "configure"
af15babd
VZ
14862#include "confdefs.h"
14863/* System header to define __stub macros and hopefully few prototypes,
14864 which can conflict with char $ac_func(); below. */
14865#include <assert.h>
14866/* Override any gcc2 internal prototype to avoid an error. */
14867/* We use char because int might match the return type of a gcc2
14868 builtin and then its argument prototype would still apply. */
14869char $ac_func();
14870
14871int main() {
14872
14873/* The GNU C library defines this for functions which it implements
14874 to always fail with ENOSYS. Some functions are actually named
14875 something starting with __ and the normal name is an alias. */
14876#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14877choke me
14878#else
14879$ac_func();
14880#endif
14881
14882; return 0; }
14883EOF
a1622950 14884if { (eval echo configure:14885: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
af15babd
VZ
14885 rm -rf conftest*
14886 eval "ac_cv_func_$ac_func=yes"
14887else
14888 echo "configure: failed program was:" >&5
14889 cat conftest.$ac_ext >&5
14890 rm -rf conftest*
14891 eval "ac_cv_func_$ac_func=no"
14892fi
14893rm -f conftest*
14894fi
14895
14896if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14897 echo "$ac_t""yes" 1>&6
14898 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14899 cat >> confdefs.h <<EOF
14900#define $ac_tr_func 1
14901EOF
4f14bcd8 14902
af15babd
VZ
14903else
14904 echo "$ac_t""no" 1>&6
4f14bcd8
GD
14905fi
14906done
14907
14908
14909 if test "$ac_cv_func_sigaction" = "no"; then
14910 echo "configure: warning: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" 1>&2
14911 wxUSE_ON_FATAL_EXCEPTION=no
14912 fi
14913
14914 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
14915
14916 ac_ext=C
14917# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14918ac_cpp='$CXXCPP $CPPFLAGS'
14919ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14920ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14921cross_compiling=$ac_cv_prog_cxx_cross
14922
14923
14924 echo $ac_n "checking for sa_handler type""... $ac_c" 1>&6
a1622950 14925echo "configure:14926: checking for sa_handler type" >&5
4f14bcd8 14926if eval "test \"`echo '$''{'wx_cv_type_sa_handler'+set}'`\" = set"; then
af15babd
VZ
14927 echo $ac_n "(cached) $ac_c" 1>&6
14928else
4f14bcd8
GD
14929
14930 cat > conftest.$ac_ext <<EOF
a1622950 14931#line 14932 "configure"
af15babd 14932#include "confdefs.h"
4f14bcd8 14933#include <signal.h>
af15babd 14934int main() {
4f14bcd8
GD
14935
14936 extern void testSigHandler(int);
14937
14938 struct sigaction sa;
14939 sa.sa_handler = testSigHandler;
14940
af15babd
VZ
14941; return 0; }
14942EOF
a1622950 14943if { (eval echo configure:14944: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
af15babd 14944 rm -rf conftest*
4f14bcd8
GD
14945
14946 wx_cv_type_sa_handler=int
14947
af15babd
VZ
14948else
14949 echo "configure: failed program was:" >&5
14950 cat conftest.$ac_ext >&5
14951 rm -rf conftest*
4f14bcd8
GD
14952
14953 wx_cv_type_sa_handler=void
14954
af15babd
VZ
14955fi
14956rm -f conftest*
4f14bcd8
GD
14957
14958fi
14959
14960echo "$ac_t""$wx_cv_type_sa_handler" 1>&6
14961
14962 ac_ext=c
14963# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14964ac_cpp='$CPP $CPPFLAGS'
14965ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14966ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14967cross_compiling=$ac_cv_prog_cc_cross
af15babd 14968
4f14bcd8
GD
14969
14970 cat >> confdefs.h <<EOF
14971#define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler
af15babd
VZ
14972EOF
14973
4f14bcd8
GD
14974 fi
14975fi
af15babd 14976
4f14bcd8 14977for ac_func in vfork
af15babd
VZ
14978do
14979echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
a1622950 14980echo "configure:14981: checking for $ac_func" >&5
af15babd
VZ
14981if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14982 echo $ac_n "(cached) $ac_c" 1>&6
14983else
14984 cat > conftest.$ac_ext <<EOF
a1622950 14985#line 14986 "configure"
af15babd
VZ
14986#include "confdefs.h"
14987/* System header to define __stub macros and hopefully few prototypes,
14988 which can conflict with char $ac_func(); below. */
14989#include <assert.h>
14990/* Override any gcc2 internal prototype to avoid an error. */
14991/* We use char because int might match the return type of a gcc2
14992 builtin and then its argument prototype would still apply. */
14993char $ac_func();
14994
14995int main() {
14996
14997/* The GNU C library defines this for functions which it implements
14998 to always fail with ENOSYS. Some functions are actually named
14999 something starting with __ and the normal name is an alias. */
15000#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15001choke me
15002#else
15003$ac_func();
15004#endif
15005
15006; return 0; }
15007EOF
a1622950 15008if { (eval echo configure:15009: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
af15babd
VZ
15009 rm -rf conftest*
15010 eval "ac_cv_func_$ac_func=yes"
15011else
15012 echo "configure: failed program was:" >&5
15013 cat conftest.$ac_ext >&5
15014 rm -rf conftest*
15015 eval "ac_cv_func_$ac_func=no"
15016fi
15017rm -f conftest*
15018fi
15019
15020if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15021 echo "$ac_t""yes" 1>&6
15022 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15023 cat >> confdefs.h <<EOF
15024#define $ac_tr_func 1
15025EOF
4f14bcd8 15026
af15babd
VZ
15027else
15028 echo "$ac_t""no" 1>&6
af15babd
VZ
15029fi
15030done
15031
af15babd 15032
ade35f11
VZ
15033for ac_func in mkstemp mktemp
15034do
15035echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
a1622950 15036echo "configure:15037: checking for $ac_func" >&5
ade35f11
VZ
15037if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15038 echo $ac_n "(cached) $ac_c" 1>&6
15039else
15040 cat > conftest.$ac_ext <<EOF
a1622950 15041#line 15042 "configure"
ade35f11
VZ
15042#include "confdefs.h"
15043/* System header to define __stub macros and hopefully few prototypes,
15044 which can conflict with char $ac_func(); below. */
15045#include <assert.h>
15046/* Override any gcc2 internal prototype to avoid an error. */
15047/* We use char because int might match the return type of a gcc2
15048 builtin and then its argument prototype would still apply. */
15049char $ac_func();
15050
15051int main() {
15052
15053/* The GNU C library defines this for functions which it implements
15054 to always fail with ENOSYS. Some functions are actually named
15055 something starting with __ and the normal name is an alias. */
15056#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15057choke me
15058#else
15059$ac_func();
15060#endif
15061
15062; return 0; }
15063EOF
a1622950 15064if { (eval echo configure:15065: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ade35f11
VZ
15065 rm -rf conftest*
15066 eval "ac_cv_func_$ac_func=yes"
15067else
15068 echo "configure: failed program was:" >&5
15069 cat conftest.$ac_ext >&5
15070 rm -rf conftest*
15071 eval "ac_cv_func_$ac_func=no"
15072fi
15073rm -f conftest*
15074fi
15075
15076if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15077 echo "$ac_t""yes" 1>&6
15078 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15079 cat >> confdefs.h <<EOF
15080#define $ac_tr_func 1
15081EOF
15082 break
15083else
15084 echo "$ac_t""no" 1>&6
15085fi
15086done
15087
15088
4f14bcd8 15089echo $ac_n "checking for statfs""... $ac_c" 1>&6
a1622950 15090echo "configure:15091: checking for statfs" >&5
4f14bcd8
GD
15091if eval "test \"`echo '$''{'wx_cv_func_statfs'+set}'`\" = set"; then
15092 echo $ac_n "(cached) $ac_c" 1>&6
15093else
15094 cat > conftest.$ac_ext <<EOF
a1622950 15095#line 15096 "configure"
4f14bcd8
GD
15096#include "confdefs.h"
15097
15098 #if defined(__BSD__)
15099 #include <sys/param.h>
15100 #include <sys/mount.h>
15101 #else
15102 #include <sys/vfs.h>
15103 #endif
15104
15105int main() {
15106
15107 long l;
15108 struct statfs fs;
15109 statfs("/", &fs);
15110 l = fs.f_bsize;
15111 l += fs.f_blocks;
15112 l += fs.f_bavail;
15113
15114; return 0; }
15115EOF
a1622950 15116if { (eval echo configure:15117: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4f14bcd8
GD
15117 rm -rf conftest*
15118
15119 wx_cv_func_statfs=yes
15120
15121else
15122 echo "configure: failed program was:" >&5
15123 cat conftest.$ac_ext >&5
15124 rm -rf conftest*
15125
15126 wx_cv_func_statfs=no
af15babd
VZ
15127
15128
15129fi
4f14bcd8 15130rm -f conftest*
af15babd
VZ
15131
15132fi
15133
4f14bcd8
GD
15134echo "$ac_t""$wx_cv_func_statfs" 1>&6
15135
15136if test "$wx_cv_func_statfs" = "yes"; then
15137 cat >> confdefs.h <<\EOF
15138#define HAVE_STATFS 1
15139EOF
15140
15141else
15142 echo $ac_n "checking for statvfs""... $ac_c" 1>&6
a1622950 15143echo "configure:15144: checking for statvfs" >&5
4f14bcd8 15144if eval "test \"`echo '$''{'wx_cv_func_statvfs'+set}'`\" = set"; then
af15babd
VZ
15145 echo $ac_n "(cached) $ac_c" 1>&6
15146else
15147 cat > conftest.$ac_ext <<EOF
a1622950 15148#line 15149 "configure"
af15babd 15149#include "confdefs.h"
af15babd 15150
4f14bcd8
GD
15151 #include <sys/statvfs.h>
15152
af15babd
VZ
15153int main() {
15154
4f14bcd8
GD
15155 long l;
15156 struct statvfs fs;
15157 statvfs("/", &fs);
15158 l = fs.f_bsize;
15159 l += fs.f_blocks;
15160 l += fs.f_bavail;
15161
af15babd
VZ
15162; return 0; }
15163EOF
a1622950 15164if { (eval echo configure:15165: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
af15babd 15165 rm -rf conftest*
4f14bcd8
GD
15166
15167 wx_cv_func_statvfs=yes
15168
af15babd
VZ
15169else
15170 echo "configure: failed program was:" >&5
15171 cat conftest.$ac_ext >&5
15172 rm -rf conftest*
4f14bcd8
GD
15173
15174 wx_cv_func_statvfs=no
15175
15176
af15babd
VZ
15177fi
15178rm -f conftest*
4f14bcd8 15179
af15babd
VZ
15180fi
15181
4f14bcd8 15182echo "$ac_t""$wx_cv_func_statvfs" 1>&6
af15babd 15183
4f14bcd8
GD
15184 if test "$wx_cv_func_statvfs" = "yes"; then
15185 cat >> confdefs.h <<\EOF
15186#define HAVE_STATVFS 1
15187EOF
af15babd 15188
4f14bcd8
GD
15189 else
15190 echo "configure: warning: wxGetDiskSpace() function won't work without statfs()" 1>&2
15191 fi
15192fi
af15babd 15193
4f14bcd8
GD
15194if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
15195 for ac_func in fcntl flock
af15babd
VZ
15196do
15197echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
a1622950 15198echo "configure:15199: checking for $ac_func" >&5
af15babd
VZ
15199if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15200 echo $ac_n "(cached) $ac_c" 1>&6
15201else
15202 cat > conftest.$ac_ext <<EOF
a1622950 15203#line 15204 "configure"
af15babd
VZ
15204#include "confdefs.h"
15205/* System header to define __stub macros and hopefully few prototypes,
15206 which can conflict with char $ac_func(); below. */
15207#include <assert.h>
15208/* Override any gcc2 internal prototype to avoid an error. */
af15babd
VZ
15209/* We use char because int might match the return type of a gcc2
15210 builtin and then its argument prototype would still apply. */
15211char $ac_func();
15212
15213int main() {
15214
15215/* The GNU C library defines this for functions which it implements
15216 to always fail with ENOSYS. Some functions are actually named
15217 something starting with __ and the normal name is an alias. */
15218#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15219choke me
15220#else
15221$ac_func();
15222#endif
15223
15224; return 0; }
15225EOF
a1622950 15226if { (eval echo configure:15227: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
af15babd
VZ
15227 rm -rf conftest*
15228 eval "ac_cv_func_$ac_func=yes"
15229else
15230 echo "configure: failed program was:" >&5
15231 cat conftest.$ac_ext >&5
15232 rm -rf conftest*
15233 eval "ac_cv_func_$ac_func=no"
15234fi
15235rm -f conftest*
15236fi
15237
15238if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15239 echo "$ac_t""yes" 1>&6
15240 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15241 cat >> confdefs.h <<EOF
15242#define $ac_tr_func 1
15243EOF
4f14bcd8 15244 break
af15babd
VZ
15245else
15246 echo "$ac_t""no" 1>&6
15247fi
15248done
15249
15250
4f14bcd8
GD
15251 if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then
15252 echo "configure: warning: wxSingleInstanceChecker not available" 1>&2
15253 wxUSE_SNGLINST_CHECKER=no
15254 fi
15255fi
af15babd 15256
4f14bcd8 15257for ac_func in timegm
af15babd
VZ
15258do
15259echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
a1622950 15260echo "configure:15261: checking for $ac_func" >&5
af15babd
VZ
15261if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15262 echo $ac_n "(cached) $ac_c" 1>&6
15263else
15264 cat > conftest.$ac_ext <<EOF
a1622950 15265#line 15266 "configure"
af15babd
VZ
15266#include "confdefs.h"
15267/* System header to define __stub macros and hopefully few prototypes,
15268 which can conflict with char $ac_func(); below. */
15269#include <assert.h>
15270/* Override any gcc2 internal prototype to avoid an error. */
15271/* We use char because int might match the return type of a gcc2
15272 builtin and then its argument prototype would still apply. */
15273char $ac_func();
15274
698dcdb6 15275int main() {
698dcdb6 15276
af15babd
VZ
15277/* The GNU C library defines this for functions which it implements
15278 to always fail with ENOSYS. Some functions are actually named
15279 something starting with __ and the normal name is an alias. */
15280#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15281choke me
15282#else
15283$ac_func();
15284#endif
15285
698dcdb6
VZ
15286; return 0; }
15287EOF
a1622950 15288if { (eval echo configure:15289: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6 15289 rm -rf conftest*
af15babd 15290 eval "ac_cv_func_$ac_func=yes"
698dcdb6
VZ
15291else
15292 echo "configure: failed program was:" >&5
15293 cat conftest.$ac_ext >&5
15294 rm -rf conftest*
af15babd 15295 eval "ac_cv_func_$ac_func=no"
1e487827 15296fi
9952adac 15297rm -f conftest*
af15babd 15298fi
703e0a69 15299
af15babd
VZ
15300if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15301 echo "$ac_t""yes" 1>&6
15302 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4f14bcd8
GD
15303 cat >> confdefs.h <<EOF
15304#define $ac_tr_func 1
15305EOF
15306
15307else
15308 echo "$ac_t""no" 1>&6
af15babd
VZ
15309fi
15310done
15311
15312
4f14bcd8 15313for ac_func in putenv setenv
10f2d63a 15314do
698dcdb6 15315echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
a1622950 15316echo "configure:15317: checking for $ac_func" >&5
698dcdb6
VZ
15317if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15318 echo $ac_n "(cached) $ac_c" 1>&6
15319else
15320 cat > conftest.$ac_ext <<EOF
a1622950 15321#line 15322 "configure"
af15babd
VZ
15322#include "confdefs.h"
15323/* System header to define __stub macros and hopefully few prototypes,
15324 which can conflict with char $ac_func(); below. */
15325#include <assert.h>
15326/* Override any gcc2 internal prototype to avoid an error. */
15327/* We use char because int might match the return type of a gcc2
15328 builtin and then its argument prototype would still apply. */
15329char $ac_func();
15330
15331int main() {
15332
15333/* The GNU C library defines this for functions which it implements
15334 to always fail with ENOSYS. Some functions are actually named
15335 something starting with __ and the normal name is an alias. */
15336#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15337choke me
15338#else
15339$ac_func();
15340#endif
15341
15342; return 0; }
15343EOF
a1622950 15344if { (eval echo configure:15345: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
af15babd
VZ
15345 rm -rf conftest*
15346 eval "ac_cv_func_$ac_func=yes"
15347else
15348 echo "configure: failed program was:" >&5
15349 cat conftest.$ac_ext >&5
15350 rm -rf conftest*
15351 eval "ac_cv_func_$ac_func=no"
15352fi
15353rm -f conftest*
15354fi
15355
15356if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15357 echo "$ac_t""yes" 1>&6
15358 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15359 cat >> confdefs.h <<EOF
15360#define $ac_tr_func 1
15361EOF
4f14bcd8 15362 break
af15babd
VZ
15363else
15364 echo "$ac_t""no" 1>&6
15365fi
af15babd
VZ
15366done
15367
15368
4f14bcd8
GD
15369HAVE_SOME_SLEEP_FUNC=0
15370if test "$USE_BEOS" = 1; then
15371 cat >> confdefs.h <<\EOF
15372#define HAVE_SLEEP 1
af15babd
VZ
15373EOF
15374
4f14bcd8 15375 HAVE_SOME_SLEEP_FUNC=1
10f2d63a
VZ
15376fi
15377
4f14bcd8
GD
15378if test "$USE_DARWIN" = 1; then
15379 cat >> confdefs.h <<\EOF
15380#define HAVE_USLEEP 1
af15babd 15381EOF
10f2d63a 15382
4f14bcd8 15383 HAVE_SOME_SLEEP_FUNC=1
10f2d63a
VZ
15384fi
15385
4f14bcd8
GD
15386if test "$HAVE_SOME_SLEEP_FUNC" != 1; then
15387 POSIX4_LINK=
15388 for ac_func in nanosleep
15389do
15390echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
a1622950 15391echo "configure:15392: checking for $ac_func" >&5
4f14bcd8 15392if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
698dcdb6 15393 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 15394else
4f14bcd8 15395 cat > conftest.$ac_ext <<EOF
a1622950 15396#line 15397 "configure"
10f2d63a 15397#include "confdefs.h"
4f14bcd8
GD
15398/* System header to define __stub macros and hopefully few prototypes,
15399 which can conflict with char $ac_func(); below. */
15400#include <assert.h>
10f2d63a
VZ
15401/* Override any gcc2 internal prototype to avoid an error. */
15402/* We use char because int might match the return type of a gcc2
698dcdb6 15403 builtin and then its argument prototype would still apply. */
4f14bcd8 15404char $ac_func();
698dcdb6
VZ
15405
15406int main() {
4f14bcd8
GD
15407
15408/* The GNU C library defines this for functions which it implements
15409 to always fail with ENOSYS. Some functions are actually named
15410 something starting with __ and the normal name is an alias. */
15411#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15412choke me
15413#else
15414$ac_func();
15415#endif
15416
698dcdb6
VZ
15417; return 0; }
15418EOF
a1622950 15419if { (eval echo configure:15420: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6 15420 rm -rf conftest*
4f14bcd8 15421 eval "ac_cv_func_$ac_func=yes"
698dcdb6
VZ
15422else
15423 echo "configure: failed program was:" >&5
15424 cat conftest.$ac_ext >&5
15425 rm -rf conftest*
4f14bcd8 15426 eval "ac_cv_func_$ac_func=no"
698dcdb6
VZ
15427fi
15428rm -f conftest*
698dcdb6 15429fi
4f14bcd8
GD
15430
15431if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
698dcdb6 15432 echo "$ac_t""yes" 1>&6
4f14bcd8
GD
15433 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15434 cat >> confdefs.h <<EOF
15435#define $ac_tr_func 1
15436EOF
15437 cat >> confdefs.h <<\EOF
15438#define HAVE_NANOSLEEP 1
15439EOF
15440
10f2d63a 15441else
698dcdb6 15442 echo "$ac_t""no" 1>&6
4f14bcd8 15443echo $ac_n "checking for nanosleep in -lposix4""... $ac_c" 1>&6
a1622950 15444echo "configure:15445: checking for nanosleep in -lposix4" >&5
4f14bcd8 15445ac_lib_var=`echo posix4'_'nanosleep | sed 'y%./+-%__p_%'`
698dcdb6
VZ
15446if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15447 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 15448else
698dcdb6 15449 ac_save_LIBS="$LIBS"
4f14bcd8 15450LIBS="-lposix4 $LIBS"
698dcdb6 15451cat > conftest.$ac_ext <<EOF
a1622950 15452#line 15453 "configure"
10f2d63a
VZ
15453#include "confdefs.h"
15454/* Override any gcc2 internal prototype to avoid an error. */
15455/* We use char because int might match the return type of a gcc2
698dcdb6 15456 builtin and then its argument prototype would still apply. */
4f14bcd8 15457char nanosleep();
698dcdb6
VZ
15458
15459int main() {
4f14bcd8 15460nanosleep()
698dcdb6
VZ
15461; return 0; }
15462EOF
a1622950 15463if { (eval echo configure:15464: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
15464 rm -rf conftest*
15465 eval "ac_cv_lib_$ac_lib_var=yes"
15466else
15467 echo "configure: failed program was:" >&5
15468 cat conftest.$ac_ext >&5
15469 rm -rf conftest*
15470 eval "ac_cv_lib_$ac_lib_var=no"
15471fi
15472rm -f conftest*
15473LIBS="$ac_save_LIBS"
10f2d63a 15474
698dcdb6
VZ
15475fi
15476if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15477 echo "$ac_t""yes" 1>&6
15478
4f14bcd8
GD
15479 cat >> confdefs.h <<\EOF
15480#define HAVE_NANOSLEEP 1
15481EOF
15482
3d63bc3a 15483 POSIX4_LINK=" -lposix4"
4f14bcd8 15484
10f2d63a 15485else
698dcdb6 15486 echo "$ac_t""no" 1>&6
10f2d63a 15487
4f14bcd8
GD
15488 for ac_func in usleep
15489do
15490echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
a1622950 15491echo "configure:15492: checking for $ac_func" >&5
4f14bcd8 15492if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
698dcdb6 15493 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 15494else
698dcdb6 15495 cat > conftest.$ac_ext <<EOF
a1622950 15496#line 15497 "configure"
10f2d63a 15497#include "confdefs.h"
4f14bcd8
GD
15498/* System header to define __stub macros and hopefully few prototypes,
15499 which can conflict with char $ac_func(); below. */
15500#include <assert.h>
15501/* Override any gcc2 internal prototype to avoid an error. */
15502/* We use char because int might match the return type of a gcc2
15503 builtin and then its argument prototype would still apply. */
15504char $ac_func();
15505
15506int main() {
15507
15508/* The GNU C library defines this for functions which it implements
15509 to always fail with ENOSYS. Some functions are actually named
15510 something starting with __ and the normal name is an alias. */
15511#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15512choke me
15513#else
15514$ac_func();
15515#endif
15516
15517; return 0; }
698dcdb6 15518EOF
a1622950 15519if { (eval echo configure:15520: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6 15520 rm -rf conftest*
4f14bcd8 15521 eval "ac_cv_func_$ac_func=yes"
1e487827 15522else
698dcdb6 15523 echo "configure: failed program was:" >&5
10f2d63a 15524 cat conftest.$ac_ext >&5
698dcdb6 15525 rm -rf conftest*
4f14bcd8 15526 eval "ac_cv_func_$ac_func=no"
10f2d63a 15527fi
698dcdb6 15528rm -f conftest*
10f2d63a 15529fi
4f14bcd8
GD
15530
15531if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
698dcdb6 15532 echo "$ac_t""yes" 1>&6
4f14bcd8
GD
15533 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15534 cat >> confdefs.h <<EOF
15535#define $ac_tr_func 1
15536EOF
15537 cat >> confdefs.h <<\EOF
15538#define HAVE_USLEEP 1
15539EOF
15540
698dcdb6
VZ
15541else
15542 echo "$ac_t""no" 1>&6
4f14bcd8
GD
15543echo "configure: warning: wxSleep() function will not work" 1>&2
15544
10f2d63a 15545fi
4f14bcd8 15546done
10f2d63a 15547
4f14bcd8 15548
698dcdb6 15549
6232543b 15550fi
10f2d63a 15551
698dcdb6 15552
4f14bcd8 15553
1e487827 15554fi
4f14bcd8 15555done
703e0a69 15556
10f2d63a
VZ
15557fi
15558
4f14bcd8 15559for ac_func in uname gethostname
70846f0a 15560do
698dcdb6 15561echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
a1622950 15562echo "configure:15563: checking for $ac_func" >&5
698dcdb6
VZ
15563if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15564 echo $ac_n "(cached) $ac_c" 1>&6
15565else
15566 cat > conftest.$ac_ext <<EOF
a1622950 15567#line 15568 "configure"
70846f0a
VZ
15568#include "confdefs.h"
15569/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 15570 which can conflict with char $ac_func(); below. */
70846f0a
VZ
15571#include <assert.h>
15572/* Override any gcc2 internal prototype to avoid an error. */
15573/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
15574 builtin and then its argument prototype would still apply. */
15575char $ac_func();
15576
15577int main() {
70846f0a
VZ
15578
15579/* The GNU C library defines this for functions which it implements
15580 to always fail with ENOSYS. Some functions are actually named
15581 something starting with __ and the normal name is an alias. */
15582#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15583choke me
15584#else
698dcdb6 15585$ac_func();
70846f0a
VZ
15586#endif
15587
698dcdb6 15588; return 0; }
70846f0a 15589EOF
a1622950 15590if { (eval echo configure:15591: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
15591 rm -rf conftest*
15592 eval "ac_cv_func_$ac_func=yes"
15593else
15594 echo "configure: failed program was:" >&5
15595 cat conftest.$ac_ext >&5
15596 rm -rf conftest*
15597 eval "ac_cv_func_$ac_func=no"
15598fi
15599rm -f conftest*
15600fi
70846f0a 15601
698dcdb6
VZ
15602if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15603 echo "$ac_t""yes" 1>&6
15604 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15605 cat >> confdefs.h <<EOF
15606#define $ac_tr_func 1
15607EOF
4f14bcd8 15608 break
698dcdb6
VZ
15609else
15610 echo "$ac_t""no" 1>&6
70846f0a
VZ
15611fi
15612done
15613
698dcdb6 15614
4f14bcd8
GD
15615
15616ac_ext=C
15617# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15618ac_cpp='$CXXCPP $CPPFLAGS'
15619ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15620ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15621cross_compiling=$ac_cv_prog_cxx_cross
15622
15623
15624for ac_func in strtok_r
10f2d63a 15625do
4f14bcd8 15626echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
a1622950 15627echo "configure:15628: checking for $ac_func" >&5
4f14bcd8 15628if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
698dcdb6
VZ
15629 echo $ac_n "(cached) $ac_c" 1>&6
15630else
15631 cat > conftest.$ac_ext <<EOF
a1622950 15632#line 15633 "configure"
10f2d63a 15633#include "confdefs.h"
4f14bcd8
GD
15634/* System header to define __stub macros and hopefully few prototypes,
15635 which can conflict with char $ac_func(); below. */
15636#include <assert.h>
15637/* Override any gcc2 internal prototype to avoid an error. */
15638#ifdef __cplusplus
15639extern "C"
15640#endif
15641/* We use char because int might match the return type of a gcc2
15642 builtin and then its argument prototype would still apply. */
15643char $ac_func();
15644
15645int main() {
15646
15647/* The GNU C library defines this for functions which it implements
15648 to always fail with ENOSYS. Some functions are actually named
15649 something starting with __ and the normal name is an alias. */
15650#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15651choke me
15652#else
15653$ac_func();
15654#endif
15655
15656; return 0; }
698dcdb6 15657EOF
a1622950 15658if { (eval echo configure:15659: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6 15659 rm -rf conftest*
4f14bcd8 15660 eval "ac_cv_func_$ac_func=yes"
1e487827 15661else
698dcdb6 15662 echo "configure: failed program was:" >&5
10f2d63a 15663 cat conftest.$ac_ext >&5
698dcdb6 15664 rm -rf conftest*
4f14bcd8 15665 eval "ac_cv_func_$ac_func=no"
10f2d63a 15666fi
698dcdb6 15667rm -f conftest*
10f2d63a 15668fi
4f14bcd8
GD
15669
15670if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
698dcdb6 15671 echo "$ac_t""yes" 1>&6
4f14bcd8 15672 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
698dcdb6 15673 cat >> confdefs.h <<EOF
4f14bcd8 15674#define $ac_tr_func 1
10f2d63a 15675EOF
698dcdb6
VZ
15676
15677else
15678 echo "$ac_t""no" 1>&6
10f2d63a
VZ
15679fi
15680done
15681
698dcdb6 15682
4f14bcd8
GD
15683ac_ext=c
15684# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15685ac_cpp='$CPP $CPPFLAGS'
15686ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15687ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15688cross_compiling=$ac_cv_prog_cc_cross
15689
15690
15691INET_LINK=
15692for ac_func in inet_addr
15693do
15694echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
a1622950 15695echo "configure:15696: checking for $ac_func" >&5
4f14bcd8 15696if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
698dcdb6 15697 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 15698else
4f14bcd8 15699 cat > conftest.$ac_ext <<EOF
a1622950 15700#line 15701 "configure"
10f2d63a 15701#include "confdefs.h"
4f14bcd8
GD
15702/* System header to define __stub macros and hopefully few prototypes,
15703 which can conflict with char $ac_func(); below. */
15704#include <assert.h>
10f2d63a
VZ
15705/* Override any gcc2 internal prototype to avoid an error. */
15706/* We use char because int might match the return type of a gcc2
698dcdb6 15707 builtin and then its argument prototype would still apply. */
4f14bcd8 15708char $ac_func();
698dcdb6
VZ
15709
15710int main() {
4f14bcd8
GD
15711
15712/* The GNU C library defines this for functions which it implements
15713 to always fail with ENOSYS. Some functions are actually named
15714 something starting with __ and the normal name is an alias. */
15715#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15716choke me
15717#else
15718$ac_func();
15719#endif
15720
698dcdb6
VZ
15721; return 0; }
15722EOF
a1622950 15723if { (eval echo configure:15724: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6 15724 rm -rf conftest*
4f14bcd8 15725 eval "ac_cv_func_$ac_func=yes"
698dcdb6
VZ
15726else
15727 echo "configure: failed program was:" >&5
15728 cat conftest.$ac_ext >&5
15729 rm -rf conftest*
4f14bcd8 15730 eval "ac_cv_func_$ac_func=no"
698dcdb6
VZ
15731fi
15732rm -f conftest*
698dcdb6 15733fi
4f14bcd8
GD
15734
15735if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
698dcdb6 15736 echo "$ac_t""yes" 1>&6
4f14bcd8
GD
15737 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15738 cat >> confdefs.h <<EOF
15739#define $ac_tr_func 1
15740EOF
15741 cat >> confdefs.h <<\EOF
15742#define HAVE_INET_ADDR 1
10f2d63a
VZ
15743EOF
15744
15745else
698dcdb6 15746 echo "$ac_t""no" 1>&6
4f14bcd8 15747echo $ac_n "checking for inet_addr in -lnsl""... $ac_c" 1>&6
a1622950 15748echo "configure:15749: checking for inet_addr in -lnsl" >&5
4f14bcd8 15749ac_lib_var=`echo nsl'_'inet_addr | sed 'y%./+-%__p_%'`
698dcdb6
VZ
15750if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15751 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 15752else
698dcdb6 15753 ac_save_LIBS="$LIBS"
4f14bcd8 15754LIBS="-lnsl $LIBS"
698dcdb6 15755cat > conftest.$ac_ext <<EOF
a1622950 15756#line 15757 "configure"
10f2d63a
VZ
15757#include "confdefs.h"
15758/* Override any gcc2 internal prototype to avoid an error. */
15759/* We use char because int might match the return type of a gcc2
698dcdb6 15760 builtin and then its argument prototype would still apply. */
4f14bcd8 15761char inet_addr();
698dcdb6
VZ
15762
15763int main() {
4f14bcd8 15764inet_addr()
698dcdb6
VZ
15765; return 0; }
15766EOF
a1622950 15767if { (eval echo configure:15768: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
15768 rm -rf conftest*
15769 eval "ac_cv_lib_$ac_lib_var=yes"
15770else
15771 echo "configure: failed program was:" >&5
15772 cat conftest.$ac_ext >&5
15773 rm -rf conftest*
15774 eval "ac_cv_lib_$ac_lib_var=no"
15775fi
15776rm -f conftest*
15777LIBS="$ac_save_LIBS"
15778
15779fi
15780if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15781 echo "$ac_t""yes" 1>&6
4f14bcd8 15782 INET_LINK="nsl"
10f2d63a 15783else
698dcdb6 15784 echo "$ac_t""no" 1>&6
4f14bcd8 15785echo $ac_n "checking for inet_addr in -lresolv""... $ac_c" 1>&6
a1622950 15786echo "configure:15787: checking for inet_addr in -lresolv" >&5
4f14bcd8 15787ac_lib_var=`echo resolv'_'inet_addr | sed 'y%./+-%__p_%'`
698dcdb6
VZ
15788if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15789 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 15790else
698dcdb6 15791 ac_save_LIBS="$LIBS"
4f14bcd8 15792LIBS="-lresolv $LIBS"
698dcdb6 15793cat > conftest.$ac_ext <<EOF
a1622950 15794#line 15795 "configure"
10f2d63a
VZ
15795#include "confdefs.h"
15796/* Override any gcc2 internal prototype to avoid an error. */
15797/* We use char because int might match the return type of a gcc2
698dcdb6 15798 builtin and then its argument prototype would still apply. */
4f14bcd8 15799char inet_addr();
698dcdb6
VZ
15800
15801int main() {
4f14bcd8 15802inet_addr()
698dcdb6
VZ
15803; return 0; }
15804EOF
a1622950 15805if { (eval echo configure:15806: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
15806 rm -rf conftest*
15807 eval "ac_cv_lib_$ac_lib_var=yes"
15808else
15809 echo "configure: failed program was:" >&5
15810 cat conftest.$ac_ext >&5
15811 rm -rf conftest*
15812 eval "ac_cv_lib_$ac_lib_var=no"
15813fi
15814rm -f conftest*
15815LIBS="$ac_save_LIBS"
15816
15817fi
15818if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15819 echo "$ac_t""yes" 1>&6
4f14bcd8
GD
15820 INET_LINK="resolv"
15821
698dcdb6 15822else
4f14bcd8
GD
15823 echo "$ac_t""no" 1>&6
15824fi
698dcdb6 15825
4f14bcd8 15826
698dcdb6 15827fi
4f14bcd8
GD
15828
15829
698dcdb6
VZ
15830
15831fi
4f14bcd8
GD
15832done
15833
15834
15835for ac_func in inet_aton
15836do
15837echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
a1622950 15838echo "configure:15839: checking for $ac_func" >&5
4f14bcd8 15839if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
698dcdb6
VZ
15840 echo $ac_n "(cached) $ac_c" 1>&6
15841else
4f14bcd8 15842 cat > conftest.$ac_ext <<EOF
a1622950 15843#line 15844 "configure"
f6bcfd97 15844#include "confdefs.h"
4f14bcd8
GD
15845/* System header to define __stub macros and hopefully few prototypes,
15846 which can conflict with char $ac_func(); below. */
15847#include <assert.h>
f6bcfd97
BP
15848/* Override any gcc2 internal prototype to avoid an error. */
15849/* We use char because int might match the return type of a gcc2
698dcdb6 15850 builtin and then its argument prototype would still apply. */
4f14bcd8 15851char $ac_func();
698dcdb6
VZ
15852
15853int main() {
4f14bcd8
GD
15854
15855/* The GNU C library defines this for functions which it implements
15856 to always fail with ENOSYS. Some functions are actually named
15857 something starting with __ and the normal name is an alias. */
15858#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15859choke me
15860#else
15861$ac_func();
15862#endif
15863
698dcdb6
VZ
15864; return 0; }
15865EOF
a1622950 15866if { (eval echo configure:15867: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6 15867 rm -rf conftest*
4f14bcd8 15868 eval "ac_cv_func_$ac_func=yes"
698dcdb6
VZ
15869else
15870 echo "configure: failed program was:" >&5
15871 cat conftest.$ac_ext >&5
15872 rm -rf conftest*
4f14bcd8 15873 eval "ac_cv_func_$ac_func=no"
698dcdb6
VZ
15874fi
15875rm -f conftest*
698dcdb6 15876fi
4f14bcd8
GD
15877
15878if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
698dcdb6 15879 echo "$ac_t""yes" 1>&6
4f14bcd8
GD
15880 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15881 cat >> confdefs.h <<EOF
15882#define $ac_tr_func 1
15883EOF
15884 cat >> confdefs.h <<\EOF
15885#define HAVE_INET_ATON 1
15886EOF
15887
10f2d63a 15888else
698dcdb6 15889 echo "$ac_t""no" 1>&6
4f14bcd8 15890 echo $ac_n "checking for inet_aton in -l$INET_LINK""... $ac_c" 1>&6
a1622950 15891echo "configure:15892: checking for inet_aton in -l$INET_LINK" >&5
4f14bcd8 15892ac_lib_var=`echo $INET_LINK'_'inet_aton | sed 'y%./+-%__p_%'`
698dcdb6
VZ
15893if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15894 echo $ac_n "(cached) $ac_c" 1>&6
1e487827 15895else
698dcdb6 15896 ac_save_LIBS="$LIBS"
4f14bcd8 15897LIBS="-l$INET_LINK $LIBS"
698dcdb6 15898cat > conftest.$ac_ext <<EOF
a1622950 15899#line 15900 "configure"
10f2d63a 15900#include "confdefs.h"
6232543b 15901/* Override any gcc2 internal prototype to avoid an error. */
6232543b 15902/* We use char because int might match the return type of a gcc2
698dcdb6 15903 builtin and then its argument prototype would still apply. */
4f14bcd8 15904char inet_aton();
698dcdb6
VZ
15905
15906int main() {
4f14bcd8 15907inet_aton()
698dcdb6
VZ
15908; return 0; }
15909EOF
a1622950 15910if { (eval echo configure:15911: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
15911 rm -rf conftest*
15912 eval "ac_cv_lib_$ac_lib_var=yes"
15913else
15914 echo "configure: failed program was:" >&5
15915 cat conftest.$ac_ext >&5
15916 rm -rf conftest*
15917 eval "ac_cv_lib_$ac_lib_var=no"
15918fi
15919rm -f conftest*
15920LIBS="$ac_save_LIBS"
10f2d63a 15921
698dcdb6
VZ
15922fi
15923if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15924 echo "$ac_t""yes" 1>&6
4f14bcd8
GD
15925 cat >> confdefs.h <<\EOF
15926#define HAVE_INET_ATON 1
15927EOF
15928
698dcdb6
VZ
15929else
15930 echo "$ac_t""no" 1>&6
10f2d63a
VZ
15931fi
15932
4f14bcd8 15933
10f2d63a 15934fi
4f14bcd8 15935done
10f2d63a 15936
4f14bcd8
GD
15937
15938if test "x$INET_LINK" != "x"; then
15939 cat >> confdefs.h <<\EOF
15940#define HAVE_INET_ADDR 1
15941EOF
15942
3d63bc3a 15943 INET_LINK=" -l$INET_LINK"
6232543b 15944fi
10f2d63a 15945
1e487827 15946fi
703e0a69 15947
698dcdb6 15948
4f14bcd8
GD
15949cat > confcache <<\EOF
15950# This file is a shell script that caches the results of configure
15951# tests run on this system so they can be shared between configure
15952# scripts and configure runs. It is not useful on other systems.
15953# If it contains results you don't want to keep, you may remove or edit it.
15954#
15955# By default, configure uses ./config.cache as the cache file,
15956# creating it if it does not exist already. You can give configure
15957# the --cache-file=FILE option to use a different cache file; that is
15958# what configure does when it calls configure scripts in
15959# subdirectories, so they share the cache.
15960# Giving --cache-file=/dev/null disables caching, for debugging configure.
15961# config.status only pays attention to the cache file if you give it the
15962# --recheck option to rerun configure.
15963#
f6bcfd97 15964EOF
4f14bcd8
GD
15965# The following way of writing the cache mishandles newlines in values,
15966# but we know of no workaround that is simple, portable, and efficient.
15967# So, don't put newlines in cache variables' values.
15968# Ultrix sh set writes to stderr and can't be redirected directly,
15969# and sets the high bit in the cache file unless we assign to the vars.
15970(set) 2>&1 |
15971 case `(ac_space=' '; set | grep ac_space) 2>&1` in
15972 *ac_space=\ *)
15973 # `set' does not quote correctly, so add quotes (double-quote substitution
15974 # turns \\\\ into \\, and sed turns \\ into \).
15975 sed -n \
15976 -e "s/'/'\\\\''/g" \
15977 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
15978 ;;
15979 *)
15980 # `set' quotes correctly as required by POSIX, so do not add quotes.
15981 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
15982 ;;
15983 esac >> confcache
15984if cmp -s $cache_file confcache; then
15985 :
15986else
15987 if test -w $cache_file; then
15988 echo "updating cache $cache_file"
15989 cat confcache > $cache_file
f6bcfd97 15990 else
4f14bcd8 15991 echo "not updating unwritable cache $cache_file"
f6bcfd97 15992 fi
4f14bcd8
GD
15993fi
15994rm -f confcache
f6bcfd97 15995
4f14bcd8
GD
15996
15997
15998if test "$TOOLKIT" != "MSW"; then
15999
7274f1c7
RL
16000
16001 THREADS_LINK=
16002 THREADS_OBJ=
16003 CODE_GEN_FLAGS=
16004 CODE_GEN_FLAGS_CXX=
16005
16006 if test "$wxUSE_THREADS" = "yes" ; then
16007 if test "$wxUSE_WINE" = 1 ; then
156b2523 16008 echo "configure: warning: Threads are not supported under WINE... disabled" 1>&2
7274f1c7
RL
16009 wxUSE_THREADS="no"
16010 elif test "$USE_BEOS" = 1; then
156b2523 16011 echo "configure: warning: BeOS threads are not yet supported... disabled" 1>&2
7274f1c7
RL
16012 wxUSE_THREADS="no"
16013 fi
4f14bcd8 16014 fi
4f14bcd8 16015
7274f1c7
RL
16016 if test "$wxUSE_THREADS" = "yes" ; then
16017
16018 if test "$USE_AIX" = 1; then
16019 THREADS_LIB=pthreads
16020 else
16021 THREADS_LIB=pthread
16022 fi
4f14bcd8 16023
7274f1c7 16024 echo $ac_n "checking for pthread_create in -l$THREADS_LIB""... $ac_c" 1>&6
a1622950 16025echo "configure:16026: checking for pthread_create in -l$THREADS_LIB" >&5
4f14bcd8 16026ac_lib_var=`echo $THREADS_LIB'_'pthread_create | sed 'y%./+-%__p_%'`
698dcdb6
VZ
16027if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
16028 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 16029else
698dcdb6 16030 ac_save_LIBS="$LIBS"
4f14bcd8 16031LIBS="-l$THREADS_LIB $LIBS"
698dcdb6 16032cat > conftest.$ac_ext <<EOF
a1622950 16033#line 16034 "configure"
10f2d63a
VZ
16034#include "confdefs.h"
16035/* Override any gcc2 internal prototype to avoid an error. */
16036/* We use char because int might match the return type of a gcc2
698dcdb6 16037 builtin and then its argument prototype would still apply. */
4f14bcd8 16038char pthread_create();
698dcdb6
VZ
16039
16040int main() {
4f14bcd8 16041pthread_create()
698dcdb6
VZ
16042; return 0; }
16043EOF
a1622950 16044if { (eval echo configure:16045: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
16045 rm -rf conftest*
16046 eval "ac_cv_lib_$ac_lib_var=yes"
16047else
16048 echo "configure: failed program was:" >&5
16049 cat conftest.$ac_ext >&5
16050 rm -rf conftest*
16051 eval "ac_cv_lib_$ac_lib_var=no"
16052fi
16053rm -f conftest*
16054LIBS="$ac_save_LIBS"
16055
16056fi
16057if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
16058 echo "$ac_t""yes" 1>&6
4f14bcd8 16059
7274f1c7
RL
16060 THREADS_OBJ="threadpsx.lo"
16061 THREADS_LINK=$THREADS_LIB
16062
10f2d63a 16063else
698dcdb6 16064 echo "$ac_t""no" 1>&6
10f2d63a 16065
7274f1c7 16066 echo $ac_n "checking for pthread_create in -lc_r""... $ac_c" 1>&6
a1622950 16067echo "configure:16068: checking for pthread_create in -lc_r" >&5
4f14bcd8
GD
16068ac_lib_var=`echo c_r'_'pthread_create | sed 'y%./+-%__p_%'`
16069if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
698dcdb6
VZ
16070 echo $ac_n "(cached) $ac_c" 1>&6
16071else
4f14bcd8
GD
16072 ac_save_LIBS="$LIBS"
16073LIBS="-lc_r $LIBS"
16074cat > conftest.$ac_ext <<EOF
a1622950 16075#line 16076 "configure"
10f2d63a 16076#include "confdefs.h"
4f14bcd8
GD
16077/* Override any gcc2 internal prototype to avoid an error. */
16078/* We use char because int might match the return type of a gcc2
16079 builtin and then its argument prototype would still apply. */
16080char pthread_create();
10f2d63a 16081
4f14bcd8
GD
16082int main() {
16083pthread_create()
698dcdb6
VZ
16084; return 0; }
16085EOF
a1622950 16086if { (eval echo configure:16087: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6 16087 rm -rf conftest*
4f14bcd8 16088 eval "ac_cv_lib_$ac_lib_var=yes"
10f2d63a 16089else
698dcdb6
VZ
16090 echo "configure: failed program was:" >&5
16091 cat conftest.$ac_ext >&5
16092 rm -rf conftest*
4f14bcd8 16093 eval "ac_cv_lib_$ac_lib_var=no"
6232543b 16094fi
698dcdb6 16095rm -f conftest*
4f14bcd8 16096LIBS="$ac_save_LIBS"
d9b9876f 16097
4f14bcd8
GD
16098fi
16099if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
16100 echo "$ac_t""yes" 1>&6
16101
7274f1c7
RL
16102 THREADS_OBJ="threadpsx.lo"
16103 THREADS_LINK="c_r"
16104
4f14bcd8
GD
16105else
16106 echo "$ac_t""no" 1>&6
ab252f7b 16107
7274f1c7 16108 ac_safe=`echo "sys/prctl.h" | sed 'y%./+-%__p_%'`
4f14bcd8 16109echo $ac_n "checking for sys/prctl.h""... $ac_c" 1>&6
a1622950 16110echo "configure:16111: checking for sys/prctl.h" >&5
4f14bcd8 16111if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
698dcdb6 16112 echo $ac_n "(cached) $ac_c" 1>&6
d9b9876f 16113else
4f14bcd8 16114 cat > conftest.$ac_ext <<EOF
a1622950 16115#line 16116 "configure"
d9b9876f 16116#include "confdefs.h"
4f14bcd8 16117#include <sys/prctl.h>
698dcdb6 16118EOF
4f14bcd8 16119ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
a1622950 16120{ (eval echo configure:16121: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4f14bcd8
GD
16121ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
16122if test -z "$ac_err"; then
698dcdb6 16123 rm -rf conftest*
4f14bcd8 16124 eval "ac_cv_header_$ac_safe=yes"
d9b9876f 16125else
4f14bcd8 16126 echo "$ac_err" >&5
698dcdb6
VZ
16127 echo "configure: failed program was:" >&5
16128 cat conftest.$ac_ext >&5
16129 rm -rf conftest*
4f14bcd8 16130 eval "ac_cv_header_$ac_safe=no"
6232543b 16131fi
698dcdb6 16132rm -f conftest*
4f14bcd8
GD
16133fi
16134if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
16135 echo "$ac_t""yes" 1>&6
698dcdb6 16136
7274f1c7
RL
16137 THREADS_OBJ="threadsgi.lo"
16138
4f14bcd8
GD
16139else
16140 echo "$ac_t""no" 1>&6
1e487827 16141fi
698dcdb6 16142
7274f1c7 16143
4f14bcd8 16144fi
d9b9876f 16145
7274f1c7 16146
4f14bcd8 16147fi
d9b9876f 16148
4f14bcd8 16149
7274f1c7
RL
16150 if test -z "$THREADS_OBJ" ; then
16151 wxUSE_THREADS=no
156b2523 16152 echo "configure: warning: No thread support on this system... disabled" 1>&2
7274f1c7 16153 fi
4f14bcd8 16154 fi
4f14bcd8 16155
7274f1c7
RL
16156 if test "$wxUSE_THREADS" = "yes" ; then
16157 for ac_func in thr_setconcurrency
4f14bcd8
GD
16158do
16159echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
a1622950 16160echo "configure:16161: checking for $ac_func" >&5
4f14bcd8 16161if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
698dcdb6
VZ
16162 echo $ac_n "(cached) $ac_c" 1>&6
16163else
4f14bcd8 16164 cat > conftest.$ac_ext <<EOF
a1622950 16165#line 16166 "configure"
d9b9876f 16166#include "confdefs.h"
4f14bcd8
GD
16167/* System header to define __stub macros and hopefully few prototypes,
16168 which can conflict with char $ac_func(); below. */
16169#include <assert.h>
16170/* Override any gcc2 internal prototype to avoid an error. */
16171/* We use char because int might match the return type of a gcc2
16172 builtin and then its argument prototype would still apply. */
16173char $ac_func();
16174
698dcdb6 16175int main() {
d9b9876f 16176
4f14bcd8
GD
16177/* The GNU C library defines this for functions which it implements
16178 to always fail with ENOSYS. Some functions are actually named
16179 something starting with __ and the normal name is an alias. */
16180#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16181choke me
16182#else
16183$ac_func();
16184#endif
16185
698dcdb6
VZ
16186; return 0; }
16187EOF
a1622950 16188if { (eval echo configure:16189: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6 16189 rm -rf conftest*
4f14bcd8 16190 eval "ac_cv_func_$ac_func=yes"
d9b9876f 16191else
698dcdb6
VZ
16192 echo "configure: failed program was:" >&5
16193 cat conftest.$ac_ext >&5
16194 rm -rf conftest*
4f14bcd8 16195 eval "ac_cv_func_$ac_func=no"
6232543b 16196fi
698dcdb6 16197rm -f conftest*
1e487827 16198fi
698dcdb6 16199
4f14bcd8
GD
16200if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16201 echo "$ac_t""yes" 1>&6
16202 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16203 cat >> confdefs.h <<EOF
16204#define $ac_tr_func 1
d9b9876f 16205EOF
4f14bcd8
GD
16206
16207else
16208 echo "$ac_t""no" 1>&6
10f2d63a 16209fi
4f14bcd8 16210done
10f2d63a 16211
10f2d63a 16212
7274f1c7
RL
16213
16214 for ac_hdr in sched.h
4f14bcd8
GD
16215do
16216ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
16217echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
a1622950 16218echo "configure:16219: checking for $ac_hdr" >&5
4f14bcd8
GD
16219if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
16220 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 16221else
4f14bcd8 16222 cat > conftest.$ac_ext <<EOF
a1622950 16223#line 16224 "configure"
4f14bcd8
GD
16224#include "confdefs.h"
16225#include <$ac_hdr>
13111b2a 16226EOF
4f14bcd8 16227ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
a1622950 16228{ (eval echo configure:16229: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4f14bcd8
GD
16229ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
16230if test -z "$ac_err"; then
16231 rm -rf conftest*
16232 eval "ac_cv_header_$ac_safe=yes"
16233else
16234 echo "$ac_err" >&5
16235 echo "configure: failed program was:" >&5
16236 cat conftest.$ac_ext >&5
16237 rm -rf conftest*
16238 eval "ac_cv_header_$ac_safe=no"
13111b2a 16239fi
4f14bcd8 16240rm -f conftest*
10f2d63a 16241fi
4f14bcd8
GD
16242if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
16243 echo "$ac_t""yes" 1>&6
16244 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
698dcdb6 16245 cat >> confdefs.h <<EOF
4f14bcd8 16246#define $ac_tr_hdr 1
f6bcfd97 16247EOF
4f14bcd8
GD
16248
16249else
16250 echo "$ac_t""no" 1>&6
f6bcfd97 16251fi
4f14bcd8 16252done
f6bcfd97 16253
10f2d63a 16254
7274f1c7 16255 echo $ac_n "checking for sched_yield in -l$THREADS_LINK""... $ac_c" 1>&6
a1622950 16256echo "configure:16257: checking for sched_yield in -l$THREADS_LINK" >&5
4f14bcd8
GD
16257ac_lib_var=`echo $THREADS_LINK'_'sched_yield | sed 'y%./+-%__p_%'`
16258if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
16259 echo $ac_n "(cached) $ac_c" 1>&6
16260else
16261 ac_save_LIBS="$LIBS"
16262LIBS="-l$THREADS_LINK $LIBS"
16263cat > conftest.$ac_ext <<EOF
a1622950 16264#line 16265 "configure"
4f14bcd8
GD
16265#include "confdefs.h"
16266/* Override any gcc2 internal prototype to avoid an error. */
16267/* We use char because int might match the return type of a gcc2
16268 builtin and then its argument prototype would still apply. */
16269char sched_yield();
10f2d63a 16270
4f14bcd8
GD
16271int main() {
16272sched_yield()
16273; return 0; }
10f2d63a 16274EOF
a1622950 16275if { (eval echo configure:16276: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4f14bcd8
GD
16276 rm -rf conftest*
16277 eval "ac_cv_lib_$ac_lib_var=yes"
10f2d63a 16278else
4f14bcd8
GD
16279 echo "configure: failed program was:" >&5
16280 cat conftest.$ac_ext >&5
16281 rm -rf conftest*
16282 eval "ac_cv_lib_$ac_lib_var=no"
10f2d63a 16283fi
4f14bcd8
GD
16284rm -f conftest*
16285LIBS="$ac_save_LIBS"
10f2d63a 16286
4f14bcd8
GD
16287fi
16288if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
16289 echo "$ac_t""yes" 1>&6
16290 cat >> confdefs.h <<\EOF
16291#define HAVE_SCHED_YIELD 1
10f2d63a
VZ
16292EOF
16293
4f14bcd8
GD
16294else
16295 echo "$ac_t""no" 1>&6
16296echo $ac_n "checking for sched_yield in -lposix4""... $ac_c" 1>&6
a1622950 16297echo "configure:16298: checking for sched_yield in -lposix4" >&5
4f14bcd8
GD
16298ac_lib_var=`echo posix4'_'sched_yield | sed 'y%./+-%__p_%'`
16299if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
16300 echo $ac_n "(cached) $ac_c" 1>&6
16301else
16302 ac_save_LIBS="$LIBS"
16303LIBS="-lposix4 $LIBS"
16304cat > conftest.$ac_ext <<EOF
a1622950 16305#line 16306 "configure"
4f14bcd8
GD
16306#include "confdefs.h"
16307/* Override any gcc2 internal prototype to avoid an error. */
16308/* We use char because int might match the return type of a gcc2
16309 builtin and then its argument prototype would still apply. */
16310char sched_yield();
47c13eb7 16311
4f14bcd8
GD
16312int main() {
16313sched_yield()
16314; return 0; }
10f2d63a 16315EOF
a1622950 16316if { (eval echo configure:16317: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4f14bcd8
GD
16317 rm -rf conftest*
16318 eval "ac_cv_lib_$ac_lib_var=yes"
10f2d63a 16319else
4f14bcd8
GD
16320 echo "configure: failed program was:" >&5
16321 cat conftest.$ac_ext >&5
16322 rm -rf conftest*
16323 eval "ac_cv_lib_$ac_lib_var=no"
10f2d63a 16324fi
4f14bcd8
GD
16325rm -f conftest*
16326LIBS="$ac_save_LIBS"
10f2d63a 16327
54276ccf 16328fi
4f14bcd8
GD
16329if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
16330 echo "$ac_t""yes" 1>&6
16331 cat >> confdefs.h <<\EOF
16332#define HAVE_SCHED_YIELD 1
54276ccf 16333EOF
3d63bc3a 16334 POSIX4_LINK=" -lposix4"
4f14bcd8
GD
16335else
16336 echo "$ac_t""no" 1>&6
16337echo "configure: warning: wxThread::Yield will not work properly" 1>&2
7274f1c7 16338
54276ccf
VZ
16339fi
16340
7274f1c7 16341
4f14bcd8 16342fi
698dcdb6 16343
10f2d63a 16344
7274f1c7
RL
16345 HAVE_PRIOR_FUNCS=0
16346 echo $ac_n "checking for pthread_attr_getschedpolicy in -l$THREADS_LINK""... $ac_c" 1>&6
a1622950 16347echo "configure:16348: checking for pthread_attr_getschedpolicy in -l$THREADS_LINK" >&5
4f14bcd8
GD
16348ac_lib_var=`echo $THREADS_LINK'_'pthread_attr_getschedpolicy | sed 'y%./+-%__p_%'`
16349if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
698dcdb6
VZ
16350 echo $ac_n "(cached) $ac_c" 1>&6
16351else
4f14bcd8
GD
16352 ac_save_LIBS="$LIBS"
16353LIBS="-l$THREADS_LINK $LIBS"
16354cat > conftest.$ac_ext <<EOF
a1622950 16355#line 16356 "configure"
422107f9 16356#include "confdefs.h"
4f14bcd8
GD
16357/* Override any gcc2 internal prototype to avoid an error. */
16358/* We use char because int might match the return type of a gcc2
16359 builtin and then its argument prototype would still apply. */
16360char pthread_attr_getschedpolicy();
16361
16362int main() {
16363pthread_attr_getschedpolicy()
16364; return 0; }
698dcdb6 16365EOF
a1622950 16366if { (eval echo configure:16367: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6 16367 rm -rf conftest*
4f14bcd8 16368 eval "ac_cv_lib_$ac_lib_var=yes"
422107f9 16369else
698dcdb6 16370 echo "configure: failed program was:" >&5
422107f9 16371 cat conftest.$ac_ext >&5
698dcdb6 16372 rm -rf conftest*
4f14bcd8 16373 eval "ac_cv_lib_$ac_lib_var=no"
422107f9 16374fi
698dcdb6 16375rm -f conftest*
4f14bcd8
GD
16376LIBS="$ac_save_LIBS"
16377
422107f9 16378fi
4f14bcd8 16379if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
698dcdb6 16380 echo "$ac_t""yes" 1>&6
4f14bcd8 16381 echo $ac_n "checking for pthread_attr_setschedparam in -l$THREADS_LINK""... $ac_c" 1>&6
a1622950 16382echo "configure:16383: checking for pthread_attr_setschedparam in -l$THREADS_LINK" >&5
4f14bcd8 16383ac_lib_var=`echo $THREADS_LINK'_'pthread_attr_setschedparam | sed 'y%./+-%__p_%'`
698dcdb6
VZ
16384if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
16385 echo $ac_n "(cached) $ac_c" 1>&6
422107f9 16386else
698dcdb6 16387 ac_save_LIBS="$LIBS"
4f14bcd8 16388LIBS="-l$THREADS_LINK $LIBS"
698dcdb6 16389cat > conftest.$ac_ext <<EOF
a1622950 16390#line 16391 "configure"
422107f9
VZ
16391#include "confdefs.h"
16392/* Override any gcc2 internal prototype to avoid an error. */
16393/* We use char because int might match the return type of a gcc2
698dcdb6 16394 builtin and then its argument prototype would still apply. */
4f14bcd8 16395char pthread_attr_setschedparam();
698dcdb6
VZ
16396
16397int main() {
4f14bcd8 16398pthread_attr_setschedparam()
698dcdb6
VZ
16399; return 0; }
16400EOF
a1622950 16401if { (eval echo configure:16402: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
16402 rm -rf conftest*
16403 eval "ac_cv_lib_$ac_lib_var=yes"
16404else
16405 echo "configure: failed program was:" >&5
16406 cat conftest.$ac_ext >&5
16407 rm -rf conftest*
16408 eval "ac_cv_lib_$ac_lib_var=no"
16409fi
16410rm -f conftest*
16411LIBS="$ac_save_LIBS"
16412
16413fi
16414if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
16415 echo "$ac_t""yes" 1>&6
4f14bcd8 16416 echo $ac_n "checking for sched_get_priority_max in -l$THREADS_LINK""... $ac_c" 1>&6
a1622950 16417echo "configure:16418: checking for sched_get_priority_max in -l$THREADS_LINK" >&5
4f14bcd8
GD
16418ac_lib_var=`echo $THREADS_LINK'_'sched_get_priority_max | sed 'y%./+-%__p_%'`
16419if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
698dcdb6
VZ
16420 echo $ac_n "(cached) $ac_c" 1>&6
16421else
4f14bcd8
GD
16422 ac_save_LIBS="$LIBS"
16423LIBS="-l$THREADS_LINK $LIBS"
16424cat > conftest.$ac_ext <<EOF
a1622950 16425#line 16426 "configure"
422107f9 16426#include "confdefs.h"
4f14bcd8
GD
16427/* Override any gcc2 internal prototype to avoid an error. */
16428/* We use char because int might match the return type of a gcc2
16429 builtin and then its argument prototype would still apply. */
16430char sched_get_priority_max();
16431
16432int main() {
16433sched_get_priority_max()
16434; return 0; }
698dcdb6 16435EOF
a1622950 16436if { (eval echo configure:16437: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6 16437 rm -rf conftest*
4f14bcd8 16438 eval "ac_cv_lib_$ac_lib_var=yes"
422107f9 16439else
698dcdb6 16440 echo "configure: failed program was:" >&5
422107f9 16441 cat conftest.$ac_ext >&5
698dcdb6 16442 rm -rf conftest*
4f14bcd8 16443 eval "ac_cv_lib_$ac_lib_var=no"
422107f9 16444fi
698dcdb6 16445rm -f conftest*
4f14bcd8
GD
16446LIBS="$ac_save_LIBS"
16447
422107f9 16448fi
4f14bcd8 16449if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
698dcdb6 16450 echo "$ac_t""yes" 1>&6
4f14bcd8
GD
16451 HAVE_PRIOR_FUNCS=1
16452else
16453 echo "$ac_t""no" 1>&6
16454echo $ac_n "checking for sched_get_priority_max in -lposix4""... $ac_c" 1>&6
a1622950 16455echo "configure:16456: checking for sched_get_priority_max in -lposix4" >&5
4f14bcd8 16456ac_lib_var=`echo posix4'_'sched_get_priority_max | sed 'y%./+-%__p_%'`
698dcdb6
VZ
16457if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
16458 echo $ac_n "(cached) $ac_c" 1>&6
422107f9 16459else
698dcdb6 16460 ac_save_LIBS="$LIBS"
4f14bcd8 16461LIBS="-lposix4 $LIBS"
698dcdb6 16462cat > conftest.$ac_ext <<EOF
a1622950 16463#line 16464 "configure"
422107f9
VZ
16464#include "confdefs.h"
16465/* Override any gcc2 internal prototype to avoid an error. */
16466/* We use char because int might match the return type of a gcc2
698dcdb6 16467 builtin and then its argument prototype would still apply. */
4f14bcd8 16468char sched_get_priority_max();
698dcdb6
VZ
16469
16470int main() {
4f14bcd8 16471sched_get_priority_max()
698dcdb6
VZ
16472; return 0; }
16473EOF
a1622950 16474if { (eval echo configure:16475: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
16475 rm -rf conftest*
16476 eval "ac_cv_lib_$ac_lib_var=yes"
16477else
16478 echo "configure: failed program was:" >&5
16479 cat conftest.$ac_ext >&5
16480 rm -rf conftest*
16481 eval "ac_cv_lib_$ac_lib_var=no"
16482fi
16483rm -f conftest*
16484LIBS="$ac_save_LIBS"
16485
16486fi
16487if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
16488 echo "$ac_t""yes" 1>&6
4f14bcd8 16489
7274f1c7
RL
16490 HAVE_PRIOR_FUNCS=1
16491 POSIX4_LINK=" -lposix4"
16492
698dcdb6
VZ
16493else
16494 echo "$ac_t""no" 1>&6
422107f9
VZ
16495fi
16496
7274f1c7 16497
422107f9
VZ
16498fi
16499
7274f1c7 16500
4f14bcd8
GD
16501else
16502 echo "$ac_t""no" 1>&6
10f2d63a
VZ
16503fi
16504
7274f1c7 16505
698dcdb6 16506else
4f14bcd8
GD
16507 echo "$ac_t""no" 1>&6
16508fi
463abc64 16509
463abc64 16510
7274f1c7
RL
16511 if test "$HAVE_PRIOR_FUNCS" = 1; then
16512 cat >> confdefs.h <<\EOF
4f14bcd8 16513#define HAVE_THREAD_PRIORITY_FUNCTIONS 1
698dcdb6 16514EOF
463abc64 16515
7274f1c7
RL
16516 else
16517 echo "configure: warning: Setting thread priority will not work" 1>&2
16518 fi
463abc64 16519
7274f1c7 16520 echo $ac_n "checking for pthread_cancel in -l$THREADS_LINK""... $ac_c" 1>&6
a1622950 16521echo "configure:16522: checking for pthread_cancel in -l$THREADS_LINK" >&5
4f14bcd8 16522ac_lib_var=`echo $THREADS_LINK'_'pthread_cancel | sed 'y%./+-%__p_%'`
698dcdb6
VZ
16523if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
16524 echo $ac_n "(cached) $ac_c" 1>&6
422107f9 16525else
698dcdb6 16526 ac_save_LIBS="$LIBS"
4f14bcd8 16527LIBS="-l$THREADS_LINK $LIBS"
698dcdb6 16528cat > conftest.$ac_ext <<EOF
a1622950 16529#line 16530 "configure"
422107f9
VZ
16530#include "confdefs.h"
16531/* Override any gcc2 internal prototype to avoid an error. */
16532/* We use char because int might match the return type of a gcc2
698dcdb6 16533 builtin and then its argument prototype would still apply. */
4f14bcd8 16534char pthread_cancel();
698dcdb6
VZ
16535
16536int main() {
4f14bcd8 16537pthread_cancel()
698dcdb6
VZ
16538; return 0; }
16539EOF
a1622950 16540if { (eval echo configure:16541: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
16541 rm -rf conftest*
16542 eval "ac_cv_lib_$ac_lib_var=yes"
16543else
16544 echo "configure: failed program was:" >&5
16545 cat conftest.$ac_ext >&5
16546 rm -rf conftest*
16547 eval "ac_cv_lib_$ac_lib_var=no"
16548fi
16549rm -f conftest*
16550LIBS="$ac_save_LIBS"
16551
16552fi
16553if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
16554 echo "$ac_t""yes" 1>&6
4f14bcd8
GD
16555 cat >> confdefs.h <<\EOF
16556#define HAVE_PTHREAD_CANCEL 1
16557EOF
16558
698dcdb6
VZ
16559else
16560 echo "$ac_t""no" 1>&6
4f14bcd8 16561echo "configure: warning: wxThread::Kill() will not work properly" 1>&2
422107f9
VZ
16562fi
16563
422107f9 16564
7274f1c7 16565 echo $ac_n "checking for pthread_cleanup_push/pop""... $ac_c" 1>&6
a1622950 16566echo "configure:16567: checking for pthread_cleanup_push/pop" >&5
4f14bcd8
GD
16567if eval "test \"`echo '$''{'wx_cv_func_pthread_cleanup_push'+set}'`\" = set"; then
16568 echo $ac_n "(cached) $ac_c" 1>&6
16569else
16570
7274f1c7 16571 cat > conftest.$ac_ext <<EOF
a1622950 16572#line 16573 "configure"
4f14bcd8
GD
16573#include "confdefs.h"
16574#include <pthread.h>
16575int main() {
16576
7274f1c7
RL
16577 pthread_cleanup_push(NULL, NULL);
16578 pthread_cleanup_pop(0);
16579
4f14bcd8
GD
16580; return 0; }
16581EOF
a1622950 16582if { (eval echo configure:16583: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4f14bcd8
GD
16583 rm -rf conftest*
16584
7274f1c7
RL
16585 wx_cv_func_pthread_cleanup_push=yes
16586
4f14bcd8
GD
16587else
16588 echo "configure: failed program was:" >&5
16589 cat conftest.$ac_ext >&5
16590 rm -rf conftest*
16591
7274f1c7
RL
16592 wx_cv_func_pthread_cleanup_push=no
16593
4f14bcd8
GD
16594fi
16595rm -f conftest*
7274f1c7 16596
10f2d63a
VZ
16597fi
16598
4f14bcd8
GD
16599echo "$ac_t""$wx_cv_func_pthread_cleanup_push" 1>&6
16600
7274f1c7
RL
16601 if test "$wx_cv_func_pthread_cleanup_push" = "yes"; then
16602 cat >> confdefs.h <<\EOF
4f14bcd8 16603#define HAVE_THREAD_CLEANUP_FUNCTIONS 1
c7a2bf27
RR
16604EOF
16605
7274f1c7 16606 fi
4f14bcd8 16607
7274f1c7
RL
16608
16609 if test "x$wx_lib_glibc21" = "xyes"; then
16610 CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE"
16611 fi
4f14bcd8 16612
7274f1c7 16613 echo $ac_n "checking for pthread_mutexattr_t""... $ac_c" 1>&6
a1622950 16614echo "configure:16615: checking for pthread_mutexattr_t" >&5
4f14bcd8 16615if eval "test \"`echo '$''{'wx_cv_type_pthread_mutexattr_t'+set}'`\" = set"; then
698dcdb6
VZ
16616 echo $ac_n "(cached) $ac_c" 1>&6
16617else
4f14bcd8 16618
7274f1c7 16619 cat > conftest.$ac_ext <<EOF
a1622950 16620#line 16621 "configure"
0dcf9893 16621#include "confdefs.h"
4f14bcd8
GD
16622#include <pthread.h>
16623int main() {
16624
7274f1c7
RL
16625 pthread_mutexattr_t attr;
16626 pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
16627
4f14bcd8 16628; return 0; }
698dcdb6 16629EOF
a1622950 16630if { (eval echo configure:16631: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6 16631 rm -rf conftest*
4f14bcd8 16632
7274f1c7
RL
16633 wx_cv_type_pthread_mutexattr_t=yes
16634
3fed1840 16635else
698dcdb6 16636 echo "configure: failed program was:" >&5
3fed1840 16637 cat conftest.$ac_ext >&5
698dcdb6 16638 rm -rf conftest*
4f14bcd8 16639
7274f1c7
RL
16640 wx_cv_type_pthread_mutexattr_t=no
16641
4f14bcd8 16642
3fed1840 16643fi
698dcdb6 16644rm -f conftest*
7274f1c7 16645
3fed1840 16646fi
4f14bcd8
GD
16647
16648echo "$ac_t""$wx_cv_type_pthread_mutexattr_t" 1>&6
16649
7274f1c7
RL
16650 if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then
16651 cat >> confdefs.h <<\EOF
4f14bcd8
GD
16652#define HAVE_PTHREAD_MUTEXATTR_T 1
16653EOF
16654
7274f1c7
RL
16655 else
16656 echo $ac_n "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER""... $ac_c" 1>&6
a1622950 16657echo "configure:16658: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5
4f14bcd8 16658if eval "test \"`echo '$''{'wx_cv_type_pthread_rec_mutex_init'+set}'`\" = set"; then
698dcdb6 16659 echo $ac_n "(cached) $ac_c" 1>&6
3fed1840 16660else
4f14bcd8 16661
7274f1c7 16662 cat > conftest.$ac_ext <<EOF
a1622950 16663#line 16664 "configure"
3fed1840 16664#include "confdefs.h"
4f14bcd8 16665#include <pthread.h>
698dcdb6 16666int main() {
4f14bcd8 16667
7274f1c7
RL
16668 pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;
16669
698dcdb6
VZ
16670; return 0; }
16671EOF
a1622950 16672if { (eval echo configure:16673: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6 16673 rm -rf conftest*
4f14bcd8 16674
7274f1c7
RL
16675 wx_cv_type_pthread_rec_mutex_init=yes
16676
698dcdb6
VZ
16677else
16678 echo "configure: failed program was:" >&5
16679 cat conftest.$ac_ext >&5
16680 rm -rf conftest*
4f14bcd8 16681
7274f1c7
RL
16682 wx_cv_type_pthread_rec_mutex_init=no
16683
4f14bcd8 16684
698dcdb6
VZ
16685fi
16686rm -f conftest*
7274f1c7 16687
3fed1840
RR
16688fi
16689
4f14bcd8 16690echo "$ac_t""$wx_cv_type_pthread_rec_mutex_init" 1>&6
7274f1c7
RL
16691 if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then
16692 cat >> confdefs.h <<\EOF
4f14bcd8
GD
16693#define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1
16694EOF
3fed1840 16695
7274f1c7
RL
16696 else
16697 echo "configure: warning: wxMutex won't be recursive on this platform" 1>&2
16698 fi
16699 fi
4f14bcd8 16700
7274f1c7 16701 THREADS_LINK=" -l$THREADS_LINK"
4f14bcd8 16702
7274f1c7
RL
16703 if test "$USE_SOLARIS" = "yes" -a "$GCC" != "yes"; then
16704 CPPFLAGS="$CFLAGS -mt"
16705 CXXFLAGS="$CXXFLAGS -mt"
16706 LDFLAGS="$LDFLAGS -mt"
16707 fi
16708 fi
3fed1840 16709
4f14bcd8
GD
16710fi
16711
16712if test "$wxUSE_THREADS" = "yes"; then
3a922bb4 16713 cat >> confdefs.h <<\EOF
4f14bcd8 16714#define wxUSE_THREADS 1
7b6058cd
GD
16715EOF
16716
4f14bcd8 16717
3f345b47 16718 TOOLCHAIN_DEFS="$TOOLCHAIN_DEFS $CPP_MT_FLAG"
4f14bcd8
GD
16719
16720 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread"
698dcdb6 16721else
4f14bcd8
GD
16722 if test "$ac_cv_func_strtok_r" = "yes"; then
16723 echo $ac_n "checking if -D_REENTRANT is needed""... $ac_c" 1>&6
a1622950 16724echo "configure:16725: checking if -D_REENTRANT is needed" >&5
4f14bcd8
GD
16725 if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then
16726 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D_REENTRANT"
16727 echo "$ac_t""yes" 1>&6
16728 else
16729 echo "$ac_t""no" 1>&6
16730 fi
16731 fi
16732fi
16733
16734if test "$WXGTK20" = 1 ; then
16735 cat >> confdefs.h <<EOF
16736#define __WXGTK20__ $WXGTK20
698dcdb6 16737EOF
4f14bcd8
GD
16738
16739 WXGTK12=1
10f2d63a 16740fi
4f14bcd8
GD
16741
16742if test "$WXGTK12" = 1 ; then
16743 cat >> confdefs.h <<EOF
16744#define __WXGTK12__ $WXGTK12
16745EOF
16746
10f2d63a 16747fi
698dcdb6 16748
4f14bcd8
GD
16749if test "$WXGTK127" = 1 ; then
16750 cat >> confdefs.h <<EOF
16751#define __WXGTK127__ $WXGTK127
698dcdb6 16752EOF
4f14bcd8 16753
698dcdb6 16754fi
10f2d63a 16755
4f14bcd8
GD
16756WXDEBUG=
16757
16758if test "$wxUSE_DEBUG_INFO" = "yes" ; then
16759 WXDEBUG="-g"
16760 wxUSE_OPTIMISE=no
698dcdb6 16761fi
4f14bcd8
GD
16762
16763if test "$wxUSE_DEBUG_GDB" = "yes" ; then
16764 wxUSE_DEBUG_INFO=yes
16765 WXDEBUG="-ggdb"
10f2d63a
VZ
16766fi
16767
4f14bcd8
GD
16768if test "$wxUSE_DEBUG_FLAG" = "yes" ; then
16769 cat >> confdefs.h <<\EOF
16770#define WXDEBUG 1
16771EOF
16772
16773 WXDEBUG_DEFINE="-D__WXDEBUG__"
10f2d63a 16774else
4f14bcd8
GD
16775 if test "$wxUSE_GTK" = 1 ; then
16776 WXDEBUG_DEFINE="-DGTK_NO_CHECK_CASTS"
16777 fi
16778fi
16779
16780if test "$wxUSE_MEM_TRACING" = "yes" ; then
16781 cat >> confdefs.h <<\EOF
16782#define wxUSE_MEMORY_TRACING 1
16783EOF
16784
16785 cat >> confdefs.h <<\EOF
16786#define wxUSE_GLOBAL_MEMORY_OPERATORS 1
16787EOF
16788
16789 cat >> confdefs.h <<\EOF
16790#define wxUSE_DEBUG_NEW_ALWAYS 1
16791EOF
16792
16793 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck"
16794fi
16795
16796if test "$wxUSE_DMALLOC" = "yes" ; then
3d63bc3a 16797 DMALLOC_LIBS="-ldmalloc"
4f14bcd8
GD
16798fi
16799
16800PROFILE=
16801if test "$wxUSE_PROFILE" = "yes" ; then
3d63bc3a 16802 PROFILE=" -pg"
10f2d63a
VZ
16803fi
16804
88e30f2b 16805if test "$GCC" = "yes" ; then
4f14bcd8
GD
16806 if test "$wxUSE_NO_RTTI" = "yes" ; then
16807 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-rtti"
3a922bb4 16808 fi
4f14bcd8
GD
16809 if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
16810 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-exceptions"
16811 fi
16812 if test "$wxUSE_PERMISSIVE" = "yes" ; then
16813 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fpermissive"
16814 fi
4f14bcd8
GD
16815 if test "$USE_WIN32" = 1 ; then
16816 # I'm not even really sure what this was ever added to solve,
16817 # but someone added it for mingw native builds, so I guess
16818 # they had a reason, right??
16819 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fno-pcc-struct-return"
16820 fi
16821fi
16822
16823
16824CXXFLAGS=`echo "${CXXFLAGS}" | sed "s/\-O.//g" `
16825CFLAGS=`echo "${CFLAGS}" | sed "s/\-O.//g" `
16826if test "$wxUSE_OPTIMISE" = "no" ; then
16827 OPTIMISE=
16828else
16829 if test "$GCC" = yes ; then
16830 OPTIMISE="-O2"
16831 case "${host}" in
16832 i586-*-*|i686-*-* )
16833 OPTIMISE="${OPTIMISE} "
16834 ;;
16835 esac
16836 else
16837 OPTIMISE="-O"
16838 fi
16839fi
16840
16841if test "$WXWIN_COMPATIBILITY_2" = "yes"; then
16842 cat >> confdefs.h <<\EOF
16843#define WXWIN_COMPATIBILITY_2 1
16844EOF
16845
16846
16847 WXWIN_COMPATIBILITY_2_2="yes"
16848fi
16849
16850if test "$WXWIN_COMPATIBILITY_2_2" = "yes"; then
16851 cat >> confdefs.h <<\EOF
16852#define WXWIN_COMPATIBILITY_2_2 1
16853EOF
16854
10f2d63a
VZ
16855fi
16856
698dcdb6 16857
10f2d63a 16858if test "$wxUSE_GUI" = "yes"; then
698dcdb6 16859 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16860#define wxUSE_GUI 1
16861EOF
16862
698dcdb6 16863
10f2d63a 16864 else
698dcdb6 16865 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16866#define wxUSE_NOGUI 1
16867EOF
16868
16869fi
16870
698dcdb6 16871
10f2d63a 16872if test "$wxUSE_UNIX" = "yes"; then
698dcdb6 16873 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16874#define wxUSE_UNIX 1
16875EOF
16876
16877fi
16878
698dcdb6 16879
10f2d63a 16880if test "$wxUSE_APPLE_IEEE" = "yes"; then
698dcdb6 16881 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16882#define wxUSE_APPLE_IEEE 1
16883EOF
16884
16885fi
16886
1e6feb95
VZ
16887if test "$wxUSE_TIMER" = "yes"; then
16888 cat >> confdefs.h <<\EOF
16889#define wxUSE_TIMER 1
16890EOF
16891
16892fi
16893
10f2d63a 16894if test "$wxUSE_WAVE" = "yes"; then
698dcdb6 16895 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16896#define wxUSE_WAVE 1
16897EOF
16898
16899fi
16900
1e6feb95
VZ
16901if test "$wxUSE_CMDLINE_PARSER" = "yes"; then
16902 cat >> confdefs.h <<\EOF
16903#define wxUSE_CMDLINE_PARSER 1
16904EOF
16905
16906fi
16907
16908if test "$wxUSE_STOPWATCH" = "yes"; then
16909 cat >> confdefs.h <<\EOF
16910#define wxUSE_STOPWATCH 1
16911EOF
16912
16913fi
16914
16915if test "$wxUSE_DATETIME" = "yes"; then
16916 cat >> confdefs.h <<\EOF
16917#define wxUSE_DATETIME 1
16918EOF
16919
16920fi
16921
16922if test "$wxUSE_TIMEDATE" = "yes"; then
16923 cat >> confdefs.h <<\EOF
16924#define wxUSE_TIMEDATE 1
16925EOF
16926
16927fi
16928
10f2d63a 16929if test "$wxUSE_FILE" = "yes"; then
698dcdb6 16930 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16931#define wxUSE_FILE 1
16932EOF
16933
16934fi
16935
1e6feb95
VZ
16936if test "$wxUSE_FFILE" = "yes"; then
16937 cat >> confdefs.h <<\EOF
16938#define wxUSE_FFILE 1
16939EOF
16940
16941fi
16942
24528b0c 16943if test "$wxUSE_FILESYSTEM" = "yes"; then
698dcdb6 16944 cat >> confdefs.h <<\EOF
24528b0c
VS
16945#define wxUSE_FILESYSTEM 1
16946EOF
16947
16948fi
16949
10f2d63a 16950if test "$wxUSE_FS_INET" = "yes"; then
698dcdb6 16951 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16952#define wxUSE_FS_INET 1
16953EOF
16954
16955fi
16956
16957if test "$wxUSE_FS_ZIP" = "yes"; then
698dcdb6 16958 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16959#define wxUSE_FS_ZIP 1
16960EOF
16961
16962fi
16963
16964if test "$wxUSE_ZIPSTREAM" = "yes"; then
698dcdb6 16965 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16966#define wxUSE_ZIPSTREAM 1
16967EOF
16968
16969fi
16970
eb4efbdc 16971if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
698dcdb6 16972 cat >> confdefs.h <<\EOF
eb4efbdc
VZ
16973#define wxUSE_ON_FATAL_EXCEPTION 1
16974EOF
16975
16976fi
16977
4f3c5f06 16978if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
698dcdb6 16979 cat >> confdefs.h <<\EOF
4f3c5f06
VZ
16980#define wxUSE_SNGLINST_CHECKER 1
16981EOF
16982
16983fi
16984
10f2d63a 16985if test "$wxUSE_BUSYINFO" = "yes"; then
698dcdb6 16986 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16987#define wxUSE_BUSYINFO 1
16988EOF
16989
16990fi
16991
16992if test "$wxUSE_STD_IOSTREAM" = "yes"; then
698dcdb6 16993 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16994#define wxUSE_STD_IOSTREAM 1
16995EOF
16996
16997fi
16998
a3a584a7
VZ
16999if test "$wxUSE_TEXTBUFFER" = "yes"; then
17000 cat >> confdefs.h <<\EOF
17001#define wxUSE_TEXTBUFFER 1
17002EOF
17003
17004fi
17005
10f2d63a 17006if test "$wxUSE_TEXTFILE" = "yes"; then
a3a584a7 17007 if test "$wxUSE_FILE" != "yes" -o "$wxUSE_TEXTBUFFER" != "yes" ; then
156b2523 17008 echo "configure: warning: wxTextFile requires wxFile and wxTextBuffer... disabled" 1>&2
10f2d63a 17009 else
698dcdb6 17010 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17011#define wxUSE_TEXTFILE 1
17012EOF
17013
17014 fi
17015fi
17016
17017if test "$wxUSE_CONFIG" = "yes" ; then
17018 if test "$wxUSE_TEXTFILE" != "yes"; then
156b2523 17019 echo "configure: warning: wxConfig requires wxTextFile... disabled" 1>&2
10f2d63a 17020 else
698dcdb6 17021 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17022#define wxUSE_CONFIG 1
17023EOF
17024
17025 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config"
17026 fi
17027fi
17028
17029if test "$wxUSE_INTL" = "yes" ; then
17030 if test "$wxUSE_FILE" != "yes"; then
156b2523 17031 echo "configure: warning: I18n code requires wxFile... disabled" 1>&2
10f2d63a 17032 else
698dcdb6 17033 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17034#define wxUSE_INTL 1
17035EOF
17036
17037 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat"
f6bcfd97 17038 GUIDIST="$GUIDIST INTL_DIST"
10f2d63a
VZ
17039 fi
17040fi
17041
17042if test "$wxUSE_LOG" = "yes"; then
698dcdb6 17043 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17044#define wxUSE_LOG 1
17045EOF
17046
d73be714
VZ
17047
17048 if test "$wxUSE_LOGGUI" = "yes"; then
17049 cat >> confdefs.h <<\EOF
17050#define wxUSE_LOGGUI 1
17051EOF
17052
17053 fi
17054
17055 if test "$wxUSE_LOGWINDOW" = "yes"; then
17056 cat >> confdefs.h <<\EOF
17057#define wxUSE_LOGWINDOW 1
69d27ff7
MB
17058EOF
17059
17060 fi
17061
17062 if test "$wxUSE_LOGDIALOG" = "yes"; then
17063 cat >> confdefs.h <<\EOF
17064#define wxUSE_LOG_DIALOG 1
d73be714
VZ
17065EOF
17066
17067 fi
10f2d63a
VZ
17068fi
17069
17070if test "$wxUSE_LONGLONG" = "yes"; then
698dcdb6 17071 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17072#define wxUSE_LONGLONG 1
17073EOF
17074
17075fi
17076
e8f65ba6 17077if test "$wxUSE_GEOMETRY" = "yes"; then
698dcdb6 17078 cat >> confdefs.h <<\EOF
e8f65ba6
RR
17079#define wxUSE_GEOMETRY 1
17080EOF
17081
17082fi
17083
10f2d63a 17084if test "$wxUSE_DIALUP_MANAGER" = "yes" ; then
698dcdb6 17085 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17086#define wxUSE_DIALUP_MANAGER 1
17087EOF
17088
70f7a477 17089 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup"
10f2d63a
VZ
17090fi
17091
17092if test "$wxUSE_STREAMS" = "yes" ; then
698dcdb6 17093 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17094#define wxUSE_STREAMS 1
17095EOF
17096
17097fi
17098
1e487827 17099
1e6feb95 17100if test "$wxUSE_DATETIME" = "yes"; then
698dcdb6 17101 for ac_func in strptime
83307f33 17102do
698dcdb6 17103echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
a1622950 17104echo "configure:17105: checking for $ac_func" >&5
698dcdb6
VZ
17105if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17106 echo $ac_n "(cached) $ac_c" 1>&6
17107else
17108 cat > conftest.$ac_ext <<EOF
a1622950 17109#line 17110 "configure"
83307f33
VZ
17110#include "confdefs.h"
17111/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 17112 which can conflict with char $ac_func(); below. */
83307f33
VZ
17113#include <assert.h>
17114/* Override any gcc2 internal prototype to avoid an error. */
17115/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
17116 builtin and then its argument prototype would still apply. */
17117char $ac_func();
17118
17119int main() {
83307f33
VZ
17120
17121/* The GNU C library defines this for functions which it implements
17122 to always fail with ENOSYS. Some functions are actually named
17123 something starting with __ and the normal name is an alias. */
17124#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17125choke me
17126#else
698dcdb6 17127$ac_func();
83307f33
VZ
17128#endif
17129
698dcdb6 17130; return 0; }
83307f33 17131EOF
a1622950 17132if { (eval echo configure:17133: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
17133 rm -rf conftest*
17134 eval "ac_cv_func_$ac_func=yes"
17135else
17136 echo "configure: failed program was:" >&5
17137 cat conftest.$ac_ext >&5
17138 rm -rf conftest*
17139 eval "ac_cv_func_$ac_func=no"
17140fi
17141rm -f conftest*
17142fi
83307f33 17143
698dcdb6
VZ
17144if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17145 echo "$ac_t""yes" 1>&6
17146 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17147 cat >> confdefs.h <<EOF
17148#define $ac_tr_func 1
17149EOF
17150
17151else
17152 echo "$ac_t""no" 1>&6
83307f33
VZ
17153fi
17154done
17155
1e487827 17156
698dcdb6 17157 echo $ac_n "checking for timezone variable in <time.h>""... $ac_c" 1>&6
a1622950 17158echo "configure:17159: checking for timezone variable in <time.h>" >&5
698dcdb6
VZ
17159if eval "test \"`echo '$''{'wx_cv_var_timezone'+set}'`\" = set"; then
17160 echo $ac_n "(cached) $ac_c" 1>&6
17161else
17162
17163 cat > conftest.$ac_ext <<EOF
a1622950 17164#line 17165 "configure"
360d6699
VZ
17165#include "confdefs.h"
17166
b4085ce6 17167 #include <time.h>
698dcdb6
VZ
17168
17169int main() {
360d6699
VZ
17170
17171 int tz;
4f11a343 17172 tz = timezone;
698dcdb6
VZ
17173
17174; return 0; }
17175EOF
a1622950 17176if { (eval echo configure:17177: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6
VZ
17177 rm -rf conftest*
17178
4f11a343 17179 wx_cv_var_timezone=timezone
698dcdb6 17180
360d6699 17181else
698dcdb6
VZ
17182 echo "configure: failed program was:" >&5
17183 cat conftest.$ac_ext >&5
17184 rm -rf conftest*
17185
17186 cat > conftest.$ac_ext <<EOF
a1622950 17187#line 17188 "configure"
360d6699
VZ
17188#include "confdefs.h"
17189
b4085ce6 17190 #include <time.h>
698dcdb6
VZ
17191
17192int main() {
360d6699
VZ
17193
17194 int tz;
17195 tz = _timezone;
698dcdb6
VZ
17196
17197; return 0; }
17198EOF
a1622950 17199if { (eval echo configure:17200: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6
VZ
17200 rm -rf conftest*
17201
360d6699 17202 wx_cv_var_timezone=_timezone
698dcdb6 17203
5357c8e8 17204else
698dcdb6
VZ
17205 echo "configure: failed program was:" >&5
17206 cat conftest.$ac_ext >&5
17207 rm -rf conftest*
17208
17209 cat > conftest.$ac_ext <<EOF
a1622950 17210#line 17211 "configure"
5357c8e8
VZ
17211#include "confdefs.h"
17212
b4085ce6 17213 #include <time.h>
698dcdb6
VZ
17214
17215int main() {
5357c8e8
VZ
17216
17217 int tz;
4f11a343 17218 tz = __timezone;
698dcdb6
VZ
17219
17220; return 0; }
17221EOF
a1622950 17222if { (eval echo configure:17223: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6
VZ
17223 rm -rf conftest*
17224
4f11a343 17225 wx_cv_var_timezone=__timezone
698dcdb6 17226
360d6699 17227else
698dcdb6
VZ
17228 echo "configure: failed program was:" >&5
17229 cat conftest.$ac_ext >&5
17230 rm -rf conftest*
f9bc1684
VS
17231
17232 if test "$USE_DOS" = 0 ; then
17233 { echo "configure: error: no timezone variable" 1>&2; exit 1; }
17234 fi
17235
698dcdb6 17236
360d6699 17237fi
698dcdb6
VZ
17238rm -f conftest*
17239
17240
360d6699 17241fi
698dcdb6
VZ
17242rm -f conftest*
17243
17244
6232543b 17245fi
698dcdb6
VZ
17246rm -f conftest*
17247
17248
1e487827 17249fi
703e0a69 17250
698dcdb6
VZ
17251echo "$ac_t""$wx_cv_var_timezone" 1>&6
17252
f9bc1684 17253 if test "x$wx_cv_var_timezone" != x ; then
698dcdb6 17254 cat >> confdefs.h <<EOF
360d6699
VZ
17255#define WX_TIMEZONE $wx_cv_var_timezone
17256EOF
17257
f9bc1684 17258 fi
698dcdb6
VZ
17259
17260 for ac_func in localtime
afc31813 17261do
698dcdb6 17262echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
a1622950 17263echo "configure:17264: checking for $ac_func" >&5
698dcdb6
VZ
17264if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17265 echo $ac_n "(cached) $ac_c" 1>&6
17266else
17267 cat > conftest.$ac_ext <<EOF
a1622950 17268#line 17269 "configure"
10f2d63a 17269#include "confdefs.h"
afc31813 17270/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 17271 which can conflict with char $ac_func(); below. */
afc31813
VZ
17272#include <assert.h>
17273/* Override any gcc2 internal prototype to avoid an error. */
17274/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
17275 builtin and then its argument prototype would still apply. */
17276char $ac_func();
17277
17278int main() {
afc31813
VZ
17279
17280/* The GNU C library defines this for functions which it implements
17281 to always fail with ENOSYS. Some functions are actually named
17282 something starting with __ and the normal name is an alias. */
17283#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17284choke me
17285#else
698dcdb6 17286$ac_func();
afc31813
VZ
17287#endif
17288
698dcdb6 17289; return 0; }
10f2d63a 17290EOF
a1622950 17291if { (eval echo configure:17292: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
17292 rm -rf conftest*
17293 eval "ac_cv_func_$ac_func=yes"
17294else
17295 echo "configure: failed program was:" >&5
17296 cat conftest.$ac_ext >&5
17297 rm -rf conftest*
17298 eval "ac_cv_func_$ac_func=no"
17299fi
17300rm -f conftest*
17301fi
afc31813 17302
698dcdb6
VZ
17303if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17304 echo "$ac_t""yes" 1>&6
17305 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17306 cat >> confdefs.h <<EOF
17307#define $ac_tr_func 1
17308EOF
17309
17310else
17311 echo "$ac_t""no" 1>&6
afc31813
VZ
17312fi
17313done
17314
1e487827 17315
698dcdb6
VZ
17316 if test "$ac_cv_func_localtime" = "yes"; then
17317 echo $ac_n "checking for tm_gmtoff in struct tm""... $ac_c" 1>&6
a1622950 17318echo "configure:17319: checking for tm_gmtoff in struct tm" >&5
698dcdb6
VZ
17319if eval "test \"`echo '$''{'wx_cv_struct_tm_has_gmtoff'+set}'`\" = set"; then
17320 echo $ac_n "(cached) $ac_c" 1>&6
17321else
17322
17323 cat > conftest.$ac_ext <<EOF
a1622950 17324#line 17325 "configure"
0470b1e6
VZ
17325#include "confdefs.h"
17326
b4085ce6 17327 #include <time.h>
698dcdb6
VZ
17328
17329int main() {
0470b1e6
VZ
17330
17331 struct tm tm;
17332 tm.tm_gmtoff++;
698dcdb6
VZ
17333
17334; return 0; }
17335EOF
a1622950 17336if { (eval echo configure:17337: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6
VZ
17337 rm -rf conftest*
17338
f03a98d8 17339 wx_cv_struct_tm_has_gmtoff=yes
698dcdb6 17340
0470b1e6 17341else
698dcdb6
VZ
17342 echo "configure: failed program was:" >&5
17343 cat conftest.$ac_ext >&5
17344 rm -rf conftest*
17345 wx_cv_struct_tm_has_gmtoff=no
17346
0470b1e6 17347fi
698dcdb6
VZ
17348rm -f conftest*
17349
1e487827 17350fi
698dcdb6
VZ
17351
17352echo "$ac_t""$wx_cv_struct_tm_has_gmtoff" 1>&6
6232543b
VS
17353 fi
17354
17355 if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then
698dcdb6 17356 cat >> confdefs.h <<\EOF
6232543b
VS
17357#define WX_GMTOFF_IN_TM 1
17358EOF
0470b1e6 17359
3fcdd07b
VZ
17360 fi
17361
698dcdb6 17362 for ac_func in gettimeofday ftime
3fcdd07b 17363do
698dcdb6 17364echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
a1622950 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
a1622950 17370#line 17371 "configure"
3fcdd07b
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. */
3fcdd07b
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() {
3fcdd07b
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();
3fcdd07b
VZ
17389#endif
17390
698dcdb6
VZ
17391; return 0; }
17392EOF
a1622950 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
17404
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
3fcdd07b
VZ
17410EOF
17411 break
698dcdb6
VZ
17412else
17413 echo "$ac_t""no" 1>&6
3fcdd07b
VZ
17414fi
17415done
17416
afc31813 17417
698dcdb6
VZ
17418 if test "$ac_cv_func_gettimeofday" = "yes"; then
17419 echo $ac_n "checking whether gettimeofday takes two arguments""... $ac_c" 1>&6
a1622950 17420echo "configure:17421: checking whether gettimeofday takes two arguments" >&5
698dcdb6
VZ
17421if eval "test \"`echo '$''{'wx_cv_func_gettimeofday_has_2_args'+set}'`\" = set"; then
17422 echo $ac_n "(cached) $ac_c" 1>&6
17423else
17424
17425
17426 ac_ext=C
17427# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1e487827 17428ac_cpp='$CXXCPP $CPPFLAGS'
698dcdb6
VZ
17429ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17430ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17431cross_compiling=$ac_cv_prog_cxx_cross
703e0a69 17432
698dcdb6
VZ
17433
17434 cat > conftest.$ac_ext <<EOF
a1622950 17435#line 17436 "configure"
10f2d63a 17436#include "confdefs.h"
afc31813
VZ
17437
17438 #include <sys/time.h>
17439 #include <unistd.h>
698dcdb6
VZ
17440
17441int main() {
afc31813
VZ
17442
17443 struct timeval tv;
776862b4 17444 gettimeofday(&tv, NULL);
698dcdb6
VZ
17445
17446; return 0; }
17447EOF
a1622950 17448if { (eval echo configure:17449: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6 17449 rm -rf conftest*
afc31813 17450 wx_cv_func_gettimeofday_has_2_args=yes
10f2d63a 17451else
698dcdb6
VZ
17452 echo "configure: failed program was:" >&5
17453 cat conftest.$ac_ext >&5
17454 rm -rf conftest*
17455 cat > conftest.$ac_ext <<EOF
a1622950 17456#line 17457 "configure"
10f2d63a 17457#include "confdefs.h"
afc31813
VZ
17458
17459 #include <sys/time.h>
17460 #include <unistd.h>
698dcdb6
VZ
17461
17462int main() {
afc31813
VZ
17463
17464 struct timeval tv;
17465 gettimeofday(&tv);
698dcdb6
VZ
17466
17467; return 0; }
17468EOF
a1622950 17469if { (eval echo configure:17470: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6 17470 rm -rf conftest*
afc31813 17471 wx_cv_func_gettimeofday_has_2_args=no
10f2d63a 17472else
698dcdb6
VZ
17473 echo "configure: failed program was:" >&5
17474 cat conftest.$ac_ext >&5
17475 rm -rf conftest*
776862b4
VZ
17476
17477 echo "configure: warning: failed to determine number of gettimeofday() arguments" 1>&2
17478 wx_cv_func_gettimeofday_has_2_args=unknown
17479
698dcdb6 17480
10f2d63a 17481fi
698dcdb6
VZ
17482rm -f conftest*
17483
10f2d63a 17484fi
698dcdb6 17485rm -f conftest*
afc31813 17486 ac_ext=c
698dcdb6 17487# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10f2d63a 17488ac_cpp='$CPP $CPPFLAGS'
698dcdb6
VZ
17489ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17490ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17491cross_compiling=$ac_cv_prog_cc_cross
10f2d63a 17492
698dcdb6 17493
afc31813 17494fi
698dcdb6
VZ
17495
17496echo "$ac_t""$wx_cv_func_gettimeofday_has_2_args" 1>&6
c63c7106 17497
afc31813 17498 if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then
698dcdb6 17499 cat >> confdefs.h <<\EOF
afc31813
VZ
17500#define WX_GETTIMEOFDAY_NO_TZ 1
17501EOF
17502
17503 fi
17504 fi
17505
698dcdb6 17506 cat >> confdefs.h <<\EOF
afc31813
VZ
17507#define wxUSE_TIMEDATE 1
17508EOF
17509
17510 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest"
17511fi
17512
698dcdb6 17513
b089607b
VZ
17514if test "$TOOLKIT" != "MSW"; then
17515
3a922bb4
RL
17516 if test "$wxUSE_SOCKETS" = "yes"; then
17517 echo $ac_n "checking for socket""... $ac_c" 1>&6
a1622950 17518echo "configure:17519: checking for socket" >&5
698dcdb6
VZ
17519if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then
17520 echo $ac_n "(cached) $ac_c" 1>&6
c63c7106 17521else
698dcdb6 17522 cat > conftest.$ac_ext <<EOF
a1622950 17523#line 17524 "configure"
c63c7106
VZ
17524#include "confdefs.h"
17525/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 17526 which can conflict with char socket(); below. */
c63c7106
VZ
17527#include <assert.h>
17528/* Override any gcc2 internal prototype to avoid an error. */
17529/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
17530 builtin and then its argument prototype would still apply. */
17531char socket();
17532
17533int main() {
c63c7106
VZ
17534
17535/* The GNU C library defines this for functions which it implements
17536 to always fail with ENOSYS. Some functions are actually named
17537 something starting with __ and the normal name is an alias. */
17538#if defined (__stub_socket) || defined (__stub___socket)
17539choke me
17540#else
698dcdb6 17541socket();
c63c7106
VZ
17542#endif
17543
698dcdb6
VZ
17544; return 0; }
17545EOF
a1622950 17546if { (eval echo configure:17547: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
17547 rm -rf conftest*
17548 eval "ac_cv_func_socket=yes"
17549else
17550 echo "configure: failed program was:" >&5
17551 cat conftest.$ac_ext >&5
17552 rm -rf conftest*
17553 eval "ac_cv_func_socket=no"
17554fi
17555rm -f conftest*
17556fi
17557
17558if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
17559 echo "$ac_t""yes" 1>&6
c63c7106
VZ
17560 :
17561else
698dcdb6
VZ
17562 echo "$ac_t""no" 1>&6
17563echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
a1622950 17564echo "configure:17565: checking for socket in -lsocket" >&5
698dcdb6
VZ
17565ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'`
17566if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
17567 echo $ac_n "(cached) $ac_c" 1>&6
c63c7106 17568else
698dcdb6 17569 ac_save_LIBS="$LIBS"
c63c7106 17570LIBS="-lsocket $LIBS"
698dcdb6 17571cat > conftest.$ac_ext <<EOF
a1622950 17572#line 17573 "configure"
c63c7106
VZ
17573#include "confdefs.h"
17574/* Override any gcc2 internal prototype to avoid an error. */
17575/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
17576 builtin and then its argument prototype would still apply. */
17577char socket();
17578
17579int main() {
17580socket()
17581; return 0; }
17582EOF
a1622950 17583if { (eval echo configure:17584: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
17584 rm -rf conftest*
17585 eval "ac_cv_lib_$ac_lib_var=yes"
17586else
17587 echo "configure: failed program was:" >&5
17588 cat conftest.$ac_ext >&5
17589 rm -rf conftest*
17590 eval "ac_cv_lib_$ac_lib_var=no"
17591fi
17592rm -f conftest*
17593LIBS="$ac_save_LIBS"
17594
17595fi
17596if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
17597 echo "$ac_t""yes" 1>&6
c63c7106 17598 INET_LINK="$INET_LINK -lsocket"
c63c7106 17599else
698dcdb6 17600 echo "$ac_t""no" 1>&6
afc31813 17601
3a922bb4
RL
17602 echo "configure: warning: socket library not found - sockets will be disabled" 1>&2
17603 wxUSE_SOCKETS=no
17604
698dcdb6 17605
6232543b 17606fi
b089607b 17607
3a922bb4 17608
1e487827 17609fi
afc31813 17610
3a922bb4 17611 fi
51a9faba 17612
3a922bb4
RL
17613
17614 if test "$wxUSE_SOCKETS" = "yes" ; then
17615 echo $ac_n "checking what is the type of the third argument of getsockname""... $ac_c" 1>&6
a1622950 17616echo "configure:17617: checking what is the type of the third argument of getsockname" >&5
698dcdb6
VZ
17617if eval "test \"`echo '$''{'wx_cv_type_getsockname3'+set}'`\" = set"; then
17618 echo $ac_n "(cached) $ac_c" 1>&6
17619else
17620
3a922bb4
RL
17621
17622 ac_ext=C
698dcdb6 17623# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1e487827 17624ac_cpp='$CXXCPP $CPPFLAGS'
698dcdb6
VZ
17625ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17626ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17627cross_compiling=$ac_cv_prog_cxx_cross
703e0a69 17628
698dcdb6 17629
3a922bb4 17630 cat > conftest.$ac_ext <<EOF
a1622950 17631#line 17632 "configure"
afc31813 17632#include "confdefs.h"
51a9faba 17633
3a922bb4
RL
17634 #include <sys/types.h>
17635 #include <sys/socket.h>
17636
698dcdb6 17637int main() {
51a9faba 17638
3a922bb4
RL
17639 socklen_t len;
17640 getsockname(0, 0, &len);
17641
698dcdb6
VZ
17642; return 0; }
17643EOF
a1622950 17644if { (eval echo configure:17645: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6 17645 rm -rf conftest*
51a9faba 17646 wx_cv_type_getsockname3=socklen_t
afc31813 17647else
698dcdb6
VZ
17648 echo "configure: failed program was:" >&5
17649 cat conftest.$ac_ext >&5
17650 rm -rf conftest*
17651 cat > conftest.$ac_ext <<EOF
a1622950 17652#line 17653 "configure"
afc31813 17653#include "confdefs.h"
51a9faba 17654
3a922bb4
RL
17655 #include <sys/types.h>
17656 #include <sys/socket.h>
17657
698dcdb6 17658int main() {
51a9faba 17659
3a922bb4
RL
17660 size_t len;
17661 getsockname(0, 0, &len);
17662
698dcdb6
VZ
17663; return 0; }
17664EOF
a1622950 17665if { (eval echo configure:17666: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6 17666 rm -rf conftest*
51a9faba 17667 wx_cv_type_getsockname3=size_t
afc31813 17668else
698dcdb6
VZ
17669 echo "configure: failed program was:" >&5
17670 cat conftest.$ac_ext >&5
17671 rm -rf conftest*
17672 cat > conftest.$ac_ext <<EOF
a1622950 17673#line 17674 "configure"
afc31813 17674#include "confdefs.h"
51a9faba 17675
3a922bb4
RL
17676 #include <sys/types.h>
17677 #include <sys/socket.h>
17678
698dcdb6 17679int main() {
51a9faba 17680
3a922bb4
RL
17681 int len;
17682 getsockname(0, 0, &len);
17683
698dcdb6
VZ
17684; return 0; }
17685EOF
a1622950 17686if { (eval echo configure:17687: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6 17687 rm -rf conftest*
51a9faba 17688 wx_cv_type_getsockname3=int
afc31813 17689else
698dcdb6
VZ
17690 echo "configure: failed program was:" >&5
17691 cat conftest.$ac_ext >&5
17692 rm -rf conftest*
17693 wx_cv_type_getsockname3=unknown
3a922bb4 17694
afc31813 17695fi
698dcdb6 17696rm -f conftest*
3a922bb4 17697
afc31813 17698fi
698dcdb6 17699rm -f conftest*
3a922bb4 17700
afc31813 17701fi
698dcdb6 17702rm -f conftest*
51a9faba 17703
3a922bb4 17704 ac_ext=c
698dcdb6 17705# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
afc31813 17706ac_cpp='$CPP $CPPFLAGS'
698dcdb6
VZ
17707ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17708ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17709cross_compiling=$ac_cv_prog_cc_cross
afc31813 17710
3a922bb4 17711
51a9faba 17712fi
698dcdb6
VZ
17713
17714echo "$ac_t""$wx_cv_type_getsockname3" 1>&6
51a9faba 17715
3a922bb4
RL
17716 if test "$wx_cv_type_getsockname3" = "unknown"; then
17717 wxUSE_SOCKETS=no
17718 echo "configure: warning: Couldn't find socklen_t synonym for this system" 1>&2
17719 else
17720 cat >> confdefs.h <<EOF
51a9faba
VZ
17721#define SOCKLEN_T $wx_cv_type_getsockname3
17722EOF
17723
3a922bb4 17724 fi
51a9faba
VZ
17725 fi
17726fi
afc31813 17727
51a9faba 17728if test "$wxUSE_SOCKETS" = "yes" ; then
698dcdb6 17729 cat >> confdefs.h <<\EOF
afc31813
VZ
17730#define wxUSE_SOCKETS 1
17731EOF
17732
70f7a477 17733 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets"
afc31813
VZ
17734fi
17735
698dcdb6 17736
dc3d889d
VZ
17737if test "$wxUSE_GUI" = "yes"; then
17738
156b2523
GD
17739 if test "$TOOLKIT" = "MAC"; then
17740 echo "configure: warning: Joystick not yet supported under Mac OS X... disabled" 1>&2
17741 wxUSE_JOYSTICK=no
17742 fi
17743 if test "$TOOLKIT" = "MOTIF"; then
17744 echo "configure: warning: Joystick not yet supported under Motif... disabled" 1>&2
17745 wxUSE_JOYSTICK=no
17746 fi
17747
3a922bb4
RL
17748 if test "$TOOLKIT" != "MSW"; then
17749 if test "$wxUSE_JOYSTICK" = "yes"; then
17750 for ac_hdr in linux/joystick.h
10f2d63a 17751do
698dcdb6
VZ
17752ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
17753echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
a1622950 17754echo "configure:17755: checking for $ac_hdr" >&5
698dcdb6
VZ
17755if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
17756 echo $ac_n "(cached) $ac_c" 1>&6
17757else
17758 cat > conftest.$ac_ext <<EOF
a1622950 17759#line 17760 "configure"
10f2d63a 17760#include "confdefs.h"
698dcdb6
VZ
17761#include <$ac_hdr>
17762EOF
17763ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
a1622950 17764{ (eval echo configure:17765: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
17765ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
17766if test -z "$ac_err"; then
17767 rm -rf conftest*
17768 eval "ac_cv_header_$ac_safe=yes"
10f2d63a 17769else
698dcdb6
VZ
17770 echo "$ac_err" >&5
17771 echo "configure: failed program was:" >&5
10f2d63a 17772 cat conftest.$ac_ext >&5
698dcdb6
VZ
17773 rm -rf conftest*
17774 eval "ac_cv_header_$ac_safe=no"
10f2d63a 17775fi
698dcdb6 17776rm -f conftest*
10f2d63a 17777fi
698dcdb6
VZ
17778if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
17779 echo "$ac_t""yes" 1>&6
17780 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
17781 cat >> confdefs.h <<EOF
17782#define $ac_tr_hdr 1
10f2d63a 17783EOF
698dcdb6
VZ
17784
17785else
17786 echo "$ac_t""no" 1>&6
10f2d63a
VZ
17787fi
17788done
17789
3a922bb4
RL
17790 if test "$ac_cv_header_linux_joystick_h" != "yes"; then
17791 wxUSE_JOYSTICK=no
156b2523 17792 echo "configure: warning: Joystick not supported by this system... disabled" 1>&2
3a922bb4
RL
17793 fi
17794 fi
17795 fi
b089607b 17796
3a922bb4
RL
17797 if test "$wxUSE_JOYSTICK" = "yes"; then
17798 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17799#define wxUSE_JOYSTICK 1
17800EOF
17801
3a922bb4
RL
17802 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest"
17803 fi
dc3d889d
VZ
17804fi
17805
698dcdb6 17806
b089607b
VZ
17807if test "$TOOLKIT" != "MSW"; then
17808
3a922bb4
RL
17809 HAVE_DL_FUNCS=0
17810 HAVE_SHL_FUNCS=0
0b9ab0bd 17811 if test "$wxUSE_DYNAMIC_LOADER" = "yes" -o "$wxUSE_DYNLIB_CLASS" = "yes" ; then
3a922bb4
RL
17812 if test "$USE_DARWIN" = 1; then
17813 HAVE_DL_FUNCS=1
17814 else
17815 for ac_func in dlopen
10f2d63a 17816do
698dcdb6 17817echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
a1622950 17818echo "configure:17819: checking for $ac_func" >&5
698dcdb6
VZ
17819if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17820 echo $ac_n "(cached) $ac_c" 1>&6
17821else
17822 cat > conftest.$ac_ext <<EOF
a1622950 17823#line 17824 "configure"
10f2d63a
VZ
17824#include "confdefs.h"
17825/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 17826 which can conflict with char $ac_func(); below. */
10f2d63a
VZ
17827#include <assert.h>
17828/* Override any gcc2 internal prototype to avoid an error. */
17829/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
17830 builtin and then its argument prototype would still apply. */
17831char $ac_func();
17832
17833int main() {
10f2d63a
VZ
17834
17835/* The GNU C library defines this for functions which it implements
17836 to always fail with ENOSYS. Some functions are actually named
17837 something starting with __ and the normal name is an alias. */
17838#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17839choke me
17840#else
698dcdb6 17841$ac_func();
10f2d63a
VZ
17842#endif
17843
698dcdb6
VZ
17844; return 0; }
17845EOF
a1622950 17846if { (eval echo configure:17847: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
17847 rm -rf conftest*
17848 eval "ac_cv_func_$ac_func=yes"
17849else
17850 echo "configure: failed program was:" >&5
17851 cat conftest.$ac_ext >&5
17852 rm -rf conftest*
17853 eval "ac_cv_func_$ac_func=no"
17854fi
17855rm -f conftest*
17856fi
17857
17858if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17859 echo "$ac_t""yes" 1>&6
17860 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17861 cat >> confdefs.h <<EOF
17862#define $ac_tr_func 1
17863EOF
17864
3a922bb4 17865 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17866#define HAVE_DLOPEN 1
17867EOF
17868
3a922bb4
RL
17869 HAVE_DL_FUNCS=1
17870
10f2d63a 17871else
698dcdb6
VZ
17872 echo "$ac_t""no" 1>&6
17873echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
a1622950 17874echo "configure:17875: checking for dlopen in -ldl" >&5
698dcdb6
VZ
17875ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
17876if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
17877 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 17878else
698dcdb6 17879 ac_save_LIBS="$LIBS"
10f2d63a 17880LIBS="-ldl $LIBS"
698dcdb6 17881cat > conftest.$ac_ext <<EOF
a1622950 17882#line 17883 "configure"
10f2d63a
VZ
17883#include "confdefs.h"
17884/* Override any gcc2 internal prototype to avoid an error. */
17885/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
17886 builtin and then its argument prototype would still apply. */
17887char dlopen();
17888
17889int main() {
17890dlopen()
17891; return 0; }
17892EOF
a1622950 17893if { (eval echo configure:17894: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
17894 rm -rf conftest*
17895 eval "ac_cv_lib_$ac_lib_var=yes"
17896else
17897 echo "configure: failed program was:" >&5
17898 cat conftest.$ac_ext >&5
17899 rm -rf conftest*
17900 eval "ac_cv_lib_$ac_lib_var=no"
17901fi
17902rm -f conftest*
17903LIBS="$ac_save_LIBS"
17904
17905fi
17906if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
17907 echo "$ac_t""yes" 1>&6
17908
3a922bb4 17909 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17910#define HAVE_DLOPEN 1
17911EOF
17912
3a922bb4 17913 HAVE_DL_FUNCS=1
3d63bc3a 17914 DL_LINK=" -ldl$DL_LINK"
3a922bb4 17915
10f2d63a 17916else
698dcdb6 17917 echo "$ac_t""no" 1>&6
10f2d63a 17918
3a922bb4 17919 for ac_func in shl_load
10f2d63a 17920do
698dcdb6 17921echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
a1622950 17922echo "configure:17923: checking for $ac_func" >&5
698dcdb6
VZ
17923if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17924 echo $ac_n "(cached) $ac_c" 1>&6
17925else
17926 cat > conftest.$ac_ext <<EOF
a1622950 17927#line 17928 "configure"
10f2d63a
VZ
17928#include "confdefs.h"
17929/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 17930 which can conflict with char $ac_func(); below. */
10f2d63a
VZ
17931#include <assert.h>
17932/* Override any gcc2 internal prototype to avoid an error. */
17933/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
17934 builtin and then its argument prototype would still apply. */
17935char $ac_func();
17936
17937int main() {
10f2d63a
VZ
17938
17939/* The GNU C library defines this for functions which it implements
17940 to always fail with ENOSYS. Some functions are actually named
17941 something starting with __ and the normal name is an alias. */
17942#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17943choke me
17944#else
698dcdb6 17945$ac_func();
10f2d63a
VZ
17946#endif
17947
698dcdb6
VZ
17948; return 0; }
17949EOF
a1622950 17950if { (eval echo configure:17951: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
17951 rm -rf conftest*
17952 eval "ac_cv_func_$ac_func=yes"
17953else
17954 echo "configure: failed program was:" >&5
17955 cat conftest.$ac_ext >&5
17956 rm -rf conftest*
17957 eval "ac_cv_func_$ac_func=no"
17958fi
17959rm -f conftest*
17960fi
17961
17962if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17963 echo "$ac_t""yes" 1>&6
17964 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17965 cat >> confdefs.h <<EOF
17966#define $ac_tr_func 1
17967EOF
17968
3a922bb4 17969 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17970#define HAVE_SHL_LOAD 1
17971EOF
17972
3a922bb4
RL
17973 HAVE_SHL_FUNCS=1
17974
10f2d63a 17975else
698dcdb6
VZ
17976 echo "$ac_t""no" 1>&6
17977echo $ac_n "checking for dld in -lshl_load""... $ac_c" 1>&6
a1622950 17978echo "configure:17979: checking for dld in -lshl_load" >&5
698dcdb6
VZ
17979ac_lib_var=`echo shl_load'_'dld | sed 'y%./+-%__p_%'`
17980if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
17981 echo $ac_n "(cached) $ac_c" 1>&6
f6bcfd97 17982else
698dcdb6 17983 ac_save_LIBS="$LIBS"
f6bcfd97 17984LIBS="-lshl_load $LIBS"
698dcdb6 17985cat > conftest.$ac_ext <<EOF
a1622950 17986#line 17987 "configure"
f6bcfd97
BP
17987#include "confdefs.h"
17988/* Override any gcc2 internal prototype to avoid an error. */
17989/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
17990 builtin and then its argument prototype would still apply. */
17991char dld();
17992
17993int main() {
17994dld()
17995; return 0; }
17996EOF
a1622950 17997if { (eval echo configure:17998: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
17998 rm -rf conftest*
17999 eval "ac_cv_lib_$ac_lib_var=yes"
18000else
18001 echo "configure: failed program was:" >&5
18002 cat conftest.$ac_ext >&5
18003 rm -rf conftest*
18004 eval "ac_cv_lib_$ac_lib_var=no"
18005fi
18006rm -f conftest*
18007LIBS="$ac_save_LIBS"
f6bcfd97 18008
698dcdb6
VZ
18009fi
18010if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
18011 echo "$ac_t""yes" 1>&6
18012
3a922bb4 18013 HAVE_SHL_FUNCS=1
3d63bc3a 18014 DL_LINK=" -ldld$DL_LINK"
3a922bb4 18015
698dcdb6
VZ
18016else
18017 echo "$ac_t""no" 1>&6
f6bcfd97
BP
18018fi
18019
3a922bb4 18020
10f2d63a
VZ
18021fi
18022done
18023
3a922bb4 18024
10f2d63a
VZ
18025fi
18026
3a922bb4 18027
10f2d63a
VZ
18028fi
18029done
18030
1e487827 18031
3a922bb4
RL
18032 if test "$HAVE_DL_FUNCS" = 1; then
18033 for ac_func in dlerror
f6bcfd97 18034do
698dcdb6 18035echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
a1622950 18036echo "configure:18037: checking for $ac_func" >&5
698dcdb6
VZ
18037if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18038 echo $ac_n "(cached) $ac_c" 1>&6
18039else
18040 cat > conftest.$ac_ext <<EOF
a1622950 18041#line 18042 "configure"
f6bcfd97
BP
18042#include "confdefs.h"
18043/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 18044 which can conflict with char $ac_func(); below. */
f6bcfd97
BP
18045#include <assert.h>
18046/* Override any gcc2 internal prototype to avoid an error. */
18047/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
18048 builtin and then its argument prototype would still apply. */
18049char $ac_func();
18050
18051int main() {
f6bcfd97
BP
18052
18053/* The GNU C library defines this for functions which it implements
18054 to always fail with ENOSYS. Some functions are actually named
18055 something starting with __ and the normal name is an alias. */
18056#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18057choke me
18058#else
698dcdb6 18059$ac_func();
f6bcfd97
BP
18060#endif
18061
698dcdb6
VZ
18062; return 0; }
18063EOF
a1622950 18064if { (eval echo configure:18065: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
18065 rm -rf conftest*
18066 eval "ac_cv_func_$ac_func=yes"
18067else
18068 echo "configure: failed program was:" >&5
18069 cat conftest.$ac_ext >&5
18070 rm -rf conftest*
18071 eval "ac_cv_func_$ac_func=no"
18072fi
18073rm -f conftest*
18074fi
18075
18076if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18077 echo "$ac_t""yes" 1>&6
18078 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18079 cat >> confdefs.h <<EOF
18080#define $ac_tr_func 1
18081EOF
18082 cat >> confdefs.h <<\EOF
f6bcfd97
BP
18083#define HAVE_DLERROR 1
18084EOF
18085
18086else
698dcdb6
VZ
18087 echo "$ac_t""no" 1>&6
18088echo $ac_n "checking for dlerror in -ldl""... $ac_c" 1>&6
a1622950 18089echo "configure:18090: checking for dlerror in -ldl" >&5
698dcdb6
VZ
18090ac_lib_var=`echo dl'_'dlerror | sed 'y%./+-%__p_%'`
18091if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
18092 echo $ac_n "(cached) $ac_c" 1>&6
f6bcfd97 18093else
698dcdb6 18094 ac_save_LIBS="$LIBS"
f6bcfd97 18095LIBS="-ldl $LIBS"
698dcdb6 18096cat > conftest.$ac_ext <<EOF
a1622950 18097#line 18098 "configure"
f6bcfd97
BP
18098#include "confdefs.h"
18099/* Override any gcc2 internal prototype to avoid an error. */
18100/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
18101 builtin and then its argument prototype would still apply. */
18102char dlerror();
18103
18104int main() {
18105dlerror()
18106; return 0; }
18107EOF
a1622950 18108if { (eval echo configure:18109: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
18109 rm -rf conftest*
18110 eval "ac_cv_lib_$ac_lib_var=yes"
18111else
18112 echo "configure: failed program was:" >&5
18113 cat conftest.$ac_ext >&5
18114 rm -rf conftest*
18115 eval "ac_cv_lib_$ac_lib_var=no"
18116fi
18117rm -f conftest*
18118LIBS="$ac_save_LIBS"
18119
18120fi
18121if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
18122 echo "$ac_t""yes" 1>&6
18123 cat >> confdefs.h <<\EOF
f6bcfd97
BP
18124#define HAVE_DLERROR 1
18125EOF
18126
698dcdb6
VZ
18127else
18128 echo "$ac_t""no" 1>&6
f6bcfd97
BP
18129fi
18130
18131fi
18132done
18133
3a922bb4
RL
18134 fi
18135 fi
f6bcfd97 18136
3a922bb4
RL
18137 if test "$HAVE_DL_FUNCS" = 0; then
18138 if test "$HAVE_SHL_FUNCS" = 0; then
18139 if test "$USE_UNIX" = 1; then
18140 echo "configure: warning: Missing dynamic loading support, several features will be disabled" 1>&2
0b9ab0bd 18141 wxUSE_DYNAMIC_LOADER=no
3a922bb4
RL
18142 wxUSE_DYNLIB_CLASS=no
18143 else
18144 echo "configure: warning: Assuming wxLibrary class works on this platform" 1>&2
18145 fi
18146 fi
10f2d63a
VZ
18147 fi
18148 fi
18149fi
18150
0b9ab0bd
RL
18151if test "$wxUSE_DYNAMIC_LOADER" = "yes" ; then
18152 cat >> confdefs.h <<\EOF
18153#define wxUSE_DYNAMIC_LOADER 1
18154EOF
18155
18156elif test "$wxUSE_DYNLIB_CLASS" = "yes" ; then
698dcdb6 18157 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18158#define wxUSE_DYNLIB_CLASS 1
18159EOF
18160
18161fi
18162
698dcdb6 18163
1e6feb95
VZ
18164if test "$wxUSE_FONTMAP" = "yes" ; then
18165 cat >> confdefs.h <<\EOF
18166#define wxUSE_FONTMAP 1
18167EOF
18168
18169fi
18170
10f2d63a 18171if test "$wxUSE_UNICODE" = "yes" ; then
698dcdb6 18172 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18173#define wxUSE_UNICODE 1
18174EOF
18175
a72a4bfa
VS
18176
18177 if test "$wxUSE_MSW" = 1 -a "$wxUSE_UNICODE_MSLU" = "yes"; then
18178 echo $ac_n "checking for main in -lunicows""... $ac_c" 1>&6
a1622950 18179echo "configure:18180: checking for main in -lunicows" >&5
a72a4bfa
VS
18180ac_lib_var=`echo unicows'_'main | sed 'y%./+-%__p_%'`
18181if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
18182 echo $ac_n "(cached) $ac_c" 1>&6
18183else
18184 ac_save_LIBS="$LIBS"
18185LIBS="-lunicows $LIBS"
18186cat > conftest.$ac_ext <<EOF
a1622950 18187#line 18188 "configure"
a72a4bfa
VS
18188#include "confdefs.h"
18189
18190int main() {
18191main()
18192; return 0; }
18193EOF
a1622950 18194if { (eval echo configure:18195: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a72a4bfa
VS
18195 rm -rf conftest*
18196 eval "ac_cv_lib_$ac_lib_var=yes"
18197else
18198 echo "configure: failed program was:" >&5
18199 cat conftest.$ac_ext >&5
18200 rm -rf conftest*
18201 eval "ac_cv_lib_$ac_lib_var=no"
18202fi
18203rm -f conftest*
18204LIBS="$ac_save_LIBS"
18205
18206fi
18207if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
18208 echo "$ac_t""yes" 1>&6
18209
18210 cat >> confdefs.h <<\EOF
18211#define wxUSE_UNICODE_MSLU 1
18212EOF
18213
18214
18215else
18216 echo "$ac_t""no" 1>&6
18217
18218 echo "configure: warning: Compiler doesn't support MSLU (libunicows.a), disabled.
18219 Applications will only run on Windows NT/2000/XP!" 1>&2
18220 wxUSE_UNICODE_MSLU=no
18221
18222fi
18223
18224 fi
10f2d63a
VZ
18225fi
18226
10f2d63a 18227if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then
698dcdb6 18228 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18229#define wxUSE_EXPERIMENTAL_PRINTF 1
18230EOF
18231
18232fi
18233
698dcdb6 18234
698dcdb6 18235
10f2d63a
VZ
18236IODBC_C_SRC=""
18237if test "$wxUSE_ODBC" = "yes" ; then
698dcdb6 18238 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18239#define wxUSE_ODBC 1
18240EOF
18241
18242 WXODBCFLAG="-D_IODBC_"
18243 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db"
10f2d63a
VZ
18244fi
18245
698dcdb6 18246
10f2d63a 18247if test "$wxUSE_POSTSCRIPT" = "yes" ; then
698dcdb6 18248 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18249#define wxUSE_POSTSCRIPT 1
18250EOF
18251
18252fi
18253
698dcdb6 18254cat >> confdefs.h <<\EOF
10f2d63a
VZ
18255#define wxUSE_AFM_FOR_POSTSCRIPT 1
18256EOF
18257
698dcdb6
VZ
18258
18259cat >> confdefs.h <<\EOF
10f2d63a
VZ
18260#define wxUSE_NORMALIZED_PS_FONTS 1
18261EOF
18262
698dcdb6
VZ
18263
18264
10f2d63a 18265if test "$wxUSE_CONSTRAINTS" = "yes"; then
698dcdb6 18266 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18267#define wxUSE_CONSTRAINTS 1
18268EOF
18269
18270 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout"
18271fi
18272
18273if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
fc26f4ab 18274 if test "$wxUSE_UNIVERSAL" = "yes"; then
156b2523 18275 echo "configure: warning: MDI not yet supported for wxUNIVERSAL... disabled" 1>&2
fc26f4ab
RL
18276 wxUSE_MDI_ARCHITECTURE=no
18277 fi
18278
18279 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
18280 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18281#define wxUSE_MDI_ARCHITECTURE 1
18282EOF
18283
fc26f4ab
RL
18284 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi"
18285 fi
10f2d63a
VZ
18286fi
18287
18288if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then
698dcdb6 18289 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18290#define wxUSE_DOC_VIEW_ARCHITECTURE 1
18291EOF
18292
18293 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview"
18294 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
18295 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi"
18296 fi
18297fi
18298
18299if test "$wxUSE_HELP" = "yes"; then
698dcdb6 18300 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18301#define wxUSE_HELP 1
18302EOF
18303
18304 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help"
3379ed37 18305
77e13408 18306 if test "$wxUSE_MSW" = 1; then
031d8228 18307 if test "$wxUSE_MS_HTML_HELP" = "yes"; then
29fd3c0c
VS
18308 ac_safe=`echo "htmlhelp.h" | sed 'y%./+-%__p_%'`
18309echo $ac_n "checking for htmlhelp.h""... $ac_c" 1>&6
a1622950 18310echo "configure:18311: checking for htmlhelp.h" >&5
29fd3c0c
VS
18311if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
18312 echo $ac_n "(cached) $ac_c" 1>&6
18313else
18314 cat > conftest.$ac_ext <<EOF
a1622950 18315#line 18316 "configure"
29fd3c0c
VS
18316#include "confdefs.h"
18317#include <htmlhelp.h>
18318EOF
18319ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
a1622950 18320{ (eval echo configure:18321: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
29fd3c0c
VS
18321ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
18322if test -z "$ac_err"; then
18323 rm -rf conftest*
18324 eval "ac_cv_header_$ac_safe=yes"
18325else
18326 echo "$ac_err" >&5
18327 echo "configure: failed program was:" >&5
18328 cat conftest.$ac_ext >&5
18329 rm -rf conftest*
18330 eval "ac_cv_header_$ac_safe=no"
18331fi
18332rm -f conftest*
18333fi
18334if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
18335 echo "$ac_t""yes" 1>&6
18336
18337 cat >> confdefs.h <<\EOF
18338#define wxUSE_MS_HTML_HELP 1
18339EOF
18340
18341
18342else
18343 echo "$ac_t""no" 1>&6
18344
fc26f4ab 18345 echo "configure: warning: MS HTML Help cannot be used without htmlhelp.h... disabled" 1>&2
29fd3c0c
VS
18346 wxUSE_MS_HTML_HELP=no
18347
18348fi
18349
3e44f09d 18350 fi
3379ed37 18351 fi
031d8228
VS
18352
18353 if test "$wxUSE_WXHTML_HELP" = "yes"; then
18354 if test "$wxUSE_HTML" = "yes"; then
18355 cat >> confdefs.h <<\EOF
18356#define wxUSE_WXHTML_HELP 1
18357EOF
18358
18359 else
18360 echo "configure: warning: Cannot use wxHTML-based help without wxHTML so it won't be compiled" 1>&2
18361 wxUSE_WXHTML_HELP=no
18362 fi
18363 fi
10f2d63a
VZ
18364fi
18365
18366if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
18367 if test "$wxUSE_CONSTRAINTS" != "yes"; then
698dcdb6 18368 echo "configure: warning: Printing support cannot be used without constraints so it won't be compiled without it" 1>&2
10f2d63a 18369 else
698dcdb6 18370 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18371#define wxUSE_PRINTING_ARCHITECTURE 1
18372EOF
18373
18374 fi
18375 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing"
18376fi
18377
18378if test "$wxUSE_PROLOGIO" = "yes" ; then
698dcdb6 18379 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18380#define wxUSE_PROLOGIO 1
18381EOF
18382
18383fi
18384
18385if test "$wxUSE_RESOURCES" = "yes" ; then
3379ed37 18386 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18387#define wxUSE_RESOURCES 1
18388EOF
18389
3379ed37 18390 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS resource"
10f2d63a
VZ
18391fi
18392
18393if test "$wxUSE_X_RESOURCES" = "yes"; then
698dcdb6 18394 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18395#define wxUSE_X_RESOURCES 1
18396EOF
18397
18398fi
18399
698dcdb6 18400
77e13408
RL
18401if test "$wxUSE_MSW" = 1 -a \( "$wxUSE_DATAOBJ" = "yes" \
18402 -o "$wxUSE_CLIPBOARD" = "yes" \
18403 -o "$wxUSE_DRAG_AND_DROP" = "yes" \) ; then
2b9bdf71 18404 for ac_hdr in ole2.h
10f2d63a 18405do
698dcdb6
VZ
18406ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
18407echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
a1622950 18408echo "configure:18409: checking for $ac_hdr" >&5
698dcdb6
VZ
18409if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
18410 echo $ac_n "(cached) $ac_c" 1>&6
18411else
18412 cat > conftest.$ac_ext <<EOF
a1622950 18413#line 18414 "configure"
10f2d63a 18414#include "confdefs.h"
698dcdb6
VZ
18415#include <$ac_hdr>
18416EOF
18417ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
a1622950 18418{ (eval echo configure:18419: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
18419ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
18420if test -z "$ac_err"; then
18421 rm -rf conftest*
18422 eval "ac_cv_header_$ac_safe=yes"
1e487827 18423else
698dcdb6
VZ
18424 echo "$ac_err" >&5
18425 echo "configure: failed program was:" >&5
10f2d63a 18426 cat conftest.$ac_ext >&5
698dcdb6
VZ
18427 rm -rf conftest*
18428 eval "ac_cv_header_$ac_safe=no"
10f2d63a 18429fi
698dcdb6 18430rm -f conftest*
10f2d63a 18431fi
698dcdb6
VZ
18432if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
18433 echo "$ac_t""yes" 1>&6
18434 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
18435 cat >> confdefs.h <<EOF
18436#define $ac_tr_hdr 1
10f2d63a 18437EOF
698dcdb6
VZ
18438
18439else
18440 echo "$ac_t""no" 1>&6
10f2d63a
VZ
18441fi
18442done
18443
698dcdb6 18444
2b9bdf71
VZ
18445 if test "$ac_cv_header_ole2_h" = "yes" ; then
18446 if test "$GCC" = yes ; then
18447 ALL_OBJECTS="$ALL_OBJECTS \$(OLEOBJS)"
2b9bdf71 18448 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fvtable-thunks"
3d63bc3a 18449 LIBS=" -lrpcrt4 -loleaut32 -lole32 -luuid$LIBS"
2b9bdf71 18450 cat >> confdefs.h <<\EOF
4f11a343
VS
18451#define wxUSE_OLE 1
18452EOF
18453
b64f0a5f 18454
2b9bdf71
VZ
18455 fi
18456
18457 cat >> confdefs.h <<\EOF
18458#define wxUSE_DATAOBJ 1
18459EOF
18460
18461 else
18462 echo "configure: warning: Some features disabled because OLE headers not found" 1>&2
18463
18464 wxUSE_CLIPBOARD=no
18465 wxUSE_DRAG_AND_DROP=no
18466 wxUSE_DATAOBJ=no
18467 fi
18468
77e13408 18469 if test "$wxUSE_METAFILE" = "yes"; then
2b9bdf71 18470 cat >> confdefs.h <<\EOF
b64f0a5f
RL
18471#define wxUSE_METAFILE 1
18472EOF
18473
2b9bdf71
VZ
18474
18475 cat >> confdefs.h <<\EOF
b64f0a5f
RL
18476#define wxUSE_ENH_METAFILE 1
18477EOF
18478
2b9bdf71
VZ
18479 fi
18480fi
18481
18482if test "$wxUSE_IPC" = "yes"; then
18483 if test "$wxUSE_SOCKETS" != "yes"; then
156b2523 18484 echo "configure: warning: wxWindows IPC classes require sockets... disabled" 1>&2
2b9bdf71
VZ
18485 fi
18486
18487 cat >> confdefs.h <<\EOF
18488#define wxUSE_IPC 1
18489EOF
18490
18491fi
18492
18493if test "$wxUSE_CLIPBOARD" = "yes"; then
18494 cat >> confdefs.h <<\EOF
18495#define wxUSE_CLIPBOARD 1
18496EOF
18497
673f4220 18498
e33ef661 18499 cat >> confdefs.h <<\EOF
673f4220
VZ
18500#define wxUSE_DATAOBJ 1
18501EOF
18502
2b9bdf71
VZ
18503fi
18504
18505if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then
18506 if test "$wxUSE_GTK" = 1; then
18507 if test "$WXGTK12" != 1; then
156b2523 18508 echo "configure: warning: Drag and drop is only supported under GTK+ 1.2... disabled" 1>&2
10f2d63a
VZ
18509 wxUSE_DRAG_AND_DROP=no
18510 fi
18511 fi
18512
2b9bdf71 18513 if test "$wxUSE_MOTIF" = 1; then
156b2523 18514 echo "configure: warning: Drag and drop not yet supported under Motif... disabled" 1>&2
2b9bdf71
VZ
18515 wxUSE_DRAG_AND_DROP=no
18516 fi
18517
18518 if test "$wxUSE_MAC" = 1; then
156b2523 18519 echo "configure: warning: Drag and drop not yet supported under Mac OS X... disabled" 1>&2
2b9bdf71
VZ
18520 wxUSE_DRAG_AND_DROP=no
18521 fi
18522
10f2d63a 18523 if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
698dcdb6 18524 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18525#define wxUSE_DRAG_AND_DROP 1
18526EOF
18527
18528 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd"
18529 fi
18530
18531fi
18532
18533if test "$wxUSE_SPLINES" = "yes" ; then
698dcdb6 18534 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18535#define wxUSE_SPLINES 1
18536EOF
18537
18538fi
18539
698dcdb6 18540
1e6feb95
VZ
18541USES_CONTROLS=0
18542if test "$wxUSE_CONTROLS" = "yes"; then
18543 USES_CONTROLS=1
18544fi
18545
10f2d63a 18546if test "$wxUSE_ACCEL" = "yes"; then
698dcdb6 18547 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18548#define wxUSE_ACCEL 1
18549EOF
18550
1e6feb95
VZ
18551 USES_CONTROLS=1
18552fi
18553
18554if test "$wxUSE_BUTTON" = "yes"; then
18555 cat >> confdefs.h <<\EOF
18556#define wxUSE_BUTTON 1
18557EOF
18558
18559 USES_CONTROLS=1
18560fi
18561
18562if test "$wxUSE_BMPBUTTON" = "yes"; then
18563 cat >> confdefs.h <<\EOF
18564#define wxUSE_BMPBUTTON 1
18565EOF
18566
18567 USES_CONTROLS=1
18568fi
18569
18570if test "$wxUSE_CALCTRL" = "yes"; then
18571 cat >> confdefs.h <<\EOF
18572#define wxUSE_CALENDARCTRL 1
18573EOF
18574
18575 USES_CONTROLS=1
18576 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar"
10f2d63a
VZ
18577fi
18578
18579if test "$wxUSE_CARET" = "yes"; then
698dcdb6 18580 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18581#define wxUSE_CARET 1
18582EOF
18583
1e6feb95 18584 USES_CONTROLS=1
10f2d63a
VZ
18585 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret"
18586fi
18587
18588if test "$wxUSE_COMBOBOX" = "yes"; then
698dcdb6 18589 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18590#define wxUSE_COMBOBOX 1
18591EOF
18592
1e6feb95 18593 USES_CONTROLS=1
10f2d63a
VZ
18594fi
18595
18596if test "$wxUSE_CHOICE" = "yes"; then
698dcdb6 18597 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18598#define wxUSE_CHOICE 1
18599EOF
18600
1e6feb95 18601 USES_CONTROLS=1
10f2d63a
VZ
18602fi
18603
18604if test "$wxUSE_CHECKBOX" = "yes"; then
698dcdb6 18605 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18606#define wxUSE_CHECKBOX 1
18607EOF
18608
1e6feb95 18609 USES_CONTROLS=1
10f2d63a
VZ
18610fi
18611
18612if test "$wxUSE_CHECKLST" = "yes"; then
698dcdb6 18613 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18614#define wxUSE_CHECKLISTBOX 1
18615EOF
18616
1e6feb95 18617 USES_CONTROLS=1
10f2d63a
VZ
18618 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst"
18619fi
18620
18621if test "$wxUSE_GAUGE" = "yes"; then
698dcdb6 18622 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18623#define wxUSE_GAUGE 1
18624EOF
18625
1e6feb95 18626 USES_CONTROLS=1
10f2d63a
VZ
18627fi
18628
d6a55c4b
VZ
18629if test "$wxUSE_NEW_GRID" = "yes"; then
18630 wxUSE_GRID="yes"
698dcdb6 18631 cat >> confdefs.h <<\EOF
d6a55c4b 18632#define wxUSE_NEW_GRID 1
10f2d63a
VZ
18633EOF
18634
1e6feb95 18635 USES_CONTROLS=1
d6a55c4b 18636 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS newgrid"
10f2d63a
VZ
18637fi
18638
d6a55c4b 18639if test "$wxUSE_GRID" = "yes"; then
698dcdb6 18640 cat >> confdefs.h <<\EOF
d6a55c4b 18641#define wxUSE_GRID 1
10f2d63a
VZ
18642EOF
18643
1e6feb95 18644 USES_CONTROLS=1
d6a55c4b 18645 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid"
10f2d63a
VZ
18646fi
18647
18648if test "$wxUSE_IMAGLIST" = "yes"; then
698dcdb6 18649 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18650#define wxUSE_IMAGLIST 1
18651EOF
18652
18653fi
18654
18655if test "$wxUSE_LISTBOX" = "yes"; then
698dcdb6 18656 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18657#define wxUSE_LISTBOX 1
18658EOF
18659
1e6feb95 18660 USES_CONTROLS=1
10f2d63a
VZ
18661fi
18662
18663if test "$wxUSE_LISTCTRL" = "yes"; then
18664 if test "$wxUSE_IMAGLIST" = "yes"; then
698dcdb6 18665 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18666#define wxUSE_LISTCTRL 1
18667EOF
18668
1e6feb95 18669 USES_CONTROLS=1
10f2d63a
VZ
18670 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl"
18671 else
698dcdb6 18672 echo "configure: warning: wxListCtrl requires wxImageList and won't be compiled without it" 1>&2
10f2d63a
VZ
18673 fi
18674fi
18675
18676if test "$wxUSE_NOTEBOOK" = "yes"; then
698dcdb6 18677 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18678#define wxUSE_NOTEBOOK 1
18679EOF
18680
1e6feb95 18681 USES_CONTROLS=1
10f2d63a
VZ
18682 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook"
18683fi
18684
24176f2c
GD
18685if test "$wxUSE_PROPSHEET" = "yes"; then
18686 cat >> confdefs.h <<\EOF
18687#define wxUSE_PROPSHEET 1
18688EOF
18689
18690 USES_CONTROLS=1
18691 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS proplist"
18692fi
18693
10f2d63a 18694if test "$wxUSE_RADIOBOX" = "yes"; then
698dcdb6 18695 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18696#define wxUSE_RADIOBOX 1
18697EOF
18698
1e6feb95 18699 USES_CONTROLS=1
10f2d63a
VZ
18700fi
18701
18702if test "$wxUSE_RADIOBTN" = "yes"; then
698dcdb6 18703 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18704#define wxUSE_RADIOBTN 1
18705EOF
18706
1e6feb95 18707 USES_CONTROLS=1
10f2d63a
VZ
18708fi
18709
18710if test "$wxUSE_SASH" = "yes"; then
698dcdb6 18711 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18712#define wxUSE_SASH 1
18713EOF
18714
18715 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest"
18716fi
18717
18718if test "$wxUSE_SCROLLBAR" = "yes"; then
698dcdb6 18719 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18720#define wxUSE_SCROLLBAR 1
18721EOF
18722
1e6feb95 18723 USES_CONTROLS=1
741a9306 18724 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub"
10f2d63a
VZ
18725fi
18726
18727if test "$wxUSE_SLIDER" = "yes"; then
698dcdb6 18728 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18729#define wxUSE_SLIDER 1
18730EOF
18731
1e6feb95 18732 USES_CONTROLS=1
10f2d63a
VZ
18733fi
18734
18735if test "$wxUSE_SPINBTN" = "yes"; then
698dcdb6 18736 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18737#define wxUSE_SPINBTN 1
18738EOF
18739
1e6feb95 18740 USES_CONTROLS=1
10f2d63a
VZ
18741fi
18742
56cfaa52 18743if test "$wxUSE_SPINCTRL" = "yes"; then
698dcdb6 18744 cat >> confdefs.h <<\EOF
56cfaa52
RR
18745#define wxUSE_SPINCTRL 1
18746EOF
18747
1e6feb95 18748 USES_CONTROLS=1
56cfaa52
RR
18749fi
18750
10f2d63a 18751if test "$wxUSE_SPLITTER" = "yes"; then
698dcdb6 18752 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18753#define wxUSE_SPLITTER 1
18754EOF
18755
18756 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter"
18757fi
18758
18759if test "$wxUSE_STATBMP" = "yes"; then
698dcdb6 18760 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18761#define wxUSE_STATBMP 1
18762EOF
18763
1e6feb95 18764 USES_CONTROLS=1
10f2d63a
VZ
18765fi
18766
18767if test "$wxUSE_STATBOX" = "yes"; then
698dcdb6 18768 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18769#define wxUSE_STATBOX 1
18770EOF
18771
1e6feb95
VZ
18772 USES_CONTROLS=1
18773fi
18774
18775if test "$wxUSE_STATTEXT" = "yes"; then
18776 cat >> confdefs.h <<\EOF
18777#define wxUSE_STATTEXT 1
18778EOF
18779
18780 USES_CONTROLS=1
10f2d63a
VZ
18781fi
18782
18783if test "$wxUSE_STATLINE" = "yes"; then
18784 if test "$wxUSE_WINE" = 1 ; then
698dcdb6 18785 echo "configure: warning: wxStaticLine is not supported under WINE" 1>&2
10f2d63a 18786 else
698dcdb6 18787 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18788#define wxUSE_STATLINE 1
18789EOF
18790
1e6feb95 18791 USES_CONTROLS=1
10f2d63a
VZ
18792 fi
18793fi
18794
18795if test "$wxUSE_STATUSBAR" = "yes"; then
698dcdb6 18796 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18797#define wxUSE_STATUSBAR 1
18798EOF
18799
1e6feb95 18800 USES_CONTROLS=1
698dcdb6 18801
2286341c 18802 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar"
10f2d63a
VZ
18803fi
18804
18805if test "$wxUSE_TABDIALOG" = "yes"; then
698dcdb6 18806 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18807#define wxUSE_TAB_DIALOG 1
18808EOF
18809
18810 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS tab"
18811fi
18812
1e6feb95
VZ
18813if test "$wxUSE_TEXTCTRL" = "yes"; then
18814 cat >> confdefs.h <<\EOF
18815#define wxUSE_TEXTCTRL 1
18816EOF
18817
18818 USES_CONTROLS=1
18819 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text"
18820fi
18821
1db8dc4a 18822if test "$wxUSE_TOGGLEBTN" = "yes"; then
156b2523
GD
18823 if test "$wxUSE_MAC" = 1; then
18824 echo "configure: warning: Toggle button not yet supported under Mac OS X... disabled" 1>&2
18825 wxUSE_TOGGLEBTN=no
18826 fi
18827 if test "$wxUSE_UNIVERSAL" = "yes"; then
18828 echo "configure: warning: Toggle button not yet supported under wxUNIVERSAL... disabled" 1>&2
a45d7ab7
GD
18829 wxUSE_TOGGLEBTN=no
18830 fi
18831
18832 if test "$wxUSE_TOGGLEBTN" = "yes"; then
18833 cat >> confdefs.h <<\EOF
1db8dc4a
VZ
18834#define wxUSE_TOGGLEBTN 1
18835EOF
18836
1e6feb95 18837 USES_CONTROLS=1
a45d7ab7 18838 fi
1db8dc4a
VZ
18839fi
18840
360d6699 18841if test "$wxUSE_TOOLBAR_SIMPLE" = "yes"; then
698dcdb6 18842 cat >> confdefs.h <<\EOF
360d6699
VZ
18843#define wxUSE_TOOLBAR_SIMPLE 1
18844EOF
18845
18846 wxUSE_TOOLBAR="yes"
1e6feb95 18847 USES_CONTROLS=1
360d6699
VZ
18848fi
18849
10f2d63a 18850if test "$wxUSE_TOOLBAR" = "yes"; then
698dcdb6 18851 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18852#define wxUSE_TOOLBAR 1
18853EOF
18854
1e6feb95 18855 USES_CONTROLS=1
698dcdb6 18856
360d6699
VZ
18857 if test "$wxUSE_TOOLBAR_SIMPLE" != "yes"; then
18858 wxUSE_TOOLBAR_NATIVE="yes"
18859 fi
18860
1e6feb95
VZ
18861 if test "$wxUSE_TOOLBAR_NATIVE" = "yes"; then
18862 cat >> confdefs.h <<\EOF
360d6699
VZ
18863#define wxUSE_TOOLBAR_NATIVE 1
18864EOF
18865
1e6feb95
VZ
18866 USES_CONTROLS=1
18867 fi
18868
18869 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar"
360d6699
VZ
18870fi
18871
10f2d63a
VZ
18872if test "$wxUSE_TOOLTIPS" = "yes"; then
18873 if test "$wxUSE_MOTIF" = 1; then
156b2523 18874 echo "configure: warning: wxTooltip not supported yet under Motif... disabled" 1>&2
10f2d63a
VZ
18875 else
18876 if test "$wxUSE_WINE" = 1; then
156b2523 18877 echo "configure: warning: wxTooltip not supported under WINE... disabled" 1>&2
10f2d63a 18878 else
69d27ff7 18879 if test "$wxUSE_UNIVERSAL" = "yes"; then
156b2523 18880 echo "configure: warning: wxTooltip not supported yet in wxUNIVERSAL... disabled" 1>&2
69d27ff7
MB
18881 else
18882 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18883#define wxUSE_TOOLTIPS 1
18884EOF
18885
69d27ff7 18886 fi
10f2d63a
VZ
18887 fi
18888 fi
18889fi
18890
18891if test "$wxUSE_TREECTRL" = "yes"; then
18892 if test "$wxUSE_IMAGLIST" = "yes"; then
698dcdb6 18893 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18894#define wxUSE_TREECTRL 1
18895EOF
18896
1e6feb95 18897 USES_CONTROLS=1
10f2d63a
VZ
18898 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl"
18899 else
698dcdb6 18900 echo "configure: warning: wxTreeCtrl requires wxImageList and won't be compiled without it" 1>&2
10f2d63a
VZ
18901 fi
18902fi
18903
9f41d601 18904if test "$wxUSE_POPUPWIN" = "yes"; then
6abe4b65 18905 if test "$wxUSE_MAC" = 1; then
156b2523 18906 echo "configure: warning: Popup window not yet supported under Mac OS X... disabled" 1>&2
6abe4b65 18907 else
485cf710
VZ
18908 if test "$wxUSE_MOTIF" = 1; then
18909 echo "configure: warning: wxPopupWindow not yet supported under Motif... disabled" 1>&2
18910 else
18911 cat >> confdefs.h <<\EOF
9f41d601
RR
18912#define wxUSE_POPUPWIN 1
18913EOF
18914
9926e4a4 18915
485cf710
VZ
18916 USES_CONTROLS=1
18917 fi
6abe4b65 18918 fi
9f41d601
RR
18919fi
18920
dd964dcc
VZ
18921if test "$wxUSE_TIPWINDOW" = "yes"; then
18922 cat >> confdefs.h <<\EOF
18923#define wxUSE_TIPWINDOW 1
18924EOF
18925
18926fi
18927
1e6feb95
VZ
18928if test "$USES_CONTROLS" = 1; then
18929 cat >> confdefs.h <<\EOF
18930#define wxUSE_CONTROLS 1
10f2d63a
VZ
18931EOF
18932
10f2d63a
VZ
18933fi
18934
1e6feb95 18935
24176f2c
GD
18936if test "$wxUSE_TREELAYOUT" = "yes"; then
18937 cat >> confdefs.h <<\EOF
18938#define wxUSE_TREELAYOUT 1
18939EOF
18940
18941 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treelay"
18942fi
1e6feb95 18943
24fd6d87
VZ
18944if test "$wxUSE_DRAGIMAGE" = "yes"; then
18945 cat >> confdefs.h <<\EOF
18946#define wxUSE_DRAGIMAGE 1
18947EOF
18948
18949 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag"
18950fi
18951
1e6feb95 18952if test "$wxUSE_MENUS" = "yes"; then
698dcdb6 18953 cat >> confdefs.h <<\EOF
1e6feb95 18954#define wxUSE_MENUS 1
10f2d63a
VZ
18955EOF
18956
1e6feb95 18957 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu"
10f2d63a
VZ
18958fi
18959
1e6feb95
VZ
18960if test "$wxUSE_METAFILE" = "yes"; then
18961 cat >> confdefs.h <<\EOF
18962#define wxUSE_METAFILE 1
10f2d63a
VZ
18963EOF
18964
10f2d63a
VZ
18965fi
18966
1e6feb95
VZ
18967if test "$wxUSE_MIMETYPE" = "yes"; then
18968 cat >> confdefs.h <<\EOF
18969#define wxUSE_MIMETYPE 1
10f2d63a
VZ
18970EOF
18971
10f2d63a
VZ
18972fi
18973
3e44f09d
VZ
18974if test "$wxUSE_SYSTEM_OPTIONS" = "yes"; then
18975 cat >> confdefs.h <<\EOF
18976#define wxUSE_SYSTEM_OPTIONS 1
18977EOF
18978
18979fi
18980
10f2d63a 18981if test "$wxUSE_MINIFRAME" = "yes"; then
698dcdb6 18982 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18983#define wxUSE_MINIFRAME 1
18984EOF
18985
18986 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram"
18987fi
18988
18989if test "$wxUSE_HTML" = "yes"; then
698dcdb6 18990 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18991#define wxUSE_HTML 1
18992EOF
18993
18994 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html"
10f2d63a
VZ
18995fi
18996
18997if test "$wxUSE_VALIDATORS" = "yes"; then
698dcdb6 18998 cat >> confdefs.h <<\EOF
1e487827
VS
18999#define wxUSE_VALIDATORS 1
19000EOF
703e0a69 19001
698dcdb6
VZ
19002 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate"
19003fi
19004
edae8572
VZ
19005if test "$wxUSE_PALETTE" = "yes" ; then
19006 cat >> confdefs.h <<\EOF
19007#define wxUSE_PALETTE 1
19008EOF
19009
19010fi
19011
698dcdb6
VZ
19012if test "$wxUSE_IMAGE" = "yes" ; then
19013 cat >> confdefs.h <<\EOF
19014#define wxUSE_IMAGE 1
19015EOF
19016
19017fi
19018
19019if test "$wxUSE_GIF" = "yes" ; then
19020 cat >> confdefs.h <<\EOF
19021#define wxUSE_GIF 1
19022EOF
19023
19024fi
19025
19026if test "$wxUSE_PCX" = "yes" ; then
19027 cat >> confdefs.h <<\EOF
19028#define wxUSE_PCX 1
19029EOF
19030
19031fi
19032
19033if test "$wxUSE_PNM" = "yes" ; then
19034 cat >> confdefs.h <<\EOF
19035#define wxUSE_PNM 1
19036EOF
19037
19038fi
19039
19040if test "$wxUSE_XPM" = "yes" ; then
19041 cat >> confdefs.h <<\EOF
19042#define wxUSE_XPM 1
19043EOF
19044
19045fi
19046
a72a4bfa
VS
19047if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_MSLU" = "yes" ; then
19048 LIBS=" -lunicows $LIBS"
19049fi
19050
698dcdb6 19051
1e6feb95
VZ
19052if test "$wxUSE_CHOICEDLG" = "yes"; then
19053 cat >> confdefs.h <<\EOF
19054#define wxUSE_CHOICEDLG 1
19055EOF
19056
19057fi
19058
19059if test "$wxUSE_COLOURDLG" = "yes"; then
19060 cat >> confdefs.h <<\EOF
19061#define wxUSE_COLOURDLG 1
19062EOF
19063
19064fi
19065
19066if test "$wxUSE_FILEDLG" = "yes"; then
19067 cat >> confdefs.h <<\EOF
19068#define wxUSE_FILEDLG 1
19069EOF
19070
19071fi
19072
8db37e06
VZ
19073if test "$wxUSE_FINDREPLDLG" = "yes"; then
19074 cat >> confdefs.h <<\EOF
19075#define wxUSE_FINDREPLDLG 1
19076EOF
19077
19078fi
19079
1e6feb95
VZ
19080if test "$wxUSE_FONTDLG" = "yes"; then
19081 cat >> confdefs.h <<\EOF
19082#define wxUSE_FONTDLG 1
19083EOF
19084
19085fi
19086
19087if test "$wxUSE_DIRDLG" = "yes"; then
19088 if test "$wxUSE_CONSTRAINTS" != "yes"; then
19089 echo "configure: warning: wxDirDialog requires constraints so it won't be compiled without them" 1>&2
19090 else
19091 if test "$wxUSE_TREECTRL" != "yes"; then
19092 echo "configure: warning: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" 1>&2
19093 else
19094 cat >> confdefs.h <<\EOF
19095#define wxUSE_DIRDLG 1
19096EOF
19097
19098 fi
19099 fi
19100fi
19101
19102if test "$wxUSE_MSGDLG" = "yes"; then
19103 cat >> confdefs.h <<\EOF
19104#define wxUSE_MSGDLG 1
19105EOF
19106
19107fi
19108
19109if test "$wxUSE_NUMBERDLG" = "yes"; then
19110 cat >> confdefs.h <<\EOF
19111#define wxUSE_NUMBERDLG 1
19112EOF
19113
19114fi
19115
19116if test "$wxUSE_PROGRESSDLG" = "yes"; then
19117 if test "$wxUSE_CONSTRAINTS" != "yes"; then
19118 echo "configure: warning: wxProgressDialog requires constraints so it won't be compiled without them" 1>&2
19119 else
19120 cat >> confdefs.h <<\EOF
19121#define wxUSE_PROGRESSDLG 1
19122EOF
19123
19124 fi
19125fi
19126
cbca9943
VZ
19127if test "$wxUSE_SPLASH" = "yes"; then
19128 cat >> confdefs.h <<\EOF
19129#define wxUSE_SPLASH 1
19130EOF
19131
19132fi
19133
1e6feb95
VZ
19134if test "$wxUSE_STARTUP_TIPS" = "yes"; then
19135 if test "$wxUSE_CONSTRAINTS" != "yes"; then
19136 echo "configure: warning: Startup tips requires constraints and won't be compiled without them" 1>&2
19137 else
19138 cat >> confdefs.h <<\EOF
19139#define wxUSE_STARTUP_TIPS 1
19140EOF
19141
19142 fi
19143fi
19144
19145if test "$wxUSE_TEXTDLG" = "yes"; then
19146 cat >> confdefs.h <<\EOF
19147#define wxUSE_TEXTDLG 1
19148EOF
19149
19150fi
19151
b1f5d087
VZ
19152if test "$wxUSE_WIZARDDLG" = "yes"; then
19153 cat >> confdefs.h <<\EOF
19154#define wxUSE_WIZARDDLG 1
19155EOF
19156
19157 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wizard"
19158fi
19159
1e6feb95 19160
698dcdb6
VZ
19161if test "$cross_compiling" = "yes"; then
19162 OSINFO="\"$host\""
19163else
19164 OSINFO=`uname -s -r -m`
19165 OSINFO="\"$OSINFO\""
19166fi
19167
19168cat >> confdefs.h <<EOF
19169#define WXWIN_OS_DESCRIPTION $OSINFO
19170EOF
19171
19172
19173
06dda230
VZ
19174if test "x$prefix" != "xNONE"; then
19175 wxPREFIX=$prefix
19176else
19177 wxPREFIX=$ac_default_prefix
19178fi
19179
7e67ed0d 19180cat >> confdefs.h <<EOF
06dda230 19181#define wxINSTALL_PREFIX "$wxPREFIX"
7e67ed0d
VZ
19182EOF
19183
19184
19185
698dcdb6 19186
3a922bb4 19187
f11bdd03 19188if test "$wxUSE_MAC" = 1 ; then
3d63bc3a 19189 LDFLAGS="$LDFLAGS -framework Carbon -framework System"
698dcdb6 19190fi
3a922bb4 19191
3d63bc3a
RL
19192
19193LIBS="$ZLIB_LINK$POSIX4_LINK$INET_LINK$WCHAR_LINK$THREADS_LINK$DL_LINK -lm$LIBS"
19194
698dcdb6 19195if test "$wxUSE_GUI" = "yes"; then
3d63bc3a
RL
19196
19197 LIBS=" $GUI_TK_LIBRARY$PNG_LINK$JPEG_LINK$TIFF_LINK$FREETYPE_LINK$LIBS"
3a922bb4
RL
19198
19199
19200 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS controls dialogs \
19201 drawing dynamic erase event exec font image \
19202 minimal richedit rotate widgets"
19203
3a922bb4
RL
19204 CPPFLAGS="$CPPFLAGS \$(EXTRADEFS) \$(APPEXTRADEFS)"
19205else
19206 SAMPLES_SUBDIRS="console"
698dcdb6
VZ
19207fi
19208
698dcdb6 19209
d714471b 19210INCLUDES="-I\${top_builddir}/lib/wx/include/${TOOLCHAIN_NAME} -I\${top_srcdir}/include \
3e44f09d
VZ
19211$REGEX_INCLUDE $ZLIB_INCLUDE $PNG_INCLUDE $JPEG_INCLUDE $TIFF_INCLUDE \
19212$FREETYPE_INCLUDE $TOOLKIT_INCLUDE"
698dcdb6 19213
63e7762e 19214if test "$wxUSE_GTK" = 1; then
3d63bc3a 19215 WXCONFIG_INCLUDE=
698dcdb6
VZ
19216else
19217 WXCONFIG_INCLUDE="$TOOLKIT_INCLUDE"
19218fi
19219
19220if test "$GXX" = yes ; then
19221 CXXWARNINGS="-Wall"
88e30f2b
RL
19222
19223 if test "$wxUSE_NO_DEPS" = "no" ; then
19224 CFLAGS="-MMD $CFLAGS"
19225 CXXFLAGS="-MMD $CXXFLAGS"
19226 fi
19227fi
19228
1725144d 19229EXTRA_CFLAGS="$WXDEBUG $WXODBCFLAG $PROFILE $OPTIMISE $INCLUDES"
698dcdb6
VZ
19230
19231CFLAGS=`echo $CFLAGS $EXTRA_CFLAGS $CXXWARNINGS | sed 's/ \\+/ /g'`
19232CXXFLAGS=`echo $CXXFLAGS $EXTRA_CFLAGS $CXXWARNINGS | sed 's/ \+/ /g'`
19233
3d63bc3a 19234LDFLAGS="$LDFLAGS$PROFILE"
698dcdb6 19235
698dcdb6
VZ
19236SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`"
19237
19238
19239
19240
19241
19242
19243
19244
19245
19246
19247
19248
19249
19250
19251
19252
19253
19254
19255
19256
19257
19258
19259
19260
19261
19262
19263
19264
19265
19266
19267
19268
19269
19270
19271
19272
19273
19274
19275
19276
19277
19278
19279
19280
19281
19282
19283
19284
19285
19286
19287
19288
19289
19290
19291
19292
19293
19294
19295
19296
19297
19298
19299
19300
19301
19302
19303
32832908 19304
2f51a9ec
GD
19305
19306
19307
19308
f6bcfd97 19309
dad6c0ea 19310
caa2c79b 19311
3711412e 19312
1e6feb95
VZ
19313
19314
885d4bf5
VS
19315
19316
19317
19318
62d0491b 19319
10f2d63a
VZ
19320
19321
698dcdb6 19322echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
a1622950 19323echo "configure:19324: checking whether ${MAKE-make} sets \${MAKE}" >&5
698dcdb6
VZ
19324set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
19325if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
19326 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 19327else
698dcdb6 19328 cat > conftestmake <<\EOF
10f2d63a
VZ
19329all:
19330 @echo 'ac_maketemp="${MAKE}"'
19331EOF
19332# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
698dcdb6 19333eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
10f2d63a
VZ
19334if test -n "$ac_maketemp"; then
19335 eval ac_cv_prog_make_${ac_make}_set=yes
19336else
19337 eval ac_cv_prog_make_${ac_make}_set=no
19338fi
698dcdb6 19339rm -f conftestmake
10f2d63a
VZ
19340fi
19341if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
698dcdb6 19342 echo "$ac_t""yes" 1>&6
10f2d63a
VZ
19343 SET_MAKE=
19344else
698dcdb6 19345 echo "$ac_t""no" 1>&6
10f2d63a
VZ
19346 SET_MAKE="MAKE=${MAKE-make}"
19347fi
19348
698dcdb6 19349
3a922bb4
RL
19350if test -f lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h; then
19351 mv -f lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h setup.h
00cf1208 19352fi
665bbe97 19353
698dcdb6 19354
10f2d63a 19355
2224580a 19356if test "$wxUSE_GUI" = "yes"; then
ec90f5e5 19357 wx_cv_path_samplesubdirs=$SAMPLES_SUBDIRS
e8482f24
GL
19358 wx_cv_path_ifs=$PATH_IFS
19359 wx_cv_program_ext=$PROGRAM_EXT
19360 wx_cv_target_library=$WX_TARGET_LIBRARY
7b6058cd 19361 wx_cv_target_library_gl=$WX_TARGET_LIBRARY_GL
3711412e 19362 wx_cv_target_libtype=$WX_TARGET_LIBRARY_TYPE
93a20a27 19363 export wx_cv_path_samplesubdirs wx_cv_path_ifs wx_cv_program_ext \
7b6058cd 19364 wx_cv_target_library wx_cv_target_library_gl wx_cv_target_libtype
698dcdb6 19365 subdirs="demos samples utils contrib"
2224580a
VZ
19366
19367fi
10f2d63a 19368
698dcdb6
VZ
19369trap '' 1 2 15
19370cat > confcache <<\EOF
10f2d63a
VZ
19371# This file is a shell script that caches the results of configure
19372# tests run on this system so they can be shared between configure
698dcdb6
VZ
19373# scripts and configure runs. It is not useful on other systems.
19374# If it contains results you don't want to keep, you may remove or edit it.
10f2d63a 19375#
698dcdb6
VZ
19376# By default, configure uses ./config.cache as the cache file,
19377# creating it if it does not exist already. You can give configure
19378# the --cache-file=FILE option to use a different cache file; that is
19379# what configure does when it calls configure scripts in
19380# subdirectories, so they share the cache.
19381# Giving --cache-file=/dev/null disables caching, for debugging configure.
19382# config.status only pays attention to the cache file if you give it the
19383# --recheck option to rerun configure.
10f2d63a 19384#
698dcdb6 19385EOF
10f2d63a
VZ
19386# The following way of writing the cache mishandles newlines in values,
19387# but we know of no workaround that is simple, portable, and efficient.
19388# So, don't put newlines in cache variables' values.
19389# Ultrix sh set writes to stderr and can't be redirected directly,
19390# and sets the high bit in the cache file unless we assign to the vars.
698dcdb6
VZ
19391(set) 2>&1 |
19392 case `(ac_space=' '; set | grep ac_space) 2>&1` in
19393 *ac_space=\ *)
19394 # `set' does not quote correctly, so add quotes (double-quote substitution
19395 # turns \\\\ into \\, and sed turns \\ into \).
19396 sed -n \
19397 -e "s/'/'\\\\''/g" \
19398 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
19399 ;;
19400 *)
19401 # `set' quotes correctly as required by POSIX, so do not add quotes.
19402 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
19403 ;;
19404 esac >> confcache
19405if cmp -s $cache_file confcache; then
19406 :
19407else
10f2d63a 19408 if test -w $cache_file; then
698dcdb6
VZ
19409 echo "updating cache $cache_file"
19410 cat confcache > $cache_file
10f2d63a
VZ
19411 else
19412 echo "not updating unwritable cache $cache_file"
19413 fi
19414fi
19415rm -f confcache
19416
698dcdb6
VZ
19417trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
19418
10f2d63a
VZ
19419test "x$prefix" = xNONE && prefix=$ac_default_prefix
19420# Let make expand exec_prefix.
19421test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19422
698dcdb6
VZ
19423# Any assignment to VPATH causes Sun make to only execute
19424# the first set of double-colon rules, so remove it if not needed.
19425# If there is a colon in the path, we need to keep it.
10f2d63a 19426if test "x$srcdir" = x.; then
698dcdb6 19427 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
10f2d63a
VZ
19428fi
19429
698dcdb6
VZ
19430trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
19431
10f2d63a
VZ
19432DEFS=-DHAVE_CONFIG_H
19433
698dcdb6 19434# Without the "./", some shells look in PATH for config.status.
10f2d63a 19435: ${CONFIG_STATUS=./config.status}
698dcdb6
VZ
19436
19437echo creating $CONFIG_STATUS
19438rm -f $CONFIG_STATUS
19439cat > $CONFIG_STATUS <<EOF
19440#! /bin/sh
10f2d63a
VZ
19441# Generated automatically by configure.
19442# Run this file to recreate the current configuration.
698dcdb6
VZ
19443# This directory was configured as follows,
19444# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19445#
19446# $0 $ac_configure_args
19447#
10f2d63a 19448# Compiler output produced by configure, useful for debugging
698dcdb6 19449# configure, is in ./config.log if it exists.
1e487827 19450
698dcdb6
VZ
19451ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
19452for ac_option
10f2d63a 19453do
698dcdb6 19454 case "\$ac_option" in
10f2d63a 19455 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
698dcdb6
VZ
19456 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
19457 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
19458 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
19459 echo "$CONFIG_STATUS generated by autoconf version 2.13"
19460 exit 0 ;;
19461 -help | --help | --hel | --he | --h)
19462 echo "\$ac_cs_usage"; exit 0 ;;
19463 *) echo "\$ac_cs_usage"; exit 1 ;;
10f2d63a
VZ
19464 esac
19465done
19466
698dcdb6
VZ
19467ac_given_srcdir=$srcdir
19468ac_given_INSTALL="$INSTALL"
703e0a69 19469
698dcdb6
VZ
19470trap 'rm -fr `echo "
19471 wx-config
19472 src/make.env
19473 src/makeprog.env
19474 src/makelib.env
19475 Makefile
19476 setup.h:setup.h.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
1e487827 19477EOF
698dcdb6 19478cat >> $CONFIG_STATUS <<EOF
1e487827 19479
698dcdb6
VZ
19480# Protect against being on the right side of a sed subst in config.status.
19481sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
19482 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
19483$ac_vpsub
19484$extrasub
19485s%@SHELL@%$SHELL%g
19486s%@CFLAGS@%$CFLAGS%g
19487s%@CPPFLAGS@%$CPPFLAGS%g
19488s%@CXXFLAGS@%$CXXFLAGS%g
19489s%@FFLAGS@%$FFLAGS%g
19490s%@DEFS@%$DEFS%g
19491s%@LDFLAGS@%$LDFLAGS%g
19492s%@LIBS@%$LIBS%g
19493s%@exec_prefix@%$exec_prefix%g
19494s%@prefix@%$prefix%g
19495s%@program_transform_name@%$program_transform_name%g
19496s%@bindir@%$bindir%g
19497s%@sbindir@%$sbindir%g
19498s%@libexecdir@%$libexecdir%g
19499s%@datadir@%$datadir%g
19500s%@sysconfdir@%$sysconfdir%g
19501s%@sharedstatedir@%$sharedstatedir%g
19502s%@localstatedir@%$localstatedir%g
19503s%@libdir@%$libdir%g
19504s%@includedir@%$includedir%g
19505s%@oldincludedir@%$oldincludedir%g
19506s%@infodir@%$infodir%g
19507s%@mandir@%$mandir%g
19508s%@host@%$host%g
19509s%@host_alias@%$host_alias%g
19510s%@host_cpu@%$host_cpu%g
19511s%@host_vendor@%$host_vendor%g
19512s%@host_os@%$host_os%g
19513s%@target@%$target%g
19514s%@target_alias@%$target_alias%g
19515s%@target_cpu@%$target_cpu%g
19516s%@target_vendor@%$target_vendor%g
19517s%@target_os@%$target_os%g
19518s%@build@%$build%g
19519s%@build_alias@%$build_alias%g
19520s%@build_cpu@%$build_cpu%g
19521s%@build_vendor@%$build_vendor%g
19522s%@build_os@%$build_os%g
19523s%@CC@%$CC%g
19524s%@CPP@%$CPP%g
19525s%@CXX@%$CXX%g
698dcdb6
VZ
19526s%@RANLIB@%$RANLIB%g
19527s%@AR@%$AR%g
19528s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
d6853540 19529s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
6054113a 19530s%@INSTALL_DATA@%$INSTALL_DATA%g
698dcdb6
VZ
19531s%@STRIP@%$STRIP%g
19532s%@YACC@%$YACC%g
19533s%@LEX@%$LEX%g
19534s%@LEXLIB@%$LEXLIB%g
19535s%@LN_S@%$LN_S%g
19536s%@GTK_CONFIG_2_0@%$GTK_CONFIG_2_0%g
698dcdb6
VZ
19537s%@GTK_CFLAGS@%$GTK_CFLAGS%g
19538s%@GTK_LIBS@%$GTK_LIBS%g
8168de4c 19539s%@GTK_CONFIG@%$GTK_CONFIG%g
698dcdb6
VZ
19540s%@X_CFLAGS@%$X_CFLAGS%g
19541s%@X_PRE_LIBS@%$X_PRE_LIBS%g
19542s%@X_LIBS@%$X_LIBS%g
19543s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
3a922bb4 19544s%@RESCOMP@%$RESCOMP%g
698dcdb6 19545s%@DEREZ@%$DEREZ%g
3a922bb4 19546s%@CXXCPP@%$CXXCPP%g
698dcdb6
VZ
19547s%@LEX_STEM@%$LEX_STEM%g
19548s%@PATH_IFS@%$PATH_IFS%g
19549s%@WX_MAJOR_VERSION_NUMBER@%$WX_MAJOR_VERSION_NUMBER%g
19550s%@WX_MINOR_VERSION_NUMBER@%$WX_MINOR_VERSION_NUMBER%g
19551s%@WX_RELEASE_NUMBER@%$WX_RELEASE_NUMBER%g
698dcdb6
VZ
19552s%@WX_LIBRARY_NAME_STATIC@%$WX_LIBRARY_NAME_STATIC%g
19553s%@WX_LIBRARY_NAME_SHARED@%$WX_LIBRARY_NAME_SHARED%g
77e13408 19554s%@WX_LIBRARY_IMPORTLIB@%$WX_LIBRARY_IMPORTLIB%g
698dcdb6
VZ
19555s%@WX_TARGET_LIBRARY@%$WX_TARGET_LIBRARY%g
19556s%@WX_LIBRARY_LINK1@%$WX_LIBRARY_LINK1%g
19557s%@WX_LIBRARY_LINK2@%$WX_LIBRARY_LINK2%g
698dcdb6 19558s%@PROGRAM_EXT@%$PROGRAM_EXT%g
698dcdb6
VZ
19559s%@WX_LIBRARY_NAME_STATIC_GL@%$WX_LIBRARY_NAME_STATIC_GL%g
19560s%@WX_LIBRARY_NAME_SHARED_GL@%$WX_LIBRARY_NAME_SHARED_GL%g
698dcdb6
VZ
19561s%@WX_TARGET_LIBRARY_GL@%$WX_TARGET_LIBRARY_GL%g
19562s%@WX_LIBRARY_LINK1_GL@%$WX_LIBRARY_LINK1_GL%g
19563s%@WX_LIBRARY_LINK2_GL@%$WX_LIBRARY_LINK2_GL%g
698dcdb6
VZ
19564s%@WX_ALL@%$WX_ALL%g
19565s%@WX_ALL_INSTALLED@%$WX_ALL_INSTALLED%g
19566s%@SHARED_LD@%$SHARED_LD%g
19567s%@PIC_FLAG@%$PIC_FLAG%g
698dcdb6
VZ
19568s%@CODE_GEN_FLAGS@%$CODE_GEN_FLAGS%g
19569s%@CODE_GEN_FLAGS_CXX@%$CODE_GEN_FLAGS_CXX%g
3a922bb4
RL
19570s%@SONAME_FLAGS@%$SONAME_FLAGS%g
19571s%@SONAME_FLAGS_GL@%$SONAME_FLAGS_GL%g
698dcdb6
VZ
19572s%@WX_TARGET_LIBRARY_SONAME@%$WX_TARGET_LIBRARY_SONAME%g
19573s%@WX_TARGET_LIBRARY_TYPE@%$WX_TARGET_LIBRARY_TYPE%g
19574s%@WXDEBUG_DEFINE@%$WXDEBUG_DEFINE%g
19575s%@USE_GUI@%$USE_GUI%g
19576s%@AFMINSTALL@%$AFMINSTALL%g
19577s%@TOOLKIT@%$TOOLKIT%g
698dcdb6 19578s%@TOOLKIT_DIR@%$TOOLKIT_DIR%g
1e6feb95 19579s%@TOOLKIT_VPATH@%$TOOLKIT_VPATH%g
3a922bb4
RL
19580s%@TOOLCHAIN_NAME@%$TOOLCHAIN_NAME%g
19581s%@TOOLCHAIN_DEFS@%$TOOLCHAIN_DEFS%g
00c81359 19582s%@TOOLCHAIN_DLL_DEFS@%$TOOLCHAIN_DLL_DEFS%g
3a922bb4
RL
19583s%@cross_compiling@%$cross_compiling%g
19584s%@WXCONFIG_LIBS@%$WXCONFIG_LIBS%g
19585s%@WXCONFIG_LIBS_GL@%$WXCONFIG_LIBS_GL%g
885d4bf5
VS
19586s%@WXCONFIG_LIBS_STATIC@%$WXCONFIG_LIBS_STATIC%g
19587s%@WXCONFIG_LIBS_STATIC_GL@%$WXCONFIG_LIBS_STATIC_GL%g
698dcdb6
VZ
19588s%@WXCONFIG_INCLUDE@%$WXCONFIG_INCLUDE%g
19589s%@ALL_OBJECTS@%$ALL_OBJECTS%g
698dcdb6
VZ
19590s%@GUIDIST@%$GUIDIST%g
19591s%@PORT_FILES@%$PORT_FILES%g
19592s%@DISTDIR@%$DISTDIR%g
698dcdb6 19593s%@SAMPLES_SUBDIRS@%$SAMPLES_SUBDIRS%g
62d0491b 19594s%@LDFLAGS_GL@%$LDFLAGS_GL%g
698dcdb6 19595s%@OPENGL_LIBS@%$OPENGL_LIBS%g
3d63bc3a 19596s%@DMALLOC_LIBS@%$DMALLOC_LIBS%g
698dcdb6 19597s%@EXTRADEFS@%$EXTRADEFS%g
698dcdb6 19598s%@RESFLAGS@%$RESFLAGS%g
3a922bb4 19599s%@RESPROGRAMOBJ@%$RESPROGRAMOBJ%g
d08b457b 19600s%@WX_RESOURCES_MACOSX@%$WX_RESOURCES_MACOSX%g
e23081de 19601s%@WX_RESOURCES_MACOSX_COMPILED@%$WX_RESOURCES_MACOSX_COMPILED%g
698dcdb6
VZ
19602s%@LIBWXMACRES@%$LIBWXMACRES%g
19603s%@LIBWXMACRESCOMP@%$LIBWXMACRESCOMP%g
2baaf735 19604s%@LIBWXMACRESWXCONFIG@%$LIBWXMACRESWXCONFIG%g
698dcdb6
VZ
19605s%@DLLTOOL@%$DLLTOOL%g
19606s%@AS@%$AS%g
19607s%@NM@%$NM%g
19608s%@LD@%$LD%g
19609s%@MAKEINFO@%$MAKEINFO%g
885d4bf5 19610s%@INSTALL_LIBRARY@%$INSTALL_LIBRARY%g
698dcdb6
VZ
19611s%@SET_MAKE@%$SET_MAKE%g
19612s%@subdirs@%$subdirs%g
1e487827 19613
1e487827 19614CEOF
1e487827
VS
19615EOF
19616
698dcdb6
VZ
19617cat >> $CONFIG_STATUS <<\EOF
19618
19619# Split the substitutions into bite-sized pieces for seds with
19620# small command number limits, like on Digital OSF/1 and HP-UX.
19621ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
19622ac_file=1 # Number of current file.
19623ac_beg=1 # First line for current file.
19624ac_end=$ac_max_sed_cmds # Line after last line for current file.
19625ac_more_lines=:
19626ac_sed_cmds=""
19627while $ac_more_lines; do
19628 if test $ac_beg -gt 1; then
19629 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
19630 else
19631 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
19632 fi
19633 if test ! -s conftest.s$ac_file; then
19634 ac_more_lines=false
19635 rm -f conftest.s$ac_file
19636 else
19637 if test -z "$ac_sed_cmds"; then
19638 ac_sed_cmds="sed -f conftest.s$ac_file"
10f2d63a 19639 else
698dcdb6 19640 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
10f2d63a 19641 fi
698dcdb6
VZ
19642 ac_file=`expr $ac_file + 1`
19643 ac_beg=$ac_end
19644 ac_end=`expr $ac_end + $ac_max_sed_cmds`
10f2d63a 19645 fi
698dcdb6
VZ
19646done
19647if test -z "$ac_sed_cmds"; then
19648 ac_sed_cmds=cat
19649fi
19650EOF
10f2d63a 19651
698dcdb6
VZ
19652cat >> $CONFIG_STATUS <<EOF
19653
19654CONFIG_FILES=\${CONFIG_FILES-"wx-config
19655 src/make.env
19656 src/makeprog.env
19657 src/makelib.env
19658 Makefile
19659 "}
10f2d63a 19660EOF
698dcdb6
VZ
19661cat >> $CONFIG_STATUS <<\EOF
19662for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
10f2d63a 19663 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
698dcdb6
VZ
19664 case "$ac_file" in
19665 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
19666 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
19667 *) ac_file_in="${ac_file}.in" ;;
10f2d63a
VZ
19668 esac
19669
698dcdb6 19670 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
1e487827 19671
698dcdb6
VZ
19672 # Remove last slash and all that follows it. Not all systems have dirname.
19673 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
19674 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
19675 # The file is in a subdirectory.
19676 test ! -d "$ac_dir" && mkdir "$ac_dir"
19677 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
10f2d63a 19678 # A "../" for each directory in $ac_dir_suffix.
698dcdb6 19679 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
10f2d63a
VZ
19680 else
19681 ac_dir_suffix= ac_dots=
19682 fi
19683
698dcdb6
VZ
19684 case "$ac_given_srcdir" in
19685 .) srcdir=.
19686 if test -z "$ac_dots"; then top_srcdir=.
19687 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
19688 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
10f2d63a 19689 *) # Relative path.
698dcdb6
VZ
19690 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
19691 top_srcdir="$ac_dots$ac_given_srcdir" ;;
10f2d63a
VZ
19692 esac
19693
698dcdb6
VZ
19694 case "$ac_given_INSTALL" in
19695 [/$]*) INSTALL="$ac_given_INSTALL" ;;
19696 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
10f2d63a
VZ
19697 esac
19698
698dcdb6
VZ
19699 echo creating "$ac_file"
19700 rm -f "$ac_file"
19701 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
19702 case "$ac_file" in
19703 *Makefile*) ac_comsub="1i\\
19704# $configure_input" ;;
19705 *) ac_comsub= ;;
19706 esac
10f2d63a 19707
698dcdb6
VZ
19708 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
19709 sed -e "$ac_comsub
19710s%@configure_input@%$configure_input%g
19711s%@srcdir@%$srcdir%g
19712s%@top_srcdir@%$top_srcdir%g
19713s%@INSTALL@%$INSTALL%g
19714" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
19715fi; done
19716rm -f conftest.s*
10f2d63a
VZ
19717
19718# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
19719# NAME is the cpp macro being defined and VALUE is the value it is being given.
19720#
19721# ac_d sets the value in "#define NAME VALUE" lines.
698dcdb6
VZ
19722ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
19723ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
19724ac_dC='\3'
19725ac_dD='%g'
19726# ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
19727ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
19728ac_uB='\([ ]\)%\1#\2define\3'
10f2d63a 19729ac_uC=' '
698dcdb6
VZ
19730ac_uD='\4%g'
19731# ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
19732ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
19733ac_eB='$%\1#\2define\3'
19734ac_eC=' '
19735ac_eD='%g'
10f2d63a 19736
698dcdb6
VZ
19737if test "${CONFIG_HEADERS+set}" != set; then
19738EOF
19739cat >> $CONFIG_STATUS <<EOF
19740 CONFIG_HEADERS="setup.h:setup.h.in"
19741EOF
19742cat >> $CONFIG_STATUS <<\EOF
19743fi
19744for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
10f2d63a 19745 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
698dcdb6
VZ
19746 case "$ac_file" in
19747 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
19748 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
19749 *) ac_file_in="${ac_file}.in" ;;
10f2d63a
VZ
19750 esac
19751
698dcdb6
VZ
19752 echo creating $ac_file
19753
19754 rm -f conftest.frag conftest.in conftest.out
19755 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
19756 cat $ac_file_inputs > conftest.in
19757
19758EOF
19759
19760# Transform confdefs.h into a sed script conftest.vals that substitutes
19761# the proper values into config.h.in to produce config.h. And first:
19762# Protect against being on the right side of a sed subst in config.status.
19763# Protect against being in an unquoted here document in config.status.
19764rm -f conftest.vals
19765cat > conftest.hdr <<\EOF
19766s/[\\&%]/\\&/g
19767s%[\\$`]%\\&%g
19768s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
19769s%ac_d%ac_u%gp
19770s%ac_u%ac_e%gp
19771EOF
19772sed -n -f conftest.hdr confdefs.h > conftest.vals
19773rm -f conftest.hdr
10f2d63a
VZ
19774
19775# This sed command replaces #undef with comments. This is necessary, for
19776# example, in the case of _POSIX_SOURCE, which is predefined and required
19777# on some systems where configure will not decide to define it.
698dcdb6
VZ
19778cat >> conftest.vals <<\EOF
19779s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
10f2d63a
VZ
19780EOF
19781
698dcdb6
VZ
19782# Break up conftest.vals because some shells have a limit on
19783# the size of here documents, and old seds have small limits too.
10f2d63a
VZ
19784
19785rm -f conftest.tail
698dcdb6 19786while :
10f2d63a 19787do
698dcdb6
VZ
19788 ac_lines=`grep -c . conftest.vals`
19789 # grep -c gives empty output for an empty file on some AIX systems.
19790 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
19791 # Write a limited-size here document to conftest.frag.
19792 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
19793 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
10f2d63a 19794 echo 'CEOF
698dcdb6
VZ
19795 sed -f conftest.frag conftest.in > conftest.out
19796 rm -f conftest.in
19797 mv conftest.out conftest.in
19798' >> $CONFIG_STATUS
19799 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
19800 rm -f conftest.vals
19801 mv conftest.tail conftest.vals
10f2d63a 19802done
698dcdb6
VZ
19803rm -f conftest.vals
19804
19805cat >> $CONFIG_STATUS <<\EOF
19806 rm -f conftest.frag conftest.h
19807 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
19808 cat conftest.in >> conftest.h
19809 rm -f conftest.in
19810 if cmp -s $ac_file conftest.h 2>/dev/null; then
19811 echo "$ac_file is unchanged"
19812 rm -f conftest.h
10f2d63a 19813 else
698dcdb6
VZ
19814 # Remove last slash and all that follows it. Not all systems have dirname.
19815 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
10f2d63a 19816 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
698dcdb6
VZ
19817 # The file is in a subdirectory.
19818 test ! -d "$ac_dir" && mkdir "$ac_dir"
10f2d63a 19819 fi
698dcdb6
VZ
19820 rm -f $ac_file
19821 mv conftest.h $ac_file
10f2d63a 19822 fi
698dcdb6
VZ
19823fi; done
19824
10f2d63a 19825EOF
698dcdb6 19826cat >> $CONFIG_STATUS <<EOF
10f2d63a 19827
3a922bb4 19828 TOOLCHAIN_NAME="${TOOLCHAIN_NAME}"
698dcdb6
VZ
19829 LN_S="${LN_S}"
19830
19831
19832EOF
19833cat >> $CONFIG_STATUS <<\EOF
10f2d63a 19834
652d930d 19835 if test ! -h wx-config; then
991a5759 19836 chmod +x wx-config
3a922bb4
RL
19837 mv wx-config wx${TOOLCHAIN_NAME}-config
19838 ${LN_S} wx${TOOLCHAIN_NAME}-config wx-config
991a5759 19839 fi
665bbe97 19840
00cf1208
RR
19841 if test ! -d lib; then
19842 mkdir lib
19843 fi
19844 if test ! -d lib/wx; then
19845 mkdir lib/wx
19846 fi
19847 if test ! -d lib/wx/include; then
19848 mkdir lib/wx/include
19849 fi
3a922bb4
RL
19850 if test ! -d lib/wx/include/${TOOLCHAIN_NAME}; then
19851 mkdir lib/wx/include/${TOOLCHAIN_NAME}
00cf1208 19852 fi
3a922bb4
RL
19853 if test ! -d lib/wx/include/${TOOLCHAIN_NAME}/wx; then
19854 mkdir lib/wx/include/${TOOLCHAIN_NAME}/wx
00cf1208
RR
19855 fi
19856 if test -f setup.h; then
3a922bb4 19857 mv -f setup.h lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h
00cf1208 19858 fi
698dcdb6
VZ
19859
19860exit 0
10f2d63a
VZ
19861EOF
19862chmod +x $CONFIG_STATUS
698dcdb6
VZ
19863rm -fr confdefs* $ac_clean_files
19864test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
10f2d63a 19865
2224580a
VZ
19866if test "$no_recursion" != yes; then
19867
19868 # Remove --cache-file and --srcdir arguments so they do not pile up.
19869 ac_sub_configure_args=
19870 ac_prev=
19871 for ac_arg in $ac_configure_args; do
19872 if test -n "$ac_prev"; then
19873 ac_prev=
19874 continue
19875 fi
698dcdb6 19876 case "$ac_arg" in
2224580a
VZ
19877 -cache-file | --cache-file | --cache-fil | --cache-fi \
19878 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
19879 ac_prev=cache_file ;;
19880 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
698dcdb6 19881 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
2224580a
VZ
19882 ;;
19883 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
19884 ac_prev=srcdir ;;
19885 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
19886 ;;
19887 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
19888 esac
19889 done
19890
698dcdb6 19891 for ac_config_dir in demos samples utils contrib; do
2224580a
VZ
19892
19893 # Do not complain, so a configure script can configure whichever
19894 # parts of a large source tree are present.
698dcdb6
VZ
19895 if test ! -d $srcdir/$ac_config_dir; then
19896 continue
19897 fi
19898
19899 echo configuring in $ac_config_dir
2224580a 19900
698dcdb6 19901 case "$srcdir" in
2224580a
VZ
19902 .) ;;
19903 *)
698dcdb6
VZ
19904 if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
19905 else
19906 { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
19907 fi
19908 ;;
2224580a
VZ
19909 esac
19910
19911 ac_popdir=`pwd`
698dcdb6 19912 cd $ac_config_dir
2224580a 19913
698dcdb6
VZ
19914 # A "../" for each directory in /$ac_config_dir.
19915 ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
2224580a 19916
698dcdb6 19917 case "$srcdir" in
2224580a
VZ
19918 .) # No --srcdir option. We are building in place.
19919 ac_sub_srcdir=$srcdir ;;
698dcdb6
VZ
19920 /*) # Absolute path.
19921 ac_sub_srcdir=$srcdir/$ac_config_dir ;;
2224580a 19922 *) # Relative path.
698dcdb6 19923 ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
2224580a
VZ
19924 esac
19925
19926 # Check for guested configure; otherwise get Cygnus style configure.
698dcdb6
VZ
19927 if test -f $ac_sub_srcdir/configure; then
19928 ac_sub_configure=$ac_sub_srcdir/configure
2224580a
VZ
19929 elif test -f $ac_sub_srcdir/configure.in; then
19930 ac_sub_configure=$ac_configure
19931 else
698dcdb6 19932 echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
2224580a
VZ
19933 ac_sub_configure=
19934 fi
19935
19936 # The recursion is here.
19937 if test -n "$ac_sub_configure"; then
698dcdb6 19938
2224580a 19939 # Make the cache file name correct relative to the subdirectory.
698dcdb6
VZ
19940 case "$cache_file" in
19941 /*) ac_sub_cache_file=$cache_file ;;
2224580a 19942 *) # Relative path.
698dcdb6 19943 ac_sub_cache_file="$ac_dots$cache_file" ;;
2224580a 19944 esac
698dcdb6
VZ
19945 case "$ac_given_INSTALL" in
19946 [/$]*) INSTALL="$ac_given_INSTALL" ;;
19947 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
19948 esac
2224580a 19949
698dcdb6 19950 echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
2224580a 19951 # The eval makes quoting arguments work.
698dcdb6
VZ
19952 if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
19953 then :
19954 else
19955 { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }
19956 fi
2224580a
VZ
19957 fi
19958
19959 cd $ac_popdir
19960 done
19961fi
19962
698dcdb6 19963