]> git.saurik.com Git - wxWidgets.git/blame - configure
fixed bug with the caret positioning after SetValue() introduced by the last commit
[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
8168de4c
VZ
38
39# Configure paths for GTK+
40# Owen Taylor 97-11-3
698dcdb6
VZ
41
42
43
44
698dcdb6
VZ
45
46
47# Guess values for system-dependent variables and create Makefiles.
48# Generated automatically using autoconf version 2.13
49# Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
50#
51# This configure script is free software; the Free Software Foundation
52# gives unlimited permission to copy, distribute and modify it.
53
54# Defaults:
55ac_help=
56ac_default_prefix=/usr/local
57# Any additions from configure.in:
58ac_help="$ac_help
8168de4c 59 --enable-gui use GUI classes"
1e6feb95 60ac_help="$ac_help
8168de4c 61 --enable-universal use wxWindows GUI controls instead of native ones"
698dcdb6
VZ
62ac_help="$ac_help
63 --with-gtk use GTK+"
64ac_help="$ac_help
65 --with-motif use Motif/Lesstif"
66ac_help="$ac_help
67 --with-mac use Mac OS X"
68ac_help="$ac_help
69 --with-wine use WINE"
70ac_help="$ac_help
77e13408 71 --with-msw use MS-Windows"
698dcdb6
VZ
72ac_help="$ac_help
73 --with-pm use OS/2 Presentation Manager"
1e6feb95 74ac_help="$ac_help
b3e8d00a 75 --with-mgl use SciTech MGL"
698dcdb6 76ac_help="$ac_help
8168de4c 77 --enable-gtk2 use GTK+ 2.0 if available (EXPERIMENTAL)"
698dcdb6 78ac_help="$ac_help
8168de4c 79 --with-libpng use libpng (PNG image format)"
698dcdb6 80ac_help="$ac_help
8168de4c 81 --with-libjpeg use libjpeg (JPEG file format)"
698dcdb6 82ac_help="$ac_help
8168de4c 83 --with-libtiff use libtiff (TIFF file format)"
698dcdb6 84ac_help="$ac_help
8168de4c 85 --with-freetype use freetype (font rasterizer)"
698dcdb6 86ac_help="$ac_help
8168de4c 87 --with-opengl use OpenGL (or Mesa)"
698dcdb6 88ac_help="$ac_help
d0e9b150 89 --with-dmalloc use dmalloc library (http://dmalloc.com/)"
3e44f09d
VZ
90ac_help="$ac_help
91 --with-regex enable support for wxRegEx class"
698dcdb6 92ac_help="$ac_help
8168de4c 93 --with-zlib use zlib for LZW compression"
698dcdb6 94ac_help="$ac_help
8168de4c 95 --with-odbc use the IODBC and wxODBC classes"
698dcdb6 96ac_help="$ac_help
8168de4c 97 --enable-shared create shared library code"
698dcdb6 98ac_help="$ac_help
3a922bb4 99 --enable-soname set the DT_SONAME field in ELF shared libraries"
698dcdb6 100ac_help="$ac_help
8168de4c 101 --enable-optimise create optimised code"
698dcdb6 102ac_help="$ac_help
8168de4c 103 --enable-debug same as debug_flag and debug_info"
683dccda
GD
104ac_help="$ac_help
105 --enable-precomp enable use of precompiled headers (Mac OS X)"
698dcdb6 106ac_help="$ac_help
8168de4c 107 --enable-debug_flag set __WXDEBUG__ flag (recommended for developers!)"
698dcdb6 108ac_help="$ac_help
8168de4c 109 --enable-debug_info create code with debugging information"
698dcdb6 110ac_help="$ac_help
8168de4c 111 --enable-debug_gdb create code with extra GDB debugging information"
698dcdb6 112ac_help="$ac_help
8168de4c 113 --enable-debug_cntxt use wxDebugContext"
698dcdb6 114ac_help="$ac_help
8168de4c 115 --enable-mem_tracing create code with memory tracing"
698dcdb6 116ac_help="$ac_help
8168de4c 117 --enable-profile create code with profiling information"
698dcdb6 118ac_help="$ac_help
8168de4c 119 --enable-no_rtti create code without RTTI information"
698dcdb6 120ac_help="$ac_help
b3e8d00a 121 --enable-no_exceptions create code without C++ exceptions handling"
698dcdb6 122ac_help="$ac_help
8168de4c 123 --enable-permissive compile code disregarding strict ANSI"
698dcdb6 124ac_help="$ac_help
8168de4c 125 --enable-no_deps create code without dependency information"
54276ccf 126ac_help="$ac_help
b3e8d00a 127 --enable-compat20 enable wxWindows 2.0 compatibility"
54276ccf 128ac_help="$ac_help
b3e8d00a 129 --enable-compat22 enable wxWindows 2.2 compatibility"
698dcdb6 130ac_help="$ac_help
8168de4c 131 --enable-intl use internationalization system"
698dcdb6 132ac_help="$ac_help
8168de4c 133 --enable-config use wxConfig (and derived) classes"
698dcdb6 134ac_help="$ac_help
8168de4c 135 --enable-sockets use socket/network classes"
698dcdb6 136ac_help="$ac_help
8168de4c 137 --enable-ipc use interprocess communication (wxSocket etc.)"
698dcdb6 138ac_help="$ac_help
8168de4c 139 --enable-cmdline use wxCmdLineParser class"
1e6feb95 140ac_help="$ac_help
8168de4c 141 --enable-datetime use wxDateTime class"
1e6feb95 142ac_help="$ac_help
8168de4c 143 --enable-timedate use obsolete wxDate/wxTime classes"
1e6feb95 144ac_help="$ac_help
8168de4c 145 --enable-stopwatch use wxStopWatch class"
1e6feb95 146ac_help="$ac_help
8168de4c 147 --enable-dialupman use dialup network classes"
698dcdb6 148ac_help="$ac_help
8168de4c 149 --enable-apple_ieee use the Apple IEEE codec"
698dcdb6 150ac_help="$ac_help
8168de4c 151 --enable-timer use wxTimer class"
698dcdb6 152ac_help="$ac_help
8168de4c 153 --enable-wave use wxWave class"
698dcdb6 154ac_help="$ac_help
8168de4c 155 --enable-fraction use wxFraction class"
698dcdb6 156ac_help="$ac_help
8168de4c 157 --enable-dynlib use wxLibrary class for DLL loading"
698dcdb6 158ac_help="$ac_help
8168de4c 159 --enable-longlong use wxLongLong class"
698dcdb6 160ac_help="$ac_help
8168de4c 161 --enable-geometry use geometry class"
698dcdb6 162ac_help="$ac_help
8168de4c 163 --enable-log use logging system"
698dcdb6 164ac_help="$ac_help
8168de4c 165 --enable-streams use wxStream etc classes"
698dcdb6 166ac_help="$ac_help
8168de4c 167 --enable-file use wxFile classes"
698dcdb6 168ac_help="$ac_help
8168de4c 169 --enable-ffile use wxFFile classes"
1e6feb95 170ac_help="$ac_help
a3a584a7
VZ
171 --enable-textbuf use wxTextBuffer class"
172ac_help="$ac_help
173 --enable-textfile use wxTextFile class"
698dcdb6 174ac_help="$ac_help
8168de4c 175 --enable-fontmap use font encodings conversion classes"
1e6feb95 176ac_help="$ac_help
8168de4c 177 --enable-unicode compile wxString with Unicode support"
698dcdb6 178ac_help="$ac_help
8168de4c 179 --enable-wxprintfv use wxWindows implementation of vprintf()"
698dcdb6 180ac_help="$ac_help
8168de4c 181 --enable-std_iostreams use standard C++ stream classes"
698dcdb6 182ac_help="$ac_help
8168de4c 183 --enable-filesystem use virtual file systems classes"
698dcdb6 184ac_help="$ac_help
8168de4c 185 --enable-fs_inet use virtual HTTP/FTP filesystems"
698dcdb6 186ac_help="$ac_help
8168de4c 187 --enable-fs_zip use virtual ZIP filesystems"
698dcdb6 188ac_help="$ac_help
8168de4c 189 --enable-zipstream use wxZipInputStream"
698dcdb6 190ac_help="$ac_help
8168de4c 191 --enable-catch_segvs catch signals and pass them to wxApp::OnFatalException"
698dcdb6 192ac_help="$ac_help
8168de4c 193 --enable-snglinst use wxSingleInstanceChecker class"
698dcdb6 194ac_help="$ac_help
69d27ff7 195 --enable-mimetype use wxMimeTypesManager"
3e44f09d 196ac_help="$ac_help
b3e8d00a 197 --enable-sysoptions use wxSystemOptions"
1e6feb95 198ac_help="$ac_help
8168de4c 199 --enable-threads use threads"
698dcdb6 200ac_help="$ac_help
8168de4c 201 --enable-serial use class serialization"
698dcdb6 202ac_help="$ac_help
8168de4c 203 --enable-docview use document view architecture"
698dcdb6 204ac_help="$ac_help
3379ed37 205 --enable-help use help subsystem"
29fd3c0c
VS
206ac_help="$ac_help
207 --enable-mshtmlhelp use MS HTML Help (win32)"
3379ed37
VZ
208ac_help="$ac_help
209 --enable-html use wxHTML sub-library"
210ac_help="$ac_help
211 --enable-htmlhelp use wxHTML-based help"
698dcdb6 212ac_help="$ac_help
8168de4c 213 --enable-constraints use layout-constraints system"
698dcdb6 214ac_help="$ac_help
8168de4c 215 --enable-printarch use printing architecture"
698dcdb6 216ac_help="$ac_help
8168de4c 217 --enable-mdi use multiple document interface architecture"
698dcdb6 218ac_help="$ac_help
8168de4c 219 --enable-loggui use standard GUI logger"
1e6feb95 220ac_help="$ac_help
8168de4c 221 --enable-logwin use wxLogWindow"
69d27ff7
MB
222ac_help="$ac_help
223 --enable-logdialog use wxLogDialog"
1e6feb95 224ac_help="$ac_help
8168de4c 225 --enable-postscript use wxPostscriptDC device context (default for gtk+)"
698dcdb6 226ac_help="$ac_help
8168de4c 227 --enable-prologio use Prolog IO library"
698dcdb6 228ac_help="$ac_help
8168de4c 229 --enable-resources use wxWindows resources"
698dcdb6 230ac_help="$ac_help
8168de4c 231 --enable-xresources use X resources for save (default for gtk+)"
698dcdb6 232ac_help="$ac_help
8168de4c 233 --enable-clipboard use wxClipboard classes"
698dcdb6 234ac_help="$ac_help
8168de4c 235 --enable-dnd use Drag'n'Drop classes"
698dcdb6 236ac_help="$ac_help
8168de4c 237 --enable-metafile use win32 metafiles"
698dcdb6 238ac_help="$ac_help
24176f2c 239 --enable-treelayout use wxTreeLayout classes"
698dcdb6 240ac_help="$ac_help
8168de4c 241 --enable-controls use all usual controls"
698dcdb6 242ac_help="$ac_help
8168de4c 243 --enable-accel use accelerators"
698dcdb6 244ac_help="$ac_help
8168de4c 245 --enable-button use wxButton class"
698dcdb6 246ac_help="$ac_help
8168de4c 247 --enable-bmpbutton use wxBitmapButton class"
698dcdb6 248ac_help="$ac_help
8168de4c 249 --enable-calendar use wxCalendarCtrl class"
1e6feb95 250ac_help="$ac_help
8168de4c 251 --enable-caret use wxCaret class"
1e6feb95 252ac_help="$ac_help
8168de4c 253 --enable-checkbox use wxCheckBox class"
698dcdb6 254ac_help="$ac_help
8168de4c 255 --enable-checklst use wxCheckListBox (listbox with checkboxes) class"
698dcdb6 256ac_help="$ac_help
8168de4c 257 --enable-choice use wxChoice class"
698dcdb6 258ac_help="$ac_help
8168de4c 259 --enable-combobox use wxComboBox classes"
698dcdb6 260ac_help="$ac_help
8168de4c 261 --enable-gauge use wxGauge class"
698dcdb6 262ac_help="$ac_help
8168de4c 263 --enable-grid use wxGrid class"
698dcdb6 264ac_help="$ac_help
8168de4c 265 --enable-newgrid use new wxGrid class"
698dcdb6 266ac_help="$ac_help
8168de4c 267 --enable-imaglist use wxImageList class"
698dcdb6 268ac_help="$ac_help
8168de4c 269 --enable-listbox use wxListBox class"
698dcdb6 270ac_help="$ac_help
8168de4c 271 --enable-listctrl use wxListCtrl class"
698dcdb6 272ac_help="$ac_help
8168de4c 273 --enable-notebook use wxNotebook class"
24176f2c
GD
274ac_help="$ac_help
275 --enable-propsheet use wxPropertySheet class"
698dcdb6 276ac_help="$ac_help
8168de4c 277 --enable-radiobox use wxRadioBox class"
698dcdb6 278ac_help="$ac_help
8168de4c 279 --enable-radiobtn use wxRadioButton class"
698dcdb6 280ac_help="$ac_help
8168de4c 281 --enable-sash use wxSashWindow class"
698dcdb6 282ac_help="$ac_help
8168de4c 283 --enable-scrollbar use wxScrollBar class and scrollable windows"
698dcdb6 284ac_help="$ac_help
8168de4c 285 --enable-slider use wxSlider class"
698dcdb6 286ac_help="$ac_help
8168de4c 287 --enable-spinbtn use wxSpinButton class"
698dcdb6 288ac_help="$ac_help
8168de4c 289 --enable-spinctrl use wxSpinCtrl class"
698dcdb6 290ac_help="$ac_help
8168de4c 291 --enable-splitter use wxSplitterWindow class"
698dcdb6 292ac_help="$ac_help
8168de4c 293 --enable-statbmp use wxStaticBitmap class"
698dcdb6 294ac_help="$ac_help
8168de4c 295 --enable-statbox use wxStaticBox class"
698dcdb6 296ac_help="$ac_help
8168de4c 297 --enable-statline use wxStaticLine class"
698dcdb6 298ac_help="$ac_help
8168de4c 299 --enable-stattext use wxStaticText class"
1e6feb95 300ac_help="$ac_help
8168de4c 301 --enable-statusbar use wxStatusBar class"
698dcdb6 302ac_help="$ac_help
8168de4c 303 --enable-tabdialog use wxTabControl class"
698dcdb6 304ac_help="$ac_help
8168de4c 305 --enable-textctrl use wxTextCtrl class"
1e6feb95 306ac_help="$ac_help
8168de4c 307 --enable-togglebtn use wxToggleButton class"
698dcdb6 308ac_help="$ac_help
8168de4c 309 --enable-toolbar use wxToolBar class"
698dcdb6 310ac_help="$ac_help
8168de4c 311 --enable-tbarnative use native wxToolBar class"
698dcdb6 312ac_help="$ac_help
8168de4c 313 --enable-tbarsmpl use wxToolBarSimple class"
698dcdb6 314ac_help="$ac_help
8168de4c 315 --enable-treectrl use wxTreeCtrl class"
9926e4a4
VZ
316ac_help="$ac_help
317 --enable-tipwindow use wxTipWindow class"
9f41d601
RR
318ac_help="$ac_help
319 --enable-popupwin use wxPopUpWindow class"
698dcdb6 320ac_help="$ac_help
b3e8d00a 321 --enable-commondlg use all common dialogs"
698dcdb6 322ac_help="$ac_help
8168de4c 323 --enable-choicedlg use wxChoiceDialog"
1e6feb95 324ac_help="$ac_help
8168de4c 325 --enable-coldlg use wxColourDialog"
1e6feb95 326ac_help="$ac_help
8168de4c 327 --enable-filedlg use wxFileDialog"
8db37e06
VZ
328ac_help="$ac_help
329 --enable-finddlg use wxFindReplaceDialog"
1e6feb95 330ac_help="$ac_help
8168de4c 331 --enable-fontdlg use wxFontDialog"
1e6feb95 332ac_help="$ac_help
8168de4c 333 --enable-dirdlg use wxDirDialog"
698dcdb6 334ac_help="$ac_help
8168de4c 335 --enable-msgdlg use wxMessageDialog"
1e6feb95 336ac_help="$ac_help
8168de4c 337 --enable-numberdlg use wxNumberEntryDialog"
cbca9943
VZ
338ac_help="$ac_help
339 --enable-splash use wxSplashScreen"
1e6feb95 340ac_help="$ac_help
8168de4c 341 --enable-textdlg use wxTextDialog"
698dcdb6 342ac_help="$ac_help
8168de4c 343 --enable-tipdlg use startup tips"
698dcdb6 344ac_help="$ac_help
8168de4c 345 --enable-progressdlg use wxProgressDialog"
b1f5d087
VZ
346ac_help="$ac_help
347 --enable-wizarddlg use wxWizard"
698dcdb6 348ac_help="$ac_help
8168de4c 349 --enable-menus use wxMenu/wxMenuBar/wxMenuItem classes"
1e6feb95 350ac_help="$ac_help
8168de4c 351 --enable-miniframe use wxMiniFrame class"
698dcdb6 352ac_help="$ac_help
8168de4c 353 --enable-tooltips use wxToolTip class"
698dcdb6 354ac_help="$ac_help
8168de4c 355 --enable-splines use spline drawing code"
698dcdb6 356ac_help="$ac_help
8168de4c 357 --enable-validators use wxValidator and derived classes"
698dcdb6 358ac_help="$ac_help
8168de4c 359 --enable-busyinfo use wxBusyInfo"
698dcdb6 360ac_help="$ac_help
b3e8d00a 361 --enable-joystick use wxJoystick (Linux only)"
698dcdb6 362ac_help="$ac_help
8168de4c 363 --enable-metafiles use wxMetaFile (Windows only)"
24fd6d87
VZ
364ac_help="$ac_help
365 --enable-dragimage use wxDragImage"
edae8572
VZ
366ac_help="$ac_help
367 --enable-palette use wxPalette class"
1e6feb95 368ac_help="$ac_help
8168de4c 369 --enable-image use wxImage class"
698dcdb6 370ac_help="$ac_help
8168de4c 371 --enable-gif use gif images (GIF file format)"
698dcdb6 372ac_help="$ac_help
8168de4c 373 --enable-pcx use pcx images (PCX file format)"
698dcdb6 374ac_help="$ac_help
8168de4c 375 --enable-pnm use pnm images (PNM file format)"
698dcdb6 376ac_help="$ac_help
8168de4c 377 --enable-xpm use xpm images (XPM file format)"
698dcdb6
VZ
378ac_help="$ac_help
379 --with-gtk-prefix=PFX Prefix where GTK is installed (optional)"
380ac_help="$ac_help
381 --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)"
382ac_help="$ac_help
383 --disable-gtktest Do not try to compile and run a test GTK program"
384ac_help="$ac_help
385 --with-x use the X Window System"
10f2d63a
VZ
386
387# Initialize some variables set by options.
388# The variables have the same names as the options, with
389# dashes changed to underlines.
698dcdb6
VZ
390build=NONE
391cache_file=./config.cache
10f2d63a 392exec_prefix=NONE
698dcdb6 393host=NONE
10f2d63a 394no_create=
698dcdb6 395nonopt=NONE
10f2d63a
VZ
396no_recursion=
397prefix=NONE
398program_prefix=NONE
399program_suffix=NONE
400program_transform_name=s,x,x,
401silent=
402site=
403srcdir=
698dcdb6 404target=NONE
10f2d63a
VZ
405verbose=
406x_includes=NONE
407x_libraries=NONE
408bindir='${exec_prefix}/bin'
409sbindir='${exec_prefix}/sbin'
410libexecdir='${exec_prefix}/libexec'
411datadir='${prefix}/share'
412sysconfdir='${prefix}/etc'
413sharedstatedir='${prefix}/com'
414localstatedir='${prefix}/var'
415libdir='${exec_prefix}/lib'
416includedir='${prefix}/include'
417oldincludedir='/usr/include'
418infodir='${prefix}/info'
419mandir='${prefix}/man'
420
698dcdb6
VZ
421# Initialize some other variables.
422subdirs=
423MFLAGS= MAKEFLAGS=
424SHELL=${CONFIG_SHELL-/bin/sh}
425# Maximum number of lines to put in a shell here document.
426ac_max_here_lines=12
10f2d63a
VZ
427
428ac_prev=
429for ac_option
430do
698dcdb6 431
10f2d63a
VZ
432 # If the previous option needs an argument, assign it.
433 if test -n "$ac_prev"; then
434 eval "$ac_prev=\$ac_option"
435 ac_prev=
436 continue
437 fi
438
698dcdb6
VZ
439 case "$ac_option" in
440 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
441 *) ac_optarg= ;;
442 esac
10f2d63a
VZ
443
444 # Accept the important Cygnus configure options, so we can diagnose typos.
445
698dcdb6 446 case "$ac_option" in
10f2d63a
VZ
447
448 -bindir | --bindir | --bindi | --bind | --bin | --bi)
449 ac_prev=bindir ;;
450 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
698dcdb6 451 bindir="$ac_optarg" ;;
10f2d63a
VZ
452
453 -build | --build | --buil | --bui | --bu)
698dcdb6 454 ac_prev=build ;;
10f2d63a 455 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
698dcdb6 456 build="$ac_optarg" ;;
10f2d63a
VZ
457
458 -cache-file | --cache-file | --cache-fil | --cache-fi \
459 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
460 ac_prev=cache_file ;;
461 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
462 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
698dcdb6 463 cache_file="$ac_optarg" ;;
10f2d63a
VZ
464
465 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
466 ac_prev=datadir ;;
467 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
468 | --da=*)
698dcdb6 469 datadir="$ac_optarg" ;;
10f2d63a
VZ
470
471 -disable-* | --disable-*)
698dcdb6 472 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
10f2d63a 473 # Reject names that are not valid shell variable names.
698dcdb6
VZ
474 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
475 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
476 fi
477 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
478 eval "enable_${ac_feature}=no" ;;
10f2d63a
VZ
479
480 -enable-* | --enable-*)
698dcdb6 481 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
10f2d63a 482 # Reject names that are not valid shell variable names.
698dcdb6
VZ
483 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
484 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
485 fi
486 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
487 case "$ac_option" in
488 *=*) ;;
10f2d63a
VZ
489 *) ac_optarg=yes ;;
490 esac
698dcdb6 491 eval "enable_${ac_feature}='$ac_optarg'" ;;
10f2d63a
VZ
492
493 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
494 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
495 | --exec | --exe | --ex)
496 ac_prev=exec_prefix ;;
497 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
498 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
499 | --exec=* | --exe=* | --ex=*)
698dcdb6 500 exec_prefix="$ac_optarg" ;;
10f2d63a
VZ
501
502 -gas | --gas | --ga | --g)
503 # Obsolete; use --with-gas.
504 with_gas=yes ;;
505
698dcdb6
VZ
506 -help | --help | --hel | --he)
507 # Omit some internal or obsolete options to make the list less imposing.
508 # This message is too long to be a string in the A/UX 3.1 sh.
509 cat << EOF
510Usage: configure [options] [host]
511Options: [defaults in brackets after descriptions]
512Configuration:
513 --cache-file=FILE cache test results in FILE
514 --help print this message
515 --no-create do not create output files
516 --quiet, --silent do not print \`checking...' messages
517 --version print the version of autoconf that created configure
518Directory and file names:
519 --prefix=PREFIX install architecture-independent files in PREFIX
520 [$ac_default_prefix]
521 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
522 [same as prefix]
523 --bindir=DIR user executables in DIR [EPREFIX/bin]
524 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
525 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
526 --datadir=DIR read-only architecture-independent data in DIR
527 [PREFIX/share]
528 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
529 --sharedstatedir=DIR modifiable architecture-independent data in DIR
530 [PREFIX/com]
531 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
532 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
533 --includedir=DIR C header files in DIR [PREFIX/include]
534 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
535 --infodir=DIR info documentation in DIR [PREFIX/info]
536 --mandir=DIR man documentation in DIR [PREFIX/man]
537 --srcdir=DIR find the sources in DIR [configure dir or ..]
538 --program-prefix=PREFIX prepend PREFIX to installed program names
539 --program-suffix=SUFFIX append SUFFIX to installed program names
540 --program-transform-name=PROGRAM
541 run sed PROGRAM on installed program names
542EOF
543 cat << EOF
544Host type:
545 --build=BUILD configure for building on BUILD [BUILD=HOST]
546 --host=HOST configure for HOST [guessed]
547 --target=TARGET configure for TARGET [TARGET=HOST]
548Features and packages:
549 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
550 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
551 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
552 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
553 --x-includes=DIR X include files are in DIR
554 --x-libraries=DIR X library files are in DIR
555EOF
556 if test -n "$ac_help"; then
557 echo "--enable and --with options recognized:$ac_help"
558 fi
559 exit 0 ;;
10f2d63a
VZ
560
561 -host | --host | --hos | --ho)
698dcdb6 562 ac_prev=host ;;
10f2d63a 563 -host=* | --host=* | --hos=* | --ho=*)
698dcdb6 564 host="$ac_optarg" ;;
10f2d63a
VZ
565
566 -includedir | --includedir | --includedi | --included | --include \
567 | --includ | --inclu | --incl | --inc)
568 ac_prev=includedir ;;
569 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
570 | --includ=* | --inclu=* | --incl=* | --inc=*)
698dcdb6 571 includedir="$ac_optarg" ;;
10f2d63a
VZ
572
573 -infodir | --infodir | --infodi | --infod | --info | --inf)
574 ac_prev=infodir ;;
575 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
698dcdb6 576 infodir="$ac_optarg" ;;
10f2d63a
VZ
577
578 -libdir | --libdir | --libdi | --libd)
579 ac_prev=libdir ;;
580 -libdir=* | --libdir=* | --libdi=* | --libd=*)
698dcdb6 581 libdir="$ac_optarg" ;;
10f2d63a
VZ
582
583 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
584 | --libexe | --libex | --libe)
585 ac_prev=libexecdir ;;
586 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
587 | --libexe=* | --libex=* | --libe=*)
698dcdb6 588 libexecdir="$ac_optarg" ;;
10f2d63a
VZ
589
590 -localstatedir | --localstatedir | --localstatedi | --localstated \
591 | --localstate | --localstat | --localsta | --localst \
592 | --locals | --local | --loca | --loc | --lo)
593 ac_prev=localstatedir ;;
594 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
595 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
596 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
698dcdb6 597 localstatedir="$ac_optarg" ;;
10f2d63a
VZ
598
599 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
600 ac_prev=mandir ;;
601 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
698dcdb6 602 mandir="$ac_optarg" ;;
10f2d63a
VZ
603
604 -nfp | --nfp | --nf)
605 # Obsolete; use --without-fp.
606 with_fp=no ;;
607
608 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
609 | --no-cr | --no-c)
610 no_create=yes ;;
611
612 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
613 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
614 no_recursion=yes ;;
615
616 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
617 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
618 | --oldin | --oldi | --old | --ol | --o)
619 ac_prev=oldincludedir ;;
620 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
621 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
622 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
698dcdb6 623 oldincludedir="$ac_optarg" ;;
10f2d63a
VZ
624
625 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
626 ac_prev=prefix ;;
627 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
698dcdb6 628 prefix="$ac_optarg" ;;
10f2d63a
VZ
629
630 -program-prefix | --program-prefix | --program-prefi | --program-pref \
631 | --program-pre | --program-pr | --program-p)
632 ac_prev=program_prefix ;;
633 -program-prefix=* | --program-prefix=* | --program-prefi=* \
634 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
698dcdb6 635 program_prefix="$ac_optarg" ;;
10f2d63a
VZ
636
637 -program-suffix | --program-suffix | --program-suffi | --program-suff \
638 | --program-suf | --program-su | --program-s)
639 ac_prev=program_suffix ;;
640 -program-suffix=* | --program-suffix=* | --program-suffi=* \
641 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
698dcdb6 642 program_suffix="$ac_optarg" ;;
10f2d63a
VZ
643
644 -program-transform-name | --program-transform-name \
645 | --program-transform-nam | --program-transform-na \
646 | --program-transform-n | --program-transform- \
647 | --program-transform | --program-transfor \
648 | --program-transfo | --program-transf \
649 | --program-trans | --program-tran \
650 | --progr-tra | --program-tr | --program-t)
651 ac_prev=program_transform_name ;;
652 -program-transform-name=* | --program-transform-name=* \
653 | --program-transform-nam=* | --program-transform-na=* \
654 | --program-transform-n=* | --program-transform-=* \
655 | --program-transform=* | --program-transfor=* \
656 | --program-transfo=* | --program-transf=* \
657 | --program-trans=* | --program-tran=* \
658 | --progr-tra=* | --program-tr=* | --program-t=*)
698dcdb6 659 program_transform_name="$ac_optarg" ;;
10f2d63a
VZ
660
661 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
662 | -silent | --silent | --silen | --sile | --sil)
663 silent=yes ;;
664
665 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
666 ac_prev=sbindir ;;
667 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
668 | --sbi=* | --sb=*)
698dcdb6 669 sbindir="$ac_optarg" ;;
10f2d63a
VZ
670
671 -sharedstatedir | --sharedstatedir | --sharedstatedi \
672 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
673 | --sharedst | --shareds | --shared | --share | --shar \
674 | --sha | --sh)
675 ac_prev=sharedstatedir ;;
676 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
677 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
678 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
679 | --sha=* | --sh=*)
698dcdb6 680 sharedstatedir="$ac_optarg" ;;
10f2d63a
VZ
681
682 -site | --site | --sit)
683 ac_prev=site ;;
684 -site=* | --site=* | --sit=*)
698dcdb6 685 site="$ac_optarg" ;;
10f2d63a
VZ
686
687 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
688 ac_prev=srcdir ;;
689 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
698dcdb6 690 srcdir="$ac_optarg" ;;
10f2d63a
VZ
691
692 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
693 | --syscon | --sysco | --sysc | --sys | --sy)
694 ac_prev=sysconfdir ;;
695 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
696 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
698dcdb6 697 sysconfdir="$ac_optarg" ;;
10f2d63a
VZ
698
699 -target | --target | --targe | --targ | --tar | --ta | --t)
698dcdb6 700 ac_prev=target ;;
10f2d63a 701 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
698dcdb6 702 target="$ac_optarg" ;;
10f2d63a
VZ
703
704 -v | -verbose | --verbose | --verbos | --verbo | --verb)
705 verbose=yes ;;
706
698dcdb6
VZ
707 -version | --version | --versio | --versi | --vers)
708 echo "configure generated by autoconf version 2.13"
709 exit 0 ;;
10f2d63a
VZ
710
711 -with-* | --with-*)
698dcdb6 712 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
10f2d63a 713 # Reject names that are not valid shell variable names.
698dcdb6
VZ
714 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
715 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
716 fi
10f2d63a 717 ac_package=`echo $ac_package| sed 's/-/_/g'`
698dcdb6
VZ
718 case "$ac_option" in
719 *=*) ;;
10f2d63a
VZ
720 *) ac_optarg=yes ;;
721 esac
698dcdb6 722 eval "with_${ac_package}='$ac_optarg'" ;;
10f2d63a
VZ
723
724 -without-* | --without-*)
698dcdb6 725 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
10f2d63a 726 # Reject names that are not valid shell variable names.
698dcdb6
VZ
727 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
728 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
729 fi
730 ac_package=`echo $ac_package| sed 's/-/_/g'`
731 eval "with_${ac_package}=no" ;;
10f2d63a
VZ
732
733 --x)
734 # Obsolete; use --with-x.
735 with_x=yes ;;
736
737 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
738 | --x-incl | --x-inc | --x-in | --x-i)
739 ac_prev=x_includes ;;
740 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
741 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
698dcdb6 742 x_includes="$ac_optarg" ;;
10f2d63a
VZ
743
744 -x-libraries | --x-libraries | --x-librarie | --x-librari \
745 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
746 ac_prev=x_libraries ;;
747 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
748 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
698dcdb6 749 x_libraries="$ac_optarg" ;;
10f2d63a 750
698dcdb6 751 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
10f2d63a
VZ
752 ;;
753
754 *)
698dcdb6
VZ
755 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
756 echo "configure: warning: $ac_option: invalid host type" 1>&2
757 fi
758 if test "x$nonopt" != xNONE; then
759 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
760 fi
761 nonopt="$ac_option"
10f2d63a
VZ
762 ;;
763
764 esac
765done
766
767if test -n "$ac_prev"; then
698dcdb6
VZ
768 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
769fi
770
771trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
772
773# File descriptor usage:
774# 0 standard input
775# 1 file creation
776# 2 errors and warnings
777# 3 some systems may open it to /dev/tty
778# 4 used on the Kubota Titan
779# 6 checking for... messages and results
780# 5 compiler messages saved in config.log
781if test "$silent" = yes; then
782 exec 6>/dev/null
783else
784 exec 6>&1
10f2d63a 785fi
698dcdb6
VZ
786exec 5>./config.log
787
788echo "\
789This file contains any messages produced by compilers while
790running configure, to aid debugging if configure makes a mistake.
791" 1>&5
10f2d63a 792
698dcdb6
VZ
793# Strip out --no-create and --no-recursion so they do not pile up.
794# Also quote any args containing shell metacharacters.
795ac_configure_args=
796for ac_arg
10f2d63a 797do
698dcdb6
VZ
798 case "$ac_arg" in
799 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
800 | --no-cr | --no-c) ;;
801 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
802 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
803 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
804 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
805 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
10f2d63a
VZ
806 esac
807done
808
698dcdb6
VZ
809# NLS nuisances.
810# Only set these to C if already set. These must not be set unconditionally
811# because not all systems understand e.g. LANG=C (notably SCO).
812# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
813# Non-C LC_CTYPE values break the ctype check.
814if test "${LANG+set}" = set; then LANG=C; export LANG; fi
815if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
816if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
817if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
10f2d63a 818
698dcdb6
VZ
819# confdefs.h avoids OS command line length limits that DEFS can exceed.
820rm -rf conftest* confdefs.h
821# AIX cpp loses on an empty file, so make sure it contains at least a newline.
822echo > confdefs.h
10f2d63a 823
698dcdb6
VZ
824# A filename unique to this package, relative to the directory that
825# configure is in, which we can look for to find out if srcdir is correct.
826ac_unique_file=wx-config.in
10f2d63a
VZ
827
828# Find the source files, if location was not specified.
829if test -z "$srcdir"; then
830 ac_srcdir_defaulted=yes
831 # Try the directory containing this script, then its parent.
832 ac_prog=$0
698dcdb6 833 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
10f2d63a
VZ
834 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
835 srcdir=$ac_confdir
836 if test ! -r $srcdir/$ac_unique_file; then
837 srcdir=..
838 fi
839else
840 ac_srcdir_defaulted=no
841fi
842if test ! -r $srcdir/$ac_unique_file; then
843 if test "$ac_srcdir_defaulted" = yes; then
698dcdb6 844 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
10f2d63a 845 else
698dcdb6 846 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
10f2d63a
VZ
847 fi
848fi
698dcdb6 849srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
10f2d63a
VZ
850
851# Prefer explicitly selected file to automatically selected ones.
852if test -z "$CONFIG_SITE"; then
853 if test "x$prefix" != xNONE; then
854 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
855 else
856 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
857 fi
858fi
859for ac_site_file in $CONFIG_SITE; do
860 if test -r "$ac_site_file"; then
698dcdb6 861 echo "loading site script $ac_site_file"
10f2d63a
VZ
862 . "$ac_site_file"
863 fi
864done
865
866if test -r "$cache_file"; then
698dcdb6
VZ
867 echo "loading cache $cache_file"
868 . $cache_file
10f2d63a 869else
698dcdb6
VZ
870 echo "creating cache $cache_file"
871 > $cache_file
10f2d63a
VZ
872fi
873
874ac_ext=c
698dcdb6 875# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10f2d63a 876ac_cpp='$CPP $CPPFLAGS'
698dcdb6
VZ
877ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
878ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
879cross_compiling=$ac_cv_prog_cc_cross
880
881ac_exeext=
882ac_objext=o
883if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
884 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
885 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
886 ac_n= ac_c='
887' ac_t=' '
888 else
889 ac_n=-n ac_c= ac_t=
890 fi
10f2d63a 891else
698dcdb6 892 ac_n= ac_c='\c' ac_t=
10f2d63a 893fi
698dcdb6
VZ
894
895
10f2d63a 896
7c66a493
VZ
897ac_aux_dir=
898for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
899 if test -f $ac_dir/install-sh; then
900 ac_aux_dir=$ac_dir
901 ac_install_sh="$ac_aux_dir/install-sh -c"
902 break
903 elif test -f $ac_dir/install.sh; then
904 ac_aux_dir=$ac_dir
905 ac_install_sh="$ac_aux_dir/install.sh -c"
906 break
907 fi
908done
909if test -z "$ac_aux_dir"; then
698dcdb6 910 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
7c66a493 911fi
698dcdb6
VZ
912ac_config_guess=$ac_aux_dir/config.guess
913ac_config_sub=$ac_aux_dir/config.sub
914ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
703e0a69 915
698dcdb6
VZ
916
917# Do some error checking and defaulting for the host and target type.
918# The inputs are:
919# configure --host=HOST --target=TARGET --build=BUILD NONOPT
920#
921# The rules are:
922# 1. You are not allowed to specify --host, --target, and nonopt at the
923# same time.
924# 2. Host defaults to nonopt.
925# 3. If nonopt is not specified, then host defaults to the current host,
926# as determined by config.guess.
927# 4. Target and build default to nonopt.
928# 5. If nonopt is not specified, then target and build default to host.
7c66a493
VZ
929
930# The aliases save the names the user supplied, while $host etc.
931# will get canonicalized.
698dcdb6
VZ
932case $host---$target---$nonopt in
933NONE---*---* | *---NONE---* | *---*---NONE) ;;
934*) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
935esac
936
937
938# Make sure we can run config.sub.
939if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
940else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
941fi
942
943echo $ac_n "checking host system type""... $ac_c" 1>&6
9926e4a4 944echo "configure:945: checking host system type" >&5
698dcdb6
VZ
945
946host_alias=$host
947case "$host_alias" in
948NONE)
949 case $nonopt in
950 NONE)
951 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
952 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
953 fi ;;
954 *) host_alias=$nonopt ;;
955 esac ;;
956esac
957
958host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
959host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
960host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
961host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
962echo "$ac_t""$host" 1>&6
963
964echo $ac_n "checking target system type""... $ac_c" 1>&6
9926e4a4 965echo "configure:966: checking target system type" >&5
698dcdb6
VZ
966
967target_alias=$target
968case "$target_alias" in
969NONE)
970 case $nonopt in
971 NONE) target_alias=$host_alias ;;
972 *) target_alias=$nonopt ;;
973 esac ;;
974esac
975
976target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
977target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
978target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
979target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
980echo "$ac_t""$target" 1>&6
981
982echo $ac_n "checking build system type""... $ac_c" 1>&6
9926e4a4 983echo "configure:984: checking build system type" >&5
698dcdb6
VZ
984
985build_alias=$build
986case "$build_alias" in
987NONE)
988 case $nonopt in
989 NONE) build_alias=$host_alias ;;
990 *) build_alias=$nonopt ;;
991 esac ;;
992esac
993
994build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
995build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
996build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
997build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
998echo "$ac_t""$build" 1>&6
999
1000test "$host_alias" != "$target_alias" &&
7c66a493
VZ
1001 test "$program_prefix$program_suffix$program_transform_name" = \
1002 NONENONEs,x,x, &&
1003 program_prefix=${target_alias}-
1004
698dcdb6
VZ
1005
1006
10f2d63a 1007WX_MAJOR_VERSION_NUMBER=2
37d403aa 1008WX_MINOR_VERSION_NUMBER=3
6c01ec02 1009WX_RELEASE_NUMBER=2
10f2d63a 1010
10f2d63a 1011WX_VERSION=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER.$WX_RELEASE_NUMBER
10f2d63a 1012WX_RELEASE=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER
6426998c 1013
978f1259
RL
1014WX_MSW_VERSION=$WX_MAJOR_VERSION_NUMBER$WX_MINOR_VERSION_NUMBER$WX_RELEASE_NUMBER
1015
6c01ec02 1016WX_CURRENT=1
6426998c
RL
1017WX_REVISION=0
1018WX_AGE=0
1019
698dcdb6
VZ
1020
1021
10f2d63a
VZ
1022USE_UNIX=1
1023USE_WIN32=0
b12915c1 1024USE_BEOS=0
1216f52d 1025USE_MAC=0
b12915c1 1026
10f2d63a
VZ
1027USE_LINUX=
1028USE_SGI=
1029USE_HPUX=
1030USE_SYSV=
1031USE_SVR4=
1032USE_AIX=
1033USE_SUN=
1034USE_SOLARIS=
1035USE_SUNOS=
1036USE_ALPHA=
1037USE_OSF=
1038USE_BSD=
f11bdd03 1039USE_DARWIN=
10f2d63a 1040USE_FREEBSD=
95c8801c 1041USE_OPENBSD=
f6bcfd97 1042USE_NETBSD=
10f2d63a
VZ
1043USE_VMS=
1044USE_ULTRIX=
10f2d63a
VZ
1045USE_DATA_GENERAL=
1046
ab9b9eab
VZ
1047NEEDS_D_REENTRANT_FOR_R_FUNCS=0
1048
77e13408 1049ALL_TOOLKITS="GTK MAC MGL MOTIF MSW PM WINE"
10f2d63a
VZ
1050
1051DEFAULT_wxUSE_GTK=0
1e6feb95
VZ
1052DEFAULT_wxUSE_MAC=0
1053DEFAULT_wxUSE_MGL=0
10f2d63a
VZ
1054DEFAULT_wxUSE_MOTIF=0
1055DEFAULT_wxUSE_MSW=0
e07802fc 1056DEFAULT_wxUSE_PM=0
1e6feb95 1057DEFAULT_wxUSE_WINE=0
10f2d63a
VZ
1058
1059DEFAULT_DEFAULT_wxUSE_GTK=0
1e6feb95
VZ
1060DEFAULT_DEFAULT_wxUSE_MAC=0
1061DEFAULT_DEFAULT_wxUSE_MGL=0
10f2d63a
VZ
1062DEFAULT_DEFAULT_wxUSE_MOTIF=0
1063DEFAULT_DEFAULT_wxUSE_MSW=0
e07802fc 1064DEFAULT_DEFAULT_wxUSE_PM=0
1e6feb95 1065DEFAULT_DEFAULT_wxUSE_WINE=0
10f2d63a 1066
d6a55c4b 1067PROGRAM_EXT=
3a922bb4 1068SO_SUFFIX=so
d6a55c4b 1069
10f2d63a
VZ
1070case "${host}" in
1071 *-hp-hpux* )
1072 USE_HPUX=1
1073 DEFAULT_DEFAULT_wxUSE_MOTIF=1
ab9b9eab 1074 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
3a922bb4 1075 SO_SUFFIX=sl
698dcdb6 1076 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1077#define __HPUX__ 1
1078EOF
1079
1080 ;;
1081 *-*-linux* )
1082 USE_LINUX=1
698dcdb6 1083 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1084#define __LINUX__ 1
1085EOF
1086
1087 TMP=`uname -m`
1088 if test "x$TMP" = "xalpha"; then
1089 USE_ALPHA=1
698dcdb6 1090 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1091#define __ALPHA__ 1
1092EOF
1093
1094 fi
1095 DEFAULT_DEFAULT_wxUSE_GTK=1
1096 ;;
1097 *-*-irix5* | *-*-irix6* )
1098 USE_SGI=1
1099 USE_SVR4=1
698dcdb6 1100 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1101#define __SGI__ 1
1102EOF
1103
698dcdb6 1104 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1105#define __SVR4__ 1
1106EOF
1107
1108 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1109 ;;
1110 *-*-solaris2* )
1111 USE_SUN=1
1112 USE_SOLARIS=1
1113 USE_SVR4=1
698dcdb6 1114 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1115#define __SUN__ 1
1116EOF
1117
698dcdb6 1118 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1119#define __SOLARIS__ 1
1120EOF
1121
698dcdb6 1122 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1123#define __SVR4__ 1
1124EOF
1125
1126 DEFAULT_DEFAULT_wxUSE_MOTIF=1
ab9b9eab 1127 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
10f2d63a
VZ
1128 ;;
1129 *-*-sunos4* )
1130 USE_SUN=1
1131 USE_SUNOS=1
1132 USE_BSD=1
698dcdb6 1133 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1134#define __SUN__ 1
1135EOF
1136
698dcdb6 1137 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1138#define __SUNOS__ 1
1139EOF
1140
698dcdb6 1141 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1142#define __BSD__ 1
1143EOF
1144
1145 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1146 ;;
f6bcfd97 1147 *-*-freebsd*)
10f2d63a
VZ
1148 USE_BSD=1
1149 USE_FREEBSD=1
698dcdb6 1150 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1151#define __FREEBSD__ 1
1152EOF
1153
698dcdb6 1154 cat >> confdefs.h <<\EOF
10f2d63a 1155#define __BSD__ 1
95c8801c
VS
1156EOF
1157
1158 DEFAULT_DEFAULT_wxUSE_GTK=1
1159 ;;
1160 *-*-openbsd*)
1161 USE_BSD=1
1162 USE_OPENBSD=1
698dcdb6 1163 cat >> confdefs.h <<\EOF
95c8801c
VS
1164#define __FREEBSD__ 1
1165EOF
1166
698dcdb6 1167 cat >> confdefs.h <<\EOF
95c8801c 1168#define __OPENBSD__ 1
f6bcfd97
BP
1169EOF
1170
1171 DEFAULT_DEFAULT_wxUSE_GTK=1
1172 ;;
1173 *-*-netbsd*)
1174 USE_BSD=1
1175 USE_NETBSD=1
698dcdb6 1176 cat >> confdefs.h <<\EOF
f6bcfd97
BP
1177#define __FREEBSD__ 1
1178EOF
1179
698dcdb6 1180 cat >> confdefs.h <<\EOF
f6bcfd97 1181#define __NETBSD__ 1
10f2d63a
VZ
1182EOF
1183
1184 DEFAULT_DEFAULT_wxUSE_GTK=1
1185 ;;
1186 *-*-osf* )
1187 USE_ALPHA=1
1188 USE_OSF=1
698dcdb6 1189 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1190#define __ALPHA__ 1
1191EOF
1192
698dcdb6 1193 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1194#define __OSF__ 1
1195EOF
1196
1197 DEFAULT_DEFAULT_wxUSE_MOTIF=1
f6bcfd97 1198 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
10f2d63a
VZ
1199 ;;
1200 *-*-dgux5* )
1201 USE_ALPHA=1
1202 USE_SVR4=1
698dcdb6 1203 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1204#define __ALPHA__ 1
1205EOF
1206
698dcdb6 1207 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1208#define __SVR4__ 1
1209EOF
1210
1211 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1212 ;;
1213 *-*-sysv5* )
1214 USE_SYSV=1
1215 USE_SVR4=1
698dcdb6 1216 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1217#define __SYSV__ 1
1218EOF
1219
698dcdb6 1220 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1221#define __SVR4__ 1
1222EOF
1223
1224 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1225 ;;
1226 *-*-aix* )
1227 USE_AIX=1
1228 USE_SYSV=1
1229 USE_SVR4=1
698dcdb6 1230 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1231#define __AIX__ 1
1232EOF
1233
698dcdb6 1234 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1235#define __SYSV__ 1
1236EOF
1237
698dcdb6 1238 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1239#define __SVR4__ 1
1240EOF
1241
1242 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1243 ;;
1244
1c8183e2 1245 *-*-cygwin* | *-*-mingw32* )
10f2d63a
VZ
1246 USE_UNIX=0
1247 USE_WIN32=1
3a922bb4 1248 SO_SUFFIX=dll
698dcdb6 1249 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1250#define __WIN32__ 1
1251EOF
1252
698dcdb6 1253 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1254#define __WIN95__ 1
1255EOF
1256
698dcdb6 1257 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1258#define __WINDOWS__ 1
1259EOF
1260
698dcdb6 1261 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1262#define __GNUWIN32__ 1
1263EOF
1264
698dcdb6 1265 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1266#define STRICT 1
1267EOF
1268
698dcdb6 1269 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1270#define WINVER 0x0400
1271EOF
1272
cf27ef00 1273 PROGRAM_EXT=".exe"
7b7a7637 1274 RESCOMP=windres
10f2d63a
VZ
1275 DEFAULT_DEFAULT_wxUSE_MSW=1
1276 ;;
1277
6fa882bd 1278 *-pc-os2_emx | *-pc-os2-emx )
698dcdb6 1279 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1280#define __EMX__ 1
1281EOF
1282
cf27ef00 1283 PROGRAM_EXT=".exe"
e07802fc 1284 DEFAULT_DEFAULT_wxUSE_PM=1
10f2d63a
VZ
1285 ;;
1286
d08b457b
GD
1287 powerpc-*-darwin* )
1288 USE_BSD=1
f11bdd03 1289 USE_DARWIN=1
3a922bb4 1290 SO_SUFFIX=dylib
698dcdb6 1291 cat >> confdefs.h <<\EOF
f11bdd03 1292#define __BSD__ 1
b4085ce6
GD
1293EOF
1294
698dcdb6 1295 cat >> confdefs.h <<\EOF
f11bdd03 1296#define __DARWIN__ 1
d08b457b
GD
1297EOF
1298
1299 cat >> confdefs.h <<\EOF
1300#define __POWERPC__ 1
b4085ce6
GD
1301EOF
1302
1303 DEFAULT_DEFAULT_wxUSE_MAC=1
1304 ;;
1305
b12915c1
VZ
1306 *-*-beos* )
1307 USE_BEOS=1
698dcdb6 1308 cat >> confdefs.h <<\EOF
b12915c1
VZ
1309#define __BEOS__ 1
1310EOF
1311
1312 ;;
1313
10f2d63a 1314 *)
698dcdb6 1315 { echo "configure: error: unknown system type ${host}." 1>&2; exit 1; }
10f2d63a
VZ
1316esac
1317
1318if test "$USE_UNIX" = 1 ; then
b12915c1 1319 wxUSE_UNIX=yes
698dcdb6 1320 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1321#define __UNIX__ 1
1322EOF
1323
10f2d63a
VZ
1324fi
1325
2389f33b
VZ
1326if test "$USE_LINUX" = 1; then
1327 echo $ac_n "checking for glibc 2.1 or later""... $ac_c" 1>&6
9926e4a4 1328echo "configure:1329: checking for glibc 2.1 or later" >&5
2389f33b
VZ
1329if eval "test \"`echo '$''{'wx_lib_glibc21'+set}'`\" = set"; then
1330 echo $ac_n "(cached) $ac_c" 1>&6
1331else
1332 cat > conftest.$ac_ext <<EOF
9926e4a4 1333#line 1334 "configure"
2389f33b
VZ
1334#include "confdefs.h"
1335#include <features.h>
1336int main() {
1337
1338 #if !__GLIBC_PREREQ(2, 1)
1339 #error not glibc2.1
1340 #endif
1341
1342; return 0; }
1343EOF
9926e4a4 1344if { (eval echo configure:1345: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2389f33b
VZ
1345 rm -rf conftest*
1346
1347 wx_lib_glibc21=yes
1348
1349else
1350 echo "configure: failed program was:" >&5
1351 cat conftest.$ac_ext >&5
1352 rm -rf conftest*
1353
1354 wx_lib_glibc21=no
1355
1356
1357fi
1358rm -f conftest*
1359
1360fi
1361
1362echo "$ac_t""$wx_lib_glibc21" 1>&6
2389f33b
VZ
1363 if test "$wx_lib_glibc21" = "yes"; then
1364 cat >> confdefs.h <<\EOF
1365#define wxHAVE_GLIBC2 1
1366EOF
1367
1368 fi
1369fi
10f2d63a 1370
1e487827 1371
1e487827 1372
6232543b 1373
10f2d63a
VZ
1374 wx_arg_cache_file="configarg.cache"
1375 echo "loading argument cache $wx_arg_cache_file"
1376 rm -f ${wx_arg_cache_file}.tmp
1377 touch ${wx_arg_cache_file}.tmp
1378 touch ${wx_arg_cache_file}
698dcdb6 1379
10f2d63a
VZ
1380
1381DEBUG_CONFIGURE=0
1382if test $DEBUG_CONFIGURE = 1; then
1e6feb95
VZ
1383 DEFAULT_wxUSE_UNIVERSAL=no
1384
10f2d63a
VZ
1385 DEFAULT_wxUSE_THREADS=yes
1386
1387 DEFAULT_wxUSE_SHARED=yes
3a922bb4 1388 DEFAULT_wxUSE_SONAME=no
1e6feb95 1389 DEFAULT_wxUSE_OPTIMISE=no
10f2d63a
VZ
1390 DEFAULT_wxUSE_PROFILE=no
1391 DEFAULT_wxUSE_NO_DEPS=no
f676c7ff
MB
1392 DEFAULT_wxUSE_NO_RTTI=yes
1393 DEFAULT_wxUSE_NO_EXCEPTIONS=yes
10f2d63a
VZ
1394 DEFAULT_wxUSE_PERMISSIVE=no
1395 DEFAULT_wxUSE_DEBUG_FLAG=yes
1396 DEFAULT_wxUSE_DEBUG_INFO=yes
1397 DEFAULT_wxUSE_DEBUG_GDB=yes
1398 DEFAULT_wxUSE_MEM_TRACING=no
1399 DEFAULT_wxUSE_DEBUG_CONTEXT=no
1400 DEFAULT_wxUSE_DMALLOC=no
683dccda 1401 DEFAULT_wxUSE_PRECOMP=yes
10f2d63a
VZ
1402 DEFAULT_wxUSE_APPLE_IEEE=no
1403
1404 DEFAULT_wxUSE_LOG=yes
1e6feb95
VZ
1405 DEFAULT_wxUSE_LOGWINDOW=no
1406 DEFAULT_wxUSE_LOGGUI=no
69d27ff7 1407 DEFAULT_wxUSE_LOGDIALOG=no
10f2d63a
VZ
1408
1409 DEFAULT_wxUSE_GUI=yes
1e6feb95 1410 DEFAULT_wxUSE_CONTROLS=no
10f2d63a 1411
3e44f09d 1412 DEFAULT_wxUSE_REGEX=no
10f2d63a
VZ
1413 DEFAULT_wxUSE_ZLIB=no
1414 DEFAULT_wxUSE_LIBPNG=no
1415 DEFAULT_wxUSE_LIBJPEG=no
c7a2bf27 1416 DEFAULT_wxUSE_LIBTIFF=no
10f2d63a 1417 DEFAULT_wxUSE_ODBC=no
3fed1840 1418 DEFAULT_wxUSE_FREETYPE=no
bdad4e7e 1419 DEFAULT_wxUSE_OPENGL=no
10f2d63a 1420
eb4efbdc 1421 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=no
4f3c5f06 1422 DEFAULT_wxUSE_SNGLINST_CHECKER=no
10f2d63a 1423 DEFAULT_wxUSE_STD_IOSTREAM=no
1e6feb95
VZ
1424 DEFAULT_wxUSE_CMDLINE_PARSER=no
1425 DEFAULT_wxUSE_DATETIME=no
1426 DEFAULT_wxUSE_TIMEDATE=no
1427 DEFAULT_wxUSE_TIMER=no
1428 DEFAULT_wxUSE_STOPWATCH=no
10f2d63a 1429 DEFAULT_wxUSE_FILE=no
1e6feb95 1430 DEFAULT_wxUSE_FFILE=no
a3a584a7 1431 DEFAULT_wxUSE_TEXTBUFFER=no
10f2d63a 1432 DEFAULT_wxUSE_TEXTFILE=no
10f2d63a
VZ
1433 DEFAULT_wxUSE_WAVE=no
1434 DEFAULT_wxUSE_INTL=no
1435 DEFAULT_wxUSE_CONFIG=no
1e6feb95 1436 DEFAULT_wxUSE_FONTMAP=no
10f2d63a
VZ
1437 DEFAULT_wxUSE_STREAMS=no
1438 DEFAULT_wxUSE_SOCKETS=no
1439 DEFAULT_wxUSE_DIALUP_MANAGER=no
1440 DEFAULT_wxUSE_SERIAL=no
1441 DEFAULT_wxUSE_JOYSTICK=no
1442 DEFAULT_wxUSE_DYNLIB_CLASS=no
1443 DEFAULT_wxUSE_LONGLONG=no
e8f65ba6 1444 DEFAULT_wxUSE_GEOMETRY=no
10f2d63a
VZ
1445
1446 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no
1447 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no
1448 DEFAULT_wxUSE_POSTSCRIPT=no
1449
1450 DEFAULT_wxUSE_X_RESOURCES=no
1451 DEFAULT_wxUSE_CLIPBOARD=no
1452 DEFAULT_wxUSE_TOOLTIPS=no
1453 DEFAULT_wxUSE_DRAG_AND_DROP=no
24fd6d87 1454 DEFAULT_wxUSE_DRAGIMAGE=no
10f2d63a
VZ
1455 DEFAULT_wxUSE_SPLINES=no
1456
1457 DEFAULT_wxUSE_MDI_ARCHITECTURE=no
1458 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no
1459 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no
1460
1461 DEFAULT_wxUSE_PROLOGIO=no
1462 DEFAULT_wxUSE_RESOURCES=no
1463 DEFAULT_wxUSE_CONSTRAINTS=no
1464 DEFAULT_wxUSE_IPC=no
1465 DEFAULT_wxUSE_HELP=no
29fd3c0c 1466 DEFAULT_wxUSE_MS_HTML_HELP=no
3379ed37 1467 DEFAULT_wxUSE_WXHTML_HELP=no
24176f2c 1468 DEFAULT_wxUSE_TREELAYOUT=no
10f2d63a 1469 DEFAULT_wxUSE_METAFILE=no
1e6feb95 1470 DEFAULT_wxUSE_MIMETYPE=no
3e44f09d 1471 DEFAULT_wxUSE_SYSTEM_OPTIONS=yes
10f2d63a
VZ
1472
1473 DEFAULT_wxUSE_COMMONDLGS=no
1e6feb95
VZ
1474 DEFAULT_wxUSE_CHOICEDLG=no
1475 DEFAULT_wxUSE_COLOURDLG=no
10f2d63a 1476 DEFAULT_wxUSE_DIRDLG=no
1e6feb95 1477 DEFAULT_wxUSE_FILEDLG=no
8db37e06 1478 DEFAULT_wxUSE_FINDREPLDLG=no
1e6feb95
VZ
1479 DEFAULT_wxUSE_FONTDLG=no
1480 DEFAULT_wxUSE_MSGDLG=no
1481 DEFAULT_wxUSE_NUMBERDLG=no
10f2d63a 1482 DEFAULT_wxUSE_TEXTDLG=no
cbca9943 1483 DEFAULT_wxUSE_SPLASH=no
10f2d63a
VZ
1484 DEFAULT_wxUSE_STARTUP_TIPS=no
1485 DEFAULT_wxUSE_PROGRESSDLG=no
b1f5d087
VZ
1486 DEFAULT_wxUSE_WIZARDDLG=no
1487
1e6feb95 1488 DEFAULT_wxUSE_MENUS=no
10f2d63a
VZ
1489 DEFAULT_wxUSE_MINIFRAME=no
1490 DEFAULT_wxUSE_HTML=no
24528b0c 1491 DEFAULT_wxUSE_FILESYSTEM=no
10f2d63a
VZ
1492 DEFAULT_wxUSE_FS_INET=no
1493 DEFAULT_wxUSE_FS_ZIP=no
1494 DEFAULT_wxUSE_BUSYINFO=no
1495 DEFAULT_wxUSE_ZIPSTREAM=no
1e6feb95 1496 DEFAULT_wxUSE_VALIDATORS=no
10f2d63a
VZ
1497
1498 DEFAULT_wxUSE_ACCEL=no
1e6feb95 1499 DEFAULT_wxUSE_BUTTON=no
10f2d63a 1500 DEFAULT_wxUSE_BMPBUTTON=no
1e6feb95
VZ
1501 DEFAULT_wxUSE_CALCTRL=no
1502 DEFAULT_wxUSE_CARET=no
10f2d63a
VZ
1503 DEFAULT_wxUSE_CHECKBOX=no
1504 DEFAULT_wxUSE_CHECKLST=no
1e6feb95 1505 DEFAULT_wxUSE_CHOICE=no
10f2d63a
VZ
1506 DEFAULT_wxUSE_COMBOBOX=no
1507 DEFAULT_wxUSE_GAUGE=no
1508 DEFAULT_wxUSE_GRID=no
1509 DEFAULT_wxUSE_NEW_GRID=no
1510 DEFAULT_wxUSE_IMAGLIST=no
1511 DEFAULT_wxUSE_LISTBOX=no
1512 DEFAULT_wxUSE_LISTCTRL=no
1513 DEFAULT_wxUSE_NOTEBOOK=no
24176f2c 1514 DEFAULT_wxUSE_PROPSHEET=no
10f2d63a
VZ
1515 DEFAULT_wxUSE_RADIOBOX=no
1516 DEFAULT_wxUSE_RADIOBTN=no
1517 DEFAULT_wxUSE_SASH=no
1518 DEFAULT_wxUSE_SCROLLBAR=no
1519 DEFAULT_wxUSE_SLIDER=no
1520 DEFAULT_wxUSE_SPINBTN=no
56cfaa52 1521 DEFAULT_wxUSE_SPINCTRL=no
10f2d63a
VZ
1522 DEFAULT_wxUSE_SPLITTER=no
1523 DEFAULT_wxUSE_STATBMP=no
1524 DEFAULT_wxUSE_STATBOX=no
1525 DEFAULT_wxUSE_STATLINE=no
1e6feb95 1526 DEFAULT_wxUSE_STATTEXT=no
10f2d63a
VZ
1527 DEFAULT_wxUSE_STATUSBAR=yes
1528 DEFAULT_wxUSE_TABDIALOG=no
1e6feb95 1529 DEFAULT_wxUSE_TEXTCTRL=no
1db8dc4a 1530 DEFAULT_wxUSE_TOGGLEBTN=no
10f2d63a 1531 DEFAULT_wxUSE_TOOLBAR=no
360d6699
VZ
1532 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
1533 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
10f2d63a 1534 DEFAULT_wxUSE_TREECTRL=no
9f41d601 1535 DEFAULT_wxUSE_POPUPWIN=no
9926e4a4 1536 DEFAULT_wxUSE_TIPWINDOW=no
10f2d63a
VZ
1537
1538 DEFAULT_wxUSE_UNICODE=no
1539 DEFAULT_wxUSE_WCSRTOMBS=no
1540
edae8572 1541 DEFAULT_wxUSE_PALETTE=no
0046ff7c 1542 DEFAULT_wxUSE_IMAGE=no
10f2d63a
VZ
1543 DEFAULT_wxUSE_GIF=no
1544 DEFAULT_wxUSE_PCX=no
1545 DEFAULT_wxUSE_PNM=no
0046ff7c 1546 DEFAULT_wxUSE_XPM=no
10f2d63a 1547else
1e6feb95
VZ
1548 DEFAULT_wxUSE_UNIVERSAL=no
1549
10f2d63a
VZ
1550 DEFAULT_wxUSE_THREADS=yes
1551
1552 DEFAULT_wxUSE_SHARED=yes
3a922bb4 1553 DEFAULT_wxUSE_SONAME=no
10f2d63a
VZ
1554 DEFAULT_wxUSE_OPTIMISE=yes
1555 DEFAULT_wxUSE_PROFILE=no
1556 DEFAULT_wxUSE_NO_DEPS=no
f676c7ff
MB
1557 DEFAULT_wxUSE_NO_RTTI=yes
1558 DEFAULT_wxUSE_NO_EXCEPTIONS=yes
10f2d63a
VZ
1559 DEFAULT_wxUSE_PERMISSIVE=no
1560 DEFAULT_wxUSE_DEBUG_FLAG=no
1561 DEFAULT_wxUSE_DEBUG_INFO=no
1562 DEFAULT_wxUSE_DEBUG_GDB=no
1563 DEFAULT_wxUSE_MEM_TRACING=no
1564 DEFAULT_wxUSE_DEBUG_CONTEXT=no
1565 DEFAULT_wxUSE_DMALLOC=no
683dccda 1566 DEFAULT_wxUSE_PRECOMP=yes
10f2d63a
VZ
1567 DEFAULT_wxUSE_APPLE_IEEE=yes
1568
1569 DEFAULT_wxUSE_LOG=yes
d73be714
VZ
1570 DEFAULT_wxUSE_LOGWINDOW=yes
1571 DEFAULT_wxUSE_LOGGUI=yes
69d27ff7 1572 DEFAULT_wxUSE_LOGDIALOG=yes
10f2d63a
VZ
1573
1574 DEFAULT_wxUSE_GUI=yes
1575
831b3152 1576 DEFAULT_wxUSE_REGEX=yes
10f2d63a
VZ
1577 DEFAULT_wxUSE_ZLIB=yes
1578 DEFAULT_wxUSE_LIBPNG=yes
1579 DEFAULT_wxUSE_LIBJPEG=yes
b47c832e 1580 DEFAULT_wxUSE_LIBTIFF=yes
16b52fa1 1581 DEFAULT_wxUSE_ODBC=no
3fed1840 1582 DEFAULT_wxUSE_FREETYPE=no
bdad4e7e 1583 DEFAULT_wxUSE_OPENGL=no
10f2d63a 1584
eb4efbdc 1585 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=yes
4f3c5f06 1586 DEFAULT_wxUSE_SNGLINST_CHECKER=yes
10f2d63a 1587 DEFAULT_wxUSE_STD_IOSTREAM=no
1e6feb95
VZ
1588 DEFAULT_wxUSE_CMDLINE_PARSER=yes
1589 DEFAULT_wxUSE_DATETIME=yes
1590 DEFAULT_wxUSE_TIMEDATE=no
1591 DEFAULT_wxUSE_TIMER=yes
1592 DEFAULT_wxUSE_STOPWATCH=yes
10f2d63a 1593 DEFAULT_wxUSE_FILE=yes
1e6feb95 1594 DEFAULT_wxUSE_FFILE=yes
a3a584a7 1595 DEFAULT_wxUSE_TEXTBUFFER=yes
10f2d63a 1596 DEFAULT_wxUSE_TEXTFILE=yes
10f2d63a
VZ
1597 DEFAULT_wxUSE_WAVE=no
1598 DEFAULT_wxUSE_INTL=yes
1599 DEFAULT_wxUSE_CONFIG=yes
1e6feb95 1600 DEFAULT_wxUSE_FONTMAP=yes
10f2d63a
VZ
1601 DEFAULT_wxUSE_STREAMS=yes
1602 DEFAULT_wxUSE_SOCKETS=yes
1603 DEFAULT_wxUSE_DIALUP_MANAGER=yes
1604 DEFAULT_wxUSE_SERIAL=yes
1605 DEFAULT_wxUSE_JOYSTICK=yes
1606 DEFAULT_wxUSE_DYNLIB_CLASS=yes
b685cd9b 1607 DEFAULT_wxUSE_LONGLONG=yes
e8f65ba6 1608 DEFAULT_wxUSE_GEOMETRY=yes
10f2d63a
VZ
1609
1610 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes
1611 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes
1612 DEFAULT_wxUSE_POSTSCRIPT=yes
1613
1614 DEFAULT_wxUSE_X_RESOURCES=no
1615 DEFAULT_wxUSE_CLIPBOARD=yes
1616 DEFAULT_wxUSE_TOOLTIPS=yes
1617 DEFAULT_wxUSE_DRAG_AND_DROP=yes
24fd6d87 1618 DEFAULT_wxUSE_DRAGIMAGE=yes
10f2d63a
VZ
1619 DEFAULT_wxUSE_SPLINES=yes
1620
1621 DEFAULT_wxUSE_MDI_ARCHITECTURE=yes
1622 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes
1623 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes
1624
1625 DEFAULT_wxUSE_PROLOGIO=yes
1626 DEFAULT_wxUSE_RESOURCES=yes
1627 DEFAULT_wxUSE_CONSTRAINTS=yes
1628 DEFAULT_wxUSE_IPC=yes
1629 DEFAULT_wxUSE_HELP=yes
29fd3c0c 1630 DEFAULT_wxUSE_MS_HTML_HELP=yes
3379ed37 1631 DEFAULT_wxUSE_WXHTML_HELP=yes
24176f2c 1632 DEFAULT_wxUSE_TREELAYOUT=yes
10f2d63a 1633 DEFAULT_wxUSE_METAFILE=yes
1e6feb95 1634 DEFAULT_wxUSE_MIMETYPE=yes
3e44f09d 1635 DEFAULT_wxUSE_SYSTEM_OPTIONS=yes
10f2d63a
VZ
1636
1637 DEFAULT_wxUSE_COMMONDLGS=yes
1e6feb95
VZ
1638 DEFAULT_wxUSE_CHOICEDLG=yes
1639 DEFAULT_wxUSE_COLOURDLG=yes
10f2d63a 1640 DEFAULT_wxUSE_DIRDLG=yes
1e6feb95 1641 DEFAULT_wxUSE_FILEDLG=yes
8db37e06 1642 DEFAULT_wxUSE_FINDREPLDLG=yes
1e6feb95
VZ
1643 DEFAULT_wxUSE_FONTDLG=yes
1644 DEFAULT_wxUSE_MSGDLG=yes
1645 DEFAULT_wxUSE_NUMBERDLG=yes
10f2d63a 1646 DEFAULT_wxUSE_TEXTDLG=yes
cbca9943 1647 DEFAULT_wxUSE_SPLASH=yes
10f2d63a
VZ
1648 DEFAULT_wxUSE_STARTUP_TIPS=yes
1649 DEFAULT_wxUSE_PROGRESSDLG=yes
f33f19dd
VZ
1650 DEFAULT_wxUSE_WIZARDDLG=yes
1651
1e6feb95 1652 DEFAULT_wxUSE_MENUS=yes
10f2d63a
VZ
1653 DEFAULT_wxUSE_MINIFRAME=yes
1654 DEFAULT_wxUSE_HTML=yes
24528b0c 1655 DEFAULT_wxUSE_FILESYSTEM=yes
10f2d63a
VZ
1656 DEFAULT_wxUSE_FS_INET=yes
1657 DEFAULT_wxUSE_FS_ZIP=yes
1658 DEFAULT_wxUSE_BUSYINFO=yes
1659 DEFAULT_wxUSE_ZIPSTREAM=yes
1660 DEFAULT_wxUSE_VALIDATORS=yes
1661
1662 DEFAULT_wxUSE_ACCEL=yes
1e6feb95 1663 DEFAULT_wxUSE_BUTTON=yes
10f2d63a 1664 DEFAULT_wxUSE_BMPBUTTON=yes
1e6feb95
VZ
1665 DEFAULT_wxUSE_CALCTRL=yes
1666 DEFAULT_wxUSE_CARET=yes
10f2d63a
VZ
1667 DEFAULT_wxUSE_CHECKBOX=yes
1668 DEFAULT_wxUSE_CHECKLST=yes
1669 DEFAULT_wxUSE_CHOICE=yes
1670 DEFAULT_wxUSE_COMBOBOX=yes
1671 DEFAULT_wxUSE_GAUGE=yes
1672 DEFAULT_wxUSE_GRID=yes
cc977e5f 1673 DEFAULT_wxUSE_NEW_GRID=yes
10f2d63a
VZ
1674 DEFAULT_wxUSE_IMAGLIST=yes
1675 DEFAULT_wxUSE_LISTBOX=yes
1676 DEFAULT_wxUSE_LISTCTRL=yes
1677 DEFAULT_wxUSE_NOTEBOOK=yes
24176f2c 1678 DEFAULT_wxUSE_PROPSHEET=yes
10f2d63a
VZ
1679 DEFAULT_wxUSE_RADIOBOX=yes
1680 DEFAULT_wxUSE_RADIOBTN=yes
1681 DEFAULT_wxUSE_SASH=yes
1682 DEFAULT_wxUSE_SCROLLBAR=yes
1683 DEFAULT_wxUSE_SLIDER=yes
1684 DEFAULT_wxUSE_SPINBTN=yes
56cfaa52 1685 DEFAULT_wxUSE_SPINCTRL=yes
10f2d63a
VZ
1686 DEFAULT_wxUSE_SPLITTER=yes
1687 DEFAULT_wxUSE_STATBMP=yes
1688 DEFAULT_wxUSE_STATBOX=yes
1689 DEFAULT_wxUSE_STATLINE=yes
1e6feb95 1690 DEFAULT_wxUSE_STATTEXT=yes
10f2d63a
VZ
1691 DEFAULT_wxUSE_STATUSBAR=yes
1692 DEFAULT_wxUSE_TABDIALOG=no
1e6feb95 1693 DEFAULT_wxUSE_TEXTCTRL=yes
1db8dc4a 1694 DEFAULT_wxUSE_TOGGLEBTN=yes
10f2d63a 1695 DEFAULT_wxUSE_TOOLBAR=yes
360d6699
VZ
1696 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
1697 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
10f2d63a 1698 DEFAULT_wxUSE_TREECTRL=yes
9f41d601 1699 DEFAULT_wxUSE_POPUPWIN=yes
9926e4a4 1700 DEFAULT_wxUSE_TIPWINDOW=yes
10f2d63a
VZ
1701
1702 DEFAULT_wxUSE_UNICODE=no
1703 DEFAULT_wxUSE_WCSRTOMBS=no
1704
edae8572 1705 DEFAULT_wxUSE_PALETTE=yes
0046ff7c 1706 DEFAULT_wxUSE_IMAGE=yes
10f2d63a
VZ
1707 DEFAULT_wxUSE_GIF=yes
1708 DEFAULT_wxUSE_PCX=yes
1709 DEFAULT_wxUSE_PNM=yes
0046ff7c 1710 DEFAULT_wxUSE_XPM=yes
10f2d63a
VZ
1711fi
1712
698dcdb6
VZ
1713
1714
10f2d63a
VZ
1715for toolkit in `echo $ALL_TOOLKITS`; do
1716 LINE=`grep "wxUSE_$toolkit" ${wx_arg_cache_file}`
1717 if test "x$LINE" != x ; then
1718 has_toolkit_in_cache=1
1719 eval "DEFAULT_$LINE"
1720 eval "CACHE_$toolkit=1"
1721 fi
1722done
1723
698dcdb6
VZ
1724
1725
1726 echo $ac_n "checking for --enable-gui""... $ac_c" 1>&6
9926e4a4 1727echo "configure:1728: checking for --enable-gui" >&5
10f2d63a
VZ
1728 no_cache=0
1729 # Check whether --enable-gui or --disable-gui was given.
1730if test "${enable_gui+set}" = set; then
1731 enableval="$enable_gui"
698dcdb6 1732
10f2d63a
VZ
1733 if test "$enableval" = yes; then
1734 ac_cv_use_gui='wxUSE_GUI=yes'
1735 else
1736 ac_cv_use_gui='wxUSE_GUI=no'
1737 fi
698dcdb6 1738
10f2d63a 1739else
698dcdb6 1740
10f2d63a
VZ
1741 LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}`
1742 if test "x$LINE" != x ; then
1743 eval "DEFAULT_$LINE"
1744 else
1745 no_cache=1
1746 fi
1747
1748 ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI
698dcdb6
VZ
1749
1750fi
10f2d63a
VZ
1751
1752
1753 eval "$ac_cv_use_gui"
1754 if test "$no_cache" != 1; then
1755 echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp
1756 fi
1757
1758 if test "$wxUSE_GUI" = yes; then
698dcdb6 1759 echo "$ac_t""yes" 1>&6
10f2d63a 1760 else
698dcdb6 1761 echo "$ac_t""no" 1>&6
10f2d63a 1762 fi
698dcdb6 1763
10f2d63a 1764
b12915c1 1765if test "$wxUSE_GUI" = "yes"; then
10f2d63a 1766
1e6feb95
VZ
1767
1768 echo $ac_n "checking for --enable-universal""... $ac_c" 1>&6
9926e4a4 1769echo "configure:1770: checking for --enable-universal" >&5
1e6feb95
VZ
1770 no_cache=0
1771 # Check whether --enable-universal or --disable-universal was given.
1772if test "${enable_universal+set}" = set; then
1773 enableval="$enable_universal"
1774
1775 if test "$enableval" = yes; then
1776 ac_cv_use_universal='wxUSE_UNIVERSAL=yes'
1777 else
1778 ac_cv_use_universal='wxUSE_UNIVERSAL=no'
1779 fi
1780
1781else
1782
1783 LINE=`grep "wxUSE_UNIVERSAL" ${wx_arg_cache_file}`
1784 if test "x$LINE" != x ; then
1785 eval "DEFAULT_$LINE"
1786 else
1787 no_cache=1
1788 fi
1789
1790 ac_cv_use_universal='wxUSE_UNIVERSAL='$DEFAULT_wxUSE_UNIVERSAL
1791
1792fi
1793
1794
1795 eval "$ac_cv_use_universal"
1796 if test "$no_cache" != 1; then
1797 echo $ac_cv_use_universal >> ${wx_arg_cache_file}.tmp
1798 fi
1799
1800 if test "$wxUSE_UNIVERSAL" = yes; then
1801 echo "$ac_t""yes" 1>&6
1802 else
1803 echo "$ac_t""no" 1>&6
1804 fi
1805
10f2d63a
VZ
1806# Check whether --with-gtk or --without-gtk was given.
1807if test "${with_gtk+set}" = set; then
1808 withval="$with_gtk"
1809 wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1
698dcdb6 1810fi
10f2d63a
VZ
1811
1812# Check whether --with-motif or --without-motif was given.
1813if test "${with_motif+set}" = set; then
1814 withval="$with_motif"
1815 wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1
698dcdb6 1816fi
10f2d63a 1817
b4085ce6
GD
1818# Check whether --with-mac or --without-mac was given.
1819if test "${with_mac+set}" = set; then
1820 withval="$with_mac"
1821 wxUSE_MAC="$withval" TOOLKIT_GIVEN=1
698dcdb6 1822fi
b4085ce6 1823
10f2d63a
VZ
1824# Check whether --with-wine or --without-wine was given.
1825if test "${with_wine+set}" = set; then
1826 withval="$with_wine"
1827 wxUSE_WINE="$withval" CACHE_WINE=1 TOOLKIT_GIVEN=1
698dcdb6 1828fi
10f2d63a 1829
77e13408
RL
1830# Check whether --with-msw or --without-msw was given.
1831if test "${with_msw+set}" = set; then
1832 withval="$with_msw"
1833 wxUSE_MSW="$withval" CACHE_MSW TOOLKIT_GIVEN=1
698dcdb6 1834fi
10f2d63a 1835
e07802fc
VZ
1836# Check whether --with-pm or --without-pm was given.
1837if test "${with_pm+set}" = set; then
1838 withval="$with_pm"
1839 wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1
698dcdb6
VZ
1840fi
1841
1e6feb95
VZ
1842# Check whether --with-mgl or --without-mgl was given.
1843if test "${with_mgl+set}" = set; then
1844 withval="$with_mgl"
1845 wxUSE_MGL="$withval" CACHE_MGL=1 TOOLKIT_GIVEN=1
1846fi
1847
10f2d63a 1848
8168de4c
VZ
1849# Check whether --enable-gtk2 or --disable-gtk2 was given.
1850if test "${enable_gtk2+set}" = set; then
1851 enableval="$enable_gtk2"
1852 wxUSE_GTK2=1
10f2d63a 1853else
8168de4c 1854 wxUSE_GTK2=0
698dcdb6
VZ
1855fi
1856
703e0a69 1857
1e487827 1858
698dcdb6 1859 echo $ac_n "checking for --with-libpng""... $ac_c" 1>&6
9926e4a4 1860echo "configure:1861: checking for --with-libpng" >&5
698dcdb6
VZ
1861 no_cache=0
1862 # Check whether --with-libpng or --without-libpng was given.
b12915c1
VZ
1863if test "${with_libpng+set}" = set; then
1864 withval="$with_libpng"
698dcdb6 1865
10f2d63a 1866 if test "$withval" = yes; then
b12915c1 1867 ac_cv_use_libpng='wxUSE_LIBPNG=yes'
422107f9 1868 elif test "$withval" = no; then
b12915c1 1869 ac_cv_use_libpng='wxUSE_LIBPNG=no'
422107f9
VZ
1870 elif test "$withval" = sys; then
1871 ac_cv_use_libpng='wxUSE_LIBPNG=sys'
4f14bcd8
GD
1872 elif test "$withval" = builtin; then
1873 ac_cv_use_libpng='wxUSE_LIBPNG=builtin'
422107f9 1874 else
4f14bcd8 1875 { echo "configure: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" 1>&2; exit 1; }
10f2d63a 1876 fi
698dcdb6 1877
10f2d63a 1878else
698dcdb6 1879
b12915c1 1880 LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}`
10f2d63a
VZ
1881 if test "x$LINE" != x ; then
1882 eval "DEFAULT_$LINE"
1883 else
1884 no_cache=1
1885 fi
1886
b12915c1 1887 ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG
698dcdb6
VZ
1888
1889fi
10f2d63a
VZ
1890
1891
b12915c1 1892 eval "$ac_cv_use_libpng"
10f2d63a 1893 if test "$no_cache" != 1; then
b12915c1 1894 echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
1895 fi
1896
b12915c1 1897 if test "$wxUSE_LIBPNG" = yes; then
698dcdb6 1898 echo "$ac_t""yes" 1>&6
422107f9 1899 elif test "$wxUSE_LIBPNG" = no; then
698dcdb6 1900 echo "$ac_t""no" 1>&6
422107f9 1901 elif test "$wxUSE_LIBPNG" = sys; then
698dcdb6 1902 echo "$ac_t""system version" 1>&6
4f14bcd8
GD
1903 elif test "$wxUSE_LIBPNG" = builtin; then
1904 echo "$ac_t""builtin version" 1>&6
422107f9 1905 else
4f14bcd8 1906 { echo "configure: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" 1>&2; exit 1; }
10f2d63a 1907 fi
698dcdb6 1908
10f2d63a 1909
698dcdb6 1910 echo $ac_n "checking for --with-libjpeg""... $ac_c" 1>&6
9926e4a4 1911echo "configure:1912: checking for --with-libjpeg" >&5
10f2d63a 1912 no_cache=0
698dcdb6 1913 # Check whether --with-libjpeg or --without-libjpeg was given.
b12915c1
VZ
1914if test "${with_libjpeg+set}" = set; then
1915 withval="$with_libjpeg"
698dcdb6 1916
10f2d63a 1917 if test "$withval" = yes; then
b12915c1 1918 ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes'
422107f9 1919 elif test "$withval" = no; then
b12915c1 1920 ac_cv_use_libjpeg='wxUSE_LIBJPEG=no'
422107f9
VZ
1921 elif test "$withval" = sys; then
1922 ac_cv_use_libjpeg='wxUSE_LIBJPEG=sys'
4f14bcd8
GD
1923 elif test "$withval" = builtin; then
1924 ac_cv_use_libjpeg='wxUSE_LIBJPEG=builtin'
422107f9 1925 else
4f14bcd8 1926 { echo "configure: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" 1>&2; exit 1; }
10f2d63a 1927 fi
698dcdb6 1928
10f2d63a 1929else
698dcdb6 1930
b12915c1 1931 LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}`
10f2d63a
VZ
1932 if test "x$LINE" != x ; then
1933 eval "DEFAULT_$LINE"
1934 else
1935 no_cache=1
1936 fi
1937
b12915c1 1938 ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG
698dcdb6
VZ
1939
1940fi
10f2d63a
VZ
1941
1942
b12915c1 1943 eval "$ac_cv_use_libjpeg"
10f2d63a 1944 if test "$no_cache" != 1; then
b12915c1 1945 echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
1946 fi
1947
b12915c1 1948 if test "$wxUSE_LIBJPEG" = yes; then
698dcdb6 1949 echo "$ac_t""yes" 1>&6
422107f9 1950 elif test "$wxUSE_LIBJPEG" = no; then
698dcdb6 1951 echo "$ac_t""no" 1>&6
422107f9 1952 elif test "$wxUSE_LIBJPEG" = sys; then
698dcdb6 1953 echo "$ac_t""system version" 1>&6
4f14bcd8
GD
1954 elif test "$wxUSE_LIBJPEG" = builtin; then
1955 echo "$ac_t""builtin version" 1>&6
422107f9 1956 else
4f14bcd8 1957 { echo "configure: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" 1>&2; exit 1; }
10f2d63a 1958 fi
698dcdb6 1959
10f2d63a 1960
698dcdb6 1961 echo $ac_n "checking for --with-libtiff""... $ac_c" 1>&6
9926e4a4 1962echo "configure:1963: checking for --with-libtiff" >&5
10f2d63a 1963 no_cache=0
698dcdb6 1964 # Check whether --with-libtiff or --without-libtiff was given.
b12915c1
VZ
1965if test "${with_libtiff+set}" = set; then
1966 withval="$with_libtiff"
698dcdb6 1967
10f2d63a 1968 if test "$withval" = yes; then
b12915c1 1969 ac_cv_use_libtiff='wxUSE_LIBTIFF=yes'
0dcf9893 1970 elif test "$withval" = no; then
b12915c1 1971 ac_cv_use_libtiff='wxUSE_LIBTIFF=no'
0dcf9893
VZ
1972 elif test "$withval" = sys; then
1973 ac_cv_use_libtiff='wxUSE_LIBTIFF=sys'
4f14bcd8
GD
1974 elif test "$withval" = builtin; then
1975 ac_cv_use_libtiff='wxUSE_LIBTIFF=builtin'
0dcf9893 1976 else
4f14bcd8 1977 { echo "configure: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" 1>&2; exit 1; }
10f2d63a 1978 fi
698dcdb6 1979
10f2d63a 1980else
698dcdb6 1981
b12915c1 1982 LINE=`grep "wxUSE_LIBTIFF" ${wx_arg_cache_file}`
10f2d63a
VZ
1983 if test "x$LINE" != x ; then
1984 eval "DEFAULT_$LINE"
1985 else
1986 no_cache=1
1987 fi
1988
b12915c1 1989 ac_cv_use_libtiff='wxUSE_LIBTIFF='$DEFAULT_wxUSE_LIBTIFF
698dcdb6
VZ
1990
1991fi
10f2d63a
VZ
1992
1993
b12915c1 1994 eval "$ac_cv_use_libtiff"
10f2d63a 1995 if test "$no_cache" != 1; then
b12915c1 1996 echo $ac_cv_use_libtiff >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
1997 fi
1998
b12915c1 1999 if test "$wxUSE_LIBTIFF" = yes; then
698dcdb6 2000 echo "$ac_t""yes" 1>&6
0dcf9893 2001 elif test "$wxUSE_LIBTIFF" = no; then
698dcdb6 2002 echo "$ac_t""no" 1>&6
0dcf9893 2003 elif test "$wxUSE_LIBTIFF" = sys; then
698dcdb6 2004 echo "$ac_t""system version" 1>&6
4f14bcd8
GD
2005 elif test "$wxUSE_LIBTIFF" = builtin; then
2006 echo "$ac_t""builtin version" 1>&6
0dcf9893 2007 else
4f14bcd8 2008 { echo "configure: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" 1>&2; exit 1; }
10f2d63a 2009 fi
698dcdb6 2010
10f2d63a 2011
698dcdb6 2012 echo $ac_n "checking for --with-freetype""... $ac_c" 1>&6
9926e4a4 2013echo "configure:2014: checking for --with-freetype" >&5
3fed1840 2014 no_cache=0
698dcdb6 2015 # Check whether --with-freetype or --without-freetype was given.
3fed1840
RR
2016if test "${with_freetype+set}" = set; then
2017 withval="$with_freetype"
698dcdb6 2018
3fed1840
RR
2019 if test "$withval" = yes; then
2020 ac_cv_use_freetype='wxUSE_FREETYPE=yes'
2021 elif test "$withval" = no; then
2022 ac_cv_use_freetype='wxUSE_FREETYPE=no'
2023 elif test "$withval" = sys; then
2024 ac_cv_use_freetype='wxUSE_FREETYPE=sys'
4f14bcd8
GD
2025 elif test "$withval" = builtin; then
2026 ac_cv_use_freetype='wxUSE_FREETYPE=builtin'
3fed1840 2027 else
4f14bcd8 2028 { echo "configure: error: Invalid value for --with-freetype: should be yes, no, sys, or builtin" 1>&2; exit 1; }
3fed1840 2029 fi
698dcdb6 2030
3fed1840 2031else
698dcdb6 2032
3fed1840
RR
2033 LINE=`grep "wxUSE_FREETYPE" ${wx_arg_cache_file}`
2034 if test "x$LINE" != x ; then
2035 eval "DEFAULT_$LINE"
2036 else
2037 no_cache=1
2038 fi
2039
2040 ac_cv_use_freetype='wxUSE_FREETYPE='$DEFAULT_wxUSE_FREETYPE
698dcdb6
VZ
2041
2042fi
3fed1840
RR
2043
2044
2045 eval "$ac_cv_use_freetype"
2046 if test "$no_cache" != 1; then
2047 echo $ac_cv_use_freetype >> ${wx_arg_cache_file}.tmp
2048 fi
2049
2050 if test "$wxUSE_FREETYPE" = yes; then
698dcdb6 2051 echo "$ac_t""yes" 1>&6
3fed1840 2052 elif test "$wxUSE_FREETYPE" = no; then
698dcdb6 2053 echo "$ac_t""no" 1>&6
3fed1840 2054 elif test "$wxUSE_FREETYPE" = sys; then
698dcdb6 2055 echo "$ac_t""system version" 1>&6
4f14bcd8
GD
2056 elif test "$wxUSE_FREETYPE" = builtin; then
2057 echo "$ac_t""builtin version" 1>&6
3fed1840 2058 else
4f14bcd8 2059 { echo "configure: error: Invalid value for --with-freetype: should be yes, no, sys, or builtin" 1>&2; exit 1; }
3fed1840 2060 fi
698dcdb6 2061
3fed1840 2062
698dcdb6 2063 echo $ac_n "checking for --with-opengl""... $ac_c" 1>&6
9926e4a4 2064echo "configure:2065: checking for --with-opengl" >&5
10f2d63a 2065 no_cache=0
698dcdb6 2066 # Check whether --with-opengl or --without-opengl was given.
b12915c1
VZ
2067if test "${with_opengl+set}" = set; then
2068 withval="$with_opengl"
698dcdb6 2069
10f2d63a 2070 if test "$withval" = yes; then
b12915c1 2071 ac_cv_use_opengl='wxUSE_OPENGL=yes'
10f2d63a 2072 else
b12915c1 2073 ac_cv_use_opengl='wxUSE_OPENGL=no'
10f2d63a 2074 fi
698dcdb6 2075
10f2d63a 2076else
698dcdb6 2077
b12915c1 2078 LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}`
10f2d63a
VZ
2079 if test "x$LINE" != x ; then
2080 eval "DEFAULT_$LINE"
2081 else
2082 no_cache=1
2083 fi
2084
b12915c1 2085 ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL
698dcdb6
VZ
2086
2087fi
10f2d63a
VZ
2088
2089
b12915c1 2090 eval "$ac_cv_use_opengl"
10f2d63a 2091 if test "$no_cache" != 1; then
b12915c1 2092 echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
2093 fi
2094
b12915c1 2095 if test "$wxUSE_OPENGL" = yes; then
698dcdb6 2096 echo "$ac_t""yes" 1>&6
10f2d63a 2097 else
698dcdb6 2098 echo "$ac_t""no" 1>&6
10f2d63a 2099 fi
698dcdb6 2100
10f2d63a 2101
b12915c1
VZ
2102fi
2103
1e487827 2104
698dcdb6 2105 echo $ac_n "checking for --with-dmalloc""... $ac_c" 1>&6
9926e4a4 2106echo "configure:2107: checking for --with-dmalloc" >&5
698dcdb6
VZ
2107 no_cache=0
2108 # Check whether --with-dmalloc or --without-dmalloc was given.
b12915c1
VZ
2109if test "${with_dmalloc+set}" = set; then
2110 withval="$with_dmalloc"
698dcdb6 2111
c7a2bf27 2112 if test "$withval" = yes; then
b12915c1 2113 ac_cv_use_dmalloc='wxUSE_DMALLOC=yes'
c7a2bf27 2114 else
b12915c1 2115 ac_cv_use_dmalloc='wxUSE_DMALLOC=no'
c7a2bf27 2116 fi
698dcdb6 2117
c7a2bf27 2118else
698dcdb6 2119
b12915c1 2120 LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}`
c7a2bf27
RR
2121 if test "x$LINE" != x ; then
2122 eval "DEFAULT_$LINE"
2123 else
2124 no_cache=1
2125 fi
2126
b12915c1 2127 ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC
698dcdb6
VZ
2128
2129fi
c7a2bf27
RR
2130
2131
b12915c1 2132 eval "$ac_cv_use_dmalloc"
c7a2bf27 2133 if test "$no_cache" != 1; then
b12915c1 2134 echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp
c7a2bf27
RR
2135 fi
2136
b12915c1 2137 if test "$wxUSE_DMALLOC" = yes; then
698dcdb6 2138 echo "$ac_t""yes" 1>&6
c7a2bf27 2139 else
698dcdb6 2140 echo "$ac_t""no" 1>&6
c7a2bf27 2141 fi
698dcdb6 2142
c7a2bf27 2143
3e44f09d 2144 echo $ac_n "checking for --with-regex""... $ac_c" 1>&6
9926e4a4 2145echo "configure:2146: checking for --with-regex" >&5
3e44f09d
VZ
2146 no_cache=0
2147 # Check whether --with-regex or --without-regex was given.
2148if test "${with_regex+set}" = set; then
2149 withval="$with_regex"
2150
2151 if test "$withval" = yes; then
2152 ac_cv_use_regex='wxUSE_REGEX=yes'
2153 elif test "$withval" = no; then
2154 ac_cv_use_regex='wxUSE_REGEX=no'
2155 elif test "$withval" = sys; then
2156 ac_cv_use_regex='wxUSE_REGEX=sys'
4f14bcd8
GD
2157 elif test "$withval" = builtin; then
2158 ac_cv_use_regex='wxUSE_REGEX=builtin'
3e44f09d 2159 else
4f14bcd8 2160 { echo "configure: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" 1>&2; exit 1; }
3e44f09d
VZ
2161 fi
2162
2163else
2164
2165 LINE=`grep "wxUSE_REGEX" ${wx_arg_cache_file}`
2166 if test "x$LINE" != x ; then
2167 eval "DEFAULT_$LINE"
2168 else
2169 no_cache=1
2170 fi
2171
2172 ac_cv_use_regex='wxUSE_REGEX='$DEFAULT_wxUSE_REGEX
2173
2174fi
2175
2176
2177 eval "$ac_cv_use_regex"
2178 if test "$no_cache" != 1; then
2179 echo $ac_cv_use_regex >> ${wx_arg_cache_file}.tmp
2180 fi
2181
2182 if test "$wxUSE_REGEX" = yes; then
2183 echo "$ac_t""yes" 1>&6
2184 elif test "$wxUSE_REGEX" = no; then
2185 echo "$ac_t""no" 1>&6
2186 elif test "$wxUSE_REGEX" = sys; then
2187 echo "$ac_t""system version" 1>&6
4f14bcd8
GD
2188 elif test "$wxUSE_REGEX" = builtin; then
2189 echo "$ac_t""builtin version" 1>&6
3e44f09d 2190 else
4f14bcd8 2191 { echo "configure: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" 1>&2; exit 1; }
3e44f09d
VZ
2192 fi
2193
2194
698dcdb6 2195 echo $ac_n "checking for --with-zlib""... $ac_c" 1>&6
9926e4a4 2196echo "configure:2197: checking for --with-zlib" >&5
10f2d63a 2197 no_cache=0
698dcdb6 2198 # Check whether --with-zlib or --without-zlib was given.
b12915c1
VZ
2199if test "${with_zlib+set}" = set; then
2200 withval="$with_zlib"
698dcdb6 2201
10f2d63a 2202 if test "$withval" = yes; then
b12915c1 2203 ac_cv_use_zlib='wxUSE_ZLIB=yes'
422107f9 2204 elif test "$withval" = no; then
b12915c1 2205 ac_cv_use_zlib='wxUSE_ZLIB=no'
422107f9
VZ
2206 elif test "$withval" = sys; then
2207 ac_cv_use_zlib='wxUSE_ZLIB=sys'
4f14bcd8
GD
2208 elif test "$withval" = builtin; then
2209 ac_cv_use_zlib='wxUSE_ZLIB=builtin'
422107f9 2210 else
4f14bcd8 2211 { echo "configure: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" 1>&2; exit 1; }
10f2d63a 2212 fi
698dcdb6 2213
10f2d63a 2214else
698dcdb6 2215
b12915c1 2216 LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}`
10f2d63a
VZ
2217 if test "x$LINE" != x ; then
2218 eval "DEFAULT_$LINE"
2219 else
2220 no_cache=1
2221 fi
2222
b12915c1 2223 ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB
698dcdb6
VZ
2224
2225fi
10f2d63a
VZ
2226
2227
b12915c1 2228 eval "$ac_cv_use_zlib"
10f2d63a 2229 if test "$no_cache" != 1; then
b12915c1 2230 echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
2231 fi
2232
b12915c1 2233 if test "$wxUSE_ZLIB" = yes; then
698dcdb6 2234 echo "$ac_t""yes" 1>&6
422107f9 2235 elif test "$wxUSE_ZLIB" = no; then
698dcdb6 2236 echo "$ac_t""no" 1>&6
422107f9 2237 elif test "$wxUSE_ZLIB" = sys; then
698dcdb6 2238 echo "$ac_t""system version" 1>&6
4f14bcd8
GD
2239 elif test "$wxUSE_ZLIB" = builtin; then
2240 echo "$ac_t""builtin version" 1>&6
422107f9 2241 else
4f14bcd8 2242 { echo "configure: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" 1>&2; exit 1; }
10f2d63a 2243 fi
698dcdb6 2244
10f2d63a 2245
698dcdb6 2246 echo $ac_n "checking for --with-odbc""... $ac_c" 1>&6
9926e4a4 2247echo "configure:2248: checking for --with-odbc" >&5
10f2d63a 2248 no_cache=0
698dcdb6 2249 # Check whether --with-odbc or --without-odbc was given.
10f2d63a
VZ
2250if test "${with_odbc+set}" = set; then
2251 withval="$with_odbc"
698dcdb6 2252
10f2d63a
VZ
2253 if test "$withval" = yes; then
2254 ac_cv_use_odbc='wxUSE_ODBC=yes'
2255 else
2256 ac_cv_use_odbc='wxUSE_ODBC=no'
2257 fi
698dcdb6 2258
10f2d63a 2259else
698dcdb6 2260
10f2d63a
VZ
2261 LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}`
2262 if test "x$LINE" != x ; then
2263 eval "DEFAULT_$LINE"
2264 else
2265 no_cache=1
2266 fi
2267
2268 ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC
698dcdb6
VZ
2269
2270fi
10f2d63a
VZ
2271
2272
2273 eval "$ac_cv_use_odbc"
2274 if test "$no_cache" != 1; then
2275 echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp
2276 fi
2277
2278 if test "$wxUSE_ODBC" = yes; then
698dcdb6 2279 echo "$ac_t""yes" 1>&6
10f2d63a 2280 else
698dcdb6 2281 echo "$ac_t""no" 1>&6
10f2d63a 2282 fi
698dcdb6
VZ
2283
2284
10f2d63a 2285
698dcdb6 2286
698dcdb6 2287 echo $ac_n "checking for --enable-shared""... $ac_c" 1>&6
9926e4a4 2288echo "configure:2289: checking for --enable-shared" >&5
10f2d63a
VZ
2289 no_cache=0
2290 # Check whether --enable-shared or --disable-shared was given.
2291if test "${enable_shared+set}" = set; then
2292 enableval="$enable_shared"
698dcdb6 2293
10f2d63a
VZ
2294 if test "$enableval" = yes; then
2295 ac_cv_use_shared='wxUSE_SHARED=yes'
2296 else
2297 ac_cv_use_shared='wxUSE_SHARED=no'
2298 fi
698dcdb6 2299
10f2d63a 2300else
698dcdb6 2301
10f2d63a
VZ
2302 LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}`
2303 if test "x$LINE" != x ; then
2304 eval "DEFAULT_$LINE"
2305 else
2306 no_cache=1
2307 fi
2308
2309 ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED
698dcdb6
VZ
2310
2311fi
10f2d63a
VZ
2312
2313
2314 eval "$ac_cv_use_shared"
2315 if test "$no_cache" != 1; then
2316 echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp
2317 fi
2318
2319 if test "$wxUSE_SHARED" = yes; then
698dcdb6 2320 echo "$ac_t""yes" 1>&6
10f2d63a 2321 else
698dcdb6 2322 echo "$ac_t""no" 1>&6
10f2d63a 2323 fi
698dcdb6 2324
10f2d63a 2325
3a922bb4 2326 echo $ac_n "checking for --enable-soname""... $ac_c" 1>&6
9926e4a4 2327echo "configure:2328: checking for --enable-soname" >&5
00cf1208 2328 no_cache=0
3a922bb4
RL
2329 # Check whether --enable-soname or --disable-soname was given.
2330if test "${enable_soname+set}" = set; then
2331 enableval="$enable_soname"
698dcdb6 2332
00cf1208 2333 if test "$enableval" = yes; then
3a922bb4 2334 ac_cv_use_soname='wxUSE_SONAME=yes'
00cf1208 2335 else
3a922bb4 2336 ac_cv_use_soname='wxUSE_SONAME=no'
00cf1208 2337 fi
698dcdb6 2338
00cf1208 2339else
698dcdb6 2340
3a922bb4 2341 LINE=`grep "wxUSE_SONAME" ${wx_arg_cache_file}`
00cf1208
RR
2342 if test "x$LINE" != x ; then
2343 eval "DEFAULT_$LINE"
2344 else
2345 no_cache=1
2346 fi
2347
3a922bb4 2348 ac_cv_use_soname='wxUSE_SONAME='$DEFAULT_wxUSE_SONAME
698dcdb6
VZ
2349
2350fi
00cf1208
RR
2351
2352
3a922bb4 2353 eval "$ac_cv_use_soname"
00cf1208 2354 if test "$no_cache" != 1; then
3a922bb4 2355 echo $ac_cv_use_soname >> ${wx_arg_cache_file}.tmp
00cf1208
RR
2356 fi
2357
3a922bb4 2358 if test "$wxUSE_SONAME" = yes; then
698dcdb6 2359 echo "$ac_t""yes" 1>&6
00cf1208 2360 else
698dcdb6 2361 echo "$ac_t""no" 1>&6
00cf1208 2362 fi
698dcdb6 2363
00cf1208 2364
698dcdb6 2365 echo $ac_n "checking for --enable-optimise""... $ac_c" 1>&6
9926e4a4 2366echo "configure:2367: checking for --enable-optimise" >&5
10f2d63a
VZ
2367 no_cache=0
2368 # Check whether --enable-optimise or --disable-optimise was given.
2369if test "${enable_optimise+set}" = set; then
2370 enableval="$enable_optimise"
698dcdb6 2371
10f2d63a
VZ
2372 if test "$enableval" = yes; then
2373 ac_cv_use_optimise='wxUSE_OPTIMISE=yes'
2374 else
2375 ac_cv_use_optimise='wxUSE_OPTIMISE=no'
2376 fi
698dcdb6 2377
10f2d63a 2378else
698dcdb6 2379
10f2d63a
VZ
2380 LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}`
2381 if test "x$LINE" != x ; then
2382 eval "DEFAULT_$LINE"
2383 else
2384 no_cache=1
2385 fi
2386
2387 ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE
698dcdb6
VZ
2388
2389fi
10f2d63a
VZ
2390
2391
2392 eval "$ac_cv_use_optimise"
2393 if test "$no_cache" != 1; then
2394 echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp
2395 fi
2396
2397 if test "$wxUSE_OPTIMISE" = yes; then
698dcdb6 2398 echo "$ac_t""yes" 1>&6
10f2d63a 2399 else
698dcdb6 2400 echo "$ac_t""no" 1>&6
10f2d63a 2401 fi
698dcdb6 2402
10f2d63a 2403
698dcdb6 2404 echo $ac_n "checking for --enable-debug""... $ac_c" 1>&6
9926e4a4 2405echo "configure:2406: checking for --enable-debug" >&5
10f2d63a
VZ
2406 no_cache=0
2407 # Check whether --enable-debug or --disable-debug was given.
2408if test "${enable_debug+set}" = set; then
2409 enableval="$enable_debug"
698dcdb6 2410
10f2d63a
VZ
2411 if test "$enableval" = yes; then
2412 ac_cv_use_debug='wxUSE_DEBUG=yes'
2413 else
2414 ac_cv_use_debug='wxUSE_DEBUG=no'
2415 fi
698dcdb6 2416
10f2d63a 2417else
698dcdb6 2418
10f2d63a
VZ
2419 LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}`
2420 if test "x$LINE" != x ; then
2421 eval "DEFAULT_$LINE"
2422 else
2423 no_cache=1
2424 fi
2425
2426 ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG
698dcdb6
VZ
2427
2428fi
10f2d63a
VZ
2429
2430
2431 eval "$ac_cv_use_debug"
2432 if test "$no_cache" != 1; then
2433 echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp
2434 fi
2435
2436 if test "$wxUSE_DEBUG" = yes; then
698dcdb6 2437 echo "$ac_t""yes" 1>&6
10f2d63a 2438 else
698dcdb6 2439 echo "$ac_t""no" 1>&6
10f2d63a 2440 fi
698dcdb6 2441
10f2d63a 2442
683dccda
GD
2443
2444 echo $ac_n "checking for --enable-precomp""... $ac_c" 1>&6
9926e4a4 2445echo "configure:2446: checking for --enable-precomp" >&5
683dccda
GD
2446 no_cache=0
2447 # Check whether --enable-precomp or --disable-precomp was given.
2448if test "${enable_precomp+set}" = set; then
2449 enableval="$enable_precomp"
2450
2451 if test "$enableval" = yes; then
2452 ac_cv_use_precomp='wxUSE_PRECOMP=yes'
2453 else
2454 ac_cv_use_precomp='wxUSE_PRECOMP=no'
2455 fi
2456
2457else
2458
2459 LINE=`grep "wxUSE_PRECOMP" ${wx_arg_cache_file}`
2460 if test "x$LINE" != x ; then
2461 eval "DEFAULT_$LINE"
2462 else
2463 no_cache=1
2464 fi
2465
2466 ac_cv_use_precomp='wxUSE_PRECOMP='$DEFAULT_wxUSE_PRECOMP
2467
2468fi
2469
2470
2471 eval "$ac_cv_use_precomp"
2472 if test "$no_cache" != 1; then
2473 echo $ac_cv_use_precomp >> ${wx_arg_cache_file}.tmp
2474 fi
2475
2476 if test "$wxUSE_PRECOMP" = yes; then
2477 echo "$ac_t""yes" 1>&6
2478 else
2479 echo "$ac_t""no" 1>&6
2480 fi
2481
2482
10f2d63a
VZ
2483if test "$wxUSE_DEBUG" = "yes"; then
2484 DEFAULT_wxUSE_DEBUG_FLAG=yes
2485 DEFAULT_wxUSE_DEBUG_INFO=yes
2486elif test "$wxUSE_DEBUG" = "no"; then
2487 DEFAULT_wxUSE_DEBUG_FLAG=no
2488 DEFAULT_wxUSE_DEBUG_INFO=no
2489fi
2490
698dcdb6
VZ
2491
2492 echo $ac_n "checking for --enable-debug_flag""... $ac_c" 1>&6
9926e4a4 2493echo "configure:2494: checking for --enable-debug_flag" >&5
10f2d63a
VZ
2494 no_cache=0
2495 # Check whether --enable-debug_flag or --disable-debug_flag was given.
2496if test "${enable_debug_flag+set}" = set; then
2497 enableval="$enable_debug_flag"
698dcdb6 2498
10f2d63a
VZ
2499 if test "$enableval" = yes; then
2500 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes'
2501 else
2502 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no'
2503 fi
698dcdb6 2504
10f2d63a 2505else
698dcdb6 2506
10f2d63a
VZ
2507 LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}`
2508 if test "x$LINE" != x ; then
2509 eval "DEFAULT_$LINE"
2510 else
2511 no_cache=1
2512 fi
2513
2514 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG
698dcdb6
VZ
2515
2516fi
10f2d63a
VZ
2517
2518
2519 eval "$ac_cv_use_debug_flag"
2520 if test "$no_cache" != 1; then
2521 echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp
2522 fi
2523
2524 if test "$wxUSE_DEBUG_FLAG" = yes; then
698dcdb6 2525 echo "$ac_t""yes" 1>&6
10f2d63a 2526 else
698dcdb6 2527 echo "$ac_t""no" 1>&6
10f2d63a 2528 fi
698dcdb6 2529
10f2d63a 2530
698dcdb6 2531 echo $ac_n "checking for --enable-debug_info""... $ac_c" 1>&6
9926e4a4 2532echo "configure:2533: checking for --enable-debug_info" >&5
10f2d63a
VZ
2533 no_cache=0
2534 # Check whether --enable-debug_info or --disable-debug_info was given.
2535if test "${enable_debug_info+set}" = set; then
2536 enableval="$enable_debug_info"
698dcdb6 2537
10f2d63a
VZ
2538 if test "$enableval" = yes; then
2539 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes'
2540 else
2541 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no'
2542 fi
698dcdb6 2543
10f2d63a 2544else
698dcdb6 2545
10f2d63a
VZ
2546 LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}`
2547 if test "x$LINE" != x ; then
2548 eval "DEFAULT_$LINE"
2549 else
2550 no_cache=1
2551 fi
2552
2553 ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO
698dcdb6
VZ
2554
2555fi
10f2d63a
VZ
2556
2557
2558 eval "$ac_cv_use_debug_info"
2559 if test "$no_cache" != 1; then
2560 echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp
2561 fi
2562
2563 if test "$wxUSE_DEBUG_INFO" = yes; then
698dcdb6 2564 echo "$ac_t""yes" 1>&6
10f2d63a 2565 else
698dcdb6 2566 echo "$ac_t""no" 1>&6
10f2d63a 2567 fi
698dcdb6 2568
10f2d63a 2569
698dcdb6 2570 echo $ac_n "checking for --enable-debug_gdb""... $ac_c" 1>&6
9926e4a4 2571echo "configure:2572: checking for --enable-debug_gdb" >&5
10f2d63a
VZ
2572 no_cache=0
2573 # Check whether --enable-debug_gdb or --disable-debug_gdb was given.
2574if test "${enable_debug_gdb+set}" = set; then
2575 enableval="$enable_debug_gdb"
698dcdb6 2576
10f2d63a
VZ
2577 if test "$enableval" = yes; then
2578 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes'
2579 else
2580 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no'
2581 fi
698dcdb6 2582
10f2d63a 2583else
698dcdb6 2584
10f2d63a
VZ
2585 LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}`
2586 if test "x$LINE" != x ; then
2587 eval "DEFAULT_$LINE"
2588 else
2589 no_cache=1
2590 fi
2591
2592 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB
698dcdb6
VZ
2593
2594fi
10f2d63a
VZ
2595
2596
2597 eval "$ac_cv_use_debug_gdb"
2598 if test "$no_cache" != 1; then
2599 echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp
2600 fi
2601
2602 if test "$wxUSE_DEBUG_GDB" = yes; then
698dcdb6 2603 echo "$ac_t""yes" 1>&6
10f2d63a 2604 else
698dcdb6 2605 echo "$ac_t""no" 1>&6
10f2d63a 2606 fi
698dcdb6 2607
10f2d63a 2608
698dcdb6 2609 echo $ac_n "checking for --enable-debug_cntxt""... $ac_c" 1>&6
9926e4a4 2610echo "configure:2611: checking for --enable-debug_cntxt" >&5
10f2d63a
VZ
2611 no_cache=0
2612 # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given.
2613if test "${enable_debug_cntxt+set}" = set; then
2614 enableval="$enable_debug_cntxt"
698dcdb6 2615
10f2d63a
VZ
2616 if test "$enableval" = yes; then
2617 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes'
2618 else
2619 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no'
2620 fi
698dcdb6 2621
10f2d63a 2622else
698dcdb6 2623
10f2d63a
VZ
2624 LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}`
2625 if test "x$LINE" != x ; then
2626 eval "DEFAULT_$LINE"
2627 else
2628 no_cache=1
2629 fi
2630
2631 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT
698dcdb6
VZ
2632
2633fi
10f2d63a
VZ
2634
2635
2636 eval "$ac_cv_use_debug_cntxt"
2637 if test "$no_cache" != 1; then
2638 echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp
2639 fi
2640
2641 if test "$wxUSE_DEBUG_CONTEXT" = yes; then
698dcdb6 2642 echo "$ac_t""yes" 1>&6
10f2d63a 2643 else
698dcdb6 2644 echo "$ac_t""no" 1>&6
10f2d63a 2645 fi
698dcdb6 2646
10f2d63a 2647
698dcdb6 2648 echo $ac_n "checking for --enable-mem_tracing""... $ac_c" 1>&6
9926e4a4 2649echo "configure:2650: checking for --enable-mem_tracing" >&5
10f2d63a
VZ
2650 no_cache=0
2651 # Check whether --enable-mem_tracing or --disable-mem_tracing was given.
2652if test "${enable_mem_tracing+set}" = set; then
2653 enableval="$enable_mem_tracing"
698dcdb6 2654
10f2d63a
VZ
2655 if test "$enableval" = yes; then
2656 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes'
2657 else
2658 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no'
2659 fi
698dcdb6 2660
10f2d63a 2661else
698dcdb6 2662
10f2d63a
VZ
2663 LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}`
2664 if test "x$LINE" != x ; then
2665 eval "DEFAULT_$LINE"
2666 else
2667 no_cache=1
2668 fi
2669
2670 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING
698dcdb6
VZ
2671
2672fi
10f2d63a
VZ
2673
2674
2675 eval "$ac_cv_use_mem_tracing"
2676 if test "$no_cache" != 1; then
2677 echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp
2678 fi
2679
2680 if test "$wxUSE_MEM_TRACING" = yes; then
698dcdb6 2681 echo "$ac_t""yes" 1>&6
10f2d63a 2682 else
698dcdb6 2683 echo "$ac_t""no" 1>&6
10f2d63a 2684 fi
698dcdb6 2685
10f2d63a 2686
698dcdb6 2687 echo $ac_n "checking for --enable-profile""... $ac_c" 1>&6
9926e4a4 2688echo "configure:2689: checking for --enable-profile" >&5
10f2d63a
VZ
2689 no_cache=0
2690 # Check whether --enable-profile or --disable-profile was given.
2691if test "${enable_profile+set}" = set; then
2692 enableval="$enable_profile"
698dcdb6 2693
10f2d63a
VZ
2694 if test "$enableval" = yes; then
2695 ac_cv_use_profile='wxUSE_PROFILE=yes'
2696 else
2697 ac_cv_use_profile='wxUSE_PROFILE=no'
2698 fi
698dcdb6 2699
10f2d63a 2700else
698dcdb6 2701
10f2d63a
VZ
2702 LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}`
2703 if test "x$LINE" != x ; then
2704 eval "DEFAULT_$LINE"
2705 else
2706 no_cache=1
2707 fi
2708
2709 ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE
698dcdb6
VZ
2710
2711fi
10f2d63a
VZ
2712
2713
2714 eval "$ac_cv_use_profile"
2715 if test "$no_cache" != 1; then
2716 echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp
2717 fi
2718
2719 if test "$wxUSE_PROFILE" = yes; then
698dcdb6 2720 echo "$ac_t""yes" 1>&6
10f2d63a 2721 else
698dcdb6 2722 echo "$ac_t""no" 1>&6
10f2d63a 2723 fi
698dcdb6 2724
10f2d63a 2725
698dcdb6 2726 echo $ac_n "checking for --enable-no_rtti""... $ac_c" 1>&6
9926e4a4 2727echo "configure:2728: checking for --enable-no_rtti" >&5
10f2d63a
VZ
2728 no_cache=0
2729 # Check whether --enable-no_rtti or --disable-no_rtti was given.
2730if test "${enable_no_rtti+set}" = set; then
2731 enableval="$enable_no_rtti"
698dcdb6 2732
10f2d63a
VZ
2733 if test "$enableval" = yes; then
2734 ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes'
2735 else
2736 ac_cv_use_no_rtti='wxUSE_NO_RTTI=no'
2737 fi
698dcdb6 2738
10f2d63a 2739else
698dcdb6 2740
10f2d63a
VZ
2741 LINE=`grep "wxUSE_NO_RTTI" ${wx_arg_cache_file}`
2742 if test "x$LINE" != x ; then
2743 eval "DEFAULT_$LINE"
2744 else
2745 no_cache=1
2746 fi
2747
2748 ac_cv_use_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI
698dcdb6
VZ
2749
2750fi
10f2d63a
VZ
2751
2752
2753 eval "$ac_cv_use_no_rtti"
2754 if test "$no_cache" != 1; then
2755 echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp
2756 fi
2757
2758 if test "$wxUSE_NO_RTTI" = yes; then
698dcdb6 2759 echo "$ac_t""yes" 1>&6
10f2d63a 2760 else
698dcdb6 2761 echo "$ac_t""no" 1>&6
10f2d63a 2762 fi
698dcdb6 2763
10f2d63a 2764
698dcdb6 2765 echo $ac_n "checking for --enable-no_exceptions""... $ac_c" 1>&6
9926e4a4 2766echo "configure:2767: checking for --enable-no_exceptions" >&5
10f2d63a
VZ
2767 no_cache=0
2768 # Check whether --enable-no_exceptions or --disable-no_exceptions was given.
2769if test "${enable_no_exceptions+set}" = set; then
2770 enableval="$enable_no_exceptions"
698dcdb6 2771
10f2d63a
VZ
2772 if test "$enableval" = yes; then
2773 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes'
2774 else
2775 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no'
2776 fi
698dcdb6 2777
10f2d63a 2778else
698dcdb6 2779
10f2d63a
VZ
2780 LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}`
2781 if test "x$LINE" != x ; then
2782 eval "DEFAULT_$LINE"
2783 else
2784 no_cache=1
2785 fi
2786
2787 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS
698dcdb6
VZ
2788
2789fi
10f2d63a
VZ
2790
2791
2792 eval "$ac_cv_use_no_exceptions"
2793 if test "$no_cache" != 1; then
2794 echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp
2795 fi
2796
2797 if test "$wxUSE_NO_EXCEPTIONS" = yes; then
698dcdb6 2798 echo "$ac_t""yes" 1>&6
10f2d63a 2799 else
698dcdb6 2800 echo "$ac_t""no" 1>&6
10f2d63a 2801 fi
698dcdb6 2802
10f2d63a 2803
698dcdb6 2804 echo $ac_n "checking for --enable-permissive""... $ac_c" 1>&6
9926e4a4 2805echo "configure:2806: checking for --enable-permissive" >&5
10f2d63a
VZ
2806 no_cache=0
2807 # Check whether --enable-permissive or --disable-permissive was given.
2808if test "${enable_permissive+set}" = set; then
2809 enableval="$enable_permissive"
698dcdb6 2810
10f2d63a
VZ
2811 if test "$enableval" = yes; then
2812 ac_cv_use_permissive='wxUSE_PERMISSIVE=yes'
2813 else
2814 ac_cv_use_permissive='wxUSE_PERMISSIVE=no'
2815 fi
698dcdb6 2816
10f2d63a 2817else
698dcdb6 2818
10f2d63a
VZ
2819 LINE=`grep "wxUSE_PERMISSIVE" ${wx_arg_cache_file}`
2820 if test "x$LINE" != x ; then
2821 eval "DEFAULT_$LINE"
2822 else
2823 no_cache=1
2824 fi
2825
2826 ac_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE
698dcdb6
VZ
2827
2828fi
10f2d63a
VZ
2829
2830
2831 eval "$ac_cv_use_permissive"
2832 if test "$no_cache" != 1; then
2833 echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp
2834 fi
2835
2836 if test "$wxUSE_PERMISSIVE" = yes; then
698dcdb6 2837 echo "$ac_t""yes" 1>&6
10f2d63a 2838 else
698dcdb6 2839 echo "$ac_t""no" 1>&6
10f2d63a 2840 fi
698dcdb6 2841
10f2d63a 2842
698dcdb6 2843 echo $ac_n "checking for --enable-no_deps""... $ac_c" 1>&6
9926e4a4 2844echo "configure:2845: checking for --enable-no_deps" >&5
10f2d63a
VZ
2845 no_cache=0
2846 # Check whether --enable-no_deps or --disable-no_deps was given.
2847if test "${enable_no_deps+set}" = set; then
2848 enableval="$enable_no_deps"
698dcdb6 2849
10f2d63a
VZ
2850 if test "$enableval" = yes; then
2851 ac_cv_use_no_deps='wxUSE_NO_DEPS=yes'
2852 else
2853 ac_cv_use_no_deps='wxUSE_NO_DEPS=no'
2854 fi
698dcdb6 2855
10f2d63a 2856else
698dcdb6 2857
10f2d63a
VZ
2858 LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}`
2859 if test "x$LINE" != x ; then
2860 eval "DEFAULT_$LINE"
2861 else
2862 no_cache=1
2863 fi
2864
2865 ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS
698dcdb6
VZ
2866
2867fi
10f2d63a
VZ
2868
2869
2870 eval "$ac_cv_use_no_deps"
2871 if test "$no_cache" != 1; then
2872 echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp
2873 fi
2874
2875 if test "$wxUSE_NO_DEPS" = yes; then
698dcdb6 2876 echo "$ac_t""yes" 1>&6
10f2d63a 2877 else
698dcdb6 2878 echo "$ac_t""no" 1>&6
10f2d63a 2879 fi
698dcdb6
VZ
2880
2881
10f2d63a 2882
54276ccf 2883 echo $ac_n "checking for --enable-compat20""... $ac_c" 1>&6
9926e4a4 2884echo "configure:2885: checking for --enable-compat20" >&5
54276ccf
VZ
2885 no_cache=0
2886 # Check whether --enable-compat20 or --disable-compat20 was given.
2887if test "${enable_compat20+set}" = set; then
2888 enableval="$enable_compat20"
2889
2890 if test "$enableval" = yes; then
2891 ac_cv_use_compat20='WXWIN_COMPATIBILITY_2=yes'
2892 else
2893 ac_cv_use_compat20='WXWIN_COMPATIBILITY_2=no'
2894 fi
2895
2896else
2897
2898 LINE=`grep "WXWIN_COMPATIBILITY_2" ${wx_arg_cache_file}`
2899 if test "x$LINE" != x ; then
2900 eval "DEFAULT_$LINE"
2901 else
2902 no_cache=1
2903 fi
2904
2905 ac_cv_use_compat20='WXWIN_COMPATIBILITY_2='$DEFAULT_WXWIN_COMPATIBILITY_2
2906
2907fi
2908
2909
2910 eval "$ac_cv_use_compat20"
2911 if test "$no_cache" != 1; then
2912 echo $ac_cv_use_compat20 >> ${wx_arg_cache_file}.tmp
2913 fi
2914
2915 if test "$WXWIN_COMPATIBILITY_2" = yes; then
2916 echo "$ac_t""yes" 1>&6
2917 else
2918 echo "$ac_t""no" 1>&6
2919 fi
2920
2921
2922 echo $ac_n "checking for --enable-compat22""... $ac_c" 1>&6
9926e4a4 2923echo "configure:2924: checking for --enable-compat22" >&5
54276ccf
VZ
2924 no_cache=0
2925 # Check whether --enable-compat22 or --disable-compat22 was given.
2926if test "${enable_compat22+set}" = set; then
2927 enableval="$enable_compat22"
2928
2929 if test "$enableval" = yes; then
2930 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=yes'
2931 else
2932 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=no'
2933 fi
2934
2935else
2936
2937 LINE=`grep "WXWIN_COMPATIBILITY_2_2" ${wx_arg_cache_file}`
2938 if test "x$LINE" != x ; then
2939 eval "DEFAULT_$LINE"
2940 else
2941 no_cache=1
2942 fi
2943
2944 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2='$DEFAULT_WXWIN_COMPATIBILITY_2_2
2945
2946fi
2947
2948
2949 eval "$ac_cv_use_compat22"
2950 if test "$no_cache" != 1; then
2951 echo $ac_cv_use_compat22 >> ${wx_arg_cache_file}.tmp
2952 fi
2953
2954 if test "$WXWIN_COMPATIBILITY_2_2" = yes; then
2955 echo "$ac_t""yes" 1>&6
2956 else
2957 echo "$ac_t""no" 1>&6
2958 fi
2959
2960
2961
698dcdb6
VZ
2962
2963 echo $ac_n "checking for --enable-intl""... $ac_c" 1>&6
9926e4a4 2964echo "configure:2965: checking for --enable-intl" >&5
10f2d63a
VZ
2965 no_cache=0
2966 # Check whether --enable-intl or --disable-intl was given.
2967if test "${enable_intl+set}" = set; then
2968 enableval="$enable_intl"
698dcdb6 2969
10f2d63a
VZ
2970 if test "$enableval" = yes; then
2971 ac_cv_use_intl='wxUSE_INTL=yes'
2972 else
2973 ac_cv_use_intl='wxUSE_INTL=no'
2974 fi
698dcdb6 2975
10f2d63a 2976else
698dcdb6 2977
10f2d63a
VZ
2978 LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}`
2979 if test "x$LINE" != x ; then
2980 eval "DEFAULT_$LINE"
2981 else
2982 no_cache=1
2983 fi
2984
2985 ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL
698dcdb6
VZ
2986
2987fi
10f2d63a
VZ
2988
2989
2990 eval "$ac_cv_use_intl"
2991 if test "$no_cache" != 1; then
2992 echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp
2993 fi
2994
2995 if test "$wxUSE_INTL" = yes; then
698dcdb6 2996 echo "$ac_t""yes" 1>&6
10f2d63a 2997 else
698dcdb6 2998 echo "$ac_t""no" 1>&6
10f2d63a 2999 fi
698dcdb6 3000
10f2d63a 3001
698dcdb6 3002 echo $ac_n "checking for --enable-config""... $ac_c" 1>&6
9926e4a4 3003echo "configure:3004: checking for --enable-config" >&5
10f2d63a
VZ
3004 no_cache=0
3005 # Check whether --enable-config or --disable-config was given.
3006if test "${enable_config+set}" = set; then
3007 enableval="$enable_config"
698dcdb6 3008
10f2d63a
VZ
3009 if test "$enableval" = yes; then
3010 ac_cv_use_config='wxUSE_CONFIG=yes'
3011 else
3012 ac_cv_use_config='wxUSE_CONFIG=no'
3013 fi
698dcdb6 3014
10f2d63a 3015else
698dcdb6 3016
10f2d63a
VZ
3017 LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}`
3018 if test "x$LINE" != x ; then
3019 eval "DEFAULT_$LINE"
3020 else
3021 no_cache=1
3022 fi
3023
3024 ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG
698dcdb6
VZ
3025
3026fi
10f2d63a
VZ
3027
3028
3029 eval "$ac_cv_use_config"
3030 if test "$no_cache" != 1; then
3031 echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp
3032 fi
3033
3034 if test "$wxUSE_CONFIG" = yes; then
698dcdb6 3035 echo "$ac_t""yes" 1>&6
10f2d63a 3036 else
698dcdb6 3037 echo "$ac_t""no" 1>&6
10f2d63a 3038 fi
698dcdb6
VZ
3039
3040
b12915c1 3041
698dcdb6 3042 echo $ac_n "checking for --enable-sockets""... $ac_c" 1>&6
9926e4a4 3043echo "configure:3044: checking for --enable-sockets" >&5
10f2d63a
VZ
3044 no_cache=0
3045 # Check whether --enable-sockets or --disable-sockets was given.
3046if test "${enable_sockets+set}" = set; then
3047 enableval="$enable_sockets"
698dcdb6 3048
10f2d63a
VZ
3049 if test "$enableval" = yes; then
3050 ac_cv_use_sockets='wxUSE_SOCKETS=yes'
3051 else
3052 ac_cv_use_sockets='wxUSE_SOCKETS=no'
3053 fi
698dcdb6 3054
10f2d63a 3055else
698dcdb6 3056
10f2d63a
VZ
3057 LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}`
3058 if test "x$LINE" != x ; then
3059 eval "DEFAULT_$LINE"
3060 else
3061 no_cache=1
3062 fi
3063
3064 ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS
698dcdb6
VZ
3065
3066fi
10f2d63a
VZ
3067
3068
3069 eval "$ac_cv_use_sockets"
3070 if test "$no_cache" != 1; then
3071 echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp
3072 fi
3073
3074 if test "$wxUSE_SOCKETS" = yes; then
698dcdb6 3075 echo "$ac_t""yes" 1>&6
10f2d63a 3076 else
698dcdb6 3077 echo "$ac_t""no" 1>&6
10f2d63a 3078 fi
698dcdb6 3079
b12915c1 3080
698dcdb6
VZ
3081
3082 echo $ac_n "checking for --enable-ipc""... $ac_c" 1>&6
9926e4a4 3083echo "configure:3084: checking for --enable-ipc" >&5
10f2d63a 3084 no_cache=0
eb4efbdc
VZ
3085 # Check whether --enable-ipc or --disable-ipc was given.
3086if test "${enable_ipc+set}" = set; then
3087 enableval="$enable_ipc"
698dcdb6 3088
10f2d63a 3089 if test "$enableval" = yes; then
eb4efbdc 3090 ac_cv_use_ipc='wxUSE_IPC=yes'
10f2d63a 3091 else
eb4efbdc 3092 ac_cv_use_ipc='wxUSE_IPC=no'
10f2d63a 3093 fi
698dcdb6 3094
10f2d63a 3095else
698dcdb6 3096
eb4efbdc 3097 LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}`
10f2d63a
VZ
3098 if test "x$LINE" != x ; then
3099 eval "DEFAULT_$LINE"
3100 else
3101 no_cache=1
3102 fi
3103
eb4efbdc 3104 ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC
698dcdb6
VZ
3105
3106fi
10f2d63a
VZ
3107
3108
eb4efbdc 3109 eval "$ac_cv_use_ipc"
10f2d63a 3110 if test "$no_cache" != 1; then
eb4efbdc 3111 echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
3112 fi
3113
eb4efbdc 3114 if test "$wxUSE_IPC" = yes; then
698dcdb6 3115 echo "$ac_t""yes" 1>&6
10f2d63a 3116 else
698dcdb6 3117 echo "$ac_t""no" 1>&6
10f2d63a 3118 fi
698dcdb6
VZ
3119
3120
eb4efbdc 3121
1e6feb95 3122 echo $ac_n "checking for --enable-cmdline""... $ac_c" 1>&6
9926e4a4 3123echo "configure:3124: checking for --enable-cmdline" >&5
1e6feb95
VZ
3124 no_cache=0
3125 # Check whether --enable-cmdline or --disable-cmdline was given.
3126if test "${enable_cmdline+set}" = set; then
3127 enableval="$enable_cmdline"
3128
3129 if test "$enableval" = yes; then
3130 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=yes'
3131 else
3132 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=no'
3133 fi
3134
3135else
3136
3137 LINE=`grep "wxUSE_CMDLINE_PARSER" ${wx_arg_cache_file}`
3138 if test "x$LINE" != x ; then
3139 eval "DEFAULT_$LINE"
3140 else
3141 no_cache=1
3142 fi
3143
3144 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER='$DEFAULT_wxUSE_CMDLINE_PARSER
3145
3146fi
3147
3148
3149 eval "$ac_cv_use_cmdline"
3150 if test "$no_cache" != 1; then
3151 echo $ac_cv_use_cmdline >> ${wx_arg_cache_file}.tmp
3152 fi
3153
3154 if test "$wxUSE_CMDLINE_PARSER" = yes; then
3155 echo "$ac_t""yes" 1>&6
3156 else
3157 echo "$ac_t""no" 1>&6
3158 fi
3159
3160
3161 echo $ac_n "checking for --enable-datetime""... $ac_c" 1>&6
9926e4a4 3162echo "configure:3163: checking for --enable-datetime" >&5
1e6feb95
VZ
3163 no_cache=0
3164 # Check whether --enable-datetime or --disable-datetime was given.
3165if test "${enable_datetime+set}" = set; then
3166 enableval="$enable_datetime"
3167
3168 if test "$enableval" = yes; then
3169 ac_cv_use_datetime='wxUSE_DATETIME=yes'
3170 else
3171 ac_cv_use_datetime='wxUSE_DATETIME=no'
3172 fi
3173
3174else
3175
3176 LINE=`grep "wxUSE_DATETIME" ${wx_arg_cache_file}`
3177 if test "x$LINE" != x ; then
3178 eval "DEFAULT_$LINE"
3179 else
3180 no_cache=1
3181 fi
3182
3183 ac_cv_use_datetime='wxUSE_DATETIME='$DEFAULT_wxUSE_DATETIME
3184
3185fi
3186
3187
3188 eval "$ac_cv_use_datetime"
3189 if test "$no_cache" != 1; then
3190 echo $ac_cv_use_datetime >> ${wx_arg_cache_file}.tmp
3191 fi
3192
3193 if test "$wxUSE_DATETIME" = yes; then
3194 echo "$ac_t""yes" 1>&6
3195 else
3196 echo "$ac_t""no" 1>&6
3197 fi
3198
3199
3200 echo $ac_n "checking for --enable-timedate""... $ac_c" 1>&6
9926e4a4 3201echo "configure:3202: checking for --enable-timedate" >&5
1e6feb95
VZ
3202 no_cache=0
3203 # Check whether --enable-timedate or --disable-timedate was given.
3204if test "${enable_timedate+set}" = set; then
3205 enableval="$enable_timedate"
3206
3207 if test "$enableval" = yes; then
3208 ac_cv_use_timedate='wxUSE_TIMEDATE=yes'
3209 else
3210 ac_cv_use_timedate='wxUSE_TIMEDATE=no'
3211 fi
3212
3213else
3214
3215 LINE=`grep "wxUSE_TIMEDATE" ${wx_arg_cache_file}`
3216 if test "x$LINE" != x ; then
3217 eval "DEFAULT_$LINE"
3218 else
3219 no_cache=1
3220 fi
3221
3222 ac_cv_use_timedate='wxUSE_TIMEDATE='$DEFAULT_wxUSE_TIMEDATE
3223
3224fi
3225
3226
3227 eval "$ac_cv_use_timedate"
3228 if test "$no_cache" != 1; then
3229 echo $ac_cv_use_timedate >> ${wx_arg_cache_file}.tmp
3230 fi
3231
3232 if test "$wxUSE_TIMEDATE" = yes; then
3233 echo "$ac_t""yes" 1>&6
3234 else
3235 echo "$ac_t""no" 1>&6
3236 fi
3237
3238
3239 echo $ac_n "checking for --enable-stopwatch""... $ac_c" 1>&6
9926e4a4 3240echo "configure:3241: checking for --enable-stopwatch" >&5
1e6feb95
VZ
3241 no_cache=0
3242 # Check whether --enable-stopwatch or --disable-stopwatch was given.
3243if test "${enable_stopwatch+set}" = set; then
3244 enableval="$enable_stopwatch"
3245
3246 if test "$enableval" = yes; then
3247 ac_cv_use_stopwatch='wxUSE_STOPWATCH=yes'
3248 else
3249 ac_cv_use_stopwatch='wxUSE_STOPWATCH=no'
3250 fi
3251
3252else
3253
3254 LINE=`grep "wxUSE_STOPWATCH" ${wx_arg_cache_file}`
3255 if test "x$LINE" != x ; then
3256 eval "DEFAULT_$LINE"
3257 else
3258 no_cache=1
3259 fi
3260
3261 ac_cv_use_stopwatch='wxUSE_STOPWATCH='$DEFAULT_wxUSE_STOPWATCH
3262
3263fi
3264
3265
3266 eval "$ac_cv_use_stopwatch"
3267 if test "$no_cache" != 1; then
3268 echo $ac_cv_use_stopwatch >> ${wx_arg_cache_file}.tmp
3269 fi
3270
3271 if test "$wxUSE_STOPWATCH" = yes; then
3272 echo "$ac_t""yes" 1>&6
3273 else
3274 echo "$ac_t""no" 1>&6
3275 fi
3276
3277
698dcdb6 3278 echo $ac_n "checking for --enable-dialupman""... $ac_c" 1>&6
9926e4a4 3279echo "configure:3280: checking for --enable-dialupman" >&5
10f2d63a 3280 no_cache=0
eb4efbdc
VZ
3281 # Check whether --enable-dialupman or --disable-dialupman was given.
3282if test "${enable_dialupman+set}" = set; then
3283 enableval="$enable_dialupman"
698dcdb6 3284
10f2d63a 3285 if test "$enableval" = yes; then
eb4efbdc 3286 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes'
10f2d63a 3287 else
eb4efbdc 3288 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no'
10f2d63a 3289 fi
698dcdb6 3290
10f2d63a 3291else
698dcdb6 3292
eb4efbdc 3293 LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}`
10f2d63a
VZ
3294 if test "x$LINE" != x ; then
3295 eval "DEFAULT_$LINE"
3296 else
3297 no_cache=1
3298 fi
3299
eb4efbdc 3300 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER
698dcdb6
VZ
3301
3302fi
10f2d63a
VZ
3303
3304
eb4efbdc 3305 eval "$ac_cv_use_dialupman"
10f2d63a 3306 if test "$no_cache" != 1; then
eb4efbdc 3307 echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
3308 fi
3309
eb4efbdc 3310 if test "$wxUSE_DIALUP_MANAGER" = yes; then
698dcdb6 3311 echo "$ac_t""yes" 1>&6
10f2d63a 3312 else
698dcdb6 3313 echo "$ac_t""no" 1>&6
10f2d63a 3314 fi
698dcdb6 3315
10f2d63a 3316
698dcdb6 3317 echo $ac_n "checking for --enable-apple_ieee""... $ac_c" 1>&6
9926e4a4 3318echo "configure:3319: checking for --enable-apple_ieee" >&5
10f2d63a
VZ
3319 no_cache=0
3320 # Check whether --enable-apple_ieee or --disable-apple_ieee was given.
3321if test "${enable_apple_ieee+set}" = set; then
3322 enableval="$enable_apple_ieee"
698dcdb6 3323
10f2d63a
VZ
3324 if test "$enableval" = yes; then
3325 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes'
3326 else
3327 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no'
3328 fi
698dcdb6 3329
10f2d63a 3330else
698dcdb6 3331
10f2d63a
VZ
3332 LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}`
3333 if test "x$LINE" != x ; then
3334 eval "DEFAULT_$LINE"
3335 else
3336 no_cache=1
3337 fi
3338
3339 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE
698dcdb6
VZ
3340
3341fi
10f2d63a
VZ
3342
3343
3344 eval "$ac_cv_use_apple_ieee"
3345 if test "$no_cache" != 1; then
3346 echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp
3347 fi
3348
3349 if test "$wxUSE_APPLE_IEEE" = yes; then
698dcdb6 3350 echo "$ac_t""yes" 1>&6
10f2d63a 3351 else
698dcdb6 3352 echo "$ac_t""no" 1>&6
10f2d63a 3353 fi
698dcdb6 3354
10f2d63a 3355
1e6feb95 3356 echo $ac_n "checking for --enable-timer""... $ac_c" 1>&6
9926e4a4 3357echo "configure:3358: checking for --enable-timer" >&5
10f2d63a 3358 no_cache=0
1e6feb95
VZ
3359 # Check whether --enable-timer or --disable-timer was given.
3360if test "${enable_timer+set}" = set; then
3361 enableval="$enable_timer"
698dcdb6 3362
10f2d63a 3363 if test "$enableval" = yes; then
1e6feb95 3364 ac_cv_use_timer='wxUSE_TIMER=yes'
10f2d63a 3365 else
1e6feb95 3366 ac_cv_use_timer='wxUSE_TIMER=no'
10f2d63a 3367 fi
698dcdb6 3368
10f2d63a 3369else
698dcdb6 3370
1e6feb95 3371 LINE=`grep "wxUSE_TIMER" ${wx_arg_cache_file}`
10f2d63a
VZ
3372 if test "x$LINE" != x ; then
3373 eval "DEFAULT_$LINE"
3374 else
3375 no_cache=1
3376 fi
3377
1e6feb95 3378 ac_cv_use_timer='wxUSE_TIMER='$DEFAULT_wxUSE_TIMER
698dcdb6
VZ
3379
3380fi
10f2d63a
VZ
3381
3382
1e6feb95 3383 eval "$ac_cv_use_timer"
10f2d63a 3384 if test "$no_cache" != 1; then
1e6feb95 3385 echo $ac_cv_use_timer >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
3386 fi
3387
1e6feb95 3388 if test "$wxUSE_TIMER" = yes; then
698dcdb6 3389 echo "$ac_t""yes" 1>&6
10f2d63a 3390 else
698dcdb6 3391 echo "$ac_t""no" 1>&6
10f2d63a 3392 fi
698dcdb6 3393
10f2d63a 3394
698dcdb6 3395 echo $ac_n "checking for --enable-wave""... $ac_c" 1>&6
9926e4a4 3396echo "configure:3397: checking for --enable-wave" >&5
10f2d63a
VZ
3397 no_cache=0
3398 # Check whether --enable-wave or --disable-wave was given.
3399if test "${enable_wave+set}" = set; then
3400 enableval="$enable_wave"
698dcdb6 3401
10f2d63a
VZ
3402 if test "$enableval" = yes; then
3403 ac_cv_use_wave='wxUSE_WAVE=yes'
3404 else
3405 ac_cv_use_wave='wxUSE_WAVE=no'
3406 fi
698dcdb6 3407
10f2d63a 3408else
698dcdb6 3409
10f2d63a
VZ
3410 LINE=`grep "wxUSE_WAVE" ${wx_arg_cache_file}`
3411 if test "x$LINE" != x ; then
3412 eval "DEFAULT_$LINE"
3413 else
3414 no_cache=1
3415 fi
3416
3417 ac_cv_use_wave='wxUSE_WAVE='$DEFAULT_wxUSE_WAVE
698dcdb6
VZ
3418
3419fi
10f2d63a
VZ
3420
3421
3422 eval "$ac_cv_use_wave"
3423 if test "$no_cache" != 1; then
3424 echo $ac_cv_use_wave >> ${wx_arg_cache_file}.tmp
3425 fi
3426
3427 if test "$wxUSE_WAVE" = yes; then
698dcdb6 3428 echo "$ac_t""yes" 1>&6
10f2d63a 3429 else
698dcdb6 3430 echo "$ac_t""no" 1>&6
10f2d63a 3431 fi
698dcdb6 3432
10f2d63a 3433
698dcdb6 3434 echo $ac_n "checking for --enable-fraction""... $ac_c" 1>&6
9926e4a4 3435echo "configure:3436: checking for --enable-fraction" >&5
10f2d63a
VZ
3436 no_cache=0
3437 # Check whether --enable-fraction or --disable-fraction was given.
3438if test "${enable_fraction+set}" = set; then
3439 enableval="$enable_fraction"
698dcdb6 3440
10f2d63a
VZ
3441 if test "$enableval" = yes; then
3442 ac_cv_use_fraction='wxUSE_FRACTION=yes'
3443 else
3444 ac_cv_use_fraction='wxUSE_FRACTION=no'
3445 fi
698dcdb6 3446
10f2d63a 3447else
698dcdb6 3448
10f2d63a
VZ
3449 LINE=`grep "wxUSE_FRACTION" ${wx_arg_cache_file}`
3450 if test "x$LINE" != x ; then
3451 eval "DEFAULT_$LINE"
3452 else
3453 no_cache=1
3454 fi
3455
3456 ac_cv_use_fraction='wxUSE_FRACTION='$DEFAULT_wxUSE_FRACTION
698dcdb6
VZ
3457
3458fi
10f2d63a
VZ
3459
3460
3461 eval "$ac_cv_use_fraction"
3462 if test "$no_cache" != 1; then
3463 echo $ac_cv_use_fraction >> ${wx_arg_cache_file}.tmp
3464 fi
3465
3466 if test "$wxUSE_FRACTION" = yes; then
698dcdb6 3467 echo "$ac_t""yes" 1>&6
10f2d63a 3468 else
698dcdb6 3469 echo "$ac_t""no" 1>&6
10f2d63a 3470 fi
698dcdb6 3471
10f2d63a 3472
698dcdb6 3473 echo $ac_n "checking for --enable-dynlib""... $ac_c" 1>&6
9926e4a4 3474echo "configure:3475: checking for --enable-dynlib" >&5
10f2d63a
VZ
3475 no_cache=0
3476 # Check whether --enable-dynlib or --disable-dynlib was given.
3477if test "${enable_dynlib+set}" = set; then
3478 enableval="$enable_dynlib"
698dcdb6 3479
10f2d63a
VZ
3480 if test "$enableval" = yes; then
3481 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes'
3482 else
3483 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no'
3484 fi
698dcdb6 3485
10f2d63a 3486else
698dcdb6 3487
10f2d63a
VZ
3488 LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}`
3489 if test "x$LINE" != x ; then
3490 eval "DEFAULT_$LINE"
3491 else
3492 no_cache=1
3493 fi
3494
3495 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS
698dcdb6
VZ
3496
3497fi
10f2d63a
VZ
3498
3499
3500 eval "$ac_cv_use_dynlib"
3501 if test "$no_cache" != 1; then
3502 echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp
3503 fi
3504
3505 if test "$wxUSE_DYNLIB_CLASS" = yes; then
698dcdb6 3506 echo "$ac_t""yes" 1>&6
10f2d63a 3507 else
698dcdb6 3508 echo "$ac_t""no" 1>&6
10f2d63a 3509 fi
698dcdb6 3510
10f2d63a 3511
698dcdb6 3512 echo $ac_n "checking for --enable-longlong""... $ac_c" 1>&6
9926e4a4 3513echo "configure:3514: checking for --enable-longlong" >&5
10f2d63a
VZ
3514 no_cache=0
3515 # Check whether --enable-longlong or --disable-longlong was given.
3516if test "${enable_longlong+set}" = set; then
3517 enableval="$enable_longlong"
698dcdb6 3518
10f2d63a
VZ
3519 if test "$enableval" = yes; then
3520 ac_cv_use_longlong='wxUSE_LONGLONG=yes'
3521 else
3522 ac_cv_use_longlong='wxUSE_LONGLONG=no'
3523 fi
698dcdb6 3524
10f2d63a 3525else
698dcdb6 3526
10f2d63a
VZ
3527 LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}`
3528 if test "x$LINE" != x ; then
3529 eval "DEFAULT_$LINE"
3530 else
3531 no_cache=1
3532 fi
3533
3534 ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG
698dcdb6
VZ
3535
3536fi
10f2d63a
VZ
3537
3538
3539 eval "$ac_cv_use_longlong"
3540 if test "$no_cache" != 1; then
3541 echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp
3542 fi
3543
3544 if test "$wxUSE_LONGLONG" = yes; then
698dcdb6 3545 echo "$ac_t""yes" 1>&6
10f2d63a 3546 else
698dcdb6 3547 echo "$ac_t""no" 1>&6
10f2d63a 3548 fi
698dcdb6 3549
10f2d63a 3550
698dcdb6 3551 echo $ac_n "checking for --enable-geometry""... $ac_c" 1>&6
9926e4a4 3552echo "configure:3553: checking for --enable-geometry" >&5
e8f65ba6
RR
3553 no_cache=0
3554 # Check whether --enable-geometry or --disable-geometry was given.
3555if test "${enable_geometry+set}" = set; then
3556 enableval="$enable_geometry"
698dcdb6 3557
e8f65ba6
RR
3558 if test "$enableval" = yes; then
3559 ac_cv_use_geometry='wxUSE_GEOMETRY=yes'
3560 else
3561 ac_cv_use_geometry='wxUSE_GEOMETRY=no'
3562 fi
698dcdb6 3563
e8f65ba6 3564else
698dcdb6 3565
e8f65ba6
RR
3566 LINE=`grep "wxUSE_GEOMETRY" ${wx_arg_cache_file}`
3567 if test "x$LINE" != x ; then
3568 eval "DEFAULT_$LINE"
3569 else
3570 no_cache=1
3571 fi
3572
3573 ac_cv_use_geometry='wxUSE_GEOMETRY='$DEFAULT_wxUSE_GEOMETRY
698dcdb6
VZ
3574
3575fi
e8f65ba6
RR
3576
3577
3578 eval "$ac_cv_use_geometry"
3579 if test "$no_cache" != 1; then
3580 echo $ac_cv_use_geometry >> ${wx_arg_cache_file}.tmp
3581 fi
3582
3583 if test "$wxUSE_GEOMETRY" = yes; then
698dcdb6 3584 echo "$ac_t""yes" 1>&6
e8f65ba6 3585 else
698dcdb6 3586 echo "$ac_t""no" 1>&6
e8f65ba6 3587 fi
698dcdb6 3588
e8f65ba6 3589
698dcdb6 3590 echo $ac_n "checking for --enable-log""... $ac_c" 1>&6
9926e4a4 3591echo "configure:3592: checking for --enable-log" >&5
10f2d63a
VZ
3592 no_cache=0
3593 # Check whether --enable-log or --disable-log was given.
3594if test "${enable_log+set}" = set; then
3595 enableval="$enable_log"
698dcdb6 3596
10f2d63a
VZ
3597 if test "$enableval" = yes; then
3598 ac_cv_use_log='wxUSE_LOG=yes'
3599 else
3600 ac_cv_use_log='wxUSE_LOG=no'
3601 fi
698dcdb6 3602
10f2d63a 3603else
698dcdb6 3604
10f2d63a
VZ
3605 LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}`
3606 if test "x$LINE" != x ; then
3607 eval "DEFAULT_$LINE"
3608 else
3609 no_cache=1
3610 fi
3611
3612 ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG
698dcdb6
VZ
3613
3614fi
10f2d63a
VZ
3615
3616
3617 eval "$ac_cv_use_log"
3618 if test "$no_cache" != 1; then
3619 echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp
3620 fi
3621
3622 if test "$wxUSE_LOG" = yes; then
698dcdb6 3623 echo "$ac_t""yes" 1>&6
10f2d63a 3624 else
698dcdb6 3625 echo "$ac_t""no" 1>&6
10f2d63a 3626 fi
698dcdb6 3627
10f2d63a 3628
698dcdb6 3629 echo $ac_n "checking for --enable-streams""... $ac_c" 1>&6
9926e4a4 3630echo "configure:3631: checking for --enable-streams" >&5
10f2d63a
VZ
3631 no_cache=0
3632 # Check whether --enable-streams or --disable-streams was given.
3633if test "${enable_streams+set}" = set; then
3634 enableval="$enable_streams"
698dcdb6 3635
10f2d63a
VZ
3636 if test "$enableval" = yes; then
3637 ac_cv_use_streams='wxUSE_STREAMS=yes'
3638 else
3639 ac_cv_use_streams='wxUSE_STREAMS=no'
3640 fi
698dcdb6 3641
10f2d63a 3642else
698dcdb6 3643
10f2d63a
VZ
3644 LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}`
3645 if test "x$LINE" != x ; then
3646 eval "DEFAULT_$LINE"
3647 else
3648 no_cache=1
3649 fi
3650
3651 ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS
698dcdb6
VZ
3652
3653fi
10f2d63a
VZ
3654
3655
3656 eval "$ac_cv_use_streams"
3657 if test "$no_cache" != 1; then
3658 echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp
3659 fi
3660
3661 if test "$wxUSE_STREAMS" = yes; then
698dcdb6 3662 echo "$ac_t""yes" 1>&6
10f2d63a 3663 else
698dcdb6 3664 echo "$ac_t""no" 1>&6
10f2d63a 3665 fi
698dcdb6 3666
10f2d63a 3667
698dcdb6 3668 echo $ac_n "checking for --enable-file""... $ac_c" 1>&6
9926e4a4 3669echo "configure:3670: checking for --enable-file" >&5
10f2d63a
VZ
3670 no_cache=0
3671 # Check whether --enable-file or --disable-file was given.
3672if test "${enable_file+set}" = set; then
3673 enableval="$enable_file"
698dcdb6 3674
10f2d63a
VZ
3675 if test "$enableval" = yes; then
3676 ac_cv_use_file='wxUSE_FILE=yes'
3677 else
3678 ac_cv_use_file='wxUSE_FILE=no'
3679 fi
698dcdb6 3680
10f2d63a 3681else
698dcdb6 3682
10f2d63a
VZ
3683 LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}`
3684 if test "x$LINE" != x ; then
3685 eval "DEFAULT_$LINE"
3686 else
3687 no_cache=1
3688 fi
3689
3690 ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE
698dcdb6
VZ
3691
3692fi
10f2d63a
VZ
3693
3694
3695 eval "$ac_cv_use_file"
3696 if test "$no_cache" != 1; then
3697 echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp
3698 fi
3699
3700 if test "$wxUSE_FILE" = yes; then
698dcdb6 3701 echo "$ac_t""yes" 1>&6
10f2d63a 3702 else
698dcdb6 3703 echo "$ac_t""no" 1>&6
10f2d63a 3704 fi
698dcdb6 3705
10f2d63a 3706
1e6feb95 3707 echo $ac_n "checking for --enable-ffile""... $ac_c" 1>&6
9926e4a4 3708echo "configure:3709: checking for --enable-ffile" >&5
10f2d63a 3709 no_cache=0
1e6feb95
VZ
3710 # Check whether --enable-ffile or --disable-ffile was given.
3711if test "${enable_ffile+set}" = set; then
3712 enableval="$enable_ffile"
698dcdb6 3713
10f2d63a 3714 if test "$enableval" = yes; then
1e6feb95 3715 ac_cv_use_ffile='wxUSE_FFILE=yes'
10f2d63a 3716 else
1e6feb95 3717 ac_cv_use_ffile='wxUSE_FFILE=no'
10f2d63a 3718 fi
698dcdb6 3719
10f2d63a 3720else
698dcdb6 3721
1e6feb95 3722 LINE=`grep "wxUSE_FFILE" ${wx_arg_cache_file}`
10f2d63a
VZ
3723 if test "x$LINE" != x ; then
3724 eval "DEFAULT_$LINE"
3725 else
3726 no_cache=1
3727 fi
3728
1e6feb95 3729 ac_cv_use_ffile='wxUSE_FFILE='$DEFAULT_wxUSE_FFILE
698dcdb6
VZ
3730
3731fi
10f2d63a
VZ
3732
3733
1e6feb95 3734 eval "$ac_cv_use_ffile"
10f2d63a 3735 if test "$no_cache" != 1; then
1e6feb95 3736 echo $ac_cv_use_ffile >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
3737 fi
3738
1e6feb95 3739 if test "$wxUSE_FFILE" = yes; then
698dcdb6 3740 echo "$ac_t""yes" 1>&6
10f2d63a 3741 else
698dcdb6 3742 echo "$ac_t""no" 1>&6
10f2d63a 3743 fi
698dcdb6 3744
10f2d63a 3745
a3a584a7 3746 echo $ac_n "checking for --enable-textbuf""... $ac_c" 1>&6
9926e4a4 3747echo "configure:3748: checking for --enable-textbuf" >&5
a3a584a7
VZ
3748 no_cache=0
3749 # Check whether --enable-textbuf or --disable-textbuf was given.
3750if test "${enable_textbuf+set}" = set; then
3751 enableval="$enable_textbuf"
3752
3753 if test "$enableval" = yes; then
3754 ac_cv_use_textbuf='wxUSE_TEXTBUFFER=yes'
3755 else
3756 ac_cv_use_textbuf='wxUSE_TEXTBUFFER=no'
3757 fi
3758
3759else
3760
3761 LINE=`grep "wxUSE_TEXTBUFFER" ${wx_arg_cache_file}`
3762 if test "x$LINE" != x ; then
3763 eval "DEFAULT_$LINE"
3764 else
3765 no_cache=1
3766 fi
3767
3768 ac_cv_use_textbuf='wxUSE_TEXTBUFFER='$DEFAULT_wxUSE_TEXTBUFFER
3769
3770fi
3771
3772
3773 eval "$ac_cv_use_textbuf"
3774 if test "$no_cache" != 1; then
3775 echo $ac_cv_use_textbuf >> ${wx_arg_cache_file}.tmp
3776 fi
3777
3778 if test "$wxUSE_TEXTBUFFER" = yes; then
3779 echo "$ac_t""yes" 1>&6
3780 else
3781 echo "$ac_t""no" 1>&6
3782 fi
3783
3784
1e6feb95 3785 echo $ac_n "checking for --enable-textfile""... $ac_c" 1>&6
9926e4a4 3786echo "configure:3787: checking for --enable-textfile" >&5
10f2d63a 3787 no_cache=0
1e6feb95
VZ
3788 # Check whether --enable-textfile or --disable-textfile was given.
3789if test "${enable_textfile+set}" = set; then
3790 enableval="$enable_textfile"
698dcdb6 3791
10f2d63a 3792 if test "$enableval" = yes; then
1e6feb95 3793 ac_cv_use_textfile='wxUSE_TEXTFILE=yes'
10f2d63a 3794 else
1e6feb95 3795 ac_cv_use_textfile='wxUSE_TEXTFILE=no'
10f2d63a 3796 fi
698dcdb6 3797
10f2d63a 3798else
698dcdb6 3799
1e6feb95 3800 LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}`
10f2d63a
VZ
3801 if test "x$LINE" != x ; then
3802 eval "DEFAULT_$LINE"
3803 else
3804 no_cache=1
3805 fi
3806
1e6feb95 3807 ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE
698dcdb6
VZ
3808
3809fi
10f2d63a
VZ
3810
3811
1e6feb95 3812 eval "$ac_cv_use_textfile"
10f2d63a 3813 if test "$no_cache" != 1; then
1e6feb95 3814 echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
3815 fi
3816
1e6feb95 3817 if test "$wxUSE_TEXTFILE" = yes; then
698dcdb6 3818 echo "$ac_t""yes" 1>&6
10f2d63a 3819 else
698dcdb6 3820 echo "$ac_t""no" 1>&6
10f2d63a 3821 fi
698dcdb6 3822
10f2d63a 3823
1e6feb95 3824 echo $ac_n "checking for --enable-fontmap""... $ac_c" 1>&6
9926e4a4 3825echo "configure:3826: checking for --enable-fontmap" >&5
10f2d63a 3826 no_cache=0
1e6feb95
VZ
3827 # Check whether --enable-fontmap or --disable-fontmap was given.
3828if test "${enable_fontmap+set}" = set; then
3829 enableval="$enable_fontmap"
698dcdb6 3830
10f2d63a 3831 if test "$enableval" = yes; then
1e6feb95 3832 ac_cv_use_fontmap='wxUSE_FONTMAP=yes'
10f2d63a 3833 else
1e6feb95 3834 ac_cv_use_fontmap='wxUSE_FONTMAP=no'
10f2d63a 3835 fi
698dcdb6 3836
10f2d63a 3837else
698dcdb6 3838
1e6feb95 3839 LINE=`grep "wxUSE_FONTMAP" ${wx_arg_cache_file}`
10f2d63a
VZ
3840 if test "x$LINE" != x ; then
3841 eval "DEFAULT_$LINE"
3842 else
3843 no_cache=1
3844 fi
3845
1e6feb95 3846 ac_cv_use_fontmap='wxUSE_FONTMAP='$DEFAULT_wxUSE_FONTMAP
698dcdb6
VZ
3847
3848fi
10f2d63a
VZ
3849
3850
1e6feb95 3851 eval "$ac_cv_use_fontmap"
10f2d63a 3852 if test "$no_cache" != 1; then
1e6feb95 3853 echo $ac_cv_use_fontmap >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
3854 fi
3855
1e6feb95 3856 if test "$wxUSE_FONTMAP" = yes; then
698dcdb6 3857 echo "$ac_t""yes" 1>&6
10f2d63a 3858 else
698dcdb6 3859 echo "$ac_t""no" 1>&6
10f2d63a 3860 fi
698dcdb6 3861
10f2d63a 3862
1e6feb95 3863 echo $ac_n "checking for --enable-unicode""... $ac_c" 1>&6
9926e4a4 3864echo "configure:3865: checking for --enable-unicode" >&5
10f2d63a 3865 no_cache=0
1e6feb95
VZ
3866 # Check whether --enable-unicode or --disable-unicode was given.
3867if test "${enable_unicode+set}" = set; then
3868 enableval="$enable_unicode"
3869
3870 if test "$enableval" = yes; then
3871 ac_cv_use_unicode='wxUSE_UNICODE=yes'
3872 else
3873 ac_cv_use_unicode='wxUSE_UNICODE=no'
3874 fi
3875
3876else
3877
3878 LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}`
3879 if test "x$LINE" != x ; then
3880 eval "DEFAULT_$LINE"
3881 else
3882 no_cache=1
3883 fi
3884
3885 ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE
3886
3887fi
3888
3889
3890 eval "$ac_cv_use_unicode"
3891 if test "$no_cache" != 1; then
3892 echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp
3893 fi
3894
3895 if test "$wxUSE_UNICODE" = yes; then
3896 echo "$ac_t""yes" 1>&6
3897 else
3898 echo "$ac_t""no" 1>&6
3899 fi
3900
3901
1e6feb95 3902 echo $ac_n "checking for --enable-wxprintfv""... $ac_c" 1>&6
9926e4a4 3903echo "configure:3904: checking for --enable-wxprintfv" >&5
1e6feb95
VZ
3904 no_cache=0
3905 # Check whether --enable-wxprintfv or --disable-wxprintfv was given.
3906if test "${enable_wxprintfv+set}" = set; then
3907 enableval="$enable_wxprintfv"
3908
3909 if test "$enableval" = yes; then
10f2d63a
VZ
3910 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=yes'
3911 else
3912 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=no'
3913 fi
698dcdb6 3914
10f2d63a 3915else
698dcdb6 3916
10f2d63a
VZ
3917 LINE=`grep "wxUSE_EXPERIMENTAL_PRINTF" ${wx_arg_cache_file}`
3918 if test "x$LINE" != x ; then
3919 eval "DEFAULT_$LINE"
3920 else
3921 no_cache=1
3922 fi
3923
3924 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF='$DEFAULT_wxUSE_EXPERIMENTAL_PRINTF
698dcdb6
VZ
3925
3926fi
10f2d63a
VZ
3927
3928
3929 eval "$ac_cv_use_wxprintfv"
3930 if test "$no_cache" != 1; then
3931 echo $ac_cv_use_wxprintfv >> ${wx_arg_cache_file}.tmp
3932 fi
3933
3934 if test "$wxUSE_EXPERIMENTAL_PRINTF" = yes; then
698dcdb6 3935 echo "$ac_t""yes" 1>&6
10f2d63a 3936 else
698dcdb6 3937 echo "$ac_t""no" 1>&6
10f2d63a 3938 fi
698dcdb6 3939
10f2d63a 3940
698dcdb6 3941 echo $ac_n "checking for --enable-std_iostreams""... $ac_c" 1>&6
9926e4a4 3942echo "configure:3943: checking for --enable-std_iostreams" >&5
10f2d63a
VZ
3943 no_cache=0
3944 # Check whether --enable-std_iostreams or --disable-std_iostreams was given.
3945if test "${enable_std_iostreams+set}" = set; then
3946 enableval="$enable_std_iostreams"
698dcdb6 3947
10f2d63a
VZ
3948 if test "$enableval" = yes; then
3949 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes'
3950 else
3951 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no'
3952 fi
698dcdb6 3953
10f2d63a 3954else
698dcdb6 3955
10f2d63a
VZ
3956 LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}`
3957 if test "x$LINE" != x ; then
3958 eval "DEFAULT_$LINE"
3959 else
3960 no_cache=1
3961 fi
3962
3963 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM
698dcdb6
VZ
3964
3965fi
10f2d63a
VZ
3966
3967
3968 eval "$ac_cv_use_std_iostreams"
3969 if test "$no_cache" != 1; then
3970 echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp
3971 fi
3972
3973 if test "$wxUSE_STD_IOSTREAM" = yes; then
698dcdb6 3974 echo "$ac_t""yes" 1>&6
10f2d63a 3975 else
698dcdb6 3976 echo "$ac_t""no" 1>&6
10f2d63a 3977 fi
698dcdb6 3978
10f2d63a 3979
698dcdb6 3980 echo $ac_n "checking for --enable-filesystem""... $ac_c" 1>&6
9926e4a4 3981echo "configure:3982: checking for --enable-filesystem" >&5
24528b0c
VS
3982 no_cache=0
3983 # Check whether --enable-filesystem or --disable-filesystem was given.
3984if test "${enable_filesystem+set}" = set; then
3985 enableval="$enable_filesystem"
698dcdb6 3986
24528b0c
VS
3987 if test "$enableval" = yes; then
3988 ac_cv_use_filesystem='wxUSE_FILESYSTEM=yes'
3989 else
3990 ac_cv_use_filesystem='wxUSE_FILESYSTEM=no'
3991 fi
698dcdb6 3992
24528b0c 3993else
698dcdb6 3994
24528b0c
VS
3995 LINE=`grep "wxUSE_FILESYSTEM" ${wx_arg_cache_file}`
3996 if test "x$LINE" != x ; then
3997 eval "DEFAULT_$LINE"
3998 else
3999 no_cache=1
4000 fi
4001
4002 ac_cv_use_filesystem='wxUSE_FILESYSTEM='$DEFAULT_wxUSE_FILESYSTEM
698dcdb6
VZ
4003
4004fi
24528b0c
VS
4005
4006
4007 eval "$ac_cv_use_filesystem"
4008 if test "$no_cache" != 1; then
4009 echo $ac_cv_use_filesystem >> ${wx_arg_cache_file}.tmp
4010 fi
4011
4012 if test "$wxUSE_FILESYSTEM" = yes; then
698dcdb6 4013 echo "$ac_t""yes" 1>&6
24528b0c 4014 else
698dcdb6 4015 echo "$ac_t""no" 1>&6
24528b0c 4016 fi
698dcdb6 4017
24528b0c 4018
698dcdb6 4019 echo $ac_n "checking for --enable-fs_inet""... $ac_c" 1>&6
9926e4a4 4020echo "configure:4021: checking for --enable-fs_inet" >&5
10f2d63a
VZ
4021 no_cache=0
4022 # Check whether --enable-fs_inet or --disable-fs_inet was given.
4023if test "${enable_fs_inet+set}" = set; then
4024 enableval="$enable_fs_inet"
698dcdb6 4025
10f2d63a
VZ
4026 if test "$enableval" = yes; then
4027 ac_cv_use_fs_inet='wxUSE_FS_INET=yes'
4028 else
4029 ac_cv_use_fs_inet='wxUSE_FS_INET=no'
4030 fi
698dcdb6 4031
10f2d63a 4032else
698dcdb6 4033
10f2d63a
VZ
4034 LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}`
4035 if test "x$LINE" != x ; then
4036 eval "DEFAULT_$LINE"
4037 else
4038 no_cache=1
4039 fi
4040
4041 ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET
698dcdb6
VZ
4042
4043fi
10f2d63a
VZ
4044
4045
4046 eval "$ac_cv_use_fs_inet"
4047 if test "$no_cache" != 1; then
4048 echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp
4049 fi
4050
4051 if test "$wxUSE_FS_INET" = yes; then
698dcdb6 4052 echo "$ac_t""yes" 1>&6
10f2d63a 4053 else
698dcdb6 4054 echo "$ac_t""no" 1>&6
10f2d63a 4055 fi
698dcdb6 4056
10f2d63a 4057
698dcdb6 4058 echo $ac_n "checking for --enable-fs_zip""... $ac_c" 1>&6
9926e4a4 4059echo "configure:4060: checking for --enable-fs_zip" >&5
10f2d63a
VZ
4060 no_cache=0
4061 # Check whether --enable-fs_zip or --disable-fs_zip was given.
4062if test "${enable_fs_zip+set}" = set; then
4063 enableval="$enable_fs_zip"
698dcdb6 4064
10f2d63a
VZ
4065 if test "$enableval" = yes; then
4066 ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes'
4067 else
4068 ac_cv_use_fs_zip='wxUSE_FS_ZIP=no'
4069 fi
698dcdb6 4070
10f2d63a 4071else
698dcdb6 4072
10f2d63a
VZ
4073 LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}`
4074 if test "x$LINE" != x ; then
4075 eval "DEFAULT_$LINE"
4076 else
4077 no_cache=1
4078 fi
4079
4080 ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP
698dcdb6
VZ
4081
4082fi
10f2d63a
VZ
4083
4084
4085 eval "$ac_cv_use_fs_zip"
4086 if test "$no_cache" != 1; then
4087 echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp
4088 fi
4089
4090 if test "$wxUSE_FS_ZIP" = yes; then
698dcdb6 4091 echo "$ac_t""yes" 1>&6
10f2d63a 4092 else
698dcdb6 4093 echo "$ac_t""no" 1>&6
10f2d63a 4094 fi
698dcdb6 4095
10f2d63a 4096
698dcdb6 4097 echo $ac_n "checking for --enable-zipstream""... $ac_c" 1>&6
9926e4a4 4098echo "configure:4099: checking for --enable-zipstream" >&5
10f2d63a
VZ
4099 no_cache=0
4100 # Check whether --enable-zipstream or --disable-zipstream was given.
4101if test "${enable_zipstream+set}" = set; then
4102 enableval="$enable_zipstream"
698dcdb6 4103
10f2d63a
VZ
4104 if test "$enableval" = yes; then
4105 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes'
4106 else
4107 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no'
4108 fi
698dcdb6 4109
10f2d63a 4110else
698dcdb6 4111
10f2d63a
VZ
4112 LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}`
4113 if test "x$LINE" != x ; then
4114 eval "DEFAULT_$LINE"
4115 else
4116 no_cache=1
4117 fi
4118
4119 ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM
698dcdb6
VZ
4120
4121fi
10f2d63a
VZ
4122
4123
4124 eval "$ac_cv_use_zipstream"
4125 if test "$no_cache" != 1; then
4126 echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp
4127 fi
4128
4129 if test "$wxUSE_ZIPSTREAM" = yes; then
698dcdb6 4130 echo "$ac_t""yes" 1>&6
10f2d63a 4131 else
698dcdb6 4132 echo "$ac_t""no" 1>&6
10f2d63a 4133 fi
698dcdb6 4134
10f2d63a 4135
698dcdb6
VZ
4136
4137 echo $ac_n "checking for --enable-catch_segvs""... $ac_c" 1>&6
9926e4a4 4138echo "configure:4139: checking for --enable-catch_segvs" >&5
eb4efbdc
VZ
4139 no_cache=0
4140 # Check whether --enable-catch_segvs or --disable-catch_segvs was given.
4141if test "${enable_catch_segvs+set}" = set; then
4142 enableval="$enable_catch_segvs"
698dcdb6 4143
eb4efbdc
VZ
4144 if test "$enableval" = yes; then
4145 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes'
4146 else
4147 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no'
4148 fi
698dcdb6 4149
eb4efbdc 4150else
698dcdb6 4151
eb4efbdc
VZ
4152 LINE=`grep "wxUSE_ON_FATAL_EXCEPTION" ${wx_arg_cache_file}`
4153 if test "x$LINE" != x ; then
4154 eval "DEFAULT_$LINE"
4155 else
4156 no_cache=1
4157 fi
4158
4159 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION='$DEFAULT_wxUSE_ON_FATAL_EXCEPTION
698dcdb6
VZ
4160
4161fi
eb4efbdc
VZ
4162
4163
4164 eval "$ac_cv_use_catch_segvs"
4165 if test "$no_cache" != 1; then
4166 echo $ac_cv_use_catch_segvs >> ${wx_arg_cache_file}.tmp
4167 fi
4168
4169 if test "$wxUSE_ON_FATAL_EXCEPTION" = yes; then
698dcdb6 4170 echo "$ac_t""yes" 1>&6
eb4efbdc 4171 else
698dcdb6 4172 echo "$ac_t""no" 1>&6
eb4efbdc 4173 fi
698dcdb6 4174
eb4efbdc 4175
698dcdb6 4176 echo $ac_n "checking for --enable-snglinst""... $ac_c" 1>&6
9926e4a4 4177echo "configure:4178: checking for --enable-snglinst" >&5
4f3c5f06
VZ
4178 no_cache=0
4179 # Check whether --enable-snglinst or --disable-snglinst was given.
4180if test "${enable_snglinst+set}" = set; then
4181 enableval="$enable_snglinst"
698dcdb6 4182
4f3c5f06
VZ
4183 if test "$enableval" = yes; then
4184 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=yes'
4185 else
4186 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=no'
4187 fi
698dcdb6 4188
4f3c5f06 4189else
698dcdb6 4190
4f3c5f06
VZ
4191 LINE=`grep "wxUSE_SNGLINST_CHECKER" ${wx_arg_cache_file}`
4192 if test "x$LINE" != x ; then
4193 eval "DEFAULT_$LINE"
4194 else
4195 no_cache=1
4196 fi
4197
4198 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER='$DEFAULT_wxUSE_SNGLINST_CHECKER
698dcdb6
VZ
4199
4200fi
4f3c5f06
VZ
4201
4202
4203 eval "$ac_cv_use_snglinst"
4204 if test "$no_cache" != 1; then
4205 echo $ac_cv_use_snglinst >> ${wx_arg_cache_file}.tmp
4206 fi
4207
4208 if test "$wxUSE_SNGLINST_CHECKER" = yes; then
698dcdb6 4209 echo "$ac_t""yes" 1>&6
4f3c5f06 4210 else
698dcdb6 4211 echo "$ac_t""no" 1>&6
4f3c5f06 4212 fi
698dcdb6
VZ
4213
4214
eb4efbdc 4215
1e6feb95 4216 echo $ac_n "checking for --enable-mimetype""... $ac_c" 1>&6
9926e4a4 4217echo "configure:4218: checking for --enable-mimetype" >&5
1e6feb95
VZ
4218 no_cache=0
4219 # Check whether --enable-mimetype or --disable-mimetype was given.
4220if test "${enable_mimetype+set}" = set; then
4221 enableval="$enable_mimetype"
4222
4223 if test "$enableval" = yes; then
4224 ac_cv_use_mimetype='wxUSE_MIMETYPE=yes'
4225 else
4226 ac_cv_use_mimetype='wxUSE_MIMETYPE=no'
4227 fi
4228
4229else
4230
4231 LINE=`grep "wxUSE_MIMETYPE" ${wx_arg_cache_file}`
4232 if test "x$LINE" != x ; then
4233 eval "DEFAULT_$LINE"
4234 else
4235 no_cache=1
4236 fi
4237
4238 ac_cv_use_mimetype='wxUSE_MIMETYPE='$DEFAULT_wxUSE_MIMETYPE
4239
4240fi
4241
4242
4243 eval "$ac_cv_use_mimetype"
4244 if test "$no_cache" != 1; then
4245 echo $ac_cv_use_mimetype >> ${wx_arg_cache_file}.tmp
4246 fi
4247
4248 if test "$wxUSE_MIMETYPE" = yes; then
4249 echo "$ac_t""yes" 1>&6
4250 else
4251 echo "$ac_t""no" 1>&6
4252 fi
4253
4254
3e44f09d 4255 echo $ac_n "checking for --enable-system_options""... $ac_c" 1>&6
9926e4a4 4256echo "configure:4257: checking for --enable-system_options" >&5
3e44f09d
VZ
4257 no_cache=0
4258 # Check whether --enable-system_options or --disable-system_options was given.
4259if test "${enable_system_options+set}" = set; then
4260 enableval="$enable_system_options"
4261
4262 if test "$enableval" = yes; then
4263 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=yes'
4264 else
4265 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=no'
4266 fi
4267
4268else
4269
4270 LINE=`grep "wxUSE_SYSTEM_OPTIONS" ${wx_arg_cache_file}`
4271 if test "x$LINE" != x ; then
4272 eval "DEFAULT_$LINE"
4273 else
4274 no_cache=1
4275 fi
4276
4277 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS='$DEFAULT_wxUSE_SYSTEM_OPTIONS
4278
4279fi
4280
4281
4282 eval "$ac_cv_use_system_options"
4283 if test "$no_cache" != 1; then
4284 echo $ac_cv_use_system_options >> ${wx_arg_cache_file}.tmp
4285 fi
4286
4287 if test "$wxUSE_SYSTEM_OPTIONS" = yes; then
4288 echo "$ac_t""yes" 1>&6
4289 else
4290 echo "$ac_t""no" 1>&6
4291 fi
4292
4293
1e6feb95 4294
698dcdb6
VZ
4295
4296 echo $ac_n "checking for --enable-threads""... $ac_c" 1>&6
9926e4a4 4297echo "configure:4298: checking for --enable-threads" >&5
10f2d63a
VZ
4298 no_cache=0
4299 # Check whether --enable-threads or --disable-threads was given.
4300if test "${enable_threads+set}" = set; then
4301 enableval="$enable_threads"
698dcdb6 4302
10f2d63a
VZ
4303 if test "$enableval" = yes; then
4304 ac_cv_use_threads='wxUSE_THREADS=yes'
4305 else
4306 ac_cv_use_threads='wxUSE_THREADS=no'
4307 fi
698dcdb6 4308
10f2d63a 4309else
698dcdb6 4310
10f2d63a
VZ
4311 LINE=`grep "wxUSE_THREADS" ${wx_arg_cache_file}`
4312 if test "x$LINE" != x ; then
4313 eval "DEFAULT_$LINE"
4314 else
4315 no_cache=1
4316 fi
4317
4318 ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS
698dcdb6
VZ
4319
4320fi
10f2d63a
VZ
4321
4322
4323 eval "$ac_cv_use_threads"
4324 if test "$no_cache" != 1; then
4325 echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp
4326 fi
4327
4328 if test "$wxUSE_THREADS" = yes; then
698dcdb6 4329 echo "$ac_t""yes" 1>&6
10f2d63a 4330 else
698dcdb6 4331 echo "$ac_t""no" 1>&6
10f2d63a 4332 fi
698dcdb6 4333
10f2d63a 4334
698dcdb6 4335 echo $ac_n "checking for --enable-serial""... $ac_c" 1>&6
9926e4a4 4336echo "configure:4337: checking for --enable-serial" >&5
10f2d63a
VZ
4337 no_cache=0
4338 # Check whether --enable-serial or --disable-serial was given.
4339if test "${enable_serial+set}" = set; then
4340 enableval="$enable_serial"
698dcdb6 4341
10f2d63a
VZ
4342 if test "$enableval" = yes; then
4343 ac_cv_use_serial='wxUSE_SERIAL=yes'
4344 else
4345 ac_cv_use_serial='wxUSE_SERIAL=no'
4346 fi
698dcdb6 4347
10f2d63a 4348else
698dcdb6 4349
10f2d63a
VZ
4350 LINE=`grep "wxUSE_SERIAL" ${wx_arg_cache_file}`
4351 if test "x$LINE" != x ; then
4352 eval "DEFAULT_$LINE"
4353 else
4354 no_cache=1
4355 fi
4356
4357 ac_cv_use_serial='wxUSE_SERIAL='$DEFAULT_wxUSE_SERIAL
698dcdb6
VZ
4358
4359fi
10f2d63a
VZ
4360
4361
4362 eval "$ac_cv_use_serial"
4363 if test "$no_cache" != 1; then
4364 echo $ac_cv_use_serial >> ${wx_arg_cache_file}.tmp
4365 fi
4366
4367 if test "$wxUSE_SERIAL" = yes; then
698dcdb6 4368 echo "$ac_t""yes" 1>&6
10f2d63a 4369 else
698dcdb6 4370 echo "$ac_t""no" 1>&6
10f2d63a 4371 fi
698dcdb6 4372
10f2d63a 4373
b12915c1
VZ
4374if test "$wxUSE_GUI" = "yes"; then
4375
698dcdb6
VZ
4376
4377
4378 echo $ac_n "checking for --enable-docview""... $ac_c" 1>&6
9926e4a4 4379echo "configure:4380: checking for --enable-docview" >&5
10f2d63a
VZ
4380 no_cache=0
4381 # Check whether --enable-docview or --disable-docview was given.
4382if test "${enable_docview+set}" = set; then
4383 enableval="$enable_docview"
698dcdb6 4384
10f2d63a
VZ
4385 if test "$enableval" = yes; then
4386 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes'
4387 else
4388 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no'
4389 fi
698dcdb6 4390
10f2d63a 4391else
698dcdb6 4392
10f2d63a
VZ
4393 LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}`
4394 if test "x$LINE" != x ; then
4395 eval "DEFAULT_$LINE"
4396 else
4397 no_cache=1
4398 fi
4399
4400 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE
698dcdb6
VZ
4401
4402fi
10f2d63a
VZ
4403
4404
4405 eval "$ac_cv_use_docview"
4406 if test "$no_cache" != 1; then
4407 echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp
4408 fi
4409
4410 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then
698dcdb6 4411 echo "$ac_t""yes" 1>&6
10f2d63a 4412 else
698dcdb6 4413 echo "$ac_t""no" 1>&6
10f2d63a 4414 fi
698dcdb6 4415
10f2d63a 4416
698dcdb6 4417 echo $ac_n "checking for --enable-help""... $ac_c" 1>&6
9926e4a4 4418echo "configure:4419: checking for --enable-help" >&5
10f2d63a
VZ
4419 no_cache=0
4420 # Check whether --enable-help or --disable-help was given.
4421if test "${enable_help+set}" = set; then
4422 enableval="$enable_help"
698dcdb6 4423
10f2d63a
VZ
4424 if test "$enableval" = yes; then
4425 ac_cv_use_help='wxUSE_HELP=yes'
4426 else
4427 ac_cv_use_help='wxUSE_HELP=no'
4428 fi
698dcdb6 4429
10f2d63a 4430else
698dcdb6 4431
10f2d63a
VZ
4432 LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}`
4433 if test "x$LINE" != x ; then
4434 eval "DEFAULT_$LINE"
4435 else
4436 no_cache=1
4437 fi
4438
4439 ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP
698dcdb6
VZ
4440
4441fi
10f2d63a
VZ
4442
4443
4444 eval "$ac_cv_use_help"
4445 if test "$no_cache" != 1; then
4446 echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp
4447 fi
4448
4449 if test "$wxUSE_HELP" = yes; then
698dcdb6 4450 echo "$ac_t""yes" 1>&6
10f2d63a 4451 else
698dcdb6 4452 echo "$ac_t""no" 1>&6
10f2d63a 4453 fi
698dcdb6 4454
10f2d63a 4455
29fd3c0c 4456 echo $ac_n "checking for --enable-mshtmlhelp""... $ac_c" 1>&6
9926e4a4 4457echo "configure:4458: checking for --enable-mshtmlhelp" >&5
29fd3c0c
VS
4458 no_cache=0
4459 # Check whether --enable-mshtmlhelp or --disable-mshtmlhelp was given.
4460if test "${enable_mshtmlhelp+set}" = set; then
4461 enableval="$enable_mshtmlhelp"
4462
4463 if test "$enableval" = yes; then
4464 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=yes'
4465 else
4466 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=no'
4467 fi
4468
4469else
4470
4471 LINE=`grep "wxUSE_MS_HTML_HELP" ${wx_arg_cache_file}`
4472 if test "x$LINE" != x ; then
4473 eval "DEFAULT_$LINE"
4474 else
4475 no_cache=1
4476 fi
4477
4478 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP='$DEFAULT_wxUSE_MS_HTML_HELP
4479
4480fi
4481
4482
4483 eval "$ac_cv_use_mshtmlhelp"
4484 if test "$no_cache" != 1; then
4485 echo $ac_cv_use_mshtmlhelp >> ${wx_arg_cache_file}.tmp
4486 fi
4487
4488 if test "$wxUSE_MS_HTML_HELP" = yes; then
4489 echo "$ac_t""yes" 1>&6
4490 else
4491 echo "$ac_t""no" 1>&6
4492 fi
4493
4494
3379ed37 4495 echo $ac_n "checking for --enable-html""... $ac_c" 1>&6
9926e4a4 4496echo "configure:4497: checking for --enable-html" >&5
3379ed37
VZ
4497 no_cache=0
4498 # Check whether --enable-html or --disable-html was given.
4499if test "${enable_html+set}" = set; then
4500 enableval="$enable_html"
4501
4502 if test "$enableval" = yes; then
4503 ac_cv_use_html='wxUSE_HTML=yes'
4504 else
4505 ac_cv_use_html='wxUSE_HTML=no'
4506 fi
4507
4508else
4509
4510 LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}`
4511 if test "x$LINE" != x ; then
4512 eval "DEFAULT_$LINE"
4513 else
4514 no_cache=1
4515 fi
4516
4517 ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML
4518
4519fi
4520
4521
4522 eval "$ac_cv_use_html"
4523 if test "$no_cache" != 1; then
4524 echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp
4525 fi
4526
4527 if test "$wxUSE_HTML" = yes; then
4528 echo "$ac_t""yes" 1>&6
4529 else
4530 echo "$ac_t""no" 1>&6
4531 fi
4532
4533
4534 echo $ac_n "checking for --enable-htmlhelp""... $ac_c" 1>&6
9926e4a4 4535echo "configure:4536: checking for --enable-htmlhelp" >&5
3379ed37
VZ
4536 no_cache=0
4537 # Check whether --enable-htmlhelp or --disable-htmlhelp was given.
4538if test "${enable_htmlhelp+set}" = set; then
4539 enableval="$enable_htmlhelp"
4540
4541 if test "$enableval" = yes; then
4542 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=yes'
4543 else
4544 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=no'
4545 fi
4546
4547else
4548
4549 LINE=`grep "wxUSE_WXHTML_HELP" ${wx_arg_cache_file}`
4550 if test "x$LINE" != x ; then
4551 eval "DEFAULT_$LINE"
4552 else
4553 no_cache=1
4554 fi
4555
4556 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP='$DEFAULT_wxUSE_WXHTML_HELP
4557
4558fi
4559
4560
4561 eval "$ac_cv_use_htmlhelp"
4562 if test "$no_cache" != 1; then
4563 echo $ac_cv_use_htmlhelp >> ${wx_arg_cache_file}.tmp
4564 fi
4565
4566 if test "$wxUSE_WXHTML_HELP" = yes; then
4567 echo "$ac_t""yes" 1>&6
4568 else
4569 echo "$ac_t""no" 1>&6
4570 fi
4571
4572
698dcdb6 4573 echo $ac_n "checking for --enable-constraints""... $ac_c" 1>&6
9926e4a4 4574echo "configure:4575: checking for --enable-constraints" >&5
10f2d63a
VZ
4575 no_cache=0
4576 # Check whether --enable-constraints or --disable-constraints was given.
4577if test "${enable_constraints+set}" = set; then
4578 enableval="$enable_constraints"
698dcdb6 4579
10f2d63a
VZ
4580 if test "$enableval" = yes; then
4581 ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes'
4582 else
4583 ac_cv_use_constraints='wxUSE_CONSTRAINTS=no'
4584 fi
698dcdb6 4585
10f2d63a 4586else
698dcdb6 4587
10f2d63a
VZ
4588 LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}`
4589 if test "x$LINE" != x ; then
4590 eval "DEFAULT_$LINE"
4591 else
4592 no_cache=1
4593 fi
4594
4595 ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS
698dcdb6
VZ
4596
4597fi
10f2d63a
VZ
4598
4599
4600 eval "$ac_cv_use_constraints"
4601 if test "$no_cache" != 1; then
4602 echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp
4603 fi
4604
4605 if test "$wxUSE_CONSTRAINTS" = yes; then
698dcdb6 4606 echo "$ac_t""yes" 1>&6
10f2d63a 4607 else
698dcdb6 4608 echo "$ac_t""no" 1>&6
10f2d63a 4609 fi
698dcdb6 4610
10f2d63a 4611
698dcdb6 4612 echo $ac_n "checking for --enable-printarch""... $ac_c" 1>&6
9926e4a4 4613echo "configure:4614: checking for --enable-printarch" >&5
10f2d63a
VZ
4614 no_cache=0
4615 # Check whether --enable-printarch or --disable-printarch was given.
4616if test "${enable_printarch+set}" = set; then
4617 enableval="$enable_printarch"
698dcdb6 4618
10f2d63a
VZ
4619 if test "$enableval" = yes; then
4620 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes'
4621 else
4622 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no'
4623 fi
698dcdb6 4624
10f2d63a 4625else
698dcdb6 4626
10f2d63a
VZ
4627 LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}`
4628 if test "x$LINE" != x ; then
4629 eval "DEFAULT_$LINE"
4630 else
4631 no_cache=1
4632 fi
4633
4634 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE
698dcdb6
VZ
4635
4636fi
10f2d63a
VZ
4637
4638
4639 eval "$ac_cv_use_printarch"
4640 if test "$no_cache" != 1; then
4641 echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp
4642 fi
4643
4644 if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then
698dcdb6 4645 echo "$ac_t""yes" 1>&6
10f2d63a 4646 else
698dcdb6 4647 echo "$ac_t""no" 1>&6
10f2d63a 4648 fi
698dcdb6 4649
10f2d63a 4650
698dcdb6 4651 echo $ac_n "checking for --enable-mdi""... $ac_c" 1>&6
9926e4a4 4652echo "configure:4653: checking for --enable-mdi" >&5
10f2d63a
VZ
4653 no_cache=0
4654 # Check whether --enable-mdi or --disable-mdi was given.
4655if test "${enable_mdi+set}" = set; then
4656 enableval="$enable_mdi"
698dcdb6 4657
10f2d63a
VZ
4658 if test "$enableval" = yes; then
4659 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=yes'
4660 else
4661 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=no'
4662 fi
698dcdb6 4663
10f2d63a 4664else
698dcdb6 4665
10f2d63a
VZ
4666 LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}`
4667 if test "x$LINE" != x ; then
4668 eval "DEFAULT_$LINE"
4669 else
4670 no_cache=1
4671 fi
4672
4673 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE
698dcdb6
VZ
4674
4675fi
10f2d63a
VZ
4676
4677
4678 eval "$ac_cv_use_mdi"
4679 if test "$no_cache" != 1; then
4680 echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp
4681 fi
4682
4683 if test "$wxUSE_MDI_ARCHITECTURE" = yes; then
698dcdb6 4684 echo "$ac_t""yes" 1>&6
10f2d63a 4685 else
698dcdb6 4686 echo "$ac_t""no" 1>&6
10f2d63a 4687 fi
698dcdb6
VZ
4688
4689
1e6feb95 4690 echo $ac_n "checking for --enable-loggui""... $ac_c" 1>&6
9926e4a4 4691echo "configure:4692: checking for --enable-loggui" >&5
1e6feb95
VZ
4692 no_cache=0
4693 # Check whether --enable-loggui or --disable-loggui was given.
4694if test "${enable_loggui+set}" = set; then
4695 enableval="$enable_loggui"
4696
4697 if test "$enableval" = yes; then
4698 ac_cv_use_loggui='wxUSE_LOGGUI=yes'
4699 else
4700 ac_cv_use_loggui='wxUSE_LOGGUI=no'
4701 fi
4702
4703else
4704
4705 LINE=`grep "wxUSE_LOGGUI" ${wx_arg_cache_file}`
4706 if test "x$LINE" != x ; then
4707 eval "DEFAULT_$LINE"
4708 else
4709 no_cache=1
4710 fi
4711
4712 ac_cv_use_loggui='wxUSE_LOGGUI='$DEFAULT_wxUSE_LOGGUI
4713
4714fi
4715
4716
4717 eval "$ac_cv_use_loggui"
4718 if test "$no_cache" != 1; then
4719 echo $ac_cv_use_loggui >> ${wx_arg_cache_file}.tmp
4720 fi
4721
4722 if test "$wxUSE_LOGGUI" = yes; then
4723 echo "$ac_t""yes" 1>&6
4724 else
4725 echo "$ac_t""no" 1>&6
4726 fi
4727
4728
4729 echo $ac_n "checking for --enable-logwin""... $ac_c" 1>&6
9926e4a4 4730echo "configure:4731: checking for --enable-logwin" >&5
1e6feb95
VZ
4731 no_cache=0
4732 # Check whether --enable-logwin or --disable-logwin was given.
4733if test "${enable_logwin+set}" = set; then
4734 enableval="$enable_logwin"
4735
4736 if test "$enableval" = yes; then
4737 ac_cv_use_logwin='wxUSE_LOGWINDOW=yes'
4738 else
4739 ac_cv_use_logwin='wxUSE_LOGWINDOW=no'
4740 fi
4741
4742else
4743
4744 LINE=`grep "wxUSE_LOGWINDOW" ${wx_arg_cache_file}`
4745 if test "x$LINE" != x ; then
4746 eval "DEFAULT_$LINE"
4747 else
4748 no_cache=1
4749 fi
4750
4751 ac_cv_use_logwin='wxUSE_LOGWINDOW='$DEFAULT_wxUSE_LOGWINDOW
4752
4753fi
4754
4755
4756 eval "$ac_cv_use_logwin"
4757 if test "$no_cache" != 1; then
4758 echo $ac_cv_use_logwin >> ${wx_arg_cache_file}.tmp
4759 fi
4760
4761 if test "$wxUSE_LOGWINDOW" = yes; then
4762 echo "$ac_t""yes" 1>&6
4763 else
4764 echo "$ac_t""no" 1>&6
4765 fi
4766
4767
69d27ff7 4768 echo $ac_n "checking for --enable-logdialog""... $ac_c" 1>&6
9926e4a4 4769echo "configure:4770: checking for --enable-logdialog" >&5
69d27ff7
MB
4770 no_cache=0
4771 # Check whether --enable-logdialog or --disable-logdialog was given.
4772if test "${enable_logdialog+set}" = set; then
4773 enableval="$enable_logdialog"
4774
4775 if test "$enableval" = yes; then
4776 ac_cv_use_logdialog='wxUSE_LOGDIALOG=yes'
4777 else
4778 ac_cv_use_logdialog='wxUSE_LOGDIALOG=no'
4779 fi
4780
4781else
4782
4783 LINE=`grep "wxUSE_LOGDIALOG" ${wx_arg_cache_file}`
4784 if test "x$LINE" != x ; then
4785 eval "DEFAULT_$LINE"
4786 else
4787 no_cache=1
4788 fi
4789
4790 ac_cv_use_logdialog='wxUSE_LOGDIALOG='$DEFAULT_wxUSE_LOGDIALOG
4791
4792fi
4793
4794
4795 eval "$ac_cv_use_logdialog"
4796 if test "$no_cache" != 1; then
4797 echo $ac_cv_use_logdialog >> ${wx_arg_cache_file}.tmp
4798 fi
4799
4800 if test "$wxUSE_LOGDIALOG" = yes; then
4801 echo "$ac_t""yes" 1>&6
4802 else
4803 echo "$ac_t""no" 1>&6
4804 fi
4805
4806
10f2d63a 4807
698dcdb6 4808 echo $ac_n "checking for --enable-postscript""... $ac_c" 1>&6
9926e4a4 4809echo "configure:4810: checking for --enable-postscript" >&5
10f2d63a
VZ
4810 no_cache=0
4811 # Check whether --enable-postscript or --disable-postscript was given.
4812if test "${enable_postscript+set}" = set; then
4813 enableval="$enable_postscript"
698dcdb6 4814
10f2d63a
VZ
4815 if test "$enableval" = yes; then
4816 ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes'
4817 else
4818 ac_cv_use_postscript='wxUSE_POSTSCRIPT=no'
4819 fi
698dcdb6 4820
10f2d63a 4821else
698dcdb6 4822
10f2d63a
VZ
4823 LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}`
4824 if test "x$LINE" != x ; then
4825 eval "DEFAULT_$LINE"
4826 else
4827 no_cache=1
4828 fi
4829
4830 ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT
698dcdb6
VZ
4831
4832fi
10f2d63a
VZ
4833
4834
4835 eval "$ac_cv_use_postscript"
4836 if test "$no_cache" != 1; then
4837 echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp
4838 fi
4839
4840 if test "$wxUSE_POSTSCRIPT" = yes; then
698dcdb6 4841 echo "$ac_t""yes" 1>&6
10f2d63a 4842 else
698dcdb6 4843 echo "$ac_t""no" 1>&6
10f2d63a 4844 fi
698dcdb6
VZ
4845
4846
4847
10f2d63a 4848
1e6feb95 4849
698dcdb6 4850 echo $ac_n "checking for --enable-prologio""... $ac_c" 1>&6
9926e4a4 4851echo "configure:4852: checking for --enable-prologio" >&5
10f2d63a
VZ
4852 no_cache=0
4853 # Check whether --enable-prologio or --disable-prologio was given.
4854if test "${enable_prologio+set}" = set; then
4855 enableval="$enable_prologio"
698dcdb6 4856
10f2d63a
VZ
4857 if test "$enableval" = yes; then
4858 ac_cv_use_prologio='wxUSE_PROLOGIO=yes'
4859 else
4860 ac_cv_use_prologio='wxUSE_PROLOGIO=no'
4861 fi
698dcdb6 4862
10f2d63a 4863else
698dcdb6 4864
10f2d63a
VZ
4865 LINE=`grep "wxUSE_PROLOGIO" ${wx_arg_cache_file}`
4866 if test "x$LINE" != x ; then
4867 eval "DEFAULT_$LINE"
4868 else
4869 no_cache=1
4870 fi
4871
4872 ac_cv_use_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO
698dcdb6
VZ
4873
4874fi
10f2d63a
VZ
4875
4876
4877 eval "$ac_cv_use_prologio"
4878 if test "$no_cache" != 1; then
4879 echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp
4880 fi
4881
4882 if test "$wxUSE_PROLOGIO" = yes; then
698dcdb6 4883 echo "$ac_t""yes" 1>&6
10f2d63a 4884 else
698dcdb6 4885 echo "$ac_t""no" 1>&6
10f2d63a 4886 fi
698dcdb6 4887
10f2d63a 4888
698dcdb6 4889 echo $ac_n "checking for --enable-resources""... $ac_c" 1>&6
9926e4a4 4890echo "configure:4891: checking for --enable-resources" >&5
10f2d63a
VZ
4891 no_cache=0
4892 # Check whether --enable-resources or --disable-resources was given.
4893if test "${enable_resources+set}" = set; then
4894 enableval="$enable_resources"
698dcdb6 4895
10f2d63a
VZ
4896 if test "$enableval" = yes; then
4897 ac_cv_use_resources='wxUSE_RESOURCES=yes'
4898 else
4899 ac_cv_use_resources='wxUSE_RESOURCES=no'
4900 fi
698dcdb6 4901
10f2d63a 4902else
698dcdb6 4903
10f2d63a
VZ
4904 LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}`
4905 if test "x$LINE" != x ; then
4906 eval "DEFAULT_$LINE"
4907 else
4908 no_cache=1
4909 fi
4910
4911 ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES
698dcdb6
VZ
4912
4913fi
10f2d63a
VZ
4914
4915
4916 eval "$ac_cv_use_resources"
4917 if test "$no_cache" != 1; then
4918 echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp
4919 fi
4920
4921 if test "$wxUSE_RESOURCES" = yes; then
698dcdb6 4922 echo "$ac_t""yes" 1>&6
10f2d63a 4923 else
698dcdb6 4924 echo "$ac_t""no" 1>&6
10f2d63a 4925 fi
698dcdb6 4926
10f2d63a 4927
698dcdb6
VZ
4928
4929 echo $ac_n "checking for --enable-xresources""... $ac_c" 1>&6
9926e4a4 4930echo "configure:4931: checking for --enable-xresources" >&5
10f2d63a
VZ
4931 no_cache=0
4932 # Check whether --enable-xresources or --disable-xresources was given.
4933if test "${enable_xresources+set}" = set; then
4934 enableval="$enable_xresources"
698dcdb6 4935
10f2d63a
VZ
4936 if test "$enableval" = yes; then
4937 ac_cv_use_xresources='wxUSE_X_RESOURCES=yes'
4938 else
4939 ac_cv_use_xresources='wxUSE_X_RESOURCES=no'
4940 fi
698dcdb6 4941
10f2d63a 4942else
698dcdb6 4943
10f2d63a
VZ
4944 LINE=`grep "wxUSE_X_RESOURCES" ${wx_arg_cache_file}`
4945 if test "x$LINE" != x ; then
4946 eval "DEFAULT_$LINE"
4947 else
4948 no_cache=1
4949 fi
4950
4951 ac_cv_use_xresources='wxUSE_X_RESOURCES='$DEFAULT_wxUSE_X_RESOURCES
698dcdb6
VZ
4952
4953fi
10f2d63a
VZ
4954
4955
4956 eval "$ac_cv_use_xresources"
4957 if test "$no_cache" != 1; then
4958 echo $ac_cv_use_xresources >> ${wx_arg_cache_file}.tmp
4959 fi
4960
4961 if test "$wxUSE_X_RESOURCES" = yes; then
698dcdb6 4962 echo "$ac_t""yes" 1>&6
10f2d63a 4963 else
698dcdb6 4964 echo "$ac_t""no" 1>&6
10f2d63a 4965 fi
698dcdb6
VZ
4966
4967
10f2d63a 4968
698dcdb6
VZ
4969
4970 echo $ac_n "checking for --enable-clipboard""... $ac_c" 1>&6
9926e4a4 4971echo "configure:4972: checking for --enable-clipboard" >&5
10f2d63a
VZ
4972 no_cache=0
4973 # Check whether --enable-clipboard or --disable-clipboard was given.
4974if test "${enable_clipboard+set}" = set; then
4975 enableval="$enable_clipboard"
698dcdb6 4976
10f2d63a
VZ
4977 if test "$enableval" = yes; then
4978 ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes'
4979 else
4980 ac_cv_use_clipboard='wxUSE_CLIPBOARD=no'
4981 fi
698dcdb6 4982
10f2d63a 4983else
698dcdb6 4984
10f2d63a
VZ
4985 LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}`
4986 if test "x$LINE" != x ; then
4987 eval "DEFAULT_$LINE"
4988 else
4989 no_cache=1
4990 fi
4991
4992 ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD
698dcdb6
VZ
4993
4994fi
10f2d63a
VZ
4995
4996
4997 eval "$ac_cv_use_clipboard"
4998 if test "$no_cache" != 1; then
4999 echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp
5000 fi
5001
5002 if test "$wxUSE_CLIPBOARD" = yes; then
698dcdb6 5003 echo "$ac_t""yes" 1>&6
10f2d63a 5004 else
698dcdb6 5005 echo "$ac_t""no" 1>&6
10f2d63a 5006 fi
698dcdb6 5007
10f2d63a 5008
698dcdb6 5009 echo $ac_n "checking for --enable-dnd""... $ac_c" 1>&6
9926e4a4 5010echo "configure:5011: checking for --enable-dnd" >&5
10f2d63a
VZ
5011 no_cache=0
5012 # Check whether --enable-dnd or --disable-dnd was given.
5013if test "${enable_dnd+set}" = set; then
5014 enableval="$enable_dnd"
698dcdb6 5015
10f2d63a
VZ
5016 if test "$enableval" = yes; then
5017 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes'
5018 else
5019 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no'
5020 fi
698dcdb6 5021
10f2d63a 5022else
698dcdb6 5023
10f2d63a
VZ
5024 LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}`
5025 if test "x$LINE" != x ; then
5026 eval "DEFAULT_$LINE"
5027 else
5028 no_cache=1
5029 fi
5030
5031 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP
698dcdb6
VZ
5032
5033fi
10f2d63a
VZ
5034
5035
5036 eval "$ac_cv_use_dnd"
5037 if test "$no_cache" != 1; then
5038 echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp
5039 fi
5040
5041 if test "$wxUSE_DRAG_AND_DROP" = yes; then
698dcdb6 5042 echo "$ac_t""yes" 1>&6
10f2d63a 5043 else
698dcdb6 5044 echo "$ac_t""no" 1>&6
10f2d63a 5045 fi
698dcdb6 5046
10f2d63a 5047
698dcdb6 5048 echo $ac_n "checking for --enable-metafile""... $ac_c" 1>&6
9926e4a4 5049echo "configure:5050: checking for --enable-metafile" >&5
b64f0a5f
RL
5050 no_cache=0
5051 # Check whether --enable-metafile or --disable-metafile was given.
5052if test "${enable_metafile+set}" = set; then
5053 enableval="$enable_metafile"
698dcdb6 5054
b64f0a5f
RL
5055 if test "$enableval" = yes; then
5056 ac_cv_use_metafile='wxUSE_METAFILE=yes'
5057 else
5058 ac_cv_use_metafile='wxUSE_METAFILE=no'
5059 fi
698dcdb6 5060
b64f0a5f 5061else
698dcdb6 5062
b64f0a5f
RL
5063 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
5064 if test "x$LINE" != x ; then
5065 eval "DEFAULT_$LINE"
5066 else
5067 no_cache=1
5068 fi
5069
5070 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
698dcdb6
VZ
5071
5072fi
b64f0a5f
RL
5073
5074
5075 eval "$ac_cv_use_metafile"
5076 if test "$no_cache" != 1; then
5077 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
5078 fi
5079
5080 if test "$wxUSE_METAFILE" = yes; then
698dcdb6 5081 echo "$ac_t""yes" 1>&6
b64f0a5f 5082 else
698dcdb6 5083 echo "$ac_t""no" 1>&6
b64f0a5f 5084 fi
698dcdb6
VZ
5085
5086
10f2d63a 5087
24176f2c 5088 echo $ac_n "checking for --enable-treelayout""... $ac_c" 1>&6
9926e4a4 5089echo "configure:5090: checking for --enable-treelayout" >&5
10f2d63a 5090 no_cache=0
24176f2c
GD
5091 # Check whether --enable-treelayout or --disable-treelayout was given.
5092if test "${enable_treelayout+set}" = set; then
5093 enableval="$enable_treelayout"
698dcdb6 5094
10f2d63a 5095 if test "$enableval" = yes; then
24176f2c 5096 ac_cv_use_treelayout='wxUSE_TREELAYOUT=yes'
10f2d63a 5097 else
24176f2c 5098 ac_cv_use_treelayout='wxUSE_TREELAYOUT=no'
10f2d63a 5099 fi
698dcdb6 5100
10f2d63a 5101else
698dcdb6 5102
24176f2c 5103 LINE=`grep "wxUSE_TREELAYOUT" ${wx_arg_cache_file}`
10f2d63a
VZ
5104 if test "x$LINE" != x ; then
5105 eval "DEFAULT_$LINE"
5106 else
5107 no_cache=1
5108 fi
5109
24176f2c 5110 ac_cv_use_treelayout='wxUSE_TREELAYOUT='$DEFAULT_wxUSE_TREELAYOUT
698dcdb6
VZ
5111
5112fi
10f2d63a
VZ
5113
5114
24176f2c 5115 eval "$ac_cv_use_treelayout"
10f2d63a 5116 if test "$no_cache" != 1; then
24176f2c 5117 echo $ac_cv_use_treelayout >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
5118 fi
5119
24176f2c 5120 if test "$wxUSE_TREELAYOUT" = yes; then
698dcdb6 5121 echo "$ac_t""yes" 1>&6
10f2d63a 5122 else
698dcdb6 5123 echo "$ac_t""no" 1>&6
10f2d63a 5124 fi
698dcdb6 5125
10f2d63a 5126
698dcdb6
VZ
5127
5128
5129 echo $ac_n "checking for --enable-controls""... $ac_c" 1>&6
9926e4a4 5130echo "configure:5131: checking for --enable-controls" >&5
10f2d63a
VZ
5131 no_cache=0
5132 # Check whether --enable-controls or --disable-controls was given.
5133if test "${enable_controls+set}" = set; then
5134 enableval="$enable_controls"
698dcdb6 5135
10f2d63a
VZ
5136 if test "$enableval" = yes; then
5137 ac_cv_use_controls='wxUSE_CONTROLS=yes'
5138 else
5139 ac_cv_use_controls='wxUSE_CONTROLS=no'
5140 fi
698dcdb6 5141
10f2d63a 5142else
698dcdb6 5143
10f2d63a
VZ
5144 LINE=`grep "wxUSE_CONTROLS" ${wx_arg_cache_file}`
5145 if test "x$LINE" != x ; then
5146 eval "DEFAULT_$LINE"
5147 else
5148 no_cache=1
5149 fi
5150
5151 ac_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS
698dcdb6
VZ
5152
5153fi
10f2d63a
VZ
5154
5155
5156 eval "$ac_cv_use_controls"
5157 if test "$no_cache" != 1; then
5158 echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp
5159 fi
5160
5161 if test "$wxUSE_CONTROLS" = yes; then
698dcdb6 5162 echo "$ac_t""yes" 1>&6
10f2d63a 5163 else
698dcdb6 5164 echo "$ac_t""no" 1>&6
10f2d63a 5165 fi
698dcdb6 5166
10f2d63a
VZ
5167
5168if test "$wxUSE_CONTROLS" = "yes"; then
5169 DEFAULT_wxUSE_ACCEL=yes
1e6feb95
VZ
5170 DEFAULT_wxUSE_BMPBUTTON=yes
5171 DEFAULT_wxUSE_BUTTON=yes
5172 DEFAULT_wxUSE_CALCTRL=no
10f2d63a
VZ
5173 DEFAULT_wxUSE_CARET=yes
5174 DEFAULT_wxUSE_COMBOBOX=yes
10f2d63a
VZ
5175 DEFAULT_wxUSE_CHECKBOX=yes
5176 DEFAULT_wxUSE_CHECKLISTBOX=yes
5177 DEFAULT_wxUSE_CHOICE=yes
5178 DEFAULT_wxUSE_GAUGE=yes
5179 DEFAULT_wxUSE_GRID=yes
cc977e5f 5180 DEFAULT_wxUSE_NEW_GRID=yes
10f2d63a
VZ
5181 DEFAULT_wxUSE_IMAGLIST=yes
5182 DEFAULT_wxUSE_LISTBOX=yes
5183 DEFAULT_wxUSE_LISTCTRL=yes
5184 DEFAULT_wxUSE_NOTEBOOK=yes
24176f2c 5185 DEFAULT_wxUSE_PROPSHEET=yes
10f2d63a
VZ
5186 DEFAULT_wxUSE_RADIOBOX=yes
5187 DEFAULT_wxUSE_RADIOBTN=yes
5188 DEFAULT_wxUSE_SASH=yes
5189 DEFAULT_wxUSE_SCROLLBAR=yes
5190 DEFAULT_wxUSE_SLIDER=yes
5191 DEFAULT_wxUSE_SPINBTN=yes
56cfaa52 5192 DEFAULT_wxUSE_SPINCTRL=yes
10f2d63a
VZ
5193 DEFAULT_wxUSE_SPLITTER=yes
5194 DEFAULT_wxUSE_STATBMP=yes
5195 DEFAULT_wxUSE_STATBOX=yes
5196 DEFAULT_wxUSE_STATLINE=yes
5197 DEFAULT_wxUSE_STATUSBAR=yes
5198 DEFAULT_wxUSE_TAB_DIALOG=yes
1db8dc4a 5199 DEFAULT_wxUSE_TOGGLEBTN=yes
10f2d63a 5200 DEFAULT_wxUSE_TOOLBAR=yes
360d6699
VZ
5201 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
5202 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
10f2d63a
VZ
5203 DEFAULT_wxUSE_TOOLTIPS=yes
5204 DEFAULT_wxUSE_TREECTRL=yes
9f41d601 5205 DEFAULT_wxUSE_POPUPWIN=yes
9926e4a4 5206 DEFAULT_wxUSE_TIPWINDOW=yes
10f2d63a
VZ
5207elif test "$wxUSE_CONTROLS" = "no"; then
5208 DEFAULT_wxUSE_ACCEL=no
1e6feb95
VZ
5209 DEFAULT_wxUSE_BMPBUTTON=no
5210 DEFAULT_wxUSE_BUTTON=no
5211 DEFAULT_wxUSE_CALCTRL=no
10f2d63a
VZ
5212 DEFAULT_wxUSE_CARET=no
5213 DEFAULT_wxUSE_COMBOBOX=no
10f2d63a
VZ
5214 DEFAULT_wxUSE_CHECKBOX=no
5215 DEFAULT_wxUSE_CHECKLISTBOX=no
5216 DEFAULT_wxUSE_CHOICE=no
5217 DEFAULT_wxUSE_GAUGE=no
5218 DEFAULT_wxUSE_GRID=no
5219 DEFAULT_wxUSE_NEW_GRID=no
5220 DEFAULT_wxUSE_IMAGLIST=no
5221 DEFAULT_wxUSE_LISTBOX=no
5222 DEFAULT_wxUSE_LISTCTRL=no
5223 DEFAULT_wxUSE_NOTEBOOK=no
24176f2c 5224 DEFAULT_wxUSE_PROPSHEET=no
10f2d63a
VZ
5225 DEFAULT_wxUSE_RADIOBOX=no
5226 DEFAULT_wxUSE_RADIOBTN=no
5227 DEFAULT_wxUSE_SASH=no
5228 DEFAULT_wxUSE_SCROLLBAR=no
5229 DEFAULT_wxUSE_SLIDER=no
5230 DEFAULT_wxUSE_SPINBTN=no
56cfaa52 5231 DEFAULT_wxUSE_SPINCTRL=no
10f2d63a
VZ
5232 DEFAULT_wxUSE_SPLITTER=no
5233 DEFAULT_wxUSE_STATBMP=no
5234 DEFAULT_wxUSE_STATBOX=no
5235 DEFAULT_wxUSE_STATLINE=no
5236 DEFAULT_wxUSE_STATUSBAR=no
5237 DEFAULT_wxUSE_TAB_DIALOG=no
1db8dc4a 5238 DEFAULT_wxUSE_TOGGLEBTN=no
10f2d63a 5239 DEFAULT_wxUSE_TOOLBAR=no
360d6699
VZ
5240 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
5241 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
10f2d63a
VZ
5242 DEFAULT_wxUSE_TOOLTIPS=no
5243 DEFAULT_wxUSE_TREECTRL=no
9f41d601 5244 DEFAULT_wxUSE_POPUPWIN=no
9926e4a4 5245 DEFAULT_wxUSE_TIPWINDOW=no
10f2d63a
VZ
5246fi
5247
698dcdb6
VZ
5248
5249 echo $ac_n "checking for --enable-accel""... $ac_c" 1>&6
9926e4a4 5250echo "configure:5251: checking for --enable-accel" >&5
10f2d63a
VZ
5251 no_cache=0
5252 # Check whether --enable-accel or --disable-accel was given.
5253if test "${enable_accel+set}" = set; then
5254 enableval="$enable_accel"
698dcdb6 5255
10f2d63a
VZ
5256 if test "$enableval" = yes; then
5257 ac_cv_use_accel='wxUSE_ACCEL=yes'
5258 else
5259 ac_cv_use_accel='wxUSE_ACCEL=no'
5260 fi
698dcdb6 5261
10f2d63a 5262else
698dcdb6 5263
10f2d63a
VZ
5264 LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}`
5265 if test "x$LINE" != x ; then
5266 eval "DEFAULT_$LINE"
5267 else
5268 no_cache=1
5269 fi
5270
5271 ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL
698dcdb6
VZ
5272
5273fi
10f2d63a
VZ
5274
5275
5276 eval "$ac_cv_use_accel"
5277 if test "$no_cache" != 1; then
5278 echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp
5279 fi
5280
5281 if test "$wxUSE_ACCEL" = yes; then
698dcdb6 5282 echo "$ac_t""yes" 1>&6
10f2d63a 5283 else
698dcdb6 5284 echo "$ac_t""no" 1>&6
10f2d63a 5285 fi
698dcdb6 5286
10f2d63a 5287
1e6feb95 5288 echo $ac_n "checking for --enable-button""... $ac_c" 1>&6
9926e4a4 5289echo "configure:5290: checking for --enable-button" >&5
10f2d63a 5290 no_cache=0
1e6feb95
VZ
5291 # Check whether --enable-button or --disable-button was given.
5292if test "${enable_button+set}" = set; then
5293 enableval="$enable_button"
698dcdb6 5294
10f2d63a 5295 if test "$enableval" = yes; then
1e6feb95 5296 ac_cv_use_button='wxUSE_BUTTON=yes'
10f2d63a 5297 else
1e6feb95 5298 ac_cv_use_button='wxUSE_BUTTON=no'
10f2d63a 5299 fi
698dcdb6 5300
10f2d63a 5301else
698dcdb6 5302
1e6feb95 5303 LINE=`grep "wxUSE_BUTTON" ${wx_arg_cache_file}`
10f2d63a
VZ
5304 if test "x$LINE" != x ; then
5305 eval "DEFAULT_$LINE"
5306 else
5307 no_cache=1
5308 fi
5309
1e6feb95 5310 ac_cv_use_button='wxUSE_BUTTON='$DEFAULT_wxUSE_BUTTON
698dcdb6
VZ
5311
5312fi
10f2d63a
VZ
5313
5314
1e6feb95 5315 eval "$ac_cv_use_button"
10f2d63a 5316 if test "$no_cache" != 1; then
1e6feb95 5317 echo $ac_cv_use_button >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
5318 fi
5319
1e6feb95 5320 if test "$wxUSE_BUTTON" = yes; then
698dcdb6 5321 echo "$ac_t""yes" 1>&6
10f2d63a 5322 else
698dcdb6 5323 echo "$ac_t""no" 1>&6
10f2d63a 5324 fi
698dcdb6 5325
10f2d63a 5326
698dcdb6 5327 echo $ac_n "checking for --enable-bmpbutton""... $ac_c" 1>&6
9926e4a4 5328echo "configure:5329: checking for --enable-bmpbutton" >&5
10f2d63a
VZ
5329 no_cache=0
5330 # Check whether --enable-bmpbutton or --disable-bmpbutton was given.
5331if test "${enable_bmpbutton+set}" = set; then
5332 enableval="$enable_bmpbutton"
698dcdb6 5333
10f2d63a
VZ
5334 if test "$enableval" = yes; then
5335 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes'
5336 else
5337 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no'
5338 fi
698dcdb6 5339
10f2d63a 5340else
698dcdb6 5341
10f2d63a
VZ
5342 LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}`
5343 if test "x$LINE" != x ; then
5344 eval "DEFAULT_$LINE"
5345 else
5346 no_cache=1
5347 fi
5348
5349 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON
698dcdb6
VZ
5350
5351fi
10f2d63a
VZ
5352
5353
5354 eval "$ac_cv_use_bmpbutton"
5355 if test "$no_cache" != 1; then
5356 echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp
5357 fi
5358
5359 if test "$wxUSE_BMPBUTTON" = yes; then
698dcdb6 5360 echo "$ac_t""yes" 1>&6
10f2d63a 5361 else
698dcdb6 5362 echo "$ac_t""no" 1>&6
10f2d63a 5363 fi
698dcdb6 5364
10f2d63a 5365
1e6feb95 5366 echo $ac_n "checking for --enable-calendar""... $ac_c" 1>&6
9926e4a4 5367echo "configure:5368: checking for --enable-calendar" >&5
1e6feb95
VZ
5368 no_cache=0
5369 # Check whether --enable-calendar or --disable-calendar was given.
5370if test "${enable_calendar+set}" = set; then
5371 enableval="$enable_calendar"
5372
5373 if test "$enableval" = yes; then
5374 ac_cv_use_calendar='wxUSE_CALCTRL=yes'
5375 else
5376 ac_cv_use_calendar='wxUSE_CALCTRL=no'
5377 fi
5378
5379else
5380
5381 LINE=`grep "wxUSE_CALCTRL" ${wx_arg_cache_file}`
5382 if test "x$LINE" != x ; then
5383 eval "DEFAULT_$LINE"
5384 else
5385 no_cache=1
5386 fi
5387
5388 ac_cv_use_calendar='wxUSE_CALCTRL='$DEFAULT_wxUSE_CALCTRL
5389
5390fi
5391
5392
5393 eval "$ac_cv_use_calendar"
5394 if test "$no_cache" != 1; then
5395 echo $ac_cv_use_calendar >> ${wx_arg_cache_file}.tmp
5396 fi
5397
5398 if test "$wxUSE_CALCTRL" = yes; then
5399 echo "$ac_t""yes" 1>&6
5400 else
5401 echo "$ac_t""no" 1>&6
5402 fi
5403
5404
5405 echo $ac_n "checking for --enable-caret""... $ac_c" 1>&6
9926e4a4 5406echo "configure:5407: checking for --enable-caret" >&5
1e6feb95
VZ
5407 no_cache=0
5408 # Check whether --enable-caret or --disable-caret was given.
5409if test "${enable_caret+set}" = set; then
5410 enableval="$enable_caret"
5411
5412 if test "$enableval" = yes; then
5413 ac_cv_use_caret='wxUSE_CARET=yes'
5414 else
5415 ac_cv_use_caret='wxUSE_CARET=no'
5416 fi
5417
5418else
5419
5420 LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}`
5421 if test "x$LINE" != x ; then
5422 eval "DEFAULT_$LINE"
5423 else
5424 no_cache=1
5425 fi
5426
5427 ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET
5428
5429fi
5430
5431
5432 eval "$ac_cv_use_caret"
5433 if test "$no_cache" != 1; then
5434 echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp
5435 fi
5436
5437 if test "$wxUSE_CARET" = yes; then
5438 echo "$ac_t""yes" 1>&6
5439 else
5440 echo "$ac_t""no" 1>&6
5441 fi
5442
5443
698dcdb6 5444 echo $ac_n "checking for --enable-checkbox""... $ac_c" 1>&6
9926e4a4 5445echo "configure:5446: checking for --enable-checkbox" >&5
10f2d63a
VZ
5446 no_cache=0
5447 # Check whether --enable-checkbox or --disable-checkbox was given.
5448if test "${enable_checkbox+set}" = set; then
5449 enableval="$enable_checkbox"
698dcdb6 5450
10f2d63a
VZ
5451 if test "$enableval" = yes; then
5452 ac_cv_use_checkbox='wxUSE_CHECKBOX=yes'
5453 else
5454 ac_cv_use_checkbox='wxUSE_CHECKBOX=no'
5455 fi
698dcdb6 5456
10f2d63a 5457else
698dcdb6 5458
10f2d63a
VZ
5459 LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}`
5460 if test "x$LINE" != x ; then
5461 eval "DEFAULT_$LINE"
5462 else
5463 no_cache=1
5464 fi
5465
5466 ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX
698dcdb6
VZ
5467
5468fi
10f2d63a
VZ
5469
5470
5471 eval "$ac_cv_use_checkbox"
5472 if test "$no_cache" != 1; then
5473 echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp
5474 fi
5475
5476 if test "$wxUSE_CHECKBOX" = yes; then
698dcdb6 5477 echo "$ac_t""yes" 1>&6
10f2d63a 5478 else
698dcdb6 5479 echo "$ac_t""no" 1>&6
10f2d63a 5480 fi
698dcdb6 5481
10f2d63a 5482
698dcdb6 5483 echo $ac_n "checking for --enable-checklst""... $ac_c" 1>&6
9926e4a4 5484echo "configure:5485: checking for --enable-checklst" >&5
10f2d63a
VZ
5485 no_cache=0
5486 # Check whether --enable-checklst or --disable-checklst was given.
5487if test "${enable_checklst+set}" = set; then
5488 enableval="$enable_checklst"
698dcdb6 5489
10f2d63a
VZ
5490 if test "$enableval" = yes; then
5491 ac_cv_use_checklst='wxUSE_CHECKLST=yes'
5492 else
5493 ac_cv_use_checklst='wxUSE_CHECKLST=no'
5494 fi
698dcdb6 5495
10f2d63a 5496else
698dcdb6 5497
10f2d63a
VZ
5498 LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}`
5499 if test "x$LINE" != x ; then
5500 eval "DEFAULT_$LINE"
5501 else
5502 no_cache=1
5503 fi
5504
5505 ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST
698dcdb6
VZ
5506
5507fi
10f2d63a
VZ
5508
5509
5510 eval "$ac_cv_use_checklst"
5511 if test "$no_cache" != 1; then
5512 echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp
5513 fi
5514
5515 if test "$wxUSE_CHECKLST" = yes; then
698dcdb6 5516 echo "$ac_t""yes" 1>&6
10f2d63a 5517 else
698dcdb6 5518 echo "$ac_t""no" 1>&6
10f2d63a 5519 fi
698dcdb6 5520
10f2d63a 5521
698dcdb6 5522 echo $ac_n "checking for --enable-choice""... $ac_c" 1>&6
9926e4a4 5523echo "configure:5524: checking for --enable-choice" >&5
10f2d63a
VZ
5524 no_cache=0
5525 # Check whether --enable-choice or --disable-choice was given.
5526if test "${enable_choice+set}" = set; then
5527 enableval="$enable_choice"
698dcdb6 5528
10f2d63a
VZ
5529 if test "$enableval" = yes; then
5530 ac_cv_use_choice='wxUSE_CHOICE=yes'
5531 else
5532 ac_cv_use_choice='wxUSE_CHOICE=no'
5533 fi
698dcdb6 5534
10f2d63a 5535else
698dcdb6 5536
10f2d63a
VZ
5537 LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}`
5538 if test "x$LINE" != x ; then
5539 eval "DEFAULT_$LINE"
5540 else
5541 no_cache=1
5542 fi
5543
5544 ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE
698dcdb6
VZ
5545
5546fi
10f2d63a
VZ
5547
5548
5549 eval "$ac_cv_use_choice"
5550 if test "$no_cache" != 1; then
5551 echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp
5552 fi
5553
5554 if test "$wxUSE_CHOICE" = yes; then
698dcdb6 5555 echo "$ac_t""yes" 1>&6
10f2d63a 5556 else
698dcdb6 5557 echo "$ac_t""no" 1>&6
10f2d63a 5558 fi
698dcdb6 5559
10f2d63a 5560
698dcdb6 5561 echo $ac_n "checking for --enable-combobox""... $ac_c" 1>&6
9926e4a4 5562echo "configure:5563: checking for --enable-combobox" >&5
10f2d63a
VZ
5563 no_cache=0
5564 # Check whether --enable-combobox or --disable-combobox was given.
5565if test "${enable_combobox+set}" = set; then
5566 enableval="$enable_combobox"
698dcdb6 5567
10f2d63a
VZ
5568 if test "$enableval" = yes; then
5569 ac_cv_use_combobox='wxUSE_COMBOBOX=yes'
5570 else
5571 ac_cv_use_combobox='wxUSE_COMBOBOX=no'
5572 fi
698dcdb6 5573
10f2d63a 5574else
698dcdb6 5575
10f2d63a
VZ
5576 LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}`
5577 if test "x$LINE" != x ; then
5578 eval "DEFAULT_$LINE"
5579 else
5580 no_cache=1
5581 fi
5582
5583 ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX
698dcdb6
VZ
5584
5585fi
10f2d63a
VZ
5586
5587
5588 eval "$ac_cv_use_combobox"
5589 if test "$no_cache" != 1; then
5590 echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp
5591 fi
5592
5593 if test "$wxUSE_COMBOBOX" = yes; then
698dcdb6 5594 echo "$ac_t""yes" 1>&6
10f2d63a 5595 else
698dcdb6 5596 echo "$ac_t""no" 1>&6
10f2d63a 5597 fi
698dcdb6 5598
10f2d63a 5599
698dcdb6 5600 echo $ac_n "checking for --enable-gauge""... $ac_c" 1>&6
9926e4a4 5601echo "configure:5602: checking for --enable-gauge" >&5
10f2d63a
VZ
5602 no_cache=0
5603 # Check whether --enable-gauge or --disable-gauge was given.
5604if test "${enable_gauge+set}" = set; then
5605 enableval="$enable_gauge"
698dcdb6 5606
10f2d63a
VZ
5607 if test "$enableval" = yes; then
5608 ac_cv_use_gauge='wxUSE_GAUGE=yes'
5609 else
5610 ac_cv_use_gauge='wxUSE_GAUGE=no'
5611 fi
698dcdb6 5612
10f2d63a 5613else
698dcdb6 5614
10f2d63a
VZ
5615 LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}`
5616 if test "x$LINE" != x ; then
5617 eval "DEFAULT_$LINE"
5618 else
5619 no_cache=1
5620 fi
5621
5622 ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE
698dcdb6
VZ
5623
5624fi
10f2d63a
VZ
5625
5626
5627 eval "$ac_cv_use_gauge"
5628 if test "$no_cache" != 1; then
5629 echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp
5630 fi
5631
5632 if test "$wxUSE_GAUGE" = yes; then
698dcdb6 5633 echo "$ac_t""yes" 1>&6
10f2d63a 5634 else
698dcdb6 5635 echo "$ac_t""no" 1>&6
10f2d63a 5636 fi
698dcdb6 5637
10f2d63a 5638
698dcdb6 5639 echo $ac_n "checking for --enable-grid""... $ac_c" 1>&6
9926e4a4 5640echo "configure:5641: checking for --enable-grid" >&5
10f2d63a
VZ
5641 no_cache=0
5642 # Check whether --enable-grid or --disable-grid was given.
5643if test "${enable_grid+set}" = set; then
5644 enableval="$enable_grid"
698dcdb6 5645
10f2d63a
VZ
5646 if test "$enableval" = yes; then
5647 ac_cv_use_grid='wxUSE_GRID=yes'
5648 else
5649 ac_cv_use_grid='wxUSE_GRID=no'
5650 fi
698dcdb6 5651
10f2d63a 5652else
698dcdb6 5653
10f2d63a
VZ
5654 LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}`
5655 if test "x$LINE" != x ; then
5656 eval "DEFAULT_$LINE"
5657 else
5658 no_cache=1
5659 fi
5660
5661 ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID
698dcdb6
VZ
5662
5663fi
10f2d63a
VZ
5664
5665
5666 eval "$ac_cv_use_grid"
5667 if test "$no_cache" != 1; then
5668 echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp
5669 fi
5670
5671 if test "$wxUSE_GRID" = yes; then
698dcdb6 5672 echo "$ac_t""yes" 1>&6
10f2d63a 5673 else
698dcdb6 5674 echo "$ac_t""no" 1>&6
10f2d63a 5675 fi
698dcdb6 5676
10f2d63a 5677
698dcdb6 5678 echo $ac_n "checking for --enable-newgrid""... $ac_c" 1>&6
9926e4a4 5679echo "configure:5680: checking for --enable-newgrid" >&5
10f2d63a
VZ
5680 no_cache=0
5681 # Check whether --enable-newgrid or --disable-newgrid was given.
5682if test "${enable_newgrid+set}" = set; then
5683 enableval="$enable_newgrid"
698dcdb6 5684
10f2d63a
VZ
5685 if test "$enableval" = yes; then
5686 ac_cv_use_newgrid='wxUSE_NEW_GRID=yes'
5687 else
5688 ac_cv_use_newgrid='wxUSE_NEW_GRID=no'
5689 fi
698dcdb6 5690
10f2d63a 5691else
698dcdb6 5692
10f2d63a
VZ
5693 LINE=`grep "wxUSE_NEW_GRID" ${wx_arg_cache_file}`
5694 if test "x$LINE" != x ; then
5695 eval "DEFAULT_$LINE"
5696 else
5697 no_cache=1
5698 fi
5699
5700 ac_cv_use_newgrid='wxUSE_NEW_GRID='$DEFAULT_wxUSE_NEW_GRID
698dcdb6
VZ
5701
5702fi
10f2d63a
VZ
5703
5704
5705 eval "$ac_cv_use_newgrid"
5706 if test "$no_cache" != 1; then
5707 echo $ac_cv_use_newgrid >> ${wx_arg_cache_file}.tmp
5708 fi
5709
5710 if test "$wxUSE_NEW_GRID" = yes; then
698dcdb6 5711 echo "$ac_t""yes" 1>&6
10f2d63a 5712 else
698dcdb6 5713 echo "$ac_t""no" 1>&6
10f2d63a 5714 fi
698dcdb6 5715
10f2d63a 5716
698dcdb6 5717 echo $ac_n "checking for --enable-imaglist""... $ac_c" 1>&6
9926e4a4 5718echo "configure:5719: checking for --enable-imaglist" >&5
10f2d63a
VZ
5719 no_cache=0
5720 # Check whether --enable-imaglist or --disable-imaglist was given.
5721if test "${enable_imaglist+set}" = set; then
5722 enableval="$enable_imaglist"
698dcdb6 5723
10f2d63a
VZ
5724 if test "$enableval" = yes; then
5725 ac_cv_use_imaglist='wxUSE_IMAGLIST=yes'
5726 else
5727 ac_cv_use_imaglist='wxUSE_IMAGLIST=no'
5728 fi
698dcdb6 5729
10f2d63a 5730else
698dcdb6 5731
10f2d63a
VZ
5732 LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}`
5733 if test "x$LINE" != x ; then
5734 eval "DEFAULT_$LINE"
5735 else
5736 no_cache=1
5737 fi
5738
5739 ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST
698dcdb6
VZ
5740
5741fi
10f2d63a
VZ
5742
5743
5744 eval "$ac_cv_use_imaglist"
5745 if test "$no_cache" != 1; then
5746 echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp
5747 fi
5748
5749 if test "$wxUSE_IMAGLIST" = yes; then
698dcdb6 5750 echo "$ac_t""yes" 1>&6
10f2d63a 5751 else
698dcdb6 5752 echo "$ac_t""no" 1>&6
10f2d63a 5753 fi
698dcdb6 5754
10f2d63a 5755
698dcdb6 5756 echo $ac_n "checking for --enable-listbox""... $ac_c" 1>&6
9926e4a4 5757echo "configure:5758: checking for --enable-listbox" >&5
10f2d63a
VZ
5758 no_cache=0
5759 # Check whether --enable-listbox or --disable-listbox was given.
5760if test "${enable_listbox+set}" = set; then
5761 enableval="$enable_listbox"
698dcdb6 5762
10f2d63a
VZ
5763 if test "$enableval" = yes; then
5764 ac_cv_use_listbox='wxUSE_LISTBOX=yes'
5765 else
5766 ac_cv_use_listbox='wxUSE_LISTBOX=no'
5767 fi
698dcdb6 5768
10f2d63a 5769else
698dcdb6 5770
10f2d63a
VZ
5771 LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}`
5772 if test "x$LINE" != x ; then
5773 eval "DEFAULT_$LINE"
5774 else
5775 no_cache=1
5776 fi
5777
5778 ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX
698dcdb6
VZ
5779
5780fi
10f2d63a
VZ
5781
5782
5783 eval "$ac_cv_use_listbox"
5784 if test "$no_cache" != 1; then
5785 echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp
5786 fi
5787
5788 if test "$wxUSE_LISTBOX" = yes; then
698dcdb6 5789 echo "$ac_t""yes" 1>&6
10f2d63a 5790 else
698dcdb6 5791 echo "$ac_t""no" 1>&6
10f2d63a 5792 fi
698dcdb6 5793
10f2d63a 5794
698dcdb6 5795 echo $ac_n "checking for --enable-listctrl""... $ac_c" 1>&6
9926e4a4 5796echo "configure:5797: checking for --enable-listctrl" >&5
10f2d63a
VZ
5797 no_cache=0
5798 # Check whether --enable-listctrl or --disable-listctrl was given.
5799if test "${enable_listctrl+set}" = set; then
5800 enableval="$enable_listctrl"
698dcdb6 5801
10f2d63a
VZ
5802 if test "$enableval" = yes; then
5803 ac_cv_use_listctrl='wxUSE_LISTCTRL=yes'
5804 else
5805 ac_cv_use_listctrl='wxUSE_LISTCTRL=no'
5806 fi
698dcdb6 5807
10f2d63a 5808else
698dcdb6 5809
10f2d63a
VZ
5810 LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}`
5811 if test "x$LINE" != x ; then
5812 eval "DEFAULT_$LINE"
5813 else
5814 no_cache=1
5815 fi
5816
5817 ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL
698dcdb6
VZ
5818
5819fi
10f2d63a
VZ
5820
5821
5822 eval "$ac_cv_use_listctrl"
5823 if test "$no_cache" != 1; then
5824 echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp
5825 fi
5826
5827 if test "$wxUSE_LISTCTRL" = yes; then
698dcdb6 5828 echo "$ac_t""yes" 1>&6
10f2d63a 5829 else
698dcdb6 5830 echo "$ac_t""no" 1>&6
10f2d63a 5831 fi
698dcdb6 5832
10f2d63a 5833
698dcdb6 5834 echo $ac_n "checking for --enable-notebook""... $ac_c" 1>&6
9926e4a4 5835echo "configure:5836: checking for --enable-notebook" >&5
10f2d63a
VZ
5836 no_cache=0
5837 # Check whether --enable-notebook or --disable-notebook was given.
5838if test "${enable_notebook+set}" = set; then
5839 enableval="$enable_notebook"
698dcdb6 5840
10f2d63a
VZ
5841 if test "$enableval" = yes; then
5842 ac_cv_use_notebook='wxUSE_NOTEBOOK=yes'
5843 else
5844 ac_cv_use_notebook='wxUSE_NOTEBOOK=no'
5845 fi
698dcdb6 5846
10f2d63a 5847else
698dcdb6 5848
10f2d63a
VZ
5849 LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}`
5850 if test "x$LINE" != x ; then
5851 eval "DEFAULT_$LINE"
5852 else
5853 no_cache=1
5854 fi
5855
5856 ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK
698dcdb6
VZ
5857
5858fi
10f2d63a
VZ
5859
5860
5861 eval "$ac_cv_use_notebook"
5862 if test "$no_cache" != 1; then
5863 echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp
5864 fi
5865
5866 if test "$wxUSE_NOTEBOOK" = yes; then
698dcdb6 5867 echo "$ac_t""yes" 1>&6
10f2d63a 5868 else
698dcdb6 5869 echo "$ac_t""no" 1>&6
10f2d63a 5870 fi
698dcdb6 5871
10f2d63a 5872
24176f2c 5873 echo $ac_n "checking for --enable-propsheet""... $ac_c" 1>&6
9926e4a4 5874echo "configure:5875: checking for --enable-propsheet" >&5
24176f2c
GD
5875 no_cache=0
5876 # Check whether --enable-propsheet or --disable-propsheet was given.
5877if test "${enable_propsheet+set}" = set; then
5878 enableval="$enable_propsheet"
5879
5880 if test "$enableval" = yes; then
5881 ac_cv_use_propsheet='wxUSE_PROPSHEET=yes'
5882 else
5883 ac_cv_use_propsheet='wxUSE_PROPSHEET=no'
5884 fi
5885
5886else
5887
5888 LINE=`grep "wxUSE_PROPSHEET" ${wx_arg_cache_file}`
5889 if test "x$LINE" != x ; then
5890 eval "DEFAULT_$LINE"
5891 else
5892 no_cache=1
5893 fi
5894
5895 ac_cv_use_propsheet='wxUSE_PROPSHEET='$DEFAULT_wxUSE_PROPSHEET
5896
5897fi
5898
5899
5900 eval "$ac_cv_use_propsheet"
5901 if test "$no_cache" != 1; then
5902 echo $ac_cv_use_propsheet >> ${wx_arg_cache_file}.tmp
5903 fi
5904
5905 if test "$wxUSE_PROPSHEET" = yes; then
5906 echo "$ac_t""yes" 1>&6
5907 else
5908 echo "$ac_t""no" 1>&6
5909 fi
5910
5911
698dcdb6 5912 echo $ac_n "checking for --enable-radiobox""... $ac_c" 1>&6
9926e4a4 5913echo "configure:5914: checking for --enable-radiobox" >&5
10f2d63a
VZ
5914 no_cache=0
5915 # Check whether --enable-radiobox or --disable-radiobox was given.
5916if test "${enable_radiobox+set}" = set; then
5917 enableval="$enable_radiobox"
698dcdb6 5918
10f2d63a
VZ
5919 if test "$enableval" = yes; then
5920 ac_cv_use_radiobox='wxUSE_RADIOBOX=yes'
5921 else
5922 ac_cv_use_radiobox='wxUSE_RADIOBOX=no'
5923 fi
698dcdb6 5924
10f2d63a 5925else
698dcdb6 5926
10f2d63a
VZ
5927 LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}`
5928 if test "x$LINE" != x ; then
5929 eval "DEFAULT_$LINE"
5930 else
5931 no_cache=1
5932 fi
5933
5934 ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX
698dcdb6
VZ
5935
5936fi
10f2d63a
VZ
5937
5938
5939 eval "$ac_cv_use_radiobox"
5940 if test "$no_cache" != 1; then
5941 echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp
5942 fi
5943
5944 if test "$wxUSE_RADIOBOX" = yes; then
698dcdb6 5945 echo "$ac_t""yes" 1>&6
10f2d63a 5946 else
698dcdb6 5947 echo "$ac_t""no" 1>&6
10f2d63a 5948 fi
698dcdb6 5949
10f2d63a 5950
698dcdb6 5951 echo $ac_n "checking for --enable-radiobtn""... $ac_c" 1>&6
9926e4a4 5952echo "configure:5953: checking for --enable-radiobtn" >&5
10f2d63a
VZ
5953 no_cache=0
5954 # Check whether --enable-radiobtn or --disable-radiobtn was given.
5955if test "${enable_radiobtn+set}" = set; then
5956 enableval="$enable_radiobtn"
698dcdb6 5957
10f2d63a
VZ
5958 if test "$enableval" = yes; then
5959 ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes'
5960 else
5961 ac_cv_use_radiobtn='wxUSE_RADIOBTN=no'
5962 fi
698dcdb6 5963
10f2d63a 5964else
698dcdb6 5965
10f2d63a
VZ
5966 LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}`
5967 if test "x$LINE" != x ; then
5968 eval "DEFAULT_$LINE"
5969 else
5970 no_cache=1
5971 fi
5972
5973 ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN
698dcdb6
VZ
5974
5975fi
10f2d63a
VZ
5976
5977
5978 eval "$ac_cv_use_radiobtn"
5979 if test "$no_cache" != 1; then
5980 echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp
5981 fi
5982
5983 if test "$wxUSE_RADIOBTN" = yes; then
698dcdb6 5984 echo "$ac_t""yes" 1>&6
10f2d63a 5985 else
698dcdb6 5986 echo "$ac_t""no" 1>&6
10f2d63a 5987 fi
698dcdb6 5988
10f2d63a 5989
698dcdb6 5990 echo $ac_n "checking for --enable-sash""... $ac_c" 1>&6
9926e4a4 5991echo "configure:5992: checking for --enable-sash" >&5
10f2d63a
VZ
5992 no_cache=0
5993 # Check whether --enable-sash or --disable-sash was given.
5994if test "${enable_sash+set}" = set; then
5995 enableval="$enable_sash"
698dcdb6 5996
10f2d63a
VZ
5997 if test "$enableval" = yes; then
5998 ac_cv_use_sash='wxUSE_SASH=yes'
5999 else
6000 ac_cv_use_sash='wxUSE_SASH=no'
6001 fi
698dcdb6 6002
10f2d63a 6003else
698dcdb6 6004
10f2d63a
VZ
6005 LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}`
6006 if test "x$LINE" != x ; then
6007 eval "DEFAULT_$LINE"
6008 else
6009 no_cache=1
6010 fi
6011
6012 ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH
698dcdb6
VZ
6013
6014fi
10f2d63a
VZ
6015
6016
6017 eval "$ac_cv_use_sash"
6018 if test "$no_cache" != 1; then
6019 echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp
6020 fi
6021
6022 if test "$wxUSE_SASH" = yes; then
698dcdb6 6023 echo "$ac_t""yes" 1>&6
10f2d63a 6024 else
698dcdb6 6025 echo "$ac_t""no" 1>&6
10f2d63a 6026 fi
698dcdb6 6027
10f2d63a 6028
698dcdb6 6029 echo $ac_n "checking for --enable-scrollbar""... $ac_c" 1>&6
9926e4a4 6030echo "configure:6031: checking for --enable-scrollbar" >&5
10f2d63a
VZ
6031 no_cache=0
6032 # Check whether --enable-scrollbar or --disable-scrollbar was given.
6033if test "${enable_scrollbar+set}" = set; then
6034 enableval="$enable_scrollbar"
698dcdb6 6035
10f2d63a
VZ
6036 if test "$enableval" = yes; then
6037 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes'
6038 else
6039 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no'
6040 fi
698dcdb6 6041
10f2d63a 6042else
698dcdb6 6043
10f2d63a
VZ
6044 LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}`
6045 if test "x$LINE" != x ; then
6046 eval "DEFAULT_$LINE"
6047 else
6048 no_cache=1
6049 fi
6050
6051 ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR
698dcdb6
VZ
6052
6053fi
10f2d63a
VZ
6054
6055
6056 eval "$ac_cv_use_scrollbar"
6057 if test "$no_cache" != 1; then
6058 echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp
6059 fi
6060
6061 if test "$wxUSE_SCROLLBAR" = yes; then
698dcdb6 6062 echo "$ac_t""yes" 1>&6
10f2d63a 6063 else
698dcdb6 6064 echo "$ac_t""no" 1>&6
10f2d63a 6065 fi
698dcdb6 6066
10f2d63a 6067
698dcdb6 6068 echo $ac_n "checking for --enable-slider""... $ac_c" 1>&6
9926e4a4 6069echo "configure:6070: checking for --enable-slider" >&5
10f2d63a
VZ
6070 no_cache=0
6071 # Check whether --enable-slider or --disable-slider was given.
6072if test "${enable_slider+set}" = set; then
6073 enableval="$enable_slider"
698dcdb6 6074
10f2d63a
VZ
6075 if test "$enableval" = yes; then
6076 ac_cv_use_slider='wxUSE_SLIDER=yes'
6077 else
6078 ac_cv_use_slider='wxUSE_SLIDER=no'
6079 fi
698dcdb6 6080
10f2d63a 6081else
698dcdb6 6082
10f2d63a
VZ
6083 LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}`
6084 if test "x$LINE" != x ; then
6085 eval "DEFAULT_$LINE"
6086 else
6087 no_cache=1
6088 fi
6089
6090 ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER
698dcdb6
VZ
6091
6092fi
10f2d63a
VZ
6093
6094
6095 eval "$ac_cv_use_slider"
6096 if test "$no_cache" != 1; then
6097 echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp
6098 fi
6099
6100 if test "$wxUSE_SLIDER" = yes; then
698dcdb6 6101 echo "$ac_t""yes" 1>&6
10f2d63a 6102 else
698dcdb6 6103 echo "$ac_t""no" 1>&6
10f2d63a 6104 fi
698dcdb6 6105
10f2d63a 6106
698dcdb6 6107 echo $ac_n "checking for --enable-spinbtn""... $ac_c" 1>&6
9926e4a4 6108echo "configure:6109: checking for --enable-spinbtn" >&5
10f2d63a
VZ
6109 no_cache=0
6110 # Check whether --enable-spinbtn or --disable-spinbtn was given.
6111if test "${enable_spinbtn+set}" = set; then
6112 enableval="$enable_spinbtn"
698dcdb6 6113
10f2d63a
VZ
6114 if test "$enableval" = yes; then
6115 ac_cv_use_spinbtn='wxUSE_SPINBTN=yes'
6116 else
6117 ac_cv_use_spinbtn='wxUSE_SPINBTN=no'
6118 fi
698dcdb6 6119
10f2d63a 6120else
698dcdb6 6121
10f2d63a
VZ
6122 LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}`
6123 if test "x$LINE" != x ; then
6124 eval "DEFAULT_$LINE"
6125 else
6126 no_cache=1
6127 fi
6128
6129 ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN
698dcdb6
VZ
6130
6131fi
10f2d63a
VZ
6132
6133
6134 eval "$ac_cv_use_spinbtn"
6135 if test "$no_cache" != 1; then
6136 echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp
6137 fi
6138
6139 if test "$wxUSE_SPINBTN" = yes; then
698dcdb6 6140 echo "$ac_t""yes" 1>&6
10f2d63a 6141 else
698dcdb6 6142 echo "$ac_t""no" 1>&6
10f2d63a 6143 fi
698dcdb6 6144
10f2d63a 6145
698dcdb6 6146 echo $ac_n "checking for --enable-spinctrl""... $ac_c" 1>&6
9926e4a4 6147echo "configure:6148: checking for --enable-spinctrl" >&5
56cfaa52
RR
6148 no_cache=0
6149 # Check whether --enable-spinctrl or --disable-spinctrl was given.
6150if test "${enable_spinctrl+set}" = set; then
6151 enableval="$enable_spinctrl"
698dcdb6 6152
56cfaa52
RR
6153 if test "$enableval" = yes; then
6154 ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes'
6155 else
6156 ac_cv_use_spinctrl='wxUSE_SPINCTRL=no'
6157 fi
698dcdb6 6158
56cfaa52 6159else
698dcdb6 6160
56cfaa52
RR
6161 LINE=`grep "wxUSE_SPINCTRL" ${wx_arg_cache_file}`
6162 if test "x$LINE" != x ; then
6163 eval "DEFAULT_$LINE"
6164 else
6165 no_cache=1
6166 fi
6167
6168 ac_cv_use_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL
698dcdb6
VZ
6169
6170fi
56cfaa52
RR
6171
6172
6173 eval "$ac_cv_use_spinctrl"
6174 if test "$no_cache" != 1; then
6175 echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp
6176 fi
6177
6178 if test "$wxUSE_SPINCTRL" = yes; then
698dcdb6 6179 echo "$ac_t""yes" 1>&6
56cfaa52 6180 else
698dcdb6 6181 echo "$ac_t""no" 1>&6
56cfaa52 6182 fi
698dcdb6 6183
56cfaa52 6184
698dcdb6 6185 echo $ac_n "checking for --enable-splitter""... $ac_c" 1>&6
9926e4a4 6186echo "configure:6187: checking for --enable-splitter" >&5
10f2d63a
VZ
6187 no_cache=0
6188 # Check whether --enable-splitter or --disable-splitter was given.
6189if test "${enable_splitter+set}" = set; then
6190 enableval="$enable_splitter"
698dcdb6 6191
10f2d63a
VZ
6192 if test "$enableval" = yes; then
6193 ac_cv_use_splitter='wxUSE_SPLITTER=yes'
6194 else
6195 ac_cv_use_splitter='wxUSE_SPLITTER=no'
6196 fi
698dcdb6 6197
10f2d63a 6198else
698dcdb6 6199
10f2d63a
VZ
6200 LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}`
6201 if test "x$LINE" != x ; then
6202 eval "DEFAULT_$LINE"
6203 else
6204 no_cache=1
6205 fi
6206
6207 ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER
698dcdb6
VZ
6208
6209fi
10f2d63a
VZ
6210
6211
6212 eval "$ac_cv_use_splitter"
6213 if test "$no_cache" != 1; then
6214 echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp
6215 fi
6216
6217 if test "$wxUSE_SPLITTER" = yes; then
698dcdb6 6218 echo "$ac_t""yes" 1>&6
10f2d63a 6219 else
698dcdb6 6220 echo "$ac_t""no" 1>&6
10f2d63a 6221 fi
698dcdb6 6222
10f2d63a 6223
698dcdb6 6224 echo $ac_n "checking for --enable-statbmp""... $ac_c" 1>&6
9926e4a4 6225echo "configure:6226: checking for --enable-statbmp" >&5
10f2d63a
VZ
6226 no_cache=0
6227 # Check whether --enable-statbmp or --disable-statbmp was given.
6228if test "${enable_statbmp+set}" = set; then
6229 enableval="$enable_statbmp"
698dcdb6 6230
10f2d63a
VZ
6231 if test "$enableval" = yes; then
6232 ac_cv_use_statbmp='wxUSE_STATBMP=yes'
6233 else
6234 ac_cv_use_statbmp='wxUSE_STATBMP=no'
6235 fi
698dcdb6 6236
10f2d63a 6237else
698dcdb6 6238
10f2d63a
VZ
6239 LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}`
6240 if test "x$LINE" != x ; then
6241 eval "DEFAULT_$LINE"
6242 else
6243 no_cache=1
6244 fi
6245
6246 ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP
698dcdb6
VZ
6247
6248fi
10f2d63a
VZ
6249
6250
6251 eval "$ac_cv_use_statbmp"
6252 if test "$no_cache" != 1; then
6253 echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp
6254 fi
6255
6256 if test "$wxUSE_STATBMP" = yes; then
698dcdb6 6257 echo "$ac_t""yes" 1>&6
10f2d63a 6258 else
698dcdb6 6259 echo "$ac_t""no" 1>&6
10f2d63a 6260 fi
698dcdb6 6261
10f2d63a 6262
698dcdb6 6263 echo $ac_n "checking for --enable-statbox""... $ac_c" 1>&6
9926e4a4 6264echo "configure:6265: checking for --enable-statbox" >&5
10f2d63a
VZ
6265 no_cache=0
6266 # Check whether --enable-statbox or --disable-statbox was given.
6267if test "${enable_statbox+set}" = set; then
6268 enableval="$enable_statbox"
698dcdb6 6269
10f2d63a
VZ
6270 if test "$enableval" = yes; then
6271 ac_cv_use_statbox='wxUSE_STATBOX=yes'
6272 else
6273 ac_cv_use_statbox='wxUSE_STATBOX=no'
6274 fi
698dcdb6 6275
10f2d63a 6276else
698dcdb6 6277
10f2d63a
VZ
6278 LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}`
6279 if test "x$LINE" != x ; then
6280 eval "DEFAULT_$LINE"
6281 else
6282 no_cache=1
6283 fi
6284
6285 ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX
698dcdb6
VZ
6286
6287fi
10f2d63a
VZ
6288
6289
6290 eval "$ac_cv_use_statbox"
6291 if test "$no_cache" != 1; then
6292 echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp
6293 fi
6294
6295 if test "$wxUSE_STATBOX" = yes; then
698dcdb6 6296 echo "$ac_t""yes" 1>&6
10f2d63a 6297 else
698dcdb6 6298 echo "$ac_t""no" 1>&6
10f2d63a 6299 fi
698dcdb6 6300
10f2d63a 6301
698dcdb6 6302 echo $ac_n "checking for --enable-statline""... $ac_c" 1>&6
9926e4a4 6303echo "configure:6304: checking for --enable-statline" >&5
10f2d63a
VZ
6304 no_cache=0
6305 # Check whether --enable-statline or --disable-statline was given.
6306if test "${enable_statline+set}" = set; then
6307 enableval="$enable_statline"
698dcdb6 6308
10f2d63a
VZ
6309 if test "$enableval" = yes; then
6310 ac_cv_use_statline='wxUSE_STATLINE=yes'
6311 else
6312 ac_cv_use_statline='wxUSE_STATLINE=no'
6313 fi
698dcdb6 6314
10f2d63a 6315else
698dcdb6 6316
10f2d63a
VZ
6317 LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}`
6318 if test "x$LINE" != x ; then
6319 eval "DEFAULT_$LINE"
6320 else
6321 no_cache=1
6322 fi
6323
6324 ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE
698dcdb6
VZ
6325
6326fi
10f2d63a
VZ
6327
6328
6329 eval "$ac_cv_use_statline"
6330 if test "$no_cache" != 1; then
6331 echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp
6332 fi
6333
6334 if test "$wxUSE_STATLINE" = yes; then
698dcdb6 6335 echo "$ac_t""yes" 1>&6
10f2d63a 6336 else
698dcdb6 6337 echo "$ac_t""no" 1>&6
10f2d63a 6338 fi
698dcdb6 6339
10f2d63a 6340
1e6feb95 6341 echo $ac_n "checking for --enable-stattext""... $ac_c" 1>&6
9926e4a4 6342echo "configure:6343: checking for --enable-stattext" >&5
1e6feb95
VZ
6343 no_cache=0
6344 # Check whether --enable-stattext or --disable-stattext was given.
6345if test "${enable_stattext+set}" = set; then
6346 enableval="$enable_stattext"
6347
6348 if test "$enableval" = yes; then
6349 ac_cv_use_stattext='wxUSE_STATTEXT=yes'
6350 else
6351 ac_cv_use_stattext='wxUSE_STATTEXT=no'
6352 fi
6353
6354else
6355
6356 LINE=`grep "wxUSE_STATTEXT" ${wx_arg_cache_file}`
6357 if test "x$LINE" != x ; then
6358 eval "DEFAULT_$LINE"
6359 else
6360 no_cache=1
6361 fi
6362
6363 ac_cv_use_stattext='wxUSE_STATTEXT='$DEFAULT_wxUSE_STATTEXT
6364
6365fi
6366
6367
6368 eval "$ac_cv_use_stattext"
6369 if test "$no_cache" != 1; then
6370 echo $ac_cv_use_stattext >> ${wx_arg_cache_file}.tmp
6371 fi
6372
6373 if test "$wxUSE_STATTEXT" = yes; then
6374 echo "$ac_t""yes" 1>&6
6375 else
6376 echo "$ac_t""no" 1>&6
6377 fi
6378
6379
698dcdb6 6380 echo $ac_n "checking for --enable-statusbar""... $ac_c" 1>&6
9926e4a4 6381echo "configure:6382: checking for --enable-statusbar" >&5
10f2d63a
VZ
6382 no_cache=0
6383 # Check whether --enable-statusbar or --disable-statusbar was given.
6384if test "${enable_statusbar+set}" = set; then
6385 enableval="$enable_statusbar"
698dcdb6 6386
10f2d63a
VZ
6387 if test "$enableval" = yes; then
6388 ac_cv_use_statusbar='wxUSE_STATUSBAR=yes'
6389 else
6390 ac_cv_use_statusbar='wxUSE_STATUSBAR=no'
6391 fi
698dcdb6 6392
10f2d63a 6393else
698dcdb6 6394
10f2d63a
VZ
6395 LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}`
6396 if test "x$LINE" != x ; then
6397 eval "DEFAULT_$LINE"
6398 else
6399 no_cache=1
6400 fi
6401
6402 ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR
698dcdb6
VZ
6403
6404fi
10f2d63a
VZ
6405
6406
6407 eval "$ac_cv_use_statusbar"
6408 if test "$no_cache" != 1; then
6409 echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp
6410 fi
6411
6412 if test "$wxUSE_STATUSBAR" = yes; then
698dcdb6 6413 echo "$ac_t""yes" 1>&6
10f2d63a 6414 else
698dcdb6 6415 echo "$ac_t""no" 1>&6
10f2d63a 6416 fi
698dcdb6 6417
10f2d63a 6418
698dcdb6 6419 echo $ac_n "checking for --enable-tabdialog""... $ac_c" 1>&6
9926e4a4 6420echo "configure:6421: checking for --enable-tabdialog" >&5
10f2d63a
VZ
6421 no_cache=0
6422 # Check whether --enable-tabdialog or --disable-tabdialog was given.
6423if test "${enable_tabdialog+set}" = set; then
6424 enableval="$enable_tabdialog"
698dcdb6 6425
10f2d63a
VZ
6426 if test "$enableval" = yes; then
6427 ac_cv_use_tabdialog='wxUSE_TABDIALOG=yes'
6428 else
6429 ac_cv_use_tabdialog='wxUSE_TABDIALOG=no'
6430 fi
698dcdb6 6431
10f2d63a 6432else
698dcdb6 6433
10f2d63a
VZ
6434 LINE=`grep "wxUSE_TABDIALOG" ${wx_arg_cache_file}`
6435 if test "x$LINE" != x ; then
6436 eval "DEFAULT_$LINE"
6437 else
6438 no_cache=1
6439 fi
6440
6441 ac_cv_use_tabdialog='wxUSE_TABDIALOG='$DEFAULT_wxUSE_TABDIALOG
698dcdb6
VZ
6442
6443fi
10f2d63a
VZ
6444
6445
6446 eval "$ac_cv_use_tabdialog"
6447 if test "$no_cache" != 1; then
6448 echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp
6449 fi
6450
6451 if test "$wxUSE_TABDIALOG" = yes; then
698dcdb6 6452 echo "$ac_t""yes" 1>&6
10f2d63a 6453 else
698dcdb6 6454 echo "$ac_t""no" 1>&6
10f2d63a 6455 fi
698dcdb6 6456
10f2d63a 6457
1e6feb95 6458 echo $ac_n "checking for --enable-textctrl""... $ac_c" 1>&6
9926e4a4 6459echo "configure:6460: checking for --enable-textctrl" >&5
1e6feb95
VZ
6460 no_cache=0
6461 # Check whether --enable-textctrl or --disable-textctrl was given.
6462if test "${enable_textctrl+set}" = set; then
6463 enableval="$enable_textctrl"
6464
6465 if test "$enableval" = yes; then
6466 ac_cv_use_textctrl='wxUSE_TEXTCTRL=yes'
6467 else
6468 ac_cv_use_textctrl='wxUSE_TEXTCTRL=no'
6469 fi
6470
6471else
6472
6473 LINE=`grep "wxUSE_TEXTCTRL" ${wx_arg_cache_file}`
6474 if test "x$LINE" != x ; then
6475 eval "DEFAULT_$LINE"
6476 else
6477 no_cache=1
6478 fi
6479
6480 ac_cv_use_textctrl='wxUSE_TEXTCTRL='$DEFAULT_wxUSE_TEXTCTRL
6481
6482fi
6483
6484
6485 eval "$ac_cv_use_textctrl"
6486 if test "$no_cache" != 1; then
6487 echo $ac_cv_use_textctrl >> ${wx_arg_cache_file}.tmp
6488 fi
6489
6490 if test "$wxUSE_TEXTCTRL" = yes; then
6491 echo "$ac_t""yes" 1>&6
6492 else
6493 echo "$ac_t""no" 1>&6
6494 fi
6495
6496
698dcdb6 6497 echo $ac_n "checking for --enable-togglebtn""... $ac_c" 1>&6
9926e4a4 6498echo "configure:6499: checking for --enable-togglebtn" >&5
1db8dc4a
VZ
6499 no_cache=0
6500 # Check whether --enable-togglebtn or --disable-togglebtn was given.
6501if test "${enable_togglebtn+set}" = set; then
6502 enableval="$enable_togglebtn"
698dcdb6 6503
1db8dc4a
VZ
6504 if test "$enableval" = yes; then
6505 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes'
6506 else
6507 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=no'
6508 fi
698dcdb6 6509
1db8dc4a 6510else
698dcdb6 6511
1db8dc4a
VZ
6512 LINE=`grep "wxUSE_TOGGLEBTN" ${wx_arg_cache_file}`
6513 if test "x$LINE" != x ; then
6514 eval "DEFAULT_$LINE"
6515 else
6516 no_cache=1
6517 fi
6518
6519 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN='$DEFAULT_wxUSE_TOGGLEBTN
698dcdb6
VZ
6520
6521fi
1db8dc4a
VZ
6522
6523
6524 eval "$ac_cv_use_togglebtn"
6525 if test "$no_cache" != 1; then
6526 echo $ac_cv_use_togglebtn >> ${wx_arg_cache_file}.tmp
6527 fi
6528
6529 if test "$wxUSE_TOGGLEBTN" = yes; then
698dcdb6 6530 echo "$ac_t""yes" 1>&6
1db8dc4a 6531 else
698dcdb6 6532 echo "$ac_t""no" 1>&6
1db8dc4a 6533 fi
698dcdb6 6534
1db8dc4a 6535
698dcdb6 6536 echo $ac_n "checking for --enable-toolbar""... $ac_c" 1>&6
9926e4a4 6537echo "configure:6538: checking for --enable-toolbar" >&5
10f2d63a
VZ
6538 no_cache=0
6539 # Check whether --enable-toolbar or --disable-toolbar was given.
6540if test "${enable_toolbar+set}" = set; then
6541 enableval="$enable_toolbar"
698dcdb6 6542
10f2d63a
VZ
6543 if test "$enableval" = yes; then
6544 ac_cv_use_toolbar='wxUSE_TOOLBAR=yes'
6545 else
6546 ac_cv_use_toolbar='wxUSE_TOOLBAR=no'
6547 fi
698dcdb6 6548
10f2d63a 6549else
698dcdb6 6550
10f2d63a
VZ
6551 LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}`
6552 if test "x$LINE" != x ; then
6553 eval "DEFAULT_$LINE"
6554 else
6555 no_cache=1
6556 fi
6557
6558 ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR
698dcdb6
VZ
6559
6560fi
10f2d63a
VZ
6561
6562
6563 eval "$ac_cv_use_toolbar"
6564 if test "$no_cache" != 1; then
6565 echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp
6566 fi
6567
6568 if test "$wxUSE_TOOLBAR" = yes; then
698dcdb6 6569 echo "$ac_t""yes" 1>&6
10f2d63a 6570 else
698dcdb6 6571 echo "$ac_t""no" 1>&6
10f2d63a 6572 fi
698dcdb6 6573
10f2d63a 6574
698dcdb6 6575 echo $ac_n "checking for --enable-tbarnative""... $ac_c" 1>&6
9926e4a4 6576echo "configure:6577: checking for --enable-tbarnative" >&5
360d6699
VZ
6577 no_cache=0
6578 # Check whether --enable-tbarnative or --disable-tbarnative was given.
6579if test "${enable_tbarnative+set}" = set; then
6580 enableval="$enable_tbarnative"
698dcdb6 6581
360d6699
VZ
6582 if test "$enableval" = yes; then
6583 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes'
6584 else
6585 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no'
6586 fi
698dcdb6 6587
360d6699 6588else
698dcdb6 6589
360d6699
VZ
6590 LINE=`grep "wxUSE_TOOLBAR_NATIVE" ${wx_arg_cache_file}`
6591 if test "x$LINE" != x ; then
6592 eval "DEFAULT_$LINE"
6593 else
6594 no_cache=1
6595 fi
6596
6597 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE='$DEFAULT_wxUSE_TOOLBAR_NATIVE
698dcdb6
VZ
6598
6599fi
360d6699
VZ
6600
6601
6602 eval "$ac_cv_use_tbarnative"
6603 if test "$no_cache" != 1; then
6604 echo $ac_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp
6605 fi
6606
6607 if test "$wxUSE_TOOLBAR_NATIVE" = yes; then
698dcdb6 6608 echo "$ac_t""yes" 1>&6
360d6699 6609 else
698dcdb6 6610 echo "$ac_t""no" 1>&6
360d6699 6611 fi
698dcdb6 6612
360d6699 6613
698dcdb6 6614 echo $ac_n "checking for --enable-tbarsmpl""... $ac_c" 1>&6
9926e4a4 6615echo "configure:6616: checking for --enable-tbarsmpl" >&5
360d6699
VZ
6616 no_cache=0
6617 # Check whether --enable-tbarsmpl or --disable-tbarsmpl was given.
6618if test "${enable_tbarsmpl+set}" = set; then
6619 enableval="$enable_tbarsmpl"
698dcdb6 6620
360d6699
VZ
6621 if test "$enableval" = yes; then
6622 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=yes'
6623 else
6624 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=no'
6625 fi
698dcdb6 6626
360d6699 6627else
698dcdb6 6628
360d6699
VZ
6629 LINE=`grep "wxUSE_TOOLBAR_SIMPLE" ${wx_arg_cache_file}`
6630 if test "x$LINE" != x ; then
6631 eval "DEFAULT_$LINE"
6632 else
6633 no_cache=1
6634 fi
6635
6636 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE='$DEFAULT_wxUSE_TOOLBAR_SIMPLE
698dcdb6
VZ
6637
6638fi
360d6699
VZ
6639
6640
6641 eval "$ac_cv_use_tbarsmpl"
6642 if test "$no_cache" != 1; then
6643 echo $ac_cv_use_tbarsmpl >> ${wx_arg_cache_file}.tmp
6644 fi
6645
6646 if test "$wxUSE_TOOLBAR_SIMPLE" = yes; then
698dcdb6 6647 echo "$ac_t""yes" 1>&6
360d6699 6648 else
698dcdb6 6649 echo "$ac_t""no" 1>&6
360d6699 6650 fi
698dcdb6 6651
360d6699 6652
698dcdb6 6653 echo $ac_n "checking for --enable-treectrl""... $ac_c" 1>&6
9926e4a4 6654echo "configure:6655: checking for --enable-treectrl" >&5
10f2d63a
VZ
6655 no_cache=0
6656 # Check whether --enable-treectrl or --disable-treectrl was given.
6657if test "${enable_treectrl+set}" = set; then
6658 enableval="$enable_treectrl"
698dcdb6 6659
10f2d63a
VZ
6660 if test "$enableval" = yes; then
6661 ac_cv_use_treectrl='wxUSE_TREECTRL=yes'
6662 else
6663 ac_cv_use_treectrl='wxUSE_TREECTRL=no'
6664 fi
698dcdb6 6665
10f2d63a 6666else
698dcdb6 6667
10f2d63a
VZ
6668 LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}`
6669 if test "x$LINE" != x ; then
6670 eval "DEFAULT_$LINE"
6671 else
6672 no_cache=1
6673 fi
6674
6675 ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL
698dcdb6
VZ
6676
6677fi
10f2d63a
VZ
6678
6679
1e6feb95
VZ
6680 eval "$ac_cv_use_treectrl"
6681 if test "$no_cache" != 1; then
6682 echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp
6683 fi
6684
6685 if test "$wxUSE_TREECTRL" = yes; then
6686 echo "$ac_t""yes" 1>&6
6687 else
6688 echo "$ac_t""no" 1>&6
6689 fi
6690
6691
9926e4a4
VZ
6692 echo $ac_n "checking for --enable-tipwindow""... $ac_c" 1>&6
6693echo "configure:6694: checking for --enable-tipwindow" >&5
6694 no_cache=0
6695 # Check whether --enable-tipwindow or --disable-tipwindow was given.
6696if test "${enable_tipwindow+set}" = set; then
6697 enableval="$enable_tipwindow"
6698
6699 if test "$enableval" = yes; then
6700 ac_cv_use_tipwindow='wxUSE_TIPWINDOW=yes'
6701 else
6702 ac_cv_use_tipwindow='wxUSE_TIPWINDOW=no'
6703 fi
6704
6705else
6706
6707 LINE=`grep "wxUSE_TIPWINDOW" ${wx_arg_cache_file}`
6708 if test "x$LINE" != x ; then
6709 eval "DEFAULT_$LINE"
6710 else
6711 no_cache=1
6712 fi
6713
6714 ac_cv_use_tipwindow='wxUSE_TIPWINDOW='$DEFAULT_wxUSE_TIPWINDOW
6715
6716fi
6717
6718
6719 eval "$ac_cv_use_tipwindow"
6720 if test "$no_cache" != 1; then
6721 echo $ac_cv_use_tipwindow >> ${wx_arg_cache_file}.tmp
6722 fi
6723
6724 if test "$wxUSE_TIPWINDOW" = yes; then
6725 echo "$ac_t""yes" 1>&6
6726 else
6727 echo "$ac_t""no" 1>&6
6728 fi
6729
6730
9f41d601 6731 echo $ac_n "checking for --enable-popupwin""... $ac_c" 1>&6
9926e4a4 6732echo "configure:6733: checking for --enable-popupwin" >&5
9f41d601
RR
6733 no_cache=0
6734 # Check whether --enable-popupwin or --disable-popupwin was given.
6735if test "${enable_popupwin+set}" = set; then
6736 enableval="$enable_popupwin"
6737
6738 if test "$enableval" = yes; then
6739 ac_cv_use_popupwin='wxUSE_POPUPWIN=yes'
6740 else
6741 ac_cv_use_popupwin='wxUSE_POPUPWIN=no'
6742 fi
6743
6744else
6745
6746 LINE=`grep "wxUSE_POPUPWIN" ${wx_arg_cache_file}`
6747 if test "x$LINE" != x ; then
6748 eval "DEFAULT_$LINE"
6749 else
6750 no_cache=1
6751 fi
6752
6753 ac_cv_use_popupwin='wxUSE_POPUPWIN='$DEFAULT_wxUSE_POPUPWIN
6754
6755fi
6756
6757
6758 eval "$ac_cv_use_popupwin"
6759 if test "$no_cache" != 1; then
6760 echo $ac_cv_use_popupwin >> ${wx_arg_cache_file}.tmp
6761 fi
6762
6763 if test "$wxUSE_POPUPWIN" = yes; then
6764 echo "$ac_t""yes" 1>&6
6765 else
6766 echo "$ac_t""no" 1>&6
6767 fi
6768
6769
1e6feb95
VZ
6770
6771
6772 echo $ac_n "checking for --enable-commondlg""... $ac_c" 1>&6
9926e4a4 6773echo "configure:6774: checking for --enable-commondlg" >&5
1e6feb95
VZ
6774 no_cache=0
6775 # Check whether --enable-commondlg or --disable-commondlg was given.
6776if test "${enable_commondlg+set}" = set; then
6777 enableval="$enable_commondlg"
6778
6779 if test "$enableval" = yes; then
6780 ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes'
6781 else
6782 ac_cv_use_commondlg='wxUSE_COMMONDLGS=no'
6783 fi
6784
6785else
6786
6787 LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}`
6788 if test "x$LINE" != x ; then
6789 eval "DEFAULT_$LINE"
6790 else
6791 no_cache=1
6792 fi
6793
6794 ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS
6795
6796fi
6797
6798
6799 eval "$ac_cv_use_commondlg"
6800 if test "$no_cache" != 1; then
6801 echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp
6802 fi
6803
6804 if test "$wxUSE_COMMONDLGS" = yes; then
6805 echo "$ac_t""yes" 1>&6
6806 else
6807 echo "$ac_t""no" 1>&6
6808 fi
6809
6810
6811 echo $ac_n "checking for --enable-choicedlg""... $ac_c" 1>&6
9926e4a4 6812echo "configure:6813: checking for --enable-choicedlg" >&5
1e6feb95
VZ
6813 no_cache=0
6814 # Check whether --enable-choicedlg or --disable-choicedlg was given.
6815if test "${enable_choicedlg+set}" = set; then
6816 enableval="$enable_choicedlg"
6817
6818 if test "$enableval" = yes; then
6819 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=yes'
6820 else
6821 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=no'
6822 fi
6823
6824else
6825
6826 LINE=`grep "wxUSE_CHOICEDLG" ${wx_arg_cache_file}`
6827 if test "x$LINE" != x ; then
6828 eval "DEFAULT_$LINE"
6829 else
6830 no_cache=1
6831 fi
6832
6833 ac_cv_use_choicedlg='wxUSE_CHOICEDLG='$DEFAULT_wxUSE_CHOICEDLG
6834
6835fi
6836
6837
6838 eval "$ac_cv_use_choicedlg"
6839 if test "$no_cache" != 1; then
6840 echo $ac_cv_use_choicedlg >> ${wx_arg_cache_file}.tmp
6841 fi
6842
6843 if test "$wxUSE_CHOICEDLG" = yes; then
6844 echo "$ac_t""yes" 1>&6
6845 else
6846 echo "$ac_t""no" 1>&6
6847 fi
6848
6849
6850 echo $ac_n "checking for --enable-coldlg""... $ac_c" 1>&6
9926e4a4 6851echo "configure:6852: checking for --enable-coldlg" >&5
1e6feb95
VZ
6852 no_cache=0
6853 # Check whether --enable-coldlg or --disable-coldlg was given.
6854if test "${enable_coldlg+set}" = set; then
6855 enableval="$enable_coldlg"
6856
6857 if test "$enableval" = yes; then
6858 ac_cv_use_coldlg='wxUSE_COLOURDLG=yes'
6859 else
6860 ac_cv_use_coldlg='wxUSE_COLOURDLG=no'
6861 fi
6862
6863else
6864
6865 LINE=`grep "wxUSE_COLOURDLG" ${wx_arg_cache_file}`
6866 if test "x$LINE" != x ; then
6867 eval "DEFAULT_$LINE"
6868 else
6869 no_cache=1
6870 fi
6871
6872 ac_cv_use_coldlg='wxUSE_COLOURDLG='$DEFAULT_wxUSE_COLOURDLG
6873
6874fi
6875
6876
6877 eval "$ac_cv_use_coldlg"
6878 if test "$no_cache" != 1; then
6879 echo $ac_cv_use_coldlg >> ${wx_arg_cache_file}.tmp
6880 fi
6881
6882 if test "$wxUSE_COLOURDLG" = yes; then
6883 echo "$ac_t""yes" 1>&6
6884 else
6885 echo "$ac_t""no" 1>&6
6886 fi
6887
6888
6889 echo $ac_n "checking for --enable-filedlg""... $ac_c" 1>&6
9926e4a4 6890echo "configure:6891: checking for --enable-filedlg" >&5
1e6feb95
VZ
6891 no_cache=0
6892 # Check whether --enable-filedlg or --disable-filedlg was given.
6893if test "${enable_filedlg+set}" = set; then
6894 enableval="$enable_filedlg"
6895
6896 if test "$enableval" = yes; then
6897 ac_cv_use_filedlg='wxUSE_FILEDLG=yes'
6898 else
6899 ac_cv_use_filedlg='wxUSE_FILEDLG=no'
6900 fi
6901
6902else
6903
6904 LINE=`grep "wxUSE_FILEDLG" ${wx_arg_cache_file}`
6905 if test "x$LINE" != x ; then
6906 eval "DEFAULT_$LINE"
6907 else
6908 no_cache=1
6909 fi
6910
6911 ac_cv_use_filedlg='wxUSE_FILEDLG='$DEFAULT_wxUSE_FILEDLG
6912
6913fi
6914
6915
6916 eval "$ac_cv_use_filedlg"
6917 if test "$no_cache" != 1; then
6918 echo $ac_cv_use_filedlg >> ${wx_arg_cache_file}.tmp
6919 fi
6920
6921 if test "$wxUSE_FILEDLG" = yes; then
6922 echo "$ac_t""yes" 1>&6
6923 else
6924 echo "$ac_t""no" 1>&6
6925 fi
6926
6927
69d27ff7 6928 echo $ac_n "checking for --enable-finddlg""... $ac_c" 1>&6
9926e4a4 6929echo "configure:6930: checking for --enable-finddlg" >&5
8db37e06 6930 no_cache=0
69d27ff7
MB
6931 # Check whether --enable-finddlg or --disable-finddlg was given.
6932if test "${enable_finddlg+set}" = set; then
6933 enableval="$enable_finddlg"
8db37e06
VZ
6934
6935 if test "$enableval" = yes; then
69d27ff7 6936 ac_cv_use_finddlg='wxUSE_FINDREPLDLG=yes'
8db37e06 6937 else
69d27ff7 6938 ac_cv_use_finddlg='wxUSE_FINDREPLDLG=no'
8db37e06
VZ
6939 fi
6940
6941else
6942
6943 LINE=`grep "wxUSE_FINDREPLDLG" ${wx_arg_cache_file}`
6944 if test "x$LINE" != x ; then
6945 eval "DEFAULT_$LINE"
6946 else
6947 no_cache=1
6948 fi
6949
69d27ff7 6950 ac_cv_use_finddlg='wxUSE_FINDREPLDLG='$DEFAULT_wxUSE_FINDREPLDLG
8db37e06
VZ
6951
6952fi
6953
6954
69d27ff7 6955 eval "$ac_cv_use_finddlg"
8db37e06 6956 if test "$no_cache" != 1; then
69d27ff7 6957 echo $ac_cv_use_finddlg >> ${wx_arg_cache_file}.tmp
8db37e06
VZ
6958 fi
6959
6960 if test "$wxUSE_FINDREPLDLG" = yes; then
6961 echo "$ac_t""yes" 1>&6
6962 else
6963 echo "$ac_t""no" 1>&6
6964 fi
6965
6966
1e6feb95 6967 echo $ac_n "checking for --enable-fontdlg""... $ac_c" 1>&6
9926e4a4 6968echo "configure:6969: checking for --enable-fontdlg" >&5
1e6feb95
VZ
6969 no_cache=0
6970 # Check whether --enable-fontdlg or --disable-fontdlg was given.
6971if test "${enable_fontdlg+set}" = set; then
6972 enableval="$enable_fontdlg"
6973
6974 if test "$enableval" = yes; then
6975 ac_cv_use_fontdlg='wxUSE_FONTDLG=yes'
6976 else
6977 ac_cv_use_fontdlg='wxUSE_FONTDLG=no'
6978 fi
6979
6980else
6981
6982 LINE=`grep "wxUSE_FONTDLG" ${wx_arg_cache_file}`
6983 if test "x$LINE" != x ; then
6984 eval "DEFAULT_$LINE"
6985 else
6986 no_cache=1
6987 fi
6988
6989 ac_cv_use_fontdlg='wxUSE_FONTDLG='$DEFAULT_wxUSE_FONTDLG
6990
6991fi
6992
6993
6994 eval "$ac_cv_use_fontdlg"
6995 if test "$no_cache" != 1; then
6996 echo $ac_cv_use_fontdlg >> ${wx_arg_cache_file}.tmp
6997 fi
6998
6999 if test "$wxUSE_FONTDLG" = yes; then
7000 echo "$ac_t""yes" 1>&6
7001 else
7002 echo "$ac_t""no" 1>&6
7003 fi
7004
7005
7006 echo $ac_n "checking for --enable-dirdlg""... $ac_c" 1>&6
9926e4a4 7007echo "configure:7008: checking for --enable-dirdlg" >&5
1e6feb95
VZ
7008 no_cache=0
7009 # Check whether --enable-dirdlg or --disable-dirdlg was given.
7010if test "${enable_dirdlg+set}" = set; then
7011 enableval="$enable_dirdlg"
7012
7013 if test "$enableval" = yes; then
7014 ac_cv_use_dirdlg='wxUSE_DIRDLG=yes'
7015 else
7016 ac_cv_use_dirdlg='wxUSE_DIRDLG=no'
7017 fi
7018
7019else
7020
7021 LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}`
7022 if test "x$LINE" != x ; then
7023 eval "DEFAULT_$LINE"
7024 else
7025 no_cache=1
7026 fi
7027
7028 ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG
7029
7030fi
7031
7032
7033 eval "$ac_cv_use_dirdlg"
10f2d63a 7034 if test "$no_cache" != 1; then
1e6feb95 7035 echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
7036 fi
7037
1e6feb95 7038 if test "$wxUSE_DIRDLG" = yes; then
698dcdb6 7039 echo "$ac_t""yes" 1>&6
10f2d63a 7040 else
698dcdb6 7041 echo "$ac_t""no" 1>&6
10f2d63a 7042 fi
698dcdb6
VZ
7043
7044
1e6feb95 7045 echo $ac_n "checking for --enable-msgdlg""... $ac_c" 1>&6
9926e4a4 7046echo "configure:7047: checking for --enable-msgdlg" >&5
10f2d63a 7047 no_cache=0
1e6feb95
VZ
7048 # Check whether --enable-msgdlg or --disable-msgdlg was given.
7049if test "${enable_msgdlg+set}" = set; then
7050 enableval="$enable_msgdlg"
698dcdb6 7051
10f2d63a 7052 if test "$enableval" = yes; then
1e6feb95 7053 ac_cv_use_msgdlg='wxUSE_MSGDLG=yes'
10f2d63a 7054 else
1e6feb95 7055 ac_cv_use_msgdlg='wxUSE_MSGDLG=no'
10f2d63a 7056 fi
698dcdb6 7057
10f2d63a 7058else
698dcdb6 7059
1e6feb95 7060 LINE=`grep "wxUSE_MSGDLG" ${wx_arg_cache_file}`
10f2d63a
VZ
7061 if test "x$LINE" != x ; then
7062 eval "DEFAULT_$LINE"
7063 else
7064 no_cache=1
7065 fi
7066
1e6feb95 7067 ac_cv_use_msgdlg='wxUSE_MSGDLG='$DEFAULT_wxUSE_MSGDLG
698dcdb6
VZ
7068
7069fi
10f2d63a
VZ
7070
7071
1e6feb95 7072 eval "$ac_cv_use_msgdlg"
10f2d63a 7073 if test "$no_cache" != 1; then
1e6feb95 7074 echo $ac_cv_use_msgdlg >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
7075 fi
7076
1e6feb95 7077 if test "$wxUSE_MSGDLG" = yes; then
698dcdb6 7078 echo "$ac_t""yes" 1>&6
10f2d63a 7079 else
698dcdb6 7080 echo "$ac_t""no" 1>&6
10f2d63a 7081 fi
698dcdb6 7082
10f2d63a 7083
1e6feb95 7084 echo $ac_n "checking for --enable-numberdlg""... $ac_c" 1>&6
9926e4a4 7085echo "configure:7086: checking for --enable-numberdlg" >&5
10f2d63a 7086 no_cache=0
1e6feb95
VZ
7087 # Check whether --enable-numberdlg or --disable-numberdlg was given.
7088if test "${enable_numberdlg+set}" = set; then
7089 enableval="$enable_numberdlg"
698dcdb6 7090
10f2d63a 7091 if test "$enableval" = yes; then
1e6feb95 7092 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=yes'
10f2d63a 7093 else
1e6feb95 7094 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=no'
10f2d63a 7095 fi
698dcdb6 7096
10f2d63a 7097else
698dcdb6 7098
1e6feb95 7099 LINE=`grep "wxUSE_NUMBERDLG" ${wx_arg_cache_file}`
10f2d63a
VZ
7100 if test "x$LINE" != x ; then
7101 eval "DEFAULT_$LINE"
7102 else
7103 no_cache=1
7104 fi
7105
1e6feb95 7106 ac_cv_use_numberdlg='wxUSE_NUMBERDLG='$DEFAULT_wxUSE_NUMBERDLG
698dcdb6
VZ
7107
7108fi
10f2d63a
VZ
7109
7110
1e6feb95 7111 eval "$ac_cv_use_numberdlg"
10f2d63a 7112 if test "$no_cache" != 1; then
1e6feb95 7113 echo $ac_cv_use_numberdlg >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
7114 fi
7115
1e6feb95 7116 if test "$wxUSE_NUMBERDLG" = yes; then
698dcdb6 7117 echo "$ac_t""yes" 1>&6
10f2d63a 7118 else
698dcdb6 7119 echo "$ac_t""no" 1>&6
10f2d63a 7120 fi
698dcdb6 7121
10f2d63a 7122
cbca9943 7123 echo $ac_n "checking for --enable-splash""... $ac_c" 1>&6
9926e4a4 7124echo "configure:7125: checking for --enable-splash" >&5
cbca9943
VZ
7125 no_cache=0
7126 # Check whether --enable-splash or --disable-splash was given.
7127if test "${enable_splash+set}" = set; then
7128 enableval="$enable_splash"
7129
7130 if test "$enableval" = yes; then
7131 ac_cv_use_splash='wxUSE_SPLASH=yes'
7132 else
7133 ac_cv_use_splash='wxUSE_SPLASH=no'
7134 fi
7135
7136else
7137
7138 LINE=`grep "wxUSE_SPLASH" ${wx_arg_cache_file}`
7139 if test "x$LINE" != x ; then
7140 eval "DEFAULT_$LINE"
7141 else
7142 no_cache=1
7143 fi
7144
7145 ac_cv_use_splash='wxUSE_SPLASH='$DEFAULT_wxUSE_SPLASH
7146
7147fi
7148
7149
7150 eval "$ac_cv_use_splash"
7151 if test "$no_cache" != 1; then
7152 echo $ac_cv_use_splash >> ${wx_arg_cache_file}.tmp
7153 fi
7154
7155 if test "$wxUSE_SPLASH" = yes; then
7156 echo "$ac_t""yes" 1>&6
7157 else
7158 echo "$ac_t""no" 1>&6
7159 fi
7160
7161
698dcdb6 7162 echo $ac_n "checking for --enable-textdlg""... $ac_c" 1>&6
9926e4a4 7163echo "configure:7164: checking for --enable-textdlg" >&5
10f2d63a
VZ
7164 no_cache=0
7165 # Check whether --enable-textdlg or --disable-textdlg was given.
7166if test "${enable_textdlg+set}" = set; then
7167 enableval="$enable_textdlg"
698dcdb6 7168
10f2d63a
VZ
7169 if test "$enableval" = yes; then
7170 ac_cv_use_textdlg='wxUSE_TEXTDLG=yes'
7171 else
7172 ac_cv_use_textdlg='wxUSE_TEXTDLG=no'
7173 fi
698dcdb6 7174
10f2d63a 7175else
698dcdb6 7176
10f2d63a
VZ
7177 LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}`
7178 if test "x$LINE" != x ; then
7179 eval "DEFAULT_$LINE"
7180 else
7181 no_cache=1
7182 fi
7183
7184 ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG
698dcdb6
VZ
7185
7186fi
10f2d63a
VZ
7187
7188
7189 eval "$ac_cv_use_textdlg"
7190 if test "$no_cache" != 1; then
7191 echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp
7192 fi
7193
7194 if test "$wxUSE_TEXTDLG" = yes; then
698dcdb6 7195 echo "$ac_t""yes" 1>&6
10f2d63a 7196 else
698dcdb6 7197 echo "$ac_t""no" 1>&6
10f2d63a 7198 fi
698dcdb6 7199
10f2d63a 7200
698dcdb6 7201 echo $ac_n "checking for --enable-tipdlg""... $ac_c" 1>&6
9926e4a4 7202echo "configure:7203: checking for --enable-tipdlg" >&5
10f2d63a
VZ
7203 no_cache=0
7204 # Check whether --enable-tipdlg or --disable-tipdlg was given.
7205if test "${enable_tipdlg+set}" = set; then
7206 enableval="$enable_tipdlg"
698dcdb6 7207
10f2d63a
VZ
7208 if test "$enableval" = yes; then
7209 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes'
7210 else
7211 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no'
7212 fi
698dcdb6 7213
10f2d63a 7214else
698dcdb6 7215
10f2d63a
VZ
7216 LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}`
7217 if test "x$LINE" != x ; then
7218 eval "DEFAULT_$LINE"
7219 else
7220 no_cache=1
7221 fi
7222
7223 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS
698dcdb6
VZ
7224
7225fi
10f2d63a
VZ
7226
7227
7228 eval "$ac_cv_use_tipdlg"
7229 if test "$no_cache" != 1; then
7230 echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp
7231 fi
7232
7233 if test "$wxUSE_STARTUP_TIPS" = yes; then
698dcdb6 7234 echo "$ac_t""yes" 1>&6
10f2d63a 7235 else
698dcdb6 7236 echo "$ac_t""no" 1>&6
10f2d63a 7237 fi
698dcdb6 7238
10f2d63a 7239
698dcdb6 7240 echo $ac_n "checking for --enable-progressdlg""... $ac_c" 1>&6
9926e4a4 7241echo "configure:7242: checking for --enable-progressdlg" >&5
10f2d63a
VZ
7242 no_cache=0
7243 # Check whether --enable-progressdlg or --disable-progressdlg was given.
7244if test "${enable_progressdlg+set}" = set; then
7245 enableval="$enable_progressdlg"
698dcdb6 7246
10f2d63a
VZ
7247 if test "$enableval" = yes; then
7248 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes'
7249 else
7250 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no'
7251 fi
698dcdb6 7252
10f2d63a 7253else
698dcdb6 7254
10f2d63a
VZ
7255 LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}`
7256 if test "x$LINE" != x ; then
7257 eval "DEFAULT_$LINE"
7258 else
7259 no_cache=1
7260 fi
7261
7262 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG
698dcdb6
VZ
7263
7264fi
10f2d63a
VZ
7265
7266
7267 eval "$ac_cv_use_progressdlg"
7268 if test "$no_cache" != 1; then
7269 echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp
7270 fi
7271
7272 if test "$wxUSE_PROGRESSDLG" = yes; then
698dcdb6 7273 echo "$ac_t""yes" 1>&6
10f2d63a 7274 else
698dcdb6 7275 echo "$ac_t""no" 1>&6
10f2d63a 7276 fi
698dcdb6 7277
10f2d63a 7278
b1f5d087 7279 echo $ac_n "checking for --enable-wizarddlg""... $ac_c" 1>&6
9926e4a4 7280echo "configure:7281: checking for --enable-wizarddlg" >&5
b1f5d087
VZ
7281 no_cache=0
7282 # Check whether --enable-wizarddlg or --disable-wizarddlg was given.
7283if test "${enable_wizarddlg+set}" = set; then
7284 enableval="$enable_wizarddlg"
7285
7286 if test "$enableval" = yes; then
7287 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=yes'
7288 else
7289 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=no'
7290 fi
7291
7292else
7293
7294 LINE=`grep "wxUSE_WIZARDDLG" ${wx_arg_cache_file}`
7295 if test "x$LINE" != x ; then
7296 eval "DEFAULT_$LINE"
7297 else
7298 no_cache=1
7299 fi
7300
7301 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG='$DEFAULT_wxUSE_WIZARDDLG
7302
7303fi
7304
7305
7306 eval "$ac_cv_use_wizarddlg"
7307 if test "$no_cache" != 1; then
7308 echo $ac_cv_use_wizarddlg >> ${wx_arg_cache_file}.tmp
7309 fi
7310
7311 if test "$wxUSE_WIZARDDLG" = yes; then
7312 echo "$ac_t""yes" 1>&6
7313 else
7314 echo "$ac_t""no" 1>&6
7315 fi
7316
7317
7318
7319
1e6feb95 7320 echo $ac_n "checking for --enable-menus""... $ac_c" 1>&6
9926e4a4 7321echo "configure:7322: checking for --enable-menus" >&5
1e6feb95
VZ
7322 no_cache=0
7323 # Check whether --enable-menus or --disable-menus was given.
7324if test "${enable_menus+set}" = set; then
7325 enableval="$enable_menus"
7326
7327 if test "$enableval" = yes; then
7328 ac_cv_use_menus='wxUSE_MENUS=yes'
7329 else
7330 ac_cv_use_menus='wxUSE_MENUS=no'
7331 fi
7332
7333else
7334
7335 LINE=`grep "wxUSE_MENUS" ${wx_arg_cache_file}`
7336 if test "x$LINE" != x ; then
7337 eval "DEFAULT_$LINE"
7338 else
7339 no_cache=1
7340 fi
7341
7342 ac_cv_use_menus='wxUSE_MENUS='$DEFAULT_wxUSE_MENUS
7343
7344fi
7345
7346
7347 eval "$ac_cv_use_menus"
7348 if test "$no_cache" != 1; then
7349 echo $ac_cv_use_menus >> ${wx_arg_cache_file}.tmp
7350 fi
7351
7352 if test "$wxUSE_MENUS" = yes; then
7353 echo "$ac_t""yes" 1>&6
7354 else
7355 echo "$ac_t""no" 1>&6
7356 fi
7357
7358
698dcdb6 7359 echo $ac_n "checking for --enable-miniframe""... $ac_c" 1>&6
9926e4a4 7360echo "configure:7361: checking for --enable-miniframe" >&5
10f2d63a
VZ
7361 no_cache=0
7362 # Check whether --enable-miniframe or --disable-miniframe was given.
7363if test "${enable_miniframe+set}" = set; then
7364 enableval="$enable_miniframe"
698dcdb6 7365
10f2d63a
VZ
7366 if test "$enableval" = yes; then
7367 ac_cv_use_miniframe='wxUSE_MINIFRAME=yes'
7368 else
7369 ac_cv_use_miniframe='wxUSE_MINIFRAME=no'
7370 fi
698dcdb6 7371
10f2d63a 7372else
698dcdb6 7373
10f2d63a
VZ
7374 LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}`
7375 if test "x$LINE" != x ; then
7376 eval "DEFAULT_$LINE"
7377 else
7378 no_cache=1
7379 fi
7380
7381 ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME
698dcdb6
VZ
7382
7383fi
10f2d63a
VZ
7384
7385
7386 eval "$ac_cv_use_miniframe"
7387 if test "$no_cache" != 1; then
7388 echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp
7389 fi
7390
7391 if test "$wxUSE_MINIFRAME" = yes; then
698dcdb6 7392 echo "$ac_t""yes" 1>&6
10f2d63a 7393 else
698dcdb6 7394 echo "$ac_t""no" 1>&6
10f2d63a 7395 fi
698dcdb6 7396
10f2d63a 7397
698dcdb6 7398 echo $ac_n "checking for --enable-tooltips""... $ac_c" 1>&6
9926e4a4 7399echo "configure:7400: checking for --enable-tooltips" >&5
10f2d63a
VZ
7400 no_cache=0
7401 # Check whether --enable-tooltips or --disable-tooltips was given.
7402if test "${enable_tooltips+set}" = set; then
7403 enableval="$enable_tooltips"
698dcdb6 7404
10f2d63a
VZ
7405 if test "$enableval" = yes; then
7406 ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes'
7407 else
7408 ac_cv_use_tooltips='wxUSE_TOOLTIPS=no'
7409 fi
698dcdb6 7410
10f2d63a 7411else
698dcdb6 7412
10f2d63a
VZ
7413 LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}`
7414 if test "x$LINE" != x ; then
7415 eval "DEFAULT_$LINE"
7416 else
7417 no_cache=1
7418 fi
7419
7420 ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS
698dcdb6
VZ
7421
7422fi
10f2d63a
VZ
7423
7424
7425 eval "$ac_cv_use_tooltips"
7426 if test "$no_cache" != 1; then
7427 echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp
7428 fi
7429
7430 if test "$wxUSE_TOOLTIPS" = yes; then
698dcdb6 7431 echo "$ac_t""yes" 1>&6
10f2d63a 7432 else
698dcdb6 7433 echo "$ac_t""no" 1>&6
10f2d63a 7434 fi
698dcdb6 7435
10f2d63a 7436
698dcdb6 7437 echo $ac_n "checking for --enable-splines""... $ac_c" 1>&6
9926e4a4 7438echo "configure:7439: checking for --enable-splines" >&5
10f2d63a
VZ
7439 no_cache=0
7440 # Check whether --enable-splines or --disable-splines was given.
7441if test "${enable_splines+set}" = set; then
7442 enableval="$enable_splines"
698dcdb6 7443
10f2d63a
VZ
7444 if test "$enableval" = yes; then
7445 ac_cv_use_splines='wxUSE_SPLINES=yes'
7446 else
7447 ac_cv_use_splines='wxUSE_SPLINES=no'
7448 fi
698dcdb6 7449
10f2d63a 7450else
698dcdb6 7451
10f2d63a
VZ
7452 LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}`
7453 if test "x$LINE" != x ; then
7454 eval "DEFAULT_$LINE"
7455 else
7456 no_cache=1
7457 fi
7458
7459 ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES
698dcdb6
VZ
7460
7461fi
10f2d63a
VZ
7462
7463
7464 eval "$ac_cv_use_splines"
7465 if test "$no_cache" != 1; then
7466 echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp
7467 fi
7468
7469 if test "$wxUSE_SPLINES" = yes; then
698dcdb6 7470 echo "$ac_t""yes" 1>&6
10f2d63a 7471 else
698dcdb6 7472 echo "$ac_t""no" 1>&6
10f2d63a 7473 fi
698dcdb6 7474
10f2d63a 7475
698dcdb6 7476 echo $ac_n "checking for --enable-validators""... $ac_c" 1>&6
9926e4a4 7477echo "configure:7478: checking for --enable-validators" >&5
10f2d63a
VZ
7478 no_cache=0
7479 # Check whether --enable-validators or --disable-validators was given.
7480if test "${enable_validators+set}" = set; then
7481 enableval="$enable_validators"
698dcdb6 7482
10f2d63a
VZ
7483 if test "$enableval" = yes; then
7484 ac_cv_use_validators='wxUSE_VALIDATORS=yes'
7485 else
7486 ac_cv_use_validators='wxUSE_VALIDATORS=no'
7487 fi
698dcdb6 7488
10f2d63a 7489else
698dcdb6 7490
10f2d63a
VZ
7491 LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}`
7492 if test "x$LINE" != x ; then
7493 eval "DEFAULT_$LINE"
7494 else
7495 no_cache=1
7496 fi
7497
7498 ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS
698dcdb6
VZ
7499
7500fi
10f2d63a
VZ
7501
7502
7503 eval "$ac_cv_use_validators"
7504 if test "$no_cache" != 1; then
7505 echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp
7506 fi
7507
7508 if test "$wxUSE_VALIDATORS" = yes; then
698dcdb6 7509 echo "$ac_t""yes" 1>&6
10f2d63a 7510 else
698dcdb6 7511 echo "$ac_t""no" 1>&6
10f2d63a 7512 fi
698dcdb6 7513
10f2d63a 7514
698dcdb6 7515 echo $ac_n "checking for --enable-busyinfo""... $ac_c" 1>&6
9926e4a4 7516echo "configure:7517: checking for --enable-busyinfo" >&5
10f2d63a
VZ
7517 no_cache=0
7518 # Check whether --enable-busyinfo or --disable-busyinfo was given.
7519if test "${enable_busyinfo+set}" = set; then
7520 enableval="$enable_busyinfo"
698dcdb6 7521
10f2d63a
VZ
7522 if test "$enableval" = yes; then
7523 ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes'
7524 else
7525 ac_cv_use_busyinfo='wxUSE_BUSYINFO=no'
7526 fi
698dcdb6 7527
10f2d63a 7528else
698dcdb6 7529
10f2d63a
VZ
7530 LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}`
7531 if test "x$LINE" != x ; then
7532 eval "DEFAULT_$LINE"
7533 else
7534 no_cache=1
7535 fi
7536
7537 ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO
698dcdb6
VZ
7538
7539fi
10f2d63a
VZ
7540
7541
7542 eval "$ac_cv_use_busyinfo"
7543 if test "$no_cache" != 1; then
7544 echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp
7545 fi
7546
7547 if test "$wxUSE_BUSYINFO" = yes; then
698dcdb6 7548 echo "$ac_t""yes" 1>&6
10f2d63a 7549 else
698dcdb6 7550 echo "$ac_t""no" 1>&6
10f2d63a 7551 fi
698dcdb6 7552
10f2d63a 7553
698dcdb6 7554 echo $ac_n "checking for --enable-joystick""... $ac_c" 1>&6
9926e4a4 7555echo "configure:7556: checking for --enable-joystick" >&5
f6bcfd97
BP
7556 no_cache=0
7557 # Check whether --enable-joystick or --disable-joystick was given.
7558if test "${enable_joystick+set}" = set; then
7559 enableval="$enable_joystick"
698dcdb6 7560
f6bcfd97
BP
7561 if test "$enableval" = yes; then
7562 ac_cv_use_joystick='wxUSE_JOYSTICK=yes'
7563 else
7564 ac_cv_use_joystick='wxUSE_JOYSTICK=no'
7565 fi
698dcdb6 7566
f6bcfd97 7567else
698dcdb6 7568
f6bcfd97
BP
7569 LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}`
7570 if test "x$LINE" != x ; then
7571 eval "DEFAULT_$LINE"
7572 else
7573 no_cache=1
7574 fi
7575
7576 ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK
698dcdb6
VZ
7577
7578fi
f6bcfd97
BP
7579
7580
7581 eval "$ac_cv_use_joystick"
7582 if test "$no_cache" != 1; then
7583 echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp
7584 fi
7585
7586 if test "$wxUSE_JOYSTICK" = yes; then
698dcdb6 7587 echo "$ac_t""yes" 1>&6
f6bcfd97 7588 else
698dcdb6 7589 echo "$ac_t""no" 1>&6
f6bcfd97 7590 fi
698dcdb6
VZ
7591
7592
1e6feb95 7593 echo $ac_n "checking for --enable-metafile""... $ac_c" 1>&6
9926e4a4 7594echo "configure:7595: checking for --enable-metafile" >&5
1e6feb95
VZ
7595 no_cache=0
7596 # Check whether --enable-metafile or --disable-metafile was given.
7597if test "${enable_metafile+set}" = set; then
7598 enableval="$enable_metafile"
7599
7600 if test "$enableval" = yes; then
7601 ac_cv_use_metafile='wxUSE_METAFILE=yes'
7602 else
7603 ac_cv_use_metafile='wxUSE_METAFILE=no'
7604 fi
7605
7606else
7607
7608 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
7609 if test "x$LINE" != x ; then
7610 eval "DEFAULT_$LINE"
7611 else
7612 no_cache=1
7613 fi
7614
7615 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
7616
7617fi
7618
7619
7620 eval "$ac_cv_use_metafile"
7621 if test "$no_cache" != 1; then
7622 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
7623 fi
7624
7625 if test "$wxUSE_METAFILE" = yes; then
7626 echo "$ac_t""yes" 1>&6
7627 else
7628 echo "$ac_t""no" 1>&6
7629 fi
7630
7631
24fd6d87 7632 echo $ac_n "checking for --enable-dragimage""... $ac_c" 1>&6
9926e4a4 7633echo "configure:7634: checking for --enable-dragimage" >&5
24fd6d87
VZ
7634 no_cache=0
7635 # Check whether --enable-dragimage or --disable-dragimage was given.
7636if test "${enable_dragimage+set}" = set; then
7637 enableval="$enable_dragimage"
7638
7639 if test "$enableval" = yes; then
7640 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=yes'
7641 else
7642 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=no'
7643 fi
7644
7645else
7646
7647 LINE=`grep "wxUSE_DRAGIMAGE" ${wx_arg_cache_file}`
7648 if test "x$LINE" != x ; then
7649 eval "DEFAULT_$LINE"
7650 else
7651 no_cache=1
7652 fi
7653
7654 ac_cv_use_dragimage='wxUSE_DRAGIMAGE='$DEFAULT_wxUSE_DRAGIMAGE
7655
7656fi
7657
7658
7659 eval "$ac_cv_use_dragimage"
7660 if test "$no_cache" != 1; then
7661 echo $ac_cv_use_dragimage >> ${wx_arg_cache_file}.tmp
7662 fi
7663
7664 if test "$wxUSE_DRAGIMAGE" = yes; then
7665 echo "$ac_t""yes" 1>&6
7666 else
7667 echo "$ac_t""no" 1>&6
7668 fi
7669
7670
10f2d63a 7671
698dcdb6 7672
edae8572 7673 echo $ac_n "checking for --enable-palette""... $ac_c" 1>&6
9926e4a4 7674echo "configure:7675: checking for --enable-palette" >&5
edae8572
VZ
7675 no_cache=0
7676 # Check whether --enable-palette or --disable-palette was given.
7677if test "${enable_palette+set}" = set; then
7678 enableval="$enable_palette"
7679
7680 if test "$enableval" = yes; then
7681 ac_cv_use_palette='wxUSE_PALETTE=yes'
7682 else
7683 ac_cv_use_palette='wxUSE_PALETTE=no'
7684 fi
7685
7686else
7687
7688 LINE=`grep "wxUSE_PALETTE" ${wx_arg_cache_file}`
7689 if test "x$LINE" != x ; then
7690 eval "DEFAULT_$LINE"
7691 else
7692 no_cache=1
7693 fi
7694
7695 ac_cv_use_palette='wxUSE_PALETTE='$DEFAULT_wxUSE_PALETTE
7696
7697fi
7698
7699
7700 eval "$ac_cv_use_palette"
7701 if test "$no_cache" != 1; then
7702 echo $ac_cv_use_palette >> ${wx_arg_cache_file}.tmp
7703 fi
7704
7705 if test "$wxUSE_PALETTE" = yes; then
7706 echo "$ac_t""yes" 1>&6
7707 else
7708 echo "$ac_t""no" 1>&6
7709 fi
7710
7711
698dcdb6 7712 echo $ac_n "checking for --enable-image""... $ac_c" 1>&6
9926e4a4 7713echo "configure:7714: checking for --enable-image" >&5
0046ff7c
VS
7714 no_cache=0
7715 # Check whether --enable-image or --disable-image was given.
7716if test "${enable_image+set}" = set; then
7717 enableval="$enable_image"
698dcdb6 7718
0046ff7c
VS
7719 if test "$enableval" = yes; then
7720 ac_cv_use_image='wxUSE_IMAGE=yes'
7721 else
7722 ac_cv_use_image='wxUSE_IMAGE=no'
7723 fi
698dcdb6 7724
0046ff7c 7725else
698dcdb6 7726
0046ff7c
VS
7727 LINE=`grep "wxUSE_IMAGE" ${wx_arg_cache_file}`
7728 if test "x$LINE" != x ; then
7729 eval "DEFAULT_$LINE"
7730 else
7731 no_cache=1
7732 fi
7733
7734 ac_cv_use_image='wxUSE_IMAGE='$DEFAULT_wxUSE_IMAGE
698dcdb6
VZ
7735
7736fi
0046ff7c
VS
7737
7738
7739 eval "$ac_cv_use_image"
7740 if test "$no_cache" != 1; then
7741 echo $ac_cv_use_image >> ${wx_arg_cache_file}.tmp
7742 fi
7743
7744 if test "$wxUSE_IMAGE" = yes; then
698dcdb6 7745 echo "$ac_t""yes" 1>&6
0046ff7c 7746 else
698dcdb6 7747 echo "$ac_t""no" 1>&6
0046ff7c 7748 fi
698dcdb6 7749
0046ff7c 7750
698dcdb6 7751 echo $ac_n "checking for --enable-gif""... $ac_c" 1>&6
9926e4a4 7752echo "configure:7753: checking for --enable-gif" >&5
10f2d63a
VZ
7753 no_cache=0
7754 # Check whether --enable-gif or --disable-gif was given.
7755if test "${enable_gif+set}" = set; then
7756 enableval="$enable_gif"
698dcdb6 7757
10f2d63a
VZ
7758 if test "$enableval" = yes; then
7759 ac_cv_use_gif='wxUSE_GIF=yes'
7760 else
7761 ac_cv_use_gif='wxUSE_GIF=no'
7762 fi
698dcdb6 7763
10f2d63a 7764else
698dcdb6 7765
10f2d63a
VZ
7766 LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}`
7767 if test "x$LINE" != x ; then
7768 eval "DEFAULT_$LINE"
7769 else
7770 no_cache=1
7771 fi
7772
7773 ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF
698dcdb6
VZ
7774
7775fi
10f2d63a
VZ
7776
7777
7778 eval "$ac_cv_use_gif"
7779 if test "$no_cache" != 1; then
7780 echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp
7781 fi
7782
7783 if test "$wxUSE_GIF" = yes; then
698dcdb6 7784 echo "$ac_t""yes" 1>&6
10f2d63a 7785 else
698dcdb6 7786 echo "$ac_t""no" 1>&6
10f2d63a 7787 fi
698dcdb6 7788
10f2d63a 7789
698dcdb6 7790 echo $ac_n "checking for --enable-pcx""... $ac_c" 1>&6
9926e4a4 7791echo "configure:7792: checking for --enable-pcx" >&5
10f2d63a
VZ
7792 no_cache=0
7793 # Check whether --enable-pcx or --disable-pcx was given.
7794if test "${enable_pcx+set}" = set; then
7795 enableval="$enable_pcx"
698dcdb6 7796
10f2d63a
VZ
7797 if test "$enableval" = yes; then
7798 ac_cv_use_pcx='wxUSE_PCX=yes'
7799 else
7800 ac_cv_use_pcx='wxUSE_PCX=no'
7801 fi
698dcdb6 7802
10f2d63a 7803else
698dcdb6 7804
10f2d63a
VZ
7805 LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}`
7806 if test "x$LINE" != x ; then
7807 eval "DEFAULT_$LINE"
7808 else
7809 no_cache=1
7810 fi
7811
7812 ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX
698dcdb6
VZ
7813
7814fi
10f2d63a
VZ
7815
7816
7817 eval "$ac_cv_use_pcx"
7818 if test "$no_cache" != 1; then
7819 echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp
7820 fi
7821
7822 if test "$wxUSE_PCX" = yes; then
698dcdb6 7823 echo "$ac_t""yes" 1>&6
10f2d63a 7824 else
698dcdb6 7825 echo "$ac_t""no" 1>&6
10f2d63a 7826 fi
698dcdb6 7827
10f2d63a 7828
698dcdb6 7829 echo $ac_n "checking for --enable-pnm""... $ac_c" 1>&6
9926e4a4 7830echo "configure:7831: checking for --enable-pnm" >&5
10f2d63a
VZ
7831 no_cache=0
7832 # Check whether --enable-pnm or --disable-pnm was given.
7833if test "${enable_pnm+set}" = set; then
7834 enableval="$enable_pnm"
698dcdb6 7835
10f2d63a
VZ
7836 if test "$enableval" = yes; then
7837 ac_cv_use_pnm='wxUSE_PNM=yes'
7838 else
7839 ac_cv_use_pnm='wxUSE_PNM=no'
7840 fi
698dcdb6 7841
10f2d63a 7842else
698dcdb6 7843
10f2d63a
VZ
7844 LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}`
7845 if test "x$LINE" != x ; then
7846 eval "DEFAULT_$LINE"
7847 else
7848 no_cache=1
7849 fi
7850
7851 ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM
698dcdb6
VZ
7852
7853fi
10f2d63a
VZ
7854
7855
7856 eval "$ac_cv_use_pnm"
7857 if test "$no_cache" != 1; then
7858 echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp
7859 fi
7860
7861 if test "$wxUSE_PNM" = yes; then
698dcdb6 7862 echo "$ac_t""yes" 1>&6
10f2d63a 7863 else
698dcdb6 7864 echo "$ac_t""no" 1>&6
10f2d63a 7865 fi
698dcdb6 7866
10f2d63a 7867
69d27ff7 7868 echo $ac_n "checking for --enable-xpm""... $ac_c" 1>&6
9926e4a4 7869echo "configure:7870: checking for --enable-xpm" >&5
0046ff7c 7870 no_cache=0
69d27ff7
MB
7871 # Check whether --enable-xpm or --disable-xpm was given.
7872if test "${enable_xpm+set}" = set; then
7873 enableval="$enable_xpm"
698dcdb6 7874
0046ff7c 7875 if test "$enableval" = yes; then
69d27ff7 7876 ac_cv_use_xpm='wxUSE_XPM=yes'
0046ff7c 7877 else
69d27ff7 7878 ac_cv_use_xpm='wxUSE_XPM=no'
0046ff7c 7879 fi
698dcdb6 7880
0046ff7c 7881else
698dcdb6 7882
0046ff7c
VS
7883 LINE=`grep "wxUSE_XPM" ${wx_arg_cache_file}`
7884 if test "x$LINE" != x ; then
7885 eval "DEFAULT_$LINE"
7886 else
7887 no_cache=1
7888 fi
7889
69d27ff7 7890 ac_cv_use_xpm='wxUSE_XPM='$DEFAULT_wxUSE_XPM
698dcdb6
VZ
7891
7892fi
0046ff7c
VS
7893
7894
69d27ff7 7895 eval "$ac_cv_use_xpm"
0046ff7c 7896 if test "$no_cache" != 1; then
69d27ff7 7897 echo $ac_cv_use_xpm >> ${wx_arg_cache_file}.tmp
0046ff7c
VS
7898 fi
7899
7900 if test "$wxUSE_XPM" = yes; then
698dcdb6 7901 echo "$ac_t""yes" 1>&6
0046ff7c 7902 else
698dcdb6 7903 echo "$ac_t""no" 1>&6
0046ff7c 7904 fi
698dcdb6 7905
0046ff7c 7906
b12915c1
VZ
7907fi
7908
698dcdb6 7909
10f2d63a
VZ
7910 echo "saving argument cache $wx_arg_cache_file"
7911 mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file}
698dcdb6 7912
10f2d63a 7913
698dcdb6
VZ
7914
7915echo $ac_n "checking for toolkit""... $ac_c" 1>&6
9926e4a4 7916echo "configure:7917: checking for toolkit" >&5
10f2d63a
VZ
7917
7918if test "$wxUSE_GUI" = "yes"; then
7919
3a922bb4
RL
7920 if test "$USE_BEOS" = 1; then
7921 { echo "configure: error: BeOS GUI is not supported yet, use --disable-gui" 1>&2; exit 1; }
7922 fi
b12915c1 7923
3a922bb4
RL
7924 if test "$TOOLKIT_GIVEN" = 1; then
7925 for toolkit in `echo $ALL_TOOLKITS`; do
7926 var=wxUSE_$toolkit
7927 eval "value=\$${var}"
7928 eval "$var=`echo \$value | sed -e "s/yes/1/" -e "s/no/0/"`"
7929 done
10f2d63a 7930 else
3a922bb4
RL
7931 for toolkit in `echo $ALL_TOOLKITS`; do
7932 if test "$has_toolkit_in_cache" != 1; then
7933 var=DEFAULT_DEFAULT_wxUSE_$toolkit
7934 else
7935 var=DEFAULT_wxUSE_$toolkit
7936 fi
7937 eval "wxUSE_$toolkit=\$${var}"
7938 done
10f2d63a 7939 fi
10f2d63a 7940
3a922bb4 7941 NUM_TOOLKITS=`expr ${wxUSE_GTK:-0} + ${wxUSE_MOTIF:-0} + ${wxUSE_MAC:-0} \
77e13408 7942 + ${wxUSE_WINE:-0} + ${wxUSE_MSW:-0} + ${wxUSE_MGL:-0}`
10f2d63a 7943
3a922bb4 7944 case "${host}" in
6fa882bd 7945 *-pc-os2_emx | *-pc-os2-emx )
3a922bb4
RL
7946 # PATH_IFS is autodetected by OS/2's configure (usually ';')
7947 NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}`
7948 LEX_STEM="lexyy"
7949 ;;
7950 *)
7951 PATH_IFS=':'
7952 LEX_STEM="lex.yy"
7953 ;;
7954 esac
10f2d63a 7955
3a922bb4
RL
7956 case "$NUM_TOOLKITS" in
7957 1)
7958 ;;
7959 0)
7960 { echo "configure: error: Please specify a toolkit - cannot determine the default for ${host}" 1>&2; exit 1; }
7961 ;;
7962 *)
7963 { echo "configure: error: Please specify at most one toolkit (may be some are cached?)" 1>&2; exit 1; }
7964 esac
10f2d63a 7965
3a922bb4
RL
7966 for toolkit in `echo $ALL_TOOLKITS`; do
7967 var=wxUSE_$toolkit
7968 eval "value=\$${var}"
7969 if test "x$value" != x; then
7970 cache_var=CACHE_$toolkit
7971 eval "cache=\$${cache_var}"
7972 if test "$cache" = 1; then
7973 echo "$var=$value" >> ${wx_arg_cache_file}
7974 fi
7975 if test "$value" = 1; then
7976 toolkit_echo=`echo $toolkit | tr [A-Z] [a-z]`
7977 echo "$ac_t""$toolkit_echo" 1>&6
7978 fi
7979 fi
7980 done
10f2d63a 7981else
cf27ef00 7982 PATH_IFS=':'
3a922bb4 7983 echo "$ac_t""base ($host_alias hosted) only" 1>&6
10f2d63a
VZ
7984fi
7985
698dcdb6
VZ
7986
7987cat > confcache <<\EOF
10f2d63a
VZ
7988# This file is a shell script that caches the results of configure
7989# tests run on this system so they can be shared between configure
698dcdb6
VZ
7990# scripts and configure runs. It is not useful on other systems.
7991# If it contains results you don't want to keep, you may remove or edit it.
10f2d63a 7992#
698dcdb6
VZ
7993# By default, configure uses ./config.cache as the cache file,
7994# creating it if it does not exist already. You can give configure
7995# the --cache-file=FILE option to use a different cache file; that is
7996# what configure does when it calls configure scripts in
7997# subdirectories, so they share the cache.
7998# Giving --cache-file=/dev/null disables caching, for debugging configure.
7999# config.status only pays attention to the cache file if you give it the
8000# --recheck option to rerun configure.
10f2d63a 8001#
698dcdb6 8002EOF
10f2d63a
VZ
8003# The following way of writing the cache mishandles newlines in values,
8004# but we know of no workaround that is simple, portable, and efficient.
8005# So, don't put newlines in cache variables' values.
8006# Ultrix sh set writes to stderr and can't be redirected directly,
8007# and sets the high bit in the cache file unless we assign to the vars.
698dcdb6
VZ
8008(set) 2>&1 |
8009 case `(ac_space=' '; set | grep ac_space) 2>&1` in
8010 *ac_space=\ *)
8011 # `set' does not quote correctly, so add quotes (double-quote substitution
8012 # turns \\\\ into \\, and sed turns \\ into \).
8013 sed -n \
8014 -e "s/'/'\\\\''/g" \
8015 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
8016 ;;
8017 *)
8018 # `set' quotes correctly as required by POSIX, so do not add quotes.
8019 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
8020 ;;
8021 esac >> confcache
8022if cmp -s $cache_file confcache; then
8023 :
8024else
10f2d63a 8025 if test -w $cache_file; then
698dcdb6
VZ
8026 echo "updating cache $cache_file"
8027 cat confcache > $cache_file
10f2d63a
VZ
8028 else
8029 echo "not updating unwritable cache $cache_file"
8030 fi
8031fi
8032rm -f confcache
8033
698dcdb6 8034
e59890c3 8035if test "$build" != "$host" ; then
3a922bb4
RL
8036 if test "$USE_WIN32" = 1 ; then
8037 CC=$host_alias-gcc
8038 CXX=$host_alias-c++
8039 AR=$host_alias-ar
8040 RANLIB=$host_alias-ranlib
8041 DLLTOOL=$host_alias-dlltool
8042 RESCOMP=$host_alias-windres
8043 LD=$host_alias-ld
8044 NM=$host_alias-nm
8045 STRIP=$host_alias-strip
8046 else
8047 { echo "configure: error: $build_alias -> $host_alias cross compilation not supported yet." 1>&2; exit 1; }
8048 fi
10f2d63a
VZ
8049fi
8050
698dcdb6 8051# Extract the first word of "gcc", so it can be a program name with args.
1e487827 8052set dummy gcc; ac_word=$2
698dcdb6 8053echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
9926e4a4 8054echo "configure:8055: checking for $ac_word" >&5
698dcdb6
VZ
8055if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
8056 echo $ac_n "(cached) $ac_c" 1>&6
6232543b
VS
8057else
8058 if test -n "$CC"; then
8059 ac_cv_prog_CC="$CC" # Let the user override the test.
10f2d63a 8060else
698dcdb6
VZ
8061 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8062 ac_dummy="$PATH"
8063 for ac_dir in $ac_dummy; do
8064 test -z "$ac_dir" && ac_dir=.
8065 if test -f $ac_dir/$ac_word; then
8066 ac_cv_prog_CC="gcc"
8067 break
8068 fi
8069 done
8070 IFS="$ac_save_ifs"
10f2d63a 8071fi
6232543b 8072fi
698dcdb6 8073CC="$ac_cv_prog_CC"
6232543b 8074if test -n "$CC"; then
698dcdb6 8075 echo "$ac_t""$CC" 1>&6
1e487827 8076else
698dcdb6 8077 echo "$ac_t""no" 1>&6
1e487827 8078fi
6232543b 8079
1e487827
VS
8080if test -z "$CC"; then
8081 # Extract the first word of "cc", so it can be a program name with args.
8082set dummy cc; ac_word=$2
698dcdb6 8083echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
9926e4a4 8084echo "configure:8085: checking for $ac_word" >&5
698dcdb6
VZ
8085if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
8086 echo $ac_n "(cached) $ac_c" 1>&6
1e487827
VS
8087else
8088 if test -n "$CC"; then
8089 ac_cv_prog_CC="$CC" # Let the user override the test.
8090else
698dcdb6 8091 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1e487827 8092 ac_prog_rejected=no
698dcdb6
VZ
8093 ac_dummy="$PATH"
8094 for ac_dir in $ac_dummy; do
8095 test -z "$ac_dir" && ac_dir=.
8096 if test -f $ac_dir/$ac_word; then
8097 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
8098 ac_prog_rejected=yes
8099 continue
8100 fi
8101 ac_cv_prog_CC="cc"
8102 break
8103 fi
8104 done
8105 IFS="$ac_save_ifs"
1e487827
VS
8106if test $ac_prog_rejected = yes; then
8107 # We found a bogon in the path, so make sure we never use it.
8108 set dummy $ac_cv_prog_CC
8109 shift
698dcdb6 8110 if test $# -gt 0; then
1e487827
VS
8111 # We chose a different compiler from the bogus one.
8112 # However, it has the same basename, so the bogon will be chosen
8113 # first if we set CC to just the basename; use the full file name.
8114 shift
698dcdb6 8115 set dummy "$ac_dir/$ac_word" "$@"
1e487827
VS
8116 shift
8117 ac_cv_prog_CC="$@"
703e0a69 8118 fi
1e487827
VS
8119fi
8120fi
8121fi
698dcdb6 8122CC="$ac_cv_prog_CC"
1e487827 8123if test -n "$CC"; then
698dcdb6 8124 echo "$ac_t""$CC" 1>&6
703e0a69 8125else
698dcdb6 8126 echo "$ac_t""no" 1>&6
703e0a69 8127fi
1e487827 8128
698dcdb6
VZ
8129 if test -z "$CC"; then
8130 case "`uname -s`" in
8131 *win32* | *WIN32*)
8132 # Extract the first word of "cl", so it can be a program name with args.
8133set dummy cl; ac_word=$2
8134echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
9926e4a4 8135echo "configure:8136: checking for $ac_word" >&5
698dcdb6
VZ
8136if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
8137 echo $ac_n "(cached) $ac_c" 1>&6
1e487827
VS
8138else
8139 if test -n "$CC"; then
8140 ac_cv_prog_CC="$CC" # Let the user override the test.
703e0a69 8141else
698dcdb6
VZ
8142 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8143 ac_dummy="$PATH"
8144 for ac_dir in $ac_dummy; do
8145 test -z "$ac_dir" && ac_dir=.
8146 if test -f $ac_dir/$ac_word; then
8147 ac_cv_prog_CC="cl"
8148 break
8149 fi
8150 done
8151 IFS="$ac_save_ifs"
703e0a69 8152fi
1e487827 8153fi
698dcdb6 8154CC="$ac_cv_prog_CC"
1e487827 8155if test -n "$CC"; then
698dcdb6 8156 echo "$ac_t""$CC" 1>&6
1e487827 8157else
698dcdb6 8158 echo "$ac_t""no" 1>&6
1e487827 8159fi
698dcdb6
VZ
8160 ;;
8161 esac
8162 fi
8163 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1e487827
VS
8164fi
8165
698dcdb6 8166echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
9926e4a4 8167echo "configure:8168: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1e487827 8168
698dcdb6
VZ
8169ac_ext=c
8170# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8171ac_cpp='$CPP $CPPFLAGS'
8172ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8173ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8174cross_compiling=$ac_cv_prog_cc_cross
6232543b 8175
698dcdb6 8176cat > conftest.$ac_ext << EOF
1e487827 8177
9926e4a4 8178#line 8179 "configure"
1e487827
VS
8179#include "confdefs.h"
8180
698dcdb6
VZ
8181main(){return(0);}
8182EOF
9926e4a4 8183if { (eval echo configure:8184: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
8184 ac_cv_prog_cc_works=yes
8185 # If we can't run a trivial program, we are probably using a cross compiler.
8186 if (./conftest; exit) 2>/dev/null; then
8187 ac_cv_prog_cc_cross=no
8188 else
8189 ac_cv_prog_cc_cross=yes
8190 fi
8191else
8192 echo "configure: failed program was:" >&5
8193 cat conftest.$ac_ext >&5
8194 ac_cv_prog_cc_works=no
8195fi
8196rm -fr conftest*
8197ac_ext=c
8198# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8199ac_cpp='$CPP $CPPFLAGS'
8200ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8201ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8202cross_compiling=$ac_cv_prog_cc_cross
8203
8204echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
8205if test $ac_cv_prog_cc_works = no; then
8206 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
8207fi
8208echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
9926e4a4 8209echo "configure:8210: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
698dcdb6
VZ
8210echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
8211cross_compiling=$ac_cv_prog_cc_cross
8212
8213echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
9926e4a4 8214echo "configure:8215: checking whether we are using GNU C" >&5
698dcdb6
VZ
8215if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
8216 echo $ac_n "(cached) $ac_c" 1>&6
8217else
8218 cat > conftest.c <<EOF
8219#ifdef __GNUC__
8220 yes;
1e487827 8221#endif
698dcdb6 8222EOF
9926e4a4 8223if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:8224: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
698dcdb6
VZ
8224 ac_cv_prog_gcc=yes
8225else
8226 ac_cv_prog_gcc=no
8227fi
8228fi
1e487827 8229
698dcdb6 8230echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1e487827 8231
698dcdb6
VZ
8232if test $ac_cv_prog_gcc = yes; then
8233 GCC=yes
8234else
8235 GCC=
8236fi
1e487827 8237
698dcdb6
VZ
8238ac_test_CFLAGS="${CFLAGS+set}"
8239ac_save_CFLAGS="$CFLAGS"
8240CFLAGS=
8241echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
9926e4a4 8242echo "configure:8243: checking whether ${CC-cc} accepts -g" >&5
698dcdb6
VZ
8243if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
8244 echo $ac_n "(cached) $ac_c" 1>&6
8245else
8246 echo 'void f(){}' > conftest.c
8247if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
10f2d63a
VZ
8248 ac_cv_prog_cc_g=yes
8249else
698dcdb6 8250 ac_cv_prog_cc_g=no
10f2d63a 8251fi
698dcdb6
VZ
8252rm -f conftest*
8253
10f2d63a 8254fi
698dcdb6
VZ
8255
8256echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
10f2d63a 8257if test "$ac_test_CFLAGS" = set; then
698dcdb6 8258 CFLAGS="$ac_save_CFLAGS"
10f2d63a
VZ
8259elif test $ac_cv_prog_cc_g = yes; then
8260 if test "$GCC" = yes; then
8261 CFLAGS="-g -O2"
8262 else
8263 CFLAGS="-g"
8264 fi
8265else
8266 if test "$GCC" = yes; then
8267 CFLAGS="-O2"
8268 else
8269 CFLAGS=
8270 fi
8271fi
8272
8273
8274CFLAGS=`echo "$CFLAGS" | sed 's/-g//g'`
8275
698dcdb6 8276echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
9926e4a4 8277echo "configure:8278: checking how to run the C preprocessor" >&5
10f2d63a
VZ
8278# On Suns, sometimes $CPP names a directory.
8279if test -n "$CPP" && test -d "$CPP"; then
8280 CPP=
8281fi
8282if test -z "$CPP"; then
698dcdb6
VZ
8283if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
8284 echo $ac_n "(cached) $ac_c" 1>&6
8285else
8286 # This must be in double quotes, not single quotes, because CPP may get
8287 # substituted into the Makefile and "${CC-cc}" will confuse make.
8288 CPP="${CC-cc} -E"
10f2d63a 8289 # On the NeXT, cc -E runs the code through the compiler's parser,
698dcdb6
VZ
8290 # not just through cpp.
8291 cat > conftest.$ac_ext <<EOF
9926e4a4 8292#line 8293 "configure"
10f2d63a
VZ
8293#include "confdefs.h"
8294#include <assert.h>
698dcdb6
VZ
8295Syntax Error
8296EOF
8297ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9926e4a4 8298{ (eval echo configure:8299: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
8299ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8300if test -z "$ac_err"; then
10f2d63a
VZ
8301 :
8302else
698dcdb6
VZ
8303 echo "$ac_err" >&5
8304 echo "configure: failed program was:" >&5
10f2d63a 8305 cat conftest.$ac_ext >&5
698dcdb6
VZ
8306 rm -rf conftest*
8307 CPP="${CC-cc} -E -traditional-cpp"
8308 cat > conftest.$ac_ext <<EOF
9926e4a4 8309#line 8310 "configure"
10f2d63a 8310#include "confdefs.h"
698dcdb6
VZ
8311#include <assert.h>
8312Syntax Error
8313EOF
8314ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9926e4a4 8315{ (eval echo configure:8316: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
8316ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8317if test -z "$ac_err"; then
8318 :
10f2d63a 8319else
698dcdb6
VZ
8320 echo "$ac_err" >&5
8321 echo "configure: failed program was:" >&5
10f2d63a 8322 cat conftest.$ac_ext >&5
698dcdb6
VZ
8323 rm -rf conftest*
8324 CPP="${CC-cc} -nologo -E"
8325 cat > conftest.$ac_ext <<EOF
9926e4a4 8326#line 8327 "configure"
10f2d63a
VZ
8327#include "confdefs.h"
8328#include <assert.h>
698dcdb6
VZ
8329Syntax Error
8330EOF
8331ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9926e4a4 8332{ (eval echo configure:8333: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
8333ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8334if test -z "$ac_err"; then
10f2d63a
VZ
8335 :
8336else
698dcdb6
VZ
8337 echo "$ac_err" >&5
8338 echo "configure: failed program was:" >&5
10f2d63a 8339 cat conftest.$ac_ext >&5
698dcdb6
VZ
8340 rm -rf conftest*
8341 CPP=/lib/cpp
10f2d63a 8342fi
698dcdb6 8343rm -f conftest*
10f2d63a 8344fi
698dcdb6 8345rm -f conftest*
703e0a69 8346fi
698dcdb6
VZ
8347rm -f conftest*
8348 ac_cv_prog_CPP="$CPP"
8349fi
8350 CPP="$ac_cv_prog_CPP"
10f2d63a 8351else
698dcdb6 8352 ac_cv_prog_CPP="$CPP"
10f2d63a 8353fi
698dcdb6 8354echo "$ac_t""$CPP" 1>&6
10f2d63a 8355
698dcdb6
VZ
8356if test $ac_cv_prog_gcc = yes; then
8357 echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
9926e4a4 8358echo "configure:8359: checking whether ${CC-cc} needs -traditional" >&5
698dcdb6
VZ
8359if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
8360 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a
VZ
8361else
8362 ac_pattern="Autoconf.*'x'"
698dcdb6 8363 cat > conftest.$ac_ext <<EOF
9926e4a4 8364#line 8365 "configure"
10f2d63a
VZ
8365#include "confdefs.h"
8366#include <sgtty.h>
8367Autoconf TIOCGETP
698dcdb6 8368EOF
10f2d63a
VZ
8369if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8370 egrep "$ac_pattern" >/dev/null 2>&1; then
698dcdb6 8371 rm -rf conftest*
10f2d63a
VZ
8372 ac_cv_prog_gcc_traditional=yes
8373else
698dcdb6 8374 rm -rf conftest*
10f2d63a
VZ
8375 ac_cv_prog_gcc_traditional=no
8376fi
8377rm -f conftest*
8378
698dcdb6 8379
10f2d63a 8380 if test $ac_cv_prog_gcc_traditional = no; then
698dcdb6 8381 cat > conftest.$ac_ext <<EOF
9926e4a4 8382#line 8383 "configure"
10f2d63a
VZ
8383#include "confdefs.h"
8384#include <termio.h>
8385Autoconf TCGETA
698dcdb6 8386EOF
10f2d63a
VZ
8387if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8388 egrep "$ac_pattern" >/dev/null 2>&1; then
698dcdb6 8389 rm -rf conftest*
10f2d63a
VZ
8390 ac_cv_prog_gcc_traditional=yes
8391fi
8392rm -f conftest*
8393
8394 fi
8395fi
698dcdb6
VZ
8396
8397echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6
10f2d63a
VZ
8398 if test $ac_cv_prog_gcc_traditional = yes; then
8399 CC="$CC -traditional"
8400 fi
8401fi
8402
703e0a69 8403
698dcdb6
VZ
8404
8405ac_ext=C
8406# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1e487827 8407ac_cpp='$CXXCPP $CPPFLAGS'
698dcdb6
VZ
8408ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8409ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8410cross_compiling=$ac_cv_prog_cxx_cross
8411
8412
8413for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
8414do
8415# Extract the first word of "$ac_prog", so it can be a program name with args.
8416set dummy $ac_prog; ac_word=$2
8417echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
9926e4a4 8418echo "configure:8419: checking for $ac_word" >&5
698dcdb6
VZ
8419if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
8420 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a
VZ
8421else
8422 if test -n "$CXX"; then
8423 ac_cv_prog_CXX="$CXX" # Let the user override the test.
8424else
698dcdb6
VZ
8425 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8426 ac_dummy="$PATH"
8427 for ac_dir in $ac_dummy; do
8428 test -z "$ac_dir" && ac_dir=.
8429 if test -f $ac_dir/$ac_word; then
8430 ac_cv_prog_CXX="$ac_prog"
8431 break
8432 fi
8433 done
8434 IFS="$ac_save_ifs"
10f2d63a
VZ
8435fi
8436fi
698dcdb6 8437CXX="$ac_cv_prog_CXX"
10f2d63a 8438if test -n "$CXX"; then
698dcdb6 8439 echo "$ac_t""$CXX" 1>&6
10f2d63a 8440else
698dcdb6 8441 echo "$ac_t""no" 1>&6
10f2d63a
VZ
8442fi
8443
698dcdb6 8444test -n "$CXX" && break
10f2d63a 8445done
698dcdb6 8446test -n "$CXX" || CXX="gcc"
10f2d63a
VZ
8447
8448
698dcdb6 8449echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
9926e4a4 8450echo "configure:8451: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
10f2d63a 8451
698dcdb6
VZ
8452ac_ext=C
8453# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8454ac_cpp='$CXXCPP $CPPFLAGS'
8455ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8456ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8457cross_compiling=$ac_cv_prog_cxx_cross
703e0a69 8458
698dcdb6
VZ
8459cat > conftest.$ac_ext << EOF
8460
9926e4a4 8461#line 8462 "configure"
10f2d63a
VZ
8462#include "confdefs.h"
8463
698dcdb6
VZ
8464int main(){return(0);}
8465EOF
9926e4a4 8466if { (eval echo configure:8467: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
8467 ac_cv_prog_cxx_works=yes
8468 # If we can't run a trivial program, we are probably using a cross compiler.
8469 if (./conftest; exit) 2>/dev/null; then
8470 ac_cv_prog_cxx_cross=no
8471 else
8472 ac_cv_prog_cxx_cross=yes
8473 fi
8474else
8475 echo "configure: failed program was:" >&5
8476 cat conftest.$ac_ext >&5
8477 ac_cv_prog_cxx_works=no
8478fi
8479rm -fr conftest*
8480ac_ext=C
8481# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8482ac_cpp='$CXXCPP $CPPFLAGS'
8483ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8484ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8485cross_compiling=$ac_cv_prog_cxx_cross
8486
8487echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
8488if test $ac_cv_prog_cxx_works = no; then
8489 { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
8490fi
8491echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
9926e4a4 8492echo "configure:8493: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
698dcdb6
VZ
8493echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
8494cross_compiling=$ac_cv_prog_cxx_cross
8495
8496echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
9926e4a4 8497echo "configure:8498: checking whether we are using GNU C++" >&5
698dcdb6
VZ
8498if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
8499 echo $ac_n "(cached) $ac_c" 1>&6
8500else
8501 cat > conftest.C <<EOF
8502#ifdef __GNUC__
8503 yes;
10f2d63a 8504#endif
698dcdb6 8505EOF
9926e4a4 8506if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:8507: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
698dcdb6
VZ
8507 ac_cv_prog_gxx=yes
8508else
8509 ac_cv_prog_gxx=no
8510fi
8511fi
10f2d63a 8512
698dcdb6 8513echo "$ac_t""$ac_cv_prog_gxx" 1>&6
10f2d63a 8514
698dcdb6
VZ
8515if test $ac_cv_prog_gxx = yes; then
8516 GXX=yes
8517else
8518 GXX=
8519fi
10f2d63a 8520
698dcdb6
VZ
8521ac_test_CXXFLAGS="${CXXFLAGS+set}"
8522ac_save_CXXFLAGS="$CXXFLAGS"
8523CXXFLAGS=
8524echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
9926e4a4 8525echo "configure:8526: checking whether ${CXX-g++} accepts -g" >&5
698dcdb6
VZ
8526if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
8527 echo $ac_n "(cached) $ac_c" 1>&6
8528else
8529 echo 'void f(){}' > conftest.cc
8530if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
10f2d63a
VZ
8531 ac_cv_prog_cxx_g=yes
8532else
698dcdb6 8533 ac_cv_prog_cxx_g=no
10f2d63a 8534fi
698dcdb6
VZ
8535rm -f conftest*
8536
10f2d63a 8537fi
698dcdb6
VZ
8538
8539echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
10f2d63a 8540if test "$ac_test_CXXFLAGS" = set; then
698dcdb6 8541 CXXFLAGS="$ac_save_CXXFLAGS"
10f2d63a
VZ
8542elif test $ac_cv_prog_cxx_g = yes; then
8543 if test "$GXX" = yes; then
8544 CXXFLAGS="-g -O2"
8545 else
8546 CXXFLAGS="-g"
8547 fi
8548else
8549 if test "$GXX" = yes; then
8550 CXXFLAGS="-O2"
8551 else
8552 CXXFLAGS=
8553 fi
8554fi
8555
8556
10f2d63a
VZ
8557CXXFLAGS=`echo "$CXXFLAGS" | sed 's/-g//g'`
8558
8559ac_ext=c
698dcdb6 8560# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10f2d63a 8561ac_cpp='$CPP $CPPFLAGS'
698dcdb6
VZ
8562ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8563ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8564cross_compiling=$ac_cv_prog_cc_cross
8565
8566
8567# Extract the first word of "ranlib", so it can be a program name with args.
8568set dummy ranlib; ac_word=$2
8569echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
9926e4a4 8570echo "configure:8571: checking for $ac_word" >&5
698dcdb6
VZ
8571if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
8572 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a
VZ
8573else
8574 if test -n "$RANLIB"; then
8575 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8576else
698dcdb6
VZ
8577 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8578 ac_dummy="$PATH"
8579 for ac_dir in $ac_dummy; do
8580 test -z "$ac_dir" && ac_dir=.
8581 if test -f $ac_dir/$ac_word; then
8582 ac_cv_prog_RANLIB="ranlib"
8583 break
8584 fi
8585 done
8586 IFS="$ac_save_ifs"
8587 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
10f2d63a
VZ
8588fi
8589fi
698dcdb6 8590RANLIB="$ac_cv_prog_RANLIB"
10f2d63a 8591if test -n "$RANLIB"; then
698dcdb6 8592 echo "$ac_t""$RANLIB" 1>&6
10f2d63a 8593else
698dcdb6 8594 echo "$ac_t""no" 1>&6
10f2d63a
VZ
8595fi
8596
8597
8598# Extract the first word of "ar", so it can be a program name with args.
8599set dummy ar; ac_word=$2
698dcdb6 8600echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
9926e4a4 8601echo "configure:8602: checking for $ac_word" >&5
698dcdb6
VZ
8602if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
8603 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a
VZ
8604else
8605 if test -n "$AR"; then
8606 ac_cv_prog_AR="$AR" # Let the user override the test.
8607else
698dcdb6
VZ
8608 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8609 ac_dummy="$PATH"
8610 for ac_dir in $ac_dummy; do
8611 test -z "$ac_dir" && ac_dir=.
8612 if test -f $ac_dir/$ac_word; then
8613 ac_cv_prog_AR="ar"
8614 break
8615 fi
8616 done
8617 IFS="$ac_save_ifs"
10f2d63a
VZ
8618 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
8619fi
8620fi
698dcdb6 8621AR="$ac_cv_prog_AR"
10f2d63a 8622if test -n "$AR"; then
698dcdb6 8623 echo "$ac_t""$AR" 1>&6
10f2d63a 8624else
698dcdb6 8625 echo "$ac_t""no" 1>&6
10f2d63a
VZ
8626fi
8627
698dcdb6 8628
6054113a 8629# Find a good install program. We prefer a C program (faster),
10f2d63a
VZ
8630# so one script is as good as another. But avoid the broken or
8631# incompatible versions:
8632# SysV /etc/install, /usr/sbin/install
8633# SunOS /usr/etc/install
8634# IRIX /sbin/install
8635# AIX /bin/install
8636# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
8637# AFS /usr/afsws/bin/install, which mishandles nonexistent args
8638# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
8639# ./install, which can be erroneously created by make from ./install.sh.
698dcdb6 8640echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
9926e4a4 8641echo "configure:8642: checking for a BSD compatible install" >&5
10f2d63a 8642if test -z "$INSTALL"; then
698dcdb6
VZ
8643if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
8644 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 8645else
698dcdb6 8646 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
10f2d63a
VZ
8647 for ac_dir in $PATH; do
8648 # Account for people who put trailing slashes in PATH elements.
698dcdb6
VZ
8649 case "$ac_dir/" in
8650 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
10f2d63a
VZ
8651 *)
8652 # OSF1 and SCO ODT 3.0 have their own names for install.
8653 # Don't use installbsd from OSF since it installs stuff as root
8654 # by default.
8655 for ac_prog in ginstall scoinst install; do
698dcdb6 8656 if test -f $ac_dir/$ac_prog; then
10f2d63a 8657 if test $ac_prog = install &&
698dcdb6 8658 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
10f2d63a
VZ
8659 # AIX install. It has an incompatible calling convention.
8660 :
8661 else
8662 ac_cv_path_install="$ac_dir/$ac_prog -c"
8663 break 2
8664 fi
8665 fi
8666 done
8667 ;;
8668 esac
8669 done
698dcdb6 8670 IFS="$ac_save_IFS"
10f2d63a
VZ
8671
8672fi
8673 if test "${ac_cv_path_install+set}" = set; then
698dcdb6 8674 INSTALL="$ac_cv_path_install"
10f2d63a
VZ
8675 else
8676 # As a last resort, use the slow shell script. We don't cache a
8677 # path for INSTALL within a source directory, because that will
8678 # break other packages using the cache if that directory is
8679 # removed, or if the path is relative.
698dcdb6 8680 INSTALL="$ac_install_sh"
10f2d63a
VZ
8681 fi
8682fi
698dcdb6 8683echo "$ac_t""$INSTALL" 1>&6
10f2d63a
VZ
8684
8685# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
8686# It thinks the first close brace ends the variable substitution.
8687test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
8688
698dcdb6 8689test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
10f2d63a
VZ
8690
8691test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
8692
6054113a
GD
8693case "${host}" in
8694
b5853384 8695 powerpc-*-darwin* )
eb99ae0b
GD
8696 INSTALL_PROGRAM="cp -fp"
8697 INSTALL_DATA="cp -fp"
6054113a
GD
8698 ;;
8699 *)
8700 ;;
d6853540 8701esac
698dcdb6 8702
10f2d63a
VZ
8703# Extract the first word of "strip", so it can be a program name with args.
8704set dummy strip; ac_word=$2
698dcdb6 8705echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
9926e4a4 8706echo "configure:8707: checking for $ac_word" >&5
698dcdb6
VZ
8707if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
8708 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a
VZ
8709else
8710 if test -n "$STRIP"; then
8711 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8712else
698dcdb6
VZ
8713 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8714 ac_dummy="$PATH"
8715 for ac_dir in $ac_dummy; do
8716 test -z "$ac_dir" && ac_dir=.
8717 if test -f $ac_dir/$ac_word; then
8718 ac_cv_prog_STRIP="strip"
8719 break
8720 fi
8721 done
8722 IFS="$ac_save_ifs"
10f2d63a
VZ
8723 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="true"
8724fi
8725fi
698dcdb6 8726STRIP="$ac_cv_prog_STRIP"
10f2d63a 8727if test -n "$STRIP"; then
698dcdb6 8728 echo "$ac_t""$STRIP" 1>&6
10f2d63a 8729else
698dcdb6 8730 echo "$ac_t""no" 1>&6
10f2d63a
VZ
8731fi
8732
698dcdb6
VZ
8733
8734echo $ac_n "checking make for VPATH support""... $ac_c" 1>&6
9926e4a4 8735echo "configure:8736: checking make for VPATH support" >&5
10f2d63a
VZ
8736cat - << EOF > confMake
8737check : file
8738 cp \$? \$@
8739 cp \$? final_file
8740EOF
8741
8742if test ! -d sub ; then
8743 mkdir sub
8744fi
8745echo dummy > sub/file
f6bcfd97 8746${MAKE-make} -f confMake VPATH=sub 2>&5 > /dev/null
10f2d63a
VZ
8747RESULT=$?
8748rm -f sub/file check final_file confMake
8749rmdir sub
8750if test "$RESULT" = 0; then
698dcdb6 8751 echo "$ac_t""yes" 1>&6
10f2d63a 8752else
698dcdb6
VZ
8753 echo "$ac_t""no" 1>&6
8754 { echo "configure: error:
1e487827
VS
8755You need a make-utility that is able to use the variable
8756VPATH correctly.
8757If your version of make does not support VPATH correctly,
8758please install GNU-make (possibly as gmake), and start
8759configure with the following command:
8760export MAKE=gmake; ./configure for sh-type shells
8761setenv MAKE gmake; ./configure for csh-type shells
8762Also please do remember to use gmake in this case every time
8763you are trying to compile.
698dcdb6 8764" 1>&2; exit 1; }
10f2d63a
VZ
8765fi
8766
8767for ac_prog in 'bison -y' byacc
8768do
698dcdb6 8769# Extract the first word of "$ac_prog", so it can be a program name with args.
10f2d63a 8770set dummy $ac_prog; ac_word=$2
698dcdb6 8771echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
9926e4a4 8772echo "configure:8773: checking for $ac_word" >&5
698dcdb6
VZ
8773if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
8774 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a
VZ
8775else
8776 if test -n "$YACC"; then
8777 ac_cv_prog_YACC="$YACC" # Let the user override the test.
8778else
698dcdb6
VZ
8779 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8780 ac_dummy="$PATH"
8781 for ac_dir in $ac_dummy; do
8782 test -z "$ac_dir" && ac_dir=.
8783 if test -f $ac_dir/$ac_word; then
8784 ac_cv_prog_YACC="$ac_prog"
8785 break
8786 fi
8787 done
8788 IFS="$ac_save_ifs"
10f2d63a
VZ
8789fi
8790fi
698dcdb6 8791YACC="$ac_cv_prog_YACC"
10f2d63a 8792if test -n "$YACC"; then
698dcdb6 8793 echo "$ac_t""$YACC" 1>&6
10f2d63a 8794else
698dcdb6 8795 echo "$ac_t""no" 1>&6
10f2d63a
VZ
8796fi
8797
698dcdb6 8798test -n "$YACC" && break
10f2d63a
VZ
8799done
8800test -n "$YACC" || YACC="yacc"
8801
698dcdb6
VZ
8802
8803# Extract the first word of "flex", so it can be a program name with args.
8804set dummy flex; ac_word=$2
8805echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
9926e4a4 8806echo "configure:8807: checking for $ac_word" >&5
698dcdb6
VZ
8807if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
8808 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a
VZ
8809else
8810 if test -n "$LEX"; then
8811 ac_cv_prog_LEX="$LEX" # Let the user override the test.
8812else
698dcdb6
VZ
8813 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8814 ac_dummy="$PATH"
8815 for ac_dir in $ac_dummy; do
8816 test -z "$ac_dir" && ac_dir=.
8817 if test -f $ac_dir/$ac_word; then
8818 ac_cv_prog_LEX="flex"
8819 break
8820 fi
8821 done
8822 IFS="$ac_save_ifs"
8823 test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex"
10f2d63a
VZ
8824fi
8825fi
698dcdb6 8826LEX="$ac_cv_prog_LEX"
10f2d63a 8827if test -n "$LEX"; then
698dcdb6 8828 echo "$ac_t""$LEX" 1>&6
10f2d63a 8829else
698dcdb6 8830 echo "$ac_t""no" 1>&6
10f2d63a
VZ
8831fi
8832
8833if test -z "$LEXLIB"
8834then
698dcdb6
VZ
8835 case "$LEX" in
8836 flex*) ac_lib=fl ;;
8837 *) ac_lib=l ;;
8838 esac
8839 echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
9926e4a4 8840echo "configure:8841: checking for yywrap in -l$ac_lib" >&5
698dcdb6
VZ
8841ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
8842if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8843 echo $ac_n "(cached) $ac_c" 1>&6
8844else
8845 ac_save_LIBS="$LIBS"
8846LIBS="-l$ac_lib $LIBS"
8847cat > conftest.$ac_ext <<EOF
9926e4a4 8848#line 8849 "configure"
10f2d63a
VZ
8849#include "confdefs.h"
8850/* Override any gcc2 internal prototype to avoid an error. */
8851/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
8852 builtin and then its argument prototype would still apply. */
8853char yywrap();
10f2d63a 8854
698dcdb6
VZ
8855int main() {
8856yywrap()
8857; return 0; }
8858EOF
9926e4a4 8859if { (eval echo configure:8860: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
8860 rm -rf conftest*
8861 eval "ac_cv_lib_$ac_lib_var=yes"
10f2d63a 8862else
698dcdb6
VZ
8863 echo "configure: failed program was:" >&5
8864 cat conftest.$ac_ext >&5
8865 rm -rf conftest*
8866 eval "ac_cv_lib_$ac_lib_var=no"
10f2d63a 8867fi
698dcdb6
VZ
8868rm -f conftest*
8869LIBS="$ac_save_LIBS"
8870
10f2d63a 8871fi
698dcdb6
VZ
8872if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8873 echo "$ac_t""yes" 1>&6
8874 LEXLIB="-l$ac_lib"
8875else
8876 echo "$ac_t""no" 1>&6
10f2d63a
VZ
8877fi
8878
8879fi
8880
8881
698dcdb6 8882echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
9926e4a4 8883echo "configure:8884: checking whether ln -s works" >&5
698dcdb6
VZ
8884if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
8885 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 8886else
698dcdb6
VZ
8887 rm -f conftestdata
8888if ln -s X conftestdata 2>/dev/null
8889then
8890 rm -f conftestdata
8891 ac_cv_prog_LN_S="ln -s"
10f2d63a 8892else
698dcdb6 8893 ac_cv_prog_LN_S=ln
10f2d63a
VZ
8894fi
8895fi
698dcdb6
VZ
8896LN_S="$ac_cv_prog_LN_S"
8897if test "$ac_cv_prog_LN_S" = "ln -s"; then
8898 echo "$ac_t""yes" 1>&6
10f2d63a 8899else
698dcdb6 8900 echo "$ac_t""no" 1>&6
10f2d63a
VZ
8901fi
8902
8903
8904
8905SEARCH_INCLUDE="\
8906 /usr/local/include \
8907 \
8908 /usr/Motif-1.2/include \
8909 /usr/Motif-2.1/include \
8910 \
8911 /usr/include/Motif1.2 \
8912 /opt/xpm/include/X11 \
8913 /opt/GBxpm/include/ \
8914 /opt/GBxpm/X11/include/ \
8915 \
8916 /usr/Motif1.2/include \
8917 /usr/dt/include \
afc31813
VZ
8918 /usr/openwin/include \
8919 \
10f2d63a
VZ
8920 /usr/include/Xm \
8921 \
8922 /usr/X11R6/include \
afc31813 8923 /usr/X11R6.4/include \
10f2d63a
VZ
8924 /usr/X11R5/include \
8925 /usr/X11R4/include \
8926 \
10f2d63a
VZ
8927 /usr/include/X11R6 \
8928 /usr/include/X11R5 \
8929 /usr/include/X11R4 \
8930 \
8931 /usr/local/X11R6/include \
8932 /usr/local/X11R5/include \
8933 /usr/local/X11R4/include \
8934 \
8935 /usr/local/include/X11R6 \
8936 /usr/local/include/X11R5 \
8937 /usr/local/include/X11R4 \
8938 \
8939 /usr/X11/include \
8940 /usr/include/X11 \
8941 /usr/local/X11/include \
8942 /usr/local/include/X11 \
8943 \
8944 /usr/X386/include \
8945 /usr/x386/include \
8946 /usr/XFree86/include/X11 \
8947 \
cf27ef00 8948 X:/XFree86/include \
ec14dd32
VZ
8949 X:/XFree86/include/X11 \
8950 \
10f2d63a
VZ
8951 /usr/include/gtk \
8952 /usr/local/include/gtk \
8953 /usr/include/glib \
8954 /usr/local/include/glib \
8955 \
8956 /usr/include/qt \
8957 /usr/local/include/qt \
8958 \
8959 /usr/include/windows \
8960 /usr/include/wine \
8961 /usr/local/include/wine \
8962 \
8963 /usr/unsupported/include \
8964 /usr/athena/include \
8965 /usr/local/x11r5/include \
8966 /usr/lpp/Xamples/include \
8967 \
10f2d63a 8968 /usr/openwin/share/include \
928b5c08
VZ
8969 \
8970 /usr/include"
10f2d63a
VZ
8971
8972SEARCH_LIB="`echo "$SEARCH_INCLUDE" | sed s/include/lib/g` "
8973
698dcdb6
VZ
8974
8975cat > confcache <<\EOF
10f2d63a
VZ
8976# This file is a shell script that caches the results of configure
8977# tests run on this system so they can be shared between configure
698dcdb6
VZ
8978# scripts and configure runs. It is not useful on other systems.
8979# If it contains results you don't want to keep, you may remove or edit it.
10f2d63a 8980#
698dcdb6
VZ
8981# By default, configure uses ./config.cache as the cache file,
8982# creating it if it does not exist already. You can give configure
8983# the --cache-file=FILE option to use a different cache file; that is
8984# what configure does when it calls configure scripts in
8985# subdirectories, so they share the cache.
8986# Giving --cache-file=/dev/null disables caching, for debugging configure.
8987# config.status only pays attention to the cache file if you give it the
8988# --recheck option to rerun configure.
10f2d63a 8989#
698dcdb6 8990EOF
10f2d63a
VZ
8991# The following way of writing the cache mishandles newlines in values,
8992# but we know of no workaround that is simple, portable, and efficient.
8993# So, don't put newlines in cache variables' values.
8994# Ultrix sh set writes to stderr and can't be redirected directly,
8995# and sets the high bit in the cache file unless we assign to the vars.
698dcdb6
VZ
8996(set) 2>&1 |
8997 case `(ac_space=' '; set | grep ac_space) 2>&1` in
8998 *ac_space=\ *)
8999 # `set' does not quote correctly, so add quotes (double-quote substitution
9000 # turns \\\\ into \\, and sed turns \\ into \).
9001 sed -n \
9002 -e "s/'/'\\\\''/g" \
9003 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
9004 ;;
9005 *)
9006 # `set' quotes correctly as required by POSIX, so do not add quotes.
9007 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
9008 ;;
9009 esac >> confcache
9010if cmp -s $cache_file confcache; then
9011 :
9012else
10f2d63a 9013 if test -w $cache_file; then
698dcdb6
VZ
9014 echo "updating cache $cache_file"
9015 cat confcache > $cache_file
10f2d63a
VZ
9016 else
9017 echo "not updating unwritable cache $cache_file"
9018 fi
9019fi
9020rm -f confcache
9021
698dcdb6
VZ
9022
9023
4f14bcd8 9024
18dbb1f6
VZ
9025REGEX_INCLUDE=
9026if test "$wxUSE_REGEX" != "no"; then
4f14bcd8
GD
9027 cat >> confdefs.h <<\EOF
9028#define wxUSE_REGEX 1
9029EOF
9030
9031
9032 if test "$wxUSE_REGEX" = "sys" -o "$wxUSE_REGEX" = "yes" ; then
9033 ac_safe=`echo "regex.h" | sed 'y%./+-%__p_%'`
18dbb1f6 9034echo $ac_n "checking for regex.h""... $ac_c" 1>&6
9926e4a4 9035echo "configure:9036: checking for regex.h" >&5
18dbb1f6
VZ
9036if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9037 echo $ac_n "(cached) $ac_c" 1>&6
9038else
9039 cat > conftest.$ac_ext <<EOF
9926e4a4 9040#line 9041 "configure"
18dbb1f6
VZ
9041#include "confdefs.h"
9042#include <regex.h>
9043EOF
9044ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9926e4a4 9045{ (eval echo configure:9046: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
18dbb1f6
VZ
9046ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9047if test -z "$ac_err"; then
9048 rm -rf conftest*
9049 eval "ac_cv_header_$ac_safe=yes"
9050else
9051 echo "$ac_err" >&5
9052 echo "configure: failed program was:" >&5
9053 cat conftest.$ac_ext >&5
9054 rm -rf conftest*
9055 eval "ac_cv_header_$ac_safe=no"
9056fi
9057rm -f conftest*
9058fi
9059if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9060 echo "$ac_t""yes" 1>&6
9061 for ac_func in regcomp
9062do
9063echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9926e4a4 9064echo "configure:9065: checking for $ac_func" >&5
18dbb1f6
VZ
9065if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9066 echo $ac_n "(cached) $ac_c" 1>&6
9067else
9068 cat > conftest.$ac_ext <<EOF
9926e4a4 9069#line 9070 "configure"
18dbb1f6
VZ
9070#include "confdefs.h"
9071/* System header to define __stub macros and hopefully few prototypes,
9072 which can conflict with char $ac_func(); below. */
9073#include <assert.h>
9074/* Override any gcc2 internal prototype to avoid an error. */
9075/* We use char because int might match the return type of a gcc2
9076 builtin and then its argument prototype would still apply. */
9077char $ac_func();
9078
9079int main() {
9080
9081/* The GNU C library defines this for functions which it implements
9082 to always fail with ENOSYS. Some functions are actually named
9083 something starting with __ and the normal name is an alias. */
9084#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9085choke me
9086#else
9087$ac_func();
9088#endif
9089
9090; return 0; }
9091EOF
9926e4a4 9092if { (eval echo configure:9093: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18dbb1f6
VZ
9093 rm -rf conftest*
9094 eval "ac_cv_func_$ac_func=yes"
9095else
9096 echo "configure: failed program was:" >&5
9097 cat conftest.$ac_ext >&5
9098 rm -rf conftest*
9099 eval "ac_cv_func_$ac_func=no"
9100fi
9101rm -f conftest*
9102fi
9103
9104if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9105 echo "$ac_t""yes" 1>&6
9106 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9107 cat >> confdefs.h <<EOF
9108#define $ac_tr_func 1
9109EOF
9110
9111else
9112 echo "$ac_t""no" 1>&6
9113fi
9114done
9115
9116else
9117 echo "$ac_t""no" 1>&6
9118fi
9119
9120
4f14bcd8
GD
9121 if test "x$ac_cv_func_regcomp" != "xyes"; then
9122 if test "$wxUSE_REGEX" = "sys" ; then
9123 { echo "configure: error: system regex library not found! Use --with-regex to use built-in version" 1>&2; exit 1; }
9124 else
a3df447d 9125 echo "configure: warning: system regex library not found, will use built-in instead" 1>&2
4f14bcd8
GD
9126 wxUSE_REGEX=builtin
9127 fi
9128 else
9129 wxUSE_REGEX=sys
18dbb1f6 9130 fi
18dbb1f6
VZ
9131 fi
9132
4f14bcd8
GD
9133 if test "$wxUSE_REGEX" = "builtin" ; then
9134 REGEX_INCLUDE="-I\${top_srcdir}/src/regex"
9135 fi
18dbb1f6
VZ
9136fi
9137
9138
4f14bcd8
GD
9139ZLIB_INCLUDE=
9140ZLIB_LINK=
9141if test "$wxUSE_ZLIB" != "no" ; then
9142 cat >> confdefs.h <<\EOF
9143#define wxUSE_ZLIB 1
9144EOF
dad6c0ea 9145
10f2d63a 9146
4f14bcd8
GD
9147 if test "$wxUSE_ZLIB" = "sys" -o "$wxUSE_ZLIB" = "yes" ; then
9148 ac_safe=`echo "zlib.h" | sed 'y%./+-%__p_%'`
9149echo $ac_n "checking for zlib.h""... $ac_c" 1>&6
9926e4a4 9150echo "configure:9151: checking for zlib.h" >&5
3a922bb4
RL
9151if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9152 echo $ac_n "(cached) $ac_c" 1>&6
9153else
9154 cat > conftest.$ac_ext <<EOF
9926e4a4 9155#line 9156 "configure"
3a922bb4 9156#include "confdefs.h"
4f14bcd8 9157#include <zlib.h>
3a922bb4
RL
9158EOF
9159ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9926e4a4 9160{ (eval echo configure:9161: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3a922bb4
RL
9161ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9162if test -z "$ac_err"; then
9163 rm -rf conftest*
9164 eval "ac_cv_header_$ac_safe=yes"
9165else
9166 echo "$ac_err" >&5
9167 echo "configure: failed program was:" >&5
9168 cat conftest.$ac_ext >&5
9169 rm -rf conftest*
9170 eval "ac_cv_header_$ac_safe=no"
9171fi
9172rm -f conftest*
9173fi
9174if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9175 echo "$ac_t""yes" 1>&6
4f14bcd8 9176 echo $ac_n "checking for deflate in -lz""... $ac_c" 1>&6
9926e4a4 9177echo "configure:9178: checking for deflate in -lz" >&5
4f14bcd8
GD
9178ac_lib_var=`echo z'_'deflate | sed 'y%./+-%__p_%'`
9179if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9180 echo $ac_n "(cached) $ac_c" 1>&6
9181else
9182 ac_save_LIBS="$LIBS"
9183LIBS="-lz $LIBS"
9184cat > conftest.$ac_ext <<EOF
9926e4a4 9185#line 9186 "configure"
4f14bcd8
GD
9186#include "confdefs.h"
9187/* Override any gcc2 internal prototype to avoid an error. */
9188/* We use char because int might match the return type of a gcc2
9189 builtin and then its argument prototype would still apply. */
9190char deflate();
9191
9192int main() {
9193deflate()
9194; return 0; }
3a922bb4 9195EOF
9926e4a4 9196if { (eval echo configure:9197: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4f14bcd8
GD
9197 rm -rf conftest*
9198 eval "ac_cv_lib_$ac_lib_var=yes"
9199else
9200 echo "configure: failed program was:" >&5
9201 cat conftest.$ac_ext >&5
9202 rm -rf conftest*
9203 eval "ac_cv_lib_$ac_lib_var=no"
9204fi
9205rm -f conftest*
9206LIBS="$ac_save_LIBS"
9207
9208fi
9209if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9210 echo "$ac_t""yes" 1>&6
3d63bc3a 9211 ZLIB_LINK=" -lz"
3a922bb4
RL
9212else
9213 echo "$ac_t""no" 1>&6
9214fi
10f2d63a 9215
4f14bcd8
GD
9216else
9217 echo "$ac_t""no" 1>&6
9218fi
9219
9220
9221 if test "x$ZLIB_LINK" = "x" ; then
9222 if test "$wxUSE_ZLIB" = "sys" ; then
9223 { echo "configure: error: system zlib compression library not found! Use --with-zlib=builtin to use built-in version" 1>&2; exit 1; }
9224 else
a3df447d 9225 echo "configure: warning: system zlib compression library not found, will use built-in instead" 1>&2
4f14bcd8
GD
9226 wxUSE_ZLIB=builtin
9227 fi
9228 else
9229 wxUSE_ZLIB=sys
9230 fi
9231 fi
9232
9233 if test "$wxUSE_ZLIB" = "builtin" ; then
9234 ZLIB_INCLUDE="-I\${top_srcdir}/src/zlib"
9235 fi
9236fi
9237
9238
9239PNG_INCLUDE=
9240PNG_LINK=
9241if test "$wxUSE_LIBPNG" != "no" ; then
9242 cat >> confdefs.h <<\EOF
9243#define wxUSE_LIBPNG 1
9244EOF
9245
9246
9247 if test "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then
a3df447d 9248 echo "configure: warning: system png library doesn't work without system zlib, will use built-in instead" 1>&2
4f14bcd8
GD
9249 wxUSE_LIBPNG=builtin
9250 fi
9251
9252 if test "$wxUSE_LIBPNG" = "sys" -o "$wxUSE_LIBPNG" = "yes" ; then
9253 ac_safe=`echo "png.h" | sed 'y%./+-%__p_%'`
9254echo $ac_n "checking for png.h""... $ac_c" 1>&6
9926e4a4 9255echo "configure:9256: checking for png.h" >&5
d4158b5d
VS
9256if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9257 echo $ac_n "(cached) $ac_c" 1>&6
9258else
9259 cat > conftest.$ac_ext <<EOF
9926e4a4 9260#line 9261 "configure"
d4158b5d 9261#include "confdefs.h"
4f14bcd8 9262#include <png.h>
d4158b5d
VS
9263EOF
9264ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9926e4a4 9265{ (eval echo configure:9266: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
d4158b5d
VS
9266ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9267if test -z "$ac_err"; then
9268 rm -rf conftest*
9269 eval "ac_cv_header_$ac_safe=yes"
9270else
9271 echo "$ac_err" >&5
9272 echo "configure: failed program was:" >&5
9273 cat conftest.$ac_ext >&5
9274 rm -rf conftest*
9275 eval "ac_cv_header_$ac_safe=no"
9276fi
9277rm -f conftest*
9278fi
9279if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9280 echo "$ac_t""yes" 1>&6
4f14bcd8 9281 echo $ac_n "checking for png_check_sig in -lpng""... $ac_c" 1>&6
9926e4a4 9282echo "configure:9283: checking for png_check_sig in -lpng" >&5
4f14bcd8
GD
9283ac_lib_var=`echo png'_'png_check_sig | sed 'y%./+-%__p_%'`
9284if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3a922bb4
RL
9285 echo $ac_n "(cached) $ac_c" 1>&6
9286else
4f14bcd8
GD
9287 ac_save_LIBS="$LIBS"
9288LIBS="-lpng -lz -lm $LIBS"
9289cat > conftest.$ac_ext <<EOF
9926e4a4 9290#line 9291 "configure"
3a922bb4 9291#include "confdefs.h"
4f14bcd8
GD
9292/* Override any gcc2 internal prototype to avoid an error. */
9293/* We use char because int might match the return type of a gcc2
9294 builtin and then its argument prototype would still apply. */
9295char png_check_sig();
f6bcfd97 9296
4f14bcd8
GD
9297int main() {
9298png_check_sig()
3a922bb4
RL
9299; return 0; }
9300EOF
9926e4a4 9301if { (eval echo configure:9302: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3a922bb4 9302 rm -rf conftest*
4f14bcd8 9303 eval "ac_cv_lib_$ac_lib_var=yes"
3a922bb4
RL
9304else
9305 echo "configure: failed program was:" >&5
9306 cat conftest.$ac_ext >&5
9307 rm -rf conftest*
4f14bcd8 9308 eval "ac_cv_lib_$ac_lib_var=no"
3a922bb4
RL
9309fi
9310rm -f conftest*
4f14bcd8 9311LIBS="$ac_save_LIBS"
10f2d63a 9312
4f14bcd8
GD
9313fi
9314if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9315 echo "$ac_t""yes" 1>&6
3d63bc3a 9316 PNG_LINK=" -lpng"
4f14bcd8
GD
9317else
9318 echo "$ac_t""no" 1>&6
9319fi
32832908 9320
4f14bcd8
GD
9321
9322else
9323 echo "$ac_t""no" 1>&6
9324fi
3a922bb4 9325
7b7a7637 9326
4f14bcd8
GD
9327 if test "x$PNG_LINK" = "x" ; then
9328 if test "$wxUSE_LIBPNG" = "sys" ; then
9329 { echo "configure: error: system png library not found! Use --with-libpng=builtin to use built-in version" 1>&2; exit 1; }
9330 else
a3df447d 9331 echo "configure: warning: system png library not found, will use built-in instead" 1>&2
4f14bcd8
GD
9332 wxUSE_LIBPNG=builtin
9333 fi
9334 else
9335 wxUSE_LIBPNG=yes
9336 fi
3a922bb4
RL
9337 fi
9338
4f14bcd8
GD
9339 if test "$wxUSE_LIBPNG" = "builtin" ; then
9340 PNG_INCLUDE="-I\${top_srcdir}/src/png"
3a922bb4
RL
9341 fi
9342
4f14bcd8 9343 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png"
3a922bb4
RL
9344fi
9345
32832908 9346
4f14bcd8
GD
9347JPEG_INCLUDE=
9348JPEG_LINK=
9349if test "$wxUSE_LIBJPEG" != "no" ; then
9350 cat >> confdefs.h <<\EOF
9351#define wxUSE_LIBJPEG 1
9352EOF
10f2d63a 9353
8168de4c 9354
4f14bcd8
GD
9355 if test "$wxUSE_LIBJPEG" = "sys" -o "$wxUSE_LIBJPEG" = "yes" ; then
9356 echo $ac_n "checking for jpeglib.h""... $ac_c" 1>&6
9926e4a4 9357echo "configure:9358: checking for jpeglib.h" >&5
4f14bcd8 9358 if eval "test \"`echo '$''{'ac_cv_header_jpeglib_h'+set}'`\" = set"; then
8168de4c
VZ
9359 echo $ac_n "(cached) $ac_c" 1>&6
9360else
4f14bcd8 9361 cat > conftest.$ac_ext <<EOF
9926e4a4 9362#line 9363 "configure"
4f14bcd8 9363#include "confdefs.h"
8168de4c 9364
4f14bcd8
GD
9365 #undef HAVE_STDLIB_H
9366 #include <stdio.h>
9367 #include <jpeglib.h>
9368
9369int main() {
9370
9371
9372; return 0; }
9373EOF
9926e4a4 9374if { (eval echo configure:9375: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4f14bcd8
GD
9375 rm -rf conftest*
9376 ac_cv_header_jpeglib_h=yes
6f72b082 9377else
4f14bcd8
GD
9378 echo "configure: failed program was:" >&5
9379 cat conftest.$ac_ext >&5
9380 rm -rf conftest*
9381 ac_cv_header_jpeglib_h=no
9382
9383fi
9384rm -f conftest*
9385
698dcdb6 9386fi
6f72b082 9387
4f14bcd8
GD
9388 echo "$ac_t""$ac_cv_header_jpeglib_h" 1>&6
9389
9390 if test "$ac_cv_header_jpeglib_h" = "yes"; then
9391 echo $ac_n "checking for jpeg_read_header in -ljpeg""... $ac_c" 1>&6
9926e4a4 9392echo "configure:9393: checking for jpeg_read_header in -ljpeg" >&5
4f14bcd8
GD
9393ac_lib_var=`echo jpeg'_'jpeg_read_header | sed 'y%./+-%__p_%'`
9394if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9395 echo $ac_n "(cached) $ac_c" 1>&6
6f72b082 9396else
4f14bcd8
GD
9397 ac_save_LIBS="$LIBS"
9398LIBS="-ljpeg $LIBS"
9399cat > conftest.$ac_ext <<EOF
9926e4a4 9400#line 9401 "configure"
4f14bcd8
GD
9401#include "confdefs.h"
9402/* Override any gcc2 internal prototype to avoid an error. */
9403/* We use char because int might match the return type of a gcc2
9404 builtin and then its argument prototype would still apply. */
9405char jpeg_read_header();
698dcdb6 9406
4f14bcd8
GD
9407int main() {
9408jpeg_read_header()
9409; return 0; }
9410EOF
9926e4a4 9411if { (eval echo configure:9412: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4f14bcd8
GD
9412 rm -rf conftest*
9413 eval "ac_cv_lib_$ac_lib_var=yes"
6f72b082 9414else
4f14bcd8
GD
9415 echo "configure: failed program was:" >&5
9416 cat conftest.$ac_ext >&5
9417 rm -rf conftest*
9418 eval "ac_cv_lib_$ac_lib_var=no"
698dcdb6 9419fi
4f14bcd8
GD
9420rm -f conftest*
9421LIBS="$ac_save_LIBS"
698dcdb6 9422
4f14bcd8
GD
9423fi
9424if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9425 echo "$ac_t""yes" 1>&6
3d63bc3a 9426 JPEG_LINK=" -ljpeg"
4f14bcd8
GD
9427else
9428 echo "$ac_t""no" 1>&6
9429fi
9430
9431 fi
9432
9433 if test "x$JPEG_LINK" = "x" ; then
9434 if test "$wxUSE_LIBJPEG" = "sys" ; then
9435 { echo "configure: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" 1>&2; exit 1; }
9436 else
a3df447d 9437 echo "configure: warning: system jpeg library not found, will use built-in instead" 1>&2
4f14bcd8
GD
9438 wxUSE_LIBJPEG=builtin
9439 fi
9440 else
9441 wxUSE_LIBJPEG=sys
9442 fi
9443 fi
9444
9445 if test "$wxUSE_LIBJPEG" = "builtin" ; then
9446 JPEG_INCLUDE="-I\${top_srcdir}/src/jpeg"
9447 fi
9448fi
9449
9450
9451TIFF_INCLUDE=
9452TIFF_LINK=
9453if test "$wxUSE_LIBTIFF" != "no" ; then
9454 cat >> confdefs.h <<\EOF
9455#define wxUSE_LIBTIFF 1
9456EOF
9457
9458
9459 if test "$wxUSE_LIBTIFF" = "sys" -o "$wxUSE_LIBTIFF" = "yes" ; then
9460 ac_safe=`echo "tiffio.h" | sed 'y%./+-%__p_%'`
9461echo $ac_n "checking for tiffio.h""... $ac_c" 1>&6
9926e4a4 9462echo "configure:9463: checking for tiffio.h" >&5
4f14bcd8
GD
9463if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9464 echo $ac_n "(cached) $ac_c" 1>&6
9465else
9466 cat > conftest.$ac_ext <<EOF
9926e4a4 9467#line 9468 "configure"
4f14bcd8
GD
9468#include "confdefs.h"
9469#include <tiffio.h>
9470EOF
9471ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9926e4a4 9472{ (eval echo configure:9473: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4f14bcd8
GD
9473ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9474if test -z "$ac_err"; then
9475 rm -rf conftest*
9476 eval "ac_cv_header_$ac_safe=yes"
9477else
9478 echo "$ac_err" >&5
9479 echo "configure: failed program was:" >&5
9480 cat conftest.$ac_ext >&5
9481 rm -rf conftest*
9482 eval "ac_cv_header_$ac_safe=no"
9483fi
9484rm -f conftest*
9485fi
9486if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9487 echo "$ac_t""yes" 1>&6
9488 echo $ac_n "checking for TIFFError in -ltiff""... $ac_c" 1>&6
9926e4a4 9489echo "configure:9490: checking for TIFFError in -ltiff" >&5
4f14bcd8
GD
9490ac_lib_var=`echo tiff'_'TIFFError | sed 'y%./+-%__p_%'`
9491if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9492 echo $ac_n "(cached) $ac_c" 1>&6
9493else
9494 ac_save_LIBS="$LIBS"
9495LIBS="-ltiff -lm $LIBS"
9496cat > conftest.$ac_ext <<EOF
9926e4a4 9497#line 9498 "configure"
4f14bcd8
GD
9498#include "confdefs.h"
9499/* Override any gcc2 internal prototype to avoid an error. */
9500/* We use char because int might match the return type of a gcc2
9501 builtin and then its argument prototype would still apply. */
9502char TIFFError();
9503
9504int main() {
9505TIFFError()
9506; return 0; }
9507EOF
9926e4a4 9508if { (eval echo configure:9509: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4f14bcd8
GD
9509 rm -rf conftest*
9510 eval "ac_cv_lib_$ac_lib_var=yes"
9511else
9512 echo "configure: failed program was:" >&5
9513 cat conftest.$ac_ext >&5
9514 rm -rf conftest*
9515 eval "ac_cv_lib_$ac_lib_var=no"
9516fi
9517rm -f conftest*
9518LIBS="$ac_save_LIBS"
9519
9520fi
9521if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9522 echo "$ac_t""yes" 1>&6
3d63bc3a 9523 TIFF_LINK=" -ltiff"
4f14bcd8
GD
9524else
9525 echo "$ac_t""no" 1>&6
9526fi
9527
9528
9529else
9530 echo "$ac_t""no" 1>&6
9531fi
9532
9533
9534 if test "x$TIFF_LINK" = "x" ; then
9535 if test "$wxUSE_LIBTIFF" = "sys" ; then
9536 { echo "configure: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" 1>&2; exit 1; }
9537 else
a3df447d 9538 echo "configure: warning: system tiff library not found, will use built-in instead" 1>&2
4f14bcd8
GD
9539 wxUSE_LIBTIFF=builtin
9540 fi
9541 else
9542 wxUSE_LIBTIFF=sys
9543 fi
9544 fi
9545
9546 if test "$wxUSE_LIBTIFF" = "builtin" ; then
9547 TIFF_INCLUDE="-I\${top_srcdir}/src/tiff"
9548 fi
9549fi
9550
9551
9552FREETYPE_INCLUDE=
9553FREETYPE_LINK=
9554if test "$wxUSE_FREETYPE" != "no" ; then
9555 cat >> confdefs.h <<\EOF
9556#define wxUSE_FREETYPE 1
9557EOF
9558
9559
9560 if test "$wxUSE_FREETYPE" = "sys" -o "$wxUSE_FREETYPE" = "yes" ; then
9561 ac_safe=`echo "freetype.h" | sed 'y%./+-%__p_%'`
9562echo $ac_n "checking for freetype.h""... $ac_c" 1>&6
9926e4a4 9563echo "configure:9564: checking for freetype.h" >&5
4f14bcd8
GD
9564if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9565 echo $ac_n "(cached) $ac_c" 1>&6
9566else
9567 cat > conftest.$ac_ext <<EOF
9926e4a4 9568#line 9569 "configure"
4f14bcd8
GD
9569#include "confdefs.h"
9570#include <freetype.h>
9571EOF
9572ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9926e4a4 9573{ (eval echo configure:9574: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4f14bcd8
GD
9574ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9575if test -z "$ac_err"; then
9576 rm -rf conftest*
9577 eval "ac_cv_header_$ac_safe=yes"
9578else
9579 echo "$ac_err" >&5
9580 echo "configure: failed program was:" >&5
9581 cat conftest.$ac_ext >&5
9582 rm -rf conftest*
9583 eval "ac_cv_header_$ac_safe=no"
9584fi
9585rm -f conftest*
9586fi
9587if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9588 echo "$ac_t""yes" 1>&6
9589 echo $ac_n "checking for FT_Render_Glyph in -lfreetype""... $ac_c" 1>&6
9926e4a4 9590echo "configure:9591: checking for FT_Render_Glyph in -lfreetype" >&5
4f14bcd8
GD
9591ac_lib_var=`echo freetype'_'FT_Render_Glyph | sed 'y%./+-%__p_%'`
9592if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9593 echo $ac_n "(cached) $ac_c" 1>&6
9594else
9595 ac_save_LIBS="$LIBS"
9596LIBS="-lfreetype -lm $LIBS"
9597cat > conftest.$ac_ext <<EOF
9926e4a4 9598#line 9599 "configure"
4f14bcd8
GD
9599#include "confdefs.h"
9600/* Override any gcc2 internal prototype to avoid an error. */
9601/* We use char because int might match the return type of a gcc2
9602 builtin and then its argument prototype would still apply. */
9603char FT_Render_Glyph();
9604
9605int main() {
9606FT_Render_Glyph()
9607; return 0; }
9608EOF
9926e4a4 9609if { (eval echo configure:9610: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4f14bcd8
GD
9610 rm -rf conftest*
9611 eval "ac_cv_lib_$ac_lib_var=yes"
9612else
9613 echo "configure: failed program was:" >&5
9614 cat conftest.$ac_ext >&5
9615 rm -rf conftest*
9616 eval "ac_cv_lib_$ac_lib_var=no"
9617fi
9618rm -f conftest*
9619LIBS="$ac_save_LIBS"
9620
9621fi
9622if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9623 echo "$ac_t""yes" 1>&6
3d63bc3a 9624 FREETYPE_LINK=" -lfreetype"
4f14bcd8
GD
9625else
9626 echo "$ac_t""no" 1>&6
9627fi
9628
9629
9630else
9631 echo "$ac_t""no" 1>&6
9632fi
9633
9634
9635 if test "x$FREETYPE_LINK" = "x" ; then
9636 if test "$wxUSE_FREETYPE" = "sys" ; then
9637 { echo "configure: error: system freetype library not found! Use --with-freetype=builtin to use built-in version" 1>&2; exit 1; }
9638 else
a3df447d 9639 echo "configure: warning: system freetype library not found, will use built-in instead" 1>&2
4f14bcd8
GD
9640 wxUSE_FREETYPE=builtin
9641 fi
9642 else
9643 wxUSE_FREETYPE=sys
9644 fi
9645 fi
9646
9647 if test "$wxUSE_FREETYPE" = "builtin" ; then
9648 FREETYPE_INCLUDE="-I\${top_srcdir}/src/freetype"
9649 fi
9650fi
9651
9652
9653AFMINSTALL=
9654
9655TOOLKIT=
9656TOOLKIT_INCLUDE=
9657WIDGET_SET=
9658
9659if test "$USE_WIN32" = 1 ; then
9660 for ac_hdr in w32api.h
9661do
9662ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9663echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9926e4a4 9664echo "configure:9665: checking for $ac_hdr" >&5
4f14bcd8
GD
9665if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9666 echo $ac_n "(cached) $ac_c" 1>&6
9667else
9668 cat > conftest.$ac_ext <<EOF
9926e4a4 9669#line 9670 "configure"
4f14bcd8
GD
9670#include "confdefs.h"
9671#include <$ac_hdr>
9672EOF
9673ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9926e4a4 9674{ (eval echo configure:9675: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4f14bcd8
GD
9675ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9676if test -z "$ac_err"; then
9677 rm -rf conftest*
9678 eval "ac_cv_header_$ac_safe=yes"
9679else
9680 echo "$ac_err" >&5
9681 echo "configure: failed program was:" >&5
9682 cat conftest.$ac_ext >&5
9683 rm -rf conftest*
9684 eval "ac_cv_header_$ac_safe=no"
9685fi
9686rm -f conftest*
9687fi
9688if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9689 echo "$ac_t""yes" 1>&6
9690 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9691 cat >> confdefs.h <<EOF
9692#define $ac_tr_hdr 1
9693EOF
9694
9695else
9696 echo "$ac_t""no" 1>&6
9697fi
9698done
9699
9700 ac_safe=`echo "windows.h" | sed 'y%./+-%__p_%'`
9701echo $ac_n "checking for windows.h""... $ac_c" 1>&6
9926e4a4 9702echo "configure:9703: checking for windows.h" >&5
4f14bcd8
GD
9703if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9704 echo $ac_n "(cached) $ac_c" 1>&6
9705else
9706 cat > conftest.$ac_ext <<EOF
9926e4a4 9707#line 9708 "configure"
4f14bcd8
GD
9708#include "confdefs.h"
9709#include <windows.h>
9710EOF
9711ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9926e4a4 9712{ (eval echo configure:9713: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4f14bcd8
GD
9713ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9714if test -z "$ac_err"; then
9715 rm -rf conftest*
9716 eval "ac_cv_header_$ac_safe=yes"
9717else
9718 echo "$ac_err" >&5
9719 echo "configure: failed program was:" >&5
9720 cat conftest.$ac_ext >&5
9721 rm -rf conftest*
9722 eval "ac_cv_header_$ac_safe=no"
9723fi
9724rm -f conftest*
9725fi
9726if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9727 echo "$ac_t""yes" 1>&6
9728 :
9729else
9730 echo "$ac_t""no" 1>&6
9731
9732 { echo "configure: error: please set CFLAGS to contain the location of windows.h" 1>&2; exit 1; }
9733
9734fi
9735
9736
9737 echo $ac_n "checking if w32api has good enough MSIE support""... $ac_c" 1>&6
9926e4a4 9738echo "configure:9739: checking if w32api has good enough MSIE support" >&5
ea7682f0 9739if eval "test \"`echo '$''{'wx_cv_w32api_win32_ie'+set}'`\" = set"; then
4f14bcd8
GD
9740 echo $ac_n "(cached) $ac_c" 1>&6
9741else
9742
9743 cat > conftest.$ac_ext <<EOF
9926e4a4 9744#line 9745 "configure"
4f14bcd8
GD
9745#include "confdefs.h"
9746#include <w32api.h>
9747int main() {
9748
9749 #define wxCHECK_W32API_VERSION( major, minor ) \
9750 ( defined( __W32API_MAJOR_VERSION ) && defined( __W32API_MINOR_VERSION ) \
9751 && ( ( __W32API_MAJOR_VERSION > (major) ) \
9752 || ( __W32API_MAJOR_VERSION == (major) && __W32API_MINOR_VERSION >= (minor))))
9753
9754 #if !wxCHECK_W32API_VERSION(1,1)
9755 #error You need w32api 1.1 or newer
9756 #endif
9757
9758; return 0; }
9759EOF
9926e4a4 9760if { (eval echo configure:9761: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4f14bcd8
GD
9761 rm -rf conftest*
9762
ea7682f0 9763 wx_cv_w32api_win32_ie=yes
4f14bcd8
GD
9764
9765else
9766 echo "configure: failed program was:" >&5
9767 cat conftest.$ac_ext >&5
9768 rm -rf conftest*
9769
ea7682f0 9770 wx_cv_w32api_win32_ie=no
4f14bcd8
GD
9771
9772fi
9773rm -f conftest*
9774
9775fi
9776
ea7682f0
VS
9777echo "$ac_t""$wx_cv_w32api_win32_ie" 1>&6
9778 if test "$wx_cv_w32api_win32_ie" = "yes" ; then
9779 CPPFLAGS="$CPPFLAGS -D_WIN32_IE=0x400"
9780 fi
4f14bcd8
GD
9781
9782 LIBS="$LIBS -lwinspool -lwinmm -lshell32 -lcomctl32 -lctl3d32 -ladvapi32 -lwsock32"
9783
77e13408
RL
9784 case "${host}" in
9785 *-*-cygwin* )
9786 LIBS="$LIBS -lkernel32 -luser32 -lgdi32 -lcomdlg32"
9787 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WIN95__"
9788 esac
4f14bcd8
GD
9789
9790 if test "$wxUSE_ODBC" = "yes" ; then
3d63bc3a 9791 LIBS=" -lodbc32 -lole32 -loleaut32$LIBS"
4f14bcd8
GD
9792 fi
9793
4f14bcd8
GD
9794 RESFLAGS="--include-dir \$(top_srcdir)/include --include-dir \$(top_srcdir)/\$(program_dir) --define __WIN32__ --define __WIN95__ --define __GNUWIN32__"
9795 RESPROGRAMOBJ="\$(PROGRAM)_resources.o"
9796fi
9797
9798if test "$wxUSE_GUI" = "yes"; then
9799 USE_GUI=1
9800
9801 GUI_TK_LIBRARY=
9802
9803 WXGTK12=
9804 WXGTK127=
9805 WXGTK20=
9806
77e13408 9807 if test "$wxUSE_MSW" = 1 ; then
4f14bcd8
GD
9808 TOOLKIT=MSW
9809 GUIDIST=MSW_DIST
77e13408
RL
9810
9811 case "${host}" in
9812 *-*-mingw32* )
3d63bc3a 9813 LDFLAGS="$LDFLAGS -Wl,--subsystem,windows -mwindows"
77e13408 9814 esac
4f14bcd8
GD
9815 fi
9816
9817 if test "$wxUSE_GTK" = 1; then
9818 echo $ac_n "checking for GTK+ version""... $ac_c" 1>&6
9926e4a4 9819echo "configure:9820: checking for GTK+ version" >&5
4f14bcd8
GD
9820
9821 gtk_version_cached=1
9822 if eval "test \"`echo '$''{'wx_cv_lib_gtk'+set}'`\" = set"; then
9823 echo $ac_n "(cached) $ac_c" 1>&6
9824else
9825
9826 gtk_version_cached=0
d48ad9bd 9827 echo "$ac_t""" 1>&6
4f14bcd8
GD
9828
9829 wx_cv_lib_gtk=
9830 if test "x$wxUSE_GTK2" = "xyes"; then
9831 # Check whether --with-gtk-prefix or --without-gtk-prefix was given.
9832if test "${with_gtk_prefix+set}" = set; then
9833 withval="$with_gtk_prefix"
9834 gtk_config_prefix="$withval"
9835else
9836 gtk_config_prefix=""
9837fi
9838
9839# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
9840if test "${with_gtk_exec_prefix+set}" = set; then
9841 withval="$with_gtk_exec_prefix"
9842 gtk_config_exec_prefix="$withval"
9843else
9844 gtk_config_exec_prefix=""
9845fi
9846
9847# Check whether --enable-gtktest or --disable-gtktest was given.
9848if test "${enable_gtktest+set}" = set; then
9849 enableval="$enable_gtktest"
9850 :
9851else
9852 enable_gtktest=yes
9853fi
9854
9855
9856 for module in .
9857 do
6f72b082 9858 case "$module" in
8168de4c 9859 gthread)
6f72b082
OK
9860 gtk_config_args="$gtk_config_args gthread"
9861 ;;
9862 esac
9863 done
9864
9865 if test x$gtk_config_exec_prefix != x ; then
9866 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
9867 if test x${GTK_CONFIG_2_0+set} != xset ; then
9868 GTK_CONFIG_2_0=$gtk_config_exec_prefix/bin/gtk-config-2.0
9869 fi
9870 fi
9871 if test x$gtk_config_prefix != x ; then
9872 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
9873 if test x${GTK_CONFIG_2_0+set} != xset ; then
9874 GTK_CONFIG_2_0=$gtk_config_prefix/bin/gtk-config-2.0
9875 fi
9876 fi
9877
9878 # Extract the first word of "gtk-config-2.0", so it can be a program name with args.
9879set dummy gtk-config-2.0; ac_word=$2
698dcdb6 9880echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
9926e4a4 9881echo "configure:9882: checking for $ac_word" >&5
698dcdb6
VZ
9882if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG_2_0'+set}'`\" = set"; then
9883 echo $ac_n "(cached) $ac_c" 1>&6
6f72b082 9884else
698dcdb6
VZ
9885 case "$GTK_CONFIG_2_0" in
9886 /*)
6f72b082
OK
9887 ac_cv_path_GTK_CONFIG_2_0="$GTK_CONFIG_2_0" # Let the user override the test with a path.
9888 ;;
698dcdb6
VZ
9889 ?:/*)
9890 ac_cv_path_GTK_CONFIG_2_0="$GTK_CONFIG_2_0" # Let the user override the test with a dos path.
9891 ;;
6f72b082 9892 *)
698dcdb6
VZ
9893 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9894 ac_dummy="$PATH"
9895 for ac_dir in $ac_dummy; do
9896 test -z "$ac_dir" && ac_dir=.
9897 if test -f $ac_dir/$ac_word; then
9898 ac_cv_path_GTK_CONFIG_2_0="$ac_dir/$ac_word"
9899 break
9900 fi
9901 done
9902 IFS="$ac_save_ifs"
6f72b082
OK
9903 test -z "$ac_cv_path_GTK_CONFIG_2_0" && ac_cv_path_GTK_CONFIG_2_0="no"
9904 ;;
9905esac
9906fi
698dcdb6 9907GTK_CONFIG_2_0="$ac_cv_path_GTK_CONFIG_2_0"
6f72b082 9908if test -n "$GTK_CONFIG_2_0"; then
698dcdb6 9909 echo "$ac_t""$GTK_CONFIG_2_0" 1>&6
6f72b082 9910else
698dcdb6 9911 echo "$ac_t""no" 1>&6
6f72b082
OK
9912fi
9913
9914 min_gtk_version=1.3.1
698dcdb6 9915 echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
9926e4a4 9916echo "configure:9917: checking for GTK - version >= $min_gtk_version" >&5
6f72b082
OK
9917 no_gtk=""
9918 if test "$GTK_CONFIG_2_0" = "no" ; then
9919 no_gtk=yes
9920 else
9921 GTK_CFLAGS=`$GTK_CONFIG_2_0 $gtk_config_args --cflags`
9922 GTK_LIBS=`$GTK_CONFIG_2_0 $gtk_config_args --libs`
9923 gtk_config_major_version=`$GTK_CONFIG_2_0 $gtk_config_args --version | \
9924 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
9925 gtk_config_minor_version=`$GTK_CONFIG_2_0 $gtk_config_args --version | \
9926 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
9927 gtk_config_micro_version=`$GTK_CONFIG_2_0 $gtk_config_args --version | \
9928 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
9929 if test "x$enable_gtktest" = "xyes" ; then
9930 ac_save_CFLAGS="$CFLAGS"
9931 ac_save_LIBS="$LIBS"
9932 CFLAGS="$CFLAGS $GTK_CFLAGS"
9933 LIBS="$GTK_LIBS $LIBS"
9934 rm -f conf.gtktest
9935 if test "$cross_compiling" = yes; then
9936 echo $ac_n "cross compiling; assumed OK... $ac_c"
9937else
698dcdb6 9938 cat > conftest.$ac_ext <<EOF
9926e4a4 9939#line 9940 "configure"
6f72b082
OK
9940#include "confdefs.h"
9941
9942#include <gtk/gtk.h>
9943#include <stdio.h>
9944#include <stdlib.h>
9945
8168de4c 9946int
6f72b082
OK
9947main ()
9948{
9949 int major, minor, micro;
9950 char *tmp_version;
9951
9952 system ("touch conf.gtktest");
9953
9954 /* HP/UX 9 (%@#!) writes to sscanf strings */
9955 tmp_version = g_strdup("$min_gtk_version");
9956 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
9957 printf("%s, bad version string\n", "$min_gtk_version");
9958 exit(1);
9959 }
9960
9961 if ((gtk_major_version != $gtk_config_major_version) ||
9962 (gtk_minor_version != $gtk_config_minor_version) ||
9963 (gtk_micro_version != $gtk_config_micro_version))
9964 {
8168de4c 9965 printf("\n*** 'gtk-config-2.0 --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
6f72b082
OK
9966 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
9967 gtk_major_version, gtk_minor_version, gtk_micro_version);
9968 printf ("*** was found! If gtk-config-2.0 was correct, then it is best\n");
9969 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
9970 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
9971 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
9972 printf("*** required on your system.\n");
9973 printf("*** If gtk-config-2.0 was wrong, set the environment variable GTK_CONFIG_2_0\n");
9974 printf("*** to point to the correct copy of gtk-config-2.0, and remove the file config.cache\n");
9975 printf("*** before re-running configure\n");
8168de4c 9976 }
6f72b082
OK
9977#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
9978 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
8168de4c 9979 (gtk_minor_version != GTK_MINOR_VERSION) ||
6f72b082
OK
9980 (gtk_micro_version != GTK_MICRO_VERSION))
9981 {
9982 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
8168de4c 9983 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
6f72b082 9984 printf("*** library (version %d.%d.%d)\n",
8168de4c 9985 gtk_major_version, gtk_minor_version, gtk_micro_version);
6f72b082
OK
9986 }
9987#endif /* defined (GTK_MAJOR_VERSION) ... */
9988 else
9989 {
9990 if ((gtk_major_version > major) ||
9991 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
9992 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
9993 {
9994 return 0;
9995 }
9996 else
9997 {
9998 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
9999 gtk_major_version, gtk_minor_version, gtk_micro_version);
10000 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
8168de4c 10001 major, minor, micro);
6f72b082
OK
10002 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
10003 printf("***\n");
10004 printf("*** If you have already installed a sufficiently new version, this error\n");
10005 printf("*** probably means that the wrong copy of the gtk-config-2.0 shell script is\n");
10006 printf("*** being found. The easiest way to fix this is to remove the old version\n");
10007 printf("*** of GTK+, but you can also set the GTK_CONFIG_2_0 environment to point to the\n");
10008 printf("*** correct copy of gtk-config-2.0. (In this case, you will have to\n");
10009 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
10010 printf("*** so that the correct libraries are found at run-time))\n");
10011 }
10012 }
10013 return 1;
10014}
10015
698dcdb6 10016EOF
9926e4a4 10017if { (eval echo configure:10018: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
698dcdb6 10018then
6f72b082
OK
10019 :
10020else
698dcdb6
VZ
10021 echo "configure: failed program was:" >&5
10022 cat conftest.$ac_ext >&5
10023 rm -fr conftest*
10024 no_gtk=yes
6f72b082 10025fi
698dcdb6 10026rm -fr conftest*
6f72b082 10027fi
698dcdb6 10028
6f72b082
OK
10029 CFLAGS="$ac_save_CFLAGS"
10030 LIBS="$ac_save_LIBS"
10031 fi
10032 fi
10033 if test "x$no_gtk" = x ; then
698dcdb6 10034 echo "$ac_t""yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" 1>&6
8168de4c 10035 wx_cv_lib_gtk=2.0
6f72b082 10036 else
698dcdb6 10037 echo "$ac_t""no" 1>&6
6f72b082
OK
10038 if test "$GTK_CONFIG_2_0" = "no" ; then
10039 echo "*** The gtk-config-2.0 script installed by GTK could not be found"
10040 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
10041 echo "*** your path, or set the GTK_CONFIG_2_0 environment variable to the"
10042 echo "*** full path to gtk-config-2.0."
10043 else
10044 if test -f conf.gtktest ; then
10045 :
10046 else
10047 echo "*** Could not run GTK test program, checking why..."
10048 CFLAGS="$CFLAGS $GTK_CFLAGS"
10049 LIBS="$LIBS $GTK_LIBS"
698dcdb6 10050 cat > conftest.$ac_ext <<EOF
9926e4a4 10051#line 10052 "configure"
6f72b082
OK
10052#include "confdefs.h"
10053
10054#include <gtk/gtk.h>
10055#include <stdio.h>
10056
698dcdb6
VZ
10057int main() {
10058 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
10059; return 0; }
10060EOF
9926e4a4 10061if { (eval echo configure:10062: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6 10062 rm -rf conftest*
6f72b082
OK
10063 echo "*** The test program compiled, but did not run. This usually means"
10064 echo "*** that the run-time linker is not finding GTK or finding the wrong"
10065 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
10066 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
10067 echo "*** to the installed location Also, make sure you have run ldconfig if that"
10068 echo "*** is required on your system"
8168de4c 10069 echo "***"
6f72b082
OK
10070 echo "*** If you have an old version installed, it is best to remove it, although"
10071 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
10072 echo "***"
10073 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
10074 echo "*** came with the system with the command"
10075 echo "***"
698dcdb6 10076 echo "*** rpm --erase --nodeps gtk gtk-devel"
6f72b082 10077else
698dcdb6
VZ
10078 echo "configure: failed program was:" >&5
10079 cat conftest.$ac_ext >&5
10080 rm -rf conftest*
10081 echo "*** The test program failed to compile or link. See the file config.log for the"
6f72b082
OK
10082 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
10083 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
698dcdb6 10084 echo "*** may want to edit the gtk-config-2.0 script: $GTK_CONFIG_2_0"
6f72b082 10085fi
698dcdb6 10086rm -f conftest*
6f72b082
OK
10087 CFLAGS="$ac_save_CFLAGS"
10088 LIBS="$ac_save_LIBS"
10089 fi
10090 fi
10091 GTK_CFLAGS=""
10092 GTK_LIBS=""
8168de4c
VZ
10093 gthread
10094 fi
10095
10096
10097 rm -f conf.gtktest
10098
10099 fi
10100
10101 if test -z "$wx_cv_lib_gtk"; then
10102
10f2d63a
VZ
10103 if test x$gtk_config_exec_prefix != x ; then
10104 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
10105 if test x${GTK_CONFIG+set} != xset ; then
10106 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
10107 fi
10108 fi
10109 if test x$gtk_config_prefix != x ; then
10110 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
10111 if test x${GTK_CONFIG+set} != xset ; then
10112 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
10113 fi
10114 fi
10115
10116 # Extract the first word of "gtk-config", so it can be a program name with args.
10117set dummy gtk-config; ac_word=$2
698dcdb6 10118echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
9926e4a4 10119echo "configure:10120: checking for $ac_word" >&5
698dcdb6
VZ
10120if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
10121 echo $ac_n "(cached) $ac_c" 1>&6
f6bcfd97 10122else
698dcdb6
VZ
10123 case "$GTK_CONFIG" in
10124 /*)
f6bcfd97
BP
10125 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
10126 ;;
698dcdb6
VZ
10127 ?:/*)
10128 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path.
10129 ;;
f6bcfd97 10130 *)
698dcdb6
VZ
10131 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
10132 ac_dummy="$PATH"
10133 for ac_dir in $ac_dummy; do
10134 test -z "$ac_dir" && ac_dir=.
10135 if test -f $ac_dir/$ac_word; then
10136 ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
10137 break
10138 fi
10139 done
10140 IFS="$ac_save_ifs"
f6bcfd97
BP
10141 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
10142 ;;
10143esac
10144fi
698dcdb6 10145GTK_CONFIG="$ac_cv_path_GTK_CONFIG"
f6bcfd97 10146if test -n "$GTK_CONFIG"; then
698dcdb6 10147 echo "$ac_t""$GTK_CONFIG" 1>&6
f6bcfd97 10148else
698dcdb6 10149 echo "$ac_t""no" 1>&6
f6bcfd97
BP
10150fi
10151
10152 min_gtk_version=1.2.7
698dcdb6 10153 echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
9926e4a4 10154echo "configure:10155: checking for GTK - version >= $min_gtk_version" >&5
f6bcfd97
BP
10155 no_gtk=""
10156 if test "$GTK_CONFIG" != "no" ; then
10157 GTK_CFLAGS=`$GTK_CONFIG --cflags`
10158 GTK_LIBS=`$GTK_CONFIG --libs gthread`
10159 ac_save_CFLAGS="$CFLAGS"
10160 ac_save_LIBS="$LIBS"
10161 CFLAGS="$CFLAGS $GTK_CFLAGS"
10162 LIBS="$LIBS $GTK_LIBS"
10163 if test "$cross_compiling" = yes; then
10164 echo $ac_n "cross compiling; assumed OK... $ac_c"
10165else
698dcdb6 10166 cat > conftest.$ac_ext <<EOF
9926e4a4 10167#line 10168 "configure"
f6bcfd97
BP
10168#include "confdefs.h"
10169
10170#include <gtk/gtk.h>
10171#include <gtk/gtkfeatures.h>
10172#include <stdio.h>
10173#include <stdlib.h>
10174
10175int
10176main ()
10177{
10178 int major, minor, micro;
10179
10180 if (sscanf("$min_gtk_version", "%d.%d.%d", &major, &minor, &micro) != 3) {
10181 printf("%s, bad version string\n", "$min_gtk_version");
10182 exit(1);
10183 }
10184
10185 if ((GTK_MAJOR_VERSION != gtk_major_version) ||
10186 (GTK_MINOR_VERSION != gtk_minor_version) ||
10187 (GTK_MICRO_VERSION != gtk_micro_version)) {
10188 printf("Headers vs. library version mismatch!\n");
10189 exit(1);
10190 }
10191
10192 if (gtk_minor_version == 1) return FALSE;
10193
10194 return !((gtk_major_version > major) ||
10195 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
10196 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)));
10197}
10198
698dcdb6 10199EOF
9926e4a4 10200if { (eval echo configure:10201: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
698dcdb6 10201then
f6bcfd97
BP
10202 :
10203else
698dcdb6
VZ
10204 echo "configure: failed program was:" >&5
10205 cat conftest.$ac_ext >&5
10206 rm -fr conftest*
10207 no_gtk=yes
f6bcfd97 10208fi
698dcdb6 10209rm -fr conftest*
f6bcfd97 10210fi
698dcdb6 10211
f6bcfd97
BP
10212 CFLAGS="$ac_save_CFLAGS"
10213 LIBS="$ac_save_LIBS"
10214 else
10215 no_gtk=yes
10216 fi
10217 if test "x$no_gtk" = x ; then
698dcdb6 10218 echo "$ac_t""yes" 1>&6
8168de4c 10219 wx_cv_lib_gtk=1.2.7
f6bcfd97 10220 else
698dcdb6 10221 echo "$ac_t""no" 1>&6
f6bcfd97
BP
10222 GTK_CFLAGS=""
10223 GTK_LIBS=""
10224 :
10225 fi
698dcdb6
VZ
10226
10227
f6bcfd97 10228
8168de4c
VZ
10229 fi
10230
10231 if test -z "$wx_cv_lib_gtk"; then
10232
f6bcfd97
BP
10233 if test x$gtk_config_exec_prefix != x ; then
10234 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
10235 if test x${GTK_CONFIG+set} != xset ; then
10236 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
10237 fi
10238 fi
10239 if test x$gtk_config_prefix != x ; then
10240 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
10241 if test x${GTK_CONFIG+set} != xset ; then
10242 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
10243 fi
10244 fi
10245
10246 # Extract the first word of "gtk-config", so it can be a program name with args.
10247set dummy gtk-config; ac_word=$2
698dcdb6 10248echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
9926e4a4 10249echo "configure:10250: checking for $ac_word" >&5
698dcdb6
VZ
10250if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
10251 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 10252else
698dcdb6
VZ
10253 case "$GTK_CONFIG" in
10254 /*)
10f2d63a
VZ
10255 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
10256 ;;
698dcdb6
VZ
10257 ?:/*)
10258 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path.
10259 ;;
10f2d63a 10260 *)
698dcdb6
VZ
10261 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
10262 ac_dummy="$PATH"
10263 for ac_dir in $ac_dummy; do
10264 test -z "$ac_dir" && ac_dir=.
10265 if test -f $ac_dir/$ac_word; then
10266 ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
10267 break
10268 fi
10269 done
10270 IFS="$ac_save_ifs"
10f2d63a
VZ
10271 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
10272 ;;
10273esac
10274fi
698dcdb6 10275GTK_CONFIG="$ac_cv_path_GTK_CONFIG"
10f2d63a 10276if test -n "$GTK_CONFIG"; then
698dcdb6 10277 echo "$ac_t""$GTK_CONFIG" 1>&6
10f2d63a 10278else
698dcdb6 10279 echo "$ac_t""no" 1>&6
10f2d63a
VZ
10280fi
10281
04165bec 10282 min_gtk_version=1.2.3
698dcdb6 10283 echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
9926e4a4 10284echo "configure:10285: checking for GTK - version >= $min_gtk_version" >&5
10f2d63a
VZ
10285 no_gtk=""
10286 if test "$GTK_CONFIG" != "no" ; then
10287 GTK_CFLAGS=`$GTK_CONFIG --cflags`
2224580a 10288 GTK_LIBS=`$GTK_CONFIG --libs gthread`
10f2d63a
VZ
10289 ac_save_CFLAGS="$CFLAGS"
10290 ac_save_LIBS="$LIBS"
10291 CFLAGS="$CFLAGS $GTK_CFLAGS"
10292 LIBS="$LIBS $GTK_LIBS"
10293 if test "$cross_compiling" = yes; then
10294 echo $ac_n "cross compiling; assumed OK... $ac_c"
10295else
698dcdb6 10296 cat > conftest.$ac_ext <<EOF
9926e4a4 10297#line 10298 "configure"
10f2d63a
VZ
10298#include "confdefs.h"
10299
10300#include <gtk/gtk.h>
f49f2b0c 10301#include <gtk/gtkfeatures.h>
10f2d63a 10302#include <stdio.h>
32832908 10303#include <stdlib.h>
10f2d63a
VZ
10304
10305int
10306main ()
10307{
10308 int major, minor, micro;
10309
10310 if (sscanf("$min_gtk_version", "%d.%d.%d", &major, &minor, &micro) != 3) {
10311 printf("%s, bad version string\n", "$min_gtk_version");
10312 exit(1);
10313 }
10314
f49f2b0c
RR
10315 if ((GTK_MAJOR_VERSION != gtk_major_version) ||
10316 (GTK_MINOR_VERSION != gtk_minor_version) ||
10317 (GTK_MICRO_VERSION != gtk_micro_version)) {
10318 printf("Headers vs. library version mismatch!\n");
10319 exit(1);
10320 }
10321
10f2d63a
VZ
10322 if (gtk_minor_version == 1) return FALSE;
10323
10324 return !((gtk_major_version > major) ||
10325 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
10326 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)));
10327}
10328
698dcdb6 10329EOF
9926e4a4 10330if { (eval echo configure:10331: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
698dcdb6 10331then
10f2d63a
VZ
10332 :
10333else
698dcdb6
VZ
10334 echo "configure: failed program was:" >&5
10335 cat conftest.$ac_ext >&5
10336 rm -fr conftest*
10337 no_gtk=yes
10f2d63a 10338fi
698dcdb6 10339rm -fr conftest*
10f2d63a 10340fi
698dcdb6 10341
10f2d63a
VZ
10342 CFLAGS="$ac_save_CFLAGS"
10343 LIBS="$ac_save_LIBS"
10344 else
10345 no_gtk=yes
10346 fi
10347 if test "x$no_gtk" = x ; then
698dcdb6 10348 echo "$ac_t""yes" 1>&6
8168de4c 10349 wx_cv_lib_gtk=1.2.3
10f2d63a 10350 else
698dcdb6 10351 echo "$ac_t""no" 1>&6
10f2d63a
VZ
10352 GTK_CFLAGS=""
10353 GTK_LIBS=""
7e99ad86 10354 :
10f2d63a 10355 fi
698dcdb6
VZ
10356
10357
10f2d63a 10358
8168de4c
VZ
10359 fi
10360
10361 if test -z "$wx_cv_lib_gtk"; then
10362 wx_cv_lib_gtk=none
138be253
VZ
10363 else
10364 wx_cv_cflags_gtk=$GTK_CFLAGS
10365 wx_cv_libs_gtk=$GTK_LIBS
8168de4c
VZ
10366 fi
10367
1e6feb95 10368
8168de4c 10369fi
703e0a69 10370
698dcdb6 10371
8168de4c
VZ
10372 if test "$gtk_version_cached" = 1; then
10373 echo "$ac_t""$wx_cv_lib_gtk" 1>&6
1e6feb95 10374 fi
698dcdb6 10375
8168de4c
VZ
10376 case "$wx_cv_lib_gtk" in
10377 2.0) WXGTK20=1
10378 ;;
10379 1.2.7) WXGTK127=1
d1a8d972 10380 WXGTK12=1
8168de4c
VZ
10381 ;;
10382 1.2.3) WXGTK12=1
10383 ;;
10384 *) { echo "configure: error:
10385Please check that gtk-config is in path, the directory
10386where GTK+ libraries are installed (returned by
10387'gtk-config --libs' command) is in LD_LIBRARY_PATH or
10388equivalent variable and GTK+ is version 1.2.3 or above.
10389 " 1>&2; exit 1; }
10390 ;;
10391 esac
2224580a 10392
138be253 10393 TOOLKIT_INCLUDE="$wx_cv_cflags_gtk"
11dfaa5f 10394 GUI_TK_LIBRARY="$wx_cv_libs_gtk"
698dcdb6 10395
1e6feb95
VZ
10396 AFMINSTALL=afminstall
10397 TOOLKIT=GTK
10398 GUIDIST=GTK_DIST
7ec2881a 10399
1e6feb95 10400 echo $ac_n "checking for gdk_im_open in -lgdk""... $ac_c" 1>&6
9926e4a4 10401echo "configure:10402: checking for gdk_im_open in -lgdk" >&5
698dcdb6
VZ
10402ac_lib_var=`echo gdk'_'gdk_im_open | sed 'y%./+-%__p_%'`
10403if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10404 echo $ac_n "(cached) $ac_c" 1>&6
7ec2881a 10405else
698dcdb6 10406 ac_save_LIBS="$LIBS"
7ec2881a 10407LIBS="-lgdk $LIBS"
698dcdb6 10408cat > conftest.$ac_ext <<EOF
9926e4a4 10409#line 10410 "configure"
7ec2881a
RR
10410#include "confdefs.h"
10411/* Override any gcc2 internal prototype to avoid an error. */
10412/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
10413 builtin and then its argument prototype would still apply. */
10414char gdk_im_open();
10415
10416int main() {
10417gdk_im_open()
10418; return 0; }
10419EOF
9926e4a4 10420if { (eval echo configure:10421: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
10421 rm -rf conftest*
10422 eval "ac_cv_lib_$ac_lib_var=yes"
10423else
10424 echo "configure: failed program was:" >&5
10425 cat conftest.$ac_ext >&5
10426 rm -rf conftest*
10427 eval "ac_cv_lib_$ac_lib_var=no"
10428fi
10429rm -f conftest*
10430LIBS="$ac_save_LIBS"
10431
10432fi
10433if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10434 echo "$ac_t""yes" 1>&6
10435 cat >> confdefs.h <<\EOF
7ec2881a
RR
10436#define HAVE_XIM 1
10437EOF
10438
698dcdb6
VZ
10439else
10440 echo "$ac_t""no" 1>&6
7ec2881a
RR
10441fi
10442
1e6feb95 10443 fi
10f2d63a 10444
1e6feb95
VZ
10445 if test "$wxUSE_MGL" = 1; then
10446
10447 echo $ac_n "checking for SciTech MGL library""... $ac_c" 1>&6
9926e4a4 10448echo "configure:10449: checking for SciTech MGL library" >&5
1e6feb95
VZ
10449 if test "x$MGL_ROOT" = x ; then
10450 echo "$ac_t""not found" 1>&6
10451 { echo "configure: error: Cannot find MGL library. Make sure MGL_ROOT is set." 1>&2; exit 1; }
10452 else
10453 echo "$ac_t""$MGL_ROOT" 1>&6
10454 fi
10455
3a922bb4
RL
10456 mgl_os=linux/gcc/glibc
10457 mgl_lib_type=""
1e6feb95
VZ
10458
10459 if test "$wxUSE_DEBUG_FLAG" = yes ; then
223e7fbf
VS
10460 if test -f $MGL_ROOT/lib/debug/$mgl_os/libmgl.a -o \
10461 -f $MGL_ROOT/lib/debug/$mgl_os/libmgl.so; then
3a922bb4 10462 mgl_lib_type=debug
1e6feb95
VZ
10463 fi
10464 fi
3a922bb4 10465 if test "x$mgl_lib_type" = x ; then
223e7fbf
VS
10466 if test -f $MGL_ROOT/lib/release/$mgl_os/libmgl.a -o \
10467 -f $MGL_ROOT/lib/release/$mgl_os/libmgl.so; then
3a922bb4 10468 mgl_lib_type=release
1e6feb95
VZ
10469 else
10470 { echo "configure: error: Cannot find MGL libraries, make sure they are compiled." 1>&2; exit 1; }
10471 fi
10472 fi
10473
10474 TOOLKIT_INCLUDE="-I$MGL_ROOT/include"
3a922bb4 10475 GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$mgl_lib_type/$mgl_os -lmgl -lmglcpp -lpm"
1e6feb95
VZ
10476
10477 AFMINSTALL=afminstall
10478 TOOLKIT=MGL
10479 GUIDIST=MGL_DIST
10480 fi
10481
10482 if test "$wxUSE_WINE" = 1; then
3a922bb4
RL
10483 ac_safe=`echo "windows.h" | sed 'y%./+-%__p_%'`
10484echo $ac_n "checking for windows.h""... $ac_c" 1>&6
9926e4a4 10485echo "configure:10486: checking for windows.h" >&5
3a922bb4
RL
10486if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10487 echo $ac_n "(cached) $ac_c" 1>&6
10488else
10489 cat > conftest.$ac_ext <<EOF
9926e4a4 10490#line 10491 "configure"
3a922bb4
RL
10491#include "confdefs.h"
10492#include <windows.h>
10493EOF
10494ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9926e4a4 10495{ (eval echo configure:10496: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3a922bb4
RL
10496ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10497if test -z "$ac_err"; then
10498 rm -rf conftest*
10499 eval "ac_cv_header_$ac_safe=yes"
10500else
10501 echo "$ac_err" >&5
10502 echo "configure: failed program was:" >&5
10503 cat conftest.$ac_ext >&5
10504 rm -rf conftest*
10505 eval "ac_cv_header_$ac_safe=no"
10506fi
10507rm -f conftest*
10508fi
10509if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10510 echo "$ac_t""yes" 1>&6
10511 :
10512else
10513 echo "$ac_t""no" 1>&6
10f2d63a 10514
1e6feb95 10515 { echo "configure: error: please set CFLAGS to contain the location of windows.h" 1>&2; exit 1; }
3a922bb4
RL
10516
10517fi
10518
10f2d63a 10519
3d63bc3a 10520 xpm_link=
1e6feb95 10521 echo $ac_n "checking for Xpm library""... $ac_c" 1>&6
9926e4a4 10522echo "configure:10523: checking for Xpm library" >&5
1e6feb95 10523
10f2d63a
VZ
10524ac_find_libraries=
10525for ac_dir in $SEARCH_LIB;
10526 do
f11bdd03 10527 for ac_extension in a so sl dylib; do
10f2d63a
VZ
10528 if test -f "$ac_dir/libXpm.$ac_extension"; then
10529 ac_find_libraries=$ac_dir
10530 break 2
10531 fi
10532 done
10533 done
10534
1e6feb95
VZ
10535 if test "$ac_find_libraries" != "" ; then
10536 GUI_TK_LIBRARY="-L$ac_find_libraries"
3d63bc3a 10537 xpm_link=" -lXpm"
1e6feb95 10538 cat >> confdefs.h <<\EOF
10f2d63a
VZ
10539#define wxHAVE_LIB_XPM 1
10540EOF
10541
1e6feb95
VZ
10542 echo "$ac_t""found at $ac_find_libraries" 1>&6
10543 else
10544 echo "$ac_t""no" 1>&6
10545 echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2
10546 fi
10f2d63a 10547
3d63bc3a 10548 mesa_link=
1e6feb95 10549 echo $ac_n "checking for Mesa library""... $ac_c" 1>&6
9926e4a4 10550echo "configure:10551: checking for Mesa library" >&5
1e6feb95 10551
10f2d63a
VZ
10552ac_find_libraries=
10553for ac_dir in $SEARCH_LIB;
10554 do
f11bdd03 10555 for ac_extension in a so sl dylib; do
10f2d63a
VZ
10556 if test -f "$ac_dir/libMesaGL.$ac_extension"; then
10557 ac_find_libraries=$ac_dir
10558 break 2
10559 fi
10560 done
10561 done
10562
1e6feb95
VZ
10563 if test "$ac_find_libraries" != "" ; then
10564 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -L$ac_find_libraries"
3d63bc3a 10565 mesa_link=" -lMesaGL"
1e6feb95
VZ
10566 echo "$ac_t""found at $ac_find_libraries" 1>&6
10567 else
10568 { echo "configure: error: no" 1>&2; exit 1; }
10569 fi
10f2d63a 10570
3d63bc3a 10571 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lwine$mesa_link$xpm_link -lXxf86dga -lXxf86vm -lSM -lICE -lXext -lXmu -lX11 -lncurses"
1e6feb95
VZ
10572 TOOLKIT=MSW
10573 GUIDIST=MSW_DIST
3a922bb4 10574 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXWINE__"
1e6feb95 10575 fi
698dcdb6 10576
d714471b
VZ
10577 if test "$wxUSE_MOTIF" = 1; then
10578 # If we find X, set shell vars x_includes and x_libraries to the
698dcdb6
VZ
10579# paths, otherwise set no_x=yes.
10580# Uses ac_ vars as temps to allow command line to override cache and checks.
10581# --without-x overrides everything else, but does not touch the cache.
10582echo $ac_n "checking for X""... $ac_c" 1>&6
9926e4a4 10583echo "configure:10584: checking for X" >&5
ab9b9eab
VZ
10584
10585# Check whether --with-x or --without-x was given.
10586if test "${with_x+set}" = set; then
10587 withval="$with_x"
698dcdb6
VZ
10588 :
10589fi
ba337fe7 10590
ab9b9eab
VZ
10591# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
10592if test "x$with_x" = xno; then
10593 # The user explicitly disabled X.
10594 have_x=disabled
10595else
10596 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
10597 # Both variables are already set.
10598 have_x=yes
10599 else
698dcdb6
VZ
10600if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
10601 echo $ac_n "(cached) $ac_c" 1>&6
ab9b9eab
VZ
10602else
10603 # One or both of the vars are not set, and there is no cached value.
698dcdb6
VZ
10604ac_x_includes=NO ac_x_libraries=NO
10605rm -fr conftestdir
10606if mkdir conftestdir; then
10607 cd conftestdir
ab9b9eab 10608 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
698dcdb6 10609 cat > Imakefile <<'EOF'
ab9b9eab
VZ
10610acfindx:
10611 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
10612EOF
10613 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
10614 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
10615 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
10616 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
10f2d63a 10617 for ac_extension in a so sl; do
ab9b9eab 10618 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
698dcdb6 10619 test -f $ac_im_libdir/libX11.$ac_extension; then
ab9b9eab 10620 ac_im_usrlibdir=$ac_im_libdir; break
10f2d63a
VZ
10621 fi
10622 done
ab9b9eab
VZ
10623 # Screen out bogus values from the imake configuration. They are
10624 # bogus both because they are the default anyway, and because
10625 # using them would break gcc on systems where it needs fixed includes.
698dcdb6 10626 case "$ac_im_incroot" in
ab9b9eab 10627 /usr/include) ;;
698dcdb6 10628 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
ab9b9eab 10629 esac
698dcdb6 10630 case "$ac_im_usrlibdir" in
ab9b9eab 10631 /usr/lib | /lib) ;;
698dcdb6 10632 *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
ab9b9eab 10633 esac
ba337fe7 10634 fi
ab9b9eab 10635 cd ..
698dcdb6 10636 rm -fr conftestdir
ab9b9eab 10637fi
10f2d63a 10638
698dcdb6
VZ
10639if test "$ac_x_includes" = NO; then
10640 # Guess where to find include files, by looking for this one X11 .h file.
10641 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
10642
ab9b9eab 10643 # First, try using that file with no special directory specified.
698dcdb6 10644cat > conftest.$ac_ext <<EOF
9926e4a4 10645#line 10646 "configure"
ab9b9eab 10646#include "confdefs.h"
698dcdb6
VZ
10647#include <$x_direct_test_include>
10648EOF
10649ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9926e4a4 10650{ (eval echo configure:10651: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
10651ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10652if test -z "$ac_err"; then
10653 rm -rf conftest*
ab9b9eab
VZ
10654 # We can compile using X headers with no special include directory.
10655ac_x_includes=
10656else
698dcdb6
VZ
10657 echo "$ac_err" >&5
10658 echo "configure: failed program was:" >&5
ab9b9eab 10659 cat conftest.$ac_ext >&5
698dcdb6
VZ
10660 rm -rf conftest*
10661 # Look for the header file in a standard set of common directories.
10662# Check X11 before X11Rn because it is often a symlink to the current release.
10663 for ac_dir in \
10664 /usr/X11/include \
10665 /usr/X11R6/include \
10666 /usr/X11R5/include \
10667 /usr/X11R4/include \
10668 \
10669 /usr/include/X11 \
10670 /usr/include/X11R6 \
10671 /usr/include/X11R5 \
10672 /usr/include/X11R4 \
10673 \
10674 /usr/local/X11/include \
10675 /usr/local/X11R6/include \
10676 /usr/local/X11R5/include \
10677 /usr/local/X11R4/include \
10678 \
10679 /usr/local/include/X11 \
10680 /usr/local/include/X11R6 \
10681 /usr/local/include/X11R5 \
10682 /usr/local/include/X11R4 \
10683 \
10684 /usr/X386/include \
10685 /usr/x386/include \
10686 /usr/XFree86/include/X11 \
10687 \
10688 /usr/include \
10689 /usr/local/include \
10690 /usr/unsupported/include \
10691 /usr/athena/include \
10692 /usr/local/x11r5/include \
10693 /usr/lpp/Xamples/include \
10694 \
10695 /usr/openwin/include \
10696 /usr/openwin/share/include \
10697 ; \
10698 do
10699 if test -r "$ac_dir/$x_direct_test_include"; then
10700 ac_x_includes=$ac_dir
10701 break
10702 fi
10703 done
ab9b9eab 10704fi
698dcdb6
VZ
10705rm -f conftest*
10706fi # $ac_x_includes = NO
10f2d63a 10707
698dcdb6 10708if test "$ac_x_libraries" = NO; then
ab9b9eab 10709 # Check for the libraries.
698dcdb6
VZ
10710
10711 test -z "$x_direct_test_library" && x_direct_test_library=Xt
10712 test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
10713
ab9b9eab
VZ
10714 # See if we find them without any special options.
10715 # Don't add to $LIBS permanently.
698dcdb6
VZ
10716 ac_save_LIBS="$LIBS"
10717 LIBS="-l$x_direct_test_library $LIBS"
10718cat > conftest.$ac_ext <<EOF
9926e4a4 10719#line 10720 "configure"
ab9b9eab 10720#include "confdefs.h"
698dcdb6
VZ
10721
10722int main() {
10723${x_direct_test_function}()
10724; return 0; }
10725EOF
9926e4a4 10726if { (eval echo configure:10727: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
10727 rm -rf conftest*
10728 LIBS="$ac_save_LIBS"
ab9b9eab
VZ
10729# We can link X programs with no special library path.
10730ac_x_libraries=
10731else
698dcdb6
VZ
10732 echo "configure: failed program was:" >&5
10733 cat conftest.$ac_ext >&5
10734 rm -rf conftest*
10735 LIBS="$ac_save_LIBS"
10736# First see if replacing the include by lib works.
10737# Check X11 before X11Rn because it is often a symlink to the current release.
10738for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
10739 /usr/X11/lib \
10740 /usr/X11R6/lib \
10741 /usr/X11R5/lib \
10742 /usr/X11R4/lib \
10743 \
10744 /usr/lib/X11 \
10745 /usr/lib/X11R6 \
10746 /usr/lib/X11R5 \
10747 /usr/lib/X11R4 \
10748 \
10749 /usr/local/X11/lib \
10750 /usr/local/X11R6/lib \
10751 /usr/local/X11R5/lib \
10752 /usr/local/X11R4/lib \
10753 \
10754 /usr/local/lib/X11 \
10755 /usr/local/lib/X11R6 \
10756 /usr/local/lib/X11R5 \
10757 /usr/local/lib/X11R4 \
10758 \
10759 /usr/X386/lib \
10760 /usr/x386/lib \
10761 /usr/XFree86/lib/X11 \
10762 \
10763 /usr/lib \
10764 /usr/local/lib \
10765 /usr/unsupported/lib \
10766 /usr/athena/lib \
10767 /usr/local/x11r5/lib \
10768 /usr/lpp/Xamples/lib \
10769 /lib/usr/lib/X11 \
10770 \
10771 /usr/openwin/lib \
10772 /usr/openwin/share/lib \
10773 ; \
ab9b9eab
VZ
10774do
10775 for ac_extension in a so sl; do
698dcdb6 10776 if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
ab9b9eab
VZ
10777 ac_x_libraries=$ac_dir
10778 break 2
10f2d63a 10779 fi
10f2d63a 10780 done
ab9b9eab
VZ
10781done
10782fi
698dcdb6
VZ
10783rm -f conftest*
10784fi # $ac_x_libraries = NO
10f2d63a 10785
698dcdb6 10786if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
ab9b9eab
VZ
10787 # Didn't find X anywhere. Cache the known absence of X.
10788 ac_cv_have_x="have_x=no"
10789else
10790 # Record where we found X for the cache.
10791 ac_cv_have_x="have_x=yes \
10792 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
10793fi
10794fi
10f2d63a 10795 fi
ab9b9eab
VZ
10796 eval "$ac_cv_have_x"
10797fi # $with_x != no
10f2d63a 10798
ab9b9eab 10799if test "$have_x" != yes; then
698dcdb6 10800 echo "$ac_t""$have_x" 1>&6
ab9b9eab
VZ
10801 no_x=yes
10802else
10803 # If each of the values was on the command line, it overrides each guess.
10804 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
10805 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
10806 # Update the cache value to reflect the command line values.
10807 ac_cv_have_x="have_x=yes \
10808 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
698dcdb6 10809 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
ab9b9eab 10810fi
10f2d63a 10811
ab9b9eab
VZ
10812if test "$no_x" = yes; then
10813 # Not all programs may use this symbol, but it does not hurt to define it.
698dcdb6 10814 cat >> confdefs.h <<\EOF
ab9b9eab
VZ
10815#define X_DISPLAY_MISSING 1
10816EOF
10f2d63a 10817
ab9b9eab
VZ
10818 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
10819else
10820 if test -n "$x_includes"; then
10821 X_CFLAGS="$X_CFLAGS -I$x_includes"
10f2d63a
VZ
10822 fi
10823
ab9b9eab
VZ
10824 # It would also be nice to do this for all -L options, not just this one.
10825 if test -n "$x_libraries"; then
10826 X_LIBS="$X_LIBS -L$x_libraries"
10827 # For Solaris; some versions of Sun CC require a space after -R and
10828 # others require no space. Words are not sufficient . . . .
698dcdb6 10829 case "`(uname -sr) 2>/dev/null`" in
ab9b9eab 10830 "SunOS 5"*)
698dcdb6 10831 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
9926e4a4 10832echo "configure:10833: checking whether -R must be followed by a space" >&5
698dcdb6
VZ
10833 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
10834 cat > conftest.$ac_ext <<EOF
9926e4a4 10835#line 10836 "configure"
ab9b9eab 10836#include "confdefs.h"
10f2d63a 10837
698dcdb6 10838int main() {
788deba1 10839
698dcdb6
VZ
10840; return 0; }
10841EOF
9926e4a4 10842if { (eval echo configure:10843: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6 10843 rm -rf conftest*
ab9b9eab
VZ
10844 ac_R_nospace=yes
10845else
698dcdb6
VZ
10846 echo "configure: failed program was:" >&5
10847 cat conftest.$ac_ext >&5
10848 rm -rf conftest*
10849 ac_R_nospace=no
ab9b9eab 10850fi
698dcdb6 10851rm -f conftest*
ab9b9eab 10852 if test $ac_R_nospace = yes; then
698dcdb6 10853 echo "$ac_t""no" 1>&6
ab9b9eab
VZ
10854 X_LIBS="$X_LIBS -R$x_libraries"
10855 else
10856 LIBS="$ac_xsave_LIBS -R $x_libraries"
698dcdb6 10857 cat > conftest.$ac_ext <<EOF
9926e4a4 10858#line 10859 "configure"
ab9b9eab 10859#include "confdefs.h"
788deba1 10860
698dcdb6 10861int main() {
ab9b9eab 10862
698dcdb6
VZ
10863; return 0; }
10864EOF
9926e4a4 10865if { (eval echo configure:10866: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6 10866 rm -rf conftest*
ab9b9eab
VZ
10867 ac_R_space=yes
10868else
698dcdb6
VZ
10869 echo "configure: failed program was:" >&5
10870 cat conftest.$ac_ext >&5
10871 rm -rf conftest*
10872 ac_R_space=no
ab9b9eab 10873fi
698dcdb6 10874rm -f conftest*
ab9b9eab 10875 if test $ac_R_space = yes; then
698dcdb6 10876 echo "$ac_t""yes" 1>&6
ab9b9eab
VZ
10877 X_LIBS="$X_LIBS -R $x_libraries"
10878 else
698dcdb6 10879 echo "$ac_t""neither works" 1>&6
ab9b9eab
VZ
10880 fi
10881 fi
698dcdb6 10882 LIBS="$ac_xsave_LIBS"
ab9b9eab
VZ
10883 esac
10884 fi
10885
10886 # Check for system-dependent libraries X programs must link with.
10887 # Do this before checking for the system-independent R6 libraries
10888 # (-lICE), since we may need -lsocket or whatever for X linking.
10889
10890 if test "$ISC" = yes; then
10891 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
10892 else
698dcdb6
VZ
10893 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
10894 # libraries were built with DECnet support. And karl@cs.umb.edu says
ab9b9eab 10895 # the Alpha needs dnet_stub (dnet does not exist).
698dcdb6 10896 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
9926e4a4 10897echo "configure:10898: checking for dnet_ntoa in -ldnet" >&5
698dcdb6
VZ
10898ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
10899if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10900 echo $ac_n "(cached) $ac_c" 1>&6
ab9b9eab 10901else
698dcdb6 10902 ac_save_LIBS="$LIBS"
ab9b9eab 10903LIBS="-ldnet $LIBS"
698dcdb6 10904cat > conftest.$ac_ext <<EOF
9926e4a4 10905#line 10906 "configure"
ab9b9eab
VZ
10906#include "confdefs.h"
10907/* Override any gcc2 internal prototype to avoid an error. */
10908/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
10909 builtin and then its argument prototype would still apply. */
10910char dnet_ntoa();
10911
10912int main() {
10913dnet_ntoa()
10914; return 0; }
10915EOF
9926e4a4 10916if { (eval echo configure:10917: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
10917 rm -rf conftest*
10918 eval "ac_cv_lib_$ac_lib_var=yes"
10919else
10920 echo "configure: failed program was:" >&5
10921 cat conftest.$ac_ext >&5
10922 rm -rf conftest*
10923 eval "ac_cv_lib_$ac_lib_var=no"
10924fi
10925rm -f conftest*
10926LIBS="$ac_save_LIBS"
10927
10928fi
10929if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10930 echo "$ac_t""yes" 1>&6
ab9b9eab 10931 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
698dcdb6
VZ
10932else
10933 echo "$ac_t""no" 1>&6
ab9b9eab
VZ
10934fi
10935
10936 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
698dcdb6 10937 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
9926e4a4 10938echo "configure:10939: checking for dnet_ntoa in -ldnet_stub" >&5
698dcdb6
VZ
10939ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
10940if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10941 echo $ac_n "(cached) $ac_c" 1>&6
ab9b9eab 10942else
698dcdb6 10943 ac_save_LIBS="$LIBS"
ab9b9eab 10944LIBS="-ldnet_stub $LIBS"
698dcdb6 10945cat > conftest.$ac_ext <<EOF
9926e4a4 10946#line 10947 "configure"
ab9b9eab
VZ
10947#include "confdefs.h"
10948/* Override any gcc2 internal prototype to avoid an error. */
10949/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
10950 builtin and then its argument prototype would still apply. */
10951char dnet_ntoa();
10952
10953int main() {
10954dnet_ntoa()
10955; return 0; }
10956EOF
9926e4a4 10957if { (eval echo configure:10958: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
10958 rm -rf conftest*
10959 eval "ac_cv_lib_$ac_lib_var=yes"
10960else
10961 echo "configure: failed program was:" >&5
10962 cat conftest.$ac_ext >&5
10963 rm -rf conftest*
10964 eval "ac_cv_lib_$ac_lib_var=no"
10965fi
10966rm -f conftest*
10967LIBS="$ac_save_LIBS"
10968
10969fi
10970if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10971 echo "$ac_t""yes" 1>&6
ab9b9eab 10972 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
698dcdb6
VZ
10973else
10974 echo "$ac_t""no" 1>&6
ab9b9eab
VZ
10975fi
10976
10977 fi
10978
10979 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
10980 # to get the SysV transport functions.
698dcdb6 10981 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
ab9b9eab
VZ
10982 # needs -lnsl.
10983 # The nsl library prevents programs from opening the X display
698dcdb6
VZ
10984 # on Irix 5.2, according to dickey@clark.net.
10985 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
9926e4a4 10986echo "configure:10987: checking for gethostbyname" >&5
698dcdb6
VZ
10987if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
10988 echo $ac_n "(cached) $ac_c" 1>&6
10989else
10990 cat > conftest.$ac_ext <<EOF
9926e4a4 10991#line 10992 "configure"
ab9b9eab
VZ
10992#include "confdefs.h"
10993/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 10994 which can conflict with char gethostbyname(); below. */
ab9b9eab
VZ
10995#include <assert.h>
10996/* Override any gcc2 internal prototype to avoid an error. */
10997/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
10998 builtin and then its argument prototype would still apply. */
10999char gethostbyname();
11000
11001int main() {
ab9b9eab
VZ
11002
11003/* The GNU C library defines this for functions which it implements
11004 to always fail with ENOSYS. Some functions are actually named
11005 something starting with __ and the normal name is an alias. */
11006#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
11007choke me
11008#else
698dcdb6 11009gethostbyname();
ab9b9eab
VZ
11010#endif
11011
698dcdb6
VZ
11012; return 0; }
11013EOF
9926e4a4 11014if { (eval echo configure:11015: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
11015 rm -rf conftest*
11016 eval "ac_cv_func_gethostbyname=yes"
11017else
11018 echo "configure: failed program was:" >&5
11019 cat conftest.$ac_ext >&5
11020 rm -rf conftest*
11021 eval "ac_cv_func_gethostbyname=no"
11022fi
11023rm -f conftest*
11024fi
11025
11026if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
11027 echo "$ac_t""yes" 1>&6
11028 :
11029else
11030 echo "$ac_t""no" 1>&6
11031fi
ab9b9eab
VZ
11032
11033 if test $ac_cv_func_gethostbyname = no; then
698dcdb6 11034 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
9926e4a4 11035echo "configure:11036: checking for gethostbyname in -lnsl" >&5
698dcdb6
VZ
11036ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
11037if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11038 echo $ac_n "(cached) $ac_c" 1>&6
ab9b9eab 11039else
698dcdb6 11040 ac_save_LIBS="$LIBS"
ab9b9eab 11041LIBS="-lnsl $LIBS"
698dcdb6 11042cat > conftest.$ac_ext <<EOF
9926e4a4 11043#line 11044 "configure"
ab9b9eab
VZ
11044#include "confdefs.h"
11045/* Override any gcc2 internal prototype to avoid an error. */
11046/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
11047 builtin and then its argument prototype would still apply. */
11048char gethostbyname();
6232543b 11049
698dcdb6
VZ
11050int main() {
11051gethostbyname()
11052; return 0; }
11053EOF
9926e4a4 11054if { (eval echo configure:11055: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
11055 rm -rf conftest*
11056 eval "ac_cv_lib_$ac_lib_var=yes"
703e0a69 11057else
698dcdb6
VZ
11058 echo "configure: failed program was:" >&5
11059 cat conftest.$ac_ext >&5
11060 rm -rf conftest*
11061 eval "ac_cv_lib_$ac_lib_var=no"
11062fi
11063rm -f conftest*
11064LIBS="$ac_save_LIBS"
1e487827 11065
698dcdb6
VZ
11066fi
11067if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11068 echo "$ac_t""yes" 1>&6
11069 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
11070else
11071 echo "$ac_t""no" 1>&6
ab9b9eab
VZ
11072fi
11073
11074 fi
11075
11076 # lieder@skyler.mavd.honeywell.com says without -lsocket,
11077 # socket/setsockopt and other routines are undefined under SCO ODT
11078 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
698dcdb6
VZ
11079 # on later versions), says simon@lia.di.epfl.ch: it contains
11080 # gethostby* variants that don't use the nameserver (or something).
11081 # -lsocket must be given before -lnsl if both are needed.
11082 # We assume that if connect needs -lnsl, so does gethostbyname.
11083 echo $ac_n "checking for connect""... $ac_c" 1>&6
9926e4a4 11084echo "configure:11085: checking for connect" >&5
698dcdb6
VZ
11085if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
11086 echo $ac_n "(cached) $ac_c" 1>&6
11087else
11088 cat > conftest.$ac_ext <<EOF
9926e4a4 11089#line 11090 "configure"
ab9b9eab
VZ
11090#include "confdefs.h"
11091/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 11092 which can conflict with char connect(); below. */
ab9b9eab
VZ
11093#include <assert.h>
11094/* Override any gcc2 internal prototype to avoid an error. */
11095/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
11096 builtin and then its argument prototype would still apply. */
11097char connect();
11098
11099int main() {
ab9b9eab
VZ
11100
11101/* The GNU C library defines this for functions which it implements
11102 to always fail with ENOSYS. Some functions are actually named
11103 something starting with __ and the normal name is an alias. */
11104#if defined (__stub_connect) || defined (__stub___connect)
11105choke me
11106#else
698dcdb6 11107connect();
ab9b9eab
VZ
11108#endif
11109
698dcdb6
VZ
11110; return 0; }
11111EOF
9926e4a4 11112if { (eval echo configure:11113: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
11113 rm -rf conftest*
11114 eval "ac_cv_func_connect=yes"
11115else
11116 echo "configure: failed program was:" >&5
11117 cat conftest.$ac_ext >&5
11118 rm -rf conftest*
11119 eval "ac_cv_func_connect=no"
11120fi
11121rm -f conftest*
11122fi
11123
11124if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
11125 echo "$ac_t""yes" 1>&6
11126 :
11127else
11128 echo "$ac_t""no" 1>&6
11129fi
ab9b9eab
VZ
11130
11131 if test $ac_cv_func_connect = no; then
698dcdb6 11132 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
9926e4a4 11133echo "configure:11134: checking for connect in -lsocket" >&5
698dcdb6
VZ
11134ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
11135if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11136 echo $ac_n "(cached) $ac_c" 1>&6
ab9b9eab 11137else
698dcdb6 11138 ac_save_LIBS="$LIBS"
ab9b9eab 11139LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
698dcdb6 11140cat > conftest.$ac_ext <<EOF
9926e4a4 11141#line 11142 "configure"
ab9b9eab
VZ
11142#include "confdefs.h"
11143/* Override any gcc2 internal prototype to avoid an error. */
11144/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
11145 builtin and then its argument prototype would still apply. */
11146char connect();
11147
11148int main() {
11149connect()
11150; return 0; }
11151EOF
9926e4a4 11152if { (eval echo configure:11153: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
11153 rm -rf conftest*
11154 eval "ac_cv_lib_$ac_lib_var=yes"
11155else
11156 echo "configure: failed program was:" >&5
11157 cat conftest.$ac_ext >&5
11158 rm -rf conftest*
11159 eval "ac_cv_lib_$ac_lib_var=no"
11160fi
11161rm -f conftest*
11162LIBS="$ac_save_LIBS"
11163
11164fi
11165if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11166 echo "$ac_t""yes" 1>&6
ab9b9eab 11167 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
698dcdb6
VZ
11168else
11169 echo "$ac_t""no" 1>&6
ab9b9eab
VZ
11170fi
11171
11172 fi
11173
698dcdb6
VZ
11174 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
11175 echo $ac_n "checking for remove""... $ac_c" 1>&6
9926e4a4 11176echo "configure:11177: checking for remove" >&5
698dcdb6
VZ
11177if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
11178 echo $ac_n "(cached) $ac_c" 1>&6
ab9b9eab 11179else
698dcdb6 11180 cat > conftest.$ac_ext <<EOF
9926e4a4 11181#line 11182 "configure"
ab9b9eab
VZ
11182#include "confdefs.h"
11183/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 11184 which can conflict with char remove(); below. */
ab9b9eab
VZ
11185#include <assert.h>
11186/* Override any gcc2 internal prototype to avoid an error. */
11187/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
11188 builtin and then its argument prototype would still apply. */
11189char remove();
11190
11191int main() {
ab9b9eab
VZ
11192
11193/* The GNU C library defines this for functions which it implements
11194 to always fail with ENOSYS. Some functions are actually named
11195 something starting with __ and the normal name is an alias. */
11196#if defined (__stub_remove) || defined (__stub___remove)
11197choke me
11198#else
698dcdb6 11199remove();
ab9b9eab
VZ
11200#endif
11201
698dcdb6
VZ
11202; return 0; }
11203EOF
9926e4a4 11204if { (eval echo configure:11205: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
11205 rm -rf conftest*
11206 eval "ac_cv_func_remove=yes"
11207else
11208 echo "configure: failed program was:" >&5
11209 cat conftest.$ac_ext >&5
11210 rm -rf conftest*
11211 eval "ac_cv_func_remove=no"
11212fi
11213rm -f conftest*
11214fi
11215
11216if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
11217 echo "$ac_t""yes" 1>&6
11218 :
11219else
11220 echo "$ac_t""no" 1>&6
11221fi
ab9b9eab
VZ
11222
11223 if test $ac_cv_func_remove = no; then
698dcdb6 11224 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
9926e4a4 11225echo "configure:11226: checking for remove in -lposix" >&5
698dcdb6
VZ
11226ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
11227if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11228 echo $ac_n "(cached) $ac_c" 1>&6
ab9b9eab 11229else
698dcdb6 11230 ac_save_LIBS="$LIBS"
ab9b9eab 11231LIBS="-lposix $LIBS"
698dcdb6 11232cat > conftest.$ac_ext <<EOF
9926e4a4 11233#line 11234 "configure"
ab9b9eab
VZ
11234#include "confdefs.h"
11235/* Override any gcc2 internal prototype to avoid an error. */
11236/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
11237 builtin and then its argument prototype would still apply. */
11238char remove();
11239
11240int main() {
11241remove()
11242; return 0; }
11243EOF
9926e4a4 11244if { (eval echo configure:11245: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
11245 rm -rf conftest*
11246 eval "ac_cv_lib_$ac_lib_var=yes"
11247else
11248 echo "configure: failed program was:" >&5
11249 cat conftest.$ac_ext >&5
11250 rm -rf conftest*
11251 eval "ac_cv_lib_$ac_lib_var=no"
11252fi
11253rm -f conftest*
11254LIBS="$ac_save_LIBS"
11255
11256fi
11257if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11258 echo "$ac_t""yes" 1>&6
ab9b9eab 11259 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
698dcdb6
VZ
11260else
11261 echo "$ac_t""no" 1>&6
ab9b9eab
VZ
11262fi
11263
11264 fi
11265
11266 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
698dcdb6 11267 echo $ac_n "checking for shmat""... $ac_c" 1>&6
9926e4a4 11268echo "configure:11269: checking for shmat" >&5
698dcdb6
VZ
11269if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
11270 echo $ac_n "(cached) $ac_c" 1>&6
ab9b9eab 11271else
698dcdb6 11272 cat > conftest.$ac_ext <<EOF
9926e4a4 11273#line 11274 "configure"
ab9b9eab
VZ
11274#include "confdefs.h"
11275/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 11276 which can conflict with char shmat(); below. */
ab9b9eab
VZ
11277#include <assert.h>
11278/* Override any gcc2 internal prototype to avoid an error. */
11279/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
11280 builtin and then its argument prototype would still apply. */
11281char shmat();
11282
11283int main() {
ab9b9eab
VZ
11284
11285/* The GNU C library defines this for functions which it implements
11286 to always fail with ENOSYS. Some functions are actually named
11287 something starting with __ and the normal name is an alias. */
11288#if defined (__stub_shmat) || defined (__stub___shmat)
11289choke me
11290#else
698dcdb6 11291shmat();
ab9b9eab
VZ
11292#endif
11293
698dcdb6
VZ
11294; return 0; }
11295EOF
9926e4a4 11296if { (eval echo configure:11297: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
11297 rm -rf conftest*
11298 eval "ac_cv_func_shmat=yes"
11299else
11300 echo "configure: failed program was:" >&5
11301 cat conftest.$ac_ext >&5
11302 rm -rf conftest*
11303 eval "ac_cv_func_shmat=no"
11304fi
11305rm -f conftest*
11306fi
11307
11308if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
11309 echo "$ac_t""yes" 1>&6
11310 :
11311else
11312 echo "$ac_t""no" 1>&6
11313fi
ab9b9eab
VZ
11314
11315 if test $ac_cv_func_shmat = no; then
698dcdb6 11316 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
9926e4a4 11317echo "configure:11318: checking for shmat in -lipc" >&5
698dcdb6
VZ
11318ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
11319if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11320 echo $ac_n "(cached) $ac_c" 1>&6
ab9b9eab 11321else
698dcdb6 11322 ac_save_LIBS="$LIBS"
ab9b9eab 11323LIBS="-lipc $LIBS"
698dcdb6 11324cat > conftest.$ac_ext <<EOF
9926e4a4 11325#line 11326 "configure"
ab9b9eab
VZ
11326#include "confdefs.h"
11327/* Override any gcc2 internal prototype to avoid an error. */
11328/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
11329 builtin and then its argument prototype would still apply. */
11330char shmat();
11331
11332int main() {
11333shmat()
11334; return 0; }
11335EOF
9926e4a4 11336if { (eval echo configure:11337: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
11337 rm -rf conftest*
11338 eval "ac_cv_lib_$ac_lib_var=yes"
11339else
11340 echo "configure: failed program was:" >&5
11341 cat conftest.$ac_ext >&5
11342 rm -rf conftest*
11343 eval "ac_cv_lib_$ac_lib_var=no"
11344fi
11345rm -f conftest*
11346LIBS="$ac_save_LIBS"
11347
11348fi
11349if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11350 echo "$ac_t""yes" 1>&6
ab9b9eab 11351 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
698dcdb6
VZ
11352else
11353 echo "$ac_t""no" 1>&6
ab9b9eab
VZ
11354fi
11355
11356 fi
11357 fi
11358
11359 # Check for libraries that X11R6 Xt/Xaw programs need.
698dcdb6 11360 ac_save_LDFLAGS="$LDFLAGS"
ab9b9eab
VZ
11361 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
11362 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
11363 # check for ICE first), but we must link in the order -lSM -lICE or
11364 # we get undefined symbols. So assume we have SM if we have ICE.
11365 # These have to be linked with before -lX11, unlike the other
11366 # libraries we check for below, so use a different variable.
698dcdb6
VZ
11367 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
11368 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
9926e4a4 11369echo "configure:11370: checking for IceConnectionNumber in -lICE" >&5
698dcdb6
VZ
11370ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
11371if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11372 echo $ac_n "(cached) $ac_c" 1>&6
11373else
11374 ac_save_LIBS="$LIBS"
ab9b9eab 11375LIBS="-lICE $X_EXTRA_LIBS $LIBS"
698dcdb6 11376cat > conftest.$ac_ext <<EOF
9926e4a4 11377#line 11378 "configure"
ab9b9eab
VZ
11378#include "confdefs.h"
11379/* Override any gcc2 internal prototype to avoid an error. */
11380/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
11381 builtin and then its argument prototype would still apply. */
11382char IceConnectionNumber();
11383
11384int main() {
11385IceConnectionNumber()
11386; return 0; }
11387EOF
9926e4a4 11388if { (eval echo configure:11389: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
11389 rm -rf conftest*
11390 eval "ac_cv_lib_$ac_lib_var=yes"
11391else
11392 echo "configure: failed program was:" >&5
11393 cat conftest.$ac_ext >&5
11394 rm -rf conftest*
11395 eval "ac_cv_lib_$ac_lib_var=no"
11396fi
11397rm -f conftest*
11398LIBS="$ac_save_LIBS"
11399
11400fi
11401if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11402 echo "$ac_t""yes" 1>&6
ab9b9eab 11403 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
698dcdb6
VZ
11404else
11405 echo "$ac_t""no" 1>&6
ab9b9eab
VZ
11406fi
11407
698dcdb6 11408 LDFLAGS="$ac_save_LDFLAGS"
ab9b9eab
VZ
11409
11410fi
11411
11412
1e6feb95
VZ
11413 if test "$no_x" = "yes"; then
11414 { echo "configure: error: X11 not found" 1>&2; exit 1; }
11415 fi
ab9b9eab 11416
1e6feb95
VZ
11417 GUI_TK_LIBRARY="$X_LIBS"
11418 TOOLKIT_INCLUDE="$X_CFLAGS"
1e6feb95 11419 AFMINSTALL=afminstall
1e6feb95 11420 COMPILED_X_PROGRAM=0
cd6d6d5b 11421
1e6feb95 11422 echo $ac_n "checking for Motif/Lesstif headers""... $ac_c" 1>&6
9926e4a4 11423echo "configure:11424: checking for Motif/Lesstif headers" >&5
1e6feb95 11424
ab9b9eab
VZ
11425ac_find_includes=
11426for ac_dir in $SEARCH_INCLUDE;
11427 do
11428 if test -f "$ac_dir/Xm/Xm.h"; then
11429 ac_find_includes=$ac_dir
11430 break
11431 fi
11432 done
11433
1e6feb95
VZ
11434 if test "$ac_find_includes" != "" ; then
11435 echo "$ac_t""found $ac_find_includes" 1>&6
11436 else
11437 cat > conftest.$ac_ext <<EOF
9926e4a4 11438#line 11439 "configure"
cd6d6d5b
VZ
11439#include "confdefs.h"
11440
1e6feb95
VZ
11441 #include <Xm/Xm.h>
11442
698dcdb6 11443int main() {
cd6d6d5b 11444
1e6feb95 11445 int version;
1e6feb95
VZ
11446 version = xmUseVersion;
11447
698dcdb6
VZ
11448; return 0; }
11449EOF
9926e4a4 11450if { (eval echo configure:11451: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6
VZ
11451 rm -rf conftest*
11452
1e6feb95
VZ
11453 echo "$ac_t""found in default search path" 1>&6
11454 COMPILED_X_PROGRAM=1
11455
cd6d6d5b 11456else
698dcdb6
VZ
11457 echo "configure: failed program was:" >&5
11458 cat conftest.$ac_ext >&5
11459 rm -rf conftest*
11460
1e6feb95
VZ
11461 echo "$ac_t""no" 1>&6
11462 { echo "configure: error: please set CFLAGS to contain the location of Xm/Xm.h" 1>&2; exit 1; }
11463
698dcdb6 11464
cd6d6d5b 11465fi
698dcdb6 11466rm -f conftest*
1e6feb95 11467 fi
ab9b9eab 11468
1e6feb95
VZ
11469 if test "$COMPILED_X_PROGRAM" = 0; then
11470 echo $ac_n "checking for Motif/Lesstif library""... $ac_c" 1>&6
9926e4a4 11471echo "configure:11472: checking for Motif/Lesstif library" >&5
1e6feb95 11472
ab9b9eab
VZ
11473ac_find_libraries=
11474for ac_dir in $SEARCH_LIB;
11475 do
f11bdd03 11476 for ac_extension in a so sl dylib; do
ab9b9eab
VZ
11477 if test -f "$ac_dir/libXm.$ac_extension"; then
11478 ac_find_libraries=$ac_dir
11479 break 2
11480 fi
11481 done
11482 done
11483
1e6feb95
VZ
11484 if test "$ac_find_libraries" != "" ; then
11485
ab9b9eab
VZ
11486 ac_path_to_include=$ac_find_includes
11487 echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null
11488 result=$?
11489 if test $result = 0; then
11490 ac_path_to_include=""
11491 else
62d0491b 11492 ac_path_to_include=" -I$ac_find_includes"
ab9b9eab
VZ
11493 fi
11494
1e6feb95 11495
ab9b9eab
VZ
11496 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
11497 result=$?
11498 if test $result = 0; then
11499 ac_path_to_link=""
11500 else
62d0491b 11501 ac_path_to_link=" -L$ac_find_libraries"
ab9b9eab
VZ
11502 fi
11503
698dcdb6 11504
62d0491b
RL
11505 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
11506 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE$ac_path_to_include"
1e6feb95
VZ
11507 echo "$ac_t""found at $ac_find_libraries" 1>&6
11508 else
11509 cat > conftest.$ac_ext <<EOF
9926e4a4 11510#line 11511 "configure"
cd6d6d5b 11511#include "confdefs.h"
ab9b9eab 11512
1e6feb95
VZ
11513 #include <Xm/Xm.h>
11514
698dcdb6 11515int main() {
ab9b9eab 11516
1e6feb95 11517 int version;
1e6feb95
VZ
11518 version = xmUseVersion;
11519
698dcdb6
VZ
11520; return 0; }
11521EOF
9926e4a4 11522if { (eval echo configure:11523: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6
VZ
11523 rm -rf conftest*
11524
1e6feb95
VZ
11525 echo "$ac_t""found in default search path" 1>&6
11526 COMPILED_X_PROGRAM=1
11527
cd6d6d5b 11528else
698dcdb6
VZ
11529 echo "configure: failed program was:" >&5
11530 cat conftest.$ac_ext >&5
11531 rm -rf conftest*
11532
1e6feb95
VZ
11533 echo "$ac_t""no" 1>&6
11534 { echo "configure: error: please set LDFLAGS to contain the location of libXm" 1>&2; exit 1; }
11535
698dcdb6 11536
cd6d6d5b 11537fi
698dcdb6 11538rm -f conftest*
1e6feb95 11539 fi
cd6d6d5b 11540 fi
ab9b9eab 11541
3d63bc3a 11542 xpm_link=
1e6feb95 11543 echo $ac_n "checking for Xpm library""... $ac_c" 1>&6
9926e4a4 11544echo "configure:11545: checking for Xpm library" >&5
1e6feb95 11545
ab9b9eab
VZ
11546ac_find_libraries=
11547for ac_dir in $SEARCH_LIB;
11548 do
f11bdd03 11549 for ac_extension in a so sl dylib; do
ab9b9eab
VZ
11550 if test -f "$ac_dir/libXpm.$ac_extension"; then
11551 ac_find_libraries=$ac_dir
11552 break 2
11553 fi
11554 done
11555 done
11556
1e6feb95
VZ
11557 if test "$ac_find_libraries" != "" ; then
11558
ab9b9eab
VZ
11559 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
11560 result=$?
11561 if test $result = 0; then
11562 ac_path_to_link=""
11563 else
62d0491b 11564 ac_path_to_link=" -L$ac_find_libraries"
ab9b9eab
VZ
11565 fi
11566
62d0491b 11567 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
3d63bc3a 11568 xpm_link=" -lXpm"
1e6feb95 11569 cat >> confdefs.h <<\EOF
ab9b9eab
VZ
11570#define wxHAVE_LIB_XPM 1
11571EOF
11572
1e6feb95
VZ
11573 echo "$ac_t""found at $ac_find_libraries" 1>&6
11574 else
11575 cat > conftest.$ac_ext <<EOF
9926e4a4 11576#line 11577 "configure"
cd6d6d5b
VZ
11577#include "confdefs.h"
11578
1e6feb95
VZ
11579 #include <X11/xpm.h>
11580
698dcdb6 11581int main() {
cd6d6d5b 11582
1e6feb95 11583 int version;
1e6feb95
VZ
11584 version = XpmLibraryVersion();
11585
698dcdb6
VZ
11586; return 0; }
11587EOF
9926e4a4 11588if { (eval echo configure:11589: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6
VZ
11589 rm -rf conftest*
11590
3d63bc3a 11591 xpm_link=" -lXpm"
3a922bb4 11592 cat >> confdefs.h <<\EOF
3ace2e6d
SN
11593#define wxHAVE_LIB_XPM 1
11594EOF
11595
1e6feb95
VZ
11596 echo "$ac_t""found in default search path" 1>&6
11597 COMPILED_X_PROGRAM=0
11598
cd6d6d5b 11599else
698dcdb6
VZ
11600 echo "configure: failed program was:" >&5
11601 cat conftest.$ac_ext >&5
11602 rm -rf conftest*
11603
1e6feb95
VZ
11604 echo "$ac_t""no" 1>&6
11605 echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2
11606
698dcdb6 11607
cd6d6d5b 11608fi
698dcdb6 11609rm -f conftest*
1e6feb95
VZ
11610 fi
11611
3d63bc3a 11612 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXm$xpm_link -lXmu -lXext -lXt -lX11"
334f0d2c 11613 TOOLKIT_VPATH="\${top_srcdir}/src/motif${PATH_IFS}\${top_srcdir}/src/motif/xmcombo"
1e6feb95
VZ
11614 TOOLKIT=MOTIF
11615 GUIDIST=MOTIF_DIST
ab9b9eab
VZ
11616 fi
11617
683dccda
GD
11618 if test "$wxUSE_MAC" = 1; then
11619 if test "$wxUSE_PRECOMP" = "yes"; then
3d63bc3a 11620 CPPFLAGS="$CPPFLAGS -cpp-precomp"
683dccda 11621 fi
3d63bc3a
RL
11622 CPPFLAGS="$CPPFLAGS -I/Developer/Headers/FlatCarbon -I\${top_srcdir}/src/mac/morefile"
11623 CFLAGS="$CFLAGS -fpascal-strings"
11624 CXXFLAGS="$CXXFLAGS -fpascal-strings"
11625 TOOLCHAIN_DEFS="$TOOLCHAIN_DEFS -DTARGET_CARBON"
d08b457b 11626
13c0541d 11627 TOOLKIT_VPATH="\${top_srcdir}/src/mac${PATH_IFS}\${top_srcdir}/src/mac/morefile"
1e6feb95 11628 TOOLKIT=MAC
683dccda 11629 GUIDIST=MACX_DIST
1e6feb95 11630 fi
10f2d63a 11631
1e6feb95
VZ
11632 if test "$wxUSE_PM" = 1; then
11633 TOOLKIT=PM
11634 GUIDIST=GTK_DIST
11635 fi
b4085ce6 11636
3a922bb4 11637 if test "$TOOLKIT" = "PM" ; then
1e6feb95 11638 TOOLKIT_DIR="os2"
3a922bb4
RL
11639 else
11640 TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"`
1e6feb95 11641 fi
e07802fc 11642
3a922bb4 11643 PORT_FILES="\${top_srcdir}/src/\$(TOOLKITDIR)/files.lst"
1e6feb95 11644
3a922bb4
RL
11645 if test "$wxUSE_UNIVERSAL" = "yes"; then
11646 ALL_OBJECTS="\$(GUI_LOWLEVEL_OBJS) \${UNIVOBJS}"
11647 PORT_FILES="${PORT_FILES} \${top_srcdir}/src/univ/files.lst"
11648 TOOLKIT_VPATH="\${top_srcdir}/src/univ${PATH_IFS}\${top_srcdir}/src/univ/themes${PATH_IFS}\${top_srcdir}/src/${TOOLKIT_DIR}"
11649 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__"
11650 WIDGET_SET=univ
f6bcfd97 11651 else
3a922bb4 11652 ALL_OBJECTS="\$(GUIOBJS)"
1e6feb95
VZ
11653 fi
11654
ba0e650c 11655 ALL_OBJECTS="${ALL_OBJECTS} \$(COMMONOBJS) \$(GENERICOBJS)"
1e6feb95
VZ
11656
11657 if test "$TOOLKIT" != "MSW"; then
11658 ALL_OBJECTS="${ALL_OBJECTS} \$(UNIXOBJS)"
11659 fi
11660
11661 if test "$wxUSE_HTML" = "yes"; then
11662 ALL_OBJECTS="${ALL_OBJECTS} \$(HTMLOBJS)"
11663 fi
3fcdd07b 11664
3a922bb4
RL
11665 if test "$TOOLKIT" != "MSW" -a "$wxUSE_ODBC" = "yes" ; then
11666 ALL_OBJECTS="${ALL_OBJECTS} \$(IODBCOBJS)"
831b3152 11667 fi
4f14bcd8 11668 if test "$wxUSE_LIBJPEG" = "builtin" ; then
2224580a 11669 ALL_OBJECTS="${ALL_OBJECTS} \$(JPEGOBJS)"
d9d8273d 11670 fi
4f14bcd8 11671 if test "$wxUSE_LIBTIFF" = "builtin" ; then
d9d8273d
RR
11672 ALL_OBJECTS="${ALL_OBJECTS} \$(TIFFOBJS)"
11673 fi
4f14bcd8 11674 if test "$wxUSE_LIBPNG" = "builtin" ; then
d9d8273d
RR
11675 ALL_OBJECTS="${ALL_OBJECTS} \$(PNGOBJS)"
11676 fi
4f14bcd8 11677 if test "$wxUSE_FREETYPE" = "builtin" ; then
3fed1840
RR
11678 ALL_OBJECTS="${ALL_OBJECTS} \$(FREETYPEOBJS)"
11679 fi
2224580a 11680
2224580a
VZ
11681 GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST"
11682 DISTDIR="wx\$(TOOLKIT)"
10f2d63a 11683else
dad6c0ea
VZ
11684 USE_GUI=0
11685
3a922bb4 11686 TOOLKIT_DIR="base"
f6bcfd97 11687
3a922bb4
RL
11688 if test "$USE_WIN32" = 1 ; then
11689 ALL_OBJECTS="\${BASE_OBJS} \${BASE_MSW_OBJS}"
11690 TOOLKIT_VPATH="\${top_srcdir}/src/msw"
0b2effe9 11691
3a922bb4 11692 TOOLKIT="MSW"
f6bcfd97 11693 else
3a922bb4
RL
11694 ALL_OBJECTS="\${BASE_OBJS} \${BASE_UNIX_OBJS}"
11695 TOOLKIT_VPATH="\${top_srcdir}/src/unix"
f6bcfd97
BP
11696 fi
11697
831b3152 11698 PORT_FILES="\${top_srcdir}/src/files.lst"
2224580a
VZ
11699
11700 GUIDIST="BASE_DIST"
11701 DISTDIR="wxBase"
10f2d63a
VZ
11702fi
11703
4f14bcd8 11704if test "$wxUSE_REGEX" = "builtin" ; then
3a922bb4
RL
11705 ALL_OBJECTS="${ALL_OBJECTS} \$(REGEXOBJS)"
11706fi
4f14bcd8 11707if test "$wxUSE_ZLIB" = "builtin" ; then
3a922bb4
RL
11708 ALL_OBJECTS="${ALL_OBJECTS} \$(ZLIBOBJS)"
11709fi
10f2d63a 11710
3a922bb4 11711if test "$wxUSE_OPENGL" = "yes"; then
62d0491b
RL
11712 if test "$wxUSE_MAC" = 1; then
11713 OPENGL_LIBS="-framework OpenGL -framework AGL"
11714 else
570cb8cb 11715
62d0491b 11716 ac_safe=`echo "GL/gl.h" | sed 'y%./+-%__p_%'`
3a922bb4 11717echo $ac_n "checking for GL/gl.h""... $ac_c" 1>&6
9926e4a4 11718echo "configure:11719: checking for GL/gl.h" >&5
3a922bb4
RL
11719if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11720 echo $ac_n "(cached) $ac_c" 1>&6
11721else
11722 cat > conftest.$ac_ext <<EOF
9926e4a4 11723#line 11724 "configure"
3a922bb4
RL
11724#include "confdefs.h"
11725#include <GL/gl.h>
11726EOF
11727ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9926e4a4 11728{ (eval echo configure:11729: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3a922bb4
RL
11729ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11730if test -z "$ac_err"; then
11731 rm -rf conftest*
11732 eval "ac_cv_header_$ac_safe=yes"
11733else
11734 echo "$ac_err" >&5
11735 echo "configure: failed program was:" >&5
11736 cat conftest.$ac_ext >&5
11737 rm -rf conftest*
11738 eval "ac_cv_header_$ac_safe=no"
11739fi
11740rm -f conftest*
11741fi
11742if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11743 echo "$ac_t""yes" 1>&6
11744
1352efdf 11745 echo $ac_n "checking for -lGL""... $ac_c" 1>&6
9926e4a4 11746echo "configure:11747: checking for -lGL" >&5
57964555 11747
62d0491b
RL
11748ac_find_libraries=
11749for ac_dir in $SEARCH_LIB;
11750 do
11751 for ac_extension in a so sl dylib; do
11752 if test -f "$ac_dir/libGL.$ac_extension"; then
11753 ac_find_libraries=$ac_dir
11754 break 2
11755 fi
11756 done
11757 done
3a922bb4 11758
62d0491b
RL
11759 if test "$ac_find_libraries" != "" ; then
11760
11761 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
11762 result=$?
11763 if test $result = 0; then
11764 ac_path_to_link=""
11765 else
11766 ac_path_to_link=" -L$ac_find_libraries"
11767 fi
3a922bb4 11768
62d0491b
RL
11769 LDFLAGS_GL="$LDFLAGS$ac_path_to_link"
11770 OPENGL_LIBS="-lGL -lGLU"
1352efdf 11771 echo "$ac_t""yes" 1>&6
62d0491b 11772 else
1352efdf
RL
11773 echo "$ac_t""no" 1>&6
11774 echo $ac_n "checking for -lMesaGL""... $ac_c" 1>&6
9926e4a4 11775echo "configure:11776: checking for -lMesaGL" >&5
62d0491b
RL
11776
11777ac_find_libraries=
11778for ac_dir in $SEARCH_LIB;
11779 do
11780 for ac_extension in a so sl dylib; do
11781 if test -f "$ac_dir/libMesaGL.$ac_extension"; then
11782 ac_find_libraries=$ac_dir
11783 break 2
11784 fi
11785 done
11786 done
3a922bb4 11787
62d0491b 11788 if test "$ac_find_libraries" != "" ; then
57964555 11789
62d0491b
RL
11790 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
11791 result=$?
11792 if test $result = 0; then
11793 ac_path_to_link=""
11794 else
11795 ac_path_to_link=" -L$ac_find_libraries"
11796 fi
3a922bb4 11797
62d0491b
RL
11798 LDFLAGS_GL="$LDFLAGS$ac_path_to_link"
11799 OPENGL_LIBS="-lMesaGL -lMesaGLU"
1352efdf
RL
11800 echo "$ac_t""yes" 1>&6
11801 else
11802 echo "$ac_t""no" 1>&6
62d0491b
RL
11803 fi
11804 fi
11805
3a922bb4
RL
11806else
11807 echo "$ac_t""no" 1>&6
3a922bb4
RL
11808fi
11809
6f754473 11810
62d0491b
RL
11811
11812# AC_CHECK_HEADER(GL/gl.h,
11813# [
11814# AC_CHECK_LIB(GL, glFlush,
11815# [
11816# OPENGL_LIBS="-lGL -lGLU"
11817# ],
11818# [
11819# AC_CHECK_LIB(MesaGL, glFlush,
11820# [
11821# OPENGL_LIBS="-lMesaGL -lMesaGLU"
11822# ],
11823# [],
11824# [-lm])
11825# ],
11826# [-lm])
11827# ])
11828
11829 if test "x$OPENGL_LIBS" = "x"; then
11830 { echo "configure: error: OpenGL libraries not available" 1>&2; exit 1; }
11831 fi
6f754473 11832 fi
6f754473 11833
62d0491b
RL
11834 if test "$wxUSE_OPENGL" = "yes"; then
11835 cat >> confdefs.h <<\EOF
6f754473
VZ
11836#define wxUSE_OPENGL 1
11837EOF
11838
62d0491b 11839 cat >> confdefs.h <<\EOF
6f754473
VZ
11840#define wxUSE_GLCANVAS 1
11841EOF
11842
62d0491b
RL
11843 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl"
11844 fi
3a922bb4
RL
11845fi
11846
11847if test -z "$TOOLKIT_VPATH" ; then
11848 TOOLKIT_VPATH="\${top_srcdir}/src/${TOOLKIT_DIR}"
11849fi
11850
11851if test -n "$TOOLKIT" ; then
11852 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WX${TOOLKIT}__"
11853fi
11854
f676c7ff
MB
11855lib_unicode_suffix=
11856if test "$wxUSE_UNICODE" = "yes"; then
11857 lib_unicode_suffix=u
11858fi
11859
3a922bb4
RL
11860lib_debug_suffix=
11861if test "$wxUSE_DEBUG_FLAG" = "yes"; then
11862 lib_debug_suffix=d
3a922bb4
RL
11863fi
11864
f676c7ff
MB
11865TOOLCHAIN_NAME="${TOOLKIT_DIR}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}-${WX_RELEASE}"
11866TOOLCHAIN_NAME_GL="${TOOLKIT_DIR}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}_gl-${WX_RELEASE}"
3a922bb4
RL
11867
11868if test "$cross_compiling" = "yes"; then
11869 TOOLCHAIN_NAME="${TOOLCHAIN_NAME}-${host_alias}"
11870 TOOLCHAIN_NAME_GL="${TOOLCHAIN_NAME_GL}-${host_alias}"
11871fi
11872
11873WX_LIBRARY="wx_${TOOLCHAIN_NAME}"
11874WX_LIBRARY_GL="wx_${TOOLCHAIN_NAME_GL}"
11875
3a922bb4
RL
11876WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
11877WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
11878
11879WX_LIBRARY_LINK1="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}"
11880WX_LIBRARY_LINK2="lib${WX_LIBRARY}.${SO_SUFFIX}"
11881WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}"
11882WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}"
11883
d08b457b 11884WX_RESOURCES_MACOSX="lib${WX_LIBRARY}.rsrc"
e23081de 11885WX_RESOURCES_MACOSX_COMPILED="lib${WX_LIBRARY}.r"
3a922bb4 11886
978f1259
RL
11887case "${host}" in
11888 *-*-cygwin* | *-*-mingw32* )
11889
2da4f892 11890
978f1259
RL
11891
11892 if test "$cross_compiling" != "yes"; then
11893 WX_LIBRARY="wxmsw${WX_MSW_VERSION}${lib_unicode_suffix}${lib_debug_suffix}"
11894 WX_LIBRARY_GL="wxmsw_gl${WX_MSW_VERSION}${lib_unicode_suffix}${lib_debug_suffix}"
11895 WX_LIBRARY_NAME_SHARED="${WX_LIBRARY}.${SO_SUFFIX}"
11896 WX_LIBRARY_NAME_SHARED_GL="${WX_LIBRARY_GL}.${SO_SUFFIX}"
2da4f892
RL
11897 else
11898 WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${SO_SUFFIX}"
11899 WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}"
978f1259
RL
11900 fi
11901
11902esac
11903
11904WX_LIBRARY_NAME_STATIC="lib${WX_LIBRARY}.a"
11905WX_LIBRARY_NAME_STATIC_GL="lib${WX_LIBRARY_GL}.a"
11906
11907WXCONFIG_LIBS="-l${WX_LIBRARY}"
885d4bf5 11908WXCONFIG_LIBS_STATIC="lib${WX_LIBRARY}.a"
978f1259
RL
11909
11910if test "$wxUSE_OPENGL" = "yes"; then
885d4bf5
VS
11911 WXCONFIG_LIBS_GL="-l${WX_LIBRARY_GL} ${OPENGL_LIBS}"
11912 WXCONFIG_LIBS_STATIC_GL="lib${WX_LIBRARY_GL}.a ${OPENGL_LIBS}"
978f1259
RL
11913fi
11914
11915
3a922bb4
RL
11916
11917if test "$wxUSE_SHARED" = "yes"; then
55e80573
VZ
11918
11919 if test "$wxUSE_OPENGL" = "yes"; then
11920 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL"
3a922bb4 11921 WX_ALL="\$(build_libdir)/${WX_LIBRARY_LINK1} \$(build_libdir)/${WX_LIBRARY_LINK1_GL}"
55e80573
VZ
11922 else
11923 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
3a922bb4 11924 WX_ALL="\$(build_libdir)/${WX_LIBRARY_LINK1}"
55e80573
VZ
11925 fi
11926
dd4f7467 11927 if test "$GCC" = "yes"; then
55e80573 11928 PIC_FLAG="-fPIC"
dd4f7467 11929 fi
55e80573
VZ
11930
11931 SHARED_LD="${CXX} -shared -o"
698dcdb6 11932
10f2d63a
VZ
11933 case "${host}" in
11934 *-hp-hpux* )
55e80573 11935 if test "$GCC" != "yes"; then
3d63bc3a 11936 LDFLAGS="$LDFLAGS -L/usr/lib"
f6bcfd97 11937
10f2d63a
VZ
11938 SHARED_LD="${CXX} -b -o"
11939 PIC_FLAG="+Z"
11940 fi
55e80573 11941
7b7a7637
RL
11942 if test "$wxUSE_OPENGL" = "yes"; then
11943 WX_ALL_INSTALLED="preinstall_gl"
11944 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED} \$(build_libdir)/${WX_LIBRARY_NAME_SHARED_GL}"
11945 else
11946 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED}"
11947 fi
10f2d63a 11948 ;;
b12915c1 11949
55e80573
VZ
11950 *-*-linux* )
11951 if test "$GCC" != "yes"; then
11952 echo $ac_n "checking for Intel compiler""... $ac_c" 1>&6
9926e4a4 11953echo "configure:11954: checking for Intel compiler" >&5
55e80573
VZ
11954if eval "test \"`echo '$''{'wx_cv_prog_icc'+set}'`\" = set"; then
11955 echo $ac_n "(cached) $ac_c" 1>&6
11956else
11957
11958 cat > conftest.$ac_ext <<EOF
9926e4a4 11959#line 11960 "configure"
55e80573
VZ
11960#include "confdefs.h"
11961
11962int main() {
11963
11964 #ifndef __INTEL_COMPILER
dd4f7467 11965 #error Not icc
55e80573
VZ
11966 #endif
11967
11968; return 0; }
11969EOF
9926e4a4 11970if { (eval echo configure:11971: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
55e80573
VZ
11971 rm -rf conftest*
11972 wx_cv_prog_icc=yes
11973else
11974 echo "configure: failed program was:" >&5
11975 cat conftest.$ac_ext >&5
11976 rm -rf conftest*
11977 wx_cv_prog_icc=no
11978
11979fi
11980rm -f conftest*
11981
11982fi
11983
11984echo "$ac_t""$wx_cv_prog_icc" 1>&6
55e80573
VZ
11985 if test "$wx_cv_prog_icc" = "yes"; then
11986 PIC_FLAG="-KPIC"
11987 fi
11988 fi
11989
3a922bb4
RL
11990 if test "$wxUSE_SONAME" = "yes" ; then
11991 SONAME_FLAGS="-Wl,-soname,${WX_LIBRARY_LINK1}"
11992 SONAME_FLAGS_GL="-Wl,-soname,${WX_LIBRARY_LINK1_GL}"
f6bcfd97 11993 WX_TARGET_LIBRARY_SONAME="-Wl,-soname,\$(TARGETLIB_LINK1)"
00cf1208 11994 fi
10f2d63a 11995 ;;
55e80573 11996
10f2d63a
VZ
11997 *-*-solaris2* )
11998 if test "$GCC" = yes ; then
f6bcfd97 11999 CPPFLAGS="$CPPFLAGS -isystem /usr/openwin/include"
10f2d63a
VZ
12000 else
12001 SHARED_LD="${CXX} -G -o"
12002 PIC_FLAG="-KPIC"
7b7a7637
RL
12003 SONAME_FLAGS="-h ${WX_LIBRARY_NAME_SHARED}"
12004 SONAME_FLAGS_GL="-h ${WX_LIBRARY_NAME_SHARED}"
10f2d63a 12005 fi
10f2d63a 12006 ;;
55e80573 12007
b4085ce6 12008 *-*-darwin* )
156b2523
GD
12009 CFLAGS="$CFLAGS -fno-common -DDYLIB_INIT"
12010 CXXFLAGS="$CXXFLAGS -fno-common -DDYLIB_INIT"
12011 SHARED_LD="$CXX -dynamiclib -init _wxWindowsDylibInit -o"
ea5999b9 12012 PIC_FLAG="-dynamic -fPIC"
10f2d63a 12013 ;;
55e80573 12014
10f2d63a
VZ
12015 *-*-aix* )
12016 SHARED_LD="/usr/lpp/xlC/bin/makeC++SharedLib -p 0 -o"
10f2d63a 12017 ;;
55e80573 12018
7b7a7637 12019 *-*-cygwin* | *-*-mingw32* )
77e13408 12020
2da4f892 12021 WX_LIBRARY_IMPORTLIB="${WX_LIBRARY_NAME_SHARED}.a"
77e13408 12022
77e13408 12023 SHARED_LD="${CXX} -shared -Wl,--out-implib,lib/${WX_LIBRARY_IMPORTLIB} -o"
00c81359 12024 TOOLCHAIN_DLL_DEFS="${TOOLCHAIN_DLL_DEFS} -DWXUSINGDLL=1"
25d0687a
RL
12025
12026 PIC_FLAG="-UWXUSINGDLL -DWXMAKINGDLL=1 -D_DLL=1 -D_WINDLL=1"
7b7a7637
RL
12027
12028 if test "$wxUSE_OPENGL" = "yes"; then
f6bcfd97 12029 WX_ALL_INSTALLED="preinstall_gl"
978f1259 12030 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED} \$(build_libdir)/${WX_LIBRARY_NAME_SHARED_GL}"
f6bcfd97 12031 else
978f1259 12032 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED}"
f6bcfd97 12033 fi
10f2d63a 12034 ;;
55e80573 12035
6fa882bd 12036 *-pc-os2_emx | *-pc-os2-emx )
7b7a7637 12037 wxUSE_SHARED=no
10f2d63a 12038 ;;
55e80573 12039
b12915c1 12040 *-*-beos* )
e2b8b066 12041 SHARED_LD="${LD} -shared -o"
b12915c1 12042 ;;
55e80573
VZ
12043
12044 *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | \
12045 *-*-sunos4* | \
12046 *-*-irix5* | *-*-irix6* | \
12047 *-*-osf* | \
12048 *-*-dgux5* | \
12049 *-*-sysv5* )
12050 ;;
12051
10f2d63a 12052 *)
7b7a7637 12053 { echo "configure: error: unknown system type $host." 1>&2; exit 1; }
10f2d63a
VZ
12054 esac
12055
12056 if test "x$WX_TARGET_LIBRARY" = "x"; then
12057 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_SHARED}"
bdad4e7e 12058 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_SHARED_GL}"
10f2d63a 12059 fi
55e80573 12060
3711412e 12061 WX_TARGET_LIBRARY_TYPE="so"
885d4bf5 12062 INSTALL_LIBRARY='$(INSTALL_PROGRAM)'
3a922bb4 12063fi
f6bcfd97 12064
3a922bb4 12065if test "$wxUSE_SHARED" = "no"; then
f6bcfd97 12066
3a922bb4 12067 if test "$wxUSE_GUI" = "no" -o "$USE_WIN32" = 1 ; then
f6bcfd97
BP
12068 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall"
12069 fi
12070
6fa882bd
RR
12071 if test "$wxUSE_MAC" = 1; then
12072 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall"
12073 fi
12074
3a922bb4
RL
12075 if test "$wxUSE_OPENGL" = "yes"; then
12076 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall_gl"
12077 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC} \$(build_libdir)/${WX_LIBRARY_NAME_STATIC_GL}"
12078 else
12079 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC}"
12080 fi
698dcdb6 12081
3a922bb4
RL
12082 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}"
12083 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_STATIC_GL}"
12084
12085 WX_TARGET_LIBRARY_TYPE="a"
885d4bf5 12086 INSTALL_LIBRARY='$(INSTALL_DATA)'
10f2d63a 12087fi
10f2d63a 12088
d08b457b
GD
12089if test "$wxUSE_MAC" = 1; then
12090 WX_ALL="${WX_ALL} \$(build_libdir)/lib${WX_LIBRARY}.r"
e23081de 12091 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall_res"
d08b457b
GD
12092 # Extract the first word of "Rez", so it can be a program name with args.
12093set dummy Rez; ac_word=$2
12094echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
9926e4a4 12095echo "configure:12096: checking for $ac_word" >&5
d08b457b
GD
12096if eval "test \"`echo '$''{'ac_cv_prog_RESCOMP'+set}'`\" = set"; then
12097 echo $ac_n "(cached) $ac_c" 1>&6
12098else
12099 if test -n "$RESCOMP"; then
12100 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
12101else
12102 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
12103 ac_dummy="$PATH"
12104 for ac_dir in $ac_dummy; do
12105 test -z "$ac_dir" && ac_dir=.
12106 if test -f $ac_dir/$ac_word; then
12107 ac_cv_prog_RESCOMP="Rez"
12108 break
12109 fi
12110 done
12111 IFS="$ac_save_ifs"
12112 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez"
12113fi
12114fi
12115RESCOMP="$ac_cv_prog_RESCOMP"
12116if test -n "$RESCOMP"; then
12117 echo "$ac_t""$RESCOMP" 1>&6
12118else
12119 echo "$ac_t""no" 1>&6
12120fi
12121
9f8148b1
GD
12122 # Extract the first word of "DeRez", so it can be a program name with args.
12123set dummy DeRez; ac_word=$2
d08b457b 12124echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
9926e4a4 12125echo "configure:12126: checking for $ac_word" >&5
d08b457b
GD
12126if eval "test \"`echo '$''{'ac_cv_prog_DEREZ'+set}'`\" = set"; then
12127 echo $ac_n "(cached) $ac_c" 1>&6
12128else
12129 if test -n "$DEREZ"; then
12130 ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test.
12131else
12132 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
12133 ac_dummy="$PATH"
12134 for ac_dir in $ac_dummy; do
12135 test -z "$ac_dir" && ac_dir=.
12136 if test -f $ac_dir/$ac_word; then
9f8148b1 12137 ac_cv_prog_DEREZ="DeRez"
d08b457b
GD
12138 break
12139 fi
12140 done
12141 IFS="$ac_save_ifs"
9f8148b1 12142 test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/DeRez"
d08b457b
GD
12143fi
12144fi
12145DEREZ="$ac_cv_prog_DEREZ"
12146if test -n "$DEREZ"; then
12147 echo "$ac_t""$DEREZ" 1>&6
12148else
12149 echo "$ac_t""no" 1>&6
12150fi
12151
12152 LIBWXMACRES="\$(top_builddir)/lib/lib${WX_LIBRARY}.r"
12153 LIBWXMACRESCOMP="\$(RESCOMP) Carbon.r -t APPL ${LIBWXMACRES} -o \$(BIN_PROGRAM)"
e23081de 12154 LIBWXMACRESWXCONFIG="${RESCOMP} Carbon.r -t APPL \${prefix}/lib/${WX_RESOURCES_MACOSX_COMPILED} -o"
d08b457b
GD
12155fi
12156
3a922bb4 12157
13c0541d
GD
12158if test "$wxUSE_MAC" != 1; then
12159 for ac_hdr in strings.h
9cfadba2 12160do
698dcdb6
VZ
12161ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12162echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9926e4a4 12163echo "configure:12164: checking for $ac_hdr" >&5
698dcdb6
VZ
12164if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
12165 echo $ac_n "(cached) $ac_c" 1>&6
12166else
12167 cat > conftest.$ac_ext <<EOF
9926e4a4 12168#line 12169 "configure"
9cfadba2 12169#include "confdefs.h"
698dcdb6
VZ
12170#include <$ac_hdr>
12171EOF
12172ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9926e4a4 12173{ (eval echo configure:12174: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
12174ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12175if test -z "$ac_err"; then
12176 rm -rf conftest*
12177 eval "ac_cv_header_$ac_safe=yes"
6232543b 12178else
698dcdb6
VZ
12179 echo "$ac_err" >&5
12180 echo "configure: failed program was:" >&5
9cfadba2 12181 cat conftest.$ac_ext >&5
698dcdb6
VZ
12182 rm -rf conftest*
12183 eval "ac_cv_header_$ac_safe=no"
9cfadba2 12184fi
698dcdb6 12185rm -f conftest*
9cfadba2 12186fi
698dcdb6
VZ
12187if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12188 echo "$ac_t""yes" 1>&6
12189 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12190 cat >> confdefs.h <<EOF
12191#define $ac_tr_hdr 1
9cfadba2 12192EOF
698dcdb6
VZ
12193
12194else
12195 echo "$ac_t""no" 1>&6
9cfadba2
VZ
12196fi
12197done
10f2d63a 12198
13c0541d
GD
12199fi
12200
3a922bb4 12201for ac_hdr in stdlib.h
10f2d63a 12202do
698dcdb6
VZ
12203ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12204echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9926e4a4 12205echo "configure:12206: checking for $ac_hdr" >&5
698dcdb6
VZ
12206if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
12207 echo $ac_n "(cached) $ac_c" 1>&6
12208else
12209 cat > conftest.$ac_ext <<EOF
9926e4a4 12210#line 12211 "configure"
10f2d63a 12211#include "confdefs.h"
698dcdb6
VZ
12212#include <$ac_hdr>
12213EOF
12214ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9926e4a4 12215{ (eval echo configure:12216: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
12216ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12217if test -z "$ac_err"; then
12218 rm -rf conftest*
12219 eval "ac_cv_header_$ac_safe=yes"
6232543b 12220else
698dcdb6
VZ
12221 echo "$ac_err" >&5
12222 echo "configure: failed program was:" >&5
10f2d63a 12223 cat conftest.$ac_ext >&5
698dcdb6
VZ
12224 rm -rf conftest*
12225 eval "ac_cv_header_$ac_safe=no"
10f2d63a 12226fi
698dcdb6 12227rm -f conftest*
10f2d63a 12228fi
698dcdb6
VZ
12229if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12230 echo "$ac_t""yes" 1>&6
12231 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12232 cat >> confdefs.h <<EOF
12233#define $ac_tr_hdr 1
10f2d63a 12234EOF
698dcdb6
VZ
12235
12236else
12237 echo "$ac_t""no" 1>&6
10f2d63a
VZ
12238fi
12239done
12240
9f8148b1 12241for ac_hdr in malloc.h
10f2d63a 12242do
698dcdb6
VZ
12243ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12244echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9926e4a4 12245echo "configure:12246: checking for $ac_hdr" >&5
698dcdb6
VZ
12246if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
12247 echo $ac_n "(cached) $ac_c" 1>&6
12248else
12249 cat > conftest.$ac_ext <<EOF
9926e4a4 12250#line 12251 "configure"
10f2d63a 12251#include "confdefs.h"
698dcdb6
VZ
12252#include <$ac_hdr>
12253EOF
12254ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9926e4a4 12255{ (eval echo configure:12256: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
12256ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12257if test -z "$ac_err"; then
12258 rm -rf conftest*
12259 eval "ac_cv_header_$ac_safe=yes"
6f72b082 12260else
698dcdb6
VZ
12261 echo "$ac_err" >&5
12262 echo "configure: failed program was:" >&5
6f72b082 12263 cat conftest.$ac_ext >&5
698dcdb6
VZ
12264 rm -rf conftest*
12265 eval "ac_cv_header_$ac_safe=no"
6f72b082 12266fi
698dcdb6 12267rm -f conftest*
6f72b082 12268fi
698dcdb6
VZ
12269if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12270 echo "$ac_t""yes" 1>&6
12271 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12272 cat >> confdefs.h <<EOF
12273#define $ac_tr_hdr 1
6f72b082 12274EOF
698dcdb6
VZ
12275
12276else
12277 echo "$ac_t""no" 1>&6
6f72b082
OK
12278fi
12279done
12280
9f8148b1 12281for ac_hdr in unistd.h
6f72b082 12282do
698dcdb6
VZ
12283ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12284echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9926e4a4 12285echo "configure:12286: checking for $ac_hdr" >&5
698dcdb6
VZ
12286if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
12287 echo $ac_n "(cached) $ac_c" 1>&6
12288else
12289 cat > conftest.$ac_ext <<EOF
9926e4a4 12290#line 12291 "configure"
6f72b082 12291#include "confdefs.h"
698dcdb6
VZ
12292#include <$ac_hdr>
12293EOF
12294ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9926e4a4 12295{ (eval echo configure:12296: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
12296ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12297if test -z "$ac_err"; then
12298 rm -rf conftest*
12299 eval "ac_cv_header_$ac_safe=yes"
6f72b082 12300else
698dcdb6
VZ
12301 echo "$ac_err" >&5
12302 echo "configure: failed program was:" >&5
6f72b082 12303 cat conftest.$ac_ext >&5
698dcdb6
VZ
12304 rm -rf conftest*
12305 eval "ac_cv_header_$ac_safe=no"
6f72b082 12306fi
698dcdb6 12307rm -f conftest*
6f72b082 12308fi
698dcdb6
VZ
12309if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12310 echo "$ac_t""yes" 1>&6
12311 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12312 cat >> confdefs.h <<EOF
12313#define $ac_tr_hdr 1
6f72b082 12314EOF
698dcdb6
VZ
12315
12316else
12317 echo "$ac_t""no" 1>&6
6f72b082
OK
12318fi
12319done
12320
9f8148b1 12321for ac_hdr in wchar.h
6f72b082 12322do
698dcdb6
VZ
12323ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12324echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9926e4a4 12325echo "configure:12326: checking for $ac_hdr" >&5
698dcdb6
VZ
12326if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
12327 echo $ac_n "(cached) $ac_c" 1>&6
12328else
12329 cat > conftest.$ac_ext <<EOF
9926e4a4 12330#line 12331 "configure"
6f72b082 12331#include "confdefs.h"
698dcdb6
VZ
12332#include <$ac_hdr>
12333EOF
12334ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9926e4a4 12335{ (eval echo configure:12336: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
12336ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12337if test -z "$ac_err"; then
12338 rm -rf conftest*
12339 eval "ac_cv_header_$ac_safe=yes"
10f2d63a 12340else
698dcdb6
VZ
12341 echo "$ac_err" >&5
12342 echo "configure: failed program was:" >&5
10f2d63a 12343 cat conftest.$ac_ext >&5
698dcdb6
VZ
12344 rm -rf conftest*
12345 eval "ac_cv_header_$ac_safe=no"
10f2d63a 12346fi
698dcdb6 12347rm -f conftest*
10f2d63a 12348fi
698dcdb6
VZ
12349if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12350 echo "$ac_t""yes" 1>&6
12351 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12352 cat >> confdefs.h <<EOF
12353#define $ac_tr_hdr 1
10f2d63a 12354EOF
698dcdb6
VZ
12355
12356else
12357 echo "$ac_t""no" 1>&6
10f2d63a
VZ
12358fi
12359done
12360
9f8148b1 12361for ac_hdr in wcstr.h
0fb0dd83 12362do
698dcdb6
VZ
12363ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12364echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9926e4a4 12365echo "configure:12366: checking for $ac_hdr" >&5
698dcdb6
VZ
12366if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
12367 echo $ac_n "(cached) $ac_c" 1>&6
12368else
12369 cat > conftest.$ac_ext <<EOF
9926e4a4 12370#line 12371 "configure"
0fb0dd83 12371#include "confdefs.h"
698dcdb6
VZ
12372#include <$ac_hdr>
12373EOF
12374ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9926e4a4 12375{ (eval echo configure:12376: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
12376ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12377if test -z "$ac_err"; then
12378 rm -rf conftest*
12379 eval "ac_cv_header_$ac_safe=yes"
0fb0dd83 12380else
698dcdb6
VZ
12381 echo "$ac_err" >&5
12382 echo "configure: failed program was:" >&5
0fb0dd83 12383 cat conftest.$ac_ext >&5
698dcdb6
VZ
12384 rm -rf conftest*
12385 eval "ac_cv_header_$ac_safe=no"
0fb0dd83 12386fi
698dcdb6 12387rm -f conftest*
0fb0dd83 12388fi
698dcdb6
VZ
12389if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12390 echo "$ac_t""yes" 1>&6
12391 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12392 cat >> confdefs.h <<EOF
12393#define $ac_tr_hdr 1
0fb0dd83 12394EOF
698dcdb6
VZ
12395
12396else
12397 echo "$ac_t""no" 1>&6
0fb0dd83
RR
12398fi
12399done
12400
9f8148b1 12401for ac_hdr in wctype.h
1f8ae82f 12402do
698dcdb6
VZ
12403ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12404echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9926e4a4 12405echo "configure:12406: checking for $ac_hdr" >&5
698dcdb6
VZ
12406if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
12407 echo $ac_n "(cached) $ac_c" 1>&6
12408else
12409 cat > conftest.$ac_ext <<EOF
9926e4a4 12410#line 12411 "configure"
1f8ae82f 12411#include "confdefs.h"
698dcdb6
VZ
12412#include <$ac_hdr>
12413EOF
12414ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9926e4a4 12415{ (eval echo configure:12416: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
12416ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12417if test -z "$ac_err"; then
12418 rm -rf conftest*
12419 eval "ac_cv_header_$ac_safe=yes"
1f8ae82f 12420else
698dcdb6
VZ
12421 echo "$ac_err" >&5
12422 echo "configure: failed program was:" >&5
1f8ae82f 12423 cat conftest.$ac_ext >&5
698dcdb6
VZ
12424 rm -rf conftest*
12425 eval "ac_cv_header_$ac_safe=no"
1f8ae82f 12426fi
698dcdb6 12427rm -f conftest*
1f8ae82f 12428fi
698dcdb6
VZ
12429if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12430 echo "$ac_t""yes" 1>&6
12431 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12432 cat >> confdefs.h <<EOF
12433#define $ac_tr_hdr 1
1f8ae82f 12434EOF
698dcdb6
VZ
12435
12436else
12437 echo "$ac_t""no" 1>&6
1f8ae82f
GD
12438fi
12439done
12440
9f8148b1 12441for ac_hdr in fnmatch.h
10f2d63a 12442do
698dcdb6
VZ
12443ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12444echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9926e4a4 12445echo "configure:12446: checking for $ac_hdr" >&5
698dcdb6
VZ
12446if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
12447 echo $ac_n "(cached) $ac_c" 1>&6
12448else
12449 cat > conftest.$ac_ext <<EOF
9926e4a4 12450#line 12451 "configure"
10f2d63a 12451#include "confdefs.h"
698dcdb6
VZ
12452#include <$ac_hdr>
12453EOF
12454ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9926e4a4 12455{ (eval echo configure:12456: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
12456ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12457if test -z "$ac_err"; then
12458 rm -rf conftest*
12459 eval "ac_cv_header_$ac_safe=yes"
10f2d63a 12460else
698dcdb6
VZ
12461 echo "$ac_err" >&5
12462 echo "configure: failed program was:" >&5
10f2d63a 12463 cat conftest.$ac_ext >&5
698dcdb6
VZ
12464 rm -rf conftest*
12465 eval "ac_cv_header_$ac_safe=no"
10f2d63a 12466fi
698dcdb6 12467rm -f conftest*
10f2d63a 12468fi
698dcdb6
VZ
12469if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12470 echo "$ac_t""yes" 1>&6
12471 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12472 cat >> confdefs.h <<EOF
12473#define $ac_tr_hdr 1
10f2d63a 12474EOF
698dcdb6
VZ
12475
12476else
12477 echo "$ac_t""no" 1>&6
10f2d63a
VZ
12478fi
12479done
12480
9f8148b1 12481for ac_hdr in iconv.h
0fbb762e
MB
12482do
12483ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12484echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9926e4a4 12485echo "configure:12486: checking for $ac_hdr" >&5
0fbb762e
MB
12486if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
12487 echo $ac_n "(cached) $ac_c" 1>&6
12488else
12489 cat > conftest.$ac_ext <<EOF
9926e4a4 12490#line 12491 "configure"
0fbb762e
MB
12491#include "confdefs.h"
12492#include <$ac_hdr>
12493EOF
12494ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9926e4a4 12495{ (eval echo configure:12496: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
0fbb762e
MB
12496ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12497if test -z "$ac_err"; then
12498 rm -rf conftest*
12499 eval "ac_cv_header_$ac_safe=yes"
12500else
12501 echo "$ac_err" >&5
12502 echo "configure: failed program was:" >&5
12503 cat conftest.$ac_ext >&5
12504 rm -rf conftest*
12505 eval "ac_cv_header_$ac_safe=no"
12506fi
12507rm -f conftest*
12508fi
12509if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12510 echo "$ac_t""yes" 1>&6
12511 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12512 cat >> confdefs.h <<EOF
12513#define $ac_tr_hdr 1
12514EOF
12515
12516else
12517 echo "$ac_t""no" 1>&6
12518fi
12519done
12520
9f8148b1
GD
12521for ac_hdr in langinfo.h
12522do
12523ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12524echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9926e4a4 12525echo "configure:12526: checking for $ac_hdr" >&5
9f8148b1
GD
12526if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
12527 echo $ac_n "(cached) $ac_c" 1>&6
12528else
12529 cat > conftest.$ac_ext <<EOF
9926e4a4 12530#line 12531 "configure"
9f8148b1
GD
12531#include "confdefs.h"
12532#include <$ac_hdr>
12533EOF
12534ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9926e4a4 12535{ (eval echo configure:12536: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9f8148b1
GD
12536ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12537if test -z "$ac_err"; then
12538 rm -rf conftest*
12539 eval "ac_cv_header_$ac_safe=yes"
12540else
12541 echo "$ac_err" >&5
12542 echo "configure: failed program was:" >&5
12543 cat conftest.$ac_ext >&5
12544 rm -rf conftest*
12545 eval "ac_cv_header_$ac_safe=no"
12546fi
12547rm -f conftest*
12548fi
12549if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12550 echo "$ac_t""yes" 1>&6
12551 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12552 cat >> confdefs.h <<EOF
12553#define $ac_tr_hdr 1
12554EOF
12555
12556else
12557 echo "$ac_t""no" 1>&6
12558fi
12559done
12560
10f2d63a 12561
3a922bb4
RL
12562if test "$wxUSE_GUI" = "yes"; then
12563 if test "$wxUSE_UNIX" = "yes"; then
12564 for ac_hdr in X11/XKBlib.h
29fd3c0c
VS
12565do
12566ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12567echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9926e4a4 12568echo "configure:12569: checking for $ac_hdr" >&5
29fd3c0c
VS
12569if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
12570 echo $ac_n "(cached) $ac_c" 1>&6
12571else
12572 cat > conftest.$ac_ext <<EOF
9926e4a4 12573#line 12574 "configure"
29fd3c0c
VS
12574#include "confdefs.h"
12575#include <$ac_hdr>
12576EOF
12577ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9926e4a4 12578{ (eval echo configure:12579: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
29fd3c0c
VS
12579ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12580if test -z "$ac_err"; then
12581 rm -rf conftest*
12582 eval "ac_cv_header_$ac_safe=yes"
12583else
12584 echo "$ac_err" >&5
12585 echo "configure: failed program was:" >&5
12586 cat conftest.$ac_ext >&5
12587 rm -rf conftest*
12588 eval "ac_cv_header_$ac_safe=no"
12589fi
12590rm -f conftest*
12591fi
12592if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12593 echo "$ac_t""yes" 1>&6
12594 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12595 cat >> confdefs.h <<EOF
12596#define $ac_tr_hdr 1
12597EOF
12598
12599else
12600 echo "$ac_t""no" 1>&6
12601fi
12602done
12603
3a922bb4 12604 fi
29fd3c0c
VS
12605fi
12606
698dcdb6
VZ
12607
12608echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
9926e4a4 12609echo "configure:12610: checking for ANSI C header files" >&5
698dcdb6
VZ
12610if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
12611 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 12612else
698dcdb6 12613 cat > conftest.$ac_ext <<EOF
9926e4a4 12614#line 12615 "configure"
10f2d63a
VZ
12615#include "confdefs.h"
12616#include <stdlib.h>
12617#include <stdarg.h>
12618#include <string.h>
12619#include <float.h>
698dcdb6
VZ
12620EOF
12621ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9926e4a4 12622{ (eval echo configure:12623: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
12623ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12624if test -z "$ac_err"; then
12625 rm -rf conftest*
10f2d63a
VZ
12626 ac_cv_header_stdc=yes
12627else
698dcdb6
VZ
12628 echo "$ac_err" >&5
12629 echo "configure: failed program was:" >&5
10f2d63a 12630 cat conftest.$ac_ext >&5
698dcdb6 12631 rm -rf conftest*
10f2d63a
VZ
12632 ac_cv_header_stdc=no
12633fi
698dcdb6 12634rm -f conftest*
10f2d63a
VZ
12635
12636if test $ac_cv_header_stdc = yes; then
12637 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
698dcdb6 12638cat > conftest.$ac_ext <<EOF
9926e4a4 12639#line 12640 "configure"
10f2d63a
VZ
12640#include "confdefs.h"
12641#include <string.h>
698dcdb6 12642EOF
10f2d63a
VZ
12643if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12644 egrep "memchr" >/dev/null 2>&1; then
12645 :
12646else
698dcdb6 12647 rm -rf conftest*
10f2d63a
VZ
12648 ac_cv_header_stdc=no
12649fi
12650rm -f conftest*
12651
12652fi
12653
12654if test $ac_cv_header_stdc = yes; then
12655 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
698dcdb6 12656cat > conftest.$ac_ext <<EOF
9926e4a4 12657#line 12658 "configure"
10f2d63a
VZ
12658#include "confdefs.h"
12659#include <stdlib.h>
698dcdb6 12660EOF
10f2d63a
VZ
12661if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12662 egrep "free" >/dev/null 2>&1; then
12663 :
12664else
698dcdb6 12665 rm -rf conftest*
10f2d63a
VZ
12666 ac_cv_header_stdc=no
12667fi
12668rm -f conftest*
12669
12670fi
12671
12672if test $ac_cv_header_stdc = yes; then
12673 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
698dcdb6 12674if test "$cross_compiling" = yes; then
10f2d63a
VZ
12675 :
12676else
698dcdb6 12677 cat > conftest.$ac_ext <<EOF
9926e4a4 12678#line 12679 "configure"
10f2d63a
VZ
12679#include "confdefs.h"
12680#include <ctype.h>
698dcdb6
VZ
12681#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
12682#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1e487827 12683#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
698dcdb6
VZ
12684int main () { int i; for (i = 0; i < 256; i++)
12685if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
12686exit (0); }
12687
12688EOF
9926e4a4 12689if { (eval echo configure:12690: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
698dcdb6 12690then
10f2d63a
VZ
12691 :
12692else
698dcdb6
VZ
12693 echo "configure: failed program was:" >&5
12694 cat conftest.$ac_ext >&5
12695 rm -fr conftest*
12696 ac_cv_header_stdc=no
10f2d63a 12697fi
698dcdb6 12698rm -fr conftest*
10f2d63a 12699fi
698dcdb6 12700
10f2d63a
VZ
12701fi
12702fi
1e487827 12703
698dcdb6
VZ
12704echo "$ac_t""$ac_cv_header_stdc" 1>&6
12705if test $ac_cv_header_stdc = yes; then
12706 cat >> confdefs.h <<\EOF
10f2d63a
VZ
12707#define STDC_HEADERS 1
12708EOF
12709
12710fi
12711
698dcdb6 12712echo $ac_n "checking for mode_t""... $ac_c" 1>&6
9926e4a4 12713echo "configure:12714: checking for mode_t" >&5
698dcdb6
VZ
12714if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
12715 echo $ac_n "(cached) $ac_c" 1>&6
1e487827 12716else
698dcdb6 12717 cat > conftest.$ac_ext <<EOF
9926e4a4 12718#line 12719 "configure"
1e487827 12719#include "confdefs.h"
698dcdb6
VZ
12720#include <sys/types.h>
12721#if STDC_HEADERS
12722#include <stdlib.h>
12723#include <stddef.h>
12724#endif
12725EOF
12726if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12727 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
12728 rm -rf conftest*
10f2d63a
VZ
12729 ac_cv_type_mode_t=yes
12730else
698dcdb6
VZ
12731 rm -rf conftest*
12732 ac_cv_type_mode_t=no
703e0a69 12733fi
698dcdb6 12734rm -f conftest*
1e487827 12735
698dcdb6
VZ
12736fi
12737echo "$ac_t""$ac_cv_type_mode_t" 1>&6
12738if test $ac_cv_type_mode_t = no; then
12739 cat >> confdefs.h <<\EOF
10f2d63a
VZ
12740#define mode_t int
12741EOF
12742
12743fi
12744
698dcdb6 12745echo $ac_n "checking for off_t""... $ac_c" 1>&6
9926e4a4 12746echo "configure:12747: checking for off_t" >&5
698dcdb6
VZ
12747if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
12748 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 12749else
698dcdb6 12750 cat > conftest.$ac_ext <<EOF
9926e4a4 12751#line 12752 "configure"
10f2d63a 12752#include "confdefs.h"
698dcdb6
VZ
12753#include <sys/types.h>
12754#if STDC_HEADERS
12755#include <stdlib.h>
12756#include <stddef.h>
12757#endif
12758EOF
12759if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12760 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
12761 rm -rf conftest*
10f2d63a
VZ
12762 ac_cv_type_off_t=yes
12763else
698dcdb6
VZ
12764 rm -rf conftest*
12765 ac_cv_type_off_t=no
703e0a69 12766fi
698dcdb6 12767rm -f conftest*
1e487827 12768
698dcdb6
VZ
12769fi
12770echo "$ac_t""$ac_cv_type_off_t" 1>&6
12771if test $ac_cv_type_off_t = no; then
12772 cat >> confdefs.h <<\EOF
10f2d63a
VZ
12773#define off_t long
12774EOF
12775
12776fi
12777
698dcdb6 12778echo $ac_n "checking for pid_t""... $ac_c" 1>&6
9926e4a4 12779echo "configure:12780: checking for pid_t" >&5
698dcdb6
VZ
12780if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
12781 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 12782else
698dcdb6 12783 cat > conftest.$ac_ext <<EOF
9926e4a4 12784#line 12785 "configure"
10f2d63a 12785#include "confdefs.h"
698dcdb6
VZ
12786#include <sys/types.h>
12787#if STDC_HEADERS
12788#include <stdlib.h>
12789#include <stddef.h>
12790#endif
12791EOF
12792if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12793 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
12794 rm -rf conftest*
10f2d63a
VZ
12795 ac_cv_type_pid_t=yes
12796else
698dcdb6
VZ
12797 rm -rf conftest*
12798 ac_cv_type_pid_t=no
703e0a69 12799fi
698dcdb6 12800rm -f conftest*
1e487827 12801
698dcdb6
VZ
12802fi
12803echo "$ac_t""$ac_cv_type_pid_t" 1>&6
12804if test $ac_cv_type_pid_t = no; then
12805 cat >> confdefs.h <<\EOF
10f2d63a
VZ
12806#define pid_t int
12807EOF
12808
12809fi
12810
698dcdb6 12811echo $ac_n "checking for size_t""... $ac_c" 1>&6
9926e4a4 12812echo "configure:12813: checking for size_t" >&5
698dcdb6
VZ
12813if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
12814 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 12815else
698dcdb6 12816 cat > conftest.$ac_ext <<EOF
9926e4a4 12817#line 12818 "configure"
10f2d63a 12818#include "confdefs.h"
698dcdb6
VZ
12819#include <sys/types.h>
12820#if STDC_HEADERS
12821#include <stdlib.h>
12822#include <stddef.h>
12823#endif
12824EOF
12825if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12826 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
12827 rm -rf conftest*
10f2d63a
VZ
12828 ac_cv_type_size_t=yes
12829else
698dcdb6
VZ
12830 rm -rf conftest*
12831 ac_cv_type_size_t=no
703e0a69 12832fi
698dcdb6 12833rm -f conftest*
1e487827 12834
698dcdb6
VZ
12835fi
12836echo "$ac_t""$ac_cv_type_size_t" 1>&6
12837if test $ac_cv_type_size_t = no; then
12838 cat >> confdefs.h <<\EOF
10f2d63a
VZ
12839#define size_t unsigned
12840EOF
12841
12842fi
12843
698dcdb6 12844echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
9926e4a4 12845echo "configure:12846: checking for uid_t in sys/types.h" >&5
698dcdb6
VZ
12846if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
12847 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 12848else
698dcdb6 12849 cat > conftest.$ac_ext <<EOF
9926e4a4 12850#line 12851 "configure"
10f2d63a
VZ
12851#include "confdefs.h"
12852#include <sys/types.h>
698dcdb6 12853EOF
10f2d63a
VZ
12854if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12855 egrep "uid_t" >/dev/null 2>&1; then
698dcdb6 12856 rm -rf conftest*
10f2d63a
VZ
12857 ac_cv_type_uid_t=yes
12858else
698dcdb6 12859 rm -rf conftest*
10f2d63a
VZ
12860 ac_cv_type_uid_t=no
12861fi
12862rm -f conftest*
12863
12864fi
1e487827 12865
698dcdb6
VZ
12866echo "$ac_t""$ac_cv_type_uid_t" 1>&6
12867if test $ac_cv_type_uid_t = no; then
12868 cat >> confdefs.h <<\EOF
10f2d63a
VZ
12869#define uid_t int
12870EOF
12871
698dcdb6 12872 cat >> confdefs.h <<\EOF
10f2d63a
VZ
12873#define gid_t int
12874EOF
12875
12876fi
12877
1e487827 12878
698dcdb6 12879echo $ac_n "checking for wchar_t""... $ac_c" 1>&6
9926e4a4 12880echo "configure:12881: checking for wchar_t" >&5
698dcdb6
VZ
12881if eval "test \"`echo '$''{'wx_cv_type_wchar_t'+set}'`\" = set"; then
12882 echo $ac_n "(cached) $ac_c" 1>&6
12883else
12884
12885 cat > conftest.$ac_ext <<EOF
9926e4a4 12886#line 12887 "configure"
0046ff7c 12887#include "confdefs.h"
4b42290e
GD
12888
12889 #ifdef HAVE_WCHAR_H
0fbb762e
MB
12890 # ifdef __CYGWIN__
12891 # include <stddef.h>
12892 # endif
4b42290e
GD
12893 # include <wchar.h>
12894 #endif
12895 #ifdef HAVE_STDLIB_H
12896 # include <stdlib.h>
12897 #endif
12898
698dcdb6 12899int main() {
0046ff7c 12900
d836ee96
VZ
12901 wchar_t wc, *ws;
12902 wc = L'a';
12903 ws = L"Hello, world!";
698dcdb6
VZ
12904
12905; return 0; }
12906EOF
9926e4a4 12907if { (eval echo configure:12908: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6 12908 rm -rf conftest*
1f8ae82f 12909 wx_cv_type_wchar_t=yes
0046ff7c 12910else
698dcdb6
VZ
12911 echo "configure: failed program was:" >&5
12912 cat conftest.$ac_ext >&5
12913 rm -rf conftest*
12914 wx_cv_type_wchar_t=no
d836ee96 12915
6232543b 12916fi
698dcdb6 12917rm -f conftest*
703e0a69 12918
1e487827 12919fi
698dcdb6
VZ
12920
12921echo "$ac_t""$wx_cv_type_wchar_t" 1>&6
d836ee96
VZ
12922
12923if test "$wx_cv_type_wchar_t" = "yes"; then
698dcdb6 12924 cat >> confdefs.h <<\EOF
0046ff7c
VS
12925#define wxUSE_WCHAR_T 1
12926EOF
12927
12928fi
12929
19af3b06
VZ
12930
12931ac_ext=C
12932# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12933ac_cpp='$CXXCPP $CPPFLAGS'
12934ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12935ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12936cross_compiling=$ac_cv_prog_cxx_cross
12937
d836ee96 12938echo $ac_n "checking if size_t is unsigned int""... $ac_c" 1>&6
9926e4a4 12939echo "configure:12940: checking if size_t is unsigned int" >&5
d836ee96
VZ
12940if eval "test \"`echo '$''{'wx_cv_size_t_is_uint'+set}'`\" = set"; then
12941 echo $ac_n "(cached) $ac_c" 1>&6
12942else
dd2c8b7c 12943 cat > conftest.$ac_ext <<EOF
9926e4a4 12944#line 12945 "configure"
d836ee96
VZ
12945#include "confdefs.h"
12946#include <stddef.h>
12947int main() {
12948
dd2c8b7c
VZ
12949 return 0; }
12950
d836ee96 12951 struct Foo { void foo(size_t); void foo(unsigned int); };
dd2c8b7c
VZ
12952
12953 int bar() {
d836ee96
VZ
12954
12955; return 0; }
12956EOF
9926e4a4 12957if { (eval echo configure:12958: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d836ee96
VZ
12958 rm -rf conftest*
12959 wx_cv_size_t_is_uint=no
12960else
12961 echo "configure: failed program was:" >&5
12962 cat conftest.$ac_ext >&5
12963 rm -rf conftest*
12964 wx_cv_size_t_is_uint=yes
12965
12966fi
12967rm -f conftest*
12968
12969fi
12970
12971echo "$ac_t""$wx_cv_size_t_is_uint" 1>&6
12972
12973if test "$wx_cv_size_t_is_uint" = "yes"; then
12974 cat >> confdefs.h <<\EOF
12975#define wxSIZE_T_IS_UINT 1
12976EOF
12977
12978else
12979 echo $ac_n "checking if size_t is unsigned long""... $ac_c" 1>&6
9926e4a4 12980echo "configure:12981: checking if size_t is unsigned long" >&5
d836ee96
VZ
12981if eval "test \"`echo '$''{'wx_cv_size_t_is_ulong'+set}'`\" = set"; then
12982 echo $ac_n "(cached) $ac_c" 1>&6
12983else
12984 cat > conftest.$ac_ext <<EOF
9926e4a4 12985#line 12986 "configure"
d836ee96
VZ
12986#include "confdefs.h"
12987#include <stddef.h>
12988int main() {
12989
dd2c8b7c
VZ
12990 return 0; }
12991
d836ee96 12992 struct Foo { void foo(size_t); void foo(unsigned long); };
dd2c8b7c
VZ
12993
12994 int bar() {
d836ee96
VZ
12995
12996; return 0; }
12997EOF
9926e4a4 12998if { (eval echo configure:12999: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d836ee96
VZ
12999 rm -rf conftest*
13000 wx_cv_size_t_is_ulong=no
13001else
13002 echo "configure: failed program was:" >&5
13003 cat conftest.$ac_ext >&5
13004 rm -rf conftest*
13005 wx_cv_size_t_is_ulong=yes
13006
13007fi
13008rm -f conftest*
13009
13010fi
13011
13012echo "$ac_t""$wx_cv_size_t_is_ulong" 1>&6
13013
13014 if test "$wx_cv_size_t_is_ulong" = "yes"; then
13015 cat >> confdefs.h <<\EOF
13016#define wxSIZE_T_IS_ULONG 1
13017EOF
13018
13019 fi
13020fi
13021
19af3b06
VZ
13022ac_ext=c
13023# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13024ac_cpp='$CPP $CPPFLAGS'
13025ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13026ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13027cross_compiling=$ac_cv_prog_cc_cross
13028
13029
1e487827 13030
698dcdb6 13031echo $ac_n "checking for pw_gecos in struct passwd""... $ac_c" 1>&6
9926e4a4 13032echo "configure:13033: checking for pw_gecos in struct passwd" >&5
698dcdb6
VZ
13033if eval "test \"`echo '$''{'wx_cv_struct_pw_gecos'+set}'`\" = set"; then
13034 echo $ac_n "(cached) $ac_c" 1>&6
13035else
13036
13037 cat > conftest.$ac_ext <<EOF
9926e4a4 13038#line 13039 "configure"
b12915c1
VZ
13039#include "confdefs.h"
13040#include <pwd.h>
698dcdb6 13041int main() {
b12915c1
VZ
13042
13043 char *p;
13044 struct passwd *pw;
13045 p = pw->pw_gecos;
698dcdb6
VZ
13046
13047; return 0; }
13048EOF
9926e4a4 13049if { (eval echo configure:13050: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6
VZ
13050 rm -rf conftest*
13051
b12915c1 13052 wx_cv_struct_pw_gecos=yes
698dcdb6 13053
b12915c1 13054else
698dcdb6
VZ
13055 echo "configure: failed program was:" >&5
13056 cat conftest.$ac_ext >&5
13057 rm -rf conftest*
13058
b12915c1 13059 wx_cv_struct_pw_gecos=no
698dcdb6
VZ
13060
13061
6232543b 13062fi
698dcdb6
VZ
13063rm -f conftest*
13064
703e0a69 13065
1e487827 13066fi
698dcdb6
VZ
13067
13068echo "$ac_t""$wx_cv_struct_pw_gecos" 1>&6
b12915c1 13069
bd3277fe 13070if test "$wx_cv_struct_pw_gecos" = "yes"; then
698dcdb6 13071 cat >> confdefs.h <<\EOF
bd3277fe
VZ
13072#define HAVE_PW_GECOS 1
13073EOF
13074
13075fi
13076
698dcdb6
VZ
13077
13078echo $ac_n "checking for working const""... $ac_c" 1>&6
9926e4a4 13079echo "configure:13080: checking for working const" >&5
698dcdb6
VZ
13080if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
13081 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 13082else
698dcdb6 13083 cat > conftest.$ac_ext <<EOF
9926e4a4 13084#line 13085 "configure"
10f2d63a 13085#include "confdefs.h"
698dcdb6
VZ
13086
13087int main() {
13088
13089/* Ultrix mips cc rejects this. */
9f8148b1 13090typedef int charset[2]; const charset x;
698dcdb6
VZ
13091/* SunOS 4.1.1 cc rejects this. */
13092char const *const *ccp;
13093char **p;
13094/* NEC SVR4.0.2 mips cc rejects this. */
13095struct point {int x, y;};
13096static struct point const zero = {0,0};
13097/* AIX XL C 1.02.0.0 rejects this.
13098 It does not let you subtract one const X* pointer from another in an arm
13099 of an if-expression whose if-part is not a constant expression */
13100const char *g = "string";
13101ccp = &g + (g ? g-g : 0);
13102/* HPUX 7.0 cc rejects these. */
13103++ccp;
13104p = (char**) ccp;
13105ccp = (char const *const *) p;
13106{ /* SCO 3.2v4 cc rejects this. */
13107 char *t;
13108 char const *s = 0 ? (char *) 0 : (char const *) 0;
13109
13110 *t++ = 0;
10f2d63a 13111}
698dcdb6
VZ
13112{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
13113 int x[] = {25, 17};
13114 const int *foo = &x[0];
13115 ++foo;
703e0a69 13116}
698dcdb6
VZ
13117{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
13118 typedef const int *iptr;
13119 iptr p = 0;
13120 ++p;
6232543b 13121}
698dcdb6
VZ
13122{ /* AIX XL C 1.02.0.0 rejects this saying
13123 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
13124 struct s { int j; const int *ap[3]; };
13125 struct s *b; b->j = 5;
1e487827 13126}
698dcdb6
VZ
13127{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
13128 const int foo = 10;
13129}
4f14bcd8
GD
13130
13131; return 0; }
698dcdb6 13132EOF
9926e4a4 13133if { (eval echo configure:13134: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4f14bcd8
GD
13134 rm -rf conftest*
13135 ac_cv_c_const=yes
698dcdb6
VZ
13136else
13137 echo "configure: failed program was:" >&5
13138 cat conftest.$ac_ext >&5
4f14bcd8
GD
13139 rm -rf conftest*
13140 ac_cv_c_const=no
703e0a69 13141fi
4f14bcd8 13142rm -f conftest*
698dcdb6
VZ
13143fi
13144
4f14bcd8
GD
13145echo "$ac_t""$ac_cv_c_const" 1>&6
13146if test $ac_cv_c_const = no; then
13147 cat >> confdefs.h <<\EOF
13148#define const
698dcdb6
VZ
13149EOF
13150
4f14bcd8 13151fi
698dcdb6 13152
4f14bcd8 13153echo $ac_n "checking for inline""... $ac_c" 1>&6
9926e4a4 13154echo "configure:13155: checking for inline" >&5
4f14bcd8 13155if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
698dcdb6 13156 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 13157else
4f14bcd8
GD
13158 ac_cv_c_inline=no
13159for ac_kw in inline __inline__ __inline; do
698dcdb6 13160 cat > conftest.$ac_ext <<EOF
9926e4a4 13161#line 13162 "configure"
10f2d63a 13162#include "confdefs.h"
4f14bcd8
GD
13163
13164int main() {
9f8148b1 13165} $ac_kw foo() {
4f14bcd8 13166; return 0; }
698dcdb6 13167EOF
9926e4a4 13168if { (eval echo configure:13169: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4f14bcd8
GD
13169 rm -rf conftest*
13170 ac_cv_c_inline=$ac_kw; break
10f2d63a 13171else
698dcdb6
VZ
13172 echo "configure: failed program was:" >&5
13173 cat conftest.$ac_ext >&5
10f2d63a 13174fi
4f14bcd8
GD
13175rm -f conftest*
13176done
698dcdb6 13177
10f2d63a 13178fi
4f14bcd8
GD
13179
13180echo "$ac_t""$ac_cv_c_inline" 1>&6
13181case "$ac_cv_c_inline" in
13182 inline | yes) ;;
13183 no) cat >> confdefs.h <<\EOF
13184#define inline
13185EOF
13186 ;;
13187 *) cat >> confdefs.h <<EOF
13188#define inline $ac_cv_c_inline
698dcdb6 13189EOF
4f14bcd8
GD
13190 ;;
13191esac
698dcdb6
VZ
13192
13193
4f14bcd8 13194echo $ac_n "checking size of char""... $ac_c" 1>&6
9926e4a4 13195echo "configure:13196: checking size of char" >&5
4f14bcd8 13196if eval "test \"`echo '$''{'ac_cv_sizeof_char'+set}'`\" = set"; then
698dcdb6
VZ
13197 echo $ac_n "(cached) $ac_c" 1>&6
13198else
13199 if test "$cross_compiling" = yes; then
4f14bcd8 13200 ac_cv_sizeof_char=1
698dcdb6
VZ
13201else
13202 cat > conftest.$ac_ext <<EOF
9926e4a4 13203#line 13204 "configure"
698dcdb6
VZ
13204#include "confdefs.h"
13205#include <stdio.h>
13206main()
13207{
13208 FILE *f=fopen("conftestval", "w");
13209 if (!f) exit(1);
4f14bcd8 13210 fprintf(f, "%d\n", sizeof(char));
698dcdb6
VZ
13211 exit(0);
13212}
13213EOF
9926e4a4 13214if { (eval echo configure:13215: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
698dcdb6 13215then
4f14bcd8 13216 ac_cv_sizeof_char=`cat conftestval`
6232543b 13217else
698dcdb6
VZ
13218 echo "configure: failed program was:" >&5
13219 cat conftest.$ac_ext >&5
13220 rm -fr conftest*
4f14bcd8 13221 ac_cv_sizeof_char=0
6232543b 13222fi
698dcdb6
VZ
13223rm -fr conftest*
13224fi
13225
703e0a69 13226fi
4f14bcd8 13227echo "$ac_t""$ac_cv_sizeof_char" 1>&6
698dcdb6 13228cat >> confdefs.h <<EOF
4f14bcd8 13229#define SIZEOF_CHAR $ac_cv_sizeof_char
10f2d63a
VZ
13230EOF
13231
1e487827 13232
4f14bcd8 13233echo $ac_n "checking size of short""... $ac_c" 1>&6
9926e4a4 13234echo "configure:13235: checking size of short" >&5
4f14bcd8 13235if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
698dcdb6
VZ
13236 echo $ac_n "(cached) $ac_c" 1>&6
13237else
4f14bcd8
GD
13238 if test "$cross_compiling" = yes; then
13239 ac_cv_sizeof_short=2
b93d0d08 13240else
698dcdb6 13241 cat > conftest.$ac_ext <<EOF
9926e4a4 13242#line 13243 "configure"
b93d0d08 13243#include "confdefs.h"
4f14bcd8
GD
13244#include <stdio.h>
13245main()
13246{
13247 FILE *f=fopen("conftestval", "w");
13248 if (!f) exit(1);
13249 fprintf(f, "%d\n", sizeof(short));
13250 exit(0);
13251}
698dcdb6 13252EOF
9926e4a4 13253if { (eval echo configure:13254: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
698dcdb6 13254then
4f14bcd8 13255 ac_cv_sizeof_short=`cat conftestval`
b93d0d08 13256else
698dcdb6
VZ
13257 echo "configure: failed program was:" >&5
13258 cat conftest.$ac_ext >&5
13259 rm -fr conftest*
4f14bcd8 13260 ac_cv_sizeof_short=0
b93d0d08 13261fi
698dcdb6 13262rm -fr conftest*
b93d0d08
VS
13263fi
13264
b93d0d08 13265fi
4f14bcd8 13266echo "$ac_t""$ac_cv_sizeof_short" 1>&6
698dcdb6 13267cat >> confdefs.h <<EOF
4f14bcd8 13268#define SIZEOF_SHORT $ac_cv_sizeof_short
b93d0d08
VS
13269EOF
13270
698dcdb6 13271
4f14bcd8 13272echo $ac_n "checking size of int *""... $ac_c" 1>&6
9926e4a4 13273echo "configure:13274: checking size of int *" >&5
4f14bcd8 13274if eval "test \"`echo '$''{'ac_cv_sizeof_int_p'+set}'`\" = set"; then
698dcdb6 13275 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 13276else
4f14bcd8
GD
13277 if test "$cross_compiling" = yes; then
13278 ac_cv_sizeof_int_p=4
3a922bb4 13279else
3a922bb4 13280 cat > conftest.$ac_ext <<EOF
9926e4a4 13281#line 13282 "configure"
3a922bb4 13282#include "confdefs.h"
4f14bcd8
GD
13283#include <stdio.h>
13284main()
13285{
13286 FILE *f=fopen("conftestval", "w");
13287 if (!f) exit(1);
13288 fprintf(f, "%d\n", sizeof(int *));
13289 exit(0);
13290}
13291EOF
9926e4a4 13292if { (eval echo configure:13293: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4f14bcd8
GD
13293then
13294 ac_cv_sizeof_int_p=`cat conftestval`
13295else
13296 echo "configure: failed program was:" >&5
13297 cat conftest.$ac_ext >&5
13298 rm -fr conftest*
13299 ac_cv_sizeof_int_p=0
3a922bb4 13300fi
4f14bcd8 13301rm -fr conftest*
3a922bb4 13302fi
698dcdb6 13303
4f14bcd8
GD
13304fi
13305echo "$ac_t""$ac_cv_sizeof_int_p" 1>&6
13306cat >> confdefs.h <<EOF
13307#define SIZEOF_INT_P $ac_cv_sizeof_int_p
10f2d63a
VZ
13308EOF
13309
703e0a69 13310
4f14bcd8 13311echo $ac_n "checking size of int""... $ac_c" 1>&6
9926e4a4 13312echo "configure:13313: checking size of int" >&5
4f14bcd8 13313if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
698dcdb6 13314 echo $ac_n "(cached) $ac_c" 1>&6
4f14bcd8
GD
13315else
13316 if test "$cross_compiling" = yes; then
13317 ac_cv_sizeof_int=4
698dcdb6
VZ
13318else
13319 cat > conftest.$ac_ext <<EOF
9926e4a4 13320#line 13321 "configure"
10f2d63a 13321#include "confdefs.h"
4f14bcd8
GD
13322#include <stdio.h>
13323main()
13324{
13325 FILE *f=fopen("conftestval", "w");
13326 if (!f) exit(1);
13327 fprintf(f, "%d\n", sizeof(int));
13328 exit(0);
13329}
698dcdb6 13330EOF
9926e4a4 13331if { (eval echo configure:13332: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4f14bcd8
GD
13332then
13333 ac_cv_sizeof_int=`cat conftestval`
10f2d63a 13334else
698dcdb6 13335 echo "configure: failed program was:" >&5
10f2d63a 13336 cat conftest.$ac_ext >&5
4f14bcd8
GD
13337 rm -fr conftest*
13338 ac_cv_sizeof_int=0
10f2d63a 13339fi
4f14bcd8 13340rm -fr conftest*
10f2d63a 13341fi
10f2d63a 13342
4f14bcd8
GD
13343fi
13344echo "$ac_t""$ac_cv_sizeof_int" 1>&6
13345cat >> confdefs.h <<EOF
13346#define SIZEOF_INT $ac_cv_sizeof_int
10f2d63a
VZ
13347EOF
13348
698dcdb6 13349
4f14bcd8 13350echo $ac_n "checking size of long""... $ac_c" 1>&6
9926e4a4 13351echo "configure:13352: checking size of long" >&5
4f14bcd8 13352if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
698dcdb6
VZ
13353 echo $ac_n "(cached) $ac_c" 1>&6
13354else
4f14bcd8
GD
13355 if test "$cross_compiling" = yes; then
13356 ac_cv_sizeof_long=4
13357else
13358 cat > conftest.$ac_ext <<EOF
9926e4a4 13359#line 13360 "configure"
10f2d63a 13360#include "confdefs.h"
4f14bcd8
GD
13361#include <stdio.h>
13362main()
13363{
13364 FILE *f=fopen("conftestval", "w");
13365 if (!f) exit(1);
13366 fprintf(f, "%d\n", sizeof(long));
13367 exit(0);
13368}
698dcdb6 13369EOF
9926e4a4 13370if { (eval echo configure:13371: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4f14bcd8
GD
13371then
13372 ac_cv_sizeof_long=`cat conftestval`
10f2d63a 13373else
698dcdb6
VZ
13374 echo "configure: failed program was:" >&5
13375 cat conftest.$ac_ext >&5
4f14bcd8
GD
13376 rm -fr conftest*
13377 ac_cv_sizeof_long=0
10f2d63a 13378fi
4f14bcd8 13379rm -fr conftest*
10f2d63a 13380fi
698dcdb6 13381
4f14bcd8
GD
13382fi
13383echo "$ac_t""$ac_cv_sizeof_long" 1>&6
13384cat >> confdefs.h <<EOF
13385#define SIZEOF_LONG $ac_cv_sizeof_long
10f2d63a
VZ
13386EOF
13387
698dcdb6 13388
4f14bcd8 13389echo $ac_n "checking size of long long""... $ac_c" 1>&6
9926e4a4 13390echo "configure:13391: checking size of long long" >&5
4f14bcd8 13391if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
698dcdb6 13392 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 13393else
4f14bcd8
GD
13394 if test "$cross_compiling" = yes; then
13395 ac_cv_sizeof_long_long=0
13396else
13397 cat > conftest.$ac_ext <<EOF
9926e4a4 13398#line 13399 "configure"
10f2d63a 13399#include "confdefs.h"
4f14bcd8
GD
13400#include <stdio.h>
13401main()
13402{
13403 FILE *f=fopen("conftestval", "w");
13404 if (!f) exit(1);
13405 fprintf(f, "%d\n", sizeof(long long));
13406 exit(0);
13407}
698dcdb6 13408EOF
9926e4a4 13409if { (eval echo configure:13410: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4f14bcd8
GD
13410then
13411 ac_cv_sizeof_long_long=`cat conftestval`
698dcdb6
VZ
13412else
13413 echo "configure: failed program was:" >&5
13414 cat conftest.$ac_ext >&5
4f14bcd8
GD
13415 rm -fr conftest*
13416 ac_cv_sizeof_long_long=0
13417fi
13418rm -fr conftest*
698dcdb6 13419fi
698dcdb6
VZ
13420
13421fi
4f14bcd8
GD
13422echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
13423cat >> confdefs.h <<EOF
13424#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
10f2d63a
VZ
13425EOF
13426
10f2d63a 13427
4f14bcd8
GD
13428
13429echo $ac_n "checking size of wchar_t""... $ac_c" 1>&6
9926e4a4 13430echo "configure:13431: checking size of wchar_t" >&5
4f14bcd8 13431if eval "test \"`echo '$''{'wx_cv_sizeof_wchar_t'+set}'`\" = set"; then
698dcdb6 13432 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 13433else
4f14bcd8
GD
13434
13435 if test "$cross_compiling" = yes; then
13436 wx_cv_sizeof_wchar_t=4
13437
13438else
13439 cat > conftest.$ac_ext <<EOF
9926e4a4 13440#line 13441 "configure"
10f2d63a 13441#include "confdefs.h"
698dcdb6 13442
4f14bcd8 13443 #ifdef HAVE_WCHAR_H
0fbb762e
MB
13444 # ifdef __CYGWIN__
13445 # include <stddef.h>
13446 # endif
4f14bcd8
GD
13447 # include <wchar.h>
13448 #endif
13449 #ifdef HAVE_STDLIB_H
13450 # include <stdlib.h>
13451 #endif
13452 #include <stdio.h>
13453 int main()
13454 {
13455 FILE *f=fopen("conftestval", "w");
13456 if (!f) exit(1);
13457 fprintf(f, "%i", sizeof(wchar_t));
13458 exit(0);
13459 }
13460
698dcdb6 13461EOF
9926e4a4 13462if { (eval echo configure:13463: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4f14bcd8
GD
13463then
13464 wx_cv_sizeof_wchar_t=`cat conftestval`
698dcdb6
VZ
13465else
13466 echo "configure: failed program was:" >&5
13467 cat conftest.$ac_ext >&5
4f14bcd8
GD
13468 rm -fr conftest*
13469 wx_cv_sizeof_wchar_t=0
698dcdb6 13470fi
4f14bcd8
GD
13471rm -fr conftest*
13472fi
13473
698dcdb6
VZ
13474
13475fi
4f14bcd8
GD
13476
13477echo "$ac_t""$wx_cv_sizeof_wchar_t" 1>&6
13478
13479cat >> confdefs.h <<EOF
13480#define SIZEOF_WCHAR_T $wx_cv_sizeof_wchar_t
10f2d63a
VZ
13481EOF
13482
18dbb1f6 13483
4f14bcd8 13484echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
9926e4a4 13485echo "configure:13486: checking whether byte ordering is bigendian" >&5
4f14bcd8 13486if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
18dbb1f6
VZ
13487 echo $ac_n "(cached) $ac_c" 1>&6
13488else
4f14bcd8
GD
13489 ac_cv_c_bigendian=unknown
13490# See if sys/param.h defines the BYTE_ORDER macro.
18dbb1f6 13491cat > conftest.$ac_ext <<EOF
9926e4a4 13492#line 13493 "configure"
18dbb1f6 13493#include "confdefs.h"
4f14bcd8
GD
13494#include <sys/types.h>
13495#include <sys/param.h>
13496int main() {
18dbb1f6 13497
4f14bcd8
GD
13498#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
13499 bogus endian macros
13500#endif
13501; return 0; }
13502EOF
9926e4a4 13503if { (eval echo configure:13504: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4f14bcd8
GD
13504 rm -rf conftest*
13505 # It does; now see whether it defined to BIG_ENDIAN or not.
13506cat > conftest.$ac_ext <<EOF
9926e4a4 13507#line 13508 "configure"
4f14bcd8
GD
13508#include "confdefs.h"
13509#include <sys/types.h>
13510#include <sys/param.h>
18dbb1f6 13511int main() {
4f14bcd8
GD
13512
13513#if BYTE_ORDER != BIG_ENDIAN
13514 not big endian
13515#endif
18dbb1f6
VZ
13516; return 0; }
13517EOF
9926e4a4 13518if { (eval echo configure:13519: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18dbb1f6 13519 rm -rf conftest*
4f14bcd8 13520 ac_cv_c_bigendian=yes
18dbb1f6
VZ
13521else
13522 echo "configure: failed program was:" >&5
13523 cat conftest.$ac_ext >&5
13524 rm -rf conftest*
4f14bcd8 13525 ac_cv_c_bigendian=no
18dbb1f6
VZ
13526fi
13527rm -f conftest*
698dcdb6 13528else
4f14bcd8
GD
13529 echo "configure: failed program was:" >&5
13530 cat conftest.$ac_ext >&5
1e487827 13531fi
4f14bcd8
GD
13532rm -f conftest*
13533if test $ac_cv_c_bigendian = unknown; then
13534if test "$cross_compiling" = yes; then
13535 ac_cv_c_bigendian=unknown
b3e8d00a
VZ
13536else
13537 cat > conftest.$ac_ext <<EOF
9926e4a4 13538#line 13539 "configure"
b3e8d00a 13539#include "confdefs.h"
4f14bcd8
GD
13540main () {
13541 /* Are we little or big endian? From Harbison&Steele. */
13542 union
13543 {
13544 long l;
13545 char c[sizeof (long)];
13546 } u;
13547 u.l = 1;
13548 exit (u.c[sizeof (long) - 1] == 1);
13549}
b3e8d00a 13550EOF
9926e4a4 13551if { (eval echo configure:13552: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4f14bcd8
GD
13552then
13553 ac_cv_c_bigendian=no
b3e8d00a
VZ
13554else
13555 echo "configure: failed program was:" >&5
13556 cat conftest.$ac_ext >&5
4f14bcd8
GD
13557 rm -fr conftest*
13558 ac_cv_c_bigendian=yes
b3e8d00a 13559fi
4f14bcd8 13560rm -fr conftest*
b3e8d00a
VZ
13561fi
13562
4f14bcd8
GD
13563fi
13564fi
13565
13566echo "$ac_t""$ac_cv_c_bigendian" 1>&6
13567if test $ac_cv_c_bigendian = unknown; then
13568 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
13569fi
13570if test $ac_cv_c_bigendian = yes; then
13571 cat >> confdefs.h <<\EOF
13572#define WORDS_BIGENDIAN 1
b3e8d00a 13573EOF
4f14bcd8 13574
b3e8d00a 13575fi
b3e8d00a
VZ
13576
13577
4f14bcd8 13578echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
9926e4a4 13579echo "configure:13580: checking how to run the C++ preprocessor" >&5
4f14bcd8
GD
13580if test -z "$CXXCPP"; then
13581if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
698dcdb6
VZ
13582 echo $ac_n "(cached) $ac_c" 1>&6
13583else
4f14bcd8
GD
13584 ac_ext=C
13585# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13586ac_cpp='$CXXCPP $CPPFLAGS'
13587ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13588ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13589cross_compiling=$ac_cv_prog_cxx_cross
13590 CXXCPP="${CXX-g++} -E"
698dcdb6 13591 cat > conftest.$ac_ext <<EOF
9926e4a4 13592#line 13593 "configure"
10f2d63a 13593#include "confdefs.h"
4f14bcd8 13594#include <stdlib.h>
698dcdb6 13595EOF
4f14bcd8 13596ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9926e4a4 13597{ (eval echo configure:13598: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4f14bcd8
GD
13598ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13599if test -z "$ac_err"; then
13600 :
698dcdb6 13601else
4f14bcd8 13602 echo "$ac_err" >&5
698dcdb6
VZ
13603 echo "configure: failed program was:" >&5
13604 cat conftest.$ac_ext >&5
13605 rm -rf conftest*
4f14bcd8 13606 CXXCPP=/lib/cpp
698dcdb6
VZ
13607fi
13608rm -f conftest*
4f14bcd8
GD
13609 ac_cv_prog_CXXCPP="$CXXCPP"
13610ac_ext=C
13611# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13612ac_cpp='$CXXCPP $CPPFLAGS'
13613ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13614ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13615cross_compiling=$ac_cv_prog_cxx_cross
13616fi
698dcdb6 13617fi
4f14bcd8
GD
13618CXXCPP="$ac_cv_prog_CXXCPP"
13619echo "$ac_t""$CXXCPP" 1>&6
698dcdb6 13620
4f14bcd8
GD
13621
13622 if test "$cross_compiling" = "yes"; then
13623 cat >> confdefs.h <<\EOF
13624#define wxUSE_IOSTREAMH 1
698dcdb6
VZ
13625EOF
13626
4f14bcd8
GD
13627 else
13628
13629 ac_ext=C
13630# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13631ac_cpp='$CXXCPP $CPPFLAGS'
13632ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13633ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13634cross_compiling=$ac_cv_prog_cxx_cross
698dcdb6 13635
4f14bcd8
GD
13636
13637 for ac_hdr in iostream
13638do
13639ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
13640echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9926e4a4 13641echo "configure:13642: checking for $ac_hdr" >&5
4f14bcd8 13642if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
698dcdb6
VZ
13643 echo $ac_n "(cached) $ac_c" 1>&6
13644else
13645 cat > conftest.$ac_ext <<EOF
9926e4a4 13646#line 13647 "configure"
10f2d63a 13647#include "confdefs.h"
4f14bcd8 13648#include <$ac_hdr>
698dcdb6 13649EOF
4f14bcd8 13650ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9926e4a4 13651{ (eval echo configure:13652: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4f14bcd8
GD
13652ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13653if test -z "$ac_err"; then
698dcdb6 13654 rm -rf conftest*
4f14bcd8 13655 eval "ac_cv_header_$ac_safe=yes"
698dcdb6 13656else
4f14bcd8 13657 echo "$ac_err" >&5
698dcdb6
VZ
13658 echo "configure: failed program was:" >&5
13659 cat conftest.$ac_ext >&5
13660 rm -rf conftest*
4f14bcd8 13661 eval "ac_cv_header_$ac_safe=no"
698dcdb6
VZ
13662fi
13663rm -f conftest*
13664fi
4f14bcd8 13665if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
698dcdb6 13666 echo "$ac_t""yes" 1>&6
4f14bcd8
GD
13667 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
13668 cat >> confdefs.h <<EOF
13669#define $ac_tr_hdr 1
10f2d63a 13670EOF
4f14bcd8 13671
698dcdb6
VZ
13672else
13673 echo "$ac_t""no" 1>&6
10f2d63a 13674fi
4f14bcd8 13675done
10f2d63a 13676
10f2d63a 13677
4f14bcd8
GD
13678 if test "$ac_cv_header_iostream" = "yes" ; then
13679 :
13680 else
13681 cat >> confdefs.h <<\EOF
13682#define wxUSE_IOSTREAMH 1
13683EOF
13684
13685 fi
1e487827 13686
4f14bcd8
GD
13687 ac_ext=c
13688# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13689ac_cpp='$CPP $CPPFLAGS'
13690ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13691ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13692cross_compiling=$ac_cv_prog_cc_cross
698dcdb6 13693
4f14bcd8 13694 fi
698dcdb6
VZ
13695
13696
13697
4f14bcd8 13698 echo $ac_n "checking if C++ compiler supports bool""... $ac_c" 1>&6
9926e4a4 13699echo "configure:13700: checking if C++ compiler supports bool" >&5
4f14bcd8 13700if eval "test \"`echo '$''{'wx_cv_cpp_bool'+set}'`\" = set"; then
698dcdb6
VZ
13701 echo $ac_n "(cached) $ac_c" 1>&6
13702else
13703
4f14bcd8
GD
13704
13705 ac_ext=C
13706# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13707ac_cpp='$CXXCPP $CPPFLAGS'
13708ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13709ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13710cross_compiling=$ac_cv_prog_cxx_cross
f6bcfd97 13711
10f2d63a 13712
4f14bcd8 13713 cat > conftest.$ac_ext <<EOF
9926e4a4 13714#line 13715 "configure"
4f14bcd8 13715#include "confdefs.h"
10f2d63a 13716
4f14bcd8
GD
13717
13718int main() {
f6bcfd97 13719
4f14bcd8 13720 bool b = true;
f6bcfd97 13721
4f14bcd8
GD
13722 return 0;
13723
698dcdb6
VZ
13724; return 0; }
13725EOF
9926e4a4 13726if { (eval echo configure:13727: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6
VZ
13727 rm -rf conftest*
13728
4f14bcd8
GD
13729 wx_cv_cpp_bool=yes
13730
10f2d63a 13731else
698dcdb6
VZ
13732 echo "configure: failed program was:" >&5
13733 cat conftest.$ac_ext >&5
13734 rm -rf conftest*
13735
4f14bcd8
GD
13736 wx_cv_cpp_bool=no
13737
13738
13739fi
13740rm -f conftest*
c521c494 13741
4f14bcd8
GD
13742 ac_ext=c
13743# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13744ac_cpp='$CPP $CPPFLAGS'
13745ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13746ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13747cross_compiling=$ac_cv_prog_cc_cross
c521c494 13748
4f14bcd8
GD
13749
13750fi
c521c494 13751
4f14bcd8 13752echo "$ac_t""$wx_cv_cpp_bool" 1>&6
c521c494 13753
4f14bcd8
GD
13754 if test "$wx_cv_cpp_bool" = "yes"; then
13755 cat >> confdefs.h <<\EOF
13756#define HAVE_BOOL 1
13757EOF
c521c494 13758
4f14bcd8
GD
13759 fi
13760
13761
13762
13763echo $ac_n "checking for wcslen in -lc""... $ac_c" 1>&6
9926e4a4 13764echo "configure:13765: checking for wcslen in -lc" >&5
4f14bcd8
GD
13765ac_lib_var=`echo c'_'wcslen | sed 'y%./+-%__p_%'`
13766if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13767 echo $ac_n "(cached) $ac_c" 1>&6
13768else
13769 ac_save_LIBS="$LIBS"
13770LIBS="-lc $LIBS"
13771cat > conftest.$ac_ext <<EOF
9926e4a4 13772#line 13773 "configure"
4f14bcd8
GD
13773#include "confdefs.h"
13774/* Override any gcc2 internal prototype to avoid an error. */
13775/* We use char because int might match the return type of a gcc2
13776 builtin and then its argument prototype would still apply. */
13777char wcslen();
13778
13779int main() {
13780wcslen()
698dcdb6
VZ
13781; return 0; }
13782EOF
9926e4a4 13783if { (eval echo configure:13784: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6 13784 rm -rf conftest*
4f14bcd8 13785 eval "ac_cv_lib_$ac_lib_var=yes"
c521c494 13786else
698dcdb6
VZ
13787 echo "configure: failed program was:" >&5
13788 cat conftest.$ac_ext >&5
13789 rm -rf conftest*
4f14bcd8 13790 eval "ac_cv_lib_$ac_lib_var=no"
6232543b 13791fi
698dcdb6 13792rm -f conftest*
4f14bcd8 13793LIBS="$ac_save_LIBS"
703e0a69 13794
1e487827 13795fi
4f14bcd8
GD
13796if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13797 echo "$ac_t""yes" 1>&6
13798
13799 cat >> confdefs.h <<\EOF
13800#define HAVE_WCSLEN 1
9d8deca0
VZ
13801EOF
13802
3d63bc3a 13803 WCHAR_LINK=
4f14bcd8 13804
9d8deca0 13805else
4f14bcd8 13806 echo "$ac_t""no" 1>&6
9d8deca0 13807
4f14bcd8 13808 echo $ac_n "checking for wcslen in -lw""... $ac_c" 1>&6
9926e4a4 13809echo "configure:13810: checking for wcslen in -lw" >&5
4f14bcd8
GD
13810ac_lib_var=`echo w'_'wcslen | sed 'y%./+-%__p_%'`
13811if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
698dcdb6 13812 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 13813else
4f14bcd8
GD
13814 ac_save_LIBS="$LIBS"
13815LIBS="-lw $LIBS"
13816cat > conftest.$ac_ext <<EOF
9926e4a4 13817#line 13818 "configure"
10f2d63a 13818#include "confdefs.h"
4f14bcd8
GD
13819/* Override any gcc2 internal prototype to avoid an error. */
13820/* We use char because int might match the return type of a gcc2
13821 builtin and then its argument prototype would still apply. */
13822char wcslen();
10f2d63a 13823
698dcdb6 13824int main() {
4f14bcd8 13825wcslen()
698dcdb6
VZ
13826; return 0; }
13827EOF
9926e4a4 13828if { (eval echo configure:13829: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6 13829 rm -rf conftest*
4f14bcd8 13830 eval "ac_cv_lib_$ac_lib_var=yes"
10f2d63a 13831else
698dcdb6
VZ
13832 echo "configure: failed program was:" >&5
13833 cat conftest.$ac_ext >&5
13834 rm -rf conftest*
4f14bcd8 13835 eval "ac_cv_lib_$ac_lib_var=no"
6232543b 13836fi
698dcdb6 13837rm -f conftest*
4f14bcd8 13838LIBS="$ac_save_LIBS"
703e0a69 13839
1e487827 13840fi
4f14bcd8
GD
13841if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13842 echo "$ac_t""yes" 1>&6
13843
13844 cat >> confdefs.h <<\EOF
13845#define HAVE_WCSLEN 1
9d8deca0
VZ
13846EOF
13847
3d63bc3a 13848 WCHAR_LINK=" -lw"
4f14bcd8
GD
13849
13850else
13851 echo "$ac_t""no" 1>&6
698dcdb6 13852
4f14bcd8 13853 echo $ac_n "checking for wcslen in -lmsvcrt""... $ac_c" 1>&6
9926e4a4 13854echo "configure:13855: checking for wcslen in -lmsvcrt" >&5
4f14bcd8
GD
13855ac_lib_var=`echo msvcrt'_'wcslen | sed 'y%./+-%__p_%'`
13856if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
698dcdb6
VZ
13857 echo $ac_n "(cached) $ac_c" 1>&6
13858else
4f14bcd8
GD
13859 ac_save_LIBS="$LIBS"
13860LIBS="-lmsvcrt $LIBS"
13861cat > conftest.$ac_ext <<EOF
9926e4a4 13862#line 13863 "configure"
95c8801c 13863#include "confdefs.h"
4f14bcd8
GD
13864/* Override any gcc2 internal prototype to avoid an error. */
13865/* We use char because int might match the return type of a gcc2
13866 builtin and then its argument prototype would still apply. */
13867char wcslen();
95c8801c 13868
4f14bcd8
GD
13869int main() {
13870wcslen()
698dcdb6
VZ
13871; return 0; }
13872EOF
9926e4a4 13873if { (eval echo configure:13874: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6 13874 rm -rf conftest*
4f14bcd8 13875 eval "ac_cv_lib_$ac_lib_var=yes"
95c8801c 13876else
698dcdb6
VZ
13877 echo "configure: failed program was:" >&5
13878 cat conftest.$ac_ext >&5
13879 rm -rf conftest*
4f14bcd8 13880 eval "ac_cv_lib_$ac_lib_var=no"
95c8801c 13881fi
698dcdb6 13882rm -f conftest*
4f14bcd8 13883LIBS="$ac_save_LIBS"
95c8801c
VS
13884
13885fi
4f14bcd8
GD
13886if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13887 echo "$ac_t""yes" 1>&6
13888
13889 cat >> confdefs.h <<\EOF
13890#define HAVE_WCSLEN 1
13891EOF
698dcdb6 13892
3d63bc3a 13893 WCHAR_LINK=
4f14bcd8
GD
13894
13895else
13896 echo "$ac_t""no" 1>&6
13897fi
10f2d63a 13898
4f14bcd8
GD
13899
13900fi
95c8801c 13901
4f14bcd8 13902
95c8801c 13903fi
10f2d63a 13904
1e487827 13905
4f14bcd8 13906for ac_func in wcsrtombs
eb4efbdc 13907do
698dcdb6 13908echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9926e4a4 13909echo "configure:13910: checking for $ac_func" >&5
698dcdb6
VZ
13910if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13911 echo $ac_n "(cached) $ac_c" 1>&6
13912else
13913 cat > conftest.$ac_ext <<EOF
9926e4a4 13914#line 13915 "configure"
eb4efbdc
VZ
13915#include "confdefs.h"
13916/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 13917 which can conflict with char $ac_func(); below. */
eb4efbdc
VZ
13918#include <assert.h>
13919/* Override any gcc2 internal prototype to avoid an error. */
13920/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
13921 builtin and then its argument prototype would still apply. */
13922char $ac_func();
13923
13924int main() {
eb4efbdc
VZ
13925
13926/* The GNU C library defines this for functions which it implements
13927 to always fail with ENOSYS. Some functions are actually named
13928 something starting with __ and the normal name is an alias. */
13929#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13930choke me
13931#else
698dcdb6 13932$ac_func();
eb4efbdc
VZ
13933#endif
13934
698dcdb6 13935; return 0; }
eb4efbdc 13936EOF
9926e4a4 13937if { (eval echo configure:13938: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
13938 rm -rf conftest*
13939 eval "ac_cv_func_$ac_func=yes"
13940else
13941 echo "configure: failed program was:" >&5
13942 cat conftest.$ac_ext >&5
13943 rm -rf conftest*
13944 eval "ac_cv_func_$ac_func=no"
13945fi
13946rm -f conftest*
13947fi
eb4efbdc 13948
698dcdb6
VZ
13949if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13950 echo "$ac_t""yes" 1>&6
13951 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13952 cat >> confdefs.h <<EOF
13953#define $ac_tr_func 1
13954EOF
13955
13956else
13957 echo "$ac_t""no" 1>&6
eb4efbdc
VZ
13958fi
13959done
13960
698dcdb6 13961
4f14bcd8 13962echo $ac_n "checking for vprintf""... $ac_c" 1>&6
9926e4a4 13963echo "configure:13964: checking for vprintf" >&5
4f14bcd8 13964if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
698dcdb6
VZ
13965 echo $ac_n "(cached) $ac_c" 1>&6
13966else
4f14bcd8 13967 cat > conftest.$ac_ext <<EOF
9926e4a4 13968#line 13969 "configure"
f6bcfd97 13969#include "confdefs.h"
4f14bcd8
GD
13970/* System header to define __stub macros and hopefully few prototypes,
13971 which can conflict with char vprintf(); below. */
13972#include <assert.h>
13973/* Override any gcc2 internal prototype to avoid an error. */
13974/* We use char because int might match the return type of a gcc2
13975 builtin and then its argument prototype would still apply. */
13976char vprintf();
13977
698dcdb6 13978int main() {
f6bcfd97 13979
4f14bcd8
GD
13980/* The GNU C library defines this for functions which it implements
13981 to always fail with ENOSYS. Some functions are actually named
13982 something starting with __ and the normal name is an alias. */
13983#if defined (__stub_vprintf) || defined (__stub___vprintf)
13984choke me
13985#else
13986vprintf();
13987#endif
f6bcfd97 13988
698dcdb6
VZ
13989; return 0; }
13990EOF
9926e4a4 13991if { (eval echo configure:13992: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6 13992 rm -rf conftest*
4f14bcd8 13993 eval "ac_cv_func_vprintf=yes"
f6bcfd97 13994else
698dcdb6
VZ
13995 echo "configure: failed program was:" >&5
13996 cat conftest.$ac_ext >&5
13997 rm -rf conftest*
4f14bcd8 13998 eval "ac_cv_func_vprintf=no"
6232543b 13999fi
698dcdb6 14000rm -f conftest*
1e487827 14001fi
698dcdb6 14002
4f14bcd8
GD
14003if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
14004 echo "$ac_t""yes" 1>&6
14005 cat >> confdefs.h <<\EOF
14006#define HAVE_VPRINTF 1
f6bcfd97
BP
14007EOF
14008
4f14bcd8
GD
14009else
14010 echo "$ac_t""no" 1>&6
eb4efbdc
VZ
14011fi
14012
4f14bcd8
GD
14013if test "$ac_cv_func_vprintf" != yes; then
14014echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
9926e4a4 14015echo "configure:14016: checking for _doprnt" >&5
4f14bcd8 14016if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
698dcdb6
VZ
14017 echo $ac_n "(cached) $ac_c" 1>&6
14018else
14019 cat > conftest.$ac_ext <<EOF
9926e4a4 14020#line 14021 "configure"
10f2d63a
VZ
14021#include "confdefs.h"
14022/* System header to define __stub macros and hopefully few prototypes,
4f14bcd8 14023 which can conflict with char _doprnt(); below. */
10f2d63a
VZ
14024#include <assert.h>
14025/* Override any gcc2 internal prototype to avoid an error. */
14026/* We use char because int might match the return type of a gcc2
698dcdb6 14027 builtin and then its argument prototype would still apply. */
4f14bcd8 14028char _doprnt();
698dcdb6
VZ
14029
14030int main() {
10f2d63a
VZ
14031
14032/* The GNU C library defines this for functions which it implements
14033 to always fail with ENOSYS. Some functions are actually named
14034 something starting with __ and the normal name is an alias. */
4f14bcd8 14035#if defined (__stub__doprnt) || defined (__stub____doprnt)
10f2d63a
VZ
14036choke me
14037#else
4f14bcd8 14038_doprnt();
10f2d63a
VZ
14039#endif
14040
698dcdb6 14041; return 0; }
10f2d63a 14042EOF
9926e4a4 14043if { (eval echo configure:14044: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6 14044 rm -rf conftest*
4f14bcd8 14045 eval "ac_cv_func__doprnt=yes"
698dcdb6
VZ
14046else
14047 echo "configure: failed program was:" >&5
14048 cat conftest.$ac_ext >&5
14049 rm -rf conftest*
4f14bcd8 14050 eval "ac_cv_func__doprnt=no"
698dcdb6
VZ
14051fi
14052rm -f conftest*
14053fi
270a909e 14054
4f14bcd8 14055if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
698dcdb6 14056 echo "$ac_t""yes" 1>&6
4f14bcd8
GD
14057 cat >> confdefs.h <<\EOF
14058#define HAVE_DOPRNT 1
698dcdb6 14059EOF
4f14bcd8 14060
698dcdb6
VZ
14061else
14062 echo "$ac_t""no" 1>&6
270a909e 14063fi
270a909e 14064
4f14bcd8 14065fi
1e487827 14066
52e8b690 14067
52e8b690 14068
52e8b690 14069
52e8b690 14070
52e8b690 14071
4f14bcd8 14072echo $ac_n "checking for vsnprintf""... $ac_c" 1>&6
9926e4a4 14073echo "configure:14074: checking for vsnprintf" >&5
4f14bcd8 14074if eval "test \"`echo '$''{'wx_cv_func_vsnprintf'+set}'`\" = set"; then
698dcdb6 14075 echo $ac_n "(cached) $ac_c" 1>&6
c63c7106 14076else
4f14bcd8 14077
af15babd 14078 cat > conftest.$ac_ext <<EOF
9926e4a4 14079#line 14080 "configure"
c63c7106 14080#include "confdefs.h"
698dcdb6 14081
4f14bcd8
GD
14082 #include <stdio.h>
14083 #include <stdarg.h>
14084
af15babd
VZ
14085int main() {
14086
4f14bcd8
GD
14087 int wx_test_vsnprintf(const char *, ...);
14088
14089 wx_test_vsnprintf("%s");
14090 return 0;
14091 }
14092
14093 int wx_test_vsnprintf(const char *fmt, ...)
14094 {
14095 char *s;
14096
14097 va_list argp;
14098 va_start(argp, fmt);
14099 vsnprintf(s, 42, fmt, argp);
14100 va_end(argp);
14101
af15babd
VZ
14102; return 0; }
14103EOF
9926e4a4 14104if { (eval echo configure:14105: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
af15babd
VZ
14105 rm -rf conftest*
14106
4f14bcd8
GD
14107 wx_cv_func_vsnprintf=yes
14108
af15babd
VZ
14109else
14110 echo "configure: failed program was:" >&5
14111 cat conftest.$ac_ext >&5
14112 rm -rf conftest*
14113
4f14bcd8 14114 cat > conftest.$ac_ext <<EOF
9926e4a4 14115#line 14116 "configure"
af15babd 14116#include "confdefs.h"
af15babd 14117
4f14bcd8
GD
14118 #include <stdio.h>
14119 #include <stdarg.h>
14120
af15babd
VZ
14121int main() {
14122
4f14bcd8
GD
14123 int wx_test_vsnprintf(const char *, ...);
14124
14125 wx_test_vsnprintf("%s");
14126 return 0;
14127 }
14128
14129 int wx_test_vsnprintf(const char *fmt, ...)
14130 {
14131 char *s;
af15babd 14132
4f14bcd8
GD
14133 va_list argp;
14134 va_start(argp, fmt);
14135 _vsnprintf(s, 42, fmt, argp);
14136 va_end(argp);
14137
af15babd
VZ
14138; return 0; }
14139EOF
9926e4a4 14140if { (eval echo configure:14141: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
af15babd 14141 rm -rf conftest*
4f14bcd8
GD
14142
14143 wx_cv_func_vsnprintf=yes
14144
af15babd
VZ
14145else
14146 echo "configure: failed program was:" >&5
14147 cat conftest.$ac_ext >&5
14148 rm -rf conftest*
4f14bcd8
GD
14149
14150 wx_cv_func_vsnprintf=no
14151
af15babd
VZ
14152fi
14153rm -f conftest*
4f14bcd8 14154
af15babd 14155fi
4f14bcd8 14156rm -f conftest*
af15babd 14157
af15babd 14158fi
af15babd 14159
4f14bcd8 14160echo "$ac_t""$wx_cv_func_vsnprintf" 1>&6
af15babd 14161
4f14bcd8
GD
14162if test "$wx_cv_func_vsnprintf" = yes; then
14163 cat >> confdefs.h <<\EOF
14164#define HAVE_VSNPRINTF 1
14165EOF
14166
14167else
14168 echo "configure: warning: unsafe function sprintf will be used instead of snprintf" 1>&2
af15babd
VZ
14169fi
14170
4f14bcd8 14171echo $ac_n "checking for vsscanf""... $ac_c" 1>&6
9926e4a4 14172echo "configure:14173: checking for vsscanf" >&5
4f14bcd8 14173if eval "test \"`echo '$''{'wx_cv_func_vsscanf'+set}'`\" = set"; then
af15babd
VZ
14174 echo $ac_n "(cached) $ac_c" 1>&6
14175else
4f14bcd8 14176
af15babd 14177 cat > conftest.$ac_ext <<EOF
9926e4a4 14178#line 14179 "configure"
af15babd 14179#include "confdefs.h"
af15babd 14180
4f14bcd8
GD
14181 #include <stdio.h>
14182 #include <stdarg.h>
14183
af15babd
VZ
14184int main() {
14185
4f14bcd8
GD
14186 int wx_test_vsscanf(const char *, ...);
14187
14188 wx_test_vsscanf("%d");
14189 return 0;
14190 }
af15babd 14191
4f14bcd8
GD
14192 int wx_test_vsscanf(const char *fmt, ...)
14193 {
14194 va_list argp;
14195 va_start(argp, fmt);
14196 vsscanf("42", fmt, argp);
14197 va_end(argp);
14198
af15babd
VZ
14199; return 0; }
14200EOF
9926e4a4 14201if { (eval echo configure:14202: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
af15babd 14202 rm -rf conftest*
4f14bcd8
GD
14203
14204 wx_cv_func_vsscanf=yes
14205
af15babd
VZ
14206else
14207 echo "configure: failed program was:" >&5
14208 cat conftest.$ac_ext >&5
14209 rm -rf conftest*
4f14bcd8
GD
14210
14211 wx_cv_func_vsscanf=no
14212
af15babd
VZ
14213fi
14214rm -f conftest*
4f14bcd8 14215
af15babd
VZ
14216fi
14217
4f14bcd8
GD
14218echo "$ac_t""$wx_cv_func_vsscanf" 1>&6
14219
14220if test "$wx_cv_func_vsscanf" = yes; then
14221 cat >> confdefs.h <<\EOF
14222#define HAVE_VSSCANF 1
af15babd 14223EOF
4f14bcd8 14224
af15babd 14225fi
af15babd 14226
4f14bcd8 14227if test "$TOOLKIT" != "MSW"; then
af15babd 14228
4f14bcd8
GD
14229
14230
14231ac_ext=C
14232# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14233ac_cpp='$CXXCPP $CPPFLAGS'
14234ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14235ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14236cross_compiling=$ac_cv_prog_cxx_cross
14237
14238echo $ac_n "checking if iconv() takes char**""... $ac_c" 1>&6
9926e4a4 14239echo "configure:14240: checking if iconv() takes char**" >&5
4f14bcd8 14240if eval "test \"`echo '$''{'wx_cv_iconv_takes_char'+set}'`\" = set"; then
af15babd
VZ
14241 echo $ac_n "(cached) $ac_c" 1>&6
14242else
4f14bcd8
GD
14243
14244 cat > conftest.$ac_ext <<EOF
9926e4a4 14245#line 14246 "configure"
af15babd 14246#include "confdefs.h"
4f14bcd8 14247#include <iconv.h>
af15babd
VZ
14248int main() {
14249
4f14bcd8
GD
14250 char **inbuf, **outbuf;
14251 iconv_t cd;
14252 size_t insz, outsz;
14253 iconv(cd, inbuf, &insz, outbuf, &outsz);
14254
af15babd
VZ
14255; return 0; }
14256EOF
9926e4a4 14257if { (eval echo configure:14258: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
af15babd 14258 rm -rf conftest*
4f14bcd8 14259 wx_cv_iconv_takes_char=yes
af15babd
VZ
14260else
14261 echo "configure: failed program was:" >&5
14262 cat conftest.$ac_ext >&5
14263 rm -rf conftest*
4f14bcd8 14264 wx_cv_iconv_takes_char=no
af15babd
VZ
14265fi
14266rm -f conftest*
af15babd 14267
af15babd 14268fi
af15babd 14269
4f14bcd8
GD
14270echo "$ac_t""$wx_cv_iconv_takes_char" 1>&6
14271ac_ext=c
14272# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14273ac_cpp='$CPP $CPPFLAGS'
14274ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14275ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14276cross_compiling=$ac_cv_prog_cc_cross
af15babd 14277
4f14bcd8
GD
14278if test "$wx_cv_iconv_takes_char" = yes ; then
14279 cat >> confdefs.h <<\EOF
14280#define WX_ICONV_TAKES_CHAR 1
af15babd
VZ
14281EOF
14282
af15babd
VZ
14283fi
14284
af15babd 14285
4f14bcd8
GD
14286if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then
14287 for ac_func in sigaction
af15babd
VZ
14288do
14289echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9926e4a4 14290echo "configure:14291: checking for $ac_func" >&5
af15babd
VZ
14291if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14292 echo $ac_n "(cached) $ac_c" 1>&6
14293else
14294 cat > conftest.$ac_ext <<EOF
9926e4a4 14295#line 14296 "configure"
af15babd
VZ
14296#include "confdefs.h"
14297/* System header to define __stub macros and hopefully few prototypes,
14298 which can conflict with char $ac_func(); below. */
14299#include <assert.h>
14300/* Override any gcc2 internal prototype to avoid an error. */
14301/* We use char because int might match the return type of a gcc2
14302 builtin and then its argument prototype would still apply. */
14303char $ac_func();
14304
14305int main() {
14306
14307/* The GNU C library defines this for functions which it implements
14308 to always fail with ENOSYS. Some functions are actually named
14309 something starting with __ and the normal name is an alias. */
14310#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14311choke me
14312#else
14313$ac_func();
14314#endif
14315
14316; return 0; }
14317EOF
9926e4a4 14318if { (eval echo configure:14319: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
af15babd
VZ
14319 rm -rf conftest*
14320 eval "ac_cv_func_$ac_func=yes"
14321else
14322 echo "configure: failed program was:" >&5
14323 cat conftest.$ac_ext >&5
14324 rm -rf conftest*
14325 eval "ac_cv_func_$ac_func=no"
14326fi
14327rm -f conftest*
14328fi
14329
14330if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14331 echo "$ac_t""yes" 1>&6
14332 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14333 cat >> confdefs.h <<EOF
14334#define $ac_tr_func 1
14335EOF
4f14bcd8 14336
af15babd
VZ
14337else
14338 echo "$ac_t""no" 1>&6
4f14bcd8
GD
14339fi
14340done
14341
14342
14343 if test "$ac_cv_func_sigaction" = "no"; then
14344 echo "configure: warning: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" 1>&2
14345 wxUSE_ON_FATAL_EXCEPTION=no
14346 fi
14347
14348 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
14349
14350 ac_ext=C
14351# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14352ac_cpp='$CXXCPP $CPPFLAGS'
14353ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14354ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14355cross_compiling=$ac_cv_prog_cxx_cross
14356
14357
14358 echo $ac_n "checking for sa_handler type""... $ac_c" 1>&6
9926e4a4 14359echo "configure:14360: checking for sa_handler type" >&5
4f14bcd8 14360if eval "test \"`echo '$''{'wx_cv_type_sa_handler'+set}'`\" = set"; then
af15babd
VZ
14361 echo $ac_n "(cached) $ac_c" 1>&6
14362else
4f14bcd8
GD
14363
14364 cat > conftest.$ac_ext <<EOF
9926e4a4 14365#line 14366 "configure"
af15babd 14366#include "confdefs.h"
4f14bcd8 14367#include <signal.h>
af15babd 14368int main() {
4f14bcd8
GD
14369
14370 extern void testSigHandler(int);
14371
14372 struct sigaction sa;
14373 sa.sa_handler = testSigHandler;
14374
af15babd
VZ
14375; return 0; }
14376EOF
9926e4a4 14377if { (eval echo configure:14378: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
af15babd 14378 rm -rf conftest*
4f14bcd8
GD
14379
14380 wx_cv_type_sa_handler=int
14381
af15babd
VZ
14382else
14383 echo "configure: failed program was:" >&5
14384 cat conftest.$ac_ext >&5
14385 rm -rf conftest*
4f14bcd8
GD
14386
14387 wx_cv_type_sa_handler=void
14388
af15babd
VZ
14389fi
14390rm -f conftest*
4f14bcd8
GD
14391
14392fi
14393
14394echo "$ac_t""$wx_cv_type_sa_handler" 1>&6
14395
14396 ac_ext=c
14397# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14398ac_cpp='$CPP $CPPFLAGS'
14399ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14400ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14401cross_compiling=$ac_cv_prog_cc_cross
af15babd 14402
4f14bcd8
GD
14403
14404 cat >> confdefs.h <<EOF
14405#define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler
af15babd
VZ
14406EOF
14407
4f14bcd8
GD
14408 fi
14409fi
af15babd 14410
4f14bcd8 14411for ac_func in vfork
af15babd
VZ
14412do
14413echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9926e4a4 14414echo "configure:14415: checking for $ac_func" >&5
af15babd
VZ
14415if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14416 echo $ac_n "(cached) $ac_c" 1>&6
14417else
14418 cat > conftest.$ac_ext <<EOF
9926e4a4 14419#line 14420 "configure"
af15babd
VZ
14420#include "confdefs.h"
14421/* System header to define __stub macros and hopefully few prototypes,
14422 which can conflict with char $ac_func(); below. */
14423#include <assert.h>
14424/* Override any gcc2 internal prototype to avoid an error. */
14425/* We use char because int might match the return type of a gcc2
14426 builtin and then its argument prototype would still apply. */
14427char $ac_func();
14428
14429int main() {
14430
14431/* The GNU C library defines this for functions which it implements
14432 to always fail with ENOSYS. Some functions are actually named
14433 something starting with __ and the normal name is an alias. */
14434#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14435choke me
14436#else
14437$ac_func();
14438#endif
14439
14440; return 0; }
14441EOF
9926e4a4 14442if { (eval echo configure:14443: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
af15babd
VZ
14443 rm -rf conftest*
14444 eval "ac_cv_func_$ac_func=yes"
14445else
14446 echo "configure: failed program was:" >&5
14447 cat conftest.$ac_ext >&5
14448 rm -rf conftest*
14449 eval "ac_cv_func_$ac_func=no"
14450fi
14451rm -f conftest*
14452fi
14453
14454if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14455 echo "$ac_t""yes" 1>&6
14456 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14457 cat >> confdefs.h <<EOF
14458#define $ac_tr_func 1
14459EOF
4f14bcd8 14460
af15babd
VZ
14461else
14462 echo "$ac_t""no" 1>&6
af15babd
VZ
14463fi
14464done
14465
af15babd 14466
ade35f11
VZ
14467for ac_func in mkstemp mktemp
14468do
14469echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14470echo "configure:14471: checking for $ac_func" >&5
14471if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14472 echo $ac_n "(cached) $ac_c" 1>&6
14473else
14474 cat > conftest.$ac_ext <<EOF
14475#line 14476 "configure"
14476#include "confdefs.h"
14477/* System header to define __stub macros and hopefully few prototypes,
14478 which can conflict with char $ac_func(); below. */
14479#include <assert.h>
14480/* Override any gcc2 internal prototype to avoid an error. */
14481/* We use char because int might match the return type of a gcc2
14482 builtin and then its argument prototype would still apply. */
14483char $ac_func();
14484
14485int main() {
14486
14487/* The GNU C library defines this for functions which it implements
14488 to always fail with ENOSYS. Some functions are actually named
14489 something starting with __ and the normal name is an alias. */
14490#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14491choke me
14492#else
14493$ac_func();
14494#endif
14495
14496; return 0; }
14497EOF
14498if { (eval echo configure:14499: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14499 rm -rf conftest*
14500 eval "ac_cv_func_$ac_func=yes"
14501else
14502 echo "configure: failed program was:" >&5
14503 cat conftest.$ac_ext >&5
14504 rm -rf conftest*
14505 eval "ac_cv_func_$ac_func=no"
14506fi
14507rm -f conftest*
14508fi
14509
14510if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14511 echo "$ac_t""yes" 1>&6
14512 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14513 cat >> confdefs.h <<EOF
14514#define $ac_tr_func 1
14515EOF
14516 break
14517else
14518 echo "$ac_t""no" 1>&6
14519fi
14520done
14521
14522
4f14bcd8 14523echo $ac_n "checking for statfs""... $ac_c" 1>&6
ade35f11 14524echo "configure:14525: checking for statfs" >&5
4f14bcd8
GD
14525if eval "test \"`echo '$''{'wx_cv_func_statfs'+set}'`\" = set"; then
14526 echo $ac_n "(cached) $ac_c" 1>&6
14527else
14528 cat > conftest.$ac_ext <<EOF
ade35f11 14529#line 14530 "configure"
4f14bcd8
GD
14530#include "confdefs.h"
14531
14532 #if defined(__BSD__)
14533 #include <sys/param.h>
14534 #include <sys/mount.h>
14535 #else
14536 #include <sys/vfs.h>
14537 #endif
14538
14539int main() {
14540
14541 long l;
14542 struct statfs fs;
14543 statfs("/", &fs);
14544 l = fs.f_bsize;
14545 l += fs.f_blocks;
14546 l += fs.f_bavail;
14547
14548; return 0; }
14549EOF
ade35f11 14550if { (eval echo configure:14551: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4f14bcd8
GD
14551 rm -rf conftest*
14552
14553 wx_cv_func_statfs=yes
14554
14555else
14556 echo "configure: failed program was:" >&5
14557 cat conftest.$ac_ext >&5
14558 rm -rf conftest*
14559
14560 wx_cv_func_statfs=no
af15babd
VZ
14561
14562
14563fi
4f14bcd8 14564rm -f conftest*
af15babd
VZ
14565
14566fi
14567
4f14bcd8
GD
14568echo "$ac_t""$wx_cv_func_statfs" 1>&6
14569
14570if test "$wx_cv_func_statfs" = "yes"; then
14571 cat >> confdefs.h <<\EOF
14572#define HAVE_STATFS 1
14573EOF
14574
14575else
14576 echo $ac_n "checking for statvfs""... $ac_c" 1>&6
ade35f11 14577echo "configure:14578: checking for statvfs" >&5
4f14bcd8 14578if eval "test \"`echo '$''{'wx_cv_func_statvfs'+set}'`\" = set"; then
af15babd
VZ
14579 echo $ac_n "(cached) $ac_c" 1>&6
14580else
14581 cat > conftest.$ac_ext <<EOF
ade35f11 14582#line 14583 "configure"
af15babd 14583#include "confdefs.h"
af15babd 14584
4f14bcd8
GD
14585 #include <sys/statvfs.h>
14586
af15babd
VZ
14587int main() {
14588
4f14bcd8
GD
14589 long l;
14590 struct statvfs fs;
14591 statvfs("/", &fs);
14592 l = fs.f_bsize;
14593 l += fs.f_blocks;
14594 l += fs.f_bavail;
14595
af15babd
VZ
14596; return 0; }
14597EOF
ade35f11 14598if { (eval echo configure:14599: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
af15babd 14599 rm -rf conftest*
4f14bcd8
GD
14600
14601 wx_cv_func_statvfs=yes
14602
af15babd
VZ
14603else
14604 echo "configure: failed program was:" >&5
14605 cat conftest.$ac_ext >&5
14606 rm -rf conftest*
4f14bcd8
GD
14607
14608 wx_cv_func_statvfs=no
14609
14610
af15babd
VZ
14611fi
14612rm -f conftest*
4f14bcd8 14613
af15babd
VZ
14614fi
14615
4f14bcd8 14616echo "$ac_t""$wx_cv_func_statvfs" 1>&6
af15babd 14617
4f14bcd8
GD
14618 if test "$wx_cv_func_statvfs" = "yes"; then
14619 cat >> confdefs.h <<\EOF
14620#define HAVE_STATVFS 1
14621EOF
af15babd 14622
4f14bcd8
GD
14623 else
14624 echo "configure: warning: wxGetDiskSpace() function won't work without statfs()" 1>&2
14625 fi
14626fi
af15babd 14627
4f14bcd8
GD
14628if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
14629 for ac_func in fcntl flock
af15babd
VZ
14630do
14631echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
ade35f11 14632echo "configure:14633: checking for $ac_func" >&5
af15babd
VZ
14633if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14634 echo $ac_n "(cached) $ac_c" 1>&6
14635else
14636 cat > conftest.$ac_ext <<EOF
ade35f11 14637#line 14638 "configure"
af15babd
VZ
14638#include "confdefs.h"
14639/* System header to define __stub macros and hopefully few prototypes,
14640 which can conflict with char $ac_func(); below. */
14641#include <assert.h>
14642/* Override any gcc2 internal prototype to avoid an error. */
af15babd
VZ
14643/* We use char because int might match the return type of a gcc2
14644 builtin and then its argument prototype would still apply. */
14645char $ac_func();
14646
14647int main() {
14648
14649/* The GNU C library defines this for functions which it implements
14650 to always fail with ENOSYS. Some functions are actually named
14651 something starting with __ and the normal name is an alias. */
14652#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14653choke me
14654#else
14655$ac_func();
14656#endif
14657
14658; return 0; }
14659EOF
ade35f11 14660if { (eval echo configure:14661: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
af15babd
VZ
14661 rm -rf conftest*
14662 eval "ac_cv_func_$ac_func=yes"
14663else
14664 echo "configure: failed program was:" >&5
14665 cat conftest.$ac_ext >&5
14666 rm -rf conftest*
14667 eval "ac_cv_func_$ac_func=no"
14668fi
14669rm -f conftest*
14670fi
14671
14672if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14673 echo "$ac_t""yes" 1>&6
14674 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14675 cat >> confdefs.h <<EOF
14676#define $ac_tr_func 1
14677EOF
4f14bcd8 14678 break
af15babd
VZ
14679else
14680 echo "$ac_t""no" 1>&6
14681fi
14682done
14683
14684
4f14bcd8
GD
14685 if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then
14686 echo "configure: warning: wxSingleInstanceChecker not available" 1>&2
14687 wxUSE_SNGLINST_CHECKER=no
14688 fi
14689fi
af15babd 14690
4f14bcd8 14691for ac_func in timegm
af15babd
VZ
14692do
14693echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
ade35f11 14694echo "configure:14695: checking for $ac_func" >&5
af15babd
VZ
14695if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14696 echo $ac_n "(cached) $ac_c" 1>&6
14697else
14698 cat > conftest.$ac_ext <<EOF
ade35f11 14699#line 14700 "configure"
af15babd
VZ
14700#include "confdefs.h"
14701/* System header to define __stub macros and hopefully few prototypes,
14702 which can conflict with char $ac_func(); below. */
14703#include <assert.h>
14704/* Override any gcc2 internal prototype to avoid an error. */
14705/* We use char because int might match the return type of a gcc2
14706 builtin and then its argument prototype would still apply. */
14707char $ac_func();
14708
698dcdb6 14709int main() {
698dcdb6 14710
af15babd
VZ
14711/* The GNU C library defines this for functions which it implements
14712 to always fail with ENOSYS. Some functions are actually named
14713 something starting with __ and the normal name is an alias. */
14714#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14715choke me
14716#else
14717$ac_func();
14718#endif
14719
698dcdb6
VZ
14720; return 0; }
14721EOF
ade35f11 14722if { (eval echo configure:14723: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6 14723 rm -rf conftest*
af15babd 14724 eval "ac_cv_func_$ac_func=yes"
698dcdb6
VZ
14725else
14726 echo "configure: failed program was:" >&5
14727 cat conftest.$ac_ext >&5
14728 rm -rf conftest*
af15babd 14729 eval "ac_cv_func_$ac_func=no"
1e487827 14730fi
9952adac 14731rm -f conftest*
af15babd 14732fi
703e0a69 14733
af15babd
VZ
14734if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14735 echo "$ac_t""yes" 1>&6
14736 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4f14bcd8
GD
14737 cat >> confdefs.h <<EOF
14738#define $ac_tr_func 1
14739EOF
14740
14741else
14742 echo "$ac_t""no" 1>&6
af15babd
VZ
14743fi
14744done
14745
14746
4f14bcd8 14747for ac_func in putenv setenv
10f2d63a 14748do
698dcdb6 14749echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
ade35f11 14750echo "configure:14751: checking for $ac_func" >&5
698dcdb6
VZ
14751if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14752 echo $ac_n "(cached) $ac_c" 1>&6
14753else
14754 cat > conftest.$ac_ext <<EOF
ade35f11 14755#line 14756 "configure"
af15babd
VZ
14756#include "confdefs.h"
14757/* System header to define __stub macros and hopefully few prototypes,
14758 which can conflict with char $ac_func(); below. */
14759#include <assert.h>
14760/* Override any gcc2 internal prototype to avoid an error. */
14761/* We use char because int might match the return type of a gcc2
14762 builtin and then its argument prototype would still apply. */
14763char $ac_func();
14764
14765int main() {
14766
14767/* The GNU C library defines this for functions which it implements
14768 to always fail with ENOSYS. Some functions are actually named
14769 something starting with __ and the normal name is an alias. */
14770#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14771choke me
14772#else
14773$ac_func();
14774#endif
14775
14776; return 0; }
14777EOF
ade35f11 14778if { (eval echo configure:14779: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
af15babd
VZ
14779 rm -rf conftest*
14780 eval "ac_cv_func_$ac_func=yes"
14781else
14782 echo "configure: failed program was:" >&5
14783 cat conftest.$ac_ext >&5
14784 rm -rf conftest*
14785 eval "ac_cv_func_$ac_func=no"
14786fi
14787rm -f conftest*
14788fi
14789
14790if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14791 echo "$ac_t""yes" 1>&6
14792 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14793 cat >> confdefs.h <<EOF
14794#define $ac_tr_func 1
14795EOF
4f14bcd8 14796 break
af15babd
VZ
14797else
14798 echo "$ac_t""no" 1>&6
14799fi
af15babd
VZ
14800done
14801
14802
4f14bcd8
GD
14803HAVE_SOME_SLEEP_FUNC=0
14804if test "$USE_BEOS" = 1; then
14805 cat >> confdefs.h <<\EOF
14806#define HAVE_SLEEP 1
af15babd
VZ
14807EOF
14808
4f14bcd8 14809 HAVE_SOME_SLEEP_FUNC=1
10f2d63a
VZ
14810fi
14811
4f14bcd8
GD
14812if test "$USE_DARWIN" = 1; then
14813 cat >> confdefs.h <<\EOF
14814#define HAVE_USLEEP 1
af15babd 14815EOF
10f2d63a 14816
4f14bcd8 14817 HAVE_SOME_SLEEP_FUNC=1
10f2d63a
VZ
14818fi
14819
4f14bcd8
GD
14820if test "$HAVE_SOME_SLEEP_FUNC" != 1; then
14821 POSIX4_LINK=
14822 for ac_func in nanosleep
14823do
14824echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
ade35f11 14825echo "configure:14826: checking for $ac_func" >&5
4f14bcd8 14826if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
698dcdb6 14827 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 14828else
4f14bcd8 14829 cat > conftest.$ac_ext <<EOF
ade35f11 14830#line 14831 "configure"
10f2d63a 14831#include "confdefs.h"
4f14bcd8
GD
14832/* System header to define __stub macros and hopefully few prototypes,
14833 which can conflict with char $ac_func(); below. */
14834#include <assert.h>
10f2d63a
VZ
14835/* Override any gcc2 internal prototype to avoid an error. */
14836/* We use char because int might match the return type of a gcc2
698dcdb6 14837 builtin and then its argument prototype would still apply. */
4f14bcd8 14838char $ac_func();
698dcdb6
VZ
14839
14840int main() {
4f14bcd8
GD
14841
14842/* The GNU C library defines this for functions which it implements
14843 to always fail with ENOSYS. Some functions are actually named
14844 something starting with __ and the normal name is an alias. */
14845#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14846choke me
14847#else
14848$ac_func();
14849#endif
14850
698dcdb6
VZ
14851; return 0; }
14852EOF
ade35f11 14853if { (eval echo configure:14854: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6 14854 rm -rf conftest*
4f14bcd8 14855 eval "ac_cv_func_$ac_func=yes"
698dcdb6
VZ
14856else
14857 echo "configure: failed program was:" >&5
14858 cat conftest.$ac_ext >&5
14859 rm -rf conftest*
4f14bcd8 14860 eval "ac_cv_func_$ac_func=no"
698dcdb6
VZ
14861fi
14862rm -f conftest*
698dcdb6 14863fi
4f14bcd8
GD
14864
14865if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
698dcdb6 14866 echo "$ac_t""yes" 1>&6
4f14bcd8
GD
14867 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14868 cat >> confdefs.h <<EOF
14869#define $ac_tr_func 1
14870EOF
14871 cat >> confdefs.h <<\EOF
14872#define HAVE_NANOSLEEP 1
14873EOF
14874
10f2d63a 14875else
698dcdb6 14876 echo "$ac_t""no" 1>&6
4f14bcd8 14877echo $ac_n "checking for nanosleep in -lposix4""... $ac_c" 1>&6
ade35f11 14878echo "configure:14879: checking for nanosleep in -lposix4" >&5
4f14bcd8 14879ac_lib_var=`echo posix4'_'nanosleep | sed 'y%./+-%__p_%'`
698dcdb6
VZ
14880if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14881 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 14882else
698dcdb6 14883 ac_save_LIBS="$LIBS"
4f14bcd8 14884LIBS="-lposix4 $LIBS"
698dcdb6 14885cat > conftest.$ac_ext <<EOF
ade35f11 14886#line 14887 "configure"
10f2d63a
VZ
14887#include "confdefs.h"
14888/* Override any gcc2 internal prototype to avoid an error. */
14889/* We use char because int might match the return type of a gcc2
698dcdb6 14890 builtin and then its argument prototype would still apply. */
4f14bcd8 14891char nanosleep();
698dcdb6
VZ
14892
14893int main() {
4f14bcd8 14894nanosleep()
698dcdb6
VZ
14895; return 0; }
14896EOF
ade35f11 14897if { (eval echo configure:14898: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
14898 rm -rf conftest*
14899 eval "ac_cv_lib_$ac_lib_var=yes"
14900else
14901 echo "configure: failed program was:" >&5
14902 cat conftest.$ac_ext >&5
14903 rm -rf conftest*
14904 eval "ac_cv_lib_$ac_lib_var=no"
14905fi
14906rm -f conftest*
14907LIBS="$ac_save_LIBS"
10f2d63a 14908
698dcdb6
VZ
14909fi
14910if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14911 echo "$ac_t""yes" 1>&6
14912
4f14bcd8
GD
14913 cat >> confdefs.h <<\EOF
14914#define HAVE_NANOSLEEP 1
14915EOF
14916
3d63bc3a 14917 POSIX4_LINK=" -lposix4"
4f14bcd8 14918
10f2d63a 14919else
698dcdb6 14920 echo "$ac_t""no" 1>&6
10f2d63a 14921
4f14bcd8
GD
14922 for ac_func in usleep
14923do
14924echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
ade35f11 14925echo "configure:14926: checking for $ac_func" >&5
4f14bcd8 14926if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
698dcdb6 14927 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 14928else
698dcdb6 14929 cat > conftest.$ac_ext <<EOF
ade35f11 14930#line 14931 "configure"
10f2d63a 14931#include "confdefs.h"
4f14bcd8
GD
14932/* System header to define __stub macros and hopefully few prototypes,
14933 which can conflict with char $ac_func(); below. */
14934#include <assert.h>
14935/* Override any gcc2 internal prototype to avoid an error. */
14936/* We use char because int might match the return type of a gcc2
14937 builtin and then its argument prototype would still apply. */
14938char $ac_func();
14939
14940int main() {
14941
14942/* The GNU C library defines this for functions which it implements
14943 to always fail with ENOSYS. Some functions are actually named
14944 something starting with __ and the normal name is an alias. */
14945#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14946choke me
14947#else
14948$ac_func();
14949#endif
14950
14951; return 0; }
698dcdb6 14952EOF
ade35f11 14953if { (eval echo configure:14954: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6 14954 rm -rf conftest*
4f14bcd8 14955 eval "ac_cv_func_$ac_func=yes"
1e487827 14956else
698dcdb6 14957 echo "configure: failed program was:" >&5
10f2d63a 14958 cat conftest.$ac_ext >&5
698dcdb6 14959 rm -rf conftest*
4f14bcd8 14960 eval "ac_cv_func_$ac_func=no"
10f2d63a 14961fi
698dcdb6 14962rm -f conftest*
10f2d63a 14963fi
4f14bcd8
GD
14964
14965if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
698dcdb6 14966 echo "$ac_t""yes" 1>&6
4f14bcd8
GD
14967 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14968 cat >> confdefs.h <<EOF
14969#define $ac_tr_func 1
14970EOF
14971 cat >> confdefs.h <<\EOF
14972#define HAVE_USLEEP 1
14973EOF
14974
698dcdb6
VZ
14975else
14976 echo "$ac_t""no" 1>&6
4f14bcd8
GD
14977echo "configure: warning: wxSleep() function will not work" 1>&2
14978
10f2d63a 14979fi
4f14bcd8 14980done
10f2d63a 14981
4f14bcd8 14982
698dcdb6 14983
6232543b 14984fi
10f2d63a 14985
698dcdb6 14986
4f14bcd8 14987
1e487827 14988fi
4f14bcd8 14989done
703e0a69 14990
10f2d63a
VZ
14991fi
14992
4f14bcd8 14993for ac_func in uname gethostname
70846f0a 14994do
698dcdb6 14995echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
ade35f11 14996echo "configure:14997: checking for $ac_func" >&5
698dcdb6
VZ
14997if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14998 echo $ac_n "(cached) $ac_c" 1>&6
14999else
15000 cat > conftest.$ac_ext <<EOF
ade35f11 15001#line 15002 "configure"
70846f0a
VZ
15002#include "confdefs.h"
15003/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 15004 which can conflict with char $ac_func(); below. */
70846f0a
VZ
15005#include <assert.h>
15006/* Override any gcc2 internal prototype to avoid an error. */
15007/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
15008 builtin and then its argument prototype would still apply. */
15009char $ac_func();
15010
15011int main() {
70846f0a
VZ
15012
15013/* The GNU C library defines this for functions which it implements
15014 to always fail with ENOSYS. Some functions are actually named
15015 something starting with __ and the normal name is an alias. */
15016#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15017choke me
15018#else
698dcdb6 15019$ac_func();
70846f0a
VZ
15020#endif
15021
698dcdb6 15022; return 0; }
70846f0a 15023EOF
ade35f11 15024if { (eval echo configure:15025: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
15025 rm -rf conftest*
15026 eval "ac_cv_func_$ac_func=yes"
15027else
15028 echo "configure: failed program was:" >&5
15029 cat conftest.$ac_ext >&5
15030 rm -rf conftest*
15031 eval "ac_cv_func_$ac_func=no"
15032fi
15033rm -f conftest*
15034fi
70846f0a 15035
698dcdb6
VZ
15036if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15037 echo "$ac_t""yes" 1>&6
15038 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15039 cat >> confdefs.h <<EOF
15040#define $ac_tr_func 1
15041EOF
4f14bcd8 15042 break
698dcdb6
VZ
15043else
15044 echo "$ac_t""no" 1>&6
70846f0a
VZ
15045fi
15046done
15047
698dcdb6 15048
4f14bcd8
GD
15049
15050ac_ext=C
15051# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15052ac_cpp='$CXXCPP $CPPFLAGS'
15053ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15054ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15055cross_compiling=$ac_cv_prog_cxx_cross
15056
15057
15058for ac_func in strtok_r
10f2d63a 15059do
4f14bcd8 15060echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
ade35f11 15061echo "configure:15062: checking for $ac_func" >&5
4f14bcd8 15062if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
698dcdb6
VZ
15063 echo $ac_n "(cached) $ac_c" 1>&6
15064else
15065 cat > conftest.$ac_ext <<EOF
ade35f11 15066#line 15067 "configure"
10f2d63a 15067#include "confdefs.h"
4f14bcd8
GD
15068/* System header to define __stub macros and hopefully few prototypes,
15069 which can conflict with char $ac_func(); below. */
15070#include <assert.h>
15071/* Override any gcc2 internal prototype to avoid an error. */
15072#ifdef __cplusplus
15073extern "C"
15074#endif
15075/* We use char because int might match the return type of a gcc2
15076 builtin and then its argument prototype would still apply. */
15077char $ac_func();
15078
15079int main() {
15080
15081/* The GNU C library defines this for functions which it implements
15082 to always fail with ENOSYS. Some functions are actually named
15083 something starting with __ and the normal name is an alias. */
15084#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15085choke me
15086#else
15087$ac_func();
15088#endif
15089
15090; return 0; }
698dcdb6 15091EOF
ade35f11 15092if { (eval echo configure:15093: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6 15093 rm -rf conftest*
4f14bcd8 15094 eval "ac_cv_func_$ac_func=yes"
1e487827 15095else
698dcdb6 15096 echo "configure: failed program was:" >&5
10f2d63a 15097 cat conftest.$ac_ext >&5
698dcdb6 15098 rm -rf conftest*
4f14bcd8 15099 eval "ac_cv_func_$ac_func=no"
10f2d63a 15100fi
698dcdb6 15101rm -f conftest*
10f2d63a 15102fi
4f14bcd8
GD
15103
15104if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
698dcdb6 15105 echo "$ac_t""yes" 1>&6
4f14bcd8 15106 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
698dcdb6 15107 cat >> confdefs.h <<EOF
4f14bcd8 15108#define $ac_tr_func 1
10f2d63a 15109EOF
698dcdb6
VZ
15110
15111else
15112 echo "$ac_t""no" 1>&6
10f2d63a
VZ
15113fi
15114done
15115
698dcdb6 15116
4f14bcd8
GD
15117ac_ext=c
15118# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15119ac_cpp='$CPP $CPPFLAGS'
15120ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15121ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15122cross_compiling=$ac_cv_prog_cc_cross
15123
15124
15125INET_LINK=
15126for ac_func in inet_addr
15127do
15128echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
ade35f11 15129echo "configure:15130: checking for $ac_func" >&5
4f14bcd8 15130if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
698dcdb6 15131 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 15132else
4f14bcd8 15133 cat > conftest.$ac_ext <<EOF
ade35f11 15134#line 15135 "configure"
10f2d63a 15135#include "confdefs.h"
4f14bcd8
GD
15136/* System header to define __stub macros and hopefully few prototypes,
15137 which can conflict with char $ac_func(); below. */
15138#include <assert.h>
10f2d63a
VZ
15139/* Override any gcc2 internal prototype to avoid an error. */
15140/* We use char because int might match the return type of a gcc2
698dcdb6 15141 builtin and then its argument prototype would still apply. */
4f14bcd8 15142char $ac_func();
698dcdb6
VZ
15143
15144int main() {
4f14bcd8
GD
15145
15146/* The GNU C library defines this for functions which it implements
15147 to always fail with ENOSYS. Some functions are actually named
15148 something starting with __ and the normal name is an alias. */
15149#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15150choke me
15151#else
15152$ac_func();
15153#endif
15154
698dcdb6
VZ
15155; return 0; }
15156EOF
ade35f11 15157if { (eval echo configure:15158: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6 15158 rm -rf conftest*
4f14bcd8 15159 eval "ac_cv_func_$ac_func=yes"
698dcdb6
VZ
15160else
15161 echo "configure: failed program was:" >&5
15162 cat conftest.$ac_ext >&5
15163 rm -rf conftest*
4f14bcd8 15164 eval "ac_cv_func_$ac_func=no"
698dcdb6
VZ
15165fi
15166rm -f conftest*
698dcdb6 15167fi
4f14bcd8
GD
15168
15169if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
698dcdb6 15170 echo "$ac_t""yes" 1>&6
4f14bcd8
GD
15171 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15172 cat >> confdefs.h <<EOF
15173#define $ac_tr_func 1
15174EOF
15175 cat >> confdefs.h <<\EOF
15176#define HAVE_INET_ADDR 1
10f2d63a
VZ
15177EOF
15178
15179else
698dcdb6 15180 echo "$ac_t""no" 1>&6
4f14bcd8 15181echo $ac_n "checking for inet_addr in -lnsl""... $ac_c" 1>&6
ade35f11 15182echo "configure:15183: checking for inet_addr in -lnsl" >&5
4f14bcd8 15183ac_lib_var=`echo nsl'_'inet_addr | sed 'y%./+-%__p_%'`
698dcdb6
VZ
15184if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15185 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 15186else
698dcdb6 15187 ac_save_LIBS="$LIBS"
4f14bcd8 15188LIBS="-lnsl $LIBS"
698dcdb6 15189cat > conftest.$ac_ext <<EOF
ade35f11 15190#line 15191 "configure"
10f2d63a
VZ
15191#include "confdefs.h"
15192/* Override any gcc2 internal prototype to avoid an error. */
15193/* We use char because int might match the return type of a gcc2
698dcdb6 15194 builtin and then its argument prototype would still apply. */
4f14bcd8 15195char inet_addr();
698dcdb6
VZ
15196
15197int main() {
4f14bcd8 15198inet_addr()
698dcdb6
VZ
15199; return 0; }
15200EOF
ade35f11 15201if { (eval echo configure:15202: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
15202 rm -rf conftest*
15203 eval "ac_cv_lib_$ac_lib_var=yes"
15204else
15205 echo "configure: failed program was:" >&5
15206 cat conftest.$ac_ext >&5
15207 rm -rf conftest*
15208 eval "ac_cv_lib_$ac_lib_var=no"
15209fi
15210rm -f conftest*
15211LIBS="$ac_save_LIBS"
15212
15213fi
15214if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15215 echo "$ac_t""yes" 1>&6
4f14bcd8 15216 INET_LINK="nsl"
10f2d63a 15217else
698dcdb6 15218 echo "$ac_t""no" 1>&6
4f14bcd8 15219echo $ac_n "checking for inet_addr in -lresolv""... $ac_c" 1>&6
ade35f11 15220echo "configure:15221: checking for inet_addr in -lresolv" >&5
4f14bcd8 15221ac_lib_var=`echo resolv'_'inet_addr | sed 'y%./+-%__p_%'`
698dcdb6
VZ
15222if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15223 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 15224else
698dcdb6 15225 ac_save_LIBS="$LIBS"
4f14bcd8 15226LIBS="-lresolv $LIBS"
698dcdb6 15227cat > conftest.$ac_ext <<EOF
ade35f11 15228#line 15229 "configure"
10f2d63a
VZ
15229#include "confdefs.h"
15230/* Override any gcc2 internal prototype to avoid an error. */
15231/* We use char because int might match the return type of a gcc2
698dcdb6 15232 builtin and then its argument prototype would still apply. */
4f14bcd8 15233char inet_addr();
698dcdb6
VZ
15234
15235int main() {
4f14bcd8 15236inet_addr()
698dcdb6
VZ
15237; return 0; }
15238EOF
ade35f11 15239if { (eval echo configure:15240: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
15240 rm -rf conftest*
15241 eval "ac_cv_lib_$ac_lib_var=yes"
15242else
15243 echo "configure: failed program was:" >&5
15244 cat conftest.$ac_ext >&5
15245 rm -rf conftest*
15246 eval "ac_cv_lib_$ac_lib_var=no"
15247fi
15248rm -f conftest*
15249LIBS="$ac_save_LIBS"
15250
15251fi
15252if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15253 echo "$ac_t""yes" 1>&6
4f14bcd8
GD
15254 INET_LINK="resolv"
15255
698dcdb6 15256else
4f14bcd8
GD
15257 echo "$ac_t""no" 1>&6
15258fi
698dcdb6 15259
4f14bcd8 15260
698dcdb6 15261fi
4f14bcd8
GD
15262
15263
698dcdb6
VZ
15264
15265fi
4f14bcd8
GD
15266done
15267
15268
15269for ac_func in inet_aton
15270do
15271echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
ade35f11 15272echo "configure:15273: checking for $ac_func" >&5
4f14bcd8 15273if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
698dcdb6
VZ
15274 echo $ac_n "(cached) $ac_c" 1>&6
15275else
4f14bcd8 15276 cat > conftest.$ac_ext <<EOF
ade35f11 15277#line 15278 "configure"
f6bcfd97 15278#include "confdefs.h"
4f14bcd8
GD
15279/* System header to define __stub macros and hopefully few prototypes,
15280 which can conflict with char $ac_func(); below. */
15281#include <assert.h>
f6bcfd97
BP
15282/* Override any gcc2 internal prototype to avoid an error. */
15283/* We use char because int might match the return type of a gcc2
698dcdb6 15284 builtin and then its argument prototype would still apply. */
4f14bcd8 15285char $ac_func();
698dcdb6
VZ
15286
15287int main() {
4f14bcd8
GD
15288
15289/* The GNU C library defines this for functions which it implements
15290 to always fail with ENOSYS. Some functions are actually named
15291 something starting with __ and the normal name is an alias. */
15292#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15293choke me
15294#else
15295$ac_func();
15296#endif
15297
698dcdb6
VZ
15298; return 0; }
15299EOF
ade35f11 15300if { (eval echo configure:15301: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6 15301 rm -rf conftest*
4f14bcd8 15302 eval "ac_cv_func_$ac_func=yes"
698dcdb6
VZ
15303else
15304 echo "configure: failed program was:" >&5
15305 cat conftest.$ac_ext >&5
15306 rm -rf conftest*
4f14bcd8 15307 eval "ac_cv_func_$ac_func=no"
698dcdb6
VZ
15308fi
15309rm -f conftest*
698dcdb6 15310fi
4f14bcd8
GD
15311
15312if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
698dcdb6 15313 echo "$ac_t""yes" 1>&6
4f14bcd8
GD
15314 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15315 cat >> confdefs.h <<EOF
15316#define $ac_tr_func 1
15317EOF
15318 cat >> confdefs.h <<\EOF
15319#define HAVE_INET_ATON 1
15320EOF
15321
10f2d63a 15322else
698dcdb6 15323 echo "$ac_t""no" 1>&6
4f14bcd8 15324 echo $ac_n "checking for inet_aton in -l$INET_LINK""... $ac_c" 1>&6
ade35f11 15325echo "configure:15326: checking for inet_aton in -l$INET_LINK" >&5
4f14bcd8 15326ac_lib_var=`echo $INET_LINK'_'inet_aton | sed 'y%./+-%__p_%'`
698dcdb6
VZ
15327if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15328 echo $ac_n "(cached) $ac_c" 1>&6
1e487827 15329else
698dcdb6 15330 ac_save_LIBS="$LIBS"
4f14bcd8 15331LIBS="-l$INET_LINK $LIBS"
698dcdb6 15332cat > conftest.$ac_ext <<EOF
ade35f11 15333#line 15334 "configure"
10f2d63a 15334#include "confdefs.h"
6232543b 15335/* Override any gcc2 internal prototype to avoid an error. */
6232543b 15336/* We use char because int might match the return type of a gcc2
698dcdb6 15337 builtin and then its argument prototype would still apply. */
4f14bcd8 15338char inet_aton();
698dcdb6
VZ
15339
15340int main() {
4f14bcd8 15341inet_aton()
698dcdb6
VZ
15342; return 0; }
15343EOF
ade35f11 15344if { (eval echo configure:15345: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
15345 rm -rf conftest*
15346 eval "ac_cv_lib_$ac_lib_var=yes"
15347else
15348 echo "configure: failed program was:" >&5
15349 cat conftest.$ac_ext >&5
15350 rm -rf conftest*
15351 eval "ac_cv_lib_$ac_lib_var=no"
15352fi
15353rm -f conftest*
15354LIBS="$ac_save_LIBS"
10f2d63a 15355
698dcdb6
VZ
15356fi
15357if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15358 echo "$ac_t""yes" 1>&6
4f14bcd8
GD
15359 cat >> confdefs.h <<\EOF
15360#define HAVE_INET_ATON 1
15361EOF
15362
698dcdb6
VZ
15363else
15364 echo "$ac_t""no" 1>&6
10f2d63a
VZ
15365fi
15366
4f14bcd8 15367
10f2d63a 15368fi
4f14bcd8 15369done
10f2d63a 15370
4f14bcd8
GD
15371
15372if test "x$INET_LINK" != "x"; then
15373 cat >> confdefs.h <<\EOF
15374#define HAVE_INET_ADDR 1
15375EOF
15376
3d63bc3a 15377 INET_LINK=" -l$INET_LINK"
6232543b 15378fi
10f2d63a 15379
1e487827 15380fi
703e0a69 15381
698dcdb6 15382
4f14bcd8
GD
15383cat > confcache <<\EOF
15384# This file is a shell script that caches the results of configure
15385# tests run on this system so they can be shared between configure
15386# scripts and configure runs. It is not useful on other systems.
15387# If it contains results you don't want to keep, you may remove or edit it.
15388#
15389# By default, configure uses ./config.cache as the cache file,
15390# creating it if it does not exist already. You can give configure
15391# the --cache-file=FILE option to use a different cache file; that is
15392# what configure does when it calls configure scripts in
15393# subdirectories, so they share the cache.
15394# Giving --cache-file=/dev/null disables caching, for debugging configure.
15395# config.status only pays attention to the cache file if you give it the
15396# --recheck option to rerun configure.
15397#
f6bcfd97 15398EOF
4f14bcd8
GD
15399# The following way of writing the cache mishandles newlines in values,
15400# but we know of no workaround that is simple, portable, and efficient.
15401# So, don't put newlines in cache variables' values.
15402# Ultrix sh set writes to stderr and can't be redirected directly,
15403# and sets the high bit in the cache file unless we assign to the vars.
15404(set) 2>&1 |
15405 case `(ac_space=' '; set | grep ac_space) 2>&1` in
15406 *ac_space=\ *)
15407 # `set' does not quote correctly, so add quotes (double-quote substitution
15408 # turns \\\\ into \\, and sed turns \\ into \).
15409 sed -n \
15410 -e "s/'/'\\\\''/g" \
15411 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
15412 ;;
15413 *)
15414 # `set' quotes correctly as required by POSIX, so do not add quotes.
15415 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
15416 ;;
15417 esac >> confcache
15418if cmp -s $cache_file confcache; then
15419 :
15420else
15421 if test -w $cache_file; then
15422 echo "updating cache $cache_file"
15423 cat confcache > $cache_file
f6bcfd97 15424 else
4f14bcd8 15425 echo "not updating unwritable cache $cache_file"
f6bcfd97 15426 fi
4f14bcd8
GD
15427fi
15428rm -f confcache
f6bcfd97 15429
4f14bcd8
GD
15430
15431
15432if test "$TOOLKIT" != "MSW"; then
15433
7274f1c7
RL
15434
15435 THREADS_LINK=
15436 THREADS_OBJ=
15437 CODE_GEN_FLAGS=
15438 CODE_GEN_FLAGS_CXX=
15439
15440 if test "$wxUSE_THREADS" = "yes" ; then
15441 if test "$wxUSE_WINE" = 1 ; then
156b2523 15442 echo "configure: warning: Threads are not supported under WINE... disabled" 1>&2
7274f1c7
RL
15443 wxUSE_THREADS="no"
15444 elif test "$USE_BEOS" = 1; then
156b2523 15445 echo "configure: warning: BeOS threads are not yet supported... disabled" 1>&2
7274f1c7
RL
15446 wxUSE_THREADS="no"
15447 fi
4f14bcd8 15448 fi
4f14bcd8 15449
7274f1c7
RL
15450 if test "$wxUSE_THREADS" = "yes" ; then
15451
15452 if test "$USE_AIX" = 1; then
15453 THREADS_LIB=pthreads
15454 else
15455 THREADS_LIB=pthread
15456 fi
4f14bcd8 15457
7274f1c7 15458 echo $ac_n "checking for pthread_create in -l$THREADS_LIB""... $ac_c" 1>&6
ade35f11 15459echo "configure:15460: checking for pthread_create in -l$THREADS_LIB" >&5
4f14bcd8 15460ac_lib_var=`echo $THREADS_LIB'_'pthread_create | sed 'y%./+-%__p_%'`
698dcdb6
VZ
15461if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15462 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 15463else
698dcdb6 15464 ac_save_LIBS="$LIBS"
4f14bcd8 15465LIBS="-l$THREADS_LIB $LIBS"
698dcdb6 15466cat > conftest.$ac_ext <<EOF
ade35f11 15467#line 15468 "configure"
10f2d63a
VZ
15468#include "confdefs.h"
15469/* Override any gcc2 internal prototype to avoid an error. */
15470/* We use char because int might match the return type of a gcc2
698dcdb6 15471 builtin and then its argument prototype would still apply. */
4f14bcd8 15472char pthread_create();
698dcdb6
VZ
15473
15474int main() {
4f14bcd8 15475pthread_create()
698dcdb6
VZ
15476; return 0; }
15477EOF
ade35f11 15478if { (eval echo configure:15479: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
15479 rm -rf conftest*
15480 eval "ac_cv_lib_$ac_lib_var=yes"
15481else
15482 echo "configure: failed program was:" >&5
15483 cat conftest.$ac_ext >&5
15484 rm -rf conftest*
15485 eval "ac_cv_lib_$ac_lib_var=no"
15486fi
15487rm -f conftest*
15488LIBS="$ac_save_LIBS"
15489
15490fi
15491if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15492 echo "$ac_t""yes" 1>&6
4f14bcd8 15493
7274f1c7
RL
15494 THREADS_OBJ="threadpsx.lo"
15495 THREADS_LINK=$THREADS_LIB
15496
10f2d63a 15497else
698dcdb6 15498 echo "$ac_t""no" 1>&6
10f2d63a 15499
7274f1c7 15500 echo $ac_n "checking for pthread_create in -lc_r""... $ac_c" 1>&6
ade35f11 15501echo "configure:15502: checking for pthread_create in -lc_r" >&5
4f14bcd8
GD
15502ac_lib_var=`echo c_r'_'pthread_create | sed 'y%./+-%__p_%'`
15503if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
698dcdb6
VZ
15504 echo $ac_n "(cached) $ac_c" 1>&6
15505else
4f14bcd8
GD
15506 ac_save_LIBS="$LIBS"
15507LIBS="-lc_r $LIBS"
15508cat > conftest.$ac_ext <<EOF
ade35f11 15509#line 15510 "configure"
10f2d63a 15510#include "confdefs.h"
4f14bcd8
GD
15511/* Override any gcc2 internal prototype to avoid an error. */
15512/* We use char because int might match the return type of a gcc2
15513 builtin and then its argument prototype would still apply. */
15514char pthread_create();
10f2d63a 15515
4f14bcd8
GD
15516int main() {
15517pthread_create()
698dcdb6
VZ
15518; return 0; }
15519EOF
ade35f11 15520if { (eval echo configure:15521: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6 15521 rm -rf conftest*
4f14bcd8 15522 eval "ac_cv_lib_$ac_lib_var=yes"
10f2d63a 15523else
698dcdb6
VZ
15524 echo "configure: failed program was:" >&5
15525 cat conftest.$ac_ext >&5
15526 rm -rf conftest*
4f14bcd8 15527 eval "ac_cv_lib_$ac_lib_var=no"
6232543b 15528fi
698dcdb6 15529rm -f conftest*
4f14bcd8 15530LIBS="$ac_save_LIBS"
d9b9876f 15531
4f14bcd8
GD
15532fi
15533if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15534 echo "$ac_t""yes" 1>&6
15535
7274f1c7
RL
15536 THREADS_OBJ="threadpsx.lo"
15537 THREADS_LINK="c_r"
15538
4f14bcd8
GD
15539else
15540 echo "$ac_t""no" 1>&6
ab252f7b 15541
7274f1c7 15542 ac_safe=`echo "sys/prctl.h" | sed 'y%./+-%__p_%'`
4f14bcd8 15543echo $ac_n "checking for sys/prctl.h""... $ac_c" 1>&6
ade35f11 15544echo "configure:15545: checking for sys/prctl.h" >&5
4f14bcd8 15545if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
698dcdb6 15546 echo $ac_n "(cached) $ac_c" 1>&6
d9b9876f 15547else
4f14bcd8 15548 cat > conftest.$ac_ext <<EOF
ade35f11 15549#line 15550 "configure"
d9b9876f 15550#include "confdefs.h"
4f14bcd8 15551#include <sys/prctl.h>
698dcdb6 15552EOF
4f14bcd8 15553ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
ade35f11 15554{ (eval echo configure:15555: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4f14bcd8
GD
15555ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15556if test -z "$ac_err"; then
698dcdb6 15557 rm -rf conftest*
4f14bcd8 15558 eval "ac_cv_header_$ac_safe=yes"
d9b9876f 15559else
4f14bcd8 15560 echo "$ac_err" >&5
698dcdb6
VZ
15561 echo "configure: failed program was:" >&5
15562 cat conftest.$ac_ext >&5
15563 rm -rf conftest*
4f14bcd8 15564 eval "ac_cv_header_$ac_safe=no"
6232543b 15565fi
698dcdb6 15566rm -f conftest*
4f14bcd8
GD
15567fi
15568if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15569 echo "$ac_t""yes" 1>&6
698dcdb6 15570
7274f1c7
RL
15571 THREADS_OBJ="threadsgi.lo"
15572
4f14bcd8
GD
15573else
15574 echo "$ac_t""no" 1>&6
1e487827 15575fi
698dcdb6 15576
7274f1c7 15577
4f14bcd8 15578fi
d9b9876f 15579
7274f1c7 15580
4f14bcd8 15581fi
d9b9876f 15582
4f14bcd8 15583
7274f1c7
RL
15584 if test -z "$THREADS_OBJ" ; then
15585 wxUSE_THREADS=no
156b2523 15586 echo "configure: warning: No thread support on this system... disabled" 1>&2
7274f1c7 15587 fi
4f14bcd8 15588 fi
4f14bcd8 15589
7274f1c7
RL
15590 if test "$wxUSE_THREADS" = "yes" ; then
15591 for ac_func in thr_setconcurrency
4f14bcd8
GD
15592do
15593echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
ade35f11 15594echo "configure:15595: checking for $ac_func" >&5
4f14bcd8 15595if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
698dcdb6
VZ
15596 echo $ac_n "(cached) $ac_c" 1>&6
15597else
4f14bcd8 15598 cat > conftest.$ac_ext <<EOF
ade35f11 15599#line 15600 "configure"
d9b9876f 15600#include "confdefs.h"
4f14bcd8
GD
15601/* System header to define __stub macros and hopefully few prototypes,
15602 which can conflict with char $ac_func(); below. */
15603#include <assert.h>
15604/* Override any gcc2 internal prototype to avoid an error. */
15605/* We use char because int might match the return type of a gcc2
15606 builtin and then its argument prototype would still apply. */
15607char $ac_func();
15608
698dcdb6 15609int main() {
d9b9876f 15610
4f14bcd8
GD
15611/* The GNU C library defines this for functions which it implements
15612 to always fail with ENOSYS. Some functions are actually named
15613 something starting with __ and the normal name is an alias. */
15614#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15615choke me
15616#else
15617$ac_func();
15618#endif
15619
698dcdb6
VZ
15620; return 0; }
15621EOF
ade35f11 15622if { (eval echo configure:15623: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6 15623 rm -rf conftest*
4f14bcd8 15624 eval "ac_cv_func_$ac_func=yes"
d9b9876f 15625else
698dcdb6
VZ
15626 echo "configure: failed program was:" >&5
15627 cat conftest.$ac_ext >&5
15628 rm -rf conftest*
4f14bcd8 15629 eval "ac_cv_func_$ac_func=no"
6232543b 15630fi
698dcdb6 15631rm -f conftest*
1e487827 15632fi
698dcdb6 15633
4f14bcd8
GD
15634if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15635 echo "$ac_t""yes" 1>&6
15636 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15637 cat >> confdefs.h <<EOF
15638#define $ac_tr_func 1
d9b9876f 15639EOF
4f14bcd8
GD
15640
15641else
15642 echo "$ac_t""no" 1>&6
10f2d63a 15643fi
4f14bcd8 15644done
10f2d63a 15645
10f2d63a 15646
7274f1c7
RL
15647
15648 for ac_hdr in sched.h
4f14bcd8
GD
15649do
15650ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
15651echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
ade35f11 15652echo "configure:15653: checking for $ac_hdr" >&5
4f14bcd8
GD
15653if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
15654 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 15655else
4f14bcd8 15656 cat > conftest.$ac_ext <<EOF
ade35f11 15657#line 15658 "configure"
4f14bcd8
GD
15658#include "confdefs.h"
15659#include <$ac_hdr>
13111b2a 15660EOF
4f14bcd8 15661ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
ade35f11 15662{ (eval echo configure:15663: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4f14bcd8
GD
15663ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15664if test -z "$ac_err"; then
15665 rm -rf conftest*
15666 eval "ac_cv_header_$ac_safe=yes"
15667else
15668 echo "$ac_err" >&5
15669 echo "configure: failed program was:" >&5
15670 cat conftest.$ac_ext >&5
15671 rm -rf conftest*
15672 eval "ac_cv_header_$ac_safe=no"
13111b2a 15673fi
4f14bcd8 15674rm -f conftest*
10f2d63a 15675fi
4f14bcd8
GD
15676if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15677 echo "$ac_t""yes" 1>&6
15678 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
698dcdb6 15679 cat >> confdefs.h <<EOF
4f14bcd8 15680#define $ac_tr_hdr 1
f6bcfd97 15681EOF
4f14bcd8
GD
15682
15683else
15684 echo "$ac_t""no" 1>&6
f6bcfd97 15685fi
4f14bcd8 15686done
f6bcfd97 15687
10f2d63a 15688
7274f1c7 15689 echo $ac_n "checking for sched_yield in -l$THREADS_LINK""... $ac_c" 1>&6
ade35f11 15690echo "configure:15691: checking for sched_yield in -l$THREADS_LINK" >&5
4f14bcd8
GD
15691ac_lib_var=`echo $THREADS_LINK'_'sched_yield | sed 'y%./+-%__p_%'`
15692if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15693 echo $ac_n "(cached) $ac_c" 1>&6
15694else
15695 ac_save_LIBS="$LIBS"
15696LIBS="-l$THREADS_LINK $LIBS"
15697cat > conftest.$ac_ext <<EOF
ade35f11 15698#line 15699 "configure"
4f14bcd8
GD
15699#include "confdefs.h"
15700/* Override any gcc2 internal prototype to avoid an error. */
15701/* We use char because int might match the return type of a gcc2
15702 builtin and then its argument prototype would still apply. */
15703char sched_yield();
10f2d63a 15704
4f14bcd8
GD
15705int main() {
15706sched_yield()
15707; return 0; }
10f2d63a 15708EOF
ade35f11 15709if { (eval echo configure:15710: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4f14bcd8
GD
15710 rm -rf conftest*
15711 eval "ac_cv_lib_$ac_lib_var=yes"
10f2d63a 15712else
4f14bcd8
GD
15713 echo "configure: failed program was:" >&5
15714 cat conftest.$ac_ext >&5
15715 rm -rf conftest*
15716 eval "ac_cv_lib_$ac_lib_var=no"
10f2d63a 15717fi
4f14bcd8
GD
15718rm -f conftest*
15719LIBS="$ac_save_LIBS"
10f2d63a 15720
4f14bcd8
GD
15721fi
15722if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15723 echo "$ac_t""yes" 1>&6
15724 cat >> confdefs.h <<\EOF
15725#define HAVE_SCHED_YIELD 1
10f2d63a
VZ
15726EOF
15727
4f14bcd8
GD
15728else
15729 echo "$ac_t""no" 1>&6
15730echo $ac_n "checking for sched_yield in -lposix4""... $ac_c" 1>&6
ade35f11 15731echo "configure:15732: checking for sched_yield in -lposix4" >&5
4f14bcd8
GD
15732ac_lib_var=`echo posix4'_'sched_yield | sed 'y%./+-%__p_%'`
15733if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15734 echo $ac_n "(cached) $ac_c" 1>&6
15735else
15736 ac_save_LIBS="$LIBS"
15737LIBS="-lposix4 $LIBS"
15738cat > conftest.$ac_ext <<EOF
ade35f11 15739#line 15740 "configure"
4f14bcd8
GD
15740#include "confdefs.h"
15741/* Override any gcc2 internal prototype to avoid an error. */
15742/* We use char because int might match the return type of a gcc2
15743 builtin and then its argument prototype would still apply. */
15744char sched_yield();
47c13eb7 15745
4f14bcd8
GD
15746int main() {
15747sched_yield()
15748; return 0; }
10f2d63a 15749EOF
ade35f11 15750if { (eval echo configure:15751: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4f14bcd8
GD
15751 rm -rf conftest*
15752 eval "ac_cv_lib_$ac_lib_var=yes"
10f2d63a 15753else
4f14bcd8
GD
15754 echo "configure: failed program was:" >&5
15755 cat conftest.$ac_ext >&5
15756 rm -rf conftest*
15757 eval "ac_cv_lib_$ac_lib_var=no"
10f2d63a 15758fi
4f14bcd8
GD
15759rm -f conftest*
15760LIBS="$ac_save_LIBS"
10f2d63a 15761
54276ccf 15762fi
4f14bcd8
GD
15763if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15764 echo "$ac_t""yes" 1>&6
15765 cat >> confdefs.h <<\EOF
15766#define HAVE_SCHED_YIELD 1
54276ccf 15767EOF
3d63bc3a 15768 POSIX4_LINK=" -lposix4"
4f14bcd8
GD
15769else
15770 echo "$ac_t""no" 1>&6
15771echo "configure: warning: wxThread::Yield will not work properly" 1>&2
7274f1c7 15772
54276ccf
VZ
15773fi
15774
7274f1c7 15775
4f14bcd8 15776fi
698dcdb6 15777
10f2d63a 15778
7274f1c7
RL
15779 HAVE_PRIOR_FUNCS=0
15780 echo $ac_n "checking for pthread_attr_getschedpolicy in -l$THREADS_LINK""... $ac_c" 1>&6
ade35f11 15781echo "configure:15782: checking for pthread_attr_getschedpolicy in -l$THREADS_LINK" >&5
4f14bcd8
GD
15782ac_lib_var=`echo $THREADS_LINK'_'pthread_attr_getschedpolicy | sed 'y%./+-%__p_%'`
15783if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
698dcdb6
VZ
15784 echo $ac_n "(cached) $ac_c" 1>&6
15785else
4f14bcd8
GD
15786 ac_save_LIBS="$LIBS"
15787LIBS="-l$THREADS_LINK $LIBS"
15788cat > conftest.$ac_ext <<EOF
ade35f11 15789#line 15790 "configure"
422107f9 15790#include "confdefs.h"
4f14bcd8
GD
15791/* Override any gcc2 internal prototype to avoid an error. */
15792/* We use char because int might match the return type of a gcc2
15793 builtin and then its argument prototype would still apply. */
15794char pthread_attr_getschedpolicy();
15795
15796int main() {
15797pthread_attr_getschedpolicy()
15798; return 0; }
698dcdb6 15799EOF
ade35f11 15800if { (eval echo configure:15801: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6 15801 rm -rf conftest*
4f14bcd8 15802 eval "ac_cv_lib_$ac_lib_var=yes"
422107f9 15803else
698dcdb6 15804 echo "configure: failed program was:" >&5
422107f9 15805 cat conftest.$ac_ext >&5
698dcdb6 15806 rm -rf conftest*
4f14bcd8 15807 eval "ac_cv_lib_$ac_lib_var=no"
422107f9 15808fi
698dcdb6 15809rm -f conftest*
4f14bcd8
GD
15810LIBS="$ac_save_LIBS"
15811
422107f9 15812fi
4f14bcd8 15813if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
698dcdb6 15814 echo "$ac_t""yes" 1>&6
4f14bcd8 15815 echo $ac_n "checking for pthread_attr_setschedparam in -l$THREADS_LINK""... $ac_c" 1>&6
ade35f11 15816echo "configure:15817: checking for pthread_attr_setschedparam in -l$THREADS_LINK" >&5
4f14bcd8 15817ac_lib_var=`echo $THREADS_LINK'_'pthread_attr_setschedparam | sed 'y%./+-%__p_%'`
698dcdb6
VZ
15818if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15819 echo $ac_n "(cached) $ac_c" 1>&6
422107f9 15820else
698dcdb6 15821 ac_save_LIBS="$LIBS"
4f14bcd8 15822LIBS="-l$THREADS_LINK $LIBS"
698dcdb6 15823cat > conftest.$ac_ext <<EOF
ade35f11 15824#line 15825 "configure"
422107f9
VZ
15825#include "confdefs.h"
15826/* Override any gcc2 internal prototype to avoid an error. */
15827/* We use char because int might match the return type of a gcc2
698dcdb6 15828 builtin and then its argument prototype would still apply. */
4f14bcd8 15829char pthread_attr_setschedparam();
698dcdb6
VZ
15830
15831int main() {
4f14bcd8 15832pthread_attr_setschedparam()
698dcdb6
VZ
15833; return 0; }
15834EOF
ade35f11 15835if { (eval echo configure:15836: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
15836 rm -rf conftest*
15837 eval "ac_cv_lib_$ac_lib_var=yes"
15838else
15839 echo "configure: failed program was:" >&5
15840 cat conftest.$ac_ext >&5
15841 rm -rf conftest*
15842 eval "ac_cv_lib_$ac_lib_var=no"
15843fi
15844rm -f conftest*
15845LIBS="$ac_save_LIBS"
15846
15847fi
15848if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15849 echo "$ac_t""yes" 1>&6
4f14bcd8 15850 echo $ac_n "checking for sched_get_priority_max in -l$THREADS_LINK""... $ac_c" 1>&6
ade35f11 15851echo "configure:15852: checking for sched_get_priority_max in -l$THREADS_LINK" >&5
4f14bcd8
GD
15852ac_lib_var=`echo $THREADS_LINK'_'sched_get_priority_max | sed 'y%./+-%__p_%'`
15853if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
698dcdb6
VZ
15854 echo $ac_n "(cached) $ac_c" 1>&6
15855else
4f14bcd8
GD
15856 ac_save_LIBS="$LIBS"
15857LIBS="-l$THREADS_LINK $LIBS"
15858cat > conftest.$ac_ext <<EOF
ade35f11 15859#line 15860 "configure"
422107f9 15860#include "confdefs.h"
4f14bcd8
GD
15861/* Override any gcc2 internal prototype to avoid an error. */
15862/* We use char because int might match the return type of a gcc2
15863 builtin and then its argument prototype would still apply. */
15864char sched_get_priority_max();
15865
15866int main() {
15867sched_get_priority_max()
15868; return 0; }
698dcdb6 15869EOF
ade35f11 15870if { (eval echo configure:15871: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6 15871 rm -rf conftest*
4f14bcd8 15872 eval "ac_cv_lib_$ac_lib_var=yes"
422107f9 15873else
698dcdb6 15874 echo "configure: failed program was:" >&5
422107f9 15875 cat conftest.$ac_ext >&5
698dcdb6 15876 rm -rf conftest*
4f14bcd8 15877 eval "ac_cv_lib_$ac_lib_var=no"
422107f9 15878fi
698dcdb6 15879rm -f conftest*
4f14bcd8
GD
15880LIBS="$ac_save_LIBS"
15881
422107f9 15882fi
4f14bcd8 15883if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
698dcdb6 15884 echo "$ac_t""yes" 1>&6
4f14bcd8
GD
15885 HAVE_PRIOR_FUNCS=1
15886else
15887 echo "$ac_t""no" 1>&6
15888echo $ac_n "checking for sched_get_priority_max in -lposix4""... $ac_c" 1>&6
ade35f11 15889echo "configure:15890: checking for sched_get_priority_max in -lposix4" >&5
4f14bcd8 15890ac_lib_var=`echo posix4'_'sched_get_priority_max | sed 'y%./+-%__p_%'`
698dcdb6
VZ
15891if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15892 echo $ac_n "(cached) $ac_c" 1>&6
422107f9 15893else
698dcdb6 15894 ac_save_LIBS="$LIBS"
4f14bcd8 15895LIBS="-lposix4 $LIBS"
698dcdb6 15896cat > conftest.$ac_ext <<EOF
ade35f11 15897#line 15898 "configure"
422107f9
VZ
15898#include "confdefs.h"
15899/* Override any gcc2 internal prototype to avoid an error. */
15900/* We use char because int might match the return type of a gcc2
698dcdb6 15901 builtin and then its argument prototype would still apply. */
4f14bcd8 15902char sched_get_priority_max();
698dcdb6
VZ
15903
15904int main() {
4f14bcd8 15905sched_get_priority_max()
698dcdb6
VZ
15906; return 0; }
15907EOF
ade35f11 15908if { (eval echo configure:15909: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
15909 rm -rf conftest*
15910 eval "ac_cv_lib_$ac_lib_var=yes"
15911else
15912 echo "configure: failed program was:" >&5
15913 cat conftest.$ac_ext >&5
15914 rm -rf conftest*
15915 eval "ac_cv_lib_$ac_lib_var=no"
15916fi
15917rm -f conftest*
15918LIBS="$ac_save_LIBS"
15919
15920fi
15921if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15922 echo "$ac_t""yes" 1>&6
4f14bcd8 15923
7274f1c7
RL
15924 HAVE_PRIOR_FUNCS=1
15925 POSIX4_LINK=" -lposix4"
15926
698dcdb6
VZ
15927else
15928 echo "$ac_t""no" 1>&6
422107f9
VZ
15929fi
15930
7274f1c7 15931
422107f9
VZ
15932fi
15933
7274f1c7 15934
4f14bcd8
GD
15935else
15936 echo "$ac_t""no" 1>&6
10f2d63a
VZ
15937fi
15938
7274f1c7 15939
698dcdb6 15940else
4f14bcd8
GD
15941 echo "$ac_t""no" 1>&6
15942fi
463abc64 15943
463abc64 15944
7274f1c7
RL
15945 if test "$HAVE_PRIOR_FUNCS" = 1; then
15946 cat >> confdefs.h <<\EOF
4f14bcd8 15947#define HAVE_THREAD_PRIORITY_FUNCTIONS 1
698dcdb6 15948EOF
463abc64 15949
7274f1c7
RL
15950 else
15951 echo "configure: warning: Setting thread priority will not work" 1>&2
15952 fi
463abc64 15953
7274f1c7 15954 echo $ac_n "checking for pthread_cancel in -l$THREADS_LINK""... $ac_c" 1>&6
ade35f11 15955echo "configure:15956: checking for pthread_cancel in -l$THREADS_LINK" >&5
4f14bcd8 15956ac_lib_var=`echo $THREADS_LINK'_'pthread_cancel | sed 'y%./+-%__p_%'`
698dcdb6
VZ
15957if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15958 echo $ac_n "(cached) $ac_c" 1>&6
422107f9 15959else
698dcdb6 15960 ac_save_LIBS="$LIBS"
4f14bcd8 15961LIBS="-l$THREADS_LINK $LIBS"
698dcdb6 15962cat > conftest.$ac_ext <<EOF
ade35f11 15963#line 15964 "configure"
422107f9
VZ
15964#include "confdefs.h"
15965/* Override any gcc2 internal prototype to avoid an error. */
15966/* We use char because int might match the return type of a gcc2
698dcdb6 15967 builtin and then its argument prototype would still apply. */
4f14bcd8 15968char pthread_cancel();
698dcdb6
VZ
15969
15970int main() {
4f14bcd8 15971pthread_cancel()
698dcdb6
VZ
15972; return 0; }
15973EOF
ade35f11 15974if { (eval echo configure:15975: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
15975 rm -rf conftest*
15976 eval "ac_cv_lib_$ac_lib_var=yes"
15977else
15978 echo "configure: failed program was:" >&5
15979 cat conftest.$ac_ext >&5
15980 rm -rf conftest*
15981 eval "ac_cv_lib_$ac_lib_var=no"
15982fi
15983rm -f conftest*
15984LIBS="$ac_save_LIBS"
15985
15986fi
15987if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15988 echo "$ac_t""yes" 1>&6
4f14bcd8
GD
15989 cat >> confdefs.h <<\EOF
15990#define HAVE_PTHREAD_CANCEL 1
15991EOF
15992
698dcdb6
VZ
15993else
15994 echo "$ac_t""no" 1>&6
4f14bcd8 15995echo "configure: warning: wxThread::Kill() will not work properly" 1>&2
422107f9
VZ
15996fi
15997
422107f9 15998
7274f1c7 15999 echo $ac_n "checking for pthread_cleanup_push/pop""... $ac_c" 1>&6
ade35f11 16000echo "configure:16001: checking for pthread_cleanup_push/pop" >&5
4f14bcd8
GD
16001if eval "test \"`echo '$''{'wx_cv_func_pthread_cleanup_push'+set}'`\" = set"; then
16002 echo $ac_n "(cached) $ac_c" 1>&6
16003else
16004
7274f1c7 16005 cat > conftest.$ac_ext <<EOF
ade35f11 16006#line 16007 "configure"
4f14bcd8
GD
16007#include "confdefs.h"
16008#include <pthread.h>
16009int main() {
16010
7274f1c7
RL
16011 pthread_cleanup_push(NULL, NULL);
16012 pthread_cleanup_pop(0);
16013
4f14bcd8
GD
16014; return 0; }
16015EOF
ade35f11 16016if { (eval echo configure:16017: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4f14bcd8
GD
16017 rm -rf conftest*
16018
7274f1c7
RL
16019 wx_cv_func_pthread_cleanup_push=yes
16020
4f14bcd8
GD
16021else
16022 echo "configure: failed program was:" >&5
16023 cat conftest.$ac_ext >&5
16024 rm -rf conftest*
16025
7274f1c7
RL
16026 wx_cv_func_pthread_cleanup_push=no
16027
4f14bcd8
GD
16028fi
16029rm -f conftest*
7274f1c7 16030
10f2d63a
VZ
16031fi
16032
4f14bcd8
GD
16033echo "$ac_t""$wx_cv_func_pthread_cleanup_push" 1>&6
16034
7274f1c7
RL
16035 if test "$wx_cv_func_pthread_cleanup_push" = "yes"; then
16036 cat >> confdefs.h <<\EOF
4f14bcd8 16037#define HAVE_THREAD_CLEANUP_FUNCTIONS 1
c7a2bf27
RR
16038EOF
16039
7274f1c7 16040 fi
4f14bcd8 16041
7274f1c7
RL
16042
16043 if test "x$wx_lib_glibc21" = "xyes"; then
16044 CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE"
16045 fi
4f14bcd8 16046
7274f1c7 16047 echo $ac_n "checking for pthread_mutexattr_t""... $ac_c" 1>&6
ade35f11 16048echo "configure:16049: checking for pthread_mutexattr_t" >&5
4f14bcd8 16049if eval "test \"`echo '$''{'wx_cv_type_pthread_mutexattr_t'+set}'`\" = set"; then
698dcdb6
VZ
16050 echo $ac_n "(cached) $ac_c" 1>&6
16051else
4f14bcd8 16052
7274f1c7 16053 cat > conftest.$ac_ext <<EOF
ade35f11 16054#line 16055 "configure"
0dcf9893 16055#include "confdefs.h"
4f14bcd8
GD
16056#include <pthread.h>
16057int main() {
16058
7274f1c7
RL
16059 pthread_mutexattr_t attr;
16060 pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
16061
4f14bcd8 16062; return 0; }
698dcdb6 16063EOF
ade35f11 16064if { (eval echo configure:16065: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6 16065 rm -rf conftest*
4f14bcd8 16066
7274f1c7
RL
16067 wx_cv_type_pthread_mutexattr_t=yes
16068
3fed1840 16069else
698dcdb6 16070 echo "configure: failed program was:" >&5
3fed1840 16071 cat conftest.$ac_ext >&5
698dcdb6 16072 rm -rf conftest*
4f14bcd8 16073
7274f1c7
RL
16074 wx_cv_type_pthread_mutexattr_t=no
16075
4f14bcd8 16076
3fed1840 16077fi
698dcdb6 16078rm -f conftest*
7274f1c7 16079
3fed1840 16080fi
4f14bcd8
GD
16081
16082echo "$ac_t""$wx_cv_type_pthread_mutexattr_t" 1>&6
16083
7274f1c7
RL
16084 if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then
16085 cat >> confdefs.h <<\EOF
4f14bcd8
GD
16086#define HAVE_PTHREAD_MUTEXATTR_T 1
16087EOF
16088
7274f1c7
RL
16089 else
16090 echo $ac_n "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER""... $ac_c" 1>&6
ade35f11 16091echo "configure:16092: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5
4f14bcd8 16092if eval "test \"`echo '$''{'wx_cv_type_pthread_rec_mutex_init'+set}'`\" = set"; then
698dcdb6 16093 echo $ac_n "(cached) $ac_c" 1>&6
3fed1840 16094else
4f14bcd8 16095
7274f1c7 16096 cat > conftest.$ac_ext <<EOF
ade35f11 16097#line 16098 "configure"
3fed1840 16098#include "confdefs.h"
4f14bcd8 16099#include <pthread.h>
698dcdb6 16100int main() {
4f14bcd8 16101
7274f1c7
RL
16102 pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;
16103
698dcdb6
VZ
16104; return 0; }
16105EOF
ade35f11 16106if { (eval echo configure:16107: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6 16107 rm -rf conftest*
4f14bcd8 16108
7274f1c7
RL
16109 wx_cv_type_pthread_rec_mutex_init=yes
16110
698dcdb6
VZ
16111else
16112 echo "configure: failed program was:" >&5
16113 cat conftest.$ac_ext >&5
16114 rm -rf conftest*
4f14bcd8 16115
7274f1c7
RL
16116 wx_cv_type_pthread_rec_mutex_init=no
16117
4f14bcd8 16118
698dcdb6
VZ
16119fi
16120rm -f conftest*
7274f1c7 16121
3fed1840
RR
16122fi
16123
4f14bcd8 16124echo "$ac_t""$wx_cv_type_pthread_rec_mutex_init" 1>&6
7274f1c7
RL
16125 if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then
16126 cat >> confdefs.h <<\EOF
4f14bcd8
GD
16127#define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1
16128EOF
3fed1840 16129
7274f1c7
RL
16130 else
16131 echo "configure: warning: wxMutex won't be recursive on this platform" 1>&2
16132 fi
16133 fi
4f14bcd8 16134
7274f1c7 16135 THREADS_LINK=" -l$THREADS_LINK"
4f14bcd8 16136
7274f1c7
RL
16137 if test "$USE_SOLARIS" = "yes" -a "$GCC" != "yes"; then
16138 CPPFLAGS="$CFLAGS -mt"
16139 CXXFLAGS="$CXXFLAGS -mt"
16140 LDFLAGS="$LDFLAGS -mt"
16141 fi
16142 fi
3fed1840 16143
4f14bcd8
GD
16144fi
16145
16146if test "$wxUSE_THREADS" = "yes"; then
3a922bb4 16147 cat >> confdefs.h <<\EOF
4f14bcd8 16148#define wxUSE_THREADS 1
7b6058cd
GD
16149EOF
16150
4f14bcd8
GD
16151
16152 if test "$USE_DARWIN" != 1; then
3d63bc3a 16153 TOOLCHAIN_DEFS="$TOOLCHAIN_DEFS -D_REENTRANT"
4f14bcd8
GD
16154 fi
16155
16156 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread"
698dcdb6 16157else
4f14bcd8
GD
16158 if test "$ac_cv_func_strtok_r" = "yes"; then
16159 echo $ac_n "checking if -D_REENTRANT is needed""... $ac_c" 1>&6
ade35f11 16160echo "configure:16161: checking if -D_REENTRANT is needed" >&5
4f14bcd8
GD
16161 if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then
16162 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D_REENTRANT"
16163 echo "$ac_t""yes" 1>&6
16164 else
16165 echo "$ac_t""no" 1>&6
16166 fi
16167 fi
16168fi
16169
16170if test "$WXGTK20" = 1 ; then
16171 cat >> confdefs.h <<EOF
16172#define __WXGTK20__ $WXGTK20
698dcdb6 16173EOF
4f14bcd8
GD
16174
16175 WXGTK12=1
10f2d63a 16176fi
4f14bcd8
GD
16177
16178if test "$WXGTK12" = 1 ; then
16179 cat >> confdefs.h <<EOF
16180#define __WXGTK12__ $WXGTK12
16181EOF
16182
10f2d63a 16183fi
698dcdb6 16184
4f14bcd8
GD
16185if test "$WXGTK127" = 1 ; then
16186 cat >> confdefs.h <<EOF
16187#define __WXGTK127__ $WXGTK127
698dcdb6 16188EOF
4f14bcd8 16189
698dcdb6 16190fi
10f2d63a 16191
4f14bcd8
GD
16192WXDEBUG=
16193
16194if test "$wxUSE_DEBUG_INFO" = "yes" ; then
16195 WXDEBUG="-g"
16196 wxUSE_OPTIMISE=no
698dcdb6 16197fi
4f14bcd8
GD
16198
16199if test "$wxUSE_DEBUG_GDB" = "yes" ; then
16200 wxUSE_DEBUG_INFO=yes
16201 WXDEBUG="-ggdb"
10f2d63a
VZ
16202fi
16203
4f14bcd8
GD
16204if test "$wxUSE_DEBUG_FLAG" = "yes" ; then
16205 cat >> confdefs.h <<\EOF
16206#define WXDEBUG 1
16207EOF
16208
16209 WXDEBUG_DEFINE="-D__WXDEBUG__"
10f2d63a 16210else
4f14bcd8
GD
16211 if test "$wxUSE_GTK" = 1 ; then
16212 WXDEBUG_DEFINE="-DGTK_NO_CHECK_CASTS"
16213 fi
16214fi
16215
16216if test "$wxUSE_MEM_TRACING" = "yes" ; then
16217 cat >> confdefs.h <<\EOF
16218#define wxUSE_MEMORY_TRACING 1
16219EOF
16220
16221 cat >> confdefs.h <<\EOF
16222#define wxUSE_GLOBAL_MEMORY_OPERATORS 1
16223EOF
16224
16225 cat >> confdefs.h <<\EOF
16226#define wxUSE_DEBUG_NEW_ALWAYS 1
16227EOF
16228
16229 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck"
16230fi
16231
16232if test "$wxUSE_DMALLOC" = "yes" ; then
3d63bc3a 16233 DMALLOC_LIBS="-ldmalloc"
4f14bcd8
GD
16234fi
16235
16236PROFILE=
16237if test "$wxUSE_PROFILE" = "yes" ; then
3d63bc3a 16238 PROFILE=" -pg"
10f2d63a
VZ
16239fi
16240
88e30f2b 16241if test "$GCC" = "yes" ; then
4f14bcd8
GD
16242 if test "$wxUSE_NO_RTTI" = "yes" ; then
16243 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-rtti"
3a922bb4 16244 fi
4f14bcd8
GD
16245 if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
16246 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-exceptions"
16247 fi
16248 if test "$wxUSE_PERMISSIVE" = "yes" ; then
16249 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fpermissive"
16250 fi
4f14bcd8
GD
16251 if test "$USE_WIN32" = 1 ; then
16252 # I'm not even really sure what this was ever added to solve,
16253 # but someone added it for mingw native builds, so I guess
16254 # they had a reason, right??
16255 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fno-pcc-struct-return"
16256 fi
16257fi
16258
16259
16260CXXFLAGS=`echo "${CXXFLAGS}" | sed "s/\-O.//g" `
16261CFLAGS=`echo "${CFLAGS}" | sed "s/\-O.//g" `
16262if test "$wxUSE_OPTIMISE" = "no" ; then
16263 OPTIMISE=
16264else
16265 if test "$GCC" = yes ; then
16266 OPTIMISE="-O2"
16267 case "${host}" in
16268 i586-*-*|i686-*-* )
16269 OPTIMISE="${OPTIMISE} "
16270 ;;
16271 esac
16272 else
16273 OPTIMISE="-O"
16274 fi
16275fi
16276
16277if test "$WXWIN_COMPATIBILITY_2" = "yes"; then
16278 cat >> confdefs.h <<\EOF
16279#define WXWIN_COMPATIBILITY_2 1
16280EOF
16281
16282
16283 WXWIN_COMPATIBILITY_2_2="yes"
16284fi
16285
16286if test "$WXWIN_COMPATIBILITY_2_2" = "yes"; then
16287 cat >> confdefs.h <<\EOF
16288#define WXWIN_COMPATIBILITY_2_2 1
16289EOF
16290
10f2d63a
VZ
16291fi
16292
698dcdb6 16293
10f2d63a 16294if test "$wxUSE_GUI" = "yes"; then
698dcdb6 16295 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16296#define wxUSE_GUI 1
16297EOF
16298
698dcdb6 16299
10f2d63a 16300 else
698dcdb6 16301 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16302#define wxUSE_NOGUI 1
16303EOF
16304
16305fi
16306
698dcdb6 16307
10f2d63a 16308if test "$wxUSE_UNIX" = "yes"; then
698dcdb6 16309 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16310#define wxUSE_UNIX 1
16311EOF
16312
16313fi
16314
698dcdb6 16315
10f2d63a 16316if test "$wxUSE_APPLE_IEEE" = "yes"; then
698dcdb6 16317 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16318#define wxUSE_APPLE_IEEE 1
16319EOF
16320
16321fi
16322
1e6feb95
VZ
16323if test "$wxUSE_TIMER" = "yes"; then
16324 cat >> confdefs.h <<\EOF
16325#define wxUSE_TIMER 1
16326EOF
16327
16328fi
16329
10f2d63a 16330if test "$wxUSE_WAVE" = "yes"; then
698dcdb6 16331 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16332#define wxUSE_WAVE 1
16333EOF
16334
16335fi
16336
1e6feb95
VZ
16337if test "$wxUSE_CMDLINE_PARSER" = "yes"; then
16338 cat >> confdefs.h <<\EOF
16339#define wxUSE_CMDLINE_PARSER 1
16340EOF
16341
16342fi
16343
16344if test "$wxUSE_STOPWATCH" = "yes"; then
16345 cat >> confdefs.h <<\EOF
16346#define wxUSE_STOPWATCH 1
16347EOF
16348
16349fi
16350
16351if test "$wxUSE_DATETIME" = "yes"; then
16352 cat >> confdefs.h <<\EOF
16353#define wxUSE_DATETIME 1
16354EOF
16355
16356fi
16357
16358if test "$wxUSE_TIMEDATE" = "yes"; then
16359 cat >> confdefs.h <<\EOF
16360#define wxUSE_TIMEDATE 1
16361EOF
16362
16363fi
16364
10f2d63a 16365if test "$wxUSE_FILE" = "yes"; then
698dcdb6 16366 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16367#define wxUSE_FILE 1
16368EOF
16369
16370fi
16371
1e6feb95
VZ
16372if test "$wxUSE_FFILE" = "yes"; then
16373 cat >> confdefs.h <<\EOF
16374#define wxUSE_FFILE 1
16375EOF
16376
16377fi
16378
24528b0c 16379if test "$wxUSE_FILESYSTEM" = "yes"; then
698dcdb6 16380 cat >> confdefs.h <<\EOF
24528b0c
VS
16381#define wxUSE_FILESYSTEM 1
16382EOF
16383
16384fi
16385
10f2d63a 16386if test "$wxUSE_FS_INET" = "yes"; then
698dcdb6 16387 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16388#define wxUSE_FS_INET 1
16389EOF
16390
16391fi
16392
16393if test "$wxUSE_FS_ZIP" = "yes"; then
698dcdb6 16394 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16395#define wxUSE_FS_ZIP 1
16396EOF
16397
16398fi
16399
16400if test "$wxUSE_ZIPSTREAM" = "yes"; then
698dcdb6 16401 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16402#define wxUSE_ZIPSTREAM 1
16403EOF
16404
16405fi
16406
eb4efbdc 16407if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
698dcdb6 16408 cat >> confdefs.h <<\EOF
eb4efbdc
VZ
16409#define wxUSE_ON_FATAL_EXCEPTION 1
16410EOF
16411
16412fi
16413
4f3c5f06 16414if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
698dcdb6 16415 cat >> confdefs.h <<\EOF
4f3c5f06
VZ
16416#define wxUSE_SNGLINST_CHECKER 1
16417EOF
16418
16419fi
16420
10f2d63a 16421if test "$wxUSE_BUSYINFO" = "yes"; then
698dcdb6 16422 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16423#define wxUSE_BUSYINFO 1
16424EOF
16425
16426fi
16427
16428if test "$wxUSE_STD_IOSTREAM" = "yes"; then
698dcdb6 16429 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16430#define wxUSE_STD_IOSTREAM 1
16431EOF
16432
16433fi
16434
a3a584a7
VZ
16435if test "$wxUSE_TEXTBUFFER" = "yes"; then
16436 cat >> confdefs.h <<\EOF
16437#define wxUSE_TEXTBUFFER 1
16438EOF
16439
16440fi
16441
10f2d63a 16442if test "$wxUSE_TEXTFILE" = "yes"; then
a3a584a7 16443 if test "$wxUSE_FILE" != "yes" -o "$wxUSE_TEXTBUFFER" != "yes" ; then
156b2523 16444 echo "configure: warning: wxTextFile requires wxFile and wxTextBuffer... disabled" 1>&2
10f2d63a 16445 else
698dcdb6 16446 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16447#define wxUSE_TEXTFILE 1
16448EOF
16449
16450 fi
16451fi
16452
16453if test "$wxUSE_CONFIG" = "yes" ; then
16454 if test "$wxUSE_TEXTFILE" != "yes"; then
156b2523 16455 echo "configure: warning: wxConfig requires wxTextFile... disabled" 1>&2
10f2d63a 16456 else
698dcdb6 16457 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16458#define wxUSE_CONFIG 1
16459EOF
16460
16461 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config"
16462 fi
16463fi
16464
16465if test "$wxUSE_INTL" = "yes" ; then
16466 if test "$wxUSE_FILE" != "yes"; then
156b2523 16467 echo "configure: warning: I18n code requires wxFile... disabled" 1>&2
10f2d63a 16468 else
698dcdb6 16469 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16470#define wxUSE_INTL 1
16471EOF
16472
16473 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat"
f6bcfd97 16474 GUIDIST="$GUIDIST INTL_DIST"
10f2d63a
VZ
16475 fi
16476fi
16477
16478if test "$wxUSE_LOG" = "yes"; then
698dcdb6 16479 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16480#define wxUSE_LOG 1
16481EOF
16482
d73be714
VZ
16483
16484 if test "$wxUSE_LOGGUI" = "yes"; then
16485 cat >> confdefs.h <<\EOF
16486#define wxUSE_LOGGUI 1
16487EOF
16488
16489 fi
16490
16491 if test "$wxUSE_LOGWINDOW" = "yes"; then
16492 cat >> confdefs.h <<\EOF
16493#define wxUSE_LOGWINDOW 1
69d27ff7
MB
16494EOF
16495
16496 fi
16497
16498 if test "$wxUSE_LOGDIALOG" = "yes"; then
16499 cat >> confdefs.h <<\EOF
16500#define wxUSE_LOG_DIALOG 1
d73be714
VZ
16501EOF
16502
16503 fi
10f2d63a
VZ
16504fi
16505
16506if test "$wxUSE_LONGLONG" = "yes"; then
698dcdb6 16507 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16508#define wxUSE_LONGLONG 1
16509EOF
16510
16511fi
16512
e8f65ba6 16513if test "$wxUSE_GEOMETRY" = "yes"; then
698dcdb6 16514 cat >> confdefs.h <<\EOF
e8f65ba6
RR
16515#define wxUSE_GEOMETRY 1
16516EOF
16517
16518fi
16519
10f2d63a 16520if test "$wxUSE_DIALUP_MANAGER" = "yes" ; then
698dcdb6 16521 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16522#define wxUSE_DIALUP_MANAGER 1
16523EOF
16524
70f7a477 16525 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup"
10f2d63a
VZ
16526fi
16527
16528if test "$wxUSE_STREAMS" = "yes" ; then
698dcdb6 16529 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16530#define wxUSE_STREAMS 1
16531EOF
16532
16533fi
16534
1e487827 16535
1e6feb95 16536if test "$wxUSE_DATETIME" = "yes"; then
698dcdb6 16537 for ac_func in strptime
83307f33 16538do
698dcdb6 16539echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
ade35f11 16540echo "configure:16541: checking for $ac_func" >&5
698dcdb6
VZ
16541if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16542 echo $ac_n "(cached) $ac_c" 1>&6
16543else
16544 cat > conftest.$ac_ext <<EOF
ade35f11 16545#line 16546 "configure"
83307f33
VZ
16546#include "confdefs.h"
16547/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 16548 which can conflict with char $ac_func(); below. */
83307f33
VZ
16549#include <assert.h>
16550/* Override any gcc2 internal prototype to avoid an error. */
16551/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
16552 builtin and then its argument prototype would still apply. */
16553char $ac_func();
16554
16555int main() {
83307f33
VZ
16556
16557/* The GNU C library defines this for functions which it implements
16558 to always fail with ENOSYS. Some functions are actually named
16559 something starting with __ and the normal name is an alias. */
16560#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16561choke me
16562#else
698dcdb6 16563$ac_func();
83307f33
VZ
16564#endif
16565
698dcdb6 16566; return 0; }
83307f33 16567EOF
ade35f11 16568if { (eval echo configure:16569: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
16569 rm -rf conftest*
16570 eval "ac_cv_func_$ac_func=yes"
16571else
16572 echo "configure: failed program was:" >&5
16573 cat conftest.$ac_ext >&5
16574 rm -rf conftest*
16575 eval "ac_cv_func_$ac_func=no"
16576fi
16577rm -f conftest*
16578fi
83307f33 16579
698dcdb6
VZ
16580if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16581 echo "$ac_t""yes" 1>&6
16582 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16583 cat >> confdefs.h <<EOF
16584#define $ac_tr_func 1
16585EOF
16586
16587else
16588 echo "$ac_t""no" 1>&6
83307f33
VZ
16589fi
16590done
16591
1e487827 16592
698dcdb6 16593 echo $ac_n "checking for timezone variable in <time.h>""... $ac_c" 1>&6
ade35f11 16594echo "configure:16595: checking for timezone variable in <time.h>" >&5
698dcdb6
VZ
16595if eval "test \"`echo '$''{'wx_cv_var_timezone'+set}'`\" = set"; then
16596 echo $ac_n "(cached) $ac_c" 1>&6
16597else
16598
16599 cat > conftest.$ac_ext <<EOF
ade35f11 16600#line 16601 "configure"
360d6699
VZ
16601#include "confdefs.h"
16602
b4085ce6 16603 #include <time.h>
698dcdb6
VZ
16604
16605int main() {
360d6699
VZ
16606
16607 int tz;
4f11a343 16608 tz = timezone;
698dcdb6
VZ
16609
16610; return 0; }
16611EOF
ade35f11 16612if { (eval echo configure:16613: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6
VZ
16613 rm -rf conftest*
16614
4f11a343 16615 wx_cv_var_timezone=timezone
698dcdb6 16616
360d6699 16617else
698dcdb6
VZ
16618 echo "configure: failed program was:" >&5
16619 cat conftest.$ac_ext >&5
16620 rm -rf conftest*
16621
16622 cat > conftest.$ac_ext <<EOF
ade35f11 16623#line 16624 "configure"
360d6699
VZ
16624#include "confdefs.h"
16625
b4085ce6 16626 #include <time.h>
698dcdb6
VZ
16627
16628int main() {
360d6699
VZ
16629
16630 int tz;
16631 tz = _timezone;
698dcdb6
VZ
16632
16633; return 0; }
16634EOF
ade35f11 16635if { (eval echo configure:16636: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6
VZ
16636 rm -rf conftest*
16637
360d6699 16638 wx_cv_var_timezone=_timezone
698dcdb6 16639
5357c8e8 16640else
698dcdb6
VZ
16641 echo "configure: failed program was:" >&5
16642 cat conftest.$ac_ext >&5
16643 rm -rf conftest*
16644
16645 cat > conftest.$ac_ext <<EOF
ade35f11 16646#line 16647 "configure"
5357c8e8
VZ
16647#include "confdefs.h"
16648
b4085ce6 16649 #include <time.h>
698dcdb6
VZ
16650
16651int main() {
5357c8e8
VZ
16652
16653 int tz;
4f11a343 16654 tz = __timezone;
698dcdb6
VZ
16655
16656; return 0; }
16657EOF
ade35f11 16658if { (eval echo configure:16659: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6
VZ
16659 rm -rf conftest*
16660
4f11a343 16661 wx_cv_var_timezone=__timezone
698dcdb6 16662
360d6699 16663else
698dcdb6
VZ
16664 echo "configure: failed program was:" >&5
16665 cat conftest.$ac_ext >&5
16666 rm -rf conftest*
16667 { echo "configure: error: no timezone variable" 1>&2; exit 1; }
16668
360d6699 16669fi
698dcdb6
VZ
16670rm -f conftest*
16671
16672
360d6699 16673fi
698dcdb6
VZ
16674rm -f conftest*
16675
16676
6232543b 16677fi
698dcdb6
VZ
16678rm -f conftest*
16679
16680
1e487827 16681fi
703e0a69 16682
698dcdb6
VZ
16683echo "$ac_t""$wx_cv_var_timezone" 1>&6
16684
16685 cat >> confdefs.h <<EOF
360d6699
VZ
16686#define WX_TIMEZONE $wx_cv_var_timezone
16687EOF
16688
698dcdb6
VZ
16689
16690 for ac_func in localtime
afc31813 16691do
698dcdb6 16692echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
ade35f11 16693echo "configure:16694: checking for $ac_func" >&5
698dcdb6
VZ
16694if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16695 echo $ac_n "(cached) $ac_c" 1>&6
16696else
16697 cat > conftest.$ac_ext <<EOF
ade35f11 16698#line 16699 "configure"
10f2d63a 16699#include "confdefs.h"
afc31813 16700/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 16701 which can conflict with char $ac_func(); below. */
afc31813
VZ
16702#include <assert.h>
16703/* Override any gcc2 internal prototype to avoid an error. */
16704/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
16705 builtin and then its argument prototype would still apply. */
16706char $ac_func();
16707
16708int main() {
afc31813
VZ
16709
16710/* The GNU C library defines this for functions which it implements
16711 to always fail with ENOSYS. Some functions are actually named
16712 something starting with __ and the normal name is an alias. */
16713#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16714choke me
16715#else
698dcdb6 16716$ac_func();
afc31813
VZ
16717#endif
16718
698dcdb6 16719; return 0; }
10f2d63a 16720EOF
ade35f11 16721if { (eval echo configure:16722: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
16722 rm -rf conftest*
16723 eval "ac_cv_func_$ac_func=yes"
16724else
16725 echo "configure: failed program was:" >&5
16726 cat conftest.$ac_ext >&5
16727 rm -rf conftest*
16728 eval "ac_cv_func_$ac_func=no"
16729fi
16730rm -f conftest*
16731fi
afc31813 16732
698dcdb6
VZ
16733if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16734 echo "$ac_t""yes" 1>&6
16735 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16736 cat >> confdefs.h <<EOF
16737#define $ac_tr_func 1
16738EOF
16739
16740else
16741 echo "$ac_t""no" 1>&6
afc31813
VZ
16742fi
16743done
16744
1e487827 16745
698dcdb6
VZ
16746 if test "$ac_cv_func_localtime" = "yes"; then
16747 echo $ac_n "checking for tm_gmtoff in struct tm""... $ac_c" 1>&6
ade35f11 16748echo "configure:16749: checking for tm_gmtoff in struct tm" >&5
698dcdb6
VZ
16749if eval "test \"`echo '$''{'wx_cv_struct_tm_has_gmtoff'+set}'`\" = set"; then
16750 echo $ac_n "(cached) $ac_c" 1>&6
16751else
16752
16753 cat > conftest.$ac_ext <<EOF
ade35f11 16754#line 16755 "configure"
0470b1e6
VZ
16755#include "confdefs.h"
16756
b4085ce6 16757 #include <time.h>
698dcdb6
VZ
16758
16759int main() {
0470b1e6
VZ
16760
16761 struct tm tm;
16762 tm.tm_gmtoff++;
698dcdb6
VZ
16763
16764; return 0; }
16765EOF
ade35f11 16766if { (eval echo configure:16767: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6
VZ
16767 rm -rf conftest*
16768
f03a98d8 16769 wx_cv_struct_tm_has_gmtoff=yes
698dcdb6 16770
0470b1e6 16771else
698dcdb6
VZ
16772 echo "configure: failed program was:" >&5
16773 cat conftest.$ac_ext >&5
16774 rm -rf conftest*
16775 wx_cv_struct_tm_has_gmtoff=no
16776
0470b1e6 16777fi
698dcdb6
VZ
16778rm -f conftest*
16779
1e487827 16780fi
698dcdb6
VZ
16781
16782echo "$ac_t""$wx_cv_struct_tm_has_gmtoff" 1>&6
6232543b
VS
16783 fi
16784
16785 if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then
698dcdb6 16786 cat >> confdefs.h <<\EOF
6232543b
VS
16787#define WX_GMTOFF_IN_TM 1
16788EOF
0470b1e6 16789
3fcdd07b
VZ
16790 fi
16791
698dcdb6 16792 for ac_func in gettimeofday ftime
3fcdd07b 16793do
698dcdb6 16794echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
ade35f11 16795echo "configure:16796: checking for $ac_func" >&5
698dcdb6
VZ
16796if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16797 echo $ac_n "(cached) $ac_c" 1>&6
16798else
16799 cat > conftest.$ac_ext <<EOF
ade35f11 16800#line 16801 "configure"
3fcdd07b
VZ
16801#include "confdefs.h"
16802/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 16803 which can conflict with char $ac_func(); below. */
3fcdd07b
VZ
16804#include <assert.h>
16805/* Override any gcc2 internal prototype to avoid an error. */
16806/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
16807 builtin and then its argument prototype would still apply. */
16808char $ac_func();
16809
16810int main() {
3fcdd07b
VZ
16811
16812/* The GNU C library defines this for functions which it implements
16813 to always fail with ENOSYS. Some functions are actually named
16814 something starting with __ and the normal name is an alias. */
16815#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16816choke me
16817#else
698dcdb6 16818$ac_func();
3fcdd07b
VZ
16819#endif
16820
698dcdb6
VZ
16821; return 0; }
16822EOF
ade35f11 16823if { (eval echo configure:16824: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
16824 rm -rf conftest*
16825 eval "ac_cv_func_$ac_func=yes"
16826else
16827 echo "configure: failed program was:" >&5
16828 cat conftest.$ac_ext >&5
16829 rm -rf conftest*
16830 eval "ac_cv_func_$ac_func=no"
16831fi
16832rm -f conftest*
16833fi
16834
16835if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16836 echo "$ac_t""yes" 1>&6
16837 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16838 cat >> confdefs.h <<EOF
16839#define $ac_tr_func 1
3fcdd07b
VZ
16840EOF
16841 break
698dcdb6
VZ
16842else
16843 echo "$ac_t""no" 1>&6
3fcdd07b
VZ
16844fi
16845done
16846
afc31813 16847
698dcdb6
VZ
16848 if test "$ac_cv_func_gettimeofday" = "yes"; then
16849 echo $ac_n "checking whether gettimeofday takes two arguments""... $ac_c" 1>&6
ade35f11 16850echo "configure:16851: checking whether gettimeofday takes two arguments" >&5
698dcdb6
VZ
16851if eval "test \"`echo '$''{'wx_cv_func_gettimeofday_has_2_args'+set}'`\" = set"; then
16852 echo $ac_n "(cached) $ac_c" 1>&6
16853else
16854
16855
16856 ac_ext=C
16857# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1e487827 16858ac_cpp='$CXXCPP $CPPFLAGS'
698dcdb6
VZ
16859ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16860ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16861cross_compiling=$ac_cv_prog_cxx_cross
703e0a69 16862
698dcdb6
VZ
16863
16864 cat > conftest.$ac_ext <<EOF
ade35f11 16865#line 16866 "configure"
10f2d63a 16866#include "confdefs.h"
afc31813
VZ
16867
16868 #include <sys/time.h>
16869 #include <unistd.h>
698dcdb6
VZ
16870
16871int main() {
afc31813
VZ
16872
16873 struct timeval tv;
776862b4 16874 gettimeofday(&tv, NULL);
698dcdb6
VZ
16875
16876; return 0; }
16877EOF
ade35f11 16878if { (eval echo configure:16879: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6 16879 rm -rf conftest*
afc31813 16880 wx_cv_func_gettimeofday_has_2_args=yes
10f2d63a 16881else
698dcdb6
VZ
16882 echo "configure: failed program was:" >&5
16883 cat conftest.$ac_ext >&5
16884 rm -rf conftest*
16885 cat > conftest.$ac_ext <<EOF
ade35f11 16886#line 16887 "configure"
10f2d63a 16887#include "confdefs.h"
afc31813
VZ
16888
16889 #include <sys/time.h>
16890 #include <unistd.h>
698dcdb6
VZ
16891
16892int main() {
afc31813
VZ
16893
16894 struct timeval tv;
16895 gettimeofday(&tv);
698dcdb6
VZ
16896
16897; return 0; }
16898EOF
ade35f11 16899if { (eval echo configure:16900: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6 16900 rm -rf conftest*
afc31813 16901 wx_cv_func_gettimeofday_has_2_args=no
10f2d63a 16902else
698dcdb6
VZ
16903 echo "configure: failed program was:" >&5
16904 cat conftest.$ac_ext >&5
16905 rm -rf conftest*
776862b4
VZ
16906
16907 echo "configure: warning: failed to determine number of gettimeofday() arguments" 1>&2
16908 wx_cv_func_gettimeofday_has_2_args=unknown
16909
698dcdb6 16910
10f2d63a 16911fi
698dcdb6
VZ
16912rm -f conftest*
16913
10f2d63a 16914fi
698dcdb6 16915rm -f conftest*
afc31813 16916 ac_ext=c
698dcdb6 16917# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10f2d63a 16918ac_cpp='$CPP $CPPFLAGS'
698dcdb6
VZ
16919ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16920ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16921cross_compiling=$ac_cv_prog_cc_cross
10f2d63a 16922
698dcdb6 16923
afc31813 16924fi
698dcdb6
VZ
16925
16926echo "$ac_t""$wx_cv_func_gettimeofday_has_2_args" 1>&6
c63c7106 16927
afc31813 16928 if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then
698dcdb6 16929 cat >> confdefs.h <<\EOF
afc31813
VZ
16930#define WX_GETTIMEOFDAY_NO_TZ 1
16931EOF
16932
16933 fi
16934 fi
16935
698dcdb6 16936 cat >> confdefs.h <<\EOF
afc31813
VZ
16937#define wxUSE_TIMEDATE 1
16938EOF
16939
16940 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest"
16941fi
16942
698dcdb6 16943
b089607b
VZ
16944if test "$TOOLKIT" != "MSW"; then
16945
3a922bb4
RL
16946 if test "$wxUSE_SOCKETS" = "yes"; then
16947 echo $ac_n "checking for socket""... $ac_c" 1>&6
ade35f11 16948echo "configure:16949: checking for socket" >&5
698dcdb6
VZ
16949if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then
16950 echo $ac_n "(cached) $ac_c" 1>&6
c63c7106 16951else
698dcdb6 16952 cat > conftest.$ac_ext <<EOF
ade35f11 16953#line 16954 "configure"
c63c7106
VZ
16954#include "confdefs.h"
16955/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 16956 which can conflict with char socket(); below. */
c63c7106
VZ
16957#include <assert.h>
16958/* Override any gcc2 internal prototype to avoid an error. */
16959/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
16960 builtin and then its argument prototype would still apply. */
16961char socket();
16962
16963int main() {
c63c7106
VZ
16964
16965/* The GNU C library defines this for functions which it implements
16966 to always fail with ENOSYS. Some functions are actually named
16967 something starting with __ and the normal name is an alias. */
16968#if defined (__stub_socket) || defined (__stub___socket)
16969choke me
16970#else
698dcdb6 16971socket();
c63c7106
VZ
16972#endif
16973
698dcdb6
VZ
16974; return 0; }
16975EOF
ade35f11 16976if { (eval echo configure:16977: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
16977 rm -rf conftest*
16978 eval "ac_cv_func_socket=yes"
16979else
16980 echo "configure: failed program was:" >&5
16981 cat conftest.$ac_ext >&5
16982 rm -rf conftest*
16983 eval "ac_cv_func_socket=no"
16984fi
16985rm -f conftest*
16986fi
16987
16988if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
16989 echo "$ac_t""yes" 1>&6
c63c7106
VZ
16990 :
16991else
698dcdb6
VZ
16992 echo "$ac_t""no" 1>&6
16993echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
ade35f11 16994echo "configure:16995: checking for socket in -lsocket" >&5
698dcdb6
VZ
16995ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'`
16996if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
16997 echo $ac_n "(cached) $ac_c" 1>&6
c63c7106 16998else
698dcdb6 16999 ac_save_LIBS="$LIBS"
c63c7106 17000LIBS="-lsocket $LIBS"
698dcdb6 17001cat > conftest.$ac_ext <<EOF
ade35f11 17002#line 17003 "configure"
c63c7106
VZ
17003#include "confdefs.h"
17004/* Override any gcc2 internal prototype to avoid an error. */
17005/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
17006 builtin and then its argument prototype would still apply. */
17007char socket();
17008
17009int main() {
17010socket()
17011; return 0; }
17012EOF
ade35f11 17013if { (eval echo configure:17014: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
17014 rm -rf conftest*
17015 eval "ac_cv_lib_$ac_lib_var=yes"
17016else
17017 echo "configure: failed program was:" >&5
17018 cat conftest.$ac_ext >&5
17019 rm -rf conftest*
17020 eval "ac_cv_lib_$ac_lib_var=no"
17021fi
17022rm -f conftest*
17023LIBS="$ac_save_LIBS"
17024
17025fi
17026if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
17027 echo "$ac_t""yes" 1>&6
c63c7106 17028 INET_LINK="$INET_LINK -lsocket"
c63c7106 17029else
698dcdb6 17030 echo "$ac_t""no" 1>&6
afc31813 17031
3a922bb4
RL
17032 echo "configure: warning: socket library not found - sockets will be disabled" 1>&2
17033 wxUSE_SOCKETS=no
17034
698dcdb6 17035
6232543b 17036fi
b089607b 17037
3a922bb4 17038
1e487827 17039fi
afc31813 17040
3a922bb4 17041 fi
51a9faba 17042
3a922bb4
RL
17043
17044 if test "$wxUSE_SOCKETS" = "yes" ; then
17045 echo $ac_n "checking what is the type of the third argument of getsockname""... $ac_c" 1>&6
ade35f11 17046echo "configure:17047: checking what is the type of the third argument of getsockname" >&5
698dcdb6
VZ
17047if eval "test \"`echo '$''{'wx_cv_type_getsockname3'+set}'`\" = set"; then
17048 echo $ac_n "(cached) $ac_c" 1>&6
17049else
17050
3a922bb4
RL
17051
17052 ac_ext=C
698dcdb6 17053# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1e487827 17054ac_cpp='$CXXCPP $CPPFLAGS'
698dcdb6
VZ
17055ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17056ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17057cross_compiling=$ac_cv_prog_cxx_cross
703e0a69 17058
698dcdb6 17059
3a922bb4 17060 cat > conftest.$ac_ext <<EOF
ade35f11 17061#line 17062 "configure"
afc31813 17062#include "confdefs.h"
51a9faba 17063
3a922bb4
RL
17064 #include <sys/types.h>
17065 #include <sys/socket.h>
17066
698dcdb6 17067int main() {
51a9faba 17068
3a922bb4
RL
17069 socklen_t len;
17070 getsockname(0, 0, &len);
17071
698dcdb6
VZ
17072; return 0; }
17073EOF
ade35f11 17074if { (eval echo configure:17075: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6 17075 rm -rf conftest*
51a9faba 17076 wx_cv_type_getsockname3=socklen_t
afc31813 17077else
698dcdb6
VZ
17078 echo "configure: failed program was:" >&5
17079 cat conftest.$ac_ext >&5
17080 rm -rf conftest*
17081 cat > conftest.$ac_ext <<EOF
ade35f11 17082#line 17083 "configure"
afc31813 17083#include "confdefs.h"
51a9faba 17084
3a922bb4
RL
17085 #include <sys/types.h>
17086 #include <sys/socket.h>
17087
698dcdb6 17088int main() {
51a9faba 17089
3a922bb4
RL
17090 size_t len;
17091 getsockname(0, 0, &len);
17092
698dcdb6
VZ
17093; return 0; }
17094EOF
ade35f11 17095if { (eval echo configure:17096: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6 17096 rm -rf conftest*
51a9faba 17097 wx_cv_type_getsockname3=size_t
afc31813 17098else
698dcdb6
VZ
17099 echo "configure: failed program was:" >&5
17100 cat conftest.$ac_ext >&5
17101 rm -rf conftest*
17102 cat > conftest.$ac_ext <<EOF
ade35f11 17103#line 17104 "configure"
afc31813 17104#include "confdefs.h"
51a9faba 17105
3a922bb4
RL
17106 #include <sys/types.h>
17107 #include <sys/socket.h>
17108
698dcdb6 17109int main() {
51a9faba 17110
3a922bb4
RL
17111 int len;
17112 getsockname(0, 0, &len);
17113
698dcdb6
VZ
17114; return 0; }
17115EOF
ade35f11 17116if { (eval echo configure:17117: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6 17117 rm -rf conftest*
51a9faba 17118 wx_cv_type_getsockname3=int
afc31813 17119else
698dcdb6
VZ
17120 echo "configure: failed program was:" >&5
17121 cat conftest.$ac_ext >&5
17122 rm -rf conftest*
17123 wx_cv_type_getsockname3=unknown
3a922bb4 17124
afc31813 17125fi
698dcdb6 17126rm -f conftest*
3a922bb4 17127
afc31813 17128fi
698dcdb6 17129rm -f conftest*
3a922bb4 17130
afc31813 17131fi
698dcdb6 17132rm -f conftest*
51a9faba 17133
3a922bb4 17134 ac_ext=c
698dcdb6 17135# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
afc31813 17136ac_cpp='$CPP $CPPFLAGS'
698dcdb6
VZ
17137ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17138ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17139cross_compiling=$ac_cv_prog_cc_cross
afc31813 17140
3a922bb4 17141
51a9faba 17142fi
698dcdb6
VZ
17143
17144echo "$ac_t""$wx_cv_type_getsockname3" 1>&6
51a9faba 17145
3a922bb4
RL
17146 if test "$wx_cv_type_getsockname3" = "unknown"; then
17147 wxUSE_SOCKETS=no
17148 echo "configure: warning: Couldn't find socklen_t synonym for this system" 1>&2
17149 else
17150 cat >> confdefs.h <<EOF
51a9faba
VZ
17151#define SOCKLEN_T $wx_cv_type_getsockname3
17152EOF
17153
3a922bb4 17154 fi
51a9faba
VZ
17155 fi
17156fi
afc31813 17157
51a9faba 17158if test "$wxUSE_SOCKETS" = "yes" ; then
698dcdb6 17159 cat >> confdefs.h <<\EOF
afc31813
VZ
17160#define wxUSE_SOCKETS 1
17161EOF
17162
70f7a477 17163 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets"
afc31813
VZ
17164fi
17165
698dcdb6 17166
dc3d889d
VZ
17167if test "$wxUSE_GUI" = "yes"; then
17168
156b2523
GD
17169 if test "$TOOLKIT" = "MAC"; then
17170 echo "configure: warning: Joystick not yet supported under Mac OS X... disabled" 1>&2
17171 wxUSE_JOYSTICK=no
17172 fi
17173 if test "$TOOLKIT" = "MOTIF"; then
17174 echo "configure: warning: Joystick not yet supported under Motif... disabled" 1>&2
17175 wxUSE_JOYSTICK=no
17176 fi
17177
3a922bb4
RL
17178 if test "$TOOLKIT" != "MSW"; then
17179 if test "$wxUSE_JOYSTICK" = "yes"; then
17180 for ac_hdr in linux/joystick.h
10f2d63a 17181do
698dcdb6
VZ
17182ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
17183echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
ade35f11 17184echo "configure:17185: checking for $ac_hdr" >&5
698dcdb6
VZ
17185if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
17186 echo $ac_n "(cached) $ac_c" 1>&6
17187else
17188 cat > conftest.$ac_ext <<EOF
ade35f11 17189#line 17190 "configure"
10f2d63a 17190#include "confdefs.h"
698dcdb6
VZ
17191#include <$ac_hdr>
17192EOF
17193ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
ade35f11 17194{ (eval echo configure:17195: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
17195ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
17196if test -z "$ac_err"; then
17197 rm -rf conftest*
17198 eval "ac_cv_header_$ac_safe=yes"
10f2d63a 17199else
698dcdb6
VZ
17200 echo "$ac_err" >&5
17201 echo "configure: failed program was:" >&5
10f2d63a 17202 cat conftest.$ac_ext >&5
698dcdb6
VZ
17203 rm -rf conftest*
17204 eval "ac_cv_header_$ac_safe=no"
10f2d63a 17205fi
698dcdb6 17206rm -f conftest*
10f2d63a 17207fi
698dcdb6
VZ
17208if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
17209 echo "$ac_t""yes" 1>&6
17210 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
17211 cat >> confdefs.h <<EOF
17212#define $ac_tr_hdr 1
10f2d63a 17213EOF
698dcdb6
VZ
17214
17215else
17216 echo "$ac_t""no" 1>&6
10f2d63a
VZ
17217fi
17218done
17219
3a922bb4
RL
17220 if test "$ac_cv_header_linux_joystick_h" != "yes"; then
17221 wxUSE_JOYSTICK=no
156b2523 17222 echo "configure: warning: Joystick not supported by this system... disabled" 1>&2
3a922bb4
RL
17223 fi
17224 fi
17225 fi
b089607b 17226
3a922bb4
RL
17227 if test "$wxUSE_JOYSTICK" = "yes"; then
17228 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17229#define wxUSE_JOYSTICK 1
17230EOF
17231
3a922bb4
RL
17232 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest"
17233 fi
dc3d889d
VZ
17234fi
17235
698dcdb6 17236
b089607b
VZ
17237if test "$TOOLKIT" != "MSW"; then
17238
3a922bb4
RL
17239 HAVE_DL_FUNCS=0
17240 HAVE_SHL_FUNCS=0
17241 if test "$wxUSE_DYNLIB_CLASS" = "yes"; then
17242 if test "$USE_DARWIN" = 1; then
17243 HAVE_DL_FUNCS=1
17244 else
17245 for ac_func in dlopen
10f2d63a 17246do
698dcdb6 17247echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
ade35f11 17248echo "configure:17249: checking for $ac_func" >&5
698dcdb6
VZ
17249if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17250 echo $ac_n "(cached) $ac_c" 1>&6
17251else
17252 cat > conftest.$ac_ext <<EOF
ade35f11 17253#line 17254 "configure"
10f2d63a
VZ
17254#include "confdefs.h"
17255/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 17256 which can conflict with char $ac_func(); below. */
10f2d63a
VZ
17257#include <assert.h>
17258/* Override any gcc2 internal prototype to avoid an error. */
17259/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
17260 builtin and then its argument prototype would still apply. */
17261char $ac_func();
17262
17263int main() {
10f2d63a
VZ
17264
17265/* The GNU C library defines this for functions which it implements
17266 to always fail with ENOSYS. Some functions are actually named
17267 something starting with __ and the normal name is an alias. */
17268#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17269choke me
17270#else
698dcdb6 17271$ac_func();
10f2d63a
VZ
17272#endif
17273
698dcdb6
VZ
17274; return 0; }
17275EOF
ade35f11 17276if { (eval echo configure:17277: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
17277 rm -rf conftest*
17278 eval "ac_cv_func_$ac_func=yes"
17279else
17280 echo "configure: failed program was:" >&5
17281 cat conftest.$ac_ext >&5
17282 rm -rf conftest*
17283 eval "ac_cv_func_$ac_func=no"
17284fi
17285rm -f conftest*
17286fi
17287
17288if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17289 echo "$ac_t""yes" 1>&6
17290 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17291 cat >> confdefs.h <<EOF
17292#define $ac_tr_func 1
17293EOF
17294
3a922bb4 17295 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17296#define HAVE_DLOPEN 1
17297EOF
17298
3a922bb4
RL
17299 HAVE_DL_FUNCS=1
17300
10f2d63a 17301else
698dcdb6
VZ
17302 echo "$ac_t""no" 1>&6
17303echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
ade35f11 17304echo "configure:17305: checking for dlopen in -ldl" >&5
698dcdb6
VZ
17305ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
17306if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
17307 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 17308else
698dcdb6 17309 ac_save_LIBS="$LIBS"
10f2d63a 17310LIBS="-ldl $LIBS"
698dcdb6 17311cat > conftest.$ac_ext <<EOF
ade35f11 17312#line 17313 "configure"
10f2d63a
VZ
17313#include "confdefs.h"
17314/* Override any gcc2 internal prototype to avoid an error. */
17315/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
17316 builtin and then its argument prototype would still apply. */
17317char dlopen();
17318
17319int main() {
17320dlopen()
17321; return 0; }
17322EOF
ade35f11 17323if { (eval echo configure:17324: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
17324 rm -rf conftest*
17325 eval "ac_cv_lib_$ac_lib_var=yes"
17326else
17327 echo "configure: failed program was:" >&5
17328 cat conftest.$ac_ext >&5
17329 rm -rf conftest*
17330 eval "ac_cv_lib_$ac_lib_var=no"
17331fi
17332rm -f conftest*
17333LIBS="$ac_save_LIBS"
17334
17335fi
17336if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
17337 echo "$ac_t""yes" 1>&6
17338
3a922bb4 17339 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17340#define HAVE_DLOPEN 1
17341EOF
17342
3a922bb4 17343 HAVE_DL_FUNCS=1
3d63bc3a 17344 DL_LINK=" -ldl$DL_LINK"
3a922bb4 17345
10f2d63a 17346else
698dcdb6 17347 echo "$ac_t""no" 1>&6
10f2d63a 17348
3a922bb4 17349 for ac_func in shl_load
10f2d63a 17350do
698dcdb6 17351echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
ade35f11 17352echo "configure:17353: checking for $ac_func" >&5
698dcdb6
VZ
17353if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17354 echo $ac_n "(cached) $ac_c" 1>&6
17355else
17356 cat > conftest.$ac_ext <<EOF
ade35f11 17357#line 17358 "configure"
10f2d63a
VZ
17358#include "confdefs.h"
17359/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 17360 which can conflict with char $ac_func(); below. */
10f2d63a
VZ
17361#include <assert.h>
17362/* Override any gcc2 internal prototype to avoid an error. */
17363/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
17364 builtin and then its argument prototype would still apply. */
17365char $ac_func();
17366
17367int main() {
10f2d63a
VZ
17368
17369/* The GNU C library defines this for functions which it implements
17370 to always fail with ENOSYS. Some functions are actually named
17371 something starting with __ and the normal name is an alias. */
17372#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17373choke me
17374#else
698dcdb6 17375$ac_func();
10f2d63a
VZ
17376#endif
17377
698dcdb6
VZ
17378; return 0; }
17379EOF
ade35f11 17380if { (eval echo configure:17381: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
17381 rm -rf conftest*
17382 eval "ac_cv_func_$ac_func=yes"
17383else
17384 echo "configure: failed program was:" >&5
17385 cat conftest.$ac_ext >&5
17386 rm -rf conftest*
17387 eval "ac_cv_func_$ac_func=no"
17388fi
17389rm -f conftest*
17390fi
17391
17392if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17393 echo "$ac_t""yes" 1>&6
17394 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17395 cat >> confdefs.h <<EOF
17396#define $ac_tr_func 1
17397EOF
17398
3a922bb4 17399 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17400#define HAVE_SHL_LOAD 1
17401EOF
17402
3a922bb4
RL
17403 HAVE_SHL_FUNCS=1
17404
10f2d63a 17405else
698dcdb6
VZ
17406 echo "$ac_t""no" 1>&6
17407echo $ac_n "checking for dld in -lshl_load""... $ac_c" 1>&6
ade35f11 17408echo "configure:17409: checking for dld in -lshl_load" >&5
698dcdb6
VZ
17409ac_lib_var=`echo shl_load'_'dld | sed 'y%./+-%__p_%'`
17410if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
17411 echo $ac_n "(cached) $ac_c" 1>&6
f6bcfd97 17412else
698dcdb6 17413 ac_save_LIBS="$LIBS"
f6bcfd97 17414LIBS="-lshl_load $LIBS"
698dcdb6 17415cat > conftest.$ac_ext <<EOF
ade35f11 17416#line 17417 "configure"
f6bcfd97
BP
17417#include "confdefs.h"
17418/* Override any gcc2 internal prototype to avoid an error. */
17419/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
17420 builtin and then its argument prototype would still apply. */
17421char dld();
17422
17423int main() {
17424dld()
17425; return 0; }
17426EOF
ade35f11 17427if { (eval echo configure:17428: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
17428 rm -rf conftest*
17429 eval "ac_cv_lib_$ac_lib_var=yes"
17430else
17431 echo "configure: failed program was:" >&5
17432 cat conftest.$ac_ext >&5
17433 rm -rf conftest*
17434 eval "ac_cv_lib_$ac_lib_var=no"
17435fi
17436rm -f conftest*
17437LIBS="$ac_save_LIBS"
f6bcfd97 17438
698dcdb6
VZ
17439fi
17440if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
17441 echo "$ac_t""yes" 1>&6
17442
3a922bb4 17443 HAVE_SHL_FUNCS=1
3d63bc3a 17444 DL_LINK=" -ldld$DL_LINK"
3a922bb4 17445
698dcdb6
VZ
17446else
17447 echo "$ac_t""no" 1>&6
f6bcfd97
BP
17448fi
17449
3a922bb4 17450
10f2d63a
VZ
17451fi
17452done
17453
3a922bb4 17454
10f2d63a
VZ
17455fi
17456
3a922bb4 17457
10f2d63a
VZ
17458fi
17459done
17460
1e487827 17461
3a922bb4
RL
17462 if test "$HAVE_DL_FUNCS" = 1; then
17463 for ac_func in dlerror
f6bcfd97 17464do
698dcdb6 17465echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
ade35f11 17466echo "configure:17467: checking for $ac_func" >&5
698dcdb6
VZ
17467if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17468 echo $ac_n "(cached) $ac_c" 1>&6
17469else
17470 cat > conftest.$ac_ext <<EOF
ade35f11 17471#line 17472 "configure"
f6bcfd97
BP
17472#include "confdefs.h"
17473/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 17474 which can conflict with char $ac_func(); below. */
f6bcfd97
BP
17475#include <assert.h>
17476/* Override any gcc2 internal prototype to avoid an error. */
17477/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
17478 builtin and then its argument prototype would still apply. */
17479char $ac_func();
17480
17481int main() {
f6bcfd97
BP
17482
17483/* The GNU C library defines this for functions which it implements
17484 to always fail with ENOSYS. Some functions are actually named
17485 something starting with __ and the normal name is an alias. */
17486#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17487choke me
17488#else
698dcdb6 17489$ac_func();
f6bcfd97
BP
17490#endif
17491
698dcdb6
VZ
17492; return 0; }
17493EOF
ade35f11 17494if { (eval echo configure:17495: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
17495 rm -rf conftest*
17496 eval "ac_cv_func_$ac_func=yes"
17497else
17498 echo "configure: failed program was:" >&5
17499 cat conftest.$ac_ext >&5
17500 rm -rf conftest*
17501 eval "ac_cv_func_$ac_func=no"
17502fi
17503rm -f conftest*
17504fi
17505
17506if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17507 echo "$ac_t""yes" 1>&6
17508 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17509 cat >> confdefs.h <<EOF
17510#define $ac_tr_func 1
17511EOF
17512 cat >> confdefs.h <<\EOF
f6bcfd97
BP
17513#define HAVE_DLERROR 1
17514EOF
17515
17516else
698dcdb6
VZ
17517 echo "$ac_t""no" 1>&6
17518echo $ac_n "checking for dlerror in -ldl""... $ac_c" 1>&6
ade35f11 17519echo "configure:17520: checking for dlerror in -ldl" >&5
698dcdb6
VZ
17520ac_lib_var=`echo dl'_'dlerror | sed 'y%./+-%__p_%'`
17521if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
17522 echo $ac_n "(cached) $ac_c" 1>&6
f6bcfd97 17523else
698dcdb6 17524 ac_save_LIBS="$LIBS"
f6bcfd97 17525LIBS="-ldl $LIBS"
698dcdb6 17526cat > conftest.$ac_ext <<EOF
ade35f11 17527#line 17528 "configure"
f6bcfd97
BP
17528#include "confdefs.h"
17529/* Override any gcc2 internal prototype to avoid an error. */
17530/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
17531 builtin and then its argument prototype would still apply. */
17532char dlerror();
17533
17534int main() {
17535dlerror()
17536; return 0; }
17537EOF
ade35f11 17538if { (eval echo configure:17539: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
17539 rm -rf conftest*
17540 eval "ac_cv_lib_$ac_lib_var=yes"
17541else
17542 echo "configure: failed program was:" >&5
17543 cat conftest.$ac_ext >&5
17544 rm -rf conftest*
17545 eval "ac_cv_lib_$ac_lib_var=no"
17546fi
17547rm -f conftest*
17548LIBS="$ac_save_LIBS"
17549
17550fi
17551if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
17552 echo "$ac_t""yes" 1>&6
17553 cat >> confdefs.h <<\EOF
f6bcfd97
BP
17554#define HAVE_DLERROR 1
17555EOF
17556
698dcdb6
VZ
17557else
17558 echo "$ac_t""no" 1>&6
f6bcfd97
BP
17559fi
17560
17561fi
17562done
17563
3a922bb4
RL
17564 fi
17565 fi
f6bcfd97 17566
3a922bb4
RL
17567 if test "$HAVE_DL_FUNCS" = 0; then
17568 if test "$HAVE_SHL_FUNCS" = 0; then
17569 if test "$USE_UNIX" = 1; then
17570 echo "configure: warning: Missing dynamic loading support, several features will be disabled" 1>&2
17571 wxUSE_DYNLIB_CLASS=no
17572 else
17573 echo "configure: warning: Assuming wxLibrary class works on this platform" 1>&2
17574 fi
17575 fi
10f2d63a
VZ
17576 fi
17577 fi
17578fi
17579
17580if test "$wxUSE_DYNLIB_CLASS" = "yes" ; then
698dcdb6 17581 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17582#define wxUSE_DYNLIB_CLASS 1
17583EOF
17584
b12915c1
VZ
17585else
17586 wxUSE_ODBC=no
17587 wxUSE_SERIAL=no
10f2d63a
VZ
17588fi
17589
698dcdb6 17590
1e6feb95
VZ
17591if test "$wxUSE_FONTMAP" = "yes" ; then
17592 cat >> confdefs.h <<\EOF
17593#define wxUSE_FONTMAP 1
17594EOF
17595
17596fi
17597
10f2d63a 17598if test "$wxUSE_UNICODE" = "yes" ; then
698dcdb6 17599 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17600#define wxUSE_UNICODE 1
17601EOF
17602
17603fi
17604
10f2d63a 17605if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then
698dcdb6 17606 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17607#define wxUSE_EXPERIMENTAL_PRINTF 1
17608EOF
17609
17610fi
17611
698dcdb6 17612
b12915c1 17613if test "$wxUSE_SERIAL" = "yes" ; then
698dcdb6 17614 cat >> confdefs.h <<\EOF
b12915c1
VZ
17615#define wxUSE_SERIAL 1
17616EOF
17617
17618fi
17619
698dcdb6 17620
10f2d63a
VZ
17621IODBC_C_SRC=""
17622if test "$wxUSE_ODBC" = "yes" ; then
698dcdb6 17623 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17624#define wxUSE_ODBC 1
17625EOF
17626
17627 WXODBCFLAG="-D_IODBC_"
17628 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db"
10f2d63a
VZ
17629fi
17630
698dcdb6 17631
10f2d63a 17632if test "$wxUSE_POSTSCRIPT" = "yes" ; then
698dcdb6 17633 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17634#define wxUSE_POSTSCRIPT 1
17635EOF
17636
17637fi
17638
698dcdb6 17639cat >> confdefs.h <<\EOF
10f2d63a
VZ
17640#define wxUSE_AFM_FOR_POSTSCRIPT 1
17641EOF
17642
698dcdb6
VZ
17643
17644cat >> confdefs.h <<\EOF
10f2d63a
VZ
17645#define wxUSE_NORMALIZED_PS_FONTS 1
17646EOF
17647
698dcdb6
VZ
17648
17649
10f2d63a 17650if test "$wxUSE_CONSTRAINTS" = "yes"; then
698dcdb6 17651 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17652#define wxUSE_CONSTRAINTS 1
17653EOF
17654
17655 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout"
17656fi
17657
17658if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
fc26f4ab 17659 if test "$wxUSE_UNIVERSAL" = "yes"; then
156b2523 17660 echo "configure: warning: MDI not yet supported for wxUNIVERSAL... disabled" 1>&2
fc26f4ab
RL
17661 wxUSE_MDI_ARCHITECTURE=no
17662 fi
17663
17664 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
17665 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17666#define wxUSE_MDI_ARCHITECTURE 1
17667EOF
17668
fc26f4ab
RL
17669 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi"
17670 fi
10f2d63a
VZ
17671fi
17672
17673if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then
698dcdb6 17674 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17675#define wxUSE_DOC_VIEW_ARCHITECTURE 1
17676EOF
17677
17678 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview"
17679 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
17680 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi"
17681 fi
17682fi
17683
17684if test "$wxUSE_HELP" = "yes"; then
698dcdb6 17685 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17686#define wxUSE_HELP 1
17687EOF
17688
17689 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help"
3379ed37 17690
77e13408 17691 if test "$wxUSE_MSW" = 1; then
031d8228 17692 if test "$wxUSE_MS_HTML_HELP" = "yes"; then
29fd3c0c
VS
17693 ac_safe=`echo "htmlhelp.h" | sed 'y%./+-%__p_%'`
17694echo $ac_n "checking for htmlhelp.h""... $ac_c" 1>&6
ade35f11 17695echo "configure:17696: checking for htmlhelp.h" >&5
29fd3c0c
VS
17696if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
17697 echo $ac_n "(cached) $ac_c" 1>&6
17698else
17699 cat > conftest.$ac_ext <<EOF
ade35f11 17700#line 17701 "configure"
29fd3c0c
VS
17701#include "confdefs.h"
17702#include <htmlhelp.h>
17703EOF
17704ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
ade35f11 17705{ (eval echo configure:17706: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
29fd3c0c
VS
17706ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
17707if test -z "$ac_err"; then
17708 rm -rf conftest*
17709 eval "ac_cv_header_$ac_safe=yes"
17710else
17711 echo "$ac_err" >&5
17712 echo "configure: failed program was:" >&5
17713 cat conftest.$ac_ext >&5
17714 rm -rf conftest*
17715 eval "ac_cv_header_$ac_safe=no"
17716fi
17717rm -f conftest*
17718fi
17719if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
17720 echo "$ac_t""yes" 1>&6
17721
17722 cat >> confdefs.h <<\EOF
17723#define wxUSE_MS_HTML_HELP 1
17724EOF
17725
17726
17727else
17728 echo "$ac_t""no" 1>&6
17729
fc26f4ab 17730 echo "configure: warning: MS HTML Help cannot be used without htmlhelp.h... disabled" 1>&2
29fd3c0c
VS
17731 wxUSE_MS_HTML_HELP=no
17732
17733fi
17734
3e44f09d 17735 fi
3379ed37 17736 fi
031d8228
VS
17737
17738 if test "$wxUSE_WXHTML_HELP" = "yes"; then
17739 if test "$wxUSE_HTML" = "yes"; then
17740 cat >> confdefs.h <<\EOF
17741#define wxUSE_WXHTML_HELP 1
17742EOF
17743
17744 else
17745 echo "configure: warning: Cannot use wxHTML-based help without wxHTML so it won't be compiled" 1>&2
17746 wxUSE_WXHTML_HELP=no
17747 fi
17748 fi
10f2d63a
VZ
17749fi
17750
17751if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
17752 if test "$wxUSE_CONSTRAINTS" != "yes"; then
698dcdb6 17753 echo "configure: warning: Printing support cannot be used without constraints so it won't be compiled without it" 1>&2
10f2d63a 17754 else
698dcdb6 17755 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17756#define wxUSE_PRINTING_ARCHITECTURE 1
17757EOF
17758
17759 fi
17760 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing"
17761fi
17762
17763if test "$wxUSE_PROLOGIO" = "yes" ; then
698dcdb6 17764 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17765#define wxUSE_PROLOGIO 1
17766EOF
17767
17768fi
17769
17770if test "$wxUSE_RESOURCES" = "yes" ; then
3379ed37 17771 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17772#define wxUSE_RESOURCES 1
17773EOF
17774
3379ed37 17775 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS resource"
10f2d63a
VZ
17776fi
17777
17778if test "$wxUSE_X_RESOURCES" = "yes"; then
698dcdb6 17779 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17780#define wxUSE_X_RESOURCES 1
17781EOF
17782
17783fi
17784
698dcdb6 17785
77e13408
RL
17786if test "$wxUSE_MSW" = 1 -a \( "$wxUSE_DATAOBJ" = "yes" \
17787 -o "$wxUSE_CLIPBOARD" = "yes" \
17788 -o "$wxUSE_DRAG_AND_DROP" = "yes" \) ; then
2b9bdf71 17789 for ac_hdr in ole2.h
10f2d63a 17790do
698dcdb6
VZ
17791ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
17792echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
ade35f11 17793echo "configure:17794: checking for $ac_hdr" >&5
698dcdb6
VZ
17794if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
17795 echo $ac_n "(cached) $ac_c" 1>&6
17796else
17797 cat > conftest.$ac_ext <<EOF
ade35f11 17798#line 17799 "configure"
10f2d63a 17799#include "confdefs.h"
698dcdb6
VZ
17800#include <$ac_hdr>
17801EOF
17802ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
ade35f11 17803{ (eval echo configure:17804: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
17804ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
17805if test -z "$ac_err"; then
17806 rm -rf conftest*
17807 eval "ac_cv_header_$ac_safe=yes"
1e487827 17808else
698dcdb6
VZ
17809 echo "$ac_err" >&5
17810 echo "configure: failed program was:" >&5
10f2d63a 17811 cat conftest.$ac_ext >&5
698dcdb6
VZ
17812 rm -rf conftest*
17813 eval "ac_cv_header_$ac_safe=no"
10f2d63a 17814fi
698dcdb6 17815rm -f conftest*
10f2d63a 17816fi
698dcdb6
VZ
17817if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
17818 echo "$ac_t""yes" 1>&6
17819 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
17820 cat >> confdefs.h <<EOF
17821#define $ac_tr_hdr 1
10f2d63a 17822EOF
698dcdb6
VZ
17823
17824else
17825 echo "$ac_t""no" 1>&6
10f2d63a
VZ
17826fi
17827done
17828
698dcdb6 17829
2b9bdf71
VZ
17830 if test "$ac_cv_header_ole2_h" = "yes" ; then
17831 if test "$GCC" = yes ; then
17832 ALL_OBJECTS="$ALL_OBJECTS \$(OLEOBJS)"
2b9bdf71 17833 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fvtable-thunks"
3d63bc3a 17834 LIBS=" -lrpcrt4 -loleaut32 -lole32 -luuid$LIBS"
2b9bdf71 17835 cat >> confdefs.h <<\EOF
4f11a343
VS
17836#define wxUSE_OLE 1
17837EOF
17838
b64f0a5f 17839
2b9bdf71
VZ
17840 fi
17841
17842 cat >> confdefs.h <<\EOF
17843#define wxUSE_DATAOBJ 1
17844EOF
17845
17846 else
17847 echo "configure: warning: Some features disabled because OLE headers not found" 1>&2
17848
17849 wxUSE_CLIPBOARD=no
17850 wxUSE_DRAG_AND_DROP=no
17851 wxUSE_DATAOBJ=no
17852 fi
17853
77e13408 17854 if test "$wxUSE_METAFILE" = "yes"; then
2b9bdf71 17855 cat >> confdefs.h <<\EOF
b64f0a5f
RL
17856#define wxUSE_METAFILE 1
17857EOF
17858
2b9bdf71
VZ
17859
17860 cat >> confdefs.h <<\EOF
b64f0a5f
RL
17861#define wxUSE_ENH_METAFILE 1
17862EOF
17863
2b9bdf71
VZ
17864 fi
17865fi
17866
17867if test "$wxUSE_IPC" = "yes"; then
17868 if test "$wxUSE_SOCKETS" != "yes"; then
156b2523 17869 echo "configure: warning: wxWindows IPC classes require sockets... disabled" 1>&2
2b9bdf71
VZ
17870 fi
17871
17872 cat >> confdefs.h <<\EOF
17873#define wxUSE_IPC 1
17874EOF
17875
17876fi
17877
17878if test "$wxUSE_CLIPBOARD" = "yes"; then
17879 cat >> confdefs.h <<\EOF
17880#define wxUSE_CLIPBOARD 1
17881EOF
17882
673f4220 17883
e33ef661 17884 cat >> confdefs.h <<\EOF
673f4220
VZ
17885#define wxUSE_DATAOBJ 1
17886EOF
17887
2b9bdf71
VZ
17888fi
17889
17890if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then
17891 if test "$wxUSE_GTK" = 1; then
17892 if test "$WXGTK12" != 1; then
156b2523 17893 echo "configure: warning: Drag and drop is only supported under GTK+ 1.2... disabled" 1>&2
10f2d63a
VZ
17894 wxUSE_DRAG_AND_DROP=no
17895 fi
17896 fi
17897
2b9bdf71 17898 if test "$wxUSE_MOTIF" = 1; then
156b2523 17899 echo "configure: warning: Drag and drop not yet supported under Motif... disabled" 1>&2
2b9bdf71
VZ
17900 wxUSE_DRAG_AND_DROP=no
17901 fi
17902
17903 if test "$wxUSE_MAC" = 1; then
156b2523 17904 echo "configure: warning: Drag and drop not yet supported under Mac OS X... disabled" 1>&2
2b9bdf71
VZ
17905 wxUSE_DRAG_AND_DROP=no
17906 fi
17907
10f2d63a 17908 if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
698dcdb6 17909 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17910#define wxUSE_DRAG_AND_DROP 1
17911EOF
17912
17913 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd"
17914 fi
17915
17916fi
17917
17918if test "$wxUSE_SPLINES" = "yes" ; then
698dcdb6 17919 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17920#define wxUSE_SPLINES 1
17921EOF
17922
17923fi
17924
698dcdb6 17925
1e6feb95
VZ
17926USES_CONTROLS=0
17927if test "$wxUSE_CONTROLS" = "yes"; then
17928 USES_CONTROLS=1
17929fi
17930
10f2d63a 17931if test "$wxUSE_ACCEL" = "yes"; then
698dcdb6 17932 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17933#define wxUSE_ACCEL 1
17934EOF
17935
1e6feb95
VZ
17936 USES_CONTROLS=1
17937fi
17938
17939if test "$wxUSE_BUTTON" = "yes"; then
17940 cat >> confdefs.h <<\EOF
17941#define wxUSE_BUTTON 1
17942EOF
17943
17944 USES_CONTROLS=1
17945fi
17946
17947if test "$wxUSE_BMPBUTTON" = "yes"; then
17948 cat >> confdefs.h <<\EOF
17949#define wxUSE_BMPBUTTON 1
17950EOF
17951
17952 USES_CONTROLS=1
17953fi
17954
17955if test "$wxUSE_CALCTRL" = "yes"; then
17956 cat >> confdefs.h <<\EOF
17957#define wxUSE_CALENDARCTRL 1
17958EOF
17959
17960 USES_CONTROLS=1
17961 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar"
10f2d63a
VZ
17962fi
17963
17964if test "$wxUSE_CARET" = "yes"; then
698dcdb6 17965 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17966#define wxUSE_CARET 1
17967EOF
17968
1e6feb95 17969 USES_CONTROLS=1
10f2d63a
VZ
17970 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret"
17971fi
17972
17973if test "$wxUSE_COMBOBOX" = "yes"; then
698dcdb6 17974 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17975#define wxUSE_COMBOBOX 1
17976EOF
17977
1e6feb95 17978 USES_CONTROLS=1
10f2d63a
VZ
17979fi
17980
17981if test "$wxUSE_CHOICE" = "yes"; then
698dcdb6 17982 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17983#define wxUSE_CHOICE 1
17984EOF
17985
1e6feb95 17986 USES_CONTROLS=1
10f2d63a
VZ
17987fi
17988
17989if test "$wxUSE_CHECKBOX" = "yes"; then
698dcdb6 17990 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17991#define wxUSE_CHECKBOX 1
17992EOF
17993
1e6feb95 17994 USES_CONTROLS=1
10f2d63a
VZ
17995fi
17996
17997if test "$wxUSE_CHECKLST" = "yes"; then
698dcdb6 17998 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17999#define wxUSE_CHECKLISTBOX 1
18000EOF
18001
1e6feb95 18002 USES_CONTROLS=1
10f2d63a
VZ
18003 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst"
18004fi
18005
18006if test "$wxUSE_GAUGE" = "yes"; then
698dcdb6 18007 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18008#define wxUSE_GAUGE 1
18009EOF
18010
1e6feb95 18011 USES_CONTROLS=1
10f2d63a
VZ
18012fi
18013
d6a55c4b
VZ
18014if test "$wxUSE_NEW_GRID" = "yes"; then
18015 wxUSE_GRID="yes"
698dcdb6 18016 cat >> confdefs.h <<\EOF
d6a55c4b 18017#define wxUSE_NEW_GRID 1
10f2d63a
VZ
18018EOF
18019
1e6feb95 18020 USES_CONTROLS=1
d6a55c4b 18021 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS newgrid"
10f2d63a
VZ
18022fi
18023
d6a55c4b 18024if test "$wxUSE_GRID" = "yes"; then
698dcdb6 18025 cat >> confdefs.h <<\EOF
d6a55c4b 18026#define wxUSE_GRID 1
10f2d63a
VZ
18027EOF
18028
1e6feb95 18029 USES_CONTROLS=1
d6a55c4b 18030 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid"
10f2d63a
VZ
18031fi
18032
18033if test "$wxUSE_IMAGLIST" = "yes"; then
698dcdb6 18034 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18035#define wxUSE_IMAGLIST 1
18036EOF
18037
18038fi
18039
18040if test "$wxUSE_LISTBOX" = "yes"; then
698dcdb6 18041 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18042#define wxUSE_LISTBOX 1
18043EOF
18044
1e6feb95 18045 USES_CONTROLS=1
10f2d63a
VZ
18046fi
18047
18048if test "$wxUSE_LISTCTRL" = "yes"; then
18049 if test "$wxUSE_IMAGLIST" = "yes"; then
698dcdb6 18050 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18051#define wxUSE_LISTCTRL 1
18052EOF
18053
1e6feb95 18054 USES_CONTROLS=1
10f2d63a
VZ
18055 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl"
18056 else
698dcdb6 18057 echo "configure: warning: wxListCtrl requires wxImageList and won't be compiled without it" 1>&2
10f2d63a
VZ
18058 fi
18059fi
18060
18061if test "$wxUSE_NOTEBOOK" = "yes"; then
698dcdb6 18062 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18063#define wxUSE_NOTEBOOK 1
18064EOF
18065
1e6feb95 18066 USES_CONTROLS=1
10f2d63a
VZ
18067 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook"
18068fi
18069
24176f2c
GD
18070if test "$wxUSE_PROPSHEET" = "yes"; then
18071 cat >> confdefs.h <<\EOF
18072#define wxUSE_PROPSHEET 1
18073EOF
18074
18075 USES_CONTROLS=1
18076 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS proplist"
18077fi
18078
10f2d63a 18079if test "$wxUSE_RADIOBOX" = "yes"; then
698dcdb6 18080 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18081#define wxUSE_RADIOBOX 1
18082EOF
18083
1e6feb95 18084 USES_CONTROLS=1
10f2d63a
VZ
18085fi
18086
18087if test "$wxUSE_RADIOBTN" = "yes"; then
698dcdb6 18088 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18089#define wxUSE_RADIOBTN 1
18090EOF
18091
1e6feb95 18092 USES_CONTROLS=1
10f2d63a
VZ
18093fi
18094
18095if test "$wxUSE_SASH" = "yes"; then
698dcdb6 18096 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18097#define wxUSE_SASH 1
18098EOF
18099
18100 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest"
18101fi
18102
18103if test "$wxUSE_SCROLLBAR" = "yes"; then
698dcdb6 18104 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18105#define wxUSE_SCROLLBAR 1
18106EOF
18107
1e6feb95 18108 USES_CONTROLS=1
741a9306 18109 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub"
10f2d63a
VZ
18110fi
18111
18112if test "$wxUSE_SLIDER" = "yes"; then
698dcdb6 18113 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18114#define wxUSE_SLIDER 1
18115EOF
18116
1e6feb95 18117 USES_CONTROLS=1
10f2d63a
VZ
18118fi
18119
18120if test "$wxUSE_SPINBTN" = "yes"; then
698dcdb6 18121 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18122#define wxUSE_SPINBTN 1
18123EOF
18124
1e6feb95 18125 USES_CONTROLS=1
10f2d63a
VZ
18126fi
18127
56cfaa52 18128if test "$wxUSE_SPINCTRL" = "yes"; then
698dcdb6 18129 cat >> confdefs.h <<\EOF
56cfaa52
RR
18130#define wxUSE_SPINCTRL 1
18131EOF
18132
1e6feb95 18133 USES_CONTROLS=1
56cfaa52
RR
18134fi
18135
10f2d63a 18136if test "$wxUSE_SPLITTER" = "yes"; then
698dcdb6 18137 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18138#define wxUSE_SPLITTER 1
18139EOF
18140
18141 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter"
18142fi
18143
18144if test "$wxUSE_STATBMP" = "yes"; then
698dcdb6 18145 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18146#define wxUSE_STATBMP 1
18147EOF
18148
1e6feb95 18149 USES_CONTROLS=1
10f2d63a
VZ
18150fi
18151
18152if test "$wxUSE_STATBOX" = "yes"; then
698dcdb6 18153 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18154#define wxUSE_STATBOX 1
18155EOF
18156
1e6feb95
VZ
18157 USES_CONTROLS=1
18158fi
18159
18160if test "$wxUSE_STATTEXT" = "yes"; then
18161 cat >> confdefs.h <<\EOF
18162#define wxUSE_STATTEXT 1
18163EOF
18164
18165 USES_CONTROLS=1
10f2d63a
VZ
18166fi
18167
18168if test "$wxUSE_STATLINE" = "yes"; then
18169 if test "$wxUSE_WINE" = 1 ; then
698dcdb6 18170 echo "configure: warning: wxStaticLine is not supported under WINE" 1>&2
10f2d63a 18171 else
698dcdb6 18172 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18173#define wxUSE_STATLINE 1
18174EOF
18175
1e6feb95 18176 USES_CONTROLS=1
10f2d63a
VZ
18177 fi
18178fi
18179
18180if test "$wxUSE_STATUSBAR" = "yes"; then
698dcdb6 18181 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18182#define wxUSE_STATUSBAR 1
18183EOF
18184
1e6feb95 18185 USES_CONTROLS=1
698dcdb6 18186
2286341c 18187 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar"
10f2d63a
VZ
18188fi
18189
18190if test "$wxUSE_TABDIALOG" = "yes"; then
698dcdb6 18191 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18192#define wxUSE_TAB_DIALOG 1
18193EOF
18194
18195 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS tab"
18196fi
18197
1e6feb95
VZ
18198if test "$wxUSE_TEXTCTRL" = "yes"; then
18199 cat >> confdefs.h <<\EOF
18200#define wxUSE_TEXTCTRL 1
18201EOF
18202
18203 USES_CONTROLS=1
18204 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text"
18205fi
18206
1db8dc4a 18207if test "$wxUSE_TOGGLEBTN" = "yes"; then
156b2523
GD
18208 if test "$wxUSE_MAC" = 1; then
18209 echo "configure: warning: Toggle button not yet supported under Mac OS X... disabled" 1>&2
18210 wxUSE_TOGGLEBTN=no
18211 fi
18212 if test "$wxUSE_UNIVERSAL" = "yes"; then
18213 echo "configure: warning: Toggle button not yet supported under wxUNIVERSAL... disabled" 1>&2
a45d7ab7
GD
18214 wxUSE_TOGGLEBTN=no
18215 fi
18216
18217 if test "$wxUSE_TOGGLEBTN" = "yes"; then
18218 cat >> confdefs.h <<\EOF
1db8dc4a
VZ
18219#define wxUSE_TOGGLEBTN 1
18220EOF
18221
1e6feb95 18222 USES_CONTROLS=1
a45d7ab7 18223 fi
1db8dc4a
VZ
18224fi
18225
360d6699 18226if test "$wxUSE_TOOLBAR_SIMPLE" = "yes"; then
698dcdb6 18227 cat >> confdefs.h <<\EOF
360d6699
VZ
18228#define wxUSE_TOOLBAR_SIMPLE 1
18229EOF
18230
18231 wxUSE_TOOLBAR="yes"
1e6feb95 18232 USES_CONTROLS=1
360d6699
VZ
18233fi
18234
10f2d63a 18235if test "$wxUSE_TOOLBAR" = "yes"; then
698dcdb6 18236 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18237#define wxUSE_TOOLBAR 1
18238EOF
18239
1e6feb95 18240 USES_CONTROLS=1
698dcdb6 18241
360d6699
VZ
18242 if test "$wxUSE_TOOLBAR_SIMPLE" != "yes"; then
18243 wxUSE_TOOLBAR_NATIVE="yes"
18244 fi
18245
1e6feb95
VZ
18246 if test "$wxUSE_TOOLBAR_NATIVE" = "yes"; then
18247 cat >> confdefs.h <<\EOF
360d6699
VZ
18248#define wxUSE_TOOLBAR_NATIVE 1
18249EOF
18250
1e6feb95
VZ
18251 USES_CONTROLS=1
18252 fi
18253
18254 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar"
360d6699
VZ
18255fi
18256
10f2d63a
VZ
18257if test "$wxUSE_TOOLTIPS" = "yes"; then
18258 if test "$wxUSE_MOTIF" = 1; then
156b2523 18259 echo "configure: warning: wxTooltip not supported yet under Motif... disabled" 1>&2
10f2d63a
VZ
18260 else
18261 if test "$wxUSE_WINE" = 1; then
156b2523 18262 echo "configure: warning: wxTooltip not supported under WINE... disabled" 1>&2
10f2d63a 18263 else
69d27ff7 18264 if test "$wxUSE_UNIVERSAL" = "yes"; then
156b2523 18265 echo "configure: warning: wxTooltip not supported yet in wxUNIVERSAL... disabled" 1>&2
69d27ff7
MB
18266 else
18267 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18268#define wxUSE_TOOLTIPS 1
18269EOF
18270
69d27ff7 18271 fi
10f2d63a
VZ
18272 fi
18273 fi
18274fi
18275
18276if test "$wxUSE_TREECTRL" = "yes"; then
18277 if test "$wxUSE_IMAGLIST" = "yes"; then
698dcdb6 18278 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18279#define wxUSE_TREECTRL 1
18280EOF
18281
1e6feb95 18282 USES_CONTROLS=1
10f2d63a
VZ
18283 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl"
18284 else
698dcdb6 18285 echo "configure: warning: wxTreeCtrl requires wxImageList and won't be compiled without it" 1>&2
10f2d63a
VZ
18286 fi
18287fi
18288
9f41d601 18289if test "$wxUSE_POPUPWIN" = "yes"; then
6abe4b65 18290 if test "$wxUSE_MAC" = 1; then
156b2523 18291 echo "configure: warning: Popup window not yet supported under Mac OS X... disabled" 1>&2
6abe4b65 18292 else
485cf710
VZ
18293 if test "$wxUSE_MOTIF" = 1; then
18294 echo "configure: warning: wxPopupWindow not yet supported under Motif... disabled" 1>&2
18295 else
18296 cat >> confdefs.h <<\EOF
9f41d601
RR
18297#define wxUSE_POPUPWIN 1
18298EOF
18299
9926e4a4 18300
485cf710
VZ
18301 USES_CONTROLS=1
18302 fi
6abe4b65 18303 fi
9f41d601
RR
18304fi
18305
dd964dcc
VZ
18306if test "$wxUSE_TIPWINDOW" = "yes"; then
18307 cat >> confdefs.h <<\EOF
18308#define wxUSE_TIPWINDOW 1
18309EOF
18310
18311fi
18312
1e6feb95
VZ
18313if test "$USES_CONTROLS" = 1; then
18314 cat >> confdefs.h <<\EOF
18315#define wxUSE_CONTROLS 1
10f2d63a
VZ
18316EOF
18317
10f2d63a
VZ
18318fi
18319
1e6feb95 18320
24176f2c
GD
18321if test "$wxUSE_TREELAYOUT" = "yes"; then
18322 cat >> confdefs.h <<\EOF
18323#define wxUSE_TREELAYOUT 1
18324EOF
18325
18326 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treelay"
18327fi
1e6feb95 18328
24fd6d87
VZ
18329if test "$wxUSE_DRAGIMAGE" = "yes"; then
18330 cat >> confdefs.h <<\EOF
18331#define wxUSE_DRAGIMAGE 1
18332EOF
18333
18334 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag"
18335fi
18336
1e6feb95 18337if test "$wxUSE_MENUS" = "yes"; then
698dcdb6 18338 cat >> confdefs.h <<\EOF
1e6feb95 18339#define wxUSE_MENUS 1
10f2d63a
VZ
18340EOF
18341
1e6feb95 18342 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu"
10f2d63a
VZ
18343fi
18344
1e6feb95
VZ
18345if test "$wxUSE_METAFILE" = "yes"; then
18346 cat >> confdefs.h <<\EOF
18347#define wxUSE_METAFILE 1
10f2d63a
VZ
18348EOF
18349
10f2d63a
VZ
18350fi
18351
1e6feb95
VZ
18352if test "$wxUSE_MIMETYPE" = "yes"; then
18353 cat >> confdefs.h <<\EOF
18354#define wxUSE_MIMETYPE 1
10f2d63a
VZ
18355EOF
18356
10f2d63a
VZ
18357fi
18358
3e44f09d
VZ
18359if test "$wxUSE_SYSTEM_OPTIONS" = "yes"; then
18360 cat >> confdefs.h <<\EOF
18361#define wxUSE_SYSTEM_OPTIONS 1
18362EOF
18363
18364fi
18365
10f2d63a 18366if test "$wxUSE_MINIFRAME" = "yes"; then
698dcdb6 18367 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18368#define wxUSE_MINIFRAME 1
18369EOF
18370
18371 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram"
18372fi
18373
18374if test "$wxUSE_HTML" = "yes"; then
698dcdb6 18375 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18376#define wxUSE_HTML 1
18377EOF
18378
18379 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html"
10f2d63a
VZ
18380fi
18381
18382if test "$wxUSE_VALIDATORS" = "yes"; then
698dcdb6 18383 cat >> confdefs.h <<\EOF
1e487827
VS
18384#define wxUSE_VALIDATORS 1
18385EOF
703e0a69 18386
698dcdb6
VZ
18387 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate"
18388fi
18389
edae8572
VZ
18390if test "$wxUSE_PALETTE" = "yes" ; then
18391 cat >> confdefs.h <<\EOF
18392#define wxUSE_PALETTE 1
18393EOF
18394
18395fi
18396
698dcdb6
VZ
18397if test "$wxUSE_IMAGE" = "yes" ; then
18398 cat >> confdefs.h <<\EOF
18399#define wxUSE_IMAGE 1
18400EOF
18401
18402fi
18403
18404if test "$wxUSE_GIF" = "yes" ; then
18405 cat >> confdefs.h <<\EOF
18406#define wxUSE_GIF 1
18407EOF
18408
18409fi
18410
18411if test "$wxUSE_PCX" = "yes" ; then
18412 cat >> confdefs.h <<\EOF
18413#define wxUSE_PCX 1
18414EOF
18415
18416fi
18417
18418if test "$wxUSE_PNM" = "yes" ; then
18419 cat >> confdefs.h <<\EOF
18420#define wxUSE_PNM 1
18421EOF
18422
18423fi
18424
18425if test "$wxUSE_XPM" = "yes" ; then
18426 cat >> confdefs.h <<\EOF
18427#define wxUSE_XPM 1
18428EOF
18429
18430fi
18431
18432
1e6feb95
VZ
18433if test "$wxUSE_CHOICEDLG" = "yes"; then
18434 cat >> confdefs.h <<\EOF
18435#define wxUSE_CHOICEDLG 1
18436EOF
18437
18438fi
18439
18440if test "$wxUSE_COLOURDLG" = "yes"; then
18441 cat >> confdefs.h <<\EOF
18442#define wxUSE_COLOURDLG 1
18443EOF
18444
18445fi
18446
18447if test "$wxUSE_FILEDLG" = "yes"; then
18448 cat >> confdefs.h <<\EOF
18449#define wxUSE_FILEDLG 1
18450EOF
18451
18452fi
18453
8db37e06
VZ
18454if test "$wxUSE_FINDREPLDLG" = "yes"; then
18455 cat >> confdefs.h <<\EOF
18456#define wxUSE_FINDREPLDLG 1
18457EOF
18458
18459fi
18460
1e6feb95
VZ
18461if test "$wxUSE_FONTDLG" = "yes"; then
18462 cat >> confdefs.h <<\EOF
18463#define wxUSE_FONTDLG 1
18464EOF
18465
18466fi
18467
18468if test "$wxUSE_DIRDLG" = "yes"; then
18469 if test "$wxUSE_CONSTRAINTS" != "yes"; then
18470 echo "configure: warning: wxDirDialog requires constraints so it won't be compiled without them" 1>&2
18471 else
18472 if test "$wxUSE_TREECTRL" != "yes"; then
18473 echo "configure: warning: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" 1>&2
18474 else
18475 cat >> confdefs.h <<\EOF
18476#define wxUSE_DIRDLG 1
18477EOF
18478
18479 fi
18480 fi
18481fi
18482
18483if test "$wxUSE_MSGDLG" = "yes"; then
18484 cat >> confdefs.h <<\EOF
18485#define wxUSE_MSGDLG 1
18486EOF
18487
18488fi
18489
18490if test "$wxUSE_NUMBERDLG" = "yes"; then
18491 cat >> confdefs.h <<\EOF
18492#define wxUSE_NUMBERDLG 1
18493EOF
18494
18495fi
18496
18497if test "$wxUSE_PROGRESSDLG" = "yes"; then
18498 if test "$wxUSE_CONSTRAINTS" != "yes"; then
18499 echo "configure: warning: wxProgressDialog requires constraints so it won't be compiled without them" 1>&2
18500 else
18501 cat >> confdefs.h <<\EOF
18502#define wxUSE_PROGRESSDLG 1
18503EOF
18504
18505 fi
18506fi
18507
cbca9943
VZ
18508if test "$wxUSE_SPLASH" = "yes"; then
18509 cat >> confdefs.h <<\EOF
18510#define wxUSE_SPLASH 1
18511EOF
18512
18513fi
18514
1e6feb95
VZ
18515if test "$wxUSE_STARTUP_TIPS" = "yes"; then
18516 if test "$wxUSE_CONSTRAINTS" != "yes"; then
18517 echo "configure: warning: Startup tips requires constraints and won't be compiled without them" 1>&2
18518 else
18519 cat >> confdefs.h <<\EOF
18520#define wxUSE_STARTUP_TIPS 1
18521EOF
18522
18523 fi
18524fi
18525
18526if test "$wxUSE_TEXTDLG" = "yes"; then
18527 cat >> confdefs.h <<\EOF
18528#define wxUSE_TEXTDLG 1
18529EOF
18530
18531fi
18532
b1f5d087
VZ
18533if test "$wxUSE_WIZARDDLG" = "yes"; then
18534 cat >> confdefs.h <<\EOF
18535#define wxUSE_WIZARDDLG 1
18536EOF
18537
18538 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wizard"
18539fi
18540
1e6feb95 18541
698dcdb6
VZ
18542if test "$cross_compiling" = "yes"; then
18543 OSINFO="\"$host\""
18544else
18545 OSINFO=`uname -s -r -m`
18546 OSINFO="\"$OSINFO\""
18547fi
18548
18549cat >> confdefs.h <<EOF
18550#define WXWIN_OS_DESCRIPTION $OSINFO
18551EOF
18552
18553
18554
06dda230
VZ
18555if test "x$prefix" != "xNONE"; then
18556 wxPREFIX=$prefix
18557else
18558 wxPREFIX=$ac_default_prefix
18559fi
18560
7e67ed0d 18561cat >> confdefs.h <<EOF
06dda230 18562#define wxINSTALL_PREFIX "$wxPREFIX"
7e67ed0d
VZ
18563EOF
18564
18565
18566
698dcdb6 18567
3a922bb4 18568
f11bdd03 18569if test "$wxUSE_MAC" = 1 ; then
3d63bc3a 18570 LDFLAGS="$LDFLAGS -framework Carbon -framework System"
698dcdb6 18571fi
3a922bb4 18572
3d63bc3a
RL
18573
18574LIBS="$ZLIB_LINK$POSIX4_LINK$INET_LINK$WCHAR_LINK$THREADS_LINK$DL_LINK -lm$LIBS"
18575
698dcdb6 18576if test "$wxUSE_GUI" = "yes"; then
3d63bc3a
RL
18577
18578 LIBS=" $GUI_TK_LIBRARY$PNG_LINK$JPEG_LINK$TIFF_LINK$FREETYPE_LINK$LIBS"
3a922bb4
RL
18579
18580
18581 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS controls dialogs \
18582 drawing dynamic erase event exec font image \
18583 minimal richedit rotate widgets"
18584
3a922bb4
RL
18585 CPPFLAGS="$CPPFLAGS \$(EXTRADEFS) \$(APPEXTRADEFS)"
18586else
18587 SAMPLES_SUBDIRS="console"
698dcdb6
VZ
18588fi
18589
698dcdb6 18590
d714471b 18591INCLUDES="-I\${top_builddir}/lib/wx/include/${TOOLCHAIN_NAME} -I\${top_srcdir}/include \
3e44f09d
VZ
18592$REGEX_INCLUDE $ZLIB_INCLUDE $PNG_INCLUDE $JPEG_INCLUDE $TIFF_INCLUDE \
18593$FREETYPE_INCLUDE $TOOLKIT_INCLUDE"
698dcdb6 18594
63e7762e 18595if test "$wxUSE_GTK" = 1; then
3d63bc3a 18596 WXCONFIG_INCLUDE=
698dcdb6
VZ
18597else
18598 WXCONFIG_INCLUDE="$TOOLKIT_INCLUDE"
18599fi
18600
18601if test "$GXX" = yes ; then
18602 CXXWARNINGS="-Wall"
88e30f2b
RL
18603
18604 if test "$wxUSE_NO_DEPS" = "no" ; then
18605 CFLAGS="-MMD $CFLAGS"
18606 CXXFLAGS="-MMD $CXXFLAGS"
18607 fi
18608fi
18609
3d63bc3a 18610EXTRA_CFLAGS="$WXDEBUG $WXODBCFLAG$PROFILE $OPTIMISE $INCLUDES"
698dcdb6
VZ
18611
18612CFLAGS=`echo $CFLAGS $EXTRA_CFLAGS $CXXWARNINGS | sed 's/ \\+/ /g'`
18613CXXFLAGS=`echo $CXXFLAGS $EXTRA_CFLAGS $CXXWARNINGS | sed 's/ \+/ /g'`
18614
3d63bc3a 18615LDFLAGS="$LDFLAGS$PROFILE"
698dcdb6 18616
698dcdb6
VZ
18617SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`"
18618
18619
18620
18621
18622
18623
18624
18625
18626
18627
18628
18629
18630
18631
18632
18633
18634
18635
18636
18637
18638
18639
18640
18641
18642
18643
18644
18645
18646
18647
18648
18649
18650
18651
18652
18653
18654
18655
18656
18657
18658
18659
18660
18661
18662
18663
18664
18665
18666
18667
18668
18669
18670
18671
18672
18673
18674
18675
18676
18677
18678
18679
18680
18681
18682
18683
18684
32832908 18685
2f51a9ec
GD
18686
18687
18688
18689
f6bcfd97 18690
dad6c0ea 18691
caa2c79b 18692
3711412e 18693
1e6feb95
VZ
18694
18695
885d4bf5
VS
18696
18697
18698
18699
62d0491b 18700
10f2d63a
VZ
18701
18702
698dcdb6 18703echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
ade35f11 18704echo "configure:18705: checking whether ${MAKE-make} sets \${MAKE}" >&5
698dcdb6
VZ
18705set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
18706if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
18707 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 18708else
698dcdb6 18709 cat > conftestmake <<\EOF
10f2d63a
VZ
18710all:
18711 @echo 'ac_maketemp="${MAKE}"'
18712EOF
18713# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
698dcdb6 18714eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
10f2d63a
VZ
18715if test -n "$ac_maketemp"; then
18716 eval ac_cv_prog_make_${ac_make}_set=yes
18717else
18718 eval ac_cv_prog_make_${ac_make}_set=no
18719fi
698dcdb6 18720rm -f conftestmake
10f2d63a
VZ
18721fi
18722if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
698dcdb6 18723 echo "$ac_t""yes" 1>&6
10f2d63a
VZ
18724 SET_MAKE=
18725else
698dcdb6 18726 echo "$ac_t""no" 1>&6
10f2d63a
VZ
18727 SET_MAKE="MAKE=${MAKE-make}"
18728fi
18729
698dcdb6 18730
3a922bb4
RL
18731if test -f lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h; then
18732 mv -f lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h setup.h
00cf1208 18733fi
665bbe97 18734
698dcdb6 18735
10f2d63a 18736
2224580a 18737if test "$wxUSE_GUI" = "yes"; then
ec90f5e5 18738 wx_cv_path_samplesubdirs=$SAMPLES_SUBDIRS
e8482f24
GL
18739 wx_cv_path_ifs=$PATH_IFS
18740 wx_cv_program_ext=$PROGRAM_EXT
18741 wx_cv_target_library=$WX_TARGET_LIBRARY
7b6058cd 18742 wx_cv_target_library_gl=$WX_TARGET_LIBRARY_GL
3711412e 18743 wx_cv_target_libtype=$WX_TARGET_LIBRARY_TYPE
93a20a27 18744 export wx_cv_path_samplesubdirs wx_cv_path_ifs wx_cv_program_ext \
7b6058cd 18745 wx_cv_target_library wx_cv_target_library_gl wx_cv_target_libtype
698dcdb6 18746 subdirs="demos samples utils contrib"
2224580a
VZ
18747
18748fi
10f2d63a 18749
698dcdb6
VZ
18750trap '' 1 2 15
18751cat > confcache <<\EOF
10f2d63a
VZ
18752# This file is a shell script that caches the results of configure
18753# tests run on this system so they can be shared between configure
698dcdb6
VZ
18754# scripts and configure runs. It is not useful on other systems.
18755# If it contains results you don't want to keep, you may remove or edit it.
10f2d63a 18756#
698dcdb6
VZ
18757# By default, configure uses ./config.cache as the cache file,
18758# creating it if it does not exist already. You can give configure
18759# the --cache-file=FILE option to use a different cache file; that is
18760# what configure does when it calls configure scripts in
18761# subdirectories, so they share the cache.
18762# Giving --cache-file=/dev/null disables caching, for debugging configure.
18763# config.status only pays attention to the cache file if you give it the
18764# --recheck option to rerun configure.
10f2d63a 18765#
698dcdb6 18766EOF
10f2d63a
VZ
18767# The following way of writing the cache mishandles newlines in values,
18768# but we know of no workaround that is simple, portable, and efficient.
18769# So, don't put newlines in cache variables' values.
18770# Ultrix sh set writes to stderr and can't be redirected directly,
18771# and sets the high bit in the cache file unless we assign to the vars.
698dcdb6
VZ
18772(set) 2>&1 |
18773 case `(ac_space=' '; set | grep ac_space) 2>&1` in
18774 *ac_space=\ *)
18775 # `set' does not quote correctly, so add quotes (double-quote substitution
18776 # turns \\\\ into \\, and sed turns \\ into \).
18777 sed -n \
18778 -e "s/'/'\\\\''/g" \
18779 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
18780 ;;
18781 *)
18782 # `set' quotes correctly as required by POSIX, so do not add quotes.
18783 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
18784 ;;
18785 esac >> confcache
18786if cmp -s $cache_file confcache; then
18787 :
18788else
10f2d63a 18789 if test -w $cache_file; then
698dcdb6
VZ
18790 echo "updating cache $cache_file"
18791 cat confcache > $cache_file
10f2d63a
VZ
18792 else
18793 echo "not updating unwritable cache $cache_file"
18794 fi
18795fi
18796rm -f confcache
18797
698dcdb6
VZ
18798trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
18799
10f2d63a
VZ
18800test "x$prefix" = xNONE && prefix=$ac_default_prefix
18801# Let make expand exec_prefix.
18802test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18803
698dcdb6
VZ
18804# Any assignment to VPATH causes Sun make to only execute
18805# the first set of double-colon rules, so remove it if not needed.
18806# If there is a colon in the path, we need to keep it.
10f2d63a 18807if test "x$srcdir" = x.; then
698dcdb6 18808 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
10f2d63a
VZ
18809fi
18810
698dcdb6
VZ
18811trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
18812
10f2d63a
VZ
18813DEFS=-DHAVE_CONFIG_H
18814
698dcdb6 18815# Without the "./", some shells look in PATH for config.status.
10f2d63a 18816: ${CONFIG_STATUS=./config.status}
698dcdb6
VZ
18817
18818echo creating $CONFIG_STATUS
18819rm -f $CONFIG_STATUS
18820cat > $CONFIG_STATUS <<EOF
18821#! /bin/sh
10f2d63a
VZ
18822# Generated automatically by configure.
18823# Run this file to recreate the current configuration.
698dcdb6
VZ
18824# This directory was configured as follows,
18825# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18826#
18827# $0 $ac_configure_args
18828#
10f2d63a 18829# Compiler output produced by configure, useful for debugging
698dcdb6 18830# configure, is in ./config.log if it exists.
1e487827 18831
698dcdb6
VZ
18832ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
18833for ac_option
10f2d63a 18834do
698dcdb6 18835 case "\$ac_option" in
10f2d63a 18836 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
698dcdb6
VZ
18837 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
18838 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
18839 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
18840 echo "$CONFIG_STATUS generated by autoconf version 2.13"
18841 exit 0 ;;
18842 -help | --help | --hel | --he | --h)
18843 echo "\$ac_cs_usage"; exit 0 ;;
18844 *) echo "\$ac_cs_usage"; exit 1 ;;
10f2d63a
VZ
18845 esac
18846done
18847
698dcdb6
VZ
18848ac_given_srcdir=$srcdir
18849ac_given_INSTALL="$INSTALL"
703e0a69 18850
698dcdb6
VZ
18851trap 'rm -fr `echo "
18852 wx-config
18853 src/make.env
18854 src/makeprog.env
18855 src/makelib.env
18856 Makefile
18857 setup.h:setup.h.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
1e487827 18858EOF
698dcdb6 18859cat >> $CONFIG_STATUS <<EOF
1e487827 18860
698dcdb6
VZ
18861# Protect against being on the right side of a sed subst in config.status.
18862sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
18863 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
18864$ac_vpsub
18865$extrasub
18866s%@SHELL@%$SHELL%g
18867s%@CFLAGS@%$CFLAGS%g
18868s%@CPPFLAGS@%$CPPFLAGS%g
18869s%@CXXFLAGS@%$CXXFLAGS%g
18870s%@FFLAGS@%$FFLAGS%g
18871s%@DEFS@%$DEFS%g
18872s%@LDFLAGS@%$LDFLAGS%g
18873s%@LIBS@%$LIBS%g
18874s%@exec_prefix@%$exec_prefix%g
18875s%@prefix@%$prefix%g
18876s%@program_transform_name@%$program_transform_name%g
18877s%@bindir@%$bindir%g
18878s%@sbindir@%$sbindir%g
18879s%@libexecdir@%$libexecdir%g
18880s%@datadir@%$datadir%g
18881s%@sysconfdir@%$sysconfdir%g
18882s%@sharedstatedir@%$sharedstatedir%g
18883s%@localstatedir@%$localstatedir%g
18884s%@libdir@%$libdir%g
18885s%@includedir@%$includedir%g
18886s%@oldincludedir@%$oldincludedir%g
18887s%@infodir@%$infodir%g
18888s%@mandir@%$mandir%g
18889s%@host@%$host%g
18890s%@host_alias@%$host_alias%g
18891s%@host_cpu@%$host_cpu%g
18892s%@host_vendor@%$host_vendor%g
18893s%@host_os@%$host_os%g
18894s%@target@%$target%g
18895s%@target_alias@%$target_alias%g
18896s%@target_cpu@%$target_cpu%g
18897s%@target_vendor@%$target_vendor%g
18898s%@target_os@%$target_os%g
18899s%@build@%$build%g
18900s%@build_alias@%$build_alias%g
18901s%@build_cpu@%$build_cpu%g
18902s%@build_vendor@%$build_vendor%g
18903s%@build_os@%$build_os%g
18904s%@CC@%$CC%g
18905s%@CPP@%$CPP%g
18906s%@CXX@%$CXX%g
698dcdb6
VZ
18907s%@RANLIB@%$RANLIB%g
18908s%@AR@%$AR%g
18909s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
d6853540 18910s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
6054113a 18911s%@INSTALL_DATA@%$INSTALL_DATA%g
698dcdb6
VZ
18912s%@STRIP@%$STRIP%g
18913s%@YACC@%$YACC%g
18914s%@LEX@%$LEX%g
18915s%@LEXLIB@%$LEXLIB%g
18916s%@LN_S@%$LN_S%g
18917s%@GTK_CONFIG_2_0@%$GTK_CONFIG_2_0%g
698dcdb6
VZ
18918s%@GTK_CFLAGS@%$GTK_CFLAGS%g
18919s%@GTK_LIBS@%$GTK_LIBS%g
8168de4c 18920s%@GTK_CONFIG@%$GTK_CONFIG%g
698dcdb6
VZ
18921s%@X_CFLAGS@%$X_CFLAGS%g
18922s%@X_PRE_LIBS@%$X_PRE_LIBS%g
18923s%@X_LIBS@%$X_LIBS%g
18924s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
3a922bb4 18925s%@RESCOMP@%$RESCOMP%g
698dcdb6 18926s%@DEREZ@%$DEREZ%g
3a922bb4 18927s%@CXXCPP@%$CXXCPP%g
698dcdb6
VZ
18928s%@LEX_STEM@%$LEX_STEM%g
18929s%@PATH_IFS@%$PATH_IFS%g
18930s%@WX_MAJOR_VERSION_NUMBER@%$WX_MAJOR_VERSION_NUMBER%g
18931s%@WX_MINOR_VERSION_NUMBER@%$WX_MINOR_VERSION_NUMBER%g
18932s%@WX_RELEASE_NUMBER@%$WX_RELEASE_NUMBER%g
698dcdb6
VZ
18933s%@WX_LIBRARY_NAME_STATIC@%$WX_LIBRARY_NAME_STATIC%g
18934s%@WX_LIBRARY_NAME_SHARED@%$WX_LIBRARY_NAME_SHARED%g
77e13408 18935s%@WX_LIBRARY_IMPORTLIB@%$WX_LIBRARY_IMPORTLIB%g
698dcdb6
VZ
18936s%@WX_TARGET_LIBRARY@%$WX_TARGET_LIBRARY%g
18937s%@WX_LIBRARY_LINK1@%$WX_LIBRARY_LINK1%g
18938s%@WX_LIBRARY_LINK2@%$WX_LIBRARY_LINK2%g
698dcdb6 18939s%@PROGRAM_EXT@%$PROGRAM_EXT%g
698dcdb6
VZ
18940s%@WX_LIBRARY_NAME_STATIC_GL@%$WX_LIBRARY_NAME_STATIC_GL%g
18941s%@WX_LIBRARY_NAME_SHARED_GL@%$WX_LIBRARY_NAME_SHARED_GL%g
698dcdb6
VZ
18942s%@WX_TARGET_LIBRARY_GL@%$WX_TARGET_LIBRARY_GL%g
18943s%@WX_LIBRARY_LINK1_GL@%$WX_LIBRARY_LINK1_GL%g
18944s%@WX_LIBRARY_LINK2_GL@%$WX_LIBRARY_LINK2_GL%g
698dcdb6
VZ
18945s%@WX_ALL@%$WX_ALL%g
18946s%@WX_ALL_INSTALLED@%$WX_ALL_INSTALLED%g
18947s%@SHARED_LD@%$SHARED_LD%g
18948s%@PIC_FLAG@%$PIC_FLAG%g
698dcdb6
VZ
18949s%@CODE_GEN_FLAGS@%$CODE_GEN_FLAGS%g
18950s%@CODE_GEN_FLAGS_CXX@%$CODE_GEN_FLAGS_CXX%g
3a922bb4
RL
18951s%@SONAME_FLAGS@%$SONAME_FLAGS%g
18952s%@SONAME_FLAGS_GL@%$SONAME_FLAGS_GL%g
698dcdb6
VZ
18953s%@WX_TARGET_LIBRARY_SONAME@%$WX_TARGET_LIBRARY_SONAME%g
18954s%@WX_TARGET_LIBRARY_TYPE@%$WX_TARGET_LIBRARY_TYPE%g
18955s%@WXDEBUG_DEFINE@%$WXDEBUG_DEFINE%g
18956s%@USE_GUI@%$USE_GUI%g
18957s%@AFMINSTALL@%$AFMINSTALL%g
18958s%@TOOLKIT@%$TOOLKIT%g
698dcdb6 18959s%@TOOLKIT_DIR@%$TOOLKIT_DIR%g
1e6feb95 18960s%@TOOLKIT_VPATH@%$TOOLKIT_VPATH%g
3a922bb4
RL
18961s%@TOOLCHAIN_NAME@%$TOOLCHAIN_NAME%g
18962s%@TOOLCHAIN_DEFS@%$TOOLCHAIN_DEFS%g
00c81359 18963s%@TOOLCHAIN_DLL_DEFS@%$TOOLCHAIN_DLL_DEFS%g
3a922bb4
RL
18964s%@cross_compiling@%$cross_compiling%g
18965s%@WXCONFIG_LIBS@%$WXCONFIG_LIBS%g
18966s%@WXCONFIG_LIBS_GL@%$WXCONFIG_LIBS_GL%g
885d4bf5
VS
18967s%@WXCONFIG_LIBS_STATIC@%$WXCONFIG_LIBS_STATIC%g
18968s%@WXCONFIG_LIBS_STATIC_GL@%$WXCONFIG_LIBS_STATIC_GL%g
698dcdb6
VZ
18969s%@WXCONFIG_INCLUDE@%$WXCONFIG_INCLUDE%g
18970s%@ALL_OBJECTS@%$ALL_OBJECTS%g
698dcdb6
VZ
18971s%@GUIDIST@%$GUIDIST%g
18972s%@PORT_FILES@%$PORT_FILES%g
18973s%@DISTDIR@%$DISTDIR%g
698dcdb6 18974s%@SAMPLES_SUBDIRS@%$SAMPLES_SUBDIRS%g
62d0491b 18975s%@LDFLAGS_GL@%$LDFLAGS_GL%g
698dcdb6 18976s%@OPENGL_LIBS@%$OPENGL_LIBS%g
3d63bc3a 18977s%@DMALLOC_LIBS@%$DMALLOC_LIBS%g
698dcdb6 18978s%@EXTRADEFS@%$EXTRADEFS%g
698dcdb6 18979s%@RESFLAGS@%$RESFLAGS%g
3a922bb4 18980s%@RESPROGRAMOBJ@%$RESPROGRAMOBJ%g
d08b457b 18981s%@WX_RESOURCES_MACOSX@%$WX_RESOURCES_MACOSX%g
e23081de 18982s%@WX_RESOURCES_MACOSX_COMPILED@%$WX_RESOURCES_MACOSX_COMPILED%g
698dcdb6
VZ
18983s%@LIBWXMACRES@%$LIBWXMACRES%g
18984s%@LIBWXMACRESCOMP@%$LIBWXMACRESCOMP%g
2baaf735 18985s%@LIBWXMACRESWXCONFIG@%$LIBWXMACRESWXCONFIG%g
698dcdb6
VZ
18986s%@DLLTOOL@%$DLLTOOL%g
18987s%@AS@%$AS%g
18988s%@NM@%$NM%g
18989s%@LD@%$LD%g
18990s%@MAKEINFO@%$MAKEINFO%g
885d4bf5 18991s%@INSTALL_LIBRARY@%$INSTALL_LIBRARY%g
698dcdb6
VZ
18992s%@SET_MAKE@%$SET_MAKE%g
18993s%@subdirs@%$subdirs%g
1e487827 18994
1e487827 18995CEOF
1e487827
VS
18996EOF
18997
698dcdb6
VZ
18998cat >> $CONFIG_STATUS <<\EOF
18999
19000# Split the substitutions into bite-sized pieces for seds with
19001# small command number limits, like on Digital OSF/1 and HP-UX.
19002ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
19003ac_file=1 # Number of current file.
19004ac_beg=1 # First line for current file.
19005ac_end=$ac_max_sed_cmds # Line after last line for current file.
19006ac_more_lines=:
19007ac_sed_cmds=""
19008while $ac_more_lines; do
19009 if test $ac_beg -gt 1; then
19010 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
19011 else
19012 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
19013 fi
19014 if test ! -s conftest.s$ac_file; then
19015 ac_more_lines=false
19016 rm -f conftest.s$ac_file
19017 else
19018 if test -z "$ac_sed_cmds"; then
19019 ac_sed_cmds="sed -f conftest.s$ac_file"
10f2d63a 19020 else
698dcdb6 19021 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
10f2d63a 19022 fi
698dcdb6
VZ
19023 ac_file=`expr $ac_file + 1`
19024 ac_beg=$ac_end
19025 ac_end=`expr $ac_end + $ac_max_sed_cmds`
10f2d63a 19026 fi
698dcdb6
VZ
19027done
19028if test -z "$ac_sed_cmds"; then
19029 ac_sed_cmds=cat
19030fi
19031EOF
10f2d63a 19032
698dcdb6
VZ
19033cat >> $CONFIG_STATUS <<EOF
19034
19035CONFIG_FILES=\${CONFIG_FILES-"wx-config
19036 src/make.env
19037 src/makeprog.env
19038 src/makelib.env
19039 Makefile
19040 "}
10f2d63a 19041EOF
698dcdb6
VZ
19042cat >> $CONFIG_STATUS <<\EOF
19043for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
10f2d63a 19044 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
698dcdb6
VZ
19045 case "$ac_file" in
19046 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
19047 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
19048 *) ac_file_in="${ac_file}.in" ;;
10f2d63a
VZ
19049 esac
19050
698dcdb6 19051 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
1e487827 19052
698dcdb6
VZ
19053 # Remove last slash and all that follows it. Not all systems have dirname.
19054 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
19055 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
19056 # The file is in a subdirectory.
19057 test ! -d "$ac_dir" && mkdir "$ac_dir"
19058 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
10f2d63a 19059 # A "../" for each directory in $ac_dir_suffix.
698dcdb6 19060 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
10f2d63a
VZ
19061 else
19062 ac_dir_suffix= ac_dots=
19063 fi
19064
698dcdb6
VZ
19065 case "$ac_given_srcdir" in
19066 .) srcdir=.
19067 if test -z "$ac_dots"; then top_srcdir=.
19068 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
19069 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
10f2d63a 19070 *) # Relative path.
698dcdb6
VZ
19071 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
19072 top_srcdir="$ac_dots$ac_given_srcdir" ;;
10f2d63a
VZ
19073 esac
19074
698dcdb6
VZ
19075 case "$ac_given_INSTALL" in
19076 [/$]*) INSTALL="$ac_given_INSTALL" ;;
19077 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
10f2d63a
VZ
19078 esac
19079
698dcdb6
VZ
19080 echo creating "$ac_file"
19081 rm -f "$ac_file"
19082 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
19083 case "$ac_file" in
19084 *Makefile*) ac_comsub="1i\\
19085# $configure_input" ;;
19086 *) ac_comsub= ;;
19087 esac
10f2d63a 19088
698dcdb6
VZ
19089 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
19090 sed -e "$ac_comsub
19091s%@configure_input@%$configure_input%g
19092s%@srcdir@%$srcdir%g
19093s%@top_srcdir@%$top_srcdir%g
19094s%@INSTALL@%$INSTALL%g
19095" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
19096fi; done
19097rm -f conftest.s*
10f2d63a
VZ
19098
19099# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
19100# NAME is the cpp macro being defined and VALUE is the value it is being given.
19101#
19102# ac_d sets the value in "#define NAME VALUE" lines.
698dcdb6
VZ
19103ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
19104ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
19105ac_dC='\3'
19106ac_dD='%g'
19107# ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
19108ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
19109ac_uB='\([ ]\)%\1#\2define\3'
10f2d63a 19110ac_uC=' '
698dcdb6
VZ
19111ac_uD='\4%g'
19112# ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
19113ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
19114ac_eB='$%\1#\2define\3'
19115ac_eC=' '
19116ac_eD='%g'
10f2d63a 19117
698dcdb6
VZ
19118if test "${CONFIG_HEADERS+set}" != set; then
19119EOF
19120cat >> $CONFIG_STATUS <<EOF
19121 CONFIG_HEADERS="setup.h:setup.h.in"
19122EOF
19123cat >> $CONFIG_STATUS <<\EOF
19124fi
19125for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
10f2d63a 19126 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
698dcdb6
VZ
19127 case "$ac_file" in
19128 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
19129 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
19130 *) ac_file_in="${ac_file}.in" ;;
10f2d63a
VZ
19131 esac
19132
698dcdb6
VZ
19133 echo creating $ac_file
19134
19135 rm -f conftest.frag conftest.in conftest.out
19136 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
19137 cat $ac_file_inputs > conftest.in
19138
19139EOF
19140
19141# Transform confdefs.h into a sed script conftest.vals that substitutes
19142# the proper values into config.h.in to produce config.h. And first:
19143# Protect against being on the right side of a sed subst in config.status.
19144# Protect against being in an unquoted here document in config.status.
19145rm -f conftest.vals
19146cat > conftest.hdr <<\EOF
19147s/[\\&%]/\\&/g
19148s%[\\$`]%\\&%g
19149s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
19150s%ac_d%ac_u%gp
19151s%ac_u%ac_e%gp
19152EOF
19153sed -n -f conftest.hdr confdefs.h > conftest.vals
19154rm -f conftest.hdr
10f2d63a
VZ
19155
19156# This sed command replaces #undef with comments. This is necessary, for
19157# example, in the case of _POSIX_SOURCE, which is predefined and required
19158# on some systems where configure will not decide to define it.
698dcdb6
VZ
19159cat >> conftest.vals <<\EOF
19160s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
10f2d63a
VZ
19161EOF
19162
698dcdb6
VZ
19163# Break up conftest.vals because some shells have a limit on
19164# the size of here documents, and old seds have small limits too.
10f2d63a
VZ
19165
19166rm -f conftest.tail
698dcdb6 19167while :
10f2d63a 19168do
698dcdb6
VZ
19169 ac_lines=`grep -c . conftest.vals`
19170 # grep -c gives empty output for an empty file on some AIX systems.
19171 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
19172 # Write a limited-size here document to conftest.frag.
19173 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
19174 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
10f2d63a 19175 echo 'CEOF
698dcdb6
VZ
19176 sed -f conftest.frag conftest.in > conftest.out
19177 rm -f conftest.in
19178 mv conftest.out conftest.in
19179' >> $CONFIG_STATUS
19180 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
19181 rm -f conftest.vals
19182 mv conftest.tail conftest.vals
10f2d63a 19183done
698dcdb6
VZ
19184rm -f conftest.vals
19185
19186cat >> $CONFIG_STATUS <<\EOF
19187 rm -f conftest.frag conftest.h
19188 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
19189 cat conftest.in >> conftest.h
19190 rm -f conftest.in
19191 if cmp -s $ac_file conftest.h 2>/dev/null; then
19192 echo "$ac_file is unchanged"
19193 rm -f conftest.h
10f2d63a 19194 else
698dcdb6
VZ
19195 # Remove last slash and all that follows it. Not all systems have dirname.
19196 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
10f2d63a 19197 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
698dcdb6
VZ
19198 # The file is in a subdirectory.
19199 test ! -d "$ac_dir" && mkdir "$ac_dir"
10f2d63a 19200 fi
698dcdb6
VZ
19201 rm -f $ac_file
19202 mv conftest.h $ac_file
10f2d63a 19203 fi
698dcdb6
VZ
19204fi; done
19205
10f2d63a 19206EOF
698dcdb6 19207cat >> $CONFIG_STATUS <<EOF
10f2d63a 19208
3a922bb4 19209 TOOLCHAIN_NAME="${TOOLCHAIN_NAME}"
698dcdb6
VZ
19210 LN_S="${LN_S}"
19211
19212
19213EOF
19214cat >> $CONFIG_STATUS <<\EOF
10f2d63a 19215
652d930d 19216 if test ! -h wx-config; then
991a5759 19217 chmod +x wx-config
3a922bb4
RL
19218 mv wx-config wx${TOOLCHAIN_NAME}-config
19219 ${LN_S} wx${TOOLCHAIN_NAME}-config wx-config
991a5759 19220 fi
665bbe97 19221
00cf1208
RR
19222 if test ! -d lib; then
19223 mkdir lib
19224 fi
19225 if test ! -d lib/wx; then
19226 mkdir lib/wx
19227 fi
19228 if test ! -d lib/wx/include; then
19229 mkdir lib/wx/include
19230 fi
3a922bb4
RL
19231 if test ! -d lib/wx/include/${TOOLCHAIN_NAME}; then
19232 mkdir lib/wx/include/${TOOLCHAIN_NAME}
00cf1208 19233 fi
3a922bb4
RL
19234 if test ! -d lib/wx/include/${TOOLCHAIN_NAME}/wx; then
19235 mkdir lib/wx/include/${TOOLCHAIN_NAME}/wx
00cf1208
RR
19236 fi
19237 if test -f setup.h; then
3a922bb4 19238 mv -f setup.h lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h
00cf1208 19239 fi
698dcdb6
VZ
19240
19241exit 0
10f2d63a
VZ
19242EOF
19243chmod +x $CONFIG_STATUS
698dcdb6
VZ
19244rm -fr confdefs* $ac_clean_files
19245test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
10f2d63a 19246
2224580a
VZ
19247if test "$no_recursion" != yes; then
19248
19249 # Remove --cache-file and --srcdir arguments so they do not pile up.
19250 ac_sub_configure_args=
19251 ac_prev=
19252 for ac_arg in $ac_configure_args; do
19253 if test -n "$ac_prev"; then
19254 ac_prev=
19255 continue
19256 fi
698dcdb6 19257 case "$ac_arg" in
2224580a
VZ
19258 -cache-file | --cache-file | --cache-fil | --cache-fi \
19259 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
19260 ac_prev=cache_file ;;
19261 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
698dcdb6 19262 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
2224580a
VZ
19263 ;;
19264 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
19265 ac_prev=srcdir ;;
19266 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
19267 ;;
19268 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
19269 esac
19270 done
19271
698dcdb6 19272 for ac_config_dir in demos samples utils contrib; do
2224580a
VZ
19273
19274 # Do not complain, so a configure script can configure whichever
19275 # parts of a large source tree are present.
698dcdb6
VZ
19276 if test ! -d $srcdir/$ac_config_dir; then
19277 continue
19278 fi
19279
19280 echo configuring in $ac_config_dir
2224580a 19281
698dcdb6 19282 case "$srcdir" in
2224580a
VZ
19283 .) ;;
19284 *)
698dcdb6
VZ
19285 if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
19286 else
19287 { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
19288 fi
19289 ;;
2224580a
VZ
19290 esac
19291
19292 ac_popdir=`pwd`
698dcdb6 19293 cd $ac_config_dir
2224580a 19294
698dcdb6
VZ
19295 # A "../" for each directory in /$ac_config_dir.
19296 ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
2224580a 19297
698dcdb6 19298 case "$srcdir" in
2224580a
VZ
19299 .) # No --srcdir option. We are building in place.
19300 ac_sub_srcdir=$srcdir ;;
698dcdb6
VZ
19301 /*) # Absolute path.
19302 ac_sub_srcdir=$srcdir/$ac_config_dir ;;
2224580a 19303 *) # Relative path.
698dcdb6 19304 ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
2224580a
VZ
19305 esac
19306
19307 # Check for guested configure; otherwise get Cygnus style configure.
698dcdb6
VZ
19308 if test -f $ac_sub_srcdir/configure; then
19309 ac_sub_configure=$ac_sub_srcdir/configure
2224580a
VZ
19310 elif test -f $ac_sub_srcdir/configure.in; then
19311 ac_sub_configure=$ac_configure
19312 else
698dcdb6 19313 echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
2224580a
VZ
19314 ac_sub_configure=
19315 fi
19316
19317 # The recursion is here.
19318 if test -n "$ac_sub_configure"; then
698dcdb6 19319
2224580a 19320 # Make the cache file name correct relative to the subdirectory.
698dcdb6
VZ
19321 case "$cache_file" in
19322 /*) ac_sub_cache_file=$cache_file ;;
2224580a 19323 *) # Relative path.
698dcdb6 19324 ac_sub_cache_file="$ac_dots$cache_file" ;;
2224580a 19325 esac
698dcdb6
VZ
19326 case "$ac_given_INSTALL" in
19327 [/$]*) INSTALL="$ac_given_INSTALL" ;;
19328 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
19329 esac
2224580a 19330
698dcdb6 19331 echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
2224580a 19332 # The eval makes quoting arguments work.
698dcdb6
VZ
19333 if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
19334 then :
19335 else
19336 { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }
19337 fi
2224580a
VZ
19338 fi
19339
19340 cd $ac_popdir
19341 done
19342fi
19343
698dcdb6 19344